@transferwise/components 43.12.6-beta-.16 → 43.12.7
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/es/no-polyfill/accordion/Accordion.js +1 -0
- package/build/es/no-polyfill/accordion/AccordionItem/AccordionItem.js +1 -0
- package/build/es/no-polyfill/accordion/AccordionItem/index.js +1 -0
- package/build/es/no-polyfill/accordion/index.js +1 -0
- package/build/es/no-polyfill/actionButton/ActionButton.js +1 -0
- package/build/es/no-polyfill/actionButton/ActionButton.spec.js +1 -0
- package/build/es/no-polyfill/actionButton/ActionButton.story.js +1 -0
- package/build/es/no-polyfill/actionButton/index.js +1 -0
- package/build/es/no-polyfill/actionOption/ActionOption.js +1 -0
- package/build/es/no-polyfill/actionOption/ActionOption.story.js +1 -0
- package/build/es/no-polyfill/actionOption/index.js +1 -0
- package/build/es/no-polyfill/alert/Alert.js +1 -0
- package/build/es/no-polyfill/alert/index.js +1 -0
- package/build/es/no-polyfill/alert/inlineMarkdown/InlineMarkdown.js +1 -0
- package/build/es/no-polyfill/alert/inlineMarkdown/index.js +1 -0
- package/build/es/no-polyfill/alert/withArrow/alertArrowPositions.js +2 -0
- package/build/es/no-polyfill/alert/withArrow/index.js +1 -0
- package/build/es/no-polyfill/alert/withArrow/withArrow.js +1 -0
- package/build/es/no-polyfill/avatar/Avatar.js +1 -0
- package/build/es/no-polyfill/avatar/avatarTypes.js +2 -0
- package/build/es/no-polyfill/avatar/index.js +1 -0
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -0
- package/build/es/no-polyfill/avatarWrapper/index.js +1 -0
- package/build/es/no-polyfill/badge/Badge.js +1 -0
- package/build/es/no-polyfill/badge/index.js +1 -0
- package/build/es/no-polyfill/body/Body.js +1 -0
- package/build/es/no-polyfill/body/Body.spec.js +1 -0
- package/build/es/no-polyfill/body/Body.story.js +1 -0
- package/build/es/no-polyfill/body/index.js +1 -0
- package/build/es/no-polyfill/button/Button.js +7 -0
- package/build/es/no-polyfill/button/classMap.js +1 -0
- package/build/es/no-polyfill/button/index.js +1 -0
- package/build/es/no-polyfill/button/legacyUtils/index.js +1 -0
- package/build/es/no-polyfill/button/legacyUtils/legacyUtils.js +4 -0
- package/build/es/no-polyfill/card/Card.js +1 -0
- package/build/es/no-polyfill/card/index.js +1 -0
- package/build/es/no-polyfill/checkbox/Checkbox.js +1 -0
- package/build/es/no-polyfill/checkbox/index.js +1 -0
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.js +1 -0
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.spec.js +1 -0
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +1 -0
- package/build/es/no-polyfill/checkboxButton/index.js +1 -0
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.js +1 -0
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.spec.js +1 -0
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.story.js +1 -0
- package/build/es/no-polyfill/checkboxOption/index.js +1 -0
- package/build/es/no-polyfill/chevron/Chevron.js +1 -0
- package/build/es/no-polyfill/chevron/index.js +1 -0
- package/build/es/no-polyfill/chips/Chip.js +1 -0
- package/build/es/no-polyfill/chips/Chips.js +1 -0
- package/build/es/no-polyfill/chips/Chips.messages.js +1 -0
- package/build/es/no-polyfill/chips/Chips.spec.js +1 -0
- package/build/es/no-polyfill/chips/Chips.story.js +1 -0
- package/build/es/no-polyfill/chips/index.js +1 -0
- package/build/es/no-polyfill/circularButton/CircularButton.js +1 -0
- package/build/es/no-polyfill/circularButton/index.js +1 -0
- package/build/es/no-polyfill/common/DOMOperations/DOMOperations.js +9 -0
- package/build/es/no-polyfill/common/DOMOperations/index.js +1 -0
- package/build/es/no-polyfill/common/Option/Option.js +1 -0
- package/build/es/no-polyfill/common/Option/index.js +1 -0
- package/build/es/no-polyfill/common/RadioButton/RadioButton.js +1 -0
- package/build/es/no-polyfill/common/RadioButton/index.js +1 -0
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +10 -0
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.spec.js +1 -0
- package/build/es/no-polyfill/common/bottomSheet/index.js +1 -0
- package/build/es/no-polyfill/common/closeButton/CloseButton.js +1 -0
- package/build/es/no-polyfill/common/closeButton/CloseButton.messages.js +1 -0
- package/build/es/no-polyfill/common/closeButton/index.js +1 -0
- package/build/es/no-polyfill/common/commonProps.js +0 -0
- package/build/es/no-polyfill/common/dateUtils/getDayNames/getDayNames.js +2 -0
- package/build/es/no-polyfill/common/dateUtils/getDayNames/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/getMonthNames/getMonthNames.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/getMonthNames/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/isDateValid/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/isDateValid/isDateValid.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/isWithinRange/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/isWithinRange/isWithinRange.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/index.js +1 -0
- package/build/es/no-polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +2 -0
- package/build/es/no-polyfill/common/deviceDetection/deviceDetection.js +1 -0
- package/build/es/no-polyfill/common/deviceDetection/index.js +1 -0
- package/build/es/no-polyfill/common/direction.js +1 -0
- package/build/es/no-polyfill/common/domHelpers/documentIosClick.js +5 -0
- package/build/es/no-polyfill/common/domHelpers/index.js +1 -0
- package/build/es/no-polyfill/common/fakeEvents.js +1 -0
- package/build/es/no-polyfill/common/fileType.js +1 -0
- package/build/es/no-polyfill/common/flowHeader/FlowHeader.js +1 -0
- package/build/es/no-polyfill/common/flowHeader/index.js +1 -0
- package/build/es/no-polyfill/common/focusBoundary/FocusBoundary.js +1 -0
- package/build/es/no-polyfill/common/focusBoundary/index.js +1 -0
- package/build/es/no-polyfill/common/focusBoundary/utils/getFocusableElements.js +6 -0
- package/build/es/no-polyfill/common/focusBoundary/utils/index.js +1 -0
- package/build/es/no-polyfill/common/focusBoundary/utils/resetFocus.js +6 -0
- package/build/es/no-polyfill/common/historyNavigator/historyNavigator.js +1 -0
- package/build/es/no-polyfill/common/historyNavigator/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useClientWidth/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useClientWidth/useClientWidth.js +5 -0
- package/build/es/no-polyfill/common/hooks/useConditionalListener/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useConditionalListener/useConditionalListener.js +3 -0
- package/build/es/no-polyfill/common/hooks/useDirection/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useDirection/useDirection.js +1 -0
- package/build/es/no-polyfill/common/hooks/useHasIntersected/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useHasIntersected/useHasIntersected.js +11 -0
- package/build/es/no-polyfill/common/hooks/useLayout/index.js +1 -0
- package/build/es/no-polyfill/common/hooks/useLayout/useLayout.js +1 -0
- package/build/es/no-polyfill/common/index.js +2 -0
- package/build/es/no-polyfill/common/key.js +1 -0
- package/build/es/no-polyfill/common/keyCodes.js +5 -0
- package/build/es/no-polyfill/common/locale/index.js +37 -0
- package/build/es/no-polyfill/common/panel/Panel.js +10 -0
- package/build/es/no-polyfill/common/panel/index.js +1 -0
- package/build/es/no-polyfill/common/propsValues/breakpoint.js +1 -0
- package/build/es/no-polyfill/common/propsValues/control.js +1 -0
- package/build/es/no-polyfill/common/propsValues/dateMode.js +1 -0
- package/build/es/no-polyfill/common/propsValues/layouts.js +1 -0
- package/build/es/no-polyfill/common/propsValues/markdownNodeType.js +1 -0
- package/build/es/no-polyfill/common/propsValues/monthFormat.js +1 -0
- package/build/es/no-polyfill/common/propsValues/position.js +1 -0
- package/build/es/no-polyfill/common/propsValues/profileType.js +1 -0
- package/build/es/no-polyfill/common/propsValues/scroll.js +1 -0
- package/build/es/no-polyfill/common/propsValues/sentiment.js +1 -0
- package/build/es/no-polyfill/common/propsValues/size.js +1 -0
- package/build/es/no-polyfill/common/propsValues/status.js +1 -0
- package/build/es/no-polyfill/common/propsValues/type.js +3 -0
- package/build/es/no-polyfill/common/propsValues/typography.js +1 -0
- package/build/es/no-polyfill/common/propsValues/variant.js +1 -0
- package/build/es/no-polyfill/common/propsValues/width.js +1 -0
- package/build/es/no-polyfill/common/requirements.js +3 -0
- package/build/es/no-polyfill/common/responsivePanel/ResponsivePanel.js +1 -0
- package/build/es/no-polyfill/common/responsivePanel/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +2 -0
- package/build/es/no-polyfill/common/textFormat/formatWithPattern/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +2 -0
- package/build/es/no-polyfill/common/textFormat/getDistanceToSymbol/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +1 -0
- package/build/es/no-polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/unformatWithPattern/index.js +1 -0
- package/build/es/no-polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +1 -0
- package/build/es/no-polyfill/common/theme.js +1 -0
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.js +1 -0
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -0
- package/build/es/no-polyfill/criticalBanner/index.js +1 -0
- package/build/es/no-polyfill/dateInput/DateInput.js +4 -0
- package/build/es/no-polyfill/dateInput/DateInput.messages.js +1 -0
- package/build/es/no-polyfill/dateInput/index.js +1 -0
- package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +2 -0
- package/build/es/no-polyfill/dateInput/utils/convertToLocalMidnight/index.js +1 -0
- package/build/es/no-polyfill/dateInput/utils/explodeDate/explodeDate.js +1 -0
- package/build/es/no-polyfill/dateInput/utils/explodeDate/index.js +1 -0
- package/build/es/no-polyfill/dateInput/utils/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/DateLookup.js +3 -0
- package/build/es/no-polyfill/dateLookup/dateHeader/DateHeader.js +1 -0
- package/build/es/no-polyfill/dateLookup/dateHeader/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.js +1 -0
- package/build/es/no-polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +1 -0
- package/build/es/no-polyfill/dateLookup/dateTrigger/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/dayCalendar/DayCalendar.js +1 -0
- package/build/es/no-polyfill/dateLookup/dayCalendar/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +4 -0
- package/build/es/no-polyfill/dateLookup/dayCalendar/table/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/getStartOfDay/getStartOfDay.js +5 -0
- package/build/es/no-polyfill/dateLookup/getStartOfDay/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/monthCalendar/MonthCalendar.js +1 -0
- package/build/es/no-polyfill/dateLookup/monthCalendar/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -0
- package/build/es/no-polyfill/dateLookup/monthCalendar/table/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/tableLink/TableLink.js +2 -0
- package/build/es/no-polyfill/dateLookup/tableLink/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/yearCalendar/YearCalendar.js +1 -0
- package/build/es/no-polyfill/dateLookup/yearCalendar/index.js +1 -0
- package/build/es/no-polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +1 -0
- package/build/es/no-polyfill/dateLookup/yearCalendar/table/index.js +1 -0
- package/build/es/no-polyfill/decision/Decision.js +5 -0
- package/build/es/no-polyfill/decision/decisionEnums.js +3 -0
- package/build/es/no-polyfill/decision/index.js +1 -0
- package/build/es/no-polyfill/definitionList/DefinitionList.js +1 -0
- package/build/es/no-polyfill/definitionList/index.js +1 -0
- package/build/es/no-polyfill/dimmer/Dimmer.js +6 -0
- package/build/es/no-polyfill/dimmer/Dimmer.story.js +1 -0
- package/build/es/no-polyfill/dimmer/dimmerManager/DimmerManager.js +5 -0
- package/build/es/no-polyfill/dimmer/dimmerManager/index.js +1 -0
- package/build/es/no-polyfill/dimmer/index.js +1 -0
- package/build/es/no-polyfill/display/Display.js +1 -0
- package/build/es/no-polyfill/display/Display.story.js +1 -0
- package/build/es/no-polyfill/display/index.js +1 -0
- package/build/es/no-polyfill/drawer/Drawer.js +1 -0
- package/build/es/no-polyfill/drawer/index.js +1 -0
- package/build/es/no-polyfill/dropFade/DropFade.js +3 -0
- package/build/es/no-polyfill/dropFade/DropFade.story.js +1 -0
- package/build/es/no-polyfill/dropFade/index.js +1 -0
- package/build/es/no-polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -0
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +8 -0
- package/build/es/no-polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +1 -0
- package/build/es/no-polyfill/dynamicFieldDefinitionList/index.js +1 -0
- package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +2 -0
- package/build/es/no-polyfill/dynamicFieldDefinitionList/utils/text-format.js +1 -0
- package/build/es/no-polyfill/emphasis/Emphasis.js +2 -0
- package/build/es/no-polyfill/emphasis/EmphasisHtmlTransformer.js +7 -0
- package/build/es/no-polyfill/emphasis/index.js +1 -0
- package/build/es/no-polyfill/flowNavigation/FlowNavigation.js +2 -0
- package/build/es/no-polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -0
- package/build/es/no-polyfill/flowNavigation/animatedLabel/index.js +1 -0
- package/build/es/no-polyfill/flowNavigation/backButton/BackButton.js +1 -0
- package/build/es/no-polyfill/flowNavigation/backButton/index.js +1 -0
- package/build/es/no-polyfill/flowNavigation/index.js +1 -0
- package/build/es/no-polyfill/header/Header.js +5 -0
- package/build/es/no-polyfill/header/Header.spec.js +1 -0
- package/build/es/no-polyfill/header/Header.story.js +2 -0
- package/build/es/no-polyfill/header/index.js +1 -0
- package/build/es/no-polyfill/i18n/cs.json +44 -0
- package/build/es/no-polyfill/i18n/de.json +44 -0
- package/build/es/no-polyfill/i18n/en.json +44 -0
- package/build/es/no-polyfill/i18n/es.json +44 -0
- package/build/es/no-polyfill/i18n/fr.json +44 -0
- package/build/es/no-polyfill/i18n/hu.json +44 -0
- package/build/es/no-polyfill/i18n/id.json +44 -0
- package/build/es/no-polyfill/i18n/index.js +1 -0
- package/build/es/no-polyfill/i18n/it.json +44 -0
- package/build/es/no-polyfill/i18n/ja.json +44 -0
- package/build/es/no-polyfill/i18n/pl.json +44 -0
- package/build/es/no-polyfill/i18n/pt.json +44 -0
- package/build/es/no-polyfill/i18n/ro.json +44 -0
- package/build/es/no-polyfill/i18n/ru.json +44 -0
- package/build/es/no-polyfill/i18n/th.json +44 -0
- package/build/es/no-polyfill/i18n/tr.json +44 -0
- package/build/es/no-polyfill/i18n/uk.json +44 -0
- package/build/es/no-polyfill/i18n/zh-CN.json +44 -0
- package/build/es/no-polyfill/i18n/zh.json +44 -0
- package/build/es/no-polyfill/image/Image.js +12 -0
- package/build/es/no-polyfill/image/index.js +1 -0
- package/build/es/no-polyfill/index.js +13 -0
- package/build/es/no-polyfill/info/Info.js +1 -0
- package/build/es/no-polyfill/info/index.js +1 -0
- package/build/es/no-polyfill/info/infoPresentations.js +2 -0
- package/build/es/no-polyfill/inlineAlert/InlineAlert.js +1 -0
- package/build/es/no-polyfill/inlineAlert/index.js +1 -0
- package/build/es/no-polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +1 -0
- package/build/es/no-polyfill/inputWithDisplayFormat/index.js +1 -0
- package/build/es/no-polyfill/instructionsList/InstructionsList.js +3 -0
- package/build/es/no-polyfill/instructionsList/index.js +1 -0
- package/build/es/no-polyfill/lab/index.js +1 -0
- package/build/es/no-polyfill/lab/mobileNav/MobileNav.js +9 -0
- package/build/es/no-polyfill/lab/mobileNav/index.js +1 -0
- package/build/es/no-polyfill/lab/mobileNav/utils/index.js +1 -0
- package/build/es/no-polyfill/lab/mobileNav/utils/isIpadOsSafari/index.js +1 -0
- package/build/es/no-polyfill/lab/mobileNav/utils/isIpadOsSafari/isIpadOsSafari.js +1 -0
- package/build/es/no-polyfill/lab/mobileNav/utils/isMobileSafari/index.js +1 -0
- package/build/es/no-polyfill/lab/mobileNav/utils/isMobileSafari/isMobileSafari.js +1 -0
- package/build/es/no-polyfill/lab/pagination/Pagination.js +1 -0
- package/build/es/no-polyfill/lab/pagination/Pagination.messages.js +1 -0
- package/build/es/no-polyfill/lab/pagination/index.js +1 -0
- package/build/es/no-polyfill/lab/pagination/paginationLink/PaginationLink.js +1 -0
- package/build/es/no-polyfill/lab/pagination/paginationLink/PaginationLink.messages.js +1 -0
- package/build/es/no-polyfill/lab/pagination/paginationLink/index.js +1 -0
- package/build/es/no-polyfill/link/Link.js +5 -0
- package/build/es/no-polyfill/link/Link.spec.js +1 -0
- package/build/es/no-polyfill/link/Link.story.js +1 -0
- package/build/es/no-polyfill/link/index.js +1 -0
- package/build/es/no-polyfill/loader/Loader.js +11 -0
- package/build/es/no-polyfill/loader/index.js +1 -0
- package/build/es/no-polyfill/logo/Logo.js +1 -0
- package/build/es/no-polyfill/logo/index.js +1 -0
- package/build/es/no-polyfill/logo/logoTypes.js +2 -0
- package/build/es/no-polyfill/logo/svg/flag-inverse.svg +1 -0
- package/build/es/no-polyfill/logo/svg/flag.svg +1 -0
- package/build/es/no-polyfill/logo/svg/logo-business-inverse.svg +1 -0
- package/build/es/no-polyfill/logo/svg/logo-business.svg +1 -0
- package/build/es/no-polyfill/logo/svg/logo-inverse.svg +1 -0
- package/build/es/no-polyfill/logo/svg/logo.svg +1 -0
- package/build/es/no-polyfill/markdown/Markdown.js +1 -0
- package/build/es/no-polyfill/markdown/index.js +1 -0
- package/build/es/no-polyfill/modal/Modal.js +1 -0
- package/build/es/no-polyfill/modal/Modal.story.js +1 -0
- package/build/es/no-polyfill/modal/index.js +1 -0
- package/build/es/no-polyfill/money/Money.js +1 -0
- package/build/es/no-polyfill/money/index.js +1 -0
- package/build/es/no-polyfill/moneyInput/MoneyInput.js +5 -0
- package/build/es/no-polyfill/moneyInput/MoneyInput.messages.js +1 -0
- package/build/es/no-polyfill/moneyInput/currencyFormatting.js +4 -0
- package/build/es/no-polyfill/moneyInput/index.js +1 -0
- package/build/es/no-polyfill/navigationOption/NavigationOption.js +1 -0
- package/build/es/no-polyfill/navigationOption/index.js +1 -0
- package/build/es/no-polyfill/navigationOptionsList/NavigationOptionsList.js +1 -0
- package/build/es/no-polyfill/navigationOptionsList/index.js +1 -0
- package/build/es/no-polyfill/nudge/Nudge.js +1 -0
- package/build/es/no-polyfill/nudge/index.js +1 -0
- package/build/es/no-polyfill/overlayHeader/OverlayHeader.js +1 -0
- package/build/es/no-polyfill/overlayHeader/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/data/countries.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/cleanNumber/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +7 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +7 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByCode/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +7 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +6 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +11 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +2 -0
- package/build/es/no-polyfill/popover/Popover.js +4 -0
- package/build/es/no-polyfill/popover/index.js +1 -0
- package/build/es/no-polyfill/processIndicator/ProcessIndicator.js +12 -0
- package/build/es/no-polyfill/processIndicator/index.js +1 -0
- package/build/es/no-polyfill/progress/Progress.js +1 -0
- package/build/es/no-polyfill/progress/index.js +1 -0
- package/build/es/no-polyfill/progressBar/ProgressBar.js +1 -0
- package/build/es/no-polyfill/progressBar/index.js +1 -0
- package/build/es/no-polyfill/provider/Provider.js +1 -0
- package/build/es/no-polyfill/provider/Provider.spec.js +2 -0
- package/build/es/no-polyfill/provider/Provider.story.js +1 -0
- package/build/es/no-polyfill/provider/direction/DirectionProvider.js +1 -0
- package/build/es/no-polyfill/provider/direction/DirectionProvider.spec.js +1 -0
- package/build/es/no-polyfill/provider/direction/index.js +1 -0
- package/build/es/no-polyfill/provider/index.js +1 -0
- package/build/es/no-polyfill/provider/language/LanguageProvider.js +1 -0
- package/build/es/no-polyfill/provider/language/LanguageProvider.spec.js +1 -0
- package/build/es/no-polyfill/provider/language/index.js +1 -0
- package/build/es/no-polyfill/radio/Radio.js +1 -0
- package/build/es/no-polyfill/radio/index.js +1 -0
- package/build/es/no-polyfill/radioGroup/RadioGroup.js +2 -0
- package/build/es/no-polyfill/radioGroup/index.js +1 -0
- package/build/es/no-polyfill/radioOption/RadioOption.js +1 -0
- package/build/es/no-polyfill/radioOption/index.js +1 -0
- package/build/es/no-polyfill/section/Section.js +5 -0
- package/build/es/no-polyfill/section/Section.spec.js +1 -0
- package/build/es/no-polyfill/section/Section.story.js +1 -0
- package/build/es/no-polyfill/section/index.js +1 -0
- package/build/es/no-polyfill/select/Select.js +16 -0
- package/build/es/no-polyfill/select/Select.messages.js +1 -0
- package/build/es/no-polyfill/select/index.js +1 -0
- package/build/es/no-polyfill/select/option/Option.js +2 -0
- package/build/es/no-polyfill/select/option/index.js +1 -0
- package/build/es/no-polyfill/select/searchBox/SearchBox.js +1 -0
- package/build/es/no-polyfill/select/searchBox/index.js +1 -0
- package/build/es/no-polyfill/sizeSwapper/SizeSwapper.js +5 -0
- package/build/es/no-polyfill/sizeSwapper/index.js +1 -0
- package/build/es/no-polyfill/slidingPanel/SlidingPanel.js +2 -0
- package/build/es/no-polyfill/slidingPanel/index.js +1 -0
- package/build/es/no-polyfill/snackbar/Snackbar.js +1 -0
- package/build/es/no-polyfill/snackbar/SnackbarContext.js +1 -0
- package/build/es/no-polyfill/snackbar/SnackbarProvider.js +1 -0
- package/build/es/no-polyfill/snackbar/index.js +1 -0
- package/build/es/no-polyfill/snackbar/useSnackbar.js +1 -0
- package/build/es/no-polyfill/statusIcon/StatusIcon.js +1 -0
- package/build/es/no-polyfill/statusIcon/index.js +1 -0
- package/build/es/no-polyfill/stepper/Stepper.js +1 -0
- package/build/es/no-polyfill/stepper/deviceDetection.js +4 -0
- package/build/es/no-polyfill/stepper/index.js +1 -0
- package/build/es/no-polyfill/sticky/Sticky.js +1 -0
- package/build/es/no-polyfill/sticky/index.js +1 -0
- package/build/es/no-polyfill/summary/Summary.js +1 -0
- package/build/es/no-polyfill/summary/Summary.messages.js +1 -0
- package/build/es/no-polyfill/summary/index.js +1 -0
- package/build/es/no-polyfill/switch/Switch.js +1 -0
- package/build/es/no-polyfill/switch/Switch.story.js +1 -0
- package/build/es/no-polyfill/switch/index.js +1 -0
- package/build/es/no-polyfill/switchOption/SwitchOption.js +1 -0
- package/build/es/no-polyfill/switchOption/SwitchOption.story.js +1 -0
- package/build/es/no-polyfill/switchOption/index.js +1 -0
- package/build/es/no-polyfill/tabs/Tab.js +1 -0
- package/build/es/no-polyfill/tabs/TabList.js +1 -0
- package/build/es/no-polyfill/tabs/TabPanel.js +1 -0
- package/build/es/no-polyfill/tabs/Tabs.js +1 -0
- package/build/es/no-polyfill/tabs/index.js +1 -0
- package/build/es/no-polyfill/tabs/utils.js +5 -0
- package/build/es/no-polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +1 -0
- package/build/es/no-polyfill/textareaWithDisplayFormat/index.js +1 -0
- package/build/es/no-polyfill/tile/Tile.js +1 -0
- package/build/es/no-polyfill/tile/index.js +1 -0
- package/build/es/no-polyfill/title/Title.js +1 -0
- package/build/es/no-polyfill/title/Title.spec.js +1 -0
- package/build/es/no-polyfill/title/Title.story.js +1 -0
- package/build/es/no-polyfill/title/index.js +1 -0
- package/build/es/no-polyfill/tooltip/Tooltip.js +8 -0
- package/build/es/no-polyfill/tooltip/Tooltip.spec.js +1 -0
- package/build/es/no-polyfill/tooltip/Tooltip.story.js +1 -0
- package/build/es/no-polyfill/tooltip/index.js +1 -0
- package/build/es/no-polyfill/typeahead/Typeahead.js +1 -0
- package/build/es/no-polyfill/typeahead/index.js +1 -0
- package/build/es/no-polyfill/typeahead/typeaheadInput/TypeaheadInput.js +1 -0
- package/build/es/no-polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -0
- package/build/es/no-polyfill/typeahead/util/highlight.js +1 -0
- package/build/es/no-polyfill/upload/Upload.js +12 -0
- package/build/es/no-polyfill/upload/Upload.messages.js +1 -0
- package/build/es/no-polyfill/upload/index.js +1 -0
- package/build/es/no-polyfill/upload/steps/completeStep/completeStep.js +1 -0
- package/build/es/no-polyfill/upload/steps/completeStep/index.js +1 -0
- package/build/es/no-polyfill/upload/steps/index.js +1 -0
- package/build/es/no-polyfill/upload/steps/mediaUploadStep/index.js +1 -0
- package/build/es/no-polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -0
- package/build/es/no-polyfill/upload/steps/processingStep/index.js +1 -0
- package/build/es/no-polyfill/upload/steps/processingStep/processingStep.js +1 -0
- package/build/es/no-polyfill/upload/steps/uploadImageStep/index.js +1 -0
- package/build/es/no-polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -0
- package/build/es/no-polyfill/upload/uploadSteps.js +2 -0
- package/build/es/no-polyfill/upload/utils/asyncFileRead/asyncFileRead.js +1 -0
- package/build/es/no-polyfill/upload/utils/asyncFileRead/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/getFileType/getFileType.js +1 -0
- package/build/es/no-polyfill/upload/utils/getFileType/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +2 -0
- package/build/es/no-polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/isSizeValid/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/isSizeValid/isSizeValid.js +1 -0
- package/build/es/no-polyfill/upload/utils/isTypeValid/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/isTypeValid/isTypeValid.js +1 -0
- package/build/es/no-polyfill/upload/utils/postData/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/postData/postData.js +1 -0
- package/build/es/no-polyfill/upload/utils/requestMedia/index.js +1 -0
- package/build/es/no-polyfill/upload/utils/requestMedia/requestMedia.js +1 -0
- package/build/es/no-polyfill/uploadInput/UploadInput.js +8 -0
- package/build/es/no-polyfill/uploadInput/UploadInput.messages.js +1 -0
- package/build/es/no-polyfill/uploadInput/UploadInput.spec.js +1 -0
- package/build/es/no-polyfill/uploadInput/UploadInput.story.js +1 -0
- package/build/es/no-polyfill/uploadInput/index.js +1 -0
- package/build/es/no-polyfill/uploadInput/types.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.messages.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadButton/UploadButton.spec.js +3 -0
- package/build/es/no-polyfill/uploadInput/uploadButton/defaults.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +3 -0
- package/build/es/no-polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.js +2 -0
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.messages.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItem.spec.js +1 -0
- package/build/es/no-polyfill/uploadInput/uploadItem/UploadItemBody.js +1 -0
- package/build/es/no-polyfill/utilities/deprecatedProperty/deprecatedProperty.js +1 -0
- package/build/es/no-polyfill/utilities/deprecatedProperty/index.js +1 -0
- package/build/es/no-polyfill/utilities/index.js +1 -0
- package/build/es/no-polyfill/utilities/logActionRequired.js +1 -0
- package/build/es/no-polyfill/withDisplayFormat/WithDisplayFormat.js +8 -0
- package/build/es/no-polyfill/withDisplayFormat/index.js +1 -0
- package/build/es/no-polyfill/withNextPortal/withNextPortal.js +1 -0
- package/build/es/no-polyfill/withNormaliser/WithNormalizer.js +7 -0
- package/build/es/no-polyfill/withNormaliser/index.js +1 -0
- package/build/es/no-polyfill/withNormaliser/validation/event-utilities/index.js +1 -0
- package/build/es/polyfill/accordion/Accordion.js +1 -0
- package/build/es/polyfill/accordion/AccordionItem/AccordionItem.js +1 -0
- package/build/es/polyfill/accordion/AccordionItem/index.js +1 -0
- package/build/es/polyfill/accordion/index.js +1 -0
- package/build/es/polyfill/actionButton/ActionButton.js +1 -0
- package/build/es/polyfill/actionButton/ActionButton.spec.js +1 -0
- package/build/es/polyfill/actionButton/ActionButton.story.js +1 -0
- package/build/es/polyfill/actionButton/index.js +1 -0
- package/build/es/polyfill/actionOption/ActionOption.js +1 -0
- package/build/es/polyfill/actionOption/ActionOption.story.js +1 -0
- package/build/es/polyfill/actionOption/index.js +1 -0
- package/build/es/polyfill/alert/Alert.js +1 -0
- package/build/es/polyfill/alert/index.js +1 -0
- package/build/es/polyfill/alert/inlineMarkdown/InlineMarkdown.js +1 -0
- package/build/es/polyfill/alert/inlineMarkdown/index.js +1 -0
- package/build/es/polyfill/alert/withArrow/alertArrowPositions.js +2 -0
- package/build/es/polyfill/alert/withArrow/index.js +1 -0
- package/build/es/polyfill/alert/withArrow/withArrow.js +1 -0
- package/build/es/polyfill/avatar/Avatar.js +1 -0
- package/build/es/polyfill/avatar/avatarTypes.js +2 -0
- package/build/es/polyfill/avatar/index.js +1 -0
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -0
- package/build/es/polyfill/avatarWrapper/index.js +1 -0
- package/build/es/polyfill/badge/Badge.js +1 -0
- package/build/es/polyfill/badge/index.js +1 -0
- package/build/es/polyfill/body/Body.js +1 -0
- package/build/es/polyfill/body/Body.spec.js +1 -0
- package/build/es/polyfill/body/Body.story.js +1 -0
- package/build/es/polyfill/body/index.js +1 -0
- package/build/es/polyfill/button/Button.js +7 -0
- package/build/es/polyfill/button/classMap.js +1 -0
- package/build/es/polyfill/button/index.js +1 -0
- package/build/es/polyfill/button/legacyUtils/index.js +1 -0
- package/build/es/polyfill/button/legacyUtils/legacyUtils.js +4 -0
- package/build/es/polyfill/card/Card.js +1 -0
- package/build/es/polyfill/card/index.js +1 -0
- package/build/es/polyfill/checkbox/Checkbox.js +1 -0
- package/build/es/polyfill/checkbox/index.js +1 -0
- package/build/es/polyfill/checkboxButton/CheckboxButton.js +1 -0
- package/build/es/polyfill/checkboxButton/CheckboxButton.spec.js +1 -0
- package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +1 -0
- package/build/es/polyfill/checkboxButton/index.js +1 -0
- package/build/es/polyfill/checkboxOption/CheckboxOption.js +1 -0
- package/build/es/polyfill/checkboxOption/CheckboxOption.spec.js +1 -0
- package/build/es/polyfill/checkboxOption/CheckboxOption.story.js +1 -0
- package/build/es/polyfill/checkboxOption/index.js +1 -0
- package/build/es/polyfill/chevron/Chevron.js +1 -0
- package/build/es/polyfill/chevron/index.js +1 -0
- package/build/es/polyfill/chips/Chip.js +1 -0
- package/build/es/polyfill/chips/Chips.js +1 -0
- package/build/es/polyfill/chips/Chips.messages.js +1 -0
- package/build/es/polyfill/chips/Chips.spec.js +1 -0
- package/build/es/polyfill/chips/Chips.story.js +1 -0
- package/build/es/polyfill/chips/index.js +1 -0
- package/build/es/polyfill/circularButton/CircularButton.js +1 -0
- package/build/es/polyfill/circularButton/index.js +1 -0
- package/build/es/polyfill/common/DOMOperations/DOMOperations.js +9 -0
- package/build/es/polyfill/common/DOMOperations/index.js +1 -0
- package/build/es/polyfill/common/Option/Option.js +1 -0
- package/build/es/polyfill/common/Option/index.js +1 -0
- package/build/es/polyfill/common/RadioButton/RadioButton.js +1 -0
- package/build/es/polyfill/common/RadioButton/index.js +1 -0
- package/build/es/polyfill/common/bottomSheet/BottomSheet.js +10 -0
- package/build/es/polyfill/common/bottomSheet/BottomSheet.spec.js +1 -0
- package/build/es/polyfill/common/bottomSheet/index.js +1 -0
- package/build/es/polyfill/common/closeButton/CloseButton.js +1 -0
- package/build/es/polyfill/common/closeButton/CloseButton.messages.js +1 -0
- package/build/es/polyfill/common/closeButton/index.js +1 -0
- package/build/es/polyfill/common/commonProps.js +0 -0
- package/build/es/polyfill/common/dateUtils/getDayNames/getDayNames.js +2 -0
- package/build/es/polyfill/common/dateUtils/getDayNames/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/getMonthNames/getMonthNames.js +1 -0
- package/build/es/polyfill/common/dateUtils/getMonthNames/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/isDateValid/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/isDateValid/isDateValid.js +1 -0
- package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +1 -0
- package/build/es/polyfill/common/dateUtils/isWithinRange/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/isWithinRange/isWithinRange.js +1 -0
- package/build/es/polyfill/common/dateUtils/moveToWithinRange/index.js +1 -0
- package/build/es/polyfill/common/dateUtils/moveToWithinRange/moveToWithinRange.js +2 -0
- package/build/es/polyfill/common/deviceDetection/deviceDetection.js +1 -0
- package/build/es/polyfill/common/deviceDetection/index.js +1 -0
- package/build/es/polyfill/common/direction.js +1 -0
- package/build/es/polyfill/common/domHelpers/documentIosClick.js +5 -0
- package/build/es/polyfill/common/domHelpers/index.js +1 -0
- package/build/es/polyfill/common/fakeEvents.js +1 -0
- package/build/es/polyfill/common/fileType.js +1 -0
- package/build/es/polyfill/common/flowHeader/FlowHeader.js +1 -0
- package/build/es/polyfill/common/flowHeader/index.js +1 -0
- package/build/es/polyfill/common/focusBoundary/FocusBoundary.js +1 -0
- package/build/es/polyfill/common/focusBoundary/index.js +1 -0
- package/build/es/polyfill/common/focusBoundary/utils/getFocusableElements.js +6 -0
- package/build/es/polyfill/common/focusBoundary/utils/index.js +1 -0
- package/build/es/polyfill/common/focusBoundary/utils/resetFocus.js +6 -0
- package/build/es/polyfill/common/historyNavigator/historyNavigator.js +1 -0
- package/build/es/polyfill/common/historyNavigator/index.js +1 -0
- package/build/es/polyfill/common/hooks/index.js +1 -0
- package/build/es/polyfill/common/hooks/useClientWidth/index.js +1 -0
- package/build/es/polyfill/common/hooks/useClientWidth/useClientWidth.js +5 -0
- package/build/es/polyfill/common/hooks/useConditionalListener/index.js +1 -0
- package/build/es/polyfill/common/hooks/useConditionalListener/useConditionalListener.js +3 -0
- package/build/es/polyfill/common/hooks/useDirection/index.js +1 -0
- package/build/es/polyfill/common/hooks/useDirection/useDirection.js +1 -0
- package/build/es/polyfill/common/hooks/useHasIntersected/index.js +1 -0
- package/build/es/polyfill/common/hooks/useHasIntersected/useHasIntersected.js +11 -0
- package/build/es/polyfill/common/hooks/useLayout/index.js +1 -0
- package/build/es/polyfill/common/hooks/useLayout/useLayout.js +1 -0
- package/build/es/polyfill/common/index.js +2 -0
- package/build/es/polyfill/common/key.js +1 -0
- package/build/es/polyfill/common/keyCodes.js +5 -0
- package/build/es/polyfill/common/locale/index.js +37 -0
- package/build/es/polyfill/common/panel/Panel.js +10 -0
- package/build/es/polyfill/common/panel/index.js +1 -0
- package/build/es/polyfill/common/propsValues/breakpoint.js +1 -0
- package/build/es/polyfill/common/propsValues/control.js +1 -0
- package/build/es/polyfill/common/propsValues/dateMode.js +1 -0
- package/build/es/polyfill/common/propsValues/layouts.js +1 -0
- package/build/es/polyfill/common/propsValues/markdownNodeType.js +1 -0
- package/build/es/polyfill/common/propsValues/monthFormat.js +1 -0
- package/build/es/polyfill/common/propsValues/position.js +1 -0
- package/build/es/polyfill/common/propsValues/profileType.js +1 -0
- package/build/es/polyfill/common/propsValues/scroll.js +1 -0
- package/build/es/polyfill/common/propsValues/sentiment.js +1 -0
- package/build/es/polyfill/common/propsValues/size.js +1 -0
- package/build/es/polyfill/common/propsValues/status.js +1 -0
- package/build/es/polyfill/common/propsValues/type.js +3 -0
- package/build/es/polyfill/common/propsValues/typography.js +1 -0
- package/build/es/polyfill/common/propsValues/variant.js +1 -0
- package/build/es/polyfill/common/propsValues/width.js +1 -0
- package/build/es/polyfill/common/requirements.js +3 -0
- package/build/es/polyfill/common/responsivePanel/ResponsivePanel.js +1 -0
- package/build/es/polyfill/common/responsivePanel/index.js +1 -0
- package/build/es/polyfill/common/textFormat/formatWithPattern/formatWithPattern.js +2 -0
- package/build/es/polyfill/common/textFormat/formatWithPattern/index.js +1 -0
- package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +1 -0
- package/build/es/polyfill/common/textFormat/getCountOfSymbolsInSelection/index.js +1 -0
- package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +1 -0
- package/build/es/polyfill/common/textFormat/getCursorPositionAfterKeystroke/index.js +1 -0
- package/build/es/polyfill/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +2 -0
- package/build/es/polyfill/common/textFormat/getDistanceToSymbol/index.js +1 -0
- package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +1 -0
- package/build/es/polyfill/common/textFormat/getSymbolsInPatternWithPosition/index.js +1 -0
- package/build/es/polyfill/common/textFormat/index.js +1 -0
- package/build/es/polyfill/common/textFormat/unformatWithPattern/index.js +1 -0
- package/build/es/polyfill/common/textFormat/unformatWithPattern/unformatWithPattern.js +1 -0
- package/build/es/polyfill/common/theme.js +1 -0
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.js +1 -0
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -0
- package/build/es/polyfill/criticalBanner/index.js +1 -0
- package/build/es/polyfill/dateInput/DateInput.js +4 -0
- package/build/es/polyfill/dateInput/DateInput.messages.js +1 -0
- package/build/es/polyfill/dateInput/index.js +1 -0
- package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +2 -0
- package/build/es/polyfill/dateInput/utils/convertToLocalMidnight/index.js +1 -0
- package/build/es/polyfill/dateInput/utils/explodeDate/explodeDate.js +1 -0
- package/build/es/polyfill/dateInput/utils/explodeDate/index.js +1 -0
- package/build/es/polyfill/dateInput/utils/index.js +1 -0
- package/build/es/polyfill/dateLookup/DateLookup.js +3 -0
- package/build/es/polyfill/dateLookup/dateHeader/DateHeader.js +1 -0
- package/build/es/polyfill/dateLookup/dateHeader/index.js +1 -0
- package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.js +1 -0
- package/build/es/polyfill/dateLookup/dateTrigger/DateTrigger.messages.js +1 -0
- package/build/es/polyfill/dateLookup/dateTrigger/index.js +1 -0
- package/build/es/polyfill/dateLookup/dayCalendar/DayCalendar.js +1 -0
- package/build/es/polyfill/dateLookup/dayCalendar/index.js +1 -0
- package/build/es/polyfill/dateLookup/dayCalendar/table/DayCalendarTable.js +4 -0
- package/build/es/polyfill/dateLookup/dayCalendar/table/index.js +1 -0
- package/build/es/polyfill/dateLookup/getStartOfDay/getStartOfDay.js +5 -0
- package/build/es/polyfill/dateLookup/getStartOfDay/index.js +1 -0
- package/build/es/polyfill/dateLookup/index.js +1 -0
- package/build/es/polyfill/dateLookup/monthCalendar/MonthCalendar.js +1 -0
- package/build/es/polyfill/dateLookup/monthCalendar/index.js +1 -0
- package/build/es/polyfill/dateLookup/monthCalendar/table/MonthCalendarTable.js +1 -0
- package/build/es/polyfill/dateLookup/monthCalendar/table/index.js +1 -0
- package/build/es/polyfill/dateLookup/tableLink/TableLink.js +2 -0
- package/build/es/polyfill/dateLookup/tableLink/index.js +1 -0
- package/build/es/polyfill/dateLookup/yearCalendar/YearCalendar.js +1 -0
- package/build/es/polyfill/dateLookup/yearCalendar/index.js +1 -0
- package/build/es/polyfill/dateLookup/yearCalendar/table/YearCalendarTable.js +1 -0
- package/build/es/polyfill/dateLookup/yearCalendar/table/index.js +1 -0
- package/build/es/polyfill/decision/Decision.js +5 -0
- package/build/es/polyfill/decision/decisionEnums.js +3 -0
- package/build/es/polyfill/decision/index.js +1 -0
- package/build/es/polyfill/definitionList/DefinitionList.js +1 -0
- package/build/es/polyfill/definitionList/index.js +1 -0
- package/build/es/polyfill/dimmer/Dimmer.js +6 -0
- package/build/es/polyfill/dimmer/Dimmer.story.js +1 -0
- package/build/es/polyfill/dimmer/dimmerManager/DimmerManager.js +5 -0
- package/build/es/polyfill/dimmer/dimmerManager/index.js +1 -0
- package/build/es/polyfill/dimmer/index.js +1 -0
- package/build/es/polyfill/display/Display.js +1 -0
- package/build/es/polyfill/display/Display.story.js +1 -0
- package/build/es/polyfill/display/index.js +1 -0
- package/build/es/polyfill/drawer/Drawer.js +1 -0
- package/build/es/polyfill/drawer/index.js +1 -0
- package/build/es/polyfill/dropFade/DropFade.js +3 -0
- package/build/es/polyfill/dropFade/DropFade.story.js +1 -0
- package/build/es/polyfill/dropFade/index.js +1 -0
- package/build/es/polyfill/dynamicFieldDefinitionList/DynamicFieldDefinitionList.js +1 -0
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/FormattedValue.js +8 -0
- package/build/es/polyfill/dynamicFieldDefinitionList/FormattedValue/index.js +1 -0
- package/build/es/polyfill/dynamicFieldDefinitionList/index.js +1 -0
- package/build/es/polyfill/dynamicFieldDefinitionList/utils/createDefinitions.js +2 -0
- package/build/es/polyfill/dynamicFieldDefinitionList/utils/text-format.js +1 -0
- package/build/es/polyfill/emphasis/Emphasis.js +2 -0
- package/build/es/polyfill/emphasis/EmphasisHtmlTransformer.js +7 -0
- package/build/es/polyfill/emphasis/index.js +1 -0
- package/build/es/polyfill/flowNavigation/FlowNavigation.js +2 -0
- package/build/es/polyfill/flowNavigation/animatedLabel/AnimatedLabel.js +1 -0
- package/build/es/polyfill/flowNavigation/animatedLabel/index.js +1 -0
- package/build/es/polyfill/flowNavigation/backButton/BackButton.js +1 -0
- package/build/es/polyfill/flowNavigation/backButton/index.js +1 -0
- package/build/es/polyfill/flowNavigation/index.js +1 -0
- package/build/es/polyfill/header/Header.js +5 -0
- package/build/es/polyfill/header/Header.spec.js +1 -0
- package/build/es/polyfill/header/Header.story.js +2 -0
- package/build/es/polyfill/header/index.js +1 -0
- package/build/es/polyfill/i18n/cs.json +44 -0
- package/build/es/polyfill/i18n/de.json +44 -0
- package/build/es/polyfill/i18n/en.json +44 -0
- package/build/es/polyfill/i18n/es.json +44 -0
- package/build/es/polyfill/i18n/fr.json +44 -0
- package/build/es/polyfill/i18n/hu.json +44 -0
- package/build/es/polyfill/i18n/id.json +44 -0
- package/build/es/polyfill/i18n/index.js +1 -0
- package/build/es/polyfill/i18n/it.json +44 -0
- package/build/es/polyfill/i18n/ja.json +44 -0
- package/build/es/polyfill/i18n/pl.json +44 -0
- package/build/es/polyfill/i18n/pt.json +44 -0
- package/build/es/polyfill/i18n/ro.json +44 -0
- package/build/es/polyfill/i18n/ru.json +44 -0
- package/build/es/polyfill/i18n/th.json +44 -0
- package/build/es/polyfill/i18n/tr.json +44 -0
- package/build/es/polyfill/i18n/uk.json +44 -0
- package/build/es/polyfill/i18n/zh-CN.json +44 -0
- package/build/es/polyfill/i18n/zh.json +44 -0
- package/build/es/polyfill/image/Image.js +12 -0
- package/build/es/polyfill/image/index.js +1 -0
- package/build/es/polyfill/index.js +13 -0
- package/build/es/polyfill/info/Info.js +1 -0
- package/build/es/polyfill/info/index.js +1 -0
- package/build/es/polyfill/info/infoPresentations.js +2 -0
- package/build/es/polyfill/inlineAlert/InlineAlert.js +1 -0
- package/build/es/polyfill/inlineAlert/index.js +1 -0
- package/build/es/polyfill/inputWithDisplayFormat/InputWithDisplayFormat.js +1 -0
- package/build/es/polyfill/inputWithDisplayFormat/index.js +1 -0
- package/build/es/polyfill/instructionsList/InstructionsList.js +3 -0
- package/build/es/polyfill/instructionsList/index.js +1 -0
- package/build/es/polyfill/lab/index.js +1 -0
- package/build/es/polyfill/lab/mobileNav/MobileNav.js +9 -0
- package/build/es/polyfill/lab/mobileNav/index.js +1 -0
- package/build/es/polyfill/lab/mobileNav/utils/index.js +1 -0
- package/build/es/polyfill/lab/mobileNav/utils/isIpadOsSafari/index.js +1 -0
- package/build/es/polyfill/lab/mobileNav/utils/isIpadOsSafari/isIpadOsSafari.js +1 -0
- package/build/es/polyfill/lab/mobileNav/utils/isMobileSafari/index.js +1 -0
- package/build/es/polyfill/lab/mobileNav/utils/isMobileSafari/isMobileSafari.js +1 -0
- package/build/es/polyfill/lab/pagination/Pagination.js +1 -0
- package/build/es/polyfill/lab/pagination/Pagination.messages.js +1 -0
- package/build/es/polyfill/lab/pagination/index.js +1 -0
- package/build/es/polyfill/lab/pagination/paginationLink/PaginationLink.js +1 -0
- package/build/es/polyfill/lab/pagination/paginationLink/PaginationLink.messages.js +1 -0
- package/build/es/polyfill/lab/pagination/paginationLink/index.js +1 -0
- package/build/es/polyfill/link/Link.js +5 -0
- package/build/es/polyfill/link/Link.spec.js +1 -0
- package/build/es/polyfill/link/Link.story.js +1 -0
- package/build/es/polyfill/link/index.js +1 -0
- package/build/es/polyfill/loader/Loader.js +11 -0
- package/build/es/polyfill/loader/index.js +1 -0
- package/build/es/polyfill/logo/Logo.js +1 -0
- package/build/es/polyfill/logo/index.js +1 -0
- package/build/es/polyfill/logo/logoTypes.js +2 -0
- package/build/es/polyfill/logo/svg/flag-inverse.svg +1 -0
- package/build/es/polyfill/logo/svg/flag.svg +1 -0
- package/build/es/polyfill/logo/svg/logo-business-inverse.svg +1 -0
- package/build/es/polyfill/logo/svg/logo-business.svg +1 -0
- package/build/es/polyfill/logo/svg/logo-inverse.svg +1 -0
- package/build/es/polyfill/logo/svg/logo.svg +1 -0
- package/build/es/polyfill/markdown/Markdown.js +1 -0
- package/build/es/polyfill/markdown/index.js +1 -0
- package/build/es/polyfill/modal/Modal.js +1 -0
- package/build/es/polyfill/modal/Modal.story.js +1 -0
- package/build/es/polyfill/modal/index.js +1 -0
- package/build/es/polyfill/money/Money.js +1 -0
- package/build/es/polyfill/money/index.js +1 -0
- package/build/es/polyfill/moneyInput/MoneyInput.js +5 -0
- package/build/es/polyfill/moneyInput/MoneyInput.messages.js +1 -0
- package/build/es/polyfill/moneyInput/currencyFormatting.js +4 -0
- package/build/es/polyfill/moneyInput/index.js +1 -0
- package/build/es/polyfill/navigationOption/NavigationOption.js +1 -0
- package/build/es/polyfill/navigationOption/index.js +1 -0
- package/build/es/polyfill/navigationOptionsList/NavigationOptionsList.js +1 -0
- package/build/es/polyfill/navigationOptionsList/index.js +1 -0
- package/build/es/polyfill/nudge/Nudge.js +1 -0
- package/build/es/polyfill/nudge/index.js +1 -0
- package/build/es/polyfill/overlayHeader/OverlayHeader.js +1 -0
- package/build/es/polyfill/overlayHeader/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +1 -0
- package/build/es/polyfill/phoneNumberInput/data/countries.js +1 -0
- package/build/es/polyfill/phoneNumberInput/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/cleanNumber.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/cleanNumber/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/explodeNumberModel/index.js +7 -0
- package/build/es/polyfill/phoneNumberInput/utils/filterOptionsForQuery/index.js +7 -0
- package/build/es/polyfill/phoneNumberInput/utils/findCountryByCode/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/findCountryByPrefix/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/groupCountriesByPrefix/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.js +7 -0
- package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/isStringNumeric/isStringNumeric.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +6 -0
- package/build/es/polyfill/phoneNumberInput/utils/longestMatchingPrefix/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/setDefaultPrefix/index.js +11 -0
- package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/index.js +1 -0
- package/build/es/polyfill/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +2 -0
- package/build/es/polyfill/popover/Popover.js +4 -0
- package/build/es/polyfill/popover/index.js +1 -0
- package/build/es/polyfill/processIndicator/ProcessIndicator.js +12 -0
- package/build/es/polyfill/processIndicator/index.js +1 -0
- package/build/es/polyfill/progress/Progress.js +1 -0
- package/build/es/polyfill/progress/index.js +1 -0
- package/build/es/polyfill/progressBar/ProgressBar.js +1 -0
- package/build/es/polyfill/progressBar/index.js +1 -0
- package/build/es/polyfill/provider/Provider.js +1 -0
- package/build/es/polyfill/provider/Provider.spec.js +2 -0
- package/build/es/polyfill/provider/Provider.story.js +1 -0
- package/build/es/polyfill/provider/direction/DirectionProvider.js +1 -0
- package/build/es/polyfill/provider/direction/DirectionProvider.spec.js +1 -0
- package/build/es/polyfill/provider/direction/index.js +1 -0
- package/build/es/polyfill/provider/index.js +1 -0
- package/build/es/polyfill/provider/language/LanguageProvider.js +1 -0
- package/build/es/polyfill/provider/language/LanguageProvider.spec.js +1 -0
- package/build/es/polyfill/provider/language/index.js +1 -0
- package/build/es/polyfill/radio/Radio.js +1 -0
- package/build/es/polyfill/radio/index.js +1 -0
- package/build/es/polyfill/radioGroup/RadioGroup.js +2 -0
- package/build/es/polyfill/radioGroup/index.js +1 -0
- package/build/es/polyfill/radioOption/RadioOption.js +1 -0
- package/build/es/polyfill/radioOption/index.js +1 -0
- package/build/es/polyfill/section/Section.js +5 -0
- package/build/es/polyfill/section/Section.spec.js +1 -0
- package/build/es/polyfill/section/Section.story.js +1 -0
- package/build/es/polyfill/section/index.js +1 -0
- package/build/es/polyfill/select/Select.js +16 -0
- package/build/es/polyfill/select/Select.messages.js +1 -0
- package/build/es/polyfill/select/index.js +1 -0
- package/build/es/polyfill/select/option/Option.js +2 -0
- package/build/es/polyfill/select/option/index.js +1 -0
- package/build/es/polyfill/select/searchBox/SearchBox.js +1 -0
- package/build/es/polyfill/select/searchBox/index.js +1 -0
- package/build/es/polyfill/sizeSwapper/SizeSwapper.js +5 -0
- package/build/es/polyfill/sizeSwapper/index.js +1 -0
- package/build/es/polyfill/slidingPanel/SlidingPanel.js +2 -0
- package/build/es/polyfill/slidingPanel/index.js +1 -0
- package/build/es/polyfill/snackbar/Snackbar.js +1 -0
- package/build/es/polyfill/snackbar/SnackbarContext.js +1 -0
- package/build/es/polyfill/snackbar/SnackbarProvider.js +1 -0
- package/build/es/polyfill/snackbar/index.js +1 -0
- package/build/es/polyfill/snackbar/useSnackbar.js +1 -0
- package/build/es/polyfill/statusIcon/StatusIcon.js +1 -0
- package/build/es/polyfill/statusIcon/index.js +1 -0
- package/build/es/polyfill/stepper/Stepper.js +1 -0
- package/build/es/polyfill/stepper/deviceDetection.js +4 -0
- package/build/es/polyfill/stepper/index.js +1 -0
- package/build/es/polyfill/sticky/Sticky.js +1 -0
- package/build/es/polyfill/sticky/index.js +1 -0
- package/build/es/polyfill/summary/Summary.js +1 -0
- package/build/es/polyfill/summary/Summary.messages.js +1 -0
- package/build/es/polyfill/summary/index.js +1 -0
- package/build/es/polyfill/switch/Switch.js +1 -0
- package/build/es/polyfill/switch/Switch.story.js +1 -0
- package/build/es/polyfill/switch/index.js +1 -0
- package/build/es/polyfill/switchOption/SwitchOption.js +1 -0
- package/build/es/polyfill/switchOption/SwitchOption.story.js +1 -0
- package/build/es/polyfill/switchOption/index.js +1 -0
- package/build/es/polyfill/tabs/Tab.js +1 -0
- package/build/es/polyfill/tabs/TabList.js +1 -0
- package/build/es/polyfill/tabs/TabPanel.js +1 -0
- package/build/es/polyfill/tabs/Tabs.js +1 -0
- package/build/es/polyfill/tabs/index.js +1 -0
- package/build/es/polyfill/tabs/utils.js +5 -0
- package/build/es/polyfill/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +1 -0
- package/build/es/polyfill/textareaWithDisplayFormat/index.js +1 -0
- package/build/es/polyfill/tile/Tile.js +1 -0
- package/build/es/polyfill/tile/index.js +1 -0
- package/build/es/polyfill/title/Title.js +1 -0
- package/build/es/polyfill/title/Title.spec.js +1 -0
- package/build/es/polyfill/title/Title.story.js +1 -0
- package/build/es/polyfill/title/index.js +1 -0
- package/build/es/polyfill/tooltip/Tooltip.js +8 -0
- package/build/es/polyfill/tooltip/Tooltip.spec.js +1 -0
- package/build/es/polyfill/tooltip/Tooltip.story.js +1 -0
- package/build/es/polyfill/tooltip/index.js +1 -0
- package/build/es/polyfill/typeahead/Typeahead.js +1 -0
- package/build/es/polyfill/typeahead/index.js +1 -0
- package/build/es/polyfill/typeahead/typeaheadInput/TypeaheadInput.js +1 -0
- package/build/es/polyfill/typeahead/typeaheadOption/TypeaheadOption.js +1 -0
- package/build/es/polyfill/typeahead/util/highlight.js +1 -0
- package/build/es/polyfill/upload/Upload.js +12 -0
- package/build/es/polyfill/upload/Upload.messages.js +1 -0
- package/build/es/polyfill/upload/index.js +1 -0
- package/build/es/polyfill/upload/steps/completeStep/completeStep.js +1 -0
- package/build/es/polyfill/upload/steps/completeStep/index.js +1 -0
- package/build/es/polyfill/upload/steps/index.js +1 -0
- package/build/es/polyfill/upload/steps/mediaUploadStep/index.js +1 -0
- package/build/es/polyfill/upload/steps/mediaUploadStep/mediaUploadStep.js +1 -0
- package/build/es/polyfill/upload/steps/processingStep/index.js +1 -0
- package/build/es/polyfill/upload/steps/processingStep/processingStep.js +1 -0
- package/build/es/polyfill/upload/steps/uploadImageStep/index.js +1 -0
- package/build/es/polyfill/upload/steps/uploadImageStep/uploadImageStep.js +1 -0
- package/build/es/polyfill/upload/uploadSteps.js +2 -0
- package/build/es/polyfill/upload/utils/asyncFileRead/asyncFileRead.js +1 -0
- package/build/es/polyfill/upload/utils/asyncFileRead/index.js +1 -0
- package/build/es/polyfill/upload/utils/getFileType/getFileType.js +1 -0
- package/build/es/polyfill/upload/utils/getFileType/index.js +1 -0
- package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +2 -0
- package/build/es/polyfill/upload/utils/getSupportedSpotMimeTypes/index.js +1 -0
- package/build/es/polyfill/upload/utils/index.js +1 -0
- package/build/es/polyfill/upload/utils/isSizeValid/index.js +1 -0
- package/build/es/polyfill/upload/utils/isSizeValid/isSizeValid.js +1 -0
- package/build/es/polyfill/upload/utils/isTypeValid/index.js +1 -0
- package/build/es/polyfill/upload/utils/isTypeValid/isTypeValid.js +1 -0
- package/build/es/polyfill/upload/utils/postData/index.js +1 -0
- package/build/es/polyfill/upload/utils/postData/postData.js +1 -0
- package/build/es/polyfill/upload/utils/requestMedia/index.js +1 -0
- package/build/es/polyfill/upload/utils/requestMedia/requestMedia.js +1 -0
- package/build/es/polyfill/uploadInput/UploadInput.js +8 -0
- package/build/es/polyfill/uploadInput/UploadInput.messages.js +1 -0
- package/build/es/polyfill/uploadInput/UploadInput.spec.js +1 -0
- package/build/es/polyfill/uploadInput/UploadInput.story.js +1 -0
- package/build/es/polyfill/uploadInput/index.js +1 -0
- package/build/es/polyfill/uploadInput/types.js +1 -0
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.js +1 -0
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.messages.js +1 -0
- package/build/es/polyfill/uploadInput/uploadButton/UploadButton.spec.js +3 -0
- package/build/es/polyfill/uploadInput/uploadButton/defaults.js +1 -0
- package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.js +3 -0
- package/build/es/polyfill/uploadInput/uploadButton/getAllowedFileTypes.spec.js +1 -0
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.js +2 -0
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.messages.js +1 -0
- package/build/es/polyfill/uploadInput/uploadItem/UploadItem.spec.js +1 -0
- package/build/es/polyfill/uploadInput/uploadItem/UploadItemBody.js +1 -0
- package/build/es/polyfill/utilities/deprecatedProperty/deprecatedProperty.js +1 -0
- package/build/es/polyfill/utilities/deprecatedProperty/index.js +1 -0
- package/build/es/polyfill/utilities/index.js +1 -0
- package/build/es/polyfill/utilities/logActionRequired.js +1 -0
- package/build/es/polyfill/withDisplayFormat/WithDisplayFormat.js +8 -0
- package/build/es/polyfill/withDisplayFormat/index.js +1 -0
- package/build/es/polyfill/withNextPortal/withNextPortal.js +1 -0
- package/build/es/polyfill/withNormaliser/WithNormalizer.js +7 -0
- package/build/es/polyfill/withNormaliser/index.js +1 -0
- package/build/es/polyfill/withNormaliser/validation/event-utilities/index.js +1 -0
- package/build/i18n/cs.json +44 -0
- package/build/i18n/de.json +44 -0
- package/build/i18n/en.json +44 -0
- package/build/i18n/es.json +44 -0
- package/build/i18n/fr.json +44 -0
- package/build/i18n/hu.json +44 -0
- package/build/i18n/id.json +44 -0
- package/build/i18n/it.json +44 -0
- package/build/i18n/ja.json +44 -0
- package/build/i18n/pl.json +44 -0
- package/build/i18n/pt.json +44 -0
- package/build/i18n/ro.json +44 -0
- package/build/i18n/ru.json +44 -0
- package/build/i18n/th.json +44 -0
- package/build/i18n/tr.json +44 -0
- package/build/i18n/uk.json +44 -0
- package/build/i18n/zh-CN.json +44 -0
- package/build/i18n/zh.json +44 -0
- package/build/main.css +1 -0
- package/build/styles/accordion/Accordion.css +1 -0
- package/build/styles/actionButton/ActionButton.css +1 -0
- package/build/styles/avatar/Avatar.css +1 -0
- package/build/styles/badge/Badge.css +1 -0
- package/build/styles/button/Button.css +1 -0
- package/build/styles/card/Card.css +1 -0
- package/build/styles/checkboxButton/CheckboxButton.css +1 -0
- package/build/styles/chips/Chip.css +1 -0
- package/build/styles/circularButton/CircularButton.css +1 -0
- package/build/styles/common/Option/Option.css +1 -0
- package/build/styles/common/RadioButton/RadioButton.css +1 -0
- package/build/styles/common/bottomSheet/BottomSheet.css +1 -0
- package/build/styles/common/closeButton/CloseButton.css +1 -0
- package/build/styles/common/panel/Panel.css +1 -0
- package/build/styles/criticalBanner/CriticalCommsBanner.css +1 -0
- package/build/styles/dateInput/DateInput.css +1 -0
- package/build/styles/dateLookup/DateLookup.css +1 -0
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -0
- package/build/styles/decision/Decision.css +1 -0
- package/build/styles/definitionList/DefinitionList.css +1 -0
- package/build/styles/dimmer/Dimmer.css +1 -0
- package/build/styles/drawer/Drawer.css +1 -0
- package/build/styles/dropFade/DropFade.css +1 -0
- package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -0
- package/build/styles/emphasis/Emphasis.css +1 -0
- package/build/styles/flowNavigation/FlowNavigation.css +1 -0
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -0
- package/build/styles/flowNavigation/backButton/BackButton.css +1 -0
- package/build/styles/header/Header.css +1 -0
- package/build/styles/image/Image.css +1 -0
- package/build/styles/info/Info.css +1 -0
- package/build/styles/instructionsList/InstructionsList.css +1 -0
- package/build/styles/lab/mobileNav/MobileNav.css +1 -0
- package/build/styles/lab/pagination/Pagination.css +1 -0
- package/build/styles/link/Link.css +1 -0
- package/build/styles/loader/Loader.css +1 -0
- package/build/styles/logo/Logo.css +1 -0
- package/build/styles/main.css +1 -0
- package/build/styles/modal/Modal.css +1 -0
- package/build/styles/moneyInput/MoneyInput.css +1 -0
- package/build/styles/navigationOption/NavigationOption.css +1 -0
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -0
- package/build/styles/nudge/Nudge.css +1 -0
- package/build/styles/overlayHeader/OverlayHeader.css +1 -0
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -0
- package/build/styles/popover/Popover.css +1 -0
- package/build/styles/progress/Progress.css +1 -0
- package/build/styles/progressBar/ProgressBar.css +1 -0
- package/build/styles/section/Section.css +1 -0
- package/build/styles/select/Select.css +1 -0
- package/build/styles/slidingPanel/SlidingPanel.css +1 -0
- package/build/styles/snackbar/Snackbar.css +1 -0
- package/build/styles/statusIcon/StatusIcon.css +1 -0
- package/build/styles/stepper/Stepper.css +1 -0
- package/build/styles/summary/Summary.css +1 -0
- package/build/styles/switch/Switch.css +1 -0
- package/build/styles/tabs/Tabs.css +1 -0
- package/build/styles/tile/Tile.css +1 -0
- package/build/styles/tooltip/Tooltip.css +1 -0
- package/build/styles/typeahead/Typeahead.css +1 -0
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -0
- package/build/styles/upload/Upload.css +1 -0
- package/build/styles/uploadInput/UploadInput.css +1 -0
- package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -0
- package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -0
- package/build/types/accordion/Accordion.d.ts +22 -0
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts +31 -0
- package/build/types/accordion/AccordionItem/index.d.ts +1 -0
- package/build/types/accordion/index.d.ts +1 -0
- package/build/types/actionButton/ActionButton.d.ts +14 -0
- package/build/types/actionButton/ActionButton.spec.d.ts +1 -0
- package/build/types/actionButton/ActionButton.story.d.ts +6 -0
- package/build/types/actionButton/index.d.ts +2 -0
- package/build/types/actionOption/ActionOption.d.ts +16 -0
- package/build/types/actionOption/ActionOption.story.d.ts +20 -0
- package/build/types/actionOption/index.d.ts +1 -0
- package/build/types/alert/Alert.d.ts +54 -0
- package/build/types/alert/index.d.ts +1 -0
- package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts +13 -0
- package/build/types/alert/inlineMarkdown/index.d.ts +1 -0
- package/build/types/alert/withArrow/alertArrowPositions.d.ts +8 -0
- package/build/types/alert/withArrow/index.d.ts +2 -0
- package/build/types/alert/withArrow/withArrow.d.ts +11 -0
- package/build/types/avatar/Avatar.d.ts +22 -0
- package/build/types/avatar/avatarTypes.d.ts +6 -0
- package/build/types/avatar/index.d.ts +2 -0
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +27 -0
- package/build/types/avatarWrapper/index.d.ts +2 -0
- package/build/types/badge/Badge.d.ts +10 -0
- package/build/types/badge/index.d.ts +1 -0
- package/build/types/body/Body.d.ts +14 -0
- package/build/types/body/Body.spec.d.ts +1 -0
- package/build/types/body/Body.story.d.ts +8 -0
- package/build/types/body/index.d.ts +1 -0
- package/build/types/button/Button.d.ts +27 -0
- package/build/types/button/classMap.d.ts +10 -0
- package/build/types/button/index.d.ts +2 -0
- package/build/types/button/legacyUtils/index.d.ts +1 -0
- package/build/types/button/legacyUtils/legacyUtils.d.ts +6 -0
- package/build/types/card/Card.d.ts +20 -0
- package/build/types/card/index.d.ts +1 -0
- package/build/types/checkbox/Checkbox.d.ts +20 -0
- package/build/types/checkbox/index.d.ts +2 -0
- package/build/types/checkboxButton/CheckboxButton.d.ts +4 -0
- package/build/types/checkboxButton/CheckboxButton.spec.d.ts +1 -0
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +7 -0
- package/build/types/checkboxButton/index.d.ts +1 -0
- package/build/types/checkboxOption/CheckboxOption.d.ts +24 -0
- package/build/types/checkboxOption/CheckboxOption.spec.d.ts +1 -0
- package/build/types/checkboxOption/CheckboxOption.story.d.ts +12 -0
- package/build/types/checkboxOption/index.d.ts +1 -0
- package/build/types/chevron/Chevron.d.ts +17 -0
- package/build/types/chevron/index.d.ts +1 -0
- package/build/types/chips/Chip.d.ts +15 -0
- package/build/types/chips/Chips.d.ts +22 -0
- package/build/types/chips/Chips.messages.d.ts +8 -0
- package/build/types/chips/Chips.spec.d.ts +1 -0
- package/build/types/chips/Chips.story.d.ts +7 -0
- package/build/types/chips/index.d.ts +2 -0
- package/build/types/circularButton/CircularButton.d.ts +20 -0
- package/build/types/circularButton/index.d.ts +1 -0
- package/build/types/common/DOMOperations/DOMOperations.d.ts +2 -0
- package/build/types/common/DOMOperations/index.d.ts +3 -0
- package/build/types/common/Option/Option.d.ts +28 -0
- package/build/types/common/Option/index.d.ts +1 -0
- package/build/types/common/RadioButton/RadioButton.d.ts +36 -0
- package/build/types/common/RadioButton/index.d.ts +1 -0
- package/build/types/common/bottomSheet/BottomSheet.d.ts +14 -0
- package/build/types/common/bottomSheet/BottomSheet.spec.d.ts +1 -0
- package/build/types/common/bottomSheet/index.d.ts +1 -0
- package/build/types/common/closeButton/CloseButton.d.ts +2 -0
- package/build/types/common/closeButton/CloseButton.messages.d.ts +8 -0
- package/build/types/common/closeButton/index.d.ts +1 -0
- package/build/types/common/commonProps.d.ts +20 -0
- package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +1 -0
- package/build/types/common/dateUtils/getDayNames/index.d.ts +1 -0
- package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -0
- package/build/types/common/dateUtils/getMonthNames/index.d.ts +1 -0
- package/build/types/common/dateUtils/index.d.ts +6 -0
- package/build/types/common/dateUtils/isDateValid/index.d.ts +1 -0
- package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +2 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +1 -0
- package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +1 -0
- package/build/types/common/dateUtils/isWithinRange/index.d.ts +1 -0
- package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +1 -0
- package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -0
- package/build/types/common/deviceDetection/deviceDetection.d.ts +1 -0
- package/build/types/common/deviceDetection/index.d.ts +1 -0
- package/build/types/common/direction.d.ts +6 -0
- package/build/types/common/domHelpers/documentIosClick.d.ts +2 -0
- package/build/types/common/domHelpers/index.d.ts +6 -0
- package/build/types/common/fileType.d.ts +6 -0
- package/build/types/common/flowHeader/FlowHeader.d.ts +2 -0
- package/build/types/common/flowHeader/index.d.ts +1 -0
- package/build/types/common/focusBoundary/FocusBoundary.d.ts +10 -0
- package/build/types/common/focusBoundary/index.d.ts +1 -0
- package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts +1 -0
- package/build/types/common/focusBoundary/utils/index.d.ts +2 -0
- package/build/types/common/focusBoundary/utils/resetFocus.d.ts +1 -0
- package/build/types/common/historyNavigator/historyNavigator.d.ts +11 -0
- package/build/types/common/historyNavigator/index.d.ts +1 -0
- package/build/types/common/hooks/index.d.ts +5 -0
- package/build/types/common/hooks/useClientWidth/index.d.ts +1 -0
- package/build/types/common/hooks/useClientWidth/useClientWidth.d.ts +9 -0
- package/build/types/common/hooks/useConditionalListener/index.d.ts +1 -0
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts +9 -0
- package/build/types/common/hooks/useDirection/index.d.ts +1 -0
- package/build/types/common/hooks/useDirection/useDirection.d.ts +5 -0
- package/build/types/common/hooks/useHasIntersected/index.d.ts +1 -0
- package/build/types/common/hooks/useHasIntersected/useHasIntersected.d.ts +4 -0
- package/build/types/common/hooks/useLayout/index.d.ts +1 -0
- package/build/types/common/hooks/useLayout/useLayout.d.ts +8 -0
- package/build/types/common/index.d.ts +25 -0
- package/build/types/common/key.d.ts +8 -0
- package/build/types/common/keyCodes.d.ts +15 -0
- package/build/types/common/locale/index.d.ts +52 -0
- package/build/types/common/panel/Panel.d.ts +25 -0
- package/build/types/common/panel/index.d.ts +1 -0
- package/build/types/common/propsValues/breakpoint.d.ts +7 -0
- package/build/types/common/propsValues/control.d.ts +16 -0
- package/build/types/common/propsValues/dateMode.d.ts +4 -0
- package/build/types/common/propsValues/layouts.d.ts +9 -0
- package/build/types/common/propsValues/markdownNodeType.d.ts +18 -0
- package/build/types/common/propsValues/monthFormat.d.ts +4 -0
- package/build/types/common/propsValues/position.d.ts +16 -0
- package/build/types/common/propsValues/profileType.d.ts +4 -0
- package/build/types/common/propsValues/scroll.d.ts +6 -0
- package/build/types/common/propsValues/sentiment.d.ts +19 -0
- package/build/types/common/propsValues/size.d.ts +12 -0
- package/build/types/common/propsValues/status.d.ts +9 -0
- package/build/types/common/propsValues/type.d.ts +13 -0
- package/build/types/common/propsValues/typography.d.ts +37 -0
- package/build/types/common/propsValues/variant.d.ts +4 -0
- package/build/types/common/propsValues/width.d.ts +4 -0
- package/build/types/common/requirements.d.ts +2 -0
- package/build/types/common/responsivePanel/ResponsivePanel.d.ts +14 -0
- package/build/types/common/responsivePanel/index.d.ts +1 -0
- package/build/types/common/textFormat/formatWithPattern/formatWithPattern.d.ts +2 -0
- package/build/types/common/textFormat/formatWithPattern/index.d.ts +1 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.d.ts +2 -0
- package/build/types/common/textFormat/getCountOfSymbolsInSelection/index.d.ts +1 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.d.ts +2 -0
- package/build/types/common/textFormat/getCursorPositionAfterKeystroke/index.d.ts +1 -0
- package/build/types/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.d.ts +2 -0
- package/build/types/common/textFormat/getDistanceToSymbol/index.d.ts +1 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.d.ts +2 -0
- package/build/types/common/textFormat/getSymbolsInPatternWithPosition/index.d.ts +1 -0
- package/build/types/common/textFormat/index.d.ts +6 -0
- package/build/types/common/textFormat/unformatWithPattern/index.d.ts +1 -0
- package/build/types/common/textFormat/unformatWithPattern/unformatWithPattern.d.ts +2 -0
- package/build/types/common/theme.d.ts +19 -0
- package/build/types/criticalBanner/CriticalCommsBanner.d.ts +12 -0
- package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +8 -0
- package/build/types/criticalBanner/index.d.ts +1 -0
- package/build/types/dateInput/DateInput.d.ts +37 -0
- package/build/types/dateInput/DateInput.messages.d.ts +19 -0
- package/build/types/dateInput/index.d.ts +2 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +1 -0
- package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +1 -0
- package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +5 -0
- package/build/types/dateInput/utils/explodeDate/index.d.ts +1 -0
- package/build/types/dateInput/utils/index.d.ts +2 -0
- package/build/types/dateLookup/DateLookup.d.ts +26 -0
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts +22 -0
- package/build/types/dateLookup/dateHeader/index.d.ts +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +33 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts +8 -0
- package/build/types/dateLookup/dateTrigger/index.d.ts +1 -0
- package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +4 -0
- package/build/types/dateLookup/dayCalendar/index.d.ts +1 -0
- package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +4 -0
- package/build/types/dateLookup/dayCalendar/table/index.d.ts +1 -0
- package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts +1 -0
- package/build/types/dateLookup/getStartOfDay/index.d.ts +1 -0
- package/build/types/dateLookup/index.d.ts +1 -0
- package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +4 -0
- package/build/types/dateLookup/monthCalendar/index.d.ts +1 -0
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +28 -0
- package/build/types/dateLookup/monthCalendar/table/index.d.ts +1 -0
- package/build/types/dateLookup/tableLink/TableLink.d.ts +27 -0
- package/build/types/dateLookup/tableLink/index.d.ts +1 -0
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +30 -0
- package/build/types/dateLookup/yearCalendar/index.d.ts +1 -0
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +28 -0
- package/build/types/dateLookup/yearCalendar/table/index.d.ts +1 -0
- package/build/types/decision/Decision.d.ts +48 -0
- package/build/types/decision/decisionEnums.d.ts +8 -0
- package/build/types/decision/index.d.ts +2 -0
- package/build/types/definitionList/DefinitionList.d.ts +24 -0
- package/build/types/definitionList/index.d.ts +1 -0
- package/build/types/dimmer/Dimmer.d.ts +31 -0
- package/build/types/dimmer/Dimmer.story.d.ts +16 -0
- package/build/types/dimmer/dimmerManager/DimmerManager.d.ts +13 -0
- package/build/types/dimmer/dimmerManager/index.d.ts +1 -0
- package/build/types/dimmer/index.d.ts +1 -0
- package/build/types/display/Display.d.ts +9 -0
- package/build/types/display/Display.story.d.ts +7 -0
- package/build/types/display/index.d.ts +1 -0
- package/build/types/drawer/Drawer.d.ts +36 -0
- package/build/types/drawer/index.d.ts +1 -0
- package/build/types/dropFade/DropFade.d.ts +6 -0
- package/build/types/dropFade/DropFade.story.d.ts +10 -0
- package/build/types/dropFade/index.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/DynamicFieldDefinitionList.d.ts +21 -0
- package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +25 -0
- package/build/types/dynamicFieldDefinitionList/FormattedValue/index.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/index.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/utils/createDefinitions.d.ts +1 -0
- package/build/types/dynamicFieldDefinitionList/utils/text-format.d.ts +1 -0
- package/build/types/emphasis/Emphasis.d.ts +6 -0
- package/build/types/emphasis/EmphasisHtmlTransformer.d.ts +16 -0
- package/build/types/emphasis/index.d.ts +1 -0
- package/build/types/flowNavigation/FlowNavigation.d.ts +34 -0
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts +18 -0
- package/build/types/flowNavigation/animatedLabel/index.d.ts +1 -0
- package/build/types/flowNavigation/backButton/BackButton.d.ts +20 -0
- package/build/types/flowNavigation/backButton/index.d.ts +2 -0
- package/build/types/flowNavigation/index.d.ts +1 -0
- package/build/types/header/Header.d.ts +28 -0
- package/build/types/header/Header.spec.d.ts +1 -0
- package/build/types/header/Header.story.d.ts +10 -0
- package/build/types/header/index.d.ts +1 -0
- package/build/types/i18n/index.d.ts +2 -0
- package/build/types/image/Image.d.ts +20 -0
- package/build/types/image/index.d.ts +1 -0
- package/build/types/index.d.ts +108 -0
- package/build/types/info/Info.d.ts +35 -0
- package/build/types/info/index.d.ts +2 -0
- package/build/types/info/infoPresentations.d.ts +4 -0
- package/build/types/inlineAlert/InlineAlert.d.ts +15 -0
- package/build/types/inlineAlert/index.d.ts +1 -0
- package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts +11 -0
- package/build/types/inputWithDisplayFormat/index.d.ts +1 -0
- package/build/types/instructionsList/InstructionsList.d.ts +8 -0
- package/build/types/instructionsList/index.d.ts +2 -0
- package/build/types/link/Link.d.ts +12 -0
- package/build/types/link/Link.spec.d.ts +1 -0
- package/build/types/link/Link.story.d.ts +9 -0
- package/build/types/link/index.d.ts +1 -0
- package/build/types/loader/Loader.d.ts +24 -0
- package/build/types/loader/index.d.ts +2 -0
- package/build/types/logo/Logo.d.ts +23 -0
- package/build/types/logo/index.d.ts +2 -0
- package/build/types/logo/logoTypes.d.ts +4 -0
- package/build/types/markdown/Markdown.d.ts +25 -0
- package/build/types/markdown/index.d.ts +1 -0
- package/build/types/modal/Modal.d.ts +14 -0
- package/build/types/modal/Modal.story.d.ts +8 -0
- package/build/types/modal/index.d.ts +2 -0
- package/build/types/money/Money.d.ts +11 -0
- package/build/types/money/index.d.ts +1 -0
- package/build/types/moneyInput/MoneyInput.d.ts +31 -0
- package/build/types/moneyInput/MoneyInput.messages.d.ts +7 -0
- package/build/types/moneyInput/currencyFormatting.d.ts +3 -0
- package/build/types/moneyInput/index.d.ts +1 -0
- package/build/types/navigationOption/NavigationOption.d.ts +4 -0
- package/build/types/navigationOption/index.d.ts +1 -0
- package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +10 -0
- package/build/types/navigationOptionsList/index.d.ts +1 -0
- package/build/types/nudge/Nudge.d.ts +20 -0
- package/build/types/nudge/index.d.ts +1 -0
- package/build/types/overlayHeader/OverlayHeader.d.ts +18 -0
- package/build/types/overlayHeader/index.d.ts +1 -0
- package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +23 -0
- package/build/types/phoneNumberInput/data/countries.d.ts +14 -0
- package/build/types/phoneNumberInput/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/cleanNumber.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/cleanNumber/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/explodeNumberModel/index.d.ts +5 -0
- package/build/types/phoneNumberInput/utils/filterOptionsForQuery/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByCode/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/findCountryByPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/groupCountriesByPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/index.d.ts +12 -0
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isOptionAndFitsQuery/isOptionAndFitsQuery.d.ts +2 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isStringNumeric/isStringNumeric.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/longestMatchingPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/setDefaultPrefix/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/index.d.ts +1 -0
- package/build/types/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.d.ts +1 -0
- package/build/types/popover/Popover.d.ts +20 -0
- package/build/types/popover/index.d.ts +1 -0
- package/build/types/processIndicator/ProcessIndicator.d.ts +19 -0
- package/build/types/processIndicator/index.d.ts +2 -0
- package/build/types/progress/Progress.d.ts +11 -0
- package/build/types/progress/index.d.ts +1 -0
- package/build/types/progressBar/ProgressBar.d.ts +14 -0
- package/build/types/progressBar/index.d.ts +1 -0
- package/build/types/provider/Provider.d.ts +19 -0
- package/build/types/provider/Provider.spec.d.ts +1 -0
- package/build/types/provider/Provider.story.d.ts +23 -0
- package/build/types/provider/direction/DirectionProvider.d.ts +8 -0
- package/build/types/provider/direction/DirectionProvider.spec.d.ts +1 -0
- package/build/types/provider/direction/index.d.ts +1 -0
- package/build/types/provider/index.d.ts +3 -0
- package/build/types/provider/language/LanguageProvider.d.ts +7 -0
- package/build/types/provider/language/LanguageProvider.spec.d.ts +1 -0
- package/build/types/provider/language/index.d.ts +1 -0
- package/build/types/radio/Radio.d.ts +21 -0
- package/build/types/radio/index.d.ts +2 -0
- package/build/types/radioGroup/RadioGroup.d.ts +26 -0
- package/build/types/radioGroup/index.d.ts +1 -0
- package/build/types/radioOption/RadioOption.d.ts +23 -0
- package/build/types/radioOption/index.d.ts +1 -0
- package/build/types/section/Section.d.ts +12 -0
- package/build/types/section/Section.spec.d.ts +1 -0
- package/build/types/section/Section.story.d.ts +15 -0
- package/build/types/section/index.d.ts +1 -0
- package/build/types/select/Select.d.ts +94 -0
- package/build/types/select/Select.messages.d.ts +7 -0
- package/build/types/select/index.d.ts +2 -0
- package/build/types/select/option/Option.d.ts +13 -0
- package/build/types/select/option/index.d.ts +2 -0
- package/build/types/select/searchBox/SearchBox.d.ts +6 -0
- package/build/types/select/searchBox/index.d.ts +1 -0
- package/build/types/sizeSwapper/SizeSwapper.d.ts +2 -0
- package/build/types/sizeSwapper/index.d.ts +1 -0
- package/build/types/slidingPanel/SlidingPanel.d.ts +17 -0
- package/build/types/slidingPanel/index.d.ts +1 -0
- package/build/types/snackbar/Snackbar.d.ts +22 -0
- package/build/types/snackbar/SnackbarContext.d.ts +2 -0
- package/build/types/snackbar/SnackbarProvider.d.ts +12 -0
- package/build/types/snackbar/useSnackbar.d.ts +2 -0
- package/build/types/statusIcon/StatusIcon.d.ts +8 -0
- package/build/types/statusIcon/index.d.ts +1 -0
- package/build/types/stepper/Stepper.d.ts +18 -0
- package/build/types/stepper/deviceDetection.d.ts +1 -0
- package/build/types/stepper/index.d.ts +2 -0
- package/build/types/sticky/Sticky.d.ts +14 -0
- package/build/types/sticky/index.d.ts +1 -0
- package/build/types/summary/Summary.d.ts +71 -0
- package/build/types/summary/Summary.messages.d.ts +19 -0
- package/build/types/summary/index.d.ts +1 -0
- package/build/types/switch/Switch.d.ts +17 -0
- package/build/types/switch/Switch.story.d.ts +15 -0
- package/build/types/switch/index.d.ts +1 -0
- package/build/types/switchOption/SwitchOption.d.ts +17 -0
- package/build/types/switchOption/SwitchOption.story.d.ts +22 -0
- package/build/types/switchOption/index.d.ts +1 -0
- package/build/types/tabs/Tab.d.ts +2 -0
- package/build/types/tabs/TabList.d.ts +10 -0
- package/build/types/tabs/TabPanel.d.ts +18 -0
- package/build/types/tabs/Tabs.d.ts +29 -0
- package/build/types/tabs/index.d.ts +1 -0
- package/build/types/tabs/utils.d.ts +7 -0
- package/build/types/test-utils/index.d.ts +107 -0
- package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts +11 -0
- package/build/types/textareaWithDisplayFormat/index.d.ts +1 -0
- package/build/types/tile/Tile.d.ts +39 -0
- package/build/types/tile/index.d.ts +1 -0
- package/build/types/title/Title.d.ts +14 -0
- package/build/types/title/Title.spec.d.ts +1 -0
- package/build/types/title/Title.story.d.ts +8 -0
- package/build/types/title/index.d.ts +1 -0
- package/build/types/tooltip/Tooltip.d.ts +9 -0
- package/build/types/tooltip/Tooltip.spec.d.ts +1 -0
- package/build/types/tooltip/Tooltip.story.d.ts +12 -0
- package/build/types/tooltip/index.d.ts +2 -0
- package/build/types/typeahead/Typeahead.d.ts +57 -0
- package/build/types/typeahead/index.d.ts +2 -0
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +47 -0
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +23 -0
- package/build/types/typeahead/util/highlight.d.ts +1 -0
- package/build/types/upload/Upload.d.ts +54 -0
- package/build/types/upload/Upload.messages.d.ts +61 -0
- package/build/types/upload/index.d.ts +2 -0
- package/build/types/upload/steps/completeStep/completeStep.d.ts +20 -0
- package/build/types/upload/steps/completeStep/index.d.ts +1 -0
- package/build/types/upload/steps/index.d.ts +4 -0
- package/build/types/upload/steps/mediaUploadStep/index.d.ts +1 -0
- package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +24 -0
- package/build/types/upload/steps/processingStep/index.d.ts +1 -0
- package/build/types/upload/steps/processingStep/processingStep.d.ts +14 -0
- package/build/types/upload/steps/uploadImageStep/index.d.ts +1 -0
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +22 -0
- package/build/types/upload/uploadSteps.d.ts +4 -0
- package/build/types/upload/utils/asyncFileRead/asyncFileRead.d.ts +1 -0
- package/build/types/upload/utils/asyncFileRead/index.d.ts +1 -0
- package/build/types/upload/utils/getFileType/getFileType.d.ts +1 -0
- package/build/types/upload/utils/getFileType/index.d.ts +1 -0
- package/build/types/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.d.ts +1 -0
- package/build/types/upload/utils/getSupportedSpotMimeTypes/index.d.ts +1 -0
- package/build/types/upload/utils/index.d.ts +7 -0
- package/build/types/upload/utils/isSizeValid/index.d.ts +1 -0
- package/build/types/upload/utils/isSizeValid/isSizeValid.d.ts +1 -0
- package/build/types/upload/utils/isTypeValid/index.d.ts +1 -0
- package/build/types/upload/utils/isTypeValid/isTypeValid.d.ts +1 -0
- package/build/types/upload/utils/postData/index.d.ts +1 -0
- package/build/types/upload/utils/postData/postData.d.ts +1 -0
- package/build/types/upload/utils/requestMedia/index.d.ts +1 -0
- package/build/types/upload/utils/requestMedia/requestMedia.d.ts +1 -0
- package/build/types/uploadInput/UploadInput.d.ts +75 -0
- package/build/types/uploadInput/UploadInput.messages.d.ts +38 -0
- package/build/types/uploadInput/UploadInput.spec.d.ts +1 -0
- package/build/types/uploadInput/UploadInput.story.d.ts +20 -0
- package/build/types/uploadInput/index.d.ts +1 -0
- package/build/types/uploadInput/types.d.ts +46 -0
- package/build/types/uploadInput/uploadButton/UploadButton.d.ts +49 -0
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts +28 -0
- package/build/types/uploadInput/uploadButton/UploadButton.spec.d.ts +1 -0
- package/build/types/uploadInput/uploadButton/defaults.d.ts +3 -0
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.d.ts +3 -0
- package/build/types/uploadInput/uploadButton/getAllowedFileTypes.spec.d.ts +1 -0
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts +20 -0
- package/build/types/uploadInput/uploadItem/UploadItem.messages.d.ts +33 -0
- package/build/types/uploadInput/uploadItem/UploadItem.spec.d.ts +1 -0
- package/build/types/uploadInput/uploadItem/UploadItemBody.d.ts +7 -0
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +7 -0
- package/build/types/utilities/deprecatedProperty/index.d.ts +1 -0
- package/build/types/utilities/index.d.ts +2 -0
- package/build/types/utilities/logActionRequired.d.ts +2 -0
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +90 -0
- package/build/types/withDisplayFormat/index.d.ts +1 -0
- package/build/types/withNextPortal/withNextPortal.d.ts +2 -0
- package/build/umd/no-polyfill/main.js +1 -0
- package/build/umd/polyfill/main.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["aria-label","as","isExpanded","title","details","children","onClick","icon","id","className"];import classNames from"classnames";import PropTypes from"prop-types";import{forwardRef}from"react";import requiredIf from"react-required-if";import Body from"../body";import Chevron from"../chevron";import{Position,Typography}from"../common";import Option from"../common/Option";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Card=/*#__PURE__*/forwardRef(function(a,b){var c=a["aria-label"],d=a.as,e=a.isExpanded,f=a.title,g=a.details,h=a.children,i=a.onClick,j=a.icon,k=a.id,l=a.className,m=_objectWithoutProperties(a,_excluded),n=!!(e&&h);return/*#__PURE__*/_jsxs(d,{ref:b,className:classNames("np-card",l,{"np-card--expanded":n,"np-card--inactive":!h,"np-card--has-icon":!!j}),id:k,"data-testid":m["data-testid"],children:[/*#__PURE__*/_jsx(Option,{"aria-label":c,as:h?"button":"div",className:classNames("np-card__button"),media:j,title:f,content:g,showMediaAtAllSizes:!0,button:h&&/*#__PURE__*/_jsx(Chevron,{orientation:n?Position.TOP:Position.BOTTOM}),onClick:function onClick(){return h&&i(!e)}}),/*#__PURE__*/_jsx("div",{className:classNames("np-card__divider",{"np-card__divider--expanded":n})}),n&&/*#__PURE__*/_jsx(Body,{as:"span",type:Typography.BODY_LARGE,className:"np-card__content d-block",children:h})]})}),hasChildren=function(a){var b=a.children;return b};Card.propTypes={"aria-label":PropTypes.string,as:PropTypes.string,isExpanded:requiredIf(PropTypes.bool,hasChildren),title:PropTypes.node.isRequired,details:PropTypes.node.isRequired,onClick:requiredIf(PropTypes.func,hasChildren),icon:PropTypes.node,children:PropTypes.node,id:PropTypes.string,className:PropTypes.string,"data-testid":PropTypes.string},Card.defaultProps={"aria-label":void 0,as:"div",children:null,id:null,className:null,"data-testid":null};export default Card;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./Card";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useTheme}from"@wise/components-theming";import classNames from"classnames";import PropTypes from"prop-types";import Body from"../body/Body";import CheckboxButton from"../checkboxButton";import{Typography}from"../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Checkbox=function(a){var b=a.id,c=a.checked,d=a.required,e=a.disabled,f=a.readOnly,g=a.label,h=a.className,i=a.secondary,j=a.onChange,k=a.onFocus,l=a.onBlur,m=useTheme(),n=m.isModern,o=d&&!e&&!f&&!c,p=classNames("np-checkbox",{checkbox:!0,"checkbox-lg":i,"has-error":o,disabled:n&&e},h);return/*#__PURE__*/_jsx("div",{id:b,className:p,children:/*#__PURE__*/_jsxs("label",{className:classNames({disabled:e}),children:[/*#__PURE__*/_jsx(CheckboxButton,{className:classNames("p-r-2",{"has-error":o}),checked:c,disabled:e||f,onFocus:k,onChange:function onChange(){return j(!c)},onBlur:l}),/*#__PURE__*/_jsxs(Body,{as:"span",className:"np-checkbox__text",type:i?Typography.BODY_LARGE_BOLD:Typography.BODY_DEFAULT,children:[g,d&&"*",i&&/*#__PURE__*/_jsx(Body,{as:"span",children:i})]})]})})};Checkbox.propTypes={id:PropTypes.string,checked:PropTypes.bool,required:PropTypes.bool,disabled:PropTypes.bool,readOnly:PropTypes.bool,label:PropTypes.node.isRequired,secondary:PropTypes.string,onFocus:PropTypes.func,onChange:PropTypes.func.isRequired,onBlur:PropTypes.func,className:PropTypes.string},Checkbox.defaultProps={id:null,checked:!1,required:!1,disabled:!1,readOnly:!1,secondary:null,onFocus:null,onBlur:null,className:void 0};export default Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import Checkbox from"./Checkbox";export default Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["checked","className","disabled","onChange"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var CheckboxButton=/*#__PURE__*/forwardRef(function(a,b){var c=a.checked,d=a.className,e=a.disabled,f=a.onChange,g=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsxs("span",{className:classNames("np-checkbox-button",d,e&&"disabled"),children:[/*#__PURE__*/_jsx("input",_objectSpread(_objectSpread({},g),{},{ref:b,type:"checkbox",disabled:e,checked:c,onChange:f})),/*#__PURE__*/_jsx("span",{className:"tw-checkbox-button",children:/*#__PURE__*/_jsx("span",{className:"tw-checkbox-check"})})]})});export default CheckboxButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* eslint-disable jest/expect-expect */ /* eslint-disable testing-library/no-render-in-setup */import"@testing-library/jest-dom";import{render,fireEvent,screen}from"../test-utils";import CheckboxButton from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Checkbox button",function(){describe("by default",function(){render(/*#__PURE__*/_jsx(CheckboxButton,{onChange:jest.fn()}));var a=screen.getByRole("checkbox");it("is not checked",function(){return expect(a).not.toBeChecked()}),it("is not disabled",function(){return expect(a).toBeEnabled()})}),it("applies aria-label if provided",function(){render(/*#__PURE__*/_jsx(CheckboxButton,{"aria-label":"An aria label",onChange:jest.fn()})),expect(screen.getByRole("checkbox",{name:"An aria label"})).toBeInTheDocument()}),it("is checked when checked prop is true",function(){render(/*#__PURE__*/_jsx(CheckboxButton,{checked:!0,onChange:jest.fn()})),expect(screen.getByRole("checkbox")).toBeChecked()}),it("is disabled when disabled prop is true",function(){render(/*#__PURE__*/_jsx(CheckboxButton,{disabled:!0,onChange:jest.fn()}));var a=screen.getByRole("checkbox");expect(a).toBeDisabled()}),it("calls onChange handler on change",function(){var a=jest.fn();render(/*#__PURE__*/_jsx(CheckboxButton,{onChange:a}));var b=screen.getByRole("checkbox");expect(a).not.toHaveBeenCalled(),fireEvent.click(b),expect(a).toHaveBeenCalledTimes(1)})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{boolean}from"@storybook/addon-knobs";import{useState}from"react";import CheckboxButton from"./CheckboxButton";import{jsx as _jsx}from"react/jsx-runtime";export default{component:CheckboxButton,title:"Forms/CheckboxButton"};var onBlur=function(){return console.log("blur")},onClick=function(){return console.log("click")},onFocus=function(){return console.log("focus")};export var Basic=function(){var a=useState(!0),b=_slicedToArray(a,2),c=b[0],d=b[1],e=boolean("disabled",!1);return/*#__PURE__*/_jsx(CheckboxButton,{"aria-label":"Toggle email updates",checked:c,disabled:e,onBlur:onBlur,onClick:onClick,onFocus:onFocus,onChange:function onChange(){return d(!c)}})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./CheckboxButton";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["checked","disabled","onChange"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{forwardRef}from"react";import CheckboxButton from"../checkboxButton";import Option from"../common/Option";import{jsx as _jsx}from"react/jsx-runtime";var CheckboxOption=/*#__PURE__*/forwardRef(function(a,b){var c=a.checked,d=a.disabled,e=a.onChange,f=_objectWithoutProperties(a,_excluded);return/*#__PURE__*/_jsx(Option,_objectSpread(_objectSpread({},f),{},{ref:b,disabled:d,button:/*#__PURE__*/_jsx(CheckboxButton,{checked:c,disabled:d,onChange:function onChange(){return e(!c)}})}))});export default CheckboxOption;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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 jest/expect-expect */import"@testing-library/jest-dom";import{render,fireEvent,screen}from"../test-utils";import CheckboxOption from".";import{jsx as _jsx}from"react/jsx-runtime";describe("Checkbox option",function(){var a={id:"id",name:"name",title:"Title",onChange:jest.fn(),"aria-label":"test-label"};describe("by default",function(){render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread({},a)));var b=screen.getByRole("checkbox");it("is not checked",function(){expect(b).not.toBeChecked()}),it("is not disabled",function(){expect(b).toBeEnabled()})}),it("has `aria-label` attr",function(){render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread({},a)));var b=screen.getByLabelText("test-label");expect(b).toBeInTheDocument()}),it("is checked when checked prop is true",function(){render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread(_objectSpread({},a),{},{checked:!0}))),expect(screen.getByRole("checkbox")).toBeChecked()}),it("is disabled when disabled prop is true",function(){render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread(_objectSpread({},a),{},{disabled:!0}))),expect(screen.getByRole("checkbox")).toBeDisabled()}),describe("onChange",function(){it("is called with new checked value when the option is clicked",function(){var b=jest.fn(),c=render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread(_objectSpread({},a),{},{onChange:b}))),d=c.rerender,e=screen.getByLabelText("test-label");expect(b).not.toHaveBeenCalled(),fireEvent.click(e),expect(b).toHaveBeenCalledWith(!0),d(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread(_objectSpread({},a),{},{checked:!0,onChange:b}))),fireEvent.click(e),expect(b).toHaveBeenCalledWith(!1)}),it("is not called if the option is disabled",function(){var b=jest.fn();render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread(_objectSpread({},a),{},{disabled:!0,onChange:b})));var c=screen.getByLabelText("test-label");expect(b).not.toHaveBeenCalled(),fireEvent.click(c),expect(b).not.toHaveBeenCalled()})}),it("renders aligned with container content",function(){render(/*#__PURE__*/_jsx(CheckboxOption,_objectSpread(_objectSpread({},a),{},{isContainerAligned:!0}))),expect(document.querySelector(".np-option__container-aligned")).toBeInTheDocument()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import{action}from"@storybook/addon-actions";import{boolean,text}from"@storybook/addon-knobs";import{FastFlag as FastFlagIcon}from"@transferwise/icons";import{useState}from"react";import{Nudge}from"..";import CheckboxOption from"./CheckboxOption";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:CheckboxOption,title:"Option/CheckboxOption"};var Template=function(){var a=useState(!0),b=_slicedToArray(a,2),c=b[0],d=b[1],e=text("content","Normally, the button and icon are vertically centered."),f=text("title","Checkbox option"),g=boolean("disabled",!1),h=boolean("showMediaAtAllSizes",!1),i=boolean("isContainerAligned",!1);return/*#__PURE__*/_jsx(CheckboxOption,{id:"checkbox-option",name:"checkbox-option",checked:c,disabled:g,title:f,content:e,media:/*#__PURE__*/_jsx(FastFlagIcon,{}),showMediaAtAllSizes:h,isContainerAligned:i,onChange:function onChange(a){return d(a)}})};export var Basic=function(){return/*#__PURE__*/_jsx(Template,{})};export var Multiple=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{})]})};export var WithContainerContent=function(){return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("h2",{className:"m-b-2",children:"Choose how to pay"}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Template,{}),/*#__PURE__*/_jsx(Nudge,{className:"m-t-2",mediaName:"globe",title:"Text that is no longer than two lines.",link:"Link",href:"#",onClick:action("action clicked"),onDismiss:action("dismissed")})]})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./CheckboxOption";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";var _CONTAINER_SIZE;import{ChevronUp}from"@transferwise/icons";import classNames from"classnames";import PropTypes from"prop-types";import{Size,Position}from"../common";import{jsx as _jsx}from"react/jsx-runtime";var CONTAINER_SIZE=(_CONTAINER_SIZE={},_defineProperty(_CONTAINER_SIZE,Size.EXTRA_SMALL,10),_defineProperty(_CONTAINER_SIZE,Size.SMALL,16),_defineProperty(_CONTAINER_SIZE,Size.MEDIUM,24),_CONTAINER_SIZE),ExtraSmallChevron=function(a){var b=a.className;return/*#__PURE__*/_jsx("span",{className:classNames("tw-icon","tw-icon-chevron",b),role:"presentation","aria-hidden":!0,children:/*#__PURE__*/_jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",focusable:"false",children:/*#__PURE__*/_jsx("path",{fillRule:"evenodd",d:"M4.9995 2.0865L0.0635004 6.7645L1.2745 7.9125L4.9995 4.3835L8.7245 7.9135L9.9355 6.7645L4.9995 2.0865Z"})})})};ExtraSmallChevron.propTypes={className:PropTypes.string},ExtraSmallChevron.defaultProps={className:null};var Chevron=function(a){var b=a.orientation,c=a.size,d=a.disabled,e=a.className,f=classNames("tw-chevron",{"chevron-color":!d},"".concat([b]).toLowerCase(),e),g=CONTAINER_SIZE[c];return c===Size.EXTRA_SMALL?/*#__PURE__*/_jsx(ExtraSmallChevron,{className:f}):/*#__PURE__*/_jsx(ChevronUp,{className:f,size:g})};Chevron.propTypes={orientation:PropTypes.oneOf(["top","bottom","left","right"]),size:PropTypes.oneOf(["xs","sm","md"]),disabled:PropTypes.bool,className:PropTypes.string},Chevron.defaultProps={orientation:Position.BOTTOM,size:Size.SMALL,disabled:!1,className:null};export default Chevron;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./Chevron";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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{useEffect,useRef}from"react";import Body from"../body/Body";import{Typography}from"../common";import CloseButton from"../common/closeButton/CloseButton";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Chip=function(a){var b=a.label,c=a.value,d=a.onRemove,e=a.onClick,f=a.onKeyPress,g=a.className,h=void 0===g?void 0:g,i=a["aria-label"],j=a["aria-checked"],k=a.role,l=a.closeButton,m=e||f,n=m?"button":void 0,o=m?0:-1,p=useTheme(),q=p.isModern,r=useRef(null),s=useRef();return useEffect(function(){if(null!=r.current&&!1===s.current){var a;null===(a=r.current)||void 0===a?void 0:a.focus()}s.current=null!=r.current},[d]),/*#__PURE__*/_jsxs("div",_objectSpread(_objectSpread({role:null!==k&&void 0!==k?k:n,tabIndex:o,"aria-label":i,"aria-checked":j,className:classNames("np-chip","d-flex","align-items-center","justify-content-between",d?"np-chip--removable":"",h)},m&&{onClick:e,onKeyPress:f}),{},{children:[q?/*#__PURE__*/_jsx(Body,{"aria-hidden":!!d,type:Typography.BODY_DEFAULT_BOLD,children:b}):/*#__PURE__*/_jsx("span",{"aria-hidden":"false",className:"np-chip-label",children:b}),d?/*#__PURE__*/_jsx(CloseButton,{ref:r/* @ts-expect-error remove when CloseButton will be written on TS */,className:q?"btn-unstyled":"btn-unstyled m-l-1","aria-label":l&&l["aria-label"],size:16,filled:q,onClick:d}):null]}),c)};export default Chip;
|
|
@@ -0,0 +1 @@
|
|
|
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"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import classNames from"classnames";import{useIntl}from"react-intl";import Chip from"./Chip";import messages from"./Chips.messages";import{jsx as _jsx}from"react/jsx-runtime";var Chips=function(a){var b=a.chips,c=a.onChange,d=a.selected,e=a["aria-label"],f=a.className,g=a.multiple,h=useIntl(),i=function(a){return Array.isArray(d)?d.includes(a):d===a},j=function(a,b){c({isEnabled:!b,selectedValue:a})};return/*#__PURE__*/_jsx("div",{className:classNames("np-chips d-flex",f),"aria-label":e,role:g?void 0:"radiogroup",children:b.map(function(a){var b=i(a.value);return/*#__PURE__*/_jsx(Chip,_objectSpread({value:a.value,label:a.label,closeButton:{"aria-label":h.formatMessage(messages.ariaLabel,{choice:a.label})},className:classNames("text-xs-nowrap",{"np-chip--selected":b,"p-r-1":g&&b})},g&&b?{onRemove:function onRemove(){return j(a.value,b)},"aria-label":a.label}:{onClick:function onClick(){return j(a.value,b)},onKeyPress:function onKeyPress(){return j(a.value,b)},role:g?void 0:"radio","aria-checked":b}),a.value)})})};export default Chips;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineMessages}from"react-intl";export default defineMessages({ariaLabel:{id:"neptune.Chips.ariaLabel"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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,fireEvent}from"../test-utils";import Chips from".";import{jsx as _jsx}from"react/jsx-runtime";var choiceProps={chips:[{value:"accounting",label:"Accounting"},{value:"payroll",label:"Payroll"},{value:"reporting",label:"Reporting"},{value:"payments",label:"Payments"}],selected:"payroll",onChange:jest.fn(),"aria-label":"Please select a category"},filterProps={chips:[{value:"accounting",label:"Accounting"},{value:"payroll",label:"Payroll"},{value:"reporting",label:"Reporting"},{value:"payments",label:"Payments"}],onChange:jest.fn(),"aria-label":"Filter by categories",selected:["payments"],multiple:!0};describe("Chips",function(){describe("Choice Chips",function(){it("renders as expected",function(){expect(render(/*#__PURE__*/_jsx(Chips,_objectSpread({},choiceProps))).container).toMatchSnapshot()}),it("will pass previous state, updated state, and selected value on select",function(){render(/*#__PURE__*/_jsx(Chips,_objectSpread({},choiceProps)));var a=screen.getByText("Accounting");fireEvent.click(a),expect(choiceProps.onChange).toHaveBeenCalledWith({selectedValue:"accounting",isEnabled:!0})})}),describe("Filter Chips",function(){it("renders as expected",function(){expect(render(/*#__PURE__*/_jsx(Chips,_objectSpread({},filterProps))).container).toMatchSnapshot()}),it("will pass previous state, updated state, and selected value on select",function(){render(/*#__PURE__*/_jsx(Chips,_objectSpread({},filterProps)));var a=screen.getByText("Accounting");fireEvent.click(a),expect(filterProps.onChange).toHaveBeenCalledWith({selectedValue:"accounting",isEnabled:!0})}),it("will pass previous state, updated state, and cleared value on clear",function(){render(/*#__PURE__*/_jsx(Chips,_objectSpread({},filterProps))),fireEvent.click(screen.getAllByRole("button")[3]),expect(filterProps.onChange).toHaveBeenCalledWith({selectedValue:"payments",isEnabled:!1})})})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _slicedToArray from"@babel/runtime/helpers/slicedToArray";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";import{useState}from"react";import Chips from"./Chips";import{jsx as _jsx}from"react/jsx-runtime";export default{title:"Actions/Chips",component:Chips};var FilterTemplate=function(a){var b=useState(a.selected?a.selected:[]),c=_slicedToArray(b,2),d=c[0],e=c[1];return/*#__PURE__*/_jsx(Chips,_objectSpread(_objectSpread({},a),{},{selected:d,multiple:!0,onChange:function onChange(a){var b=a.selectedValue,c=a.isEnabled;if(c)e([].concat(_toConsumableArray(d),[b]));else{var f=d.filter(function(a){return b!==a});e(f)}}}))},ChoiceTemplate=function(a){var b=useState(a.selected),c=_slicedToArray(b,2),d=c[0],e=c[1];return/*#__PURE__*/_jsx(Chips,_objectSpread(_objectSpread({},a),{},{selected:d,onChange:function onChange(a){var b=a.selectedValue;return e(b)}}))};export var FilterChips=FilterTemplate.bind({});FilterChips.args={chips:[{value:"accounting",label:"Accounting"},{value:"payroll",label:"Payroll"},{value:"reporting",label:"Reporting"},{value:"payments",label:"Payments"}]};export var PreSelectedFilterChips=FilterTemplate.bind({});PreSelectedFilterChips.args={chips:[{value:"accounting",label:"Accounting"},{value:"payroll",label:"Payroll"},{value:"reporting",label:"Reporting"},{value:"payments",label:"Payments"}],selected:["accounting","payments"]};export var ChoiceChips=ChoiceTemplate.bind({});ChoiceChips.args={chips:[{value:1,label:"100 GBP"},{value:2,label:"200 GBP"},{value:3,label:"300 GBP"},{value:4,label:"400 GBP+"}],selected:3};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./Chips";export{default as Chip}from"./Chip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["className","children","disabled","icon","priority","type"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}import classNames from"classnames";import PropTypes from"prop-types";import{cloneElement}from"react";import Body from"../body/Body";import{typeClassMap,priorityClassMap}from"../button/classMap";import{ControlType,Priority}from"../common";import{Typography}from"../common";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var CircularButton=function(a){var b=a.className,c=a.children,d=a.disabled,e=a.icon,f=a.priority,g=a.type,h=_objectWithoutProperties(a,_excluded),i=classNames("btn np-btn",typeClassMap[g],priorityClassMap[f]),j=24===e.props.size?e:/*#__PURE__*/cloneElement(e,{size:24});return/*#__PURE__*/_jsxs("label",{className:classNames("np-circular-btn",f,g,d?"disabled":"",b),children:[/*#__PURE__*/_jsx("input",_objectSpread({type:"button","aria-label":c,className:i,disabled:d},h)),j,/*#__PURE__*/_jsx(Body,{as:"span",className:"np-circular-btn__label",type:Typography.BODY_DEFAULT_BOLD,children:c})]})};CircularButton.propTypes={className:PropTypes.string,children:PropTypes.string.isRequired,disabled:PropTypes.bool,icon:PropTypes.element.isRequired,onClick:PropTypes.func.isRequired,priority:PropTypes.oneOf(["primary","secondary"]),type:PropTypes.oneOf(["accent","positive","negative"])},CircularButton.defaultProps={className:void 0,disabled:!1,priority:Priority.PRIMARY,type:ControlType.ACCENT};export default CircularButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./CircularButton";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defined in `Dimmer.less`
|
|
3
|
+
*/var NO_SCROLL_BODY_CLASS="no-scroll";/**
|
|
4
|
+
* Apply {@link NO_SCROLL_BODY_CLASS} that disables scroll on page (e.g use in Dimmer to disable scroll behind the component)
|
|
5
|
+
*
|
|
6
|
+
* For a proper disabling, the CSS class needs to be applied for `html` and `body` elements.
|
|
7
|
+
*/export var addNoScrollBodyClass=function(){document.documentElement.classList.add(NO_SCROLL_BODY_CLASS),document.body.classList.add(NO_SCROLL_BODY_CLASS)};/**
|
|
8
|
+
* Clean up after {@link addNoScrollBodyClass} function
|
|
9
|
+
*/export var removeNoScrollBodyClass=function(){document.documentElement.classList.remove(NO_SCROLL_BODY_CLASS),document.body.classList.remove(NO_SCROLL_BODY_CLASS)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{addNoScrollBodyClass,removeNoScrollBodyClass}from"./DOMOperations";export{addNoScrollBodyClass,removeNoScrollBodyClass};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["media","title","content","as","button","decision","disabled","complex","inverseMediaCircle","className","showMediaAtAllSizes","showMediaCircle","isContainerAligned"];import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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 Body from"../../body";import{Typography}from"../propsValues/typography";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var Option=/*#__PURE__*/forwardRef(function(a,b){var c,d=a.media,e=void 0===d?"":d,f=a.title,g=a.content,h=a.as,i=a.button,j=a.decision,k=a.disabled,l=void 0!==k&&k,m=a.complex,n=a.inverseMediaCircle,o=a.className,p=a.showMediaAtAllSizes,q=a.showMediaCircle,r=a.isContainerAligned,s=_objectWithoutProperties(a,_excluded),t=null!==(c=h)&&void 0!==c?c:"label";return/*#__PURE__*/_jsx(t,_objectSpread(_objectSpread({},s),{},{ref:b,className:classNames("np-option",o,{"decision-complex":m,decision:!(void 0!==j)||j,disabled:l,"np-option__sm-media":p,"np-option__container-aligned":void 0!==r&&r}),disabled:l&&"button"===t,children:/*#__PURE__*/_jsxs("div",{className:"media",children:[e&&/*#__PURE__*/_jsx("div",{className:"media-left",children:!(void 0!==q)||q?/*#__PURE__*/_jsx("div",{className:classNames("circle circle-sm text-primary",{"circle-inverse":!(void 0!==n)||n}),children:e}):/*#__PURE__*/_jsx("div",{className:"np-option__no-media-circle",children:e})}),/*#__PURE__*/_jsxs("div",{className:"media-body",children:[/*#__PURE__*/_jsx(Body,{as:"span",type:Typography.BODY_LARGE_BOLD,className:"text-primary np-option__title d-block",children:f}),g&&/*#__PURE__*/_jsx(Body,{className:"d-block np-option__body",children:g})]}),/*#__PURE__*/_jsx("div",{className:"media-right",children:i})]})}))});export default Option;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./Option";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.function.name.js";import classNames from"classnames";import PropTypes from"prop-types";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 RadioButton=function(a){var b=a.id,c=a.value,d=a.name,e=a.checked,f=a.onChange,g=a.disabled,h=a.readOnly;return/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx("input",{type:"radio",className:"sr-only",id:b,value:c,name:d,checked:e,disabled:g||h,onChange:function onChange(){return e?null:f(c)}}),/*#__PURE__*/_jsx("span",{className:classNames("tw-radio-button",{checked:e,disabled:g||h}),children:/*#__PURE__*/_jsx("span",{className:"tw-radio-check"})})]})};RadioButton.propTypes={id:PropTypes.string,name:PropTypes.string.isRequired,checked:PropTypes.bool,onChange:PropTypes.func,disabled:PropTypes.bool,value:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),readOnly:PropTypes.bool},RadioButton.defaultProps={checked:!1,onChange:function onChange(){},disabled:!1,id:null,value:"",readOnly:!1};export default RadioButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./RadioButton";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.array.concat.js";import{useTheme}from"@wise/components-theming";import classNames from"classnames";import{useRef,useState}from"react";import Dimmer from"../../dimmer";import SlidingPanel from"../../slidingPanel";import CloseButton from"../closeButton";import{isServerSide}from"../domHelpers";import{useConditionalListener}from"../hooks";import{Position}from"../propsValues/position";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var INITIAL_Y_POSITION=0,CONTENT_SCROLL_THRESHOLD=1,MOVE_OFFSET_THRESHOLD=50,BottomSheet=function(a){function b(a){null!==g.current&&(g.current.style.transform="translateY(".concat(a,"px)"))}function c(b){m(!1),o.current=INITIAL_Y_POSITION,null!==g.current&&g.current.style.removeProperty("transform"),a.onClose&&a.onClose(b)}function d(a){// stop moving component
|
|
2
|
+
cancelAnimationFrame(n.current),m(!1),o.current>MOVE_OFFSET_THRESHOLD&&e()?c(a):b(INITIAL_Y_POSITION),o.current=INITIAL_Y_POSITION}function e(){var a;return(null===i||void 0===i||null===(a=i.current)||void 0===a?void 0:a.scrollTop)!==void 0&&i.current.scrollTop<=CONTENT_SCROLL_THRESHOLD}/**
|
|
3
|
+
* Calculates how hard user moves component,
|
|
4
|
+
* result value used to determine whether to hide component or re-position to default state
|
|
5
|
+
*
|
|
6
|
+
* @param afterMoveYCoordinate
|
|
7
|
+
*/function f(a){return a-p.current}/**
|
|
8
|
+
* Set `max-height` for content part (in order to keep it scrollable for content overflow cases) of the component
|
|
9
|
+
* and ensures space for safe zone (32px) at the top.
|
|
10
|
+
*/var g=useRef(null),h=useRef(null),i=useRef(null),j=useState(!1),k=_slicedToArray(j,2),l=k[0],m=k[1],n=useRef(0),o=useRef(0),p=useRef(0);useConditionalListener({attachListener:a.open&&!isServerSide(),callback:function callback(){if(null!==h.current){var a=h.current.classList;e()?a.remove("np-bottom-sheet--top-bar--shadow"):a.add("np-bottom-sheet--top-bar--shadow")}},eventType:"scroll",parent:isServerSide()?void 0:document});var q=function(a){return function(b){p.current=(a?b.touches[0]:b).clientY,m(!0)}},r=function(a){return function(c){if(l){var d=a?c.touches[0]:c,h=d.clientY,i=f(h);i>INITIAL_Y_POSITION&&e()&&(o.current=i,n.current=requestAnimationFrame(function(){n.current!==void 0&&null!==g.current&&b(i)}))}}},s=useTheme(),t=s.className;return/*#__PURE__*/_jsx(Dimmer,{open:a.open,fadeContentOnEnter:!0,fadeContentOnExit:!0,className:t,onClose:c,children:/*#__PURE__*/_jsxs(SlidingPanel,{ref:g,open:a.open,position:Position.BOTTOM,className:classNames("np-bottom-sheet",a.className),role:"dialog",onTouchStart:q(!0),onTouchMove:r(!0),onTouchEnd:d,onMouseDown:q(!1),onMouseMove:r(!1),onMouseUp:d,children:[/*#__PURE__*/_jsxs("div",{ref:h,className:"np-bottom-sheet--top-bar",children:[/*#__PURE__*/_jsx("div",{className:"np-bottom-sheet--handler"}),/*#__PURE__*/_jsx(CloseButton,{size:16,className:"sr-only np-bottom-sheet--close-btn",onClick:c})]}),/*#__PURE__*/_jsx("div",{ref:i,style:function(){var a=isServerSide()?0:window.innerHeight,b="".concat(100*(.01*a),"px");return{maxHeight:"calc(".concat(b," - ").concat("64px"," - ").concat("32px",")")}}(),className:"np-bottom-sheet--content",children:a.children})]})})};export default BottomSheet;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{render}from"../../test-utils";import BottomSheet from"./BottomSheet";import{jsx as _jsx}from"react/jsx-runtime";describe("BottomSheet",function(){it("renders content when open",function(){var a=render(/*#__PURE__*/_jsx(BottomSheet,{open:!0,onClose:jest.fn(),children:/*#__PURE__*/_jsx("b",{children:"Test Content"})})),b=a.baseElement;expect(b).toMatchSnapshot()}),it("does not renders when closed",function(){var a=render(/*#__PURE__*/_jsx(BottomSheet,{open:!1,onClose:jest.fn(),children:"content"})),b=a.container;expect(b).toBeEmptyDOMElement()})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./BottomSheet";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.object.values.js";import{Cross,CrossCircleFill}from"@transferwise/icons";import classNames from"classnames";import PropTypes from"prop-types";import{forwardRef}from"react";import{useIntl}from"react-intl";import messages from"./CloseButton.messages";import{jsx as _jsx}from"react/jsx-runtime";export var CloseButton=/*#__PURE__*/forwardRef(function(a,b){var c=useIntl(),d=a.onClick,e=a.size,f=a.filled,g=a.className,h=a["aria-label"]||c.formatMessage(messages.ariaLabel),i=f?CrossCircleFill:Cross;return/*#__PURE__*/_jsx("button",{ref:b,type:"button",className:classNames("np-close-button","close btn-link","text-no-decoration",{"np-close-button--large":e===CloseButton.Size.LARGE},g),"aria-label":h,onClick:d,children:/*#__PURE__*/_jsx(i,{size:e})})});CloseButton.Size={SMALL:16,LARGE:24},CloseButton.propTypes={onClick:PropTypes.func.isRequired,className:PropTypes.string,size:PropTypes.oneOf(Object.values(CloseButton.Size)),filled:PropTypes.bool,"aria-label":PropTypes.string},CloseButton.defaultProps={className:null,size:CloseButton.Size.LARGE,filled:!1,"aria-label":void 0};export default CloseButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineMessages}from"react-intl";export default defineMessages({ariaLabel:{id:"neptune.CloseButton.ariaLabel"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./CloseButton";
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{formatDate}from"@transferwise/formatting";export function getDayNames(a){// 2018 started with Monday
|
|
2
|
+
for(var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"short",c=[],d=new Date(2018,0,1);7>c.length;)c.push(formatDate(d,a,{weekday:b})),d.setDate(d.getDate()+1);return c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{getDayNames}from"./getDayNames";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{formatDate}from"@transferwise/formatting";export var getMonthNames=function(a){for(var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"long",c=[],d=new Date(2018,0,1),e={month:b};12>c.length;)c.push(formatDate(d,a,e)),d.setMonth(d.getMonth()+1);return c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{getMonthNames}from"./getMonthNames";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{getDayNames}from"./getDayNames";export{moveToWithinRange}from"./moveToWithinRange";export{isWithinRange}from"./isWithinRange";export{getMonthNames}from"./getMonthNames";export{isDateValid}from"./isDateValid";export{isMonthAndYearFormat}from"./isMonthAndYearFormat";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{isDateValid,validDateString}from"./isDateValid";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var isDateValid=function(a){return validDateObject(a)||validDateString(a)};export var validDateString=function(a){return"string"==typeof a&&validDateObject(new Date(a))};var validDateObject=function(a){return a instanceof Date&&!isNaN(a)};// eslint-disable-line no-restricted-globals
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{isMonthAndYearFormat}from"./isMonthAndYearFormat";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.split.js";import{validDateString}from"../isDateValid";export var isMonthAndYearFormat=function(a){return validDateString(a)&&3>a.split("-").length};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{isWithinRange}from"./isWithinRange";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function isWithinRange(a,b,c){return!a||(!b||a>=b)&&(!c||a<=c)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{moveToWithinRange}from"./moveToWithinRange";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.array.join.js";import"core-js/modules/es.array.map.js";import"core-js/modules/es.regexp.constructor.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.regexp.to-string.js";import"core-js/modules/es.string.match.js";export function isIosDevice(){var a=["iphone","ipad","ipod"].map(function(a){return"(".concat(a,")")}).join("|"),b=new RegExp(a,"ig");return"undefined"!=typeof navigator&&!!navigator.userAgent.match(b)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{isIosDevice}from"./deviceDetection";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Direction;(function(a){a.RTL="rtl",a.LTR="ltr",a.AUTO="auto"})(Direction||(Direction={}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{isIosDevice}from"../deviceDetection";/*
|
|
2
|
+
This is a hack to make ios devices register `click` on document.
|
|
3
|
+
Ios document doesn't have `click`. It has `touch` and because of that we can't addEventListener('click') to document.
|
|
4
|
+
So we add `ios-click` class to html root element and in css we add {cursor: pointer} so ios devices know that document is clickable element.
|
|
5
|
+
*/export function addClickClassToDocumentOnIos(){isIosDevice()&&document.documentElement.classList.add("ios-click")}export function removeClickClassFromDocumentOnIos(){isIosDevice()&&document.documentElement.classList.remove("ios-click")}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"core-js/modules/es.array.concat.js";export function isServerSide(){return"undefined"==typeof window}export function isBrowser(){return!isServerSide()}export function stopPropagation(a){a.stopPropagation(),a.preventDefault(),a.nativeEvent&&a.nativeEvent.stopImmediatePropagation&&a.nativeEvent.stopImmediatePropagation()}export function getSimpleRandomId(a){var b=Math.ceil(999999*Math.random());return"".concat(a).concat(b)}export{addClickClassToDocumentOnIos,removeClickClassFromDocumentOnIos}from"./documentIosClick";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";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}export var fakeEvent=function(){return{nativeEvent:{stopImmediatePropagation:function stopImmediatePropagation(){}},stopPropagation:function stopPropagation(){},preventDefault:function preventDefault(){}}};export var fakeKeyDownEventForKey=function(a){return _objectSpread(_objectSpread({},fakeEvent()),{},{keyCode:a})};export var fakeKeyDownEvent=function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return _objectSpread(_objectSpread({},fakeEvent()),a)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var FileType;(function(a){a.PDF=".pdf,application/pdf",a.JPG=".jpg,.jpeg,image/jpeg",a.PNG=".png,image/png",a.CSV=".csv,text/csv"})(FileType||(FileType={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import classNames from"classnames";import PropTypes from"prop-types";import{forwardRef}from"react";import{Layout}from"../propsValues/layouts";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var FlowHeader=/*#__PURE__*/forwardRef(function(a,b){var c=a.bottomContent,d=a.className,e=a.layout,f=a.leftContent,g=a.rightContent,h=e===Layout.VERTICAL;return/*#__PURE__*/_jsxs("div",{ref:b,className:classNames("np-flow-header","d-flex","flex-wrap","align-items-center",d),children:[/*#__PURE__*/_jsx("div",{className:classNames("np-flow-header__left",{"flex__item--8":h}),children:f}),/*#__PURE__*/_jsx("div",{className:classNames("align-items-center","d-flex","np-flow-header__right","justify-content-end",{"flex__item--4 ":h,"order-2":!h}),children:g}),/*#__PURE__*/_jsx("div",{className:classNames("align-items-center","d-flex","justify-content-center",{"flex__item--12":h,"order-1 flex-grow-1":!h}),children:c})]})});FlowHeader.defaultProps={bottomContent:void 0,className:void 0,layout:Layout.HORIZONTAL,leftContent:void 0,rightContent:void 0},FlowHeader.propTypes={bottomContent:PropTypes.node,className:PropTypes.string,layout:PropTypes.oneOf(["HORIZONTAL","VERTICAL"]),leftContent:PropTypes.node,rightContent:PropTypes.node};export default FlowHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./FlowHeader";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isKey,isUndefined}from"@transferwise/neptune-validation";import PropTypes from"prop-types";import{useEffect,useRef}from"react";import{useConditionalListener}from"../hooks";import{Key}from"../key";import{getFocusableElements,resetFocus}from"./utils";import{jsx as _jsx}from"react/jsx-runtime";var TAB=Key.TAB,FocusBoundary=function(a){var b=a.children,c=useRef(),d=isUndefined(document)?void 0:document,e={};return useEffect(function(){c.current.focus(),e=getFocusableElements(c.current)},[]),useConditionalListener({eventType:"keydown",callback:function callback(a){return isKey({keyType:TAB,event:a})&&resetFocus({event:a,focusableEls:e})},attachListener:!0,parent:d}),/*#__PURE__*/_jsx("span",{ref:c,tabIndex:-1,className:"np-focus-boundary outline-none",children:b})};FocusBoundary.propTypes={children:PropTypes.node};export default FocusBoundary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./FocusBoundary";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";/**
|
|
2
|
+
* This function returns the first and the last focusable elements within a node.
|
|
3
|
+
*
|
|
4
|
+
* @param {Node} focusBoundaryContainer - the area that contains focused elements.
|
|
5
|
+
* @returns {object} focusableEls - which contains the first focusable element and the last focusable element. First and last can be the same element if area contains one or none focusable element.
|
|
6
|
+
*/export var getFocusableElements=function(a){var b={first:a,last:a};if(null!==a&&void 0!==a&&a.querySelectorAll){var d=_toConsumableArray(a.querySelectorAll("a, button, input, textarea, select, details,[tabindex]:not([tabindex=\"-1\"])")).filter(function(a){return!a.hasAttribute("disabled")});if(0<d.length){var c=_slicedToArray(d,1);b.first=c[0],b.last=d[d.length-1]}}return b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{getFocusableElements}from"./getFocusableElements";export{resetFocus}from"./resetFocus";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function resets the focus to either last of first focusable elements within a node.
|
|
3
|
+
*
|
|
4
|
+
* @param {object} focusableEls - contains the first last of first focusable elements within a node.
|
|
5
|
+
* @param {object} event - the triggered event
|
|
6
|
+
*/export var resetFocus=function(a){var b=a.focusableEls,c=b.first,d=b.last,e=a.event,f=document,g=f.activeElement;e.shiftKey&&g===c&&(d&&d.focus(),e.preventDefault()),e.shiftKey||g!==d||(c&&c.focus(),e.preventDefault())};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _createClass from"@babel/runtime/helpers/createClass";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _defineProperty from"@babel/runtime/helpers/defineProperty";var HistoryNavigator=/*#__PURE__*/_createClass(function a(){var b=this,c=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[],d=1<arguments.length&&arguments[1]!==void 0?arguments[1]:null;_classCallCheck(this,a),_defineProperty(this,"reset",function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[""],c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:20;b.history=a,b.currIndex=0<a.length-1?a.length-1:0,b.historyLimit=c}),_defineProperty(this,"add",function(a){!b.historyLimit||b.history.length<=b.historyLimit?(b.history.push(a),b.currIndex=b.history.length-1):b.currIndex=b.history.length-1}),_defineProperty(this,"redo",function(){var a=b.history.length;return b.currIndex=b.currIndex+1<a?b.currIndex+1:a-1,b.history[b.currIndex]}),_defineProperty(this,"undo",function(){return b.currIndex=0<b.currIndex-1?b.currIndex-1:0,b.history[b.currIndex]}),this.history=c&&0<c.length?c:[""],this.currIndex=this.history.length-1,this.historyLimit=d});export default HistoryNavigator;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./historyNavigator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default as useClientWidth}from"./useClientWidth";export{default as useConditionalListener}from"./useConditionalListener";export{default as useDirection}from"./useDirection";export{default as useHasIntersected}from"./useHasIntersected";export{default as useLayout}from"./useLayout";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{useClientWidth as default}from"./useClientWidth";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import throttle from"lodash.throttle";import{useLayoutEffect,useState,useEffect}from"react";var THROTTLE_MS=100,useIsomorphicLayoutEffect="undefined"==typeof window?useEffect:useLayoutEffect;export var useClientWidth=function(a){var b=a.ref,c=a.throttleMs,d=void 0===c?THROTTLE_MS:c,e=useState(null),f=_slicedToArray(e,2),g=f[0],h=f[1];return useIsomorphicLayoutEffect(function(){// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
2
|
+
var a=function(){b&&(b.innerWidth?h(b.innerWidth):b.current&&h(b.current.clientWidth))},c=throttle(a,d);// This assignment saves a reference to the function so it will be the same passed to both addEventListener removeEventListener.
|
|
3
|
+
// If throttle gets passed directly to both add and removeEventListenet the results will be that the event
|
|
4
|
+
// won't get removed even if the component is unmounted.
|
|
5
|
+
return window.addEventListener("resize",c,!0),window.requestAnimationFrame(a),function(){return window.removeEventListener("resize",c,!0)}},[]),[g]};useClientWidth.THROTTLE_MS=100;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{useConditionalListener as default}from"./useConditionalListener";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @ts-expect-error remove this when `@transferwise/neptune-validation` provides types
|
|
2
|
+
import{isUndefined}from"@transferwise/neptune-validation";import{useEffect}from"react";export var useConditionalListener=function(a){var b=a.attachListener,c=a.callback,d=a.eventType,e=a.parent;useEffect(function(){return b&&// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
3
|
+
!isUndefined(e)&&e.addEventListener(d,c,!0),function(){isUndefined(e)||e.removeEventListener(d,c,!0)}},[b,c,d,e])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{useDirection as default}from"./useDirection";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useContext}from"react";import{DirectionContext}from"../../../provider/direction/DirectionProvider";export var useDirection=function(){var a=useContext(DirectionContext);return{direction:a,isRTL:"rtl"===a}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{useHasIntersected as default}from"./useHasIntersected";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import{useEffect,useState}from"react";var ObserverParams={threshold:.1};/**
|
|
2
|
+
* useHasIntersected.
|
|
3
|
+
* Use this custom hook to detect when an element has became visible inside the viewport. This hook checks only if the intersection happend.
|
|
4
|
+
* Once the intersection has happened the hook will not return false even if the element gets out of the viewport.
|
|
5
|
+
*
|
|
6
|
+
* @param elRef.elRef
|
|
7
|
+
* @param {object} [elRef] - node object that contains a react reference to the element that needs to be observed.
|
|
8
|
+
* @param {strimng} [loading = 'eager'] - string that contains the type of loading.
|
|
9
|
+
* @param elRef.loading
|
|
10
|
+
* @usage `const [hasIntersected] = useHasIntersected({imageRef,loading});`
|
|
11
|
+
*/export var useHasIntersected=function(a){var b=a.elRef,c=a.loading,d=useState(!1),e=_slicedToArray(d,2),f=e[0],g=e[1],h=(b||{}).current,i=function(){return b&&h},j=function(a,b){a.forEach(function(a){a.isIntersecting&&(g(!0),b.unobserve(h))})};return useEffect(function(){var a,b=!1;return"undefined"!=typeof window&&window.IntersectionObserver&&i()?!b&&(a=new IntersectionObserver(j,ObserverParams),a.observe(h)):g(!0),function(){b=!0,a&&a.unobserve(h)}},[b]),"eager"===c?[!1]:[f]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{useLayout as default}from"./useLayout";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import{useEffect,useState}from"react";import{Breakpoint}from"../../propsValues/breakpoint";import useClientWidth from"../useClientWidth";export var useLayout=function(){var a="undefined"==typeof window?void 0:window,b=useState(),c=_slicedToArray(b,2),d=c[0],e=c[1],f=useClientWidth({ref:a}),g=_slicedToArray(f,1),h=g[0];return useEffect(function(){return h?h<=Breakpoint.EXTRA_SMALL?void e(Breakpoint.EXTRA_SMALL):Breakpoint.EXTRA_SMALL<h&&h<=Breakpoint.SMALL?void e(Breakpoint.SMALL):Breakpoint.SMALL<h&&h<=Breakpoint.MEDIUM?void e(Breakpoint.MEDIUM):Breakpoint.MEDIUM<h&&h<=Breakpoint.LARGE?void e(Breakpoint.LARGE):void(Breakpoint.LARGE<h&&e(Breakpoint.EXTRA_LARGE)):void 0},[h]),{isMobile:!!d&&[Breakpoint.EXTRA_SMALL,Breakpoint.SMALL].includes(d),isExtraSmall:d===Breakpoint.EXTRA_SMALL,isSmall:d===Breakpoint.SMALL,isMedium:d===Breakpoint.MEDIUM,isLarge:d===Breakpoint.LARGE,isExtraLarge:d===Breakpoint.EXTRA_LARGE}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{default as HistoryNavigator}from"./historyNavigator";export*from"./domHelpers";export{addNoScrollBodyClass,removeNoScrollBodyClass}from"./DOMOperations";export*from"./theme";export*from"./direction";// Props
|
|
2
|
+
export*from"./propsValues/control";export{Breakpoint}from"./propsValues/breakpoint";export*from"./propsValues/size";export*from"./propsValues/typography";export*from"./propsValues/width";export{Type}from"./propsValues/type";export{DateMode}from"./propsValues/dateMode";export{MonthFormat}from"./propsValues/monthFormat";export*from"./propsValues/position";export{Layout}from"./propsValues/layouts";export{Status}from"./propsValues/status";export{Sentiment}from"./propsValues/sentiment";export{ProfileType}from"./propsValues/profileType";export{Variant}from"./propsValues/variant";export*from"./propsValues/scroll";export{MarkdownNodeType}from"./propsValues/markdownNodeType";export{FileType}from"./fileType";export{Key}from"./key";export*from"./locale";export*from"./commonProps";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Key={ENTER:"Enter",ESCAPE:"Escape",SPACE:[" ","Spacebar"],TAB:"Tab",PERIOD:".",COMMA:","};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import"core-js/modules/es.string.trim.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.array.includes.js";import{Direction}from"..";/**
|
|
2
|
+
* Default language
|
|
3
|
+
*
|
|
4
|
+
* @type {string}
|
|
5
|
+
*/export var DEFAULT_LANG="en";/**
|
|
6
|
+
* Default locale
|
|
7
|
+
*
|
|
8
|
+
* @type {string}
|
|
9
|
+
*/export var DEFAULT_LOCALE="en-GB";/**
|
|
10
|
+
* Array of languages that are written from the right to the left
|
|
11
|
+
*
|
|
12
|
+
* @type {string[]}
|
|
13
|
+
*/export var RTL_LANGUAGES=["ar","he"];export var SUPPORTED_LANGUAGES=["en","de","es","fr","hu","id","it","ja","pl","pt","ro","ru","th","tr","uk","zh"];/**
|
|
14
|
+
* Verifies and adjusts locale (replace `_` with `-`)
|
|
15
|
+
* Returns null if locale is unrecognized by {Intl.Locale}
|
|
16
|
+
*
|
|
17
|
+
* @param {string} locale (`es`, `es_ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
|
|
18
|
+
* @returns {string|null}
|
|
19
|
+
*/export function adjustLocale(a){if(!a||0===a.trim().length)return null;try{var b=new Intl.Locale(a.trim().replace("_","-")),c=b.baseName;return c}catch(a){return console.error(a),null}}/**
|
|
20
|
+
* Provides corresponding lang (iso2) for provided locale
|
|
21
|
+
* if locale is invalid or language is unsupported returns null
|
|
22
|
+
*
|
|
23
|
+
* @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
|
|
24
|
+
* @returns {string|null}
|
|
25
|
+
*/export function getLangFromLocale(a){var b=adjustLocale(a);if(null===b)return null;try{var c=new Intl.Locale(b),d=c.language;return SUPPORTED_LANGUAGES.includes(d)?d:null}catch(a){return console.error(a),null}}/**
|
|
26
|
+
* Provides corresponding country code (iso2) for locales code with explicit region value (`es-ES`, `en-GB`, `ja-JP` etc.)
|
|
27
|
+
* if the value is invalid or missing region it returns null
|
|
28
|
+
*
|
|
29
|
+
* @param {string} locale
|
|
30
|
+
* @returns {string|null}
|
|
31
|
+
*/export function getCountryFromLocale(a){var b=adjustLocale(a);if(null===b)return null;try{var c=new Intl.Locale(b),d=c.region;return null!==d&&void 0!==d?d:null}catch(a){return console.error(a),null}}/**
|
|
32
|
+
* Provides the layout direction for a given locale.
|
|
33
|
+
* If locale is invalid or language is unsupported returns Direction.LTR
|
|
34
|
+
*
|
|
35
|
+
* @param {string} locale (`es`, `es-ES`, `en-GB`, `en`, `ja`, `ja-JP` etc)
|
|
36
|
+
* @returns {Direction} The layout direction based on the locale
|
|
37
|
+
*/export function getDirectionFromLocale(a){try{var b=adjustLocale(a),c=new Intl.Locale(b),d=c.language;return RTL_LANGUAGES.includes(d)?Direction.RTL:Direction.LTR}catch(a){return console.error(a),Direction.LTR}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/defineProperty";import"core-js/modules/es.object.keys.js";import"core-js/modules/es.symbol.js";import"core-js/modules/es.array.filter.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.object.get-own-property-descriptor.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.get-own-property-descriptors.js";var _fallbackPlacements,_excluded=["arrow","flip","altAxis","children","open","onClose","position","anchorRef","anchorWidth"];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{useState,forwardRef,useEffect}from"react";import{usePopper}from"react-popper";import{Position}from"..";import Dimmer from"../../dimmer";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var POPOVER_OFFSET=[0,16],fallbackPlacements=(_fallbackPlacements={},_defineProperty(_fallbackPlacements,Position.TOP,[Position.BOTTOM,Position.RIGHT,Position.LEFT]),_defineProperty(_fallbackPlacements,Position.BOTTOM,[Position.TOP,Position.RIGHT,Position.LEFT]),_defineProperty(_fallbackPlacements,Position.LEFT,[Position.RIGHT,Position.TOP,Position.BOTTOM]),_defineProperty(_fallbackPlacements,Position.RIGHT,[Position.LEFT,Position.TOP,Position.BOTTOM]),_fallbackPlacements),Panel=/*#__PURE__*/forwardRef(function(a,b){var c,d=a.arrow,e=void 0!==d&&d,f=a.flip,g=a.altAxis,h=a.children,i=a.open,j=void 0!==i&&i,k=a.onClose,l=a.position,m=void 0===l?Position.BOTTOM:l,n=a.anchorRef,o=a.anchorWidth,p=_objectWithoutProperties(a,_excluded),q=useState(null),r=_slicedToArray(q,2),s=r[0],t=r[1],u=useState(null),v=_slicedToArray(u,2),w=v[0],x=v[1],y=[];void 0!==g&&g&&y.push({// https://popper.js.org/docs/v2/modifiers/prevent-overflow
|
|
2
|
+
name:"preventOverflow",options:{altAxis:!0,tether:!1}}),e&&(y.push({name:"arrow",options:{element:s,options:{padding:8// 8px from the edges of the popper
|
|
3
|
+
}}}),y.push({name:"offset",options:{offset:POPOVER_OFFSET}})),(!(void 0!==f)||f)&&fallbackPlacements[m]&&y.push({name:"flip",options:{fallbackPlacements:fallbackPlacements[m]}});var z=usePopper(n.current,w,{placement:m,modifiers:y}),A=z.styles,B=z.attributes,C=z.forceUpdate;// If the trigger is not visible when the position is calculated, it will be incorrect. Because this can happen repeatedly (on resize for example),
|
|
4
|
+
// it is most simple just to always position before opening
|
|
5
|
+
useEffect(function(){j&&C&&C()},[j]);var D=_objectSpread({},void 0!==o&&o?{width:null===(c=n.current)||void 0===c?void 0:c.clientWidth}:void 0);return/*#__PURE__*/_jsx(Dimmer,{open:j,transparent:!0,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:k,children:/*#__PURE__*/_jsx("div",_objectSpread(_objectSpread(_objectSpread({},p),{},{ref:x// eslint-disable-next-line react/forbid-dom-props
|
|
6
|
+
,style:_objectSpread({},A.popper)},B.popper),{},{className:classnames("np-panel",{"np-panel--open":j},p.className),children:/*#__PURE__*/_jsxs("div",{ref:b/* eslint-disable-next-line react/forbid-dom-props */,style:D,className:classnames("np-panel__content"),children:[h,e&&/*#__PURE__*/_jsx("div",{ref:t,className:classnames("np-panel__arrow")// eslint-disable-next-line react/forbid-dom-props
|
|
7
|
+
,style:A.arrow})]})}))})});// By default the flip positioning explores only the opposite alternative. So if left is passed and there's no enough space
|
|
8
|
+
// the right one gets chosen. If there's no space on both sides popover goes back to the initially chosen one left.
|
|
9
|
+
// This mapping forces popover to try the four available positions before going back to the initial chosen one.
|
|
10
|
+
export default Panel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{default}from"./Panel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Breakpoint;(function(a){a[a.EXTRA_SMALL=480]="EXTRA_SMALL",a[a.SMALL=576]="SMALL",a[a.MEDIUM=768]="MEDIUM",a[a.LARGE=992]="LARGE",a[a.EXTRA_LARGE=1200]="EXTRA_LARGE"})(Breakpoint||(Breakpoint={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ControlType;(function(a){a.ACCENT="accent",a.POSITIVE="positive",a.NEGATIVE="negative"})(ControlType||(ControlType={}));export var Priority;(function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.TERTIARY="tertiary"})(Priority||(Priority={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var DateMode;(function(a){a.DAY_MONTH_YEAR="day-month-year",a.MONTH_YEAR="month-year"})(DateMode||(DateMode={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Layout;(function(a){a.VERTICAL="VERTICAL",a.VERTICAL_TWO_COLUMN="VERTICAL_TWO_COLUMN",a.VERTICAL_ONE_COLUMN="VERTICAL_ONE_COLUMN",a.HORIZONTAL="HORIZONTAL",a.HORIZONTAL_JUSTIFIED="HORIZONTAL_JUSTIFIED",a.HORIZONTAL_LEFT_ALIGNED="HORIZONTAL_LEFT_ALIGNED",a.HORIZONTAL_RIGHT_ALIGNED="HORIZONTAL_RIGHT_ALIGNED"})(Layout||(Layout={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MarkdownNodeType;(function(a){a.BLOCK_QUOTE="block_quote",a.CODE_BLOCK="code_block",a.CODE="code",a.EMPH="emph",a.HEADING="heading",a.HTML_BLOCK="html_block",a.HTML_INLINE="html_inline",a.IMAGE="image",a.ITEM="item",a.LINEBREAK="linebreak",a.LINK="link",a.LIST="list",a.PARAGRAPH="paragraph",a.SOFTBREAK="softbreak",a.STRONG="strong",a.THEMATIC_BREAK="thematic_break"})(MarkdownNodeType||(MarkdownNodeType={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MonthFormat;(function(a){a.SHORT="short",a.LONG="long"})(MonthFormat||(MonthFormat={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Position;(function(a){a.BOTTOM="bottom",a.BOTTOM_LEFT="bottom-left",a.BOTTOM_RIGHT="bottom-right",a.CENTER="center",a.LEFT="left",a.LEFT_TOP="left-top",a.RIGHT="right",a.RIGHT_TOP="right-top",a.TOP="top"})(Position||(Position={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var ProfileType;(function(a){a.BUSINESS="BUSINESS",a.PERSONAL="PERSONAL"})(ProfileType||(ProfileType={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Scroll;(function(a){a.CONTENT="content",a.VIEWPORT="viewport"})(Scroll||(Scroll={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Sentiment;(function(a){a.NEGATIVE="negative",a.NEUTRAL="neutral",a.POSITIVE="positive",a.WARNING="warning",a.PENDING="pending",a.INFO="info",a.ERROR="error",a.SUCCESS="success"})(Sentiment||(Sentiment={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Size;(function(a){a.EXTRA_SMALL="xs",a.SMALL="sm",a.MEDIUM="md",a.LARGE="lg",a.EXTRA_LARGE="xl"})(Size||(Size={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Status;(function(a){a.PROCESSING="processing",a.FAILED="failed",a.SUCCEEDED="succeeded",a.HIDDEN="hidden",a.DONE="done",a.NOT_DONE="notDone",a.PENDING="pending"})(Status||(Status={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Typography;(function(a){a.DISPLAY_EXTRA_LARGE="display-extra-large",a.DISPLAY_LARGE="display-large",a.DISPLAY_MEDIUM="display-medium",a.DISPLAY_SMALL="display-small",a.TITLE_SCREEN="title-screen",a.TITLE_SECTION="title-section",a.TITLE_SUBSECTION="title-subsection",a.TITLE_BODY="title-body",a.TITLE_GROUP="title-group",a.BODY_LARGE="body-large",a.BODY_DEFAULT="body-default",a.BODY_DEFAULT_BOLD="body-default-bold",a.BODY_LARGE_BOLD="body-large-bold",a.LINK_LARGE="link-large",a.LINK_DEFAULT="link-default"})(Typography||(Typography={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Variant;(function(a){a.DESKTOP="desktop",a.MOBILE="mobile"})(Variant||(Variant={}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var Width;(function(a){a.BLOCK="block",a.AUTO="auto"})(Width||(Width={}));
|