@transferwise/components 46.159.2 → 46.160.1
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/ExpressiveMoneyInput/Chevron/Chevron.js +10 -2
- package/build/ExpressiveMoneyInput/Chevron/Chevron.js.map +1 -1
- package/build/ExpressiveMoneyInput/Chevron/Chevron.mjs +11 -3
- package/build/ExpressiveMoneyInput/Chevron/Chevron.mjs.map +1 -1
- package/build/ListItem/ListItem.js +6 -5
- package/build/ListItem/ListItem.js.map +1 -1
- package/build/ListItem/ListItem.mjs +6 -5
- package/build/ListItem/ListItem.mjs.map +1 -1
- package/build/ListItem/Navigation/ListItemNavigation.js +1 -0
- package/build/ListItem/Navigation/ListItemNavigation.js.map +1 -1
- package/build/ListItem/Navigation/ListItemNavigation.mjs +1 -0
- package/build/ListItem/Navigation/ListItemNavigation.mjs.map +1 -1
- package/build/ProcessIndicator/ProcessIndicator.js +1 -1
- package/build/ProcessIndicator/ProcessIndicator.js.map +1 -1
- package/build/ProcessIndicator/ProcessIndicator.mjs +1 -1
- package/build/ProcessIndicator/ProcessIndicator.mjs.map +1 -1
- package/build/Prompt/CriticalBanner/CriticalBanner.js +10 -1
- package/build/Prompt/CriticalBanner/CriticalBanner.js.map +1 -1
- package/build/Prompt/CriticalBanner/CriticalBanner.mjs +10 -1
- package/build/Prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
- package/build/common/Panel/Panel.js +13 -25
- package/build/common/Panel/Panel.js.map +1 -1
- package/build/common/Panel/Panel.mjs +10 -22
- package/build/common/Panel/Panel.mjs.map +1 -1
- package/build/common/Panel/Panel.positionUtils.js +68 -0
- package/build/common/Panel/Panel.positionUtils.js.map +1 -0
- package/build/common/Panel/Panel.positionUtils.mjs +63 -0
- package/build/common/Panel/Panel.positionUtils.mjs.map +1 -0
- package/build/common/PropsValues/position.js +0 -25
- package/build/common/PropsValues/position.js.map +1 -1
- package/build/common/PropsValues/position.mjs +1 -24
- package/build/common/PropsValues/position.mjs.map +1 -1
- package/build/main.css +4370 -7983
- package/build/styles/Accordion/Accordion.css +23 -21
- package/build/styles/AvatarLayout/AvatarLayout.css +11 -11
- package/build/styles/AvatarView/AvatarView.css +11 -3
- package/build/styles/AvatarView/Dot/Dot.css +11 -3
- package/build/styles/Button/Button.css +6 -6
- package/build/styles/Button/LegacyButton/LegacyButton.css +3 -9
- package/build/styles/Calendar/Calendar.css +9 -8
- package/build/styles/Calendar/TableLink/TableLink.css +8 -7
- package/build/styles/Carousel/Carousel.css +28 -27
- package/build/styles/CheckboxButton/CheckboxButton.css +13 -15
- package/build/styles/Chips/Chip/Chip.css +26 -29
- package/build/styles/Container/Container.css +5 -5
- package/build/styles/DateInput/DateInput.css +4 -4
- package/build/styles/DateLookup/DateLookup.css +1 -1
- package/build/styles/DateLookup/DateTrigger/DateTrigger.css +9 -15
- package/build/styles/DefinitionList/DefinitionList.css +12 -23
- package/build/styles/Dimmer/Dimmer.css +9 -19
- package/build/styles/Divider/Divider.css +8 -7
- package/build/styles/Drawer/Drawer.css +16 -15
- package/build/styles/DropFade/DropFade.css +2 -2
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +4 -4
- package/build/styles/ExpressiveMoneyInput/Chevron/Chevron.css +5 -5
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/build/styles/Field/Field.css +13 -12
- package/build/styles/FlowNavigation/AnimatedLabel/AnimatedLabel.css +5 -5
- package/build/styles/FlowNavigation/FlowNavigation.css +23 -44
- package/build/styles/Header/Header.css +11 -9
- package/build/styles/Image/Image.css +7 -7
- package/build/styles/Info/Info.css +1 -1
- package/build/styles/Inputs/Input/Input.css +24 -25
- package/build/styles/Inputs/InputGroup/InputGroup.css +13 -13
- package/build/styles/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +10 -10
- package/build/styles/Inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +7 -7
- package/build/styles/Inputs/SelectInput/ClearButton/SelectInputClearButton.css +6 -6
- package/build/styles/Inputs/SelectInput/ItemView/SelectInputItemView.css +4 -4
- package/build/styles/Inputs/SelectInput/Option/SelectInputOption.css +4 -2
- package/build/styles/Inputs/SelectInput/OptionContent/SelectInputOptionContent.css +4 -4
- package/build/styles/Inputs/SelectInput/Options/SelectInputOptions.css +17 -12
- package/build/styles/Inputs/SelectInput/Popover/SelectInputPopover.css +4 -4
- package/build/styles/Inputs/SelectInput/SelectInput.css +56 -49
- package/build/styles/Inputs/TextArea/TextArea.css +26 -27
- package/build/styles/InstructionsList/InstructionsList.css +5 -5
- package/build/styles/Link/Link.css +2 -8
- package/build/styles/ListItem/ListItem.css +38 -35
- package/build/styles/ListItem/ListItem.grid.css +7 -7
- package/build/styles/Loader/Loader.css +31 -31
- package/build/styles/Logo/Logo.css +2 -2
- package/build/styles/Modal/Modal.css +15 -14
- package/build/styles/MoneyInput/MoneyInput.css +10 -20
- package/build/styles/Nudge/Nudge.css +53 -115
- package/build/styles/PhoneNumberInput/PhoneNumberInput.css +3 -9
- package/build/styles/Popover/Popover.css +13 -10
- package/build/styles/Progress/Progress.css +3 -3
- package/build/styles/ProgressBar/ProgressBar.css +4 -4
- package/build/styles/PromoCard/PromoCard.css +28 -42
- package/build/styles/Prompt/ActionPrompt/ActionPrompt.css +9 -9
- package/build/styles/Prompt/CriticalBanner/CriticalBanner.css +57 -23
- package/build/styles/Prompt/InfoPrompt/InfoPrompt.css +15 -15
- package/build/styles/Prompt/InlinePrompt/InlinePrompt.css +5 -6
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +10 -8
- package/build/styles/RadioGroup/RadioGroup.css +1 -1
- package/build/styles/Section/Section.css +6 -6
- package/build/styles/SegmentedControl/SegmentedControl.css +18 -15
- package/build/styles/SlidingPanel/SlidingPanel.css +17 -31
- package/build/styles/Snackbar/Snackbar.css +21 -35
- package/build/styles/Stepper/Stepper.css +9 -12
- package/build/styles/Sticky/Sticky.css +2 -2
- package/build/styles/Switch/Switch.css +5 -4
- package/build/styles/Table/Table.css +60 -57
- package/build/styles/Tabs/Tabs.css +18 -14
- package/build/styles/Tile/Tile.css +12 -12
- package/build/styles/Tooltip/Tooltip.css +2 -2
- package/build/styles/Typeahead/Typeahead.css +42 -54
- package/build/styles/Upload/Upload.css +11 -10
- package/build/styles/UploadInput/UploadButton/UploadButton.css +20 -19
- package/build/styles/UploadInput/UploadInput.css +4 -4
- package/build/styles/UploadInput/UploadItem/UploadItem.css +49 -49
- package/build/styles/_deprecated/ActionButton/ActionButton.css +8 -6
- package/build/styles/_deprecated/Alert/Alert.css +2 -2
- package/build/styles/_deprecated/Avatar/Avatar.css +65 -65
- package/build/styles/_deprecated/Badge/Badge.css +12 -14
- package/build/styles/_deprecated/Card/Card.css +27 -18
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +7 -7
- package/build/styles/_deprecated/LegacyListItem/LegacyListItem.css +1 -1
- package/build/styles/_deprecated/NavigationOption/NavigationOption.css +6 -19
- package/build/styles/_deprecated/NavigationOptionsList/NavigationOptionsList.css +3 -8
- package/build/styles/_deprecated/Select/Select.css +57 -104
- package/build/styles/_deprecated/Summary/Summary.css +19 -30
- package/build/styles/common/BaseCard/BaseCard.css +3 -7
- package/build/styles/common/BottomSheet/BottomSheet.css +30 -18
- package/build/styles/common/Circle/Circle.css +10 -10
- package/build/styles/common/CloseButton/CloseButton.css +36 -36
- package/build/styles/common/LiveRegion/LiveRegion.css +1 -1
- package/build/styles/common/Option/Option.css +42 -44
- package/build/styles/common/Panel/Panel.css +19 -11
- package/build/styles/css/accordion.css +27 -46
- package/build/styles/css/alerts.css +56 -124
- package/build/styles/css/badge.css +20 -30
- package/build/styles/css/breadcrumbs.css +6 -4
- package/build/styles/css/button-groups.css +116 -254
- package/build/styles/css/buttons.css +50 -95
- package/build/styles/css/chevron.css +3 -0
- package/build/styles/css/circles.css +38 -76
- package/build/styles/css/close.css +1 -4
- package/build/styles/css/column-layout.css +38 -60
- package/build/styles/css/currency-flags.css +4 -17
- package/build/styles/css/decision.css +14 -12
- package/build/styles/css/dropdowns.css +59 -210
- package/build/styles/css/droppable.css +43 -38
- package/build/styles/css/flex.css +40 -136
- package/build/styles/css/footer.css +15 -14
- package/build/styles/css/grid.css +383 -1430
- package/build/styles/css/input-groups.css +254 -542
- package/build/styles/css/link-callout.css +2 -8
- package/build/styles/css/list-group.css +57 -92
- package/build/styles/css/loaders.css +11 -11
- package/build/styles/css/media.css +10 -34
- package/build/styles/css/modals.css +49 -59
- package/build/styles/css/navbar.css +372 -812
- package/build/styles/css/navs.css +59 -124
- package/build/styles/css/neptune-addons.css +687 -1234
- package/build/styles/css/neptune-core.css +123 -229
- package/build/styles/css/neptune-social-media.css +9 -33
- package/build/styles/css/neptune.css +3060 -6498
- package/build/styles/css/panels.css +143 -243
- package/build/styles/css/popovers.css +114 -295
- package/build/styles/css/process.css +79 -86
- package/build/styles/css/progress-bars.css +13 -19
- package/build/styles/css/select.css +21 -53
- package/build/styles/css/sequences.css +99 -219
- package/build/styles/css/table.css +48 -43
- package/build/styles/css/tick.css +14 -11
- package/build/styles/css/tooltip.css +49 -82
- package/build/styles/css/utilities.css +12 -40
- package/build/styles/css/wells.css +16 -16
- package/build/styles/main.css +4370 -7983
- package/build/styles/styles/less/accordion.css +27 -46
- package/build/styles/styles/less/alerts.css +56 -124
- package/build/styles/styles/less/badge.css +20 -30
- package/build/styles/styles/less/breadcrumbs.css +6 -4
- package/build/styles/styles/less/button-groups.css +116 -254
- package/build/styles/styles/less/buttons.css +50 -95
- package/build/styles/styles/less/chevron.css +3 -0
- package/build/styles/styles/less/circles.css +38 -76
- package/build/styles/styles/less/close.css +1 -4
- package/build/styles/styles/less/column-layout.css +38 -60
- package/build/styles/styles/less/currency-flags.css +4 -17
- package/build/styles/styles/less/decision.css +14 -12
- package/build/styles/styles/less/dropdowns.css +59 -210
- package/build/styles/styles/less/droppable.css +43 -38
- package/build/styles/styles/less/flex.css +40 -136
- package/build/styles/styles/less/footer.css +15 -14
- package/build/styles/styles/less/forms/bootstrap-forms.css +180 -344
- package/build/styles/styles/less/forms/checkbox-radio.css +29 -56
- package/build/styles/styles/less/grid.css +383 -1430
- package/build/styles/styles/less/input-groups.css +254 -542
- package/build/styles/styles/less/link-callout.css +2 -8
- package/build/styles/styles/less/list-group.css +57 -92
- package/build/styles/styles/less/loaders.css +11 -11
- package/build/styles/styles/less/media.css +10 -34
- package/build/styles/styles/less/modals.css +49 -59
- package/build/styles/styles/less/navbar.css +372 -812
- package/build/styles/styles/less/navs.css +59 -124
- package/build/styles/styles/less/neptune-addons.css +687 -1234
- package/build/styles/styles/less/neptune-core.css +123 -229
- package/build/styles/styles/less/neptune-social-media.css +9 -33
- package/build/styles/styles/less/neptune.css +3060 -6498
- package/build/styles/styles/less/panels.css +143 -243
- package/build/styles/styles/less/popovers.css +114 -295
- package/build/styles/styles/less/process.css +79 -86
- package/build/styles/styles/less/progress-bars.css +13 -19
- package/build/styles/styles/less/select.css +21 -53
- package/build/styles/styles/less/sequences.css +99 -219
- package/build/styles/styles/less/table.css +48 -43
- package/build/styles/styles/less/tick.css +14 -11
- package/build/styles/styles/less/tooltip.css +49 -82
- package/build/styles/styles/less/utilities.css +12 -40
- package/build/styles/styles/less/wells.css +16 -16
- package/build/types/ExpressiveMoneyInput/Chevron/Chevron.d.ts.map +1 -1
- package/build/types/ListItem/ListItem.d.ts.map +1 -1
- package/build/types/Prompt/CriticalBanner/CriticalBanner.d.ts +6 -1
- package/build/types/Prompt/CriticalBanner/CriticalBanner.d.ts.map +1 -1
- package/build/types/common/Panel/Panel.d.ts +1 -1
- package/build/types/common/Panel/Panel.d.ts.map +1 -1
- package/build/types/common/Panel/Panel.positionUtils.d.ts +7 -0
- package/build/types/common/Panel/Panel.positionUtils.d.ts.map +1 -0
- package/build/types/common/PropsValues/position.d.ts +0 -13
- package/build/types/common/PropsValues/position.d.ts.map +1 -1
- package/build/types/common/ResponsivePanel/ResponsivePanel.d.ts +1 -1
- package/package.json +8 -8
- package/src/Accordion/Accordion.css +23 -21
- package/src/Accordion/Accordion.less +3 -4
- package/src/AvatarLayout/AvatarLayout.css +11 -11
- package/src/AvatarView/AvatarView.css +11 -3
- package/src/AvatarView/Dot/Dot.css +11 -3
- package/src/AvatarView/Dot/Dot.less +7 -1
- package/src/Button/Button.css +6 -6
- package/src/Button/LegacyButton/LegacyButton.css +3 -9
- package/src/Button/LegacyButton/LegacyButton.less +1 -3
- package/src/Button/_stories/Button.test.story.tsx +1 -1
- package/src/Calendar/Calendar.css +9 -8
- package/src/Calendar/TableLink/TableLink.css +8 -7
- package/src/Carousel/Carousel.css +28 -27
- package/src/Checkbox/_stories/Checkbox.story.tsx +1 -1
- package/src/Checkbox/_stories/Checkbox.test.story.tsx +3 -2
- package/src/CheckboxButton/CheckboxButton.css +13 -15
- package/src/CheckboxButton/CheckboxButton.less +8 -4
- package/src/Chevron/_stories/Chevron.test.story.tsx +2 -2
- package/src/Chips/Chip/Chip.css +26 -29
- package/src/Chips/Chip/Chip.less +5 -3
- package/src/Container/Container.css +5 -5
- package/src/DateInput/DateInput.css +4 -4
- package/src/DateLookup/DateLookup.css +1 -1
- package/src/DateLookup/DateTrigger/DateTrigger.css +9 -15
- package/src/DateLookup/DateTrigger/DateTrigger.less +1 -2
- package/src/Decision/Decision.less +0 -2
- package/src/DefinitionList/DefinitionList.css +12 -23
- package/src/DefinitionList/DefinitionList.less +2 -4
- package/src/Dimmer/Dimmer.css +9 -19
- package/src/Dimmer/Dimmer.less +2 -3
- package/src/Divider/Divider.css +8 -7
- package/src/Drawer/Drawer.css +16 -15
- package/src/DropFade/DropFade.css +2 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +4 -4
- package/src/ExpressiveMoneyInput/Chevron/Chevron.css +5 -5
- package/src/ExpressiveMoneyInput/Chevron/Chevron.tsx +8 -3
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +11 -11
- package/src/Field/Field.css +13 -12
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.css +5 -5
- package/src/FlowNavigation/FlowNavigation.css +23 -44
- package/src/Header/Header.css +11 -9
- package/src/Header/_stories/Header.test.story.tsx +1 -1
- package/src/Image/Image.css +7 -7
- package/src/Info/Info.css +1 -1
- package/src/Info/_stories/Info.rtl.test.story.tsx +35 -10
- package/src/Info/_stories/Info.story.tsx +1 -1
- package/src/Inputs/Input/Input.css +24 -25
- package/src/Inputs/InputGroup/InputGroup.css +13 -13
- package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +10 -10
- package/src/Inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +7 -7
- package/src/Inputs/SelectInput/ClearButton/SelectInputClearButton.css +6 -6
- package/src/Inputs/SelectInput/ItemView/SelectInputItemView.css +4 -4
- package/src/Inputs/SelectInput/Option/SelectInputOption.css +4 -2
- package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.css +4 -4
- package/src/Inputs/SelectInput/Options/SelectInputOptions.css +17 -12
- package/src/Inputs/SelectInput/Popover/SelectInputPopover.css +4 -4
- package/src/Inputs/SelectInput/SelectInput.css +56 -49
- package/src/Inputs/SelectInput/_stories/SelectInput.test.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +26 -27
- package/src/InstructionsList/InstructionsList.css +5 -5
- package/src/Link/Link.css +2 -8
- package/src/Link/Link.less +3 -3
- package/src/ListItem/ListItem.css +38 -35
- package/src/ListItem/ListItem.grid.css +7 -7
- package/src/ListItem/ListItem.tsx +8 -5
- package/src/ListItem/Navigation/ListItemNavigation.test.tsx +13 -0
- package/src/ListItem/Navigation/ListItemNavigation.tsx +1 -1
- package/src/ListItem/_stories/subcomponents.tsx +1 -1
- package/src/Loader/Loader.css +31 -31
- package/src/Loader/_stories/Loader.test.story.tsx +23 -0
- package/src/Logo/Logo.css +2 -2
- package/src/Modal/Modal.css +15 -14
- package/src/MoneyInput/MoneyInput.css +10 -20
- package/src/MoneyInput/MoneyInput.less +2 -3
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +1 -1
- package/src/Nudge/Nudge.css +53 -115
- package/src/Nudge/Nudge.less +4 -12
- package/src/Nudge/_stories/Nudge.test.story.tsx +29 -12
- package/src/PhoneNumberInput/PhoneNumberInput.css +3 -9
- package/src/PhoneNumberInput/PhoneNumberInput.less +1 -3
- package/src/PhoneNumberInput/_stories/{PhoneNumberInput.test.story.tsx → PhoneNumberInput.rtl.test.story.tsx} +18 -10
- package/src/Popover/Popover.css +13 -10
- package/src/ProcessIndicator/ProcessIndicator.tsx +1 -1
- package/src/ProcessIndicator/_stories/ProcessIndicator.test.story.tsx +32 -0
- package/src/Progress/Progress.css +3 -3
- package/src/ProgressBar/ProgressBar.css +4 -4
- package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +33 -19
- package/src/PromoCard/PromoCard.css +28 -42
- package/src/PromoCard/PromoCard.less +24 -32
- package/src/Prompt/ActionPrompt/ActionPrompt.css +9 -9
- package/src/Prompt/CriticalBanner/CriticalBanner.css +57 -23
- package/src/Prompt/CriticalBanner/CriticalBanner.less +45 -0
- package/src/Prompt/CriticalBanner/CriticalBanner.test.tsx +26 -3
- package/src/Prompt/CriticalBanner/CriticalBanner.tsx +15 -1
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.accessibility.docs.mdx +4 -1
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.story.tsx +52 -0
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +22 -1
- package/src/Prompt/InfoPrompt/InfoPrompt.css +15 -15
- package/src/Prompt/InlinePrompt/InlinePrompt.css +5 -6
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +10 -8
- package/src/RadioGroup/RadioGroup.css +1 -1
- package/src/Section/Section.css +6 -6
- package/src/SegmentedControl/SegmentedControl.css +18 -15
- package/src/SlidingPanel/SlidingPanel.css +17 -31
- package/src/SlidingPanel/SlidingPanel.less +12 -4
- package/src/SlidingPanel/_stories/SlidingPanel.rtl.test.story.tsx +4 -3
- package/src/Snackbar/Snackbar.css +21 -35
- package/src/Snackbar/Snackbar.less +3 -9
- package/src/Snackbar/_stories/Snackbar.rtl.test.story.tsx +14 -16
- package/src/Snackbar/_stories/Snackbar.story.tsx +1 -1
- package/src/Snackbar/_stories/Snackbar.test.story.tsx +1 -1
- package/src/StatusIcon/_stories/StatusIcon.test.story.tsx +12 -4
- package/src/Stepper/Stepper.css +9 -12
- package/src/Stepper/Stepper.less +1 -1
- package/src/Sticky/Sticky.css +2 -2
- package/src/Switch/Switch.css +5 -4
- package/src/Table/Table.css +60 -57
- package/src/Tabs/Tabs.css +18 -14
- package/src/Tabs/Tabs.less +0 -1
- package/src/Tile/Tile.css +12 -12
- package/src/Tooltip/Tooltip.css +2 -2
- package/src/Typeahead/Typeahead.css +42 -54
- package/src/Typeahead/Typeahead.less +2 -3
- package/src/Upload/Upload.css +11 -10
- package/src/UploadInput/UploadButton/UploadButton.css +20 -19
- package/src/UploadInput/UploadInput.css +4 -4
- package/src/UploadInput/UploadItem/UploadItem.css +49 -49
- package/src/UploadInput/UploadItem/UploadItem.less +7 -6
- package/src/UploadInput/_stories/UploadInput.test.story.tsx +1 -1
- package/src/_deprecated/ActionButton/ActionButton.css +8 -6
- package/src/_deprecated/Alert/Alert.css +2 -2
- package/src/_deprecated/Avatar/Avatar.css +65 -65
- package/src/_deprecated/Avatar/Avatar.less +0 -1
- package/src/_deprecated/Badge/Badge.css +12 -14
- package/src/_deprecated/Badge/Badge.less +11 -18
- package/src/_deprecated/Card/Card.css +27 -18
- package/src/_deprecated/Card/Card.less +1 -2
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +7 -7
- package/src/_deprecated/CriticalBanner/_stories/CriticalCommsBanner.test.story.tsx +0 -16
- package/src/_deprecated/LegacyListItem/LegacyListItem.css +1 -1
- package/src/_deprecated/NavigationOption/NavigationOption.css +6 -19
- package/src/_deprecated/NavigationOption/NavigationOption.less +3 -4
- package/src/_deprecated/NavigationOptionsList/NavigationOptionsList.css +3 -8
- package/src/_deprecated/NavigationOptionsList/NavigationOptionsList.less +1 -3
- package/src/_deprecated/OverlayHeader/_stories/OverlayHeader.test.story.tsx +15 -0
- package/src/_deprecated/Select/Select.css +57 -104
- package/src/_deprecated/Select/Select.less +10 -11
- package/src/_deprecated/Summary/Summary.css +19 -30
- package/src/_deprecated/Summary/Summary.less +1 -8
- package/src/common/BaseCard/BaseCard.css +3 -7
- package/src/common/BaseCard/BaseCard.less +0 -5
- package/src/common/BottomSheet/BottomSheet.css +30 -18
- package/src/common/Circle/Circle.css +10 -10
- package/src/common/CloseButton/CloseButton.css +36 -36
- package/src/common/LiveRegion/LiveRegion.css +1 -1
- package/src/common/Option/Option.css +42 -44
- package/src/common/Option/Option.less +8 -10
- package/src/common/Panel/Panel.css +19 -11
- package/src/common/Panel/Panel.less +27 -9
- package/src/common/Panel/Panel.positionUtils.ts +79 -0
- package/src/common/Panel/Panel.test.tsx +40 -0
- package/src/common/Panel/Panel.tsx +13 -24
- package/src/common/Panel/_stories/Panel.rtl.test.story.tsx +110 -0
- package/src/common/PropsValues/position.ts +0 -50
- package/src/main.css +4370 -7983
- package/src/styles/less/accordion.css +27 -46
- package/src/styles/less/addons/_spacing-utilities.less +4 -4
- package/src/styles/less/alerts.css +56 -124
- package/src/styles/less/badge.css +20 -30
- package/src/styles/less/breadcrumbs.css +6 -4
- package/src/styles/less/button-groups.css +116 -254
- package/src/styles/less/buttons.css +50 -95
- package/src/styles/less/buttons.less +3 -11
- package/src/styles/less/chevron.css +3 -0
- package/src/styles/less/chevron.less +4 -0
- package/src/styles/less/circles.css +38 -76
- package/src/styles/less/close.css +1 -4
- package/src/styles/less/column-layout.css +38 -60
- package/src/styles/less/currency-flags.css +4 -17
- package/src/styles/less/decision.css +14 -12
- package/src/styles/less/dropdowns.css +59 -210
- package/src/styles/less/droppable.css +43 -38
- package/src/styles/less/flex.css +40 -136
- package/src/styles/less/footer.css +15 -14
- package/src/styles/less/forms/bootstrap-forms.css +180 -344
- package/src/styles/less/forms/checkbox-radio.css +29 -56
- package/src/styles/less/grid.css +383 -1430
- package/src/styles/less/input-groups.css +254 -542
- package/src/styles/less/link-callout.css +2 -8
- package/src/styles/less/list-group.css +57 -92
- package/src/styles/less/loaders.css +11 -11
- package/src/styles/less/media.css +10 -34
- package/src/styles/less/mixins/_logical-properties-IE-friendly.less +1 -0
- package/src/styles/less/mixins/_logical-properties-modern-browsers.less +80 -41
- package/src/styles/less/mixins/_logical-properties.less +3 -3
- package/src/styles/less/modals.css +49 -59
- package/src/styles/less/navbar.css +372 -812
- package/src/styles/less/navs.css +59 -124
- package/src/styles/less/neptune-addons.css +687 -1234
- package/src/styles/less/neptune-core.css +123 -229
- package/src/styles/less/neptune-social-media.css +9 -33
- package/src/styles/less/neptune.css +3060 -6498
- package/src/styles/less/panels.css +143 -243
- package/src/styles/less/popovers.css +114 -295
- package/src/styles/less/process.css +79 -86
- package/src/styles/less/process.less +13 -6
- package/src/styles/less/progress-bars.css +13 -19
- package/src/styles/less/select.css +21 -53
- package/src/styles/less/sequences.css +99 -219
- package/src/styles/less/table.css +48 -43
- package/src/styles/less/tick.css +14 -11
- package/src/styles/less/tick.less +7 -3
- package/src/styles/less/tooltip.css +49 -82
- package/src/styles/less/utilities.css +12 -40
- package/src/styles/less/wells.css +16 -16
|
@@ -28,6 +28,7 @@ const meta = {
|
|
|
28
28
|
action: { label: 'Verify now', onClick: fn() },
|
|
29
29
|
actionSecondary: undefined,
|
|
30
30
|
media: undefined,
|
|
31
|
+
animateEntry: true,
|
|
31
32
|
id: undefined,
|
|
32
33
|
className: undefined,
|
|
33
34
|
'data-testid': undefined,
|
|
@@ -47,6 +48,7 @@ const meta = {
|
|
|
47
48
|
table: { type: { summary: 'ReactNode' } },
|
|
48
49
|
},
|
|
49
50
|
expanded: { control: 'boolean' },
|
|
51
|
+
animateEntry: { control: 'boolean' },
|
|
50
52
|
media: {
|
|
51
53
|
control: false,
|
|
52
54
|
description: 'Replaces the default Status Icon with a custom image or AvatarView.',
|
|
@@ -131,12 +133,28 @@ const hiddenArgTypes = {
|
|
|
131
133
|
actionSecondary: { table: { disable: true } },
|
|
132
134
|
media: { table: { disable: true } },
|
|
133
135
|
expanded: { table: { disable: true } },
|
|
136
|
+
animateEntry: { table: { disable: true } },
|
|
134
137
|
onToggle: { table: { disable: true } },
|
|
135
138
|
id: { table: { disable: true } },
|
|
136
139
|
className: { table: { disable: true } },
|
|
137
140
|
'data-testid': { table: { disable: true } },
|
|
138
141
|
} as const;
|
|
139
142
|
|
|
143
|
+
const AnimatedEntryPreview = (args: CriticalBannerProps) => {
|
|
144
|
+
const [bannerInstance, setBannerInstance] = useState(0);
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<>
|
|
148
|
+
<CriticalBanner key={bannerInstance} {...args} />
|
|
149
|
+
<div className="p-t-3">
|
|
150
|
+
<Button block v2 onClick={() => setBannerInstance((current) => current + 1)}>
|
|
151
|
+
Replay
|
|
152
|
+
</Button>
|
|
153
|
+
</div>
|
|
154
|
+
</>
|
|
155
|
+
);
|
|
156
|
+
};
|
|
157
|
+
|
|
140
158
|
/** Renders children inside an iframe that inherits the parent page's stylesheets. */
|
|
141
159
|
function IframeContainer({ width, children }: { width: number; children: ReactNode }) {
|
|
142
160
|
const iframeRef = useRef<HTMLIFrameElement>(null);
|
|
@@ -585,6 +603,40 @@ export const MobileOverhang: Story = {
|
|
|
585
603
|
},
|
|
586
604
|
};
|
|
587
605
|
|
|
606
|
+
/** The banner waits 500ms, then reveals from above when it enters the page. */
|
|
607
|
+
export const AnimatedEntry: Story = {
|
|
608
|
+
args: {
|
|
609
|
+
title: 'Your account is restricted.',
|
|
610
|
+
description: 'Review your personal details to get your account active again.',
|
|
611
|
+
action: { label: 'Review details', onClick: fn() },
|
|
612
|
+
},
|
|
613
|
+
argTypes: hiddenArgTypes,
|
|
614
|
+
render: (args) => <AnimatedEntryPreview {...args} />,
|
|
615
|
+
parameters: {
|
|
616
|
+
layout: 'fullscreen',
|
|
617
|
+
docs: {
|
|
618
|
+
canvas: { sourceState: 'hidden' },
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
/** The banner can mount immediately without replaying its entry animation. */
|
|
624
|
+
export const WithoutEntryAnimation: Story = {
|
|
625
|
+
args: {
|
|
626
|
+
animateEntry: false,
|
|
627
|
+
title: 'Your account is restricted.',
|
|
628
|
+
description: 'Review your personal details to get your account active again.',
|
|
629
|
+
action: { label: 'Review details', onClick: fn() },
|
|
630
|
+
},
|
|
631
|
+
argTypes: hiddenArgTypes,
|
|
632
|
+
parameters: {
|
|
633
|
+
layout: 'fullscreen',
|
|
634
|
+
docs: {
|
|
635
|
+
canvas: { sourceState: 'hidden' },
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
};
|
|
639
|
+
|
|
588
640
|
/**
|
|
589
641
|
* The text container is capped at 480px for optimal readability, even though
|
|
590
642
|
* the banner itself stretches to the full available width.
|
|
@@ -22,6 +22,7 @@ const wait = async (ms: number) =>
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
const ANIMATION_DURATION = 200; // 150ms animation + 50ms buffer
|
|
25
|
+
const ENTRY_ANIMATION_DURATION = 950; // 500ms delay + 400ms animation + 50ms buffer
|
|
25
26
|
|
|
26
27
|
const longDescription =
|
|
27
28
|
'We have detected unusual activity on your account that does not match your typical usage patterns. To protect your funds and personal information, we have temporarily restricted access. Please verify your identity to restore full access to your account.';
|
|
@@ -151,7 +152,7 @@ export const MobileVariants: Story = {
|
|
|
151
152
|
...withVariantConfig(['mobile']),
|
|
152
153
|
};
|
|
153
154
|
|
|
154
|
-
/** Neutral background regression test with page content scrolled under the
|
|
155
|
+
/** Neutral background regression test with page content scrolled under the sticky banner. */
|
|
155
156
|
export const BackgroundIsNotTransparent: Story = {
|
|
156
157
|
args: {
|
|
157
158
|
sentiment: 'neutral',
|
|
@@ -198,6 +199,7 @@ export const BackgroundIsNotTransparent: Story = {
|
|
|
198
199
|
|
|
199
200
|
if (scrollContainer) {
|
|
200
201
|
scrollContainer.scrollTop = 250;
|
|
202
|
+
await wait(ENTRY_ANIMATION_DURATION);
|
|
201
203
|
}
|
|
202
204
|
},
|
|
203
205
|
...withVariantConfig(['mobile'], {
|
|
@@ -207,6 +209,25 @@ export const BackgroundIsNotTransparent: Story = {
|
|
|
207
209
|
}),
|
|
208
210
|
};
|
|
209
211
|
|
|
212
|
+
/** Mobile entry animation visual regression test. */
|
|
213
|
+
export const AnimatedEntryMobile: Story = {
|
|
214
|
+
render: function Render() {
|
|
215
|
+
return (
|
|
216
|
+
<CriticalBanner
|
|
217
|
+
sentiment="negative"
|
|
218
|
+
title="Your account is restricted."
|
|
219
|
+
description="Review your personal details to get your account active again."
|
|
220
|
+
action={{ label: 'Review details', onClick: fn() }}
|
|
221
|
+
/>
|
|
222
|
+
);
|
|
223
|
+
},
|
|
224
|
+
...withVariantConfig(['mobile'], {
|
|
225
|
+
parameters: {
|
|
226
|
+
chromatic: { pauseAnimationAtEnd: true },
|
|
227
|
+
},
|
|
228
|
+
}),
|
|
229
|
+
};
|
|
230
|
+
|
|
210
231
|
/**
|
|
211
232
|
* Tests keyboard navigation and interaction:
|
|
212
233
|
* - Tab focuses the first chevron toggle button
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
justify-content: center;
|
|
11
|
-
max-
|
|
12
|
-
max-
|
|
11
|
+
max-inline-size: calc(48px * 10);
|
|
12
|
+
max-inline-size: calc(var(--size-48) * 10);
|
|
13
13
|
}
|
|
14
14
|
.wds-info-prompt__content:has(.wds-info-prompt__title) {
|
|
15
15
|
justify-content: flex-start;
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
}
|
|
22
22
|
.wds-info-prompt__action {
|
|
23
23
|
align-self: flex-start;
|
|
24
|
-
margin-
|
|
24
|
+
margin-block-start: var(--Prompt-gap);
|
|
25
25
|
}
|
|
26
26
|
.wds-info-prompt__media svg {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
inline-size: 24px;
|
|
28
|
+
inline-size: var(--size-24);
|
|
29
|
+
block-size: 24px;
|
|
30
|
+
block-size: var(--size-24);
|
|
31
31
|
}
|
|
32
32
|
.wds-info-prompt .wds-prompt__media-wrapper {
|
|
33
33
|
padding: 0;
|
|
34
34
|
}
|
|
35
35
|
@media (max-width: 320px) {
|
|
36
36
|
.wds-info-prompt .wds-prompt__media-wrapper {
|
|
37
|
-
padding-
|
|
38
|
-
padding-
|
|
37
|
+
padding-block-start: 4px;
|
|
38
|
+
padding-block-start: var(--size-4);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
@media (max-width: 320px) {
|
|
42
42
|
.wds-info-prompt .wds-prompt__media-wrapper:has(.wds-info-prompt__media > .tw-icon) {
|
|
43
|
-
padding-
|
|
44
|
-
padding-
|
|
43
|
+
padding-block-start: 8px;
|
|
44
|
+
padding-block-start: var(--size-8);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
@media (max-width: 320px) {
|
|
48
48
|
.wds-info-prompt .wds-prompt__media-wrapper:has(+ .wds-info-prompt__content .wds-info-prompt__title:first-child) {
|
|
49
|
-
padding-
|
|
50
|
-
padding-
|
|
49
|
+
padding-block-start: 8px;
|
|
50
|
+
padding-block-start: var(--size-8);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
@media (max-width: 320px) {
|
|
54
54
|
.wds-info-prompt .wds-prompt__media-wrapper:has(+ .wds-info-prompt__content .wds-info-prompt__title:first-child):has(.wds-info-prompt__media > .tw-icon) {
|
|
55
|
-
padding-
|
|
56
|
-
padding-
|
|
55
|
+
padding-block-start: 12px;
|
|
56
|
+
padding-block-start: var(--size-12);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
background-color: var(--color-sentiment-background-surface-active);
|
|
21
21
|
}
|
|
22
22
|
.wds-inline-prompt--auto-width {
|
|
23
|
-
|
|
24
|
-
width: initial;
|
|
23
|
+
inline-size: unset;
|
|
25
24
|
}
|
|
26
25
|
.wds-inline-prompt--muted {
|
|
27
26
|
opacity: 0.93;
|
|
@@ -48,10 +47,10 @@
|
|
|
48
47
|
inset: 0;
|
|
49
48
|
}
|
|
50
49
|
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
inline-size: 16px;
|
|
51
|
+
inline-size: var(--size-16);
|
|
52
|
+
block-size: 16px;
|
|
53
|
+
block-size: var(--size-16);
|
|
55
54
|
}
|
|
56
55
|
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
57
56
|
stroke: currentColor;
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
gap: 16px;
|
|
6
6
|
gap: var(--Prompt-gap, var(--size-16));
|
|
7
7
|
word-wrap: break-word;
|
|
8
|
-
padding: 8px
|
|
9
|
-
padding: var(--Prompt-padding-y, var(--padding-x-small))
|
|
10
|
-
|
|
8
|
+
padding-block: 8px;
|
|
9
|
+
padding-block: var(--Prompt-padding-y, var(--padding-x-small));
|
|
10
|
+
padding-inline: 8px;
|
|
11
|
+
padding-inline: var(--Prompt-padding-x, var(--padding-x-small));
|
|
12
|
+
text-align: start;
|
|
11
13
|
word-break: break-word;
|
|
12
|
-
|
|
14
|
+
inline-size: 100%;
|
|
13
15
|
}
|
|
14
16
|
.wds-prompt__content-wrapper {
|
|
15
17
|
display: grid;
|
|
@@ -18,15 +20,15 @@
|
|
|
18
20
|
gap: 16px;
|
|
19
21
|
gap: var(--Prompt-gap, var(--size-16));
|
|
20
22
|
grid-template-columns: auto 1fr;
|
|
21
|
-
|
|
23
|
+
inline-size: 100%;
|
|
22
24
|
}
|
|
23
25
|
.wds-prompt__content-wrapper--with-dismiss {
|
|
24
26
|
grid-template-columns: auto 1fr auto;
|
|
25
27
|
}
|
|
26
28
|
.wds-prompt__media-wrapper {
|
|
27
29
|
align-self: flex-start;
|
|
28
|
-
padding-
|
|
29
|
-
padding-
|
|
30
|
+
padding-block-start: calc(4px - 1px);
|
|
31
|
+
padding-block-start: calc(var(--size-4) - 1px);
|
|
30
32
|
}
|
|
31
33
|
.wds-prompt__media-wrapper .tw-icon-tags,
|
|
32
34
|
.wds-prompt__media-wrapper .tw-icon-confetti {
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
@media (max-width: 599.98px) {
|
|
44
46
|
.wds-prompt__actions-wrapper {
|
|
45
47
|
grid-column: span 2;
|
|
46
|
-
|
|
48
|
+
inline-size: 100%;
|
|
47
49
|
}
|
|
48
50
|
.wds-prompt__content-wrapper--with-dismiss .wds-prompt__actions-wrapper {
|
|
49
51
|
grid-column: span 3;
|
package/src/Section/Section.css
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.np-section {
|
|
2
|
-
margin-
|
|
3
|
-
margin-
|
|
2
|
+
margin-block-start: 32px;
|
|
3
|
+
margin-block-start: var(--size-32);
|
|
4
4
|
}
|
|
5
5
|
.np-section--with-horizontal-padding {
|
|
6
|
-
padding-
|
|
7
|
-
padding-
|
|
8
|
-
padding-
|
|
9
|
-
padding-
|
|
6
|
+
padding-inline-end: 16px;
|
|
7
|
+
padding-inline-end: var(--space-content-horizontal);
|
|
8
|
+
padding-inline-start: 16px;
|
|
9
|
+
padding-inline-start: var(--space-content-horizontal);
|
|
10
10
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
padding: 4px;
|
|
10
10
|
padding: var(--size-4);
|
|
11
|
-
|
|
11
|
+
inline-size: 100%;
|
|
12
12
|
justify-content: center;
|
|
13
13
|
align-items: center;
|
|
14
14
|
background: rgba(134,167,189,0.10196);
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
.segmented-control__segments::after {
|
|
25
25
|
content: "";
|
|
26
26
|
position: absolute;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
inline-size: var(--segment-highlight-width);
|
|
28
|
+
inset-block-start: 4px;
|
|
29
|
+
inset-block-start: var(--size-4);
|
|
30
|
+
inset-block-end: 4px;
|
|
31
|
+
inset-block-end: var(--size-4);
|
|
32
|
+
inset-inline-start: var(--segment-highlight-x);
|
|
33
33
|
z-index: 0;
|
|
34
34
|
background: #ffffff;
|
|
35
35
|
background: var(--color-background-screen);
|
|
@@ -44,11 +44,14 @@
|
|
|
44
44
|
position: relative;
|
|
45
45
|
flex: 1 1 100%;
|
|
46
46
|
flex-flow: column;
|
|
47
|
-
padding: 8px
|
|
48
|
-
padding: var(--size-8)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
padding-block: 8px;
|
|
48
|
+
padding-block: var(--size-8);
|
|
49
|
+
padding-inline: 16px;
|
|
50
|
+
padding-inline: var(--size-16);
|
|
51
|
+
margin-block: 0 0;
|
|
52
|
+
margin-inline: 4px 0;
|
|
53
|
+
margin-inline: var(--size-4) 0;
|
|
54
|
+
min-inline-size: 0;
|
|
52
55
|
line-height: inherit;
|
|
53
56
|
align-items: center;
|
|
54
57
|
text-align: center;
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
color: var(--color-interactive-primary);
|
|
62
65
|
}
|
|
63
66
|
.segmented-control__segment:first-child {
|
|
64
|
-
margin-
|
|
67
|
+
margin-inline-start: 0;
|
|
65
68
|
}
|
|
66
69
|
.segmented-control__segment:hover {
|
|
67
70
|
background: rgba(0,0,0,0.10196);
|
|
@@ -73,8 +76,8 @@
|
|
|
73
76
|
pointer-events: none;
|
|
74
77
|
}
|
|
75
78
|
.segmented-control__button {
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
inline-size: 100%;
|
|
80
|
+
block-size: 100%;
|
|
78
81
|
background: none;
|
|
79
82
|
-webkit-appearance: none;
|
|
80
83
|
-moz-appearance: none;
|
|
@@ -14,33 +14,23 @@
|
|
|
14
14
|
}
|
|
15
15
|
.sliding-panel.sliding-panel--open-right,
|
|
16
16
|
.sliding-panel.sliding-panel--open-left {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
inset-block-start: 0;
|
|
18
|
+
inset-block-end: 0;
|
|
19
19
|
}
|
|
20
20
|
.sliding-panel.sliding-panel--open-right {
|
|
21
21
|
transform: translateX(100%) ;
|
|
22
|
-
|
|
22
|
+
inset-inline-end: 0;
|
|
23
23
|
}
|
|
24
24
|
[dir="rtl"] .sliding-panel.sliding-panel--open-right {
|
|
25
25
|
transform: translateX(-100%) ;
|
|
26
26
|
}
|
|
27
|
-
[dir="rtl"] .sliding-panel.sliding-panel--open-right {
|
|
28
|
-
left: 0;
|
|
29
|
-
right: auto;
|
|
30
|
-
right: initial;
|
|
31
|
-
}
|
|
32
27
|
.sliding-panel.sliding-panel--open-left {
|
|
33
28
|
transform: translateX(-100%) ;
|
|
34
|
-
|
|
29
|
+
inset-inline-start: 0;
|
|
35
30
|
}
|
|
36
31
|
[dir="rtl"] .sliding-panel.sliding-panel--open-left {
|
|
37
32
|
transform: translateX(100%) ;
|
|
38
33
|
}
|
|
39
|
-
[dir="rtl"] .sliding-panel.sliding-panel--open-left {
|
|
40
|
-
right: 0;
|
|
41
|
-
left: auto;
|
|
42
|
-
left: initial;
|
|
43
|
-
}
|
|
44
34
|
.sliding-panel.sliding-panel-enter-done.sliding-panel--open-right,
|
|
45
35
|
.sliding-panel.sliding-panel-enter-done.sliding-panel--open-left {
|
|
46
36
|
transform: translateX(0);
|
|
@@ -51,29 +41,17 @@
|
|
|
51
41
|
}
|
|
52
42
|
.sliding-panel.sliding-panel--open-top,
|
|
53
43
|
.sliding-panel.sliding-panel--open-bottom {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
[dir="rtl"] .sliding-panel.sliding-panel--open-top,
|
|
59
|
-
[dir="rtl"] .sliding-panel.sliding-panel--open-bottom {
|
|
60
|
-
left: 0;
|
|
61
|
-
right: auto;
|
|
62
|
-
right: initial;
|
|
63
|
-
}
|
|
64
|
-
[dir="rtl"] .sliding-panel.sliding-panel--open-top,
|
|
65
|
-
[dir="rtl"] .sliding-panel.sliding-panel--open-bottom {
|
|
66
|
-
right: 0;
|
|
67
|
-
left: auto;
|
|
68
|
-
left: initial;
|
|
44
|
+
inset-inline-end: 0;
|
|
45
|
+
inset-inline-start: 0;
|
|
46
|
+
inline-size: 100%;
|
|
69
47
|
}
|
|
70
48
|
.sliding-panel.sliding-panel--open-top {
|
|
71
49
|
transform: translateY(-100%);
|
|
72
|
-
|
|
50
|
+
inset-block-start: 0;
|
|
73
51
|
}
|
|
74
52
|
.sliding-panel.sliding-panel--open-bottom {
|
|
75
53
|
transform: translateY(100%);
|
|
76
|
-
|
|
54
|
+
inset-block-end: 0;
|
|
77
55
|
}
|
|
78
56
|
.sliding-panel.sliding-panel--border-top {
|
|
79
57
|
box-shadow: inset 0 -1px 0 0 #e2e6e8;
|
|
@@ -95,6 +73,10 @@
|
|
|
95
73
|
box-shadow: inset 1px 0 0 0 rgba(0,0,0,0.10196);
|
|
96
74
|
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
97
75
|
}
|
|
76
|
+
[dir="rtl"] .np-theme-personal .sliding-panel.sliding-panel--border-right {
|
|
77
|
+
box-shadow: inset -1px 0 0 0 rgba(0,0,0,0.10196);
|
|
78
|
+
box-shadow: inset -1px 0 0 0 var(--color-border-neutral);
|
|
79
|
+
}
|
|
98
80
|
.np-theme-personal .sliding-panel.sliding-panel--border-bottom {
|
|
99
81
|
box-shadow: inset 0 1px 0 0 rgba(0,0,0,0.10196);
|
|
100
82
|
box-shadow: inset 0 1px 0 0 var(--color-border-neutral);
|
|
@@ -103,3 +85,7 @@
|
|
|
103
85
|
box-shadow: inset -1px 0 0 0 rgba(0,0,0,0.10196);
|
|
104
86
|
box-shadow: inset -1px 0 0 0 var(--color-border-neutral);
|
|
105
87
|
}
|
|
88
|
+
[dir="rtl"] .np-theme-personal .sliding-panel.sliding-panel--border-left {
|
|
89
|
+
box-shadow: inset 1px 0 0 0 rgba(0,0,0,0.10196);
|
|
90
|
+
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
91
|
+
}
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
&.sliding-panel--open-right {
|
|
23
23
|
.translateX(100%);
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
right: 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&.sliding-panel--open-left {
|
|
29
29
|
.translateX(-100%);
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
left: 0;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&.sliding-panel-enter-done {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
|
|
46
46
|
&.sliding-panel--open-top,
|
|
47
47
|
&.sliding-panel--open-bottom {
|
|
48
|
-
|
|
48
|
+
right: 0;
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
left: 0;
|
|
51
51
|
|
|
52
52
|
width: 100%;
|
|
53
53
|
}
|
|
@@ -85,6 +85,10 @@
|
|
|
85
85
|
|
|
86
86
|
&.sliding-panel--border-right {
|
|
87
87
|
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
88
|
+
|
|
89
|
+
[dir="rtl"] & {
|
|
90
|
+
box-shadow: inset -1px 0 0 0 var(--color-border-neutral);
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
&.sliding-panel--border-bottom {
|
|
@@ -93,6 +97,10 @@
|
|
|
93
97
|
|
|
94
98
|
&.sliding-panel--border-left {
|
|
95
99
|
box-shadow: inset -1px 0 0 0 var(--color-border-neutral);
|
|
100
|
+
|
|
101
|
+
[dir="rtl"] & {
|
|
102
|
+
box-shadow: inset 1px 0 0 0 var(--color-border-neutral);
|
|
103
|
+
}
|
|
96
104
|
}
|
|
97
105
|
}
|
|
98
106
|
}
|
|
@@ -11,14 +11,15 @@ export default {
|
|
|
11
11
|
|
|
12
12
|
type Story = StoryObj<typeof SlidingPanel>;
|
|
13
13
|
|
|
14
|
-
const iframeDiff = withRTLDiff({ renderAs: 'iframe' });
|
|
14
|
+
const iframeDiff = withRTLDiff({ renderAs: 'iframe', width: 'stretch' });
|
|
15
15
|
|
|
16
16
|
const containerStyle: React.CSSProperties = {
|
|
17
17
|
position: 'relative',
|
|
18
|
-
width:
|
|
18
|
+
width: '100%',
|
|
19
19
|
height: 120,
|
|
20
20
|
overflow: 'hidden',
|
|
21
|
-
border: '1px
|
|
21
|
+
border: '1px solid #f5f5f5',
|
|
22
|
+
background: '#f5f5f5',
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
const panelContentStyle: React.CSSProperties = {
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
.snackbar {
|
|
2
2
|
text-align: center;
|
|
3
3
|
position: fixed;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
inset-block-end: 0;
|
|
5
|
+
inset-inline-start: 0;
|
|
6
|
+
inset-inline-end: 0;
|
|
7
7
|
z-index: 1060;
|
|
8
8
|
}
|
|
9
|
-
[dir="rtl"] .snackbar {
|
|
10
|
-
right: 0;
|
|
11
|
-
left: auto;
|
|
12
|
-
left: initial;
|
|
13
|
-
}
|
|
14
|
-
[dir="rtl"] .snackbar {
|
|
15
|
-
left: 0;
|
|
16
|
-
right: 0;
|
|
17
|
-
}
|
|
18
9
|
.snackbar__text {
|
|
19
10
|
background: #37517e;
|
|
20
11
|
color: #ffffff;
|
|
@@ -23,20 +14,20 @@
|
|
|
23
14
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
24
15
|
align-items: center;
|
|
25
16
|
justify-content: space-between;
|
|
26
|
-
text-align:
|
|
17
|
+
text-align: start;
|
|
27
18
|
font-size: 0.875rem;
|
|
28
19
|
font-size: var(--font-size-14);
|
|
29
|
-
margin: 0
|
|
30
|
-
margin:
|
|
31
|
-
|
|
32
|
-
padding:
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
margin-block: 0;
|
|
21
|
+
margin-inline: 16px;
|
|
22
|
+
margin-inline: var(--size-16);
|
|
23
|
+
padding-block: 8px;
|
|
24
|
+
padding-block: var(--size-8);
|
|
25
|
+
padding-inline: 16px;
|
|
26
|
+
padding-inline: var(--size-16);
|
|
27
|
+
inline-size: calc(100% - 32px);
|
|
28
|
+
inline-size: calc(100% - var(--size-32));
|
|
35
29
|
transition: 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
36
30
|
}
|
|
37
|
-
[dir="rtl"] .snackbar__text {
|
|
38
|
-
text-align: right;
|
|
39
|
-
}
|
|
40
31
|
.np-theme-personal .snackbar__text {
|
|
41
32
|
box-shadow: 0 2px 4px 0 rgba(69, 71, 69, 0.35);
|
|
42
33
|
position: relative;
|
|
@@ -48,12 +39,12 @@
|
|
|
48
39
|
.np-theme-personal .snackbar__text::after {
|
|
49
40
|
display: block;
|
|
50
41
|
border-radius: inherit;
|
|
51
|
-
|
|
52
|
-
|
|
42
|
+
block-size: 100%;
|
|
43
|
+
inline-size: 100%;
|
|
53
44
|
content: "";
|
|
54
45
|
position: absolute;
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
inset-inline-start: 0;
|
|
47
|
+
inset-block-start: 0;
|
|
57
48
|
z-index: -1;
|
|
58
49
|
background-color: rgba(134,167,189,0.10196);
|
|
59
50
|
background-color: var(--color-background-neutral);
|
|
@@ -64,19 +55,14 @@
|
|
|
64
55
|
}
|
|
65
56
|
@media (min-width: 600px) {
|
|
66
57
|
.snackbar__text {
|
|
67
|
-
|
|
68
|
-
max-
|
|
58
|
+
inline-size: auto;
|
|
59
|
+
max-inline-size: 600px;
|
|
69
60
|
}
|
|
70
61
|
}
|
|
71
62
|
.snackbar__text__action {
|
|
72
63
|
flex-shrink: 0;
|
|
73
|
-
margin-
|
|
74
|
-
margin-
|
|
75
|
-
}
|
|
76
|
-
[dir="rtl"] .snackbar__text__action {
|
|
77
|
-
margin-right: 16px;
|
|
78
|
-
margin-right: var(--size-16);
|
|
79
|
-
margin-left: 0;
|
|
64
|
+
margin-inline-start: 16px;
|
|
65
|
+
margin-inline-start: var(--size-16);
|
|
80
66
|
}
|
|
81
67
|
.snackbar__text-container-enter,
|
|
82
68
|
.snackbar__text-container-exit {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
@import (reference) "./../styles/variables/zindex.less";
|
|
2
2
|
@import (reference) "./../styles/variables/neptune-tokens.less";
|
|
3
|
-
@import (reference) "./../styles/less/mixins/_logical-properties.less";
|
|
4
3
|
|
|
5
4
|
.snackbar {
|
|
6
5
|
text-align: center;
|
|
7
6
|
position: fixed;
|
|
8
7
|
bottom: 0;
|
|
9
|
-
|
|
8
|
+
left: 0;
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
right: 0;
|
|
12
11
|
|
|
13
12
|
z-index: @zindex-mobile-nav;
|
|
14
13
|
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
|
|
21
20
|
align-items: center;
|
|
22
21
|
justify-content: space-between;
|
|
23
|
-
|
|
22
|
+
text-align: left;
|
|
24
23
|
|
|
25
24
|
font-size: var(--font-size-14);
|
|
26
25
|
margin: 0 var(--size-16);
|
|
@@ -62,11 +61,6 @@
|
|
|
62
61
|
&__action {
|
|
63
62
|
flex-shrink: 0;
|
|
64
63
|
margin-left: var(--size-16);
|
|
65
|
-
|
|
66
|
-
[dir="rtl"] & {
|
|
67
|
-
margin-right: var(--size-16);
|
|
68
|
-
margin-left: 0;
|
|
69
|
-
}
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
&-container-enter,
|