@transferwise/components 46.165.5 → 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/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 +9076 -1924
- 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 +4 -2
- 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 +9076 -1924
- 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.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/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +1 -1
- package/build/types/Inputs/SelectInput/Popover/SelectInputPopover.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/Upload/Steps/UploadImageStep/UploadImageStep.d.ts.map +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 +2 -2
- 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/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 +33 -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 +45 -0
- package/src/Decision/Decision.css +4 -3
- package/src/Decision/Decision.less +4 -3
- package/src/DefinitionList/_stories/DefinitionList.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/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Inputs/Input/Input.css +98 -24
- 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.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +98 -24
- package/src/Inputs/_common.less +16 -10
- package/src/Label/Label.css +3 -0
- package/src/Label/Label.less +8 -0
- package/src/Label/Label.tsx +1 -1
- 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/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- 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/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/Tabs/Tab/Tab.tsx +11 -5
- package/src/Tabs/Tabs.css +3 -3
- package/src/Tabs/Tabs.less +3 -3
- 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/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 +4 -2
- package/src/Typeahead/Typeahead.less +2 -1
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +4 -2
- package/src/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +7 -4
- 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 +9076 -1924
- 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
|
@@ -149,11 +149,13 @@
|
|
|
149
149
|
.np-theme-personal .typeahead .np-chip {
|
|
150
150
|
margin-block-start: var(--size-8);
|
|
151
151
|
}
|
|
152
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
152
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
|
|
153
|
+
.np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
|
|
153
154
|
padding-inline-end: var(--size-16);
|
|
154
155
|
}
|
|
155
156
|
@media (max-width: 320px) {
|
|
156
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
157
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
|
|
158
|
+
.np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
|
|
157
159
|
padding-inline-end: var(--size-32);
|
|
158
160
|
}
|
|
159
161
|
}
|
|
@@ -209,7 +209,8 @@
|
|
|
209
209
|
margin-top: var(--size-8);
|
|
210
210
|
}
|
|
211
211
|
.np-chip--removable {
|
|
212
|
-
.np-text-body-default-bold
|
|
212
|
+
.np-text-body-default-bold,
|
|
213
|
+
.wds-text-body-default-bold {
|
|
213
214
|
padding-right: var(--size-16);
|
|
214
215
|
@media (--screen-400-zoom) {
|
|
215
216
|
padding-right: var(--size-32);
|
|
@@ -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
|
/>
|
|
@@ -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 />);
|
|
@@ -457,7 +457,11 @@ export default function Select({
|
|
|
457
457
|
function HeaderOption({ children }: { children?: React.ReactNode }) {
|
|
458
458
|
return (
|
|
459
459
|
<li // eslint-disable-line jsx-a11y/no-noninteractive-element-interactions
|
|
460
|
-
className={clsx(
|
|
460
|
+
className={clsx(
|
|
461
|
+
s('np-dropdown-header'),
|
|
462
|
+
s('np-text-title-group'),
|
|
463
|
+
s('wds-text-title-group'),
|
|
464
|
+
)}
|
|
461
465
|
onClick={stopPropagation}
|
|
462
466
|
onKeyPress={stopPropagation}
|
|
463
467
|
>
|
|
@@ -563,6 +567,7 @@ export default function Select({
|
|
|
563
567
|
className={clsx(
|
|
564
568
|
s('np-dropdown-toggle'),
|
|
565
569
|
s('np-text-body-large'),
|
|
570
|
+
s('wds-text-body-large'),
|
|
566
571
|
inverse ? s('np-dropdown-toggle-navy') : null,
|
|
567
572
|
)}
|
|
568
573
|
// reset Button's styles
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
.np-summary__title {
|
|
8
8
|
margin-block-start: 2px;
|
|
9
9
|
line-height: calc(22 / 16);
|
|
10
|
-
font-weight: var(--font-weight-
|
|
10
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
11
11
|
justify-content: space-between;
|
|
12
12
|
margin-block-start: 0;
|
|
13
13
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
.np-summary__description {
|
|
46
46
|
margin-block-start: var(--size-4);
|
|
47
|
-
font-size: var(--font-size-
|
|
47
|
+
font-size: var(--wds-font-size-body);
|
|
48
48
|
line-height: calc(20 / 14);
|
|
49
49
|
color: var(--color-content-secondary);
|
|
50
50
|
padding-inline-end: calc(var(--size-24) + var(--size-8));
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
&__title {
|
|
9
9
|
margin-top: 2px;
|
|
10
10
|
line-height: calc(22 / 16);
|
|
11
|
-
font-weight: var(--font-weight-
|
|
11
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
12
12
|
justify-content: space-between;
|
|
13
13
|
margin-top: 0;
|
|
14
14
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
&__description {
|
|
61
61
|
margin-top: var(--size-4);
|
|
62
|
-
font-size: var(--font-size-
|
|
62
|
+
font-size: var(--wds-font-size-body);
|
|
63
63
|
line-height: calc(20 / 14);
|
|
64
64
|
|
|
65
65
|
color: var(--color-content-secondary);
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--circle-border-color: var(--color-border-neutral);
|
|
7
7
|
--circle-border-width: 1px;
|
|
8
8
|
font-size: var(--circle-font-size);
|
|
9
|
-
font-weight: var(--font-weight-
|
|
9
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
10
10
|
line-height: 1;
|
|
11
11
|
}
|
|
12
12
|
.np-circle .np-display {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
// circle like components have custom typography styles for for default (Inter) font
|
|
11
11
|
font-size: var(--circle-font-size);
|
|
12
|
-
font-weight: var(--font-weight-
|
|
12
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
13
13
|
line-height: 1;
|
|
14
14
|
|
|
15
15
|
// circle like components have custom typography styles for Wise Sand font
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
.np-option__title {
|
|
14
14
|
color: var(--color-content-primary);
|
|
15
15
|
font-size: 1rem;
|
|
16
|
-
font-weight: var(--font-weight-
|
|
16
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
17
17
|
letter-spacing: 0;
|
|
18
|
-
line-height: var(--line-height-body);
|
|
18
|
+
line-height: var(--wds-line-height-body);
|
|
19
19
|
margin: 0;
|
|
20
20
|
}
|
|
21
21
|
.np-option__body {
|
|
22
22
|
margin-block-start: var(--size-4);
|
|
23
23
|
color: var(--color-content-secondary);
|
|
24
|
-
font-size: var(--font-size-
|
|
25
|
-
font-weight: var(--font-weight-regular);
|
|
24
|
+
font-size: var(--wds-font-size-body);
|
|
25
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
26
26
|
line-height: 1.42857;
|
|
27
27
|
}
|
|
28
28
|
.np-option__sm-media.decision .media-left {
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
&__title {
|
|
19
19
|
color: var(--color-content-primary);
|
|
20
20
|
font-size: 1rem;
|
|
21
|
-
font-weight: var(--font-weight-
|
|
21
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
22
22
|
letter-spacing: 0;
|
|
23
|
-
line-height: var(--line-height-body);
|
|
23
|
+
line-height: var(--wds-line-height-body);
|
|
24
24
|
margin: 0;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&__body {
|
|
28
28
|
margin-top: var(--size-4);
|
|
29
29
|
color: var(--color-content-secondary);
|
|
30
|
-
font-size: var(--font-size-
|
|
31
|
-
font-weight: var(--font-weight-regular);
|
|
30
|
+
font-size: var(--wds-font-size-body);
|
|
31
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
32
32
|
line-height: 1.42857;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -6,7 +6,13 @@ export enum Typography {
|
|
|
6
6
|
DISPLAY_LARGE = 'display-large',
|
|
7
7
|
DISPLAY_MEDIUM = 'display-medium',
|
|
8
8
|
DISPLAY_SMALL = 'display-small',
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use {@link Typography.DISPLAY_NUMBER_SMALL} instead.
|
|
11
|
+
*/
|
|
9
12
|
DISPLAY_NUMBER = 'display-number',
|
|
13
|
+
DISPLAY_NUMBER_SMALL = 'display-number-small',
|
|
14
|
+
DISPLAY_NUMBER_MEDIUM = 'display-number-medium',
|
|
15
|
+
DISPLAY_NUMBER_LARGE = 'display-number-large',
|
|
10
16
|
|
|
11
17
|
TITLE_SCREEN = 'title-screen',
|
|
12
18
|
TITLE_SECTION = 'title-section',
|
|
@@ -30,10 +36,23 @@ export type DisplayExtraLarge = 'display-extra-large';
|
|
|
30
36
|
export type DisplayLarge = 'display-large';
|
|
31
37
|
export type DisplayMedium = 'display-medium';
|
|
32
38
|
export type DisplaySmall = 'display-small';
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use {@link DisplayNumberSmall} instead.
|
|
41
|
+
*/
|
|
33
42
|
export type DisplayNumber = 'display-number';
|
|
43
|
+
export type DisplayNumberSmall = 'display-number-small';
|
|
44
|
+
export type DisplayNumberMedium = 'display-number-medium';
|
|
45
|
+
export type DisplayNumberLarge = 'display-number-large';
|
|
34
46
|
|
|
35
47
|
export type DisplayTypes =
|
|
36
|
-
|
|
48
|
+
| DisplayExtraLarge
|
|
49
|
+
| DisplayLarge
|
|
50
|
+
| DisplayMedium
|
|
51
|
+
| DisplaySmall
|
|
52
|
+
| DisplayNumber
|
|
53
|
+
| DisplayNumberSmall
|
|
54
|
+
| DisplayNumberMedium
|
|
55
|
+
| DisplayNumberLarge;
|
|
37
56
|
|
|
38
57
|
export type TitleScreen = 'title-screen';
|
|
39
58
|
export type TitleSection = 'title-section';
|