@fangxinyan/lumina 0.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.
Files changed (319) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +110 -0
  3. package/dist/Accordion-GSBY5T5U.css +38 -0
  4. package/dist/Accordion.cjs +13 -0
  5. package/dist/Accordion.cjs.map +1 -0
  6. package/dist/Accordion.d.cts +21 -0
  7. package/dist/Accordion.d.ts +21 -0
  8. package/dist/Accordion.js +4 -0
  9. package/dist/Accordion.js.map +1 -0
  10. package/dist/Alert-LSKBYDRI.css +35 -0
  11. package/dist/Alert.cjs +13 -0
  12. package/dist/Alert.cjs.map +1 -0
  13. package/dist/Alert.d.cts +17 -0
  14. package/dist/Alert.d.ts +17 -0
  15. package/dist/Alert.js +4 -0
  16. package/dist/Alert.js.map +1 -0
  17. package/dist/AppShell-RCALXUCZ.css +162 -0
  18. package/dist/AppShell.cjs +24 -0
  19. package/dist/AppShell.cjs.map +1 -0
  20. package/dist/AppShell.d.cts +68 -0
  21. package/dist/AppShell.d.ts +68 -0
  22. package/dist/AppShell.js +3 -0
  23. package/dist/AppShell.js.map +1 -0
  24. package/dist/Avatar-OXDSG5Q6.css +36 -0
  25. package/dist/Avatar.cjs +12 -0
  26. package/dist/Avatar.cjs.map +1 -0
  27. package/dist/Avatar.d.cts +15 -0
  28. package/dist/Avatar.d.ts +15 -0
  29. package/dist/Avatar.js +3 -0
  30. package/dist/Avatar.js.map +1 -0
  31. package/dist/Button-5UI7QXGU.css +96 -0
  32. package/dist/Button.cjs +17 -0
  33. package/dist/Button.cjs.map +1 -0
  34. package/dist/Button.d.cts +41 -0
  35. package/dist/Button.d.ts +41 -0
  36. package/dist/Button.js +4 -0
  37. package/dist/Button.js.map +1 -0
  38. package/dist/Calendar-LHZELUDL.css +65 -0
  39. package/dist/Calendar.cjs +13 -0
  40. package/dist/Calendar.cjs.map +1 -0
  41. package/dist/Calendar.d.cts +16 -0
  42. package/dist/Calendar.d.ts +16 -0
  43. package/dist/Calendar.js +4 -0
  44. package/dist/Calendar.js.map +1 -0
  45. package/dist/Card-2CHHFD4Y.css +28 -0
  46. package/dist/Card.cjs +16 -0
  47. package/dist/Card.cjs.map +1 -0
  48. package/dist/Card.d.cts +25 -0
  49. package/dist/Card.d.ts +25 -0
  50. package/dist/Card.js +3 -0
  51. package/dist/Card.js.map +1 -0
  52. package/dist/Cascader-TO2QMSLJ.css +76 -0
  53. package/dist/Cascader.cjs +13 -0
  54. package/dist/Cascader.cjs.map +1 -0
  55. package/dist/Cascader.d.cts +23 -0
  56. package/dist/Cascader.d.ts +23 -0
  57. package/dist/Cascader.js +4 -0
  58. package/dist/Cascader.js.map +1 -0
  59. package/dist/Checkbox-SKJATVSN.css +72 -0
  60. package/dist/Checkbox.cjs +17 -0
  61. package/dist/Checkbox.cjs.map +1 -0
  62. package/dist/Checkbox.d.cts +33 -0
  63. package/dist/Checkbox.d.ts +33 -0
  64. package/dist/Checkbox.js +4 -0
  65. package/dist/Checkbox.js.map +1 -0
  66. package/dist/Divider-Z37INS5E.css +49 -0
  67. package/dist/Divider.cjs +12 -0
  68. package/dist/Divider.cjs.map +1 -0
  69. package/dist/Divider.d.cts +12 -0
  70. package/dist/Divider.d.ts +12 -0
  71. package/dist/Divider.js +3 -0
  72. package/dist/Divider.js.map +1 -0
  73. package/dist/Empty-VM23UNLQ.css +138 -0
  74. package/dist/Empty.cjs +20 -0
  75. package/dist/Empty.cjs.map +1 -0
  76. package/dist/Empty.d.cts +37 -0
  77. package/dist/Empty.d.ts +37 -0
  78. package/dist/Empty.js +3 -0
  79. package/dist/Empty.js.map +1 -0
  80. package/dist/Icon.cjs +16 -0
  81. package/dist/Icon.cjs.map +1 -0
  82. package/dist/Icon.d.cts +21 -0
  83. package/dist/Icon.d.ts +21 -0
  84. package/dist/Icon.js +3 -0
  85. package/dist/Icon.js.map +1 -0
  86. package/dist/Image-WYWORJT4.css +106 -0
  87. package/dist/Image.cjs +17 -0
  88. package/dist/Image.cjs.map +1 -0
  89. package/dist/Image.d.cts +30 -0
  90. package/dist/Image.d.ts +30 -0
  91. package/dist/Image.js +4 -0
  92. package/dist/Image.js.map +1 -0
  93. package/dist/Input-Z526ARZP.css +66 -0
  94. package/dist/Input.cjs +17 -0
  95. package/dist/Input.cjs.map +1 -0
  96. package/dist/Input.d.cts +36 -0
  97. package/dist/Input.d.ts +36 -0
  98. package/dist/Input.js +4 -0
  99. package/dist/Input.js.map +1 -0
  100. package/dist/List-W5BW4D2P.css +26 -0
  101. package/dist/List.cjs +12 -0
  102. package/dist/List.cjs.map +1 -0
  103. package/dist/List.d.cts +20 -0
  104. package/dist/List.d.ts +20 -0
  105. package/dist/List.js +3 -0
  106. package/dist/List.js.map +1 -0
  107. package/dist/Modal-AYKNIWWQ.css +79 -0
  108. package/dist/Modal.cjs +18 -0
  109. package/dist/Modal.cjs.map +1 -0
  110. package/dist/Modal.d.cts +27 -0
  111. package/dist/Modal.d.ts +27 -0
  112. package/dist/Modal.js +5 -0
  113. package/dist/Modal.js.map +1 -0
  114. package/dist/Pagination-6FFOI4NM.css +35 -0
  115. package/dist/Pagination.cjs +13 -0
  116. package/dist/Pagination.cjs.map +1 -0
  117. package/dist/Pagination.d.cts +19 -0
  118. package/dist/Pagination.d.ts +19 -0
  119. package/dist/Pagination.js +4 -0
  120. package/dist/Pagination.js.map +1 -0
  121. package/dist/Popover-WXEVUYBG.css +15 -0
  122. package/dist/Popover.cjs +12 -0
  123. package/dist/Popover.cjs.map +1 -0
  124. package/dist/Popover.d.cts +16 -0
  125. package/dist/Popover.d.ts +16 -0
  126. package/dist/Popover.js +3 -0
  127. package/dist/Popover.js.map +1 -0
  128. package/dist/Progress-IXRSO5TW.css +63 -0
  129. package/dist/Progress.cjs +16 -0
  130. package/dist/Progress.cjs.map +1 -0
  131. package/dist/Progress.d.cts +26 -0
  132. package/dist/Progress.d.ts +26 -0
  133. package/dist/Progress.js +3 -0
  134. package/dist/Progress.js.map +1 -0
  135. package/dist/Select-DDJJBQEL.css +263 -0
  136. package/dist/Select.cjs +14 -0
  137. package/dist/Select.cjs.map +1 -0
  138. package/dist/Select.d.cts +68 -0
  139. package/dist/Select.d.ts +68 -0
  140. package/dist/Select.js +5 -0
  141. package/dist/Select.js.map +1 -0
  142. package/dist/Slider-RE4HZQKF.css +59 -0
  143. package/dist/Slider.cjs +12 -0
  144. package/dist/Slider.cjs.map +1 -0
  145. package/dist/Slider.d.cts +18 -0
  146. package/dist/Slider.d.ts +18 -0
  147. package/dist/Slider.js +3 -0
  148. package/dist/Slider.js.map +1 -0
  149. package/dist/Switch-NP7KKJOX.css +44 -0
  150. package/dist/Switch.cjs +12 -0
  151. package/dist/Switch.cjs.map +1 -0
  152. package/dist/Switch.d.cts +18 -0
  153. package/dist/Switch.d.ts +18 -0
  154. package/dist/Switch.js +3 -0
  155. package/dist/Switch.js.map +1 -0
  156. package/dist/Table-ZDPGWLH3.css +139 -0
  157. package/dist/Table.cjs +18 -0
  158. package/dist/Table.cjs.map +1 -0
  159. package/dist/Table.d.cts +57 -0
  160. package/dist/Table.d.ts +57 -0
  161. package/dist/Table.js +5 -0
  162. package/dist/Table.js.map +1 -0
  163. package/dist/Tabs-A27TSZOP.css +95 -0
  164. package/dist/Tabs.cjs +16 -0
  165. package/dist/Tabs.cjs.map +1 -0
  166. package/dist/Tabs.d.cts +35 -0
  167. package/dist/Tabs.d.ts +35 -0
  168. package/dist/Tabs.js +3 -0
  169. package/dist/Tabs.js.map +1 -0
  170. package/dist/Tag-EYOY3UWG.css +49 -0
  171. package/dist/Tag.cjs +17 -0
  172. package/dist/Tag.cjs.map +1 -0
  173. package/dist/Tag.d.cts +27 -0
  174. package/dist/Tag.d.ts +27 -0
  175. package/dist/Tag.js +4 -0
  176. package/dist/Tag.js.map +1 -0
  177. package/dist/Theme.cjs +44 -0
  178. package/dist/Theme.cjs.map +1 -0
  179. package/dist/Theme.d.cts +127 -0
  180. package/dist/Theme.d.ts +127 -0
  181. package/dist/Theme.js +3 -0
  182. package/dist/Theme.js.map +1 -0
  183. package/dist/Toast-ERHDN3WG.css +45 -0
  184. package/dist/Toast.cjs +17 -0
  185. package/dist/Toast.cjs.map +1 -0
  186. package/dist/Toast.d.cts +26 -0
  187. package/dist/Toast.d.ts +26 -0
  188. package/dist/Toast.js +4 -0
  189. package/dist/Toast.js.map +1 -0
  190. package/dist/Tooltip-RT4BOVTD.css +23 -0
  191. package/dist/Tooltip.cjs +12 -0
  192. package/dist/Tooltip.cjs.map +1 -0
  193. package/dist/Tooltip.d.cts +13 -0
  194. package/dist/Tooltip.d.ts +13 -0
  195. package/dist/Tooltip.js +3 -0
  196. package/dist/Tooltip.js.map +1 -0
  197. package/dist/chunk-2VA2HSL4.cjs +121 -0
  198. package/dist/chunk-2VA2HSL4.cjs.map +1 -0
  199. package/dist/chunk-2W2AJUZW.js +118 -0
  200. package/dist/chunk-2W2AJUZW.js.map +1 -0
  201. package/dist/chunk-3QWHDCHJ.js +53 -0
  202. package/dist/chunk-3QWHDCHJ.js.map +1 -0
  203. package/dist/chunk-3WAFIUDQ.js +85 -0
  204. package/dist/chunk-3WAFIUDQ.js.map +1 -0
  205. package/dist/chunk-4AA22BOG.js +63 -0
  206. package/dist/chunk-4AA22BOG.js.map +1 -0
  207. package/dist/chunk-4GT5TOHP.js +18 -0
  208. package/dist/chunk-4GT5TOHP.js.map +1 -0
  209. package/dist/chunk-5EYI27B6.js +64 -0
  210. package/dist/chunk-5EYI27B6.js.map +1 -0
  211. package/dist/chunk-6YVW3VYL.js +51 -0
  212. package/dist/chunk-6YVW3VYL.js.map +1 -0
  213. package/dist/chunk-77NP67ML.cjs +70 -0
  214. package/dist/chunk-77NP67ML.cjs.map +1 -0
  215. package/dist/chunk-7CKHWCEA.cjs +110 -0
  216. package/dist/chunk-7CKHWCEA.cjs.map +1 -0
  217. package/dist/chunk-7H453VPW.cjs +20 -0
  218. package/dist/chunk-7H453VPW.cjs.map +1 -0
  219. package/dist/chunk-7NM5BRUX.js +91 -0
  220. package/dist/chunk-7NM5BRUX.js.map +1 -0
  221. package/dist/chunk-7U6I44RV.cjs +283 -0
  222. package/dist/chunk-7U6I44RV.cjs.map +1 -0
  223. package/dist/chunk-AAMYURWQ.cjs +87 -0
  224. package/dist/chunk-AAMYURWQ.cjs.map +1 -0
  225. package/dist/chunk-ALFDP5WX.cjs +70 -0
  226. package/dist/chunk-ALFDP5WX.cjs.map +1 -0
  227. package/dist/chunk-C5TGQ7CV.cjs +114 -0
  228. package/dist/chunk-C5TGQ7CV.cjs.map +1 -0
  229. package/dist/chunk-F3NHM4GX.js +20 -0
  230. package/dist/chunk-F3NHM4GX.js.map +1 -0
  231. package/dist/chunk-FI7QO3I5.cjs +90 -0
  232. package/dist/chunk-FI7QO3I5.cjs.map +1 -0
  233. package/dist/chunk-FMG3ZPGK.js +88 -0
  234. package/dist/chunk-FMG3ZPGK.js.map +1 -0
  235. package/dist/chunk-G3UWXSNQ.js +71 -0
  236. package/dist/chunk-G3UWXSNQ.js.map +1 -0
  237. package/dist/chunk-GEYMWUW6.js +146 -0
  238. package/dist/chunk-GEYMWUW6.js.map +1 -0
  239. package/dist/chunk-HTP6UEVR.js +48 -0
  240. package/dist/chunk-HTP6UEVR.js.map +1 -0
  241. package/dist/chunk-I2ERCHFV.cjs +58 -0
  242. package/dist/chunk-I2ERCHFV.cjs.map +1 -0
  243. package/dist/chunk-I7SSCSFH.js +253 -0
  244. package/dist/chunk-I7SSCSFH.js.map +1 -0
  245. package/dist/chunk-IGHLSNXT.cjs +109 -0
  246. package/dist/chunk-IGHLSNXT.cjs.map +1 -0
  247. package/dist/chunk-IKI5CS4L.cjs +91 -0
  248. package/dist/chunk-IKI5CS4L.cjs.map +1 -0
  249. package/dist/chunk-ITGCHU3Y.cjs +94 -0
  250. package/dist/chunk-ITGCHU3Y.cjs.map +1 -0
  251. package/dist/chunk-JNFCTYJT.cjs +31 -0
  252. package/dist/chunk-JNFCTYJT.cjs.map +1 -0
  253. package/dist/chunk-JWFVSBVX.cjs +30 -0
  254. package/dist/chunk-JWFVSBVX.cjs.map +1 -0
  255. package/dist/chunk-K5MHL732.js +81 -0
  256. package/dist/chunk-K5MHL732.js.map +1 -0
  257. package/dist/chunk-K67KIKX4.cjs +67 -0
  258. package/dist/chunk-K67KIKX4.cjs.map +1 -0
  259. package/dist/chunk-KF4MCHZL.cjs +105 -0
  260. package/dist/chunk-KF4MCHZL.cjs.map +1 -0
  261. package/dist/chunk-M6CGYGEO.js +91 -0
  262. package/dist/chunk-M6CGYGEO.js.map +1 -0
  263. package/dist/chunk-M6OTFXZA.js +48 -0
  264. package/dist/chunk-M6OTFXZA.js.map +1 -0
  265. package/dist/chunk-NWJW5KLN.js +29 -0
  266. package/dist/chunk-NWJW5KLN.js.map +1 -0
  267. package/dist/chunk-NXOAYNG2.cjs +52 -0
  268. package/dist/chunk-NXOAYNG2.cjs.map +1 -0
  269. package/dist/chunk-NZPJ7BUB.cjs +22 -0
  270. package/dist/chunk-NZPJ7BUB.cjs.map +1 -0
  271. package/dist/chunk-OUJBCNWD.js +52 -0
  272. package/dist/chunk-OUJBCNWD.js.map +1 -0
  273. package/dist/chunk-OXYFB2ZI.js +35 -0
  274. package/dist/chunk-OXYFB2ZI.js.map +1 -0
  275. package/dist/chunk-Q33V7MSK.js +79 -0
  276. package/dist/chunk-Q33V7MSK.js.map +1 -0
  277. package/dist/chunk-QESLHLTG.cjs +107 -0
  278. package/dist/chunk-QESLHLTG.cjs.map +1 -0
  279. package/dist/chunk-QPZZNSRB.js +65 -0
  280. package/dist/chunk-QPZZNSRB.js.map +1 -0
  281. package/dist/chunk-QT7SJITQ.cjs +114 -0
  282. package/dist/chunk-QT7SJITQ.cjs.map +1 -0
  283. package/dist/chunk-RMD6KQ4H.cjs +56 -0
  284. package/dist/chunk-RMD6KQ4H.cjs.map +1 -0
  285. package/dist/chunk-T5AH4FCV.js +280 -0
  286. package/dist/chunk-T5AH4FCV.js.map +1 -0
  287. package/dist/chunk-U6ODMPTI.cjs +74 -0
  288. package/dist/chunk-U6ODMPTI.cjs.map +1 -0
  289. package/dist/chunk-V2ZUOEXM.cjs +73 -0
  290. package/dist/chunk-V2ZUOEXM.cjs.map +1 -0
  291. package/dist/chunk-VJN637MT.js +49 -0
  292. package/dist/chunk-VJN637MT.js.map +1 -0
  293. package/dist/chunk-VMHNKD3N.cjs +56 -0
  294. package/dist/chunk-VMHNKD3N.cjs.map +1 -0
  295. package/dist/chunk-VXITDXLW.js +28 -0
  296. package/dist/chunk-VXITDXLW.js.map +1 -0
  297. package/dist/chunk-XFRP2MBR.js +87 -0
  298. package/dist/chunk-XFRP2MBR.js.map +1 -0
  299. package/dist/chunk-XRZ5OKZH.js +101 -0
  300. package/dist/chunk-XRZ5OKZH.js.map +1 -0
  301. package/dist/chunk-Y6FVCCUE.js +34 -0
  302. package/dist/chunk-Y6FVCCUE.js.map +1 -0
  303. package/dist/chunk-YVO7XO4W.cjs +149 -0
  304. package/dist/chunk-YVO7XO4W.cjs.map +1 -0
  305. package/dist/chunk-ZMDVK2U3.cjs +302 -0
  306. package/dist/chunk-ZMDVK2U3.cjs.map +1 -0
  307. package/dist/chunk-ZXM247EM.cjs +123 -0
  308. package/dist/chunk-ZXM247EM.cjs.map +1 -0
  309. package/dist/index.cjs +249 -0
  310. package/dist/index.cjs.map +1 -0
  311. package/dist/index.d.cts +35 -0
  312. package/dist/index.d.ts +35 -0
  313. package/dist/index.js +35 -0
  314. package/dist/index.js.map +1 -0
  315. package/dist/shared-NJHRNLRH.css +4 -0
  316. package/dist/styles.css +2068 -0
  317. package/dist/tokens-HWQ7KWPG.css +153 -0
  318. package/dist/tokens.css +153 -0
  319. package/package.json +77 -0
