@transferwise/components 46.130.3 → 46.131.0
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/main.css +27004 -7
- package/build/styles/css/accordion.css +255 -0
- package/build/styles/css/alerts.css +751 -0
- package/build/styles/css/background.css +20 -0
- package/build/styles/css/badge.css +90 -0
- package/build/styles/css/border-radius.css +3 -0
- package/build/styles/css/breadcrumbs.css +20 -0
- package/build/styles/css/button-groups.css +495 -0
- package/build/styles/css/buttons.css +1390 -0
- package/build/styles/css/chevron.css +35 -0
- package/build/styles/css/circles.css +248 -0
- package/build/styles/css/close.css +47 -0
- package/build/styles/css/column-layout.css +164 -0
- package/build/styles/css/currency-flags.css +46 -0
- package/build/styles/css/decision.css +136 -0
- package/build/styles/css/dropdowns.css +472 -0
- package/build/styles/css/droppable.css +221 -0
- package/build/styles/css/flex.css +598 -0
- package/build/styles/css/footer.css +129 -0
- package/build/styles/css/grid.css +2369 -0
- package/build/styles/css/input-groups.css +2740 -0
- package/build/styles/css/link-callout.css +20 -0
- package/build/styles/css/list-group.css +350 -0
- package/build/styles/css/loaders.css +76 -0
- package/build/styles/css/media.css +74 -0
- package/build/styles/css/modals.css +185 -0
- package/build/styles/css/navbar.css +2406 -0
- package/build/styles/css/navs.css +296 -0
- package/build/styles/css/neptune-social-media.css +144 -0
- package/build/styles/css/neptune.css +25724 -0
- package/build/styles/css/panels.css +528 -0
- package/build/styles/css/popovers.css +661 -0
- package/build/styles/css/process.css +483 -0
- package/build/styles/css/progress-bars.css +64 -0
- package/build/styles/css/ring.css +55 -0
- package/build/styles/css/select.css +99 -0
- package/build/styles/css/sequences.css +855 -0
- package/build/styles/css/table.css +446 -0
- package/build/styles/css/tick.css +32 -0
- package/build/styles/css/tooltip.css +160 -0
- package/build/styles/css/utilities.css +145 -0
- package/build/styles/css/wells.css +74 -0
- package/build/styles/fonts/TW-Averta-Bold.woff +0 -0
- package/build/styles/fonts/TW-Averta-Bold.woff2 +0 -0
- package/build/styles/fonts/TW-Averta-Regular.woff +0 -0
- package/build/styles/fonts/TW-Averta-Regular.woff2 +0 -0
- package/build/styles/fonts/TW-Averta-Semibold.woff +0 -0
- package/build/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
- package/build/styles/fonts/TransferWise-IconFont.svg +81 -0
- package/build/styles/fonts/TransferWise-IconFont.woff +0 -0
- package/build/styles/fonts/WiseSans-Heavy.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/img/bg-dark.svg +31 -0
- package/build/styles/img/bg-light.svg +26 -0
- package/build/styles/less/legacy-variables.css +0 -0
- package/build/styles/less/legacy-variables.less +1299 -0
- package/build/styles/less/neptune-tokens.css +0 -0
- package/build/styles/less/neptune-tokens.less +275 -0
- package/build/styles/less/zindex.css +0 -0
- package/build/styles/less/zindex.less +17 -0
- package/build/styles/main.css +27004 -7
- package/build/styles/props/custom-media.css +11 -0
- package/build/styles/props/legacy-custom-props.css +69 -0
- package/build/styles/props/neptune-tokens.css +152 -0
- package/build/styles/styles/less/accordion.css +255 -0
- package/build/styles/styles/less/alerts.css +751 -0
- package/build/styles/styles/less/background.css +20 -0
- package/build/styles/styles/less/badge.css +90 -0
- package/build/styles/styles/less/border-radius.css +3 -0
- package/build/styles/styles/less/breadcrumbs.css +20 -0
- package/build/styles/styles/less/button-groups.css +495 -0
- package/build/styles/styles/less/buttons.css +1390 -0
- package/build/styles/styles/less/chevron.css +35 -0
- package/build/styles/styles/less/circles.css +248 -0
- package/build/styles/styles/less/close.css +47 -0
- package/build/styles/styles/less/column-layout.css +164 -0
- package/build/styles/styles/less/core/viewport-themes.css +59 -0
- package/build/styles/styles/less/currency-flags.css +46 -0
- package/build/styles/styles/less/decision.css +136 -0
- package/build/styles/styles/less/dropdowns.css +472 -0
- package/build/styles/styles/less/droppable.css +221 -0
- package/build/styles/styles/less/flex.css +598 -0
- package/build/styles/styles/less/footer.css +129 -0
- package/build/styles/styles/less/forms/bootstrap-forms.css +2277 -0
- package/build/styles/styles/less/forms/checkbox-radio.css +367 -0
- package/build/styles/styles/less/grid.css +2369 -0
- package/build/styles/styles/less/input-groups.css +2740 -0
- package/build/styles/styles/less/link-callout.css +20 -0
- package/build/styles/styles/less/list-group.css +350 -0
- package/build/styles/styles/less/loaders.css +76 -0
- package/build/styles/styles/less/media.css +74 -0
- package/build/styles/styles/less/modals.css +185 -0
- package/build/styles/styles/less/navbar.css +2406 -0
- package/build/styles/styles/less/navs.css +296 -0
- package/build/styles/styles/less/neptune-social-media.css +144 -0
- package/build/styles/styles/less/neptune.css +25724 -0
- package/build/styles/styles/less/panels.css +528 -0
- package/build/styles/styles/less/popovers.css +661 -0
- package/build/styles/styles/less/process.css +483 -0
- package/build/styles/styles/less/progress-bars.css +64 -0
- package/build/styles/styles/less/ring.css +55 -0
- package/build/styles/styles/less/select.css +99 -0
- package/build/styles/styles/less/sequences.css +855 -0
- package/build/styles/styles/less/table.css +446 -0
- package/build/styles/styles/less/tick.css +32 -0
- package/build/styles/styles/less/tooltip.css +160 -0
- package/build/styles/styles/less/utilities.css +145 -0
- package/build/styles/styles/less/wells.css +74 -0
- package/build/styles/styles/props/custom-media.css +11 -0
- package/build/styles/styles/props/legacy-custom-props.css +69 -0
- package/build/styles/styles/props/neptune-tokens.css +11 -0
- package/build/styles/styles/variables/legacy-variables.css +0 -0
- package/build/styles/styles/variables/neptune-tokens.css +0 -0
- package/build/styles/styles/variables/zindex.css +0 -0
- package/package.json +9 -5
- package/src/{DisabledComponents.story.tsx → DisabledComponents.test.story.tsx} +1 -1
- package/src/accordion/Accordion.less +3 -3
- package/src/actionButton/ActionButton.less +1 -1
- package/src/actionButton/ActionButton.story.tsx +11 -7
- package/src/actionButton/ActionButton.test.story.tsx +49 -0
- package/src/avatar/Avatar.less +3 -3
- package/src/avatarLayout/AvatarLayout.story.tsx +1 -105
- package/src/avatarLayout/AvatarLayout.test.story.tsx +117 -0
- package/src/avatarView/AvatarView.story.tsx +1 -104
- package/src/avatarView/AvatarView.test.story.tsx +114 -0
- package/src/badge/Badge.less +1 -1
- package/src/button/LegacyButton.less +1 -1
- package/src/button/LegacyButton.story.tsx +1 -26
- package/src/button/LegacyButton.test.story.tsx +37 -0
- package/src/button/_stories/Button.story.tsx +17 -41
- package/src/button/_stories/Button.test.story.tsx +30 -0
- package/src/card/Card.less +3 -3
- package/src/checkbox/Checkbox.story.tsx +1 -6
- package/src/checkbox/Checkbox.test.story.tsx +33 -0
- package/src/checkboxButton/CheckboxButton.less +2 -2
- package/src/chips/Chip.less +3 -3
- package/src/circularButton/CircularButton.story.tsx +0 -6
- package/src/circularButton/CircularButton.test.story.tsx +62 -1
- package/src/common/Option/Option.less +2 -2
- package/src/common/bottomSheet/BottomSheet.less +1 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +0 -55
- package/src/common/bottomSheet/BottomSheet.test.story.tsx +118 -2
- package/src/common/closeButton/CloseButton.less +1 -1
- package/src/common/panel/Panel.less +1 -1
- package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +1 -1
- package/src/dateLookup/DateLookup.less +1 -1
- package/src/dateLookup/DateLookup.story.tsx +0 -18
- package/src/dateLookup/DateLookup.test.story.tsx +51 -1
- package/src/dateLookup/dateTrigger/DateTrigger.less +2 -2
- package/src/decision/Decision.less +1 -1
- package/src/definitionList/DefinitionList.less +1 -1
- package/src/dimmer/Dimmer.less +2 -2
- package/src/divider/Divider.story.tsx +0 -1
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.autofocus.docs.mdx +1 -1
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -9
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.test.story.tsx +23 -0
- package/src/field/Field.story.tsx +1 -34
- package/src/field/Field.test.story.tsx +56 -0
- package/src/flowNavigation/FlowNavigation.less +1 -1
- package/src/flowNavigation/animatedLabel/AnimatedLabel.less +2 -2
- package/src/header/Header.test.story.tsx +1 -1
- package/src/info/Info.less +1 -1
- package/src/info/Info.story.tsx +1 -34
- package/src/info/Info.test.story.tsx +53 -0
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.story.tsx +0 -12
- package/src/inputWithDisplayFormat/InputWithDisplayFormat.test.story.tsx +33 -0
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +1 -1
- package/src/inputs/SelectInput/Options/SelectInputOptions.less +1 -1
- package/src/inputs/SelectInput/SelectInput.less +1 -1
- package/src/inputs/_common.less +1 -1
- package/src/legacylistItem/LegacyListItem.test.story.tsx +1 -1
- package/src/link/Link.less +2 -2
- package/src/listItem/ListItem.less +1 -1
- package/src/listItem/_stories/Breakpoints/ListItem.noMedia.test.story.tsx +1 -1
- package/src/listItem/_stories/Breakpoints/ListItem.sideMedia.test.story.tsx +1 -1
- package/src/listItem/_stories/Breakpoints/ListItem.stackedMedia.test.story.tsx +1 -1
- package/src/listItem/_stories/ListItem.focus.test.story.tsx +1 -1
- package/src/listItem/_stories/ListItem.layout.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.brightGreen.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.dark.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.forestGreen.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.medium.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.neutral.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.personal.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.rtl.test.story.tsx +1 -1
- package/src/listItem/_stories/variants/ListItem.small.test.story.tsx +1 -1
- package/src/logo/Logo.story.tsx +0 -6
- package/src/logo/Logo.test.story.tsx +20 -0
- package/src/main.css +27004 -7
- package/src/main.less +2 -0
- package/src/modal/Modal.story.tsx +0 -26
- package/src/modal/Modal.test.story.tsx +125 -0
- package/src/moneyInput/MoneyInput.less +2 -2
- package/src/moneyInput/MoneyInput.test.story.tsx +1 -1
- package/src/navigationOption/NavigationOption.less +3 -3
- package/src/navigationOptionsList/NavigationOptionsList.less +1 -1
- package/src/overlayHeader/OverlayHeader.less +1 -1
- package/src/phoneNumberInput/PhoneNumberInput.less +1 -1
- package/src/popover/Popover.less +1 -1
- package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +0 -43
- package/src/prompt/ActionPrompt/ActionPrompt.test.story.tsx +45 -1
- package/src/radioGroup/RadioGroup.test.story.tsx +1 -1
- package/src/select/Select.less +5 -5
- package/src/slidingPanel/SlidingPanel.less +2 -2
- package/src/snackbar/Snackbar.less +3 -3
- package/src/stepper/Stepper.less +3 -3
- package/src/stepper/Stepper.test.story.tsx +1 -1
- package/src/styles/fonts/TW-Averta-Bold.woff +0 -0
- package/src/styles/fonts/TW-Averta-Bold.woff2 +0 -0
- package/src/styles/fonts/TW-Averta-Regular.woff +0 -0
- package/src/styles/fonts/TW-Averta-Regular.woff2 +0 -0
- package/src/styles/fonts/TW-Averta-Semibold.woff +0 -0
- package/src/styles/fonts/TW-Averta-Semibold.woff2 +0 -0
- package/src/styles/fonts/TransferWise-IconFont.svg +81 -0
- package/src/styles/fonts/TransferWise-IconFont.woff +0 -0
- package/src/styles/fonts/WiseSans-Heavy.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/img/bg-dark.svg +31 -0
- package/src/styles/img/bg-light.svg +26 -0
- package/src/styles/less/accordion.css +255 -0
- package/src/styles/less/accordion.less +15 -0
- package/src/styles/less/addons/_background-utilities.less +82 -0
- package/src/styles/less/addons/_border.less +3 -0
- package/src/styles/less/addons/_display-utilities.less +159 -0
- package/src/styles/less/addons/_spacing-utilities.less +73 -0
- package/src/styles/less/addons/_utilities.less +147 -0
- package/src/styles/less/alerts.css +751 -0
- package/src/styles/less/alerts.less +252 -0
- package/src/styles/less/background.css +20 -0
- package/src/styles/less/background.less +24 -0
- package/src/styles/less/badge.css +90 -0
- package/src/styles/less/badge.less +85 -0
- package/src/styles/less/border-radius.css +3 -0
- package/src/styles/less/border-radius.less +3 -0
- package/src/styles/less/breadcrumbs.css +20 -0
- package/src/styles/less/breadcrumbs.less +27 -0
- package/src/styles/less/button-groups.css +495 -0
- package/src/styles/less/button-groups.less +424 -0
- package/src/styles/less/buttons.css +1390 -0
- package/src/styles/less/buttons.less +738 -0
- package/src/styles/less/chevron.css +35 -0
- package/src/styles/less/chevron.less +39 -0
- package/src/styles/less/circles.css +248 -0
- package/src/styles/less/circles.less +233 -0
- package/src/styles/less/close.css +47 -0
- package/src/styles/less/close.less +48 -0
- package/src/styles/less/column-layout.css +164 -0
- package/src/styles/less/column-layout.less +167 -0
- package/src/styles/less/components/_component-animations.less +43 -0
- package/src/styles/less/core/_fonts.less +97 -0
- package/src/styles/less/core/_scaffolding.less +380 -0
- package/src/styles/less/core/_typography-utilities.less +255 -0
- package/src/styles/less/core/_typography.less +575 -0
- package/src/styles/less/core/viewport-themes.css +59 -0
- package/src/styles/less/core/viewport-themes.less +65 -0
- package/src/styles/less/currency-flags.css +46 -0
- package/src/styles/less/currency-flags.less +42 -0
- package/src/styles/less/decision.css +136 -0
- package/src/styles/less/decision.less +98 -0
- package/src/styles/less/dropdowns.css +472 -0
- package/src/styles/less/dropdowns.less +365 -0
- package/src/styles/less/droppable.css +221 -0
- package/src/styles/less/droppable.less +213 -0
- package/src/styles/less/flex.css +598 -0
- package/src/styles/less/flex.less +113 -0
- package/src/styles/less/footer.css +129 -0
- package/src/styles/less/footer.less +113 -0
- package/src/styles/less/forms/bootstrap-forms.css +2277 -0
- package/src/styles/less/forms/bootstrap-forms.less +1218 -0
- package/src/styles/less/forms/checkbox-radio.css +367 -0
- package/src/styles/less/forms/checkbox-radio.less +330 -0
- package/src/styles/less/grid.css +2369 -0
- package/src/styles/less/grid.less +187 -0
- package/src/styles/less/input-groups.css +2740 -0
- package/src/styles/less/input-groups.less +298 -0
- package/src/styles/less/link-callout.css +20 -0
- package/src/styles/less/link-callout.less +17 -0
- package/src/styles/less/list-group.css +350 -0
- package/src/styles/less/list-group.less +260 -0
- package/src/styles/less/loaders.css +76 -0
- package/src/styles/less/loaders.less +91 -0
- package/src/styles/less/media.css +74 -0
- package/src/styles/less/media.less +68 -0
- package/src/styles/less/mixins/_alerts.less +39 -0
- package/src/styles/less/mixins/_arrows.less +52 -0
- package/src/styles/less/mixins/_border-radius.less +11 -0
- package/src/styles/less/mixins/_buttons.less +82 -0
- package/src/styles/less/mixins/_center-block.less +7 -0
- package/src/styles/less/mixins/_clearfix.less +23 -0
- package/src/styles/less/mixins/_flex.less +105 -0
- package/src/styles/less/mixins/_forms.less +130 -0
- package/src/styles/less/mixins/_grid-framework.less +104 -0
- package/src/styles/less/mixins/_grid.less +158 -0
- package/src/styles/less/mixins/_hide-text.less +20 -0
- package/src/styles/less/mixins/_links.less +7 -0
- package/src/styles/less/mixins/_list-group.less +23 -0
- package/src/styles/less/mixins/_logical-properties-IE-friendly.less +381 -0
- package/src/styles/less/mixins/_logical-properties-modern-browsers.less +226 -0
- package/src/styles/less/mixins/_logical-properties.less +5 -0
- package/src/styles/less/mixins/_nav-divider.less +10 -0
- package/src/styles/less/mixins/_nav-vertical-align.less +10 -0
- package/src/styles/less/mixins/_panels.less +23 -0
- package/src/styles/less/mixins/_physical-properties.less +110 -0
- package/src/styles/less/mixins/_reset-text.less +22 -0
- package/src/styles/less/mixins/_sequence.less +203 -0
- package/src/styles/less/mixins/_spacing.less +122 -0
- package/src/styles/less/mixins/_tab-focus.less +5 -0
- package/src/styles/less/mixins/_table-row.less +47 -0
- package/src/styles/less/mixins/_text-emphasis.less +39 -0
- package/src/styles/less/mixins/_text-overflow.less +8 -0
- package/src/styles/less/mixins/_theming.less +7 -0
- package/src/styles/less/modals.css +185 -0
- package/src/styles/less/modals.less +239 -0
- package/src/styles/less/navbar.css +2406 -0
- package/src/styles/less/navbar.less +1442 -0
- package/src/styles/less/navs.css +296 -0
- package/src/styles/less/navs.less +339 -0
- package/src/styles/less/neptune-social-media.css +144 -0
- package/src/styles/less/neptune-social-media.less +84 -0
- package/src/styles/less/neptune.bundle.less +63 -0
- package/src/styles/less/neptune.css +25724 -0
- package/src/styles/less/panels.css +528 -0
- package/src/styles/less/panels.less +410 -0
- package/src/styles/less/popovers.css +661 -0
- package/src/styles/less/popovers.less +379 -0
- package/src/styles/less/process.css +483 -0
- package/src/styles/less/process.less +426 -0
- package/src/styles/less/progress-bars.css +64 -0
- package/src/styles/less/progress-bars.less +55 -0
- package/src/styles/less/ring.css +55 -0
- package/src/styles/less/ring.less +51 -0
- package/src/styles/less/select.css +99 -0
- package/src/styles/less/select.less +88 -0
- package/src/styles/less/sequences.css +855 -0
- package/src/styles/less/sequences.less +511 -0
- package/src/styles/less/table.css +446 -0
- package/src/styles/less/table.less +385 -0
- package/src/styles/less/tick.css +32 -0
- package/src/styles/less/tick.less +37 -0
- package/src/styles/less/tooltip.css +160 -0
- package/src/styles/less/tooltip.less +130 -0
- package/src/styles/less/utilities.css +145 -0
- package/src/styles/less/utilities.less +153 -0
- package/src/styles/less/wells.css +74 -0
- package/src/styles/less/wells.less +37 -0
- package/src/styles/props/custom-media.css +11 -0
- package/src/styles/props/legacy-custom-props.css +69 -0
- package/src/styles/props/neptune-tokens.css +11 -0
- package/src/styles/variables/legacy-variables.css +0 -0
- package/src/styles/variables/legacy-variables.less +1299 -0
- package/src/styles/variables/neptune-tokens.css +0 -0
- package/src/styles/variables/neptune-tokens.less +12 -0
- package/src/styles/variables/zindex.css +0 -0
- package/src/styles/variables/zindex.less +17 -0
- package/src/summary/Summary.less +1 -1
- package/src/summary/Summary.test.story.tsx +1 -1
- package/src/switch/Switch.less +4 -4
- package/src/table/Table.less +1 -1
- package/src/tabs/Tabs.less +4 -4
- package/src/tile/Tile.less +1 -1
- package/src/tooltip/Tooltip.less +1 -1
- package/src/tooltip/Tooltip.story.tsx +0 -21
- package/src/tooltip/Tooltip.test.story.tsx +42 -0
- package/src/typeahead/Typeahead.less +2 -2
- package/src/typeahead/Typeahead.story.tsx +0 -52
- package/src/typeahead/Typeahead.test.story.tsx +73 -0
- package/src/typeahead/typeaheadOption/TypeaheadOption.less +1 -1
- package/src/upload/Upload.less +1 -1
- package/src/uploadInput/UploadInput.less +2 -2
- package/src/uploadInput/uploadItem/UploadItem.less +1 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
.d-inline-block {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
.d-inline {
|
|
5
|
+
display: inline;
|
|
6
|
+
}
|
|
7
|
+
.clearfix::before,
|
|
8
|
+
.clearfix::after {
|
|
9
|
+
content: " ";
|
|
10
|
+
display: table;
|
|
11
|
+
}
|
|
12
|
+
.clearfix::after {
|
|
13
|
+
clear: both;
|
|
14
|
+
}
|
|
15
|
+
.center-block {
|
|
16
|
+
display: block;
|
|
17
|
+
margin-left: auto;
|
|
18
|
+
margin-right: auto;
|
|
19
|
+
}
|
|
20
|
+
.pull-right,
|
|
21
|
+
.pull-xs-right {
|
|
22
|
+
float: right !important;
|
|
23
|
+
}
|
|
24
|
+
[dir="rtl"] .pull-right,
|
|
25
|
+
[dir="rtl"] .pull-xs-right {
|
|
26
|
+
float: left !important;
|
|
27
|
+
}
|
|
28
|
+
.pull-left,
|
|
29
|
+
.pull-xs-left {
|
|
30
|
+
float: left !important;
|
|
31
|
+
}
|
|
32
|
+
[dir="rtl"] .pull-left,
|
|
33
|
+
[dir="rtl"] .pull-xs-left {
|
|
34
|
+
float: right !important;
|
|
35
|
+
}
|
|
36
|
+
.pull-xs-none {
|
|
37
|
+
float: none !important;
|
|
38
|
+
}
|
|
39
|
+
@media (min-width: 576px) {
|
|
40
|
+
.pull-sm-left {
|
|
41
|
+
float: left !important;
|
|
42
|
+
}
|
|
43
|
+
[dir="rtl"] .pull-sm-left {
|
|
44
|
+
float: right !important;
|
|
45
|
+
}
|
|
46
|
+
.pull-sm-right {
|
|
47
|
+
float: right !important;
|
|
48
|
+
}
|
|
49
|
+
[dir="rtl"] .pull-sm-right {
|
|
50
|
+
float: left !important;
|
|
51
|
+
}
|
|
52
|
+
.pull-sm-none {
|
|
53
|
+
float: none !important;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@media (min-width: 768px) {
|
|
57
|
+
.pull-md-left {
|
|
58
|
+
float: left !important;
|
|
59
|
+
}
|
|
60
|
+
[dir="rtl"] .pull-md-left {
|
|
61
|
+
float: right !important;
|
|
62
|
+
}
|
|
63
|
+
.pull-md-right {
|
|
64
|
+
float: right !important;
|
|
65
|
+
}
|
|
66
|
+
[dir="rtl"] .pull-md-right {
|
|
67
|
+
float: left !important;
|
|
68
|
+
}
|
|
69
|
+
.pull-md-none {
|
|
70
|
+
float: none !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@media (min-width: 992px) {
|
|
74
|
+
.pull-lg-left {
|
|
75
|
+
float: left !important;
|
|
76
|
+
}
|
|
77
|
+
[dir="rtl"] .pull-lg-left {
|
|
78
|
+
float: right !important;
|
|
79
|
+
}
|
|
80
|
+
.pull-lg-right {
|
|
81
|
+
float: right !important;
|
|
82
|
+
}
|
|
83
|
+
[dir="rtl"] .pull-lg-right {
|
|
84
|
+
float: left !important;
|
|
85
|
+
}
|
|
86
|
+
.pull-lg-none {
|
|
87
|
+
float: none !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
@media (min-width: 1200px) {
|
|
91
|
+
.pull-xl-left {
|
|
92
|
+
float: left !important;
|
|
93
|
+
}
|
|
94
|
+
[dir="rtl"] .pull-xl-left {
|
|
95
|
+
float: right !important;
|
|
96
|
+
}
|
|
97
|
+
.pull-xl-right {
|
|
98
|
+
float: right !important;
|
|
99
|
+
}
|
|
100
|
+
[dir="rtl"] .pull-xl-right {
|
|
101
|
+
float: left !important;
|
|
102
|
+
}
|
|
103
|
+
.pull-xl-none {
|
|
104
|
+
float: none !important;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
.pull-left-single-direction {
|
|
108
|
+
float: left !important;
|
|
109
|
+
}
|
|
110
|
+
.pull-right-single-direction {
|
|
111
|
+
float: right !important;
|
|
112
|
+
}
|
|
113
|
+
.hide {
|
|
114
|
+
display: none !important;
|
|
115
|
+
}
|
|
116
|
+
.show {
|
|
117
|
+
display: block !important;
|
|
118
|
+
}
|
|
119
|
+
.invisible {
|
|
120
|
+
visibility: hidden;
|
|
121
|
+
}
|
|
122
|
+
.text-hide {
|
|
123
|
+
color: transparent;
|
|
124
|
+
text-shadow: none;
|
|
125
|
+
background-color: transparent;
|
|
126
|
+
border: 0;
|
|
127
|
+
}
|
|
128
|
+
.hidden {
|
|
129
|
+
display: none !important;
|
|
130
|
+
}
|
|
131
|
+
.affix {
|
|
132
|
+
position: fixed;
|
|
133
|
+
}
|
|
134
|
+
.rotate90 {
|
|
135
|
+
transform: rotate(90deg);
|
|
136
|
+
}
|
|
137
|
+
.rotate180 {
|
|
138
|
+
transform: rotate(180deg);
|
|
139
|
+
}
|
|
140
|
+
.rotate270 {
|
|
141
|
+
transform: rotate(270deg);
|
|
142
|
+
}
|
|
143
|
+
.rotate-90 {
|
|
144
|
+
transform: rotate(-90deg);
|
|
145
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.well,
|
|
2
|
+
.well-xs {
|
|
3
|
+
min-height: 24px;
|
|
4
|
+
min-height: var(--size-24);
|
|
5
|
+
margin-bottom: 24px;
|
|
6
|
+
margin-bottom: var(--size-24);
|
|
7
|
+
border-radius: 10px;
|
|
8
|
+
border-radius: var(--radius-small);
|
|
9
|
+
border: solid 1px rgba(0,0,0,0.10196);
|
|
10
|
+
border: solid 1px var(--color-border-neutral);
|
|
11
|
+
padding: 24px;
|
|
12
|
+
padding: var(--size-24);
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
}
|
|
15
|
+
@media only screen and (min-width: 576px) {
|
|
16
|
+
.well-sm {
|
|
17
|
+
min-height: 24px;
|
|
18
|
+
min-height: var(--size-24);
|
|
19
|
+
margin-bottom: 24px;
|
|
20
|
+
margin-bottom: var(--size-24);
|
|
21
|
+
border-radius: 10px;
|
|
22
|
+
border-radius: var(--radius-small);
|
|
23
|
+
border: solid 1px rgba(0,0,0,0.10196);
|
|
24
|
+
border: solid 1px var(--color-border-neutral);
|
|
25
|
+
padding: 24px;
|
|
26
|
+
padding: var(--size-24);
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media only screen and (min-width: 768px) {
|
|
31
|
+
.well-md {
|
|
32
|
+
min-height: 24px;
|
|
33
|
+
min-height: var(--size-24);
|
|
34
|
+
margin-bottom: 24px;
|
|
35
|
+
margin-bottom: var(--size-24);
|
|
36
|
+
border-radius: 10px;
|
|
37
|
+
border-radius: var(--radius-small);
|
|
38
|
+
border: solid 1px rgba(0,0,0,0.10196);
|
|
39
|
+
border: solid 1px var(--color-border-neutral);
|
|
40
|
+
padding: 24px;
|
|
41
|
+
padding: var(--size-24);
|
|
42
|
+
box-shadow: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@media only screen and (min-width: 992px) {
|
|
46
|
+
.well-lg {
|
|
47
|
+
min-height: 24px;
|
|
48
|
+
min-height: var(--size-24);
|
|
49
|
+
margin-bottom: 24px;
|
|
50
|
+
margin-bottom: var(--size-24);
|
|
51
|
+
border-radius: 10px;
|
|
52
|
+
border-radius: var(--radius-small);
|
|
53
|
+
border: solid 1px rgba(0,0,0,0.10196);
|
|
54
|
+
border: solid 1px var(--color-border-neutral);
|
|
55
|
+
padding: 24px;
|
|
56
|
+
padding: var(--size-24);
|
|
57
|
+
box-shadow: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@media only screen and (min-width: 1200px) {
|
|
61
|
+
.well-xl {
|
|
62
|
+
min-height: 24px;
|
|
63
|
+
min-height: var(--size-24);
|
|
64
|
+
margin-bottom: 24px;
|
|
65
|
+
margin-bottom: var(--size-24);
|
|
66
|
+
border-radius: 10px;
|
|
67
|
+
border-radius: var(--radius-small);
|
|
68
|
+
border: solid 1px rgba(0,0,0,0.10196);
|
|
69
|
+
border: solid 1px var(--color-border-neutral);
|
|
70
|
+
padding: 24px;
|
|
71
|
+
padding: var(--size-24);
|
|
72
|
+
box-shadow: none;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@custom-media --screen-xs (min-width: 480px);
|
|
2
|
+
@custom-media --screen-xs-max (max-width: 575px); /* --screen-sm - 1 */
|
|
3
|
+
@custom-media --screen-sm (min-width: 576px);
|
|
4
|
+
@custom-media --screen-sm-max (max-width: 767px); /* --screen-md - 1 */
|
|
5
|
+
@custom-media --screen-md (min-width: 768px);
|
|
6
|
+
@custom-media --screen-md-max (max-width: 991px); /* --screen-lg - 1 */
|
|
7
|
+
@custom-media --screen-lg (min-width: 992px);
|
|
8
|
+
@custom-media --screen-lg-max (max-width: 1199px); /* --screen-xl - 1 */
|
|
9
|
+
@custom-media --screen-xl (min-width: 1200px);
|
|
10
|
+
|
|
11
|
+
@custom-media --screen-400-zoom (max-width: 320px); /* ~400% zoom viewport */
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
DEPRECATED
|
|
3
|
+
Use neptune-tokens.css instead.
|
|
4
|
+
If the token you want isn't available there, raise an issue in @transferwise/neptune-tokens.
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
--border-radius: var(--radius-small);
|
|
8
|
+
--spacer: 8px;
|
|
9
|
+
--space-4: 4px;
|
|
10
|
+
--space-8: 8px;
|
|
11
|
+
--space-12: 12px;
|
|
12
|
+
--space-16: 16px;
|
|
13
|
+
--space-24: 24px;
|
|
14
|
+
--space-32: 32px;
|
|
15
|
+
--space-40: 40px;
|
|
16
|
+
--space-48: 48px;
|
|
17
|
+
--space-56: 56px;
|
|
18
|
+
--space-64: 64px;
|
|
19
|
+
--color-text-link-hover: #00a4df;
|
|
20
|
+
--color-text-link-active: #008ec0;
|
|
21
|
+
--brand-white: #fff;
|
|
22
|
+
--link-color: #00b9ff;
|
|
23
|
+
--brand-pale-blue: #dbf0fd;
|
|
24
|
+
--brand-navy-minus-20: #253655;
|
|
25
|
+
--brand-navy-minus-10: #2e4369;
|
|
26
|
+
--brand-navy: #37517e;
|
|
27
|
+
--brand-blue-minus-20: #111824;
|
|
28
|
+
--brand-blue-minus-10: #192439;
|
|
29
|
+
--brand-blue: #223049;
|
|
30
|
+
--brand-light-blue-minus-10: #00a4df;
|
|
31
|
+
--brand-light-blue: #00b9ff;
|
|
32
|
+
--brand-grey-plus-10: #6f8691;
|
|
33
|
+
--brand-smoke-minus-10: #a8aaac;
|
|
34
|
+
--brand-smoke: #d3d5d8;
|
|
35
|
+
--brand-smoke-plus-10: #e2e6e8;
|
|
36
|
+
--brand-smoke-plus-20: #f2f5f7;
|
|
37
|
+
--brand-green-minus-10: #28b862;
|
|
38
|
+
--brand-green: #2ed06e;
|
|
39
|
+
--gray-base: #f2f5f7;
|
|
40
|
+
--gray-darker: #384347;
|
|
41
|
+
--gray-light: #829ca9;
|
|
42
|
+
--brand-primary: #37517e;
|
|
43
|
+
--body-bg: #fff;
|
|
44
|
+
--text-bold-color: #2e4369;
|
|
45
|
+
--font-size-xx-large: 2.8rem; /* 42px */
|
|
46
|
+
/* stylelint-disable-next-line number-max-precision */
|
|
47
|
+
--font-size-x-large: 1.8666666667rem; /* 28px */
|
|
48
|
+
/* stylelint-disable-next-line number-max-precision */
|
|
49
|
+
--font-size-large: 1.4666666667rem; /* 22px */
|
|
50
|
+
--font-size-medium: 1.2rem; /* 18px */
|
|
51
|
+
--font-size: 0.9375rem; /* 15px */
|
|
52
|
+
/* stylelint-disable-next-line number-max-precision */
|
|
53
|
+
--font-size-small: 0.9333333333rem; /* 14px */
|
|
54
|
+
--font-size-x-small: 0.8rem; /* 12px */
|
|
55
|
+
--line-height: 1.6; /* 24/15 */
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (--screen-md) {
|
|
59
|
+
:root {
|
|
60
|
+
--font-size-xx-large: 2.625rem; /* 42px */
|
|
61
|
+
--font-size-x-large: 1.75rem; /* 28px */
|
|
62
|
+
--font-size-large: 1.375rem; /* 22px */
|
|
63
|
+
--font-size-medium: 1.125rem; /* 18px */
|
|
64
|
+
--font-size: 1rem; /* 16px */
|
|
65
|
+
--font-size-small: 0.875rem; /* 14px */
|
|
66
|
+
--font-size-x-small: 0.75rem; /* 12px */
|
|
67
|
+
--line-height: 1.5; /* 24/16px */
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@import "@transferwise/neptune-tokens/tokens.css";
|
|
2
|
+
|
|
3
|
+
/* DEPRECATED, use neptune-tokens instead: https://transferwise.github.io/neptune-web/styles/tokens/Colors */
|
|
4
|
+
:root {
|
|
5
|
+
--color-primary: #37517e;
|
|
6
|
+
--color-secondary: #5d7079;
|
|
7
|
+
--color-accent: #00b9ff;
|
|
8
|
+
--color-positive: #2ed06e;
|
|
9
|
+
--color-negative: #f53636;
|
|
10
|
+
--color-warning: #ffa600;
|
|
11
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.
|
|
3
|
+
"version": "46.131.0",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -87,13 +87,12 @@
|
|
|
87
87
|
"storybook-addon-tag-badges": "^3.0.6",
|
|
88
88
|
"storybook-addon-test-codegen": "^3.0.1",
|
|
89
89
|
"@transferwise/less-config": "3.1.2",
|
|
90
|
-
"@transferwise/neptune-css": "14.26.3",
|
|
91
90
|
"@wise/components-theming": "1.10.1",
|
|
92
|
-
"@wise/wds-configs": "0.0.0"
|
|
91
|
+
"@wise/wds-configs": "0.0.0",
|
|
92
|
+
"@transferwise/neptune-css": "14.27.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
95
|
"@transferwise/icons": "^3 || ^4",
|
|
96
|
-
"@transferwise/neptune-css": "^14.26",
|
|
97
96
|
"@wise/art": "^2.26",
|
|
98
97
|
"@wise/components-theming": "^1.9.1",
|
|
99
98
|
"framer-motion": "^12.23.26",
|
|
@@ -119,7 +118,8 @@
|
|
|
119
118
|
"merge-props": "^6.0.0",
|
|
120
119
|
"react-popper": "^2.3.0",
|
|
121
120
|
"react-transition-group": "^4.4.5",
|
|
122
|
-
"virtua": "^0.48.5"
|
|
121
|
+
"virtua": "^0.48.5",
|
|
122
|
+
"@transferwise/neptune-tokens": "^8.16.0"
|
|
123
123
|
},
|
|
124
124
|
"publishConfig": {
|
|
125
125
|
"access": "public",
|
|
@@ -139,6 +139,10 @@
|
|
|
139
139
|
"build:copy-files": "cpx 'src/**/!(db)/*.{json,svg}' build",
|
|
140
140
|
"build:copy-css": "cpx 'src/main.css' build/ & cpx 'src/**/*.css' build/styles/",
|
|
141
141
|
"build:copy-lang": "cpx 'src/i18n/*.json' build/i18n && cpx 'src/i18n/index.js' build/i18n",
|
|
142
|
+
"build:neptune-css": "npm-run-all build:neptune-css:*",
|
|
143
|
+
"build:neptune-css:copy-brand-assets": "cpx 'src/styles/img/**' build/styles/img && cpx 'src/styles/fonts/*' build/styles/fonts",
|
|
144
|
+
"build:neptune-css:compile": "gulp compileLess --src='src/styles/less' --dest=build/styles/css",
|
|
145
|
+
"build:neptune-css:copy-vars": "gulp copyPropsAndVars --src='src/styles/props' --dest='build/styles/props' && gulp copyPropsAndVars --src='src/styles/variables' --dest='build/styles/less'",
|
|
142
146
|
"docs": "pnpm build",
|
|
143
147
|
"test": "TZ=UTC jest",
|
|
144
148
|
"test:watch": "TZ=UTC jest --watch",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import (reference) "
|
|
2
|
-
@import (reference) "
|
|
3
|
-
@import (reference) "
|
|
1
|
+
@import (reference) "./../styles/variables/neptune-tokens.less";
|
|
2
|
+
@import (reference) "./../styles/less/mixins/_logical-properties.less";
|
|
3
|
+
@import (reference) "./../styles/less/core/_typography.less";
|
|
4
4
|
|
|
5
5
|
.np-accordion-item {
|
|
6
6
|
display: block;
|
|
@@ -45,14 +45,18 @@ export const Basic: Story = {
|
|
|
45
45
|
Tertiary label
|
|
46
46
|
</ActionButton>
|
|
47
47
|
</div>
|
|
48
|
+
<div>
|
|
49
|
+
<ActionButton priority="primary" {...args} disabled>
|
|
50
|
+
Primary disabled
|
|
51
|
+
</ActionButton>
|
|
52
|
+
<ActionButton priority="secondary" {...args} disabled>
|
|
53
|
+
Secondary disabled
|
|
54
|
+
</ActionButton>
|
|
55
|
+
<ActionButton priority="tertiary" {...args} disabled>
|
|
56
|
+
Tertiary disabled
|
|
57
|
+
</ActionButton>
|
|
58
|
+
</div>
|
|
48
59
|
</div>
|
|
49
60
|
),
|
|
50
61
|
...withVariantConfig(['default', 'dark', 'rtl', 'mobile']),
|
|
51
62
|
};
|
|
52
|
-
|
|
53
|
-
export const Disabled: Story = {
|
|
54
|
-
...Basic,
|
|
55
|
-
args: {
|
|
56
|
-
disabled: true,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { Settings } from '@transferwise/icons';
|
|
3
|
+
import ActionButton from './ActionButton';
|
|
4
|
+
import { withVariantConfig } from '../../.storybook/helpers';
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ActionButton> = {
|
|
7
|
+
component: ActionButton,
|
|
8
|
+
tags: ['!autodocs', '!manifest', 'deprecated'],
|
|
9
|
+
title: 'Actions/ActionButton/Tests',
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof ActionButton>;
|
|
14
|
+
|
|
15
|
+
export const DisabledVariants: Story = {
|
|
16
|
+
render: (args) => (
|
|
17
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.4rem' }}>
|
|
18
|
+
<div>
|
|
19
|
+
<ActionButton priority="primary" {...args}>
|
|
20
|
+
Primary label
|
|
21
|
+
</ActionButton>
|
|
22
|
+
<ActionButton priority="secondary" {...args}>
|
|
23
|
+
Secondary label
|
|
24
|
+
</ActionButton>
|
|
25
|
+
<ActionButton priority="tertiary" {...args}>
|
|
26
|
+
Tertiary label
|
|
27
|
+
</ActionButton>
|
|
28
|
+
</div>
|
|
29
|
+
<div>
|
|
30
|
+
<ActionButton priority="primary" {...args}>
|
|
31
|
+
<Settings />
|
|
32
|
+
Primary label
|
|
33
|
+
</ActionButton>
|
|
34
|
+
<ActionButton priority="secondary" {...args}>
|
|
35
|
+
<Settings />
|
|
36
|
+
Secondary label
|
|
37
|
+
</ActionButton>
|
|
38
|
+
<ActionButton priority="tertiary" {...args}>
|
|
39
|
+
<Settings />
|
|
40
|
+
Tertiary label
|
|
41
|
+
</ActionButton>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
),
|
|
45
|
+
args: {
|
|
46
|
+
disabled: true,
|
|
47
|
+
},
|
|
48
|
+
...withVariantConfig(['default', 'dark', 'rtl', 'mobile']),
|
|
49
|
+
};
|
package/src/avatar/Avatar.less
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import (reference) "
|
|
2
|
-
@import (reference) "
|
|
3
|
-
@import (reference) "
|
|
1
|
+
@import (reference) "./../styles/variables/neptune-tokens.less";
|
|
2
|
+
@import (reference) "./../styles/less/mixins/_logical-properties.less";
|
|
3
|
+
@import (reference) "./../styles/less/core/_typography.less";
|
|
4
4
|
|
|
5
5
|
@avatar-diameter-72: 72px;
|
|
6
6
|
@avatar-diameter-56: 56px;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-key */
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
import AvatarLayout, { AvatarLayoutProps } from '.';
|
|
4
|
-
import { Freeze
|
|
4
|
+
import { Freeze } from '@transferwise/icons';
|
|
5
5
|
import { Flag } from '@wise/art';
|
|
6
6
|
import Body from '../body';
|
|
7
7
|
import SentimentSurface from '../sentimentSurface';
|
|
@@ -181,110 +181,6 @@ export const Horizontal: Story = {
|
|
|
181
181
|
),
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
export const EdgeInstances: Story = {
|
|
185
|
-
render: () => (
|
|
186
|
-
<div
|
|
187
|
-
style={{
|
|
188
|
-
gap: '1em',
|
|
189
|
-
display: 'grid',
|
|
190
|
-
justifyContent: 'space-between',
|
|
191
|
-
gridTemplate: `auto auto / repeat(2, min-content)`,
|
|
192
|
-
}}
|
|
193
|
-
>
|
|
194
|
-
<AvatarLayout orientation="diagonal" avatars={[]} />
|
|
195
|
-
|
|
196
|
-
<AvatarLayout orientation="diagonal" avatars={[{}]} />
|
|
197
|
-
|
|
198
|
-
<AvatarLayout orientation="diagonal" avatars={[{ profileName: 'Jay Jay' }]} />
|
|
199
|
-
<AvatarLayout orientation="diagonal" size={16} avatars={[{ profileName: 'Jay Jay' }]} />
|
|
200
|
-
|
|
201
|
-
<AvatarLayout orientation="diagonal" avatars={[{ asset: <Flag code="gb" /> }]} />
|
|
202
|
-
<AvatarLayout orientation="diagonal" size={24} avatars={[{ asset: <Flag code="gb" /> }]} />
|
|
203
|
-
|
|
204
|
-
<AvatarLayout
|
|
205
|
-
orientation="diagonal"
|
|
206
|
-
avatars={[{ asset: <Flag code="gb" /> }, { asset: <Flag code="jp" /> }]}
|
|
207
|
-
/>
|
|
208
|
-
|
|
209
|
-
<AvatarLayout
|
|
210
|
-
orientation="horizontal"
|
|
211
|
-
interactive
|
|
212
|
-
avatars={[
|
|
213
|
-
{ imgSrc: '../avatar-squere-dude.webp' },
|
|
214
|
-
{ asset: null, style: { border: '1px dashed var(--color-border-neutral)' } },
|
|
215
|
-
]}
|
|
216
|
-
/>
|
|
217
|
-
|
|
218
|
-
<AvatarLayout
|
|
219
|
-
orientation="horizontal"
|
|
220
|
-
interactive
|
|
221
|
-
avatars={[
|
|
222
|
-
{ imgSrc: '../avatar-square-dude.webp' },
|
|
223
|
-
{
|
|
224
|
-
asset: <Plane />,
|
|
225
|
-
style: { backgroundColor: 'var(--color-bright-pink)' },
|
|
226
|
-
},
|
|
227
|
-
]}
|
|
228
|
-
/>
|
|
229
|
-
|
|
230
|
-
<AvatarLayout
|
|
231
|
-
orientation="horizontal"
|
|
232
|
-
interactive
|
|
233
|
-
avatars={[
|
|
234
|
-
{
|
|
235
|
-
asset: <Graph />,
|
|
236
|
-
style: { color: 'rgb(22, 51, 0)', backgroundColor: 'rgb(203, 217, 195)' },
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
asset: <Rewards />,
|
|
240
|
-
style: { color: 'rgb(203, 217, 195)', backgroundColor: 'rgb(22, 51, 0)' },
|
|
241
|
-
},
|
|
242
|
-
]}
|
|
243
|
-
/>
|
|
244
|
-
|
|
245
|
-
<AvatarLayout
|
|
246
|
-
orientation="horizontal"
|
|
247
|
-
interactive
|
|
248
|
-
avatars={[
|
|
249
|
-
{ asset: <Flag code="gb" /> },
|
|
250
|
-
{ asset: '3+', style: { border: '1px dashed var(--color-border-neutral)' } },
|
|
251
|
-
]}
|
|
252
|
-
/>
|
|
253
|
-
|
|
254
|
-
<AvatarLayout
|
|
255
|
-
orientation="horizontal"
|
|
256
|
-
avatars={[{ imgSrc: '../avatar-rectangle-fox.webp' }, { profileName: 'Jay Jay' }]}
|
|
257
|
-
/>
|
|
258
|
-
|
|
259
|
-
<AvatarLayout
|
|
260
|
-
interactive
|
|
261
|
-
orientation="horizontal"
|
|
262
|
-
avatars={[
|
|
263
|
-
{ imgSrc: '../avatar-rectangle-fox.webp' },
|
|
264
|
-
{ imgSrc: '../avatar-square-dude.webp' },
|
|
265
|
-
{ asset: '7+' },
|
|
266
|
-
]}
|
|
267
|
-
/>
|
|
268
|
-
|
|
269
|
-
<AvatarLayout
|
|
270
|
-
interactive
|
|
271
|
-
orientation="horizontal"
|
|
272
|
-
avatars={[{ asset: <Flag code="gb" /> }, { asset: <Flag code="br" /> }, { asset: '3+' }]}
|
|
273
|
-
/>
|
|
274
|
-
|
|
275
|
-
<AvatarLayout
|
|
276
|
-
orientation="horizontal"
|
|
277
|
-
avatars={[
|
|
278
|
-
{ asset: <Flag code="gb" /> },
|
|
279
|
-
{ asset: <Flag code="br" /> },
|
|
280
|
-
{ asset: <Flag code="jp" /> },
|
|
281
|
-
{ asset: '3+' },
|
|
282
|
-
]}
|
|
283
|
-
/>
|
|
284
|
-
</div>
|
|
285
|
-
),
|
|
286
|
-
};
|
|
287
|
-
|
|
288
184
|
/**
|
|
289
185
|
* Like [AvatarView](?path=/docs/content-avatarview--docs#sentiment-awareness), `AvatarLayout` is sentiment-aware (note: not all features are supported) and will automatically adjust its colours if wrapped inside the
|
|
290
186
|
* [SentimentSurface](?path=/docs/content-sentimentsurface--docs) component.
|