@transferwise/components 0.0.0-experimental-6bc68bd → 0.0.0-experimental-012dcef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Body/Body.js +1 -1
- package/build/Body/Body.js.map +1 -1
- package/build/Body/Body.mjs +1 -1
- package/build/Body/Body.mjs.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +1 -1
- package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +1 -1
- package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
- package/build/Calendar/TableLink/TableLink.js +1 -1
- package/build/Calendar/TableLink/TableLink.js.map +1 -1
- package/build/Calendar/TableLink/TableLink.mjs +1 -1
- package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
- package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
- package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
- package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
- package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
- package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
- package/build/Label/Label.js +1 -1
- package/build/Label/Label.js.map +1 -1
- package/build/Label/Label.mjs +1 -1
- package/build/Label/Label.mjs.map +1 -1
- package/build/Stepper/Stepper.js +1 -1
- package/build/Stepper/Stepper.js.map +1 -1
- package/build/Stepper/Stepper.mjs +1 -1
- package/build/Stepper/Stepper.mjs.map +1 -1
- package/build/Table/Header/TableHeader.js +1 -1
- package/build/Table/Header/TableHeader.js.map +1 -1
- package/build/Table/Header/TableHeader.mjs +1 -1
- package/build/Table/Header/TableHeader.mjs.map +1 -1
- package/build/Tabs/Tab/Tab.js +1 -1
- package/build/Tabs/Tab/Tab.js.map +1 -1
- package/build/Tabs/Tab/Tab.mjs +1 -1
- package/build/Tabs/Tab/Tab.mjs.map +1 -1
- package/build/Tag/Tag.js +1 -1
- package/build/Tag/Tag.js.map +1 -1
- package/build/Tag/Tag.mjs +1 -1
- package/build/Tag/Tag.mjs.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
- package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
- package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js +1 -1
- package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
- package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
- package/build/_deprecated/Avatar/Avatar.js +1 -1
- package/build/_deprecated/Avatar/Avatar.js.map +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs +1 -1
- package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
- package/build/_deprecated/Select/Select.js +2 -2
- package/build/_deprecated/Select/Select.js.map +1 -1
- package/build/_deprecated/Select/Select.mjs +2 -2
- package/build/_deprecated/Select/Select.mjs.map +1 -1
- package/build/common/PropsValues/typography.js +0 -6
- package/build/common/PropsValues/typography.js.map +1 -1
- package/build/common/PropsValues/typography.mjs +0 -6
- package/build/common/PropsValues/typography.mjs.map +1 -1
- package/build/main.css +2432 -8907
- package/build/styles/Accordion/Accordion.css +6 -7
- package/build/styles/Body/Body.css +1 -1
- package/build/styles/Calendar/Calendar.css +4 -11
- package/build/styles/Calendar/TableLink/TableLink.css +4 -11
- package/build/styles/Chips/Chip/Chip.css +3 -5
- package/build/styles/Decision/Decision.css +3 -4
- package/build/styles/Emphasis/Emphasis.css +1 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +1 -2
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +1 -2
- package/build/styles/Inputs/Input/Input.css +60 -67
- package/build/styles/Inputs/TextArea/TextArea.css +60 -67
- package/build/styles/Markup/Markup.css +2 -2
- package/build/styles/MoneyInput/MoneyInput.css +6 -9
- package/build/styles/Nudge/Nudge.css +3 -3
- package/build/styles/Popover/Popover.css +43 -4
- package/build/styles/ProgressBar/ProgressBar.css +2 -3
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +1 -2
- package/build/styles/Snackbar/Snackbar.css +1 -1
- package/build/styles/Table/Table.css +8 -18
- package/build/styles/Tabs/Tabs.css +3 -3
- package/build/styles/Tag/Tag.css +1 -1
- package/build/styles/Tile/Tile.css +3 -4
- package/build/styles/Typeahead/Typeahead.css +2 -4
- package/build/styles/UploadInput/UploadInput.css +1 -1
- package/build/styles/_deprecated/ActionButton/ActionButton.css +4 -3
- package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
- package/build/styles/_deprecated/Select/Select.css +14 -49
- package/build/styles/_deprecated/Summary/Summary.css +2 -2
- package/build/styles/common/Circle/Circle.css +1 -1
- package/build/styles/common/Option/Option.css +4 -4
- package/build/styles/css/accordion.css +44 -22
- package/build/styles/css/badge.css +2 -2
- package/build/styles/css/button-groups.css +6 -29
- package/build/styles/css/buttons.css +11 -35
- package/build/styles/css/decision.css +44 -22
- package/build/styles/css/dropdowns.css +54 -39
- package/build/styles/css/droppable.css +6 -28
- package/build/styles/css/footer.css +10 -41
- package/build/styles/css/input-groups.css +167 -203
- package/build/styles/css/list-group.css +42 -1
- package/build/styles/css/modals.css +1 -1
- package/build/styles/css/navbar.css +81 -66
- package/build/styles/css/navs.css +8 -8
- package/build/styles/css/neptune-addons.css +0 -15
- package/build/styles/css/neptune-core.css +524 -5935
- package/build/styles/css/neptune.css +2092 -8533
- package/build/styles/css/panels.css +2 -2
- package/build/styles/css/popovers.css +56 -39
- package/build/styles/css/progress-bars.css +2 -2
- package/build/styles/css/sequences.css +9 -14
- package/build/styles/css/table.css +7 -7
- package/build/styles/css/tooltip.css +6 -28
- package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/build/styles/less/legacy-variables.less +3 -3
- package/build/styles/less/neptune-tokens.less +48 -0
- package/build/styles/main.css +2432 -8907
- package/build/styles/props/neptune-tokens.css +3 -804
- package/build/styles/styles/less/accordion.css +44 -22
- package/build/styles/styles/less/badge.css +2 -2
- package/build/styles/styles/less/button-groups.css +6 -29
- package/build/styles/styles/less/buttons.css +11 -35
- package/build/styles/styles/less/decision.css +44 -22
- package/build/styles/styles/less/dropdowns.css +54 -39
- package/build/styles/styles/less/droppable.css +6 -28
- package/build/styles/styles/less/footer.css +10 -41
- package/build/styles/styles/less/forms/bootstrap-forms.css +100 -153
- package/build/styles/styles/less/forms/checkbox-radio.css +3 -3
- package/build/styles/styles/less/input-groups.css +167 -203
- package/build/styles/styles/less/list-group.css +42 -1
- package/build/styles/styles/less/modals.css +1 -1
- package/build/styles/styles/less/navbar.css +81 -66
- package/build/styles/styles/less/navs.css +8 -8
- package/build/styles/styles/less/neptune-addons.css +0 -15
- package/build/styles/styles/less/neptune-core.css +524 -5935
- package/build/styles/styles/less/neptune.css +2092 -8533
- package/build/styles/styles/less/panels.css +2 -2
- package/build/styles/styles/less/popovers.css +56 -39
- package/build/styles/styles/less/progress-bars.css +2 -2
- package/build/styles/styles/less/sequences.css +9 -14
- package/build/styles/styles/less/table.css +7 -7
- package/build/styles/styles/less/tooltip.css +6 -28
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/build/types/IconButton/IconButton.d.ts +1 -1
- package/build/types/ListItem/_stories/variants/helpers.d.ts +1 -4
- package/build/types/ListItem/_stories/variants/helpers.d.ts.map +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/Title/Title.d.ts +2 -2
- package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
- package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
- package/build/types/common/PropsValues/typography.d.ts +1 -13
- package/build/types/common/PropsValues/typography.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Accordion/Accordion.css +6 -7
- package/src/Accordion/Accordion.less +6 -7
- package/src/Body/Body.css +1 -1
- package/src/Body/Body.less +1 -1
- package/src/Body/Body.test.tsx +4 -4
- package/src/Body/Body.tsx +2 -2
- package/src/Button/_stories/Button.test.story.tsx +0 -1
- package/src/Calendar/Calendar.css +4 -11
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.css +4 -11
- package/src/Calendar/TableLink/TableLink.less +4 -14
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Calendar/_stories/Calendar.test.story.tsx +0 -1
- package/src/Chips/Chip/Chip.css +3 -5
- package/src/Chips/Chip/Chip.less +2 -3
- package/src/CircularButton/_stories/CircularButton.story.tsx +16 -6
- package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +2 -3
- package/src/DateInput/_stories/DateInput.story.tsx +0 -1
- package/src/Decision/Decision.css +3 -4
- package/src/Decision/Decision.less +3 -4
- package/src/Decision/_stories/Decision.test.story.tsx +2 -3
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +1 -1
- package/src/Display/_stories/Display.story.tsx +6 -20
- package/src/Emphasis/Emphasis.css +1 -1
- package/src/Emphasis/Emphasis.less +1 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +1 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +1 -2
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +4 -1
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +1 -2
- package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +2 -3
- package/src/Field/_stories/Field.test.story.tsx +2 -3
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Header/_stories/Header.test.story.tsx +1 -1
- package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.test.story.tsx +2 -3
- package/src/Inputs/Input/Input.css +60 -67
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +2 -3
- package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -2
- package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
- package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
- package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +2 -2
- package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +2 -3
- package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +60 -67
- package/src/Inputs/TextArea/_stories/TextArea.test.story.tsx +2 -3
- package/src/Inputs/_common.less +10 -12
- package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +1 -2
- package/src/Label/Label.tsx +1 -1
- package/src/Label/_stories/Label.test.story.tsx +2 -3
- package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +8 -15
- package/src/ListItem/_stories/variants/helpers.tsx +1 -5
- package/src/Markup/Markup.css +2 -2
- package/src/Markup/Markup.less +2 -2
- package/src/MoneyInput/MoneyInput.css +6 -9
- package/src/MoneyInput/MoneyInput.less +7 -10
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +3 -5
- package/src/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +3 -3
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +43 -4
- package/src/Popover/Popover.less +2 -2
- package/src/ProgressBar/ProgressBar.css +2 -3
- package/src/ProgressBar/ProgressBar.less +11 -12
- package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +2 -3
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +2 -3
- package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +2 -3
- package/src/Prompt/InfoPrompt/_stories/InfoPrompt.test.story.tsx +2 -3
- package/src/Prompt/InlinePrompt/_stories/InlinePrompt.test.story.tsx +2 -3
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +1 -2
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +1 -2
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
- package/src/Snackbar/Snackbar.css +1 -1
- package/src/Snackbar/Snackbar.less +1 -1
- package/src/Stepper/Stepper.tsx +1 -1
- package/src/Table/Header/TableHeader.tsx +1 -1
- package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
- package/src/Table/Table.css +8 -18
- package/src/Table/Table.less +9 -20
- package/src/Table/_stories/Table.test.story.tsx +15 -26
- package/src/Tabs/Tab/Tab.tsx +1 -1
- package/src/Tabs/Tabs.css +3 -3
- package/src/Tabs/Tabs.less +3 -3
- package/src/Tabs/_stories/Tabs.test.story.tsx +1 -1
- package/src/Tag/Tag.css +1 -1
- package/src/Tag/Tag.less +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/Tag/_stories/Tag.story.tsx +1 -1
- package/src/TextareaWithDisplayFormat/_stories/TextareaWithDisplayFormat.test.story.tsx +2 -3
- package/src/Tile/Tile.css +3 -4
- package/src/Tile/Tile.less +3 -4
- package/src/Typeahead/Typeahead.css +2 -4
- package/src/Typeahead/Typeahead.less +1 -2
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +1 -1
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
- package/src/Upload/_stories/Upload.rtl.test.story.tsx +0 -1
- package/src/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +4 -7
- package/src/UploadInput/_stories/UploadInput.test.story.tsx +0 -1
- package/src/_deprecated/ActionButton/ActionButton.css +4 -3
- package/src/_deprecated/ActionButton/ActionButton.less +5 -4
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- package/src/_deprecated/Avatar/Avatar.css +2 -2
- package/src/_deprecated/Avatar/Avatar.less +2 -2
- package/src/_deprecated/Avatar/Avatar.tsx +1 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +1 -2
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +14 -49
- package/src/_deprecated/Select/Select.less +10 -14
- package/src/_deprecated/Select/Select.tsx +2 -2
- package/src/_deprecated/Summary/Summary.css +2 -2
- package/src/_deprecated/Summary/Summary.less +2 -2
- package/src/common/Circle/Circle.css +1 -1
- package/src/common/Circle/Circle.less +1 -1
- package/src/common/Option/Option.css +4 -4
- package/src/common/Option/Option.less +4 -4
- package/src/common/PropsValues/typography.ts +1 -20
- package/src/main.css +2432 -8907
- package/src/main.less +2 -3
- package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
- package/src/styles/less/accordion.css +44 -22
- package/src/styles/less/addons/_background-utilities.less +0 -5
- package/src/styles/less/badge.css +2 -2
- package/src/styles/less/badge.less +2 -2
- package/src/styles/less/button-groups.css +6 -29
- package/src/styles/less/button-groups.less +2 -3
- package/src/styles/less/buttons.css +11 -35
- package/src/styles/less/buttons.less +7 -7
- package/src/styles/less/core/_fonts.less +75 -7
- package/src/styles/less/core/_scaffolding.less +4 -4
- package/src/styles/less/core/_typography-utilities.less +3 -3
- package/src/styles/less/core/_typography.less +235 -81
- package/src/styles/less/decision.css +44 -22
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +54 -39
- package/src/styles/less/dropdowns.less +7 -8
- package/src/styles/less/droppable.css +6 -28
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +10 -41
- package/src/styles/less/footer.less +3 -4
- package/src/styles/less/forms/bootstrap-forms.css +100 -153
- package/src/styles/less/forms/bootstrap-forms.less +72 -85
- package/src/styles/less/forms/checkbox-radio.css +3 -3
- package/src/styles/less/forms/checkbox-radio.less +3 -3
- package/src/styles/less/input-groups.css +167 -203
- package/src/styles/less/input-groups.less +10 -20
- package/src/styles/less/list-group.css +42 -1
- package/src/styles/less/list-group.less +5 -8
- package/src/styles/less/mixins/_reset-text.less +1 -1
- package/src/styles/less/mixins/_text-emphasis.less +1 -7
- package/src/styles/less/modals.css +1 -1
- package/src/styles/less/modals.less +1 -1
- package/src/styles/less/navbar.css +81 -66
- package/src/styles/less/navbar.less +19 -19
- package/src/styles/less/navs.css +8 -8
- package/src/styles/less/navs.less +8 -8
- package/src/styles/less/neptune-addons.css +0 -15
- package/src/styles/less/neptune-core.css +524 -5935
- package/src/styles/less/neptune.bundle.less +0 -4
- package/src/styles/less/neptune.css +2092 -8533
- package/src/styles/less/panels.css +2 -2
- package/src/styles/less/panels.less +2 -2
- package/src/styles/less/popovers.css +56 -39
- package/src/styles/less/popovers.less +7 -7
- package/src/styles/less/progress-bars.css +2 -2
- package/src/styles/less/progress-bars.less +2 -2
- package/src/styles/less/sequences.css +9 -14
- package/src/styles/less/sequences.less +10 -15
- package/src/styles/less/table.css +7 -7
- package/src/styles/less/table.less +7 -7
- package/src/styles/less/tooltip.css +6 -28
- package/src/styles/less/tooltip.less +1 -1
- package/src/styles/variables/legacy-variables.less +3 -3
- package/build/styles/Label/Label.css +0 -3
- package/src/Label/Label.css +0 -3
- package/src/Label/Label.less +0 -8
- package/src/styles/less/core/fonts/_fonts-ar.less +0 -140
- package/src/styles/less/core/fonts/_fonts-en.less +0 -99
- package/src/styles/less/core/fonts/_fonts-he.less +0 -8
- package/src/styles/less/core/fonts/_fonts-ja.less +0 -4247
- package/src/styles/less/core/fonts/_fonts-ko.less +0 -1079
- package/src/styles/less/core/fonts/_fonts-th.less +0 -8
- package/src/styles/less/core/fonts/_fonts-zh.less +0 -872
package/src/Table/Table.less
CHANGED
|
@@ -59,18 +59,10 @@
|
|
|
59
59
|
linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)),
|
|
60
60
|
linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),
|
|
61
61
|
linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
|
|
62
|
-
background-position:
|
|
63
|
-
left center,
|
|
64
|
-
right center,
|
|
65
|
-
left center,
|
|
66
|
-
right center;
|
|
62
|
+
background-position: left center, right center, left center, right center;
|
|
67
63
|
background-repeat: no-repeat;
|
|
68
64
|
background-color: var(--color-contrast-overlay);
|
|
69
|
-
background-size:
|
|
70
|
-
15px 100%,
|
|
71
|
-
15px 100%,
|
|
72
|
-
15px 100%,
|
|
73
|
-
15px 100%;
|
|
65
|
+
background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
|
|
74
66
|
background-attachment: local, local, scroll, scroll;
|
|
75
67
|
overflow-x: auto;
|
|
76
68
|
border-radius: @table-inner-border-radius;
|
|
@@ -196,8 +188,7 @@
|
|
|
196
188
|
|
|
197
189
|
&-header.np-table-header--right,
|
|
198
190
|
&-cell.np-table-cell--right {
|
|
199
|
-
> .np-text-body-default
|
|
200
|
-
> .wds-text-body-default {
|
|
191
|
+
> .np-text-body-default {
|
|
201
192
|
text-align: right;
|
|
202
193
|
}
|
|
203
194
|
}
|
|
@@ -231,8 +222,8 @@
|
|
|
231
222
|
padding-top: 5px;
|
|
232
223
|
padding-bottom: 5px;
|
|
233
224
|
white-space: nowrap;
|
|
234
|
-
line-height: var(--
|
|
235
|
-
letter-spacing: var(--
|
|
225
|
+
line-height: var(--line-height-22);
|
|
226
|
+
letter-spacing: var(--letter-spacing-sm);
|
|
236
227
|
}
|
|
237
228
|
|
|
238
229
|
&--error {
|
|
@@ -258,8 +249,7 @@
|
|
|
258
249
|
}
|
|
259
250
|
|
|
260
251
|
&--currency {
|
|
261
|
-
.np-text-body-default
|
|
262
|
-
.wds-text-body-default {
|
|
252
|
+
.np-text-body-default {
|
|
263
253
|
white-space: nowrap;
|
|
264
254
|
}
|
|
265
255
|
}
|
|
@@ -276,8 +266,7 @@
|
|
|
276
266
|
padding: 0;
|
|
277
267
|
}
|
|
278
268
|
|
|
279
|
-
.np-text-body-default-bold
|
|
280
|
-
.wds-text-body-default-bold {
|
|
269
|
+
.np-text-body-default-bold {
|
|
281
270
|
display: flex;
|
|
282
271
|
align-items: center;
|
|
283
272
|
color: var(--color-content-primary);
|
|
@@ -317,11 +306,11 @@
|
|
|
317
306
|
&-media {
|
|
318
307
|
flex-shrink: 0;
|
|
319
308
|
}
|
|
320
|
-
|
|
309
|
+
|
|
321
310
|
&-body {
|
|
322
311
|
display: flex;
|
|
323
312
|
flex-direction: column;
|
|
324
|
-
font-size: var(--
|
|
313
|
+
font-size: var(--font-size-12);
|
|
325
314
|
color: var(--color-content-tertiary);
|
|
326
315
|
}
|
|
327
316
|
|
|
@@ -87,35 +87,24 @@ export const RTLDiff: Story = {
|
|
|
87
87
|
];
|
|
88
88
|
|
|
89
89
|
return (
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<div>
|
|
106
|
-
<Table data={{ headers, rows }} fullWidth={false} />
|
|
107
|
-
</div>
|
|
108
|
-
<div>
|
|
109
|
-
<Table data={{ headers, rows: [] }} />
|
|
110
|
-
</div>
|
|
111
|
-
<div>
|
|
112
|
-
<Table data={{ headers, rows }} loading />
|
|
113
|
-
</div>
|
|
114
|
-
</div>
|
|
90
|
+
<>
|
|
91
|
+
<Table data={{ headers, rows }} />
|
|
92
|
+
<Table
|
|
93
|
+
data={{
|
|
94
|
+
headers,
|
|
95
|
+
rows,
|
|
96
|
+
onRowClick: (rowData: TableRowType | TableRowClickableType) => {
|
|
97
|
+
void rowData;
|
|
98
|
+
},
|
|
99
|
+
}}
|
|
100
|
+
/>
|
|
101
|
+
<Table data={{ headers, rows }} fullWidth={false} />
|
|
102
|
+
<Table data={{ headers, rows: [] }} />
|
|
103
|
+
<Table data={{ headers, rows }} loading />
|
|
104
|
+
</>
|
|
115
105
|
);
|
|
116
106
|
},
|
|
117
107
|
...withRTLDiff({
|
|
118
|
-
fixedRows: { heights: 'auto' },
|
|
119
108
|
i18n: {
|
|
120
109
|
employeeHeader: { en: 'Employee', ar: 'الموظف' },
|
|
121
110
|
locationHeader: { en: 'Location', ar: 'الموقع' },
|
package/src/Tabs/Tab/Tab.tsx
CHANGED
|
@@ -49,7 +49,7 @@ const Tab = forwardRef(function Tab(
|
|
|
49
49
|
return (
|
|
50
50
|
<li
|
|
51
51
|
ref={reference}
|
|
52
|
-
className={clsx('tabs__tab', selected ? '
|
|
52
|
+
className={clsx('tabs__tab', selected ? 'np-text-body-large-bold' : 'np-text-body-large', {
|
|
53
53
|
'tabs__tab--selected': selected,
|
|
54
54
|
clickable: !disabled,
|
|
55
55
|
disabled,
|
package/src/Tabs/Tabs.css
CHANGED
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
padding: var(--size-8);
|
|
9
9
|
margin-block-end: -2px;
|
|
10
10
|
color: var(--color-content-primary);
|
|
11
|
-
font-weight: var(--
|
|
11
|
+
font-weight: var(--font-weight-semi-bold);
|
|
12
12
|
transition: color 0.15s ease-in-out;
|
|
13
13
|
}
|
|
14
14
|
.np-theme-personal .tabs__tab {
|
|
15
15
|
color: var(--color-content-secondary);
|
|
16
|
-
font-weight: var(--
|
|
16
|
+
font-weight: var(--font-weight-regular);
|
|
17
17
|
}
|
|
18
18
|
.tabs__tab--selected {
|
|
19
19
|
color: var(--color-content-accent);
|
|
20
20
|
}
|
|
21
21
|
.np-theme-personal .tabs__tab--selected {
|
|
22
22
|
color: var(--color-interactive-primary);
|
|
23
|
-
font-weight: var(--
|
|
23
|
+
font-weight: var(--font-weight-semi-bold);
|
|
24
24
|
}
|
|
25
25
|
.tabs__tab__content {
|
|
26
26
|
border-radius: 2px;
|
package/src/Tabs/Tabs.less
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
padding: var(--size-8);
|
|
17
17
|
margin-bottom: -@line-thickness;
|
|
18
18
|
color: var(--color-content-primary);
|
|
19
|
-
font-weight: var(--
|
|
19
|
+
font-weight: var(--font-weight-semi-bold);
|
|
20
20
|
transition: color @short-transition-duration @transition-timing-function;
|
|
21
21
|
|
|
22
22
|
.np-theme-personal & {
|
|
23
23
|
color: var(--color-content-secondary);
|
|
24
|
-
font-weight: var(--
|
|
24
|
+
font-weight: var(--font-weight-regular);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&--selected {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.np-theme-personal & {
|
|
31
31
|
color: var(--color-interactive-primary);
|
|
32
|
-
font-weight: var(--
|
|
32
|
+
font-weight: var(--font-weight-semi-bold);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -84,7 +84,7 @@ export const RTLDiff: Story = {
|
|
|
84
84
|
);
|
|
85
85
|
},
|
|
86
86
|
...withRTLDiff({
|
|
87
|
-
fixedRows: { heights:
|
|
87
|
+
fixedRows: { heights: [8, 8, 8, 8] },
|
|
88
88
|
i18n: {
|
|
89
89
|
firstTab: { en: 'First tab', ar: 'التبويب الأول' },
|
|
90
90
|
secondTab: { en: 'Second tab', ar: 'التبويب الثاني' },
|
package/src/Tag/Tag.css
CHANGED
package/src/Tag/Tag.less
CHANGED
package/src/Tag/Tag.tsx
CHANGED
|
@@ -29,7 +29,7 @@ const PHOTO = '../card-payment-bakery.webp';
|
|
|
29
29
|
|
|
30
30
|
const Label = ({ children }: { children: ReactNode }) => (
|
|
31
31
|
<span
|
|
32
|
-
className="
|
|
32
|
+
className="np-text-body-default"
|
|
33
33
|
style={{
|
|
34
34
|
color: 'var(--color-content-secondary)',
|
|
35
35
|
textTransform: 'capitalize',
|
|
@@ -17,7 +17,7 @@ export const RTLDiff: Story = {
|
|
|
17
17
|
const i18n = useRtlDiffI18n();
|
|
18
18
|
|
|
19
19
|
return (
|
|
20
|
-
|
|
20
|
+
<>
|
|
21
21
|
<Field id="empty" label="Empty with placeholder">
|
|
22
22
|
<TextareaWithDisplayFormat
|
|
23
23
|
id="empty"
|
|
@@ -45,11 +45,10 @@ export const RTLDiff: Story = {
|
|
|
45
45
|
onChange={() => {}}
|
|
46
46
|
/>
|
|
47
47
|
</Field>
|
|
48
|
-
|
|
48
|
+
</>
|
|
49
49
|
);
|
|
50
50
|
},
|
|
51
51
|
...withRTLDiff({
|
|
52
|
-
fixedRows: { heights: 'auto' },
|
|
53
52
|
i18n: {
|
|
54
53
|
value: {
|
|
55
54
|
en: 'XKQMRTBWJNFL',
|
package/src/Tile/Tile.css
CHANGED
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
.np-theme-personal .np-tile.decision:active {
|
|
23
23
|
background-color: var(--color-background-neutral-active);
|
|
24
24
|
}
|
|
25
|
-
.np-theme-personal .np-tile.decision .np-text-body-default
|
|
26
|
-
.np-theme-personal .np-tile.decision .wds-text-body-default {
|
|
25
|
+
.np-theme-personal .np-tile.decision .np-text-body-default {
|
|
27
26
|
color: var(--color-content-secondary);
|
|
28
27
|
}
|
|
29
28
|
.np-tile.np-decision__tile--fixed-width {
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
}
|
|
52
51
|
.np-tile__description {
|
|
53
52
|
color: var(--color-content-secondary);
|
|
54
|
-
font-weight: var(--
|
|
55
|
-
line-height: var(--
|
|
53
|
+
font-weight: var(--font-weight-regular);
|
|
54
|
+
line-height: var(--line-height-body);
|
|
56
55
|
margin-block-start: var(--size-12);
|
|
57
56
|
}
|
package/src/Tile/Tile.less
CHANGED
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
background-color: var(--color-background-neutral-active);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.np-text-body-default
|
|
32
|
-
.wds-text-body-default {
|
|
31
|
+
.np-text-body-default {
|
|
33
32
|
color: var(--color-content-secondary);
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
|
|
73
72
|
.np-tile__description {
|
|
74
73
|
color: var(--color-content-secondary);
|
|
75
|
-
font-weight: var(--
|
|
76
|
-
line-height: var(--
|
|
74
|
+
font-weight: var(--font-weight-regular);
|
|
75
|
+
line-height: var(--line-height-body);
|
|
77
76
|
margin-top: var(--size-12);
|
|
78
77
|
}
|
|
@@ -168,13 +168,11 @@
|
|
|
168
168
|
.np-theme-personal .typeahead .np-chip {
|
|
169
169
|
margin-block-start: 9px !important;
|
|
170
170
|
}
|
|
171
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
172
|
-
.np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
|
|
171
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
173
172
|
padding-inline-end: var(--size-16);
|
|
174
173
|
}
|
|
175
174
|
@media (max-width: 320px) {
|
|
176
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
177
|
-
.np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
|
|
175
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
178
176
|
padding-inline-end: var(--size-32);
|
|
179
177
|
}
|
|
180
178
|
}
|
|
@@ -232,8 +232,7 @@
|
|
|
232
232
|
margin-top: 9px !important;
|
|
233
233
|
}
|
|
234
234
|
.np-chip--removable {
|
|
235
|
-
.np-text-body-default-bold
|
|
236
|
-
.wds-text-body-default-bold {
|
|
235
|
+
.np-text-body-default-bold {
|
|
237
236
|
padding-right: var(--size-16);
|
|
238
237
|
@media (--screen-400-zoom) {
|
|
239
238
|
padding-right: var(--size-32);
|
|
@@ -30,10 +30,10 @@ const Option = forwardRef<HTMLLIElement, TypeaheadOptionProps<any>>((props, ref)
|
|
|
30
30
|
>
|
|
31
31
|
<a className="dropdown-item" href="#" tabIndex={-1} onClick={onClick}>
|
|
32
32
|
<Highlight value={label} query={query} />
|
|
33
|
-
{note && <span className="
|
|
33
|
+
{note && <span className="np-text-body-default m-l-1">{note}</span>}
|
|
34
34
|
{secondary && (
|
|
35
35
|
<Highlight
|
|
36
|
-
className="
|
|
36
|
+
className="np-text-body-default text-ellipsis"
|
|
37
37
|
value={secondary}
|
|
38
38
|
query={query}
|
|
39
39
|
/>
|
|
@@ -87,7 +87,7 @@ export const TriggerVariants: Story = {
|
|
|
87
87
|
</>
|
|
88
88
|
);
|
|
89
89
|
},
|
|
90
|
-
...withRTLDiff({
|
|
90
|
+
...withRTLDiff({ width: '80%', i18n: localisedStrings }),
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
export const OpenDropdown: Story = {
|
|
@@ -78,8 +78,8 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
|
|
|
78
78
|
<div className="droppable-default-card" aria-hidden={isComplete}>
|
|
79
79
|
<div className="droppable-card-content">
|
|
80
80
|
<div className="m-b-3">{this.getImage()}</div>
|
|
81
|
-
{usLabel && <h4 className="
|
|
82
|
-
{usPlaceholder && <p className="
|
|
81
|
+
{usLabel && <h4 className="np-text-title-body m-b-1">{usLabel}</h4>}
|
|
82
|
+
{usPlaceholder && <p className="np-text-body-large m-b-3">{String(usPlaceholder)}</p>}
|
|
83
83
|
<label
|
|
84
84
|
className={`btn btn-primary btn-md ${usDisabled ? 'disabled' : ''}`}
|
|
85
85
|
role="button"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
border-radius: var(--radius-small);
|
|
10
10
|
border-block-end: var(--outerBorder);
|
|
11
11
|
}
|
|
12
|
-
.np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not(
|
|
12
|
+
.np-upload-input .np-upload-input__section:has(.np-upload-input__item:last-child.is-interactive:hover):not(:has(.np-upload-input__item-button:hover)) + .np-upload-input__section--uploader .np-upload-input__upload-button::before {
|
|
13
13
|
inset-inline-start: 0;
|
|
14
14
|
inline-size: 100%;
|
|
15
15
|
inset-block-start: 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@import (reference) "./../styles/less/ring.less";
|
|
2
2
|
@import (reference) "./../styles/less/mixins/_links.less";
|
|
3
|
-
@import (reference)
|
|
3
|
+
@import (reference) './UploadItem/UploadItem.less';
|
|
4
4
|
|
|
5
5
|
.np-upload-input {
|
|
6
6
|
--outerBorder: 1px solid var(--color-interactive-secondary);
|
|
@@ -20,14 +20,11 @@
|
|
|
20
20
|
// if the last item in the file list is interactive (not an error)
|
|
21
21
|
// and the user is hovering over it, then we need to adjust the
|
|
22
22
|
// bottom separator, which happens to be in .np-upload-input__section--uploader
|
|
23
|
-
&:has(.np-upload-input__item:last-child.is-interactive:hover):not(
|
|
24
|
-
|
|
25
|
-
)
|
|
26
|
-
+ .np-upload-input__section--uploader
|
|
27
|
-
.np-upload-input__upload-button::before {
|
|
23
|
+
&:has(.np-upload-input__item:last-child.is-interactive:hover):not(:has(.np-upload-input__item-button:hover))
|
|
24
|
+
+ .np-upload-input__section--uploader .np-upload-input__upload-button::before {
|
|
28
25
|
left: 0;
|
|
29
26
|
width: 100%;
|
|
30
27
|
top: 0;
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
|
-
}
|
|
30
|
+
}
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
padding-block: var(--size-8);
|
|
5
5
|
padding-inline: var(--size-12);
|
|
6
6
|
transition: color, background-color 0.15s ease-in-out;
|
|
7
|
-
font-weight: var(--
|
|
8
|
-
font-size: var(--
|
|
9
|
-
line-height: var(--
|
|
7
|
+
font-weight: var(--font-weight-semi-bold);
|
|
8
|
+
font-size: var(--font-size-14);
|
|
9
|
+
line-height: var(--line-height-control);
|
|
10
|
+
border-radius: var(--radius-small);
|
|
10
11
|
align-items: center;
|
|
11
12
|
color: var(--color-interactive-control);
|
|
12
13
|
background-color: var(--color-interactive-accent);
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
height: var(--size-32);
|
|
6
6
|
padding: var(--size-8) var(--size-12);
|
|
7
7
|
transition: color, background-color 0.15s ease-in-out;
|
|
8
|
-
font-weight: var(--
|
|
9
|
-
font-size: var(--
|
|
10
|
-
line-height: var(--
|
|
8
|
+
font-weight: var(--font-weight-semi-bold);
|
|
9
|
+
font-size: var(--font-size-14);
|
|
10
|
+
line-height: var(--line-height-control);
|
|
11
|
+
border-radius: var(--radius-small);
|
|
11
12
|
align-items: center;
|
|
12
13
|
color: var(--color-interactive-control);
|
|
13
14
|
background-color: var(--color-interactive-accent);
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
box-shadow: none;
|
|
46
47
|
border-color: transparent;
|
|
47
48
|
background-color: var(--color-interactive-accent-active);
|
|
48
|
-
|
|
49
|
+
|
|
49
50
|
&.btn-priority-2 {
|
|
50
51
|
background-color: var(--color-background-neutral-active);
|
|
51
52
|
}
|
|
@@ -36,7 +36,7 @@ const ActionButton = forwardRef<HTMLButtonElement, ActionButtonProps>(
|
|
|
36
36
|
type="button"
|
|
37
37
|
className={clsx(
|
|
38
38
|
'np-action-btn',
|
|
39
|
-
'
|
|
39
|
+
'np-text-body-default-bold',
|
|
40
40
|
priority === Priority.TERTIARY
|
|
41
41
|
? 'btn-priority-3'
|
|
42
42
|
: priority === Priority.SECONDARY
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
.tw-avatar.tw-avatar--initials,
|
|
41
41
|
.tw-avatar.tw-avatar--emoji {
|
|
42
42
|
font-family: Arial, sans-serif;
|
|
43
|
-
font-weight: var(--
|
|
43
|
+
font-weight: var(--font-weight-semi-bold);
|
|
44
44
|
}
|
|
45
45
|
.tw-avatar.tw-avatar--initials,
|
|
46
46
|
.tw-avatar.tw-avatar--icon {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
font-family: Arial, sans-serif;
|
|
52
52
|
}
|
|
53
53
|
.tw-avatar.tw-avatar--branded .tw-avatar__content {
|
|
54
|
-
font-family: var(--
|
|
54
|
+
font-family: var(--font-family-display);
|
|
55
55
|
font-feature-settings: "ss01";
|
|
56
56
|
color: var(--color-dark-charcoal);
|
|
57
57
|
line-height: 1;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
&.tw-avatar--initials,
|
|
56
56
|
&.tw-avatar--emoji {
|
|
57
57
|
font-family: Arial, sans-serif;
|
|
58
|
-
font-weight: var(--
|
|
58
|
+
font-weight: var(--font-weight-semi-bold);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&.tw-avatar--initials,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&.tw-avatar--branded .tw-avatar__content {
|
|
74
|
-
font-family: var(--
|
|
74
|
+
font-family: var(--font-family-display);
|
|
75
75
|
font-feature-settings: "ss01";
|
|
76
76
|
color: var(--color-dark-charcoal);
|
|
77
77
|
line-height: 1;
|
|
@@ -86,7 +86,7 @@ const Avatar: React.FC<AvatarProps> = ({
|
|
|
86
86
|
className={clsx('tw-avatar', className, `tw-avatar--${size}`, `tw-avatar--${type}`, {
|
|
87
87
|
'tw-avatar--outlined': outlined,
|
|
88
88
|
'tw-avatar--branded': Boolean(backgroundColorFromSeed),
|
|
89
|
-
'
|
|
89
|
+
'np-text-title-body': type === 'initials',
|
|
90
90
|
})}
|
|
91
91
|
aria-label={ariaLabel}
|
|
92
92
|
>
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
color: var(--color-sentiment-content-primary);
|
|
8
8
|
margin-block-end: 0;
|
|
9
9
|
}
|
|
10
|
-
.critical-comms .alert .np-text-title-body
|
|
11
|
-
.critical-comms .alert .wds-text-title-body {
|
|
10
|
+
.critical-comms .alert .np-text-title-body {
|
|
12
11
|
color: var(--color-sentiment-content-primary);
|
|
13
12
|
}
|
|
14
13
|
.critical-comms .status-circle.negative {
|
|
@@ -74,7 +74,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
74
74
|
render: ({ hasTitleOnly, ...args }: StoryArgs) => (
|
|
75
75
|
<div>
|
|
76
76
|
<div className="m-b-2">
|
|
77
|
-
<div className="
|
|
77
|
+
<div className="title-4 m-b-1">Has Title Only</div>
|
|
78
78
|
<NavigationOption
|
|
79
79
|
{...args}
|
|
80
80
|
content={null}
|
|
@@ -83,7 +83,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
83
83
|
/>
|
|
84
84
|
</div>
|
|
85
85
|
<div className="m-b-2">
|
|
86
|
-
<div className="
|
|
86
|
+
<div className="title-4 m-b-1">Full Content</div>
|
|
87
87
|
<NavigationOption
|
|
88
88
|
{...args}
|
|
89
89
|
content={hasTitleOnly ? null : args.content}
|
|
@@ -92,7 +92,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
92
92
|
/>
|
|
93
93
|
</div>
|
|
94
94
|
<div className="m-b-2">
|
|
95
|
-
<div className="
|
|
95
|
+
<div className="title-4 m-b-1">With Icon</div>
|
|
96
96
|
<NavigationOption
|
|
97
97
|
{...args}
|
|
98
98
|
media={<BankIcon size={24} />}
|
|
@@ -101,7 +101,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
101
101
|
/>
|
|
102
102
|
</div>
|
|
103
103
|
<div className="m-b-2">
|
|
104
|
-
<div className="
|
|
104
|
+
<div className="title-4 m-b-1">With Icon Avatar</div>
|
|
105
105
|
<NavigationOption
|
|
106
106
|
{...args}
|
|
107
107
|
showMediaCircle={false}
|
|
@@ -115,7 +115,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
115
115
|
/>
|
|
116
116
|
</div>
|
|
117
117
|
<div className="m-b-2">
|
|
118
|
-
<div className="
|
|
118
|
+
<div className="title-4 m-b-1">With Contact Avatar</div>
|
|
119
119
|
<NavigationOption
|
|
120
120
|
{...args}
|
|
121
121
|
showMediaCircle={false}
|
|
@@ -125,7 +125,7 @@ export const Variants: StoryObj<StoryArgs> = {
|
|
|
125
125
|
/>
|
|
126
126
|
</div>
|
|
127
127
|
<div className="m-t-4 m-b-2">
|
|
128
|
-
<div className="
|
|
128
|
+
<div className="title-4 m-b-1">Not recommended usage</div>
|
|
129
129
|
<p>
|
|
130
130
|
Rendering an Avatar on top of showMediaCircle causes the Avatar background-colour and the
|
|
131
131
|
circle background-colour to overlap which also causes clipping issues with the Badge
|