@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,110 @@
|
|
|
1
|
+
// Mixin to add physical properties/values without RTL support for a lighter bundle.
|
|
2
|
+
|
|
3
|
+
// Float left/right
|
|
4
|
+
|
|
5
|
+
.float(@direction) {
|
|
6
|
+
& when (@direction = left) {
|
|
7
|
+
float: @direction;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
& when (@direction = right) {
|
|
11
|
+
float: @direction;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Clear left/right
|
|
16
|
+
|
|
17
|
+
.clear(@direction) {
|
|
18
|
+
& when (@direction = left) {
|
|
19
|
+
clear: @direction;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& when (@direction = right) {
|
|
23
|
+
clear: @direction;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// text-align: left/right
|
|
28
|
+
|
|
29
|
+
.text-align(@direction) {
|
|
30
|
+
& when (@direction = left) {
|
|
31
|
+
text-align: left;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
& when (@direction = right) {
|
|
35
|
+
text-align: right;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// padding-left / padding-right
|
|
40
|
+
|
|
41
|
+
.padding(@direction, @value) {
|
|
42
|
+
& when (@direction = left) {
|
|
43
|
+
padding-left: @value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& when (@direction = right) {
|
|
47
|
+
padding-right: @value;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// margin-left / margin-right
|
|
52
|
+
|
|
53
|
+
.margin(@direction, @value) {
|
|
54
|
+
& when (@direction = left) {
|
|
55
|
+
margin-left: @value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& when (@direction = right) {
|
|
59
|
+
padding-left: @value;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// left / right (positions)
|
|
64
|
+
|
|
65
|
+
.left(@value) {
|
|
66
|
+
left: @value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.right(@value) {
|
|
70
|
+
right: @value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// border-left / border-right
|
|
74
|
+
|
|
75
|
+
.border(@direction, @size, @style: ~'', @color: ~'') {
|
|
76
|
+
& when (@direction = left) {
|
|
77
|
+
border-left: @size @style @color;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& when (@direction = right) {
|
|
81
|
+
border-right: @size @style @color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.border-width(@direction, @size) {
|
|
86
|
+
& when (@direction = left) {
|
|
87
|
+
border-left-width: @size;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& when (@direction = right) {
|
|
91
|
+
border-right-width: @size;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Border radius
|
|
96
|
+
|
|
97
|
+
// | top-left | top-right |
|
|
98
|
+
// | bottom-left | bottom-right |
|
|
99
|
+
|
|
100
|
+
.border-radius(@direction, @radius) {
|
|
101
|
+
& when (@direction = left) {
|
|
102
|
+
border-top-left-radius: @radius;
|
|
103
|
+
border-bottom-left-radius: @radius;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
& when (@direction = right) {
|
|
107
|
+
border-top-right-radius: @radius;
|
|
108
|
+
border-bottom-right-radius: @radius;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import (reference) "_logical-properties.less";
|
|
2
|
+
|
|
3
|
+
.reset-text() {
|
|
4
|
+
font-family: var(--font-family-regular);
|
|
5
|
+
|
|
6
|
+
// We deliberately do NOT reset font-size.
|
|
7
|
+
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-weight: normal;
|
|
10
|
+
letter-spacing: normal;
|
|
11
|
+
line-break: auto;
|
|
12
|
+
line-height: var(--size-24);
|
|
13
|
+
.text-align(left);
|
|
14
|
+
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
text-shadow: none;
|
|
17
|
+
text-transform: none;
|
|
18
|
+
white-space: normal;
|
|
19
|
+
word-break: normal;
|
|
20
|
+
word-spacing: normal;
|
|
21
|
+
word-wrap: normal;
|
|
22
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
@import (reference) "_logical-properties.less";
|
|
2
|
+
|
|
3
|
+
.sequence-vertical-spacing(
|
|
4
|
+
@sequence-margin,
|
|
5
|
+
@sequence-item-spacing-mobile,
|
|
6
|
+
@sequence-item-spacing-desktop,
|
|
7
|
+
@pip-offset-mobile,
|
|
8
|
+
@pip-offset-desktop,
|
|
9
|
+
@sequence-step-height,
|
|
10
|
+
@sequence-icon-size
|
|
11
|
+
) {
|
|
12
|
+
@sequence-outside-spacing: (@sequence-margin + @sequence-item-spacing-desktop);
|
|
13
|
+
|
|
14
|
+
> li {
|
|
15
|
+
padding-top: @sequence-item-spacing-mobile;
|
|
16
|
+
padding-bottom: @sequence-item-spacing-mobile;
|
|
17
|
+
|
|
18
|
+
&:first-child {
|
|
19
|
+
margin-top: @sequence-margin;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:last-child {
|
|
23
|
+
margin-bottom: @sequence-margin;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (min-width: @screen-md-min) {
|
|
27
|
+
padding-top: @sequence-item-spacing-desktop;
|
|
28
|
+
padding-bottom: @sequence-item-spacing-desktop;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&::before {
|
|
32
|
+
margin-top: ((@sequence-step-height / 2) - (@sequence-pip-size / 2));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&::after {
|
|
36
|
+
top: @pip-offset-desktop;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:first-child::after {
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:last-child::after {
|
|
44
|
+
height: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.sequence-top {
|
|
49
|
+
> li:first-child {
|
|
50
|
+
padding-top: @sequence-outside-spacing;
|
|
51
|
+
margin-top: 0;
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
height: ~"calc(100% + @{pip-offset-desktop})";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.sequence-bottom {
|
|
60
|
+
> li:last-child {
|
|
61
|
+
padding-bottom: @sequence-outside-spacing;
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
|
|
64
|
+
&::after {
|
|
65
|
+
height: ~"calc(100% - @{pip-offset-desktop})";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.sequence-top.sequence-bottom {
|
|
71
|
+
> li:first-child:last-child::after {
|
|
72
|
+
height: 100%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sequence-icon {
|
|
77
|
+
top: ((@sequence-step-height / 2) - (@sequence-icon-size / 2) + @sequence-item-spacing-mobile);
|
|
78
|
+
|
|
79
|
+
@media (min-width: @screen-md-min) {
|
|
80
|
+
top: ((@sequence-step-height / 2) - (@sequence-icon-size / 2) + @sequence-item-spacing-desktop);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.sequence-top > li:first-child .sequence-icon {
|
|
85
|
+
top: (((@sequence-step-height / 2) - (@sequence-icon-size / 2)) + @sequence-outside-spacing);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.sequence-horizontal-spacing(
|
|
90
|
+
@sequence-item-padding,
|
|
91
|
+
@sequence-pip-size,
|
|
92
|
+
@sequence-icon-sm,
|
|
93
|
+
@sequence-icon-md,
|
|
94
|
+
@sequence-icon-lg
|
|
95
|
+
) {
|
|
96
|
+
.padding(left, @sequence-item-padding);
|
|
97
|
+
|
|
98
|
+
> li {
|
|
99
|
+
&::before {
|
|
100
|
+
.margin(left, (-@sequence-item-padding - (@sequence-pip-size / 2) + 1px));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&::after {
|
|
104
|
+
.left(-@sequence-item-padding);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.sequence-icon {
|
|
109
|
+
.margin(left, (-@sequence-item-padding - (@sequence-icon-sm / 2) + 1px));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sequence-icon-md {
|
|
113
|
+
.margin(left, (-@sequence-item-padding - (@sequence-icon-md / 2) + 1px));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.sequence-icon-lg {
|
|
117
|
+
.margin(left, (-@sequence-item-padding - (@sequence-icon-lg / 2) + 1px));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.sequence-variant(@type, @color) {
|
|
122
|
+
@variant: ~".sequence-@{type}";
|
|
123
|
+
|
|
124
|
+
@{variant} {
|
|
125
|
+
.sequence-variant-detail(
|
|
126
|
+
@color,
|
|
127
|
+
@pip-offset-sm, @pip-offset-md, @pip-offset-lg,
|
|
128
|
+
var(--color-border-neutral), @color-navy-border-neutral, @sequence-margin-lg
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@keyframes ~"sequence-pip-@{type}" {
|
|
133
|
+
from { border-color: @color-navy-border-neutral; }
|
|
134
|
+
to { border-color: @color; }
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// TODO update description
|
|
139
|
+
// The line for the active item needs to be the active colour before the 'pip' and
|
|
140
|
+
// the inactive colour afterwards. This is tricky because we don't know the height.
|
|
141
|
+
// However, we can achieve this with one element by using a gradient with a hard
|
|
142
|
+
// transition between colours at the right point. We need several variants to cover
|
|
143
|
+
// our large and inverse options.
|
|
144
|
+
|
|
145
|
+
.sequence-variant-detail(
|
|
146
|
+
@color,
|
|
147
|
+
@pip-offset-sm,
|
|
148
|
+
@pip-offset-md,
|
|
149
|
+
@pip-offset-lg,
|
|
150
|
+
@sequence-border,
|
|
151
|
+
@sequence-inverse-border,
|
|
152
|
+
@sequence-margin
|
|
153
|
+
) {
|
|
154
|
+
> li {
|
|
155
|
+
border-color: @color;
|
|
156
|
+
|
|
157
|
+
&::after {
|
|
158
|
+
background-image: linear-gradient(@color 0, @color 50%, @sequence-border 50%, @sequence-border 100%);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.sequence-inverse > li {
|
|
163
|
+
&::after {
|
|
164
|
+
background-image:
|
|
165
|
+
linear-gradient(
|
|
166
|
+
@color 0,
|
|
167
|
+
@color 50%,
|
|
168
|
+
@sequence-inverse-border 50%,
|
|
169
|
+
@sequence-inverse-border 100%
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
> .active {
|
|
175
|
+
&::before {
|
|
176
|
+
border-color: @color;
|
|
177
|
+
background-color: @color;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.sequence-animation-variant(@type) {
|
|
183
|
+
> li::before {
|
|
184
|
+
animation:
|
|
185
|
+
@speed-per-item linear 0.3s both ~"sequence-pip-@{type}",
|
|
186
|
+
@speed-per-pulse linear 0.3s forwards ~"sequence-pulse-@{type}";
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
> .active::before {
|
|
190
|
+
animation:
|
|
191
|
+
@speed-per-item linear 0.3s both ~"sequence-pip-@{type}",
|
|
192
|
+
@speed-per-pulse linear 0.3s infinite ~"sequence-pulse-@{type}";
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.sequence-animation-delays(@counter) when (@counter > 0) {
|
|
197
|
+
.sequence-animation-delays((@counter - 1));
|
|
198
|
+
|
|
199
|
+
> li:nth-child(@{counter}):before,
|
|
200
|
+
> li:nth-child(@{counter}):after {
|
|
201
|
+
animation-delay: (@counter * @speed-per-item) !important;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@import (reference) "./_logical-properties.less";
|
|
2
|
+
|
|
3
|
+
.spacing(@postfix, @spacer) {
|
|
4
|
+
.spacing-global(@postfix, @spacer);
|
|
5
|
+
.spacing-vertical(@postfix, @spacer);
|
|
6
|
+
.spacing-horizontal(@postfix, @spacer);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.spacing-global(@postfix, @spacer) {
|
|
10
|
+
.m-a-@{postfix} {
|
|
11
|
+
margin-top: @spacer !important;
|
|
12
|
+
.margin-for-spacing(right, @spacer) !important;
|
|
13
|
+
|
|
14
|
+
margin-bottom: @spacer !important;
|
|
15
|
+
.margin-for-spacing(left, @spacer) !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.p-a-@{postfix} {
|
|
19
|
+
padding-top: @spacer !important;
|
|
20
|
+
.padding-for-spacing(right, @spacer) !important;
|
|
21
|
+
|
|
22
|
+
padding-bottom: @spacer !important;
|
|
23
|
+
.padding-for-spacing(left, @spacer) !important;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.spacing-vertical(@postfix, @spacer) {
|
|
28
|
+
.m-t-@{postfix} {
|
|
29
|
+
margin-top: @spacer !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.m-b-@{postfix} {
|
|
33
|
+
margin-bottom: @spacer !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.m-y-@{postfix} {
|
|
37
|
+
margin-top: @spacer !important;
|
|
38
|
+
margin-bottom: @spacer !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.p-t-@{postfix} {
|
|
42
|
+
padding-top: @spacer !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.p-b-@{postfix} {
|
|
46
|
+
padding-bottom: @spacer !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.p-y-@{postfix} {
|
|
50
|
+
padding-top: @spacer !important;
|
|
51
|
+
padding-bottom: @spacer !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.spacing-horizontal(@postfix, @spacer) {
|
|
56
|
+
.m-l-@{postfix} {
|
|
57
|
+
.margin-for-spacing(left, @spacer) !important;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.m-r-@{postfix} {
|
|
61
|
+
.margin-for-spacing(right, @spacer) !important;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.m-x-@{postfix} {
|
|
65
|
+
.margin-for-spacing(left, @spacer) !important;
|
|
66
|
+
.margin-for-spacing(right, @spacer) !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.p-l-@{postfix} {
|
|
70
|
+
.padding-for-spacing(left, @spacer) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.p-r-@{postfix} {
|
|
74
|
+
.padding-for-spacing(right, @spacer) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-x-@{postfix} {
|
|
78
|
+
.padding-for-spacing(left, @spacer) !important;
|
|
79
|
+
.padding-for-spacing(right, @spacer) !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.responsive-spacing(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop) {
|
|
84
|
+
.responsive-spacing-global(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop);
|
|
85
|
+
.responsive-spacing-vertical(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop);
|
|
86
|
+
.responsive-spacing-horizontal(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.responsive-spacing-global(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop) {
|
|
90
|
+
.spacing-global(@postfix, @spacing-mobile);
|
|
91
|
+
|
|
92
|
+
@media (--screen-sm) {
|
|
93
|
+
.spacing-global(@postfix, @spacing-tablet);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (--screen-lg) {
|
|
97
|
+
.spacing-global(@postfix, @spacing-desktop);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.responsive-spacing-vertical(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop) {
|
|
101
|
+
.spacing-vertical(@postfix, @spacing-mobile);
|
|
102
|
+
|
|
103
|
+
@media (--screen-sm) {
|
|
104
|
+
.spacing-vertical(@postfix, @spacing-tablet);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (--screen-lg) {
|
|
108
|
+
.spacing-vertical(@postfix, @spacing-desktop);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.responsive-spacing-horizontal(@postfix, @spacing-mobile, @spacing-tablet, @spacing-desktop) {
|
|
113
|
+
.spacing-horizontal(@postfix, @spacing-mobile);
|
|
114
|
+
|
|
115
|
+
@media (--screen-sm) {
|
|
116
|
+
.spacing-horizontal(@postfix, @spacing-tablet);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media (--screen-lg) {
|
|
120
|
+
.spacing-horizontal(@postfix, @spacing-desktop);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Tables
|
|
2
|
+
|
|
3
|
+
.table-row-variant(@state; @background; @border; @color:none) {
|
|
4
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
|
5
|
+
// inheritance to nested tables.
|
|
6
|
+
.table {
|
|
7
|
+
> thead > tr,
|
|
8
|
+
> tbody > tr,
|
|
9
|
+
> tfoot > tr {
|
|
10
|
+
> td.@{state},
|
|
11
|
+
> th.@{state},
|
|
12
|
+
&.@{state} > td,
|
|
13
|
+
&.@{state} > th {
|
|
14
|
+
background-color: @background;
|
|
15
|
+
.set-color(@color);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Adds support for contextual colours on description table
|
|
21
|
+
//.table > .tbody > dl {
|
|
22
|
+
// > dd.@{state},
|
|
23
|
+
// &.@{state} > dd,
|
|
24
|
+
// &.@{state} {
|
|
25
|
+
// background-color: @background;
|
|
26
|
+
// }
|
|
27
|
+
//}
|
|
28
|
+
|
|
29
|
+
// Hover states for `.table-hover`
|
|
30
|
+
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
|
31
|
+
.table-hover > tbody > tr {
|
|
32
|
+
> td.@{state}:hover,
|
|
33
|
+
> th.@{state}:hover,
|
|
34
|
+
&.@{state}:hover > td,
|
|
35
|
+
&:hover > .@{state},
|
|
36
|
+
&.@{state}:hover > th {
|
|
37
|
+
background-color: @background;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.set-color(@color:none) when (iscolor(@color)) {
|
|
43
|
+
color: @color;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// stylelint-disable block-no-empty
|
|
47
|
+
.set-color(@color:none) when not (iscolor(@color)) {}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.text-emphasis-variant(@small-color, @large-color, @hover) {
|
|
2
|
+
color: @small-color !important;
|
|
3
|
+
|
|
4
|
+
a&:hover,
|
|
5
|
+
a&:focus {
|
|
6
|
+
color: @hover !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.large-text-emphasis(@small-color, @large-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.large-text-emphasis(@small-color, @large-color) when not (@small-color = @large-color) {
|
|
13
|
+
h1&,
|
|
14
|
+
h2&,
|
|
15
|
+
h3&,
|
|
16
|
+
&.h1,
|
|
17
|
+
&.h2,
|
|
18
|
+
&.h3,
|
|
19
|
+
&.title-1,
|
|
20
|
+
&.title-2,
|
|
21
|
+
&.title-3,
|
|
22
|
+
&.np-text-title-screen,
|
|
23
|
+
&.np-text-title-section,
|
|
24
|
+
&.np-text-title-subsection,
|
|
25
|
+
h1,
|
|
26
|
+
h2,
|
|
27
|
+
h3,
|
|
28
|
+
.h1,
|
|
29
|
+
.h2,
|
|
30
|
+
.h3,
|
|
31
|
+
.title-1,
|
|
32
|
+
.title-2,
|
|
33
|
+
.title-3,
|
|
34
|
+
.np-text-title-screen,
|
|
35
|
+
.np-text-title-section,
|
|
36
|
+
.np-text-title-subsection {
|
|
37
|
+
color: @large-color !important;
|
|
38
|
+
}
|
|
39
|
+
}
|