@@ -0,0 +1,106 @@
1
+ /* ============ Image ============ */
2
+ .n-image {
3
+ display: inline-block;
4
+ position: relative;
5
+ border-radius: var(--r-md);
6
+ background: var(--bg);
7
+ padding: 6px;
8
+ box-shadow: var(--neu-out-sm);
9
+ overflow: hidden;
10
+ line-height: 0;
11
+ }
12
+ .n-image-frame {
13
+ position: relative;
14
+ overflow: hidden;
15
+ border-radius: calc(var(--r-md) - 4px);
16
+ box-shadow: var(--neu-in-sm);
17
+ background: var(--bg-sunken);
18
+ }
19
+ .n-image img {
20
+ display: block;
21
+ width: 100%;
22
+ height: 100%;
23
+ object-fit: cover;
24
+ transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
25
+ }
26
+ .n-image.hover img:hover { transform: scale(1.04); }
27
+ .n-image-placeholder {
28
+ position: absolute; inset: 0;
29
+ display: grid; place-items: center;
30
+ color: var(--fg-subtle);
31
+ background:
32
+ repeating-linear-gradient(45deg,
33
+ transparent 0 10px,
34
+ color-mix(in oklch, var(--fg-subtle) 8%, transparent) 10px 11px);
35
+ transition: opacity var(--dur) var(--ease);
36
+ }
37
+ .n-image-placeholder.loaded { opacity: 0; pointer-events: none; }
38
+ .n-image.clickable { cursor: zoom-in; }
39
+ .image-actions {
40
+ position: absolute;
41
+ top: 10px;
42
+ right: 10px;
43
+ display: flex;
44
+ gap: 4px;
45
+ padding: 4px;
46
+ border-radius: 999px;
47
+ background: color-mix(in oklch, black 32%, transparent);
48
+ backdrop-filter: blur(14px) saturate(1.2);
49
+ border: 1px solid color-mix(in oklch, white 18%, transparent);
50
+ opacity: 0;
51
+ transform: translateY(-4px);
52
+ transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
53
+ }
54
+ .n-image:hover .image-actions { opacity: 1; transform: translateY(0); }
55
+ .image-actions .ia-btn {
56
+ width: 26px;
57
+ height: 26px;
58
+ border: 0;
59
+ padding: 0;
60
+ border-radius: 999px;
61
+ display: grid;
62
+ place-items: center;
63
+ color: rgba(255,255,255,0.85);
64
+ background: transparent;
65
+ cursor: pointer;
66
+ transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
67
+ }
68
+ .image-actions .ia-btn:hover {
69
+ background: color-mix(in oklch, white 22%, transparent);
70
+ color: white;
71
+ }
72
+ .image-hint {
73
+ position: absolute;
74
+ left: 10px;
75
+ bottom: 10px;
76
+ display: inline-flex;
77
+ align-items: center;
78
+ gap: 4px;
79
+ padding: 4px 10px;
80
+ font-size: 11px;
81
+ font-weight: 500;
82
+ color: rgba(255,255,255,0.95);
83
+ border-radius: 999px;
84
+ background: color-mix(in oklch, black 38%, transparent);
85
+ backdrop-filter: blur(12px) saturate(1.2);
86
+ border: 1px solid color-mix(in oklch, white 16%, transparent);
87
+ opacity: 0;
88
+ transform: translateY(4px);
89
+ transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
90
+ pointer-events: none;
91
+ }
92
+ .n-image:hover .image-hint { opacity: 1; transform: translateY(0); }
93
+ .image-preview-overlay {
94
+ position: fixed; inset: 0;
95
+ background: color-mix(in oklch, var(--bg-sunken) 82%, transparent);
96
+ backdrop-filter: blur(16px);
97
+ display: grid; place-items: center;
98
+ z-index: 500;
99
+ animation: fadeIn var(--dur) var(--ease);
100
+ }
101
+ .image-preview-overlay img {
102
+ max-width: 80vw;
103
+ max-height: 80vh;
104
+ border-radius: var(--r-lg);
105
+ box-shadow: var(--neu-out-lg), 0 40px 80px -20px rgba(0,0,0,0.25);
106
+ }
package/dist/Image.cjs ADDED
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var chunkQESLHLTG_cjs = require('./chunk-QESLHLTG.cjs');
4
+ require('./chunk-YVO7XO4W.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Image", {
9
+ enumerable: true,
10
+ get: function () { return chunkQESLHLTG_cjs.Image; }
11
+ });
12
+ Object.defineProperty(exports, "ImageGrid", {
13
+ enumerable: true,
14
+ get: function () { return chunkQESLHLTG_cjs.ImageGrid; }
15
+ });
16
+ //# sourceMappingURL=Image.cjs.map
17
+ //# sourceMappingURL=Image.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Image.cjs"}
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+
3
+ interface ImageProps {
4
+ src?: string;
5
+ alt?: string;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ /** Allow click-to-zoom preview overlay. */
9
+ preview?: boolean;
10
+ /** Hover scale-up. */
11
+ hover?: boolean;
12
+ /** Custom placeholder while loading or on error. */
13
+ placeholder?: React.ReactNode;
14
+ className?: string;
15
+ }
16
+ /** `Image` — neumorphic framed image with optional preview overlay. */
17
+ declare const Image: React.FC<ImageProps>;
18
+ interface ImageGridProps {
19
+ images: {
20
+ src: string;
21
+ alt?: string;
22
+ }[];
23
+ columns?: number;
24
+ itemHeight?: number;
25
+ className?: string;
26
+ }
27
+ /** `ImageGrid` — auto-fit grid of `Image` items. */
28
+ declare const ImageGrid: React.FC<ImageGridProps>;
29
+
30
+ export { Image, ImageGrid, type ImageGridProps, type ImageProps };
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+
3
+ interface ImageProps {
4
+ src?: string;
5
+ alt?: string;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ /** Allow click-to-zoom preview overlay. */
9
+ preview?: boolean;
10
+ /** Hover scale-up. */
11
+ hover?: boolean;
12
+ /** Custom placeholder while loading or on error. */
13
+ placeholder?: React.ReactNode;
14
+ className?: string;
15
+ }
16
+ /** `Image` — neumorphic framed image with optional preview overlay. */
17
+ declare const Image: React.FC<ImageProps>;
18
+ interface ImageGridProps {
19
+ images: {
20
+ src: string;
21
+ alt?: string;
22
+ }[];
23
+ columns?: number;
24
+ itemHeight?: number;
25
+ className?: string;
26
+ }
27
+ /** `ImageGrid` — auto-fit grid of `Image` items. */
28
+ declare const ImageGrid: React.FC<ImageGridProps>;
29
+
30
+ export { Image, ImageGrid, type ImageGridProps, type ImageProps };
package/dist/Image.js ADDED
@@ -0,0 +1,4 @@
1
+ export { Image, ImageGrid } from './chunk-K5MHL732.js';
2
+ import './chunk-GEYMWUW6.js';
3
+ //# sourceMappingURL=Image.js.map
4
+ //# sourceMappingURL=Image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Image.js"}
@@ -0,0 +1,66 @@
1
+ /* ============ Input / Textarea ============ */
2
+ .input-wrap {
3
+ position: relative;
4
+ display: inline-flex;
5
+ align-items: center;
6
+ width: 100%;
7
+ }
8
+ .input-wrap .lead,
9
+ .input-wrap .trail {
10
+ position: absolute;
11
+ color: var(--fg-subtle);
12
+ pointer-events: none;
13
+ }
14
+ .input-wrap .lead { left: 14px; }
15
+ .input-wrap .trail { right: 14px; pointer-events: auto; cursor: pointer; }
16
+ .input-wrap .trail:hover { color: var(--fg); }
17
+
18
+ .input,
19
+ .input-wrap > input {
20
+ width: 100%;
21
+ height: var(--ctrl-h);
22
+ padding: 0 var(--ctrl-pad-x);
23
+ border: none;
24
+ border-radius: var(--r-md);
25
+ background: var(--bg);
26
+ box-shadow: var(--neu-in-sm);
27
+ color: var(--fg);
28
+ font-size: 13px;
29
+ font-family: inherit;
30
+ outline: none;
31
+ transition: box-shadow var(--dur) var(--ease);
32
+ }
33
+ .input-wrap:has(.lead) > input,
34
+ .input-wrap.with-leading > input { padding-left: 40px; }
35
+ .input-wrap:has(.trail) > input,
36
+ .input-wrap.with-trailing > input { padding-right: 40px; }
37
+ .input:focus,
38
+ .input-wrap > input:focus { box-shadow: var(--neu-in-sm), 0 0 0 2px var(--accent-glow); }
39
+ .input::placeholder,
40
+ .input-wrap > input::placeholder { color: var(--fg-subtle); }
41
+ .input[disabled],
42
+ .input-wrap.disabled > input { opacity: 0.6; cursor: not-allowed; }
43
+ .input-wrap.invalid > input,
44
+ .input.invalid { box-shadow: var(--neu-in-sm), 0 0 0 2px color-mix(in oklch, var(--danger) 30%, transparent); }
45
+ .input-wrap.sm > input { height: 32px; padding-left: 12px; padding-right: 12px; font-size: 12px; border-radius: var(--r-sm); }
46
+ .input-wrap.lg > input { height: 48px; padding-left: 18px; padding-right: 18px; font-size: 14px; border-radius: var(--r-lg); }
47
+
48
+ .textarea {
49
+ width: 100%;
50
+ min-height: 96px;
51
+ padding: 12px 14px;
52
+ border: none;
53
+ border-radius: var(--r-md);
54
+ background: var(--bg);
55
+ box-shadow: var(--neu-in-sm);
56
+ color: var(--fg);
57
+ font-size: 13px;
58
+ font-family: inherit;
59
+ line-height: 1.55;
60
+ resize: vertical;
61
+ outline: none;
62
+ transition: box-shadow var(--dur) var(--ease);
63
+ }
64
+ .textarea:focus { box-shadow: var(--neu-in-sm), 0 0 0 2px var(--accent-glow); }
65
+ .textarea.invalid { box-shadow: var(--neu-in-sm), 0 0 0 2px color-mix(in oklch, var(--danger) 30%, transparent); }
66
+ .textarea::placeholder { color: var(--fg-subtle); }
package/dist/Input.cjs ADDED
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var chunkQT7SJITQ_cjs = require('./chunk-QT7SJITQ.cjs');
4
+ require('./chunk-YVO7XO4W.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "Input", {
9
+ enumerable: true,
10
+ get: function () { return chunkQT7SJITQ_cjs.Input; }
11
+ });
12
+ Object.defineProperty(exports, "Textarea", {
13
+ enumerable: true,
14
+ get: function () { return chunkQT7SJITQ_cjs.Textarea; }
15
+ });
16
+ //# sourceMappingURL=Input.cjs.map
17
+ //# sourceMappingURL=Input.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Input.cjs"}
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { IconName } from './Icon.cjs';
3
+
4
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
5
+ value?: string;
6
+ defaultValue?: string;
7
+ onChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
8
+ placeholder?: string;
9
+ leadingIcon?: IconName;
10
+ trailingIcon?: IconName;
11
+ /** Click handler for the leading icon (stops propagation so the input isn't focused). */
12
+ onLeadingIconClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
13
+ /** Click handler for the trailing icon — e.g. password visibility toggle. */
14
+ onTrailingIconClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
15
+ size?: "sm" | "md" | "lg";
16
+ invalid?: boolean;
17
+ disabled?: boolean;
18
+ className?: string;
19
+ }
20
+ /**
21
+ * `Input` — single-line text field with optional leading/trailing icons.
22
+ */
23
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
24
+ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
25
+ value?: string;
26
+ defaultValue?: string;
27
+ onChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
28
+ invalid?: boolean;
29
+ className?: string;
30
+ }
31
+ /**
32
+ * `Textarea` — multi-line text input with the same neumorphic groove as `Input`.
33
+ */
34
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
35
+
36
+ export { Input, type InputProps, Textarea, type TextareaProps };
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { IconName } from './Icon.js';
3
+
4
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
5
+ value?: string;
6
+ defaultValue?: string;
7
+ onChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
8
+ placeholder?: string;
9
+ leadingIcon?: IconName;
10
+ trailingIcon?: IconName;
11
+ /** Click handler for the leading icon (stops propagation so the input isn't focused). */
12
+ onLeadingIconClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
13
+ /** Click handler for the trailing icon — e.g. password visibility toggle. */
14
+ onTrailingIconClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
15
+ size?: "sm" | "md" | "lg";
16
+ invalid?: boolean;
17
+ disabled?: boolean;
18
+ className?: string;
19
+ }
20
+ /**
21
+ * `Input` — single-line text field with optional leading/trailing icons.
22
+ */
23
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
24
+ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
25
+ value?: string;
26
+ defaultValue?: string;
27
+ onChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
28
+ invalid?: boolean;
29
+ className?: string;
30
+ }
31
+ /**
32
+ * `Textarea` — multi-line text input with the same neumorphic groove as `Input`.
33
+ */
34
+ declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
35
+
36
+ export { Input, type InputProps, Textarea, type TextareaProps };
package/dist/Input.js ADDED
@@ -0,0 +1,4 @@
1
+ export { Input, Textarea } from './chunk-7NM5BRUX.js';
2
+ import './chunk-GEYMWUW6.js';
3
+ //# sourceMappingURL=Input.js.map
4
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Input.js"}
@@ -0,0 +1,26 @@
1
+ /* ============ List ============ */
2
+ .list {
3
+ display: flex;
4
+ flex-direction: column;
5
+ background: var(--bg);
6
+ border-radius: var(--r-lg);
7
+ box-shadow: var(--neu-in-sm);
8
+ padding: 8px;
9
+ }
10
+ .list-item {
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 12px;
14
+ padding: 12px;
15
+ border-radius: var(--r-sm);
16
+ transition: all var(--dur-fast) var(--ease);
17
+ }
18
+ .list-item.clickable { cursor: pointer; }
19
+ .list-item.clickable:hover { background: var(--bg); box-shadow: var(--neu-flat); }
20
+ .list-item.selected { box-shadow: var(--neu-out-sm); background: var(--bg); }
21
+ .list.with-dividers .list-item + .list-item { border-top: 1px solid var(--divider); border-radius: 0; }
22
+ .list-item-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
23
+ .list-item-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
24
+ .list-item-desc { font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
25
+ .list-item-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
26
+ .list-item-avatar { display: inline-flex; align-items: center; justify-content: center; color: var(--fg-muted); flex-shrink: 0; }
package/dist/List.cjs ADDED
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunk7H453VPW_cjs = require('./chunk-7H453VPW.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "List", {
8
+ enumerable: true,
9
+ get: function () { return chunk7H453VPW_cjs.List; }
10
+ });
11
+ //# sourceMappingURL=List.cjs.map
12
+ //# sourceMappingURL=List.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"List.cjs"}
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+
3
+ interface ListItem {
4
+ key: string;
5
+ title?: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ avatar?: React.ReactNode;
8
+ actions?: React.ReactNode;
9
+ onClick?: () => void;
10
+ }
11
+ interface ListProps {
12
+ items: ListItem[];
13
+ /** Show dividers between items. */
14
+ dividers?: boolean;
15
+ className?: string;
16
+ }
17
+ /** `List` — vertical list of rows. */
18
+ declare const List: React.FC<ListProps>;
19
+
20
+ export { List, type ListItem, type ListProps };
package/dist/List.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+
3
+ interface ListItem {
4
+ key: string;
5
+ title?: React.ReactNode;
6
+ description?: React.ReactNode;
7
+ avatar?: React.ReactNode;
8
+ actions?: React.ReactNode;
9
+ onClick?: () => void;
10
+ }
11
+ interface ListProps {
12
+ items: ListItem[];
13
+ /** Show dividers between items. */
14
+ dividers?: boolean;
15
+ className?: string;
16
+ }
17
+ /** `List` — vertical list of rows. */
18
+ declare const List: React.FC<ListProps>;
19
+
20
+ export { List, type ListItem, type ListProps };
package/dist/List.js ADDED
@@ -0,0 +1,3 @@
1
+ export { List } from './chunk-4GT5TOHP.js';
2
+ //# sourceMappingURL=List.js.map
3
+ //# sourceMappingURL=List.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"List.js"}
@@ -0,0 +1,79 @@
1
+ /* ============ Modal ============ */
2
+ .modal-overlay {
3
+ position: fixed;
4
+ inset: 0;
5
+ background: color-mix(in oklch, var(--bg-sunken) 60%, transparent);
6
+ backdrop-filter: blur(8px);
7
+ display: grid;
8
+ place-items: center;
9
+ z-index: 200;
10
+ animation: fadeIn var(--dur) var(--ease);
11
+ }
12
+ .modal {
13
+ background: var(--bg);
14
+ border-radius: var(--r-xl);
15
+ box-shadow: var(--neu-out-lg), 0 24px 60px -20px rgba(40,55,80,0.3);
16
+ padding: var(--gap-6);
17
+ width: min(480px, 92vw);
18
+ animation: modalIn var(--dur-slow) var(--ease);
19
+ max-height: 86vh;
20
+ display: flex;
21
+ flex-direction: column;
22
+ }
23
+ @keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
24
+ .modal-head {
25
+ display: flex; align-items: flex-start; justify-content: space-between;
26
+ gap: var(--gap-3); margin-bottom: var(--gap-3);
27
+ }
28
+ .modal-titles { display: flex; flex-direction: column; gap: 4px; }
29
+ .modal-title { font-size: 17px; font-weight: 600; }
30
+ .modal-desc { font-size: 13px; color: var(--fg-muted); }
31
+ .modal-body { padding: var(--gap-3) 0; color: var(--fg-muted); font-size: 13px; line-height: 1.6; flex: 1; overflow-y: auto; }
32
+ .modal-foot {
33
+ display: flex; gap: 10px; justify-content: flex-end;
34
+ margin-top: var(--gap-4);
35
+ }
36
+ .modal-close {
37
+ width: 28px; height: 28px;
38
+ border: none; background: transparent;
39
+ border-radius: var(--r-sm);
40
+ display: grid; place-items: center;
41
+ color: var(--fg-subtle);
42
+ cursor: pointer;
43
+ transition: all var(--dur-fast) var(--ease);
44
+ }
45
+ .modal-close:hover { color: var(--fg); background: var(--bg); box-shadow: var(--neu-flat); }
46
+
47
+ /* ============ Drawer (co-exported from Modal.tsx) ============ */
48
+ .drawer-overlay {
49
+ position: fixed; inset: 0;
50
+ background: color-mix(in oklch, var(--bg-sunken) 50%, transparent);
51
+ backdrop-filter: blur(4px);
52
+ z-index: 150;
53
+ animation: fadeIn var(--dur) var(--ease);
54
+ }
55
+ .drawer {
56
+ position: fixed;
57
+ background: var(--bg);
58
+ padding: var(--gap-5);
59
+ z-index: 151;
60
+ overflow-y: auto;
61
+ display: flex;
62
+ flex-direction: column;
63
+ }
64
+ .drawer.right { top: 0; right: 0; bottom: 0; width: min(420px, 92vw); animation: drawerInRight var(--dur-slow) var(--ease); box-shadow: -24px 0 60px -20px rgba(40,55,80,0.25); }
65
+ .drawer.left { top: 0; left: 0; bottom: 0; width: min(420px, 92vw); animation: drawerInLeft var(--dur-slow) var(--ease); box-shadow: 24px 0 60px -20px rgba(40,55,80,0.25); }
66
+ .drawer.top { top: 0; left: 0; right: 0; height: min(320px, 80vh); animation: drawerInTop var(--dur-slow) var(--ease); box-shadow: 0 24px 60px -20px rgba(40,55,80,0.25); }
67
+ .drawer.bottom { bottom: 0; left: 0; right: 0; height: min(320px, 80vh); animation: drawerInBottom var(--dur-slow) var(--ease); box-shadow: 0 -24px 60px -20px rgba(40,55,80,0.25); }
68
+ @keyframes drawerInRight { from { transform: translateX( 20px); opacity: 0; } }
69
+ @keyframes drawerInLeft { from { transform: translateX(-20px); opacity: 0; } }
70
+ @keyframes drawerInTop { from { transform: translateY(-20px); opacity: 0; } }
71
+ @keyframes drawerInBottom { from { transform: translateY( 20px); opacity: 0; } }
72
+ .drawer-head {
73
+ display: flex; align-items: center; justify-content: space-between;
74
+ margin-bottom: var(--gap-4);
75
+ padding-bottom: var(--gap-4);
76
+ border-bottom: 1px solid var(--divider);
77
+ }
78
+ .drawer-title { font-size: 16px; font-weight: 600; }
79
+ .drawer-body { flex: 1; }
package/dist/Modal.cjs ADDED
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ var chunkKF4MCHZL_cjs = require('./chunk-KF4MCHZL.cjs');
4
+ require('./chunk-AAMYURWQ.cjs');
5
+ require('./chunk-YVO7XO4W.cjs');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "Drawer", {
10
+ enumerable: true,
11
+ get: function () { return chunkKF4MCHZL_cjs.Drawer; }
12
+ });
13
+ Object.defineProperty(exports, "Modal", {
14
+ enumerable: true,
15
+ get: function () { return chunkKF4MCHZL_cjs.Modal; }
16
+ });
17
+ //# sourceMappingURL=Modal.cjs.map
18
+ //# sourceMappingURL=Modal.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Modal.cjs"}
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+
3
+ interface ModalProps {
4
+ open: boolean;
5
+ onClose?: () => void;
6
+ title?: React.ReactNode;
7
+ description?: React.ReactNode;
8
+ footer?: React.ReactNode;
9
+ children?: React.ReactNode;
10
+ width?: number | string;
11
+ /** Close when clicking the mask. Default true. */
12
+ maskClosable?: boolean;
13
+ /** Close on Escape key. Default true. */
14
+ escClosable?: boolean;
15
+ className?: string;
16
+ }
17
+ /** `Modal` — centered dialog with mask. Renders into `document.body`. */
18
+ declare const Modal: React.FC<ModalProps>;
19
+ interface DrawerProps extends Omit<ModalProps, "width"> {
20
+ /** Edge the drawer slides from. */
21
+ placement?: "left" | "right" | "top" | "bottom";
22
+ size?: number | string;
23
+ }
24
+ /** `Drawer` — slide-in panel from an edge. */
25
+ declare const Drawer: React.FC<DrawerProps>;
26
+
27
+ export { Drawer, type DrawerProps, Modal, type ModalProps };
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+
3
+ interface ModalProps {
4
+ open: boolean;
5
+ onClose?: () => void;
6
+ title?: React.ReactNode;
7
+ description?: React.ReactNode;
8
+ footer?: React.ReactNode;
9
+ children?: React.ReactNode;
10
+ width?: number | string;
11
+ /** Close when clicking the mask. Default true. */
12
+ maskClosable?: boolean;
13
+ /** Close on Escape key. Default true. */
14
+ escClosable?: boolean;
15
+ className?: string;
16
+ }
17
+ /** `Modal` — centered dialog with mask. Renders into `document.body`. */
18
+ declare const Modal: React.FC<ModalProps>;
19
+ interface DrawerProps extends Omit<ModalProps, "width"> {
20
+ /** Edge the drawer slides from. */
21
+ placement?: "left" | "right" | "top" | "bottom";
22
+ size?: number | string;
23
+ }
24
+ /** `Drawer` — slide-in panel from an edge. */
25
+ declare const Drawer: React.FC<DrawerProps>;
26
+
27
+ export { Drawer, type DrawerProps, Modal, type ModalProps };
package/dist/Modal.js ADDED
@@ -0,0 +1,5 @@
1
+ export { Drawer, Modal } from './chunk-Q33V7MSK.js';
2
+ import './chunk-5EYI27B6.js';
3
+ import './chunk-GEYMWUW6.js';
4
+ //# sourceMappingURL=Modal.js.map
5
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Modal.js"}
@@ -0,0 +1,35 @@
1
+ /* ============ Pagination ============ */
2
+ .pagination {
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: space-between;
6
+ padding: 12px 14px;
7
+ font-size: 12px;
8
+ color: var(--fg-muted);
9
+ gap: 12px;
10
+ flex-wrap: wrap;
11
+ }
12
+ .pagination .pg-controls { display: flex; gap: 4px; align-items: center; }
13
+ .pagination .pg {
14
+ min-width: 30px; height: 30px;
15
+ padding: 0 10px;
16
+ border: none;
17
+ border-radius: var(--r-sm);
18
+ background: var(--bg);
19
+ box-shadow: var(--neu-out-sm);
20
+ display: inline-flex; align-items: center; justify-content: center;
21
+ cursor: pointer;
22
+ font-size: 12px;
23
+ font-family: inherit;
24
+ font-variant-numeric: tabular-nums;
25
+ color: var(--fg);
26
+ transition: all var(--dur-fast) var(--ease);
27
+ }
28
+ .pagination .pg:hover { color: var(--accent-ink); }
29
+ .pagination .pg.active {
30
+ box-shadow: var(--neu-in-sm);
31
+ color: var(--accent-ink);
32
+ font-weight: 700;
33
+ }
34
+ .pagination .pg.disabled { color: var(--fg-subtle); cursor: not-allowed; box-shadow: var(--neu-flat); }
35
+ .pagination .ellipsis { padding: 0 4px; color: var(--fg-subtle); }