@fangxinyan/lumina 0.6.2 → 0.6.3

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 (141) hide show
  1. package/README.md +2 -1
  2. package/dist/{Alert-JJ7GB3UU.css → Alert-QBKIDY5H.css} +7 -0
  3. package/dist/Alert.cjs +3 -3
  4. package/dist/Alert.d.cts +3 -2
  5. package/dist/Alert.d.ts +3 -2
  6. package/dist/Alert.js +2 -2
  7. package/dist/AutoComplete.cjs +5 -5
  8. package/dist/AutoComplete.js +4 -4
  9. package/dist/Badge.d.cts +1 -0
  10. package/dist/Badge.d.ts +1 -0
  11. package/dist/{Button-SDQD25AG.css → Button-4Z3Q6KII.css} +56 -36
  12. package/dist/Button.cjs +3 -3
  13. package/dist/Button.d.cts +6 -5
  14. package/dist/Button.d.ts +6 -5
  15. package/dist/Button.js +2 -2
  16. package/dist/Calendar.cjs +3 -3
  17. package/dist/Calendar.js +2 -2
  18. package/dist/{Cascader-C2DFSMKJ.css → Cascader-3BLLA7EN.css} +13 -0
  19. package/dist/Cascader.cjs +5 -5
  20. package/dist/Cascader.d.cts +4 -2
  21. package/dist/Cascader.d.ts +4 -2
  22. package/dist/Cascader.js +4 -4
  23. package/dist/Checkbox.cjs +3 -3
  24. package/dist/Checkbox.js +2 -2
  25. package/dist/Collapse.cjs +3 -3
  26. package/dist/Collapse.js +2 -2
  27. package/dist/CommandPalette.cjs +5 -5
  28. package/dist/CommandPalette.js +4 -4
  29. package/dist/Drawer.cjs +3 -3
  30. package/dist/Drawer.js +2 -2
  31. package/dist/Icon.cjs +55 -47
  32. package/dist/Icon.d.cts +9 -1
  33. package/dist/Icon.d.ts +9 -1
  34. package/dist/Icon.js +1 -1
  35. package/dist/{Image-4MN34O6P.css → Image-MRYQCRQ5.css} +78 -0
  36. package/dist/Image.cjs +12 -4
  37. package/dist/Image.d.cts +79 -6
  38. package/dist/Image.d.ts +79 -6
  39. package/dist/Image.js +2 -2
  40. package/dist/{Input-3G4ONWNU.css → Input-HUBJ55OH.css} +10 -0
  41. package/dist/Input.cjs +5 -5
  42. package/dist/Input.d.cts +4 -3
  43. package/dist/Input.d.ts +4 -3
  44. package/dist/Input.js +3 -3
  45. package/dist/InputNumber.cjs +5 -5
  46. package/dist/InputNumber.js +4 -4
  47. package/dist/Message.cjs +6 -6
  48. package/dist/Message.js +2 -2
  49. package/dist/Modal.cjs +4 -4
  50. package/dist/Modal.d.cts +1 -0
  51. package/dist/Modal.d.ts +1 -0
  52. package/dist/Modal.js +3 -3
  53. package/dist/Pagination.cjs +7 -7
  54. package/dist/Pagination.js +6 -6
  55. package/dist/{Select-JVBQAZBG.css → Select-Z5VYPEEY.css} +26 -1
  56. package/dist/Select.cjs +6 -6
  57. package/dist/Select.d.cts +4 -3
  58. package/dist/Select.d.ts +4 -3
  59. package/dist/Select.js +5 -5
  60. package/dist/Table.cjs +9 -9
  61. package/dist/Table.js +8 -8
  62. package/dist/TablePro.cjs +10 -10
  63. package/dist/TablePro.js +9 -9
  64. package/dist/{Tag-LB3OOJAO.css → Tag-HDYCDPFS.css} +14 -1
  65. package/dist/Tag.cjs +3 -3
  66. package/dist/Tag.d.cts +4 -3
  67. package/dist/Tag.d.ts +4 -3
  68. package/dist/Tag.js +2 -2
  69. package/dist/Textarea.cjs +4 -4
  70. package/dist/Textarea.js +2 -2
  71. package/dist/Theme.cjs +14 -10
  72. package/dist/Theme.d.cts +29 -6
  73. package/dist/Theme.d.ts +29 -6
  74. package/dist/Theme.js +1 -1
  75. package/dist/Typography.cjs +7 -7
  76. package/dist/Typography.d.cts +1 -0
  77. package/dist/Typography.d.ts +1 -0
  78. package/dist/Typography.js +2 -2
  79. package/dist/{chunk-MT7UWY6T.cjs → chunk-2HQCUBA7.cjs} +2 -2
  80. package/dist/{chunk-OF3SGLZY.js → chunk-47VG2P34.js} +9 -1
  81. package/dist/{chunk-ZIP7F4UF.cjs → chunk-5DKRY67M.cjs} +4 -4
  82. package/dist/{chunk-DQTSTJ6O.js → chunk-5H5YP2TB.js} +3 -3
  83. package/dist/{chunk-QGHYQCF3.cjs → chunk-5MN3PMF4.cjs} +8 -8
  84. package/dist/{chunk-FBVVRTX2.cjs → chunk-6HMTV6P4.cjs} +2 -2
  85. package/dist/{chunk-RF2EY5JS.cjs → chunk-6ZXQJRAT.cjs} +153 -34
  86. package/dist/{chunk-4WTU5P3O.cjs → chunk-7AG524YZ.cjs} +3 -3
  87. package/dist/{chunk-CEJ7VBR6.js → chunk-7IYKKLV3.js} +2 -2
  88. package/dist/{chunk-FJNWUELL.js → chunk-AAGF7K3L.js} +1 -1
  89. package/dist/{chunk-AWXCSX6J.js → chunk-BPOOVO5T.js} +3 -3
  90. package/dist/{chunk-EJBHR2P5.js → chunk-BVQ77VRY.js} +2 -2
  91. package/dist/{chunk-7NGMQIST.js → chunk-CETNCRZ4.js} +2 -2
  92. package/dist/{chunk-K2KYM7LW.cjs → chunk-DG5VQ6BO.cjs} +2 -2
  93. package/dist/chunk-DWAN57G4.js +243 -0
  94. package/dist/{chunk-CXWEOAVU.js → chunk-ET6DYQVZ.js} +1 -1
  95. package/dist/{chunk-WKKSAGYH.js → chunk-FBYUZOZP.js} +7 -7
  96. package/dist/{chunk-EIY7KEJ3.cjs → chunk-FGW5GJ22.cjs} +2 -2
  97. package/dist/{chunk-33NCTOEB.js → chunk-FWPBORRB.js} +1 -1
  98. package/dist/{chunk-EQEJTN3V.js → chunk-GIZU3H6H.js} +1 -1
  99. package/dist/{chunk-HPFQXYKG.cjs → chunk-H4LGWZMH.cjs} +9 -9
  100. package/dist/{chunk-6LZ54NPO.cjs → chunk-HKF2V5MM.cjs} +33 -23
  101. package/dist/{chunk-WGZ2KJTZ.js → chunk-HLFH5HWR.js} +1 -1
  102. package/dist/{chunk-UMDGS4BP.js → chunk-I5WTQ5Y3.js} +4 -4
  103. package/dist/{chunk-MUXP7ASL.js → chunk-J2HZTJO6.js} +1 -1
  104. package/dist/{chunk-NN25YMOL.js → chunk-J5ZGYQZK.js} +153 -35
  105. package/dist/{chunk-CHMCL7AV.js → chunk-JCEHZ336.js} +1 -1
  106. package/dist/{chunk-FFZ6OMZI.js → chunk-JVUVOR6S.js} +1 -1
  107. package/dist/{chunk-ON4DEDMI.js → chunk-K5IGFBDR.js} +1 -1
  108. package/dist/{chunk-35ZGBAA3.cjs → chunk-K7FV7W6U.cjs} +5 -5
  109. package/dist/{chunk-XD3JGL5O.js → chunk-ME5BZ2WA.js} +1 -1
  110. package/dist/{chunk-OQBDU5I2.cjs → chunk-MPVCYU2K.cjs} +2 -2
  111. package/dist/{chunk-CUXV6QNN.cjs → chunk-P6EZG2R7.cjs} +5 -5
  112. package/dist/{chunk-SKMP2A5O.cjs → chunk-P6P4DGLF.cjs} +2 -2
  113. package/dist/{chunk-TEG7NJHS.cjs → chunk-PULGVK2I.cjs} +2 -2
  114. package/dist/{chunk-TZJH5HBT.cjs → chunk-QP3VCSRY.cjs} +5 -5
  115. package/dist/{chunk-MQV2XN4B.cjs → chunk-R2TEDH2F.cjs} +5 -5
  116. package/dist/{chunk-JD7A6VM3.js → chunk-SQGPSMSK.js} +5 -5
  117. package/dist/{chunk-GNEZQMKH.js → chunk-TGL5BGMR.js} +4 -4
  118. package/dist/{chunk-5WAXZJG5.cjs → chunk-TP567B3L.cjs} +5 -5
  119. package/dist/{chunk-XTIN5545.js → chunk-UKS23N3L.js} +31 -21
  120. package/dist/{chunk-TJII7BQ2.cjs → chunk-V272XR3F.cjs} +10 -0
  121. package/dist/chunk-VFFIE2VO.cjs +271 -0
  122. package/dist/{chunk-OYMJVU66.cjs → chunk-X5GCOMC3.cjs} +15 -15
  123. package/dist/{chunk-3AS5B7MQ.cjs → chunk-XSN4TLN5.cjs} +10 -10
  124. package/dist/{chunk-6ACKL3WH.cjs → chunk-ZKE73UQF.cjs} +3 -3
  125. package/dist/index.cjs +130 -110
  126. package/dist/index.d.cts +5 -5
  127. package/dist/index.d.ts +5 -5
  128. package/dist/index.js +24 -24
  129. package/dist/styles.css +202 -38
  130. package/docs/llms/alert.md +4 -3
  131. package/docs/llms/button.md +4 -3
  132. package/docs/llms/cascader.md +3 -0
  133. package/docs/llms/image.md +72 -1
  134. package/docs/llms/input.md +3 -2
  135. package/docs/llms/select.md +2 -2
  136. package/docs/llms/tag.md +3 -2
  137. package/docs/llms/theme.md +41 -4
  138. package/docs/llms.md +4 -4
  139. package/package.json +16 -1
  140. package/dist/chunk-B2KEZQ6S.cjs +0 -116
  141. package/dist/chunk-PH3YECMF.js +0 -90
