@transferwise/components 0.0.0-experimental-a0f3d2d → 0.0.0-experimental-693e956
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +14846 -283
- package/build/index.js.map +1 -1
- package/build/index.mjs +14767 -120
- package/build/index.mjs.map +1 -1
- package/build/main.css +10 -0
- package/build/styles/main.css +10 -0
- package/build/styles/uploadInput/UploadInput.css +10 -0
- package/build/types/uploadInput/types.d.ts +9 -1
- package/build/types/uploadInput/types.d.ts.map +1 -1
- package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/main.css +10 -0
- package/src/uploadInput/UploadInput.css +10 -0
- package/src/uploadInput/UploadInput.less +11 -0
- package/src/uploadInput/UploadInput.story.tsx +50 -7
- package/src/uploadInput/types.ts +11 -1
- package/src/uploadInput/uploadItem/UploadItem.tsx +25 -6
- package/build/accordion/Accordion.js +0 -40
- package/build/accordion/Accordion.js.map +0 -1
- package/build/accordion/Accordion.mjs +0 -38
- package/build/accordion/Accordion.mjs.map +0 -1
- package/build/accordion/AccordionItem/AccordionItem.js +0 -70
- package/build/accordion/AccordionItem/AccordionItem.js.map +0 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs +0 -64
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +0 -1
- package/build/actionButton/ActionButton.js +0 -31
- package/build/actionButton/ActionButton.js.map +0 -1
- package/build/actionButton/ActionButton.mjs +0 -25
- package/build/actionButton/ActionButton.mjs.map +0 -1
- package/build/actionOption/ActionOption.js +0 -61
- package/build/actionOption/ActionOption.js.map +0 -1
- package/build/actionOption/ActionOption.mjs +0 -55
- package/build/actionOption/ActionOption.mjs.map +0 -1
- package/build/alert/Alert.js +0 -159
- package/build/alert/Alert.js.map +0 -1
- package/build/alert/Alert.mjs +0 -151
- package/build/alert/Alert.mjs.map +0 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js +0 -30
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +0 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs +0 -24
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +0 -1
- package/build/avatar/Avatar.js +0 -54
- package/build/avatar/Avatar.js.map +0 -1
- package/build/avatar/Avatar.mjs +0 -48
- package/build/avatar/Avatar.mjs.map +0 -1
- package/build/avatar/avatarTypes.js +0 -11
- package/build/avatar/avatarTypes.js.map +0 -1
- package/build/avatar/avatarTypes.mjs +0 -11
- package/build/avatar/avatarTypes.mjs.map +0 -1
- package/build/avatar/colors/colors.js +0 -31
- package/build/avatar/colors/colors.js.map +0 -1
- package/build/avatar/colors/colors.mjs +0 -29
- package/build/avatar/colors/colors.mjs.map +0 -1
- package/build/avatarWrapper/AvatarWrapper.js +0 -120
- package/build/avatarWrapper/AvatarWrapper.js.map +0 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +0 -118
- package/build/avatarWrapper/AvatarWrapper.mjs.map +0 -1
- package/build/avatarWrapper/index.js +0 -8
- package/build/avatarWrapper/index.js.map +0 -1
- package/build/avatarWrapper/index.mjs +0 -6
- package/build/avatarWrapper/index.mjs.map +0 -1
- package/build/badge/Badge.js +0 -36
- package/build/badge/Badge.js.map +0 -1
- package/build/badge/Badge.mjs +0 -30
- package/build/badge/Badge.mjs.map +0 -1
- package/build/body/Body.js +0 -31
- package/build/body/Body.js.map +0 -1
- package/build/body/Body.mjs +0 -25
- package/build/body/Body.mjs.map +0 -1
- package/build/button/Button.js +0 -86
- package/build/button/Button.js.map +0 -1
- package/build/button/Button.messages.js +0 -12
- package/build/button/Button.messages.js.map +0 -1
- package/build/button/Button.messages.mjs +0 -10
- package/build/button/Button.messages.mjs.map +0 -1
- package/build/button/Button.mjs +0 -80
- package/build/button/Button.mjs.map +0 -1
- package/build/button/classMap.js +0 -18
- package/build/button/classMap.js.map +0 -1
- package/build/button/classMap.mjs +0 -15
- package/build/button/classMap.mjs.map +0 -1
- package/build/button/legacyUtils/legacyUtils.js +0 -54
- package/build/button/legacyUtils/legacyUtils.js.map +0 -1
- package/build/button/legacyUtils/legacyUtils.mjs +0 -50
- package/build/button/legacyUtils/legacyUtils.mjs.map +0 -1
- package/build/card/Card.js +0 -95
- package/build/card/Card.js.map +0 -1
- package/build/card/Card.mjs +0 -87
- package/build/card/Card.mjs.map +0 -1
- package/build/carousel/Carousel.js +0 -282
- package/build/carousel/Carousel.js.map +0 -1
- package/build/carousel/Carousel.mjs +0 -276
- package/build/carousel/Carousel.mjs.map +0 -1
- package/build/checkbox/Checkbox.js +0 -97
- package/build/checkbox/Checkbox.js.map +0 -1
- package/build/checkbox/Checkbox.mjs +0 -90
- package/build/checkbox/Checkbox.mjs.map +0 -1
- package/build/checkbox/index.js +0 -8
- package/build/checkbox/index.js.map +0 -1
- package/build/checkbox/index.mjs +0 -6
- package/build/checkbox/index.mjs.map +0 -1
- package/build/checkboxButton/CheckboxButton.js +0 -36
- package/build/checkboxButton/CheckboxButton.js.map +0 -1
- package/build/checkboxButton/CheckboxButton.mjs +0 -30
- package/build/checkboxButton/CheckboxButton.mjs.map +0 -1
- package/build/checkboxOption/CheckboxOption.js +0 -27
- package/build/checkboxOption/CheckboxOption.js.map +0 -1
- package/build/checkboxOption/CheckboxOption.mjs +0 -25
- package/build/checkboxOption/CheckboxOption.mjs.map +0 -1
- package/build/chevron/Chevron.js +0 -60
- package/build/chevron/Chevron.js.map +0 -1
- package/build/chevron/Chevron.mjs +0 -54
- package/build/chevron/Chevron.mjs.map +0 -1
- package/build/chips/Chip.js +0 -71
- package/build/chips/Chip.js.map +0 -1
- package/build/chips/Chip.mjs +0 -65
- package/build/chips/Chip.mjs.map +0 -1
- package/build/chips/Chips.js +0 -62
- package/build/chips/Chips.js.map +0 -1
- package/build/chips/Chips.messages.js +0 -12
- package/build/chips/Chips.messages.js.map +0 -1
- package/build/chips/Chips.messages.mjs +0 -10
- package/build/chips/Chips.messages.mjs.map +0 -1
- package/build/chips/Chips.mjs +0 -56
- package/build/chips/Chips.mjs.map +0 -1
- package/build/circularButton/CircularButton.js +0 -46
- package/build/circularButton/CircularButton.js.map +0 -1
- package/build/circularButton/CircularButton.mjs +0 -40
- package/build/circularButton/CircularButton.mjs.map +0 -1
- package/build/common/DOMOperations/DOMOperations.js +0 -24
- package/build/common/DOMOperations/DOMOperations.js.map +0 -1
- package/build/common/DOMOperations/DOMOperations.mjs +0 -21
- package/build/common/DOMOperations/DOMOperations.mjs.map +0 -1
- package/build/common/Option/Option.js +0 -71
- package/build/common/Option/Option.js.map +0 -1
- package/build/common/Option/Option.mjs +0 -65
- package/build/common/Option/Option.mjs.map +0 -1
- package/build/common/RadioButton/RadioButton.js +0 -46
- package/build/common/RadioButton/RadioButton.js.map +0 -1
- package/build/common/RadioButton/RadioButton.mjs +0 -40
- package/build/common/RadioButton/RadioButton.mjs.map +0 -1
- package/build/common/action/Action.js +0 -37
- package/build/common/action/Action.js.map +0 -1
- package/build/common/action/Action.mjs +0 -31
- package/build/common/action/Action.mjs.map +0 -1
- package/build/common/bottomSheet/BottomSheet.js +0 -194
- package/build/common/bottomSheet/BottomSheet.js.map +0 -1
- package/build/common/bottomSheet/BottomSheet.mjs +0 -188
- package/build/common/bottomSheet/BottomSheet.mjs.map +0 -1
- package/build/common/card/Card.js +0 -49
- package/build/common/card/Card.js.map +0 -1
- package/build/common/card/Card.mjs +0 -43
- package/build/common/card/Card.mjs.map +0 -1
- package/build/common/closeButton/CloseButton.js +0 -46
- package/build/common/closeButton/CloseButton.js.map +0 -1
- package/build/common/closeButton/CloseButton.messages.js +0 -12
- package/build/common/closeButton/CloseButton.messages.js.map +0 -1
- package/build/common/closeButton/CloseButton.messages.mjs +0 -10
- package/build/common/closeButton/CloseButton.messages.mjs.map +0 -1
- package/build/common/closeButton/CloseButton.mjs +0 -40
- package/build/common/closeButton/CloseButton.mjs.map +0 -1
- package/build/common/dateUtils/getDayNames/getDayNames.js +0 -18
- package/build/common/dateUtils/getDayNames/getDayNames.js.map +0 -1
- package/build/common/dateUtils/getDayNames/getDayNames.mjs +0 -16
- package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +0 -1
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js +0 -8
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js.map +0 -1
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs +0 -5
- package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs.map +0 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.js +0 -19
- package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +0 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.mjs +0 -17
- package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +0 -1
- package/build/common/dateUtils/isDateValid/isDateValid.js +0 -17
- package/build/common/dateUtils/isDateValid/isDateValid.js.map +0 -1
- package/build/common/dateUtils/isDateValid/isDateValid.mjs +0 -14
- package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +0 -1
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -8
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js.map +0 -1
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs +0 -6
- package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs.map +0 -1
- package/build/common/dateUtils/isWithinRange/isWithinRange.js +0 -8
- package/build/common/dateUtils/isWithinRange/isWithinRange.js.map +0 -1
- package/build/common/dateUtils/isWithinRange/isWithinRange.mjs +0 -6
- package/build/common/dateUtils/isWithinRange/isWithinRange.mjs.map +0 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -15
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +0 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs +0 -13
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +0 -1
- package/build/common/deviceDetection/deviceDetection.js +0 -11
- package/build/common/deviceDetection/deviceDetection.js.map +0 -1
- package/build/common/deviceDetection/deviceDetection.mjs +0 -9
- package/build/common/deviceDetection/deviceDetection.mjs.map +0 -1
- package/build/common/direction.js +0 -9
- package/build/common/direction.js.map +0 -1
- package/build/common/direction.mjs +0 -9
- package/build/common/direction.mjs.map +0 -1
- package/build/common/domHelpers/documentIosClick.js +0 -39
- package/build/common/domHelpers/documentIosClick.js.map +0 -1
- package/build/common/domHelpers/documentIosClick.mjs +0 -33
- package/build/common/domHelpers/documentIosClick.mjs.map +0 -1
- package/build/common/fileType.js +0 -10
- package/build/common/fileType.js.map +0 -1
- package/build/common/fileType.mjs +0 -10
- package/build/common/fileType.mjs.map +0 -1
- package/build/common/flowHeader/FlowHeader.js +0 -53
- package/build/common/flowHeader/FlowHeader.js.map +0 -1
- package/build/common/flowHeader/FlowHeader.mjs +0 -28
- package/build/common/flowHeader/FlowHeader.mjs.map +0 -1
- package/build/common/focusBoundary/FocusBoundary.js +0 -28
- package/build/common/focusBoundary/FocusBoundary.js.map +0 -1
- package/build/common/focusBoundary/FocusBoundary.mjs +0 -26
- package/build/common/focusBoundary/FocusBoundary.mjs.map +0 -1
- package/build/common/historyNavigator/historyNavigator.js +0 -39
- package/build/common/historyNavigator/historyNavigator.js.map +0 -1
- package/build/common/historyNavigator/historyNavigator.mjs +0 -37
- package/build/common/historyNavigator/historyNavigator.mjs.map +0 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.js +0 -25
- package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +0 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.mjs +0 -23
- package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +0 -1
- package/build/common/hooks/useDirection/useDirection.js +0 -15
- package/build/common/hooks/useDirection/useDirection.js.map +0 -1
- package/build/common/hooks/useDirection/useDirection.mjs +0 -13
- package/build/common/hooks/useDirection/useDirection.mjs.map +0 -1
- package/build/common/hooks/useEffectEvent.js +0 -22
- package/build/common/hooks/useEffectEvent.js.map +0 -1
- package/build/common/hooks/useEffectEvent.mjs +0 -20
- package/build/common/hooks/useEffectEvent.mjs.map +0 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js +0 -64
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +0 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +0 -62
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +0 -1
- package/build/common/hooks/useLayout/useLayout.js +0 -26
- package/build/common/hooks/useLayout/useLayout.js.map +0 -1
- package/build/common/hooks/useLayout/useLayout.mjs +0 -24
- package/build/common/hooks/useLayout/useLayout.mjs.map +0 -1
- package/build/common/hooks/useMedia.js +0 -16
- package/build/common/hooks/useMedia.js.map +0 -1
- package/build/common/hooks/useMedia.mjs +0 -14
- package/build/common/hooks/useMedia.mjs.map +0 -1
- package/build/common/hooks/useResizeObserver.js +0 -25
- package/build/common/hooks/useResizeObserver.js.map +0 -1
- package/build/common/hooks/useResizeObserver.mjs +0 -23
- package/build/common/hooks/useResizeObserver.mjs.map +0 -1
- package/build/common/hooks/useScreenSize.js +0 -10
- package/build/common/hooks/useScreenSize.js.map +0 -1
- package/build/common/hooks/useScreenSize.mjs +0 -8
- package/build/common/hooks/useScreenSize.mjs.map +0 -1
- package/build/common/locale/index.js +0 -85
- package/build/common/locale/index.js.map +0 -1
- package/build/common/locale/index.mjs +0 -76
- package/build/common/locale/index.mjs.map +0 -1
- package/build/common/panel/Panel.js +0 -133
- package/build/common/panel/Panel.js.map +0 -1
- package/build/common/panel/Panel.mjs +0 -127
- package/build/common/panel/Panel.mjs.map +0 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js +0 -21
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +0 -1
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs +0 -19
- package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +0 -1
- package/build/common/preventScroll/PreventScroll.js +0 -11
- package/build/common/preventScroll/PreventScroll.js.map +0 -1
- package/build/common/preventScroll/PreventScroll.mjs +0 -9
- package/build/common/preventScroll/PreventScroll.mjs.map +0 -1
- package/build/common/propsValues/breakpoint.js +0 -12
- package/build/common/propsValues/breakpoint.js.map +0 -1
- package/build/common/propsValues/breakpoint.mjs +0 -12
- package/build/common/propsValues/breakpoint.mjs.map +0 -1
- package/build/common/propsValues/control.js +0 -15
- package/build/common/propsValues/control.js.map +0 -1
- package/build/common/propsValues/control.mjs +0 -15
- package/build/common/propsValues/control.mjs.map +0 -1
- package/build/common/propsValues/dateMode.js +0 -8
- package/build/common/propsValues/dateMode.js.map +0 -1
- package/build/common/propsValues/dateMode.mjs +0 -8
- package/build/common/propsValues/dateMode.mjs.map +0 -1
- package/build/common/propsValues/layouts.js +0 -13
- package/build/common/propsValues/layouts.js.map +0 -1
- package/build/common/propsValues/layouts.mjs +0 -13
- package/build/common/propsValues/layouts.mjs.map +0 -1
- package/build/common/propsValues/markdownNodeType.js +0 -22
- package/build/common/propsValues/markdownNodeType.js.map +0 -1
- package/build/common/propsValues/markdownNodeType.mjs +0 -22
- package/build/common/propsValues/markdownNodeType.mjs.map +0 -1
- package/build/common/propsValues/monthFormat.js +0 -8
- package/build/common/propsValues/monthFormat.js.map +0 -1
- package/build/common/propsValues/monthFormat.mjs +0 -8
- package/build/common/propsValues/monthFormat.mjs.map +0 -1
- package/build/common/propsValues/position.js +0 -15
- package/build/common/propsValues/position.js.map +0 -1
- package/build/common/propsValues/position.mjs +0 -15
- package/build/common/propsValues/position.mjs.map +0 -1
- package/build/common/propsValues/profileType.js +0 -8
- package/build/common/propsValues/profileType.js.map +0 -1
- package/build/common/propsValues/profileType.mjs +0 -8
- package/build/common/propsValues/profileType.mjs.map +0 -1
- package/build/common/propsValues/scroll.js +0 -8
- package/build/common/propsValues/scroll.js.map +0 -1
- package/build/common/propsValues/scroll.mjs +0 -8
- package/build/common/propsValues/scroll.mjs.map +0 -1
- package/build/common/propsValues/sentiment.js +0 -23
- package/build/common/propsValues/sentiment.js.map +0 -1
- package/build/common/propsValues/sentiment.mjs +0 -23
- package/build/common/propsValues/sentiment.mjs.map +0 -1
- package/build/common/propsValues/size.js +0 -11
- package/build/common/propsValues/size.js.map +0 -1
- package/build/common/propsValues/size.mjs +0 -11
- package/build/common/propsValues/size.mjs.map +0 -1
- package/build/common/propsValues/status.js +0 -13
- package/build/common/propsValues/status.js.map +0 -1
- package/build/common/propsValues/status.mjs +0 -13
- package/build/common/propsValues/status.mjs.map +0 -1
- package/build/common/propsValues/type.js +0 -17
- package/build/common/propsValues/type.js.map +0 -1
- package/build/common/propsValues/type.mjs +0 -17
- package/build/common/propsValues/type.mjs.map +0 -1
- package/build/common/propsValues/typography.js +0 -25
- package/build/common/propsValues/typography.js.map +0 -1
- package/build/common/propsValues/typography.mjs +0 -25
- package/build/common/propsValues/typography.mjs.map +0 -1
- package/build/common/propsValues/variant.js +0 -8
- package/build/common/propsValues/variant.js.map +0 -1
- package/build/common/propsValues/variant.mjs +0 -8
- package/build/common/propsValues/variant.mjs.map +0 -1
- package/build/common/propsValues/width.js +0 -8
- package/build/common/propsValues/width.js.map +0 -1
- package/build/common/propsValues/width.mjs +0 -8
- package/build/common/propsValues/width.mjs.map +0 -1
- package/build/common/responsivePanel/ResponsivePanel.js +0 -45
- package/build/common/responsivePanel/ResponsivePanel.js.map +0 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs +0 -43
- package/build/common/responsivePanel/ResponsivePanel.mjs.map +0 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js +0 -27
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +0 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs +0 -25
- package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +0 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -8
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js.map +0 -1
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs +0 -6
- package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs.map +0 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -30
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +0 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs +0 -28
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +0 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -32
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +0 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs +0 -29
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +0 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -18
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +0 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs +0 -16
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +0 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -14
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +0 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs +0 -12
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +0 -1
- package/build/common/theme.js +0 -13
- package/build/common/theme.js.map +0 -1
- package/build/common/theme.mjs +0 -13
- package/build/common/theme.mjs.map +0 -1
- package/build/criticalBanner/CriticalCommsBanner.js +0 -77
- package/build/criticalBanner/CriticalCommsBanner.js.map +0 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +0 -71
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +0 -1
- package/build/dateInput/DateInput.js +0 -339
- package/build/dateInput/DateInput.js.map +0 -1
- package/build/dateInput/DateInput.messages.js +0 -24
- package/build/dateInput/DateInput.messages.js.map +0 -1
- package/build/dateInput/DateInput.messages.mjs +0 -22
- package/build/dateInput/DateInput.messages.mjs.map +0 -1
- package/build/dateInput/DateInput.mjs +0 -333
- package/build/dateInput/DateInput.mjs.map +0 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -9
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +0 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs +0 -7
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +0 -1
- package/build/dateLookup/DateLookup.js +0 -339
- package/build/dateLookup/DateLookup.js.map +0 -1
- package/build/dateLookup/DateLookup.messages.js +0 -33
- package/build/dateLookup/DateLookup.messages.js.map +0 -1
- package/build/dateLookup/DateLookup.messages.mjs +0 -31
- package/build/dateLookup/DateLookup.messages.mjs.map +0 -1
- package/build/dateLookup/DateLookup.mjs +0 -333
- package/build/dateLookup/DateLookup.mjs.map +0 -1
- package/build/dateLookup/dateHeader/DateHeader.js +0 -73
- package/build/dateLookup/dateHeader/DateHeader.js.map +0 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs +0 -67
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js +0 -70
- package/build/dateLookup/dateTrigger/DateTrigger.js.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js +0 -12
- package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs +0 -10
- package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +0 -1
- package/build/dateLookup/dateTrigger/DateTrigger.mjs +0 -68
- package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +0 -1
- package/build/dateLookup/dayCalendar/DayCalendar.js +0 -71
- package/build/dateLookup/dayCalendar/DayCalendar.js.map +0 -1
- package/build/dateLookup/dayCalendar/DayCalendar.mjs +0 -69
- package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +0 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -150
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +0 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +0 -148
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +0 -1
- package/build/dateLookup/getFocusableTime/getFocusableTime.js +0 -8
- package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +0 -1
- package/build/dateLookup/getFocusableTime/getFocusableTime.mjs +0 -6
- package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +0 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.js +0 -15
- package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +0 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.mjs +0 -13
- package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +0 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.js +0 -64
- package/build/dateLookup/monthCalendar/MonthCalendar.js.map +0 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.mjs +0 -62
- package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +0 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -83
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +0 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs +0 -81
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +0 -1
- package/build/dateLookup/tableLink/TableLink.js +0 -65
- package/build/dateLookup/tableLink/TableLink.js.map +0 -1
- package/build/dateLookup/tableLink/TableLink.mjs +0 -59
- package/build/dateLookup/tableLink/TableLink.mjs.map +0 -1
- package/build/dateLookup/yearCalendar/YearCalendar.js +0 -57
- package/build/dateLookup/yearCalendar/YearCalendar.js.map +0 -1
- package/build/dateLookup/yearCalendar/YearCalendar.mjs +0 -55
- package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +0 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -83
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +0 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs +0 -81
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +0 -1
- package/build/decision/Decision.js +0 -108
- package/build/decision/Decision.js.map +0 -1
- package/build/decision/Decision.mjs +0 -100
- package/build/decision/Decision.mjs.map +0 -1
- package/build/definitionList/DefinitionList.js +0 -90
- package/build/definitionList/DefinitionList.js.map +0 -1
- package/build/definitionList/DefinitionList.mjs +0 -83
- package/build/definitionList/DefinitionList.mjs.map +0 -1
- package/build/dimmer/Dimmer.js +0 -184
- package/build/dimmer/Dimmer.js.map +0 -1
- package/build/dimmer/Dimmer.mjs +0 -172
- package/build/dimmer/Dimmer.mjs.map +0 -1
- package/build/dimmer/dimmerManager/DimmerManager.js +0 -36
- package/build/dimmer/dimmerManager/DimmerManager.js.map +0 -1
- package/build/dimmer/dimmerManager/DimmerManager.mjs +0 -34
- package/build/dimmer/dimmerManager/DimmerManager.mjs.map +0 -1
- package/build/display/Display.js +0 -26
- package/build/display/Display.js.map +0 -1
- package/build/display/Display.mjs +0 -20
- package/build/display/Display.mjs.map +0 -1
- package/build/drawer/Drawer.js +0 -95
- package/build/drawer/Drawer.js.map +0 -1
- package/build/drawer/Drawer.mjs +0 -88
- package/build/drawer/Drawer.mjs.map +0 -1
- package/build/dropFade/DropFade.js +0 -48
- package/build/dropFade/DropFade.js.map +0 -1
- package/build/dropFade/DropFade.mjs +0 -42
- package/build/dropFade/DropFade.mjs.map +0 -1
- package/build/emphasis/Emphasis.js +0 -24
- package/build/emphasis/Emphasis.js.map +0 -1
- package/build/emphasis/Emphasis.mjs +0 -22
- package/build/emphasis/Emphasis.mjs.map +0 -1
- package/build/emphasis/EmphasisHtmlTransformer.js +0 -39
- package/build/emphasis/EmphasisHtmlTransformer.js.map +0 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs +0 -37
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +0 -1
- package/build/field/Field.js +0 -63
- package/build/field/Field.js.map +0 -1
- package/build/field/Field.mjs +0 -57
- package/build/field/Field.mjs.map +0 -1
- package/build/flowNavigation/FlowNavigation.js +0 -80
- package/build/flowNavigation/FlowNavigation.js.map +0 -1
- package/build/flowNavigation/FlowNavigation.messages.js +0 -12
- package/build/flowNavigation/FlowNavigation.messages.js.map +0 -1
- package/build/flowNavigation/FlowNavigation.messages.mjs +0 -10
- package/build/flowNavigation/FlowNavigation.messages.mjs.map +0 -1
- package/build/flowNavigation/FlowNavigation.mjs +0 -74
- package/build/flowNavigation/FlowNavigation.mjs.map +0 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js +0 -34
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +0 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs +0 -28
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +0 -1
- package/build/flowNavigation/backButton/BackButton.js +0 -44
- package/build/flowNavigation/backButton/BackButton.js.map +0 -1
- package/build/flowNavigation/backButton/BackButton.mjs +0 -37
- package/build/flowNavigation/backButton/BackButton.mjs.map +0 -1
- package/build/flowNavigation/backButton/index.js +0 -8
- package/build/flowNavigation/backButton/index.js.map +0 -1
- package/build/flowNavigation/backButton/index.mjs +0 -6
- package/build/flowNavigation/backButton/index.mjs.map +0 -1
- package/build/header/Header.js +0 -87
- package/build/header/Header.js.map +0 -1
- package/build/header/Header.mjs +0 -78
- package/build/header/Header.mjs.map +0 -1
- package/build/i18n/cs.json.js +0 -61
- package/build/i18n/cs.json.js.map +0 -1
- package/build/i18n/cs.json.mjs +0 -59
- package/build/i18n/cs.json.mjs.map +0 -1
- package/build/i18n/de.json.js +0 -62
- package/build/i18n/de.json.js.map +0 -1
- package/build/i18n/de.json.mjs +0 -60
- package/build/i18n/de.json.mjs.map +0 -1
- package/build/i18n/en.json.js +0 -62
- package/build/i18n/en.json.js.map +0 -1
- package/build/i18n/en.json.mjs +0 -60
- package/build/i18n/en.json.mjs.map +0 -1
- package/build/i18n/es.json.js +0 -62
- package/build/i18n/es.json.js.map +0 -1
- package/build/i18n/es.json.mjs +0 -60
- package/build/i18n/es.json.mjs.map +0 -1
- package/build/i18n/fr.json.js +0 -62
- package/build/i18n/fr.json.js.map +0 -1
- package/build/i18n/fr.json.mjs +0 -60
- package/build/i18n/fr.json.mjs.map +0 -1
- package/build/i18n/hu.json.js +0 -62
- package/build/i18n/hu.json.js.map +0 -1
- package/build/i18n/hu.json.mjs +0 -60
- package/build/i18n/hu.json.mjs.map +0 -1
- package/build/i18n/id.json.js +0 -62
- package/build/i18n/id.json.js.map +0 -1
- package/build/i18n/id.json.mjs +0 -60
- package/build/i18n/id.json.mjs.map +0 -1
- package/build/i18n/index.js +0 -45
- package/build/i18n/index.js.map +0 -1
- package/build/i18n/index.mjs +0 -43
- package/build/i18n/index.mjs.map +0 -1
- package/build/i18n/it.json.js +0 -62
- package/build/i18n/it.json.js.map +0 -1
- package/build/i18n/it.json.mjs +0 -60
- package/build/i18n/it.json.mjs.map +0 -1
- package/build/i18n/ja.json.js +0 -62
- package/build/i18n/ja.json.js.map +0 -1
- package/build/i18n/ja.json.mjs +0 -60
- package/build/i18n/ja.json.mjs.map +0 -1
- package/build/i18n/pl.json.js +0 -62
- package/build/i18n/pl.json.js.map +0 -1
- package/build/i18n/pl.json.mjs +0 -60
- package/build/i18n/pl.json.mjs.map +0 -1
- package/build/i18n/pt.json.js +0 -62
- package/build/i18n/pt.json.js.map +0 -1
- package/build/i18n/pt.json.mjs +0 -60
- package/build/i18n/pt.json.mjs.map +0 -1
- package/build/i18n/ro.json.js +0 -62
- package/build/i18n/ro.json.js.map +0 -1
- package/build/i18n/ro.json.mjs +0 -60
- package/build/i18n/ro.json.mjs.map +0 -1
- package/build/i18n/ru.json.js +0 -62
- package/build/i18n/ru.json.js.map +0 -1
- package/build/i18n/ru.json.mjs +0 -60
- package/build/i18n/ru.json.mjs.map +0 -1
- package/build/i18n/th.json.js +0 -62
- package/build/i18n/th.json.js.map +0 -1
- package/build/i18n/th.json.mjs +0 -60
- package/build/i18n/th.json.mjs.map +0 -1
- package/build/i18n/tr.json.js +0 -62
- package/build/i18n/tr.json.js.map +0 -1
- package/build/i18n/tr.json.mjs +0 -60
- package/build/i18n/tr.json.mjs.map +0 -1
- package/build/i18n/uk.json.js +0 -61
- package/build/i18n/uk.json.js.map +0 -1
- package/build/i18n/uk.json.mjs +0 -59
- package/build/i18n/uk.json.mjs.map +0 -1
- package/build/i18n/zh-CN.json.js +0 -62
- package/build/i18n/zh-CN.json.js.map +0 -1
- package/build/i18n/zh-CN.json.mjs +0 -60
- package/build/i18n/zh-CN.json.mjs.map +0 -1
- package/build/i18n/zh-HK.json.js +0 -62
- package/build/i18n/zh-HK.json.js.map +0 -1
- package/build/i18n/zh-HK.json.mjs +0 -60
- package/build/i18n/zh-HK.json.mjs.map +0 -1
- package/build/image/Image.js +0 -55
- package/build/image/Image.js.map +0 -1
- package/build/image/Image.mjs +0 -46
- package/build/image/Image.mjs.map +0 -1
- package/build/info/Info.js +0 -80
- package/build/info/Info.js.map +0 -1
- package/build/info/Info.messages.js +0 -12
- package/build/info/Info.messages.js.map +0 -1
- package/build/info/Info.messages.mjs +0 -10
- package/build/info/Info.messages.mjs.map +0 -1
- package/build/info/Info.mjs +0 -74
- package/build/info/Info.mjs.map +0 -1
- package/build/info/infoPresentations.js +0 -9
- package/build/info/infoPresentations.js.map +0 -1
- package/build/info/infoPresentations.mjs +0 -9
- package/build/info/infoPresentations.mjs.map +0 -1
- package/build/inlineAlert/InlineAlert.js +0 -29
- package/build/inlineAlert/InlineAlert.js.map +0 -1
- package/build/inlineAlert/InlineAlert.mjs +0 -23
- package/build/inlineAlert/InlineAlert.mjs.map +0 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -15
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +0 -1
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs +0 -13
- package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +0 -1
- package/build/inputs/Input.js +0 -39
- package/build/inputs/Input.js.map +0 -1
- package/build/inputs/Input.mjs +0 -33
- package/build/inputs/Input.mjs.map +0 -1
- package/build/inputs/InputGroup.js +0 -95
- package/build/inputs/InputGroup.js.map +0 -1
- package/build/inputs/InputGroup.mjs +0 -88
- package/build/inputs/InputGroup.mjs.map +0 -1
- package/build/inputs/SearchInput.js +0 -38
- package/build/inputs/SearchInput.js.map +0 -1
- package/build/inputs/SearchInput.mjs +0 -36
- package/build/inputs/SearchInput.mjs.map +0 -1
- package/build/inputs/SelectInput.js +0 -583
- package/build/inputs/SelectInput.js.map +0 -1
- package/build/inputs/SelectInput.messages.js +0 -12
- package/build/inputs/SelectInput.messages.js.map +0 -1
- package/build/inputs/SelectInput.messages.mjs +0 -10
- package/build/inputs/SelectInput.messages.mjs.map +0 -1
- package/build/inputs/SelectInput.mjs +0 -574
- package/build/inputs/SelectInput.mjs.map +0 -1
- package/build/inputs/TextArea.js +0 -27
- package/build/inputs/TextArea.js.map +0 -1
- package/build/inputs/TextArea.mjs +0 -21
- package/build/inputs/TextArea.mjs.map +0 -1
- package/build/inputs/_BottomSheet.js +0 -123
- package/build/inputs/_BottomSheet.js.map +0 -1
- package/build/inputs/_BottomSheet.mjs +0 -117
- package/build/inputs/_BottomSheet.mjs.map +0 -1
- package/build/inputs/_ButtonInput.js +0 -37
- package/build/inputs/_ButtonInput.js.map +0 -1
- package/build/inputs/_ButtonInput.mjs +0 -31
- package/build/inputs/_ButtonInput.mjs.map +0 -1
- package/build/inputs/_Popover.js +0 -120
- package/build/inputs/_Popover.js.map +0 -1
- package/build/inputs/_Popover.mjs +0 -114
- package/build/inputs/_Popover.mjs.map +0 -1
- package/build/inputs/_common.js +0 -23
- package/build/inputs/_common.js.map +0 -1
- package/build/inputs/_common.mjs +0 -17
- package/build/inputs/_common.mjs.map +0 -1
- package/build/inputs/contexts.js +0 -42
- package/build/inputs/contexts.js.map +0 -1
- package/build/inputs/contexts.mjs +0 -35
- package/build/inputs/contexts.mjs.map +0 -1
- package/build/instructionsList/InstructionsList.js +0 -66
- package/build/instructionsList/InstructionsList.js.map +0 -1
- package/build/instructionsList/InstructionsList.mjs +0 -60
- package/build/instructionsList/InstructionsList.mjs.map +0 -1
- package/build/label/Label.js +0 -25
- package/build/label/Label.js.map +0 -1
- package/build/label/Label.mjs +0 -19
- package/build/label/Label.mjs.map +0 -1
- package/build/link/Link.js +0 -42
- package/build/link/Link.js.map +0 -1
- package/build/link/Link.messages.js +0 -12
- package/build/link/Link.messages.js.map +0 -1
- package/build/link/Link.messages.mjs +0 -10
- package/build/link/Link.messages.mjs.map +0 -1
- package/build/link/Link.mjs +0 -36
- package/build/link/Link.mjs.map +0 -1
- package/build/listItem/ListItem.js +0 -50
- package/build/listItem/ListItem.js.map +0 -1
- package/build/listItem/ListItem.mjs +0 -44
- package/build/listItem/ListItem.mjs.map +0 -1
- package/build/loader/Loader.js +0 -68
- package/build/loader/Loader.js.map +0 -1
- package/build/loader/Loader.mjs +0 -62
- package/build/loader/Loader.mjs.map +0 -1
- package/build/logo/Logo.js +0 -180
- package/build/logo/Logo.js.map +0 -1
- package/build/logo/Logo.mjs +0 -173
- package/build/logo/Logo.mjs.map +0 -1
- package/build/logo/logoTypes.js +0 -10
- package/build/logo/logoTypes.js.map +0 -1
- package/build/logo/logoTypes.mjs +0 -10
- package/build/logo/logoTypes.mjs.map +0 -1
- package/build/markdown/Markdown.js +0 -75
- package/build/markdown/Markdown.js.map +0 -1
- package/build/markdown/Markdown.mjs +0 -69
- package/build/markdown/Markdown.mjs.map +0 -1
- package/build/modal/Modal.js +0 -113
- package/build/modal/Modal.js.map +0 -1
- package/build/modal/Modal.mjs +0 -107
- package/build/modal/Modal.mjs.map +0 -1
- package/build/money/Money.js +0 -20
- package/build/money/Money.js.map +0 -1
- package/build/money/Money.mjs +0 -18
- package/build/money/Money.mjs.map +0 -1
- package/build/moneyInput/MoneyInput.js +0 -369
- package/build/moneyInput/MoneyInput.js.map +0 -1
- package/build/moneyInput/MoneyInput.messages.js +0 -12
- package/build/moneyInput/MoneyInput.messages.js.map +0 -1
- package/build/moneyInput/MoneyInput.messages.mjs +0 -10
- package/build/moneyInput/MoneyInput.messages.mjs.map +0 -1
- package/build/moneyInput/MoneyInput.mjs +0 -363
- package/build/moneyInput/MoneyInput.mjs.map +0 -1
- package/build/moneyInput/currencyFormatting.js +0 -70
- package/build/moneyInput/currencyFormatting.js.map +0 -1
- package/build/moneyInput/currencyFormatting.mjs +0 -64
- package/build/moneyInput/currencyFormatting.mjs.map +0 -1
- package/build/navigationOption/NavigationOption.js +0 -48
- package/build/navigationOption/NavigationOption.js.map +0 -1
- package/build/navigationOption/NavigationOption.mjs +0 -42
- package/build/navigationOption/NavigationOption.mjs.map +0 -1
- package/build/navigationOptionsList/NavigationOptionsList.js +0 -19
- package/build/navigationOptionsList/NavigationOptionsList.js.map +0 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs +0 -17
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +0 -1
- package/build/nudge/Nudge.js +0 -121
- package/build/nudge/Nudge.js.map +0 -1
- package/build/nudge/Nudge.mjs +0 -112
- package/build/nudge/Nudge.mjs.map +0 -1
- package/build/overlayHeader/OverlayHeader.js +0 -54
- package/build/overlayHeader/OverlayHeader.js.map +0 -1
- package/build/overlayHeader/OverlayHeader.mjs +0 -47
- package/build/overlayHeader/OverlayHeader.mjs.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.js +0 -161
- package/build/phoneNumberInput/PhoneNumberInput.js.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.js +0 -12
- package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs +0 -10
- package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +0 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs +0 -159
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +0 -1
- package/build/phoneNumberInput/data/countries.js +0 -1278
- package/build/phoneNumberInput/data/countries.js.map +0 -1
- package/build/phoneNumberInput/data/countries.mjs +0 -1276
- package/build/phoneNumberInput/data/countries.mjs.map +0 -1
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -7
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js.map +0 -1
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs +0 -5
- package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +0 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -19
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +0 -1
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs +0 -17
- package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +0 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js +0 -21
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +0 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs +0 -19
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js +0 -17
- package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs +0 -15
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -17
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +0 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs +0 -15
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -12
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +0 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs +0 -10
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +0 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -11
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js.map +0 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs +0 -9
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs.map +0 -1
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -6
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js.map +0 -1
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs +0 -4
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -22
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +0 -1
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs +0 -20
- package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +0 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -8
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +0 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs +0 -6
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +0 -1
- package/build/popover/Popover.js +0 -79
- package/build/popover/Popover.js.map +0 -1
- package/build/popover/Popover.mjs +0 -73
- package/build/popover/Popover.mjs.map +0 -1
- package/build/processIndicator/ProcessIndicator.js +0 -120
- package/build/processIndicator/ProcessIndicator.js.map +0 -1
- package/build/processIndicator/ProcessIndicator.mjs +0 -114
- package/build/processIndicator/ProcessIndicator.mjs.map +0 -1
- package/build/progress/Progress.js +0 -24
- package/build/progress/Progress.js.map +0 -1
- package/build/progress/Progress.mjs +0 -18
- package/build/progress/Progress.mjs.map +0 -1
- package/build/progressBar/ProgressBar.js +0 -51
- package/build/progressBar/ProgressBar.js.map +0 -1
- package/build/progressBar/ProgressBar.mjs +0 -45
- package/build/progressBar/ProgressBar.mjs.map +0 -1
- package/build/promoCard/PromoCard.js +0 -189
- package/build/promoCard/PromoCard.js.map +0 -1
- package/build/promoCard/PromoCard.mjs +0 -182
- package/build/promoCard/PromoCard.mjs.map +0 -1
- package/build/promoCard/PromoCardContext.js +0 -33
- package/build/promoCard/PromoCardContext.js.map +0 -1
- package/build/promoCard/PromoCardContext.mjs +0 -27
- package/build/promoCard/PromoCardContext.mjs.map +0 -1
- package/build/promoCard/PromoCardGroup.js +0 -80
- package/build/promoCard/PromoCardGroup.js.map +0 -1
- package/build/promoCard/PromoCardGroup.mjs +0 -73
- package/build/promoCard/PromoCardGroup.mjs.map +0 -1
- package/build/promoCard/PromoCardIndicator.js +0 -53
- package/build/promoCard/PromoCardIndicator.js.map +0 -1
- package/build/promoCard/PromoCardIndicator.mjs +0 -47
- package/build/promoCard/PromoCardIndicator.mjs.map +0 -1
- package/build/provider/Provider.js +0 -53
- package/build/provider/Provider.js.map +0 -1
- package/build/provider/Provider.mjs +0 -51
- package/build/provider/Provider.mjs.map +0 -1
- package/build/provider/direction/DirectionProvider.js +0 -20
- package/build/provider/direction/DirectionProvider.js.map +0 -1
- package/build/provider/direction/DirectionProvider.mjs +0 -17
- package/build/provider/direction/DirectionProvider.mjs.map +0 -1
- package/build/provider/language/LanguageProvider.js +0 -20
- package/build/provider/language/LanguageProvider.js.map +0 -1
- package/build/provider/language/LanguageProvider.mjs +0 -17
- package/build/provider/language/LanguageProvider.mjs.map +0 -1
- package/build/radio/Radio.js +0 -63
- package/build/radio/Radio.js.map +0 -1
- package/build/radio/Radio.mjs +0 -57
- package/build/radio/Radio.mjs.map +0 -1
- package/build/radioGroup/RadioGroup.js +0 -40
- package/build/radioGroup/RadioGroup.js.map +0 -1
- package/build/radioGroup/RadioGroup.mjs +0 -38
- package/build/radioGroup/RadioGroup.mjs.map +0 -1
- package/build/radioOption/RadioOption.js +0 -46
- package/build/radioOption/RadioOption.js.map +0 -1
- package/build/radioOption/RadioOption.mjs +0 -44
- package/build/radioOption/RadioOption.mjs.map +0 -1
- package/build/section/Section.js +0 -24
- package/build/section/Section.js.map +0 -1
- package/build/section/Section.mjs +0 -18
- package/build/section/Section.mjs.map +0 -1
- package/build/segmentedControl/SegmentedControl.js +0 -115
- package/build/segmentedControl/SegmentedControl.js.map +0 -1
- package/build/segmentedControl/SegmentedControl.mjs +0 -109
- package/build/segmentedControl/SegmentedControl.mjs.map +0 -1
- package/build/select/Select.js +0 -579
- package/build/select/Select.js.map +0 -1
- package/build/select/Select.messages.js +0 -12
- package/build/select/Select.messages.js.map +0 -1
- package/build/select/Select.messages.mjs +0 -10
- package/build/select/Select.messages.mjs.map +0 -1
- package/build/select/Select.mjs +0 -572
- package/build/select/Select.mjs.map +0 -1
- package/build/select/index.js +0 -8
- package/build/select/index.js.map +0 -1
- package/build/select/index.mjs +0 -6
- package/build/select/index.mjs.map +0 -1
- package/build/select/option/Option.js +0 -58
- package/build/select/option/Option.js.map +0 -1
- package/build/select/option/Option.mjs +0 -52
- package/build/select/option/Option.mjs.map +0 -1
- package/build/select/option/index.js +0 -8
- package/build/select/option/index.js.map +0 -1
- package/build/select/option/index.mjs +0 -6
- package/build/select/option/index.mjs.map +0 -1
- package/build/select/searchBox/SearchBox.js +0 -54
- package/build/select/searchBox/SearchBox.js.map +0 -1
- package/build/select/searchBox/SearchBox.mjs +0 -48
- package/build/select/searchBox/SearchBox.mjs.map +0 -1
- package/build/slidingPanel/SlidingPanel.js +0 -49
- package/build/slidingPanel/SlidingPanel.js.map +0 -1
- package/build/slidingPanel/SlidingPanel.mjs +0 -40
- package/build/slidingPanel/SlidingPanel.mjs.map +0 -1
- package/build/snackbar/Snackbar.js +0 -134
- package/build/snackbar/Snackbar.js.map +0 -1
- package/build/snackbar/Snackbar.mjs +0 -129
- package/build/snackbar/Snackbar.mjs.map +0 -1
- package/build/snackbar/SnackbarContext.js +0 -12
- package/build/snackbar/SnackbarContext.js.map +0 -1
- package/build/snackbar/SnackbarContext.mjs +0 -9
- package/build/snackbar/SnackbarContext.mjs.map +0 -1
- package/build/snackbar/SnackbarProvider.js +0 -48
- package/build/snackbar/SnackbarProvider.js.map +0 -1
- package/build/snackbar/SnackbarProvider.mjs +0 -46
- package/build/snackbar/SnackbarProvider.mjs.map +0 -1
- package/build/snackbar/useSnackbar.js +0 -14
- package/build/snackbar/useSnackbar.js.map +0 -1
- package/build/snackbar/useSnackbar.mjs +0 -12
- package/build/snackbar/useSnackbar.mjs.map +0 -1
- package/build/statusIcon/StatusIcon.js +0 -37
- package/build/statusIcon/StatusIcon.js.map +0 -1
- package/build/statusIcon/StatusIcon.mjs +0 -31
- package/build/statusIcon/StatusIcon.mjs.map +0 -1
- package/build/stepper/Stepper.js +0 -80
- package/build/stepper/Stepper.js.map +0 -1
- package/build/stepper/Stepper.mjs +0 -74
- package/build/stepper/Stepper.mjs.map +0 -1
- package/build/stepper/deviceDetection.js +0 -22
- package/build/stepper/deviceDetection.js.map +0 -1
- package/build/stepper/deviceDetection.mjs +0 -20
- package/build/stepper/deviceDetection.mjs.map +0 -1
- package/build/sticky/Sticky.js +0 -21
- package/build/sticky/Sticky.js.map +0 -1
- package/build/sticky/Sticky.mjs +0 -19
- package/build/sticky/Sticky.mjs.map +0 -1
- package/build/summary/Summary.js +0 -119
- package/build/summary/Summary.js.map +0 -1
- package/build/summary/Summary.messages.js +0 -18
- package/build/summary/Summary.messages.js.map +0 -1
- package/build/summary/Summary.messages.mjs +0 -16
- package/build/summary/Summary.messages.mjs.map +0 -1
- package/build/summary/Summary.mjs +0 -113
- package/build/summary/Summary.mjs.map +0 -1
- package/build/switch/Switch.js +0 -82
- package/build/switch/Switch.js.map +0 -1
- package/build/switch/Switch.mjs +0 -76
- package/build/switch/Switch.mjs.map +0 -1
- package/build/switchOption/SwitchOption.js +0 -59
- package/build/switchOption/SwitchOption.js.map +0 -1
- package/build/switchOption/SwitchOption.mjs +0 -57
- package/build/switchOption/SwitchOption.mjs.map +0 -1
- package/build/tabs/Tab.js +0 -81
- package/build/tabs/Tab.js.map +0 -1
- package/build/tabs/Tab.mjs +0 -74
- package/build/tabs/Tab.mjs.map +0 -1
- package/build/tabs/TabList.js +0 -24
- package/build/tabs/TabList.js.map +0 -1
- package/build/tabs/TabList.mjs +0 -18
- package/build/tabs/TabList.mjs.map +0 -1
- package/build/tabs/TabPanel.js +0 -35
- package/build/tabs/TabPanel.js.map +0 -1
- package/build/tabs/TabPanel.mjs +0 -29
- package/build/tabs/TabPanel.mjs.map +0 -1
- package/build/tabs/Tabs.js +0 -541
- package/build/tabs/Tabs.js.map +0 -1
- package/build/tabs/Tabs.mjs +0 -533
- package/build/tabs/Tabs.mjs.map +0 -1
- package/build/tabs/utils.js +0 -50
- package/build/tabs/utils.js.map +0 -1
- package/build/tabs/utils.mjs +0 -42
- package/build/tabs/utils.mjs.map +0 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -15
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +0 -1
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs +0 -13
- package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +0 -1
- package/build/tile/Tile.js +0 -86
- package/build/tile/Tile.js.map +0 -1
- package/build/tile/Tile.mjs +0 -76
- package/build/tile/Tile.mjs.map +0 -1
- package/build/title/Title.js +0 -42
- package/build/title/Title.js.map +0 -1
- package/build/title/Title.mjs +0 -36
- package/build/title/Title.mjs.map +0 -1
- package/build/tooltip/Tooltip.js +0 -103
- package/build/tooltip/Tooltip.js.map +0 -1
- package/build/tooltip/Tooltip.mjs +0 -97
- package/build/tooltip/Tooltip.mjs.map +0 -1
- package/build/typeahead/Typeahead.js +0 -468
- package/build/typeahead/Typeahead.js.map +0 -1
- package/build/typeahead/Typeahead.mjs +0 -460
- package/build/typeahead/Typeahead.mjs.map +0 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js +0 -120
- package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +0 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +0 -114
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +0 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.js +0 -49
- package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +0 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.mjs +0 -43
- package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +0 -1
- package/build/typeahead/util/highlight.js +0 -21
- package/build/typeahead/util/highlight.js.map +0 -1
- package/build/typeahead/util/highlight.mjs +0 -19
- package/build/typeahead/util/highlight.mjs.map +0 -1
- package/build/upload/Upload.js +0 -435
- package/build/upload/Upload.js.map +0 -1
- package/build/upload/Upload.messages.js +0 -39
- package/build/upload/Upload.messages.js.map +0 -1
- package/build/upload/Upload.messages.mjs +0 -37
- package/build/upload/Upload.messages.mjs.map +0 -1
- package/build/upload/Upload.mjs +0 -425
- package/build/upload/Upload.mjs.map +0 -1
- package/build/upload/steps/completeStep/completeStep.js +0 -102
- package/build/upload/steps/completeStep/completeStep.js.map +0 -1
- package/build/upload/steps/completeStep/completeStep.mjs +0 -95
- package/build/upload/steps/completeStep/completeStep.mjs.map +0 -1
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -97
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.js.map +0 -1
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.mjs +0 -91
- package/build/upload/steps/mediaUploadStep/mediaUploadStep.mjs.map +0 -1
- package/build/upload/steps/processingStep/processingStep.js +0 -79
- package/build/upload/steps/processingStep/processingStep.js.map +0 -1
- package/build/upload/steps/processingStep/processingStep.mjs +0 -72
- package/build/upload/steps/processingStep/processingStep.mjs.map +0 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js +0 -106
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +0 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +0 -100
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +0 -1
- package/build/upload/uploadSteps.js +0 -9
- package/build/upload/uploadSteps.js.map +0 -1
- package/build/upload/uploadSteps.mjs +0 -9
- package/build/upload/uploadSteps.mjs.map +0 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.js +0 -15
- package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +0 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.mjs +0 -13
- package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +0 -1
- package/build/upload/utils/getFileType/getFileType.js +0 -21
- package/build/upload/utils/getFileType/getFileType.js.map +0 -1
- package/build/upload/utils/getFileType/getFileType.mjs +0 -19
- package/build/upload/utils/getFileType/getFileType.mjs.map +0 -1
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -19
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js.map +0 -1
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.mjs +0 -17
- package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.mjs.map +0 -1
- package/build/upload/utils/isSizeValid/isSizeValid.js +0 -6
- package/build/upload/utils/isSizeValid/isSizeValid.js.map +0 -1
- package/build/upload/utils/isSizeValid/isSizeValid.mjs +0 -4
- package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +0 -1
- package/build/upload/utils/isTypeValid/isTypeValid.js +0 -26
- package/build/upload/utils/isTypeValid/isTypeValid.js.map +0 -1
- package/build/upload/utils/isTypeValid/isTypeValid.mjs +0 -24
- package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +0 -1
- package/build/upload/utils/postData/postData.js +0 -20
- package/build/upload/utils/postData/postData.js.map +0 -1
- package/build/upload/utils/postData/postData.mjs +0 -18
- package/build/upload/utils/postData/postData.mjs.map +0 -1
- package/build/upload/utils/requestMedia/requestMedia.js +0 -26
- package/build/upload/utils/requestMedia/requestMedia.js.map +0 -1
- package/build/upload/utils/requestMedia/requestMedia.mjs +0 -24
- package/build/upload/utils/requestMedia/requestMedia.mjs.map +0 -1
- package/build/uploadInput/UploadInput.js +0 -264
- package/build/uploadInput/UploadInput.js.map +0 -1
- package/build/uploadInput/UploadInput.messages.js +0 -30
- package/build/uploadInput/UploadInput.messages.js.map +0 -1
- package/build/uploadInput/UploadInput.messages.mjs +0 -28
- package/build/uploadInput/UploadInput.messages.mjs.map +0 -1
- package/build/uploadInput/UploadInput.mjs +0 -258
- package/build/uploadInput/UploadInput.mjs.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.js +0 -202
- package/build/uploadInput/uploadButton/UploadButton.js.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.js +0 -24
- package/build/uploadInput/uploadButton/UploadButton.messages.js.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs +0 -22
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +0 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +0 -194
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +0 -1
- package/build/uploadInput/uploadButton/defaults.js +0 -10
- package/build/uploadInput/uploadButton/defaults.js.map +0 -1
- package/build/uploadInput/uploadButton/defaults.mjs +0 -7
- package/build/uploadInput/uploadButton/defaults.mjs.map +0 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js +0 -8
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +0 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +0 -6
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.js +0 -174
- package/build/uploadInput/uploadItem/UploadItem.js.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.js +0 -27
- package/build/uploadInput/uploadItem/UploadItem.messages.js.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.messages.mjs +0 -25
- package/build/uploadInput/uploadItem/UploadItem.messages.mjs.map +0 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs +0 -166
- package/build/uploadInput/uploadItem/UploadItem.mjs.map +0 -1
- package/build/uploadInput/uploadItem/UploadItemBody.js +0 -27
- package/build/uploadInput/uploadItem/UploadItemBody.js.map +0 -1
- package/build/uploadInput/uploadItem/UploadItemBody.mjs +0 -25
- package/build/uploadInput/uploadItem/UploadItemBody.mjs.map +0 -1
- package/build/utilities/cssValueWithUnit.js +0 -8
- package/build/utilities/cssValueWithUnit.js.map +0 -1
- package/build/utilities/cssValueWithUnit.mjs +0 -6
- package/build/utilities/cssValueWithUnit.mjs.map +0 -1
- package/build/utilities/logActionRequired.js +0 -17
- package/build/utilities/logActionRequired.js.map +0 -1
- package/build/utilities/logActionRequired.mjs +0 -14
- package/build/utilities/logActionRequired.mjs.map +0 -1
- package/build/withDisplayFormat/WithDisplayFormat.js +0 -304
- package/build/withDisplayFormat/WithDisplayFormat.js.map +0 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs +0 -282
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +0 -1
- package/build/withNextPortal/withNextPortal.js +0 -20
- package/build/withNextPortal/withNextPortal.js.map +0 -1
- package/build/withNextPortal/withNextPortal.mjs +0 -18
- package/build/withNextPortal/withNextPortal.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sources":["../../src/drawer/Drawer.js"],"sourcesContent":["import classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport { useId } from 'react';\n\nimport { Position, Typography } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport { useLayout } from '../common/hooks';\nimport Dimmer from '../dimmer';\nimport SlidingPanel from '../slidingPanel';\nimport Title from '../title';\nimport { logActionRequiredIf } from '../utilities';\n\nconst Drawer = ({ children, className, footerContent, headerTitle, onClose, open, position }) => {\n logActionRequiredIf(\n 'Drawer now expects `onClose`, and will soon make this prop required. Please update your usage to provide it.',\n !onClose,\n );\n\n const { isMobile } = useLayout();\n const titleId = useId();\n\n return (\n <Dimmer open={open} onClose={onClose}>\n <SlidingPanel open={open} position={isMobile ? Position.BOTTOM : position}>\n <div\n role=\"dialog\"\n aria-modal\n aria-labelledby={headerTitle ? titleId : undefined}\n className={classNames('np-drawer', className)}\n >\n <div\n className={classNames('np-drawer-header', {\n 'np-drawer-header--withborder': headerTitle,\n })}\n >\n {headerTitle && (\n <Title id={titleId} type={Typography.TITLE_BODY}>\n {headerTitle}\n </Title>\n )}\n <CloseButton onClick={onClose} />\n </div>\n {children && <div className={classNames('np-drawer-content')}>{children}</div>}\n {footerContent && <div className={classNames('np-drawer-footer')}>{footerContent}</div>}\n </div>\n </SlidingPanel>\n </Dimmer>\n );\n};\n\nDrawer.propTypes = {\n /** The content to appear in the drawer body. */\n children: PropTypes.node,\n className: PropTypes.string,\n /** The content to appear in the drawer footer. */\n footerContent: PropTypes.node,\n /** The content to appear in the drawer header. */\n headerTitle: PropTypes.node,\n /** The status of Drawer either open or not. */\n open: PropTypes.bool,\n /** The placement of Drawer on the screen either left or right. On mobile it will default to bottom. */\n position: PropTypes.oneOf(['left', 'right', 'bottom']),\n /** The action to perform on close click. */\n onClose: PropTypes.func,\n};\n\nDrawer.defaultProps = {\n children: null,\n className: undefined,\n footerContent: null,\n headerTitle: null,\n onClose: null,\n open: false,\n position: Position.RIGHT,\n};\n\nexport default Drawer;\n"],"names":["Drawer","children","className","footerContent","headerTitle","onClose","open","position","logActionRequiredIf","isMobile","useLayout","titleId","useId","_jsx","Dimmer","SlidingPanel","Position","BOTTOM","_jsxs","role","undefined","classNames","Title","id","type","Typography","TITLE_BODY","CloseButton","onClick","propTypes","PropTypes","node","string","bool","oneOf","func","defaultProps","RIGHT"],"mappings":"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"}
|
package/build/drawer/Drawer.mjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { useId } from 'react';
|
|
4
|
-
import { CloseButton } from '../common/closeButton/CloseButton.mjs';
|
|
5
|
-
import Dimmer from '../dimmer/Dimmer.mjs';
|
|
6
|
-
import SlidingPanel from '../slidingPanel/SlidingPanel.mjs';
|
|
7
|
-
import Title from '../title/Title.mjs';
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
import { logActionRequiredIf } from '../utilities/logActionRequired.mjs';
|
|
10
|
-
import { useLayout } from '../common/hooks/useLayout/useLayout.mjs';
|
|
11
|
-
import { Position } from '../common/propsValues/position.mjs';
|
|
12
|
-
import { Typography } from '../common/propsValues/typography.mjs';
|
|
13
|
-
|
|
14
|
-
const Drawer = ({
|
|
15
|
-
children,
|
|
16
|
-
className,
|
|
17
|
-
footerContent,
|
|
18
|
-
headerTitle,
|
|
19
|
-
onClose,
|
|
20
|
-
open,
|
|
21
|
-
position
|
|
22
|
-
}) => {
|
|
23
|
-
logActionRequiredIf('Drawer now expects `onClose`, and will soon make this prop required. Please update your usage to provide it.', !onClose);
|
|
24
|
-
const {
|
|
25
|
-
isMobile
|
|
26
|
-
} = useLayout();
|
|
27
|
-
const titleId = useId();
|
|
28
|
-
return /*#__PURE__*/jsx(Dimmer, {
|
|
29
|
-
open: open,
|
|
30
|
-
onClose: onClose,
|
|
31
|
-
children: /*#__PURE__*/jsx(SlidingPanel, {
|
|
32
|
-
open: open,
|
|
33
|
-
position: isMobile ? Position.BOTTOM : position,
|
|
34
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
35
|
-
role: "dialog",
|
|
36
|
-
"aria-modal": true,
|
|
37
|
-
"aria-labelledby": headerTitle ? titleId : undefined,
|
|
38
|
-
className: classNames('np-drawer', className),
|
|
39
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
40
|
-
className: classNames('np-drawer-header', {
|
|
41
|
-
'np-drawer-header--withborder': headerTitle
|
|
42
|
-
}),
|
|
43
|
-
children: [headerTitle && /*#__PURE__*/jsx(Title, {
|
|
44
|
-
id: titleId,
|
|
45
|
-
type: Typography.TITLE_BODY,
|
|
46
|
-
children: headerTitle
|
|
47
|
-
}), /*#__PURE__*/jsx(CloseButton, {
|
|
48
|
-
onClick: onClose
|
|
49
|
-
})]
|
|
50
|
-
}), children && /*#__PURE__*/jsx("div", {
|
|
51
|
-
className: classNames('np-drawer-content'),
|
|
52
|
-
children: children
|
|
53
|
-
}), footerContent && /*#__PURE__*/jsx("div", {
|
|
54
|
-
className: classNames('np-drawer-footer'),
|
|
55
|
-
children: footerContent
|
|
56
|
-
})]
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
Drawer.propTypes = {
|
|
62
|
-
/** The content to appear in the drawer body. */
|
|
63
|
-
children: PropTypes.node,
|
|
64
|
-
className: PropTypes.string,
|
|
65
|
-
/** The content to appear in the drawer footer. */
|
|
66
|
-
footerContent: PropTypes.node,
|
|
67
|
-
/** The content to appear in the drawer header. */
|
|
68
|
-
headerTitle: PropTypes.node,
|
|
69
|
-
/** The status of Drawer either open or not. */
|
|
70
|
-
open: PropTypes.bool,
|
|
71
|
-
/** The placement of Drawer on the screen either left or right. On mobile it will default to bottom. */
|
|
72
|
-
position: PropTypes.oneOf(['left', 'right', 'bottom']),
|
|
73
|
-
/** The action to perform on close click. */
|
|
74
|
-
onClose: PropTypes.func
|
|
75
|
-
};
|
|
76
|
-
Drawer.defaultProps = {
|
|
77
|
-
children: null,
|
|
78
|
-
className: undefined,
|
|
79
|
-
footerContent: null,
|
|
80
|
-
headerTitle: null,
|
|
81
|
-
onClose: null,
|
|
82
|
-
open: false,
|
|
83
|
-
position: Position.RIGHT
|
|
84
|
-
};
|
|
85
|
-
var Drawer$1 = Drawer;
|
|
86
|
-
|
|
87
|
-
export { Drawer$1 as default };
|
|
88
|
-
//# sourceMappingURL=Drawer.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.mjs","sources":["../../src/drawer/Drawer.js"],"sourcesContent":["import classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport { useId } from 'react';\n\nimport { Position, Typography } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport { useLayout } from '../common/hooks';\nimport Dimmer from '../dimmer';\nimport SlidingPanel from '../slidingPanel';\nimport Title from '../title';\nimport { logActionRequiredIf } from '../utilities';\n\nconst Drawer = ({ children, className, footerContent, headerTitle, onClose, open, position }) => {\n logActionRequiredIf(\n 'Drawer now expects `onClose`, and will soon make this prop required. Please update your usage to provide it.',\n !onClose,\n );\n\n const { isMobile } = useLayout();\n const titleId = useId();\n\n return (\n <Dimmer open={open} onClose={onClose}>\n <SlidingPanel open={open} position={isMobile ? Position.BOTTOM : position}>\n <div\n role=\"dialog\"\n aria-modal\n aria-labelledby={headerTitle ? titleId : undefined}\n className={classNames('np-drawer', className)}\n >\n <div\n className={classNames('np-drawer-header', {\n 'np-drawer-header--withborder': headerTitle,\n })}\n >\n {headerTitle && (\n <Title id={titleId} type={Typography.TITLE_BODY}>\n {headerTitle}\n </Title>\n )}\n <CloseButton onClick={onClose} />\n </div>\n {children && <div className={classNames('np-drawer-content')}>{children}</div>}\n {footerContent && <div className={classNames('np-drawer-footer')}>{footerContent}</div>}\n </div>\n </SlidingPanel>\n </Dimmer>\n );\n};\n\nDrawer.propTypes = {\n /** The content to appear in the drawer body. */\n children: PropTypes.node,\n className: PropTypes.string,\n /** The content to appear in the drawer footer. */\n footerContent: PropTypes.node,\n /** The content to appear in the drawer header. */\n headerTitle: PropTypes.node,\n /** The status of Drawer either open or not. */\n open: PropTypes.bool,\n /** The placement of Drawer on the screen either left or right. On mobile it will default to bottom. */\n position: PropTypes.oneOf(['left', 'right', 'bottom']),\n /** The action to perform on close click. */\n onClose: PropTypes.func,\n};\n\nDrawer.defaultProps = {\n children: null,\n className: undefined,\n footerContent: null,\n headerTitle: null,\n onClose: null,\n open: false,\n position: Position.RIGHT,\n};\n\nexport default Drawer;\n"],"names":["Drawer","children","className","footerContent","headerTitle","onClose","open","position","logActionRequiredIf","isMobile","useLayout","titleId","useId","_jsx","Dimmer","SlidingPanel","Position","BOTTOM","_jsxs","role","undefined","classNames","Title","id","type","Typography","TITLE_BODY","CloseButton","onClick","propTypes","PropTypes","node","string","bool","oneOf","func","defaultProps","RIGHT"],"mappings":"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"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var reactTransitionGroup = require('react-transition-group');
|
|
5
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
|
-
|
|
11
|
-
const DropFade = ({
|
|
12
|
-
children,
|
|
13
|
-
show
|
|
14
|
-
}) => {
|
|
15
|
-
const reference = React.useRef(null);
|
|
16
|
-
const [height, setHeight] = React.useState(0);
|
|
17
|
-
const clonedChild = /*#__PURE__*/React__default.default.cloneElement(children);
|
|
18
|
-
return /*#__PURE__*/jsxRuntime.jsx(reactTransitionGroup.CSSTransition, {
|
|
19
|
-
nodeRef: reference,
|
|
20
|
-
in: show,
|
|
21
|
-
timeout: 300,
|
|
22
|
-
classNames: "np-dropfade",
|
|
23
|
-
onEntering: () => {
|
|
24
|
-
// Set height so we can animate to the correct height
|
|
25
|
-
setHeight(reference.current?.scrollHeight || 0);
|
|
26
|
-
}
|
|
27
|
-
// Un-set height, as we don't want to presume it should be that height forever
|
|
28
|
-
,
|
|
29
|
-
onEntered: () => setHeight(undefined),
|
|
30
|
-
onExit: () => {
|
|
31
|
-
setHeight(reference.current?.scrollHeight || 0);
|
|
32
|
-
},
|
|
33
|
-
onExiting: () => {
|
|
34
|
-
setHeight(0);
|
|
35
|
-
},
|
|
36
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
37
|
-
ref: reference,
|
|
38
|
-
style: {
|
|
39
|
-
height
|
|
40
|
-
},
|
|
41
|
-
className: "np-dropfade",
|
|
42
|
-
children: clonedChild
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
module.exports = DropFade;
|
|
48
|
-
//# sourceMappingURL=DropFade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropFade.js","sources":["../../src/dropFade/DropFade.tsx"],"sourcesContent":["import React, { useRef, useState, ReactElement } from 'react';\nimport { CSSTransition } from 'react-transition-group';\n\nconst DropFade = ({ children, show }: { children: ReactElement; show: boolean }) => {\n const reference = useRef<HTMLDivElement>(null);\n const [height, setHeight] = useState<number | undefined>(0);\n\n const clonedChild = React.cloneElement(children);\n\n return (\n <CSSTransition\n nodeRef={reference}\n in={show}\n timeout={300}\n classNames=\"np-dropfade\"\n onEntering={() => {\n // Set height so we can animate to the correct height\n setHeight(reference.current?.scrollHeight || 0);\n }}\n // Un-set height, as we don't want to presume it should be that height forever\n onEntered={() => setHeight(undefined)}\n onExit={() => {\n setHeight(reference.current?.scrollHeight || 0);\n }}\n onExiting={() => {\n setHeight(0);\n }}\n >\n {/* eslint-disable-next-line react/forbid-dom-props */}\n <div ref={reference} style={{ height }} className=\"np-dropfade\">\n {clonedChild}\n </div>\n </CSSTransition>\n );\n};\n\nexport default DropFade;\n"],"names":["DropFade","children","show","reference","useRef","height","setHeight","useState","clonedChild","React","cloneElement","_jsx","CSSTransition","nodeRef","in","timeout","classNames","onEntering","current","scrollHeight","onEntered","undefined","onExit","onExiting","ref","style","className"],"mappings":";;;;;;;;;;AAGMA,MAAAA,QAAQ,GAAGA,CAAC;EAAEC,QAAQ;AAAEC,EAAAA,IAAAA;AAAiD,CAAA,KAAI;AACjF,EAAA,MAAMC,SAAS,GAAGC,YAAM,CAAiB,IAAI,CAAC,CAAA;EAC9C,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,cAAQ,CAAqB,CAAC,CAAC,CAAA;AAE3D,EAAA,MAAMC,WAAW,gBAAGC,sBAAK,CAACC,YAAY,CAACT,QAAQ,CAAC,CAAA;EAEhD,oBACEU,cAAA,CAACC,kCAAa,EAAA;AACZC,IAAAA,OAAO,EAAEV,SAAU;AACnBW,IAAAA,EAAE,EAAEZ,IAAK;AACTa,IAAAA,OAAO,EAAE,GAAI;AACbC,IAAAA,UAAU,EAAC,aAAa;IACxBC,UAAU,EAAEA,MAAK;AACf;MACAX,SAAS,CAACH,SAAS,CAACe,OAAO,EAAEC,YAAY,IAAI,CAAC,CAAC,CAAA;AACjD,KAAA;AACA;AAAA;AACAC,IAAAA,SAAS,EAAEA,MAAMd,SAAS,CAACe,SAAS,CAAE;IACtCC,MAAM,EAAEA,MAAK;MACXhB,SAAS,CAACH,SAAS,CAACe,OAAO,EAAEC,YAAY,IAAI,CAAC,CAAC,CAAA;KAC/C;IACFI,SAAS,EAAEA,MAAK;MACdjB,SAAS,CAAC,CAAC,CAAC,CAAA;KACZ;AAAAL,IAAAA,QAAA,eAGFU,cAAA,CAAA,KAAA,EAAA;AAAKa,MAAAA,GAAG,EAAErB,SAAU;AAACsB,MAAAA,KAAK,EAAE;AAAEpB,QAAAA,MAAAA;OAAS;AAACqB,MAAAA,SAAS,EAAC,aAAa;AAAAzB,MAAAA,QAAA,EAC5DO,WAAAA;KACE,CAAA;AACP,GAAe,CAAC,CAAA;AAEpB;;;;"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React__default, { useRef, useState } from 'react';
|
|
2
|
-
import { CSSTransition } from 'react-transition-group';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
const DropFade = ({
|
|
6
|
-
children,
|
|
7
|
-
show
|
|
8
|
-
}) => {
|
|
9
|
-
const reference = useRef(null);
|
|
10
|
-
const [height, setHeight] = useState(0);
|
|
11
|
-
const clonedChild = /*#__PURE__*/React__default.cloneElement(children);
|
|
12
|
-
return /*#__PURE__*/jsx(CSSTransition, {
|
|
13
|
-
nodeRef: reference,
|
|
14
|
-
in: show,
|
|
15
|
-
timeout: 300,
|
|
16
|
-
classNames: "np-dropfade",
|
|
17
|
-
onEntering: () => {
|
|
18
|
-
// Set height so we can animate to the correct height
|
|
19
|
-
setHeight(reference.current?.scrollHeight || 0);
|
|
20
|
-
}
|
|
21
|
-
// Un-set height, as we don't want to presume it should be that height forever
|
|
22
|
-
,
|
|
23
|
-
onEntered: () => setHeight(undefined),
|
|
24
|
-
onExit: () => {
|
|
25
|
-
setHeight(reference.current?.scrollHeight || 0);
|
|
26
|
-
},
|
|
27
|
-
onExiting: () => {
|
|
28
|
-
setHeight(0);
|
|
29
|
-
},
|
|
30
|
-
children: /*#__PURE__*/jsx("div", {
|
|
31
|
-
ref: reference,
|
|
32
|
-
style: {
|
|
33
|
-
height
|
|
34
|
-
},
|
|
35
|
-
className: "np-dropfade",
|
|
36
|
-
children: clonedChild
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export { DropFade as default };
|
|
42
|
-
//# sourceMappingURL=DropFade.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropFade.mjs","sources":["../../src/dropFade/DropFade.tsx"],"sourcesContent":["import React, { useRef, useState, ReactElement } from 'react';\nimport { CSSTransition } from 'react-transition-group';\n\nconst DropFade = ({ children, show }: { children: ReactElement; show: boolean }) => {\n const reference = useRef<HTMLDivElement>(null);\n const [height, setHeight] = useState<number | undefined>(0);\n\n const clonedChild = React.cloneElement(children);\n\n return (\n <CSSTransition\n nodeRef={reference}\n in={show}\n timeout={300}\n classNames=\"np-dropfade\"\n onEntering={() => {\n // Set height so we can animate to the correct height\n setHeight(reference.current?.scrollHeight || 0);\n }}\n // Un-set height, as we don't want to presume it should be that height forever\n onEntered={() => setHeight(undefined)}\n onExit={() => {\n setHeight(reference.current?.scrollHeight || 0);\n }}\n onExiting={() => {\n setHeight(0);\n }}\n >\n {/* eslint-disable-next-line react/forbid-dom-props */}\n <div ref={reference} style={{ height }} className=\"np-dropfade\">\n {clonedChild}\n </div>\n </CSSTransition>\n );\n};\n\nexport default DropFade;\n"],"names":["DropFade","children","show","reference","useRef","height","setHeight","useState","clonedChild","React","cloneElement","_jsx","CSSTransition","nodeRef","in","timeout","classNames","onEntering","current","scrollHeight","onEntered","undefined","onExit","onExiting","ref","style","className"],"mappings":";;;;AAGMA,MAAAA,QAAQ,GAAGA,CAAC;EAAEC,QAAQ;AAAEC,EAAAA,IAAAA;AAAiD,CAAA,KAAI;AACjF,EAAA,MAAMC,SAAS,GAAGC,MAAM,CAAiB,IAAI,CAAC,CAAA;EAC9C,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGC,QAAQ,CAAqB,CAAC,CAAC,CAAA;AAE3D,EAAA,MAAMC,WAAW,gBAAGC,cAAK,CAACC,YAAY,CAACT,QAAQ,CAAC,CAAA;EAEhD,oBACEU,GAAA,CAACC,aAAa,EAAA;AACZC,IAAAA,OAAO,EAAEV,SAAU;AACnBW,IAAAA,EAAE,EAAEZ,IAAK;AACTa,IAAAA,OAAO,EAAE,GAAI;AACbC,IAAAA,UAAU,EAAC,aAAa;IACxBC,UAAU,EAAEA,MAAK;AACf;MACAX,SAAS,CAACH,SAAS,CAACe,OAAO,EAAEC,YAAY,IAAI,CAAC,CAAC,CAAA;AACjD,KAAA;AACA;AAAA;AACAC,IAAAA,SAAS,EAAEA,MAAMd,SAAS,CAACe,SAAS,CAAE;IACtCC,MAAM,EAAEA,MAAK;MACXhB,SAAS,CAACH,SAAS,CAACe,OAAO,EAAEC,YAAY,IAAI,CAAC,CAAC,CAAA;KAC/C;IACFI,SAAS,EAAEA,MAAK;MACdjB,SAAS,CAAC,CAAC,CAAC,CAAA;KACZ;AAAAL,IAAAA,QAAA,eAGFU,GAAA,CAAA,KAAA,EAAA;AAAKa,MAAAA,GAAG,EAAErB,SAAU;AAACsB,MAAAA,KAAK,EAAE;AAAEpB,QAAAA,MAAAA;OAAS;AAACqB,MAAAA,SAAS,EAAC,aAAa;AAAAzB,MAAAA,QAAA,EAC5DO,WAAAA;KACE,CAAA;AACP,GAAe,CAAC,CAAA;AAEpB;;;;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var EmphasisHtmlTransformer = require('./EmphasisHtmlTransformer.js');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
const SUPPORTED_TAGS = ['important', 'positive', 'negative', 'warning'];
|
|
7
|
-
const emphasisHtmlTransformer = new EmphasisHtmlTransformer(SUPPORTED_TAGS);
|
|
8
|
-
const Emphasis = ({
|
|
9
|
-
text = undefined
|
|
10
|
-
}) => {
|
|
11
|
-
if (!text) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
const transformedText = emphasisHtmlTransformer.transform(text);
|
|
15
|
-
// eslint-disable-next-line react/no-danger
|
|
16
|
-
return transformedText ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
17
|
-
dangerouslySetInnerHTML: {
|
|
18
|
-
__html: transformedText
|
|
19
|
-
}
|
|
20
|
-
}) : null;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
module.exports = Emphasis;
|
|
24
|
-
//# sourceMappingURL=Emphasis.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Emphasis.js","sources":["../../src/emphasis/Emphasis.tsx"],"sourcesContent":["import EmphasisHtmlTransformer from './EmphasisHtmlTransformer';\n\nconst SUPPORTED_TAGS = ['important', 'positive', 'negative', 'warning'];\nconst emphasisHtmlTransformer = new EmphasisHtmlTransformer(SUPPORTED_TAGS);\n\nexport type EmphasisProps = {\n text?: string;\n};\n\nconst Emphasis = ({ text = undefined }: EmphasisProps) => {\n if (!text) {\n return null;\n }\n\n const transformedText = emphasisHtmlTransformer.transform(text);\n // eslint-disable-next-line react/no-danger\n return transformedText ? <span dangerouslySetInnerHTML={{ __html: transformedText }} /> : null;\n};\n\nexport default Emphasis;\n"],"names":["SUPPORTED_TAGS","emphasisHtmlTransformer","EmphasisHtmlTransformer","Emphasis","text","undefined","transformedText","transform","_jsx","dangerouslySetInnerHTML","__html"],"mappings":";;;;;AAEA,MAAMA,cAAc,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAA;AACvE,MAAMC,uBAAuB,GAAG,IAAIC,uBAAuB,CAACF,cAAc,CAAC,CAAA;AAMrEG,MAAAA,QAAQ,GAAGA,CAAC;AAAEC,EAAAA,IAAI,GAAGC,SAAAA;AAA0B,CAAA,KAAI;EACvD,IAAI,CAACD,IAAI,EAAE;AACT,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AAED,EAAA,MAAME,eAAe,GAAGL,uBAAuB,CAACM,SAAS,CAACH,IAAI,CAAC,CAAA;AAC/D;EACA,OAAOE,eAAe,gBAAGE,cAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,uBAAuB,EAAE;AAAEC,MAAAA,MAAM,EAAEJ,eAAAA;AAAiB,KAAA;IAAI,GAAG,IAAI,CAAA;AAChG;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import EmphasisHtmlTransformer from './EmphasisHtmlTransformer.mjs';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
const SUPPORTED_TAGS = ['important', 'positive', 'negative', 'warning'];
|
|
5
|
-
const emphasisHtmlTransformer = new EmphasisHtmlTransformer(SUPPORTED_TAGS);
|
|
6
|
-
const Emphasis = ({
|
|
7
|
-
text = undefined
|
|
8
|
-
}) => {
|
|
9
|
-
if (!text) {
|
|
10
|
-
return null;
|
|
11
|
-
}
|
|
12
|
-
const transformedText = emphasisHtmlTransformer.transform(text);
|
|
13
|
-
// eslint-disable-next-line react/no-danger
|
|
14
|
-
return transformedText ? /*#__PURE__*/jsx("span", {
|
|
15
|
-
dangerouslySetInnerHTML: {
|
|
16
|
-
__html: transformedText
|
|
17
|
-
}
|
|
18
|
-
}) : null;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { Emphasis as default };
|
|
22
|
-
//# sourceMappingURL=Emphasis.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Emphasis.mjs","sources":["../../src/emphasis/Emphasis.tsx"],"sourcesContent":["import EmphasisHtmlTransformer from './EmphasisHtmlTransformer';\n\nconst SUPPORTED_TAGS = ['important', 'positive', 'negative', 'warning'];\nconst emphasisHtmlTransformer = new EmphasisHtmlTransformer(SUPPORTED_TAGS);\n\nexport type EmphasisProps = {\n text?: string;\n};\n\nconst Emphasis = ({ text = undefined }: EmphasisProps) => {\n if (!text) {\n return null;\n }\n\n const transformedText = emphasisHtmlTransformer.transform(text);\n // eslint-disable-next-line react/no-danger\n return transformedText ? <span dangerouslySetInnerHTML={{ __html: transformedText }} /> : null;\n};\n\nexport default Emphasis;\n"],"names":["SUPPORTED_TAGS","emphasisHtmlTransformer","EmphasisHtmlTransformer","Emphasis","text","undefined","transformedText","transform","_jsx","dangerouslySetInnerHTML","__html"],"mappings":";;;AAEA,MAAMA,cAAc,GAAG,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAA;AACvE,MAAMC,uBAAuB,GAAG,IAAIC,uBAAuB,CAACF,cAAc,CAAC,CAAA;AAMrEG,MAAAA,QAAQ,GAAGA,CAAC;AAAEC,EAAAA,IAAI,GAAGC,SAAAA;AAA0B,CAAA,KAAI;EACvD,IAAI,CAACD,IAAI,EAAE;AACT,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AAED,EAAA,MAAME,eAAe,GAAGL,uBAAuB,CAACM,SAAS,CAACH,IAAI,CAAC,CAAA;AAC/D;EACA,OAAOE,eAAe,gBAAGE,GAAA,CAAA,MAAA,EAAA;AAAMC,IAAAA,uBAAuB,EAAE;AAAEC,MAAAA,MAAM,EAAEJ,eAAAA;AAAiB,KAAA;IAAI,GAAG,IAAI,CAAA;AAChG;;;;"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const ESCAPED_OPENING_CHEVRON = '<';
|
|
4
|
-
const ESCAPED_CLOSING_CHEVRON = '>';
|
|
5
|
-
class EmphasisHtmlTransformer {
|
|
6
|
-
tags;
|
|
7
|
-
constructor(whitelistedTags) {
|
|
8
|
-
this.tags = (whitelistedTags || []).map(tag => {
|
|
9
|
-
return {
|
|
10
|
-
transformed: {
|
|
11
|
-
opening: `<em class="emphasis emphasis--${tag}">`,
|
|
12
|
-
closing: '</em>'
|
|
13
|
-
},
|
|
14
|
-
escapedRegex: {
|
|
15
|
-
opening: new RegExp(`${ESCAPED_OPENING_CHEVRON}${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g'),
|
|
16
|
-
closing: new RegExp(`${ESCAPED_OPENING_CHEVRON}/${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g')
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
// Algorithm:
|
|
22
|
-
// 1) Escape all dangerous characters (<,>,&)
|
|
23
|
-
// 2) Replace all escaped, whitelisted tags with styled spans.
|
|
24
|
-
// 3) Transform new line characters to `<br />`s
|
|
25
|
-
//
|
|
26
|
-
// Note: for simplicity this doesn't support tags with non-standard whitespaces, e.g. <positive></ positive>
|
|
27
|
-
transform(unsafe) {
|
|
28
|
-
if (!unsafe) {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
const safe = unsafe.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
32
|
-
return this.tags.reduce((accumulator, tag) => {
|
|
33
|
-
return accumulator.replace(tag.escapedRegex.opening, tag.transformed.opening).replace(tag.escapedRegex.closing, tag.transformed.closing);
|
|
34
|
-
}, safe).replace(/\\n|\n/g, '<br />');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
module.exports = EmphasisHtmlTransformer;
|
|
39
|
-
//# sourceMappingURL=EmphasisHtmlTransformer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmphasisHtmlTransformer.js","sources":["../../src/emphasis/EmphasisHtmlTransformer.ts"],"sourcesContent":["const ESCAPED_OPENING_CHEVRON = '<';\nconst ESCAPED_CLOSING_CHEVRON = '>';\n\ntype Tags = {\n transformed: {\n opening: string;\n closing: string;\n };\n escapedRegex: {\n opening: RegExp;\n closing: RegExp;\n };\n};\n\nclass EmphasisHtmlTransformer {\n tags: Array<Tags>;\n\n constructor(whitelistedTags?: Array<string>) {\n this.tags = (whitelistedTags || []).map((tag) => {\n return {\n transformed: {\n opening: `<em class=\"emphasis emphasis--${tag}\">`,\n closing: '</em>',\n },\n escapedRegex: {\n opening: new RegExp(`${ESCAPED_OPENING_CHEVRON}${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g'),\n closing: new RegExp(`${ESCAPED_OPENING_CHEVRON}/${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g'),\n },\n };\n });\n }\n\n // Algorithm:\n // 1) Escape all dangerous characters (<,>,&)\n // 2) Replace all escaped, whitelisted tags with styled spans.\n // 3) Transform new line characters to `<br />`s\n //\n // Note: for simplicity this doesn't support tags with non-standard whitespaces, e.g. <positive></ positive>\n transform(unsafe: string): string | null {\n if (!unsafe) {\n return null;\n }\n\n const safe = unsafe.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');\n\n return this.tags\n .reduce((accumulator, tag) => {\n return accumulator\n .replace(tag.escapedRegex.opening, tag.transformed.opening)\n .replace(tag.escapedRegex.closing, tag.transformed.closing);\n }, safe)\n .replace(/\\\\n|\\n/g, '<br />');\n }\n}\n\nexport default EmphasisHtmlTransformer;\n"],"names":["ESCAPED_OPENING_CHEVRON","ESCAPED_CLOSING_CHEVRON","EmphasisHtmlTransformer","tags","constructor","whitelistedTags","map","tag","transformed","opening","closing","escapedRegex","RegExp","transform","unsafe","safe","replace","reduce","accumulator"],"mappings":";;AAAA,MAAMA,uBAAuB,GAAG,MAAM,CAAA;AACtC,MAAMC,uBAAuB,GAAG,MAAM,CAAA;AAatC,MAAMC,uBAAuB,CAAA;EAC3BC,IAAI,CAAA;EAEJC,WAAAA,CAAYC,eAA+B,EAAA;IACzC,IAAI,CAACF,IAAI,GAAG,CAACE,eAAe,IAAI,EAAE,EAAEC,GAAG,CAAEC,GAAG,IAAI;MAC9C,OAAO;AACLC,QAAAA,WAAW,EAAE;UACXC,OAAO,EAAmC,CAAAF,8BAAAA,EAAAA,GAAO,CAAA,EAAA,CAAA;AACjDG,UAAAA,OAAO,EAAE,OAAA;SACV;AACDC,QAAAA,YAAY,EAAE;AACZF,UAAAA,OAAO,EAAE,IAAIG,MAAM,CAAI,CAAAZ,EAAAA,uBAA0B,CAAAO,EAAAA,GAAM,CAAAN,EAAAA,uBAAyB,CAAA,CAAA,EAAE,GAAG,CAAC;AACtFS,UAAAA,OAAO,EAAE,IAAIE,MAAM,CAAI,CAAAZ,EAAAA,uBAA2B,CAAAO,CAAAA,EAAAA,GAAM,CAAAN,EAAAA,uBAAyB,CAAA,CAAA,EAAE,GAAG,CAAA;AACvF,SAAA;OACF,CAAA;AACH,KAAC,CAAC,CAAA;AACJ,GAAA;AAEA;AACA;AACA;AACA;AACA;AACA;EACAY,SAASA,CAACC,MAAc,EAAA;IACtB,IAAI,CAACA,MAAM,EAAE;AACX,MAAA,OAAO,IAAI,CAAA;AACZ,KAAA;IAED,MAAMC,IAAI,GAAGD,MAAM,CAACE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAEtF,OAAO,IAAI,CAACb,IAAI,CACbc,MAAM,CAAC,CAACC,WAAW,EAAEX,GAAG,KAAI;AAC3B,MAAA,OAAOW,WAAW,CACfF,OAAO,CAACT,GAAG,CAACI,YAAY,CAACF,OAAO,EAAEF,GAAG,CAACC,WAAW,CAACC,OAAO,CAAC,CAC1DO,OAAO,CAACT,GAAG,CAACI,YAAY,CAACD,OAAO,EAAEH,GAAG,CAACC,WAAW,CAACE,OAAO,CAAC,CAAA;KAC9D,EAAEK,IAAI,CAAC,CACPC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;AACjC,GAAA;AACD;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
const ESCAPED_OPENING_CHEVRON = '<';
|
|
2
|
-
const ESCAPED_CLOSING_CHEVRON = '>';
|
|
3
|
-
class EmphasisHtmlTransformer {
|
|
4
|
-
tags;
|
|
5
|
-
constructor(whitelistedTags) {
|
|
6
|
-
this.tags = (whitelistedTags || []).map(tag => {
|
|
7
|
-
return {
|
|
8
|
-
transformed: {
|
|
9
|
-
opening: `<em class="emphasis emphasis--${tag}">`,
|
|
10
|
-
closing: '</em>'
|
|
11
|
-
},
|
|
12
|
-
escapedRegex: {
|
|
13
|
-
opening: new RegExp(`${ESCAPED_OPENING_CHEVRON}${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g'),
|
|
14
|
-
closing: new RegExp(`${ESCAPED_OPENING_CHEVRON}/${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g')
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
// Algorithm:
|
|
20
|
-
// 1) Escape all dangerous characters (<,>,&)
|
|
21
|
-
// 2) Replace all escaped, whitelisted tags with styled spans.
|
|
22
|
-
// 3) Transform new line characters to `<br />`s
|
|
23
|
-
//
|
|
24
|
-
// Note: for simplicity this doesn't support tags with non-standard whitespaces, e.g. <positive></ positive>
|
|
25
|
-
transform(unsafe) {
|
|
26
|
-
if (!unsafe) {
|
|
27
|
-
return null;
|
|
28
|
-
}
|
|
29
|
-
const safe = unsafe.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
30
|
-
return this.tags.reduce((accumulator, tag) => {
|
|
31
|
-
return accumulator.replace(tag.escapedRegex.opening, tag.transformed.opening).replace(tag.escapedRegex.closing, tag.transformed.closing);
|
|
32
|
-
}, safe).replace(/\\n|\n/g, '<br />');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { EmphasisHtmlTransformer as default };
|
|
37
|
-
//# sourceMappingURL=EmphasisHtmlTransformer.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmphasisHtmlTransformer.mjs","sources":["../../src/emphasis/EmphasisHtmlTransformer.ts"],"sourcesContent":["const ESCAPED_OPENING_CHEVRON = '<';\nconst ESCAPED_CLOSING_CHEVRON = '>';\n\ntype Tags = {\n transformed: {\n opening: string;\n closing: string;\n };\n escapedRegex: {\n opening: RegExp;\n closing: RegExp;\n };\n};\n\nclass EmphasisHtmlTransformer {\n tags: Array<Tags>;\n\n constructor(whitelistedTags?: Array<string>) {\n this.tags = (whitelistedTags || []).map((tag) => {\n return {\n transformed: {\n opening: `<em class=\"emphasis emphasis--${tag}\">`,\n closing: '</em>',\n },\n escapedRegex: {\n opening: new RegExp(`${ESCAPED_OPENING_CHEVRON}${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g'),\n closing: new RegExp(`${ESCAPED_OPENING_CHEVRON}/${tag}${ESCAPED_CLOSING_CHEVRON}`, 'g'),\n },\n };\n });\n }\n\n // Algorithm:\n // 1) Escape all dangerous characters (<,>,&)\n // 2) Replace all escaped, whitelisted tags with styled spans.\n // 3) Transform new line characters to `<br />`s\n //\n // Note: for simplicity this doesn't support tags with non-standard whitespaces, e.g. <positive></ positive>\n transform(unsafe: string): string | null {\n if (!unsafe) {\n return null;\n }\n\n const safe = unsafe.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');\n\n return this.tags\n .reduce((accumulator, tag) => {\n return accumulator\n .replace(tag.escapedRegex.opening, tag.transformed.opening)\n .replace(tag.escapedRegex.closing, tag.transformed.closing);\n }, safe)\n .replace(/\\\\n|\\n/g, '<br />');\n }\n}\n\nexport default EmphasisHtmlTransformer;\n"],"names":["ESCAPED_OPENING_CHEVRON","ESCAPED_CLOSING_CHEVRON","EmphasisHtmlTransformer","tags","constructor","whitelistedTags","map","tag","transformed","opening","closing","escapedRegex","RegExp","transform","unsafe","safe","replace","reduce","accumulator"],"mappings":"AAAA,MAAMA,uBAAuB,GAAG,MAAM,CAAA;AACtC,MAAMC,uBAAuB,GAAG,MAAM,CAAA;AAatC,MAAMC,uBAAuB,CAAA;EAC3BC,IAAI,CAAA;EAEJC,WAAAA,CAAYC,eAA+B,EAAA;IACzC,IAAI,CAACF,IAAI,GAAG,CAACE,eAAe,IAAI,EAAE,EAAEC,GAAG,CAAEC,GAAG,IAAI;MAC9C,OAAO;AACLC,QAAAA,WAAW,EAAE;UACXC,OAAO,EAAmC,CAAAF,8BAAAA,EAAAA,GAAO,CAAA,EAAA,CAAA;AACjDG,UAAAA,OAAO,EAAE,OAAA;SACV;AACDC,QAAAA,YAAY,EAAE;AACZF,UAAAA,OAAO,EAAE,IAAIG,MAAM,CAAI,CAAAZ,EAAAA,uBAA0B,CAAAO,EAAAA,GAAM,CAAAN,EAAAA,uBAAyB,CAAA,CAAA,EAAE,GAAG,CAAC;AACtFS,UAAAA,OAAO,EAAE,IAAIE,MAAM,CAAI,CAAAZ,EAAAA,uBAA2B,CAAAO,CAAAA,EAAAA,GAAM,CAAAN,EAAAA,uBAAyB,CAAA,CAAA,EAAE,GAAG,CAAA;AACvF,SAAA;OACF,CAAA;AACH,KAAC,CAAC,CAAA;AACJ,GAAA;AAEA;AACA;AACA;AACA;AACA;AACA;EACAY,SAASA,CAACC,MAAc,EAAA;IACtB,IAAI,CAACA,MAAM,EAAE;AACX,MAAA,OAAO,IAAI,CAAA;AACZ,KAAA;IAED,MAAMC,IAAI,GAAGD,MAAM,CAACE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAEtF,OAAO,IAAI,CAACb,IAAI,CACbc,MAAM,CAAC,CAACC,WAAW,EAAEX,GAAG,KAAI;AAC3B,MAAA,OAAOW,WAAW,CACfF,OAAO,CAACT,GAAG,CAACI,YAAY,CAACF,OAAO,EAAEF,GAAG,CAACC,WAAW,CAACC,OAAO,CAAC,CAC1DO,OAAO,CAACT,GAAG,CAACI,YAAY,CAACD,OAAO,EAAEH,GAAG,CAACC,WAAW,CAACE,OAAO,CAAC,CAAA;KAC9D,EAAEK,IAAI,CAAC,CACPC,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;AACjC,GAAA;AACD;;;;"}
|
package/build/field/Field.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var classNames = require('classnames');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var InlineAlert = require('../inlineAlert/InlineAlert.js');
|
|
6
|
-
var contexts = require('../inputs/contexts.js');
|
|
7
|
-
var Label = require('../label/Label.js');
|
|
8
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
var sentiment = require('../common/propsValues/sentiment.js');
|
|
10
|
-
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var classNames__default = /*#__PURE__*/_interopDefault(classNames);
|
|
14
|
-
|
|
15
|
-
const Field = ({
|
|
16
|
-
id,
|
|
17
|
-
label,
|
|
18
|
-
hint,
|
|
19
|
-
error,
|
|
20
|
-
className,
|
|
21
|
-
children
|
|
22
|
-
}) => {
|
|
23
|
-
const hasError = Boolean(error);
|
|
24
|
-
const hasHint = Boolean(hint) && !hasError;
|
|
25
|
-
const labelId = React.useId();
|
|
26
|
-
const fallbackInputId = React.useId();
|
|
27
|
-
const inputId = id !== null ? id ?? fallbackInputId : undefined;
|
|
28
|
-
const descriptionId = React.useId();
|
|
29
|
-
return /*#__PURE__*/jsxRuntime.jsx(contexts.FieldLabelIdContextProvider, {
|
|
30
|
-
value: labelId,
|
|
31
|
-
children: /*#__PURE__*/jsxRuntime.jsx(contexts.InputIdContextProvider, {
|
|
32
|
-
value: inputId,
|
|
33
|
-
children: /*#__PURE__*/jsxRuntime.jsx(contexts.InputDescribedByProvider, {
|
|
34
|
-
value: hasError || hasHint ? descriptionId : undefined,
|
|
35
|
-
children: /*#__PURE__*/jsxRuntime.jsx(contexts.InputInvalidProvider, {
|
|
36
|
-
value: hasError,
|
|
37
|
-
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
38
|
-
className: classNames__default.default('form-group d-block', {
|
|
39
|
-
'has-error': hasError,
|
|
40
|
-
'has-info': hasHint
|
|
41
|
-
}, className),
|
|
42
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(Label.Label, {
|
|
43
|
-
id: labelId,
|
|
44
|
-
htmlFor: inputId,
|
|
45
|
-
children: [label, children]
|
|
46
|
-
}), hasHint && /*#__PURE__*/jsxRuntime.jsx(InlineAlert, {
|
|
47
|
-
type: sentiment.Sentiment.NEUTRAL,
|
|
48
|
-
id: descriptionId,
|
|
49
|
-
children: hint
|
|
50
|
-
}), hasError && /*#__PURE__*/jsxRuntime.jsx(InlineAlert, {
|
|
51
|
-
type: sentiment.Sentiment.NEGATIVE,
|
|
52
|
-
id: descriptionId,
|
|
53
|
-
children: error
|
|
54
|
-
})]
|
|
55
|
-
})
|
|
56
|
-
})
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
exports.Field = Field;
|
|
63
|
-
//# sourceMappingURL=Field.js.map
|
package/build/field/Field.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Field.js","sources":["../../src/field/Field.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useId } from 'react';\n\nimport { Sentiment } from '../common';\nimport InlineAlert from '../inlineAlert/InlineAlert';\nimport {\n FieldLabelIdContextProvider,\n InputDescribedByProvider,\n InputIdContextProvider,\n InputInvalidProvider,\n} from '../inputs/contexts';\nimport { Label } from '../label/Label';\n\nexport type FieldProps = {\n /** `null` disables auto-generating the `id` attribute, falling back to nesting-based label association over setting `htmlFor` explicitly. */\n id?: string | null;\n label: React.ReactNode;\n hint?: React.ReactNode;\n error?: React.ReactNode;\n className?: string;\n children?: React.ReactNode;\n};\n\nexport const Field = ({ id, label, hint, error, className, children }: FieldProps) => {\n const hasError = Boolean(error);\n const hasHint = Boolean(hint) && !hasError;\n\n const labelId = useId();\n\n const fallbackInputId = useId();\n const inputId = id !== null ? id ?? fallbackInputId : undefined;\n\n const descriptionId = useId();\n\n return (\n <FieldLabelIdContextProvider value={labelId}>\n <InputIdContextProvider value={inputId}>\n <InputDescribedByProvider value={hasError || hasHint ? descriptionId : undefined}>\n <InputInvalidProvider value={hasError}>\n <div\n className={classNames(\n 'form-group d-block',\n {\n 'has-error': hasError,\n 'has-info': hasHint,\n },\n className,\n )}\n >\n <Label id={labelId} htmlFor={inputId}>\n {label}\n {children}\n </Label>\n {hasHint && (\n <InlineAlert type={Sentiment.NEUTRAL} id={descriptionId}>\n {hint}\n </InlineAlert>\n )}\n {hasError && (\n <InlineAlert type={Sentiment.NEGATIVE} id={descriptionId}>\n {error}\n </InlineAlert>\n )}\n </div>\n </InputInvalidProvider>\n </InputDescribedByProvider>\n </InputIdContextProvider>\n </FieldLabelIdContextProvider>\n );\n};\n"],"names":["Field","id","label","hint","error","className","children","hasError","Boolean","hasHint","labelId","useId","fallbackInputId","inputId","undefined","descriptionId","_jsx","FieldLabelIdContextProvider","value","InputIdContextProvider","InputDescribedByProvider","InputInvalidProvider","_jsxs","classNames","Label","htmlFor","InlineAlert","type","Sentiment","NEUTRAL","NEGATIVE"],"mappings":";;;;;;;;;;;;;;AAuBO,MAAMA,KAAK,GAAGA,CAAC;EAAEC,EAAE;EAAEC,KAAK;EAAEC,IAAI;EAAEC,KAAK;EAAEC,SAAS;AAAEC,EAAAA,QAAAA;AAAQ,CAAc,KAAI;AACnF,EAAA,MAAMC,QAAQ,GAAGC,OAAO,CAACJ,KAAK,CAAC,CAAA;EAC/B,MAAMK,OAAO,GAAGD,OAAO,CAACL,IAAI,CAAC,IAAI,CAACI,QAAQ,CAAA;AAE1C,EAAA,MAAMG,OAAO,GAAGC,WAAK,EAAE,CAAA;AAEvB,EAAA,MAAMC,eAAe,GAAGD,WAAK,EAAE,CAAA;EAC/B,MAAME,OAAO,GAAGZ,EAAE,KAAK,IAAI,GAAGA,EAAE,IAAIW,eAAe,GAAGE,SAAS,CAAA;AAE/D,EAAA,MAAMC,aAAa,GAAGJ,WAAK,EAAE,CAAA;EAE7B,oBACEK,cAAA,CAACC,oCAA2B,EAAA;AAACC,IAAAA,KAAK,EAAER,OAAQ;IAAAJ,QAAA,eAC1CU,cAAA,CAACG,+BAAsB,EAAA;AAACD,MAAAA,KAAK,EAAEL,OAAQ;MAAAP,QAAA,eACrCU,cAAA,CAACI,iCAAwB,EAAA;AAACF,QAAAA,KAAK,EAAEX,QAAQ,IAAIE,OAAO,GAAGM,aAAa,GAAGD,SAAU;QAAAR,QAAA,eAC/EU,cAAA,CAACK,6BAAoB,EAAA;AAACH,UAAAA,KAAK,EAAEX,QAAS;AAAAD,UAAAA,QAAA,eACpCgB,eAAA,CAAA,KAAA,EAAA;AACEjB,YAAAA,SAAS,EAAEkB,2BAAU,CACnB,oBAAoB,EACpB;AACE,cAAA,WAAW,EAAEhB,QAAQ;AACrB,cAAA,UAAU,EAAEE,OAAAA;aACb,EACDJ,SAAS,CACT;YAAAC,QAAA,EAAA,cAEFgB,eAAA,CAACE,WAAK,EAAA;AAACvB,cAAAA,EAAE,EAAES,OAAQ;AAACe,cAAAA,OAAO,EAAEZ,OAAQ;cAAAP,QAAA,EAAA,CAClCJ,KAAK,EACLI,QAAQ,CAAA;AAAA,aACJ,CACP,EAACG,OAAO,iBACNO,cAAA,CAACU,WAAW,EAAA;cAACC,IAAI,EAAEC,mBAAS,CAACC,OAAQ;AAAC5B,cAAAA,EAAE,EAAEc,aAAc;AAAAT,cAAAA,QAAA,EACrDH,IAAAA;AAAI,aACM,CACd,EACAI,QAAQ,iBACPS,cAAA,CAACU,WAAW,EAAA;cAACC,IAAI,EAAEC,mBAAS,CAACE,QAAS;AAAC7B,cAAAA,EAAE,EAAEc,aAAc;AAAAT,cAAAA,QAAA,EACtDF,KAAAA;AAAK,aACK,CACd,CAAA;WACE,CAAA;SACe,CAAA;OACE,CAAA;KACJ,CAAA;AAC1B,GAA6B,CAAC,CAAA;AAElC;;;;"}
|
package/build/field/Field.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import { useId } from 'react';
|
|
3
|
-
import InlineAlert from '../inlineAlert/InlineAlert.mjs';
|
|
4
|
-
import { FieldLabelIdContextProvider, InputIdContextProvider, InputDescribedByProvider, InputInvalidProvider } from '../inputs/contexts.mjs';
|
|
5
|
-
import { Label } from '../label/Label.mjs';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
import { Sentiment } from '../common/propsValues/sentiment.mjs';
|
|
8
|
-
|
|
9
|
-
const Field = ({
|
|
10
|
-
id,
|
|
11
|
-
label,
|
|
12
|
-
hint,
|
|
13
|
-
error,
|
|
14
|
-
className,
|
|
15
|
-
children
|
|
16
|
-
}) => {
|
|
17
|
-
const hasError = Boolean(error);
|
|
18
|
-
const hasHint = Boolean(hint) && !hasError;
|
|
19
|
-
const labelId = useId();
|
|
20
|
-
const fallbackInputId = useId();
|
|
21
|
-
const inputId = id !== null ? id ?? fallbackInputId : undefined;
|
|
22
|
-
const descriptionId = useId();
|
|
23
|
-
return /*#__PURE__*/jsx(FieldLabelIdContextProvider, {
|
|
24
|
-
value: labelId,
|
|
25
|
-
children: /*#__PURE__*/jsx(InputIdContextProvider, {
|
|
26
|
-
value: inputId,
|
|
27
|
-
children: /*#__PURE__*/jsx(InputDescribedByProvider, {
|
|
28
|
-
value: hasError || hasHint ? descriptionId : undefined,
|
|
29
|
-
children: /*#__PURE__*/jsx(InputInvalidProvider, {
|
|
30
|
-
value: hasError,
|
|
31
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
32
|
-
className: classNames('form-group d-block', {
|
|
33
|
-
'has-error': hasError,
|
|
34
|
-
'has-info': hasHint
|
|
35
|
-
}, className),
|
|
36
|
-
children: [/*#__PURE__*/jsxs(Label, {
|
|
37
|
-
id: labelId,
|
|
38
|
-
htmlFor: inputId,
|
|
39
|
-
children: [label, children]
|
|
40
|
-
}), hasHint && /*#__PURE__*/jsx(InlineAlert, {
|
|
41
|
-
type: Sentiment.NEUTRAL,
|
|
42
|
-
id: descriptionId,
|
|
43
|
-
children: hint
|
|
44
|
-
}), hasError && /*#__PURE__*/jsx(InlineAlert, {
|
|
45
|
-
type: Sentiment.NEGATIVE,
|
|
46
|
-
id: descriptionId,
|
|
47
|
-
children: error
|
|
48
|
-
})]
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export { Field };
|
|
57
|
-
//# sourceMappingURL=Field.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Field.mjs","sources":["../../src/field/Field.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useId } from 'react';\n\nimport { Sentiment } from '../common';\nimport InlineAlert from '../inlineAlert/InlineAlert';\nimport {\n FieldLabelIdContextProvider,\n InputDescribedByProvider,\n InputIdContextProvider,\n InputInvalidProvider,\n} from '../inputs/contexts';\nimport { Label } from '../label/Label';\n\nexport type FieldProps = {\n /** `null` disables auto-generating the `id` attribute, falling back to nesting-based label association over setting `htmlFor` explicitly. */\n id?: string | null;\n label: React.ReactNode;\n hint?: React.ReactNode;\n error?: React.ReactNode;\n className?: string;\n children?: React.ReactNode;\n};\n\nexport const Field = ({ id, label, hint, error, className, children }: FieldProps) => {\n const hasError = Boolean(error);\n const hasHint = Boolean(hint) && !hasError;\n\n const labelId = useId();\n\n const fallbackInputId = useId();\n const inputId = id !== null ? id ?? fallbackInputId : undefined;\n\n const descriptionId = useId();\n\n return (\n <FieldLabelIdContextProvider value={labelId}>\n <InputIdContextProvider value={inputId}>\n <InputDescribedByProvider value={hasError || hasHint ? descriptionId : undefined}>\n <InputInvalidProvider value={hasError}>\n <div\n className={classNames(\n 'form-group d-block',\n {\n 'has-error': hasError,\n 'has-info': hasHint,\n },\n className,\n )}\n >\n <Label id={labelId} htmlFor={inputId}>\n {label}\n {children}\n </Label>\n {hasHint && (\n <InlineAlert type={Sentiment.NEUTRAL} id={descriptionId}>\n {hint}\n </InlineAlert>\n )}\n {hasError && (\n <InlineAlert type={Sentiment.NEGATIVE} id={descriptionId}>\n {error}\n </InlineAlert>\n )}\n </div>\n </InputInvalidProvider>\n </InputDescribedByProvider>\n </InputIdContextProvider>\n </FieldLabelIdContextProvider>\n );\n};\n"],"names":["Field","id","label","hint","error","className","children","hasError","Boolean","hasHint","labelId","useId","fallbackInputId","inputId","undefined","descriptionId","_jsx","FieldLabelIdContextProvider","value","InputIdContextProvider","InputDescribedByProvider","InputInvalidProvider","_jsxs","classNames","Label","htmlFor","InlineAlert","type","Sentiment","NEUTRAL","NEGATIVE"],"mappings":";;;;;;;;AAuBO,MAAMA,KAAK,GAAGA,CAAC;EAAEC,EAAE;EAAEC,KAAK;EAAEC,IAAI;EAAEC,KAAK;EAAEC,SAAS;AAAEC,EAAAA,QAAAA;AAAQ,CAAc,KAAI;AACnF,EAAA,MAAMC,QAAQ,GAAGC,OAAO,CAACJ,KAAK,CAAC,CAAA;EAC/B,MAAMK,OAAO,GAAGD,OAAO,CAACL,IAAI,CAAC,IAAI,CAACI,QAAQ,CAAA;AAE1C,EAAA,MAAMG,OAAO,GAAGC,KAAK,EAAE,CAAA;AAEvB,EAAA,MAAMC,eAAe,GAAGD,KAAK,EAAE,CAAA;EAC/B,MAAME,OAAO,GAAGZ,EAAE,KAAK,IAAI,GAAGA,EAAE,IAAIW,eAAe,GAAGE,SAAS,CAAA;AAE/D,EAAA,MAAMC,aAAa,GAAGJ,KAAK,EAAE,CAAA;EAE7B,oBACEK,GAAA,CAACC,2BAA2B,EAAA;AAACC,IAAAA,KAAK,EAAER,OAAQ;IAAAJ,QAAA,eAC1CU,GAAA,CAACG,sBAAsB,EAAA;AAACD,MAAAA,KAAK,EAAEL,OAAQ;MAAAP,QAAA,eACrCU,GAAA,CAACI,wBAAwB,EAAA;AAACF,QAAAA,KAAK,EAAEX,QAAQ,IAAIE,OAAO,GAAGM,aAAa,GAAGD,SAAU;QAAAR,QAAA,eAC/EU,GAAA,CAACK,oBAAoB,EAAA;AAACH,UAAAA,KAAK,EAAEX,QAAS;AAAAD,UAAAA,QAAA,eACpCgB,IAAA,CAAA,KAAA,EAAA;AACEjB,YAAAA,SAAS,EAAEkB,UAAU,CACnB,oBAAoB,EACpB;AACE,cAAA,WAAW,EAAEhB,QAAQ;AACrB,cAAA,UAAU,EAAEE,OAAAA;aACb,EACDJ,SAAS,CACT;YAAAC,QAAA,EAAA,cAEFgB,IAAA,CAACE,KAAK,EAAA;AAACvB,cAAAA,EAAE,EAAES,OAAQ;AAACe,cAAAA,OAAO,EAAEZ,OAAQ;cAAAP,QAAA,EAAA,CAClCJ,KAAK,EACLI,QAAQ,CAAA;AAAA,aACJ,CACP,EAACG,OAAO,iBACNO,GAAA,CAACU,WAAW,EAAA;cAACC,IAAI,EAAEC,SAAS,CAACC,OAAQ;AAAC5B,cAAAA,EAAE,EAAEc,aAAc;AAAAT,cAAAA,QAAA,EACrDH,IAAAA;AAAI,aACM,CACd,EACAI,QAAQ,iBACPS,GAAA,CAACU,WAAW,EAAA;cAACC,IAAI,EAAEC,SAAS,CAACE,QAAS;AAAC7B,cAAAA,EAAE,EAAEc,aAAc;AAAAT,cAAAA,QAAA,EACtDF,KAAAA;AAAK,aACK,CACd,CAAA;WACE,CAAA;SACe,CAAA;OACE,CAAA;KACJ,CAAA;AAC1B,GAA6B,CAAC,CAAA;AAElC;;;;"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var classNames = require('classnames');
|
|
4
|
-
var reactIntl = require('react-intl');
|
|
5
|
-
var CloseButton = require('../common/closeButton/CloseButton.js');
|
|
6
|
-
var FlowHeader = require('../common/flowHeader/FlowHeader.js');
|
|
7
|
-
var Stepper = require('../stepper/Stepper.js');
|
|
8
|
-
var useScreenSize = require('../common/hooks/useScreenSize.js');
|
|
9
|
-
var FlowNavigation_messages = require('./FlowNavigation.messages.js');
|
|
10
|
-
var AnimatedLabel = require('./animatedLabel/AnimatedLabel.js');
|
|
11
|
-
var BackButton = require('./backButton/BackButton.js');
|
|
12
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
13
|
-
var breakpoint = require('../common/propsValues/breakpoint.js');
|
|
14
|
-
var layouts = require('../common/propsValues/layouts.js');
|
|
15
|
-
var Logo = require('../logo/Logo.js');
|
|
16
|
-
|
|
17
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
|
|
19
|
-
var classNames__default = /*#__PURE__*/_interopDefault(classNames);
|
|
20
|
-
|
|
21
|
-
const FlowNavigation = ({
|
|
22
|
-
activeStep = 0,
|
|
23
|
-
avatar,
|
|
24
|
-
logo = /*#__PURE__*/jsxRuntime.jsx(Logo, {}),
|
|
25
|
-
done = false,
|
|
26
|
-
onClose,
|
|
27
|
-
onGoBack,
|
|
28
|
-
steps
|
|
29
|
-
}) => {
|
|
30
|
-
const intl = reactIntl.useIntl();
|
|
31
|
-
const closeButton = onClose != null && /*#__PURE__*/jsxRuntime.jsx(CloseButton.CloseButton, {
|
|
32
|
-
size: "lg",
|
|
33
|
-
onClick: onClose
|
|
34
|
-
});
|
|
35
|
-
const screenSm = useScreenSize.useScreenSize(breakpoint.Breakpoint.SMALL);
|
|
36
|
-
const screenLg = useScreenSize.useScreenSize(breakpoint.Breakpoint.LARGE);
|
|
37
|
-
const newAvatar = done ? null : avatar;
|
|
38
|
-
const displayGoBack = onGoBack != null && activeStep > 0;
|
|
39
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40
|
-
className: classNames__default.default('np-flow-navigation d-flex align-items-center justify-content-center p-y-3', {
|
|
41
|
-
'np-flow-navigation--border-bottom': !done
|
|
42
|
-
}),
|
|
43
|
-
children: /*#__PURE__*/jsxRuntime.jsx(FlowHeader, {
|
|
44
|
-
className: classNames__default.default('np-flow-navigation__content p-x-3', screenSm == null ? 'np-flow-navigation--hidden' : {
|
|
45
|
-
'np-flow-navigation--xs-max': !screenSm,
|
|
46
|
-
// Size switches on parent container which may or may not have the same size as the window.
|
|
47
|
-
'np-flow-navigation--sm': screenSm,
|
|
48
|
-
'np-flow-navigation--lg': screenLg
|
|
49
|
-
}),
|
|
50
|
-
leftContent: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
51
|
-
children: [!screenSm && displayGoBack ? /*#__PURE__*/jsxRuntime.jsx(BackButton, {
|
|
52
|
-
"aria-label": intl.formatMessage(FlowNavigation_messages.back),
|
|
53
|
-
onClick: onGoBack
|
|
54
|
-
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
55
|
-
className: "np-flow-header__left",
|
|
56
|
-
children: logo
|
|
57
|
-
}), !screenSm && !done && /*#__PURE__*/jsxRuntime.jsx(AnimatedLabel, {
|
|
58
|
-
className: "m-x-1",
|
|
59
|
-
labels: steps.map(step => step.label),
|
|
60
|
-
activeLabel: activeStep
|
|
61
|
-
})]
|
|
62
|
-
}),
|
|
63
|
-
rightContent: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
64
|
-
className: "np-flow-header__right d-flex align-items-center justify-content-end order-2--lg",
|
|
65
|
-
children: [newAvatar, newAvatar && closeButton && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
66
|
-
className: "m-x-1"
|
|
67
|
-
}), closeButton]
|
|
68
|
-
}),
|
|
69
|
-
bottomContent: !done && /*#__PURE__*/jsxRuntime.jsx(Stepper, {
|
|
70
|
-
activeStep: activeStep,
|
|
71
|
-
steps: steps,
|
|
72
|
-
className: classNames__default.default('np-flow-navigation__stepper')
|
|
73
|
-
}),
|
|
74
|
-
layout: !screenLg ? layouts.Layout.VERTICAL : layouts.Layout.HORIZONTAL
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
module.exports = FlowNavigation;
|
|
80
|
-
//# sourceMappingURL=FlowNavigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FlowNavigation.js","sources":["../../src/flowNavigation/FlowNavigation.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { useIntl } from 'react-intl';\n\nimport { Breakpoint, Layout } from '../common';\nimport { CloseButton } from '../common/closeButton';\nimport FlowHeader from '../common/flowHeader/FlowHeader';\nimport Logo from '../logo';\nimport Stepper, { type Step } from '../stepper/Stepper';\n\nimport { useScreenSize } from '../common/hooks/useScreenSize';\nimport messages from './FlowNavigation.messages';\nimport AnimatedLabel from './animatedLabel';\nimport BackButton from './backButton';\n\nexport interface FlowNavigationProps {\n activeStep?: number;\n avatar?: React.ReactNode;\n logo?: React.ReactNode;\n done?: boolean;\n /** Called when the close button is clicked. If not provided the close button won't show */\n onClose?: () => void;\n /** Called when the back button is clicked. If not provided the back button won't show. The back button only shows on small screens */\n onGoBack?: () => void;\n /** Steps to be displayed in stepper. If you don't need the stepper, please use OverlayHeader instead */\n steps: readonly Step[];\n}\n\nconst FlowNavigation = ({\n activeStep = 0,\n avatar,\n logo = <Logo />,\n done = false,\n onClose,\n onGoBack,\n steps,\n}: FlowNavigationProps) => {\n const intl = useIntl();\n\n const closeButton = onClose != null && <CloseButton size=\"lg\" onClick={onClose} />;\n\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const screenLg = useScreenSize(Breakpoint.LARGE);\n\n const newAvatar = done ? null : avatar;\n\n const displayGoBack = onGoBack != null && activeStep > 0;\n\n return (\n <div\n className={classNames(\n 'np-flow-navigation d-flex align-items-center justify-content-center p-y-3',\n { 'np-flow-navigation--border-bottom': !done },\n )}\n >\n <FlowHeader\n className={classNames(\n 'np-flow-navigation__content p-x-3',\n screenSm == null\n ? 'np-flow-navigation--hidden'\n : {\n 'np-flow-navigation--xs-max': !screenSm,\n // Size switches on parent container which may or may not have the same size as the window.\n 'np-flow-navigation--sm': screenSm,\n 'np-flow-navigation--lg': screenLg,\n },\n )}\n leftContent={\n <>\n {!screenSm && displayGoBack ? (\n <BackButton aria-label={intl.formatMessage(messages.back)} onClick={onGoBack} />\n ) : (\n <div className=\"np-flow-header__left\">{logo}</div>\n )}\n {!screenSm && !done && (\n <AnimatedLabel\n className=\"m-x-1\"\n labels={steps.map((step) => step.label)}\n activeLabel={activeStep}\n />\n )}\n </>\n }\n rightContent={\n <div className=\"np-flow-header__right d-flex align-items-center justify-content-end order-2--lg\">\n {newAvatar}\n {newAvatar && closeButton && <span className=\"m-x-1\" />}\n {closeButton}\n </div>\n }\n bottomContent={\n !done && (\n <Stepper\n activeStep={activeStep}\n steps={steps}\n className={classNames('np-flow-navigation__stepper')}\n />\n )\n }\n layout={!screenLg ? Layout.VERTICAL : Layout.HORIZONTAL}\n />\n </div>\n );\n};\n\nexport default FlowNavigation;\n"],"names":["FlowNavigation","activeStep","avatar","logo","_jsx","Logo","done","onClose","onGoBack","steps","intl","useIntl","closeButton","CloseButton","size","onClick","screenSm","useScreenSize","Breakpoint","SMALL","screenLg","LARGE","newAvatar","displayGoBack","className","classNames","children","FlowHeader","leftContent","_jsxs","_Fragment","BackButton","formatMessage","messages","back","AnimatedLabel","labels","map","step","label","activeLabel","rightContent","bottomContent","Stepper","layout","Layout","VERTICAL","HORIZONTAL"],"mappings":"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"}
|