@fangxinyan/lumina 0.6.1 → 0.6.2

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 (246) hide show
  1. package/dist/Alert.cjs +3 -3
  2. package/dist/Alert.js +2 -2
  3. package/dist/AutoComplete.cjs +5 -4
  4. package/dist/AutoComplete.d.cts +1 -1
  5. package/dist/AutoComplete.d.ts +1 -1
  6. package/dist/AutoComplete.js +4 -3
  7. package/dist/Badge-DPGLV3D3.css +22 -0
  8. package/dist/Badge.cjs +10 -0
  9. package/dist/Badge.d.cts +18 -0
  10. package/dist/Badge.d.ts +18 -0
  11. package/dist/Badge.js +1 -0
  12. package/dist/Button.cjs +3 -7
  13. package/dist/Button.d.cts +5 -10
  14. package/dist/Button.d.ts +5 -10
  15. package/dist/Button.js +2 -2
  16. package/dist/Calendar.cjs +3 -3
  17. package/dist/Calendar.js +2 -2
  18. package/dist/{Card-RG7ECXL2.css → Card-6RMVIHWX.css} +7 -13
  19. package/dist/Card.cjs +2 -6
  20. package/dist/Card.d.cts +7 -11
  21. package/dist/Card.d.ts +7 -11
  22. package/dist/Card.js +1 -1
  23. package/dist/{Cascader-VSYEKQCG.css → Cascader-C2DFSMKJ.css} +64 -0
  24. package/dist/Cascader.cjs +5 -3
  25. package/dist/Cascader.d.cts +18 -2
  26. package/dist/Cascader.d.ts +18 -2
  27. package/dist/Cascader.js +4 -2
  28. package/dist/{Checkbox-SKJATVSN.css → Checkbox-U5EUDSYS.css} +5 -35
  29. package/dist/Checkbox.cjs +3 -7
  30. package/dist/Checkbox.d.cts +1 -18
  31. package/dist/Checkbox.d.ts +1 -18
  32. package/dist/Checkbox.js +2 -2
  33. package/dist/Collapse-66U5YJFY.css +53 -0
  34. package/dist/Collapse.cjs +11 -0
  35. package/dist/Collapse.d.cts +32 -0
  36. package/dist/Collapse.d.ts +32 -0
  37. package/dist/Collapse.js +2 -0
  38. package/dist/CommandPalette.cjs +5 -4
  39. package/dist/CommandPalette.js +4 -3
  40. package/dist/Drawer.cjs +3 -3
  41. package/dist/Drawer.js +2 -2
  42. package/dist/Empty-DC2LPORC.css +28 -0
  43. package/dist/Empty.cjs +2 -10
  44. package/dist/Empty.d.cts +1 -62
  45. package/dist/Empty.d.ts +1 -62
  46. package/dist/Empty.js +1 -1
  47. package/dist/Form.d.cts +1 -1
  48. package/dist/Form.d.ts +1 -1
  49. package/dist/Icon.cjs +179 -3
  50. package/dist/Icon.d.cts +96 -3
  51. package/dist/Icon.d.ts +96 -3
  52. package/dist/Icon.js +1 -1
  53. package/dist/Image.cjs +4 -4
  54. package/dist/Image.js +2 -2
  55. package/dist/{Input-33CAH4O6.css → Input-3G4ONWNU.css} +15 -42
  56. package/dist/Input.cjs +6 -5
  57. package/dist/Input.d.cts +19 -23
  58. package/dist/Input.d.ts +19 -23
  59. package/dist/Input.js +3 -2
  60. package/dist/InputNumber.cjs +5 -4
  61. package/dist/InputNumber.d.cts +1 -1
  62. package/dist/InputNumber.d.ts +1 -1
  63. package/dist/InputNumber.js +4 -3
  64. package/dist/Message-2MZ3LFPU.css +45 -0
  65. package/dist/Message.cjs +23 -0
  66. package/dist/Message.d.cts +54 -0
  67. package/dist/Message.d.ts +54 -0
  68. package/dist/Message.js +2 -0
  69. package/dist/{Modal-XSDMU4XJ.css → Modal-2QNDW4SO.css} +27 -0
  70. package/dist/Modal.cjs +4 -4
  71. package/dist/Modal.d.cts +28 -4
  72. package/dist/Modal.d.ts +28 -4
  73. package/dist/Modal.js +3 -3
  74. package/dist/Pagination.cjs +7 -5
  75. package/dist/Pagination.js +6 -4
  76. package/dist/Popover.cjs +2 -2
  77. package/dist/Popover.d.cts +11 -3
  78. package/dist/Popover.d.ts +11 -3
  79. package/dist/Popover.js +1 -1
  80. package/dist/Radio-GVFDPAZM.css +97 -0
  81. package/dist/Radio.cjs +14 -0
  82. package/dist/Radio.d.cts +36 -0
  83. package/dist/Radio.d.ts +36 -0
  84. package/dist/Radio.js +1 -0
  85. package/dist/{Select-J3CCVFJ7.css → Select-JVBQAZBG.css} +7 -23
  86. package/dist/Select.cjs +6 -4
  87. package/dist/Select.d.cts +25 -4
  88. package/dist/Select.d.ts +25 -4
  89. package/dist/Select.js +5 -3
  90. package/dist/Skeleton-CVWH2VWN.css +40 -0
  91. package/dist/Skeleton.cjs +10 -0
  92. package/dist/Skeleton.d.cts +30 -0
  93. package/dist/Skeleton.d.ts +30 -0
  94. package/dist/Skeleton.js +1 -0
  95. package/dist/Spin-3GJNMSIH.css +94 -0
  96. package/dist/Spin.cjs +10 -0
  97. package/dist/Spin.d.cts +20 -0
  98. package/dist/Spin.d.ts +20 -0
  99. package/dist/Spin.js +1 -0
  100. package/dist/{Table-2LPTOUIR.css → Table-ATJJQLKU.css} +0 -53
  101. package/dist/Table.cjs +9 -11
  102. package/dist/Table.d.cts +2 -21
  103. package/dist/Table.d.ts +2 -21
  104. package/dist/Table.js +8 -6
  105. package/dist/TablePro-3XVHYLSL.css +45 -0
  106. package/dist/TablePro.cjs +19 -0
  107. package/dist/TablePro.d.cts +21 -0
  108. package/dist/TablePro.d.ts +21 -0
  109. package/dist/TablePro.js +10 -0
  110. package/dist/{Tabs-RHK6XAFF.css → Tabs-BLSNI2T5.css} +0 -34
  111. package/dist/Tabs.cjs +2 -6
  112. package/dist/Tabs.d.cts +1 -16
  113. package/dist/Tabs.d.ts +1 -16
  114. package/dist/Tabs.js +1 -1
  115. package/dist/Tag-LB3OOJAO.css +29 -0
  116. package/dist/Tag.cjs +3 -7
  117. package/dist/Tag.d.cts +1 -11
  118. package/dist/Tag.d.ts +1 -11
  119. package/dist/Tag.js +2 -2
  120. package/dist/Textarea-YNET7IBH.css +54 -0
  121. package/dist/Textarea.cjs +15 -0
  122. package/dist/Textarea.d.cts +25 -0
  123. package/dist/Textarea.d.ts +25 -0
  124. package/dist/Textarea.js +2 -0
  125. package/dist/{Timeline-RHZAZKZ7.css → Timeline-3ZHOHPXT.css} +2 -2
  126. package/dist/Timeline.cjs +3 -3
  127. package/dist/Timeline.d.cts +1 -1
  128. package/dist/Timeline.d.ts +1 -1
  129. package/dist/Timeline.js +2 -2
  130. package/dist/Tooltip.cjs +2 -2
  131. package/dist/Tooltip.d.cts +17 -4
  132. package/dist/Tooltip.d.ts +17 -4
  133. package/dist/Tooltip.js +1 -1
  134. package/dist/Typography.cjs +7 -7
  135. package/dist/Typography.js +2 -2
  136. package/dist/{chunk-6Y5WRCPW.js → chunk-33NCTOEB.js} +1 -1
  137. package/dist/{chunk-Q2KG6SQK.cjs → chunk-35ZGBAA3.cjs} +3 -3
  138. package/dist/{chunk-Y3ZSG3SJ.cjs → chunk-3AS5B7MQ.cjs} +11 -30
  139. package/dist/{chunk-X2U7EKCS.cjs → chunk-3YJU3D5S.cjs} +28 -5
  140. package/dist/chunk-45VJGBGN.js +25 -0
  141. package/dist/{chunk-3D77MQHO.js → chunk-46VXFTEC.js} +3 -3
  142. package/dist/{chunk-OFGDUCT7.cjs → chunk-4WTU5P3O.cjs} +3 -3
  143. package/dist/{chunk-5A3RT4KD.js → chunk-5TKC6IEN.js} +4 -55
  144. package/dist/{chunk-62GU4OHH.cjs → chunk-5WAXZJG5.cjs} +12 -19
  145. package/dist/chunk-6ACKL3WH.cjs +138 -0
  146. package/dist/{chunk-32HBMXXV.cjs → chunk-6LZ54NPO.cjs} +70 -74
  147. package/dist/{chunk-UXH5PH3S.js → chunk-7NGMQIST.js} +2 -2
  148. package/dist/{chunk-R6BIF3FF.js → chunk-AWXCSX6J.js} +5 -23
  149. package/dist/chunk-AXZ7ELMA.js +41 -0
  150. package/dist/{chunk-G2XK57I7.cjs → chunk-B2KEZQ6S.cjs} +5 -5
  151. package/dist/chunk-CEJ7VBR6.js +283 -0
  152. package/dist/{chunk-WRDKOSSM.js → chunk-CHMCL7AV.js} +1 -1
  153. package/dist/{chunk-EBNRZRWY.cjs → chunk-CUXV6QNN.cjs} +5 -5
  154. package/dist/{chunk-ULOJ5UEY.js → chunk-CXWEOAVU.js} +1 -1
  155. package/dist/{chunk-TWGQZX2R.js → chunk-DQTSTJ6O.js} +3 -18
  156. package/dist/chunk-EIY7KEJ3.cjs +132 -0
  157. package/dist/{chunk-OI3CWXT3.js → chunk-EJBHR2P5.js} +3 -3
  158. package/dist/chunk-ELNT3CFO.js +64 -0
  159. package/dist/{chunk-TGHBKKSS.js → chunk-EQEJTN3V.js} +3 -43
  160. package/dist/chunk-F6RYCBQG.js +25 -0
  161. package/dist/{chunk-N57NXCNC.cjs → chunk-FBVVRTX2.cjs} +3 -44
  162. package/dist/chunk-FFZ6OMZI.js +110 -0
  163. package/dist/{chunk-73RQBWWW.js → chunk-FJNWUELL.js} +2 -2
  164. package/dist/chunk-GENABQYA.cjs +47 -0
  165. package/dist/chunk-GMN74OEY.cjs +63 -0
  166. package/dist/chunk-GNEZQMKH.js +218 -0
  167. package/dist/{chunk-Y47YTYQ3.cjs → chunk-HPFQXYKG.cjs} +159 -8
  168. package/dist/{chunk-4WRE4HQP.js → chunk-HWFM4MAT.js} +18 -6
  169. package/dist/{chunk-GY3BSHHS.cjs → chunk-HZSIUOCN.cjs} +2 -55
  170. package/dist/{chunk-YRZGXXWA.js → chunk-JD7A6VM3.js} +11 -17
  171. package/dist/chunk-K2KYM7LW.cjs +28 -0
  172. package/dist/{chunk-PWW64ZWO.cjs → chunk-KD4YYIIO.cjs} +1 -32
  173. package/dist/chunk-KGSADAOD.cjs +170 -0
  174. package/dist/{chunk-6ODY6MGL.cjs → chunk-MQV2XN4B.cjs} +5 -5
  175. package/dist/{chunk-OVZTG5CP.cjs → chunk-MT7UWY6T.cjs} +2 -2
  176. package/dist/chunk-MUXP7ASL.js +26 -0
  177. package/dist/{chunk-EEMWQX3C.cjs → chunk-NTS5L4NQ.cjs} +3 -3
  178. package/dist/{chunk-WBK6XIDJ.js → chunk-OBEKX4VR.js} +2 -32
  179. package/dist/chunk-OF3SGLZY.js +385 -0
  180. package/dist/chunk-ON4DEDMI.js +113 -0
  181. package/dist/chunk-OQBDU5I2.cjs +104 -0
  182. package/dist/{chunk-FIO65XYG.cjs → chunk-OYMJVU66.cjs} +48 -37
  183. package/dist/{chunk-5M26OVVY.js → chunk-PH3YECMF.js} +1 -1
  184. package/dist/chunk-Q5SZIU7Z.cjs +47 -0
  185. package/dist/chunk-QGHYQCF3.cjs +240 -0
  186. package/dist/chunk-QKQHZIF3.cjs +86 -0
  187. package/dist/{chunk-KYEY2LIB.cjs → chunk-SKMP2A5O.cjs} +3 -3
  188. package/dist/{chunk-IW5LW6XS.js → chunk-TEEFR2FD.js} +28 -5
  189. package/dist/{chunk-GOBWKQCX.cjs → chunk-TEG7NJHS.cjs} +3 -3
  190. package/dist/{chunk-2MNAZRWE.cjs → chunk-TJII7BQ2.cjs} +261 -2
  191. package/dist/{chunk-3TWNBJFI.cjs → chunk-TZJH5HBT.cjs} +6 -6
  192. package/dist/{chunk-D46EM4EN.js → chunk-UMDGS4BP.js} +1 -1
  193. package/dist/chunk-USQ43DJ5.js +147 -0
  194. package/dist/{chunk-G2K6ETP4.cjs → chunk-UUHFKIWP.cjs} +18 -6
  195. package/dist/chunk-WGZ2KJTZ.js +81 -0
  196. package/dist/{chunk-RPFMQZA5.js → chunk-WKKSAGYH.js} +39 -28
  197. package/dist/{chunk-54YLXXS2.js → chunk-XD3JGL5O.js} +2 -2
  198. package/dist/{chunk-DPNDHNKK.js → chunk-XTIN5545.js} +68 -72
  199. package/dist/{chunk-LZU33BX6.cjs → chunk-ZIP7F4UF.cjs} +4 -20
  200. package/dist/index.cjs +312 -122
  201. package/dist/index.d.cts +23 -17
  202. package/dist/index.d.ts +23 -17
  203. package/dist/index.js +34 -28
  204. package/dist/styles.css +313 -192
  205. package/docs/llms/badge.md +3 -3
  206. package/docs/llms/button.md +7 -38
  207. package/docs/llms/card.md +6 -12
  208. package/docs/llms/cascader.md +19 -0
  209. package/docs/llms/{accordion.md → collapse.md} +13 -11
  210. package/docs/llms/drawer.md +1 -1
  211. package/docs/llms/form.md +1 -1
  212. package/docs/llms/input.md +25 -16
  213. package/docs/llms/message.md +63 -0
  214. package/docs/llms/modal.md +30 -0
  215. package/docs/llms/popover.md +18 -1
  216. package/docs/llms/radio.md +37 -1
  217. package/docs/llms/select.md +20 -0
  218. package/docs/llms/spin.md +59 -0
  219. package/docs/llms/table.md +3 -3
  220. package/docs/llms/tooltip.md +16 -3
  221. package/docs/llms.md +5 -5
  222. package/package.json +17 -52
  223. package/dist/Accordion-REMDCQUD.css +0 -44
  224. package/dist/Accordion.cjs +0 -11
  225. package/dist/Accordion.d.cts +0 -33
  226. package/dist/Accordion.d.ts +0 -33
  227. package/dist/Accordion.js +0 -2
  228. package/dist/Empty-NQ72W3D7.css +0 -160
  229. package/dist/Tag-FGDY3W7E.css +0 -51
  230. package/dist/Toast-YSACW3EM.css +0 -45
  231. package/dist/Toast.cjs +0 -15
  232. package/dist/Toast.d.cts +0 -26
  233. package/dist/Toast.d.ts +0 -26
  234. package/dist/Toast.js +0 -2
  235. package/dist/chunk-3XTHKAEY.js +0 -39
  236. package/dist/chunk-DOMYUGJY.js +0 -132
  237. package/dist/chunk-HBWO3QKW.js +0 -74
  238. package/dist/chunk-JVS5ZALZ.js +0 -123
  239. package/dist/chunk-LIGHV4RC.cjs +0 -121
  240. package/dist/chunk-MCTIA6RZ.js +0 -99
  241. package/dist/chunk-NC4YUEXM.cjs +0 -145
  242. package/dist/chunk-NJ6B22YJ.js +0 -170
  243. package/dist/chunk-W64ARHLJ.cjs +0 -62
  244. package/dist/chunk-ZFW6OYAO.cjs +0 -100
  245. package/docs/llms/spinner.md +0 -58
  246. package/docs/llms/toast.md +0 -51