package/README.md CHANGED
@@ -92,10 +92,11 @@ package/
92
92
  所有设计令牌都在 `:root` 上定义,可以通过 `data-*` 属性切换主题:
93
93
 
94
94
  ```html
95
- <html data-theme="dark" data-accent="sky" data-density="compact">
95
+ <html data-theme="dark" data-theme-mode="graphite" data-accent="sky" data-density="compact">
96
96
  ```
97
97
 
98
98
  - `data-theme`: `light` | `dark`
99
+ - `data-theme-mode`: 当前模式名,例如 `light` / `dark` / `system` / 自定义模式名
99
100
  - `data-accent`: `rose` | `sky` | `coral` | `mint` | `violet` | `amber`
100
101
  - `data-density`: `compact` | `comfortable` | `spacious`
101
102
 
@@ -14,6 +14,13 @@
14
14
  display: grid; place-items: center;
15
15
  flex-shrink: 0;
16
16
  margin-top: 1px;
17
+ line-height: 0;
18
+ }
19
+ .alert-ico img {
20
+ display: block;
21
+ width: 16px;
22
+ height: 16px;
23
+ object-fit: contain;
17
24
  }
18
25
  .alert.info .alert-ico { color: var(--info); }
19
26
  .alert.success .alert-ico { color: var(--success); }
