@well-insight/ui 0.1.8 → 0.1.9

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/accordion/style.css +126 -125
  3. package/dist/auto-complete/style.css +126 -125
  4. package/dist/avatar/style.css +126 -125
  5. package/dist/badge/style.css +126 -125
  6. package/dist/block-ui/style.css +126 -125
  7. package/dist/breadcrumb/style.css +126 -125
  8. package/dist/button/style.css +126 -125
  9. package/dist/card/style.css +126 -125
  10. package/dist/carousel/style.css +126 -125
  11. package/dist/cascade-select/style.css +126 -125
  12. package/dist/checkbox/style.css +126 -125
  13. package/dist/chip/style.css +126 -125
  14. package/dist/command-menu/style.css +126 -125
  15. package/dist/config-provider/style.css +126 -125
  16. package/dist/confirm-dialog/style.css +126 -125
  17. package/dist/confirm-popup/style.css +126 -125
  18. package/dist/context-menu/style.css +126 -125
  19. package/dist/data-view/style.css +126 -125
  20. package/dist/date-picker/style.css +126 -125
  21. package/dist/dialog/style.css +126 -125
  22. package/dist/divider/style.css +126 -125
  23. package/dist/dock/style.css +126 -125
  24. package/dist/drawer/style.css +126 -125
  25. package/dist/dropdown/style.css +126 -125
  26. package/dist/fieldset/style.css +126 -125
  27. package/dist/file-upload/style.css +126 -125
  28. package/dist/flex/style.css +126 -125
  29. package/dist/float-label/style.css +126 -125
  30. package/dist/fluid/style.css +126 -125
  31. package/dist/form/style.css +126 -125
  32. package/dist/gallery/style.css +126 -125
  33. package/dist/grid/style.css +126 -125
  34. package/dist/icon/style.css +126 -125
  35. package/dist/icon-field/style.css +126 -125
  36. package/dist/inplace/style.css +126 -125
  37. package/dist/input/style.css +126 -125
  38. package/dist/input-color/style.css +126 -125
  39. package/dist/input-group/style.css +126 -125
  40. package/dist/input-number/style.css +126 -125
  41. package/dist/input-otp/style.css +126 -125
  42. package/dist/input-password/style.css +126 -125
  43. package/dist/input-tags/style.css +126 -125
  44. package/dist/knob/style.css +126 -125
  45. package/dist/label/style.css +126 -125
  46. package/dist/layout/style.css +126 -125
  47. package/dist/listbox/style.css +126 -125
  48. package/dist/mega-menu/style.css +126 -125
  49. package/dist/menu/style.css +126 -125
  50. package/dist/menubar/style.css +126 -125
  51. package/dist/message/style.css +126 -125
  52. package/dist/meter-group/style.css +126 -125
  53. package/dist/order-list/style.css +126 -125
  54. package/dist/pagination/style.css +126 -125
  55. package/dist/panel/style.css +126 -125
  56. package/dist/pick-list/style.css +126 -125
  57. package/dist/popover/style.css +126 -125
  58. package/dist/progress-bar/style.css +126 -125
  59. package/dist/progress-spinner/style.css +126 -125
  60. package/dist/radio/style.css +126 -125
  61. package/dist/rating/style.css +126 -125
  62. package/dist/scroll-top/style.css +126 -125
  63. package/dist/scrollbar/style.css +126 -125
  64. package/dist/select/style.css +126 -125
  65. package/dist/select-button/style.css +126 -125
  66. package/dist/sidebar/style.css +126 -125
  67. package/dist/skeleton/style.css +126 -125
  68. package/dist/slider/style.css +126 -125
  69. package/dist/space/style.css +126 -125
  70. package/dist/speed-dial/style.css +126 -125
  71. package/dist/split-button/style.css +126 -125
  72. package/dist/splitter/style.css +126 -125
  73. package/dist/stepper/style.css +126 -125
  74. package/dist/styles/base.css +126 -125
  75. package/dist/styles.css +1 -1
  76. package/dist/switch/style.css +126 -125
  77. package/dist/table/style.css +126 -125
  78. package/dist/tabs/style.css +126 -125
  79. package/dist/tag/style.css +126 -125
  80. package/dist/terminal/style.css +126 -125
  81. package/dist/textarea/style.css +126 -125
  82. package/dist/tiered-menu/style.css +126 -125
  83. package/dist/timeline/style.css +126 -125
  84. package/dist/toast/style.css +126 -125
  85. package/dist/toggle-button/style.css +126 -125
  86. package/dist/toolbar/style.css +126 -125
  87. package/dist/tooltip/style.css +126 -125
  88. package/dist/tree/style.css +126 -125
  89. package/dist/tree-select/style.css +126 -125
  90. package/dist/tree-table/style.css +126 -125
  91. package/dist/virtual-scroller/style.css +126 -125
  92. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- /* Shared tokens consumption, type, focus, and mixed selectors. */
