@transferwise/components 0.0.0-experimental-5ee49bb → 0.0.0-experimental-4560f77
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 +6 -0
- package/build/common/PropsValues/typography.js.map +1 -1
- package/build/common/PropsValues/typography.mjs +6 -0
- package/build/common/PropsValues/typography.mjs.map +1 -1
- package/build/main.css +117 -98
- package/build/styles/Accordion/Accordion.css +2 -1
- package/build/styles/Body/Body.css +1 -1
- package/build/styles/Chips/Chip/Chip.css +4 -2
- package/build/styles/Decision/Decision.css +2 -1
- package/build/styles/Inputs/Input/Input.css +0 -38
- package/build/styles/Inputs/TextArea/TextArea.css +0 -38
- package/build/styles/MoneyInput/MoneyInput.css +6 -3
- package/build/styles/Popover/Popover.css +0 -38
- package/build/styles/ProgressBar/ProgressBar.css +2 -1
- package/build/styles/Table/Table.css +15 -5
- package/build/styles/Tile/Tile.css +2 -1
- package/build/styles/Typeahead/Typeahead.css +4 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/build/styles/_deprecated/Select/Select.css +17 -4
- package/build/styles/main.css +117 -98
- package/build/types/Body/Body.d.ts +2 -2
- package/build/types/IconButton/IconButton.d.ts +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 +13 -1
- package/build/types/common/PropsValues/typography.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Accordion/Accordion.css +2 -1
- package/src/Accordion/Accordion.less +2 -1
- 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 +4 -2
- package/src/Chips/Chip/Chip.less +2 -1
- package/src/Decision/Decision.css +2 -1
- package/src/Decision/Decision.less +2 -1
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/Display/_stories/Display.story.tsx +20 -6
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Inputs/Input/Input.css +0 -38
- 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 +0 -38
- package/src/Inputs/_common.less +5 -5
- package/src/Label/Label.tsx +1 -1
- package/src/MoneyInput/MoneyInput.css +6 -3
- package/src/MoneyInput/MoneyInput.less +7 -4
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +0 -38
- package/src/Popover/Popover.less +1 -1
- package/src/ProgressBar/ProgressBar.css +2 -1
- package/src/ProgressBar/ProgressBar.less +12 -11
- 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 +15 -5
- package/src/Table/Table.less +17 -6
- 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 +2 -1
- package/src/Tile/Tile.less +2 -1
- package/src/Typeahead/Typeahead.css +4 -2
- package/src/Typeahead/Typeahead.less +2 -1
- package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
- package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- package/src/_deprecated/Avatar/Avatar.tsx +1 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +17 -4
- package/src/_deprecated/Select/Select.less +10 -5
- package/src/_deprecated/Select/Select.tsx +2 -2
- package/src/common/PropsValues/typography.ts +20 -1
- package/src/main.css +117 -98
|
@@ -13,7 +13,7 @@ describe('TableStatusText Component', () => {
|
|
|
13
13
|
it('renders the text and applies the default class', () => {
|
|
14
14
|
renderComponent();
|
|
15
15
|
expect(screen.getByText('Status Text')).toBeInTheDocument();
|
|
16
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
16
|
+
expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default');
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
it('applies the custom class name', () => {
|
|
@@ -23,12 +23,12 @@ describe('TableStatusText Component', () => {
|
|
|
23
23
|
|
|
24
24
|
it('applies the default typography class when typography is not provided', () => {
|
|
25
25
|
renderComponent();
|
|
26
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
26
|
+
expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default');
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
it('applies the typography class when typography equals `default-bold`', () => {
|
|
30
30
|
renderComponent({ typography: 'default-bold' });
|
|
31
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
31
|
+
expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default-bold');
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it('does not render any icon when status is not provided', () => {
|
|
@@ -39,14 +39,14 @@ describe('TableStatusText Component', () => {
|
|
|
39
39
|
|
|
40
40
|
it('applies the typography and status classes, renders the error icon when status equals `error`', () => {
|
|
41
41
|
renderComponent({ status: 'error' });
|
|
42
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
42
|
+
expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default-bold');
|
|
43
43
|
expect(screen.getByText('Status Text')).toHaveClass('np-table-content--error');
|
|
44
44
|
expect(screen.getByTestId('alert-icon')).toBeInTheDocument();
|
|
45
45
|
});
|
|
46
46
|
|
|
47
47
|
it('applies the typography and status classes, renders the success icon when status equals `success`', () => {
|
|
48
48
|
renderComponent({ status: 'success' });
|
|
49
|
-
expect(screen.getByText('Status Text')).toHaveClass('
|
|
49
|
+
expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default-bold');
|
|
50
50
|
expect(screen.getByText('Status Text')).toHaveClass('np-table-content--success');
|
|
51
51
|
expect(screen.getByTestId('check-icon')).toBeInTheDocument();
|
|
52
52
|
});
|
package/src/Table/Table.css
CHANGED
|
@@ -40,10 +40,16 @@
|
|
|
40
40
|
}
|
|
41
41
|
.np-table-inner-container {
|
|
42
42
|
background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
|
|
43
|
-
background-position: left center,
|
|
43
|
+
background-position: left center,
|
|
44
|
+
right center,
|
|
45
|
+
left center,
|
|
46
|
+
right center;
|
|
44
47
|
background-repeat: no-repeat;
|
|
45
48
|
background-color: var(--color-contrast-overlay);
|
|
46
|
-
background-size: 15px 100%,
|
|
49
|
+
background-size: 15px 100%,
|
|
50
|
+
15px 100%,
|
|
51
|
+
15px 100%,
|
|
52
|
+
15px 100%;
|
|
47
53
|
background-attachment: local, local, scroll, scroll;
|
|
48
54
|
overflow-x: auto;
|
|
49
55
|
border-radius: 10px;
|
|
@@ -138,7 +144,9 @@
|
|
|
138
144
|
padding-inline-end: 0;
|
|
139
145
|
}
|
|
140
146
|
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
141
|
-
.np-table-cell.np-table-cell--right > .np-text-body-default
|
|
147
|
+
.np-table-cell.np-table-cell--right > .np-text-body-default,
|
|
148
|
+
.np-table-header.np-table-header--right > .wds-text-body-default,
|
|
149
|
+
.np-table-cell.np-table-cell--right > .wds-text-body-default {
|
|
142
150
|
text-align: end;
|
|
143
151
|
}
|
|
144
152
|
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
@@ -197,7 +205,8 @@
|
|
|
197
205
|
.np-table-cell--primary {
|
|
198
206
|
min-inline-size: 200px;
|
|
199
207
|
}
|
|
200
|
-
.np-table-cell--currency .np-text-body-default
|
|
208
|
+
.np-table-cell--currency .np-text-body-default,
|
|
209
|
+
.np-table-cell--currency .wds-text-body-default {
|
|
201
210
|
white-space: nowrap;
|
|
202
211
|
}
|
|
203
212
|
.np-table-cell .tw-chevron {
|
|
@@ -214,7 +223,8 @@
|
|
|
214
223
|
background-color: var(--color-background-neutral);
|
|
215
224
|
padding: 0;
|
|
216
225
|
}
|
|
217
|
-
.np-table-cell .np-text-body-default-bold
|
|
226
|
+
.np-table-cell .np-text-body-default-bold,
|
|
227
|
+
.np-table-cell .wds-text-body-default-bold {
|
|
218
228
|
display: flex;
|
|
219
229
|
align-items: center;
|
|
220
230
|
color: #37517e;
|
package/src/Table/Table.less
CHANGED
|
@@ -59,10 +59,18 @@
|
|
|
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:
|
|
62
|
+
background-position:
|
|
63
|
+
left center,
|
|
64
|
+
right center,
|
|
65
|
+
left center,
|
|
66
|
+
right center;
|
|
63
67
|
background-repeat: no-repeat;
|
|
64
68
|
background-color: var(--color-contrast-overlay);
|
|
65
|
-
background-size:
|
|
69
|
+
background-size:
|
|
70
|
+
15px 100%,
|
|
71
|
+
15px 100%,
|
|
72
|
+
15px 100%,
|
|
73
|
+
15px 100%;
|
|
66
74
|
background-attachment: local, local, scroll, scroll;
|
|
67
75
|
overflow-x: auto;
|
|
68
76
|
border-radius: @table-inner-border-radius;
|
|
@@ -188,7 +196,8 @@
|
|
|
188
196
|
|
|
189
197
|
&-header.np-table-header--right,
|
|
190
198
|
&-cell.np-table-cell--right {
|
|
191
|
-
> .np-text-body-default
|
|
199
|
+
> .np-text-body-default,
|
|
200
|
+
> .wds-text-body-default {
|
|
192
201
|
text-align: right;
|
|
193
202
|
}
|
|
194
203
|
}
|
|
@@ -249,7 +258,8 @@
|
|
|
249
258
|
}
|
|
250
259
|
|
|
251
260
|
&--currency {
|
|
252
|
-
.np-text-body-default
|
|
261
|
+
.np-text-body-default,
|
|
262
|
+
.wds-text-body-default {
|
|
253
263
|
white-space: nowrap;
|
|
254
264
|
}
|
|
255
265
|
}
|
|
@@ -266,7 +276,8 @@
|
|
|
266
276
|
padding: 0;
|
|
267
277
|
}
|
|
268
278
|
|
|
269
|
-
.np-text-body-default-bold
|
|
279
|
+
.np-text-body-default-bold,
|
|
280
|
+
.wds-text-body-default-bold {
|
|
270
281
|
display: flex;
|
|
271
282
|
align-items: center;
|
|
272
283
|
color: var(--color-content-primary);
|
|
@@ -306,7 +317,7 @@
|
|
|
306
317
|
&-media {
|
|
307
318
|
flex-shrink: 0;
|
|
308
319
|
}
|
|
309
|
-
|
|
320
|
+
|
|
310
321
|
&-body {
|
|
311
322
|
display: flex;
|
|
312
323
|
flex-direction: column;
|
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 ? 'wds-text-body-large-bold' : 'wds-text-body-large', {
|
|
53
53
|
'tabs__tab--selected': selected,
|
|
54
54
|
clickable: !disabled,
|
|
55
55
|
disabled,
|
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="wds-text-body-default"
|
|
33
33
|
style={{
|
|
34
34
|
color: 'var(--color-content-secondary)',
|
|
35
35
|
textTransform: 'capitalize',
|
package/src/Tile/Tile.css
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
.np-theme-personal .np-tile.decision:active {
|
|
26
26
|
background-color: var(--color-background-neutral-active);
|
|
27
27
|
}
|
|
28
|
-
.np-theme-personal .np-tile.decision .np-text-body-default
|
|
28
|
+
.np-theme-personal .np-tile.decision .np-text-body-default,
|
|
29
|
+
.np-theme-personal .np-tile.decision .wds-text-body-default {
|
|
29
30
|
color: #5d7079;
|
|
30
31
|
color: var(--color-content-secondary);
|
|
31
32
|
}
|
package/src/Tile/Tile.less
CHANGED
|
@@ -180,12 +180,14 @@
|
|
|
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
|
|
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 {
|
|
184
185
|
padding-inline-end: 16px;
|
|
185
186
|
padding-inline-end: var(--size-16);
|
|
186
187
|
}
|
|
187
188
|
@media (max-width: 320px) {
|
|
188
|
-
.np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold
|
|
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 {
|
|
189
191
|
padding-inline-end: 32px;
|
|
190
192
|
padding-inline-end: var(--size-32);
|
|
191
193
|
}
|
|
@@ -232,7 +232,8 @@
|
|
|
232
232
|
margin-top: 9px !important;
|
|
233
233
|
}
|
|
234
234
|
.np-chip--removable {
|
|
235
|
-
.np-text-body-default-bold
|
|
235
|
+
.np-text-body-default-bold,
|
|
236
|
+
.wds-text-body-default-bold {
|
|
236
237
|
padding-right: var(--size-16);
|
|
237
238
|
@media (--screen-400-zoom) {
|
|
238
239
|
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="wds-text-body-default m-l-1">{note}</span>}
|
|
34
34
|
{secondary && (
|
|
35
35
|
<Highlight
|
|
36
|
-
className="
|
|
36
|
+
className="wds-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="wds-text-title-body m-b-1">{usLabel}</h4>}
|
|
82
|
+
{usPlaceholder && <p className="wds-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
|
+
'wds-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
|
+
'wds-text-title-body': type === 'initials',
|
|
90
90
|
})}
|
|
91
91
|
aria-label={ariaLabel}
|
|
92
92
|
>
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
color: var(--color-sentiment-content-primary);
|
|
9
9
|
margin-block-end: 0;
|
|
10
10
|
}
|
|
11
|
-
.critical-comms .alert .np-text-title-body
|
|
11
|
+
.critical-comms .alert .np-text-title-body,
|
|
12
|
+
.critical-comms .alert .wds-text-title-body {
|
|
12
13
|
color: var(--color-sentiment-content-primary);
|
|
13
14
|
}
|
|
14
15
|
.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="title-
|
|
77
|
+
<div className="wds-text-title-body 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="title-
|
|
86
|
+
<div className="wds-text-title-body 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="title-
|
|
95
|
+
<div className="wds-text-title-body 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="title-
|
|
104
|
+
<div className="wds-text-title-body 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="title-
|
|
118
|
+
<div className="wds-text-title-body 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="title-
|
|
128
|
+
<div className="wds-text-title-body 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
|
|
@@ -250,8 +250,12 @@
|
|
|
250
250
|
.np-dropdown-menu > .selected > a strong {
|
|
251
251
|
color: inherit;
|
|
252
252
|
}
|
|
253
|
+
.np-dropdown-menu > .active > a .body-2,
|
|
254
|
+
.np-dropdown-menu > .selected > a .body-2,
|
|
253
255
|
.np-dropdown-menu > .active > a .np-text-body-default,
|
|
254
|
-
.np-dropdown-menu > .selected > 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 {
|
|
255
259
|
color: #c9cbce;
|
|
256
260
|
}
|
|
257
261
|
.np-dropdown-menu .np-select-filter,
|
|
@@ -291,7 +295,9 @@
|
|
|
291
295
|
vertical-align: middle;
|
|
292
296
|
}
|
|
293
297
|
.np-select .np-text-body-default,
|
|
294
|
-
.np-dropdown-menu .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 {
|
|
295
301
|
color: #5d7079;
|
|
296
302
|
color: var(--color-content-secondary);
|
|
297
303
|
}
|
|
@@ -352,7 +358,13 @@
|
|
|
352
358
|
.np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,
|
|
353
359
|
.np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,
|
|
354
360
|
.np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,
|
|
355
|
-
.np-theme-personal .np-dropdown-menu .selected 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 {
|
|
356
368
|
color: var(--color-interactive-primary);
|
|
357
369
|
}
|
|
358
370
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active {
|
|
@@ -360,7 +372,8 @@
|
|
|
360
372
|
background-color: var(--color-background-neutral-active) !important;
|
|
361
373
|
}
|
|
362
374
|
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .body-2,
|
|
363
|
-
.np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default
|
|
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 {
|
|
364
377
|
color: var(--color-interactive-primary);
|
|
365
378
|
}
|
|
366
379
|
.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
|
+
.wds-text-body-default;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
> li:first-child > a {
|
|
@@ -215,7 +215,9 @@
|
|
|
215
215
|
color: inherit;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.
|
|
218
|
+
.body-2,
|
|
219
|
+
.np-text-body-default,
|
|
220
|
+
.wds-text-body-default {
|
|
219
221
|
color: @color-navy-content-secondary;
|
|
220
222
|
}
|
|
221
223
|
}
|
|
@@ -255,7 +257,8 @@
|
|
|
255
257
|
vertical-align: middle;
|
|
256
258
|
}
|
|
257
259
|
|
|
258
|
-
.np-text-body-default
|
|
260
|
+
.np-text-body-default,
|
|
261
|
+
.wds-text-body-default {
|
|
259
262
|
color: var(--color-content-secondary);
|
|
260
263
|
}
|
|
261
264
|
|
|
@@ -313,7 +316,8 @@
|
|
|
313
316
|
background-color: var(--color-background-neutral-active);
|
|
314
317
|
|
|
315
318
|
.body-2,
|
|
316
|
-
.np-text-body-default
|
|
319
|
+
.np-text-body-default,
|
|
320
|
+
.wds-text-body-default {
|
|
317
321
|
color: var(--color-interactive-primary);
|
|
318
322
|
}
|
|
319
323
|
}
|
|
@@ -324,7 +328,8 @@
|
|
|
324
328
|
background-color: var(--color-background-neutral-active) !important;
|
|
325
329
|
|
|
326
330
|
.body-2,
|
|
327
|
-
.np-text-body-default
|
|
331
|
+
.np-text-body-default,
|
|
332
|
+
.wds-text-body-default {
|
|
328
333
|
color: var(--color-interactive-primary);
|
|
329
334
|
}
|
|
330
335
|
}
|
|
@@ -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('wds-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('wds-text-body-large'),
|
|
566
566
|
inverse ? s('np-dropdown-toggle-navy') : null,
|
|
567
567
|
)}
|
|
568
568
|
// reset Button's styles
|
|
@@ -6,7 +6,13 @@ 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
|
+
*/
|
|
9
12
|
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',
|
|
10
16
|
|
|
11
17
|
TITLE_SCREEN = 'title-screen',
|
|
12
18
|
TITLE_SECTION = 'title-section',
|
|
@@ -30,10 +36,23 @@ export type DisplayExtraLarge = 'display-extra-large';
|
|
|
30
36
|
export type DisplayLarge = 'display-large';
|
|
31
37
|
export type DisplayMedium = 'display-medium';
|
|
32
38
|
export type DisplaySmall = 'display-small';
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Use {@link DisplayNumberSmall} instead.
|
|
41
|
+
*/
|
|
33
42
|
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';
|
|
34
46
|
|
|
35
47
|
export type DisplayTypes =
|
|
36
|
-
|
|
48
|
+
| DisplayExtraLarge
|
|
49
|
+
| DisplayLarge
|
|
50
|
+
| DisplayMedium
|
|
51
|
+
| DisplaySmall
|
|
52
|
+
| DisplayNumber
|
|
53
|
+
| DisplayNumberSmall
|
|
54
|
+
| DisplayNumberMedium
|
|
55
|
+
| DisplayNumberLarge;
|
|
37
56
|
|
|
38
57
|
export type TitleScreen = 'title-screen';
|
|
39
58
|
export type TitleSection = 'title-section';
|