package/dist/Alert.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk35ZGBAA3_cjs = require('./chunk-35ZGBAA3.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunkK7FV7W6U_cjs = require('./chunk-K7FV7W6U.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Alert", {
9
9
  enumerable: true,
10
- get: function () { return chunk35ZGBAA3_cjs.Alert; }
10
+ get: function () { return chunkK7FV7W6U_cjs.Alert; }
11
11
  });
package/dist/Alert.d.cts CHANGED
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
- import { IconName } from './Icon.cjs';
2
+ import { IconSlot } from './Icon.cjs';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  type AlertTone = "info" | "success" | "warning" | "danger";
5
6
  interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "children"> {
6
7
  tone?: AlertTone;
7
8
  title?: React.ReactNode;
8
9
  children?: React.ReactNode;
9
- icon?: IconName;
10
+ icon?: IconSlot;
10
11
  /** Controls the leading semantic icon. Defaults to `true`. */
11
12
  showIcon?: boolean;
12
13
  closable?: boolean;
package/dist/Alert.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
- import { IconName } from './Icon.js';
2
+ import { IconSlot } from './Icon.js';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  type AlertTone = "info" | "success" | "warning" | "danger";
5
6
  interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "children"> {
6
7
  tone?: AlertTone;
7
8
  title?: React.ReactNode;
8
9
  children?: React.ReactNode;
9
- icon?: IconName;
10
+ icon?: IconSlot;
10
11
  /** Controls the leading semantic icon. Defaults to `true`. */
11
12
  showIcon?: boolean;
12
13
  closable?: boolean;
package/dist/Alert.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Alert } from './chunk-UMDGS4BP.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Alert } from './chunk-I5WTQ5Y3.js';
2
+ import './chunk-47VG2P34.js';
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkSKMP2A5O_cjs = require('./chunk-SKMP2A5O.cjs');
3
+ var chunkP6P4DGLF_cjs = require('./chunk-P6P4DGLF.cjs');
4
4
  require('./chunk-YB3IWIOJ.cjs');
5
- require('./chunk-6LZ54NPO.cjs');
6
- require('./chunk-OQBDU5I2.cjs');
7
- require('./chunk-TJII7BQ2.cjs');
5
+ require('./chunk-HKF2V5MM.cjs');
6
+ require('./chunk-MPVCYU2K.cjs');
7
+ require('./chunk-V272XR3F.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AutoComplete", {
12
12
  enumerable: true,
13
- get: function () { return chunkSKMP2A5O_cjs.AutoComplete; }
13
+ get: function () { return chunkP6P4DGLF_cjs.AutoComplete; }
14
14
  });
