@transferwise/components 0.0.0-experimental-09066ec → 0.0.0-experimental-c8bf162
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 +23309 -7
- package/build/neptune-css/fonts/TW-Averta-Bold.woff +0 -0
- package/build/neptune-css/fonts/TW-Averta-Bold.woff2 +0 -0
- package/build/neptune-css/fonts/TW-Averta-Regular.woff +0 -0
- package/build/neptune-css/fonts/TW-Averta-Regular.woff2 +0 -0
- package/build/neptune-css/fonts/TW-Averta-Semibold.woff +0 -0
- package/build/neptune-css/fonts/TW-Averta-Semibold.woff2 +0 -0
- package/build/neptune-css/fonts/TransferWise-IconFont.svg +81 -0
- package/build/neptune-css/fonts/TransferWise-IconFont.woff +0 -0
- package/build/neptune-css/fonts/WiseSans-Heavy.woff2 +0 -0
- package/build/neptune-css/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/build/neptune-css/img/bg-dark.svg +31 -0
- package/build/neptune-css/img/bg-light.svg +26 -0
- package/build/neptune-css/less/legacy-variables.less +1299 -0
- package/build/neptune-css/less/neptune-tokens.css +0 -0
- package/build/neptune-css/less/neptune-tokens.less +275 -0
- package/build/neptune-css/less/zindex.css +0 -0
- package/build/neptune-css/less/zindex.less +17 -0
- package/build/neptune-css/props/custom-media.css +11 -0
- package/build/neptune-css/props/legacy-custom-props.css +69 -0
- package/build/neptune-css/props/neptune-tokens.css +152 -0
- package/build/neptune.css +25724 -0
- package/build/styles/inputs/SelectInput/SelectInput.css +14 -0
- package/build/styles/main.css +23309 -7
- package/build/styles/neptune-css/less/accordion.css +255 -0
- package/build/styles/neptune-css/less/alerts.css +751 -0
- package/build/styles/neptune-css/less/background.css +20 -0
- package/build/styles/neptune-css/less/badge.css +90 -0
- package/build/styles/neptune-css/less/border-radius.css +3 -0
- package/build/styles/neptune-css/less/breadcrumbs.css +20 -0
- package/build/styles/neptune-css/less/button-groups.css +495 -0
- package/build/styles/neptune-css/less/buttons.css +1390 -0
- package/build/styles/neptune-css/less/chevron.css +35 -0
- package/build/styles/neptune-css/less/circles.css +248 -0
- package/build/styles/neptune-css/less/close.css +47 -0
- package/build/styles/neptune-css/less/column-layout.css +164 -0
- package/build/styles/neptune-css/less/core/viewport-themes.css +59 -0
- package/build/styles/neptune-css/less/currency-flags.css +46 -0
- package/build/styles/neptune-css/less/decision.css +136 -0
- package/build/styles/neptune-css/less/dropdowns.css +472 -0
- package/build/styles/neptune-css/less/droppable.css +221 -0
- package/build/styles/neptune-css/less/flex.css +598 -0
- package/build/styles/neptune-css/less/footer.css +129 -0
- package/build/styles/neptune-css/less/forms/bootstrap-forms.css +2277 -0
- package/build/styles/neptune-css/less/forms/checkbox-radio.css +367 -0
- package/build/styles/neptune-css/less/grid.css +2369 -0
- package/build/styles/neptune-css/less/input-groups.css +2740 -0
- package/build/styles/neptune-css/less/link-callout.css +20 -0
- package/build/styles/neptune-css/less/list-group.css +350 -0
- package/build/styles/neptune-css/less/loaders.css +76 -0
- package/build/styles/neptune-css/less/media.css +74 -0
- package/build/styles/neptune-css/less/modals.css +185 -0
- package/build/styles/neptune-css/less/navbar.css +2406 -0
- package/build/styles/neptune-css/less/navs.css +296 -0
- package/build/styles/neptune-css/less/neptune-addons.css +1857 -0
- package/build/styles/neptune-css/less/neptune-core.css +2049 -0
- package/build/styles/neptune-css/less/neptune-social-media.css +144 -0
- package/build/styles/neptune-css/less/neptune.css +25724 -0
- package/build/styles/neptune-css/less/panels.css +528 -0
- package/build/styles/neptune-css/less/popovers.css +661 -0
- package/build/styles/neptune-css/less/process.css +483 -0
- package/build/styles/neptune-css/less/progress-bars.css +64 -0
- package/build/styles/neptune-css/less/ring.css +55 -0
- package/build/styles/neptune-css/less/select.css +99 -0
- package/build/styles/neptune-css/less/sequences.css +855 -0
- package/build/styles/neptune-css/less/table.css +446 -0
- package/build/styles/neptune-css/less/tick.css +32 -0
- package/build/styles/neptune-css/less/tooltip.css +160 -0
- package/build/styles/neptune-css/less/utilities.css +145 -0
- package/build/styles/neptune-css/less/wells.css +74 -0
- package/build/styles/neptune-css/props/custom-media.css +11 -0
- package/build/styles/neptune-css/props/legacy-custom-props.css +69 -0
- package/build/styles/neptune-css/props/neptune-tokens.css +11 -0
- package/build/styles/neptune-css/variables/legacy-variables.css +0 -0
- package/build/styles/neptune-css/variables/neptune-tokens.css +0 -0
- package/build/styles/neptune-css/variables/zindex.css +0 -0
- package/package.json +10 -6
- 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/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.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/neptune-css/fonts/TW-Averta-Bold.woff +0 -0
- package/src/neptune-css/fonts/TW-Averta-Bold.woff2 +0 -0
- package/src/neptune-css/fonts/TW-Averta-Regular.woff +0 -0
- package/src/neptune-css/fonts/TW-Averta-Regular.woff2 +0 -0
- package/src/neptune-css/fonts/TW-Averta-Semibold.woff +0 -0
- package/src/neptune-css/fonts/TW-Averta-Semibold.woff2 +0 -0
- package/src/neptune-css/fonts/TransferWise-IconFont.svg +81 -0
- package/src/neptune-css/fonts/TransferWise-IconFont.woff +0 -0
- package/src/neptune-css/fonts/WiseSans-Heavy.woff2 +0 -0
- package/src/neptune-css/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/src/neptune-css/img/bg-dark.svg +31 -0
- package/src/neptune-css/img/bg-light.svg +26 -0
- package/src/neptune-css/less/accordion.less +15 -0
- package/src/neptune-css/less/addons/_background-utilities.less +82 -0
- package/src/neptune-css/less/addons/_border.less +3 -0
- package/src/neptune-css/less/addons/_display-utilities.less +159 -0
- package/src/neptune-css/less/addons/_spacing-utilities.less +73 -0
- package/src/neptune-css/less/addons/_utilities.less +147 -0
- package/src/neptune-css/less/alerts.less +252 -0
- package/src/neptune-css/less/background.less +24 -0
- package/src/neptune-css/less/badge.less +85 -0
- package/src/neptune-css/less/border-radius.less +3 -0
- package/src/neptune-css/less/breadcrumbs.less +27 -0
- package/src/neptune-css/less/button-groups.less +424 -0
- package/src/neptune-css/less/buttons.less +738 -0
- package/src/neptune-css/less/chevron.less +39 -0
- package/src/neptune-css/less/circles.less +233 -0
- package/src/neptune-css/less/close.less +48 -0
- package/src/neptune-css/less/column-layout.less +167 -0
- package/src/neptune-css/less/components/_component-animations.less +43 -0
- package/src/neptune-css/less/core/_fonts.less +97 -0
- package/src/neptune-css/less/core/_scaffolding.less +380 -0
- package/src/neptune-css/less/core/_typography-utilities.less +255 -0
- package/src/neptune-css/less/core/_typography.less +575 -0
- package/src/neptune-css/less/core/viewport-themes.less +65 -0
- package/src/neptune-css/less/currency-flags.less +42 -0
- package/src/neptune-css/less/decision.less +98 -0
- package/src/neptune-css/less/dropdowns.less +365 -0
- package/src/neptune-css/less/droppable.less +213 -0
- package/src/neptune-css/less/flex.less +113 -0
- package/src/neptune-css/less/footer.less +113 -0
- package/src/neptune-css/less/forms/bootstrap-forms.less +1218 -0
- package/src/neptune-css/less/forms/checkbox-radio.less +330 -0
- package/src/neptune-css/less/grid.less +187 -0
- package/src/neptune-css/less/input-groups.less +298 -0
- package/src/neptune-css/less/link-callout.less +17 -0
- package/src/neptune-css/less/list-group.less +260 -0
- package/src/neptune-css/less/loaders.less +91 -0
- package/src/neptune-css/less/media.less +68 -0
- package/src/neptune-css/less/mixins/_alerts.less +39 -0
- package/src/neptune-css/less/mixins/_arrows.less +52 -0
- package/src/neptune-css/less/mixins/_border-radius.less +11 -0
- package/src/neptune-css/less/mixins/_buttons.less +82 -0
- package/src/neptune-css/less/mixins/_center-block.less +7 -0
- package/src/neptune-css/less/mixins/_clearfix.less +23 -0
- package/src/neptune-css/less/mixins/_flex.less +105 -0
- package/src/neptune-css/less/mixins/_forms.less +130 -0
- package/src/neptune-css/less/mixins/_grid-framework.less +104 -0
- package/src/neptune-css/less/mixins/_grid.less +158 -0
- package/src/neptune-css/less/mixins/_hide-text.less +20 -0
- package/src/neptune-css/less/mixins/_links.less +7 -0
- package/src/neptune-css/less/mixins/_list-group.less +23 -0
- package/src/neptune-css/less/mixins/_logical-properties-IE-friendly.less +381 -0
- package/src/neptune-css/less/mixins/_logical-properties-modern-browsers.less +226 -0
- package/src/neptune-css/less/mixins/_logical-properties.less +5 -0
- package/src/neptune-css/less/mixins/_nav-divider.less +10 -0
- package/src/neptune-css/less/mixins/_nav-vertical-align.less +10 -0
- package/src/neptune-css/less/mixins/_panels.less +23 -0
- package/src/neptune-css/less/mixins/_physical-properties.less +110 -0
- package/src/neptune-css/less/mixins/_reset-text.less +22 -0
- package/src/neptune-css/less/mixins/_sequence.less +203 -0
- package/src/neptune-css/less/mixins/_spacing.less +122 -0
- package/src/neptune-css/less/mixins/_tab-focus.less +5 -0
- package/src/neptune-css/less/mixins/_table-row.less +47 -0
- package/src/neptune-css/less/mixins/_text-emphasis.less +39 -0
- package/src/neptune-css/less/mixins/_text-overflow.less +8 -0
- package/src/neptune-css/less/mixins/_theming.less +7 -0
- package/src/neptune-css/less/modals.less +239 -0
- package/src/neptune-css/less/navbar.less +1442 -0
- package/src/neptune-css/less/navs.less +339 -0
- package/src/neptune-css/less/neptune-addons.less +4 -0
- package/src/neptune-css/less/neptune-core.less +4 -0
- package/src/neptune-css/less/neptune-social-media.less +84 -0
- package/src/neptune-css/less/neptune.bundle.less +57 -0
- package/src/neptune-css/less/panels.less +410 -0
- package/src/neptune-css/less/popovers.less +379 -0
- package/src/neptune-css/less/process.less +426 -0
- package/src/neptune-css/less/progress-bars.less +55 -0
- package/src/neptune-css/less/ring.less +51 -0
- package/src/neptune-css/less/select.less +88 -0
- package/src/neptune-css/less/sequences.less +511 -0
- package/src/neptune-css/less/table.less +385 -0
- package/src/neptune-css/less/tick.less +37 -0
- package/src/neptune-css/less/tooltip.less +130 -0
- package/src/neptune-css/less/utilities.less +153 -0
- package/src/neptune-css/less/wells.less +37 -0
- package/src/neptune-css/props/custom-media.css +11 -0
- package/src/neptune-css/props/legacy-custom-props.css +69 -0
- package/src/neptune-css/props/neptune-tokens.css +11 -0
- package/src/neptune-css/variables/legacy-variables.less +1299 -0
- package/src/neptune-css/variables/neptune-tokens.less +12 -0
- package/src/neptune-css/variables/zindex.less +17 -0
- 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/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
- package/src/accordion/Accordion.css +0 -74
- package/src/actionButton/ActionButton.css +0 -64
- package/src/actionOption/ActionOption.css +0 -4
- package/src/alert/Alert.css +0 -7
- package/src/avatar/Avatar.css +0 -250
- package/src/avatarLayout/AvatarLayout.css +0 -42
- package/src/avatarView/AvatarView.css +0 -44
- package/src/avatarView/Dot.css +0 -26
- package/src/badge/Badge.css +0 -65
- package/src/body/Body.css +0 -3
- package/src/button/Button.css +0 -246
- package/src/button/Button.vars.css +0 -46
- package/src/button/LegacyButton.css +0 -23
- package/src/card/Card.css +0 -100
- package/src/carousel/Carousel.css +0 -134
- package/src/checkboxButton/CheckboxButton.css +0 -43
- package/src/chips/Chip.css +0 -190
- package/src/circularButton/CircularButton.css +0 -34
- package/src/common/Option/Option.css +0 -122
- package/src/common/RadioButton/RadioButton.css +0 -4
- package/src/common/baseCard/BaseCard.css +0 -49
- package/src/common/bottomSheet/BottomSheet.css +0 -53
- package/src/common/circle/Circle.css +0 -43
- package/src/common/closeButton/CloseButton.css +0 -94
- package/src/common/panel/Panel.css +0 -73
- package/src/criticalBanner/CriticalCommsBanner.css +0 -63
- package/src/dateInput/DateInput.css +0 -16
- package/src/dateLookup/DateLookup.css +0 -93
- package/src/dateLookup/dateTrigger/DateTrigger.css +0 -29
- package/src/decision/Decision.css +0 -17
- package/src/definitionList/DefinitionList.css +0 -53
- package/src/dimmer/Dimmer.css +0 -70
- package/src/divider/Divider.css +0 -24
- package/src/drawer/Drawer.css +0 -56
- package/src/dropFade/DropFade.css +0 -19
- package/src/emphasis/Emphasis.css +0 -31
- package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +0 -58
- package/src/expressiveMoneyInput/amountInput/AmountInput.css +0 -32
- package/src/expressiveMoneyInput/chevron/Chevron.css +0 -12
- package/src/expressiveMoneyInput/currencySelector/CurrencySelector.css +0 -6
- package/src/field/Field.css +0 -13
- package/src/flowNavigation/FlowNavigation.css +0 -76
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +0 -30
- package/src/header/Header.css +0 -33
- package/src/iconButton/IconButton.css +0 -82
- package/src/image/Image.css +0 -13
- package/src/info/Info.css +0 -9
- package/src/inputs/Input.css +0 -158
- package/src/inputs/InputGroup.css +0 -63
- package/src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +0 -96
- package/src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +0 -16
- package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.css +0 -46
- package/src/inputs/SelectInput/ItemView/SelectInputItemView.css +0 -16
- package/src/inputs/SelectInput/Option/SelectInputOption.css +0 -33
- package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +0 -37
- package/src/inputs/SelectInput/Options/SelectInputOptions.css +0 -81
- package/src/inputs/SelectInput/Popover/SelectInputPopover.css +0 -46
- package/src/inputs/SelectInput/SelectInput.css +0 -380
- package/src/inputs/TextArea.css +0 -161
- package/src/instructionsList/InstructionsList.css +0 -26
- package/src/legacylistItem/LegacyListItem.css +0 -6
- package/src/link/Link.css +0 -24
- package/src/listItem/ListItem.css +0 -659
- package/src/listItem/ListItem.grid.css +0 -384
- package/src/listItem/Prompt/ListItemPrompt.css +0 -4
- package/src/loader/Loader.css +0 -227
- package/src/logo/Logo.css +0 -26
- package/src/main.css +0 -7529
- package/src/modal/Modal.css +0 -95
- package/src/moneyInput/MoneyInput.css +0 -74
- package/src/navigationOption/NavigationOption.css +0 -69
- package/src/navigationOptionsList/NavigationOptionsList.css +0 -13
- package/src/nudge/Nudge.css +0 -206
- package/src/overlayHeader/OverlayHeader.css +0 -15
- package/src/phoneNumberInput/PhoneNumberInput.css +0 -23
- package/src/popover/Popover.css +0 -76
- package/src/progress/Progress.css +0 -43
- package/src/progressBar/ProgressBar.css +0 -14
- package/src/promoCard/PromoCard.css +0 -186
- package/src/prompt/ActionPrompt/ActionPrompt.css +0 -25
- package/src/prompt/InfoPrompt/InfoPrompt.css +0 -33
- package/src/prompt/InlinePrompt/InlinePrompt.css +0 -57
- package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +0 -51
- package/src/radioGroup/RadioGroup.css +0 -3
- package/src/section/Section.css +0 -10
- package/src/segmentedControl/SegmentedControl.css +0 -101
- package/src/select/Select.css +0 -368
- package/src/sentimentSurface/SentimentSurface.css +0 -487
- package/src/slidingPanel/SlidingPanel.css +0 -105
- package/src/snackbar/Snackbar.css +0 -93
- package/src/statusIcon/StatusIcon.css +0 -6
- package/src/stepper/Stepper.css +0 -77
- package/src/summary/Summary.css +0 -81
- package/src/switch/Switch.css +0 -63
- package/src/switchOption/SwitchOption.css +0 -4
- package/src/table/Table.css +0 -274
- package/src/tabs/Tabs.css +0 -121
- package/src/tile/Tile.css +0 -68
- package/src/tooltip/Tooltip.css +0 -50
- package/src/typeahead/Typeahead.css +0 -187
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +0 -9
- package/src/upload/Upload.css +0 -34
- package/src/uploadInput/UploadInput.css +0 -18
- package/src/uploadInput/uploadButton/UploadButton.css +0 -90
- package/src/uploadInput/uploadItem/UploadItem.css +0 -166
- /package/{src/listItem/ListItem.vars.css → build/neptune-css/less/legacy-variables.css} +0 -0
package/src/info/Info.story.tsx
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { userEvent, within } from 'storybook/test';
|
|
3
|
-
|
|
4
2
|
import { lorem10 } from '../test-utils';
|
|
5
|
-
|
|
6
|
-
import Info, { InfoPresentation } from '.';
|
|
3
|
+
import Info from '.';
|
|
7
4
|
import { withVariantConfig } from '../../.storybook/helpers';
|
|
8
5
|
|
|
9
6
|
const meta = {
|
|
@@ -14,7 +11,6 @@ const meta = {
|
|
|
14
11
|
title: 'Fast transfer hint',
|
|
15
12
|
content: lorem10,
|
|
16
13
|
},
|
|
17
|
-
|
|
18
14
|
render: (args) => (
|
|
19
15
|
<p>
|
|
20
16
|
<span>Fast transfer</span> <Info {...args} />
|
|
@@ -29,32 +25,3 @@ type Story = StoryObj<typeof meta>;
|
|
|
29
25
|
export const Basic: Story = {
|
|
30
26
|
...withVariantConfig(['default', 'dark', 'rtl']),
|
|
31
27
|
};
|
|
32
|
-
|
|
33
|
-
export const OpenedPopover = {
|
|
34
|
-
parameters: {
|
|
35
|
-
chromatic: {
|
|
36
|
-
delay: 1000,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
play: async ({ canvasElement }) => {
|
|
40
|
-
const canvas = within(canvasElement);
|
|
41
|
-
await userEvent.click(canvas.getByRole('button'));
|
|
42
|
-
},
|
|
43
|
-
} satisfies Story;
|
|
44
|
-
|
|
45
|
-
export const OpenedPopoverMobile: Story = {
|
|
46
|
-
...OpenedPopover,
|
|
47
|
-
...withVariantConfig(['mobile'], OpenedPopover),
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export const OpenedModal = {
|
|
51
|
-
...OpenedPopover,
|
|
52
|
-
args: {
|
|
53
|
-
presentation: InfoPresentation.MODAL,
|
|
54
|
-
},
|
|
55
|
-
} satisfies Story;
|
|
56
|
-
|
|
57
|
-
export const OpenedModalMobile: Story = {
|
|
58
|
-
...OpenedModal,
|
|
59
|
-
...withVariantConfig(['mobile'], OpenedModal),
|
|
60
|
-
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { userEvent, within } from 'storybook/test';
|
|
3
|
+
import { lorem10 } from '../test-utils';
|
|
4
|
+
import Info, { InfoPresentation } from '.';
|
|
5
|
+
import { withVariantConfig } from '../../.storybook/helpers';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof Info> = {
|
|
8
|
+
component: Info,
|
|
9
|
+
tags: ['!autodocs', '!manifest'],
|
|
10
|
+
title: 'Dialogs/Info/Tests',
|
|
11
|
+
args: {
|
|
12
|
+
'aria-label': 'Click here for more details',
|
|
13
|
+
title: 'Fast transfer hint',
|
|
14
|
+
content: lorem10,
|
|
15
|
+
},
|
|
16
|
+
render: (args) => (
|
|
17
|
+
<p>
|
|
18
|
+
<span>Fast transfer</span> <Info {...args} />
|
|
19
|
+
</p>
|
|
20
|
+
),
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
|
|
24
|
+
type Story = StoryObj<typeof meta>;
|
|
25
|
+
|
|
26
|
+
export const OpenedPopover: Story = {
|
|
27
|
+
parameters: {
|
|
28
|
+
chromatic: {
|
|
29
|
+
delay: 1000,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
play: async ({ canvasElement }) => {
|
|
33
|
+
const canvas = within(canvasElement);
|
|
34
|
+
await userEvent.click(canvas.getByRole('button'));
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const OpenedPopoverMobile: Story = {
|
|
39
|
+
...OpenedPopover,
|
|
40
|
+
...withVariantConfig(['mobile'], OpenedPopover),
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const OpenedModal: Story = {
|
|
44
|
+
...OpenedPopover,
|
|
45
|
+
args: {
|
|
46
|
+
presentation: InfoPresentation.MODAL,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const OpenedModalMobile: Story = {
|
|
51
|
+
...OpenedModal,
|
|
52
|
+
...withVariantConfig(['mobile'], OpenedModal),
|
|
53
|
+
};
|
|
@@ -65,15 +65,3 @@ export const SecurityPin: Story = {
|
|
|
65
65
|
displayPattern: '*-*-*-*-*-*',
|
|
66
66
|
},
|
|
67
67
|
};
|
|
68
|
-
|
|
69
|
-
export const SecurityPinPlay: Story = {
|
|
70
|
-
args: {
|
|
71
|
-
label: 'Security Pin Play',
|
|
72
|
-
placeholder: '*-*-*-*-*-*',
|
|
73
|
-
displayPattern: '*-*-*-*-*-*',
|
|
74
|
-
},
|
|
75
|
-
play: async ({ canvasElement }) => {
|
|
76
|
-
const canvas = within(canvasElement);
|
|
77
|
-
await userEvent.type(canvas.getByPlaceholderText('*-*-*-*-*-*'), '123456');
|
|
78
|
-
},
|
|
79
|
-
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { userEvent, within } from 'storybook/test';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
|
|
4
|
+
import InputWithDisplayFormat, { InputWithDisplayFormatProps } from '.';
|
|
5
|
+
import { Field, FieldProps } from '../field/Field';
|
|
6
|
+
|
|
7
|
+
const meta: Meta<typeof InputWithDisplayFormat> = {
|
|
8
|
+
title: 'Forms/InputWithDisplayFormat/Tests',
|
|
9
|
+
component: InputWithDisplayFormat,
|
|
10
|
+
tags: ['!autodocs', '!manifest'],
|
|
11
|
+
render: function Render({ label, ...args }: InputWithDisplayFormatProps & FieldProps) {
|
|
12
|
+
return (
|
|
13
|
+
<Field label={label} id={args.id}>
|
|
14
|
+
<InputWithDisplayFormat id={args.id} {...args} />
|
|
15
|
+
</Field>
|
|
16
|
+
);
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
|
|
21
|
+
type Story = StoryObj<InputWithDisplayFormatProps & { label: string }>;
|
|
22
|
+
|
|
23
|
+
export const SecurityPinPlay: Story = {
|
|
24
|
+
args: {
|
|
25
|
+
label: 'Security Pin Play',
|
|
26
|
+
placeholder: '*-*-*-*-*-*',
|
|
27
|
+
displayPattern: '*-*-*-*-*-*',
|
|
28
|
+
},
|
|
29
|
+
play: async ({ canvasElement }) => {
|
|
30
|
+
const canvas = within(canvasElement);
|
|
31
|
+
await userEvent.type(canvas.getByPlaceholderText('*-*-*-*-*-*'), '123456');
|
|
32
|
+
},
|
|
33
|
+
};
|
package/src/inputs/_common.less
CHANGED
package/src/link/Link.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import (reference) "
|
|
2
|
-
@import (reference) "
|
|
1
|
+
@import (reference) "./../neptune-css/less/mixins/_logical-properties.less";
|
|
2
|
+
@import (reference) "./../neptune-css/less/ring.less";
|
|
3
3
|
|
|
4
4
|
a, button.np-link {
|
|
5
5
|
border-radius: 2px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import "./ListItem.grid.less";
|
|
2
2
|
@import "./Prompt/ListItemPrompt.less";
|
|
3
|
-
@import (reference) "
|
|
3
|
+
@import (reference) "./../neptune-css/less/ring.less";
|
|
4
4
|
@import (reference) "./ListItem.vars.less";
|
|
5
5
|
|
|
6
6
|
.wds-list-item {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
component: ListItem,
|
|
14
|
-
title: 'Content/ListItem/
|
|
14
|
+
title: 'Content/ListItem/Tests/Breakpoints/StackedMedia',
|
|
15
15
|
tags: ['!autodocs', '!manifest'],
|
|
16
16
|
parameters: {
|
|
17
17
|
controls: { disable: true },
|
|
@@ -20,7 +20,7 @@ const waitForListItem = async (canvas: ReturnType<typeof within>, timeout = 3000
|
|
|
20
20
|
|
|
21
21
|
export default {
|
|
22
22
|
component: ListItem,
|
|
23
|
-
title: 'Content/ListItem/
|
|
23
|
+
title: 'Content/ListItem/Tests/focus',
|
|
24
24
|
tags: ['!autodocs', '!manifest'],
|
|
25
25
|
parameters: {
|
|
26
26
|
controls: { disable: true },
|
|
@@ -11,7 +11,7 @@ import { withSizedContainer } from './helpers';
|
|
|
11
11
|
import { LISTITEM_CQ } from '../constants';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
|
-
title: 'Content/ListItem/
|
|
14
|
+
title: 'Content/ListItem/Tests/layout',
|
|
15
15
|
tags: ['!autodocs', '!manifest'],
|
|
16
16
|
parameters: {
|
|
17
17
|
controls: { disable: true },
|
|
@@ -5,7 +5,7 @@ import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: ListItem,
|
|
8
|
-
title: 'Content/ListItem/
|
|
8
|
+
title: 'Content/ListItem/Tests/variants/theme: bright-green',
|
|
9
9
|
tags: ['!autodocs', '!manifest'],
|
|
10
10
|
parameters: {
|
|
11
11
|
controls: { disable: true },
|
|
@@ -5,7 +5,7 @@ import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: ListItem,
|
|
8
|
-
title: 'Content/ListItem/
|
|
8
|
+
title: 'Content/ListItem/Tests/variants/theme: dark',
|
|
9
9
|
tags: ['!autodocs', '!manifest'],
|
|
10
10
|
parameters: {
|
|
11
11
|
controls: { disable: true },
|
|
@@ -5,7 +5,7 @@ import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: ListItem,
|
|
8
|
-
title: 'Content/ListItem/
|
|
8
|
+
title: 'Content/ListItem/Tests/variants/theme: forest-green',
|
|
9
9
|
tags: ['!autodocs', '!manifest'],
|
|
10
10
|
parameters: {
|
|
11
11
|
controls: { disable: true },
|
|
@@ -5,7 +5,7 @@ import { withSizedContainer } from '../helpers';
|
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: ListItem,
|
|
8
|
-
title: 'Content/ListItem/
|
|
8
|
+
title: 'Content/ListItem/Tests/variants/cq: medium',
|
|
9
9
|
tags: ['!autodocs', '!manifest'],
|
|
10
10
|
parameters: {
|
|
11
11
|
controls: { disable: true },
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
component: ListItem,
|
|
14
|
-
title: 'Content/ListItem/
|
|
14
|
+
title: 'Content/ListItem/Tests/variants/surface: neutral',
|
|
15
15
|
tags: ['!autodocs', '!manifest'],
|
|
16
16
|
parameters: {
|
|
17
17
|
controls: { disable: true },
|
|
@@ -10,7 +10,7 @@ import { VariantStory } from './helpers';
|
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
12
|
component: ListItem,
|
|
13
|
-
title: 'Content/ListItem/
|
|
13
|
+
title: 'Content/ListItem/Tests/variants/theme: personal',
|
|
14
14
|
tags: ['!autodocs', '!manifest'],
|
|
15
15
|
parameters: {
|
|
16
16
|
controls: { disable: true },
|
|
@@ -5,7 +5,7 @@ import { withVariantConfig } from '../../../../.storybook/helpers';
|
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: ListItem,
|
|
8
|
-
title: 'Content/ListItem/
|
|
8
|
+
title: 'Content/ListItem/Tests/variants/rtl',
|
|
9
9
|
tags: ['!autodocs', '!manifest'],
|
|
10
10
|
parameters: {
|
|
11
11
|
controls: { disable: true },
|
|
@@ -5,7 +5,7 @@ import { withSizedContainer } from '../helpers';
|
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
component: ListItem,
|
|
8
|
-
title: 'Content/ListItem/
|
|
8
|
+
title: 'Content/ListItem/Tests/variants/cq: small',
|
|
9
9
|
tags: ['!autodocs', '!manifest'],
|
|
10
10
|
parameters: {
|
|
11
11
|
controls: { disable: true },
|
package/src/logo/Logo.story.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
import Logo, { LogoType } from '.';
|
|
4
|
-
import { withVariantConfig } from '../../.storybook/helpers';
|
|
5
4
|
|
|
6
5
|
export default {
|
|
7
6
|
component: Logo,
|
|
@@ -36,8 +35,3 @@ export const Basic: Story = {
|
|
|
36
35
|
inverse: false,
|
|
37
36
|
},
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
export const Mobile: Story = {
|
|
41
|
-
...Basic,
|
|
42
|
-
...withVariantConfig(['mobile']),
|
|
43
|
-
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import Logo from '.';
|
|
3
|
+
import { withVariantConfig } from '../../.storybook/helpers';
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Logo> = {
|
|
6
|
+
component: Logo,
|
|
7
|
+
tags: ['!autodocs', '!manifest'],
|
|
8
|
+
title: 'Content/Logo/Tests',
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
type Story = StoryObj<typeof Logo>;
|
|
13
|
+
|
|
14
|
+
export const Mobile: Story = {
|
|
15
|
+
args: {
|
|
16
|
+
type: 'WISE',
|
|
17
|
+
inverse: false,
|
|
18
|
+
},
|
|
19
|
+
...withVariantConfig(['mobile']),
|
|
20
|
+
};
|
package/src/main.less
CHANGED
|
@@ -6,7 +6,6 @@ import { useState } from 'react';
|
|
|
6
6
|
import { Button, Modal, ModalProps } from '..';
|
|
7
7
|
import { CommonProps, Scroll } from '../common';
|
|
8
8
|
import { lorem10, lorem100, lorem1000 } from '../test-utils';
|
|
9
|
-
import { withVariantConfig } from '../../.storybook/helpers';
|
|
10
9
|
|
|
11
10
|
export default {
|
|
12
11
|
component: Modal,
|
|
@@ -76,11 +75,6 @@ export const Basic: Story = {
|
|
|
76
75
|
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
77
76
|
};
|
|
78
77
|
|
|
79
|
-
export const BasicMobile: Story = {
|
|
80
|
-
...Basic,
|
|
81
|
-
...withVariantConfig(['mobile'], Basic),
|
|
82
|
-
};
|
|
83
|
-
|
|
84
78
|
export const ContentScroll: Story = {
|
|
85
79
|
args: {
|
|
86
80
|
title: lorem10,
|
|
@@ -90,11 +84,6 @@ export const ContentScroll: Story = {
|
|
|
90
84
|
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
91
85
|
};
|
|
92
86
|
|
|
93
|
-
export const ContentScrollMobile: Story = {
|
|
94
|
-
...ContentScroll,
|
|
95
|
-
...withVariantConfig(['mobile'], ContentScroll),
|
|
96
|
-
};
|
|
97
|
-
|
|
98
87
|
export const ViewportScroll: Story = {
|
|
99
88
|
args: {
|
|
100
89
|
title: lorem10,
|
|
@@ -104,11 +93,6 @@ export const ViewportScroll: Story = {
|
|
|
104
93
|
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
105
94
|
};
|
|
106
95
|
|
|
107
|
-
export const ViewportScrollMobile: Story = {
|
|
108
|
-
...ViewportScroll,
|
|
109
|
-
...withVariantConfig(['mobile'], ViewportScroll),
|
|
110
|
-
};
|
|
111
|
-
|
|
112
96
|
export const WithoutTitle: Story = {
|
|
113
97
|
args: {
|
|
114
98
|
body: lorem1000,
|
|
@@ -117,11 +101,6 @@ export const WithoutTitle: Story = {
|
|
|
117
101
|
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
118
102
|
};
|
|
119
103
|
|
|
120
|
-
export const WithoutTitleMobile: Story = {
|
|
121
|
-
...WithoutTitle,
|
|
122
|
-
...withVariantConfig(['mobile'], WithoutTitle),
|
|
123
|
-
};
|
|
124
|
-
|
|
125
104
|
export const WithThemeProviderInContent: Story = {
|
|
126
105
|
args: {
|
|
127
106
|
title: lorem10,
|
|
@@ -138,8 +117,3 @@ export const WithThemeProviderInContent: Story = {
|
|
|
138
117
|
<StoryContent args={args} screenMode={screenMode} viewMode={viewMode} />
|
|
139
118
|
),
|
|
140
119
|
};
|
|
141
|
-
|
|
142
|
-
export const WithThemeProviderInContentMobile: Story = {
|
|
143
|
-
...WithThemeProviderInContent,
|
|
144
|
-
...withVariantConfig(['mobile'], WithThemeProviderInContent),
|
|
145
|
-
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { action } from 'storybook/actions';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
import { ScreenMode, ThemeProvider } from '@wise/components-theming';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { Button, Modal, ModalProps } from '..';
|
|
6
|
+
import { CommonProps, Scroll } from '../common';
|
|
7
|
+
import { lorem10, lorem100, lorem1000 } from '../test-utils';
|
|
8
|
+
import { withVariantConfig } from '../../.storybook/helpers';
|
|
9
|
+
|
|
10
|
+
const meta: Meta<typeof Modal> = {
|
|
11
|
+
component: Modal,
|
|
12
|
+
tags: ['!autodocs', '!manifest'],
|
|
13
|
+
title: 'Dialogs/Modal/Tests',
|
|
14
|
+
args: {
|
|
15
|
+
size: 'md',
|
|
16
|
+
position: 'center',
|
|
17
|
+
open: false,
|
|
18
|
+
},
|
|
19
|
+
parameters: {
|
|
20
|
+
chromatic: {
|
|
21
|
+
delay: 2000,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
|
|
27
|
+
type Story = StoryObj<typeof Modal>;
|
|
28
|
+
|
|
29
|
+
export interface StoryContentProps {
|
|
30
|
+
args: CommonProps & ModalProps;
|
|
31
|
+
screenMode?: ScreenMode;
|
|
32
|
+
viewMode?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const StoryContent = ({ args, screenMode, viewMode }: StoryContentProps) => {
|
|
36
|
+
const [open, setOpen] = useState(viewMode !== 'docs');
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
<>
|
|
40
|
+
<Button v2 onClick={() => setOpen(true)}>
|
|
41
|
+
Open Modal
|
|
42
|
+
</Button>
|
|
43
|
+
<Modal
|
|
44
|
+
{...args}
|
|
45
|
+
body={
|
|
46
|
+
!screenMode ? (
|
|
47
|
+
args.body
|
|
48
|
+
) : (
|
|
49
|
+
<ThemeProvider theme="personal" screenMode={screenMode}>
|
|
50
|
+
{lorem100}
|
|
51
|
+
</ThemeProvider>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
open={open}
|
|
55
|
+
disableDimmerClickToClose={args.disableDimmerClickToClose}
|
|
56
|
+
onClose={() => {
|
|
57
|
+
setOpen(false);
|
|
58
|
+
action('Modal closed')();
|
|
59
|
+
}}
|
|
60
|
+
/>
|
|
61
|
+
</>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export const BasicMobile: Story = {
|
|
66
|
+
args: {
|
|
67
|
+
title: 'Title',
|
|
68
|
+
body: lorem10,
|
|
69
|
+
scroll: Scroll.VIEWPORT,
|
|
70
|
+
footer: (
|
|
71
|
+
<Button v2 block>
|
|
72
|
+
Action
|
|
73
|
+
</Button>
|
|
74
|
+
),
|
|
75
|
+
},
|
|
76
|
+
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
77
|
+
...withVariantConfig(['mobile']),
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const ContentScrollMobile: Story = {
|
|
81
|
+
args: {
|
|
82
|
+
title: lorem10,
|
|
83
|
+
body: lorem1000,
|
|
84
|
+
scroll: Scroll.CONTENT,
|
|
85
|
+
},
|
|
86
|
+
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
87
|
+
...withVariantConfig(['mobile']),
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const ViewportScrollMobile: Story = {
|
|
91
|
+
args: {
|
|
92
|
+
title: lorem10,
|
|
93
|
+
body: lorem1000,
|
|
94
|
+
scroll: Scroll.VIEWPORT,
|
|
95
|
+
},
|
|
96
|
+
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
97
|
+
...withVariantConfig(['mobile']),
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export const WithoutTitleMobile: Story = {
|
|
101
|
+
args: {
|
|
102
|
+
body: lorem1000,
|
|
103
|
+
scroll: Scroll.CONTENT,
|
|
104
|
+
},
|
|
105
|
+
render: (args, context) => <StoryContent args={args} viewMode={context.viewMode} />,
|
|
106
|
+
...withVariantConfig(['mobile']),
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export const WithThemeProviderInContentMobile: Story = {
|
|
110
|
+
args: {
|
|
111
|
+
title: lorem10,
|
|
112
|
+
body: lorem100,
|
|
113
|
+
scroll: Scroll.VIEWPORT,
|
|
114
|
+
footer: (
|
|
115
|
+
<Button v2 block>
|
|
116
|
+
Action
|
|
117
|
+
</Button>
|
|
118
|
+
),
|
|
119
|
+
},
|
|
120
|
+
render: (args, { globals: { screenMode }, viewMode }) => (
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
122
|
+
<StoryContent args={args} screenMode={screenMode} viewMode={viewMode} />
|
|
123
|
+
),
|
|
124
|
+
...withVariantConfig(['mobile']),
|
|
125
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import (reference) "
|
|
2
|
-
@import (reference) "
|
|
1
|
+
@import (reference) "./../neptune-css/variables/neptune-tokens.less";
|
|
2
|
+
@import (reference) "./../neptune-css/less/mixins/_logical-properties.less";
|
|
3
3
|
|
|
4
4
|
.tw-money-input {
|
|
5
5
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import (reference) "
|
|
2
|
-
@import (reference) "
|
|
3
|
-
@import (reference) "
|
|
1
|
+
@import (reference) "./../neptune-css/variables/neptune-tokens.less";
|
|
2
|
+
@import (reference) "./../neptune-css/less/mixins/_logical-properties.less";
|
|
3
|
+
@import (reference) "./../neptune-css/less/ring.less";
|
|
4
4
|
|
|
5
5
|
.np-navigation-option {
|
|
6
6
|
text-decoration: none;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|