@transferwise/components 0.0.0-experimental-9e05ecb → 0.0.0-experimental-012dcef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Body/Body.js +1 -1
- package/build/Body/Body.js.map +1 -1
- package/build/Body/Body.mjs +1 -1
- package/build/Body/Body.mjs.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
- package/build/Calendar/TableLink/TableLink.js +1 -1
- package/build/Calendar/TableLink/TableLink.js.map +1 -1
- package/build/Calendar/TableLink/TableLink.mjs +1 -1
- package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
- package/build/Label/Label.js +1 -1
- package/build/Label/Label.js.map +1 -1
- package/build/Label/Label.mjs +1 -1
- package/build/Label/Label.mjs.map +1 -1
- package/build/Stepper/Stepper.js +1 -1
- package/build/Stepper/Stepper.js.map +1 -1
- package/build/Stepper/Stepper.mjs +1 -1
- package/build/Stepper/Stepper.mjs.map +1 -1
- package/build/Table/Header/TableHeader.js +1 -1
- package/build/Table/Header/TableHeader.js.map +1 -1
- package/build/Table/Header/TableHeader.mjs +1 -1
- package/build/Table/Header/TableHeader.mjs.map +1 -1
- package/build/Tabs/Tab/Tab.js +1 -1
- package/build/Tabs/Tab/Tab.js.map +1 -1
- package/build/Tabs/Tab/Tab.mjs +1 -1
- package/build/Tabs/Tab/Tab.mjs.map +1 -1
- package/build/Tag/Tag.js +1 -1
- package/build/Tag/Tag.js.map +1 -1
- package/build/Tag/Tag.mjs +1 -1
- package/build/Tag/Tag.mjs.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
- package/build/_deprecated/Avatar/Avatar.js +1 -1
- package/build/_deprecated/Avatar/Avatar.js.map +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
- package/build/_deprecated/Select/Select.js +2 -2
- package/build/_deprecated/Select/Select.js.map +1 -1
- package/build/_deprecated/Select/Select.mjs +2 -2
- package/build/_deprecated/Select/Select.mjs.map +1 -1
- package/build/common/PropsValues/typography.js +0 -6
- package/build/common/PropsValues/typography.js.map +1 -1
- package/build/common/PropsValues/typography.mjs +0 -6
- package/build/common/PropsValues/typography.mjs.map +1 -1
- package/build/main.css +2432 -8907
- package/build/styles/Accordion/Accordion.css +6 -7
- package/build/styles/Body/Body.css +1 -1
- package/build/styles/Calendar/Calendar.css +4 -11
- package/build/styles/Calendar/TableLink/TableLink.css +4 -11
- package/build/styles/Chips/Chip/Chip.css +3 -5
- package/build/styles/Decision/Decision.css +3 -4
- package/build/styles/Emphasis/Emphasis.css +1 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +1 -2
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +1 -2
- package/build/styles/Inputs/Input/Input.css +60 -67
- package/build/styles/Inputs/TextArea/TextArea.css +60 -67
- package/build/styles/Markup/Markup.css +2 -2
- package/build/styles/MoneyInput/MoneyInput.css +6 -9
- package/build/styles/Nudge/Nudge.css +3 -3
- package/build/styles/Popover/Popover.css +43 -4
- package/build/styles/ProgressBar/ProgressBar.css +2 -3
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +1 -2
- package/build/styles/Snackbar/Snackbar.css +1 -1
- package/build/styles/Table/Table.css +8 -18
- package/build/styles/Tabs/Tabs.css +3 -3
- package/build/styles/Tag/Tag.css +1 -1
- package/build/styles/Tile/Tile.css +3 -4
- package/build/styles/Typeahead/Typeahead.css +2 -4
- package/build/styles/UploadInput/UploadInput.css +1 -1
- package/build/styles/_deprecated/ActionButton/ActionButton.css +4 -3
- package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
- package/build/styles/_deprecated/Select/Select.css +14 -49
- package/build/styles/_deprecated/Summary/Summary.css +2 -2
- package/build/styles/common/Circle/Circle.css +1 -1
- package/build/styles/common/Option/Option.css +4 -4
- package/build/styles/css/accordion.css +44 -22
- package/build/styles/css/badge.css +2 -2
- package/build/styles/css/button-groups.css +6 -29
- package/build/styles/css/buttons.css +11 -35
- package/build/styles/css/decision.css +44 -22
- package/build/styles/css/dropdowns.css +54 -39
- package/build/styles/css/droppable.css +6 -28
- package/build/styles/css/footer.css +10 -41
- package/build/styles/css/input-groups.css +167 -203
- package/build/styles/css/list-group.css +42 -1
- package/build/styles/css/modals.css +1 -1
- package/build/styles/css/navbar.css +81 -66
- package/build/styles/css/navs.css +8 -8
- package/build/styles/css/neptune-addons.css +0 -15
- package/build/styles/css/neptune-core.css +524 -5935
- package/build/styles/css/neptune.css +2092 -8533
- package/build/styles/css/panels.css +2 -2
- package/build/styles/css/popovers.css +56 -39
- package/build/styles/css/progress-bars.css +2 -2
- package/build/styles/css/sequences.css +9 -14
- package/build/styles/css/table.css +7 -7
- package/build/styles/css/tooltip.css +6 -28
- package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/less/legacy-variables.less +3 -3
- package/build/styles/less/neptune-tokens.less +48 -0
- package/build/styles/main.css +2432 -8907
- package/build/styles/props/neptune-tokens.css +3 -804
- package/build/styles/styles/less/accordion.css +44 -22
- package/build/styles/styles/less/badge.css +2 -2
- package/build/styles/styles/less/button-groups.css +6 -29
- package/build/styles/styles/less/buttons.css +11 -35
- package/build/styles/styles/less/decision.css +44 -22
- package/build/styles/styles/less/dropdowns.css +54 -39
- package/build/styles/styles/less/droppable.css +6 -28
- package/build/styles/styles/less/footer.css +10 -41
- package/build/styles/styles/less/forms/bootstrap-forms.css +100 -153
- package/build/styles/styles/less/forms/checkbox-radio.css +3 -3
- package/build/styles/styles/less/input-groups.css +167 -203
- package/build/styles/styles/less/list-group.css +42 -1
- package/build/styles/styles/less/modals.css +1 -1
- package/build/styles/styles/less/navbar.css +81 -66
- package/build/styles/styles/less/navs.css +8 -8
- package/build/styles/styles/less/neptune-addons.css +0 -15
- package/build/styles/styles/less/neptune-core.css +524 -5935
- package/build/styles/styles/less/neptune.css +2092 -8533
- package/build/styles/styles/less/panels.css +2 -2
- package/build/styles/styles/less/popovers.css +56 -39
- package/build/styles/styles/less/progress-bars.css +2 -2
- package/build/styles/styles/less/sequences.css +9 -14
- package/build/styles/styles/less/table.css +7 -7
- package/build/styles/styles/less/tooltip.css +6 -28
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/ListItem/_stories/variants/helpers.d.ts +1 -4
- package/build/types/ListItem/_stories/variants/helpers.d.ts.map +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/build/types/common/PropsValues/typography.d.ts +1 -13
- package/build/types/common/PropsValues/typography.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Accordion/Accordion.css +6 -7
- package/src/Accordion/Accordion.less +6 -7
- package/src/Body/Body.css +1 -1
- package/src/Body/Body.less +1 -1
- package/src/Body/Body.test.tsx +4 -4
- package/src/Body/Body.tsx +2 -2
- package/src/Button/_stories/Button.test.story.tsx +0 -1
- package/src/Calendar/Calendar.css +4 -11
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.css +4 -11
- package/src/Calendar/TableLink/TableLink.less +4 -14
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Calendar/_stories/Calendar.test.story.tsx +0 -1
- package/src/Chips/Chip/Chip.css +3 -5
- package/src/Chips/Chip/Chip.less +2 -3
- package/src/CircularButton/_stories/CircularButton.story.tsx +16 -6
- package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +2 -3
- package/src/DateInput/_stories/DateInput.story.tsx +0 -1
- package/src/Decision/Decision.css +3 -4
- package/src/Decision/Decision.less +3 -4
- package/src/Decision/_stories/Decision.test.story.tsx +2 -3
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +1 -1
- package/src/Display/_stories/Display.story.tsx +6 -20
- package/src/Emphasis/Emphasis.css +1 -1
- package/src/Emphasis/Emphasis.less +1 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +1 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +1 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +4 -1
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +1 -2
- package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +2 -3
- package/src/Field/_stories/Field.test.story.tsx +2 -3
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Header/_stories/Header.test.story.tsx +1 -1
- package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.test.story.tsx +2 -3
- package/src/Inputs/Input/Input.css +60 -67
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +2 -3
- package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -2
- package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
- package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
- package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +2 -2
- package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +2 -3
- package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +60 -67
- package/src/Inputs/TextArea/_stories/TextArea.test.story.tsx +2 -3
- package/src/Inputs/_common.less +10 -12
- package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +1 -2
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_stories/Label.test.story.tsx +2 -3
- package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +8 -15
- package/src/ListItem/_stories/variants/helpers.tsx +1 -5
- package/src/Markup/Markup.css +2 -2
- package/src/Markup/Markup.less +2 -2
- package/src/MoneyInput/MoneyInput.css +6 -9
- package/src/MoneyInput/MoneyInput.less +7 -10
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +3 -5
- package/src/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +3 -3
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +43 -4
- package/src/Popover/Popover.less +2 -2
- package/src/ProgressBar/ProgressBar.css +2 -3
- package/src/ProgressBar/ProgressBar.less +11 -12
- package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +2 -3
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +2 -3
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +2 -3
- package/src/Prompt/InfoPrompt/_stories/InfoPrompt.test.story.tsx +2 -3
- package/src/Prompt/InlinePrompt/_stories/InlinePrompt.test.story.tsx +2 -3
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +1 -2
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +1 -2
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
- package/src/Snackbar/Snackbar.css +1 -1
- package/src/Snackbar/Snackbar.less +1 -1
- package/src/Stepper/Stepper.tsx +1 -1
- package/src/Table/Header/TableHeader.tsx +1 -1
- package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
- package/src/Table/Table.css +8 -18
- package/src/Table/Table.less +9 -20
- package/src/Table/_stories/Table.test.story.tsx +15 -26
- package/src/Tabs/Tab/Tab.tsx +1 -1
- package/src/Tabs/Tabs.css +3 -3
- package/src/Tabs/Tabs.less +3 -3
- package/src/Tabs/_stories/Tabs.test.story.tsx +1 -1
- package/src/Tag/Tag.css +1 -1
- package/src/Tag/Tag.less +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/Tag/_stories/Tag.story.tsx +1 -1
- package/src/TextareaWithDisplayFormat/_stories/TextareaWithDisplayFormat.test.story.tsx +2 -3
- package/src/Tile/Tile.css +3 -4
- package/src/Tile/Tile.less +3 -4
- package/src/Typeahead/Typeahead.css +2 -4
- package/src/Typeahead/Typeahead.less +1 -2
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +1 -1
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
- package/src/Upload/_stories/Upload.rtl.test.story.tsx +0 -1
- package/src/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +4 -7
- package/src/UploadInput/_stories/UploadInput.test.story.tsx +0 -1
- package/src/_deprecated/ActionButton/ActionButton.css +4 -3
- package/src/_deprecated/ActionButton/ActionButton.less +5 -4
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- package/src/_deprecated/Avatar/Avatar.css +2 -2
- package/src/_deprecated/Avatar/Avatar.less +2 -2
- package/src/_deprecated/Avatar/Avatar.tsx +1 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +1 -2
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +14 -49
- package/src/_deprecated/Select/Select.less +10 -14
- package/src/_deprecated/Select/Select.tsx +2 -2
- package/src/_deprecated/Summary/Summary.css +2 -2
- package/src/_deprecated/Summary/Summary.less +2 -2
- package/src/common/Circle/Circle.css +1 -1
- package/src/common/Circle/Circle.less +1 -1
- package/src/common/Option/Option.css +4 -4
- package/src/common/Option/Option.less +4 -4
- package/src/common/PropsValues/typography.ts +1 -20
- package/src/main.css +2432 -8907
- package/src/main.less +2 -3
- package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/less/accordion.css +44 -22
- package/src/styles/less/addons/_background-utilities.less +0 -5
- package/src/styles/less/badge.css +2 -2
- package/src/styles/less/badge.less +2 -2
- package/src/styles/less/button-groups.css +6 -29
- package/src/styles/less/button-groups.less +2 -3
- package/src/styles/less/buttons.css +11 -35
- package/src/styles/less/buttons.less +7 -7
- package/src/styles/less/core/_fonts.less +75 -7
- package/src/styles/less/core/_scaffolding.less +4 -4
- package/src/styles/less/core/_typography-utilities.less +3 -3
- package/src/styles/less/core/_typography.less +235 -81
- package/src/styles/less/decision.css +44 -22
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +54 -39
- package/src/styles/less/dropdowns.less +7 -8
- package/src/styles/less/droppable.css +6 -28
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +10 -41
- package/src/styles/less/footer.less +3 -4
- package/src/styles/less/forms/bootstrap-forms.css +100 -153
- package/src/styles/less/forms/bootstrap-forms.less +72 -85
- package/src/styles/less/forms/checkbox-radio.css +3 -3
- package/src/styles/less/forms/checkbox-radio.less +3 -3
- package/src/styles/less/input-groups.css +167 -203
- package/src/styles/less/input-groups.less +10 -20
- package/src/styles/less/list-group.css +42 -1
- package/src/styles/less/list-group.less +5 -8
- package/src/styles/less/mixins/_reset-text.less +1 -1
- package/src/styles/less/mixins/_text-emphasis.less +1 -7
- package/src/styles/less/modals.css +1 -1
- package/src/styles/less/modals.less +1 -1
- package/src/styles/less/navbar.css +81 -66
- package/src/styles/less/navbar.less +19 -19
- package/src/styles/less/navs.css +8 -8
- package/src/styles/less/navs.less +8 -8
- package/src/styles/less/neptune-addons.css +0 -15
- package/src/styles/less/neptune-core.css +524 -5935
- package/src/styles/less/neptune.bundle.less +0 -4
- package/src/styles/less/neptune.css +2092 -8533
- package/src/styles/less/panels.css +2 -2
- package/src/styles/less/panels.less +2 -2
- package/src/styles/less/popovers.css +56 -39
- package/src/styles/less/popovers.less +7 -7
- package/src/styles/less/progress-bars.css +2 -2
- package/src/styles/less/progress-bars.less +2 -2
- package/src/styles/less/sequences.css +9 -14
- package/src/styles/less/sequences.less +10 -15
- package/src/styles/less/table.css +7 -7
- package/src/styles/less/table.less +7 -7
- package/src/styles/less/tooltip.css +6 -28
- package/src/styles/less/tooltip.less +1 -1
- package/src/styles/variables/legacy-variables.less +3 -3
- package/build/styles/Label/Label.css +0 -3
- package/src/Label/Label.css +0 -3
- package/src/Label/Label.less +0 -8
- package/src/styles/less/core/fonts/_fonts-ar.less +0 -140
- package/src/styles/less/core/fonts/_fonts-en.less +0 -99
- package/src/styles/less/core/fonts/_fonts-he.less +0 -8
- package/src/styles/less/core/fonts/_fonts-ja.less +0 -4247
- package/src/styles/less/core/fonts/_fonts-ko.less +0 -1079
- package/src/styles/less/core/fonts/_fonts-th.less +0 -8
- package/src/styles/less/core/fonts/_fonts-zh.less +0 -872
|
@@ -1,65 +1,4 @@
|
|
|
1
|
-
.np-form-control
|
|
2
|
-
margin-block-end: initial;
|
|
3
|
-
}
|
|
4
|
-
.np-form-control--size-sm {
|
|
5
|
-
word-wrap: break-word;
|
|
6
|
-
}
|
|
7
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
8
|
-
.np-form-control--size-sm {
|
|
9
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
10
|
-
}
|
|
11
|
-
@media (min-width: 840px) {
|
|
12
|
-
.np-form-control--size-sm {
|
|
13
|
-
hyphenate-limit-chars: 8 3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@media (min-width: 1160px) {
|
|
17
|
-
.np-form-control--size-sm {
|
|
18
|
-
hyphenate-limit-chars: 10 4 3;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
22
|
-
.np-form-control--size-sm {
|
|
23
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
24
|
-
}
|
|
25
|
-
@media (min-width: 1160px) {
|
|
26
|
-
.np-form-control--size-sm {
|
|
27
|
-
-webkit-hyphenate-limit-before: 4;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}.np-form-control--size-auto,
|
|
31
|
-
.np-form-control--size-md {
|
|
32
|
-
word-wrap: break-word;
|
|
33
|
-
}
|
|
34
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
35
|
-
.np-form-control--size-auto,
|
|
36
|
-
.np-form-control--size-md {
|
|
37
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
38
|
-
}
|
|
39
|
-
@media (min-width: 840px) {
|
|
40
|
-
.np-form-control--size-auto,
|
|
41
|
-
.np-form-control--size-md {
|
|
42
|
-
hyphenate-limit-chars: 8 3;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
@media (min-width: 1160px) {
|
|
46
|
-
.np-form-control--size-auto,
|
|
47
|
-
.np-form-control--size-md {
|
|
48
|
-
hyphenate-limit-chars: 10 4 3;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
52
|
-
.np-form-control--size-auto,
|
|
53
|
-
.np-form-control--size-md {
|
|
54
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
55
|
-
}
|
|
56
|
-
@media (min-width: 1160px) {
|
|
57
|
-
.np-form-control--size-auto,
|
|
58
|
-
.np-form-control--size-md {
|
|
59
|
-
-webkit-hyphenate-limit-before: 4;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}.np-form-control {
|
|
1
|
+
.np-form-control {
|
|
63
2
|
--ring-width: 1px;
|
|
64
3
|
--ring-color: var(--color-interactive-secondary);
|
|
65
4
|
border: none;
|
|
@@ -96,6 +35,10 @@
|
|
|
96
35
|
--ring-color: var(--color-interactive-primary);
|
|
97
36
|
}
|
|
98
37
|
.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;
|
|
99
42
|
word-wrap: break-word;
|
|
100
43
|
padding-block-start: var(--size-12);
|
|
101
44
|
padding-block-end: var(--size-12);
|
|
@@ -135,8 +78,12 @@
|
|
|
135
78
|
padding-block-end: 0 !important;
|
|
136
79
|
}
|
|
137
80
|
.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);
|
|
138
85
|
word-wrap: break-word;
|
|
139
|
-
block-size:
|
|
86
|
+
block-size: var(--size-32) !important;
|
|
140
87
|
}
|
|
141
88
|
@supports (hyphenate-limit-chars: 1) {
|
|
142
89
|
.np-form-control--size-sm {
|
|
@@ -168,12 +115,16 @@
|
|
|
168
115
|
}
|
|
169
116
|
@media (max-width: 320px) {
|
|
170
117
|
.np-form-control--size-sm {
|
|
171
|
-
block-size:
|
|
118
|
+
block-size: var(--size-64) !important;
|
|
172
119
|
}
|
|
173
120
|
}
|
|
174
121
|
.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;
|
|
175
126
|
word-wrap: break-word;
|
|
176
|
-
block-size:
|
|
127
|
+
block-size: var(--size-48) !important;
|
|
177
128
|
}
|
|
178
129
|
@supports (hyphenate-limit-chars: 1) {
|
|
179
130
|
.np-form-control--size-md {
|
|
@@ -205,12 +156,54 @@
|
|
|
205
156
|
}
|
|
206
157
|
@media (max-width: 320px) {
|
|
207
158
|
.np-form-control--size-md {
|
|
208
|
-
block-size:
|
|
159
|
+
block-size: var(--size-72) !important;
|
|
209
160
|
}
|
|
210
161
|
}
|
|
211
162
|
.np-form-control--size-lg {
|
|
163
|
+
margin: 0;
|
|
164
|
+
color: var(--color-content-primary);
|
|
165
|
+
line-height: var(--line-height-title);
|
|
166
|
+
letter-spacing: 0;
|
|
167
|
+
word-wrap: break-word;
|
|
212
168
|
margin-block-end: initial;
|
|
213
|
-
|
|
169
|
+
font-size: var(--font-size-22);
|
|
170
|
+
font-weight: var(--font-weight-semi-bold);
|
|
171
|
+
letter-spacing: -0.018em;
|
|
172
|
+
line-height: 125%;
|
|
173
|
+
block-size: var(--size-72) !important;
|
|
174
|
+
}
|
|
175
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
176
|
+
.np-form-control--size-lg {
|
|
177
|
+
hyphens: auto;
|
|
178
|
+
hyphenate-limit-chars: 7 3;
|
|
179
|
+
}
|
|
180
|
+
@media (min-width: 840px) {
|
|
181
|
+
.np-form-control--size-lg {
|
|
182
|
+
hyphenate-limit-chars: 8 3;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@media (min-width: 1160px) {
|
|
186
|
+
.np-form-control--size-lg {
|
|
187
|
+
hyphenate-limit-chars: 10 4 3;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
192
|
+
.np-form-control--size-lg {
|
|
193
|
+
hyphens: auto;
|
|
194
|
+
-webkit-hyphenate-limit-before: 3;
|
|
195
|
+
-webkit-hyphenate-limit-after: 3;
|
|
196
|
+
}
|
|
197
|
+
@media (min-width: 1160px) {
|
|
198
|
+
.np-form-control--size-lg {
|
|
199
|
+
-webkit-hyphenate-limit-before: 4;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
.np-form-control--size-lg + p,
|
|
204
|
+
.np-form-control--size-lg + ul:not(.list-unstyled),
|
|
205
|
+
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
206
|
+
margin-block-start: var(--size-8);
|
|
214
207
|
}
|
|
215
208
|
.np-input::-moz-placeholder {
|
|
216
209
|
color: var(--color-content-tertiary);
|
|
@@ -29,7 +29,7 @@ export const RTLDiff: Story = {
|
|
|
29
29
|
const i18n = useRtlDiffI18n();
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
|
-
|
|
32
|
+
<>
|
|
33
33
|
{[undefined, 'non-RTL value', 'مرحبا بالعالم'].map((value) => (
|
|
34
34
|
<Fragment key={value ?? 'placeholder'}>
|
|
35
35
|
<InputGroup
|
|
@@ -74,11 +74,10 @@ export const RTLDiff: Story = {
|
|
|
74
74
|
</InputGroup>
|
|
75
75
|
</Fragment>
|
|
76
76
|
))}
|
|
77
|
-
|
|
77
|
+
</>
|
|
78
78
|
);
|
|
79
79
|
},
|
|
80
80
|
...withRTLDiff({
|
|
81
|
-
fixedRows: { heights: 'auto' },
|
|
82
81
|
i18n: {
|
|
83
82
|
placeholder_both: { en: 'addonStart and addonEnd', ar: 'البادئة والنهاية' },
|
|
84
83
|
placeholder_start: { en: 'addonStart only', ar: 'البادئة فقط' },
|
|
@@ -122,9 +122,9 @@ export function SelectInputBottomSheet({
|
|
|
122
122
|
)}
|
|
123
123
|
>
|
|
124
124
|
{title ? (
|
|
125
|
-
<h2 className="np-bottom-sheet-v2-title
|
|
125
|
+
<h2 className="np-bottom-sheet-v2-title np-text-title-body">{title}</h2>
|
|
126
126
|
) : null}
|
|
127
|
-
<div className="np-bottom-sheet-v2-body
|
|
127
|
+
<div className="np-bottom-sheet-v2-body np-text-body-default">
|
|
128
128
|
{children}
|
|
129
129
|
</div>
|
|
130
130
|
</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
|
|
37
|
+
'np-select-input-option-container np-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) && '
|
|
31
|
+
(note || description) && 'np-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
|
|
55
|
+
<span className="np-select-input-option-content-text-secondary np-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
|
|
64
|
+
'np-select-input-option-content-text-secondary np-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,9 @@ export function SelectInputPopover({
|
|
|
124
124
|
})}
|
|
125
125
|
>
|
|
126
126
|
{title ? (
|
|
127
|
-
<h2 className="np-popover-v2-title
|
|
127
|
+
<h2 className="np-popover-v2-title np-text-title-body">{title}</h2>
|
|
128
128
|
) : null}
|
|
129
|
-
<div className="np-popover-v2-content
|
|
129
|
+
<div className="np-popover-v2-content np-text-body-default">{children}</div>
|
|
130
130
|
</div>
|
|
131
131
|
</div>
|
|
132
132
|
</FloatingFocusManager>
|
|
@@ -37,7 +37,7 @@ export const TriggerVariants: Story = {
|
|
|
37
37
|
const rtlCurrencies = getRtlCurrencies(i18n);
|
|
38
38
|
|
|
39
39
|
return (
|
|
40
|
-
|
|
40
|
+
<>
|
|
41
41
|
{/* sm — chevron position flips in RTL */}
|
|
42
42
|
<SelectInput
|
|
43
43
|
size="sm"
|
|
@@ -84,11 +84,10 @@ export const TriggerVariants: Story = {
|
|
|
84
84
|
)
|
|
85
85
|
}
|
|
86
86
|
/>
|
|
87
|
-
|
|
87
|
+
</>
|
|
88
88
|
);
|
|
89
89
|
},
|
|
90
90
|
...withRTLDiff({
|
|
91
|
-
fixedRows: { heights: 'auto' },
|
|
92
91
|
i18n: {
|
|
93
92
|
...currencyNames,
|
|
94
93
|
selectCurrency: { en: 'Select currency', ar: 'اختر العملة' },
|
|
@@ -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 np-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.
|
|
@@ -1,65 +1,4 @@
|
|
|
1
|
-
.np-form-control
|
|
2
|
-
margin-block-end: initial;
|
|
3
|
-
}
|
|
4
|
-
.np-form-control--size-sm {
|
|
5
|
-
word-wrap: break-word;
|
|
6
|
-
}
|
|
7
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
8
|
-
.np-form-control--size-sm {
|
|
9
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
10
|
-
}
|
|
11
|
-
@media (min-width: 840px) {
|
|
12
|
-
.np-form-control--size-sm {
|
|
13
|
-
hyphenate-limit-chars: 8 3;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
@media (min-width: 1160px) {
|
|
17
|
-
.np-form-control--size-sm {
|
|
18
|
-
hyphenate-limit-chars: 10 4 3;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
22
|
-
.np-form-control--size-sm {
|
|
23
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
24
|
-
}
|
|
25
|
-
@media (min-width: 1160px) {
|
|
26
|
-
.np-form-control--size-sm {
|
|
27
|
-
-webkit-hyphenate-limit-before: 4;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}.np-form-control--size-auto,
|
|
31
|
-
.np-form-control--size-md {
|
|
32
|
-
word-wrap: break-word;
|
|
33
|
-
}
|
|
34
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
35
|
-
.np-form-control--size-auto,
|
|
36
|
-
.np-form-control--size-md {
|
|
37
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
38
|
-
}
|
|
39
|
-
@media (min-width: 840px) {
|
|
40
|
-
.np-form-control--size-auto,
|
|
41
|
-
.np-form-control--size-md {
|
|
42
|
-
hyphenate-limit-chars: 8 3;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
@media (min-width: 1160px) {
|
|
46
|
-
.np-form-control--size-auto,
|
|
47
|
-
.np-form-control--size-md {
|
|
48
|
-
hyphenate-limit-chars: 10 4 3;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
52
|
-
.np-form-control--size-auto,
|
|
53
|
-
.np-form-control--size-md {
|
|
54
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
55
|
-
}
|
|
56
|
-
@media (min-width: 1160px) {
|
|
57
|
-
.np-form-control--size-auto,
|
|
58
|
-
.np-form-control--size-md {
|
|
59
|
-
-webkit-hyphenate-limit-before: 4;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}.np-form-control {
|
|
1
|
+
.np-form-control {
|
|
63
2
|
--ring-width: 1px;
|
|
64
3
|
--ring-color: var(--color-interactive-secondary);
|
|
65
4
|
border: none;
|
|
@@ -96,6 +35,10 @@
|
|
|
96
35
|
--ring-color: var(--color-interactive-primary);
|
|
97
36
|
}
|
|
98
37
|
.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;
|
|
99
42
|
word-wrap: break-word;
|
|
100
43
|
padding-block-start: var(--size-12);
|
|
101
44
|
padding-block-end: var(--size-12);
|
|
@@ -135,8 +78,12 @@
|
|
|
135
78
|
padding-block-end: 0 !important;
|
|
136
79
|
}
|
|
137
80
|
.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);
|
|
138
85
|
word-wrap: break-word;
|
|
139
|
-
block-size:
|
|
86
|
+
block-size: var(--size-32) !important;
|
|
140
87
|
}
|
|
141
88
|
@supports (hyphenate-limit-chars: 1) {
|
|
142
89
|
.np-form-control--size-sm {
|
|
@@ -168,12 +115,16 @@
|
|
|
168
115
|
}
|
|
169
116
|
@media (max-width: 320px) {
|
|
170
117
|
.np-form-control--size-sm {
|
|
171
|
-
block-size:
|
|
118
|
+
block-size: var(--size-64) !important;
|
|
172
119
|
}
|
|
173
120
|
}
|
|
174
121
|
.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;
|
|
175
126
|
word-wrap: break-word;
|
|
176
|
-
block-size:
|
|
127
|
+
block-size: var(--size-48) !important;
|
|
177
128
|
}
|
|
178
129
|
@supports (hyphenate-limit-chars: 1) {
|
|
179
130
|
.np-form-control--size-md {
|
|
@@ -205,12 +156,54 @@
|
|
|
205
156
|
}
|
|
206
157
|
@media (max-width: 320px) {
|
|
207
158
|
.np-form-control--size-md {
|
|
208
|
-
block-size:
|
|
159
|
+
block-size: var(--size-72) !important;
|
|
209
160
|
}
|
|
210
161
|
}
|
|
211
162
|
.np-form-control--size-lg {
|
|
163
|
+
margin: 0;
|
|
164
|
+
color: var(--color-content-primary);
|
|
165
|
+
line-height: var(--line-height-title);
|
|
166
|
+
letter-spacing: 0;
|
|
167
|
+
word-wrap: break-word;
|
|
212
168
|
margin-block-end: initial;
|
|
213
|
-
|
|
169
|
+
font-size: var(--font-size-22);
|
|
170
|
+
font-weight: var(--font-weight-semi-bold);
|
|
171
|
+
letter-spacing: -0.018em;
|
|
172
|
+
line-height: 125%;
|
|
173
|
+
block-size: var(--size-72) !important;
|
|
174
|
+
}
|
|
175
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
176
|
+
.np-form-control--size-lg {
|
|
177
|
+
hyphens: auto;
|
|
178
|
+
hyphenate-limit-chars: 7 3;
|
|
179
|
+
}
|
|
180
|
+
@media (min-width: 840px) {
|
|
181
|
+
.np-form-control--size-lg {
|
|
182
|
+
hyphenate-limit-chars: 8 3;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@media (min-width: 1160px) {
|
|
186
|
+
.np-form-control--size-lg {
|
|
187
|
+
hyphenate-limit-chars: 10 4 3;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
192
|
+
.np-form-control--size-lg {
|
|
193
|
+
hyphens: auto;
|
|
194
|
+
-webkit-hyphenate-limit-before: 3;
|
|
195
|
+
-webkit-hyphenate-limit-after: 3;
|
|
196
|
+
}
|
|
197
|
+
@media (min-width: 1160px) {
|
|
198
|
+
.np-form-control--size-lg {
|
|
199
|
+
-webkit-hyphenate-limit-before: 4;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
.np-form-control--size-lg + p,
|
|
204
|
+
.np-form-control--size-lg + ul:not(.list-unstyled),
|
|
205
|
+
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
206
|
+
margin-block-start: var(--size-8);
|
|
214
207
|
}
|
|
215
208
|
.np-text-area {
|
|
216
209
|
min-block-size: var(--size-72);
|
|
@@ -148,7 +148,7 @@ export const RTLDiff: Story = {
|
|
|
148
148
|
const i18n = useRtlDiffI18n();
|
|
149
149
|
|
|
150
150
|
return (
|
|
151
|
-
|
|
151
|
+
<>
|
|
152
152
|
<Field label="Localised placeholder">
|
|
153
153
|
<TextArea placeholder={i18n.placeholder} />
|
|
154
154
|
</Field>
|
|
@@ -164,11 +164,10 @@ export const RTLDiff: Story = {
|
|
|
164
164
|
<Field label="Message with character count">
|
|
165
165
|
<TextArea maxLength={200} value={i18n.characterCounter} readOnly />
|
|
166
166
|
</Field>
|
|
167
|
-
|
|
167
|
+
</>
|
|
168
168
|
);
|
|
169
169
|
},
|
|
170
170
|
...withRTLDiff({
|
|
171
|
-
fixedRows: { heights: 'auto' },
|
|
172
171
|
width: 'stretch',
|
|
173
172
|
i18n: {
|
|
174
173
|
placeholder: { en: 'Translated placeholder...', ar: 'نص بديل مترجم...' },
|
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
|
+
.np-text-body-large;
|
|
44
44
|
padding-top: var(--size-12);
|
|
45
45
|
padding-bottom: var(--size-12);
|
|
46
46
|
}
|
|
@@ -54,25 +54,23 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&--size-sm {
|
|
57
|
-
.
|
|
58
|
-
height:
|
|
59
|
-
|
|
57
|
+
.np-text-body-default;
|
|
58
|
+
height: var(--size-32) !important;
|
|
60
59
|
@media (--screen-400-zoom) {
|
|
61
|
-
height:
|
|
60
|
+
height: var(--size-64) !important;
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
&--size-md {
|
|
66
|
-
.
|
|
67
|
-
height:
|
|
68
|
-
|
|
65
|
+
.np-text-body-large;
|
|
66
|
+
height: var(--size-48) !important;
|
|
69
67
|
@media (--screen-400-zoom) {
|
|
70
|
-
height:
|
|
68
|
+
height: var(--size-72) !important;
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
&--size-lg {
|
|
75
|
-
.
|
|
76
|
-
height:
|
|
73
|
+
.np-text-title-subsection;
|
|
74
|
+
height: var(--size-72) !important;
|
|
77
75
|
}
|
|
78
76
|
}
|
|
@@ -15,7 +15,7 @@ export const RTLDiff: Story = {
|
|
|
15
15
|
render: () => {
|
|
16
16
|
const i18n = useRtlDiffI18n();
|
|
17
17
|
return (
|
|
18
|
-
<div>
|
|
18
|
+
<div style={{ display: 'grid', width: '100%', gridTemplateRows: '8lh auto' }}>
|
|
19
19
|
<InstructionsList
|
|
20
20
|
dos={[i18n.initialTransfer, i18n.inviteFriends]}
|
|
21
21
|
donts={[i18n.hiddenFees, i18n.badExchangeRate]}
|
|
@@ -30,7 +30,6 @@ export const RTLDiff: Story = {
|
|
|
30
30
|
);
|
|
31
31
|
},
|
|
32
32
|
...withRTLDiff({
|
|
33
|
-
fixedRows: { heights: 'auto' },
|
|
34
33
|
i18n: {
|
|
35
34
|
initialTransfer: {
|
|
36
35
|
en: 'Do an initial money transfer',
|
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
|
|
32
|
+
'np-label d-flex flex-column np-text-body-default-bold text-primary m-b-0',
|
|
33
33
|
className,
|
|
34
34
|
)}
|
|
35
35
|
>
|
|
@@ -15,7 +15,7 @@ export const RTLDiff: Story = {
|
|
|
15
15
|
render: () => {
|
|
16
16
|
const i18n = useRtlDiffI18n();
|
|
17
17
|
return (
|
|
18
|
-
|
|
18
|
+
<>
|
|
19
19
|
<Label>{i18n.plain}</Label>
|
|
20
20
|
<Label>
|
|
21
21
|
<Label.Optional>{i18n.optional}</Label.Optional>
|
|
@@ -30,11 +30,10 @@ export const RTLDiff: Story = {
|
|
|
30
30
|
{i18n.optionalWithInfo} <Info content={i18n.tooltip} aria-label={i18n.moreInfo} />
|
|
31
31
|
</Label.Optional>
|
|
32
32
|
</Label>
|
|
33
|
-
|
|
33
|
+
</>
|
|
34
34
|
);
|
|
35
35
|
},
|
|
36
36
|
...withRTLDiff({
|
|
37
|
-
fixedRows: { heights: 'auto' },
|
|
38
37
|
i18n: {
|
|
39
38
|
plain: { en: 'Plain label text', ar: 'نص التسمية العادي' },
|
|
40
39
|
optional: { en: 'Label with optional marker', ar: 'تسمية مع علامة اختيارية' },
|
|
@@ -108,7 +108,7 @@ const getControls = (i18n: ListItemI18n): Record<ControlType, ReactNode> => ({
|
|
|
108
108
|
),
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
const LocalisedVariantList = ({ controlType, variant
|
|
111
|
+
const LocalisedVariantList = ({ controlType, variant }: VariantStoryProps) => {
|
|
112
112
|
const i18n = useRtlDiffI18n<ListItemI18n>();
|
|
113
113
|
|
|
114
114
|
return (
|
|
@@ -117,8 +117,6 @@ const LocalisedVariantList = ({ controlType, variant, style, className }: Varian
|
|
|
117
117
|
variant={variant}
|
|
118
118
|
content={getContent(i18n)}
|
|
119
119
|
controls={getControls(i18n)}
|
|
120
|
-
style={style}
|
|
121
|
-
className={className}
|
|
122
120
|
/>
|
|
123
121
|
);
|
|
124
122
|
};
|
|
@@ -130,23 +128,18 @@ export default {
|
|
|
130
128
|
...withRTLDiff({
|
|
131
129
|
width: 'stretch',
|
|
132
130
|
i18n: i18nMap,
|
|
133
|
-
fixedRows: {
|
|
131
|
+
fixedRows: {
|
|
132
|
+
heights: [
|
|
133
|
+
4, 6, 4, 6, 7, 5, 7, 5, 5, 7, 5, 5, 5, 5, 13, 5, 5, 8, 4, 7, 7, 6, 7, 5, 9, 5, 5, 5, 5, 5,
|
|
134
|
+
5, 5, 6, 6, 6, 14, 8, 8, 8, 8, 8, 8,
|
|
135
|
+
],
|
|
136
|
+
},
|
|
134
137
|
}),
|
|
135
138
|
} satisfies Meta<ListItemProps>;
|
|
136
139
|
|
|
137
140
|
const Default = {
|
|
138
141
|
render: ({ controlType, variant }: VariantStoryProps) => (
|
|
139
|
-
<LocalisedVariantList
|
|
140
|
-
controlType={controlType}
|
|
141
|
-
variant={variant}
|
|
142
|
-
className="list"
|
|
143
|
-
style={{
|
|
144
|
-
display: 'grid',
|
|
145
|
-
gap: '1rem',
|
|
146
|
-
width: '100%',
|
|
147
|
-
gridTemplateRows: [2, 4, 2, 4].map((height) => `${height}lh`).join(' '),
|
|
148
|
-
}}
|
|
149
|
-
/>
|
|
142
|
+
<LocalisedVariantList controlType={controlType} variant={variant} />
|
|
150
143
|
),
|
|
151
144
|
parameters: { variants: [] },
|
|
152
145
|
args: { variant: 'rtl' as const },
|
|
@@ -167,14 +167,11 @@ export const getVariantInstances = (
|
|
|
167
167
|
export type VariantStoryProps = {
|
|
168
168
|
controlType: ControlType;
|
|
169
169
|
variant?: Variant;
|
|
170
|
-
style?: React.CSSProperties;
|
|
171
|
-
className?: string;
|
|
172
170
|
};
|
|
173
171
|
|
|
174
172
|
type VariantListProps = VariantStoryProps & {
|
|
175
173
|
content?: VariantContent;
|
|
176
174
|
controls?: Record<ControlType, ReactNode>;
|
|
177
|
-
className?: string;
|
|
178
175
|
};
|
|
179
176
|
|
|
180
177
|
export const VariantList = ({
|
|
@@ -182,9 +179,8 @@ export const VariantList = ({
|
|
|
182
179
|
variant = 'default',
|
|
183
180
|
content = DEFAULT_VARIANT_CONTENT,
|
|
184
181
|
controls = CONTROLS,
|
|
185
|
-
className,
|
|
186
182
|
}: VariantListProps) => (
|
|
187
|
-
<List
|
|
183
|
+
<List>
|
|
188
184
|
{getVariantInstances(controlType, content).map((instance, index) => (
|
|
189
185
|
<ListItem
|
|
190
186
|
key={`${variant}-${controlType}-${index}`}
|
package/src/Markup/Markup.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.wds-markup-emphasis {
|
|
2
|
-
font-weight: var(--
|
|
2
|
+
font-weight: var(--font-weight-semi-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(--
|
|
15
|
+
font-weight: var(--font-weight-semi-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(--
|
|
2
|
+
font-weight: var(--font-weight-semi-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(--
|
|
19
|
+
font-weight: var(--font-weight-semi-bold);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/// @see https://www.webaxe.org/strikethrough-html-accessibility/
|