@@ -1,5 +1,5 @@
1
- export { AutoComplete } from './chunk-FJNWUELL.js';
1
+ export { AutoComplete } from './chunk-AAGF7K3L.js';
2
2
  import './chunk-DUFRASGO.js';
3
- import './chunk-XTIN5545.js';
4
- import './chunk-WGZ2KJTZ.js';
5
- import './chunk-OF3SGLZY.js';
3
+ import './chunk-UKS23N3L.js';
4
+ import './chunk-HLFH5HWR.js';
5
+ import './chunk-47VG2P34.js';
package/dist/Badge.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TagTone } from './Tag.cjs';
3
3
  import './Icon.cjs';
4
+ import 'react/jsx-runtime';
4
5
 
5
6
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
6
7
  /** Numeric count — renders as "max+" if greater than `max`. */
package/dist/Badge.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TagTone } from './Tag.js';
3
3
  import './Icon.js';
4
+ import 'react/jsx-runtime';
4
5
 
5
6
  interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
6
7
  /** Numeric count — renders as "max+" if greater than `max`. */
@@ -6,7 +6,7 @@
6
6
  gap: 8px;
7
7
  height: var(--ctrl-h);
8
8
  padding: 0 var(--ctrl-pad-x);
9
- border: none;
9
+ border: 1px solid transparent;
10
10
  border-radius: var(--r-md);
