@transferwise/components 0.0.0-experimental-6e04f56 → 0.0.0-experimental-542ae69
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/Snackbar/Snackbar.js +101 -98
- package/build/Snackbar/Snackbar.js.map +1 -1
- package/build/Snackbar/Snackbar.mjs +102 -99
- package/build/Snackbar/Snackbar.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/Snackbar/Snackbar.d.ts +15 -1
- package/build/types/Snackbar/Snackbar.d.ts.map +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/Snackbar/Snackbar.tsx +88 -90
- 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
- package/src/Snackbar/Snackbar.test.tsx +0 -190
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
1
2
|
import type { ThemeDark, ThemeLight } from '../common';
|
|
2
3
|
export interface SnackbarProps {
|
|
3
4
|
action?: {
|
|
@@ -10,7 +11,20 @@ export interface SnackbarProps {
|
|
|
10
11
|
timeout: number;
|
|
11
12
|
timestamp: number;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
interface SnackbarState extends Pick<SnackbarProps, 'action' | 'text' | 'theme'> {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class Snackbar extends Component<SnackbarProps, SnackbarState> {
|
|
18
|
+
bodyRef: import("react").RefObject<HTMLSpanElement>;
|
|
19
|
+
timeout: number;
|
|
20
|
+
transitionTimeout: number;
|
|
21
|
+
constructor(props: SnackbarProps);
|
|
22
|
+
componentWillUnmount(): void;
|
|
23
|
+
shouldComponentUpdate(nextProps: SnackbarProps, nextState: SnackbarState): boolean;
|
|
24
|
+
setLeaveTimeout: () => void;
|
|
25
|
+
componentDidUpdate(previousProps: SnackbarProps): void;
|
|
26
|
+
render(): import("react").JSX.Element;
|
|
27
|
+
}
|
|
14
28
|
declare const _default: (props: SnackbarProps) => import("react").ReactPortal | null;
|
|
15
29
|
export default _default;
|
|
16
30
|
//# sourceMappingURL=Snackbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/Snackbar/Snackbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/Snackbar/Snackbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAa,MAAM,OAAO,CAAC;AAK7C,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAMvD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,kBAAkB;IAClB,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,aAAc,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC9E,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,qBAAa,QAAS,SAAQ,SAAS,CAAC,aAAa,EAAE,aAAa,CAAC;IACnE,OAAO,6CAAgC;IACvC,OAAO,SAAK;IACZ,iBAAiB,SAAK;gBAEV,KAAK,EAAE,aAAa;IAQhC,oBAAoB;IAKpB,qBAAqB,CAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa;IAexE,eAAe,aAMb;IAEF,kBAAkB,CAAC,aAAa,EAAE,aAAa;IAwB/C,MAAM;CA6BP;;AAID,wBAAwC"}
|
|
@@ -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;AAC7C,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAExD,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,CAAC;AAEvB,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/F,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAClD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AAErC,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AAErC,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhD,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,YAAY,GACZ,eAAe,GACf,SAAS,GACT,UAAU,GACV,WAAW,GACX,aAAa,GACb,eAAe,GACf,SAAS,GACT,WAAW,GACX,SAAS,CAAC"}
|
package/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)}
|
|
@@ -1,4 +1,65 @@
|
|
|
1
|
-
.np-form-control {
|
|
1
|
+
.np-form-control--size-lg {
|
|
2
|
+
margin-block-end: initial;
|
|
3
|
+
}
|
|
4
|
+
.np-form-control--size-sm {
|
|
5
|
+
word-wrap: break-word;
|
|
6
|
+
}
|
|
7
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
8
|
+
.np-form-control--size-sm {
|
|
9
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
10
|
+
}
|
|
11
|
+
@media (min-width: 840px) {
|
|
12
|
+
.np-form-control--size-sm {
|
|
13
|
+
hyphenate-limit-chars: 8 3;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
@media (min-width: 1160px) {
|
|
17
|
+
.np-form-control--size-sm {
|
|
18
|
+
hyphenate-limit-chars: 10 4 3;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
22
|
+
.np-form-control--size-sm {
|
|
23
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1160px) {
|
|
26
|
+
.np-form-control--size-sm {
|
|
27
|
+
-webkit-hyphenate-limit-before: 4;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}.np-form-control--size-auto,
|
|
31
|
+
.np-form-control--size-md {
|
|
32
|
+
word-wrap: break-word;
|
|
33
|
+
}
|
|
34
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
35
|
+
.np-form-control--size-auto,
|
|
36
|
+
.np-form-control--size-md {
|
|
37
|
+
hyphens: auto;hyphenate-limit-chars: 7 3;
|
|
38
|
+
}
|
|
39
|
+
@media (min-width: 840px) {
|
|
40
|
+
.np-form-control--size-auto,
|
|
41
|
+
.np-form-control--size-md {
|
|
42
|
+
hyphenate-limit-chars: 8 3;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
@media (min-width: 1160px) {
|
|
46
|
+
.np-form-control--size-auto,
|
|
47
|
+
.np-form-control--size-md {
|
|
48
|
+
hyphenate-limit-chars: 10 4 3;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
52
|
+
.np-form-control--size-auto,
|
|
53
|
+
.np-form-control--size-md {
|
|
54
|
+
hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
|
|
55
|
+
}
|
|
56
|
+
@media (min-width: 1160px) {
|
|
57
|
+
.np-form-control--size-auto,
|
|
58
|
+
.np-form-control--size-md {
|
|
59
|
+
-webkit-hyphenate-limit-before: 4;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}.np-form-control {
|
|
2
63
|
--ring-width: 1px;
|
|
3
64
|
--ring-color: var(--color-interactive-secondary);
|
|
4
65
|
border: none;
|
|
@@ -39,12 +100,6 @@
|
|
|
39
100
|
--ring-color: var(--color-interactive-primary);
|
|
40
101
|
}
|
|
41
102
|
.np-form-control--size-auto {
|
|
42
|
-
font-weight: 400;
|
|
43
|
-
font-weight: var(--font-weight-regular);
|
|
44
|
-
font-size: 1rem;
|
|
45
|
-
font-size: var(--font-size-16);
|
|
46
|
-
line-height: 150%;
|
|
47
|
-
letter-spacing: -0.011em;
|
|
48
103
|
word-wrap: break-word;
|
|
49
104
|
padding-block-start: 12px;
|
|
50
105
|
padding-block-start: var(--size-12);
|
|
@@ -86,12 +141,6 @@
|
|
|
86
141
|
padding-block-end: 0 !important;
|
|
87
142
|
}
|
|
88
143
|
.np-form-control--size-sm {
|
|
89
|
-
font-size: 0.875rem;
|
|
90
|
-
font-size: var(--font-size-14);
|
|
91
|
-
line-height: 155%;
|
|
92
|
-
letter-spacing: -0.006em;
|
|
93
|
-
font-weight: 400;
|
|
94
|
-
font-weight: var(--font-weight-regular);
|
|
95
144
|
word-wrap: break-word;
|
|
96
145
|
block-size: 32px !important;
|
|
97
146
|
block-size: var(--size-32) !important;
|
|
@@ -131,12 +180,6 @@
|
|
|
131
180
|
}
|
|
132
181
|
}
|
|
133
182
|
.np-form-control--size-md {
|
|
134
|
-
font-weight: 400;
|
|
135
|
-
font-weight: var(--font-weight-regular);
|
|
136
|
-
font-size: 1rem;
|
|
137
|
-
font-size: var(--font-size-16);
|
|
138
|
-
line-height: 150%;
|
|
139
|
-
letter-spacing: -0.011em;
|
|
140
183
|
word-wrap: break-word;
|
|
141
184
|
block-size: 48px !important;
|
|
142
185
|
block-size: var(--size-48) !important;
|
|
@@ -176,57 +219,10 @@
|
|
|
176
219
|
}
|
|
177
220
|
}
|
|
178
221
|
.np-form-control--size-lg {
|
|
179
|
-
margin: 0;
|
|
180
|
-
color: #37517e;
|
|
181
|
-
color: var(--color-content-primary);
|
|
182
|
-
line-height: 1.2;
|
|
183
|
-
line-height: var(--line-height-title);
|
|
184
|
-
letter-spacing: 0;
|
|
185
|
-
word-wrap: break-word;
|
|
186
222
|
margin-block-end: initial;
|
|
187
|
-
font-size: 1.375rem;
|
|
188
|
-
font-size: var(--font-size-22);
|
|
189
|
-
font-weight: 600;
|
|
190
|
-
font-weight: var(--font-weight-semi-bold);
|
|
191
|
-
letter-spacing: -0.018em;
|
|
192
|
-
line-height: 125%;
|
|
193
223
|
block-size: 72px !important;
|
|
194
224
|
block-size: var(--size-72) !important;
|
|
195
225
|
}
|
|
196
|
-
@supports (hyphenate-limit-chars: 1) {
|
|
197
|
-
.np-form-control--size-lg {
|
|
198
|
-
hyphens: auto;
|
|
199
|
-
hyphenate-limit-chars: 7 3;
|
|
200
|
-
}
|
|
201
|
-
@media (min-width: 840px) {
|
|
202
|
-
.np-form-control--size-lg {
|
|
203
|
-
hyphenate-limit-chars: 8 3;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
@media (min-width: 1160px) {
|
|
207
|
-
.np-form-control--size-lg {
|
|
208
|
-
hyphenate-limit-chars: 10 4 3;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
213
|
-
.np-form-control--size-lg {
|
|
214
|
-
hyphens: auto;
|
|
215
|
-
-webkit-hyphenate-limit-before: 3;
|
|
216
|
-
-webkit-hyphenate-limit-after: 3;
|
|
217
|
-
}
|
|
218
|
-
@media (min-width: 1160px) {
|
|
219
|
-
.np-form-control--size-lg {
|
|
220
|
-
-webkit-hyphenate-limit-before: 4;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
.np-form-control--size-lg + p,
|
|
225
|
-
.np-form-control--size-lg + ul:not(.list-unstyled),
|
|
226
|
-
.np-form-control--size-lg + ol:not(.list-unstyled) {
|
|
227
|
-
margin-block-start: 8px;
|
|
228
|
-
margin-block-start: var(--size-8);
|
|
229
|
-
}
|
|
230
226
|
.np-input::-moz-placeholder {
|
|
231
227
|
color: #768e9c;
|
|
232
228
|
color: var(--color-content-tertiary);
|