@infonomic/uikit 2.15.0 → 3.1.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/README.md +48 -6
- package/dist/components/badge/badge_module.css +49 -80
- package/dist/components/button/button_module.css +133 -227
- package/dist/components/button/control-buttons_module.css +2 -11
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +14 -7
- package/dist/components/button/copy-button.module.js +5 -5
- package/dist/components/button/copy-button_module.css +31 -12
- package/dist/components/dropdown/dropdown_module.css +8 -13
- package/dist/components/input/checkbox_module.css +42 -91
- package/dist/components/input/help-text_module.css +1 -5
- package/dist/components/input/input_module.css +42 -109
- package/dist/components/input/radio-group_module.css +14 -49
- package/dist/components/input/select_module.css +10 -17
- package/dist/components/notifications/alert_module.css +0 -4
- package/dist/components/pager/pagination_module.css +7 -18
- package/dist/components/scroll-area/scroll-area_module.css +4 -20
- package/dist/components/tooltip/tooltip_module.css +4 -14
- package/dist/icons/close-icon.js +1 -1
- package/dist/icons/copy-icon.d.ts.map +1 -1
- package/dist/icons/copy-icon.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/widgets/datepicker/datepicker_module.css +2 -2
- package/dist/widgets/drawer/drawer_module.css +1 -5
- package/dist/widgets/modal/modal_module.css +1 -5
- package/dist/widgets/timeline/timeline.d.ts.map +1 -0
- package/dist/widgets/timeline/timeline.module.js +17 -0
- package/dist/{components → widgets}/timeline/timeline_module.css +10 -10
- package/package.json +8 -8
- package/src/components/badge/badge.module.css +38 -68
- package/src/components/button/button-intents.stories.tsx +1 -1
- package/src/components/button/button-overrides.stories.tsx +43 -0
- package/src/components/button/button-variants.stories.tsx +1 -1
- package/src/components/button/button.module.css +135 -230
- package/src/components/button/control-buttons.module.css +5 -17
- package/src/components/button/control-buttons.stories.tsx +1 -1
- package/src/components/button/copy-button.module.css +32 -14
- package/src/components/button/copy-button.stories.tsx +6 -6
- package/src/components/button/copy-button.tsx +16 -12
- package/src/components/calendar/calendar.stories.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +9 -24
- package/src/components/input/checkbox.module.css +43 -99
- package/src/components/input/help-text.module.css +1 -12
- package/src/components/input/input.module.css +44 -119
- package/src/components/input/input.stories.tsx +1 -1
- package/src/components/input/radio-group.module.css +16 -72
- package/src/components/input/radio-group.stories.tsx +1 -1
- package/src/components/input/select.module.css +10 -17
- package/src/components/input/select.stories.tsx +1 -1
- package/src/components/notifications/alert.module.css +0 -4
- package/src/components/pager/pagination.module.css +7 -23
- package/src/components/scroll-area/scroll-area.module.css +4 -20
- package/src/components/tooltip/tooltip.module.css +6 -16
- package/src/icons/close-icon.tsx +1 -1
- package/src/icons/copy-icon.tsx +1 -2
- package/src/icons/icons.module.css +1 -0
- package/src/react.ts +1 -1
- package/src/styles/theme/theme.css +6 -4
- package/src/styles/theme/tokens.css +670 -0
- package/src/widgets/datepicker/datepicker.module.css +2 -2
- package/src/widgets/drawer/drawer.module.css +1 -5
- package/src/widgets/drawer/drawer.stories.tsx +1 -34
- package/src/widgets/modal/modal.module.css +1 -5
- package/src/{components → widgets}/timeline/timeline.stories.tsx +2 -2
- package/dist/components/timeline/timeline.d.ts.map +0 -1
- package/dist/components/timeline/timeline.module.js +0 -17
- /package/dist/{components → widgets}/timeline/timeline.d.ts +0 -0
- /package/dist/{components → widgets}/timeline/timeline.js +0 -0
- /package/src/components/button/{button-icon.stories.tsx → icon-button.stories.tsx} +0 -0
- /package/src/{components → widgets}/timeline/timeline.module.css +0 -0
- /package/src/{components → widgets}/timeline/timeline.tsx +0 -0
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.filled-CwGsrO:disabled, .filled-CwGsrO[disabled] {
|
|
88
|
-
background-color: oklch(from var(--button-variant-filled) calc(l * 1.1) calc(c * .85) h);
|
|
89
|
-
color: oklch(from var(--button-variant-filled-foreground) calc(l * .9) calc(c * .85) h);
|
|
88
|
+
background-color: var(--button-variant-filled-disabled, oklch(from var(--button-variant-filled) calc(l * 1.1) calc(c * .85) h));
|
|
89
|
+
color: var(--button-variant-filled-foreground-disabled, oklch(from var(--button-variant-filled-foreground) calc(l * .9) calc(c * .85) h));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.outlined-nZGbxu {
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.outlined-nZGbxu:disabled, .outlined-nZGbxu[disabled] {
|
|
99
|
-
border-color: oklch(from var(--button-variant-outlined-border) calc(l * 1.5) calc(c * .8) h);
|
|
100
|
-
color: oklch(from var(--button-variant-outlined-foreground) calc(l * 1.1) calc(c * .7) h);
|
|
99
|
+
border-color: var(--button-variant-outlined-border-disabled, oklch(from var(--button-variant-outlined-border) calc(l * 1.5) calc(c * .8) h));
|
|
100
|
+
color: var(--button-variant-outlined-foreground-disabled, oklch(from var(--button-variant-outlined-foreground) calc(l * 1.1) calc(c * .7) h));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.outlined-nZGbxu:hover {
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
|
|
116
116
|
.gradient-ySC3O3:disabled, .gradient-ySC3O3[disabled] {
|
|
117
117
|
background: unset;
|
|
118
|
-
background-color: oklch(from var(--button-variant-gradient-end) calc(l * 1.2) calc(c * .85) h);
|
|
119
|
-
color: oklch(from var(--button-variant-gradient-foreground) calc(l * .9) calc(c * .85) h);
|
|
118
|
+
background-color: var(--button-variant-gradient-disabled, oklch(from var(--button-variant-gradient-end) calc(l * 1.2) calc(c * .85) h));
|
|
119
|
+
color: var(--button-variant-gradient-foreground-disabled, oklch(from var(--button-variant-gradient-foreground) calc(l * .9) calc(c * .85) h));
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.gradient-ySC3O3:hover {
|
|
@@ -146,220 +146,255 @@
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.primary-tUmczz {
|
|
149
|
-
--button: var(--primary
|
|
150
|
-
--button-ring-color: var(--button);
|
|
149
|
+
--button-ring-color: var(--ring-primary);
|
|
151
150
|
}
|
|
152
151
|
|
|
153
152
|
.primary-tUmczz.filled-CwGsrO {
|
|
154
|
-
--button-variant-filled: var(--
|
|
155
|
-
--button-variant-filled-foreground:
|
|
156
|
-
--button-variant-filled-hover:
|
|
153
|
+
--button-variant-filled: var(--fill-primary-strong);
|
|
154
|
+
--button-variant-filled-foreground: var(--text-on-primary);
|
|
155
|
+
--button-variant-filled-hover: var(--fill-primary-strong-hover);
|
|
156
|
+
--button-variant-filled-disabled: var(--fill-primary-strong-disabled);
|
|
157
|
+
--button-variant-filled-foreground-disabled: var(--text-on-primary-disabled);
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
.primary-tUmczz.outlined-nZGbxu {
|
|
160
161
|
--button-variant-outlined: transparent;
|
|
161
|
-
--button-variant-outlined-foreground: var(--primary-
|
|
162
|
-
--button-variant-outlined-hover:
|
|
163
|
-
--button-variant-outlined-border: var(--primary
|
|
162
|
+
--button-variant-outlined-foreground: var(--text-primary-strong);
|
|
163
|
+
--button-variant-outlined-hover: var(--fill-primary-weak);
|
|
164
|
+
--button-variant-outlined-border: var(--stroke-primary);
|
|
165
|
+
--button-variant-outlined-border-disabled: var(--stroke-primary-disabled);
|
|
166
|
+
--button-variant-outlined-foreground-disabled: var(--text-primary-disabled);
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
.primary-tUmczz.text-GaxlcE {
|
|
167
170
|
--button-variant-text: transparent;
|
|
168
|
-
--button-variant-text-foreground:
|
|
169
|
-
--button-variant-text-hover:
|
|
171
|
+
--button-variant-text-foreground: var(--text-primary-weak);
|
|
172
|
+
--button-variant-text-hover: var(--fill-primary-weak-hover);
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
.primary-tUmczz.gradient-ySC3O3 {
|
|
173
|
-
--button-variant-gradient-start: var(--primary-
|
|
174
|
-
--button-variant-gradient-end: var(--primary-
|
|
175
|
-
--button-variant-gradient-foreground:
|
|
176
|
+
--button-variant-gradient-start: var(--gradient-primary-start);
|
|
177
|
+
--button-variant-gradient-end: var(--gradient-primary-end);
|
|
178
|
+
--button-variant-gradient-foreground: var(--gradient-primary-foreground);
|
|
176
179
|
--button-variant-gradient-hover: var(--gray-900);
|
|
180
|
+
--button-variant-gradient-disabled: var(--gradient-primary-disabled);
|
|
181
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-primary-disabled);
|
|
177
182
|
}
|
|
178
183
|
|
|
179
184
|
.secondary-UqT2AY {
|
|
180
|
-
--button: var(--secondary
|
|
181
|
-
--button-ring-color: var(--button);
|
|
185
|
+
--button-ring-color: var(--ring-secondary);
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
.secondary-UqT2AY.filled-CwGsrO {
|
|
185
|
-
--button-variant-filled: var(--
|
|
186
|
-
--button-variant-filled-foreground:
|
|
187
|
-
--button-variant-filled-hover:
|
|
189
|
+
--button-variant-filled: var(--fill-secondary-strong);
|
|
190
|
+
--button-variant-filled-foreground: var(--text-on-secondary);
|
|
191
|
+
--button-variant-filled-hover: var(--fill-secondary-strong-hover);
|
|
192
|
+
--button-variant-filled-disabled: var(--fill-secondary-strong-disabled);
|
|
193
|
+
--button-variant-filled-foreground-disabled: var(--text-on-secondary-disabled);
|
|
188
194
|
}
|
|
189
195
|
|
|
190
196
|
.secondary-UqT2AY.outlined-nZGbxu {
|
|
191
197
|
--button-variant-outlined: transparent;
|
|
192
|
-
--button-variant-outlined-foreground: var(--secondary-
|
|
193
|
-
--button-variant-outlined-hover:
|
|
194
|
-
--button-variant-outlined-border: var(--secondary
|
|
198
|
+
--button-variant-outlined-foreground: var(--text-secondary-strong);
|
|
199
|
+
--button-variant-outlined-hover: var(--fill-secondary-weak);
|
|
200
|
+
--button-variant-outlined-border: var(--stroke-secondary);
|
|
201
|
+
--button-variant-outlined-border-disabled: var(--stroke-secondary-disabled);
|
|
202
|
+
--button-variant-outlined-foreground-disabled: var(--text-secondary-disabled);
|
|
195
203
|
}
|
|
196
204
|
|
|
197
205
|
.secondary-UqT2AY.text-GaxlcE {
|
|
198
206
|
--button-variant-text: transparent;
|
|
199
|
-
--button-variant-text-foreground:
|
|
200
|
-
--button-variant-text-hover:
|
|
207
|
+
--button-variant-text-foreground: var(--text-secondary-weak);
|
|
208
|
+
--button-variant-text-hover: var(--fill-secondary-weak-hover);
|
|
201
209
|
}
|
|
202
210
|
|
|
203
211
|
.secondary-UqT2AY.gradient-ySC3O3 {
|
|
204
|
-
--button-variant-gradient-start: var(--secondary-
|
|
205
|
-
--button-variant-gradient-end: var(--secondary-
|
|
206
|
-
--button-variant-gradient-foreground:
|
|
212
|
+
--button-variant-gradient-start: var(--gradient-secondary-start);
|
|
213
|
+
--button-variant-gradient-end: var(--gradient-secondary-end);
|
|
214
|
+
--button-variant-gradient-foreground: var(--gradient-secondary-foreground);
|
|
207
215
|
--button-variant-gradient-hover: var(--gray-900);
|
|
216
|
+
--button-variant-gradient-disabled: var(--gradient-secondary-disabled);
|
|
217
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-secondary-disabled);
|
|
208
218
|
}
|
|
209
219
|
|
|
210
220
|
.noeffect-fpxSgg {
|
|
211
|
-
--button: var(--
|
|
212
|
-
--button-ring-color: var(--gray-200);
|
|
221
|
+
--button-ring-color: var(--ring-noeffect);
|
|
213
222
|
}
|
|
214
223
|
|
|
215
224
|
.noeffect-fpxSgg.filled-CwGsrO {
|
|
216
|
-
--button-variant-filled: var(--
|
|
217
|
-
--button-variant-filled-foreground:
|
|
218
|
-
--button-variant-filled-hover:
|
|
225
|
+
--button-variant-filled: var(--fill-noeffect-strong);
|
|
226
|
+
--button-variant-filled-foreground: var(--text-on-noeffect);
|
|
227
|
+
--button-variant-filled-hover: var(--fill-noeffect-strong-hover);
|
|
228
|
+
--button-variant-filled-disabled: var(--fill-noeffect-strong-disabled);
|
|
229
|
+
--button-variant-filled-foreground-disabled: var(--text-on-noeffect-disabled);
|
|
219
230
|
}
|
|
220
231
|
|
|
221
232
|
.noeffect-fpxSgg.outlined-nZGbxu {
|
|
222
233
|
--button-variant-outlined: transparent;
|
|
223
|
-
--button-variant-outlined-foreground: var(--
|
|
224
|
-
--button-variant-outlined-hover:
|
|
225
|
-
--button-variant-outlined-border: var(--
|
|
234
|
+
--button-variant-outlined-foreground: var(--text-noeffect-strong);
|
|
235
|
+
--button-variant-outlined-hover: var(--fill-noeffect-weak);
|
|
236
|
+
--button-variant-outlined-border: var(--stroke-noeffect);
|
|
237
|
+
--button-variant-outlined-border-disabled: var(--stroke-noeffect-disabled);
|
|
238
|
+
--button-variant-outlined-foreground-disabled: var(--text-noeffect-disabled);
|
|
226
239
|
}
|
|
227
240
|
|
|
228
241
|
.noeffect-fpxSgg.text-GaxlcE {
|
|
229
242
|
--button-variant-text: transparent;
|
|
230
|
-
--button-variant-text-foreground:
|
|
231
|
-
--button-variant-text-hover:
|
|
243
|
+
--button-variant-text-foreground: var(--text-noeffect-weak);
|
|
244
|
+
--button-variant-text-hover: var(--fill-noeffect-weak-hover);
|
|
232
245
|
}
|
|
233
246
|
|
|
234
247
|
.noeffect-fpxSgg.gradient-ySC3O3 {
|
|
235
|
-
--button-variant-gradient-start: var(--
|
|
236
|
-
--button-variant-gradient-end: var(--
|
|
237
|
-
--button-variant-gradient-foreground:
|
|
238
|
-
--button-variant-gradient-hover: var(--
|
|
248
|
+
--button-variant-gradient-start: var(--gradient-noeffect-start);
|
|
249
|
+
--button-variant-gradient-end: var(--gradient-noeffect-end);
|
|
250
|
+
--button-variant-gradient-foreground: var(--gradient-noeffect-foreground);
|
|
251
|
+
--button-variant-gradient-hover: var(--gradient-noeffect-hover);
|
|
252
|
+
--button-variant-gradient-disabled: var(--gradient-noeffect-disabled);
|
|
253
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-noeffect-disabled);
|
|
239
254
|
}
|
|
240
255
|
|
|
241
256
|
.success-fTNDEn {
|
|
242
|
-
--button: var(--
|
|
243
|
-
--button-ring-color: var(--button);
|
|
257
|
+
--button-ring-color: var(--ring-success);
|
|
244
258
|
}
|
|
245
259
|
|
|
246
260
|
.success-fTNDEn.filled-CwGsrO {
|
|
247
|
-
--button-variant-filled: var(--
|
|
248
|
-
--button-variant-filled-foreground:
|
|
249
|
-
--button-variant-filled-hover:
|
|
261
|
+
--button-variant-filled: var(--fill-success-strong);
|
|
262
|
+
--button-variant-filled-foreground: var(--text-on-success);
|
|
263
|
+
--button-variant-filled-hover: var(--fill-success-strong-hover);
|
|
264
|
+
--button-variant-filled-disabled: var(--fill-success-strong-disabled);
|
|
265
|
+
--button-variant-filled-foreground-disabled: var(--text-on-success-disabled);
|
|
250
266
|
}
|
|
251
267
|
|
|
252
268
|
.success-fTNDEn.outlined-nZGbxu {
|
|
253
269
|
--button-variant-outlined: transparent;
|
|
254
|
-
--button-variant-outlined-foreground: var(--
|
|
255
|
-
--button-variant-outlined-hover:
|
|
256
|
-
--button-variant-outlined-border: var(--
|
|
270
|
+
--button-variant-outlined-foreground: var(--text-success-strong);
|
|
271
|
+
--button-variant-outlined-hover: var(--fill-success-weak);
|
|
272
|
+
--button-variant-outlined-border: var(--stroke-success);
|
|
273
|
+
--button-variant-outlined-border-disabled: var(--stroke-success-disabled);
|
|
274
|
+
--button-variant-outlined-foreground-disabled: var(--text-success-disabled);
|
|
257
275
|
}
|
|
258
276
|
|
|
259
277
|
.success-fTNDEn.text-GaxlcE {
|
|
260
278
|
--button-variant-text: transparent;
|
|
261
|
-
--button-variant-text-foreground:
|
|
262
|
-
--button-variant-text-hover:
|
|
279
|
+
--button-variant-text-foreground: var(--text-success-weak);
|
|
280
|
+
--button-variant-text-hover: var(--fill-success-weak-hover);
|
|
263
281
|
}
|
|
264
282
|
|
|
265
283
|
.success-fTNDEn.gradient-ySC3O3 {
|
|
266
|
-
--button-variant-gradient-start: var(--
|
|
267
|
-
--button-variant-gradient-end: var(--
|
|
268
|
-
--button-variant-gradient-foreground:
|
|
284
|
+
--button-variant-gradient-start: var(--gradient-success-start);
|
|
285
|
+
--button-variant-gradient-end: var(--gradient-success-end);
|
|
286
|
+
--button-variant-gradient-foreground: var(--gradient-success-foreground);
|
|
269
287
|
--button-variant-gradient-hover: var(--gray-900);
|
|
288
|
+
--button-variant-gradient-disabled: var(--gradient-success-disabled);
|
|
289
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-success-disabled);
|
|
270
290
|
}
|
|
271
291
|
|
|
272
292
|
.info-qrdXQD {
|
|
273
|
-
--button: var(--
|
|
274
|
-
--button-ring-color: var(--button);
|
|
293
|
+
--button-ring-color: var(--ring-info);
|
|
275
294
|
}
|
|
276
295
|
|
|
277
296
|
.info-qrdXQD.filled-CwGsrO {
|
|
278
|
-
--button-variant-filled: var(--
|
|
279
|
-
--button-variant-filled-foreground:
|
|
280
|
-
--button-variant-filled-hover:
|
|
297
|
+
--button-variant-filled: var(--fill-info-strong);
|
|
298
|
+
--button-variant-filled-foreground: var(--text-on-info);
|
|
299
|
+
--button-variant-filled-hover: var(--fill-info-strong-hover);
|
|
300
|
+
--button-variant-filled-disabled: var(--fill-info-strong-disabled);
|
|
301
|
+
--button-variant-filled-foreground-disabled: var(--text-on-info-disabled);
|
|
281
302
|
}
|
|
282
303
|
|
|
283
304
|
.info-qrdXQD.outlined-nZGbxu {
|
|
284
305
|
--button-variant-outlined: transparent;
|
|
285
|
-
--button-variant-outlined-foreground: var(--
|
|
286
|
-
--button-variant-outlined-hover:
|
|
287
|
-
--button-variant-outlined-border: var(--
|
|
306
|
+
--button-variant-outlined-foreground: var(--text-info-strong);
|
|
307
|
+
--button-variant-outlined-hover: var(--fill-info-weak);
|
|
308
|
+
--button-variant-outlined-border: var(--stroke-info);
|
|
309
|
+
--button-variant-outlined-border-disabled: var(--stroke-info-disabled);
|
|
310
|
+
--button-variant-outlined-foreground-disabled: var(--text-info-disabled);
|
|
288
311
|
}
|
|
289
312
|
|
|
290
313
|
.info-qrdXQD.text-GaxlcE {
|
|
291
314
|
--button-variant-text: transparent;
|
|
292
|
-
--button-variant-text-foreground:
|
|
293
|
-
--button-variant-text-hover:
|
|
315
|
+
--button-variant-text-foreground: var(--text-info-weak);
|
|
316
|
+
--button-variant-text-hover: var(--fill-info-weak-hover);
|
|
294
317
|
}
|
|
295
318
|
|
|
296
319
|
.info-qrdXQD.gradient-ySC3O3 {
|
|
297
|
-
--button-variant-gradient-start: var(--
|
|
298
|
-
--button-variant-gradient-end: var(--
|
|
299
|
-
--button-variant-gradient-foreground:
|
|
320
|
+
--button-variant-gradient-start: var(--gradient-info-start);
|
|
321
|
+
--button-variant-gradient-end: var(--gradient-info-end);
|
|
322
|
+
--button-variant-gradient-foreground: var(--gradient-info-foreground);
|
|
300
323
|
--button-variant-gradient-hover: var(--gray-900);
|
|
324
|
+
--button-variant-gradient-disabled: var(--gradient-info-disabled);
|
|
325
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-info-disabled);
|
|
301
326
|
}
|
|
302
327
|
|
|
303
328
|
.warning-a00T3A {
|
|
304
|
-
--button: var(--
|
|
305
|
-
--button-ring-color: var(--button);
|
|
329
|
+
--button-ring-color: var(--ring-warning);
|
|
306
330
|
}
|
|
307
331
|
|
|
308
332
|
.warning-a00T3A.filled-CwGsrO {
|
|
309
|
-
--button-variant-filled: var(--
|
|
310
|
-
--button-variant-filled-foreground:
|
|
311
|
-
--button-variant-filled-hover:
|
|
333
|
+
--button-variant-filled: var(--fill-warning-strong);
|
|
334
|
+
--button-variant-filled-foreground: var(--text-on-warning);
|
|
335
|
+
--button-variant-filled-hover: var(--fill-warning-strong-hover);
|
|
336
|
+
--button-variant-filled-disabled: var(--fill-warning-strong-disabled);
|
|
337
|
+
--button-variant-filled-foreground-disabled: var(--text-on-warning-disabled);
|
|
312
338
|
}
|
|
313
339
|
|
|
314
340
|
.warning-a00T3A.outlined-nZGbxu {
|
|
315
341
|
--button-variant-outlined: transparent;
|
|
316
|
-
--button-variant-outlined-foreground: var(--
|
|
317
|
-
--button-variant-outlined-hover:
|
|
318
|
-
--button-variant-outlined-border: var(--
|
|
342
|
+
--button-variant-outlined-foreground: var(--text-warning-strong);
|
|
343
|
+
--button-variant-outlined-hover: var(--fill-warning-weak);
|
|
344
|
+
--button-variant-outlined-border: var(--stroke-warning);
|
|
345
|
+
--button-variant-outlined-border-disabled: var(--stroke-warning-disabled);
|
|
346
|
+
--button-variant-outlined-foreground-disabled: var(--text-warning-disabled);
|
|
319
347
|
}
|
|
320
348
|
|
|
321
349
|
.warning-a00T3A.text-GaxlcE {
|
|
322
350
|
--button-variant-text: transparent;
|
|
323
|
-
--button-variant-text-foreground:
|
|
324
|
-
--button-variant-text-hover:
|
|
351
|
+
--button-variant-text-foreground: var(--text-warning-weak);
|
|
352
|
+
--button-variant-text-hover: var(--fill-warning-weak-hover);
|
|
325
353
|
}
|
|
326
354
|
|
|
327
355
|
.warning-a00T3A.gradient-ySC3O3 {
|
|
328
|
-
--button-variant-gradient-start: var(--
|
|
329
|
-
--button-variant-gradient-end: var(--
|
|
330
|
-
--button-variant-gradient-foreground:
|
|
356
|
+
--button-variant-gradient-start: var(--gradient-warning-start);
|
|
357
|
+
--button-variant-gradient-end: var(--gradient-warning-end);
|
|
358
|
+
--button-variant-gradient-foreground: var(--gradient-warning-foreground);
|
|
331
359
|
--button-variant-gradient-hover: var(--gray-900);
|
|
360
|
+
--button-variant-gradient-disabled: var(--gradient-warning-disabled);
|
|
361
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-warning-disabled);
|
|
332
362
|
}
|
|
333
363
|
|
|
334
364
|
.danger-rwIV_i {
|
|
335
|
-
--button: var(--
|
|
336
|
-
--button-ring-color: var(--button);
|
|
365
|
+
--button-ring-color: var(--ring-danger);
|
|
337
366
|
}
|
|
338
367
|
|
|
339
368
|
.danger-rwIV_i.filled-CwGsrO {
|
|
340
|
-
--button-variant-filled: var(--
|
|
341
|
-
--button-variant-filled-foreground:
|
|
342
|
-
--button-variant-filled-hover:
|
|
369
|
+
--button-variant-filled: var(--fill-danger-strong);
|
|
370
|
+
--button-variant-filled-foreground: var(--text-on-danger);
|
|
371
|
+
--button-variant-filled-hover: var(--fill-danger-strong-hover);
|
|
372
|
+
--button-variant-filled-disabled: var(--fill-danger-strong-disabled);
|
|
373
|
+
--button-variant-filled-foreground-disabled: var(--text-on-danger-disabled);
|
|
343
374
|
}
|
|
344
375
|
|
|
345
376
|
.danger-rwIV_i.outlined-nZGbxu {
|
|
346
377
|
--button-variant-outlined: transparent;
|
|
347
|
-
--button-variant-outlined-foreground: var(--
|
|
348
|
-
--button-variant-outlined-hover:
|
|
349
|
-
--button-variant-outlined-border: var(--
|
|
378
|
+
--button-variant-outlined-foreground: var(--text-danger-strong);
|
|
379
|
+
--button-variant-outlined-hover: var(--fill-danger-weak);
|
|
380
|
+
--button-variant-outlined-border: var(--stroke-danger);
|
|
381
|
+
--button-variant-outlined-border-disabled: var(--stroke-danger-disabled);
|
|
382
|
+
--button-variant-outlined-foreground-disabled: var(--text-danger-disabled);
|
|
350
383
|
}
|
|
351
384
|
|
|
352
385
|
.danger-rwIV_i.text-GaxlcE {
|
|
353
386
|
--button-variant-text: transparent;
|
|
354
|
-
--button-variant-text-foreground:
|
|
355
|
-
--button-variant-text-hover:
|
|
387
|
+
--button-variant-text-foreground: var(--text-danger-weak);
|
|
388
|
+
--button-variant-text-hover: var(--fill-danger-weak-hover);
|
|
356
389
|
}
|
|
357
390
|
|
|
358
391
|
.danger-rwIV_i.gradient-ySC3O3 {
|
|
359
|
-
--button-variant-gradient-start: var(--
|
|
360
|
-
--button-variant-gradient-end: var(--
|
|
361
|
-
--button-variant-gradient-foreground:
|
|
392
|
+
--button-variant-gradient-start: var(--gradient-danger-start);
|
|
393
|
+
--button-variant-gradient-end: var(--gradient-danger-end);
|
|
394
|
+
--button-variant-gradient-foreground: var(--gradient-danger-foreground);
|
|
362
395
|
--button-variant-gradient-hover: var(--gray-900);
|
|
396
|
+
--button-variant-gradient-disabled: var(--gradient-danger-disabled);
|
|
397
|
+
--button-variant-gradient-foreground-disabled: var(--text-on-danger-disabled);
|
|
363
398
|
}
|
|
364
399
|
|
|
365
400
|
.fullWidth-wXvP0v {
|
|
@@ -370,134 +405,5 @@
|
|
|
370
405
|
.dark .button-IjDhC0:focus:not(:where([class~="not-dark"], [class~="not-dark"] *)), .dark .button-IjDhC0:active:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
371
406
|
--ring-offset-color: var(--background);
|
|
372
407
|
}
|
|
373
|
-
|
|
374
|
-
.dark .primary-tUmczz:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
375
|
-
--button: var(--primary-600);
|
|
376
|
-
--button-ring-color: var(--button);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.dark .primary-tUmczz.filled-CwGsrO:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
380
|
-
--button-variant-filled: var(--button);
|
|
381
|
-
--button-variant-filled-foreground: white;
|
|
382
|
-
--button-variant-filled-hover: oklch(from var(--button) calc(l * .9) c h);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.dark .primary-tUmczz.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
386
|
-
--button-variant-outlined-foreground: var(--primary-100);
|
|
387
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .45) calc(c * .1) h);
|
|
388
|
-
--button-variant-outlined-border: var(--primary-500);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.dark .primary-tUmczz.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
392
|
-
--button-variant-text: transparent;
|
|
393
|
-
--button-variant-text-foreground: var(--button);
|
|
394
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.dark .secondary-UqT2AY.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
398
|
-
--button-variant-outlined-foreground: var(--secondary-500);
|
|
399
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .3) calc(c * .1) h);
|
|
400
|
-
--button-variant-outlined-border: var(--secondary-500);
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.dark .secondary-UqT2AY.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
404
|
-
--button-variant-text-foreground: var(--button);
|
|
405
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.dark .noeffect-fpxSgg:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
409
|
-
--button: var(--gray-900);
|
|
410
|
-
--button-ring-color: var(--gray-900);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.dark .noeffect-fpxSgg.filled-CwGsrO:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
414
|
-
--button-variant-filled: var(--button);
|
|
415
|
-
--button-variant-filled-foreground: white;
|
|
416
|
-
--button-variant-filled-hover: oklch(from var(--button) calc(l * .95) c h);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.dark .noeffect-fpxSgg.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
420
|
-
--button-variant-outlined: transparent;
|
|
421
|
-
--button-variant-outlined-foreground: var(--gray-300);
|
|
422
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .75) calc(c * .2) h);
|
|
423
|
-
--button-variant-outlined-border: var(--gray-500);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.dark .noeffect-fpxSgg.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
427
|
-
--button-variant-text: transparent;
|
|
428
|
-
--button-variant-text-foreground: var(--gray-300);
|
|
429
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
.dark .noeffect-fpxSgg.gradient-ySC3O3:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
433
|
-
--button-variant-gradient-start: var(--gray-950);
|
|
434
|
-
--button-variant-gradient-end: var(--gray-900);
|
|
435
|
-
--button-variant-gradient-foreground: white;
|
|
436
|
-
--button-variant-gradient-hover: var(--gray-900);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.dark .success-fTNDEn.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
440
|
-
--button-variant-outlined-foreground: var(--green-500);
|
|
441
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .35) calc(c * .1) h);
|
|
442
|
-
--button-variant-outlined-border: var(--green-500);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.dark .success-fTNDEn.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
446
|
-
--button-variant-text-foreground: var(--button);
|
|
447
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.dark .info-qrdXQD.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
451
|
-
--button-variant-outlined-foreground: var(--blue-300);
|
|
452
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .43) calc(c * .1) h);
|
|
453
|
-
--button-variant-outlined-border: var(--blue-500);
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.dark .info-qrdXQD.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
457
|
-
--button-variant-text-foreground: var(--button);
|
|
458
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.dark .warning-a00T3A.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
462
|
-
--button-variant-outlined-foreground: var(--yellow-500);
|
|
463
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .31) calc(c * .1) h);
|
|
464
|
-
--button-variant-outlined-border: var(--yellow-500);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.dark .warning-a00T3A.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
468
|
-
--button-variant-text-foreground: var(--button);
|
|
469
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.dark .danger-rwIV_i.outlined-nZGbxu:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
473
|
-
--button-variant-outlined-foreground: var(--red-500);
|
|
474
|
-
--button-variant-outlined-hover: oklch(from var(--button) calc(l * .4) calc(c * .1) h);
|
|
475
|
-
--button-variant-outlined-border: var(--red-500);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.dark .danger-rwIV_i.text-GaxlcE:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
479
|
-
--button-variant-text-foreground: var(--button);
|
|
480
|
-
--button-variant-text-hover: var(--canvas-800);
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.dark .filled-CwGsrO:disabled:not(:where([class~="not-dark"], [class~="not-dark"] *)), .dark .filled-CwGsrO[disabled]:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
484
|
-
background-color: oklch(from var(--button-variant-filled) calc(l * .85) calc(c * .85) h);
|
|
485
|
-
color: oklch(from var(--button-variant-filled-foreground) calc(l * .85) calc(c * .85) h);
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.dark .outlined-nZGbxu:disabled:not(:where([class~="not-dark"], [class~="not-dark"] *)), .dark .outlined-nZGbxu[disabled]:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
489
|
-
border-color: oklch(from var(--button-variant-outlined-border) calc(l * .8) calc(c * .8) h);
|
|
490
|
-
color: oklch(from var(--button-variant-outlined-foreground) calc(l * .8) calc(c * .8) h);
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.dark .gradient-ySC3O3:disabled:not(:where([class~="not-dark"], [class~="not-dark"] *)), .dark .gradient-ySC3O3[disabled]:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
494
|
-
background: unset;
|
|
495
|
-
background-color: oklch(from var(--button-variant-gradient-end) calc(l * .85) calc(c * .85) h);
|
|
496
|
-
color: oklch(from var(--button-variant-gradient-foreground) calc(l * .85) calc(c * .85) h);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.dark .text-GaxlcE:disabled:not(:where([class~="not-dark"], [class~="not-dark"] *)), .dark .text-GaxlcE[disabled]:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
|
|
500
|
-
color: oklch(from var(--button-variant-text-foreground) calc(l * .85) calc(c * .85) h);
|
|
501
|
-
}
|
|
502
408
|
}
|
|
503
409
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
4
|
.stop-button-krMTsl, .play-button-GfHYHO, .directional-button-kGS8rA {
|
|
5
5
|
color: #fff;
|
|
6
|
-
background-color: var(--primary-
|
|
6
|
+
background-color: var(--fill-primary-strong);
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
border-style: none;
|
|
9
9
|
border-radius: 100%;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
.stop-button-krMTsl:hover, .play-button-GfHYHO:hover, .stop-button-krMTsl:focus, .play-button-GfHYHO:focus, .directional-button-kGS8rA:hover, .directional-button-kGS8rA:focus {
|
|
41
41
|
color: #fff;
|
|
42
|
-
background-color: var(--primary-
|
|
42
|
+
background-color: var(--fill-primary-strong-hover);
|
|
43
43
|
transform: translateY(-5px);
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -105,14 +105,5 @@
|
|
|
105
105
|
.right-nFxLqo:hover, .right-nFxLqo:focus {
|
|
106
106
|
transform: translateX(5px);
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
:is(.dark .play-button-GfHYHO, .dark .stop-button-krMTsl, .dark .directional-button-kGS8rA) {
|
|
110
|
-
background-color: var(--primary-500);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
:is(.dark .play-button-GfHYHO:hover, .dark .stop-button-krMTsl:hover, .dark .play-button-GfHYHO:focus, .dark .stop-button-krMTsl:focus, .dark .directional-button-kGS8rA:hover, .dark .directional-button-kGS8rA:focus) {
|
|
114
|
-
color: #fff;
|
|
115
|
-
background-color: var(--primary-600);
|
|
116
|
-
}
|
|
117
108
|
}
|
|
118
109
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/copy-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/button/copy-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAK9C,UAAU,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,SAAkB,EAClB,UAAsB,EACtB,OAAO,EACP,IAAW,EACX,MAAM,EACN,SAAS,EACT,MAAM,EACN,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8DrC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import classnames from "classnames";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
|
-
import { CopyIcon } from "../../icons/index.js";
|
|
6
5
|
import { Tooltip } from "../tooltip/tooltip.js";
|
|
7
6
|
import { Button } from "./button.js";
|
|
8
7
|
import copy_button_module from "./copy-button.module.js";
|
|
@@ -27,7 +26,6 @@ function CopyButton({ text, hoverText = 'Copy', copiedText = 'Copied!', variant,
|
|
|
27
26
|
setCopied(void 0);
|
|
28
27
|
}, 900);
|
|
29
28
|
});
|
|
30
|
-
const svgColor = 'noeffect' === intent || 'secondary' === intent || 'warning' === intent || 'outlined' === variant || 'text' === variant ? copy_button_module["copy-button-foreground"] : copy_button_module["copy-button-foreground-reversed"];
|
|
31
29
|
const tooltipText = null != copied && copied ? copiedText : hoverText;
|
|
32
30
|
return /*#__PURE__*/ jsx("div", {
|
|
33
31
|
className: classnames(copy_button_module["copy-button-container"], containerClassName),
|
|
@@ -42,13 +40,22 @@ function CopyButton({ text, hoverText = 'Copy', copiedText = 'Copied!', variant,
|
|
|
42
40
|
intent: intent,
|
|
43
41
|
fullWidth: fullWidth,
|
|
44
42
|
ripple: ripple,
|
|
45
|
-
className: classnames('copy-button', variant, size, intent, copy_button_module[
|
|
43
|
+
className: classnames('copy-button', variant, size, intent, copy_button_module[size], className),
|
|
46
44
|
onClick: handleCopied,
|
|
47
45
|
...rest,
|
|
48
|
-
children: /*#__PURE__*/ jsx(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
children: /*#__PURE__*/ jsx("svg", {
|
|
47
|
+
className: svgClassName,
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
+
focusable: "false",
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
viewBox: "0 0 15 15",
|
|
52
|
+
strokeWidth: "0",
|
|
53
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
54
|
+
d: "M1 9.50006C1 10.3285 1.67157 11.0001 2.5 11.0001H4L4 10.0001H2.5C2.22386 10.0001 2 9.7762 2 9.50006L2 2.50006C2 2.22392 2.22386 2.00006 2.5 2.00006L9.5 2.00006C9.77614 2.00006 10 2.22392 10 2.50006V4.00002H5.5C4.67158 4.00002 4 4.67159 4 5.50002V12.5C4 13.3284 4.67158 14 5.5 14H12.5C13.3284 14 14 13.3284 14 12.5V5.50002C14 4.67159 13.3284 4.00002 12.5 4.00002H11V2.50006C11 1.67163 10.3284 1.00006 9.5 1.00006H2.5C1.67157 1.00006 1 1.67163 1 2.50006V9.50006ZM5 5.50002C5 5.22388 5.22386 5.00002 5.5 5.00002H12.5C12.7761 5.00002 13 5.22388 13 5.50002V12.5C13 12.7762 12.7761 13 12.5 13H5.5C5.22386 13 5 12.7762 5 12.5V5.50002Z",
|
|
55
|
+
fill: "currentColor",
|
|
56
|
+
fillRule: "evenodd",
|
|
57
|
+
clipRule: "evenodd"
|
|
58
|
+
})
|
|
52
59
|
})
|
|
53
60
|
})
|
|
54
61
|
})
|
|
@@ -4,10 +4,10 @@ const copy_button_module = {
|
|
|
4
4
|
copyButtonContainer: "copy-button-container-vCNz8o",
|
|
5
5
|
"copy-button": "copy-button-oa4bdj",
|
|
6
6
|
copyButton: "copy-button-oa4bdj",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
xs: "xs-lZmf78",
|
|
8
|
+
sm: "sm-KNN1e5",
|
|
9
|
+
md: "md-OoH0l4",
|
|
10
|
+
lg: "lg-uu5ujz",
|
|
11
|
+
xl: "xl-pFYyrS"
|
|
12
12
|
};
|
|
13
13
|
export { copy_button_module as default };
|