@transferwise/components 46.97.4 → 46.98.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.map +1 -1
- package/build/accordion/Accordion.mjs.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js +8 -0
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs +8 -0
- package/build/alert/Alert.mjs.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatar/avatarTypes.js.map +1 -1
- package/build/avatar/avatarTypes.mjs.map +1 -1
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/avatarView/NotificationDot.js.map +1 -1
- package/build/avatarView/NotificationDot.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/build/button/LegacyButton.mjs +1 -1
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/button/classMap.js.map +1 -1
- package/build/button/classMap.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/card/Card.js.map +1 -1
- 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.map +1 -1
- 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.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chevron/Chevron.mjs.map +1 -1
- package/build/chips/Chip.js.map +1 -1
- 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.map +1 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/DOMOperations/DOMOperations.js.map +1 -1
- 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.map +1 -1
- package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
- package/build/common/card/Card.js.map +1 -1
- package/build/common/card/Card.mjs.map +1 -1
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/common/closeButton/CloseButton.js +3 -1
- 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 -1
- package/build/common/closeButton/CloseButton.mjs.map +1 -1
- package/build/common/colors.js.map +1 -1
- package/build/common/colors.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/getFormatForLocale/getFormatForLocale.js.map +1 -1
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.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.map +1 -1
- package/build/common/direction.mjs.map +1 -1
- package/build/common/domHelpers/documentIosClick.js.map +1 -1
- package/build/common/domHelpers/documentIosClick.mjs.map +1 -1
- package/build/common/fileType.js.map +1 -1
- package/build/common/fileType.mjs.map +1 -1
- 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.map +1 -1
- package/build/common/hooks/useEffectEvent.mjs.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
- 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 +3 -0
- package/build/common/initials.js.map +1 -1
- package/build/common/initials.mjs +3 -0
- package/build/common/initials.mjs.map +1 -1
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +1 -1
- 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.map +1 -1
- package/build/common/propsValues/breakpoint.mjs.map +1 -1
- package/build/common/propsValues/control.js.map +1 -1
- package/build/common/propsValues/control.mjs.map +1 -1
- package/build/common/propsValues/dateMode.js.map +1 -1
- package/build/common/propsValues/dateMode.mjs.map +1 -1
- package/build/common/propsValues/layouts.js.map +1 -1
- package/build/common/propsValues/layouts.mjs.map +1 -1
- package/build/common/propsValues/markdownNodeType.js.map +1 -1
- package/build/common/propsValues/markdownNodeType.mjs.map +1 -1
- package/build/common/propsValues/monthFormat.js.map +1 -1
- package/build/common/propsValues/monthFormat.mjs.map +1 -1
- package/build/common/propsValues/position.js.map +1 -1
- package/build/common/propsValues/position.mjs.map +1 -1
- package/build/common/propsValues/profileType.js.map +1 -1
- package/build/common/propsValues/profileType.mjs.map +1 -1
- package/build/common/propsValues/scroll.js.map +1 -1
- package/build/common/propsValues/scroll.mjs.map +1 -1
- package/build/common/propsValues/sentiment.js.map +1 -1
- package/build/common/propsValues/sentiment.mjs.map +1 -1
- package/build/common/propsValues/size.js.map +1 -1
- package/build/common/propsValues/size.mjs.map +1 -1
- package/build/common/propsValues/status.js.map +1 -1
- package/build/common/propsValues/status.mjs.map +1 -1
- package/build/common/propsValues/type.js.map +1 -1
- package/build/common/propsValues/type.mjs.map +1 -1
- package/build/common/propsValues/typography.js.map +1 -1
- package/build/common/propsValues/typography.mjs.map +1 -1
- package/build/common/propsValues/variant.js.map +1 -1
- package/build/common/propsValues/variant.mjs.map +1 -1
- package/build/common/propsValues/width.js.map +1 -1
- package/build/common/propsValues/width.mjs.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- 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/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.map +1 -1
- 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.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.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +4 -4
- 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 +4 -4
- package/build/dateLookup/DateLookup.mjs.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- 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.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 +3 -3
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +3 -3
- 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.map +1 -1
- package/build/decision/Decision.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.js.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.mjs.map +1 -1
- package/build/display/Display.js.map +1 -1
- package/build/display/Display.mjs.map +1 -1
- package/build/divider/Divider.js.map +1 -1
- package/build/divider/Divider.mjs.map +1 -1
- package/build/drawer/Drawer.js.map +1 -1
- 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.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs.map +1 -1
- 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.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.map +1 -1
- 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/cs.json +12 -9
- package/build/i18n/cs.json.js +12 -9
- package/build/i18n/cs.json.js.map +1 -1
- package/build/i18n/cs.json.mjs +12 -9
- package/build/i18n/cs.json.mjs.map +1 -1
- package/build/i18n/de.json +3 -0
- package/build/i18n/de.json.js +3 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +3 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/en.json +3 -0
- package/build/i18n/en.json.js +3 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +3 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/i18n/es.json +3 -0
- package/build/i18n/es.json.js +3 -0
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +3 -0
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/fr.json +3 -0
- package/build/i18n/fr.json.js +3 -0
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +3 -0
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +3 -0
- package/build/i18n/hu.json.js +3 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +3 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +3 -0
- package/build/i18n/id.json.js +3 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +3 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/index.js.map +1 -1
- package/build/i18n/index.mjs.map +1 -1
- package/build/i18n/it.json +3 -0
- package/build/i18n/it.json.js +3 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +3 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/ja.json +3 -0
- package/build/i18n/ja.json.js +3 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +3 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/nl.json +6 -3
- package/build/i18n/pl.json +3 -0
- package/build/i18n/pl.json.js +3 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +3 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/pt.json +3 -0
- package/build/i18n/pt.json.js +3 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +3 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ro.json +3 -0
- package/build/i18n/ro.json.js +3 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +3 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/ru.json +3 -0
- package/build/i18n/ru.json.js +3 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +3 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/th.json +3 -0
- package/build/i18n/th.json.js +3 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +3 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +3 -0
- package/build/i18n/tr.json.js +3 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +3 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +3 -0
- package/build/i18n/zh-CN.json.js +3 -0
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +3 -0
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +3 -0
- package/build/i18n/zh-HK.json.js +3 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +3 -0
- package/build/i18n/zh-HK.json.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 +9 -10
- package/build/image/Image.js.map +1 -1
- package/build/image/Image.mjs +11 -11
- package/build/image/Image.mjs.map +1 -1
- 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.map +1 -1
- package/build/info/infoPresentations.js.map +1 -1
- package/build/info/infoPresentations.mjs.map +1 -1
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inlineAlert/InlineAlert.mjs.map +1 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +1 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +1 -1
- package/build/inputs/Input.js.map +1 -1
- package/build/inputs/Input.mjs.map +1 -1
- package/build/inputs/InputGroup.js +16 -20
- package/build/inputs/InputGroup.js.map +1 -1
- package/build/inputs/InputGroup.mjs +17 -21
- package/build/inputs/InputGroup.mjs.map +1 -1
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/inputs/SelectInput.js +6 -1
- 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 +6 -1
- 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 +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.map +1 -1
- package/build/instructionsList/InstructionsList.mjs.map +1 -1
- 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.map +1 -1
- package/build/legacylistItem/LegacyListItem.js.map +1 -1
- package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
- package/build/legacylistItem/List.js.map +1 -1
- package/build/legacylistItem/List.mjs.map +1 -1
- 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.map +1 -1
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs.map +1 -1
- package/build/logo/Logo.js.map +1 -1
- package/build/logo/Logo.mjs +1 -1
- 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 -2
- package/build/markdown/Markdown.js +20 -4
- package/build/markdown/Markdown.js.map +1 -1
- package/build/markdown/Markdown.mjs +1 -1
- 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.map +1 -1
- 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 +4 -8
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.messages.js +3 -0
- package/build/moneyInput/MoneyInput.messages.js.map +1 -1
- package/build/moneyInput/MoneyInput.messages.mjs +3 -0
- package/build/moneyInput/MoneyInput.messages.mjs.map +1 -1
- package/build/moneyInput/MoneyInput.mjs +4 -8
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/moneyInput/currencyFormatting.js.map +1 -1
- package/build/moneyInput/currencyFormatting.mjs.map +1 -1
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +38 -4
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.js +6 -0
- package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs +6 -0
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +38 -4
- 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/cleanNumber/cleanNumber.js.map +1 -1
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +1 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +1 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +1 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +1 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +1 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +1 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +1 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +1 -1
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs +1 -1
- package/build/popover/Popover.mjs.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- 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.map +1 -1
- package/build/progressBar/ProgressBar.mjs.map +1 -1
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/promoCard/PromoCardContext.js.map +1 -1
- package/build/promoCard/PromoCardContext.mjs.map +1 -1
- package/build/promoCard/PromoCardGroup.js +1 -1
- package/build/promoCard/PromoCardGroup.js.map +1 -1
- package/build/promoCard/PromoCardGroup.mjs +1 -1
- package/build/promoCard/PromoCardGroup.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/promoCard/PromoCardIndicator.mjs +1 -1
- package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
- package/build/provider/Provider.js.map +1 -1
- 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 +1 -1
- package/build/provider/overlay/OverlayIdProvider.mjs.map +1 -1
- package/build/radio/Radio.js.map +1 -1
- package/build/radio/Radio.mjs.map +1 -1
- package/build/radioGroup/RadioGroup.js.map +1 -1
- package/build/radioGroup/RadioGroup.mjs.map +1 -1
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/section/Section.js.map +1 -1
- package/build/section/Section.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/select/Select.js +14 -22
- 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 +14 -22
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js.map +1 -1
- 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/selectOption/SelectOption.js.map +1 -1
- package/build/selectOption/SelectOption.messages.js.map +1 -1
- package/build/selectOption/SelectOption.messages.mjs.map +1 -1
- package/build/selectOption/SelectOption.mjs +1 -1
- package/build/selectOption/SelectOption.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 +1 -1
- package/build/snackbar/Snackbar.js.map +1 -1
- package/build/snackbar/Snackbar.mjs +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.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 +1 -1
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/stepper/Stepper.js.map +1 -1
- 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.map +1 -1
- package/build/sticky/Sticky.mjs.map +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -0
- package/build/styles/dateInput/DateInput.css +2 -1
- package/build/styles/inputs/Input.css +10 -0
- package/build/styles/inputs/TextArea.css +10 -0
- package/build/styles/main.css +20 -2
- package/build/styles/upload/Upload.css +3 -0
- package/build/styles/uploadInput/uploadItem/UploadItem.css +2 -1
- 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 +1 -1
- 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.map +1 -1
- package/build/switchOption/SwitchOption.mjs.map +1 -1
- package/build/table/Table.js.map +1 -1
- package/build/table/Table.messages.js.map +1 -1
- package/build/table/Table.messages.mjs.map +1 -1
- package/build/table/Table.mjs.map +1 -1
- package/build/table/TableCell.js.map +1 -1
- package/build/table/TableCell.mjs.map +1 -1
- package/build/table/TableHeader.js.map +1 -1
- package/build/table/TableHeader.mjs.map +1 -1
- package/build/table/TableRow.js.map +1 -1
- package/build/table/TableRow.mjs.map +1 -1
- package/build/table/TableStatusText.js.map +1 -1
- 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 -3
- package/build/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs +4 -4
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/tabs/utils.js +1 -1
- package/build/tabs/utils.js.map +1 -1
- package/build/tabs/utils.mjs +1 -1
- package/build/tabs/utils.mjs.map +1 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +1 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +1 -1
- package/build/tile/Tile.js.map +1 -1
- package/build/tile/Tile.mjs.map +1 -1
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js +57 -61
- 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 +57 -61
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js +2 -2
- package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +2 -2
- 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/actionOption/ActionOption.d.ts.map +1 -1
- package/build/types/alert/Alert.d.ts.map +1 -1
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/build/types/chevron/Chevron.d.ts.map +1 -1
- package/build/types/chips/Chip.d.ts.map +1 -1
- package/build/types/chips/Chips.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
- package/build/types/common/closeButton/CloseButton.d.ts +2 -0
- package/build/types/common/closeButton/CloseButton.d.ts.map +1 -1
- package/build/types/common/colors.d.ts.map +1 -1
- package/build/types/common/dateUtils/getDateView/getDateView.d.ts.map +1 -1
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -1
- package/build/types/common/fakeEvents.d.ts.map +1 -1
- package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -1
- package/build/types/common/historyNavigator/historyNavigator.d.ts.map +1 -1
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -1
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -1
- package/build/types/common/initials.d.ts.map +1 -1
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -1
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -1
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -1
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -1
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -1
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -1
- package/build/types/common/theme.d.ts.map +1 -1
- package/build/types/dateInput/DateInput.d.ts.map +1 -1
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -1
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -1
- package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -1
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -1
- package/build/types/decision/Decision.d.ts.map +1 -1
- package/build/types/dimmer/Dimmer.d.ts.map +1 -1
- package/build/types/dropFade/DropFade.d.ts.map +1 -1
- package/build/types/emphasis/Emphasis.d.ts.map +1 -1
- package/build/types/field/Field.d.ts.map +1 -1
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -1
- package/build/types/header/Header.d.ts.map +1 -1
- package/build/types/image/Image.d.ts +0 -1
- package/build/types/image/Image.d.ts.map +1 -1
- package/build/types/info/Info.d.ts.map +1 -1
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/instructionsList/InstructionsList.d.ts.map +1 -1
- package/build/types/link/Link.d.ts.map +1 -1
- package/build/types/loader/Loader.d.ts.map +1 -1
- package/build/types/markdown/Markdown.d.ts.map +1 -1
- package/build/types/modal/Modal.d.ts.map +1 -1
- package/build/types/money/Money.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.messages.d.ts +5 -0
- package/build/types/moneyInput/MoneyInput.messages.d.ts.map +1 -1
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -1
- package/build/types/nudge/Nudge.d.ts.map +1 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
- package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts +8 -0
- package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -1
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -1
- package/build/types/progress/Progress.d.ts.map +1 -1
- package/build/types/progressBar/ProgressBar.d.ts.map +1 -1
- package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -1
- package/build/types/provider/language/LanguageProvider.d.ts.map +1 -1
- package/build/types/provider/overlay/OverlayIdProvider.d.ts.map +1 -1
- package/build/types/section/Section.d.ts.map +1 -1
- package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -1
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
- package/build/types/stepper/Stepper.d.ts.map +1 -1
- package/build/types/summary/Summary.d.ts.map +1 -1
- package/build/types/switch/Switch.d.ts.map +1 -1
- package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
- package/build/types/table/Table.d.ts.map +1 -1
- package/build/types/table/TableCell.d.ts.map +1 -1
- package/build/types/table/TableHeader.d.ts.map +1 -1
- package/build/types/table/TableRow.d.ts.map +1 -1
- package/build/types/table/TableStatusText.d.ts.map +1 -1
- package/build/types/tabs/Tabs.d.ts.map +1 -1
- package/build/types/tabs/utils.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +6 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -1
- package/build/types/tooltip/Tooltip.d.ts.map +1 -1
- package/build/types/upload/Upload.d.ts +1 -2
- package/build/types/upload/Upload.d.ts.map +1 -1
- package/build/types/upload/steps/processingStep/processingStep.d.ts +1 -3
- package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -1
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -0
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -1
- package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -1
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts +1 -1
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -1
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
- package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -1
- package/build/upload/Upload.js +29 -45
- 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 +29 -45
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js +1 -3
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +1 -3
- package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +8 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +8 -1
- 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 +55 -6
- 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 +57 -8
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- 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.map +1 -1
- package/build/uploadInput/uploadButton/defaults.js.map +1 -1
- package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js +12 -6
- 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 +12 -6
- 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 +6 -7
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +6 -7
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/build/withId/withId.js.map +1 -1
- package/build/withId/withId.mjs.map +1 -1
- package/build/withNextPortal/withNextPortal.js +1 -1
- package/build/withNextPortal/withNextPortal.js.map +1 -1
- package/build/withNextPortal/withNextPortal.mjs +1 -1
- package/build/withNextPortal/withNextPortal.mjs.map +1 -1
- package/package.json +56 -59
- package/src/alert/Alert.spec.tsx +13 -4
- package/src/alert/Alert.story.tsx +23 -9
- package/src/alert/Alert.tsx +14 -1
- package/src/card/Card.story.tsx +4 -2
- package/src/checkbox/Checkbox.story.tsx +3 -2
- package/src/circularButton/CircularButton.css +1 -0
- package/src/circularButton/CircularButton.less +1 -0
- package/src/circularButton/CircularButton.tests.story.tsx +23 -0
- package/src/common/closeButton/CloseButton.spec.tsx +13 -1
- package/src/common/closeButton/CloseButton.tsx +3 -0
- package/src/common/initials.spec.tsx +42 -0
- package/src/common/initials.ts +4 -0
- package/src/dateInput/DateInput.css +2 -1
- package/src/dateInput/DateInput.less +7 -4
- package/src/dateInput/DateInput.story.tsx +2 -2
- package/src/dateInput/DateInput.tests.story.tsx +11 -10
- package/src/i18n/cs.json +12 -9
- package/src/i18n/de.json +3 -0
- package/src/i18n/en.json +3 -0
- package/src/i18n/es.json +3 -0
- package/src/i18n/fr.json +3 -0
- package/src/i18n/hu.json +3 -0
- package/src/i18n/id.json +3 -0
- package/src/i18n/it.json +3 -0
- package/src/i18n/ja.json +3 -0
- package/src/i18n/nl.json +6 -3
- package/src/i18n/pl.json +3 -0
- package/src/i18n/pt.json +3 -0
- package/src/i18n/ro.json +3 -0
- package/src/i18n/ru.json +3 -0
- package/src/i18n/th.json +3 -0
- package/src/i18n/tr.json +3 -0
- package/src/i18n/zh-CN.json +3 -0
- package/src/i18n/zh-HK.json +3 -0
- package/src/image/Image.spec.tsx +3 -3
- package/src/image/Image.tsx +10 -12
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +1 -1
- package/src/inputs/Input.css +10 -0
- package/src/inputs/SelectInput.tsx +11 -2
- package/src/inputs/TextArea.css +10 -0
- package/src/inputs/_common.less +6 -0
- package/src/main.css +20 -2
- package/src/markdown/Markdown.tsx +2 -1
- package/src/moneyInput/MoneyInput.messages.ts +5 -0
- package/src/moneyInput/MoneyInput.spec.tsx +42 -5
- package/src/moneyInput/MoneyInput.story.tsx +11 -2
- package/src/moneyInput/MoneyInput.tsx +5 -7
- package/src/phoneNumberInput/PhoneNumberInput.messages.ts +8 -0
- package/src/phoneNumberInput/PhoneNumberInput.spec.tsx +77 -43
- package/src/phoneNumberInput/PhoneNumberInput.tsx +36 -4
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +3 -2
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +3 -2
- package/src/promoCard/__snapshots__/PromoCard.spec.tsx.snap +1 -0
- package/src/promoCard/__snapshots__/PromoCardGroup.spec.tsx.snap +2 -0
- package/src/radioGroup/RadioGroup.story.tsx +2 -2
- package/src/tabs/Tabs.spec.tsx +137 -0
- package/src/tabs/Tabs.story.tsx +1 -0
- package/src/tabs/Tabs.tsx +0 -1
- package/src/test-utils/jest.setup.ts +0 -4
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.spec.js +9 -8
- package/src/typeahead/Typeahead.spec.tsx +182 -0
- package/src/typeahead/Typeahead.story.tsx +3 -2
- package/src/typeahead/typeaheadInput/TypeaheadInput.spec.tsx +103 -0
- package/src/typeahead/util/highlight.spec.tsx +43 -0
- package/src/upload/Upload.css +3 -0
- package/src/upload/Upload.less +7 -1
- package/src/upload/Upload.spec.tsx +63 -0
- package/src/upload/Upload.story.tsx +1 -52
- package/src/upload/Upload.tests.story.tsx +93 -0
- package/src/upload/Upload.tsx +28 -49
- package/src/upload/steps/processingStep/processingStep.tsx +2 -7
- package/src/upload/steps/uploadImageStep/uploadImageStep.spec.tsx +15 -0
- package/src/upload/steps/uploadImageStep/uploadImageStep.tsx +8 -0
- package/src/uploadInput/UploadInput.tsx +81 -8
- package/src/uploadInput/uploadItem/UploadItem.css +2 -1
- package/src/uploadInput/uploadItem/UploadItem.less +1 -1
- package/src/uploadInput/uploadItem/UploadItem.tsx +11 -6
- package/src/withDisplayFormat/WithDisplayFormat.spec.js +123 -216
- package/src/withDisplayFormat/WithDisplayFormat.tsx +7 -8
- package/src/tabs/Tabs.spec.js +0 -423
- package/src/typeahead/Typeahead.rtl.spec.tsx +0 -54
- package/src/typeahead/Typeahead.spec.js +0 -404
- package/src/typeahead/typeaheadInput/TypeaheadInput.spec.js +0 -74
- package/src/typeahead/typeaheadOption/TypeaheadOption.spec.js +0 -75
- package/src/typeahead/util/highlight.spec.js +0 -34
- package/src/withDisplayFormat/WithDisplayFormat.state.spec.js +0 -42
|
@@ -262,11 +262,6 @@ class MoneyInput extends Component<MoneyInputPropsWithInputAttributes, MoneyInpu
|
|
|
262
262
|
this.props.onCurrencyChange?.(value);
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
-
handleCustomAction = () => {
|
|
266
|
-
this.handleSearchChange('');
|
|
267
|
-
this.props.onCustomAction?.();
|
|
268
|
-
};
|
|
269
|
-
|
|
270
265
|
handleSearchChange = (searchQuery: string) => {
|
|
271
266
|
this.setState({ searchQuery });
|
|
272
267
|
this.props.onSearchChange?.({
|
|
@@ -413,7 +408,7 @@ class MoneyInput extends Component<MoneyInputPropsWithInputAttributes, MoneyInpu
|
|
|
413
408
|
this.props.onCustomAction
|
|
414
409
|
? () => (
|
|
415
410
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
416
|
-
<div role="button" tabIndex={0} onClick={this.
|
|
411
|
+
<div role="button" tabIndex={0} onClick={this.props.onCustomAction}>
|
|
417
412
|
{this.props.customActionLabel}
|
|
418
413
|
</div>
|
|
419
414
|
)
|
|
@@ -421,7 +416,10 @@ class MoneyInput extends Component<MoneyInputPropsWithInputAttributes, MoneyInpu
|
|
|
421
416
|
}
|
|
422
417
|
placeholder={this.props.intl.formatMessage(messages.selectPlaceholder)}
|
|
423
418
|
filterable
|
|
424
|
-
filterPlaceholder={
|
|
419
|
+
filterPlaceholder={
|
|
420
|
+
this.props.searchPlaceholder ||
|
|
421
|
+
this.props.intl.formatMessage(messages.searchPlaceholder)
|
|
422
|
+
}
|
|
425
423
|
disabled={disabled}
|
|
426
424
|
size={size}
|
|
427
425
|
onChange={this.handleSelectChange}
|
|
@@ -5,4 +5,12 @@ export default defineMessages({
|
|
|
5
5
|
id: 'neptune.PhoneNumberInput.SelectInput.placeholder',
|
|
6
6
|
defaultMessage: 'Select an option...',
|
|
7
7
|
},
|
|
8
|
+
countryCodeLabel: {
|
|
9
|
+
id: 'neptune.PhoneNumberInput.countryCodeLabel',
|
|
10
|
+
defaultMessage: 'Country code',
|
|
11
|
+
},
|
|
12
|
+
phoneNumberLabel: {
|
|
13
|
+
id: 'neptune.PhoneNumberInput.phoneNumberLabel',
|
|
14
|
+
defaultMessage: 'Phone number',
|
|
15
|
+
},
|
|
8
16
|
});
|
|
@@ -21,28 +21,30 @@ describe('PhoneNumberInput', () => {
|
|
|
21
21
|
const customRender = (overrides: Partial<PhoneNumberInputProps> = {}, locale?: string) =>
|
|
22
22
|
render(<PhoneNumberInput {...props} {...overrides} />, { locale });
|
|
23
23
|
|
|
24
|
-
const
|
|
25
|
-
const
|
|
24
|
+
const getCountryCodeSelect = () => screen.getByRole('combobox');
|
|
25
|
+
const getCountryCodeLabel = () => screen.getByText('Country code');
|
|
26
|
+
const getPhoneNumberInput = () => screen.getByRole('textbox');
|
|
27
|
+
const getPhoneNumberLabel = () => screen.getByText('Phone number');
|
|
26
28
|
|
|
27
29
|
describe('defaults', () => {
|
|
28
30
|
it('should set prefix control to default UK value', () => {
|
|
29
31
|
customRender();
|
|
30
|
-
expect(
|
|
32
|
+
expect(getCountryCodeSelect()).toHaveTextContent('+44');
|
|
31
33
|
});
|
|
32
34
|
|
|
33
35
|
it('should set number control to empty', () => {
|
|
34
36
|
customRender();
|
|
35
|
-
expect(
|
|
37
|
+
expect(getPhoneNumberInput()).toHaveValue('');
|
|
36
38
|
});
|
|
37
39
|
|
|
38
40
|
it('should not disable the select', () => {
|
|
39
41
|
customRender();
|
|
40
|
-
expect(
|
|
42
|
+
expect(getCountryCodeSelect()).toBeEnabled();
|
|
41
43
|
});
|
|
42
44
|
|
|
43
45
|
it('should not disable the input', () => {
|
|
44
46
|
customRender();
|
|
45
|
-
expect(
|
|
47
|
+
expect(getPhoneNumberInput()).toBeEnabled();
|
|
46
48
|
});
|
|
47
49
|
});
|
|
48
50
|
|
|
@@ -50,22 +52,54 @@ describe('PhoneNumberInput', () => {
|
|
|
50
52
|
const prefix = '+39';
|
|
51
53
|
const number = '123456789';
|
|
52
54
|
customRender({ initialValue: `${prefix}${number}` });
|
|
53
|
-
expect(
|
|
54
|
-
expect(
|
|
55
|
+
expect(getCountryCodeSelect()).toHaveTextContent(prefix);
|
|
56
|
+
expect(getPhoneNumberInput()).toHaveValue(number);
|
|
55
57
|
});
|
|
56
58
|
|
|
57
59
|
describe('id prop', () => {
|
|
58
|
-
it('should
|
|
60
|
+
it('should render sensible default IDs', () => {
|
|
59
61
|
customRender();
|
|
60
|
-
|
|
61
|
-
expect(
|
|
62
|
+
const countryCodeSelectID = getCountryCodeSelect().getAttribute('id');
|
|
63
|
+
expect(countryCodeSelectID).toMatch(/^country-code-select-[a-z0-9]{6}$/);
|
|
64
|
+
const countryCodeLabelID = getCountryCodeLabel().getAttribute('id');
|
|
65
|
+
expect(countryCodeLabelID).toMatch(/^country-code-label-[a-z0-9]{6}$/);
|
|
66
|
+
const phoneNumberInputID = getPhoneNumberInput().getAttribute('id');
|
|
67
|
+
expect(phoneNumberInputID).toMatch(/^phone-number-input-[a-z0-9]{6}$/);
|
|
68
|
+
const phoneNumberLabelID = getPhoneNumberLabel().getAttribute('id');
|
|
69
|
+
expect(phoneNumberLabelID).toMatch(/^phone-number-label-[a-z0-9]{6}$/);
|
|
62
70
|
});
|
|
63
71
|
|
|
64
|
-
it('should
|
|
72
|
+
it('should use the custom `id` as-is for the input but with slight modification for select', () => {
|
|
65
73
|
const id = 'component-id';
|
|
66
74
|
customRender({ id });
|
|
67
|
-
expect(
|
|
68
|
-
expect(
|
|
75
|
+
expect(getPhoneNumberInput()).toHaveAttribute('id', id);
|
|
76
|
+
expect(getPhoneNumberLabel()).toHaveAttribute('id', `${id}-phone-number-label`);
|
|
77
|
+
expect(getCountryCodeSelect()).toHaveAttribute('id', `${id}-country-code-select`);
|
|
78
|
+
expect(getCountryCodeLabel()).toHaveAttribute('id', `${id}-country-code-label`);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('should set correct ARIA attributes on the country code select when id is provided', () => {
|
|
82
|
+
const id = 'my-id';
|
|
83
|
+
customRender({ id });
|
|
84
|
+
expect(getCountryCodeSelect()).toHaveAttribute('aria-labelledby', `${id}-country-code-label`);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it('should set correct ARIA attributes on the country code select when id is not provided', () => {
|
|
88
|
+
customRender();
|
|
89
|
+
const selectLabelledBy = getCountryCodeSelect().getAttribute('aria-labelledby');
|
|
90
|
+
expect(selectLabelledBy).toMatch(/^country-code-label-[a-z0-9]{6}$/);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it('should set correct ARIA attributes on the phone number input when id is provided', () => {
|
|
94
|
+
const id = 'my-id';
|
|
95
|
+
customRender({ id });
|
|
96
|
+
expect(getPhoneNumberInput()).toHaveAttribute('aria-labelledby', `${id}-phone-number-label`);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
it('should set correct ARIA attributes on the phone number input when id is not provided', () => {
|
|
100
|
+
customRender();
|
|
101
|
+
const inputLabelledBy = getPhoneNumberInput().getAttribute('aria-labelledby');
|
|
102
|
+
expect(inputLabelledBy).toMatch(/^phone-number-label-[a-z0-9]{6}$/);
|
|
69
103
|
});
|
|
70
104
|
});
|
|
71
105
|
|
|
@@ -94,38 +128,38 @@ describe('PhoneNumberInput', () => {
|
|
|
94
128
|
it(`'${number}' number should update the value properly`, async () => {
|
|
95
129
|
await renderAndPaste(number);
|
|
96
130
|
|
|
97
|
-
expect(
|
|
98
|
-
expect(
|
|
131
|
+
expect(getCountryCodeSelect()).toHaveTextContent(countryCode);
|
|
132
|
+
expect(getPhoneNumberInput()).toHaveValue(localNumber);
|
|
99
133
|
expect(props.onChange).toHaveBeenCalledWith(number.replace(/[\s-]+/g, ''), countryCode);
|
|
100
134
|
});
|
|
101
135
|
});
|
|
102
136
|
|
|
103
137
|
it('should not paste invalid characters', async () => {
|
|
104
138
|
await renderAndPaste('+36asdasdasd');
|
|
105
|
-
expect(
|
|
106
|
-
expect(
|
|
139
|
+
expect(getCountryCodeSelect()).toHaveTextContent(initialPrefix);
|
|
140
|
+
expect(getPhoneNumberInput()).toHaveValue(initialNumber);
|
|
107
141
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
108
142
|
});
|
|
109
143
|
|
|
110
144
|
it('should not paste countries which are not in the select', async () => {
|
|
111
145
|
await renderAndPaste('+9992342343423');
|
|
112
|
-
expect(
|
|
113
|
-
expect(
|
|
146
|
+
expect(getCountryCodeSelect()).toHaveTextContent(initialPrefix);
|
|
147
|
+
expect(getPhoneNumberInput()).toHaveValue(initialNumber);
|
|
114
148
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
115
149
|
});
|
|
116
150
|
|
|
117
151
|
it("should not paste numbers which doesn't start with the country code", async () => {
|
|
118
152
|
await renderAndPaste('0+36303932551');
|
|
119
|
-
expect(
|
|
120
|
-
expect(
|
|
153
|
+
expect(getCountryCodeSelect()).toHaveTextContent(initialPrefix);
|
|
154
|
+
expect(getPhoneNumberInput()).toHaveValue(initialNumber);
|
|
121
155
|
expect(props.onChange).not.toHaveBeenCalled();
|
|
122
156
|
});
|
|
123
157
|
|
|
124
158
|
it("should allow pasting numbers which don't contain a country code", async () => {
|
|
125
159
|
const newNumber = '06303932551';
|
|
126
160
|
await renderAndPaste(newNumber);
|
|
127
|
-
expect(
|
|
128
|
-
expect(
|
|
161
|
+
expect(getCountryCodeSelect()).toHaveTextContent(initialPrefix);
|
|
162
|
+
expect(getPhoneNumberInput()).toHaveValue(newNumber);
|
|
129
163
|
expect(props.onChange).toHaveBeenCalledWith(`${initialPrefix}${newNumber}`, initialPrefix);
|
|
130
164
|
});
|
|
131
165
|
});
|
|
@@ -136,12 +170,12 @@ describe('PhoneNumberInput', () => {
|
|
|
136
170
|
|
|
137
171
|
it('should set the select to the longest matching prefix', () => {
|
|
138
172
|
customRender(initialProps);
|
|
139
|
-
expect(
|
|
173
|
+
expect(getCountryCodeSelect()).toHaveTextContent('+1868');
|
|
140
174
|
});
|
|
141
175
|
|
|
142
176
|
it('should set the number input to the rest of the number', () => {
|
|
143
177
|
customRender(initialProps);
|
|
144
|
-
expect(
|
|
178
|
+
expect(getPhoneNumberInput()).toHaveValue('123456789');
|
|
145
179
|
});
|
|
146
180
|
});
|
|
147
181
|
|
|
@@ -150,20 +184,20 @@ describe('PhoneNumberInput', () => {
|
|
|
150
184
|
|
|
151
185
|
it('should empty the select', () => {
|
|
152
186
|
customRender(initialProps);
|
|
153
|
-
expect(
|
|
187
|
+
expect(getCountryCodeSelect()).toHaveTextContent('Select an option...');
|
|
154
188
|
});
|
|
155
189
|
|
|
156
190
|
it('should put the whole value in the input without the plus', () => {
|
|
157
191
|
customRender(initialProps);
|
|
158
|
-
expect(
|
|
192
|
+
expect(getPhoneNumberInput()).toHaveValue('999123456789');
|
|
159
193
|
});
|
|
160
194
|
});
|
|
161
195
|
|
|
162
196
|
describe('when an partial model is supplied (with a matching prefix)', () => {
|
|
163
197
|
it('should set the select to the matching prefix and put the rest of the number in the suffix', () => {
|
|
164
198
|
customRender({ initialValue: '+123' });
|
|
165
|
-
expect(
|
|
166
|
-
expect(
|
|
199
|
+
expect(getCountryCodeSelect()).toHaveTextContent('+1');
|
|
200
|
+
expect(getPhoneNumberInput()).toHaveValue('23');
|
|
167
201
|
});
|
|
168
202
|
});
|
|
169
203
|
});
|
|
@@ -171,8 +205,8 @@ describe('PhoneNumberInput', () => {
|
|
|
171
205
|
describe('when disabled is true', () => {
|
|
172
206
|
it('should disable both controls', () => {
|
|
173
207
|
customRender({ disabled: true });
|
|
174
|
-
expect(
|
|
175
|
-
expect(
|
|
208
|
+
expect(getCountryCodeSelect()).toBeDisabled();
|
|
209
|
+
expect(getPhoneNumberInput()).toBeDisabled();
|
|
176
210
|
});
|
|
177
211
|
});
|
|
178
212
|
|
|
@@ -180,13 +214,13 @@ describe('PhoneNumberInput', () => {
|
|
|
180
214
|
it('should use the provided placeholder', () => {
|
|
181
215
|
const placeholder = 'custom placeholder';
|
|
182
216
|
customRender({ placeholder });
|
|
183
|
-
expect(
|
|
217
|
+
expect(getPhoneNumberInput()).toHaveAttribute('placeholder', placeholder);
|
|
184
218
|
});
|
|
185
219
|
|
|
186
220
|
it('should use the provided searchPlaceholder', async () => {
|
|
187
221
|
const searchPlaceholder = 'search placeholder';
|
|
188
222
|
customRender({ searchPlaceholder });
|
|
189
|
-
await userEvent.click(
|
|
223
|
+
await userEvent.click(getCountryCodeSelect());
|
|
190
224
|
expect(screen.getByRole('combobox', { name: searchPlaceholder })).toBeInTheDocument();
|
|
191
225
|
});
|
|
192
226
|
});
|
|
@@ -195,7 +229,7 @@ describe('PhoneNumberInput', () => {
|
|
|
195
229
|
describe('and a value', () => {
|
|
196
230
|
it('should use the prefix of the supplied value', () => {
|
|
197
231
|
customRender({ initialValue: '+12345678' }, 'es');
|
|
198
|
-
expect(
|
|
232
|
+
expect(getCountryCodeSelect()).toHaveTextContent('+1');
|
|
199
233
|
});
|
|
200
234
|
});
|
|
201
235
|
|
|
@@ -203,14 +237,14 @@ describe('PhoneNumberInput', () => {
|
|
|
203
237
|
describe('and no country code', () => {
|
|
204
238
|
it('should default the prefix to the local country', () => {
|
|
205
239
|
customRender(undefined, 'es');
|
|
206
|
-
expect(
|
|
240
|
+
expect(getCountryCodeSelect()).toHaveTextContent('+34');
|
|
207
241
|
});
|
|
208
242
|
});
|
|
209
243
|
|
|
210
244
|
describe('and country code', () => {
|
|
211
245
|
it('should override locale prefix with country specific prefix', () => {
|
|
212
246
|
customRender({ countryCode: 'US' }, 'es');
|
|
213
|
-
expect(
|
|
247
|
+
expect(getCountryCodeSelect()).toHaveTextContent('+1');
|
|
214
248
|
});
|
|
215
249
|
});
|
|
216
250
|
});
|
|
@@ -220,7 +254,7 @@ describe('PhoneNumberInput', () => {
|
|
|
220
254
|
describe('valid number', () => {
|
|
221
255
|
it('should trigger onChange handler', async () => {
|
|
222
256
|
customRender();
|
|
223
|
-
await userEvent.type(
|
|
257
|
+
await userEvent.type(getPhoneNumberInput(), '123');
|
|
224
258
|
expect(props.onChange).toHaveBeenCalledWith('+44123', '+44');
|
|
225
259
|
});
|
|
226
260
|
});
|
|
@@ -228,7 +262,7 @@ describe('PhoneNumberInput', () => {
|
|
|
228
262
|
describe('invalid number', () => {
|
|
229
263
|
it('should trigger onChange with null value', async () => {
|
|
230
264
|
customRender({ initialValue: '+1234' });
|
|
231
|
-
await userEvent.type(
|
|
265
|
+
await userEvent.type(getPhoneNumberInput(), '{Backspace}{Backspace}{Backspace}1');
|
|
232
266
|
expect(props.onChange).toHaveBeenCalledWith(null, '+1');
|
|
233
267
|
});
|
|
234
268
|
});
|
|
@@ -236,7 +270,7 @@ describe('PhoneNumberInput', () => {
|
|
|
236
270
|
describe('when user insert invalid character', () => {
|
|
237
271
|
it('should strip them', async () => {
|
|
238
272
|
customRender({ initialValue: '+12345678' });
|
|
239
|
-
await userEvent.type(
|
|
273
|
+
await userEvent.type(getPhoneNumberInput(), '123--');
|
|
240
274
|
expect(props.onChange).toHaveBeenCalledWith('+12345678123', '+1');
|
|
241
275
|
});
|
|
242
276
|
});
|
|
@@ -244,8 +278,8 @@ describe('PhoneNumberInput', () => {
|
|
|
244
278
|
describe('overlapping prefix and suffix numbers', () => {
|
|
245
279
|
it("shouldn't change the prefix number on matching suffix input", async () => {
|
|
246
280
|
customRender({ countryCode: 'eg' });
|
|
247
|
-
await userEvent.type(
|
|
248
|
-
expect(
|
|
281
|
+
await userEvent.type(getPhoneNumberInput(), '1111111');
|
|
282
|
+
expect(getPhoneNumberInput()).toHaveValue('1111111');
|
|
249
283
|
expect(props.onChange).toHaveBeenCalledWith('+201111111', '+20');
|
|
250
284
|
});
|
|
251
285
|
});
|
|
@@ -254,7 +288,7 @@ describe('PhoneNumberInput', () => {
|
|
|
254
288
|
describe('when selectProps is supplied', () => {
|
|
255
289
|
it('renders Select component with expected props', () => {
|
|
256
290
|
customRender({ selectProps: { className: 'custom-class' } });
|
|
257
|
-
expect(
|
|
291
|
+
expect(getCountryCodeSelect().parentElement).toHaveClass('custom-class');
|
|
258
292
|
});
|
|
259
293
|
});
|
|
260
294
|
|
|
@@ -4,7 +4,6 @@ import { useIntl } from 'react-intl';
|
|
|
4
4
|
import { Size, SizeLarge, SizeMedium, SizeSmall } from '../common';
|
|
5
5
|
import { useInputAttributes } from '../inputs/contexts';
|
|
6
6
|
import { SelectInput, SelectInputOptionContent, SelectInputProps } from '../inputs/SelectInput';
|
|
7
|
-
|
|
8
7
|
import messages from './PhoneNumberInput.messages';
|
|
9
8
|
import countries from './data/countries';
|
|
10
9
|
import {
|
|
@@ -18,6 +17,7 @@ import {
|
|
|
18
17
|
findCountryByPrefix,
|
|
19
18
|
} from './utils';
|
|
20
19
|
import { PhoneNumber } from './utils/explodeNumberModel';
|
|
20
|
+
import { Input } from '../inputs/Input';
|
|
21
21
|
|
|
22
22
|
const ALLOWED_PHONE_CHARS = /^$|^[\d-\s]+$/;
|
|
23
23
|
|
|
@@ -63,6 +63,25 @@ const PhoneNumberInput = ({
|
|
|
63
63
|
|
|
64
64
|
const { locale, formatMessage } = useIntl();
|
|
65
65
|
|
|
66
|
+
const createId = (customID: string | undefined, backup: string): string => {
|
|
67
|
+
if (customID) {
|
|
68
|
+
return customID + (backup ? `-${backup}` : '');
|
|
69
|
+
}
|
|
70
|
+
const random = Math.random().toString(36).slice(2, 8);
|
|
71
|
+
return `${backup}-${random}`;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const ids = {
|
|
75
|
+
countryCode: {
|
|
76
|
+
label: createId(id, 'country-code-label'),
|
|
77
|
+
select: createId(id, 'country-code-select'),
|
|
78
|
+
},
|
|
79
|
+
phoneNumber: {
|
|
80
|
+
label: createId(id, 'phone-number-label'),
|
|
81
|
+
input: createId(id, id ? '' : 'phone-number-input'),
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
|
|
66
85
|
const [internalValue, setInternalValue] = useState<PhoneNumber>(() => {
|
|
67
86
|
const cleanValue = initialValue ? cleanNumber(initialValue) : null;
|
|
68
87
|
|
|
@@ -150,6 +169,9 @@ const PhoneNumberInput = ({
|
|
|
150
169
|
aria-labelledby={ariaLabelledBy}
|
|
151
170
|
className="tw-telephone"
|
|
152
171
|
>
|
|
172
|
+
<label className="sr-only" id={ids.countryCode.label}>
|
|
173
|
+
{formatMessage(messages.countryCodeLabel)}
|
|
174
|
+
</label>
|
|
153
175
|
<div className="tw-telephone__country-select">
|
|
154
176
|
<SelectInput
|
|
155
177
|
placeholder={formatMessage(messages.selectInputPlaceholder)}
|
|
@@ -180,6 +202,13 @@ const PhoneNumberInput = ({
|
|
|
180
202
|
filterPlaceholder={searchPlaceholder}
|
|
181
203
|
disabled={disabled}
|
|
182
204
|
size={size}
|
|
205
|
+
id={ids.countryCode.select}
|
|
206
|
+
UNSAFE_triggerButtonProps={{
|
|
207
|
+
id: ids.countryCode.select,
|
|
208
|
+
'aria-labelledby': ids.countryCode.label,
|
|
209
|
+
'aria-describedby': undefined,
|
|
210
|
+
'aria-invalid': undefined,
|
|
211
|
+
}}
|
|
183
212
|
onChange={(prefix) => {
|
|
184
213
|
const country = prefix != null ? findCountryByPrefix(prefix) : null;
|
|
185
214
|
setInternalValue((prev) => ({ ...prev, prefix, format: country?.phoneFormat }));
|
|
@@ -192,18 +221,21 @@ const PhoneNumberInput = ({
|
|
|
192
221
|
{...selectProps}
|
|
193
222
|
/>
|
|
194
223
|
</div>
|
|
224
|
+
<label className="sr-only" id={ids.phoneNumber.label} htmlFor={ids.phoneNumber.input}>
|
|
225
|
+
{formatMessage(messages.phoneNumberLabel)}
|
|
226
|
+
</label>
|
|
195
227
|
<div className="tw-telephone__number-input">
|
|
196
228
|
<div className={`input-group input-group-${size}`}>
|
|
197
|
-
<
|
|
198
|
-
id={
|
|
229
|
+
<Input
|
|
230
|
+
id={ids.phoneNumber.input}
|
|
199
231
|
autoComplete="tel-national"
|
|
200
232
|
name="phoneNumber"
|
|
201
233
|
inputMode="numeric"
|
|
202
234
|
value={internalValue.suffix}
|
|
203
|
-
className="form-control"
|
|
204
235
|
disabled={disabled}
|
|
205
236
|
required={required}
|
|
206
237
|
placeholder={placeholder}
|
|
238
|
+
aria-labelledby={ids.phoneNumber.label}
|
|
207
239
|
onChange={onSuffixChange}
|
|
208
240
|
onPaste={onPaste}
|
|
209
241
|
onFocus={onFocus}
|
|
@@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { fn } from '@storybook/test';
|
|
3
3
|
import PrimitiveAnchor from '..';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const meta: Meta<typeof PrimitiveAnchor> = {
|
|
6
6
|
component: PrimitiveAnchor,
|
|
7
7
|
title: 'Primitives/Anchor',
|
|
8
8
|
args: {
|
|
@@ -16,7 +16,8 @@ export default {
|
|
|
16
16
|
onMouseLeave: fn(),
|
|
17
17
|
},
|
|
18
18
|
tags: ['autodocs'],
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
20
21
|
|
|
21
22
|
type Story = StoryObj<typeof PrimitiveAnchor>;
|
|
22
23
|
|
|
@@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { fn } from '@storybook/test';
|
|
3
3
|
import PrimitiveButton from '..';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const meta: Meta<typeof PrimitiveButton> = {
|
|
6
6
|
component: PrimitiveButton,
|
|
7
7
|
title: 'Primitives/Button',
|
|
8
8
|
args: {
|
|
@@ -15,7 +15,8 @@ export default {
|
|
|
15
15
|
onMouseLeave: fn(),
|
|
16
16
|
},
|
|
17
17
|
tags: ['autodocs'],
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
19
20
|
|
|
20
21
|
type Story = StoryObj<typeof PrimitiveButton>;
|
|
21
22
|
|
|
@@ -33,6 +33,7 @@ exports[`PromoCardGroup matches snapshot 1`] = `
|
|
|
33
33
|
<img
|
|
34
34
|
alt=""
|
|
35
35
|
class="tw-image tw-image__stretch tw-image__shrink"
|
|
36
|
+
loading="lazy"
|
|
36
37
|
src="https://via.placeholder.com/150"
|
|
37
38
|
/>
|
|
38
39
|
</div>
|
|
@@ -67,6 +68,7 @@ exports[`PromoCardGroup matches snapshot 1`] = `
|
|
|
67
68
|
<img
|
|
68
69
|
alt=""
|
|
69
70
|
class="tw-image tw-image__stretch tw-image__shrink"
|
|
71
|
+
loading="lazy"
|
|
70
72
|
src="https://via.placeholder.com/150"
|
|
71
73
|
/>
|
|
72
74
|
</div>
|
|
@@ -14,7 +14,7 @@ const meta = {
|
|
|
14
14
|
export default meta;
|
|
15
15
|
type Story<T extends string | number = string> = StoryObj<RadioGroupProps<T>>;
|
|
16
16
|
|
|
17
|
-
export const Basic = {
|
|
17
|
+
export const Basic: Story = {
|
|
18
18
|
args: {
|
|
19
19
|
selectedValue: 'radio-2',
|
|
20
20
|
name: 'radio-group',
|
|
@@ -45,7 +45,7 @@ export const WithAvatars = {
|
|
|
45
45
|
...Basic,
|
|
46
46
|
args: {
|
|
47
47
|
...Basic.args,
|
|
48
|
-
radios: Basic
|
|
48
|
+
radios: Basic?.args?.radios?.map(
|
|
49
49
|
(radio) =>
|
|
50
50
|
({
|
|
51
51
|
...radio,
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Globals } from '@react-spring/web';
|
|
2
|
+
import { render, screen, userEvent } from '../test-utils';
|
|
3
|
+
import Tabs, { TabsProps } from './Tabs';
|
|
4
|
+
|
|
5
|
+
const user = userEvent.setup({ advanceTimers: jest.advanceTimersByTimeAsync });
|
|
6
|
+
|
|
7
|
+
if (typeof performance === 'undefined') {
|
|
8
|
+
global.performance = { now: () => Date.now() } as Performance;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const defaultTabsStatus = [false, true, false];
|
|
12
|
+
|
|
13
|
+
function generateTabs(tabsStatus = defaultTabsStatus) {
|
|
14
|
+
return tabsStatus.map((disabled, index) => ({
|
|
15
|
+
disabled,
|
|
16
|
+
title: `Title ${index}`,
|
|
17
|
+
content: <p data-testid={`content-${index}`}>Content {index}</p>,
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
beforeAll(() => {
|
|
22
|
+
Globals.assign({
|
|
23
|
+
skipAnimation: true,
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
describe('Tabs', () => {
|
|
28
|
+
const initialProps: TabsProps = {
|
|
29
|
+
animatePanelsOnClick: true,
|
|
30
|
+
tabs: generateTabs(),
|
|
31
|
+
changeTabOnSwipe: true,
|
|
32
|
+
name: 'testName',
|
|
33
|
+
headerWidth: 'block',
|
|
34
|
+
selected: 0,
|
|
35
|
+
transitionSpacing: 'default',
|
|
36
|
+
onTabSelect: jest.fn(),
|
|
37
|
+
className: 'custom-class-name',
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
beforeEach(() => {
|
|
41
|
+
jest.clearAllMocks();
|
|
42
|
+
jest.useFakeTimers();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
afterEach(async () => {
|
|
46
|
+
jest.runOnlyPendingTimers();
|
|
47
|
+
jest.useRealTimers();
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it('should render a tablist', () => {
|
|
51
|
+
render(<Tabs {...initialProps} />);
|
|
52
|
+
expect(screen.getByRole('tablist')).toBeInTheDocument();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('should respect className', () => {
|
|
56
|
+
render(<Tabs {...initialProps} />);
|
|
57
|
+
expect(screen.getByRole('tablist').parentNode).toHaveClass(String(initialProps.className));
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('should respect `name` prop', () => {
|
|
61
|
+
render(<Tabs {...initialProps} />);
|
|
62
|
+
const controlsTarget = screen
|
|
63
|
+
.getByRole('tab', { selected: true })
|
|
64
|
+
.getAttribute('aria-controls');
|
|
65
|
+
expect(screen.getByRole('tabpanel')).toHaveAttribute('id', controlsTarget);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
describe('transitionSpacing', () => {
|
|
69
|
+
test.each([
|
|
70
|
+
['default', '100%'],
|
|
71
|
+
['xs', '8px'],
|
|
72
|
+
['sm', '16px'],
|
|
73
|
+
['md', '24px'],
|
|
74
|
+
['lg', '32px'],
|
|
75
|
+
] as const)('should respect `%s`', (input, width) => {
|
|
76
|
+
render(<Tabs {...initialProps} transitionSpacing={input} />);
|
|
77
|
+
expect(screen.getByRole('tabpanel').nextSibling).toHaveStyle({ width });
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it('should render correct number of tabs', () => {
|
|
82
|
+
render(<Tabs {...initialProps} />);
|
|
83
|
+
expect(screen.getAllByRole('tab')).toHaveLength(defaultTabsStatus.length);
|
|
84
|
+
initialProps.tabs.forEach(({ title }) => {
|
|
85
|
+
expect(screen.getByText(title)).toBeInTheDocument();
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('should show first tab content by default', () => {
|
|
90
|
+
render(<Tabs {...initialProps} />);
|
|
91
|
+
expect(screen.getAllByRole('tabpanel')).toHaveLength(1);
|
|
92
|
+
expect(screen.getByTestId('content-0')).toBeInTheDocument();
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
describe('tab switch', () => {
|
|
96
|
+
it('should call onTabSelecton on click', async () => {
|
|
97
|
+
render(<Tabs {...initialProps} />);
|
|
98
|
+
const thirdTab = screen.getAllByRole('tab')[2];
|
|
99
|
+
await user.click(thirdTab);
|
|
100
|
+
|
|
101
|
+
// It's called on mount first, that's why the count is at 2
|
|
102
|
+
expect(initialProps.onTabSelect).toHaveBeenCalledTimes(2);
|
|
103
|
+
expect(initialProps.onTabSelect).toHaveBeenCalledWith(2);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it('should call onTabSelecton when navigating with keyboard', async () => {
|
|
107
|
+
render(<Tabs {...initialProps} />);
|
|
108
|
+
await user.keyboard('{Tab}{Tab}{Tab}{Enter}');
|
|
109
|
+
|
|
110
|
+
// It's called on mount first, that's why the count is at 2
|
|
111
|
+
expect(initialProps.onTabSelect).toHaveBeenCalledTimes(2);
|
|
112
|
+
expect(initialProps.onTabSelect).toHaveBeenCalledWith(2);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it('should call onTabSelecton on swipe', async () => {
|
|
116
|
+
render(<Tabs {...initialProps} />);
|
|
117
|
+
await user.keyboard('{Tab}{Tab}{Tab}{Enter}');
|
|
118
|
+
|
|
119
|
+
// It's called on mount first, that's why the count is at 2
|
|
120
|
+
expect(initialProps.onTabSelect).toHaveBeenCalledTimes(2);
|
|
121
|
+
expect(initialProps.onTabSelect).toHaveBeenCalledWith(2);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it('should highlight selected tab', async () => {
|
|
125
|
+
const { rerender } = render(<Tabs {...initialProps} />);
|
|
126
|
+
rerender(<Tabs {...initialProps} selected={2} />);
|
|
127
|
+
|
|
128
|
+
expect(screen.getByRole('tab', { selected: true })).toHaveTextContent('Title 2');
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('should switch content tab', async () => {
|
|
132
|
+
const { rerender } = render(<Tabs {...initialProps} />);
|
|
133
|
+
rerender(<Tabs {...initialProps} selected={2} />);
|
|
134
|
+
expect(screen.getByRole('tabpanel')).toHaveTextContent('Content 2');
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
});
|
package/src/tabs/Tabs.story.tsx
CHANGED
package/src/tabs/Tabs.tsx
CHANGED
|
@@ -403,7 +403,6 @@ export default class Tabs extends Component<TabsProps, TabsState> {
|
|
|
403
403
|
|
|
404
404
|
if (isSwiping) {
|
|
405
405
|
const nextSelected = this.getTabToSelect(currentSelectedFromProps, start, end);
|
|
406
|
-
|
|
407
406
|
this.animateLine(
|
|
408
407
|
this.swipedOverHalfOfContainer(difference) ? nextSelected : currentSelectedFromProps,
|
|
409
408
|
);
|