@transferwise/components 46.165.4 → 46.166.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Body/Body.js +2 -2
- package/build/Body/Body.js.map +1 -1
- package/build/Body/Body.mjs +2 -2
- package/build/Body/Body.mjs.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
- package/build/Calendar/TableLink/TableLink.js +1 -1
- package/build/Calendar/TableLink/TableLink.js.map +1 -1
- package/build/Calendar/TableLink/TableLink.mjs +1 -1
- package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
- package/build/Display/Display.js +3 -1
- package/build/Display/Display.js.map +1 -1
- package/build/Display/Display.mjs +3 -1
- package/build/Display/Display.mjs.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
- package/build/Label/Label.js +1 -1
- package/build/Label/Label.js.map +1 -1
- package/build/Label/Label.mjs +1 -1
- package/build/Label/Label.mjs.map +1 -1
- package/build/Stepper/Stepper.js +3 -2
- package/build/Stepper/Stepper.js.map +1 -1
- package/build/Stepper/Stepper.mjs +3 -2
- package/build/Stepper/Stepper.mjs.map +1 -1
- package/build/Table/Header/TableHeader.js +1 -1
- package/build/Table/Header/TableHeader.js.map +1 -1
- package/build/Table/Header/TableHeader.mjs +1 -1
- package/build/Table/Header/TableHeader.mjs.map +1 -1
- package/build/Tabs/Tab/Tab.js +1 -1
- package/build/Tabs/Tab/Tab.js.map +1 -1
- package/build/Tabs/Tab/Tab.mjs +1 -1
- package/build/Tabs/Tab/Tab.mjs.map +1 -1
- package/build/Tag/Tag.js +1 -1
- package/build/Tag/Tag.js.map +1 -1
- package/build/Tag/Tag.mjs +1 -1
- package/build/Tag/Tag.mjs.map +1 -1
- package/build/Title/Title.js +2 -2
- package/build/Title/Title.js.map +1 -1
- package/build/Title/Title.mjs +2 -2
- package/build/Title/Title.mjs.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js +5 -5
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs +5 -5
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
- package/build/_deprecated/Avatar/Avatar.js +1 -1
- package/build/_deprecated/Avatar/Avatar.js.map +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
- package/build/_deprecated/Select/Select.js +2 -2
- package/build/_deprecated/Select/Select.js.map +1 -1
- package/build/_deprecated/Select/Select.mjs +2 -2
- package/build/_deprecated/Select/Select.mjs.map +1 -1
- package/build/common/PropsValues/typography.js +6 -0
- package/build/common/PropsValues/typography.js.map +1 -1
- package/build/common/PropsValues/typography.mjs +6 -0
- package/build/common/PropsValues/typography.mjs.map +1 -1
- package/build/main.css +9097 -1964
- package/build/styles/Accordion/Accordion.css +7 -6
- package/build/styles/Body/Body.css +2 -1
- package/build/styles/Calendar/Calendar.css +5 -4
- package/build/styles/Calendar/TableLink/TableLink.css +5 -4
- package/build/styles/Chips/Chip/Chip.css +5 -3
- package/build/styles/Decision/Decision.css +4 -3
- package/build/styles/Emphasis/Emphasis.css +1 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
- package/build/styles/Inputs/Input/Input.css +98 -24
- package/build/styles/Inputs/TextArea/TextArea.css +98 -24
- package/build/styles/Label/Label.css +3 -0
- package/build/styles/Markup/Markup.css +2 -2
- package/build/styles/MoneyInput/MoneyInput.css +9 -6
- package/build/styles/Nudge/Nudge.css +3 -3
- package/build/styles/Popover/Popover.css +30 -7
- package/build/styles/ProgressBar/ProgressBar.css +3 -2
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
- package/build/styles/Snackbar/Snackbar.css +1 -1
- package/build/styles/Table/Table.css +18 -8
- package/build/styles/Tabs/Tabs.css +3 -3
- package/build/styles/Tag/Tag.css +1 -1
- package/build/styles/Tile/Tile.css +4 -3
- package/build/styles/Typeahead/Typeahead.css +12 -29
- package/build/styles/UploadInput/UploadInput.css +1 -1
- package/build/styles/_deprecated/ActionButton/ActionButton.css +3 -4
- package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/build/styles/_deprecated/Select/Select.css +49 -14
- package/build/styles/_deprecated/Summary/Summary.css +2 -2
- package/build/styles/common/Circle/Circle.css +1 -1
- package/build/styles/common/Option/Option.css +4 -4
- package/build/styles/css/accordion.css +53 -11
- package/build/styles/css/badge.css +2 -2
- package/build/styles/css/button-groups.css +29 -6
- package/build/styles/css/buttons.css +35 -11
- package/build/styles/css/decision.css +53 -11
- package/build/styles/css/dropdowns.css +65 -18
- package/build/styles/css/droppable.css +28 -6
- package/build/styles/css/footer.css +41 -10
- package/build/styles/css/input-groups.css +249 -117
- package/build/styles/css/list-group.css +28 -8
- package/build/styles/css/modals.css +1 -1
- package/build/styles/css/navbar.css +92 -45
- package/build/styles/css/navs.css +8 -8
- package/build/styles/css/neptune-addons.css +15 -0
- package/build/styles/css/neptune-core.css +6230 -525
- package/build/styles/css/neptune.css +8790 -1768
- package/build/styles/css/panels.css +2 -2
- package/build/styles/css/popovers.css +64 -20
- package/build/styles/css/progress-bars.css +2 -2
- package/build/styles/css/sequences.css +14 -9
- package/build/styles/css/table.css +7 -7
- package/build/styles/css/tooltip.css +28 -6
- package/build/styles/less/legacy-variables.less +3 -3
- package/build/styles/less/neptune-tokens.less +0 -48
- package/build/styles/main.css +9097 -1964
- package/build/styles/props/neptune-tokens.css +805 -3
- package/build/styles/styles/less/accordion.css +53 -11
- package/build/styles/styles/less/badge.css +2 -2
- package/build/styles/styles/less/button-groups.css +29 -6
- package/build/styles/styles/less/buttons.css +35 -11
- package/build/styles/styles/less/decision.css +53 -11
- package/build/styles/styles/less/dropdowns.css +65 -18
- package/build/styles/styles/less/droppable.css +28 -6
- package/build/styles/styles/less/footer.css +41 -10
- package/build/styles/styles/less/forms/bootstrap-forms.css +153 -100
- package/build/styles/styles/less/forms/checkbox-radio.css +3 -3
- package/build/styles/styles/less/input-groups.css +249 -117
- package/build/styles/styles/less/list-group.css +28 -8
- package/build/styles/styles/less/modals.css +1 -1
- package/build/styles/styles/less/navbar.css +92 -45
- package/build/styles/styles/less/navs.css +8 -8
- package/build/styles/styles/less/neptune-addons.css +15 -0
- package/build/styles/styles/less/neptune-core.css +6230 -525
- package/build/styles/styles/less/neptune.css +8790 -1768
- package/build/styles/styles/less/panels.css +2 -2
- package/build/styles/styles/less/popovers.css +64 -20
- package/build/styles/styles/less/progress-bars.css +2 -2
- package/build/styles/styles/less/sequences.css +14 -9
- package/build/styles/styles/less/table.css +7 -7
- package/build/styles/styles/less/tooltip.css +28 -6
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/Body/Body.d.ts.map +1 -1
- package/build/types/Display/Display.d.ts.map +1 -1
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +1 -1
- package/build/types/Inputs/SelectInput/Popover/SelectInputPopover.d.ts.map +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/Stepper/Stepper.d.ts.map +1 -1
- package/build/types/Tabs/Tab/Tab.d.ts.map +1 -1
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts.map +1 -1
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts.map +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/build/types/_deprecated/Select/Select.d.ts.map +1 -1
- package/build/types/common/PropsValues/typography.d.ts +13 -1
- package/build/types/common/PropsValues/typography.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/Accordion/Accordion.css +7 -6
- package/src/Accordion/Accordion.less +7 -6
- package/src/Body/Body.css +2 -1
- package/src/Body/Body.less +2 -1
- package/src/Body/Body.test.tsx +13 -4
- package/src/Body/Body.tsx +4 -3
- package/src/Body/_stories/Body.test.story.tsx +42 -0
- package/src/Button/_stories/Button.test.story.tsx +1 -0
- package/src/Calendar/Calendar.css +5 -4
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.css +5 -4
- package/src/Calendar/TableLink/TableLink.less +5 -4
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Calendar/_stories/Calendar.test.story.tsx +34 -0
- package/src/Chips/Chip/Chip.css +5 -3
- package/src/Chips/Chip/Chip.less +3 -2
- package/src/CircularButton/_stories/CircularButton.story.tsx +6 -16
- package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +46 -0
- package/src/DateInput/_stories/DateInput.story.tsx +1 -0
- package/src/Decision/Decision.css +4 -3
- package/src/Decision/Decision.less +4 -3
- package/src/Decision/_stories/Decision.test.story.tsx +1 -0
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +1 -1
- package/src/Display/Display.test.tsx +43 -0
- package/src/Display/Display.tsx +11 -1
- package/src/Display/_stories/Display.story.tsx +36 -21
- package/src/Display/_stories/Display.test.story.tsx +108 -0
- package/src/Emphasis/Emphasis.css +1 -1
- package/src/Emphasis/Emphasis.less +1 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +2 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +1 -4
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
- package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +1 -0
- package/src/Field/_stories/Field.test.story.tsx +1 -0
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Header/_stories/Header.test.story.tsx +1 -1
- package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.test.story.tsx +1 -0
- package/src/Inputs/Input/Input.css +98 -24
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +1 -0
- package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +4 -2
- package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
- package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
- package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +6 -2
- package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +1 -0
- package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +98 -24
- package/src/Inputs/TextArea/_stories/TextArea.test.story.tsx +1 -0
- package/src/Inputs/_common.less +16 -10
- package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +2 -1
- package/src/Label/Label.css +3 -0
- package/src/Label/Label.less +8 -0
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_stories/Label.test.story.tsx +1 -0
- package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +1 -6
- package/src/Markup/Markup.css +2 -2
- package/src/Markup/Markup.less +2 -2
- package/src/MoneyInput/MoneyInput.css +9 -6
- package/src/MoneyInput/MoneyInput.less +10 -7
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +3 -1
- package/src/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +1 -1
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +30 -7
- package/src/Popover/Popover.less +2 -2
- package/src/ProgressBar/ProgressBar.css +3 -2
- package/src/ProgressBar/ProgressBar.less +12 -11
- package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +1 -0
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +1 -0
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +1 -0
- package/src/Prompt/InfoPrompt/_stories/InfoPrompt.test.story.tsx +1 -0
- package/src/Prompt/InlinePrompt/_stories/InlinePrompt.test.story.tsx +1 -0
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +2 -1
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
- package/src/Snackbar/Snackbar.css +1 -1
- package/src/Snackbar/Snackbar.less +1 -1
- package/src/Stepper/Stepper.tsx +4 -2
- package/src/Table/Header/TableHeader.tsx +1 -1
- package/src/Table/StatusText/TableStatusText.test.tsx +20 -5
- package/src/Table/Table.css +18 -8
- package/src/Table/Table.less +20 -9
- package/src/Table/_stories/Table.test.story.tsx +24 -13
- package/src/Tabs/Tab/Tab.tsx +11 -5
- package/src/Tabs/Tabs.css +3 -3
- package/src/Tabs/Tabs.less +3 -3
- package/src/Tabs/_stories/Tabs.test.story.tsx +1 -1
- package/src/Tag/Tag.css +1 -1
- package/src/Tag/Tag.less +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/Tag/_stories/Tag.story.tsx +1 -1
- package/src/TextareaWithDisplayFormat/_stories/TextareaWithDisplayFormat.test.story.tsx +1 -0
- package/src/Tile/Tile.css +4 -3
- package/src/Tile/Tile.less +4 -3
- package/src/Title/Title.test.tsx +22 -3
- package/src/Title/Title.tsx +2 -2
- package/src/Typeahead/Typeahead.css +12 -29
- package/src/Typeahead/Typeahead.less +11 -33
- package/src/Typeahead/TypeaheadInput/TypeaheadInput.tsx +5 -5
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +1 -1
- package/src/Typeahead/_stories/Typeahead.test.story.tsx +65 -0
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +4 -2
- package/src/Upload/_stories/Upload.rtl.test.story.tsx +1 -0
- package/src/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +7 -4
- package/src/UploadInput/_stories/UploadInput.test.story.tsx +1 -0
- package/src/_deprecated/ActionButton/ActionButton.css +3 -4
- package/src/_deprecated/ActionButton/ActionButton.less +4 -5
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- package/src/_deprecated/Avatar/Avatar.css +2 -2
- package/src/_deprecated/Avatar/Avatar.less +2 -2
- package/src/_deprecated/Avatar/Avatar.tsx +1 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +49 -14
- package/src/_deprecated/Select/Select.less +14 -10
- package/src/_deprecated/Select/Select.test.tsx +16 -0
- package/src/_deprecated/Select/Select.tsx +6 -1
- package/src/_deprecated/Summary/Summary.css +2 -2
- package/src/_deprecated/Summary/Summary.less +2 -2
- package/src/common/Circle/Circle.css +1 -1
- package/src/common/Circle/Circle.less +1 -1
- package/src/common/Option/Option.css +4 -4
- package/src/common/Option/Option.less +4 -4
- package/src/common/PropsValues/typography.ts +20 -1
- package/src/main.css +9097 -1964
- package/src/main.less +3 -2
- package/src/styles/less/accordion.css +53 -11
- package/src/styles/less/addons/_background-utilities.less +5 -0
- package/src/styles/less/badge.css +2 -2
- package/src/styles/less/badge.less +2 -2
- package/src/styles/less/button-groups.css +29 -6
- package/src/styles/less/button-groups.less +3 -2
- package/src/styles/less/buttons.css +35 -11
- package/src/styles/less/buttons.less +7 -7
- package/src/styles/less/core/_fonts.less +7 -75
- package/src/styles/less/core/_scaffolding.less +4 -4
- package/src/styles/less/core/_typography-utilities.less +3 -3
- package/src/styles/less/core/_typography.less +91 -236
- package/src/styles/less/core/fonts/_fonts-ar.less +86 -0
- package/src/styles/less/core/fonts/_fonts-base.less +99 -0
- package/src/styles/less/core/fonts/_fonts-he.less +8 -0
- package/src/styles/less/core/fonts/_fonts-ja.less +4247 -0
- package/src/styles/less/core/fonts/_fonts-ko.less +1079 -0
- package/src/styles/less/core/fonts/_fonts-th.less +8 -0
- package/src/styles/less/core/fonts/_fonts-zh.less +872 -0
- package/src/styles/less/decision.css +53 -11
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +65 -18
- package/src/styles/less/dropdowns.less +8 -7
- package/src/styles/less/droppable.css +28 -6
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +41 -10
- package/src/styles/less/footer.less +4 -3
- package/src/styles/less/forms/bootstrap-forms.css +153 -100
- package/src/styles/less/forms/bootstrap-forms.less +85 -72
- package/src/styles/less/forms/checkbox-radio.css +3 -3
- package/src/styles/less/forms/checkbox-radio.less +3 -3
- package/src/styles/less/input-groups.css +249 -117
- package/src/styles/less/input-groups.less +23 -9
- package/src/styles/less/list-group.css +28 -8
- package/src/styles/less/list-group.less +8 -5
- package/src/styles/less/mixins/_reset-text.less +1 -1
- package/src/styles/less/mixins/_text-emphasis.less +7 -1
- package/src/styles/less/modals.css +1 -1
- package/src/styles/less/modals.less +1 -1
- package/src/styles/less/navbar.css +92 -45
- package/src/styles/less/navbar.less +19 -19
- package/src/styles/less/navs.css +8 -8
- package/src/styles/less/navs.less +8 -8
- package/src/styles/less/neptune-addons.css +15 -0
- package/src/styles/less/neptune-core.css +6230 -525
- package/src/styles/less/neptune.bundle.less +4 -0
- package/src/styles/less/neptune.css +8790 -1768
- package/src/styles/less/panels.css +2 -2
- package/src/styles/less/panels.less +2 -2
- package/src/styles/less/popovers.css +64 -20
- package/src/styles/less/popovers.less +7 -7
- package/src/styles/less/progress-bars.css +2 -2
- package/src/styles/less/progress-bars.less +2 -2
- package/src/styles/less/sequences.css +14 -9
- package/src/styles/less/sequences.less +15 -10
- package/src/styles/less/table.css +7 -7
- package/src/styles/less/table.less +7 -7
- package/src/styles/less/tooltip.css +28 -6
- package/src/styles/less/tooltip.less +1 -1
- package/src/styles/variables/legacy-variables.less +3 -3
- package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
- package/build/styles/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
- package/src/styles/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
|
@@ -118,27 +118,42 @@ export const Basic = () => {
|
|
|
118
118
|
export const Numbers = () => {
|
|
119
119
|
return (
|
|
120
120
|
<>
|
|
121
|
-
<
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</
|
|
130
|
-
|
|
131
|
-
<
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
121
|
+
<section className="m-b-2">
|
|
122
|
+
<Title type={Typography.TITLE_BODY}>Display Number Small</Title>
|
|
123
|
+
<Display type={Typography.DISPLAY_NUMBER_SMALL}>
|
|
124
|
+
<Money amount={1050.6} currency="UAH" />
|
|
125
|
+
</Display>
|
|
126
|
+
<Display type={Typography.DISPLAY_NUMBER_SMALL}>
|
|
127
|
+
<Money amount={10.17} currency="JPY" />
|
|
128
|
+
</Display>
|
|
129
|
+
</section>
|
|
130
|
+
|
|
131
|
+
<section className="m-b-2">
|
|
132
|
+
<Title type={Typography.TITLE_BODY}>Display Number Medium</Title>
|
|
133
|
+
<Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
|
|
134
|
+
<Money amount={0.01} currency="EUR" />
|
|
135
|
+
</Display>
|
|
136
|
+
<Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
|
|
137
|
+
<Money amount={1000000} currency="EUR" />
|
|
138
|
+
</Display>
|
|
139
|
+
</section>
|
|
140
|
+
|
|
141
|
+
<section className="m-b-2">
|
|
142
|
+
<Title type={Typography.TITLE_BODY}>Display Number Large</Title>
|
|
143
|
+
<Display type={Typography.DISPLAY_NUMBER_LARGE}>
|
|
144
|
+
<Money amount={1000000} currency="GBP" />
|
|
145
|
+
</Display>
|
|
146
|
+
<Display type={Typography.DISPLAY_NUMBER_LARGE}>
|
|
147
|
+
<Money amount={1050.6} currency="UAH" />
|
|
148
|
+
</Display>
|
|
149
|
+
</section>
|
|
150
|
+
|
|
151
|
+
<section className="m-b-2">
|
|
152
|
+
<Title type={Typography.TITLE_BODY}>Display Number (Deprecated)</Title>
|
|
153
|
+
<Display type={Typography.DISPLAY_NUMBER}>
|
|
154
|
+
<Money amount={1050.6} currency="UAH" />
|
|
155
|
+
</Display>
|
|
156
|
+
</section>
|
|
142
157
|
</>
|
|
143
158
|
);
|
|
144
159
|
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { IntlProvider } from 'react-intl';
|
|
3
|
+
import { withRTLDiff } from '../../../.storybook/decorators/RtlDiffDecorator';
|
|
4
|
+
import { getDirectionFromLocale, Typography } from '../../common';
|
|
5
|
+
import type { DisplayTypes } from '../../common/PropsValues/typography';
|
|
6
|
+
import Money from '../../Money/Money';
|
|
7
|
+
import Title from '../../Title/Title';
|
|
8
|
+
import Display from '../Display';
|
|
9
|
+
|
|
10
|
+
const meta: Meta<typeof Display> = {
|
|
11
|
+
component: Display,
|
|
12
|
+
tags: ['!autodocs', '!manifest'],
|
|
13
|
+
title: 'Typography/Display/Tests',
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof Display>;
|
|
17
|
+
|
|
18
|
+
export const RTLDiff: Story = {
|
|
19
|
+
render: () => {
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<section className="m-b-2">
|
|
23
|
+
<Title type={Typography.TITLE_BODY}>Display Number Small</Title>
|
|
24
|
+
<Display type={Typography.DISPLAY_NUMBER_SMALL}>
|
|
25
|
+
<Money amount={1050.6} currency="UAH" />
|
|
26
|
+
</Display>
|
|
27
|
+
<Display type={Typography.DISPLAY_NUMBER_SMALL}>
|
|
28
|
+
<Money amount={10.17} currency="JPY" />
|
|
29
|
+
</Display>
|
|
30
|
+
</section>
|
|
31
|
+
|
|
32
|
+
<section className="m-b-2">
|
|
33
|
+
<Title type={Typography.TITLE_BODY}>Display Number Medium</Title>
|
|
34
|
+
<Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
|
|
35
|
+
<Money amount={0.01} currency="EUR" />
|
|
36
|
+
</Display>
|
|
37
|
+
<Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
|
|
38
|
+
<Money amount={1000000} currency="EUR" />
|
|
39
|
+
</Display>
|
|
40
|
+
</section>
|
|
41
|
+
|
|
42
|
+
<section className="m-b-2">
|
|
43
|
+
<Title type={Typography.TITLE_BODY}>Display Number Large</Title>
|
|
44
|
+
<Display type={Typography.DISPLAY_NUMBER_LARGE}>
|
|
45
|
+
<Money amount={123456} currency="GBP" />
|
|
46
|
+
</Display>
|
|
47
|
+
<Display type={Typography.DISPLAY_NUMBER_LARGE}>
|
|
48
|
+
<Money amount={1010.6} currency="UAH" />
|
|
49
|
+
</Display>
|
|
50
|
+
</section>
|
|
51
|
+
|
|
52
|
+
<section className="m-b-2">
|
|
53
|
+
<Title type={Typography.TITLE_BODY}>Display Number (Deprecated)</Title>
|
|
54
|
+
<Display type={Typography.DISPLAY_NUMBER}>
|
|
55
|
+
<Money amount={1050.6} currency="UAH" />
|
|
56
|
+
</Display>
|
|
57
|
+
</section>
|
|
58
|
+
</>
|
|
59
|
+
);
|
|
60
|
+
},
|
|
61
|
+
...withRTLDiff({ fixedRows: { heights: 'auto' } }),
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const LOCALES = [
|
|
65
|
+
{ value: 'fr', label: 'Other Latin' },
|
|
66
|
+
{ value: 'ru', label: 'Cyrillic' },
|
|
67
|
+
{ value: 'el', label: 'Greek' },
|
|
68
|
+
{ value: 'ja', label: 'Japanese' },
|
|
69
|
+
{ value: 'ko', label: 'Korean' },
|
|
70
|
+
{ value: 'th', label: 'Thai' },
|
|
71
|
+
{ value: 'zh-CN', label: 'Chinese' },
|
|
72
|
+
{ value: 'ar', label: 'Arabic' },
|
|
73
|
+
{ value: 'he', label: 'Hebrew' },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
// `lang` picks the locale's typography tokens, IntlProvider the locale's number formatting
|
|
77
|
+
const renderAllLocales = (type: DisplayTypes) => (
|
|
78
|
+
<>
|
|
79
|
+
{LOCALES.map(({ value, label }) => (
|
|
80
|
+
<section key={value} className="m-b-2">
|
|
81
|
+
<Title type={Typography.TITLE_BODY}>{label}</Title>
|
|
82
|
+
<div lang={value} dir={getDirectionFromLocale(value)}>
|
|
83
|
+
<IntlProvider locale={value} messages={{}}>
|
|
84
|
+
<Display type={type}>
|
|
85
|
+
<Money amount={1235.56} currency="GBP" />
|
|
86
|
+
</Display>
|
|
87
|
+
</IntlProvider>
|
|
88
|
+
</div>
|
|
89
|
+
</section>
|
|
90
|
+
))}
|
|
91
|
+
</>
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export const DisplayNumberSmallLocales: Story = {
|
|
95
|
+
render: () => renderAllLocales(Typography.DISPLAY_NUMBER_SMALL),
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const DisplayNumberMediumLocales: Story = {
|
|
99
|
+
render: () => renderAllLocales(Typography.DISPLAY_NUMBER_MEDIUM),
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const DisplayNumberLargeLocales: Story = {
|
|
103
|
+
render: () => renderAllLocales(Typography.DISPLAY_NUMBER_LARGE),
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const DisplayNumberDeprecatedLocales: Story = {
|
|
107
|
+
render: () => renderAllLocales(Typography.DISPLAY_NUMBER),
|
|
108
|
+
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
inline-size: 100%;
|
|
3
3
|
}
|
|
4
4
|
.wds-amount-input-input-container {
|
|
5
|
+
font-family: var(--wds-font-family-display-number);
|
|
5
6
|
display: flex;
|
|
6
7
|
justify-content: right;
|
|
7
8
|
inline-size: 100%;
|
|
@@ -36,5 +37,5 @@
|
|
|
36
37
|
flex-grow: 0;
|
|
37
38
|
display: flex;
|
|
38
39
|
align-items: center;
|
|
39
|
-
line-height:
|
|
40
|
+
line-height: 1em;
|
|
40
41
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
&-input-container {
|
|
7
|
+
font-family: var(--wds-font-family-display-number);
|
|
7
8
|
display: flex;
|
|
8
9
|
justify-content: right;
|
|
9
10
|
width: 100%;
|
|
@@ -47,6 +48,6 @@
|
|
|
47
48
|
flex-grow: 0;
|
|
48
49
|
display: flex;
|
|
49
50
|
align-items: center;
|
|
50
|
-
line-height:
|
|
51
|
+
line-height: 1em;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -297,10 +297,7 @@ export const AmountInput = ({
|
|
|
297
297
|
|
|
298
298
|
return (
|
|
299
299
|
<div className="wds-amount-input-container" dir="ltr">
|
|
300
|
-
<div
|
|
301
|
-
className={clsx('wds-amount-input-input-container', 'np-text-display-large--forced')}
|
|
302
|
-
style={style}
|
|
303
|
-
>
|
|
300
|
+
<div className={clsx('wds-amount-input-input-container')} style={style}>
|
|
304
301
|
<input
|
|
305
302
|
ref={ref}
|
|
306
303
|
dir="auto"
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
inline-size: 100%;
|
|
3
3
|
}
|
|
4
4
|
.wds-amount-input-input-container {
|
|
5
|
+
font-family: var(--wds-font-family-display-number);
|
|
5
6
|
display: flex;
|
|
6
7
|
justify-content: right;
|
|
7
8
|
inline-size: 100%;
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
flex-grow: 0;
|
|
37
38
|
display: flex;
|
|
38
39
|
align-items: center;
|
|
39
|
-
line-height:
|
|
40
|
+
line-height: 1em;
|
|
40
41
|
}
|
|
41
42
|
.wds-currency-selector:disabled {
|
|
42
43
|
opacity: 1 !important;
|
|
@@ -40,7 +40,7 @@ const AnimatedLabel = ({ activeLabel, className, steps }: AnimatedLabelProps) =>
|
|
|
40
40
|
className={clsx(
|
|
41
41
|
'np-animated-label',
|
|
42
42
|
'btn-unstyled',
|
|
43
|
-
'np-text-body-large-bold',
|
|
43
|
+
'np-text-body-large-bold wds-text-body-large-bold',
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
onClick={() => setShowSteps(true)}
|
|
@@ -151,7 +151,7 @@ export const RTLDiff: Story = {
|
|
|
151
151
|
);
|
|
152
152
|
},
|
|
153
153
|
...withRTLDiff({
|
|
154
|
-
fixedRows: { heights:
|
|
154
|
+
fixedRows: { heights: 'auto', hideSeparators: true },
|
|
155
155
|
i18n: {
|
|
156
156
|
groupWithoutAction: { en: 'Group level without action', ar: 'مستوى المجموعة بدون إجراء' },
|
|
157
157
|
groupWithAction: { en: 'Group level with action', ar: 'مستوى المجموعة مع إجراء' },
|
|
@@ -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-input::-moz-placeholder {
|
|
209
283
|
color: var(--color-content-tertiary);
|
|
210
284
|
}
|
|
@@ -122,9 +122,11 @@ export function SelectInputBottomSheet({
|
|
|
122
122
|
)}
|
|
123
123
|
>
|
|
124
124
|
{title ? (
|
|
125
|
-
<h2 className="np-bottom-sheet-v2-title np-text-title-body">
|
|
125
|
+
<h2 className="np-bottom-sheet-v2-title np-text-title-body wds-text-title-body">
|
|
126
|
+
{title}
|
|
127
|
+
</h2>
|
|
126
128
|
) : null}
|
|
127
|
-
<div className="np-bottom-sheet-v2-body np-text-body-default">
|
|
129
|
+
<div className="np-bottom-sheet-v2-body np-text-body-default wds-text-body-default">
|
|
128
130
|
{children}
|
|
129
131
|
</div>
|
|
130
132
|
</div>
|
|
@@ -34,7 +34,7 @@ export function SelectInputOption<T = string>({
|
|
|
34
34
|
disabled={disabled}
|
|
35
35
|
className={({ active, disabled: uiDisabled }) =>
|
|
36
36
|
clsx(
|
|
37
|
-
'np-select-input-option-container np-text-body-large',
|
|
37
|
+
'np-select-input-option-container np-text-body-large wds-text-body-large',
|
|
38
38
|
active && 'np-select-input-option-container--active',
|
|
39
39
|
uiDisabled && 'np-select-input-option-container--disabled',
|
|
40
40
|
)
|
|
@@ -28,7 +28,7 @@ export function SelectInputOptionContent({
|
|
|
28
28
|
<div
|
|
29
29
|
className={clsx(
|
|
30
30
|
'np-select-input-option-content-container',
|
|
31
|
-
(note || description) && 'np-text-body-large',
|
|
31
|
+
(note || description) && 'np-text-body-large wds-text-body-large',
|
|
32
32
|
className,
|
|
33
33
|
)}
|
|
34
34
|
>
|
|
@@ -52,7 +52,7 @@ export function SelectInputOptionContent({
|
|
|
52
52
|
>
|
|
53
53
|
<div className="d-inline np-select-input-option-content-title">{title}</div>
|
|
54
54
|
{note ? (
|
|
55
|
-
<span className="np-select-input-option-content-text-secondary np-text-body-default">
|
|
55
|
+
<span className="np-select-input-option-content-text-secondary np-text-body-default wds-text-body-default">
|
|
56
56
|
{note}
|
|
57
57
|
</span>
|
|
58
58
|
) : null}
|
|
@@ -61,7 +61,7 @@ export function SelectInputOptionContent({
|
|
|
61
61
|
{description ? (
|
|
62
62
|
<div
|
|
63
63
|
className={clsx(
|
|
64
|
-
'np-select-input-option-content-text-secondary np-text-body-default',
|
|
64
|
+
'np-select-input-option-content-text-secondary np-text-body-default wds-text-body-default',
|
|
65
65
|
withinTrigger &&
|
|
66
66
|
'np-select-input-option-content-text-within-trigger np-select-input-option-description-in-trigger',
|
|
67
67
|
)}
|
|
@@ -124,9 +124,13 @@ export function SelectInputPopover({
|
|
|
124
124
|
})}
|
|
125
125
|
>
|
|
126
126
|
{title ? (
|
|
127
|
-
<h2 className="np-popover-v2-title np-text-title-body">
|
|
127
|
+
<h2 className="np-popover-v2-title np-text-title-body wds-text-title-body">
|
|
128
|
+
{title}
|
|
129
|
+
</h2>
|
|
128
130
|
) : null}
|
|
129
|
-
<div className="np-popover-v2-content np-text-body-default">
|
|
131
|
+
<div className="np-popover-v2-content np-text-body-default wds-text-body-default">
|
|
132
|
+
{children}
|
|
133
|
+
</div>
|
|
130
134
|
</div>
|
|
131
135
|
</div>
|
|
132
136
|
</FloatingFocusManager>
|
|
@@ -1276,7 +1276,7 @@ export const WithBuiltInSearchResultSorting: Story<CountryWithCurrency> = {
|
|
|
1276
1276
|
decorators: [
|
|
1277
1277
|
(Story) => (
|
|
1278
1278
|
<div>
|
|
1279
|
-
<p className="m-b-3
|
|
1279
|
+
<p className="m-b-3 wds-text-body-default" style={{ maxWidth: '600px' }}>
|
|
1280
1280
|
This example uses the built-in <code>SelectInput.sortByRelevance</code> helper to sort
|
|
1281
1281
|
filtered results by relevance (You can implement your own). This one prioritises: exact
|
|
1282
1282
|
matches → starts with → contains → alphabetical.
|