@@ -12,22 +12,5 @@ interface CheckboxProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>
12
12
  }
13
13
  /** `Checkbox` — binary choice, supports indeterminate state. */
14
14
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
15
- interface RadioOption<T extends string | number = string> {
16
- value: T;
17
- label: React.ReactNode;
18
- disabled?: boolean;
19
- }
20
- interface RadioGroupProps<T extends string | number = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
21
- options: RadioOption<T>[];
22
- value?: T;
23
- defaultValue?: T;
24
- onChange?: (value: T) => void;
25
- name?: string;
26
- direction?: "vertical" | "horizontal";
27
- className?: string;
28
- }
29
- type RadioGroupComponent = <T extends string | number = string>(props: RadioGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
30
- /** `RadioGroup` — mutually exclusive options. */
31
- declare const RadioGroup: RadioGroupComponent;
32
15
 
33
- export { Checkbox, type CheckboxProps, RadioGroup, type RadioGroupProps, type RadioOption };
16
+ export { Checkbox, type CheckboxProps };
@@ -12,22 +12,5 @@ interface CheckboxProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>
12
12
  }
13
13
  /** `Checkbox` — binary choice, supports indeterminate state. */
14
14
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLLabelElement>>;
15
- interface RadioOption<T extends string | number = string> {
16
- value: T;
17
- label: React.ReactNode;
18
- disabled?: boolean;
19
- }
20
- interface RadioGroupProps<T extends string | number = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
21
- options: RadioOption<T>[];
22
- value?: T;
23
- defaultValue?: T;
24
- onChange?: (value: T) => void;
25
- name?: string;
26
- direction?: "vertical" | "horizontal";
27
- className?: string;
28
- }
29
- type RadioGroupComponent = <T extends string | number = string>(props: RadioGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
30
- /** `RadioGroup` — mutually exclusive options. */
31
- declare const RadioGroup: RadioGroupComponent;
32
15
 
33
- export { Checkbox, type CheckboxProps, RadioGroup, type RadioGroupProps, type RadioOption };
16
+ export { Checkbox, type CheckboxProps };
package/dist/Checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Checkbox, RadioGroup } from './chunk-TGHBKKSS.js';
2
- import './chunk-NJ6B22YJ.js';
1
+ export { Checkbox } from './chunk-EQEJTN3V.js';
2
+ import './chunk-OF3SGLZY.js';
@@ -0,0 +1,53 @@
1
+ /* ============ Collapse ============ */
2
+ .collapse { display: flex; flex-direction: column; gap: 10px; }
3
+ .collapse-item {
4
+ background: var(--bg);
5
+ border-radius: var(--r-md);
6
+ box-shadow: var(--neu-out-sm);
7
+ overflow: hidden;
8
+ }
9
+ .collapse.ghost .collapse-item {
10
+ background: transparent;
11
+ box-shadow: none;
12
+ border-radius: var(--r-sm);
13
+ }
14
+ .collapse-item.disabled { opacity: 0.5; }
15
+ .collapse-head {
16
+ width: 100%;
17
+ border: none;
18
+ background: transparent;
19
+ padding: 14px 18px;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: space-between;
23
+ cursor: pointer;
24
+ font-size: 13px;
25
+ font-weight: 500;
26
+ font-family: inherit;
27
+ color: var(--fg);
28
+ text-align: left;
29
+ }
30
+ .collapse.small .collapse-head { padding: 10px 14px; font-size: 12px; }
31
+ .collapse.large .collapse-head { padding: 18px 22px; font-size: 14px; }
32
+ .collapse-item.disabled .collapse-head { cursor: not-allowed; }
33
+ .collapse-item.icon-only .collapse-head:not(:disabled) { cursor: default; }
34
+ .collapse-body {
35
+ max-height: 0;
36
+ overflow: hidden;
37
+ transition: max-height var(--dur) var(--ease);
38
+ color: var(--fg-muted);
39
+ font-size: 13px;
40
+ }
41
+ .collapse-body-inner { padding: 0 18px 16px; }
42
+ .collapse.small .collapse-body-inner { padding: 0 14px 12px; }
43
+ .collapse.large .collapse-body-inner { padding: 0 22px 20px; }
44
+ .collapse-chev {
45
+ transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
46
+ color: var(--fg-subtle);
47
+ display: inline-flex;
48
+ border-radius: var(--r-xs);
49
+ padding: 2px;
50
+ }
51
+ .collapse-chev.clickable { cursor: pointer; }
52
+ .collapse-chev.clickable:hover { color: var(--fg); background: var(--bg); box-shadow: var(--neu-flat); }
53
+ .collapse-item.open .collapse-chev { transform: rotate(180deg); color: var(--accent); }
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var chunkEIY7KEJ3_cjs = require('./chunk-EIY7KEJ3.cjs');
4
+ require('./chunk-TJII7BQ2.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Collapse", {
9
+ enumerable: true,
10
+ get: function () { return chunkEIY7KEJ3_cjs.Collapse; }
11
+ });
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+
3
+ interface CollapseItem {
4
+ key: string;
5
+ label: React.ReactNode;
6
+ children: React.ReactNode;
7
+ disabled?: boolean;
8
+ }
9
+ interface CollapseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
10
+ items: CollapseItem[];
11
+ /** If true, at most one item can be open at a time. */
12
+ accordion?: boolean;
13
+ /** If false, at most one section can be open. Kept for explicit Lumina layouts. */
14
+ multiple?: boolean;
15
+ /**
16
+ * What triggers expansion.
17
+ * - `"header"` (default): clicking anywhere on the header toggles.
18
+ * - `"icon"`: only the chevron icon is clickable.
19
+ * - `"disabled"`: the panel cannot be toggled.
20
+ */
21
+ collapsible?: "header" | "icon" | "disabled";
22
+ activeKey?: string | string[];
23
+ defaultActiveKey?: string | string[];
24
+ onChange?: (keys: string[]) => void;
25
+ ghost?: boolean;
26
+ size?: "small" | "middle" | "large";
27
+ className?: string;
28
+ }
29
+ /** `Collapse` — collapsible sections. */
30
+ declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
31
+
32
+ export { Collapse, type CollapseItem, type CollapseProps };
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+
3
+ interface CollapseItem {
4
+ key: string;
5
+ label: React.ReactNode;
6
+ children: React.ReactNode;
7
+ disabled?: boolean;
8
+ }
9
+ interface CollapseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
10
+ items: CollapseItem[];
11
+ /** If true, at most one item can be open at a time. */
12
+ accordion?: boolean;
13
+ /** If false, at most one section can be open. Kept for explicit Lumina layouts. */
14
+ multiple?: boolean;
15
+ /**
16
+ * What triggers expansion.
17
+ * - `"header"` (default): clicking anywhere on the header toggles.
18
+ * - `"icon"`: only the chevron icon is clickable.
19
+ * - `"disabled"`: the panel cannot be toggled.
20
+ */
21
+ collapsible?: "header" | "icon" | "disabled";
22
+ activeKey?: string | string[];
23
+ defaultActiveKey?: string | string[];
24
+ onChange?: (keys: string[]) => void;
25
+ ghost?: boolean;
26
+ size?: "small" | "middle" | "large";
27
+ className?: string;
28
+ }
29
+ /** `Collapse` — collapsible sections. */
30
+ declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<HTMLDivElement>>;
31
+
32
+ export { Collapse, type CollapseItem, type CollapseProps };
@@ -0,0 +1,2 @@
1
+ export { Collapse } from './chunk-FFZ6OMZI.js';
2
+ import './chunk-OF3SGLZY.js';
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkGOBWKQCX_cjs = require('./chunk-GOBWKQCX.cjs');
4
- require('./chunk-32HBMXXV.cjs');
5
- require('./chunk-2MNAZRWE.cjs');
3
+ var chunkTEG7NJHS_cjs = require('./chunk-TEG7NJHS.cjs');
4
+ require('./chunk-6LZ54NPO.cjs');
5
+ require('./chunk-OQBDU5I2.cjs');
6
+ require('./chunk-TJII7BQ2.cjs');
6
7
 
