@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,276 +1,314 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { action } from '
|
|
3
|
-
import {
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { action } from 'storybook/actions';
|
|
3
|
+
import { Illustration, Assets, Flag } from '@wise/art';
|
|
4
4
|
import {
|
|
5
5
|
FastFlag as FastFlagIcon,
|
|
6
6
|
Bank as BankIcon,
|
|
7
|
-
PlusCircle,
|
|
8
7
|
Profile,
|
|
9
8
|
UpwardGraph as UpwardGraphIcon,
|
|
10
9
|
FastFlag,
|
|
11
10
|
} from '@transferwise/icons';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
import { Nudge, Header, Title, Typography, AvatarView } from '..';
|
|
15
|
-
|
|
11
|
+
import type { AvatarViewBadgeProps } from '../avatarView/AvatarView';
|
|
12
|
+
import { Nudge, Header, Title, Typography, AvatarView, type NavigationOptionProps } from '..';
|
|
16
13
|
import NavigationOption from './NavigationOption';
|
|
14
|
+
import { fn } from 'storybook/test';
|
|
15
|
+
|
|
16
|
+
type StoryArgs = NavigationOptionProps & { hasTitleOnly?: boolean };
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const meta: Meta<StoryArgs> = {
|
|
19
19
|
component: NavigationOption,
|
|
20
20
|
title: 'Option/NavigationOption',
|
|
21
21
|
tags: ['autodocs'],
|
|
22
|
+
argTypes: {
|
|
23
|
+
href: { control: 'text' },
|
|
24
|
+
title: { control: 'text' },
|
|
25
|
+
content: { control: 'text' },
|
|
26
|
+
complex: { control: 'boolean' },
|
|
27
|
+
disabled: { control: 'boolean' },
|
|
28
|
+
showMediaAtAllSizes: { control: 'boolean' },
|
|
29
|
+
showMediaCircle: { control: 'boolean' },
|
|
30
|
+
isContainerAligned: { control: 'boolean' },
|
|
31
|
+
className: { control: 'text' },
|
|
32
|
+
hasTitleOnly: { control: 'boolean' },
|
|
33
|
+
media: { control: false },
|
|
34
|
+
},
|
|
22
35
|
};
|
|
36
|
+
export default meta;
|
|
23
37
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className?: string;
|
|
34
|
-
hasTitleOnly?: boolean;
|
|
35
|
-
media?: ReactNode;
|
|
38
|
+
const defaultArgs = {
|
|
39
|
+
title: 'Navigation option',
|
|
40
|
+
content: 'Button and icon are vertically centered.',
|
|
41
|
+
complex: false,
|
|
42
|
+
disabled: false,
|
|
43
|
+
showMediaAtAllSizes: false,
|
|
44
|
+
showMediaCircle: true,
|
|
45
|
+
isContainerAligned: false,
|
|
46
|
+
hasTitleOnly: false,
|
|
36
47
|
};
|
|
37
48
|
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const complex = boolean('complex', props.complex ?? false);
|
|
43
|
-
const disabled = boolean('disabled', props.disabled ?? false);
|
|
44
|
-
const showMediaAtAllSizes = boolean('showMediaAtAllSizes', props.showMediaAtAllSizes ?? false);
|
|
45
|
-
const showMediaCircle = props.showMediaCircle ?? boolean('showMediaCircle', true);
|
|
46
|
-
const isContainerAligned = boolean('isContainerAligned', false);
|
|
47
|
-
const className = text('className', props.className ?? '');
|
|
49
|
+
const badgeProps: AvatarViewBadgeProps = {
|
|
50
|
+
icon: <FastFlag />,
|
|
51
|
+
type: 'action',
|
|
52
|
+
};
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
export const Basic: StoryObj<StoryArgs> = {
|
|
55
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
50
56
|
<NavigationOption
|
|
51
|
-
|
|
52
|
-
disabled={disabled}
|
|
57
|
+
{...args}
|
|
53
58
|
id="navigation-option"
|
|
54
59
|
name="navigation-option"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
media={props.media || <FastFlagIcon />}
|
|
59
|
-
showMediaAtAllSizes={showMediaAtAllSizes}
|
|
60
|
-
isContainerAligned={isContainerAligned}
|
|
61
|
-
showMediaCircle={showMediaCircle}
|
|
62
|
-
className={className}
|
|
63
|
-
onClick={action('clicked')}
|
|
60
|
+
content={hasTitleOnly ? null : args.content}
|
|
61
|
+
media={args.media || <FastFlagIcon />}
|
|
62
|
+
onClick={fn()}
|
|
64
63
|
/>
|
|
65
|
-
)
|
|
64
|
+
),
|
|
65
|
+
args: { ...defaultArgs },
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
export const Variants: StoryObj<StoryArgs> = {
|
|
69
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
70
|
+
<div>
|
|
71
|
+
<div className="m-b-2">
|
|
72
|
+
<div className="title-4 m-b-1">Has Title Only</div>
|
|
73
|
+
<NavigationOption
|
|
74
|
+
{...args}
|
|
75
|
+
content={null}
|
|
76
|
+
media={args.media || <FastFlagIcon />}
|
|
77
|
+
onClick={fn()}
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
<div className="m-b-2">
|
|
81
|
+
<div className="title-4 m-b-1">Full Content</div>
|
|
82
|
+
<NavigationOption
|
|
83
|
+
{...args}
|
|
84
|
+
content={hasTitleOnly ? null : args.content}
|
|
85
|
+
media={args.media || <FastFlagIcon />}
|
|
86
|
+
onClick={fn()}
|
|
87
|
+
/>
|
|
88
|
+
</div>
|
|
89
|
+
<div className="m-b-2">
|
|
90
|
+
<div className="title-4 m-b-1">With Icon</div>
|
|
91
|
+
<NavigationOption
|
|
92
|
+
{...args}
|
|
93
|
+
media={<BankIcon size={24} />}
|
|
94
|
+
content={hasTitleOnly ? null : args.content}
|
|
95
|
+
onClick={fn()}
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
98
|
+
<div className="m-b-2">
|
|
99
|
+
<div className="title-4 m-b-1">With Icon Avatar</div>
|
|
100
|
+
<NavigationOption
|
|
101
|
+
{...args}
|
|
102
|
+
showMediaCircle={false}
|
|
103
|
+
media={
|
|
104
|
+
<AvatarView badge={{ type: 'reference' }}>
|
|
105
|
+
<Profile />
|
|
106
|
+
</AvatarView>
|
|
107
|
+
}
|
|
108
|
+
content={hasTitleOnly ? null : args.content}
|
|
109
|
+
onClick={fn()}
|
|
110
|
+
/>
|
|
111
|
+
</div>
|
|
112
|
+
<div className="m-b-2">
|
|
113
|
+
<div className="title-4 m-b-1">With Contact Avatar</div>
|
|
114
|
+
<NavigationOption
|
|
115
|
+
{...args}
|
|
116
|
+
showMediaCircle={false}
|
|
117
|
+
media={<AvatarView badge={badgeProps} profileName="Spencer Penn" />}
|
|
118
|
+
content={hasTitleOnly ? null : args.content}
|
|
119
|
+
onClick={fn()}
|
|
120
|
+
/>
|
|
121
|
+
</div>
|
|
122
|
+
<div className="m-t-4 m-b-2">
|
|
123
|
+
<div className="title-4 m-b-1">Not recommended usage</div>
|
|
124
|
+
<p>
|
|
125
|
+
Rendering an Avatar on top of showMediaCircle causes the Avatar background-colour and the
|
|
126
|
+
circle background-colour to overlap which also causes clipping issues with the Badge
|
|
127
|
+
component.
|
|
128
|
+
</p>
|
|
129
|
+
<NavigationOption
|
|
130
|
+
{...args}
|
|
131
|
+
showMediaCircle
|
|
132
|
+
media={<AvatarView badge={badgeProps} profileName="Spencer Penn" />}
|
|
133
|
+
content={hasTitleOnly ? null : args.content}
|
|
134
|
+
onClick={fn()}
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
83
137
|
</div>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
138
|
+
),
|
|
139
|
+
args: { ...defaultArgs },
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export const Multiple: StoryObj<StoryArgs> = {
|
|
143
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
144
|
+
<div>
|
|
145
|
+
<NavigationOption
|
|
146
|
+
{...args}
|
|
147
|
+
content={hasTitleOnly ? null : args.content}
|
|
148
|
+
media={args.media || <FastFlagIcon />}
|
|
149
|
+
onClick={fn()}
|
|
93
150
|
/>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
media={
|
|
100
|
-
<AvatarView
|
|
101
|
-
badge={{
|
|
102
|
-
icon: <FastFlag />,
|
|
103
|
-
type: 'action',
|
|
104
|
-
}}
|
|
105
|
-
profileName="Spencer Penn"
|
|
106
|
-
/>
|
|
107
|
-
}
|
|
151
|
+
<NavigationOption
|
|
152
|
+
{...args}
|
|
153
|
+
content={hasTitleOnly ? null : args.content}
|
|
154
|
+
media={args.media || <FastFlagIcon />}
|
|
155
|
+
onClick={fn()}
|
|
108
156
|
/>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
circle background-colour to overlap which also causes clipping issues with the Badge
|
|
115
|
-
component.
|
|
116
|
-
</p>
|
|
117
|
-
<Template
|
|
118
|
-
showMediaCircle
|
|
119
|
-
media={
|
|
120
|
-
<AvatarView
|
|
121
|
-
badge={{
|
|
122
|
-
icon: <FastFlag />,
|
|
123
|
-
type: 'action',
|
|
124
|
-
}}
|
|
125
|
-
profileName="Spencer Penn"
|
|
126
|
-
/>
|
|
127
|
-
}
|
|
157
|
+
<NavigationOption
|
|
158
|
+
{...args}
|
|
159
|
+
content={hasTitleOnly ? null : args.content}
|
|
160
|
+
media={args.media || <FastFlagIcon />}
|
|
161
|
+
onClick={fn()}
|
|
128
162
|
/>
|
|
129
163
|
</div>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export const Multiple = () => (
|
|
134
|
-
<>
|
|
135
|
-
<Template />
|
|
136
|
-
<Template />
|
|
137
|
-
<Template />
|
|
138
|
-
</>
|
|
139
|
-
);
|
|
164
|
+
),
|
|
165
|
+
args: { ...defaultArgs },
|
|
166
|
+
};
|
|
140
167
|
|
|
141
|
-
export const WithIllustration =
|
|
142
|
-
|
|
143
|
-
<
|
|
168
|
+
export const WithIllustration: StoryObj<StoryArgs> = {
|
|
169
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
170
|
+
<NavigationOption
|
|
171
|
+
{...args}
|
|
144
172
|
media={<Illustration name={Assets.GLOBE} disablePadding alt="" />}
|
|
145
173
|
showMediaCircle={false}
|
|
174
|
+
content={hasTitleOnly ? null : args.content}
|
|
175
|
+
onClick={fn()}
|
|
146
176
|
/>
|
|
147
|
-
)
|
|
177
|
+
),
|
|
178
|
+
args: { ...defaultArgs },
|
|
148
179
|
};
|
|
149
180
|
|
|
150
|
-
export const WithContainerContent =
|
|
151
|
-
|
|
152
|
-
<Title type={Typography.TITLE_SUBSECTION} className="m-b-1">
|
|
153
|
-
Choose how to pay
|
|
154
|
-
</Title>
|
|
155
|
-
<Template />
|
|
156
|
-
<Template />
|
|
157
|
-
<Template />
|
|
181
|
+
export const WithContainerContent: StoryObj<StoryArgs> = {
|
|
182
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
158
183
|
<div>
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
184
|
+
<Title type={Typography.TITLE_SUBSECTION} className="m-b-1">
|
|
185
|
+
Choose how to pay
|
|
186
|
+
</Title>
|
|
187
|
+
<NavigationOption
|
|
188
|
+
{...args}
|
|
189
|
+
content={hasTitleOnly ? null : args.content}
|
|
190
|
+
media={args.media || <FastFlagIcon />}
|
|
191
|
+
onClick={fn()}
|
|
167
192
|
/>
|
|
193
|
+
<NavigationOption
|
|
194
|
+
{...args}
|
|
195
|
+
content={hasTitleOnly ? null : args.content}
|
|
196
|
+
media={args.media || <FastFlagIcon />}
|
|
197
|
+
onClick={fn()}
|
|
198
|
+
/>
|
|
199
|
+
<NavigationOption
|
|
200
|
+
{...args}
|
|
201
|
+
content={hasTitleOnly ? null : args.content}
|
|
202
|
+
media={args.media || <FastFlagIcon />}
|
|
203
|
+
onClick={fn()}
|
|
204
|
+
/>
|
|
205
|
+
<div>
|
|
206
|
+
<Nudge
|
|
207
|
+
className="m-t-2"
|
|
208
|
+
mediaName="globe"
|
|
209
|
+
title="Text that is no longer than two lines."
|
|
210
|
+
link="Link"
|
|
211
|
+
href="#"
|
|
212
|
+
onClick={action('action clicked')}
|
|
213
|
+
onDismiss={action('dismissed')}
|
|
214
|
+
/>
|
|
215
|
+
</div>
|
|
168
216
|
</div>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
const NavigationOptionTemplate = (props: TemplateTypes) => {
|
|
173
|
-
const {
|
|
174
|
-
href,
|
|
175
|
-
title,
|
|
176
|
-
content,
|
|
177
|
-
complex,
|
|
178
|
-
disabled,
|
|
179
|
-
showMediaAtAllSizes,
|
|
180
|
-
showMediaCircle,
|
|
181
|
-
isContainerAligned,
|
|
182
|
-
className,
|
|
183
|
-
} = props;
|
|
184
|
-
|
|
185
|
-
return (
|
|
186
|
-
<NavigationOption
|
|
187
|
-
complex={complex}
|
|
188
|
-
disabled={disabled}
|
|
189
|
-
id="navigation-option"
|
|
190
|
-
name="navigation-option"
|
|
191
|
-
href={href}
|
|
192
|
-
title={title}
|
|
193
|
-
content={props.hasTitleOnly ? null : content}
|
|
194
|
-
media={props.media || <FastFlagIcon />}
|
|
195
|
-
showMediaAtAllSizes={showMediaAtAllSizes}
|
|
196
|
-
isContainerAligned={isContainerAligned}
|
|
197
|
-
showMediaCircle={showMediaCircle}
|
|
198
|
-
className={className}
|
|
199
|
-
onClick={action('clicked')}
|
|
200
|
-
/>
|
|
201
|
-
);
|
|
217
|
+
),
|
|
218
|
+
args: { ...defaultArgs },
|
|
202
219
|
};
|
|
203
220
|
|
|
204
|
-
export const BalanceContent =
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
<AvatarView>
|
|
211
|
-
<Flag code="GBP" />
|
|
212
|
-
</AvatarView>
|
|
213
|
-
}
|
|
214
|
-
/>
|
|
215
|
-
);
|
|
216
|
-
|
|
217
|
-
export const NewContactContent = () => (
|
|
218
|
-
<NavigationOptionTemplate
|
|
219
|
-
title="New Contact"
|
|
220
|
-
showMediaCircle={false}
|
|
221
|
-
media={
|
|
222
|
-
<AvatarView badge={{ type: 'reference' }}>
|
|
223
|
-
<Profile size="24" />
|
|
224
|
-
</AvatarView>
|
|
225
|
-
}
|
|
226
|
-
/>
|
|
227
|
-
);
|
|
228
|
-
|
|
229
|
-
export const ExistingContactContent = () => (
|
|
230
|
-
<NavigationOptionTemplate
|
|
231
|
-
title="Wise Customer"
|
|
232
|
-
content="EUR account ending in 1111"
|
|
233
|
-
showMediaCircle={false}
|
|
234
|
-
media={<AvatarView profileName="Walter Smith" badge={{ flagCode: 'EUR' }} />}
|
|
235
|
-
/>
|
|
236
|
-
);
|
|
237
|
-
|
|
238
|
-
export const CardContent = () => (
|
|
239
|
-
<NavigationOptionTemplate
|
|
240
|
-
title="Digital card •••• 2123"
|
|
241
|
-
content="Test card"
|
|
242
|
-
showMediaCircle={false}
|
|
243
|
-
media={
|
|
244
|
-
<img
|
|
245
|
-
src="https://wise.com/public-resources/assets/spend/card/asset//digital_card_2023.png"
|
|
246
|
-
alt=""
|
|
247
|
-
/>
|
|
248
|
-
}
|
|
249
|
-
/>
|
|
250
|
-
);
|
|
251
|
-
|
|
252
|
-
export const ManageAccountContent = () => (
|
|
253
|
-
<>
|
|
254
|
-
<Header title="Balances" />
|
|
255
|
-
<NavigationOptionTemplate
|
|
256
|
-
title="Account details"
|
|
257
|
-
content="View and share your account details to get paid."
|
|
221
|
+
export const BalanceContent: StoryObj<StoryArgs> = {
|
|
222
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
223
|
+
<NavigationOption
|
|
224
|
+
{...args}
|
|
225
|
+
title="100 GBP available"
|
|
226
|
+
content="British pound"
|
|
258
227
|
showMediaCircle={false}
|
|
259
228
|
media={
|
|
260
229
|
<AvatarView>
|
|
261
|
-
<
|
|
230
|
+
<Flag code="GBP" />
|
|
262
231
|
</AvatarView>
|
|
263
232
|
}
|
|
233
|
+
onClick={fn()}
|
|
264
234
|
/>
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
235
|
+
),
|
|
236
|
+
args: { ...defaultArgs },
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
export const NewContactContent: StoryObj<StoryArgs> = {
|
|
240
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
241
|
+
<NavigationOption
|
|
242
|
+
{...args}
|
|
243
|
+
title="New Contact"
|
|
268
244
|
showMediaCircle={false}
|
|
269
245
|
media={
|
|
270
|
-
<AvatarView>
|
|
271
|
-
<
|
|
246
|
+
<AvatarView badge={{ type: 'reference' }}>
|
|
247
|
+
<Profile size="24" />
|
|
272
248
|
</AvatarView>
|
|
273
249
|
}
|
|
250
|
+
onClick={fn()}
|
|
274
251
|
/>
|
|
275
|
-
|
|
276
|
-
|
|
252
|
+
),
|
|
253
|
+
args: { ...defaultArgs },
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export const ExistingContactContent: StoryObj<StoryArgs> = {
|
|
257
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
258
|
+
<NavigationOption
|
|
259
|
+
{...args}
|
|
260
|
+
title="Wise Customer"
|
|
261
|
+
content="EUR account ending in 1111"
|
|
262
|
+
showMediaCircle={false}
|
|
263
|
+
media={<AvatarView profileName="Walter Smith" badge={{ flagCode: 'EUR' }} />}
|
|
264
|
+
onClick={fn()}
|
|
265
|
+
/>
|
|
266
|
+
),
|
|
267
|
+
args: { ...defaultArgs },
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export const CardContent: StoryObj<StoryArgs> = {
|
|
271
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
272
|
+
<NavigationOption
|
|
273
|
+
{...args}
|
|
274
|
+
title="Digital card •••• 2123"
|
|
275
|
+
content="Expires 12/27"
|
|
276
|
+
showMediaCircle={false}
|
|
277
|
+
media={<UpwardGraphIcon size={24} />}
|
|
278
|
+
onClick={fn()}
|
|
279
|
+
/>
|
|
280
|
+
),
|
|
281
|
+
args: { ...defaultArgs },
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export const ManageAccountContent: StoryObj<StoryArgs> = {
|
|
285
|
+
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
286
|
+
<div>
|
|
287
|
+
<Header title="Balances" />
|
|
288
|
+
<NavigationOption
|
|
289
|
+
{...args}
|
|
290
|
+
title="Account details"
|
|
291
|
+
content="View and share your account details to get paid."
|
|
292
|
+
showMediaCircle={false}
|
|
293
|
+
media={
|
|
294
|
+
<AvatarView>
|
|
295
|
+
<BankIcon />
|
|
296
|
+
</AvatarView>
|
|
297
|
+
}
|
|
298
|
+
onClick={fn()}
|
|
299
|
+
/>
|
|
300
|
+
<NavigationOption
|
|
301
|
+
{...args}
|
|
302
|
+
title="Auto Conversions"
|
|
303
|
+
content="Convert money between your balances at your desired exchange rate."
|
|
304
|
+
showMediaCircle={false}
|
|
305
|
+
media={
|
|
306
|
+
<AvatarView>
|
|
307
|
+
<UpwardGraphIcon size={24} />
|
|
308
|
+
</AvatarView>
|
|
309
|
+
}
|
|
310
|
+
onClick={fn()}
|
|
311
|
+
/>
|
|
312
|
+
</div>
|
|
313
|
+
),
|
|
314
|
+
};
|
|
@@ -1,17 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { action } from 'storybook/actions';
|
|
3
3
|
import { Person as ProfileIcon, Briefcase as BriefcaseIcon } from '@transferwise/icons';
|
|
4
|
-
|
|
5
4
|
import AvatarView from '../avatarView';
|
|
6
5
|
import { ProfileType } from '../common';
|
|
7
6
|
import Logo from '../logo';
|
|
8
7
|
|
|
9
|
-
import OverlayHeader from './OverlayHeader';
|
|
8
|
+
import OverlayHeader, { OverlayHeaderProps } from './OverlayHeader';
|
|
9
|
+
|
|
10
|
+
interface CustomControls {
|
|
11
|
+
avatarType?: keyof typeof avatarProfiles;
|
|
12
|
+
avatarURL?: string;
|
|
13
|
+
profileType?: ProfileType;
|
|
14
|
+
}
|
|
15
|
+
export type StoryArgs = OverlayHeaderProps & CustomControls;
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
const meta: Meta<StoryArgs> = {
|
|
12
18
|
component: OverlayHeader,
|
|
13
19
|
title: 'Navigation/OverlayHeader',
|
|
20
|
+
argTypes: {
|
|
21
|
+
avatarType: { control: 'select', options: ['', 'Business', 'Profile'] },
|
|
22
|
+
avatarURL: { control: 'text' },
|
|
23
|
+
profileType: { control: 'select', options: [ProfileType.PERSONAL, ProfileType.BUSINESS] },
|
|
24
|
+
},
|
|
14
25
|
};
|
|
26
|
+
export default meta;
|
|
15
27
|
|
|
16
28
|
const avatarProfiles = {
|
|
17
29
|
'': null,
|
|
@@ -19,33 +31,29 @@ const avatarProfiles = {
|
|
|
19
31
|
Profile: <ProfileIcon size="24" />,
|
|
20
32
|
};
|
|
21
33
|
|
|
22
|
-
export const Basic =
|
|
23
|
-
|
|
24
|
-
'avatar',
|
|
25
|
-
Object.keys(avatarProfiles) as (keyof typeof avatarProfiles)[],
|
|
26
|
-
'Profile',
|
|
27
|
-
);
|
|
28
|
-
return (
|
|
34
|
+
export const Basic: StoryObj<StoryArgs> = {
|
|
35
|
+
render: (args) => (
|
|
29
36
|
<OverlayHeader
|
|
30
37
|
logo={<Logo />}
|
|
31
|
-
avatar={<AvatarView>{avatarProfiles[
|
|
38
|
+
avatar={<AvatarView>{avatarProfiles[args.avatarType ?? '']}</AvatarView>}
|
|
32
39
|
onClose={action('Close clicked')}
|
|
33
40
|
/>
|
|
34
|
-
)
|
|
41
|
+
),
|
|
42
|
+
args: {
|
|
43
|
+
avatarType: 'Profile',
|
|
44
|
+
},
|
|
35
45
|
};
|
|
36
46
|
|
|
37
|
-
export const WithAvatarWrapper =
|
|
38
|
-
|
|
39
|
-
const profileType = select(
|
|
40
|
-
'profileType',
|
|
41
|
-
[ProfileType.PERSONAL, ProfileType.BUSINESS],
|
|
42
|
-
undefined,
|
|
43
|
-
);
|
|
44
|
-
return (
|
|
47
|
+
export const WithAvatarWrapper: StoryObj<StoryArgs> = {
|
|
48
|
+
render: (args) => (
|
|
45
49
|
<OverlayHeader
|
|
46
50
|
logo={<Logo />}
|
|
47
|
-
avatar={<AvatarView imgSrc={avatarURL} profileType={profileType} />}
|
|
51
|
+
avatar={<AvatarView imgSrc={args.avatarURL} profileType={args.profileType} />}
|
|
48
52
|
onClose={action('Close clicked')}
|
|
49
53
|
/>
|
|
50
|
-
)
|
|
54
|
+
),
|
|
55
|
+
args: {
|
|
56
|
+
avatarURL: '../tapestry-01.png',
|
|
57
|
+
profileType: ProfileType.PERSONAL,
|
|
58
|
+
},
|
|
51
59
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
import { Field } from '../field/Field';
|
|
4
4
|
import PhoneNumberInput from './PhoneNumberInput';
|
|
@@ -6,7 +6,6 @@ import PhoneNumberInput from './PhoneNumberInput';
|
|
|
6
6
|
const meta = {
|
|
7
7
|
component: PhoneNumberInput,
|
|
8
8
|
title: 'Forms/PhoneNumberInput',
|
|
9
|
-
tags: ['autodocs'],
|
|
10
9
|
} satisfies Meta<typeof PhoneNumberInput>;
|
|
11
10
|
|
|
12
11
|
export default meta;
|
|
@@ -12,9 +12,12 @@ describe('setDefaultPrefix', () => {
|
|
|
12
12
|
['ar', '+54'],
|
|
13
13
|
['it-IT', '+39'],
|
|
14
14
|
['it', '+39'],
|
|
15
|
-
])(
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
])(
|
|
16
|
+
'should return right prefix when locale is passed ("%s" -> "%s")',
|
|
17
|
+
(locale: string, expectedValue: string) => {
|
|
18
|
+
expect(setDefaultPrefix(locale)).toBe(expectedValue);
|
|
19
|
+
},
|
|
20
|
+
);
|
|
18
21
|
|
|
19
22
|
it('should return right prefix when valid locale is passed', () => {
|
|
20
23
|
expect(setDefaultPrefix('it-IT')).toBe('+39');
|