@transferwise/components 46.87.1 → 46.88.0
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 +9 -2
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +9 -2
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/button/Button.js +92 -79
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +93 -80
- package/build/button/Button.mjs.map +1 -1
- package/build/button/Button.resolver.js +74 -0
- package/build/button/Button.resolver.js.map +1 -0
- package/build/button/Button.resolver.mjs +72 -0
- package/build/button/Button.resolver.mjs.map +1 -0
- package/build/button/LegacyButton.js +114 -0
- package/build/button/LegacyButton.js.map +1 -0
- package/build/button/LegacyButton.mjs +112 -0
- package/build/button/LegacyButton.mjs.map +1 -0
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +2 -2
- package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +1 -1
- package/build/header/Header.js +2 -2
- package/build/header/Header.js.map +1 -1
- package/build/header/Header.mjs +1 -1
- package/build/i18n/ja.json +1 -0
- package/build/i18n/ja.json.js +1 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +1 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pt.json +1 -0
- package/build/i18n/pt.json.js +1 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +1 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ru.json +1 -0
- package/build/i18n/ru.json.js +1 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +1 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +1 -0
- package/build/i18n/zh-HK.json.js +1 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +1 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/index.js +2 -2
- package/build/index.mjs +1 -1
- package/build/link/Link.js +8 -3
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.mjs +8 -3
- package/build/link/Link.mjs.map +1 -1
- package/build/main.css +247 -0
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js +2 -4
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.js.map +1 -1
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs +2 -4
- package/build/primitives/PrimitiveAnchor/src/PrimitiveAnchor.mjs.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js +3 -5
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.js.map +1 -1
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs +3 -5
- package/build/primitives/PrimitiveButton/src/PrimitiveButton.mjs.map +1 -1
- package/build/select/Select.js +2 -2
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +11 -0
- package/build/styles/button/Button.css +228 -15
- package/build/styles/button/Button.vars.css +46 -0
- package/build/styles/button/LegacyButton.css +23 -0
- package/build/styles/main.css +247 -0
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/button/Button.d.ts +2 -23
- package/build/types/button/Button.d.ts.map +1 -1
- package/build/types/button/Button.resolver.d.ts +35 -0
- package/build/types/button/Button.resolver.d.ts.map +1 -0
- package/build/types/button/Button.types.d.ts +70 -0
- package/build/types/button/Button.types.d.ts.map +1 -0
- package/build/types/button/LegacyButton.d.ts +44 -0
- package/build/types/button/LegacyButton.d.ts.map +1 -0
- package/build/types/button/index.d.ts +2 -2
- package/build/types/button/index.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/link/Link.d.ts +2 -2
- package/build/types/link/Link.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.d.ts +6 -2
- package/build/types/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.d.ts.map +1 -1
- package/build/types/primitives/PrimitiveButton/src/PrimitiveButton.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +1 -1
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +2 -2
- package/build/upload/steps/completeStep/completeStep.js.map +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +1 -1
- package/build/upload/steps/processingStep/processingStep.js +2 -2
- package/build/upload/steps/processingStep/processingStep.js.map +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +1 -1
- package/build/uploadInput/UploadInput.js +3 -3
- package/build/uploadInput/UploadInput.js.map +1 -1
- package/build/uploadInput/UploadInput.mjs +1 -1
- package/package.json +2 -2
- package/src/alert/Alert.tests.story.tsx +1 -1
- package/src/avatar/Avatar.story.tsx +1 -1
- package/src/avatarLayout/AvatarLayout.css +11 -0
- package/src/avatarLayout/AvatarLayout.less +18 -1
- package/src/avatarLayout/AvatarLayout.tsx +10 -2
- package/src/avatarWrapper/AvatarWrapper.story.tsx +1 -1
- package/src/badge/Badge.story.tsx +1 -1
- package/src/button/Button.accessibility.docs.mdx +103 -0
- package/src/button/Button.css +228 -15
- package/src/button/Button.less +242 -14
- package/src/button/Button.resolver.tsx +73 -0
- package/src/button/Button.spec.tsx +329 -213
- package/src/button/Button.story.tsx +782 -134
- package/src/button/Button.tests.story.tsx +27 -0
- package/src/button/Button.tsx +103 -132
- package/src/button/Button.types.ts +92 -0
- package/src/button/Button.vars.css +46 -0
- package/src/button/Button.vars.less +59 -0
- package/src/button/LegacyButton.css +23 -0
- package/src/button/LegacyButton.less +24 -0
- package/src/button/LegacyButton.spec.tsx +147 -0
- package/src/button/LegacyButton.story.tsx +228 -0
- package/src/button/LegacyButton.tsx +177 -0
- package/src/button/index.ts +2 -3
- package/src/card/Card.story.tsx +6 -1
- package/src/circularButton/CircularButton.tsx +1 -0
- package/src/field/Field.story.tsx +1 -1
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +1 -2
- package/src/i18n/ja.json +1 -0
- package/src/i18n/pt.json +1 -0
- package/src/i18n/ru.json +1 -0
- package/src/i18n/zh-HK.json +1 -0
- package/src/inputs/SelectInput.story.tsx +1 -1
- package/src/label/Label.story.tsx +1 -1
- package/src/link/Link.tsx +15 -6
- package/src/main.css +247 -0
- package/src/main.less +1 -0
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.tsx +2 -8
- package/src/primitives/PrimitiveAnchor/src/PrimitiveAnchor.types.ts +7 -2
- package/src/primitives/PrimitiveAnchor/test/PrimitiveAnchor.spec.tsx +1 -3
- package/src/primitives/PrimitiveButton/src/PrimitiveButton.tsx +4 -12
- package/src/primitives/PrimitiveButton/test/PrimitiveButton.spec.tsx +16 -13
- package/src/select/Select.story.tsx +4 -1
- package/src/test-utils/Parameters.d.ts +9 -1
- package/src/test-utils/story-config.ts +10 -1
- package/src/button/__snapshots__/Button.spec.tsx.snap +0 -309
|
@@ -1,23 +1,236 @@
|
|
|
1
|
-
.
|
|
1
|
+
.wds-Button {
|
|
2
|
+
--Button-background: var(--color-interactive-accent);
|
|
3
|
+
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
4
|
+
--Button-background-active: var(--color-interactive-accent-active);
|
|
5
|
+
--Button-color: var(--color-interactive-control);
|
|
6
|
+
--Button-border-radius: var(--radius-full);
|
|
7
|
+
--Button-label-gap: var(--size-4);
|
|
8
|
+
--Button-large-padding: var(--size-12) var(--size-16);
|
|
9
|
+
--Button-medium-padding: var(--size-8) var(--size-12);
|
|
10
|
+
--Button-small-padding: var(--size-5) var(--size-12);
|
|
11
|
+
--Button-avatar-border-color: var(--color-border-neutral);
|
|
12
|
+
--Button-transition-duration: 150ms;
|
|
13
|
+
--Button-transition-easing: ease-in-out;
|
|
14
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
15
|
+
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
16
|
+
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
17
|
+
--Button-secondary-color: var(--color-interactive-primary);
|
|
18
|
+
--Button-secondary-neutral-background: var(--color-background-neutral);
|
|
19
|
+
--Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
|
|
20
|
+
--Button-secondary-neutral-background-active: var(--color-background-neutral-active);
|
|
21
|
+
--Button-secondary-neutral-color: var(--color-content-primary);
|
|
22
|
+
--Button-tertiary-background: transparent;
|
|
23
|
+
--Button-tertiary-background-hover: var(--color-background-screen-hover);
|
|
24
|
+
--Button-tertiary-background-active: var(--color-background-screen-active);
|
|
25
|
+
--Button-tertiary-color: var(--color-interactive-primary);
|
|
26
|
+
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
27
|
+
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
28
|
+
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
29
|
+
--Button-primary-negative-color: var(--color-contrast-overlay);
|
|
30
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
31
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
32
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
33
|
+
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
34
|
+
}
|
|
35
|
+
.np-theme-personal--bright-green .wds-Button {
|
|
36
|
+
--Button-primary-negative-color: var(--color-white);
|
|
37
|
+
--Button-secondary-color: var(--color-interactive-control);
|
|
38
|
+
--Button-secondary-negative-color: var(--color-white);
|
|
39
|
+
}
|
|
40
|
+
.np-theme-personal--forest-green .wds-Button {
|
|
41
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
42
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-primary);
|
|
43
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
44
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
45
|
+
--Button-secondary-negative-color: var(--color-contrast-overlay);
|
|
46
|
+
}
|
|
47
|
+
/* Button Styles */
|
|
48
|
+
.wds-Button {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
flex: none;
|
|
51
|
+
width: auto;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
vertical-align: middle;
|
|
55
|
+
text-align: center;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
word-wrap: break-word;
|
|
58
|
+
-webkit-appearance: none;
|
|
59
|
+
-moz-appearance: none;
|
|
60
|
+
appearance: none;
|
|
61
|
+
background-color: var(--Button-background);
|
|
62
|
+
border: none;
|
|
63
|
+
border-radius: var(--Button-border-radius);
|
|
64
|
+
color: var(--Button-color);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
67
|
+
}
|
|
68
|
+
.wds-Button,
|
|
69
|
+
.wds-Button:hover,
|
|
70
|
+
.wds-Button:active,
|
|
71
|
+
.wds-Button:focus {
|
|
72
|
+
-webkit-text-decoration: none;
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
color: var(--Button-color);
|
|
75
|
+
}
|
|
76
|
+
.wds-Button:hover {
|
|
77
|
+
background-color: var(--Button-background-hover);
|
|
78
|
+
}
|
|
79
|
+
.wds-Button:active {
|
|
80
|
+
background-color: var(--Button-background-active);
|
|
81
|
+
}
|
|
82
|
+
.wds-Button.wds-Button--disabled,
|
|
83
|
+
.wds-Button:disabled {
|
|
84
|
+
filter: none;
|
|
85
|
+
mix-blend-mode: luminosity;
|
|
86
|
+
opacity: 0.45;
|
|
87
|
+
cursor: not-allowed;
|
|
88
|
+
}
|
|
89
|
+
.wds-Button.wds-Button--disabled,
|
|
90
|
+
.wds-Button:disabled,
|
|
91
|
+
.wds-Button.wds-Button--disabled:hover,
|
|
92
|
+
.wds-Button:disabled:hover,
|
|
93
|
+
.wds-Button.wds-Button--disabled:active,
|
|
94
|
+
.wds-Button:disabled:active {
|
|
95
|
+
background-color: var(--Button-background);
|
|
96
|
+
}
|
|
97
|
+
.wds-Button--secondary {
|
|
98
|
+
--Button-background: var(--Button-secondary-background);
|
|
99
|
+
--Button-background-hover: var(--Button-secondary-background-hover);
|
|
100
|
+
--Button-background-active: var(--Button-secondary-background-active);
|
|
101
|
+
--Button-color: var(--Button-secondary-color);
|
|
102
|
+
}
|
|
103
|
+
.wds-Button--secondary-neutral {
|
|
104
|
+
--Button-background: var(--Button-secondary-neutral-background);
|
|
105
|
+
--Button-background-hover: var(--Button-secondary-neutral-background-hover);
|
|
106
|
+
--Button-background-active: var(--Button-secondary-neutral-background-active);
|
|
107
|
+
--Button-color: var(--Button-secondary-neutral-color);
|
|
108
|
+
}
|
|
109
|
+
.wds-Button--secondary-neutral .wds-Button-icon--end {
|
|
110
|
+
color: var(--color-interactive-primary);
|
|
111
|
+
}
|
|
112
|
+
.wds-Button--tertiary {
|
|
113
|
+
--Button-background: var(--Button-tertiary-background);
|
|
114
|
+
--Button-background-hover: var(--Button-tertiary-background-hover);
|
|
115
|
+
--Button-background-active: var(--Button-tertiary-background-active);
|
|
116
|
+
--Button-color: var(--Button-tertiary-color);
|
|
117
|
+
}
|
|
118
|
+
.wds-Button--tertiary .wds-Button-labelText,
|
|
119
|
+
.wds-Button--tertiary:hover .wds-Button-labelText,
|
|
120
|
+
.wds-Button--tertiary:active .wds-Button-labelText,
|
|
121
|
+
.wds-Button--tertiary:focus .wds-Button-labelText {
|
|
122
|
+
-webkit-text-decoration: underline;
|
|
123
|
+
text-decoration: underline;
|
|
124
|
+
text-underline-offset: 3px;
|
|
125
|
+
text-decoration-thickness: 1px;
|
|
126
|
+
}
|
|
127
|
+
.wds-Button--negative.wds-Button--primary {
|
|
128
|
+
--Button-background: var(--Button-primary-negative-background);
|
|
129
|
+
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
130
|
+
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
131
|
+
--Button-color: var(--Button-primary-negative-color);
|
|
132
|
+
}
|
|
133
|
+
.wds-Button--negative.wds-Button--secondary {
|
|
134
|
+
--Button-background: var(--Button-secondary-negative-background);
|
|
135
|
+
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
136
|
+
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
137
|
+
--Button-color: var(--Button-secondary-negative-color);
|
|
138
|
+
}
|
|
139
|
+
.wds-Button--large {
|
|
140
|
+
padding: var(--Button-large-padding);
|
|
141
|
+
}
|
|
142
|
+
.wds-Button--medium {
|
|
143
|
+
padding: var(--Button-medium-padding);
|
|
144
|
+
}
|
|
145
|
+
.wds-Button--medium:has(.wds-Button-avatars) {
|
|
146
|
+
padding-inline-start: 8px;
|
|
147
|
+
padding-inline-start: var(--size-8);
|
|
148
|
+
}
|
|
149
|
+
.wds-Button--medium:has(.wds-Button-icon--end) {
|
|
150
|
+
padding-inline-end: 8px;
|
|
151
|
+
padding-inline-end: var(--size-8);
|
|
152
|
+
}
|
|
153
|
+
.wds-Button--medium .wds-Button-icon--start {
|
|
154
|
+
margin-inline-end: var(--Button-label-gap);
|
|
155
|
+
}
|
|
156
|
+
.wds-Button--small {
|
|
157
|
+
padding: var(--Button-small-padding);
|
|
158
|
+
}
|
|
159
|
+
.wds-Button--small:has(.wds-Button-icon--start) {
|
|
160
|
+
padding-inline-start: 8px;
|
|
161
|
+
padding-inline-start: var(--size-8);
|
|
162
|
+
}
|
|
163
|
+
.wds-Button--small:has(.wds-Button-icon--end) {
|
|
164
|
+
padding-inline-end: 8px;
|
|
165
|
+
padding-inline-end: var(--size-8);
|
|
166
|
+
}
|
|
167
|
+
.wds-Button--block {
|
|
168
|
+
width: 100%;
|
|
169
|
+
}
|
|
170
|
+
.wds-Button-avatars {
|
|
171
|
+
display: inline-flex;
|
|
172
|
+
}
|
|
173
|
+
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
174
|
+
color: var(--Button-color);
|
|
175
|
+
}
|
|
176
|
+
.wds-Button-icon {
|
|
177
|
+
display: inline-block;
|
|
178
|
+
}
|
|
179
|
+
.wds-Button-icon--md {
|
|
180
|
+
--Button-iconSize: calc(var(--size-10) + var(--size-8));
|
|
181
|
+
}
|
|
182
|
+
.wds-Button-icon--sm {
|
|
183
|
+
--Button-iconSize: var(--size-16);
|
|
184
|
+
}
|
|
185
|
+
.wds-Button-icon svg {
|
|
186
|
+
width: var(--Button-iconSize);
|
|
187
|
+
height: var(--Button-iconSize);
|
|
188
|
+
}
|
|
189
|
+
.wds-Button-content {
|
|
2
190
|
position: relative;
|
|
3
191
|
}
|
|
4
|
-
.
|
|
192
|
+
.wds-Button-content--loading .wds-Button-label,
|
|
193
|
+
.wds-Button-content--loading .wds-Button-media,
|
|
194
|
+
.wds-Button-content--loading .wds-Button-icon {
|
|
195
|
+
visibility: hidden;
|
|
196
|
+
opacity: 0;
|
|
197
|
+
}
|
|
198
|
+
.wds-Button-label {
|
|
199
|
+
display: flex;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
align-items: center;
|
|
202
|
+
gap: var(--Button-label-gap);
|
|
203
|
+
position: relative;
|
|
204
|
+
}
|
|
205
|
+
.wds-Button-loader {
|
|
5
206
|
position: absolute;
|
|
6
|
-
|
|
7
|
-
|
|
207
|
+
width: 100%;
|
|
208
|
+
height: 100%;
|
|
209
|
+
}
|
|
210
|
+
.wds-Button-loader .process-circle {
|
|
211
|
+
stroke: var(--Button-color);
|
|
212
|
+
}
|
|
213
|
+
/* Avatar border transparency */
|
|
214
|
+
/* dark buttons get 20% transparency, light buttons get 12% */
|
|
215
|
+
.wds-Button-avatars .np-circle {
|
|
216
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 20%, transparent);
|
|
8
217
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
218
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
219
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary .wds-Button-avatars .np-circle,
|
|
220
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary-neutral .wds-Button-avatars .np-circle,
|
|
221
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--tertiary .wds-Button-avatars .np-circle {
|
|
222
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
14
223
|
}
|
|
15
|
-
.np-
|
|
16
|
-
|
|
224
|
+
.np-theme-personal--dark .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
225
|
+
.np-theme-personal--dark .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
226
|
+
.np-theme-personal--forest-green .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
227
|
+
.np-theme-personal--forest-green .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle {
|
|
228
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
17
229
|
}
|
|
18
|
-
.np-
|
|
19
|
-
|
|
230
|
+
.np-theme-personal--bright-green .wds-Button--tertiary .wds-Button-avatars .np-circle,
|
|
231
|
+
.np-theme-personal--bright-green .wds-Button--secondary-neutral .wds-Button-avatars .np-circle {
|
|
232
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
20
233
|
}
|
|
21
|
-
.
|
|
22
|
-
|
|
234
|
+
[dir="rtl"] .wds-Button .tw-icon-chevron-right,[dir="rtl"] .wds-Button .tw-icon-arrow-right,[dir="rtl"] .wds-Button .tw-icon-chevron-left,[dir="rtl"] .wds-Button .tw-icon-arrow-left,[dir="rtl"] .wds-Button .tw-icon-arrow-diagonal-down,[dir="rtl"] .wds-Button .tw-icon-arrow-diagonal-up,[dir="rtl"] .wds-Button .tw-icon-list,[dir="rtl"] .wds-Button .tw-icon-activity {
|
|
235
|
+
scale: -1 1;
|
|
23
236
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.wds-Button {
|
|
2
|
+
--Button-background: var(--color-interactive-accent);
|
|
3
|
+
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
4
|
+
--Button-background-active: var(--color-interactive-accent-active);
|
|
5
|
+
--Button-color: var(--color-interactive-control);
|
|
6
|
+
--Button-border-radius: var(--radius-full);
|
|
7
|
+
--Button-label-gap: var(--size-4);
|
|
8
|
+
--Button-large-padding: var(--size-12) var(--size-16);
|
|
9
|
+
--Button-medium-padding: var(--size-8) var(--size-12);
|
|
10
|
+
--Button-small-padding: var(--size-5) var(--size-12);
|
|
11
|
+
--Button-avatar-border-color: var(--color-border-neutral);
|
|
12
|
+
--Button-transition-duration: 150ms;
|
|
13
|
+
--Button-transition-easing: ease-in-out;
|
|
14
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
15
|
+
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
16
|
+
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
17
|
+
--Button-secondary-color: var(--color-interactive-primary);
|
|
18
|
+
--Button-secondary-neutral-background: var(--color-background-neutral);
|
|
19
|
+
--Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
|
|
20
|
+
--Button-secondary-neutral-background-active: var(--color-background-neutral-active);
|
|
21
|
+
--Button-secondary-neutral-color: var(--color-content-primary);
|
|
22
|
+
--Button-tertiary-background: transparent;
|
|
23
|
+
--Button-tertiary-background-hover: var(--color-background-screen-hover);
|
|
24
|
+
--Button-tertiary-background-active: var(--color-background-screen-active);
|
|
25
|
+
--Button-tertiary-color: var(--color-interactive-primary);
|
|
26
|
+
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
27
|
+
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
28
|
+
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
29
|
+
--Button-primary-negative-color: var(--color-contrast-overlay);
|
|
30
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
31
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
32
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
33
|
+
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
34
|
+
}
|
|
35
|
+
.np-theme-personal--bright-green .wds-Button {
|
|
36
|
+
--Button-primary-negative-color: var(--color-white);
|
|
37
|
+
--Button-secondary-color: var(--color-interactive-control);
|
|
38
|
+
--Button-secondary-negative-color: var(--color-white);
|
|
39
|
+
}
|
|
40
|
+
.np-theme-personal--forest-green .wds-Button {
|
|
41
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
42
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-primary);
|
|
43
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
44
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
45
|
+
--Button-secondary-negative-color: var(--color-contrast-overlay);
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
21
|
+
.np-btn.disabled[class] {
|
|
22
|
+
pointer-events: auto;
|
|
23
|
+
}
|
package/build/styles/main.css
CHANGED
|
@@ -518,10 +518,18 @@ div.critical-comms .critical-comms-body {
|
|
|
518
518
|
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
519
519
|
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
520
520
|
}
|
|
521
|
+
[dir="rtl"] .np-avatar-layout-diagonal-mask {
|
|
522
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) left calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
523
|
+
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) left calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
524
|
+
}
|
|
521
525
|
.np-avatar-layout-diagonal-child {
|
|
522
526
|
margin-left: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
|
|
523
527
|
margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
|
|
524
528
|
}
|
|
529
|
+
[dir="rtl"] .np-avatar-layout-diagonal-child {
|
|
530
|
+
margin-left: 0;
|
|
531
|
+
margin-right: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
|
|
532
|
+
}
|
|
525
533
|
.np-avatar-layout-horizontal {
|
|
526
534
|
width: calc(var(--np-avatar-size) * var(--np-avatar-avatars-count) - (var(--np-avatar-offset) * (var(--np-avatar-avatars-count) - 1)));
|
|
527
535
|
width: calc(var(--np-avatar-size) * var(--np-avatar-avatars-count) - calc(var(--np-avatar-offset) * calc(var(--np-avatar-avatars-count) - 1)));
|
|
@@ -536,6 +544,9 @@ div.critical-comms .critical-comms-body {
|
|
|
536
544
|
.np-avatar-layout-horizontal-child {
|
|
537
545
|
margin-left: calc(var(--np-avatar-offset) * -1);
|
|
538
546
|
}
|
|
547
|
+
[dir="rtl"] .np-avatar-layout-horizontal-child {
|
|
548
|
+
margin-right: calc(var(--np-avatar-offset) * -1);
|
|
549
|
+
}
|
|
539
550
|
.np-icon-button {
|
|
540
551
|
border: none;
|
|
541
552
|
}
|
|
@@ -706,6 +717,242 @@ div.critical-comms .critical-comms-body {
|
|
|
706
717
|
.np-btn.disabled[class] {
|
|
707
718
|
pointer-events: auto;
|
|
708
719
|
}
|
|
720
|
+
.wds-Button {
|
|
721
|
+
--Button-background: var(--color-interactive-accent);
|
|
722
|
+
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
723
|
+
--Button-background-active: var(--color-interactive-accent-active);
|
|
724
|
+
--Button-color: var(--color-interactive-control);
|
|
725
|
+
--Button-border-radius: var(--radius-full);
|
|
726
|
+
--Button-label-gap: var(--size-4);
|
|
727
|
+
--Button-large-padding: var(--size-12) var(--size-16);
|
|
728
|
+
--Button-medium-padding: var(--size-8) var(--size-12);
|
|
729
|
+
--Button-small-padding: var(--size-5) var(--size-12);
|
|
730
|
+
--Button-avatar-border-color: var(--color-border-neutral);
|
|
731
|
+
--Button-transition-duration: 150ms;
|
|
732
|
+
--Button-transition-easing: ease-in-out;
|
|
733
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
734
|
+
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
735
|
+
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
736
|
+
--Button-secondary-color: var(--color-interactive-primary);
|
|
737
|
+
--Button-secondary-neutral-background: var(--color-background-neutral);
|
|
738
|
+
--Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
|
|
739
|
+
--Button-secondary-neutral-background-active: var(--color-background-neutral-active);
|
|
740
|
+
--Button-secondary-neutral-color: var(--color-content-primary);
|
|
741
|
+
--Button-tertiary-background: transparent;
|
|
742
|
+
--Button-tertiary-background-hover: var(--color-background-screen-hover);
|
|
743
|
+
--Button-tertiary-background-active: var(--color-background-screen-active);
|
|
744
|
+
--Button-tertiary-color: var(--color-interactive-primary);
|
|
745
|
+
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
746
|
+
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
747
|
+
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
748
|
+
--Button-primary-negative-color: var(--color-contrast-overlay);
|
|
749
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
750
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
751
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
752
|
+
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
753
|
+
}
|
|
754
|
+
.np-theme-personal--bright-green .wds-Button {
|
|
755
|
+
--Button-primary-negative-color: var(--color-white);
|
|
756
|
+
--Button-secondary-color: var(--color-interactive-control);
|
|
757
|
+
--Button-secondary-negative-color: var(--color-white);
|
|
758
|
+
}
|
|
759
|
+
.np-theme-personal--forest-green .wds-Button {
|
|
760
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
761
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-primary);
|
|
762
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
763
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
764
|
+
--Button-secondary-negative-color: var(--color-contrast-overlay);
|
|
765
|
+
}
|
|
766
|
+
/* Button Styles */
|
|
767
|
+
.wds-Button {
|
|
768
|
+
display: inline-flex;
|
|
769
|
+
flex: none;
|
|
770
|
+
width: auto;
|
|
771
|
+
align-items: center;
|
|
772
|
+
justify-content: center;
|
|
773
|
+
vertical-align: middle;
|
|
774
|
+
text-align: center;
|
|
775
|
+
white-space: nowrap;
|
|
776
|
+
word-wrap: break-word;
|
|
777
|
+
-webkit-appearance: none;
|
|
778
|
+
-moz-appearance: none;
|
|
779
|
+
appearance: none;
|
|
780
|
+
background-color: var(--Button-background);
|
|
781
|
+
border: none;
|
|
782
|
+
border-radius: var(--Button-border-radius);
|
|
783
|
+
color: var(--Button-color);
|
|
784
|
+
cursor: pointer;
|
|
785
|
+
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
786
|
+
}
|
|
787
|
+
.wds-Button,
|
|
788
|
+
.wds-Button:hover,
|
|
789
|
+
.wds-Button:active,
|
|
790
|
+
.wds-Button:focus {
|
|
791
|
+
-webkit-text-decoration: none;
|
|
792
|
+
text-decoration: none;
|
|
793
|
+
color: var(--Button-color);
|
|
794
|
+
}
|
|
795
|
+
.wds-Button:hover {
|
|
796
|
+
background-color: var(--Button-background-hover);
|
|
797
|
+
}
|
|
798
|
+
.wds-Button:active {
|
|
799
|
+
background-color: var(--Button-background-active);
|
|
800
|
+
}
|
|
801
|
+
.wds-Button.wds-Button--disabled,
|
|
802
|
+
.wds-Button:disabled {
|
|
803
|
+
filter: none;
|
|
804
|
+
mix-blend-mode: luminosity;
|
|
805
|
+
opacity: 0.45;
|
|
806
|
+
cursor: not-allowed;
|
|
807
|
+
}
|
|
808
|
+
.wds-Button.wds-Button--disabled,
|
|
809
|
+
.wds-Button:disabled,
|
|
810
|
+
.wds-Button.wds-Button--disabled:hover,
|
|
811
|
+
.wds-Button:disabled:hover,
|
|
812
|
+
.wds-Button.wds-Button--disabled:active,
|
|
813
|
+
.wds-Button:disabled:active {
|
|
814
|
+
background-color: var(--Button-background);
|
|
815
|
+
}
|
|
816
|
+
.wds-Button--secondary {
|
|
817
|
+
--Button-background: var(--Button-secondary-background);
|
|
818
|
+
--Button-background-hover: var(--Button-secondary-background-hover);
|
|
819
|
+
--Button-background-active: var(--Button-secondary-background-active);
|
|
820
|
+
--Button-color: var(--Button-secondary-color);
|
|
821
|
+
}
|
|
822
|
+
.wds-Button--secondary-neutral {
|
|
823
|
+
--Button-background: var(--Button-secondary-neutral-background);
|
|
824
|
+
--Button-background-hover: var(--Button-secondary-neutral-background-hover);
|
|
825
|
+
--Button-background-active: var(--Button-secondary-neutral-background-active);
|
|
826
|
+
--Button-color: var(--Button-secondary-neutral-color);
|
|
827
|
+
}
|
|
828
|
+
.wds-Button--secondary-neutral .wds-Button-icon--end {
|
|
829
|
+
color: var(--color-interactive-primary);
|
|
830
|
+
}
|
|
831
|
+
.wds-Button--tertiary {
|
|
832
|
+
--Button-background: var(--Button-tertiary-background);
|
|
833
|
+
--Button-background-hover: var(--Button-tertiary-background-hover);
|
|
834
|
+
--Button-background-active: var(--Button-tertiary-background-active);
|
|
835
|
+
--Button-color: var(--Button-tertiary-color);
|
|
836
|
+
}
|
|
837
|
+
.wds-Button--tertiary .wds-Button-labelText,
|
|
838
|
+
.wds-Button--tertiary:hover .wds-Button-labelText,
|
|
839
|
+
.wds-Button--tertiary:active .wds-Button-labelText,
|
|
840
|
+
.wds-Button--tertiary:focus .wds-Button-labelText {
|
|
841
|
+
-webkit-text-decoration: underline;
|
|
842
|
+
text-decoration: underline;
|
|
843
|
+
text-underline-offset: 3px;
|
|
844
|
+
text-decoration-thickness: 1px;
|
|
845
|
+
}
|
|
846
|
+
.wds-Button--negative.wds-Button--primary {
|
|
847
|
+
--Button-background: var(--Button-primary-negative-background);
|
|
848
|
+
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
849
|
+
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
850
|
+
--Button-color: var(--Button-primary-negative-color);
|
|
851
|
+
}
|
|
852
|
+
.wds-Button--negative.wds-Button--secondary {
|
|
853
|
+
--Button-background: var(--Button-secondary-negative-background);
|
|
854
|
+
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
855
|
+
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
856
|
+
--Button-color: var(--Button-secondary-negative-color);
|
|
857
|
+
}
|
|
858
|
+
.wds-Button--large {
|
|
859
|
+
padding: var(--Button-large-padding);
|
|
860
|
+
}
|
|
861
|
+
.wds-Button--medium {
|
|
862
|
+
padding: var(--Button-medium-padding);
|
|
863
|
+
}
|
|
864
|
+
.wds-Button--medium:has(.wds-Button-avatars) {
|
|
865
|
+
padding-inline-start: 8px;
|
|
866
|
+
padding-inline-start: var(--size-8);
|
|
867
|
+
}
|
|
868
|
+
.wds-Button--medium:has(.wds-Button-icon--end) {
|
|
869
|
+
padding-inline-end: 8px;
|
|
870
|
+
padding-inline-end: var(--size-8);
|
|
871
|
+
}
|
|
872
|
+
.wds-Button--medium .wds-Button-icon--start {
|
|
873
|
+
margin-inline-end: var(--Button-label-gap);
|
|
874
|
+
}
|
|
875
|
+
.wds-Button--small {
|
|
876
|
+
padding: var(--Button-small-padding);
|
|
877
|
+
}
|
|
878
|
+
.wds-Button--small:has(.wds-Button-icon--start) {
|
|
879
|
+
padding-inline-start: 8px;
|
|
880
|
+
padding-inline-start: var(--size-8);
|
|
881
|
+
}
|
|
882
|
+
.wds-Button--small:has(.wds-Button-icon--end) {
|
|
883
|
+
padding-inline-end: 8px;
|
|
884
|
+
padding-inline-end: var(--size-8);
|
|
885
|
+
}
|
|
886
|
+
.wds-Button--block {
|
|
887
|
+
width: 100%;
|
|
888
|
+
}
|
|
889
|
+
.wds-Button-avatars {
|
|
890
|
+
display: inline-flex;
|
|
891
|
+
}
|
|
892
|
+
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
893
|
+
color: var(--Button-color);
|
|
894
|
+
}
|
|
895
|
+
.wds-Button-icon {
|
|
896
|
+
display: inline-block;
|
|
897
|
+
}
|
|
898
|
+
.wds-Button-icon--md {
|
|
899
|
+
--Button-iconSize: calc(var(--size-10) + var(--size-8));
|
|
900
|
+
}
|
|
901
|
+
.wds-Button-icon--sm {
|
|
902
|
+
--Button-iconSize: var(--size-16);
|
|
903
|
+
}
|
|
904
|
+
.wds-Button-icon svg {
|
|
905
|
+
width: var(--Button-iconSize);
|
|
906
|
+
height: var(--Button-iconSize);
|
|
907
|
+
}
|
|
908
|
+
.wds-Button-content {
|
|
909
|
+
position: relative;
|
|
910
|
+
}
|
|
911
|
+
.wds-Button-content--loading .wds-Button-label,
|
|
912
|
+
.wds-Button-content--loading .wds-Button-media,
|
|
913
|
+
.wds-Button-content--loading .wds-Button-icon {
|
|
914
|
+
visibility: hidden;
|
|
915
|
+
opacity: 0;
|
|
916
|
+
}
|
|
917
|
+
.wds-Button-label {
|
|
918
|
+
display: flex;
|
|
919
|
+
justify-content: center;
|
|
920
|
+
align-items: center;
|
|
921
|
+
gap: var(--Button-label-gap);
|
|
922
|
+
position: relative;
|
|
923
|
+
}
|
|
924
|
+
.wds-Button-loader {
|
|
925
|
+
position: absolute;
|
|
926
|
+
width: 100%;
|
|
927
|
+
height: 100%;
|
|
928
|
+
}
|
|
929
|
+
.wds-Button-loader .process-circle {
|
|
930
|
+
stroke: var(--Button-color);
|
|
931
|
+
}
|
|
932
|
+
/* Avatar border transparency */
|
|
933
|
+
/* dark buttons get 20% transparency, light buttons get 12% */
|
|
934
|
+
.wds-Button-avatars .np-circle {
|
|
935
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 20%, transparent);
|
|
936
|
+
}
|
|
937
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
938
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary .wds-Button-avatars .np-circle,
|
|
939
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--secondary-neutral .wds-Button-avatars .np-circle,
|
|
940
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--tertiary .wds-Button-avatars .np-circle {
|
|
941
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
942
|
+
}
|
|
943
|
+
.np-theme-personal--dark .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
944
|
+
.np-theme-personal--dark .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
945
|
+
.np-theme-personal--forest-green .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
946
|
+
.np-theme-personal--forest-green .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle {
|
|
947
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
948
|
+
}
|
|
949
|
+
.np-theme-personal--bright-green .wds-Button--tertiary .wds-Button-avatars .np-circle,
|
|
950
|
+
.np-theme-personal--bright-green .wds-Button--secondary-neutral .wds-Button-avatars .np-circle {
|
|
951
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
952
|
+
}
|
|
953
|
+
[dir="rtl"] .wds-Button .tw-icon-chevron-right,[dir="rtl"] .wds-Button .tw-icon-arrow-right,[dir="rtl"] .wds-Button .tw-icon-chevron-left,[dir="rtl"] .wds-Button .tw-icon-arrow-left,[dir="rtl"] .wds-Button .tw-icon-arrow-diagonal-down,[dir="rtl"] .wds-Button .tw-icon-arrow-diagonal-up,[dir="rtl"] .wds-Button .tw-icon-list,[dir="rtl"] .wds-Button .tw-icon-activity {
|
|
954
|
+
scale: -1 1;
|
|
955
|
+
}
|
|
709
956
|
.np-card {
|
|
710
957
|
overflow: hidden;
|
|
711
958
|
transition-property: transform, box-shadow;
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"AvatarLayout.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/AvatarLayout.tsx"],"names":[],"mappings":"AACA,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAG5D,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,sCAwDP"}
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type DeprecatedTypes = 'primary' | 'pay' | 'secondary' | 'danger' | 'link';
|
|
4
|
-
/** @deprecated */
|
|
5
|
-
type DeprecatedSizes = SizeExtraSmall;
|
|
6
|
-
type CommonProps = {
|
|
7
|
-
block?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
type?: ControlTypeAccent | ControlTypeNegative | ControlTypePositive | DeprecatedTypes | null;
|
|
11
|
-
priority?: PriorityPrimary | PrioritySecondary | PriorityTertiary | null;
|
|
12
|
-
size?: SizeSmall | SizeMedium | SizeLarge | DeprecatedSizes;
|
|
13
|
-
};
|
|
14
|
-
type ButtonProps = CommonProps & Omit<React.ComponentPropsWithRef<'button'>, 'type'> & {
|
|
15
|
-
as?: 'button';
|
|
16
|
-
htmlType?: 'submit' | 'reset' | 'button';
|
|
17
|
-
};
|
|
18
|
-
type AnchorProps = CommonProps & Omit<React.ComponentPropsWithRef<'a'>, 'type'> & {
|
|
19
|
-
as?: 'a';
|
|
20
|
-
};
|
|
21
|
-
export type Props = ButtonProps | AnchorProps;
|
|
22
|
-
export type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
|
|
23
|
-
declare const Button: import("react").ForwardRefExoticComponent<(Omit<ButtonProps, "ref"> | Omit<AnchorProps, "ref">) & import("react").RefAttributes<ButtonReferenceType>>;
|
|
1
|
+
import { ButtonReferenceType, ButtonProps as NewButtonProps } from './Button.types';
|
|
2
|
+
declare const Button: import("react").ForwardRefExoticComponent<NewButtonProps & import("react").RefAttributes<ButtonReferenceType>>;
|
|
24
3
|
export default Button;
|
|
25
4
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/button/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQpF,QAAA,MAAM,MAAM,gHAiHX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LegacyButtonProps } from './LegacyButton';
|
|
2
|
+
import { ButtonReferenceType, ButtonProps as NewButtonProps } from './Button.types';
|
|
3
|
+
export type ButtonProps = LegacyButtonProps | NewButtonProps;
|
|
4
|
+
declare const Button: import("react").ForwardRefExoticComponent<(NewButtonProps | Omit<{
|
|
5
|
+
v2?: false;
|
|
6
|
+
block?: boolean;
|
|
7
|
+
target?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
type?: import("../common").ControlTypeAccent | import("../common").ControlTypeNegative | import("../common").ControlTypePositive | ("link" | "primary" | "secondary" | "pay" | "danger") | null;
|
|
11
|
+
priority?: import("../common").PriorityPrimary | import("../common").PrioritySecondary | import("../common").PriorityTertiary | null;
|
|
12
|
+
size?: import("../common").SizeSmall | import("../common").SizeMedium | import("../common").SizeLarge | "xs";
|
|
13
|
+
htmlType?: "submit" | "reset" | "button";
|
|
14
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
16
|
+
}, "type"> & {
|
|
17
|
+
as?: "button";
|
|
18
|
+
}, "ref"> | Omit<{
|
|
19
|
+
v2?: false;
|
|
20
|
+
block?: boolean;
|
|
21
|
+
target?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
type?: import("../common").ControlTypeAccent | import("../common").ControlTypeNegative | import("../common").ControlTypePositive | ("link" | "primary" | "secondary" | "pay" | "danger") | null;
|
|
25
|
+
priority?: import("../common").PriorityPrimary | import("../common").PrioritySecondary | import("../common").PriorityTertiary | null;
|
|
26
|
+
size?: import("../common").SizeSmall | import("../common").SizeMedium | import("../common").SizeLarge | "xs";
|
|
27
|
+
htmlType?: "submit" | "reset" | "button";
|
|
28
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
29
|
+
ref?: ((instance: HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
|
|
30
|
+
}, "type"> & {
|
|
31
|
+
as?: "a";
|
|
32
|
+
href?: string;
|
|
33
|
+
}, "ref">) & import("react").RefAttributes<ButtonReferenceType>>;
|
|
34
|
+
export default Button;
|
|
35
|
+
//# sourceMappingURL=Button.resolver.d.ts.map
|