@transferwise/components 45.11.0 → 45.13.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/index.esm.js +14328 -0
- package/build/index.esm.js.map +1 -0
- package/build/index.js +14459 -0
- package/build/index.js.map +1 -0
- package/build/main.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/badge/Badge.css +1 -1
- package/build/styles/header/Header.css +1 -1
- package/build/styles/image/Image.css +1 -1
- package/build/styles/info/Info.css +1 -1
- package/build/styles/inputs/TextArea.css +1 -1
- package/build/styles/loader/Loader.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/tooltip/Tooltip.css +1 -1
- package/build/types/accordion/Accordion.d.ts +61 -22
- package/build/types/accordion/Accordion.d.ts.map +1 -0
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts +55 -29
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts.map +1 -0
- package/build/types/accordion/AccordionItem/index.d.ts +3 -1
- package/build/types/accordion/AccordionItem/index.d.ts.map +1 -0
- package/build/types/accordion/index.d.ts +2 -1
- package/build/types/accordion/index.d.ts.map +1 -0
- package/build/types/actionButton/ActionButton.d.ts +1 -0
- package/build/types/actionButton/ActionButton.d.ts.map +1 -0
- package/build/types/actionButton/index.d.ts +1 -0
- package/build/types/actionButton/index.d.ts.map +1 -0
- package/build/types/actionOption/ActionOption.d.ts +1 -0
- package/build/types/actionOption/ActionOption.d.ts.map +1 -0
- package/build/types/actionOption/index.d.ts +1 -0
- package/build/types/actionOption/index.d.ts.map +1 -0
- package/build/types/alert/Alert.d.ts.map +1 -0
- package/build/types/alert/index.d.ts +1 -0
- package/build/types/alert/index.d.ts.map +1 -0
- package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts +2 -1
- package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts.map +1 -0
- package/build/types/alert/inlineMarkdown/index.d.ts +1 -0
- package/build/types/alert/inlineMarkdown/index.d.ts.map +1 -0
- package/build/types/alert/withArrow/alertArrowPositions.d.ts +1 -0
- package/build/types/alert/withArrow/alertArrowPositions.d.ts.map +1 -0
- package/build/types/alert/withArrow/index.d.ts +1 -0
- package/build/types/alert/withArrow/index.d.ts.map +1 -0
- package/build/types/alert/withArrow/withArrow.d.ts +2 -1
- package/build/types/alert/withArrow/withArrow.d.ts.map +1 -0
- package/build/types/avatar/Avatar.d.ts +1 -0
- package/build/types/avatar/Avatar.d.ts.map +1 -0
- package/build/types/avatar/avatarTypes.d.ts +1 -0
- package/build/types/avatar/avatarTypes.d.ts.map +1 -0
- package/build/types/avatar/colors/colors.d.ts +1 -0
- package/build/types/avatar/colors/colors.d.ts.map +1 -0
- package/build/types/avatar/colors/index.d.ts +1 -0
- package/build/types/avatar/colors/index.d.ts.map +1 -0
- package/build/types/avatar/index.d.ts +1 -0
- package/build/types/avatar/index.d.ts.map +1 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -0
- package/build/types/avatarWrapper/index.d.ts +1 -0
- package/build/types/avatarWrapper/index.d.ts.map +1 -0
- package/build/types/badge/Badge.d.ts +1 -0
- package/build/types/badge/Badge.d.ts.map +1 -0
- package/build/types/badge/index.d.ts +1 -0
- package/build/types/badge/index.d.ts.map +1 -0
- package/build/types/body/Body.d.ts +1 -0
- package/build/types/body/Body.d.ts.map +1 -0
- package/build/types/body/index.d.ts +1 -0
- package/build/types/body/index.d.ts.map +1 -0
- package/build/types/button/Button.d.ts +1 -0
- package/build/types/button/Button.d.ts.map +1 -0
- package/build/types/button/classMap.d.ts +1 -0
- package/build/types/button/classMap.d.ts.map +1 -0
- package/build/types/button/index.d.ts +1 -0
- package/build/types/button/index.d.ts.map +1 -0
- package/build/types/button/legacyUtils/index.d.ts +1 -0
- package/build/types/button/legacyUtils/index.d.ts.map +1 -0
- package/build/types/button/legacyUtils/legacyUtils.d.ts +1 -0
- package/build/types/button/legacyUtils/legacyUtils.d.ts.map +1 -0
- package/build/types/card/Card.d.ts.map +1 -0
- package/build/types/card/index.d.ts +1 -0
- package/build/types/card/index.d.ts.map +1 -0
- package/build/types/checkbox/Checkbox.d.ts.map +1 -0
- package/build/types/checkbox/index.d.ts +1 -0
- package/build/types/checkbox/index.d.ts.map +1 -0
- package/build/types/checkboxButton/CheckboxButton.d.ts +1 -0
- package/build/types/checkboxButton/CheckboxButton.d.ts.map +1 -0
- package/build/types/checkboxButton/index.d.ts +1 -0
- package/build/types/checkboxButton/index.d.ts.map +1 -0
- package/build/types/checkboxOption/CheckboxOption.d.ts +1 -0
- package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -0
- package/build/types/checkboxOption/index.d.ts +1 -0
- package/build/types/checkboxOption/index.d.ts.map +1 -0
- package/build/types/chevron/Chevron.d.ts.map +1 -0
- package/build/types/chevron/index.d.ts +1 -0
- package/build/types/chevron/index.d.ts.map +1 -0
- package/build/types/chips/Chip.d.ts +1 -0
- package/build/types/chips/Chip.d.ts.map +1 -0
- package/build/types/chips/Chips.d.ts +1 -0
- package/build/types/chips/Chips.d.ts.map +1 -0
- package/build/types/chips/Chips.messages.d.ts +1 -0
- package/build/types/chips/Chips.messages.d.ts.map +1 -0
- package/build/types/chips/index.d.ts +1 -0
- package/build/types/chips/index.d.ts.map +1 -0
- package/build/types/circularButton/CircularButton.d.ts.map +1 -0
- package/build/types/circularButton/index.d.ts +1 -0
- package/build/types/circularButton/index.d.ts.map +1 -0
- package/build/types/common/DOMOperations/DOMOperations.d.ts +1 -0
- package/build/types/common/DOMOperations/DOMOperations.d.ts.map +1 -0
- package/build/types/common/DOMOperations/index.d.ts +1 -0
- package/build/types/common/DOMOperations/index.d.ts.map +1 -0
- package/build/types/common/Option/Option.d.ts +1 -0
- package/build/types/common/Option/Option.d.ts.map +1 -0
- package/build/types/common/Option/index.d.ts +1 -0
- package/build/types/common/Option/index.d.ts.map +1 -0
- package/build/types/common/RadioButton/RadioButton.d.ts +2 -1
- package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -0
- package/build/types/common/RadioButton/index.d.ts +1 -0
- package/build/types/common/RadioButton/index.d.ts.map +1 -0
- package/build/types/common/bottomSheet/BottomSheet.d.ts +1 -0
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -0
- package/build/types/common/bottomSheet/index.d.ts +1 -0
- package/build/types/common/bottomSheet/index.d.ts.map +1 -0
- package/build/types/common/card/Card.d.ts +1 -0
- package/build/types/common/card/Card.d.ts.map +1 -0
- package/build/types/common/card/index.d.ts +1 -0
- package/build/types/common/card/index.d.ts.map +1 -0
- package/build/types/common/closeButton/CloseButton.d.ts +1 -0
- package/build/types/common/closeButton/CloseButton.d.ts.map +1 -0
- package/build/types/common/closeButton/CloseButton.messages.d.ts +1 -0
- package/build/types/common/closeButton/CloseButton.messages.d.ts.map +1 -0
- package/build/types/common/closeButton/index.d.ts +1 -0
- package/build/types/common/closeButton/index.d.ts.map +1 -0
- package/build/types/common/commonProps.d.ts +1 -0
- package/build/types/common/commonProps.d.ts.map +1 -0
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +1 -0
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -0
- package/build/types/common/dateUtils/getDayNames/index.d.ts +1 -0
- package/build/types/common/dateUtils/getDayNames/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -0
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -0
- package/build/types/common/dateUtils/getMonthNames/index.d.ts +1 -0
- package/build/types/common/dateUtils/getMonthNames/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/index.d.ts +1 -0
- package/build/types/common/dateUtils/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isDateValid/index.d.ts +1 -0
- package/build/types/common/dateUtils/isDateValid/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +1 -0
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -0
- package/build/types/common/dateUtils/isWithinRange/index.d.ts +1 -0
- package/build/types/common/dateUtils/isWithinRange/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -0
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts.map +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -0
- package/build/types/common/deviceDetection/deviceDetection.d.ts +1 -0
- package/build/types/common/deviceDetection/deviceDetection.d.ts.map +1 -0
- package/build/types/common/deviceDetection/index.d.ts +1 -0
- package/build/types/common/deviceDetection/index.d.ts.map +1 -0
- package/build/types/common/direction.d.ts +1 -0
- package/build/types/common/direction.d.ts.map +1 -0
- package/build/types/common/domHelpers/documentIosClick.d.ts +1 -0
- package/build/types/common/domHelpers/documentIosClick.d.ts.map +1 -0
- package/build/types/common/domHelpers/index.d.ts +1 -0
- package/build/types/common/domHelpers/index.d.ts.map +1 -0
- package/build/types/common/fileType.d.ts +1 -0
- package/build/types/common/fileType.d.ts.map +1 -0
- package/build/types/common/flowHeader/FlowHeader.d.ts +1 -0
- package/build/types/common/flowHeader/FlowHeader.d.ts.map +1 -0
- package/build/types/common/focusBoundary/FocusBoundary.d.ts +2 -1
- package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -0
- package/build/types/common/focusBoundary/index.d.ts +1 -0
- package/build/types/common/focusBoundary/index.d.ts.map +1 -0
- package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts +1 -0
- package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts.map +1 -0
- package/build/types/common/focusBoundary/utils/index.d.ts +1 -0
- package/build/types/common/focusBoundary/utils/index.d.ts.map +1 -0
- package/build/types/common/focusBoundary/utils/resetFocus.d.ts +1 -0
- package/build/types/common/focusBoundary/utils/resetFocus.d.ts.map +1 -0
- package/build/types/common/historyNavigator/historyNavigator.d.ts +1 -0
- package/build/types/common/historyNavigator/historyNavigator.d.ts.map +1 -0
- package/build/types/common/historyNavigator/index.d.ts +1 -0
- package/build/types/common/historyNavigator/index.d.ts.map +1 -0
- package/build/types/common/hooks/index.d.ts +1 -0
- package/build/types/common/hooks/index.d.ts.map +1 -0
- package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts +1 -0
- package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts.map +1 -0
- package/build/types/common/hooks/useConditionalListener/index.d.ts +1 -0
- package/build/types/common/hooks/useConditionalListener/index.d.ts.map +1 -0
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts +1 -0
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts.map +1 -0
- package/build/types/common/hooks/useDirection/index.d.ts +1 -0
- package/build/types/common/hooks/useDirection/index.d.ts.map +1 -0
- package/build/types/common/hooks/useDirection/useDirection.d.ts +1 -0
- package/build/types/common/hooks/useDirection/useDirection.d.ts.map +1 -0
- package/build/types/common/hooks/useHasIntersected/index.d.ts +1 -0
- package/build/types/common/hooks/useHasIntersected/index.d.ts.map +1 -0
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts +1 -0
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts.map +1 -0
- package/build/types/common/hooks/useLayout/index.d.ts +1 -0
- package/build/types/common/hooks/useLayout/index.d.ts.map +1 -0
- package/build/types/common/hooks/useLayout/useLayout.d.ts +1 -0
- package/build/types/common/hooks/useLayout/useLayout.d.ts.map +1 -0
- package/build/types/common/index.d.ts +2 -1
- package/build/types/common/index.d.ts.map +1 -0
- package/build/types/common/key.d.ts +1 -0
- package/build/types/common/key.d.ts.map +1 -0
- package/build/types/common/keyCodes.d.ts +1 -0
- package/build/types/common/keyCodes.d.ts.map +1 -0
- package/build/types/common/locale/index.d.ts +1 -0
- package/build/types/common/locale/index.d.ts.map +1 -0
- package/build/types/common/panel/Panel.d.ts +1 -0
- package/build/types/common/panel/Panel.d.ts.map +1 -0
- package/build/types/common/panel/index.d.ts +1 -0
- package/build/types/common/panel/index.d.ts.map +1 -0
- package/build/types/common/propsValues/breakpoint.d.ts +1 -0
- package/build/types/common/propsValues/breakpoint.d.ts.map +1 -0
- package/build/types/common/propsValues/control.d.ts +1 -0
- package/build/types/common/propsValues/control.d.ts.map +1 -0
- package/build/types/common/propsValues/dateMode.d.ts +1 -0
- package/build/types/common/propsValues/dateMode.d.ts.map +1 -0
- package/build/types/common/propsValues/layouts.d.ts +1 -0
- package/build/types/common/propsValues/layouts.d.ts.map +1 -0
- package/build/types/common/propsValues/markdownNodeType.d.ts +1 -0
- package/build/types/common/propsValues/markdownNodeType.d.ts.map +1 -0
- package/build/types/common/propsValues/monthFormat.d.ts +1 -0
- package/build/types/common/propsValues/monthFormat.d.ts.map +1 -0
- package/build/types/common/propsValues/position.d.ts +1 -0
- package/build/types/common/propsValues/position.d.ts.map +1 -0
- package/build/types/common/propsValues/profileType.d.ts +1 -0
- package/build/types/common/propsValues/profileType.d.ts.map +1 -0
- package/build/types/common/propsValues/scroll.d.ts +1 -0
- package/build/types/common/propsValues/scroll.d.ts.map +1 -0
- package/build/types/common/propsValues/sentiment.d.ts +1 -0
- package/build/types/common/propsValues/sentiment.d.ts.map +1 -0
- package/build/types/common/propsValues/size.d.ts +1 -0
- package/build/types/common/propsValues/size.d.ts.map +1 -0
- package/build/types/common/propsValues/status.d.ts +8 -0
- package/build/types/common/propsValues/status.d.ts.map +1 -0
- package/build/types/common/propsValues/type.d.ts +1 -0
- package/build/types/common/propsValues/type.d.ts.map +1 -0
- package/build/types/common/propsValues/typography.d.ts +1 -0
- package/build/types/common/propsValues/typography.d.ts.map +1 -0
- package/build/types/common/propsValues/variant.d.ts +1 -0
- package/build/types/common/propsValues/variant.d.ts.map +1 -0
- package/build/types/common/propsValues/width.d.ts +1 -0
- package/build/types/common/propsValues/width.d.ts.map +1 -0
- package/build/types/common/requirements.d.ts +1 -0
- package/build/types/common/requirements.d.ts.map +1 -0
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -0
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts.map +1 -0
- package/build/types/common/responsivePanel/index.d.ts +1 -0
- package/build/types/common/responsivePanel/index.d.ts.map +1 -0
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts +1 -0
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts.map +1 -0
- package/build/types/common/textFormat/formatWithPattern/index.d.ts +1 -0
- package/build/types/common/textFormat/formatWithPattern/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts.map +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts.map +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts.map +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts.map +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts.map +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts.map +1 -0
- package/build/types/common/textFormat/index.d.ts +1 -0
- package/build/types/common/textFormat/index.d.ts.map +1 -0
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts +1 -0
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts.map +1 -0
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts +1 -0
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts.map +1 -0
- package/build/types/common/theme.d.ts +1 -0
- package/build/types/common/theme.d.ts.map +1 -0
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts +2 -1
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -0
- package/build/types/criticalBanner/index.d.ts +1 -0
- package/build/types/criticalBanner/index.d.ts.map +1 -0
- package/build/types/dateInput/DateInput.d.ts.map +1 -0
- package/build/types/dateInput/DateInput.messages.d.ts +1 -0
- package/build/types/dateInput/DateInput.messages.d.ts.map +1 -0
- package/build/types/dateInput/index.d.ts +1 -0
- package/build/types/dateInput/index.d.ts.map +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -0
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +1 -0
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts.map +1 -0
- package/build/types/dateInput/utils/explodeDate/index.d.ts +1 -0
- package/build/types/dateInput/utils/explodeDate/index.d.ts.map +1 -0
- package/build/types/dateInput/utils/index.d.ts +1 -0
- package/build/types/dateInput/utils/index.d.ts.map +1 -0
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -0
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts +2 -1
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -0
- package/build/types/dateLookup/dateHeader/index.d.ts +1 -0
- package/build/types/dateLookup/dateHeader/index.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +2 -1
- package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/index.d.ts +1 -0
- package/build/types/dateLookup/dateTrigger/index.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +1 -0
- package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/index.d.ts +1 -0
- package/build/types/dateLookup/dayCalendar/index.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +1 -0
- package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +1 -0
- package/build/types/dateLookup/dayCalendar/table/index.d.ts +1 -0
- package/build/types/dateLookup/dayCalendar/table/index.d.ts.map +1 -0
- package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts +1 -0
- package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +1 -0
- package/build/types/dateLookup/getStartOfDay/index.d.ts +1 -0
- package/build/types/dateLookup/getStartOfDay/index.d.ts.map +1 -0
- package/build/types/dateLookup/index.d.ts +1 -0
- package/build/types/dateLookup/index.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +1 -0
- package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/index.d.ts +1 -0
- package/build/types/dateLookup/monthCalendar/index.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +2 -1
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -0
- package/build/types/dateLookup/monthCalendar/table/index.d.ts +1 -0
- package/build/types/dateLookup/monthCalendar/table/index.d.ts.map +1 -0
- package/build/types/dateLookup/tableLink/TableLink.d.ts +2 -1
- package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -0
- package/build/types/dateLookup/tableLink/index.d.ts +1 -0
- package/build/types/dateLookup/tableLink/index.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +2 -1
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/index.d.ts +1 -0
- package/build/types/dateLookup/yearCalendar/index.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +2 -1
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -0
- package/build/types/dateLookup/yearCalendar/table/index.d.ts +1 -0
- package/build/types/dateLookup/yearCalendar/table/index.d.ts.map +1 -0
- package/build/types/decision/Decision.d.ts.map +1 -0
- package/build/types/decision/decisionEnums.d.ts +1 -0
- package/build/types/decision/decisionEnums.d.ts.map +1 -0
- package/build/types/decision/index.d.ts +1 -0
- package/build/types/decision/index.d.ts.map +1 -0
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -0
- package/build/types/definitionList/index.d.ts +1 -0
- package/build/types/definitionList/index.d.ts.map +1 -0
- package/build/types/dimmer/Dimmer.d.ts +2 -1
- package/build/types/dimmer/Dimmer.d.ts.map +1 -0
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts +1 -0
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts.map +1 -0
- package/build/types/dimmer/dimmerManager/index.d.ts +1 -0
- package/build/types/dimmer/dimmerManager/index.d.ts.map +1 -0
- package/build/types/dimmer/index.d.ts +1 -0
- package/build/types/dimmer/index.d.ts.map +1 -0
- package/build/types/display/Display.d.ts +2 -1
- package/build/types/display/Display.d.ts.map +1 -0
- package/build/types/display/index.d.ts +1 -0
- package/build/types/display/index.d.ts.map +1 -0
- package/build/types/drawer/Drawer.d.ts.map +1 -0
- package/build/types/drawer/index.d.ts +1 -0
- package/build/types/drawer/index.d.ts.map +1 -0
- package/build/types/dropFade/DropFade.d.ts +3 -2
- package/build/types/dropFade/DropFade.d.ts.map +1 -0
- package/build/types/dropFade/index.d.ts +1 -0
- package/build/types/dropFade/index.d.ts.map +1 -0
- package/build/types/dynamicFieldDefinitionList/DynamicFieldDefinitionList.d.ts.map +1 -0
- package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +2 -1
- package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts.map +1 -0
- package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts.map +1 -0
- package/build/types/dynamicFieldDefinitionList/index.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/index.d.ts.map +1 -0
- package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts.map +1 -0
- package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts.map +1 -0
- package/build/types/emphasis/Emphasis.d.ts +1 -0
- package/build/types/emphasis/Emphasis.d.ts.map +1 -0
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts +1 -0
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts.map +1 -0
- package/build/types/emphasis/index.d.ts +1 -0
- package/build/types/emphasis/index.d.ts.map +1 -0
- package/build/types/flowNavigation/FlowNavigation.d.ts +2 -1
- package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -0
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts +2 -1
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts.map +1 -0
- package/build/types/flowNavigation/animatedLabel/index.d.ts +1 -0
- package/build/types/flowNavigation/animatedLabel/index.d.ts.map +1 -0
- package/build/types/flowNavigation/backButton/BackButton.d.ts +2 -1
- package/build/types/flowNavigation/backButton/BackButton.d.ts.map +1 -0
- package/build/types/flowNavigation/backButton/index.d.ts +1 -0
- package/build/types/flowNavigation/backButton/index.d.ts.map +1 -0
- package/build/types/header/Header.d.ts +2 -1
- package/build/types/header/Header.d.ts.map +1 -0
- package/build/types/header/index.d.ts +1 -0
- package/build/types/header/index.d.ts.map +1 -0
- package/build/types/i18n/index.d.ts +1 -0
- package/build/types/i18n/index.d.ts.map +1 -0
- package/build/types/image/Image.d.ts.map +1 -0
- package/build/types/image/index.d.ts +1 -0
- package/build/types/image/index.d.ts.map +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/info/Info.d.ts +29 -35
- package/build/types/info/Info.d.ts.map +1 -0
- package/build/types/info/index.d.ts +4 -2
- package/build/types/info/index.d.ts.map +1 -0
- package/build/types/info/infoPresentations.d.ts +1 -0
- package/build/types/info/infoPresentations.d.ts.map +1 -0
- package/build/types/inlineAlert/InlineAlert.d.ts.map +1 -0
- package/build/types/inlineAlert/index.d.ts +1 -0
- package/build/types/inlineAlert/index.d.ts.map +1 -0
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -0
- package/build/types/inputWithDisplayFormat/index.d.ts +1 -0
- package/build/types/inputWithDisplayFormat/index.d.ts.map +1 -0
- package/build/types/inputs/Input.d.ts +2 -1
- package/build/types/inputs/Input.d.ts.map +1 -0
- package/build/types/inputs/TextArea.d.ts +2 -1
- package/build/types/inputs/TextArea.d.ts.map +1 -0
- package/build/types/inputs/_common.d.ts +1 -0
- package/build/types/inputs/_common.d.ts.map +1 -0
- package/build/types/instructionsList/InstructionsList.d.ts +2 -1
- package/build/types/instructionsList/InstructionsList.d.ts.map +1 -0
- package/build/types/instructionsList/index.d.ts +1 -0
- package/build/types/instructionsList/index.d.ts.map +1 -0
- package/build/types/link/Link.d.ts +3 -2
- package/build/types/link/Link.d.ts.map +1 -0
- package/build/types/link/index.d.ts +3 -1
- package/build/types/link/index.d.ts.map +1 -0
- package/build/types/listItem/ListItem.d.ts +1 -0
- package/build/types/listItem/ListItem.d.ts.map +1 -0
- package/build/types/listItem/index.d.ts +1 -0
- package/build/types/listItem/index.d.ts.map +1 -0
- package/build/types/loader/Loader.d.ts +1 -0
- package/build/types/loader/Loader.d.ts.map +1 -0
- package/build/types/loader/index.d.ts +1 -0
- package/build/types/loader/index.d.ts.map +1 -0
- package/build/types/logo/Logo.d.ts.map +1 -0
- package/build/types/logo/index.d.ts +1 -0
- package/build/types/logo/index.d.ts.map +1 -0
- package/build/types/logo/logoTypes.d.ts +1 -0
- package/build/types/logo/logoTypes.d.ts.map +1 -0
- package/build/types/markdown/Markdown.d.ts.map +1 -0
- package/build/types/markdown/index.d.ts +1 -0
- package/build/types/markdown/index.d.ts.map +1 -0
- package/build/types/modal/Modal.d.ts +3 -1
- package/build/types/modal/Modal.d.ts.map +1 -0
- package/build/types/modal/index.d.ts +1 -0
- package/build/types/modal/index.d.ts.map +1 -0
- package/build/types/money/Money.d.ts.map +1 -0
- package/build/types/money/index.d.ts +1 -0
- package/build/types/money/index.d.ts.map +1 -0
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -0
- package/build/types/moneyInput/MoneyInput.messages.d.ts +1 -0
- package/build/types/moneyInput/MoneyInput.messages.d.ts.map +1 -0
- package/build/types/moneyInput/currencyFormatting.d.ts +1 -0
- package/build/types/moneyInput/currencyFormatting.d.ts.map +1 -0
- package/build/types/moneyInput/index.d.ts +1 -0
- package/build/types/moneyInput/index.d.ts.map +1 -0
- package/build/types/navigationOption/NavigationOption.d.ts +1 -0
- package/build/types/navigationOption/NavigationOption.d.ts.map +1 -0
- package/build/types/navigationOption/index.d.ts +1 -0
- package/build/types/navigationOption/index.d.ts.map +1 -0
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts.map +1 -0
- package/build/types/navigationOptionsList/index.d.ts +1 -0
- package/build/types/navigationOptionsList/index.d.ts.map +1 -0
- package/build/types/nudge/Nudge.d.ts +2 -1
- package/build/types/nudge/Nudge.d.ts.map +1 -0
- package/build/types/nudge/index.d.ts +1 -0
- package/build/types/nudge/index.d.ts.map +1 -0
- package/build/types/overlayHeader/OverlayHeader.d.ts.map +1 -0
- package/build/types/overlayHeader/index.d.ts +1 -0
- package/build/types/overlayHeader/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -0
- package/build/types/phoneNumberInput/data/countries.d.ts +1 -0
- package/build/types/phoneNumberInput/data/countries.d.ts.map +1 -0
- package/build/types/phoneNumberInput/index.d.ts +1 -0
- package/build/types/phoneNumberInput/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/excludeCountries/excludeCountries.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/excludeCountries/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts.map +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts.map +1 -0
- package/build/types/popover/Popover.d.ts.map +1 -0
- package/build/types/popover/index.d.ts +1 -0
- package/build/types/popover/index.d.ts.map +1 -0
- package/build/types/processIndicator/ProcessIndicator.d.ts.map +1 -0
- package/build/types/processIndicator/index.d.ts +1 -0
- package/build/types/processIndicator/index.d.ts.map +1 -0
- package/build/types/progress/Progress.d.ts +1 -0
- package/build/types/progress/Progress.d.ts.map +1 -0
- package/build/types/progress/index.d.ts +1 -0
- package/build/types/progress/index.d.ts.map +1 -0
- package/build/types/progressBar/ProgressBar.d.ts +1 -0
- package/build/types/progressBar/ProgressBar.d.ts.map +1 -0
- package/build/types/progressBar/index.d.ts +1 -0
- package/build/types/progressBar/index.d.ts.map +1 -0
- package/build/types/promoCard/PromoCard.d.ts +1 -0
- package/build/types/promoCard/PromoCard.d.ts.map +1 -0
- package/build/types/promoCard/PromoCardContext.d.ts +1 -0
- package/build/types/promoCard/PromoCardContext.d.ts.map +1 -0
- package/build/types/promoCard/PromoCardGroup.d.ts +1 -0
- package/build/types/promoCard/PromoCardGroup.d.ts.map +1 -0
- package/build/types/promoCard/PromoCardIndicator.d.ts +1 -0
- package/build/types/promoCard/PromoCardIndicator.d.ts.map +1 -0
- package/build/types/promoCard/index.d.ts +1 -0
- package/build/types/promoCard/index.d.ts.map +1 -0
- package/build/types/provider/Provider.d.ts.map +1 -0
- package/build/types/provider/direction/DirectionProvider.d.ts +1 -0
- package/build/types/provider/direction/DirectionProvider.d.ts.map +1 -0
- package/build/types/provider/direction/index.d.ts +1 -0
- package/build/types/provider/direction/index.d.ts.map +1 -0
- package/build/types/provider/index.d.ts +1 -0
- package/build/types/provider/index.d.ts.map +1 -0
- package/build/types/provider/language/LanguageProvider.d.ts +1 -0
- package/build/types/provider/language/LanguageProvider.d.ts.map +1 -0
- package/build/types/provider/language/index.d.ts +1 -0
- package/build/types/provider/language/index.d.ts.map +1 -0
- package/build/types/radio/Radio.d.ts.map +1 -0
- package/build/types/radio/index.d.ts +1 -0
- package/build/types/radio/index.d.ts.map +1 -0
- package/build/types/radioGroup/RadioGroup.d.ts.map +1 -0
- package/build/types/radioGroup/index.d.ts +1 -0
- package/build/types/radioGroup/index.d.ts.map +1 -0
- package/build/types/radioOption/RadioOption.d.ts.map +1 -0
- package/build/types/radioOption/index.d.ts +1 -0
- package/build/types/radioOption/index.d.ts.map +1 -0
- package/build/types/section/Section.d.ts +2 -1
- package/build/types/section/Section.d.ts.map +1 -0
- package/build/types/section/index.d.ts +1 -0
- package/build/types/section/index.d.ts.map +1 -0
- package/build/types/select/Select.d.ts.map +1 -0
- package/build/types/select/Select.messages.d.ts +1 -0
- package/build/types/select/Select.messages.d.ts.map +1 -0
- package/build/types/select/index.d.ts +1 -0
- package/build/types/select/index.d.ts.map +1 -0
- package/build/types/select/option/Option.d.ts +2 -1
- package/build/types/select/option/Option.d.ts.map +1 -0
- package/build/types/select/option/index.d.ts +1 -0
- package/build/types/select/option/index.d.ts.map +1 -0
- package/build/types/select/searchBox/SearchBox.d.ts +1 -0
- package/build/types/select/searchBox/SearchBox.d.ts.map +1 -0
- package/build/types/select/searchBox/index.d.ts +1 -0
- package/build/types/select/searchBox/index.d.ts.map +1 -0
- package/build/types/sizeSwapper/SizeSwapper.d.ts +1 -0
- package/build/types/sizeSwapper/SizeSwapper.d.ts.map +1 -0
- package/build/types/sizeSwapper/index.d.ts +1 -0
- package/build/types/sizeSwapper/index.d.ts.map +1 -0
- package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -0
- package/build/types/slidingPanel/index.d.ts +1 -0
- package/build/types/slidingPanel/index.d.ts.map +1 -0
- package/build/types/snackbar/Snackbar.d.ts.map +1 -0
- package/build/types/snackbar/SnackbarContext.d.ts +1 -0
- package/build/types/snackbar/SnackbarContext.d.ts.map +1 -0
- package/build/types/snackbar/SnackbarProvider.d.ts.map +1 -0
- package/build/types/snackbar/useSnackbar.d.ts +1 -0
- package/build/types/snackbar/useSnackbar.d.ts.map +1 -0
- package/build/types/statusIcon/StatusIcon.d.ts +1 -0
- package/build/types/statusIcon/StatusIcon.d.ts.map +1 -0
- package/build/types/statusIcon/index.d.ts +1 -0
- package/build/types/statusIcon/index.d.ts.map +1 -0
- package/build/types/stepper/Stepper.d.ts +2 -1
- package/build/types/stepper/Stepper.d.ts.map +1 -0
- package/build/types/stepper/deviceDetection.d.ts +1 -0
- package/build/types/stepper/deviceDetection.d.ts.map +1 -0
- package/build/types/sticky/Sticky.d.ts.map +1 -0
- package/build/types/sticky/index.d.ts +1 -0
- package/build/types/sticky/index.d.ts.map +1 -0
- package/build/types/summary/Summary.d.ts +58 -71
- package/build/types/summary/Summary.d.ts.map +1 -0
- package/build/types/summary/Summary.messages.d.ts +15 -18
- package/build/types/summary/Summary.messages.d.ts.map +1 -0
- package/build/types/summary/index.d.ts +3 -1
- package/build/types/summary/index.d.ts.map +1 -0
- package/build/types/switch/Switch.d.ts +1 -0
- package/build/types/switch/Switch.d.ts.map +1 -0
- package/build/types/switch/index.d.ts +1 -0
- package/build/types/switch/index.d.ts.map +1 -0
- package/build/types/switchOption/SwitchOption.d.ts +1 -0
- package/build/types/switchOption/SwitchOption.d.ts.map +1 -0
- package/build/types/switchOption/index.d.ts +1 -0
- package/build/types/switchOption/index.d.ts.map +1 -0
- package/build/types/tabs/Tab.d.ts +1 -0
- package/build/types/tabs/Tab.d.ts.map +1 -0
- package/build/types/tabs/TabList.d.ts +2 -1
- package/build/types/tabs/TabList.d.ts.map +1 -0
- package/build/types/tabs/TabPanel.d.ts +2 -1
- package/build/types/tabs/TabPanel.d.ts.map +1 -0
- package/build/types/tabs/Tabs.d.ts.map +1 -0
- package/build/types/tabs/index.d.ts +1 -0
- package/build/types/tabs/index.d.ts.map +1 -0
- package/build/types/tabs/utils.d.ts +1 -0
- package/build/types/tabs/utils.d.ts.map +1 -0
- package/build/types/test-utils/fake-data.d.ts +1 -0
- package/build/types/test-utils/fake-data.d.ts.map +1 -0
- package/build/types/test-utils/story-config.d.ts +1 -0
- package/build/types/test-utils/story-config.d.ts.map +1 -0
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -0
- package/build/types/textareaWithDisplayFormat/index.d.ts +1 -0
- package/build/types/textareaWithDisplayFormat/index.d.ts.map +1 -0
- package/build/types/tile/Tile.d.ts +2 -1
- package/build/types/tile/Tile.d.ts.map +1 -0
- package/build/types/tile/index.d.ts +1 -0
- package/build/types/tile/index.d.ts.map +1 -0
- package/build/types/title/Title.d.ts +2 -1
- package/build/types/title/Title.d.ts.map +1 -0
- package/build/types/title/index.d.ts +1 -0
- package/build/types/title/index.d.ts.map +1 -0
- package/build/types/tooltip/Tooltip.d.ts +1 -0
- package/build/types/tooltip/Tooltip.d.ts.map +1 -0
- package/build/types/tooltip/index.d.ts +1 -0
- package/build/types/tooltip/index.d.ts.map +1 -0
- package/build/types/typeahead/Typeahead.d.ts.map +1 -0
- package/build/types/typeahead/index.d.ts +1 -0
- package/build/types/typeahead/index.d.ts.map +1 -0
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +3 -2
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts.map +1 -0
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +2 -1
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -0
- package/build/types/typeahead/util/highlight.d.ts +1 -0
- package/build/types/typeahead/util/highlight.d.ts.map +1 -0
- package/build/types/upload/Upload.d.ts.map +1 -0
- package/build/types/upload/Upload.messages.d.ts +1 -0
- package/build/types/upload/Upload.messages.d.ts.map +1 -0
- package/build/types/upload/index.d.ts +1 -0
- package/build/types/upload/index.d.ts.map +1 -0
- package/build/types/upload/steps/completeStep/completeStep.d.ts +2 -1
- package/build/types/upload/steps/completeStep/completeStep.d.ts.map +1 -0
- package/build/types/upload/steps/completeStep/index.d.ts +1 -0
- package/build/types/upload/steps/completeStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/index.d.ts +1 -0
- package/build/types/upload/steps/index.d.ts.map +1 -0
- package/build/types/upload/steps/mediaUploadStep/index.d.ts +1 -0
- package/build/types/upload/steps/mediaUploadStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +2 -1
- package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts.map +1 -0
- package/build/types/upload/steps/processingStep/index.d.ts +1 -0
- package/build/types/upload/steps/processingStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/processingStep/processingStep.d.ts +2 -1
- package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -0
- package/build/types/upload/steps/uploadImageStep/index.d.ts +1 -0
- package/build/types/upload/steps/uploadImageStep/index.d.ts.map +1 -0
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +2 -1
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -0
- package/build/types/upload/uploadSteps.d.ts +1 -0
- package/build/types/upload/uploadSteps.d.ts.map +1 -0
- package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts +1 -0
- package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts.map +1 -0
- package/build/types/upload/utils/asyncFileRead/index.d.ts +1 -0
- package/build/types/upload/utils/asyncFileRead/index.d.ts.map +1 -0
- package/build/types/upload/utils/getFileType/getFileType.d.ts +1 -0
- package/build/types/upload/utils/getFileType/getFileType.d.ts.map +1 -0
- package/build/types/upload/utils/getFileType/index.d.ts +1 -0
- package/build/types/upload/utils/getFileType/index.d.ts.map +1 -0
- package/build/types/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.d.ts +1 -0
- package/build/types/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.d.ts.map +1 -0
- package/build/types/upload/utils/getSupportedSpotMimeTypes/index.d.ts +1 -0
- package/build/types/upload/utils/getSupportedSpotMimeTypes/index.d.ts.map +1 -0
- package/build/types/upload/utils/index.d.ts +1 -0
- package/build/types/upload/utils/index.d.ts.map +1 -0
- package/build/types/upload/utils/isSizeValid/index.d.ts +1 -0
- package/build/types/upload/utils/isSizeValid/index.d.ts.map +1 -0
- package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts +1 -0
- package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts.map +1 -0
- package/build/types/upload/utils/isTypeValid/index.d.ts +1 -0
- package/build/types/upload/utils/isTypeValid/index.d.ts.map +1 -0
- package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts +1 -0
- package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts.map +1 -0
- package/build/types/upload/utils/postData/index.d.ts +1 -0
- package/build/types/upload/utils/postData/index.d.ts.map +1 -0
- package/build/types/upload/utils/postData/postData.d.ts +1 -0
- package/build/types/upload/utils/postData/postData.d.ts.map +1 -0
- package/build/types/upload/utils/requestMedia/index.d.ts +1 -0
- package/build/types/upload/utils/requestMedia/index.d.ts.map +1 -0
- package/build/types/upload/utils/requestMedia/requestMedia.d.ts +1 -0
- package/build/types/upload/utils/requestMedia/requestMedia.d.ts.map +1 -0
- package/build/types/uploadInput/UploadInput.d.ts +1 -0
- package/build/types/uploadInput/UploadInput.d.ts.map +1 -0
- package/build/types/uploadInput/UploadInput.messages.d.ts +1 -0
- package/build/types/uploadInput/UploadInput.messages.d.ts.map +1 -0
- package/build/types/uploadInput/index.d.ts +1 -0
- package/build/types/uploadInput/index.d.ts.map +1 -0
- package/build/types/uploadInput/types.d.ts +1 -0
- package/build/types/uploadInput/types.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts +2 -1
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts +1 -0
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/defaults.d.ts +1 -0
- package/build/types/uploadInput/uploadButton/defaults.d.ts.map +1 -0
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts +1 -0
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts.map +1 -0
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts +2 -1
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -0
- package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts +1 -0
- package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts.map +1 -0
- package/build/types/uploadInput/uploadItem/UploadItemBody.d.ts +2 -1
- package/build/types/uploadInput/uploadItem/UploadItemBody.d.ts.map +1 -0
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +1 -0
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts.map +1 -0
- package/build/types/utilities/deprecatedProperty/index.d.ts +1 -0
- package/build/types/utilities/deprecatedProperty/index.d.ts.map +1 -0
- package/build/types/utilities/index.d.ts +1 -0
- package/build/types/utilities/index.d.ts.map +1 -0
- package/build/types/utilities/logActionRequired.d.ts +1 -0
- package/build/types/utilities/logActionRequired.d.ts.map +1 -0
- package/build/types/utils.d.ts +1 -0
- package/build/types/utils.d.ts.map +1 -0
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +1 -0
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -0
- package/build/types/withDisplayFormat/index.d.ts +1 -0
- package/build/types/withDisplayFormat/index.d.ts.map +1 -0
- package/build/types/withNextPortal/withNextPortal.d.ts +1 -0
- package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -0
- package/package.json +37 -35
- package/src/accordion/Accordion.css +1 -0
- package/src/accordion/Accordion.less +81 -0
- package/src/accordion/Accordion.spec.js +76 -0
- package/src/accordion/Accordion.story.tsx +123 -0
- package/src/accordion/Accordion.tsx +98 -0
- package/src/accordion/AccordionItem/AccordionItem.spec.js +51 -0
- package/src/accordion/AccordionItem/AccordionItem.tsx +110 -0
- package/src/accordion/AccordionItem/__snapshots__/AccordionItem.spec.js.snap +102 -0
- package/src/accordion/AccordionItem/index.ts +2 -0
- package/src/accordion/__snapshots__/Accordion.spec.js.snap +3 -0
- package/src/accordion/index.ts +1 -0
- package/src/actionButton/ActionButton.css +1 -0
- package/src/actionButton/ActionButton.less +46 -0
- package/src/actionButton/ActionButton.spec.tsx +83 -0
- package/src/actionButton/ActionButton.story.tsx +52 -0
- package/src/actionButton/ActionButton.tsx +45 -0
- package/src/actionButton/__snapshots__/ActionButton.spec.tsx.snap +12 -0
- package/src/actionButton/index.ts +2 -0
- package/src/actionOption/ActionOption.spec.js +99 -0
- package/src/actionOption/ActionOption.story.tsx +50 -0
- package/src/actionOption/ActionOption.tsx +79 -0
- package/src/actionOption/index.ts +1 -0
- package/src/alert/Alert.js +194 -0
- package/src/alert/Alert.spec.js +444 -0
- package/src/alert/Alert.story.tsx +95 -0
- package/src/alert/index.js +1 -0
- package/src/alert/inlineMarkdown/InlineMarkdown.js +21 -0
- package/src/alert/inlineMarkdown/index.js +1 -0
- package/src/alert/withArrow/alertArrowPositions.ts +9 -0
- package/src/alert/withArrow/index.js +2 -0
- package/src/alert/withArrow/withArrow.js +50 -0
- package/src/alert/withArrow/withArrow.spec.js +51 -0
- package/src/avatar/Avatar.css +1 -0
- package/src/avatar/Avatar.less +158 -0
- package/src/avatar/Avatar.spec.js +51 -0
- package/src/avatar/Avatar.story.tsx +227 -0
- package/src/avatar/Avatar.tsx +85 -0
- package/src/avatar/avatarTypes.ts +7 -0
- package/src/avatar/colors/colors.ts +36 -0
- package/src/avatar/colors/index.ts +1 -0
- package/src/avatar/index.ts +3 -0
- package/src/avatarWrapper/AvatarWrapper.js +150 -0
- package/src/avatarWrapper/AvatarWrapper.spec.js +81 -0
- package/src/avatarWrapper/AvatarWrapper.story.tsx +141 -0
- package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.js.snap +212 -0
- package/src/avatarWrapper/index.js +3 -0
- package/src/badge/Badge.css +1 -0
- package/src/badge/Badge.less +94 -0
- package/src/badge/Badge.spec.js +36 -0
- package/src/badge/Badge.story.js +68 -0
- package/src/badge/Badge.tsx +46 -0
- package/src/badge/index.js +1 -0
- package/src/body/Body.spec.tsx +44 -0
- package/src/body/Body.story.tsx +105 -0
- package/src/body/Body.tsx +46 -0
- package/src/body/index.ts +1 -0
- package/src/button/Button.css +1 -0
- package/src/button/Button.less +18 -0
- package/src/button/Button.spec.js +199 -0
- package/src/button/Button.story.tsx +123 -0
- package/src/button/Button.tsx +123 -0
- package/src/button/__snapshots__/Button.spec.js.snap +258 -0
- package/src/button/classMap.js +13 -0
- package/src/button/index.ts +3 -0
- package/src/button/legacyUtils/index.js +1 -0
- package/src/button/legacyUtils/legacyUtils.js +54 -0
- package/src/button/legacyUtils/legacyUtils.spec.js +103 -0
- package/src/card/Card.css +1 -0
- package/src/card/Card.js +88 -0
- package/src/card/Card.less +101 -0
- package/src/card/Card.spec.js +123 -0
- package/src/card/Card.story.js +63 -0
- package/src/card/index.js +1 -0
- package/src/checkbox/Checkbox.js +91 -0
- package/src/checkbox/Checkbox.spec.js +123 -0
- package/src/checkbox/Checkbox.story.tsx +39 -0
- package/src/checkbox/__snapshots__/Checkbox.spec.js.snap +37 -0
- package/src/checkbox/index.js +3 -0
- package/src/checkboxButton/CheckboxButton.css +1 -0
- package/src/checkboxButton/CheckboxButton.less +29 -0
- package/src/checkboxButton/CheckboxButton.spec.tsx +43 -0
- package/src/checkboxButton/CheckboxButton.story.tsx +31 -0
- package/src/checkboxButton/CheckboxButton.tsx +24 -0
- package/src/checkboxButton/index.js +1 -0
- package/src/checkboxOption/CheckboxOption.spec.tsx +76 -0
- package/src/checkboxOption/CheckboxOption.story.tsx +75 -0
- package/src/checkboxOption/CheckboxOption.tsx +38 -0
- package/src/checkboxOption/index.ts +1 -0
- package/src/chevron/Chevron.js +67 -0
- package/src/chevron/Chevron.spec.js +54 -0
- package/src/chevron/Chevron.story.tsx +32 -0
- package/src/chevron/__mocks__/index.js +7 -0
- package/src/chevron/__snapshots__/Chevron.spec.js.snap +24 -0
- package/src/chevron/index.js +1 -0
- package/src/chips/Chip.css +1 -0
- package/src/chips/Chip.less +193 -0
- package/src/chips/Chip.tsx +91 -0
- package/src/chips/Chips.messages.ts +9 -0
- package/src/chips/Chips.spec.tsx +96 -0
- package/src/chips/Chips.story.tsx +111 -0
- package/src/chips/Chips.tsx +90 -0
- package/src/chips/__snapshots__/Chips.spec.tsx.snap +149 -0
- package/src/chips/index.ts +2 -0
- package/src/circularButton/CircularButton.css +1 -0
- package/src/circularButton/CircularButton.js +57 -0
- package/src/circularButton/CircularButton.less +126 -0
- package/src/circularButton/CircularButton.spec.js +103 -0
- package/src/circularButton/CircularButton.story.js +97 -0
- package/src/circularButton/__snapshots__/CircularButton.spec.js.snap +371 -0
- package/src/circularButton/_button-label-states.less +34 -0
- package/src/circularButton/index.js +1 -0
- package/src/common/DOMOperations/DOMOperations.js +20 -0
- package/src/common/DOMOperations/DOMOperations.spec.js +31 -0
- package/src/common/DOMOperations/index.js +3 -0
- package/src/common/Option/Option.css +1 -0
- package/src/common/Option/Option.less +97 -0
- package/src/common/Option/Option.spec.js +129 -0
- package/src/common/Option/Option.tsx +104 -0
- package/src/common/Option/index.ts +1 -0
- package/src/common/RadioButton/RadioButton.css +1 -0
- package/src/common/RadioButton/RadioButton.js +41 -0
- package/src/common/RadioButton/RadioButton.less +3 -0
- package/src/common/RadioButton/RadioButton.spec.js +36 -0
- package/src/common/RadioButton/__snapshots__/RadioButton.spec.js.snap +58 -0
- package/src/common/RadioButton/index.js +1 -0
- package/src/common/bottomSheet/BottomSheet.css +1 -0
- package/src/common/bottomSheet/BottomSheet.less +58 -0
- package/src/common/bottomSheet/BottomSheet.spec.tsx +23 -0
- package/src/common/bottomSheet/BottomSheet.story.tsx +107 -0
- package/src/common/bottomSheet/BottomSheet.tsx +202 -0
- package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +69 -0
- package/src/common/bottomSheet/index.js +1 -0
- package/src/common/captcha.png +0 -0
- package/src/common/card/Card.css +1 -0
- package/src/common/card/Card.less +53 -0
- package/src/common/card/Card.spec.tsx +97 -0
- package/src/common/card/Card.story.tsx +27 -0
- package/src/common/card/Card.tsx +91 -0
- package/src/common/card/__snapshots__/Card.spec.tsx.snap +10 -0
- package/src/common/card/index.ts +1 -0
- package/src/common/closeButton/CloseButton.css +1 -0
- package/src/common/closeButton/CloseButton.less +54 -0
- package/src/common/closeButton/CloseButton.messages.js +9 -0
- package/src/common/closeButton/CloseButton.spec.js +14 -0
- package/src/common/closeButton/CloseButton.tsx +59 -0
- package/src/common/closeButton/__snapshots__/CloseButton.spec.js.snap +30 -0
- package/src/common/closeButton/index.ts +2 -0
- package/src/common/commonProps.ts +23 -0
- package/src/common/dateUtils/getDayNames/getDayNames.js +11 -0
- package/src/common/dateUtils/getDayNames/getDayNames.spec.js +17 -0
- package/src/common/dateUtils/getDayNames/index.js +1 -0
- package/src/common/dateUtils/getMonthNames/getMonthNames.js +13 -0
- package/src/common/dateUtils/getMonthNames/getMonthNames.spec.js +17 -0
- package/src/common/dateUtils/getMonthNames/index.js +1 -0
- package/src/common/dateUtils/index.js +6 -0
- package/src/common/dateUtils/isDateValid/index.js +1 -0
- package/src/common/dateUtils/isDateValid/isDateValid.js +6 -0
- package/src/common/dateUtils/isDateValid/isDateValid.spec.js +11 -0
- package/src/common/dateUtils/isMonthAndYearFormat/index.js +1 -0
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +4 -0
- package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.spec.js +15 -0
- package/src/common/dateUtils/isWithinRange/index.js +1 -0
- package/src/common/dateUtils/isWithinRange/isWithinRange.js +3 -0
- package/src/common/dateUtils/isWithinRange/isWithinRange.spec.js +41 -0
- package/src/common/dateUtils/moveToWithinRange/index.js +1 -0
- package/src/common/dateUtils/moveToWithinRange/moveToWithinRange.js +6 -0
- package/src/common/dateUtils/moveToWithinRange/moveToWithinRange.spec.js +36 -0
- package/src/common/deviceDetection/deviceDetection.js +7 -0
- package/src/common/deviceDetection/deviceDetection.spec.js +45 -0
- package/src/common/deviceDetection/index.js +1 -0
- package/src/common/direction.ts +7 -0
- package/src/common/domHelpers/documentIosClick.js +19 -0
- package/src/common/domHelpers/documentIosClick.spec.js +50 -0
- package/src/common/domHelpers/index.ts +27 -0
- package/src/common/fakeEvents.js +15 -0
- package/src/common/fileType.ts +6 -0
- package/src/common/flowHeader/FlowHeader.spec.js +22 -0
- package/src/common/flowHeader/FlowHeader.tsx +73 -0
- package/src/common/flowHeader/__snapshots__/FlowHeader.spec.js.snap +49 -0
- package/src/common/focusBoundary/FocusBoundary.spec.tsx +66 -0
- package/src/common/focusBoundary/FocusBoundary.tsx +46 -0
- package/src/common/focusBoundary/__snapshots__/FocusBoundary.spec.tsx.snap +16 -0
- package/src/common/focusBoundary/index.js +1 -0
- package/src/common/focusBoundary/utils/getFocusableElements.js +25 -0
- package/src/common/focusBoundary/utils/getFocusableElements.spec.js +51 -0
- package/src/common/focusBoundary/utils/index.js +2 -0
- package/src/common/focusBoundary/utils/resetFocus.js +23 -0
- package/src/common/focusBoundary/utils/resetFocus.spec.js +103 -0
- package/src/common/historyNavigator/historyNavigator.js +37 -0
- package/src/common/historyNavigator/historyNavigator.spec.js +43 -0
- package/src/common/historyNavigator/index.js +1 -0
- package/src/common/hooks/index.js +5 -0
- package/src/common/hooks/useClientWidth/useClientWidth.spec.js +77 -0
- package/src/common/hooks/useClientWidth/useClientWidth.tsx +47 -0
- package/src/common/hooks/useConditionalListener/index.js +1 -0
- package/src/common/hooks/useConditionalListener/useConditionalListener.spec.js +68 -0
- package/src/common/hooks/useConditionalListener/useConditionalListener.ts +25 -0
- package/src/common/hooks/useDirection/index.js +1 -0
- package/src/common/hooks/useDirection/useDirection.spec.js +21 -0
- package/src/common/hooks/useDirection/useDirection.ts +12 -0
- package/src/common/hooks/useHasIntersected/index.js +1 -0
- package/src/common/hooks/useHasIntersected/useHasIntersected.js +60 -0
- package/src/common/hooks/useHasIntersected/useHasIntersected.spec.js +119 -0
- package/src/common/hooks/useLayout/index.ts +1 -0
- package/src/common/hooks/useLayout/useLayout.ts +57 -0
- package/src/common/index.js +26 -0
- package/src/common/key.js +8 -0
- package/src/common/keyCodes.js +19 -0
- package/src/common/locale/index.js +130 -0
- package/src/common/locale/index.spec.js +127 -0
- package/src/common/panel/Panel.css +1 -0
- package/src/common/panel/Panel.less +94 -0
- package/src/common/panel/Panel.spec.js +80 -0
- package/src/common/panel/Panel.tsx +145 -0
- package/src/common/panel/__snapshots__/Panel.spec.js.snap +3 -0
- package/src/common/panel/index.js +1 -0
- package/src/common/propsValues/breakpoint.ts +7 -0
- package/src/common/propsValues/control.ts +19 -0
- package/src/common/propsValues/dateMode.ts +4 -0
- package/src/common/propsValues/layouts.ts +9 -0
- package/src/common/propsValues/markdownNodeType.ts +18 -0
- package/src/common/propsValues/monthFormat.ts +4 -0
- package/src/common/propsValues/position.ts +17 -0
- package/src/common/propsValues/profileType.ts +4 -0
- package/src/common/propsValues/scroll.ts +7 -0
- package/src/common/propsValues/sentiment.ts +20 -0
- package/src/common/propsValues/size.ts +13 -0
- package/src/common/propsValues/status.ts +17 -0
- package/src/common/propsValues/type.ts +14 -0
- package/src/common/propsValues/typography.ts +73 -0
- package/src/common/propsValues/variant.ts +4 -0
- package/src/common/propsValues/width.ts +4 -0
- package/src/common/requirements.js +440 -0
- package/src/common/responsivePanel/ResponsivePanel.spec.js +75 -0
- package/src/common/responsivePanel/ResponsivePanel.tsx +52 -0
- package/src/common/responsivePanel/__snapshots__/ResponsivePanel.spec.js.snap +21 -0
- package/src/common/responsivePanel/index.js +1 -0
- package/src/common/textFormat/formatWithPattern/formatWithPattern.js +25 -0
- package/src/common/textFormat/formatWithPattern/formatWithPattern.spec.js +45 -0
- package/src/common/textFormat/formatWithPattern/index.js +1 -0
- package/src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +8 -0
- package/src/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.spec.js +51 -0
- package/src/common/textFormat/getCountOfSymbolsInSelection/index.js +1 -0
- package/src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +41 -0
- package/src/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.spec.js +134 -0
- package/src/common/textFormat/getCursorPositionAfterKeystroke/index.js +1 -0
- package/src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +31 -0
- package/src/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.spec.js +36 -0
- package/src/common/textFormat/getDistanceToSymbol/index.js +1 -0
- package/src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +13 -0
- package/src/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.spec.js +13 -0
- package/src/common/textFormat/getSymbolsInPatternWithPosition/index.js +1 -0
- package/src/common/textFormat/index.js +7 -0
- package/src/common/textFormat/unformatWithPattern/index.js +1 -0
- package/src/common/textFormat/unformatWithPattern/unformatWithPattern.js +13 -0
- package/src/common/textFormat/unformatWithPattern/unformatWithPattern.spec.js +28 -0
- package/src/common/theme.ts +35 -0
- package/src/criticalBanner/CriticalCommsBanner.css +1 -0
- package/src/criticalBanner/CriticalCommsBanner.less +78 -0
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +19 -0
- package/src/criticalBanner/CriticalCommsBanner.tsx +70 -0
- package/src/criticalBanner/index.ts +1 -0
- package/src/dateInput/DateInput.css +1 -0
- package/src/dateInput/DateInput.js +331 -0
- package/src/dateInput/DateInput.less +5 -0
- package/src/dateInput/DateInput.messages.js +16 -0
- package/src/dateInput/DateInput.spec.js +620 -0
- package/src/dateInput/DateInput.story.tsx +41 -0
- package/src/dateInput/README.md +25 -0
- package/src/dateInput/index.js +3 -0
- package/src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +5 -0
- package/src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.spec.js +23 -0
- package/src/dateInput/utils/convertToLocalMidnight/index.js +1 -0
- package/src/dateInput/utils/explodeDate/explodeDate.js +7 -0
- package/src/dateInput/utils/explodeDate/explodeDate.spec.js +11 -0
- package/src/dateInput/utils/explodeDate/index.js +1 -0
- package/src/dateInput/utils/index.js +2 -0
- package/src/dateLookup/DateLookup.css +1 -0
- package/src/dateLookup/DateLookup.js +279 -0
- package/src/dateLookup/DateLookup.keyboardEvents.spec.js +166 -0
- package/src/dateLookup/DateLookup.less +99 -0
- package/src/dateLookup/DateLookup.state.spec.js +69 -0
- package/src/dateLookup/DateLookup.story.js +81 -0
- package/src/dateLookup/DateLookup.testingLibrary.spec.js +156 -0
- package/src/dateLookup/DateLookup.view.spec.js +142 -0
- package/src/dateLookup/EXAMPLES.md +63 -0
- package/src/dateLookup/dateHeader/DateHeader.js +48 -0
- package/src/dateLookup/dateHeader/DateHeader.spec.js +56 -0
- package/src/dateLookup/dateHeader/index.js +1 -0
- package/src/dateLookup/dateTrigger/DateTrigger.css +1 -0
- package/src/dateLookup/dateTrigger/DateTrigger.js +98 -0
- package/src/dateLookup/dateTrigger/DateTrigger.less +59 -0
- package/src/dateLookup/dateTrigger/DateTrigger.messages.js +9 -0
- package/src/dateLookup/dateTrigger/DateTrigger.spec.js +136 -0
- package/src/dateLookup/dateTrigger/index.js +1 -0
- package/src/dateLookup/dayCalendar/DayCalendar.js +75 -0
- package/src/dateLookup/dayCalendar/DayCalendar.spec.js +116 -0
- package/src/dateLookup/dayCalendar/index.js +1 -0
- package/src/dateLookup/dayCalendar/table/DayCalendarTable.js +135 -0
- package/src/dateLookup/dayCalendar/table/DayCalendarTable.spec.js +121 -0
- package/src/dateLookup/dayCalendar/table/index.js +1 -0
- package/src/dateLookup/getStartOfDay/getStartOfDay.js +10 -0
- package/src/dateLookup/getStartOfDay/getStartOfDay.spec.js +52 -0
- package/src/dateLookup/getStartOfDay/index.js +1 -0
- package/src/dateLookup/index.js +1 -0
- package/src/dateLookup/monthCalendar/MonthCalendar.js +68 -0
- package/src/dateLookup/monthCalendar/MonthCalendar.spec.js +99 -0
- package/src/dateLookup/monthCalendar/index.js +1 -0
- package/src/dateLookup/monthCalendar/table/MonthCalendarTable.js +76 -0
- package/src/dateLookup/monthCalendar/table/MonthCalendarTable.spec.js +88 -0
- package/src/dateLookup/monthCalendar/table/index.js +1 -0
- package/src/dateLookup/tableLink/TableLink.js +48 -0
- package/src/dateLookup/tableLink/TableLink.spec.js +56 -0
- package/src/dateLookup/tableLink/index.js +1 -0
- package/src/dateLookup/yearCalendar/YearCalendar.js +52 -0
- package/src/dateLookup/yearCalendar/YearCalendar.spec.js +75 -0
- package/src/dateLookup/yearCalendar/index.js +1 -0
- package/src/dateLookup/yearCalendar/table/YearCalendarTable.js +62 -0
- package/src/dateLookup/yearCalendar/table/YearCalendarTable.spec.js +96 -0
- package/src/dateLookup/yearCalendar/table/index.js +1 -0
- package/src/decision/Decision.css +1 -0
- package/src/decision/Decision.js +148 -0
- package/src/decision/Decision.less +60 -0
- package/src/decision/Decision.spec.js +136 -0
- package/src/decision/Decision.story.js +253 -0
- package/src/decision/decisionEnums.ts +11 -0
- package/src/decision/index.js +2 -0
- package/src/definitionList/DefinitionList.css +1 -0
- package/src/definitionList/DefinitionList.js +100 -0
- package/src/definitionList/DefinitionList.less +62 -0
- package/src/definitionList/DefinitionList.spec.js +91 -0
- package/src/definitionList/DefinitionList.story.js +69 -0
- package/src/definitionList/index.js +1 -0
- package/src/dimmer/Dimmer.css +1 -0
- package/src/dimmer/Dimmer.less +98 -0
- package/src/dimmer/Dimmer.rtl.spec.js +152 -0
- package/src/dimmer/Dimmer.spec.js +83 -0
- package/src/dimmer/Dimmer.story.tsx +38 -0
- package/src/dimmer/Dimmer.tsx +219 -0
- package/src/dimmer/dimmerManager/DimmerManager.ts +37 -0
- package/src/dimmer/dimmerManager/index.ts +1 -0
- package/src/dimmer/index.js +1 -0
- package/src/display/Display.story.tsx +121 -0
- package/src/display/Display.tsx +27 -0
- package/src/display/index.ts +1 -0
- package/src/drawer/Drawer.css +1 -0
- package/src/drawer/Drawer.js +66 -0
- package/src/drawer/Drawer.less +102 -0
- package/src/drawer/Drawer.rtl.spec.js +55 -0
- package/src/drawer/Drawer.spec.js +80 -0
- package/src/drawer/Drawer.story.js +83 -0
- package/src/drawer/__snapshots__/Drawer.rtl.spec.js.snap +54 -0
- package/src/drawer/index.js +1 -0
- package/src/dropFade/DropFade.css +1 -0
- package/src/dropFade/DropFade.less +22 -0
- package/src/dropFade/DropFade.story.tsx +43 -0
- package/src/dropFade/DropFade.tsx +37 -0
- package/src/dropFade/index.ts +1 -0
- package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +41 -0
- package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.spec.js +21 -0
- package/src/dynamicFieldDefinitionList/DynamicFieldDefinitionList.story.js +134 -0
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -0
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +73 -0
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.less +4 -0
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.spec.js +200 -0
- package/src/dynamicFieldDefinitionList/FormattedValue/index.js +1 -0
- package/src/dynamicFieldDefinitionList/index.js +1 -0
- package/src/dynamicFieldDefinitionList/utils/createDefinitions.js +33 -0
- package/src/dynamicFieldDefinitionList/utils/createDefinitions.spec.js +83 -0
- package/src/dynamicFieldDefinitionList/utils/text-format.js +46 -0
- package/src/dynamicFieldDefinitionList/utils/text-format.spec.js +43 -0
- package/src/emphasis/Emphasis.css +1 -0
- package/src/emphasis/Emphasis.less +32 -0
- package/src/emphasis/Emphasis.spec.js +26 -0
- package/src/emphasis/Emphasis.story.tsx +22 -0
- package/src/emphasis/Emphasis.tsx +22 -0
- package/src/emphasis/EmphasisHtmlTransformer.spec.js +48 -0
- package/src/emphasis/EmphasisHtmlTransformer.ts +56 -0
- package/src/emphasis/index.ts +1 -0
- package/src/flowNavigation/FlowNavigation.css +1 -0
- package/src/flowNavigation/FlowNavigation.less +81 -0
- package/src/flowNavigation/FlowNavigation.spec.js +205 -0
- package/src/flowNavigation/FlowNavigation.story.js +397 -0
- package/src/flowNavigation/FlowNavigation.tsx +110 -0
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +230 -0
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +1 -0
- package/src/flowNavigation/animatedLabel/AnimatedLabel.js +36 -0
- package/src/flowNavigation/animatedLabel/AnimatedLabel.less +37 -0
- package/src/flowNavigation/animatedLabel/AnimatedLabel.spec.js +62 -0
- package/src/flowNavigation/animatedLabel/AnimatedLabel.story.js +22 -0
- package/src/flowNavigation/animatedLabel/__snapshots__/AnimatedLabel.spec.js.snap +25 -0
- package/src/flowNavigation/animatedLabel/index.js +1 -0
- package/src/flowNavigation/backButton/BackButton.css +1 -0
- package/src/flowNavigation/backButton/BackButton.js +27 -0
- package/src/flowNavigation/backButton/BackButton.less +36 -0
- package/src/flowNavigation/backButton/BackButton.spec.js +15 -0
- package/src/flowNavigation/backButton/__snapshots__/BackButton.spec.js.snap +30 -0
- package/src/flowNavigation/backButton/index.js +3 -0
- package/src/header/Header.css +1 -0
- package/src/header/Header.less +22 -0
- package/src/header/Header.spec.tsx +95 -0
- package/src/header/Header.story.tsx +53 -0
- package/src/header/Header.tsx +79 -0
- package/src/header/index.ts +1 -0
- package/src/i18n/index.ts +37 -0
- package/src/image/Image.css +1 -0
- package/src/image/Image.js +78 -0
- package/src/image/Image.less +15 -0
- package/src/image/Image.spec.js +94 -0
- package/src/image/Image.story.js +62 -0
- package/src/image/index.js +1 -0
- package/src/index.ts +159 -0
- package/src/info/Info.css +1 -0
- package/src/info/Info.less +43 -0
- package/src/info/Info.spec.js +68 -0
- package/src/info/Info.story.tsx +53 -0
- package/src/info/Info.tsx +94 -0
- package/src/info/index.ts +3 -0
- package/src/info/infoPresentations.ts +5 -0
- package/src/inlineAlert/InlineAlert.js +62 -0
- package/src/inlineAlert/InlineAlert.spec.js +83 -0
- package/src/inlineAlert/InlineAlert.story.js +99 -0
- package/src/inlineAlert/index.js +1 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.js +14 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.spec.js +34 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.js +94 -0
- package/src/inputWithDisplayFormat/index.js +1 -0
- package/src/inputs/Input.css +1 -0
- package/src/inputs/Input.less +1 -0
- package/src/inputs/Input.tsx +28 -0
- package/src/inputs/TextArea.css +1 -0
- package/src/inputs/TextArea.less +8 -0
- package/src/inputs/TextArea.tsx +26 -0
- package/src/inputs/_common.less +63 -0
- package/src/inputs/_common.ts +21 -0
- package/src/instructionsList/InstructionList.story.js +27 -0
- package/src/instructionsList/InstructionsList.css +1 -0
- package/src/instructionsList/InstructionsList.less +36 -0
- package/src/instructionsList/InstructionsList.spec.js +29 -0
- package/src/instructionsList/InstructionsList.tsx +46 -0
- package/src/instructionsList/index.js +3 -0
- package/src/link/Link.css +1 -0
- package/src/link/Link.less +14 -0
- package/src/link/Link.spec.tsx +47 -0
- package/src/link/Link.story.tsx +93 -0
- package/src/link/Link.tsx +47 -0
- package/src/link/index.ts +2 -0
- package/src/listItem/ListItem.css +1 -0
- package/src/listItem/ListItem.less +7 -0
- package/src/listItem/ListItem.spec.tsx +51 -0
- package/src/listItem/ListItem.story.tsx +148 -0
- package/src/listItem/ListItem.tsx +53 -0
- package/src/listItem/index.js +1 -0
- package/src/loader/Loader.css +1 -0
- package/src/loader/Loader.less +332 -0
- package/src/loader/Loader.spec.js +51 -0
- package/src/loader/Loader.story.tsx +24 -0
- package/src/loader/Loader.tsx +100 -0
- package/src/loader/index.js +3 -0
- package/src/logo/Logo.css +1 -0
- package/src/logo/Logo.js +71 -0
- package/src/logo/Logo.less +13 -0
- package/src/logo/Logo.spec.js +41 -0
- package/src/logo/Logo.story.tsx +28 -0
- package/src/logo/__snapshots__/Logo.spec.js.snap +61 -0
- package/src/logo/index.js +2 -0
- package/src/logo/logoTypes.ts +5 -0
- package/src/main.css +1 -0
- package/src/main.less +70 -0
- package/src/markdown/Markdown.js +131 -0
- package/src/markdown/Markdown.spec.js +141 -0
- package/src/markdown/Markdown.story.tsx +21 -0
- package/src/markdown/index.js +1 -0
- package/src/modal/Modal.css +1 -0
- package/src/modal/Modal.less +187 -0
- package/src/modal/Modal.rtl.spec.js +57 -0
- package/src/modal/Modal.spec.js +177 -0
- package/src/modal/Modal.story.tsx +82 -0
- package/src/modal/Modal.tsx +167 -0
- package/src/modal/index.ts +2 -0
- package/src/money/Money.js +15 -0
- package/src/money/Money.spec.js +18 -0
- package/src/money/Money.story.tsx +17 -0
- package/src/money/index.js +1 -0
- package/src/moneyInput/MoneyInput.css +1 -0
- package/src/moneyInput/MoneyInput.js +446 -0
- package/src/moneyInput/MoneyInput.less +188 -0
- package/src/moneyInput/MoneyInput.messages.js +8 -0
- package/src/moneyInput/MoneyInput.spec.js +606 -0
- package/src/moneyInput/MoneyInput.story.tsx +113 -0
- package/src/moneyInput/currencyFormatting.js +81 -0
- package/src/moneyInput/currencyFormatting.spec.js +44 -0
- package/src/moneyInput/index.js +1 -0
- package/src/navigationOption/NavigationOption.css +1 -0
- package/src/navigationOption/NavigationOption.less +67 -0
- package/src/navigationOption/NavigationOption.spec.js +93 -0
- package/src/navigationOption/NavigationOption.story.js +281 -0
- package/src/navigationOption/NavigationOption.tsx +40 -0
- package/src/navigationOption/index.ts +1 -0
- package/src/navigationOptionsList/NavigationOptionsList.css +1 -0
- package/src/navigationOptionsList/NavigationOptionsList.js +20 -0
- package/src/navigationOptionsList/NavigationOptionsList.less +12 -0
- package/src/navigationOptionsList/NavigationOptionsList.spec.js +17 -0
- package/src/navigationOptionsList/NavigationOptionsList.story.js +17 -0
- package/src/navigationOptionsList/index.js +1 -0
- package/src/nudge/Nudge.css +1 -0
- package/src/nudge/Nudge.less +134 -0
- package/src/nudge/Nudge.spec.tsx +126 -0
- package/src/nudge/Nudge.story.tsx +106 -0
- package/src/nudge/Nudge.tsx +184 -0
- package/src/nudge/index.ts +1 -0
- package/src/overlayHeader/OverlayHeader.css +1 -0
- package/src/overlayHeader/OverlayHeader.js +40 -0
- package/src/overlayHeader/OverlayHeader.less +31 -0
- package/src/overlayHeader/OverlayHeader.spec.js +32 -0
- package/src/overlayHeader/OverlayHeader.story.js +51 -0
- package/src/overlayHeader/__snapshots__/OverlayHeader.spec.js.snap +67 -0
- package/src/overlayHeader/index.js +1 -0
- package/src/phoneNumberInput/PhoneNumberInput.css +1 -0
- package/src/phoneNumberInput/PhoneNumberInput.js +210 -0
- package/src/phoneNumberInput/PhoneNumberInput.less +20 -0
- package/src/phoneNumberInput/PhoneNumberInput.spec.js +379 -0
- package/src/phoneNumberInput/PhoneNumberInput.story.js +34 -0
- package/src/phoneNumberInput/data/countries.js +1529 -0
- package/src/phoneNumberInput/data/countries.spec.js +12 -0
- package/src/phoneNumberInput/index.js +1 -0
- package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.js +4 -0
- package/src/phoneNumberInput/utils/cleanNumber/cleanNumber.spec.js +17 -0
- package/src/phoneNumberInput/utils/cleanNumber/index.js +1 -0
- package/src/phoneNumberInput/utils/excludeCountries/excludeCountries.js +18 -0
- package/src/phoneNumberInput/utils/excludeCountries/excludeCountries.spec.js +23 -0
- package/src/phoneNumberInput/utils/excludeCountries/index.js +1 -0
- package/src/phoneNumberInput/utils/explodeNumberModel/explodeNumberModel.spec.js +21 -0
- package/src/phoneNumberInput/utils/explodeNumberModel/index.js +27 -0
- package/src/phoneNumberInput/utils/filterOptionsForQuery/filterOptionsForQuery.spec.js +36 -0
- package/src/phoneNumberInput/utils/filterOptionsForQuery/index.js +11 -0
- package/src/phoneNumberInput/utils/findCountryByCode/findCountryByCode.spec.js +21 -0
- package/src/phoneNumberInput/utils/findCountryByCode/index.js +10 -0
- package/src/phoneNumberInput/utils/findCountryByPrefix/findCountryByPrefix.spec.js +16 -0
- package/src/phoneNumberInput/utils/findCountryByPrefix/index.js +11 -0
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +26 -0
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.spec.js +67 -0
- package/src/phoneNumberInput/utils/groupCountriesByPrefix/index.js +1 -0
- package/src/phoneNumberInput/utils/index.js +13 -0
- package/src/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +1 -0
- package/src/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +25 -0
- package/src/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.spec.js +66 -0
- package/src/phoneNumberInput/utils/isStringNumeric/index.js +1 -0
- package/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +1 -0
- package/src/phoneNumberInput/utils/isStringNumeric/isStringNumeric.spec.js +15 -0
- package/src/phoneNumberInput/utils/isValidPhoneNumber/index.js +1 -0
- package/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +10 -0
- package/src/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.spec.js +17 -0
- package/src/phoneNumberInput/utils/longestMatchingPrefix/index.js +2 -0
- package/src/phoneNumberInput/utils/longestMatchingPrefix/longestMatchingPrefix.spec.js +21 -0
- package/src/phoneNumberInput/utils/setDefaultPrefix/index.js +25 -0
- package/src/phoneNumberInput/utils/setDefaultPrefix/setDefaultPrefix.spec.js +34 -0
- package/src/phoneNumberInput/utils/sortArrayByProperty/index.js +1 -0
- package/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +3 -0
- package/src/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.spec.js +56 -0
- package/src/popover/Popover.css +1 -0
- package/src/popover/Popover.js +97 -0
- package/src/popover/Popover.less +40 -0
- package/src/popover/Popover.spec.js +119 -0
- package/src/popover/Popover.story.js +54 -0
- package/src/popover/__snapshots__/Popover.spec.js.snap +106 -0
- package/src/popover/index.js +1 -0
- package/src/processIndicator/ProcessIndicator.js +117 -0
- package/src/processIndicator/ProcessIndicator.spec.js +101 -0
- package/src/processIndicator/ProcessIndicator.story.tsx +20 -0
- package/src/processIndicator/index.js +2 -0
- package/src/progress/Progress.css +1 -0
- package/src/progress/Progress.less +40 -0
- package/src/progress/Progress.spec.js +21 -0
- package/src/progress/Progress.story.tsx +16 -0
- package/src/progress/Progress.tsx +29 -0
- package/src/progress/index.ts +1 -0
- package/src/progressBar/ProgressBar.css +1 -0
- package/src/progressBar/ProgressBar.less +14 -0
- package/src/progressBar/ProgressBar.spec.js +32 -0
- package/src/progressBar/ProgressBar.story.tsx +21 -0
- package/src/progressBar/ProgressBar.tsx +51 -0
- package/src/progressBar/index.ts +1 -0
- package/src/promoCard/PromoCard.css +1 -0
- package/src/promoCard/PromoCard.less +193 -0
- package/src/promoCard/PromoCard.spec.tsx +160 -0
- package/src/promoCard/PromoCard.story.tsx +90 -0
- package/src/promoCard/PromoCard.tsx +343 -0
- package/src/promoCard/PromoCardContext.spec.tsx +52 -0
- package/src/promoCard/PromoCardContext.tsx +58 -0
- package/src/promoCard/PromoCardGroup.spec.tsx +138 -0
- package/src/promoCard/PromoCardGroup.story.tsx +82 -0
- package/src/promoCard/PromoCardGroup.tsx +131 -0
- package/src/promoCard/PromoCardIndicator.tsx +74 -0
- package/src/promoCard/__snapshots__/PromoCard.spec.tsx.snap +39 -0
- package/src/promoCard/__snapshots__/PromoCardGroup.spec.tsx.snap +78 -0
- package/src/promoCard/index.ts +2 -0
- package/src/provider/Provider.js +55 -0
- package/src/provider/Provider.spec.tsx +99 -0
- package/src/provider/Provider.story.tsx +20 -0
- package/src/provider/direction/DirectionProvider.spec.tsx +31 -0
- package/src/provider/direction/DirectionProvider.tsx +11 -0
- package/src/provider/direction/index.js +1 -0
- package/src/provider/index.js +3 -0
- package/src/provider/language/LanguageProvider.spec.tsx +22 -0
- package/src/provider/language/LanguageProvider.tsx +11 -0
- package/src/provider/language/index.js +1 -0
- package/src/radio/Radio.js +67 -0
- package/src/radio/Radio.rtl.spec.js +24 -0
- package/src/radio/Radio.spec.js +76 -0
- package/src/radio/Radio.story.js +85 -0
- package/src/radio/__snapshots__/Radio.rtl.spec.js.snap +50 -0
- package/src/radio/index.js +3 -0
- package/src/radioGroup/RadioGroup.js +66 -0
- package/src/radioGroup/RadioGroup.spec.js +74 -0
- package/src/radioGroup/RadioGroup.story.js +57 -0
- package/src/radioGroup/index.js +1 -0
- package/src/radioOption/RadioOption.js +81 -0
- package/src/radioOption/RadioOption.spec.js +67 -0
- package/src/radioOption/RadioOption.story.js +83 -0
- package/src/radioOption/index.js +1 -0
- package/src/section/Section.css +1 -0
- package/src/section/Section.less +8 -0
- package/src/section/Section.spec.tsx +11 -0
- package/src/section/Section.story.tsx +117 -0
- package/src/section/Section.tsx +29 -0
- package/src/section/index.ts +1 -0
- package/src/select/Select.css +1 -0
- package/src/select/Select.js +637 -0
- package/src/select/Select.less +347 -0
- package/src/select/Select.messages.ts +8 -0
- package/src/select/Select.spec.js +627 -0
- package/src/select/Select.story.js +408 -0
- package/src/select/index.js +3 -0
- package/src/select/option/Option.spec.js +61 -0
- package/src/select/option/Option.tsx +87 -0
- package/src/select/option/index.js +3 -0
- package/src/select/searchBox/SearchBox.spec.js +24 -0
- package/src/select/searchBox/SearchBox.tsx +55 -0
- package/src/select/searchBox/__snapshots__/SearchBox.spec.js.snap +46 -0
- package/src/select/searchBox/index.js +1 -0
- package/src/sizeSwapper/SizeSwapper.js +69 -0
- package/src/sizeSwapper/SizeSwapper.spec.js +100 -0
- package/src/sizeSwapper/SizeSwapper.story.js +34 -0
- package/src/sizeSwapper/index.js +1 -0
- package/src/slidingPanel/SlidingPanel.css +1 -0
- package/src/slidingPanel/SlidingPanel.js +72 -0
- package/src/slidingPanel/SlidingPanel.less +98 -0
- package/src/slidingPanel/SlidingPanel.spec.js +65 -0
- package/src/slidingPanel/SlidingPanel.story.js +32 -0
- package/src/slidingPanel/index.js +1 -0
- package/src/snackbar/Snackbar.css +1 -0
- package/src/snackbar/Snackbar.js +126 -0
- package/src/snackbar/Snackbar.less +86 -0
- package/src/snackbar/Snackbar.spec.js +112 -0
- package/src/snackbar/Snackbar.story.js +126 -0
- package/src/snackbar/SnackbarContext.js +4 -0
- package/src/snackbar/SnackbarProvider.js +51 -0
- package/src/snackbar/__snapshots__/Snackbar.spec.js.snap +5 -0
- package/src/snackbar/index.js +1 -0
- package/src/snackbar/useSnackbar.js +11 -0
- package/src/ssr.spec.js +221 -0
- package/src/statusIcon/StatusIcon.css +1 -0
- package/src/statusIcon/StatusIcon.less +63 -0
- package/src/statusIcon/StatusIcon.spec.js +70 -0
- package/src/statusIcon/StatusIcon.story.tsx +51 -0
- package/src/statusIcon/StatusIcon.tsx +37 -0
- package/src/statusIcon/index.js +1 -0
- package/src/stepper/Stepper.css +1 -0
- package/src/stepper/Stepper.less +118 -0
- package/src/stepper/Stepper.spec.js +211 -0
- package/src/stepper/Stepper.story.js +40 -0
- package/src/stepper/Stepper.tsx +94 -0
- package/src/stepper/deviceDetection.js +31 -0
- package/src/stepper/deviceDetection.spec.js +63 -0
- package/src/sticky/Sticky.js +23 -0
- package/src/sticky/Sticky.spec.js +35 -0
- package/src/sticky/Sticky.story.js +23 -0
- package/src/sticky/index.js +1 -0
- package/src/summary/Summary.css +1 -0
- package/src/summary/Summary.less +85 -0
- package/src/summary/Summary.messages.ts +16 -0
- package/src/summary/Summary.spec.tsx +74 -0
- package/src/summary/Summary.story.tsx +90 -0
- package/src/summary/Summary.tsx +193 -0
- package/src/summary/index.ts +2 -0
- package/src/switch/Switch.css +1 -0
- package/src/switch/Switch.less +70 -0
- package/src/switch/Switch.spec.js +85 -0
- package/src/switch/Switch.story.tsx +61 -0
- package/src/switch/Switch.tsx +90 -0
- package/src/switch/__snapshots__/Switch.spec.js.snap +86 -0
- package/src/switch/index.ts +1 -0
- package/src/switchOption/SwitchOption.spec.js +128 -0
- package/src/switchOption/SwitchOption.story.tsx +74 -0
- package/src/switchOption/SwitchOption.tsx +81 -0
- package/src/switchOption/index.ts +1 -0
- package/src/tabs/Tab.js +75 -0
- package/src/tabs/TabList.js +15 -0
- package/src/tabs/TabPanel.js +20 -0
- package/src/tabs/Tabs.css +1 -0
- package/src/tabs/Tabs.js +597 -0
- package/src/tabs/Tabs.less +140 -0
- package/src/tabs/Tabs.spec.js +404 -0
- package/src/tabs/Tabs.story.js +135 -0
- package/src/tabs/index.js +1 -0
- package/src/tabs/utils.js +51 -0
- package/src/tabs/utils.spec.js +123 -0
- package/src/test-utils/Parameters.d.ts +61 -0
- package/src/test-utils/fake-data.ts +14 -0
- package/src/test-utils/index.js +37 -0
- package/src/test-utils/jest.setup.js +28 -0
- package/src/test-utils/story-config.ts +60 -0
- package/src/test-utils/style-mock.js +1 -0
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +14 -0
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.spec.js +15 -0
- package/src/textareaWithDisplayFormat/index.js +1 -0
- package/src/tile/Tile.css +1 -0
- package/src/tile/Tile.js +93 -0
- package/src/tile/Tile.less +77 -0
- package/src/tile/Tile.spec.js +77 -0
- package/src/tile/Tile.story.js +56 -0
- package/src/tile/__snapshots__/Tile.spec.js.snap +57 -0
- package/src/tile/index.js +1 -0
- package/src/title/Title.spec.tsx +44 -0
- package/src/title/Title.story.tsx +28 -0
- package/src/title/Title.tsx +40 -0
- package/src/title/index.ts +1 -0
- package/src/tooltip/Tooltip.css +1 -0
- package/src/tooltip/Tooltip.less +49 -0
- package/src/tooltip/Tooltip.spec.tsx +48 -0
- package/src/tooltip/Tooltip.story.tsx +42 -0
- package/src/tooltip/Tooltip.tsx +131 -0
- package/src/tooltip/index.js +3 -0
- package/src/typeahead/Typeahead.css +1 -0
- package/src/typeahead/Typeahead.js +510 -0
- package/src/typeahead/Typeahead.less +229 -0
- package/src/typeahead/Typeahead.spec.js +379 -0
- package/src/typeahead/Typeahead.story.js +116 -0
- package/src/typeahead/index.js +3 -0
- package/src/typeahead/typeaheadInput/TypeaheadInput.js +144 -0
- package/src/typeahead/typeaheadInput/TypeaheadInput.spec.js +67 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +1 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.js +45 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.less +13 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.spec.js +64 -0
- package/src/typeahead/util/highlight.js +16 -0
- package/src/typeahead/util/highlight.spec.js +34 -0
- package/src/upload/Upload.css +1 -0
- package/src/upload/Upload.events.spec.js +49 -0
- package/src/upload/Upload.js +436 -0
- package/src/upload/Upload.less +21 -0
- package/src/upload/Upload.messages.js +44 -0
- package/src/upload/Upload.spec.js +266 -0
- package/src/upload/Upload.story.js +36 -0
- package/src/upload/index.js +2 -0
- package/src/upload/steps/completeStep/completeStep.js +95 -0
- package/src/upload/steps/completeStep/completeStep.spec.js +59 -0
- package/src/upload/steps/completeStep/index.js +1 -0
- package/src/upload/steps/index.js +4 -0
- package/src/upload/steps/mediaUploadStep/index.js +1 -0
- package/src/upload/steps/mediaUploadStep/mediaUploadStep.js +80 -0
- package/src/upload/steps/mediaUploadStep/mediaUploadStep.spec.js +77 -0
- package/src/upload/steps/processingStep/index.js +1 -0
- package/src/upload/steps/processingStep/processingStep.js +72 -0
- package/src/upload/steps/processingStep/processingStep.spec.js +55 -0
- package/src/upload/steps/uploadImageStep/index.js +1 -0
- package/src/upload/steps/uploadImageStep/uploadImageStep.js +81 -0
- package/src/upload/steps/uploadImageStep/uploadImageStep.spec.js +66 -0
- package/src/upload/uploadSteps.ts +5 -0
- package/src/upload/utils/asyncFileRead/asyncFileRead.js +11 -0
- package/src/upload/utils/asyncFileRead/asyncFileRead.spec.js +17 -0
- package/src/upload/utils/asyncFileRead/index.js +1 -0
- package/src/upload/utils/getFileType/getFileType.js +19 -0
- package/src/upload/utils/getFileType/getFileType.spec.js +33 -0
- package/src/upload/utils/getFileType/index.js +1 -0
- package/src/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +18 -0
- package/src/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.spec.js +22 -0
- package/src/upload/utils/getSupportedSpotMimeTypes/index.js +1 -0
- package/src/upload/utils/index.js +7 -0
- package/src/upload/utils/isSizeValid/index.js +1 -0
- package/src/upload/utils/isSizeValid/isSizeValid.js +1 -0
- package/src/upload/utils/isSizeValid/isSizeValid.spec.js +17 -0
- package/src/upload/utils/isTypeValid/index.js +1 -0
- package/src/upload/utils/isTypeValid/isTypeValid.js +26 -0
- package/src/upload/utils/isTypeValid/isTypeValid.spec.js +68 -0
- package/src/upload/utils/postData/index.js +1 -0
- package/src/upload/utils/postData/postData.js +18 -0
- package/src/upload/utils/postData/postData.spec.js +109 -0
- package/src/upload/utils/requestMedia/index.js +1 -0
- package/src/upload/utils/requestMedia/requestMedia.js +26 -0
- package/src/upload/utils/requestMedia/requestMedia.spec.js +44 -0
- package/src/uploadInput/UploadInput.css +1 -0
- package/src/uploadInput/UploadInput.less +71 -0
- package/src/uploadInput/UploadInput.messages.ts +41 -0
- package/src/uploadInput/UploadInput.spec.tsx +314 -0
- package/src/uploadInput/UploadInput.story.tsx +168 -0
- package/src/uploadInput/UploadInput.tsx +382 -0
- package/src/uploadInput/index.ts +1 -0
- package/src/uploadInput/types.ts +58 -0
- package/src/uploadInput/uploadButton/UploadButton.css +1 -0
- package/src/uploadInput/uploadButton/UploadButton.less +57 -0
- package/src/uploadInput/uploadButton/UploadButton.messages.ts +33 -0
- package/src/uploadInput/uploadButton/UploadButton.spec.tsx +111 -0
- package/src/uploadInput/uploadButton/UploadButton.tsx +268 -0
- package/src/uploadInput/uploadButton/defaults.ts +5 -0
- package/src/uploadInput/uploadButton/getAllowedFileTypes.spec.ts +41 -0
- package/src/uploadInput/uploadButton/getAllowedFileTypes.ts +12 -0
- package/src/uploadInput/uploadItem/UploadItem.css +1 -0
- package/src/uploadInput/uploadItem/UploadItem.less +77 -0
- package/src/uploadInput/uploadItem/UploadItem.messages.ts +39 -0
- package/src/uploadInput/uploadItem/UploadItem.spec.tsx +122 -0
- package/src/uploadInput/uploadItem/UploadItem.tsx +164 -0
- package/src/uploadInput/uploadItem/UploadItemBody.tsx +30 -0
- package/src/utilities/deprecatedProperty/deprecatedProperty.js +41 -0
- package/src/utilities/deprecatedProperty/deprecatedProperty.spec.js +89 -0
- package/src/utilities/deprecatedProperty/index.js +1 -0
- package/src/utilities/index.js +2 -0
- package/src/utilities/logActionRequired.js +12 -0
- package/src/utils.ts +1 -0
- package/src/withDisplayFormat/WithDisplayFormat.js +312 -0
- package/src/withDisplayFormat/WithDisplayFormat.spec.js +235 -0
- package/src/withDisplayFormat/WithDisplayFormat.state.spec.js +42 -0
- package/src/withDisplayFormat/index.js +1 -0
- package/src/withNextPortal/withNextPortal.spec.js +26 -0
- package/src/withNextPortal/withNextPortal.tsx +15 -0
- package/build/es/no-polyfill/accordion/Accordion.js +0 -1
- package/build/es/no-polyfill/accordion/Accordion.story.js +0 -1
- package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +0 -1
- package/build/es/no-polyfill/accordion/AccordionItem/index.js +0 -1
- package/build/es/no-polyfill/accordion/index.js +0 -1
- package/build/es/no-polyfill/actionButton/ActionButton.js +0 -1
- package/build/es/no-polyfill/actionButton/ActionButton.spec.js +0 -1
- package/build/es/no-polyfill/actionButton/ActionButton.story.js +0 -1
- package/build/es/no-polyfill/actionButton/index.js +0 -1
- package/build/es/no-polyfill/actionOption/ActionOption.js +0 -1
- package/build/es/no-polyfill/actionOption/ActionOption.story.js +0 -1
- package/build/es/no-polyfill/actionOption/index.js +0 -1
- package/build/es/no-polyfill/alert/Alert.js +0 -1
- package/build/es/no-polyfill/alert/Alert.story.js +0 -1
- package/build/es/no-polyfill/alert/index.js +0 -1
- package/build/es/no-polyfill/alert/inlineMarkdown/InlineMarkdown.js +0 -1
- package/build/es/no-polyfill/alert/inlineMarkdown/index.js +0 -1
- package/build/es/no-polyfill/alert/withArrow/alertArrowPositions.js +0 -2
- package/build/es/no-polyfill/alert/withArrow/index.js +0 -1
- package/build/es/no-polyfill/alert/withArrow/withArrow.js +0 -1
- package/build/es/no-polyfill/avatar/Avatar.js +0 -1
- package/build/es/no-polyfill/avatar/Avatar.story.js +0 -1
- package/build/es/no-polyfill/avatar/avatarTypes.js +0 -2
- package/build/es/no-polyfill/avatar/colors/colors.js +0 -10
- package/build/es/no-polyfill/avatar/colors/index.js +0 -1
- package/build/es/no-polyfill/avatar/index.js +0 -1
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +0 -1
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.story.js +0 -1
- package/build/es/no-polyfill/avatarWrapper/index.js +0 -1
- package/build/es/no-polyfill/badge/Badge.js +0 -1
- package/build/es/no-polyfill/badge/index.js +0 -1
- package/build/es/no-polyfill/body/Body.js +0 -3
- package/build/es/no-polyfill/body/Body.spec.js +0 -1
- package/build/es/no-polyfill/body/Body.story.js +0 -1
- package/build/es/no-polyfill/body/index.js +0 -1
- package/build/es/no-polyfill/button/Button.js +0 -7
- package/build/es/no-polyfill/button/Button.story.js +0 -1
- package/build/es/no-polyfill/button/classMap.js +0 -1
- package/build/es/no-polyfill/button/index.js +0 -1
- package/build/es/no-polyfill/button/legacyUtils/index.js +0 -1
- package/build/es/no-polyfill/button/legacyUtils/legacyUtils.js +0 -4
- package/build/es/no-polyfill/card/Card.js +0 -1
- package/build/es/no-polyfill/card/index.js +0 -1
- package/build/es/no-polyfill/checkbox/Checkbox.js +0 -1
- package/build/es/no-polyfill/checkbox/Checkbox.story.js +0 -1
- package/build/es/no-polyfill/checkbox/index.js +0 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.js +0 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.spec.js +0 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +0 -2
- package/build/es/no-polyfill/checkboxButton/index.js +0 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.js +0 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.spec.js +0 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.story.js +0 -1
- package/build/es/no-polyfill/checkboxOption/index.js +0 -1
- package/build/es/no-polyfill/chevron/Chevron.js +0 -1
- package/build/es/no-polyfill/chevron/Chevron.story.js +0 -1
- package/build/es/no-polyfill/chevron/index.js +0 -1
- package/build/es/no-polyfill/chips/Chip.js +0 -1
- package/build/es/no-polyfill/chips/Chips.js +0 -1
- package/build/es/no-polyfill/chips/Chips.messages.js +0 -1
- package/build/es/no-polyfill/chips/Chips.spec.js +0 -1
- package/build/es/no-polyfill/chips/Chips.story.js +0 -1
- package/build/es/no-polyfill/chips/index.js +0 -1
- package/build/es/no-polyfill/circularButton/CircularButton.js +0 -1
- package/build/es/no-polyfill/circularButton/index.js +0 -1
- package/build/es/no-polyfill/common/DOMOperations/DOMOperations.js +0 -9
- package/build/es/no-polyfill/common/DOMOperations/index.js +0 -1
- package/build/es/no-polyfill/common/Option/Option.js +0 -1
- package/build/es/no-polyfill/common/Option/index.js +0 -1
- package/build/es/no-polyfill/common/RadioButton/RadioButton.js +0 -1
- package/build/es/no-polyfill/common/RadioButton/index.js +0 -1
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +0 -10
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.spec.js +0 -1
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.story.js +0 -2
- package/build/es/no-polyfill/common/bottomSheet/index.js +0 -1
- package/build/es/no-polyfill/common/card/Card.js +0 -21
- package/build/es/no-polyfill/common/card/Card.spec.js +0 -6
- package/build/es/no-polyfill/common/card/Card.story.js +0 -1
- package/build/es/no-polyfill/common/card/index.js +0 -1
- package/build/es/no-polyfill/common/closeButton/CloseButton.js +0 -1
- package/build/es/no-polyfill/common/closeButton/CloseButton.messages.js +0 -1
- package/build/es/no-polyfill/common/closeButton/index.js +0 -1
- package/build/es/no-polyfill/common/commonProps.js +0 -0
- package/build/es/no-polyfill/common/dateUtils/getDayNames/getDayNames.js +0 -2
- package/build/es/no-polyfill/common/dateUtils/getDayNames/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/getMonthNames/getMonthNames.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/getMonthNames/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/isDateValid/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/isDateValid/isDateValid.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/isWithinRange/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/isWithinRange/isWithinRange.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/index.js +0 -1
- package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -2
- package/build/es/no-polyfill/common/deviceDetection/deviceDetection.js +0 -1
- package/build/es/no-polyfill/common/deviceDetection/index.js +0 -1
- package/build/es/no-polyfill/common/direction.js +0 -1
- package/build/es/no-polyfill/common/domHelpers/documentIosClick.js +0 -5
- package/build/es/no-polyfill/common/domHelpers/index.js +0 -1
- package/build/es/no-polyfill/common/fakeEvents.js +0 -1
- package/build/es/no-polyfill/common/fileType.js +0 -1
- package/build/es/no-polyfill/common/flowHeader/FlowHeader.js +0 -1
- package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.js +0 -1
- package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.spec.js +0 -1
- package/build/es/no-polyfill/common/focusBoundary/index.js +0 -1
- package/build/es/no-polyfill/common/focusBoundary/utils/getFocusableElements.js +0 -6
- package/build/es/no-polyfill/common/focusBoundary/utils/index.js +0 -1
- package/build/es/no-polyfill/common/focusBoundary/utils/resetFocus.js +0 -6
- package/build/es/no-polyfill/common/historyNavigator/historyNavigator.js +0 -1
- package/build/es/no-polyfill/common/historyNavigator/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/useClientWidth/useClientWidth.js +0 -5
- package/build/es/no-polyfill/common/hooks/useConditionalListener/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/useConditionalListener/useConditionalListener.js +0 -1
- package/build/es/no-polyfill/common/hooks/useDirection/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/useDirection/useDirection.js +0 -1
- package/build/es/no-polyfill/common/hooks/useHasIntersected/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/useHasIntersected/useHasIntersected.js +0 -11
- package/build/es/no-polyfill/common/hooks/useLayout/index.js +0 -1
- package/build/es/no-polyfill/common/hooks/useLayout/useLayout.js +0 -1
- package/build/es/no-polyfill/common/index.js +0 -2
- package/build/es/no-polyfill/common/key.js +0 -1
- package/build/es/no-polyfill/common/keyCodes.js +0 -5
- package/build/es/no-polyfill/common/locale/index.js +0 -37
- package/build/es/no-polyfill/common/panel/Panel.js +0 -10
- package/build/es/no-polyfill/common/panel/index.js +0 -1
- package/build/es/no-polyfill/common/propsValues/breakpoint.js +0 -1
- package/build/es/no-polyfill/common/propsValues/control.js +0 -1
- package/build/es/no-polyfill/common/propsValues/dateMode.js +0 -1
- package/build/es/no-polyfill/common/propsValues/layouts.js +0 -1
- package/build/es/no-polyfill/common/propsValues/markdownNodeType.js +0 -1
- package/build/es/no-polyfill/common/propsValues/monthFormat.js +0 -1
- package/build/es/no-polyfill/common/propsValues/position.js +0 -1
- package/build/es/no-polyfill/common/propsValues/profileType.js +0 -1
- package/build/es/no-polyfill/common/propsValues/scroll.js +0 -1
- package/build/es/no-polyfill/common/propsValues/sentiment.js +0 -1
- package/build/es/no-polyfill/common/propsValues/size.js +0 -1
- package/build/es/no-polyfill/common/propsValues/status.js +0 -1
- package/build/es/no-polyfill/common/propsValues/type.js +0 -3
- package/build/es/no-polyfill/common/propsValues/typography.js +0 -3
- package/build/es/no-polyfill/common/propsValues/variant.js +0 -1
- package/build/es/no-polyfill/common/propsValues/width.js +0 -1
- package/build/es/no-polyfill/common/requirements.js +0 -3
- package/build/es/no-polyfill/common/responsivePanel/ResponsivePanel.js +0 -1
- package/build/es/no-polyfill/common/responsivePanel/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +0 -2
- package/build/es/no-polyfill/common/textFormat/formatWithPattern/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -2
- package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -1
- package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/unformatWithPattern/index.js +0 -1
- package/build/es/no-polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -1
- package/build/es/no-polyfill/common/theme.js +0 -1
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
- package/build/es/no-polyfill/criticalBanner/index.js +0 -1
- package/build/es/no-polyfill/dateInput/DateInput.js +0 -4
- package/build/es/no-polyfill/dateInput/DateInput.messages.js +0 -1
- package/build/es/no-polyfill/dateInput/DateInput.story.js +0 -1
- package/build/es/no-polyfill/dateInput/index.js +0 -1
- package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -2
- package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/index.js +0 -1
- package/build/es/no-polyfill/dateInput/utils/explodeDate/explodeDate.js +0 -1
- package/build/es/no-polyfill/dateInput/utils/explodeDate/index.js +0 -1
- package/build/es/no-polyfill/dateInput/utils/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/DateLookup.js +0 -3
- package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +0 -1
- package/build/es/no-polyfill/dateLookup/dateHeader/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.js +0 -1
- package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +0 -1
- package/build/es/no-polyfill/dateLookup/dateTrigger/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/dayCalendar/DayCalendar.js +0 -1
- package/build/es/no-polyfill/dateLookup/dayCalendar/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -4
- package/build/es/no-polyfill/dateLookup/dayCalendar/table/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/getStartOfDay/getStartOfDay.js +0 -5
- package/build/es/no-polyfill/dateLookup/getStartOfDay/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/monthCalendar/MonthCalendar.js +0 -1
- package/build/es/no-polyfill/dateLookup/monthCalendar/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -1
- package/build/es/no-polyfill/dateLookup/monthCalendar/table/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +0 -2
- package/build/es/no-polyfill/dateLookup/tableLink/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/yearCalendar/YearCalendar.js +0 -1
- package/build/es/no-polyfill/dateLookup/yearCalendar/index.js +0 -1
- package/build/es/no-polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -1
- package/build/es/no-polyfill/dateLookup/yearCalendar/table/index.js +0 -1
- package/build/es/no-polyfill/decision/Decision.js +0 -5
- package/build/es/no-polyfill/decision/decisionEnums.js +0 -3
- package/build/es/no-polyfill/decision/index.js +0 -1
- package/build/es/no-polyfill/definitionList/DefinitionList.js +0 -1
- package/build/es/no-polyfill/definitionList/index.js +0 -1
- package/build/es/no-polyfill/dimmer/Dimmer.js +0 -6
- package/build/es/no-polyfill/dimmer/Dimmer.story.js +0 -2
- package/build/es/no-polyfill/dimmer/dimmerManager/DimmerManager.js +0 -5
- package/build/es/no-polyfill/dimmer/dimmerManager/index.js +0 -1
- package/build/es/no-polyfill/dimmer/index.js +0 -1
- package/build/es/no-polyfill/display/Display.js +0 -1
- package/build/es/no-polyfill/display/Display.story.js +0 -2
- package/build/es/no-polyfill/display/index.js +0 -1
- package/build/es/no-polyfill/drawer/Drawer.js +0 -1
- package/build/es/no-polyfill/drawer/index.js +0 -1
- package/build/es/no-polyfill/dropFade/DropFade.js +0 -3
- package/build/es/no-polyfill/dropFade/DropFade.story.js +0 -1
- package/build/es/no-polyfill/dropFade/index.js +0 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -8
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/index.js +0 -1
- package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -2
- package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/text-format.js +0 -1
- package/build/es/no-polyfill/emphasis/Emphasis.js +0 -2
- package/build/es/no-polyfill/emphasis/Emphasis.story.js +0 -1
- package/build/es/no-polyfill/emphasis/EmphasisHtmlTransformer.js +0 -7
- package/build/es/no-polyfill/emphasis/index.js +0 -1
- package/build/es/no-polyfill/flowNavigation/FlowNavigation.js +0 -2
- package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +0 -1
- package/build/es/no-polyfill/flowNavigation/animatedLabel/index.js +0 -1
- package/build/es/no-polyfill/flowNavigation/backButton/BackButton.js +0 -1
- package/build/es/no-polyfill/flowNavigation/backButton/index.js +0 -1
- package/build/es/no-polyfill/header/Header.js +0 -5
- package/build/es/no-polyfill/header/Header.spec.js +0 -1
- package/build/es/no-polyfill/header/Header.story.js +0 -2
- package/build/es/no-polyfill/header/index.js +0 -1
- package/build/es/no-polyfill/i18n/index.js +0 -1
- package/build/es/no-polyfill/image/Image.js +0 -12
- package/build/es/no-polyfill/image/index.js +0 -1
- package/build/es/no-polyfill/index.js +0 -13
- package/build/es/no-polyfill/info/Info.js +0 -1
- package/build/es/no-polyfill/info/Info.story.js +0 -1
- package/build/es/no-polyfill/info/index.js +0 -1
- package/build/es/no-polyfill/info/infoPresentations.js +0 -2
- package/build/es/no-polyfill/inlineAlert/InlineAlert.js +0 -1
- package/build/es/no-polyfill/inlineAlert/index.js +0 -1
- package/build/es/no-polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -1
- package/build/es/no-polyfill/inputWithDisplayFormat/index.js +0 -1
- package/build/es/no-polyfill/inputs/Input.js +0 -1
- package/build/es/no-polyfill/inputs/TextArea.js +0 -1
- package/build/es/no-polyfill/inputs/_common.js +0 -2
- package/build/es/no-polyfill/instructionsList/InstructionsList.js +0 -3
- package/build/es/no-polyfill/instructionsList/index.js +0 -1
- package/build/es/no-polyfill/link/Link.js +0 -5
- package/build/es/no-polyfill/link/Link.spec.js +0 -1
- package/build/es/no-polyfill/link/Link.story.js +0 -1
- package/build/es/no-polyfill/link/index.js +0 -1
- package/build/es/no-polyfill/listItem/ListItem.js +0 -1
- package/build/es/no-polyfill/listItem/ListItem.spec.js +0 -1
- package/build/es/no-polyfill/listItem/ListItem.story.js +0 -1
- package/build/es/no-polyfill/listItem/index.js +0 -1
- package/build/es/no-polyfill/loader/Loader.js +0 -11
- package/build/es/no-polyfill/loader/Loader.story.js +0 -1
- package/build/es/no-polyfill/loader/index.js +0 -1
- package/build/es/no-polyfill/logo/Logo.js +0 -1
- package/build/es/no-polyfill/logo/Logo.story.js +0 -1
- package/build/es/no-polyfill/logo/index.js +0 -1
- package/build/es/no-polyfill/logo/logoTypes.js +0 -2
- package/build/es/no-polyfill/markdown/Markdown.js +0 -1
- package/build/es/no-polyfill/markdown/Markdown.story.js +0 -1
- package/build/es/no-polyfill/markdown/index.js +0 -1
- package/build/es/no-polyfill/modal/Modal.js +0 -1
- package/build/es/no-polyfill/modal/Modal.story.js +0 -2
- package/build/es/no-polyfill/modal/index.js +0 -1
- package/build/es/no-polyfill/money/Money.js +0 -1
- package/build/es/no-polyfill/money/Money.story.js +0 -1
- package/build/es/no-polyfill/money/index.js +0 -1
- package/build/es/no-polyfill/moneyInput/MoneyInput.js +0 -5
- package/build/es/no-polyfill/moneyInput/MoneyInput.messages.js +0 -1
- package/build/es/no-polyfill/moneyInput/MoneyInput.story.js +0 -1
- package/build/es/no-polyfill/moneyInput/currencyFormatting.js +0 -4
- package/build/es/no-polyfill/moneyInput/index.js +0 -1
- package/build/es/no-polyfill/navigationOption/NavigationOption.js +0 -1
- package/build/es/no-polyfill/navigationOption/index.js +0 -1
- package/build/es/no-polyfill/navigationOptionsList/NavigationOptionsList.js +0 -1
- package/build/es/no-polyfill/navigationOptionsList/index.js +0 -1
- package/build/es/no-polyfill/nudge/Nudge.js +0 -3
- package/build/es/no-polyfill/nudge/Nudge.spec.js +0 -1
- package/build/es/no-polyfill/nudge/Nudge.story.js +0 -1
- package/build/es/no-polyfill/nudge/index.js +0 -1
- package/build/es/no-polyfill/overlayHeader/OverlayHeader.js +0 -1
- package/build/es/no-polyfill/overlayHeader/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/data/countries.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -8
- package/build/es/no-polyfill/phoneNumberInput/utils/excludeCountries/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +0 -7
- package/build/es/no-polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -7
- package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByCode/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -7
- package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -6
- package/build/es/no-polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -11
- package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +0 -1
- package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -2
- package/build/es/no-polyfill/popover/Popover.js +0 -4
- package/build/es/no-polyfill/popover/index.js +0 -1
- package/build/es/no-polyfill/processIndicator/ProcessIndicator.js +0 -12
- package/build/es/no-polyfill/processIndicator/ProcessIndicator.story.js +0 -1
- package/build/es/no-polyfill/processIndicator/index.js +0 -1
- package/build/es/no-polyfill/progress/Progress.js +0 -1
- package/build/es/no-polyfill/progress/Progress.story.js +0 -1
- package/build/es/no-polyfill/progress/index.js +0 -1
- package/build/es/no-polyfill/progressBar/ProgressBar.js +0 -1
- package/build/es/no-polyfill/progressBar/ProgressBar.story.js +0 -1
- package/build/es/no-polyfill/progressBar/index.js +0 -1
- package/build/es/no-polyfill/promoCard/PromoCard.js +0 -51
- package/build/es/no-polyfill/promoCard/PromoCard.spec.js +0 -13
- package/build/es/no-polyfill/promoCard/PromoCard.story.js +0 -1
- package/build/es/no-polyfill/promoCard/PromoCardContext.js +0 -19
- package/build/es/no-polyfill/promoCard/PromoCardContext.spec.js +0 -4
- package/build/es/no-polyfill/promoCard/PromoCardGroup.js +0 -20
- package/build/es/no-polyfill/promoCard/PromoCardGroup.spec.js +0 -5
- package/build/es/no-polyfill/promoCard/PromoCardGroup.story.js +0 -1
- package/build/es/no-polyfill/promoCard/PromoCardIndicator.js +0 -16
- package/build/es/no-polyfill/promoCard/index.js +0 -1
- package/build/es/no-polyfill/provider/Provider.js +0 -1
- package/build/es/no-polyfill/provider/Provider.spec.js +0 -1
- package/build/es/no-polyfill/provider/Provider.story.js +0 -1
- package/build/es/no-polyfill/provider/direction/DirectionProvider.js +0 -1
- package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +0 -1
- package/build/es/no-polyfill/provider/direction/index.js +0 -1
- package/build/es/no-polyfill/provider/index.js +0 -1
- package/build/es/no-polyfill/provider/language/LanguageProvider.js +0 -1
- package/build/es/no-polyfill/provider/language/LanguageProvider.spec.js +0 -1
- package/build/es/no-polyfill/provider/language/index.js +0 -1
- package/build/es/no-polyfill/radio/Radio.js +0 -1
- package/build/es/no-polyfill/radio/index.js +0 -1
- package/build/es/no-polyfill/radioGroup/RadioGroup.js +0 -2
- package/build/es/no-polyfill/radioGroup/index.js +0 -1
- package/build/es/no-polyfill/radioOption/RadioOption.js +0 -1
- package/build/es/no-polyfill/radioOption/index.js +0 -1
- package/build/es/no-polyfill/section/Section.js +0 -5
- package/build/es/no-polyfill/section/Section.spec.js +0 -1
- package/build/es/no-polyfill/section/Section.story.js +0 -1
- package/build/es/no-polyfill/section/index.js +0 -1
- package/build/es/no-polyfill/select/Select.js +0 -16
- package/build/es/no-polyfill/select/Select.messages.js +0 -1
- package/build/es/no-polyfill/select/index.js +0 -1
- package/build/es/no-polyfill/select/option/Option.js +0 -2
- package/build/es/no-polyfill/select/option/index.js +0 -1
- package/build/es/no-polyfill/select/searchBox/SearchBox.js +0 -1
- package/build/es/no-polyfill/select/searchBox/index.js +0 -1
- package/build/es/no-polyfill/sizeSwapper/SizeSwapper.js +0 -5
- package/build/es/no-polyfill/sizeSwapper/index.js +0 -1
- package/build/es/no-polyfill/slidingPanel/SlidingPanel.js +0 -2
- package/build/es/no-polyfill/slidingPanel/index.js +0 -1
- package/build/es/no-polyfill/snackbar/Snackbar.js +0 -1
- package/build/es/no-polyfill/snackbar/SnackbarContext.js +0 -1
- package/build/es/no-polyfill/snackbar/SnackbarProvider.js +0 -1
- package/build/es/no-polyfill/snackbar/index.js +0 -1
- package/build/es/no-polyfill/snackbar/useSnackbar.js +0 -1
- package/build/es/no-polyfill/statusIcon/StatusIcon.js +0 -1
- package/build/es/no-polyfill/statusIcon/StatusIcon.story.js +0 -1
- package/build/es/no-polyfill/statusIcon/index.js +0 -1
- package/build/es/no-polyfill/stepper/Stepper.js +0 -1
- package/build/es/no-polyfill/stepper/deviceDetection.js +0 -4
- package/build/es/no-polyfill/sticky/Sticky.js +0 -1
- package/build/es/no-polyfill/sticky/index.js +0 -1
- package/build/es/no-polyfill/summary/Summary.js +0 -1
- package/build/es/no-polyfill/summary/Summary.messages.js +0 -1
- package/build/es/no-polyfill/summary/index.js +0 -1
- package/build/es/no-polyfill/switch/Switch.js +0 -1
- package/build/es/no-polyfill/switch/Switch.story.js +0 -1
- package/build/es/no-polyfill/switch/index.js +0 -1
- package/build/es/no-polyfill/switchOption/SwitchOption.js +0 -1
- package/build/es/no-polyfill/switchOption/SwitchOption.story.js +0 -1
- package/build/es/no-polyfill/switchOption/index.js +0 -1
- package/build/es/no-polyfill/tabs/Tab.js +0 -1
- package/build/es/no-polyfill/tabs/TabList.js +0 -1
- package/build/es/no-polyfill/tabs/TabPanel.js +0 -1
- package/build/es/no-polyfill/tabs/Tabs.js +0 -1
- package/build/es/no-polyfill/tabs/index.js +0 -1
- package/build/es/no-polyfill/tabs/utils.js +0 -5
- package/build/es/no-polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -1
- package/build/es/no-polyfill/textareaWithDisplayFormat/index.js +0 -1
- package/build/es/no-polyfill/tile/Tile.js +0 -1
- package/build/es/no-polyfill/tile/index.js +0 -1
- package/build/es/no-polyfill/title/Title.js +0 -1
- package/build/es/no-polyfill/title/Title.spec.js +0 -1
- package/build/es/no-polyfill/title/Title.story.js +0 -1
- package/build/es/no-polyfill/title/index.js +0 -1
- package/build/es/no-polyfill/tooltip/Tooltip.js +0 -8
- package/build/es/no-polyfill/tooltip/Tooltip.spec.js +0 -1
- package/build/es/no-polyfill/tooltip/Tooltip.story.js +0 -1
- package/build/es/no-polyfill/tooltip/index.js +0 -1
- package/build/es/no-polyfill/typeahead/Typeahead.js +0 -1
- package/build/es/no-polyfill/typeahead/index.js +0 -1
- package/build/es/no-polyfill/typeahead/typeaheadInput/TypeaheadInput.js +0 -1
- package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +0 -1
- package/build/es/no-polyfill/typeahead/util/highlight.js +0 -1
- package/build/es/no-polyfill/upload/Upload.js +0 -12
- package/build/es/no-polyfill/upload/Upload.messages.js +0 -1
- package/build/es/no-polyfill/upload/index.js +0 -1
- package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +0 -1
- package/build/es/no-polyfill/upload/steps/completeStep/index.js +0 -1
- package/build/es/no-polyfill/upload/steps/index.js +0 -1
- package/build/es/no-polyfill/upload/steps/mediaUploadStep/index.js +0 -1
- package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -1
- package/build/es/no-polyfill/upload/steps/processingStep/index.js +0 -1
- package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +0 -1
- package/build/es/no-polyfill/upload/steps/uploadImageStep/index.js +0 -1
- package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
- package/build/es/no-polyfill/upload/uploadSteps.js +0 -2
- package/build/es/no-polyfill/upload/utils/asyncFileRead/asyncFileRead.js +0 -1
- package/build/es/no-polyfill/upload/utils/asyncFileRead/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/getFileType/getFileType.js +0 -1
- package/build/es/no-polyfill/upload/utils/getFileType/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -2
- package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/isSizeValid/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/isSizeValid/isSizeValid.js +0 -1
- package/build/es/no-polyfill/upload/utils/isTypeValid/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/isTypeValid/isTypeValid.js +0 -1
- package/build/es/no-polyfill/upload/utils/postData/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/postData/postData.js +0 -1
- package/build/es/no-polyfill/upload/utils/requestMedia/index.js +0 -1
- package/build/es/no-polyfill/upload/utils/requestMedia/requestMedia.js +0 -1
- package/build/es/no-polyfill/uploadInput/UploadInput.js +0 -8
- package/build/es/no-polyfill/uploadInput/UploadInput.messages.js +0 -1
- package/build/es/no-polyfill/uploadInput/UploadInput.spec.js +0 -1
- package/build/es/no-polyfill/uploadInput/UploadInput.story.js +0 -1
- package/build/es/no-polyfill/uploadInput/index.js +0 -1
- package/build/es/no-polyfill/uploadInput/types.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.messages.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.spec.js +0 -3
- package/build/es/no-polyfill/uploadInput/uploadButton/defaults.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +0 -3
- package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +0 -2
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.messages.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.spec.js +0 -1
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItemBody.js +0 -1
- package/build/es/no-polyfill/utilities/deprecatedProperty/deprecatedProperty.js +0 -1
- package/build/es/no-polyfill/utilities/deprecatedProperty/index.js +0 -1
- package/build/es/no-polyfill/utilities/index.js +0 -1
- package/build/es/no-polyfill/utilities/logActionRequired.js +0 -1
- package/build/es/no-polyfill/utils.js +0 -0
- package/build/es/no-polyfill/withDisplayFormat/WithDisplayFormat.js +0 -8
- package/build/es/no-polyfill/withDisplayFormat/index.js +0 -1
- package/build/es/no-polyfill/withNextPortal/withNextPortal.js +0 -1
- package/build/es/polyfill/accordion/Accordion.js +0 -1
- package/build/es/polyfill/accordion/Accordion.story.js +0 -1
- package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +0 -1
- package/build/es/polyfill/accordion/AccordionItem/index.js +0 -1
- package/build/es/polyfill/accordion/index.js +0 -1
- package/build/es/polyfill/actionButton/ActionButton.js +0 -1
- package/build/es/polyfill/actionButton/ActionButton.spec.js +0 -1
- package/build/es/polyfill/actionButton/ActionButton.story.js +0 -1
- package/build/es/polyfill/actionButton/index.js +0 -1
- package/build/es/polyfill/actionOption/ActionOption.js +0 -1
- package/build/es/polyfill/actionOption/ActionOption.story.js +0 -1
- package/build/es/polyfill/actionOption/index.js +0 -1
- package/build/es/polyfill/alert/Alert.js +0 -1
- package/build/es/polyfill/alert/Alert.story.js +0 -1
- package/build/es/polyfill/alert/index.js +0 -1
- package/build/es/polyfill/alert/inlineMarkdown/InlineMarkdown.js +0 -1
- package/build/es/polyfill/alert/inlineMarkdown/index.js +0 -1
- package/build/es/polyfill/alert/withArrow/alertArrowPositions.js +0 -2
- package/build/es/polyfill/alert/withArrow/index.js +0 -1
- package/build/es/polyfill/alert/withArrow/withArrow.js +0 -1
- package/build/es/polyfill/avatar/Avatar.js +0 -1
- package/build/es/polyfill/avatar/Avatar.story.js +0 -1
- package/build/es/polyfill/avatar/avatarTypes.js +0 -2
- package/build/es/polyfill/avatar/colors/colors.js +0 -10
- package/build/es/polyfill/avatar/colors/index.js +0 -1
- package/build/es/polyfill/avatar/index.js +0 -1
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +0 -1
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.story.js +0 -1
- package/build/es/polyfill/avatarWrapper/index.js +0 -1
- package/build/es/polyfill/badge/Badge.js +0 -1
- package/build/es/polyfill/badge/index.js +0 -1
- package/build/es/polyfill/body/Body.js +0 -3
- package/build/es/polyfill/body/Body.spec.js +0 -1
- package/build/es/polyfill/body/Body.story.js +0 -1
- package/build/es/polyfill/body/index.js +0 -1
- package/build/es/polyfill/button/Button.js +0 -7
- package/build/es/polyfill/button/Button.story.js +0 -1
- package/build/es/polyfill/button/classMap.js +0 -1
- package/build/es/polyfill/button/index.js +0 -1
- package/build/es/polyfill/button/legacyUtils/index.js +0 -1
- package/build/es/polyfill/button/legacyUtils/legacyUtils.js +0 -4
- package/build/es/polyfill/card/Card.js +0 -1
- package/build/es/polyfill/card/index.js +0 -1
- package/build/es/polyfill/checkbox/Checkbox.js +0 -1
- package/build/es/polyfill/checkbox/Checkbox.story.js +0 -1
- package/build/es/polyfill/checkbox/index.js +0 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.js +0 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.spec.js +0 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +0 -2
- package/build/es/polyfill/checkboxButton/index.js +0 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.js +0 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.spec.js +0 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.story.js +0 -1
- package/build/es/polyfill/checkboxOption/index.js +0 -1
- package/build/es/polyfill/chevron/Chevron.js +0 -1
- package/build/es/polyfill/chevron/Chevron.story.js +0 -1
- package/build/es/polyfill/chevron/index.js +0 -1
- package/build/es/polyfill/chips/Chip.js +0 -1
- package/build/es/polyfill/chips/Chips.js +0 -1
- package/build/es/polyfill/chips/Chips.messages.js +0 -1
- package/build/es/polyfill/chips/Chips.spec.js +0 -1
- package/build/es/polyfill/chips/Chips.story.js +0 -1
- package/build/es/polyfill/chips/index.js +0 -1
- package/build/es/polyfill/circularButton/CircularButton.js +0 -1
- package/build/es/polyfill/circularButton/index.js +0 -1
- package/build/es/polyfill/common/DOMOperations/DOMOperations.js +0 -9
- package/build/es/polyfill/common/DOMOperations/index.js +0 -1
- package/build/es/polyfill/common/Option/Option.js +0 -1
- package/build/es/polyfill/common/Option/index.js +0 -1
- package/build/es/polyfill/common/RadioButton/RadioButton.js +0 -1
- package/build/es/polyfill/common/RadioButton/index.js +0 -1
- package/build/es/polyfill/common/bottomSheet/BottomSheet.js +0 -10
- package/build/es/polyfill/common/bottomSheet/BottomSheet.spec.js +0 -1
- package/build/es/polyfill/common/bottomSheet/BottomSheet.story.js +0 -2
- package/build/es/polyfill/common/bottomSheet/index.js +0 -1
- package/build/es/polyfill/common/card/Card.js +0 -21
- package/build/es/polyfill/common/card/Card.spec.js +0 -6
- package/build/es/polyfill/common/card/Card.story.js +0 -1
- package/build/es/polyfill/common/card/index.js +0 -1
- package/build/es/polyfill/common/closeButton/CloseButton.js +0 -1
- package/build/es/polyfill/common/closeButton/CloseButton.messages.js +0 -1
- package/build/es/polyfill/common/closeButton/index.js +0 -1
- package/build/es/polyfill/common/commonProps.js +0 -0
- package/build/es/polyfill/common/dateUtils/getDayNames/getDayNames.js +0 -2
- package/build/es/polyfill/common/dateUtils/getDayNames/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/getMonthNames/getMonthNames.js +0 -1
- package/build/es/polyfill/common/dateUtils/getMonthNames/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/isDateValid/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/isDateValid/isDateValid.js +0 -1
- package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -1
- package/build/es/polyfill/common/dateUtils/isWithinRange/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/isWithinRange/isWithinRange.js +0 -1
- package/build/es/polyfill/common/dateUtils/moveToWithinRange/index.js +0 -1
- package/build/es/polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -2
- package/build/es/polyfill/common/deviceDetection/deviceDetection.js +0 -1
- package/build/es/polyfill/common/deviceDetection/index.js +0 -1
- package/build/es/polyfill/common/direction.js +0 -1
- package/build/es/polyfill/common/domHelpers/documentIosClick.js +0 -5
- package/build/es/polyfill/common/domHelpers/index.js +0 -1
- package/build/es/polyfill/common/fakeEvents.js +0 -1
- package/build/es/polyfill/common/fileType.js +0 -1
- package/build/es/polyfill/common/flowHeader/FlowHeader.js +0 -1
- package/build/es/polyfill/common/focusBoundary/FocusBoundary.js +0 -1
- package/build/es/polyfill/common/focusBoundary/FocusBoundary.spec.js +0 -1
- package/build/es/polyfill/common/focusBoundary/index.js +0 -1
- package/build/es/polyfill/common/focusBoundary/utils/getFocusableElements.js +0 -6
- package/build/es/polyfill/common/focusBoundary/utils/index.js +0 -1
- package/build/es/polyfill/common/focusBoundary/utils/resetFocus.js +0 -6
- package/build/es/polyfill/common/historyNavigator/historyNavigator.js +0 -1
- package/build/es/polyfill/common/historyNavigator/index.js +0 -1
- package/build/es/polyfill/common/hooks/index.js +0 -1
- package/build/es/polyfill/common/hooks/useClientWidth/useClientWidth.js +0 -5
- package/build/es/polyfill/common/hooks/useConditionalListener/index.js +0 -1
- package/build/es/polyfill/common/hooks/useConditionalListener/useConditionalListener.js +0 -1
- package/build/es/polyfill/common/hooks/useDirection/index.js +0 -1
- package/build/es/polyfill/common/hooks/useDirection/useDirection.js +0 -1
- package/build/es/polyfill/common/hooks/useHasIntersected/index.js +0 -1
- package/build/es/polyfill/common/hooks/useHasIntersected/useHasIntersected.js +0 -11
- package/build/es/polyfill/common/hooks/useLayout/index.js +0 -1
- package/build/es/polyfill/common/hooks/useLayout/useLayout.js +0 -1
- package/build/es/polyfill/common/index.js +0 -2
- package/build/es/polyfill/common/key.js +0 -1
- package/build/es/polyfill/common/keyCodes.js +0 -5
- package/build/es/polyfill/common/locale/index.js +0 -37
- package/build/es/polyfill/common/panel/Panel.js +0 -10
- package/build/es/polyfill/common/panel/index.js +0 -1
- package/build/es/polyfill/common/propsValues/breakpoint.js +0 -1
- package/build/es/polyfill/common/propsValues/control.js +0 -1
- package/build/es/polyfill/common/propsValues/dateMode.js +0 -1
- package/build/es/polyfill/common/propsValues/layouts.js +0 -1
- package/build/es/polyfill/common/propsValues/markdownNodeType.js +0 -1
- package/build/es/polyfill/common/propsValues/monthFormat.js +0 -1
- package/build/es/polyfill/common/propsValues/position.js +0 -1
- package/build/es/polyfill/common/propsValues/profileType.js +0 -1
- package/build/es/polyfill/common/propsValues/scroll.js +0 -1
- package/build/es/polyfill/common/propsValues/sentiment.js +0 -1
- package/build/es/polyfill/common/propsValues/size.js +0 -1
- package/build/es/polyfill/common/propsValues/status.js +0 -1
- package/build/es/polyfill/common/propsValues/type.js +0 -3
- package/build/es/polyfill/common/propsValues/typography.js +0 -3
- package/build/es/polyfill/common/propsValues/variant.js +0 -1
- package/build/es/polyfill/common/propsValues/width.js +0 -1
- package/build/es/polyfill/common/requirements.js +0 -3
- package/build/es/polyfill/common/responsivePanel/ResponsivePanel.js +0 -1
- package/build/es/polyfill/common/responsivePanel/index.js +0 -1
- package/build/es/polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +0 -2
- package/build/es/polyfill/common/textFormat/formatWithPattern/index.js +0 -1
- package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -1
- package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +0 -1
- package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -1
- package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +0 -1
- package/build/es/polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -2
- package/build/es/polyfill/common/textFormat/getDistanceToSymbol/index.js +0 -1
- package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -1
- package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +0 -1
- package/build/es/polyfill/common/textFormat/index.js +0 -1
- package/build/es/polyfill/common/textFormat/unformatWithPattern/index.js +0 -1
- package/build/es/polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -1
- package/build/es/polyfill/common/theme.js +0 -1
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.js +0 -1
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +0 -1
- package/build/es/polyfill/criticalBanner/index.js +0 -1
- package/build/es/polyfill/dateInput/DateInput.js +0 -4
- package/build/es/polyfill/dateInput/DateInput.messages.js +0 -1
- package/build/es/polyfill/dateInput/DateInput.story.js +0 -1
- package/build/es/polyfill/dateInput/index.js +0 -1
- package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -2
- package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/index.js +0 -1
- package/build/es/polyfill/dateInput/utils/explodeDate/explodeDate.js +0 -1
- package/build/es/polyfill/dateInput/utils/explodeDate/index.js +0 -1
- package/build/es/polyfill/dateInput/utils/index.js +0 -1
- package/build/es/polyfill/dateLookup/DateLookup.js +0 -3
- package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +0 -1
- package/build/es/polyfill/dateLookup/dateHeader/index.js +0 -1
- package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.js +0 -1
- package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +0 -1
- package/build/es/polyfill/dateLookup/dateTrigger/index.js +0 -1
- package/build/es/polyfill/dateLookup/dayCalendar/DayCalendar.js +0 -1
- package/build/es/polyfill/dateLookup/dayCalendar/index.js +0 -1
- package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -4
- package/build/es/polyfill/dateLookup/dayCalendar/table/index.js +0 -1
- package/build/es/polyfill/dateLookup/getStartOfDay/getStartOfDay.js +0 -5
- package/build/es/polyfill/dateLookup/getStartOfDay/index.js +0 -1
- package/build/es/polyfill/dateLookup/index.js +0 -1
- package/build/es/polyfill/dateLookup/monthCalendar/MonthCalendar.js +0 -1
- package/build/es/polyfill/dateLookup/monthCalendar/index.js +0 -1
- package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -1
- package/build/es/polyfill/dateLookup/monthCalendar/table/index.js +0 -1
- package/build/es/polyfill/dateLookup/tableLink/TableLink.js +0 -2
- package/build/es/polyfill/dateLookup/tableLink/index.js +0 -1
- package/build/es/polyfill/dateLookup/yearCalendar/YearCalendar.js +0 -1
- package/build/es/polyfill/dateLookup/yearCalendar/index.js +0 -1
- package/build/es/polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -1
- package/build/es/polyfill/dateLookup/yearCalendar/table/index.js +0 -1
- package/build/es/polyfill/decision/Decision.js +0 -5
- package/build/es/polyfill/decision/decisionEnums.js +0 -3
- package/build/es/polyfill/decision/index.js +0 -1
- package/build/es/polyfill/definitionList/DefinitionList.js +0 -1
- package/build/es/polyfill/definitionList/index.js +0 -1
- package/build/es/polyfill/dimmer/Dimmer.js +0 -6
- package/build/es/polyfill/dimmer/Dimmer.story.js +0 -2
- package/build/es/polyfill/dimmer/dimmerManager/DimmerManager.js +0 -5
- package/build/es/polyfill/dimmer/dimmerManager/index.js +0 -1
- package/build/es/polyfill/dimmer/index.js +0 -1
- package/build/es/polyfill/display/Display.js +0 -1
- package/build/es/polyfill/display/Display.story.js +0 -2
- package/build/es/polyfill/display/index.js +0 -1
- package/build/es/polyfill/drawer/Drawer.js +0 -1
- package/build/es/polyfill/drawer/index.js +0 -1
- package/build/es/polyfill/dropFade/DropFade.js +0 -3
- package/build/es/polyfill/dropFade/DropFade.story.js +0 -1
- package/build/es/polyfill/dropFade/index.js +0 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +0 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +0 -8
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +0 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/index.js +0 -1
- package/build/es/polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +0 -2
- package/build/es/polyfill/dynamicFieldDefinitionList/utils/text-format.js +0 -1
- package/build/es/polyfill/emphasis/Emphasis.js +0 -2
- package/build/es/polyfill/emphasis/Emphasis.story.js +0 -1
- package/build/es/polyfill/emphasis/EmphasisHtmlTransformer.js +0 -7
- package/build/es/polyfill/emphasis/index.js +0 -1
- package/build/es/polyfill/flowNavigation/FlowNavigation.js +0 -2
- package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +0 -1
- package/build/es/polyfill/flowNavigation/animatedLabel/index.js +0 -1
- package/build/es/polyfill/flowNavigation/backButton/BackButton.js +0 -1
- package/build/es/polyfill/flowNavigation/backButton/index.js +0 -1
- package/build/es/polyfill/header/Header.js +0 -5
- package/build/es/polyfill/header/Header.spec.js +0 -1
- package/build/es/polyfill/header/Header.story.js +0 -2
- package/build/es/polyfill/header/index.js +0 -1
- package/build/es/polyfill/i18n/cs.json +0 -44
- package/build/es/polyfill/i18n/de.json +0 -44
- package/build/es/polyfill/i18n/en.json +0 -41
- package/build/es/polyfill/i18n/es.json +0 -44
- package/build/es/polyfill/i18n/fr.json +0 -44
- package/build/es/polyfill/i18n/hu.json +0 -44
- package/build/es/polyfill/i18n/id.json +0 -44
- package/build/es/polyfill/i18n/index.js +0 -1
- package/build/es/polyfill/i18n/it.json +0 -44
- package/build/es/polyfill/i18n/ja.json +0 -44
- package/build/es/polyfill/i18n/pl.json +0 -44
- package/build/es/polyfill/i18n/pt.json +0 -44
- package/build/es/polyfill/i18n/ro.json +0 -44
- package/build/es/polyfill/i18n/ru.json +0 -44
- package/build/es/polyfill/i18n/th.json +0 -44
- package/build/es/polyfill/i18n/tr.json +0 -44
- package/build/es/polyfill/i18n/uk.json +0 -44
- package/build/es/polyfill/i18n/zh-CN.json +0 -44
- package/build/es/polyfill/i18n/zh.json +0 -44
- package/build/es/polyfill/i18n/zh_CN.json +0 -44
- package/build/es/polyfill/image/Image.js +0 -12
- package/build/es/polyfill/image/index.js +0 -1
- package/build/es/polyfill/index.js +0 -13
- package/build/es/polyfill/info/Info.js +0 -1
- package/build/es/polyfill/info/Info.story.js +0 -1
- package/build/es/polyfill/info/index.js +0 -1
- package/build/es/polyfill/info/infoPresentations.js +0 -2
- package/build/es/polyfill/inlineAlert/InlineAlert.js +0 -1
- package/build/es/polyfill/inlineAlert/index.js +0 -1
- package/build/es/polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -1
- package/build/es/polyfill/inputWithDisplayFormat/index.js +0 -1
- package/build/es/polyfill/inputs/Input.js +0 -1
- package/build/es/polyfill/inputs/TextArea.js +0 -1
- package/build/es/polyfill/inputs/_common.js +0 -2
- package/build/es/polyfill/instructionsList/InstructionsList.js +0 -3
- package/build/es/polyfill/instructionsList/index.js +0 -1
- package/build/es/polyfill/link/Link.js +0 -5
- package/build/es/polyfill/link/Link.spec.js +0 -1
- package/build/es/polyfill/link/Link.story.js +0 -1
- package/build/es/polyfill/link/index.js +0 -1
- package/build/es/polyfill/listItem/ListItem.js +0 -1
- package/build/es/polyfill/listItem/ListItem.spec.js +0 -1
- package/build/es/polyfill/listItem/ListItem.story.js +0 -1
- package/build/es/polyfill/listItem/index.js +0 -1
- package/build/es/polyfill/loader/Loader.js +0 -11
- package/build/es/polyfill/loader/Loader.story.js +0 -1
- package/build/es/polyfill/loader/index.js +0 -1
- package/build/es/polyfill/logo/Logo.js +0 -1
- package/build/es/polyfill/logo/Logo.story.js +0 -1
- package/build/es/polyfill/logo/index.js +0 -1
- package/build/es/polyfill/logo/logoTypes.js +0 -2
- package/build/es/polyfill/markdown/Markdown.js +0 -1
- package/build/es/polyfill/markdown/Markdown.story.js +0 -1
- package/build/es/polyfill/markdown/index.js +0 -1
- package/build/es/polyfill/modal/Modal.js +0 -1
- package/build/es/polyfill/modal/Modal.story.js +0 -2
- package/build/es/polyfill/modal/index.js +0 -1
- package/build/es/polyfill/money/Money.js +0 -1
- package/build/es/polyfill/money/Money.story.js +0 -1
- package/build/es/polyfill/money/index.js +0 -1
- package/build/es/polyfill/moneyInput/MoneyInput.js +0 -5
- package/build/es/polyfill/moneyInput/MoneyInput.messages.js +0 -1
- package/build/es/polyfill/moneyInput/MoneyInput.story.js +0 -1
- package/build/es/polyfill/moneyInput/currencyFormatting.js +0 -4
- package/build/es/polyfill/moneyInput/index.js +0 -1
- package/build/es/polyfill/navigationOption/NavigationOption.js +0 -1
- package/build/es/polyfill/navigationOption/index.js +0 -1
- package/build/es/polyfill/navigationOptionsList/NavigationOptionsList.js +0 -1
- package/build/es/polyfill/navigationOptionsList/index.js +0 -1
- package/build/es/polyfill/nudge/Nudge.js +0 -3
- package/build/es/polyfill/nudge/Nudge.spec.js +0 -1
- package/build/es/polyfill/nudge/Nudge.story.js +0 -1
- package/build/es/polyfill/nudge/index.js +0 -1
- package/build/es/polyfill/overlayHeader/OverlayHeader.js +0 -1
- package/build/es/polyfill/overlayHeader/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +0 -1
- package/build/es/polyfill/phoneNumberInput/data/countries.js +0 -1
- package/build/es/polyfill/phoneNumberInput/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -8
- package/build/es/polyfill/phoneNumberInput/utils/excludeCountries/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +0 -7
- package/build/es/polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +0 -7
- package/build/es/polyfill/phoneNumberInput/utils/findCountryByCode/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +0 -7
- package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -6
- package/build/es/polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -11
- package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +0 -1
- package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -2
- package/build/es/polyfill/popover/Popover.js +0 -4
- package/build/es/polyfill/popover/index.js +0 -1
- package/build/es/polyfill/processIndicator/ProcessIndicator.js +0 -12
- package/build/es/polyfill/processIndicator/ProcessIndicator.story.js +0 -1
- package/build/es/polyfill/processIndicator/index.js +0 -1
- package/build/es/polyfill/progress/Progress.js +0 -1
- package/build/es/polyfill/progress/Progress.story.js +0 -1
- package/build/es/polyfill/progress/index.js +0 -1
- package/build/es/polyfill/progressBar/ProgressBar.js +0 -1
- package/build/es/polyfill/progressBar/ProgressBar.story.js +0 -1
- package/build/es/polyfill/progressBar/index.js +0 -1
- package/build/es/polyfill/promoCard/PromoCard.js +0 -51
- package/build/es/polyfill/promoCard/PromoCard.spec.js +0 -13
- package/build/es/polyfill/promoCard/PromoCard.story.js +0 -1
- package/build/es/polyfill/promoCard/PromoCardContext.js +0 -19
- package/build/es/polyfill/promoCard/PromoCardContext.spec.js +0 -4
- package/build/es/polyfill/promoCard/PromoCardGroup.js +0 -20
- package/build/es/polyfill/promoCard/PromoCardGroup.spec.js +0 -5
- package/build/es/polyfill/promoCard/PromoCardGroup.story.js +0 -1
- package/build/es/polyfill/promoCard/PromoCardIndicator.js +0 -16
- package/build/es/polyfill/promoCard/index.js +0 -1
- package/build/es/polyfill/provider/Provider.js +0 -1
- package/build/es/polyfill/provider/Provider.spec.js +0 -1
- package/build/es/polyfill/provider/Provider.story.js +0 -1
- package/build/es/polyfill/provider/direction/DirectionProvider.js +0 -1
- package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +0 -1
- package/build/es/polyfill/provider/direction/index.js +0 -1
- package/build/es/polyfill/provider/index.js +0 -1
- package/build/es/polyfill/provider/language/LanguageProvider.js +0 -1
- package/build/es/polyfill/provider/language/LanguageProvider.spec.js +0 -1
- package/build/es/polyfill/provider/language/index.js +0 -1
- package/build/es/polyfill/radio/Radio.js +0 -1
- package/build/es/polyfill/radio/index.js +0 -1
- package/build/es/polyfill/radioGroup/RadioGroup.js +0 -2
- package/build/es/polyfill/radioGroup/index.js +0 -1
- package/build/es/polyfill/radioOption/RadioOption.js +0 -1
- package/build/es/polyfill/radioOption/index.js +0 -1
- package/build/es/polyfill/section/Section.js +0 -5
- package/build/es/polyfill/section/Section.spec.js +0 -1
- package/build/es/polyfill/section/Section.story.js +0 -1
- package/build/es/polyfill/section/index.js +0 -1
- package/build/es/polyfill/select/Select.js +0 -16
- package/build/es/polyfill/select/Select.messages.js +0 -1
- package/build/es/polyfill/select/index.js +0 -1
- package/build/es/polyfill/select/option/Option.js +0 -2
- package/build/es/polyfill/select/option/index.js +0 -1
- package/build/es/polyfill/select/searchBox/SearchBox.js +0 -1
- package/build/es/polyfill/select/searchBox/index.js +0 -1
- package/build/es/polyfill/sizeSwapper/SizeSwapper.js +0 -5
- package/build/es/polyfill/sizeSwapper/index.js +0 -1
- package/build/es/polyfill/slidingPanel/SlidingPanel.js +0 -2
- package/build/es/polyfill/slidingPanel/index.js +0 -1
- package/build/es/polyfill/snackbar/Snackbar.js +0 -1
- package/build/es/polyfill/snackbar/SnackbarContext.js +0 -1
- package/build/es/polyfill/snackbar/SnackbarProvider.js +0 -1
- package/build/es/polyfill/snackbar/index.js +0 -1
- package/build/es/polyfill/snackbar/useSnackbar.js +0 -1
- package/build/es/polyfill/statusIcon/StatusIcon.js +0 -1
- package/build/es/polyfill/statusIcon/StatusIcon.story.js +0 -1
- package/build/es/polyfill/statusIcon/index.js +0 -1
- package/build/es/polyfill/stepper/Stepper.js +0 -1
- package/build/es/polyfill/stepper/deviceDetection.js +0 -4
- package/build/es/polyfill/sticky/Sticky.js +0 -1
- package/build/es/polyfill/sticky/index.js +0 -1
- package/build/es/polyfill/summary/Summary.js +0 -1
- package/build/es/polyfill/summary/Summary.messages.js +0 -1
- package/build/es/polyfill/summary/index.js +0 -1
- package/build/es/polyfill/switch/Switch.js +0 -1
- package/build/es/polyfill/switch/Switch.story.js +0 -1
- package/build/es/polyfill/switch/index.js +0 -1
- package/build/es/polyfill/switchOption/SwitchOption.js +0 -1
- package/build/es/polyfill/switchOption/SwitchOption.story.js +0 -1
- package/build/es/polyfill/switchOption/index.js +0 -1
- package/build/es/polyfill/tabs/Tab.js +0 -1
- package/build/es/polyfill/tabs/TabList.js +0 -1
- package/build/es/polyfill/tabs/TabPanel.js +0 -1
- package/build/es/polyfill/tabs/Tabs.js +0 -1
- package/build/es/polyfill/tabs/index.js +0 -1
- package/build/es/polyfill/tabs/utils.js +0 -5
- package/build/es/polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -1
- package/build/es/polyfill/textareaWithDisplayFormat/index.js +0 -1
- package/build/es/polyfill/tile/Tile.js +0 -1
- package/build/es/polyfill/tile/index.js +0 -1
- package/build/es/polyfill/title/Title.js +0 -1
- package/build/es/polyfill/title/Title.spec.js +0 -1
- package/build/es/polyfill/title/Title.story.js +0 -1
- package/build/es/polyfill/title/index.js +0 -1
- package/build/es/polyfill/tooltip/Tooltip.js +0 -8
- package/build/es/polyfill/tooltip/Tooltip.spec.js +0 -1
- package/build/es/polyfill/tooltip/Tooltip.story.js +0 -1
- package/build/es/polyfill/tooltip/index.js +0 -1
- package/build/es/polyfill/typeahead/Typeahead.js +0 -1
- package/build/es/polyfill/typeahead/index.js +0 -1
- package/build/es/polyfill/typeahead/typeaheadInput/TypeaheadInput.js +0 -1
- package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +0 -1
- package/build/es/polyfill/typeahead/util/highlight.js +0 -1
- package/build/es/polyfill/upload/Upload.js +0 -12
- package/build/es/polyfill/upload/Upload.messages.js +0 -1
- package/build/es/polyfill/upload/index.js +0 -1
- package/build/es/polyfill/upload/steps/completeStep/completeStep.js +0 -1
- package/build/es/polyfill/upload/steps/completeStep/index.js +0 -1
- package/build/es/polyfill/upload/steps/index.js +0 -1
- package/build/es/polyfill/upload/steps/mediaUploadStep/index.js +0 -1
- package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -1
- package/build/es/polyfill/upload/steps/processingStep/index.js +0 -1
- package/build/es/polyfill/upload/steps/processingStep/processingStep.js +0 -1
- package/build/es/polyfill/upload/steps/uploadImageStep/index.js +0 -1
- package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
- package/build/es/polyfill/upload/uploadSteps.js +0 -2
- package/build/es/polyfill/upload/utils/asyncFileRead/asyncFileRead.js +0 -1
- package/build/es/polyfill/upload/utils/asyncFileRead/index.js +0 -1
- package/build/es/polyfill/upload/utils/getFileType/getFileType.js +0 -1
- package/build/es/polyfill/upload/utils/getFileType/index.js +0 -1
- package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -2
- package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +0 -1
- package/build/es/polyfill/upload/utils/index.js +0 -1
- package/build/es/polyfill/upload/utils/isSizeValid/index.js +0 -1
- package/build/es/polyfill/upload/utils/isSizeValid/isSizeValid.js +0 -1
- package/build/es/polyfill/upload/utils/isTypeValid/index.js +0 -1
- package/build/es/polyfill/upload/utils/isTypeValid/isTypeValid.js +0 -1
- package/build/es/polyfill/upload/utils/postData/index.js +0 -1
- package/build/es/polyfill/upload/utils/postData/postData.js +0 -1
- package/build/es/polyfill/upload/utils/requestMedia/index.js +0 -1
- package/build/es/polyfill/upload/utils/requestMedia/requestMedia.js +0 -1
- package/build/es/polyfill/uploadInput/UploadInput.js +0 -8
- package/build/es/polyfill/uploadInput/UploadInput.messages.js +0 -1
- package/build/es/polyfill/uploadInput/UploadInput.spec.js +0 -1
- package/build/es/polyfill/uploadInput/UploadInput.story.js +0 -1
- package/build/es/polyfill/uploadInput/index.js +0 -1
- package/build/es/polyfill/uploadInput/types.js +0 -1
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +0 -1
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.messages.js +0 -1
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.spec.js +0 -3
- package/build/es/polyfill/uploadInput/uploadButton/defaults.js +0 -1
- package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +0 -3
- package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +0 -1
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +0 -2
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.messages.js +0 -1
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.spec.js +0 -1
- package/build/es/polyfill/uploadInput/uploadItem/UploadItemBody.js +0 -1
- package/build/es/polyfill/utilities/deprecatedProperty/deprecatedProperty.js +0 -1
- package/build/es/polyfill/utilities/deprecatedProperty/index.js +0 -1
- package/build/es/polyfill/utilities/index.js +0 -1
- package/build/es/polyfill/utilities/logActionRequired.js +0 -1
- package/build/es/polyfill/utils.js +0 -0
- package/build/es/polyfill/withDisplayFormat/WithDisplayFormat.js +0 -8
- package/build/es/polyfill/withDisplayFormat/index.js +0 -1
- package/build/es/polyfill/withNextPortal/withNextPortal.js +0 -1
- package/build/types/accordion/Accordion.story.d.ts +0 -46
- package/build/types/actionButton/ActionButton.spec.d.ts +0 -1
- package/build/types/actionButton/ActionButton.story.d.ts +0 -15
- package/build/types/actionOption/ActionOption.story.d.ts +0 -32
- package/build/types/alert/Alert.story.d.ts +0 -59
- package/build/types/avatar/Avatar.story.d.ts +0 -13
- package/build/types/avatarWrapper/AvatarWrapper.story.d.ts +0 -62
- package/build/types/body/Body.spec.d.ts +0 -1
- package/build/types/body/Body.story.d.ts +0 -11
- package/build/types/button/Button.story.d.ts +0 -4619
- package/build/types/checkbox/Checkbox.story.d.ts +0 -54
- package/build/types/checkboxButton/CheckboxButton.spec.d.ts +0 -1
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +0 -16
- package/build/types/checkboxOption/CheckboxOption.spec.d.ts +0 -1
- package/build/types/checkboxOption/CheckboxOption.story.d.ts +0 -8
- package/build/types/chevron/Chevron.story.d.ts +0 -44
- package/build/types/chips/Chips.spec.d.ts +0 -1
- package/build/types/chips/Chips.story.d.ts +0 -9
- package/build/types/common/bottomSheet/BottomSheet.spec.d.ts +0 -1
- package/build/types/common/bottomSheet/BottomSheet.story.d.ts +0 -29
- package/build/types/common/card/Card.spec.d.ts +0 -1
- package/build/types/common/card/Card.story.d.ts +0 -6
- package/build/types/common/focusBoundary/FocusBoundary.spec.d.ts +0 -1
- package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +0 -10
- package/build/types/dateInput/DateInput.story.d.ts +0 -71
- package/build/types/dimmer/Dimmer.story.d.ts +0 -25
- package/build/types/display/Display.story.d.ts +0 -7
- package/build/types/dropFade/DropFade.story.d.ts +0 -10
- package/build/types/emphasis/Emphasis.story.d.ts +0 -13
- package/build/types/header/Header.spec.d.ts +0 -1
- package/build/types/header/Header.story.d.ts +0 -10
- package/build/types/info/Info.story.d.ts +0 -39
- package/build/types/link/Link.spec.d.ts +0 -1
- package/build/types/link/Link.story.d.ts +0 -9
- package/build/types/listItem/ListItem.spec.d.ts +0 -1
- package/build/types/listItem/ListItem.story.d.ts +0 -17
- package/build/types/loader/Loader.story.d.ts +0 -28
- package/build/types/logo/Logo.story.d.ts +0 -32
- package/build/types/markdown/Markdown.story.d.ts +0 -39
- package/build/types/modal/Modal.story.d.ts +0 -27
- package/build/types/money/Money.story.d.ts +0 -19
- package/build/types/moneyInput/MoneyInput.story.d.ts +0 -35
- package/build/types/nudge/Nudge.spec.d.ts +0 -1
- package/build/types/nudge/Nudge.story.d.ts +0 -8
- package/build/types/processIndicator/ProcessIndicator.story.d.ts +0 -10
- package/build/types/progress/Progress.story.d.ts +0 -17
- package/build/types/progressBar/ProgressBar.story.d.ts +0 -11
- package/build/types/promoCard/PromoCard.spec.d.ts +0 -1
- package/build/types/promoCard/PromoCard.story.d.ts +0 -11
- package/build/types/promoCard/PromoCardContext.spec.d.ts +0 -1
- package/build/types/promoCard/PromoCardGroup.spec.d.ts +0 -1
- package/build/types/promoCard/PromoCardGroup.story.d.ts +0 -8
- package/build/types/provider/Provider.spec.d.ts +0 -1
- package/build/types/provider/Provider.story.d.ts +0 -22
- package/build/types/provider/direction/DirectionProvider.spec.d.ts +0 -1
- package/build/types/provider/language/LanguageProvider.spec.d.ts +0 -1
- package/build/types/section/Section.spec.d.ts +0 -1
- package/build/types/section/Section.story.d.ts +0 -15
- package/build/types/statusIcon/StatusIcon.story.d.ts +0 -15
- package/build/types/switch/Switch.story.d.ts +0 -15
- package/build/types/switchOption/SwitchOption.story.d.ts +0 -22
- package/build/types/test-utils/index.d.ts +0 -103
- package/build/types/title/Title.spec.d.ts +0 -1
- package/build/types/title/Title.story.d.ts +0 -8
- package/build/types/tooltip/Tooltip.spec.d.ts +0 -1
- package/build/types/tooltip/Tooltip.story.d.ts +0 -28
- package/build/types/uploadInput/UploadInput.spec.d.ts +0 -1
- package/build/types/uploadInput/UploadInput.story.d.ts +0 -20
- package/build/types/uploadInput/uploadButton/UploadButton.spec.d.ts +0 -1
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.spec.d.ts +0 -1
- package/build/types/uploadInput/uploadItem/UploadItem.spec.d.ts +0 -1
- package/build/umd/no-polyfill/main.js +0 -1
- package/build/umd/polyfill/main.js +0 -1
- package/scripts/generate-type-declarations.js +0 -75
- /package/build/{es/no-polyfill/avatar → avatar}/colors/avatarColorTestCases.json +0 -0
- /package/build/{es/no-polyfill/logo → logo}/svg/flag-inverse.svg +0 -0
- /package/build/{es/no-polyfill/logo → logo}/svg/flag.svg +0 -0
- /package/build/{es/no-polyfill/logo → logo}/svg/logo-business-inverse.svg +0 -0
- /package/build/{es/no-polyfill/logo → logo}/svg/logo-business.svg +0 -0
- /package/build/{es/no-polyfill/logo → logo}/svg/logo-inverse.svg +0 -0
- /package/build/{es/no-polyfill/logo → logo}/svg/logo.svg +0 -0
- /package/{build/es/polyfill → src}/avatar/colors/avatarColorTestCases.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/cs.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/de.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/en.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/es.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/fr.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/hu.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/id.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/it.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/ja.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/pl.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/pt.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/ro.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/ru.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/th.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/tr.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/uk.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/zh-CN.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/zh.json +0 -0
- /package/{build/es/no-polyfill → src}/i18n/zh_CN.json +0 -0
- /package/{build/es/polyfill → src}/logo/svg/flag-inverse.svg +0 -0
- /package/{build/es/polyfill → src}/logo/svg/flag.svg +0 -0
- /package/{build/es/polyfill → src}/logo/svg/logo-business-inverse.svg +0 -0
- /package/{build/es/polyfill → src}/logo/svg/logo-business.svg +0 -0
- /package/{build/es/polyfill → src}/logo/svg/logo-inverse.svg +0 -0
- /package/{build/es/polyfill → src}/logo/svg/logo.svg +0 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { mount } from 'enzyme/build';
|
|
2
|
+
|
|
3
|
+
import { HistoryNavigator } from '../common';
|
|
4
|
+
import { fakeKeyDownEventForKey } from '../common/fakeEvents';
|
|
5
|
+
import { Input } from '../inputs/Input';
|
|
6
|
+
|
|
7
|
+
import WithDisplayFormat from '.';
|
|
8
|
+
|
|
9
|
+
jest.useFakeTimers();
|
|
10
|
+
|
|
11
|
+
const REDO_EVENT = { ctrlKey: true, charCode: 'z', shiftKey: true, which: 90 };
|
|
12
|
+
const UNDO_EVENT = { ctrlKey: true, charCode: 'z', which: 90 };
|
|
13
|
+
|
|
14
|
+
const triggerEvent = fakeKeyDownEventForKey();
|
|
15
|
+
|
|
16
|
+
const TESTS = [
|
|
17
|
+
{ value: '123', expectedValue: '12-3', displayPattern: '**-**-**' },
|
|
18
|
+
{ value: '1234', expectedValue: '12-34', displayPattern: '**-**-**' },
|
|
19
|
+
{ value: '1234', expectedValue: '+(12) 34', displayPattern: '+(**) *' },
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
const mountComponent = (props) => {
|
|
23
|
+
return mount(
|
|
24
|
+
<WithDisplayFormat {...props} render={(renderProps) => <Input {...renderProps} />} />,
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
describe('InputWithTextFormat', () => {
|
|
29
|
+
let component;
|
|
30
|
+
const props = {
|
|
31
|
+
placeholder: 'a placeholder',
|
|
32
|
+
displayPattern: '**-**',
|
|
33
|
+
onChange: jest.fn(),
|
|
34
|
+
onFocus: jest.fn(),
|
|
35
|
+
onBlur: jest.fn(),
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
beforeEach(() => {
|
|
39
|
+
component = mountComponent(props);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
afterEach(() => {
|
|
43
|
+
jest.clearAllTimers();
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
TESTS.forEach((test) => {
|
|
47
|
+
const { value, expectedValue, displayPattern } = test;
|
|
48
|
+
it(`returns ${expectedValue} for ${value} if displayPattern is ${displayPattern} `, () => {
|
|
49
|
+
component.setProps({ displayPattern });
|
|
50
|
+
component.setState({ triggerEvent });
|
|
51
|
+
|
|
52
|
+
componentInput().simulate('change', { target: { value } });
|
|
53
|
+
expect(componentInput().props().value).toStrictEqual(expectedValue);
|
|
54
|
+
expect(props.onChange).toHaveBeenCalledWith(value);
|
|
55
|
+
|
|
56
|
+
componentInput().simulate('focus', { target: { value } });
|
|
57
|
+
expect(componentInput().props().value).toStrictEqual(expectedValue);
|
|
58
|
+
expect(props.onFocus).toHaveBeenCalledWith(value);
|
|
59
|
+
|
|
60
|
+
componentInput().simulate('blur', { target: { value } });
|
|
61
|
+
expect(componentInput().props().value).toStrictEqual(expectedValue);
|
|
62
|
+
expect(props.onBlur).toHaveBeenCalledWith(value);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
describe('when Undo/Redo is preformed', () => {
|
|
67
|
+
it(`goes back/forward in input value's history`, () => {
|
|
68
|
+
component.setProps({ displayPattern: '***' });
|
|
69
|
+
component.setState({
|
|
70
|
+
historyNavigator: new HistoryNavigator(['@', '@@', '@@@']),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
componentInput().simulate('keyDown', UNDO_EVENT);
|
|
74
|
+
expect(componentInput().props().value).toBe('@@');
|
|
75
|
+
componentInput().simulate('keyDown', UNDO_EVENT);
|
|
76
|
+
expect(componentInput().props().value).toBe('@');
|
|
77
|
+
componentInput().simulate('keyDown', UNDO_EVENT);
|
|
78
|
+
expect(componentInput().props().value).toBe('@');
|
|
79
|
+
|
|
80
|
+
componentInput().simulate('keyDown', REDO_EVENT);
|
|
81
|
+
expect(componentInput().props().value).toBe('@@');
|
|
82
|
+
componentInput().simulate('keyDown', REDO_EVENT);
|
|
83
|
+
expect(componentInput().props().value).toBe('@@@');
|
|
84
|
+
componentInput().simulate('keyDown', REDO_EVENT);
|
|
85
|
+
expect(componentInput().props().value).toBe('@@@');
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
describe('on "autofill"', () => {
|
|
90
|
+
beforeEach(() => {
|
|
91
|
+
component = mountComponent(props);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it('tests case with 5 random digits', () => {
|
|
95
|
+
componentInput().simulate('change', { target: { value: '12345' } });
|
|
96
|
+
|
|
97
|
+
jest.runAllTimers();
|
|
98
|
+
|
|
99
|
+
expect(componentInput().props().value).toBe('12-345');
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
describe('on "autofill" that uses onFocus', () => {
|
|
104
|
+
beforeEach(() => {
|
|
105
|
+
component = mountComponent(props);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it('tests case with 5 random digits', () => {
|
|
109
|
+
componentInput().simulate('focus', { target: { value: '12345' } });
|
|
110
|
+
|
|
111
|
+
jest.runAllTimers();
|
|
112
|
+
|
|
113
|
+
expect(componentInput().props().value).toBe('12-345');
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
describe('when backspace is pressed', () => {
|
|
118
|
+
beforeEach(() => {
|
|
119
|
+
component = mountComponent(props);
|
|
120
|
+
component.setState({
|
|
121
|
+
triggerEvent: { ...triggerEvent, key: 'Backspace' },
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it(`has default behaviour if deleted char is not a symbol`, () => {
|
|
126
|
+
component.setState({ selectionStart: 2, selectionEnd: 2 });
|
|
127
|
+
|
|
128
|
+
componentInput().simulate('change', { target: { value: '12-3' } });
|
|
129
|
+
expect(componentInput().props().value).toBe('12-3');
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
it(`has default behaviour for multiple deletion`, () => {
|
|
133
|
+
component.setState({ selectionStart: 3, selectionEnd: 1 });
|
|
134
|
+
|
|
135
|
+
componentInput().simulate('change', { target: { value: '12-3' } });
|
|
136
|
+
expect(componentInput().props().value).toBe('12-3');
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it(`performs an extra delete if next char is a separator`, () => {
|
|
140
|
+
component.setState({ selectionStart: 3, selectionEnd: 3 });
|
|
141
|
+
|
|
142
|
+
componentInput().simulate('change', { target: { value: '123' } });
|
|
143
|
+
expect(componentInput().props().value).toBe('13');
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
describe('set cursor position', () => {
|
|
148
|
+
const triggerEventA = { ...triggerEvent, target: { setSelectionRange: () => {} } };
|
|
149
|
+
beforeEach(() => {
|
|
150
|
+
component.setState({
|
|
151
|
+
triggerEvent: triggerEventA,
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
it(`when entered a char`, () => {
|
|
156
|
+
component.setState({ selectionStart: 4, selectionEnd: 4 });
|
|
157
|
+
componentInput().simulate('change', { target: { value: '13-4@' } });
|
|
158
|
+
jest.runAllTimers();
|
|
159
|
+
expect(component.state().selectionStart).toBe(5);
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
it(`when entered a char before a symbol`, () => {
|
|
163
|
+
component.setState({ selectionStart: 2, selectionEnd: 2 });
|
|
164
|
+
componentInput().simulate('change', { target: { value: '13-@' } });
|
|
165
|
+
jest.runAllTimers();
|
|
166
|
+
expect(component.state().selectionStart).toBe(4);
|
|
167
|
+
});
|
|
168
|
+
//
|
|
169
|
+
it(`when deleted a char before the symbol`, () => {
|
|
170
|
+
component.setState({
|
|
171
|
+
triggerEvent: { ...triggerEventA, key: 'Backspace' },
|
|
172
|
+
});
|
|
173
|
+
component.setState({ selectionStart: 3, selectionEnd: 3 });
|
|
174
|
+
componentInput().simulate('change', { target: { value: '13-45-6' } });
|
|
175
|
+
jest.runAllTimers();
|
|
176
|
+
expect(component.state().selectionStart).toBe(1);
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
it(`when delete a symbol`, () => {
|
|
180
|
+
component.setState({
|
|
181
|
+
triggerEvent: { ...triggerEventA, ctrlKey: true, which: 68 },
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
component.setState({ selectionStart: 2, selectionEnd: 2 });
|
|
185
|
+
componentInput().simulate('change', { target: { value: '14' } });
|
|
186
|
+
jest.runAllTimers();
|
|
187
|
+
expect(component.state().selectionStart).toBe(2);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it(`when pasted selection is entered after a symbol`, () => {
|
|
191
|
+
component.setState({
|
|
192
|
+
triggerType: 'Paste',
|
|
193
|
+
pastedLength: 2,
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
component.setState({ selectionStart: 2, selectionEnd: 2 });
|
|
197
|
+
componentInput().simulate('change', { target: { value: '13-@@' } });
|
|
198
|
+
jest.runAllTimers();
|
|
199
|
+
expect(component.state().selectionStart).toBe(5);
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
it(`when pasted selection is entered before a symbol`, () => {
|
|
203
|
+
component.setState({
|
|
204
|
+
triggerType: 'Paste',
|
|
205
|
+
pastedLength: 2,
|
|
206
|
+
});
|
|
207
|
+
component.setState({ selectionStart: 1, selectionEnd: 1 });
|
|
208
|
+
componentInput().simulate('change', { target: { value: '1@-@' } });
|
|
209
|
+
jest.runAllTimers();
|
|
210
|
+
expect(component.state().selectionStart).toBe(4);
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
it('cut selection before a symbol', () => {
|
|
214
|
+
component.setState({
|
|
215
|
+
triggerType: 'Cut',
|
|
216
|
+
});
|
|
217
|
+
component.setState({ selectionStart: 0, selectionEnd: 2 });
|
|
218
|
+
componentInput().simulate('change', { target: { value: '34' } });
|
|
219
|
+
jest.runAllTimers();
|
|
220
|
+
expect(component.state().selectionStart).toBe(0);
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
it('cut another selection before a symbol', () => {
|
|
224
|
+
component.setState({
|
|
225
|
+
triggerType: 'Cut',
|
|
226
|
+
});
|
|
227
|
+
component.setState({ selectionStart: 1, selectionEnd: 4 });
|
|
228
|
+
componentInput().simulate('change', { target: { value: '14' } });
|
|
229
|
+
jest.runAllTimers();
|
|
230
|
+
expect(component.state().selectionStart).toBe(1);
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
const componentInput = () => component.find('input');
|
|
235
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './WithDisplayFormat';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { mount } from 'enzyme';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
|
|
4
|
+
import withNextPortal from './withNextPortal';
|
|
5
|
+
|
|
6
|
+
jest.mock('react-dom');
|
|
7
|
+
|
|
8
|
+
describe('withNextPortal', () => {
|
|
9
|
+
it('should return a function', () => {
|
|
10
|
+
expect(typeof withNextPortal()).toBe('function');
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should create a portal with the component', () => {
|
|
14
|
+
ReactDOM.createPortal.mockImplementation(() => null);
|
|
15
|
+
const props = {};
|
|
16
|
+
const Component = withNextPortal(AnyComponent);
|
|
17
|
+
const expected = mount(<AnyComponent {...props} />);
|
|
18
|
+
mount(<Component {...props} />);
|
|
19
|
+
expect(ReactDOM.createPortal).toHaveBeenCalledTimes(1);
|
|
20
|
+
const [comp, body] = ReactDOM.createPortal.mock.calls[0];
|
|
21
|
+
expect(comp).toMatchObject(expected);
|
|
22
|
+
expect(body).toMatchObject(document.body);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const AnyComponent = () => <div>Test div</div>;
|
|
26
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
|
|
4
|
+
export default function withNextPortalWrapper<T extends Record<string, any>>(
|
|
5
|
+
Component: React.FunctionComponent<T>,
|
|
6
|
+
) {
|
|
7
|
+
return function (props: T) {
|
|
8
|
+
const [mounted, setMounted] = useState(false);
|
|
9
|
+
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
setMounted(true);
|
|
12
|
+
}, [setMounted]);
|
|
13
|
+
return mounted ? createPortal(<Component {...props} />, document.body) : null;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import PropTypes from"prop-types";import{useState}from"react";import{Theme}from"../common";import AccordionItem from"./AccordionItem";import{jsx as _jsx}from"react/jsx-runtime";var Accordion=function(a){var b=a.items,c=a.onClick,d=a.indexOpen,e=a.theme,f=useState(function(){return b.map(function(a,b){return b===d})}),g=_slicedToArray(f,2),h=g[0],i=g[1],j=function(a){c&&c(a);var b=_toConsumableArray(h);b[a]=!h[a],i(b)};return b.map(function(a,b){return/*#__PURE__*/_jsx(AccordionItem,_objectSpread(_objectSpread({open:h[b],onClick:function(){return j(b)}},a),{},{theme:e}),a.id||b)})};Accordion.propTypes={indexOpen:PropTypes.number,items:PropTypes.arrayOf(PropTypes.shape({id:PropTypes.string,title:PropTypes.node.isRequired,content:PropTypes.node.isRequired,icon:PropTypes.node})).isRequired,onClick:PropTypes.func,theme:PropTypes.oneOf(["light","dark"])},Accordion.defaultProps={indexOpen:-1,onClick:null,theme:Theme.LIGHT};export default Accordion;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{FastFlag as FastFlagIcon}from"@transferwise/icons";import{Scroll,Size}from"../common";import Modal from"../modal";import{lorem10,lorem40,storyConfig}from"../test-utils";import Accordion from"./Accordion";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Accordion,title:"Content/Accordion",args:{items:[{title:"Item 1",content:lorem10,id:"Item 1"},{title:"Item 2",content:lorem40,id:"Item 2"},{title:"Item 3",content:lorem10,id:"Item 3"},{title:"Item 4",content:lorem10,id:"Item 4",icon:/*#__PURE__*/_jsx(FastFlagIcon,{size:24})}]}};export var Basic={args:{indexOpen:0}};export var BasicMobile=storyConfig(Basic,{variants:["mobile"]});export var Variants=storyConfig({args:{indexOpen:0}},{variants:["default","dark","rtl"]});export var Multiple={render:function render(a){var b=a.items;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Accordion,_objectSpread(_objectSpread({},a),{},{items:[b[0]]})),/*#__PURE__*/_jsx(Accordion,_objectSpread(_objectSpread({},a),{},{items:[b[0]],indexOpen:0})),/*#__PURE__*/_jsx(Accordion,_objectSpread(_objectSpread({},a),{},{items:b}))]})}};export var InModal={parameters:{chromatic:{delay:1e3}},render:function render(a){var b=a.items;return/*#__PURE__*/_jsx(Modal,{body:/*#__PURE__*/_jsxs("div",{className:"p-a-1",children:[/*#__PURE__*/_jsx("h3",{className:"m-t-2 m-b-4 text-xs-center",children:"Large transfer tips"}),/*#__PURE__*/_jsx(Accordion,_objectSpread(_objectSpread({},a),{},{items:[b[0]]})),/*#__PURE__*/_jsx(Accordion,_objectSpread(_objectSpread({},a),{},{items:[b[0]],indexOpen:0})),/*#__PURE__*/_jsx(Accordion,_objectSpread(_objectSpread({},a),{},{items:b}))]}),scroll:Scroll.CONTENT,size:Size.LARGE,open:!0,footer:/*#__PURE__*/_jsx("div",{className:"p-a-3 text-xs-center",children:/*#__PURE__*/_jsx("a",{href:"/large-amounts",children:"Learn more"})}),onClose:function onClose(){}})}};export var InModalMobile=storyConfig(InModal,{variants:["mobile"]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import{cloneElement}from"react";import Body from"../../body";import Chevron from"../../chevron";import{Position,Size,Typography,Theme}from"../../common";import Option from"../../common/Option";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var AccordionItem=function(a){var b=a["aria-label"],c=a.id,d=a.title,e=a.content,f=a.onClick,g=a.open,h=a.icon,i=a.theme,j=useTheme(),k=j.isModern,l=h?/*#__PURE__*/cloneElement(h,{size:24}):null;return/*#__PURE__*/_jsxs("div",{id:c,className:classNames("np-accordion-item","np-accordion-item--".concat(i),l?"np-accordion-item--with-icon":null,{"np-accordion-item--open":g}),children:[/*#__PURE__*/_jsx(Option,{"aria-label":b,as:"button",type:"button",media:l,title:d,button:/*#__PURE__*/_jsx(Chevron,{orientation:g?Position.TOP:Position.DOWN,size:k?Size.MEDIUM:Size.SMALL}),inverseMediaCircle:!1,onClick:f}),g&&/*#__PURE__*/_jsx(Body,{as:"span",type:Typography.BODY_LARGE,className:classNames("np-accordion-item__content","d-block",{"has-icon":h}),children:e})]})};AccordionItem.propTypes={"aria-label":PropTypes.string,content:PropTypes.node.isRequired,icon:PropTypes.node,id:PropTypes.string,open:PropTypes.bool.isRequired,onClick:PropTypes.func.isRequired,title:PropTypes.node.isRequired,theme:PropTypes.oneOf(["light","dark"])},AccordionItem.defaultProps={"aria-label":void 0,icon:null,id:null,theme:Theme.LIGHT};export default AccordionItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./AccordionItem";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Accordion";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["disabled","className","onClick","priority","text","children"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import{forwardRef}from"react";import{Priority}from"../common";import{jsx as _jsx}from"react/jsx-runtime";var ActionButton=/*#__PURE__*/forwardRef(function(a,b){var c=a.disabled,d=a.className,e=void 0===d?void 0:d,f=a.onClick,g=a.priority,h=void 0===g?Priority.PRIMARY:g,i=a.text,j=a.children,k=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsx("button",_objectSpread(_objectSpread({ref:b,type:"button",className:classNames("np-action-btn","np-text-body-default-bold",h===Priority.SECONDARY?"btn-priority-2":"btn-priority-1",e),disabled:void 0!==c&&c,onClick:f},k),{},{children:j||i}))});export default ActionButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import"@testing-library/jest-dom";import{render,screen,userEvent}from"../test-utils";import ActionButton from".";import{jsx as _jsx}from"react/jsx-runtime";describe("ActionButton",function(){var a={children:"Personal profile",onClick:jest.fn()};describe("by default",function(){beforeEach(function(){render(/*#__PURE__*/_jsx(ActionButton,_objectSpread({},a)))}),it("renders the text",function(){expect(screen.getByText("Personal profile")).toBeInTheDocument()}),it("is not disabled",function(){expect(screen.getByRole("button")).toBeEnabled()}),it("renders the button",function(){expect(render(/*#__PURE__*/_jsx(ActionButton,_objectSpread({},a))).container).toMatchSnapshot()})}),describe("button attributes",function(){it("disables the button if disabled",function(){render(/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({},a),{},{disabled:!0}))),expect(screen.getByRole("button")).toBeDisabled()}),it("passes through custom classes if set",function(){render(/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({},a),{},{className:"catsarethebest"}))),expect(screen.getByRole("button")).toHaveClass("catsarethebest")})}),describe("onClick",function(){it("calls onClick when clicked",function(){var b=jest.fn();render(/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({},a),{},{onClick:b}))),userEvent.click(screen.getByRole("button")),expect(b).toHaveBeenCalledTimes(1)}),it("does not call onClick when clicked if disabled",function(){var b=jest.fn();render(/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({},a),{},{disabled:!0,onClick:b}))),userEvent.click(screen.getByRole("button")),expect(b).toHaveBeenCalledTimes(0)})}),describe("deprecated",function(){it("text prop",function(){var a=jest.fn();render(/*#__PURE__*/_jsx(ActionButton,{disabled:!0,text:"Text prop",onClick:a})),expect(screen.getByText("Text prop")).toBeInTheDocument()})}),describe("priority",function(){it("is rendered for primary",function(){render(/*#__PURE__*/_jsx(ActionButton,{priority:"primary"})),expect(screen.getByRole("button")).toHaveClass("btn-priority-1")}),it("is rendered for secondary",function(){render(/*#__PURE__*/_jsx(ActionButton,{priority:"secondary"})),expect(screen.getByRole("button")).toHaveClass("btn-priority-2")}),it("is backwards compatible if nothing is passed in",function(){render(/*#__PURE__*/_jsx(ActionButton,{})),expect(screen.getByRole("button")).toHaveClass("btn-priority-1")})})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{Settings}from"@transferwise/icons";import{storyConfig}from"../test-utils/story-config";import ActionButton from"./ActionButton";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:ActionButton,title:"Actions/ActionButton",tags:["autodocs"]};export var Basic=storyConfig({render:function render(a){return/*#__PURE__*/_jsxs("div",{style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:[/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({priority:"primary"},a),{},{children:"Primary label"})),/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({priority:"secondary"},a),{},{children:"Secondary label"})),/*#__PURE__*/_jsxs(ActionButton,_objectSpread(_objectSpread({priority:"primary"},a),{},{style:{display:"flex",gap:"0.4rem"},children:[/*#__PURE__*/_jsx(Settings,{}),"Primary label"]})),/*#__PURE__*/_jsxs(ActionButton,_objectSpread(_objectSpread({priority:"secondary"},a),{},{style:{display:"flex",gap:"0.4rem"},children:[/*#__PURE__*/_jsx(Settings,{}),"Secondary label"]}))]})}},{variants:["default","dark","rtl","mobile"]});export var Disabled=storyConfig({render:Basic.render,args:{disabled:!0}},{variants:["default","dark","rtl","mobile"]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./ActionButton";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import ActionButton from"../actionButton";import{Priority}from"../common";import Option from"../common/Option";import{jsx as _jsx}from"react/jsx-runtime";var ActionOption=function(a){var b=a.action,c=a.priority,d=void 0===c?Priority.PRIMARY:c,e=a.disabled,f=a.onClick,g=a.media,h=a.title,i=a.content,j=a.complex,k=a.className,l=a.showMediaAtAllSizes,m=a.showMediaCircle,n=a.isContainerAligned,o={media:g,title:h,content:i,complex:j,disabled:e,showMediaAtAllSizes:l,showMediaCircle:m,className:classNames("tw-action-option",k),isContainerAligned:n};return/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},o),{},{button:/*#__PURE__*/_jsx(ActionButton,{priority:d,disabled:e,"aria-label":function getAriaLabel(){var a=[];return"string"==typeof h&&a.push(h),"string"==typeof b&&a.push(b),a.join(", ")||void 0}(),onClick:f,children:b})}))};export default ActionOption;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{action}from"@storybook/addon-actions";import{FastFlag as FastFlagIcon}from"@transferwise/icons";import{Nudge}from"..";import ActionOption from"./ActionOption";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:ActionOption,title:"Option/ActionOption",args:{title:"Action option",content:"Normally, the button and icon are vertically centered.",action:"Action",media:/*#__PURE__*/_jsx(FastFlagIcon,{}),showMediaCircle:!1},tags:["autodocs"]};export var Basic={render:function render(a){return/*#__PURE__*/_jsx(ActionOption,_objectSpread({},a))}};export var WithSecondarypriority={render:function render(a){return/*#__PURE__*/_jsx(ActionOption,_objectSpread({priority:"secondary"},a))}};export var WithContainerContent={render:function render(a){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("h2",{className:"m-b-2",children:"Choose how to pay"}),/*#__PURE__*/_jsx(ActionOption,_objectSpread({},a)),/*#__PURE__*/_jsx(ActionOption,_objectSpread({},a)),/*#__PURE__*/_jsx(ActionOption,_objectSpread({},a)),/*#__PURE__*/_jsx(Nudge,{className:"m-t-2",mediaName:"globe",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")})]})}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./ActionOption";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _defineProperty from"@babel/runtime/helpers/defineProperty";var _deprecatedTypeMap,_deprecatedTypeMapMes;function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{InfoCircle,Warning as AlertTriangle,CrossCircle,CheckCircle,Clock}from"@transferwise/icons";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import{useState,useRef}from"react";import requiredIf from"react-required-if";import Body from"../body/Body";import{Sentiment,Size,Typography,Variant}from"../common";import{CloseButton}from"../common/closeButton";import Link from"../link";import StatusIcon from"../statusIcon";import Title from"../title/Title";import{logActionRequiredIf,deprecated}from"../utilities";import InlineMarkdown from"./inlineMarkdown";import withArrow from"./withArrow";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var deprecatedTypeMap=(_deprecatedTypeMap={},_defineProperty(_deprecatedTypeMap,Sentiment.SUCCESS,Sentiment.POSITIVE),_defineProperty(_deprecatedTypeMap,Sentiment.INFO,Sentiment.NEUTRAL),_defineProperty(_deprecatedTypeMap,Sentiment.ERROR,Sentiment.NEGATIVE),_deprecatedTypeMap),Alert=function(a){var b,c=useTheme(),d=c.isModern,e=(b={},_defineProperty(b,Sentiment.POSITIVE,CheckCircle),_defineProperty(b,Sentiment.NEUTRAL,InfoCircle),_defineProperty(b,Sentiment.WARNING,AlertTriangle),_defineProperty(b,Sentiment.NEGATIVE,CrossCircle),_defineProperty(b,Sentiment.PENDING,Clock),b),f=useState(!1),g=_slicedToArray(f,2),h=g[0],i=g[1],j=a.arrow,k=a.action,l=a.children,m=a.className,n=a.icon,o=a.onDismiss,p=a.message,q=a.title,r=a.type,s=a.variant,t=useRef(null);if(j){var u=withArrow(Alert,j);return/*#__PURE__*/_jsx(u,_objectSpread({},a))}logActionRequired(a);var v=deprecatedTypeMap[r]||r,w=e[v];return/*#__PURE__*/_jsxs("div",{role:"alert",className:classNames("alert d-flex","alert-".concat(v),m),onTouchStart:function handleTouchStart(){return i(!0)},onTouchEnd:function handleTouchEnd(a){h&&k&&null!==t&&void 0!==t&&t.current&&!t.current.contains(a.target)&&("_blank"===(null===k||void 0===k?void 0:k.target)?window.top.open(k.href):window.top.location.assign(k.href)),i(!1)},onTouchMove:function handleTouchMove(){return i(!1)},children:[/*#__PURE__*/_jsxs("div",{className:classNames("alert__content","d-flex","flex-grow-1",s),"data-testid":s,children:[function(){return n?/*#__PURE__*/_jsx("div",{className:"alert__icon",children:n}):d?/*#__PURE__*/_jsx(StatusIcon,{size:Size.LARGE,sentiment:v}):/*#__PURE__*/_jsx(w,{size:24})}(),/*#__PURE__*/_jsxs("div",{className:"alert__message",children:[q&&/*#__PURE__*/_jsx(Title,{className:"m-b-1",type:Typography.TITLE_BODY,children:q}),/*#__PURE__*/_jsx(Body,{as:"span",className:"d-block",type:Typography.BODY_LARGE,children:l||/*#__PURE__*/_jsx(InlineMarkdown,{children:p})}),k&&/*#__PURE__*/_jsx(Link,{href:k.href,className:"m-t-1","aria-label":k["aria-label"],target:k.target,type:Typography.LINK_LARGE,children:k.text})]})]}),o&&/*#__PURE__*/_jsx(CloseButton,{ref:t,className:"m-l-2",onClick:o})]})},deprecatedTypeMapMessage=(_deprecatedTypeMapMes={},_defineProperty(_deprecatedTypeMapMes,Sentiment.SUCCESS,"Sentiment.POSITIVE"),_defineProperty(_deprecatedTypeMapMes,Sentiment.INFO,"Sentiment.NEUTRAL"),_defineProperty(_deprecatedTypeMapMes,Sentiment.ERROR,"Sentiment.NEGATIVE"),_deprecatedTypeMapMes),deprecatedTypes=Object.keys(deprecatedTypeMap);function logActionRequired(a){var b=a.size,c=a.type;logActionRequiredIf("Alert no longer supports any possible variations in size. Please remove the `size` prop.",!!b),logActionRequiredIf("Alert has deprecated the ".concat(c," value for the `type` prop. Please update to ").concat(deprecatedTypeMapMessage[c],"."),deprecatedTypes.includes(c))}Alert.propTypes={/** An optional call to action to sit under the main body of the alert. If your label is short, use aria-label to provide more context */action:PropTypes.shape({"aria-label":PropTypes.string,href:PropTypes.string.isRequired,target:PropTypes.string,text:PropTypes.node.isRequired}),className:PropTypes.string,/** An optional icon. If not provided, we will default the icon to something appropriate for the type */icon:PropTypes.element,/** Title for the alert component */title:PropTypes.string,/** The main body of the alert. Accepts plain text and bold words specified with **double stars*/message:requiredIf(PropTypes.node,function(a){var b=a.children;return!b}),/** The presence of the onDismiss handler will trigger the visibility of the close button */onDismiss:PropTypes.func,/** The type dictates which icon and colour will be used */type:PropTypes.oneOf(["negative","neutral","positive","warning","info","error","success"]),variant:PropTypes.oneOf(["desktop","mobile"]),/** @deprecated no arrow for `Alert` component anymore, consider to use [`InlineAlert`](https://transferwise.github.io/neptune-web/components/alerts/InlineAlert) component */arrow:deprecated(PropTypes.oneOf(["up-left","up-center","up-right","down-left","down-center","down-right"]),{component:"Alert",expiryDate:new Date("03-01-2021")}),/** @deprecated use `message` property instead */children:deprecated(requiredIf(PropTypes.node,function(a){var b=a.message;return!b}),{component:"Alert",message:"You should now use the `message` prop. Be aware `message` only accepts plain text or text with **bold** markdown.",expiryDate:new Date("03-01-2021")}),/** @deprecated use `onDismiss` instead */dismissible:deprecated(PropTypes.bool,{component:"Alert",message:"The Alert will now be considered dismissible if an `onDismiss` hander is present.",expiryDate:new Date("03-01-2021")})},Alert.defaultProps={action:void 0,arrow:void 0,className:void 0,dismissible:void 0,icon:void 0,type:Sentiment.NEUTRAL,variant:Variant.DESKTOP};export default Alert;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-alert */import{ClockBorderless}from"@transferwise/icons";import{Sentiment}from"../common";import Alert from"./Alert";import{AlertArrowPosition}from"./withArrow";import{jsx as _jsx}from"react/jsx-runtime";export default{component:Alert,title:"Feedback/Alert",args:{type:Sentiment.POSITIVE,message:"Payments sent to your bank details **today** might not arrive in time for the holidays."},argTypes:{arrow:{name:"arrow (deprecated)",type:{name:"enum",value:Object.keys(AlertArrowPosition)}},type:{type:{name:"enum",value:[Sentiment.POSITIVE,Sentiment.NEGATIVE,Sentiment.NEUTRAL,Sentiment.WARNING,Sentiment.PENDING]}}},tags:["autodocs"]};export var Basic={args:{onDismiss:void 0}};export var WithAction={args:{action:{href:"/",text:"Read more"}}};export var WithArrow={args:{arrow:AlertArrowPosition.TOP_LEFT}};var CustomIcon=function(){return/*#__PURE__*/_jsx("div",{style:{width:"100%",height:"100%",color:"#ffffff",backgroundColor:"#454745",display:"flex",alignItems:"center",borderRadius:"50%",justifyContent:"center"},children:/*#__PURE__*/_jsx(ClockBorderless,{size:"32"})})};export var WithCustomIcon={args:{icon:/*#__PURE__*/_jsx(CustomIcon,{})}};export var WithTitle={args:{type:Sentiment.NEUTRAL,title:"We\u2019re reviewing your information."}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Alert";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import PropTypes from"prop-types";import{MarkdownNodeType}from"../../common";import Markdown from"../../markdown";import{jsx as _jsx}from"react/jsx-runtime";var allowList=[MarkdownNodeType.STRONG],InlineMarkdown=function(a){return/*#__PURE__*/_jsx(Markdown,_objectSpread(_objectSpread({},a),{},{as:"span",allowList:allowList,blockList:void 0}))};InlineMarkdown.propTypes={children:PropTypes.string.isRequired,className:PropTypes.string},InlineMarkdown.defaultProps={className:void 0};export default InlineMarkdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./InlineMarkdown";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// TODO: consider to move this enum into component file once we migrate it on TypeScript or replace with some common enum
|
|
2
|
-
export var ArrowPosition=/*#__PURE__*/function(a){return a.TOP_LEFT="up-left",a.TOP="up-center",a.TOP_RIGHT="up-right",a.BOTTOM_LEFT="down-left",a.BOTTOM="down-center",a.BOTTOM_RIGHT="down-right",a}({});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ArrowPosition as AlertArrowPosition}from"./alertArrowPositions";export{default}from"./withArrow";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import PropTypes from"prop-types";import{ArrowPosition}from"./alertArrowPositions";import{jsx as _jsx}from"react/jsx-runtime";function withArrow(a,b){var c=function(c){return/*#__PURE__*/_jsx(a,_objectSpread(_objectSpread({},c),{},{className:classNames(c.className,arrowClasses(b)),arrow:void 0}))};return c.propTypes={className:PropTypes.string},c.defaultProps={className:void 0},c}function arrowClasses(a){if(a){var b=["arrow"],c=ArrowPosition.BOTTOM,d=ArrowPosition.BOTTOM_LEFT,e=ArrowPosition.BOTTOM_RIGHT,f=ArrowPosition.TOP,g=ArrowPosition.TOP_RIGHT,h=ArrowPosition.TOP_LEFT;switch(a){case c:return b.concat("arrow-bottom","arrow-center");case d:return b.concat("arrow-bottom","arrow-left");case e:return b.concat("arrow-bottom","arrow-right");case f:return b.concat("arrow-center");case g:return b.concat("arrow-right");case h:default:return b;}}return""}export default withArrow;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import classnames from"classnames";import{useMemo}from"react";import{Theme}from"../common";import{getAvatarColorFromSeed}from"./colors";import{jsx as _jsx}from"react/jsx-runtime";var backwardsCompatibleSize=function(a){return"sm"===a?24:"md"===a?48:"lg"===a?72:a},Avatar=function(a){var b=a.backgroundColor,c=void 0===b?null:b,d=a.backgroundColorSeed,e=void 0===d?null:d,f=a.children,g=void 0===f?null:f,h=a.className,i=void 0===h?null:h,j=a.outlined,k=a.size,l=void 0===k?48:k,m=a.theme,n=void 0===m?Theme.LIGHT:m,o=a.type,p=void 0===o?"thumbnail":o,q=useMemo(function(){return!c&&e?"var(".concat(getAvatarColorFromSeed(e),")"):void 0},[c,e]),r=backwardsCompatibleSize(l);return/*#__PURE__*/_jsx("div",{className:classnames("tw-avatar",i,"tw-avatar--".concat(r),"tw-avatar--".concat(p),{"tw-avatar--outlined":void 0!==j&&j,"tw-avatar--branded":!!q,"np-text-title-body":"initials"===p}),children:/*#__PURE__*/_jsx("div",{className:"tw-avatar__content",style:{backgroundColor:c||q},children:g})})};export default Avatar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import*as wiseIcons from"@transferwise/icons";import{Size}from"../common";import{storyConfig}from"../test-utils";import Avatar,{AvatarType}from".";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Avatar,title:"Content/Avatar",tags:["autodocs"]};export var Emoji={render:function render(a){return/*#__PURE__*/_jsx(Avatar,_objectSpread(_objectSpread({},a),{},{children:"\u2708\uFE0F"}))},args:{type:AvatarType.EMOJI,size:Size.MEDIUM}};export var Flag={render:function render(a){return/*#__PURE__*/_jsx(Avatar,_objectSpread(_objectSpread({},a),{},{children:/*#__PURE__*/_jsx("img",{src:"https://wise.com/web-art/assets/flags/gbp.svg",alt:""})}))},args:{type:AvatarType.THUMBNAIL,size:Size.MEDIUM,outlined:!0}};export var Table=storyConfig({render:function render(){var a="https://wise.com/web-art/assets/flags/gbp.svg",b="#d6f5e3",c="\u2708\uFE0F",d="GN",e=wiseIcons.Check;return/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsxs("table",{children:["Outlined",/*#__PURE__*/_jsxs("tr",{children:[/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.LARGE,type:AvatarType.THUMBNAIL,outlined:!0,children:/*#__PURE__*/_jsx("img",{src:"https://wise.com/web-art/assets/flags/jpy.svg",alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:56,type:AvatarType.THUMBNAIL,outlined:!0,children:/*#__PURE__*/_jsx("img",{src:"https://wise.com/web-art/assets/flags/jpy.svg",alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.MEDIUM,type:AvatarType.THUMBNAIL,outlined:!0,children:/*#__PURE__*/_jsx("img",{src:"https://wise.com/web-art/assets/flags/jpy.svg",alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:40,type:AvatarType.THUMBNAIL,outlined:!0,children:/*#__PURE__*/_jsx("img",{src:"https://wise.com/web-art/assets/flags/jpy.svg",alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.SMALL,type:AvatarType.THUMBNAIL,outlined:!0,children:/*#__PURE__*/_jsx("img",{src:"https://wise.com/web-art/assets/flags/jpy.svg",alt:""})})})]}),"Image URL",/*#__PURE__*/_jsxs("tr",{children:[/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.LARGE,type:AvatarType.THUMBNAIL,children:/*#__PURE__*/_jsx("img",{src:a,alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:56,type:AvatarType.THUMBNAIL,children:/*#__PURE__*/_jsx("img",{src:a,alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.MEDIUM,type:AvatarType.THUMBNAIL,children:/*#__PURE__*/_jsx("img",{src:a,alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:40,type:AvatarType.THUMBNAIL,children:/*#__PURE__*/_jsx("img",{src:a,alt:""})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.SMALL,type:AvatarType.THUMBNAIL,children:/*#__PURE__*/_jsx("img",{src:a,alt:""})})})]}),"Emoji",/*#__PURE__*/_jsxs("tr",{children:[/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.LARGE,type:AvatarType.EMOJI,children:c})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:56,type:AvatarType.EMOJI,children:c})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.MEDIUM,type:AvatarType.EMOJI,children:c})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:40,type:AvatarType.EMOJI,children:c})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.SMALL,type:AvatarType.EMOJI,children:c})})]}),/*#__PURE__*/_jsx("div",{style:{paddingBottom:"20px"},children:/*#__PURE__*/_jsx("span",{style:{position:"absolute"},children:"Custom background and icon"})}),/*#__PURE__*/_jsxs("tr",{children:[/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.LARGE,type:AvatarType.ICON,backgroundColor:b,children:/*#__PURE__*/_jsx(e,{size:24})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:56,type:AvatarType.ICON,backgroundColor:b,children:/*#__PURE__*/_jsx(e,{size:24})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.MEDIUM,type:AvatarType.ICON,backgroundColor:b,children:/*#__PURE__*/_jsx(e,{size:24})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:40,type:AvatarType.ICON,backgroundColor:b,children:/*#__PURE__*/_jsx(e,{size:24})})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:Size.SMALL,type:AvatarType.ICON,backgroundColor:b,children:/*#__PURE__*/_jsx(e,{size:16})})})]}),"Initials",/*#__PURE__*/_jsxs("tr",{children:[/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:72,type:AvatarType.INITIALS,children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:56,type:AvatarType.INITIALS,children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:48,type:AvatarType.INITIALS,children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:40,type:AvatarType.INITIALS,children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:24,type:AvatarType.INITIALS,children:d})})]}),"Branded",/*#__PURE__*/_jsxs("tr",{children:[/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:72,type:AvatarType.INITIALS,backgroundColorSeed:"1",children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:56,type:AvatarType.INITIALS,backgroundColorSeed:"2",children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:48,type:AvatarType.INITIALS,backgroundColorSeed:"3",children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:40,type:AvatarType.INITIALS,backgroundColorSeed:"4",children:d})}),/*#__PURE__*/_jsx("td",{children:/*#__PURE__*/_jsx(Avatar,{size:24,type:AvatarType.INITIALS,backgroundColorSeed:"5",children:d})})]})]})})}},{variants:["default","dark","rtl"]});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* The colors we support generating an Avatar background color from a "seed" for.
|
|
3
|
-
* Changing this array will change the assignment between seeds.
|
|
4
|
-
* Do not change this array.
|
|
5
|
-
*/var avatarColors=["--color-bright-blue","--color-bright-yellow","--color-bright-pink","--color-bright-orange"],hashSeed=function(a){for(var b=avatarColors.length,c=0,d=1,e=0;e<a.length;e++)c=(c+a.charCodeAt(e)*d)%b,d=d*31%b;return c};/*
|
|
6
|
-
* Takes in a "seed" string and spits out an index for the color we should use.
|
|
7
|
-
* This implementation has been synced across all three clients so that we consistently
|
|
8
|
-
* generate branded avatar colors when rendering a list of Avatars.
|
|
9
|
-
* Do not change this implementation.
|
|
10
|
-
*/export var getAvatarColorFromSeed=function(a){return avatarColors[hashSeed(a)]};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from"./colors";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{AvatarType}from"./avatarTypes";export{default}from"./Avatar";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["url","altText","statusIcon","children"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{Person as ProfileIcon,Briefcase as BriefcaseIcon}from"@transferwise/icons";import PropTypes from"prop-types";import{useState,useEffect}from"react";import Avatar,{AvatarType}from"../avatar";import Badge from"../badge";import{ProfileType,Size,Sentiment}from"../common";import StatusIcon from"../statusIcon/StatusIcon";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";var OptionalBadge=function(a){var b=a.url,c=a.altText,d=a.statusIcon,e=a.children,f=_objectWithoutProperties(a,_excluded);return b?/*#__PURE__*/_jsx(Badge,_objectSpread(_objectSpread({badge:/*#__PURE__*/_jsx("img",{src:b,alt:c})},f),{},{children:e})):d?/*#__PURE__*/_jsx(Badge,_objectSpread(_objectSpread({badge:/*#__PURE__*/_jsx(StatusIcon,{sentiment:d,size:Size.SMALL})},f),{},{children:e})):e};OptionalBadge.propTypes={url:PropTypes.string,altText:PropTypes.string,statusIcon:PropTypes.oneOf([Sentiment.POSITIVE,Sentiment.NEGATIVE,Sentiment.NEUTRAL,Sentiment.WARNING,Sentiment.PENDING]),children:PropTypes.node.isRequired},OptionalBadge.defaultProps={url:void 0,altText:void 0,statusIcon:void 0};var AvatarWrapper=function(a){var b=a.url,c=a.profileType,d=a.profileId,e=a.badgeUrl,f=a.badgeAltText,g=a.badgeStatusIcon,h=a.name,i=a.avatarProps,j=a.badgeProps,k=useState(!1),l=_slicedToArray(k,2),m=l[0],n=l[1],o=c===ProfileType.BUSINESS;useEffect(function(){return n(!1)},[b]);return/*#__PURE__*/_jsx(OptionalBadge,_objectSpread(_objectSpread({url:e,altText:f,statusIcon:g},j),{},{children:/*#__PURE__*/_jsx(Avatar,_objectSpread({size:Size.MEDIUM},function getAvatarProps(){return b&&!m?_objectSpread({type:AvatarType.THUMBNAIL,children:/*#__PURE__*/_jsx("img",{src:b,alt:"avatar",onError:function onError(){return n(!0)}})},i):c?_objectSpread({type:AvatarType.ICON,children:o?/*#__PURE__*/_jsx(BriefcaseIcon,{size:"24"}):/*#__PURE__*/_jsx(ProfileIcon,{size:"24"})},i):h?_objectSpread({type:AvatarType.INITIALS,children:/*#__PURE__*/_jsx(_Fragment,{children:getInitials(h)}),backgroundColorSeed:null===d||void 0===d?void 0:d.toString()},i):_objectSpread({type:AvatarType.ICON,children:/*#__PURE__*/_jsx(ProfileIcon,{size:"24"})},i)}()))}))};function getInitials(a){var b=a.split(" ").map(function(a){return a[0]}).join("").toUpperCase();return 1===b.length?b[0]:b[0]+b.slice(-1)}AvatarWrapper.defaultProps={url:void 0,profileType:void 0,profileId:void 0,badgeUrl:void 0,badgeAltText:void 0,badgeStatusIcon:void 0,name:void 0,avatarProps:{},badgeProps:{}},AvatarWrapper.propTypes={url:PropTypes.string,profileType:PropTypes.oneOf([ProfileType.PERSONAL,ProfileType.BUSINESS]),profileId:PropTypes.number,badgeUrl:PropTypes.string,badgeAltText:PropTypes.string,badgeStatusIcon:PropTypes.oneOf([Sentiment.POSITIVE,Sentiment.NEGATIVE,Sentiment.NEUTRAL,Sentiment.WARNING,Sentiment.PENDING]),name:PropTypes.string,avatarProps:PropTypes.shape({}),badgeProps:PropTypes.shape({})};export default AvatarWrapper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ProfileType,Sentiment}from"../common";import AvatarWrapper from"./AvatarWrapper";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:AvatarWrapper,title:"Content/AvatarWrapper",argTypes:{profileType:{type:{name:"enum",value:Object.keys(ProfileType)}},badgeStatusIcon:{type:{name:"enum",value:[Sentiment.POSITIVE,Sentiment.NEGATIVE,Sentiment.NEUTRAL,Sentiment.WARNING,Sentiment.PENDING]}}},tags:["autodocs"]};export var WithBadgeUrl={args:{badgeUrl:"https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg",avatarProps:{outlined:!0}}};export var WithBadgeStatus={args:{profileType:ProfileType.BUSINESS,badgeStatusIcon:Sentiment.PENDING,avatarProps:{outlined:!1}}};export var All={args:{avatarProps:{outlined:!0}},render:function render(a){var b=a.avatarProps;return/*#__PURE__*/_jsxs("div",{style:{maxWidth:"300px",display:"flex",justifyContent:"space-between"},children:[/*#__PURE__*/_jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx("b",{children:"No Badges"})})," ","Personal",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{profileType:ProfileType.PERSONAL,avatarProps:b})}),"Business",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{profileType:ProfileType.BUSINESS,avatarProps:b})}),"Avatar",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{url:"https://wise.com/web-art/assets/flags/jpy.svg",profileType:ProfileType.BUSINESS,avatarProps:b})}),"Initials",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{name:"A A",avatarProps:b})}),"Default",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{avatarProps:b})})]}),/*#__PURE__*/_jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx("b",{children:"Badges"})}),"Personal",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{badgeUrl:"https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg",badgeAltText:"wise fast flag badge",profileType:ProfileType.PERSONAL,avatarProps:b})}),"Business",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{badgeStatusIcon:Sentiment.POSITIVE,profileType:ProfileType.BUSINESS,avatarProps:b})}),"Avatar",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{badgeStatusIcon:Sentiment.NEGATIVE,url:"https://wise.com/web-art/assets/flags/hrk.svg",profileType:ProfileType.BUSINESS,avatarProps:b})}),"Initials",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{badgeStatusIcon:Sentiment.NEUTRAL,name:"A A",avatarProps:b})}),"Default",/*#__PURE__*/_jsx("div",{children:/*#__PURE__*/_jsx(AvatarWrapper,{badgeStatusIcon:Sentiment.PENDING,avatarProps:b})})]})]})}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import AvatarWrapper from"./AvatarWrapper";export default AvatarWrapper;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import classNames from"classnames";import{Size,Theme}from"../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Badge=function(a){var b,c=a.badge,d=a.className,e=void 0===d?void 0:d,f=a.size,g=void 0===f?Size.SMALL:f,h=a.border,i=void 0===h?Theme.LIGHT:h,j=a.children,k=classNames("tw-badge",(b={},_defineProperty(b,"tw-badge-border-".concat(i),i),_defineProperty(b,"tw-badge-".concat(g),g),b),e);return/*#__PURE__*/_jsxs("div",{className:k,children:[/*#__PURE__*/_jsx("div",{className:"tw-badge__children",children:j}),/*#__PURE__*/_jsx("div",{className:"tw-badge__content",children:c})]})};export default Badge;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Badge";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["as","type","className"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import{forwardRef}from"react";import{Typography}from"../common/propsValues/typography";import{jsx as _jsx}from"react/jsx-runtime";var DEFAULT_TYPE=Typography.BODY_DEFAULT,bodyTypes=new Set([Typography.BODY_DEFAULT,Typography.BODY_DEFAULT_BOLD,Typography.BODY_LARGE,Typography.BODY_LARGE_BOLD]),Body=/*#__PURE__*/forwardRef(function(a,b){var c=a.as,d=void 0===c?"div":c,e=a.type,f=void 0===e?DEFAULT_TYPE:e,g=a.className,h=_objectWithoutProperties(a,_excluded),i=bodyTypes.has(f);return/*#__PURE__*/_jsx(d,_objectSpread(_objectSpread({},h),{},{// @ts-expect-error TODO: Remove when component could be rewritten with generics
|
|
2
|
-
// See: https://fettblog.eu/typescript-react-generic-forward-refs/
|
|
3
|
-
ref:b,className:classNames("np-text-".concat(i?f:DEFAULT_TYPE),g)}))});export default Body;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Typography}from"../common";import{render,screen}from"../test-utils";import Body from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Body",function(){it("testing default state",function(){render(/*#__PURE__*/_jsx(Body,{children:"Test"}));var a=screen.getByText("Test");expect(a).toBeInTheDocument(),expect(a.tagName).toBe("DIV"),expect(a).toHaveClass("np-text-".concat(Typography.BODY_DEFAULT))}),it("enforces tag via `as` prop",function(){render(/*#__PURE__*/_jsx(Body,{as:"p",children:"Test"}));var a=screen.getByText("Test");expect(a).toBeInTheDocument(),expect(a.tagName).toBe("P"),expect(a).toHaveClass("np-text-".concat(Typography.BODY_DEFAULT))}),it("supports native HTML attrs",function(){render(/*#__PURE__*/_jsx(Body,{id:"test-id",role:"banner",children:"Test"}));var a=screen.getByText("Test");expect(a).toBeInTheDocument(),expect(a).toHaveAttribute("id","test-id"),expect(a).toHaveAttribute("role","banner")}),it("handles unsupported typography type",function(){render(/*#__PURE__*/_jsx(Body,{type:Typography.TITLE_SCREEN,children:"Test"}));var a=screen.getByText("Test");expect(a).toBeInTheDocument(),expect(a.tagName).toBe("DIV"),expect(a).toHaveClass("np-text-".concat(Typography.BODY_DEFAULT))})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Typography}from"../common/propsValues/typography";import Title from"../title";import Body from"./Body";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";export default{title:"Typography/Body",component:Body,tags:["autodocs"]};export var Basic=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_SUBSECTION,children:"Body Large Bold"}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE_BOLD,children:["We\u2019re building the world's most ",/*#__PURE__*/_jsx("strong",{children:"international account"}),". We\u2019re building the world's most ",/*#__PURE__*/_jsx("b",{children:"international account"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE_BOLD,children:["\u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448 ",/*#__PURE__*/_jsx("strong",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),". \u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448"," ",/*#__PURE__*/_jsx("b",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE_BOLD,children:["\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("strong",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})," ","\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("b",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE_BOLD,children:["Wir bauen den internationalen ",/*#__PURE__*/_jsx("strong",{children:"Bericht der Welt auf"}),". Wir bauen den internationalen ",/*#__PURE__*/_jsx("b",{children:"Bericht der Welt auf"}),"."]})]}),/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_SUBSECTION,children:"Body Default"}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT,children:["We\u2019re building the world's most ",/*#__PURE__*/_jsx("strong",{children:"international account"}),". We\u2019re building the world's most ",/*#__PURE__*/_jsx("b",{children:"international account"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT,children:["\u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448 ",/*#__PURE__*/_jsx("strong",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),". \u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448"," ",/*#__PURE__*/_jsx("b",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT,children:["\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("strong",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})," ","\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("b",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT,children:["Wir bauen den internationalen ",/*#__PURE__*/_jsx("strong",{children:"Bericht der Welt auf"}),". Wir bauen den internationalen ",/*#__PURE__*/_jsx("b",{children:"Bericht der Welt auf"}),"."]})]}),/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_SUBSECTION,children:"Body Default Bold"}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT_BOLD,children:["We\u2019re building the world's most ",/*#__PURE__*/_jsx("strong",{children:"international account"}),". We\u2019re building the world's most ",/*#__PURE__*/_jsx("b",{children:"international account"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT_BOLD,children:["\u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448 ",/*#__PURE__*/_jsx("strong",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),". \u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448"," ",/*#__PURE__*/_jsx("b",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT_BOLD,children:["\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("strong",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})," ","\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("b",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_DEFAULT_BOLD,children:["Wir bauen den internationalen ",/*#__PURE__*/_jsx("strong",{children:"Bericht der Welt auf"}),". Wir bauen den internationalen ",/*#__PURE__*/_jsx("b",{children:"Bericht der Welt auf"}),"."]})]}),/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_SUBSECTION,children:"Body Large"}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE,children:["We\u2019re building the world's most ",/*#__PURE__*/_jsx("strong",{children:"international account"}),". We\u2019re building the world's most ",/*#__PURE__*/_jsx("b",{children:"international account"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE,children:["\u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448 ",/*#__PURE__*/_jsx("strong",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),". \u041C\u0438 \u0431\u0443\u0434\u0443\u0454\u043C\u043E \u043D\u0430\u0439\u0431\u0456\u043B\u044C\u0448"," ",/*#__PURE__*/_jsx("b",{children:"\u043C\u0456\u0436\u043D\u0430\u0440\u043E\u0434\u043D\u0438\u0439 \u0440\u0430\u0445\u0443\u043D\u043E\u043A \u0443 \u0441\u0432\u0456\u0442\u0456"}),"."]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE,children:["\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("strong",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})," ","\u79C1\u305F\u3061\u306F\u4E16\u754C\u3067\u6700\u3082\u56FD\u969B\u7684\u306A\u30A2\u30AB\u30A6\u30F3",/*#__PURE__*/_jsx("b",{children:"\u30C8\u3092\u69CB\u7BC9\u3057\u3066\u3044\u307E\u3059"})]}),/*#__PURE__*/_jsxs(Body,{as:"p",type:Typography.BODY_LARGE,children:["Wir bauen den internationalen ",/*#__PURE__*/_jsx("strong",{children:"Bericht der Welt auf"}),". Wir bauen den internationalen ",/*#__PURE__*/_jsx("b",{children:"Bericht der Welt auf"}),"."]})]}),/*#__PURE__*/_jsxs(Title,{type:Typography.TITLE_SUBSECTION,children:["Copy Example without ",/*#__PURE__*/_jsx("code",{children:"<Body />"})," component"]}),/*#__PURE__*/_jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo saepe repellendus accusantium eveniet temporibus perspiciatis iure ut, pariatur nihil totam iusto, delectus, modi possimus soluta. Et iusto odio autem debitis!"}),/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_SUBSECTION,children:"Copy Example without any HTML tag"}),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo saepe repellendus accusantium eveniet temporibus perspiciatis iure ut, pariatur nihil totam iusto, delectus, modi possimus soluta. Et iusto odio autem debitis!"]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Body";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["as","block","children","className","disabled","loading","priority","size","type"],_excluded2=["htmlType"];function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import{forwardRef}from"react";import{Size,ControlType,Priority}from"../common";import{typeClassMap,priorityClassMap}from"./classMap";import{establishNewPriority,establishNewType,logDeprecationNotices}from"./legacyUtils";/** @deprecated */import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Button=/*#__PURE__*/forwardRef(function(a,b){var c,d=a.as,e=a.block,f=void 0!==e&&e,g=a.children,h=a.className,i=a.disabled,j=a.loading,k=void 0!==j&&j,l=a.priority,m=void 0===l?Priority.PRIMARY:l,n=a.size,o=void 0===n?Size.MEDIUM:n,p=a.type,q=void 0===p?ControlType.ACCENT:p,r=_objectWithoutProperties(a,_excluded);logDeprecationNotices({size:o,type:q});// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
2
|
-
var s,t=establishNewType(q),u=establishNewPriority(m,q),v=classNames("btn btn-".concat(o),"np-btn np-btn-".concat(o),{"btn-loading":k,"btn-block np-btn-block":f},{disabled:i||k},// @ts-expect-error fix when refactor `typeClassMap` to TypeScript
|
|
3
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
4
|
-
typeClassMap[t],// @ts-expect-error fix when refactor `typeClassMap` to TypeScript
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
6
|
-
priorityClassMap[u],h),w=null!==(c=d)&&void 0!==c?c:"button";// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
7
|
-
if("button"===w){var x=r,y=x.htmlType,z=void 0===y?"button":y,A=_objectWithoutProperties(x,_excluded2);s=_objectSpread(_objectSpread({},A),{},{disabled:i||k,type:z})}else s=_objectSpread({},r);return/*#__PURE__*/_jsxs(w,_objectSpread(_objectSpread({ref:b,className:v},s),{},{children:[g,k&&/*#__PURE__*/_jsx("span",{className:classNames("btn-loader",{"m-l-2":!f})})]}))});export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import{userEvent,within}from"@storybook/testing-library";import{ControlType,Priority}from"../common";import{storyConfig}from"../test-utils";import Button from"./Button";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";export default{component:Button,title:"Actions/Button",args:{children:"Button text"},argTypes:{as:{type:{name:"enum",value:["button","a"]}}},tags:["autodocs"]};export var Basic={};export var Focused=storyConfig({parameters:{chromatic:{delay:1e3}},play:function play(a){var b=a.canvasElement,c=within(b);userEvent.click(c.getByRole("button"))}},{variants:["dark"]});export var Variants=storyConfig({args:{className:"m-r-2"},render:function render(a){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs("div",{className:"m-b-2",children:[/*#__PURE__*/_jsx("div",{className:"title-4 m-b-1",children:"Accent"}),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.PRIMARY,type:ControlType.ACCENT})),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.SECONDARY,type:ControlType.ACCENT})),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.TERTIARY,type:ControlType.ACCENT}))]}),/*#__PURE__*/_jsxs("div",{className:"m-b-2",children:[/*#__PURE__*/_jsx("div",{className:"title-4 m-b-1",children:"Positive"}),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.PRIMARY,type:ControlType.POSITIVE})),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.SECONDARY,type:ControlType.POSITIVE}))]}),/*#__PURE__*/_jsxs("div",{className:"m-b-2",children:[/*#__PURE__*/_jsx("div",{className:"title-4 m-b-1",children:"Negative"}),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.PRIMARY,type:ControlType.NEGATIVE})),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.SECONDARY,type:ControlType.NEGATIVE}))]}),/*#__PURE__*/_jsxs("div",{className:"m-b-2",children:[/*#__PURE__*/_jsx("div",{className:"title-4 m-b-1",children:"Disabled"}),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.PRIMARY,disabled:!0})),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.SECONDARY,disabled:!0})),/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({},a),{},{priority:Priority.TERTIARY,disabled:!0}))]})]})}},{variants:["default","dark","rtl"]});export var SocialMedia=storyConfig({render:function render(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("div",{className:"m-b-2",children:/*#__PURE__*/_jsx("button",{type:"button",className:"btn btn-google",children:"Login with Google"})}),/*#__PURE__*/_jsx("div",{className:"m-b-2",children:/*#__PURE__*/_jsx("button",{type:"button",className:"btn btn-facebook",children:"Login with Facebook"})}),/*#__PURE__*/_jsx("div",{className:"m-b-2",children:/*#__PURE__*/_jsx("button",{type:"button",className:"btn btn-lg btn-facebook",children:"Large Button"})}),/*#__PURE__*/_jsx("div",{className:"m-b-2",children:/*#__PURE__*/_jsx("button",{type:"button",className:"btn btn-block btn-facebook",children:"Block Button"})}),/*#__PURE__*/_jsx("div",{className:"m-b-2",children:/*#__PURE__*/_jsx("button",{type:"button",className:"btn btn-lg btn-block btn-facebook",children:"Large Block Button"})})]})}},{variants:["default","dark","rtl"]});export var SocialMediaMobile=storyConfig(SocialMedia,{variants:["default","dark","rtl","mobile"]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";var _typeClassMap,_priorityClassMap;import{ControlType,Priority}from"../common";export var typeClassMap=(_typeClassMap={},_defineProperty(_typeClassMap,ControlType.ACCENT,"btn-accent"),_defineProperty(_typeClassMap,ControlType.POSITIVE,"btn-positive"),_defineProperty(_typeClassMap,ControlType.NEGATIVE,"btn-negative"),_typeClassMap);export var priorityClassMap=(_priorityClassMap={},_defineProperty(_priorityClassMap,Priority.PRIMARY,"btn-priority-1"),_defineProperty(_priorityClassMap,Priority.SECONDARY,"btn-priority-2"),_defineProperty(_priorityClassMap,Priority.TERTIARY,"btn-priority-3"),_priorityClassMap);
|