@transferwise/components 0.0.0-experimental-74e7404 → 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 +2907 -1535
- 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 +62 -66
- package/build/styles/Inputs/TextArea/TextArea.css +62 -66
- package/build/styles/MoneyInput/MoneyInput.css +6 -3
- package/build/styles/Popover/Popover.css +3 -47
- 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 +44 -11
- package/build/styles/css/accordion.css +23 -52
- package/build/styles/css/button-groups.css +29 -8
- package/build/styles/css/buttons.css +26 -2
- package/build/styles/css/decision.css +23 -52
- package/build/styles/css/dropdowns.css +39 -62
- package/build/styles/css/droppable.css +28 -8
- package/build/styles/css/footer.css +41 -14
- package/build/styles/css/input-groups.css +172 -165
- package/build/styles/css/list-group.css +0 -45
- package/build/styles/css/navbar.css +39 -62
- package/build/styles/css/neptune-addons.css +15 -0
- package/build/styles/css/neptune-core.css +250 -526
- package/build/styles/css/neptune.css +2759 -1422
- package/build/styles/css/popovers.css +35 -60
- package/build/styles/css/sequences.css +6 -1
- package/build/styles/css/tooltip.css +27 -7
- package/build/styles/less/neptune-tokens.less +0 -48
- package/build/styles/main.css +2907 -1535
- package/build/styles/props/neptune-tokens.css +793 -1
- package/build/styles/styles/less/accordion.css +23 -52
- package/build/styles/styles/less/button-groups.css +29 -8
- package/build/styles/styles/less/buttons.css +26 -2
- package/build/styles/styles/less/decision.css +23 -52
- package/build/styles/styles/less/dropdowns.css +39 -62
- package/build/styles/styles/less/droppable.css +28 -8
- package/build/styles/styles/less/footer.css +41 -14
- package/build/styles/styles/less/forms/bootstrap-forms.css +137 -91
- package/build/styles/styles/less/input-groups.css +172 -165
- package/build/styles/styles/less/list-group.css +0 -45
- package/build/styles/styles/less/navbar.css +39 -62
- package/build/styles/styles/less/neptune-addons.css +15 -0
- package/build/styles/styles/less/neptune-core.css +250 -526
- package/build/styles/styles/less/neptune.css +2759 -1422
- package/build/styles/styles/less/popovers.css +35 -60
- package/build/styles/styles/less/sequences.css +6 -1
- package/build/styles/styles/less/tooltip.css +27 -7
- 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 +62 -66
- 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 +62 -66
- 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 +3 -47
- 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 +44 -11
- 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 +2907 -1535
- package/src/styles/less/accordion.css +23 -52
- package/src/styles/less/addons/_background-utilities.less +5 -0
- package/src/styles/less/button-groups.css +29 -8
- package/src/styles/less/button-groups.less +3 -2
- package/src/styles/less/buttons.css +26 -2
- package/src/styles/less/buttons.less +1 -1
- package/src/styles/less/core/_typography.less +67 -221
- package/src/styles/less/decision.css +23 -52
- package/src/styles/less/decision.less +2 -2
- package/src/styles/less/dropdowns.css +39 -62
- package/src/styles/less/dropdowns.less +6 -5
- package/src/styles/less/droppable.css +28 -8
- package/src/styles/less/droppable.less +4 -4
- package/src/styles/less/footer.css +41 -14
- package/src/styles/less/footer.less +4 -3
- package/src/styles/less/forms/bootstrap-forms.css +137 -91
- package/src/styles/less/forms/bootstrap-forms.less +70 -57
- package/src/styles/less/input-groups.css +172 -165
- package/src/styles/less/input-groups.less +5 -5
- package/src/styles/less/list-group.css +0 -45
- package/src/styles/less/list-group.less +7 -4
- package/src/styles/less/mixins/_text-emphasis.less +7 -1
- package/src/styles/less/navbar.css +39 -62
- package/src/styles/less/neptune-addons.css +15 -0
- package/src/styles/less/neptune-core.css +250 -526
- package/src/styles/less/neptune.bundle.less +4 -0
- package/src/styles/less/neptune.css +2759 -1422
- package/src/styles/less/popovers.css +35 -60
- package/src/styles/less/popovers.less +3 -3
- package/src/styles/less/sequences.css +6 -1
- package/src/styles/less/sequences.less +7 -2
- package/src/styles/less/tooltip.css +27 -7
- package/src/styles/less/tooltip.less +1 -1
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
.
|
|
1
|
+
.popover,
|
|
2
|
+
.popover-content {
|
|
3
|
+
word-wrap: break-word;
|
|
4
|
+
}
|
|
5
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
6
|
+
.popover,
|
|
7
|
+
.popover-content {
|
|
8
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
9
|
+
}
|
|
10
|
+
@media (min-width: 840px) {
|
|
11
|
+
.popover,
|
|
12
|
+
.popover-content {
|
|
13
|
+
hyphenate-limit-chars: 8 3;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@media (min-width: 1160px) {
|
|
17
|
+
.popover,
|
|
18
|
+
.popover-content {
|
|
19
|
+
hyphenate-limit-chars: 10 4 3;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
23
|
+
.popover,
|
|
24
|
+
.popover-content {
|
|
25
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
26
|
+
}
|
|
27
|
+
@media (min-width: 1160px) {
|
|
28
|
+
.popover,
|
|
29
|
+
.popover-content {
|
|
30
|
+
-webkit-hyphenate-limit-before: 4;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}.close {
|
|
2
34
|
float: inline-end;
|
|
3
35
|
color: #0097c7;
|
|
4
36
|
color: var(--color-content-accent);
|
|
@@ -66,12 +98,6 @@ button.close {
|
|
|
66
98
|
word-break: normal;
|
|
67
99
|
word-spacing: normal;
|
|
68
100
|
word-wrap: normal;
|
|
69
|
-
font-size: 0.875rem;
|
|
70
|
-
font-size: var(--font-size-14);
|
|
71
|
-
line-height: 155%;
|
|
72
|
-
letter-spacing: -0.006em;
|
|
73
|
-
font-weight: 400;
|
|
74
|
-
font-weight: var(--font-weight-regular);
|
|
75
101
|
word-wrap: break-word;
|
|
76
102
|
background-color: #ffffff;
|
|
77
103
|
background-color: var(--color-background-screen);
|
|
@@ -258,20 +284,8 @@ button.close {
|
|
|
258
284
|
margin-inline: 0;
|
|
259
285
|
}
|
|
260
286
|
.popover-title {
|
|
261
|
-
padding: 0;
|
|
262
287
|
margin: 0;
|
|
263
|
-
|
|
264
|
-
color: var(--color-content-primary);
|
|
265
|
-
line-height: 1.2;
|
|
266
|
-
line-height: var(--line-height-title);
|
|
267
|
-
letter-spacing: 0;
|
|
268
|
-
word-wrap: break-word;
|
|
269
|
-
font-size: 1.125rem;
|
|
270
|
-
font-size: var(--font-size-18);
|
|
271
|
-
font-weight: 600;
|
|
272
|
-
font-weight: var(--font-weight-semi-bold);
|
|
273
|
-
letter-spacing: -0.014em;
|
|
274
|
-
line-height: 135%;
|
|
288
|
+
padding: 0;
|
|
275
289
|
background-color: #ffffff;
|
|
276
290
|
background-color: var(--color-background-screen);
|
|
277
291
|
border-block-end: 0;
|
|
@@ -279,50 +293,11 @@ button.close {
|
|
|
279
293
|
border-start-end-radius: 2px;
|
|
280
294
|
border-end-end-radius: 0;
|
|
281
295
|
border-end-start-radius: 0;
|
|
296
|
+
color: #37517e !important;
|
|
282
297
|
color: var(--color-content-primary) !important;
|
|
283
298
|
}
|
|
284
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
285
|
-
.popover-title {
|
|
286
|
-
hyphens: auto;
|
|
287
|
-
hyphenate-limit-chars: 7 3;
|
|
288
|
-
}
|
|
289
|
-
@media (min-width: 840px) {
|
|
290
|
-
.popover-title {
|
|
291
|
-
hyphenate-limit-chars: 8 3;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
@media (min-width: 1160px) {
|
|
295
|
-
.popover-title {
|
|
296
|
-
hyphenate-limit-chars: 10 4 3;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
301
|
-
.popover-title {
|
|
302
|
-
hyphens: auto;
|
|
303
|
-
-webkit-hyphenate-limit-before: 3;
|
|
304
|
-
-webkit-hyphenate-limit-after: 3;
|
|
305
|
-
}
|
|
306
|
-
@media (min-width: 1160px) {
|
|
307
|
-
.popover-title {
|
|
308
|
-
-webkit-hyphenate-limit-before: 4;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
.popover-title + p,
|
|
313
|
-
.popover-title + ul:not(.list-unstyled),
|
|
314
|
-
.popover-title + ol:not(.list-unstyled) {
|
|
315
|
-
margin-block-start: 8px;
|
|
316
|
-
margin-block-start: var(--size-8);
|
|
317
|
-
}
|
|
318
299
|
.popover-content {
|
|
319
300
|
padding: 0;
|
|
320
|
-
font-size: 0.875rem;
|
|
321
|
-
font-size: var(--font-size-14);
|
|
322
|
-
line-height: 155%;
|
|
323
|
-
letter-spacing: -0.006em;
|
|
324
|
-
font-weight: 400;
|
|
325
|
-
font-weight: var(--font-weight-regular);
|
|
326
301
|
word-wrap: break-word;
|
|
327
302
|
color: #5d7079;
|
|
328
303
|
color: var(--color-content-secondary);
|
|
@@ -131,6 +131,10 @@
|
|
|
131
131
|
.sequence > li .h2,
|
|
132
132
|
.sequence > li .h3,
|
|
133
133
|
.sequence > li .h4,
|
|
134
|
+
.sequence > li .wds-text-title-screen,
|
|
135
|
+
.sequence > li .wds-text-title-section,
|
|
136
|
+
.sequence > li .wds-text-title-subsection,
|
|
137
|
+
.sequence > li .wds-text-title-body,
|
|
134
138
|
.sequence > li .btn-toolbar {
|
|
135
139
|
margin-block-end: 16px;
|
|
136
140
|
}
|
|
@@ -221,7 +225,8 @@
|
|
|
221
225
|
}
|
|
222
226
|
.sequence-inverse > .active .small,
|
|
223
227
|
.sequence-inverse > .active .body-2,
|
|
224
|
-
.sequence-inverse > .active .np-text-body-default
|
|
228
|
+
.sequence-inverse > .active .np-text-body-default,
|
|
229
|
+
.sequence-inverse > .active .wds-text-body-default {
|
|
225
230
|
color: #5d7079;
|
|
226
231
|
color: var(--color-content-secondary);
|
|
227
232
|
}
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
.tooltip {
|
|
1
|
+
.tooltip-inner {
|
|
2
|
+
word-wrap: break-word;
|
|
3
|
+
}
|
|
4
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
5
|
+
.tooltip-inner {
|
|
6
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
7
|
+
}
|
|
8
|
+
@media (min-width: 840px) {
|
|
9
|
+
.tooltip-inner {
|
|
10
|
+
hyphenate-limit-chars: 8 3;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 1160px) {
|
|
14
|
+
.tooltip-inner {
|
|
15
|
+
hyphenate-limit-chars: 10 4 3;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
19
|
+
.tooltip-inner {
|
|
20
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: 1160px) {
|
|
23
|
+
.tooltip-inner {
|
|
24
|
+
-webkit-hyphenate-limit-before: 4;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}.tooltip {
|
|
2
28
|
position: absolute;
|
|
3
29
|
z-index: 1070;
|
|
4
30
|
display: block;
|
|
@@ -45,12 +71,6 @@
|
|
|
45
71
|
padding-inline: 5px;
|
|
46
72
|
}
|
|
47
73
|
.tooltip-inner {
|
|
48
|
-
font-size: 0.875rem;
|
|
49
|
-
font-size: var(--font-size-14);
|
|
50
|
-
line-height: 155%;
|
|
51
|
-
letter-spacing: -0.006em;
|
|
52
|
-
font-weight: 400;
|
|
53
|
-
font-weight: var(--font-weight-regular);
|
|
54
74
|
word-wrap: break-word;
|
|
55
75
|
max-inline-size: 200px;
|
|
56
76
|
min-inline-size: 120px;
|
|
@@ -11,7 +11,7 @@ export type BodyProps = HTMLAttributes<HTMLSpanElement | HTMLParagraphElement> &
|
|
|
11
11
|
*/
|
|
12
12
|
preserveNewlines?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<
|
|
14
|
+
declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement | HTMLSpanElement> & {
|
|
15
15
|
/** @default 'body-default' */
|
|
16
16
|
type?: BodyTypes;
|
|
17
17
|
/** @default 'div' */
|
|
@@ -21,6 +21,6 @@ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTM
|
|
|
21
21
|
* @default false
|
|
22
22
|
*/
|
|
23
23
|
preserveNewlines?: boolean;
|
|
24
|
-
} & import("react").RefAttributes<HTMLDivElement |
|
|
24
|
+
} & import("react").RefAttributes<HTMLDivElement | HTMLParagraphElement | HTMLSpanElement | null>>;
|
|
25
25
|
export default Body;
|
|
26
26
|
//# sourceMappingURL=Body.d.ts.map
|
|
@@ -16,6 +16,6 @@ declare const IconButton: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
/** @default 'default' */
|
|
17
17
|
type?: "default" | "negative";
|
|
18
18
|
'data-testid'?: string;
|
|
19
|
-
} & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "
|
|
19
|
+
} & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "id" | "className" | "tabIndex" | "role" | "aria-label" | "children"> & import("react").RefAttributes<unknown>>;
|
|
20
20
|
export default IconButton;
|
|
21
21
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -55,6 +55,7 @@ declare const _default: import("react").FC<{
|
|
|
55
55
|
selectProps?: Partial<SelectInputProps<CurrencyOptionItem>> | undefined;
|
|
56
56
|
amount: number | null;
|
|
57
57
|
searchPlaceholder?: string | undefined;
|
|
58
|
+
decimals?: number | undefined;
|
|
58
59
|
currencies: readonly CurrencyItem[];
|
|
59
60
|
selectedCurrency: CurrencyOptionItem;
|
|
60
61
|
onCurrencyChange?: ((value: CurrencyOptionItem) => void) | undefined;
|
|
@@ -66,7 +67,6 @@ declare const _default: import("react").FC<{
|
|
|
66
67
|
}) => void) | undefined;
|
|
67
68
|
customActionLabel?: import("react").ReactNode;
|
|
68
69
|
onCustomAction?: (() => void) | undefined;
|
|
69
|
-
decimals?: number | undefined;
|
|
70
70
|
}>;
|
|
71
71
|
export default _default;
|
|
72
72
|
//# sourceMappingURL=MoneyInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/MoneyInput/MoneyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EAEV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAuB,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEnF,OAAO,EAKL,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAO/B,MAAM,WAA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MAAM;eAcf,MAAM;gBAtBL,SAAS,YAAY,EAAE;sBACjB,kBAAkB;wBACjB,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI;sBAIrC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;;sBAM9B,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,YAAY,EAAE,CAAA;KAAE,KAAK,IAAI;;sBAEzE,MAAM,IAAI;;AAkb7B,wBAA2F"}
|
|
@@ -10,7 +10,7 @@ export type TitleProps = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElemen
|
|
|
10
10
|
*/
|
|
11
11
|
type?: TitleTypes;
|
|
12
12
|
};
|
|
13
|
-
declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<
|
|
13
|
+
declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLHeadingElement | HTMLLabelElement | HTMLSpanElement> & React.LiHTMLAttributes<HTMLLIElement> & {
|
|
14
14
|
/**
|
|
15
15
|
* Default value will based one `type` prop
|
|
16
16
|
*/
|
|
@@ -19,6 +19,6 @@ declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<H
|
|
|
19
19
|
* Default value: {@link DEFAULT_TYPE}
|
|
20
20
|
*/
|
|
21
21
|
type?: TitleTypes;
|
|
22
|
-
} & React.RefAttributes<
|
|
22
|
+
} & React.RefAttributes<HTMLHeadingElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLSpanElement>>;
|
|
23
23
|
export default Title;
|
|
24
24
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -15,7 +15,7 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
|
|
|
15
15
|
uploadInputRef: import("react").RefObject<HTMLInputElement>;
|
|
16
16
|
onManualUpload: () => void;
|
|
17
17
|
onKeyDown: (event: React.KeyboardEvent<HTMLLabelElement>) => void;
|
|
18
|
-
getImage: () => number | true | import("react").
|
|
18
|
+
getImage: () => number | true | Iterable<import("react").ReactNode> | import("react").JSX.Element;
|
|
19
19
|
render(): import("react").JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=UploadImageStep.d.ts.map
|
|
@@ -5,5 +5,5 @@ export declare const UploadItemLink: import("react").ForwardRefExoticComponent<{
|
|
|
5
5
|
singleFileUpload: boolean;
|
|
6
6
|
} & {
|
|
7
7
|
children?: import("react").ReactNode | undefined;
|
|
8
|
-
} & import("react").RefAttributes<
|
|
8
|
+
} & import("react").RefAttributes<HTMLAnchorElement | HTMLDivElement>>;
|
|
9
9
|
//# sourceMappingURL=UploadItemLink.d.ts.map
|
|
@@ -6,7 +6,13 @@ export declare 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
|
TITLE_SCREEN = "title-screen",
|
|
11
17
|
TITLE_SECTION = "title-section",
|
|
12
18
|
TITLE_SUBSECTION = "title-subsection",
|
|
@@ -26,8 +32,14 @@ export type DisplayExtraLarge = 'display-extra-large';
|
|
|
26
32
|
export type DisplayLarge = 'display-large';
|
|
27
33
|
export type DisplayMedium = 'display-medium';
|
|
28
34
|
export type DisplaySmall = 'display-small';
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated Use {@link DisplayNumberSmall} instead.
|
|
37
|
+
*/
|
|
29
38
|
export type DisplayNumber = 'display-number';
|
|
30
|
-
export type
|
|
39
|
+
export type DisplayNumberSmall = 'display-number-small';
|
|
40
|
+
export type DisplayNumberMedium = 'display-number-medium';
|
|
41
|
+
export type DisplayNumberLarge = 'display-number-large';
|
|
42
|
+
export type DisplayTypes = DisplayExtraLarge | DisplayLarge | DisplayMedium | DisplaySmall | DisplayNumber | DisplayNumberSmall | DisplayNumberMedium | DisplayNumberLarge;
|
|
31
43
|
export type TitleScreen = 'title-screen';
|
|
32
44
|
export type TitleSection = 'title-section';
|
|
33
45
|
export type TitleSubsection = 'title-subsection';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/common/PropsValues/typography.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;OAEG;IACH,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/common/PropsValues/typography.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;OAEG;IACH,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B;;OAEG;IACH,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,oBAAoB,yBAAyB;IAE7C,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IAEnC,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAC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/package.json
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
background-color: transparent;
|
|
10
10
|
}
|
|
11
11
|
.np-accordion-item.np-accordion-item--dark .media-body,
|
|
12
|
-
.np-accordion-item.np-accordion-item--dark .np-text-title-body
|
|
12
|
+
.np-accordion-item.np-accordion-item--dark .np-text-title-body,
|
|
13
|
+
.np-accordion-item.np-accordion-item--dark .wds-text-title-body {
|
|
13
14
|
color: #ffffff;
|
|
14
15
|
}
|
|
15
16
|
.np-accordion-item__content {
|
package/src/Body/Body.css
CHANGED
package/src/Body/Body.less
CHANGED
package/src/Body/Body.test.tsx
CHANGED
|
@@ -9,7 +9,7 @@ describe('Body', () => {
|
|
|
9
9
|
const copy = screen.getByText('Test');
|
|
10
10
|
expect(copy).toBeInTheDocument();
|
|
11
11
|
expect(copy.tagName).toBe('DIV');
|
|
12
|
-
expect(copy).toHaveClass(`
|
|
12
|
+
expect(copy).toHaveClass(`wds-text-${Typography.BODY_DEFAULT}`);
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
it('enforces tag via `as` prop', () => {
|
|
@@ -17,7 +17,7 @@ describe('Body', () => {
|
|
|
17
17
|
const copy = screen.getByText('Test');
|
|
18
18
|
expect(copy).toBeInTheDocument();
|
|
19
19
|
expect(copy.tagName).toBe('P');
|
|
20
|
-
expect(copy).toHaveClass(`
|
|
20
|
+
expect(copy).toHaveClass(`wds-text-${Typography.BODY_DEFAULT}`);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
it('supports native HTML attrs', () => {
|
|
@@ -35,7 +35,7 @@ describe('Body', () => {
|
|
|
35
35
|
it('renders newlines as line breaks when preserveNewlines is true', () => {
|
|
36
36
|
render(<Body preserveNewlines>{'Line 1.\nLine 2'}</Body>);
|
|
37
37
|
const copy = screen.getByText(/Line 1\.\s*Line 2/);
|
|
38
|
-
expect(copy).toHaveClass('
|
|
38
|
+
expect(copy).toHaveClass('wds-text--pre-line');
|
|
39
39
|
expect(copy).toHaveTextContent('Line 1.');
|
|
40
40
|
expect(copy).toHaveTextContent('Line 2');
|
|
41
41
|
});
|
|
@@ -47,6 +47,6 @@ describe('Body', () => {
|
|
|
47
47
|
const copy = screen.getByText('Test');
|
|
48
48
|
expect(copy).toBeInTheDocument();
|
|
49
49
|
expect(copy.tagName).toBe('DIV');
|
|
50
|
-
expect(copy).toHaveClass(`
|
|
50
|
+
expect(copy).toHaveClass(`wds-text-${Typography.BODY_DEFAULT}`);
|
|
51
51
|
});
|
|
52
52
|
});
|
package/src/Body/Body.tsx
CHANGED
|
@@ -41,8 +41,8 @@ const Body = forwardRef(function Body(
|
|
|
41
41
|
// See: https://fettblog.eu/typescript-react-generic-forward-refs/
|
|
42
42
|
ref={reference}
|
|
43
43
|
className={clsx(
|
|
44
|
-
`
|
|
45
|
-
preserveNewlines && '
|
|
44
|
+
`wds-text-${isTypeSupported ? type : DEFAULT_TYPE}`,
|
|
45
|
+
preserveNewlines && 'wds-text--pre-line',
|
|
46
46
|
className,
|
|
47
47
|
)}
|
|
48
48
|
/>
|
|
@@ -134,8 +134,8 @@ class DayCalendarTable extends PureComponent<DayCalendarTableProps> {
|
|
|
134
134
|
key={day}
|
|
135
135
|
className={
|
|
136
136
|
index > 4
|
|
137
|
-
? 'text-xs-center
|
|
138
|
-
: 'text-xs-center
|
|
137
|
+
? 'text-xs-center wds-text-body-default'
|
|
138
|
+
: 'text-xs-center wds-text-body-default-bold'
|
|
139
139
|
}
|
|
140
140
|
>
|
|
141
141
|
<span className="hidden-xs">
|
|
@@ -76,7 +76,7 @@ const MonthCalendarTable = ({
|
|
|
76
76
|
})();
|
|
77
77
|
|
|
78
78
|
return (
|
|
79
|
-
<table className="table table-condensed table-bordered tw-date-lookup-calendar
|
|
79
|
+
<table className="table table-condensed table-bordered tw-date-lookup-calendar wds-text-body-default-bold m-b-0">
|
|
80
80
|
<thead className="sr-only">
|
|
81
81
|
<tr>
|
|
82
82
|
<th colSpan={COLS}>{placeholder}</th>
|
|
@@ -96,7 +96,7 @@ const TableLink = ({
|
|
|
96
96
|
aria-pressed={active}
|
|
97
97
|
className={clsx(
|
|
98
98
|
`wds-Calendar__option--${type}`,
|
|
99
|
-
`tw-date-lookup-${type}-option
|
|
99
|
+
`tw-date-lookup-${type}-option wds-text-body-default-bold`,
|
|
100
100
|
{ active: !!active },
|
|
101
101
|
{ today: !!today },
|
|
102
102
|
{ disabled: !!isUnavailable },
|
package/src/Chips/Chip/Chip.css
CHANGED
|
@@ -134,12 +134,14 @@
|
|
|
134
134
|
.np-theme-personal .np-chip.np-chip--removable {
|
|
135
135
|
position: relative;
|
|
136
136
|
}
|
|
137
|
-
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold
|
|
137
|
+
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
|
|
138
|
+
.np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
|
|
138
139
|
padding-inline-end: 24px;
|
|
139
140
|
padding-inline-end: var(--size-24);
|
|
140
141
|
}
|
|
141
142
|
@media (max-width: 320px) {
|
|
142
|
-
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold
|
|
143
|
+
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
|
|
144
|
+
.np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
|
|
143
145
|
padding-inline-end: 48px;
|
|
144
146
|
padding-inline-end: var(--size-48);
|
|
145
147
|
}
|
package/src/Chips/Chip/Chip.less
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.np-decision .decision {
|
|
2
2
|
display: flex;
|
|
3
3
|
}
|
|
4
|
-
.np-decision__tile--small .np-text-title-subsection
|
|
4
|
+
.np-decision__tile--small .np-text-title-subsection,
|
|
5
|
+
.np-decision__tile--small .wds-text-title-subsection {
|
|
5
6
|
font-size: 1rem;
|
|
6
7
|
font-size: var(--font-size-16);
|
|
7
8
|
line-height: 1.2;
|
|
@@ -118,27 +118,41 @@ export const Basic = () => {
|
|
|
118
118
|
export const Numbers = () => {
|
|
119
119
|
return (
|
|
120
120
|
<>
|
|
121
|
-
<Title type={Typography.TITLE_SCREEN}>Display Number</Title>
|
|
121
|
+
<Title type={Typography.TITLE_SCREEN}>Display Number Small</Title>
|
|
122
122
|
<hr />
|
|
123
|
-
<Display type={Typography.
|
|
123
|
+
<Display type={Typography.DISPLAY_NUMBER_SMALL}>
|
|
124
124
|
<Money amount={1050.6} currency="UAH" />
|
|
125
125
|
</Display>
|
|
126
126
|
<hr />
|
|
127
|
-
<Display type={Typography.
|
|
127
|
+
<Display type={Typography.DISPLAY_NUMBER_SMALL}>
|
|
128
128
|
<Money amount={10.17} currency="JPY" />
|
|
129
129
|
</Display>
|
|
130
|
+
|
|
131
|
+
<Title type={Typography.TITLE_SCREEN}>Display Number Medium</Title>
|
|
130
132
|
<hr />
|
|
131
|
-
<Display type={Typography.
|
|
133
|
+
<Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
|
|
132
134
|
<Money amount={0.01} currency="EUR" />
|
|
133
135
|
</Display>
|
|
134
136
|
<hr />
|
|
135
|
-
<Display type={Typography.
|
|
137
|
+
<Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
|
|
136
138
|
<Money amount={1000000} currency="EUR" />
|
|
137
139
|
</Display>
|
|
140
|
+
|
|
141
|
+
<Title type={Typography.TITLE_SCREEN}>Display Number Large</Title>
|
|
138
142
|
<hr />
|
|
139
|
-
<Display type={Typography.
|
|
143
|
+
<Display type={Typography.DISPLAY_NUMBER_LARGE}>
|
|
140
144
|
<Money amount={1000000} currency="GBP" />
|
|
141
145
|
</Display>
|
|
146
|
+
<hr />
|
|
147
|
+
<Display type={Typography.DISPLAY_NUMBER_LARGE}>
|
|
148
|
+
<Money amount={1050.6} currency="UAH" />
|
|
149
|
+
</Display>
|
|
150
|
+
|
|
151
|
+
<Title type={Typography.TITLE_SCREEN}>Display Number (Deprecated)</Title>
|
|
152
|
+
<hr />
|
|
153
|
+
<Display type={Typography.DISPLAY_NUMBER}>
|
|
154
|
+
<Money amount={1050.6} currency="UAH" />
|
|
155
|
+
</Display>
|
|
142
156
|
</>
|
|
143
157
|
);
|
|
144
158
|
};
|
|
@@ -40,7 +40,7 @@ const AnimatedLabel = ({ activeLabel, className, steps }: AnimatedLabelProps) =>
|
|
|
40
40
|
className={clsx(
|
|
41
41
|
'np-animated-label',
|
|
42
42
|
'btn-unstyled',
|
|
43
|
-
'
|
|
43
|
+
'wds-text-body-large-bold',
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
onClick={() => setShowSteps(true)}
|