diff --git a/.changeset/brown-baboons-teach.md b/.changeset/brown-baboons-teach.md new file mode 100644 index 0000000000..6cfc9bf952 --- /dev/null +++ b/.changeset/brown-baboons-teach.md @@ -0,0 +1,6 @@ +--- +"@ultraviolet/ui": minor +--- + +- Refactoring of `` to remove dependency react-datepicker +- ` + ) } @@ -26,3 +34,11 @@ Controlled.parameters = { }, }, } + +Controlled.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Disabled.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Disabled.stories.tsx index cd6cd1a35a..62d5b222b4 100644 --- a/packages/ui/src/components/DateInput/__stories__/Disabled.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Disabled.stories.tsx @@ -6,3 +6,11 @@ Disabled.args = { label: 'Disabled', disabled: true, } + +Disabled.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Error.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Error.stories.tsx index 3468b8cbd1..0861094ff1 100644 --- a/packages/ui/src/components/DateInput/__stories__/Error.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Error.stories.tsx @@ -14,3 +14,11 @@ Error.args = { label: 'Error', error: 'This is an error', } + +Error.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Exclude.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Exclude.stories.tsx index 1a9b7b4d51..6007dc8862 100644 --- a/packages/ui/src/components/DateInput/__stories__/Exclude.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Exclude.stories.tsx @@ -1,7 +1,23 @@ -import { Template } from './Template' - -export const Exclude = Template.bind({}) +import type { StoryFn } from '@storybook/react' +import type { ComponentProps } from 'react' +import { DateInput } from '..' +import { Stack } from '../../Stack' +export const Exclude: StoryFn> = args => ( + + + + +) Exclude.parameters = { docs: { description: { @@ -20,3 +36,11 @@ Exclude.args = { new Date('December 28, 1995 03:24:00'), ], } + +Exclude.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/I18n.stories.tsx b/packages/ui/src/components/DateInput/__stories__/I18n.stories.tsx index 7a453df8a2..80011f97ee 100644 --- a/packages/ui/src/components/DateInput/__stories__/I18n.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/I18n.stories.tsx @@ -62,6 +62,7 @@ export const I18n: StoryFn> = args => { setValue(v as Date) }} label={currentLocale} + selectsRange={false} /> ) @@ -75,3 +76,11 @@ I18n.parameters = { }, }, } + +I18n.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Localized.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Localized.stories.tsx index d65c1651a3..24160a1e03 100644 --- a/packages/ui/src/components/DateInput/__stories__/Localized.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Localized.stories.tsx @@ -34,7 +34,7 @@ Localized.parameters = { Localized.decorators = [ StoryComponent => ( -
+
), diff --git a/packages/ui/src/components/DateInput/__stories__/MinMax.stories.tsx b/packages/ui/src/components/DateInput/__stories__/MinMax.stories.tsx index 76901e84c2..bd05ebb87f 100644 --- a/packages/ui/src/components/DateInput/__stories__/MinMax.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/MinMax.stories.tsx @@ -16,3 +16,11 @@ MinMax.args = { minDate: new Date('December 12, 1995 03:24:00'), maxDate: new Date('December 25, 1995 03:24:00'), } + +MinMax.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Months.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Months.stories.tsx index b3d8d642a5..ca4e792e11 100644 --- a/packages/ui/src/components/DateInput/__stories__/Months.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Months.stories.tsx @@ -1,34 +1,17 @@ -import type { StoryFn } from '@storybook/react' -import { useState } from 'react' -import { DateInput } from '..' +import { Template } from './Template' -export const Months: StoryFn = args => { - const [startDate, setStartDate] = useState(null) - const [endDate, setEndDate] = useState(null) - const onChange = (dates: [Date | null, Date | null]) => { - const [start, end] = dates - setStartDate(start) - setEndDate(end) - } +export const Months = Template.bind({}) - return ( - - ) +Months.args = { + label: 'Months', + showMonthYearPicker: true, + disabled: false, } -Months.parameters = { - docs: { - description: { - story: - 'Using prop `showMonthYearPicker` you can select only months and years.', - }, - }, -} +Months.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Playground.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Playground.stories.tsx index 515910c77a..c5c6bee128 100644 --- a/packages/ui/src/components/DateInput/__stories__/Playground.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Playground.stories.tsx @@ -2,4 +2,14 @@ import { Template } from './Template' export const Playground = Template.bind({}) -Playground.args = Template.args +Playground.args = { + placeholder: 'MM-DD-YYYY', +} + +Playground.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Range.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Range.stories.tsx index 333b41d29e..3b369ce495 100644 --- a/packages/ui/src/components/DateInput/__stories__/Range.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Range.stories.tsx @@ -1,25 +1,69 @@ import type { StoryFn } from '@storybook/react' +import type { ComponentProps } from 'react' import { useState } from 'react' import { DateInput } from '..' +import { Stack } from '../../Stack' -export const Range: StoryFn = args => { +const MONTHS = [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December', +] +export const Range: StoryFn> = args => { const [startDate, setStartDate] = useState(null) const [endDate, setEndDate] = useState(null) - const onChange = (dates: [Date | null, Date | null]) => { + + const [startMonth, setStartMonth] = useState( + new Date('March 2024'), + ) + const [endMonth, setEndMonth] = useState(null) + + const onChange = (dates: [Date | null, Date | null] | Date[]) => { const [start, end] = dates setStartDate(start) setEndDate(end) } + const onChangeMonth = (dates: [Date | null, Date | null] | Date[]) => { + const [start, end] = dates + setStartMonth(start) + setEndMonth(end) + } + return ( - + + + Selected dates : {startDate?.toDateString()} - {endDate?.toDateString()} + + Selected months : {startMonth ? MONTHS[startMonth.getMonth()] : null} + {startMonth?.getFullYear()} - + {endMonth ? MONTHS[endMonth.getMonth()] : null} + {endMonth?.getFullYear()} + ) } @@ -30,3 +74,11 @@ Range.parameters = { }, }, } + +Range.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Required.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Required.stories.tsx index 85436e459c..b0f0cde301 100644 --- a/packages/ui/src/components/DateInput/__stories__/Required.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Required.stories.tsx @@ -6,3 +6,10 @@ Required.args = { label: 'Required', required: true, } +Required.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Size.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Size.stories.tsx index 69acf72812..5ebc02e6cd 100644 --- a/packages/ui/src/components/DateInput/__stories__/Size.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Size.stories.tsx @@ -9,3 +9,14 @@ export const Size: StoryFn = args => ( ))} ) + +Size.args = { + value: 'Sat 24 Dec 2024', +} +Size.decorators = [ + StoryComponent => ( +
+ +
+ ), +] diff --git a/packages/ui/src/components/DateInput/__stories__/Template.tsx b/packages/ui/src/components/DateInput/__stories__/Template.tsx index 33815ece73..ded906ef38 100644 --- a/packages/ui/src/components/DateInput/__stories__/Template.tsx +++ b/packages/ui/src/components/DateInput/__stories__/Template.tsx @@ -1,12 +1,12 @@ import type { StoryFn } from '@storybook/react' -import type { ComponentProps } from 'react' import { DateInput } from '..' -export const Template: StoryFn> = props => ( +export const Template: StoryFn = props => ( ) Template.args = { label: 'Date Input', required: true, + placeholder: 'YYYY-MM-DD', } diff --git a/packages/ui/src/components/DateInput/__stories__/Uncontrolled.stories.tsx b/packages/ui/src/components/DateInput/__stories__/Uncontrolled.stories.tsx deleted file mode 100644 index ded4024c47..0000000000 --- a/packages/ui/src/components/DateInput/__stories__/Uncontrolled.stories.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import type { StoryFn } from '@storybook/react' -import type { ComponentProps } from 'react' -import { DateInput } from '..' -import { Template } from './Template' - -export const Uncontrolled: StoryFn< - ComponentProps -> = props => - -Uncontrolled.args = Template.args - -Uncontrolled.parameters = { - docs: { - description: { - story: - 'DateInput can be used as an [uncontrolled component](https://reactjs.org/docs/uncontrolled-components.html).', - }, - }, -} diff --git a/packages/ui/src/components/DateInput/__stories__/index.stories.tsx b/packages/ui/src/components/DateInput/__stories__/index.stories.tsx index 855c9cad77..b614423621 100644 --- a/packages/ui/src/components/DateInput/__stories__/index.stories.tsx +++ b/packages/ui/src/components/DateInput/__stories__/index.stories.tsx @@ -3,26 +3,17 @@ import { DateInput } from '..' export default { component: DateInput, - decorators: [ - Stories => ( -
- -
- ), - ], title: 'Components/Data Entry/DateInput', } as Meta - export { Playground } from './Playground.stories' export { Size } from './Size.stories' -export { Exclude } from './Exclude.stories' -export { Range } from './Range.stories' -export { Uncontrolled } from './Uncontrolled.stories' -export { Controlled } from './Controlled.stories' export { Error } from './Error.stories' export { Disabled } from './Disabled.stories' export { Required } from './Required.stories' export { Months } from './Months.stories' +export { Exclude } from './Exclude.stories' +export { MinMax } from './MinMax.stories' export { Localized } from './Localized.stories' +export { Controlled } from './Controlled.stories' +export { Range } from './Range.stories' export { I18n } from './I18n.stories' -export { MinMax } from './MinMax.stories' diff --git a/packages/ui/src/components/DateInput/__tests__/__snapshots__/index.test.tsx.snap b/packages/ui/src/components/DateInput/__tests__/__snapshots__/index.test.tsx.snap index 58767b5b6a..1529ab5b3b 100644 --- a/packages/ui/src/components/DateInput/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/ui/src/components/DateInput/__tests__/__snapshots__/index.test.tsx.snap @@ -2,210 +2,37 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` - .emotion-0 { + @keyframes animation-0 { + 0% { + opacity: 0; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } + + 100% { + opacity: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } +} + +.emotion-0 { width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; -} - -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -228,7 +55,7 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -251,7 +78,7 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -274,7 +101,7 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -286,7 +113,7 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -298,71 +125,73 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` background: #ffffff; border: 1px solid #d9dadd; border-radius: 0.25rem; + box-shadow: 0px 0px 0px 3px #8c40ef40; + border: 1px solid #8c40ef; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -375,15 +204,15 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -409,306 +238,208 @@ exports[`DateInput > render correctly with a array of dates to exclude 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { +.emotion-18 .fillStroke { stroke: #3f4250; fill: none; } -
-
-
-
-
-
-
- -
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-`; - -exports[`DateInput > render correctly with a range of date 1`] = ` - - .emotion-0 { +.emotion-21 { + background: #151a2d; + color: #ffffff; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; + text-align: center; + position: absolute; + max-width: 16.5rem; + overflow-wrap: break-word; + font-size: 0.8rem; + inset: 0 auto auto 0; + top: 0; + left: 0; + opacity: 0; + z-index: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); width: 100%; -} - -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { + background-color: #ffffff; + color: #3f4250; + box-shadow: 0px 4px 8px 0px #22263829,0px 8px 24px 0px #2226383d; padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; + border-radius: 0.25rem; } -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; +.emotion-21[data-animated="true"] { + -webkit-animation: 0ms animation-0 forwards; + animation: 0ms animation-0 forwards; } -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; +.emotion-21[data-has-arrow="true"]::after { + content: " "; + position: absolute; + top: -5px; + left: 0px; + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); + margin-left: -8px; + border-width: 8px; + border-style: solid; + border-color: #151a2d transparent transparent transparent; + pointer-events: none; } -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; +.emotion-21[data-visible-in-dom="false"] { + display: none; } -.emotion-0 .calendar .react-datepicker__month { - margin: 0; +.emotion-23 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 1rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; } -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; +.emotion-25 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + width: 100%; +} + +.emotion-27 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 1.5rem; + padding: 0 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.25rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: 1.5rem; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 0.875rem; font-family: Inter,Asap,sans-serif; - color: #3f4250; font-weight: 500; - font-size: 0.875rem; + letter-spacing: 0; line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; } -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-27:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; +.emotion-27:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-27:hover, +.emotion-27:active { + background: #e9eaeb; + color: #222638; } -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; +.emotion-29 { + vertical-align: middle; + fill: currentColor; + height: 16px; + width: 16px; + min-width: 16px; + min-height: 16px; } -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +.emotion-29 .fillStroke { + stroke: currentColor; + fill: none; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-32 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-32::first-letter { + text-transform: uppercase; } -.emotion-2 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - gap: 0.25rem; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; +.emotion-38 { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 0.5rem; -webkit-align-items: normal; -webkit-box-align: normal; -ms-flex-align: normal; @@ -717,60 +448,85 @@ exports[`DateInput > render correctly with a range of date 1`] = ` -ms-flex-pack: normal; -webkit-justify-content: normal; justify-content: normal; - -webkit-box-flex-wrap: nowrap; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; } -.emotion-4 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - gap: 0.5rem; +.emotion-41 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-41::first-letter { + text-transform: uppercase; +} + +.emotion-62 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; - -webkit-box-pack: normal; - -ms-flex-pack: normal; - -webkit-justify-content: normal; - justify-content: normal; - -webkit-box-flex-wrap: nowrap; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + height: 1.5625rem; + width: 100%; + padding: 0; } -.emotion-6 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - gap: 0.25rem; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-align-items: start; - -webkit-box-align: start; - -ms-flex-align: start; - align-items: start; - -webkit-box-pack: normal; - -ms-flex-pack: normal; - -webkit-justify-content: normal; - justify-content: normal; - -webkit-box-flex-wrap: nowrap; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; +.emotion-62:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-8 { +.emotion-62:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; +} + +.emotion-62:hover, +.emotion-62:active { + background: #e9eaeb; color: #222638; +} + +.emotion-64 { + color: #b5b7bd; font-size: 1rem; font-family: Inter,Asap,sans-serif; font-weight: 500; @@ -781,83 +537,1621 @@ exports[`DateInput > render correctly with a range of date 1`] = ` text-decoration: none; } -.emotion-10 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; +.emotion-84 { + color: #727683; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-132 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - height: 3rem; - background: #ffffff; - border: 1px solid #d9dadd; + gap: 0.5rem; border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: #8c40ef; + border: none; + color: #ffffff; + height: 1.5625rem; + width: 100%; + padding: 0; } -.emotion-10>.emotion-13 { - color: #3f4250; +.emotion-132:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-10>.emotion-13::-webkit-input-placeholder { - color: #727683; +.emotion-132:active { + box-shadow: 0px 0px 0px 3px #8c40ef40; } -.emotion-10>.emotion-13::-moz-placeholder { - color: #727683; +.emotion-132:hover, +.emotion-132:active { + background: #792dd4; + color: #f9f9fa; } -.emotion-10>.emotion-13:-ms-input-placeholder { - color: #727683; +.emotion-134 { + color: #ffffff; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-10>.emotion-13::placeholder { - color: #727683; -} +.emotion-137 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: not-allowed; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + color: #b5b7bd; + height: 1.5625rem; + width: 100%; + padding: 0; +} + +.emotion-137:hover { + -webkit-text-decoration: none; + text-decoration: none; +} + +
+
+
+
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+
+
+
+`; + +exports[`DateInput > render correctly with a range of date 1`] = ` + + .emotion-0 { + width: 100%; +} + +.emotion-2 { + display: inherit; +} + +.emotion-2[data-container-full-width="true"] { + width: 100%; +} + +.emotion-4 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-6 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.5rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: start; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: start; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-10 { + color: #222638; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + height: 3rem; + background: #ffffff; + border: 1px solid #d9dadd; + border-radius: 0.25rem; +} + +.emotion-12>.emotion-15 { + color: #3f4250; +} + +.emotion-12>.emotion-15::-webkit-input-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15::-moz-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15:-ms-input-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15::placeholder { + color: #727683; +} + +.emotion-12[data-success='true'] { + border-color: #22674e; +} + +.emotion-12[data-error='true'] { + border-color: #b3144d; +} + +.emotion-12[data-readonly='true'] { + background: #f9f9fa; + border-color: #d9dadd; +} + +.emotion-12[data-disabled='true'] { + background: #f3f3f4; + border-color: #e9eaeb; +} + +.emotion-12[data-disabled='true']>.emotion-15 { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15::placeholder { + color: #b5b7bd; +} + +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { + border-color: #8c40ef; +} + +.emotion-14 { + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + border: none; + outline: none; + height: 100%; + width: 100%; + padding-left: 1rem; + background: transparent; + font-size: 0.875rem; +} + +.emotion-14[data-size='large'] { + font-size: 1rem; +} + +.emotion-14[data-size='small'] { + padding-left: 0.5rem; +} + +.emotion-16 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding: 0 1rem; + border-left: 1px solid; + border-color: inherit; +} + +.emotion-18 { + vertical-align: middle; + fill: #3f4250; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; +} + +.emotion-18 .fillStroke { + stroke: #3f4250; + fill: none; +} + +
+
+
+
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+
+
+
+
+`; + +exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` + + .emotion-0 { + width: 100%; +} + +.emotion-2 { + display: inherit; +} + +.emotion-2[data-container-full-width="true"] { + width: 100%; +} + +.emotion-4 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-6 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.5rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: start; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: start; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-10 { + color: #222638; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + height: 3rem; + background: #ffffff; + border: 1px solid #d9dadd; + border-radius: 0.25rem; +} + +.emotion-12>.emotion-15 { + color: #3f4250; +} + +.emotion-12>.emotion-15::-webkit-input-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15::-moz-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15:-ms-input-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15::placeholder { + color: #727683; +} + +.emotion-12[data-success='true'] { + border-color: #22674e; +} + +.emotion-12[data-error='true'] { + border-color: #b3144d; +} + +.emotion-12[data-readonly='true'] { + background: #f9f9fa; + border-color: #d9dadd; +} + +.emotion-12[data-disabled='true'] { + background: #f3f3f4; + border-color: #e9eaeb; +} + +.emotion-12[data-disabled='true']>.emotion-15 { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { + color: #b5b7bd; +} + +.emotion-12[data-disabled='true']>.emotion-15::placeholder { + color: #b5b7bd; +} + +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { + border-color: #8c40ef; +} + +.emotion-14 { + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + border: none; + outline: none; + height: 100%; + width: 100%; + padding-left: 1rem; + background: transparent; + font-size: 0.875rem; +} + +.emotion-14[data-size='large'] { + font-size: 1rem; +} + +.emotion-14[data-size='small'] { + padding-left: 0.5rem; +} + +.emotion-16 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding: 0 1rem; + border-left: 1px solid; + border-color: inherit; +} + +.emotion-18 { + vertical-align: middle; + fill: #3f4250; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; +} + +.emotion-18 .fillStroke { + stroke: #3f4250; + fill: none; +} + +
+
+
+
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+
+
+
+
+`; + +exports[`DateInput > render correctly with showMonthYearPicker with default date 1`] = ` + + @keyframes animation-0 { + 0% { + opacity: 0; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } + + 100% { + opacity: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } +} + +.emotion-0 { + width: 100%; +} + +.emotion-2 { + display: inherit; +} + +.emotion-2[data-container-full-width="true"] { + width: 100%; +} + +.emotion-4 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-6 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.5rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: start; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: start; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-10 { + color: #222638; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-12 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + height: 3rem; + background: #ffffff; + border: 1px solid #d9dadd; + border-radius: 0.25rem; + box-shadow: 0px 0px 0px 3px #8c40ef40; + border: 1px solid #8c40ef; +} -.emotion-10[data-success='true'] { +.emotion-12>.emotion-15 { + color: #3f4250; +} + +.emotion-12>.emotion-15::-webkit-input-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15::-moz-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15:-ms-input-placeholder { + color: #727683; +} + +.emotion-12>.emotion-15::placeholder { + color: #727683; +} + +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -870,15 +2164,15 @@ exports[`DateInput > render correctly with a range of date 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -904,298 +2198,678 @@ exports[`DateInput > render correctly with a range of date 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { +.emotion-18 .fillStroke { stroke: #3f4250; fill: none; } -
-
-
-
-
-
-
- -
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-`; - -exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` - - .emotion-0 { +.emotion-21 { + background: #151a2d; + color: #ffffff; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; + text-align: center; + position: absolute; + max-width: 16.5rem; + overflow-wrap: break-word; + font-size: 0.8rem; + inset: 0 auto auto 0; + top: 0; + left: 0; + opacity: 0; + z-index: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); width: 100%; + background-color: #ffffff; + color: #3f4250; + box-shadow: 0px 4px 8px 0px #22263829,0px 8px 24px 0px #2226383d; + padding: 1rem; + border-radius: 0.25rem; } -.emotion-0 div.react-datepicker-wrapper { - display: block; +.emotion-21[data-animated="true"] { + -webkit-animation: 0ms animation-0 forwards; + animation: 0ms animation-0 forwards; } -.emotion-0 div.react-datepicker__input-container { - display: block; +.emotion-21[data-has-arrow="true"]::after { + content: " "; + position: absolute; + top: -5px; + left: 0px; + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); + margin-left: -8px; + border-width: 8px; + border-style: solid; + border-color: #151a2d transparent transparent transparent; + pointer-events: none; } -.emotion-0 div.react-datepicker__triangle { +.emotion-21[data-visible-in-dom="false"] { display: none; } -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; +.emotion-23 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 1rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; } -.emotion-0 .react-datepicker-popper { - z-index: 1000; +.emotion-25 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + width: 100%; } -.emotion-0 .calendar { +.emotion-27 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 1.5rem; + padding: 0 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.25rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: 1.5rem; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 0.875rem; font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; + font-weight: 500; + letter-spacing: 0; + line-height: 1.25rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; } -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; +.emotion-27:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; +.emotion-27:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-0 .calendar .react-datepicker__month { - margin: 0; +.emotion-27:hover, +.emotion-27:active { + background: #e9eaeb; + color: #222638; } -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; +.emotion-29 { + vertical-align: middle; + fill: currentColor; + height: 16px; + width: 16px; + min-width: 16px; + min-height: 16px; } -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; +.emotion-29 .fillStroke { + stroke: currentColor; + fill: none; +} + +.emotion-32 { color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; +.emotion-32::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; +.emotion-38 { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 0.5rem; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; } -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; +.emotion-41 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + height: 1.5625rem; + width: 100%; + padding: 0; } -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; +.emotion-41:hover { + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-41:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; +} + +.emotion-41:hover, +.emotion-41:active { + background: #e9eaeb; + color: #222638; +} + +.emotion-44 { + color: #727683; font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; +.emotion-44::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { +.emotion-47 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: #8c40ef; + border: none; color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; + height: 1.5625rem; + width: 100%; + padding: 0; } -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; +.emotion-47:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; +.emotion-47:active { + box-shadow: 0px 0px 0px 3px #8c40ef40; } -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-47:hover, +.emotion-47:active { + background: #792dd4; + color: #f9f9fa; } -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { +.emotion-50 { color: #ffffff; - background-color: #8c40ef; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-50::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} +
+
+
+
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+
+
+
+`; -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +exports[`DateInput > render correctly with showMonthYearPicker with excluded months 1`] = ` + + @keyframes animation-0 { + 0% { + opacity: 0; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } + + 100% { + opacity: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } +} + +.emotion-0 { + width: 100%; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1218,7 +2892,7 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1241,7 +2915,7 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1264,7 +2938,7 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -1276,7 +2950,7 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1288,71 +2962,73 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` background: #ffffff; border: 1px solid #d9dadd; border-radius: 0.25rem; + box-shadow: 0px 0px 0px 3px #8c40ef40; + border: 1px solid #8c40ef; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -1365,15 +3041,15 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1399,298 +3075,720 @@ exports[`DateInput > render correctly with showMonthYearPicker 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { +.emotion-18 .fillStroke { stroke: #3f4250; fill: none; } -
-
-
-
-
-
-
- -
-
-
-
- -
- - - - -
-
-
-
-
-
-
-
-
-`; +.emotion-21 { + background: #151a2d; + color: #ffffff; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; + text-align: center; + position: absolute; + max-width: 16.5rem; + overflow-wrap: break-word; + font-size: 0.8rem; + inset: 0 auto auto 0; + top: 0; + left: 0; + opacity: 0; + z-index: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + width: 100%; + background-color: #ffffff; + color: #3f4250; + box-shadow: 0px 4px 8px 0px #22263829,0px 8px 24px 0px #2226383d; + padding: 1rem; + border-radius: 0.25rem; +} -exports[`DateInput > renders correctly disabled 1`] = ` - - .emotion-0 { +.emotion-21[data-animated="true"] { + -webkit-animation: 0ms animation-0 forwards; + animation: 0ms animation-0 forwards; +} + +.emotion-21[data-has-arrow="true"]::after { + content: " "; + position: absolute; + top: -5px; + left: 0px; + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); + margin-left: -8px; + border-width: 8px; + border-style: solid; + border-color: #151a2d transparent transparent transparent; + pointer-events: none; +} + +.emotion-21[data-visible-in-dom="false"] { + display: none; +} + +.emotion-23 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 1rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-25 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + justify-content: space-between; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; +.emotion-27 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 1.5rem; + padding: 0 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.25rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: 1.5rem; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 0.875rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.25rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; } -.emotion-0 div.react-datepicker__input-container { - display: block; +.emotion-27:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 div.react-datepicker__triangle { - display: none; +.emotion-27:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; +.emotion-27:hover, +.emotion-27:active { + background: #e9eaeb; + color: #222638; } -.emotion-0 .react-datepicker-popper { - z-index: 1000; +.emotion-29 { + vertical-align: middle; + fill: currentColor; + height: 16px; + width: 16px; + min-width: 16px; + min-height: 16px; } -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; +.emotion-29 .fillStroke { + stroke: currentColor; + fill: none; } -.emotion-0 .calendar .react-datepicker__header { +.emotion-32 { color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; +.emotion-32::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__month { - margin: 0; +.emotion-38 { + display: grid; + grid-template-columns: 1fr 1fr 1fr; + gap: 0.5rem; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; } -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; +.emotion-41 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; font-family: Inter,Asap,sans-serif; - color: #3f4250; font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + height: 1.5625rem; + width: 100%; + padding: 0; +} + +.emotion-41:hover { + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-41:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; +} + +.emotion-41:hover, +.emotion-41:active { + background: #e9eaeb; + color: #222638; } -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { +.emotion-44 { color: #727683; - font-weight: 500; font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; +.emotion-44::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; +.emotion-47 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; + cursor: not-allowed; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: #8c40ef; + border: none; color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { + background: #e5dbfd; color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; + height: 1.5625rem; + width: 100%; + padding: 0; } -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; +.emotion-47:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; +.emotion-50 { + color: #ffffff; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; +.emotion-50::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; +.emotion-95 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: not-allowed; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + color: #b5b7bd; + height: 1.5625rem; + width: 100%; + padding: 0; } -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-95:hover { + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; +.emotion-98 { + color: #b5b7bd; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; } -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-98::first-letter { + text-transform: uppercase; } -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} +
+
+
+
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+
+
+
+`; -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +exports[`DateInput > renders correctly custom format with range 1`] = ` + + .emotion-0 { + width: 100%; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1713,7 +3811,7 @@ exports[`DateInput > renders correctly disabled 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1736,7 +3834,7 @@ exports[`DateInput > renders correctly disabled 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1759,7 +3857,7 @@ exports[`DateInput > renders correctly disabled 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -1771,7 +3869,7 @@ exports[`DateInput > renders correctly disabled 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1785,69 +3883,69 @@ exports[`DateInput > renders correctly disabled 1`] = ` border-radius: 0.25rem; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -1860,15 +3958,15 @@ exports[`DateInput > renders correctly disabled 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1894,17 +3992,17 @@ exports[`DateInput > renders correctly disabled 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; - fill: #b5b7bd; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + fill: #3f4250; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { - stroke: #b5b7bd; +.emotion-18 .fillStroke { + stroke: #3f4250; fill: none; } @@ -1915,278 +4013,87 @@ exports[`DateInput > renders correctly disabled 1`] = ` class="emotion-0 emotion-1" >
-
- -
-
-
-
- -
- - - - -
-
+ for=":r1cj:" + > + Date +
-
-
-
- - -`; - -exports[`DateInput > renders correctly error 1`] = ` - - .emotion-0 { - width: 100%; -} - -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} +
+
+ +
+ + + + +
+
+
+ + + + +
+`; -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +exports[`DateInput > renders correctly disabled 1`] = ` + + .emotion-0 { + width: 100%; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2209,7 +4116,7 @@ exports[`DateInput > renders correctly error 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2232,7 +4139,7 @@ exports[`DateInput > renders correctly error 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2255,7 +4162,7 @@ exports[`DateInput > renders correctly error 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -2267,7 +4174,7 @@ exports[`DateInput > renders correctly error 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2281,69 +4188,69 @@ exports[`DateInput > renders correctly error 1`] = ` border-radius: 0.25rem; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -2356,53 +4263,15 @@ exports[`DateInput > renders correctly error 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - gap: 0.5rem; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: normal; - -ms-flex-pack: normal; - -webkit-justify-content: normal; - justify-content: normal; - -webkit-box-flex-wrap: nowrap; - -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - padding: 0 1rem; -} - .emotion-16 { - vertical-align: middle; - fill: #b3144d; - height: 16px; - width: 16px; - min-width: 16px; - min-height: 16px; -} - -.emotion-16 .fillStroke { - stroke: #b3144d; - fill: none; -} - -.emotion-18 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2421,336 +4290,115 @@ exports[`DateInput > renders correctly error 1`] = ` justify-content: normal; -webkit-box-flex-wrap: nowrap; -webkit-flex-wrap: nowrap; - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - padding: 0 1rem; - border-left: 1px solid; - border-color: inherit; -} - -.emotion-20 { - vertical-align: middle; - fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; -} - -.emotion-20 .fillStroke { - stroke: #3f4250; - fill: none; -} - -.emotion-22 { - color: #b3144d; - font-size: 0.75rem; - font-family: Inter,Asap,sans-serif; - font-weight: 400; - letter-spacing: 0; - line-height: 1rem; - text-transform: none; - -webkit-text-decoration: none; - text-decoration: none; -} - -
-
-
-
-
-
-
- -
-
-
-
- -
- - - -
-
- - - - -
-
-
-

- error -

-
-
-
-
-
-
-`; - -exports[`DateInput > renders correctly error disabled 1`] = ` - - .emotion-0 { - width: 100%; -} - -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding: 0 1rem; + border-left: 1px solid; + border-color: inherit; } -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; +.emotion-18 { + vertical-align: middle; + fill: #b5b7bd; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-18 .fillStroke { + stroke: #b5b7bd; + fill: none; } -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} +
+
+
+
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+
+
+
+
+`; -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +exports[`DateInput > renders correctly error 1`] = ` + + .emotion-0 { + width: 100%; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2773,7 +4421,7 @@ exports[`DateInput > renders correctly error disabled 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2796,7 +4444,7 @@ exports[`DateInput > renders correctly error disabled 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2819,7 +4467,7 @@ exports[`DateInput > renders correctly error disabled 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -2831,7 +4479,7 @@ exports[`DateInput > renders correctly error disabled 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2845,69 +4493,69 @@ exports[`DateInput > renders correctly error disabled 1`] = ` border-radius: 0.25rem; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -2920,15 +4568,15 @@ exports[`DateInput > renders correctly error disabled 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2952,21 +4600,21 @@ exports[`DateInput > renders correctly error disabled 1`] = ` padding: 0 1rem; } -.emotion-16 { +.emotion-18 { vertical-align: middle; - fill: #ffbbd3; + fill: #b3144d; height: 16px; width: 16px; min-width: 16px; min-height: 16px; } -.emotion-16 .fillStroke { - stroke: #ffbbd3; +.emotion-18 .fillStroke { + stroke: #b3144d; fill: none; } -.emotion-18 { +.emotion-20 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2992,22 +4640,22 @@ exports[`DateInput > renders correctly error disabled 1`] = ` border-color: inherit; } -.emotion-20 { +.emotion-22 { vertical-align: middle; - fill: #b5b7bd; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + fill: #3f4250; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-20 .fillStroke { - stroke: #b5b7bd; +.emotion-22 .fillStroke { + stroke: #3f4250; fill: none; } -.emotion-22 { - color: #ffbbd3; +.emotion-24 { + color: #b3144d; font-size: 0.75rem; font-family: Inter,Asap,sans-serif; font-weight: 400; @@ -3025,84 +4673,83 @@ exports[`DateInput > renders correctly error disabled 1`] = ` class="emotion-0 emotion-1" >
+ +
+
+
+
+
- + +
-
-
- -
- - - -
-
+ - - - - -
+ + +
-

- error -

+

+ error +

@@ -3110,212 +4757,21 @@ exports[`DateInput > renders correctly error disabled 1`] = `
`; -exports[`DateInput > renders correctly error disabled required 1`] = ` +exports[`DateInput > renders correctly error disabled 1`] = ` .emotion-0 { width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; -} - -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3338,7 +4794,7 @@ exports[`DateInput > renders correctly error disabled required 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3361,7 +4817,7 @@ exports[`DateInput > renders correctly error disabled required 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3384,7 +4840,7 @@ exports[`DateInput > renders correctly error disabled required 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -3396,20 +4852,6 @@ exports[`DateInput > renders correctly error disabled required 1`] = ` text-decoration: none; } -.emotion-10 { - vertical-align: middle; - fill: #b3144d; - height: 8px; - width: 8px; - min-width: 8px; - min-height: 8px; -} - -.emotion-10 .fillStroke { - stroke: #b3144d; - fill: none; -} - .emotion-12 { display: -webkit-box; display: -webkit-flex; @@ -3574,10 +5016,10 @@ exports[`DateInput > renders correctly error disabled required 1`] = ` .emotion-22 { vertical-align: middle; fill: #b5b7bd; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } .emotion-22 .fillStroke { @@ -3604,93 +5046,84 @@ exports[`DateInput > renders correctly error disabled required 1`] = ` class="emotion-0 emotion-1" >
+ +
+
+
+
+
-
-
-
- -
- - - -
-
+ - - - - -
+ + +
-

- error -

+

+ error +

@@ -3698,212 +5131,418 @@ exports[`DateInput > renders correctly error disabled required 1`] = `
`; -exports[`DateInput > renders correctly min-max 1`] = ` +exports[`DateInput > renders correctly error disabled required 1`] = ` .emotion-0 { width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; +.emotion-2 { + display: inherit; } -.emotion-0 div.react-datepicker__input-container { - display: block; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-0 div.react-datepicker__triangle { - display: none; +.emotion-4 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; } -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; +.emotion-6 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.5rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; } -.emotion-0 .react-datepicker-popper { - z-index: 1000; +.emotion-8 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.25rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: start; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: start; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; } -.emotion-0 .calendar { +.emotion-10 { + color: #222638; + font-size: 1rem; font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; +.emotion-12 { + vertical-align: middle; + fill: #b3144d; + height: 8px; + width: 8px; + min-width: 8px; + min-height: 8px; } -.emotion-0 .calendar .react-datepicker__month { - margin: 0; +.emotion-12 .fillStroke { + stroke: #b3144d; + fill: none; } -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; +.emotion-14 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + height: 3rem; + background: #ffffff; + border: 1px solid #d9dadd; + border-radius: 0.25rem; } -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; +.emotion-14>.emotion-17 { color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; } -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { +.emotion-14>.emotion-17::-webkit-input-placeholder { color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; } -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; +.emotion-14>.emotion-17::-moz-placeholder { + color: #727683; } -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; +.emotion-14>.emotion-17:-ms-input-placeholder { + color: #727683; +} + +.emotion-14>.emotion-17::placeholder { + color: #727683; +} + +.emotion-14[data-success='true'] { + border-color: #22674e; +} + +.emotion-14[data-error='true'] { + border-color: #b3144d; +} + +.emotion-14[data-readonly='true'] { + background: #f9f9fa; + border-color: #d9dadd; +} + +.emotion-14[data-disabled='true'] { + background: #f3f3f4; + border-color: #e9eaeb; } -.emotion-0 .calendar .react-datepicker__day--outside-month { +.emotion-14[data-disabled='true']>.emotion-17 { color: #b5b7bd; - font-weight: 500; - font-size: 1rem; } -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; +.emotion-14[data-disabled='true']>.emotion-17::-webkit-input-placeholder { + color: #b5b7bd; } -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-14[data-disabled='true']>.emotion-17::-moz-placeholder { + color: #b5b7bd; +} + +.emotion-14[data-disabled='true']>.emotion-17:-ms-input-placeholder { + color: #b5b7bd; +} + +.emotion-14[data-disabled='true']>.emotion-17::placeholder { + color: #b5b7bd; } -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; +.emotion-14:not([data-disabled='true']):not([data-readonly]):hover { + border-color: #8c40ef; } -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; +.emotion-16 { + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; + border: none; + outline: none; + height: 100%; + width: 100%; + padding-left: 1rem; + background: transparent; + font-size: 0.875rem; } -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; +.emotion-16[data-size='large'] { + font-size: 1rem; } -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; +.emotion-16[data-size='small'] { + padding-left: 0.5rem; } -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; +.emotion-18 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0.5rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding: 0 1rem; +} + +.emotion-20 { + vertical-align: middle; + fill: #ffbbd3; + height: 16px; + width: 16px; + min-width: 16px; + min-height: 16px; +} + +.emotion-20 .fillStroke { + stroke: #ffbbd3; + fill: none; +} + +.emotion-22 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding: 0 1rem; + border-left: 1px solid; + border-color: inherit; } -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-24 { + vertical-align: middle; + fill: #b5b7bd; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; +.emotion-24 .fillStroke { + stroke: #b5b7bd; + fill: none; } -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; +.emotion-26 { + color: #ffbbd3; + font-size: 0.75rem; + font-family: Inter,Asap,sans-serif; + font-weight: 400; + letter-spacing: 0; + line-height: 1rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; } -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} +
+
+
+
+
+
+ + + + +
+
+
+
+ +
+ + + +
+
+ + + + +
+
+
+

+ error +

+
+
+
+
+
+`; -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +exports[`DateInput > renders correctly min-max 1`] = ` + + .emotion-0 { + width: 100%; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3926,7 +5565,7 @@ exports[`DateInput > renders correctly min-max 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3949,7 +5588,7 @@ exports[`DateInput > renders correctly min-max 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3972,7 +5611,7 @@ exports[`DateInput > renders correctly min-max 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -3984,7 +5623,7 @@ exports[`DateInput > renders correctly min-max 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3998,69 +5637,69 @@ exports[`DateInput > renders correctly min-max 1`] = ` border-radius: 0.25rem; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -4073,15 +5712,15 @@ exports[`DateInput > renders correctly min-max 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4107,16 +5746,16 @@ exports[`DateInput > renders correctly min-max 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { +.emotion-18 .fillStroke { stroke: #3f4250; fill: none; } @@ -4128,277 +5767,86 @@ exports[`DateInput > renders correctly min-max 1`] = ` class="emotion-0 emotion-1" >
-
- -
-
-
-
- -
- - - - -
-
+ for=":rs:" + > + Date +
-
-
- - -
-`; - -exports[`DateInput > renders correctly required 1`] = ` - - .emotion-0 { - width: 100%; -} - -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} +
+
+ +
+ + + + +
+
+
+ + + + +
+`; -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; +exports[`DateInput > renders correctly required 1`] = ` + + .emotion-0 { + width: 100%; } -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4421,7 +5869,7 @@ exports[`DateInput > renders correctly required 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4444,7 +5892,7 @@ exports[`DateInput > renders correctly required 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4467,7 +5915,7 @@ exports[`DateInput > renders correctly required 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -4479,7 +5927,7 @@ exports[`DateInput > renders correctly required 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { vertical-align: middle; fill: #b3144d; height: 8px; @@ -4488,12 +5936,12 @@ exports[`DateInput > renders correctly required 1`] = ` min-height: 8px; } -.emotion-10 .fillStroke { +.emotion-12 .fillStroke { stroke: #b3144d; fill: none; } -.emotion-12 { +.emotion-14 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4507,69 +5955,69 @@ exports[`DateInput > renders correctly required 1`] = ` border-radius: 0.25rem; } -.emotion-12>.emotion-15 { +.emotion-14>.emotion-17 { color: #3f4250; } -.emotion-12>.emotion-15::-webkit-input-placeholder { +.emotion-14>.emotion-17::-webkit-input-placeholder { color: #727683; } -.emotion-12>.emotion-15::-moz-placeholder { +.emotion-14>.emotion-17::-moz-placeholder { color: #727683; } -.emotion-12>.emotion-15:-ms-input-placeholder { +.emotion-14>.emotion-17:-ms-input-placeholder { color: #727683; } -.emotion-12>.emotion-15::placeholder { +.emotion-14>.emotion-17::placeholder { color: #727683; } -.emotion-12[data-success='true'] { +.emotion-14[data-success='true'] { border-color: #22674e; } -.emotion-12[data-error='true'] { +.emotion-14[data-error='true'] { border-color: #b3144d; } -.emotion-12[data-readonly='true'] { +.emotion-14[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-12[data-disabled='true'] { +.emotion-14[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-12[data-disabled='true']>.emotion-15 { +.emotion-14[data-disabled='true']>.emotion-17 { color: #b5b7bd; } -.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { +.emotion-14[data-disabled='true']>.emotion-17::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { +.emotion-14[data-disabled='true']>.emotion-17::-moz-placeholder { color: #b5b7bd; } -.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { +.emotion-14[data-disabled='true']>.emotion-17:-ms-input-placeholder { color: #b5b7bd; } -.emotion-12[data-disabled='true']>.emotion-15::placeholder { +.emotion-14[data-disabled='true']>.emotion-17::placeholder { color: #b5b7bd; } -.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-14:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-14 { +.emotion-16 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -4582,15 +6030,15 @@ exports[`DateInput > renders correctly required 1`] = ` font-size: 0.875rem; } -.emotion-14[data-size='large'] { +.emotion-16[data-size='large'] { font-size: 1rem; } -.emotion-14[data-size='small'] { +.emotion-16[data-size='small'] { padding-left: 0.5rem; } -.emotion-16 { +.emotion-18 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4616,16 +6064,16 @@ exports[`DateInput > renders correctly required 1`] = ` border-color: inherit; } -.emotion-18 { +.emotion-20 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-18 .fillStroke { +.emotion-20 .fillStroke { stroke: #3f4250; fill: none; } @@ -4637,72 +6085,72 @@ exports[`DateInput > renders correctly required 1`] = ` class="emotion-0 emotion-1" >
+ + + + +
+
+
+
+
- +
-
-
- -
- - - - -
-
-
@@ -4713,210 +6161,37 @@ exports[`DateInput > renders correctly required 1`] = ` exports[`DateInput > renders correctly with date-fns locale es 1`] = ` - .emotion-0 { + @keyframes animation-0 { + 0% { + opacity: 0; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } + + 100% { + opacity: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } +} + +.emotion-0 { width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; -} - -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4939,7 +6214,7 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4962,7 +6237,7 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4985,7 +6260,7 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -4997,7 +6272,7 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -5013,69 +6288,69 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` border: 1px solid #8c40ef; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -5088,15 +6363,15 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -5122,21 +6397,96 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { +.emotion-18 .fillStroke { stroke: #3f4250; fill: none; } -.emotion-18 { +.emotion-21 { + background: #151a2d; + color: #ffffff; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; + text-align: center; + position: absolute; + max-width: 16.5rem; + overflow-wrap: break-word; + font-size: 0.8rem; + inset: 0 auto auto 0; + top: 0; + left: 0; + opacity: 0; + z-index: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + width: 100%; + background-color: #ffffff; + color: #3f4250; + box-shadow: 0px 4px 8px 0px #22263829,0px 8px 24px 0px #2226383d; + padding: 1rem; + border-radius: 0.25rem; +} + +.emotion-21[data-animated="true"] { + -webkit-animation: 0ms animation-0 forwards; + animation: 0ms animation-0 forwards; +} + +.emotion-21[data-has-arrow="true"]::after { + content: " "; + position: absolute; + top: -5px; + left: 0px; + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); + margin-left: -8px; + border-width: 8px; + border-style: solid; + border-color: #151a2d transparent transparent transparent; + pointer-events: none; +} + +.emotion-21[data-visible-in-dom="false"] { + display: none; +} + +.emotion-23 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 1rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; +} + +.emotion-25 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -5145,10 +6495,10 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; @@ -5156,22 +6506,23 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; + width: 100%; } -.emotion-20 { +.emotion-27 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; - height: 2rem; - padding: 0 0.5rem; + height: 1.5rem; + padding: 0 0.25rem; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - gap: 0.5rem; + gap: 0.25rem; border-radius: 0.25rem; box-sizing: border-box; - width: 2rem; + width: 1.5rem; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -5197,22 +6548,22 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` color: #3f4250; } -.emotion-20:hover { +.emotion-27:hover { -webkit-text-decoration: none; text-decoration: none; } -.emotion-20:active { +.emotion-27:active { box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-20:hover, -.emotion-20:active { +.emotion-27:hover, +.emotion-27:active { background: #e9eaeb; color: #222638; } -.emotion-22 { +.emotion-29 { vertical-align: middle; fill: currentColor; height: 16px; @@ -5221,12 +6572,132 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` min-height: 16px; } -.emotion-22 .fillStroke { +.emotion-29 .fillStroke { stroke: currentColor; fill: none; } -.emotion-25 { +.emotion-32 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-32::first-letter { + text-transform: uppercase; +} + +.emotion-38 { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 0.5rem; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; +} + +.emotion-41 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-41::first-letter { + text-transform: uppercase; +} + +.emotion-62 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + height: 1.5625rem; + width: 100%; + padding: 0; +} + +.emotion-62:hover { + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-62:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; +} + +.emotion-62:hover, +.emotion-62:active { + background: #e9eaeb; + color: #222638; +} + +.emotion-64 { + color: #b5b7bd; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-84 { + color: #727683; font-size: 1rem; font-family: Inter,Asap,sans-serif; font-weight: 500; @@ -5235,7 +6706,6 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` text-transform: none; -webkit-text-decoration: none; text-decoration: none; - text-transform: capitalize; }
renders correctly with date-fns locale es 1`] = ` class="emotion-0 emotion-1" >
+ +
+
+
+
+
+ + + + +
+
+
+
+ -
-
-
-
-
- -
-
-
- 28 -
-
- 29 -
-
- 30 -
-
- 31 -
-
- 1 -
-
- 2 -
-
- 3 -
-
-
-
- 4 -
-
- 5 -
-
- 6 -
-
- 7 -
-
- 8 -
-
- 9 -
-
- 10 -
-
-
-
- 11 -
-
- 12 -
-
- 13 -
-
- 14 -
-
- 15 -
-
- 16 -
-
- 17 -
-
-
-
- 18 -
-
- 19 -
-
- 20 -
-
- 21 -
-
- 22 -
-
- 23 -
-
- 24 -
-
-
-
- 25 -
-
- 26 -
-
- 27 -
-
- 28 -
-
- 29 -
-
- 30 -
-
- 31 -
-
-
-
- 1 -
-
- 2 -
-
- 3 -
-
- 4 -
-
- 5 -
-
- 6 -
-
- 7 -
-
+
+ + 25 +
-
+ + + + + + + + + + + + + +
-
@@ -5934,210 +7392,37 @@ exports[`DateInput > renders correctly with date-fns locale es 1`] = ` exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` - .emotion-0 { + @keyframes animation-0 { + 0% { + opacity: 0; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } + + 100% { + opacity: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } +} + +.emotion-0 { width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; -} - -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6160,7 +7445,7 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6183,7 +7468,7 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6206,7 +7491,7 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -6218,7 +7503,7 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6234,69 +7519,69 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` border: 1px solid #8c40ef; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -6309,15 +7594,15 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6338,26 +7623,101 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; - padding: 0 1rem; - border-left: 1px solid; - border-color: inherit; -} - -.emotion-16 { - vertical-align: middle; - fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; -} - -.emotion-16 .fillStroke { - stroke: #3f4250; - fill: none; + padding: 0 1rem; + border-left: 1px solid; + border-color: inherit; +} + +.emotion-18 { + vertical-align: middle; + fill: #3f4250; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; +} + +.emotion-18 .fillStroke { + stroke: #3f4250; + fill: none; +} + +.emotion-21 { + background: #151a2d; + color: #ffffff; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; + text-align: center; + position: absolute; + max-width: 16.5rem; + overflow-wrap: break-word; + font-size: 0.8rem; + inset: 0 auto auto 0; + top: 0; + left: 0; + opacity: 0; + z-index: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + width: 100%; + background-color: #ffffff; + color: #3f4250; + box-shadow: 0px 4px 8px 0px #22263829,0px 8px 24px 0px #2226383d; + padding: 1rem; + border-radius: 0.25rem; +} + +.emotion-21[data-animated="true"] { + -webkit-animation: 0ms animation-0 forwards; + animation: 0ms animation-0 forwards; +} + +.emotion-21[data-has-arrow="true"]::after { + content: " "; + position: absolute; + top: -5px; + left: 0px; + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); + margin-left: -8px; + border-width: 8px; + border-style: solid; + border-color: #151a2d transparent transparent transparent; + pointer-events: none; +} + +.emotion-21[data-visible-in-dom="false"] { + display: none; +} + +.emotion-23 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 1rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; } -.emotion-18 { +.emotion-25 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6366,10 +7726,10 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; @@ -6377,22 +7737,23 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; + width: 100%; } -.emotion-20 { +.emotion-27 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; - height: 2rem; - padding: 0 0.5rem; + height: 1.5rem; + padding: 0 0.25rem; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - gap: 0.5rem; + gap: 0.25rem; border-radius: 0.25rem; box-sizing: border-box; - width: 2rem; + width: 1.5rem; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -6418,22 +7779,22 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` color: #3f4250; } -.emotion-20:hover { +.emotion-27:hover { -webkit-text-decoration: none; text-decoration: none; } -.emotion-20:active { +.emotion-27:active { box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-20:hover, -.emotion-20:active { +.emotion-27:hover, +.emotion-27:active { background: #e9eaeb; color: #222638; } -.emotion-22 { +.emotion-29 { vertical-align: middle; fill: currentColor; height: 16px; @@ -6442,12 +7803,132 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` min-height: 16px; } -.emotion-22 .fillStroke { +.emotion-29 .fillStroke { stroke: currentColor; fill: none; } -.emotion-25 { +.emotion-32 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-32::first-letter { + text-transform: uppercase; +} + +.emotion-38 { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 0.5rem; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; +} + +.emotion-41 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-41::first-letter { + text-transform: uppercase; +} + +.emotion-62 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + height: 1.5625rem; + width: 100%; + padding: 0; +} + +.emotion-62:hover { + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-62:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; +} + +.emotion-62:hover, +.emotion-62:active { + background: #e9eaeb; + color: #222638; +} + +.emotion-64 { + color: #b5b7bd; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-84 { + color: #727683; font-size: 1rem; font-family: Inter,Asap,sans-serif; font-weight: 500; @@ -6456,7 +7937,6 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` text-transform: none; -webkit-text-decoration: none; text-decoration: none; - text-transform: capitalize; }
renders correctly with date-fns locale fr 1`] = ` class="emotion-0 emotion-1" >
+ +
+
+
+
+
+ + + + +
+
+
+
+ -
-
-
-
-
- -
-
-
- 28 -
-
- 29 -
-
- 30 -
-
- 31 -
-
- 1 -
-
- 2 -
-
- 3 -
-
-
-
- 4 -
-
- 5 -
-
- 6 -
-
- 7 -
-
- 8 -
-
- 9 -
-
- 10 -
-
-
-
- 11 -
-
- 12 -
-
- 13 -
-
- 14 -
-
- 15 -
-
- 16 -
-
- 17 -
-
-
-
- 18 -
-
- 19 -
-
- 20 -
-
- 21 -
-
- 22 -
-
- 23 -
-
- 24 -
-
-
-
- 25 -
-
- 26 -
-
- 27 -
-
- 28 -
-
- 29 -
-
- 30 -
-
- 31 -
-
-
-
- 1 -
-
- 2 -
-
- 3 -
-
- 4 -
-
- 5 -
-
- 6 -
-
- 7 -
-
+
+ + 24 +
-
+ + + + + + + + + + + + + + +
-
@@ -7155,210 +8623,37 @@ exports[`DateInput > renders correctly with date-fns locale fr 1`] = ` exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` - .emotion-0 { + @keyframes animation-0 { + 0% { + opacity: 0; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } + + 100% { + opacity: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + } +} + +.emotion-0 { width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; -} - -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -7381,7 +8676,7 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -7404,7 +8699,7 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -7427,7 +8722,7 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -7439,7 +8734,7 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -7455,69 +8750,69 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` border: 1px solid #8c40ef; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -7530,27 +8825,119 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { - font-size: 1rem; +.emotion-14[data-size='large'] { + font-size: 1rem; +} + +.emotion-14[data-size='small'] { + padding-left: 0.5rem; +} + +.emotion-16 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + gap: 0rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; + -webkit-box-flex-wrap: nowrap; + -webkit-flex-wrap: nowrap; + -ms-flex-wrap: nowrap; + flex-wrap: nowrap; + padding: 0 1rem; + border-left: 1px solid; + border-color: inherit; +} + +.emotion-18 { + vertical-align: middle; + fill: #3f4250; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; +} + +.emotion-18 .fillStroke { + stroke: #3f4250; + fill: none; +} + +.emotion-21 { + background: #151a2d; + color: #ffffff; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; + text-align: center; + position: absolute; + max-width: 16.5rem; + overflow-wrap: break-word; + font-size: 0.8rem; + inset: 0 auto auto 0; + top: 0; + left: 0; + opacity: 0; + z-index: 1; + -webkit-transform: translate3d(0px, 4px, 0); + -moz-transform: translate3d(0px, 4px, 0); + -ms-transform: translate3d(0px, 4px, 0); + transform: translate3d(0px, 4px, 0); + width: 100%; + background-color: #ffffff; + color: #3f4250; + box-shadow: 0px 4px 8px 0px #22263829,0px 8px 24px 0px #2226383d; + padding: 1rem; + border-radius: 0.25rem; +} + +.emotion-21[data-animated="true"] { + -webkit-animation: 0ms animation-0 forwards; + animation: 0ms animation-0 forwards; } -.emotion-12[data-size='small'] { - padding-left: 0.5rem; +.emotion-21[data-has-arrow="true"]::after { + content: " "; + position: absolute; + top: -5px; + left: 0px; + -webkit-transform: rotate(180deg); + -moz-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); + margin-left: -8px; + border-width: 8px; + border-style: solid; + border-color: #151a2d transparent transparent transparent; + pointer-events: none; } -.emotion-14 { +.emotion-21[data-visible-in-dom="false"] { + display: none; +} + +.emotion-23 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; - gap: 0rem; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; + gap: 1rem; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; -webkit-box-pack: normal; -ms-flex-pack: normal; -webkit-justify-content: normal; @@ -7559,26 +8946,9 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; - padding: 0 1rem; - border-left: 1px solid; - border-color: inherit; -} - -.emotion-16 { - vertical-align: middle; - fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; -} - -.emotion-16 .fillStroke { - stroke: #3f4250; - fill: none; } -.emotion-18 { +.emotion-25 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -7587,10 +8957,10 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between; @@ -7598,22 +8968,23 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` -webkit-flex-wrap: nowrap; -ms-flex-wrap: nowrap; flex-wrap: nowrap; + width: 100%; } -.emotion-20 { +.emotion-27 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; display: inline-flex; - height: 2rem; - padding: 0 0.5rem; + height: 1.5rem; + padding: 0 0.25rem; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; - gap: 0.5rem; + gap: 0.25rem; border-radius: 0.25rem; box-sizing: border-box; - width: 2rem; + width: 1.5rem; -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -7639,22 +9010,22 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` color: #3f4250; } -.emotion-20:hover { +.emotion-27:hover { -webkit-text-decoration: none; text-decoration: none; } -.emotion-20:active { +.emotion-27:active { box-shadow: 0px 0px 0px 3px #151a2d5c; } -.emotion-20:hover, -.emotion-20:active { +.emotion-27:hover, +.emotion-27:active { background: #e9eaeb; color: #222638; } -.emotion-22 { +.emotion-29 { vertical-align: middle; fill: currentColor; height: 16px; @@ -7663,12 +9034,132 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` min-height: 16px; } -.emotion-22 .fillStroke { +.emotion-29 .fillStroke { stroke: currentColor; fill: none; } -.emotion-25 { +.emotion-32 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-32::first-letter { + text-transform: uppercase; +} + +.emotion-38 { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 0.5rem; + -webkit-align-items: normal; + -webkit-box-align: normal; + -ms-flex-align: normal; + align-items: normal; + -webkit-box-pack: normal; + -ms-flex-pack: normal; + -webkit-justify-content: normal; + justify-content: normal; +} + +.emotion-41 { + color: #3f4250; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; + display: inline-block; + text-transform: lowercase; +} + +.emotion-41::first-letter { + text-transform: uppercase; +} + +.emotion-62 { + display: -webkit-inline-box; + display: -webkit-inline-flex; + display: -ms-inline-flexbox; + display: inline-flex; + height: 3rem; + padding: 0 1rem; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; + gap: 0.5rem; + border-radius: 0.25rem; + box-sizing: border-box; + width: auto; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + cursor: pointer; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; + outline-offset: 2px; + white-space: nowrap; + -webkit-text-decoration: none; + text-decoration: none; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + paragraph-spacing: 0; + text-case: none; + background: none; + border: none; + color: #3f4250; + height: 1.5625rem; + width: 100%; + padding: 0; +} + +.emotion-62:hover { + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-62:active { + box-shadow: 0px 0px 0px 3px #151a2d5c; +} + +.emotion-62:hover, +.emotion-62:active { + background: #e9eaeb; + color: #222638; +} + +.emotion-64 { + color: #b5b7bd; + font-size: 1rem; + font-family: Inter,Asap,sans-serif; + font-weight: 500; + letter-spacing: 0; + line-height: 1.5rem; + text-transform: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.emotion-84 { + color: #727683; font-size: 1rem; font-family: Inter,Asap,sans-serif; font-weight: 500; @@ -7677,7 +9168,6 @@ exports[`DateInput > renders correctly with date-fns locale ru 1`] = ` text-transform: none; -webkit-text-decoration: none; text-decoration: none; - text-transform: capitalize; }
renders correctly with date-fns locale ru 1`] = ` class="emotion-0 emotion-1" >
+ +
+
+
+
+
+ + + + +
+
+
+
+ -
-
-
-
-
- -
-
-
- 28 -
-
- 29 -
-
- 30 -
-
- 31 -
-
- 1 -
-
- 2 -
-
- 3 -
-
-
-
- 4 -
-
- 5 -
-
- 6 -
-
- 7 -
-
- 8 -
-
- 9 -
-
- 10 -
-
-
-
- 11 -
-
- 12 -
-
- 13 -
-
- 14 -
-
- 15 -
-
- 16 -
-
- 17 -
-
-
-
- 18 -
-
- 19 -
-
- 20 -
-
- 21 -
-
- 22 -
-
- 23 -
-
- 24 -
-
-
-
- 25 -
-
- 26 -
-
- 27 -
-
- 28 -
-
- 29 -
-
- 30 -
-
- 31 -
-
-
-
- 1 -
-
- 2 -
-
- 3 -
-
- 4 -
-
- 5 -
-
- 6 -
-
- 7 -
-
+
+ + 16 +
-
+ + + + + + + + + + + + + + + + + + + + + + +
-
@@ -8380,206 +9858,15 @@ exports[`DateInput > renders correctly with default props 1`] = ` width: 100%; } -.emotion-0 div.react-datepicker-wrapper { - display: block; -} - -.emotion-0 div.react-datepicker__input-container { - display: block; -} - -.emotion-0 div.react-datepicker__triangle { - display: none; -} - -.emotion-0 div.react-datepicker__month-container { - padding: 1rem; - width: 20rem; -} - -.emotion-0 .react-datepicker-popper { - z-index: 1000; -} - -.emotion-0 .calendar { - font-family: Inter,Asap,sans-serif; - border-color: #e9eaeb; - background-color: #ffffff; - box-shadow:0: 0px 4px 8px 0px #22263829; - 1: 0px 8px 24px 0px #2226383d; -} - -.emotion-0 .calendar .react-datepicker__header { - color: #3f4250; - background-color: #ffffff; - border-bottom: none; - text-align: inherit; - display: block; - padding-top: 0; - position: inherit; -} - -.emotion-0 .calendar .react-datepicker__triangle { - border-bottom-color: #f9f9fa; -} - -.emotion-0 .calendar .react-datepicker__month { - margin: 0; -} - -.emotion-0 .calendar .react-datepicker__day-names { - margin-top: 0.5rem; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; -} - -.emotion-0 .calendar .react-datepicker__day-name { - font-family: Inter,Asap,sans-serif; - color: #3f4250; - font-weight: 500; - font-size: 0.875rem; - line-height: 1.25rem; - text-align: center; - margin: 0.25rem; - text-transform: capitalize; -} - -.emotion-0 .calendar .react-datepicker__day, -.emotion-0 .calendar .react-datepicker__month { - color: #727683; - font-weight: 500; - font-size: 1rem; - margin-left: 0.25rem; - margin-right: 0.25rem; -} - -.emotion-0 .calendar .react-datepicker__day { - width: 2rem; - height: 2rem; -} - -.emotion-0 .calendar .react-datepicker__month-text { - height: 2rem; - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - -webkit-justify-content: center; - justify-content: center; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; -} - -.emotion-0 .calendar .react-datepicker__day--outside-month { - color: #b5b7bd; - font-weight: 500; - font-size: 1rem; -} - -.emotion-0 .calendar .react-datepicker__day--selected, -.emotion-0 .calendar .react-datepicker__month-text--selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--selected[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--selected:disabled, -.emotion-0 .calendar .react-datepicker__month-text--selected:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-selecting-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-selecting-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--in-range, -.emotion-0 .calendar .react-datepicker__month-text--in-range { - color: #641cb3; - background-color: #f1eefc; -} - -.emotion-0 .calendar .react-datepicker__day--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--in-range[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--in-range:disabled, -.emotion-0 .calendar .react-datepicker__month-text--in-range:disabled { - color: #d8c5fc; - background-color: #f6f5fd; -} - -.emotion-0 .calendar .react-datepicker__day--range-start, -.emotion-0 .calendar .react-datepicker__month-text--range-start { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-start[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-start:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-start:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--range-end, -.emotion-0 .calendar .react-datepicker__month-text--range-end { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__month-text--range-end[aria-disabled="true"], -.emotion-0 .calendar .react-datepicker__day--range-end:disabled, -.emotion-0 .calendar .react-datepicker__month-text--range-end:disabled { - color: #ffffff; - background-color: #e5dbfd; -} - -.emotion-0 .calendar .react-datepicker__day--keyboard-selected, -.emotion-0 .calendar .react-datepicker__month-text--keyboard-selected { - color: #ffffff; - background-color: #8c40ef; -} - -.emotion-0 .calendar .react-datepicker__day:hover, -.emotion-0 .calendar .react-datepicker__month-text:hover { - color: #222638; - background-color: #e9eaeb; -} - -.emotion-0 .calendar .react-datepicker__day--disabled, -.emotion-0 .calendar .react-datepicker__month-text--disabled { - color: #b5b7bd; +.emotion-2 { + display: inherit; } -.emotion-0 .calendar .react-datepicker__day--disabled:hover, -.emotion-0 .calendar .react-datepicker__month-text--disabled:hover { - color: #b5b7bd; - background-color: transparent; +.emotion-2[data-container-full-width="true"] { + width: 100%; } -.emotion-2 { +.emotion-4 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -8602,7 +9889,7 @@ exports[`DateInput > renders correctly with default props 1`] = ` flex-wrap: nowrap; } -.emotion-4 { +.emotion-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -8625,7 +9912,7 @@ exports[`DateInput > renders correctly with default props 1`] = ` flex-wrap: nowrap; } -.emotion-6 { +.emotion-8 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -8648,7 +9935,7 @@ exports[`DateInput > renders correctly with default props 1`] = ` flex-wrap: nowrap; } -.emotion-8 { +.emotion-10 { color: #222638; font-size: 1rem; font-family: Inter,Asap,sans-serif; @@ -8660,7 +9947,7 @@ exports[`DateInput > renders correctly with default props 1`] = ` text-decoration: none; } -.emotion-10 { +.emotion-12 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -8674,69 +9961,69 @@ exports[`DateInput > renders correctly with default props 1`] = ` border-radius: 0.25rem; } -.emotion-10>.emotion-13 { +.emotion-12>.emotion-15 { color: #3f4250; } -.emotion-10>.emotion-13::-webkit-input-placeholder { +.emotion-12>.emotion-15::-webkit-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::-moz-placeholder { +.emotion-12>.emotion-15::-moz-placeholder { color: #727683; } -.emotion-10>.emotion-13:-ms-input-placeholder { +.emotion-12>.emotion-15:-ms-input-placeholder { color: #727683; } -.emotion-10>.emotion-13::placeholder { +.emotion-12>.emotion-15::placeholder { color: #727683; } -.emotion-10[data-success='true'] { +.emotion-12[data-success='true'] { border-color: #22674e; } -.emotion-10[data-error='true'] { +.emotion-12[data-error='true'] { border-color: #b3144d; } -.emotion-10[data-readonly='true'] { +.emotion-12[data-readonly='true'] { background: #f9f9fa; border-color: #d9dadd; } -.emotion-10[data-disabled='true'] { +.emotion-12[data-disabled='true'] { background: #f3f3f4; border-color: #e9eaeb; } -.emotion-10[data-disabled='true']>.emotion-13 { +.emotion-12[data-disabled='true']>.emotion-15 { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-webkit-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-webkit-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::-moz-placeholder { +.emotion-12[data-disabled='true']>.emotion-15::-moz-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13:-ms-input-placeholder { +.emotion-12[data-disabled='true']>.emotion-15:-ms-input-placeholder { color: #b5b7bd; } -.emotion-10[data-disabled='true']>.emotion-13::placeholder { +.emotion-12[data-disabled='true']>.emotion-15::placeholder { color: #b5b7bd; } -.emotion-10:not([data-disabled='true']):not([data-readonly]):hover { +.emotion-12:not([data-disabled='true']):not([data-readonly]):hover { border-color: #8c40ef; } -.emotion-12 { +.emotion-14 { -webkit-flex: 1; -ms-flex: 1; flex: 1; @@ -8749,15 +10036,15 @@ exports[`DateInput > renders correctly with default props 1`] = ` font-size: 0.875rem; } -.emotion-12[data-size='large'] { +.emotion-14[data-size='large'] { font-size: 1rem; } -.emotion-12[data-size='small'] { +.emotion-14[data-size='small'] { padding-left: 0.5rem; } -.emotion-14 { +.emotion-16 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -8783,16 +10070,16 @@ exports[`DateInput > renders correctly with default props 1`] = ` border-color: inherit; } -.emotion-16 { +.emotion-18 { vertical-align: middle; fill: #3f4250; - height: 1em; - width: 1em; - min-width: 1em; - min-height: 1em; + height: 20px; + width: 20px; + min-width: 20px; + min-height: 20px; } -.emotion-16 .fillStroke { +.emotion-18 .fillStroke { stroke: #3f4250; fill: none; } @@ -8804,62 +10091,62 @@ exports[`DateInput > renders correctly with default props 1`] = ` class="emotion-0 emotion-1" >
-
- -
+ Date +
-
+
+
+
+
- -
+ - - - - -
+ + +
diff --git a/packages/ui/src/components/DateInput/__tests__/helper.test.ts b/packages/ui/src/components/DateInput/__tests__/helper.test.ts new file mode 100644 index 0000000000..b842a41f15 --- /dev/null +++ b/packages/ui/src/components/DateInput/__tests__/helper.test.ts @@ -0,0 +1,90 @@ +import { describe, expect, test } from 'vitest' +import { + addZero, + formatValue, + getMonthFirstDay, + getNextMonth, + getPreviousMonth, + isSameDay, + isSameMonth, +} from '../helpers' + +const rangeDate = { + start: new Date('20 October 2000'), + end: new Date('31 October 2000'), +} + +const date = new Date('20 November 2000') + +describe('Helper functions dateInput', () => { + test('getMonthFirstDay should work', () => { + expect(getMonthFirstDay(1, 2000)).toBe(5) + }) + + test('addZero should work', () => { + expect(addZero(1)).toBe('01') + }) + + test('getPreviousMonth should work', () => { + const beforeJan2000 = getPreviousMonth(1, 2000) + expect(beforeJan2000[0]).toBe(12) + expect(beforeJan2000[1]).toBe(1999) + + const beforeDec2000 = getPreviousMonth(12, 2000) + expect(beforeDec2000[0]).toBe(11) + expect(beforeDec2000[1]).toBe(2000) + }) + + test('getNextMonth should work', () => { + const afterDec2000 = getNextMonth(12, 2000) + expect(afterDec2000[0]).toBe(1) + expect(afterDec2000[1]).toBe(2001) + + const afterNov2000 = getNextMonth(11, 2000) + expect(afterNov2000[0]).toBe(12) + expect(afterNov2000[1]).toBe(2000) + }) + + test('isSameMonth should work', () => { + expect(isSameMonth(new Date('23 Dec 2023'), new Date('22 Dec 2023'))).toBe( + true, + ) + expect(isSameMonth(new Date('23 Dec 2023'), new Date('23 Oct 2023'))).toBe( + false, + ) + }) + + test('isSameDay should work', () => { + expect(isSameDay(new Date(), new Date('22 Dec 1999'))).toBe(false) + expect(isSameDay(new Date('23 Dec 2023'), new Date('23 Dec 2023'))).toBe( + true, + ) + }) + + test('formatValue should work with default formatting', () => { + expect(formatValue(date, null, false, false)).toBe('11/20/2000') + expect(formatValue(date, null, true, false)).toBe('11/2000') + expect(formatValue(date, null, false, true)).toBe('11/20/2000') + + expect(formatValue(null, rangeDate, false, false)).toBe(undefined) + expect(formatValue(null, rangeDate, true, true)).toBe('10/2000 - 10/2000') + expect(formatValue(null, rangeDate, false, true)).toBe( + '10/20/2000 - 10/31/2000', + ) + }) + + test('formatValue should work with custom formatting', () => { + const format = (value?: Date) => + value ? String(value.getFullYear()) : '1999' + + expect(formatValue(date, null, false, false, format)).toBe('2000') + expect(formatValue(date, null, true, false, format)).toBe('2000') + expect(formatValue(date, null, false, true, format)).toBe('2000') + + expect(formatValue(null, rangeDate, false, false, format)).toBe(undefined) + expect(formatValue(null, rangeDate, true, true, format)).toBe('2000 - 2000') + expect(formatValue(null, rangeDate, false, true, format)).toBe( + '2000 - 2000', + ) + }) +}) diff --git a/packages/ui/src/components/DateInput/__tests__/index.test.tsx b/packages/ui/src/components/DateInput/__tests__/index.test.tsx index 9213d331e9..ca195f9aca 100644 --- a/packages/ui/src/components/DateInput/__tests__/index.test.tsx +++ b/packages/ui/src/components/DateInput/__tests__/index.test.tsx @@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event' import { renderWithTheme } from '@utils/test' import { es, fr, ru } from 'date-fns/locale' import tk from 'timekeeper' -import { describe, expect, test } from 'vitest' +import { describe, expect, test, vi } from 'vitest' import { DateInput } from '..' tk.freeze(new Date(1609503120000)) @@ -17,12 +17,10 @@ describe('DateInput', () => { onBlur={() => {}} onFocus={() => {}} locale={fr} - value={new Date('1995-12-17T03:24:00.000+00:00').toISOString()} + value={new Date('1995-12-17T03:24:00.000+00:00')} name="test" autoFocus={false} - format={value => - value instanceof Date ? value.toISOString() : value?.toString() - } + format={value => (value instanceof Date ? value.toISOString() : value)} />, ) expect(asFragment()).toMatchSnapshot() @@ -113,6 +111,21 @@ describe('DateInput', () => { ) expect(asFragment()).toMatchSnapshot() }) + test('render correctly with showMonthYearPicker with default date', async () => { + const { asFragment } = renderWithTheme( + {}} + value={new Date('1995-02-11T03:24:00.000+00:00')} + placeholder="YYYY-MM-DD" + />, + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + expect(asFragment()).toMatchSnapshot() + }) test('render correctly with a range of date', () => { const { asFragment } = renderWithTheme( @@ -127,7 +140,7 @@ describe('DateInput', () => { expect(asFragment()).toMatchSnapshot() }) - test('render correctly with a array of dates to exclude', () => { + test('render correctly with a array of dates to exclude', async () => { const { asFragment } = renderWithTheme( { new Date('1995-12-13T03:24:00.000+00:00'), new Date('1995-12-14T03:24:00.000+00:00'), ]} + placeholder="YYYY-MM-DD" onChange={() => {}} />, ) + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + expect(asFragment()).toMatchSnapshot() }) + + test('handle correctly click outside', async () => { + renderWithTheme( + <> + Outside + {}} placeholder="YYYY-MM-DD" /> + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + await userEvent.click(screen.getByText('Outside')) + await userEvent.click(screen.getByText('Outside')) + expect(calendar).not.toBeVisible() + }) + + test('handle correctly click to change month', async () => { + renderWithTheme( + <> + Outside + {}} + placeholder="YYYY-MM-DD" + value={new Date('1995-12-11T03:24:00.000+00:00')} + /> + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + + const visibleMonth = screen.getByText(/December/i) + await userEvent.click(screen.getByTestId('previous-month')) + expect(visibleMonth.textContent).toContain('November') + + await userEvent.click(screen.getByTestId('next-month')) + expect(visibleMonth.textContent).toContain('December') + }) + + test('handle correctly click to change year', async () => { + renderWithTheme( + <> + Outside + {}} + placeholder="YYYY-MM-DD" + value={new Date('1995-12-11T03:24:00.000+00:00')} + showMonthYearPicker + /> + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + + const visibleMonth = screen.getByText(/1995/i) + await userEvent.click(screen.getByTestId('previous-month')) + expect(visibleMonth.textContent).toContain('1994') + + await userEvent.click(screen.getByTestId('next-month')) + expect(visibleMonth.textContent).toContain('1995') + }) + + test('handle correctly click on date', async () => { + renderWithTheme( + {}} + placeholder="YYYY-MM-DD" + value={new Date('1995-12-11T03:24:00.000+00:00')} + />, + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + + await userEvent.click(input) + + await userEvent.click(screen.getByText('15')) + expect(input.value).toBe('12/15/1995') + + await userEvent.click(input) + + const dayFromLastMonth = screen.getAllByText('30')[0] // the first element in this array is from previous month + await userEvent.click(dayFromLastMonth) + + await userEvent.click(input) + expect(input.value).toBe('11/30/1995') + + await userEvent.click(input) + const dayFromNextMonth = screen.getAllByText('1')[1] + await userEvent.click(dayFromNextMonth) + expect(input.value).toBe('12/01/1995') + }) + + test('handle correctly click on date range', async () => { + renderWithTheme( + {}} + placeholder="YYYY-MM-DD" + selectsRange + value={new Date('1995-02-11T03:24:00.000+00:00')} + />, + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + + await userEvent.click(screen.getByText('15')) + expect(input.value).toBe('02/15/1995 - ') + const day = screen.getByText('27') + + await userEvent.hover(day) + await userEvent.unhover(day) + + await userEvent.click(day) + expect(input.value).toBe('02/15/1995 - 02/27/1995') + + await userEvent.click(input) + await userEvent.click(screen.getByText('31')) + expect(input.value).toBe('01/31/1995 - ') + }) + + test('render correctly with showMonthYearPicker with excluded months', async () => { + const { asFragment } = renderWithTheme( + {}} + value={new Date('1995-02-11T03:24:00.000+00:00')} + placeholder="YYYY-MM-DD" + excludeDates={[new Date('1995-10-01'), new Date('1995-02-01')]} + />, + ) + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + expect(asFragment()).toMatchSnapshot() + }) + + test('handle correctly click on date with showmonthYearPicker', async () => { + renderWithTheme( + {}} + placeholder="YYYY-MM-DD" + value={new Date('1995-12-11T03:24:00.000+00:00')} + showMonthYearPicker + />, + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + + await userEvent.click(screen.getByText('Jan')) + expect(input.value).toBe('01/1995') + }) + + test('handle correctly click on date range with showMonthYearPicker', async () => { + renderWithTheme( + {}} + placeholder="YYYY-MM-DD" + selectsRange + showMonthYearPicker + value={new Date('1995-12-11T03:24:00.000+00:00')} + />, + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + const calendar = screen.getByRole('dialog') + expect(calendar).toBeVisible() + + await userEvent.click(screen.getByText('Aug')) + expect(input.value).toBe('08/1995 - ') + const month = screen.getByText('Feb') + + await userEvent.hover(month) + await userEvent.unhover(month) + + await userEvent.click(month) + expect(input.value).toBe('02/1995 - ') + + await userEvent.click(screen.getByText('Sep')) + expect(input.value).toBe('02/1995 - 09/1995') + }) + + test('renders correctly custom format with range', () => { + const { asFragment } = renderWithTheme( + {}} + onBlur={() => {}} + onFocus={() => {}} + selectsRange + startDate={new Date('1995-12-11T03:24:00.000+00:00')} + endDate={new Date('1995-12-11T03:24:00.000+00:00')} + name="test" + autoFocus={false} + format={value => (value instanceof Date ? value.toISOString() : value)} + />, + ) + expect(asFragment()).toMatchSnapshot() + }) + + test('handle correctly type in input', async () => { + const mockOnChange = vi.fn() + renderWithTheme( + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + + await userEvent.type(input, '08/21/1995') + expect(mockOnChange).toBeCalled() + expect(screen.getByText('August', { exact: false })).toBeInTheDocument() + }) + + test('handle correctly type in input with select range', async () => { + const mockOnChange = vi.fn() + renderWithTheme( + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + + await userEvent.type(input, '08/21/1995') + expect(mockOnChange).toBeCalled() + expect(screen.getByText('August', { exact: false })).toBeInTheDocument() + }) + + test('handle correctly type in input with showMonthYearPicker', async () => { + const mockOnChange = vi.fn() + renderWithTheme( + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + + await userEvent.type(input, '2000/08') + expect(mockOnChange).toBeCalled() + expect(screen.getByText('2000', { exact: false })).toBeInTheDocument() + }) + + test('handle correctly type in input with select range and showMonthYearPicker', async () => { + const mockOnChange = vi.fn() + renderWithTheme( + , + ) + + const input = screen.getByPlaceholderText('YYYY-MM-DD') + await userEvent.click(input) + + await userEvent.type(input, '2000/08') + expect(mockOnChange).toBeCalled() + expect(screen.getByText('2000', { exact: false })).toBeInTheDocument() + }) }) diff --git a/packages/ui/src/components/DateInput/components/CalendarDaily.tsx b/packages/ui/src/components/DateInput/components/CalendarDaily.tsx new file mode 100644 index 0000000000..84334c5c46 --- /dev/null +++ b/packages/ui/src/components/DateInput/components/CalendarDaily.tsx @@ -0,0 +1,283 @@ +import styled from '@emotion/styled' +import type { MouseEvent as MouseEventReact } from 'react' +import { useContext, useState } from 'react' +import { Button } from '../../Button' +import { Row } from '../../Row' +import { Text } from '../../Text' +import { DateInputContext } from '../Context' +import { CALENDAR_WEEKS } from '../constants' +import { + formatValue, + getMonthFirstDay, + getNextMonth, + getPreviousMonth, + isSameDay, +} from '../helpers' + +const ButtonDate = styled(Button)` + height: ${({ theme }) => theme.sizing['312']}; + width: 100%; + padding: 0; +` + +const RangeButton = styled(Button)` + background-color: ${({ theme }) => theme.colors.primary.background}; + height: ${({ theme }) => theme.sizing['312']}; + width: 100%; + padding: 0; +` + +const CapitalizedText = styled(Text)` + display: inline-block; + text-transform: lowercase; + + &::first-letter { + text-transform: uppercase; + } +` + +export const Daily = ({ disabled }: { disabled: boolean }) => { + const { + value, + yearToShow, + monthToShow, + setValue, + setMonthToShow, + onChange, + setYearToShow, + excludeDates, + minDate, + maxDate, + DAYS, + selectsRange, + range, + setRange, + setInputValue, + format, + setVisible, + } = useContext(DateInputContext) + + const [rangeState, setRangeState] = useState<'start' | 'none' | 'done'>( + range?.start ? 'start' : 'none', + ) // Used when selectsRange is True. Kow the current state of the range: none when start date not selected, start when start date is selected, done when start & end date selected + + const [hoveredDate, setHoveredDate] = useState(null) + + const monthDays = new Date(yearToShow, monthToShow, 0).getDate() // Number of days in the month + + const daysFromPreviousMonth = getMonthFirstDay(monthToShow, yearToShow) // Number of days from the previous month to show. + + const daysFromNextMonth = + CALENDAR_WEEKS * 7 - (daysFromPreviousMonth + monthDays) // We want to display 6 CALENDAR_WEEKS lines, so we show days from the next month + + const [previousMonth, prevMonthYear] = getPreviousMonth( + monthToShow, + yearToShow, + ) + + const [nextMonth, nextMonthYear] = getNextMonth(monthToShow, yearToShow) + const previousMonthDays = new Date(prevMonthYear, previousMonth, 0).getDate() // Number of days in the previous month + + // Get the dates to be displayed from the previous month + const prevMonthDates = Array.from( + { length: daysFromPreviousMonth }, + (_, index) => ({ + day: index + 1 + (previousMonthDays - daysFromPreviousMonth), + month: -1, + }), + ) + + // Get the dates to be displayed from the current month + const currentMonthDates = Array.from({ length: monthDays }, (_, index) => ({ + day: index + 1, + month: 0, + })) + + // Get the dates to be displayed from the next month + const nextMonthDates = Array.from( + { length: daysFromNextMonth }, + (_, index) => ({ day: index + 1, month: 1 }), + ) + + const allDaysToShow = [ + ...prevMonthDates, + ...currentMonthDates, + ...nextMonthDates, + ] // Array of the days to display { day : day n°, isCurrentMonth: if it is the current day} + + return ( + + {Object.entries(DAYS).map(day => ( + + {day[1]} + + ))} + {allDaysToShow.map(data => { + const constructedDate = new Date( + yearToShow, + monthToShow - 1 + data.month, + data.day, + ) + const isExcluded = excludeDates + ? excludeDates + .map(date => isSameDay(constructedDate, date)) + .includes(true) + : false + + // Whether the date < minDate or date > maxDate + const isOutsideRange = + !!(minDate && constructedDate < minDate) || + !!(maxDate && constructedDate > maxDate) + + // Whether the date is selected + const isSelected = + (value && isSameDay(constructedDate, new Date(value))) || + (range?.end && isSameDay(constructedDate, range.end)) || + (range?.start && isSameDay(constructedDate, range.start)) + + // Whether the date is after the start date - useful when selectsRange is set to true + const isAfterStartDate = + selectsRange && range?.start && constructedDate > range.start + + const isInHoveredRange = + (selectsRange && + range?.start && + constructedDate > range.start && + hoveredDate && + constructedDate < hoveredDate) || + (range?.start && + range.end && + constructedDate < range.end && + constructedDate > range.start) + + const getNewDate = () => { + // Clicked on a day from the previous month + if (data.month !== 0 && data.day > 15) { + setMonthToShow(previousMonth) + setYearToShow(prevMonthYear) + + return new Date(prevMonthYear, previousMonth - 1, data.day) + } + + // Clicked on a day from the next month + if (data.month !== 0 && data.day < 15) { + setMonthToShow(nextMonth) + setYearToShow(nextMonthYear) + + return new Date(nextMonthYear, nextMonth - 1, data.day) + } + + return new Date(yearToShow, monthToShow - 1, data.day) + } + + const onClickRange = (event: MouseEventReact, newDate: Date) => { + if (selectsRange) { + // Selecting start date + if (rangeState === 'none') { + setRange?.({ start: newDate, end: null }) + onChange?.([newDate, null], event) + setInputValue( + formatValue( + null, + { start: newDate, end: null }, + false, + true, + format, + ), + ) + setRangeState('start') + } + + // Selecting end date + else if (isAfterStartDate) { + setRange?.({ start: range.start, end: newDate }) + onChange?.([range.start, newDate], event) + setInputValue( + formatValue( + null, + { start: range.start, end: newDate }, + false, + true, + format, + ), + ) + setVisible(false) + setRangeState('done') + } else { + // End date before start + setRange?.({ start: newDate, end: null }) + setInputValue( + formatValue( + null, + { start: newDate, end: null }, + false, + true, + format, + ), + ) + onChange?.([newDate, null], event) + } + } + } + const createTestId = () => { + if (isInHoveredRange) return 'rangeButton' + if (data.month === -1) return 'dayLastMonth' + if (data.month === 1) return 'dayNextMonth' + + return undefined + } + + const Day = isInHoveredRange ? RangeButton : ButtonDate + + return ( + { + if (!isExcluded && !isOutsideRange) { + const newDate = getNewDate() + + if (selectsRange) { + onClickRange(event, newDate) + } else { + setValue(newDate) + onChange?.(newDate, event) + setInputValue( + formatValue(newDate, null, false, false, format), + ) + setVisible(false) + } + } + }} + onMouseEnter={() => { + if (selectsRange && range?.start) setHoveredDate(constructedDate) + }} + onMouseLeave={() => { + if (selectsRange && range?.start) setHoveredDate(null) + }} + > + + {data.day} + + + ) + })} + + ) +} diff --git a/packages/ui/src/components/DateInput/components/CalendarMonthly.tsx b/packages/ui/src/components/DateInput/components/CalendarMonthly.tsx new file mode 100644 index 0000000000..ba7540f455 --- /dev/null +++ b/packages/ui/src/components/DateInput/components/CalendarMonthly.tsx @@ -0,0 +1,179 @@ +import styled from '@emotion/styled' +import type { MouseEvent as MouseEventReact } from 'react' +import { useContext, useState } from 'react' +import { Button } from '../../Button' +import { Row } from '../../Row' +import { Text } from '../../Text' +import { DateInputContext } from '../Context' +import { formatValue, isSameMonth } from '../helpers' + +const ButtonDate = styled(Button)` + height: ${({ theme }) => theme.sizing['312']}; + width: 100%; + padding: 0; +` + +const RangeButton = styled(Button)` + background-color: ${({ theme }) => theme.colors.primary.background}; + height: ${({ theme }) => theme.sizing['312']}; + width: 100%; + padding: 0; +` + +const CapitalizedText = styled(Text)` +display: inline-block; +text-transform: lowercase; + +&::first-letter { + text-transform: uppercase; +} +` + +export const Monthly = ({ disabled }: { disabled: boolean }) => { + const { + yearToShow, + setValue, + setMonthToShow, + MONTHS, + onChange, + selectsRange, + setRange, + range, + minDate, + maxDate, + excludeDates, + value, + setInputValue, + format, + setVisible, + } = useContext(DateInputContext) + const [rangeState, setRangeState] = useState<'start' | 'none' | 'done'>( + range?.start ? 'start' : 'none', + ) // Used when selectsRange is True. It is used to know the current state of the range: none when start date not selected, start when start date is selected, done when start & end date selected + const [hoveredDate, setHoveredDate] = useState(null) + + return ( + + {Object.entries(MONTHS).map((month, index) => { + const constructedDate = new Date(yearToShow, index, 1) + + const isExcluded = excludeDates + ? excludeDates + .map(date => isSameMonth(constructedDate, date)) + .includes(true) + : false + + const isOutsideRange = + !!(minDate && constructedDate < minDate) || + !!(maxDate && constructedDate > maxDate) + + const isAfterStartDate = + selectsRange && range?.start && constructedDate > range.start + + const isInHoveredRange = + (selectsRange && + range?.start && + constructedDate > range.start && + hoveredDate && + constructedDate < hoveredDate) || + (range?.start && + range.end && + constructedDate < range.end && + constructedDate > range.start) + + const isSelected = + (value && isSameMonth(constructedDate, value)) || + (range?.start && isSameMonth(constructedDate, range.start)) || + (range?.end && isSameMonth(constructedDate, range.end)) + + const onClickRange = (event: MouseEventReact, newDate: Date) => { + // Must wrap inside this if otherwise TypeScript doesn't get the right type for onChange + if (selectsRange) { + // Selecting start date + if (rangeState === 'none') { + setRange?.({ start: newDate, end: null }) + onChange?.([newDate, null], event) + setInputValue( + formatValue( + null, + { start: newDate, end: null }, + true, + true, + format, + ), + ) + setRangeState('start') + } + + // Selecting end date + else if (isAfterStartDate) { + setRange?.({ start: range.start, end: newDate }) + onChange?.([range.start, newDate], event) + setInputValue( + formatValue( + null, + { start: range.start, end: newDate }, + true, + true, + format, + ), + ) + setVisible(false) + setRangeState('done') + } else { + // End date before start + setRange?.({ start: newDate, end: null }) + setInputValue( + formatValue( + null, + { start: newDate, end: null }, + true, + true, + format, + ), + ) + onChange?.([newDate, null], event) + } + } + } + const Month = isInHoveredRange ? RangeButton : ButtonDate + + return ( + { + if (!isExcluded && !isOutsideRange) { + if (selectsRange) { + onClickRange(event, constructedDate) + } else { + setMonthToShow(index + 1) + setValue(constructedDate) + onChange?.(constructedDate, event) + setInputValue( + formatValue(constructedDate, null, true, false, format), + ) + setVisible(false) + } + } + }} + onMouseEnter={() => setHoveredDate(constructedDate)} + onMouseLeave={() => setHoveredDate(null)} + > + + {month[1]} + + + ) + })} + + ) +} diff --git a/packages/ui/src/components/DateInput/components/Popup.tsx b/packages/ui/src/components/DateInput/components/Popup.tsx new file mode 100644 index 0000000000..c972a096a3 --- /dev/null +++ b/packages/ui/src/components/DateInput/components/Popup.tsx @@ -0,0 +1,170 @@ +import styled from '@emotion/styled' +import type { Dispatch, ReactNode, RefObject, SetStateAction } from 'react' +import { useContext, useEffect, useRef } from 'react' +import { Button } from '../../Button' +import { Popup } from '../../Popup' +import { Stack } from '../../Stack' +import { Text } from '../../Text' +import { DateInputContext } from '../Context' +import { POPUP_WIDTH } from '../constants' +import { getNextMonth, getPreviousMonth } from '../helpers' +import { Daily } from './CalendarDaily' +import { Monthly } from './CalendarMonthly' + +const CapitalizedText = styled(Text)` + display: inline-block; + text-transform: lowercase; + + &::first-letter { + text-transform: uppercase; + } +` +type PopupProps = { + children: ReactNode + visible: boolean + setVisible: Dispatch> + refInput: RefObject +} + +const StyledPopup = styled(Popup)` + width: 100%; + background-color: ${({ theme }) => theme.colors.other.elevation.background.raised}; + color: ${({ theme }) => theme.colors.neutral.text}; + box-shadow: ${({ theme }) => `${theme.shadows.raised[0]}, ${theme.shadows.raised[1]}`}; + padding: ${({ theme }) => theme.space[2]}; + border-radius: ${({ theme }) => theme.radii.default}; +` + +const handleClickOutside = ( + event: MouseEvent, + ref: RefObject, + setVisible: Dispatch>, + refInput: RefObject, +) => { + if ( + ref.current && + !ref.current.contains(event.target as Node) && + !refInput.current?.contains(event.target as Node) + ) { + setVisible(false) + } +} + +const PopupContent = () => { + const { + showMonthYearPicker, + disabled, + monthToShow, + yearToShow, + setMonthToShow, + setYearToShow, + maxDate, + minDate, + MONTHS_ARR, + } = useContext(DateInputContext) + + return ( + + +