7
8
 
8
9
 
9
10
  Object.defineProperty(exports, "CommandPalette", {
10
11
  enumerable: true,
11
- get: function () { return chunkGOBWKQCX_cjs.CommandPalette; }
12
+ get: function () { return chunkTEG7NJHS_cjs.CommandPalette; }
12
13
  });
@@ -1,3 +1,4 @@
1
- export { CommandPalette } from './chunk-54YLXXS2.js';
2
- import './chunk-DPNDHNKK.js';
3
- import './chunk-NJ6B22YJ.js';
1
+ export { CommandPalette } from './chunk-XD3JGL5O.js';
2
+ import './chunk-XTIN5545.js';
3
+ import './chunk-WGZ2KJTZ.js';
4
+ import './chunk-OF3SGLZY.js';
package/dist/Drawer.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkOVZTG5CP_cjs = require('./chunk-OVZTG5CP.cjs');
4
- require('./chunk-2MNAZRWE.cjs');
3
+ var chunkMT7UWY6T_cjs = require('./chunk-MT7UWY6T.cjs');
4
+ require('./chunk-TJII7BQ2.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Drawer", {
9
9
  enumerable: true,
10
- get: function () { return chunkOVZTG5CP_cjs.Drawer; }
10
+ get: function () { return chunkMT7UWY6T_cjs.Drawer; }
11
11
  });
