Skip to content

Commit 9d8c5b2

Browse files
committed
Initial DateRangeInput
1 parent 84b619d commit 9d8c5b2

File tree

4 files changed

+526
-6
lines changed

4 files changed

+526
-6
lines changed

packages/circuit-ui/components/DateInput/DateInput.module.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@
8484
line-height: var(--cui-body-m-line-height);
8585
}
8686

87-
.readonly .literal {
87+
.divider {
88+
padding: var(--cui-spacings-bit);
89+
font-size: var(--cui-body-m-font-size);
90+
line-height: var(--cui-body-m-line-height);
91+
}
92+
93+
.readonly .literal,
94+
.readonly .divider {
8895
color: var(--cui-fg-subtle);
8996
}
9097

@@ -167,10 +174,6 @@
167174
}
168175

169176
@media (min-width: 480px) {
170-
.apply {
171-
display: none;
172-
}
173-
174177
.presets {
175178
position: sticky;
176179
bottom: 0;

packages/circuit-ui/components/DateInput/DateInput.stories.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { useState } from 'react';
1818
import { Stack } from '../../../../.storybook/components/index.js';
1919

2020
import { DateInput, type DateInputProps } from './DateInput.js';
21+
import { DateRangeInput, type DateRangeInputProps } from './DateRangeInput.js';
2122

2223
export default {
2324
title: 'Forms/DateInput',
@@ -174,3 +175,12 @@ export const Locales = (args: DateInputProps) => (
174175
);
175176

176177
Locales.args = baseArgs;
178+
179+
export const Range = (args: DateRangeInputProps) => (
180+
<DateRangeInput {...args} />
181+
);
182+
183+
Range.args = {
184+
...baseArgs,
185+
label: 'Trip dates',
186+
};

0 commit comments

Comments
 (0)