@transferwise/components 46.160.7 → 46.160.8
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/main.css +823 -0
- package/build/styles/Inputs/Input/Input.css +88 -0
- package/build/styles/Inputs/TextArea/TextArea.css +88 -0
- package/build/styles/Popover/Popover.css +1 -0
- package/build/styles/_deprecated/Select/Select.css +29 -0
- package/build/styles/css/accordion.css +30 -0
- package/build/styles/css/button-groups.css +29 -0
- package/build/styles/css/buttons.css +29 -0
- package/build/styles/css/decision.css +30 -0
- package/build/styles/css/dropdowns.css +59 -0
- package/build/styles/css/droppable.css +29 -0
- package/build/styles/css/footer.css +63 -0
- package/build/styles/css/input-groups.css +189 -0
- package/build/styles/css/list-group.css +1 -0
- package/build/styles/css/navbar.css +59 -0
- package/build/styles/css/neptune-addons.css +3 -0
- package/build/styles/css/neptune-core.css +185 -0
- package/build/styles/css/neptune.css +705 -0
- package/build/styles/css/popovers.css +59 -0
- package/build/styles/css/tooltip.css +29 -0
- package/build/styles/main.css +823 -0
- package/build/styles/styles/less/accordion.css +30 -0
- package/build/styles/styles/less/button-groups.css +29 -0
- package/build/styles/styles/less/buttons.css +29 -0
- package/build/styles/styles/less/decision.css +30 -0
- package/build/styles/styles/less/dropdowns.css +59 -0
- package/build/styles/styles/less/droppable.css +29 -0
- package/build/styles/styles/less/footer.css +63 -0
- package/build/styles/styles/less/forms/bootstrap-forms.css +116 -0
- package/build/styles/styles/less/input-groups.css +189 -0
- package/build/styles/styles/less/list-group.css +1 -0
- package/build/styles/styles/less/navbar.css +59 -0
- package/build/styles/styles/less/neptune-addons.css +3 -0
- package/build/styles/styles/less/neptune-core.css +185 -0
- package/build/styles/styles/less/neptune.css +705 -0
- package/build/styles/styles/less/popovers.css +59 -0
- package/build/styles/styles/less/tooltip.css +29 -0
- package/package.json +3 -3
- package/src/Body/_stories/Body.test.story.tsx +81 -0
- package/src/Inputs/Input/Input.css +88 -0
- package/src/Inputs/TextArea/TextArea.css +88 -0
- package/src/Popover/Popover.css +1 -0
- package/src/_deprecated/Card/_stories/Card.test.story.tsx +1 -1
- package/src/_deprecated/CriticalBanner/_stories/CriticalCommsBanner.test.story.tsx +1 -1
- package/src/_deprecated/InlineAlert/_stories/InlineAlert.test.story.tsx +1 -1
- package/src/_deprecated/OverlayHeader/_stories/OverlayHeader.test.story.tsx +1 -1
- package/src/_deprecated/Select/Select.css +29 -0
- package/src/_deprecated/Select/_stories/Select.rtl.test.story.tsx +1 -1
- package/src/_deprecated/Select/_stories/Select.test.story.tsx +1 -1
- package/src/main.css +823 -0
- package/src/styles/less/accordion.css +30 -0
- package/src/styles/less/addons/_spacing-utilities.less +2 -0
- package/src/styles/less/button-groups.css +29 -0
- package/src/styles/less/buttons.css +29 -0
- package/src/styles/less/core/_typography.less +12 -0
- package/src/styles/less/decision.css +30 -0
- package/src/styles/less/dropdowns.css +59 -0
- package/src/styles/less/droppable.css +29 -0
- package/src/styles/less/footer.css +63 -0
- package/src/styles/less/forms/bootstrap-forms.css +116 -0
- package/src/styles/less/input-groups.css +189 -0
- package/src/styles/less/list-group.css +1 -0
- package/src/styles/less/navbar.css +59 -0
- package/src/styles/less/neptune-addons.css +3 -0
- package/src/styles/less/neptune-core.css +185 -0
- package/src/styles/less/neptune.css +705 -0
- package/src/styles/less/popovers.css +59 -0
- package/src/styles/less/tooltip.css +29 -0
|
@@ -72,6 +72,7 @@ button.close {
|
|
|
72
72
|
letter-spacing: -0.006em;
|
|
73
73
|
font-weight: 400;
|
|
74
74
|
font-weight: var(--font-weight-regular);
|
|
75
|
+
word-wrap: break-word;
|
|
75
76
|
background-color: #ffffff;
|
|
76
77
|
background-color: var(--color-background-screen);
|
|
77
78
|
background-clip: padding-box;
|
|
@@ -79,6 +80,34 @@ button.close {
|
|
|
79
80
|
box-shadow: 0 20px 66px 0 rgba(34, 48, 73, 0.2);
|
|
80
81
|
position: absolute;
|
|
81
82
|
}
|
|
83
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
84
|
+
.popover {
|
|
85
|
+
hyphens: auto;
|
|
86
|
+
hyphenate-limit-chars: 7 3;
|
|
87
|
+
}
|
|
88
|
+
@media (min-width: 840px) {
|
|
89
|
+
.popover {
|
|
90
|
+
hyphenate-limit-chars: 8 3;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
@media (min-width: 1160px) {
|
|
94
|
+
.popover {
|
|
95
|
+
hyphenate-limit-chars: 10 4 3;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
100
|
+
.popover {
|
|
101
|
+
hyphens: auto;
|
|
102
|
+
-webkit-hyphenate-limit-before: 3;
|
|
103
|
+
-webkit-hyphenate-limit-after: 3;
|
|
104
|
+
}
|
|
105
|
+
@media (min-width: 1160px) {
|
|
106
|
+
.popover {
|
|
107
|
+
-webkit-hyphenate-limit-before: 4;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
82
111
|
.np-theme-personal--forest-green .popover,
|
|
83
112
|
.np-theme-personal--bright-green .popover,
|
|
84
113
|
.np-theme-personal--dark .popover {
|
|
@@ -236,6 +265,7 @@ button.close {
|
|
|
236
265
|
line-height: 1.2;
|
|
237
266
|
line-height: var(--line-height-title);
|
|
238
267
|
letter-spacing: 0;
|
|
268
|
+
word-wrap: break-word;
|
|
239
269
|
font-size: 1.125rem;
|
|
240
270
|
font-size: var(--font-size-18);
|
|
241
271
|
font-weight: 600;
|
|
@@ -293,9 +323,38 @@ button.close {
|
|
|
293
323
|
letter-spacing: -0.006em;
|
|
294
324
|
font-weight: 400;
|
|
295
325
|
font-weight: var(--font-weight-regular);
|
|
326
|
+
word-wrap: break-word;
|
|
296
327
|
color: #5d7079;
|
|
297
328
|
color: var(--color-content-secondary);
|
|
298
329
|
}
|
|
330
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
331
|
+
.popover-content {
|
|
332
|
+
hyphens: auto;
|
|
333
|
+
hyphenate-limit-chars: 7 3;
|
|
334
|
+
}
|
|
335
|
+
@media (min-width: 840px) {
|
|
336
|
+
.popover-content {
|
|
337
|
+
hyphenate-limit-chars: 8 3;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
@media (min-width: 1160px) {
|
|
341
|
+
.popover-content {
|
|
342
|
+
hyphenate-limit-chars: 10 4 3;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
347
|
+
.popover-content {
|
|
348
|
+
hyphens: auto;
|
|
349
|
+
-webkit-hyphenate-limit-before: 3;
|
|
350
|
+
-webkit-hyphenate-limit-after: 3;
|
|
351
|
+
}
|
|
352
|
+
@media (min-width: 1160px) {
|
|
353
|
+
.popover-content {
|
|
354
|
+
-webkit-hyphenate-limit-before: 4;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
299
358
|
.popover-content > :last-child {
|
|
300
359
|
margin-block-end: 0;
|
|
301
360
|
}
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
letter-spacing: -0.006em;
|
|
52
52
|
font-weight: 400;
|
|
53
53
|
font-weight: var(--font-weight-regular);
|
|
54
|
+
word-wrap: break-word;
|
|
54
55
|
max-inline-size: 200px;
|
|
55
56
|
min-inline-size: 120px;
|
|
56
57
|
padding-block: 16px;
|
|
@@ -65,6 +66,34 @@
|
|
|
65
66
|
border-radius: 3px;
|
|
66
67
|
box-shadow: 0 1px 28px 0 rgba(34, 48, 73, 0.2);
|
|
67
68
|
}
|
|
69
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
70
|
+
.tooltip-inner {
|
|
71
|
+
hyphens: auto;
|
|
72
|
+
hyphenate-limit-chars: 7 3;
|
|
73
|
+
}
|
|
74
|
+
@media (min-width: 840px) {
|
|
75
|
+
.tooltip-inner {
|
|
76
|
+
hyphenate-limit-chars: 8 3;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@media (min-width: 1160px) {
|
|
80
|
+
.tooltip-inner {
|
|
81
|
+
hyphenate-limit-chars: 10 4 3;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
86
|
+
.tooltip-inner {
|
|
87
|
+
hyphens: auto;
|
|
88
|
+
-webkit-hyphenate-limit-before: 3;
|
|
89
|
+
-webkit-hyphenate-limit-after: 3;
|
|
90
|
+
}
|
|
91
|
+
@media (min-width: 1160px) {
|
|
92
|
+
.tooltip-inner {
|
|
93
|
+
-webkit-hyphenate-limit-before: 4;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
68
97
|
.np-theme-personal--forest-green .tooltip-inner,
|
|
69
98
|
.np-theme-personal--bright-green .tooltip-inner,
|
|
70
99
|
.np-theme-personal--dark .tooltip-inner {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.160.
|
|
3
|
+
"version": "46.160.8",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"storybook-addon-tag-badges": "^3.1.0",
|
|
93
93
|
"storybook-addon-test-codegen": "^3.0.4",
|
|
94
94
|
"@transferwise/less-config": "3.2.0",
|
|
95
|
-
"@wise/
|
|
96
|
-
"@wise/
|
|
95
|
+
"@wise/wds-configs": "0.0.0",
|
|
96
|
+
"@wise/components-theming": "1.10.3"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@transferwise/icons": "^3 || ^4",
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
|
|
3
|
+
import Body from '../Body';
|
|
4
|
+
import Container from '../../Container';
|
|
5
|
+
import Title from '../../Title';
|
|
6
|
+
import { Typography } from '../../common/PropsValues/typography';
|
|
7
|
+
import { withVariantConfig } from '../../../.storybook/helpers';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
title: 'Typography/Body/Tests',
|
|
11
|
+
component: Body,
|
|
12
|
+
tags: ['!autodocs', '!manifest'],
|
|
13
|
+
} satisfies Meta<typeof Body>;
|
|
14
|
+
|
|
15
|
+
type Story = StoryObj<typeof Body>;
|
|
16
|
+
|
|
17
|
+
const HyphenationTest = {
|
|
18
|
+
render: () => (
|
|
19
|
+
<Container size="compact">
|
|
20
|
+
<Title type={Typography.TITLE_SUBSECTION}>German (de)</Title>
|
|
21
|
+
<div lang="de">
|
|
22
|
+
<Body as="p" type={Typography.BODY_DEFAULT}>
|
|
23
|
+
Donaudampfschifffahrtsgesellschaftskapitän Überweisungsgebühren
|
|
24
|
+
Rechtsschutzversicherungsgesellschaften Kraftfahrzeughaftpflichtversicherung
|
|
25
|
+
Geschwindigkeitsbeschränkung Aufmerksamkeitsdefizithyperaktivitätsstörung
|
|
26
|
+
Bundesausbildungsförderungsgesetz
|
|
27
|
+
Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz
|
|
28
|
+
</Body>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<Title type={Typography.TITLE_SUBSECTION}>Dutch (nl)</Title>
|
|
32
|
+
<div lang="nl">
|
|
33
|
+
<Body as="p" type={Typography.BODY_DEFAULT}>
|
|
34
|
+
Verzekeringsmaatschappij arbeidsongeschiktheidsverzekering
|
|
35
|
+
kindercarnavalsoptochtvoorbereidingswerkzaamheden aansprakelijkheidsverzekering
|
|
36
|
+
gemeenteraadsverkiezingen rijkswaterstaatwerkzaamheden ovaboratoriumonderzoeksresultaten
|
|
37
|
+
</Body>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<Title type={Typography.TITLE_SUBSECTION}>Ukrainian (uk)</Title>
|
|
41
|
+
<div lang="uk">
|
|
42
|
+
<Body as="p" type={Typography.BODY_DEFAULT}>
|
|
43
|
+
Найбільш міжнародний рахунок відповідальність працевлаштування перевантажувальний Найбільш
|
|
44
|
+
міжнародний рахунок відповідальність працевлаштування перевантажувальний Найбільш
|
|
45
|
+
міжнародний рахунок відповідальність працевлаштування перевантажувальний.
|
|
46
|
+
</Body>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<Title type={Typography.TITLE_SUBSECTION}>Japanese (ja) — no hyphens</Title>
|
|
50
|
+
<div lang="ja">
|
|
51
|
+
<Body as="p" type={Typography.BODY_DEFAULT}>
|
|
52
|
+
私たちは世界で最も国際的なアカウントを構築しています。送金手数料についてもっと知りたい方はこちらをご覧ください。
|
|
53
|
+
</Body>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<Title type={Typography.TITLE_SUBSECTION}>Chinese Simplified (zh-CN) — no hyphens</Title>
|
|
57
|
+
<div lang="zh-CN">
|
|
58
|
+
<Body as="p" type={Typography.BODY_DEFAULT}>
|
|
59
|
+
我们正在建设世界上最国际化的账户。如果您想了解更多关于汇款费用的信息请查看这里。
|
|
60
|
+
</Body>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<Title type={Typography.TITLE_SUBSECTION}>Thai (th) — no hyphens</Title>
|
|
64
|
+
<div lang="th">
|
|
65
|
+
<Body as="p" type={Typography.BODY_DEFAULT}>
|
|
66
|
+
เรากำลังสร้างบัญชีที่เป็นสากลที่สุดในโลก
|
|
67
|
+
หากคุณต้องการทราบข้อมูลเพิ่มเติมเกี่ยวกับค่าธรรมเนียมการโอนเงิน
|
|
68
|
+
</Body>
|
|
69
|
+
</div>
|
|
70
|
+
</Container>
|
|
71
|
+
),
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const Hyphenation: Story = {
|
|
75
|
+
...HyphenationTest,
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const HyphenationMobile: Story = {
|
|
79
|
+
...HyphenationTest,
|
|
80
|
+
...withVariantConfig(['mobile'], HyphenationTest),
|
|
81
|
+
};
|
|
@@ -45,11 +45,40 @@
|
|
|
45
45
|
font-size: var(--font-size-16);
|
|
46
46
|
line-height: 150%;
|
|
47
47
|
letter-spacing: -0.011em;
|
|
48
|
+
word-wrap: break-word;
|
|
48
49
|
padding-block-start: 12px;
|
|
49
50
|
padding-block-start: var(--size-12);
|
|
50
51
|
padding-block-end: 12px;
|
|
51
52
|
padding-block-end: var(--size-12);
|
|
52
53
|
}
|
|
54
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
55
|
+
.np-form-control--size-auto {
|
|
56
|
+
hyphens: auto;
|
|
57
|
+
hyphenate-limit-chars: 7 3;
|
|
58
|
+
}
|
|
59
|
+
@media (min-width: 840px) {
|
|
60
|
+
.np-form-control--size-auto {
|
|
61
|
+
hyphenate-limit-chars: 8 3;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
@media (min-width: 1160px) {
|
|
65
|
+
.np-form-control--size-auto {
|
|
66
|
+
hyphenate-limit-chars: 10 4 3;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
71
|
+
.np-form-control--size-auto {
|
|
72
|
+
hyphens: auto;
|
|
73
|
+
-webkit-hyphenate-limit-before: 3;
|
|
74
|
+
-webkit-hyphenate-limit-after: 3;
|
|
75
|
+
}
|
|
76
|
+
@media (min-width: 1160px) {
|
|
77
|
+
.np-form-control--size-auto {
|
|
78
|
+
-webkit-hyphenate-limit-before: 4;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
53
82
|
.np-form-control--size-sm,
|
|
54
83
|
.np-form-control--size-md,
|
|
55
84
|
.np-form-control--size-lg {
|
|
@@ -63,9 +92,38 @@
|
|
|
63
92
|
letter-spacing: -0.006em;
|
|
64
93
|
font-weight: 400;
|
|
65
94
|
font-weight: var(--font-weight-regular);
|
|
95
|
+
word-wrap: break-word;
|
|
66
96
|
block-size: 32px !important;
|
|
67
97
|
block-size: var(--size-32) !important;
|
|
68
98
|
}
|
|
99
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
100
|
+
.np-form-control--size-sm {
|
|
101
|
+
hyphens: auto;
|
|
102
|
+
hyphenate-limit-chars: 7 3;
|
|
103
|
+
}
|
|
104
|
+
@media (min-width: 840px) {
|
|
105
|
+
.np-form-control--size-sm {
|
|
106
|
+
hyphenate-limit-chars: 8 3;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
@media (min-width: 1160px) {
|
|
110
|
+
.np-form-control--size-sm {
|
|
111
|
+
hyphenate-limit-chars: 10 4 3;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
116
|
+
.np-form-control--size-sm {
|
|
117
|
+
hyphens: auto;
|
|
118
|
+
-webkit-hyphenate-limit-before: 3;
|
|
119
|
+
-webkit-hyphenate-limit-after: 3;
|
|
120
|
+
}
|
|
121
|
+
@media (min-width: 1160px) {
|
|
122
|
+
.np-form-control--size-sm {
|
|
123
|
+
-webkit-hyphenate-limit-before: 4;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
69
127
|
@media (max-width: 320px) {
|
|
70
128
|
.np-form-control--size-sm {
|
|
71
129
|
block-size: 64px !important;
|
|
@@ -79,9 +137,38 @@
|
|
|
79
137
|
font-size: var(--font-size-16);
|
|
80
138
|
line-height: 150%;
|
|
81
139
|
letter-spacing: -0.011em;
|
|
140
|
+
word-wrap: break-word;
|
|
82
141
|
block-size: 48px !important;
|
|
83
142
|
block-size: var(--size-48) !important;
|
|
84
143
|
}
|
|
144
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
145
|
+
.np-form-control--size-md {
|
|
146
|
+
hyphens: auto;
|
|
147
|
+
hyphenate-limit-chars: 7 3;
|
|
148
|
+
}
|
|
149
|
+
@media (min-width: 840px) {
|
|
150
|
+
.np-form-control--size-md {
|
|
151
|
+
hyphenate-limit-chars: 8 3;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@media (min-width: 1160px) {
|
|
155
|
+
.np-form-control--size-md {
|
|
156
|
+
hyphenate-limit-chars: 10 4 3;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
161
|
+
.np-form-control--size-md {
|
|
162
|
+
hyphens: auto;
|
|
163
|
+
-webkit-hyphenate-limit-before: 3;
|
|
164
|
+
-webkit-hyphenate-limit-after: 3;
|
|
165
|
+
}
|
|
166
|
+
@media (min-width: 1160px) {
|
|
167
|
+
.np-form-control--size-md {
|
|
168
|
+
-webkit-hyphenate-limit-before: 4;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
85
172
|
@media (max-width: 320px) {
|
|
86
173
|
.np-form-control--size-md {
|
|
87
174
|
block-size: 72px !important;
|
|
@@ -95,6 +182,7 @@
|
|
|
95
182
|
line-height: 1.2;
|
|
96
183
|
line-height: var(--line-height-title);
|
|
97
184
|
letter-spacing: 0;
|
|
185
|
+
word-wrap: break-word;
|
|
98
186
|
margin-block-end: initial;
|
|
99
187
|
font-size: 1.375rem;
|
|
100
188
|
font-size: var(--font-size-22);
|
|
@@ -45,11 +45,40 @@
|
|
|
45
45
|
font-size: var(--font-size-16);
|
|
46
46
|
line-height: 150%;
|
|
47
47
|
letter-spacing: -0.011em;
|
|
48
|
+
word-wrap: break-word;
|
|
48
49
|
padding-block-start: 12px;
|
|
49
50
|
padding-block-start: var(--size-12);
|
|
50
51
|
padding-block-end: 12px;
|
|
51
52
|
padding-block-end: var(--size-12);
|
|
52
53
|
}
|
|
54
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
55
|
+
.np-form-control--size-auto {
|
|
56
|
+
hyphens: auto;
|
|
57
|
+
hyphenate-limit-chars: 7 3;
|
|
58
|
+
}
|
|
59
|
+
@media (min-width: 840px) {
|
|
60
|
+
.np-form-control--size-auto {
|
|
61
|
+
hyphenate-limit-chars: 8 3;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
@media (min-width: 1160px) {
|
|
65
|
+
.np-form-control--size-auto {
|
|
66
|
+
hyphenate-limit-chars: 10 4 3;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
71
|
+
.np-form-control--size-auto {
|
|
72
|
+
hyphens: auto;
|
|
73
|
+
-webkit-hyphenate-limit-before: 3;
|
|
74
|
+
-webkit-hyphenate-limit-after: 3;
|
|
75
|
+
}
|
|
76
|
+
@media (min-width: 1160px) {
|
|
77
|
+
.np-form-control--size-auto {
|
|
78
|
+
-webkit-hyphenate-limit-before: 4;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
53
82
|
.np-form-control--size-sm,
|
|
54
83
|
.np-form-control--size-md,
|
|
55
84
|
.np-form-control--size-lg {
|
|
@@ -63,9 +92,38 @@
|
|
|
63
92
|
letter-spacing: -0.006em;
|
|
64
93
|
font-weight: 400;
|
|
65
94
|
font-weight: var(--font-weight-regular);
|
|
95
|
+
word-wrap: break-word;
|
|
66
96
|
block-size: 32px !important;
|
|
67
97
|
block-size: var(--size-32) !important;
|
|
68
98
|
}
|
|
99
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
100
|
+
.np-form-control--size-sm {
|
|
101
|
+
hyphens: auto;
|
|
102
|
+
hyphenate-limit-chars: 7 3;
|
|
103
|
+
}
|
|
104
|
+
@media (min-width: 840px) {
|
|
105
|
+
.np-form-control--size-sm {
|
|
106
|
+
hyphenate-limit-chars: 8 3;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
@media (min-width: 1160px) {
|
|
110
|
+
.np-form-control--size-sm {
|
|
111
|
+
hyphenate-limit-chars: 10 4 3;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
116
|
+
.np-form-control--size-sm {
|
|
117
|
+
hyphens: auto;
|
|
118
|
+
-webkit-hyphenate-limit-before: 3;
|
|
119
|
+
-webkit-hyphenate-limit-after: 3;
|
|
120
|
+
}
|
|
121
|
+
@media (min-width: 1160px) {
|
|
122
|
+
.np-form-control--size-sm {
|
|
123
|
+
-webkit-hyphenate-limit-before: 4;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
69
127
|
@media (max-width: 320px) {
|
|
70
128
|
.np-form-control--size-sm {
|
|
71
129
|
block-size: 64px !important;
|
|
@@ -79,9 +137,38 @@
|
|
|
79
137
|
font-size: var(--font-size-16);
|
|
80
138
|
line-height: 150%;
|
|
81
139
|
letter-spacing: -0.011em;
|
|
140
|
+
word-wrap: break-word;
|
|
82
141
|
block-size: 48px !important;
|
|
83
142
|
block-size: var(--size-48) !important;
|
|
84
143
|
}
|
|
144
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
145
|
+
.np-form-control--size-md {
|
|
146
|
+
hyphens: auto;
|
|
147
|
+
hyphenate-limit-chars: 7 3;
|
|
148
|
+
}
|
|
149
|
+
@media (min-width: 840px) {
|
|
150
|
+
.np-form-control--size-md {
|
|
151
|
+
hyphenate-limit-chars: 8 3;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
@media (min-width: 1160px) {
|
|
155
|
+
.np-form-control--size-md {
|
|
156
|
+
hyphenate-limit-chars: 10 4 3;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
161
|
+
.np-form-control--size-md {
|
|
162
|
+
hyphens: auto;
|
|
163
|
+
-webkit-hyphenate-limit-before: 3;
|
|
164
|
+
-webkit-hyphenate-limit-after: 3;
|
|
165
|
+
}
|
|
166
|
+
@media (min-width: 1160px) {
|
|
167
|
+
.np-form-control--size-md {
|
|
168
|
+
-webkit-hyphenate-limit-before: 4;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
85
172
|
@media (max-width: 320px) {
|
|
86
173
|
.np-form-control--size-md {
|
|
87
174
|
block-size: 72px !important;
|
|
@@ -95,6 +182,7 @@
|
|
|
95
182
|
line-height: 1.2;
|
|
96
183
|
line-height: var(--line-height-title);
|
|
97
184
|
letter-spacing: 0;
|
|
185
|
+
word-wrap: break-word;
|
|
98
186
|
margin-block-end: initial;
|
|
99
187
|
font-size: 1.375rem;
|
|
100
188
|
font-size: var(--font-size-22);
|
package/src/Popover/Popover.css
CHANGED
|
@@ -7,7 +7,7 @@ import { withRTLDiff } from '../../../../.storybook/decorators/RtlDiffDecorator'
|
|
|
7
7
|
export default {
|
|
8
8
|
component: CriticalCommsBanner,
|
|
9
9
|
title: 'Prompts/CriticalCommsBanner/Tests',
|
|
10
|
-
tags: ['!autodocs', 'deprecated'],
|
|
10
|
+
tags: ['!autodocs', 'deprecated', 'deprecated'],
|
|
11
11
|
} satisfies Meta<typeof CriticalCommsBanner>;
|
|
12
12
|
|
|
13
13
|
type Story = StoryObj<typeof CriticalCommsBanner>;
|
|
@@ -6,7 +6,7 @@ import InlineAlert from '..';
|
|
|
6
6
|
export default {
|
|
7
7
|
component: InlineAlert,
|
|
8
8
|
title: 'Prompts/InlineAlert/Tests',
|
|
9
|
-
tags: ['!autodocs', '!manifest'],
|
|
9
|
+
tags: ['!autodocs', '!manifest', 'deprecated'],
|
|
10
10
|
} satisfies Meta<typeof InlineAlert>;
|
|
11
11
|
|
|
12
12
|
type Story = StoryObj<typeof InlineAlert>;
|
|
@@ -9,7 +9,7 @@ import OverlayHeader from '..';
|
|
|
9
9
|
export default {
|
|
10
10
|
component: OverlayHeader,
|
|
11
11
|
title: 'Navigation/OverlayHeader/Tests',
|
|
12
|
-
tags: ['!autodocs', '!manifest'],
|
|
12
|
+
tags: ['!autodocs', '!manifest', 'deprecated'],
|
|
13
13
|
} satisfies Meta<typeof OverlayHeader>;
|
|
14
14
|
|
|
15
15
|
type Story = StoryObj<typeof OverlayHeader>;
|
|
@@ -152,11 +152,40 @@
|
|
|
152
152
|
letter-spacing: -0.006em;
|
|
153
153
|
font-weight: 400;
|
|
154
154
|
font-weight: var(--font-weight-regular);
|
|
155
|
+
word-wrap: break-word;
|
|
155
156
|
}
|
|
156
157
|
.np-theme-personal .np-dropdown-menu > li > a {
|
|
157
158
|
border-radius: 10px;
|
|
158
159
|
border-radius: var(--radius-small);
|
|
159
160
|
}
|
|
161
|
+
@supports (hyphenate-limit-chars: 1) {
|
|
162
|
+
.np-dropdown-menu > li > a {
|
|
163
|
+
hyphens: auto;
|
|
164
|
+
hyphenate-limit-chars: 7 3;
|
|
165
|
+
}
|
|
166
|
+
@media (min-width: 840px) {
|
|
167
|
+
.np-dropdown-menu > li > a {
|
|
168
|
+
hyphenate-limit-chars: 8 3;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
@media (min-width: 1160px) {
|
|
172
|
+
.np-dropdown-menu > li > a {
|
|
173
|
+
hyphenate-limit-chars: 10 4 3;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
|
|
178
|
+
.np-dropdown-menu > li > a {
|
|
179
|
+
hyphens: auto;
|
|
180
|
+
-webkit-hyphenate-limit-before: 3;
|
|
181
|
+
-webkit-hyphenate-limit-after: 3;
|
|
182
|
+
}
|
|
183
|
+
@media (min-width: 1160px) {
|
|
184
|
+
.np-dropdown-menu > li > a {
|
|
185
|
+
-webkit-hyphenate-limit-before: 4;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
160
189
|
.np-dropdown-menu > li:first-child > a {
|
|
161
190
|
border-start-end-radius: 3px;
|
|
162
191
|
border-start-start-radius: 3px;
|
|
@@ -8,7 +8,7 @@ import Select from '..';
|
|
|
8
8
|
export default {
|
|
9
9
|
component: Select,
|
|
10
10
|
title: 'Forms/Select/Tests/RTL Diff',
|
|
11
|
-
tags: ['!autodocs', '!manifest'],
|
|
11
|
+
tags: ['!autodocs', '!manifest', 'deprecated'],
|
|
12
12
|
} satisfies Meta<typeof Select>;
|
|
13
13
|
|
|
14
14
|
type Story = StoryObj<typeof Select>;
|
|
@@ -8,7 +8,7 @@ import Select, { SelectOptionItem } from '../Select';
|
|
|
8
8
|
const meta = {
|
|
9
9
|
title: 'Forms/Select/Tests',
|
|
10
10
|
component: Select,
|
|
11
|
-
tags: ['!autodocs', '!manifest'],
|
|
11
|
+
tags: ['!autodocs', '!manifest', 'deprecated'],
|
|
12
12
|
} satisfies Meta<typeof Select>;
|
|
13
13
|
export default meta;
|
|
14
14
|
|