package/dist/Drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- export { Drawer } from './chunk-WRDKOSSM.js';
2
- import './chunk-NJ6B22YJ.js';
1
+ export { Drawer } from './chunk-CHMCL7AV.js';
2
+ import './chunk-OF3SGLZY.js';
@@ -0,0 +1,28 @@
1
+ /* ============ Empty ============ */
2
+ .empty {
3
+ padding: 60px 20px;
4
+ display: grid; place-items: center;
5
+ gap: 12px;
6
+ color: var(--fg-muted);
7
+ text-align: center;
8
+ }
9
+ .empty.sm { padding: 28px 16px; gap: 8px; }
10
+ .empty.sm .empty-ico { width: 40px; height: 40px; }
11
+ .empty.sm .empty-title { font-size: 13px; }
12
+ .empty.sm .empty-desc { font-size: 11px; }
13
+ .empty.lg { padding: 96px 24px; gap: 16px; }
14
+ .empty.lg .empty-ico { width: 72px; height: 72px; }
15
+ .empty.lg .empty-title { font-size: 16px; }
16
+ .empty.lg .empty-desc { font-size: 13px; }
17
+ .empty.subtle .empty-ico { background: transparent; box-shadow: none; }
18
+ .empty-ico {
19
+ width: 56px; height: 56px;
20
+ border-radius: var(--r-lg);
21
+ background: var(--bg);
22
+ box-shadow: var(--neu-in-sm);
23
+ display: grid; place-items: center;
24
+ color: var(--fg-subtle);
25
+ }
26
+ .empty-title { font-size: 14px; font-weight: 600; color: var(--fg); }
27
+ .empty-desc { font-size: 12px; }
28
+ .empty-action { margin-top: 8px; }
package/dist/Empty.cjs CHANGED
@@ -1,18 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkGY3BSHHS_cjs = require('./chunk-GY3BSHHS.cjs');
3
+ var chunkGENABQYA_cjs = require('./chunk-GENABQYA.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Empty", {
8
8
  enumerable: true,
9
- get: function () { return chunkGY3BSHHS_cjs.Empty; }
10
- });
11
- Object.defineProperty(exports, "Skeleton", {
12
- enumerable: true,
13
- get: function () { return chunkGY3BSHHS_cjs.Skeleton; }
14
- });
15
- Object.defineProperty(exports, "Spinner", {
16
- enumerable: true,
17
- get: function () { return chunkGY3BSHHS_cjs.Spinner; }
9
+ get: function () { return chunkGENABQYA_cjs.Empty; }
18
10
  });
