@transferwise/components 0.0.0-experimental-6bc68bd → 0.0.0-experimental-012dcef
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 +1 -1
- package/build/Body/Body.js.map +1 -1
- package/build/Body/Body.mjs +1 -1
- 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/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 +1 -1
- package/build/Stepper/Stepper.js.map +1 -1
- package/build/Stepper/Stepper.mjs +1 -1
- 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/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 +0 -6
- package/build/common/PropsValues/typography.js.map +1 -1
- package/build/common/PropsValues/typography.mjs +0 -6
- package/build/common/PropsValues/typography.mjs.map +1 -1
- package/build/main.css +2432 -8907
- package/build/styles/Accordion/Accordion.css +6 -7
- package/build/styles/Body/Body.css +1 -1
- package/build/styles/Calendar/Calendar.css +4 -11
- package/build/styles/Calendar/TableLink/TableLink.css +4 -11
- package/build/styles/Chips/Chip/Chip.css +3 -5
- package/build/styles/Decision/Decision.css +3 -4
- package/build/styles/Emphasis/Emphasis.css +1 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +1 -2
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +1 -2
- package/build/styles/Inputs/Input/Input.css +60 -67
- package/build/styles/Inputs/TextArea/TextArea.css +60 -67
- package/build/styles/Markup/Markup.css +2 -2
- package/build/styles/MoneyInput/MoneyInput.css +6 -9
- package/build/styles/Nudge/Nudge.css +3 -3
- package/build/styles/Popover/Popover.css +43 -4
- package/build/styles/ProgressBar/ProgressBar.css +2 -3
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +1 -2
- package/build/styles/Snackbar/Snackbar.css +1 -1
- package/build/styles/Table/Table.css +8 -18
- package/build/styles/Tabs/Tabs.css +3 -3
- package/build/styles/Tag/Tag.css +1 -1
- package/build/styles/Tile/Tile.css +3 -4
- package/build/styles/Typeahead/Typeahead.css +2 -4
- package/build/styles/UploadInput/UploadInput.css +1 -1
- package/build/styles/_deprecated/ActionButton/ActionButton.css +4 -3
- package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
- package/build/styles/_deprecated/Select/Select.css +14 -49
- 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 +44 -22
- package/build/styles/css/badge.css +2 -2
- package/build/styles/css/button-groups.css +6 -29
- package/build/styles/css/buttons.css +11 -35
- package/build/styles/css/decision.css +44 -22
- package/build/styles/css/dropdowns.css +54 -39
- package/build/styles/css/droppable.css +6 -28
- package/build/styles/css/footer.css +10 -41
- package/build/styles/css/input-groups.css +167 -203
- package/build/styles/css/list-group.css +42 -1
- package/build/styles/css/modals.css +1 -1
- package/build/styles/css/navbar.css +81 -66
- package/build/styles/css/navs.css +8 -8
- package/build/styles/css/neptune-addons.css +0 -15
- package/build/styles/css/neptune-core.css +524 -5935
- package/build/styles/css/neptune.css +2092 -8533
- package/build/styles/css/panels.css +2 -2
- package/build/styles/css/popovers.css +56 -39
- package/build/styles/css/progress-bars.css +2 -2
- package/build/styles/css/sequences.css +9 -14
- package/build/styles/css/table.css +7 -7
- package/build/styles/css/tooltip.css +6 -28
- 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/less/legacy-variables.less +3 -3
- package/build/styles/less/neptune-tokens.less +48 -0
- package/build/styles/main.css +2432 -8907
- package/build/styles/props/neptune-tokens.css +3 -804
- package/build/styles/styles/less/accordion.css +44 -22
- package/build/styles/styles/less/badge.css +2 -2
- package/build/styles/styles/less/button-groups.css +6 -29
- package/build/styles/styles/less/buttons.css +11 -35
- package/build/styles/styles/less/decision.css +44 -22
- package/build/styles/styles/less/dropdowns.css +54 -39
- package/build/styles/styles/less/droppable.css +6 -28
- package/build/styles/styles/less/footer.css +10 -41
- package/build/styles/styles/less/forms/bootstrap-forms.css +100 -153
- package/build/styles/styles/less/forms/checkbox-radio.css +3 -3
- package/build/styles/styles/less/input-groups.css +167 -203
- package/build/styles/styles/less/list-group.css +42 -1
- package/build/styles/styles/less/modals.css +1 -1
- package/build/styles/styles/less/navbar.css +81 -66
- package/build/styles/styles/less/navs.css +8 -8
- package/build/styles/styles/less/neptune-addons.css +0 -15
- package/build/styles/styles/less/neptune-core.css +524 -5935
- package/build/styles/styles/less/neptune.css +2092 -8533
- package/build/styles/styles/less/panels.css +2 -2
- package/build/styles/styles/less/popovers.css +56 -39
- package/build/styles/styles/less/progress-bars.css +2 -2
- package/build/styles/styles/less/sequences.css +9 -14
- package/build/styles/styles/less/table.css +7 -7
- package/build/styles/styles/less/tooltip.css +6 -28
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/ListItem/_stories/variants/helpers.d.ts +1 -4
- package/build/types/ListItem/_stories/variants/helpers.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/Title/Title.d.ts +2 -2
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/build/types/common/PropsValues/typography.d.ts +1 -13
- package/build/types/common/PropsValues/typography.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Accordion/Accordion.css +6 -7
- package/src/Accordion/Accordion.less +6 -7
- package/src/Body/Body.css +1 -1
- package/src/Body/Body.less +1 -1
- package/src/Body/Body.test.tsx +4 -4
- package/src/Body/Body.tsx +2 -2
- package/src/Button/_stories/Button.test.story.tsx +0 -1
- package/src/Calendar/Calendar.css +4 -11
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.css +4 -11
- package/src/Calendar/TableLink/TableLink.less +4 -14
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Calendar/_stories/Calendar.test.story.tsx +0 -1
- package/src/Chips/Chip/Chip.css +3 -5
- package/src/Chips/Chip/Chip.less +2 -3
- package/src/CircularButton/_stories/CircularButton.story.tsx +16 -6
- package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +2 -3
- package/src/DateInput/_stories/DateInput.story.tsx +0 -1
- package/src/Decision/Decision.css +3 -4
- package/src/Decision/Decision.less +3 -4
- package/src/Decision/_stories/Decision.test.story.tsx +2 -3
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +1 -1
- package/src/Display/_stories/Display.story.tsx +6 -20
- package/src/Emphasis/Emphasis.css +1 -1
- package/src/Emphasis/Emphasis.less +1 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +1 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +1 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +4 -1
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +1 -2
- package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +2 -3
- package/src/Field/_stories/Field.test.story.tsx +2 -3
- 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 +2 -3
- package/src/Inputs/Input/Input.css +60 -67
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +2 -3
- package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -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 +2 -2
- package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +2 -3
- package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +60 -67
- package/src/Inputs/TextArea/_stories/TextArea.test.story.tsx +2 -3
- package/src/Inputs/_common.less +10 -12
- package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +1 -2
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_stories/Label.test.story.tsx +2 -3
- package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +8 -15
- package/src/ListItem/_stories/variants/helpers.tsx +1 -5
- package/src/Markup/Markup.css +2 -2
- package/src/Markup/Markup.less +2 -2
- package/src/MoneyInput/MoneyInput.css +6 -9
- package/src/MoneyInput/MoneyInput.less +7 -10
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +3 -5
- package/src/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +3 -3
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +43 -4
- package/src/Popover/Popover.less +2 -2
- package/src/ProgressBar/ProgressBar.css +2 -3
- package/src/ProgressBar/ProgressBar.less +11 -12
- package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +2 -3
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +2 -3
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +2 -3
- package/src/Prompt/InfoPrompt/_stories/InfoPrompt.test.story.tsx +2 -3
- package/src/Prompt/InlinePrompt/_stories/InlinePrompt.test.story.tsx +2 -3
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +1 -2
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +1 -2
- 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 +1 -1
- package/src/Table/Header/TableHeader.tsx +1 -1
- package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
- package/src/Table/Table.css +8 -18
- package/src/Table/Table.less +9 -20
- package/src/Table/_stories/Table.test.story.tsx +15 -26
- package/src/Tabs/Tab/Tab.tsx +1 -1
- 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 +2 -3
- package/src/Tile/Tile.css +3 -4
- package/src/Tile/Tile.less +3 -4
- package/src/Typeahead/Typeahead.css +2 -4
- package/src/Typeahead/Typeahead.less +1 -2
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +1 -1
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
- package/src/Upload/_stories/Upload.rtl.test.story.tsx +0 -1
- package/src/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +4 -7
- package/src/UploadInput/_stories/UploadInput.test.story.tsx +0 -1
- package/src/_deprecated/ActionButton/ActionButton.css +4 -3
- package/src/_deprecated/ActionButton/ActionButton.less +5 -4
- 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 +1 -2
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +1 -2
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +14 -49
- package/src/_deprecated/Select/Select.less +10 -14
- package/src/_deprecated/Select/Select.tsx +2 -2
- 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 +1 -20
- package/src/main.css +2432 -8907
- package/src/main.less +2 -3
- 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/less/accordion.css +44 -22
- package/src/styles/less/addons/_background-utilities.less +0 -5
- package/src/styles/less/badge.css +2 -2
- package/src/styles/less/badge.less +2 -2
- package/src/styles/less/button-groups.css +6 -29
- package/src/styles/less/button-groups.less +2 -3
- package/src/styles/less/buttons.css +11 -35
- package/src/styles/less/buttons.less +7 -7
- package/src/styles/less/core/_fonts.less +75 -7
- 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 +235 -81
- package/src/styles/less/decision.css +44 -22
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +54 -39
- package/src/styles/less/dropdowns.less +7 -8
- package/src/styles/less/droppable.css +6 -28
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +10 -41
- package/src/styles/less/footer.less +3 -4
- package/src/styles/less/forms/bootstrap-forms.css +100 -153
- package/src/styles/less/forms/bootstrap-forms.less +72 -85
- 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 +167 -203
- package/src/styles/less/input-groups.less +10 -20
- package/src/styles/less/list-group.css +42 -1
- package/src/styles/less/list-group.less +5 -8
- package/src/styles/less/mixins/_reset-text.less +1 -1
- package/src/styles/less/mixins/_text-emphasis.less +1 -7
- package/src/styles/less/modals.css +1 -1
- package/src/styles/less/modals.less +1 -1
- package/src/styles/less/navbar.css +81 -66
- 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 +0 -15
- package/src/styles/less/neptune-core.css +524 -5935
- package/src/styles/less/neptune.bundle.less +0 -4
- package/src/styles/less/neptune.css +2092 -8533
- package/src/styles/less/panels.css +2 -2
- package/src/styles/less/panels.less +2 -2
- package/src/styles/less/popovers.css +56 -39
- 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 +9 -14
- package/src/styles/less/sequences.less +10 -15
- package/src/styles/less/table.css +7 -7
- package/src/styles/less/table.less +7 -7
- package/src/styles/less/tooltip.css +6 -28
- package/src/styles/less/tooltip.less +1 -1
- package/src/styles/variables/legacy-variables.less +3 -3
- package/build/styles/Label/Label.css +0 -3
- package/src/Label/Label.css +0 -3
- package/src/Label/Label.less +0 -8
- package/src/styles/less/core/fonts/_fonts-ar.less +0 -140
- package/src/styles/less/core/fonts/_fonts-en.less +0 -99
- package/src/styles/less/core/fonts/_fonts-he.less +0 -8
- package/src/styles/less/core/fonts/_fonts-ja.less +0 -4247
- package/src/styles/less/core/fonts/_fonts-ko.less +0 -1079
- package/src/styles/less/core/fonts/_fonts-th.less +0 -8
- package/src/styles/less/core/fonts/_fonts-zh.less +0 -872
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
.tw-money-input .tw-money-input__fixed-currency {
|
|
5
5
|
padding-inline-start: 0 !important;
|
|
6
6
|
}
|
|
7
|
-
.tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection
|
|
8
|
-
.tw-money-input .tw-money-input__fixed-currency .wds-text-title-subsection {
|
|
7
|
+
.tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection {
|
|
9
8
|
color: var(--color-content-tertiary);
|
|
10
|
-
font-weight: var(--
|
|
9
|
+
font-weight: var(--font-weight-semi-bold);
|
|
11
10
|
}
|
|
12
11
|
[dir="rtl"] .tw-money-input .money-input__number-input {
|
|
13
12
|
text-align: end;
|
|
@@ -19,16 +18,14 @@
|
|
|
19
18
|
.tw-money-input.input-group-sm .form-control {
|
|
20
19
|
min-block-size: 34px;
|
|
21
20
|
}
|
|
22
|
-
.tw-money-input.input-group-sm .np-text-title-subsection
|
|
23
|
-
|
|
24
|
-
font-size: var(--wds-font-size-body);
|
|
21
|
+
.tw-money-input.input-group-sm .np-text-title-subsection {
|
|
22
|
+
font-size: var(--font-size-14);
|
|
25
23
|
}
|
|
26
24
|
.tw-money-input.input-group-md .form-control {
|
|
27
25
|
min-block-size: 53px;
|
|
28
26
|
}
|
|
29
|
-
.tw-money-input.input-group-md .np-text-title-subsection
|
|
30
|
-
|
|
31
|
-
font-size: var(--wds-font-size-body-large);
|
|
27
|
+
.tw-money-input.input-group-md .np-text-title-subsection {
|
|
28
|
+
font-size: var(--font-size-16);
|
|
32
29
|
}
|
|
33
30
|
.tw-money-input .input-group-addon {
|
|
34
31
|
flex-shrink: 0;
|
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
.tw-money-input__fixed-currency {
|
|
6
6
|
padding-left: 0 !important;
|
|
7
7
|
|
|
8
|
-
.np-text-title-subsection
|
|
9
|
-
.wds-text-title-subsection {
|
|
8
|
+
.np-text-title-subsection {
|
|
10
9
|
color: var(--color-content-tertiary);
|
|
11
|
-
font-weight: var(--
|
|
10
|
+
font-weight: var(--font-weight-semi-bold);
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
.money-input__number-input
|
|
14
|
+
.money-input__number-input{
|
|
16
15
|
[dir="rtl"] & {
|
|
17
16
|
text-align: end;
|
|
18
17
|
}
|
|
@@ -27,9 +26,8 @@
|
|
|
27
26
|
.form-control {
|
|
28
27
|
min-height: 34px;
|
|
29
28
|
}
|
|
30
|
-
.np-text-title-subsection
|
|
31
|
-
|
|
32
|
-
font-size: var(--wds-font-size-body);
|
|
29
|
+
.np-text-title-subsection {
|
|
30
|
+
font-size: var(--font-size-14);
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
|
|
@@ -37,9 +35,8 @@
|
|
|
37
35
|
.form-control {
|
|
38
36
|
min-height: 53px;
|
|
39
37
|
}
|
|
40
|
-
.np-text-title-subsection
|
|
41
|
-
|
|
42
|
-
font-size: var(--wds-font-size-body-large);
|
|
38
|
+
.np-text-title-subsection {
|
|
39
|
+
font-size: var(--font-size-16);
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -47,7 +47,7 @@ const sharedProps = {
|
|
|
47
47
|
|
|
48
48
|
export const TriggerVariants: Story = {
|
|
49
49
|
render: () => (
|
|
50
|
-
|
|
50
|
+
<>
|
|
51
51
|
<Field label="Single currency — large (flag + code)">
|
|
52
52
|
<MoneyInput {...sharedProps} size="lg" currencies={[]} selectedCurrency={eurCurrency} />
|
|
53
53
|
</Field>
|
|
@@ -73,11 +73,9 @@ export const TriggerVariants: Story = {
|
|
|
73
73
|
selectedCurrency={eurCurrency}
|
|
74
74
|
/>
|
|
75
75
|
</Field>
|
|
76
|
-
|
|
76
|
+
</>
|
|
77
77
|
),
|
|
78
|
-
...withRTLDiff(
|
|
79
|
-
fixedRows: { heights: 'auto' },
|
|
80
|
-
}),
|
|
78
|
+
...withRTLDiff(),
|
|
81
79
|
};
|
|
82
80
|
|
|
83
81
|
export const OpenDropdown: Story = {
|
package/src/Nudge/Nudge.css
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--nudge-container-padding: var(--size-16);
|
|
10
10
|
--nudge-content-flex-alignment: center;
|
|
11
11
|
--nudge-title-color: var(--color-content-primary);
|
|
12
|
-
--nudge-title-font-weight: var(--
|
|
13
|
-
--nudge-title-line-height: var(--
|
|
12
|
+
--nudge-title-font-weight: var(--font-weight-semi-bold);
|
|
13
|
+
--nudge-title-line-height: var(--line-height-title);
|
|
14
14
|
--nudge-control-width: var(--size-24);
|
|
15
15
|
--nudge-control-background-color: var(--color-background-neutral);
|
|
16
16
|
align-items: stretch;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
margin: 0;
|
|
142
142
|
}
|
|
143
143
|
.wds-nudge-container .wds-nudge-content .wds-nudge-link {
|
|
144
|
-
font-weight: var(--
|
|
144
|
+
font-weight: var(--font-weight-semi-bold);
|
|
145
145
|
margin-block-start: var(--size-4);
|
|
146
146
|
-webkit-text-decoration: var(--nudge-link-text-decoration);
|
|
147
147
|
text-decoration: var(--nudge-link-text-decoration);
|
package/src/Nudge/Nudge.less
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--nudge-container-padding: var(--size-16);
|
|
10
10
|
--nudge-content-flex-alignment: center;
|
|
11
11
|
--nudge-title-color: var(--color-content-primary);
|
|
12
|
-
--nudge-title-font-weight: var(--
|
|
13
|
-
--nudge-title-line-height: var(--
|
|
12
|
+
--nudge-title-font-weight: var(--font-weight-semi-bold);
|
|
13
|
+
--nudge-title-line-height: var(--line-height-title);
|
|
14
14
|
--nudge-control-width: var(--size-24);
|
|
15
15
|
--nudge-control-background-color: var(--color-background-neutral);
|
|
16
16
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.wds-nudge-link {
|
|
123
|
-
font-weight: var(--
|
|
123
|
+
font-weight: var(--font-weight-semi-bold);
|
|
124
124
|
margin-top: var(--size-4);
|
|
125
125
|
text-decoration: var(--nudge-link-text-decoration);
|
|
126
126
|
}
|
|
@@ -15,7 +15,7 @@ type Story = StoryObj<typeof PhoneNumberInput>;
|
|
|
15
15
|
|
|
16
16
|
export const Sizes: Story = {
|
|
17
17
|
render: () => (
|
|
18
|
-
|
|
18
|
+
<>
|
|
19
19
|
<Field label="Default (md)">
|
|
20
20
|
<PhoneNumberInput onChange={() => {}} />
|
|
21
21
|
</Field>
|
|
@@ -31,9 +31,9 @@ export const Sizes: Story = {
|
|
|
31
31
|
<Field label="With initial value">
|
|
32
32
|
<PhoneNumberInput initialValue="+447573135343" onChange={() => {}} />
|
|
33
33
|
</Field>
|
|
34
|
-
|
|
34
|
+
</>
|
|
35
35
|
),
|
|
36
|
-
...withRTLDiff({ renderAs: 'iframe'
|
|
36
|
+
...withRTLDiff({ renderAs: 'iframe' }),
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
export const DropdownOpen: Story = {
|
|
@@ -22,7 +22,7 @@ const PocketCard = ({ variant }: { variant?: PocketVariant } = {}) => (
|
|
|
22
22
|
{variant}
|
|
23
23
|
</span>
|
|
24
24
|
)}
|
|
25
|
-
<strong className="
|
|
25
|
+
<strong className="np-text-title-screen" style={{ color: 'inherit' }}>
|
|
26
26
|
Some headline text
|
|
27
27
|
</strong>
|
|
28
28
|
<p style={{ margin: 0 }}>A bit of body copy</p>
|
|
@@ -227,7 +227,7 @@ export const ExposedTokens: Story = {
|
|
|
227
227
|
<PocketSurface key={variant} pocket={variant}>
|
|
228
228
|
<div className="p-a-3">
|
|
229
229
|
<h4
|
|
230
|
-
className="d-block m-b-2 text-capitalize
|
|
230
|
+
className="d-block m-b-2 text-capitalize np-text-title-body"
|
|
231
231
|
style={{ color: 'inherit' }}
|
|
232
232
|
>
|
|
233
233
|
{variant}
|
package/src/Popover/Popover.css
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
2
|
-
margin-block-end: initial;
|
|
3
|
-
}
|
|
4
1
|
.np-theme-personal .np-popover__container {
|
|
5
2
|
border-radius: var(--radius-medium);
|
|
6
3
|
}
|
|
7
4
|
.np-popover__container .np-popover__content {
|
|
8
5
|
color: var(--color-content-secondary);
|
|
9
|
-
font-size: var(--
|
|
6
|
+
font-size: var(--font-size-14);
|
|
10
7
|
}
|
|
11
8
|
.np-popover__container .np-popover__content p:last-child {
|
|
12
9
|
margin-block-end: 0;
|
|
@@ -20,7 +17,49 @@
|
|
|
20
17
|
padding: var(--size-24);
|
|
21
18
|
}
|
|
22
19
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
20
|
+
margin: 0;
|
|
21
|
+
color: var(--color-content-primary);
|
|
22
|
+
line-height: var(--line-height-title);
|
|
23
|
+
letter-spacing: 0;
|
|
24
|
+
word-wrap: break-word;
|
|
23
25
|
margin-block-end: initial;
|
|
26
|
+
font-weight: var(--font-weight-semi-bold);
|
|
27
|
+
font-size: var(--font-size-26);
|
|
28
|
+
letter-spacing: -0.02em;
|
|
29
|
+
line-height: 122%;
|
|
30
|
+
}
|
|
31
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
32
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
33
|
+
hyphens: auto;
|
|
34
|
+
hyphenate-limit-chars: 7 3;
|
|
35
|
+
}
|
|
36
|
+
@media (min-width: 840px) {
|
|
37
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
38
|
+
hyphenate-limit-chars: 8 3;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@media (min-width: 1160px) {
|
|
42
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
43
|
+
hyphenate-limit-chars: 10 4 3;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
48
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
49
|
+
hyphens: auto;
|
|
50
|
+
-webkit-hyphenate-limit-before: 3;
|
|
51
|
+
-webkit-hyphenate-limit-after: 3;
|
|
52
|
+
}
|
|
53
|
+
@media (min-width: 1160px) {
|
|
54
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
55
|
+
-webkit-hyphenate-limit-before: 4;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.np-popover__container.np-bottom-sheet .np-popover__title + p,
|
|
60
|
+
.np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
|
|
61
|
+
.np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {
|
|
62
|
+
margin-block-start: var(--size-8);
|
|
24
63
|
}
|
|
25
64
|
.np-popover__container.np-bottom-sheet .np-popover__content {
|
|
26
65
|
padding-block: var(--size-32);
|
package/src/Popover/Popover.less
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.np-popover__content {
|
|
12
12
|
color: var(--color-content-secondary);
|
|
13
|
-
font-size: var(--
|
|
13
|
+
font-size: var(--font-size-14);
|
|
14
14
|
|
|
15
15
|
p:last-child {
|
|
16
16
|
margin-bottom: 0;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
&.np-bottom-sheet {
|
|
32
32
|
.np-popover__title {
|
|
33
|
-
.
|
|
33
|
+
.np-text-title-section();
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.np-popover__content {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
.np-progress-bar__title .h4
|
|
2
|
-
.np-progress-bar__title .wds-text-title-body {
|
|
1
|
+
.np-progress-bar__title .h4 {
|
|
3
2
|
color: var(--color-content-primary);
|
|
4
3
|
margin-block-end: var(--size-4);
|
|
5
4
|
}
|
|
6
5
|
.np-progress-bar p {
|
|
7
6
|
color: var(--color-content-primary);
|
|
8
7
|
margin-block-start: var(--size-4);
|
|
9
|
-
font-weight: var(--
|
|
8
|
+
font-weight: var(--font-weight-semi-bold);
|
|
10
9
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
.np-progress-bar {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
&__title {
|
|
3
|
+
.h4 {
|
|
4
|
+
color: var(--color-content-primary);
|
|
5
|
+
margin-bottom: var(--size-4);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
p {
|
|
5
10
|
color: var(--color-content-primary);
|
|
6
|
-
margin-
|
|
11
|
+
margin-top: var(--size-4);
|
|
12
|
+
font-weight: var(--font-weight-semi-bold);
|
|
7
13
|
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
p {
|
|
11
|
-
color: var(--color-content-primary);
|
|
12
|
-
margin-top: var(--size-4);
|
|
13
|
-
font-weight: var(--wds-font-weight-body-bold);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
14
|
+
}
|
|
@@ -15,7 +15,7 @@ export const RTLDiff: Story = {
|
|
|
15
15
|
render: () => {
|
|
16
16
|
const i18n = useRtlDiffI18n();
|
|
17
17
|
return (
|
|
18
|
-
|
|
18
|
+
<>
|
|
19
19
|
<ProgressBar
|
|
20
20
|
id="progress-bar-with-description"
|
|
21
21
|
title={i18n.title1}
|
|
@@ -29,11 +29,10 @@ export const RTLDiff: Story = {
|
|
|
29
29
|
progress={{ value: 800, max: 1000 }}
|
|
30
30
|
textEnd={i18n.textEnd2}
|
|
31
31
|
/>
|
|
32
|
-
|
|
32
|
+
</>
|
|
33
33
|
);
|
|
34
34
|
},
|
|
35
35
|
...withRTLDiff({
|
|
36
|
-
fixedRows: { heights: 'auto' },
|
|
37
36
|
i18n: {
|
|
38
37
|
title1: { en: 'Send 5,550 GBP', ar: 'أرسل ٥٬٥٥٠ جنيه إسترليني' },
|
|
39
38
|
description: {
|
|
@@ -278,7 +278,7 @@ export const RTLDiff: Story = {
|
|
|
278
278
|
render: () => {
|
|
279
279
|
const i18n = useRtlDiffI18n();
|
|
280
280
|
return (
|
|
281
|
-
|
|
281
|
+
<>
|
|
282
282
|
<ActionPrompt
|
|
283
283
|
title={i18n.defaultIconTitle}
|
|
284
284
|
description={i18n.defaultIconDescription}
|
|
@@ -311,11 +311,10 @@ export const RTLDiff: Story = {
|
|
|
311
311
|
actionSecondary={{ label: i18n.cancelAction }}
|
|
312
312
|
onDismiss={() => {}}
|
|
313
313
|
/>
|
|
314
|
-
|
|
314
|
+
</>
|
|
315
315
|
);
|
|
316
316
|
},
|
|
317
317
|
...withRTLDiff({
|
|
318
|
-
fixedRows: { heights: 'auto' },
|
|
319
318
|
i18n: {
|
|
320
319
|
defaultIconTitle: { en: 'Default status icon', ar: 'أيقونة الحالة الافتراضية' },
|
|
321
320
|
defaultIconDescription: {
|
|
@@ -485,7 +485,7 @@ export const RTLDiff: Story = {
|
|
|
485
485
|
render: () => {
|
|
486
486
|
const i18n = useRtlDiffI18n();
|
|
487
487
|
return (
|
|
488
|
-
|
|
488
|
+
<>
|
|
489
489
|
<CriticalBanner title={i18n.titleOnly} description={i18n.titleOnlyDescription} />
|
|
490
490
|
<CriticalBanner
|
|
491
491
|
title={i18n.withPrimaryAction}
|
|
@@ -511,11 +511,10 @@ export const RTLDiff: Story = {
|
|
|
511
511
|
action={{ label: i18n.connectBank }}
|
|
512
512
|
actionSecondary={{ label: i18n.learnMore }}
|
|
513
513
|
/>
|
|
514
|
-
|
|
514
|
+
</>
|
|
515
515
|
);
|
|
516
516
|
},
|
|
517
517
|
...withRTLDiff({
|
|
518
|
-
fixedRows: { heights: [10, 12, 12, 13, 13] },
|
|
519
518
|
renderAs: 'iframe',
|
|
520
519
|
i18n: {
|
|
521
520
|
titleOnly: { en: 'Title only', ar: 'العنوان فقط' },
|
|
@@ -559,7 +559,7 @@ export const RTLDiff: Story = {
|
|
|
559
559
|
render: () => {
|
|
560
560
|
const i18n = useRtlDiffI18n();
|
|
561
561
|
return (
|
|
562
|
-
|
|
562
|
+
<>
|
|
563
563
|
<InfoPrompt description={i18n.basicDescription} />
|
|
564
564
|
<InfoPrompt title={i18n.withTitleHeading} description={i18n.withTitleDescription} />
|
|
565
565
|
<InfoPrompt description={i18n.dismissibleDescription} onDismiss={() => {}} />
|
|
@@ -579,11 +579,10 @@ export const RTLDiff: Story = {
|
|
|
579
579
|
action={{ label: i18n.viewDetails, href: '#' }}
|
|
580
580
|
onDismiss={() => {}}
|
|
581
581
|
/>
|
|
582
|
-
|
|
582
|
+
</>
|
|
583
583
|
);
|
|
584
584
|
},
|
|
585
585
|
...withRTLDiff({
|
|
586
|
-
fixedRows: { heights: 'auto' },
|
|
587
586
|
i18n: {
|
|
588
587
|
basicDescription: { en: 'Basic description only.', ar: 'الوصف الأساسي فقط.' },
|
|
589
588
|
withTitleHeading: { en: 'With Title', ar: 'مع عنوان' },
|
|
@@ -25,7 +25,7 @@ export const RTLDiff: Story = {
|
|
|
25
25
|
render: () => {
|
|
26
26
|
const i18n = useRtlDiffI18n();
|
|
27
27
|
return (
|
|
28
|
-
|
|
28
|
+
<>
|
|
29
29
|
{/* default icon at inline-start, auto width */}
|
|
30
30
|
<InlinePrompt sentiment="positive">{i18n.defaultIcon}</InlinePrompt>
|
|
31
31
|
|
|
@@ -43,11 +43,10 @@ export const RTLDiff: Story = {
|
|
|
43
43
|
<InlinePrompt sentiment="warning" width="full">
|
|
44
44
|
{i18n.multiLine}
|
|
45
45
|
</InlinePrompt>
|
|
46
|
-
|
|
46
|
+
</>
|
|
47
47
|
);
|
|
48
48
|
},
|
|
49
49
|
...withRTLDiff({
|
|
50
|
-
fixedRows: { heights: 'auto' },
|
|
51
50
|
i18n: {
|
|
52
51
|
defaultIcon: {
|
|
53
52
|
en: 'Short content with default icon.',
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
.wds-prompt__media-wrapper {
|
|
23
23
|
align-self: flex-start;
|
|
24
|
-
|
|
25
|
-
min-block-size: calc(var(--wds-line-height-body) * var(--wds-font-size-body));
|
|
24
|
+
padding-block-start: calc(var(--size-4) - 1px);
|
|
26
25
|
}
|
|
27
26
|
.wds-prompt__media-wrapper .tw-icon-tags,
|
|
28
27
|
.wds-prompt__media-wrapper .tw-icon-confetti {
|
package/src/Stepper/Stepper.tsx
CHANGED
|
@@ -73,7 +73,7 @@ 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 ? 'np-text-body-default-bold tw-stepper__step--active' : 'np-text-body-default',
|
|
77
77
|
clickable && 'tw-stepper__step--clickable',
|
|
78
78
|
step.hoverLabel && 'tw-stepper__step--has-tooltip',
|
|
79
79
|
)}
|
|
@@ -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
|
|
53
|
+
className="np-table-header-content np-text-body-default-bold"
|
|
54
54
|
data-testid="np-table-empty-header"
|
|
55
55
|
>
|
|
56
56
|
|
|
@@ -13,7 +13,7 @@ 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('np-text-body-default');
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it('applies the custom class name', () => {
|
|
@@ -23,12 +23,12 @@ describe('TableStatusText Component', () => {
|
|
|
23
23
|
|
|
24
24
|
it('applies the default typography class when typography is not provided', () => {
|
|
25
25
|
renderComponent();
|
|
26
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
26
|
+
expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default');
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
it('applies the typography class when typography equals `default-bold`', () => {
|
|
30
30
|
renderComponent({ typography: 'default-bold' });
|
|
31
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
31
|
+
expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it('does not render any icon when status is not provided', () => {
|
|
@@ -39,14 +39,14 @@ describe('TableStatusText Component', () => {
|
|
|
39
39
|
|
|
40
40
|
it('applies the typography and status classes, renders the error icon when status equals `error`', () => {
|
|
41
41
|
renderComponent({ status: 'error' });
|
|
42
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
42
|
+
expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
|
|
43
43
|
expect(screen.getByText('Status Text')).toHaveClass('np-table-content--error');
|
|
44
44
|
expect(screen.getByTestId('alert-icon')).toBeInTheDocument();
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
it('applies the typography and status classes, renders the success icon when status equals `success`', () => {
|
|
48
48
|
renderComponent({ status: 'success' });
|
|
49
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
49
|
+
expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
|
|
50
50
|
expect(screen.getByText('Status Text')).toHaveClass('np-table-content--success');
|
|
51
51
|
expect(screen.getByTestId('check-icon')).toBeInTheDocument();
|
|
52
52
|
});
|
package/src/Table/Table.css
CHANGED
|
@@ -37,16 +37,10 @@
|
|
|
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,
|
|
41
|
-
right center,
|
|
42
|
-
left center,
|
|
43
|
-
right center;
|
|
40
|
+
background-position: left center, right center, left center, right center;
|
|
44
41
|
background-repeat: no-repeat;
|
|
45
42
|
background-color: var(--color-contrast-overlay);
|
|
46
|
-
background-size: 15px 100%,
|
|
47
|
-
15px 100%,
|
|
48
|
-
15px 100%,
|
|
49
|
-
15px 100%;
|
|
43
|
+
background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
|
|
50
44
|
background-attachment: local, local, scroll, scroll;
|
|
51
45
|
overflow-x: auto;
|
|
52
46
|
border-radius: 10px;
|
|
@@ -136,9 +130,7 @@
|
|
|
136
130
|
padding-inline-end: 0;
|
|
137
131
|
}
|
|
138
132
|
.np-table-header.np-table-header--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 {
|
|
133
|
+
.np-table-cell.np-table-cell--right > .np-text-body-default {
|
|
142
134
|
text-align: end;
|
|
143
135
|
}
|
|
144
136
|
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
@@ -167,8 +159,8 @@
|
|
|
167
159
|
padding-block-start: 5px;
|
|
168
160
|
padding-block-end: 5px;
|
|
169
161
|
white-space: nowrap;
|
|
170
|
-
line-height: var(--
|
|
171
|
-
letter-spacing: var(--
|
|
162
|
+
line-height: var(--line-height-22);
|
|
163
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
172
164
|
}
|
|
173
165
|
.np-table-header--error {
|
|
174
166
|
color: var(--color-sentiment-negative);
|
|
@@ -188,8 +180,7 @@
|
|
|
188
180
|
.np-table-cell--primary {
|
|
189
181
|
min-inline-size: 200px;
|
|
190
182
|
}
|
|
191
|
-
.np-table-cell--currency .np-text-body-default
|
|
192
|
-
.np-table-cell--currency .wds-text-body-default {
|
|
183
|
+
.np-table-cell--currency .np-text-body-default {
|
|
193
184
|
white-space: nowrap;
|
|
194
185
|
}
|
|
195
186
|
.np-table-cell .tw-chevron {
|
|
@@ -202,8 +193,7 @@
|
|
|
202
193
|
background-color: var(--color-background-neutral);
|
|
203
194
|
padding: 0;
|
|
204
195
|
}
|
|
205
|
-
.np-table-cell .np-text-body-default-bold
|
|
206
|
-
.np-table-cell .wds-text-body-default-bold {
|
|
196
|
+
.np-table-cell .np-text-body-default-bold {
|
|
207
197
|
display: flex;
|
|
208
198
|
align-items: center;
|
|
209
199
|
color: var(--color-content-primary);
|
|
@@ -242,7 +232,7 @@
|
|
|
242
232
|
.np-table-content-body {
|
|
243
233
|
display: flex;
|
|
244
234
|
flex-direction: column;
|
|
245
|
-
font-size: var(--
|
|
235
|
+
font-size: var(--font-size-12);
|
|
246
236
|
color: var(--color-content-tertiary);
|
|
247
237
|
}
|
|
248
238
|
.np-table-content--reversed {
|