2
-
1
+ /* Shared tokens consumption, type, focus, and mixed selectors. */
2
+
3
3
  .wi-button,
4
4
  .wi-input,
5
5
  .wi-card,
@@ -59,14 +59,15 @@
59
59
  .wi-fluid,
60
60
  .wi-terminal {
61
61
  font-family: var(--wi-font-sans);
62
- }
63
-
62
+ box-sizing: border-box;
63
+ }
64
+
64
65
  .wi-button:disabled,
65
66
  .wi-input:disabled {
66
67
  cursor: not-allowed;
67
68
  opacity: var(--wi-opacity-disabled);
68
- }
69
-
69
+ }
70
+
70
71
  .wi-input-field__meta,
71
72
  .wi-textarea-field__meta,
72
73
  .wi-password-field__meta {
@@ -74,14 +75,14 @@
74
75
  display: flex;
75
76
  gap: var(--wi-space-2);
76
77
  justify-content: space-between;
77
- }
78
-
78
+ }
79
+
79
80
  .wi-input-field__meta:not(:has(.wi-input-field__help)),
80
81
  .wi-textarea-field__meta:not(:has(.wi-textarea-field__help)),
81
82
  .wi-password-field__meta:not(:has(.wi-password__feedback)) {
82
83
  justify-content: flex-end;
83
- }
84
-
84
+ }
85
+
85
86
  .wi-input-field__count,
86
87
  .wi-textarea-field__count,
87
88
  .wi-password-field__count {
@@ -89,16 +90,16 @@
89
90
  flex: 0 0 auto;
90
91
  font-size: var(--wi-font-size-xs);
91
92
  margin-left: auto;
92
- }
93
-
93
+ }
94
+
94
95
  .wi-dropdown__item--parent,
95
96
  .wi-contextmenu__item--parent {
96
97
  align-items: center;
97
98
  display: flex;
98
99
  justify-content: space-between;
99
100
  width: 100%;
100
- }
101
-
101
+ }
102
+
102
103
  .wi-dropdown__icon,
103
104
  .wi-dropdown__caret,
104
105
  .wi-menu__icon,
@@ -106,13 +107,13 @@
106
107
  .wi-contextmenu__icon,
107
108
  .wi-contextmenu__caret {
108
109
  flex-shrink: 0;
109
- }
110
-
110
+ }
111
+
111
112
  .wi-dropdown__submenu-wrap,
112
113
  .wi-contextmenu__submenu-wrap {
113
114
  position: relative;
114
- }
115
-
115
+ }
116
+
116
117
  .wi-dropdown__submenu,
117
118
  .wi-contextmenu__submenu {
118
119
  background: var(--wi-color-surface);
@@ -125,54 +126,54 @@
125
126
  position: absolute;
126
127
  top: 0;
127
128
  z-index: 1;
128
- }
129
-
129
+ }
130
+
130
131
  .wi-fade-enter-active,
131
132
  .wi-fade-leave-active {
132
133
  transition: opacity var(--wi-motion-exit) var(--wi-motion-ease);
133
- }
134
-
134
+ }
135
+
135
136
  .wi-fade-enter-from,