package/dist/Empty.d.cts CHANGED
@@ -12,66 +12,5 @@ interface EmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"
12
12
  }
13
13
  /** `Empty` — empty state placeholder. */
14
14
  declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
15
- interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement> {
16
- size?: number;
17
- tone?: "accent" | "success" | "warning" | "danger" | "current";
18
- /** Text rendered next to the spinner. */
19
- label?: React.ReactNode;
20
- /** `ring` is the default border spinner; `dots` is a three-dot bounce. */
21
- variant?: "ring" | "dots";
22
- className?: string;
23
- }
24
- /** `Spinner` — loading indicator. */
25
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
26
- interface SkeletonAvatarConfig {
27
- shape?: "circle" | "square";
28
- size?: "sm" | "md" | "lg";
29
- }
30
- interface SkeletonTitleConfig {
31
- width?: number | string;
32
- }
33
- interface SkeletonParagraphConfig {
34
- rows?: number;
35
- width?: (number | string)[];
36
- }
37
- interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
38
- width?: number | string;
39
- height?: number | string;
40
- circle?: boolean;
41
- /** `wave` is a shimmer sweep; `pulse` fades opacity; `none` disables animation. */
42
- animation?: "wave" | "pulse" | "none";
43
- /**
44
- * Render an avatar skeleton on the left. `true` gives the defaults (circle, md).
45
- * @example avatar
46
- * @example avatar={{ shape: "square", size: "lg" }}
47
- */
48
- avatar?: boolean | SkeletonAvatarConfig;
49
- /**
50
- * Render a title line skeleton. Defaults to `true` whenever the composite layout is active
51
- * (any of `avatar` / `paragraph` / `title` is set).
52
- */
53
- title?: boolean | SkeletonTitleConfig;
54
- /**
55
- * Render N paragraph lines. `true` gives 3 rows; passing `width` arrays lets you
56
- * control per-row widths (last row defaults to 60%).
57
- */
58
- paragraph?: boolean | SkeletonParagraphConfig;
59
- className?: string;
60
- }
61
- /**
62
- * `Skeleton` — content placeholder during loading.
63
- *
64
- * Two modes:
65
- * - **Primitive** (no composite prop set): renders a single block using `width` / `height` / `circle`.
66
- * - **Composite** (`avatar` / `title` / `paragraph`): renders the Ant-Design-style avatar + title + paragraph layout.
67
- *
68
- * @example
69
- * // primitive
70
- * <Skeleton height={14} width="60%" />
71
- * @example
72
- * // composite
73
- * <Skeleton avatar title paragraph={{ rows: 4 }} />
74
- */
75
- declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLElement>>;
76
15
 
