@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
package/src/Stepper/Stepper.tsx
CHANGED
|
@@ -61,7 +61,7 @@ const Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) =>
|
|
|
61
61
|
className="btn-unstyled tw-stepper__step-label"
|
|
62
62
|
onClick={() => clickable && step.onClick?.()}
|
|
63
63
|
>
|
|
64
|
-
<
|
|
64
|
+
<span className="wds-text-body-default">{step.label}</span>
|
|
65
65
|
</button>
|
|
66
66
|
) : (
|
|
67
67
|
<span className="tw-stepper__step-label">{step.label}</span>
|
|
@@ -73,7 +73,9 @@ const Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) =>
|
|
|
73
73
|
className={clsx(
|
|
74
74
|
'hidden-xs',
|
|
75
75
|
'tw-stepper__step',
|
|
76
|
-
active
|
|
76
|
+
active
|
|
77
|
+
? 'np-text-body-default-bold wds-text-body-default-bold tw-stepper__step--active'
|
|
78
|
+
: 'np-text-body-default wds-text-body-default',
|
|
77
79
|
clickable && 'tw-stepper__step--clickable',
|
|
78
80
|
step.hoverLabel && 'tw-stepper__step--has-tooltip',
|
|
79
81
|
)}
|
|
@@ -50,7 +50,7 @@ const TableHeader = ({
|
|
|
50
50
|
// If headers are empty, we still should render empty headers to keep visual consistency
|
|
51
51
|
return (
|
|
52
52
|
<div
|
|
53
|
-
className="np-table-header-content np-text-body-default-bold"
|
|
53
|
+
className="np-table-header-content np-text-body-default-bold wds-text-body-default-bold"
|
|
54
54
|
data-testid="np-table-empty-header"
|
|
55
55
|
>
|
|
56
56
|
|
|
@@ -13,7 +13,10 @@ describe('TableStatusText Component', () => {
|
|
|
13
13
|
it('renders the text and applies the default class', () => {
|
|
14
14
|
renderComponent();
|
|
15
15
|
expect(screen.getByText('Status Text')).toBeInTheDocument();
|
|
16
|
-
expect(screen.getByText('Status Text')).toHaveClass(
|
|
16
|
+
expect(screen.getByText('Status Text')).toHaveClass(
|
|
17
|
+
'np-text-body-default',
|
|
18
|
+
'wds-text-body-default',
|
|
19
|
+
);
|
|
17
20
|
});
|
|
18
21
|
|
|
19
22
|
it('applies the custom class name', () => {
|
|
@@ -23,12 +26,18 @@ describe('TableStatusText Component', () => {
|
|
|
23
26
|
|
|
24
27
|
it('applies the default typography class when typography is not provided', () => {
|
|
25
28
|
renderComponent();
|
|
26
|
-
expect(screen.getByText('Status Text')).toHaveClass(
|
|
29
|
+
expect(screen.getByText('Status Text')).toHaveClass(
|
|
30
|
+
'np-text-body-default',
|
|
31
|
+
'wds-text-body-default',
|
|
32
|
+
);
|
|
27
33
|
});
|
|
28
34
|
|
|
29
35
|
it('applies the typography class when typography equals `default-bold`', () => {
|
|
30
36
|
renderComponent({ typography: 'default-bold' });
|
|
31
|
-
expect(screen.getByText('Status Text')).toHaveClass(
|
|
37
|
+
expect(screen.getByText('Status Text')).toHaveClass(
|
|
38
|
+
'np-text-body-default-bold',
|
|
39
|
+
'wds-text-body-default-bold',
|
|
40
|
+
);
|
|
32
41
|
});
|
|
33
42
|
|
|
34
43
|
it('does not render any icon when status is not provided', () => {
|
|
@@ -39,14 +48,20 @@ describe('TableStatusText Component', () => {
|
|
|
39
48
|
|
|
40
49
|
it('applies the typography and status classes, renders the error icon when status equals `error`', () => {
|
|
41
50
|
renderComponent({ status: 'error' });
|
|
42
|
-
expect(screen.getByText('Status Text')).toHaveClass(
|
|
51
|
+
expect(screen.getByText('Status Text')).toHaveClass(
|
|
52
|
+
'np-text-body-default-bold',
|
|
53
|
+
'wds-text-body-default-bold',
|
|
54
|
+
);
|
|
43
55
|
expect(screen.getByText('Status Text')).toHaveClass('np-table-content--error');
|
|
44
56
|
expect(screen.getByTestId('alert-icon')).toBeInTheDocument();
|
|
45
57
|
});
|
|
46
58
|
|
|
47
59
|
it('applies the typography and status classes, renders the success icon when status equals `success`', () => {
|
|
48
60
|
renderComponent({ status: 'success' });
|
|
49
|
-
expect(screen.getByText('Status Text')).toHaveClass(
|
|
61
|
+
expect(screen.getByText('Status Text')).toHaveClass(
|
|
62
|
+
'np-text-body-default-bold',
|
|
63
|
+
'wds-text-body-default-bold',
|
|
64
|
+
);
|
|
50
65
|
expect(screen.getByText('Status Text')).toHaveClass('np-table-content--success');
|
|
51
66
|
expect(screen.getByTestId('check-icon')).toBeInTheDocument();
|
|
52
67
|
});
|
package/src/Table/Table.css
CHANGED
|
@@ -37,10 +37,16 @@
|
|
|
37
37
|
}
|
|
38
38
|
.np-table-inner-container {
|
|
39
39
|
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
|
|
40
|
-
background-position: left center,
|
|
40
|
+
background-position: left center,
|
|
41
|
+
right center,
|
|
42
|
+
left center,
|
|
43
|
+
right center;
|
|
41
44
|
background-repeat: no-repeat;
|
|
42
45
|
background-color: var(--color-contrast-overlay);
|
|
43
|
-
background-size: 15px 100%,
|
|
46
|
+
background-size: 15px 100%,
|
|
47
|
+
15px 100%,
|
|
48
|
+
15px 100%,
|
|
49
|
+
15px 100%;
|
|
44
50
|
background-attachment: local, local, scroll, scroll;
|
|
45
51
|
overflow-x: auto;
|
|
46
52
|
border-radius: 10px;
|
|
@@ -130,7 +136,9 @@
|
|
|
130
136
|
padding-inline-end: 0;
|
|
131
137
|
}
|
|
132
138
|
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
133
|
-
.np-table-cell.np-table-cell--right > .np-text-body-default
|
|
139
|
+
.np-table-cell.np-table-cell--right > .np-text-body-default,
|
|
140
|
+
.np-table-header.np-table-header--right > .wds-text-body-default,
|
|
141
|
+
.np-table-cell.np-table-cell--right > .wds-text-body-default {
|
|
134
142
|
text-align: end;
|
|
135
143
|
}
|
|
136
144
|
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
@@ -159,8 +167,8 @@
|
|
|
159
167
|
padding-block-start: 5px;
|
|
160
168
|
padding-block-end: 5px;
|
|
161
169
|
white-space: nowrap;
|
|
162
|
-
line-height: var(--line-height-
|
|
163
|
-
letter-spacing: var(--letter-spacing-
|
|
170
|
+
line-height: var(--wds-line-height-title-subsection);
|
|
171
|
+
letter-spacing: var(--wds-letter-spacing-title-subsection);
|
|
164
172
|
}
|
|
165
173
|
.np-table-header--error {
|
|
166
174
|
color: var(--color-sentiment-negative);
|
|
@@ -180,7 +188,8 @@
|
|
|
180
188
|
.np-table-cell--primary {
|
|
181
189
|
min-inline-size: 200px;
|
|
182
190
|
}
|
|
183
|
-
.np-table-cell--currency .np-text-body-default
|
|
191
|
+
.np-table-cell--currency .np-text-body-default,
|
|
192
|
+
.np-table-cell--currency .wds-text-body-default {
|
|
184
193
|
white-space: nowrap;
|
|
185
194
|
}
|
|
186
195
|
.np-table-cell .tw-chevron {
|
|
@@ -193,7 +202,8 @@
|
|
|
193
202
|
background-color: var(--color-background-neutral);
|
|
194
203
|
padding: 0;
|
|
195
204
|
}
|
|
196
|
-
.np-table-cell .np-text-body-default-bold
|
|
205
|
+
.np-table-cell .np-text-body-default-bold,
|
|
206
|
+
.np-table-cell .wds-text-body-default-bold {
|
|
197
207
|
display: flex;
|
|
198
208
|
align-items: center;
|
|
199
209
|
color: var(--color-content-primary);
|
|
@@ -232,7 +242,7 @@
|
|
|
232
242
|
.np-table-content-body {
|
|
233
243
|
display: flex;
|
|
234
244
|
flex-direction: column;
|
|
235
|
-
font-size: var(--font-size-
|
|
245
|
+
font-size: var(--wds-font-size-nav);
|
|
236
246
|
color: var(--color-content-tertiary);
|
|
237
247
|
}
|
|
238
248
|
.np-table-content--reversed {
|
package/src/Table/Table.less
CHANGED
|
@@ -59,10 +59,18 @@
|
|
|
59
59
|
linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)),
|
|
60
60
|
linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),
|
|
61
61
|
linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
|
|
62
|
-
background-position:
|
|
62
|
+
background-position:
|
|
63
|
+
left center,
|
|
64
|
+
right center,
|
|
65
|
+
left center,
|
|
66
|
+
right center;
|
|
63
67
|
background-repeat: no-repeat;
|
|
64
68
|
background-color: var(--color-contrast-overlay);
|
|
65
|
-
background-size:
|
|
69
|
+
background-size:
|
|
70
|
+
15px 100%,
|
|
71
|
+
15px 100%,
|
|
72
|
+
15px 100%,
|
|
73
|
+
15px 100%;
|
|
66
74
|
background-attachment: local, local, scroll, scroll;
|
|
67
75
|
overflow-x: auto;
|
|
68
76
|
border-radius: @table-inner-border-radius;
|
|
@@ -188,7 +196,8 @@
|
|
|
188
196
|
|
|
189
197
|
&-header.np-table-header--right,
|
|
190
198
|
&-cell.np-table-cell--right {
|
|
191
|
-
> .np-text-body-default
|
|
199
|
+
> .np-text-body-default,
|
|
200
|
+
> .wds-text-body-default {
|
|
192
201
|
text-align: right;
|
|
193
202
|
}
|
|
194
203
|
}
|
|
@@ -222,8 +231,8 @@
|
|
|
222
231
|
padding-top: 5px;
|
|
223
232
|
padding-bottom: 5px;
|
|
224
233
|
white-space: nowrap;
|
|
225
|
-
line-height: var(--line-height-
|
|
226
|
-
letter-spacing: var(--letter-spacing-
|
|
234
|
+
line-height: var(--wds-line-height-title-subsection);
|
|
235
|
+
letter-spacing: var(--wds-letter-spacing-title-subsection);
|
|
227
236
|
}
|
|
228
237
|
|
|
229
238
|
&--error {
|
|
@@ -249,7 +258,8 @@
|
|
|
249
258
|
}
|
|
250
259
|
|
|
251
260
|
&--currency {
|
|
252
|
-
.np-text-body-default
|
|
261
|
+
.np-text-body-default,
|
|
262
|
+
.wds-text-body-default {
|
|
253
263
|
white-space: nowrap;
|
|
254
264
|
}
|
|
255
265
|
}
|
|
@@ -266,7 +276,8 @@
|
|
|
266
276
|
padding: 0;
|
|
267
277
|
}
|
|
268
278
|
|
|
269
|
-
.np-text-body-default-bold
|
|
279
|
+
.np-text-body-default-bold,
|
|
280
|
+
.wds-text-body-default-bold {
|
|
270
281
|
display: flex;
|
|
271
282
|
align-items: center;
|
|
272
283
|
color: var(--color-content-primary);
|
|
@@ -306,11 +317,11 @@
|
|
|
306
317
|
&-media {
|
|
307
318
|
flex-shrink: 0;
|
|
308
319
|
}
|
|
309
|
-
|
|
320
|
+
|
|
310
321
|
&-body {
|
|
311
322
|
display: flex;
|
|
312
323
|
flex-direction: column;
|
|
313
|
-
font-size: var(--font-size-
|
|
324
|
+
font-size: var(--wds-font-size-nav);
|
|
314
325
|
color: var(--color-content-tertiary);
|
|
315
326
|
}
|
|
316
327
|
|
|
@@ -88,23 +88,34 @@ export const RTLDiff: Story = {
|
|
|
88
88
|
|
|
89
89
|
return (
|
|
90
90
|
<>
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
91
|
+
<div>
|
|
92
|
+
<Table data={{ headers, rows }} />
|
|
93
|
+
</div>
|
|
94
|
+
<div>
|
|
95
|
+
<Table
|
|
96
|
+
data={{
|
|
97
|
+
headers,
|
|
98
|
+
rows,
|
|
99
|
+
onRowClick: (rowData: TableRowType | TableRowClickableType) => {
|
|
100
|
+
void rowData;
|
|
101
|
+
},
|
|
102
|
+
}}
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
<div>
|
|
106
|
+
<Table data={{ headers, rows }} fullWidth={false} />
|
|
107
|
+
</div>
|
|
108
|
+
<div>
|
|
109
|
+
<Table data={{ headers, rows: [] }} />
|
|
110
|
+
</div>
|
|
111
|
+
<div>
|
|
112
|
+
<Table data={{ headers, rows }} loading />
|
|
113
|
+
</div>
|
|
104
114
|
</>
|
|
105
115
|
);
|
|
106
116
|
},
|
|
107
117
|
...withRTLDiff({
|
|
118
|
+
fixedRows: { heights: 'auto' },
|
|
108
119
|
i18n: {
|
|
109
120
|
employeeHeader: { en: 'Employee', ar: 'الموظف' },
|
|
110
121
|
locationHeader: { en: 'Location', ar: 'الموقع' },
|
package/src/Tabs/Tab/Tab.tsx
CHANGED
|
@@ -49,11 +49,17 @@ const Tab = forwardRef(function Tab(
|
|
|
49
49
|
return (
|
|
50
50
|
<li
|
|
51
51
|
ref={reference}
|
|
52
|
-
className={clsx(
|
|
53
|
-
'tabs__tab
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
className={clsx(
|
|
53
|
+
'tabs__tab',
|
|
54
|
+
selected
|
|
55
|
+
? 'np-text-body-large-bold wds-text-body-large-bold'
|
|
56
|
+
: 'np-text-body-large wds-text-body-large',
|
|
57
|
+
{
|
|
58
|
+
'tabs__tab--selected': selected,
|
|
59
|
+
clickable: !disabled,
|
|
60
|
+
disabled,
|
|
61
|
+
},
|
|
62
|
+
)}
|
|
57
63
|
role="tab"
|
|
58
64
|
id={id}
|
|
59
65
|
aria-selected={selected ? 'true' : 'false'}
|
package/src/Tabs/Tabs.css
CHANGED
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
padding: var(--size-8);
|
|
9
9
|
margin-block-end: -2px;
|
|
10
10
|
color: var(--color-content-primary);
|
|
11
|
-
font-weight: var(--font-weight-
|
|
11
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
12
12
|
transition: color 0.15s ease-in-out;
|
|
13
13
|
}
|
|
14
14
|
.np-theme-personal .tabs__tab {
|
|
15
15
|
color: var(--color-content-secondary);
|
|
16
|
-
font-weight: var(--font-weight-regular);
|
|
16
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
17
17
|
}
|
|
18
18
|
.tabs__tab--selected {
|
|
19
19
|
color: var(--color-content-accent);
|
|
20
20
|
}
|
|
21
21
|
.np-theme-personal .tabs__tab--selected {
|
|
22
22
|
color: var(--color-interactive-primary);
|
|
23
|
-
font-weight: var(--font-weight-
|
|
23
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
24
24
|
}
|
|
25
25
|
.tabs__tab__content {
|
|
26
26
|
border-radius: 2px;
|
package/src/Tabs/Tabs.less
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
padding: var(--size-8);
|
|
17
17
|
margin-bottom: -@line-thickness;
|
|
18
18
|
color: var(--color-content-primary);
|
|
19
|
-
font-weight: var(--font-weight-
|
|
19
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
20
20
|
transition: color @short-transition-duration @transition-timing-function;
|
|
21
21
|
|
|
22
22
|
.np-theme-personal & {
|
|
23
23
|
color: var(--color-content-secondary);
|
|
24
|
-
font-weight: var(--font-weight-regular);
|
|
24
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&--selected {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.np-theme-personal & {
|
|
31
31
|
color: var(--color-interactive-primary);
|
|
32
|
-
font-weight: var(--font-weight-
|
|
32
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -84,7 +84,7 @@ export const RTLDiff: Story = {
|
|
|
84
84
|
);
|
|
85
85
|
},
|
|
86
86
|
...withRTLDiff({
|
|
87
|
-
fixedRows: { heights:
|
|
87
|
+
fixedRows: { heights: 'auto' },
|
|
88
88
|
i18n: {
|
|
89
89
|
firstTab: { en: 'First tab', ar: 'التبويب الأول' },
|
|
90
90
|
secondTab: { en: 'Second tab', ar: 'التبويب الثاني' },
|
package/src/Tag/Tag.css
CHANGED
package/src/Tag/Tag.less
CHANGED
package/src/Tag/Tag.tsx
CHANGED
|
@@ -29,7 +29,7 @@ const PHOTO = '../card-payment-bakery.webp';
|
|
|
29
29
|
|
|
30
30
|
const Label = ({ children }: { children: ReactNode }) => (
|
|
31
31
|
<span
|
|
32
|
-
className="
|
|
32
|
+
className="wds-text-body-default"
|
|
33
33
|
style={{
|
|
34
34
|
color: 'var(--color-content-secondary)',
|
|
35
35
|
textTransform: 'capitalize',
|
package/src/Tile/Tile.css
CHANGED
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
.np-theme-personal .np-tile.decision:active {
|
|
23
23
|
background-color: var(--color-background-neutral-active);
|
|
24
24
|
}
|
|
25
|
-
.np-theme-personal .np-tile.decision .np-text-body-default
|
|
25
|
+
.np-theme-personal .np-tile.decision .np-text-body-default,
|
|
26
|
+
.np-theme-personal .np-tile.decision .wds-text-body-default {
|
|
26
27
|
color: var(--color-content-secondary);
|
|
27
28
|
}
|
|
28
29
|
.np-tile.np-decision__tile--fixed-width {
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
}
|
|
51
52
|
.np-tile__description {
|
|
52
53
|
color: var(--color-content-secondary);
|
|
53
|
-
font-weight: var(--font-weight-regular);
|
|
54
|
-
line-height: var(--line-height-body);
|
|
54
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
55
|
+
line-height: var(--wds-line-height-body);
|
|
55
56
|
margin-block-start: var(--size-12);
|
|
56
57
|
}
|
package/src/Tile/Tile.less
CHANGED
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
background-color: var(--color-background-neutral-active);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.np-text-body-default
|
|
31
|
+
.np-text-body-default,
|
|
32
|
+
.wds-text-body-default {
|
|
32
33
|
color: var(--color-content-secondary);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
|
|
72
73
|
.np-tile__description {
|
|
73
74
|
color: var(--color-content-secondary);
|
|
74
|
-
font-weight: var(--font-weight-regular);
|
|
75
|
-
line-height: var(--line-height-body);
|
|
75
|
+
font-weight: var(--wds-font-weight-body-regular);
|
|
76
|
+
line-height: var(--wds-line-height-body);
|
|
76
77
|
margin-top: var(--size-12);
|
|
77
78
|
}
|
package/src/Title/Title.test.tsx
CHANGED
|
@@ -9,7 +9,20 @@ describe('Title', () => {
|
|
|
9
9
|
const copy = screen.getByText('Test');
|
|
10
10
|
expect(copy).toBeInTheDocument();
|
|
11
11
|
expect(copy.tagName).toBe('H5');
|
|
12
|
-
expect(copy).toHaveClass(
|
|
12
|
+
expect(copy).toHaveClass(
|
|
13
|
+
`np-text-${Typography.TITLE_GROUP}`,
|
|
14
|
+
`wds-text-${Typography.TITLE_GROUP}`,
|
|
15
|
+
);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('renders both typography classes for the given type', () => {
|
|
19
|
+
render(<Title type={Typography.TITLE_SCREEN}>Test</Title>);
|
|
20
|
+
const copy = screen.getByText('Test');
|
|
21
|
+
expect(copy.tagName).toBe('H1');
|
|
22
|
+
expect(copy).toHaveClass(
|
|
23
|
+
`np-text-${Typography.TITLE_SCREEN}`,
|
|
24
|
+
`wds-text-${Typography.TITLE_SCREEN}`,
|
|
25
|
+
);
|
|
13
26
|
});
|
|
14
27
|
|
|
15
28
|
it('enforces tag via `as` prop', () => {
|
|
@@ -17,7 +30,10 @@ describe('Title', () => {
|
|
|
17
30
|
const copy = screen.getByText('Test');
|
|
18
31
|
expect(copy).toBeInTheDocument();
|
|
19
32
|
expect(copy.tagName).toBe('SPAN');
|
|
20
|
-
expect(copy).toHaveClass(
|
|
33
|
+
expect(copy).toHaveClass(
|
|
34
|
+
`np-text-${Typography.TITLE_GROUP}`,
|
|
35
|
+
`wds-text-${Typography.TITLE_GROUP}`,
|
|
36
|
+
);
|
|
21
37
|
});
|
|
22
38
|
|
|
23
39
|
it('supports native HTML attrs', () => {
|
|
@@ -39,6 +55,9 @@ describe('Title', () => {
|
|
|
39
55
|
const copy = screen.getByText('Test');
|
|
40
56
|
expect(copy).toBeInTheDocument();
|
|
41
57
|
expect(copy.tagName).toBe('H5');
|
|
42
|
-
expect(copy).toHaveClass(
|
|
58
|
+
expect(copy).toHaveClass(
|
|
59
|
+
`np-text-${Typography.TITLE_GROUP}`,
|
|
60
|
+
`wds-text-${Typography.TITLE_GROUP}`,
|
|
61
|
+
);
|
|
43
62
|
});
|
|
44
63
|
});
|
package/src/Title/Title.tsx
CHANGED
|
@@ -39,7 +39,7 @@ const Title = React.forwardRef<
|
|
|
39
39
|
<HeaderTag
|
|
40
40
|
ref={ref as React.Ref<any>}
|
|
41
41
|
{...props}
|
|
42
|
-
className={clsx(`np-text-${type}`, className)}
|
|
42
|
+
className={clsx(`np-text-${type}`, `wds-text-${type}`, className)}
|
|
43
43
|
/>
|
|
44
44
|
);
|
|
45
45
|
}
|
|
@@ -48,7 +48,7 @@ const Title = React.forwardRef<
|
|
|
48
48
|
<HeaderTag
|
|
49
49
|
ref={ref as React.Ref<any>}
|
|
50
50
|
{...props}
|
|
51
|
-
className={clsx(`np-text-${DEFAULT_TYPE}`, className)}
|
|
51
|
+
className={clsx(`np-text-${DEFAULT_TYPE}`, `wds-text-${DEFAULT_TYPE}`, className)}
|
|
52
52
|
/>
|
|
53
53
|
);
|
|
54
54
|
});
|
|
@@ -26,12 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
.typeahead--multiple .np-chip {
|
|
28
28
|
margin-block-end: auto;
|
|
29
|
-
animation-name: slide;
|
|
30
|
-
animation-duration: 0.03s;
|
|
31
|
-
animation-timing-function: ease-in-out;
|
|
32
|
-
}
|
|
33
|
-
.typeahead--multiple .np-chip:first-child {
|
|
34
|
-
animation-name: slideFirst;
|
|
35
29
|
}
|
|
36
30
|
.typeahead--multiple .np-chip-remove {
|
|
37
31
|
animation-name: fadeIn;
|
|
@@ -43,7 +37,10 @@
|
|
|
43
37
|
min-block-size: auto;
|
|
44
38
|
padding-block-start: 0;
|
|
45
39
|
padding-block-end: 0;
|
|
46
|
-
overflow:
|
|
40
|
+
overflow: visible;
|
|
41
|
+
}
|
|
42
|
+
.typeahead--multiple .typeahead__input-container--scrollable {
|
|
43
|
+
overflow-y: auto;
|
|
47
44
|
}
|
|
48
45
|
.typeahead--multiple .typeahead__input {
|
|
49
46
|
border: none;
|
|
@@ -77,12 +74,12 @@
|
|
|
77
74
|
padding-inline-start: 0;
|
|
78
75
|
}
|
|
79
76
|
.typeahead--multiple.typeahead--has-value .typeahead__input {
|
|
80
|
-
margin-block-end: calc(-1 * var(--size-8)
|
|
77
|
+
margin-block-end: calc(-1 * var(--size-8));
|
|
81
78
|
margin-inline-start: var(--size-4);
|
|
82
79
|
}
|
|
83
80
|
.typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
|
|
84
81
|
content: "";
|
|
85
|
-
block-size:
|
|
82
|
+
block-size: var(--size-8);
|
|
86
83
|
inline-size: 100%;
|
|
87
84
|
}
|
|
88
85
|
.typeahead__input-wrapper {
|
|
@@ -116,7 +113,7 @@
|
|
|
116
113
|
min-block-size: var(--input-height-large);
|
|
117
114
|
}
|
|
118
115
|
.typeahead-lg.typeahead--multiple .typeahead__input {
|
|
119
|
-
padding-block-start:
|
|
116
|
+
padding-block-start: var(--size-8);
|
|
120
117
|
}
|
|
121
118
|
.typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
|
|
122
119
|
padding-block-end: var(--size-8);
|
|
@@ -128,22 +125,6 @@
|
|
|
128
125
|
.typeahead-lg.typeahead--multiple .np-chip {
|
|
129
126
|
margin-block-end: 0;
|
|
130
127
|
}
|
|
131
|
-
@keyframes slide {
|
|
132
|
-
from {
|
|
133
|
-
transform: translateX(-12px);
|
|
134
|
-
}
|
|
135
|
-
to {
|
|
136
|
-
transform: none;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
@keyframes slideFirst {
|
|
140
|
-
from {
|
|
141
|
-
transform: translateX(-4px);
|
|
142
|
-
}
|
|
143
|
-
to {
|
|
144
|
-
transform: none;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
128
|
@keyframes fadeIn {
|
|
148
129
|
from {
|
|
149
130
|
opacity: 0;
|
|
@@ -166,13 +147,15 @@
|
|
|
166
147
|
color: var(--color-interactive-secondary);
|
|
167
148
|
}
|
|
168
149
|
.np-theme-personal .typeahead .np-chip {
|
|
169
|
-
margin-block-start:
|
|
150
|
+
margin-block-start: var(--size-8);
|
|
170
151
|
}
|
|
171
|
-
.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 {
|
|
172
154
|
padding-inline-end: var(--size-16);
|
|
173
155
|
}
|
|
174
156
|
@media (max-width: 320px) {
|
|
175
|
-
.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 {
|
|
176
159
|
padding-inline-end: var(--size-32);
|
|
177
160
|
}
|
|
178
161
|
}
|