136
137
  .wi-fade-leave-to {
137
138
  opacity: 0;
138
- }
139
-
139
+ }
140
+
140
141
  .wi-scale-fade-enter-active {
141
142
  transition:
142
143
  opacity var(--wi-motion-enter) var(--wi-motion-ease),
143
144
  transform var(--wi-motion-enter) var(--wi-motion-ease);
144
- }
145
-
145
+ }
146
+
146
147
  .wi-scale-fade-leave-active {
147
148
  transition:
148
149
  opacity var(--wi-motion-exit) var(--wi-motion-ease),
149
150
  transform var(--wi-motion-exit) var(--wi-motion-ease);
150
- }
151
-
151
+ }
152
+
152
153
  .wi-scale-fade-enter-from,
153
154
  .wi-scale-fade-leave-to {
154
155
  opacity: 0;
155
156
  transform: translateY(calc(var(--wi-motion-distance) * -1)) scale(0.98);
156
- }
157
-
157
+ }
158
+
158
159
  .wi-slide-fade-enter-active {
159
160
  transition:
160
161
  opacity var(--wi-motion-enter) var(--wi-motion-ease),
161
162
  transform var(--wi-motion-enter) var(--wi-motion-ease);
162
- }
163
-
163
+ }
164
+
164
165
  .wi-slide-fade-leave-active {
165
166
  transition:
166
167
  opacity var(--wi-motion-exit) var(--wi-motion-ease),
167
168
  transform var(--wi-motion-exit) var(--wi-motion-ease);
168
- }
169
-
169
+ }
170
+
170
171
  .wi-slide-fade-enter-from,
171
172
  .wi-slide-fade-leave-to {
172
173
  opacity: 0;
173
174
  transform: translateY(calc(var(--wi-motion-distance) * -1));
174
- }
175
-
175
+ }
176
+
176
177
  .wi-checkbox,
177
178
  .wi-radio,
178
179
  .wi-switch {
@@ -184,21 +185,21 @@
184
185
  gap: var(--wi-space-2);
185
186
  /* 避免绝对定位 input 挂到上层 WiScrollbar,聚焦时把滚动容器拽回顶部 */
186
187
  position: relative;
187
- }
188
-
188
+ }
189
+
189
190
  .wi-checkbox--disabled,
190
191
  .wi-radio--disabled,
191
192
  .wi-switch--disabled {
192
193
  color: var(--wi-color-text-muted);
193
194
  cursor: not-allowed;
194
195
  opacity: var(--wi-opacity-disabled);
195
- }
196
-
196
+ }
197
+
197
198
  .wi-checkbox--invalid .wi-checkbox__control,
198
199
  .wi-radio--invalid .wi-radio__control {
199
200
  border-color: var(--wi-color-danger);
200
- }
201
-
201
+ }
202
+
202
203
  .wi-checkbox__input,
203
204
  .wi-radio__input,
204
205
  .wi-switch__input {
@@ -211,8 +212,8 @@
211
212
  position: absolute;
212
213
  white-space: nowrap;
213
214
  width: 1px;
214
- }
215
-
215
+ }
216
+
216
217
  .wi-checkbox__control,
217
218
  .wi-radio__control {
218
219
  align-items: center;
@@ -226,27 +227,27 @@
226
227
  background-color var(--wi-motion-fast) var(--wi-motion-ease),
227
228
  border-color var(--wi-motion-fast) var(--wi-motion-ease);
228
229
  width: 1.125rem;
229
- }
230
-
230
+ }
231
+
231
232
  .wi-checkbox__input:checked + .wi-checkbox__control,
232
233
  .wi-radio__input:checked + .wi-radio__control {
233
234
  background: var(--wi-color-primary);
234
235
  border-color: var(--wi-color-primary);
235
- }
236
-
236
+ }
237
+
237
238
  .wi-checkbox__input:focus-visible + .wi-checkbox__control,
238
239
  .wi-radio__input:focus-visible + .wi-radio__control,
