@transferwise/components 0.0.0-experimental-4c79cff → 0.0.0-experimental-28a3dd5
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 +10 -4
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +10 -4
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/button/Button.js +86 -79
- package/build/button/Button.js.map +1 -1
- package/build/button/Button.mjs +87 -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/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 +0 -1
- package/build/i18n/ja.json.js +0 -1
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +0 -1
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pt.json +0 -1
- package/build/i18n/pt.json.js +0 -1
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +0 -1
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ru.json +0 -1
- package/build/i18n/ru.json.js +0 -1
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +0 -1
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +0 -1
- package/build/i18n/zh-HK.json.js +0 -1
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +0 -1
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/index.js +2 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -2
- package/build/index.mjs.map +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 +227 -13
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- 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 +12 -2
- package/build/styles/button/Button.css +207 -15
- package/build/styles/button/Button.vars.css +46 -0
- package/build/styles/button/LegacyButton.css +23 -0
- package/build/styles/main.css +227 -13
- package/build/styles/nudge/Nudge.css +0 -11
- 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 +33 -0
- package/build/types/button/Button.resolver.d.ts.map +1 -0
- package/build/types/button/Button.types.d.ts +67 -0
- package/build/types/button/Button.types.d.ts.map +1 -0
- package/build/types/button/LegacyButton.d.ts +30 -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/index.d.ts +0 -2
- package/build/types/index.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/nudge/Nudge.d.ts +1 -1
- package/build/types/nudge/Nudge.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/types/uploadInput/uploadButton/getAllowedFileTypes.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/build/uploadInput/uploadButton/getAllowedFileTypes.js +3 -23
- package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +1 -1
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +3 -23
- package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +1 -1
- package/package.json +3 -3
- package/src/alert/Alert.tests.story.tsx +1 -1
- package/src/avatarLayout/AvatarLayout.css +12 -2
- package/src/avatarLayout/AvatarLayout.less +19 -2
- package/src/avatarLayout/AvatarLayout.tsx +10 -3
- package/src/button/Button.css +207 -15
- package/src/button/Button.less +214 -14
- package/src/button/Button.resolver.tsx +73 -0
- package/src/button/Button.spec.tsx +188 -224
- package/src/button/Button.story.tsx +701 -135
- package/src/button/Button.tests.story.tsx +27 -0
- package/src/button/Button.tsx +99 -131
- package/src/button/Button.types.ts +94 -0
- package/src/button/Button.vars.css +46 -0
- package/src/button/Button.vars.less +60 -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 +220 -0
- package/src/button/LegacyButton.tsx +160 -0
- package/src/button/index.ts +2 -3
- package/src/drawer/Drawer.rtl.spec.tsx +59 -0
- package/src/drawer/Drawer.spec.js +101 -0
- package/src/drawer/__snapshots__/Drawer.rtl.spec.tsx.snap +55 -0
- package/src/field/Field.story.tsx +1 -1
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +1 -2
- package/src/i18n/ja.json +0 -1
- package/src/i18n/pt.json +0 -1
- package/src/i18n/ru.json +0 -1
- package/src/i18n/zh-HK.json +0 -1
- package/src/index.ts +0 -12
- 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 +227 -13
- package/src/main.less +1 -0
- package/src/nudge/Nudge.css +0 -11
- package/src/nudge/Nudge.less +0 -3
- package/src/nudge/Nudge.story.tsx +0 -10
- package/src/nudge/Nudge.tsx +1 -2
- 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/test-utils/Parameters.d.ts +9 -1
- package/src/test-utils/story-config.ts +10 -1
- package/src/uploadInput/UploadInput.tests.story.tsx +5 -5
- package/src/uploadInput/uploadButton/getAllowedFileTypes.spec.ts +0 -12
- package/src/uploadInput/uploadButton/getAllowedFileTypes.ts +7 -33
- package/build/table/Table.js +0 -166
- package/build/table/Table.js.map +0 -1
- package/build/table/Table.messages.js +0 -24
- package/build/table/Table.messages.js.map +0 -1
- package/build/table/Table.messages.mjs +0 -22
- package/build/table/Table.messages.mjs.map +0 -1
- package/build/table/Table.mjs +0 -164
- package/build/table/Table.mjs.map +0 -1
- package/build/table/TableCell.js +0 -86
- package/build/table/TableCell.js.map +0 -1
- package/build/table/TableCell.mjs +0 -84
- package/build/table/TableCell.mjs.map +0 -1
- package/build/table/TableHeader.js +0 -57
- package/build/table/TableHeader.js.map +0 -1
- package/build/table/TableHeader.mjs +0 -55
- package/build/table/TableHeader.mjs.map +0 -1
- package/build/table/TableRow.js +0 -85
- package/build/table/TableRow.js.map +0 -1
- package/build/table/TableRow.mjs +0 -83
- package/build/table/TableRow.mjs.map +0 -1
- package/build/table/TableStatusText.js +0 -54
- package/build/table/TableStatusText.js.map +0 -1
- package/build/table/TableStatusText.mjs +0 -52
- package/build/table/TableStatusText.mjs.map +0 -1
- package/src/button/__snapshots__/Button.spec.tsx.snap +0 -309
- package/src/drawer/Drawer.spec.tsx +0 -93
|
@@ -1,23 +1,215 @@
|
|
|
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: calc(var(--size-10) * 0.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-tertiary-background: var(--color-background-neutral);
|
|
19
|
+
--Button-tertiary-background-hover: var(--color-background-neutral-hover);
|
|
20
|
+
--Button-tertiary-background-active: var(--color-background-neutral-active);
|
|
21
|
+
--Button-tertiary-color: var(--color-content-primary);
|
|
22
|
+
--Button-minimal-background: transparent;
|
|
23
|
+
--Button-minimal-background-hover: var(--color-background-screen-hover);
|
|
24
|
+
--Button-minimal-background-active: var(--color-background-screen-active);
|
|
25
|
+
--Button-minimal-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
|
+
-webkit-text-decoration: none;
|
|
57
|
+
text-decoration: none;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
word-wrap: break-word;
|
|
60
|
+
-webkit-appearance: none;
|
|
61
|
+
-moz-appearance: none;
|
|
62
|
+
appearance: none;
|
|
63
|
+
background-color: var(--Button-background);
|
|
64
|
+
border: none;
|
|
65
|
+
border-radius: var(--Button-border-radius);
|
|
66
|
+
color: var(--Button-color);
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
69
|
+
}
|
|
70
|
+
.wds-Button:hover {
|
|
71
|
+
background-color: var(--Button-background-hover);
|
|
72
|
+
}
|
|
73
|
+
.wds-Button:active {
|
|
74
|
+
background-color: var(--Button-background-active);
|
|
75
|
+
}
|
|
76
|
+
.wds-Button.wds-Button--disabled,
|
|
77
|
+
.wds-Button:disabled {
|
|
78
|
+
filter: none;
|
|
79
|
+
mix-blend-mode: luminosity;
|
|
80
|
+
opacity: 0.45;
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
}
|
|
83
|
+
.wds-Button.wds-Button--disabled,
|
|
84
|
+
.wds-Button:disabled,
|
|
85
|
+
.wds-Button.wds-Button--disabled:hover,
|
|
86
|
+
.wds-Button:disabled:hover,
|
|
87
|
+
.wds-Button.wds-Button--disabled:active,
|
|
88
|
+
.wds-Button:disabled:active {
|
|
89
|
+
background-color: var(--Button-background);
|
|
90
|
+
}
|
|
91
|
+
.wds-Button--secondary {
|
|
92
|
+
--Button-background: var(--Button-secondary-background);
|
|
93
|
+
--Button-background-hover: var(--Button-secondary-background-hover);
|
|
94
|
+
--Button-background-active: var(--Button-secondary-background-active);
|
|
95
|
+
--Button-color: var(--Button-secondary-color);
|
|
96
|
+
}
|
|
97
|
+
.wds-Button--tertiary {
|
|
98
|
+
--Button-background: var(--Button-tertiary-background);
|
|
99
|
+
--Button-background-hover: var(--Button-tertiary-background-hover);
|
|
100
|
+
--Button-background-active: var(--Button-tertiary-background-active);
|
|
101
|
+
--Button-color: var(--Button-tertiary-color);
|
|
102
|
+
}
|
|
103
|
+
.wds-Button--tertiary .wds-Button-icon--end {
|
|
104
|
+
color: var(--color-interactive-primary);
|
|
105
|
+
}
|
|
106
|
+
.wds-Button--minimal {
|
|
107
|
+
--Button-background: var(--Button-minimal-background);
|
|
108
|
+
--Button-background-hover: var(--Button-minimal-background-hover);
|
|
109
|
+
--Button-background-active: var(--Button-minimal-background-active);
|
|
110
|
+
--Button-color: var(--Button-minimal-color);
|
|
111
|
+
-webkit-text-decoration: underline;
|
|
112
|
+
text-decoration: underline;
|
|
113
|
+
text-underline-offset: 3px;
|
|
114
|
+
text-decoration-thickness: 1px;
|
|
115
|
+
}
|
|
116
|
+
.wds-Button--negative.wds-Button--primary {
|
|
117
|
+
--Button-background: var(--Button-primary-negative-background);
|
|
118
|
+
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
119
|
+
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
120
|
+
--Button-color: var(--Button-primary-negative-color);
|
|
121
|
+
}
|
|
122
|
+
.wds-Button--negative.wds-Button--secondary {
|
|
123
|
+
--Button-background: var(--Button-secondary-negative-background);
|
|
124
|
+
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
125
|
+
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
126
|
+
--Button-color: var(--Button-secondary-negative-color);
|
|
127
|
+
}
|
|
128
|
+
.wds-Button--large {
|
|
129
|
+
padding: var(--Button-large-padding);
|
|
130
|
+
}
|
|
131
|
+
.wds-Button--medium {
|
|
132
|
+
padding: var(--Button-medium-padding);
|
|
133
|
+
}
|
|
134
|
+
.wds-Button--medium:has(.wds-Button-avatars) {
|
|
135
|
+
padding-inline-start: 8px;
|
|
136
|
+
padding-inline-start: var(--size-8);
|
|
137
|
+
}
|
|
138
|
+
.wds-Button--medium:has(.wds-Button-icon--end) {
|
|
139
|
+
padding-inline-end: 8px;
|
|
140
|
+
padding-inline-end: var(--size-8);
|
|
141
|
+
}
|
|
142
|
+
.wds-Button--medium .wds-Button-icon--start {
|
|
143
|
+
margin-inline-end: var(--Button-label-gap);
|
|
144
|
+
}
|
|
145
|
+
.wds-Button--small {
|
|
146
|
+
padding: var(--Button-small-padding);
|
|
147
|
+
}
|
|
148
|
+
.wds-Button--small:has(.wds-Button-icon--start) {
|
|
149
|
+
padding-inline-start: 8px;
|
|
150
|
+
padding-inline-start: var(--size-8);
|
|
151
|
+
}
|
|
152
|
+
.wds-Button--small:has(.wds-Button-icon--end) {
|
|
153
|
+
padding-inline-end: 8px;
|
|
154
|
+
padding-inline-end: var(--size-8);
|
|
155
|
+
}
|
|
156
|
+
.wds-Button--block {
|
|
157
|
+
width: 100%;
|
|
158
|
+
}
|
|
159
|
+
.wds-Button-avatars {
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
}
|
|
162
|
+
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
163
|
+
color: var(--Button-color);
|
|
164
|
+
}
|
|
165
|
+
.wds-Button-icon {
|
|
166
|
+
display: inline-block;
|
|
167
|
+
}
|
|
168
|
+
.wds-Button-content {
|
|
2
169
|
position: relative;
|
|
3
170
|
}
|
|
4
|
-
.
|
|
171
|
+
.wds-Button-content--loading .wds-Button-label,
|
|
172
|
+
.wds-Button-content--loading .wds-Button-media,
|
|
173
|
+
.wds-Button-content--loading .wds-Button-icon {
|
|
174
|
+
visibility: hidden;
|
|
175
|
+
opacity: 0;
|
|
176
|
+
}
|
|
177
|
+
.wds-Button-label {
|
|
178
|
+
display: flex;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
align-items: center;
|
|
181
|
+
gap: var(--Button-label-gap);
|
|
182
|
+
position: relative;
|
|
183
|
+
}
|
|
184
|
+
.wds-Button-loader {
|
|
5
185
|
position: absolute;
|
|
6
|
-
|
|
7
|
-
|
|
186
|
+
width: 100%;
|
|
187
|
+
height: 100%;
|
|
188
|
+
}
|
|
189
|
+
.wds-Button-loader .process-circle {
|
|
190
|
+
stroke: var(--Button-color);
|
|
191
|
+
}
|
|
192
|
+
/* Avatar border transparency */
|
|
193
|
+
/* dark buttons get 20% transparency, light buttons get 12% */
|
|
194
|
+
.wds-Button-avatars .np-circle {
|
|
195
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 20%, transparent);
|
|
8
196
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
197
|
+
.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,
|
|
198
|
+
.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,
|
|
199
|
+
.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,
|
|
200
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--minimal .wds-Button-avatars .np-circle {
|
|
201
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
14
202
|
}
|
|
15
|
-
.np-
|
|
16
|
-
|
|
203
|
+
.np-theme-personal--dark .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
204
|
+
.np-theme-personal--dark .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
205
|
+
.np-theme-personal--forest-green .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
206
|
+
.np-theme-personal--forest-green .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle {
|
|
207
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
17
208
|
}
|
|
18
|
-
.np-
|
|
19
|
-
|
|
209
|
+
.np-theme-personal--bright-green .wds-Button--tertiary .wds-Button-avatars .np-circle,
|
|
210
|
+
.np-theme-personal--bright-green .wds-Button--minimal .wds-Button-avatars .np-circle {
|
|
211
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
20
212
|
}
|
|
21
|
-
.
|
|
22
|
-
|
|
213
|
+
[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 {
|
|
214
|
+
scale: -1 1;
|
|
23
215
|
}
|
|
@@ -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: calc(var(--size-10) * 0.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-tertiary-background: var(--color-background-neutral);
|
|
19
|
+
--Button-tertiary-background-hover: var(--color-background-neutral-hover);
|
|
20
|
+
--Button-tertiary-background-active: var(--color-background-neutral-active);
|
|
21
|
+
--Button-tertiary-color: var(--color-content-primary);
|
|
22
|
+
--Button-minimal-background: transparent;
|
|
23
|
+
--Button-minimal-background-hover: var(--color-background-screen-hover);
|
|
24
|
+
--Button-minimal-background-active: var(--color-background-screen-active);
|
|
25
|
+
--Button-minimal-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,13 +518,20 @@ 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
|
-
width: calc(var(--np-avatar-size) *
|
|
527
|
-
width: calc(var(--np-avatar-size) * var(--np-avatar-avatars-count) - calc(var(--np-avatar-offset) * calc(var(--np-avatar-avatars-count) - 1)));
|
|
534
|
+
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset));
|
|
528
535
|
height: var(--np-avatar-layout-size);
|
|
529
536
|
}
|
|
530
537
|
.np-avatar-layout-horizontal-mask {
|
|
@@ -536,6 +543,9 @@ div.critical-comms .critical-comms-body {
|
|
|
536
543
|
.np-avatar-layout-horizontal-child {
|
|
537
544
|
margin-left: calc(var(--np-avatar-offset) * -1);
|
|
538
545
|
}
|
|
546
|
+
[dir="rtl"] .np-avatar-layout-horizontal-child {
|
|
547
|
+
margin-right: calc(var(--np-avatar-offset) * -1);
|
|
548
|
+
}
|
|
539
549
|
.np-icon-button {
|
|
540
550
|
border: none;
|
|
541
551
|
}
|
|
@@ -706,6 +716,221 @@ div.critical-comms .critical-comms-body {
|
|
|
706
716
|
.np-btn.disabled[class] {
|
|
707
717
|
pointer-events: auto;
|
|
708
718
|
}
|
|
719
|
+
.wds-Button {
|
|
720
|
+
--Button-background: var(--color-interactive-accent);
|
|
721
|
+
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
722
|
+
--Button-background-active: var(--color-interactive-accent-active);
|
|
723
|
+
--Button-color: var(--color-interactive-control);
|
|
724
|
+
--Button-border-radius: var(--radius-full);
|
|
725
|
+
--Button-label-gap: var(--size-4);
|
|
726
|
+
--Button-large-padding: var(--size-12) var(--size-16);
|
|
727
|
+
--Button-medium-padding: var(--size-8) var(--size-12);
|
|
728
|
+
--Button-small-padding: calc(var(--size-10) * 0.5) var(--size-12);
|
|
729
|
+
--Button-avatar-border-color: var(--color-border-neutral);
|
|
730
|
+
--Button-transition-duration: 150ms;
|
|
731
|
+
--Button-transition-easing: ease-in-out;
|
|
732
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
733
|
+
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
734
|
+
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
735
|
+
--Button-secondary-color: var(--color-interactive-primary);
|
|
736
|
+
--Button-tertiary-background: var(--color-background-neutral);
|
|
737
|
+
--Button-tertiary-background-hover: var(--color-background-neutral-hover);
|
|
738
|
+
--Button-tertiary-background-active: var(--color-background-neutral-active);
|
|
739
|
+
--Button-tertiary-color: var(--color-content-primary);
|
|
740
|
+
--Button-minimal-background: transparent;
|
|
741
|
+
--Button-minimal-background-hover: var(--color-background-screen-hover);
|
|
742
|
+
--Button-minimal-background-active: var(--color-background-screen-active);
|
|
743
|
+
--Button-minimal-color: var(--color-interactive-primary);
|
|
744
|
+
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
745
|
+
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
746
|
+
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
747
|
+
--Button-primary-negative-color: var(--color-contrast-overlay);
|
|
748
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
749
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
750
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
751
|
+
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
752
|
+
}
|
|
753
|
+
.np-theme-personal--bright-green .wds-Button {
|
|
754
|
+
--Button-primary-negative-color: var(--color-white);
|
|
755
|
+
--Button-secondary-color: var(--color-interactive-control);
|
|
756
|
+
--Button-secondary-negative-color: var(--color-white);
|
|
757
|
+
}
|
|
758
|
+
.np-theme-personal--forest-green .wds-Button {
|
|
759
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
760
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-primary);
|
|
761
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
762
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
763
|
+
--Button-secondary-negative-color: var(--color-contrast-overlay);
|
|
764
|
+
}
|
|
765
|
+
/* Button Styles */
|
|
766
|
+
.wds-Button {
|
|
767
|
+
display: inline-flex;
|
|
768
|
+
flex: none;
|
|
769
|
+
width: auto;
|
|
770
|
+
align-items: center;
|
|
771
|
+
justify-content: center;
|
|
772
|
+
vertical-align: middle;
|
|
773
|
+
text-align: center;
|
|
774
|
+
-webkit-text-decoration: none;
|
|
775
|
+
text-decoration: none;
|
|
776
|
+
white-space: nowrap;
|
|
777
|
+
word-wrap: break-word;
|
|
778
|
+
-webkit-appearance: none;
|
|
779
|
+
-moz-appearance: none;
|
|
780
|
+
appearance: none;
|
|
781
|
+
background-color: var(--Button-background);
|
|
782
|
+
border: none;
|
|
783
|
+
border-radius: var(--Button-border-radius);
|
|
784
|
+
color: var(--Button-color);
|
|
785
|
+
cursor: pointer;
|
|
786
|
+
transition: color, background-color var(--Button-transition-duration) var(--Button-transition-easing);
|
|
787
|
+
}
|
|
788
|
+
.wds-Button:hover {
|
|
789
|
+
background-color: var(--Button-background-hover);
|
|
790
|
+
}
|
|
791
|
+
.wds-Button:active {
|
|
792
|
+
background-color: var(--Button-background-active);
|
|
793
|
+
}
|
|
794
|
+
.wds-Button.wds-Button--disabled,
|
|
795
|
+
.wds-Button:disabled {
|
|
796
|
+
filter: none;
|
|
797
|
+
mix-blend-mode: luminosity;
|
|
798
|
+
opacity: 0.45;
|
|
799
|
+
cursor: not-allowed;
|
|
800
|
+
}
|
|
801
|
+
.wds-Button.wds-Button--disabled,
|
|
802
|
+
.wds-Button:disabled,
|
|
803
|
+
.wds-Button.wds-Button--disabled:hover,
|
|
804
|
+
.wds-Button:disabled:hover,
|
|
805
|
+
.wds-Button.wds-Button--disabled:active,
|
|
806
|
+
.wds-Button:disabled:active {
|
|
807
|
+
background-color: var(--Button-background);
|
|
808
|
+
}
|
|
809
|
+
.wds-Button--secondary {
|
|
810
|
+
--Button-background: var(--Button-secondary-background);
|
|
811
|
+
--Button-background-hover: var(--Button-secondary-background-hover);
|
|
812
|
+
--Button-background-active: var(--Button-secondary-background-active);
|
|
813
|
+
--Button-color: var(--Button-secondary-color);
|
|
814
|
+
}
|
|
815
|
+
.wds-Button--tertiary {
|
|
816
|
+
--Button-background: var(--Button-tertiary-background);
|
|
817
|
+
--Button-background-hover: var(--Button-tertiary-background-hover);
|
|
818
|
+
--Button-background-active: var(--Button-tertiary-background-active);
|
|
819
|
+
--Button-color: var(--Button-tertiary-color);
|
|
820
|
+
}
|
|
821
|
+
.wds-Button--tertiary .wds-Button-icon--end {
|
|
822
|
+
color: var(--color-interactive-primary);
|
|
823
|
+
}
|
|
824
|
+
.wds-Button--minimal {
|
|
825
|
+
--Button-background: var(--Button-minimal-background);
|
|
826
|
+
--Button-background-hover: var(--Button-minimal-background-hover);
|
|
827
|
+
--Button-background-active: var(--Button-minimal-background-active);
|
|
828
|
+
--Button-color: var(--Button-minimal-color);
|
|
829
|
+
-webkit-text-decoration: underline;
|
|
830
|
+
text-decoration: underline;
|
|
831
|
+
text-underline-offset: 3px;
|
|
832
|
+
text-decoration-thickness: 1px;
|
|
833
|
+
}
|
|
834
|
+
.wds-Button--negative.wds-Button--primary {
|
|
835
|
+
--Button-background: var(--Button-primary-negative-background);
|
|
836
|
+
--Button-background-hover: var(--Button-primary-negative-background-hover);
|
|
837
|
+
--Button-background-active: var(--Button-primary-negative-background-active);
|
|
838
|
+
--Button-color: var(--Button-primary-negative-color);
|
|
839
|
+
}
|
|
840
|
+
.wds-Button--negative.wds-Button--secondary {
|
|
841
|
+
--Button-background: var(--Button-secondary-negative-background);
|
|
842
|
+
--Button-background-hover: var(--Button-secondary-negative-background-hover);
|
|
843
|
+
--Button-background-active: var(--Button-secondary-negative-background-active);
|
|
844
|
+
--Button-color: var(--Button-secondary-negative-color);
|
|
845
|
+
}
|
|
846
|
+
.wds-Button--large {
|
|
847
|
+
padding: var(--Button-large-padding);
|
|
848
|
+
}
|
|
849
|
+
.wds-Button--medium {
|
|
850
|
+
padding: var(--Button-medium-padding);
|
|
851
|
+
}
|
|
852
|
+
.wds-Button--medium:has(.wds-Button-avatars) {
|
|
853
|
+
padding-inline-start: 8px;
|
|
854
|
+
padding-inline-start: var(--size-8);
|
|
855
|
+
}
|
|
856
|
+
.wds-Button--medium:has(.wds-Button-icon--end) {
|
|
857
|
+
padding-inline-end: 8px;
|
|
858
|
+
padding-inline-end: var(--size-8);
|
|
859
|
+
}
|
|
860
|
+
.wds-Button--medium .wds-Button-icon--start {
|
|
861
|
+
margin-inline-end: var(--Button-label-gap);
|
|
862
|
+
}
|
|
863
|
+
.wds-Button--small {
|
|
864
|
+
padding: var(--Button-small-padding);
|
|
865
|
+
}
|
|
866
|
+
.wds-Button--small:has(.wds-Button-icon--start) {
|
|
867
|
+
padding-inline-start: 8px;
|
|
868
|
+
padding-inline-start: var(--size-8);
|
|
869
|
+
}
|
|
870
|
+
.wds-Button--small:has(.wds-Button-icon--end) {
|
|
871
|
+
padding-inline-end: 8px;
|
|
872
|
+
padding-inline-end: var(--size-8);
|
|
873
|
+
}
|
|
874
|
+
.wds-Button--block {
|
|
875
|
+
width: 100%;
|
|
876
|
+
}
|
|
877
|
+
.wds-Button-avatars {
|
|
878
|
+
display: inline-flex;
|
|
879
|
+
}
|
|
880
|
+
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
881
|
+
color: var(--Button-color);
|
|
882
|
+
}
|
|
883
|
+
.wds-Button-icon {
|
|
884
|
+
display: inline-block;
|
|
885
|
+
}
|
|
886
|
+
.wds-Button-content {
|
|
887
|
+
position: relative;
|
|
888
|
+
}
|
|
889
|
+
.wds-Button-content--loading .wds-Button-label,
|
|
890
|
+
.wds-Button-content--loading .wds-Button-media,
|
|
891
|
+
.wds-Button-content--loading .wds-Button-icon {
|
|
892
|
+
visibility: hidden;
|
|
893
|
+
opacity: 0;
|
|
894
|
+
}
|
|
895
|
+
.wds-Button-label {
|
|
896
|
+
display: flex;
|
|
897
|
+
justify-content: center;
|
|
898
|
+
align-items: center;
|
|
899
|
+
gap: var(--Button-label-gap);
|
|
900
|
+
position: relative;
|
|
901
|
+
}
|
|
902
|
+
.wds-Button-loader {
|
|
903
|
+
position: absolute;
|
|
904
|
+
width: 100%;
|
|
905
|
+
height: 100%;
|
|
906
|
+
}
|
|
907
|
+
.wds-Button-loader .process-circle {
|
|
908
|
+
stroke: var(--Button-color);
|
|
909
|
+
}
|
|
910
|
+
/* Avatar border transparency */
|
|
911
|
+
/* dark buttons get 20% transparency, light buttons get 12% */
|
|
912
|
+
.wds-Button-avatars .np-circle {
|
|
913
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 20%, transparent);
|
|
914
|
+
}
|
|
915
|
+
.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,
|
|
916
|
+
.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,
|
|
917
|
+
.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,
|
|
918
|
+
.np-theme-personal:not(.np-theme-personal--dark):not(.np-theme-personal--forest-green):not(.np-theme-personal--bright-green) .wds-Button--minimal .wds-Button-avatars .np-circle {
|
|
919
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
920
|
+
}
|
|
921
|
+
.np-theme-personal--dark .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
922
|
+
.np-theme-personal--dark .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle,
|
|
923
|
+
.np-theme-personal--forest-green .wds-Button--primary .wds-Button-avatars .np-circle,
|
|
924
|
+
.np-theme-personal--forest-green .wds-Button--primary.wds-Button--negative .wds-Button-avatars .np-circle {
|
|
925
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
926
|
+
}
|
|
927
|
+
.np-theme-personal--bright-green .wds-Button--tertiary .wds-Button-avatars .np-circle,
|
|
928
|
+
.np-theme-personal--bright-green .wds-Button--minimal .wds-Button-avatars .np-circle {
|
|
929
|
+
--circle-border-color: color-mix(in srgb, var(--Button-color) 12%, transparent);
|
|
930
|
+
}
|
|
931
|
+
[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 {
|
|
932
|
+
scale: -1 1;
|
|
933
|
+
}
|
|
709
934
|
.np-card {
|
|
710
935
|
overflow: hidden;
|
|
711
936
|
transition-property: transform, box-shadow;
|
|
@@ -3689,17 +3914,6 @@ html:not([dir="rtl"]) .np-navigation-option {
|
|
|
3689
3914
|
margin-left: 0;
|
|
3690
3915
|
margin-right: 1px;
|
|
3691
3916
|
}
|
|
3692
|
-
.wds-nudge-media-flower {
|
|
3693
|
-
margin-left: -24px;
|
|
3694
|
-
margin-top: 11px;
|
|
3695
|
-
position: absolute;
|
|
3696
|
-
width: 156px;
|
|
3697
|
-
}
|
|
3698
|
-
[dir="rtl"] .wds-nudge-media-flower {
|
|
3699
|
-
transform: scaleX(-1);
|
|
3700
|
-
margin-left: 0;
|
|
3701
|
-
margin-right: -24px;
|
|
3702
|
-
}
|
|
3703
3917
|
.wds-nudge-container {
|
|
3704
3918
|
align-items: stretch;
|
|
3705
3919
|
display: flex;
|
|
@@ -136,17 +136,6 @@
|
|
|
136
136
|
margin-left: 0;
|
|
137
137
|
margin-right: 1px;
|
|
138
138
|
}
|
|
139
|
-
.wds-nudge-media-flower {
|
|
140
|
-
margin-left: -24px;
|
|
141
|
-
margin-top: 11px;
|
|
142
|
-
position: absolute;
|
|
143
|
-
width: 156px;
|
|
144
|
-
}
|
|
145
|
-
[dir="rtl"] .wds-nudge-media-flower {
|
|
146
|
-
transform: scaleX(-1);
|
|
147
|
-
margin-left: 0;
|
|
148
|
-
margin-right: -24px;
|
|
149
|
-
}
|
|
150
139
|
.wds-nudge-container {
|
|
151
140
|
align-items: stretch;
|
|
152
141
|
display: flex;
|
|
@@ -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,sCAuDP"}
|
|
@@ -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,EAEL,mBAAmB,EACnB,WAAW,IAAI,cAAc,EAC9B,MAAM,gBAAgB,CAAC;AAQxB,QAAA,MAAM,MAAM,gHA0GX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
type?: import("../common").ControlTypeAccent | import("../common").ControlTypeNegative | import("../common").ControlTypePositive | ("link" | "primary" | "secondary" | "pay" | "danger") | null;
|
|
10
|
+
priority?: import("../common").PriorityPrimary | import("../common").PrioritySecondary | import("../common").PriorityTertiary | null;
|
|
11
|
+
size?: import("../common").SizeSmall | import("../common").SizeMedium | import("../common").SizeLarge | "xs";
|
|
12
|
+
htmlType?: "submit" | "reset" | "button";
|
|
13
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
14
|
+
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;
|
|
15
|
+
}, "type"> & {
|
|
16
|
+
as?: "button";
|
|
17
|
+
}, "ref"> | Omit<{
|
|
18
|
+
v2?: false;
|
|
19
|
+
block?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
type?: import("../common").ControlTypeAccent | import("../common").ControlTypeNegative | import("../common").ControlTypePositive | ("link" | "primary" | "secondary" | "pay" | "danger") | null;
|
|
23
|
+
priority?: import("../common").PriorityPrimary | import("../common").PrioritySecondary | import("../common").PriorityTertiary | null;
|
|
24
|
+
size?: import("../common").SizeSmall | import("../common").SizeMedium | import("../common").SizeLarge | "xs";
|
|
25
|
+
htmlType?: "submit" | "reset" | "button";
|
|
26
|
+
} & Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
27
|
+
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;
|
|
28
|
+
}, "type"> & {
|
|
29
|
+
as?: "a";
|
|
30
|
+
href?: string;
|
|
31
|
+
}, "ref">) & import("react").RefAttributes<ButtonReferenceType>>;
|
|
32
|
+
export default Button;
|
|
33
|
+
//# sourceMappingURL=Button.resolver.d.ts.map
|