Skip to content

Commit 07a8bce

Browse files
committed
Initial DateRangeInput
1 parent 65b6ad7 commit 07a8bce

File tree

4 files changed

+526
-6
lines changed

4 files changed

+526
-6
lines changed

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

+8-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,14 @@
8080
line-height: var(--cui-body-m-line-height);
8181
}
8282

83-
.readonly .literal {
83+
.divider {
84+
padding: var(--cui-spacings-bit);
85+
font-size: var(--cui-body-m-font-size);
86+
line-height: var(--cui-body-m-line-height);
87+
}
88+
89+
.readonly .literal,
90+
.readonly .divider {
8491
color: var(--cui-fg-subtle);
8592
}
8693

@@ -163,10 +170,6 @@
163170
}
164171

165172
@media (min-width: 480px) {
166-
.apply {
167-
display: none;
168-
}
169-
170173
.presets {
171174
position: sticky;
172175
bottom: 0;

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

+10
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',
@@ -168,3 +169,12 @@ export const Locales = (args: DateInputProps) => (
168169
);
169170

170171
Locales.args = baseArgs;
172+
173+
export const Range = (args: DateRangeInputProps) => (
174+
<DateRangeInput {...args} />
175+
);
176+
177+
Range.args = {
178+
...baseArgs,
179+
label: 'Trip dates',
180+
};

0 commit comments

Comments
 (0)