@transferwise/components 46.85.0 → 46.86.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/build/avatarLayout/AvatarLayout.js +4 -3
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +4 -3
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +12 -1
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +12 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +18 -21
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +19 -22
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/de.json.js +1 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +1 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/es.json +1 -0
- package/build/i18n/es.json.js +1 -0
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +1 -0
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/fr.json +6 -5
- package/build/i18n/fr.json.js +6 -5
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +6 -5
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +1 -0
- package/build/i18n/hu.json.js +1 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +1 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +1 -0
- package/build/i18n/id.json.js +1 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +1 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +1 -0
- package/build/i18n/it.json.js +1 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +1 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pl.json.js +1 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +1 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/ro.json +1 -0
- package/build/i18n/ro.json.js +1 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +1 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/th.json +1 -0
- package/build/i18n/th.json.js +1 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +1 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +1 -0
- package/build/i18n/tr.json.js +1 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +1 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +1 -0
- package/build/i18n/zh-CN.json.js +1 -0
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +1 -0
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/main.css +18 -159
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +1 -1
- package/build/styles/circularButton/CircularButton.css +17 -158
- package/build/styles/main.css +18 -159
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/avatarView/AvatarView.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts +11 -4
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +1 -2
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/avatar/Avatar.story.tsx +4 -1
- package/src/avatarLayout/AvatarLayout.css +1 -1
- package/src/avatarLayout/AvatarLayout.less +1 -1
- package/src/avatarLayout/AvatarLayout.story.tsx +2 -0
- package/src/avatarLayout/AvatarLayout.tsx +6 -4
- package/src/avatarView/AvatarView.tsx +15 -1
- package/src/avatarWrapper/AvatarWrapper.story.tsx +4 -0
- package/src/badge/Badge.story.tsx +4 -0
- package/src/circularButton/CircularButton.css +17 -158
- package/src/circularButton/CircularButton.less +22 -91
- package/src/circularButton/CircularButton.story.tsx +45 -24
- package/src/circularButton/CircularButton.tsx +38 -25
- package/src/dateInput/DateInput.spec.tsx +45 -26
- package/src/definitionList/DefinitionList.story.tsx +57 -57
- package/src/definitionList/DefinitionList.tsx +1 -1
- package/src/i18n/de.json +1 -0
- package/src/i18n/es.json +1 -0
- package/src/i18n/fr.json +6 -5
- package/src/i18n/hu.json +1 -0
- package/src/i18n/id.json +1 -0
- package/src/i18n/it.json +1 -0
- package/src/i18n/pl.json +1 -0
- package/src/i18n/ro.json +1 -0
- package/src/i18n/th.json +1 -0
- package/src/i18n/tr.json +1 -0
- package/src/i18n/zh-CN.json +1 -0
- package/src/iconButton/IconButton.story.tsx +6 -6
- package/src/main.css +18 -159
- package/src/moneyInput/MoneyInput.spec.tsx +468 -0
- package/src/moneyInput/MoneyInput.tsx +2 -1
- package/src/phoneNumberInput/PhoneNumberInput.spec.tsx +283 -0
- package/src/slidingPanel/SlidingPanel.spec.tsx +69 -0
- package/src/circularButton/_button-label-states.less +0 -34
- package/src/definitionList/DefinitionList.spec.js +0 -91
- package/src/moneyInput/MoneyInput.rtl.spec.tsx +0 -149
- package/src/moneyInput/MoneyInput.spec.js +0 -820
- package/src/phoneNumberInput/PhoneNumberInput.rtl.spec.tsx +0 -32
- package/src/phoneNumberInput/PhoneNumberInput.spec.js +0 -356
- package/src/slidingPanel/SlidingPanel.spec.js +0 -56
|
@@ -2,173 +2,32 @@
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
5
|
-
text-align: center;
|
|
6
5
|
cursor: pointer;
|
|
7
|
-
position: relative;
|
|
8
6
|
}
|
|
9
|
-
.np-circular-btn .
|
|
10
|
-
|
|
11
|
-
top: 16px;
|
|
12
|
-
top: var(--size-16);
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
color: white;
|
|
15
|
-
transition: color 0.15s ease-in-out;
|
|
16
|
-
width: 100%;
|
|
17
|
-
left: 0;
|
|
18
|
-
}
|
|
19
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
20
|
-
right: 0;
|
|
21
|
-
left: auto;
|
|
22
|
-
left: initial;
|
|
23
|
-
}
|
|
24
|
-
@media (max-width: 320px) {
|
|
25
|
-
.np-circular-btn .tw-icon {
|
|
26
|
-
top: 12px;
|
|
27
|
-
top: var(--size-12);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.np-circular-btn .tw-icon > svg {
|
|
31
|
-
margin: 0 auto;
|
|
32
|
-
}
|
|
33
|
-
.np-theme-personal .np-circular-btn {
|
|
34
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
35
|
-
}
|
|
36
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
37
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
38
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
39
|
-
color: var(--color-interactive-control);
|
|
40
|
-
}
|
|
41
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
42
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
43
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
44
|
-
color: var(--color-contrast) !important;
|
|
45
|
-
}
|
|
46
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
47
|
-
color: var(--color-sentiment-negative) !important;
|
|
48
|
-
}
|
|
49
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
50
|
-
color: #00a2dd;
|
|
51
|
-
color: var(--color-interactive-accent);
|
|
52
|
-
}
|
|
53
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
54
|
-
color: #008fc9;
|
|
55
|
-
color: var(--color-interactive-accent-hover);
|
|
56
|
-
}
|
|
57
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
58
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
59
|
-
color: #0081ba;
|
|
60
|
-
color: var(--color-interactive-accent-active);
|
|
61
|
-
}
|
|
62
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
63
|
-
color: #00a2dd;
|
|
64
|
-
color: var(--color-interactive-accent);
|
|
65
|
-
}
|
|
66
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
67
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
68
|
-
color: white;
|
|
69
|
-
}
|
|
70
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
71
|
-
color: #2ead4b;
|
|
72
|
-
color: var(--color-interactive-positive);
|
|
73
|
-
}
|
|
74
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
75
|
-
color: #069939;
|
|
76
|
-
color: var(--color-interactive-positive-hover);
|
|
77
|
-
}
|
|
78
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
79
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
80
|
-
color: #008b2b;
|
|
81
|
-
color: var(--color-interactive-positive-active);
|
|
82
|
-
}
|
|
83
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
84
|
-
color: #2ead4b;
|
|
85
|
-
color: var(--color-interactive-positive);
|
|
86
|
-
}
|
|
87
|
-
.np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
88
|
-
.np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
89
|
-
color: white;
|
|
90
|
-
}
|
|
91
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
92
|
-
color: #e74848;
|
|
93
|
-
color: var(--color-interactive-negative);
|
|
94
|
-
}
|
|
95
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
96
|
-
color: #d03238;
|
|
97
|
-
color: var(--color-interactive-negative-hover);
|
|
98
|
-
}
|
|
99
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
100
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
101
|
-
color: #bf1e2c;
|
|
102
|
-
color: var(--color-interactive-negative-active);
|
|
103
|
-
}
|
|
104
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
105
|
-
color: #e74848;
|
|
106
|
-
color: var(--color-interactive-negative);
|
|
107
|
-
}
|
|
108
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
109
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
110
|
-
color: white;
|
|
111
|
-
}
|
|
112
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
7
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
8
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
113
9
|
color: var(--color-interactive-primary);
|
|
114
10
|
}
|
|
115
|
-
.np-
|
|
11
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
12
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
116
13
|
color: var(--color-interactive-primary-hover);
|
|
117
14
|
}
|
|
118
|
-
.np-
|
|
119
|
-
.np-
|
|
15
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
16
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
120
17
|
color: var(--color-interactive-primary-active);
|
|
121
18
|
}
|
|
122
|
-
.np-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
126
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
127
|
-
color: white;
|
|
128
|
-
color: var(--color-interactive-control);
|
|
129
|
-
}
|
|
130
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
131
|
-
color: var(--color-interactive-control);
|
|
132
|
-
}
|
|
133
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
134
|
-
color: var(--color-interactive-primary);
|
|
135
|
-
}
|
|
136
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
137
|
-
color: var(--color-interactive-primary-hover);
|
|
138
|
-
}
|
|
139
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
140
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
141
|
-
color: var(--color-interactive-primary-active);
|
|
142
|
-
}
|
|
143
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
144
|
-
color: var(--color-interactive-primary);
|
|
145
|
-
}
|
|
146
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
147
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
148
|
-
color: white;
|
|
149
|
-
color: var(--color-interactive-control);
|
|
150
|
-
}
|
|
151
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
152
|
-
color: var(--color-interactive-control);
|
|
153
|
-
}
|
|
154
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
155
|
-
color: var(--color-sentiment-negative);
|
|
156
|
-
}
|
|
157
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
158
|
-
color: var(--color-sentiment-negative-hover);
|
|
159
|
-
}
|
|
160
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
161
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
162
|
-
color: var(--color-sentiment-negative-active);
|
|
19
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
20
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
21
|
+
color: var(--color-sentiment-negative-primary);
|
|
163
22
|
}
|
|
164
|
-
.np-
|
|
165
|
-
|
|
23
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
24
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
25
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
166
26
|
}
|
|
167
|
-
.np-
|
|
168
|
-
.np-
|
|
169
|
-
color:
|
|
170
|
-
color: var(--color-interactive-control);
|
|
27
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
28
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
29
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
171
30
|
}
|
|
172
|
-
.np-
|
|
173
|
-
|
|
31
|
+
.np-circular-btn-disabled {
|
|
32
|
+
cursor: not-allowed;
|
|
174
33
|
}
|
package/build/styles/main.css
CHANGED
|
@@ -523,7 +523,7 @@ div.critical-comms .critical-comms-body {
|
|
|
523
523
|
margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
|
|
524
524
|
}
|
|
525
525
|
.np-avatar-layout-horizontal {
|
|
526
|
-
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset)
|
|
526
|
+
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset));
|
|
527
527
|
height: var(--np-avatar-layout-size);
|
|
528
528
|
}
|
|
529
529
|
.np-avatar-layout-horizontal-mask {
|
|
@@ -1184,175 +1184,34 @@ div.critical-comms .critical-comms-body {
|
|
|
1184
1184
|
display: inline-flex;
|
|
1185
1185
|
flex-direction: column;
|
|
1186
1186
|
align-items: center;
|
|
1187
|
-
text-align: center;
|
|
1188
1187
|
cursor: pointer;
|
|
1189
|
-
position: relative;
|
|
1190
|
-
}
|
|
1191
|
-
.np-circular-btn .tw-icon {
|
|
1192
|
-
position: absolute;
|
|
1193
|
-
top: 16px;
|
|
1194
|
-
top: var(--size-16);
|
|
1195
|
-
pointer-events: none;
|
|
1196
|
-
color: white;
|
|
1197
|
-
transition: color 0.15s ease-in-out;
|
|
1198
|
-
width: 100%;
|
|
1199
|
-
left: 0;
|
|
1200
|
-
}
|
|
1201
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
1202
|
-
right: 0;
|
|
1203
|
-
left: auto;
|
|
1204
|
-
left: initial;
|
|
1205
|
-
}
|
|
1206
|
-
@media (max-width: 320px) {
|
|
1207
|
-
.np-circular-btn .tw-icon {
|
|
1208
|
-
top: 12px;
|
|
1209
|
-
top: var(--size-12);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
.np-circular-btn .tw-icon > svg {
|
|
1213
|
-
margin: 0 auto;
|
|
1214
|
-
}
|
|
1215
|
-
.np-theme-personal .np-circular-btn {
|
|
1216
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1217
|
-
}
|
|
1218
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
1219
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
1220
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
1221
|
-
color: var(--color-interactive-control);
|
|
1222
|
-
}
|
|
1223
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
1224
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1225
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
1226
|
-
color: var(--color-contrast) !important;
|
|
1227
|
-
}
|
|
1228
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
1229
|
-
color: var(--color-sentiment-negative) !important;
|
|
1230
|
-
}
|
|
1231
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
1232
|
-
color: #00a2dd;
|
|
1233
|
-
color: var(--color-interactive-accent);
|
|
1234
|
-
}
|
|
1235
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1236
|
-
color: #008fc9;
|
|
1237
|
-
color: var(--color-interactive-accent-hover);
|
|
1238
|
-
}
|
|
1239
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
1240
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1241
|
-
color: #0081ba;
|
|
1242
|
-
color: var(--color-interactive-accent-active);
|
|
1243
|
-
}
|
|
1244
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
1245
|
-
color: #00a2dd;
|
|
1246
|
-
color: var(--color-interactive-accent);
|
|
1247
|
-
}
|
|
1248
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1249
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1250
|
-
color: white;
|
|
1251
|
-
}
|
|
1252
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
1253
|
-
color: #2ead4b;
|
|
1254
|
-
color: var(--color-interactive-positive);
|
|
1255
|
-
}
|
|
1256
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1257
|
-
color: #069939;
|
|
1258
|
-
color: var(--color-interactive-positive-hover);
|
|
1259
|
-
}
|
|
1260
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
1261
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1262
|
-
color: #008b2b;
|
|
1263
|
-
color: var(--color-interactive-positive-active);
|
|
1264
|
-
}
|
|
1265
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
1266
|
-
color: #2ead4b;
|
|
1267
|
-
color: var(--color-interactive-positive);
|
|
1268
1188
|
}
|
|
1269
|
-
.np-circular-btn
|
|
1270
|
-
.np-circular-btn
|
|
1271
|
-
color: white;
|
|
1272
|
-
}
|
|
1273
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
1274
|
-
color: #e74848;
|
|
1275
|
-
color: var(--color-interactive-negative);
|
|
1276
|
-
}
|
|
1277
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1278
|
-
color: #d03238;
|
|
1279
|
-
color: var(--color-interactive-negative-hover);
|
|
1280
|
-
}
|
|
1281
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
1282
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1283
|
-
color: #bf1e2c;
|
|
1284
|
-
color: var(--color-interactive-negative-active);
|
|
1285
|
-
}
|
|
1286
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
1287
|
-
color: #e74848;
|
|
1288
|
-
color: var(--color-interactive-negative);
|
|
1289
|
-
}
|
|
1290
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1291
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1292
|
-
color: white;
|
|
1293
|
-
}
|
|
1294
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
1189
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
1190
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
1295
1191
|
color: var(--color-interactive-primary);
|
|
1296
1192
|
}
|
|
1297
|
-
.np-
|
|
1193
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1194
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1298
1195
|
color: var(--color-interactive-primary-hover);
|
|
1299
1196
|
}
|
|
1300
|
-
.np-
|
|
1301
|
-
.np-
|
|
1197
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1198
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1302
1199
|
color: var(--color-interactive-primary-active);
|
|
1303
1200
|
}
|
|
1304
|
-
.np-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1308
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1309
|
-
color: white;
|
|
1310
|
-
color: var(--color-interactive-control);
|
|
1311
|
-
}
|
|
1312
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
1313
|
-
color: var(--color-interactive-control);
|
|
1314
|
-
}
|
|
1315
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
1316
|
-
color: var(--color-interactive-primary);
|
|
1317
|
-
}
|
|
1318
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1319
|
-
color: var(--color-interactive-primary-hover);
|
|
1320
|
-
}
|
|
1321
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
1322
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1323
|
-
color: var(--color-interactive-primary-active);
|
|
1324
|
-
}
|
|
1325
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
1326
|
-
color: var(--color-interactive-primary);
|
|
1327
|
-
}
|
|
1328
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1329
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1330
|
-
color: white;
|
|
1331
|
-
color: var(--color-interactive-control);
|
|
1332
|
-
}
|
|
1333
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
1334
|
-
color: var(--color-interactive-control);
|
|
1335
|
-
}
|
|
1336
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
1337
|
-
color: var(--color-sentiment-negative);
|
|
1338
|
-
}
|
|
1339
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1340
|
-
color: var(--color-sentiment-negative-hover);
|
|
1341
|
-
}
|
|
1342
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
1343
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1344
|
-
color: var(--color-sentiment-negative-active);
|
|
1201
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
1202
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
1203
|
+
color: var(--color-sentiment-negative-primary);
|
|
1345
1204
|
}
|
|
1346
|
-
.np-
|
|
1347
|
-
|
|
1205
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1206
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1207
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
1348
1208
|
}
|
|
1349
|
-
.np-
|
|
1350
|
-
.np-
|
|
1351
|
-
color:
|
|
1352
|
-
color: var(--color-interactive-control);
|
|
1209
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1210
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1211
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
1353
1212
|
}
|
|
1354
|
-
.np-
|
|
1355
|
-
|
|
1213
|
+
.np-circular-btn-disabled {
|
|
1214
|
+
cursor: not-allowed;
|
|
1356
1215
|
}
|
|
1357
1216
|
.np-circle {
|
|
1358
1217
|
border-radius: 9999px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarLayout.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/AvatarLayout.tsx"],"names":[],"mappings":"AACA,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,KAAK,gBAAgB,GAAG;IAAE,KAAK,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;CAAE,GAAG,IAAI,CACpE,eAAe,EACf,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAC5E,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,GAAG,IAAI,CACN,eAAe,EACf,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACjG,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAY,EACZ,WAAW,EAAE,eAA8B,EAC3C,IAAS,EACT,SAAS,EACT,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"AvatarLayout.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/AvatarLayout.tsx"],"names":[],"mappings":"AACA,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,KA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MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,QAAQ,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;CAC3E,GAAG,IAAI,CACN,cAAc,CAAC,cAAc,CAAC,EAC9B,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACrF,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,QAAoB,EACpB,IAAS,EACT,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,WAAmB,EACnB,SAAS,EACT,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,+BAkCP;AAmGD,eAAe,UAAU,CAAC"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { ControlType, Priority } from '../common';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use `'default'` instead
|
|
4
|
+
*/
|
|
5
|
+
type DeprecatedTypes = `${ControlType.ACCENT | ControlType.POSITIVE}`;
|
|
2
6
|
export interface CircularButtonProps {
|
|
3
7
|
className?: string;
|
|
4
8
|
children: string;
|
|
5
9
|
disabled?: boolean;
|
|
6
10
|
icon: React.ReactElement<{
|
|
7
11
|
size?: unknown;
|
|
8
|
-
}
|
|
9
|
-
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
12
|
+
}> | React.ReactNode;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLInputElement> & React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLAnchorElement>;
|
|
10
14
|
priority?: `${Priority.PRIMARY | Priority.SECONDARY}`;
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* `"accent"` and `"positive"` values are **deprecated**, please use `"default"` instead
|
|
17
|
+
*/
|
|
18
|
+
type?: DeprecatedTypes | 'default' | `${ControlType.NEGATIVE}`;
|
|
12
19
|
}
|
|
13
|
-
declare const CircularButton: ({ className, children, disabled, icon, priority, type,
|
|
20
|
+
declare const CircularButton: ({ className, children, disabled, icon, onClick, priority, type, }: CircularButtonProps) => import("react").JSX.Element;
|
|
14
21
|
export default CircularButton;
|
|
15
22
|
//# sourceMappingURL=CircularButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,QAAQ,EAAc,MAAM,WAAW,CAAC;AAI1E;;GAEG;AACH,KAAK,eAAe,GAAG,GAAG,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GACjD,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAC1C,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,GAAG,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;CAChE;AAED,QAAA,MAAM,cAAc,sEAQjB,mBAAmB,gCA8BrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -8,12 +8,11 @@ export interface DefinitionListDefinition {
|
|
|
8
8
|
value: React.ReactNode;
|
|
9
9
|
key: string;
|
|
10
10
|
}
|
|
11
|
-
type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
11
|
+
export type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
12
12
|
export interface DefinitionListProps {
|
|
13
13
|
definitions?: DefinitionListDefinition[];
|
|
14
14
|
layout?: DefinitionListLayout;
|
|
15
15
|
muted?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export default function DefinitionList({ definitions, layout, muted, }: DefinitionListProps): import("react").JSX.Element;
|
|
18
|
-
export {};
|
|
19
18
|
//# sourceMappingURL=DefinitionList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,
|
|
1
|
+
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,oBAAoB,GAC9B,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,GAAG,MAAM,CAAC,wBAAwB,EAAE,CAAC;AAEhK,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAoCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,WAAgC,EAChC,MAA8B,EAC9B,KAAK,GACN,EAAE,mBAAmB,+BAmCrB"}
|
|
@@ -38,7 +38,7 @@ export interface MoneyInputProps extends WrappedComponentProps {
|
|
|
38
38
|
classNames?: Record<string, string>;
|
|
39
39
|
selectProps?: Partial<SelectInputProps<CurrencyOptionItem>>;
|
|
40
40
|
}
|
|
41
|
-
type MoneyInputPropsWithInputAttributes = MoneyInputProps & Partial<WithInputAttributesProps>;
|
|
41
|
+
export type MoneyInputPropsWithInputAttributes = MoneyInputProps & Partial<WithInputAttributesProps>;
|
|
42
42
|
declare const _default: import("react").FC<import("react-intl").WithIntlProps<Omit<MoneyInputPropsWithInputAttributes, "inputAttributes"> & {
|
|
43
43
|
id?: string;
|
|
44
44
|
}>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/moneyInput/MoneyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE/D,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAuB,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEnF,OAAO,EAKL,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAO/B,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;AA0CnE,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,SAAS,YAAY,EAAE,CAAC;IACpC,gBAAgB,EAAE,kBAAkB,CAAC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,CAAC,wBAAwB,CAAC,CAAC;;;;;;;;AAkZpC,wBAA2F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.
|
|
3
|
+
"version": "46.86.1",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"rollup-preserve-directives": "^1.1.1",
|
|
93
93
|
"storybook": "^8.2.2",
|
|
94
94
|
"@transferwise/neptune-css": "14.20.1",
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
95
|
+
"@transferwise/less-config": "3.1.0",
|
|
96
|
+
"@wise/components-theming": "1.6.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@transferwise/icons": "^3.13.1",
|
|
@@ -7,6 +7,9 @@ import { storyConfig } from '../test-utils';
|
|
|
7
7
|
|
|
8
8
|
import Avatar, { AvatarType } from '.';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use **`AvatarView`** components instead
|
|
12
|
+
*/
|
|
10
13
|
export default {
|
|
11
14
|
component: Avatar,
|
|
12
15
|
title: 'Content/Avatar',
|
|
@@ -45,7 +48,7 @@ export const Table: Story = storyConfig(
|
|
|
45
48
|
const backgroundColor = '#d6f5e3';
|
|
46
49
|
const emoji = '✈️';
|
|
47
50
|
const initials = 'GN';
|
|
48
|
-
const Icon = wiseIcons
|
|
51
|
+
const Icon = wiseIcons.Check;
|
|
49
52
|
|
|
50
53
|
return (
|
|
51
54
|
<div>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
|
|
17
17
|
}
|
|
18
18
|
.np-avatar-layout-horizontal {
|
|
19
|
-
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset)
|
|
19
|
+
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset));
|
|
20
20
|
height: var(--np-avatar-layout-size);
|
|
21
21
|
}
|
|
22
22
|
.np-avatar-layout-horizontal-mask {
|
|
@@ -197,8 +197,10 @@ export const EdgeInstances: Story = {
|
|
|
197
197
|
<AvatarLayout orientation="diagonal" avatars={[{}]} />
|
|
198
198
|
|
|
199
199
|
<AvatarLayout orientation="diagonal" avatars={[{ profileName: 'Jay Jay' }]} />
|
|
200
|
+
<AvatarLayout orientation="diagonal" size={16} avatars={[{ profileName: 'Jay Jay' }]} />
|
|
200
201
|
|
|
201
202
|
<AvatarLayout orientation="diagonal" avatars={[{ asset: <Flag code="gb" /> }]} />
|
|
203
|
+
<AvatarLayout orientation="diagonal" size={24} avatars={[{ asset: <Flag code="gb" /> }]} />
|
|
202
204
|
|
|
203
205
|
<AvatarLayout
|
|
204
206
|
orientation="diagonal"
|
|
@@ -27,7 +27,9 @@ export default function AvatarLayout({
|
|
|
27
27
|
const isDiagonal = orientation === 'diagonal';
|
|
28
28
|
const avatarSize = isDiagonal ? DIAGONAL_LAYOUT_STYLE_CONFIG[size]?.avatarSize : size;
|
|
29
29
|
return avatars.length < 1 ? null : avatars.length === 1 ? (
|
|
30
|
-
<AvatarView {...avatars[0]}
|
|
30
|
+
<AvatarView {...avatars[0]} size={size}>
|
|
31
|
+
{avatars[0].asset}
|
|
32
|
+
</AvatarView>
|
|
31
33
|
) : (
|
|
32
34
|
<div
|
|
33
35
|
className={clsx('np-avatar-layout', `np-avatar-layout-${orientation}`, className)}
|
|
@@ -85,9 +87,9 @@ const DIAGONAL_LAYOUT_STYLE_CONFIG = {
|
|
|
85
87
|
const HORIZONTAL_LAYOUT_OFFSET = {
|
|
86
88
|
16: 2,
|
|
87
89
|
24: 2,
|
|
88
|
-
32:
|
|
90
|
+
32: 7,
|
|
89
91
|
40: 4,
|
|
90
92
|
48: 4,
|
|
91
|
-
56:
|
|
92
|
-
72:
|
|
93
|
+
56: 6,
|
|
94
|
+
72: 8,
|
|
93
95
|
};
|
|
@@ -69,7 +69,10 @@ function AvatarView({
|
|
|
69
69
|
className={clsx('np-avatar-view-content')}
|
|
70
70
|
enableBorder={!interactive || selected}
|
|
71
71
|
style={{
|
|
72
|
-
...(selected && {
|
|
72
|
+
...(selected && {
|
|
73
|
+
'--circle-border-color': 'var(--color-interactive-primary)',
|
|
74
|
+
'--circle-border-width': `${MAP_SELECTED_BORDER_WIDTH[size]}px`,
|
|
75
|
+
}),
|
|
73
76
|
...style,
|
|
74
77
|
}}
|
|
75
78
|
>
|
|
@@ -93,6 +96,17 @@ const MAP_BADGE_ASSET_SIZE = {
|
|
|
93
96
|
72: 24,
|
|
94
97
|
} satisfies Record<number, BadgeAssetsProps['size']>;
|
|
95
98
|
|
|
99
|
+
/** Border width for `selected` state determined by avatar size */
|
|
100
|
+
const MAP_SELECTED_BORDER_WIDTH = {
|
|
101
|
+
16: 1,
|
|
102
|
+
24: 1,
|
|
103
|
+
32: 1,
|
|
104
|
+
40: 2,
|
|
105
|
+
48: 2,
|
|
106
|
+
56: 2,
|
|
107
|
+
72: 2,
|
|
108
|
+
};
|
|
109
|
+
|
|
96
110
|
/** Certain sizes of AvatarView has a custom offset for badge */
|
|
97
111
|
const MAP_BADGE_POSITION = {
|
|
98
112
|
24: -6,
|
|
@@ -4,7 +4,11 @@ import { ProfileType, Sentiment } from '../common';
|
|
|
4
4
|
|
|
5
5
|
import AvatarWrapper from './AvatarWrapper';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use **`AvatarView`** components instead
|
|
9
|
+
*/
|
|
7
10
|
export default {
|
|
11
|
+
tags: ['autodocs'],
|
|
8
12
|
component: AvatarWrapper,
|
|
9
13
|
title: 'Content/AvatarWrapper',
|
|
10
14
|
} satisfies Meta<typeof AvatarWrapper>;
|
|
@@ -5,7 +5,11 @@ import { Size, Theme } from '../common';
|
|
|
5
5
|
|
|
6
6
|
import Badge from './Badge';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated use **`<AvatarView badge={..} />`** components instead
|
|
10
|
+
*/
|
|
8
11
|
export default {
|
|
12
|
+
tags: ['autodocs'],
|
|
9
13
|
component: Badge,
|
|
10
14
|
title: 'Content/Badge',
|
|
11
15
|
excludeStories: ['ExampleBadgeCss'],
|