@transferwise/components 46.100.0 → 46.100.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/accordion/Accordion.js.map +1 -1
- package/build/accordion/Accordion.mjs.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
- package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
- package/build/actionButton/ActionButton.js.map +1 -1
- package/build/actionButton/ActionButton.mjs.map +1 -1
- package/build/actionOption/ActionOption.js.map +1 -1
- package/build/actionOption/ActionOption.mjs.map +1 -1
- package/build/alert/Alert.js.map +1 -1
- package/build/alert/Alert.mjs.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
- package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatar/avatarTypes.js.map +1 -1
- package/build/avatar/avatarTypes.mjs.map +1 -1
- package/build/avatarLayout/AvatarLayout.js +1 -1
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +1 -1
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/avatarView/NotificationDot.js.map +1 -1
- package/build/avatarView/NotificationDot.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs.map +1 -1
- package/build/badge/BadgeAssets.js.map +1 -1
- package/build/badge/BadgeAssets.mjs.map +1 -1
- package/build/body/Body.js.map +1 -1
- package/build/body/Body.mjs.map +1 -1
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs.map +1 -1
- package/build/button/Button.resolver.js.map +1 -1
- package/build/button/Button.resolver.mjs.map +1 -1
- package/build/button/LegacyButton.js.map +1 -1
- package/build/button/LegacyButton.mjs.map +1 -1
- package/build/button/legacyUtils/legacyUtils.js.map +1 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
- package/build/card/Card.js.map +1 -1
- package/build/card/Card.mjs.map +1 -1
- package/build/carousel/Carousel.js.map +1 -1
- package/build/carousel/Carousel.mjs.map +1 -1
- package/build/checkbox/Checkbox.js.map +1 -1
- package/build/checkbox/Checkbox.mjs.map +1 -1
- package/build/checkboxButton/CheckboxButton.js.map +1 -1
- package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
- package/build/checkboxOption/CheckboxOption.js.map +1 -1
- package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
- package/build/chevron/Chevron.js.map +1 -1
- package/build/chevron/Chevron.mjs.map +1 -1
- package/build/chips/Chip.js.map +1 -1
- package/build/chips/Chip.mjs.map +1 -1
- package/build/chips/Chips.js.map +1 -1
- package/build/chips/Chips.mjs.map +1 -1
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/DOMOperations/DOMOperations.js.map +1 -1
- package/build/common/DOMOperations/DOMOperations.mjs.map +1 -1
- package/build/common/Option/Option.js.map +1 -1
- package/build/common/Option/Option.mjs.map +1 -1
- package/build/common/RadioButton/RadioButton.js.map +1 -1
- package/build/common/RadioButton/RadioButton.mjs.map +1 -1
- package/build/common/bottomSheet/BottomSheet.js.map +1 -1
- package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
- package/build/common/card/Card.js.map +1 -1
- package/build/common/card/Card.mjs.map +1 -1
- package/build/common/circle/Circle.js.map +1 -1
- package/build/common/circle/Circle.mjs.map +1 -1
- package/build/common/closeButton/CloseButton.js.map +1 -1
- package/build/common/closeButton/CloseButton.mjs.map +1 -1
- package/build/common/colors.js.map +1 -1
- package/build/common/colors.mjs.map +1 -1
- package/build/common/dateUtils/getDayNames/getDayNames.js.map +1 -1
- package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +1 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +1 -1
- package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +1 -1
- package/build/common/dateUtils/isDateValid/isDateValid.js.map +1 -1
- package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +1 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +1 -1
- package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +1 -1
- package/build/common/deviceDetection/deviceDetection.js.map +1 -1
- package/build/common/deviceDetection/deviceDetection.mjs.map +1 -1
- package/build/common/direction.js.map +1 -1
- package/build/common/direction.mjs.map +1 -1
- package/build/common/domHelpers/documentIosClick.js.map +1 -1
- package/build/common/domHelpers/documentIosClick.mjs.map +1 -1
- package/build/common/fileType.js.map +1 -1
- package/build/common/fileType.mjs.map +1 -1
- package/build/common/flowHeader/FlowHeader.js.map +1 -1
- package/build/common/flowHeader/FlowHeader.mjs.map +1 -1
- package/build/common/focusBoundary/FocusBoundary.js.map +1 -1
- package/build/common/focusBoundary/FocusBoundary.mjs.map +1 -1
- package/build/common/historyNavigator/historyNavigator.js.map +1 -1
- package/build/common/historyNavigator/historyNavigator.mjs.map +1 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +1 -1
- package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +1 -1
- package/build/common/hooks/useDirection/useDirection.js.map +1 -1
- package/build/common/hooks/useDirection/useDirection.mjs.map +1 -1
- package/build/common/hooks/useEffectEvent.js.map +1 -1
- package/build/common/hooks/useEffectEvent.mjs.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +1 -1
- package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +1 -1
- package/build/common/hooks/useLayout/useLayout.js.map +1 -1
- package/build/common/hooks/useLayout/useLayout.mjs.map +1 -1
- package/build/common/hooks/useMedia.js.map +1 -1
- package/build/common/hooks/useMedia.mjs.map +1 -1
- package/build/common/hooks/useResizeObserver.js.map +1 -1
- package/build/common/hooks/useResizeObserver.mjs.map +1 -1
- package/build/common/hooks/useScreenSize.js.map +1 -1
- package/build/common/hooks/useScreenSize.mjs.map +1 -1
- package/build/common/hooks/useVirtualKeyboard.js.map +1 -1
- package/build/common/hooks/useVirtualKeyboard.mjs.map +1 -1
- package/build/common/initials.js.map +1 -1
- package/build/common/initials.mjs.map +1 -1
- package/build/common/locale/index.js +1 -1
- package/build/common/locale/index.js.map +1 -1
- package/build/common/locale/index.mjs +1 -1
- package/build/common/locale/index.mjs.map +1 -1
- package/build/common/panel/Panel.js.map +1 -1
- package/build/common/panel/Panel.mjs.map +1 -1
- package/build/common/propsValues/breakpoint.js.map +1 -1
- package/build/common/propsValues/breakpoint.mjs.map +1 -1
- package/build/common/propsValues/control.js.map +1 -1
- package/build/common/propsValues/control.mjs.map +1 -1
- package/build/common/propsValues/dateMode.js.map +1 -1
- package/build/common/propsValues/dateMode.mjs.map +1 -1
- package/build/common/propsValues/layouts.js.map +1 -1
- package/build/common/propsValues/layouts.mjs.map +1 -1
- package/build/common/propsValues/markdownNodeType.js.map +1 -1
- package/build/common/propsValues/markdownNodeType.mjs.map +1 -1
- package/build/common/propsValues/monthFormat.js.map +1 -1
- package/build/common/propsValues/monthFormat.mjs.map +1 -1
- package/build/common/propsValues/position.js.map +1 -1
- package/build/common/propsValues/position.mjs.map +1 -1
- package/build/common/propsValues/profileType.js.map +1 -1
- package/build/common/propsValues/profileType.mjs.map +1 -1
- package/build/common/propsValues/scroll.js.map +1 -1
- package/build/common/propsValues/scroll.mjs.map +1 -1
- package/build/common/propsValues/sentiment.js.map +1 -1
- package/build/common/propsValues/sentiment.mjs.map +1 -1
- package/build/common/propsValues/size.js.map +1 -1
- package/build/common/propsValues/size.mjs.map +1 -1
- package/build/common/propsValues/status.js.map +1 -1
- package/build/common/propsValues/status.mjs.map +1 -1
- package/build/common/propsValues/type.js.map +1 -1
- package/build/common/propsValues/type.mjs.map +1 -1
- package/build/common/propsValues/typography.js.map +1 -1
- package/build/common/propsValues/typography.mjs.map +1 -1
- package/build/common/propsValues/variant.js.map +1 -1
- package/build/common/propsValues/variant.mjs.map +1 -1
- package/build/common/propsValues/width.js.map +1 -1
- package/build/common/propsValues/width.mjs.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
- package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +1 -1
- package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +1 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +1 -1
- package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +1 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +1 -1
- package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +1 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +1 -1
- package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +1 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +1 -1
- package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +1 -1
- package/build/common/theme.js.map +1 -1
- package/build/common/theme.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
- package/build/dateInput/DateInput.js.map +1 -1
- package/build/dateInput/DateInput.mjs.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +1 -1
- package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +1 -1
- package/build/dateLookup/DateLookup.js +3 -2
- package/build/dateLookup/DateLookup.js.map +1 -1
- package/build/dateLookup/DateLookup.mjs +3 -2
- package/build/dateLookup/DateLookup.mjs.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
- package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.js.map +1 -1
- package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +1 -1
- package/build/dateLookup/dayCalendar/DayCalendar.js.map +1 -1
- package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
- package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +1 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +1 -1
- package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +1 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.js.map +1 -1
- package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +1 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +1 -1
- package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +1 -1
- package/build/dateLookup/tableLink/TableLink.js.map +1 -1
- package/build/dateLookup/tableLink/TableLink.mjs.map +1 -1
- package/build/dateLookup/yearCalendar/YearCalendar.js.map +1 -1
- package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +1 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +1 -1
- package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +1 -1
- package/build/decision/Decision.js.map +1 -1
- package/build/decision/Decision.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.js.map +1 -1
- package/build/dimmer/dimmerManager/DimmerManager.mjs.map +1 -1
- package/build/display/Display.js.map +1 -1
- package/build/display/Display.mjs.map +1 -1
- package/build/divider/Divider.js.map +1 -1
- package/build/divider/Divider.mjs.map +1 -1
- package/build/drawer/Drawer.js.map +1 -1
- package/build/drawer/Drawer.mjs.map +1 -1
- package/build/dropFade/DropFade.js.map +1 -1
- package/build/dropFade/DropFade.mjs.map +1 -1
- package/build/emphasis/Emphasis.js.map +1 -1
- package/build/emphasis/Emphasis.mjs.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.js.map +1 -1
- package/build/emphasis/EmphasisHtmlTransformer.mjs.map +1 -1
- package/build/field/Field.js.map +1 -1
- package/build/field/Field.mjs.map +1 -1
- package/build/flowNavigation/FlowNavigation.js.map +1 -1
- package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs.map +1 -1
- package/build/i18n/index.js +2 -0
- package/build/i18n/index.js.map +1 -1
- package/build/i18n/index.mjs +2 -0
- package/build/i18n/index.mjs.map +1 -1
- package/build/i18n/nl.json.js +81 -0
- package/build/i18n/nl.json.js.map +1 -0
- package/build/i18n/nl.json.mjs +77 -0
- package/build/i18n/nl.json.mjs.map +1 -0
- package/build/image/Image.js.map +1 -1
- package/build/image/Image.mjs.map +1 -1
- package/build/info/Info.js.map +1 -1
- package/build/info/Info.mjs.map +1 -1
- package/build/info/infoPresentations.js.map +1 -1
- package/build/info/infoPresentations.mjs.map +1 -1
- package/build/inlineAlert/InlineAlert.js.map +1 -1
- package/build/inlineAlert/InlineAlert.mjs.map +1 -1
- package/build/inputs/Input.js.map +1 -1
- package/build/inputs/Input.mjs.map +1 -1
- package/build/inputs/InputGroup.js.map +1 -1
- package/build/inputs/InputGroup.mjs.map +1 -1
- package/build/inputs/SearchInput.js.map +1 -1
- package/build/inputs/SearchInput.mjs.map +1 -1
- package/build/inputs/SelectInput.js.map +1 -1
- package/build/inputs/SelectInput.mjs.map +1 -1
- package/build/inputs/_BottomSheet.js.map +1 -1
- package/build/inputs/_BottomSheet.mjs.map +1 -1
- package/build/inputs/_ButtonInput.js.map +1 -1
- package/build/inputs/_ButtonInput.mjs.map +1 -1
- package/build/inputs/_Popover.js.map +1 -1
- package/build/inputs/_Popover.mjs.map +1 -1
- package/build/inputs/contexts.js.map +1 -1
- package/build/inputs/contexts.mjs.map +1 -1
- package/build/instructionsList/InstructionsList.js.map +1 -1
- package/build/instructionsList/InstructionsList.mjs.map +1 -1
- package/build/label/Label.js.map +1 -1
- package/build/label/Label.mjs.map +1 -1
- package/build/legacylistItem/LegacyListItem.js.map +1 -1
- package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
- package/build/legacylistItem/List.js.map +1 -1
- package/build/legacylistItem/List.mjs.map +1 -1
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.mjs.map +1 -1
- package/build/loader/Loader.js.map +1 -1
- package/build/loader/Loader.mjs.map +1 -1
- package/build/logo/Logo.js.map +1 -1
- package/build/logo/Logo.mjs.map +1 -1
- package/build/logo/logo-assets.js.map +1 -1
- package/build/logo/logo-assets.mjs.map +1 -1
- package/build/main.css +4 -94
- package/build/markdown/Markdown.js.map +1 -1
- package/build/markdown/Markdown.mjs.map +1 -1
- package/build/mocks.js.map +1 -1
- package/build/mocks.mjs.map +1 -1
- package/build/modal/Modal.js.map +1 -1
- package/build/modal/Modal.mjs.map +1 -1
- package/build/money/Money.js.map +1 -1
- package/build/money/Money.mjs.map +1 -1
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/moneyInput/currencyFormatting.js.map +1 -1
- package/build/moneyInput/currencyFormatting.mjs.map +1 -1
- package/build/navigationOption/NavigationOption.js.map +1 -1
- package/build/navigationOption/NavigationOption.mjs.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
- package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/overlayHeader/OverlayHeader.js.map +1 -1
- package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/phoneNumberInput/data/countries.js.map +1 -1
- package/build/phoneNumberInput/data/countries.mjs.map +1 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +1 -1
- package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +1 -1
- package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +1 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js.map +1 -1
- package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs.map +1 -1
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js.map +1 -1
- package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs.map +1 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +1 -1
- package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +1 -1
- package/build/popover/Popover.js.map +1 -1
- package/build/popover/Popover.mjs.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/PrimitiveButton.mjs.map +1 -1
- package/build/processIndicator/ProcessIndicator.js.map +1 -1
- package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
- package/build/progress/Progress.js.map +1 -1
- package/build/progress/Progress.mjs.map +1 -1
- package/build/progressBar/ProgressBar.js.map +1 -1
- package/build/progressBar/ProgressBar.mjs.map +1 -1
- package/build/promoCard/PromoCard.js.map +1 -1
- package/build/promoCard/PromoCard.mjs.map +1 -1
- package/build/promoCard/PromoCardContext.js.map +1 -1
- package/build/promoCard/PromoCardContext.mjs.map +1 -1
- package/build/promoCard/PromoCardGroup.js.map +1 -1
- package/build/promoCard/PromoCardGroup.mjs.map +1 -1
- package/build/promoCard/PromoCardIndicator.js.map +1 -1
- package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
- package/build/provider/Provider.js.map +1 -1
- package/build/provider/Provider.mjs.map +1 -1
- package/build/provider/direction/DirectionProvider.js.map +1 -1
- package/build/provider/direction/DirectionProvider.mjs.map +1 -1
- package/build/provider/language/LanguageProvider.js.map +1 -1
- package/build/provider/language/LanguageProvider.mjs.map +1 -1
- package/build/provider/overlay/OverlayIdProvider.js.map +1 -1
- package/build/provider/overlay/OverlayIdProvider.mjs.map +1 -1
- package/build/radio/Radio.js.map +1 -1
- package/build/radio/Radio.mjs.map +1 -1
- package/build/radioGroup/RadioGroup.js.map +1 -1
- package/build/radioGroup/RadioGroup.mjs.map +1 -1
- package/build/radioOption/RadioOption.js.map +1 -1
- package/build/radioOption/RadioOption.mjs.map +1 -1
- package/build/section/Section.js.map +1 -1
- package/build/section/Section.mjs.map +1 -1
- package/build/segmentedControl/SegmentedControl.js.map +1 -1
- package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs.map +1 -1
- package/build/select/option/Option.js.map +1 -1
- package/build/select/option/Option.mjs.map +1 -1
- package/build/select/searchBox/SearchBox.js.map +1 -1
- package/build/select/searchBox/SearchBox.mjs.map +1 -1
- package/build/slidingPanel/SlidingPanel.js.map +1 -1
- package/build/slidingPanel/SlidingPanel.mjs.map +1 -1
- package/build/snackbar/Snackbar.js.map +1 -1
- package/build/snackbar/Snackbar.mjs.map +1 -1
- package/build/snackbar/SnackbarContext.js.map +1 -1
- package/build/snackbar/SnackbarContext.mjs.map +1 -1
- package/build/snackbar/SnackbarProvider.js.map +1 -1
- package/build/snackbar/SnackbarProvider.mjs.map +1 -1
- package/build/snackbar/useSnackbar.js.map +1 -1
- package/build/snackbar/useSnackbar.mjs.map +1 -1
- package/build/statusIcon/StatusIcon.js.map +1 -1
- package/build/statusIcon/StatusIcon.mjs.map +1 -1
- package/build/stepper/Stepper.js.map +1 -1
- package/build/stepper/Stepper.mjs.map +1 -1
- package/build/stepper/deviceDetection.js.map +1 -1
- package/build/stepper/deviceDetection.mjs.map +1 -1
- package/build/sticky/Sticky.js.map +1 -1
- package/build/sticky/Sticky.mjs.map +1 -1
- package/build/styles/accordion/Accordion.css +27 -16
- package/build/styles/avatar/Avatar.css +95 -50
- package/build/styles/inputs/Input.css +37 -21
- package/build/styles/inputs/TextArea.css +35 -20
- package/build/styles/loader/Loader.css +4 -90
- package/build/styles/main.css +4 -94
- package/build/styles/popover/Popover.css +19 -12
- package/build/styles/select/Select.css +131 -68
- package/build/styles/switch/Switch.css +27 -16
- package/build/styles/tile/Tile.css +31 -18
- package/build/summary/Summary.js.map +1 -1
- package/build/summary/Summary.mjs.map +1 -1
- package/build/switch/Switch.js.map +1 -1
- package/build/switch/Switch.mjs.map +1 -1
- package/build/switchOption/SwitchOption.js.map +1 -1
- package/build/switchOption/SwitchOption.mjs.map +1 -1
- package/build/table/Table.js.map +1 -1
- package/build/table/Table.mjs.map +1 -1
- package/build/table/TableCell.js.map +1 -1
- package/build/table/TableCell.mjs.map +1 -1
- package/build/table/TableHeader.js.map +1 -1
- package/build/table/TableHeader.mjs.map +1 -1
- package/build/table/TableRow.js.map +1 -1
- package/build/table/TableRow.mjs.map +1 -1
- package/build/table/TableStatusText.js.map +1 -1
- package/build/table/TableStatusText.mjs.map +1 -1
- package/build/tabs/Tab.js.map +1 -1
- package/build/tabs/Tab.mjs.map +1 -1
- package/build/tabs/TabList.js.map +1 -1
- package/build/tabs/TabList.mjs.map +1 -1
- package/build/tabs/TabPanel.js.map +1 -1
- package/build/tabs/TabPanel.mjs.map +1 -1
- package/build/tabs/Tabs.js.map +1 -1
- package/build/tabs/Tabs.mjs.map +1 -1
- package/build/tabs/utils.js.map +1 -1
- package/build/tabs/utils.mjs.map +1 -1
- package/build/tile/Tile.js.map +1 -1
- package/build/tile/Tile.mjs.map +1 -1
- package/build/title/Title.js.map +1 -1
- package/build/title/Title.mjs.map +1 -1
- package/build/tooltip/Tooltip.js.map +1 -1
- package/build/tooltip/Tooltip.mjs.map +1 -1
- package/build/typeahead/Typeahead.js.map +1 -1
- package/build/typeahead/Typeahead.mjs.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +1 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +1 -1
- package/build/typeahead/util/highlight.js.map +1 -1
- package/build/typeahead/util/highlight.mjs.map +1 -1
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/dateLookup/DateLookup.d.ts +2 -2
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/i18n/index.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +2 -3
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/upload/Upload.js.map +1 -1
- package/build/upload/Upload.mjs.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
- package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +1 -1
- package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +1 -1
- package/build/upload/utils/getFileType/getFileType.js.map +1 -1
- package/build/upload/utils/getFileType/getFileType.mjs.map +1 -1
- package/build/upload/utils/isSizeValid/isSizeValid.js.map +1 -1
- package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +1 -1
- package/build/upload/utils/isTypeValid/isTypeValid.js.map +1 -1
- package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +1 -1
- package/build/upload/utils/postData/postData.js.map +1 -1
- package/build/upload/utils/postData/postData.mjs.map +1 -1
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/build/uploadInput/uploadButton/defaults.js.map +1 -1
- package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
- package/build/uploadInput/uploadItem/UploadItemLink.js.map +1 -1
- package/build/uploadInput/uploadItem/UploadItemLink.mjs.map +1 -1
- package/build/utilities/cssValueWithUnit.js.map +1 -1
- package/build/utilities/cssValueWithUnit.mjs.map +1 -1
- package/build/utilities/logActionRequired.js.map +1 -1
- package/build/utilities/logActionRequired.mjs.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
- package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
- package/build/withId/withId.js.map +1 -1
- package/build/withId/withId.mjs.map +1 -1
- package/build/withNextPortal/withNextPortal.js.map +1 -1
- package/build/withNextPortal/withNextPortal.mjs.map +1 -1
- package/package.json +37 -45
- package/src/accordion/Accordion.css +27 -16
- package/src/accordion/Accordion.story.tsx +31 -22
- package/src/actionButton/ActionButton.story.tsx +3 -3
- package/src/actionOption/ActionOption.story.tsx +2 -3
- package/src/alert/Alert.story.tsx +3 -3
- package/src/alert/Alert.tests.story.tsx +2 -2
- package/src/avatar/Avatar.css +95 -50
- package/src/avatar/Avatar.spec.tsx +7 -4
- package/src/avatar/Avatar.story.tsx +3 -3
- package/src/avatarLayout/AvatarLayout.story.tsx +1 -4
- package/src/avatarLayout/AvatarLayout.tsx +1 -1
- package/src/avatarView/AvatarView.story.tsx +1 -7
- package/src/avatarWrapper/AvatarWrapper.story.tsx +3 -3
- package/src/badge/Badge.story.tsx +49 -29
- package/src/body/Body.story.tsx +0 -1
- package/src/button/Button.accessibility.docs.mdx +1 -1
- package/src/button/Button.story.tsx +3 -3
- package/src/button/Button.tests.story.tsx +2 -2
- package/src/button/LegacyButton.story.tsx +4 -3
- package/src/card/Card.story.tsx +2 -3
- package/src/carousel/Carousel.story.tsx +1 -1
- package/src/checkbox/Checkbox.story.tsx +2 -3
- package/src/checkboxButton/CheckboxButton.story.tsx +3 -3
- package/src/checkboxOption/CheckboxOption.story.tsx +35 -30
- package/src/chevron/Chevron.story.tsx +1 -2
- package/src/chips/Chips.story.tsx +1 -2
- package/src/circularButton/CircularButton.story.tsx +2 -2
- package/src/circularButton/CircularButton.tests.story.tsx +1 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +7 -6
- package/src/common/card/Card.story.tsx +1 -2
- package/src/common/circle/Circle.story.tsx +2 -3
- package/src/common/locale/index.spec.ts +29 -17
- package/src/common/locale/index.ts +2 -0
- package/src/common/responsivePanel/ResponsivePanel.spec.js +8 -29
- package/src/criticalBanner/CriticalCommsBanner.story.tsx +1 -2
- package/src/dateInput/DateInput.story.tsx +2 -3
- package/src/dateInput/DateInput.tests.story.tsx +2 -2
- package/src/dateLookup/DateLookup.spec.tsx +5 -5
- package/src/dateLookup/DateLookup.story.tsx +43 -71
- package/src/dateLookup/DateLookup.tests.story.tsx +3 -3
- package/src/dateLookup/DateLookup.tsx +4 -1
- package/src/decision/Decision.story.tsx +24 -49
- package/src/definitionList/DefinitionList.story.tsx +1 -1
- package/src/dimmer/Dimmer.story.tsx +2 -2
- package/src/divider/Divider.accessibility.docs.mdx +1 -1
- package/src/divider/Divider.story.tsx +2 -2
- package/src/drawer/Drawer.story.tsx +13 -7
- package/src/dropFade/DropFade.story.tsx +1 -1
- package/src/emphasis/Emphasis.spec.tsx +8 -8
- package/src/emphasis/Emphasis.story.tsx +1 -2
- package/src/field/Field.story.tsx +4 -4
- package/src/flowNavigation/FlowNavigation.story.tsx +305 -260
- package/src/i18n/index.ts +2 -0
- package/src/iconButton/IconButton.story.tsx +2 -3
- package/src/image/Image.story.tsx +27 -54
- package/src/info/Info.story.tsx +3 -2
- package/src/inlineAlert/InlineAlert.story.tsx +1 -1
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +3 -2
- package/src/inputs/Input.css +37 -21
- package/src/inputs/InputGroup.story.tsx +1 -1
- package/src/inputs/SearchInput.story.tsx +1 -1
- package/src/inputs/SelectInput.docs.mdx +1 -1
- package/src/inputs/SelectInput.story.tsx +3 -3
- package/src/inputs/TextArea.css +35 -20
- package/src/instructionsList/InstructionsList.story.tsx +2 -3
- package/src/label/Label.story.tsx +0 -1
- package/src/legacylistItem/LegacyListItem.story.tsx +1 -2
- package/src/loader/Loader.css +4 -90
- package/src/loader/Loader.story.tsx +1 -2
- package/src/logo/Logo.story.tsx +1 -2
- package/src/main.css +4 -94
- package/src/markdown/Markdown.story.tsx +1 -2
- package/src/modal/Modal.story.tsx +13 -8
- package/src/money/Money.story.tsx +1 -1
- package/src/moneyInput/MoneyInput.docs.mdx +1 -1
- package/src/moneyInput/MoneyInput.spec.tsx +8 -5
- package/src/moneyInput/MoneyInput.story.tsx +2 -3
- package/src/moneyInput/currencyFormatting.spec.ts +1 -1
- package/src/navigationOption/NavigationOption.story.tsx +264 -226
- package/src/nudge/Nudge.story.tsx +1 -1
- package/src/overlayHeader/OverlayHeader.story.tsx +32 -24
- package/src/phoneNumberInput/PhoneNumberInput.story.tsx +1 -2
- package/src/phoneNumberInput/utils/setDefaultPrefix/setDefaultPrefix.spec.ts +6 -3
- package/src/popover/Popover.css +19 -12
- package/src/popover/Popover.story.tsx +3 -3
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +2 -3
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.tests.story.tsx +2 -2
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +2 -3
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.tests.story.tsx +2 -3
- package/src/processIndicator/ProcessIndicator.story.tsx +1 -2
- package/src/progress/Progress.story.tsx +1 -1
- package/src/progressBar/ProgressBar.story.tsx +1 -2
- package/src/promoCard/PromoCard.story.tsx +2 -2
- package/src/promoCard/PromoCardGroup.story.tsx +1 -2
- package/src/provider/Provider.spec.tsx +2 -2
- package/src/provider/Provider.story.tsx +1 -1
- package/src/provider/direction/DirectionProvider.spec.tsx +1 -1
- package/src/provider/language/LanguageProvider.spec.tsx +1 -1
- package/src/provider/theme/ThemeProvider.story.tsx +1 -1
- package/src/radio/Radio.story.tsx +59 -42
- package/src/radioGroup/RadioGroup.story.tsx +2 -2
- package/src/radioOption/RadioOption.story.tsx +73 -38
- package/src/segmentedControl/SegmentedControl.story.tsx +1 -1
- package/src/select/Select.css +131 -68
- package/src/select/Select.story.tsx +385 -397
- package/src/slidingPanel/SlidingPanel.story.tsx +30 -13
- package/src/snackbar/Snackbar.story.tsx +50 -36
- package/src/snackbar/Snackbar.tests.story.tsx +3 -2
- package/src/statusIcon/StatusIcon.docs.mdx +1 -1
- package/src/statusIcon/StatusIcon.spec.tsx +8 -5
- package/src/statusIcon/StatusIcon.story.tsx +2 -2
- package/src/stepper/Stepper.story.tsx +2 -3
- package/src/stepper/Stepper.tests.story.tsx +2 -2
- package/src/sticky/Sticky.story.tsx +2 -2
- package/src/summary/Summary.story.tsx +18 -17
- package/src/switch/Switch.css +27 -16
- package/src/switch/Switch.story.tsx +2 -3
- package/src/switchOption/SwitchOption.story.tsx +2 -2
- package/src/table/Table.story.tsx +1 -2
- package/src/tabs/Tabs.story.tsx +0 -1
- package/src/test-utils/story-config.ts +9 -6
- package/src/textareaWithDisplayFormat/TextareaWithDisplayFormat.story.tsx +2 -2
- package/src/tile/Tile.css +31 -18
- package/src/tile/Tile.story.tsx +43 -43
- package/src/tooltip/Tooltip.story.tsx +2 -3
- package/src/typeahead/Typeahead.story.tsx +3 -2
- package/src/upload/Upload.story.tsx +3 -3
- package/src/upload/Upload.tests.story.tsx +2 -2
- package/src/upload/utils/isTypeValid/isTypeValid.spec.ts +3 -1
- package/src/uploadInput/UploadInput.story.tsx +1 -2
- package/src/uploadInput/UploadInput.tests.story.tsx +3 -3
- package/src/withId/withId.docs.mdx +1 -1
- package/src/withId/withId.story.tsx +1 -1
- package/src/common/responsivePanel/__snapshots__/ResponsivePanel.spec.js.snap +0 -21
|
@@ -1,288 +1,333 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { useState } from 'react';
|
|
3
|
-
|
|
4
3
|
import AvatarView from '../avatarView';
|
|
5
4
|
import Body from '../body';
|
|
6
5
|
import Button from '../button';
|
|
7
6
|
import { ProfileType, Typography } from '../common';
|
|
8
7
|
import Logo from '../logo';
|
|
9
8
|
import OverlayHeader from '../overlayHeader';
|
|
10
|
-
|
|
11
|
-
import FlowNavigation from './FlowNavigation';
|
|
12
9
|
import { lorem10 } from '../test-utils';
|
|
13
10
|
import Display from '../display';
|
|
14
11
|
import Sticky from '../sticky';
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
component: FlowNavigation,
|
|
18
|
-
title: 'Navigation/FlowNavigation',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const Variants = () => {
|
|
22
|
-
const [activeStep, setActiveStep] = useState(2);
|
|
23
|
-
const [closed, setClosed] = useState(false);
|
|
24
|
-
const profileType = select(
|
|
25
|
-
'avatar',
|
|
26
|
-
[ProfileType.PERSONAL, ProfileType.BUSINESS],
|
|
27
|
-
ProfileType.PERSONAL,
|
|
28
|
-
);
|
|
29
|
-
const showCloseButton = boolean('show closeButton', true);
|
|
30
|
-
const showMobileBackButton = boolean('show mobile backButton', true);
|
|
31
|
-
const done = boolean('done', false);
|
|
32
|
-
const avatarURL = text('avatarURL', '../tapestry-01.png');
|
|
33
|
-
|
|
34
|
-
return !closed ? (
|
|
35
|
-
<>
|
|
36
|
-
<FlowNavigation
|
|
37
|
-
avatar={!profileType ? null : <AvatarView profileType={profileType} />}
|
|
38
|
-
logo={<Logo />}
|
|
39
|
-
activeStep={activeStep}
|
|
40
|
-
done={done}
|
|
41
|
-
steps={[
|
|
42
|
-
{
|
|
43
|
-
label: 'Amount',
|
|
44
|
-
hoverLabel: <strong>100 GBP</strong>,
|
|
45
|
-
onClick: () => setActiveStep(0),
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: 'You',
|
|
49
|
-
hoverLabel: <>Elena Durante - elenadurante@test.com</>,
|
|
50
|
-
onClick: () => setActiveStep(1),
|
|
51
|
-
},
|
|
52
|
-
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(2) },
|
|
53
|
-
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(3) },
|
|
54
|
-
{
|
|
55
|
-
label: 'Pay',
|
|
56
|
-
hoverLabel: 'Enrico Gusso II',
|
|
57
|
-
onClick: () => setActiveStep(4),
|
|
58
|
-
},
|
|
59
|
-
]}
|
|
60
|
-
onClose={showCloseButton ? () => setClosed(true) : undefined}
|
|
61
|
-
onGoBack={
|
|
62
|
-
showMobileBackButton
|
|
63
|
-
? () => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)
|
|
64
|
-
: undefined
|
|
65
|
-
}
|
|
66
|
-
/>
|
|
13
|
+
import FlowNavigation, { FlowNavigationProps } from './FlowNavigation';
|
|
67
14
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<>
|
|
76
|
-
<div>
|
|
77
|
-
<strong>100 GBP</strong>
|
|
78
|
-
</div>
|
|
79
|
-
0.2351 ETH
|
|
80
|
-
</>
|
|
81
|
-
),
|
|
82
|
-
onClick: () => setActiveStep(0),
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: 'You',
|
|
86
|
-
hoverLabel: (
|
|
87
|
-
<>
|
|
88
|
-
<div>
|
|
89
|
-
<strong>Elena Durante</strong>
|
|
90
|
-
</div>
|
|
91
|
-
elenadurante@test.com
|
|
92
|
-
</>
|
|
93
|
-
),
|
|
94
|
-
onClick: () => setActiveStep(1),
|
|
95
|
-
},
|
|
96
|
-
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(2) },
|
|
97
|
-
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(3) },
|
|
98
|
-
{
|
|
99
|
-
label: 'Pay',
|
|
100
|
-
hoverLabel: 'Enrico Gusso II',
|
|
101
|
-
onClick: () => setActiveStep(4),
|
|
102
|
-
},
|
|
103
|
-
]}
|
|
104
|
-
onClose={showCloseButton ? () => setClosed(true) : undefined}
|
|
105
|
-
onGoBack={
|
|
106
|
-
showMobileBackButton
|
|
107
|
-
? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
|
|
108
|
-
: undefined
|
|
109
|
-
}
|
|
110
|
-
/>
|
|
15
|
+
interface CustomControls {
|
|
16
|
+
showCloseButton: boolean;
|
|
17
|
+
showMobileBackButton: boolean;
|
|
18
|
+
avatarURL?: string;
|
|
19
|
+
profileType?: ProfileType;
|
|
20
|
+
}
|
|
21
|
+
export type StoryArgs = FlowNavigationProps & CustomControls;
|
|
111
22
|
|
|
112
|
-
|
|
113
|
-
done={done}
|
|
114
|
-
avatar={<AvatarView imgSrc={avatarURL} profileType={profileType} />}
|
|
115
|
-
activeStep={activeStep}
|
|
116
|
-
steps={[
|
|
117
|
-
{
|
|
118
|
-
label: 'Amount',
|
|
119
|
-
hoverLabel: (
|
|
120
|
-
<>
|
|
121
|
-
<div>
|
|
122
|
-
<strong>100 GBP</strong>
|
|
123
|
-
</div>
|
|
124
|
-
0.2351 ETH
|
|
125
|
-
</>
|
|
126
|
-
),
|
|
127
|
-
onClick: () => setActiveStep(0),
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: 'You',
|
|
131
|
-
hoverLabel: (
|
|
132
|
-
<>
|
|
133
|
-
<div>
|
|
134
|
-
<strong>Elena Durante</strong>
|
|
135
|
-
</div>
|
|
136
|
-
elenadurante@test.com
|
|
137
|
-
</>
|
|
138
|
-
),
|
|
139
|
-
onClick: () => setActiveStep(1),
|
|
140
|
-
},
|
|
141
|
-
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(2) },
|
|
142
|
-
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(3) },
|
|
143
|
-
{
|
|
144
|
-
label: 'Pay',
|
|
145
|
-
hoverLabel: 'Enrico Gusso II',
|
|
146
|
-
onClick: () => setActiveStep(4),
|
|
147
|
-
},
|
|
148
|
-
]}
|
|
149
|
-
onClose={showCloseButton ? () => setClosed(true) : undefined}
|
|
150
|
-
onGoBack={
|
|
151
|
-
showMobileBackButton
|
|
152
|
-
? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
|
|
153
|
-
: undefined
|
|
154
|
-
}
|
|
155
|
-
/>
|
|
23
|
+
type Story = StoryObj<StoryArgs>;
|
|
156
24
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
showMobileBackButton
|
|
170
|
-
? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
|
|
171
|
-
: undefined
|
|
172
|
-
}
|
|
173
|
-
/>
|
|
174
|
-
|
|
175
|
-
<Body className="text-xs-center m-a-3">Content to test that the flow nav is centred</Body>
|
|
176
|
-
|
|
177
|
-
<Button
|
|
178
|
-
className="m-t-2"
|
|
179
|
-
disabled={activeStep === 4}
|
|
180
|
-
onClick={() => setActiveStep(activeStep + 1)}
|
|
181
|
-
>
|
|
182
|
-
Next Step
|
|
183
|
-
</Button>
|
|
184
|
-
</>
|
|
185
|
-
) : null;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
export const SendFlow = () => {
|
|
189
|
-
const [activeStep, setActiveStep] = useState(2);
|
|
190
|
-
const steps = [
|
|
191
|
-
{
|
|
192
|
-
label: 'Recipient',
|
|
193
|
-
onClick: handleStepClick(0),
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
label: 'Amount',
|
|
197
|
-
hoverLabel: (
|
|
198
|
-
<>
|
|
199
|
-
You send 100 GBP <br />
|
|
200
|
-
You get 99.39 GBP{' '}
|
|
201
|
-
</>
|
|
202
|
-
),
|
|
203
|
-
...(activeStep > 1 && { onClick: handleStepClick(1) }),
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
label: 'Review',
|
|
207
|
-
...(activeStep > 2 && { onClick: handleStepClick(2) }),
|
|
25
|
+
const meta: Meta<StoryArgs> = {
|
|
26
|
+
component: FlowNavigation,
|
|
27
|
+
title: 'Navigation/FlowNavigation',
|
|
28
|
+
argTypes: {
|
|
29
|
+
showCloseButton: { control: 'boolean', defaultValue: true },
|
|
30
|
+
showMobileBackButton: { control: 'boolean', defaultValue: true },
|
|
31
|
+
done: { control: 'boolean', defaultValue: false },
|
|
32
|
+
avatarURL: { control: 'text', defaultValue: '../tapestry-01.png' },
|
|
33
|
+
profileType: {
|
|
34
|
+
control: 'radio',
|
|
35
|
+
options: [ProfileType.PERSONAL, ProfileType.BUSINESS],
|
|
36
|
+
defaultValue: ProfileType.PERSONAL,
|
|
208
37
|
},
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
38
|
+
},
|
|
39
|
+
parameters: {
|
|
40
|
+
docs: {
|
|
41
|
+
source: { type: 'code' },
|
|
212
42
|
},
|
|
213
|
-
|
|
214
|
-
function handleStepClick(step: number) {
|
|
215
|
-
return () => {
|
|
216
|
-
setActiveStep(step);
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
return (
|
|
220
|
-
<>
|
|
221
|
-
<FlowNavigation
|
|
222
|
-
avatar={<AvatarView />}
|
|
223
|
-
logo={<Logo />}
|
|
224
|
-
activeStep={activeStep}
|
|
225
|
-
steps={steps}
|
|
226
|
-
onClose={() => alert('close & move away')}
|
|
227
|
-
onGoBack={() => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)}
|
|
228
|
-
/>
|
|
229
|
-
|
|
230
|
-
<Body className="m-a-3">
|
|
231
|
-
<Display type={Typography.DISPLAY_SMALL}>{steps[activeStep].label} Step</Display>
|
|
232
|
-
<br />
|
|
233
|
-
{lorem10}
|
|
234
|
-
</Body>
|
|
235
|
-
|
|
236
|
-
<Sticky>
|
|
237
|
-
<div className="d-flex justify-content-center align-items-center p-a-3">
|
|
238
|
-
<Button
|
|
239
|
-
v2
|
|
240
|
-
disabled={activeStep === 3}
|
|
241
|
-
block
|
|
242
|
-
onClick={() => setActiveStep(activeStep + 1)}
|
|
243
|
-
>
|
|
244
|
-
Continue
|
|
245
|
-
</Button>
|
|
246
|
-
</div>
|
|
247
|
-
</Sticky>
|
|
248
|
-
</>
|
|
249
|
-
);
|
|
43
|
+
},
|
|
250
44
|
};
|
|
45
|
+
export default meta;
|
|
251
46
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const showCloseButton = boolean('show closeButton', true);
|
|
261
|
-
const showMobileBackButton = boolean('show mobile backButton', true);
|
|
262
|
-
const done = boolean('done', false);
|
|
47
|
+
type FlowNavArgs = {
|
|
48
|
+
showCloseButton: boolean;
|
|
49
|
+
showMobileBackButton: boolean;
|
|
50
|
+
done: boolean;
|
|
51
|
+
avatarURL?: string;
|
|
52
|
+
profileType?: ProfileType;
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
};
|
|
263
55
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
56
|
+
export const Variants: Story = {
|
|
57
|
+
args: {
|
|
58
|
+
profileType: ProfileType.PERSONAL,
|
|
59
|
+
showCloseButton: true,
|
|
60
|
+
showMobileBackButton: true,
|
|
61
|
+
done: false,
|
|
62
|
+
avatarURL: '../tapestry-01.png',
|
|
63
|
+
},
|
|
64
|
+
render: (args) => {
|
|
65
|
+
const [activeStep, setActiveStep] = useState(2);
|
|
66
|
+
const [closed, setClosed] = useState(false);
|
|
67
|
+
if (closed) return <></>;
|
|
68
|
+
return (
|
|
69
|
+
<>
|
|
267
70
|
<FlowNavigation
|
|
268
|
-
avatar={profileType ? <AvatarView profileType={profileType} /> : null}
|
|
71
|
+
avatar={args.profileType ? <AvatarView profileType={args.profileType} /> : null}
|
|
72
|
+
logo={<Logo />}
|
|
269
73
|
activeStep={activeStep}
|
|
270
|
-
done={done}
|
|
271
|
-
steps={[
|
|
272
|
-
|
|
74
|
+
done={args.done}
|
|
75
|
+
steps={[
|
|
76
|
+
{
|
|
77
|
+
label: 'Amount',
|
|
78
|
+
hoverLabel: <strong>100 GBP</strong>,
|
|
79
|
+
onClick: () => setActiveStep(0),
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: 'You',
|
|
83
|
+
hoverLabel: <>Elena Durante - elenadurante@test.com</>,
|
|
84
|
+
onClick: () => setActiveStep(1),
|
|
85
|
+
},
|
|
86
|
+
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(2) },
|
|
87
|
+
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(3) },
|
|
88
|
+
{
|
|
89
|
+
label: 'Pay',
|
|
90
|
+
hoverLabel: 'Enrico Gusso II',
|
|
91
|
+
onClick: () => setActiveStep(4),
|
|
92
|
+
},
|
|
93
|
+
]}
|
|
94
|
+
onClose={args.showCloseButton ? () => setClosed(true) : undefined}
|
|
273
95
|
onGoBack={
|
|
274
|
-
showMobileBackButton
|
|
96
|
+
args.showMobileBackButton
|
|
275
97
|
? () => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)
|
|
276
98
|
: undefined
|
|
277
99
|
}
|
|
278
100
|
/>
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
101
|
+
|
|
102
|
+
<FlowNavigation
|
|
103
|
+
done={args.done}
|
|
104
|
+
activeStep={activeStep}
|
|
105
|
+
steps={[
|
|
106
|
+
{
|
|
107
|
+
label: 'Amount',
|
|
108
|
+
hoverLabel: (
|
|
109
|
+
<>
|
|
110
|
+
<div>
|
|
111
|
+
<strong>100 GBP</strong>
|
|
112
|
+
</div>
|
|
113
|
+
0.2351 ETH
|
|
114
|
+
</>
|
|
115
|
+
),
|
|
116
|
+
onClick: () => setActiveStep(0),
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
label: 'You',
|
|
120
|
+
hoverLabel: (
|
|
121
|
+
<>
|
|
122
|
+
<div>
|
|
123
|
+
<strong>Elena Durante</strong>
|
|
124
|
+
</div>
|
|
125
|
+
elenadurante@test.com
|
|
126
|
+
</>
|
|
127
|
+
),
|
|
128
|
+
onClick: () => setActiveStep(1),
|
|
129
|
+
},
|
|
130
|
+
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(2) },
|
|
131
|
+
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(3) },
|
|
132
|
+
{
|
|
133
|
+
label: 'Pay',
|
|
134
|
+
hoverLabel: 'Enrico Gusso II',
|
|
135
|
+
onClick: () => setActiveStep(4),
|
|
136
|
+
},
|
|
137
|
+
]}
|
|
138
|
+
onClose={args.showCloseButton ? () => setClosed(true) : undefined}
|
|
139
|
+
onGoBack={
|
|
140
|
+
args.showMobileBackButton
|
|
141
|
+
? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
|
|
142
|
+
: undefined
|
|
143
|
+
}
|
|
144
|
+
/>
|
|
145
|
+
|
|
146
|
+
<FlowNavigation
|
|
147
|
+
done={args.done}
|
|
148
|
+
avatar={<AvatarView imgSrc={args.avatarURL} profileType={args.profileType} />}
|
|
149
|
+
activeStep={activeStep}
|
|
150
|
+
steps={[
|
|
151
|
+
{
|
|
152
|
+
label: 'Amount',
|
|
153
|
+
hoverLabel: (
|
|
154
|
+
<>
|
|
155
|
+
<div>
|
|
156
|
+
<strong>100 GBP</strong>
|
|
157
|
+
</div>
|
|
158
|
+
0.2351 ETH
|
|
159
|
+
</>
|
|
160
|
+
),
|
|
161
|
+
onClick: () => setActiveStep(0),
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: 'You',
|
|
165
|
+
hoverLabel: (
|
|
166
|
+
<>
|
|
167
|
+
<div>
|
|
168
|
+
<strong>Elena Durante</strong>
|
|
169
|
+
</div>
|
|
170
|
+
elenadurante@test.com
|
|
171
|
+
</>
|
|
172
|
+
),
|
|
173
|
+
onClick: () => setActiveStep(1),
|
|
174
|
+
},
|
|
175
|
+
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(2) },
|
|
176
|
+
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(3) },
|
|
177
|
+
{
|
|
178
|
+
label: 'Pay',
|
|
179
|
+
hoverLabel: 'Enrico Gusso II',
|
|
180
|
+
onClick: () => setActiveStep(4),
|
|
181
|
+
},
|
|
182
|
+
]}
|
|
183
|
+
onClose={args.showCloseButton ? () => setClosed(true) : undefined}
|
|
184
|
+
onGoBack={
|
|
185
|
+
args.showMobileBackButton
|
|
186
|
+
? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
|
|
187
|
+
: undefined
|
|
188
|
+
}
|
|
189
|
+
/>
|
|
190
|
+
|
|
191
|
+
{/* Instance of always `done` FlowNav for visual testing */}
|
|
192
|
+
<FlowNavigation
|
|
193
|
+
done
|
|
194
|
+
avatar={<AvatarView imgSrc={args.avatarURL} profileType={args.profileType} />}
|
|
195
|
+
activeStep={activeStep}
|
|
196
|
+
steps={[
|
|
197
|
+
{ label: 'Recipient', hoverLabel: 'Daniele Tomboro', onClick: () => setActiveStep(0) },
|
|
198
|
+
{ label: 'Review', hoverLabel: 'Antonio Dozortevo', onClick: () => setActiveStep(1) },
|
|
199
|
+
{ label: 'Pay', hoverLabel: 'Enrico Gusso', onClick: () => setActiveStep(2) },
|
|
200
|
+
]}
|
|
201
|
+
onClose={args.showCloseButton ? () => setClosed(true) : undefined}
|
|
202
|
+
onGoBack={
|
|
203
|
+
args.showMobileBackButton
|
|
204
|
+
? () => setActiveStep(activeStep - 1 > 0 ? activeStep - 1 : 0)
|
|
205
|
+
: undefined
|
|
206
|
+
}
|
|
284
207
|
/>
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
208
|
+
|
|
209
|
+
<Body className="text-xs-center m-a-3">Content to test that the flow nav is centred</Body>
|
|
210
|
+
|
|
211
|
+
<Button
|
|
212
|
+
className="m-t-2"
|
|
213
|
+
disabled={activeStep === 4}
|
|
214
|
+
onClick={() => setActiveStep(activeStep + 1)}
|
|
215
|
+
>
|
|
216
|
+
Next Step
|
|
217
|
+
</Button>
|
|
218
|
+
</>
|
|
219
|
+
);
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export const SendFlow: Story = {
|
|
224
|
+
args: {
|
|
225
|
+
profileType: ProfileType.PERSONAL,
|
|
226
|
+
showCloseButton: true,
|
|
227
|
+
showMobileBackButton: true,
|
|
228
|
+
done: false,
|
|
229
|
+
avatarURL: '../tapestry-01.png',
|
|
230
|
+
},
|
|
231
|
+
render: (args) => {
|
|
232
|
+
const [activeStep, setActiveStep] = useState(2);
|
|
233
|
+
const steps = [
|
|
234
|
+
{
|
|
235
|
+
label: 'Recipient',
|
|
236
|
+
onClick: handleStepClick(0),
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: 'Amount',
|
|
240
|
+
hoverLabel: (
|
|
241
|
+
<>
|
|
242
|
+
You send 100 GBP <br />
|
|
243
|
+
You get 99.39 GBP{' '}
|
|
244
|
+
</>
|
|
245
|
+
),
|
|
246
|
+
...(activeStep > 1 && { onClick: handleStepClick(1) }),
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
label: 'Review',
|
|
250
|
+
...(activeStep > 2 && { onClick: handleStepClick(2) }),
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
label: 'Pay',
|
|
254
|
+
...(activeStep > 3 && { onClick: handleStepClick(3) }),
|
|
255
|
+
},
|
|
256
|
+
];
|
|
257
|
+
function handleStepClick(step: number) {
|
|
258
|
+
return () => {
|
|
259
|
+
setActiveStep(step);
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
return (
|
|
263
|
+
<>
|
|
264
|
+
<FlowNavigation
|
|
265
|
+
avatar={<AvatarView />}
|
|
266
|
+
logo={<Logo />}
|
|
267
|
+
activeStep={activeStep}
|
|
268
|
+
steps={steps}
|
|
269
|
+
onClose={() => alert('close & move away')}
|
|
270
|
+
onGoBack={() => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)}
|
|
271
|
+
/>
|
|
272
|
+
|
|
273
|
+
<Body className="m-a-3">
|
|
274
|
+
<Display type={Typography.DISPLAY_SMALL}>{steps[activeStep].label} Step</Display>
|
|
275
|
+
<br />
|
|
276
|
+
{lorem10}
|
|
277
|
+
</Body>
|
|
278
|
+
|
|
279
|
+
<Sticky>
|
|
280
|
+
<div className="d-flex justify-content-center align-items-center p-a-3">
|
|
281
|
+
<Button
|
|
282
|
+
v2
|
|
283
|
+
disabled={activeStep === 3}
|
|
284
|
+
block
|
|
285
|
+
onClick={() => setActiveStep(activeStep + 1)}
|
|
286
|
+
>
|
|
287
|
+
Continue
|
|
288
|
+
</Button>
|
|
289
|
+
</div>
|
|
290
|
+
</Sticky>
|
|
291
|
+
</>
|
|
292
|
+
);
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export const WithOverlayHeaderComparison: Story = {
|
|
297
|
+
args: {
|
|
298
|
+
profileType: ProfileType.PERSONAL,
|
|
299
|
+
showCloseButton: true,
|
|
300
|
+
showMobileBackButton: true,
|
|
301
|
+
done: false,
|
|
302
|
+
avatarURL: '../tapestry-01.png',
|
|
303
|
+
},
|
|
304
|
+
render: (args) => {
|
|
305
|
+
const [activeStep, setActiveStep] = useState(4);
|
|
306
|
+
const [closed, setClosed] = useState(false);
|
|
307
|
+
if (closed) return <></>;
|
|
308
|
+
return (
|
|
309
|
+
<>
|
|
310
|
+
<div style={{ border: '1px solid #e8e8e8' }}>
|
|
311
|
+
<FlowNavigation
|
|
312
|
+
avatar={args.profileType ? <AvatarView profileType={args.profileType} /> : null}
|
|
313
|
+
activeStep={activeStep}
|
|
314
|
+
done={args.done}
|
|
315
|
+
steps={[]}
|
|
316
|
+
onClose={args.showCloseButton ? () => setClosed(true) : undefined}
|
|
317
|
+
onGoBack={
|
|
318
|
+
args.showMobileBackButton
|
|
319
|
+
? () => setActiveStep(activeStep > 0 ? activeStep - 1 : 0)
|
|
320
|
+
: undefined
|
|
321
|
+
}
|
|
322
|
+
/>
|
|
323
|
+
</div>
|
|
324
|
+
<div style={{ border: '1px solid #e8e8e8' }}>
|
|
325
|
+
<OverlayHeader
|
|
326
|
+
avatar={args.profileType ? <AvatarView profileType={args.profileType} /> : null}
|
|
327
|
+
onClose={args.showCloseButton ? () => setClosed(true) : undefined}
|
|
328
|
+
/>
|
|
329
|
+
</div>
|
|
330
|
+
</>
|
|
331
|
+
);
|
|
332
|
+
},
|
|
288
333
|
};
|
package/src/i18n/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import hu from './hu.json';
|
|
|
7
7
|
import id from './id.json';
|
|
8
8
|
import it from './it.json';
|
|
9
9
|
import ja from './ja.json';
|
|
10
|
+
import nl from './nl.json';
|
|
10
11
|
import pl from './pl.json';
|
|
11
12
|
import pt from './pt.json';
|
|
12
13
|
import ro from './ro.json';
|
|
@@ -28,6 +29,7 @@ const translations: Record<string, Record<string, string>> = {
|
|
|
28
29
|
id,
|
|
29
30
|
it,
|
|
30
31
|
ja,
|
|
32
|
+
nl,
|
|
31
33
|
pl,
|
|
32
34
|
pt,
|
|
33
35
|
ro,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-key */
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { ArrowLeft, Cross, Defrost, Edit, Menu, Plus } from '@transferwise/icons';
|
|
4
4
|
import IconButton, { Props } from './IconButton';
|
|
5
|
-
import { action } from '
|
|
5
|
+
import { action } from 'storybook/actions';
|
|
6
6
|
import Body from '../body';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
@@ -81,7 +81,6 @@ const Template = ({ size, disabled }: Props) => {
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
export const Basic: Story = {
|
|
84
|
-
tags: ['autodocs'],
|
|
85
84
|
render: () => {
|
|
86
85
|
return (
|
|
87
86
|
<div
|