@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,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
}@media (min-width: 768px) {
|
|
3
|
-
}.np-accordion-item {
|
|
1
|
+
.np-accordion-item {
|
|
4
2
|
display: block;
|
|
5
3
|
width: 100%;
|
|
6
|
-
}
|
|
4
|
+
}
|
|
5
|
+
.np-accordion-item--open .media {
|
|
7
6
|
border: 0 !important;
|
|
8
|
-
}
|
|
7
|
+
}
|
|
8
|
+
.np-accordion-item .decision:not(.disabled):not(:disabled):hover {
|
|
9
9
|
background-color: transparent;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
|
+
.np-accordion-item.np-accordion-item--dark .media-body,
|
|
11
12
|
.np-accordion-item.np-accordion-item--dark .np-text-title-body {
|
|
12
13
|
color: #ffffff;
|
|
13
|
-
}
|
|
14
|
+
}
|
|
15
|
+
.np-accordion-item__content {
|
|
14
16
|
padding: 0 12px 24px 12px;
|
|
15
17
|
padding: 0 var(--size-12) var(--size-24) var(--size-12);
|
|
16
18
|
border-bottom: 1px solid rgba(0,0,0,0.10196);
|
|
17
19
|
border-bottom: 1px solid var(--color-border-neutral);
|
|
18
|
-
}
|
|
20
|
+
}
|
|
21
|
+
@media (min-width: 480px) {
|
|
19
22
|
.np-accordion-item__content.has-icon {
|
|
20
23
|
padding-left: 68px;
|
|
21
24
|
}
|
|
@@ -24,22 +27,28 @@
|
|
|
24
27
|
padding-left: 0;
|
|
25
28
|
padding-left: initial;
|
|
26
29
|
}
|
|
27
|
-
}
|
|
30
|
+
}
|
|
31
|
+
.np-accordion-item .np-option .np-option__title {
|
|
28
32
|
font-weight: 600;
|
|
29
33
|
font-weight: var(--font-weight-semi-bold);
|
|
30
|
-
}
|
|
34
|
+
}
|
|
35
|
+
.np-theme-personal .np-accordion-item--with-media .media {
|
|
31
36
|
display: flex;
|
|
32
37
|
align-items: center;
|
|
33
|
-
}
|
|
38
|
+
}
|
|
39
|
+
.np-theme-personal .np-accordion-item--with-icon .np-accordion-item__content {
|
|
34
40
|
padding: 0 56px 16px;
|
|
35
41
|
padding: 0 var(--size-56) var(--size-16);
|
|
36
|
-
}
|
|
42
|
+
}
|
|
43
|
+
.np-theme-personal .np-accordion-item--with-icon .media {
|
|
37
44
|
display: flex;
|
|
38
45
|
align-items: flex-start;
|
|
39
|
-
}
|
|
46
|
+
}
|
|
47
|
+
.np-theme-personal .np-accordion-item .decision__title {
|
|
40
48
|
font-size: 1.125rem;
|
|
41
49
|
font-size: var(--font-size-18);
|
|
42
|
-
}
|
|
50
|
+
}
|
|
51
|
+
.np-theme-personal .np-accordion-item .np-option .np-option__title {
|
|
43
52
|
margin-bottom: 0;
|
|
44
53
|
font-size: 1.125rem;
|
|
45
54
|
font-size: var(--font-size-18);
|
|
@@ -47,14 +56,16 @@
|
|
|
47
56
|
letter-spacing: var(--letter-spacing-negative-xs);
|
|
48
57
|
line-height: 1.5rem;
|
|
49
58
|
line-height: var(--line-height-24);
|
|
50
|
-
}
|
|
59
|
+
}
|
|
60
|
+
.np-theme-personal .np-accordion-item .np-option .circle-sm {
|
|
51
61
|
background-color: transparent;
|
|
52
62
|
width: 24px;
|
|
53
63
|
width: var(--size-24);
|
|
54
64
|
height: 24px;
|
|
55
65
|
height: var(--size-24);
|
|
56
66
|
border-radius: 0;
|
|
57
|
-
}
|
|
67
|
+
}
|
|
68
|
+
.np-theme-personal .np-accordion-item__content {
|
|
58
69
|
padding: 0 56px 16px 16px;
|
|
59
70
|
padding: 0 var(--size-56) var(--size-16) var(--size-16);
|
|
60
71
|
border-bottom: none;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
3
|
import { FastFlag as FastFlagIcon, CardWise as CardWiseIcon } from '@transferwise/icons';
|
|
3
4
|
|
|
4
5
|
import { Scroll, Size } from '../common';
|
|
@@ -6,6 +7,7 @@ import Modal from '../modal';
|
|
|
6
7
|
import { lorem10, lorem40 } from '../test-utils';
|
|
7
8
|
|
|
8
9
|
import Accordion from './Accordion';
|
|
10
|
+
import Button from '../button/Button';
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
* Metadata for the Accordion component story.
|
|
@@ -20,7 +22,6 @@ const meta: Meta<typeof Accordion> = {
|
|
|
20
22
|
'A simple accordion component that displays a list of items that can be expanded or collapsed.',
|
|
21
23
|
},
|
|
22
24
|
},
|
|
23
|
-
tags: ['autodocs'],
|
|
24
25
|
},
|
|
25
26
|
args: {
|
|
26
27
|
items: [
|
|
@@ -133,28 +134,36 @@ export const WithinModal: Story = {
|
|
|
133
134
|
delay: 1000,
|
|
134
135
|
},
|
|
135
136
|
},
|
|
136
|
-
render: (args) => {
|
|
137
|
+
render: (args, { viewMode }) => {
|
|
138
|
+
// Modal is open by default unless in docs view
|
|
139
|
+
const [open, setOpen] = useState(viewMode !== 'docs');
|
|
137
140
|
const { items } = args;
|
|
141
|
+
|
|
138
142
|
return (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
143
|
+
<>
|
|
144
|
+
<Button v2 onClick={() => setOpen(true)}>
|
|
145
|
+
Open Modal
|
|
146
|
+
</Button>
|
|
147
|
+
<Modal
|
|
148
|
+
body={
|
|
149
|
+
<div className="p-a-1">
|
|
150
|
+
<h3 className="m-t-2 m-b-4 text-xs-center">Large transfer tips</h3>
|
|
151
|
+
<Accordion {...args} items={[items[0]]} />
|
|
152
|
+
<Accordion {...args} items={[items[0]]} indexOpen={0} />
|
|
153
|
+
<Accordion {...args} items={items} />
|
|
154
|
+
</div>
|
|
155
|
+
}
|
|
156
|
+
scroll={Scroll.CONTENT}
|
|
157
|
+
size={Size.LARGE}
|
|
158
|
+
open={open}
|
|
159
|
+
footer={
|
|
160
|
+
<div className="p-a-3 text-xs-center">
|
|
161
|
+
<a href="/large-amounts">Learn more</a>
|
|
162
|
+
</div>
|
|
163
|
+
}
|
|
164
|
+
onClose={() => setOpen(false)}
|
|
165
|
+
/>
|
|
166
|
+
</>
|
|
158
167
|
);
|
|
159
168
|
},
|
|
160
169
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import { Settings } from '@transferwise/icons';
|
|
3
3
|
|
|
4
4
|
import { storyConfig } from '../test-utils/story-config';
|
|
@@ -12,8 +12,8 @@ import ActionButton from './ActionButton';
|
|
|
12
12
|
*/
|
|
13
13
|
export default {
|
|
14
14
|
component: ActionButton,
|
|
15
|
-
title: 'Actions/ActionButton
|
|
16
|
-
tags: ['
|
|
15
|
+
title: 'Actions/ActionButton',
|
|
16
|
+
tags: ['deprecated'],
|
|
17
17
|
} satisfies Meta<typeof ActionButton>;
|
|
18
18
|
|
|
19
19
|
type Story = StoryObj<typeof ActionButton>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { action } from '
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { action } from 'storybook/actions';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import { FastFlag as FastFlagIcon } from '@transferwise/icons';
|
|
4
4
|
|
|
5
5
|
import { Nudge, Title, Typography } from '..';
|
|
@@ -18,7 +18,6 @@ export default {
|
|
|
18
18
|
additionalContent:
|
|
19
19
|
'Additional content goes here, this content does not align with the logo and button',
|
|
20
20
|
},
|
|
21
|
-
tags: ['autodocs'],
|
|
22
21
|
} satisfies Meta<typeof ActionOption>;
|
|
23
22
|
|
|
24
23
|
type Story = StoryObj<typeof ActionOption>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { action } from '
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { action } from 'storybook/actions';
|
|
4
4
|
import { ClockBorderless } from '@transferwise/icons';
|
|
5
5
|
|
|
6
6
|
import { lorem40 } from '../test-utils';
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
parameters: {
|
|
43
43
|
docs: {
|
|
44
44
|
toc: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { userEvent, within, expect, waitFor } from '
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { userEvent, within, expect, waitFor } from 'storybook/test';
|
|
4
4
|
import { Button, Field, SelectInput, Sentiment } from '..';
|
|
5
5
|
import Alert, { type AlertProps } from './Alert';
|
|
6
6
|
|
package/src/avatar/Avatar.css
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
}@media (min-width: 768px) {
|
|
3
|
-
}.tw-avatar {
|
|
1
|
+
.tw-avatar {
|
|
4
2
|
position: relative;
|
|
5
3
|
border-radius: 50%;
|
|
6
4
|
-webkit-user-select: none;
|
|
7
5
|
-moz-user-select: none;
|
|
8
6
|
user-select: none;
|
|
9
7
|
box-sizing: border-box;
|
|
10
|
-
}
|
|
8
|
+
}
|
|
9
|
+
.tw-avatar .tw-avatar__content {
|
|
11
10
|
align-items: center;
|
|
12
11
|
background-color: rgba(134,167,189,0.10196);
|
|
13
12
|
background-color: #86a7bd1a;
|
|
@@ -22,58 +21,73 @@
|
|
|
22
21
|
max-width: 100%;
|
|
23
22
|
overflow: hidden;
|
|
24
23
|
width: 100%;
|
|
25
|
-
}
|
|
24
|
+
}
|
|
25
|
+
.tw-avatar--outlined {
|
|
26
26
|
border: 1px solid #00a2dd;
|
|
27
27
|
border: 1px solid var(--color-interactive-accent);
|
|
28
28
|
cursor: pointer;
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
|
+
.tw-avatar--outlined:not(.disabled):not(:disabled):hover {
|
|
30
31
|
border-color: #008fc9;
|
|
31
32
|
border-color: var(--color-interactive-accent-hover);
|
|
32
|
-
}
|
|
33
|
+
}
|
|
34
|
+
.tw-avatar--thumbnail * {
|
|
33
35
|
width: 100%;
|
|
34
36
|
height: 100%;
|
|
35
37
|
-o-object-fit: cover;
|
|
36
38
|
object-fit: cover;
|
|
37
|
-
}
|
|
39
|
+
}
|
|
40
|
+
.tw-avatar--icon * {
|
|
38
41
|
max-height: 100%;
|
|
39
42
|
max-width: 100%;
|
|
40
|
-
}
|
|
43
|
+
}
|
|
44
|
+
.tw-avatar.tw-avatar--initials,
|
|
41
45
|
.tw-avatar.tw-avatar--emoji {
|
|
42
46
|
font-family: Arial, sans-serif;
|
|
43
47
|
font-weight: 600;
|
|
44
48
|
font-weight: var(--font-weight-semi-bold);
|
|
45
|
-
}
|
|
49
|
+
}
|
|
50
|
+
.tw-avatar.tw-avatar--initials,
|
|
46
51
|
.tw-avatar.tw-avatar--icon {
|
|
47
52
|
color: #37517e;
|
|
48
53
|
color: var(--color-content-primary);
|
|
49
|
-
}
|
|
54
|
+
}
|
|
55
|
+
.tw-avatar.tw-avatar--initials,
|
|
50
56
|
.tw-avatar.tw-avatar--emoji {
|
|
51
57
|
font-family: Arial, sans-serif;
|
|
52
|
-
}
|
|
58
|
+
}
|
|
59
|
+
.tw-avatar.tw-avatar--branded .tw-avatar__content {
|
|
53
60
|
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
54
61
|
font-family: var(--font-family-display);
|
|
55
62
|
font-feature-settings: "ss01";
|
|
56
63
|
color: var(--color-dark-charcoal);
|
|
57
64
|
line-height: 1;
|
|
58
|
-
}
|
|
65
|
+
}
|
|
66
|
+
.tw-avatar--24 {
|
|
59
67
|
min-width: 24px;
|
|
60
68
|
width: 24px;
|
|
61
69
|
height: 24px;
|
|
62
|
-
}
|
|
70
|
+
}
|
|
71
|
+
.tw-avatar--24.tw-avatar--emoji,
|
|
63
72
|
.tw-avatar--24.tw-avatar--icon {
|
|
64
73
|
font-size: 12px;
|
|
65
|
-
}
|
|
74
|
+
}
|
|
75
|
+
.tw-avatar--24.tw-avatar--initials {
|
|
66
76
|
font-size: 8.4px;
|
|
67
|
-
}
|
|
77
|
+
}
|
|
78
|
+
.tw-avatar--24.tw-avatar--branded {
|
|
68
79
|
font-size: 10.8px;
|
|
69
|
-
}
|
|
80
|
+
}
|
|
81
|
+
.tw-avatar--24.tw-avatar--outlined {
|
|
70
82
|
padding: 2px;
|
|
71
|
-
}
|
|
83
|
+
}
|
|
84
|
+
.tw-avatar--24.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
72
85
|
top: 2px;
|
|
73
86
|
left: 2px;
|
|
74
87
|
right: 2px;
|
|
75
88
|
bottom: 2px;
|
|
76
|
-
}
|
|
89
|
+
}
|
|
90
|
+
.tw-avatar--24.tw-avatar--thumbnail::after {
|
|
77
91
|
position: absolute;
|
|
78
92
|
top: 0;
|
|
79
93
|
left: 0;
|
|
@@ -83,25 +97,32 @@
|
|
|
83
97
|
border: 1px solid var(--color-border-overlay);
|
|
84
98
|
content: "";
|
|
85
99
|
border-radius: 50%;
|
|
86
|
-
}
|
|
100
|
+
}
|
|
101
|
+
.tw-avatar--40 {
|
|
87
102
|
min-width: 40px;
|
|
88
103
|
width: 40px;
|
|
89
104
|
height: 40px;
|
|
90
|
-
}
|
|
105
|
+
}
|
|
106
|
+
.tw-avatar--40.tw-avatar--emoji,
|
|
91
107
|
.tw-avatar--40.tw-avatar--icon {
|
|
92
108
|
font-size: 20px;
|
|
93
|
-
}
|
|
109
|
+
}
|
|
110
|
+
.tw-avatar--40.tw-avatar--initials {
|
|
94
111
|
font-size: 14px;
|
|
95
|
-
}
|
|
112
|
+
}
|
|
113
|
+
.tw-avatar--40.tw-avatar--branded {
|
|
96
114
|
font-size: 18px;
|
|
97
|
-
}
|
|
115
|
+
}
|
|
116
|
+
.tw-avatar--40.tw-avatar--outlined {
|
|
98
117
|
padding: 2px;
|
|
99
|
-
}
|
|
118
|
+
}
|
|
119
|
+
.tw-avatar--40.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
100
120
|
top: 2px;
|
|
101
121
|
left: 2px;
|
|
102
122
|
right: 2px;
|
|
103
123
|
bottom: 2px;
|
|
104
|
-
}
|
|
124
|
+
}
|
|
125
|
+
.tw-avatar--40.tw-avatar--thumbnail::after {
|
|
105
126
|
position: absolute;
|
|
106
127
|
top: 0;
|
|
107
128
|
left: 0;
|
|
@@ -111,25 +132,32 @@
|
|
|
111
132
|
border: 1px solid var(--color-border-overlay);
|
|
112
133
|
content: "";
|
|
113
134
|
border-radius: 50%;
|
|
114
|
-
}
|
|
135
|
+
}
|
|
136
|
+
.tw-avatar--48 {
|
|
115
137
|
min-width: 48px;
|
|
116
138
|
width: 48px;
|
|
117
139
|
height: 48px;
|
|
118
|
-
}
|
|
140
|
+
}
|
|
141
|
+
.tw-avatar--48.tw-avatar--emoji,
|
|
119
142
|
.tw-avatar--48.tw-avatar--icon {
|
|
120
143
|
font-size: 24px;
|
|
121
|
-
}
|
|
144
|
+
}
|
|
145
|
+
.tw-avatar--48.tw-avatar--initials {
|
|
122
146
|
font-size: 16.8px;
|
|
123
|
-
}
|
|
147
|
+
}
|
|
148
|
+
.tw-avatar--48.tw-avatar--branded {
|
|
124
149
|
font-size: 21.6px;
|
|
125
|
-
}
|
|
150
|
+
}
|
|
151
|
+
.tw-avatar--48.tw-avatar--outlined {
|
|
126
152
|
padding: 2px;
|
|
127
|
-
}
|
|
153
|
+
}
|
|
154
|
+
.tw-avatar--48.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
128
155
|
top: 2px;
|
|
129
156
|
left: 2px;
|
|
130
157
|
right: 2px;
|
|
131
158
|
bottom: 2px;
|
|
132
|
-
}
|
|
159
|
+
}
|
|
160
|
+
.tw-avatar--48.tw-avatar--thumbnail::after {
|
|
133
161
|
position: absolute;
|
|
134
162
|
top: 0;
|
|
135
163
|
left: 0;
|
|
@@ -139,25 +167,32 @@
|
|
|
139
167
|
border: 1px solid var(--color-border-overlay);
|
|
140
168
|
content: "";
|
|
141
169
|
border-radius: 50%;
|
|
142
|
-
}
|
|
170
|
+
}
|
|
171
|
+
.tw-avatar--56 {
|
|
143
172
|
min-width: 56px;
|
|
144
173
|
width: 56px;
|
|
145
174
|
height: 56px;
|
|
146
|
-
}
|
|
175
|
+
}
|
|
176
|
+
.tw-avatar--56.tw-avatar--emoji,
|
|
147
177
|
.tw-avatar--56.tw-avatar--icon {
|
|
148
178
|
font-size: 28px;
|
|
149
|
-
}
|
|
179
|
+
}
|
|
180
|
+
.tw-avatar--56.tw-avatar--initials {
|
|
150
181
|
font-size: 19.6px;
|
|
151
|
-
}
|
|
182
|
+
}
|
|
183
|
+
.tw-avatar--56.tw-avatar--branded {
|
|
152
184
|
font-size: 25.2px;
|
|
153
|
-
}
|
|
185
|
+
}
|
|
186
|
+
.tw-avatar--56.tw-avatar--outlined {
|
|
154
187
|
padding: 2px;
|
|
155
|
-
}
|
|
188
|
+
}
|
|
189
|
+
.tw-avatar--56.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
156
190
|
top: 2px;
|
|
157
191
|
left: 2px;
|
|
158
192
|
right: 2px;
|
|
159
193
|
bottom: 2px;
|
|
160
|
-
}
|
|
194
|
+
}
|
|
195
|
+
.tw-avatar--56.tw-avatar--thumbnail::after {
|
|
161
196
|
position: absolute;
|
|
162
197
|
top: 0;
|
|
163
198
|
left: 0;
|
|
@@ -167,25 +202,32 @@
|
|
|
167
202
|
border: 1px solid var(--color-border-overlay);
|
|
168
203
|
content: "";
|
|
169
204
|
border-radius: 50%;
|
|
170
|
-
}
|
|
205
|
+
}
|
|
206
|
+
.tw-avatar--72 {
|
|
171
207
|
min-width: 72px;
|
|
172
208
|
width: 72px;
|
|
173
209
|
height: 72px;
|
|
174
|
-
}
|
|
210
|
+
}
|
|
211
|
+
.tw-avatar--72.tw-avatar--emoji,
|
|
175
212
|
.tw-avatar--72.tw-avatar--icon {
|
|
176
213
|
font-size: 36px;
|
|
177
|
-
}
|
|
214
|
+
}
|
|
215
|
+
.tw-avatar--72.tw-avatar--initials {
|
|
178
216
|
font-size: 25.2px;
|
|
179
|
-
}
|
|
217
|
+
}
|
|
218
|
+
.tw-avatar--72.tw-avatar--branded {
|
|
180
219
|
font-size: 32.4px;
|
|
181
|
-
}
|
|
220
|
+
}
|
|
221
|
+
.tw-avatar--72.tw-avatar--outlined {
|
|
182
222
|
padding: 2px;
|
|
183
|
-
}
|
|
223
|
+
}
|
|
224
|
+
.tw-avatar--72.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
184
225
|
top: 2px;
|
|
185
226
|
left: 2px;
|
|
186
227
|
right: 2px;
|
|
187
228
|
bottom: 2px;
|
|
188
|
-
}
|
|
229
|
+
}
|
|
230
|
+
.tw-avatar--72.tw-avatar--thumbnail::after {
|
|
189
231
|
position: absolute;
|
|
190
232
|
top: 0;
|
|
191
233
|
left: 0;
|
|
@@ -195,11 +237,14 @@
|
|
|
195
237
|
border: 1px solid var(--color-border-overlay);
|
|
196
238
|
content: "";
|
|
197
239
|
border-radius: 50%;
|
|
198
|
-
}
|
|
240
|
+
}
|
|
241
|
+
.tw-avatar img {
|
|
199
242
|
width: 100%;
|
|
200
243
|
height: 100%;
|
|
201
|
-
}
|
|
244
|
+
}
|
|
245
|
+
.np-theme-personal .tw-avatar--outlined {
|
|
202
246
|
border-color: var(--color-interactive-primary);
|
|
203
|
-
}
|
|
247
|
+
}
|
|
248
|
+
.np-theme-personal .tw-avatar--outlined:not(.disabled):not(:disabled):hover {
|
|
204
249
|
border-color: var(--color-interactive-primary-hover);
|
|
205
250
|
}
|
|
@@ -35,11 +35,14 @@ describe('Avatar', () => {
|
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
describe('branded avatar colors', () => {
|
|
38
|
-
it.each(avatarColorTestCases)(
|
|
39
|
-
|
|
38
|
+
it.each(avatarColorTestCases)(
|
|
39
|
+
'for seed of $key return background color of `$color.token`',
|
|
40
|
+
(item: { key: string | number; color: { hex: string; token: string } }) => {
|
|
41
|
+
render(<Avatar backgroundColorSeed={item.key.toString()}>JS</Avatar>);
|
|
40
42
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
expect(screen.getByText('JS')).toHaveStyle(`background-color: var(${item.color.token})`);
|
|
44
|
+
},
|
|
45
|
+
);
|
|
43
46
|
});
|
|
44
47
|
|
|
45
48
|
it('adds aria-label to component if it is passed in', () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
import * as wiseIcons from '@transferwise/icons';
|
|
3
3
|
import { Flag } from '@wise/art';
|
|
4
4
|
|
|
@@ -12,8 +12,8 @@ import Avatar, { AvatarType } from '.';
|
|
|
12
12
|
*/
|
|
13
13
|
export default {
|
|
14
14
|
component: Avatar,
|
|
15
|
-
title: 'Content/Avatar
|
|
16
|
-
tags: ['
|
|
15
|
+
title: 'Content/Avatar',
|
|
16
|
+
tags: ['deprecated'],
|
|
17
17
|
} satisfies Meta<typeof Avatar>;
|
|
18
18
|
|
|
19
19
|
type Story = StoryObj<typeof Avatar>;
|
|
@@ -1,5 +1,5 @@
|
|
|
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 AvatarLayout, { AvatarLayoutProps } from '.';
|
|
4
4
|
import { Freeze, Graph, Plane, Rewards } from '@transferwise/icons';
|
|
5
5
|
import { Flag } from '@wise/art';
|
|
@@ -14,7 +14,6 @@ type Story = StoryObj<typeof AvatarLayout>;
|
|
|
14
14
|
const sizes: AvatarLayoutProps['size'][] = [16, 24, 32, 40, 48, 56, 72];
|
|
15
15
|
|
|
16
16
|
export const Diagonal: Story = {
|
|
17
|
-
tags: ['autodocs'],
|
|
18
17
|
render: () => (
|
|
19
18
|
<div
|
|
20
19
|
style={{
|
|
@@ -98,7 +97,6 @@ export const Diagonal: Story = {
|
|
|
98
97
|
};
|
|
99
98
|
|
|
100
99
|
export const Horizontal: Story = {
|
|
101
|
-
tags: ['autodocs'],
|
|
102
100
|
render: () => (
|
|
103
101
|
<div
|
|
104
102
|
style={{
|
|
@@ -182,7 +180,6 @@ export const Horizontal: Story = {
|
|
|
182
180
|
};
|
|
183
181
|
|
|
184
182
|
export const EdgeInstances: Story = {
|
|
185
|
-
tags: ['autodocs'],
|
|
186
183
|
render: () => (
|
|
187
184
|
<div
|
|
188
185
|
style={{
|
|
@@ -84,7 +84,7 @@ export default function AvatarLayout({
|
|
|
84
84
|
const DIAGONAL_LAYOUT_STYLE_CONFIG = {
|
|
85
85
|
// Diagonal layout doesn't support 16 size
|
|
86
86
|
16: { avatarSize: undefined, offset: undefined, fontSize: undefined, iconSize: undefined },
|
|
87
|
-
24: { avatarSize:
|
|
87
|
+
24: { avatarSize: 16, offset: 2.5, fontSize: 8, iconSize: 11.25 },
|
|
88
88
|
32: { avatarSize: 20, offset: 2.5, fontSize: 12, iconSize: 15 },
|
|
89
89
|
40: { avatarSize: 24, offset: 4.5, fontSize: 12, iconSize: 18 },
|
|
90
90
|
48: { avatarSize: 30, offset: 3.5, fontSize: 14, iconSize: 16.87 },
|
|
@@ -1,5 +1,5 @@
|
|
|
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 {
|
|
4
4
|
Camera,
|
|
5
5
|
Convert,
|
|
@@ -35,7 +35,6 @@ const profileName2 = 'Tyler Durden';
|
|
|
35
35
|
const sizes: AvatarViewProps['size'][] = [16, 24, 32, 40, 48, 56, 72];
|
|
36
36
|
|
|
37
37
|
export const Selected: Story = {
|
|
38
|
-
tags: ['autodocs'],
|
|
39
38
|
render: () => {
|
|
40
39
|
return (
|
|
41
40
|
<div
|
|
@@ -69,7 +68,6 @@ export const Selected: Story = {
|
|
|
69
68
|
};
|
|
70
69
|
|
|
71
70
|
export const Notification: Story = {
|
|
72
|
-
tags: ['autodocs'],
|
|
73
71
|
render: () => (
|
|
74
72
|
<div
|
|
75
73
|
style={{
|
|
@@ -106,7 +104,6 @@ export const Notification: Story = {
|
|
|
106
104
|
};
|
|
107
105
|
|
|
108
106
|
export const Badge: Story = {
|
|
109
|
-
tags: ['autodocs'],
|
|
110
107
|
render: () => {
|
|
111
108
|
const currencies = ['USD', 'EUR', 'GBP', 'AUD', 'CAD', 'JPY', 'CNY'];
|
|
112
109
|
const icons = [
|
|
@@ -250,7 +247,6 @@ export const Badge: Story = {
|
|
|
250
247
|
};
|
|
251
248
|
|
|
252
249
|
export const Images: Story = {
|
|
253
|
-
tags: ['autodocs'],
|
|
254
250
|
render: () => {
|
|
255
251
|
return (
|
|
256
252
|
<div
|
|
@@ -305,7 +301,6 @@ export const Images: Story = {
|
|
|
305
301
|
};
|
|
306
302
|
|
|
307
303
|
export const Profiles: Story = {
|
|
308
|
-
tags: ['autodocs'],
|
|
309
304
|
render: () => {
|
|
310
305
|
return (
|
|
311
306
|
<div
|
|
@@ -388,7 +383,6 @@ export const ProfileBrokenImageFallback: Story = {
|
|
|
388
383
|
};
|
|
389
384
|
|
|
390
385
|
export const EdgeInstaces: Story = {
|
|
391
|
-
tags: ['autodocs'],
|
|
392
386
|
render: () => {
|
|
393
387
|
const css = `.custom-variant {
|
|
394
388
|
border: 1px dashed var(--color-border-neutral);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
import { ProfileType, Sentiment, Status } from '../common';
|
|
4
4
|
|
|
@@ -8,9 +8,9 @@ import AvatarWrapper from './AvatarWrapper';
|
|
|
8
8
|
* @deprecated use **`AvatarView`** components instead
|
|
9
9
|
*/
|
|
10
10
|
export default {
|
|
11
|
-
tags: ['autodocs'],
|
|
12
11
|
component: AvatarWrapper,
|
|
13
|
-
title: 'Content/AvatarWrapper
|
|
12
|
+
title: 'Content/AvatarWrapper',
|
|
13
|
+
tags: ['deprecated'],
|
|
14
14
|
} satisfies Meta<typeof AvatarWrapper>;
|
|
15
15
|
|
|
16
16
|
type Story = StoryObj<typeof AvatarWrapper>;
|