@transferwise/components 0.0.0-experimental-a0f3d2d → 0.0.0-experimental-693e956
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/build/index.js +14846 -283
- package/build/index.js.map +1 -1
- package/build/index.mjs +14767 -120
- package/build/index.mjs.map +1 -1
- package/build/main.css +10 -0
- package/build/styles/main.css +10 -0
- package/build/styles/uploadInput/UploadInput.css +10 -0
- package/build/types/uploadInput/types.d.ts +9 -1
- package/build/types/uploadInput/types.d.ts.map +1 -1
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/main.css +10 -0
- package/src/uploadInput/UploadInput.css +10 -0
- package/src/uploadInput/UploadInput.less +11 -0
- package/src/uploadInput/UploadInput.story.tsx +50 -7
- package/src/uploadInput/types.ts +11 -1
- package/src/uploadInput/uploadItem/UploadItem.tsx +25 -6
- package/build/accordion/Accordion.js +0 -40
- package/build/accordion/Accordion.js.map +0 -1
- package/build/accordion/Accordion.mjs +0 -38
- package/build/accordion/Accordion.mjs.map +0 -1
- package/build/accordion/AccordionItem/AccordionItem.js +0 -70
- package/build/accordion/AccordionItem/AccordionItem.js.map +0 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs +0 -64
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +0 -1
- package/build/actionButton/ActionButton.js +0 -31
- package/build/actionButton/ActionButton.js.map +0 -1
- package/build/actionButton/ActionButton.mjs +0 -25
- package/build/actionButton/ActionButton.mjs.map +0 -1
- package/build/actionOption/ActionOption.js +0 -61
- package/build/actionOption/ActionOption.js.map +0 -1
- package/build/actionOption/ActionOption.mjs +0 -55
- package/build/actionOption/ActionOption.mjs.map +0 -1
- package/build/alert/Alert.js +0 -159
- package/build/alert/Alert.js.map +0 -1
- package/build/alert/Alert.mjs +0 -151
- package/build/alert/Alert.mjs.map +0 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +0 -30
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +0 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs +0 -24
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +0 -1
- package/build/avatar/Avatar.js +0 -54
- package/build/avatar/Avatar.js.map +0 -1
- package/build/avatar/Avatar.mjs +0 -48
- package/build/avatar/Avatar.mjs.map +0 -1
- package/build/avatar/avatarTypes.js +0 -11
- package/build/avatar/avatarTypes.js.map +0 -1
- package/build/avatar/avatarTypes.mjs +0 -11
- package/build/avatar/avatarTypes.mjs.map +0 -1
- package/build/avatar/colors/colors.js +0 -31
- package/build/avatar/colors/colors.js.map +0 -1
- package/build/avatar/colors/colors.mjs +0 -29
- package/build/avatar/colors/colors.mjs.map +0 -1
- package/build/avatarWrapper/AvatarWrapper.js +0 -120
- package/build/avatarWrapper/AvatarWrapper.js.map +0 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +0 -118
- package/build/avatarWrapper/AvatarWrapper.mjs.map +0 -1
- package/build/avatarWrapper/index.js +0 -8
- package/build/avatarWrapper/index.js.map +0 -1
- package/build/avatarWrapper/index.mjs +0 -6
- package/build/avatarWrapper/index.mjs.map +0 -1
- package/build/badge/Badge.js +0 -36
- package/build/badge/Badge.js.map +0 -1
- package/build/badge/Badge.mjs +0 -30
- package/build/badge/Badge.mjs.map +0 -1
- package/build/body/Body.js +0 -31
- package/build/body/Body.js.map +0 -1
- package/build/body/Body.mjs +0 -25
- package/build/body/Body.mjs.map +0 -1
- package/build/button/Button.js +0 -86
- package/build/button/Button.js.map +0 -1
- package/build/button/Button.messages.js +0 -12
- package/build/button/Button.messages.js.map +0 -1
- package/build/button/Button.messages.mjs +0 -10
- package/build/button/Button.messages.mjs.map +0 -1
- package/build/button/Button.mjs +0 -80
- package/build/button/Button.mjs.map +0 -1
- package/build/button/classMap.js +0 -18
- package/build/button/classMap.js.map +0 -1
- package/build/button/classMap.mjs +0 -15
- package/build/button/classMap.mjs.map +0 -1
- package/build/button/legacyUtils/legacyUtils.js +0 -54
- package/build/button/legacyUtils/legacyUtils.js.map +0 -1
- package/build/button/legacyUtils/legacyUtils.mjs +0 -50
- package/build/button/legacyUtils/legacyUtils.mjs.map +0 -1
- package/build/card/Card.js +0 -95
- package/build/card/Card.js.map +0 -1
- package/build/card/Card.mjs +0 -87
- package/build/card/Card.mjs.map +0 -1
- package/build/carousel/Carousel.js +0 -282
- package/build/carousel/Carousel.js.map +0 -1
- package/build/carousel/Carousel.mjs +0 -276
- package/build/carousel/Carousel.mjs.map +0 -1
- package/build/checkbox/Checkbox.js +0 -97
- package/build/checkbox/Checkbox.js.map +0 -1
- package/build/checkbox/Checkbox.mjs +0 -90
- package/build/checkbox/Checkbox.mjs.map +0 -1
- package/build/checkbox/index.js +0 -8
- package/build/checkbox/index.js.map +0 -1
- package/build/checkbox/index.mjs +0 -6
- package/build/checkbox/index.mjs.map +0 -1
- package/build/checkboxButton/CheckboxButton.js +0 -36
- package/build/checkboxButton/CheckboxButton.js.map +0 -1
- package/build/checkboxButton/CheckboxButton.mjs +0 -30
- package/build/checkboxButton/CheckboxButton.mjs.map +0 -1
- package/build/checkboxOption/CheckboxOption.js +0 -27
- package/build/checkboxOption/CheckboxOption.js.map +0 -1
- package/build/checkboxOption/CheckboxOption.mjs +0 -25
- package/build/checkboxOption/CheckboxOption.mjs.map +0 -1
- package/build/chevron/Chevron.js +0 -60
- package/build/chevron/Chevron.js.map +0 -1
- package/build/chevron/Chevron.mjs +0 -54
- package/build/chevron/Chevron.mjs.map +0 -1
- package/build/chips/Chip.js +0 -71
- package/build/chips/Chip.js.map +0 -1
- package/build/chips/Chip.mjs +0 -65
- package/build/chips/Chip.mjs.map +0 -1
- package/build/chips/Chips.js +0 -62
- package/build/chips/Chips.js.map +0 -1
- package/build/chips/Chips.messages.js +0 -12
- package/build/chips/Chips.messages.js.map +0 -1
- package/build/chips/Chips.messages.mjs +0 -10
- package/build/chips/Chips.messages.mjs.map +0 -1
- package/build/chips/Chips.mjs +0 -56
- package/build/chips/Chips.mjs.map +0 -1
- package/build/circularButton/CircularButton.js +0 -46
- package/build/circularButton/CircularButton.js.map +0 -1
- package/build/circularButton/CircularButton.mjs +0 -40
- package/build/circularButton/CircularButton.mjs.map +0 -1
- package/build/common/DOMOperations/DOMOperations.js +0 -24
- package/build/common/DOMOperations/DOMOperations.js.map +0 -1
- package/build/common/DOMOperations/DOMOperations.mjs +0 -21
- package/build/common/DOMOperations/DOMOperations.mjs.map +0 -1
- package/build/common/Option/Option.js +0 -71
- package/build/common/Option/Option.js.map +0 -1
- package/build/common/Option/Option.mjs +0 -65
- package/build/common/Option/Option.mjs.map +0 -1
- package/build/common/RadioButton/RadioButton.js +0 -46
- package/build/common/RadioButton/RadioButton.js.map +0 -1
- package/build/common/RadioButton/RadioButton.mjs +0 -40
- package/build/common/RadioButton/RadioButton.mjs.map +0 -1
- package/build/common/action/Action.js +0 -37
- package/build/common/action/Action.js.map +0 -1
- package/build/common/action/Action.mjs +0 -31
- package/build/common/action/Action.mjs.map +0 -1
- package/build/common/bottomSheet/BottomSheet.js +0 -194
- package/build/common/bottomSheet/BottomSheet.js.map +0 -1
- package/build/common/bottomSheet/BottomSheet.mjs +0 -188
- package/build/common/bottomSheet/BottomSheet.mjs.map +0 -1
- package/build/common/card/Card.js +0 -49
- package/build/common/card/Card.js.map +0 -1
- package/build/common/card/Card.mjs +0 -43
- package/build/common/card/Card.mjs.map +0 -1
- package/build/common/closeButton/CloseButton.js +0 -46
- package/build/common/closeButton/CloseButton.js.map +0 -1
- package/build/common/closeButton/CloseButton.messages.js +0 -12
- package/build/common/closeButton/CloseButton.messages.js.map +0 -1
- package/build/common/closeButton/CloseButton.messages.mjs +0 -10
- package/build/common/closeButton/CloseButton.messages.mjs.map +0 -1
- package/build/common/closeButton/CloseButton.mjs +0 -40
- package/build/common/closeButton/CloseButton.mjs.map +0 -1
- package/build/common/dateUtils/getDayNames/getDayNames.js +0 -18
- package/build/common/dateUtils/getDayNames/getDayNames.js.map +0 -1
- package/build/common/dateUtils/getDayNames/getDayNames.mjs +0 -16
- package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +0 -1
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js +0 -8
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js.map +0 -1
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs +0 -5
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs.map +0 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.js +0 -19
- package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +0 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.mjs +0 -17
- package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +0 -1
- package/build/common/dateUtils/isDateValid/isDateValid.js +0 -17
- package/build/common/dateUtils/isDateValid/isDateValid.js.map +0 -1
- package/build/common/dateUtils/isDateValid/isDateValid.mjs +0 -14
- package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +0 -1
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -8
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js.map +0 -1
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs +0 -6
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs.map +0 -1
- package/build/common/dateUtils/isWithinRange/isWithinRange.js +0 -8
- package/build/common/dateUtils/isWithinRange/isWithinRange.js.map +0 -1
- package/build/common/dateUtils/isWithinRange/isWithinRange.mjs +0 -6
- package/build/common/dateUtils/isWithinRange/isWithinRange.mjs.map +0 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -15
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +0 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs +0 -13
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +0 -1
- package/build/common/deviceDetection/deviceDetection.js +0 -11
- package/build/common/deviceDetection/deviceDetection.js.map +0 -1
- package/build/common/deviceDetection/deviceDetection.mjs +0 -9
- package/build/common/deviceDetection/deviceDetection.mjs.map +0 -1
- package/build/common/direction.js +0 -9
- package/build/common/direction.js.map +0 -1
- package/build/common/direction.mjs +0 -9
- package/build/common/direction.mjs.map +0 -1
- package/build/common/domHelpers/documentIosClick.js +0 -39
- package/build/common/domHelpers/documentIosClick.js.map +0 -1
- package/build/common/domHelpers/documentIosClick.mjs +0 -33
- package/build/common/domHelpers/documentIosClick.mjs.map +0 -1
- package/build/common/fileType.js +0 -10
- package/build/common/fileType.js.map +0 -1
- package/build/common/fileType.mjs +0 -10
- package/build/common/fileType.mjs.map +0 -1
- package/build/common/flowHeader/FlowHeader.js +0 -53
- package/build/common/flowHeader/FlowHeader.js.map +0 -1
- package/build/common/flowHeader/FlowHeader.mjs +0 -28
- package/build/common/flowHeader/FlowHeader.mjs.map +0 -1
- package/build/common/focusBoundary/FocusBoundary.js +0 -28
- package/build/common/focusBoundary/FocusBoundary.js.map +0 -1
- package/build/common/focusBoundary/FocusBoundary.mjs +0 -26
- package/build/common/focusBoundary/FocusBoundary.mjs.map +0 -1
- package/build/common/historyNavigator/historyNavigator.js +0 -39
- package/build/common/historyNavigator/historyNavigator.js.map +0 -1
- package/build/common/historyNavigator/historyNavigator.mjs +0 -37
- package/build/common/historyNavigator/historyNavigator.mjs.map +0 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.js +0 -25
- package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +0 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.mjs +0 -23
- package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +0 -1
- package/build/common/hooks/useDirection/useDirection.js +0 -15
- package/build/common/hooks/useDirection/useDirection.js.map +0 -1
- package/build/common/hooks/useDirection/useDirection.mjs +0 -13
- package/build/common/hooks/useDirection/useDirection.mjs.map +0 -1
- package/build/common/hooks/useEffectEvent.js +0 -22
- package/build/common/hooks/useEffectEvent.js.map +0 -1
- package/build/common/hooks/useEffectEvent.mjs +0 -20
- package/build/common/hooks/useEffectEvent.mjs.map +0 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js +0 -64
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +0 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +0 -62
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +0 -1
- package/build/common/hooks/useLayout/useLayout.js +0 -26
- package/build/common/hooks/useLayout/useLayout.js.map +0 -1
- package/build/common/hooks/useLayout/useLayout.mjs +0 -24
- package/build/common/hooks/useLayout/useLayout.mjs.map +0 -1
- package/build/common/hooks/useMedia.js +0 -16
- package/build/common/hooks/useMedia.js.map +0 -1
- package/build/common/hooks/useMedia.mjs +0 -14
- package/build/common/hooks/useMedia.mjs.map +0 -1
- package/build/common/hooks/useResizeObserver.js +0 -25
- package/build/common/hooks/useResizeObserver.js.map +0 -1
- package/build/common/hooks/useResizeObserver.mjs +0 -23
- package/build/common/hooks/useResizeObserver.mjs.map +0 -1
- package/build/common/hooks/useScreenSize.js +0 -10
- package/build/common/hooks/useScreenSize.js.map +0 -1
- package/build/common/hooks/useScreenSize.mjs +0 -8
- package/build/common/hooks/useScreenSize.mjs.map +0 -1
- package/build/common/locale/index.js +0 -85
- package/build/common/locale/index.js.map +0 -1
- package/build/common/locale/index.mjs +0 -76
- package/build/common/locale/index.mjs.map +0 -1
- package/build/common/panel/Panel.js +0 -133
- package/build/common/panel/Panel.js.map +0 -1
- package/build/common/panel/Panel.mjs +0 -127
- package/build/common/panel/Panel.mjs.map +0 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js +0 -21
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +0 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs +0 -19
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +0 -1
- package/build/common/preventScroll/PreventScroll.js +0 -11
- package/build/common/preventScroll/PreventScroll.js.map +0 -1
- package/build/common/preventScroll/PreventScroll.mjs +0 -9
- package/build/common/preventScroll/PreventScroll.mjs.map +0 -1
- package/build/common/propsValues/breakpoint.js +0 -12
- package/build/common/propsValues/breakpoint.js.map +0 -1
- package/build/common/propsValues/breakpoint.mjs +0 -12
- package/build/common/propsValues/breakpoint.mjs.map +0 -1
- package/build/common/propsValues/control.js +0 -15
- package/build/common/propsValues/control.js.map +0 -1
- package/build/common/propsValues/control.mjs +0 -15
- package/build/common/propsValues/control.mjs.map +0 -1
- package/build/common/propsValues/dateMode.js +0 -8
- package/build/common/propsValues/dateMode.js.map +0 -1
- package/build/common/propsValues/dateMode.mjs +0 -8
- package/build/common/propsValues/dateMode.mjs.map +0 -1
- package/build/common/propsValues/layouts.js +0 -13
- package/build/common/propsValues/layouts.js.map +0 -1
- package/build/common/propsValues/layouts.mjs +0 -13
- package/build/common/propsValues/layouts.mjs.map +0 -1
- package/build/common/propsValues/markdownNodeType.js +0 -22
- package/build/common/propsValues/markdownNodeType.js.map +0 -1
- package/build/common/propsValues/markdownNodeType.mjs +0 -22
- package/build/common/propsValues/markdownNodeType.mjs.map +0 -1
- package/build/common/propsValues/monthFormat.js +0 -8
- package/build/common/propsValues/monthFormat.js.map +0 -1
- package/build/common/propsValues/monthFormat.mjs +0 -8
- package/build/common/propsValues/monthFormat.mjs.map +0 -1
- package/build/common/propsValues/position.js +0 -15
- package/build/common/propsValues/position.js.map +0 -1
- package/build/common/propsValues/position.mjs +0 -15
- package/build/common/propsValues/position.mjs.map +0 -1
- package/build/common/propsValues/profileType.js +0 -8
- package/build/common/propsValues/profileType.js.map +0 -1
- package/build/common/propsValues/profileType.mjs +0 -8
- package/build/common/propsValues/profileType.mjs.map +0 -1
- package/build/common/propsValues/scroll.js +0 -8
- package/build/common/propsValues/scroll.js.map +0 -1
- package/build/common/propsValues/scroll.mjs +0 -8
- package/build/common/propsValues/scroll.mjs.map +0 -1
- package/build/common/propsValues/sentiment.js +0 -23
- package/build/common/propsValues/sentiment.js.map +0 -1
- package/build/common/propsValues/sentiment.mjs +0 -23
- package/build/common/propsValues/sentiment.mjs.map +0 -1
- package/build/common/propsValues/size.js +0 -11
- package/build/common/propsValues/size.js.map +0 -1
- package/build/common/propsValues/size.mjs +0 -11
- package/build/common/propsValues/size.mjs.map +0 -1
- package/build/common/propsValues/status.js +0 -13
- package/build/common/propsValues/status.js.map +0 -1
- package/build/common/propsValues/status.mjs +0 -13
- package/build/common/propsValues/status.mjs.map +0 -1
- package/build/common/propsValues/type.js +0 -17
- package/build/common/propsValues/type.js.map +0 -1
- package/build/common/propsValues/type.mjs +0 -17
- package/build/common/propsValues/type.mjs.map +0 -1
- package/build/common/propsValues/typography.js +0 -25
- package/build/common/propsValues/typography.js.map +0 -1
- package/build/common/propsValues/typography.mjs +0 -25
- package/build/common/propsValues/typography.mjs.map +0 -1
- package/build/common/propsValues/variant.js +0 -8
- package/build/common/propsValues/variant.js.map +0 -1
- package/build/common/propsValues/variant.mjs +0 -8
- package/build/common/propsValues/variant.mjs.map +0 -1
- package/build/common/propsValues/width.js +0 -8
- package/build/common/propsValues/width.js.map +0 -1
- package/build/common/propsValues/width.mjs +0 -8
- package/build/common/propsValues/width.mjs.map +0 -1
- package/build/common/responsivePanel/ResponsivePanel.js +0 -45
- package/build/common/responsivePanel/ResponsivePanel.js.map +0 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs +0 -43
- package/build/common/responsivePanel/ResponsivePanel.mjs.map +0 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js +0 -27
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +0 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs +0 -25
- package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +0 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -8
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js.map +0 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs +0 -6
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs.map +0 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -30
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +0 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs +0 -28
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +0 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -32
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +0 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs +0 -29
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +0 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -18
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +0 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs +0 -16
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +0 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -14
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +0 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs +0 -12
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +0 -1
- package/build/common/theme.js +0 -13
- package/build/common/theme.js.map +0 -1
- package/build/common/theme.mjs +0 -13
- package/build/common/theme.mjs.map +0 -1
- package/build/criticalBanner/CriticalCommsBanner.js +0 -77
- package/build/criticalBanner/CriticalCommsBanner.js.map +0 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +0 -71
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +0 -1
- package/build/dateInput/DateInput.js +0 -339
- package/build/dateInput/DateInput.js.map +0 -1
- package/build/dateInput/DateInput.messages.js +0 -24
- package/build/dateInput/DateInput.messages.js.map +0 -1
- package/build/dateInput/DateInput.messages.mjs +0 -22
- package/build/dateInput/DateInput.messages.mjs.map +0 -1
- package/build/dateInput/DateInput.mjs +0 -333
- package/build/dateInput/DateInput.mjs.map +0 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -9
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +0 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs +0 -7
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +0 -1
- package/build/dateLookup/DateLookup.js +0 -339
- package/build/dateLookup/DateLookup.js.map +0 -1
- package/build/dateLookup/DateLookup.messages.js +0 -33
- package/build/dateLookup/DateLookup.messages.js.map +0 -1
- package/build/dateLookup/DateLookup.messages.mjs +0 -31
- package/build/dateLookup/DateLookup.messages.mjs.map +0 -1
- package/build/dateLookup/DateLookup.mjs +0 -333
- package/build/dateLookup/DateLookup.mjs.map +0 -1
- package/build/dateLookup/dateHeader/DateHeader.js +0 -73
- package/build/dateLookup/dateHeader/DateHeader.js.map +0 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +0 -67
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js +0 -70
- package/build/dateLookup/dateTrigger/DateTrigger.js.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js +0 -12
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs +0 -10
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.mjs +0 -68
- package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +0 -1
- package/build/dateLookup/dayCalendar/DayCalendar.js +0 -71
- package/build/dateLookup/dayCalendar/DayCalendar.js.map +0 -1
- package/build/dateLookup/dayCalendar/DayCalendar.mjs +0 -69
- package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +0 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -150
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +0 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +0 -148
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +0 -1
- package/build/dateLookup/getFocusableTime/getFocusableTime.js +0 -8
- package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +0 -1
- package/build/dateLookup/getFocusableTime/getFocusableTime.mjs +0 -6
- package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +0 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.js +0 -15
- package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +0 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.mjs +0 -13
- package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +0 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.js +0 -64
- package/build/dateLookup/monthCalendar/MonthCalendar.js.map +0 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.mjs +0 -62
- package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +0 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -83
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +0 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs +0 -81
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +0 -1
- package/build/dateLookup/tableLink/TableLink.js +0 -65
- package/build/dateLookup/tableLink/TableLink.js.map +0 -1
- package/build/dateLookup/tableLink/TableLink.mjs +0 -59
- package/build/dateLookup/tableLink/TableLink.mjs.map +0 -1
- package/build/dateLookup/yearCalendar/YearCalendar.js +0 -57
- package/build/dateLookup/yearCalendar/YearCalendar.js.map +0 -1
- package/build/dateLookup/yearCalendar/YearCalendar.mjs +0 -55
- package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +0 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -83
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +0 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs +0 -81
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +0 -1
- package/build/decision/Decision.js +0 -108
- package/build/decision/Decision.js.map +0 -1
- package/build/decision/Decision.mjs +0 -100
- package/build/decision/Decision.mjs.map +0 -1
- package/build/definitionList/DefinitionList.js +0 -90
- package/build/definitionList/DefinitionList.js.map +0 -1
- package/build/definitionList/DefinitionList.mjs +0 -83
- package/build/definitionList/DefinitionList.mjs.map +0 -1
- package/build/dimmer/Dimmer.js +0 -184
- package/build/dimmer/Dimmer.js.map +0 -1
- package/build/dimmer/Dimmer.mjs +0 -172
- package/build/dimmer/Dimmer.mjs.map +0 -1
- package/build/dimmer/dimmerManager/DimmerManager.js +0 -36
- package/build/dimmer/dimmerManager/DimmerManager.js.map +0 -1
- package/build/dimmer/dimmerManager/DimmerManager.mjs +0 -34
- package/build/dimmer/dimmerManager/DimmerManager.mjs.map +0 -1
- package/build/display/Display.js +0 -26
- package/build/display/Display.js.map +0 -1
- package/build/display/Display.mjs +0 -20
- package/build/display/Display.mjs.map +0 -1
- package/build/drawer/Drawer.js +0 -95
- package/build/drawer/Drawer.js.map +0 -1
- package/build/drawer/Drawer.mjs +0 -88
- package/build/drawer/Drawer.mjs.map +0 -1
- package/build/dropFade/DropFade.js +0 -48
- package/build/dropFade/DropFade.js.map +0 -1
- package/build/dropFade/DropFade.mjs +0 -42
- package/build/dropFade/DropFade.mjs.map +0 -1
- package/build/emphasis/Emphasis.js +0 -24
- package/build/emphasis/Emphasis.js.map +0 -1
- package/build/emphasis/Emphasis.mjs +0 -22
- package/build/emphasis/Emphasis.mjs.map +0 -1
- package/build/emphasis/EmphasisHtmlTransformer.js +0 -39
- package/build/emphasis/EmphasisHtmlTransformer.js.map +0 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs +0 -37
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +0 -1
- package/build/field/Field.js +0 -63
- package/build/field/Field.js.map +0 -1
- package/build/field/Field.mjs +0 -57
- package/build/field/Field.mjs.map +0 -1
- package/build/flowNavigation/FlowNavigation.js +0 -80
- package/build/flowNavigation/FlowNavigation.js.map +0 -1
- package/build/flowNavigation/FlowNavigation.messages.js +0 -12
- package/build/flowNavigation/FlowNavigation.messages.js.map +0 -1
- package/build/flowNavigation/FlowNavigation.messages.mjs +0 -10
- package/build/flowNavigation/FlowNavigation.messages.mjs.map +0 -1
- package/build/flowNavigation/FlowNavigation.mjs +0 -74
- package/build/flowNavigation/FlowNavigation.mjs.map +0 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js +0 -34
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +0 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs +0 -28
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +0 -1
- package/build/flowNavigation/backButton/BackButton.js +0 -44
- package/build/flowNavigation/backButton/BackButton.js.map +0 -1
- package/build/flowNavigation/backButton/BackButton.mjs +0 -37
- package/build/flowNavigation/backButton/BackButton.mjs.map +0 -1
- package/build/flowNavigation/backButton/index.js +0 -8
- package/build/flowNavigation/backButton/index.js.map +0 -1
- package/build/flowNavigation/backButton/index.mjs +0 -6
- package/build/flowNavigation/backButton/index.mjs.map +0 -1
- package/build/header/Header.js +0 -87
- package/build/header/Header.js.map +0 -1
- package/build/header/Header.mjs +0 -78
- package/build/header/Header.mjs.map +0 -1
- package/build/i18n/cs.json.js +0 -61
- package/build/i18n/cs.json.js.map +0 -1
- package/build/i18n/cs.json.mjs +0 -59
- package/build/i18n/cs.json.mjs.map +0 -1
- package/build/i18n/de.json.js +0 -62
- package/build/i18n/de.json.js.map +0 -1
- package/build/i18n/de.json.mjs +0 -60
- package/build/i18n/de.json.mjs.map +0 -1
- package/build/i18n/en.json.js +0 -62
- package/build/i18n/en.json.js.map +0 -1
- package/build/i18n/en.json.mjs +0 -60
- package/build/i18n/en.json.mjs.map +0 -1
- package/build/i18n/es.json.js +0 -62
- package/build/i18n/es.json.js.map +0 -1
- package/build/i18n/es.json.mjs +0 -60
- package/build/i18n/es.json.mjs.map +0 -1
- package/build/i18n/fr.json.js +0 -62
- package/build/i18n/fr.json.js.map +0 -1
- package/build/i18n/fr.json.mjs +0 -60
- package/build/i18n/fr.json.mjs.map +0 -1
- package/build/i18n/hu.json.js +0 -62
- package/build/i18n/hu.json.js.map +0 -1
- package/build/i18n/hu.json.mjs +0 -60
- package/build/i18n/hu.json.mjs.map +0 -1
- package/build/i18n/id.json.js +0 -62
- package/build/i18n/id.json.js.map +0 -1
- package/build/i18n/id.json.mjs +0 -60
- package/build/i18n/id.json.mjs.map +0 -1
- package/build/i18n/index.js +0 -45
- package/build/i18n/index.js.map +0 -1
- package/build/i18n/index.mjs +0 -43
- package/build/i18n/index.mjs.map +0 -1
- package/build/i18n/it.json.js +0 -62
- package/build/i18n/it.json.js.map +0 -1
- package/build/i18n/it.json.mjs +0 -60
- package/build/i18n/it.json.mjs.map +0 -1
- package/build/i18n/ja.json.js +0 -62
- package/build/i18n/ja.json.js.map +0 -1
- package/build/i18n/ja.json.mjs +0 -60
- package/build/i18n/ja.json.mjs.map +0 -1
- package/build/i18n/pl.json.js +0 -62
- package/build/i18n/pl.json.js.map +0 -1
- package/build/i18n/pl.json.mjs +0 -60
- package/build/i18n/pl.json.mjs.map +0 -1
- package/build/i18n/pt.json.js +0 -62
- package/build/i18n/pt.json.js.map +0 -1
- package/build/i18n/pt.json.mjs +0 -60
- package/build/i18n/pt.json.mjs.map +0 -1
- package/build/i18n/ro.json.js +0 -62
- package/build/i18n/ro.json.js.map +0 -1
- package/build/i18n/ro.json.mjs +0 -60
- package/build/i18n/ro.json.mjs.map +0 -1
- package/build/i18n/ru.json.js +0 -62
- package/build/i18n/ru.json.js.map +0 -1
- package/build/i18n/ru.json.mjs +0 -60
- package/build/i18n/ru.json.mjs.map +0 -1
- package/build/i18n/th.json.js +0 -62
- package/build/i18n/th.json.js.map +0 -1
- package/build/i18n/th.json.mjs +0 -60
- package/build/i18n/th.json.mjs.map +0 -1
- package/build/i18n/tr.json.js +0 -62
- package/build/i18n/tr.json.js.map +0 -1
- package/build/i18n/tr.json.mjs +0 -60
- package/build/i18n/tr.json.mjs.map +0 -1
- package/build/i18n/uk.json.js +0 -61
- package/build/i18n/uk.json.js.map +0 -1
- package/build/i18n/uk.json.mjs +0 -59
- package/build/i18n/uk.json.mjs.map +0 -1
- package/build/i18n/zh-CN.json.js +0 -62
- package/build/i18n/zh-CN.json.js.map +0 -1
- package/build/i18n/zh-CN.json.mjs +0 -60
- package/build/i18n/zh-CN.json.mjs.map +0 -1
- package/build/i18n/zh-HK.json.js +0 -62
- package/build/i18n/zh-HK.json.js.map +0 -1
- package/build/i18n/zh-HK.json.mjs +0 -60
- package/build/i18n/zh-HK.json.mjs.map +0 -1
- package/build/image/Image.js +0 -55
- package/build/image/Image.js.map +0 -1
- package/build/image/Image.mjs +0 -46
- package/build/image/Image.mjs.map +0 -1
- package/build/info/Info.js +0 -80
- package/build/info/Info.js.map +0 -1
- package/build/info/Info.messages.js +0 -12
- package/build/info/Info.messages.js.map +0 -1
- package/build/info/Info.messages.mjs +0 -10
- package/build/info/Info.messages.mjs.map +0 -1
- package/build/info/Info.mjs +0 -74
- package/build/info/Info.mjs.map +0 -1
- package/build/info/infoPresentations.js +0 -9
- package/build/info/infoPresentations.js.map +0 -1
- package/build/info/infoPresentations.mjs +0 -9
- package/build/info/infoPresentations.mjs.map +0 -1
- package/build/inlineAlert/InlineAlert.js +0 -29
- package/build/inlineAlert/InlineAlert.js.map +0 -1
- package/build/inlineAlert/InlineAlert.mjs +0 -23
- package/build/inlineAlert/InlineAlert.mjs.map +0 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -15
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +0 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs +0 -13
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +0 -1
- package/build/inputs/Input.js +0 -39
- package/build/inputs/Input.js.map +0 -1
- package/build/inputs/Input.mjs +0 -33
- package/build/inputs/Input.mjs.map +0 -1
- package/build/inputs/InputGroup.js +0 -95
- package/build/inputs/InputGroup.js.map +0 -1
- package/build/inputs/InputGroup.mjs +0 -88
- package/build/inputs/InputGroup.mjs.map +0 -1
- package/build/inputs/SearchInput.js +0 -38
- package/build/inputs/SearchInput.js.map +0 -1
- package/build/inputs/SearchInput.mjs +0 -36
- package/build/inputs/SearchInput.mjs.map +0 -1
- package/build/inputs/SelectInput.js +0 -583
- package/build/inputs/SelectInput.js.map +0 -1
- package/build/inputs/SelectInput.messages.js +0 -12
- package/build/inputs/SelectInput.messages.js.map +0 -1
- package/build/inputs/SelectInput.messages.mjs +0 -10
- package/build/inputs/SelectInput.messages.mjs.map +0 -1
- package/build/inputs/SelectInput.mjs +0 -574
- package/build/inputs/SelectInput.mjs.map +0 -1
- package/build/inputs/TextArea.js +0 -27
- package/build/inputs/TextArea.js.map +0 -1
- package/build/inputs/TextArea.mjs +0 -21
- package/build/inputs/TextArea.mjs.map +0 -1
- package/build/inputs/_BottomSheet.js +0 -123
- package/build/inputs/_BottomSheet.js.map +0 -1
- package/build/inputs/_BottomSheet.mjs +0 -117
- package/build/inputs/_BottomSheet.mjs.map +0 -1
- package/build/inputs/_ButtonInput.js +0 -37
- package/build/inputs/_ButtonInput.js.map +0 -1
- package/build/inputs/_ButtonInput.mjs +0 -31
- package/build/inputs/_ButtonInput.mjs.map +0 -1
- package/build/inputs/_Popover.js +0 -120
- package/build/inputs/_Popover.js.map +0 -1
- package/build/inputs/_Popover.mjs +0 -114
- package/build/inputs/_Popover.mjs.map +0 -1
- package/build/inputs/_common.js +0 -23
- package/build/inputs/_common.js.map +0 -1
- package/build/inputs/_common.mjs +0 -17
- package/build/inputs/_common.mjs.map +0 -1
- package/build/inputs/contexts.js +0 -42
- package/build/inputs/contexts.js.map +0 -1
- package/build/inputs/contexts.mjs +0 -35
- package/build/inputs/contexts.mjs.map +0 -1
- package/build/instructionsList/InstructionsList.js +0 -66
- package/build/instructionsList/InstructionsList.js.map +0 -1
- package/build/instructionsList/InstructionsList.mjs +0 -60
- package/build/instructionsList/InstructionsList.mjs.map +0 -1
- package/build/label/Label.js +0 -25
- package/build/label/Label.js.map +0 -1
- package/build/label/Label.mjs +0 -19
- package/build/label/Label.mjs.map +0 -1
- package/build/link/Link.js +0 -42
- package/build/link/Link.js.map +0 -1
- package/build/link/Link.messages.js +0 -12
- package/build/link/Link.messages.js.map +0 -1
- package/build/link/Link.messages.mjs +0 -10
- package/build/link/Link.messages.mjs.map +0 -1
- package/build/link/Link.mjs +0 -36
- package/build/link/Link.mjs.map +0 -1
- package/build/listItem/ListItem.js +0 -50
- package/build/listItem/ListItem.js.map +0 -1
- package/build/listItem/ListItem.mjs +0 -44
- package/build/listItem/ListItem.mjs.map +0 -1
- package/build/loader/Loader.js +0 -68
- package/build/loader/Loader.js.map +0 -1
- package/build/loader/Loader.mjs +0 -62
- package/build/loader/Loader.mjs.map +0 -1
- package/build/logo/Logo.js +0 -180
- package/build/logo/Logo.js.map +0 -1
- package/build/logo/Logo.mjs +0 -173
- package/build/logo/Logo.mjs.map +0 -1
- package/build/logo/logoTypes.js +0 -10
- package/build/logo/logoTypes.js.map +0 -1
- package/build/logo/logoTypes.mjs +0 -10
- package/build/logo/logoTypes.mjs.map +0 -1
- package/build/markdown/Markdown.js +0 -75
- package/build/markdown/Markdown.js.map +0 -1
- package/build/markdown/Markdown.mjs +0 -69
- package/build/markdown/Markdown.mjs.map +0 -1
- package/build/modal/Modal.js +0 -113
- package/build/modal/Modal.js.map +0 -1
- package/build/modal/Modal.mjs +0 -107
- package/build/modal/Modal.mjs.map +0 -1
- package/build/money/Money.js +0 -20
- package/build/money/Money.js.map +0 -1
- package/build/money/Money.mjs +0 -18
- package/build/money/Money.mjs.map +0 -1
- package/build/moneyInput/MoneyInput.js +0 -369
- package/build/moneyInput/MoneyInput.js.map +0 -1
- package/build/moneyInput/MoneyInput.messages.js +0 -12
- package/build/moneyInput/MoneyInput.messages.js.map +0 -1
- package/build/moneyInput/MoneyInput.messages.mjs +0 -10
- package/build/moneyInput/MoneyInput.messages.mjs.map +0 -1
- package/build/moneyInput/MoneyInput.mjs +0 -363
- package/build/moneyInput/MoneyInput.mjs.map +0 -1
- package/build/moneyInput/currencyFormatting.js +0 -70
- package/build/moneyInput/currencyFormatting.js.map +0 -1
- package/build/moneyInput/currencyFormatting.mjs +0 -64
- package/build/moneyInput/currencyFormatting.mjs.map +0 -1
- package/build/navigationOption/NavigationOption.js +0 -48
- package/build/navigationOption/NavigationOption.js.map +0 -1
- package/build/navigationOption/NavigationOption.mjs +0 -42
- package/build/navigationOption/NavigationOption.mjs.map +0 -1
- package/build/navigationOptionsList/NavigationOptionsList.js +0 -19
- package/build/navigationOptionsList/NavigationOptionsList.js.map +0 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs +0 -17
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +0 -1
- package/build/nudge/Nudge.js +0 -121
- package/build/nudge/Nudge.js.map +0 -1
- package/build/nudge/Nudge.mjs +0 -112
- package/build/nudge/Nudge.mjs.map +0 -1
- package/build/overlayHeader/OverlayHeader.js +0 -54
- package/build/overlayHeader/OverlayHeader.js.map +0 -1
- package/build/overlayHeader/OverlayHeader.mjs +0 -47
- package/build/overlayHeader/OverlayHeader.mjs.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +0 -161
- package/build/phoneNumberInput/PhoneNumberInput.js.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.js +0 -12
- package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs +0 -10
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +0 -159
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +0 -1
- package/build/phoneNumberInput/data/countries.js +0 -1278
- package/build/phoneNumberInput/data/countries.js.map +0 -1
- package/build/phoneNumberInput/data/countries.mjs +0 -1276
- package/build/phoneNumberInput/data/countries.mjs.map +0 -1
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -7
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js.map +0 -1
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs +0 -5
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +0 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -19
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +0 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs +0 -17
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +0 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js +0 -21
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +0 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs +0 -19
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js +0 -17
- package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs +0 -15
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -17
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs +0 -15
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -12
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +0 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs +0 -10
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +0 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -11
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js.map +0 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs +0 -9
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs.map +0 -1
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -6
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js.map +0 -1
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs +0 -4
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -22
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +0 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs +0 -20
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -8
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +0 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs +0 -6
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +0 -1
- package/build/popover/Popover.js +0 -79
- package/build/popover/Popover.js.map +0 -1
- package/build/popover/Popover.mjs +0 -73
- package/build/popover/Popover.mjs.map +0 -1
- package/build/processIndicator/ProcessIndicator.js +0 -120
- package/build/processIndicator/ProcessIndicator.js.map +0 -1
- package/build/processIndicator/ProcessIndicator.mjs +0 -114
- package/build/processIndicator/ProcessIndicator.mjs.map +0 -1
- package/build/progress/Progress.js +0 -24
- package/build/progress/Progress.js.map +0 -1
- package/build/progress/Progress.mjs +0 -18
- package/build/progress/Progress.mjs.map +0 -1
- package/build/progressBar/ProgressBar.js +0 -51
- package/build/progressBar/ProgressBar.js.map +0 -1
- package/build/progressBar/ProgressBar.mjs +0 -45
- package/build/progressBar/ProgressBar.mjs.map +0 -1
- package/build/promoCard/PromoCard.js +0 -189
- package/build/promoCard/PromoCard.js.map +0 -1
- package/build/promoCard/PromoCard.mjs +0 -182
- package/build/promoCard/PromoCard.mjs.map +0 -1
- package/build/promoCard/PromoCardContext.js +0 -33
- package/build/promoCard/PromoCardContext.js.map +0 -1
- package/build/promoCard/PromoCardContext.mjs +0 -27
- package/build/promoCard/PromoCardContext.mjs.map +0 -1
- package/build/promoCard/PromoCardGroup.js +0 -80
- package/build/promoCard/PromoCardGroup.js.map +0 -1
- package/build/promoCard/PromoCardGroup.mjs +0 -73
- package/build/promoCard/PromoCardGroup.mjs.map +0 -1
- package/build/promoCard/PromoCardIndicator.js +0 -53
- package/build/promoCard/PromoCardIndicator.js.map +0 -1
- package/build/promoCard/PromoCardIndicator.mjs +0 -47
- package/build/promoCard/PromoCardIndicator.mjs.map +0 -1
- package/build/provider/Provider.js +0 -53
- package/build/provider/Provider.js.map +0 -1
- package/build/provider/Provider.mjs +0 -51
- package/build/provider/Provider.mjs.map +0 -1
- package/build/provider/direction/DirectionProvider.js +0 -20
- package/build/provider/direction/DirectionProvider.js.map +0 -1
- package/build/provider/direction/DirectionProvider.mjs +0 -17
- package/build/provider/direction/DirectionProvider.mjs.map +0 -1
- package/build/provider/language/LanguageProvider.js +0 -20
- package/build/provider/language/LanguageProvider.js.map +0 -1
- package/build/provider/language/LanguageProvider.mjs +0 -17
- package/build/provider/language/LanguageProvider.mjs.map +0 -1
- package/build/radio/Radio.js +0 -63
- package/build/radio/Radio.js.map +0 -1
- package/build/radio/Radio.mjs +0 -57
- package/build/radio/Radio.mjs.map +0 -1
- package/build/radioGroup/RadioGroup.js +0 -40
- package/build/radioGroup/RadioGroup.js.map +0 -1
- package/build/radioGroup/RadioGroup.mjs +0 -38
- package/build/radioGroup/RadioGroup.mjs.map +0 -1
- package/build/radioOption/RadioOption.js +0 -46
- package/build/radioOption/RadioOption.js.map +0 -1
- package/build/radioOption/RadioOption.mjs +0 -44
- package/build/radioOption/RadioOption.mjs.map +0 -1
- package/build/section/Section.js +0 -24
- package/build/section/Section.js.map +0 -1
- package/build/section/Section.mjs +0 -18
- package/build/section/Section.mjs.map +0 -1
- package/build/segmentedControl/SegmentedControl.js +0 -115
- package/build/segmentedControl/SegmentedControl.js.map +0 -1
- package/build/segmentedControl/SegmentedControl.mjs +0 -109
- package/build/segmentedControl/SegmentedControl.mjs.map +0 -1
- package/build/select/Select.js +0 -579
- package/build/select/Select.js.map +0 -1
- package/build/select/Select.messages.js +0 -12
- package/build/select/Select.messages.js.map +0 -1
- package/build/select/Select.messages.mjs +0 -10
- package/build/select/Select.messages.mjs.map +0 -1
- package/build/select/Select.mjs +0 -572
- package/build/select/Select.mjs.map +0 -1
- package/build/select/index.js +0 -8
- package/build/select/index.js.map +0 -1
- package/build/select/index.mjs +0 -6
- package/build/select/index.mjs.map +0 -1
- package/build/select/option/Option.js +0 -58
- package/build/select/option/Option.js.map +0 -1
- package/build/select/option/Option.mjs +0 -52
- package/build/select/option/Option.mjs.map +0 -1
- package/build/select/option/index.js +0 -8
- package/build/select/option/index.js.map +0 -1
- package/build/select/option/index.mjs +0 -6
- package/build/select/option/index.mjs.map +0 -1
- package/build/select/searchBox/SearchBox.js +0 -54
- package/build/select/searchBox/SearchBox.js.map +0 -1
- package/build/select/searchBox/SearchBox.mjs +0 -48
- package/build/select/searchBox/SearchBox.mjs.map +0 -1
- package/build/slidingPanel/SlidingPanel.js +0 -49
- package/build/slidingPanel/SlidingPanel.js.map +0 -1
- package/build/slidingPanel/SlidingPanel.mjs +0 -40
- package/build/slidingPanel/SlidingPanel.mjs.map +0 -1
- package/build/snackbar/Snackbar.js +0 -134
- package/build/snackbar/Snackbar.js.map +0 -1
- package/build/snackbar/Snackbar.mjs +0 -129
- package/build/snackbar/Snackbar.mjs.map +0 -1
- package/build/snackbar/SnackbarContext.js +0 -12
- package/build/snackbar/SnackbarContext.js.map +0 -1
- package/build/snackbar/SnackbarContext.mjs +0 -9
- package/build/snackbar/SnackbarContext.mjs.map +0 -1
- package/build/snackbar/SnackbarProvider.js +0 -48
- package/build/snackbar/SnackbarProvider.js.map +0 -1
- package/build/snackbar/SnackbarProvider.mjs +0 -46
- package/build/snackbar/SnackbarProvider.mjs.map +0 -1
- package/build/snackbar/useSnackbar.js +0 -14
- package/build/snackbar/useSnackbar.js.map +0 -1
- package/build/snackbar/useSnackbar.mjs +0 -12
- package/build/snackbar/useSnackbar.mjs.map +0 -1
- package/build/statusIcon/StatusIcon.js +0 -37
- package/build/statusIcon/StatusIcon.js.map +0 -1
- package/build/statusIcon/StatusIcon.mjs +0 -31
- package/build/statusIcon/StatusIcon.mjs.map +0 -1
- package/build/stepper/Stepper.js +0 -80
- package/build/stepper/Stepper.js.map +0 -1
- package/build/stepper/Stepper.mjs +0 -74
- package/build/stepper/Stepper.mjs.map +0 -1
- package/build/stepper/deviceDetection.js +0 -22
- package/build/stepper/deviceDetection.js.map +0 -1
- package/build/stepper/deviceDetection.mjs +0 -20
- package/build/stepper/deviceDetection.mjs.map +0 -1
- package/build/sticky/Sticky.js +0 -21
- package/build/sticky/Sticky.js.map +0 -1
- package/build/sticky/Sticky.mjs +0 -19
- package/build/sticky/Sticky.mjs.map +0 -1
- package/build/summary/Summary.js +0 -119
- package/build/summary/Summary.js.map +0 -1
- package/build/summary/Summary.messages.js +0 -18
- package/build/summary/Summary.messages.js.map +0 -1
- package/build/summary/Summary.messages.mjs +0 -16
- package/build/summary/Summary.messages.mjs.map +0 -1
- package/build/summary/Summary.mjs +0 -113
- package/build/summary/Summary.mjs.map +0 -1
- package/build/switch/Switch.js +0 -82
- package/build/switch/Switch.js.map +0 -1
- package/build/switch/Switch.mjs +0 -76
- package/build/switch/Switch.mjs.map +0 -1
- package/build/switchOption/SwitchOption.js +0 -59
- package/build/switchOption/SwitchOption.js.map +0 -1
- package/build/switchOption/SwitchOption.mjs +0 -57
- package/build/switchOption/SwitchOption.mjs.map +0 -1
- package/build/tabs/Tab.js +0 -81
- package/build/tabs/Tab.js.map +0 -1
- package/build/tabs/Tab.mjs +0 -74
- package/build/tabs/Tab.mjs.map +0 -1
- package/build/tabs/TabList.js +0 -24
- package/build/tabs/TabList.js.map +0 -1
- package/build/tabs/TabList.mjs +0 -18
- package/build/tabs/TabList.mjs.map +0 -1
- package/build/tabs/TabPanel.js +0 -35
- package/build/tabs/TabPanel.js.map +0 -1
- package/build/tabs/TabPanel.mjs +0 -29
- package/build/tabs/TabPanel.mjs.map +0 -1
- package/build/tabs/Tabs.js +0 -541
- package/build/tabs/Tabs.js.map +0 -1
- package/build/tabs/Tabs.mjs +0 -533
- package/build/tabs/Tabs.mjs.map +0 -1
- package/build/tabs/utils.js +0 -50
- package/build/tabs/utils.js.map +0 -1
- package/build/tabs/utils.mjs +0 -42
- package/build/tabs/utils.mjs.map +0 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -15
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +0 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs +0 -13
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +0 -1
- package/build/tile/Tile.js +0 -86
- package/build/tile/Tile.js.map +0 -1
- package/build/tile/Tile.mjs +0 -76
- package/build/tile/Tile.mjs.map +0 -1
- package/build/title/Title.js +0 -42
- package/build/title/Title.js.map +0 -1
- package/build/title/Title.mjs +0 -36
- package/build/title/Title.mjs.map +0 -1
- package/build/tooltip/Tooltip.js +0 -103
- package/build/tooltip/Tooltip.js.map +0 -1
- package/build/tooltip/Tooltip.mjs +0 -97
- package/build/tooltip/Tooltip.mjs.map +0 -1
- package/build/typeahead/Typeahead.js +0 -468
- package/build/typeahead/Typeahead.js.map +0 -1
- package/build/typeahead/Typeahead.mjs +0 -460
- package/build/typeahead/Typeahead.mjs.map +0 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js +0 -120
- package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +0 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +0 -114
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +0 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.js +0 -49
- package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +0 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.mjs +0 -43
- package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +0 -1
- package/build/typeahead/util/highlight.js +0 -21
- package/build/typeahead/util/highlight.js.map +0 -1
- package/build/typeahead/util/highlight.mjs +0 -19
- package/build/typeahead/util/highlight.mjs.map +0 -1
- package/build/upload/Upload.js +0 -435
- package/build/upload/Upload.js.map +0 -1
- package/build/upload/Upload.messages.js +0 -39
- package/build/upload/Upload.messages.js.map +0 -1
- package/build/upload/Upload.messages.mjs +0 -37
- package/build/upload/Upload.messages.mjs.map +0 -1
- package/build/upload/Upload.mjs +0 -425
- package/build/upload/Upload.mjs.map +0 -1
- package/build/upload/steps/completeStep/completeStep.js +0 -102
- package/build/upload/steps/completeStep/completeStep.js.map +0 -1
- package/build/upload/steps/completeStep/completeStep.mjs +0 -95
- package/build/upload/steps/completeStep/completeStep.mjs.map +0 -1
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -97
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.js.map +0 -1
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.mjs +0 -91
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.mjs.map +0 -1
- package/build/upload/steps/processingStep/processingStep.js +0 -79
- package/build/upload/steps/processingStep/processingStep.js.map +0 -1
- package/build/upload/steps/processingStep/processingStep.mjs +0 -72
- package/build/upload/steps/processingStep/processingStep.mjs.map +0 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +0 -106
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +0 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +0 -100
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +0 -1
- package/build/upload/uploadSteps.js +0 -9
- package/build/upload/uploadSteps.js.map +0 -1
- package/build/upload/uploadSteps.mjs +0 -9
- package/build/upload/uploadSteps.mjs.map +0 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.js +0 -15
- package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +0 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.mjs +0 -13
- package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +0 -1
- package/build/upload/utils/getFileType/getFileType.js +0 -21
- package/build/upload/utils/getFileType/getFileType.js.map +0 -1
- package/build/upload/utils/getFileType/getFileType.mjs +0 -19
- package/build/upload/utils/getFileType/getFileType.mjs.map +0 -1
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -19
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js.map +0 -1
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.mjs +0 -17
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.mjs.map +0 -1
- package/build/upload/utils/isSizeValid/isSizeValid.js +0 -6
- package/build/upload/utils/isSizeValid/isSizeValid.js.map +0 -1
- package/build/upload/utils/isSizeValid/isSizeValid.mjs +0 -4
- package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +0 -1
- package/build/upload/utils/isTypeValid/isTypeValid.js +0 -26
- package/build/upload/utils/isTypeValid/isTypeValid.js.map +0 -1
- package/build/upload/utils/isTypeValid/isTypeValid.mjs +0 -24
- package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +0 -1
- package/build/upload/utils/postData/postData.js +0 -20
- package/build/upload/utils/postData/postData.js.map +0 -1
- package/build/upload/utils/postData/postData.mjs +0 -18
- package/build/upload/utils/postData/postData.mjs.map +0 -1
- package/build/upload/utils/requestMedia/requestMedia.js +0 -26
- package/build/upload/utils/requestMedia/requestMedia.js.map +0 -1
- package/build/upload/utils/requestMedia/requestMedia.mjs +0 -24
- package/build/upload/utils/requestMedia/requestMedia.mjs.map +0 -1
- package/build/uploadInput/UploadInput.js +0 -264
- package/build/uploadInput/UploadInput.js.map +0 -1
- package/build/uploadInput/UploadInput.messages.js +0 -30
- package/build/uploadInput/UploadInput.messages.js.map +0 -1
- package/build/uploadInput/UploadInput.messages.mjs +0 -28
- package/build/uploadInput/UploadInput.messages.mjs.map +0 -1
- package/build/uploadInput/UploadInput.mjs +0 -258
- package/build/uploadInput/UploadInput.mjs.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.js +0 -202
- package/build/uploadInput/uploadButton/UploadButton.js.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.js +0 -24
- package/build/uploadInput/uploadButton/UploadButton.messages.js.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs +0 -22
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +0 -194
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +0 -1
- package/build/uploadInput/uploadButton/defaults.js +0 -10
- package/build/uploadInput/uploadButton/defaults.js.map +0 -1
- package/build/uploadInput/uploadButton/defaults.mjs +0 -7
- package/build/uploadInput/uploadButton/defaults.mjs.map +0 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js +0 -8
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +0 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +0 -6
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.js +0 -174
- package/build/uploadInput/uploadItem/UploadItem.js.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.js +0 -27
- package/build/uploadInput/uploadItem/UploadItem.messages.js.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.mjs +0 -25
- package/build/uploadInput/uploadItem/UploadItem.messages.mjs.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs +0 -166
- package/build/uploadInput/uploadItem/UploadItem.mjs.map +0 -1
- package/build/uploadInput/uploadItem/UploadItemBody.js +0 -27
- package/build/uploadInput/uploadItem/UploadItemBody.js.map +0 -1
- package/build/uploadInput/uploadItem/UploadItemBody.mjs +0 -25
- package/build/uploadInput/uploadItem/UploadItemBody.mjs.map +0 -1
- package/build/utilities/cssValueWithUnit.js +0 -8
- package/build/utilities/cssValueWithUnit.js.map +0 -1
- package/build/utilities/cssValueWithUnit.mjs +0 -6
- package/build/utilities/cssValueWithUnit.mjs.map +0 -1
- package/build/utilities/logActionRequired.js +0 -17
- package/build/utilities/logActionRequired.js.map +0 -1
- package/build/utilities/logActionRequired.mjs +0 -14
- package/build/utilities/logActionRequired.mjs.map +0 -1
- package/build/withDisplayFormat/WithDisplayFormat.js +0 -304
- package/build/withDisplayFormat/WithDisplayFormat.js.map +0 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +0 -282
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +0 -1
- package/build/withNextPortal/withNextPortal.js +0 -20
- package/build/withNextPortal/withNextPortal.js.map +0 -1
- package/build/withNextPortal/withNextPortal.mjs +0 -18
- package/build/withNextPortal/withNextPortal.mjs.map +0 -1
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl';
|
|
4
|
-
import '@transferwise/formatting';
|
|
5
|
-
import { getMonthNames } from '../common/dateUtils/getMonthNames/getMonthNames.mjs';
|
|
6
|
-
import { isDateValid } from '../common/dateUtils/isDateValid/isDateValid.mjs';
|
|
7
|
-
import { isMonthAndYearFormat } from '../common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs';
|
|
8
|
-
import { MDY, YMD } from '../common/dateUtils/getFormatForLocale/getFormatForLocale.mjs';
|
|
9
|
-
import { useInputAttributes } from '../inputs/contexts.mjs';
|
|
10
|
-
import messages from './DateInput.messages.mjs';
|
|
11
|
-
import { convertToLocalMidnight } from './utils/convertToLocalMidnight/convertToLocalMidnight.mjs';
|
|
12
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
13
|
-
import { DateMode } from '../common/propsValues/dateMode.mjs';
|
|
14
|
-
import { MonthFormat } from '../common/propsValues/monthFormat.mjs';
|
|
15
|
-
import { Input } from '../inputs/Input.mjs';
|
|
16
|
-
import { SelectInput, SelectInputOptionContent } from '../inputs/SelectInput.mjs';
|
|
17
|
-
import { Size } from '../common/propsValues/size.mjs';
|
|
18
|
-
|
|
19
|
-
const DateInput = ({
|
|
20
|
-
'aria-labelledby': ariaLabelledByProp,
|
|
21
|
-
'aria-label': ariaLabel,
|
|
22
|
-
disabled = false,
|
|
23
|
-
size = Size.MEDIUM,
|
|
24
|
-
value,
|
|
25
|
-
dayLabel,
|
|
26
|
-
dayAutoComplete,
|
|
27
|
-
monthLabel,
|
|
28
|
-
yearLabel,
|
|
29
|
-
yearAutoComplete,
|
|
30
|
-
monthFormat = MonthFormat.LONG,
|
|
31
|
-
mode = DateMode.DAY_MONTH_YEAR,
|
|
32
|
-
onChange,
|
|
33
|
-
onFocus,
|
|
34
|
-
onBlur,
|
|
35
|
-
placeholders,
|
|
36
|
-
id: idProp,
|
|
37
|
-
selectProps = {}
|
|
38
|
-
}) => {
|
|
39
|
-
const inputAttributes = useInputAttributes({
|
|
40
|
-
nonLabelable: true
|
|
41
|
-
});
|
|
42
|
-
const id = idProp ?? inputAttributes.id;
|
|
43
|
-
const ariaLabelledBy = ariaLabelledByProp ?? inputAttributes['aria-labelledby'];
|
|
44
|
-
const {
|
|
45
|
-
locale,
|
|
46
|
-
formatMessage
|
|
47
|
-
} = useIntl();
|
|
48
|
-
const getDateObject = () => {
|
|
49
|
-
if (value && isDateValid(value)) {
|
|
50
|
-
return typeof value === 'string' ? convertToLocalMidnight(value) : value;
|
|
51
|
-
}
|
|
52
|
-
return undefined;
|
|
53
|
-
};
|
|
54
|
-
const getInitialDate = unit => {
|
|
55
|
-
if (value && isDateValid(value)) {
|
|
56
|
-
const dateObject = getDateObject();
|
|
57
|
-
if (typeof value === 'string' && isMonthAndYearFormat(value) && unit === 'day') {
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
if (dateObject !== undefined) {
|
|
61
|
-
switch (unit) {
|
|
62
|
-
case 'year':
|
|
63
|
-
return dateObject.getFullYear();
|
|
64
|
-
case 'month':
|
|
65
|
-
return dateObject.getMonth();
|
|
66
|
-
case 'day':
|
|
67
|
-
return dateObject.getDate();
|
|
68
|
-
default:
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return null;
|
|
74
|
-
};
|
|
75
|
-
const [day, setDay] = useState(() => getInitialDate('day'));
|
|
76
|
-
const [month, setMonth] = useState(() => getInitialDate('month'));
|
|
77
|
-
const [year, setYear] = useState(() => getInitialDate('year'));
|
|
78
|
-
const [lastBroadcastedValue, setLastBroadcastedValue] = useState(getDateObject);
|
|
79
|
-
const monthNames = getMonthNames(locale, monthFormat);
|
|
80
|
-
dayLabel ||= formatMessage(messages.dayLabel);
|
|
81
|
-
monthLabel ||= formatMessage(messages.monthLabel);
|
|
82
|
-
yearLabel ||= formatMessage(messages.yearLabel);
|
|
83
|
-
placeholders = {
|
|
84
|
-
day: placeholders?.day || formatMessage(messages.dayPlaceholder),
|
|
85
|
-
month: placeholders?.month || formatMessage(messages.monthLabel),
|
|
86
|
-
year: placeholders?.year || formatMessage(messages.yearPlaceholder)
|
|
87
|
-
};
|
|
88
|
-
const getDateAsString = date => {
|
|
89
|
-
if (!isDateValid(date)) {
|
|
90
|
-
return '';
|
|
91
|
-
}
|
|
92
|
-
switch (mode) {
|
|
93
|
-
case DateMode.MONTH_YEAR:
|
|
94
|
-
return [date.getFullYear(), `0${date.getMonth() + 1}`.slice(-2)].join('-');
|
|
95
|
-
case DateMode.DAY_MONTH_YEAR:
|
|
96
|
-
default:
|
|
97
|
-
return [date.getFullYear(), `0${date.getMonth() + 1}`.slice(-2), `0${date.getDate()}`.slice(-2)].join('-');
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
const getSelectElement = () => {
|
|
101
|
-
return /*#__PURE__*/jsxs("label", {
|
|
102
|
-
className: "d-flex flex-column",
|
|
103
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
104
|
-
className: "sr-only",
|
|
105
|
-
children: monthLabel
|
|
106
|
-
}), /*#__PURE__*/jsx(SelectInput, {
|
|
107
|
-
name: "month",
|
|
108
|
-
disabled: disabled,
|
|
109
|
-
placeholder: placeholders?.month,
|
|
110
|
-
items: Array.from({
|
|
111
|
-
length: 12
|
|
112
|
-
}, (_, index) => ({
|
|
113
|
-
type: 'option',
|
|
114
|
-
value: index
|
|
115
|
-
})),
|
|
116
|
-
size: size,
|
|
117
|
-
value: month,
|
|
118
|
-
renderValue: selectedValue => /*#__PURE__*/jsx(SelectInputOptionContent, {
|
|
119
|
-
title: monthNames[selectedValue]
|
|
120
|
-
}),
|
|
121
|
-
onChange: selectedValue => handleMonthChange(selectedValue),
|
|
122
|
-
...selectProps
|
|
123
|
-
})]
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
const handleInternalValue = (newDay = day, newMonth = month, newYear = year) => {
|
|
127
|
-
if (newDay == null || newMonth == null || newYear == null) {
|
|
128
|
-
broadcastNewValue(null);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
const dateValue = new Date(newYear, newMonth, newDay);
|
|
132
|
-
if (!isDateValid(dateValue)) {
|
|
133
|
-
broadcastNewValue(null);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (mode === DateMode.MONTH_YEAR) {
|
|
137
|
-
if (newMonth !== month || newYear !== year) {
|
|
138
|
-
broadcastNewValue(dateValue);
|
|
139
|
-
}
|
|
140
|
-
} else if (newDay !== day || newMonth !== month || newYear !== year) {
|
|
141
|
-
broadcastNewValue(dateValue);
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
const handleDayChange = event => {
|
|
145
|
-
const {
|
|
146
|
-
checkedDay
|
|
147
|
-
} = checkDate(Number.parseInt(event.target.value, 10), month, year);
|
|
148
|
-
setDay(checkedDay);
|
|
149
|
-
handleInternalValue(checkedDay, month, year);
|
|
150
|
-
};
|
|
151
|
-
const handleMonthChange = selectedMonth => {
|
|
152
|
-
if (selectedMonth === null) {
|
|
153
|
-
setMonth(null);
|
|
154
|
-
handleInternalValue(day, null, year);
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
const {
|
|
158
|
-
checkedDay
|
|
159
|
-
} = checkDate(day, selectedMonth, year);
|
|
160
|
-
setMonth(selectedMonth);
|
|
161
|
-
if (day && checkedDay !== day) {
|
|
162
|
-
setDay(checkedDay);
|
|
163
|
-
}
|
|
164
|
-
handleInternalValue(checkedDay, selectedMonth, year);
|
|
165
|
-
};
|
|
166
|
-
const handleYearChange = event => {
|
|
167
|
-
const newValue = event.target.value;
|
|
168
|
-
const slicedYear = newValue.length > 4 ? newValue.slice(0, 4) : newValue;
|
|
169
|
-
if (slicedYear.toString().length === 4) {
|
|
170
|
-
// Correct day based on year and month.
|
|
171
|
-
const {
|
|
172
|
-
checkedDay
|
|
173
|
-
} = checkDate(day, month, Number.parseInt(newValue, 10));
|
|
174
|
-
if (day && checkedDay !== day) {
|
|
175
|
-
setDay(checkedDay);
|
|
176
|
-
}
|
|
177
|
-
setYear(Number.parseInt(slicedYear, 10));
|
|
178
|
-
handleInternalValue(checkedDay, month, Number.parseInt(slicedYear, 10));
|
|
179
|
-
} else {
|
|
180
|
-
setYear(Number.parseInt(slicedYear, 10));
|
|
181
|
-
handleInternalValue(day, month, null);
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
const broadcastNewValue = newValue => {
|
|
185
|
-
if (newValue !== lastBroadcastedValue) {
|
|
186
|
-
setLastBroadcastedValue(newValue);
|
|
187
|
-
onChange(newValue != null ? getDateAsString(newValue) : null);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
const checkDate = (newDay = null, newMonth = 0, newYear = null) => {
|
|
191
|
-
let checkedDay = newDay;
|
|
192
|
-
const maxDay = new Date(newYear || 2000, newMonth != null ? newMonth + 1 : 1, 0).getDate();
|
|
193
|
-
if (!newDay) {
|
|
194
|
-
checkedDay = null;
|
|
195
|
-
}
|
|
196
|
-
if (newDay && newDay < 0) {
|
|
197
|
-
checkedDay = 1;
|
|
198
|
-
}
|
|
199
|
-
if (newDay && newMonth || newDay && newDay > 31) {
|
|
200
|
-
checkedDay = newDay > maxDay ? maxDay : newDay;
|
|
201
|
-
}
|
|
202
|
-
return {
|
|
203
|
-
checkedDay,
|
|
204
|
-
checkedMonth: newMonth,
|
|
205
|
-
checkedYear: newYear
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
const monthYearOnly = mode === DateMode.MONTH_YEAR;
|
|
209
|
-
const monthWidth = classNames({
|
|
210
|
-
'col-sm-8': monthYearOnly,
|
|
211
|
-
'col-sm-5': !monthYearOnly
|
|
212
|
-
});
|
|
213
|
-
const getMonth = () => {
|
|
214
|
-
return /*#__PURE__*/jsx("div", {
|
|
215
|
-
className: monthWidth,
|
|
216
|
-
children: getSelectElement()
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
|
-
const getDay = () => {
|
|
220
|
-
return /*#__PURE__*/jsx("div", {
|
|
221
|
-
className: "col-sm-3",
|
|
222
|
-
children: /*#__PURE__*/jsxs("label", {
|
|
223
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
224
|
-
className: "sr-only",
|
|
225
|
-
children: dayLabel
|
|
226
|
-
}), /*#__PURE__*/jsx("div", {
|
|
227
|
-
className: `input-group input-group-${size}`,
|
|
228
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
229
|
-
type: "text",
|
|
230
|
-
inputMode: "numeric",
|
|
231
|
-
pattern: "[0-9]*",
|
|
232
|
-
name: "day",
|
|
233
|
-
autoComplete: dayAutoComplete,
|
|
234
|
-
value: day || '',
|
|
235
|
-
placeholder: placeholders?.day,
|
|
236
|
-
disabled: disabled,
|
|
237
|
-
min: 1,
|
|
238
|
-
onChange: event => handleDayChange(event)
|
|
239
|
-
})
|
|
240
|
-
})]
|
|
241
|
-
})
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
const getYear = () => {
|
|
245
|
-
return /*#__PURE__*/jsx("div", {
|
|
246
|
-
className: "col-sm-4",
|
|
247
|
-
children: /*#__PURE__*/jsxs("label", {
|
|
248
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
249
|
-
className: "sr-only",
|
|
250
|
-
children: yearLabel
|
|
251
|
-
}), /*#__PURE__*/jsx("div", {
|
|
252
|
-
className: `input-group input-group-${size}`,
|
|
253
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
254
|
-
type: "text",
|
|
255
|
-
inputMode: "numeric",
|
|
256
|
-
pattern: "[0-9]*",
|
|
257
|
-
name: "year",
|
|
258
|
-
autoComplete: yearAutoComplete,
|
|
259
|
-
placeholder: placeholders?.year,
|
|
260
|
-
value: year || '',
|
|
261
|
-
disabled: disabled,
|
|
262
|
-
min: 1,
|
|
263
|
-
onChange: event => handleYearChange(event)
|
|
264
|
-
})
|
|
265
|
-
})]
|
|
266
|
-
})
|
|
267
|
-
});
|
|
268
|
-
};
|
|
269
|
-
const monthBeforeDay = MDY.has(locale);
|
|
270
|
-
const yearFirst = YMD.has(locale);
|
|
271
|
-
return /*#__PURE__*/jsx("div", {
|
|
272
|
-
className: "tw-date",
|
|
273
|
-
...inputAttributes,
|
|
274
|
-
id: id,
|
|
275
|
-
"aria-labelledby": ariaLabelledBy,
|
|
276
|
-
"aria-label": ariaLabel,
|
|
277
|
-
role: "group" // Add role attribute to indicate container for interactive elements
|
|
278
|
-
,
|
|
279
|
-
onFocus: event => shouldPropagateOnFocus(event) ? onFocus && onFocus(event) : event.stopPropagation(),
|
|
280
|
-
onBlur: event => shouldPropagateOnBlur(event) ? onBlur && onBlur(event) : event.stopPropagation(),
|
|
281
|
-
children: /*#__PURE__*/jsx("div", {
|
|
282
|
-
className: "row",
|
|
283
|
-
children: (() => {
|
|
284
|
-
if (monthYearOnly) {
|
|
285
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
286
|
-
children: [!yearFirst && getMonth(), getYear(), yearFirst && getMonth()]
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
if (monthBeforeDay) {
|
|
290
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
291
|
-
children: [getMonth(), getDay(), getYear()]
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
if (yearFirst) {
|
|
295
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
296
|
-
children: [getYear(), getMonth(), getDay()]
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
300
|
-
children: [getDay(), getMonth(), getYear()]
|
|
301
|
-
});
|
|
302
|
-
})()
|
|
303
|
-
})
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
// Should only propagate if the relatedTarget is not part of this DateInput component.
|
|
307
|
-
function shouldPropagateOnFocus({
|
|
308
|
-
target,
|
|
309
|
-
relatedTarget
|
|
310
|
-
}) {
|
|
311
|
-
const targetParent = target.closest('.tw-date');
|
|
312
|
-
const relatedParent = relatedTarget && relatedTarget.closest('.tw-date');
|
|
313
|
-
return targetParent !== relatedParent;
|
|
314
|
-
}
|
|
315
|
-
// Should only propagate if the relatedTarget or the activeElement is not part of this DateInput component.
|
|
316
|
-
function shouldPropagateOnBlur({
|
|
317
|
-
target,
|
|
318
|
-
relatedTarget
|
|
319
|
-
}) {
|
|
320
|
-
const blurElementParent = target.closest('.tw-date');
|
|
321
|
-
// Even though FocusEvent.relatedTarget is supported by IE
|
|
322
|
-
// (https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget)
|
|
323
|
-
// "IE11 sets document.activeElement to the next focused element before the blur event is called."
|
|
324
|
-
// (https://stackoverflow.com/a/49325196/986241)
|
|
325
|
-
// Therefore if the relatedTarget is null, we try the document.activeElement,
|
|
326
|
-
// which may contain the HTML element that is gaining focus
|
|
327
|
-
const focusElement = relatedTarget || (document.activeElement !== target ? document.activeElement : null);
|
|
328
|
-
const focusElementParent = focusElement && focusElement.closest('.tw-date');
|
|
329
|
-
return blurElementParent !== focusElementParent;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export { DateInput as default };
|
|
333
|
-
//# sourceMappingURL=DateInput.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.mjs","sources":["../../src/dateInput/DateInput.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useState } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Input, SelectInput, SelectInputOptionContent, SelectInputProps } from '..';\nimport { DateMode, MonthFormat, Size, SizeLarge, SizeMedium, SizeSmall } from '../common';\nimport { MDY, YMD, getMonthNames, isDateValid, isMonthAndYearFormat } from '../common/dateUtils';\nimport { useInputAttributes } from '../inputs/contexts';\nimport messages from './DateInput.messages';\nimport { convertToLocalMidnight } from './utils';\n\nexport interface DateInputProps {\n /** @deprecated Use `Field` wrapper or the `aria-labelledby` attribute instead. */\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n disabled?: boolean;\n size?: SizeSmall | SizeMedium | SizeLarge;\n value?: Date | string;\n onChange: (value: string | null) => void;\n onFocus?: React.FocusEventHandler<HTMLDivElement>;\n onBlur?: React.FocusEventHandler<HTMLDivElement>;\n dayLabel?: string;\n dayAutoComplete?: string;\n monthLabel?: string;\n yearLabel?: string;\n yearAutoComplete?: string;\n monthFormat?: `${MonthFormat}`;\n mode?: `${DateMode}`;\n placeholders?: {\n day?: string;\n month?: string;\n year?: string;\n };\n id?: string;\n selectProps?: Partial<SelectInputProps<number | null>>;\n}\n\nconst DateInput = ({\n 'aria-labelledby': ariaLabelledByProp,\n 'aria-label': ariaLabel,\n disabled = false,\n size = Size.MEDIUM,\n value,\n dayLabel,\n dayAutoComplete,\n monthLabel,\n yearLabel,\n yearAutoComplete,\n monthFormat = MonthFormat.LONG,\n mode = DateMode.DAY_MONTH_YEAR,\n onChange,\n onFocus,\n onBlur,\n placeholders,\n id: idProp,\n selectProps = {},\n}: DateInputProps) => {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n const id = idProp ?? inputAttributes.id;\n const ariaLabelledBy = ariaLabelledByProp ?? inputAttributes['aria-labelledby'];\n\n const { locale, formatMessage } = useIntl();\n\n const getDateObject = (): Date | undefined => {\n if (value && isDateValid(value)) {\n return typeof value === 'string' ? convertToLocalMidnight(value) : value;\n }\n return undefined;\n };\n\n const getInitialDate = (unit: 'year' | 'month' | 'day'): number | null => {\n if (value && isDateValid(value)) {\n const dateObject = getDateObject();\n\n if (typeof value === 'string' && isMonthAndYearFormat(value) && unit === 'day') {\n return null;\n }\n\n if (dateObject !== undefined) {\n switch (unit) {\n case 'year':\n return dateObject.getFullYear();\n case 'month':\n return dateObject.getMonth();\n case 'day':\n return dateObject.getDate();\n default:\n return null;\n }\n }\n }\n return null;\n };\n\n const [day, setDay] = useState(() => getInitialDate('day'));\n const [month, setMonth] = useState(() => getInitialDate('month'));\n const [year, setYear] = useState(() => getInitialDate('year'));\n const [lastBroadcastedValue, setLastBroadcastedValue] = useState<Date | null | undefined>(\n getDateObject,\n );\n const monthNames = getMonthNames(locale, monthFormat);\n\n dayLabel ||= formatMessage(messages.dayLabel);\n monthLabel ||= formatMessage(messages.monthLabel);\n yearLabel ||= formatMessage(messages.yearLabel);\n placeholders = {\n day: placeholders?.day || formatMessage(messages.dayPlaceholder),\n month: placeholders?.month || formatMessage(messages.monthLabel),\n year: placeholders?.year || formatMessage(messages.yearPlaceholder),\n };\n\n const getDateAsString = (date: Date) => {\n if (!isDateValid(date)) {\n return '';\n }\n switch (mode) {\n case DateMode.MONTH_YEAR:\n return [date.getFullYear(), `0${date.getMonth() + 1}`.slice(-2)].join('-');\n case DateMode.DAY_MONTH_YEAR:\n default:\n return [\n date.getFullYear(),\n `0${date.getMonth() + 1}`.slice(-2),\n `0${date.getDate()}`.slice(-2),\n ].join('-');\n }\n };\n\n const getSelectElement = () => {\n return (\n <label className=\"d-flex flex-column\">\n <span className=\"sr-only\">{monthLabel}</span>\n <SelectInput\n name=\"month\"\n disabled={disabled}\n placeholder={placeholders?.month}\n items={Array.from({ length: 12 }, (_, index) => ({ type: 'option', value: index }))}\n size={size}\n value={month}\n renderValue={(selectedValue) => (\n <SelectInputOptionContent title={monthNames[selectedValue]} />\n )}\n onChange={(selectedValue) => handleMonthChange(selectedValue)}\n {...selectProps}\n />\n </label>\n );\n };\n\n const handleInternalValue = (newDay = day, newMonth = month, newYear = year) => {\n if (newDay == null || newMonth == null || newYear == null) {\n broadcastNewValue(null);\n return;\n }\n\n const dateValue = new Date(newYear, newMonth, newDay);\n\n if (!isDateValid(dateValue)) {\n broadcastNewValue(null);\n return;\n }\n\n if (mode === DateMode.MONTH_YEAR) {\n if (newMonth !== month || newYear !== year) {\n broadcastNewValue(dateValue);\n }\n } else if (newDay !== day || newMonth !== month || newYear !== year) {\n broadcastNewValue(dateValue);\n }\n };\n\n const handleDayChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const { checkedDay } = checkDate(Number.parseInt(event.target.value, 10), month, year);\n setDay(checkedDay);\n handleInternalValue(checkedDay, month, year);\n };\n\n const handleMonthChange = (selectedMonth: number | null) => {\n if (selectedMonth === null) {\n setMonth(null);\n handleInternalValue(day, null, year);\n return;\n }\n const { checkedDay } = checkDate(day, selectedMonth, year);\n setMonth(selectedMonth);\n if (day && checkedDay !== day) {\n setDay(checkedDay);\n }\n handleInternalValue(checkedDay, selectedMonth, year);\n };\n\n const handleYearChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = event.target.value;\n const slicedYear = newValue.length > 4 ? newValue.slice(0, 4) : newValue;\n\n if (slicedYear.toString().length === 4) {\n // Correct day based on year and month.\n const { checkedDay } = checkDate(day, month, Number.parseInt(newValue, 10));\n\n if (day && checkedDay !== day) {\n setDay(checkedDay);\n }\n\n setYear(Number.parseInt(slicedYear, 10));\n handleInternalValue(checkedDay, month, Number.parseInt(slicedYear, 10));\n } else {\n setYear(Number.parseInt(slicedYear, 10));\n handleInternalValue(day, month, null);\n }\n };\n\n const broadcastNewValue = (newValue: Date | null) => {\n if (newValue !== lastBroadcastedValue) {\n setLastBroadcastedValue(newValue);\n onChange(newValue != null ? getDateAsString(newValue) : null);\n }\n };\n\n const checkDate = (\n newDay: number | null = null,\n newMonth: number | null = 0,\n newYear: number | null = null,\n ) => {\n let checkedDay = newDay;\n const maxDay = new Date(newYear || 2000, newMonth != null ? newMonth + 1 : 1, 0).getDate();\n\n if (!newDay) {\n checkedDay = null;\n }\n\n if (newDay && newDay < 0) {\n checkedDay = 1;\n }\n\n if ((newDay && newMonth) || (newDay && newDay > 31)) {\n checkedDay = newDay > maxDay ? maxDay : newDay;\n }\n\n return { checkedDay, checkedMonth: newMonth, checkedYear: newYear };\n };\n\n const monthYearOnly = mode === DateMode.MONTH_YEAR;\n\n const monthWidth = classNames({\n 'col-sm-8': monthYearOnly,\n 'col-sm-5': !monthYearOnly,\n });\n\n const getMonth = () => {\n return <div className={monthWidth}>{getSelectElement()}</div>;\n };\n\n const getDay = () => {\n return (\n <div className=\"col-sm-3\">\n <label>\n <span className=\"sr-only\">{dayLabel}</span>\n <div className={`input-group input-group-${size}`}>\n <Input\n type=\"text\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n name=\"day\"\n autoComplete={dayAutoComplete}\n value={day || ''}\n placeholder={placeholders?.day}\n disabled={disabled}\n min={1}\n onChange={(event) => handleDayChange(event)}\n />\n </div>\n </label>\n </div>\n );\n };\n\n const getYear = () => {\n return (\n <div className=\"col-sm-4\">\n <label>\n <span className=\"sr-only\">{yearLabel}</span>\n <div className={`input-group input-group-${size}`}>\n <Input\n type=\"text\"\n inputMode=\"numeric\"\n pattern=\"[0-9]*\"\n name=\"year\"\n autoComplete={yearAutoComplete}\n placeholder={placeholders?.year}\n value={year || ''}\n disabled={disabled}\n min={1}\n onChange={(event) => handleYearChange(event)}\n />\n </div>\n </label>\n </div>\n );\n };\n const monthBeforeDay = MDY.has(locale);\n const yearFirst = YMD.has(locale);\n\n return (\n <div\n className=\"tw-date\"\n {...inputAttributes}\n id={id}\n aria-labelledby={ariaLabelledBy}\n aria-label={ariaLabel}\n role=\"group\" // Add role attribute to indicate container for interactive elements\n onFocus={(event) =>\n shouldPropagateOnFocus(event) ? onFocus && onFocus(event) : event.stopPropagation()\n }\n onBlur={(event) =>\n shouldPropagateOnBlur(event) ? onBlur && onBlur(event) : event.stopPropagation()\n }\n >\n <div className=\"row\">\n {(() => {\n if (monthYearOnly) {\n return (\n <>\n {!yearFirst && getMonth()}\n {getYear()}\n {yearFirst && getMonth()}\n </>\n );\n }\n if (monthBeforeDay) {\n return (\n <>\n {getMonth()}\n {getDay()}\n {getYear()}\n </>\n );\n }\n if (yearFirst) {\n return (\n <>\n {getYear()}\n {getMonth()}\n {getDay()}\n </>\n );\n }\n return (\n <>\n {getDay()}\n {getMonth()}\n {getYear()}\n </>\n );\n })()}\n </div>\n </div>\n );\n};\n\n// Should only propagate if the relatedTarget is not part of this DateInput component.\nfunction shouldPropagateOnFocus({\n target,\n relatedTarget,\n}: Pick<React.FocusEvent, 'target' | 'relatedTarget'>) {\n const targetParent = target.closest('.tw-date');\n const relatedParent = relatedTarget && relatedTarget.closest('.tw-date');\n return targetParent !== relatedParent;\n}\n\n// Should only propagate if the relatedTarget or the activeElement is not part of this DateInput component.\nfunction shouldPropagateOnBlur({\n target,\n relatedTarget,\n}: Pick<React.FocusEvent, 'target' | 'relatedTarget'>) {\n const blurElementParent = target.closest('.tw-date');\n // Even though FocusEvent.relatedTarget is supported by IE\n // (https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget)\n // \"IE11 sets document.activeElement to the next focused element before the blur event is called.\"\n // (https://stackoverflow.com/a/49325196/986241)\n // Therefore if the relatedTarget is null, we try the document.activeElement,\n // which may contain the HTML element that is gaining focus\n const focusElement =\n relatedTarget || (document.activeElement !== target ? document.activeElement : null);\n const focusElementParent = focusElement && focusElement.closest('.tw-date');\n return blurElementParent !== focusElementParent;\n}\n\nexport default DateInput;\n"],"names":["DateInput","ariaLabelledByProp","ariaLabel","disabled","size","Size","MEDIUM","value","dayLabel","dayAutoComplete","monthLabel","yearLabel","yearAutoComplete","monthFormat","MonthFormat","LONG","mode","DateMode","DAY_MONTH_YEAR","onChange","onFocus","onBlur","placeholders","id","idProp","selectProps","inputAttributes","useInputAttributes","nonLabelable","ariaLabelledBy","locale","formatMessage","useIntl","getDateObject","isDateValid","convertToLocalMidnight","undefined","getInitialDate","unit","dateObject","isMonthAndYearFormat","getFullYear","getMonth","getDate","day","setDay","useState","month","setMonth","year","setYear","lastBroadcastedValue","setLastBroadcastedValue","monthNames","getMonthNames","messages","dayPlaceholder","yearPlaceholder","getDateAsString","date","MONTH_YEAR","slice","join","getSelectElement","_jsxs","className","children","_jsx","SelectInput","name","placeholder","items","Array","from","length","_","index","type","renderValue","selectedValue","SelectInputOptionContent","title","handleMonthChange","handleInternalValue","newDay","newMonth","newYear","broadcastNewValue","dateValue","Date","handleDayChange","event","checkedDay","checkDate","Number","parseInt","target","selectedMonth","handleYearChange","newValue","slicedYear","toString","maxDay","checkedMonth","checkedYear","monthYearOnly","monthWidth","classNames","getDay","Input","inputMode","pattern","autoComplete","min","getYear","monthBeforeDay","MDY","has","yearFirst","YMD","role","shouldPropagateOnFocus","stopPropagation","shouldPropagateOnBlur","_Fragment","relatedTarget","targetParent","closest","relatedParent","blurElementParent","focusElement","document","activeElement","focusElementParent"],"mappings":";;;;;;;;;;;;;;;;;;AAqCMA,MAAAA,SAAS,GAAGA,CAAC;AACjB,EAAA,iBAAiB,EAAEC,kBAAkB;AACrC,EAAA,YAAY,EAAEC,SAAS;AACvBC,EAAAA,QAAQ,GAAG,KAAK;EAChBC,IAAI,GAAGC,IAAI,CAACC,MAAM;EAClBC,KAAK;EACLC,QAAQ;EACRC,eAAe;EACfC,UAAU;EACVC,SAAS;EACTC,gBAAgB;EAChBC,WAAW,GAAGC,WAAW,CAACC,IAAI;EAC9BC,IAAI,GAAGC,QAAQ,CAACC,cAAc;EAC9BC,QAAQ;EACRC,OAAO;EACPC,MAAM;EACNC,YAAY;AACZC,EAAAA,EAAE,EAAEC,MAAM;AACVC,EAAAA,WAAW,GAAG,EAAE;AAAA,CACD,KAAI;EACnB,MAAMC,eAAe,GAAGC,kBAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE,IAAA;AAAM,GAAA,CAAC,CAAA;AAClE,EAAA,MAAML,EAAE,GAAGC,MAAM,IAAIE,eAAe,CAACH,EAAE,CAAA;AACvC,EAAA,MAAMM,cAAc,GAAG5B,kBAAkB,IAAIyB,eAAe,CAAC,iBAAiB,CAAC,CAAA;EAE/E,MAAM;IAAEI,MAAM;AAAEC,IAAAA,aAAAA;GAAe,GAAGC,OAAO,EAAE,CAAA;EAE3C,MAAMC,aAAa,GAAGA,MAAuB;AAC3C,IAAA,IAAI1B,KAAK,IAAI2B,WAAW,CAAC3B,KAAK,CAAC,EAAE;MAC/B,OAAO,OAAOA,KAAK,KAAK,QAAQ,GAAG4B,sBAAsB,CAAC5B,KAAK,CAAC,GAAGA,KAAK,CAAA;AACzE,KAAA;AACD,IAAA,OAAO6B,SAAS,CAAA;GACjB,C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A,CACG0C,MAAM,EAAE,EACRlE,QAAQ,EAAE,EACVwE,OAAO,EAAE,CAAA;AAAA,SACZ,CAAG,CAAA;AAEP,OAAC;KACE,CAAA;AACP,GAAK,CAAC,CAAA;AAEV,EAAC;AAED;AACA,SAASO,sBAAsBA,CAAC;EAC9BzB,MAAM;AACN6B,EAAAA,aAAAA;AACmD,CAAA,EAAA;AACnD,EAAA,MAAMC,YAAY,GAAG9B,MAAM,CAAC+B,OAAO,CAAC,UAAU,CAAC,CAAA;EAC/C,MAAMC,aAAa,GAAGH,aAAa,IAAIA,aAAa,CAACE,OAAO,CAAC,UAAU,CAAC,CAAA;EACxE,OAAOD,YAAY,KAAKE,aAAa,CAAA;AACvC,CAAA;AAEA;AACA,SAASL,qBAAqBA,CAAC;EAC7B3B,MAAM;AACN6B,EAAAA,aAAAA;AACmD,CAAA,EAAA;AACnD,EAAA,MAAMI,iBAAiB,GAAGjC,MAAM,CAAC+B,OAAO,CAAC,UAAU,CAAC,CAAA;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,EAAA,MAAMG,YAAY,GAChBL,aAAa,KAAKM,QAAQ,CAACC,aAAa,KAAKpC,MAAM,GAAGmC,QAAQ,CAACC,aAAa,GAAG,IAAI,CAAC,CAAA;EACtF,MAAMC,kBAAkB,GAAGH,YAAY,IAAIA,YAAY,CAACH,OAAO,CAAC,UAAU,CAAC,CAAA;EAC3E,OAAOE,iBAAiB,KAAKI,kBAAkB,CAAA;AACjD;;;;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const convertToLocalMidnight = date => {
|
|
4
|
-
const utcDate = new Date(date.split('T')[0]); // using YYYY-MM-DD creates UTC date
|
|
5
|
-
return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
exports.convertToLocalMidnight = convertToLocalMidnight;
|
|
9
|
-
//# sourceMappingURL=convertToLocalMidnight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convertToLocalMidnight.js","sources":["../../../../src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.ts"],"sourcesContent":["export const convertToLocalMidnight = (date: string) => {\n const utcDate = new Date(date.split('T')[0]); // using YYYY-MM-DD creates UTC date\n\n return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());\n};\n"],"names":["convertToLocalMidnight","date","utcDate","Date","split","getUTCFullYear","getUTCMonth","getUTCDate"],"mappings":";;AAAaA,MAAAA,sBAAsB,GAAIC,IAAY,IAAI;AACrD,EAAA,MAAMC,OAAO,GAAG,IAAIC,IAAI,CAACF,IAAI,CAACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAE7C,OAAO,IAAID,IAAI,CAACD,OAAO,CAACG,cAAc,EAAE,EAAEH,OAAO,CAACI,WAAW,EAAE,EAAEJ,OAAO,CAACK,UAAU,EAAE,CAAC,CAAA;AACxF;;;;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const convertToLocalMidnight = date => {
|
|
2
|
-
const utcDate = new Date(date.split('T')[0]); // using YYYY-MM-DD creates UTC date
|
|
3
|
-
return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export { convertToLocalMidnight };
|
|
7
|
-
//# sourceMappingURL=convertToLocalMidnight.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"convertToLocalMidnight.mjs","sources":["../../../../src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.ts"],"sourcesContent":["export const convertToLocalMidnight = (date: string) => {\n const utcDate = new Date(date.split('T')[0]); // using YYYY-MM-DD creates UTC date\n\n return new Date(utcDate.getUTCFullYear(), utcDate.getUTCMonth(), utcDate.getUTCDate());\n};\n"],"names":["convertToLocalMidnight","date","utcDate","Date","split","getUTCFullYear","getUTCMonth","getUTCDate"],"mappings":"AAAaA,MAAAA,sBAAsB,GAAIC,IAAY,IAAI;AACrD,EAAA,MAAMC,OAAO,GAAG,IAAIC,IAAI,CAACF,IAAI,CAACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAE7C,OAAO,IAAID,IAAI,CAACD,OAAO,CAACG,cAAc,EAAE,EAAEH,OAAO,CAACI,WAAW,EAAE,EAAEJ,OAAO,CAACK,UAAU,EAAE,CAAC,CAAA;AACxF;;;;"}
|