@transferwise/components 46.1.0 → 46.1.1
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/README.md +3 -5
- package/build/index.esm.js +6 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +6 -8
- package/build/index.js.map +1 -1
- package/build/main.css +5481 -1
- package/build/styles/accordion/Accordion.css +60 -1
- package/build/styles/actionButton/ActionButton.css +53 -1
- package/build/styles/avatar/Avatar.css +205 -1
- package/build/styles/badge/Badge.css +68 -1
- package/build/styles/button/Button.css +20 -1
- package/build/styles/card/Card.css +100 -1
- package/build/styles/checkboxButton/CheckboxButton.css +24 -1
- package/build/styles/chips/Chip.css +190 -1
- package/build/styles/circularButton/CircularButton.css +211 -1
- package/build/styles/common/Option/Option.css +100 -1
- package/build/styles/common/RadioButton/RadioButton.css +4 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +53 -1
- package/build/styles/common/card/Card.css +53 -1
- package/build/styles/common/closeButton/CloseButton.css +79 -1
- package/build/styles/common/panel/Panel.css +73 -1
- package/build/styles/criticalBanner/CriticalCommsBanner.css +77 -1
- package/build/styles/dateInput/DateInput.css +3 -1
- package/build/styles/dateLookup/DateLookup.css +98 -1
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +68 -1
- package/build/styles/decision/Decision.css +93 -1
- package/build/styles/definitionList/DefinitionList.css +53 -1
- package/build/styles/dimmer/Dimmer.css +70 -1
- package/build/styles/drawer/Drawer.css +100 -1
- package/build/styles/dropFade/DropFade.css +19 -1
- package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +5 -1
- package/build/styles/emphasis/Emphasis.css +31 -1
- package/build/styles/flowNavigation/FlowNavigation.css +50 -1
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +21 -1
- package/build/styles/flowNavigation/backButton/BackButton.css +32 -1
- package/build/styles/header/Header.css +28 -1
- package/build/styles/image/Image.css +13 -1
- package/build/styles/info/Info.css +32 -1
- package/build/styles/inputs/Input.css +106 -1
- package/build/styles/inputs/InputGroup.css +62 -1
- package/build/styles/inputs/SelectInput.css +374 -1
- package/build/styles/inputs/TextArea.css +110 -1
- package/build/styles/instructionsList/InstructionsList.css +22 -1
- package/build/styles/link/Link.css +15 -1
- package/build/styles/listItem/ListItem.css +6 -1
- package/build/styles/loader/Loader.css +313 -1
- package/build/styles/logo/Logo.css +26 -1
- package/build/styles/main.css +5481 -1
- package/build/styles/modal/Modal.css +155 -1
- package/build/styles/moneyInput/MoneyInput.css +66 -1
- package/build/styles/navigationOption/NavigationOption.css +69 -1
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/build/styles/nudge/Nudge.css +182 -1
- package/build/styles/overlayHeader/OverlayHeader.css +15 -1
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +23 -1
- package/build/styles/popover/Popover.css +43 -1
- package/build/styles/progress/Progress.css +43 -1
- package/build/styles/progressBar/ProgressBar.css +14 -1
- package/build/styles/promoCard/PromoCard.css +186 -1
- package/build/styles/section/Section.css +10 -1
- package/build/styles/select/Select.css +309 -1
- package/build/styles/slidingPanel/SlidingPanel.css +105 -1
- package/build/styles/snackbar/Snackbar.css +93 -1
- package/build/styles/statusIcon/StatusIcon.css +78 -1
- package/build/styles/stepper/Stepper.css +108 -1
- package/build/styles/summary/Summary.css +81 -1
- package/build/styles/switch/Switch.css +68 -1
- package/build/styles/tabs/Tabs.css +121 -1
- package/build/styles/tile/Tile.css +55 -1
- package/build/styles/tooltip/Tooltip.css +50 -1
- package/build/styles/typeahead/Typeahead.css +183 -1
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +9 -1
- package/build/styles/upload/Upload.css +15 -1
- package/build/styles/uploadInput/UploadInput.css +71 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +49 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +74 -1
- package/build/types/select/option/Option.d.ts.map +1 -1
- package/build/types/typeahead/util/highlight.d.ts +1 -1
- package/build/types/typeahead/util/highlight.d.ts.map +1 -1
- package/package.json +4 -10
- package/src/accordion/Accordion.css +60 -1
- package/src/actionButton/ActionButton.css +53 -1
- package/src/avatar/Avatar.css +205 -1
- package/src/badge/Badge.css +68 -1
- package/src/button/Button.css +20 -1
- package/src/card/Card.css +100 -1
- package/src/checkboxButton/CheckboxButton.css +24 -1
- package/src/chips/Chip.css +190 -1
- package/src/circularButton/CircularButton.css +211 -1
- package/src/common/Option/Option.css +100 -1
- package/src/common/RadioButton/RadioButton.css +4 -1
- package/src/common/bottomSheet/BottomSheet.css +53 -1
- package/src/common/card/Card.css +53 -1
- package/src/common/closeButton/CloseButton.css +79 -1
- package/src/common/panel/Panel.css +73 -1
- package/src/criticalBanner/CriticalCommsBanner.css +77 -1
- package/src/dateInput/DateInput.css +3 -1
- package/src/dateLookup/DateLookup.css +98 -1
- package/src/dateLookup/DateLookup.story.js +12 -8
- package/src/dateLookup/dateTrigger/DateTrigger.css +68 -1
- package/src/decision/Decision.css +93 -1
- package/src/definitionList/DefinitionList.css +53 -1
- package/src/dimmer/Dimmer.css +70 -1
- package/src/drawer/Drawer.css +100 -1
- package/src/dropFade/DropFade.css +19 -1
- package/src/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +5 -1
- package/src/emphasis/Emphasis.css +31 -1
- package/src/flowNavigation/FlowNavigation.css +50 -1
- package/src/flowNavigation/animatedLabel/AnimatedLabel.css +21 -1
- package/src/flowNavigation/backButton/BackButton.css +32 -1
- package/src/header/Header.css +28 -1
- package/src/image/Image.css +13 -1
- package/src/info/Info.css +32 -1
- package/src/inputs/Input.css +106 -1
- package/src/inputs/InputGroup.css +62 -1
- package/src/inputs/SelectInput.css +374 -1
- package/src/inputs/TextArea.css +110 -1
- package/src/instructionsList/InstructionsList.css +22 -1
- package/src/link/Link.css +15 -1
- package/src/listItem/ListItem.css +6 -1
- package/src/loader/Loader.css +313 -1
- package/src/logo/Logo.css +26 -1
- package/src/main.css +5481 -1
- package/src/modal/Modal.css +155 -1
- package/src/moneyInput/MoneyInput.css +66 -1
- package/src/navigationOption/NavigationOption.css +69 -1
- package/src/navigationOptionsList/NavigationOptionsList.css +13 -1
- package/src/nudge/Nudge.css +182 -1
- package/src/overlayHeader/OverlayHeader.css +15 -1
- package/src/phoneNumberInput/PhoneNumberInput.css +23 -1
- package/src/popover/Popover.css +43 -1
- package/src/progress/Progress.css +43 -1
- package/src/progressBar/ProgressBar.css +14 -1
- package/src/promoCard/PromoCard.css +186 -1
- package/src/section/Section.css +10 -1
- package/src/select/Select.css +309 -1
- package/src/select/Select.less +1 -8
- package/src/select/option/Option.spec.js +3 -21
- package/src/select/option/Option.tsx +2 -7
- package/src/slidingPanel/SlidingPanel.css +105 -1
- package/src/snackbar/Snackbar.css +93 -1
- package/src/statusIcon/StatusIcon.css +78 -1
- package/src/stepper/Stepper.css +108 -1
- package/src/summary/Summary.css +81 -1
- package/src/switch/Switch.css +68 -1
- package/src/tabs/Tabs.css +121 -1
- package/src/tile/Tile.css +55 -1
- package/src/tooltip/Tooltip.css +50 -1
- package/src/typeahead/Typeahead.css +183 -1
- package/src/typeahead/typeaheadOption/TypeaheadOption.css +9 -1
- package/src/typeahead/typeaheadOption/TypeaheadOption.js +3 -3
- package/src/typeahead/util/highlight.js +1 -1
- package/src/upload/Upload.css +15 -1
- package/src/uploadInput/UploadInput.css +71 -1
- package/src/uploadInput/uploadButton/UploadButton.css +49 -1
- package/src/uploadInput/uploadItem/UploadItem.css +74 -1
package/src/avatar/Avatar.css
CHANGED
|
@@ -1 +1,205 @@
|
|
|
1
|
-
|
|
1
|
+
@media (min-width: 768px) {
|
|
2
|
+
}@media (min-width: 768px) {
|
|
3
|
+
}.tw-avatar {
|
|
4
|
+
position: relative;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
-webkit-user-select: none;
|
|
7
|
+
-moz-user-select: none;
|
|
8
|
+
user-select: none;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}.tw-avatar .tw-avatar__content {
|
|
11
|
+
align-items: center;
|
|
12
|
+
background-color: rgba(134,167,189,0.10196);
|
|
13
|
+
background-color: #86a7bd1a;
|
|
14
|
+
background-color: var(--color-background-neutral);
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
color: #37517e;
|
|
17
|
+
color: var(--color-content-primary);
|
|
18
|
+
display: flex;
|
|
19
|
+
height: 100%;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
max-height: 100%;
|
|
22
|
+
max-width: 100%;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
width: 100%;
|
|
25
|
+
}.tw-avatar--outlined {
|
|
26
|
+
border: 1px solid #00a2dd;
|
|
27
|
+
border: 1px solid var(--color-interactive-accent);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}.tw-avatar--outlined:not(.disabled):not(:disabled):hover {
|
|
30
|
+
border-color: #008fc9;
|
|
31
|
+
border-color: var(--color-interactive-accent-hover);
|
|
32
|
+
}.tw-avatar--thumbnail * {
|
|
33
|
+
width: 100%;
|
|
34
|
+
height: 100%;
|
|
35
|
+
-o-object-fit: cover;
|
|
36
|
+
object-fit: cover;
|
|
37
|
+
}.tw-avatar--icon * {
|
|
38
|
+
max-height: 100%;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
}.tw-avatar.tw-avatar--initials,
|
|
41
|
+
.tw-avatar.tw-avatar--emoji {
|
|
42
|
+
font-family: Arial, sans-serif;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
font-weight: var(--font-weight-semi-bold);
|
|
45
|
+
}.tw-avatar.tw-avatar--initials,
|
|
46
|
+
.tw-avatar.tw-avatar--icon {
|
|
47
|
+
color: #37517e;
|
|
48
|
+
color: var(--color-content-primary);
|
|
49
|
+
}.tw-avatar.tw-avatar--initials,
|
|
50
|
+
.tw-avatar.tw-avatar--emoji {
|
|
51
|
+
font-family: Arial, sans-serif;
|
|
52
|
+
}.tw-avatar.tw-avatar--branded .tw-avatar__content {
|
|
53
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
54
|
+
font-family: var(--font-family-display);
|
|
55
|
+
font-feature-settings: "ss01";
|
|
56
|
+
color: var(--color-dark-charcoal);
|
|
57
|
+
line-height: 1;
|
|
58
|
+
}.tw-avatar--24 {
|
|
59
|
+
min-width: 24px;
|
|
60
|
+
width: 24px;
|
|
61
|
+
height: 24px;
|
|
62
|
+
}.tw-avatar--24.tw-avatar--emoji,
|
|
63
|
+
.tw-avatar--24.tw-avatar--icon {
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
}.tw-avatar--24.tw-avatar--initials {
|
|
66
|
+
font-size: 8.4px;
|
|
67
|
+
}.tw-avatar--24.tw-avatar--branded {
|
|
68
|
+
font-size: 10.8px;
|
|
69
|
+
}.tw-avatar--24.tw-avatar--outlined {
|
|
70
|
+
padding: 2px;
|
|
71
|
+
}.tw-avatar--24.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
72
|
+
top: 2px;
|
|
73
|
+
left: 2px;
|
|
74
|
+
right: 2px;
|
|
75
|
+
bottom: 2px;
|
|
76
|
+
}.tw-avatar--24.tw-avatar--thumbnail::after {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
right: 0;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
83
|
+
border: 1px solid var(--color-border-overlay);
|
|
84
|
+
content: "";
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
}.tw-avatar--40 {
|
|
87
|
+
min-width: 40px;
|
|
88
|
+
width: 40px;
|
|
89
|
+
height: 40px;
|
|
90
|
+
}.tw-avatar--40.tw-avatar--emoji,
|
|
91
|
+
.tw-avatar--40.tw-avatar--icon {
|
|
92
|
+
font-size: 20px;
|
|
93
|
+
}.tw-avatar--40.tw-avatar--initials {
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
}.tw-avatar--40.tw-avatar--branded {
|
|
96
|
+
font-size: 18px;
|
|
97
|
+
}.tw-avatar--40.tw-avatar--outlined {
|
|
98
|
+
padding: 2px;
|
|
99
|
+
}.tw-avatar--40.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
100
|
+
top: 2px;
|
|
101
|
+
left: 2px;
|
|
102
|
+
right: 2px;
|
|
103
|
+
bottom: 2px;
|
|
104
|
+
}.tw-avatar--40.tw-avatar--thumbnail::after {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
left: 0;
|
|
108
|
+
right: 0;
|
|
109
|
+
bottom: 0;
|
|
110
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
111
|
+
border: 1px solid var(--color-border-overlay);
|
|
112
|
+
content: "";
|
|
113
|
+
border-radius: 50%;
|
|
114
|
+
}.tw-avatar--48 {
|
|
115
|
+
min-width: 48px;
|
|
116
|
+
width: 48px;
|
|
117
|
+
height: 48px;
|
|
118
|
+
}.tw-avatar--48.tw-avatar--emoji,
|
|
119
|
+
.tw-avatar--48.tw-avatar--icon {
|
|
120
|
+
font-size: 24px;
|
|
121
|
+
}.tw-avatar--48.tw-avatar--initials {
|
|
122
|
+
font-size: 16.8px;
|
|
123
|
+
}.tw-avatar--48.tw-avatar--branded {
|
|
124
|
+
font-size: 21.6px;
|
|
125
|
+
}.tw-avatar--48.tw-avatar--outlined {
|
|
126
|
+
padding: 2px;
|
|
127
|
+
}.tw-avatar--48.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
128
|
+
top: 2px;
|
|
129
|
+
left: 2px;
|
|
130
|
+
right: 2px;
|
|
131
|
+
bottom: 2px;
|
|
132
|
+
}.tw-avatar--48.tw-avatar--thumbnail::after {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 0;
|
|
135
|
+
left: 0;
|
|
136
|
+
right: 0;
|
|
137
|
+
bottom: 0;
|
|
138
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
139
|
+
border: 1px solid var(--color-border-overlay);
|
|
140
|
+
content: "";
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
}.tw-avatar--56 {
|
|
143
|
+
min-width: 56px;
|
|
144
|
+
width: 56px;
|
|
145
|
+
height: 56px;
|
|
146
|
+
}.tw-avatar--56.tw-avatar--emoji,
|
|
147
|
+
.tw-avatar--56.tw-avatar--icon {
|
|
148
|
+
font-size: 28px;
|
|
149
|
+
}.tw-avatar--56.tw-avatar--initials {
|
|
150
|
+
font-size: 19.6px;
|
|
151
|
+
}.tw-avatar--56.tw-avatar--branded {
|
|
152
|
+
font-size: 25.2px;
|
|
153
|
+
}.tw-avatar--56.tw-avatar--outlined {
|
|
154
|
+
padding: 2px;
|
|
155
|
+
}.tw-avatar--56.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
156
|
+
top: 2px;
|
|
157
|
+
left: 2px;
|
|
158
|
+
right: 2px;
|
|
159
|
+
bottom: 2px;
|
|
160
|
+
}.tw-avatar--56.tw-avatar--thumbnail::after {
|
|
161
|
+
position: absolute;
|
|
162
|
+
top: 0;
|
|
163
|
+
left: 0;
|
|
164
|
+
right: 0;
|
|
165
|
+
bottom: 0;
|
|
166
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
167
|
+
border: 1px solid var(--color-border-overlay);
|
|
168
|
+
content: "";
|
|
169
|
+
border-radius: 50%;
|
|
170
|
+
}.tw-avatar--72 {
|
|
171
|
+
min-width: 72px;
|
|
172
|
+
width: 72px;
|
|
173
|
+
height: 72px;
|
|
174
|
+
}.tw-avatar--72.tw-avatar--emoji,
|
|
175
|
+
.tw-avatar--72.tw-avatar--icon {
|
|
176
|
+
font-size: 36px;
|
|
177
|
+
}.tw-avatar--72.tw-avatar--initials {
|
|
178
|
+
font-size: 25.2px;
|
|
179
|
+
}.tw-avatar--72.tw-avatar--branded {
|
|
180
|
+
font-size: 32.4px;
|
|
181
|
+
}.tw-avatar--72.tw-avatar--outlined {
|
|
182
|
+
padding: 2px;
|
|
183
|
+
}.tw-avatar--72.tw-avatar--outlined.tw-avatar--thumbnail::after {
|
|
184
|
+
top: 2px;
|
|
185
|
+
left: 2px;
|
|
186
|
+
right: 2px;
|
|
187
|
+
bottom: 2px;
|
|
188
|
+
}.tw-avatar--72.tw-avatar--thumbnail::after {
|
|
189
|
+
position: absolute;
|
|
190
|
+
top: 0;
|
|
191
|
+
left: 0;
|
|
192
|
+
right: 0;
|
|
193
|
+
bottom: 0;
|
|
194
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
195
|
+
border: 1px solid var(--color-border-overlay);
|
|
196
|
+
content: "";
|
|
197
|
+
border-radius: 50%;
|
|
198
|
+
}.tw-avatar img {
|
|
199
|
+
width: 100%;
|
|
200
|
+
height: 100%;
|
|
201
|
+
}.np-theme-personal .tw-avatar--outlined {
|
|
202
|
+
border-color: var(--color-interactive-primary);
|
|
203
|
+
}.np-theme-personal .tw-avatar--outlined:not(.disabled):not(:disabled):hover {
|
|
204
|
+
border-color: var(--color-interactive-primary-hover);
|
|
205
|
+
}
|
package/src/badge/Badge.css
CHANGED
|
@@ -1 +1,68 @@
|
|
|
1
|
-
.tw-badge
|
|
1
|
+
.tw-badge {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
--badge-size: 16px;
|
|
5
|
+
--badge-mask: 2px;
|
|
6
|
+
--badge-mask-offset: calc(var(--badge-size) / 2);
|
|
7
|
+
--badge-border-color: rgba(255, 255, 255, 0.08);
|
|
8
|
+
}
|
|
9
|
+
.tw-badge.tw-badge-md {
|
|
10
|
+
--badge-size: 20px;
|
|
11
|
+
--badge-mask: 2px;
|
|
12
|
+
}
|
|
13
|
+
.tw-badge.tw-badge-lg {
|
|
14
|
+
--badge-size: 24px;
|
|
15
|
+
--badge-mask: 3px;
|
|
16
|
+
}
|
|
17
|
+
.tw-badge.tw-badge-border-dark {
|
|
18
|
+
--badge-border-color: rgba(0, 0, 0, 0.08);
|
|
19
|
+
}
|
|
20
|
+
.tw-badge > .tw-badge__children {
|
|
21
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
22
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) left calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
23
|
+
}
|
|
24
|
+
[dir="rtl"] .tw-badge > .tw-badge__children {
|
|
25
|
+
-webkit-mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) right calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
26
|
+
mask-image: radial-gradient(circle at top calc(100% - var(--badge-mask-offset)) right calc(100% - var(--badge-mask-offset)), transparent 0, transparent calc(var(--badge-size) / 2 + var(--badge-mask)), black calc(var(--badge-size) / 2 + var(--badge-mask) + 0.5px));
|
|
27
|
+
}
|
|
28
|
+
.tw-badge > .tw-badge__content {
|
|
29
|
+
position: absolute;
|
|
30
|
+
width: var(--badge-size);
|
|
31
|
+
height: var(--badge-size);
|
|
32
|
+
bottom: 0;
|
|
33
|
+
right: 0;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
text-align: center;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
-webkit-user-select: none;
|
|
42
|
+
-moz-user-select: none;
|
|
43
|
+
user-select: none;
|
|
44
|
+
}
|
|
45
|
+
[dir="rtl"] .tw-badge > .tw-badge__content {
|
|
46
|
+
left: 0;
|
|
47
|
+
right: auto;
|
|
48
|
+
right: initial;
|
|
49
|
+
}
|
|
50
|
+
.tw-badge > .tw-badge__content * {
|
|
51
|
+
max-height: 100%;
|
|
52
|
+
max-width: 100%;
|
|
53
|
+
}
|
|
54
|
+
.tw-badge.tw-badge-border-light > .tw-badge.tw-badge-border-light__children,
|
|
55
|
+
.tw-badge.tw-badge-border-light > .tw-badge.tw-badge-border-dark__children,
|
|
56
|
+
.tw-badge.tw-badge-border-dark > .tw-badge.tw-badge-border-light__children,
|
|
57
|
+
.tw-badge.tw-badge-border-dark > .tw-badge.tw-badge-border-dark__children {
|
|
58
|
+
-webkit-mask-image: none;
|
|
59
|
+
mask-image: none;
|
|
60
|
+
}
|
|
61
|
+
.tw-badge.tw-badge-border-light > .tw-badge.tw-badge-border-light__content,
|
|
62
|
+
.tw-badge.tw-badge-border-light > .tw-badge.tw-badge-border-dark__content,
|
|
63
|
+
.tw-badge.tw-badge-border-dark > .tw-badge.tw-badge-border-light__content,
|
|
64
|
+
.tw-badge.tw-badge-border-dark > .tw-badge.tw-badge-border-dark__content {
|
|
65
|
+
border-style: solid inset solid solid;
|
|
66
|
+
border-width: 1px;
|
|
67
|
+
border-color: var(--badge-border-color);
|
|
68
|
+
}
|
package/src/button/Button.css
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
.np-btn
|
|
1
|
+
.np-btn {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.np-btn.np-btn-block > span.btn-loader {
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 24px;
|
|
7
|
+
left: var(--size-24);
|
|
8
|
+
}
|
|
9
|
+
[dir="rtl"] .np-btn.np-btn-block > span.btn-loader {
|
|
10
|
+
right: 24px;
|
|
11
|
+
right: var(--size-24);
|
|
12
|
+
left: auto;
|
|
13
|
+
left: initial;
|
|
14
|
+
}
|
|
15
|
+
.np-btn.np-btn-xs > span.btn-loader {
|
|
16
|
+
background-size: 16px 16px;
|
|
17
|
+
}
|
|
18
|
+
.np-btn.np-btn-xs.btn-block > span.btn-loader {
|
|
19
|
+
top: 0;
|
|
20
|
+
}
|
package/src/card/Card.css
CHANGED
|
@@ -1 +1,100 @@
|
|
|
1
|
-
.np-card
|
|
1
|
+
.np-card {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
transition-property: transform, box-shadow;
|
|
4
|
+
transition-duration: 0.35s;
|
|
5
|
+
transition-timing-function: ease;
|
|
6
|
+
}
|
|
7
|
+
.np-card .media {
|
|
8
|
+
border: 0;
|
|
9
|
+
}
|
|
10
|
+
.np-card--expanded {
|
|
11
|
+
background-color: #ffffff;
|
|
12
|
+
background-color: var(--color-background-elevated);
|
|
13
|
+
box-shadow: 0 1px 10px rgba(0,0,0,0.10196);
|
|
14
|
+
box-shadow: 0 1px 10px var(--color-border-neutral);
|
|
15
|
+
}
|
|
16
|
+
.np-theme-personal .np-card--expanded {
|
|
17
|
+
box-shadow: 0 1px 10px 0 rgba(69, 71, 69, 0.2);
|
|
18
|
+
}
|
|
19
|
+
.np-theme-personal--forest-green .np-card--expanded,
|
|
20
|
+
.np-theme-personal--bright-green .np-card--expanded,
|
|
21
|
+
.np-theme-personal--dark .np-card--expanded {
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
24
|
+
.np-card--inactive .decision {
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
@media (min-width: 480px) {
|
|
28
|
+
.np-card--has-icon .np-card__content {
|
|
29
|
+
padding: 24px 72px;
|
|
30
|
+
padding: var(--size-24) var(--size-72);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
@media (min-width: 480px) {
|
|
34
|
+
.np-card--has-icon .np-card__divider--expanded {
|
|
35
|
+
margin: 0 72px;
|
|
36
|
+
margin: 0 var(--size-72);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.np-card__button {
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
text-align: left;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
[dir="rtl"] .np-card__button {
|
|
45
|
+
text-align: right;
|
|
46
|
+
}
|
|
47
|
+
.np-theme-personal .np-card__button:focus {
|
|
48
|
+
outline: none;
|
|
49
|
+
}
|
|
50
|
+
.np-theme-personal .np-card__button:focus-visible {
|
|
51
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
52
|
+
outline-offset: var(--ring-outline-offset);
|
|
53
|
+
}
|
|
54
|
+
.np-card__content {
|
|
55
|
+
padding: 24px 16px;
|
|
56
|
+
padding: var(--size-24) var(--size-16);
|
|
57
|
+
}
|
|
58
|
+
.np-theme-personal .np-card__content {
|
|
59
|
+
padding: 16px 16px 24px;
|
|
60
|
+
padding: var(--size-16) var(--size-16) var(--size-24);
|
|
61
|
+
}
|
|
62
|
+
.np-card__divider {
|
|
63
|
+
transition: margin 0.35s ease;
|
|
64
|
+
}
|
|
65
|
+
.np-card__divider--expanded {
|
|
66
|
+
background-color: rgba(0,0,0,0.10196);
|
|
67
|
+
background-color: var(--color-border-neutral);
|
|
68
|
+
height: 1px;
|
|
69
|
+
margin: 0 16px;
|
|
70
|
+
margin: 0 var(--size-16);
|
|
71
|
+
}
|
|
72
|
+
.np-theme-personal .np-card {
|
|
73
|
+
overflow: visible;
|
|
74
|
+
overflow: initial;
|
|
75
|
+
border-radius: 16px;
|
|
76
|
+
border-radius: var(--radius-medium);
|
|
77
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
78
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
79
|
+
}
|
|
80
|
+
.np-theme-personal .np-card__divider {
|
|
81
|
+
transition: none;
|
|
82
|
+
margin: 0;
|
|
83
|
+
}
|
|
84
|
+
.np-theme-personal .np-card__button {
|
|
85
|
+
border-radius: 16px;
|
|
86
|
+
border-radius: var(--radius-medium);
|
|
87
|
+
--ring-outline-width: 3px;
|
|
88
|
+
--ring-outline-offset: calc(-1 * var(--ring-outline-width));
|
|
89
|
+
}
|
|
90
|
+
.np-theme-personal .np-card__button:focus {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
.np-theme-personal .np-card__button:focus-visible {
|
|
94
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
95
|
+
outline-offset: var(--ring-outline-offset);
|
|
96
|
+
}
|
|
97
|
+
.np-theme-personal .np-card--expanded .np-card__button {
|
|
98
|
+
border-radius: 16px 16px 0 0;
|
|
99
|
+
border-radius: var(--radius-medium) var(--radius-medium) 0 0;
|
|
100
|
+
}
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
.np-checkbox-button input[type=checkbox]
|
|
1
|
+
.np-checkbox-button input[type="checkbox"] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
width: 24px;
|
|
4
|
+
width: var(--size-24);
|
|
5
|
+
height: 24px;
|
|
6
|
+
height: var(--size-24);
|
|
7
|
+
opacity: 0;
|
|
8
|
+
}
|
|
9
|
+
.np-checkbox-button input[type="checkbox"]:not(:disabled) {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
.np-checkbox-button .tw-checkbox-check {
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
.checkbox .np-checkbox-button input[type="checkbox"] {
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
[dir="rtl"] .checkbox .np-checkbox-button input[type="checkbox"] {
|
|
21
|
+
right: 0;
|
|
22
|
+
left: auto;
|
|
23
|
+
left: initial;
|
|
24
|
+
}
|
package/src/chips/Chip.css
CHANGED
|
@@ -1 +1,190 @@
|
|
|
1
|
-
.np-chip
|
|
1
|
+
.np-chip {
|
|
2
|
+
background-color: transparent;
|
|
3
|
+
border: 1px solid rgba(0,0,0,0.10196);
|
|
4
|
+
border: 1px solid var(--color-border-neutral);
|
|
5
|
+
border-radius: 16px;
|
|
6
|
+
border-radius: var(--size-16);
|
|
7
|
+
color: #5d7079;
|
|
8
|
+
color: var(--color-content-secondary);
|
|
9
|
+
height: 32px;
|
|
10
|
+
height: var(--size-32);
|
|
11
|
+
margin-right: 8px;
|
|
12
|
+
margin-right: var(--size-8);
|
|
13
|
+
padding: 0 12px;
|
|
14
|
+
padding: 0 var(--size-12);
|
|
15
|
+
transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
|
|
16
|
+
}
|
|
17
|
+
@media (max-width: 320px) {
|
|
18
|
+
.np-chip {
|
|
19
|
+
height: 40px;
|
|
20
|
+
height: var(--size-40);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.np-chip:hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
.np-chip .np-chip-label {
|
|
27
|
+
padding-top: 2px;
|
|
28
|
+
}
|
|
29
|
+
.np-chip .np-close-button {
|
|
30
|
+
pointer-events: auto;
|
|
31
|
+
}
|
|
32
|
+
.np-chip:last-child {
|
|
33
|
+
margin-right: 0;
|
|
34
|
+
}
|
|
35
|
+
[dir="rtl"] .np-chip:last-child {
|
|
36
|
+
margin-left: 0;
|
|
37
|
+
margin-right: 0;
|
|
38
|
+
margin-right: initial;
|
|
39
|
+
}
|
|
40
|
+
.np-chip:active {
|
|
41
|
+
background-color: #0081ba;
|
|
42
|
+
background-color: var(--color-interactive-accent-active);
|
|
43
|
+
border-color: #0081ba;
|
|
44
|
+
border-color: var(--color-interactive-accent-active);
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
.np-chip--selected {
|
|
48
|
+
color: #fff;
|
|
49
|
+
background-color: #00a2dd;
|
|
50
|
+
background-color: var(--color-interactive-accent);
|
|
51
|
+
border-color: #00a2dd;
|
|
52
|
+
border-color: var(--color-interactive-accent);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
.np-chip--selected:hover,
|
|
56
|
+
.np-chip--selected:active {
|
|
57
|
+
color: #fff;
|
|
58
|
+
background-color: #008fc9;
|
|
59
|
+
background-color: var(--color-interactive-accent-hover);
|
|
60
|
+
border-color: #008fc9;
|
|
61
|
+
border-color: var(--color-interactive-accent-hover);
|
|
62
|
+
}
|
|
63
|
+
.np-chip--selected .np-close-button {
|
|
64
|
+
color: white;
|
|
65
|
+
}
|
|
66
|
+
.np-chip.has-error {
|
|
67
|
+
background: #e74848;
|
|
68
|
+
background: var(--color-interactive-negative);
|
|
69
|
+
color: #fff;
|
|
70
|
+
}
|
|
71
|
+
.np-chip.has-error .np-close-button {
|
|
72
|
+
color: white;
|
|
73
|
+
}
|
|
74
|
+
.np-theme-personal .np-chip.has-error {
|
|
75
|
+
background: var(--color-sentiment-negative);
|
|
76
|
+
}
|
|
77
|
+
.np-theme-personal .np-chip.has-error,
|
|
78
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):hover,
|
|
79
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):active {
|
|
80
|
+
color: var(--color-contrast);
|
|
81
|
+
}
|
|
82
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):hover {
|
|
83
|
+
background: var(--color-sentiment-negative-hover);
|
|
84
|
+
border-color: var(--color-sentiment-negative-hover) !important;
|
|
85
|
+
}
|
|
86
|
+
.np-theme-personal .np-chip.has-error:not(.disabled):not(:disabled):active {
|
|
87
|
+
background: var(--color-sentiment-negative-active);
|
|
88
|
+
border-color: var(--color-sentiment-negative-active) !important;
|
|
89
|
+
}
|
|
90
|
+
.np-theme-personal .np-chip {
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
font-weight: var(--font-weight-semi-bold);
|
|
93
|
+
color: var(--color-interactive-primary);
|
|
94
|
+
padding: 0 16px;
|
|
95
|
+
padding: 0 var(--size-16);
|
|
96
|
+
border-color: #c9cbce;
|
|
97
|
+
border-color: var(--color-interactive-secondary);
|
|
98
|
+
}
|
|
99
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):hover {
|
|
100
|
+
color: var(--color-interactive-primary-hover);
|
|
101
|
+
background-color: var(--color-background-screen-hover);
|
|
102
|
+
border-color: #b5b7ba;
|
|
103
|
+
border-color: var(--color-interactive-secondary-hover);
|
|
104
|
+
}
|
|
105
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):active {
|
|
106
|
+
color: var(--color-interactive-primary-active);
|
|
107
|
+
background-color: var(--color-background-screen-active);
|
|
108
|
+
border-color: #a7a9ab;
|
|
109
|
+
border-color: var(--color-interactive-secondary-active);
|
|
110
|
+
}
|
|
111
|
+
.np-theme-personal .np-chip .np-close-button {
|
|
112
|
+
margin-right: calc(8px * -1);
|
|
113
|
+
margin-right: calc(var(--size-8) * -1);
|
|
114
|
+
border-radius: inherit;
|
|
115
|
+
}
|
|
116
|
+
.np-theme-personal .np-chip .np-close-button,
|
|
117
|
+
.np-theme-personal .np-chip .np-close-button:hover,
|
|
118
|
+
.np-theme-personal .np-chip .np-close-button:not(.disabled):not(:disabled):hover,
|
|
119
|
+
.np-theme-personal .np-chip .np-close-button:not(.disabled):not(:disabled):active {
|
|
120
|
+
color: inherit !important;
|
|
121
|
+
background-color: transparent !important;
|
|
122
|
+
}
|
|
123
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible,
|
|
124
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) {
|
|
125
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
126
|
+
outline-offset: var(--ring-outline-offset);
|
|
127
|
+
}
|
|
128
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible .np-close-button,
|
|
129
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) .np-close-button {
|
|
130
|
+
background: transparent;
|
|
131
|
+
outline: none;
|
|
132
|
+
}
|
|
133
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):focus-visible .np-close-button:hover,
|
|
134
|
+
.np-theme-personal .np-chip:not(.disabled):not(:disabled):has(:focus-visible) .np-close-button:hover {
|
|
135
|
+
color: inherit !important;
|
|
136
|
+
}
|
|
137
|
+
.np-theme-personal .np-chip.np-chip--removable {
|
|
138
|
+
position: relative;
|
|
139
|
+
}
|
|
140
|
+
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
|
|
141
|
+
padding-right: 24px;
|
|
142
|
+
padding-right: var(--size-24);
|
|
143
|
+
}
|
|
144
|
+
@media (max-width: 320px) {
|
|
145
|
+
.np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
|
|
146
|
+
padding-right: 48px;
|
|
147
|
+
padding-right: var(--size-48);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.np-theme-personal .np-chip.np-chip--removable .np-close-button {
|
|
151
|
+
justify-content: flex-end;
|
|
152
|
+
top: 0;
|
|
153
|
+
left: 0;
|
|
154
|
+
position: absolute;
|
|
155
|
+
padding-right: 8px;
|
|
156
|
+
padding-right: var(--size-8);
|
|
157
|
+
height: 100%;
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
.np-theme-personal .np-chip:has(.disabled, :disabled):focus-visible {
|
|
161
|
+
outline: none;
|
|
162
|
+
}
|
|
163
|
+
.np-theme-personal .np-chip--selected,
|
|
164
|
+
.np-theme-personal .np-chip--valid {
|
|
165
|
+
color: var(--color-interactive-contrast);
|
|
166
|
+
background-color: var(--color-interactive-primary);
|
|
167
|
+
border-color: var(--color-interactive-primary);
|
|
168
|
+
}
|
|
169
|
+
.np-theme-personal .np-chip--selected:not(.disabled):not(:disabled):hover,
|
|
170
|
+
.np-theme-personal .np-chip--valid:not(.disabled):not(:disabled):hover {
|
|
171
|
+
color: var(--color-interactive-contrast-hover);
|
|
172
|
+
background-color: var(--color-interactive-primary-hover);
|
|
173
|
+
border-color: var(--color-interactive-primary-hover);
|
|
174
|
+
}
|
|
175
|
+
.np-theme-personal .np-chip--selected:not(.disabled):not(:disabled):active,
|
|
176
|
+
.np-theme-personal .np-chip--valid:not(.disabled):not(:disabled):active {
|
|
177
|
+
color: var(--color-interactive-contrast-active);
|
|
178
|
+
background-color: var(--color-interactive-primary-active);
|
|
179
|
+
border-color: var(--color-interactive-primary-active);
|
|
180
|
+
}
|
|
181
|
+
.np-theme-personal .np-chip--selected .np-close-button,
|
|
182
|
+
.np-theme-personal .np-chip--valid .np-close-button {
|
|
183
|
+
color: inherit;
|
|
184
|
+
}
|
|
185
|
+
.np-theme-personal .np-chip--selected .np-close-button:focus,
|
|
186
|
+
.np-theme-personal .np-chip--valid .np-close-button:focus,
|
|
187
|
+
.np-theme-personal .np-chip--selected .np-close-button:focus-within,
|
|
188
|
+
.np-theme-personal .np-chip--valid .np-close-button:focus-within {
|
|
189
|
+
outline: none;
|
|
190
|
+
}
|