77
- export { Empty, type EmptyProps, Skeleton, type SkeletonAvatarConfig, type SkeletonParagraphConfig, type SkeletonProps, type SkeletonTitleConfig, Spinner, type SpinnerProps };
16
+ export { Empty, type EmptyProps };
package/dist/Empty.d.ts CHANGED
@@ -12,66 +12,5 @@ interface EmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"
12
12
  }
13
13
  /** `Empty` — empty state placeholder. */
14
14
  declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
15
- interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement> {
16
- size?: number;
17
- tone?: "accent" | "success" | "warning" | "danger" | "current";
18
- /** Text rendered next to the spinner. */
19
- label?: React.ReactNode;
20
- /** `ring` is the default border spinner; `dots` is a three-dot bounce. */
21
- variant?: "ring" | "dots";
22
- className?: string;
23
- }
24
- /** `Spinner` — loading indicator. */
25
- declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
26
- interface SkeletonAvatarConfig {
27
- shape?: "circle" | "square";
28
- size?: "sm" | "md" | "lg";
29
- }
30
- interface SkeletonTitleConfig {
31
- width?: number | string;
32
- }
33
- interface SkeletonParagraphConfig {
34
- rows?: number;
35
- width?: (number | string)[];
36
- }
37
- interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
38
- width?: number | string;
39
- height?: number | string;
40
- circle?: boolean;
41
- /** `wave` is a shimmer sweep; `pulse` fades opacity; `none` disables animation. */
42
- animation?: "wave" | "pulse" | "none";
43
- /**
44
- * Render an avatar skeleton on the left. `true` gives the defaults (circle, md).
45
- * @example avatar
46
- * @example avatar={{ shape: "square", size: "lg" }}
47
- */
48
- avatar?: boolean | SkeletonAvatarConfig;
49
- /**
50
- * Render a title line skeleton. Defaults to `true` whenever the composite layout is active
51
- * (any of `avatar` / `paragraph` / `title` is set).
52
- */
53
- title?: boolean | SkeletonTitleConfig;
54
- /**
55
- * Render N paragraph lines. `true` gives 3 rows; passing `width` arrays lets you
56
- * control per-row widths (last row defaults to 60%).
57
- */
58
- paragraph?: boolean | SkeletonParagraphConfig;
59
- className?: string;
60
- }
61
- /**
62
- * `Skeleton` — content placeholder during loading.
63
- *
64
- * Two modes:
65
- * - **Primitive** (no composite prop set): renders a single block using `width` / `height` / `circle`.
66
- * - **Composite** (`avatar` / `title` / `paragraph`): renders the Ant-Design-style avatar + title + paragraph layout.
67
- *
68
- * @example
69
- * // primitive
70
- * <Skeleton height={14} width="60%" />
71
- * @example
72
- * // composite
73
- * <Skeleton avatar title paragraph={{ rows: 4 }} />
74
- */
75
- declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLElement>>;
76
15
 
