@transferwise/components 0.0.0-experimental-7a793eb → 0.0.0-experimental-97fe512
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/main.css +157 -153
- package/build/styles/Accordion/Accordion.css +7 -6
- package/build/styles/Body/Body.css +1 -1
- package/build/styles/Calendar/Calendar.css +11 -4
- package/build/styles/Calendar/TableLink/TableLink.css +11 -4
- package/build/styles/Chips/Chip/Chip.css +5 -3
- package/build/styles/Decision/Decision.css +4 -3
- package/build/styles/Emphasis/Emphasis.css +1 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
- package/build/styles/Inputs/Input/Input.css +5 -41
- package/build/styles/Inputs/TextArea/TextArea.css +5 -41
- package/build/styles/Label/Label.css +3 -0
- package/build/styles/Markup/Markup.css +2 -2
- package/build/styles/MoneyInput/MoneyInput.css +9 -6
- package/build/styles/Nudge/Nudge.css +3 -3
- package/build/styles/Popover/Popover.css +1 -37
- package/build/styles/ProgressBar/ProgressBar.css +3 -2
- package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
- package/build/styles/Snackbar/Snackbar.css +1 -1
- package/build/styles/Table/Table.css +18 -8
- package/build/styles/Tabs/Tabs.css +3 -3
- package/build/styles/Tag/Tag.css +1 -1
- package/build/styles/Tile/Tile.css +4 -3
- package/build/styles/Typeahead/Typeahead.css +4 -2
- package/build/styles/UploadInput/UploadInput.css +1 -1
- package/build/styles/_deprecated/ActionButton/ActionButton.css +3 -4
- package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
- package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/build/styles/_deprecated/Select/Select.css +22 -9
- 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/main.css +157 -153
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Accordion/Accordion.css +7 -6
- package/src/Accordion/Accordion.less +7 -6
- 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/Calendar.css +11 -4
- package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
- package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
- package/src/Calendar/TableLink/TableLink.css +11 -4
- package/src/Calendar/TableLink/TableLink.less +14 -4
- package/src/Calendar/TableLink/TableLink.tsx +1 -1
- package/src/Chips/Chip/Chip.css +5 -3
- package/src/Chips/Chip/Chip.less +3 -2
- package/src/CircularButton/_stories/CircularButton.story.tsx +6 -16
- package/src/Decision/Decision.css +4 -3
- package/src/Decision/Decision.less +4 -3
- package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
- package/src/Emphasis/Emphasis.css +1 -1
- package/src/Emphasis/Emphasis.less +1 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +2 -1
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +1 -4
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
- package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
- package/src/Inputs/Input/Input.css +5 -41
- 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 +5 -41
- package/src/Inputs/_common.less +12 -10
- package/src/Label/Label.css +3 -0
- package/src/Label/Label.less +8 -0
- package/src/Label/Label.tsx +1 -1
- package/src/Markup/Markup.css +2 -2
- package/src/Markup/Markup.less +2 -2
- package/src/MoneyInput/MoneyInput.css +9 -6
- package/src/MoneyInput/MoneyInput.less +10 -7
- package/src/Nudge/Nudge.css +3 -3
- package/src/Nudge/Nudge.less +3 -3
- package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
- package/src/Popover/Popover.css +1 -37
- package/src/Popover/Popover.less +2 -2
- package/src/ProgressBar/ProgressBar.css +3 -2
- package/src/ProgressBar/ProgressBar.less +12 -11
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +2 -1
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
- package/src/Snackbar/Snackbar.css +1 -1
- package/src/Snackbar/Snackbar.less +1 -1
- package/src/Stepper/Stepper.tsx +1 -1
- package/src/Table/Header/TableHeader.tsx +1 -1
- package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
- package/src/Table/Table.css +18 -8
- package/src/Table/Table.less +20 -9
- package/src/Tabs/Tab/Tab.tsx +1 -1
- package/src/Tabs/Tabs.css +3 -3
- package/src/Tabs/Tabs.less +3 -3
- 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/Tile/Tile.css +4 -3
- package/src/Tile/Tile.less +4 -3
- 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/UploadInput/UploadInput.css +1 -1
- package/src/UploadInput/UploadInput.less +7 -4
- package/src/_deprecated/ActionButton/ActionButton.css +3 -4
- package/src/_deprecated/ActionButton/ActionButton.less +4 -5
- package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
- package/src/_deprecated/Avatar/Avatar.css +2 -2
- package/src/_deprecated/Avatar/Avatar.less +2 -2
- package/src/_deprecated/Avatar/Avatar.tsx +1 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
- package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
- package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
- package/src/_deprecated/Select/Select.css +22 -9
- package/src/_deprecated/Select/Select.less +14 -10
- 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/main.css +157 -153
- package/src/main.less +3 -2
|
@@ -1276,7 +1276,7 @@ export const WithBuiltInSearchResultSorting: Story<CountryWithCurrency> = {
|
|
|
1276
1276
|
decorators: [
|
|
1277
1277
|
(Story) => (
|
|
1278
1278
|
<div>
|
|
1279
|
-
<p className="m-b-3
|
|
1279
|
+
<p className="m-b-3 wds-text-body-default" style={{ maxWidth: '600px' }}>
|
|
1280
1280
|
This example uses the built-in <code>SelectInput.sortByRelevance</code> helper to sort
|
|
1281
1281
|
filtered results by relevance (You can implement your own). This one prioritises: exact
|
|
1282
1282
|
matches → starts with → contains → alphabetical.
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
}
|
|
137
137
|
.np-form-control--size-sm {
|
|
138
138
|
word-wrap: break-word;
|
|
139
|
-
block-size: var(--size-
|
|
139
|
+
block-size: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
140
140
|
}
|
|
141
141
|
@supports (hyphenate-limit-chars: 1) {
|
|
142
142
|
.np-form-control--size-sm {
|
|
@@ -168,12 +168,12 @@
|
|
|
168
168
|
}
|
|
169
169
|
@media (max-width: 320px) {
|
|
170
170
|
.np-form-control--size-sm {
|
|
171
|
-
block-size: var(--size-
|
|
171
|
+
block-size: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
.np-form-control--size-md {
|
|
175
175
|
word-wrap: break-word;
|
|
176
|
-
block-size: var(--size-
|
|
176
|
+
block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
177
177
|
}
|
|
178
178
|
@supports (hyphenate-limit-chars: 1) {
|
|
179
179
|
.np-form-control--size-md {
|
|
@@ -205,48 +205,12 @@
|
|
|
205
205
|
}
|
|
206
206
|
@media (max-width: 320px) {
|
|
207
207
|
.np-form-control--size-md {
|
|
208
|
-
block-size: var(--size-
|
|
208
|
+
block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
.np-form-control--size-lg {
|
|
212
|
-
margin: 0;
|
|
213
|
-
color: var(--color-content-primary);
|
|
214
|
-
word-wrap: break-word;
|
|
215
212
|
margin-block-end: initial;
|
|
216
|
-
block-size: var(--size-
|
|
217
|
-
}
|
|
218
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
219
|
-
.np-form-control--size-lg {
|
|
220
|
-
hyphens: auto;
|
|
221
|
-
hyphenate-limit-chars: 7 3;
|
|
222
|
-
}
|
|
223
|
-
@media (min-width: 840px) {
|
|
224
|
-
.np-form-control--size-lg {
|
|
225
|
-
hyphenate-limit-chars: 8 3;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
@media (min-width: 1160px) {
|
|
229
|
-
.np-form-control--size-lg {
|
|
230
|
-
hyphenate-limit-chars: 10 4 3;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
235
|
-
.np-form-control--size-lg {
|
|
236
|
-
hyphens: auto;
|
|
237
|
-
-webkit-hyphenate-limit-before: 3;
|
|
238
|
-
-webkit-hyphenate-limit-after: 3;
|
|
239
|
-
}
|
|
240
|
-
@media (min-width: 1160px) {
|
|
241
|
-
.np-form-control--size-lg {
|
|
242
|
-
-webkit-hyphenate-limit-before: 4;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
.np-form-control--size-lg + p,
|
|
247
|
-
.np-form-control--size-lg + ul:not(.list-unstyled),
|
|
248
|
-
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
249
|
-
margin-block-start: var(--size-8);
|
|
213
|
+
block-size: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
|
|
250
214
|
}
|
|
251
215
|
.np-text-area {
|
|
252
216
|
min-block-size: var(--size-72);
|
package/src/Inputs/_common.less
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import (reference)
|
|
1
|
+
@import (reference) "./../styles/less/core/_typography.less";
|
|
2
2
|
|
|
3
3
|
.np-form-control {
|
|
4
4
|
--ring-width: 1px;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&--size-auto {
|
|
43
|
-
.
|
|
43
|
+
.wds-text-body-large;
|
|
44
44
|
padding-top: var(--size-12);
|
|
45
45
|
padding-bottom: var(--size-12);
|
|
46
46
|
}
|
|
@@ -54,23 +54,25 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&--size-sm {
|
|
57
|
-
.
|
|
58
|
-
height: var(--size-
|
|
57
|
+
.wds-text-body-default;
|
|
58
|
+
height: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
59
|
+
|
|
59
60
|
@media (--screen-400-zoom) {
|
|
60
|
-
height: var(--size-
|
|
61
|
+
height: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
&--size-md {
|
|
65
|
-
.
|
|
66
|
-
height: var(--size-
|
|
66
|
+
.wds-text-body-large;
|
|
67
|
+
height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
68
|
+
|
|
67
69
|
@media (--screen-400-zoom) {
|
|
68
|
-
height: var(--size-
|
|
70
|
+
height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
&--size-lg {
|
|
73
|
-
.
|
|
74
|
-
height: var(--size-
|
|
75
|
+
.wds-text-title-subsection;
|
|
76
|
+
height: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
|
|
75
77
|
}
|
|
76
78
|
}
|
package/src/Label/Label.tsx
CHANGED
|
@@ -29,7 +29,7 @@ const Label = forwardRef<HTMLLabelElement, LabelProps>(
|
|
|
29
29
|
id={id}
|
|
30
30
|
htmlFor={htmlFor}
|
|
31
31
|
className={clsx(
|
|
32
|
-
'np-label d-flex flex-column
|
|
32
|
+
'np-label d-flex flex-column wds-text-body-default-bold text-primary m-b-0',
|
|
33
33
|
className,
|
|
34
34
|
)}
|
|
35
35
|
>
|
package/src/Markup/Markup.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.wds-markup-emphasis {
|
|
2
|
-
font-weight: var(--font-weight-
|
|
2
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
3
3
|
font-style: normal;
|
|
4
4
|
}
|
|
5
5
|
.wds-markup-emphasis--important {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
color: var(--color-content-negative);
|
|
13
13
|
}
|
|
14
14
|
.wds-markup-strong {
|
|
15
|
-
font-weight: var(--font-weight-
|
|
15
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
16
16
|
}
|
|
17
17
|
.wds-markup-strikethrough {
|
|
18
18
|
-webkit-text-decoration: line-through;
|
package/src/Markup/Markup.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.wds-markup-emphasis {
|
|
2
|
-
font-weight: var(--font-weight-
|
|
2
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
3
3
|
font-style: normal;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.wds-markup-strong {
|
|
19
|
-
font-weight: var(--font-weight-
|
|
19
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/// @see https://www.webaxe.org/strikethrough-html-accessibility/
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
.tw-money-input .tw-money-input__fixed-currency {
|
|
5
5
|
padding-inline-start: 0 !important;
|
|
6
6
|
}
|
|
7
|
-
.tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection
|
|
7
|
+
.tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection,
|
|
8
|
+
.tw-money-input .tw-money-input__fixed-currency .wds-text-title-subsection {
|
|
8
9
|
color: var(--color-content-tertiary);
|
|
9
|
-
font-weight: var(--font-weight-
|
|
10
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
10
11
|
}
|
|
11
12
|
[dir="rtl"] .tw-money-input .money-input__number-input {
|
|
12
13
|
text-align: end;
|
|
@@ -18,14 +19,16 @@
|
|
|
18
19
|
.tw-money-input.input-group-sm .form-control {
|
|
19
20
|
min-block-size: 34px;
|
|
20
21
|
}
|
|
21
|
-
.tw-money-input.input-group-sm .np-text-title-subsection
|
|
22
|
-
|
|
22
|
+
.tw-money-input.input-group-sm .np-text-title-subsection,
|
|
23
|
+
.tw-money-input.input-group-sm .wds-text-title-subsection {
|
|
24
|
+
font-size: var(--wds-font-size-body);
|
|
23
25
|
}
|
|
24
26
|
.tw-money-input.input-group-md .form-control {
|
|
25
27
|
min-block-size: 53px;
|
|
26
28
|
}
|
|
27
|
-
.tw-money-input.input-group-md .np-text-title-subsection
|
|
28
|
-
|
|
29
|
+
.tw-money-input.input-group-md .np-text-title-subsection,
|
|
30
|
+
.tw-money-input.input-group-md .wds-text-title-subsection {
|
|
31
|
+
font-size: var(--wds-font-size-body-large);
|
|
29
32
|
}
|
|
30
33
|
.tw-money-input .input-group-addon {
|
|
31
34
|
flex-shrink: 0;
|
|
@@ -5,13 +5,14 @@
|
|
|
5
5
|
.tw-money-input__fixed-currency {
|
|
6
6
|
padding-left: 0 !important;
|
|
7
7
|
|
|
8
|
-
.np-text-title-subsection
|
|
8
|
+
.np-text-title-subsection,
|
|
9
|
+
.wds-text-title-subsection {
|
|
9
10
|
color: var(--color-content-tertiary);
|
|
10
|
-
font-weight: var(--font-weight-
|
|
11
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.money-input__number-input{
|
|
15
|
+
.money-input__number-input {
|
|
15
16
|
[dir="rtl"] & {
|
|
16
17
|
text-align: end;
|
|
17
18
|
}
|
|
@@ -26,8 +27,9 @@
|
|
|
26
27
|
.form-control {
|
|
27
28
|
min-height: 34px;
|
|
28
29
|
}
|
|
29
|
-
.np-text-title-subsection
|
|
30
|
-
|
|
30
|
+
.np-text-title-subsection,
|
|
31
|
+
.wds-text-title-subsection {
|
|
32
|
+
font-size: var(--wds-font-size-body);
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -35,8 +37,9 @@
|
|
|
35
37
|
.form-control {
|
|
36
38
|
min-height: 53px;
|
|
37
39
|
}
|
|
38
|
-
.np-text-title-subsection
|
|
39
|
-
|
|
40
|
+
.np-text-title-subsection,
|
|
41
|
+
.wds-text-title-subsection {
|
|
42
|
+
font-size: var(--wds-font-size-body-large);
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
|
package/src/Nudge/Nudge.css
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--nudge-container-padding: var(--size-16);
|
|
10
10
|
--nudge-content-flex-alignment: center;
|
|
11
11
|
--nudge-title-color: var(--color-content-primary);
|
|
12
|
-
--nudge-title-font-weight: var(--font-weight-
|
|
13
|
-
--nudge-title-line-height: var(--line-height-title);
|
|
12
|
+
--nudge-title-font-weight: var(--wds-font-weight-body-bold);
|
|
13
|
+
--nudge-title-line-height: var(--wds-line-height-title-section);
|
|
14
14
|
--nudge-control-width: var(--size-24);
|
|
15
15
|
--nudge-control-background-color: var(--color-background-neutral);
|
|
16
16
|
align-items: stretch;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
margin: 0;
|
|
142
142
|
}
|
|
143
143
|
.wds-nudge-container .wds-nudge-content .wds-nudge-link {
|
|
144
|
-
font-weight: var(--font-weight-
|
|
144
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
145
145
|
margin-block-start: var(--size-4);
|
|
146
146
|
-webkit-text-decoration: var(--nudge-link-text-decoration);
|
|
147
147
|
text-decoration: var(--nudge-link-text-decoration);
|
package/src/Nudge/Nudge.less
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
--nudge-container-padding: var(--size-16);
|
|
10
10
|
--nudge-content-flex-alignment: center;
|
|
11
11
|
--nudge-title-color: var(--color-content-primary);
|
|
12
|
-
--nudge-title-font-weight: var(--font-weight-
|
|
13
|
-
--nudge-title-line-height: var(--line-height-title);
|
|
12
|
+
--nudge-title-font-weight: var(--wds-font-weight-body-bold);
|
|
13
|
+
--nudge-title-line-height: var(--wds-line-height-title-section);
|
|
14
14
|
--nudge-control-width: var(--size-24);
|
|
15
15
|
--nudge-control-background-color: var(--color-background-neutral);
|
|
16
16
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.wds-nudge-link {
|
|
123
|
-
font-weight: var(--font-weight-
|
|
123
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
124
124
|
margin-top: var(--size-4);
|
|
125
125
|
text-decoration: var(--nudge-link-text-decoration);
|
|
126
126
|
}
|
|
@@ -22,7 +22,7 @@ const PocketCard = ({ variant }: { variant?: PocketVariant } = {}) => (
|
|
|
22
22
|
{variant}
|
|
23
23
|
</span>
|
|
24
24
|
)}
|
|
25
|
-
<strong className="
|
|
25
|
+
<strong className="wds-text-title-screen" style={{ color: 'inherit' }}>
|
|
26
26
|
Some headline text
|
|
27
27
|
</strong>
|
|
28
28
|
<p style={{ margin: 0 }}>A bit of body copy</p>
|
|
@@ -227,7 +227,7 @@ export const ExposedTokens: Story = {
|
|
|
227
227
|
<PocketSurface key={variant} pocket={variant}>
|
|
228
228
|
<div className="p-a-3">
|
|
229
229
|
<h4
|
|
230
|
-
className="d-block m-b-2 text-capitalize
|
|
230
|
+
className="d-block m-b-2 text-capitalize wds-text-title-body"
|
|
231
231
|
style={{ color: 'inherit' }}
|
|
232
232
|
>
|
|
233
233
|
{variant}
|
package/src/Popover/Popover.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
.np-popover__container .np-popover__content {
|
|
8
8
|
color: var(--color-content-secondary);
|
|
9
|
-
font-size: var(--font-size-
|
|
9
|
+
font-size: var(--wds-font-size-body);
|
|
10
10
|
}
|
|
11
11
|
.np-popover__container .np-popover__content p:last-child {
|
|
12
12
|
margin-block-end: 0;
|
|
@@ -20,44 +20,8 @@
|
|
|
20
20
|
padding: var(--size-24);
|
|
21
21
|
}
|
|
22
22
|
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
23
|
-
margin: 0;
|
|
24
|
-
color: var(--color-content-primary);
|
|
25
|
-
word-wrap: break-word;
|
|
26
23
|
margin-block-end: initial;
|
|
27
24
|
}
|
|
28
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
29
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
30
|
-
hyphens: auto;
|
|
31
|
-
hyphenate-limit-chars: 7 3;
|
|
32
|
-
}
|
|
33
|
-
@media (min-width: 840px) {
|
|
34
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
35
|
-
hyphenate-limit-chars: 8 3;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
@media (min-width: 1160px) {
|
|
39
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
40
|
-
hyphenate-limit-chars: 10 4 3;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
45
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
46
|
-
hyphens: auto;
|
|
47
|
-
-webkit-hyphenate-limit-before: 3;
|
|
48
|
-
-webkit-hyphenate-limit-after: 3;
|
|
49
|
-
}
|
|
50
|
-
@media (min-width: 1160px) {
|
|
51
|
-
.np-popover__container.np-bottom-sheet .np-popover__title {
|
|
52
|
-
-webkit-hyphenate-limit-before: 4;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.np-popover__container.np-bottom-sheet .np-popover__title + p,
|
|
57
|
-
.np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
|
|
58
|
-
.np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {
|
|
59
|
-
margin-block-start: var(--size-8);
|
|
60
|
-
}
|
|
61
25
|
.np-popover__container.np-bottom-sheet .np-popover__content {
|
|
62
26
|
padding-block: var(--size-32);
|
|
63
27
|
padding-inline: var(--size-24);
|
package/src/Popover/Popover.less
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
.np-popover__content {
|
|
12
12
|
color: var(--color-content-secondary);
|
|
13
|
-
font-size: var(--font-size-
|
|
13
|
+
font-size: var(--wds-font-size-body);
|
|
14
14
|
|
|
15
15
|
p:last-child {
|
|
16
16
|
margin-bottom: 0;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
&.np-bottom-sheet {
|
|
32
32
|
.np-popover__title {
|
|
33
|
-
.
|
|
33
|
+
.wds-text-title-section();
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.np-popover__content {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
.np-progress-bar__title .h4
|
|
1
|
+
.np-progress-bar__title .h4,
|
|
2
|
+
.np-progress-bar__title .wds-text-title-body {
|
|
2
3
|
color: var(--color-content-primary);
|
|
3
4
|
margin-block-end: var(--size-4);
|
|
4
5
|
}
|
|
5
6
|
.np-progress-bar p {
|
|
6
7
|
color: var(--color-content-primary);
|
|
7
8
|
margin-block-start: var(--size-4);
|
|
8
|
-
font-weight: var(--font-weight-
|
|
9
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
9
10
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
.np-progress-bar {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
margin-bottom: var(--size-4);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
p {
|
|
2
|
+
&__title {
|
|
3
|
+
.h4,
|
|
4
|
+
.wds-text-title-body {
|
|
10
5
|
color: var(--color-content-primary);
|
|
11
|
-
margin-
|
|
12
|
-
font-weight: var(--font-weight-semi-bold);
|
|
6
|
+
margin-bottom: var(--size-4);
|
|
13
7
|
}
|
|
14
|
-
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
p {
|
|
11
|
+
color: var(--color-content-primary);
|
|
12
|
+
margin-top: var(--size-4);
|
|
13
|
+
font-weight: var(--wds-font-weight-body-bold);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
.wds-prompt__media-wrapper {
|
|
23
23
|
align-self: flex-start;
|
|
24
|
-
|
|
24
|
+
align-content: center;
|
|
25
|
+
min-block-size: calc(var(--wds-line-height-body) * var(--wds-font-size-body));
|
|
25
26
|
}
|
|
26
27
|
.wds-prompt__media-wrapper .tw-icon-tags,
|
|
27
28
|
.wds-prompt__media-wrapper .tw-icon-confetti {
|
package/src/Stepper/Stepper.tsx
CHANGED
|
@@ -73,7 +73,7 @@ const Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) =>
|
|
|
73
73
|
className={clsx(
|
|
74
74
|
'hidden-xs',
|
|
75
75
|
'tw-stepper__step',
|
|
76
|
-
active ? '
|
|
76
|
+
active ? 'wds-text-body-default-bold tw-stepper__step--active' : 'wds-text-body-default',
|
|
77
77
|
clickable && 'tw-stepper__step--clickable',
|
|
78
78
|
step.hoverLabel && 'tw-stepper__step--has-tooltip',
|
|
79
79
|
)}
|
|
@@ -50,7 +50,7 @@ const TableHeader = ({
|
|
|
50
50
|
// If headers are empty, we still should render empty headers to keep visual consistency
|
|
51
51
|
return (
|
|
52
52
|
<div
|
|
53
|
-
className="np-table-header-content
|
|
53
|
+
className="np-table-header-content wds-text-body-default-bold"
|
|
54
54
|
data-testid="np-table-empty-header"
|
|
55
55
|
>
|
|
56
56
|
|
|
@@ -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
|
@@ -37,10 +37,16 @@
|
|
|
37
37
|
}
|
|
38
38
|
.np-table-inner-container {
|
|
39
39
|
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));
|
|
40
|
-
background-position: left center,
|
|
40
|
+
background-position: left center,
|
|
41
|
+
right center,
|
|
42
|
+
left center,
|
|
43
|
+
right center;
|
|
41
44
|
background-repeat: no-repeat;
|
|
42
45
|
background-color: var(--color-contrast-overlay);
|
|
43
|
-
background-size: 15px 100%,
|
|
46
|
+
background-size: 15px 100%,
|
|
47
|
+
15px 100%,
|
|
48
|
+
15px 100%,
|
|
49
|
+
15px 100%;
|
|
44
50
|
background-attachment: local, local, scroll, scroll;
|
|
45
51
|
overflow-x: auto;
|
|
46
52
|
border-radius: 10px;
|
|
@@ -130,7 +136,9 @@
|
|
|
130
136
|
padding-inline-end: 0;
|
|
131
137
|
}
|
|
132
138
|
.np-table-header.np-table-header--right > .np-text-body-default,
|
|
133
|
-
.np-table-cell.np-table-cell--right > .np-text-body-default
|
|
139
|
+
.np-table-cell.np-table-cell--right > .np-text-body-default,
|
|
140
|
+
.np-table-header.np-table-header--right > .wds-text-body-default,
|
|
141
|
+
.np-table-cell.np-table-cell--right > .wds-text-body-default {
|
|
134
142
|
text-align: end;
|
|
135
143
|
}
|
|
136
144
|
.np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
|
|
@@ -159,8 +167,8 @@
|
|
|
159
167
|
padding-block-start: 5px;
|
|
160
168
|
padding-block-end: 5px;
|
|
161
169
|
white-space: nowrap;
|
|
162
|
-
line-height: var(--line-height-
|
|
163
|
-
letter-spacing: var(--letter-spacing-
|
|
170
|
+
line-height: var(--wds-line-height-title-subsection);
|
|
171
|
+
letter-spacing: var(--wds-letter-spacing-title-subsection);
|
|
164
172
|
}
|
|
165
173
|
.np-table-header--error {
|
|
166
174
|
color: var(--color-sentiment-negative);
|
|
@@ -180,7 +188,8 @@
|
|
|
180
188
|
.np-table-cell--primary {
|
|
181
189
|
min-inline-size: 200px;
|
|
182
190
|
}
|
|
183
|
-
.np-table-cell--currency .np-text-body-default
|
|
191
|
+
.np-table-cell--currency .np-text-body-default,
|
|
192
|
+
.np-table-cell--currency .wds-text-body-default {
|
|
184
193
|
white-space: nowrap;
|
|
185
194
|
}
|
|
186
195
|
.np-table-cell .tw-chevron {
|
|
@@ -193,7 +202,8 @@
|
|
|
193
202
|
background-color: var(--color-background-neutral);
|
|
194
203
|
padding: 0;
|
|
195
204
|
}
|
|
196
|
-
.np-table-cell .np-text-body-default-bold
|
|
205
|
+
.np-table-cell .np-text-body-default-bold,
|
|
206
|
+
.np-table-cell .wds-text-body-default-bold {
|
|
197
207
|
display: flex;
|
|
198
208
|
align-items: center;
|
|
199
209
|
color: var(--color-content-primary);
|
|
@@ -232,7 +242,7 @@
|
|
|
232
242
|
.np-table-content-body {
|
|
233
243
|
display: flex;
|
|
234
244
|
flex-direction: column;
|
|
235
|
-
font-size: var(--font-size-
|
|
245
|
+
font-size: var(--wds-font-size-nav);
|
|
236
246
|
color: var(--color-content-tertiary);
|
|
237
247
|
}
|
|
238
248
|
.np-table-content--reversed {
|