239
240
  .wi-switch__input:focus-visible + .wi-switch__track {
240
241
  box-shadow: var(--wi-focus-shadow);
241
242
  outline: none;
242
- }
243
-
243
+ }
244
+
244
245
  .wi-checkbox__label,
245
246
  .wi-radio__label,
246
247
  .wi-switch__label {
247
248
  font-size: var(--wi-font-size-md);
248
- }
249
-
249
+ }
250
+
250
251
  .wi-textarea-field,
251
252
  .wi-select-field {
252
253
  display: grid;
@@ -256,31 +257,31 @@
256
257
  min-width: var(--wi-menu-min-width);
257
258
  position: relative;
258
259
  width: fit-content;
259
- }
260
-
260
+ }
261
+
261
262
  .wi-textarea-field--fluid,
262
263
  .wi-select-field--fluid {
263
264
  width: 100%;
264
- }
265
-
265
+ }
266
+
266
267
  .wi-textarea-field__label,
267
268
  .wi-select-field__label {
268
269
  color: var(--wi-color-text);
269
270
  font-size: var(--wi-font-size-md);
270
271
  font-weight: 600;
271
- }
272
-
272
+ }
273
+
273
274
  .wi-textarea-field__help,
274
275
  .wi-select-field__help {
275
276
  color: var(--wi-color-text-muted);
276
277
  font-size: var(--wi-font-size-xs);
277
- }
278
-
278
+ }
279
+
279
280
  .wi-textarea-field__help--error,
280
281
  .wi-select-field__help--error {
281
282
  color: var(--wi-color-danger);
282
- }
283
-
283
+ }
284
+
284
285
  .wi-textarea,
285
286
  .wi-select {
286
287
  background: var(--wi-color-surface);
@@ -293,55 +294,55 @@
293
294
  box-shadow var(--wi-motion-fast) var(--wi-motion-ease),
294
295
  background-color var(--wi-motion-fast) var(--wi-motion-ease);
295
296
  width: 100%;
296
- }
297
-
297
+ }
298
+
298
299
  .wi-textarea--invalid:focus-visible,
299
300
  .wi-textarea--error:focus-visible,
300
301
  .wi-select--error.wi-select--open,
301
302
  .wi-select--error:focus-visible {
302
303
  border-color: var(--wi-color-danger);
303
304
  box-shadow: var(--wi-focus-shadow-danger);
304
- }
305
-
305
+ }
306
+
306
307
  .wi-textarea:disabled,
307
308
  .wi-select:disabled,
308
309
  .wi-select--disabled {
309
310
  cursor: not-allowed;
310
311
  opacity: var(--wi-opacity-disabled);
311
- }
312
-
312
+ }
313
+
313
314
  .wi-icon-field--left :is(.wi-input, .wi-password__input, .wi-inputnumber__input, input) {
314
315
  padding-left: 2.5rem;
315
- }
316
-
316
+ }
317
+
317
318
  .wi-icon-field--right :is(.wi-input, .wi-password__input, .wi-inputnumber__input, input) {
318
319
  padding-right: var(--wi-control-affix-padding);
319
- }
320
-
320
+ }
321
+
321
322
  .wi-inputgroup > .wi-input,
322
323
  .wi-inputgroup > .wi-input-field,
323
324
  .wi-inputgroup > .wi-password-field,
324
325
  .wi-inputgroup > .wi-inputnumber-field {
325
326
  flex: 1 1 auto;
326
327
  min-width: 0;
327
- }
328
-
328
+ }
329
+
329
330
  .wi-inputgroup > .wi-input-field,
330
331
  .wi-inputgroup > .wi-password-field,
331
332
  .wi-inputgroup > .wi-inputnumber-field {
332
333
  display: flex;
333
334
  flex-direction: column;
334
335
  gap: 0;
335
- }
336
-
336
+ }
337
+
337
338
  .wi-inputgroup > .wi-input,
338
339
  .wi-inputgroup .wi-input,
339
340
  .wi-inputgroup .wi-password__input,
