@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var formatUsingPattern=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",b=1<arguments.length?arguments[1]:void 0;if("string"!=typeof b)return a;var c=b;0<c.indexOf("||")&&(c=c.slice(0,Math.max(0,b.indexOf("||"))));for(var d="",separators=0,e=a.length,f=0;e;)positionIsSeparator(c,f)?(d+=c[f],separators+=1):(d+=a[f-separators],e-=1),f+=1;var g=countSeparatorsAfterCursor(c,f);return g&&(d+=c.slice(f,g)),d},countSeparatorsAfterCursor=function(a,b){for(var separators=0;positionIsSeparator(a,b+separators);)separators+=1;return separators},positionIsSeparator=function(a,b){return a[b]&&"*"!==a[b]};export{formatUsingPattern};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import EmphasisHtmlTransformer from"./EmphasisHtmlTransformer";import{jsx as _jsx}from"react/jsx-runtime";var SUPPORTED_TAGS=["important","positive","negative","warning"],emphasisHtmlTransformer=new EmphasisHtmlTransformer(SUPPORTED_TAGS),Emphasis=function(a){var b=a.text,c=void 0===b?void 0:b;if(!c)return null;var d=emphasisHtmlTransformer.transform(c);// eslint-disable-next-line react/no-danger
|
|
2
|
-
return d?/*#__PURE__*/_jsx("span",{dangerouslySetInnerHTML:{__html:d}}):null};export default Emphasis;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Emphasis from"./Emphasis";export default{component:Emphasis,title:"Typography/Emphasis",tags:["autodocs"]};export var Basic={args:{text:"This is <important>important</important>.\\nThis is <positive>positive</positive>.\\nThis is <negative>negative</negative>.\\nThis is a <warning>warning</warning>.\\n<script>alert(\"nice try!\")</script>"}};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _defineProperty from"@babel/runtime/helpers/defineProperty";var ESCAPED_OPENING_CHEVRON="<",ESCAPED_CLOSING_CHEVRON=">",EmphasisHtmlTransformer=/*#__PURE__*/function(){function a(b){_classCallCheck(this,a),_defineProperty(this,"tags",void 0),this.tags=(b||[]).map(function(a){return{transformed:{opening:"<em class=\"emphasis emphasis--".concat(a,"\">"),closing:"</em>"},escapedRegex:{opening:new RegExp("".concat(ESCAPED_OPENING_CHEVRON).concat(a).concat(ESCAPED_CLOSING_CHEVRON),"g"),closing:new RegExp("".concat(ESCAPED_OPENING_CHEVRON,"/").concat(a).concat(ESCAPED_CLOSING_CHEVRON),"g")}}})}// Algorithm:
|
|
2
|
-
// 1) Escape all dangerous characters (<,>,&)
|
|
3
|
-
// 2) Replace all escaped, whitelisted tags with styled spans.
|
|
4
|
-
// 3) Transform new line characters to `<br />`s
|
|
5
|
-
//
|
|
6
|
-
// Note: for simplicity this doesn't support tags with non-standard whitespaces, e.g. <positive></ positive>
|
|
7
|
-
return _createClass(a,[{key:"transform",value:function transform(a){if(!a)return null;var b=a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return this.tags.reduce(function(a,b){return a.replace(b.escapedRegex.opening,b.transformed.opening).replace(b.escapedRegex.closing,b.transformed.closing)},b).replace(/\\n|\n/g,"<br />")}}]),a}();export default EmphasisHtmlTransformer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Emphasis";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import classNames from"classnames";import{useRef}from"react";import React from"react";import{Breakpoint,Layout}from"../common";import{CloseButton}from"../common/closeButton";import FlowHeader from"../common/flowHeader/FlowHeader";import{useClientWidth}from"../common/hooks";import Logo from"../logo";import Stepper from"../stepper/Stepper";import AnimatedLabel from"./animatedLabel";import BackButton from"./backButton";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var FlowNavigation=function(a){var b=a.activeStep,c=void 0===b?0:b,d=a.avatar,e=a.logo,f=void 0===e?/*#__PURE__*/_jsx(Logo,{}):e,g=a.done,h=void 0!==g&&g,i=a.onClose,j=a.onGoBack,k=a.steps,l=useRef(null),m=useClientWidth({ref:l}),n=_slicedToArray(m,1),o=n[0],p=null!=i&&/*#__PURE__*/_jsx(CloseButton,{size:"lg",onClick:i}),q=null!=o&&o<Breakpoint.SMALL,r=h?null:d;return/*#__PURE__*/_jsx("div",{ref:l,className:classNames("np-flow-navigation d-flex align-items-center justify-content-center p-y-3",{"np-flow-navigation--border-bottom":!h}),children:/*#__PURE__*/_jsx(FlowHeader,{className:classNames("np-flow-navigation__content p-x-3",{"np-flow-navigation--hidden":!o,"np-flow-navigation--xs-max":q,// Size switches on parent container which may or may not have the same size as the window.
|
|
2
|
-
"np-flow-navigation--sm":null!=o&&o>=Breakpoint.SMALL,"np-flow-navigation--lg":null!=o&&o>=Breakpoint.LARGE}),leftContent:q?function getLeftContentSmall(){return/*#__PURE__*/_jsx(_Fragment,{children:null!=j&&0<c?/*#__PURE__*/_jsx(BackButton,{label:/*#__PURE__*/_jsx(AnimatedLabel,{className:"m-x-1",labels:k.map(function(a){return a.label}),activeLabel:c-1}),onClick:j}):f})}():f,rightContent:/*#__PURE__*/_jsxs(_Fragment,{children:[r,r&&p&&/*#__PURE__*/_jsx("span",{className:"separator"}),p]}),bottomContent:!h&&/*#__PURE__*/_jsx(Stepper,{activeStep:c,steps:k,className:classNames("np-flow-navigation__stepper")}),layout:null!=o&&o<Breakpoint.LARGE?Layout.VERTICAL:Layout.HORIZONTAL})})};export default FlowNavigation;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import classNames from"classnames";import PropTypes from"prop-types";import{jsx as _jsx}from"react/jsx-runtime";var AnimatedLabel=function(a){var b=a.activeLabel,c=a.className,d=a.labels,e=d.length-1;return/*#__PURE__*/_jsx("div",{className:classNames("np-animated-label","np-text-body-large-bold",c),children:d.map(function(a,c){var d=c-1;return/*#__PURE__*/_jsx("div",{className:classNames("text-xs-left",{"np-animated-label--in":c===b,"np-animated-label--out":d===b&&d!==e}),children:a},d)})})};AnimatedLabel.propTypes={activeLabel:PropTypes.number.isRequired,className:PropTypes.string,labels:PropTypes.arrayOf(PropTypes.node).isRequired},AnimatedLabel.defaultProps={className:void 0};export default AnimatedLabel;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./AnimatedLabel";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ArrowLeft as ArrowLeftIcon}from"@transferwise/icons";import classNames from"classnames";import PropTypes from"prop-types";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var BackButton=function(a){var b=a.label,c=a.className,d=a.onClick;return/*#__PURE__*/_jsxs("button",{type:"button",className:classNames("np-back-button","align-items-center","btn-unstyled",c),onClick:d,children:[/*#__PURE__*/_jsx(ArrowLeftIcon,{size:24}),b]})};BackButton.propTypes={className:PropTypes.string,label:PropTypes.element,onClick:PropTypes.func},BackButton.defaultProps={className:void 0,label:void 0};export default BackButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import BackButton from"./BackButton";export default BackButton;
|
|
@@ -1,5 +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{useTheme}from"@wise/components-theming";import classNames from"classnames";import ActionButton from"../actionButton/ActionButton";import Button from"../button";import{Typography}from"../common";import Link from"../link";import Title from"../title";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var HeaderAction=function(a){var b=a.action,c=useTheme(),d=c.isModern,e={"aria-label":b["aria-label"]};return"href"in b?/*#__PURE__*/_jsx(Link,_objectSpread(_objectSpread({href:b.href,target:b.target,onClick:b.onClick},e),{},{children:b.text})):d?/*#__PURE__*/_jsx(Button,_objectSpread(_objectSpread({className:"np-header__button",priority:"tertiary",size:"sm",onClick:b.onClick},e),{},{children:b.text})):/*#__PURE__*/_jsx(ActionButton,_objectSpread(_objectSpread({onClick:b.onClick},e),{},{children:b.text}))};/**
|
|
2
|
-
*
|
|
3
|
-
* Neptune Web: https://transferwise.github.io/neptune-web/components/content/Header
|
|
4
|
-
*
|
|
5
|
-
*/export var Header=function(a){var b=a.action,c=a.as,d=void 0===c?"h5":c,e=a.title,f=a.className;return/*#__PURE__*/_jsxs("div",{className:classNames("np-header",f),children:[/*#__PURE__*/_jsx(Title,{as:d,type:Typography.TITLE_GROUP,className:"np-header__title",children:e}),b&&/*#__PURE__*/_jsx(HeaderAction,{action:b})]})};export default Header;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{render,screen,userEvent}from"../test-utils";import Header from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Header",function(){it("can set header title",function(){render(/*#__PURE__*/_jsx(Header,{title:"Header title"})),expect(screen.getByText("Header title")).toBeInTheDocument()}),it("can trigger header action",function(){var a=jest.fn();render(/*#__PURE__*/_jsx(Header,{title:"Header title",action:{text:"Click me!",onClick:a}})),userEvent.click(screen.getByRole("button",{name:"Click me!"})),expect(a).toHaveBeenCalledTimes(1)}),it("can set aria-label property for header action",function(){var a=jest.fn();render(/*#__PURE__*/_jsx(Header,{title:"Header title",action:{"aria-label":"Magic",text:"Click me!",onClick:a}})),userEvent.click(screen.getByRole("button",{name:"Magic"})),expect(a).toHaveBeenCalledTimes(1)}),it("renders header action as a link when href is provided",function(){render(/*#__PURE__*/_jsx(Header,{title:"Header title",action:{"aria-label":"Click me!",text:"I am a link",href:"https://wise.com"}}));var a=screen.getByRole("link",{name:"Click me!"});expect(a).toHaveAttribute("href","https://wise.com")}),it("renders header with h5 heading tag by default",function(){render(/*#__PURE__*/_jsx(Header,{title:"Header title"})),expect(screen.getByRole("heading",{name:"Header title",level:5})).toBeInTheDocument()}),it("can render header with specific heading tag",function(){render(/*#__PURE__*/_jsx(Header,{as:"h3",title:"Header title"})),expect(screen.getByRole("heading",{name:"Header title",level:3})).toBeInTheDocument()}),it("runs onClick if specified even when it got href prop",function(){var a=jest.fn();render(/*#__PURE__*/_jsx(Header,{as:"h3",title:"Header title",action:{text:"Click me",href:"#",onClick:a}}));var b=screen.getByRole("link",{name:"Click me"});expect(b).toBeInTheDocument(),userEvent.click(b),expect(a).toHaveBeenCalledTimes(1)})});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import Header from"./Header";import{jsx as _jsx}from"react/jsx-runtime";export default{component:Header,title:"Typography/Header"};export var Basic=function(){return/*#__PURE__*/_jsx(Header,{title:"Header title"})};export var WithAction=function(){return/*#__PURE__*/_jsx(Header,{title:"Header title",action:{"aria-label":"Magic",text:"Click me!",onClick:function onClick(){return alert("Action!")}}})};export var WithActionAsLink=function(){return/*#__PURE__*/_jsx(Header,{title:"Header title",action:{text:"This is a link",href:"https://wise.com"}})};export var WithActionAsLinkPreventingNavigationWithTracking=function(){return/*#__PURE__*/_jsx(Header,{title:"Header title",action:{text:"This is a link",href:"https://wise.com",onClick:function onClick(a){// we can stop the navigation from happening as onClick will always run before href redirect
|
|
2
|
-
alert("Running onClick handler"),a.preventDefault()}}})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Header";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import de from"./de.json";import en from"./en.json";import es from"./es.json";import fr from"./fr.json";import hu from"./hu.json";import id from"./id.json";import it from"./it.json";import ja from"./ja.json";import pl from"./pl.json";import pt from"./pt.json";import ro from"./ro.json";import ru from"./ru.json";import th from"./th.json";import tr from"./tr.json";import uk from"./uk.json";import zh from"./zh.json";var translations={de:de,en:en,es:es,fr:fr,hu:hu,id:id,it:it,ja:ja,pl:pl,pt:pt,ro:ro,ru:ru,th:th,tr:tr,uk:uk,zh:zh};export default translations;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import classnames from"classnames";import PropTypes from"prop-types";import{useRef}from"react";import{useHasIntersected}from"../common/hooks";/**
|
|
2
|
-
* Image component provides a wrapper for image tag. Optional lazy loading functionalities can also be enabled passing prop loading = "lazy.
|
|
3
|
-
* Once element intersects viewport image loads.
|
|
4
|
-
*
|
|
5
|
-
* @param {string} [alt=""] - string that contains the alt text. Required.
|
|
6
|
-
* @param {string} [src=""] - string that contains the src text. Required.
|
|
7
|
-
* @param {string} [id=""] - string that contains the id text.
|
|
8
|
-
* @param {Function} [onLoad=()=>{}] - function that contains load callback. Doesn't fire on SSR https://github.com/facebook/react/issues/15446
|
|
9
|
-
* @param {Function} [onError=()=>{}] - function that contains error callback. Doesn't fire on SSR https://github.com/facebook/react/issues/15446
|
|
10
|
-
* @param {boolean} [loading="lazy"] - This attribute follows the loading API attribute. If set to eager image will load immediately just like a normal image tag otherwise it will lazy load.
|
|
11
|
-
* @usage `<Image alt="alt" src="src" id="id1" onLoad={()=>{}} onError={())=>{}} loading="lazy" />`
|
|
12
|
-
*/import{jsx as _jsx}from"react/jsx-runtime";export var EmptyTransparentImage="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";var Image=function(a){var b=a.id,c=a.src,d=a.alt,e=a.onLoad,f=a.onError,g=a.className,h=a.loading,i=a.stretch,j=a.role,k=a.shrink,l=useRef(),m=useHasIntersected({elRef:l,loading:h}),n=_slicedToArray(m,1),o=n[0],p=c,q=e;return"lazy"!==h||o||(p=EmptyTransparentImage,q=null),/*#__PURE__*/_jsx("img",{ref:l,id:b,alt:d,src:p,className:classnames(["tw-image",{"tw-image__stretch":i,"tw-image__shrink":k},g]),role:j,onLoad:q,onError:f})};Image.propTypes={id:PropTypes.string,src:PropTypes.string.isRequired,alt:PropTypes.string.isRequired,onLoad:PropTypes.func,onError:PropTypes.func,className:PropTypes.string,loading:PropTypes.oneOf(["lazy","eager"]),stretch:PropTypes.bool,shrink:PropTypes.bool,role:PropTypes.string},Image.defaultProps={id:null,className:"",onLoad:function onLoad(){},onError:function onError(){},loading:"eager",stretch:!0,shrink:!0};export default Image;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Image";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types
|
|
3
|
-
*/ /**
|
|
4
|
-
* Components
|
|
5
|
-
*/export{default as Title}from"./title";export{default as Body}from"./body";export{default as Accordion}from"./accordion";export{default as ActionButton}from"./actionButton";export{default as ActionOption}from"./actionOption";export{default as Alert}from"./alert";export{default as Avatar}from"./avatar";export{default as AvatarWrapper}from"./avatarWrapper";export{default as Badge}from"./badge";export{default as BottomSheet}from"./common/bottomSheet";export{default as Button}from"./button";export{default as Card}from"./card";export{default as BaseCard}from"./common/card";export{default as Checkbox}from"./checkbox";export{default as CheckboxButton}from"./checkboxButton";export{default as CheckboxOption}from"./checkboxOption";export{default as Chevron}from"./chevron";export{default as Chips,Chip}from"./chips";export{default as CircularButton}from"./circularButton";export{default as DateInput}from"./dateInput";export{default as DateLookup}from"./dateLookup";export{default as Decision}from"./decision";export{default as DefinitionList}from"./definitionList";export{default as Dimmer}from"./dimmer";export{default as Display}from"./display";export{default as Drawer}from"./drawer";export{default as DropFade}from"./dropFade";export{default as DynamicFieldDefinitionList}from"./dynamicFieldDefinitionList";export{default as Emphasis}from"./emphasis";export{default as FlowNavigation}from"./flowNavigation/FlowNavigation";export{default as Header}from"./header";export{default as Image}from"./image";export{default as Info}from"./info";export{default as InlineAlert}from"./inlineAlert";export{Input}from"./inputs/Input";export{TextArea}from"./inputs/TextArea";export{default as InputWithDisplayFormat}from"./inputWithDisplayFormat";export{default as InstructionsList}from"./instructionsList";export{default as Link}from"./link";export{default as Loader}from"./loader";export{default as Logo}from"./logo";export{default as Markdown}from"./markdown";export{default as Modal}from"./modal";export{default as Money}from"./money";export{default as MoneyInput}from"./moneyInput";export{default as NavigationOption}from"./navigationOption";export{default as NavigationOptionsList}from"./navigationOptionsList";export{default as Nudge}from"./nudge";export{default as Option}from"./common/Option";export{default as OverlayHeader}from"./overlayHeader";export{default as PhoneNumberInput}from"./phoneNumberInput";export{default as Popover}from"./popover";export{default as ProcessIndicator}from"./processIndicator";export{default as ProgressBar}from"./progressBar";export{default as Progress}from"./progress";export{default as PromoCard}from"./promoCard";export{default as PromoCardGroup}from"./promoCard";export{default as Provider,DirectionProvider,LanguageProvider}from"./provider";export{default as Radio}from"./radio";export{default as RadioGroup}from"./radioGroup";export{default as RadioOption}from"./radioOption";export{default as Section}from"./section";export{default as Select}from"./select";export{default as SlidingPanel}from"./slidingPanel";export{default as SnackbarPortal}from"./snackbar/Snackbar";export{default as SnackbarProvider}from"./snackbar/SnackbarProvider";export{default as StatusIcon}from"./statusIcon/StatusIcon";export{default as Stepper}from"./stepper/Stepper";export{default as Sticky}from"./sticky";export{default as Summary}from"./summary";export{default as Switch}from"./switch";export{default as SwitchOption}from"./switchOption";export{default as Tabs}from"./tabs";export{default as TextareaWithDisplayFormat}from"./textareaWithDisplayFormat";export{default as Tooltip}from"./tooltip";export{default as Typeahead}from"./typeahead";export{default as Upload}from"./upload";export{default as UploadInput}from"./uploadInput";export{SnackbarConsumer,SnackbarContext}from"./snackbar/SnackbarContext";export{default as CriticalCommsBanner}from"./criticalBanner";export{default as ListItem}from"./listItem";/**
|
|
6
|
-
* Hooks
|
|
7
|
-
*/export{default as useSnackbar}from"./snackbar/useSnackbar";export{useDirection,useLayout}from"./common/hooks";/**
|
|
8
|
-
* Enums
|
|
9
|
-
*/export{Direction,Size,Width,Sentiment,Priority,ControlType,Type,Theme,DateMode,MonthFormat,Position,Scroll,ProfileType,Breakpoint,Layout,Status,MarkdownNodeType,Typography,Variant}from"./common";export{AvatarType}from"./avatar";export{InfoPresentation}from"./info";export{UploadStep}from"./upload";export{DecisionPresentation,DecisionType}from"./decision";export{AlertArrowPosition}from"./alert/withArrow";export{LogoType}from"./logo";export{FileType}from"./common";/**
|
|
10
|
-
* Utils
|
|
11
|
-
*/export{adjustLocale,DEFAULT_LANG,DEFAULT_LOCALE,getCountryFromLocale,getDirectionFromLocale,getLangFromLocale,isBrowser,isServerSide,RTL_LANGUAGES,SUPPORTED_LANGUAGES}from"./common";/**
|
|
12
|
-
* Translations
|
|
13
|
-
*/export{default as translations}from"./i18n";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";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{QuestionMarkCircle as HelpCircleIcon}from"@transferwise/icons";import classNames from"classnames";import PropTypes from"prop-types";import{useState}from"react";import{Size,Position}from"../common";import Modal from"../modal";import Popover from"../popover";import{InfoPresentation}from"./infoPresentations";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Info=function(a){var b=a.className,c=a.content,d=a.onClick,e=a.presentation,f=a.size,g=a.title,h=useState(!1),i=_slicedToArray(h,2),j=i[0],k=i[1],l=e===InfoPresentation.MODAL,m=f===Size.SMALL,n={"aria-label":a["aria-label"],className:"btn-unstyled",children:/*#__PURE__*/_jsx(HelpCircleIcon,{size:m?16:24})};return/*#__PURE__*/_jsx("span",{className:classNames(b,"np-info",{"np-info__small":m,"np-info__large":!m}),children:l?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("button",_objectSpread({type:"button",onClick:function onClick(){k(!j),d&&d()}},n)),/*#__PURE__*/_jsx(Modal,{body:c,open:j,title:g,onClose:function onClose(){return k(!1)}})]}):/*#__PURE__*/_jsx(Popover,{content:c,preferredPlacement:Position.BOTTOM,title:g,children:/*#__PURE__*/_jsx("button",_objectSpread(_objectSpread({type:"button"},n),{},{onClick:function onClick(){d&&d()}}))})})};Info.propTypes={"aria-label":PropTypes.string.isRequired,/** Extra classes applied to Info */className:PropTypes.string,/** Content displayed inside a Popover a Modal */content:PropTypes.node,onClick:PropTypes.func,/** Decides whether to display content in a Popover or a Modal */presentation:PropTypes.oneOf(["MODAL","POPOVER"]),/** Decides the size of help Icon */size:PropTypes.oneOf(["sm","lg"]),/** Title displayed inside a Popover a Modal */title:PropTypes.node},Info.defaultProps={className:void 0,content:void 0,onClick:void 0,presentation:InfoPresentation.POPOVER,size:Size.SMALL,title:void 0};export default Info;
|
|
@@ -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{lorem10,storyConfig}from"../test-utils";import Info,{InfoPresentation}from".";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Info,title:"Dialogs/Info",args:{"aria-label":"Click here for more details",title:"Fast transfer hint",content:lorem10},render:function render(a){return/*#__PURE__*/_jsxs("p",{children:[/*#__PURE__*/_jsx("span",{children:"Fast transfer"})," ",/*#__PURE__*/_jsx(Info,_objectSpread({},a))]})}};export var Basic=storyConfig({},{variants:["default","dark","rtl"]});export var OpenedPopover={parameters:{chromatic:{delay:1e3}},play:function play(a){var b=a.canvasElement,c=within(b);userEvent.click(c.getByRole("button"))}};export var OpenedPopoverMobile=storyConfig(OpenedPopover,{variants:["mobile"]});export var OpenedModal=_objectSpread(_objectSpread({},OpenedPopover),{},{args:{presentation:InfoPresentation.MODAL}});export var OpenedModalMobile=storyConfig(OpenedModal,{variants:["mobile"]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{InfoPresentation}from"./infoPresentations";export{default}from"./Info";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";var _typeClassMap;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{AlertCircle as AlertCircleIcon}from"@transferwise/icons";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import withArrow,{AlertArrowPosition}from"../alert/withArrow";import{Sentiment}from"../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var typeClassMap=(_typeClassMap={},_defineProperty(_typeClassMap,Sentiment.ERROR,"danger"),_defineProperty(_typeClassMap,Sentiment.NEGATIVE,"danger"),_typeClassMap),InlineAlert=function(a){var b=useTheme(),c=b.isModern,d="alert-".concat(typeClassMap[a.type]||a.type);if(c)return/*#__PURE__*/_jsxs("div",{role:"alert",id:a.id,className:classNames("alert alert-detach",d,a.className),children:[("error"===a.type||"negative"===a.type)&&/*#__PURE__*/_jsx(AlertCircleIcon,{}),/*#__PURE__*/_jsx("div",{children:a.children})]});var e=withArrow(function getAlertContents(b){var c=b.children,e=b.className;return/*#__PURE__*/_jsx("div",{role:"alert",id:a.id,className:classNames("alert alert-detach p-x-2 p-y-1",d,e),children:c})},AlertArrowPosition.TOP_LEFT);return/*#__PURE__*/_jsx(e,_objectSpread({},a))};InlineAlert.propTypes={children:PropTypes.node.isRequired,className:PropTypes.string,id:PropTypes.string,type:PropTypes.oneOf(["positive","negative","warning","neutral","success","info","error"])},InlineAlert.defaultProps={className:void 0,id:void 0,type:Sentiment.NEUTRAL};export default InlineAlert;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./InlineAlert";
|
|
@@ -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 WithDisplayFormat from"../withDisplayFormat";import{jsx as _jsx}from"react/jsx-runtime";var InputWithDisplayFormat=function(a){return/*#__PURE__*/_jsx(WithDisplayFormat,_objectSpread(_objectSpread({},a),{},{render:function render(a){return/*#__PURE__*/_jsx("input",_objectSpread({},a))}}))};InputWithDisplayFormat.propTypes={displayPattern:PropTypes.string.isRequired,onChange:PropTypes.func.isRequired};export default InputWithDisplayFormat;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./InputWithDisplayFormat";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["size","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{formControlClassNameBase}from"./_common";import{jsx as _jsx}from"react/jsx-runtime";export var Input=/*#__PURE__*/forwardRef(function(a,b){var c=a.size,d=void 0===c?"auto":c,e=a.className,f=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsx("input",_objectSpread({ref:b,className:classNames(e,formControlClassNameBase({size:d}))},f))});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["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{formControlClassNameBase}from"./_common";import{jsx as _jsx}from"react/jsx-runtime";export var TextArea=/*#__PURE__*/forwardRef(function(a,b){var c=a.className,d=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsx("textarea",_objectSpread({ref:b,className:classNames(c,formControlClassNameBase(),"np-text-area")},d))});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import classNames from"classnames";export function formControlClassNameBase(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.size,c=void 0===b?"auto":b;return classNames("form-control",// TODO: Deprecate
|
|
2
|
-
"np-form-control",{"np-form-control--size-auto np-text-body-large":"auto"===c,"np-form-control--size-sm np-text-body-default":"sm"===c,"np-form-control--size-md np-text-body-large":"md"===c,"np-form-control--size-lg np-text-title-subsection":"lg"===c},"np-form-control--shape-rectangle")}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{CrossCircle,CrossCircleFill,CheckCircle,CheckCircleFill}from"@transferwise/icons";import{useTheme}from"@wise/components-theming";import Body from"../body/Body";import{Typography}from"../common/propsValues/typography";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var InstructionsList=function(a){var b=useTheme(),c=b.isModern,d=a.dos,e=a.donts,f=c?CrossCircleFill:CrossCircle,g=c?CheckCircleFill:CheckCircle;return/*#__PURE__*/_jsxs("div",{className:"tw-instructions",children:[d&&d.map(function(a,b){return/*#__PURE__*/ (// eslint-disable-next-line react/no-array-index-key
|
|
2
|
-
_jsxs("div",{className:"instruction",children:[/*#__PURE__*/_jsx(g,{size:24,className:"do"}),/*#__PURE__*/_jsx(Body,{className:"text-primary",type:Typography.BODY_LARGE,children:a})]},b))}),e&&e.map(function(a,b){return/*#__PURE__*/ (// eslint-disable-next-line react/no-array-index-key
|
|
3
|
-
_jsxs("div",{className:"instruction",children:[/*#__PURE__*/_jsx(f,{size:24,className:"dont"}),/*#__PURE__*/_jsx(Body,{className:"text-primary",type:Typography.BODY_LARGE,children:a})]},b))})]})};export default InstructionsList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import InstructionsList from"./InstructionsList";export default InstructionsList;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["className","children","href","target","type","aria-label","onClick"];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{NavigateAway as NavigateAwayIcon}from"@transferwise/icons";import classNames from"classnames";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";/**
|
|
2
|
-
* Standard Link component with navigate away icon
|
|
3
|
-
*
|
|
4
|
-
* Documentation: https://transferwise.github.io/neptune-web/components/content/Link
|
|
5
|
-
*/var Link=function(a){var b=a.className,c=a.children,d=a.href,e=a.target,f=a.type,g=a["aria-label"],h=a.onClick,i=_objectWithoutProperties(a,_excluded),j="_blank"===e;return/*#__PURE__*/_jsxs("a",_objectSpread(_objectSpread({href:d,target:e,className:classNames("np-link",f?"np-text-".concat(f):void 0,"d-inline-flex",b),"aria-label":g,rel:j?"noreferrer":void 0,onClick:h},i),{},{children:[c,j&&/*#__PURE__*/_jsx(NavigateAwayIcon,{})]}))};export default Link;
|
|
@@ -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}from"../test-utils";import Link from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Link",function(){var a={className:"a-class",href:"/test"};it("renders Link component",function(){render(/*#__PURE__*/_jsx(Link,_objectSpread(_objectSpread({},a),{},{children:"link text"})));var b=screen.getByRole("link",{name:"link text"});expect(b).toHaveAttribute("href",a.href),expect(b).toHaveClass(a.className),expect(b).not.toHaveAttribute("target"),expect(b).not.toHaveAttribute("rel")}),it("renders target and rel attributes when target is _blank",function(){render(/*#__PURE__*/_jsx(Link,_objectSpread(_objectSpread({},a),{},{target:"_blank",children:"link text"})));var b=screen.getByText("link text");expect(b).toHaveAttribute("target","_blank"),expect(b).toHaveAttribute("rel","noreferrer")}),it("renders with the provided aria-label",function(){render(/*#__PURE__*/_jsx(Link,_objectSpread(_objectSpread({},a),{},{"aria-label":"make me accessible",children:"link text"})));var b=screen.getByText("link text");expect(b).toHaveAttribute("aria-label","make me accessible")})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-child-element-spacing */import Body from"../body/Body";import{Typography}from"../common";import Title from"../title/Title";import Link from".";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:Link,title:"Typography/Link"};export var Basic=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_SCREEN,className:"m-t-3",children:"Standalone examples of links"}),/*#__PURE__*/_jsx(Link,{href:"#",target:"_blank",children:"Default link"}),/*#__PURE__*/_jsx(Link,{type:Typography.LINK_DEFAULT,target:"_blank",className:"m-t-3",href:"#",children:"Default link"}),/*#__PURE__*/_jsx(Link,{type:Typography.LINK_LARGE,target:"_blank",className:"m-t-3",href:"#",children:"Large link"}),/*#__PURE__*/_jsxs(Title,{type:Typography.TITLE_SCREEN,className:"m-t-3",children:["Links via ",/*#__PURE__*/_jsx("code",{children:"<Link />"})," component in all types of body copy"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_LARGE_BOLD,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx(Link,{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_LARGE,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx(Link,{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_DEFAULT_BOLD,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx(Link,{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_DEFAULT,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx(Link,{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Title,{type:Typography.TITLE_SCREEN,className:"m-t-3",children:["Links via ",/*#__PURE__*/_jsx("code",{children:"<a>"})," tag in all types of body copy"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_LARGE_BOLD,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx("a",{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_LARGE,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx("a",{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_DEFAULT_BOLD,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx("a",{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]}),/*#__PURE__*/_jsxs(Body,{type:Typography.BODY_DEFAULT,className:"m-t-3",children:["We\u2019re building the world's"," ",/*#__PURE__*/_jsx("a",{href:"#",target:"_blank",children:"most international account"}),". We\u2019re building the world's most international account"]})]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Link";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["media","action","className","title","value","isContainerAligned","as"];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 Body from"../body/Body";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var ListItem=function(a){var b=a.media,c=a.action,d=a.className,e=a.title,f=a.value,g=a.isContainerAligned,h=a.as,i=void 0===h?"li":h,j=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsxs(i,_objectSpread(_objectSpread({className:classNames("np-list-item d-flex align-items-center p-y-2",d,{"p-x-2":!g})},j),{},{children:[b?b:null,/*#__PURE__*/_jsxs("div",{className:classNames("d-flex flex-column",{"p-l-2":!!b,"p-r-2":!!c}),children:[/*#__PURE__*/_jsx(Body,{type:"body-default",className:"text-secondary m-b-0",children:e}),f&&/*#__PURE__*/_jsx(Body,{type:"body-large",className:"text-primary m-b-0",children:f})]}),c?/*#__PURE__*/_jsx("div",{className:"np-list-item__action m-l-auto",children:c}):null]}))};export default ListItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from"@babel/runtime/helpers/asyncToGenerator";import _regeneratorRuntime from"@babel/runtime/regenerator";import"@testing-library/jest-dom";import ActionButton from"../actionButton/ActionButton";import{render,screen,within}from"../test-utils";import ListItem from".";import{jsx as _jsx}from"react/jsx-runtime";describe("ListItem",function(){it("shows the title and description",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function b(){var c;return _regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return render(/*#__PURE__*/_jsx(ListItem,{title:"Some title",value:"Some description",as:"li"})),b.next=3,a();case 3:c=b.sent,expect(c).toHaveClass("np-list-item"),expect(within(c).getByText("Some title")).toBeInTheDocument(),expect(within(c).getByText("Some description")).toBeInTheDocument();case 7:case"end":return b.stop();}},b)}))),it("shows an action",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function b(){var c,d;return _regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return render(/*#__PURE__*/_jsx(ListItem,{title:"Account number",value:"123",action:/*#__PURE__*/_jsx(ActionButton,{children:"Copy"})})),b.next=3,a();case 3:return c=b.sent,b.next=6,within(c).findByRole("button",{name:"Copy"});case 6:d=b.sent,expect(d).toBeInTheDocument();case 8:case"end":return b.stop();}},b)}))),it("shows media icon",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function b(){var c;return _regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return render(/*#__PURE__*/_jsx(ListItem,{title:"Some title",value:"Some desctiption",media:/*#__PURE__*/_jsx("img",{style:{width:32,height:32},src:"https://wise.com/public-resources/assets/balances/savings-emoji/google/\u2708\uFE0F.png",alt:"icon"})})),b.next=3,a();case 3:c=b.sent,expect(within(c).getByAltText("icon")).toBeInTheDocument();case 5:case"end":return b.stop();}},b)})));var a=/*#__PURE__*/function(){var a=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function a(){return _regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",screen.findByRole("listitem"));case 1:case"end":return a.stop();}},a)}));return function(){return a.apply(this,arguments)}}()});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["title","value"];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}/* eslint-disable react/jsx-child-element-spacing */import{action}from"@storybook/addon-actions";import{Documents}from"@transferwise/icons";import ActionButton from"../actionButton/ActionButton";import Avatar from"../avatar";import Badge from"../badge";import Info from"../info";import Title from"../title/Title";import ListItem from".";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:ListItem,title:"Other/ListItem",tags:["autodocs"]};var Template=function(a){var b=a.title,c=void 0===b?"Wise":b,d=a.value,e=void 0===d?"We\u2019re building the world\u2019s most international account":d,f=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsx(ListItem,_objectSpread({title:c,value:e},f))};export var Basic=function(){return/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(ListItem,{title:"Wise",value:"We\u2019re building the world's most international account"})})};export var Variants=function(){return/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"With Icon Avatar"}),/*#__PURE__*/_jsx(Template,{media:/*#__PURE__*/_jsx(Avatar,{children:/*#__PURE__*/_jsx("img",{style:{width:32,height:32},src:"https://wise.com/public-resources/assets/balances/savings-emoji/google/\u2708\uFE0F.png",alt:""})})})]}),/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"With Contact Avatar"}),/*#__PURE__*/_jsx(Template,{title:"Sandra Pepper",value:"Personal account",media:/*#__PURE__*/_jsx(Badge,{badge:/*#__PURE__*/_jsx("img",{src:"https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg",alt:"",height:"24px",width:"24px"}),children:/*#__PURE__*/_jsx(Avatar,{type:"initials",size:"md",children:/*#__PURE__*/_jsx("span",{"aria-hidden":!0,children:"SP"})})})})]}),/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"With Avatar and Action"}),/*#__PURE__*/_jsx(Template,{title:"Account holder",value:"Sandra Pepper",media:/*#__PURE__*/_jsx(Badge,{badge:/*#__PURE__*/_jsx("img",{src:"https://wise.com/public-resources/assets/brand/fast_flag_badge_personal.svg",alt:"",height:"24px",width:"24px"}),children:/*#__PURE__*/_jsx(Avatar,{type:"initials",size:"md",children:/*#__PURE__*/_jsx("span",{"aria-hidden":!0,children:"SP"})})}),action:/*#__PURE__*/_jsx(ActionButton,{children:"Share details"})})]}),/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"Text Only List"}),/*#__PURE__*/_jsxs("ul",{style:{paddingLeft:0},children:[/*#__PURE__*/_jsx(Template,{title:"Sort code",value:"23-14-71"}),/*#__PURE__*/_jsx(Template,{title:"Account number",value:"12345678"})]})]}),/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"Text With Action Button"}),/*#__PURE__*/_jsx(Template,{title:"SWIFT/BIC",value:"\u2022\u2022\u2022 \u2022\u2022\u2022",action:/*#__PURE__*/_jsx(ActionButton,{onClick:function onClick(){return action("clicked")},children:"Reveal"})})]}),/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"Text With Other Action"}),/*#__PURE__*/_jsx(Template,{title:"Account number",value:"123456789",action:/*#__PURE__*/_jsx("button",{type:"button",style:{background:"none",border:0},onClick:function onClick(){return action("clicked")},children:/*#__PURE__*/_jsx(Documents,{size:"24"})})})]}),/*#__PURE__*/_jsxs("div",{className:"m-t-4 m-b-2",children:[/*#__PURE__*/_jsx(Title,{type:"title-body",children:"Text With Info Action"}),/*#__PURE__*/_jsx(Template,{title:"Routing number",value:"987654",action:/*#__PURE__*/_jsx(Info,{size:"lg","aria-label":"More information",content:"Use this routing number to receive ACH and Wire transfers."})})]})]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./ListItem";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["small","size","displayInstantly","classNames"];import{useTheme}from"@wise/components-theming";import classnames from"classnames";import{useEffect,useState}from"react";import{Size}from"../common";// TODO: We gracefully depracated xs, lg and xl -- remove these as part of a future breaking change to this component
|
|
2
|
-
import{Fragment as _Fragment}from"react/jsx-runtime";import{jsx as _jsx}from"react/jsx-runtime";/**
|
|
3
|
-
* Loader component
|
|
4
|
-
*
|
|
5
|
-
* Docs link: https://transferwise.github.io/neptune-web/components/progress/Loader
|
|
6
|
-
*
|
|
7
|
-
* @param root0
|
|
8
|
-
* @param root0.small
|
|
9
|
-
* @param root0.size
|
|
10
|
-
* @param root0.classNames
|
|
11
|
-
*/var Loader=function(a){var b=a.small,c=a.size,d=void 0===c?Size.MEDIUM:c,e=a.displayInstantly,f=void 0!==e&&e,g=a.classNames,h=void 0===g?{}:g,i=_objectWithoutProperties(a,_excluded),j=useTheme(),k=j.theme,l=useState(f),m=_slicedToArray(l,2),n=m[0],o=m[1];useEffect(function(){var a,b;return f||(b=setTimeout(function(){a||o(!0)},1e3)),function(){a=!0,clearTimeout(b)}},[]);var p=function(a){return h[a]||a},q=void 0!==b&&b?Size.SMALL:d,r=getSupportedSize(q);return"forest-green"===k?(console.warn("Loader is forbidden to use with Forest Green theme. Check the https://wise.design/components/screen-loader for more info."),/*#__PURE__*/_jsx(_Fragment,{})):/*#__PURE__*/_jsx("div",{className:classnames(p("tw-loader"),p("tw-loader--".concat(r)),{"tw-loader--visible":n}),"data-testid":i["data-testid"]})},getSupportedSize=function(a){switch(a){case Size.SMALL:case Size.EXTRA_SMALL:return Size.SMALL;case Size.EXTRA_LARGE:case Size.LARGE:case Size.MEDIUM:default:return Size.MEDIUM;}};export default Loader;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Loader from"./Loader";export default{component:Loader,title:"Loading/Loader",args:{size:"md"},argTypes:{size:{type:{name:"enum",value:["sm","md"]}}},tags:["autodocs"]};export var Basic={};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Loader from"./Loader";export default Loader;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";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 React from"react";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import{Breakpoint}from"../common";import{isServerSide}from"../common/domHelpers";import{useClientWidth}from"../common/hooks";import{LogoType}from"./logoTypes";import{jsx as _jsx}from"react/jsx-runtime";var LogoFlagInverse=function(a){return/*#__PURE__*/_jsx("svg",_objectSpread(_objectSpread({},a),{},{children:/*#__PURE__*/_jsx("path",{fill:"#9FE870",d:"M6.826 7.232 0 15.21h12.188l1.37-3.762H8.335l3.191-3.69.01-.098L9.461 4.09h9.336L11.56 24h4.953L25.25 0H2.676l4.15 7.232Z"})}))};LogoFlagInverse.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none"};var LogoFlag=function(a){return/*#__PURE__*/_jsx("svg",_objectSpread(_objectSpread({},a),{},{children:/*#__PURE__*/_jsx("path",{fill:"#163300",d:"M6.826 7.232 0 15.21h12.188l1.37-3.762H8.335l3.191-3.69.01-.098L9.461 4.09h9.336L11.56 24h4.953L25.25 0H2.676l4.15 7.232Z"})}))};LogoFlag.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none"};var LogoWiseInverse=function(a){return/*#__PURE__*/_jsx("svg",_objectSpread(_objectSpread({},a),{},{children:/*#__PURE__*/_jsx("path",{fill:"#9FE870",d:"M58.738.359h6.498l-3.27 23.322h-6.498L58.739.359Zm-8.193 0L46.16 13.794 44.247.359h-4.545L33.96 13.754 33.243.36h-6.299l2.193 23.322h5.223l6.458-14.75 2.272 14.75h5.143L56.725.359h-6.18Zm54.558 13.555H89.674c.08 3.03 1.894 5.023 4.565 5.023 2.014 0 3.608-1.077 4.844-3.13l5.208 2.368C102.501 21.702 98.729 24 94.08 24c-6.339 0-10.545-4.266-10.545-11.123C83.535 5.342 88.478 0 95.455 0c6.14 0 10.007 4.146 10.007 10.605 0 1.076-.12 2.152-.359 3.309Zm-5.78-4.466c0-2.71-1.516-4.425-3.947-4.425-2.512 0-4.585 1.794-5.144 4.425h9.09ZM6.632 7.387 0 15.139h11.844l1.33-3.655H8.1l3.1-3.586.01-.095-2.016-3.471h9.072l-7.032 19.35h4.812L24.538.358H2.6l4.033 7.028Zm69.168-2.364c2.292 0 4.3 1.233 6.055 3.346l.921-6.575C81.143.688 78.93 0 76 0c-5.82 0-9.09 3.409-9.09 7.734 0 3 1.675 4.834 4.426 6.02l1.315.598c2.452 1.047 3.11 1.565 3.11 2.671 0 1.146-1.106 1.874-2.79 1.874-2.782.01-5.034-1.415-6.728-3.847l-.94 6.699C67.234 23.22 69.708 24 72.97 24c5.532 0 8.93-3.19 8.93-7.615 0-3.01-1.335-4.943-4.704-6.458l-1.435-.678c-1.994-.887-2.671-1.375-2.671-2.352 0-1.056.927-1.874 2.71-1.874Z"})}))};LogoWiseInverse.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"106",height:"24",fill:"none"};var LogoWise=function(a){return/*#__PURE__*/_jsx("svg",_objectSpread(_objectSpread({},a),{},{children:/*#__PURE__*/_jsx("path",{fill:"#163300",d:"M58.738.359h6.498l-3.27 23.322h-6.498L58.739.359Zm-8.193 0L46.16 13.794 44.247.359h-4.545L33.96 13.754 33.243.36h-6.299l2.193 23.322h5.223l6.458-14.75 2.272 14.75h5.143L56.725.359h-6.18Zm54.558 13.555H89.674c.08 3.03 1.894 5.023 4.565 5.023 2.014 0 3.608-1.077 4.844-3.13l5.208 2.368C102.501 21.702 98.729 24 94.08 24c-6.339 0-10.545-4.266-10.545-11.123C83.535 5.342 88.478 0 95.455 0c6.14 0 10.007 4.146 10.007 10.605 0 1.076-.12 2.152-.359 3.309Zm-5.78-4.466c0-2.71-1.516-4.425-3.947-4.425-2.512 0-4.585 1.794-5.144 4.425h9.09ZM6.632 7.387 0 15.139h11.844l1.33-3.655H8.1l3.1-3.586.01-.095-2.016-3.471h9.072l-7.032 19.35h4.812L24.538.358H2.6l4.033 7.028Zm69.168-2.364c2.292 0 4.3 1.233 6.055 3.346l.921-6.575C81.143.688 78.93 0 76 0c-5.82 0-9.09 3.409-9.09 7.734 0 3 1.675 4.834 4.426 6.02l1.315.598c2.452 1.047 3.11 1.565 3.11 2.671 0 1.146-1.106 1.874-2.79 1.874-2.782.01-5.034-1.415-6.728-3.847l-.94 6.699C67.234 23.22 69.708 24 72.97 24c5.532 0 8.93-3.19 8.93-7.615 0-3.01-1.335-4.943-4.704-6.458l-1.435-.678c-1.994-.887-2.671-1.375-2.671-2.352 0-1.056.927-1.874 2.71-1.874Z"})}))};LogoWise.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"106",height:"24",fill:"none"};var baseUrl="https://wise.com/public-resources/assets/logos/wise/",logoPaths={WISE:"brand_logo.svg",WISE_BUSINESS:"brand_logo_business.svg",WISE_INVERSE:"brand_logo_inverse.svg",WISE_BUSINESS_INVERSE:"brand_logo_business_inverse.svg",WISE_FLAG:"brand_flag.svg"},svgPaths={WISE:LogoWise,WISE_BUSINESS:LogoWise,WISE_INVERSE:LogoWiseInverse,WISE_BUSINESS_INVERSE:LogoWiseInverse,WISE_FLAG:LogoFlag,WISE_FLAG_INVERSE:LogoFlagInverse},Logo=function(a){var b=a.className,c=a.inverse,d=a.type,e=useTheme(),f=e.isModern,g=useClientWidth({ref:isServerSide()?void 0:window}),h=_slicedToArray(g,1),i=h[0],j=i<Breakpoint.SMALL,k=j?logoPaths.WISE_FLAG:logoPaths["".concat(d).concat(c?"_INVERSE":"")],l=j?svgPaths["WISE_FLAG".concat(c?"_INVERSE":"")]:svgPaths["".concat(d).concat(c?"_INVERSE":"")];return f?/*#__PURE__*/_jsx(l,{className:"np-logo-svg"}):/*#__PURE__*/_jsx("img",{className:classNames("np-logo",b),alt:d===LogoType.WISE?"Wise":"Wise business",src:"".concat(baseUrl).concat(k)})};Logo.propTypes={/** Extra classes applied to Logo */className:PropTypes.string,/** If true, will use dark colours for dark on light theme */inverse:PropTypes.bool,/** What type of logo to display */type:PropTypes.oneOf(["WISE","WISE_BUSINESS"])},Logo.defaultProps={className:void 0,inverse:!1,type:LogoType.WISE};export default Logo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Logo,{LogoType}from".";import{jsx as _jsx}from"react/jsx-runtime";export default{component:Logo,title:"Content/Logo",render:function render(a){var b=a.type,c=a.inverse;return/*#__PURE__*/_jsx("div",{className:"".concat(c?"bg--dark":""," p-a-3"),children:/*#__PURE__*/_jsx(Logo,{type:b,inverse:c})})},tags:["autodocs"]};export var Basic={args:{type:LogoType.WISE,inverse:!1}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{LogoType}from"./logoTypes";export{default}from"./Logo";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import commonmark from"commonmark";import difference from"lodash.difference";import PropTypes from"prop-types";import{MarkdownNodeType}from"../common";import{logActionRequired}from"../utilities";import{jsx as _jsx}from"react/jsx-runtime";var reader=new commonmark.Parser,writer=new commonmark.HtmlRenderer({safe:!0}),NODE_TYPE_LIST=Object.values(MarkdownNodeType),Markdown=function(a){var b=a.as,c=a.children,d=a.className,e=a.allowList,f=a.blockList,g=a.config;if(!c)return null;null!==e&&void 0!==e&&e.length&&null!==f&&void 0!==f&&f.length&&logActionRequired("Markdown supports only one of `allowList` or `blockList` to be used at a time. `blockList` will be ignored.");var h=function(a){var b=reader.parse(a);if(e||f){var c=e?difference(NODE_TYPE_LIST,e):f;return stripNodes({parsed:b,blockList:c})}return b};return/*#__PURE__*/_jsx(b,{className:d,dangerouslySetInnerHTML:{__html:function createMarkup(){var a=g.link.target,b=h(c);return writer.render(b).replace(/<a href="/g,"<a target=\"".concat(a,"\" href=\""))}()}})};function stripNodes(a){var b=a.blockList,c=a.parsed;if(!c)return c;for(var d=c.walker(),e=d.next();e;){var f=e,g=f.node;if(b.includes(g.type)&&!e.entering){for(;g.firstChild;)g.insertBefore(g.firstChild);g.unlink()}e=d.next()}return d.root}Markdown.propTypes={children:PropTypes.string.isRequired,as:PropTypes.string,className:PropTypes.string,allowList:PropTypes.arrayOf(PropTypes.oneOf(["block_quote","code_block","code","emph","heading","html_block","html_inline","image","item","linebreak","link","list","paragraph","softbreak","strong","thematic_break"])),blockList:PropTypes.arrayOf(PropTypes.oneOf(["block_quote","code_block","code","emph","heading","html_block","html_inline","image","item","linebreak","link","list","paragraph","softbreak","strong","thematic_break"])),config:PropTypes.shape({link:PropTypes.shape({target:PropTypes.oneOf(["_blank","_self"])})})},Markdown.defaultProps={as:"div",className:void 0,allowList:null,blockList:null,config:{link:{target:"_self"}}};export default Markdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Markdown from"./Markdown";export default{component:Markdown,title:"Typography/Markdown",tags:["autodocs"]};export var Basic={args:{children:"# Heading\n 1. item one\n 2. item two\n - sublist\n - sublist"}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Markdown";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["title","body","footer","onClose","className","open","size","scroll","position"];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{useRef}from"react";import CSSTransition from"react-transition-group/CSSTransition";import{Size,Position,Scroll,Typography}from"../common";import{CloseButton}from"../common/closeButton";import{useLayout}from"../common/hooks";import Dimmer from"../dimmer";import Drawer from"../drawer";import Title from"../title/Title";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var TRANSITION_DURATION_IN_MILLISECONDS=150,Modal=function(a){var b=a.title,c=void 0===b?null:b,d=a.body,e=a.footer,f=void 0===e?null:e,g=a.onClose,h=a.className,i=a.open,j=a.size,k=void 0===j?Size.MEDIUM:j,l=a.scroll,m=void 0===l?Scroll.VIEWPORT:l,n=a.position,o=void 0===n?Position.CENTER:n,p=_objectWithoutProperties(a,_excluded),q=function(a){return null===h||void 0===h?void 0:h.split(" ").includes(a)},r=useLayout(),s=r.isMobile,t=q("compact"),u=q("no-divider"),v=useRef(null);return s?/*#__PURE__*/_jsx(Drawer,{open:i,headerTitle:c,footerContent:f,position:Position.BOTTOM,onClose:g,children:d}):/*#__PURE__*/_jsx(Dimmer,{open:i,scrollable:m===Scroll.VIEWPORT,contentPosition:o,onClose:g,children:/*#__PURE__*/_jsx(CSSTransition,{nodeRef:v,appear:!0,in:i,classNames:{enterDone:"in"},timeout:TRANSITION_DURATION_IN_MILLISECONDS,unmountOnExit:!0,children:/*#__PURE__*/_jsx("div",_objectSpread(_objectSpread({ref:v,className:classNames("tw-modal","d-flex","fade","outline-none",m===Scroll.CONTENT&&"tw-modal--scrollable",h)},p),{},{children:/*#__PURE__*/_jsx("div",{className:classNames("tw-modal-dialog","d-flex",_defineProperty({},"tw-modal-".concat(k),k)),"aria-modal":!0,role:"dialog",children:/*#__PURE__*/_jsxs("div",{className:classNames("tw-modal-content","d-flex","flex-column","justify-content-between",{"tw-modal-compact":t,"tw-modal-no-title":!c}),children:[/*#__PURE__*/_jsxs("div",{className:classNames("tw-modal-header","d-flex","align-items-center","justify-content-between","flex-wrap",{"modal--withoutborder":!c||u}),children:[/*#__PURE__*/_jsx(Title,{type:Typography.TITLE_BODY,className:"tw-modal-title",children:c}),/*#__PURE__*/_jsx(CloseButton,{onClick:g})]}),/*#__PURE__*/_jsx("div",{className:classNames("tw-modal-body",{"tw-modal-body--scrollable":m===Scroll.CONTENT}),children:d}),f&&/*#__PURE__*/_jsx("div",{className:classNames("tw-modal-footer","d-flex","align-items-center","flex-wrap",{"modal--withoutborder":u}),children:f})]})})}))})})};export default Modal;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";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{action}from"@storybook/addon-actions";import{useState}from"react";import{Button,Modal}from"..";import{Scroll}from"../common";import{lorem10,lorem1000,storyConfig}from"../test-utils";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:Modal,title:"Dialogs/Modal",args:{size:"md",position:"center",open:!0},parameters:{chromatic:{delay:2e3}}};export var Basic={args:{title:"Title",body:lorem10,scroll:Scroll.VIEWPORT,footer:/*#__PURE__*/_jsx(Button,{block:!0,children:"Action"})},render:function render(a){// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
2
|
-
var b=useState(a.open),c=_slicedToArray(b,2),d=c[0],e=c[1];return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Button,{onClick:function onClick(){return e(!0)},children:"Open Modal"}),/*#__PURE__*/_jsx(Modal,_objectSpread(_objectSpread({},a),{},{open:d,onClose:function onClose(){e(!1),action("Modal closed")()}}))]})}};export var BasicMobile=storyConfig(Basic,{variants:["mobile"]});export var ContentScroll={args:{title:lorem10,body:lorem1000,scroll:Scroll.CONTENT}};export var ContentScrollMobile=storyConfig(ContentScroll,{variants:["mobile"]});export var ViewportScroll={args:{title:lorem10,body:lorem1000,scroll:Scroll.VIEWPORT}};export var ViewportScrollMobile=storyConfig(ViewportScroll,{variants:["mobile"]});export var WithoutTitle={args:{body:lorem1000,scroll:Scroll.CONTENT}};export var WithoutTitleMobile=storyConfig(WithoutTitle,{variants:["mobile"]});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Modal";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{formatMoney}from"@transferwise/formatting";import PropTypes from"prop-types";import{useIntl}from"react-intl";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsx as _jsx}from"react/jsx-runtime";var Money=function(a){var b=a.amount,c=a.currency,d=useIntl(),e=d.locale;return/*#__PURE__*/_jsx(_Fragment,{children:formatMoney(b,c,e)})};Money.propTypes={amount:PropTypes.number.isRequired,currency:PropTypes.string.isRequired};export default Money;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import Money from"./Money";export default{component:Money,title:"Typography/Money"};export var Basic={args:{amount:1234.5678,currency:"GBP"}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Money";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _assertThisInitialized from"@babel/runtime/helpers/assertThisInitialized";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";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}function _createSuper(a){var b=_isNativeReflectConstruct();return function(){var c,d=_getPrototypeOf(a);if(b){var e=_getPrototypeOf(this).constructor;c=Reflect.construct(d,arguments,e)}else c=d.apply(this,arguments);return _possibleConstructorReturn(this,c)}}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}import{isEmpty,isNumber,isNull}from"@transferwise/neptune-validation";import classNames from"classnames";import PropTypes from"prop-types";import{Component}from"react";import{injectIntl}from"react-intl";import{Typography}from"../common";import{Key as keyValues}from"../common/key";import keyCodes from"../common/keyCodes";import{Size}from"../common/propsValues/size";import{Input}from"../inputs/Input";import Select from"../select";import Title from"../title";import messages from"./MoneyInput.messages";import{formatAmount,parseAmount}from"./currencyFormatting";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Currency=PropTypes.shape({header:PropTypes.string,value:PropTypes.string,label:PropTypes.string,currency:PropTypes.string,note:PropTypes.string,searchable:PropTypes.string}),CUSTOM_ACTION="CUSTOM_ACTION",isNumberOrNull=function(a){return isNumber(a)||isNull(a)},formatAmountIfSet=function(a,b,c,d){return d?a||"":"number"==typeof a?formatAmount(a,b,c):""},parseNumber=function(a,b,c,d){return d?d&&a.length>d?0:+a:parseAmount(a,b,c)},inputKeyCodeAllowlist=new Set([keyCodes.BACKSPACE,keyCodes.DELETE,keyCodes.COMMA,keyCodes.PERIOD,keyCodes.DOWN,keyCodes.UP,keyCodes.LEFT,keyCodes.RIGHT,keyCodes.ENTER,keyCodes.ESCAPE,keyCodes.TAB]),inputKeyAllowlist=new Set([keyValues.PERIOD,keyValues.COMMA]),MoneyInput=/*#__PURE__*/function(a){function b(a){var d;_classCallCheck(this,b),d=c.call(this,a),_defineProperty(_assertThisInitialized(d),"isInputAllowedForKeyEvent",function(a){var b=a.keyCode,c=a.metaKey,d=a.key,e=a.ctrlKey,f=isNumber(parseInt(d,10));return f||c||e||inputKeyCodeAllowlist.has(b)||inputKeyAllowlist.has(d)}),_defineProperty(_assertThisInitialized(d),"handleKeyDown",function(a){d.isInputAllowedForKeyEvent(a)||a.preventDefault()}),_defineProperty(_assertThisInitialized(d),"handlePaste",function(a){var b=(a.clipboardData||window.clipboardData).getData("text"),c=d.state.locale,e=isEmpty(b)?null:parseNumber(b,d.props.selectedCurrency.currency,c,d.props.maxLengthOverride);isNumberOrNull(e)&&(d.setState({formattedAmount:formatAmountIfSet(e,d.props.selectedCurrency.currency,c,d.props.maxLengthOverride)}),d.props.onAmountChange(e)),a.preventDefault()}),_defineProperty(_assertThisInitialized(d),"onAmountChange",function(a){var b=a.target.value;d.setState({formattedAmount:b});var c=isEmpty(b)?null:parseNumber(b,d.props.selectedCurrency.currency,d.state.locale,d.props.maxLengthOverride);isNumberOrNull(c)&&d.props.onAmountChange(c)}),_defineProperty(_assertThisInitialized(d),"onAmountBlur",function(){d.amountFocused=!1,d.setAmount()}),_defineProperty(_assertThisInitialized(d),"onAmountFocus",function(){d.amountFocused=!0}),_defineProperty(_assertThisInitialized(d),"handleSelectChange",function(a){d.handleSearchChange(""),d.props.onCustomAction&&a.value===CUSTOM_ACTION?d.props.onCustomAction():d.props.onCurrencyChange(a)}),_defineProperty(_assertThisInitialized(d),"handleSearchChange",function(a){d.setState({searchQuery:a}),d.props.onSearchChange&&d.props.onSearchChange({searchQuery:a,filteredOptions:filterOptionsForQuery(d.props.currencies,a)})}),_defineProperty(_assertThisInitialized(d),"style",function(a){return d.props.classNames[a]||a});var e=d.props.intl.locale;return d.formatMessage=d.props.intl.formatMessage,d.state={searchQuery:"",formattedAmount:formatAmountIfSet(a.amount,a.selectedCurrency.currency,e,a.maxLengthOverride),locale:e},d}_inherits(b,a);var c=_createSuper(b);return _createClass(b,[{key:"UNSAFE_componentWillReceiveProps",value:function UNSAFE_componentWillReceiveProps(a){var b;if(this.setState({locale:null===a||void 0===a||null===(b=a.intl)||void 0===b?void 0:b.locale}),!this.amountFocused){var c;this.setState({formattedAmount:formatAmountIfSet(a.amount,a.selectedCurrency.currency,null===a||void 0===a||null===(c=a.intl)||void 0===c?void 0:c.locale,a.maxLengthOverride)})}}},{key:"getSelectOptions",value:function getSelectOptions(){var a=_toConsumableArray(filterOptionsForQuery(this.props.currencies,this.state.searchQuery));return this.props.onCustomAction&&a.push({value:CUSTOM_ACTION,label:this.props.customActionLabel}),a}},{key:"setAmount",value:function setAmount(){var a=this;this.setState(function(b){var c=parseNumber(b.formattedAmount,a.props.selectedCurrency.currency,b.locale,a.props.maxLengthOverride);return isNumberOrNull(c)?{formattedAmount:formatAmountIfSet(c,a.props.selectedCurrency.currency,b.locale,a.props.maxLengthOverride)}:{formattedAmount:b.formattedAmount}})}},{key:"render",value:function render(){var a=this.props,b=a.selectedCurrency,c=a.onCurrencyChange,d=a.size,e=a.addon,f=a.id,g=a.selectProps,h=a.maxLengthOverride,i=this.getSelectOptions(),j=!this.state.searchQuery&&(1===i.length&&i[0].currency===b.currency||!c),k=!this.props.onAmountChange;return/*#__PURE__*/_jsxs("div",{className:classNames(this.style("tw-money-input"),this.style("input-group"),this.style("input-group-".concat(d))),children:[/*#__PURE__*/_jsx(Input,{id:f,value:this.state.formattedAmount,inputMode:"decimal",disabled:k,maxLength:h,placeholder:formatAmountIfSet(this.props.placeholder,this.props.selectedCurrency.currency,this.state.locale,this.props.maxLengthOverride),autoComplete:"off",onKeyDown:this.handleKeyDown,onChange:this.onAmountChange,onFocus:this.onAmountFocus,onBlur:this.onAmountBlur,onPaste:this.handlePaste}),e&&/*#__PURE__*/_jsx("span",{className:classNames(this.style("input-group-addon"),this.style("input-".concat(d)),k?this.style("disabled"):""),children:e}),j?/*#__PURE__*/_jsxs("div",{className:classNames(this.style("input-group-addon"),this.style("input-".concat(d)),this.style("tw-money-input__fixed-currency"),k?this.style("disabled"):""),children:[("lg"===d||"md"===d)&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("i",{className:classNames(this.style("tw-money-input__keyline"))}),/*#__PURE__*/_jsx("i",{className:classNames(this.style("currency-flag"),this.style("currency-flag-".concat(b.currency.toLowerCase())),this.style("m-r-2"))})]}),/*#__PURE__*/_jsx(Title,{as:"span",type:Typography.TITLE_SUBSECTION,className:"lg"===d?this.style("m-r-1"):"",children:b.currency.toUpperCase()})]}):/*#__PURE__*/_jsx("div",{className:classNames(this.style("input-group-btn"),this.style("amount-currency-select-btn")),children:/*#__PURE__*/_jsx(Select,_objectSpread({id:f?"".concat(f,"-select"):void 0,classNames:this.props.classNames,options:i,selected:_objectSpread(_objectSpread({},b),{},{label:/*#__PURE__*/_jsx(Title,{as:"span",type:Typography.TITLE_SUBSECTION,className:"tw-money-input__text",children:b.label}),note:null}),placeholder:this.formatMessage(messages.selectPlaceholder),searchPlaceholder:this.props.searchPlaceholder,searchValue:this.state.searchQuery,size:d,required:!0,dropdownWidth:Size.LARGE,inverse:!0,onChange:this.handleSelectChange,onSearchChange:this.handleSearchChange},g))})]})}}]),b}(Component);function filterOptionsForQuery(a,b){if(!b)return a;var c=removeDuplicateValueOptions(a).filter(function(a){return isCurrencyOptionAndFitsQuery(a,b)});return sortOptionsLabelsToFirst(c,b)}function removeDuplicateValueOptions(a){var b=[],c=[];return a.forEach(function(a){a.value&&!c.includes(a.value)&&(b.push(a),c.push(a.value))}),b}function isCurrencyOptionAndFitsQuery(a,b){return!!a.value&&(contains(a.label,b)||contains(a.searchable,b)||contains(a.note,b))}function contains(a,b){return a&&a.toLowerCase().includes(b.toLowerCase())}function sortOptionsLabelsToFirst(a,b){return a.sort(function(a,c){var d=contains(a.label,b),e=contains(c.label,b);return d&&e?0:d?-1:e?1:0})}MoneyInput.propTypes={id:PropTypes.string,currencies:PropTypes.arrayOf(Currency).isRequired,selectedCurrency:Currency.isRequired,onCurrencyChange:PropTypes.func,placeholder:PropTypes.number,amount:PropTypes.number,size:PropTypes.oneOf(["sm","md","lg"]),onAmountChange:PropTypes.func,addon:PropTypes.node,searchPlaceholder:PropTypes.string,/**
|
|
2
|
-
* Allows the consumer to react to searching, while the search itself is handled internally. Called with `{ searchQuery: string, filteredOptions: Currency[] }`
|
|
3
|
-
*/onSearchChange:PropTypes.func,customActionLabel:PropTypes.node,onCustomAction:PropTypes.func,classNames:PropTypes.objectOf(PropTypes.string),selectProps:PropTypes.object,maxLengthOverride:PropTypes.number},MoneyInput.defaultProps={id:null,size:Size.LARGE,addon:null,searchPlaceholder:"",onSearchChange:void 0,onCurrencyChange:null,placeholder:null,amount:null,onAmountChange:null,customActionLabel:"",onCustomAction:null,classNames:{},selectProps:{},maxLengthOverride:null};// this export is necessary for react-to-typescript-definitions
|
|
4
|
-
// to be able to properly generate TS types, this is due to us wrapping this component in `injectIntl` before exporting
|
|
5
|
-
export{MoneyInput};export default injectIntl(MoneyInput);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineMessages}from"react-intl";export default defineMessages({selectPlaceholder:{id:"neptune.MoneyInput.Select.placeholder"}});
|
|
@@ -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{within,userEvent}from"@storybook/testing-library";import MoneyInput from".";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:MoneyInput,title:"Forms/MoneyInput",render:function render(a){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("label",{htmlFor:a.id,children:"Editable money input label"}),/*#__PURE__*/_jsx(MoneyInput,_objectSpread({},a))]})},args:{id:"money-input",amount:1e3,selectProps:{buttonProps:{"aria-label":"Select currency"},dropdownProps:{"aria-label":"Currency options"}}},tags:["autodocs"]};var exampleCurrency={eur:{value:"EUR",label:"EUR",note:"Euro",currency:"eur",searchable:"Spain, Germany, France, Austria"},gbp:{value:"GBP",label:"GBP",note:"British pound",currency:"gbp",searchable:"England, Scotland, Wales"}};export var SingleCurrency={args:{currencies:[],selectedCurrency:exampleCurrency.eur,onCurrencyChange:null}};export var MultipleCurrencies={args:{currencies:[{header:"Popular currencies"},exampleCurrency.eur,exampleCurrency.gbp],selectedCurrency:exampleCurrency.eur}};export var OpenedInput=_objectSpread(_objectSpread({},MultipleCurrencies),{},{play:function play(a){var b=a.canvasElement,c=within(b);userEvent.click(c.getByRole("combobox"))}});export var SmallInput={render:function render(a){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("label",{htmlFor:a.id,children:"Money inputs"}),/*#__PURE__*/_jsx(MoneyInput,_objectSpread(_objectSpread({},a),SingleCurrency.args)),/*#__PURE__*/_jsx("br",{}),/*#__PURE__*/_jsx(MoneyInput,_objectSpread(_objectSpread({},a),MultipleCurrencies.args)),/*#__PURE__*/_jsx("hr",{}),/*#__PURE__*/_jsxs("div",{className:"has-error",children:[/*#__PURE__*/_jsx("label",{htmlFor:a.id,children:"Error states"}),/*#__PURE__*/_jsx(MoneyInput,_objectSpread(_objectSpread({},a),SingleCurrency.args)),/*#__PURE__*/_jsx("br",{}),/*#__PURE__*/_jsx(MoneyInput,_objectSpread(_objectSpread({},a),MultipleCurrencies.args))]})]})},args:{size:"sm"}};export var MediumInput={render:SmallInput.render,args:{size:"md"}};export var LargeInput={render:SmallInput.render,args:{size:"lg"}};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{formatAmount}from"@transferwise/formatting";import{DEFAULT_LOCALE}from"../common/locale";export{formatAmount};// TODO: do not duplicate this between formatting and components
|
|
2
|
-
var currencyDecimals={BIF:0,BYR:0,CLP:0,DJF:0,GNF:0,JPY:0,KMF:0,KRW:0,MGA:0,PYG:0,RWF:0,VND:0,VUV:0,XAF:0,XOF:0,XPF:0,// technically HUF does have decimals, but due to the exchange rate banks
|
|
3
|
-
// do not accept decimal amounts
|
|
4
|
-
HUF:0,BHD:3,JOD:3,KWD:3,OMR:3,TND:3},DEFAULT_CURRENCY_DECIMALS=2;function isNumberLocaleSupported(){var a=1234 .toLocaleString&&1234 .toLocaleString(DEFAULT_LOCALE);return"1,234"===a}function getValidLocale(a){try{var b=a.replace(/_/,"-");return Intl.NumberFormat(b),b}catch(a){return"en-GB"}}function getCurrencyDecimals(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"",b=a.toUpperCase();return Object.prototype.hasOwnProperty.call(currencyDecimals,b)?currencyDecimals[b]:DEFAULT_CURRENCY_DECIMALS}function getDecimalSeparator(a){return isNumberLocaleSupported()?1.1.toLocaleString(a)[1]:"."}export function parseAmount(a,b,c){var d=getValidLocale(c),e=getCurrencyDecimals(b),f=isNumberLocaleSupported()?1e4.toLocaleString(d)[2]:",",g=getDecimalSeparator(d),h=(a?"".concat(a):"").replace(new RegExp("\\".concat(f),"g"),"").replace(new RegExp("\\".concat(g),"g"),".").replace(/[^0-9.]/g,""),i=parseFloat(parseFloat(h).toFixed(e));return Math.abs(i)}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./MoneyInput";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["as","disabled","onClick","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 Chevron from"../chevron";import{Position}from"../common";import Option from"../common/Option";import{jsx as _jsx}from"react/jsx-runtime";var NavigationOption=/*#__PURE__*/forwardRef(function(a,b){var c=a.as,d=void 0===c?"button":c,e=a.disabled,f=void 0!==e&&e,g=a.onClick,h=a.className,i=_objectWithoutProperties(a,_excluded);return"href"in i&&i.href&&(d="a"),/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},i),{},{ref:b,as:d,className:classNames("np-navigation-option",h),button:/*#__PURE__*/_jsx(Chevron,{orientation:Position.RIGHT,disabled:f,className:"d-block"}),disabled:f,onClick:function onClick(a){return f?void a.preventDefault():void(g&&g(a))}}))});export default NavigationOption;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./NavigationOption";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import PropTypes from"prop-types";import{Children}from"react";import{jsx as _jsx}from"react/jsx-runtime";var NavigationOptionList=function(a){var b=a.children;return/*#__PURE__*/_jsx("ul",{className:"np-navigation-options-list",children:Children.map(b,function(a){return/*#__PURE__*/_jsx("li",{className:"np-navigation-options-list__item",children:a},a.key)})})};NavigationOptionList.propTypes={children:PropTypes.node.isRequired};export default NavigationOptionList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./NavigationOptionsList";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{Illustration}from"@wise/art";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import{useEffect,useState}from"react";import Body from"../body";import{Typography}from"../common";import{CloseButton}from"../common/closeButton";import Link from"../link";// WARNING: Changing this will cause nudges to reappear wherever persist nudge is used and privacy team will need to be updated too
|
|
2
|
-
import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export var STORAGE_NAME="dismissedNudges";export var Media={GLOBE:"globe",LOCK:"lock",WALLET:"wallet",GEAR:"gear","INVITE-LETTER":"invite-letter","PERSONAL-CARD":"personal-card","BUSINESS-CARD":"business-card"};var getLocalStorage=function(){try{var a=localStorage.getItem(STORAGE_NAME);if(a){var b=JSON.parse(a);if(Array.isArray(b))return b}// eslint-disable-next-line unicorn/prefer-optional-catch-binding, no-empty
|
|
3
|
-
}catch(a){}return[]},Nudge=function(a){var b=a.media,c=a.mediaName,d=a.title,e=a.link,f=a.href,g=a.onClick,h=a.onDismiss,i=a.persistDismissal,j=a.isPreviouslyDismissed,k=a.id,l=a.className,m=useTheme(),n=m.isModern,o=useState(!1),p=_slicedToArray(o,2),q=p[0],r=p[1],s=useState(!1),t=_slicedToArray(s,2),u=t[0],v=t[1];return useEffect(function(){if(i&&k){var a=getLocalStorage(),b=!1;a&&a.find(function(a){return a===k})&&(r(!0),b=!0),j&&j(b)}v(!0)},[k,i]),i&&(q||!u)?null:/*#__PURE__*/_jsxs("div",{className:classNames("wds-nudge",l),id:k,children:[n?!!c&&/*#__PURE__*/_jsx("div",{className:"wds-nudge-media",children:/*#__PURE__*/_jsx(Illustration,{name:c,className:classNames("wds-nudge-media-".concat(c)),size:"small",disablePadding:!0,alt:""})}):/*#__PURE__*/_jsx("div",{className:"wds-nudge-media",children:b}),/*#__PURE__*/_jsxs("div",{className:"wds-nudge-container",children:[/*#__PURE__*/_jsxs("div",{className:"wds-nudge-content",children:[n?/*#__PURE__*/_jsx(Body,{type:Typography.BODY_LARGE,className:classNames("wds-nudge-body"),children:d}):/*#__PURE__*/_jsx("div",{className:"wds-nudge-title",children:d}),e&&/*#__PURE__*/_jsx(Link,{href:f,type:Typography.LINK_LARGE,className:"wds-nudge-link",onClick:g,children:e})]}),h||i?/*#__PURE__*/_jsx(CloseButton,{className:"wds-nudge-control",size:"sm",onClick:function handleOnDismiss(){var a=getLocalStorage();if(i&&k){try{localStorage.setItem(STORAGE_NAME,JSON.stringify([].concat(_toConsumableArray(a?a:[]),[k])))}catch(a){}r(!0)}h&&h()}}):null]})]})};export default Nudge;
|
|
@@ -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{render,fireEvent,cleanup,screen}from"../test-utils";import Nudge from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Nudge",function(){var a={media:/*#__PURE__*/_jsx("span",{role:"img","aria-label":"Party popper emoji",children:"\uD83C\uDF89"}),title:"A nudge title",link:"CTA",href:"#",onClick:jest.fn(),onDismiss:jest.fn()};afterEach(cleanup),it("renders a media element",function(){render(/*#__PURE__*/_jsx(Nudge,_objectSpread({},a)));var b=screen.getByRole("img");expect(b).toBeInTheDocument()}),it("renders a title",function(){render(/*#__PURE__*/_jsx(Nudge,_objectSpread({},a)));var b=screen.getByText("A nudge title");expect(b).toBeInTheDocument()}),it("renders a link to the passed href",function(){render(/*#__PURE__*/_jsx(Nudge,_objectSpread({},a)));var b=screen.getByText("CTA");expect(b).toBeInTheDocument(),expect(b).toHaveAttribute("href",a.href)}),it("calls onClick prop when the link is clicked",function(){render(/*#__PURE__*/_jsx(Nudge,_objectSpread({},a)));var b=screen.getByText("CTA");fireEvent.click(b),expect(a.onClick).toHaveBeenCalledTimes(1)}),it("calls onDismiss prop when close button is clicked",function(){render(/*#__PURE__*/_jsx(Nudge,_objectSpread({},a)));var b=screen.getByLabelText("Close");fireEvent.click(b),expect(a.onDismiss).toHaveBeenCalledTimes(1)}),it("adds the passed id to the parent container",function(){var b;render(/*#__PURE__*/_jsx(Nudge,_objectSpread(_objectSpread({},a),{},{id:"nudge-id"})));var c=null===(b=screen.getByRole("img").parentElement)||void 0===b?void 0:b.parentElement;expect(null===c||void 0===c?void 0:c.id).toBe("nudge-id")}),it("adds the passed className to the parent container's className",function(){var b;render(/*#__PURE__*/_jsx(Nudge,_objectSpread(_objectSpread({},a),{},{className:"happy-nudge"})));var c=null===(b=screen.getByRole("img").parentElement)||void 0===b?void 0:b.parentElement;expect(c).toHaveClass("happy-nudge")}),describe("Nudge persistance",function(){beforeEach(function(){jest.resetAllMocks()}),it("does NOT render a nudge if localStorage has been set with the id of the nudge",function(){jest.spyOn(window.localStorage.__proto__,"getItem").mockReturnValue("[\"CAKE\",\"TEST\"]"),render(/*#__PURE__*/_jsx(Nudge,_objectSpread(_objectSpread({},a),{},{id:"TEST",persistDismissal:!0}))),expect(screen.queryByText("A nudge title")).not.toBeInTheDocument()}),it("does NOT render a nudge if localStorage has been set with the id of the nudge AND calls is previously dismissed with TRUE",function(){jest.spyOn(window.localStorage.__proto__,"getItem").mockReturnValue("[\"CAKE\",\"TEST\"]");var b=jest.fn();render(/*#__PURE__*/_jsx(Nudge,_objectSpread(_objectSpread({},a),{},{id:"TEST",persistDismissal:!0,isPreviouslyDismissed:b}))),expect(screen.queryByText("A nudge title")).not.toBeInTheDocument(),expect(b).toHaveBeenCalledWith(!0)}),it("shows a nudge if localStorage has been set with a different id for a different nudge and calls is previously dismissed with FALSE",function(){jest.spyOn(window.localStorage.__proto__,"getItem").mockReturnValue("[\"BANANA\"]");var b=jest.fn();render(/*#__PURE__*/_jsx(Nudge,_objectSpread(_objectSpread({},a),{},{id:"TEST",persistDismissal:!0,isPreviouslyDismissed:b}))),expect(screen.getByText("A nudge title")).toBeInTheDocument(),expect(b).toHaveBeenCalledWith(!1)}),it("calls local storage with updated dismissed nudges value",function(){jest.spyOn(window.localStorage.__proto__,"getItem").mockReturnValue("[\"BANANA\"]");var b=jest.spyOn(window.localStorage.__proto__,"setItem");render(/*#__PURE__*/_jsx(Nudge,_objectSpread(_objectSpread({},a),{},{id:"TEST",persistDismissal:!0}))),expect(screen.getByText("A nudge title")).toBeInTheDocument();var c=screen.getByLabelText("Close");fireEvent.click(c),expect(a.onDismiss).toHaveBeenCalledTimes(1),expect(b).toHaveBeenCalledWith("dismissedNudges","[\"BANANA\",\"TEST\"]")})})});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{action}from"@storybook/addon-actions";import{Nudge}from"..";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";export default{component:Nudge,title:"Feedback/Nudge"};export var Default=function(){return/*#__PURE__*/_jsxs("div",{className:"d-flex flex-column",children:[/*#__PURE__*/_jsx(Nudge,{mediaName:"globe",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"lock",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"wallet",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"gear",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"invite-letter",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"personal-card",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"business-card",className:"m-b-2",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")})]})};export var DefaultWithPersist=function(){return/*#__PURE__*/_jsxs("div",{children:[/*#__PURE__*/_jsx(Nudge,{mediaName:"globe",title:"Text that is no longer than two lines.",id:"NEPTUNE_TEST_COMPONENT",className:"m-y-2",persistDismissal:!0,isPreviouslyDismissed:action("is previously dismissed first alert"),onClick:action("action clicked"),onDismiss:action("dismissed")}),/*#__PURE__*/_jsx(Nudge,{mediaName:"globe",title:"Text that is no longer than two lines2.",id:"NEPTUNE_TEST_COMPONENT_2",className:"m-y-2",persistDismissal:!0,isPreviouslyDismissed:action("is previously dismissed second alert"),onClick:action("action clicked"),onDismiss:action("dismissed")})]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./Nudge";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import PropTypes from"prop-types";import{CloseButton}from"../common/closeButton";import FlowHeader from"../common/flowHeader/FlowHeader";import Logo from"../logo";import{jsx as _jsx}from"react/jsx-runtime";import{Fragment as _Fragment}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var OverlayHeader=function(a){var b=a.avatar,c=a.onClose,d=a.logo,e=c&&/*#__PURE__*/_jsx(CloseButton,{onClick:c});return/*#__PURE__*/_jsx("div",{className:"np-overlay-header d-flex justify-content-center",children:/*#__PURE__*/_jsx(FlowHeader,{className:"np-overlay-header__content p-a-3",leftContent:d,rightContent:/*#__PURE__*/_jsxs(_Fragment,{children:[b,b&&e&&/*#__PURE__*/_jsx("span",{className:"separator"}),e]})})})};OverlayHeader.defaultProps={avatar:null,logo:/*#__PURE__*/_jsx(Logo,{}),onClose:null},OverlayHeader.propTypes={/** An Avatar */avatar:PropTypes.element,logo:PropTypes.node,/** Function called when the close is clicked */onClose:PropTypes.func};export default OverlayHeader;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{default}from"./OverlayHeader";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import _defineProperty from"@babel/runtime/helpers/defineProperty";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{isArray}from"@transferwise/neptune-validation";import PropTypes from"prop-types";import{useState,useEffect}from"react";import{useIntl}from"react-intl";import{Size}from"../common";import Select from"../select";import countries from"./data/countries";import{explodeNumberModel,filterOptionsForQuery,isValidPhoneNumber,cleanNumber,setDefaultPrefix,isStringNumeric,sortArrayByProperty,groupCountriesByPrefix,excludeCountries}from"./utils";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var ALLOWED_PHONE_CHARS=/^$|^[\d-\s]+$/,PhoneNumberInput=function(a){var b=a.id,c=a.onChange,d=a.searchPlaceholder,e=a.disabled,f=a.required,g=a.size,h=a.placeholder,i=a.onFocus,j=a.onBlur,k=a.countryCode,l=a.selectProps,m=a.disabledCountries,n=useIntl(),o=n.locale,p=useState(function getInitialValue(){var b=a.initialValue,c=b?cleanNumber(b):null;return c&&isValidPhoneNumber(c)?explodeNumberModel(c):{prefix:setDefaultPrefix(o,k),suffix:""}}()),q=_slicedToArray(p,2),r=q[0],s=q[1],t=useState(null),u=_slicedToArray(t,2),v=u[0],w=u[1],x=useState(""),y=_slicedToArray(x,2),z=y[0],A=y[1],B=excludeCountries(countries,m),C=groupCountriesByPrefix(sortArrayByProperty(B,"iso3")),D=groupCountriesByPrefix(sortArrayByProperty(B,"phone")),E=function getSelectOptions(){var a=filterOptionsForQuery(isStringNumeric(z)?D:C,z);return a.map(function(a){var b=a.phone,c=a.iso3,d=a.iso2,e="";return c?e=isArray(c)?c.join(", "):c:d&&(e=isArray(d)?d.join(", "):d),{value:b,label:b,note:e}})}();return useEffect(function(){if(null===v)return w(r);var a=r.prefix+r.suffix,b=v.prefix+v.suffix;if(a!==b){var d=isValidPhoneNumber(a)?cleanNumber(a):null;c(d,r.prefix),w(r)}},[c,v,r]),/*#__PURE__*/_jsxs("div",{className:"tw-telephone",children:[/*#__PURE__*/_jsx("div",{className:"tw-telephone__country-select",children:/*#__PURE__*/_jsx(Select,_objectSpread({id:b?"".concat(b,"-select"):void 0,options:E,selected:{value:r.prefix,label:r.prefix},placeholder:"Select an option...",searchPlaceholder:d,dropdownWidth:Size.SMALL,searchValue:z,required:f,disabled:e,size:g,onChange:function onPrefixChange(a){var b=a.value;A(""),s({prefix:b,suffix:r.suffix})},onSearchChange:function onSearchChange(a){return A(a)}},l))}),/*#__PURE__*/_jsx("div",{className:"tw-telephone__number-input",children:/*#__PURE__*/_jsx("div",{className:"input-group input-group-".concat(g),children:/*#__PURE__*/_jsx("input",{id:b,name:"phoneNumber",inputMode:"numeric",value:r.suffix,className:"form-control",disabled:e,required:f,placeholder:h,onChange:function onSuffixChange(a){var b=a.target.value,c=void 0===b?"":b;ALLOWED_PHONE_CHARS.test(c)&&s({prefix:r.prefix,suffix:c})},onPaste:function onPaste(a){if(a.nativeEvent.clipboardData){var b=(a.nativeEvent.clipboardData.getData("text/plain")||"").replace(/(\s|-)+/g,""),c=explodeNumberModel(b),d=c.prefix,e=c.suffix,f=E.find(function(a){var b=a.value;return b===d});f&&ALLOWED_PHONE_CHARS.test(e)&&s({prefix:d,suffix:e})}},onFocus:i,onBlur:j})})})]})};PhoneNumberInput.propTypes={id:PropTypes.string,required:PropTypes.bool,disabled:PropTypes.bool,initialValue:PropTypes.string,onChange:PropTypes.func.isRequired,onFocus:PropTypes.func,onBlur:PropTypes.func,countryCode:PropTypes.string,searchPlaceholder:PropTypes.string,size:PropTypes.oneOf(["sm","md","lg"]),placeholder:PropTypes.string,selectProps:PropTypes.object,/** List of iso3 codes of countries to remove from the list */disabledCountries:PropTypes.arrayOf(PropTypes.string)},PhoneNumberInput.defaultProps={id:null,required:!1,disabled:!1,initialValue:null,onFocus:function onFocus(){},onBlur:function onBlur(){},countryCode:null,searchPlaceholder:"Prefix",size:Size.MEDIUM,placeholder:"",selectProps:{},disabledCountries:[]};export default PhoneNumberInput;
|