77
- export { Empty, type EmptyProps, Skeleton, type SkeletonAvatarConfig, type SkeletonParagraphConfig, type SkeletonProps, type SkeletonTitleConfig, Spinner, type SpinnerProps };
16
+ export { Empty, type EmptyProps };
package/dist/Empty.js CHANGED
@@ -1 +1 @@
1
- export { Empty, Skeleton, Spinner } from './chunk-5A3RT4KD.js';
1
+ export { Empty } from './chunk-45VJGBGN.js';
package/dist/Form.d.cts CHANGED
@@ -28,7 +28,7 @@ interface FormInstance<V extends Record<string, unknown> = Record<string, unknow
28
28
  /** Programmatic submit — runs validate then onFinish/onFinishFailed. */
29
29
  submit: () => void;
30
30
  }
31
- /** `Form.useForm()` — create a form instance. Same shape as antd's hook. */
31
+ /** `Form.useForm()` — create a form instance. */
32
32
  declare function useForm<V extends Record<string, unknown> = Record<string, unknown>>(): [FormInstance<V>];
33
33
  interface FormProps<V extends Record<string, unknown> = Record<string, unknown>> extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onChange" | "onSubmit"> {
34
34
  form?: FormInstance<V>;
package/dist/Form.d.ts CHANGED
@@ -28,7 +28,7 @@ interface FormInstance<V extends Record<string, unknown> = Record<string, unknow
28
28
  /** Programmatic submit — runs validate then onFinish/onFinishFailed. */
29
29
  submit: () => void;
30
30
  }
31
- /** `Form.useForm()` — create a form instance. Same shape as antd's hook. */
31
+ /** `Form.useForm()` — create a form instance. */
32
32
  declare function useForm<V extends Record<string, unknown> = Record<string, unknown>>(): [FormInstance<V>];
33
33
  interface FormProps<V extends Record<string, unknown> = Record<string, unknown>> extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onChange" | "onSubmit"> {
34
34
  form?: FormInstance<V>;
package/dist/Icon.cjs CHANGED
@@ -1,14 +1,190 @@
1
1
  'use strict';
2
2
 
3
- var chunk2MNAZRWE_cjs = require('./chunk-2MNAZRWE.cjs');
3
+ var chunkTJII7BQ2_cjs = require('./chunk-TJII7BQ2.cjs');
4
4
 
5
5
 
6
6
 
7
+ Object.defineProperty(exports, "AimOutlined", {
8
+ enumerable: true,
9
+ get: function () { return chunkTJII7BQ2_cjs.AimOutlined; }
10
+ });
11
+ Object.defineProperty(exports, "AppstoreOutlined", {
12
+ enumerable: true,
13
+ get: function () { return chunkTJII7BQ2_cjs.AppstoreOutlined; }
14
+ });
15
+ Object.defineProperty(exports, "BarChartOutlined", {
16
+ enumerable: true,
17
+ get: function () { return chunkTJII7BQ2_cjs.BarChartOutlined; }
18
+ });
19
+ Object.defineProperty(exports, "BlockOutlined", {
20
+ enumerable: true,
21
+ get: function () { return chunkTJII7BQ2_cjs.BlockOutlined; }
22
+ });
23
+ Object.defineProperty(exports, "BorderOutlined", {
24
+ enumerable: true,
25
+ get: function () { return chunkTJII7BQ2_cjs.BorderOutlined; }
26
+ });
27
+ Object.defineProperty(exports, "CameraOutlined", {
28
+ enumerable: true,
29
+ get: function () { return chunkTJII7BQ2_cjs.CameraOutlined; }
30
+ });
31
+ Object.defineProperty(exports, "CaretDownOutlined", {
32
+ enumerable: true,
33
+ get: function () { return chunkTJII7BQ2_cjs.CaretDownOutlined; }
34
+ });
35
+ Object.defineProperty(exports, "CaretUpOutlined", {
36
+ enumerable: true,
37
+ get: function () { return chunkTJII7BQ2_cjs.CaretUpOutlined; }
38
+ });
39
+ Object.defineProperty(exports, "CheckCircleFilled", {
40
+ enumerable: true,
41
+ get: function () { return chunkTJII7BQ2_cjs.CheckCircleFilled; }
42
+ });
43
+ Object.defineProperty(exports, "CheckCircleOutlined", {
44
+ enumerable: true,
45
+ get: function () { return chunkTJII7BQ2_cjs.CheckCircleOutlined; }
46
+ });
47
+ Object.defineProperty(exports, "CheckOutlined", {
48
+ enumerable: true,
49
+ get: function () { return chunkTJII7BQ2_cjs.CheckOutlined; }
50
+ });
51
+ Object.defineProperty(exports, "ClockCircleFilled", {
52
+ enumerable: true,
53
+ get: function () { return chunkTJII7BQ2_cjs.ClockCircleFilled; }
54
+ });
55
+ Object.defineProperty(exports, "CloseCircleOutlined", {
56
+ enumerable: true,
57
+ get: function () { return chunkTJII7BQ2_cjs.CloseCircleOutlined; }
58
+ });
59
+ Object.defineProperty(exports, "CloseOutlined", {
60
+ enumerable: true,
61
+ get: function () { return chunkTJII7BQ2_cjs.CloseOutlined; }
62
+ });
63
+ Object.defineProperty(exports, "CopyOutlined", {
64
+ enumerable: true,
65
+ get: function () { return chunkTJII7BQ2_cjs.CopyOutlined; }
66
+ });
67
+ Object.defineProperty(exports, "DashboardOutlined", {
68
+ enumerable: true,
69
+ get: function () { return chunkTJII7BQ2_cjs.DashboardOutlined; }
70
+ });
71
+ Object.defineProperty(exports, "DeleteOutlined", {
72
+ enumerable: true,
73
+ get: function () { return chunkTJII7BQ2_cjs.DeleteOutlined; }
74
+ });
75
+ Object.defineProperty(exports, "DownOutlined", {
76
+ enumerable: true,
77
+ get: function () { return chunkTJII7BQ2_cjs.DownOutlined; }
78
+ });
79
+ Object.defineProperty(exports, "EnvironmentOutlined", {
80
+ enumerable: true,
81
+ get: function () { return chunkTJII7BQ2_cjs.EnvironmentOutlined; }
82
+ });
83
+ Object.defineProperty(exports, "ExclamationCircleOutlined", {
84
+ enumerable: true,
85
+ get: function () { return chunkTJII7BQ2_cjs.ExclamationCircleOutlined; }
86
+ });
87
+ Object.defineProperty(exports, "FolderOpenOutlined", {
88
+ enumerable: true,
89
+ get: function () { return chunkTJII7BQ2_cjs.FolderOpenOutlined; }
90
+ });
7
91
  Object.defineProperty(exports, "ICON_NAMES", {
8
92
  enumerable: true,
9
- get: function () { return chunk2MNAZRWE_cjs.ICON_NAMES; }
93
+ get: function () { return chunkTJII7BQ2_cjs.ICON_NAMES; }
10
94
  });