11
11
  font-size: 13px;
12
12
  font-weight: 500;
@@ -18,58 +18,71 @@
18
18
  user-select: none;
19
19
  white-space: nowrap;
20
20
  flex-shrink: 0;
21
- transition: all var(--dur-fast) var(--ease);
21
+ transition:
22
+ background var(--dur-fast) var(--ease),
23
+ box-shadow var(--dur-fast) var(--ease),
24
+ color var(--dur-fast) var(--ease);
25
+ }
26
+ .btn > svg,
27
+ .btn-icon-slot {
28
+ flex-shrink: 0;
29
+ }
30
+ .btn-icon-slot {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ line-height: 0;
35
+ }
36
+ .btn-icon-slot img {
37
+ display: block;
38
+ max-width: 1.25em;
39
+ max-height: 1.25em;
40
+ object-fit: contain;
22
41
  }
23
- .btn > svg { flex-shrink: 0; }
24
42
  .btn.icon {
25
43
  flex-shrink: 0;
26
44
  overflow: visible;
27
45
  }
28
- .btn:hover { color: var(--accent-ink); }
29
- .btn:active, .btn.pressed {
30
- box-shadow: var(--neu-in-sm);
31
- color: var(--accent-ink);
32
- }
33
46
 
34
47
  .btn.primary {
35
48
  color: var(--accent-ink);
36
- background:
37
- linear-gradient(145deg,
38
- color-mix(in oklch, var(--accent-soft) 80%, var(--shadow-light)),
39
- color-mix(in oklch, var(--accent-soft) 92%, var(--bg)));
40
- box-shadow:
41
- var(--neu-out-sm),
42
- inset 1px 1px 0 color-mix(in oklch, var(--shadow-light) 60%, transparent),
43
- inset -1px -1px 0 color-mix(in oklch, var(--accent) 15%, transparent);
49
+ background: color-mix(in oklch, var(--accent-soft) 62%, var(--bg));
44
50
  font-weight: 600;
45
51
  }
46
- .btn.primary:hover {
47
- background:
48
- linear-gradient(145deg,
49
- color-mix(in oklch, var(--accent-soft) 70%, var(--shadow-light)),
50
- color-mix(in oklch, var(--accent) 18%, var(--accent-soft)));
51
- box-shadow:
52
- var(--neu-out-sm),
53
- inset 1px 1px 0 color-mix(in oklch, var(--shadow-light) 70%, transparent),
54
- inset -1px -1px 0 color-mix(in oklch, var(--accent) 20%, transparent),
55
- 0 0 16px -6px var(--accent-glow);
56
- }
57
- .btn.primary:active, .btn.primary.pressed {
58
- box-shadow:
59
- inset 2px 2px 4px color-mix(in oklch, var(--accent) 25%, var(--shadow-dark)),
60
- inset -1px -1px 2px var(--shadow-light);
61
- transform: none;
62
- }
63
52
 
64
53
  .btn.ghost {
65
54
  background: transparent;
66
55
  box-shadow: none;
67
56
  color: var(--fg-muted);
68
57
  }
69
- .btn.ghost:hover { background: var(--bg); box-shadow: var(--neu-flat); color: var(--fg); }
70
58
 
71
59
  .btn.danger { color: var(--danger); }