340
341
  .wi-inputgroup .wi-inputnumber__input {
341
342
  border-radius: 0;
342
343
  width: 100%;
343
- }
344
-
344
+ }
345
+
345
346
  .wi-inputgroup > :first-child.wi-input,
346
347
  .wi-inputgroup > :first-child .wi-input,
347
348
  .wi-inputgroup > :first-child .wi-password__input,
@@ -349,8 +350,8 @@
349
350
  .wi-inputgroup > :first-child.wi-inputgroup-addon {
350
351
  border-bottom-left-radius: var(--wi-radius-control);
351
352
  border-top-left-radius: var(--wi-radius-control);
352
- }
353
-
353
+ }
354
+
354
355
  .wi-inputgroup > :last-child.wi-input,
355
356
  .wi-inputgroup > :last-child .wi-input,
356
357
  .wi-inputgroup > :last-child .wi-password__input,
@@ -358,32 +359,32 @@
358
359
  .wi-inputgroup > :last-child.wi-inputgroup-addon {
359
360
  border-bottom-right-radius: var(--wi-radius-control);
360
361
  border-top-right-radius: var(--wi-radius-control);
361
- }
362
-
362
+ }
363
+
363
364
  .wi-inputgroup > .wi-inputgroup-addon + .wi-input,
364
365
  .wi-inputgroup > .wi-inputgroup-addon + .wi-input-field .wi-input,
365
366
  .wi-inputgroup > .wi-input + .wi-inputgroup-addon,
366
367
  .wi-inputgroup > .wi-input-field + .wi-inputgroup-addon {
367
368
  margin-left: -1px;
368
- }
369
-
369
+ }
370
+
370
371
  .wi-layout__scrollbar > .wi-scrollbar__wrap {
371
372
  height: 100%;
372
373
  overflow-x: hidden;
373
- }
374
-
374
+ }
375
+
375
376
  .wi-layout-sider__scrollbar > .wi-scrollbar__wrap {
376
377
  height: 100%;
377
378
  overflow-x: hidden;
378
- }
379
-
379
+ }
380
+
380
381
  .wi-menu__item--selected,
381
382
  .wi-menubar__trigger--selected,
382
383
  .wi-menubar__subitem--selected {
383
384
  background: color-mix(in srgb, var(--wi-color-primary) 12%, var(--wi-color-surface));
384
385
  color: var(--wi-color-primary);
385
- }
386
-
386
+ }
387
+
387
388
  .wi-orderlist__btn,
388
389
  .wi-picklist__btn {
389
390
  align-items: center;
@@ -399,25 +400,25 @@
399
400
  min-height: var(--wi-control-height-small, 1.75rem);
400
401
  min-width: var(--wi-control-affix-size);
401
402
  padding: var(--wi-space-1) var(--wi-space-2);
402
- }
403
-
403
+ }
404
+
404
405
  .wi-orderlist__btn:hover,
405
406
  .wi-picklist__btn:hover {
406
407
  border-color: var(--wi-color-primary);
407
408
  color: var(--wi-color-primary);
408
- }
409
-
409
+ }
410
+
410
411
  .wi-orderlist__btn:focus-visible,
411
412
  .wi-picklist__btn:focus-visible {
412
413
  border-color: var(--wi-color-primary);
413
414
  box-shadow: var(--wi-focus-shadow);
414
415
  outline: none;
415
- }
416
-
416
+ }
417
+
417
418
  .wi-picklist__btn .wi-icon + .wi-icon {
418
419
  margin-left: -0.35rem;
419
- }
420
-
420
+ }
421
+
421
422
  .wi-orderlist__list,
422
423
  .wi-picklist__list {
423
424
  background: var(--wi-color-surface);
@@ -431,33 +432,33 @@
431
432
  min-width: var(--wi-menu-min-width);
432
433
  overflow: auto;
433
434
  padding: var(--wi-space-1);
434
- }
435
-
435
+ }
436
+
436
437
  .wi-orderlist__item,
