@transferwise/components 46.119.4 → 46.120.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/accordion/Accordion.js +43 -0
- package/build/accordion/Accordion.js.map +1 -1
- package/build/accordion/Accordion.mjs +43 -0
- package/build/accordion/Accordion.mjs.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.js +39 -16
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs +39 -16
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
- package/build/actionButton/ActionButton.js +3 -18
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs +3 -18
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js +8 -18
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs +8 -18
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js +6 -21
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +5 -21
- package/build/alert/Alert.mjs.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +0 -18
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs +0 -18
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
- package/build/avatar/Avatar.js +1 -18
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +1 -18
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatar/avatarTypes.js +5 -3
- 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 +2 -1
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +2 -1
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +3 -18
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +3 -18
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/avatarView/Dot.js +3 -0
- package/build/avatarView/Dot.js.map +1 -1
- package/build/avatarView/Dot.mjs +3 -0
- package/build/avatarView/Dot.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +1 -17
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +1 -17
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +1 -17
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +1 -17
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js +3 -0
- package/build/badge/BadgeAssets.js.map +1 -1
- package/build/badge/BadgeAssets.mjs +3 -0
- 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 +4 -18
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +4 -18
- 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 +4 -17
- package/build/button/LegacyButton.js.map +1 -1
- package/build/button/LegacyButton.mjs +5 -18
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/button/classMap.js +0 -18
- package/build/button/classMap.js.map +1 -1
- package/build/button/classMap.mjs +0 -18
- package/build/button/classMap.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js +1 -16
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs +1 -16
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/card/Card.js +4 -17
- package/build/card/Card.js.map +1 -1
- package/build/card/Card.mjs +4 -17
- 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 +1 -19
- package/build/checkbox/Checkbox.js.map +1 -1
- package/build/checkbox/Checkbox.mjs +1 -19
- 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 +8 -0
- package/build/checkboxOption/CheckboxOption.js.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs +8 -0
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/chevron/Chevron.js +0 -17
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chevron/Chevron.mjs +0 -17
- package/build/chevron/Chevron.mjs.map +1 -1
- package/build/chips/Chip.js +0 -18
- package/build/chips/Chip.js.map +1 -1
- package/build/chips/Chip.mjs +0 -18
- 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 +0 -16
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +0 -16
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/DOMOperations/DOMOperations.js +2 -0
- package/build/common/DOMOperations/DOMOperations.js.map +1 -1
- package/build/common/DOMOperations/DOMOperations.mjs +2 -0
- 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 +5 -0
- package/build/common/bottomSheet/BottomSheet.js.map +1 -1
- package/build/common/bottomSheet/BottomSheet.mjs +5 -0
- package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
- package/build/common/card/Card.js +21 -0
- package/build/common/card/Card.js.map +1 -1
- package/build/common/card/Card.mjs +21 -0
- package/build/common/card/Card.mjs.map +1 -1
- package/build/common/circle/Circle.js +4 -0
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs +4 -0
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/common/closeButton/CloseButton.js +3 -0
- 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 +3 -0
- package/build/common/closeButton/CloseButton.mjs.map +1 -1
- package/build/common/colors.js +1 -0
- package/build/common/colors.js.map +1 -1
- package/build/common/colors.mjs +1 -0
- package/build/common/colors.mjs.map +1 -1
- package/build/common/constants.js +1 -0
- package/build/common/constants.js.map +1 -1
- package/build/common/constants.mjs +1 -0
- 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 +5 -3
- 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 +3 -2
- package/build/common/domHelpers/documentIosClick.js.map +1 -1
- package/build/common/domHelpers/documentIosClick.mjs +3 -2
- package/build/common/domHelpers/documentIosClick.mjs.map +1 -1
- package/build/common/fileType.js +5 -3
- 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 +1 -0
- package/build/common/hooks/useEffectEvent.js.map +1 -1
- package/build/common/hooks/useEffectEvent.mjs +1 -0
- package/build/common/hooks/useEffectEvent.mjs.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js +2 -0
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +2 -0
- 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 +20 -7
- package/build/common/initials.js.map +1 -1
- package/build/common/initials.mjs +20 -7
- package/build/common/initials.mjs.map +1 -1
- package/build/common/locale/index.js +6 -0
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +6 -0
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js +2 -18
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs +2 -18
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js +3 -0
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +1 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs +3 -0
- 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 +5 -3
- 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 +9 -6
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +9 -3
- package/build/common/propsValues/typography.js.map +1 -1
- package/build/common/propsValues/typography.mjs +7 -3
- package/build/common/propsValues/typography.mjs.map +1 -1
- package/build/common/propsValues/variant.js +5 -3
- 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 +5 -3
- 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 +0 -18
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs +0 -18
- 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 +5 -3
- 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 +5 -15
- 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 +5 -15
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +1 -0
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs +1 -0
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +0 -15
- 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 +0 -15
- package/build/dateLookup/DateLookup.mjs.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js +0 -18
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +0 -18
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js +0 -16
- 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 +0 -16
- 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 +1 -0
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +1 -0
- 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 +13 -28
- package/build/decision/Decision.js.map +1 -1
- package/build/decision/Decision.mjs +6 -23
- package/build/decision/Decision.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js +0 -18
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs +0 -18
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js +1 -19
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs +1 -19
- 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 +0 -18
- package/build/display/Display.js.map +1 -1
- package/build/display/Display.mjs +0 -18
- package/build/display/Display.mjs.map +1 -1
- package/build/divider/Divider.js +9 -0
- package/build/divider/Divider.js.map +1 -1
- package/build/divider/Divider.mjs +9 -0
- package/build/divider/Divider.mjs.map +1 -1
- package/build/drawer/Drawer.js +0 -17
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs +0 -17
- 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 +1 -0
- package/build/emphasis/EmphasisHtmlTransformer.js.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs +1 -0
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.js +15 -0
- 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 +15 -0
- package/build/expressiveMoneyInput/ExpressiveMoneyInput.mjs.map +1 -1
- package/build/expressiveMoneyInput/amountInput/AmountInput.js +5 -0
- package/build/expressiveMoneyInput/amountInput/AmountInput.js.map +1 -1
- package/build/expressiveMoneyInput/amountInput/AmountInput.mjs +5 -0
- package/build/expressiveMoneyInput/amountInput/AmountInput.mjs.map +1 -1
- package/build/expressiveMoneyInput/amountInput/utils.js +2 -0
- package/build/expressiveMoneyInput/amountInput/utils.js.map +1 -1
- package/build/expressiveMoneyInput/amountInput/utils.mjs +2 -0
- 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 +9 -22
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs +9 -22
- package/build/field/Field.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.js +0 -17
- 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 +0 -17
- 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 +8 -18
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +8 -18
- 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 +27 -108
- package/build/index.js.map +1 -1
- package/build/info/Info.js +0 -17
- 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 +0 -17
- package/build/info/Info.mjs.map +1 -1
- package/build/info/infoPresentations.js +5 -3
- 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 +2 -24
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inlineAlert/InlineAlert.mjs +2 -24
- 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 +0 -18
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs +0 -18
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/inputs/SelectInput.js +5 -0
- 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 +5 -0
- 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 +0 -18
- package/build/instructionsList/InstructionsList.js.map +1 -1
- package/build/instructionsList/InstructionsList.mjs +0 -18
- package/build/instructionsList/InstructionsList.mjs.map +1 -1
- package/build/label/Label.js +10 -0
- 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 +10 -0
- package/build/label/Label.mjs.map +1 -1
- package/build/legacylistItem/LegacyListItem.js +8 -0
- package/build/legacylistItem/LegacyListItem.js.map +1 -1
- package/build/legacylistItem/LegacyListItem.mjs +8 -0
- package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
- package/build/link/Link.js +5 -18
- 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 +5 -18
- 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 +0 -18
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -1
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +0 -18
- package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +7 -0
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +7 -0
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.js +7 -0
- package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.mjs +7 -0
- package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
- package/build/listItem/Button/ListItemButton.js +7 -0
- package/build/listItem/Button/ListItemButton.js.map +1 -1
- package/build/listItem/Button/ListItemButton.mjs +7 -0
- package/build/listItem/Button/ListItemButton.mjs.map +1 -1
- package/build/listItem/Checkbox/ListItemCheckbox.js +7 -0
- package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -1
- package/build/listItem/Checkbox/ListItemCheckbox.mjs +7 -0
- package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -1
- package/build/listItem/IconButton/ListItemIconButton.js +7 -0
- package/build/listItem/IconButton/ListItemIconButton.js.map +1 -1
- package/build/listItem/IconButton/ListItemIconButton.mjs +7 -0
- package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -1
- package/build/listItem/Image/ListItemImage.js +9 -0
- package/build/listItem/Image/ListItemImage.js.map +1 -1
- package/build/listItem/Image/ListItemImage.mjs +9 -0
- package/build/listItem/Image/ListItemImage.mjs.map +1 -1
- package/build/listItem/ListItem.js +7 -17
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +7 -17
- 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 +8 -0
- package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs +8 -0
- package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.js +8 -20
- package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
- package/build/listItem/Prompt/ListItemPrompt.mjs +8 -20
- package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
- package/build/listItem/Radio/ListItemRadio.js +7 -0
- package/build/listItem/Radio/ListItemRadio.js.map +1 -1
- package/build/listItem/Radio/ListItemRadio.mjs +7 -0
- package/build/listItem/Radio/ListItemRadio.mjs.map +1 -1
- package/build/listItem/Switch/ListItemSwitch.js +7 -0
- package/build/listItem/Switch/ListItemSwitch.js.map +1 -1
- package/build/listItem/Switch/ListItemSwitch.mjs +7 -0
- 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 +10 -18
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs +10 -18
- package/build/loader/Loader.mjs.map +1 -1
- package/build/logo/Logo.js +4 -3
- 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/main.css +20 -1
- package/build/markdown/Markdown.js +14 -32
- package/build/markdown/Markdown.js.map +1 -1
- package/build/markdown/Markdown.mjs +0 -18
- 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 +0 -15
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.mjs +0 -15
- 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 +0 -17
- 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 +0 -17
- 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 +8 -18
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs +8 -18
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.js +9 -0
- package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs +9 -0
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
- package/build/nudge/Nudge.js +1 -18
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs +1 -18
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js +0 -18
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/overlayHeader/OverlayHeader.mjs +0 -18
- package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +3 -19
- 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 +3 -19
- 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 +1 -0
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +1 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs +1 -0
- 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 +1 -0
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs +1 -0
- 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 +0 -17
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs +0 -17
- package/build/popover/Popover.mjs.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js +10 -0
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs +10 -0
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.js +10 -0
- package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.mjs +10 -0
- package/build/primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js +3 -18
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.mjs +3 -18
- 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 +0 -18
- package/build/progressBar/ProgressBar.js.map +1 -1
- package/build/progressBar/ProgressBar.mjs +0 -18
- package/build/progressBar/ProgressBar.mjs.map +1 -1
- package/build/promoCard/PromoCard.js +47 -18
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs +47 -18
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/promoCard/PromoCardContext.js +11 -0
- package/build/promoCard/PromoCardContext.js.map +1 -1
- package/build/promoCard/PromoCardContext.mjs +11 -0
- package/build/promoCard/PromoCardContext.mjs.map +1 -1
- package/build/promoCard/PromoCardGroup.js +21 -0
- package/build/promoCard/PromoCardGroup.js.map +1 -1
- package/build/promoCard/PromoCardGroup.mjs +21 -0
- package/build/promoCard/PromoCardGroup.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js +16 -18
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/promoCard/PromoCardIndicator.mjs +16 -18
- package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.js +12 -22
- package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs +12 -22
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/provider/Provider.js +0 -19
- package/build/provider/Provider.js.map +1 -1
- package/build/provider/Provider.mjs +0 -19
- 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 +0 -18
- package/build/radio/Radio.js.map +1 -1
- package/build/radio/Radio.mjs +0 -18
- package/build/radio/Radio.mjs.map +1 -1
- package/build/radioGroup/RadioGroup.js +1 -0
- package/build/radioGroup/RadioGroup.js.map +1 -1
- package/build/radioGroup/RadioGroup.mjs +1 -0
- package/build/radioGroup/RadioGroup.mjs.map +1 -1
- package/build/radioOption/RadioOption.js +8 -0
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs +8 -0
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/section/Section.js +5 -0
- package/build/section/Section.js.map +1 -1
- package/build/section/Section.mjs +5 -0
- package/build/section/Section.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js +2 -18
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs +2 -18
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/select/Select.js +3 -18
- 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 +3 -18
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js +0 -18
- package/build/select/option/Option.js.map +1 -1
- package/build/select/option/Option.mjs +0 -18
- 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 +28 -0
- package/build/sentimentSurface/SentimentSurface.js.map +1 -1
- package/build/sentimentSurface/SentimentSurface.mjs +28 -0
- 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 +0 -15
- 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 +0 -15
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/stepper/Stepper.js +0 -18
- package/build/stepper/Stepper.js.map +1 -1
- package/build/stepper/Stepper.mjs +0 -18
- 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 +22 -18
- package/build/sticky/Sticky.js.map +1 -1
- package/build/sticky/Sticky.mjs +22 -18
- package/build/sticky/Sticky.mjs.map +1 -1
- package/build/styles/field/Field.css +10 -1
- package/build/styles/main.css +20 -1
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +3 -0
- package/build/styles/radioGroup/RadioGroup.css +3 -0
- package/build/styles/typeahead/Typeahead.css +4 -0
- package/build/summary/Summary.js +0 -16
- 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 +0 -16
- 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 +1 -0
- package/build/switchOption/SwitchOption.js.map +1 -1
- package/build/switchOption/SwitchOption.mjs +1 -0
- package/build/switchOption/SwitchOption.mjs.map +1 -1
- package/build/table/Table.js +1 -17
- 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 +1 -17
- 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 +1 -0
- package/build/table/TableHeader.js.map +1 -1
- package/build/table/TableHeader.mjs +1 -0
- package/build/table/TableHeader.mjs.map +1 -1
- package/build/table/TableRow.js +0 -18
- package/build/table/TableRow.js.map +1 -1
- package/build/table/TableRow.mjs +0 -18
- package/build/table/TableRow.mjs.map +1 -1
- package/build/table/TableStatusText.js +0 -18
- package/build/table/TableStatusText.js.map +1 -1
- package/build/table/TableStatusText.mjs +0 -18
- 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 +3 -17
- package/build/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs +3 -17
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/tabs/utils.js +1 -0
- package/build/tabs/utils.js.map +1 -1
- package/build/tabs/utils.mjs +1 -0
- 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 +0 -18
- package/build/tile/Tile.js.map +1 -1
- package/build/tile/Tile.mjs +0 -18
- package/build/tile/Tile.mjs.map +1 -1
- package/build/title/Title.js +0 -18
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs +0 -18
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js +1 -18
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs +1 -18
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +20 -24
- 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 +20 -24
- 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/components/src/accordion/Accordion.d.ts.map +1 -0
- package/build/types/components/src/accordion/AccordionItem/AccordionItem.d.ts.map +1 -0
- package/build/types/components/src/accordion/AccordionItem/index.d.ts.map +1 -0
- package/build/types/components/src/accordion/index.d.ts.map +1 -0
- package/build/types/components/src/actionButton/ActionButton.d.ts.map +1 -0
- package/build/types/components/src/actionButton/index.d.ts.map +1 -0
- package/build/types/components/src/actionOption/ActionOption.d.ts.map +1 -0
- package/build/types/components/src/actionOption/index.d.ts.map +1 -0
- package/build/types/components/src/alert/Alert.d.ts +51 -0
- package/build/types/components/src/alert/Alert.d.ts.map +1 -0
- package/build/types/components/src/alert/index.d.ts.map +1 -0
- package/build/types/components/src/alert/inlineMarkdown/InlineMarkdown.d.ts.map +1 -0
- package/build/types/components/src/alert/inlineMarkdown/index.d.ts.map +1 -0
- package/build/types/components/src/avatar/Avatar.d.ts.map +1 -0
- package/build/types/components/src/avatar/avatarTypes.d.ts.map +1 -0
- package/build/types/components/src/avatar/index.d.ts.map +1 -0
- package/build/types/components/src/avatarLayout/AvatarLayout.d.ts.map +1 -0
- package/build/types/components/src/avatarLayout/index.d.ts.map +1 -0
- package/build/types/components/src/avatarView/AvatarView.d.ts.map +1 -0
- package/build/types/components/src/avatarView/Dot.d.ts.map +1 -0
- package/build/types/components/src/avatarView/index.d.ts.map +1 -0
- package/build/types/components/src/avatarWrapper/AvatarWrapper.d.ts.map +1 -0
- package/build/types/components/src/avatarWrapper/index.d.ts.map +1 -0
- package/build/types/components/src/badge/Badge.d.ts.map +1 -0
- package/build/types/components/src/badge/BadgeAssets.d.ts.map +1 -0
- package/build/types/components/src/badge/index.d.ts.map +1 -0
- package/build/types/components/src/body/Body.d.ts.map +1 -0
- package/build/types/components/src/body/index.d.ts.map +1 -0
- package/build/types/components/src/button/Button.d.ts.map +1 -0
- package/build/types/components/src/button/Button.resolver.d.ts.map +1 -0
- package/build/types/components/src/button/Button.types.d.ts.map +1 -0
- package/build/types/components/src/button/LegacyButton.d.ts.map +1 -0
- package/build/types/components/src/button/_stories/helpers.d.ts.map +1 -0
- package/build/types/components/src/button/classMap.d.ts.map +1 -0
- package/build/types/components/src/button/index.d.ts.map +1 -0
- package/build/types/components/src/button/legacyUtils/index.d.ts.map +1 -0
- package/build/types/components/src/button/legacyUtils/legacyUtils.d.ts.map +1 -0
- package/build/types/components/src/card/Card.d.ts.map +1 -0
- package/build/types/components/src/card/index.d.ts.map +1 -0
- package/build/types/components/src/carousel/Carousel.d.ts.map +1 -0
- package/build/types/components/src/carousel/index.d.ts.map +1 -0
- package/build/types/components/src/checkbox/Checkbox.d.ts.map +1 -0
- package/build/types/components/src/checkbox/index.d.ts.map +1 -0
- package/build/types/components/src/checkboxButton/CheckboxButton.d.ts.map +1 -0
- package/build/types/components/src/checkboxButton/index.d.ts.map +1 -0
- package/build/types/components/src/checkboxOption/CheckboxOption.d.ts.map +1 -0
- package/build/types/components/src/checkboxOption/index.d.ts.map +1 -0
- package/build/types/components/src/chevron/Chevron.d.ts.map +1 -0
- package/build/types/components/src/chevron/index.d.ts.map +1 -0
- package/build/types/components/src/chips/Chip.d.ts.map +1 -0
- package/build/types/components/src/chips/Chips.d.ts.map +1 -0
- package/build/types/components/src/chips/Chips.messages.d.ts.map +1 -0
- package/build/types/components/src/chips/index.d.ts.map +1 -0
- package/build/types/components/src/circularButton/CircularButton.d.ts.map +1 -0
- package/build/types/components/src/circularButton/index.d.ts.map +1 -0
- package/build/types/components/src/common/DOMOperations/DOMOperations.d.ts.map +1 -0
- package/build/types/components/src/common/DOMOperations/index.d.ts.map +1 -0
- package/build/types/components/src/common/Option/Option.d.ts.map +1 -0
- package/build/types/components/src/common/Option/index.d.ts.map +1 -0
- package/build/types/components/src/common/RadioButton/RadioButton.d.ts.map +1 -0
- package/build/types/components/src/common/RadioButton/index.d.ts.map +1 -0
- package/build/types/components/src/common/bottomSheet/BottomSheet.d.ts.map +1 -0
- package/build/types/components/src/common/bottomSheet/index.d.ts.map +1 -0
- package/build/types/components/src/common/card/Card.d.ts.map +1 -0
- package/build/types/components/src/common/card/index.d.ts.map +1 -0
- package/build/types/components/src/common/circle/Circle.d.ts.map +1 -0
- package/build/types/components/src/common/circle/index.d.ts.map +1 -0
- package/build/types/components/src/common/closeButton/CloseButton.d.ts.map +1 -0
- package/build/types/components/src/common/closeButton/CloseButton.messages.d.ts.map +1 -0
- package/build/types/components/src/common/closeButton/index.d.ts.map +1 -0
- package/build/types/components/src/common/colors.d.ts.map +1 -0
- package/build/types/components/src/common/commonProps.d.ts.map +1 -0
- package/build/types/components/src/common/constants.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/getDateView/getDateView.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/getFormatForLocale/getFormatForLocale.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/index.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -0
- package/build/types/components/src/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -0
- package/build/types/components/src/common/deviceDetection/deviceDetection.d.ts.map +1 -0
- package/build/types/components/src/common/deviceDetection/index.d.ts.map +1 -0
- package/build/types/components/src/common/direction.d.ts.map +1 -0
- package/build/types/components/src/common/domHelpers/documentIosClick.d.ts.map +1 -0
- package/build/types/components/src/common/domHelpers/index.d.ts.map +1 -0
- package/build/types/components/src/common/fakeEvents.d.ts.map +1 -0
- package/build/types/components/src/common/fileType.d.ts.map +1 -0
- package/build/types/components/src/common/flowHeader/FlowHeader.d.ts.map +1 -0
- package/build/types/components/src/common/flowHeader/index.d.ts.map +1 -0
- package/build/types/components/src/common/focusBoundary/FocusBoundary.d.ts.map +1 -0
- package/build/types/components/src/common/focusBoundary/index.d.ts.map +1 -0
- package/build/types/components/src/common/historyNavigator/historyNavigator.d.ts.map +1 -0
- package/build/types/components/src/common/historyNavigator/index.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/index.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useConditionalListener/index.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useDirection/index.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useDirection/useDirection.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useEffectEvent.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useHasIntersected/index.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useLayout/index.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useLayout/useLayout.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useMedia.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useResizeObserver.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useScreenSize.d.ts.map +1 -0
- package/build/types/components/src/common/hooks/useVirtualKeyboard.d.ts.map +1 -0
- package/build/types/components/src/common/index.d.ts.map +1 -0
- package/build/types/components/src/common/initials.d.ts.map +1 -0
- package/build/types/components/src/common/locale/index.d.ts.map +1 -0
- package/build/types/components/src/common/panel/Panel.d.ts.map +1 -0
- package/build/types/components/src/common/panel/index.d.ts.map +1 -0
- package/build/types/components/src/common/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts.map +1 -0
- package/build/types/components/src/common/preventScroll/PreventScroll.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/breakpoint.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/control.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/dateMode.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/layouts.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/markdownNodeType.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/monthFormat.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/position.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/profileType.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/scroll.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/sentiment.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/size.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/status.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/type.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/typography.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/variant.d.ts.map +1 -0
- package/build/types/components/src/common/propsValues/width.d.ts.map +1 -0
- package/build/types/components/src/common/responsivePanel/ResponsivePanel.d.ts.map +1 -0
- package/build/types/components/src/common/responsivePanel/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/formatWithPattern/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getDistanceToSymbol/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/unformatWithPattern/index.d.ts.map +1 -0
- package/build/types/components/src/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -0
- package/build/types/components/src/common/theme.d.ts.map +1 -0
- package/build/types/components/src/criticalBanner/CriticalCommsBanner.d.ts.map +1 -0
- package/build/types/components/src/criticalBanner/index.d.ts.map +1 -0
- package/build/types/components/src/dateInput/DateInput.d.ts.map +1 -0
- package/build/types/components/src/dateInput/DateInput.messages.d.ts.map +1 -0
- package/build/types/components/src/dateInput/index.d.ts.map +1 -0
- package/build/types/components/src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -0
- package/build/types/components/src/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -0
- package/build/types/components/src/dateInput/utils/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/DateLookup.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/DateLookup.messages.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dateHeader/DateHeader.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dateHeader/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dateTrigger/DateTrigger.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dateTrigger/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dayCalendar/DayCalendar.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dayCalendar/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/dayCalendar/table/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/getFocusableTime/getFocusableTime.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/getStartOfDay/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/monthCalendar/MonthCalendar.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/monthCalendar/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/monthCalendar/table/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/tableLink/TableLink.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/tableLink/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/yearCalendar/index.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -0
- package/build/types/components/src/dateLookup/yearCalendar/table/index.d.ts.map +1 -0
- package/build/types/components/src/decision/Decision.d.ts.map +1 -0
- package/build/types/components/src/decision/index.d.ts.map +1 -0
- package/build/types/components/src/definitionList/DefinitionList.d.ts.map +1 -0
- package/build/types/components/src/definitionList/index.d.ts.map +1 -0
- package/build/types/components/src/dimmer/Dimmer.d.ts.map +1 -0
- package/build/types/components/src/dimmer/dimmerManager/DimmerManager.d.ts.map +1 -0
- package/build/types/components/src/dimmer/dimmerManager/index.d.ts.map +1 -0
- package/build/types/components/src/dimmer/index.d.ts.map +1 -0
- package/build/types/components/src/display/Display.d.ts.map +1 -0
- package/build/types/components/src/display/index.d.ts.map +1 -0
- package/build/types/components/src/divider/Divider.d.ts.map +1 -0
- package/build/types/components/src/divider/index.d.ts.map +1 -0
- package/build/types/components/src/drawer/Drawer.d.ts.map +1 -0
- package/build/types/components/src/drawer/index.d.ts.map +1 -0
- package/build/types/components/src/dropFade/DropFade.d.ts.map +1 -0
- package/build/types/components/src/dropFade/index.d.ts.map +1 -0
- package/build/types/components/src/emphasis/Emphasis.d.ts.map +1 -0
- package/build/types/components/src/emphasis/EmphasisHtmlTransformer.d.ts.map +1 -0
- package/build/types/components/src/emphasis/index.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/ExpressiveMoneyInput.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/ExpressiveMoneyInput.messages.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/amountInput/AmountInput.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/amountInput/utils.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/animatedNumber/AnimatedNumber.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/chevron/Chevron.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/hooks/useFocus.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/hooks/useInputStyle.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/hooks/useSelectionRange.d.ts.map +1 -0
- package/build/types/components/src/expressiveMoneyInput/index.d.ts.map +1 -0
- package/build/types/components/src/field/Field.d.ts +28 -0
- package/build/types/components/src/field/Field.d.ts.map +1 -0
- package/build/types/components/src/flowNavigation/FlowNavigation.d.ts.map +1 -0
- package/build/types/components/src/flowNavigation/FlowNavigation.messages.d.ts.map +1 -0
- package/build/types/components/src/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -0
- package/build/types/components/src/flowNavigation/animatedLabel/index.d.ts.map +1 -0
- package/build/types/components/src/header/Header.d.ts.map +1 -0
- package/build/types/components/src/header/index.d.ts.map +1 -0
- package/build/types/components/src/i18n/commonMessages/Button.messages.d.ts.map +1 -0
- package/build/types/components/src/i18n/index.d.ts.map +1 -0
- package/build/types/components/src/iconButton/IconButton.d.ts.map +1 -0
- package/build/types/components/src/iconButton/index.d.ts.map +1 -0
- package/build/types/components/src/image/Image.d.ts.map +1 -0
- package/build/types/components/src/image/index.d.ts.map +1 -0
- package/build/types/components/src/index.d.ts.map +1 -0
- package/build/types/components/src/info/Info.d.ts.map +1 -0
- package/build/types/components/src/info/Info.messages.d.ts.map +1 -0
- package/build/types/components/src/info/index.d.ts.map +1 -0
- package/build/types/components/src/info/infoPresentations.d.ts.map +1 -0
- package/build/types/components/src/inlineAlert/InlineAlert.d.ts +14 -0
- package/build/types/components/src/inlineAlert/InlineAlert.d.ts.map +1 -0
- package/build/types/components/src/inlineAlert/index.d.ts.map +1 -0
- package/build/types/components/src/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -0
- package/build/types/components/src/inputWithDisplayFormat/index.d.ts.map +1 -0
- package/build/types/components/src/inputs/Input.d.ts.map +1 -0
- package/build/types/components/src/inputs/InputGroup.d.ts.map +1 -0
- package/build/types/components/src/inputs/SearchInput.d.ts.map +1 -0
- package/build/types/components/src/inputs/SelectInput.d.ts.map +1 -0
- package/build/types/components/src/inputs/SelectInput.messages.d.ts.map +1 -0
- package/build/types/components/src/inputs/TextArea.d.ts.map +1 -0
- package/build/types/components/src/inputs/_BottomSheet.d.ts.map +1 -0
- package/build/types/components/src/inputs/_ButtonInput.d.ts.map +1 -0
- package/build/types/components/src/inputs/_Popover.d.ts.map +1 -0
- package/build/types/components/src/inputs/_common.d.ts.map +1 -0
- package/build/types/components/src/inputs/contexts.d.ts.map +1 -0
- package/build/types/components/src/instructionsList/InstructionsList.d.ts.map +1 -0
- package/build/types/components/src/instructionsList/index.d.ts.map +1 -0
- package/build/types/components/src/label/Label.d.ts.map +1 -0
- package/build/types/components/src/label/Label.messages.d.ts.map +1 -0
- package/build/types/components/src/label/index.d.ts.map +1 -0
- package/build/types/components/src/legacylistItem/LegacyListItem.d.ts.map +1 -0
- package/build/types/components/src/legacylistItem/index.d.ts.map +1 -0
- package/build/types/components/src/link/Link.d.ts.map +1 -0
- package/build/types/components/src/link/Link.messages.d.ts.map +1 -0
- package/build/types/components/src/link/index.d.ts.map +1 -0
- package/build/types/components/src/list/List.d.ts.map +1 -0
- package/build/types/components/src/list/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +1 -0
- package/build/types/components/src/listItem/AdditionalInfo/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -0
- package/build/types/components/src/listItem/AvatarLayout/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -0
- package/build/types/components/src/listItem/AvatarView/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/Button/ListItemButton.d.ts.map +1 -0
- package/build/types/components/src/listItem/Button/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/Checkbox/ListItemCheckbox.d.ts.map +1 -0
- package/build/types/components/src/listItem/Checkbox/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/IconButton/ListItemIconButton.d.ts.map +1 -0
- package/build/types/components/src/listItem/IconButton/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/Image/ListItemImage.d.ts.map +1 -0
- package/build/types/components/src/listItem/Image/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/ListItem.d.ts +120 -0
- package/build/types/components/src/listItem/ListItem.d.ts.map +1 -0
- package/build/types/components/src/listItem/ListItemContext.d.ts.map +1 -0
- package/build/types/components/src/listItem/Navigation/ListItemNavigation.d.ts.map +1 -0
- package/build/types/components/src/listItem/Navigation/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/Prompt/ListItemPrompt.d.ts +14 -0
- package/build/types/components/src/listItem/Prompt/ListItemPrompt.d.ts.map +1 -0
- package/build/types/components/src/listItem/Prompt/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/Radio/ListItemRadio.d.ts.map +1 -0
- package/build/types/components/src/listItem/Radio/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/Switch/ListItemSwitch.d.ts.map +1 -0
- package/build/types/components/src/listItem/Switch/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/_stories/helpers.d.ts.map +1 -0
- package/build/types/components/src/listItem/_stories/subcomponents.d.ts.map +1 -0
- package/build/types/components/src/listItem/_stories/variants/helpers.d.ts +11 -0
- package/build/types/components/src/listItem/_stories/variants/helpers.d.ts.map +1 -0
- package/build/types/components/src/listItem/constants.d.ts.map +1 -0
- package/build/types/components/src/listItem/index.d.ts.map +1 -0
- package/build/types/components/src/listItem/test-utils.d.ts.map +1 -0
- package/build/types/components/src/listItem/useListItemControl.d.ts.map +1 -0
- package/build/types/components/src/listItem/useListItemMedia.d.ts.map +1 -0
- package/build/types/components/src/loader/Loader.d.ts.map +1 -0
- package/build/types/components/src/loader/index.d.ts.map +1 -0
- package/build/types/components/src/logo/Logo.d.ts.map +1 -0
- package/build/types/components/src/logo/index.d.ts.map +1 -0
- package/build/types/components/src/logo/logo-assets.d.ts.map +1 -0
- package/build/types/components/src/markdown/Markdown.d.ts.map +1 -0
- package/build/types/components/src/markdown/index.d.ts.map +1 -0
- package/build/types/components/src/mocks.d.ts.map +1 -0
- package/build/types/components/src/modal/Modal.d.ts.map +1 -0
- package/build/types/components/src/modal/index.d.ts.map +1 -0
- package/build/types/components/src/money/Money.d.ts.map +1 -0
- package/build/types/components/src/money/index.d.ts.map +1 -0
- package/build/types/components/src/moneyInput/MoneyInput.d.ts.map +1 -0
- package/build/types/components/src/moneyInput/MoneyInput.messages.d.ts.map +1 -0
- package/build/types/components/src/moneyInput/currencyFormatting.d.ts.map +1 -0
- package/build/types/components/src/moneyInput/index.d.ts.map +1 -0
- package/build/types/components/src/navigationOption/NavigationOption.d.ts.map +1 -0
- package/build/types/components/src/navigationOption/index.d.ts.map +1 -0
- package/build/types/components/src/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -0
- package/build/types/components/src/navigationOptionsList/index.d.ts.map +1 -0
- package/build/types/components/src/nudge/Nudge.d.ts.map +1 -0
- package/build/types/components/src/nudge/index.d.ts.map +1 -0
- package/build/types/components/src/overlayHeader/OverlayHeader.d.ts.map +1 -0
- package/build/types/components/src/overlayHeader/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/data/countries.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/cleanNumber/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/excludeCountries/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +1 -0
- package/build/types/components/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +1 -0
- package/build/types/components/src/popover/Popover.d.ts.map +1 -0
- package/build/types/components/src/popover/index.d.ts.map +1 -0
- package/build/types/components/src/primitives/PrimitiveAnchor/PrimitiveAnchor.d.ts.map +1 -0
- package/build/types/components/src/primitives/PrimitiveAnchor/PrimitiveAnchor.types.d.ts.map +1 -0
- package/build/types/components/src/primitives/PrimitiveAnchor/index.d.ts.map +1 -0
- package/build/types/components/src/primitives/PrimitiveButton/PrimitiveButton.d.ts.map +1 -0
- package/build/types/components/src/primitives/PrimitiveButton/PrimitiveButton.types.d.ts.map +1 -0
- package/build/types/components/src/primitives/PrimitiveButton/index.d.ts.map +1 -0
- package/build/types/components/src/primitives/index.d.ts.map +1 -0
- package/build/types/components/src/primitives/types.d.ts.map +1 -0
- package/build/types/components/src/processIndicator/ProcessIndicator.d.ts.map +1 -0
- package/build/types/components/src/processIndicator/index.d.ts.map +1 -0
- package/build/types/components/src/progress/Progress.d.ts.map +1 -0
- package/build/types/components/src/progress/index.d.ts.map +1 -0
- package/build/types/components/src/progressBar/ProgressBar.d.ts.map +1 -0
- package/build/types/components/src/progressBar/index.d.ts.map +1 -0
- package/build/types/components/src/promoCard/PromoCard.d.ts.map +1 -0
- package/build/types/components/src/promoCard/PromoCardContext.d.ts.map +1 -0
- package/build/types/components/src/promoCard/PromoCardGroup.d.ts.map +1 -0
- package/build/types/components/src/promoCard/PromoCardIndicator.d.ts.map +1 -0
- package/build/types/components/src/promoCard/index.d.ts.map +1 -0
- package/build/types/components/src/prompt/InlinePrompt/InlinePrompt.d.ts +44 -0
- package/build/types/components/src/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -0
- package/build/types/components/src/prompt/InlinePrompt/index.d.ts.map +1 -0
- package/build/types/components/src/prompt/index.d.ts.map +1 -0
- package/build/types/components/src/provider/Provider.d.ts.map +1 -0
- package/build/types/components/src/provider/direction/DirectionProvider.d.ts.map +1 -0
- package/build/types/components/src/provider/direction/index.d.ts.map +1 -0
- package/build/types/components/src/provider/index.d.ts.map +1 -0
- package/build/types/components/src/provider/language/LanguageProvider.d.ts.map +1 -0
- package/build/types/components/src/provider/language/index.d.ts.map +1 -0
- package/build/types/components/src/provider/overlay/OverlayIdProvider.d.ts.map +1 -0
- package/build/types/components/src/radio/Radio.d.ts.map +1 -0
- package/build/types/components/src/radio/index.d.ts.map +1 -0
- package/build/types/components/src/radioGroup/RadioGroup.d.ts.map +1 -0
- package/build/types/components/src/radioGroup/index.d.ts.map +1 -0
- package/build/types/components/src/radioOption/RadioOption.d.ts.map +1 -0
- package/build/types/components/src/radioOption/index.d.ts.map +1 -0
- package/build/types/components/src/section/Section.d.ts.map +1 -0
- package/build/types/components/src/section/index.d.ts.map +1 -0
- package/build/types/components/src/segmentedControl/SegmentedControl.d.ts.map +1 -0
- package/build/types/components/src/segmentedControl/index.d.ts.map +1 -0
- package/build/types/components/src/select/Select.d.ts.map +1 -0
- package/build/types/components/src/select/Select.messages.d.ts.map +1 -0
- package/build/types/components/src/select/index.d.ts.map +1 -0
- package/build/types/components/src/select/option/Option.d.ts.map +1 -0
- package/build/types/components/src/select/option/index.d.ts.map +1 -0
- package/build/types/components/src/select/searchBox/SearchBox.d.ts.map +1 -0
- package/build/types/components/src/select/searchBox/index.d.ts.map +1 -0
- package/build/types/components/src/sentimentSurface/SentimentSurface.d.ts.map +1 -0
- package/build/types/components/src/sentimentSurface/SentimentSurface.types.d.ts.map +1 -0
- package/build/types/components/src/sentimentSurface/index.d.ts.map +1 -0
- package/build/types/components/src/slidingPanel/SlidingPanel.d.ts.map +1 -0
- package/build/types/components/src/slidingPanel/index.d.ts.map +1 -0
- package/build/types/components/src/snackbar/Snackbar.d.ts.map +1 -0
- package/build/types/components/src/snackbar/SnackbarContext.d.ts.map +1 -0
- package/build/types/components/src/snackbar/SnackbarProvider.d.ts.map +1 -0
- package/build/types/components/src/snackbar/index.d.ts.map +1 -0
- package/build/types/components/src/snackbar/useSnackbar.d.ts.map +1 -0
- package/build/types/components/src/statusIcon/StatusIcon.d.ts.map +1 -0
- package/build/types/components/src/statusIcon/StatusIcon.messages.d.ts.map +1 -0
- package/build/types/components/src/statusIcon/index.d.ts.map +1 -0
- package/build/types/components/src/stepper/Stepper.d.ts.map +1 -0
- package/build/types/components/src/stepper/deviceDetection.d.ts.map +1 -0
- package/build/types/components/src/sticky/Sticky.d.ts.map +1 -0
- package/build/types/components/src/sticky/index.d.ts.map +1 -0
- package/build/types/components/src/summary/Summary.d.ts.map +1 -0
- package/build/types/components/src/summary/Summary.messages.d.ts.map +1 -0
- package/build/types/components/src/summary/index.d.ts.map +1 -0
- package/build/types/components/src/switch/Switch.d.ts.map +1 -0
- package/build/types/components/src/switch/index.d.ts.map +1 -0
- package/build/types/components/src/switchOption/SwitchOption.d.ts.map +1 -0
- package/build/types/components/src/switchOption/index.d.ts.map +1 -0
- package/build/types/components/src/table/Table.d.ts.map +1 -0
- package/build/types/components/src/table/Table.messages.d.ts.map +1 -0
- package/build/types/components/src/table/TableCell.d.ts.map +1 -0
- package/build/types/components/src/table/TableHeader.d.ts.map +1 -0
- package/build/types/components/src/table/TableRow.d.ts.map +1 -0
- package/build/types/components/src/table/TableStatusText.d.ts.map +1 -0
- package/build/types/components/src/table/index.d.ts.map +1 -0
- package/build/types/components/src/tabs/Tab.d.ts.map +1 -0
- package/build/types/components/src/tabs/TabList.d.ts.map +1 -0
- package/build/types/components/src/tabs/TabPanel.d.ts.map +1 -0
- package/build/types/components/src/tabs/Tabs.d.ts.map +1 -0
- package/build/types/components/src/tabs/index.d.ts.map +1 -0
- package/build/types/components/src/tabs/utils.d.ts.map +1 -0
- package/build/types/components/src/test-utils/fake-data.d.ts.map +1 -0
- package/build/types/components/src/test-utils/index.d.ts +179 -0
- package/build/types/components/src/test-utils/index.d.ts.map +1 -0
- package/build/types/components/src/test-utils/jest.setup.d.ts.map +1 -0
- package/build/types/components/src/test-utils/style-mock.d.ts.map +1 -0
- package/build/types/components/src/test-utils/wait.d.ts.map +1 -0
- package/build/types/components/src/test-utils/window-mock.d.ts.map +1 -0
- package/build/types/components/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -0
- package/build/types/components/src/textareaWithDisplayFormat/index.d.ts.map +1 -0
- package/build/types/components/src/tile/Tile.d.ts.map +1 -0
- package/build/types/components/src/tile/index.d.ts.map +1 -0
- package/build/types/components/src/title/Title.d.ts.map +1 -0
- package/build/types/components/src/title/index.d.ts.map +1 -0
- package/build/types/components/src/tooltip/Tooltip.d.ts.map +1 -0
- package/build/types/components/src/tooltip/index.d.ts.map +1 -0
- package/build/types/components/src/typeahead/Typeahead.d.ts +51 -0
- package/build/types/components/src/typeahead/Typeahead.d.ts.map +1 -0
- package/build/types/components/src/typeahead/Typeahead.messages.d.ts.map +1 -0
- package/build/types/components/src/typeahead/index.d.ts.map +1 -0
- package/build/types/components/src/typeahead/typeaheadInput/TypeaheadInput.d.ts.map +1 -0
- package/build/types/components/src/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -0
- package/build/types/components/src/typeahead/util/highlight.d.ts.map +1 -0
- package/build/types/components/src/upload/Upload.d.ts +100 -0
- package/build/types/components/src/upload/Upload.d.ts.map +1 -0
- package/build/types/components/src/upload/Upload.messages.d.ts.map +1 -0
- package/build/types/components/src/upload/index.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/completeStep/completeStep.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/completeStep/index.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/index.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/processingStep/index.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/processingStep/processingStep.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/uploadImageStep/index.d.ts.map +1 -0
- package/build/types/components/src/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/asyncFileRead/asyncFileRead.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/asyncFileRead/index.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/getFileType/getFileType.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/getFileType/index.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/index.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/isSizeValid/index.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/isSizeValid/isSizeValid.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/isTypeValid/index.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/isTypeValid/isTypeValid.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/postData/index.d.ts.map +1 -0
- package/build/types/components/src/upload/utils/postData/postData.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/UploadInput.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/UploadInput.messages.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/index.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/types.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadButton/UploadButton.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadButton/UploadButton.messages.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadButton/defaults.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadItem/UploadItem.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadItem/UploadItem.messages.d.ts.map +1 -0
- package/build/types/components/src/uploadInput/uploadItem/UploadItemLink.d.ts.map +1 -0
- package/build/types/components/src/utilities/cssValueWithUnit.d.ts.map +1 -0
- package/build/types/components/src/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -0
- package/build/types/components/src/utilities/deprecatedProperty/index.d.ts.map +1 -0
- package/build/types/components/src/utilities/index.d.ts.map +1 -0
- package/build/types/components/src/utilities/logActionRequired.d.ts.map +1 -0
- package/build/types/components/src/utils.d.ts.map +1 -0
- package/build/types/components/src/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -0
- package/build/types/components/src/withDisplayFormat/index.d.ts.map +1 -0
- package/build/types/components/src/withId/index.d.ts.map +1 -0
- package/build/types/components/src/withId/story/source.d.ts.map +1 -0
- package/build/types/components/src/withId/withId.d.ts.map +1 -0
- package/build/types/components/src/withNextPortal/withNextPortal.d.ts.map +1 -0
- package/build/types/components-theming/src/ThemeProvider.d.ts +7 -0
- package/build/types/components-theming/src/ThemeProvider.d.ts.map +1 -0
- package/build/types/components-theming/src/ThemeProviderContext.d.ts +8 -0
- package/build/types/components-theming/src/ThemeProviderContext.d.ts.map +1 -0
- package/build/types/components-theming/src/ThemedChildren.d.ts +8 -0
- package/build/types/components-theming/src/ThemedChildren.d.ts.map +1 -0
- package/build/types/components-theming/src/const.d.ts +35 -0
- package/build/types/components-theming/src/const.d.ts.map +1 -0
- package/build/types/components-theming/src/helpers.d.ts +11 -0
- package/build/types/components-theming/src/helpers.d.ts.map +1 -0
- package/build/types/components-theming/src/index.d.ts +5 -0
- package/build/types/components-theming/src/index.d.ts.map +1 -0
- package/build/types/components-theming/src/useTheme.d.ts +17 -0
- package/build/types/components-theming/src/useTheme.d.ts.map +1 -0
- package/build/upload/Upload.js +4 -21
- 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 +3 -21
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +0 -18
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +0 -18
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js +0 -17
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +0 -17
- package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +5 -21
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +5 -21
- 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 +8 -17
- 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 +8 -17
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +6 -23
- 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 +3 -21
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/build/uploadInput/uploadButton/defaults.js +0 -18
- package/build/uploadInput/uploadButton/defaults.js.map +1 -1
- package/build/uploadInput/uploadButton/defaults.mjs +0 -18
- package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js +1 -0
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +1 -0
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js +9 -23
- 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 +4 -19
- 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 +17 -33
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +3 -19
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/build/withId/withId.js +4 -0
- package/build/withId/withId.js.map +1 -1
- package/build/withId/withId.mjs +4 -0
- 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 +9 -8
- package/src/DisabledComponents.story.tsx +1 -3
- package/src/actionButton/ActionButton.story.tsx +42 -45
- package/src/alert/Alert.spec.tsx +1 -1
- package/src/alert/Alert.tsx +2 -2
- package/src/avatar/Avatar.story.tsx +192 -188
- package/src/button/_stories/Button.tests.story.tsx +122 -119
- package/src/carousel/Carousel.story.tsx +4 -7
- package/src/checkbox/Checkbox.story.tsx +42 -21
- package/src/checkbox/Checkbox.tsx +1 -1
- package/src/checkbox/__snapshots__/Checkbox.spec.tsx.snap +1 -1
- package/src/circularButton/CircularButton.story.tsx +10 -2
- package/src/common/bottomSheet/BottomSheet.story.tsx +48 -14
- package/src/common/circle/Circle.story.tsx +62 -55
- package/src/common/initials.spec.tsx +31 -0
- package/src/common/initials.ts +19 -8
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +30 -19
- package/src/dateInput/DateInput.tests.story.tsx +101 -74
- package/src/dateLookup/DateLookup.story.tsx +69 -59
- package/src/field/Field.css +10 -1
- package/src/field/Field.less +13 -2
- package/src/field/Field.spec.tsx +19 -3
- package/src/field/Field.story.tsx +18 -0
- package/src/field/Field.tsx +17 -5
- package/src/header/Header.story.tsx +5 -16
- package/src/header/Header.tests.story.tsx +95 -69
- package/src/info/Info.story.tsx +27 -11
- package/src/inlineAlert/InlineAlert.story.tsx +4 -0
- package/src/inlineAlert/InlineAlert.tsx +1 -7
- package/src/instructionsList/InstructionsList.story.tsx +0 -1
- package/src/listItem/Prompt/ListItemPrompt.spec.tsx +9 -9
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +1 -1
- package/src/listItem/Prompt/ListItemPrompt.tsx +3 -4
- package/src/listItem/_stories/ListItem.layout.test.story.tsx +1 -3
- package/src/listItem/_stories/variants/ListItem.brightGreen.test.story.tsx +77 -35
- package/src/listItem/_stories/variants/ListItem.dark.test.story.tsx +65 -29
- package/src/listItem/_stories/variants/ListItem.forestGreen.test.story.tsx +77 -35
- package/src/listItem/_stories/variants/ListItem.medium.test.story.tsx +38 -18
- package/src/listItem/_stories/variants/ListItem.neutral.test.story.tsx +0 -1
- package/src/listItem/_stories/variants/ListItem.personal.test.story.tsx +38 -18
- package/src/listItem/_stories/variants/ListItem.rtl.test.story.tsx +77 -29
- package/src/listItem/_stories/variants/ListItem.small.test.story.tsx +65 -18
- package/src/listItem/_stories/variants/helpers.tsx +136 -133
- package/src/main.css +20 -1
- package/src/main.less +1 -0
- package/src/modal/Modal.story.tsx +47 -8
- package/src/moneyInput/MoneyInput.story.tsx +2 -2
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +1 -0
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.tests.story.tsx +1 -0
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +1 -0
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.tests.story.tsx +1 -0
- package/src/prompt/InlinePrompt/InlinePrompt.css +3 -0
- package/src/prompt/InlinePrompt/InlinePrompt.less +5 -1
- package/src/prompt/InlinePrompt/InlinePrompt.spec.tsx +23 -6
- package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +37 -2
- package/src/prompt/InlinePrompt/InlinePrompt.tsx +12 -5
- package/src/radioGroup/RadioGroup.css +3 -0
- package/src/radioGroup/RadioGroup.less +3 -0
- package/src/radioGroup/RadioGroup.story.tsx +2 -0
- package/src/radioGroup/RadioGroup.test.story.tsx +62 -0
- package/src/radioGroup/RadioGroup.tsx +6 -1
- package/src/segmentedControl/SegmentedControl.story.tsx +71 -67
- package/src/snackbar/Snackbar.tests.story.tsx +116 -114
- package/src/statusIcon/StatusIcon.story.tsx +41 -38
- package/src/test-utils/index.tsx +0 -2
- package/src/tokens/tokens.story.tsx +1 -1
- package/src/tooltip/Tooltip.story.tsx +10 -2
- package/src/typeahead/Typeahead.css +4 -0
- package/src/typeahead/Typeahead.less +5 -1
- package/src/typeahead/Typeahead.spec.tsx +1 -1
- package/src/typeahead/Typeahead.story.tsx +151 -3
- package/src/typeahead/Typeahead.tsx +33 -9
- package/src/upload/Upload.story.tsx +1 -1
- package/src/upload/Upload.tests.story.tsx +36 -1
- package/src/upload/Upload.tsx +1 -1
- package/src/upload/steps/uploadImageStep/uploadImageStep.tsx +7 -3
- package/src/withId/withId.story.tsx +1 -1
- package/build/types/accordion/Accordion.d.ts.map +0 -1
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts.map +0 -1
- package/build/types/accordion/AccordionItem/index.d.ts.map +0 -1
- package/build/types/accordion/index.d.ts.map +0 -1
- package/build/types/actionButton/ActionButton.d.ts.map +0 -1
- package/build/types/actionButton/index.d.ts.map +0 -1
- package/build/types/actionOption/ActionOption.d.ts.map +0 -1
- package/build/types/actionOption/index.d.ts.map +0 -1
- package/build/types/alert/Alert.d.ts +0 -51
- package/build/types/alert/Alert.d.ts.map +0 -1
- package/build/types/alert/index.d.ts.map +0 -1
- package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts.map +0 -1
- package/build/types/alert/inlineMarkdown/index.d.ts.map +0 -1
- package/build/types/avatar/Avatar.d.ts.map +0 -1
- package/build/types/avatar/avatarTypes.d.ts.map +0 -1
- package/build/types/avatar/index.d.ts.map +0 -1
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +0 -1
- package/build/types/avatarLayout/index.d.ts.map +0 -1
- package/build/types/avatarView/AvatarView.d.ts.map +0 -1
- package/build/types/avatarView/Dot.d.ts.map +0 -1
- package/build/types/avatarView/index.d.ts.map +0 -1
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +0 -1
- package/build/types/avatarWrapper/index.d.ts.map +0 -1
- package/build/types/badge/Badge.d.ts.map +0 -1
- package/build/types/badge/BadgeAssets.d.ts.map +0 -1
- package/build/types/badge/index.d.ts.map +0 -1
- package/build/types/body/Body.d.ts.map +0 -1
- package/build/types/body/index.d.ts.map +0 -1
- package/build/types/button/Button.d.ts.map +0 -1
- package/build/types/button/Button.resolver.d.ts.map +0 -1
- package/build/types/button/Button.types.d.ts.map +0 -1
- package/build/types/button/LegacyButton.d.ts.map +0 -1
- package/build/types/button/_stories/helpers.d.ts.map +0 -1
- package/build/types/button/classMap.d.ts.map +0 -1
- package/build/types/button/index.d.ts.map +0 -1
- package/build/types/button/legacyUtils/index.d.ts.map +0 -1
- package/build/types/button/legacyUtils/legacyUtils.d.ts.map +0 -1
- package/build/types/card/Card.d.ts.map +0 -1
- package/build/types/card/index.d.ts.map +0 -1
- package/build/types/carousel/Carousel.d.ts.map +0 -1
- package/build/types/carousel/index.d.ts.map +0 -1
- package/build/types/checkbox/Checkbox.d.ts.map +0 -1
- package/build/types/checkbox/index.d.ts.map +0 -1
- package/build/types/checkboxButton/CheckboxButton.d.ts.map +0 -1
- package/build/types/checkboxButton/index.d.ts.map +0 -1
- package/build/types/checkboxOption/CheckboxOption.d.ts.map +0 -1
- package/build/types/checkboxOption/index.d.ts.map +0 -1
- package/build/types/chevron/Chevron.d.ts.map +0 -1
- package/build/types/chevron/index.d.ts.map +0 -1
- package/build/types/chips/Chip.d.ts.map +0 -1
- package/build/types/chips/Chips.d.ts.map +0 -1
- package/build/types/chips/Chips.messages.d.ts.map +0 -1
- package/build/types/chips/index.d.ts.map +0 -1
- package/build/types/circularButton/CircularButton.d.ts.map +0 -1
- package/build/types/circularButton/index.d.ts.map +0 -1
- package/build/types/common/DOMOperations/DOMOperations.d.ts.map +0 -1
- package/build/types/common/DOMOperations/index.d.ts.map +0 -1
- package/build/types/common/Option/Option.d.ts.map +0 -1
- package/build/types/common/Option/index.d.ts.map +0 -1
- package/build/types/common/RadioButton/RadioButton.d.ts.map +0 -1
- package/build/types/common/RadioButton/index.d.ts.map +0 -1
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +0 -1
- package/build/types/common/bottomSheet/index.d.ts.map +0 -1
- package/build/types/common/card/Card.d.ts.map +0 -1
- package/build/types/common/card/index.d.ts.map +0 -1
- package/build/types/common/circle/Circle.d.ts.map +0 -1
- package/build/types/common/circle/index.d.ts.map +0 -1
- package/build/types/common/closeButton/CloseButton.d.ts.map +0 -1
- package/build/types/common/closeButton/CloseButton.messages.d.ts.map +0 -1
- package/build/types/common/closeButton/index.d.ts.map +0 -1
- package/build/types/common/colors.d.ts.map +0 -1
- package/build/types/common/commonProps.d.ts.map +0 -1
- package/build/types/common/constants.d.ts.map +0 -1
- package/build/types/common/dateUtils/getDateView/getDateView.d.ts.map +0 -1
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +0 -1
- package/build/types/common/dateUtils/getFormatForLocale/getFormatForLocale.d.ts.map +0 -1
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +0 -1
- package/build/types/common/dateUtils/index.d.ts.map +0 -1
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +0 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +0 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +0 -1
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +0 -1
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +0 -1
- package/build/types/common/deviceDetection/deviceDetection.d.ts.map +0 -1
- package/build/types/common/deviceDetection/index.d.ts.map +0 -1
- package/build/types/common/direction.d.ts.map +0 -1
- package/build/types/common/domHelpers/documentIosClick.d.ts.map +0 -1
- package/build/types/common/domHelpers/index.d.ts.map +0 -1
- package/build/types/common/fakeEvents.d.ts.map +0 -1
- package/build/types/common/fileType.d.ts.map +0 -1
- package/build/types/common/flowHeader/FlowHeader.d.ts.map +0 -1
- package/build/types/common/flowHeader/index.d.ts.map +0 -1
- package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +0 -1
- package/build/types/common/focusBoundary/index.d.ts.map +0 -1
- package/build/types/common/historyNavigator/historyNavigator.d.ts.map +0 -1
- package/build/types/common/historyNavigator/index.d.ts.map +0 -1
- package/build/types/common/hooks/index.d.ts.map +0 -1
- package/build/types/common/hooks/useConditionalListener/index.d.ts.map +0 -1
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +0 -1
- package/build/types/common/hooks/useDirection/index.d.ts.map +0 -1
- package/build/types/common/hooks/useDirection/useDirection.d.ts.map +0 -1
- package/build/types/common/hooks/useEffectEvent.d.ts.map +0 -1
- package/build/types/common/hooks/useHasIntersected/index.d.ts.map +0 -1
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +0 -1
- package/build/types/common/hooks/useLayout/index.d.ts.map +0 -1
- package/build/types/common/hooks/useLayout/useLayout.d.ts.map +0 -1
- package/build/types/common/hooks/useMedia.d.ts.map +0 -1
- package/build/types/common/hooks/useResizeObserver.d.ts.map +0 -1
- package/build/types/common/hooks/useScreenSize.d.ts.map +0 -1
- package/build/types/common/hooks/useVirtualKeyboard.d.ts.map +0 -1
- package/build/types/common/index.d.ts.map +0 -1
- package/build/types/common/initials.d.ts.map +0 -1
- package/build/types/common/locale/index.d.ts.map +0 -1
- package/build/types/common/panel/Panel.d.ts.map +0 -1
- package/build/types/common/panel/index.d.ts.map +0 -1
- package/build/types/common/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts.map +0 -1
- package/build/types/common/preventScroll/PreventScroll.d.ts.map +0 -1
- package/build/types/common/propsValues/breakpoint.d.ts.map +0 -1
- package/build/types/common/propsValues/control.d.ts.map +0 -1
- package/build/types/common/propsValues/dateMode.d.ts.map +0 -1
- package/build/types/common/propsValues/layouts.d.ts.map +0 -1
- package/build/types/common/propsValues/markdownNodeType.d.ts.map +0 -1
- package/build/types/common/propsValues/monthFormat.d.ts.map +0 -1
- package/build/types/common/propsValues/position.d.ts.map +0 -1
- package/build/types/common/propsValues/profileType.d.ts.map +0 -1
- package/build/types/common/propsValues/scroll.d.ts.map +0 -1
- package/build/types/common/propsValues/sentiment.d.ts.map +0 -1
- package/build/types/common/propsValues/size.d.ts.map +0 -1
- package/build/types/common/propsValues/status.d.ts.map +0 -1
- package/build/types/common/propsValues/type.d.ts.map +0 -1
- package/build/types/common/propsValues/typography.d.ts.map +0 -1
- package/build/types/common/propsValues/variant.d.ts.map +0 -1
- package/build/types/common/propsValues/width.d.ts.map +0 -1
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts.map +0 -1
- package/build/types/common/responsivePanel/index.d.ts.map +0 -1
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +0 -1
- package/build/types/common/textFormat/formatWithPattern/index.d.ts.map +0 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +0 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +0 -1
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +0 -1
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +0 -1
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +0 -1
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts.map +0 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +0 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +0 -1
- package/build/types/common/textFormat/index.d.ts.map +0 -1
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts.map +0 -1
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +0 -1
- package/build/types/common/theme.d.ts.map +0 -1
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +0 -1
- package/build/types/criticalBanner/index.d.ts.map +0 -1
- package/build/types/dateInput/DateInput.d.ts.map +0 -1
- package/build/types/dateInput/DateInput.messages.d.ts.map +0 -1
- package/build/types/dateInput/index.d.ts.map +0 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +0 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +0 -1
- package/build/types/dateInput/utils/index.d.ts.map +0 -1
- package/build/types/dateLookup/DateLookup.d.ts.map +0 -1
- package/build/types/dateLookup/DateLookup.messages.d.ts.map +0 -1
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +0 -1
- package/build/types/dateLookup/dateHeader/index.d.ts.map +0 -1
- package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts.map +0 -1
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +0 -1
- package/build/types/dateLookup/dateTrigger/index.d.ts.map +0 -1
- package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +0 -1
- package/build/types/dateLookup/dayCalendar/index.d.ts.map +0 -1
- package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +0 -1
- package/build/types/dateLookup/dayCalendar/table/index.d.ts.map +0 -1
- package/build/types/dateLookup/getFocusableTime/getFocusableTime.d.ts.map +0 -1
- package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +0 -1
- package/build/types/dateLookup/getStartOfDay/index.d.ts.map +0 -1
- package/build/types/dateLookup/index.d.ts.map +0 -1
- package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +0 -1
- package/build/types/dateLookup/monthCalendar/index.d.ts.map +0 -1
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +0 -1
- package/build/types/dateLookup/monthCalendar/table/index.d.ts.map +0 -1
- package/build/types/dateLookup/tableLink/TableLink.d.ts.map +0 -1
- package/build/types/dateLookup/tableLink/index.d.ts.map +0 -1
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +0 -1
- package/build/types/dateLookup/yearCalendar/index.d.ts.map +0 -1
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +0 -1
- package/build/types/dateLookup/yearCalendar/table/index.d.ts.map +0 -1
- package/build/types/decision/Decision.d.ts.map +0 -1
- package/build/types/decision/index.d.ts.map +0 -1
- package/build/types/definitionList/DefinitionList.d.ts.map +0 -1
- package/build/types/definitionList/index.d.ts.map +0 -1
- package/build/types/dimmer/Dimmer.d.ts.map +0 -1
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts.map +0 -1
- package/build/types/dimmer/dimmerManager/index.d.ts.map +0 -1
- package/build/types/dimmer/index.d.ts.map +0 -1
- package/build/types/display/Display.d.ts.map +0 -1
- package/build/types/display/index.d.ts.map +0 -1
- package/build/types/divider/Divider.d.ts.map +0 -1
- package/build/types/divider/index.d.ts.map +0 -1
- package/build/types/drawer/Drawer.d.ts.map +0 -1
- package/build/types/drawer/index.d.ts.map +0 -1
- package/build/types/dropFade/DropFade.d.ts.map +0 -1
- package/build/types/dropFade/index.d.ts.map +0 -1
- package/build/types/emphasis/Emphasis.d.ts.map +0 -1
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts.map +0 -1
- package/build/types/emphasis/index.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/ExpressiveMoneyInput.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/ExpressiveMoneyInput.messages.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/amountInput/AmountInput.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/amountInput/utils.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/animatedNumber/AnimatedNumber.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/chevron/Chevron.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/hooks/useFocus.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/hooks/useInputStyle.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/hooks/useSelectionRange.d.ts.map +0 -1
- package/build/types/expressiveMoneyInput/index.d.ts.map +0 -1
- package/build/types/field/Field.d.ts +0 -24
- package/build/types/field/Field.d.ts.map +0 -1
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +0 -1
- package/build/types/flowNavigation/FlowNavigation.messages.d.ts.map +0 -1
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +0 -1
- package/build/types/flowNavigation/animatedLabel/index.d.ts.map +0 -1
- package/build/types/header/Header.d.ts.map +0 -1
- package/build/types/header/index.d.ts.map +0 -1
- package/build/types/i18n/commonMessages/Button.messages.d.ts.map +0 -1
- package/build/types/i18n/index.d.ts.map +0 -1
- package/build/types/iconButton/IconButton.d.ts.map +0 -1
- package/build/types/iconButton/index.d.ts.map +0 -1
- package/build/types/image/Image.d.ts.map +0 -1
- package/build/types/image/index.d.ts.map +0 -1
- package/build/types/index.d.ts.map +0 -1
- package/build/types/info/Info.d.ts.map +0 -1
- package/build/types/info/Info.messages.d.ts.map +0 -1
- package/build/types/info/index.d.ts.map +0 -1
- package/build/types/info/infoPresentations.d.ts.map +0 -1
- package/build/types/inlineAlert/InlineAlert.d.ts +0 -20
- package/build/types/inlineAlert/InlineAlert.d.ts.map +0 -1
- package/build/types/inlineAlert/index.d.ts.map +0 -1
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +0 -1
- package/build/types/inputWithDisplayFormat/index.d.ts.map +0 -1
- package/build/types/inputs/Input.d.ts.map +0 -1
- package/build/types/inputs/InputGroup.d.ts.map +0 -1
- package/build/types/inputs/SearchInput.d.ts.map +0 -1
- package/build/types/inputs/SelectInput.d.ts.map +0 -1
- package/build/types/inputs/SelectInput.messages.d.ts.map +0 -1
- package/build/types/inputs/TextArea.d.ts.map +0 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +0 -1
- package/build/types/inputs/_ButtonInput.d.ts.map +0 -1
- package/build/types/inputs/_Popover.d.ts.map +0 -1
- package/build/types/inputs/_common.d.ts.map +0 -1
- package/build/types/inputs/contexts.d.ts.map +0 -1
- package/build/types/instructionsList/InstructionsList.d.ts.map +0 -1
- package/build/types/instructionsList/index.d.ts.map +0 -1
- package/build/types/label/Label.d.ts.map +0 -1
- package/build/types/label/Label.messages.d.ts.map +0 -1
- package/build/types/label/index.d.ts.map +0 -1
- package/build/types/legacylistItem/LegacyListItem.d.ts.map +0 -1
- package/build/types/legacylistItem/index.d.ts.map +0 -1
- package/build/types/link/Link.d.ts.map +0 -1
- package/build/types/link/Link.messages.d.ts.map +0 -1
- package/build/types/link/index.d.ts.map +0 -1
- package/build/types/list/List.d.ts.map +0 -1
- package/build/types/list/index.d.ts.map +0 -1
- package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +0 -1
- package/build/types/listItem/AdditionalInfo/index.d.ts.map +0 -1
- package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +0 -1
- package/build/types/listItem/AvatarLayout/index.d.ts.map +0 -1
- package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +0 -1
- package/build/types/listItem/AvatarView/index.d.ts.map +0 -1
- package/build/types/listItem/Button/ListItemButton.d.ts.map +0 -1
- package/build/types/listItem/Button/index.d.ts.map +0 -1
- package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +0 -1
- package/build/types/listItem/Checkbox/index.d.ts.map +0 -1
- package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +0 -1
- package/build/types/listItem/IconButton/index.d.ts.map +0 -1
- package/build/types/listItem/Image/ListItemImage.d.ts.map +0 -1
- package/build/types/listItem/Image/index.d.ts.map +0 -1
- package/build/types/listItem/ListItem.d.ts +0 -120
- package/build/types/listItem/ListItem.d.ts.map +0 -1
- package/build/types/listItem/ListItemContext.d.ts.map +0 -1
- package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +0 -1
- package/build/types/listItem/Navigation/index.d.ts.map +0 -1
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts +0 -14
- package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +0 -1
- package/build/types/listItem/Prompt/index.d.ts.map +0 -1
- package/build/types/listItem/Radio/ListItemRadio.d.ts.map +0 -1
- package/build/types/listItem/Radio/index.d.ts.map +0 -1
- package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +0 -1
- package/build/types/listItem/Switch/index.d.ts.map +0 -1
- package/build/types/listItem/_stories/helpers.d.ts.map +0 -1
- package/build/types/listItem/_stories/subcomponents.d.ts.map +0 -1
- package/build/types/listItem/_stories/variants/helpers.d.ts +0 -8
- package/build/types/listItem/_stories/variants/helpers.d.ts.map +0 -1
- package/build/types/listItem/constants.d.ts.map +0 -1
- package/build/types/listItem/index.d.ts.map +0 -1
- package/build/types/listItem/test-utils.d.ts.map +0 -1
- package/build/types/listItem/useListItemControl.d.ts.map +0 -1
- package/build/types/listItem/useListItemMedia.d.ts.map +0 -1
- package/build/types/loader/Loader.d.ts.map +0 -1
- package/build/types/loader/index.d.ts.map +0 -1
- package/build/types/logo/Logo.d.ts.map +0 -1
- package/build/types/logo/index.d.ts.map +0 -1
- package/build/types/logo/logo-assets.d.ts.map +0 -1
- package/build/types/markdown/Markdown.d.ts.map +0 -1
- package/build/types/markdown/index.d.ts.map +0 -1
- package/build/types/mocks.d.ts.map +0 -1
- package/build/types/modal/Modal.d.ts.map +0 -1
- package/build/types/modal/index.d.ts.map +0 -1
- package/build/types/money/Money.d.ts.map +0 -1
- package/build/types/money/index.d.ts.map +0 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +0 -1
- package/build/types/moneyInput/MoneyInput.messages.d.ts.map +0 -1
- package/build/types/moneyInput/currencyFormatting.d.ts.map +0 -1
- package/build/types/moneyInput/index.d.ts.map +0 -1
- package/build/types/navigationOption/NavigationOption.d.ts.map +0 -1
- package/build/types/navigationOption/index.d.ts.map +0 -1
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +0 -1
- package/build/types/navigationOptionsList/index.d.ts.map +0 -1
- package/build/types/nudge/Nudge.d.ts.map +0 -1
- package/build/types/nudge/index.d.ts.map +0 -1
- package/build/types/overlayHeader/OverlayHeader.d.ts.map +0 -1
- package/build/types/overlayHeader/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +0 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +0 -1
- package/build/types/phoneNumberInput/data/countries.d.ts.map +0 -1
- package/build/types/phoneNumberInput/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +0 -1
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +0 -1
- package/build/types/popover/Popover.d.ts.map +0 -1
- package/build/types/popover/index.d.ts.map +0 -1
- package/build/types/primitives/PrimitiveAnchor/PrimitiveAnchor.d.ts.map +0 -1
- package/build/types/primitives/PrimitiveAnchor/PrimitiveAnchor.types.d.ts.map +0 -1
- package/build/types/primitives/PrimitiveAnchor/index.d.ts.map +0 -1
- package/build/types/primitives/PrimitiveButton/PrimitiveButton.d.ts.map +0 -1
- package/build/types/primitives/PrimitiveButton/PrimitiveButton.types.d.ts.map +0 -1
- package/build/types/primitives/PrimitiveButton/index.d.ts.map +0 -1
- package/build/types/primitives/index.d.ts.map +0 -1
- package/build/types/primitives/types.d.ts.map +0 -1
- package/build/types/processIndicator/ProcessIndicator.d.ts.map +0 -1
- package/build/types/processIndicator/index.d.ts.map +0 -1
- package/build/types/progress/Progress.d.ts.map +0 -1
- package/build/types/progress/index.d.ts.map +0 -1
- package/build/types/progressBar/ProgressBar.d.ts.map +0 -1
- package/build/types/progressBar/index.d.ts.map +0 -1
- package/build/types/promoCard/PromoCard.d.ts.map +0 -1
- package/build/types/promoCard/PromoCardContext.d.ts.map +0 -1
- package/build/types/promoCard/PromoCardGroup.d.ts.map +0 -1
- package/build/types/promoCard/PromoCardIndicator.d.ts.map +0 -1
- package/build/types/promoCard/index.d.ts.map +0 -1
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +0 -39
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +0 -1
- package/build/types/prompt/InlinePrompt/index.d.ts.map +0 -1
- package/build/types/prompt/index.d.ts.map +0 -1
- package/build/types/provider/Provider.d.ts.map +0 -1
- package/build/types/provider/direction/DirectionProvider.d.ts.map +0 -1
- package/build/types/provider/direction/index.d.ts.map +0 -1
- package/build/types/provider/index.d.ts.map +0 -1
- package/build/types/provider/language/LanguageProvider.d.ts.map +0 -1
- package/build/types/provider/language/index.d.ts.map +0 -1
- package/build/types/provider/overlay/OverlayIdProvider.d.ts.map +0 -1
- package/build/types/radio/Radio.d.ts.map +0 -1
- package/build/types/radio/index.d.ts.map +0 -1
- package/build/types/radioGroup/RadioGroup.d.ts.map +0 -1
- package/build/types/radioGroup/index.d.ts.map +0 -1
- package/build/types/radioOption/RadioOption.d.ts.map +0 -1
- package/build/types/radioOption/index.d.ts.map +0 -1
- package/build/types/section/Section.d.ts.map +0 -1
- package/build/types/section/index.d.ts.map +0 -1
- package/build/types/segmentedControl/SegmentedControl.d.ts.map +0 -1
- package/build/types/segmentedControl/index.d.ts.map +0 -1
- package/build/types/select/Select.d.ts.map +0 -1
- package/build/types/select/Select.messages.d.ts.map +0 -1
- package/build/types/select/index.d.ts.map +0 -1
- package/build/types/select/option/Option.d.ts.map +0 -1
- package/build/types/select/option/index.d.ts.map +0 -1
- package/build/types/select/searchBox/SearchBox.d.ts.map +0 -1
- package/build/types/select/searchBox/index.d.ts.map +0 -1
- package/build/types/sentimentSurface/SentimentSurface.d.ts.map +0 -1
- package/build/types/sentimentSurface/SentimentSurface.types.d.ts.map +0 -1
- package/build/types/sentimentSurface/index.d.ts.map +0 -1
- package/build/types/slidingPanel/SlidingPanel.d.ts.map +0 -1
- package/build/types/slidingPanel/index.d.ts.map +0 -1
- package/build/types/snackbar/Snackbar.d.ts.map +0 -1
- package/build/types/snackbar/SnackbarContext.d.ts.map +0 -1
- package/build/types/snackbar/SnackbarProvider.d.ts.map +0 -1
- package/build/types/snackbar/index.d.ts.map +0 -1
- package/build/types/snackbar/useSnackbar.d.ts.map +0 -1
- package/build/types/statusIcon/StatusIcon.d.ts.map +0 -1
- package/build/types/statusIcon/StatusIcon.messages.d.ts.map +0 -1
- package/build/types/statusIcon/index.d.ts.map +0 -1
- package/build/types/stepper/Stepper.d.ts.map +0 -1
- package/build/types/stepper/deviceDetection.d.ts.map +0 -1
- package/build/types/sticky/Sticky.d.ts.map +0 -1
- package/build/types/sticky/index.d.ts.map +0 -1
- package/build/types/summary/Summary.d.ts.map +0 -1
- package/build/types/summary/Summary.messages.d.ts.map +0 -1
- package/build/types/summary/index.d.ts.map +0 -1
- package/build/types/switch/Switch.d.ts.map +0 -1
- package/build/types/switch/index.d.ts.map +0 -1
- package/build/types/switchOption/SwitchOption.d.ts.map +0 -1
- package/build/types/switchOption/index.d.ts.map +0 -1
- package/build/types/table/Table.d.ts.map +0 -1
- package/build/types/table/Table.messages.d.ts.map +0 -1
- package/build/types/table/TableCell.d.ts.map +0 -1
- package/build/types/table/TableHeader.d.ts.map +0 -1
- package/build/types/table/TableRow.d.ts.map +0 -1
- package/build/types/table/TableStatusText.d.ts.map +0 -1
- package/build/types/table/index.d.ts.map +0 -1
- package/build/types/tabs/Tab.d.ts.map +0 -1
- package/build/types/tabs/TabList.d.ts.map +0 -1
- package/build/types/tabs/TabPanel.d.ts.map +0 -1
- package/build/types/tabs/Tabs.d.ts.map +0 -1
- package/build/types/tabs/index.d.ts.map +0 -1
- package/build/types/tabs/utils.d.ts.map +0 -1
- package/build/types/test-utils/fake-data.d.ts.map +0 -1
- package/build/types/test-utils/index.d.ts +0 -180
- package/build/types/test-utils/index.d.ts.map +0 -1
- package/build/types/test-utils/jest.setup.d.ts.map +0 -1
- package/build/types/test-utils/story-config.d.ts +0 -64
- package/build/types/test-utils/story-config.d.ts.map +0 -1
- package/build/types/test-utils/style-mock.d.ts.map +0 -1
- package/build/types/test-utils/wait.d.ts.map +0 -1
- package/build/types/test-utils/window-mock.d.ts.map +0 -1
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +0 -1
- package/build/types/textareaWithDisplayFormat/index.d.ts.map +0 -1
- package/build/types/tile/Tile.d.ts.map +0 -1
- package/build/types/tile/index.d.ts.map +0 -1
- package/build/types/title/Title.d.ts.map +0 -1
- package/build/types/title/index.d.ts.map +0 -1
- package/build/types/tooltip/Tooltip.d.ts.map +0 -1
- package/build/types/tooltip/index.d.ts.map +0 -1
- package/build/types/typeahead/Typeahead.d.ts +0 -47
- package/build/types/typeahead/Typeahead.d.ts.map +0 -1
- package/build/types/typeahead/Typeahead.messages.d.ts.map +0 -1
- package/build/types/typeahead/index.d.ts.map +0 -1
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts.map +0 -1
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +0 -1
- package/build/types/typeahead/util/highlight.d.ts.map +0 -1
- package/build/types/upload/Upload.d.ts +0 -100
- package/build/types/upload/Upload.d.ts.map +0 -1
- package/build/types/upload/Upload.messages.d.ts.map +0 -1
- package/build/types/upload/index.d.ts.map +0 -1
- package/build/types/upload/steps/completeStep/completeStep.d.ts.map +0 -1
- package/build/types/upload/steps/completeStep/index.d.ts.map +0 -1
- package/build/types/upload/steps/index.d.ts.map +0 -1
- package/build/types/upload/steps/processingStep/index.d.ts.map +0 -1
- package/build/types/upload/steps/processingStep/processingStep.d.ts.map +0 -1
- package/build/types/upload/steps/uploadImageStep/index.d.ts.map +0 -1
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +0 -1
- package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts.map +0 -1
- package/build/types/upload/utils/asyncFileRead/index.d.ts.map +0 -1
- package/build/types/upload/utils/getFileType/getFileType.d.ts.map +0 -1
- package/build/types/upload/utils/getFileType/index.d.ts.map +0 -1
- package/build/types/upload/utils/index.d.ts.map +0 -1
- package/build/types/upload/utils/isSizeValid/index.d.ts.map +0 -1
- package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts.map +0 -1
- package/build/types/upload/utils/isTypeValid/index.d.ts.map +0 -1
- package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts.map +0 -1
- package/build/types/upload/utils/postData/index.d.ts.map +0 -1
- package/build/types/upload/utils/postData/postData.d.ts.map +0 -1
- package/build/types/uploadInput/UploadInput.d.ts.map +0 -1
- package/build/types/uploadInput/UploadInput.messages.d.ts.map +0 -1
- package/build/types/uploadInput/index.d.ts.map +0 -1
- package/build/types/uploadInput/types.d.ts.map +0 -1
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +0 -1
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts.map +0 -1
- package/build/types/uploadInput/uploadButton/defaults.d.ts.map +0 -1
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +0 -1
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +0 -1
- package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts.map +0 -1
- package/build/types/uploadInput/uploadItem/UploadItemLink.d.ts.map +0 -1
- package/build/types/utilities/cssValueWithUnit.d.ts.map +0 -1
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +0 -1
- package/build/types/utilities/deprecatedProperty/index.d.ts.map +0 -1
- package/build/types/utilities/index.d.ts.map +0 -1
- package/build/types/utilities/logActionRequired.d.ts.map +0 -1
- package/build/types/utils.d.ts.map +0 -1
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +0 -1
- package/build/types/withDisplayFormat/index.d.ts.map +0 -1
- package/build/types/withId/index.d.ts.map +0 -1
- package/build/types/withId/story/source.d.ts.map +0 -1
- package/build/types/withId/withId.d.ts.map +0 -1
- package/build/types/withNextPortal/withNextPortal.d.ts.map +0 -1
- package/src/test-utils/story-config.ts +0 -95
- /package/build/types/{accordion → components/src/accordion}/Accordion.d.ts +0 -0
- /package/build/types/{accordion → components/src/accordion}/AccordionItem/AccordionItem.d.ts +0 -0
- /package/build/types/{accordion → components/src/accordion}/AccordionItem/index.d.ts +0 -0
- /package/build/types/{accordion → components/src/accordion}/index.d.ts +0 -0
- /package/build/types/{actionButton → components/src/actionButton}/ActionButton.d.ts +0 -0
- /package/build/types/{actionButton → components/src/actionButton}/index.d.ts +0 -0
- /package/build/types/{actionOption → components/src/actionOption}/ActionOption.d.ts +0 -0
- /package/build/types/{actionOption → components/src/actionOption}/index.d.ts +0 -0
- /package/build/types/{alert → components/src/alert}/index.d.ts +0 -0
- /package/build/types/{alert → components/src/alert}/inlineMarkdown/InlineMarkdown.d.ts +0 -0
- /package/build/types/{alert → components/src/alert}/inlineMarkdown/index.d.ts +0 -0
- /package/build/types/{avatar → components/src/avatar}/Avatar.d.ts +0 -0
- /package/build/types/{avatar → components/src/avatar}/avatarTypes.d.ts +0 -0
- /package/build/types/{avatar → components/src/avatar}/index.d.ts +0 -0
- /package/build/types/{avatarLayout → components/src/avatarLayout}/AvatarLayout.d.ts +0 -0
- /package/build/types/{avatarLayout → components/src/avatarLayout}/index.d.ts +0 -0
- /package/build/types/{avatarView → components/src/avatarView}/AvatarView.d.ts +0 -0
- /package/build/types/{avatarView → components/src/avatarView}/Dot.d.ts +0 -0
- /package/build/types/{avatarView → components/src/avatarView}/index.d.ts +0 -0
- /package/build/types/{avatarWrapper → components/src/avatarWrapper}/AvatarWrapper.d.ts +0 -0
- /package/build/types/{avatarWrapper → components/src/avatarWrapper}/index.d.ts +0 -0
- /package/build/types/{badge → components/src/badge}/Badge.d.ts +0 -0
- /package/build/types/{badge → components/src/badge}/BadgeAssets.d.ts +0 -0
- /package/build/types/{badge → components/src/badge}/index.d.ts +0 -0
- /package/build/types/{body → components/src/body}/Body.d.ts +0 -0
- /package/build/types/{body → components/src/body}/index.d.ts +0 -0
- /package/build/types/{button → components/src/button}/Button.d.ts +0 -0
- /package/build/types/{button → components/src/button}/Button.resolver.d.ts +0 -0
- /package/build/types/{button → components/src/button}/Button.types.d.ts +0 -0
- /package/build/types/{button → components/src/button}/LegacyButton.d.ts +0 -0
- /package/build/types/{button → components/src/button}/_stories/helpers.d.ts +0 -0
- /package/build/types/{button → components/src/button}/classMap.d.ts +0 -0
- /package/build/types/{button → components/src/button}/index.d.ts +0 -0
- /package/build/types/{button → components/src/button}/legacyUtils/index.d.ts +0 -0
- /package/build/types/{button → components/src/button}/legacyUtils/legacyUtils.d.ts +0 -0
- /package/build/types/{card → components/src/card}/Card.d.ts +0 -0
- /package/build/types/{card → components/src/card}/index.d.ts +0 -0
- /package/build/types/{carousel → components/src/carousel}/Carousel.d.ts +0 -0
- /package/build/types/{carousel → components/src/carousel}/index.d.ts +0 -0
- /package/build/types/{checkbox → components/src/checkbox}/Checkbox.d.ts +0 -0
- /package/build/types/{checkbox → components/src/checkbox}/index.d.ts +0 -0
- /package/build/types/{checkboxButton → components/src/checkboxButton}/CheckboxButton.d.ts +0 -0
- /package/build/types/{checkboxButton → components/src/checkboxButton}/index.d.ts +0 -0
- /package/build/types/{checkboxOption → components/src/checkboxOption}/CheckboxOption.d.ts +0 -0
- /package/build/types/{checkboxOption → components/src/checkboxOption}/index.d.ts +0 -0
- /package/build/types/{chevron → components/src/chevron}/Chevron.d.ts +0 -0
- /package/build/types/{chevron → components/src/chevron}/index.d.ts +0 -0
- /package/build/types/{chips → components/src/chips}/Chip.d.ts +0 -0
- /package/build/types/{chips → components/src/chips}/Chips.d.ts +0 -0
- /package/build/types/{chips → components/src/chips}/Chips.messages.d.ts +0 -0
- /package/build/types/{chips → components/src/chips}/index.d.ts +0 -0
- /package/build/types/{circularButton → components/src/circularButton}/CircularButton.d.ts +0 -0
- /package/build/types/{circularButton → components/src/circularButton}/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/DOMOperations/DOMOperations.d.ts +0 -0
- /package/build/types/{common → components/src/common}/DOMOperations/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/Option/Option.d.ts +0 -0
- /package/build/types/{common → components/src/common}/Option/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/RadioButton/RadioButton.d.ts +0 -0
- /package/build/types/{common → components/src/common}/RadioButton/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/bottomSheet/BottomSheet.d.ts +0 -0
- /package/build/types/{common → components/src/common}/bottomSheet/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/card/Card.d.ts +0 -0
- /package/build/types/{common → components/src/common}/card/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/circle/Circle.d.ts +0 -0
- /package/build/types/{common → components/src/common}/circle/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/closeButton/CloseButton.d.ts +0 -0
- /package/build/types/{common → components/src/common}/closeButton/CloseButton.messages.d.ts +0 -0
- /package/build/types/{common → components/src/common}/closeButton/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/colors.d.ts +0 -0
- /package/build/types/{common → components/src/common}/commonProps.d.ts +0 -0
- /package/build/types/{common → components/src/common}/constants.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/getDateView/getDateView.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/getDayNames/getDayNames.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/getFormatForLocale/getFormatForLocale.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/getMonthNames/getMonthNames.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/isDateValid/isDateValid.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/isMonthAndYearFormat/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/isWithinRange/isWithinRange.d.ts +0 -0
- /package/build/types/{common → components/src/common}/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +0 -0
- /package/build/types/{common → components/src/common}/deviceDetection/deviceDetection.d.ts +0 -0
- /package/build/types/{common → components/src/common}/deviceDetection/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/direction.d.ts +0 -0
- /package/build/types/{common → components/src/common}/domHelpers/documentIosClick.d.ts +0 -0
- /package/build/types/{common → components/src/common}/domHelpers/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/fakeEvents.d.ts +0 -0
- /package/build/types/{common → components/src/common}/fileType.d.ts +0 -0
- /package/build/types/{common → components/src/common}/flowHeader/FlowHeader.d.ts +0 -0
- /package/build/types/{common → components/src/common}/flowHeader/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/focusBoundary/FocusBoundary.d.ts +0 -0
- /package/build/types/{common → components/src/common}/focusBoundary/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/historyNavigator/historyNavigator.d.ts +0 -0
- /package/build/types/{common → components/src/common}/historyNavigator/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useConditionalListener/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useConditionalListener/useConditionalListener.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useDirection/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useDirection/useDirection.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useEffectEvent.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useHasIntersected/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useHasIntersected/useHasIntersected.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useLayout/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useLayout/useLayout.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useMedia.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useResizeObserver.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useScreenSize.d.ts +0 -0
- /package/build/types/{common → components/src/common}/hooks/useVirtualKeyboard.d.ts +0 -0
- /package/build/types/{common → components/src/common}/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/initials.d.ts +0 -0
- /package/build/types/{common → components/src/common}/locale/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/panel/Panel.d.ts +0 -0
- /package/build/types/{common → components/src/common}/panel/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts +0 -0
- /package/build/types/{common → components/src/common}/preventScroll/PreventScroll.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/breakpoint.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/control.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/dateMode.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/layouts.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/markdownNodeType.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/monthFormat.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/position.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/profileType.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/scroll.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/sentiment.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/size.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/status.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/type.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/typography.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/variant.d.ts +0 -0
- /package/build/types/{common → components/src/common}/propsValues/width.d.ts +0 -0
- /package/build/types/{common → components/src/common}/responsivePanel/ResponsivePanel.d.ts +0 -0
- /package/build/types/{common → components/src/common}/responsivePanel/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/formatWithPattern/formatWithPattern.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/formatWithPattern/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getCountOfSymbolsInSelection/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getCursorPositionAfterKeystroke/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getDistanceToSymbol/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/getSymbolsInPatternWithPosition/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/unformatWithPattern/index.d.ts +0 -0
- /package/build/types/{common → components/src/common}/textFormat/unformatWithPattern/unformatWithPattern.d.ts +0 -0
- /package/build/types/{common → components/src/common}/theme.d.ts +0 -0
- /package/build/types/{criticalBanner → components/src/criticalBanner}/CriticalCommsBanner.d.ts +0 -0
- /package/build/types/{criticalBanner → components/src/criticalBanner}/index.d.ts +0 -0
- /package/build/types/{dateInput → components/src/dateInput}/DateInput.d.ts +0 -0
- /package/build/types/{dateInput → components/src/dateInput}/DateInput.messages.d.ts +0 -0
- /package/build/types/{dateInput → components/src/dateInput}/index.d.ts +0 -0
- /package/build/types/{dateInput → components/src/dateInput}/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +0 -0
- /package/build/types/{dateInput → components/src/dateInput}/utils/convertToLocalMidnight/index.d.ts +0 -0
- /package/build/types/{dateInput → components/src/dateInput}/utils/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/DateLookup.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/DateLookup.messages.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dateHeader/DateHeader.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dateHeader/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dateTrigger/DateTrigger.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dateTrigger/DateTrigger.messages.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dateTrigger/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dayCalendar/DayCalendar.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dayCalendar/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dayCalendar/table/DayCalendarTable.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/dayCalendar/table/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/getFocusableTime/getFocusableTime.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/getStartOfDay/getStartOfDay.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/getStartOfDay/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/monthCalendar/MonthCalendar.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/monthCalendar/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/monthCalendar/table/MonthCalendarTable.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/monthCalendar/table/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/tableLink/TableLink.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/tableLink/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/yearCalendar/YearCalendar.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/yearCalendar/index.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/yearCalendar/table/YearCalendarTable.d.ts +0 -0
- /package/build/types/{dateLookup → components/src/dateLookup}/yearCalendar/table/index.d.ts +0 -0
- /package/build/types/{decision → components/src/decision}/Decision.d.ts +0 -0
- /package/build/types/{decision → components/src/decision}/index.d.ts +0 -0
- /package/build/types/{definitionList → components/src/definitionList}/DefinitionList.d.ts +0 -0
- /package/build/types/{definitionList → components/src/definitionList}/index.d.ts +0 -0
- /package/build/types/{dimmer → components/src/dimmer}/Dimmer.d.ts +0 -0
- /package/build/types/{dimmer → components/src/dimmer}/dimmerManager/DimmerManager.d.ts +0 -0
- /package/build/types/{dimmer → components/src/dimmer}/dimmerManager/index.d.ts +0 -0
- /package/build/types/{dimmer → components/src/dimmer}/index.d.ts +0 -0
- /package/build/types/{display → components/src/display}/Display.d.ts +0 -0
- /package/build/types/{display → components/src/display}/index.d.ts +0 -0
- /package/build/types/{divider → components/src/divider}/Divider.d.ts +0 -0
- /package/build/types/{divider → components/src/divider}/index.d.ts +0 -0
- /package/build/types/{drawer → components/src/drawer}/Drawer.d.ts +0 -0
- /package/build/types/{drawer → components/src/drawer}/index.d.ts +0 -0
- /package/build/types/{dropFade → components/src/dropFade}/DropFade.d.ts +0 -0
- /package/build/types/{dropFade → components/src/dropFade}/index.d.ts +0 -0
- /package/build/types/{emphasis → components/src/emphasis}/Emphasis.d.ts +0 -0
- /package/build/types/{emphasis → components/src/emphasis}/EmphasisHtmlTransformer.d.ts +0 -0
- /package/build/types/{emphasis → components/src/emphasis}/index.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/ExpressiveMoneyInput.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/ExpressiveMoneyInput.messages.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/amountInput/AmountInput.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/amountInput/utils.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/animatedNumber/AnimatedNumber.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/chevron/Chevron.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/currencySelector/CurrencySelector.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/hooks/useFocus.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/hooks/useInputStyle.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/hooks/useSelectionRange.d.ts +0 -0
- /package/build/types/{expressiveMoneyInput → components/src/expressiveMoneyInput}/index.d.ts +0 -0
- /package/build/types/{flowNavigation → components/src/flowNavigation}/FlowNavigation.d.ts +0 -0
- /package/build/types/{flowNavigation → components/src/flowNavigation}/FlowNavigation.messages.d.ts +0 -0
- /package/build/types/{flowNavigation → components/src/flowNavigation}/animatedLabel/AnimatedLabel.d.ts +0 -0
- /package/build/types/{flowNavigation → components/src/flowNavigation}/animatedLabel/index.d.ts +0 -0
- /package/build/types/{header → components/src/header}/Header.d.ts +0 -0
- /package/build/types/{header → components/src/header}/index.d.ts +0 -0
- /package/build/types/{i18n → components/src/i18n}/commonMessages/Button.messages.d.ts +0 -0
- /package/build/types/{i18n → components/src/i18n}/index.d.ts +0 -0
- /package/build/types/{iconButton → components/src/iconButton}/IconButton.d.ts +0 -0
- /package/build/types/{iconButton → components/src/iconButton}/index.d.ts +0 -0
- /package/build/types/{image → components/src/image}/Image.d.ts +0 -0
- /package/build/types/{image → components/src/image}/index.d.ts +0 -0
- /package/build/types/{index.d.ts → components/src/index.d.ts} +0 -0
- /package/build/types/{info → components/src/info}/Info.d.ts +0 -0
- /package/build/types/{info → components/src/info}/Info.messages.d.ts +0 -0
- /package/build/types/{info → components/src/info}/index.d.ts +0 -0
- /package/build/types/{info → components/src/info}/infoPresentations.d.ts +0 -0
- /package/build/types/{inlineAlert → components/src/inlineAlert}/index.d.ts +0 -0
- /package/build/types/{inputWithDisplayFormat → components/src/inputWithDisplayFormat}/InputWithDisplayFormat.d.ts +0 -0
- /package/build/types/{inputWithDisplayFormat → components/src/inputWithDisplayFormat}/index.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/Input.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/InputGroup.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/SearchInput.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/SelectInput.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/SelectInput.messages.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/TextArea.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/_BottomSheet.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/_ButtonInput.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/_Popover.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/_common.d.ts +0 -0
- /package/build/types/{inputs → components/src/inputs}/contexts.d.ts +0 -0
- /package/build/types/{instructionsList → components/src/instructionsList}/InstructionsList.d.ts +0 -0
- /package/build/types/{instructionsList → components/src/instructionsList}/index.d.ts +0 -0
- /package/build/types/{label → components/src/label}/Label.d.ts +0 -0
- /package/build/types/{label → components/src/label}/Label.messages.d.ts +0 -0
- /package/build/types/{label → components/src/label}/index.d.ts +0 -0
- /package/build/types/{legacylistItem → components/src/legacylistItem}/LegacyListItem.d.ts +0 -0
- /package/build/types/{legacylistItem → components/src/legacylistItem}/index.d.ts +0 -0
- /package/build/types/{link → components/src/link}/Link.d.ts +0 -0
- /package/build/types/{link → components/src/link}/Link.messages.d.ts +0 -0
- /package/build/types/{link → components/src/link}/index.d.ts +0 -0
- /package/build/types/{list → components/src/list}/List.d.ts +0 -0
- /package/build/types/{list → components/src/list}/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/AdditionalInfo/ListItemAdditionalInfo.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/AdditionalInfo/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/AvatarLayout/ListItemAvatarLayout.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/AvatarLayout/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/AvatarView/ListItemAvatarView.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/AvatarView/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Button/ListItemButton.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Button/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Checkbox/ListItemCheckbox.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Checkbox/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/IconButton/ListItemIconButton.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/IconButton/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Image/ListItemImage.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Image/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/ListItemContext.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Navigation/ListItemNavigation.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Navigation/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Prompt/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Radio/ListItemRadio.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Radio/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Switch/ListItemSwitch.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/Switch/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/_stories/helpers.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/_stories/subcomponents.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/constants.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/index.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/test-utils.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/useListItemControl.d.ts +0 -0
- /package/build/types/{listItem → components/src/listItem}/useListItemMedia.d.ts +0 -0
- /package/build/types/{loader → components/src/loader}/Loader.d.ts +0 -0
- /package/build/types/{loader → components/src/loader}/index.d.ts +0 -0
- /package/build/types/{logo → components/src/logo}/Logo.d.ts +0 -0
- /package/build/types/{logo → components/src/logo}/index.d.ts +0 -0
- /package/build/types/{logo → components/src/logo}/logo-assets.d.ts +0 -0
- /package/build/types/{markdown → components/src/markdown}/Markdown.d.ts +0 -0
- /package/build/types/{markdown → components/src/markdown}/index.d.ts +0 -0
- /package/build/types/{mocks.d.ts → components/src/mocks.d.ts} +0 -0
- /package/build/types/{modal → components/src/modal}/Modal.d.ts +0 -0
- /package/build/types/{modal → components/src/modal}/index.d.ts +0 -0
- /package/build/types/{money → components/src/money}/Money.d.ts +0 -0
- /package/build/types/{money → components/src/money}/index.d.ts +0 -0
- /package/build/types/{moneyInput → components/src/moneyInput}/MoneyInput.d.ts +0 -0
- /package/build/types/{moneyInput → components/src/moneyInput}/MoneyInput.messages.d.ts +0 -0
- /package/build/types/{moneyInput → components/src/moneyInput}/currencyFormatting.d.ts +0 -0
- /package/build/types/{moneyInput → components/src/moneyInput}/index.d.ts +0 -0
- /package/build/types/{navigationOption → components/src/navigationOption}/NavigationOption.d.ts +0 -0
- /package/build/types/{navigationOption → components/src/navigationOption}/index.d.ts +0 -0
- /package/build/types/{navigationOptionsList → components/src/navigationOptionsList}/NavigationOptionsList.d.ts +0 -0
- /package/build/types/{navigationOptionsList → components/src/navigationOptionsList}/index.d.ts +0 -0
- /package/build/types/{nudge → components/src/nudge}/Nudge.d.ts +0 -0
- /package/build/types/{nudge → components/src/nudge}/index.d.ts +0 -0
- /package/build/types/{overlayHeader → components/src/overlayHeader}/OverlayHeader.d.ts +0 -0
- /package/build/types/{overlayHeader → components/src/overlayHeader}/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/PhoneNumberInput.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/PhoneNumberInput.messages.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/data/countries.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/cleanNumber/cleanNumber.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/cleanNumber/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/excludeCountries/excludeCountries.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/excludeCountries/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/explodeNumberModel/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/findCountryByCode/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/findCountryByPrefix/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/groupCountriesByPrefix/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/isStringNumeric/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/isStringNumeric/isStringNumeric.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/isValidPhoneNumber/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/longestMatchingPrefix/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/setDefaultPrefix/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/sortArrayByProperty/index.d.ts +0 -0
- /package/build/types/{phoneNumberInput → components/src/phoneNumberInput}/utils/sortArrayByProperty/sortArrayByProperty.d.ts +0 -0
- /package/build/types/{popover → components/src/popover}/Popover.d.ts +0 -0
- /package/build/types/{popover → components/src/popover}/index.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/PrimitiveAnchor/PrimitiveAnchor.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/PrimitiveAnchor/PrimitiveAnchor.types.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/PrimitiveAnchor/index.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/PrimitiveButton/PrimitiveButton.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/PrimitiveButton/PrimitiveButton.types.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/PrimitiveButton/index.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/index.d.ts +0 -0
- /package/build/types/{primitives → components/src/primitives}/types.d.ts +0 -0
- /package/build/types/{processIndicator → components/src/processIndicator}/ProcessIndicator.d.ts +0 -0
- /package/build/types/{processIndicator → components/src/processIndicator}/index.d.ts +0 -0
- /package/build/types/{progress → components/src/progress}/Progress.d.ts +0 -0
- /package/build/types/{progress → components/src/progress}/index.d.ts +0 -0
- /package/build/types/{progressBar → components/src/progressBar}/ProgressBar.d.ts +0 -0
- /package/build/types/{progressBar → components/src/progressBar}/index.d.ts +0 -0
- /package/build/types/{promoCard → components/src/promoCard}/PromoCard.d.ts +0 -0
- /package/build/types/{promoCard → components/src/promoCard}/PromoCardContext.d.ts +0 -0
- /package/build/types/{promoCard → components/src/promoCard}/PromoCardGroup.d.ts +0 -0
- /package/build/types/{promoCard → components/src/promoCard}/PromoCardIndicator.d.ts +0 -0
- /package/build/types/{promoCard → components/src/promoCard}/index.d.ts +0 -0
- /package/build/types/{prompt → components/src/prompt}/InlinePrompt/index.d.ts +0 -0
- /package/build/types/{prompt → components/src/prompt}/index.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/Provider.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/direction/DirectionProvider.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/direction/index.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/index.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/language/LanguageProvider.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/language/index.d.ts +0 -0
- /package/build/types/{provider → components/src/provider}/overlay/OverlayIdProvider.d.ts +0 -0
- /package/build/types/{radio → components/src/radio}/Radio.d.ts +0 -0
- /package/build/types/{radio → components/src/radio}/index.d.ts +0 -0
- /package/build/types/{radioGroup → components/src/radioGroup}/RadioGroup.d.ts +0 -0
- /package/build/types/{radioGroup → components/src/radioGroup}/index.d.ts +0 -0
- /package/build/types/{radioOption → components/src/radioOption}/RadioOption.d.ts +0 -0
- /package/build/types/{radioOption → components/src/radioOption}/index.d.ts +0 -0
- /package/build/types/{section → components/src/section}/Section.d.ts +0 -0
- /package/build/types/{section → components/src/section}/index.d.ts +0 -0
- /package/build/types/{segmentedControl → components/src/segmentedControl}/SegmentedControl.d.ts +0 -0
- /package/build/types/{segmentedControl → components/src/segmentedControl}/index.d.ts +0 -0
- /package/build/types/{select → components/src/select}/Select.d.ts +0 -0
- /package/build/types/{select → components/src/select}/Select.messages.d.ts +0 -0
- /package/build/types/{select → components/src/select}/index.d.ts +0 -0
- /package/build/types/{select → components/src/select}/option/Option.d.ts +0 -0
- /package/build/types/{select → components/src/select}/option/index.d.ts +0 -0
- /package/build/types/{select → components/src/select}/searchBox/SearchBox.d.ts +0 -0
- /package/build/types/{select → components/src/select}/searchBox/index.d.ts +0 -0
- /package/build/types/{sentimentSurface → components/src/sentimentSurface}/SentimentSurface.d.ts +0 -0
- /package/build/types/{sentimentSurface → components/src/sentimentSurface}/SentimentSurface.types.d.ts +0 -0
- /package/build/types/{sentimentSurface → components/src/sentimentSurface}/index.d.ts +0 -0
- /package/build/types/{slidingPanel → components/src/slidingPanel}/SlidingPanel.d.ts +0 -0
- /package/build/types/{slidingPanel → components/src/slidingPanel}/index.d.ts +0 -0
- /package/build/types/{snackbar → components/src/snackbar}/Snackbar.d.ts +0 -0
- /package/build/types/{snackbar → components/src/snackbar}/SnackbarContext.d.ts +0 -0
- /package/build/types/{snackbar → components/src/snackbar}/SnackbarProvider.d.ts +0 -0
- /package/build/types/{snackbar → components/src/snackbar}/index.d.ts +0 -0
- /package/build/types/{snackbar → components/src/snackbar}/useSnackbar.d.ts +0 -0
- /package/build/types/{statusIcon → components/src/statusIcon}/StatusIcon.d.ts +0 -0
- /package/build/types/{statusIcon → components/src/statusIcon}/StatusIcon.messages.d.ts +0 -0
- /package/build/types/{statusIcon → components/src/statusIcon}/index.d.ts +0 -0
- /package/build/types/{stepper → components/src/stepper}/Stepper.d.ts +0 -0
- /package/build/types/{stepper → components/src/stepper}/deviceDetection.d.ts +0 -0
- /package/build/types/{sticky → components/src/sticky}/Sticky.d.ts +0 -0
- /package/build/types/{sticky → components/src/sticky}/index.d.ts +0 -0
- /package/build/types/{summary → components/src/summary}/Summary.d.ts +0 -0
- /package/build/types/{summary → components/src/summary}/Summary.messages.d.ts +0 -0
- /package/build/types/{summary → components/src/summary}/index.d.ts +0 -0
- /package/build/types/{switch → components/src/switch}/Switch.d.ts +0 -0
- /package/build/types/{switch → components/src/switch}/index.d.ts +0 -0
- /package/build/types/{switchOption → components/src/switchOption}/SwitchOption.d.ts +0 -0
- /package/build/types/{switchOption → components/src/switchOption}/index.d.ts +0 -0
- /package/build/types/{table → components/src/table}/Table.d.ts +0 -0
- /package/build/types/{table → components/src/table}/Table.messages.d.ts +0 -0
- /package/build/types/{table → components/src/table}/TableCell.d.ts +0 -0
- /package/build/types/{table → components/src/table}/TableHeader.d.ts +0 -0
- /package/build/types/{table → components/src/table}/TableRow.d.ts +0 -0
- /package/build/types/{table → components/src/table}/TableStatusText.d.ts +0 -0
- /package/build/types/{table → components/src/table}/index.d.ts +0 -0
- /package/build/types/{tabs → components/src/tabs}/Tab.d.ts +0 -0
- /package/build/types/{tabs → components/src/tabs}/TabList.d.ts +0 -0
- /package/build/types/{tabs → components/src/tabs}/TabPanel.d.ts +0 -0
- /package/build/types/{tabs → components/src/tabs}/Tabs.d.ts +0 -0
- /package/build/types/{tabs → components/src/tabs}/index.d.ts +0 -0
- /package/build/types/{tabs → components/src/tabs}/utils.d.ts +0 -0
- /package/build/types/{test-utils → components/src/test-utils}/fake-data.d.ts +0 -0
- /package/build/types/{test-utils → components/src/test-utils}/jest.setup.d.ts +0 -0
- /package/build/types/{test-utils → components/src/test-utils}/style-mock.d.ts +0 -0
- /package/build/types/{test-utils → components/src/test-utils}/wait.d.ts +0 -0
- /package/build/types/{test-utils → components/src/test-utils}/window-mock.d.ts +0 -0
- /package/build/types/{textareaWithDisplayFormat → components/src/textareaWithDisplayFormat}/TextareaWithDisplayFormat.d.ts +0 -0
- /package/build/types/{textareaWithDisplayFormat → components/src/textareaWithDisplayFormat}/index.d.ts +0 -0
- /package/build/types/{tile → components/src/tile}/Tile.d.ts +0 -0
- /package/build/types/{tile → components/src/tile}/index.d.ts +0 -0
- /package/build/types/{title → components/src/title}/Title.d.ts +0 -0
- /package/build/types/{title → components/src/title}/index.d.ts +0 -0
- /package/build/types/{tooltip → components/src/tooltip}/Tooltip.d.ts +0 -0
- /package/build/types/{tooltip → components/src/tooltip}/index.d.ts +0 -0
- /package/build/types/{typeahead → components/src/typeahead}/Typeahead.messages.d.ts +0 -0
- /package/build/types/{typeahead → components/src/typeahead}/index.d.ts +0 -0
- /package/build/types/{typeahead → components/src/typeahead}/typeaheadInput/TypeaheadInput.d.ts +0 -0
- /package/build/types/{typeahead → components/src/typeahead}/typeaheadOption/TypeaheadOption.d.ts +0 -0
- /package/build/types/{typeahead → components/src/typeahead}/util/highlight.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/Upload.messages.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/completeStep/completeStep.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/completeStep/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/processingStep/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/processingStep/processingStep.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/uploadImageStep/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/steps/uploadImageStep/uploadImageStep.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/asyncFileRead/asyncFileRead.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/asyncFileRead/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/getFileType/getFileType.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/getFileType/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/isSizeValid/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/isSizeValid/isSizeValid.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/isTypeValid/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/isTypeValid/isTypeValid.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/postData/index.d.ts +0 -0
- /package/build/types/{upload → components/src/upload}/utils/postData/postData.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/UploadInput.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/UploadInput.messages.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/index.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/types.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadButton/UploadButton.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadButton/UploadButton.messages.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadButton/defaults.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadButton/getAllowedFileTypes.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadItem/UploadItem.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadItem/UploadItem.messages.d.ts +0 -0
- /package/build/types/{uploadInput → components/src/uploadInput}/uploadItem/UploadItemLink.d.ts +0 -0
- /package/build/types/{utilities → components/src/utilities}/cssValueWithUnit.d.ts +0 -0
- /package/build/types/{utilities → components/src/utilities}/deprecatedProperty/deprecatedProperty.d.ts +0 -0
- /package/build/types/{utilities → components/src/utilities}/deprecatedProperty/index.d.ts +0 -0
- /package/build/types/{utilities → components/src/utilities}/index.d.ts +0 -0
- /package/build/types/{utilities → components/src/utilities}/logActionRequired.d.ts +0 -0
- /package/build/types/{utils.d.ts → components/src/utils.d.ts} +0 -0
- /package/build/types/{withDisplayFormat → components/src/withDisplayFormat}/WithDisplayFormat.d.ts +0 -0
- /package/build/types/{withDisplayFormat → components/src/withDisplayFormat}/index.d.ts +0 -0
- /package/build/types/{withId → components/src/withId}/index.d.ts +0 -0
- /package/build/types/{withId → components/src/withId}/story/source.d.ts +0 -0
- /package/build/types/{withId → components/src/withId}/withId.d.ts +0 -0
- /package/build/types/{withNextPortal → components/src/withNextPortal}/withNextPortal.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.mjs","sources":["../../src/moneyInput/MoneyInput.tsx"],"sourcesContent":["import { isEmpty, isNumber, isNull } from '@transferwise/neptune-validation';\nimport { Flag } from '@wise/art';\nimport { clsx } from 'clsx';\nimport { Component } from 'react';\nimport { injectIntl, WrappedComponentProps } from 'react-intl';\n\nimport { Typography, Size, SizeLarge, SizeMedium, SizeSmall } from '../common';\nimport { withInputAttributes, WithInputAttributesProps } from '../inputs/contexts';\nimport { Input } from '../inputs/Input';\nimport {\n SelectInput,\n SelectInputItem,\n SelectInputOptionContent,\n SelectInputOptionItem,\n SelectInputProps,\n} from '../inputs/SelectInput';\nimport Title from '../title';\n\nimport messages from './MoneyInput.messages';\nimport { formatAmount, parseAmount } from './currencyFormatting';\nimport withId from '../withId';\n\nexport interface CurrencyOptionItem {\n header?: never;\n value: string;\n label: string;\n currency: string;\n note?: string;\n searchable?: string;\n}\n\nexport interface CurrencyHeaderItem {\n header: string;\n}\n\nexport type CurrencyItem = CurrencyOptionItem | CurrencyHeaderItem;\n\nconst isNumberOrNull = (v: unknown): v is number | null => isNumber(v) || isNull(v);\n\nconst formatAmountIfSet = ({\n amount,\n currency,\n locale,\n}: {\n amount: number | null | undefined;\n currency: string;\n locale: string;\n}) => {\n return typeof amount === 'number' ? formatAmount(amount, currency, locale) : '';\n};\n\nconst parseNumber = ({\n amount,\n currency,\n locale,\n}: {\n amount: string;\n currency: string;\n locale: string;\n}) => {\n return parseAmount(amount, currency, locale);\n};\n\nconst allowedInputKeys = new Set([\n 'Backspace',\n 'Delete',\n ',',\n '.',\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight',\n 'Enter',\n 'Escape',\n 'Tab',\n]);\n\nexport interface MoneyInputProps extends WrappedComponentProps {\n id?: string;\n 'aria-labelledby'?: string;\n currencies: readonly CurrencyItem[];\n selectedCurrency: CurrencyOptionItem;\n onCurrencyChange?: (value: CurrencyOptionItem) => void;\n placeholder?: number;\n amount: number | null;\n size?: SizeSmall | SizeMedium | SizeLarge;\n onAmountChange?: (value: number | null) => void;\n addon?: React.ReactNode;\n searchPlaceholder?: string;\n /**\n * Allows the consumer to react to searching, while the search itself is handled internally.\n */\n onSearchChange?: (value: { searchQuery: string; filteredOptions: CurrencyItem[] }) => void;\n customActionLabel?: React.ReactNode;\n onCustomAction?: () => void;\n classNames?: Record<string, string>;\n selectProps?: Partial<SelectInputProps<CurrencyOptionItem>>;\n}\n\nexport type MoneyInputPropsWithInputAttributes = MoneyInputProps &\n Partial<WithInputAttributesProps>;\n\ninterface MoneyInputState {\n searchQuery: string;\n formattedAmount: string;\n locale: string;\n}\n\nclass MoneyInput extends Component<MoneyInputPropsWithInputAttributes, MoneyInputState> {\n declare props: MoneyInputPropsWithInputAttributes &\n Required<Pick<MoneyInputPropsWithInputAttributes, keyof typeof MoneyInput.defaultProps>>;\n\n static defaultProps = {\n size: Size.LARGE,\n classNames: {},\n selectProps: {},\n } satisfies Partial<MoneyInputPropsWithInputAttributes>;\n\n amountFocused = false;\n\n constructor(props: MoneyInputProps) {\n super(props);\n this.state = {\n searchQuery: '',\n formattedAmount: formatAmountIfSet({\n amount: props.amount,\n currency: props.selectedCurrency.currency,\n locale: props.intl.locale,\n }),\n locale: props.intl.locale,\n };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: MoneyInputProps) {\n this.setState({ locale: nextProps.intl.locale });\n\n if (!this.amountFocused) {\n this.setState({\n formattedAmount: formatAmountIfSet({\n amount: nextProps.amount,\n currency: nextProps.selectedCurrency.currency,\n locale: nextProps.intl.locale,\n }),\n });\n }\n }\n\n isInputAllowedForKeyEvent = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const { metaKey, key, ctrlKey } = event;\n const isNumberKey = isNumber(Number.parseInt(key, 10));\n\n return isNumberKey || metaKey || ctrlKey || allowedInputKeys.has(key);\n };\n\n handleKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (event) => {\n if (!this.isInputAllowedForKeyEvent(event)) {\n event.preventDefault();\n }\n };\n\n handlePaste: React.ClipboardEventHandler<HTMLInputElement> = (event) => {\n const paste = event.clipboardData.getData('text');\n const { locale } = this.state;\n const parsed = isEmpty(paste)\n ? null\n : parseNumber({\n amount: paste,\n currency: this.props.selectedCurrency.currency,\n locale,\n });\n\n if (isNumberOrNull(parsed)) {\n this.setState({\n formattedAmount: formatAmountIfSet({\n amount: parsed,\n currency: this.props.selectedCurrency.currency,\n locale,\n }),\n });\n this.props.onAmountChange?.(parsed);\n }\n\n event.preventDefault();\n };\n\n onAmountChange: React.ChangeEventHandler<HTMLInputElement> = (event) => {\n const { value } = event.target;\n this.setState({\n formattedAmount: value,\n });\n const parsed = isEmpty(value)\n ? null\n : parseNumber({\n amount: value,\n currency: this.props.selectedCurrency.currency,\n locale: this.state.locale,\n });\n if (isNumberOrNull(parsed)) {\n this.props.onAmountChange?.(parsed);\n }\n };\n\n onAmountBlur = () => {\n this.amountFocused = false;\n this.setAmount();\n };\n\n onAmountFocus = () => {\n this.amountFocused = true;\n };\n\n getSelectOptions() {\n const selectOptions = filterCurrenciesForQuery(this.props.currencies, this.state.searchQuery);\n\n const formattedOptions: SelectInputItem<CurrencyOptionItem>[] = [];\n let currentGroupOptions: SelectInputOptionItem<CurrencyOptionItem>[] | undefined;\n\n selectOptions.forEach((item) => {\n if (item.header != null) {\n currentGroupOptions = [];\n formattedOptions.push({\n type: 'group',\n label: item.header,\n options: currentGroupOptions,\n });\n } else {\n (currentGroupOptions ?? formattedOptions).push({\n type: 'option',\n value: item,\n filterMatchers: [item.value, item.label, item.note ?? '', item.searchable ?? ''],\n });\n }\n });\n\n return formattedOptions;\n }\n\n setAmount() {\n this.setState((previousState) => {\n const parsed = parseNumber({\n amount: previousState.formattedAmount,\n currency: this.props.selectedCurrency.currency,\n locale: previousState.locale,\n });\n if (!isNumberOrNull(parsed)) {\n return {\n formattedAmount: previousState.formattedAmount,\n };\n }\n return {\n formattedAmount: formatAmountIfSet({\n amount: parsed,\n currency: this.props.selectedCurrency.currency,\n locale: previousState.locale,\n }),\n };\n });\n }\n\n handleSelectChange = (value: CurrencyOptionItem) => {\n this.handleSearchChange('');\n this.props.onCurrencyChange?.(value);\n };\n\n handleSearchChange = (searchQuery: string) => {\n this.setState({ searchQuery });\n this.props.onSearchChange?.({\n searchQuery,\n filteredOptions: filterCurrenciesForQuery(this.props.currencies, searchQuery),\n });\n };\n\n style = (className: string) => this.props.classNames[className] || className;\n\n render() {\n const {\n inputAttributes,\n id: amountInputId,\n 'aria-labelledby': ariaLabelledByProp,\n selectedCurrency,\n onCurrencyChange,\n size,\n addon,\n selectProps,\n } = this.props;\n const ariaLabelledBy = ariaLabelledByProp ?? inputAttributes?.['aria-labelledby'];\n const selectOptions = this.getSelectOptions();\n\n const hasSingleCurrency = () => {\n if (selectOptions.length !== 0) {\n const firstItem = selectOptions[0];\n\n if (selectOptions.length === 1) {\n if (firstItem.type === 'option') {\n return firstItem.value.currency === selectedCurrency.currency;\n }\n if (firstItem.type === 'group') {\n return (\n firstItem.options.length === 1 &&\n !(this.props.onCustomAction && this.props.customActionLabel)\n );\n }\n }\n } else if (selectedCurrency?.currency) {\n return true;\n }\n\n return false;\n };\n\n const isFixedCurrency = (!this.state.searchQuery && hasSingleCurrency()) || !onCurrencyChange;\n const disabled = !this.props.onAmountChange;\n const selectedCurrencyElementId = `${inputAttributes?.id ?? amountInputId}SelectedCurrency`;\n\n return (\n <fieldset\n aria-invalid={inputAttributes?.['aria-invalid']}\n aria-describedby={inputAttributes?.['aria-describedby']}\n aria-labelledby={inputAttributes?.id ?? amountInputId}\n className={clsx(\n this.style('tw-money-input'),\n this.style('input-group'),\n this.style(`input-group-${size}`),\n )}\n >\n <Input\n id={inputAttributes?.id ?? amountInputId}\n aria-labelledby={ariaLabelledBy}\n value={this.state.formattedAmount}\n inputMode=\"decimal\"\n disabled={disabled}\n placeholder={formatAmountIfSet({\n amount: this.props.placeholder,\n currency: this.props.selectedCurrency.currency,\n locale: this.state.locale,\n })}\n autoComplete=\"off\"\n aria-describedby={selectedCurrencyElementId}\n onKeyDown={this.handleKeyDown}\n onChange={this.onAmountChange}\n onFocus={this.onAmountFocus}\n onBlur={this.onAmountBlur}\n onPaste={this.handlePaste}\n />\n {addon && (\n <span\n className={clsx(\n this.style('input-group-addon'),\n this.style(`input-${size}`),\n disabled ? this.style('disabled') : '',\n )}\n >\n {addon}\n </span>\n )}\n {isFixedCurrency ? (\n <div\n className={clsx(\n this.style('input-group-addon'),\n this.style(`input-${size}`),\n this.style('tw-money-input__fixed-currency'),\n disabled ? this.style('disabled') : '',\n )}\n id={selectedCurrencyElementId}\n >\n {(size === 'lg' || size === 'md') && (\n <span className={clsx(this.style('money-input-currency-flag'), this.style('m-r-2'))}>\n <Flag code={selectedCurrency.currency.toLowerCase()} intrinsicSize={24} />\n </span>\n )}\n <Title\n as=\"span\"\n type={Typography.TITLE_SUBSECTION}\n className={size === 'lg' ? this.style('m-r-1') : ''}\n >\n {selectedCurrency.currency.toUpperCase()}\n </Title>\n </div>\n ) : (\n <div\n translate=\"no\"\n className={clsx(\n this.style('input-group-btn'),\n this.style('amount-currency-select-btn'),\n )}\n >\n <SelectInput\n UNSAFE_triggerButtonProps={{\n id: undefined,\n 'aria-labelledby': undefined,\n 'aria-describedby': ariaLabelledBy,\n 'aria-invalid': undefined,\n 'aria-label': this.props.intl.formatMessage(messages.selectCurrencyLabel),\n }}\n id={selectedCurrencyElementId}\n items={selectOptions}\n value={selectedCurrency}\n compareValues=\"currency\"\n renderValue={(currency, withinTrigger) => {\n return (\n <SelectInputOptionContent\n title={withinTrigger ? currency.currency.toUpperCase() : currency.label}\n note={withinTrigger ? undefined : currency.note}\n icon={<Flag code={currency.currency} intrinsicSize={24} />}\n />\n );\n }}\n renderFooter={\n this.props.onCustomAction\n ? () => (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div role=\"button\" tabIndex={0} onClick={this.props.onCustomAction}>\n {this.props.customActionLabel}\n </div>\n )\n : undefined\n }\n placeholder={this.props.intl.formatMessage(messages.selectPlaceholder)}\n filterable\n filterPlaceholder={\n this.props.searchPlaceholder ||\n this.props.intl.formatMessage(messages.searchPlaceholder)\n }\n disabled={disabled}\n size={size}\n onChange={this.handleSelectChange}\n onFilterChange={({ queryNormalized }) => {\n this.handleSearchChange(queryNormalized ?? '');\n }}\n {...selectProps}\n />\n </div>\n )}\n </fieldset>\n );\n }\n}\n\nfunction filterCurrenciesForQuery(\n currencies: readonly CurrencyItem[],\n query: string,\n): CurrencyItem[] {\n if (!query) {\n return [...currencies];\n }\n\n const options = currencies.filter(\n (option): option is CurrencyOptionItem => option.header == null,\n );\n const filteredOptions = removeDuplicateValueOptions(options).filter((option) =>\n currencyOptionFitsQuery(option, query),\n );\n\n return sortOptionsLabelsToFirst(filteredOptions, query);\n}\n\nfunction removeDuplicateValueOptions(options: readonly CurrencyOptionItem[]) {\n const uniqueValues = new Set<string>();\n return options.filter((option) => {\n if (!uniqueValues.has(option.value)) {\n uniqueValues.add(option.value);\n return true;\n }\n return false;\n });\n}\n\nfunction currencyOptionFitsQuery(option: CurrencyOptionItem, query: string) {\n if (!option.value) {\n return false;\n }\n\n return (\n contains(option.label, query) ||\n contains(option.searchable, query) ||\n contains(option.note, query)\n );\n}\n\nfunction contains(property: string | undefined, query: string) {\n return property?.toLowerCase().includes(query.toLowerCase());\n}\n\nfunction sortOptionsLabelsToFirst(options: readonly CurrencyOptionItem[], query: string) {\n return [...options].sort((first, second) => {\n const firstContains = contains(first.label, query);\n const secondContains = contains(second.label, query);\n\n if (firstContains && secondContains) {\n return 0;\n }\n if (firstContains) {\n return -1;\n }\n if (secondContains) {\n return 1;\n }\n return 0;\n });\n}\n\nexport default injectIntl(withId(withInputAttributes(MoneyInput, { nonLabelable: true })));\n"],"names":["isNumberOrNull","v","isNumber","isNull","formatAmountIfSet","amount","currency","locale","formatAmount","parseNumber","parseAmount","allowedInputKeys","Set","MoneyInput","Component","defaultProps","size","Size","LARGE","classNames","selectProps","amountFocused","constructor","props","state","searchQuery","formattedAmount","selectedCurrency","intl","UNSAFE_componentWillReceiveProps","nextProps","setState","isInputAllowedForKeyEvent","event","metaKey","key","ctrlKey","isNumberKey","Number","parseInt","has","handleKeyDown","preventDefault","handlePaste","paste","clipboardData","getData","parsed","isEmpty","onAmountChange","value","target","onAmountBlur","setAmount","onAmountFocus","getSelectOptions","selectOptions","filterCurrenciesForQuery","currencies","formattedOptions","currentGroupOptions","forEach","item","header","push","type","label","options","filterMatchers","note","searchable","previousState","handleSelectChange","handleSearchChange","onCurrencyChange","onSearchChange","filteredOptions","style","className","render","inputAttributes","id","amountInputId","ariaLabelledByProp","addon","ariaLabelledBy","hasSingleCurrency","length","firstItem","onCustomAction","customActionLabel","isFixedCurrency","disabled","selectedCurrencyElementId","_jsxs","clsx","children","_jsx","Input","inputMode","placeholder","autoComplete","onKeyDown","onChange","onFocus","onBlur","onPaste","Flag","code","toLowerCase","intrinsicSize","Title","as","Typography","TITLE_SUBSECTION","toUpperCase","translate","SelectInput","UNSAFE_triggerButtonProps","undefined","formatMessage","messages","selectCurrencyLabel","items","compareValues","renderValue","withinTrigger","SelectInputOptionContent","title","icon","renderFooter","role","tabIndex","onClick","selectPlaceholder","filterable","filterPlaceholder","searchPlaceholder","onFilterChange","queryNormalized","query","filter","option","removeDuplicateValueOptions","currencyOptionFitsQuery","sortOptionsLabelsToFirst","uniqueValues","add","contains","property","includes","sort","first","second","firstContains","secondContains","injectIntl","withId","withInputAttributes","nonLabelable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAMA,cAAc,GAAIC,CAAU,IAAyBC,QAAQ,CAACD,CAAC,CAAC,IAAIE,MAAM,CAACF,CAAC,CAAC;AAEnF,MAAMG,iBAAiB,GAAGA,CAAC;EACzBC,MAAM;EACNC,QAAQ;AACRC,EAAAA;AAAM,CAKP,KAAI;AACH,EAAA,OAAO,OAAO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AC,CAAC;AACJ;AAEA,yBAAeC,UAAU,CAACC,MAAM,CAACC,mBAAmB,CAACjJ,UAAU,EAAE;AAAEkJ,EAAAA,YAAY,EAAE;AAAI,CAAE,CAAC,CAAC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"MoneyInput.mjs","sources":["../../src/moneyInput/MoneyInput.tsx"],"sourcesContent":["import { isEmpty, isNumber, isNull } from '@transferwise/neptune-validation';\nimport { Flag } from '@wise/art';\nimport { clsx } from 'clsx';\nimport { Component } from 'react';\nimport { injectIntl, WrappedComponentProps } from 'react-intl';\n\nimport { Typography, Size, SizeLarge, SizeMedium, SizeSmall } from '../common';\nimport { withInputAttributes, WithInputAttributesProps } from '../inputs/contexts';\nimport { Input } from '../inputs/Input';\nimport {\n SelectInput,\n SelectInputItem,\n SelectInputOptionContent,\n SelectInputOptionItem,\n SelectInputProps,\n} from '../inputs/SelectInput';\nimport Title from '../title';\n\nimport messages from './MoneyInput.messages';\nimport { formatAmount, parseAmount } from './currencyFormatting';\nimport withId from '../withId';\n\nexport interface CurrencyOptionItem {\n header?: never;\n value: string;\n label: string;\n currency: string;\n note?: string;\n searchable?: string;\n}\n\nexport interface CurrencyHeaderItem {\n header: string;\n}\n\nexport type CurrencyItem = CurrencyOptionItem | CurrencyHeaderItem;\n\nconst isNumberOrNull = (v: unknown): v is number | null => isNumber(v) || isNull(v);\n\nconst formatAmountIfSet = ({\n amount,\n currency,\n locale,\n}: {\n amount: number | null | undefined;\n currency: string;\n locale: string;\n}) => {\n return typeof amount === 'number' ? formatAmount(amount, currency, locale) : '';\n};\n\nconst parseNumber = ({\n amount,\n currency,\n locale,\n}: {\n amount: string;\n currency: string;\n locale: string;\n}) => {\n return parseAmount(amount, currency, locale);\n};\n\nconst allowedInputKeys = new Set([\n 'Backspace',\n 'Delete',\n ',',\n '.',\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight',\n 'Enter',\n 'Escape',\n 'Tab',\n]);\n\nexport interface MoneyInputProps extends WrappedComponentProps {\n id?: string;\n 'aria-labelledby'?: string;\n currencies: readonly CurrencyItem[];\n selectedCurrency: CurrencyOptionItem;\n onCurrencyChange?: (value: CurrencyOptionItem) => void;\n placeholder?: number;\n amount: number | null;\n size?: SizeSmall | SizeMedium | SizeLarge;\n onAmountChange?: (value: number | null) => void;\n addon?: React.ReactNode;\n searchPlaceholder?: string;\n /**\n * Allows the consumer to react to searching, while the search itself is handled internally.\n */\n onSearchChange?: (value: { searchQuery: string; filteredOptions: CurrencyItem[] }) => void;\n customActionLabel?: React.ReactNode;\n onCustomAction?: () => void;\n classNames?: Record<string, string>;\n selectProps?: Partial<SelectInputProps<CurrencyOptionItem>>;\n}\n\nexport type MoneyInputPropsWithInputAttributes = MoneyInputProps &\n Partial<WithInputAttributesProps>;\n\ninterface MoneyInputState {\n searchQuery: string;\n formattedAmount: string;\n locale: string;\n}\n\nclass MoneyInput extends Component<MoneyInputPropsWithInputAttributes, MoneyInputState> {\n declare props: MoneyInputPropsWithInputAttributes &\n Required<Pick<MoneyInputPropsWithInputAttributes, keyof typeof MoneyInput.defaultProps>>;\n\n static defaultProps = {\n size: Size.LARGE,\n classNames: {},\n selectProps: {},\n } satisfies Partial<MoneyInputPropsWithInputAttributes>;\n\n amountFocused = false;\n\n constructor(props: MoneyInputProps) {\n super(props);\n this.state = {\n searchQuery: '',\n formattedAmount: formatAmountIfSet({\n amount: props.amount,\n currency: props.selectedCurrency.currency,\n locale: props.intl.locale,\n }),\n locale: props.intl.locale,\n };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: MoneyInputProps) {\n this.setState({ locale: nextProps.intl.locale });\n\n if (!this.amountFocused) {\n this.setState({\n formattedAmount: formatAmountIfSet({\n amount: nextProps.amount,\n currency: nextProps.selectedCurrency.currency,\n locale: nextProps.intl.locale,\n }),\n });\n }\n }\n\n isInputAllowedForKeyEvent = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const { metaKey, key, ctrlKey } = event;\n const isNumberKey = isNumber(Number.parseInt(key, 10));\n\n return isNumberKey || metaKey || ctrlKey || allowedInputKeys.has(key);\n };\n\n handleKeyDown: React.KeyboardEventHandler<HTMLInputElement> = (event) => {\n if (!this.isInputAllowedForKeyEvent(event)) {\n event.preventDefault();\n }\n };\n\n handlePaste: React.ClipboardEventHandler<HTMLInputElement> = (event) => {\n const paste = event.clipboardData.getData('text');\n const { locale } = this.state;\n const parsed = isEmpty(paste)\n ? null\n : parseNumber({\n amount: paste,\n currency: this.props.selectedCurrency.currency,\n locale,\n });\n\n if (isNumberOrNull(parsed)) {\n this.setState({\n formattedAmount: formatAmountIfSet({\n amount: parsed,\n currency: this.props.selectedCurrency.currency,\n locale,\n }),\n });\n this.props.onAmountChange?.(parsed);\n }\n\n event.preventDefault();\n };\n\n onAmountChange: React.ChangeEventHandler<HTMLInputElement> = (event) => {\n const { value } = event.target;\n this.setState({\n formattedAmount: value,\n });\n const parsed = isEmpty(value)\n ? null\n : parseNumber({\n amount: value,\n currency: this.props.selectedCurrency.currency,\n locale: this.state.locale,\n });\n if (isNumberOrNull(parsed)) {\n this.props.onAmountChange?.(parsed);\n }\n };\n\n onAmountBlur = () => {\n this.amountFocused = false;\n this.setAmount();\n };\n\n onAmountFocus = () => {\n this.amountFocused = true;\n };\n\n getSelectOptions() {\n const selectOptions = filterCurrenciesForQuery(this.props.currencies, this.state.searchQuery);\n\n const formattedOptions: SelectInputItem<CurrencyOptionItem>[] = [];\n let currentGroupOptions: SelectInputOptionItem<CurrencyOptionItem>[] | undefined;\n\n selectOptions.forEach((item) => {\n if (item.header != null) {\n currentGroupOptions = [];\n formattedOptions.push({\n type: 'group',\n label: item.header,\n options: currentGroupOptions,\n });\n } else {\n (currentGroupOptions ?? formattedOptions).push({\n type: 'option',\n value: item,\n filterMatchers: [item.value, item.label, item.note ?? '', item.searchable ?? ''],\n });\n }\n });\n\n return formattedOptions;\n }\n\n setAmount() {\n this.setState((previousState) => {\n const parsed = parseNumber({\n amount: previousState.formattedAmount,\n currency: this.props.selectedCurrency.currency,\n locale: previousState.locale,\n });\n if (!isNumberOrNull(parsed)) {\n return {\n formattedAmount: previousState.formattedAmount,\n };\n }\n return {\n formattedAmount: formatAmountIfSet({\n amount: parsed,\n currency: this.props.selectedCurrency.currency,\n locale: previousState.locale,\n }),\n };\n });\n }\n\n handleSelectChange = (value: CurrencyOptionItem) => {\n this.handleSearchChange('');\n this.props.onCurrencyChange?.(value);\n };\n\n handleSearchChange = (searchQuery: string) => {\n this.setState({ searchQuery });\n this.props.onSearchChange?.({\n searchQuery,\n filteredOptions: filterCurrenciesForQuery(this.props.currencies, searchQuery),\n });\n };\n\n style = (className: string) => this.props.classNames[className] || className;\n\n render() {\n const {\n inputAttributes,\n id: amountInputId,\n 'aria-labelledby': ariaLabelledByProp,\n selectedCurrency,\n onCurrencyChange,\n size,\n addon,\n selectProps,\n } = this.props;\n const ariaLabelledBy = ariaLabelledByProp ?? inputAttributes?.['aria-labelledby'];\n const selectOptions = this.getSelectOptions();\n\n const hasSingleCurrency = () => {\n if (selectOptions.length !== 0) {\n const firstItem = selectOptions[0];\n\n if (selectOptions.length === 1) {\n if (firstItem.type === 'option') {\n return firstItem.value.currency === selectedCurrency.currency;\n }\n if (firstItem.type === 'group') {\n return (\n firstItem.options.length === 1 &&\n !(this.props.onCustomAction && this.props.customActionLabel)\n );\n }\n }\n } else if (selectedCurrency?.currency) {\n return true;\n }\n\n return false;\n };\n\n const isFixedCurrency = (!this.state.searchQuery && hasSingleCurrency()) || !onCurrencyChange;\n const disabled = !this.props.onAmountChange;\n const selectedCurrencyElementId = `${inputAttributes?.id ?? amountInputId}SelectedCurrency`;\n\n return (\n <fieldset\n aria-invalid={inputAttributes?.['aria-invalid']}\n aria-describedby={inputAttributes?.['aria-describedby']}\n aria-labelledby={inputAttributes?.id ?? amountInputId}\n className={clsx(\n this.style('tw-money-input'),\n this.style('input-group'),\n this.style(`input-group-${size}`),\n )}\n >\n <Input\n id={inputAttributes?.id ?? amountInputId}\n aria-labelledby={ariaLabelledBy}\n value={this.state.formattedAmount}\n inputMode=\"decimal\"\n disabled={disabled}\n placeholder={formatAmountIfSet({\n amount: this.props.placeholder,\n currency: this.props.selectedCurrency.currency,\n locale: this.state.locale,\n })}\n autoComplete=\"off\"\n aria-describedby={selectedCurrencyElementId}\n onKeyDown={this.handleKeyDown}\n onChange={this.onAmountChange}\n onFocus={this.onAmountFocus}\n onBlur={this.onAmountBlur}\n onPaste={this.handlePaste}\n />\n {addon && (\n <span\n className={clsx(\n this.style('input-group-addon'),\n this.style(`input-${size}`),\n disabled ? this.style('disabled') : '',\n )}\n >\n {addon}\n </span>\n )}\n {isFixedCurrency ? (\n <div\n className={clsx(\n this.style('input-group-addon'),\n this.style(`input-${size}`),\n this.style('tw-money-input__fixed-currency'),\n disabled ? this.style('disabled') : '',\n )}\n id={selectedCurrencyElementId}\n >\n {(size === 'lg' || size === 'md') && (\n <span className={clsx(this.style('money-input-currency-flag'), this.style('m-r-2'))}>\n <Flag code={selectedCurrency.currency.toLowerCase()} intrinsicSize={24} />\n </span>\n )}\n <Title\n as=\"span\"\n type={Typography.TITLE_SUBSECTION}\n className={size === 'lg' ? this.style('m-r-1') : ''}\n >\n {selectedCurrency.currency.toUpperCase()}\n </Title>\n </div>\n ) : (\n <div\n translate=\"no\"\n className={clsx(\n this.style('input-group-btn'),\n this.style('amount-currency-select-btn'),\n )}\n >\n <SelectInput\n UNSAFE_triggerButtonProps={{\n id: undefined,\n 'aria-labelledby': undefined,\n 'aria-describedby': ariaLabelledBy,\n 'aria-invalid': undefined,\n 'aria-label': this.props.intl.formatMessage(messages.selectCurrencyLabel),\n }}\n id={selectedCurrencyElementId}\n items={selectOptions}\n value={selectedCurrency}\n compareValues=\"currency\"\n renderValue={(currency, withinTrigger) => {\n return (\n <SelectInputOptionContent\n title={withinTrigger ? currency.currency.toUpperCase() : currency.label}\n note={withinTrigger ? undefined : currency.note}\n icon={<Flag code={currency.currency} intrinsicSize={24} />}\n />\n );\n }}\n renderFooter={\n this.props.onCustomAction\n ? () => (\n // eslint-disable-next-line jsx-a11y/click-events-have-key-events\n <div role=\"button\" tabIndex={0} onClick={this.props.onCustomAction}>\n {this.props.customActionLabel}\n </div>\n )\n : undefined\n }\n placeholder={this.props.intl.formatMessage(messages.selectPlaceholder)}\n filterable\n filterPlaceholder={\n this.props.searchPlaceholder ||\n this.props.intl.formatMessage(messages.searchPlaceholder)\n }\n disabled={disabled}\n size={size}\n onChange={this.handleSelectChange}\n onFilterChange={({ queryNormalized }) => {\n this.handleSearchChange(queryNormalized ?? '');\n }}\n {...selectProps}\n />\n </div>\n )}\n </fieldset>\n );\n }\n}\n\nfunction filterCurrenciesForQuery(\n currencies: readonly CurrencyItem[],\n query: string,\n): CurrencyItem[] {\n if (!query) {\n return [...currencies];\n }\n\n const options = currencies.filter(\n (option): option is CurrencyOptionItem => option.header == null,\n );\n const filteredOptions = removeDuplicateValueOptions(options).filter((option) =>\n currencyOptionFitsQuery(option, query),\n );\n\n return sortOptionsLabelsToFirst(filteredOptions, query);\n}\n\nfunction removeDuplicateValueOptions(options: readonly CurrencyOptionItem[]) {\n const uniqueValues = new Set<string>();\n return options.filter((option) => {\n if (!uniqueValues.has(option.value)) {\n uniqueValues.add(option.value);\n return true;\n }\n return false;\n });\n}\n\nfunction currencyOptionFitsQuery(option: CurrencyOptionItem, query: string) {\n if (!option.value) {\n return false;\n }\n\n return (\n contains(option.label, query) ||\n contains(option.searchable, query) ||\n contains(option.note, query)\n );\n}\n\nfunction contains(property: string | undefined, query: string) {\n return property?.toLowerCase().includes(query.toLowerCase());\n}\n\nfunction sortOptionsLabelsToFirst(options: readonly CurrencyOptionItem[], query: string) {\n return [...options].sort((first, second) => {\n const firstContains = contains(first.label, query);\n const secondContains = contains(second.label, query);\n\n if (firstContains && secondContains) {\n return 0;\n }\n if (firstContains) {\n return -1;\n }\n if (secondContains) {\n return 1;\n }\n return 0;\n });\n}\n\nexport default injectIntl(withId(withInputAttributes(MoneyInput, { nonLabelable: true })));\n"],"names":["isNumberOrNull","v","isNumber","isNull","formatAmountIfSet","amount","currency","locale","formatAmount","parseNumber","parseAmount","allowedInputKeys","Set","MoneyInput","Component","defaultProps","size","Size","LARGE","classNames","selectProps","amountFocused","constructor","props","state","searchQuery","formattedAmount","selectedCurrency","intl","UNSAFE_componentWillReceiveProps","nextProps","setState","isInputAllowedForKeyEvent","event","metaKey","key","ctrlKey","isNumberKey","Number","parseInt","has","handleKeyDown","preventDefault","handlePaste","paste","clipboardData","getData","parsed","isEmpty","onAmountChange","value","target","onAmountBlur","setAmount","onAmountFocus","getSelectOptions","selectOptions","filterCurrenciesForQuery","currencies","formattedOptions","currentGroupOptions","forEach","item","header","push","type","label","options","filterMatchers","note","searchable","previousState","handleSelectChange","handleSearchChange","onCurrencyChange","onSearchChange","filteredOptions","style","className","render","inputAttributes","id","amountInputId","ariaLabelledByProp","addon","ariaLabelledBy","hasSingleCurrency","length","firstItem","onCustomAction","customActionLabel","isFixedCurrency","disabled","selectedCurrencyElementId","_jsxs","clsx","children","_jsx","Input","inputMode","placeholder","autoComplete","onKeyDown","onChange","onFocus","onBlur","onPaste","Flag","code","toLowerCase","intrinsicSize","Title","as","Typography","TITLE_SUBSECTION","toUpperCase","translate","SelectInput","UNSAFE_triggerButtonProps","undefined","formatMessage","messages","selectCurrencyLabel","items","compareValues","renderValue","withinTrigger","SelectInputOptionContent","title","icon","renderFooter","role","tabIndex","onClick","selectPlaceholder","filterable","filterPlaceholder","searchPlaceholder","onFilterChange","queryNormalized","query","filter","option","removeDuplicateValueOptions","currencyOptionFitsQuery","sortOptionsLabelsToFirst","uniqueValues","add","contains","property","includes","sort","first","second","firstContains","secondContains","injectIntl","withId","withInputAttributes","nonLabelable"],"mappings":";;;;;;;;;;;;;;;;;;;AAqCA,MAAMA,cAAc,GAAIC,CAAU,IAAyBC,QAAQ,CAACD,CAAC,CAAC,IAAIE,MAAM,CAACF,CAAC,CAAC;AAEnF,MAAMG,iBAAiB,GAAGA,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A,IAAA,IAAIC,cAAc,EAAE;AAClB,MAAA,OAAO,CAAC;AACV,IAAA;AACA,IAAA,OAAO,CAAC;AACV,EAAA,CAAC,CAAC;AACJ;AAEA,yBAAeC,UAAU,CAACC,MAAM,CAACC,mBAAmB,CAACjJ,UAAU,EAAE;AAAEkJ,EAAAA,YAAY,EAAE;AAAK,CAAC,CAAC,CAAC,CAAC;;;;"}
|
|
@@ -63,8 +63,8 @@ function parseAmount(number, currency, locale = index.DEFAULT_LOCALE) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
Object.defineProperty(exports, "formatAmount", {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () { return formatting.formatAmount; }
|
|
68
68
|
});
|
|
69
69
|
exports.parseAmount = parseAmount;
|
|
70
70
|
//# sourceMappingURL=currencyFormatting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currencyFormatting.js","sources":["../../src/moneyInput/currencyFormatting.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\n\nimport { DEFAULT_LOCALE } from '../common/locale';\n\nexport { formatAmount };\n\n// TODO: do not duplicate this between formatting and components\nconst currencyDecimals: Record<string, number> = {\n BIF: 0,\n BYR: 0,\n CLP: 0,\n DJF: 0,\n GNF: 0,\n JPY: 0,\n KMF: 0,\n KRW: 0,\n MGA: 0,\n PYG: 0,\n RWF: 0,\n VND: 0,\n VUV: 0,\n XAF: 0,\n XOF: 0,\n XPF: 0,\n // technically HUF does have decimals, but due to the exchange rate banks\n // do not accept decimal amounts\n HUF: 0,\n\n BHD: 3,\n JOD: 3,\n KWD: 3,\n OMR: 3,\n TND: 3,\n};\n\nconst DEFAULT_CURRENCY_DECIMALS = 2;\n\nfunction isNumberLocaleSupported() {\n const number = 1234;\n const numberString = number.toLocaleString && number.toLocaleString(DEFAULT_LOCALE);\n return numberString === '1,234';\n}\n\nfunction getValidLocale(locale: string) {\n try {\n const noUnderscoreLocale = locale.replace(/_/, '-');\n\n Intl.NumberFormat(noUnderscoreLocale);\n return noUnderscoreLocale;\n } catch {\n return DEFAULT_LOCALE;\n }\n}\n\nfunction getCurrencyDecimals(currency: string) {\n const upperCaseCurrency = currency.toUpperCase();\n return currencyDecimals[upperCaseCurrency] ?? DEFAULT_CURRENCY_DECIMALS;\n}\n\nfunction getDecimalSeparator(locale: string) {\n return isNumberLocaleSupported() ? (1.1).toLocaleString(locale)[1] : '.';\n}\n\nexport function parseAmount(number: string, currency: string, locale = DEFAULT_LOCALE) {\n const validLocale = getValidLocale(locale);\n\n const precision = getCurrencyDecimals(currency);\n const groupSeparator = isNumberLocaleSupported() ? (10000).toLocaleString(validLocale)[2] : ',';\n const decimalSeparator = getDecimalSeparator(validLocale);\n const numberWithStandardDecimalSeparator = (number || '')\n .replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n .replace(new RegExp(`\\\\${decimalSeparator}`, 'g'), '.')\n .replace(/[^0-9.]/g, '');\n const parsedAmount = Number.parseFloat(\n Number.parseFloat(numberWithStandardDecimalSeparator).toFixed(precision),\n );\n return Math.abs(parsedAmount);\n}\n"],"names":["currencyDecimals","BIF","BYR","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","VND","VUV","XAF","XOF","XPF","HUF","BHD","JOD","KWD","OMR","TND","DEFAULT_CURRENCY_DECIMALS","isNumberLocaleSupported","number","numberString","toLocaleString","DEFAULT_LOCALE","getValidLocale","locale","noUnderscoreLocale","replace","Intl","NumberFormat","getCurrencyDecimals","currency","upperCaseCurrency","toUpperCase","getDecimalSeparator","parseAmount","validLocale","precision","groupSeparator","decimalSeparator","numberWithStandardDecimalSeparator","RegExp","parsedAmount","Number","parseFloat","toFixed","Math","abs"],"mappings":";;;;;AAMA;AACA,MAAMA,
|
|
1
|
+
{"version":3,"file":"currencyFormatting.js","sources":["../../src/moneyInput/currencyFormatting.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\n\nimport { DEFAULT_LOCALE } from '../common/locale';\n\nexport { formatAmount };\n\n// TODO: do not duplicate this between formatting and components\nconst currencyDecimals: Record<string, number> = {\n BIF: 0,\n BYR: 0,\n CLP: 0,\n DJF: 0,\n GNF: 0,\n JPY: 0,\n KMF: 0,\n KRW: 0,\n MGA: 0,\n PYG: 0,\n RWF: 0,\n VND: 0,\n VUV: 0,\n XAF: 0,\n XOF: 0,\n XPF: 0,\n // technically HUF does have decimals, but due to the exchange rate banks\n // do not accept decimal amounts\n HUF: 0,\n\n BHD: 3,\n JOD: 3,\n KWD: 3,\n OMR: 3,\n TND: 3,\n};\n\nconst DEFAULT_CURRENCY_DECIMALS = 2;\n\nfunction isNumberLocaleSupported() {\n const number = 1234;\n const numberString = number.toLocaleString && number.toLocaleString(DEFAULT_LOCALE);\n return numberString === '1,234';\n}\n\nfunction getValidLocale(locale: string) {\n try {\n const noUnderscoreLocale = locale.replace(/_/, '-');\n\n Intl.NumberFormat(noUnderscoreLocale);\n return noUnderscoreLocale;\n } catch {\n return DEFAULT_LOCALE;\n }\n}\n\nfunction getCurrencyDecimals(currency: string) {\n const upperCaseCurrency = currency.toUpperCase();\n return currencyDecimals[upperCaseCurrency] ?? DEFAULT_CURRENCY_DECIMALS;\n}\n\nfunction getDecimalSeparator(locale: string) {\n return isNumberLocaleSupported() ? (1.1).toLocaleString(locale)[1] : '.';\n}\n\nexport function parseAmount(number: string, currency: string, locale = DEFAULT_LOCALE) {\n const validLocale = getValidLocale(locale);\n\n const precision = getCurrencyDecimals(currency);\n const groupSeparator = isNumberLocaleSupported() ? (10000).toLocaleString(validLocale)[2] : ',';\n const decimalSeparator = getDecimalSeparator(validLocale);\n const numberWithStandardDecimalSeparator = (number || '')\n .replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n .replace(new RegExp(`\\\\${decimalSeparator}`, 'g'), '.')\n .replace(/[^0-9.]/g, '');\n const parsedAmount = Number.parseFloat(\n Number.parseFloat(numberWithStandardDecimalSeparator).toFixed(precision),\n );\n return Math.abs(parsedAmount);\n}\n"],"names":["currencyDecimals","BIF","BYR","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","VND","VUV","XAF","XOF","XPF","HUF","BHD","JOD","KWD","OMR","TND","DEFAULT_CURRENCY_DECIMALS","isNumberLocaleSupported","number","numberString","toLocaleString","DEFAULT_LOCALE","getValidLocale","locale","noUnderscoreLocale","replace","Intl","NumberFormat","getCurrencyDecimals","currency","upperCaseCurrency","toUpperCase","getDecimalSeparator","parseAmount","validLocale","precision","groupSeparator","decimalSeparator","numberWithStandardDecimalSeparator","RegExp","parsedAmount","Number","parseFloat","toFixed","Math","abs"],"mappings":";;;;;AAMA;AACA,MAAMA,gBAAwC,GAAG;AAC/CC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACN;AACA;AACAC,EAAAA,GAAG,EAAE,CAAC;AAENC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE;AACP,CAAC;AAED,MAAMC,yBAAyB,GAAG,CAAC;AAEnC,SAASC,uBAAuBA,GAAG;EACjC,MAAMC,MAAM,GA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,cAAc,CAAA,CAAE,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CACnDX,OAAO,CAAC,IAAIc,MAAM,CAAC,CAAA,EAAA,EAAKF,gBAAgB,EAAE,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CACtDZ,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;AAC1B,EAAA,MAAMe,YAAY,GAAGC,MAAM,CAACC,UAAU,CACpCD,MAAM,CAACC,UAAU,CAACJ,kCAAkC,CAAC,CAACK,OAAO,CAACR,SAAS,CACzE,CAAC;AACD,EAAA,OAAOS,IAAI,CAACC,GAAG,CAACL,YAAY,CAAC;AAC/B;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currencyFormatting.mjs","sources":["../../src/moneyInput/currencyFormatting.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\n\nimport { DEFAULT_LOCALE } from '../common/locale';\n\nexport { formatAmount };\n\n// TODO: do not duplicate this between formatting and components\nconst currencyDecimals: Record<string, number> = {\n BIF: 0,\n BYR: 0,\n CLP: 0,\n DJF: 0,\n GNF: 0,\n JPY: 0,\n KMF: 0,\n KRW: 0,\n MGA: 0,\n PYG: 0,\n RWF: 0,\n VND: 0,\n VUV: 0,\n XAF: 0,\n XOF: 0,\n XPF: 0,\n // technically HUF does have decimals, but due to the exchange rate banks\n // do not accept decimal amounts\n HUF: 0,\n\n BHD: 3,\n JOD: 3,\n KWD: 3,\n OMR: 3,\n TND: 3,\n};\n\nconst DEFAULT_CURRENCY_DECIMALS = 2;\n\nfunction isNumberLocaleSupported() {\n const number = 1234;\n const numberString = number.toLocaleString && number.toLocaleString(DEFAULT_LOCALE);\n return numberString === '1,234';\n}\n\nfunction getValidLocale(locale: string) {\n try {\n const noUnderscoreLocale = locale.replace(/_/, '-');\n\n Intl.NumberFormat(noUnderscoreLocale);\n return noUnderscoreLocale;\n } catch {\n return DEFAULT_LOCALE;\n }\n}\n\nfunction getCurrencyDecimals(currency: string) {\n const upperCaseCurrency = currency.toUpperCase();\n return currencyDecimals[upperCaseCurrency] ?? DEFAULT_CURRENCY_DECIMALS;\n}\n\nfunction getDecimalSeparator(locale: string) {\n return isNumberLocaleSupported() ? (1.1).toLocaleString(locale)[1] : '.';\n}\n\nexport function parseAmount(number: string, currency: string, locale = DEFAULT_LOCALE) {\n const validLocale = getValidLocale(locale);\n\n const precision = getCurrencyDecimals(currency);\n const groupSeparator = isNumberLocaleSupported() ? (10000).toLocaleString(validLocale)[2] : ',';\n const decimalSeparator = getDecimalSeparator(validLocale);\n const numberWithStandardDecimalSeparator = (number || '')\n .replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n .replace(new RegExp(`\\\\${decimalSeparator}`, 'g'), '.')\n .replace(/[^0-9.]/g, '');\n const parsedAmount = Number.parseFloat(\n Number.parseFloat(numberWithStandardDecimalSeparator).toFixed(precision),\n );\n return Math.abs(parsedAmount);\n}\n"],"names":["currencyDecimals","BIF","BYR","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","VND","VUV","XAF","XOF","XPF","HUF","BHD","JOD","KWD","OMR","TND","DEFAULT_CURRENCY_DECIMALS","isNumberLocaleSupported","number","numberString","toLocaleString","DEFAULT_LOCALE","getValidLocale","locale","noUnderscoreLocale","replace","Intl","NumberFormat","getCurrencyDecimals","currency","upperCaseCurrency","toUpperCase","getDecimalSeparator","parseAmount","validLocale","precision","groupSeparator","decimalSeparator","numberWithStandardDecimalSeparator","RegExp","parsedAmount","Number","parseFloat","toFixed","Math","abs"],"mappings":";;;AAMA;AACA,MAAMA,
|
|
1
|
+
{"version":3,"file":"currencyFormatting.mjs","sources":["../../src/moneyInput/currencyFormatting.ts"],"sourcesContent":["import { formatAmount } from '@transferwise/formatting';\n\nimport { DEFAULT_LOCALE } from '../common/locale';\n\nexport { formatAmount };\n\n// TODO: do not duplicate this between formatting and components\nconst currencyDecimals: Record<string, number> = {\n BIF: 0,\n BYR: 0,\n CLP: 0,\n DJF: 0,\n GNF: 0,\n JPY: 0,\n KMF: 0,\n KRW: 0,\n MGA: 0,\n PYG: 0,\n RWF: 0,\n VND: 0,\n VUV: 0,\n XAF: 0,\n XOF: 0,\n XPF: 0,\n // technically HUF does have decimals, but due to the exchange rate banks\n // do not accept decimal amounts\n HUF: 0,\n\n BHD: 3,\n JOD: 3,\n KWD: 3,\n OMR: 3,\n TND: 3,\n};\n\nconst DEFAULT_CURRENCY_DECIMALS = 2;\n\nfunction isNumberLocaleSupported() {\n const number = 1234;\n const numberString = number.toLocaleString && number.toLocaleString(DEFAULT_LOCALE);\n return numberString === '1,234';\n}\n\nfunction getValidLocale(locale: string) {\n try {\n const noUnderscoreLocale = locale.replace(/_/, '-');\n\n Intl.NumberFormat(noUnderscoreLocale);\n return noUnderscoreLocale;\n } catch {\n return DEFAULT_LOCALE;\n }\n}\n\nfunction getCurrencyDecimals(currency: string) {\n const upperCaseCurrency = currency.toUpperCase();\n return currencyDecimals[upperCaseCurrency] ?? DEFAULT_CURRENCY_DECIMALS;\n}\n\nfunction getDecimalSeparator(locale: string) {\n return isNumberLocaleSupported() ? (1.1).toLocaleString(locale)[1] : '.';\n}\n\nexport function parseAmount(number: string, currency: string, locale = DEFAULT_LOCALE) {\n const validLocale = getValidLocale(locale);\n\n const precision = getCurrencyDecimals(currency);\n const groupSeparator = isNumberLocaleSupported() ? (10000).toLocaleString(validLocale)[2] : ',';\n const decimalSeparator = getDecimalSeparator(validLocale);\n const numberWithStandardDecimalSeparator = (number || '')\n .replace(new RegExp(`\\\\${groupSeparator}`, 'g'), '')\n .replace(new RegExp(`\\\\${decimalSeparator}`, 'g'), '.')\n .replace(/[^0-9.]/g, '');\n const parsedAmount = Number.parseFloat(\n Number.parseFloat(numberWithStandardDecimalSeparator).toFixed(precision),\n );\n return Math.abs(parsedAmount);\n}\n"],"names":["currencyDecimals","BIF","BYR","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","VND","VUV","XAF","XOF","XPF","HUF","BHD","JOD","KWD","OMR","TND","DEFAULT_CURRENCY_DECIMALS","isNumberLocaleSupported","number","numberString","toLocaleString","DEFAULT_LOCALE","getValidLocale","locale","noUnderscoreLocale","replace","Intl","NumberFormat","getCurrencyDecimals","currency","upperCaseCurrency","toUpperCase","getDecimalSeparator","parseAmount","validLocale","precision","groupSeparator","decimalSeparator","numberWithStandardDecimalSeparator","RegExp","parsedAmount","Number","parseFloat","toFixed","Math","abs"],"mappings":";;;AAMA;AACA,MAAMA,gBAAwC,GAAG;AAC/CC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACN;AACA;AACAC,EAAAA,GAAG,EAAE,CAAC;AAENC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE,CAAC;AACNC,EAAAA,GAAG,EAAE;AACP,CAAC;AAED,MAAMC,yBAAyB,GAAG,CAAC;AAEnC,SAASC,uBAAuBA,GAAG;EACjC,MAAMC,MAAM,GAAG,IAAI;EACnB,MAAMC,YAAY,GAAGD,MAAM,CAACE,cAAc,IAAIF,MAAM,CAACE,cAAc,CAACC,cAAc,CAAC;EACnF,OAAOF,YAAY,KAAK,OA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AAE,GAAG,CAAC,EAAE,GAAG,CAAC,CACtDZ,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;AAC1B,EAAA,MAAMe,YAAY,GAAGC,MAAM,CAACC,UAAU,CACpCD,MAAM,CAACC,UAAU,CAACJ,kCAAkC,CAAC,CAACK,OAAO,CAACR,SAAS,CACzE,CAAC;AACD,EAAA,OAAOS,IAAI,CAACC,GAAG,CAACL,YAAY,CAAC;AAC/B;;;;"}
|
|
@@ -5,31 +5,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var Chevron = require('../chevron/Chevron.js');
|
|
8
|
-
require('../common/theme.js');
|
|
9
|
-
require('../common/direction.js');
|
|
10
|
-
require('../common/propsValues/control.js');
|
|
11
|
-
require('../common/propsValues/breakpoint.js');
|
|
12
|
-
require('../common/propsValues/size.js');
|
|
13
|
-
require('../common/propsValues/typography.js');
|
|
14
|
-
require('../common/propsValues/width.js');
|
|
15
|
-
require('../common/propsValues/type.js');
|
|
16
|
-
require('../common/propsValues/dateMode.js');
|
|
17
|
-
require('../common/propsValues/monthFormat.js');
|
|
18
8
|
var position = require('../common/propsValues/position.js');
|
|
19
|
-
require('../common/propsValues/layouts.js');
|
|
20
|
-
require('../common/propsValues/status.js');
|
|
21
|
-
require('../common/propsValues/sentiment.js');
|
|
22
|
-
require('../common/propsValues/profileType.js');
|
|
23
|
-
require('../common/propsValues/variant.js');
|
|
24
|
-
require('../common/propsValues/scroll.js');
|
|
25
|
-
require('../common/propsValues/markdownNodeType.js');
|
|
26
|
-
require('../common/fileType.js');
|
|
27
9
|
require('@transferwise/icons');
|
|
28
10
|
require('react-intl');
|
|
29
11
|
require('../common/closeButton/CloseButton.messages.js');
|
|
30
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
31
13
|
var Option = require('../common/Option/Option.js');
|
|
32
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Please use `<ListItem />` instead.
|
|
17
|
+
* @deprecatedSince 46.104.0
|
|
18
|
+
* @see [Source](../listItem/ListItem.tsx)
|
|
19
|
+
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
20
|
+
* @see [Design docs](https://wise.design/components/list-item)
|
|
21
|
+
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
22
|
+
*/
|
|
33
23
|
const NavigationOption = /*#__PURE__*/React.forwardRef(({
|
|
34
24
|
as: component = 'button',
|
|
35
25
|
disabled = false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationOption.js","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\n/**\n * @deprecated Please use `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationOption.js","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\n/**\n * @deprecated Please use `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":";;;;;;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,gBAAgB,gBAAGC,gBAAU,CACjC,CAAC;EAAEC,EAAE,EAAEC,SAAS,GAAG,QAAQ;AAAEC,EAAAA,QAAQ,GAAG,KAAK;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AAAK,CAAC,EAAEC,SAAS,KAAK;AAC1F,EAAA,IAAI,MAAM,IAAID,IAAI,IAAIA,IAAI,CAACE,IAAI,EAAE;AAC/BN,IAAAA,SAAS,GAAG,GAAG;AACjB,EAAA;EAEA,oBACEO,cAAA,CAACC,cAAM,EAAA;AAAA,IAAA,GACDJ,IAAI;AACRK,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,EAAE,EAAEC,SAAU;AACdG,IAAAA,SAAS,EAAEO,SAAI,CAAC,sBAAsB,EAAEP,SAAS,CAAE;IACnDQ,MAAM,eAAEJ,cAAA,CAACK,eAAO,EAAA;MAACC,WAAW,EAAEC,iBAAQ,CAACC,KAAM;AAACd,MAAAA,QAAQ,EAAEA,QAAS;AAACE,MAAAA,SAAS,EAAC;AAAS,KAAE,CAAE;AACzFF,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAGc,KAAK,IAAK;AAClB,MAAA,IAAIf,QAAQ,EAAE;QACZe,KAAK,CAACC,cAAc,EAAE;AACtB,QAAA;AACF,MAAA;AAEA,MAAA,IAAIf,OAAO,EAAE;QACXA,OAAO,CAACc,KAAK,CAAC;AAChB,MAAA;AACF,IAAA;AAAE,GACH,CAAC;AAEN,CACF;;;;"}
|
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import Chevron from '../chevron/Chevron.mjs';
|
|
4
|
-
import '../common/theme.mjs';
|
|
5
|
-
import '../common/direction.mjs';
|
|
6
|
-
import '../common/propsValues/control.mjs';
|
|
7
|
-
import '../common/propsValues/breakpoint.mjs';
|
|
8
|
-
import '../common/propsValues/size.mjs';
|
|
9
|
-
import '../common/propsValues/typography.mjs';
|
|
10
|
-
import '../common/propsValues/width.mjs';
|
|
11
|
-
import '../common/propsValues/type.mjs';
|
|
12
|
-
import '../common/propsValues/dateMode.mjs';
|
|
13
|
-
import '../common/propsValues/monthFormat.mjs';
|
|
14
4
|
import { Position } from '../common/propsValues/position.mjs';
|
|
15
|
-
import '../common/propsValues/layouts.mjs';
|
|
16
|
-
import '../common/propsValues/status.mjs';
|
|
17
|
-
import '../common/propsValues/sentiment.mjs';
|
|
18
|
-
import '../common/propsValues/profileType.mjs';
|
|
19
|
-
import '../common/propsValues/variant.mjs';
|
|
20
|
-
import '../common/propsValues/scroll.mjs';
|
|
21
|
-
import '../common/propsValues/markdownNodeType.mjs';
|
|
22
|
-
import '../common/fileType.mjs';
|
|
23
5
|
import '@transferwise/icons';
|
|
24
6
|
import 'react-intl';
|
|
25
7
|
import '../common/closeButton/CloseButton.messages.mjs';
|
|
26
8
|
import { jsx } from 'react/jsx-runtime';
|
|
27
9
|
import Option from '../common/Option/Option.mjs';
|
|
28
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Please use `<ListItem />` instead.
|
|
13
|
+
* @deprecatedSince 46.104.0
|
|
14
|
+
* @see [Source](../listItem/ListItem.tsx)
|
|
15
|
+
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
16
|
+
* @see [Design docs](https://wise.design/components/list-item)
|
|
17
|
+
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
18
|
+
*/
|
|
29
19
|
const NavigationOption = /*#__PURE__*/forwardRef(({
|
|
30
20
|
as: component = 'button',
|
|
31
21
|
disabled = false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationOption.mjs","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\n/**\n * @deprecated Please use `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationOption.mjs","sources":["../../src/navigationOption/NavigationOption.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport Chevron from '../chevron';\nimport { Position } from '../common';\nimport Option from '../common/Option';\nimport { OptionProps, ReferenceType } from '../common/Option/Option';\n\nexport type NavigationOptionProps = OptionProps;\n\n/**\n * @deprecated Please use `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [Source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOption = forwardRef<ReferenceType, NavigationOptionProps>(\n ({ as: component = 'button', disabled = false, onClick, className, ...rest }, reference) => {\n if ('href' in rest && rest.href) {\n component = 'a';\n }\n\n return (\n <Option\n {...rest}\n ref={reference}\n as={component}\n className={clsx('np-navigation-option', className)}\n button={<Chevron orientation={Position.RIGHT} disabled={disabled} className=\"d-block\" />}\n disabled={disabled}\n onClick={(event) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n\n if (onClick) {\n onClick(event);\n }\n }}\n />\n );\n },\n);\n\nexport default NavigationOption;\n"],"names":["NavigationOption","forwardRef","as","component","disabled","onClick","className","rest","reference","href","_jsx","Option","ref","clsx","button","Chevron","orientation","Position","RIGHT","event","preventDefault"],"mappings":";;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,gBAAgB,gBAAGC,UAAU,CACjC,CAAC;EAAEC,EAAE,EAAEC,SAAS,GAAG,QAAQ;AAAEC,EAAAA,QAAQ,GAAG,KAAK;EAAEC,OAAO;EAAEC,SAAS;EAAE,GAAGC;AAAK,CAAC,EAAEC,SAAS,KAAK;AAC1F,EAAA,IAAI,MAAM,IAAID,IAAI,IAAIA,IAAI,CAACE,IAAI,EAAE;AAC/BN,IAAAA,SAAS,GAAG,GAAG;AACjB,EAAA;EAEA,oBACEO,GAAA,CAACC,MAAM,EAAA;AAAA,IAAA,GACDJ,IAAI;AACRK,IAAAA,GAAG,EAAEJ,SAAU;AACfN,IAAAA,EAAE,EAAEC,SAAU;AACdG,IAAAA,SAAS,EAAEO,IAAI,CAAC,sBAAsB,EAAEP,SAAS,CAAE;IACnDQ,MAAM,eAAEJ,GAAA,CAACK,OAAO,EAAA;MAACC,WAAW,EAAEC,QAAQ,CAACC,KAAM;AAACd,MAAAA,QAAQ,EAAEA,QAAS;AAACE,MAAAA,SAAS,EAAC;AAAS,KAAE,CAAE;AACzFF,IAAAA,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAGc,KAAK,IAAK;AAClB,MAAA,IAAIf,QAAQ,EAAE;QACZe,KAAK,CAACC,cAAc,EAAE;AACtB,QAAA;AACF,MAAA;AAEA,MAAA,IAAIf,OAAO,EAAE;QACXA,OAAO,CAACc,KAAK,CAAC;AAChB,MAAA;AACF,IAAA;AAAE,GACH,CAAC;AAEN,CACF;;;;"}
|
|
@@ -5,6 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Please use `<List />` and `<ListItem />` instead.
|
|
10
|
+
* @deprecatedSince 46.104.0
|
|
11
|
+
* @see [List source](../list/List.tsx)
|
|
12
|
+
* @see [ListItem source](../listItem/ListItem.tsx)
|
|
13
|
+
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
14
|
+
* @see [Design docs](https://wise.design/components/list-item)
|
|
15
|
+
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
16
|
+
*/
|
|
8
17
|
const NavigationOptionList = ({
|
|
9
18
|
children
|
|
10
19
|
}) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationOptionsList.js","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\n/**\n * @deprecated Please use `<List />` and `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [List source](../list/List.tsx)\n * @see [ListItem source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"NavigationOptionsList.js","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\n/**\n * @deprecated Please use `<List />` and `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [List source](../list/List.tsx)\n * @see [ListItem source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,oBAAoB,GAAGA,CAAC;AAAEC,EAAAA;AAAoC,CAAC,KAAK;AACxE,EAAA,oBACEC,cAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,4BAA4B;IAAAF,QAAA,EACvCG,cAAQ,CAACC,GAAG,CAACJ,QAAQ,EAAGK,KAAK,iBAC5BJ,cAAA,CAAA,IAAA,EAAA;AAA4BC,MAAAA,SAAS,EAAC,kCAAkC;AAAAF,MAAAA,QAAA,EACrEK;AAAK,KAAA,EADCA,KAAK,EAAEC,QAAQ,EAEpB,CACL;AAAC,GACA,CAAC;AAET;;;;"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { Children } from 'react';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Please use `<List />` and `<ListItem />` instead.
|
|
6
|
+
* @deprecatedSince 46.104.0
|
|
7
|
+
* @see [List source](../list/List.tsx)
|
|
8
|
+
* @see [ListItem source](../listItem/ListItem.tsx)
|
|
9
|
+
* @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
|
|
10
|
+
* @see [Design docs](https://wise.design/components/list-item)
|
|
11
|
+
* @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
|
|
12
|
+
*/
|
|
4
13
|
const NavigationOptionList = ({
|
|
5
14
|
children
|
|
6
15
|
}) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationOptionsList.mjs","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\n/**\n * @deprecated Please use `<List />` and `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [List source](../list/List.tsx)\n * @see [ListItem source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"NavigationOptionsList.mjs","sources":["../../src/navigationOptionsList/NavigationOptionsList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Children } from 'react';\n\nexport interface NavigationOptionListProps {\n children: React.ReactNode;\n}\n\n/**\n * @deprecated Please use `<List />` and `<ListItem />` instead.\n * @deprecatedSince 46.104.0\n * @see [List source](../list/List.tsx)\n * @see [ListItem source](../listItem/ListItem.tsx)\n * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)\n * @see [Design docs](https://wise.design/components/list-item)\n * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)\n */\nconst NavigationOptionList = ({ children }: NavigationOptionListProps) => {\n return (\n <ul className=\"np-navigation-options-list\">\n {Children.map(children, (child) => (\n <li key={child?.toString()} className=\"np-navigation-options-list__item\">\n {child}\n </li>\n ))}\n </ul>\n );\n};\n\nexport default NavigationOptionList;\n"],"names":["NavigationOptionList","children","_jsx","className","Children","map","child","toString"],"mappings":";;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,oBAAoB,GAAGA,CAAC;AAAEC,EAAAA;AAAoC,CAAC,KAAK;AACxE,EAAA,oBACEC,GAAA,CAAA,IAAA,EAAA;AAAIC,IAAAA,SAAS,EAAC,4BAA4B;IAAAF,QAAA,EACvCG,QAAQ,CAACC,GAAG,CAACJ,QAAQ,EAAGK,KAAK,iBAC5BJ,GAAA,CAAA,IAAA,EAAA;AAA4BC,MAAAA,SAAS,EAAC,kCAAkC;AAAAF,MAAAA,QAAA,EACrEK;AAAK,KAAA,EADCA,KAAK,EAAEC,QAAQ,EAEpB,CACL;AAAC,GACA,CAAC;AAET;;;;"}
|
package/build/nudge/Nudge.js
CHANGED
|
@@ -6,29 +6,12 @@ var art = require('@wise/art');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var Body = require('../body/Body.js');
|
|
9
|
-
require('../common/theme.js');
|
|
10
|
-
require('../common/direction.js');
|
|
11
|
-
require('../common/propsValues/control.js');
|
|
12
|
-
require('../common/propsValues/breakpoint.js');
|
|
13
|
-
require('../common/propsValues/size.js');
|
|
14
9
|
var typography = require('../common/propsValues/typography.js');
|
|
15
|
-
require('../common/propsValues/width.js');
|
|
16
|
-
require('../common/propsValues/type.js');
|
|
17
|
-
require('../common/propsValues/dateMode.js');
|
|
18
|
-
require('../common/propsValues/monthFormat.js');
|
|
19
|
-
require('../common/propsValues/position.js');
|
|
20
|
-
require('../common/propsValues/layouts.js');
|
|
21
|
-
require('../common/propsValues/status.js');
|
|
22
|
-
require('../common/propsValues/sentiment.js');
|
|
23
|
-
require('../common/propsValues/profileType.js');
|
|
24
|
-
require('../common/propsValues/variant.js');
|
|
25
|
-
require('../common/propsValues/scroll.js');
|
|
26
|
-
require('../common/propsValues/markdownNodeType.js');
|
|
27
|
-
require('../common/fileType.js');
|
|
28
10
|
var CloseButton = require('../common/closeButton/CloseButton.js');
|
|
29
11
|
var Link = require('../link/Link.js');
|
|
30
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
31
13
|
|
|
14
|
+
// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too
|
|
32
15
|
const STORAGE_NAME = 'dismissedNudges';
|
|
33
16
|
const getLocalStorage = () => {
|
|
34
17
|
try {
|
package/build/nudge/Nudge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Nudge.js","sources":["../../src/nudge/Nudge.tsx"],"sourcesContent":["import { Illustration, Assets, type IllustrationNames } from '@wise/art';\nimport { clsx } from 'clsx';\nimport { ReactNode, useEffect, useState, MouseEvent } from 'react';\n\nimport Body from '../body';\nimport { Typography } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport Link from '../link';\nimport type { AlertAction } from '../alert';\n\n// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too\nexport const STORAGE_NAME = 'dismissedNudges';\n\nconst getLocalStorage = (): string[] => {\n try {\n const storageItem = localStorage.getItem(STORAGE_NAME);\n\n if (storageItem) {\n const storage: unknown = JSON.parse(storageItem);\n\n if (Array.isArray(storage)) {\n return storage.map((item) => String(item));\n }\n }\n } catch (error) {}\n\n return [];\n};\n\ntype MediaNameType =\n | `${Assets.GLOBE}`\n | `${Assets.LOCK}`\n | `${Assets.WALLET}`\n | `${Assets.GEAR}`\n | `${Assets.INVITE_LETTER}`\n | `${Assets.PERSONAL_CARD}`\n | `${Assets.BUSINESS_CARD}`\n | `${Assets.HEART}`\n | `${Assets.MULTI_CURRENCY}`\n | `${Assets.SHOPPING_BAG}`\n | `${Assets.FLOWER}`\n | `${Assets.BACKPACK}`;\n\ntype BaseProps = {\n /** @deprecated use `mediaName` property instead */\n media?: ReactNode;\n /** Media name */\n mediaName?: MediaNameType;\n title: ReactNode;\n link?: ReactNode;\n href?: string;\n onClick?: (event?: MouseEvent<HTMLSpanElement>) => void;\n /** Fired when the user clicks on close button */\n onDismiss?: () => void;\n /** An optional call to action to sit under the main body of the nudge. If your label is short, use aria-label to provide more context */\n action?: AlertAction;\n className?: string;\n};\n\nexport interface OptionalId extends BaseProps {\n id?: string;\n persistDismissal?: false;\n isPreviouslyDismissed?: undefined;\n}\n\nexport interface RequiredPersistProps extends BaseProps {\n /** This ID should be completely unique to the page and feature as it uses a shared array which could conflict with other nudges in Wise */\n id: string;\n /** Use persist dismissal to keep the nudge dismissed using the browser's localStorage */\n persistDismissal: true;\n /**\n * Fired on mount for determining if nudge has been dismissed before\n *\n * @param {boolean} value - set to true if dismissed previously\n */\n isPreviouslyDismissed?: (value: boolean) => void;\n}\n\nexport type Props = OptionalId | RequiredPersistProps;\n\nconst Nudge = ({\n media,\n mediaName,\n title,\n link,\n href,\n onClick,\n onDismiss,\n persistDismissal,\n isPreviouslyDismissed,\n id,\n className,\n action,\n}: Props) => {\n const [isDismissed, setIsDismissed] = useState(false);\n const [isMounted, setIsMounted] = useState(false);\n\n const handleOnDismiss = () => {\n const dismissedNudgesStorage = getLocalStorage();\n\n if (persistDismissal && id) {\n try {\n localStorage.setItem(STORAGE_NAME, JSON.stringify([...dismissedNudgesStorage, id]));\n } catch (error) {}\n\n setIsDismissed(true);\n }\n\n if (onDismiss) {\n onDismiss();\n }\n };\n\n useEffect(() => {\n if (persistDismissal && id) {\n const dismissedNudgesStorage = getLocalStorage();\n let isDismissed = false;\n\n if (dismissedNudgesStorage?.find((item) => item === id)) {\n setIsDismissed(true);\n isDismissed = true;\n }\n\n if (isPreviouslyDismissed) {\n isPreviouslyDismissed(isDismissed);\n }\n }\n\n setIsMounted(true);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [id, persistDismissal]);\n\n if (persistDismissal && (isDismissed || !isMounted)) {\n return null;\n }\n\n return (\n <div className={clsx('wds-nudge', className)} id={id}>\n {!!mediaName && (\n <div className=\"wds-nudge-media\">\n <Illustration\n name={mediaName as IllustrationNames}\n className={clsx(`wds-nudge-media-${mediaName}`)}\n size=\"small\"\n disablePadding\n alt=\"\"\n />\n </div>\n )}\n <div className=\"wds-nudge-container\">\n <div className=\"wds-nudge-content\">\n <Body type={Typography.BODY_LARGE} className={clsx('wds-nudge-body')}>\n {title}\n </Body>\n {/* Merge these two Link instances into one */}\n {link && (\n <Link\n href={href}\n type={Typography.LINK_LARGE}\n className=\"wds-nudge-link\"\n onClick={onClick}\n >\n {link}\n </Link>\n )}\n {action && (\n <Link\n href={action.href}\n target={action.target}\n className=\"m-t-1\"\n aria-label={action['aria-label']}\n type={Typography.LINK_LARGE}\n onClick={action.onClick}\n >\n {action.text}\n </Link>\n )}\n </div>\n {onDismiss || persistDismissal ? (\n <CloseButton className=\"wds-nudge-control\" size=\"sm\" onClick={handleOnDismiss} />\n ) : null}\n </div>\n </div>\n );\n};\n\nexport default Nudge;\n"],"names":["STORAGE_NAME","getLocalStorage","storageItem","localStorage","getItem","storage","JSON","parse","Array","isArray","map","item","String","error","Nudge","media","mediaName","title","link","href","onClick","onDismiss","persistDismissal","isPreviouslyDismissed","id","className","action","isDismissed","setIsDismissed","useState","isMounted","setIsMounted","handleOnDismiss","dismissedNudgesStorage","setItem","stringify","useEffect","find","_jsxs","clsx","children","_jsx","Illustration","name","size","disablePadding","alt","Body","type","Typography","BODY_LARGE","Link","LINK_LARGE","target","text","CloseButton"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Nudge.js","sources":["../../src/nudge/Nudge.tsx"],"sourcesContent":["import { Illustration, Assets, type IllustrationNames } from '@wise/art';\nimport { clsx } from 'clsx';\nimport { ReactNode, useEffect, useState, MouseEvent } from 'react';\n\nimport Body from '../body';\nimport { Typography } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport Link from '../link';\nimport type { AlertAction } from '../alert';\n\n// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too\nexport const STORAGE_NAME = 'dismissedNudges';\n\nconst getLocalStorage = (): string[] => {\n try {\n const storageItem = localStorage.getItem(STORAGE_NAME);\n\n if (storageItem) {\n const storage: unknown = JSON.parse(storageItem);\n\n if (Array.isArray(storage)) {\n return storage.map((item) => String(item));\n }\n }\n } catch (error) {}\n\n return [];\n};\n\ntype MediaNameType =\n | `${Assets.GLOBE}`\n | `${Assets.LOCK}`\n | `${Assets.WALLET}`\n | `${Assets.GEAR}`\n | `${Assets.INVITE_LETTER}`\n | `${Assets.PERSONAL_CARD}`\n | `${Assets.BUSINESS_CARD}`\n | `${Assets.HEART}`\n | `${Assets.MULTI_CURRENCY}`\n | `${Assets.SHOPPING_BAG}`\n | `${Assets.FLOWER}`\n | `${Assets.BACKPACK}`;\n\ntype BaseProps = {\n /** @deprecated use `mediaName` property instead */\n media?: ReactNode;\n /** Media name */\n mediaName?: MediaNameType;\n title: ReactNode;\n link?: ReactNode;\n href?: string;\n onClick?: (event?: MouseEvent<HTMLSpanElement>) => void;\n /** Fired when the user clicks on close button */\n onDismiss?: () => void;\n /** An optional call to action to sit under the main body of the nudge. If your label is short, use aria-label to provide more context */\n action?: AlertAction;\n className?: string;\n};\n\nexport interface OptionalId extends BaseProps {\n id?: string;\n persistDismissal?: false;\n isPreviouslyDismissed?: undefined;\n}\n\nexport interface RequiredPersistProps extends BaseProps {\n /** This ID should be completely unique to the page and feature as it uses a shared array which could conflict with other nudges in Wise */\n id: string;\n /** Use persist dismissal to keep the nudge dismissed using the browser's localStorage */\n persistDismissal: true;\n /**\n * Fired on mount for determining if nudge has been dismissed before\n *\n * @param {boolean} value - set to true if dismissed previously\n */\n isPreviouslyDismissed?: (value: boolean) => void;\n}\n\nexport type Props = OptionalId | RequiredPersistProps;\n\nconst Nudge = ({\n media,\n mediaName,\n title,\n link,\n href,\n onClick,\n onDismiss,\n persistDismissal,\n isPreviouslyDismissed,\n id,\n className,\n action,\n}: Props) => {\n const [isDismissed, setIsDismissed] = useState(false);\n const [isMounted, setIsMounted] = useState(false);\n\n const handleOnDismiss = () => {\n const dismissedNudgesStorage = getLocalStorage();\n\n if (persistDismissal && id) {\n try {\n localStorage.setItem(STORAGE_NAME, JSON.stringify([...dismissedNudgesStorage, id]));\n } catch (error) {}\n\n setIsDismissed(true);\n }\n\n if (onDismiss) {\n onDismiss();\n }\n };\n\n useEffect(() => {\n if (persistDismissal && id) {\n const dismissedNudgesStorage = getLocalStorage();\n let isDismissed = false;\n\n if (dismissedNudgesStorage?.find((item) => item === id)) {\n setIsDismissed(true);\n isDismissed = true;\n }\n\n if (isPreviouslyDismissed) {\n isPreviouslyDismissed(isDismissed);\n }\n }\n\n setIsMounted(true);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [id, persistDismissal]);\n\n if (persistDismissal && (isDismissed || !isMounted)) {\n return null;\n }\n\n return (\n <div className={clsx('wds-nudge', className)} id={id}>\n {!!mediaName && (\n <div className=\"wds-nudge-media\">\n <Illustration\n name={mediaName as IllustrationNames}\n className={clsx(`wds-nudge-media-${mediaName}`)}\n size=\"small\"\n disablePadding\n alt=\"\"\n />\n </div>\n )}\n <div className=\"wds-nudge-container\">\n <div className=\"wds-nudge-content\">\n <Body type={Typography.BODY_LARGE} className={clsx('wds-nudge-body')}>\n {title}\n </Body>\n {/* Merge these two Link instances into one */}\n {link && (\n <Link\n href={href}\n type={Typography.LINK_LARGE}\n className=\"wds-nudge-link\"\n onClick={onClick}\n >\n {link}\n </Link>\n )}\n {action && (\n <Link\n href={action.href}\n target={action.target}\n className=\"m-t-1\"\n aria-label={action['aria-label']}\n type={Typography.LINK_LARGE}\n onClick={action.onClick}\n >\n {action.text}\n </Link>\n )}\n </div>\n {onDismiss || persistDismissal ? (\n <CloseButton className=\"wds-nudge-control\" size=\"sm\" onClick={handleOnDismiss} />\n ) : null}\n </div>\n </div>\n );\n};\n\nexport default Nudge;\n"],"names":["STORAGE_NAME","getLocalStorage","storageItem","localStorage","getItem","storage","JSON","parse","Array","isArray","map","item","String","error","Nudge","media","mediaName","title","link","href","onClick","onDismiss","persistDismissal","isPreviouslyDismissed","id","className","action","isDismissed","setIsDismissed","useState","isMounted","setIsMounted","handleOnDismiss","dismissedNudgesStorage","setItem","stringify","useEffect","find","_jsxs","clsx","children","_jsx","Illustration","name","size","disablePadding","alt","Body","type","Typography","BODY_LARGE","Link","LINK_LARGE","target","text","CloseButton"],"mappings":";;;;;;;;;;;;;AAUA;AACO,MAAMA,YAAY,GAAG;AAE5B,MAAMC,eAAe,GAAGA,MAAgB;EACtC,IAAI;AACF,IAAA,MAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,YAAY,CAAC;AAEtD,IAAA,IAAIE,WAAW,EAAE;AACf,MAAA,MAAMG,OAAgB,GAAGC,IAAI,CAACC,KAAK,CAACL,WAAW,CAAC;AAEhD,MAAA,IAAIM,KAAK,CAACC,OAAO,CAACJ,OAAO,CAAC,EAAE;QAC1B,OAAOA,OAAO,CAACK,GAAG,CAAEC,IAAI,IAAKC,MAAM,CAACD,IAAI,CAAC,CAAC;AAC5C,MAAA;AACF,IAAA;AACF,EAAA,CAAC,CAAC,OAAOE,KAAK,EAAE,CAAC;AAEjB,EAAA,OAAO,EAAE;AACX,CAAC;AAqDD,MAAMC,KAAK,GAAGA,CAAC;EACbC,KAAK;EACLC,SAAS;EACTC,KAAK;EACLC,IAAI;EACJC,IAAI;EACJC,OAAO;EACPC,SAAS;EACTC,gBAAgB;EAChBC,qBAAqB;EACrBC,EAAE;EACFC,SAAS;AACTC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O;AACtB5B,UAAAA,SAAS,EAAC,OAAO;UACjB,YAAA,EAAYC,MAAM,CAAC,YAAY,CAAE;UACjCsB,IAAI,EAAEC,qBAAU,CAACG,UAAW;UAC5BhC,OAAO,EAAEM,MAAM,CAACN,OAAQ;UAAAoB,QAAA,EAEvBd,MAAM,CAAC4B;AAAI,SACR,CACP;OACE,CAAC,EACLjC,SAAS,IAAIC,gBAAgB,gBAC5BmB,cAAA,CAACc,uBAAW,EAAA;AAAC9B,QAAAA,SAAS,EAAC,mBAAmB;AAACmB,QAAAA,IAAI,EAAC,IAAI;AAACxB,QAAAA,OAAO,EAAEY;OAAkB,CAAC,GAC/E,IAAI;AAAA,KACL,CAAC;AAAA,GACH,CAAC;AAEV;;;;;"}
|
package/build/nudge/Nudge.mjs
CHANGED
|
@@ -2,29 +2,12 @@ import { Illustration } from '@wise/art';
|
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import Body from '../body/Body.mjs';
|
|
5
|
-
import '../common/theme.mjs';
|
|
6
|
-
import '../common/direction.mjs';
|
|
7
|
-
import '../common/propsValues/control.mjs';
|
|
8
|
-
import '../common/propsValues/breakpoint.mjs';
|
|
9
|
-
import '../common/propsValues/size.mjs';
|
|
10
5
|
import { Typography } from '../common/propsValues/typography.mjs';
|
|
11
|
-
import '../common/propsValues/width.mjs';
|
|
12
|
-
import '../common/propsValues/type.mjs';
|
|
13
|
-
import '../common/propsValues/dateMode.mjs';
|
|
14
|
-
import '../common/propsValues/monthFormat.mjs';
|
|
15
|
-
import '../common/propsValues/position.mjs';
|
|
16
|
-
import '../common/propsValues/layouts.mjs';
|
|
17
|
-
import '../common/propsValues/status.mjs';
|
|
18
|
-
import '../common/propsValues/sentiment.mjs';
|
|
19
|
-
import '../common/propsValues/profileType.mjs';
|
|
20
|
-
import '../common/propsValues/variant.mjs';
|
|
21
|
-
import '../common/propsValues/scroll.mjs';
|
|
22
|
-
import '../common/propsValues/markdownNodeType.mjs';
|
|
23
|
-
import '../common/fileType.mjs';
|
|
24
6
|
import { CloseButton } from '../common/closeButton/CloseButton.mjs';
|
|
25
7
|
import Link from '../link/Link.mjs';
|
|
26
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
27
9
|
|
|
10
|
+
// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too
|
|
28
11
|
const STORAGE_NAME = 'dismissedNudges';
|
|
29
12
|
const getLocalStorage = () => {
|
|
30
13
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Nudge.mjs","sources":["../../src/nudge/Nudge.tsx"],"sourcesContent":["import { Illustration, Assets, type IllustrationNames } from '@wise/art';\nimport { clsx } from 'clsx';\nimport { ReactNode, useEffect, useState, MouseEvent } from 'react';\n\nimport Body from '../body';\nimport { Typography } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport Link from '../link';\nimport type { AlertAction } from '../alert';\n\n// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too\nexport const STORAGE_NAME = 'dismissedNudges';\n\nconst getLocalStorage = (): string[] => {\n try {\n const storageItem = localStorage.getItem(STORAGE_NAME);\n\n if (storageItem) {\n const storage: unknown = JSON.parse(storageItem);\n\n if (Array.isArray(storage)) {\n return storage.map((item) => String(item));\n }\n }\n } catch (error) {}\n\n return [];\n};\n\ntype MediaNameType =\n | `${Assets.GLOBE}`\n | `${Assets.LOCK}`\n | `${Assets.WALLET}`\n | `${Assets.GEAR}`\n | `${Assets.INVITE_LETTER}`\n | `${Assets.PERSONAL_CARD}`\n | `${Assets.BUSINESS_CARD}`\n | `${Assets.HEART}`\n | `${Assets.MULTI_CURRENCY}`\n | `${Assets.SHOPPING_BAG}`\n | `${Assets.FLOWER}`\n | `${Assets.BACKPACK}`;\n\ntype BaseProps = {\n /** @deprecated use `mediaName` property instead */\n media?: ReactNode;\n /** Media name */\n mediaName?: MediaNameType;\n title: ReactNode;\n link?: ReactNode;\n href?: string;\n onClick?: (event?: MouseEvent<HTMLSpanElement>) => void;\n /** Fired when the user clicks on close button */\n onDismiss?: () => void;\n /** An optional call to action to sit under the main body of the nudge. If your label is short, use aria-label to provide more context */\n action?: AlertAction;\n className?: string;\n};\n\nexport interface OptionalId extends BaseProps {\n id?: string;\n persistDismissal?: false;\n isPreviouslyDismissed?: undefined;\n}\n\nexport interface RequiredPersistProps extends BaseProps {\n /** This ID should be completely unique to the page and feature as it uses a shared array which could conflict with other nudges in Wise */\n id: string;\n /** Use persist dismissal to keep the nudge dismissed using the browser's localStorage */\n persistDismissal: true;\n /**\n * Fired on mount for determining if nudge has been dismissed before\n *\n * @param {boolean} value - set to true if dismissed previously\n */\n isPreviouslyDismissed?: (value: boolean) => void;\n}\n\nexport type Props = OptionalId | RequiredPersistProps;\n\nconst Nudge = ({\n media,\n mediaName,\n title,\n link,\n href,\n onClick,\n onDismiss,\n persistDismissal,\n isPreviouslyDismissed,\n id,\n className,\n action,\n}: Props) => {\n const [isDismissed, setIsDismissed] = useState(false);\n const [isMounted, setIsMounted] = useState(false);\n\n const handleOnDismiss = () => {\n const dismissedNudgesStorage = getLocalStorage();\n\n if (persistDismissal && id) {\n try {\n localStorage.setItem(STORAGE_NAME, JSON.stringify([...dismissedNudgesStorage, id]));\n } catch (error) {}\n\n setIsDismissed(true);\n }\n\n if (onDismiss) {\n onDismiss();\n }\n };\n\n useEffect(() => {\n if (persistDismissal && id) {\n const dismissedNudgesStorage = getLocalStorage();\n let isDismissed = false;\n\n if (dismissedNudgesStorage?.find((item) => item === id)) {\n setIsDismissed(true);\n isDismissed = true;\n }\n\n if (isPreviouslyDismissed) {\n isPreviouslyDismissed(isDismissed);\n }\n }\n\n setIsMounted(true);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [id, persistDismissal]);\n\n if (persistDismissal && (isDismissed || !isMounted)) {\n return null;\n }\n\n return (\n <div className={clsx('wds-nudge', className)} id={id}>\n {!!mediaName && (\n <div className=\"wds-nudge-media\">\n <Illustration\n name={mediaName as IllustrationNames}\n className={clsx(`wds-nudge-media-${mediaName}`)}\n size=\"small\"\n disablePadding\n alt=\"\"\n />\n </div>\n )}\n <div className=\"wds-nudge-container\">\n <div className=\"wds-nudge-content\">\n <Body type={Typography.BODY_LARGE} className={clsx('wds-nudge-body')}>\n {title}\n </Body>\n {/* Merge these two Link instances into one */}\n {link && (\n <Link\n href={href}\n type={Typography.LINK_LARGE}\n className=\"wds-nudge-link\"\n onClick={onClick}\n >\n {link}\n </Link>\n )}\n {action && (\n <Link\n href={action.href}\n target={action.target}\n className=\"m-t-1\"\n aria-label={action['aria-label']}\n type={Typography.LINK_LARGE}\n onClick={action.onClick}\n >\n {action.text}\n </Link>\n )}\n </div>\n {onDismiss || persistDismissal ? (\n <CloseButton className=\"wds-nudge-control\" size=\"sm\" onClick={handleOnDismiss} />\n ) : null}\n </div>\n </div>\n );\n};\n\nexport default Nudge;\n"],"names":["STORAGE_NAME","getLocalStorage","storageItem","localStorage","getItem","storage","JSON","parse","Array","isArray","map","item","String","error","Nudge","media","mediaName","title","link","href","onClick","onDismiss","persistDismissal","isPreviouslyDismissed","id","className","action","isDismissed","setIsDismissed","useState","isMounted","setIsMounted","handleOnDismiss","dismissedNudgesStorage","setItem","stringify","useEffect","find","_jsxs","clsx","children","_jsx","Illustration","name","size","disablePadding","alt","Body","type","Typography","BODY_LARGE","Link","LINK_LARGE","target","text","CloseButton"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Nudge.mjs","sources":["../../src/nudge/Nudge.tsx"],"sourcesContent":["import { Illustration, Assets, type IllustrationNames } from '@wise/art';\nimport { clsx } from 'clsx';\nimport { ReactNode, useEffect, useState, MouseEvent } from 'react';\n\nimport Body from '../body';\nimport { Typography } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport Link from '../link';\nimport type { AlertAction } from '../alert';\n\n// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too\nexport const STORAGE_NAME = 'dismissedNudges';\n\nconst getLocalStorage = (): string[] => {\n try {\n const storageItem = localStorage.getItem(STORAGE_NAME);\n\n if (storageItem) {\n const storage: unknown = JSON.parse(storageItem);\n\n if (Array.isArray(storage)) {\n return storage.map((item) => String(item));\n }\n }\n } catch (error) {}\n\n return [];\n};\n\ntype MediaNameType =\n | `${Assets.GLOBE}`\n | `${Assets.LOCK}`\n | `${Assets.WALLET}`\n | `${Assets.GEAR}`\n | `${Assets.INVITE_LETTER}`\n | `${Assets.PERSONAL_CARD}`\n | `${Assets.BUSINESS_CARD}`\n | `${Assets.HEART}`\n | `${Assets.MULTI_CURRENCY}`\n | `${Assets.SHOPPING_BAG}`\n | `${Assets.FLOWER}`\n | `${Assets.BACKPACK}`;\n\ntype BaseProps = {\n /** @deprecated use `mediaName` property instead */\n media?: ReactNode;\n /** Media name */\n mediaName?: MediaNameType;\n title: ReactNode;\n link?: ReactNode;\n href?: string;\n onClick?: (event?: MouseEvent<HTMLSpanElement>) => void;\n /** Fired when the user clicks on close button */\n onDismiss?: () => void;\n /** An optional call to action to sit under the main body of the nudge. If your label is short, use aria-label to provide more context */\n action?: AlertAction;\n className?: string;\n};\n\nexport interface OptionalId extends BaseProps {\n id?: string;\n persistDismissal?: false;\n isPreviouslyDismissed?: undefined;\n}\n\nexport interface RequiredPersistProps extends BaseProps {\n /** This ID should be completely unique to the page and feature as it uses a shared array which could conflict with other nudges in Wise */\n id: string;\n /** Use persist dismissal to keep the nudge dismissed using the browser's localStorage */\n persistDismissal: true;\n /**\n * Fired on mount for determining if nudge has been dismissed before\n *\n * @param {boolean} value - set to true if dismissed previously\n */\n isPreviouslyDismissed?: (value: boolean) => void;\n}\n\nexport type Props = OptionalId | RequiredPersistProps;\n\nconst Nudge = ({\n media,\n mediaName,\n title,\n link,\n href,\n onClick,\n onDismiss,\n persistDismissal,\n isPreviouslyDismissed,\n id,\n className,\n action,\n}: Props) => {\n const [isDismissed, setIsDismissed] = useState(false);\n const [isMounted, setIsMounted] = useState(false);\n\n const handleOnDismiss = () => {\n const dismissedNudgesStorage = getLocalStorage();\n\n if (persistDismissal && id) {\n try {\n localStorage.setItem(STORAGE_NAME, JSON.stringify([...dismissedNudgesStorage, id]));\n } catch (error) {}\n\n setIsDismissed(true);\n }\n\n if (onDismiss) {\n onDismiss();\n }\n };\n\n useEffect(() => {\n if (persistDismissal && id) {\n const dismissedNudgesStorage = getLocalStorage();\n let isDismissed = false;\n\n if (dismissedNudgesStorage?.find((item) => item === id)) {\n setIsDismissed(true);\n isDismissed = true;\n }\n\n if (isPreviouslyDismissed) {\n isPreviouslyDismissed(isDismissed);\n }\n }\n\n setIsMounted(true);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [id, persistDismissal]);\n\n if (persistDismissal && (isDismissed || !isMounted)) {\n return null;\n }\n\n return (\n <div className={clsx('wds-nudge', className)} id={id}>\n {!!mediaName && (\n <div className=\"wds-nudge-media\">\n <Illustration\n name={mediaName as IllustrationNames}\n className={clsx(`wds-nudge-media-${mediaName}`)}\n size=\"small\"\n disablePadding\n alt=\"\"\n />\n </div>\n )}\n <div className=\"wds-nudge-container\">\n <div className=\"wds-nudge-content\">\n <Body type={Typography.BODY_LARGE} className={clsx('wds-nudge-body')}>\n {title}\n </Body>\n {/* Merge these two Link instances into one */}\n {link && (\n <Link\n href={href}\n type={Typography.LINK_LARGE}\n className=\"wds-nudge-link\"\n onClick={onClick}\n >\n {link}\n </Link>\n )}\n {action && (\n <Link\n href={action.href}\n target={action.target}\n className=\"m-t-1\"\n aria-label={action['aria-label']}\n type={Typography.LINK_LARGE}\n onClick={action.onClick}\n >\n {action.text}\n </Link>\n )}\n </div>\n {onDismiss || persistDismissal ? (\n <CloseButton className=\"wds-nudge-control\" size=\"sm\" onClick={handleOnDismiss} />\n ) : null}\n </div>\n </div>\n );\n};\n\nexport default Nudge;\n"],"names":["STORAGE_NAME","getLocalStorage","storageItem","localStorage","getItem","storage","JSON","parse","Array","isArray","map","item","String","error","Nudge","media","mediaName","title","link","href","onClick","onDismiss","persistDismissal","isPreviouslyDismissed","id","className","action","isDismissed","setIsDismissed","useState","isMounted","setIsMounted","handleOnDismiss","dismissedNudgesStorage","setItem","stringify","useEffect","find","_jsxs","clsx","children","_jsx","Illustration","name","size","disablePadding","alt","Body","type","Typography","BODY_LARGE","Link","LINK_LARGE","target","text","CloseButton"],"mappings":";;;;;;;;;AAUA;AACO,MAAMA,YAAY,GAAG;AAE5B,MAAMC,eAAe,GAAGA,MAAgB;EACtC,IAAI;AACF,IAAA,MAAMC,WAAW,GAAGC,YAAY,CAACC,OAAO,CAACJ,YAAY,CAAC;AAEtD,IAAA,IAAIE,WAAW,EAAE;AACf,MAAA,MAAMG,OAAgB,GAAGC,IAAI,CAACC,KAAK,CAACL,WAAW,CAAC;AAEhD,MAAA,IAAIM,KAAK,CAACC,OAAO,CAACJ,OAAO,CAAC,EAAE;QAC1B,OAAOA,OAAO,CAACK,GAAG,CAAEC,IAAI,IAAKC,MAAM,CAACD,IAAI,CAAC,CAAC;AAC5C,MAAA;AACF,IAAA;AACF,EAAA,CAAC,CAAC,OAAOE,KAAK,EAAE,CAAC;AAEjB,EAAA,OAAO,EAAE;AACX,CAAC;AAqDD,MAAMC,KAAK,GAAGA,CAAC;EACbC,KAAK;EACLC,SAAS;EACTC,KAAK;EACLC,IAAI;EACJC,IAAI;EACJC,OAAO;EACPC,SAAS;EACTC,gBAAgB;EAChBC,qBAAqB;EACrBC,EAAE;EACFC,SAAS;AACTC,EAAAA;AACK,CAAC,KAAK;EACX,MAAM,CAACC,WAAW,EAAEC,cAAc,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC;EACrD,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGF,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMG,eAAe,GAAGA,MAAM;AAC5B,IAAA,MAAMC,sBAAsB,GAAGhC,eAAe,EAAE;IAEhD,IAAIqB,gBAAgB,IAAIE,EAAE,EAAE;MAC1B,IAAI;AACFrB,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AACmB,QAAAA,IAAI,EAAC,IAAI;AAACxB,QAAAA,OAAO,EAAEY;OAAkB,CAAC,GAC/E,IAAI;AAAA,KACL,CAAC;AAAA,GACH,CAAC;AAEV;;;;"}
|
|
@@ -3,25 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
-
require('../common/theme.js');
|
|
7
|
-
require('../common/direction.js');
|
|
8
|
-
require('../common/propsValues/control.js');
|
|
9
|
-
require('../common/propsValues/breakpoint.js');
|
|
10
6
|
var size = require('../common/propsValues/size.js');
|
|
11
|
-
require('../common/propsValues/typography.js');
|
|
12
|
-
require('../common/propsValues/width.js');
|
|
13
|
-
require('../common/propsValues/type.js');
|
|
14
|
-
require('../common/propsValues/dateMode.js');
|
|
15
|
-
require('../common/propsValues/monthFormat.js');
|
|
16
|
-
require('../common/propsValues/position.js');
|
|
17
|
-
require('../common/propsValues/layouts.js');
|
|
18
|
-
require('../common/propsValues/status.js');
|
|
19
|
-
require('../common/propsValues/sentiment.js');
|
|
20
|
-
require('../common/propsValues/profileType.js');
|
|
21
|
-
require('../common/propsValues/variant.js');
|
|
22
|
-
require('../common/propsValues/scroll.js');
|
|
23
|
-
require('../common/propsValues/markdownNodeType.js');
|
|
24
|
-
require('../common/fileType.js');
|
|
25
7
|
var CloseButton = require('../common/closeButton/CloseButton.js');
|
|
26
8
|
var FlowHeader = require('../common/flowHeader/FlowHeader.js');
|
|
27
9
|
var Logo = require('../logo/Logo.js');
|