@nypl/design-system-react-components 0.25.11 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +151 -0
- package/README.md +14 -26
- package/dist/components/Accordion/Accordion.d.ts +6 -4
- package/dist/components/Accordion/AccordionTypes.d.ts +5 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -4
- package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Card/Card.d.ts +22 -29
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +9 -6
- package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +5 -6
- package/dist/components/Fieldset/Fieldset.d.ts +5 -6
- package/dist/components/Form/Form.d.ts +6 -6
- package/dist/components/Grid/GridTypes.d.ts +7 -7
- package/dist/components/Grid/SimpleGrid.d.ts +1 -1
- package/dist/components/Heading/Heading.d.ts +5 -5
- package/dist/components/Heading/HeadingTypes.d.ts +1 -1
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +9 -8
- package/dist/components/Hero/Hero.d.ts +9 -5
- package/dist/components/HorizontalRule/HorizontalRule.d.ts +2 -10
- package/dist/components/Icons/Icon.d.ts +2 -1
- package/dist/components/Icons/IconTypes.d.ts +10 -7
- package/dist/components/Image/Image.d.ts +27 -9
- package/dist/components/Image/ImageTypes.d.ts +4 -4
- package/dist/components/Label/Label.d.ts +7 -4
- package/dist/components/Link/Link.d.ts +1 -1
- package/dist/components/List/List.d.ts +11 -11
- package/dist/components/List/ListTypes.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +2 -1
- package/dist/components/Logo/LogoSvgs.d.ts +8 -0
- package/dist/components/Logo/LogoTypes.d.ts +10 -2
- package/dist/components/Notification/Notification.d.ts +7 -7
- package/dist/components/Pagination/Pagination.d.ts +8 -4
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +3 -3
- package/dist/components/Radio/Radio.d.ts +5 -7
- package/dist/components/RadioGroup/RadioGroup.d.ts +16 -8
- package/dist/components/SearchBar/SearchBar.d.ts +5 -5
- package/dist/components/Select/Select.d.ts +12 -8
- package/dist/components/Select/SelectTypes.d.ts +4 -0
- package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +8 -6
- package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +0 -4
- package/dist/components/Slider/Slider.d.ts +6 -4
- package/dist/components/StatusBadge/StatusBadge.d.ts +5 -1
- package/dist/components/StructuredContent/StructuredContent.d.ts +10 -23
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +7 -6
- package/dist/components/Template/Template.d.ts +18 -9
- package/dist/components/Text/Text.d.ts +4 -4
- package/dist/components/Text/TextTypes.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +7 -7
- package/dist/components/Toggle/Toggle.d.ts +8 -10
- package/dist/components/Toggle/{ToggleSizes.d.ts → ToggleTypes.d.ts} +1 -1
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
- package/dist/design-system-react-components.cjs.development.js +2802 -1686
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +2811 -1699
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/helpers/enums.d.ts +4 -0
- package/dist/hooks/useCarouselStyles.d.ts +3 -2
- package/dist/hooks/useNYPLTheme.d.ts +12 -0
- package/dist/index.d.ts +11 -9
- package/dist/styles.css +1 -1
- package/dist/theme/components/accordion.d.ts +7 -12
- package/dist/theme/components/breadcrumb.d.ts +6 -0
- package/dist/theme/components/button.d.ts +10 -2
- package/dist/theme/components/card.d.ts +44 -24
- package/dist/theme/components/checkbox.d.ts +6 -6
- package/dist/theme/components/checkboxGroup.d.ts +4 -2
- package/dist/theme/components/componentWrapper.d.ts +2 -2
- package/dist/theme/components/customTable.d.ts +84 -1
- package/dist/theme/components/fieldset.d.ts +6 -14
- package/dist/theme/components/global.d.ts +37 -29
- package/dist/theme/components/globalMixins.d.ts +8 -8
- package/dist/theme/components/heading.d.ts +53 -0
- package/dist/theme/components/helperErrorText.d.ts +1 -0
- package/dist/theme/components/hero.d.ts +21 -15
- package/dist/theme/components/image.d.ts +1 -1
- package/dist/theme/components/label.d.ts +9 -10
- package/dist/theme/components/list.d.ts +105 -9
- package/dist/theme/components/notification.d.ts +7 -4
- package/dist/theme/components/pagination.d.ts +2 -5
- package/dist/theme/components/radio.d.ts +10 -6
- package/dist/theme/components/radioGroup.d.ts +4 -2
- package/dist/theme/components/select.d.ts +38 -13
- package/dist/theme/components/skeletonLoader.d.ts +2 -2
- package/dist/theme/components/slider.d.ts +14 -7
- package/dist/theme/components/structuredContent.d.ts +197 -0
- package/dist/theme/components/textInput.d.ts +22 -14
- package/dist/theme/components/toggle.d.ts +25 -6
- package/dist/theme/foundations/global.d.ts +33 -3
- package/dist/theme/foundations/radii.d.ts +1 -0
- package/dist/theme/foundations/spacing.d.ts +46 -43
- package/dist/utils/utils.d.ts +10 -0
- package/package.json +5 -6
- package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +34 -0
- package/src/components/Accordion/Accordion.stories.mdx +150 -66
- package/src/components/Accordion/Accordion.test.tsx +65 -17
- package/src/components/Accordion/Accordion.tsx +61 -27
- package/src/components/Accordion/AccordionTypes.tsx +5 -0
- package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +505 -14
- package/src/components/Autosuggest/Autosuggest.stories.mdx +4 -3
- package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +53 -18
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +66 -35
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +14 -13
- package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +2 -1
- package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +308 -10
- package/src/components/Button/Button.stories.mdx +87 -23
- package/src/components/Button/Button.test.tsx +25 -0
- package/src/components/Button/Button.tsx +18 -7
- package/src/components/Button/__snapshots__/Button.test.tsx.snap +27 -7
- package/src/components/Card/Card.stories.mdx +493 -329
- package/src/components/Card/Card.test.tsx +138 -18
- package/src/components/Card/Card.tsx +151 -85
- package/src/components/Card/__snapshots__/Card.test.tsx.snap +220 -100
- package/src/components/Chakra/Center.stories.mdx +2 -2
- package/src/components/Chakra/Grid.stories.mdx +4 -4
- package/src/components/Checkbox/Checkbox.stories.mdx +73 -9
- package/src/components/Checkbox/Checkbox.test.tsx +89 -10
- package/src/components/Checkbox/Checkbox.tsx +27 -16
- package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +209 -6
- package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +135 -23
- package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +216 -90
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +39 -26
- package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +493 -89
- package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +12 -0
- package/src/components/ComponentWrapper/ComponentWrapper.tsx +39 -41
- package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +47 -34
- package/src/components/DatePicker/DatePicker.stories.mdx +63 -27
- package/src/components/DatePicker/DatePicker.test.tsx +94 -15
- package/src/components/DatePicker/DatePicker.tsx +67 -58
- package/src/components/DatePicker/_DatePicker.scss +71 -13
- package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +250 -206
- package/src/components/Fieldset/Fieldset.stories.mdx +33 -3
- package/src/components/Fieldset/Fieldset.test.tsx +58 -28
- package/src/components/Fieldset/Fieldset.tsx +35 -30
- package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +40 -19
- package/src/components/Form/Form.stories.mdx +118 -47
- package/src/components/Form/Form.test.tsx +59 -16
- package/src/components/Form/Form.tsx +89 -65
- package/src/components/Form/__snapshots__/Form.test.tsx.snap +83 -5
- package/src/components/Grid/GridTypes.tsx +7 -7
- package/src/components/Grid/SimpleGrid.stories.mdx +87 -41
- package/src/components/Grid/SimpleGrid.test.tsx +24 -9
- package/src/components/Grid/SimpleGrid.tsx +29 -20
- package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +16 -1
- package/src/components/Heading/Heading.stories.mdx +56 -25
- package/src/components/Heading/Heading.test.tsx +17 -7
- package/src/components/Heading/Heading.tsx +60 -58
- package/src/components/Heading/HeadingTypes.tsx +1 -1
- package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +27 -8
- package/src/components/HelperErrorText/HelperErrorText.stories.mdx +64 -42
- package/src/components/HelperErrorText/HelperErrorText.test.tsx +15 -0
- package/src/components/HelperErrorText/HelperErrorText.tsx +40 -35
- package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +35 -4
- package/src/components/Hero/Hero.stories.mdx +143 -113
- package/src/components/Hero/Hero.test.tsx +146 -58
- package/src/components/Hero/Hero.tsx +144 -112
- package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +89 -17
- package/src/components/HorizontalRule/HorizontalRule.stories.mdx +26 -4
- package/src/components/HorizontalRule/HorizontalRule.test.tsx +9 -17
- package/src/components/HorizontalRule/HorizontalRule.tsx +9 -25
- package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +18 -5
- package/src/components/Icons/Icon.stories.mdx +80 -23
- package/src/components/Icons/Icon.test.tsx +51 -2
- package/src/components/Icons/Icon.tsx +93 -71
- package/src/components/Icons/IconTypes.tsx +9 -6
- package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
- package/src/components/Image/Image.stories.mdx +160 -71
- package/src/components/Image/Image.test.tsx +40 -48
- package/src/components/Image/Image.tsx +80 -48
- package/src/components/Image/ImageTypes.ts +4 -4
- package/src/components/Image/__snapshots__/Image.test.tsx.snap +84 -21
- package/src/components/Label/Label.stories.mdx +42 -20
- package/src/components/Label/Label.test.tsx +42 -17
- package/src/components/Label/Label.tsx +22 -13
- package/src/components/Label/__snapshots__/Label.test.tsx.snap +19 -15
- package/src/components/Link/Link.stories.mdx +25 -1
- package/src/components/Link/Link.test.tsx +21 -0
- package/src/components/Link/Link.tsx +16 -9
- package/src/components/Link/__snapshots__/Link.test.tsx.snap +37 -11
- package/src/components/List/List.stories.mdx +75 -40
- package/src/components/List/List.test.tsx +73 -22
- package/src/components/List/List.tsx +44 -28
- package/src/components/List/ListTypes.tsx +1 -1
- package/src/components/List/__snapshots__/List.test.tsx.snap +110 -8
- package/src/components/Logo/Logo.stories.mdx +40 -16
- package/src/components/Logo/Logo.test.tsx +29 -2
- package/src/components/Logo/Logo.tsx +28 -11
- package/src/components/Logo/LogoSvgs.tsx +16 -0
- package/src/components/Logo/LogoTypes.tsx +9 -1
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +73 -2
- package/src/components/Modal/Modal.stories.mdx +13 -0
- package/src/components/Notification/Notification.stories.mdx +34 -5
- package/src/components/Notification/Notification.test.tsx +43 -9
- package/src/components/Notification/Notification.tsx +59 -55
- package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +256 -32
- package/src/components/Pagination/Pagination.stories.mdx +76 -13
- package/src/components/Pagination/Pagination.test.tsx +116 -5
- package/src/components/Pagination/Pagination.tsx +54 -29
- package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +247 -30
- package/src/components/Placeholder/Placeholder.tsx +3 -1
- package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +76 -10
- package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +87 -13
- package/src/components/ProgressIndicator/ProgressIndicator.tsx +20 -10
- package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +101 -14
- package/src/components/Radio/Radio.stories.mdx +75 -11
- package/src/components/Radio/Radio.test.tsx +83 -9
- package/src/components/Radio/Radio.tsx +70 -61
- package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +168 -10
- package/src/components/RadioGroup/RadioGroup.stories.mdx +293 -94
- package/src/components/RadioGroup/RadioGroup.test.tsx +193 -68
- package/src/components/RadioGroup/RadioGroup.tsx +110 -101
- package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1258 -902
- package/src/components/SearchBar/SearchBar.stories.mdx +104 -39
- package/src/components/SearchBar/{SearchBar.Test.tsx → SearchBar.test.tsx} +66 -6
- package/src/components/SearchBar/SearchBar.tsx +23 -13
- package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1039 -0
- package/src/components/Select/Select.stories.mdx +151 -62
- package/src/components/Select/Select.test.tsx +56 -44
- package/src/components/Select/Select.tsx +125 -104
- package/src/components/Select/SelectTypes.tsx +5 -0
- package/src/components/Select/__snapshots__/Select.test.tsx.snap +749 -409
- package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +53 -23
- package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +14 -8
- package/src/components/SkeletonLoader/SkeletonLoader.tsx +80 -78
- package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +0 -5
- package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +169 -10
- package/src/components/Slider/Slider.stories.mdx +123 -41
- package/src/components/Slider/Slider.test.tsx +65 -17
- package/src/components/Slider/Slider.tsx +34 -24
- package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +403 -226
- package/src/components/StatusBadge/StatusBadge.stories.mdx +19 -1
- package/src/components/StatusBadge/StatusBadge.test.tsx +19 -1
- package/src/components/StatusBadge/StatusBadge.tsx +25 -20
- package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +22 -3
- package/src/components/StructuredContent/StructuredContent.stories.mdx +229 -61
- package/src/components/StructuredContent/StructuredContent.test.tsx +162 -101
- package/src/components/StructuredContent/StructuredContent.tsx +98 -103
- package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +102 -17
- package/src/components/StyleGuide/Bidirectionality.stories.mdx +9 -9
- package/src/components/StyleGuide/Breakpoints.stories.mdx +6 -6
- package/src/components/StyleGuide/Buttons.stories.mdx +2 -12
- package/src/components/StyleGuide/ColorCard.tsx +4 -4
- package/src/components/StyleGuide/Colors.stories.mdx +34 -20
- package/src/components/StyleGuide/DesignTokens.stories.mdx +56 -26
- package/src/components/StyleGuide/Forms.stories.mdx +27 -12
- package/src/components/StyleGuide/Iconography.stories.mdx +2 -12
- package/src/components/StyleGuide/Spacing.stories.mdx +80 -41
- package/src/components/StyleGuide/Typography.stories.mdx +47 -33
- package/src/components/Table/Table.stories.mdx +38 -11
- package/src/components/Table/Table.test.tsx +16 -1
- package/src/components/Table/Table.tsx +10 -8
- package/src/components/Table/__snapshots__/Table.test.tsx.snap +408 -5
- package/src/components/Tabs/Tabs.stories.mdx +59 -10
- package/src/components/Tabs/Tabs.test.tsx +29 -11
- package/src/components/Tabs/Tabs.tsx +28 -21
- package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +394 -5
- package/src/components/Template/Template.stories.mdx +73 -32
- package/src/components/Template/Template.test.tsx +68 -5
- package/src/components/Template/Template.tsx +86 -72
- package/src/components/Template/__snapshots__/Template.test.tsx.snap +195 -22
- package/src/components/Text/Text.stories.mdx +32 -15
- package/src/components/Text/Text.test.tsx +14 -11
- package/src/components/Text/Text.tsx +13 -16
- package/src/components/Text/TextTypes.tsx +1 -1
- package/src/components/Text/__snapshots__/Text.test.tsx.snap +21 -4
- package/src/components/TextInput/TextInput.stories.mdx +73 -27
- package/src/components/TextInput/TextInput.test.tsx +65 -50
- package/src/components/TextInput/TextInput.tsx +123 -115
- package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +96 -73
- package/src/components/Toggle/Toggle.stories.mdx +74 -26
- package/src/components/Toggle/Toggle.test.tsx +41 -10
- package/src/components/Toggle/Toggle.tsx +31 -27
- package/src/components/Toggle/{ToggleSizes.tsx → ToggleTypes.tsx} +1 -1
- package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +195 -8
- package/src/components/VideoPlayer/VideoPlayer.stories.mdx +52 -4
- package/src/components/VideoPlayer/VideoPlayer.test.tsx +41 -6
- package/src/components/VideoPlayer/VideoPlayer.tsx +134 -120
- package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +81 -39
- package/src/docs/Chakra.stories.mdx +51 -10
- package/src/docs/Welcome.stories.mdx +168 -0
- package/src/{components/Card/CardTypes.tsx → helpers/enums.ts} +2 -2
- package/src/hooks/tests/useNYPLTheme.test.tsx +1 -1
- package/src/hooks/useCarouselStyles.stories.mdx +30 -0
- package/src/hooks/useCarouselStyles.ts +3 -2
- package/src/hooks/useNYPLTheme.stories.mdx +101 -0
- package/src/hooks/useNYPLTheme.ts +31 -7
- package/src/hooks/useWindowSize.stories.mdx +23 -0
- package/src/index.ts +11 -15
- package/src/styles/base/_place-holder.scss +3 -1
- package/src/styles.scss +0 -2
- package/src/theme/components/accordion.ts +7 -12
- package/src/theme/components/breadcrumb.ts +7 -0
- package/src/theme/components/button.ts +15 -7
- package/src/theme/components/card.ts +56 -36
- package/src/theme/components/checkbox.ts +12 -14
- package/src/theme/components/checkboxGroup.ts +4 -2
- package/src/theme/components/componentWrapper.ts +2 -2
- package/src/theme/components/customTable.ts +39 -31
- package/src/theme/components/fieldset.ts +3 -2
- package/src/theme/components/global.ts +42 -33
- package/src/theme/components/globalMixins.ts +8 -8
- package/src/theme/components/heading.ts +1 -1
- package/src/theme/components/helperErrorText.ts +1 -0
- package/src/theme/components/hero.ts +14 -16
- package/src/theme/components/icon.ts +5 -2
- package/src/theme/components/image.ts +1 -1
- package/src/theme/components/label.ts +4 -3
- package/src/theme/components/list.ts +76 -65
- package/src/theme/components/notification.ts +10 -7
- package/src/theme/components/pagination.ts +2 -5
- package/src/theme/components/progressIndicator.ts +3 -3
- package/src/theme/components/radio.ts +11 -14
- package/src/theme/components/radioGroup.ts +4 -2
- package/src/theme/components/select.ts +37 -18
- package/src/theme/components/skeletonLoader.ts +3 -3
- package/src/theme/components/slider.ts +19 -15
- package/src/theme/components/statusBadge.ts +2 -2
- package/src/theme/components/structuredContent.ts +66 -1
- package/src/theme/components/tabs.ts +2 -2
- package/src/theme/components/template.ts +9 -9
- package/src/theme/components/textInput.ts +13 -12
- package/src/theme/components/toggle.ts +76 -42
- package/src/theme/components/videoPlayer.ts +1 -1
- package/src/theme/foundations/colors.ts +20 -13
- package/src/theme/foundations/global.ts +17 -5
- package/src/theme/foundations/radii.ts +1 -0
- package/src/theme/foundations/spacing.ts +70 -22
- package/src/theme/foundations/typography.ts +3 -3
- package/src/utils/componentCategories.ts +28 -21
- package/src/utils/utils.ts +28 -0
- package/dist/components/Card/CardTypes.d.ts +0 -4
- package/dist/components/CheckboxGroup/CheckboxGroupLayoutTypes.d.ts +0 -4
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -13
- package/dist/components/RadioGroup/RadioGroupLayoutTypes.d.ts +0 -4
- package/dist/components/SearchBar/SearchBar.Test.d.ts +0 -1
- package/dist/helpers/generateUUID.d.ts +0 -1
- package/src/components/CheckboxGroup/CheckboxGroupLayoutTypes.tsx +0 -4
- package/src/components/Pagination/Pagination.stories.tsx +0 -54
- package/src/components/RadioGroup/RadioGroupLayoutTypes.tsx +0 -4
- package/src/docs/Intro.stories.mdx +0 -53
- package/src/helpers/generateUUID.tsx +0 -5
- package/src/styles/base/_03-base.scss +0 -25
- package/src/styles/base/_04-focus.scss +0 -22
|
@@ -2,27 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
|
|
4
4
|
<div
|
|
5
|
-
className="css-
|
|
6
|
-
id="basic-form-field
|
|
5
|
+
className="css-7ajbp2"
|
|
6
|
+
id="basic-form-field"
|
|
7
7
|
>
|
|
8
8
|
<fieldset
|
|
9
|
-
className="css-
|
|
9
|
+
className="css-13wylk3"
|
|
10
10
|
id="basic"
|
|
11
11
|
>
|
|
12
12
|
<legend>
|
|
13
13
|
Select the full date you want to visit NYPL
|
|
14
|
-
<div
|
|
15
|
-
className="css-0"
|
|
16
|
-
>
|
|
17
|
-
Optional
|
|
18
|
-
</div>
|
|
19
14
|
</legend>
|
|
20
15
|
<div
|
|
21
|
-
className="css-
|
|
16
|
+
className="css-1vpopwd"
|
|
22
17
|
id="basic-form-row"
|
|
23
18
|
>
|
|
24
19
|
<div
|
|
25
|
-
className="css-
|
|
20
|
+
className="css-7ajbp2"
|
|
26
21
|
id="basic-form-row-grandchild0"
|
|
27
22
|
>
|
|
28
23
|
<div
|
|
@@ -32,10 +27,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
|
|
|
32
27
|
className="react-datepicker__input-container"
|
|
33
28
|
>
|
|
34
29
|
<div
|
|
35
|
-
className="css-
|
|
30
|
+
className="css-1xdhyk6"
|
|
36
31
|
>
|
|
37
32
|
<label
|
|
38
|
-
className="css-
|
|
33
|
+
className="css-1xdhyk6"
|
|
39
34
|
htmlFor="basic-start"
|
|
40
35
|
id="basic-start-label"
|
|
41
36
|
>
|
|
@@ -59,7 +54,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
|
|
|
59
54
|
</div>
|
|
60
55
|
</div>
|
|
61
56
|
<div
|
|
62
|
-
className="css-
|
|
57
|
+
className="css-7ajbp2"
|
|
63
58
|
id="basic-form-row-grandchild1"
|
|
64
59
|
>
|
|
65
60
|
<div
|
|
@@ -69,10 +64,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
|
|
|
69
64
|
className="react-datepicker__input-container"
|
|
70
65
|
>
|
|
71
66
|
<div
|
|
72
|
-
className="css-
|
|
67
|
+
className="css-1xdhyk6"
|
|
73
68
|
>
|
|
74
69
|
<label
|
|
75
|
-
className="css-
|
|
70
|
+
className="css-1xdhyk6"
|
|
76
71
|
htmlFor="basic-end"
|
|
77
72
|
id="basic-end-label"
|
|
78
73
|
>
|
|
@@ -102,27 +97,22 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 1`] = `
|
|
|
102
97
|
|
|
103
98
|
exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
|
|
104
99
|
<div
|
|
105
|
-
className="css-
|
|
106
|
-
id="no-label-form-field
|
|
100
|
+
className="css-7ajbp2"
|
|
101
|
+
id="no-label-form-field"
|
|
107
102
|
>
|
|
108
103
|
<fieldset
|
|
109
|
-
className="css-
|
|
104
|
+
className="css-13wylk3"
|
|
110
105
|
id="no-label"
|
|
111
106
|
>
|
|
112
107
|
<legend>
|
|
113
108
|
Select the date you want to visit NYPL
|
|
114
|
-
<div
|
|
115
|
-
className="css-0"
|
|
116
|
-
>
|
|
117
|
-
Optional
|
|
118
|
-
</div>
|
|
119
109
|
</legend>
|
|
120
110
|
<div
|
|
121
|
-
className="css-
|
|
111
|
+
className="css-1vpopwd"
|
|
122
112
|
id="no-label-form-row"
|
|
123
113
|
>
|
|
124
114
|
<div
|
|
125
|
-
className="css-
|
|
115
|
+
className="css-7ajbp2"
|
|
126
116
|
id="no-label-form-row-grandchild0"
|
|
127
117
|
>
|
|
128
118
|
<div
|
|
@@ -132,10 +122,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
|
|
|
132
122
|
className="react-datepicker__input-container"
|
|
133
123
|
>
|
|
134
124
|
<div
|
|
135
|
-
className="css-
|
|
125
|
+
className="css-1xdhyk6"
|
|
136
126
|
>
|
|
137
127
|
<label
|
|
138
|
-
className="css-
|
|
128
|
+
className="css-1xdhyk6"
|
|
139
129
|
htmlFor="no-label-start"
|
|
140
130
|
id="no-label-start-label"
|
|
141
131
|
>
|
|
@@ -159,7 +149,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
|
|
|
159
149
|
</div>
|
|
160
150
|
</div>
|
|
161
151
|
<div
|
|
162
|
-
className="css-
|
|
152
|
+
className="css-7ajbp2"
|
|
163
153
|
id="no-label-form-row-grandchild1"
|
|
164
154
|
>
|
|
165
155
|
<div
|
|
@@ -169,10 +159,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
|
|
|
169
159
|
className="react-datepicker__input-container"
|
|
170
160
|
>
|
|
171
161
|
<div
|
|
172
|
-
className="css-
|
|
162
|
+
className="css-1xdhyk6"
|
|
173
163
|
>
|
|
174
164
|
<label
|
|
175
|
-
className="css-
|
|
165
|
+
className="css-1xdhyk6"
|
|
176
166
|
htmlFor="no-label-end"
|
|
177
167
|
id="no-label-end-label"
|
|
178
168
|
>
|
|
@@ -202,27 +192,22 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 2`] = `
|
|
|
202
192
|
|
|
203
193
|
exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
|
|
204
194
|
<div
|
|
205
|
-
className="css-
|
|
206
|
-
id="custom-format-form-field
|
|
195
|
+
className="css-7ajbp2"
|
|
196
|
+
id="custom-format-form-field"
|
|
207
197
|
>
|
|
208
198
|
<fieldset
|
|
209
|
-
className="css-
|
|
199
|
+
className="css-13wylk3"
|
|
210
200
|
id="custom-format"
|
|
211
201
|
>
|
|
212
202
|
<legend>
|
|
213
203
|
Select the date you want to visit NYPL
|
|
214
|
-
<div
|
|
215
|
-
className="css-0"
|
|
216
|
-
>
|
|
217
|
-
Optional
|
|
218
|
-
</div>
|
|
219
204
|
</legend>
|
|
220
205
|
<div
|
|
221
|
-
className="css-
|
|
206
|
+
className="css-1vpopwd"
|
|
222
207
|
id="custom-format-form-row"
|
|
223
208
|
>
|
|
224
209
|
<div
|
|
225
|
-
className="css-
|
|
210
|
+
className="css-7ajbp2"
|
|
226
211
|
id="custom-format-form-row-grandchild0"
|
|
227
212
|
>
|
|
228
213
|
<div
|
|
@@ -232,10 +217,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
|
|
|
232
217
|
className="react-datepicker__input-container"
|
|
233
218
|
>
|
|
234
219
|
<div
|
|
235
|
-
className="css-
|
|
220
|
+
className="css-1xdhyk6"
|
|
236
221
|
>
|
|
237
222
|
<label
|
|
238
|
-
className="css-
|
|
223
|
+
className="css-1xdhyk6"
|
|
239
224
|
htmlFor="custom-format-start"
|
|
240
225
|
id="custom-format-start-label"
|
|
241
226
|
>
|
|
@@ -259,7 +244,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
|
|
|
259
244
|
</div>
|
|
260
245
|
</div>
|
|
261
246
|
<div
|
|
262
|
-
className="css-
|
|
247
|
+
className="css-7ajbp2"
|
|
263
248
|
id="custom-format-form-row-grandchild1"
|
|
264
249
|
>
|
|
265
250
|
<div
|
|
@@ -269,10 +254,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
|
|
|
269
254
|
className="react-datepicker__input-container"
|
|
270
255
|
>
|
|
271
256
|
<div
|
|
272
|
-
className="css-
|
|
257
|
+
className="css-1xdhyk6"
|
|
273
258
|
>
|
|
274
259
|
<label
|
|
275
|
-
className="css-
|
|
260
|
+
className="css-1xdhyk6"
|
|
276
261
|
htmlFor="custom-format-end"
|
|
277
262
|
id="custom-format-end-label"
|
|
278
263
|
>
|
|
@@ -302,27 +287,22 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 3`] = `
|
|
|
302
287
|
|
|
303
288
|
exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
|
|
304
289
|
<div
|
|
305
|
-
className="css-
|
|
306
|
-
id="invalid-form-field
|
|
290
|
+
className="css-7ajbp2"
|
|
291
|
+
id="invalid-form-field"
|
|
307
292
|
>
|
|
308
293
|
<fieldset
|
|
309
|
-
className="css-
|
|
294
|
+
className="css-13wylk3"
|
|
310
295
|
id="invalid"
|
|
311
296
|
>
|
|
312
297
|
<legend>
|
|
313
298
|
Select the date you want to visit NYPL
|
|
314
|
-
<div
|
|
315
|
-
className="css-0"
|
|
316
|
-
>
|
|
317
|
-
Optional
|
|
318
|
-
</div>
|
|
319
299
|
</legend>
|
|
320
300
|
<div
|
|
321
|
-
className="css-
|
|
301
|
+
className="css-1vpopwd"
|
|
322
302
|
id="invalid-form-row"
|
|
323
303
|
>
|
|
324
304
|
<div
|
|
325
|
-
className="css-
|
|
305
|
+
className="css-7ajbp2"
|
|
326
306
|
id="invalid-form-row-grandchild0"
|
|
327
307
|
>
|
|
328
308
|
<div
|
|
@@ -332,10 +312,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
|
|
|
332
312
|
className="react-datepicker__input-container"
|
|
333
313
|
>
|
|
334
314
|
<div
|
|
335
|
-
className="css-
|
|
315
|
+
className="css-1xdhyk6"
|
|
336
316
|
>
|
|
337
317
|
<label
|
|
338
|
-
className="css-
|
|
318
|
+
className="css-1xdhyk6"
|
|
339
319
|
htmlFor="invalid-start"
|
|
340
320
|
id="invalid-start-label"
|
|
341
321
|
>
|
|
@@ -356,28 +336,23 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
|
|
|
356
336
|
value="1988-01-02"
|
|
357
337
|
/>
|
|
358
338
|
<div
|
|
359
|
-
aria-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
className=" css-0"
|
|
366
|
-
dangerouslySetInnerHTML={
|
|
367
|
-
Object {
|
|
368
|
-
"__html": "Please select a valid date.",
|
|
369
|
-
}
|
|
339
|
+
aria-atomic={true}
|
|
340
|
+
aria-live="polite"
|
|
341
|
+
className="css-1xdhyk6"
|
|
342
|
+
dangerouslySetInnerHTML={
|
|
343
|
+
Object {
|
|
344
|
+
"__html": "Please select a valid date.",
|
|
370
345
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
346
|
+
}
|
|
347
|
+
data-isinvalid={true}
|
|
348
|
+
id="invalid-start-helperText"
|
|
349
|
+
/>
|
|
375
350
|
</div>
|
|
376
351
|
</div>
|
|
377
352
|
</div>
|
|
378
353
|
</div>
|
|
379
354
|
<div
|
|
380
|
-
className="css-
|
|
355
|
+
className="css-7ajbp2"
|
|
381
356
|
id="invalid-form-row-grandchild1"
|
|
382
357
|
>
|
|
383
358
|
<div
|
|
@@ -387,10 +362,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
|
|
|
387
362
|
className="react-datepicker__input-container"
|
|
388
363
|
>
|
|
389
364
|
<div
|
|
390
|
-
className="css-
|
|
365
|
+
className="css-1xdhyk6"
|
|
391
366
|
>
|
|
392
367
|
<label
|
|
393
|
-
className="css-
|
|
368
|
+
className="css-1xdhyk6"
|
|
394
369
|
htmlFor="invalid-end"
|
|
395
370
|
id="invalid-end-label"
|
|
396
371
|
>
|
|
@@ -411,70 +386,56 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 4`] = `
|
|
|
411
386
|
value="1988-02-02"
|
|
412
387
|
/>
|
|
413
388
|
<div
|
|
414
|
-
aria-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
className=" css-0"
|
|
421
|
-
dangerouslySetInnerHTML={
|
|
422
|
-
Object {
|
|
423
|
-
"__html": "Please select a valid date.",
|
|
424
|
-
}
|
|
389
|
+
aria-atomic={true}
|
|
390
|
+
aria-live="polite"
|
|
391
|
+
className="css-1xdhyk6"
|
|
392
|
+
dangerouslySetInnerHTML={
|
|
393
|
+
Object {
|
|
394
|
+
"__html": "Please select a valid date.",
|
|
425
395
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
396
|
+
}
|
|
397
|
+
data-isinvalid={true}
|
|
398
|
+
id="invalid-end-helperText"
|
|
399
|
+
/>
|
|
430
400
|
</div>
|
|
431
401
|
</div>
|
|
432
402
|
</div>
|
|
433
403
|
</div>
|
|
434
404
|
</div>
|
|
435
405
|
<div
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
dangerouslySetInnerHTML={
|
|
443
|
-
Object {
|
|
444
|
-
"__html": "Note that the Library may be closed on Sundays.",
|
|
445
|
-
}
|
|
406
|
+
aria-atomic={true}
|
|
407
|
+
aria-live="off"
|
|
408
|
+
className="css-1xdhyk6"
|
|
409
|
+
dangerouslySetInnerHTML={
|
|
410
|
+
Object {
|
|
411
|
+
"__html": "Note that the Library may be closed on Sundays.",
|
|
446
412
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
413
|
+
}
|
|
414
|
+
data-isinvalid={false}
|
|
415
|
+
id="invalid-helper-text"
|
|
416
|
+
/>
|
|
451
417
|
</fieldset>
|
|
452
418
|
</div>
|
|
453
419
|
`;
|
|
454
420
|
|
|
455
421
|
exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
|
|
456
422
|
<div
|
|
457
|
-
className="css-
|
|
458
|
-
id="disabled-form-field
|
|
423
|
+
className="css-7ajbp2"
|
|
424
|
+
id="disabled-form-field"
|
|
459
425
|
>
|
|
460
426
|
<fieldset
|
|
461
|
-
className="css-
|
|
427
|
+
className="css-13wylk3"
|
|
462
428
|
id="disabled"
|
|
463
429
|
>
|
|
464
430
|
<legend>
|
|
465
431
|
Select the date you want to visit NYPL
|
|
466
|
-
<div
|
|
467
|
-
className="css-0"
|
|
468
|
-
>
|
|
469
|
-
Optional
|
|
470
|
-
</div>
|
|
471
432
|
</legend>
|
|
472
433
|
<div
|
|
473
|
-
className="css-
|
|
434
|
+
className="css-1vpopwd"
|
|
474
435
|
id="disabled-form-row"
|
|
475
436
|
>
|
|
476
437
|
<div
|
|
477
|
-
className="css-
|
|
438
|
+
className="css-7ajbp2"
|
|
478
439
|
id="disabled-form-row-grandchild0"
|
|
479
440
|
>
|
|
480
441
|
<div
|
|
@@ -484,10 +445,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
|
|
|
484
445
|
className="react-datepicker__input-container"
|
|
485
446
|
>
|
|
486
447
|
<div
|
|
487
|
-
className="css-
|
|
448
|
+
className="css-1xdhyk6"
|
|
488
449
|
>
|
|
489
450
|
<label
|
|
490
|
-
className="css-
|
|
451
|
+
className="css-1xdhyk6"
|
|
491
452
|
htmlFor="disabled-start"
|
|
492
453
|
id="disabled-start-label"
|
|
493
454
|
>
|
|
@@ -511,7 +472,7 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
|
|
|
511
472
|
</div>
|
|
512
473
|
</div>
|
|
513
474
|
<div
|
|
514
|
-
className="css-
|
|
475
|
+
className="css-7ajbp2"
|
|
515
476
|
id="disabled-form-row-grandchild1"
|
|
516
477
|
>
|
|
517
478
|
<div
|
|
@@ -521,10 +482,10 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
|
|
|
521
482
|
className="react-datepicker__input-container"
|
|
522
483
|
>
|
|
523
484
|
<div
|
|
524
|
-
className="css-
|
|
485
|
+
className="css-1xdhyk6"
|
|
525
486
|
>
|
|
526
487
|
<label
|
|
527
|
-
className="css-
|
|
488
|
+
className="css-1xdhyk6"
|
|
528
489
|
htmlFor="disabled-end"
|
|
529
490
|
id="disabled-end-label"
|
|
530
491
|
>
|
|
@@ -549,32 +510,28 @@ exports[`DatePicker Date Range renders the UI snapshot correctly 5`] = `
|
|
|
549
510
|
</div>
|
|
550
511
|
</div>
|
|
551
512
|
<div
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
dangerouslySetInnerHTML={
|
|
559
|
-
Object {
|
|
560
|
-
"__html": "Note that the Library may be closed on Sundays.",
|
|
561
|
-
}
|
|
513
|
+
aria-atomic={true}
|
|
514
|
+
aria-live="off"
|
|
515
|
+
className="css-1xdhyk6"
|
|
516
|
+
dangerouslySetInnerHTML={
|
|
517
|
+
Object {
|
|
518
|
+
"__html": "Note that the Library may be closed on Sundays.",
|
|
562
519
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
520
|
+
}
|
|
521
|
+
data-isinvalid={false}
|
|
522
|
+
id="disabled-helper-text"
|
|
523
|
+
/>
|
|
567
524
|
</fieldset>
|
|
568
525
|
</div>
|
|
569
526
|
`;
|
|
570
527
|
|
|
571
528
|
exports[`DatePicker Single input renders the UI snapshot correctly 1`] = `
|
|
572
529
|
<div
|
|
573
|
-
className="css-
|
|
574
|
-
id="basic-form-field
|
|
530
|
+
className="css-7ajbp2"
|
|
531
|
+
id="basic-form-field"
|
|
575
532
|
>
|
|
576
533
|
<div
|
|
577
|
-
className="css-
|
|
534
|
+
className="css-7ajbp2"
|
|
578
535
|
id="basic-start-form"
|
|
579
536
|
>
|
|
580
537
|
<div
|
|
@@ -584,19 +541,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 1`] = `
|
|
|
584
541
|
className="react-datepicker__input-container"
|
|
585
542
|
>
|
|
586
543
|
<div
|
|
587
|
-
className="css-
|
|
544
|
+
className="css-1xdhyk6"
|
|
588
545
|
>
|
|
589
546
|
<label
|
|
590
|
-
className="css-
|
|
547
|
+
className="css-1xdhyk6"
|
|
591
548
|
htmlFor="basic-start"
|
|
592
549
|
id="basic-start-label"
|
|
593
550
|
>
|
|
594
551
|
Select the full date you want to visit NYPL
|
|
595
|
-
<div
|
|
596
|
-
className="css-0"
|
|
597
|
-
>
|
|
598
|
-
Optional
|
|
599
|
-
</div>
|
|
600
552
|
</label>
|
|
601
553
|
<input
|
|
602
554
|
className="chakra-input css-0"
|
|
@@ -620,11 +572,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 1`] = `
|
|
|
620
572
|
|
|
621
573
|
exports[`DatePicker Single input renders the UI snapshot correctly 2`] = `
|
|
622
574
|
<div
|
|
623
|
-
className="css-
|
|
624
|
-
id="no-label-form-field
|
|
575
|
+
className="css-7ajbp2"
|
|
576
|
+
id="no-label-form-field"
|
|
625
577
|
>
|
|
626
578
|
<div
|
|
627
|
-
className="css-
|
|
579
|
+
className="css-7ajbp2"
|
|
628
580
|
id="no-label-start-form"
|
|
629
581
|
>
|
|
630
582
|
<div
|
|
@@ -634,7 +586,7 @@ exports[`DatePicker Single input renders the UI snapshot correctly 2`] = `
|
|
|
634
586
|
className="react-datepicker__input-container"
|
|
635
587
|
>
|
|
636
588
|
<div
|
|
637
|
-
className="css-
|
|
589
|
+
className="css-1xdhyk6"
|
|
638
590
|
>
|
|
639
591
|
<input
|
|
640
592
|
aria-label="Select the date you want to visit NYPL"
|
|
@@ -659,11 +611,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 2`] = `
|
|
|
659
611
|
|
|
660
612
|
exports[`DatePicker Single input renders the UI snapshot correctly 3`] = `
|
|
661
613
|
<div
|
|
662
|
-
className="css-
|
|
663
|
-
id="custom-format-form-field
|
|
614
|
+
className="css-7ajbp2"
|
|
615
|
+
id="custom-format-form-field"
|
|
664
616
|
>
|
|
665
617
|
<div
|
|
666
|
-
className="css-
|
|
618
|
+
className="css-7ajbp2"
|
|
667
619
|
id="custom-format-start-form"
|
|
668
620
|
>
|
|
669
621
|
<div
|
|
@@ -673,19 +625,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 3`] = `
|
|
|
673
625
|
className="react-datepicker__input-container"
|
|
674
626
|
>
|
|
675
627
|
<div
|
|
676
|
-
className="css-
|
|
628
|
+
className="css-1xdhyk6"
|
|
677
629
|
>
|
|
678
630
|
<label
|
|
679
|
-
className="css-
|
|
631
|
+
className="css-1xdhyk6"
|
|
680
632
|
htmlFor="custom-format-start"
|
|
681
633
|
id="custom-format-start-label"
|
|
682
634
|
>
|
|
683
635
|
Select the date you want to visit NYPL
|
|
684
|
-
<div
|
|
685
|
-
className="css-0"
|
|
686
|
-
>
|
|
687
|
-
Optional
|
|
688
|
-
</div>
|
|
689
636
|
</label>
|
|
690
637
|
<input
|
|
691
638
|
className="chakra-input css-0"
|
|
@@ -709,11 +656,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 3`] = `
|
|
|
709
656
|
|
|
710
657
|
exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
|
|
711
658
|
<div
|
|
712
|
-
className="css-
|
|
713
|
-
id="invalid-form-field
|
|
659
|
+
className="css-7ajbp2"
|
|
660
|
+
id="invalid-form-field"
|
|
714
661
|
>
|
|
715
662
|
<div
|
|
716
|
-
className="css-
|
|
663
|
+
className="css-7ajbp2"
|
|
717
664
|
id="invalid-start-form"
|
|
718
665
|
>
|
|
719
666
|
<div
|
|
@@ -723,19 +670,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
|
|
|
723
670
|
className="react-datepicker__input-container"
|
|
724
671
|
>
|
|
725
672
|
<div
|
|
726
|
-
className="css-
|
|
673
|
+
className="css-1xdhyk6"
|
|
727
674
|
>
|
|
728
675
|
<label
|
|
729
|
-
className="css-
|
|
676
|
+
className="css-1xdhyk6"
|
|
730
677
|
htmlFor="invalid-start"
|
|
731
678
|
id="invalid-start-label"
|
|
732
679
|
>
|
|
733
680
|
Select the date you want to visit NYPL
|
|
734
|
-
<div
|
|
735
|
-
className="css-0"
|
|
736
|
-
>
|
|
737
|
-
Optional
|
|
738
|
-
</div>
|
|
739
681
|
</label>
|
|
740
682
|
<input
|
|
741
683
|
aria-describedby="invalid-start-helperText"
|
|
@@ -753,22 +695,17 @@ exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
|
|
|
753
695
|
value="1988-01-02"
|
|
754
696
|
/>
|
|
755
697
|
<div
|
|
756
|
-
aria-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
className=" css-0"
|
|
763
|
-
dangerouslySetInnerHTML={
|
|
764
|
-
Object {
|
|
765
|
-
"__html": "Please select a valid date.",
|
|
766
|
-
}
|
|
698
|
+
aria-atomic={true}
|
|
699
|
+
aria-live="polite"
|
|
700
|
+
className="css-1xdhyk6"
|
|
701
|
+
dangerouslySetInnerHTML={
|
|
702
|
+
Object {
|
|
703
|
+
"__html": "Please select a valid date.",
|
|
767
704
|
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
705
|
+
}
|
|
706
|
+
data-isinvalid={true}
|
|
707
|
+
id="invalid-start-helperText"
|
|
708
|
+
/>
|
|
772
709
|
</div>
|
|
773
710
|
</div>
|
|
774
711
|
</div>
|
|
@@ -778,11 +715,11 @@ exports[`DatePicker Single input renders the UI snapshot correctly 4`] = `
|
|
|
778
715
|
|
|
779
716
|
exports[`DatePicker Single input renders the UI snapshot correctly 5`] = `
|
|
780
717
|
<div
|
|
781
|
-
className="css-
|
|
782
|
-
id="disabled-form-field
|
|
718
|
+
className="css-7ajbp2"
|
|
719
|
+
id="disabled-form-field"
|
|
783
720
|
>
|
|
784
721
|
<div
|
|
785
|
-
className="css-
|
|
722
|
+
className="css-7ajbp2"
|
|
786
723
|
id="disabled-start-form"
|
|
787
724
|
>
|
|
788
725
|
<div
|
|
@@ -792,19 +729,14 @@ exports[`DatePicker Single input renders the UI snapshot correctly 5`] = `
|
|
|
792
729
|
className="react-datepicker__input-container"
|
|
793
730
|
>
|
|
794
731
|
<div
|
|
795
|
-
className="css-
|
|
732
|
+
className="css-1xdhyk6"
|
|
796
733
|
>
|
|
797
734
|
<label
|
|
798
|
-
className="css-
|
|
735
|
+
className="css-1xdhyk6"
|
|
799
736
|
htmlFor="disabled-start"
|
|
800
737
|
id="disabled-start-label"
|
|
801
738
|
>
|
|
802
739
|
Select the date you want to visit NYPL
|
|
803
|
-
<div
|
|
804
|
-
className="css-0"
|
|
805
|
-
>
|
|
806
|
-
Optional
|
|
807
|
-
</div>
|
|
808
740
|
</label>
|
|
809
741
|
<input
|
|
810
742
|
aria-describedby="disabled-start-helperText"
|
|
@@ -821,22 +753,134 @@ exports[`DatePicker Single input renders the UI snapshot correctly 5`] = `
|
|
|
821
753
|
value="1988-01-02"
|
|
822
754
|
/>
|
|
823
755
|
<div
|
|
824
|
-
aria-
|
|
825
|
-
|
|
756
|
+
aria-atomic={true}
|
|
757
|
+
aria-live="off"
|
|
758
|
+
className="css-1xdhyk6"
|
|
759
|
+
dangerouslySetInnerHTML={
|
|
760
|
+
Object {
|
|
761
|
+
"__html": "Note that the Library may be closed on Sundays.",
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
data-isinvalid={false}
|
|
765
|
+
id="disabled-start-helperText"
|
|
766
|
+
/>
|
|
767
|
+
</div>
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
</div>
|
|
772
|
+
`;
|
|
773
|
+
|
|
774
|
+
exports[`DatePicker Single input renders the UI snapshot correctly 6`] = `
|
|
775
|
+
<div
|
|
776
|
+
className="css-1h2oq49"
|
|
777
|
+
id="chakra-form-field"
|
|
778
|
+
>
|
|
779
|
+
<div
|
|
780
|
+
className="css-7ajbp2"
|
|
781
|
+
id="chakra-start-form"
|
|
782
|
+
>
|
|
783
|
+
<div
|
|
784
|
+
className="react-datepicker-wrapper"
|
|
785
|
+
>
|
|
786
|
+
<div
|
|
787
|
+
className="react-datepicker__input-container"
|
|
788
|
+
>
|
|
789
|
+
<div
|
|
790
|
+
className="css-1xdhyk6"
|
|
791
|
+
>
|
|
792
|
+
<label
|
|
793
|
+
className="css-1xdhyk6"
|
|
794
|
+
htmlFor="chakra-start"
|
|
795
|
+
id="chakra-start-label"
|
|
826
796
|
>
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
797
|
+
Select the date you want to visit NYPL
|
|
798
|
+
</label>
|
|
799
|
+
<input
|
|
800
|
+
aria-describedby="chakra-start-helperText"
|
|
801
|
+
className="chakra-input css-0"
|
|
802
|
+
disabled={false}
|
|
803
|
+
id="chakra-start"
|
|
804
|
+
onBlur={[Function]}
|
|
805
|
+
onChange={[Function]}
|
|
806
|
+
onClick={[Function]}
|
|
807
|
+
onFocus={[Function]}
|
|
808
|
+
required={false}
|
|
809
|
+
step={null}
|
|
810
|
+
type="text"
|
|
811
|
+
value="1988-01-02"
|
|
812
|
+
/>
|
|
813
|
+
<div
|
|
814
|
+
aria-atomic={true}
|
|
815
|
+
aria-live="off"
|
|
816
|
+
className="css-1xdhyk6"
|
|
817
|
+
dangerouslySetInnerHTML={
|
|
818
|
+
Object {
|
|
819
|
+
"__html": "Note that the Library may be closed on Sundays.",
|
|
835
820
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
821
|
+
}
|
|
822
|
+
data-isinvalid={false}
|
|
823
|
+
id="chakra-start-helperText"
|
|
824
|
+
/>
|
|
825
|
+
</div>
|
|
826
|
+
</div>
|
|
827
|
+
</div>
|
|
828
|
+
</div>
|
|
829
|
+
</div>
|
|
830
|
+
`;
|
|
831
|
+
|
|
832
|
+
exports[`DatePicker Single input renders the UI snapshot correctly 7`] = `
|
|
833
|
+
<div
|
|
834
|
+
className="css-7ajbp2"
|
|
835
|
+
data-testid="datepicker"
|
|
836
|
+
id="props-form-field"
|
|
837
|
+
>
|
|
838
|
+
<div
|
|
839
|
+
className="css-7ajbp2"
|
|
840
|
+
id="props-start-form"
|
|
841
|
+
>
|
|
842
|
+
<div
|
|
843
|
+
className="react-datepicker-wrapper"
|
|
844
|
+
>
|
|
845
|
+
<div
|
|
846
|
+
className="react-datepicker__input-container"
|
|
847
|
+
>
|
|
848
|
+
<div
|
|
849
|
+
className="css-1xdhyk6"
|
|
850
|
+
>
|
|
851
|
+
<label
|
|
852
|
+
className="css-1xdhyk6"
|
|
853
|
+
htmlFor="props-start"
|
|
854
|
+
id="props-start-label"
|
|
855
|
+
>
|
|
856
|
+
Select the date you want to visit NYPL
|
|
857
|
+
</label>
|
|
858
|
+
<input
|
|
859
|
+
aria-describedby="props-start-helperText"
|
|
860
|
+
className="chakra-input css-0"
|
|
861
|
+
disabled={false}
|
|
862
|
+
id="props-start"
|
|
863
|
+
onBlur={[Function]}
|
|
864
|
+
onChange={[Function]}
|
|
865
|
+
onClick={[Function]}
|
|
866
|
+
onFocus={[Function]}
|
|
867
|
+
required={false}
|
|
868
|
+
step={null}
|
|
869
|
+
type="text"
|
|
870
|
+
value="1988-01-02"
|
|
871
|
+
/>
|
|
872
|
+
<div
|
|
873
|
+
aria-atomic={true}
|
|
874
|
+
aria-live="off"
|
|
875
|
+
className="css-1xdhyk6"
|
|
876
|
+
dangerouslySetInnerHTML={
|
|
877
|
+
Object {
|
|
878
|
+
"__html": "Note that the Library may be closed on Sundays.",
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
data-isinvalid={false}
|
|
882
|
+
id="props-start-helperText"
|
|
883
|
+
/>
|
|
840
884
|
</div>
|
|
841
885
|
</div>
|
|
842
886
|
</div>
|