@transferwise/components 46.165.5 → 46.167.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/CardContainer/CardContainer.js +34 -0
- package/build/CardContainer/CardContainer.js.map +1 -0
- package/build/CardContainer/CardContainer.mjs +30 -0
- package/build/CardContainer/CardContainer.mjs.map +1 -0
- package/build/CardWidget/CardWidget.js +98 -0
- package/build/CardWidget/CardWidget.js.map +1 -0
- package/build/CardWidget/CardWidget.mjs +94 -0
- package/build/CardWidget/CardWidget.mjs.map +1 -0
- package/build/CardWidget/CardWidgetAction.js +73 -0
- package/build/CardWidget/CardWidgetAction.js.map +1 -0
- package/build/CardWidget/CardWidgetAction.mjs +68 -0
- package/build/CardWidget/CardWidgetAction.mjs.map +1 -0
- 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/ListItem/ListItem.js +2 -0
- package/build/ListItem/ListItem.js.map +1 -1
- package/build/ListItem/ListItem.mjs +2 -0
- package/build/ListItem/ListItem.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/index.js +4 -0
- package/build/index.js.map +1 -1
- package/build/index.mjs +2 -0
- package/build/index.mjs.map +1 -1
- package/build/main.css +9245 -1899
- 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/CardContainer/CardContainer.css +108 -0
- package/build/styles/CardWidget/CardWidget.css +78 -0
- 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/ListItem/ListItem.css +8 -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 +9245 -1899
- 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/CardContainer/CardContainer.d.ts +8 -0
- package/build/types/CardContainer/CardContainer.d.ts.map +1 -0
- package/build/types/CardContainer/CardContainer.types.d.ts +55 -0
- package/build/types/CardContainer/CardContainer.types.d.ts.map +1 -0
- package/build/types/CardContainer/_stories/helpers.d.ts +3 -0
- package/build/types/CardContainer/_stories/helpers.d.ts.map +1 -0
- package/build/types/CardContainer/index.d.ts +3 -0
- package/build/types/CardContainer/index.d.ts.map +1 -0
- package/build/types/CardWidget/CardWidget.d.ts +10 -0
- package/build/types/CardWidget/CardWidget.d.ts.map +1 -0
- package/build/types/CardWidget/CardWidget.types.d.ts +55 -0
- package/build/types/CardWidget/CardWidget.types.d.ts.map +1 -0
- package/build/types/CardWidget/CardWidgetAction.d.ts +54 -0
- package/build/types/CardWidget/CardWidgetAction.d.ts.map +1 -0
- package/build/types/CardWidget/index.d.ts +4 -0
- package/build/types/CardWidget/index.d.ts.map +1 -0
- 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/ListItem/ListItem.d.ts +1 -1
- package/build/types/ListItem/ListItem.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/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/build/types/index.d.ts +4 -0
- package/build/types/index.d.ts.map +1 -1
- package/package.json +4 -4
- 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/CardContainer/CardContainer.css +108 -0
- package/src/CardContainer/CardContainer.less +171 -0
- package/src/CardContainer/CardContainer.test.tsx +150 -0
- package/src/CardContainer/CardContainer.tsx +51 -0
- package/src/CardContainer/CardContainer.types.ts +62 -0
- package/src/CardContainer/_stories/CardContainer.story.tsx +167 -0
- package/src/CardContainer/_stories/CardContainer.test.story.tsx +103 -0
- package/src/CardContainer/_stories/helpers.tsx +50 -0
- package/src/CardContainer/index.ts +6 -0
- package/src/CardWidget/CardWidget.css +78 -0
- package/src/CardWidget/CardWidget.less +107 -0
- package/src/CardWidget/CardWidget.test.tsx +221 -0
- package/src/CardWidget/CardWidget.tsx +78 -0
- package/src/CardWidget/CardWidget.types.ts +63 -0
- package/src/CardWidget/CardWidgetAction.tsx +128 -0
- package/src/CardWidget/_stories/CardWidget.story.tsx +238 -0
- package/src/CardWidget/_stories/CardWidget.test.story.tsx +350 -0
- package/src/CardWidget/index.ts +3 -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/ListItem/ListItem.css +8 -0
- package/src/ListItem/ListItem.less +8 -0
- package/src/ListItem/ListItem.test.tsx +20 -0
- package/src/ListItem/ListItem.tsx +3 -1
- package/src/ListItem/_stories/ListItem.layout.test.story.tsx +1 -1
- package/src/ListItem/_stories/ListItem.story.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/CriticalBanner/_stories/CriticalBanner.docs.mdx +122 -0
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.story.tsx +0 -2
- 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/index.ts +13 -0
- package/src/main.css +9245 -1899
- package/src/main.less +5 -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/FlowNavigation/_stories/FlowNavigation.CriticalBanner.docs.mdx +0 -66
- 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
|
@@ -1,4 +1,91 @@
|
|
|
1
|
-
.np-form-control {
|
|
1
|
+
.np-form-control--size-lg {
|
|
2
|
+
margin: 0;color: var(--color-content-primary);word-wrap: break-word;
|
|
3
|
+
}
|
|
4
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
+
.np-form-control--size-lg {
|
|
6
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
+
}
|
|
8
|
+
@media (min-width: 840px) {
|
|
9
|
+
.np-form-control--size-lg {
|
|
10
|
+
hyphenate-limit-chars: 8 3;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 1160px) {
|
|
14
|
+
.np-form-control--size-lg {
|
|
15
|
+
hyphenate-limit-chars: 10 4 3;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
+
.np-form-control--size-lg {
|
|
20
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: 1160px) {
|
|
23
|
+
.np-form-control--size-lg {
|
|
24
|
+
-webkit-hyphenate-limit-before: 4;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}.np-form-control--size-lg {
|
|
28
|
+
margin-block-end: initial;
|
|
29
|
+
}
|
|
30
|
+
.np-form-control--size-sm {
|
|
31
|
+
word-wrap: break-word;
|
|
32
|
+
}
|
|
33
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
34
|
+
.np-form-control--size-sm {
|
|
35
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
36
|
+
}
|
|
37
|
+
@media (min-width: 840px) {
|
|
38
|
+
.np-form-control--size-sm {
|
|
39
|
+
hyphenate-limit-chars: 8 3;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (min-width: 1160px) {
|
|
43
|
+
.np-form-control--size-sm {
|
|
44
|
+
hyphenate-limit-chars: 10 4 3;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
48
|
+
.np-form-control--size-sm {
|
|
49
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
50
|
+
}
|
|
51
|
+
@media (min-width: 1160px) {
|
|
52
|
+
.np-form-control--size-sm {
|
|
53
|
+
-webkit-hyphenate-limit-before: 4;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}.np-form-control--size-auto,
|
|
57
|
+
.np-form-control--size-md {
|
|
58
|
+
word-wrap: break-word;
|
|
59
|
+
}
|
|
60
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
61
|
+
.np-form-control--size-auto,
|
|
62
|
+
.np-form-control--size-md {
|
|
63
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
64
|
+
}
|
|
65
|
+
@media (min-width: 840px) {
|
|
66
|
+
.np-form-control--size-auto,
|
|
67
|
+
.np-form-control--size-md {
|
|
68
|
+
hyphenate-limit-chars: 8 3;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@media (min-width: 1160px) {
|
|
72
|
+
.np-form-control--size-auto,
|
|
73
|
+
.np-form-control--size-md {
|
|
74
|
+
hyphenate-limit-chars: 10 4 3;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
78
|
+
.np-form-control--size-auto,
|
|
79
|
+
.np-form-control--size-md {
|
|
80
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
81
|
+
}
|
|
82
|
+
@media (min-width: 1160px) {
|
|
83
|
+
.np-form-control--size-auto,
|
|
84
|
+
.np-form-control--size-md {
|
|
85
|
+
-webkit-hyphenate-limit-before: 4;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}.np-form-control {
|
|
2
89
|
--ring-width: 1px;
|
|
3
90
|
--ring-color: var(--color-interactive-secondary);
|
|
4
91
|
border: none;
|
|
@@ -35,10 +122,6 @@
|
|
|
35
122
|
--ring-color: var(--color-interactive-primary);
|
|
36
123
|
}
|
|
37
124
|
.np-form-control--size-auto {
|
|
38
|
-
font-weight: var(--font-weight-regular);
|
|
39
|
-
font-size: var(--font-size-16);
|
|
40
|
-
line-height: 150%;
|
|
41
|
-
letter-spacing: -0.011em;
|
|
42
125
|
word-wrap: break-word;
|
|
43
126
|
padding-block-start: var(--size-12);
|
|
44
127
|
padding-block-end: var(--size-12);
|
|
@@ -78,12 +161,8 @@
|
|
|
78
161
|
padding-block-end: 0 !important;
|
|
79
162
|
}
|
|
80
163
|
.np-form-control--size-sm {
|
|
81
|
-
font-size: var(--font-size-14);
|
|
82
|
-
line-height: 155%;
|
|
83
|
-
letter-spacing: -0.006em;
|
|
84
|
-
font-weight: var(--font-weight-regular);
|
|
85
164
|
word-wrap: break-word;
|
|
86
|
-
block-size: var(--size-
|
|
165
|
+
block-size: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
87
166
|
}
|
|
88
167
|
@supports (hyphenate-limit-chars: 1) {
|
|
89
168
|
.np-form-control--size-sm {
|
|
@@ -115,16 +194,12 @@
|
|
|
115
194
|
}
|
|
116
195
|
@media (max-width: 320px) {
|
|
117
196
|
.np-form-control--size-sm {
|
|
118
|
-
block-size: var(--size-
|
|
197
|
+
block-size: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
119
198
|
}
|
|
120
199
|
}
|
|
121
200
|
.np-form-control--size-md {
|
|
122
|
-
font-weight: var(--font-weight-regular);
|
|
123
|
-
font-size: var(--font-size-16);
|
|
124
|
-
line-height: 150%;
|
|
125
|
-
letter-spacing: -0.011em;
|
|
126
201
|
word-wrap: break-word;
|
|
127
|
-
block-size: var(--size-
|
|
202
|
+
block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
128
203
|
}
|
|
129
204
|
@supports (hyphenate-limit-chars: 1) {
|
|
130
205
|
.np-form-control--size-md {
|
|
@@ -156,21 +231,15 @@
|
|
|
156
231
|
}
|
|
157
232
|
@media (max-width: 320px) {
|
|
158
233
|
.np-form-control--size-md {
|
|
159
|
-
block-size: var(--size-
|
|
234
|
+
block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
160
235
|
}
|
|
161
236
|
}
|
|
162
237
|
.np-form-control--size-lg {
|
|
163
238
|
margin: 0;
|
|
164
239
|
color: var(--color-content-primary);
|
|
165
|
-
line-height: var(--line-height-title);
|
|
166
|
-
letter-spacing: 0;
|
|
167
240
|
word-wrap: break-word;
|
|
168
241
|
margin-block-end: initial;
|
|
169
|
-
|
|
170
|
-
font-weight: var(--font-weight-semi-bold);
|
|
171
|
-
letter-spacing: -0.018em;
|
|
172
|
-
line-height: 125%;
|
|
173
|
-
block-size: var(--size-72) !important;
|
|
242
|
+
block-size: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
|
|
174
243
|
}
|
|
175
244
|
@supports (hyphenate-limit-chars: 1) {
|
|
176
245
|
.np-form-control--size-lg {
|
|
@@ -205,6 +274,11 @@
|
|
|
205
274
|
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
206
275
|
margin-block-start: var(--size-8);
|
|
207
276
|
}
|
|
277
|
+
@media (max-width: 320px) {
|
|
278
|
+
.np-form-control--size-lg {
|
|
279
|
+
block-size: calc(2 * var(--size-12) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
208
282
|
.np-text-area {
|
|
209
283
|
min-block-size: var(--size-72);
|
|
210
284
|
scroll-padding-top: var(--size-8);
|
package/src/Inputs/_common.less
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import (reference)
|
|
1
|
+
@import (reference) "./../styles/less/core/_typography.less";
|
|
2
2
|
|
|
3
3
|
.np-form-control {
|
|
4
4
|
--ring-width: 1px;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&--size-auto {
|
|
43
|
-
.
|
|
43
|
+
.wds-text-body-large;
|
|
44
44
|
padding-top: var(--size-12);
|
|
45
45
|
padding-bottom: var(--size-12);
|
|
46
46
|
}
|
|
@@ -54,23 +54,29 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&--size-sm {
|
|
57
|
-
.
|
|
58
|
-
height: var(--size-
|
|
57
|
+
.wds-text-body-default;
|
|
58
|
+
height: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
59
|
+
|
|
59
60
|
@media (--screen-400-zoom) {
|
|
60
|
-
height: var(--size-
|
|
61
|
+
height: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
&--size-md {
|
|
65
|
-
.
|
|
66
|
-
height: var(--size-
|
|
66
|
+
.wds-text-body-large;
|
|
67
|
+
height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
68
|
+
|
|
67
69
|
@media (--screen-400-zoom) {
|
|
68
|
-
height: var(--size-
|
|
70
|
+
height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
&--size-lg {
|
|
73
|
-
.
|
|
74
|
-
height: var(--size-
|
|
75
|
+
.wds-text-title-subsection;
|
|
76
|
+
height: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
|
|
77
|
+
|
|
78
|
+
@media (--screen-400-zoom) {
|
|
79
|
+
height: calc(2 * var(--size-12) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
|
|
80
|
+
}
|
|
75
81
|
}
|
|
76
82
|
}
|
package/src/Label/Label.tsx
CHANGED
|
@@ -29,7 +29,7 @@ const Label = forwardRef<HTMLLabelElement, LabelProps>(
|
|
|
29
29
|
id={id}
|
|
30
30
|
htmlFor={htmlFor}
|
|
31
31
|
className={clsx(
|
|
32
|
-
'np-label d-flex flex-column np-text-body-default-bold text-primary m-b-0',
|
|
32
|
+
'np-label d-flex flex-column np-text-body-default-bold wds-text-body-default-bold text-primary m-b-0',
|
|
33
33
|
className,
|
|
34
34
|
)}
|
|
35
35
|
>
|
|
@@ -391,6 +391,14 @@
|
|
|
391
391
|
padding-inline: 0;
|
|
392
392
|
container-type: inline-size;
|
|
393
393
|
}
|
|
394
|
+
.wds-list-item-paddingY-8 {
|
|
395
|
+
padding-block: var(--size-8);
|
|
396
|
+
padding-inline: 0;
|
|
397
|
+
}
|
|
398
|
+
.wds-list-item-paddingY-16 {
|
|
399
|
+
padding-block: var(--size-16);
|
|
400
|
+
padding-inline: 0;
|
|
401
|
+
}
|
|
394
402
|
.wds-list-item-paddingY-24 {
|
|
395
403
|
padding-block: var(--size-24);
|
|
396
404
|
padding-inline: 0;
|
|
@@ -1516,16 +1516,36 @@ describe('ListItem', () => {
|
|
|
1516
1516
|
describe('paddingY', () => {
|
|
1517
1517
|
it('uses the default vertical padding when not set', () => {
|
|
1518
1518
|
render(<ListItem title="Test Title" />);
|
|
1519
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-8');
|
|
1520
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-16');
|
|
1521
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-24');
|
|
1522
|
+
});
|
|
1523
|
+
|
|
1524
|
+
it('uses the smaller vertical padding when set to 8', () => {
|
|
1525
|
+
render(<ListItem title="Test Title" paddingY={8} />);
|
|
1526
|
+
expect(screen.getByRole('listitem')).toHaveClass('wds-list-item-paddingY-8');
|
|
1527
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-16');
|
|
1519
1528
|
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-24');
|
|
1520
1529
|
});
|
|
1521
1530
|
|
|
1522
1531
|
it('uses the default vertical padding when set to 12', () => {
|
|
1523
1532
|
render(<ListItem title="Test Title" paddingY={12} />);
|
|
1533
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-8');
|
|
1534
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-16');
|
|
1535
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-24');
|
|
1536
|
+
});
|
|
1537
|
+
|
|
1538
|
+
it('uses the medium vertical padding when set to 16', () => {
|
|
1539
|
+
render(<ListItem title="Test Title" paddingY={16} />);
|
|
1540
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-8');
|
|
1541
|
+
expect(screen.getByRole('listitem')).toHaveClass('wds-list-item-paddingY-16');
|
|
1524
1542
|
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-24');
|
|
1525
1543
|
});
|
|
1526
1544
|
|
|
1527
1545
|
it('uses the larger vertical padding when set to 24', () => {
|
|
1528
1546
|
render(<ListItem title="Test Title" paddingY={24} />);
|
|
1547
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-8');
|
|
1548
|
+
expect(screen.getByRole('listitem')).not.toHaveClass('wds-list-item-paddingY-16');
|
|
1529
1549
|
expect(screen.getByRole('listitem')).toHaveClass('wds-list-item-paddingY-24');
|
|
1530
1550
|
});
|
|
1531
1551
|
});
|
|
@@ -63,7 +63,7 @@ export type ListItemProps = {
|
|
|
63
63
|
* Vertical padding of the list item, in pixels.
|
|
64
64
|
* @default 12
|
|
65
65
|
*/
|
|
66
|
-
paddingY?: 12 | 24;
|
|
66
|
+
paddingY?: 8 | 12 | 16 | 24;
|
|
67
67
|
title: ReactNode;
|
|
68
68
|
subtitle?: ReactNode;
|
|
69
69
|
/**
|
|
@@ -238,6 +238,8 @@ export const ListItem = ({
|
|
|
238
238
|
'wds-list-item-partially-interactive': isPartiallyInteractive,
|
|
239
239
|
[`wds-list-item-spotlight wds-list-item-spotlight-${spotlight}`]:
|
|
240
240
|
isFullyInteractive && !!spotlight,
|
|
241
|
+
'wds-list-item-paddingY-8': paddingY === 8,
|
|
242
|
+
'wds-list-item-paddingY-16': paddingY === 16,
|
|
241
243
|
'wds-list-item-paddingY-24': paddingY === 24,
|
|
242
244
|
disabled: disabled && !isPartiallyInteractive,
|
|
243
245
|
'disabled--has-prompt-reason':
|
|
@@ -72,7 +72,7 @@ export const PaddingY: Story = {
|
|
|
72
72
|
};
|
|
73
73
|
return (
|
|
74
74
|
<List>
|
|
75
|
-
{([12, 24] as const).map((paddingY) => (
|
|
75
|
+
{([8, 12, 16, 24] as const).map((paddingY) => (
|
|
76
76
|
<Fragment key={paddingY}>
|
|
77
77
|
<ListItem {...props} paddingY={paddingY} />
|
|
78
78
|
<ListItem {...props} paddingY={paddingY} spotlight="active" />
|
package/src/Markup/Markup.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.wds-markup-emphasis {
|
|
2
|
-
font-weight: var(--font-weight-
|
|
2
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
3
3
|
font-style: normal;
|
|
4
4
|
}
|
|
5
5
|
.wds-markup-emphasis--important {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
color: var(--color-content-negative);
|
|
13
13
|
}
|
|
14
14
|
.wds-markup-strong {
|
|
15
|
-
font-weight: var(--font-weight-
|
|
15
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
16
16
|
}
|
|
17
17
|
.wds-markup-strikethrough {
|
|
18
18
|
-webkit-text-decoration: line-through;
|
package/src/Markup/Markup.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.wds-markup-emphasis {
|
|
2
|
-
font-weight: var(--font-weight-
|
|
2
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
3
3
|
font-style: normal;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.wds-markup-strong {
|
|
19
|
-
font-weight: var(--font-weight-
|
|
19
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/// @see https://www.webaxe.org/strikethrough-html-accessibility/
|
|
@@ -4,9 +4,10 @@
|
|
|
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
|
|
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 {
|
|
8
9
|
color: var(--color-content-tertiary);
|
|
9
|
-
font-weight: var(--font-weight-
|
|
10
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
10
11
|
}
|
|
11
12
|
[dir="rtl"] .tw-money-input .money-input__number-input {
|
|
12
13
|
text-align: end;
|
|
@@ -18,14 +19,16 @@
|
|
|
18
19
|
.tw-money-input.input-group-sm .form-control {
|
|
19
20
|
min-block-size: 34px;
|
|
20
21
|
}
|
|
21
|
-
.tw-money-input.input-group-sm .np-text-title-subsection
|
|
22
|
-
|
|
22
|
+
.tw-money-input.input-group-sm .np-text-title-subsection,
|
|
23
|
+
.tw-money-input.input-group-sm .wds-text-title-subsection {
|
|
24
|
+
font-size: var(--wds-font-size-body);
|
|
23
25
|
}
|
|
24
26
|
.tw-money-input.input-group-md .form-control {
|
|
25
27
|
min-block-size: 53px;
|
|
26
28
|
}
|
|
27
|
-
.tw-money-input.input-group-md .np-text-title-subsection
|
|
28
|
-
|
|
29
|
+
.tw-money-input.input-group-md .np-text-title-subsection,
|
|
30
|
+
.tw-money-input.input-group-md .wds-text-title-subsection {
|
|
31
|
+
font-size: var(--wds-font-size-body-large);
|
|
29
32
|
}
|
|
30
33
|
.tw-money-input .input-group-addon {
|
|
31
34
|
flex-shrink: 0;
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
.tw-money-input__fixed-currency {
|
|
6
6
|
padding-left: 0 !important;
|
|
7
7
|
|
|
8
|
-
.np-text-title-subsection
|
|
8
|
+
.np-text-title-subsection,
|
|
9
|
+
.wds-text-title-subsection {
|
|
9
10
|
color: var(--color-content-tertiary);
|
|
10
|
-
font-weight: var(--font-weight-
|
|
11
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.money-input__number-input{
|
|
15
|
+
.money-input__number-input {
|
|
15
16
|
[dir="rtl"] & {
|
|
16
17
|
text-align: end;
|
|
17
18
|
}
|
|
@@ -26,8 +27,9 @@
|
|
|
26
27
|
.form-control {
|
|
27
28
|
min-height: 34px;
|
|
28
29
|
}
|
|
29
|
-
.np-text-title-subsection
|
|
30
|
-
|
|
30
|
+
.np-text-title-subsection,
|
|
31
|
+
.wds-text-title-subsection {
|
|
32
|
+
font-size: var(--wds-font-size-body);
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -35,8 +37,9 @@
|
|
|
35
37
|
.form-control {
|
|
36
38
|
min-height: 53px;
|
|
37
39
|
}
|
|
38
|
-
.np-text-title-subsection
|
|
39
|
-
|
|
40
|
+
.np-text-title-subsection,
|
|
41
|
+
.wds-text-title-subsection {
|
|
42
|
+
font-size: var(--wds-font-size-body-large);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
|
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(--font-weight-
|
|
13
|
-
--nudge-title-line-height: var(--line-height-title);
|
|
12
|
+
--nudge-title-font-weight: var(--wds-font-weight-body-bold);
|
|
13
|
+
--nudge-title-line-height: var(--wds-line-height-title-section);
|
|
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(--font-weight-
|
|
144
|
+
font-weight: var(--wds-font-weight-body-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(--font-weight-
|
|
13
|
-
--nudge-title-line-height: var(--line-height-title);
|
|
12
|
+
--nudge-title-font-weight: var(--wds-font-weight-body-bold);
|
|
13
|
+
--nudge-title-line-height: var(--wds-line-height-title-section);
|
|
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(--font-weight-
|
|
123
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
124
124
|
margin-top: var(--size-4);
|
|
125
125
|
text-decoration: var(--nudge-link-text-decoration);
|
|
126
126
|
}
|
|
@@ -22,7 +22,7 @@ const PocketCard = ({ variant }: { variant?: PocketVariant } = {}) => (
|
|
|
22
22
|
{variant}
|
|
23
23
|
</span>
|
|
24
24
|
)}
|
|
25
|
-
<strong className="
|
|
25
|
+
<strong className="wds-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 wds-text-title-body"
|
|
231
231
|
style={{ color: 'inherit' }}
|
|
232
232
|
>
|
|
233
233
|
{variant}
|
package/src/Popover/Popover.css
CHANGED
|
@@ -1,9 +1,38 @@
|
|
|
1
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
2
|
+
margin: 0;color: var(--color-content-primary);word-wrap: break-word;
|
|
3
|
+
}
|
|
4
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
6
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
+
}
|
|
8
|
+
@media (min-width: 840px) {
|
|
9
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
10
|
+
hyphenate-limit-chars: 8 3;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 1160px) {
|
|
14
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
15
|
+
hyphenate-limit-chars: 10 4 3;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
20
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: 1160px) {
|
|
23
|
+
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
24
|
+
-webkit-hyphenate-limit-before: 4;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
28
|
+
margin-block-end: initial;
|
|
29
|
+
}
|
|
1
30
|
.np-theme-personal .np-popover__container {
|
|
2
31
|
border-radius: var(--radius-medium);
|
|
3
32
|
}
|
|
4
33
|
.np-popover__container .np-popover__content {
|
|
5
34
|
color: var(--color-content-secondary);
|
|
6
|
-
font-size: var(--font-size-
|
|
35
|
+
font-size: var(--wds-font-size-body);
|
|
7
36
|
}
|
|
8
37
|
.np-popover__container .np-popover__content p:last-child {
|
|
9
38
|
margin-block-end: 0;
|
|
@@ -19,14 +48,8 @@
|
|
|
19
48
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
20
49
|
margin: 0;
|
|
21
50
|
color: var(--color-content-primary);
|
|
22
|
-
line-height: var(--line-height-title);
|
|
23
|
-
letter-spacing: 0;
|
|
24
51
|
word-wrap: break-word;
|
|
25
52
|
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
53
|
}
|
|
31
54
|
@supports (hyphenate-limit-chars: 1) {
|
|
32
55
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
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(--font-size-
|
|
13
|
+
font-size: var(--wds-font-size-body);
|
|
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
|
+
.wds-text-title-section();
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.np-popover__content {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
.np-progress-bar__title .h4
|
|
1
|
+
.np-progress-bar__title .h4,
|
|
2
|
+
.np-progress-bar__title .wds-text-title-body {
|
|
2
3
|
color: var(--color-content-primary);
|
|
3
4
|
margin-block-end: var(--size-4);
|
|
4
5
|
}
|
|
5
6
|
.np-progress-bar p {
|
|
6
7
|
color: var(--color-content-primary);
|
|
7
8
|
margin-block-start: var(--size-4);
|
|
8
|
-
font-weight: var(--font-weight-
|
|
9
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
9
10
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
.np-progress-bar {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
margin-bottom: var(--size-4);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
p {
|
|
2
|
+
&__title {
|
|
3
|
+
.h4,
|
|
4
|
+
.wds-text-title-body {
|
|
10
5
|
color: var(--color-content-primary);
|
|
11
|
-
margin-
|
|
12
|
-
font-weight: var(--font-weight-semi-bold);
|
|
6
|
+
margin-bottom: var(--size-4);
|
|
13
7
|
}
|
|
14
|
-
}
|
|
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
|
+
}
|