@transferwise/components 46.165.4 → 46.166.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/Body/Body.js +2 -2
- package/build/Body/Body.js.map +1 -1
- package/build/Body/Body.mjs +2 -2
- package/build/Body/Body.mjs.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
- package/build/Calendar/TableLink/TableLink.js +1 -1
- package/build/Calendar/TableLink/TableLink.js.map +1 -1
- package/build/Calendar/TableLink/TableLink.mjs +1 -1
- package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
- package/build/Display/Display.js +3 -1
- package/build/Display/Display.js.map +1 -1
- package/build/Display/Display.mjs +3 -1
- package/build/Display/Display.mjs.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
- package/build/Label/Label.js +1 -1
- package/build/Label/Label.js.map +1 -1
- package/build/Label/Label.mjs +1 -1
- package/build/Label/Label.mjs.map +1 -1
- package/build/Stepper/Stepper.js +3 -2
- package/build/Stepper/Stepper.js.map +1 -1
- package/build/Stepper/Stepper.mjs +3 -2
- package/build/Stepper/Stepper.mjs.map +1 -1
- package/build/Table/Header/TableHeader.js +1 -1
- package/build/Table/Header/TableHeader.js.map +1 -1
- package/build/Table/Header/TableHeader.mjs +1 -1
- package/build/Table/Header/TableHeader.mjs.map +1 -1
- package/build/Tabs/Tab/Tab.js +1 -1
- package/build/Tabs/Tab/Tab.js.map +1 -1
- package/build/Tabs/Tab/Tab.mjs +1 -1
- package/build/Tabs/Tab/Tab.mjs.map +1 -1
- package/build/Tag/Tag.js +1 -1
- package/build/Tag/Tag.js.map +1 -1
- package/build/Tag/Tag.mjs +1 -1
- package/build/Tag/Tag.mjs.map +1 -1
- package/build/Title/Title.js +2 -2
- package/build/Title/Title.js.map +1 -1
- package/build/Title/Title.mjs +2 -2
- package/build/Title/Title.mjs.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js +5 -5
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs +5 -5
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
- package/build/_deprecated/Avatar/Avatar.js +1 -1
- package/build/_deprecated/Avatar/Avatar.js.map +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
- package/build/_deprecated/Select/Select.js +2 -2
- package/build/_deprecated/Select/Select.js.map +1 -1
- package/build/_deprecated/Select/Select.mjs +2 -2
- package/build/_deprecated/Select/Select.mjs.map +1 -1
- package/build/common/PropsValues/typography.js +6 -0
- package/build/common/PropsValues/typography.js.map +1 -1
- package/build/common/PropsValues/typography.mjs +6 -0
- package/build/common/PropsValues/typography.mjs.map +1 -1
- package/build/main.css +9097 -1964
- package/build/styles/Accordion/Accordion.css +7 -6
- package/build/styles/Body/Body.css +2 -1
- package/build/styles/Calendar/Calendar.css +5 -4
- package/build/styles/Calendar/TableLink/TableLink.css +5 -4
- package/build/styles/Chips/Chip/Chip.css +5 -3
- package/build/styles/Decision/Decision.css +4 -3
- package/build/styles/Emphasis/Emphasis.css +1 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
- package/build/styles/Inputs/Input/Input.css +98 -24
- package/build/styles/Inputs/TextArea/TextArea.css +98 -24
- package/build/styles/Label/Label.css +3 -0
- package/build/styles/Markup/Markup.css +2 -2
- package/build/styles/MoneyInput/MoneyInput.css +9 -6
- package/build/styles/Nudge/Nudge.css +3 -3
- package/build/styles/Popover/Popover.css +30 -7
- package/build/styles/ProgressBar/ProgressBar.css +3 -2
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
- package/build/styles/Snackbar/Snackbar.css +1 -1
- package/build/styles/Table/Table.css +18 -8
- package/build/styles/Tabs/Tabs.css +3 -3
- package/build/styles/Tag/Tag.css +1 -1
- package/build/styles/Tile/Tile.css +4 -3
- package/build/styles/Typeahead/Typeahead.css +12 -29
- package/build/styles/UploadInput/UploadInput.css +1 -1
- package/build/styles/_deprecated/ActionButton/ActionButton.css +3 -4
- package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/build/styles/_deprecated/Select/Select.css +49 -14
- package/build/styles/_deprecated/Summary/Summary.css +2 -2
- package/build/styles/common/Circle/Circle.css +1 -1
- package/build/styles/common/Option/Option.css +4 -4
- package/build/styles/css/accordion.css +53 -11
- package/build/styles/css/badge.css +2 -2
- package/build/styles/css/button-groups.css +29 -6
- package/build/styles/css/buttons.css +35 -11
- package/build/styles/css/decision.css +53 -11
- package/build/styles/css/dropdowns.css +65 -18
- package/build/styles/css/droppable.css +28 -6
- package/build/styles/css/footer.css +41 -10
- package/build/styles/css/input-groups.css +249 -117
- package/build/styles/css/list-group.css +28 -8
- package/build/styles/css/modals.css +1 -1
- package/build/styles/css/navbar.css +92 -45
- package/build/styles/css/navs.css +8 -8
- package/build/styles/css/neptune-addons.css +15 -0
- package/build/styles/css/neptune-core.css +6230 -525
- package/build/styles/css/neptune.css +8790 -1768
- package/build/styles/css/panels.css +2 -2
- package/build/styles/css/popovers.css +64 -20
- package/build/styles/css/progress-bars.css +2 -2
- package/build/styles/css/sequences.css +14 -9
- package/build/styles/css/table.css +7 -7
- package/build/styles/css/tooltip.css +28 -6
- package/build/styles/less/legacy-variables.less +3 -3
- package/build/styles/less/neptune-tokens.less +0 -48
- package/build/styles/main.css +9097 -1964
- package/build/styles/props/neptune-tokens.css +805 -3
- package/build/styles/styles/less/accordion.css +53 -11
- package/build/styles/styles/less/badge.css +2 -2
- package/build/styles/styles/less/button-groups.css +29 -6
- package/build/styles/styles/less/buttons.css +35 -11
- package/build/styles/styles/less/decision.css +53 -11
- package/build/styles/styles/less/dropdowns.css +65 -18
- package/build/styles/styles/less/droppable.css +28 -6
- package/build/styles/styles/less/footer.css +41 -10
- package/build/styles/styles/less/forms/bootstrap-forms.css +153 -100
- package/build/styles/styles/less/forms/checkbox-radio.css +3 -3
- package/build/styles/styles/less/input-groups.css +249 -117
- package/build/styles/styles/less/list-group.css +28 -8
- package/build/styles/styles/less/modals.css +1 -1
- package/build/styles/styles/less/navbar.css +92 -45
- package/build/styles/styles/less/navs.css +8 -8
- package/build/styles/styles/less/neptune-addons.css +15 -0
- package/build/styles/styles/less/neptune-core.css +6230 -525
- package/build/styles/styles/less/neptune.css +8790 -1768
- package/build/styles/styles/less/panels.css +2 -2
- package/build/styles/styles/less/popovers.css +64 -20
- package/build/styles/styles/less/progress-bars.css +2 -2
- package/build/styles/styles/less/sequences.css +14 -9
- package/build/styles/styles/less/table.css +7 -7
- package/build/styles/styles/less/tooltip.css +28 -6
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/Body/Body.d.ts.map +1 -1
- package/build/types/Display/Display.d.ts.map +1 -1
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +1 -1
- package/build/types/Inputs/SelectInput/Popover/SelectInputPopover.d.ts.map +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/Stepper/Stepper.d.ts.map +1 -1
- package/build/types/Tabs/Tab/Tab.d.ts.map +1 -1
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts.map +1 -1
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts.map +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/build/types/_deprecated/Select/Select.d.ts.map +1 -1
- package/build/types/common/PropsValues/typography.d.ts +13 -1
- package/build/types/common/PropsValues/typography.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/Accordion/Accordion.css +7 -6
- package/src/Accordion/Accordion.less +7 -6
- package/src/Body/Body.css +2 -1
- package/src/Body/Body.less +2 -1
- package/src/Body/Body.test.tsx +13 -4
- package/src/Body/Body.tsx +4 -3
- package/src/Body/_stories/Body.test.story.tsx +42 -0
- package/src/Button/_stories/Button.test.story.tsx +1 -0
- package/src/Calendar/Calendar.css +5 -4
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.css +5 -4
- package/src/Calendar/TableLink/TableLink.less +5 -4
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Calendar/_stories/Calendar.test.story.tsx +34 -0
- package/src/Chips/Chip/Chip.css +5 -3
- package/src/Chips/Chip/Chip.less +3 -2
- package/src/CircularButton/_stories/CircularButton.story.tsx +6 -16
- package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +46 -0
- package/src/DateInput/_stories/DateInput.story.tsx +1 -0
- package/src/Decision/Decision.css +4 -3
- package/src/Decision/Decision.less +4 -3
- package/src/Decision/_stories/Decision.test.story.tsx +1 -0
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +1 -1
- package/src/Display/Display.test.tsx +43 -0
- package/src/Display/Display.tsx +11 -1
- package/src/Display/_stories/Display.story.tsx +36 -21
- package/src/Display/_stories/Display.test.story.tsx +108 -0
- package/src/Emphasis/Emphasis.css +1 -1
- package/src/Emphasis/Emphasis.less +1 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +2 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +1 -4
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
- package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +1 -0
- package/src/Field/_stories/Field.test.story.tsx +1 -0
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Header/_stories/Header.test.story.tsx +1 -1
- package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.test.story.tsx +1 -0
- package/src/Inputs/Input/Input.css +98 -24
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +1 -0
- package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +4 -2
- package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
- package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
- package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +6 -2
- package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +1 -0
- package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +98 -24
- package/src/Inputs/TextArea/_stories/TextArea.test.story.tsx +1 -0
- package/src/Inputs/_common.less +16 -10
- package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +2 -1
- package/src/Label/Label.css +3 -0
- package/src/Label/Label.less +8 -0
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_stories/Label.test.story.tsx +1 -0
- package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +1 -6
- package/src/Markup/Markup.css +2 -2
- package/src/Markup/Markup.less +2 -2
- package/src/MoneyInput/MoneyInput.css +9 -6
- package/src/MoneyInput/MoneyInput.less +10 -7
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +3 -1
- package/src/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +1 -1
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +30 -7
- package/src/Popover/Popover.less +2 -2
- package/src/ProgressBar/ProgressBar.css +3 -2
- package/src/ProgressBar/ProgressBar.less +12 -11
- package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +1 -0
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +1 -0
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +1 -0
- package/src/Prompt/InfoPrompt/_stories/InfoPrompt.test.story.tsx +1 -0
- package/src/Prompt/InlinePrompt/_stories/InlinePrompt.test.story.tsx +1 -0
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +2 -1
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
- package/src/Snackbar/Snackbar.css +1 -1
- package/src/Snackbar/Snackbar.less +1 -1
- package/src/Stepper/Stepper.tsx +4 -2
- package/src/Table/Header/TableHeader.tsx +1 -1
- package/src/Table/StatusText/TableStatusText.test.tsx +20 -5
- package/src/Table/Table.css +18 -8
- package/src/Table/Table.less +20 -9
- package/src/Table/_stories/Table.test.story.tsx +24 -13
- package/src/Tabs/Tab/Tab.tsx +11 -5
- package/src/Tabs/Tabs.css +3 -3
- package/src/Tabs/Tabs.less +3 -3
- package/src/Tabs/_stories/Tabs.test.story.tsx +1 -1
- package/src/Tag/Tag.css +1 -1
- package/src/Tag/Tag.less +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/Tag/_stories/Tag.story.tsx +1 -1
- package/src/TextareaWithDisplayFormat/_stories/TextareaWithDisplayFormat.test.story.tsx +1 -0
- package/src/Tile/Tile.css +4 -3
- package/src/Tile/Tile.less +4 -3
- package/src/Title/Title.test.tsx +22 -3
- package/src/Title/Title.tsx +2 -2
- package/src/Typeahead/Typeahead.css +12 -29
- package/src/Typeahead/Typeahead.less +11 -33
- package/src/Typeahead/TypeaheadInput/TypeaheadInput.tsx +5 -5
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +1 -1
- package/src/Typeahead/_stories/Typeahead.test.story.tsx +65 -0
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +4 -2
- package/src/Upload/_stories/Upload.rtl.test.story.tsx +1 -0
- package/src/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +7 -4
- package/src/UploadInput/_stories/UploadInput.test.story.tsx +1 -0
- package/src/_deprecated/ActionButton/ActionButton.css +3 -4
- package/src/_deprecated/ActionButton/ActionButton.less +4 -5
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- package/src/_deprecated/Avatar/Avatar.css +2 -2
- package/src/_deprecated/Avatar/Avatar.less +2 -2
- package/src/_deprecated/Avatar/Avatar.tsx +1 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +49 -14
- package/src/_deprecated/Select/Select.less +14 -10
- package/src/_deprecated/Select/Select.test.tsx +16 -0
- package/src/_deprecated/Select/Select.tsx +6 -1
- package/src/_deprecated/Summary/Summary.css +2 -2
- package/src/_deprecated/Summary/Summary.less +2 -2
- package/src/common/Circle/Circle.css +1 -1
- package/src/common/Circle/Circle.less +1 -1
- package/src/common/Option/Option.css +4 -4
- package/src/common/Option/Option.less +4 -4
- package/src/common/PropsValues/typography.ts +20 -1
- package/src/main.css +9097 -1964
- package/src/main.less +3 -2
- package/src/styles/less/accordion.css +53 -11
- package/src/styles/less/addons/_background-utilities.less +5 -0
- package/src/styles/less/badge.css +2 -2
- package/src/styles/less/badge.less +2 -2
- package/src/styles/less/button-groups.css +29 -6
- package/src/styles/less/button-groups.less +3 -2
- package/src/styles/less/buttons.css +35 -11
- package/src/styles/less/buttons.less +7 -7
- package/src/styles/less/core/_fonts.less +7 -75
- package/src/styles/less/core/_scaffolding.less +4 -4
- package/src/styles/less/core/_typography-utilities.less +3 -3
- package/src/styles/less/core/_typography.less +91 -236
- package/src/styles/less/core/fonts/_fonts-ar.less +86 -0
- package/src/styles/less/core/fonts/_fonts-base.less +99 -0
- package/src/styles/less/core/fonts/_fonts-he.less +8 -0
- package/src/styles/less/core/fonts/_fonts-ja.less +4247 -0
- package/src/styles/less/core/fonts/_fonts-ko.less +1079 -0
- package/src/styles/less/core/fonts/_fonts-th.less +8 -0
- package/src/styles/less/core/fonts/_fonts-zh.less +872 -0
- package/src/styles/less/decision.css +53 -11
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +65 -18
- package/src/styles/less/dropdowns.less +8 -7
- package/src/styles/less/droppable.css +28 -6
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +41 -10
- package/src/styles/less/footer.less +4 -3
- package/src/styles/less/forms/bootstrap-forms.css +153 -100
- package/src/styles/less/forms/bootstrap-forms.less +85 -72
- package/src/styles/less/forms/checkbox-radio.css +3 -3
- package/src/styles/less/forms/checkbox-radio.less +3 -3
- package/src/styles/less/input-groups.css +249 -117
- package/src/styles/less/input-groups.less +23 -9
- package/src/styles/less/list-group.css +28 -8
- package/src/styles/less/list-group.less +8 -5
- package/src/styles/less/mixins/_reset-text.less +1 -1
- package/src/styles/less/mixins/_text-emphasis.less +7 -1
- package/src/styles/less/modals.css +1 -1
- package/src/styles/less/modals.less +1 -1
- package/src/styles/less/navbar.css +92 -45
- package/src/styles/less/navbar.less +19 -19
- package/src/styles/less/navs.css +8 -8
- package/src/styles/less/navs.less +8 -8
- package/src/styles/less/neptune-addons.css +15 -0
- package/src/styles/less/neptune-core.css +6230 -525
- package/src/styles/less/neptune.bundle.less +4 -0
- package/src/styles/less/neptune.css +8790 -1768
- package/src/styles/less/panels.css +2 -2
- package/src/styles/less/panels.less +2 -2
- package/src/styles/less/popovers.css +64 -20
- package/src/styles/less/popovers.less +7 -7
- package/src/styles/less/progress-bars.css +2 -2
- package/src/styles/less/progress-bars.less +2 -2
- package/src/styles/less/sequences.css +14 -9
- package/src/styles/less/sequences.less +15 -10
- package/src/styles/less/table.css +7 -7
- package/src/styles/less/table.less +7 -7
- package/src/styles/less/tooltip.css +28 -6
- package/src/styles/less/tooltip.less +1 -1
- package/src/styles/variables/legacy-variables.less +3 -3
- 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/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-cyrillic-ext-900-normal.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/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
|
@@ -35,13 +35,6 @@
|
|
|
35
35
|
&--multiple {
|
|
36
36
|
.np-chip {
|
|
37
37
|
margin-bottom: auto;
|
|
38
|
-
animation-name: slide;
|
|
39
|
-
animation-duration: @animation-duration;
|
|
40
|
-
animation-timing-function: @animation-timing-function;
|
|
41
|
-
|
|
42
|
-
&:first-child {
|
|
43
|
-
animation-name: slideFirst;
|
|
44
|
-
}
|
|
45
38
|
|
|
46
39
|
&-remove {
|
|
47
40
|
animation-name: fadeIn;
|
|
@@ -55,7 +48,11 @@
|
|
|
55
48
|
min-height: auto;
|
|
56
49
|
padding-top: 0;
|
|
57
50
|
padding-bottom: 0;
|
|
58
|
-
overflow:
|
|
51
|
+
overflow: visible;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.typeahead__input-container--scrollable {
|
|
55
|
+
overflow-y: auto;
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
.typeahead__input {
|
|
@@ -98,14 +95,14 @@
|
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
.typeahead__input {
|
|
101
|
-
margin-bottom: calc(-1 * var(--size-8)
|
|
98
|
+
margin-bottom: calc(-1 * var(--size-8));
|
|
102
99
|
margin-left: var(--size-4);
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
.typeahead__input-wrapper {
|
|
106
103
|
&::after {
|
|
107
104
|
content: "";
|
|
108
|
-
height:
|
|
105
|
+
height: var(--size-8);
|
|
109
106
|
width: 100%;
|
|
110
107
|
}
|
|
111
108
|
}
|
|
@@ -165,7 +162,7 @@
|
|
|
165
162
|
}
|
|
166
163
|
|
|
167
164
|
.typeahead__input {
|
|
168
|
-
padding-top:
|
|
165
|
+
padding-top: var(--size-8);
|
|
169
166
|
}
|
|
170
167
|
|
|
171
168
|
.typeahead__input-wrapper {
|
|
@@ -183,26 +180,6 @@
|
|
|
183
180
|
}
|
|
184
181
|
}
|
|
185
182
|
|
|
186
|
-
@keyframes slide {
|
|
187
|
-
from {
|
|
188
|
-
transform: translateX(-12px);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
to {
|
|
192
|
-
transform: none;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
@keyframes slideFirst {
|
|
197
|
-
from {
|
|
198
|
-
transform: translateX(-4px);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
to {
|
|
202
|
-
transform: none;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
183
|
@keyframes fadeIn {
|
|
207
184
|
from {
|
|
208
185
|
opacity: 0;
|
|
@@ -229,10 +206,11 @@
|
|
|
229
206
|
color: var(--color-interactive-secondary);
|
|
230
207
|
}
|
|
231
208
|
.np-chip {
|
|
232
|
-
margin-top:
|
|
209
|
+
margin-top: var(--size-8);
|
|
233
210
|
}
|
|
234
211
|
.np-chip--removable {
|
|
235
|
-
.np-text-body-default-bold
|
|
212
|
+
.np-text-body-default-bold,
|
|
213
|
+
.wds-text-body-default-bold {
|
|
236
214
|
padding-right: var(--size-16);
|
|
237
215
|
@media (--screen-400-zoom) {
|
|
238
216
|
padding-right: var(--size-32);
|
|
@@ -65,10 +65,8 @@ export default class TypeaheadInput<T> extends Component<
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
recalculateWidth = () => {
|
|
68
|
-
|
|
69
|
-
this.
|
|
70
|
-
inputWidth: Math.max(DEFAULT_INPUT_MIN_WIDTH, this.sizerRef.current?.scrollWidth ?? 0 + 10),
|
|
71
|
-
});
|
|
68
|
+
this.setState({
|
|
69
|
+
inputWidth: Math.max(DEFAULT_INPUT_MIN_WIDTH, (this.sizerRef.current?.scrollWidth ?? 0) + 10),
|
|
72
70
|
});
|
|
73
71
|
};
|
|
74
72
|
|
|
@@ -131,7 +129,9 @@ export default class TypeaheadInput<T> extends Component<
|
|
|
131
129
|
|
|
132
130
|
return multiple ? (
|
|
133
131
|
<div
|
|
134
|
-
className=
|
|
132
|
+
className={clsx('form-control typeahead__input-container', {
|
|
133
|
+
'typeahead__input-container--scrollable': maxHeight != null,
|
|
134
|
+
})}
|
|
135
135
|
style={{ maxHeight }}
|
|
136
136
|
onClick={() => {
|
|
137
137
|
this.inputRef.current?.focus();
|
|
@@ -30,10 +30,10 @@ const Option = forwardRef<HTMLLIElement, TypeaheadOptionProps<any>>((props, ref)
|
|
|
30
30
|
>
|
|
31
31
|
<a className="dropdown-item" href="#" tabIndex={-1} onClick={onClick}>
|
|
32
32
|
<Highlight value={label} query={query} />
|
|
33
|
-
{note && <span className="np-text-body-default m-l-1">{note}</span>}
|
|
33
|
+
{note && <span className="np-text-body-default wds-text-body-default m-l-1">{note}</span>}
|
|
34
34
|
{secondary && (
|
|
35
35
|
<Highlight
|
|
36
|
-
className="np-text-body-default text-ellipsis"
|
|
36
|
+
className="np-text-body-default wds-text-body-default text-ellipsis"
|
|
37
37
|
value={secondary}
|
|
38
38
|
query={query}
|
|
39
39
|
/>
|
|
@@ -87,7 +87,7 @@ export const TriggerVariants: Story = {
|
|
|
87
87
|
</>
|
|
88
88
|
);
|
|
89
89
|
},
|
|
90
|
-
...withRTLDiff({ width: '80%', i18n: localisedStrings }),
|
|
90
|
+
...withRTLDiff({ fixedRows: { heights: 'auto' }, width: '80%', i18n: localisedStrings }),
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
export const OpenDropdown: Story = {
|
|
@@ -112,3 +112,68 @@ export const AutoFocusInModal: Story = {
|
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
};
|
|
115
|
+
|
|
116
|
+
const testEmails = [
|
|
117
|
+
{ label: 'alex@example.com' },
|
|
118
|
+
{ label: 'bruno.silva@example.com' },
|
|
119
|
+
{ label: 'chen@example.com' },
|
|
120
|
+
{ label: 'dana.khan@example.com' },
|
|
121
|
+
{ label: 'emeka@example.com' },
|
|
122
|
+
];
|
|
123
|
+
|
|
124
|
+
export const Chips: Story = {
|
|
125
|
+
render: () => (
|
|
126
|
+
<div className="d-flex flex-column">
|
|
127
|
+
<Field id="typeahead-chips-one-row" label="One row">
|
|
128
|
+
<Typeahead
|
|
129
|
+
id="typeahead-chips-one-row"
|
|
130
|
+
name="typeahead-chips-one-row"
|
|
131
|
+
multiple
|
|
132
|
+
allowNew
|
|
133
|
+
showSuggestions={false}
|
|
134
|
+
initialValue={testEmails.slice(0, 2)}
|
|
135
|
+
options={[]}
|
|
136
|
+
onChange={() => {}}
|
|
137
|
+
/>
|
|
138
|
+
</Field>
|
|
139
|
+
<Field id="typeahead-chips-wrapped" label="Wrapped over several rows">
|
|
140
|
+
<Typeahead
|
|
141
|
+
id="typeahead-chips-wrapped"
|
|
142
|
+
name="typeahead-chips-wrapped"
|
|
143
|
+
multiple
|
|
144
|
+
allowNew
|
|
145
|
+
showSuggestions={false}
|
|
146
|
+
initialValue={testEmails}
|
|
147
|
+
options={[]}
|
|
148
|
+
onChange={() => {}}
|
|
149
|
+
/>
|
|
150
|
+
</Field>
|
|
151
|
+
<Field id="typeahead-chips-capped" label="Capped with maxHeight">
|
|
152
|
+
<Typeahead
|
|
153
|
+
id="typeahead-chips-capped"
|
|
154
|
+
name="typeahead-chips-capped"
|
|
155
|
+
multiple
|
|
156
|
+
allowNew
|
|
157
|
+
showSuggestions={false}
|
|
158
|
+
maxHeight={100}
|
|
159
|
+
initialValue={testEmails}
|
|
160
|
+
options={[]}
|
|
161
|
+
onChange={() => {}}
|
|
162
|
+
/>
|
|
163
|
+
</Field>
|
|
164
|
+
<Field id="typeahead-chips-large" label="Large">
|
|
165
|
+
<Typeahead
|
|
166
|
+
id="typeahead-chips-large"
|
|
167
|
+
name="typeahead-chips-large"
|
|
168
|
+
size="lg"
|
|
169
|
+
multiple
|
|
170
|
+
allowNew
|
|
171
|
+
showSuggestions={false}
|
|
172
|
+
initialValue={testEmails.slice(0, 2)}
|
|
173
|
+
options={[]}
|
|
174
|
+
onChange={() => {}}
|
|
175
|
+
/>
|
|
176
|
+
</Field>
|
|
177
|
+
</div>
|
|
178
|
+
),
|
|
179
|
+
};
|
|
@@ -78,8 +78,10 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
|
|
|
78
78
|
<div className="droppable-default-card" aria-hidden={isComplete}>
|
|
79
79
|
<div className="droppable-card-content">
|
|
80
80
|
<div className="m-b-3">{this.getImage()}</div>
|
|
81
|
-
{usLabel && <h4 className="np-text-title-body m-b-1">{usLabel}</h4>}
|
|
82
|
-
{usPlaceholder &&
|
|
81
|
+
{usLabel && <h4 className="np-text-title-body wds-text-title-body m-b-1">{usLabel}</h4>}
|
|
82
|
+
{usPlaceholder && (
|
|
83
|
+
<p className="np-text-body-large wds-text-body-large m-b-3">{String(usPlaceholder)}</p>
|
|
84
|
+
)}
|
|
83
85
|
<label
|
|
84
86
|
className={`btn btn-primary btn-md ${usDisabled ? 'disabled' : ''}`}
|
|
85
87
|
role="button"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
border-radius: var(--radius-small);
|
|
10
10
|
border-block-end: var(--outerBorder);
|
|
11
11
|
}
|
|
12
|
-
.np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__section--uploader .np-upload-input__upload-button::before {
|
|
12
|
+
.np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not( :has(.np-upload-input__item-button:hover)) + .np-upload-input__section--uploader .np-upload-input__upload-button::before {
|
|
13
13
|
inset-inline-start: 0;
|
|
14
14
|
inline-size: 100%;
|
|
15
15
|
inset-block-start: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import (reference) "./../styles/less/ring.less";
|
|
2
2
|
@import (reference) "./../styles/less/mixins/_links.less";
|
|
3
|
-
@import (reference)
|
|
3
|
+
@import (reference) "./UploadItem/UploadItem.less";
|
|
4
4
|
|
|
5
5
|
.np-upload-input {
|
|
6
6
|
--outerBorder: 1px solid var(--color-interactive-secondary);
|
|
@@ -20,11 +20,14 @@
|
|
|
20
20
|
// if the last item in the file list is interactive (not an error)
|
|
21
21
|
// and the user is hovering over it, then we need to adjust the
|
|
22
22
|
// bottom separator, which happens to be in .np-upload-input__section--uploader
|
|
23
|
-
&:has(.np-upload-input__item:last-child.is-interactive:hover):not(
|
|
24
|
-
|
|
23
|
+
&:has(.np-upload-input__item:last-child.is-interactive:hover):not(
|
|
24
|
+
:has(.np-upload-input__item-button:hover)
|
|
25
|
+
)
|
|
26
|
+
+ .np-upload-input__section--uploader
|
|
27
|
+
.np-upload-input__upload-button::before {
|
|
25
28
|
left: 0;
|
|
26
29
|
width: 100%;
|
|
27
30
|
top: 0;
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
|
-
}
|
|
33
|
+
}
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
padding-block: var(--size-8);
|
|
5
5
|
padding-inline: var(--size-12);
|
|
6
6
|
transition: color, background-color 0.15s ease-in-out;
|
|
7
|
-
font-weight: var(--font-weight-
|
|
8
|
-
font-size: var(--font-size-
|
|
9
|
-
line-height: var(--line-height-
|
|
10
|
-
border-radius: var(--radius-small);
|
|
7
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
8
|
+
font-size: var(--wds-font-size-body);
|
|
9
|
+
line-height: var(--wds-line-height-body);
|
|
11
10
|
align-items: center;
|
|
12
11
|
color: var(--color-interactive-control);
|
|
13
12
|
background-color: var(--color-interactive-accent);
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
height: var(--size-32);
|
|
6
6
|
padding: var(--size-8) var(--size-12);
|
|
7
7
|
transition: color, background-color 0.15s ease-in-out;
|
|
8
|
-
font-weight: var(--font-weight-
|
|
9
|
-
font-size: var(--font-size-
|
|
10
|
-
line-height: var(--line-height-
|
|
11
|
-
border-radius: var(--radius-small);
|
|
8
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
9
|
+
font-size: var(--wds-font-size-body);
|
|
10
|
+
line-height: var(--wds-line-height-body);
|
|
12
11
|
align-items: center;
|
|
13
12
|
color: var(--color-interactive-control);
|
|
14
13
|
background-color: var(--color-interactive-accent);
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
box-shadow: none;
|
|
47
46
|
border-color: transparent;
|
|
48
47
|
background-color: var(--color-interactive-accent-active);
|
|
49
|
-
|
|
48
|
+
|
|
50
49
|
&.btn-priority-2 {
|
|
51
50
|
background-color: var(--color-background-neutral-active);
|
|
52
51
|
}
|
|
@@ -36,7 +36,7 @@ const ActionButton = forwardRef<HTMLButtonElement, ActionButtonProps>(
|
|
|
36
36
|
type="button"
|
|
37
37
|
className={clsx(
|
|
38
38
|
'np-action-btn',
|
|
39
|
-
'np-text-body-default-bold',
|
|
39
|
+
'np-text-body-default-bold wds-text-body-default-bold',
|
|
40
40
|
priority === Priority.TERTIARY
|
|
41
41
|
? 'btn-priority-3'
|
|
42
42
|
: priority === Priority.SECONDARY
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
.tw-avatar.tw-avatar--initials,
|
|
41
41
|
.tw-avatar.tw-avatar--emoji {
|
|
42
42
|
font-family: Arial, sans-serif;
|
|
43
|
-
font-weight: var(--font-weight-
|
|
43
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
44
44
|
}
|
|
45
45
|
.tw-avatar.tw-avatar--initials,
|
|
46
46
|
.tw-avatar.tw-avatar--icon {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
font-family: Arial, sans-serif;
|
|
52
52
|
}
|
|
53
53
|
.tw-avatar.tw-avatar--branded .tw-avatar__content {
|
|
54
|
-
font-family: var(--font-family-display);
|
|
54
|
+
font-family: var(--wds-font-family-display);
|
|
55
55
|
font-feature-settings: "ss01";
|
|
56
56
|
color: var(--color-dark-charcoal);
|
|
57
57
|
line-height: 1;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
&.tw-avatar--initials,
|
|
56
56
|
&.tw-avatar--emoji {
|
|
57
57
|
font-family: Arial, sans-serif;
|
|
58
|
-
font-weight: var(--font-weight-
|
|
58
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&.tw-avatar--initials,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&.tw-avatar--branded .tw-avatar__content {
|
|
74
|
-
font-family: var(--font-family-display);
|
|
74
|
+
font-family: var(--wds-font-family-display);
|
|
75
75
|
font-feature-settings: "ss01";
|
|
76
76
|
color: var(--color-dark-charcoal);
|
|
77
77
|
line-height: 1;
|
|
@@ -86,7 +86,7 @@ const Avatar: React.FC<AvatarProps> = ({
|
|
|
86
86
|
className={clsx('tw-avatar', className, `tw-avatar--${size}`, `tw-avatar--${type}`, {
|
|
87
87
|
'tw-avatar--outlined': outlined,
|
|
88
88
|
'tw-avatar--branded': Boolean(backgroundColorFromSeed),
|
|
89
|
-
'np-text-title-body': type === 'initials',
|
|
89
|
+
'np-text-title-body wds-text-title-body': type === 'initials',
|
|
90
90
|
})}
|
|
91
91
|
aria-label={ariaLabel}
|
|
92
92
|
>
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
color: var(--color-sentiment-content-primary);
|
|
8
8
|
margin-block-end: 0;
|
|
9
9
|
}
|
|
10
|
-
.critical-comms .alert .np-text-title-body
|
|
10
|
+
.critical-comms .alert .np-text-title-body,
|
|
11
|
+
.critical-comms .alert .wds-text-title-body {
|
|
11
12
|
color: var(--color-sentiment-content-primary);
|
|
12
13
|
}
|
|
13
14
|
.critical-comms .status-circle.negative {
|
|
@@ -74,7 +74,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
74
74
|
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
75
75
|
<div>
|
|
76
76
|
<div className="m-b-2">
|
|
77
|
-
<div className="title-
|
|
77
|
+
<div className="wds-text-title-body m-b-1">Has Title Only</div>
|
|
78
78
|
<NavigationOption
|
|
79
79
|
{...args}
|
|
80
80
|
content={null}
|
|
@@ -83,7 +83,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
83
83
|
/>
|
|
84
84
|
</div>
|
|
85
85
|
<div className="m-b-2">
|
|
86
|
-
<div className="title-
|
|
86
|
+
<div className="wds-text-title-body m-b-1">Full Content</div>
|
|
87
87
|
<NavigationOption
|
|
88
88
|
{...args}
|
|
89
89
|
content={hasTitleOnly ? null : args.content}
|
|
@@ -92,7 +92,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
92
92
|
/>
|
|
93
93
|
</div>
|
|
94
94
|
<div className="m-b-2">
|
|
95
|
-
<div className="title-
|
|
95
|
+
<div className="wds-text-title-body m-b-1">With Icon</div>
|
|
96
96
|
<NavigationOption
|
|
97
97
|
{...args}
|
|
98
98
|
media={<BankIcon size={24} />}
|
|
@@ -101,7 +101,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
101
101
|
/>
|
|
102
102
|
</div>
|
|
103
103
|
<div className="m-b-2">
|
|
104
|
-
<div className="title-
|
|
104
|
+
<div className="wds-text-title-body m-b-1">With Icon Avatar</div>
|
|
105
105
|
<NavigationOption
|
|
106
106
|
{...args}
|
|
107
107
|
showMediaCircle={false}
|
|
@@ -115,7 +115,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
115
115
|
/>
|
|
116
116
|
</div>
|
|
117
117
|
<div className="m-b-2">
|
|
118
|
-
<div className="title-
|
|
118
|
+
<div className="wds-text-title-body m-b-1">With Contact Avatar</div>
|
|
119
119
|
<NavigationOption
|
|
120
120
|
{...args}
|
|
121
121
|
showMediaCircle={false}
|
|
@@ -125,7 +125,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
125
125
|
/>
|
|
126
126
|
</div>
|
|
127
127
|
<div className="m-t-4 m-b-2">
|
|
128
|
-
<div className="title-
|
|
128
|
+
<div className="wds-text-title-body m-b-1">Not recommended usage</div>
|
|
129
129
|
<p>
|
|
130
130
|
Rendering an Avatar on top of showMediaCircle causes the Avatar background-colour and the
|
|
131
131
|
circle background-colour to overlap which also causes clipping issues with the Badge
|
|
@@ -1,9 +1,35 @@
|
|
|
1
|
-
.np-
|
|
1
|
+
.np-dropdown-menu > li > a {
|
|
2
|
+
word-wrap: break-word;
|
|
3
|
+
}
|
|
4
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
+
.np-dropdown-menu > li > a {
|
|
6
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
+
}
|
|
8
|
+
@media (min-width: 840px) {
|
|
9
|
+
.np-dropdown-menu > li > a {
|
|
10
|
+
hyphenate-limit-chars: 8 3;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 1160px) {
|
|
14
|
+
.np-dropdown-menu > li > a {
|
|
15
|
+
hyphenate-limit-chars: 10 4 3;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
+
.np-dropdown-menu > li > a {
|
|
20
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: 1160px) {
|
|
23
|
+
.np-dropdown-menu > li > a {
|
|
24
|
+
-webkit-hyphenate-limit-before: 4;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}.np-select .np-dropdown-toggle {
|
|
2
28
|
background-color: var(--color-background-screen);
|
|
3
29
|
border: 1px solid var(--color-interactive-secondary);
|
|
4
30
|
border-radius: var(--radius-small);
|
|
5
31
|
color: var(--color-content-primary);
|
|
6
|
-
font-weight: var(--font-weight-regular);
|
|
32
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
7
33
|
overflow: hidden;
|
|
8
34
|
padding-inline-start: var(--size-16);
|
|
9
35
|
text-align: start;
|
|
@@ -116,10 +142,6 @@
|
|
|
116
142
|
clear: both;
|
|
117
143
|
border-radius: var(--radius-small);
|
|
118
144
|
color: var(--color-content-primary);
|
|
119
|
-
font-size: var(--font-size-14);
|
|
120
|
-
line-height: 155%;
|
|
121
|
-
letter-spacing: -0.006em;
|
|
122
|
-
font-weight: var(--font-weight-regular);
|
|
123
145
|
word-wrap: break-word;
|
|
124
146
|
}
|
|
125
147
|
.np-theme-personal .np-dropdown-menu > li > a {
|
|
@@ -191,8 +213,12 @@
|
|
|
191
213
|
.np-dropdown-menu > .selected > a strong {
|
|
192
214
|
color: inherit;
|
|
193
215
|
}
|
|
216
|
+
.np-dropdown-menu > .active > a .body-2,
|
|
217
|
+
.np-dropdown-menu > .selected > a .body-2,
|
|
194
218
|
.np-dropdown-menu > .active > a .np-text-body-default,
|
|
195
|
-
.np-dropdown-menu > .selected > a .np-text-body-default
|
|
219
|
+
.np-dropdown-menu > .selected > a .np-text-body-default,
|
|
220
|
+
.np-dropdown-menu > .active > a .wds-text-body-default,
|
|
221
|
+
.np-dropdown-menu > .selected > a .wds-text-body-default {
|
|
196
222
|
color: #c9cbce;
|
|
197
223
|
}
|
|
198
224
|
.np-dropdown-menu .np-select-filter,
|
|
@@ -208,12 +234,12 @@
|
|
|
208
234
|
.np-dropdown-menu .np-dropdown-header {
|
|
209
235
|
padding-block: var(--size-8);
|
|
210
236
|
padding-inline: var(--size-16);
|
|
237
|
+
white-space: nowrap;
|
|
211
238
|
color: var(--color-content-secondary);
|
|
212
239
|
display: block;
|
|
213
|
-
font-size: var(--font-size-
|
|
214
|
-
font-weight: var(--font-weight-regular);
|
|
215
|
-
line-height: var(--line-height-body);
|
|
216
|
-
white-space: nowrap;
|
|
240
|
+
font-size: var(--wds-font-size-body);
|
|
241
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
242
|
+
line-height: var(--wds-line-height-body);
|
|
217
243
|
}
|
|
218
244
|
.np-select .tw-icon,
|
|
219
245
|
.np-dropdown-menu .tw-icon,
|
|
@@ -224,7 +250,9 @@
|
|
|
224
250
|
vertical-align: middle;
|
|
225
251
|
}
|
|
226
252
|
.np-select .np-text-body-default,
|
|
227
|
-
.np-dropdown-menu .np-text-body-default
|
|
253
|
+
.np-dropdown-menu .np-text-body-default,
|
|
254
|
+
.np-select .wds-text-body-default,
|
|
255
|
+
.np-dropdown-menu .wds-text-body-default {
|
|
228
256
|
color: var(--color-content-secondary);
|
|
229
257
|
}
|
|
230
258
|
.np-select .tw-icon-search,
|
|
@@ -282,7 +310,13 @@
|
|
|
282
310
|
.np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,
|
|
283
311
|
.np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,
|
|
284
312
|
.np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,
|
|
285
|
-
.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default
|
|
313
|
+
.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default,
|
|
314
|
+
.np-theme-personal .np-dropdown-menu .active a .wds-text-body-default,
|
|
315
|
+
.np-theme-personal .np-dropdown-menu .selected a .wds-text-body-default,
|
|
316
|
+
.np-theme-personal .np-dropdown-menu .active a:focus .wds-text-body-default,
|
|
317
|
+
.np-theme-personal .np-dropdown-menu .selected a:focus .wds-text-body-default,
|
|
318
|
+
.np-theme-personal .np-dropdown-menu .active a:hover .wds-text-body-default,
|
|
319
|
+
.np-theme-personal .np-dropdown-menu .selected a:hover .wds-text-body-default {
|
|
286
320
|
color: var(--color-interactive-primary);
|
|
287
321
|
}
|
|
288
322
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active {
|
|
@@ -290,7 +324,8 @@
|
|
|
290
324
|
background-color: var(--color-background-neutral-active) !important;
|
|
291
325
|
}
|
|
292
326
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .body-2,
|
|
293
|
-
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default
|
|
327
|
+
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default,
|
|
328
|
+
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .wds-text-body-default {
|
|
294
329
|
color: var(--color-interactive-primary);
|
|
295
330
|
}
|
|
296
331
|
.np-theme-personal .np-dropdown-menu .np-dropdown-item {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
border: 1px solid var(--color-interactive-secondary);
|
|
19
19
|
border-radius: var(--radius-small);
|
|
20
20
|
color: var(--color-content-primary);
|
|
21
|
-
font-weight: var(--font-weight-regular);
|
|
21
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
padding-left: var(--size-16);
|
|
24
24
|
text-align: left;
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
border-radius: var(--radius-small);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.
|
|
173
|
+
.wds-text-body-default;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
> li:first-child > a {
|
|
@@ -215,7 +215,9 @@
|
|
|
215
215
|
color: inherit;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.
|
|
218
|
+
.body-2,
|
|
219
|
+
.np-text-body-default,
|
|
220
|
+
.wds-text-body-default {
|
|
219
221
|
color: @color-navy-content-secondary;
|
|
220
222
|
}
|
|
221
223
|
}
|
|
@@ -238,10 +240,9 @@
|
|
|
238
240
|
white-space: nowrap;
|
|
239
241
|
color: var(--color-content-secondary);
|
|
240
242
|
display: block;
|
|
241
|
-
font-size: var(--font-size-
|
|
242
|
-
font-weight: var(--font-weight-regular);
|
|
243
|
-
line-height: var(--line-height-body);
|
|
244
|
-
white-space: nowrap;
|
|
243
|
+
font-size: var(--wds-font-size-body);
|
|
244
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
245
|
+
line-height: var(--wds-line-height-body);
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
248
|
|
|
@@ -255,7 +256,8 @@
|
|
|
255
256
|
vertical-align: middle;
|
|
256
257
|
}
|
|
257
258
|
|
|
258
|
-
.np-text-body-default
|
|
259
|
+
.np-text-body-default,
|
|
260
|
+
.wds-text-body-default {
|
|
259
261
|
color: var(--color-content-secondary);
|
|
260
262
|
}
|
|
261
263
|
|
|
@@ -313,7 +315,8 @@
|
|
|
313
315
|
background-color: var(--color-background-neutral-active);
|
|
314
316
|
|
|
315
317
|
.body-2,
|
|
316
|
-
.np-text-body-default
|
|
318
|
+
.np-text-body-default,
|
|
319
|
+
.wds-text-body-default {
|
|
317
320
|
color: var(--color-interactive-primary);
|
|
318
321
|
}
|
|
319
322
|
}
|
|
@@ -324,7 +327,8 @@
|
|
|
324
327
|
background-color: var(--color-background-neutral-active) !important;
|
|
325
328
|
|
|
326
329
|
.body-2,
|
|
327
|
-
.np-text-body-default
|
|
330
|
+
.np-text-body-default,
|
|
331
|
+
.wds-text-body-default {
|
|
328
332
|
color: var(--color-interactive-primary);
|
|
329
333
|
}
|
|
330
334
|
}
|
|
@@ -47,6 +47,22 @@ describe('Select', () => {
|
|
|
47
47
|
await userEvent.click(button);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
+
describe('classNames', () => {
|
|
51
|
+
it('applies overrides keyed by the legacy and the WDS text class', () => {
|
|
52
|
+
render(
|
|
53
|
+
<Select
|
|
54
|
+
{...props}
|
|
55
|
+
classNames={{
|
|
56
|
+
'np-text-body-large': 'legacy-override',
|
|
57
|
+
'wds-text-body-large': 'wds-override',
|
|
58
|
+
}}
|
|
59
|
+
/>,
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
expect(screen.getByRole('button')).toHaveClass('legacy-override', 'wds-override');
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
50
66
|
describe('search property', () => {
|
|
51
67
|
it('should focus input when dropdown is open', async () => {
|
|
52
68
|
const { container } = render(<Select {...props} search />);
|