72
- .btn.danger:hover { color: var(--danger); }
60
+
61
+ .btn:hover {
62
+ box-shadow: var(--neu-out);
63
+ }
64
+ .btn.ghost:hover {
65
+ background: var(--bg);
66
+ border-color: transparent;
67
+ box-shadow: var(--neu-flat);
68
+ color: var(--fg);
69
+ }
70
+ .btn.danger:hover {
71
+ color: var(--danger);
72
+ }
73
+ .btn:active,
74
+ .btn.pressed {
75
+ box-shadow: var(--neu-in);
76
+ }
77
+ .btn.ghost:active,
78
+ .btn.ghost.pressed {
79
+ background: var(--bg);
80
+ color: var(--fg);
81
+ }
82
+ .btn.danger:active,
83
+ .btn.danger.pressed {
84
+ color: var(--danger);
85
+ }
73
86
 
74
87
  .btn.icon { width: var(--ctrl-h); padding: 0; }
75
88
  .btn.sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: var(--r-sm); }
@@ -82,10 +95,17 @@
82
95
  .btn[disabled], .btn.disabled, .btn:disabled {
83
96
  color: var(--fg-subtle);
84
97
  cursor: not-allowed;
98
+ border-color: transparent;
99
+ box-shadow: var(--neu-flat);
100
+ transform: none;
101
+ }
102
+ .btn[disabled]:hover, .btn:disabled:hover, .btn.disabled:hover {
103
+ color: var(--fg-subtle);
104
+ background: var(--bg);
105
+ border-color: transparent;
85
106
  box-shadow: var(--neu-flat);
86
107
  transform: none;
87
108
  }
88
- .btn[disabled]:hover, .btn:disabled:hover, .btn.disabled:hover { transform: none; color: var(--fg-subtle); background: var(--bg); }
89
109
 
90
110
  .btn.loading { cursor: wait; }
91
111
  .btn .spinner {
package/dist/Button.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk5WAXZJG5_cjs = require('./chunk-5WAXZJG5.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunkTP567B3L_cjs = require('./chunk-TP567B3L.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Button", {
9
9
  enumerable: true,
10
- get: function () { return chunk5WAXZJG5_cjs.Button; }
10
+ get: function () { return chunkTP567B3L_cjs.Button; }
11
11
  });
package/dist/Button.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- import { IconName } from './Icon.cjs';
2
+ import { IconSlot } from './Icon.cjs';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  type ButtonVariant = "default" | "primary" | "ghost" | "danger";
5
6
  type ButtonSize = "sm" | "md" | "lg";
@@ -8,10 +9,10 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
8
9
  variant?: ButtonVariant;
9
10
  /** Control height preset. */
10
11
  size?: ButtonSize;
11
- /** Leading icon. */
12
- icon?: IconName;
13
- /** Trailing icon. */
14
- trailingIcon?: IconName;
12
+ /** Leading icon. Accepts a built-in icon name or custom React node. */
13
+ icon?: IconSlot;
14
+ /** Trailing icon. Accepts a built-in icon name or custom React node. */
15
+ trailingIcon?: IconSlot;
15
16
  /** Render as a square icon-only button. Automatically enabled when `icon` is set and no children are provided. */
16
17
  iconOnly?: boolean;
17
18
  /** Native tooltip/title for compact icon-only buttons. */
package/dist/Button.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
- import { IconName } from './Icon.js';
2
+ import { IconSlot } from './Icon.js';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  type ButtonVariant = "default" | "primary" | "ghost" | "danger";
5
6
  type ButtonSize = "sm" | "md" | "lg";
@@ -8,10 +9,10 @@ interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>
8
9
  variant?: ButtonVariant;
9
10
  /** Control height preset. */
10
11
  size?: ButtonSize;