437
438
  .wi-picklist__item {
438
439
  border-radius: var(--wi-radius-sm);
439
440
  cursor: pointer;
440
441
  padding: var(--wi-space-2) var(--wi-space-3);
441
- }
442
-
442
+ }
443
+
443
444
  .wi-orderlist__item:hover,
444
445
  .wi-picklist__item:hover {
445
446
  background: color-mix(in srgb, var(--wi-color-primary) 8%, var(--wi-color-surface));
446
- }
447
-
447
+ }
448
+
448
449
  .wi-orderlist__item:focus-visible,
449
450
  .wi-picklist__item:focus-visible {
450
451
  box-shadow: var(--wi-focus-shadow);
451
452
  outline: none;
452
- }
453
-
453
+ }
454
+
454
455
  .wi-orderlist__item--selected,
455
456
  .wi-picklist__item--selected {
456
457
  background: color-mix(in srgb, var(--wi-color-primary) 14%, var(--wi-color-surface));
457
458
  color: var(--wi-color-primary);
458
459
  font-weight: 600;
459
- }
460
-
460
+ }
461
+
461
462
  .wi-carousel__nav,
462
463
  .wi-gallery__nav {
463
464
  background: var(--wi-color-surface);
@@ -469,14 +470,14 @@
469
470
  font: inherit;
470
471
  height: var(--wi-control-affix-size);
471
472
  width: var(--wi-control-affix-size);
472
- }
473
-
473
+ }
474
+
474
475
  .wi-carousel__nav:disabled,
475
476
  .wi-gallery__nav:disabled {
476
477
  cursor: not-allowed;
477
478
  opacity: 0.4;
478
- }
479
-
479
+ }
480
+
480
481
  /* Shared Naive-like hover/focus for remaining form triggers */
481
482
  .wi-inputnumber__input:hover:not(:disabled):not(:focus),
482
483
  .wi-password__input:hover:not(:disabled):not(:focus),
@@ -489,8 +490,8 @@
489
490
  .wi-togglebutton:hover:not(:disabled):not(.wi-togglebutton--checked),
490
491
  .wi-inplace__display:hover {
491
492
  border-color: var(--wi-color-primary-hover);
492
- }
493
-
493
+ }
494
+
494
495
  .wi-inputnumber__input:focus-visible,
495
496
  .wi-password__input:focus-visible,
496
497
  .wi-datepicker__input:focus-visible,
@@ -508,34 +509,34 @@
508
509
  border-color: var(--wi-color-primary-hover);
509
510
  box-shadow: var(--wi-focus-shadow);
510
511
  outline: none;
511
- }
512
-
512
+ }
513
+
513
514
  .wi-inputnumber--invalid .wi-inputnumber__input:focus-visible,
514
515
  .wi-password--invalid .wi-password__input:focus-visible,
515
516
  .wi-datepicker--invalid .wi-datepicker__input:focus-visible {
516
517
  border-color: var(--wi-color-danger);
517
518
  box-shadow: var(--wi-focus-shadow-danger);
518
- }
519
-
519
+ }
520
+
520
521
  .wi-checkbox-group,
521
522
  .wi-radio-group {
522
523
  display: flex;
523
524
  flex-wrap: wrap;
524
525
  gap: var(--wi-space-3);
525
- }
526
-
526
+ }
527
+
527
528
  .wi-checkbox--small .wi-checkbox__control,
528
529
  .wi-radio--small .wi-radio__control {
529
530
  height: 0.95rem;
530
531
  width: 0.95rem;
531
- }
532
-
532
+ }
533
+
533
534
  .wi-checkbox--large .wi-checkbox__control,
534
535
  .wi-radio--large .wi-radio__control {
535
536
  height: 1.35rem;
536
537
  width: 1.35rem;
537
- }
538
-
538
+ }
539
+
539
540
  .wi-inputnumber__clear,
540
541
  .wi-autocomplete__clear {
541
542
  background: transparent;
@@ -544,4 +545,4 @@
544
545
  cursor: pointer;
545
546
  font: inherit;
546
547
  line-height: 1;
547
- }
548
+ }