11
95
  Object.defineProperty(exports, "Icon", {
12
96
  enumerable: true,
13
- get: function () { return chunk2MNAZRWE_cjs.Icon; }
97
+ get: function () { return chunkTJII7BQ2_cjs.Icon; }
98
+ });
99
+ Object.defineProperty(exports, "LeftOutlined", {
100
+ enumerable: true,
101
+ get: function () { return chunkTJII7BQ2_cjs.LeftOutlined; }
102
+ });
103
+ Object.defineProperty(exports, "LoadingOutlined", {
104
+ enumerable: true,
105
+ get: function () { return chunkTJII7BQ2_cjs.LoadingOutlined; }
106
+ });
107
+ Object.defineProperty(exports, "MinusCircleOutlined", {
108
+ enumerable: true,
109
+ get: function () { return chunkTJII7BQ2_cjs.MinusCircleOutlined; }
110
+ });
111
+ Object.defineProperty(exports, "MinusOutlined", {
112
+ enumerable: true,
113
+ get: function () { return chunkTJII7BQ2_cjs.MinusOutlined; }
114
+ });
115
+ Object.defineProperty(exports, "NAMED_ICON_MAP", {
116
+ enumerable: true,
117
+ get: function () { return chunkTJII7BQ2_cjs.NAMED_ICON_MAP; }
118
+ });
119
+ Object.defineProperty(exports, "PictureOutlined", {
120
+ enumerable: true,
121
+ get: function () { return chunkTJII7BQ2_cjs.PictureOutlined; }
122
+ });
123
+ Object.defineProperty(exports, "PlusOutlined", {
124
+ enumerable: true,
125
+ get: function () { return chunkTJII7BQ2_cjs.PlusOutlined; }
126
+ });
127
+ Object.defineProperty(exports, "QqOutlined", {
128
+ enumerable: true,
129
+ get: function () { return chunkTJII7BQ2_cjs.QqOutlined; }
130
+ });
131
+ Object.defineProperty(exports, "ReloadOutlined", {
132
+ enumerable: true,
133
+ get: function () { return chunkTJII7BQ2_cjs.ReloadOutlined; }
134
+ });
135
+ Object.defineProperty(exports, "RightOutlined", {
136
+ enumerable: true,
137
+ get: function () { return chunkTJII7BQ2_cjs.RightOutlined; }
138
+ });
139
+ Object.defineProperty(exports, "RobotOutlined", {
140
+ enumerable: true,
141
+ get: function () { return chunkTJII7BQ2_cjs.RobotOutlined; }
142
+ });
143
+ Object.defineProperty(exports, "SearchOutlined", {
144
+ enumerable: true,
145
+ get: function () { return chunkTJII7BQ2_cjs.SearchOutlined; }
146
+ });
147
+ Object.defineProperty(exports, "SettingOutlined", {
148
+ enumerable: true,
149
+ get: function () { return chunkTJII7BQ2_cjs.SettingOutlined; }
150
+ });
151
+ Object.defineProperty(exports, "StarFilled", {
152
+ enumerable: true,
153
+ get: function () { return chunkTJII7BQ2_cjs.StarFilled; }
154
+ });
155
+ Object.defineProperty(exports, "StarOutlined", {
156
+ enumerable: true,
157
+ get: function () { return chunkTJII7BQ2_cjs.StarOutlined; }
158
+ });
159
+ Object.defineProperty(exports, "SwapOutlined", {
160
+ enumerable: true,
161
+ get: function () { return chunkTJII7BQ2_cjs.SwapOutlined; }
162
+ });
163
+ Object.defineProperty(exports, "SwapRightOutlined", {
164
+ enumerable: true,
165
+ get: function () { return chunkTJII7BQ2_cjs.SwapRightOutlined; }
166
+ });
167
+ Object.defineProperty(exports, "SyncOutlined", {
168
+ enumerable: true,
169
+ get: function () { return chunkTJII7BQ2_cjs.SyncOutlined; }
170
+ });
171
+ Object.defineProperty(exports, "ThunderboltOutlined", {
172
+ enumerable: true,
173
+ get: function () { return chunkTJII7BQ2_cjs.ThunderboltOutlined; }
174
+ });
175
+ Object.defineProperty(exports, "TranslationOutlined", {
176
+ enumerable: true,
177
+ get: function () { return chunkTJII7BQ2_cjs.TranslationOutlined; }
178
+ });
179
+ Object.defineProperty(exports, "UnorderedListOutlined", {
180
+ enumerable: true,
181
+ get: function () { return chunkTJII7BQ2_cjs.UnorderedListOutlined; }
182
+ });
183
+ Object.defineProperty(exports, "UserOutlined", {
184
+ enumerable: true,
185
+ get: function () { return chunkTJII7BQ2_cjs.UserOutlined; }
186
+ });
187
+ Object.defineProperty(exports, "resolveIconName", {
188
+ enumerable: true,
189
+ get: function () { return chunkTJII7BQ2_cjs.resolveIconName; }
14
190
  });