@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
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
import { mount } from 'enzyme';
|
|
2
|
-
import doTimes from 'lodash.times';
|
|
3
|
-
import { mockMatchMedia } from '../test-utils';
|
|
4
|
-
|
|
5
|
-
import { InlineAlert } from '..';
|
|
6
|
-
import { Sentiment } from '../common';
|
|
7
|
-
import { fakeEvent, fakeKeyDownEventForKey } from '../common/fakeEvents';
|
|
8
|
-
|
|
9
|
-
import Typeahead from './Typeahead';
|
|
10
|
-
|
|
11
|
-
mockMatchMedia();
|
|
12
|
-
|
|
13
|
-
const defaultLocale = 'en-GB';
|
|
14
|
-
jest.mock('react-intl', () => {
|
|
15
|
-
const mockedIntl = {
|
|
16
|
-
locale: defaultLocale,
|
|
17
|
-
formatMessage: (id) => String(id),
|
|
18
|
-
};
|
|
19
|
-
return {
|
|
20
|
-
injectIntl: (Component) => (props) => <Component {...props} intl={mockedIntl} />,
|
|
21
|
-
defineMessages: (translations) => translations,
|
|
22
|
-
useIntl: () => mockedIntl,
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
describe('Typeahead', () => {
|
|
27
|
-
let component;
|
|
28
|
-
let props;
|
|
29
|
-
const closeButton = () => component.find('.input-group-addon button');
|
|
30
|
-
const formGroup = () => component.find('.form-group');
|
|
31
|
-
const input = () => component.find('input');
|
|
32
|
-
const chip = () => component.find('.np-chip');
|
|
33
|
-
const option = () => component.find('.dropdown-item');
|
|
34
|
-
const menu = () => component.find('.dropdown');
|
|
35
|
-
|
|
36
|
-
beforeEach(() => {
|
|
37
|
-
props = {
|
|
38
|
-
id: 'test',
|
|
39
|
-
onChange: () => {},
|
|
40
|
-
name: 'test',
|
|
41
|
-
options: [
|
|
42
|
-
{
|
|
43
|
-
label: 'Test',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
label: 'Test1',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: 'Test2',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: 'Test3',
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
component = mount(<Typeahead {...props} />);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it('renders addon', () => {
|
|
61
|
-
expect(component.find('#test-addon')).toHaveLength(0);
|
|
62
|
-
component.setProps({ addon: <div id="test-addon" /> });
|
|
63
|
-
expect(component.find('#test-addon')).toHaveLength(1);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
it('renders clear button', () => {
|
|
67
|
-
component.setProps({
|
|
68
|
-
clearable: true,
|
|
69
|
-
});
|
|
70
|
-
input().simulate('change', { target: { value: 'test' } });
|
|
71
|
-
|
|
72
|
-
expect(closeButton()).toHaveLength(1);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it('splits pasted value correctly', () => {
|
|
76
|
-
const chips = ['test', 'test2', 'test3'];
|
|
77
|
-
const event = {
|
|
78
|
-
preventDefault: jest.fn(),
|
|
79
|
-
clipboardData: {
|
|
80
|
-
getData: () => chips.join(', '),
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
component.setProps({
|
|
85
|
-
allowNew: true,
|
|
86
|
-
multiple: true,
|
|
87
|
-
chipSeparators: [',', ' '],
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
input().simulate('paste', event);
|
|
91
|
-
const renderedChips = chip().map((chipNode) => chipNode.text());
|
|
92
|
-
|
|
93
|
-
expect(renderedChips.every((label, idx) => chips[idx] === label)).toBe(true);
|
|
94
|
-
expect(renderedChips).toHaveLength(chips.length);
|
|
95
|
-
expect(event.preventDefault).toHaveBeenCalledTimes(1);
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
it('removes last selected value when backspace clicked on empty input', () => {
|
|
99
|
-
const event = {
|
|
100
|
-
key: 'Backspace',
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
component.setProps({
|
|
104
|
-
multiple: true,
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
expect(chip()).toHaveLength(0);
|
|
108
|
-
|
|
109
|
-
input().simulate('change', { target: { value: 'test' } });
|
|
110
|
-
option().at(0).simulate('click', fakeEvent());
|
|
111
|
-
|
|
112
|
-
expect(chip()).toHaveLength(1);
|
|
113
|
-
|
|
114
|
-
input().simulate('keyDown', event);
|
|
115
|
-
|
|
116
|
-
expect(chip()).toHaveLength(0);
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
it('does not remove last selected value when backspace clicked on non-empty input', () => {
|
|
120
|
-
const event = {
|
|
121
|
-
key: 'Backspace',
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
component.setProps({
|
|
125
|
-
multiple: true,
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
expect(chip()).toHaveLength(0);
|
|
129
|
-
|
|
130
|
-
input().simulate('change', { target: { value: 'test' } });
|
|
131
|
-
option().at(0).simulate('click', fakeEvent());
|
|
132
|
-
|
|
133
|
-
expect(chip()).toHaveLength(1);
|
|
134
|
-
|
|
135
|
-
input().simulate('change', { target: { value: 'test' } });
|
|
136
|
-
input().simulate('keyDown', event);
|
|
137
|
-
|
|
138
|
-
expect(chip()).toHaveLength(1);
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
it('adds new value as selected and clears the input when separator is entered', () => {
|
|
142
|
-
const event = {
|
|
143
|
-
key: ',',
|
|
144
|
-
preventDefault: jest.fn(),
|
|
145
|
-
};
|
|
146
|
-
const text = 'test';
|
|
147
|
-
|
|
148
|
-
component.setProps({
|
|
149
|
-
multiple: true,
|
|
150
|
-
allowNew: true,
|
|
151
|
-
showSuggestions: false,
|
|
152
|
-
chipSeparators: [','],
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
input().simulate('change', { target: { value: text } });
|
|
156
|
-
input().simulate('keyDown', event);
|
|
157
|
-
|
|
158
|
-
expect(chip().text()).toStrictEqual(text);
|
|
159
|
-
expect(event.preventDefault).toHaveBeenCalledTimes(1);
|
|
160
|
-
});
|
|
161
|
-
|
|
162
|
-
it('adds new value as selected and clears the input when Enter is pressed', () => {
|
|
163
|
-
const event = {
|
|
164
|
-
key: 'Enter',
|
|
165
|
-
preventDefault: jest.fn(),
|
|
166
|
-
};
|
|
167
|
-
const text = 'test';
|
|
168
|
-
|
|
169
|
-
component.setProps({
|
|
170
|
-
multiple: true,
|
|
171
|
-
allowNew: true,
|
|
172
|
-
showSuggestions: false,
|
|
173
|
-
chipSeparators: [','],
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
input().simulate('change', { target: { value: text } });
|
|
177
|
-
input().simulate('keyDown', event);
|
|
178
|
-
|
|
179
|
-
expect(chip().text()).toStrictEqual(text);
|
|
180
|
-
expect(event.preventDefault).toHaveBeenCalledTimes(1);
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
it('adds new value as selected and clears the input when Tab is pressed', () => {
|
|
184
|
-
const event = {
|
|
185
|
-
key: 'Tab',
|
|
186
|
-
preventDefault: jest.fn(),
|
|
187
|
-
};
|
|
188
|
-
const text = 'test';
|
|
189
|
-
|
|
190
|
-
component.setProps({
|
|
191
|
-
multiple: true,
|
|
192
|
-
allowNew: true,
|
|
193
|
-
showSuggestions: false,
|
|
194
|
-
chipSeparators: [','],
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
input().simulate('change', { target: { value: text } });
|
|
198
|
-
input().simulate('keyDown', event);
|
|
199
|
-
|
|
200
|
-
expect(chip().text()).toStrictEqual(text);
|
|
201
|
-
expect(event.preventDefault).toHaveBeenCalledTimes(1);
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
it('clears typeahead when clear button is clicked', () => {
|
|
205
|
-
const event = {
|
|
206
|
-
key: ',',
|
|
207
|
-
preventDefault: jest.fn(),
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
const query = 'test';
|
|
211
|
-
|
|
212
|
-
component.setProps({
|
|
213
|
-
multiple: true,
|
|
214
|
-
allowNew: true,
|
|
215
|
-
showSuggestions: false,
|
|
216
|
-
chipSeparators: [','],
|
|
217
|
-
clearable: true,
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
input().simulate('change', { target: { value: query } });
|
|
221
|
-
input().simulate('keyDown', event);
|
|
222
|
-
input().simulate('change', { target: { value: query } });
|
|
223
|
-
|
|
224
|
-
expect(chip()).toHaveLength(1);
|
|
225
|
-
expect(input().getDOMNode().value).toBe(query);
|
|
226
|
-
|
|
227
|
-
closeButton().simulate('click', fakeEvent());
|
|
228
|
-
expect(chip()).toHaveLength(0);
|
|
229
|
-
expect(input().getDOMNode().value).toBe('');
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
it('moves selected items when down and up keys pressed', () => {
|
|
233
|
-
doTimes(3, () => input().simulate('keyDown', fakeKeyDownEventForKey('ArrowDown')));
|
|
234
|
-
|
|
235
|
-
expect(option().at(2).parent().is('.tw-dropdown-item--focused')).toBe(true);
|
|
236
|
-
|
|
237
|
-
input().simulate('keyDown', fakeKeyDownEventForKey('ArrowUp'));
|
|
238
|
-
expect(option().at(1).parent().is('.tw-dropdown-item--focused')).toBe(true);
|
|
239
|
-
|
|
240
|
-
doTimes(5, () => input().simulate('keyDown', fakeKeyDownEventForKey('ArrowDown')));
|
|
241
|
-
expect(option().last().parent().is('.tw-dropdown-item--focused')).toBe(true);
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
it('adds new value as selected and clears the input when no option is highlighted and enter is pressed', () => {
|
|
245
|
-
const event = {
|
|
246
|
-
key: 'Enter',
|
|
247
|
-
preventDefault: jest.fn(),
|
|
248
|
-
};
|
|
249
|
-
const text = 'test';
|
|
250
|
-
|
|
251
|
-
component.setProps({
|
|
252
|
-
multiple: true,
|
|
253
|
-
allowNew: true,
|
|
254
|
-
chipSeparators: [','],
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
input().simulate('change', { target: { value: text } });
|
|
258
|
-
input().simulate('keyDown', event);
|
|
259
|
-
|
|
260
|
-
expect(chip().text()).toStrictEqual(text);
|
|
261
|
-
expect(event.preventDefault).toHaveBeenCalledTimes(1);
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
it('sets aria-activedescendant correctly based on focus', () => {
|
|
265
|
-
const inputElement = input().getDOMNode();
|
|
266
|
-
|
|
267
|
-
doTimes(3, () => input().simulate('keyDown', fakeKeyDownEventForKey('ArrowDown')));
|
|
268
|
-
|
|
269
|
-
expect(inputElement).toHaveAttribute('aria-activedescendant', 'menu-test option-Test2');
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
it('displays alert when alert is provided and chips are valid or alert type is error', () => {
|
|
273
|
-
const event = {
|
|
274
|
-
key: 'Enter',
|
|
275
|
-
preventDefault: jest.fn(),
|
|
276
|
-
};
|
|
277
|
-
const text = 'test';
|
|
278
|
-
|
|
279
|
-
expect(component.find(InlineAlert)).toHaveLength(0);
|
|
280
|
-
expect(formGroup().hasClass('has-error')).toBe(false);
|
|
281
|
-
component.setProps({
|
|
282
|
-
validateChip: () => {
|
|
283
|
-
return false;
|
|
284
|
-
},
|
|
285
|
-
allowNew: true,
|
|
286
|
-
alert: {
|
|
287
|
-
message: 'test',
|
|
288
|
-
type: Sentiment.ERROR,
|
|
289
|
-
},
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
expect(formGroup().hasClass('has-error')).toBe(true);
|
|
293
|
-
expect(component.find(InlineAlert)).toHaveLength(1);
|
|
294
|
-
|
|
295
|
-
input().simulate('change', { target: { value: text } });
|
|
296
|
-
input().simulate('keyDown', event);
|
|
297
|
-
|
|
298
|
-
expect(formGroup().hasClass('has-error')).toBe(true);
|
|
299
|
-
expect(component.find(InlineAlert)).toHaveLength(1);
|
|
300
|
-
component.setProps({
|
|
301
|
-
alert: {
|
|
302
|
-
message: 'test',
|
|
303
|
-
type: Sentiment.WARNING,
|
|
304
|
-
},
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
expect(formGroup().hasClass('has-error')).toBe(true);
|
|
308
|
-
expect(component.find(InlineAlert)).toHaveLength(0);
|
|
309
|
-
|
|
310
|
-
closeButton().simulate('click', fakeEvent());
|
|
311
|
-
|
|
312
|
-
expect(formGroup().hasClass('has-error')).toBe(false);
|
|
313
|
-
expect(formGroup().hasClass('has-warning')).toBe(true);
|
|
314
|
-
expect(component.find(InlineAlert)).toHaveLength(1);
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
it('allows supplying options with arbitrary data that will be included with the onChange callback', () => {
|
|
318
|
-
const text = 'test';
|
|
319
|
-
const options = [
|
|
320
|
-
{
|
|
321
|
-
label: 'label 1',
|
|
322
|
-
note: 'note-1',
|
|
323
|
-
secondary: 'secondary-1',
|
|
324
|
-
value: { id: 123, name: 'Neptune' },
|
|
325
|
-
},
|
|
326
|
-
];
|
|
327
|
-
let selectedOption;
|
|
328
|
-
|
|
329
|
-
component.setProps({
|
|
330
|
-
onChange: (selections) => {
|
|
331
|
-
selectedOption = selections[0];
|
|
332
|
-
},
|
|
333
|
-
options,
|
|
334
|
-
});
|
|
335
|
-
|
|
336
|
-
input().simulate('change', { target: { value: text } });
|
|
337
|
-
option().at(0).simulate('click', fakeEvent());
|
|
338
|
-
expect(selectedOption).toStrictEqual({
|
|
339
|
-
label: 'label 1',
|
|
340
|
-
note: 'note-1',
|
|
341
|
-
secondary: 'secondary-1',
|
|
342
|
-
value: { id: 123, name: 'Neptune' },
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
describe('menu', () => {
|
|
347
|
-
it('should render footer', () => {
|
|
348
|
-
component.setProps({
|
|
349
|
-
footer: <div id="footer">footer</div>,
|
|
350
|
-
});
|
|
351
|
-
|
|
352
|
-
expect(component.find('#footer')).toHaveLength(1);
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
it('renders all options', () => {
|
|
356
|
-
const options = option().map((optNode) => optNode.text());
|
|
357
|
-
expect(options).toHaveLength(props.options.length);
|
|
358
|
-
expect(options.every((label, i) => label === props.options[i].label)).toBe(true);
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
it('renders dropdown-menu if has options', () => {
|
|
362
|
-
expect(component.find('.dropdown-menu')).toHaveLength(1);
|
|
363
|
-
component.setProps({ options: [] });
|
|
364
|
-
expect(component.find('.dropdown-menu')).toHaveLength(0);
|
|
365
|
-
});
|
|
366
|
-
|
|
367
|
-
it('does not render new option if showNewEntry is false', () => {
|
|
368
|
-
component.setProps({
|
|
369
|
-
allowNew: true,
|
|
370
|
-
showNewEntry: false,
|
|
371
|
-
});
|
|
372
|
-
input().simulate('change', { target: { value: 'check' } });
|
|
373
|
-
|
|
374
|
-
const options = option().map((optNode) => optNode.text());
|
|
375
|
-
expect(options).toHaveLength(props.options.length);
|
|
376
|
-
});
|
|
377
|
-
|
|
378
|
-
it('renders new option if showNewEntry is true', () => {
|
|
379
|
-
component.setProps({
|
|
380
|
-
allowNew: true,
|
|
381
|
-
showNewEntry: true,
|
|
382
|
-
});
|
|
383
|
-
input().simulate('change', { target: { value: 'check' } });
|
|
384
|
-
|
|
385
|
-
const options = option().map((optNode) => optNode.text());
|
|
386
|
-
expect(options).toHaveLength(props.options.length + 1);
|
|
387
|
-
});
|
|
388
|
-
|
|
389
|
-
it('does not show options if query is too short', () => {
|
|
390
|
-
expect(menu().is('.open')).toBe(false);
|
|
391
|
-
input().simulate('change', { target: { value: 'test' } });
|
|
392
|
-
expect(menu().is('.open')).toBe(true);
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
it('sets aria-expanded to true when options are shown', () => {
|
|
396
|
-
expect(input().prop('aria-expanded')).toBe(false);
|
|
397
|
-
// we don't want aria-expanded to be true on focus or before 3 characters are entered (that's when the menu is shown)
|
|
398
|
-
input().simulate('change', { target: { value: 'aa' } });
|
|
399
|
-
expect(input().prop('aria-expanded')).toBe(false);
|
|
400
|
-
input().simulate('change', { target: { value: 'aaa' } });
|
|
401
|
-
expect(input().prop('aria-expanded')).toBe(true);
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
});
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { shallow } from 'enzyme';
|
|
2
|
-
|
|
3
|
-
import { Input } from '../../inputs/Input';
|
|
4
|
-
|
|
5
|
-
import TypeaheadInput from './TypeaheadInput';
|
|
6
|
-
|
|
7
|
-
describe('Typeahead input', () => {
|
|
8
|
-
let component;
|
|
9
|
-
let props;
|
|
10
|
-
|
|
11
|
-
const inputWrapper = () => component.find('.typeahead__input-wrapper');
|
|
12
|
-
const input = () => component.find(Input);
|
|
13
|
-
|
|
14
|
-
beforeEach(() => {
|
|
15
|
-
props = {
|
|
16
|
-
name: 'test',
|
|
17
|
-
typeaheadId: 'test',
|
|
18
|
-
multiple: false,
|
|
19
|
-
value: '',
|
|
20
|
-
renderChip: jest.fn(),
|
|
21
|
-
onKeyDown: jest.fn(),
|
|
22
|
-
onFocus: jest.fn(),
|
|
23
|
-
onPaste: jest.fn(),
|
|
24
|
-
onChange: jest.fn(),
|
|
25
|
-
autoComplete: 'off',
|
|
26
|
-
selected: [],
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
component = shallow(<TypeaheadInput {...props} />);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
it('renders single input when multiple is false', () => {
|
|
33
|
-
expect(component.children()).toHaveLength(0);
|
|
34
|
-
expect(component.is(Input)).toBe(true);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('renders chips when provided', () => {
|
|
38
|
-
const selected = [{ label: 'test1' }, { label: 'test2' }];
|
|
39
|
-
component.setProps({
|
|
40
|
-
multiple: true,
|
|
41
|
-
selected,
|
|
42
|
-
renderChip: jest.fn(({ label }, idx) => <span key={idx}>{label}</span>),
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
expect(inputWrapper().find('span')).toHaveLength(selected.length);
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it('adds aria-controls prop if dropdown is open', () => {
|
|
49
|
-
expect(component.prop('aria-controls')).toBeUndefined();
|
|
50
|
-
component.setProps({ dropdownOpen: true });
|
|
51
|
-
expect(component.prop('aria-controls')).toBe('menu-test');
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
it('passes all callbacks to input', () => {
|
|
55
|
-
const event = {};
|
|
56
|
-
const extraProps = {
|
|
57
|
-
multiple: true,
|
|
58
|
-
value: '',
|
|
59
|
-
onKeyDown: jest.fn(),
|
|
60
|
-
onBlur: jest.fn(),
|
|
61
|
-
onFocus: jest.fn(),
|
|
62
|
-
onPaste: jest.fn(),
|
|
63
|
-
};
|
|
64
|
-
component.setProps(extraProps);
|
|
65
|
-
|
|
66
|
-
input().simulate('focus', event);
|
|
67
|
-
input().simulate('paste', event);
|
|
68
|
-
input().simulate('keyDown', event);
|
|
69
|
-
const inputProps = input().props();
|
|
70
|
-
expect(inputProps.onKeyDown).toHaveBeenCalledWith(event);
|
|
71
|
-
expect(inputProps.onFocus).toHaveBeenCalledWith(event);
|
|
72
|
-
expect(inputProps.onPaste).toHaveBeenCalledWith(event);
|
|
73
|
-
});
|
|
74
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { shallow, mount } from 'enzyme';
|
|
2
|
-
|
|
3
|
-
import { fakeEvent } from '../../common/fakeEvents';
|
|
4
|
-
|
|
5
|
-
import TypeaheadOption from './TypeaheadOption';
|
|
6
|
-
import Highlight from '../util/highlight';
|
|
7
|
-
|
|
8
|
-
describe('Typeahead Option', () => {
|
|
9
|
-
let props;
|
|
10
|
-
let component;
|
|
11
|
-
|
|
12
|
-
const labelHighlight = () => component.find(Highlight);
|
|
13
|
-
const noteSpan = () => component.find('.np-text-body-default.m-l-1');
|
|
14
|
-
const secondaryTextHighlight = () => component.find('.np-text-body-default.text-ellipsis > span');
|
|
15
|
-
const dropdownItem = () => component.find('.dropdown-item');
|
|
16
|
-
|
|
17
|
-
beforeEach(() => {
|
|
18
|
-
props = {
|
|
19
|
-
option: {
|
|
20
|
-
label: 'test',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
component = mount(<TypeaheadOption {...props} />);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('renders a label', () => {
|
|
28
|
-
const label = 'test';
|
|
29
|
-
component.setProps({ option: { label } });
|
|
30
|
-
expect(labelHighlight().text()).toStrictEqual(label);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('renders a note', () => {
|
|
34
|
-
const label = 'test';
|
|
35
|
-
const note = 'test note';
|
|
36
|
-
component.setProps({ option: { label, note } });
|
|
37
|
-
expect(noteSpan().text()).toStrictEqual(note);
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
it('renders a seconday text', () => {
|
|
41
|
-
const label = 'test';
|
|
42
|
-
const secondary = 'test note';
|
|
43
|
-
component.setProps({ option: { label, secondary } });
|
|
44
|
-
expect(secondaryTextHighlight().text()).toStrictEqual(secondary);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('highlights when selected', () => {
|
|
48
|
-
component = shallow(<TypeaheadOption {...props} />);
|
|
49
|
-
component.setProps({
|
|
50
|
-
selected: true,
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
expect(component.is('.tw-dropdown-item--focused')).toBe(true);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('expect aria-selected to be true', () => {
|
|
57
|
-
component = shallow(<TypeaheadOption {...props} />);
|
|
58
|
-
component.setProps({
|
|
59
|
-
selected: true,
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
expect(component.prop('aria-selected')).toBe('true');
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
it('calls onClick when clicked', () => {
|
|
66
|
-
const onClick = jest.fn();
|
|
67
|
-
component.setProps({
|
|
68
|
-
onClick,
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
dropdownItem().simulate('click', fakeEvent);
|
|
72
|
-
|
|
73
|
-
expect(onClick).toHaveBeenCalledTimes(1);
|
|
74
|
-
});
|
|
75
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { mount } from 'enzyme';
|
|
2
|
-
|
|
3
|
-
import Highlight from './highlight';
|
|
4
|
-
|
|
5
|
-
describe('Typeahead input', () => {
|
|
6
|
-
const highlighted = (node) => node.find('strong');
|
|
7
|
-
const getTextFromNodes = (nodes) => nodes.reduce((value, node) => value + node.text(), '');
|
|
8
|
-
|
|
9
|
-
it('highlights part of label that matches the query', () => {
|
|
10
|
-
const query = 'test';
|
|
11
|
-
const label = `this is a ${query} label`;
|
|
12
|
-
const result = mount(<Highlight value={label} query={query} />);
|
|
13
|
-
|
|
14
|
-
expect(highlighted(result).text()).toStrictEqual(query);
|
|
15
|
-
|
|
16
|
-
expect(getTextFromNodes(result)).toBe(label);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('does not change text if query is not present in it', () => {
|
|
20
|
-
const query = 'test';
|
|
21
|
-
const label = `this is a label`;
|
|
22
|
-
const result = mount(<Highlight value={label} query={query} />);
|
|
23
|
-
|
|
24
|
-
expect(result.text()).toBe(label);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('highlights whole label that matches the query', () => {
|
|
28
|
-
const query = 'test';
|
|
29
|
-
const label = query;
|
|
30
|
-
const result = mount(<Highlight value={label} query={query} />);
|
|
31
|
-
|
|
32
|
-
expect(highlighted(result).text()).toStrictEqual(query);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import WithDisplayFormat from '.';
|
|
2
|
-
|
|
3
|
-
describe('WithDisplayFormat', () => {
|
|
4
|
-
it('should return null if props change to the same value', () => {
|
|
5
|
-
const nextProps = { displayPattern: '**-**' };
|
|
6
|
-
const previousState = {
|
|
7
|
-
value: '11/11',
|
|
8
|
-
prevDisplayPattern: '**-**',
|
|
9
|
-
historyNavigator: { reset: jest.fn() },
|
|
10
|
-
triggerEvent: null,
|
|
11
|
-
triggerType: null,
|
|
12
|
-
pastedLength: 0,
|
|
13
|
-
};
|
|
14
|
-
const expectedState = null;
|
|
15
|
-
|
|
16
|
-
expect(WithDisplayFormat.getDerivedStateFromProps(nextProps, previousState)).toStrictEqual(
|
|
17
|
-
expectedState,
|
|
18
|
-
);
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('should update displayPattern on props change', () => {
|
|
22
|
-
const nextProps = { displayPattern: '**-**' };
|
|
23
|
-
const previousState = {
|
|
24
|
-
value: '11/11',
|
|
25
|
-
prevDisplayPattern: '**/**',
|
|
26
|
-
historyNavigator: { reset: jest.fn() },
|
|
27
|
-
triggerEvent: null,
|
|
28
|
-
triggerType: null,
|
|
29
|
-
pastedLength: 0,
|
|
30
|
-
};
|
|
31
|
-
const expectedState = {
|
|
32
|
-
value: '11-11',
|
|
33
|
-
prevDisplayPattern: '**-**',
|
|
34
|
-
triggerEvent: null,
|
|
35
|
-
triggerType: null,
|
|
36
|
-
pastedLength: 0,
|
|
37
|
-
};
|
|
38
|
-
expect(WithDisplayFormat.getDerivedStateFromProps(nextProps, previousState)).toStrictEqual(
|
|
39
|
-
expectedState,
|
|
40
|
-
);
|
|
41
|
-
});
|
|
42
|
-
});
|