@transferwise/components 46.120.0 → 46.120.1
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/accordion/Accordion.js +0 -43
- package/build/accordion/Accordion.js.map +1 -1
- package/build/accordion/Accordion.mjs +0 -43
- package/build/accordion/Accordion.mjs.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.js +16 -39
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs +16 -39
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
- package/build/actionButton/ActionButton.js +18 -3
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs +18 -3
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js +18 -8
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs +18 -8
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js +20 -5
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +20 -4
- package/build/alert/Alert.mjs.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +18 -0
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs +18 -0
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
- package/build/avatar/Avatar.js +18 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +18 -1
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatar/avatarTypes.js +3 -5
- package/build/avatar/avatarTypes.js.map +1 -1
- package/build/avatar/avatarTypes.mjs +3 -3
- package/build/avatar/avatarTypes.mjs.map +1 -1
- package/build/avatarLayout/AvatarLayout.js +1 -2
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +1 -2
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +18 -3
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +18 -3
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/avatarView/Dot.js +0 -3
- package/build/avatarView/Dot.js.map +1 -1
- package/build/avatarView/Dot.mjs +0 -3
- package/build/avatarView/Dot.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +17 -1
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +17 -1
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +17 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +17 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js +0 -3
- package/build/badge/BadgeAssets.js.map +1 -1
- package/build/badge/BadgeAssets.mjs +0 -3
- package/build/badge/BadgeAssets.mjs.map +1 -1
- package/build/body/Body.js.map +1 -1
- package/build/body/Body.mjs.map +1 -1
- package/build/button/Button.js +18 -4
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +18 -4
- package/build/button/Button.mjs.map +1 -1
- package/build/button/Button.resolver.js.map +1 -1
- package/build/button/Button.resolver.mjs.map +1 -1
- package/build/button/LegacyButton.js +17 -4
- package/build/button/LegacyButton.js.map +1 -1
- package/build/button/LegacyButton.mjs +18 -5
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/button/classMap.js +18 -0
- package/build/button/classMap.js.map +1 -1
- package/build/button/classMap.mjs +18 -0
- package/build/button/classMap.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js +16 -1
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs +16 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/card/Card.js +17 -4
- package/build/card/Card.js.map +1 -1
- package/build/card/Card.mjs +17 -4
- package/build/card/Card.mjs.map +1 -1
- package/build/carousel/Carousel.js.map +1 -1
- package/build/carousel/Carousel.mjs.map +1 -1
- package/build/checkbox/Checkbox.js +18 -0
- package/build/checkbox/Checkbox.js.map +1 -1
- package/build/checkbox/Checkbox.mjs +18 -0
- package/build/checkbox/Checkbox.mjs.map +1 -1
- package/build/checkboxButton/CheckboxButton.js.map +1 -1
- package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
- package/build/checkboxOption/CheckboxOption.js +0 -8
- package/build/checkboxOption/CheckboxOption.js.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs +0 -8
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/chevron/Chevron.js +17 -0
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chevron/Chevron.mjs +17 -0
- package/build/chevron/Chevron.mjs.map +1 -1
- package/build/chips/Chip.js +18 -0
- package/build/chips/Chip.js.map +1 -1
- package/build/chips/Chip.mjs +18 -0
- package/build/chips/Chip.mjs.map +1 -1
- package/build/chips/Chips.js.map +1 -1
- package/build/chips/Chips.messages.js.map +1 -1
- package/build/chips/Chips.messages.mjs.map +1 -1
- package/build/chips/Chips.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +16 -0
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +16 -0
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/DOMOperations/DOMOperations.js +0 -2
- package/build/common/DOMOperations/DOMOperations.js.map +1 -1
- package/build/common/DOMOperations/DOMOperations.mjs +0 -2
- package/build/common/DOMOperations/DOMOperations.mjs.map +1 -1
- package/build/common/Option/Option.js.map +1 -1
- package/build/common/Option/Option.mjs.map +1 -1
- package/build/common/RadioButton/RadioButton.js.map +1 -1
- package/build/common/RadioButton/RadioButton.mjs.map +1 -1
- package/build/common/bottomSheet/BottomSheet.js +0 -5
- package/build/common/bottomSheet/BottomSheet.js.map +1 -1
- package/build/common/bottomSheet/BottomSheet.mjs +0 -5
- package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
- package/build/common/card/Card.js +0 -21
- package/build/common/card/Card.js.map +1 -1
- package/build/common/card/Card.mjs +0 -21
- package/build/common/card/Card.mjs.map +1 -1
- package/build/common/circle/Circle.js +0 -4
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs +0 -4
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/common/closeButton/CloseButton.js +0 -3
- package/build/common/closeButton/CloseButton.js.map +1 -1
- package/build/common/closeButton/CloseButton.messages.js.map +1 -1
- package/build/common/closeButton/CloseButton.messages.mjs.map +1 -1
- package/build/common/closeButton/CloseButton.mjs +0 -3
- package/build/common/closeButton/CloseButton.mjs.map +1 -1
- package/build/common/colors.js +0 -1
- package/build/common/colors.js.map +1 -1
- package/build/common/colors.mjs +0 -1
- package/build/common/colors.mjs.map +1 -1
- package/build/common/constants.js +0 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/constants.mjs +0 -1
- package/build/common/constants.mjs.map +1 -1
- package/build/common/dateUtils/getDateView/getDateView.js.map +1 -1
- package/build/common/dateUtils/getDateView/getDateView.mjs.map +1 -1
- package/build/common/dateUtils/getDayNames/getDayNames.js.map +1 -1
- package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +1 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +1 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +1 -1
- package/build/common/dateUtils/isDateValid/isDateValid.js.map +1 -1
- package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +1 -1
- package/build/common/dateUtils/isWithinRange/isWithinRange.js.map +1 -1
- package/build/common/dateUtils/isWithinRange/isWithinRange.mjs.map +1 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +1 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +1 -1
- package/build/common/deviceDetection/deviceDetection.js.map +1 -1
- package/build/common/deviceDetection/deviceDetection.mjs.map +1 -1
- package/build/common/direction.js +3 -5
- package/build/common/direction.js.map +1 -1
- package/build/common/direction.mjs +3 -3
- package/build/common/direction.mjs.map +1 -1
- package/build/common/domHelpers/documentIosClick.js +2 -3
- package/build/common/domHelpers/documentIosClick.js.map +1 -1
- package/build/common/domHelpers/documentIosClick.mjs +2 -3
- package/build/common/domHelpers/documentIosClick.mjs.map +1 -1
- package/build/common/fileType.js +3 -5
- package/build/common/fileType.js.map +1 -1
- package/build/common/fileType.mjs +3 -3
- package/build/common/fileType.mjs.map +1 -1
- package/build/common/flowHeader/FlowHeader.js +14 -14
- package/build/common/flowHeader/FlowHeader.js.map +1 -1
- package/build/common/flowHeader/FlowHeader.mjs.map +1 -1
- package/build/common/focusBoundary/FocusBoundary.js.map +1 -1
- package/build/common/focusBoundary/FocusBoundary.mjs.map +1 -1
- package/build/common/historyNavigator/historyNavigator.js.map +1 -1
- package/build/common/historyNavigator/historyNavigator.mjs.map +1 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +1 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +1 -1
- package/build/common/hooks/useDirection/useDirection.js.map +1 -1
- package/build/common/hooks/useDirection/useDirection.mjs.map +1 -1
- package/build/common/hooks/useEffectEvent.js +0 -1
- package/build/common/hooks/useEffectEvent.js.map +1 -1
- package/build/common/hooks/useEffectEvent.mjs +0 -1
- package/build/common/hooks/useEffectEvent.mjs.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js +0 -2
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +0 -2
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
- package/build/common/hooks/useLayout/useLayout.js.map +1 -1
- package/build/common/hooks/useLayout/useLayout.mjs.map +1 -1
- package/build/common/hooks/useMedia.js.map +1 -1
- package/build/common/hooks/useMedia.mjs.map +1 -1
- package/build/common/hooks/useResizeObserver.js.map +1 -1
- package/build/common/hooks/useResizeObserver.mjs.map +1 -1
- package/build/common/hooks/useScreenSize.js.map +1 -1
- package/build/common/hooks/useScreenSize.mjs.map +1 -1
- package/build/common/hooks/useVirtualKeyboard.js.map +1 -1
- package/build/common/hooks/useVirtualKeyboard.mjs.map +1 -1
- package/build/common/initials.js +0 -3
- package/build/common/initials.js.map +1 -1
- package/build/common/initials.mjs +0 -3
- package/build/common/initials.mjs.map +1 -1
- package/build/common/locale/index.js +0 -6
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +0 -6
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js +18 -2
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs +18 -2
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js +0 -3
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +1 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs +0 -3
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +1 -1
- package/build/common/preventScroll/PreventScroll.js.map +1 -1
- package/build/common/preventScroll/PreventScroll.mjs.map +1 -1
- package/build/common/propsValues/breakpoint.js +3 -5
- package/build/common/propsValues/breakpoint.js.map +1 -1
- package/build/common/propsValues/breakpoint.mjs +3 -3
- package/build/common/propsValues/breakpoint.mjs.map +1 -1
- package/build/common/propsValues/control.js +6 -9
- package/build/common/propsValues/control.js.map +1 -1
- package/build/common/propsValues/control.mjs +6 -6
- package/build/common/propsValues/control.mjs.map +1 -1
- package/build/common/propsValues/dateMode.js +3 -5
- package/build/common/propsValues/dateMode.js.map +1 -1
- package/build/common/propsValues/dateMode.mjs +3 -3
- package/build/common/propsValues/dateMode.mjs.map +1 -1
- package/build/common/propsValues/layouts.js +3 -5
- package/build/common/propsValues/layouts.js.map +1 -1
- package/build/common/propsValues/layouts.mjs +3 -3
- package/build/common/propsValues/layouts.mjs.map +1 -1
- package/build/common/propsValues/markdownNodeType.js +3 -5
- package/build/common/propsValues/markdownNodeType.js.map +1 -1
- package/build/common/propsValues/markdownNodeType.mjs +3 -3
- package/build/common/propsValues/markdownNodeType.mjs.map +1 -1
- package/build/common/propsValues/monthFormat.js +3 -5
- package/build/common/propsValues/monthFormat.js.map +1 -1
- package/build/common/propsValues/monthFormat.mjs +3 -3
- package/build/common/propsValues/monthFormat.mjs.map +1 -1
- package/build/common/propsValues/position.js +3 -5
- package/build/common/propsValues/position.js.map +1 -1
- package/build/common/propsValues/position.mjs +3 -3
- package/build/common/propsValues/position.mjs.map +1 -1
- package/build/common/propsValues/profileType.js +3 -5
- package/build/common/propsValues/profileType.js.map +1 -1
- package/build/common/propsValues/profileType.mjs +3 -3
- package/build/common/propsValues/profileType.mjs.map +1 -1
- package/build/common/propsValues/scroll.js +3 -5
- package/build/common/propsValues/scroll.js.map +1 -1
- package/build/common/propsValues/scroll.mjs +3 -3
- package/build/common/propsValues/scroll.mjs.map +1 -1
- package/build/common/propsValues/sentiment.js +3 -5
- package/build/common/propsValues/sentiment.js.map +1 -1
- package/build/common/propsValues/sentiment.mjs +3 -3
- package/build/common/propsValues/sentiment.mjs.map +1 -1
- package/build/common/propsValues/size.js +3 -5
- package/build/common/propsValues/size.js.map +1 -1
- package/build/common/propsValues/size.mjs +3 -3
- package/build/common/propsValues/size.mjs.map +1 -1
- package/build/common/propsValues/status.js +3 -5
- package/build/common/propsValues/status.js.map +1 -1
- package/build/common/propsValues/status.mjs +3 -3
- package/build/common/propsValues/status.mjs.map +1 -1
- package/build/common/propsValues/type.js +3 -5
- package/build/common/propsValues/type.js.map +1 -1
- package/build/common/propsValues/type.mjs +3 -3
- package/build/common/propsValues/type.mjs.map +1 -1
- package/build/common/propsValues/typography.js +3 -9
- package/build/common/propsValues/typography.js.map +1 -1
- package/build/common/propsValues/typography.mjs +3 -7
- package/build/common/propsValues/typography.mjs.map +1 -1
- package/build/common/propsValues/variant.js +3 -5
- package/build/common/propsValues/variant.js.map +1 -1
- package/build/common/propsValues/variant.mjs +3 -3
- package/build/common/propsValues/variant.mjs.map +1 -1
- package/build/common/propsValues/width.js +3 -5
- package/build/common/propsValues/width.js.map +1 -1
- package/build/common/propsValues/width.mjs +3 -3
- package/build/common/propsValues/width.mjs.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.js +18 -0
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs +18 -0
- package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +1 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +1 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js.map +1 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs.map +1 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +1 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +1 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +1 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +1 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +1 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +1 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +1 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +1 -1
- package/build/common/theme.js +3 -5
- package/build/common/theme.js.map +1 -1
- package/build/common/theme.mjs +3 -3
- package/build/common/theme.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/dateInput/DateInput.js +15 -5
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.messages.js.map +1 -1
- package/build/dateInput/DateInput.messages.mjs.map +1 -1
- package/build/dateInput/DateInput.mjs +15 -5
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs +0 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +15 -0
- package/build/dateLookup/DateLookup.js.map +1 -1
- package/build/dateLookup/DateLookup.messages.js.map +1 -1
- package/build/dateLookup/DateLookup.messages.mjs.map +1 -1
- package/build/dateLookup/DateLookup.mjs +15 -0
- package/build/dateLookup/DateLookup.mjs.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js +18 -0
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +18 -0
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js +16 -0
- package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.mjs +16 -0
- package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
- package/build/dateLookup/dayCalendar/DayCalendar.js.map +1 -1
- package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +0 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +1 -1
- package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +1 -1
- package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +1 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +1 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +1 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.js.map +1 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +1 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +1 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +1 -1
- package/build/dateLookup/tableLink/TableLink.js.map +1 -1
- package/build/dateLookup/tableLink/TableLink.mjs.map +1 -1
- package/build/dateLookup/yearCalendar/YearCalendar.js.map +1 -1
- package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +1 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +1 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +1 -1
- package/build/decision/Decision.js +28 -13
- package/build/decision/Decision.js.map +1 -1
- package/build/decision/Decision.mjs +23 -6
- package/build/decision/Decision.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js +18 -0
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs +18 -0
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js +19 -1
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs +19 -1
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.js.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.mjs.map +1 -1
- package/build/display/Display.js +18 -0
- package/build/display/Display.js.map +1 -1
- package/build/display/Display.mjs +18 -0
- package/build/display/Display.mjs.map +1 -1
- package/build/divider/Divider.js +0 -9
- package/build/divider/Divider.js.map +1 -1
- package/build/divider/Divider.mjs +0 -9
- package/build/divider/Divider.mjs.map +1 -1
- package/build/drawer/Drawer.js +17 -0
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs +17 -0
- package/build/drawer/Drawer.mjs.map +1 -1
- package/build/dropFade/DropFade.js.map +1 -1
- package/build/dropFade/DropFade.mjs.map +1 -1
- package/build/emphasis/Emphasis.js.map +1 -1
- package/build/emphasis/Emphasis.mjs.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.js +0 -1
- package/build/emphasis/EmphasisHtmlTransformer.js.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs +0 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.js +0 -15
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.js.map +1 -1
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.messages.js.map +1 -1
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.messages.mjs.map +1 -1
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.mjs +0 -15
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.mjs.map +1 -1
- package/build/expressiveMoneyInput/amountInput/AmountInput.js +0 -5
- package/build/expressiveMoneyInput/amountInput/AmountInput.js.map +1 -1
- package/build/expressiveMoneyInput/amountInput/AmountInput.mjs +0 -5
- package/build/expressiveMoneyInput/amountInput/AmountInput.mjs.map +1 -1
- package/build/expressiveMoneyInput/amountInput/utils.js +0 -2
- package/build/expressiveMoneyInput/amountInput/utils.js.map +1 -1
- package/build/expressiveMoneyInput/amountInput/utils.mjs +0 -2
- package/build/expressiveMoneyInput/amountInput/utils.mjs.map +1 -1
- package/build/expressiveMoneyInput/animatedNumber/AnimatedNumber.js.map +1 -1
- package/build/expressiveMoneyInput/animatedNumber/AnimatedNumber.mjs.map +1 -1
- package/build/expressiveMoneyInput/chevron/Chevron.js.map +1 -1
- package/build/expressiveMoneyInput/chevron/Chevron.mjs.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
- package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
- package/build/expressiveMoneyInput/hooks/useFocus.js.map +1 -1
- package/build/expressiveMoneyInput/hooks/useFocus.mjs.map +1 -1
- package/build/expressiveMoneyInput/hooks/useInputStyle.js.map +1 -1
- package/build/expressiveMoneyInput/hooks/useInputStyle.mjs.map +1 -1
- package/build/field/Field.js +18 -1
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs +18 -1
- package/build/field/Field.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.js +17 -0
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.messages.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.messages.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.mjs +17 -0
- package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/header/Header.js +18 -8
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +18 -8
- package/build/header/Header.mjs.map +1 -1
- package/build/i18n/commonMessages/Button.messages.js.map +1 -1
- package/build/i18n/commonMessages/Button.messages.mjs.map +1 -1
- package/build/i18n/index.js.map +1 -1
- package/build/i18n/index.mjs.map +1 -1
- package/build/iconButton/IconButton.js.map +1 -1
- package/build/iconButton/IconButton.mjs.map +1 -1
- package/build/image/Image.js +1 -1
- package/build/image/Image.js.map +1 -1
- package/build/image/Image.mjs +1 -1
- package/build/image/Image.mjs.map +1 -1
- package/build/index.js +108 -27
- package/build/index.js.map +1 -1
- package/build/info/Info.js +17 -0
- package/build/info/Info.js.map +1 -1
- package/build/info/Info.messages.js.map +1 -1
- package/build/info/Info.messages.mjs.map +1 -1
- package/build/info/Info.mjs +17 -0
- package/build/info/Info.mjs.map +1 -1
- package/build/info/infoPresentations.js +3 -5
- package/build/info/infoPresentations.js.map +1 -1
- package/build/info/infoPresentations.mjs +3 -3
- package/build/info/infoPresentations.mjs.map +1 -1
- package/build/inlineAlert/InlineAlert.js +17 -1
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inlineAlert/InlineAlert.mjs +17 -1
- package/build/inlineAlert/InlineAlert.mjs.map +1 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +1 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +1 -1
- package/build/inputs/Input.js.map +1 -1
- package/build/inputs/Input.mjs.map +1 -1
- package/build/inputs/InputGroup.js.map +1 -1
- package/build/inputs/InputGroup.mjs.map +1 -1
- package/build/inputs/SearchInput.js +18 -0
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs +18 -0
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/inputs/SelectInput.js +0 -5
- package/build/inputs/SelectInput.js.map +1 -1
- package/build/inputs/SelectInput.messages.js.map +1 -1
- package/build/inputs/SelectInput.messages.mjs.map +1 -1
- package/build/inputs/SelectInput.mjs +0 -5
- package/build/inputs/SelectInput.mjs.map +1 -1
- package/build/inputs/TextArea.js.map +1 -1
- package/build/inputs/TextArea.mjs.map +1 -1
- package/build/inputs/_BottomSheet.js.map +1 -1
- package/build/inputs/_BottomSheet.mjs.map +1 -1
- package/build/inputs/_ButtonInput.js.map +1 -1
- package/build/inputs/_ButtonInput.mjs.map +1 -1
- package/build/inputs/_Popover.js.map +1 -1
- package/build/inputs/_Popover.mjs.map +1 -1
- package/build/inputs/_common.js.map +1 -1
- package/build/inputs/_common.mjs.map +1 -1
- package/build/inputs/contexts.js.map +1 -1
- package/build/inputs/contexts.mjs.map +1 -1
- package/build/instructionsList/InstructionsList.js +18 -0
- package/build/instructionsList/InstructionsList.js.map +1 -1
- package/build/instructionsList/InstructionsList.mjs +18 -0
- package/build/instructionsList/InstructionsList.mjs.map +1 -1
- package/build/label/Label.js +0 -10
- package/build/label/Label.js.map +1 -1
- package/build/label/Label.messages.js.map +1 -1
- package/build/label/Label.messages.mjs.map +1 -1
- package/build/label/Label.mjs +0 -10
- package/build/label/Label.mjs.map +1 -1
- package/build/legacylistItem/LegacyListItem.js +0 -8
- package/build/legacylistItem/LegacyListItem.js.map +1 -1
- package/build/legacylistItem/LegacyListItem.mjs +0 -8
- package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
- package/build/link/Link.js +18 -5
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.messages.js.map +1 -1
- package/build/link/Link.messages.mjs.map +1 -1
- package/build/link/Link.mjs +18 -5
- package/build/link/Link.mjs.map +1 -1
- package/build/list/List.js.map +1 -1
- package/build/list/List.mjs.map +1 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +18 -0
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +18 -0
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +0 -7
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +0 -7
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.js +0 -7
- package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.mjs +0 -7
- package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
- package/build/listItem/Button/ListItemButton.js +0 -7
- package/build/listItem/Button/ListItemButton.js.map +1 -1
- package/build/listItem/Button/ListItemButton.mjs +0 -7
- package/build/listItem/Button/ListItemButton.mjs.map +1 -1
- package/build/listItem/Checkbox/ListItemCheckbox.js +0 -7
- package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -1
- package/build/listItem/Checkbox/ListItemCheckbox.mjs +0 -7
- package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -1
- package/build/listItem/IconButton/ListItemIconButton.js +0 -7
- package/build/listItem/IconButton/ListItemIconButton.js.map +1 -1
- package/build/listItem/IconButton/ListItemIconButton.mjs +0 -7
- package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -1
- package/build/listItem/Image/ListItemImage.js +0 -9
- package/build/listItem/Image/ListItemImage.js.map +1 -1
- package/build/listItem/Image/ListItemImage.mjs +0 -9
- package/build/listItem/Image/ListItemImage.mjs.map +1 -1
- package/build/listItem/ListItem.js +17 -7
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +17 -7
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/listItem/ListItemContext.js.map +1 -1
- package/build/listItem/ListItemContext.mjs.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.js +0 -8
- package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs +0 -8
- package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.js +18 -6
- package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs +18 -6
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
- package/build/listItem/Radio/ListItemRadio.js +0 -7
- package/build/listItem/Radio/ListItemRadio.js.map +1 -1
- package/build/listItem/Radio/ListItemRadio.mjs +0 -7
- package/build/listItem/Radio/ListItemRadio.mjs.map +1 -1
- package/build/listItem/Switch/ListItemSwitch.js +0 -7
- package/build/listItem/Switch/ListItemSwitch.js.map +1 -1
- package/build/listItem/Switch/ListItemSwitch.mjs +0 -7
- package/build/listItem/Switch/ListItemSwitch.mjs.map +1 -1
- package/build/listItem/useListItemControl.js.map +1 -1
- package/build/listItem/useListItemControl.mjs.map +1 -1
- package/build/listItem/useListItemMedia.js.map +1 -1
- package/build/listItem/useListItemMedia.mjs.map +1 -1
- package/build/loader/Loader.js +18 -10
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs +18 -10
- package/build/loader/Loader.mjs.map +1 -1
- package/build/logo/Logo.js +3 -4
- package/build/logo/Logo.js.map +1 -1
- package/build/logo/Logo.mjs +3 -3
- package/build/logo/Logo.mjs.map +1 -1
- package/build/logo/logo-assets.js.map +1 -1
- package/build/logo/logo-assets.mjs.map +1 -1
- package/build/markdown/Markdown.js +32 -14
- package/build/markdown/Markdown.js.map +1 -1
- package/build/markdown/Markdown.mjs +18 -0
- package/build/markdown/Markdown.mjs.map +1 -1
- package/build/mocks.js.map +1 -1
- package/build/mocks.mjs.map +1 -1
- package/build/modal/Modal.js +15 -0
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.mjs +15 -0
- package/build/modal/Modal.mjs.map +1 -1
- package/build/money/Money.js.map +1 -1
- package/build/money/Money.mjs.map +1 -1
- package/build/moneyInput/MoneyInput.js +17 -0
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.messages.js.map +1 -1
- package/build/moneyInput/MoneyInput.messages.mjs.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +17 -0
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/moneyInput/currencyFormatting.js +2 -2
- package/build/moneyInput/currencyFormatting.js.map +1 -1
- package/build/moneyInput/currencyFormatting.mjs.map +1 -1
- package/build/navigationOption/NavigationOption.js +18 -8
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs +18 -8
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.js +0 -9
- package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs +0 -9
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
- package/build/nudge/Nudge.js +18 -1
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs +18 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js +18 -0
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/overlayHeader/OverlayHeader.mjs +18 -0
- package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +19 -3
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +19 -3
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/phoneNumberInput/data/countries.js.map +1 -1
- package/build/phoneNumberInput/data/countries.mjs.map +1 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +1 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs +0 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +1 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +1 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +1 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +1 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js.map +1 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs.map +1 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs +0 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +1 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +1 -1
- package/build/popover/Popover.js +17 -0
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs +17 -0
- package/build/popover/Popover.mjs.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js +0 -10
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs +0 -10
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.js +0 -10
- package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.mjs +0 -10
- package/build/primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js +18 -3
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.mjs +18 -3
- package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
- package/build/progress/Progress.js.map +1 -1
- package/build/progress/Progress.mjs.map +1 -1
- package/build/progressBar/ProgressBar.js +18 -0
- package/build/progressBar/ProgressBar.js.map +1 -1
- package/build/progressBar/ProgressBar.mjs +18 -0
- package/build/progressBar/ProgressBar.mjs.map +1 -1
- package/build/promoCard/PromoCard.js +18 -47
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +18 -47
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/promoCard/PromoCardContext.js +0 -11
- package/build/promoCard/PromoCardContext.js.map +1 -1
- package/build/promoCard/PromoCardContext.mjs +0 -11
- package/build/promoCard/PromoCardContext.mjs.map +1 -1
- package/build/promoCard/PromoCardGroup.js +0 -21
- package/build/promoCard/PromoCardGroup.js.map +1 -1
- package/build/promoCard/PromoCardGroup.mjs +0 -21
- package/build/promoCard/PromoCardGroup.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js +18 -16
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/promoCard/PromoCardIndicator.mjs +18 -16
- package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.js +18 -6
- package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs +18 -6
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/provider/Provider.js +19 -0
- package/build/provider/Provider.js.map +1 -1
- package/build/provider/Provider.mjs +19 -0
- package/build/provider/Provider.mjs.map +1 -1
- package/build/provider/direction/DirectionProvider.js.map +1 -1
- package/build/provider/direction/DirectionProvider.mjs.map +1 -1
- package/build/provider/language/LanguageProvider.js.map +1 -1
- package/build/provider/language/LanguageProvider.mjs.map +1 -1
- package/build/provider/overlay/OverlayIdProvider.js.map +1 -1
- package/build/provider/overlay/OverlayIdProvider.mjs.map +1 -1
- package/build/radio/Radio.js +18 -0
- package/build/radio/Radio.js.map +1 -1
- package/build/radio/Radio.mjs +18 -0
- package/build/radio/Radio.mjs.map +1 -1
- package/build/radioGroup/RadioGroup.js.map +1 -1
- package/build/radioGroup/RadioGroup.mjs.map +1 -1
- package/build/radioOption/RadioOption.js +0 -8
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs +0 -8
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/section/Section.js +0 -5
- package/build/section/Section.js.map +1 -1
- package/build/section/Section.mjs +0 -5
- package/build/section/Section.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js +18 -2
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs +18 -2
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/select/Select.js +18 -3
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.messages.js.map +1 -1
- package/build/select/Select.messages.mjs.map +1 -1
- package/build/select/Select.mjs +18 -3
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js +18 -0
- package/build/select/option/Option.js.map +1 -1
- package/build/select/option/Option.mjs +18 -0
- package/build/select/option/Option.mjs.map +1 -1
- package/build/select/searchBox/SearchBox.js.map +1 -1
- package/build/select/searchBox/SearchBox.mjs.map +1 -1
- package/build/sentimentSurface/SentimentSurface.js +0 -28
- package/build/sentimentSurface/SentimentSurface.js.map +1 -1
- package/build/sentimentSurface/SentimentSurface.mjs +0 -28
- package/build/sentimentSurface/SentimentSurface.mjs.map +1 -1
- package/build/slidingPanel/SlidingPanel.js.map +1 -1
- package/build/slidingPanel/SlidingPanel.mjs.map +1 -1
- package/build/snackbar/Snackbar.js.map +1 -1
- package/build/snackbar/Snackbar.mjs.map +1 -1
- package/build/snackbar/SnackbarContext.js.map +1 -1
- package/build/snackbar/SnackbarContext.mjs.map +1 -1
- package/build/snackbar/SnackbarProvider.js.map +1 -1
- package/build/snackbar/SnackbarProvider.mjs.map +1 -1
- package/build/snackbar/useSnackbar.js.map +1 -1
- package/build/snackbar/useSnackbar.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.js +15 -0
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.messages.js.map +1 -1
- package/build/statusIcon/StatusIcon.messages.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.mjs +15 -0
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/stepper/Stepper.js +18 -0
- package/build/stepper/Stepper.js.map +1 -1
- package/build/stepper/Stepper.mjs +18 -0
- package/build/stepper/Stepper.mjs.map +1 -1
- package/build/stepper/deviceDetection.js.map +1 -1
- package/build/stepper/deviceDetection.mjs.map +1 -1
- package/build/sticky/Sticky.js +18 -22
- package/build/sticky/Sticky.js.map +1 -1
- package/build/sticky/Sticky.mjs +18 -22
- package/build/sticky/Sticky.mjs.map +1 -1
- package/build/summary/Summary.js +16 -0
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.messages.js.map +1 -1
- package/build/summary/Summary.messages.mjs.map +1 -1
- package/build/summary/Summary.mjs +16 -0
- package/build/summary/Summary.mjs.map +1 -1
- package/build/switch/Switch.js.map +1 -1
- package/build/switch/Switch.mjs.map +1 -1
- package/build/switchOption/SwitchOption.js +0 -1
- package/build/switchOption/SwitchOption.js.map +1 -1
- package/build/switchOption/SwitchOption.mjs +0 -1
- package/build/switchOption/SwitchOption.mjs.map +1 -1
- package/build/table/Table.js +17 -1
- package/build/table/Table.js.map +1 -1
- package/build/table/Table.messages.js.map +1 -1
- package/build/table/Table.messages.mjs.map +1 -1
- package/build/table/Table.mjs +17 -1
- package/build/table/Table.mjs.map +1 -1
- package/build/table/TableCell.js.map +1 -1
- package/build/table/TableCell.mjs.map +1 -1
- package/build/table/TableHeader.js +0 -1
- package/build/table/TableHeader.js.map +1 -1
- package/build/table/TableHeader.mjs +0 -1
- package/build/table/TableHeader.mjs.map +1 -1
- package/build/table/TableRow.js +18 -0
- package/build/table/TableRow.js.map +1 -1
- package/build/table/TableRow.mjs +18 -0
- package/build/table/TableRow.mjs.map +1 -1
- package/build/table/TableStatusText.js +18 -0
- package/build/table/TableStatusText.js.map +1 -1
- package/build/table/TableStatusText.mjs +18 -0
- package/build/table/TableStatusText.mjs.map +1 -1
- package/build/tabs/Tab.js.map +1 -1
- package/build/tabs/Tab.mjs.map +1 -1
- package/build/tabs/TabList.js.map +1 -1
- package/build/tabs/TabList.mjs.map +1 -1
- package/build/tabs/TabPanel.js.map +1 -1
- package/build/tabs/TabPanel.mjs.map +1 -1
- package/build/tabs/Tabs.js +17 -3
- package/build/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs +17 -3
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/tabs/utils.js +0 -1
- package/build/tabs/utils.js.map +1 -1
- package/build/tabs/utils.mjs +0 -1
- package/build/tabs/utils.mjs.map +1 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +1 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +1 -1
- package/build/tile/Tile.js +18 -0
- package/build/tile/Tile.js.map +1 -1
- package/build/tile/Tile.mjs +18 -0
- package/build/tile/Tile.mjs.map +1 -1
- package/build/title/Title.js +18 -0
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs +18 -0
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js +18 -1
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs +18 -1
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +17 -0
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.messages.js.map +1 -1
- package/build/typeahead/Typeahead.messages.mjs.map +1 -1
- package/build/typeahead/Typeahead.mjs +17 -0
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +1 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +1 -1
- package/build/typeahead/util/highlight.js.map +1 -1
- package/build/typeahead/util/highlight.mjs.map +1 -1
- package/build/types/accordion/Accordion.d.ts.map +1 -0
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts.map +1 -0
- package/build/types/accordion/AccordionItem/index.d.ts.map +1 -0
- package/build/types/accordion/index.d.ts.map +1 -0
- package/build/types/actionButton/ActionButton.d.ts.map +1 -0
- package/build/types/actionButton/index.d.ts.map +1 -0
- package/build/types/actionOption/ActionOption.d.ts.map +1 -0
- package/build/types/actionOption/index.d.ts.map +1 -0
- package/build/types/alert/Alert.d.ts.map +1 -0
- package/build/types/alert/index.d.ts.map +1 -0
- package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts.map +1 -0
- package/build/types/alert/inlineMarkdown/index.d.ts.map +1 -0
- package/build/types/avatar/Avatar.d.ts.map +1 -0
- package/build/types/avatar/avatarTypes.d.ts.map +1 -0
- package/build/types/avatar/index.d.ts.map +1 -0
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -0
- package/build/types/avatarLayout/index.d.ts.map +1 -0
- package/build/types/avatarView/AvatarView.d.ts.map +1 -0
- package/build/types/avatarView/Dot.d.ts.map +1 -0
- package/build/types/avatarView/index.d.ts.map +1 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -0
- package/build/types/avatarWrapper/index.d.ts.map +1 -0
- package/build/types/badge/Badge.d.ts.map +1 -0
- package/build/types/badge/BadgeAssets.d.ts.map +1 -0
- package/build/types/badge/index.d.ts.map +1 -0
- package/build/types/body/Body.d.ts.map +1 -0
- package/build/types/body/index.d.ts.map +1 -0
- package/build/types/button/Button.d.ts.map +1 -0
- package/build/types/button/Button.resolver.d.ts.map +1 -0
- package/build/types/button/Button.types.d.ts.map +1 -0
- package/build/types/button/LegacyButton.d.ts.map +1 -0
- package/build/types/button/_stories/helpers.d.ts.map +1 -0
- package/build/types/button/classMap.d.ts.map +1 -0
- package/build/types/button/index.d.ts.map +1 -0
- package/build/types/button/legacyUtils/index.d.ts.map +1 -0
- package/build/types/button/legacyUtils/legacyUtils.d.ts.map +1 -0
- package/build/types/card/Card.d.ts.map +1 -0
- package/build/types/card/index.d.ts.map +1 -0
- package/build/types/carousel/Carousel.d.ts.map +1 -0
- package/build/types/carousel/index.d.ts.map +1 -0
- package/build/types/checkbox/Checkbox.d.ts.map +1 -0
- package/build/types/checkbox/index.d.ts.map +1 -0
- package/build/types/checkboxButton/CheckboxButton.d.ts.map +1 -0
- package/build/types/checkboxButton/index.d.ts.map +1 -0
- package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -0
- package/build/types/checkboxOption/index.d.ts.map +1 -0
- package/build/types/chevron/Chevron.d.ts.map +1 -0
- package/build/types/chevron/index.d.ts.map +1 -0
- package/build/types/chips/Chip.d.ts.map +1 -0
- package/build/types/chips/Chips.d.ts.map +1 -0
- package/build/types/chips/Chips.messages.d.ts.map +1 -0
- package/build/types/chips/index.d.ts.map +1 -0
- package/build/types/circularButton/CircularButton.d.ts.map +1 -0
- package/build/types/circularButton/index.d.ts.map +1 -0
- package/build/types/common/DOMOperations/DOMOperations.d.ts.map +1 -0
- package/build/types/common/DOMOperations/index.d.ts.map +1 -0
- package/build/types/common/Option/Option.d.ts.map +1 -0
- package/build/types/common/Option/index.d.ts.map +1 -0
- package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -0
- package/build/types/common/RadioButton/index.d.ts.map +1 -0
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -0
- package/build/types/common/bottomSheet/index.d.ts.map +1 -0
- package/build/types/common/card/Card.d.ts.map +1 -0
- package/build/types/common/card/index.d.ts.map +1 -0
- package/build/types/common/circle/Circle.d.ts.map +1 -0
- package/build/types/common/circle/index.d.ts.map +1 -0
- package/build/types/common/closeButton/CloseButton.d.ts.map +1 -0
- package/build/types/common/closeButton/CloseButton.messages.d.ts.map +1 -0
- package/build/types/common/closeButton/index.d.ts.map +1 -0
- package/build/types/common/colors.d.ts.map +1 -0
- package/build/types/common/commonProps.d.ts.map +1 -0
- package/build/types/common/constants.d.ts.map +1 -0
- package/build/types/common/dateUtils/getDateView/getDateView.d.ts.map +1 -0
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -0
- package/build/types/common/dateUtils/getFormatForLocale/getFormatForLocale.d.ts.map +1 -0
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -0
- package/build/types/common/dateUtils/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -0
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -0
- package/build/types/common/deviceDetection/deviceDetection.d.ts.map +1 -0
- package/build/types/common/deviceDetection/index.d.ts.map +1 -0
- package/build/types/common/direction.d.ts.map +1 -0
- package/build/types/common/domHelpers/documentIosClick.d.ts.map +1 -0
- package/build/types/common/domHelpers/index.d.ts.map +1 -0
- package/build/types/common/fakeEvents.d.ts.map +1 -0
- package/build/types/common/fileType.d.ts.map +1 -0
- package/build/types/common/flowHeader/FlowHeader.d.ts.map +1 -0
- package/build/types/common/flowHeader/index.d.ts.map +1 -0
- package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -0
- package/build/types/common/focusBoundary/index.d.ts.map +1 -0
- package/build/types/common/historyNavigator/historyNavigator.d.ts.map +1 -0
- package/build/types/common/historyNavigator/index.d.ts.map +1 -0
- package/build/types/common/hooks/index.d.ts.map +1 -0
- package/build/types/common/hooks/useConditionalListener/index.d.ts.map +1 -0
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -0
- package/build/types/common/hooks/useDirection/index.d.ts.map +1 -0
- package/build/types/common/hooks/useDirection/useDirection.d.ts.map +1 -0
- package/build/types/common/hooks/useEffectEvent.d.ts.map +1 -0
- package/build/types/common/hooks/useHasIntersected/index.d.ts.map +1 -0
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -0
- package/build/types/common/hooks/useLayout/index.d.ts.map +1 -0
- package/build/types/common/hooks/useLayout/useLayout.d.ts.map +1 -0
- package/build/types/common/hooks/useMedia.d.ts.map +1 -0
- package/build/types/common/hooks/useResizeObserver.d.ts.map +1 -0
- package/build/types/common/hooks/useScreenSize.d.ts.map +1 -0
- package/build/types/common/hooks/useVirtualKeyboard.d.ts.map +1 -0
- package/build/types/common/index.d.ts.map +1 -0
- package/build/types/common/initials.d.ts.map +1 -0
- package/build/types/common/locale/index.d.ts.map +1 -0
- package/build/types/common/panel/Panel.d.ts.map +1 -0
- package/build/types/common/panel/index.d.ts.map +1 -0
- package/build/types/common/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts.map +1 -0
- package/build/types/common/preventScroll/PreventScroll.d.ts.map +1 -0
- package/build/types/common/propsValues/breakpoint.d.ts.map +1 -0
- package/build/types/common/propsValues/control.d.ts.map +1 -0
- package/build/types/common/propsValues/dateMode.d.ts.map +1 -0
- package/build/types/common/propsValues/layouts.d.ts.map +1 -0
- package/build/types/common/propsValues/markdownNodeType.d.ts.map +1 -0
- package/build/types/common/propsValues/monthFormat.d.ts.map +1 -0
- package/build/types/common/propsValues/position.d.ts.map +1 -0
- package/build/types/common/propsValues/profileType.d.ts.map +1 -0
- package/build/types/common/propsValues/scroll.d.ts.map +1 -0
- package/build/types/common/propsValues/sentiment.d.ts.map +1 -0
- package/build/types/common/propsValues/size.d.ts.map +1 -0
- package/build/types/common/propsValues/status.d.ts.map +1 -0
- package/build/types/common/propsValues/type.d.ts.map +1 -0
- package/build/types/common/propsValues/typography.d.ts.map +1 -0
- package/build/types/common/propsValues/variant.d.ts.map +1 -0
- package/build/types/common/propsValues/width.d.ts.map +1 -0
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts.map +1 -0
- package/build/types/common/responsivePanel/index.d.ts.map +1 -0
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -0
- package/build/types/common/textFormat/formatWithPattern/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +1 -0
- package/build/types/common/textFormat/index.d.ts.map +1 -0
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts.map +1 -0
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -0
- package/build/types/common/theme.d.ts.map +1 -0
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -0
- package/build/types/criticalBanner/index.d.ts.map +1 -0
- package/build/types/dateInput/DateInput.d.ts.map +1 -0
- package/build/types/dateInput/DateInput.messages.d.ts.map +1 -0
- package/build/types/dateInput/index.d.ts.map +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -0
- package/build/types/dateInput/utils/index.d.ts.map +1 -0
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -0
- package/build/types/dateLookup/DateLookup.messages.d.ts.map +1 -0
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -0
- package/build/types/dateLookup/dateHeader/index.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/index.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/index.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/table/index.d.ts.map +1 -0
- package/build/types/dateLookup/getFocusableTime/getFocusableTime.d.ts.map +1 -0
- package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +1 -0
- package/build/types/dateLookup/getStartOfDay/index.d.ts.map +1 -0
- package/build/types/dateLookup/index.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/index.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/table/index.d.ts.map +1 -0
- package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -0
- package/build/types/dateLookup/tableLink/index.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/index.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/table/index.d.ts.map +1 -0
- package/build/types/decision/Decision.d.ts.map +1 -0
- package/build/types/decision/index.d.ts.map +1 -0
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -0
- package/build/types/definitionList/index.d.ts.map +1 -0
- package/build/types/dimmer/Dimmer.d.ts.map +1 -0
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts.map +1 -0
- package/build/types/dimmer/dimmerManager/index.d.ts.map +1 -0
- package/build/types/dimmer/index.d.ts.map +1 -0
- package/build/types/display/Display.d.ts.map +1 -0
- package/build/types/display/index.d.ts.map +1 -0
- package/build/types/divider/Divider.d.ts.map +1 -0
- package/build/types/divider/index.d.ts.map +1 -0
- package/build/types/drawer/Drawer.d.ts.map +1 -0
- package/build/types/drawer/index.d.ts.map +1 -0
- package/build/types/dropFade/DropFade.d.ts.map +1 -0
- package/build/types/dropFade/index.d.ts.map +1 -0
- package/build/types/emphasis/Emphasis.d.ts.map +1 -0
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts.map +1 -0
- package/build/types/emphasis/index.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/ExpressiveMoneyInput.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/ExpressiveMoneyInput.messages.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/amountInput/AmountInput.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/amountInput/utils.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/animatedNumber/AnimatedNumber.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/chevron/Chevron.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/hooks/useFocus.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/hooks/useInputStyle.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/hooks/useSelectionRange.d.ts.map +1 -0
- package/build/types/expressiveMoneyInput/index.d.ts.map +1 -0
- package/build/types/field/Field.d.ts.map +1 -0
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -0
- package/build/types/flowNavigation/FlowNavigation.messages.d.ts.map +1 -0
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -0
- package/build/types/flowNavigation/animatedLabel/index.d.ts.map +1 -0
- package/build/types/header/Header.d.ts.map +1 -0
- package/build/types/header/index.d.ts.map +1 -0
- package/build/types/i18n/commonMessages/Button.messages.d.ts.map +1 -0
- package/build/types/i18n/index.d.ts.map +1 -0
- package/build/types/iconButton/IconButton.d.ts.map +1 -0
- package/build/types/iconButton/index.d.ts.map +1 -0
- package/build/types/image/Image.d.ts.map +1 -0
- package/build/types/image/index.d.ts.map +1 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/info/Info.d.ts.map +1 -0
- package/build/types/info/Info.messages.d.ts.map +1 -0
- package/build/types/info/index.d.ts.map +1 -0
- package/build/types/info/infoPresentations.d.ts.map +1 -0
- package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -0
- package/build/types/inlineAlert/index.d.ts.map +1 -0
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -0
- package/build/types/inputWithDisplayFormat/index.d.ts.map +1 -0
- package/build/types/inputs/Input.d.ts.map +1 -0
- package/build/types/inputs/InputGroup.d.ts.map +1 -0
- package/build/types/inputs/SearchInput.d.ts.map +1 -0
- package/build/types/inputs/SelectInput.d.ts.map +1 -0
- package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
- package/build/types/inputs/TextArea.d.ts.map +1 -0
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -0
- package/build/types/inputs/_ButtonInput.d.ts.map +1 -0
- package/build/types/inputs/_Popover.d.ts.map +1 -0
- package/build/types/inputs/_common.d.ts.map +1 -0
- package/build/types/inputs/contexts.d.ts.map +1 -0
- package/build/types/instructionsList/InstructionsList.d.ts.map +1 -0
- package/build/types/instructionsList/index.d.ts.map +1 -0
- package/build/types/label/Label.d.ts.map +1 -0
- package/build/types/label/Label.messages.d.ts.map +1 -0
- package/build/types/label/index.d.ts.map +1 -0
- package/build/types/legacylistItem/LegacyListItem.d.ts.map +1 -0
- package/build/types/legacylistItem/index.d.ts.map +1 -0
- package/build/types/link/Link.d.ts.map +1 -0
- package/build/types/link/Link.messages.d.ts.map +1 -0
- package/build/types/link/index.d.ts.map +1 -0
- package/build/types/list/List.d.ts.map +1 -0
- package/build/types/list/index.d.ts.map +1 -0
- package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +1 -0
- package/build/types/listItem/AdditionalInfo/index.d.ts.map +1 -0
- package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -0
- package/build/types/listItem/AvatarLayout/index.d.ts.map +1 -0
- package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -0
- package/build/types/listItem/AvatarView/index.d.ts.map +1 -0
- package/build/types/listItem/Button/ListItemButton.d.ts.map +1 -0
- package/build/types/listItem/Button/index.d.ts.map +1 -0
- package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +1 -0
- package/build/types/listItem/Checkbox/index.d.ts.map +1 -0
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +1 -0
- package/build/types/listItem/IconButton/index.d.ts.map +1 -0
- package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -0
- package/build/types/listItem/Image/index.d.ts.map +1 -0
- package/build/types/listItem/ListItem.d.ts.map +1 -0
- package/build/types/listItem/ListItemContext.d.ts.map +1 -0
- package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +1 -0
- package/build/types/listItem/Navigation/index.d.ts.map +1 -0
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +1 -0
- package/build/types/listItem/Prompt/index.d.ts.map +1 -0
- package/build/types/listItem/Radio/ListItemRadio.d.ts.map +1 -0
- package/build/types/listItem/Radio/index.d.ts.map +1 -0
- package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +1 -0
- package/build/types/listItem/Switch/index.d.ts.map +1 -0
- package/build/types/listItem/_stories/helpers.d.ts.map +1 -0
- package/build/types/listItem/_stories/subcomponents.d.ts.map +1 -0
- package/build/types/listItem/_stories/variants/helpers.d.ts.map +1 -0
- package/build/types/listItem/constants.d.ts.map +1 -0
- package/build/types/listItem/index.d.ts.map +1 -0
- package/build/types/listItem/test-utils.d.ts.map +1 -0
- package/build/types/listItem/useListItemControl.d.ts.map +1 -0
- package/build/types/listItem/useListItemMedia.d.ts.map +1 -0
- package/build/types/loader/Loader.d.ts.map +1 -0
- package/build/types/loader/index.d.ts.map +1 -0
- package/build/types/logo/Logo.d.ts.map +1 -0
- package/build/types/logo/index.d.ts.map +1 -0
- package/build/types/logo/logo-assets.d.ts.map +1 -0
- package/build/types/markdown/Markdown.d.ts.map +1 -0
- package/build/types/markdown/index.d.ts.map +1 -0
- package/build/types/mocks.d.ts.map +1 -0
- package/build/types/modal/Modal.d.ts.map +1 -0
- package/build/types/modal/index.d.ts.map +1 -0
- package/build/types/money/Money.d.ts.map +1 -0
- package/build/types/money/index.d.ts.map +1 -0
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -0
- package/build/types/moneyInput/MoneyInput.messages.d.ts.map +1 -0
- package/build/types/moneyInput/currencyFormatting.d.ts.map +1 -0
- package/build/types/moneyInput/index.d.ts.map +1 -0
- package/build/types/navigationOption/NavigationOption.d.ts.map +1 -0
- package/build/types/navigationOption/index.d.ts.map +1 -0
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -0
- package/build/types/navigationOptionsList/index.d.ts.map +1 -0
- package/build/types/nudge/Nudge.d.ts.map +1 -0
- package/build/types/nudge/index.d.ts.map +1 -0
- package/build/types/overlayHeader/OverlayHeader.d.ts.map +1 -0
- package/build/types/overlayHeader/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -0
- package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +1 -0
- package/build/types/phoneNumberInput/data/countries.d.ts.map +1 -0
- package/build/types/phoneNumberInput/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +1 -0
- package/build/types/popover/Popover.d.ts.map +1 -0
- package/build/types/popover/index.d.ts.map +1 -0
- package/build/types/primitives/PrimitiveAnchor/PrimitiveAnchor.d.ts.map +1 -0
- package/build/types/primitives/PrimitiveAnchor/PrimitiveAnchor.types.d.ts.map +1 -0
- package/build/types/primitives/PrimitiveAnchor/index.d.ts.map +1 -0
- package/build/types/primitives/PrimitiveButton/PrimitiveButton.d.ts.map +1 -0
- package/build/types/primitives/PrimitiveButton/PrimitiveButton.types.d.ts.map +1 -0
- package/build/types/primitives/PrimitiveButton/index.d.ts.map +1 -0
- package/build/types/primitives/index.d.ts.map +1 -0
- package/build/types/primitives/types.d.ts.map +1 -0
- package/build/types/processIndicator/ProcessIndicator.d.ts.map +1 -0
- package/build/types/processIndicator/index.d.ts.map +1 -0
- package/build/types/progress/Progress.d.ts.map +1 -0
- package/build/types/progress/index.d.ts.map +1 -0
- package/build/types/progressBar/ProgressBar.d.ts.map +1 -0
- package/build/types/progressBar/index.d.ts.map +1 -0
- package/build/types/promoCard/PromoCard.d.ts.map +1 -0
- package/build/types/promoCard/PromoCardContext.d.ts.map +1 -0
- package/build/types/promoCard/PromoCardGroup.d.ts.map +1 -0
- package/build/types/promoCard/PromoCardIndicator.d.ts.map +1 -0
- package/build/types/promoCard/index.d.ts.map +1 -0
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -0
- package/build/types/prompt/InlinePrompt/index.d.ts.map +1 -0
- package/build/types/prompt/index.d.ts.map +1 -0
- package/build/types/provider/Provider.d.ts.map +1 -0
- package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -0
- package/build/types/provider/direction/index.d.ts.map +1 -0
- package/build/types/provider/index.d.ts.map +1 -0
- package/build/types/provider/language/LanguageProvider.d.ts.map +1 -0
- package/build/types/provider/language/index.d.ts.map +1 -0
- package/build/types/provider/overlay/OverlayIdProvider.d.ts.map +1 -0
- package/build/types/radio/Radio.d.ts.map +1 -0
- package/build/types/radio/index.d.ts.map +1 -0
- package/build/types/radioGroup/RadioGroup.d.ts.map +1 -0
- package/build/types/radioGroup/index.d.ts.map +1 -0
- package/build/types/radioOption/RadioOption.d.ts.map +1 -0
- package/build/types/radioOption/index.d.ts.map +1 -0
- package/build/types/section/Section.d.ts.map +1 -0
- package/build/types/section/index.d.ts.map +1 -0
- package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -0
- package/build/types/segmentedControl/index.d.ts.map +1 -0
- package/build/types/select/Select.d.ts.map +1 -0
- package/build/types/select/Select.messages.d.ts.map +1 -0
- package/build/types/select/index.d.ts.map +1 -0
- package/build/types/select/option/Option.d.ts.map +1 -0
- package/build/types/select/option/index.d.ts.map +1 -0
- package/build/types/select/searchBox/SearchBox.d.ts.map +1 -0
- package/build/types/select/searchBox/index.d.ts.map +1 -0
- package/build/types/sentimentSurface/SentimentSurface.d.ts.map +1 -0
- package/build/types/sentimentSurface/SentimentSurface.types.d.ts.map +1 -0
- package/build/types/sentimentSurface/index.d.ts.map +1 -0
- package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -0
- package/build/types/slidingPanel/index.d.ts.map +1 -0
- package/build/types/snackbar/Snackbar.d.ts.map +1 -0
- package/build/types/snackbar/SnackbarContext.d.ts.map +1 -0
- package/build/types/snackbar/SnackbarProvider.d.ts.map +1 -0
- package/build/types/snackbar/index.d.ts.map +1 -0
- package/build/types/snackbar/useSnackbar.d.ts.map +1 -0
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -0
- package/build/types/statusIcon/StatusIcon.messages.d.ts.map +1 -0
- package/build/types/statusIcon/index.d.ts.map +1 -0
- package/build/types/stepper/Stepper.d.ts.map +1 -0
- package/build/types/stepper/deviceDetection.d.ts.map +1 -0
- package/build/types/sticky/Sticky.d.ts.map +1 -0
- package/build/types/sticky/index.d.ts.map +1 -0
- package/build/types/summary/Summary.d.ts.map +1 -0
- package/build/types/summary/Summary.messages.d.ts.map +1 -0
- package/build/types/summary/index.d.ts.map +1 -0
- package/build/types/switch/Switch.d.ts.map +1 -0
- package/build/types/switch/index.d.ts.map +1 -0
- package/build/types/switchOption/SwitchOption.d.ts.map +1 -0
- package/build/types/switchOption/index.d.ts.map +1 -0
- package/build/types/table/Table.d.ts.map +1 -0
- package/build/types/table/Table.messages.d.ts.map +1 -0
- package/build/types/table/TableCell.d.ts.map +1 -0
- package/build/types/table/TableHeader.d.ts.map +1 -0
- package/build/types/table/TableRow.d.ts.map +1 -0
- package/build/types/table/TableStatusText.d.ts.map +1 -0
- package/build/types/table/index.d.ts.map +1 -0
- package/build/types/tabs/Tab.d.ts.map +1 -0
- package/build/types/tabs/TabList.d.ts.map +1 -0
- package/build/types/tabs/TabPanel.d.ts.map +1 -0
- package/build/types/tabs/Tabs.d.ts.map +1 -0
- package/build/types/tabs/index.d.ts.map +1 -0
- package/build/types/tabs/utils.d.ts.map +1 -0
- package/build/types/test-utils/fake-data.d.ts.map +1 -0
- package/build/types/test-utils/index.d.ts.map +1 -0
- package/build/types/test-utils/jest.setup.d.ts.map +1 -0
- package/build/types/test-utils/style-mock.d.ts.map +1 -0
- package/build/types/test-utils/wait.d.ts.map +1 -0
- package/build/types/test-utils/window-mock.d.ts.map +1 -0
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -0
- package/build/types/textareaWithDisplayFormat/index.d.ts.map +1 -0
- package/build/types/tile/Tile.d.ts.map +1 -0
- package/build/types/tile/index.d.ts.map +1 -0
- package/build/types/title/Title.d.ts.map +1 -0
- package/build/types/title/index.d.ts.map +1 -0
- package/build/types/tooltip/Tooltip.d.ts.map +1 -0
- package/build/types/tooltip/index.d.ts.map +1 -0
- package/build/types/typeahead/Typeahead.d.ts.map +1 -0
- package/build/types/typeahead/Typeahead.messages.d.ts.map +1 -0
- package/build/types/typeahead/index.d.ts.map +1 -0
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts.map +1 -0
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -0
- package/build/types/typeahead/util/highlight.d.ts.map +1 -0
- package/build/types/upload/Upload.d.ts.map +1 -0
- package/build/types/upload/Upload.messages.d.ts.map +1 -0
- package/build/types/upload/index.d.ts.map +1 -0
- package/build/types/upload/steps/completeStep/completeStep.d.ts.map +1 -0
- package/build/types/upload/steps/completeStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/index.d.ts.map +1 -0
- package/build/types/upload/steps/processingStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -0
- package/build/types/upload/steps/uploadImageStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -0
- package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts.map +1 -0
- package/build/types/upload/utils/asyncFileRead/index.d.ts.map +1 -0
- package/build/types/upload/utils/getFileType/getFileType.d.ts.map +1 -0
- package/build/types/upload/utils/getFileType/index.d.ts.map +1 -0
- package/build/types/upload/utils/index.d.ts.map +1 -0
- package/build/types/upload/utils/isSizeValid/index.d.ts.map +1 -0
- package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts.map +1 -0
- package/build/types/upload/utils/isTypeValid/index.d.ts.map +1 -0
- package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts.map +1 -0
- package/build/types/upload/utils/postData/index.d.ts.map +1 -0
- package/build/types/upload/utils/postData/postData.d.ts.map +1 -0
- package/build/types/uploadInput/UploadInput.d.ts.map +1 -0
- package/build/types/uploadInput/UploadInput.messages.d.ts.map +1 -0
- package/build/types/uploadInput/index.d.ts.map +1 -0
- package/build/types/uploadInput/types.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/defaults.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -0
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -0
- package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts.map +1 -0
- package/build/types/uploadInput/uploadItem/UploadItemLink.d.ts.map +1 -0
- package/build/types/utilities/cssValueWithUnit.d.ts.map +1 -0
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -0
- package/build/types/utilities/deprecatedProperty/index.d.ts.map +1 -0
- package/build/types/utilities/index.d.ts.map +1 -0
- package/build/types/utilities/logActionRequired.d.ts.map +1 -0
- package/build/types/utils.d.ts.map +1 -0
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -0
- package/build/types/withDisplayFormat/index.d.ts.map +1 -0
- package/build/types/withId/index.d.ts.map +1 -0
- package/build/types/withId/story/source.d.ts.map +1 -0
- package/build/types/withId/withId.d.ts.map +1 -0
- package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -0
- package/build/upload/Upload.js +21 -4
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.messages.js.map +1 -1
- package/build/upload/Upload.messages.mjs.map +1 -1
- package/build/upload/Upload.mjs +21 -3
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +18 -0
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +18 -0
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js +17 -0
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +17 -0
- package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +17 -0
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +17 -0
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +1 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +1 -1
- package/build/upload/utils/getFileType/getFileType.js.map +1 -1
- package/build/upload/utils/getFileType/getFileType.mjs.map +1 -1
- package/build/upload/utils/isSizeValid/isSizeValid.js.map +1 -1
- package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +1 -1
- package/build/upload/utils/isTypeValid/isTypeValid.js.map +1 -1
- package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +1 -1
- package/build/upload/utils/postData/postData.js.map +1 -1
- package/build/upload/utils/postData/postData.mjs.map +1 -1
- package/build/uploadInput/UploadInput.js +17 -8
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.messages.js.map +1 -1
- package/build/uploadInput/UploadInput.messages.mjs.map +1 -1
- package/build/uploadInput/UploadInput.mjs +17 -8
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +23 -6
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +21 -3
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/build/uploadInput/uploadButton/defaults.js +18 -0
- package/build/uploadInput/uploadButton/defaults.js.map +1 -1
- package/build/uploadInput/uploadButton/defaults.mjs +18 -0
- package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js +0 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +0 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js +23 -9
- package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs +19 -4
- package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItemLink.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItemLink.mjs.map +1 -1
- package/build/utilities/cssValueWithUnit.js.map +1 -1
- package/build/utilities/cssValueWithUnit.mjs.map +1 -1
- package/build/utilities/logActionRequired.js.map +1 -1
- package/build/utilities/logActionRequired.mjs.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js +33 -17
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +19 -3
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/build/withId/withId.js +0 -4
- package/build/withId/withId.js.map +1 -1
- package/build/withId/withId.mjs +0 -4
- package/build/withId/withId.mjs.map +1 -1
- package/build/withNextPortal/withNextPortal.js.map +1 -1
- package/build/withNextPortal/withNextPortal.mjs.map +1 -1
- package/package.json +3 -3
- package/src/provider/theme/ThemeProvider.story.tsx +1 -0
- package/build/types/components/src/accordion/Accordion.d.ts.map +0 -1
- package/build/types/components/src/accordion/AccordionItem/AccordionItem.d.ts.map +0 -1
- package/build/types/components/src/accordion/AccordionItem/index.d.ts.map +0 -1
- package/build/types/components/src/accordion/index.d.ts.map +0 -1
- package/build/types/components/src/actionButton/ActionButton.d.ts.map +0 -1
- package/build/types/components/src/actionButton/index.d.ts.map +0 -1
- package/build/types/components/src/actionOption/ActionOption.d.ts.map +0 -1
- package/build/types/components/src/actionOption/index.d.ts.map +0 -1
- package/build/types/components/src/alert/Alert.d.ts.map +0 -1
- package/build/types/components/src/alert/index.d.ts.map +0 -1
- package/build/types/components/src/alert/inlineMarkdown/InlineMarkdown.d.ts.map +0 -1
- package/build/types/components/src/alert/inlineMarkdown/index.d.ts.map +0 -1
- package/build/types/components/src/avatar/Avatar.d.ts.map +0 -1
- package/build/types/components/src/avatar/avatarTypes.d.ts.map +0 -1
- package/build/types/components/src/avatar/index.d.ts.map +0 -1
- package/build/types/components/src/avatarLayout/AvatarLayout.d.ts.map +0 -1
- package/build/types/components/src/avatarLayout/index.d.ts.map +0 -1
- package/build/types/components/src/avatarView/AvatarView.d.ts.map +0 -1
- package/build/types/components/src/avatarView/Dot.d.ts.map +0 -1
- package/build/types/components/src/avatarView/index.d.ts.map +0 -1
- package/build/types/components/src/avatarWrapper/AvatarWrapper.d.ts.map +0 -1
- package/build/types/components/src/avatarWrapper/index.d.ts.map +0 -1
- package/build/types/components/src/badge/Badge.d.ts.map +0 -1
- package/build/types/components/src/badge/BadgeAssets.d.ts.map +0 -1
- package/build/types/components/src/badge/index.d.ts.map +0 -1
- package/build/types/components/src/body/Body.d.ts.map +0 -1
- package/build/types/components/src/body/index.d.ts.map +0 -1
- package/build/types/components/src/button/Button.d.ts.map +0 -1
- package/build/types/components/src/button/Button.resolver.d.ts.map +0 -1
- package/build/types/components/src/button/Button.types.d.ts.map +0 -1
- package/build/types/components/src/button/LegacyButton.d.ts.map +0 -1
- package/build/types/components/src/button/_stories/helpers.d.ts.map +0 -1
- package/build/types/components/src/button/classMap.d.ts.map +0 -1
- package/build/types/components/src/button/index.d.ts.map +0 -1
- package/build/types/components/src/button/legacyUtils/index.d.ts.map +0 -1
- package/build/types/components/src/button/legacyUtils/legacyUtils.d.ts.map +0 -1
- package/build/types/components/src/card/Card.d.ts.map +0 -1
- package/build/types/components/src/card/index.d.ts.map +0 -1
- package/build/types/components/src/carousel/Carousel.d.ts.map +0 -1
- package/build/types/components/src/carousel/index.d.ts.map +0 -1
- package/build/types/components/src/checkbox/Checkbox.d.ts.map +0 -1
- package/build/types/components/src/checkbox/index.d.ts.map +0 -1
- package/build/types/components/src/checkboxButton/CheckboxButton.d.ts.map +0 -1
- package/build/types/components/src/checkboxButton/index.d.ts.map +0 -1
- package/build/types/components/src/checkboxOption/CheckboxOption.d.ts.map +0 -1
- package/build/types/components/src/checkboxOption/index.d.ts.map +0 -1
- package/build/types/components/src/chevron/Chevron.d.ts.map +0 -1
- package/build/types/components/src/chevron/index.d.ts.map +0 -1
- package/build/types/components/src/chips/Chip.d.ts.map +0 -1
- package/build/types/components/src/chips/Chips.d.ts.map +0 -1
- package/build/types/components/src/chips/Chips.messages.d.ts.map +0 -1
- package/build/types/components/src/chips/index.d.ts.map +0 -1
- package/build/types/components/src/circularButton/CircularButton.d.ts.map +0 -1
- package/build/types/components/src/circularButton/index.d.ts.map +0 -1
- package/build/types/components/src/common/DOMOperations/DOMOperations.d.ts.map +0 -1
- package/build/types/components/src/common/DOMOperations/index.d.ts.map +0 -1
- package/build/types/components/src/common/Option/Option.d.ts.map +0 -1
- package/build/types/components/src/common/Option/index.d.ts.map +0 -1
- package/build/types/components/src/common/RadioButton/RadioButton.d.ts.map +0 -1
- package/build/types/components/src/common/RadioButton/index.d.ts.map +0 -1
- package/build/types/components/src/common/bottomSheet/BottomSheet.d.ts.map +0 -1
- package/build/types/components/src/common/bottomSheet/index.d.ts.map +0 -1
- package/build/types/components/src/common/card/Card.d.ts.map +0 -1
- package/build/types/components/src/common/card/index.d.ts.map +0 -1
- package/build/types/components/src/common/circle/Circle.d.ts.map +0 -1
- package/build/types/components/src/common/circle/index.d.ts.map +0 -1
- package/build/types/components/src/common/closeButton/CloseButton.d.ts.map +0 -1
- package/build/types/components/src/common/closeButton/CloseButton.messages.d.ts.map +0 -1
- package/build/types/components/src/common/closeButton/index.d.ts.map +0 -1
- package/build/types/components/src/common/colors.d.ts.map +0 -1
- package/build/types/components/src/common/commonProps.d.ts.map +0 -1
- package/build/types/components/src/common/constants.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/getDateView/getDateView.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/getDayNames/getDayNames.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/getFormatForLocale/getFormatForLocale.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/index.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/isDateValid/isDateValid.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +0 -1
- package/build/types/components/src/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +0 -1
- package/build/types/components/src/common/deviceDetection/deviceDetection.d.ts.map +0 -1
- package/build/types/components/src/common/deviceDetection/index.d.ts.map +0 -1
- package/build/types/components/src/common/direction.d.ts.map +0 -1
- package/build/types/components/src/common/domHelpers/documentIosClick.d.ts.map +0 -1
- package/build/types/components/src/common/domHelpers/index.d.ts.map +0 -1
- package/build/types/components/src/common/fakeEvents.d.ts.map +0 -1
- package/build/types/components/src/common/fileType.d.ts.map +0 -1
- package/build/types/components/src/common/flowHeader/FlowHeader.d.ts.map +0 -1
- package/build/types/components/src/common/flowHeader/index.d.ts.map +0 -1
- package/build/types/components/src/common/focusBoundary/FocusBoundary.d.ts.map +0 -1
- package/build/types/components/src/common/focusBoundary/index.d.ts.map +0 -1
- package/build/types/components/src/common/historyNavigator/historyNavigator.d.ts.map +0 -1
- package/build/types/components/src/common/historyNavigator/index.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/index.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useConditionalListener/index.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useDirection/index.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useDirection/useDirection.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useEffectEvent.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useHasIntersected/index.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useLayout/index.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useLayout/useLayout.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useMedia.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useResizeObserver.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useScreenSize.d.ts.map +0 -1
- package/build/types/components/src/common/hooks/useVirtualKeyboard.d.ts.map +0 -1
- package/build/types/components/src/common/index.d.ts.map +0 -1
- package/build/types/components/src/common/initials.d.ts.map +0 -1
- package/build/types/components/src/common/locale/index.d.ts.map +0 -1
- package/build/types/components/src/common/panel/Panel.d.ts.map +0 -1
- package/build/types/components/src/common/panel/index.d.ts.map +0 -1
- package/build/types/components/src/common/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts.map +0 -1
- package/build/types/components/src/common/preventScroll/PreventScroll.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/breakpoint.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/control.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/dateMode.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/layouts.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/markdownNodeType.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/monthFormat.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/position.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/profileType.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/scroll.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/sentiment.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/size.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/status.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/type.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/typography.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/variant.d.ts.map +0 -1
- package/build/types/components/src/common/propsValues/width.d.ts.map +0 -1
- package/build/types/components/src/common/responsivePanel/ResponsivePanel.d.ts.map +0 -1
- package/build/types/components/src/common/responsivePanel/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/formatWithPattern/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getDistanceToSymbol/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/unformatWithPattern/index.d.ts.map +0 -1
- package/build/types/components/src/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +0 -1
- package/build/types/components/src/common/theme.d.ts.map +0 -1
- package/build/types/components/src/criticalBanner/CriticalCommsBanner.d.ts.map +0 -1
- package/build/types/components/src/criticalBanner/index.d.ts.map +0 -1
- package/build/types/components/src/dateInput/DateInput.d.ts.map +0 -1
- package/build/types/components/src/dateInput/DateInput.messages.d.ts.map +0 -1
- package/build/types/components/src/dateInput/index.d.ts.map +0 -1
- package/build/types/components/src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +0 -1
- package/build/types/components/src/dateInput/utils/convertToLocalMidnight/index.d.ts.map +0 -1
- package/build/types/components/src/dateInput/utils/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/DateLookup.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/DateLookup.messages.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dateHeader/DateHeader.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dateHeader/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dateTrigger/DateTrigger.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dateTrigger/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dayCalendar/DayCalendar.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dayCalendar/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/dayCalendar/table/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/getFocusableTime/getFocusableTime.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/getStartOfDay/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/monthCalendar/MonthCalendar.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/monthCalendar/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/monthCalendar/table/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/tableLink/TableLink.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/tableLink/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/yearCalendar/YearCalendar.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/yearCalendar/index.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +0 -1
- package/build/types/components/src/dateLookup/yearCalendar/table/index.d.ts.map +0 -1
- package/build/types/components/src/decision/Decision.d.ts.map +0 -1
- package/build/types/components/src/decision/index.d.ts.map +0 -1
- package/build/types/components/src/definitionList/DefinitionList.d.ts.map +0 -1
- package/build/types/components/src/definitionList/index.d.ts.map +0 -1
- package/build/types/components/src/dimmer/Dimmer.d.ts.map +0 -1
- package/build/types/components/src/dimmer/dimmerManager/DimmerManager.d.ts.map +0 -1
- package/build/types/components/src/dimmer/dimmerManager/index.d.ts.map +0 -1
- package/build/types/components/src/dimmer/index.d.ts.map +0 -1
- package/build/types/components/src/display/Display.d.ts.map +0 -1
- package/build/types/components/src/display/index.d.ts.map +0 -1
- package/build/types/components/src/divider/Divider.d.ts.map +0 -1
- package/build/types/components/src/divider/index.d.ts.map +0 -1
- package/build/types/components/src/drawer/Drawer.d.ts.map +0 -1
- package/build/types/components/src/drawer/index.d.ts.map +0 -1
- package/build/types/components/src/dropFade/DropFade.d.ts.map +0 -1
- package/build/types/components/src/dropFade/index.d.ts.map +0 -1
- package/build/types/components/src/emphasis/Emphasis.d.ts.map +0 -1
- package/build/types/components/src/emphasis/EmphasisHtmlTransformer.d.ts.map +0 -1
- package/build/types/components/src/emphasis/index.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/ExpressiveMoneyInput.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/ExpressiveMoneyInput.messages.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/amountInput/AmountInput.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/amountInput/utils.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/animatedNumber/AnimatedNumber.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/chevron/Chevron.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/hooks/useFocus.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/hooks/useInputStyle.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/hooks/useSelectionRange.d.ts.map +0 -1
- package/build/types/components/src/expressiveMoneyInput/index.d.ts.map +0 -1
- package/build/types/components/src/field/Field.d.ts.map +0 -1
- package/build/types/components/src/flowNavigation/FlowNavigation.d.ts.map +0 -1
- package/build/types/components/src/flowNavigation/FlowNavigation.messages.d.ts.map +0 -1
- package/build/types/components/src/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +0 -1
- package/build/types/components/src/flowNavigation/animatedLabel/index.d.ts.map +0 -1
- package/build/types/components/src/header/Header.d.ts.map +0 -1
- package/build/types/components/src/header/index.d.ts.map +0 -1
- package/build/types/components/src/i18n/commonMessages/Button.messages.d.ts.map +0 -1
- package/build/types/components/src/i18n/index.d.ts.map +0 -1
- package/build/types/components/src/iconButton/IconButton.d.ts.map +0 -1
- package/build/types/components/src/iconButton/index.d.ts.map +0 -1
- package/build/types/components/src/image/Image.d.ts.map +0 -1
- package/build/types/components/src/image/index.d.ts.map +0 -1
- package/build/types/components/src/index.d.ts.map +0 -1
- package/build/types/components/src/info/Info.d.ts.map +0 -1
- package/build/types/components/src/info/Info.messages.d.ts.map +0 -1
- package/build/types/components/src/info/index.d.ts.map +0 -1
- package/build/types/components/src/info/infoPresentations.d.ts.map +0 -1
- package/build/types/components/src/inlineAlert/InlineAlert.d.ts.map +0 -1
- package/build/types/components/src/inlineAlert/index.d.ts.map +0 -1
- package/build/types/components/src/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +0 -1
- package/build/types/components/src/inputWithDisplayFormat/index.d.ts.map +0 -1
- package/build/types/components/src/inputs/Input.d.ts.map +0 -1
- package/build/types/components/src/inputs/InputGroup.d.ts.map +0 -1
- package/build/types/components/src/inputs/SearchInput.d.ts.map +0 -1
- package/build/types/components/src/inputs/SelectInput.d.ts.map +0 -1
- package/build/types/components/src/inputs/SelectInput.messages.d.ts.map +0 -1
- package/build/types/components/src/inputs/TextArea.d.ts.map +0 -1
- package/build/types/components/src/inputs/_BottomSheet.d.ts.map +0 -1
- package/build/types/components/src/inputs/_ButtonInput.d.ts.map +0 -1
- package/build/types/components/src/inputs/_Popover.d.ts.map +0 -1
- package/build/types/components/src/inputs/_common.d.ts.map +0 -1
- package/build/types/components/src/inputs/contexts.d.ts.map +0 -1
- package/build/types/components/src/instructionsList/InstructionsList.d.ts.map +0 -1
- package/build/types/components/src/instructionsList/index.d.ts.map +0 -1
- package/build/types/components/src/label/Label.d.ts.map +0 -1
- package/build/types/components/src/label/Label.messages.d.ts.map +0 -1
- package/build/types/components/src/label/index.d.ts.map +0 -1
- package/build/types/components/src/legacylistItem/LegacyListItem.d.ts.map +0 -1
- package/build/types/components/src/legacylistItem/index.d.ts.map +0 -1
- package/build/types/components/src/link/Link.d.ts.map +0 -1
- package/build/types/components/src/link/Link.messages.d.ts.map +0 -1
- package/build/types/components/src/link/index.d.ts.map +0 -1
- package/build/types/components/src/list/List.d.ts.map +0 -1
- package/build/types/components/src/list/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +0 -1
- package/build/types/components/src/listItem/AdditionalInfo/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +0 -1
- package/build/types/components/src/listItem/AvatarLayout/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/AvatarView/ListItemAvatarView.d.ts.map +0 -1
- package/build/types/components/src/listItem/AvatarView/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/Button/ListItemButton.d.ts.map +0 -1
- package/build/types/components/src/listItem/Button/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/Checkbox/ListItemCheckbox.d.ts.map +0 -1
- package/build/types/components/src/listItem/Checkbox/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/IconButton/ListItemIconButton.d.ts.map +0 -1
- package/build/types/components/src/listItem/IconButton/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/Image/ListItemImage.d.ts.map +0 -1
- package/build/types/components/src/listItem/Image/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/ListItem.d.ts.map +0 -1
- package/build/types/components/src/listItem/ListItemContext.d.ts.map +0 -1
- package/build/types/components/src/listItem/Navigation/ListItemNavigation.d.ts.map +0 -1
- package/build/types/components/src/listItem/Navigation/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/Prompt/ListItemPrompt.d.ts.map +0 -1
- package/build/types/components/src/listItem/Prompt/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/Radio/ListItemRadio.d.ts.map +0 -1
- package/build/types/components/src/listItem/Radio/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/Switch/ListItemSwitch.d.ts.map +0 -1
- package/build/types/components/src/listItem/Switch/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/_stories/helpers.d.ts.map +0 -1
- package/build/types/components/src/listItem/_stories/subcomponents.d.ts.map +0 -1
- package/build/types/components/src/listItem/_stories/variants/helpers.d.ts.map +0 -1
- package/build/types/components/src/listItem/constants.d.ts.map +0 -1
- package/build/types/components/src/listItem/index.d.ts.map +0 -1
- package/build/types/components/src/listItem/test-utils.d.ts.map +0 -1
- package/build/types/components/src/listItem/useListItemControl.d.ts.map +0 -1
- package/build/types/components/src/listItem/useListItemMedia.d.ts.map +0 -1
- package/build/types/components/src/loader/Loader.d.ts.map +0 -1
- package/build/types/components/src/loader/index.d.ts.map +0 -1
- package/build/types/components/src/logo/Logo.d.ts.map +0 -1
- package/build/types/components/src/logo/index.d.ts.map +0 -1
- package/build/types/components/src/logo/logo-assets.d.ts.map +0 -1
- package/build/types/components/src/markdown/Markdown.d.ts.map +0 -1
- package/build/types/components/src/markdown/index.d.ts.map +0 -1
- package/build/types/components/src/mocks.d.ts.map +0 -1
- package/build/types/components/src/modal/Modal.d.ts.map +0 -1
- package/build/types/components/src/modal/index.d.ts.map +0 -1
- package/build/types/components/src/money/Money.d.ts.map +0 -1
- package/build/types/components/src/money/index.d.ts.map +0 -1
- package/build/types/components/src/moneyInput/MoneyInput.d.ts.map +0 -1
- package/build/types/components/src/moneyInput/MoneyInput.messages.d.ts.map +0 -1
- package/build/types/components/src/moneyInput/currencyFormatting.d.ts.map +0 -1
- package/build/types/components/src/moneyInput/index.d.ts.map +0 -1
- package/build/types/components/src/navigationOption/NavigationOption.d.ts.map +0 -1
- package/build/types/components/src/navigationOption/index.d.ts.map +0 -1
- package/build/types/components/src/navigationOptionsList/NavigationOptionsList.d.ts.map +0 -1
- package/build/types/components/src/navigationOptionsList/index.d.ts.map +0 -1
- package/build/types/components/src/nudge/Nudge.d.ts.map +0 -1
- package/build/types/components/src/nudge/index.d.ts.map +0 -1
- package/build/types/components/src/overlayHeader/OverlayHeader.d.ts.map +0 -1
- package/build/types/components/src/overlayHeader/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/PhoneNumberInput.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/data/countries.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/cleanNumber/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/excludeCountries/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +0 -1
- package/build/types/components/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +0 -1
- package/build/types/components/src/popover/Popover.d.ts.map +0 -1
- package/build/types/components/src/popover/index.d.ts.map +0 -1
- package/build/types/components/src/primitives/PrimitiveAnchor/PrimitiveAnchor.d.ts.map +0 -1
- package/build/types/components/src/primitives/PrimitiveAnchor/PrimitiveAnchor.types.d.ts.map +0 -1
- package/build/types/components/src/primitives/PrimitiveAnchor/index.d.ts.map +0 -1
- package/build/types/components/src/primitives/PrimitiveButton/PrimitiveButton.d.ts.map +0 -1
- package/build/types/components/src/primitives/PrimitiveButton/PrimitiveButton.types.d.ts.map +0 -1
- package/build/types/components/src/primitives/PrimitiveButton/index.d.ts.map +0 -1
- package/build/types/components/src/primitives/index.d.ts.map +0 -1
- package/build/types/components/src/primitives/types.d.ts.map +0 -1
- package/build/types/components/src/processIndicator/ProcessIndicator.d.ts.map +0 -1
- package/build/types/components/src/processIndicator/index.d.ts.map +0 -1
- package/build/types/components/src/progress/Progress.d.ts.map +0 -1
- package/build/types/components/src/progress/index.d.ts.map +0 -1
- package/build/types/components/src/progressBar/ProgressBar.d.ts.map +0 -1
- package/build/types/components/src/progressBar/index.d.ts.map +0 -1
- package/build/types/components/src/promoCard/PromoCard.d.ts.map +0 -1
- package/build/types/components/src/promoCard/PromoCardContext.d.ts.map +0 -1
- package/build/types/components/src/promoCard/PromoCardGroup.d.ts.map +0 -1
- package/build/types/components/src/promoCard/PromoCardIndicator.d.ts.map +0 -1
- package/build/types/components/src/promoCard/index.d.ts.map +0 -1
- package/build/types/components/src/prompt/InlinePrompt/InlinePrompt.d.ts.map +0 -1
- package/build/types/components/src/prompt/InlinePrompt/index.d.ts.map +0 -1
- package/build/types/components/src/prompt/index.d.ts.map +0 -1
- package/build/types/components/src/provider/Provider.d.ts.map +0 -1
- package/build/types/components/src/provider/direction/DirectionProvider.d.ts.map +0 -1
- package/build/types/components/src/provider/direction/index.d.ts.map +0 -1
- package/build/types/components/src/provider/index.d.ts.map +0 -1
- package/build/types/components/src/provider/language/LanguageProvider.d.ts.map +0 -1
- package/build/types/components/src/provider/language/index.d.ts.map +0 -1
- package/build/types/components/src/provider/overlay/OverlayIdProvider.d.ts.map +0 -1
- package/build/types/components/src/radio/Radio.d.ts.map +0 -1
- package/build/types/components/src/radio/index.d.ts.map +0 -1
- package/build/types/components/src/radioGroup/RadioGroup.d.ts.map +0 -1
- package/build/types/components/src/radioGroup/index.d.ts.map +0 -1
- package/build/types/components/src/radioOption/RadioOption.d.ts.map +0 -1
- package/build/types/components/src/radioOption/index.d.ts.map +0 -1
- package/build/types/components/src/section/Section.d.ts.map +0 -1
- package/build/types/components/src/section/index.d.ts.map +0 -1
- package/build/types/components/src/segmentedControl/SegmentedControl.d.ts.map +0 -1
- package/build/types/components/src/segmentedControl/index.d.ts.map +0 -1
- package/build/types/components/src/select/Select.d.ts.map +0 -1
- package/build/types/components/src/select/Select.messages.d.ts.map +0 -1
- package/build/types/components/src/select/index.d.ts.map +0 -1
- package/build/types/components/src/select/option/Option.d.ts.map +0 -1
- package/build/types/components/src/select/option/index.d.ts.map +0 -1
- package/build/types/components/src/select/searchBox/SearchBox.d.ts.map +0 -1
- package/build/types/components/src/select/searchBox/index.d.ts.map +0 -1
- package/build/types/components/src/sentimentSurface/SentimentSurface.d.ts.map +0 -1
- package/build/types/components/src/sentimentSurface/SentimentSurface.types.d.ts.map +0 -1
- package/build/types/components/src/sentimentSurface/index.d.ts.map +0 -1
- package/build/types/components/src/slidingPanel/SlidingPanel.d.ts.map +0 -1
- package/build/types/components/src/slidingPanel/index.d.ts.map +0 -1
- package/build/types/components/src/snackbar/Snackbar.d.ts.map +0 -1
- package/build/types/components/src/snackbar/SnackbarContext.d.ts.map +0 -1
- package/build/types/components/src/snackbar/SnackbarProvider.d.ts.map +0 -1
- package/build/types/components/src/snackbar/index.d.ts.map +0 -1
- package/build/types/components/src/snackbar/useSnackbar.d.ts.map +0 -1
- package/build/types/components/src/statusIcon/StatusIcon.d.ts.map +0 -1
- package/build/types/components/src/statusIcon/StatusIcon.messages.d.ts.map +0 -1
- package/build/types/components/src/statusIcon/index.d.ts.map +0 -1
- package/build/types/components/src/stepper/Stepper.d.ts.map +0 -1
- package/build/types/components/src/stepper/deviceDetection.d.ts.map +0 -1
- package/build/types/components/src/sticky/Sticky.d.ts.map +0 -1
- package/build/types/components/src/sticky/index.d.ts.map +0 -1
- package/build/types/components/src/summary/Summary.d.ts.map +0 -1
- package/build/types/components/src/summary/Summary.messages.d.ts.map +0 -1
- package/build/types/components/src/summary/index.d.ts.map +0 -1
- package/build/types/components/src/switch/Switch.d.ts.map +0 -1
- package/build/types/components/src/switch/index.d.ts.map +0 -1
- package/build/types/components/src/switchOption/SwitchOption.d.ts.map +0 -1
- package/build/types/components/src/switchOption/index.d.ts.map +0 -1
- package/build/types/components/src/table/Table.d.ts.map +0 -1
- package/build/types/components/src/table/Table.messages.d.ts.map +0 -1
- package/build/types/components/src/table/TableCell.d.ts.map +0 -1
- package/build/types/components/src/table/TableHeader.d.ts.map +0 -1
- package/build/types/components/src/table/TableRow.d.ts.map +0 -1
- package/build/types/components/src/table/TableStatusText.d.ts.map +0 -1
- package/build/types/components/src/table/index.d.ts.map +0 -1
- package/build/types/components/src/tabs/Tab.d.ts.map +0 -1
- package/build/types/components/src/tabs/TabList.d.ts.map +0 -1
- package/build/types/components/src/tabs/TabPanel.d.ts.map +0 -1
- package/build/types/components/src/tabs/Tabs.d.ts.map +0 -1
- package/build/types/components/src/tabs/index.d.ts.map +0 -1
- package/build/types/components/src/tabs/utils.d.ts.map +0 -1
- package/build/types/components/src/test-utils/fake-data.d.ts.map +0 -1
- package/build/types/components/src/test-utils/index.d.ts.map +0 -1
- package/build/types/components/src/test-utils/jest.setup.d.ts.map +0 -1
- package/build/types/components/src/test-utils/style-mock.d.ts.map +0 -1
- package/build/types/components/src/test-utils/wait.d.ts.map +0 -1
- package/build/types/components/src/test-utils/window-mock.d.ts.map +0 -1
- package/build/types/components/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +0 -1
- package/build/types/components/src/textareaWithDisplayFormat/index.d.ts.map +0 -1
- package/build/types/components/src/tile/Tile.d.ts.map +0 -1
- package/build/types/components/src/tile/index.d.ts.map +0 -1
- package/build/types/components/src/title/Title.d.ts.map +0 -1
- package/build/types/components/src/title/index.d.ts.map +0 -1
- package/build/types/components/src/tooltip/Tooltip.d.ts.map +0 -1
- package/build/types/components/src/tooltip/index.d.ts.map +0 -1
- package/build/types/components/src/typeahead/Typeahead.d.ts.map +0 -1
- package/build/types/components/src/typeahead/Typeahead.messages.d.ts.map +0 -1
- package/build/types/components/src/typeahead/index.d.ts.map +0 -1
- package/build/types/components/src/typeahead/typeaheadInput/TypeaheadInput.d.ts.map +0 -1
- package/build/types/components/src/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +0 -1
- package/build/types/components/src/typeahead/util/highlight.d.ts.map +0 -1
- package/build/types/components/src/upload/Upload.d.ts.map +0 -1
- package/build/types/components/src/upload/Upload.messages.d.ts.map +0 -1
- package/build/types/components/src/upload/index.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/completeStep/completeStep.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/completeStep/index.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/index.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/processingStep/index.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/processingStep/processingStep.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/uploadImageStep/index.d.ts.map +0 -1
- package/build/types/components/src/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/asyncFileRead/asyncFileRead.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/asyncFileRead/index.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/getFileType/getFileType.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/getFileType/index.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/index.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/isSizeValid/index.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/isSizeValid/isSizeValid.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/isTypeValid/index.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/isTypeValid/isTypeValid.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/postData/index.d.ts.map +0 -1
- package/build/types/components/src/upload/utils/postData/postData.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/UploadInput.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/UploadInput.messages.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/index.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/types.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadButton/UploadButton.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadButton/UploadButton.messages.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadButton/defaults.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadItem/UploadItem.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadItem/UploadItem.messages.d.ts.map +0 -1
- package/build/types/components/src/uploadInput/uploadItem/UploadItemLink.d.ts.map +0 -1
- package/build/types/components/src/utilities/cssValueWithUnit.d.ts.map +0 -1
- package/build/types/components/src/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +0 -1
- package/build/types/components/src/utilities/deprecatedProperty/index.d.ts.map +0 -1
- package/build/types/components/src/utilities/index.d.ts.map +0 -1
- package/build/types/components/src/utilities/logActionRequired.d.ts.map +0 -1
- package/build/types/components/src/utils.d.ts.map +0 -1
- package/build/types/components/src/withDisplayFormat/WithDisplayFormat.d.ts.map +0 -1
- package/build/types/components/src/withDisplayFormat/index.d.ts.map +0 -1
- package/build/types/components/src/withId/index.d.ts.map +0 -1
- package/build/types/components/src/withId/story/source.d.ts.map +0 -1
- package/build/types/components/src/withId/withId.d.ts.map +0 -1
- package/build/types/components/src/withNextPortal/withNextPortal.d.ts.map +0 -1
- package/build/types/components-theming/src/ThemeProvider.d.ts +0 -7
- package/build/types/components-theming/src/ThemeProvider.d.ts.map +0 -1
- package/build/types/components-theming/src/ThemeProviderContext.d.ts +0 -8
- package/build/types/components-theming/src/ThemeProviderContext.d.ts.map +0 -1
- package/build/types/components-theming/src/ThemedChildren.d.ts +0 -8
- package/build/types/components-theming/src/ThemedChildren.d.ts.map +0 -1
- package/build/types/components-theming/src/const.d.ts +0 -35
- package/build/types/components-theming/src/const.d.ts.map +0 -1
- package/build/types/components-theming/src/helpers.d.ts +0 -11
- package/build/types/components-theming/src/helpers.d.ts.map +0 -1
- package/build/types/components-theming/src/index.d.ts +0 -5
- package/build/types/components-theming/src/index.d.ts.map +0 -1
- package/build/types/components-theming/src/useTheme.d.ts +0 -17
- package/build/types/components-theming/src/useTheme.d.ts.map +0 -1
- /package/build/types/{components/src/accordion → accordion}/Accordion.d.ts +0 -0
- /package/build/types/{components/src/accordion → accordion}/AccordionItem/AccordionItem.d.ts +0 -0
- /package/build/types/{components/src/accordion → accordion}/AccordionItem/index.d.ts +0 -0
- /package/build/types/{components/src/accordion → accordion}/index.d.ts +0 -0
- /package/build/types/{components/src/actionButton → actionButton}/ActionButton.d.ts +0 -0
- /package/build/types/{components/src/actionButton → actionButton}/index.d.ts +0 -0
- /package/build/types/{components/src/actionOption → actionOption}/ActionOption.d.ts +0 -0
- /package/build/types/{components/src/actionOption → actionOption}/index.d.ts +0 -0
- /package/build/types/{components/src/alert → alert}/Alert.d.ts +0 -0
- /package/build/types/{components/src/alert → alert}/index.d.ts +0 -0
- /package/build/types/{components/src/alert → alert}/inlineMarkdown/InlineMarkdown.d.ts +0 -0
- /package/build/types/{components/src/alert → alert}/inlineMarkdown/index.d.ts +0 -0
- /package/build/types/{components/src/avatar → avatar}/Avatar.d.ts +0 -0
- /package/build/types/{components/src/avatar → avatar}/avatarTypes.d.ts +0 -0
- /package/build/types/{components/src/avatar → avatar}/index.d.ts +0 -0
- /package/build/types/{components/src/avatarLayout → avatarLayout}/AvatarLayout.d.ts +0 -0
- /package/build/types/{components/src/avatarLayout → avatarLayout}/index.d.ts +0 -0
- /package/build/types/{components/src/avatarView → avatarView}/AvatarView.d.ts +0 -0
- /package/build/types/{components/src/avatarView → avatarView}/Dot.d.ts +0 -0
- /package/build/types/{components/src/avatarView → avatarView}/index.d.ts +0 -0
- /package/build/types/{components/src/avatarWrapper → avatarWrapper}/AvatarWrapper.d.ts +0 -0
- /package/build/types/{components/src/avatarWrapper → avatarWrapper}/index.d.ts +0 -0
- /package/build/types/{components/src/badge → badge}/Badge.d.ts +0 -0
- /package/build/types/{components/src/badge → badge}/BadgeAssets.d.ts +0 -0
- /package/build/types/{components/src/badge → badge}/index.d.ts +0 -0
- /package/build/types/{components/src/body → body}/Body.d.ts +0 -0
- /package/build/types/{components/src/body → body}/index.d.ts +0 -0
- /package/build/types/{components/src/button → button}/Button.d.ts +0 -0
- /package/build/types/{components/src/button → button}/Button.resolver.d.ts +0 -0
- /package/build/types/{components/src/button → button}/Button.types.d.ts +0 -0
- /package/build/types/{components/src/button → button}/LegacyButton.d.ts +0 -0
- /package/build/types/{components/src/button → button}/_stories/helpers.d.ts +0 -0
- /package/build/types/{components/src/button → button}/classMap.d.ts +0 -0
- /package/build/types/{components/src/button → button}/index.d.ts +0 -0
- /package/build/types/{components/src/button → button}/legacyUtils/index.d.ts +0 -0
- /package/build/types/{components/src/button → button}/legacyUtils/legacyUtils.d.ts +0 -0
- /package/build/types/{components/src/card → card}/Card.d.ts +0 -0
- /package/build/types/{components/src/card → card}/index.d.ts +0 -0
- /package/build/types/{components/src/carousel → carousel}/Carousel.d.ts +0 -0
- /package/build/types/{components/src/carousel → carousel}/index.d.ts +0 -0
- /package/build/types/{components/src/checkbox → checkbox}/Checkbox.d.ts +0 -0
- /package/build/types/{components/src/checkbox → checkbox}/index.d.ts +0 -0
- /package/build/types/{components/src/checkboxButton → checkboxButton}/CheckboxButton.d.ts +0 -0
- /package/build/types/{components/src/checkboxButton → checkboxButton}/index.d.ts +0 -0
- /package/build/types/{components/src/checkboxOption → checkboxOption}/CheckboxOption.d.ts +0 -0
- /package/build/types/{components/src/checkboxOption → checkboxOption}/index.d.ts +0 -0
- /package/build/types/{components/src/chevron → chevron}/Chevron.d.ts +0 -0
- /package/build/types/{components/src/chevron → chevron}/index.d.ts +0 -0
- /package/build/types/{components/src/chips → chips}/Chip.d.ts +0 -0
- /package/build/types/{components/src/chips → chips}/Chips.d.ts +0 -0
- /package/build/types/{components/src/chips → chips}/Chips.messages.d.ts +0 -0
- /package/build/types/{components/src/chips → chips}/index.d.ts +0 -0
- /package/build/types/{components/src/circularButton → circularButton}/CircularButton.d.ts +0 -0
- /package/build/types/{components/src/circularButton → circularButton}/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/DOMOperations/DOMOperations.d.ts +0 -0
- /package/build/types/{components/src/common → common}/DOMOperations/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/Option/Option.d.ts +0 -0
- /package/build/types/{components/src/common → common}/Option/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/RadioButton/RadioButton.d.ts +0 -0
- /package/build/types/{components/src/common → common}/RadioButton/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/bottomSheet/BottomSheet.d.ts +0 -0
- /package/build/types/{components/src/common → common}/bottomSheet/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/card/Card.d.ts +0 -0
- /package/build/types/{components/src/common → common}/card/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/circle/Circle.d.ts +0 -0
- /package/build/types/{components/src/common → common}/circle/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/closeButton/CloseButton.d.ts +0 -0
- /package/build/types/{components/src/common → common}/closeButton/CloseButton.messages.d.ts +0 -0
- /package/build/types/{components/src/common → common}/closeButton/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/colors.d.ts +0 -0
- /package/build/types/{components/src/common → common}/commonProps.d.ts +0 -0
- /package/build/types/{components/src/common → common}/constants.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/getDateView/getDateView.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/getDayNames/getDayNames.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/getFormatForLocale/getFormatForLocale.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/getMonthNames/getMonthNames.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/isDateValid/isDateValid.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/isMonthAndYearFormat/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/isWithinRange/isWithinRange.d.ts +0 -0
- /package/build/types/{components/src/common → common}/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +0 -0
- /package/build/types/{components/src/common → common}/deviceDetection/deviceDetection.d.ts +0 -0
- /package/build/types/{components/src/common → common}/deviceDetection/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/direction.d.ts +0 -0
- /package/build/types/{components/src/common → common}/domHelpers/documentIosClick.d.ts +0 -0
- /package/build/types/{components/src/common → common}/domHelpers/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/fakeEvents.d.ts +0 -0
- /package/build/types/{components/src/common → common}/fileType.d.ts +0 -0
- /package/build/types/{components/src/common → common}/flowHeader/FlowHeader.d.ts +0 -0
- /package/build/types/{components/src/common → common}/flowHeader/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/focusBoundary/FocusBoundary.d.ts +0 -0
- /package/build/types/{components/src/common → common}/focusBoundary/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/historyNavigator/historyNavigator.d.ts +0 -0
- /package/build/types/{components/src/common → common}/historyNavigator/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useConditionalListener/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useConditionalListener/useConditionalListener.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useDirection/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useDirection/useDirection.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useEffectEvent.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useHasIntersected/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useHasIntersected/useHasIntersected.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useLayout/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useLayout/useLayout.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useMedia.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useResizeObserver.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useScreenSize.d.ts +0 -0
- /package/build/types/{components/src/common → common}/hooks/useVirtualKeyboard.d.ts +0 -0
- /package/build/types/{components/src/common → common}/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/initials.d.ts +0 -0
- /package/build/types/{components/src/common → common}/locale/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/panel/Panel.d.ts +0 -0
- /package/build/types/{components/src/common → common}/panel/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts +0 -0
- /package/build/types/{components/src/common → common}/preventScroll/PreventScroll.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/breakpoint.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/control.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/dateMode.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/layouts.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/markdownNodeType.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/monthFormat.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/position.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/profileType.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/scroll.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/sentiment.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/size.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/status.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/type.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/typography.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/variant.d.ts +0 -0
- /package/build/types/{components/src/common → common}/propsValues/width.d.ts +0 -0
- /package/build/types/{components/src/common → common}/responsivePanel/ResponsivePanel.d.ts +0 -0
- /package/build/types/{components/src/common → common}/responsivePanel/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/formatWithPattern/formatWithPattern.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/formatWithPattern/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getCountOfSymbolsInSelection/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getCursorPositionAfterKeystroke/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getDistanceToSymbol/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/getSymbolsInPatternWithPosition/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/unformatWithPattern/index.d.ts +0 -0
- /package/build/types/{components/src/common → common}/textFormat/unformatWithPattern/unformatWithPattern.d.ts +0 -0
- /package/build/types/{components/src/common → common}/theme.d.ts +0 -0
- /package/build/types/{components/src/criticalBanner → criticalBanner}/CriticalCommsBanner.d.ts +0 -0
- /package/build/types/{components/src/criticalBanner → criticalBanner}/index.d.ts +0 -0
- /package/build/types/{components/src/dateInput → dateInput}/DateInput.d.ts +0 -0
- /package/build/types/{components/src/dateInput → dateInput}/DateInput.messages.d.ts +0 -0
- /package/build/types/{components/src/dateInput → dateInput}/index.d.ts +0 -0
- /package/build/types/{components/src/dateInput → dateInput}/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +0 -0
- /package/build/types/{components/src/dateInput → dateInput}/utils/convertToLocalMidnight/index.d.ts +0 -0
- /package/build/types/{components/src/dateInput → dateInput}/utils/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/DateLookup.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/DateLookup.messages.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dateHeader/DateHeader.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dateHeader/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dateTrigger/DateTrigger.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dateTrigger/DateTrigger.messages.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dateTrigger/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dayCalendar/DayCalendar.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dayCalendar/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dayCalendar/table/DayCalendarTable.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/dayCalendar/table/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/getFocusableTime/getFocusableTime.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/getStartOfDay/getStartOfDay.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/getStartOfDay/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/monthCalendar/MonthCalendar.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/monthCalendar/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/monthCalendar/table/MonthCalendarTable.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/monthCalendar/table/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/tableLink/TableLink.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/tableLink/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/yearCalendar/YearCalendar.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/yearCalendar/index.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/yearCalendar/table/YearCalendarTable.d.ts +0 -0
- /package/build/types/{components/src/dateLookup → dateLookup}/yearCalendar/table/index.d.ts +0 -0
- /package/build/types/{components/src/decision → decision}/Decision.d.ts +0 -0
- /package/build/types/{components/src/decision → decision}/index.d.ts +0 -0
- /package/build/types/{components/src/definitionList → definitionList}/DefinitionList.d.ts +0 -0
- /package/build/types/{components/src/definitionList → definitionList}/index.d.ts +0 -0
- /package/build/types/{components/src/dimmer → dimmer}/Dimmer.d.ts +0 -0
- /package/build/types/{components/src/dimmer → dimmer}/dimmerManager/DimmerManager.d.ts +0 -0
- /package/build/types/{components/src/dimmer → dimmer}/dimmerManager/index.d.ts +0 -0
- /package/build/types/{components/src/dimmer → dimmer}/index.d.ts +0 -0
- /package/build/types/{components/src/display → display}/Display.d.ts +0 -0
- /package/build/types/{components/src/display → display}/index.d.ts +0 -0
- /package/build/types/{components/src/divider → divider}/Divider.d.ts +0 -0
- /package/build/types/{components/src/divider → divider}/index.d.ts +0 -0
- /package/build/types/{components/src/drawer → drawer}/Drawer.d.ts +0 -0
- /package/build/types/{components/src/drawer → drawer}/index.d.ts +0 -0
- /package/build/types/{components/src/dropFade → dropFade}/DropFade.d.ts +0 -0
- /package/build/types/{components/src/dropFade → dropFade}/index.d.ts +0 -0
- /package/build/types/{components/src/emphasis → emphasis}/Emphasis.d.ts +0 -0
- /package/build/types/{components/src/emphasis → emphasis}/EmphasisHtmlTransformer.d.ts +0 -0
- /package/build/types/{components/src/emphasis → emphasis}/index.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/ExpressiveMoneyInput.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/ExpressiveMoneyInput.messages.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/amountInput/AmountInput.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/amountInput/utils.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/animatedNumber/AnimatedNumber.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/chevron/Chevron.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/currencySelector/CurrencySelector.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/hooks/useFocus.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/hooks/useInputStyle.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/hooks/useSelectionRange.d.ts +0 -0
- /package/build/types/{components/src/expressiveMoneyInput → expressiveMoneyInput}/index.d.ts +0 -0
- /package/build/types/{components/src/field → field}/Field.d.ts +0 -0
- /package/build/types/{components/src/flowNavigation → flowNavigation}/FlowNavigation.d.ts +0 -0
- /package/build/types/{components/src/flowNavigation → flowNavigation}/FlowNavigation.messages.d.ts +0 -0
- /package/build/types/{components/src/flowNavigation → flowNavigation}/animatedLabel/AnimatedLabel.d.ts +0 -0
- /package/build/types/{components/src/flowNavigation → flowNavigation}/animatedLabel/index.d.ts +0 -0
- /package/build/types/{components/src/header → header}/Header.d.ts +0 -0
- /package/build/types/{components/src/header → header}/index.d.ts +0 -0
- /package/build/types/{components/src/i18n → i18n}/commonMessages/Button.messages.d.ts +0 -0
- /package/build/types/{components/src/i18n → i18n}/index.d.ts +0 -0
- /package/build/types/{components/src/iconButton → iconButton}/IconButton.d.ts +0 -0
- /package/build/types/{components/src/iconButton → iconButton}/index.d.ts +0 -0
- /package/build/types/{components/src/image → image}/Image.d.ts +0 -0
- /package/build/types/{components/src/image → image}/index.d.ts +0 -0
- /package/build/types/{components/src/index.d.ts → index.d.ts} +0 -0
- /package/build/types/{components/src/info → info}/Info.d.ts +0 -0
- /package/build/types/{components/src/info → info}/Info.messages.d.ts +0 -0
- /package/build/types/{components/src/info → info}/index.d.ts +0 -0
- /package/build/types/{components/src/info → info}/infoPresentations.d.ts +0 -0
- /package/build/types/{components/src/inlineAlert → inlineAlert}/InlineAlert.d.ts +0 -0
- /package/build/types/{components/src/inlineAlert → inlineAlert}/index.d.ts +0 -0
- /package/build/types/{components/src/inputWithDisplayFormat → inputWithDisplayFormat}/InputWithDisplayFormat.d.ts +0 -0
- /package/build/types/{components/src/inputWithDisplayFormat → inputWithDisplayFormat}/index.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/Input.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/InputGroup.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/SearchInput.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/SelectInput.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/SelectInput.messages.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/TextArea.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/_BottomSheet.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/_ButtonInput.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/_Popover.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/_common.d.ts +0 -0
- /package/build/types/{components/src/inputs → inputs}/contexts.d.ts +0 -0
- /package/build/types/{components/src/instructionsList → instructionsList}/InstructionsList.d.ts +0 -0
- /package/build/types/{components/src/instructionsList → instructionsList}/index.d.ts +0 -0
- /package/build/types/{components/src/label → label}/Label.d.ts +0 -0
- /package/build/types/{components/src/label → label}/Label.messages.d.ts +0 -0
- /package/build/types/{components/src/label → label}/index.d.ts +0 -0
- /package/build/types/{components/src/legacylistItem → legacylistItem}/LegacyListItem.d.ts +0 -0
- /package/build/types/{components/src/legacylistItem → legacylistItem}/index.d.ts +0 -0
- /package/build/types/{components/src/link → link}/Link.d.ts +0 -0
- /package/build/types/{components/src/link → link}/Link.messages.d.ts +0 -0
- /package/build/types/{components/src/link → link}/index.d.ts +0 -0
- /package/build/types/{components/src/list → list}/List.d.ts +0 -0
- /package/build/types/{components/src/list → list}/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/AdditionalInfo/ListItemAdditionalInfo.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/AdditionalInfo/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/AvatarLayout/ListItemAvatarLayout.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/AvatarLayout/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/AvatarView/ListItemAvatarView.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/AvatarView/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Button/ListItemButton.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Button/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Checkbox/ListItemCheckbox.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Checkbox/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/IconButton/ListItemIconButton.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/IconButton/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Image/ListItemImage.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Image/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/ListItem.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/ListItemContext.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Navigation/ListItemNavigation.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Navigation/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Prompt/ListItemPrompt.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Prompt/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Radio/ListItemRadio.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Radio/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Switch/ListItemSwitch.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/Switch/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/_stories/helpers.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/_stories/subcomponents.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/_stories/variants/helpers.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/constants.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/index.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/test-utils.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/useListItemControl.d.ts +0 -0
- /package/build/types/{components/src/listItem → listItem}/useListItemMedia.d.ts +0 -0
- /package/build/types/{components/src/loader → loader}/Loader.d.ts +0 -0
- /package/build/types/{components/src/loader → loader}/index.d.ts +0 -0
- /package/build/types/{components/src/logo → logo}/Logo.d.ts +0 -0
- /package/build/types/{components/src/logo → logo}/index.d.ts +0 -0
- /package/build/types/{components/src/logo → logo}/logo-assets.d.ts +0 -0
- /package/build/types/{components/src/markdown → markdown}/Markdown.d.ts +0 -0
- /package/build/types/{components/src/markdown → markdown}/index.d.ts +0 -0
- /package/build/types/{components/src/mocks.d.ts → mocks.d.ts} +0 -0
- /package/build/types/{components/src/modal → modal}/Modal.d.ts +0 -0
- /package/build/types/{components/src/modal → modal}/index.d.ts +0 -0
- /package/build/types/{components/src/money → money}/Money.d.ts +0 -0
- /package/build/types/{components/src/money → money}/index.d.ts +0 -0
- /package/build/types/{components/src/moneyInput → moneyInput}/MoneyInput.d.ts +0 -0
- /package/build/types/{components/src/moneyInput → moneyInput}/MoneyInput.messages.d.ts +0 -0
- /package/build/types/{components/src/moneyInput → moneyInput}/currencyFormatting.d.ts +0 -0
- /package/build/types/{components/src/moneyInput → moneyInput}/index.d.ts +0 -0
- /package/build/types/{components/src/navigationOption → navigationOption}/NavigationOption.d.ts +0 -0
- /package/build/types/{components/src/navigationOption → navigationOption}/index.d.ts +0 -0
- /package/build/types/{components/src/navigationOptionsList → navigationOptionsList}/NavigationOptionsList.d.ts +0 -0
- /package/build/types/{components/src/navigationOptionsList → navigationOptionsList}/index.d.ts +0 -0
- /package/build/types/{components/src/nudge → nudge}/Nudge.d.ts +0 -0
- /package/build/types/{components/src/nudge → nudge}/index.d.ts +0 -0
- /package/build/types/{components/src/overlayHeader → overlayHeader}/OverlayHeader.d.ts +0 -0
- /package/build/types/{components/src/overlayHeader → overlayHeader}/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/PhoneNumberInput.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/PhoneNumberInput.messages.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/data/countries.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/cleanNumber/cleanNumber.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/cleanNumber/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/excludeCountries/excludeCountries.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/excludeCountries/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/explodeNumberModel/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/findCountryByCode/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/findCountryByPrefix/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/groupCountriesByPrefix/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/isStringNumeric/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/isStringNumeric/isStringNumeric.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/isValidPhoneNumber/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/longestMatchingPrefix/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/setDefaultPrefix/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/sortArrayByProperty/index.d.ts +0 -0
- /package/build/types/{components/src/phoneNumberInput → phoneNumberInput}/utils/sortArrayByProperty/sortArrayByProperty.d.ts +0 -0
- /package/build/types/{components/src/popover → popover}/Popover.d.ts +0 -0
- /package/build/types/{components/src/popover → popover}/index.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/PrimitiveAnchor/PrimitiveAnchor.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/PrimitiveAnchor/PrimitiveAnchor.types.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/PrimitiveAnchor/index.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/PrimitiveButton/PrimitiveButton.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/PrimitiveButton/PrimitiveButton.types.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/PrimitiveButton/index.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/index.d.ts +0 -0
- /package/build/types/{components/src/primitives → primitives}/types.d.ts +0 -0
- /package/build/types/{components/src/processIndicator → processIndicator}/ProcessIndicator.d.ts +0 -0
- /package/build/types/{components/src/processIndicator → processIndicator}/index.d.ts +0 -0
- /package/build/types/{components/src/progress → progress}/Progress.d.ts +0 -0
- /package/build/types/{components/src/progress → progress}/index.d.ts +0 -0
- /package/build/types/{components/src/progressBar → progressBar}/ProgressBar.d.ts +0 -0
- /package/build/types/{components/src/progressBar → progressBar}/index.d.ts +0 -0
- /package/build/types/{components/src/promoCard → promoCard}/PromoCard.d.ts +0 -0
- /package/build/types/{components/src/promoCard → promoCard}/PromoCardContext.d.ts +0 -0
- /package/build/types/{components/src/promoCard → promoCard}/PromoCardGroup.d.ts +0 -0
- /package/build/types/{components/src/promoCard → promoCard}/PromoCardIndicator.d.ts +0 -0
- /package/build/types/{components/src/promoCard → promoCard}/index.d.ts +0 -0
- /package/build/types/{components/src/prompt → prompt}/InlinePrompt/InlinePrompt.d.ts +0 -0
- /package/build/types/{components/src/prompt → prompt}/InlinePrompt/index.d.ts +0 -0
- /package/build/types/{components/src/prompt → prompt}/index.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/Provider.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/direction/DirectionProvider.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/direction/index.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/index.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/language/LanguageProvider.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/language/index.d.ts +0 -0
- /package/build/types/{components/src/provider → provider}/overlay/OverlayIdProvider.d.ts +0 -0
- /package/build/types/{components/src/radio → radio}/Radio.d.ts +0 -0
- /package/build/types/{components/src/radio → radio}/index.d.ts +0 -0
- /package/build/types/{components/src/radioGroup → radioGroup}/RadioGroup.d.ts +0 -0
- /package/build/types/{components/src/radioGroup → radioGroup}/index.d.ts +0 -0
- /package/build/types/{components/src/radioOption → radioOption}/RadioOption.d.ts +0 -0
- /package/build/types/{components/src/radioOption → radioOption}/index.d.ts +0 -0
- /package/build/types/{components/src/section → section}/Section.d.ts +0 -0
- /package/build/types/{components/src/section → section}/index.d.ts +0 -0
- /package/build/types/{components/src/segmentedControl → segmentedControl}/SegmentedControl.d.ts +0 -0
- /package/build/types/{components/src/segmentedControl → segmentedControl}/index.d.ts +0 -0
- /package/build/types/{components/src/select → select}/Select.d.ts +0 -0
- /package/build/types/{components/src/select → select}/Select.messages.d.ts +0 -0
- /package/build/types/{components/src/select → select}/index.d.ts +0 -0
- /package/build/types/{components/src/select → select}/option/Option.d.ts +0 -0
- /package/build/types/{components/src/select → select}/option/index.d.ts +0 -0
- /package/build/types/{components/src/select → select}/searchBox/SearchBox.d.ts +0 -0
- /package/build/types/{components/src/select → select}/searchBox/index.d.ts +0 -0
- /package/build/types/{components/src/sentimentSurface → sentimentSurface}/SentimentSurface.d.ts +0 -0
- /package/build/types/{components/src/sentimentSurface → sentimentSurface}/SentimentSurface.types.d.ts +0 -0
- /package/build/types/{components/src/sentimentSurface → sentimentSurface}/index.d.ts +0 -0
- /package/build/types/{components/src/slidingPanel → slidingPanel}/SlidingPanel.d.ts +0 -0
- /package/build/types/{components/src/slidingPanel → slidingPanel}/index.d.ts +0 -0
- /package/build/types/{components/src/snackbar → snackbar}/Snackbar.d.ts +0 -0
- /package/build/types/{components/src/snackbar → snackbar}/SnackbarContext.d.ts +0 -0
- /package/build/types/{components/src/snackbar → snackbar}/SnackbarProvider.d.ts +0 -0
- /package/build/types/{components/src/snackbar → snackbar}/index.d.ts +0 -0
- /package/build/types/{components/src/snackbar → snackbar}/useSnackbar.d.ts +0 -0
- /package/build/types/{components/src/statusIcon → statusIcon}/StatusIcon.d.ts +0 -0
- /package/build/types/{components/src/statusIcon → statusIcon}/StatusIcon.messages.d.ts +0 -0
- /package/build/types/{components/src/statusIcon → statusIcon}/index.d.ts +0 -0
- /package/build/types/{components/src/stepper → stepper}/Stepper.d.ts +0 -0
- /package/build/types/{components/src/stepper → stepper}/deviceDetection.d.ts +0 -0
- /package/build/types/{components/src/sticky → sticky}/Sticky.d.ts +0 -0
- /package/build/types/{components/src/sticky → sticky}/index.d.ts +0 -0
- /package/build/types/{components/src/summary → summary}/Summary.d.ts +0 -0
- /package/build/types/{components/src/summary → summary}/Summary.messages.d.ts +0 -0
- /package/build/types/{components/src/summary → summary}/index.d.ts +0 -0
- /package/build/types/{components/src/switch → switch}/Switch.d.ts +0 -0
- /package/build/types/{components/src/switch → switch}/index.d.ts +0 -0
- /package/build/types/{components/src/switchOption → switchOption}/SwitchOption.d.ts +0 -0
- /package/build/types/{components/src/switchOption → switchOption}/index.d.ts +0 -0
- /package/build/types/{components/src/table → table}/Table.d.ts +0 -0
- /package/build/types/{components/src/table → table}/Table.messages.d.ts +0 -0
- /package/build/types/{components/src/table → table}/TableCell.d.ts +0 -0
- /package/build/types/{components/src/table → table}/TableHeader.d.ts +0 -0
- /package/build/types/{components/src/table → table}/TableRow.d.ts +0 -0
- /package/build/types/{components/src/table → table}/TableStatusText.d.ts +0 -0
- /package/build/types/{components/src/table → table}/index.d.ts +0 -0
- /package/build/types/{components/src/tabs → tabs}/Tab.d.ts +0 -0
- /package/build/types/{components/src/tabs → tabs}/TabList.d.ts +0 -0
- /package/build/types/{components/src/tabs → tabs}/TabPanel.d.ts +0 -0
- /package/build/types/{components/src/tabs → tabs}/Tabs.d.ts +0 -0
- /package/build/types/{components/src/tabs → tabs}/index.d.ts +0 -0
- /package/build/types/{components/src/tabs → tabs}/utils.d.ts +0 -0
- /package/build/types/{components/src/test-utils → test-utils}/fake-data.d.ts +0 -0
- /package/build/types/{components/src/test-utils → test-utils}/index.d.ts +0 -0
- /package/build/types/{components/src/test-utils → test-utils}/jest.setup.d.ts +0 -0
- /package/build/types/{components/src/test-utils → test-utils}/style-mock.d.ts +0 -0
- /package/build/types/{components/src/test-utils → test-utils}/wait.d.ts +0 -0
- /package/build/types/{components/src/test-utils → test-utils}/window-mock.d.ts +0 -0
- /package/build/types/{components/src/textareaWithDisplayFormat → textareaWithDisplayFormat}/TextareaWithDisplayFormat.d.ts +0 -0
- /package/build/types/{components/src/textareaWithDisplayFormat → textareaWithDisplayFormat}/index.d.ts +0 -0
- /package/build/types/{components/src/tile → tile}/Tile.d.ts +0 -0
- /package/build/types/{components/src/tile → tile}/index.d.ts +0 -0
- /package/build/types/{components/src/title → title}/Title.d.ts +0 -0
- /package/build/types/{components/src/title → title}/index.d.ts +0 -0
- /package/build/types/{components/src/tooltip → tooltip}/Tooltip.d.ts +0 -0
- /package/build/types/{components/src/tooltip → tooltip}/index.d.ts +0 -0
- /package/build/types/{components/src/typeahead → typeahead}/Typeahead.d.ts +0 -0
- /package/build/types/{components/src/typeahead → typeahead}/Typeahead.messages.d.ts +0 -0
- /package/build/types/{components/src/typeahead → typeahead}/index.d.ts +0 -0
- /package/build/types/{components/src/typeahead → typeahead}/typeaheadInput/TypeaheadInput.d.ts +0 -0
- /package/build/types/{components/src/typeahead → typeahead}/typeaheadOption/TypeaheadOption.d.ts +0 -0
- /package/build/types/{components/src/typeahead → typeahead}/util/highlight.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/Upload.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/Upload.messages.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/completeStep/completeStep.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/completeStep/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/processingStep/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/processingStep/processingStep.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/uploadImageStep/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/steps/uploadImageStep/uploadImageStep.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/asyncFileRead/asyncFileRead.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/asyncFileRead/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/getFileType/getFileType.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/getFileType/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/isSizeValid/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/isSizeValid/isSizeValid.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/isTypeValid/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/isTypeValid/isTypeValid.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/postData/index.d.ts +0 -0
- /package/build/types/{components/src/upload → upload}/utils/postData/postData.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/UploadInput.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/UploadInput.messages.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/index.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/types.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadButton/UploadButton.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadButton/UploadButton.messages.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadButton/defaults.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadButton/getAllowedFileTypes.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadItem/UploadItem.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadItem/UploadItem.messages.d.ts +0 -0
- /package/build/types/{components/src/uploadInput → uploadInput}/uploadItem/UploadItemLink.d.ts +0 -0
- /package/build/types/{components/src/utilities → utilities}/cssValueWithUnit.d.ts +0 -0
- /package/build/types/{components/src/utilities → utilities}/deprecatedProperty/deprecatedProperty.d.ts +0 -0
- /package/build/types/{components/src/utilities → utilities}/deprecatedProperty/index.d.ts +0 -0
- /package/build/types/{components/src/utilities → utilities}/index.d.ts +0 -0
- /package/build/types/{components/src/utilities → utilities}/logActionRequired.d.ts +0 -0
- /package/build/types/{components/src/utils.d.ts → utils.d.ts} +0 -0
- /package/build/types/{components/src/withDisplayFormat → withDisplayFormat}/WithDisplayFormat.d.ts +0 -0
- /package/build/types/{components/src/withDisplayFormat → withDisplayFormat}/index.d.ts +0 -0
- /package/build/types/{components/src/withId → withId}/index.d.ts +0 -0
- /package/build/types/{components/src/withId → withId}/story/source.d.ts +0 -0
- /package/build/types/{components/src/withId → withId}/withId.d.ts +0 -0
- /package/build/types/{components/src/withNextPortal → withNextPortal}/withNextPortal.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountInput.mjs","sources":["../../../src/expressiveMoneyInput/amountInput/AmountInput.tsx"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\nimport { clsx } from 'clsx';\nimport { AnimatePresence } from 'framer-motion';\nimport { type ChangeEvent, type KeyboardEvent, useEffect, useMemo, useRef, useState } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\nimport { AnimatedNumber } from '../animatedNumber/AnimatedNumber';\nimport { useFocus } from '../hooks/useFocus';\nimport { useInputStyle } from '../hooks/useInputStyle';\nimport {\n getDecimalCount,\n getDecimalSeparator,\n getEnteredDecimalsCount,\n getFormattedString,\n getGroupSeparator,\n getUnformattedNumber,\n isAllowedInputKey,\n isInputPossiblyOverflowing,\n} from './utils';\n\ntype Props = {\n id: string;\n describedById?: string;\n amount?: number | null;\n currency: string;\n autoFocus?: boolean;\n onChange: (amount: number | null) => void;\n onFocusChange?: (focused: boolean) => void;\n} & Pick<ExpressiveMoneyInputProps, 'loading'>;\n\nexport const AmountInput = ({\n id,\n describedById,\n amount,\n currency,\n autoFocus,\n onChange,\n onFocusChange,\n loading,\n}: Props) => {\n const intl = useIntl();\n const { focus, setFocus, visualFocus, setVisualFocus } = useFocus();\n\n const [value, setValue] = useState<string>(\n amount\n ? getFormattedString({\n value: amount,\n currency,\n locale: intl.locale,\n })\n : '',\n );\n const numericValue = useMemo(() => {\n return getUnformattedNumber({\n value,\n currency,\n locale: intl.locale,\n });\n }, [value, currency, intl.locale]);\n\n const valueWithFullDecimals = useMemo(() => {\n return getFormattedString({\n value: numericValue ?? 0,\n currency,\n locale: intl.locale,\n alwaysShowDecimals: true,\n });\n }, [numericValue, currency, intl.locale]);\n\n const ref = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (autoFocus) {\n ref.current?.focus();\n }\n }, []);\n\n const placeholder = getPlaceholder(currency, intl.locale);\n const groupSeparator = getGroupSeparator(currency, intl.locale);\n const decimalSeparator = getDecimalSeparator(currency, intl.locale);\n const maxDecimalCount = getDecimalCount(currency, intl.locale);\n\n const decimalPart = getDecimalPart(value, decimalSeparator);\n const decimalMode = decimalSeparator && value.includes(decimalSeparator);\n\n useEffect(() => {\n if (!focus) {\n setValue(\n amount\n ? getFormattedString({\n value: amount,\n currency,\n locale: intl.locale,\n })\n : '',\n );\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [amount]);\n\n useEffect(() => {\n onFocusChange?.(visualFocus);\n }, [visualFocus]);\n\n const shouldReformatAfterUserInput = (newValue: string) => {\n // don't reformat if formatting would wipe out user's input\n if (reformatValue(newValue) === '') {\n return false;\n }\n\n const endsWithDecimalSeparator = decimalSeparator && newValue.endsWith(decimalSeparator);\n const endsWithGroupSeparator = groupSeparator && newValue.endsWith(groupSeparator);\n\n // if the user has entered a seperator to the end, formatting would delete it\n if (endsWithDecimalSeparator || endsWithGroupSeparator) {\n return false;\n }\n\n const containsDecimalSeparator = decimalSeparator && newValue.includes(decimalSeparator);\n\n if (containsDecimalSeparator) {\n const enteredDecimalsCount = getEnteredDecimalsCount(newValue, decimalSeparator);\n // don't reformat until user has entered all the allowed decimals\n // for example, we don't want 1.1 to be reformatted to 1.10 immediately\n if (enteredDecimalsCount < maxDecimalCount) {\n return false;\n }\n }\n\n return true;\n };\n\n const reformatValue = (newValue: string) => {\n const unformattedValue = getUnformattedNumber({\n value: newValue,\n currency,\n locale: intl.locale,\n });\n const formattedValue = unformattedValue\n ? getFormattedString({\n value: unformattedValue,\n currency,\n locale: intl.locale,\n })\n : '';\n return formattedValue;\n };\n\n const handleChange = (newValue: string) => {\n const oldCursorPosition = ref.current?.selectionStart ?? 0;\n\n const newFormattedString = shouldReformatAfterUserInput(newValue)\n ? reformatValue(newValue)\n : newValue;\n setValue(newFormattedString);\n\n const newNumber = getUnformattedNumber({\n value: newFormattedString,\n currency,\n locale: intl.locale,\n });\n\n if (newNumber !== numericValue) {\n if (numericValue || newNumber) {\n onChange(newNumber);\n }\n }\n\n const newCursorPosition = oldCursorPosition + (newFormattedString.length - newValue.length);\n requestAnimationFrame(() => {\n ref?.current?.setSelectionRange(newCursorPosition, newCursorPosition);\n });\n };\n\n const handlePaste = (e: React.ClipboardEvent<HTMLInputElement>) => {\n e.preventDefault();\n\n const clipboardData = e.clipboardData?.getData('text/plain');\n if (!clipboardData) {\n return;\n }\n\n // need to sanitise the pasted value otherwise other validation logic will ignore the input entirely\n const sanitisedValue = reformatValue(clipboardData);\n\n handleChange(sanitisedValue);\n };\n\n const handleBlur = () => {\n setFocus(false);\n setValue(reformatValue(value));\n };\n\n const handleBackspace = (e: KeyboardEvent<HTMLInputElement>) => {\n const input = e.target as HTMLInputElement;\n // using the updated selection range after the backspace key has been processed, instead of the current selection range in state\n const { value: currentValue, selectionStart, selectionEnd } = input;\n\n if (selectionStart === selectionEnd && selectionStart && selectionStart > 0) {\n const charBeforeCursor = currentValue[selectionStart - 1];\n\n // if the user deletes a thousands separator, remove the digit before it as well\n if (charBeforeCursor === groupSeparator) {\n e.preventDefault();\n const beforeCursor = currentValue.slice(0, selectionStart - 2);\n const afterCursor = currentValue.slice(selectionStart);\n const newValue = `${beforeCursor}${afterCursor}`;\n input.setSelectionRange(beforeCursor.length, beforeCursor.length);\n handleChange(newValue);\n }\n }\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n setFocus(true);\n if (!isAllowedInputKey(e)) {\n e.preventDefault();\n }\n\n if (e.key === 'Backspace') {\n handleBackspace(e);\n }\n };\n\n const isAllowedInput = (e: ChangeEvent<HTMLInputElement>) => {\n const hasMultipleDecimalSeparators =\n decimalSeparator && e.target.value.split(decimalSeparator).length > 2;\n if (hasMultipleDecimalSeparators) {\n return false;\n }\n\n const newNumericValue = getUnformattedNumber({\n value: e.target.value,\n currency,\n locale: intl.locale,\n });\n const maxLength = Number.MAX_SAFE_INTEGER.toString().length;\n if (String(newNumericValue).length > maxLength) {\n return false;\n }\n\n return true;\n };\n\n const addonContent = useMemo((): string | null | undefined => {\n // because we're using a separate \"addon\" element for the placeholder decimals, there is a possibility that the input itself will become scrollable\n // and the decimals will appear on top of the input. Safest thing to do is to just hide the addon if there is not enough room\n if (isInputPossiblyOverflowing({ ref, value })) {\n return null;\n }\n if (!decimalSeparator || !value) {\n return null;\n }\n\n // if the user has typed a decimal separator, show the full decimal part as a placeholder\n // this returns a string even if there is no content, typing should replace the placeholder immediately without animation\n // otherwise there is an ugly animation when going from 1.23 to 1.2 due to AnimatePresence\n if (focus && decimalMode) {\n // reuse getDecimalPart\n const fullDecimalPart = getDecimalPart(valueWithFullDecimals, decimalSeparator);\n // show only the characters that are not already displayed by the input\n return fullDecimalPart?.slice(decimalPart?.length);\n }\n\n // in unfocused state, always show the full decimal part unless the user has already entered decimals\n if (!focus && !decimalMode) {\n const [_, decimalPlaceholder] = placeholder.split(decimalSeparator);\n return decimalSeparator + decimalPlaceholder;\n }\n\n return null;\n }, [\n decimalMode,\n decimalPart?.length,\n decimalSeparator,\n focus,\n placeholder,\n value,\n valueWithFullDecimals,\n ]);\n\n const style = useInputStyle({\n // whenever decimals are shown, we need to account for the full decimal part for the font size calculation\n value: addonContent ? valueWithFullDecimals : value,\n focus: visualFocus,\n inputElement: ref.current,\n loading,\n });\n\n return (\n <div className=\"wds-amount-input-container\">\n <div\n className={clsx('wds-amount-input-input-container', 'np-text-display-large')}\n style={style}\n >\n <input\n ref={ref}\n className=\"wds-amount-input-input\"\n id={id}\n autoComplete=\"off\"\n inputMode=\"decimal\"\n value={value}\n type=\"text\"\n placeholder={placeholder}\n aria-describedby={describedById}\n /* without this, the input tries to keep an aspect ratio and doesn't respect CSS width rules */\n size={1}\n onChange={(e) => {\n if (isAllowedInput(e)) {\n handleChange(e.target.value);\n }\n }}\n onBlurCapture={() => handleBlur()}\n onPaste={(e) => handlePaste(e)}\n onFocus={() => {\n setFocus(true);\n }}\n onBlur={() => {\n setTimeout(() => setVisualFocus(false), 30);\n }}\n onKeyDown={(e) => handleKeyDown(e)}\n />\n <AnimatePresence initial={false}>\n {addonContent !== null && (\n <AnimatedNumber\n className={clsx(\n 'wds-amount-input-placeholder',\n visualFocus && 'wds-amount-input-placeholder-focus',\n )}\n onClick={() => ref.current?.focus()}\n >\n {addonContent}\n </AnimatedNumber>\n )}\n </AnimatePresence>\n </div>\n </div>\n );\n};\n\nconst getPlaceholder = (currency: string, locale: string) => {\n return formatAmount(0, currency, locale, { alwaysShowDecimals: true });\n};\n\nconst getDecimalPart = (value: string, decimalSeparator: string | null) => {\n if (!value || !decimalSeparator) {\n return undefined;\n }\n\n const [_, decimalPart] = value.split(decimalSeparator);\n return decimalPart ?? undefined;\n};\n"],"names":["AmountInput","id","describedById","amount","currency","autoFocus","onChange","onFocusChange","loading","intl","useIntl","focus","setFocus","visualFocus","setVisualFocus","useFocus","value","setValue","useState","getFormattedString","locale","numericValue","useMemo","getUnformattedNumber","valueWithFullDecimals","alwaysShowDecimals","ref","useRef","useEffect","current","placeholder","getPlaceholder","groupSeparator","getGroupSeparator","decimalSeparator","getDecimalSeparator","maxDecimalCount","getDecimalCount","decimalPart","getDecimalPart","decimalMode","includes","shouldReformatAfterUserInput","newValue","reformatValue","endsWithDecimalSeparator","endsWith","endsWithGroupSeparator","containsDecimalSeparator","enteredDecimalsCount","getEnteredDecimalsCount","unformattedValue","formattedValue","handleChange","oldCursorPosition","selectionStart","newFormattedString","newNumber","newCursorPosition","length","requestAnimationFrame","setSelectionRange","handlePaste","e","preventDefault","clipboardData","getData","sanitisedValue","handleBlur","handleBackspace","input","target","currentValue","selectionEnd","charBeforeCursor","beforeCursor","slice","afterCursor","handleKeyDown","isAllowedInputKey","key","isAllowedInput","hasMultipleDecimalSeparators","split","newNumericValue","maxLength","Number","MAX_SAFE_INTEGER","toString","String","addonContent","isInputPossiblyOverflowing","fullDecimalPart","_","decimalPlaceholder","style","useInputStyle","inputElement","_jsx","className","children","_jsxs","clsx","autoComplete","inputMode","type","size","onBlurCapture","onPaste","onFocus","onBlur","setTimeout","onKeyDown","AnimatePresence","initial","AnimatedNumber","onClick","formatAmount","undefined"],"mappings":";;;;;;;;;;;AA+BO,MAAMA,WAAW,GAAGA,CAAC;EAC1BC,EAAE;EACFC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,QAAQ;EACRC,aAAa;AACbC,EAAAA;AACK,CAAC,KAAK;AACX,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;EACtB,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,WAAW;AAAEC,IAAAA;GAAgB,GAAGC,QAAQ,EAAE;EAEnE,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAChCf,MAAM,GACFgB,kBAAkB,CAAC;AACjBH,IAAAA,KAAK,EAAEb,MAAM;IACbC,QAAQ;IACRgB,MAAM,EAAEX,IAAI,CAACW;GACd,CAAC,GACF,EACN,CAAC;AACD,EAAA,MAAMC,YAAY,GAAGC,OAAO,CAAC,MAAM;AACjC,IAAA,OAAOC,oBAAo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,gBAA+B,KAAK;AACzE,EAAA,IAAI,CAAClB,KAAK,IAAI,CAACkB,gBAAgB,EAAE;AAC/B,IAAA,OAAOoF,SAAS;AAClB,EAAA;EAEA,MAAM,CAACzB,CAAC,EAAEvD,WAAW,CAAC,GAAGtB,KAAK,CAACmE,KAAK,CAACjD,gBAAgB,CAAC;EACtD,OAAOI,WAAW,IAAIgF,SAAS;AACjC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"AmountInput.mjs","sources":["../../../src/expressiveMoneyInput/amountInput/AmountInput.tsx"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\nimport { clsx } from 'clsx';\nimport { AnimatePresence } from 'framer-motion';\nimport { type ChangeEvent, type KeyboardEvent, useEffect, useMemo, useRef, useState } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\nimport { AnimatedNumber } from '../animatedNumber/AnimatedNumber';\nimport { useFocus } from '../hooks/useFocus';\nimport { useInputStyle } from '../hooks/useInputStyle';\nimport {\n getDecimalCount,\n getDecimalSeparator,\n getEnteredDecimalsCount,\n getFormattedString,\n getGroupSeparator,\n getUnformattedNumber,\n isAllowedInputKey,\n isInputPossiblyOverflowing,\n} from './utils';\n\ntype Props = {\n id: string;\n describedById?: string;\n amount?: number | null;\n currency: string;\n autoFocus?: boolean;\n onChange: (amount: number | null) => void;\n onFocusChange?: (focused: boolean) => void;\n} & Pick<ExpressiveMoneyInputProps, 'loading'>;\n\nexport const AmountInput = ({\n id,\n describedById,\n amount,\n currency,\n autoFocus,\n onChange,\n onFocusChange,\n loading,\n}: Props) => {\n const intl = useIntl();\n const { focus, setFocus, visualFocus, setVisualFocus } = useFocus();\n\n const [value, setValue] = useState<string>(\n amount\n ? getFormattedString({\n value: amount,\n currency,\n locale: intl.locale,\n })\n : '',\n );\n const numericValue = useMemo(() => {\n return getUnformattedNumber({\n value,\n currency,\n locale: intl.locale,\n });\n }, [value, currency, intl.locale]);\n\n const valueWithFullDecimals = useMemo(() => {\n return getFormattedString({\n value: numericValue ?? 0,\n currency,\n locale: intl.locale,\n alwaysShowDecimals: true,\n });\n }, [numericValue, currency, intl.locale]);\n\n const ref = useRef<HTMLInputElement>(null);\n\n useEffect(() => {\n if (autoFocus) {\n ref.current?.focus();\n }\n }, []);\n\n const placeholder = getPlaceholder(currency, intl.locale);\n const groupSeparator = getGroupSeparator(currency, intl.locale);\n const decimalSeparator = getDecimalSeparator(currency, intl.locale);\n const maxDecimalCount = getDecimalCount(currency, intl.locale);\n\n const decimalPart = getDecimalPart(value, decimalSeparator);\n const decimalMode = decimalSeparator && value.includes(decimalSeparator);\n\n useEffect(() => {\n if (!focus) {\n setValue(\n amount\n ? getFormattedString({\n value: amount,\n currency,\n locale: intl.locale,\n })\n : '',\n );\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [amount]);\n\n useEffect(() => {\n onFocusChange?.(visualFocus);\n }, [visualFocus]);\n\n const shouldReformatAfterUserInput = (newValue: string) => {\n // don't reformat if formatting would wipe out user's input\n if (reformatValue(newValue) === '') {\n return false;\n }\n\n const endsWithDecimalSeparator = decimalSeparator && newValue.endsWith(decimalSeparator);\n const endsWithGroupSeparator = groupSeparator && newValue.endsWith(groupSeparator);\n\n // if the user has entered a seperator to the end, formatting would delete it\n if (endsWithDecimalSeparator || endsWithGroupSeparator) {\n return false;\n }\n\n const containsDecimalSeparator = decimalSeparator && newValue.includes(decimalSeparator);\n\n if (containsDecimalSeparator) {\n const enteredDecimalsCount = getEnteredDecimalsCount(newValue, decimalSeparator);\n // don't reformat until user has entered all the allowed decimals\n // for example, we don't want 1.1 to be reformatted to 1.10 immediately\n if (enteredDecimalsCount < maxDecimalCount) {\n return false;\n }\n }\n\n return true;\n };\n\n const reformatValue = (newValue: string) => {\n const unformattedValue = getUnformattedNumber({\n value: newValue,\n currency,\n locale: intl.locale,\n });\n const formattedValue = unformattedValue\n ? getFormattedString({\n value: unformattedValue,\n currency,\n locale: intl.locale,\n })\n : '';\n return formattedValue;\n };\n\n const handleChange = (newValue: string) => {\n const oldCursorPosition = ref.current?.selectionStart ?? 0;\n\n const newFormattedString = shouldReformatAfterUserInput(newValue)\n ? reformatValue(newValue)\n : newValue;\n setValue(newFormattedString);\n\n const newNumber = getUnformattedNumber({\n value: newFormattedString,\n currency,\n locale: intl.locale,\n });\n\n if (newNumber !== numericValue) {\n if (numericValue || newNumber) {\n onChange(newNumber);\n }\n }\n\n const newCursorPosition = oldCursorPosition + (newFormattedString.length - newValue.length);\n requestAnimationFrame(() => {\n ref?.current?.setSelectionRange(newCursorPosition, newCursorPosition);\n });\n };\n\n const handlePaste = (e: React.ClipboardEvent<HTMLInputElement>) => {\n e.preventDefault();\n\n const clipboardData = e.clipboardData?.getData('text/plain');\n if (!clipboardData) {\n return;\n }\n\n // need to sanitise the pasted value otherwise other validation logic will ignore the input entirely\n const sanitisedValue = reformatValue(clipboardData);\n\n handleChange(sanitisedValue);\n };\n\n const handleBlur = () => {\n setFocus(false);\n setValue(reformatValue(value));\n };\n\n const handleBackspace = (e: KeyboardEvent<HTMLInputElement>) => {\n const input = e.target as HTMLInputElement;\n // using the updated selection range after the backspace key has been processed, instead of the current selection range in state\n const { value: currentValue, selectionStart, selectionEnd } = input;\n\n if (selectionStart === selectionEnd && selectionStart && selectionStart > 0) {\n const charBeforeCursor = currentValue[selectionStart - 1];\n\n // if the user deletes a thousands separator, remove the digit before it as well\n if (charBeforeCursor === groupSeparator) {\n e.preventDefault();\n const beforeCursor = currentValue.slice(0, selectionStart - 2);\n const afterCursor = currentValue.slice(selectionStart);\n const newValue = `${beforeCursor}${afterCursor}`;\n input.setSelectionRange(beforeCursor.length, beforeCursor.length);\n handleChange(newValue);\n }\n }\n };\n\n const handleKeyDown = (e: KeyboardEvent<HTMLInputElement>) => {\n setFocus(true);\n if (!isAllowedInputKey(e)) {\n e.preventDefault();\n }\n\n if (e.key === 'Backspace') {\n handleBackspace(e);\n }\n };\n\n const isAllowedInput = (e: ChangeEvent<HTMLInputElement>) => {\n const hasMultipleDecimalSeparators =\n decimalSeparator && e.target.value.split(decimalSeparator).length > 2;\n if (hasMultipleDecimalSeparators) {\n return false;\n }\n\n const newNumericValue = getUnformattedNumber({\n value: e.target.value,\n currency,\n locale: intl.locale,\n });\n const maxLength = Number.MAX_SAFE_INTEGER.toString().length;\n if (String(newNumericValue).length > maxLength) {\n return false;\n }\n\n return true;\n };\n\n const addonContent = useMemo((): string | null | undefined => {\n // because we're using a separate \"addon\" element for the placeholder decimals, there is a possibility that the input itself will become scrollable\n // and the decimals will appear on top of the input. Safest thing to do is to just hide the addon if there is not enough room\n if (isInputPossiblyOverflowing({ ref, value })) {\n return null;\n }\n if (!decimalSeparator || !value) {\n return null;\n }\n\n // if the user has typed a decimal separator, show the full decimal part as a placeholder\n // this returns a string even if there is no content, typing should replace the placeholder immediately without animation\n // otherwise there is an ugly animation when going from 1.23 to 1.2 due to AnimatePresence\n if (focus && decimalMode) {\n // reuse getDecimalPart\n const fullDecimalPart = getDecimalPart(valueWithFullDecimals, decimalSeparator);\n // show only the characters that are not already displayed by the input\n return fullDecimalPart?.slice(decimalPart?.length);\n }\n\n // in unfocused state, always show the full decimal part unless the user has already entered decimals\n if (!focus && !decimalMode) {\n const [_, decimalPlaceholder] = placeholder.split(decimalSeparator);\n return decimalSeparator + decimalPlaceholder;\n }\n\n return null;\n }, [\n decimalMode,\n decimalPart?.length,\n decimalSeparator,\n focus,\n placeholder,\n value,\n valueWithFullDecimals,\n ]);\n\n const style = useInputStyle({\n // whenever decimals are shown, we need to account for the full decimal part for the font size calculation\n value: addonContent ? valueWithFullDecimals : value,\n focus: visualFocus,\n inputElement: ref.current,\n loading,\n });\n\n return (\n <div className=\"wds-amount-input-container\">\n <div\n className={clsx('wds-amount-input-input-container', 'np-text-display-large')}\n style={style}\n >\n <input\n ref={ref}\n className=\"wds-amount-input-input\"\n id={id}\n autoComplete=\"off\"\n inputMode=\"decimal\"\n value={value}\n type=\"text\"\n placeholder={placeholder}\n aria-describedby={describedById}\n /* without this, the input tries to keep an aspect ratio and doesn't respect CSS width rules */\n size={1}\n onChange={(e) => {\n if (isAllowedInput(e)) {\n handleChange(e.target.value);\n }\n }}\n onBlurCapture={() => handleBlur()}\n onPaste={(e) => handlePaste(e)}\n onFocus={() => {\n setFocus(true);\n }}\n onBlur={() => {\n setTimeout(() => setVisualFocus(false), 30);\n }}\n onKeyDown={(e) => handleKeyDown(e)}\n />\n <AnimatePresence initial={false}>\n {addonContent !== null && (\n <AnimatedNumber\n className={clsx(\n 'wds-amount-input-placeholder',\n visualFocus && 'wds-amount-input-placeholder-focus',\n )}\n onClick={() => ref.current?.focus()}\n >\n {addonContent}\n </AnimatedNumber>\n )}\n </AnimatePresence>\n </div>\n </div>\n );\n};\n\nconst getPlaceholder = (currency: string, locale: string) => {\n return formatAmount(0, currency, locale, { alwaysShowDecimals: true });\n};\n\nconst getDecimalPart = (value: string, decimalSeparator: string | null) => {\n if (!value || !decimalSeparator) {\n return undefined;\n }\n\n const [_, decimalPart] = value.split(decimalSeparator);\n return decimalPart ?? undefined;\n};\n"],"names":["AmountInput","id","describedById","amount","currency","autoFocus","onChange","onFocusChange","loading","intl","useIntl","focus","setFocus","visualFocus","setVisualFocus","useFocus","value","setValue","useState","getFormattedString","locale","numericValue","useMemo","getUnformattedNumber","valueWithFullDecimals","alwaysShowDecimals","ref","useRef","useEffect","current","placeholder","getPlaceholder","groupSeparator","getGroupSeparator","decimalSeparator","getDecimalSeparator","maxDecimalCount","getDecimalCount","decimalPart","getDecimalPart","decimalMode","includes","shouldReformatAfterUserInput","newValue","reformatValue","endsWithDecimalSeparator","endsWith","endsWithGroupSeparator","containsDecimalSeparator","enteredDecimalsCount","getEnteredDecimalsCount","unformattedValue","formattedValue","handleChange","oldCursorPosition","selectionStart","newFormattedString","newNumber","newCursorPosition","length","requestAnimationFrame","setSelectionRange","handlePaste","e","preventDefault","clipboardData","getData","sanitisedValue","handleBlur","handleBackspace","input","target","currentValue","selectionEnd","charBeforeCursor","beforeCursor","slice","afterCursor","handleKeyDown","isAllowedInputKey","key","isAllowedInput","hasMultipleDecimalSeparators","split","newNumericValue","maxLength","Number","MAX_SAFE_INTEGER","toString","String","addonContent","isInputPossiblyOverflowing","fullDecimalPart","_","decimalPlaceholder","style","useInputStyle","inputElement","_jsx","className","children","_jsxs","clsx","autoComplete","inputMode","type","size","onBlurCapture","onPaste","onFocus","onBlur","setTimeout","onKeyDown","AnimatePresence","initial","AnimatedNumber","onClick","formatAmount","undefined"],"mappings":";;;;;;;;;;;AA+BO,MAAMA,WAAW,GAAGA,CAAC;EAC1BC,EAAE;EACFC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,QAAQ;EACRC,aAAa;AACbC,EAAAA;AAAO,CACD,KAAI;AACV,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;EACtB,MAAM;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,WAAW;AAAEC,IAAAA;GAAgB,GAAGC,QAAQ,EAAE;EAEnE,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAChCf,MAAM,GACFgB,kBAAkB,CAAC;AACjBH,IAAAA,KAAK,EAAEb,MAAM;IACbC,QAAQ;IACRgB,MAAM,EAAEX,IAAI,CAACW;GACd,CAAC,GACF,EAAE,CACP;AACD,EAAA,MAAMC,YAAY,GAAGC,OAAO,CAAC,MAAK;AAChC,IAAA,OAAOC,oBAAoB,CAAC;MAC1BP,KAAK;MACLZ,QAAQ;MACRgB,MAAM,EAAEX,IAAI,CAACW;AACd,KAAA,CAAC;EACJ,CAAC,EAAE,CAACJ,KAAK,EAAEZ,QAAQ,EAAEK,IAAI,CAACW,MAAM,CAAC,CAAC;AAElC,EAAA,MAAMI,qBAAqB,GAAGF,OAAO,CAAC,MAAK;AACzC,IAAA,OAAOH,kBAAkB,CAAC;MACxBH,KAAK,EAAEK,YAAY,IAAI,CAAC;MACxBjB,QAAQ;MACRg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attedValue) {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
32
|
// parseFloat can't handle thousands separators
|
|
34
33
|
const withoutGroupSeparator = groupSeparator ? formattedValue.replace(/ /gu, '').replace(new RegExp(`\\${groupSeparator}`, 'g'), '') : formattedValue;
|
|
35
|
-
|
|
36
34
|
// parseFloat can only handle . as decimal separator
|
|
37
35
|
const withNormalisedDecimalSeparator = decimalSeparator ? withoutGroupSeparator.replace(decimalSeparator, '.') : withoutGroupSeparator;
|
|
38
36
|
const parsedValue = Number.parseFloat(withNormalisedDecimalSeparator);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/expressiveMoneyInput/amountInput/utils.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\nimport type { KeyboardEvent } from 'react';\n\nexport const getDecimalSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(1.1, currency, locale).replace(/\\p{Number}/gu, '');\n};\n\nexport const getGroupSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(10000000, currency, locale).replace(/\\p{Number}/gu, '')[0];\n};\n\nexport const getDecimalCount = (currency: string, locale: string): number => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!decimalSeparator) {\n return 0;\n }\n const parts = formatAmount(1.1, currency, locale).split(decimalSeparator);\n return parts.length === 2 ? parts[1].length : 0;\n};\n\nexport const getEnteredDecimalsCount = (value: string, decimalSeparator: string) => {\n return value.split(decimalSeparator)[1]?.length ?? 0;\n};\n\nexport const getUnformattedNumber = ({\n value: formattedValue,\n currency,\n locale,\n}: {\n value: string;\n currency: string;\n locale: string;\n}): number | null => {\n const groupSeparator = getGroupSeparator(currency, locale);\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!formattedValue) {\n return null;\n }\n\n // parseFloat can't handle thousands separators\n const withoutGroupSeparator = groupSeparator\n ? formattedValue.replace(/ /gu, '').replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n : formattedValue;\n\n // parseFloat can only handle . as decimal separator\n const withNormalisedDecimalSeparator = decimalSeparator\n ? withoutGroupSeparator.replace(decimalSeparator, '.')\n : withoutGroupSeparator;\n\n const parsedValue = Number.parseFloat(withNormalisedDecimalSeparator);\n return parsedValue;\n};\n\nexport const getFormattedString = ({\n value: unformattedValue,\n currency,\n locale,\n alwaysShowDecimals = false,\n}: {\n value: number;\n currency: string;\n locale: string;\n alwaysShowDecimals?: boolean;\n}): string => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n // formatAmount rounds extra decimals, so 1.999 will become 2. Instead we will manually strip extra decimals so that it becomes 1.99 after formatting\n const decimalCount = getDecimalCount(currency, locale);\n const unformattedString = unformattedValue.toString();\n\n const [integerPart, decimalPart] = decimalSeparator\n ? unformattedString.split(decimalSeparator)\n : [unformattedString, undefined];\n\n const formattedDecimalPart = decimalPart ? decimalPart.slice(0, decimalCount) : '';\n\n const sanitisedUnformattedValue = Number.parseFloat(`${integerPart}.${formattedDecimalPart}`);\n\n return formatAmount(sanitisedUnformattedValue, currency, locale, {\n alwaysShowDecimals,\n });\n};\n\nexport const isInputPossiblyOverflowing = ({\n ref,\n value,\n}: {\n ref: React.RefObject<HTMLInputElement>;\n value: string;\n}) => {\n const textLength = value.length;\n const inputWidth = ref.current?.clientWidth;\n if (!inputWidth || !textLength) {\n return;\n }\n\n const maxCharactersWithoutOverflow = Math.floor(inputWidth / 19);\n return textLength > maxCharactersWithoutOverflow;\n};\n\nconst allowedInputKeys = new Set([\n 'Backspace',\n 'Delete',\n ',',\n '.',\n 'ArrowLeft',\n 'ArrowRight',\n 'Enter',\n 'Tab',\n]);\n\nexport const isAllowedInputKey = (e: KeyboardEvent<HTMLInputElement>) => {\n const { metaKey, key, ctrlKey } = e;\n const isNumberKey = !Number.isNaN(Number.parseInt(key, 10));\n\n return isNumberKey || metaKey || ctrlKey || allowedInputKeys.has(key);\n};\n"],"names":["getDecimalSeparator","currency","locale","formatAmount","replace","getGroupSeparator","getDecimalCount","decimalSeparator","parts","split","length","getEnteredDecimalsCount","value","getUnformattedNumber","formattedValue","groupSeparator","withoutGroupSeparator","RegExp","withNormalisedDecimalSeparator","parsedValue","Number","parseFloat","getFormattedString","unformattedValue","alwaysShowDecimals","decimalCount","unformattedString","toString","integerPart","decimalPart","undefined","formattedDecimalPart","slice","sanitisedUnformattedValue","isInputPossiblyOverflowing","ref","textLength","inputWidth","current","clientWidth","maxCharactersWithoutOverflow","Math","floor","allowedInputKeys","Set","isAllowedInputKey","e","metaKey","key","ctrlKey","isNumberKey","isNaN","parseInt","has"],"mappings":";;;;MAGaA,mBAAmB,GAAGA,CAACC,QAAgB,EAAEC,MAAc,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/expressiveMoneyInput/amountInput/utils.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\nimport type { KeyboardEvent } from 'react';\n\nexport const getDecimalSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(1.1, currency, locale).replace(/\\p{Number}/gu, '');\n};\n\nexport const getGroupSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(10000000, currency, locale).replace(/\\p{Number}/gu, '')[0];\n};\n\nexport const getDecimalCount = (currency: string, locale: string): number => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!decimalSeparator) {\n return 0;\n }\n const parts = formatAmount(1.1, currency, locale).split(decimalSeparator);\n return parts.length === 2 ? parts[1].length : 0;\n};\n\nexport const getEnteredDecimalsCount = (value: string, decimalSeparator: string) => {\n return value.split(decimalSeparator)[1]?.length ?? 0;\n};\n\nexport const getUnformattedNumber = ({\n value: formattedValue,\n currency,\n locale,\n}: {\n value: string;\n currency: string;\n locale: string;\n}): number | null => {\n const groupSeparator = getGroupSeparator(currency, locale);\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!formattedValue) {\n return null;\n }\n\n // parseFloat can't handle thousands separators\n const withoutGroupSeparator = groupSeparator\n ? formattedValue.replace(/ /gu, '').replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n : formattedValue;\n\n // parseFloat can only handle . as decimal separator\n const withNormalisedDecimalSeparator = decimalSeparator\n ? withoutGroupSeparator.replace(decimalSeparator, '.')\n : withoutGroupSeparator;\n\n const parsedValue = Number.parseFloat(withNormalisedDecimalSeparator);\n return parsedValue;\n};\n\nexport const getFormattedString = ({\n value: unformattedValue,\n currency,\n locale,\n alwaysShowDecimals = false,\n}: {\n value: number;\n currency: string;\n locale: string;\n alwaysShowDecimals?: boolean;\n}): string => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n // formatAmount rounds extra decimals, so 1.999 will become 2. Instead we will manually strip extra decimals so that it becomes 1.99 after formatting\n const decimalCount = getDecimalCount(currency, locale);\n const unformattedString = unformattedValue.toString();\n\n const [integerPart, decimalPart] = decimalSeparator\n ? unformattedString.split(decimalSeparator)\n : [unformattedString, undefined];\n\n const formattedDecimalPart = decimalPart ? decimalPart.slice(0, decimalCount) : '';\n\n const sanitisedUnformattedValue = Number.parseFloat(`${integerPart}.${formattedDecimalPart}`);\n\n return formatAmount(sanitisedUnformattedValue, currency, locale, {\n alwaysShowDecimals,\n });\n};\n\nexport const isInputPossiblyOverflowing = ({\n ref,\n value,\n}: {\n ref: React.RefObject<HTMLInputElement>;\n value: string;\n}) => {\n const textLength = value.length;\n const inputWidth = ref.current?.clientWidth;\n if (!inputWidth || !textLength) {\n return;\n }\n\n const maxCharactersWithoutOverflow = Math.floor(inputWidth / 19);\n return textLength > maxCharactersWithoutOverflow;\n};\n\nconst allowedInputKeys = new Set([\n 'Backspace',\n 'Delete',\n ',',\n '.',\n 'ArrowLeft',\n 'ArrowRight',\n 'Enter',\n 'Tab',\n]);\n\nexport const isAllowedInputKey = (e: KeyboardEvent<HTMLInputElement>) => {\n const { metaKey, key, ctrlKey } = e;\n const isNumberKey = !Number.isNaN(Number.parseInt(key, 10));\n\n return isNumberKey || metaKey || ctrlKey || allowedInputKeys.has(key);\n};\n"],"names":["getDecimalSeparator","currency","locale","formatAmount","replace","getGroupSeparator","getDecimalCount","decimalSeparator","parts","split","length","getEnteredDecimalsCount","value","getUnformattedNumber","formattedValue","groupSeparator","withoutGroupSeparator","RegExp","withNormalisedDecimalSeparator","parsedValue","Number","parseFloat","getFormattedString","unformattedValue","alwaysShowDecimals","decimalCount","unformattedString","toString","integerPart","decimalPart","undefined","formattedDecimalPart","slice","sanitisedUnformattedValue","isInputPossiblyOverflowing","ref","textLength","inputWidth","current","clientWidth","maxCharactersWithoutOverflow","Math","floor","allowedInputKeys","Set","isAllowedInputKey","e","metaKey","key","ctrlKey","isNumberKey","isNaN","parseInt","has"],"mappings":";;;;MAGaA,mBAAmB,GAAGA,CAACC,QAAgB,EAAEC,MAAc,KAAmB;AACrF,EAAA,OAAOC,uBAAY,CAAC,GAAG,EAAEF,QAAQ,EAAEC,MAAM,CAAC,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;AACxE;MAEaC,iBAAiB,GAAGA,CAACJ,QAAgB,EAAEC,MAAc,KAAmB;AACnF,EAAA,OAAOC,uBAAY,CAAC,QAAQ,EAAEF,QAAQ,EAAEC,MAAM,CAAC,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAChF;MAEaE,eAAe,GAAGA,CAACL,QAAgB,EAAEC,MAAc,KAAY;AAC1E,EAAA,MAAMK,gBAAgB,GAAGP,mBAAmB,CAACC,QAAQ,EAAEC,MAAM,CAAC;EAC9D,IAAI,CAACK,gBAAgB,EAAE;AACrB,IAAA,OAAO,CAAC;AACV,EAAA;AACA,EAAA,MAAMC,KAAK,GAAGL,uBAAY,CAAC,GAAG,EAAEF,QAAQ,EAAEC,MAAM,CAAC,CAACO,KAAK,CAACF,gBAAgB,CAAC;AACzE,EAAA,OAAOC,KAAK,CAACE,MAAM,KAAK,CAAC,GAAGF,KAAK,CAAC,CAAC,CAAC,CAACE,MAAM,GAAG,CAAC;AACjD;MAEaC,uBAAuB,GAAGA,CAACC,KAAa,EAAEL,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,WAAW,GAAG,CAAC9B,MAAM,CAAC+B,KAAK,CAAC/B,MAAM,CAACgC,QAAQ,CAACJ,GAAG,EAAE,EAAE,CAAC,CAAC;EAE3D,OAAOE,WAAW,IAAIH,OAAO,IAAIE,OAAO,IAAIN,gBAAgB,CAACU,GAAG,CAACL,GAAG,CAAC;AACvE;;;;;;;;;;;"}
|
|
@@ -27,10 +27,8 @@ const getUnformattedNumber = ({
|
|
|
27
27
|
if (!formattedValue) {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
30
|
// parseFloat can't handle thousands separators
|
|
32
31
|
const withoutGroupSeparator = groupSeparator ? formattedValue.replace(/ /gu, '').replace(new RegExp(`\\${groupSeparator}`, 'g'), '') : formattedValue;
|
|
33
|
-
|
|
34
32
|
// parseFloat can only handle . as decimal separator
|
|
35
33
|
const withNormalisedDecimalSeparator = decimalSeparator ? withoutGroupSeparator.replace(decimalSeparator, '.') : withoutGroupSeparator;
|
|
36
34
|
const parsedValue = Number.parseFloat(withNormalisedDecimalSeparator);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","sources":["../../../src/expressiveMoneyInput/amountInput/utils.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\nimport type { KeyboardEvent } from 'react';\n\nexport const getDecimalSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(1.1, currency, locale).replace(/\\p{Number}/gu, '');\n};\n\nexport const getGroupSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(10000000, currency, locale).replace(/\\p{Number}/gu, '')[0];\n};\n\nexport const getDecimalCount = (currency: string, locale: string): number => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!decimalSeparator) {\n return 0;\n }\n const parts = formatAmount(1.1, currency, locale).split(decimalSeparator);\n return parts.length === 2 ? parts[1].length : 0;\n};\n\nexport const getEnteredDecimalsCount = (value: string, decimalSeparator: string) => {\n return value.split(decimalSeparator)[1]?.length ?? 0;\n};\n\nexport const getUnformattedNumber = ({\n value: formattedValue,\n currency,\n locale,\n}: {\n value: string;\n currency: string;\n locale: string;\n}): number | null => {\n const groupSeparator = getGroupSeparator(currency, locale);\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!formattedValue) {\n return null;\n }\n\n // parseFloat can't handle thousands separators\n const withoutGroupSeparator = groupSeparator\n ? formattedValue.replace(/ /gu, '').replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n : formattedValue;\n\n // parseFloat can only handle . as decimal separator\n const withNormalisedDecimalSeparator = decimalSeparator\n ? withoutGroupSeparator.replace(decimalSeparator, '.')\n : withoutGroupSeparator;\n\n const parsedValue = Number.parseFloat(withNormalisedDecimalSeparator);\n return parsedValue;\n};\n\nexport const getFormattedString = ({\n value: unformattedValue,\n currency,\n locale,\n alwaysShowDecimals = false,\n}: {\n value: number;\n currency: string;\n locale: string;\n alwaysShowDecimals?: boolean;\n}): string => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n // formatAmount rounds extra decimals, so 1.999 will become 2. Instead we will manually strip extra decimals so that it becomes 1.99 after formatting\n const decimalCount = getDecimalCount(currency, locale);\n const unformattedString = unformattedValue.toString();\n\n const [integerPart, decimalPart] = decimalSeparator\n ? unformattedString.split(decimalSeparator)\n : [unformattedString, undefined];\n\n const formattedDecimalPart = decimalPart ? decimalPart.slice(0, decimalCount) : '';\n\n const sanitisedUnformattedValue = Number.parseFloat(`${integerPart}.${formattedDecimalPart}`);\n\n return formatAmount(sanitisedUnformattedValue, currency, locale, {\n alwaysShowDecimals,\n });\n};\n\nexport const isInputPossiblyOverflowing = ({\n ref,\n value,\n}: {\n ref: React.RefObject<HTMLInputElement>;\n value: string;\n}) => {\n const textLength = value.length;\n const inputWidth = ref.current?.clientWidth;\n if (!inputWidth || !textLength) {\n return;\n }\n\n const maxCharactersWithoutOverflow = Math.floor(inputWidth / 19);\n return textLength > maxCharactersWithoutOverflow;\n};\n\nconst allowedInputKeys = new Set([\n 'Backspace',\n 'Delete',\n ',',\n '.',\n 'ArrowLeft',\n 'ArrowRight',\n 'Enter',\n 'Tab',\n]);\n\nexport const isAllowedInputKey = (e: KeyboardEvent<HTMLInputElement>) => {\n const { metaKey, key, ctrlKey } = e;\n const isNumberKey = !Number.isNaN(Number.parseInt(key, 10));\n\n return isNumberKey || metaKey || ctrlKey || allowedInputKeys.has(key);\n};\n"],"names":["getDecimalSeparator","currency","locale","formatAmount","replace","getGroupSeparator","getDecimalCount","decimalSeparator","parts","split","length","getEnteredDecimalsCount","value","getUnformattedNumber","formattedValue","groupSeparator","withoutGroupSeparator","RegExp","withNormalisedDecimalSeparator","parsedValue","Number","parseFloat","getFormattedString","unformattedValue","alwaysShowDecimals","decimalCount","unformattedString","toString","integerPart","decimalPart","undefined","formattedDecimalPart","slice","sanitisedUnformattedValue","isInputPossiblyOverflowing","ref","textLength","inputWidth","current","clientWidth","maxCharactersWithoutOverflow","Math","floor","allowedInputKeys","Set","isAllowedInputKey","e","metaKey","key","ctrlKey","isNumberKey","isNaN","parseInt","has"],"mappings":";;MAGaA,mBAAmB,GAAGA,CAACC,QAAgB,EAAEC,MAAc,
|
|
1
|
+
{"version":3,"file":"utils.mjs","sources":["../../../src/expressiveMoneyInput/amountInput/utils.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\nimport type { KeyboardEvent } from 'react';\n\nexport const getDecimalSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(1.1, currency, locale).replace(/\\p{Number}/gu, '');\n};\n\nexport const getGroupSeparator = (currency: string, locale: string): string | null => {\n return formatAmount(10000000, currency, locale).replace(/\\p{Number}/gu, '')[0];\n};\n\nexport const getDecimalCount = (currency: string, locale: string): number => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!decimalSeparator) {\n return 0;\n }\n const parts = formatAmount(1.1, currency, locale).split(decimalSeparator);\n return parts.length === 2 ? parts[1].length : 0;\n};\n\nexport const getEnteredDecimalsCount = (value: string, decimalSeparator: string) => {\n return value.split(decimalSeparator)[1]?.length ?? 0;\n};\n\nexport const getUnformattedNumber = ({\n value: formattedValue,\n currency,\n locale,\n}: {\n value: string;\n currency: string;\n locale: string;\n}): number | null => {\n const groupSeparator = getGroupSeparator(currency, locale);\n const decimalSeparator = getDecimalSeparator(currency, locale);\n if (!formattedValue) {\n return null;\n }\n\n // parseFloat can't handle thousands separators\n const withoutGroupSeparator = groupSeparator\n ? formattedValue.replace(/ /gu, '').replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n : formattedValue;\n\n // parseFloat can only handle . as decimal separator\n const withNormalisedDecimalSeparator = decimalSeparator\n ? withoutGroupSeparator.replace(decimalSeparator, '.')\n : withoutGroupSeparator;\n\n const parsedValue = Number.parseFloat(withNormalisedDecimalSeparator);\n return parsedValue;\n};\n\nexport const getFormattedString = ({\n value: unformattedValue,\n currency,\n locale,\n alwaysShowDecimals = false,\n}: {\n value: number;\n currency: string;\n locale: string;\n alwaysShowDecimals?: boolean;\n}): string => {\n const decimalSeparator = getDecimalSeparator(currency, locale);\n // formatAmount rounds extra decimals, so 1.999 will become 2. Instead we will manually strip extra decimals so that it becomes 1.99 after formatting\n const decimalCount = getDecimalCount(currency, locale);\n const unformattedString = unformattedValue.toString();\n\n const [integerPart, decimalPart] = decimalSeparator\n ? unformattedString.split(decimalSeparator)\n : [unformattedString, undefined];\n\n const formattedDecimalPart = decimalPart ? decimalPart.slice(0, decimalCount) : '';\n\n const sanitisedUnformattedValue = Number.parseFloat(`${integerPart}.${formattedDecimalPart}`);\n\n return formatAmount(sanitisedUnformattedValue, currency, locale, {\n alwaysShowDecimals,\n });\n};\n\nexport const isInputPossiblyOverflowing = ({\n ref,\n value,\n}: {\n ref: React.RefObject<HTMLInputElement>;\n value: string;\n}) => {\n const textLength = value.length;\n const inputWidth = ref.current?.clientWidth;\n if (!inputWidth || !textLength) {\n return;\n }\n\n const maxCharactersWithoutOverflow = Math.floor(inputWidth / 19);\n return textLength > maxCharactersWithoutOverflow;\n};\n\nconst allowedInputKeys = new Set([\n 'Backspace',\n 'Delete',\n ',',\n '.',\n 'ArrowLeft',\n 'ArrowRight',\n 'Enter',\n 'Tab',\n]);\n\nexport const isAllowedInputKey = (e: KeyboardEvent<HTMLInputElement>) => {\n const { metaKey, key, ctrlKey } = e;\n const isNumberKey = !Number.isNaN(Number.parseInt(key, 10));\n\n return isNumberKey || metaKey || ctrlKey || allowedInputKeys.has(key);\n};\n"],"names":["getDecimalSeparator","currency","locale","formatAmount","replace","getGroupSeparator","getDecimalCount","decimalSeparator","parts","split","length","getEnteredDecimalsCount","value","getUnformattedNumber","formattedValue","groupSeparator","withoutGroupSeparator","RegExp","withNormalisedDecimalSeparator","parsedValue","Number","parseFloat","getFormattedString","unformattedValue","alwaysShowDecimals","decimalCount","unformattedString","toString","integerPart","decimalPart","undefined","formattedDecimalPart","slice","sanitisedUnformattedValue","isInputPossiblyOverflowing","ref","textLength","inputWidth","current","clientWidth","maxCharactersWithoutOverflow","Math","floor","allowedInputKeys","Set","isAllowedInputKey","e","metaKey","key","ctrlKey","isNumberKey","isNaN","parseInt","has"],"mappings":";;MAGaA,mBAAmB,GAAGA,CAACC,QAAgB,EAAEC,MAAc,KAAmB;AACrF,EAAA,OAAOC,YAAY,CAAC,GAAG,EAAEF,QAAQ,EAAEC,MAAM,CAAC,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;AACxE;MAEaC,iBAAiB,GAAGA,CAACJ,QAAgB,EAAEC,MAAc,KAAmB;AACnF,EAAA,OAAOC,YAAY,CAAC,QAAQ,EAAEF,QAAQ,EAAEC,MAAM,CAAC,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAChF;MAEaE,eAAe,GAAGA,CAACL,QAAgB,EAAEC,MAAc,KAAY;AAC1E,EAAA,MAAMK,gBAAgB,GAAGP,mBAAmB,CAACC,QAAQ,EAAEC,MAAM,CAAC;EAC9D,IAAI,CAACK,gBAAgB,EAAE;AACrB,IAAA,OAAO,CAAC;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MG,gBAAgB,GAAG,IAAIC,GAAG,CAAC,CAC/B,WAAW,EACX,QAAQ,EACR,GAAG,EACH,GAAG,EACH,WAAW,EACX,YAAY,EACZ,OAAO,EACP,KAAK,CACN,CAAC;AAEK,MAAMC,iBAAiB,GAAIC,CAAkC,IAAI;EACtE,MAAM;IAAEC,OAAO;IAAEC,GAAG;AAAEC,IAAAA;AAAO,GAAE,GAAGH,CAAC;AACnC,EAAA,MAAMI,WAAW,GAAG,CAAC9B,MAAM,CAAC+B,KAAK,CAAC/B,MAAM,CAACgC,QAAQ,CAACJ,GAAG,EAAE,EAAE,CAAC,CAAC;EAE3D,OAAOE,WAAW,IAAIH,OAAO,IAAIE,OAAO,IAAIN,gBAAgB,CAACU,GAAG,CAACL,GAAG,CAAC;AACvE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedNumber.js","sources":["../../../src/expressiveMoneyInput/animatedNumber/AnimatedNumber.tsx"],"sourcesContent":["import { motion, useReducedMotion } from 'framer-motion';\nimport type { ReactNode } from 'react';\n\ninterface Props {\n children: ReactNode;\n onClick?: () => void;\n className?: string;\n}\n\nexport const AnimatedNumber = ({ children, onClick, className }: Props) => {\n const reducedMotion = useReducedMotion();\n\n return (\n <motion.span\n className={className}\n aria-hidden\n initial={{ zoom: 0.01 }}\n animate={{ zoom: 1 }}\n exit={{ zoom: 0.01 }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n type: 'tween',\n ease: [0.3, 0, 0.1, 1],\n }}\n onClick={() => onClick?.()}\n >\n <motion.span\n initial={{ opacity: 0 }}\n animate={{ opacity: [0, 0, 1] }}\n exit={{ opacity: [1, 0, 0] }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n times: [0, 0.5, 1],\n }}\n >\n {children}\n </motion.span>\n </motion.span>\n );\n};\n"],"names":["AnimatedNumber","children","onClick","className","reducedMotion","useReducedMotion","_jsx","motion","span","initial","zoom","animate","exit","transition","duration","type","ease","opacity","times"],"mappings":";;;;;AASO,MAAMA,cAAc,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,OAAO;AAAEC,EAAAA;
|
|
1
|
+
{"version":3,"file":"AnimatedNumber.js","sources":["../../../src/expressiveMoneyInput/animatedNumber/AnimatedNumber.tsx"],"sourcesContent":["import { motion, useReducedMotion } from 'framer-motion';\nimport type { ReactNode } from 'react';\n\ninterface Props {\n children: ReactNode;\n onClick?: () => void;\n className?: string;\n}\n\nexport const AnimatedNumber = ({ children, onClick, className }: Props) => {\n const reducedMotion = useReducedMotion();\n\n return (\n <motion.span\n className={className}\n aria-hidden\n initial={{ zoom: 0.01 }}\n animate={{ zoom: 1 }}\n exit={{ zoom: 0.01 }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n type: 'tween',\n ease: [0.3, 0, 0.1, 1],\n }}\n onClick={() => onClick?.()}\n >\n <motion.span\n initial={{ opacity: 0 }}\n animate={{ opacity: [0, 0, 1] }}\n exit={{ opacity: [1, 0, 0] }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n times: [0, 0.5, 1],\n }}\n >\n {children}\n </motion.span>\n </motion.span>\n );\n};\n"],"names":["AnimatedNumber","children","onClick","className","reducedMotion","useReducedMotion","_jsx","motion","span","initial","zoom","animate","exit","transition","duration","type","ease","opacity","times"],"mappings":";;;;;AASO,MAAMA,cAAc,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,OAAO;AAAEC,EAAAA;AAAS,CAAS,KAAI;AACxE,EAAA,MAAMC,aAAa,GAAGC,6BAAgB,EAAE;AAExC,EAAA,oBACEC,cAAA,CAACC,mBAAM,CAACC,IAAI,EAAA;AACVL,IAAAA,SAAS,EAAEA,SAAU;IACrB,aAAA,EAAA,IAAW;AACXM,IAAAA,OAAO,EAAE;AAAEC,MAAAA,IAAI,EAAE;KAAO;AACxBC,IAAAA,OAAO,EAAE;AAAED,MAAAA,IAAI,EAAE;KAAI;AACrBE,IAAAA,IAAI,EAAE;AAAEF,MAAAA,IAAI,EAAE;KAAO;AACrBG,IAAAA,UAAU,EAAE;AACVC,MAAAA,QAAQ,EAAEV,aAAa,GAAG,CAAC,GAAG,GAAG;AACjCW,MAAAA,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;KACrB;AACFd,IAAAA,OAAO,EAAEA,MAAMA,OAAO,IAAK;AAAAD,IAAAA,QAAA,eAE3BK,cAAA,CAACC,mBAAM,CAACC,IAAI,EAAA;AACVC,MAAAA,OAAO,EAAE;AAAEQ,QAAAA,OAAO,EAAE;OAAI;AACxBN,MAAAA,OAAO,EAAE;AAAEM,QAAAA,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;OAAI;AAChCL,MAAAA,IAAI,EAAE;AAAEK,QAAAA,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;OAAI;AAC7BJ,MAAAA,UAAU,EAAE;AACVC,QAAAA,QAAQ,EAAEV,aAAa,GAAG,CAAC,GAAG,GAAG;AACjCc,QAAAA,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;OACjB;AAAAjB,MAAAA,QAAA,EAEDA;KACU;AACf,GAAa,CAAC;AAElB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedNumber.mjs","sources":["../../../src/expressiveMoneyInput/animatedNumber/AnimatedNumber.tsx"],"sourcesContent":["import { motion, useReducedMotion } from 'framer-motion';\nimport type { ReactNode } from 'react';\n\ninterface Props {\n children: ReactNode;\n onClick?: () => void;\n className?: string;\n}\n\nexport const AnimatedNumber = ({ children, onClick, className }: Props) => {\n const reducedMotion = useReducedMotion();\n\n return (\n <motion.span\n className={className}\n aria-hidden\n initial={{ zoom: 0.01 }}\n animate={{ zoom: 1 }}\n exit={{ zoom: 0.01 }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n type: 'tween',\n ease: [0.3, 0, 0.1, 1],\n }}\n onClick={() => onClick?.()}\n >\n <motion.span\n initial={{ opacity: 0 }}\n animate={{ opacity: [0, 0, 1] }}\n exit={{ opacity: [1, 0, 0] }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n times: [0, 0.5, 1],\n }}\n >\n {children}\n </motion.span>\n </motion.span>\n );\n};\n"],"names":["AnimatedNumber","children","onClick","className","reducedMotion","useReducedMotion","_jsx","motion","span","initial","zoom","animate","exit","transition","duration","type","ease","opacity","times"],"mappings":";;;AASO,MAAMA,cAAc,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,OAAO;AAAEC,EAAAA;
|
|
1
|
+
{"version":3,"file":"AnimatedNumber.mjs","sources":["../../../src/expressiveMoneyInput/animatedNumber/AnimatedNumber.tsx"],"sourcesContent":["import { motion, useReducedMotion } from 'framer-motion';\nimport type { ReactNode } from 'react';\n\ninterface Props {\n children: ReactNode;\n onClick?: () => void;\n className?: string;\n}\n\nexport const AnimatedNumber = ({ children, onClick, className }: Props) => {\n const reducedMotion = useReducedMotion();\n\n return (\n <motion.span\n className={className}\n aria-hidden\n initial={{ zoom: 0.01 }}\n animate={{ zoom: 1 }}\n exit={{ zoom: 0.01 }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n type: 'tween',\n ease: [0.3, 0, 0.1, 1],\n }}\n onClick={() => onClick?.()}\n >\n <motion.span\n initial={{ opacity: 0 }}\n animate={{ opacity: [0, 0, 1] }}\n exit={{ opacity: [1, 0, 0] }}\n transition={{\n duration: reducedMotion ? 0 : 0.3,\n times: [0, 0.5, 1],\n }}\n >\n {children}\n </motion.span>\n </motion.span>\n );\n};\n"],"names":["AnimatedNumber","children","onClick","className","reducedMotion","useReducedMotion","_jsx","motion","span","initial","zoom","animate","exit","transition","duration","type","ease","opacity","times"],"mappings":";;;AASO,MAAMA,cAAc,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,OAAO;AAAEC,EAAAA;AAAS,CAAS,KAAI;AACxE,EAAA,MAAMC,aAAa,GAAGC,gBAAgB,EAAE;AAExC,EAAA,oBACEC,GAAA,CAACC,MAAM,CAACC,IAAI,EAAA;AACVL,IAAAA,SAAS,EAAEA,SAAU;IACrB,aAAA,EAAA,IAAW;AACXM,IAAAA,OAAO,EAAE;AAAEC,MAAAA,IAAI,EAAE;KAAO;AACxBC,IAAAA,OAAO,EAAE;AAAED,MAAAA,IAAI,EAAE;KAAI;AACrBE,IAAAA,IAAI,EAAE;AAAEF,MAAAA,IAAI,EAAE;KAAO;AACrBG,IAAAA,UAAU,EAAE;AACVC,MAAAA,QAAQ,EAAEV,aAAa,GAAG,CAAC,GAAG,GAAG;AACjCW,MAAAA,IAAI,EAAE,OAAO;MACbC,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;KACrB;AACFd,IAAAA,OAAO,EAAEA,MAAMA,OAAO,IAAK;AAAAD,IAAAA,QAAA,eAE3BK,GAAA,CAACC,MAAM,CAACC,IAAI,EAAA;AACVC,MAAAA,OAAO,EAAE;AAAEQ,QAAAA,OAAO,EAAE;OAAI;AACxBN,MAAAA,OAAO,EAAE;AAAEM,QAAAA,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;OAAI;AAChCL,MAAAA,IAAI,EAAE;AAAEK,QAAAA,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;OAAI;AAC7BJ,MAAAA,UAAU,EAAE;AACVC,QAAAA,QAAQ,EAAEV,aAAa,GAAG,CAAC,GAAG,GAAG;AACjCc,QAAAA,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC;OACjB;AAAAjB,MAAAA,QAAA,EAEDA;KACU;AACf,GAAa,CAAC;AAElB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chevron.js","sources":["../../../src/expressiveMoneyInput/chevron/Chevron.tsx"],"sourcesContent":["import { ChevronLeft } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { motion } from 'framer-motion';\n\ninterface Props {\n shouldShow: boolean;\n}\n\nexport const Chevron = ({ shouldShow = true }: Props) => {\n return (\n <div\n className={clsx(\n 'd-flex align-items-center',\n 'wds-chevron-container',\n !shouldShow && 'wds-chevron-hidden',\n )}\n >\n <motion.div\n animate={{\n x: [12, 0, 0, -12],\n opacity: [0, 1, 1, 0],\n }}\n transition={{\n duration: 3,\n ease: [[0.3, 0, 0.1, 1], 'linear', [0.3, 0, 0.1, 1]],\n times: [0, 0.1, 0.9, 1],\n repeat: Infinity,\n repeatType: 'loop',\n }}\n >\n <ChevronLeft />\n </motion.div>\n </div>\n );\n};\n"],"names":["Chevron","shouldShow","_jsx","className","clsx","children","motion","div","animate","x","opacity","transition","duration","ease","times","repeat","Infinity","repeatType","ChevronLeft"],"mappings":";;;;;;;AAQO,MAAMA,OAAO,GAAGA,CAAC;AAAEC,EAAAA,UAAU,GAAG;
|
|
1
|
+
{"version":3,"file":"Chevron.js","sources":["../../../src/expressiveMoneyInput/chevron/Chevron.tsx"],"sourcesContent":["import { ChevronLeft } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { motion } from 'framer-motion';\n\ninterface Props {\n shouldShow: boolean;\n}\n\nexport const Chevron = ({ shouldShow = true }: Props) => {\n return (\n <div\n className={clsx(\n 'd-flex align-items-center',\n 'wds-chevron-container',\n !shouldShow && 'wds-chevron-hidden',\n )}\n >\n <motion.div\n animate={{\n x: [12, 0, 0, -12],\n opacity: [0, 1, 1, 0],\n }}\n transition={{\n duration: 3,\n ease: [[0.3, 0, 0.1, 1], 'linear', [0.3, 0, 0.1, 1]],\n times: [0, 0.1, 0.9, 1],\n repeat: Infinity,\n repeatType: 'loop',\n }}\n >\n <ChevronLeft />\n </motion.div>\n </div>\n );\n};\n"],"names":["Chevron","shouldShow","_jsx","className","clsx","children","motion","div","animate","x","opacity","transition","duration","ease","times","repeat","Infinity","repeatType","ChevronLeft"],"mappings":";;;;;;;AAQO,MAAMA,OAAO,GAAGA,CAAC;AAAEC,EAAAA,UAAU,GAAG;AAAI,CAAS,KAAI;AACtD,EAAA,oBACEC,cAAA,CAAA,KAAA,EAAA;IACEC,SAAS,EAAEC,SAAI,CACb,2BAA2B,EAC3B,uBAAuB,EACvB,CAACH,UAAU,IAAI,oBAAoB,CACnC;AAAAI,IAAAA,QAAA,eAEFH,cAAA,CAACI,mBAAM,CAACC,GAAG,EAAA;AACTC,MAAAA,OAAO,EAAE;QACPC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC;QAClBC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;OACpB;AACFC,MAAAA,UAAU,EAAE;AACVC,QAAAA,QAAQ,EAAE,CAAC;QACXC,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QACpDC,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACvBC,QAAAA,MAAM,EAAEC,QAAQ;AAChBC,QAAAA,UAAU,EAAE;OACZ;AAAAZ,MAAAA,QAAA,eAEFH,cAAA,CAACgB,iBAAW,EAAA,EAAA;KACF;AACd,GAAK,CAAC;AAEV;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chevron.mjs","sources":["../../../src/expressiveMoneyInput/chevron/Chevron.tsx"],"sourcesContent":["import { ChevronLeft } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { motion } from 'framer-motion';\n\ninterface Props {\n shouldShow: boolean;\n}\n\nexport const Chevron = ({ shouldShow = true }: Props) => {\n return (\n <div\n className={clsx(\n 'd-flex align-items-center',\n 'wds-chevron-container',\n !shouldShow && 'wds-chevron-hidden',\n )}\n >\n <motion.div\n animate={{\n x: [12, 0, 0, -12],\n opacity: [0, 1, 1, 0],\n }}\n transition={{\n duration: 3,\n ease: [[0.3, 0, 0.1, 1], 'linear', [0.3, 0, 0.1, 1]],\n times: [0, 0.1, 0.9, 1],\n repeat: Infinity,\n repeatType: 'loop',\n }}\n >\n <ChevronLeft />\n </motion.div>\n </div>\n );\n};\n"],"names":["Chevron","shouldShow","_jsx","className","clsx","children","motion","div","animate","x","opacity","transition","duration","ease","times","repeat","Infinity","repeatType","ChevronLeft"],"mappings":";;;;;AAQO,MAAMA,OAAO,GAAGA,CAAC;AAAEC,EAAAA,UAAU,GAAG;
|
|
1
|
+
{"version":3,"file":"Chevron.mjs","sources":["../../../src/expressiveMoneyInput/chevron/Chevron.tsx"],"sourcesContent":["import { ChevronLeft } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { motion } from 'framer-motion';\n\ninterface Props {\n shouldShow: boolean;\n}\n\nexport const Chevron = ({ shouldShow = true }: Props) => {\n return (\n <div\n className={clsx(\n 'd-flex align-items-center',\n 'wds-chevron-container',\n !shouldShow && 'wds-chevron-hidden',\n )}\n >\n <motion.div\n animate={{\n x: [12, 0, 0, -12],\n opacity: [0, 1, 1, 0],\n }}\n transition={{\n duration: 3,\n ease: [[0.3, 0, 0.1, 1], 'linear', [0.3, 0, 0.1, 1]],\n times: [0, 0.1, 0.9, 1],\n repeat: Infinity,\n repeatType: 'loop',\n }}\n >\n <ChevronLeft />\n </motion.div>\n </div>\n );\n};\n"],"names":["Chevron","shouldShow","_jsx","className","clsx","children","motion","div","animate","x","opacity","transition","duration","ease","times","repeat","Infinity","repeatType","ChevronLeft"],"mappings":";;;;;AAQO,MAAMA,OAAO,GAAGA,CAAC;AAAEC,EAAAA,UAAU,GAAG;AAAI,CAAS,KAAI;AACtD,EAAA,oBACEC,GAAA,CAAA,KAAA,EAAA;IACEC,SAAS,EAAEC,IAAI,CACb,2BAA2B,EAC3B,uBAAuB,EACvB,CAACH,UAAU,IAAI,oBAAoB,CACnC;AAAAI,IAAAA,QAAA,eAEFH,GAAA,CAACI,MAAM,CAACC,GAAG,EAAA;AACTC,MAAAA,OAAO,EAAE;QACPC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC;QAClBC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;OACpB;AACFC,MAAAA,UAAU,EAAE;AACVC,QAAAA,QAAQ,EAAE,CAAC;QACXC,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QACpDC,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACvBC,QAAAA,MAAM,EAAEC,QAAQ;AAChBC,QAAAA,UAAU,EAAE;OACZ;AAAAZ,MAAAA,QAAA,eAEFH,GAAA,CAACgB,WAAW,EAAA,EAAA;KACF;AACd,GAAK,CAAC;AAEV;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencySelector.js","sources":["../../../src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx"],"sourcesContent":["import type { AvatarLayoutProps } from '../../avatarLayout';\nimport Button from '../../button';\nimport {\n SelectInput,\n SelectInputOptionContent,\n SelectInputTriggerButton,\n} from '../../inputs/SelectInput';\nimport { CurrencyType, Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\nimport { ChevronDown } from '@transferwise/icons';\nimport { Flag } from '@wise/art';\nimport {\n type ButtonHTMLAttributes,\n forwardRef,\n type MouseEventHandler,\n useMemo,\n useState,\n} from 'react';\nimport { useIntl } from 'react-intl';\n\nimport messages from '../ExpressiveMoneyInput.messages';\n\nexport interface CurrencyOption {\n label?: string;\n code: string;\n keywords: string[] | undefined;\n}\n\nexport interface CurrencySection {\n title: string;\n currencies: CurrencyOption[];\n}\n\nexport type CurrencyOptions = CurrencySection[];\n\nexport type Props = {\n id: string;\n labelId: string;\n options?: CurrencyOptions;\n onChange?: (currency: CurrencyType) => void;\n onOpen?: () => void;\n addons?: AvatarLayoutProps['avatars'];\n onSearchChange?: (payload: { query: string; resultCount: number }) => void;\n} & Pick<ExpressiveMoneyInputProps, 'currency'>;\n\nexport const CurrencySelector = ({\n id,\n currency,\n options = [],\n labelId,\n onChange,\n addons,\n onOpen,\n onSearchChange,\n}: Props) => {\n const intl = useIntl();\n\n const allCurrencyOptions = useMemo(() => getUniqueCurrencies(options), [options]);\n\n const activeCurrencyOption = useMemo(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return allCurrencyOptions.find((option) => option.code === currency)!;\n }, [currency, allCurrencyOptions]);\n\n const disabled =\n !onChange ||\n options.length === 0 ||\n (options.length === 1 && options[0].currencies.length <= 1);\n\n const [searchQuery, setSearchQuery] = useState<string>('');\n\n const handleTriggerClick: MouseEventHandler = (event) => {\n const triggerEl = event.currentTarget;\n if (triggerEl?.getAttribute('aria-expanded') === 'false') {\n onOpen?.();\n }\n };\n\n const items = searchQuery\n ? filterAndSortCurrenciesForQuery(allCurrencyOptions, searchQuery).map(getCurrencySelectOption)\n : options.map(getCurrencyGroup);\n\n return (\n <SelectInput\n compareValues=\"code\"\n disabled={disabled}\n id={id}\n value={activeCurrencyOption}\n filterable\n filterPlaceholder={intl.formatMessage(messages.currencySelectorSearchPlaceholder)}\n UNSAFE_triggerButtonProps={{\n id: undefined,\n 'aria-labelledby': undefined,\n 'aria-describedby': labelId,\n 'aria-invalid': undefined,\n 'aria-label': intl.formatMessage(messages.currencySelectorSelectCurrency),\n }}\n items={items}\n renderValue={({ code, label }) => {\n return (\n <SelectInputOptionContent\n title={code}\n note={label}\n icon={<Flag code={code} intrinsicSize={24} />}\n />\n );\n }}\n renderTrigger={() => (\n <SelectInputTriggerButton\n as={ButtonInput}\n // @ts-expect-error new (v2) ButtonProps\n addonStart={{\n type: 'avatar',\n value: [\n addons ? addons[0] : null,\n {\n ...(addons && addons.length > 1\n ? { ...addons[1] }\n : {\n asset: <Flag code={currency} />,\n }),\n },\n ]\n .filter(Boolean)\n .filter((avatar) => !(avatar && Object.keys(avatar).length === 0)),\n }}\n addonEnd={disabled ? undefined : { type: 'icon', value: <ChevronDown /> }}\n onClick={(event) => handleTriggerClick(event)}\n >\n {currency}\n </SelectInputTriggerButton>\n )}\n onChange={(newValue) => {\n onChange?.(newValue.code);\n }}\n onFilterChange={({ queryNormalized }) => {\n setSearchQuery(queryNormalized ?? '');\n if (queryNormalized) {\n onSearchChange?.({\n query: queryNormalized,\n resultCount: filterAndSortCurrenciesForQuery(allCurrencyOptions, queryNormalized)\n .length,\n });\n }\n }}\n />\n );\n};\n\nexport const ButtonInput = forwardRef(function ButtonInput(\n { children, ...rest }: React.PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>,\n ref: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n return (\n <Button\n ref={ref}\n size=\"md\"\n v2\n className=\"wds-currency-selector\"\n priority=\"secondary-neutral\"\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nconst getCurrencySelectOption = (currency: CurrencyOption) => {\n return {\n type: 'option' as const,\n value: currency,\n filterMatchers: currency.keywords,\n };\n};\n\nconst getCurrencyGroup = (section: CurrencySection) => {\n return {\n type: 'group' as const,\n label: section.title,\n options: section.currencies.map(getCurrencySelectOption),\n };\n};\n\nconst getUniqueCurrencies = (options: CurrencyOptions) => {\n const allCurrencyOptions = options.flatMap((section) => section.currencies);\n const uniqueCurrencies = new Map<string, CurrencyOption>();\n\n allCurrencyOptions.forEach((currencyObj) => {\n uniqueCurrencies.set(currencyObj.code, currencyObj);\n });\n\n return Array.from(uniqueCurrencies.values());\n};\n\nconst filterAndSortCurrenciesForQuery = (\n currencies: CurrencyOption[],\n query: string,\n): CurrencyOption[] => {\n return (\n currencies\n .filter((currency) => {\n return (\n currency.code.toLowerCase().includes(query) ||\n (currency.label ?? '').toLowerCase().includes(query) ||\n currency.keywords?.some((keyword) => keyword.toLowerCase().includes(query))\n );\n })\n // prefer exact matches, then sort alphabetically by code\n .sort((a, b) => {\n const aCode = a.code.toLowerCase();\n const bCode = b.code.toLowerCase();\n if (aCode === query) {\n return -1;\n }\n if (bCode === query) {\n return 1;\n }\n return aCode.localeCompare(bCode);\n })\n );\n};\n"],"names":["CurrencySelector","id","currency","options","labelId","onChange","addons","onOpen","onSearchChange","intl","useIntl","allCurrencyOptions","useMemo","getUniqueCurrencies","activeCurrencyOption","find","option","code","disabled","length","currencies","searchQuery","setSearchQuery","useState","handleTriggerClick","event","triggerEl","currentTarget","getAttribute","items","filterAndSortCurrenciesForQuery","map","getCurrencySelectOption","getCurrencyGroup","_jsx","SelectInput","compareValues","value","filterable","filterPlaceholder","formatMessage","messages","currencySelectorSearchPlaceholder","UNSAFE_triggerButtonProps","undefined","currencySelectorSelectCurrency","renderValue","label","SelectInputOptionContent","title","note","icon","Flag","intrinsicSize","renderTrigger","SelectInputTriggerButton","as","ButtonInput","addonStart","type","asset","filter","Boolean","avatar","Object","keys","addonEnd","ChevronDown","onClick","children","newValue","onFilterChange","queryNormalized","query","resultCount","forwardRef","rest","ref","Button","size","v2","className","priority","filterMatchers","keywords","section","flatMap","uniqueCurrencies","Map","forEach","currencyObj","set","Array","from","values","toLowerCase","includes","some","keyword","sort","a","b","aCode","bCode","localeCompare"],"mappings":";;;;;;;;;;;AA4CO,MAAMA,gBAAgB,GAAGA,CAAC;EAC/BC,EAAE;EACFC,QAAQ;AACRC,EAAAA,OAAO,GAAG,EAAE;EACZC,OAAO;EACPC,QAAQ;EACRC,MAAM;EACNC,MAAM;AACNC,EAAAA;AACK,CAAC,KAAK;AACX,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;AAEtB,EAAA,MAAMC,kBAAkB,GAAGC,aAAO,CAAC,MAAMC,mBAAmB,CAACV,OAAO,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;AAEjF,EAAA,MAAMW,oBAA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AC,CAACpF,IAAI,CAAC8E,WAAW,EAAE;IAClC,IAAIO,KAAK,KAAK7B,KAAK,EAAE;AACnB,MAAA,OAAO,EAAE;AACX,IAAA;IACA,IAAI8B,KAAK,KAAK9B,KAAK,EAAE;AACnB,MAAA,OAAO,CAAC;AACV,IAAA;AACA,IAAA,OAAO6B,KAAK,CAACE,aAAa,CAACD,KAAK,CAAC;AACnC,EAAA,CAAC,CAAC;AAER,CAAC;;;;;"}
|
|
1
|
+
{"version":3,"file":"CurrencySelector.js","sources":["../../../src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx"],"sourcesContent":["import type { AvatarLayoutProps } from '../../avatarLayout';\nimport Button from '../../button';\nimport {\n SelectInput,\n SelectInputOptionContent,\n SelectInputTriggerButton,\n} from '../../inputs/SelectInput';\nimport { CurrencyType, Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\nimport { ChevronDown } from '@transferwise/icons';\nimport { Flag } from '@wise/art';\nimport {\n type ButtonHTMLAttributes,\n forwardRef,\n type MouseEventHandler,\n useMemo,\n useState,\n} from 'react';\nimport { useIntl } from 'react-intl';\n\nimport messages from '../ExpressiveMoneyInput.messages';\n\nexport interface CurrencyOption {\n label?: string;\n code: string;\n keywords: string[] | undefined;\n}\n\nexport interface CurrencySection {\n title: string;\n currencies: CurrencyOption[];\n}\n\nexport type CurrencyOptions = CurrencySection[];\n\nexport type Props = {\n id: string;\n labelId: string;\n options?: CurrencyOptions;\n onChange?: (currency: CurrencyType) => void;\n onOpen?: () => void;\n addons?: AvatarLayoutProps['avatars'];\n onSearchChange?: (payload: { query: string; resultCount: number }) => void;\n} & Pick<ExpressiveMoneyInputProps, 'currency'>;\n\nexport const CurrencySelector = ({\n id,\n currency,\n options = [],\n labelId,\n onChange,\n addons,\n onOpen,\n onSearchChange,\n}: Props) => {\n const intl = useIntl();\n\n const allCurrencyOptions = useMemo(() => getUniqueCurrencies(options), [options]);\n\n const activeCurrencyOption = useMemo(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return allCurrencyOptions.find((option) => option.code === currency)!;\n }, [currency, allCurrencyOptions]);\n\n const disabled =\n !onChange ||\n options.length === 0 ||\n (options.length === 1 && options[0].currencies.length <= 1);\n\n const [searchQuery, setSearchQuery] = useState<string>('');\n\n const handleTriggerClick: MouseEventHandler = (event) => {\n const triggerEl = event.currentTarget;\n if (triggerEl?.getAttribute('aria-expanded') === 'false') {\n onOpen?.();\n }\n };\n\n const items = searchQuery\n ? filterAndSortCurrenciesForQuery(allCurrencyOptions, searchQuery).map(getCurrencySelectOption)\n : options.map(getCurrencyGroup);\n\n return (\n <SelectInput\n compareValues=\"code\"\n disabled={disabled}\n id={id}\n value={activeCurrencyOption}\n filterable\n filterPlaceholder={intl.formatMessage(messages.currencySelectorSearchPlaceholder)}\n UNSAFE_triggerButtonProps={{\n id: undefined,\n 'aria-labelledby': undefined,\n 'aria-describedby': labelId,\n 'aria-invalid': undefined,\n 'aria-label': intl.formatMessage(messages.currencySelectorSelectCurrency),\n }}\n items={items}\n renderValue={({ code, label }) => {\n return (\n <SelectInputOptionContent\n title={code}\n note={label}\n icon={<Flag code={code} intrinsicSize={24} />}\n />\n );\n }}\n renderTrigger={() => (\n <SelectInputTriggerButton\n as={ButtonInput}\n // @ts-expect-error new (v2) ButtonProps\n addonStart={{\n type: 'avatar',\n value: [\n addons ? addons[0] : null,\n {\n ...(addons && addons.length > 1\n ? { ...addons[1] }\n : {\n asset: <Flag code={currency} />,\n }),\n },\n ]\n .filter(Boolean)\n .filter((avatar) => !(avatar && Object.keys(avatar).length === 0)),\n }}\n addonEnd={disabled ? undefined : { type: 'icon', value: <ChevronDown /> }}\n onClick={(event) => handleTriggerClick(event)}\n >\n {currency}\n </SelectInputTriggerButton>\n )}\n onChange={(newValue) => {\n onChange?.(newValue.code);\n }}\n onFilterChange={({ queryNormalized }) => {\n setSearchQuery(queryNormalized ?? '');\n if (queryNormalized) {\n onSearchChange?.({\n query: queryNormalized,\n resultCount: filterAndSortCurrenciesForQuery(allCurrencyOptions, queryNormalized)\n .length,\n });\n }\n }}\n />\n );\n};\n\nexport const ButtonInput = forwardRef(function ButtonInput(\n { children, ...rest }: React.PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>,\n ref: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n return (\n <Button\n ref={ref}\n size=\"md\"\n v2\n className=\"wds-currency-selector\"\n priority=\"secondary-neutral\"\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nconst getCurrencySelectOption = (currency: CurrencyOption) => {\n return {\n type: 'option' as const,\n value: currency,\n filterMatchers: currency.keywords,\n };\n};\n\nconst getCurrencyGroup = (section: CurrencySection) => {\n return {\n type: 'group' as const,\n label: section.title,\n options: section.currencies.map(getCurrencySelectOption),\n };\n};\n\nconst getUniqueCurrencies = (options: CurrencyOptions) => {\n const allCurrencyOptions = options.flatMap((section) => section.currencies);\n const uniqueCurrencies = new Map<string, CurrencyOption>();\n\n allCurrencyOptions.forEach((currencyObj) => {\n uniqueCurrencies.set(currencyObj.code, currencyObj);\n });\n\n return Array.from(uniqueCurrencies.values());\n};\n\nconst filterAndSortCurrenciesForQuery = (\n currencies: CurrencyOption[],\n query: string,\n): CurrencyOption[] => {\n return (\n currencies\n .filter((currency) => {\n return (\n currency.code.toLowerCase().includes(query) ||\n (currency.label ?? '').toLowerCase().includes(query) ||\n currency.keywords?.some((keyword) => keyword.toLowerCase().includes(query))\n );\n })\n // prefer exact matches, then sort alphabetically by code\n .sort((a, b) => {\n const aCode = a.code.toLowerCase();\n const bCode = b.code.toLowerCase();\n if (aCode === query) {\n return -1;\n }\n if (bCode === query) {\n return 1;\n }\n return aCode.localeCompare(bCode);\n })\n );\n};\n"],"names":["CurrencySelector","id","currency","options","labelId","onChange","addons","onOpen","onSearchChange","intl","useIntl","allCurrencyOptions","useMemo","getUniqueCurrencies","activeCurrencyOption","find","option","code","disabled","length","currencies","searchQuery","setSearchQuery","useState","handleTriggerClick","event","triggerEl","currentTarget","getAttribute","items","filterAndSortCurrenciesForQuery","map","getCurrencySelectOption","getCurrencyGroup","_jsx","SelectInput","compareValues","value","filterable","filterPlaceholder","formatMessage","messages","currencySelectorSearchPlaceholder","UNSAFE_triggerButtonProps","undefined","currencySelectorSelectCurrency","renderValue","label","SelectInputOptionContent","title","note","icon","Flag","intrinsicSize","renderTrigger","SelectInputTriggerButton","as","ButtonInput","addonStart","type","asset","filter","Boolean","avatar","Object","keys","addonEnd","ChevronDown","onClick","children","newValue","onFilterChange","queryNormalized","query","resultCount","forwardRef","rest","ref","Button","size","v2","className","priority","filterMatchers","keywords","section","flatMap","uniqueCurrencies","Map","forEach","currencyObj","set","Array","from","values","toLowerCase","includes","some","keyword","sort","a","b","aCode","bCode","localeCompare"],"mappings":";;;;;;;;;;;AA4CO,MAAMA,gBAAgB,GAAGA,CAAC;EAC/BC,EAAE;EACFC,QAAQ;AACRC,EAAAA,OAAO,GAAG,EAAE;EACZC,OAAO;EACPC,QAAQ;EACRC,MAAM;EACNC,MAAM;AACNC,EAAAA;AAAc,CACR,KAAI;AACV,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;AAEtB,EAAA,MAAMC,kBAAkB,GAAGC,aAAO,CAAC,MAAMC,mBAAmB,CAACV,OAAO,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;AAEjF,EAAA,MAAMW,oBAAoB,GAAGF,aAAO,CAAC,MAAK;AACxC;IACA,OAAOD,kBAAkB,CAACI,IAAI,CAAEC,MAAM,IAAKA,MAAM,CAACC,IAAI,KAAKf,QAAQ,CAAE;AACvE,EAAA,CAAC,EAAE,CAACA,QAAQ,EAAES,kBAAkB,CAAC,CAAC;EAElC,MAAMO,QAAQ,GACZ,CAACb,QAAQ,IACTF,OAAO,CAACgB,MAAM,KAAK,CAAC,IACnBhB,OAAO,CAACgB,MAAM,KAAK,CAAC,IAAIhB,OAAO,CAAC,CAAC,CAAC,CAACiB,UAAU,CAACD,MAAM,IAAI,CAAE;EAE7D,MAA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AE1D7E,EAAAA,kBAAkB,CAAC8E,OAAO,CAAEC,WAAW,IAAI;IACzCH,gBAAgB,CAACI,GAAG,CAACD,WAAW,CAACzE,IAAI,EAAEyE,WAAW,CAAC;AACrD,EAAA,CAAC,CAAC;EAEF,OAAOE,KAAK,CAACC,IAAI,CAACN,gBAAgB,CAACO,MAAM,EAAE,CAAC;AAC9C,CAAC;AAED,MAAMhE,+BAA+B,GAAGA,CACtCV,UAA4B,EAC5BqD,KAAa,KACO;AACpB,EAAA,OACErD,UAAU,CACPyC,MAAM,CAAE3D,QAAQ,IAAI;IACnB,OACEA,QAAQ,CAACe,IAAI,CAAC8E,WAAW,EAAE,CAACC,QAAQ,CAACvB,KAAK,CAAC,IAC3C,CAACvE,QAAQ,CAAC6C,KAAK,IAAI,EAAE,EAAEgD,WAAW,EAAE,CAACC,QAAQ,CAACvB,KAAK,CAAC,IACpDvE,QAAQ,CAACkF,QAAQ,EAAEa,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACH,WAAW,EAAE,CAACC,QAAQ,CAACvB,KAAK,CAAC,CAAC;EAE/E,CAAC;AACD;AAAA,GACC0B,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAI;IACb,MAAMC,KAAK,GAAGF,CAAC,CAACnF,IAAI,CAAC8E,WAAW,EAAE;IAClC,MAAMQ,KAAK,GAAGF,CAAC,CAACpF,IAAI,CAAC8E,WAAW,EAAE;IAClC,IAAIO,KAAK,KAAK7B,KAAK,EAAE;AACnB,MAAA,OAAO,EAAE;AACX,IAAA;IACA,IAAI8B,KAAK,KAAK9B,KAAK,EAAE;AACnB,MAAA,OAAO,CAAC;AACV,IAAA;AACA,IAAA,OAAO6B,KAAK,CAACE,aAAa,CAACD,KAAK,CAAC;AACnC,EAAA,CAAC,CAAC;AAER,CAAC;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencySelector.mjs","sources":["../../../src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx"],"sourcesContent":["import type { AvatarLayoutProps } from '../../avatarLayout';\nimport Button from '../../button';\nimport {\n SelectInput,\n SelectInputOptionContent,\n SelectInputTriggerButton,\n} from '../../inputs/SelectInput';\nimport { CurrencyType, Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\nimport { ChevronDown } from '@transferwise/icons';\nimport { Flag } from '@wise/art';\nimport {\n type ButtonHTMLAttributes,\n forwardRef,\n type MouseEventHandler,\n useMemo,\n useState,\n} from 'react';\nimport { useIntl } from 'react-intl';\n\nimport messages from '../ExpressiveMoneyInput.messages';\n\nexport interface CurrencyOption {\n label?: string;\n code: string;\n keywords: string[] | undefined;\n}\n\nexport interface CurrencySection {\n title: string;\n currencies: CurrencyOption[];\n}\n\nexport type CurrencyOptions = CurrencySection[];\n\nexport type Props = {\n id: string;\n labelId: string;\n options?: CurrencyOptions;\n onChange?: (currency: CurrencyType) => void;\n onOpen?: () => void;\n addons?: AvatarLayoutProps['avatars'];\n onSearchChange?: (payload: { query: string; resultCount: number }) => void;\n} & Pick<ExpressiveMoneyInputProps, 'currency'>;\n\nexport const CurrencySelector = ({\n id,\n currency,\n options = [],\n labelId,\n onChange,\n addons,\n onOpen,\n onSearchChange,\n}: Props) => {\n const intl = useIntl();\n\n const allCurrencyOptions = useMemo(() => getUniqueCurrencies(options), [options]);\n\n const activeCurrencyOption = useMemo(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return allCurrencyOptions.find((option) => option.code === currency)!;\n }, [currency, allCurrencyOptions]);\n\n const disabled =\n !onChange ||\n options.length === 0 ||\n (options.length === 1 && options[0].currencies.length <= 1);\n\n const [searchQuery, setSearchQuery] = useState<string>('');\n\n const handleTriggerClick: MouseEventHandler = (event) => {\n const triggerEl = event.currentTarget;\n if (triggerEl?.getAttribute('aria-expanded') === 'false') {\n onOpen?.();\n }\n };\n\n const items = searchQuery\n ? filterAndSortCurrenciesForQuery(allCurrencyOptions, searchQuery).map(getCurrencySelectOption)\n : options.map(getCurrencyGroup);\n\n return (\n <SelectInput\n compareValues=\"code\"\n disabled={disabled}\n id={id}\n value={activeCurrencyOption}\n filterable\n filterPlaceholder={intl.formatMessage(messages.currencySelectorSearchPlaceholder)}\n UNSAFE_triggerButtonProps={{\n id: undefined,\n 'aria-labelledby': undefined,\n 'aria-describedby': labelId,\n 'aria-invalid': undefined,\n 'aria-label': intl.formatMessage(messages.currencySelectorSelectCurrency),\n }}\n items={items}\n renderValue={({ code, label }) => {\n return (\n <SelectInputOptionContent\n title={code}\n note={label}\n icon={<Flag code={code} intrinsicSize={24} />}\n />\n );\n }}\n renderTrigger={() => (\n <SelectInputTriggerButton\n as={ButtonInput}\n // @ts-expect-error new (v2) ButtonProps\n addonStart={{\n type: 'avatar',\n value: [\n addons ? addons[0] : null,\n {\n ...(addons && addons.length > 1\n ? { ...addons[1] }\n : {\n asset: <Flag code={currency} />,\n }),\n },\n ]\n .filter(Boolean)\n .filter((avatar) => !(avatar && Object.keys(avatar).length === 0)),\n }}\n addonEnd={disabled ? undefined : { type: 'icon', value: <ChevronDown /> }}\n onClick={(event) => handleTriggerClick(event)}\n >\n {currency}\n </SelectInputTriggerButton>\n )}\n onChange={(newValue) => {\n onChange?.(newValue.code);\n }}\n onFilterChange={({ queryNormalized }) => {\n setSearchQuery(queryNormalized ?? '');\n if (queryNormalized) {\n onSearchChange?.({\n query: queryNormalized,\n resultCount: filterAndSortCurrenciesForQuery(allCurrencyOptions, queryNormalized)\n .length,\n });\n }\n }}\n />\n );\n};\n\nexport const ButtonInput = forwardRef(function ButtonInput(\n { children, ...rest }: React.PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>,\n ref: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n return (\n <Button\n ref={ref}\n size=\"md\"\n v2\n className=\"wds-currency-selector\"\n priority=\"secondary-neutral\"\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nconst getCurrencySelectOption = (currency: CurrencyOption) => {\n return {\n type: 'option' as const,\n value: currency,\n filterMatchers: currency.keywords,\n };\n};\n\nconst getCurrencyGroup = (section: CurrencySection) => {\n return {\n type: 'group' as const,\n label: section.title,\n options: section.currencies.map(getCurrencySelectOption),\n };\n};\n\nconst getUniqueCurrencies = (options: CurrencyOptions) => {\n const allCurrencyOptions = options.flatMap((section) => section.currencies);\n const uniqueCurrencies = new Map<string, CurrencyOption>();\n\n allCurrencyOptions.forEach((currencyObj) => {\n uniqueCurrencies.set(currencyObj.code, currencyObj);\n });\n\n return Array.from(uniqueCurrencies.values());\n};\n\nconst filterAndSortCurrenciesForQuery = (\n currencies: CurrencyOption[],\n query: string,\n): CurrencyOption[] => {\n return (\n currencies\n .filter((currency) => {\n return (\n currency.code.toLowerCase().includes(query) ||\n (currency.label ?? '').toLowerCase().includes(query) ||\n currency.keywords?.some((keyword) => keyword.toLowerCase().includes(query))\n );\n })\n // prefer exact matches, then sort alphabetically by code\n .sort((a, b) => {\n const aCode = a.code.toLowerCase();\n const bCode = b.code.toLowerCase();\n if (aCode === query) {\n return -1;\n }\n if (bCode === query) {\n return 1;\n }\n return aCode.localeCompare(bCode);\n })\n );\n};\n"],"names":["CurrencySelector","id","currency","options","labelId","onChange","addons","onOpen","onSearchChange","intl","useIntl","allCurrencyOptions","useMemo","getUniqueCurrencies","activeCurrencyOption","find","option","code","disabled","length","currencies","searchQuery","setSearchQuery","useState","handleTriggerClick","event","triggerEl","currentTarget","getAttribute","items","filterAndSortCurrenciesForQuery","map","getCurrencySelectOption","getCurrencyGroup","_jsx","SelectInput","compareValues","value","filterable","filterPlaceholder","formatMessage","messages","currencySelectorSearchPlaceholder","UNSAFE_triggerButtonProps","undefined","currencySelectorSelectCurrency","renderValue","label","SelectInputOptionContent","title","note","icon","Flag","intrinsicSize","renderTrigger","SelectInputTriggerButton","as","ButtonInput","addonStart","type","asset","filter","Boolean","avatar","Object","keys","addonEnd","ChevronDown","onClick","children","newValue","onFilterChange","queryNormalized","query","resultCount","forwardRef","rest","ref","Button","size","v2","className","priority","filterMatchers","keywords","section","flatMap","uniqueCurrencies","Map","forEach","currencyObj","set","Array","from","values","toLowerCase","includes","some","keyword","sort","a","b","aCode","bCode","localeCompare"],"mappings":";;;;;;;;;AA4CO,MAAMA,gBAAgB,GAAGA,CAAC;EAC/BC,EAAE;EACFC,QAAQ;AACRC,EAAAA,OAAO,GAAG,EAAE;EACZC,OAAO;EACPC,QAAQ;EACRC,MAAM;EACNC,MAAM;AACNC,EAAAA;AACK,CAAC,KAAK;AACX,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;AAEtB,EAAA,MAAMC,kBAAkB,GAAGC,OAAO,CAAC,MAAMC,mBAAmB,CAACV,OAAO,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;AAEjF,EAAA,MAAMW,oBAAoB,GAAGF,OAAO,CAAC,MAAM;AACzC;IACA,OAAOD,kBAAkB,CAACI,IAAI,CAAEC,MAAM,IAAKA,MAAM,CAACC,IAAI,KAAKf,QAAQ,CAAC;AACtE,EAAA,CAAC,EAAE,CAACA,QAAQ,EAAES,kBAAkB,CAAC,CAAC;EAElC,MAAMO,QAAQ,GACZ,CAACb,QAAQ,IACTF,OAAO,CAACgB,MAAM,KAAK,CAAC,IACnBhB,OAAO,CAACgB,MAAM,KAAK,CAAC,IAAIhB,OAAO,CAAC,CAAC,CAAC,CAACiB,UAAU,CAACD,MAAM,IAAI,CAAE;EAE7D,MAAM,CAACE,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,CAAS,EAAE,CAAC;EAE1D,MAAMC,kBAAqC,GAAIC,KAAK,IAAK;AACvD,IAAA,MAAMC,SAAS,GAAGD,KAAK,CAACE,aAAa;IACrC,IAAID,SAAS,EAAEE,YAAY,CAAC,eAAe,CAAC,KAAK,OAAO,EAAE;AACxDrB,MAAAA,MAAM,IAAI;AACZ,IAAA;EACF,CAAC;EAED,MAAMsB,KAAK,GAAGR,WAAW,GACrBS,+BAA+B,CAACnB,kBAAkB,EAAEU,WAAW,CAAC,CAACU,GAA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AAQ,CAACe,IAAI,CAAC8E,WAAW,EAAE,CAACC,QAAQ,CAACvB,KAAK,CAAC,IAC3C,CAACvE,QAAQ,CAAC6C,KAAK,IAAI,EAAE,EAAEgD,WAAW,EAAE,CAACC,QAAQ,CAACvB,KAAK,CAAC,IACpDvE,QAAQ,CAACkF,QAAQ,EAAEa,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACH,WAAW,EAAE,CAACC,QAAQ,CAACvB,KAAK,CAAC,CAAC;EAE/E,CAAC;AACD;AAAA,GACC0B,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK;IACd,MAAMC,KAAK,GAAGF,CAAC,CAACnF,IAAI,CAAC8E,WAAW,EAAE;IAClC,MAAMQ,KAAK,GAAGF,CAAC,CAACpF,IAAI,CAAC8E,WAAW,EAAE;IAClC,IAAIO,KAAK,KAAK7B,KAAK,EAAE;AACnB,MAAA,OAAO,EAAE;AACX,IAAA;IACA,IAAI8B,KAAK,KAAK9B,KAAK,EAAE;AACnB,MAAA,OAAO,CAAC;AACV,IAAA;AACA,IAAA,OAAO6B,KAAK,CAACE,aAAa,CAACD,KAAK,CAAC;AACnC,EAAA,CAAC,CAAC;AAER,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"CurrencySelector.mjs","sources":["../../../src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx"],"sourcesContent":["import type { AvatarLayoutProps } from '../../avatarLayout';\nimport Button from '../../button';\nimport {\n SelectInput,\n SelectInputOptionContent,\n SelectInputTriggerButton,\n} from '../../inputs/SelectInput';\nimport { CurrencyType, Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\nimport { ChevronDown } from '@transferwise/icons';\nimport { Flag } from '@wise/art';\nimport {\n type ButtonHTMLAttributes,\n forwardRef,\n type MouseEventHandler,\n useMemo,\n useState,\n} from 'react';\nimport { useIntl } from 'react-intl';\n\nimport messages from '../ExpressiveMoneyInput.messages';\n\nexport interface CurrencyOption {\n label?: string;\n code: string;\n keywords: string[] | undefined;\n}\n\nexport interface CurrencySection {\n title: string;\n currencies: CurrencyOption[];\n}\n\nexport type CurrencyOptions = CurrencySection[];\n\nexport type Props = {\n id: string;\n labelId: string;\n options?: CurrencyOptions;\n onChange?: (currency: CurrencyType) => void;\n onOpen?: () => void;\n addons?: AvatarLayoutProps['avatars'];\n onSearchChange?: (payload: { query: string; resultCount: number }) => void;\n} & Pick<ExpressiveMoneyInputProps, 'currency'>;\n\nexport const CurrencySelector = ({\n id,\n currency,\n options = [],\n labelId,\n onChange,\n addons,\n onOpen,\n onSearchChange,\n}: Props) => {\n const intl = useIntl();\n\n const allCurrencyOptions = useMemo(() => getUniqueCurrencies(options), [options]);\n\n const activeCurrencyOption = useMemo(() => {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return allCurrencyOptions.find((option) => option.code === currency)!;\n }, [currency, allCurrencyOptions]);\n\n const disabled =\n !onChange ||\n options.length === 0 ||\n (options.length === 1 && options[0].currencies.length <= 1);\n\n const [searchQuery, setSearchQuery] = useState<string>('');\n\n const handleTriggerClick: MouseEventHandler = (event) => {\n const triggerEl = event.currentTarget;\n if (triggerEl?.getAttribute('aria-expanded') === 'false') {\n onOpen?.();\n }\n };\n\n const items = searchQuery\n ? filterAndSortCurrenciesForQuery(allCurrencyOptions, searchQuery).map(getCurrencySelectOption)\n : options.map(getCurrencyGroup);\n\n return (\n <SelectInput\n compareValues=\"code\"\n disabled={disabled}\n id={id}\n value={activeCurrencyOption}\n filterable\n filterPlaceholder={intl.formatMessage(messages.currencySelectorSearchPlaceholder)}\n UNSAFE_triggerButtonProps={{\n id: undefined,\n 'aria-labelledby': undefined,\n 'aria-describedby': labelId,\n 'aria-invalid': undefined,\n 'aria-label': intl.formatMessage(messages.currencySelectorSelectCurrency),\n }}\n items={items}\n renderValue={({ code, label }) => {\n return (\n <SelectInputOptionContent\n title={code}\n note={label}\n icon={<Flag code={code} intrinsicSize={24} />}\n />\n );\n }}\n renderTrigger={() => (\n <SelectInputTriggerButton\n as={ButtonInput}\n // @ts-expect-error new (v2) ButtonProps\n addonStart={{\n type: 'avatar',\n value: [\n addons ? addons[0] : null,\n {\n ...(addons && addons.length > 1\n ? { ...addons[1] }\n : {\n asset: <Flag code={currency} />,\n }),\n },\n ]\n .filter(Boolean)\n .filter((avatar) => !(avatar && Object.keys(avatar).length === 0)),\n }}\n addonEnd={disabled ? undefined : { type: 'icon', value: <ChevronDown /> }}\n onClick={(event) => handleTriggerClick(event)}\n >\n {currency}\n </SelectInputTriggerButton>\n )}\n onChange={(newValue) => {\n onChange?.(newValue.code);\n }}\n onFilterChange={({ queryNormalized }) => {\n setSearchQuery(queryNormalized ?? '');\n if (queryNormalized) {\n onSearchChange?.({\n query: queryNormalized,\n resultCount: filterAndSortCurrenciesForQuery(allCurrencyOptions, queryNormalized)\n .length,\n });\n }\n }}\n />\n );\n};\n\nexport const ButtonInput = forwardRef(function ButtonInput(\n { children, ...rest }: React.PropsWithChildren<ButtonHTMLAttributes<HTMLButtonElement>>,\n ref: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n return (\n <Button\n ref={ref}\n size=\"md\"\n v2\n className=\"wds-currency-selector\"\n priority=\"secondary-neutral\"\n {...rest}\n >\n {children}\n </Button>\n );\n});\n\nconst getCurrencySelectOption = (currency: CurrencyOption) => {\n return {\n type: 'option' as const,\n value: currency,\n filterMatchers: currency.keywords,\n };\n};\n\nconst getCurrencyGroup = (section: CurrencySection) => {\n return {\n type: 'group' as const,\n label: section.title,\n options: section.currencies.map(getCurrencySelectOption),\n };\n};\n\nconst getUniqueCurrencies = (options: CurrencyOptions) => {\n const allCurrencyOptions = options.flatMap((section) => section.currencies);\n const uniqueCurrencies = new Map<string, CurrencyOption>();\n\n allCurrencyOptions.forEach((currencyObj) => {\n uniqueCurrencies.set(currencyObj.code, currencyObj);\n });\n\n return Array.from(uniqueCurrencies.values());\n};\n\nconst filterAndSortCurrenciesForQuery = (\n currencies: CurrencyOption[],\n query: string,\n): CurrencyOption[] => {\n return (\n currencies\n .filter((currency) => {\n return (\n currency.code.toLowerCase().includes(query) ||\n (currency.label ?? '').toLowerCase().includes(query) ||\n currency.keywords?.some((keyword) => keyword.toLowerCase().includes(query))\n );\n })\n // prefer exact matches, then sort alphabetically by code\n .sort((a, b) => {\n const aCode = a.code.toLowerCase();\n const bCode = b.code.toLowerCase();\n if (aCode === query) {\n return -1;\n }\n if (bCode === query) {\n return 1;\n }\n return aCode.localeCompare(bCode);\n })\n );\n};\n"],"names":["CurrencySelector","id","currency","options","labelId","onChange","addons","onOpen","onSearchChange","intl","useIntl","allCurrencyOptions","useMemo","getUniqueCurrencies","activeCurrencyOption","find","option","code","disabled","length","currencies","searchQuery","setSearchQuery","useState","handleTriggerClick","event","triggerEl","currentTarget","getAttribute","items","filterAndSortCurrenciesForQuery","map","getCurrencySelectOption","getCurrencyGroup","_jsx","SelectInput","compareValues","value","filterable","filterPlaceholder","formatMessage","messages","currencySelectorSearchPlaceholder","UNSAFE_triggerButtonProps","undefined","currencySelectorSelectCurrency","renderValue","label","SelectInputOptionContent","title","note","icon","Flag","intrinsicSize","renderTrigger","SelectInputTriggerButton","as","ButtonInput","addonStart","type","asset","filter","Boolean","avatar","Object","keys","addonEnd","ChevronDown","onClick","children","newValue","onFilterChange","queryNormalized","query","resultCount","forwardRef","rest","ref","Button","size","v2","className","priority","filterMatchers","keywords","section","flatMap","uniqueCurrencies","Map","forEach","currencyObj","set","Array","from","values","toLowerCase","includes","some","keyword","sort","a","b","aCode","bCode","localeCompare"],"mappings":";;;;;;;;;AA4CO,MAAMA,gBAAgB,GAAGA,CAAC;EAC/BC,EAAE;EACFC,QAAQ;AACRC,EAAAA,OAAO,GAAG,EAAE;EACZC,OAAO;EACPC,QAAQ;EACRC,MAAM;EACNC,MAAM;AACNC,EAAAA;AAAc,CACR,KAAI;AACV,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;AAEtB,EAAA,MAAMC,kBAAkB,GAAGC,OAAO,CAAC,MAAMC,mBA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AAC,CAACnF,IAAI,CAAC8E,WAAW,EAAE;IAClC,MAAMQ,KAAK,GAAGF,CAAC,CAACpF,IAAI,CAAC8E,WAAW,EAAE;IAClC,IAAIO,KAAK,KAAK7B,KAAK,EAAE;AACnB,MAAA,OAAO,EAAE;AACX,IAAA;IACA,IAAI8B,KAAK,KAAK9B,KAAK,EAAE;AACnB,MAAA,OAAO,CAAC;AACV,IAAA;AACA,IAAA,OAAO6B,KAAK,CAACE,aAAa,CAACD,KAAK,CAAC;AACnC,EAAA,CAAC,CAAC;AAER,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocus.js","sources":["../../../src/expressiveMoneyInput/hooks/useFocus.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst focusTimeout = 5 * 1000;\n\nexport const useFocus = () => {\n const [focus, setFocus] = useState(false);\n const [visualFocus, setVisualFocus] = useState(false);\n const [counter, setCounter] = useState(0);\n\n useEffect(() => {\n if (focus) {\n const timeout = setTimeout(() => {\n setVisualFocus(false);\n }, focusTimeout);\n return () => clearTimeout(timeout);\n }\n }, [focus, counter]);\n\n return {\n focus,\n setFocus: (value: boolean) => {\n setFocus(value);\n if (value) {\n setVisualFocus(true);\n }\n // any call to setFocus should reset the timeout, even if the input was already in focus\n // updating the counter will trigger the useEffect to reset the timeout\n setCounter((prev) => prev + 1);\n },\n visualFocus,\n setVisualFocus: (value: boolean) => {\n setVisualFocus(value);\n },\n };\n};\n"],"names":["focusTimeout","useFocus","focus","setFocus","useState","visualFocus","setVisualFocus","counter","setCounter","useEffect","timeout","setTimeout","clearTimeout","value","prev"],"mappings":";;;;AAEA,MAAMA,YAAY,GAAG,CAAC,GAAG,IAAI;AAEtB,MAAMC,QAAQ,GAAGA,
|
|
1
|
+
{"version":3,"file":"useFocus.js","sources":["../../../src/expressiveMoneyInput/hooks/useFocus.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst focusTimeout = 5 * 1000;\n\nexport const useFocus = () => {\n const [focus, setFocus] = useState(false);\n const [visualFocus, setVisualFocus] = useState(false);\n const [counter, setCounter] = useState(0);\n\n useEffect(() => {\n if (focus) {\n const timeout = setTimeout(() => {\n setVisualFocus(false);\n }, focusTimeout);\n return () => clearTimeout(timeout);\n }\n }, [focus, counter]);\n\n return {\n focus,\n setFocus: (value: boolean) => {\n setFocus(value);\n if (value) {\n setVisualFocus(true);\n }\n // any call to setFocus should reset the timeout, even if the input was already in focus\n // updating the counter will trigger the useEffect to reset the timeout\n setCounter((prev) => prev + 1);\n },\n visualFocus,\n setVisualFocus: (value: boolean) => {\n setVisualFocus(value);\n },\n };\n};\n"],"names":["focusTimeout","useFocus","focus","setFocus","useState","visualFocus","setVisualFocus","counter","setCounter","useEffect","timeout","setTimeout","clearTimeout","value","prev"],"mappings":";;;;AAEA,MAAMA,YAAY,GAAG,CAAC,GAAG,IAAI;AAEtB,MAAMC,QAAQ,GAAGA,MAAK;EAC3B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,cAAQ,CAAC,KAAK,CAAC;EACzC,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGF,cAAQ,CAAC,KAAK,CAAC;EACrD,MAAM,CAACG,OAAO,EAAEC,UAAU,CAAC,GAAGJ,cAAQ,CAAC,CAAC,CAAC;AAEzCK,EAAAA,eAAS,CAAC,MAAK;AACb,IAAA,IAAIP,KAAK,EAAE;AACT,MAAA,MAAMQ,OAAO,GAAGC,UAAU,CAAC,MAAK;QAC9BL,cAAc,CAAC,KAAK,CAAC;MACvB,CAAC,EAAEN,YAAY,CAAC;AAChB,MAAA,OAAO,MAAMY,YAAY,CAACF,OAAO,CAAC;AACpC,IAAA;AACF,EAAA,CAAC,EAAE,CAACR,KAAK,EAAEK,OAAO,CAAC,CAAC;EAEpB,OAAO;IACLL,KAAK;IACLC,QAAQ,EAAGU,KAAc,IAAI;MAC3BV,QAAQ,CAACU,KAAK,CAAC;AACf,MAAA,IAAIA,KAAK,EAAE;QACTP,cAAc,CAAC,IAAI,CAAC;AACtB,MAAA;AACA;AACA;AACAE,MAAAA,UAAU,CAAEM,IAAI,IAAKA,IAAI,GAAG,CAAC,CAAC;IAChC,CAAC;IACDT,WAAW;IACXC,cAAc,EAAGO,KAAc,IAAI;MACjCP,cAAc,CAACO,KAAK,CAAC;AACvB,IAAA;GACD;AACH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocus.mjs","sources":["../../../src/expressiveMoneyInput/hooks/useFocus.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst focusTimeout = 5 * 1000;\n\nexport const useFocus = () => {\n const [focus, setFocus] = useState(false);\n const [visualFocus, setVisualFocus] = useState(false);\n const [counter, setCounter] = useState(0);\n\n useEffect(() => {\n if (focus) {\n const timeout = setTimeout(() => {\n setVisualFocus(false);\n }, focusTimeout);\n return () => clearTimeout(timeout);\n }\n }, [focus, counter]);\n\n return {\n focus,\n setFocus: (value: boolean) => {\n setFocus(value);\n if (value) {\n setVisualFocus(true);\n }\n // any call to setFocus should reset the timeout, even if the input was already in focus\n // updating the counter will trigger the useEffect to reset the timeout\n setCounter((prev) => prev + 1);\n },\n visualFocus,\n setVisualFocus: (value: boolean) => {\n setVisualFocus(value);\n },\n };\n};\n"],"names":["focusTimeout","useFocus","focus","setFocus","useState","visualFocus","setVisualFocus","counter","setCounter","useEffect","timeout","setTimeout","clearTimeout","value","prev"],"mappings":";;AAEA,MAAMA,YAAY,GAAG,CAAC,GAAG,IAAI;AAEtB,MAAMC,QAAQ,GAAGA,
|
|
1
|
+
{"version":3,"file":"useFocus.mjs","sources":["../../../src/expressiveMoneyInput/hooks/useFocus.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nconst focusTimeout = 5 * 1000;\n\nexport const useFocus = () => {\n const [focus, setFocus] = useState(false);\n const [visualFocus, setVisualFocus] = useState(false);\n const [counter, setCounter] = useState(0);\n\n useEffect(() => {\n if (focus) {\n const timeout = setTimeout(() => {\n setVisualFocus(false);\n }, focusTimeout);\n return () => clearTimeout(timeout);\n }\n }, [focus, counter]);\n\n return {\n focus,\n setFocus: (value: boolean) => {\n setFocus(value);\n if (value) {\n setVisualFocus(true);\n }\n // any call to setFocus should reset the timeout, even if the input was already in focus\n // updating the counter will trigger the useEffect to reset the timeout\n setCounter((prev) => prev + 1);\n },\n visualFocus,\n setVisualFocus: (value: boolean) => {\n setVisualFocus(value);\n },\n };\n};\n"],"names":["focusTimeout","useFocus","focus","setFocus","useState","visualFocus","setVisualFocus","counter","setCounter","useEffect","timeout","setTimeout","clearTimeout","value","prev"],"mappings":";;AAEA,MAAMA,YAAY,GAAG,CAAC,GAAG,IAAI;AAEtB,MAAMC,QAAQ,GAAGA,MAAK;EAC3B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC;EACzC,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGF,QAAQ,CAAC,KAAK,CAAC;EACrD,MAAM,CAACG,OAAO,EAAEC,UAAU,CAAC,GAAGJ,QAAQ,CAAC,CAAC,CAAC;AAEzCK,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,IAAIP,KAAK,EAAE;AACT,MAAA,MAAMQ,OAAO,GAAGC,UAAU,CAAC,MAAK;QAC9BL,cAAc,CAAC,KAAK,CAAC;MACvB,CAAC,EAAEN,YAAY,CAAC;AAChB,MAAA,OAAO,MAAMY,YAAY,CAACF,OAAO,CAAC;AACpC,IAAA;AACF,EAAA,CAAC,EAAE,CAACR,KAAK,EAAEK,OAAO,CAAC,CAAC;EAEpB,OAAO;IACLL,KAAK;IACLC,QAAQ,EAAGU,KAAc,IAAI;MAC3BV,QAAQ,CAACU,KAAK,CAAC;AACf,MAAA,IAAIA,KAAK,EAAE;QACTP,cAAc,CAAC,IAAI,CAAC;AACtB,MAAA;AACA;AACA;AACAE,MAAAA,UAAU,CAAEM,IAAI,IAAKA,IAAI,GAAG,CAAC,CAAC;IAChC,CAAC;IACDT,WAAW;IACXC,cAAc,EAAGO,KAAc,IAAI;MACjCP,cAAc,CAACO,KAAK,CAAC;AACvB,IAAA;GACD;AACH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputStyle.js","sources":["../../../src/expressiveMoneyInput/hooks/useInputStyle.ts"],"sourcesContent":["import { type CSSProperties, useEffect, useLayoutEffect, useState } from 'react';\nimport { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\n\ntype InputStyleObject = {\n value: string;\n focus: boolean;\n inputElement: HTMLInputElement | null;\n} & Pick<ExpressiveMoneyInputProps, 'loading'>;\n\nexport const useInputStyle = ({ value, focus, inputElement, loading }: InputStyleObject) => {\n const initialRender = !useTimeout(300);\n const inputWidth = useFirstDefinedValue(inputElement?.clientWidth, [inputElement, value]);\n\n const getStyle = (): CSSProperties => {\n const fontSize = getFontSize(value, focus, inputWidth);\n\n return {\n fontSize,\n height: fontSize,\n // aligns the top of the digit with the currency button\n marginTop: fontSize * -0.19,\n // if the input loads with a pre-filled value, we don't want to animate the font-size immediately\n transition: initialRender ? 'none' : undefined,\n color: loading ? 'var(--color-interactive-secondary)' : undefined,\n };\n };\n\n const [style, setStyle] = useState(getStyle());\n\n useLayoutEffect(() => {\n setStyle(getStyle());\n }, [value, focus, loading, inputWidth]);\n\n return style;\n};\n\nfunction getFontSize(inputValue: string, isFocused: boolean, inputWidth: number | undefined) {\n const defaultFontSize = 52;\n const focusFontSize = 90;\n const minimumFontSize = 34;\n\n let fontSize = isFocused ? focusFontSize : defaultFontSize;\n\n if (typeof inputWidth === 'undefined') {\n return fontSize;\n }\n const textLength = inputValue.length;\n const maxCharactersWithoutShrinking = Math.floor(inputWidth / 40);\n\n if (textLength > maxCharactersWithoutShrinking) {\n const adjustedSize = Math.round((inputWidth / textLength) * 1.9);\n fontSize = Math.min(fontSize, adjustedSize);\n }\n\n return Math.max(fontSize, minimumFontSize);\n}\n\nconst useFirstDefinedValue = (newValue: number | undefined, dependencies: unknown[]) => {\n const [value, setValue] = useState<number | undefined>(newValue);\n\n useLayoutEffect(() => {\n if (typeof newValue !== 'undefined' && typeof value === 'undefined') {\n setValue(newValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [...dependencies, value]);\n\n return value;\n};\n\nconst useTimeout = (delay: number) => {\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n setReady(true);\n }, delay);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [delay]);\n\n return ready;\n};\n"],"names":["useInputStyle","value","focus","inputElement","loading","initialRender","useTimeout","inputWidth","useFirstDefinedValue","clientWidth","getStyle","fontSize","getFontSize","height","marginTop","transition","undefined","color","style","setStyle","useState","useLayoutEffect","inputValue","isFocused","defaultFontSize","focusFontSize","minimumFontSize","textLength","length","maxCharactersWithoutShrinking","Math","floor","adjustedSize","round","min","max","newValue","dependencies","setValue","delay","ready","setReady","useEffect","timeout","setTimeout","clearTimeout"],"mappings":";;;;AASO,MAAMA,aAAa,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,YAAY;AAAEC,EAAAA;
|
|
1
|
+
{"version":3,"file":"useInputStyle.js","sources":["../../../src/expressiveMoneyInput/hooks/useInputStyle.ts"],"sourcesContent":["import { type CSSProperties, useEffect, useLayoutEffect, useState } from 'react';\nimport { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\n\ntype InputStyleObject = {\n value: string;\n focus: boolean;\n inputElement: HTMLInputElement | null;\n} & Pick<ExpressiveMoneyInputProps, 'loading'>;\n\nexport const useInputStyle = ({ value, focus, inputElement, loading }: InputStyleObject) => {\n const initialRender = !useTimeout(300);\n const inputWidth = useFirstDefinedValue(inputElement?.clientWidth, [inputElement, value]);\n\n const getStyle = (): CSSProperties => {\n const fontSize = getFontSize(value, focus, inputWidth);\n\n return {\n fontSize,\n height: fontSize,\n // aligns the top of the digit with the currency button\n marginTop: fontSize * -0.19,\n // if the input loads with a pre-filled value, we don't want to animate the font-size immediately\n transition: initialRender ? 'none' : undefined,\n color: loading ? 'var(--color-interactive-secondary)' : undefined,\n };\n };\n\n const [style, setStyle] = useState(getStyle());\n\n useLayoutEffect(() => {\n setStyle(getStyle());\n }, [value, focus, loading, inputWidth]);\n\n return style;\n};\n\nfunction getFontSize(inputValue: string, isFocused: boolean, inputWidth: number | undefined) {\n const defaultFontSize = 52;\n const focusFontSize = 90;\n const minimumFontSize = 34;\n\n let fontSize = isFocused ? focusFontSize : defaultFontSize;\n\n if (typeof inputWidth === 'undefined') {\n return fontSize;\n }\n const textLength = inputValue.length;\n const maxCharactersWithoutShrinking = Math.floor(inputWidth / 40);\n\n if (textLength > maxCharactersWithoutShrinking) {\n const adjustedSize = Math.round((inputWidth / textLength) * 1.9);\n fontSize = Math.min(fontSize, adjustedSize);\n }\n\n return Math.max(fontSize, minimumFontSize);\n}\n\nconst useFirstDefinedValue = (newValue: number | undefined, dependencies: unknown[]) => {\n const [value, setValue] = useState<number | undefined>(newValue);\n\n useLayoutEffect(() => {\n if (typeof newValue !== 'undefined' && typeof value === 'undefined') {\n setValue(newValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [...dependencies, value]);\n\n return value;\n};\n\nconst useTimeout = (delay: number) => {\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n setReady(true);\n }, delay);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [delay]);\n\n return ready;\n};\n"],"names":["useInputStyle","value","focus","inputElement","loading","initialRender","useTimeout","inputWidth","useFirstDefinedValue","clientWidth","getStyle","fontSize","getFontSize","height","marginTop","transition","undefined","color","style","setStyle","useState","useLayoutEffect","inputValue","isFocused","defaultFontSize","focusFontSize","minimumFontSize","textLength","length","maxCharactersWithoutShrinking","Math","floor","adjustedSize","round","min","max","newValue","dependencies","setValue","delay","ready","setReady","useEffect","timeout","setTimeout","clearTimeout"],"mappings":";;;;AASO,MAAMA,aAA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EAAA,OAAOC,KAAK;AACd,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputStyle.mjs","sources":["../../../src/expressiveMoneyInput/hooks/useInputStyle.ts"],"sourcesContent":["import { type CSSProperties, useEffect, useLayoutEffect, useState } from 'react';\nimport { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\n\ntype InputStyleObject = {\n value: string;\n focus: boolean;\n inputElement: HTMLInputElement | null;\n} & Pick<ExpressiveMoneyInputProps, 'loading'>;\n\nexport const useInputStyle = ({ value, focus, inputElement, loading }: InputStyleObject) => {\n const initialRender = !useTimeout(300);\n const inputWidth = useFirstDefinedValue(inputElement?.clientWidth, [inputElement, value]);\n\n const getStyle = (): CSSProperties => {\n const fontSize = getFontSize(value, focus, inputWidth);\n\n return {\n fontSize,\n height: fontSize,\n // aligns the top of the digit with the currency button\n marginTop: fontSize * -0.19,\n // if the input loads with a pre-filled value, we don't want to animate the font-size immediately\n transition: initialRender ? 'none' : undefined,\n color: loading ? 'var(--color-interactive-secondary)' : undefined,\n };\n };\n\n const [style, setStyle] = useState(getStyle());\n\n useLayoutEffect(() => {\n setStyle(getStyle());\n }, [value, focus, loading, inputWidth]);\n\n return style;\n};\n\nfunction getFontSize(inputValue: string, isFocused: boolean, inputWidth: number | undefined) {\n const defaultFontSize = 52;\n const focusFontSize = 90;\n const minimumFontSize = 34;\n\n let fontSize = isFocused ? focusFontSize : defaultFontSize;\n\n if (typeof inputWidth === 'undefined') {\n return fontSize;\n }\n const textLength = inputValue.length;\n const maxCharactersWithoutShrinking = Math.floor(inputWidth / 40);\n\n if (textLength > maxCharactersWithoutShrinking) {\n const adjustedSize = Math.round((inputWidth / textLength) * 1.9);\n fontSize = Math.min(fontSize, adjustedSize);\n }\n\n return Math.max(fontSize, minimumFontSize);\n}\n\nconst useFirstDefinedValue = (newValue: number | undefined, dependencies: unknown[]) => {\n const [value, setValue] = useState<number | undefined>(newValue);\n\n useLayoutEffect(() => {\n if (typeof newValue !== 'undefined' && typeof value === 'undefined') {\n setValue(newValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [...dependencies, value]);\n\n return value;\n};\n\nconst useTimeout = (delay: number) => {\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n setReady(true);\n }, delay);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [delay]);\n\n return ready;\n};\n"],"names":["useInputStyle","value","focus","inputElement","loading","initialRender","useTimeout","inputWidth","useFirstDefinedValue","clientWidth","getStyle","fontSize","getFontSize","height","marginTop","transition","undefined","color","style","setStyle","useState","useLayoutEffect","inputValue","isFocused","defaultFontSize","focusFontSize","minimumFontSize","textLength","length","maxCharactersWithoutShrinking","Math","floor","adjustedSize","round","min","max","newValue","dependencies","setValue","delay","ready","setReady","useEffect","timeout","setTimeout","clearTimeout"],"mappings":";;AASO,MAAMA,aAAa,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,YAAY;AAAEC,EAAAA;
|
|
1
|
+
{"version":3,"file":"useInputStyle.mjs","sources":["../../../src/expressiveMoneyInput/hooks/useInputStyle.ts"],"sourcesContent":["import { type CSSProperties, useEffect, useLayoutEffect, useState } from 'react';\nimport { Props as ExpressiveMoneyInputProps } from '../ExpressiveMoneyInput';\n\ntype InputStyleObject = {\n value: string;\n focus: boolean;\n inputElement: HTMLInputElement | null;\n} & Pick<ExpressiveMoneyInputProps, 'loading'>;\n\nexport const useInputStyle = ({ value, focus, inputElement, loading }: InputStyleObject) => {\n const initialRender = !useTimeout(300);\n const inputWidth = useFirstDefinedValue(inputElement?.clientWidth, [inputElement, value]);\n\n const getStyle = (): CSSProperties => {\n const fontSize = getFontSize(value, focus, inputWidth);\n\n return {\n fontSize,\n height: fontSize,\n // aligns the top of the digit with the currency button\n marginTop: fontSize * -0.19,\n // if the input loads with a pre-filled value, we don't want to animate the font-size immediately\n transition: initialRender ? 'none' : undefined,\n color: loading ? 'var(--color-interactive-secondary)' : undefined,\n };\n };\n\n const [style, setStyle] = useState(getStyle());\n\n useLayoutEffect(() => {\n setStyle(getStyle());\n }, [value, focus, loading, inputWidth]);\n\n return style;\n};\n\nfunction getFontSize(inputValue: string, isFocused: boolean, inputWidth: number | undefined) {\n const defaultFontSize = 52;\n const focusFontSize = 90;\n const minimumFontSize = 34;\n\n let fontSize = isFocused ? focusFontSize : defaultFontSize;\n\n if (typeof inputWidth === 'undefined') {\n return fontSize;\n }\n const textLength = inputValue.length;\n const maxCharactersWithoutShrinking = Math.floor(inputWidth / 40);\n\n if (textLength > maxCharactersWithoutShrinking) {\n const adjustedSize = Math.round((inputWidth / textLength) * 1.9);\n fontSize = Math.min(fontSize, adjustedSize);\n }\n\n return Math.max(fontSize, minimumFontSize);\n}\n\nconst useFirstDefinedValue = (newValue: number | undefined, dependencies: unknown[]) => {\n const [value, setValue] = useState<number | undefined>(newValue);\n\n useLayoutEffect(() => {\n if (typeof newValue !== 'undefined' && typeof value === 'undefined') {\n setValue(newValue);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [...dependencies, value]);\n\n return value;\n};\n\nconst useTimeout = (delay: number) => {\n const [ready, setReady] = useState(false);\n\n useEffect(() => {\n const timeout = setTimeout(() => {\n setReady(true);\n }, delay);\n\n return () => {\n clearTimeout(timeout);\n };\n }, [delay]);\n\n return ready;\n};\n"],"names":["useInputStyle","value","focus","inputElement","loading","initialRender","useTimeout","inputWidth","useFirstDefinedValue","clientWidth","getStyle","fontSize","getFontSize","height","marginTop","transition","undefined","color","style","setStyle","useState","useLayoutEffect","inputValue","isFocused","defaultFontSize","focusFontSize","minimumFontSize","textLength","length","maxCharactersWithoutShrinking","Math","floor","adjustedSize","round","min","max","newValue","dependencies","setValue","delay","ready","setReady","useEffect","timeout","setTimeout","clearTimeout"],"mappings":";;AASO,MAAMA,aAAa,GAAGA,CAAC;EAAEC,KAAK;EAAEC,KAAK;EAAEC,YAAY;AAAEC,EAAAA;AAAO,CAAoB,K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|
2
2
|
|
|
3
3
|
var clsx = require('clsx');
|
|
4
4
|
var React = require('react');
|
|
5
|
+
require('../common/theme.js');
|
|
6
|
+
require('../common/direction.js');
|
|
7
|
+
require('../common/propsValues/control.js');
|
|
8
|
+
require('../common/propsValues/breakpoint.js');
|
|
9
|
+
require('../common/propsValues/size.js');
|
|
10
|
+
require('../common/propsValues/typography.js');
|
|
11
|
+
require('../common/propsValues/width.js');
|
|
12
|
+
require('../common/propsValues/type.js');
|
|
13
|
+
require('../common/propsValues/dateMode.js');
|
|
14
|
+
require('../common/propsValues/monthFormat.js');
|
|
15
|
+
require('../common/propsValues/position.js');
|
|
16
|
+
require('../common/propsValues/layouts.js');
|
|
17
|
+
require('../common/propsValues/status.js');
|
|
5
18
|
var sentiment = require('../common/propsValues/sentiment.js');
|
|
19
|
+
require('../common/propsValues/profileType.js');
|
|
20
|
+
require('../common/propsValues/variant.js');
|
|
21
|
+
require('../common/propsValues/scroll.js');
|
|
22
|
+
require('../common/propsValues/markdownNodeType.js');
|
|
23
|
+
require('../common/fileType.js');
|
|
6
24
|
require('@transferwise/icons');
|
|
7
25
|
require('react-intl');
|
|
8
26
|
require('../common/closeButton/CloseButton.messages.js');
|
|
@@ -34,7 +52,6 @@ const Field = ({
|
|
|
34
52
|
const inputId = id !== null ? id ?? fallbackInputId : undefined;
|
|
35
53
|
const messageId = React.useId();
|
|
36
54
|
const descriptionId = React.useId();
|
|
37
|
-
|
|
38
55
|
/**
|
|
39
56
|
* form control can have multiple messages to describe it,
|
|
40
57
|
* e.g the description underneath the label and inline alert
|