11
- /** Leading icon. */
12
- icon?: IconName;
13
- /** Trailing icon. */
14
- trailingIcon?: IconName;
12
+ /** Leading icon. Accepts a built-in icon name or custom React node. */
13
+ icon?: IconSlot;
14
+ /** Trailing icon. Accepts a built-in icon name or custom React node. */
15
+ trailingIcon?: IconSlot;
15
16
  /** Render as a square icon-only button. Automatically enabled when `icon` is set and no children are provided. */
16
17
  iconOnly?: boolean;
17
18
  /** Native tooltip/title for compact icon-only buttons. */
package/dist/Button.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Button } from './chunk-JD7A6VM3.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Button } from './chunk-SQGPSMSK.js';
2
+ import './chunk-47VG2P34.js';
package/dist/Calendar.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunk4WTU5P3O_cjs = require('./chunk-4WTU5P3O.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunk7AG524YZ_cjs = require('./chunk-7AG524YZ.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Calendar", {
9
9
  enumerable: true,
10
- get: function () { return chunk4WTU5P3O_cjs.Calendar; }
10
+ get: function () { return chunk7AG524YZ_cjs.Calendar; }
11
11
  });
package/dist/Calendar.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Calendar } from './chunk-33NCTOEB.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Calendar } from './chunk-FWPBORRB.js';
2
+ import './chunk-47VG2P34.js';
@@ -126,6 +126,19 @@
126
126
  width: 100%;
127
127
  text-align: left;
128
128
  }
129
+ .cascader-icon {
130
+ display: inline-flex;
131
+ align-items: center;
132
+ justify-content: center;
133
+ line-height: 0;
134
+ flex-shrink: 0;
135
+ }
136
+ .cascader-icon img {
137
+ display: block;
138
+ width: 15px;
139
+ height: 15px;
140
+ object-fit: contain;
141
+ }
129
142
  .cascader-item:hover { background: var(--bg); box-shadow: var(--neu-flat); color: var(--accent-ink); }
130
143
  .cascader-item.active {
131
144
  background: var(--bg);
package/dist/Cascader.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunkQGHYQCF3_cjs = require('./chunk-QGHYQCF3.cjs');
3
+ var chunk5MN3PMF4_cjs = require('./chunk-5MN3PMF4.cjs');
4
4
  require('./chunk-YB3IWIOJ.cjs');
5
- require('./chunk-6LZ54NPO.cjs');
6
- require('./chunk-OQBDU5I2.cjs');
7
- require('./chunk-TJII7BQ2.cjs');
5
+ require('./chunk-HKF2V5MM.cjs');
6
+ require('./chunk-MPVCYU2K.cjs');
7
+ require('./chunk-V272XR3F.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "Cascader", {
12
12
  enumerable: true,
13
- get: function () { return chunkQGHYQCF3_cjs.Cascader; }
13
+ get: function () { return chunk5MN3PMF4_cjs.Cascader; }
14
14
  });
@@ -1,10 +1,12 @@
1
1
  import * as React from 'react';
2
- import { IconName } from './Icon.cjs';
2
+ import { IconSlot } from './Icon.cjs';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  interface CascaderOption {
5
6
  value: string;
6
7
  label: React.ReactNode;
7
- icon?: IconName;
8
+ /** Leading icon. Accepts a built-in icon name or custom React node. */
9
+ icon?: IconSlot;
8
10
  children?: CascaderOption[];
9
11
  disabled?: boolean;
10
12
  }
@@ -1,10 +1,12 @@
1
1
  import * as React from 'react';
2
- import { IconName } from './Icon.js';
2
+ import { IconSlot } from './Icon.js';
3
+ import 'react/jsx-runtime';
3
4
 
4
5
  interface CascaderOption {
5
6
  value: string;
6
7
  label: React.ReactNode;
7
- icon?: IconName;
8
+ /** Leading icon. Accepts a built-in icon name or custom React node. */
9
+ icon?: IconSlot;
8
10
  children?: CascaderOption[];
9
11
  disabled?: boolean;
10
12
  }
