@transferwise/components 0.0.0-experimental-9b6c3f8 → 0.0.0-experimental-0c7c46a
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/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 +1533 -2923
- package/build/styles/Accordion/Accordion.css +1 -2
- package/build/styles/Body/Body.css +1 -1
- package/build/styles/Chips/Chip/Chip.css +2 -4
- package/build/styles/Decision/Decision.css +1 -2
- package/build/styles/Inputs/Input/Input.css +66 -62
- package/build/styles/Inputs/TextArea/TextArea.css +66 -62
- package/build/styles/MoneyInput/MoneyInput.css +3 -6
- package/build/styles/Popover/Popover.css +47 -3
- package/build/styles/ProgressBar/ProgressBar.css +1 -2
- package/build/styles/Table/Table.css +5 -15
- package/build/styles/Tile/Tile.css +1 -2
- package/build/styles/Typeahead/Typeahead.css +2 -4
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
- package/build/styles/_deprecated/Select/Select.css +11 -44
- package/build/styles/css/accordion.css +52 -23
- package/build/styles/css/button-groups.css +8 -29
- package/build/styles/css/buttons.css +2 -26
- package/build/styles/css/decision.css +52 -23
- package/build/styles/css/dropdowns.css +62 -39
- package/build/styles/css/droppable.css +8 -28
- package/build/styles/css/footer.css +14 -41
- package/build/styles/css/input-groups.css +165 -172
- package/build/styles/css/list-group.css +45 -0
- package/build/styles/css/navbar.css +62 -39
- package/build/styles/css/neptune-addons.css +0 -15
- package/build/styles/css/neptune-core.css +526 -250
- package/build/styles/css/neptune.css +1486 -2841
- package/build/styles/css/popovers.css +60 -35
- package/build/styles/css/sequences.css +1 -6
- package/build/styles/css/tooltip.css +7 -27
- package/build/styles/less/neptune-tokens.less +48 -0
- package/build/styles/main.css +1533 -2923
- package/build/styles/props/neptune-tokens.css +1 -802
- package/build/styles/styles/less/accordion.css +52 -23
- package/build/styles/styles/less/button-groups.css +8 -29
- package/build/styles/styles/less/buttons.css +2 -26
- package/build/styles/styles/less/decision.css +52 -23
- package/build/styles/styles/less/dropdowns.css +62 -39
- package/build/styles/styles/less/droppable.css +8 -28
- package/build/styles/styles/less/footer.css +14 -41
- package/build/styles/styles/less/forms/bootstrap-forms.css +91 -137
- package/build/styles/styles/less/input-groups.css +165 -172
- package/build/styles/styles/less/list-group.css +45 -0
- package/build/styles/styles/less/navbar.css +62 -39
- package/build/styles/styles/less/neptune-addons.css +0 -15
- package/build/styles/styles/less/neptune-core.css +526 -250
- package/build/styles/styles/less/neptune.css +1486 -2841
- package/build/styles/styles/less/popovers.css +60 -35
- package/build/styles/styles/less/sequences.css +1 -6
- package/build/styles/styles/less/tooltip.css +7 -27
- 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 +1 -2
- package/src/Accordion/Accordion.less +1 -2
- 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/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Chips/Chip/Chip.css +2 -4
- package/src/Chips/Chip/Chip.less +1 -2
- package/src/Decision/Decision.css +1 -2
- package/src/Decision/Decision.less +1 -2
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/Display/_stories/Display.story.tsx +6 -20
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Inputs/Input/Input.css +66 -62
- 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.story.tsx +1 -1
- package/src/Inputs/TextArea/TextArea.css +66 -62
- package/src/Inputs/_common.less +5 -5
- package/src/Label/Label.tsx +1 -1
- package/src/MoneyInput/MoneyInput.css +3 -6
- package/src/MoneyInput/MoneyInput.less +4 -7
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +47 -3
- package/src/Popover/Popover.less +1 -1
- package/src/ProgressBar/ProgressBar.css +1 -2
- package/src/ProgressBar/ProgressBar.less +11 -12
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +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 +5 -15
- package/src/Table/Table.less +6 -17
- package/src/Tabs/Tab/Tab.tsx +1 -1
- package/src/Tag/Tag.tsx +1 -1
- package/src/Tag/_stories/Tag.story.tsx +1 -1
- package/src/Tile/Tile.css +1 -2
- package/src/Tile/Tile.less +1 -2
- package/src/Typeahead/Typeahead.css +2 -4
- package/src/Typeahead/Typeahead.less +1 -2
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- 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 +11 -44
- package/src/_deprecated/Select/Select.less +5 -10
- package/src/_deprecated/Select/Select.tsx +2 -2
- package/src/common/PropsValues/typography.ts +1 -20
- package/src/main.css +1533 -2923
- package/src/styles/less/accordion.css +52 -23
- package/src/styles/less/addons/_background-utilities.less +0 -5
- package/src/styles/less/button-groups.css +8 -29
- package/src/styles/less/button-groups.less +2 -3
- package/src/styles/less/buttons.css +2 -26
- package/src/styles/less/buttons.less +1 -1
- package/src/styles/less/core/_typography.less +221 -67
- package/src/styles/less/decision.css +52 -23
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +62 -39
- package/src/styles/less/dropdowns.less +5 -6
- package/src/styles/less/droppable.css +8 -28
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +14 -41
- package/src/styles/less/footer.less +3 -4
- package/src/styles/less/forms/bootstrap-forms.css +91 -137
- package/src/styles/less/forms/bootstrap-forms.less +57 -70
- package/src/styles/less/input-groups.css +165 -172
- package/src/styles/less/input-groups.less +5 -5
- package/src/styles/less/list-group.css +45 -0
- package/src/styles/less/list-group.less +4 -7
- package/src/styles/less/mixins/_text-emphasis.less +1 -7
- package/src/styles/less/navbar.css +62 -39
- package/src/styles/less/neptune-addons.css +0 -15
- package/src/styles/less/neptune-core.css +526 -250
- package/src/styles/less/neptune.bundle.less +0 -4
- package/src/styles/less/neptune.css +1486 -2841
- package/src/styles/less/popovers.css +60 -35
- package/src/styles/less/popovers.less +3 -3
- package/src/styles/less/sequences.css +1 -6
- package/src/styles/less/sequences.less +2 -7
- package/src/styles/less/tooltip.css +7 -27
- package/src/styles/less/tooltip.less +1 -1
package/src/Tile/Tile.less
CHANGED
|
@@ -180,14 +180,12 @@
|
|
|
180
180
|
.np-theme-personal .typeahead .np-chip {
|
|
181
181
|
margin-block-start: 9px !important;
|
|
182
182
|
}
|
|
183
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
184
|
-
.np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
|
|
183
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
185
184
|
padding-inline-end: 16px;
|
|
186
185
|
padding-inline-end: var(--size-16);
|
|
187
186
|
}
|
|
188
187
|
@media (max-width: 320px) {
|
|
189
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
190
|
-
.np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
|
|
188
|
+
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
|
|
191
189
|
padding-inline-end: 32px;
|
|
192
190
|
padding-inline-end: var(--size-32);
|
|
193
191
|
}
|
|
@@ -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
|
/>
|
|
@@ -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"
|
|
@@ -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
|
|
@@ -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
|
>
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
color: var(--color-sentiment-content-primary);
|
|
9
9
|
margin-block-end: 0;
|
|
10
10
|
}
|
|
11
|
-
.critical-comms .alert .np-text-title-body
|
|
12
|
-
.critical-comms .alert .wds-text-title-body {
|
|
11
|
+
.critical-comms .alert .np-text-title-body {
|
|
13
12
|
color: var(--color-sentiment-content-primary);
|
|
14
13
|
}
|
|
15
14
|
.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
|
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
.np-dropdown-
|
|
2
|
-
word-wrap: break-word;
|
|
3
|
-
}
|
|
4
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
-
.np-dropdown-menu > li > a {
|
|
6
|
-
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
-
}
|
|
8
|
-
@media (min-width: 840px) {
|
|
9
|
-
.np-dropdown-menu > li > a {
|
|
10
|
-
hyphenate-limit-chars: 8 3;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
@media (min-width: 1160px) {
|
|
14
|
-
.np-dropdown-menu > li > a {
|
|
15
|
-
hyphenate-limit-chars: 10 4 3;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
-
.np-dropdown-menu > li > a {
|
|
20
|
-
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
-
}
|
|
22
|
-
@media (min-width: 1160px) {
|
|
23
|
-
.np-dropdown-menu > li > a {
|
|
24
|
-
-webkit-hyphenate-limit-before: 4;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}.np-select .np-dropdown-toggle {
|
|
1
|
+
.np-select .np-dropdown-toggle {
|
|
28
2
|
background-color: #ffffff;
|
|
29
3
|
background-color: var(--color-background-screen);
|
|
30
4
|
border: 1px solid #c9cbce;
|
|
@@ -172,6 +146,12 @@
|
|
|
172
146
|
border-radius: var(--radius-small);
|
|
173
147
|
color: #37517e;
|
|
174
148
|
color: var(--color-content-primary);
|
|
149
|
+
font-size: 0.875rem;
|
|
150
|
+
font-size: var(--font-size-14);
|
|
151
|
+
line-height: 155%;
|
|
152
|
+
letter-spacing: -0.006em;
|
|
153
|
+
font-weight: 400;
|
|
154
|
+
font-weight: var(--font-weight-regular);
|
|
175
155
|
word-wrap: break-word;
|
|
176
156
|
}
|
|
177
157
|
.np-theme-personal .np-dropdown-menu > li > a {
|
|
@@ -250,12 +230,8 @@
|
|
|
250
230
|
.np-dropdown-menu > .selected > a strong {
|
|
251
231
|
color: inherit;
|
|
252
232
|
}
|
|
253
|
-
.np-dropdown-menu > .active > a .body-2,
|
|
254
|
-
.np-dropdown-menu > .selected > a .body-2,
|
|
255
233
|
.np-dropdown-menu > .active > a .np-text-body-default,
|
|
256
|
-
.np-dropdown-menu > .selected > a .np-text-body-default
|
|
257
|
-
.np-dropdown-menu > .active > a .wds-text-body-default,
|
|
258
|
-
.np-dropdown-menu > .selected > a .wds-text-body-default {
|
|
234
|
+
.np-dropdown-menu > .selected > a .np-text-body-default {
|
|
259
235
|
color: #c9cbce;
|
|
260
236
|
}
|
|
261
237
|
.np-dropdown-menu .np-select-filter,
|
|
@@ -295,9 +271,7 @@
|
|
|
295
271
|
vertical-align: middle;
|
|
296
272
|
}
|
|
297
273
|
.np-select .np-text-body-default,
|
|
298
|
-
.np-dropdown-menu .np-text-body-default
|
|
299
|
-
.np-select .wds-text-body-default,
|
|
300
|
-
.np-dropdown-menu .wds-text-body-default {
|
|
274
|
+
.np-dropdown-menu .np-text-body-default {
|
|
301
275
|
color: #5d7079;
|
|
302
276
|
color: var(--color-content-secondary);
|
|
303
277
|
}
|
|
@@ -358,13 +332,7 @@
|
|
|
358
332
|
.np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,
|
|
359
333
|
.np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,
|
|
360
334
|
.np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,
|
|
361
|
-
.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default
|
|
362
|
-
.np-theme-personal .np-dropdown-menu .active a .wds-text-body-default,
|
|
363
|
-
.np-theme-personal .np-dropdown-menu .selected a .wds-text-body-default,
|
|
364
|
-
.np-theme-personal .np-dropdown-menu .active a:focus .wds-text-body-default,
|
|
365
|
-
.np-theme-personal .np-dropdown-menu .selected a:focus .wds-text-body-default,
|
|
366
|
-
.np-theme-personal .np-dropdown-menu .active a:hover .wds-text-body-default,
|
|
367
|
-
.np-theme-personal .np-dropdown-menu .selected a:hover .wds-text-body-default {
|
|
335
|
+
.np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default {
|
|
368
336
|
color: var(--color-interactive-primary);
|
|
369
337
|
}
|
|
370
338
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active {
|
|
@@ -372,8 +340,7 @@
|
|
|
372
340
|
background-color: var(--color-background-neutral-active) !important;
|
|
373
341
|
}
|
|
374
342
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .body-2,
|
|
375
|
-
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default
|
|
376
|
-
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .wds-text-body-default {
|
|
343
|
+
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default {
|
|
377
344
|
color: var(--color-interactive-primary);
|
|
378
345
|
}
|
|
379
346
|
.np-theme-personal .np-dropdown-menu .np-dropdown-item {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
border-radius: var(--radius-small);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
.
|
|
173
|
+
.np-text-body-default;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
> li:first-child > a {
|
|
@@ -215,9 +215,7 @@
|
|
|
215
215
|
color: inherit;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.body-
|
|
219
|
-
.np-text-body-default,
|
|
220
|
-
.wds-text-body-default {
|
|
218
|
+
.np-text-body-default {
|
|
221
219
|
color: @color-navy-content-secondary;
|
|
222
220
|
}
|
|
223
221
|
}
|
|
@@ -257,8 +255,7 @@
|
|
|
257
255
|
vertical-align: middle;
|
|
258
256
|
}
|
|
259
257
|
|
|
260
|
-
.np-text-body-default
|
|
261
|
-
.wds-text-body-default {
|
|
258
|
+
.np-text-body-default {
|
|
262
259
|
color: var(--color-content-secondary);
|
|
263
260
|
}
|
|
264
261
|
|
|
@@ -316,8 +313,7 @@
|
|
|
316
313
|
background-color: var(--color-background-neutral-active);
|
|
317
314
|
|
|
318
315
|
.body-2,
|
|
319
|
-
.np-text-body-default
|
|
320
|
-
.wds-text-body-default {
|
|
316
|
+
.np-text-body-default {
|
|
321
317
|
color: var(--color-interactive-primary);
|
|
322
318
|
}
|
|
323
319
|
}
|
|
@@ -328,8 +324,7 @@
|
|
|
328
324
|
background-color: var(--color-background-neutral-active) !important;
|
|
329
325
|
|
|
330
326
|
.body-2,
|
|
331
|
-
.np-text-body-default
|
|
332
|
-
.wds-text-body-default {
|
|
327
|
+
.np-text-body-default {
|
|
333
328
|
color: var(--color-interactive-primary);
|
|
334
329
|
}
|
|
335
330
|
}
|
|
@@ -457,7 +457,7 @@ export default function Select({
|
|
|
457
457
|
function HeaderOption({ children }: { children?: React.ReactNode }) {
|
|
458
458
|
return (
|
|
459
459
|
<li // eslint-disable-line jsx-a11y/no-noninteractive-element-interactions
|
|
460
|
-
className={clsx(s('np-dropdown-header'), s('
|
|
460
|
+
className={clsx(s('np-dropdown-header'), s('np-text-title-group'))}
|
|
461
461
|
onClick={stopPropagation}
|
|
462
462
|
onKeyPress={stopPropagation}
|
|
463
463
|
>
|
|
@@ -562,7 +562,7 @@ export default function Select({
|
|
|
562
562
|
htmlType="button"
|
|
563
563
|
className={clsx(
|
|
564
564
|
s('np-dropdown-toggle'),
|
|
565
|
-
s('
|
|
565
|
+
s('np-text-body-large'),
|
|
566
566
|
inverse ? s('np-dropdown-toggle-navy') : null,
|
|
567
567
|
)}
|
|
568
568
|
// reset Button's styles
|
|
@@ -6,13 +6,7 @@ export enum Typography {
|
|
|
6
6
|
DISPLAY_LARGE = 'display-large',
|
|
7
7
|
DISPLAY_MEDIUM = 'display-medium',
|
|
8
8
|
DISPLAY_SMALL = 'display-small',
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use {@link Typography.DISPLAY_NUMBER_SMALL} instead.
|
|
11
|
-
*/
|
|
12
9
|
DISPLAY_NUMBER = 'display-number',
|
|
13
|
-
DISPLAY_NUMBER_SMALL = 'display-number-small',
|
|
14
|
-
DISPLAY_NUMBER_MEDIUM = 'display-number-medium',
|
|
15
|
-
DISPLAY_NUMBER_LARGE = 'display-number-large',
|
|
16
10
|
|
|
17
11
|
TITLE_SCREEN = 'title-screen',
|
|
18
12
|
TITLE_SECTION = 'title-section',
|
|
@@ -36,23 +30,10 @@ export type DisplayExtraLarge = 'display-extra-large';
|
|
|
36
30
|
export type DisplayLarge = 'display-large';
|
|
37
31
|
export type DisplayMedium = 'display-medium';
|
|
38
32
|
export type DisplaySmall = 'display-small';
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Use {@link DisplayNumberSmall} instead.
|
|
41
|
-
*/
|
|
42
33
|
export type DisplayNumber = 'display-number';
|
|
43
|
-
export type DisplayNumberSmall = 'display-number-small';
|
|
44
|
-
export type DisplayNumberMedium = 'display-number-medium';
|
|
45
|
-
export type DisplayNumberLarge = 'display-number-large';
|
|
46
34
|
|
|
47
35
|
export type DisplayTypes =
|
|
48
|
-
|
|
|
49
|
-
| DisplayLarge
|
|
50
|
-
| DisplayMedium
|
|
51
|
-
| DisplaySmall
|
|
52
|
-
| DisplayNumber
|
|
53
|
-
| DisplayNumberSmall
|
|
54
|
-
| DisplayNumberMedium
|
|
55
|
-
| DisplayNumberLarge;
|
|
36
|
+
DisplayExtraLarge | DisplayLarge | DisplayMedium | DisplaySmall | DisplayNumber;
|
|
56
37
|
|
|
57
38
|
export type TitleScreen = 'title-screen';
|
|
58
39
|
export type TitleSection = 'title-section';
|