package/dist/Cascader.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Cascader } from './chunk-GNEZQMKH.js';
1
+ export { Cascader } from './chunk-TGL5BGMR.js';
2
2
  import './chunk-DUFRASGO.js';
3
- import './chunk-XTIN5545.js';
4
- import './chunk-WGZ2KJTZ.js';
5
- import './chunk-OF3SGLZY.js';
3
+ import './chunk-UKS23N3L.js';
4
+ import './chunk-HLFH5HWR.js';
5
+ import './chunk-47VG2P34.js';
package/dist/Checkbox.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkFBVVRTX2_cjs = require('./chunk-FBVVRTX2.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunk6HMTV6P4_cjs = require('./chunk-6HMTV6P4.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Checkbox", {
9
9
  enumerable: true,
10
- get: function () { return chunkFBVVRTX2_cjs.Checkbox; }
10
+ get: function () { return chunk6HMTV6P4_cjs.Checkbox; }
11
11
  });
package/dist/Checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Checkbox } from './chunk-EQEJTN3V.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Checkbox } from './chunk-GIZU3H6H.js';
2
+ import './chunk-47VG2P34.js';
package/dist/Collapse.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkEIY7KEJ3_cjs = require('./chunk-EIY7KEJ3.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunkFGW5GJ22_cjs = require('./chunk-FGW5GJ22.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Collapse", {
9
9
  enumerable: true,
10
- get: function () { return chunkEIY7KEJ3_cjs.Collapse; }
10
+ get: function () { return chunkFGW5GJ22_cjs.Collapse; }
11
11
  });
package/dist/Collapse.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Collapse } from './chunk-FFZ6OMZI.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Collapse } from './chunk-JVUVOR6S.js';
2
+ import './chunk-47VG2P34.js';
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkTEG7NJHS_cjs = require('./chunk-TEG7NJHS.cjs');
4
- require('./chunk-6LZ54NPO.cjs');
5
- require('./chunk-OQBDU5I2.cjs');
6
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunkPULGVK2I_cjs = require('./chunk-PULGVK2I.cjs');
4
+ require('./chunk-HKF2V5MM.cjs');
5
+ require('./chunk-MPVCYU2K.cjs');
6
+ require('./chunk-V272XR3F.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "CommandPalette", {
11
11
  enumerable: true,
12
- get: function () { return chunkTEG7NJHS_cjs.CommandPalette; }
12
+ get: function () { return chunkPULGVK2I_cjs.CommandPalette; }
13
13
  });
@@ -1,4 +1,4 @@
1
- export { CommandPalette } from './chunk-XD3JGL5O.js';
2
- import './chunk-XTIN5545.js';
3
- import './chunk-WGZ2KJTZ.js';
4
- import './chunk-OF3SGLZY.js';
1
+ export { CommandPalette } from './chunk-ME5BZ2WA.js';
2
+ import './chunk-UKS23N3L.js';
3
+ import './chunk-HLFH5HWR.js';
4
+ import './chunk-47VG2P34.js';
package/dist/Drawer.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkMT7UWY6T_cjs = require('./chunk-MT7UWY6T.cjs');
4
- require('./chunk-TJII7BQ2.cjs');
3
+ var chunk2HQCUBA7_cjs = require('./chunk-2HQCUBA7.cjs');
4
+ require('./chunk-V272XR3F.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Drawer", {
9
9
  enumerable: true,
10
- get: function () { return chunkMT7UWY6T_cjs.Drawer; }
10
+ get: function () { return chunk2HQCUBA7_cjs.Drawer; }
11
11
  });
package/dist/Drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Drawer } from './chunk-CHMCL7AV.js';
2
- import './chunk-OF3SGLZY.js';
1
+ export { Drawer } from './chunk-JCEHZ336.js';
2
+ import './chunk-47VG2P34.js';