@startdownnotez404/ui 1.0.0 → 1.3.5

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 (439) hide show
  1. package/README.md +110 -0
  2. package/dist/AutocompleteField-ZKNU2IRR.mjs +181 -0
  3. package/dist/AutocompleteField-ZKNU2IRR.mjs.map +1 -0
  4. package/dist/AvatarField-SAODT3CZ.mjs +275 -0
  5. package/dist/AvatarField-SAODT3CZ.mjs.map +1 -0
  6. package/dist/CodeEditor-JF55ZNVD.mjs +34 -0
  7. package/dist/CodeEditor-JF55ZNVD.mjs.map +1 -0
  8. package/dist/DateField-ZYMZFHL4.mjs +82 -0
  9. package/dist/DateField-ZYMZFHL4.mjs.map +1 -0
  10. package/dist/DateTimeField-TPTJ7YIZ.mjs +65 -0
  11. package/dist/DateTimeField-TPTJ7YIZ.mjs.map +1 -0
  12. package/dist/FileUploadField-NTMWBJER.mjs +78 -0
  13. package/dist/FileUploadField-NTMWBJER.mjs.map +1 -0
  14. package/dist/JSONEditorField-TMRWGXVR.mjs +64 -0
  15. package/dist/JSONEditorField-TMRWGXVR.mjs.map +1 -0
  16. package/dist/PopperMenu-LJ36RPBW.mjs +416 -0
  17. package/dist/PopperMenu-LJ36RPBW.mjs.map +1 -0
  18. package/dist/TelField-LOGRVZ4I.mjs +88 -0
  19. package/dist/TelField-LOGRVZ4I.mjs.map +1 -0
  20. package/dist/alert.d.mts +202 -0
  21. package/dist/alert.d.ts +202 -0
  22. package/dist/alert.js +784 -0
  23. package/dist/alert.js.map +1 -0
  24. package/dist/alert.mjs +47 -0
  25. package/dist/alert.mjs.map +1 -0
  26. package/dist/appBar.d.mts +21 -0
  27. package/dist/appBar.d.ts +21 -0
  28. package/dist/appBar.js +64 -0
  29. package/dist/appBar.js.map +1 -0
  30. package/dist/appBar.mjs +12 -0
  31. package/dist/appBar.mjs.map +1 -0
  32. package/dist/autocomplete.d.mts +121 -0
  33. package/dist/autocomplete.d.ts +121 -0
  34. package/dist/autocomplete.js +2052 -0
  35. package/dist/autocomplete.js.map +1 -0
  36. package/dist/autocomplete.mjs +21 -0
  37. package/dist/autocomplete.mjs.map +1 -0
  38. package/dist/avatar.d.mts +253 -0
  39. package/dist/avatar.d.ts +253 -0
  40. package/dist/avatar.js +992 -0
  41. package/dist/avatar.js.map +1 -0
  42. package/dist/avatar.mjs +41 -0
  43. package/dist/avatar.mjs.map +1 -0
  44. package/dist/badge.d.mts +123 -0
  45. package/dist/badge.d.ts +123 -0
  46. package/dist/badge.js +151 -0
  47. package/dist/badge.js.map +1 -0
  48. package/dist/badge.mjs +10 -0
  49. package/dist/badge.mjs.map +1 -0
  50. package/dist/box.d.mts +36 -0
  51. package/dist/box.d.ts +36 -0
  52. package/dist/box.js +199 -0
  53. package/dist/box.js.map +1 -0
  54. package/dist/box.mjs +14 -0
  55. package/dist/box.mjs.map +1 -0
  56. package/dist/button.d.mts +230 -52
  57. package/dist/button.d.ts +230 -52
  58. package/dist/button.js +392 -60
  59. package/dist/button.js.map +1 -1
  60. package/dist/button.mjs +14 -8
  61. package/dist/card.d.mts +47 -0
  62. package/dist/card.d.ts +47 -0
  63. package/dist/card.js +135 -0
  64. package/dist/card.js.map +1 -0
  65. package/dist/card.mjs +24 -0
  66. package/dist/card.mjs.map +1 -0
  67. package/dist/chart.d.mts +40 -0
  68. package/dist/chart.d.ts +40 -0
  69. package/dist/chart.js +1234 -0
  70. package/dist/chart.js.map +1 -0
  71. package/dist/chart.mjs +10 -0
  72. package/dist/chart.mjs.map +1 -0
  73. package/dist/checkbox.d.mts +62 -0
  74. package/dist/checkbox.d.ts +62 -0
  75. package/dist/checkbox.js +299 -0
  76. package/dist/checkbox.js.map +1 -0
  77. package/dist/checkbox.mjs +14 -0
  78. package/dist/checkbox.mjs.map +1 -0
  79. package/dist/chip.d.mts +96 -0
  80. package/dist/chip.d.ts +96 -0
  81. package/dist/chip.js +112 -0
  82. package/dist/chip.js.map +1 -0
  83. package/dist/chip.mjs +10 -0
  84. package/dist/chip.mjs.map +1 -0
  85. package/dist/chunk-24XDGNJ6.mjs +1450 -0
  86. package/dist/chunk-24XDGNJ6.mjs.map +1 -0
  87. package/dist/chunk-27KYFU7R.mjs +30 -0
  88. package/dist/chunk-27KYFU7R.mjs.map +1 -0
  89. package/dist/chunk-2FFLT5VP.mjs +7 -0
  90. package/dist/chunk-2FFLT5VP.mjs.map +1 -0
  91. package/dist/chunk-2ZZJTBTE.mjs +148 -0
  92. package/dist/chunk-2ZZJTBTE.mjs.map +1 -0
  93. package/dist/chunk-3DQINB57.mjs +15 -0
  94. package/dist/chunk-3DQINB57.mjs.map +1 -0
  95. package/dist/chunk-3VUAM2GY.mjs +52 -0
  96. package/dist/chunk-3VUAM2GY.mjs.map +1 -0
  97. package/dist/chunk-4Q54P737.mjs +19 -0
  98. package/dist/chunk-4Q54P737.mjs.map +1 -0
  99. package/dist/chunk-4RPFRNXG.mjs +62 -0
  100. package/dist/chunk-4RPFRNXG.mjs.map +1 -0
  101. package/dist/chunk-56TI2ZBT.mjs +114 -0
  102. package/dist/chunk-56TI2ZBT.mjs.map +1 -0
  103. package/dist/chunk-6REEQBJI.mjs +62 -0
  104. package/dist/chunk-6REEQBJI.mjs.map +1 -0
  105. package/dist/chunk-AAH2O24U.mjs +325 -0
  106. package/dist/chunk-AAH2O24U.mjs.map +1 -0
  107. package/dist/chunk-B7DAB22K.mjs +16 -0
  108. package/dist/chunk-B7DAB22K.mjs.map +1 -0
  109. package/dist/chunk-BGB7JHIU.mjs +222 -0
  110. package/dist/chunk-BGB7JHIU.mjs.map +1 -0
  111. package/dist/chunk-CRYIEYZZ.mjs +756 -0
  112. package/dist/chunk-CRYIEYZZ.mjs.map +1 -0
  113. package/dist/chunk-CWFWRZWU.mjs +23 -0
  114. package/dist/chunk-CWFWRZWU.mjs.map +1 -0
  115. package/dist/chunk-DELCADNF.mjs +1926 -0
  116. package/dist/chunk-DELCADNF.mjs.map +1 -0
  117. package/dist/chunk-E3I2VDHZ.mjs +292 -0
  118. package/dist/chunk-E3I2VDHZ.mjs.map +1 -0
  119. package/dist/chunk-EEH7HACG.mjs +249 -0
  120. package/dist/chunk-EEH7HACG.mjs.map +1 -0
  121. package/dist/chunk-EKPULYPU.mjs +497 -0
  122. package/dist/chunk-EKPULYPU.mjs.map +1 -0
  123. package/dist/chunk-EW4DTFH3.mjs +69 -0
  124. package/dist/chunk-EW4DTFH3.mjs.map +1 -0
  125. package/dist/chunk-FJ6ZGZIA.mjs +43 -0
  126. package/dist/chunk-FJ6ZGZIA.mjs.map +1 -0
  127. package/dist/chunk-HE7MY3RT.mjs +23 -0
  128. package/dist/chunk-HE7MY3RT.mjs.map +1 -0
  129. package/dist/chunk-HR3A4H4E.mjs +1289 -0
  130. package/dist/chunk-HR3A4H4E.mjs.map +1 -0
  131. package/dist/chunk-I5JWS4Z7.mjs +91 -0
  132. package/dist/chunk-I5JWS4Z7.mjs.map +1 -0
  133. package/dist/chunk-IN3O4R7Q.mjs +932 -0
  134. package/dist/chunk-IN3O4R7Q.mjs.map +1 -0
  135. package/dist/chunk-JIU5GVM7.mjs +414 -0
  136. package/dist/chunk-JIU5GVM7.mjs.map +1 -0
  137. package/dist/chunk-JWANK42G.mjs +170 -0
  138. package/dist/chunk-JWANK42G.mjs.map +1 -0
  139. package/dist/chunk-MDAUF7IL.mjs +9 -0
  140. package/dist/chunk-MDAUF7IL.mjs.map +1 -0
  141. package/dist/chunk-MI64T62E.mjs +26 -0
  142. package/dist/chunk-MI64T62E.mjs.map +1 -0
  143. package/dist/chunk-NJYNJLT7.mjs +172 -0
  144. package/dist/chunk-NJYNJLT7.mjs.map +1 -0
  145. package/dist/chunk-NLBDBJ3R.mjs +97 -0
  146. package/dist/chunk-NLBDBJ3R.mjs.map +1 -0
  147. package/dist/chunk-OGNGPI3M.mjs +333 -0
  148. package/dist/chunk-OGNGPI3M.mjs.map +1 -0
  149. package/dist/chunk-OJV6V7YZ.mjs +552 -0
  150. package/dist/chunk-OJV6V7YZ.mjs.map +1 -0
  151. package/dist/chunk-ONQMRE2G.mjs +26 -0
  152. package/dist/chunk-ONQMRE2G.mjs.map +1 -0
  153. package/dist/chunk-OP6LKXPA.mjs +75 -0
  154. package/dist/chunk-OP6LKXPA.mjs.map +1 -0
  155. package/dist/chunk-QFF3HTHL.mjs +14 -0
  156. package/dist/chunk-QFF3HTHL.mjs.map +1 -0
  157. package/dist/chunk-QKGCW37O.mjs +1175 -0
  158. package/dist/chunk-QKGCW37O.mjs.map +1 -0
  159. package/dist/chunk-R5MKQN6D.mjs +227 -0
  160. package/dist/chunk-R5MKQN6D.mjs.map +1 -0
  161. package/dist/chunk-RXBQ7KXF.mjs +652 -0
  162. package/dist/chunk-RXBQ7KXF.mjs.map +1 -0
  163. package/dist/chunk-S6EZVRZC.mjs +161 -0
  164. package/dist/chunk-S6EZVRZC.mjs.map +1 -0
  165. package/dist/chunk-SGCUDWO3.mjs +396 -0
  166. package/dist/chunk-SGCUDWO3.mjs.map +1 -0
  167. package/dist/chunk-SRWPHN2N.mjs +188 -0
  168. package/dist/chunk-SRWPHN2N.mjs.map +1 -0
  169. package/dist/chunk-T34IULP5.mjs +242 -0
  170. package/dist/chunk-T34IULP5.mjs.map +1 -0
  171. package/dist/chunk-T4X375IG.mjs +100 -0
  172. package/dist/chunk-T4X375IG.mjs.map +1 -0
  173. package/dist/chunk-T6AMRENK.mjs +376 -0
  174. package/dist/chunk-T6AMRENK.mjs.map +1 -0
  175. package/dist/chunk-TDRA5EZI.mjs +325 -0
  176. package/dist/chunk-TDRA5EZI.mjs.map +1 -0
  177. package/dist/chunk-UDREPVEY.mjs +356 -0
  178. package/dist/chunk-UDREPVEY.mjs.map +1 -0
  179. package/dist/chunk-UGMRJMFZ.mjs +172 -0
  180. package/dist/chunk-UGMRJMFZ.mjs.map +1 -0
  181. package/dist/chunk-UMJ5SCIQ.mjs +438 -0
  182. package/dist/chunk-UMJ5SCIQ.mjs.map +1 -0
  183. package/dist/chunk-UTVSYS6S.mjs +270 -0
  184. package/dist/chunk-UTVSYS6S.mjs.map +1 -0
  185. package/dist/chunk-V26V2S3W.mjs +197 -0
  186. package/dist/chunk-V26V2S3W.mjs.map +1 -0
  187. package/dist/chunk-VYD3PDBB.mjs +38 -0
  188. package/dist/chunk-VYD3PDBB.mjs.map +1 -0
  189. package/dist/chunk-WYYP3Y34.mjs +55 -0
  190. package/dist/chunk-WYYP3Y34.mjs.map +1 -0
  191. package/dist/chunk-XIMFP6RB.mjs +161 -0
  192. package/dist/chunk-XIMFP6RB.mjs.map +1 -0
  193. package/dist/chunk-XJ2SXC2Q.mjs +558 -0
  194. package/dist/chunk-XJ2SXC2Q.mjs.map +1 -0
  195. package/dist/chunk-Y74ALKBL.mjs +565 -0
  196. package/dist/chunk-Y74ALKBL.mjs.map +1 -0
  197. package/dist/chunk-ZG3NQI77.mjs +353 -0
  198. package/dist/chunk-ZG3NQI77.mjs.map +1 -0
  199. package/dist/chunk-ZVFYOXDE.mjs +297 -0
  200. package/dist/chunk-ZVFYOXDE.mjs.map +1 -0
  201. package/dist/collapse.d.mts +10 -0
  202. package/dist/collapse.d.ts +10 -0
  203. package/dist/collapse.js +53 -0
  204. package/dist/collapse.js.map +1 -0
  205. package/dist/collapse.mjs +10 -0
  206. package/dist/collapse.mjs.map +1 -0
  207. package/dist/datePicker.d.mts +133 -0
  208. package/dist/datePicker.d.ts +133 -0
  209. package/dist/datePicker.js +482 -0
  210. package/dist/datePicker.js.map +1 -0
  211. package/dist/datePicker.mjs +29 -0
  212. package/dist/datePicker.mjs.map +1 -0
  213. package/dist/displayFile.d.mts +95 -0
  214. package/dist/displayFile.d.ts +95 -0
  215. package/dist/displayFile.js +357 -0
  216. package/dist/displayFile.js.map +1 -0
  217. package/dist/displayFile.mjs +19 -0
  218. package/dist/displayFile.mjs.map +1 -0
  219. package/dist/divider.d.mts +9 -0
  220. package/dist/divider.d.ts +9 -0
  221. package/dist/divider.js +52 -0
  222. package/dist/divider.js.map +1 -0
  223. package/dist/divider.mjs +10 -0
  224. package/dist/divider.mjs.map +1 -0
  225. package/dist/fileUploader.d.mts +86 -0
  226. package/dist/fileUploader.d.ts +86 -0
  227. package/dist/fileUploader.js +722 -0
  228. package/dist/fileUploader.js.map +1 -0
  229. package/dist/fileUploader.mjs +16 -0
  230. package/dist/fileUploader.mjs.map +1 -0
  231. package/dist/flowMap.d.mts +353 -0
  232. package/dist/flowMap.d.ts +353 -0
  233. package/dist/flowMap.js +94806 -0
  234. package/dist/flowMap.js.map +1 -0
  235. package/dist/flowMap.mjs +94585 -0
  236. package/dist/flowMap.mjs.map +1 -0
  237. package/dist/form.d.mts +84 -0
  238. package/dist/form.d.ts +84 -0
  239. package/dist/form.js +144 -0
  240. package/dist/form.js.map +1 -0
  241. package/dist/form.mjs +24 -0
  242. package/dist/form.mjs.map +1 -0
  243. package/dist/icons.d.mts +160 -0
  244. package/dist/icons.d.ts +160 -0
  245. package/dist/icons.js +540 -0
  246. package/dist/icons.js.map +1 -0
  247. package/dist/icons.mjs +306 -0
  248. package/dist/icons.mjs.map +1 -0
  249. package/dist/image.d.mts +49 -0
  250. package/dist/image.d.ts +49 -0
  251. package/dist/image.js +1348 -0
  252. package/dist/image.js.map +1 -0
  253. package/dist/image.mjs +19 -0
  254. package/dist/image.mjs.map +1 -0
  255. package/dist/index.d.ts +46 -0
  256. package/dist/index.js +20198 -0
  257. package/dist/index.js.map +1 -0
  258. package/dist/index.mjs +912 -0
  259. package/dist/index.mjs.map +1 -0
  260. package/dist/input.d.mts +195 -0
  261. package/dist/input.d.ts +195 -0
  262. package/dist/input.js +1101 -0
  263. package/dist/input.js.map +1 -0
  264. package/dist/input.mjs +32 -0
  265. package/dist/input.mjs.map +1 -0
  266. package/dist/jsonEditor.d.mts +13 -0
  267. package/dist/jsonEditor.d.ts +13 -0
  268. package/dist/jsonEditor.js +247 -0
  269. package/dist/jsonEditor.js.map +1 -0
  270. package/dist/jsonEditor.mjs +9 -0
  271. package/dist/jsonEditor.mjs.map +1 -0
  272. package/dist/list.d.mts +83 -0
  273. package/dist/list.d.ts +83 -0
  274. package/dist/list.js +564 -0
  275. package/dist/list.js.map +1 -0
  276. package/dist/list.mjs +39 -0
  277. package/dist/list.mjs.map +1 -0
  278. package/dist/loading.d.mts +48 -0
  279. package/dist/loading.d.ts +48 -0
  280. package/dist/loading.js +383 -0
  281. package/dist/loading.js.map +1 -0
  282. package/dist/loading.mjs +23 -0
  283. package/dist/loading.mjs.map +1 -0
  284. package/dist/markdown.d.mts +14 -0
  285. package/dist/markdown.d.ts +14 -0
  286. package/dist/markdown.js +25927 -0
  287. package/dist/markdown.js.map +1 -0
  288. package/dist/markdown.mjs +25623 -0
  289. package/dist/markdown.mjs.map +1 -0
  290. package/dist/menu.d.mts +368 -0
  291. package/dist/menu.d.ts +368 -0
  292. package/dist/menu.js +1571 -0
  293. package/dist/menu.js.map +1 -0
  294. package/dist/menu.mjs +43 -0
  295. package/dist/menu.mjs.map +1 -0
  296. package/dist/modal.d.mts +90 -0
  297. package/dist/modal.d.ts +90 -0
  298. package/dist/modal.js +883 -0
  299. package/dist/modal.js.map +1 -0
  300. package/dist/modal.mjs +25 -0
  301. package/dist/modal.mjs.map +1 -0
  302. package/dist/overlay.d.mts +2 -0
  303. package/dist/overlay.d.ts +2 -0
  304. package/dist/overlay.js +46 -0
  305. package/dist/overlay.js.map +1 -0
  306. package/dist/overlay.mjs +10 -0
  307. package/dist/overlay.mjs.map +1 -0
  308. package/dist/paper.d.mts +38 -0
  309. package/dist/paper.d.ts +38 -0
  310. package/dist/paper.js +90 -0
  311. package/dist/paper.js.map +1 -0
  312. package/dist/paper.mjs +12 -0
  313. package/dist/paper.mjs.map +1 -0
  314. package/dist/patterns.d.mts +133 -0
  315. package/dist/patterns.d.ts +133 -0
  316. package/dist/patterns.js +483 -0
  317. package/dist/patterns.js.map +1 -0
  318. package/dist/patterns.mjs +46 -0
  319. package/dist/patterns.mjs.map +1 -0
  320. package/dist/process.d.mts +125 -0
  321. package/dist/process.d.ts +125 -0
  322. package/dist/process.js +1471 -0
  323. package/dist/process.js.map +1 -0
  324. package/dist/process.mjs +30 -0
  325. package/dist/process.mjs.map +1 -0
  326. package/dist/progress.d.mts +44 -0
  327. package/dist/progress.d.ts +44 -0
  328. package/dist/progress.js +94 -0
  329. package/dist/progress.js.map +1 -0
  330. package/dist/progress.mjs +14 -0
  331. package/dist/progress.mjs.map +1 -0
  332. package/dist/resizablePanel.d.mts +297 -0
  333. package/dist/resizablePanel.d.ts +297 -0
  334. package/dist/resizablePanel.js +122 -0
  335. package/dist/resizablePanel.js.map +1 -0
  336. package/dist/resizablePanel.mjs +22 -0
  337. package/dist/resizablePanel.mjs.map +1 -0
  338. package/dist/scrollToLoad.d.mts +41 -0
  339. package/dist/scrollToLoad.d.ts +41 -0
  340. package/dist/scrollToLoad.js +256 -0
  341. package/dist/scrollToLoad.js.map +1 -0
  342. package/dist/scrollToLoad.mjs +16 -0
  343. package/dist/scrollToLoad.mjs.map +1 -0
  344. package/dist/select.d.mts +50 -0
  345. package/dist/select.d.ts +50 -0
  346. package/dist/select.js +426 -0
  347. package/dist/select.js.map +1 -0
  348. package/dist/select.mjs +24 -0
  349. package/dist/select.mjs.map +1 -0
  350. package/dist/skeleton.d.mts +13 -0
  351. package/dist/skeleton.d.ts +13 -0
  352. package/dist/skeleton.js +68 -0
  353. package/dist/skeleton.js.map +1 -0
  354. package/dist/skeleton.mjs +11 -0
  355. package/dist/skeleton.mjs.map +1 -0
  356. package/dist/slider.d.mts +65 -0
  357. package/dist/slider.d.ts +65 -0
  358. package/dist/slider.js +106 -0
  359. package/dist/slider.js.map +1 -0
  360. package/dist/slider.mjs +10 -0
  361. package/dist/slider.mjs.map +1 -0
  362. package/dist/stepper.d.mts +98 -0
  363. package/dist/stepper.d.ts +98 -0
  364. package/dist/stepper.js +313 -0
  365. package/dist/stepper.js.map +1 -0
  366. package/dist/stepper.mjs +38 -0
  367. package/dist/stepper.mjs.map +1 -0
  368. package/dist/switch.d.mts +151 -0
  369. package/dist/switch.d.ts +151 -0
  370. package/dist/switch.js +289 -0
  371. package/dist/switch.js.map +1 -0
  372. package/dist/switch.mjs +17 -0
  373. package/dist/switch.mjs.map +1 -0
  374. package/dist/tab.d.mts +182 -0
  375. package/dist/tab.d.ts +182 -0
  376. package/dist/tab.js +1418 -0
  377. package/dist/tab.js.map +1 -0
  378. package/dist/tab.mjs +34 -0
  379. package/dist/tab.mjs.map +1 -0
  380. package/dist/table.d.mts +720 -0
  381. package/dist/table.d.ts +720 -0
  382. package/dist/table.js +10882 -0
  383. package/dist/table.js.map +1 -0
  384. package/dist/table.mjs +63 -0
  385. package/dist/table.mjs.map +1 -0
  386. package/dist/theme.d.mts +30 -4
  387. package/dist/theme.d.ts +30 -4
  388. package/dist/theme.js +3210 -170
  389. package/dist/theme.js.map +1 -1
  390. package/dist/theme.mjs +52 -230
  391. package/dist/theme.mjs.map +1 -1
  392. package/dist/timeline.d.mts +30 -0
  393. package/dist/timeline.d.ts +30 -0
  394. package/dist/timeline.js +273 -0
  395. package/dist/timeline.js.map +1 -0
  396. package/dist/timeline.mjs +14 -0
  397. package/dist/timeline.mjs.map +1 -0
  398. package/dist/toggleButtonGroup.d.mts +125 -0
  399. package/dist/toggleButtonGroup.d.ts +125 -0
  400. package/dist/toggleButtonGroup.js +190 -0
  401. package/dist/toggleButtonGroup.js.map +1 -0
  402. package/dist/toggleButtonGroup.mjs +15 -0
  403. package/dist/toggleButtonGroup.mjs.map +1 -0
  404. package/dist/tooltip.d.mts +13 -0
  405. package/dist/tooltip.d.ts +13 -0
  406. package/dist/tooltip.js +56 -0
  407. package/dist/tooltip.js.map +1 -0
  408. package/dist/tooltip.mjs +10 -0
  409. package/dist/tooltip.mjs.map +1 -0
  410. package/dist/typography.d.mts +21 -23
  411. package/dist/typography.d.ts +21 -23
  412. package/dist/typography.js +37 -63
  413. package/dist/typography.js.map +1 -1
  414. package/dist/typography.mjs +2 -1
  415. package/dist/useForm.d.mts +588 -0
  416. package/dist/useForm.d.ts +588 -0
  417. package/dist/useForm.js +8743 -0
  418. package/dist/useForm.js.map +1 -0
  419. package/dist/useForm.mjs +45 -0
  420. package/dist/useForm.mjs.map +1 -0
  421. package/dist/useSearch.d.mts +126 -0
  422. package/dist/useSearch.d.ts +126 -0
  423. package/dist/useSearch.js +1125 -0
  424. package/dist/useSearch.js.map +1 -0
  425. package/dist/useSearch.mjs +42 -0
  426. package/dist/useSearch.mjs.map +1 -0
  427. package/dist/variablesRenderer.d.mts +45 -0
  428. package/dist/variablesRenderer.d.ts +45 -0
  429. package/dist/variablesRenderer.js +511 -0
  430. package/dist/variablesRenderer.js.map +1 -0
  431. package/dist/variablesRenderer.mjs +21 -0
  432. package/dist/variablesRenderer.mjs.map +1 -0
  433. package/package.json +109 -15
  434. package/dist/chunk-PKADXEAD.mjs +0 -116
  435. package/dist/chunk-PKADXEAD.mjs.map +0 -1
  436. package/dist/chunk-YGBJCPUS.mjs +0 -88
  437. package/dist/chunk-YGBJCPUS.mjs.map +0 -1
  438. package/dist/theme.css +0 -44
  439. package/dist/theme.css.map +0 -1
@@ -0,0 +1,151 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SwitchProps } from '@mui/material/Switch';
3
+ import { SxProps, Theme } from '@mui/material/styles';
4
+
5
+ /**
6
+ * MuiSwitch
7
+ *
8
+ * [Doc](https://mui.com/material-ui/api/switch/)
9
+ */
10
+ declare function MuiSwitch({ onChange, checked, label, error, required, labelPlacement, helperText, ...props }: {
11
+ onChange?: SwitchProps['onChange'];
12
+ checked?: boolean;
13
+ label?: React.ReactNode;
14
+ error?: boolean;
15
+ required?: boolean;
16
+ labelPlacement?: 'start' | 'end' | 'top' | 'bottom';
17
+ helperText?: React.ReactNode;
18
+ } & SwitchProps): react_jsx_runtime.JSX.Element;
19
+
20
+ type SwitchSoftProps = {
21
+ onChange?: SwitchProps['onChange'];
22
+ checked?: boolean;
23
+ label?: React.ReactNode;
24
+ error?: boolean;
25
+ required?: boolean;
26
+ labelPlacement?: 'start' | 'end' | 'top' | 'bottom';
27
+ helperText?: React.ReactNode;
28
+ size?: 'small' | 'medium';
29
+ } & Omit<SwitchProps, 'size'>;
30
+ /**
31
+ * Simple themed switch. Geometry is MUI’s; colors come from the theme.
32
+ */
33
+ declare function SwitchSoft({ onChange, checked, label, error, required, labelPlacement, helperText, size, sx, ...props }: SwitchSoftProps): react_jsx_runtime.JSX.Element;
34
+
35
+ /** MuiSwitch tokens: inset track, stable thumb, emphasis only on the on-track. */
36
+ declare const switchTheme: {
37
+ readonly defaultProps: {
38
+ readonly disableFocusRipple: true;
39
+ readonly disableRipple: true;
40
+ readonly disableTouchRipple: true;
41
+ };
42
+ readonly styleOverrides: {
43
+ readonly root: {
44
+ readonly '--switch-thumb': "color-mix(in lab, var(--mui-palette-background-default) 72%, var(--mui-palette-text-primary) 28%)";
45
+ readonly '--switch-thumb-on': "var(--mui-palette-background-default)";
46
+ readonly '--switch-track-off': "var(--mui-palette-background-grey-1)";
47
+ readonly '--switch-track-on': "var(--mui-palette-primary-emphasis)";
48
+ readonly '--switch-track-on-disabled': "color-mix(in lab, var(--switch-track-on) 28%, var(--mui-palette-background-default))";
49
+ readonly overflow: "visible";
50
+ readonly width: 40;
51
+ readonly height: 22;
52
+ readonly padding: 0;
53
+ readonly '&:has(.MuiSwitch-colorError)': {
54
+ readonly '--switch-track-on': "var(--mui-palette-error-main)";
55
+ };
56
+ readonly '&:has(.MuiSwitch-colorSuccess)': {
57
+ readonly '--switch-track-on': "var(--mui-palette-success-main)";
58
+ };
59
+ readonly '&:has(.MuiSwitch-colorWarning)': {
60
+ readonly '--switch-track-on': "var(--mui-palette-warning-main)";
61
+ };
62
+ readonly '&:has(.MuiSwitch-colorInfo)': {
63
+ readonly '--switch-track-on': "var(--mui-palette-info-main)";
64
+ };
65
+ readonly '&:has(.MuiSwitch-colorSystem)': {
66
+ readonly '--switch-track-on': "var(--mui-palette-system-main)";
67
+ };
68
+ readonly '&:has(.MuiSwitch-colorInsight)': {
69
+ readonly '--switch-track-on': "var(--mui-palette-insight-main)";
70
+ };
71
+ readonly '&:has(.MuiSwitch-colorSecondary)': {
72
+ readonly '--switch-track-on': "var(--mui-palette-secondary-main)";
73
+ };
74
+ readonly '& .MuiSwitch-switchBase': {
75
+ readonly boxSizing: "border-box";
76
+ readonly top: 0;
77
+ readonly left: 0;
78
+ readonly padding: 2;
79
+ readonly width: 22;
80
+ readonly height: 22;
81
+ readonly color: "var(--switch-thumb)";
82
+ readonly transition: "transform 160ms ease";
83
+ readonly '&:hover': {
84
+ readonly backgroundColor: "transparent";
85
+ };
86
+ readonly '&.Mui-checked': {
87
+ readonly transform: "translateX(18px)";
88
+ readonly color: "var(--switch-thumb-on)";
89
+ readonly '& .MuiSwitch-thumb': {
90
+ readonly backgroundColor: "var(--switch-thumb-on)";
91
+ };
92
+ };
93
+ readonly '&.Mui-checked + .MuiSwitch-track': {
94
+ readonly backgroundColor: "var(--switch-track-on)";
95
+ readonly opacity: 1;
96
+ };
97
+ readonly '&.Mui-checked.Mui-disabled + .MuiSwitch-track': {
98
+ readonly backgroundColor: "var(--switch-track-on-disabled)";
99
+ };
100
+ readonly '&.Mui-focusVisible': {
101
+ readonly outline: "2px solid var(--mui-palette-focus-1)";
102
+ readonly outlineOffset: 2;
103
+ };
104
+ };
105
+ readonly '& .MuiSwitch-thumb': {
106
+ readonly width: 18;
107
+ readonly height: 18;
108
+ readonly boxShadow: "none";
109
+ readonly backgroundColor: "var(--switch-thumb)";
110
+ };
111
+ readonly '& .MuiSwitch-track': {
112
+ readonly width: "100%";
113
+ readonly height: "100%";
114
+ readonly borderRadius: 11;
115
+ readonly opacity: 1;
116
+ readonly backgroundColor: "var(--switch-track-off)";
117
+ readonly transition: "background-color 160ms ease";
118
+ readonly '&::before, &::after': {
119
+ readonly display: "none";
120
+ readonly content: "none";
121
+ readonly backgroundImage: "none";
122
+ };
123
+ };
124
+ readonly '&.MuiSwitch-sizeSmall': {
125
+ readonly width: 32;
126
+ readonly height: 18;
127
+ readonly '& .MuiSwitch-switchBase': {
128
+ readonly padding: 2;
129
+ readonly width: 18;
130
+ readonly height: 18;
131
+ readonly '&.Mui-checked': {
132
+ readonly transform: "translateX(14px)";
133
+ };
134
+ };
135
+ readonly '& .MuiSwitch-thumb': {
136
+ readonly width: 14;
137
+ readonly height: 14;
138
+ };
139
+ readonly '& .MuiSwitch-track': {
140
+ readonly borderRadius: 9;
141
+ };
142
+ };
143
+ };
144
+ };
145
+ };
146
+ /** Static palette aliases for MuiSwitch wrapper root element */
147
+ declare const muiSwitchRootSx: SxProps<Theme>;
148
+ /** Wrapper tokens for SwitchSoft (same control as Switch, label/error only). */
149
+ declare const switchSoftRootSx: SxProps<Theme>;
150
+
151
+ export { MuiSwitch as Switch, SwitchSoft, type SwitchSoftProps, muiSwitchRootSx, switchSoftRootSx, switchTheme };
package/dist/switch.js ADDED
@@ -0,0 +1,289 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/components/elemental/Switch/index.ts
31
+ var Switch_exports = {};
32
+ __export(Switch_exports, {
33
+ Switch: () => MuiSwitch,
34
+ SwitchSoft: () => SwitchSoft,
35
+ muiSwitchRootSx: () => muiSwitchRootSx,
36
+ switchSoftRootSx: () => switchSoftRootSx,
37
+ switchTheme: () => switchTheme
38
+ });
39
+ module.exports = __toCommonJS(Switch_exports);
40
+
41
+ // src/components/elemental/Switch/src/Switch/MuiSwitch.tsx
42
+ var import_Switch = __toESM(require("@mui/material/Switch"));
43
+
44
+ // src/components/elemental/Form/src/FormControlLabel/FormControlLabel.tsx
45
+ var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"));
46
+ var import_jsx_runtime = require("react/jsx-runtime");
47
+ function MuiFormControlLabel(props) {
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FormControlLabel.default, { ...props });
49
+ }
50
+
51
+ // src/components/elemental/Form/src/index.ts
52
+ var import_FormControl = __toESM(require("@mui/material/FormControl"));
53
+ var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"));
54
+ var import_InputAdornment = __toESM(require("@mui/material/InputAdornment"));
55
+ var import_InputLabel = __toESM(require("@mui/material/InputLabel"));
56
+
57
+ // src/components/elemental/Switch/src/Switch/themes.ts
58
+ var switchTheme = {
59
+ defaultProps: {
60
+ disableFocusRipple: true,
61
+ disableRipple: true,
62
+ disableTouchRipple: true
63
+ },
64
+ styleOverrides: {
65
+ root: {
66
+ "--switch-thumb": "color-mix(in lab, var(--mui-palette-background-default) 72%, var(--mui-palette-text-primary) 28%)",
67
+ "--switch-thumb-on": "var(--mui-palette-background-default)",
68
+ "--switch-track-off": "var(--mui-palette-background-grey-1)",
69
+ "--switch-track-on": "var(--mui-palette-primary-emphasis)",
70
+ "--switch-track-on-disabled": "color-mix(in lab, var(--switch-track-on) 28%, var(--mui-palette-background-default))",
71
+ overflow: "visible",
72
+ width: 40,
73
+ height: 22,
74
+ padding: 0,
75
+ "&:has(.MuiSwitch-colorError)": {
76
+ "--switch-track-on": "var(--mui-palette-error-main)"
77
+ },
78
+ "&:has(.MuiSwitch-colorSuccess)": {
79
+ "--switch-track-on": "var(--mui-palette-success-main)"
80
+ },
81
+ "&:has(.MuiSwitch-colorWarning)": {
82
+ "--switch-track-on": "var(--mui-palette-warning-main)"
83
+ },
84
+ "&:has(.MuiSwitch-colorInfo)": {
85
+ "--switch-track-on": "var(--mui-palette-info-main)"
86
+ },
87
+ "&:has(.MuiSwitch-colorSystem)": {
88
+ "--switch-track-on": "var(--mui-palette-system-main)"
89
+ },
90
+ "&:has(.MuiSwitch-colorInsight)": {
91
+ "--switch-track-on": "var(--mui-palette-insight-main)"
92
+ },
93
+ "&:has(.MuiSwitch-colorSecondary)": {
94
+ "--switch-track-on": "var(--mui-palette-secondary-main)"
95
+ },
96
+ "& .MuiSwitch-switchBase": {
97
+ boxSizing: "border-box",
98
+ top: 0,
99
+ left: 0,
100
+ padding: 2,
101
+ width: 22,
102
+ height: 22,
103
+ color: "var(--switch-thumb)",
104
+ transition: "transform 160ms ease",
105
+ "&:hover": {
106
+ backgroundColor: "transparent"
107
+ },
108
+ "&.Mui-checked": {
109
+ transform: "translateX(18px)",
110
+ color: "var(--switch-thumb-on)",
111
+ "& .MuiSwitch-thumb": {
112
+ backgroundColor: "var(--switch-thumb-on)"
113
+ }
114
+ },
115
+ "&.Mui-checked + .MuiSwitch-track": {
116
+ backgroundColor: "var(--switch-track-on)",
117
+ opacity: 1
118
+ },
119
+ "&.Mui-checked.Mui-disabled + .MuiSwitch-track": {
120
+ backgroundColor: "var(--switch-track-on-disabled)"
121
+ },
122
+ "&.Mui-focusVisible": {
123
+ outline: "2px solid var(--mui-palette-focus-1)",
124
+ outlineOffset: 2
125
+ }
126
+ },
127
+ "& .MuiSwitch-thumb": {
128
+ width: 18,
129
+ height: 18,
130
+ boxShadow: "none",
131
+ backgroundColor: "var(--switch-thumb)"
132
+ },
133
+ "& .MuiSwitch-track": {
134
+ width: "100%",
135
+ height: "100%",
136
+ borderRadius: 11,
137
+ opacity: 1,
138
+ backgroundColor: "var(--switch-track-off)",
139
+ transition: "background-color 160ms ease",
140
+ "&::before, &::after": {
141
+ display: "none",
142
+ content: "none",
143
+ backgroundImage: "none"
144
+ }
145
+ },
146
+ "&.MuiSwitch-sizeSmall": {
147
+ width: 32,
148
+ height: 18,
149
+ "& .MuiSwitch-switchBase": {
150
+ padding: 2,
151
+ width: 18,
152
+ height: 18,
153
+ "&.Mui-checked": {
154
+ transform: "translateX(14px)"
155
+ }
156
+ },
157
+ "& .MuiSwitch-thumb": {
158
+ width: 14,
159
+ height: 14
160
+ },
161
+ "& .MuiSwitch-track": {
162
+ borderRadius: 9
163
+ }
164
+ }
165
+ }
166
+ }
167
+ };
168
+ var muiSwitchRootSx = {
169
+ "--switch-label-color": "var(--mui-palette-text-grey-1)",
170
+ "--switch-error-track-bg": "var(--mui-palette-error-main)",
171
+ alignItems: "flex-start",
172
+ "& .MuiFormControlLabel-root": {
173
+ gap: "8px",
174
+ margin: 0,
175
+ alignItems: "center",
176
+ overflow: "visible",
177
+ maxWidth: "none"
178
+ },
179
+ "& .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementStart, & .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementEnd, & .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementTop, & .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementBottom": {
180
+ margin: 0
181
+ },
182
+ "& .MuiFormControlLabel-label": {
183
+ fontSize: "12px",
184
+ userSelect: "none",
185
+ color: "var(--switch-label-color)",
186
+ overflow: "visible",
187
+ textOverflow: "clip",
188
+ flexShrink: 0
189
+ },
190
+ "&.Mui-error .MuiSwitch-track": {
191
+ backgroundColor: "var(--switch-error-track-bg)"
192
+ }
193
+ };
194
+ var switchSoftRootSx = {
195
+ ...muiSwitchRootSx,
196
+ "--switch-label-color": "var(--mui-palette-text-primary)"
197
+ };
198
+
199
+ // src/components/elemental/Switch/src/Switch/MuiSwitch.tsx
200
+ var import_jsx_runtime2 = require("react/jsx-runtime");
201
+ function MuiSwitch({
202
+ onChange,
203
+ checked,
204
+ label,
205
+ error = false,
206
+ required = false,
207
+ labelPlacement = "start",
208
+ helperText,
209
+ ...props
210
+ }) {
211
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_FormControl.default, { error, sx: muiSwitchRootSx, children: [
212
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
213
+ MuiFormControlLabel,
214
+ {
215
+ labelPlacement,
216
+ required,
217
+ label,
218
+ control: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
219
+ import_Switch.default,
220
+ {
221
+ disableRipple: true,
222
+ ...{ onChange, checked },
223
+ ...props
224
+ }
225
+ )
226
+ }
227
+ ),
228
+ helperText && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_FormHelperText.default, { children: helperText })
229
+ ] });
230
+ }
231
+
232
+ // src/components/elemental/Switch/src/Switch/SwitchSoft.tsx
233
+ var import_Switch2 = __toESM(require("@mui/material/Switch"));
234
+ var import_jsx_runtime3 = require("react/jsx-runtime");
235
+ function SwitchSoft({
236
+ onChange,
237
+ checked,
238
+ label,
239
+ error = false,
240
+ required = false,
241
+ labelPlacement = "end",
242
+ helperText,
243
+ size = "medium",
244
+ sx,
245
+ ...props
246
+ }) {
247
+ const control = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
248
+ import_Switch2.default,
249
+ {
250
+ ...props,
251
+ className: ["ui-SwitchSoft", props.className].filter(Boolean).join(" "),
252
+ disableRipple: true,
253
+ disableFocusRipple: true,
254
+ disableTouchRipple: true,
255
+ size,
256
+ checked,
257
+ onChange,
258
+ sx
259
+ }
260
+ );
261
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
262
+ import_FormControl.default,
263
+ {
264
+ error,
265
+ sx: switchSoftRootSx,
266
+ children: [
267
+ label != null && label !== "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
268
+ MuiFormControlLabel,
269
+ {
270
+ labelPlacement,
271
+ required,
272
+ label,
273
+ control
274
+ }
275
+ ) : control,
276
+ helperText ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_FormHelperText.default, { children: helperText }) : null
277
+ ]
278
+ }
279
+ );
280
+ }
281
+ // Annotate the CommonJS export names for ESM import in node:
282
+ 0 && (module.exports = {
283
+ Switch,
284
+ SwitchSoft,
285
+ muiSwitchRootSx,
286
+ switchSoftRootSx,
287
+ switchTheme
288
+ });
289
+ //# sourceMappingURL=switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/elemental/Switch/index.ts","../src/components/elemental/Switch/src/Switch/MuiSwitch.tsx","../src/components/elemental/Form/src/FormControlLabel/FormControlLabel.tsx","../src/components/elemental/Form/src/index.ts","../src/components/elemental/Switch/src/Switch/themes.ts","../src/components/elemental/Switch/src/Switch/SwitchSoft.tsx"],"sourcesContent":["export * from './src'\n","import Switch, { type SwitchProps } from '@mui/material/Switch'\nimport { FormControl, FormControlLabel, FormHelperText } from '@/ele/Form'\nimport { muiSwitchRootSx } from './themes'\n\n/**\n * MuiSwitch\n * \n * [Doc](https://mui.com/material-ui/api/switch/)\n */\nexport default function MuiSwitch({\n onChange, checked, label,\n error = false, required = false,\n labelPlacement = \"start\",\n helperText,\n ...props\n}: {\n onChange?: SwitchProps['onChange'],\n checked?: boolean,\n label?: React.ReactNode,\n error?: boolean,\n required?: boolean,\n labelPlacement?: 'start' | 'end' | 'top' | 'bottom',\n helperText?: React.ReactNode,\n} & SwitchProps) {\n\n return (\n <FormControl error={error} sx={muiSwitchRootSx as object}>\n <FormControlLabel\n labelPlacement={labelPlacement}\n required={required} label={label}\n control={<Switch\n disableRipple\n {...{ onChange, checked, }}\n {...props} />\n }\n />\n {helperText && <FormHelperText>{helperText}</FormHelperText>}\n </FormControl>\n )\n}","import FormControlLabel, { type FormControlLabelProps } from '@mui/material/FormControlLabel'\n\n/**\n * A wrapper for Mui FormControlLabel\n */\nexport default function MuiFormControlLabel(props: FormControlLabelProps) {\n return <FormControlLabel {...props} />\n}\n","export * from './FormLabel'\n\nexport * from './FormControlLabel'\n\nexport {default as FormControl} from '@mui/material/FormControl'\nexport {default as FormHelperText} from '@mui/material/FormHelperText'\nexport {default as InputAdornment} from '@mui/material/InputAdornment'\nexport {default as InputLabel} from '@mui/material/InputLabel'\nexport * from './themes'","import type { MuiComponentTheme } from '@/_utils/_types'\nimport type { SxProps, Theme } from '@mui/material/styles'\n\n/** MuiSwitch tokens: inset track, stable thumb, emphasis only on the on-track. */\n\nexport const switchTheme = {\n defaultProps: {\n disableFocusRipple: true,\n disableRipple: true,\n disableTouchRipple: true,\n \n },\n styleOverrides: {\n root: {\n '--switch-thumb': 'color-mix(in lab, var(--mui-palette-background-default) 72%, var(--mui-palette-text-primary) 28%)',\n '--switch-thumb-on': 'var(--mui-palette-background-default)',\n '--switch-track-off': 'var(--mui-palette-background-grey-1)',\n '--switch-track-on': 'var(--mui-palette-primary-emphasis)',\n '--switch-track-on-disabled': 'color-mix(in lab, var(--switch-track-on) 28%, var(--mui-palette-background-default))',\n overflow: 'visible',\n width: 40,\n height: 22,\n padding: 0,\n '&:has(.MuiSwitch-colorError)': {\n '--switch-track-on': 'var(--mui-palette-error-main)',\n },\n '&:has(.MuiSwitch-colorSuccess)': {\n '--switch-track-on': 'var(--mui-palette-success-main)',\n },\n '&:has(.MuiSwitch-colorWarning)': {\n '--switch-track-on': 'var(--mui-palette-warning-main)',\n },\n '&:has(.MuiSwitch-colorInfo)': {\n '--switch-track-on': 'var(--mui-palette-info-main)',\n },\n '&:has(.MuiSwitch-colorSystem)': {\n '--switch-track-on': 'var(--mui-palette-system-main)',\n },\n '&:has(.MuiSwitch-colorInsight)': {\n '--switch-track-on': 'var(--mui-palette-insight-main)',\n },\n '&:has(.MuiSwitch-colorSecondary)': {\n '--switch-track-on': 'var(--mui-palette-secondary-main)',\n },\n '& .MuiSwitch-switchBase': {\n boxSizing: 'border-box',\n top: 0,\n left: 0,\n padding: 2,\n width: 22,\n height: 22,\n color: 'var(--switch-thumb)',\n transition: 'transform 160ms ease',\n '&:hover': {\n backgroundColor: 'transparent',\n },\n '&.Mui-checked': {\n transform: 'translateX(18px)',\n color: 'var(--switch-thumb-on)',\n '& .MuiSwitch-thumb': {\n backgroundColor: 'var(--switch-thumb-on)',\n },\n },\n '&.Mui-checked + .MuiSwitch-track': {\n backgroundColor: 'var(--switch-track-on)',\n opacity: 1,\n },\n '&.Mui-checked.Mui-disabled + .MuiSwitch-track': {\n backgroundColor: 'var(--switch-track-on-disabled)',\n },\n '&.Mui-focusVisible': {\n outline: '2px solid var(--mui-palette-focus-1)',\n outlineOffset: 2,\n },\n },\n '& .MuiSwitch-thumb': {\n width: 18,\n height: 18,\n boxShadow: 'none',\n backgroundColor: 'var(--switch-thumb)',\n },\n '& .MuiSwitch-track': {\n width: '100%',\n height: '100%',\n borderRadius: 11,\n opacity: 1,\n backgroundColor: 'var(--switch-track-off)',\n transition: 'background-color 160ms ease',\n '&::before, &::after': {\n display: 'none',\n content: 'none',\n backgroundImage: 'none',\n },\n },\n '&.MuiSwitch-sizeSmall': {\n width: 32,\n height: 18,\n '& .MuiSwitch-switchBase': {\n padding: 2,\n width: 18,\n height: 18,\n '&.Mui-checked': {\n transform: 'translateX(14px)',\n },\n },\n '& .MuiSwitch-thumb': {\n width: 14,\n height: 14,\n },\n '& .MuiSwitch-track': {\n borderRadius: 9,\n },\n },\n },\n },\n} as const satisfies MuiComponentTheme<'MuiSwitch'>\n\n/** Static palette aliases for MuiSwitch wrapper root element */\nexport const muiSwitchRootSx: SxProps<Theme> = {\n '--switch-label-color': 'var(--mui-palette-text-grey-1)',\n '--switch-error-track-bg': 'var(--mui-palette-error-main)',\n alignItems: 'flex-start',\n '& .MuiFormControlLabel-root': {\n gap: '8px',\n margin: 0,\n alignItems: 'center',\n overflow: 'visible',\n maxWidth: 'none',\n },\n '& .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementStart, & .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementEnd, & .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementTop, & .MuiFormControlLabel-root.MuiFormControlLabel-labelPlacementBottom': {\n margin: 0,\n },\n '& .MuiFormControlLabel-label': {\n fontSize: '12px',\n userSelect: 'none',\n color: 'var(--switch-label-color)',\n overflow: 'visible',\n textOverflow: 'clip',\n flexShrink: 0,\n },\n '&.Mui-error .MuiSwitch-track': {\n backgroundColor: 'var(--switch-error-track-bg)',\n },\n} as const satisfies SxProps<Theme>\n\n/** Wrapper tokens for SwitchSoft (same control as Switch, label/error only). */\nexport const switchSoftRootSx: SxProps<Theme> = {\n ...muiSwitchRootSx,\n '--switch-label-color': 'var(--mui-palette-text-primary)',\n} as const satisfies SxProps<Theme>\n","import Switch, { type SwitchProps } from '@mui/material/Switch'\nimport { FormControl, FormControlLabel, FormHelperText } from '@/ele/Form'\nimport { switchSoftRootSx } from './themes'\n\nexport type SwitchSoftProps = {\n onChange?: SwitchProps['onChange']\n checked?: boolean\n label?: React.ReactNode\n error?: boolean\n required?: boolean\n labelPlacement?: 'start' | 'end' | 'top' | 'bottom'\n helperText?: React.ReactNode\n size?: 'small' | 'medium'\n} & Omit<SwitchProps, 'size'>\n\n/**\n * Simple themed switch. Geometry is MUI’s; colors come from the theme.\n */\nexport default function SwitchSoft({\n onChange,\n checked,\n label,\n error = false,\n required = false,\n labelPlacement = 'end',\n helperText,\n size = 'medium',\n sx,\n ...props\n}: SwitchSoftProps) {\n const control = (\n <Switch\n {...props}\n className={['ui-SwitchSoft', props.className].filter(Boolean).join(' ')}\n disableRipple\n disableFocusRipple\n disableTouchRipple\n size={size}\n checked={checked}\n onChange={onChange}\n sx={sx}\n />\n )\n\n return (\n <FormControl\n error={error}\n sx={switchSoftRootSx as object}\n >\n {label != null && label !== '' ? (\n <FormControlLabel\n labelPlacement={labelPlacement}\n required={required}\n label={label}\n control={control}\n />\n ) : control}\n {helperText ? <FormHelperText>{helperText}</FormHelperText> : null}\n </FormControl>\n )\n}\n"],"mappings":"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","names":["FormControlLabel","import_jsx_runtime","Switch","import_Switch","import_jsx_runtime","Switch"]}
@@ -0,0 +1,17 @@
1
+ import {
2
+ MuiSwitch,
3
+ SwitchSoft,
4
+ muiSwitchRootSx,
5
+ switchSoftRootSx,
6
+ switchTheme
7
+ } from "./chunk-T34IULP5.mjs";
8
+ import "./chunk-T4X375IG.mjs";
9
+ import "./chunk-FJ6ZGZIA.mjs";
10
+ export {
11
+ MuiSwitch as Switch,
12
+ SwitchSoft,
13
+ muiSwitchRootSx,
14
+ switchSoftRootSx,
15
+ switchTheme
16
+ };
17
+ //# sourceMappingURL=switch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/tab.d.mts ADDED
@@ -0,0 +1,182 @@
1
+ import * as _mui_material_Tab from '@mui/material/Tab';
2
+ export { default as Tab, TabProps } from '@mui/material/Tab';
3
+ export { default as Tabs, TabsProps } from '@mui/material/Tabs';
4
+ import * as csstype from 'csstype';
5
+ import * as _mui_material_styles from '@mui/material/styles';
6
+ import { SxProps, Theme } from '@mui/material/styles';
7
+ import * as react from 'react';
8
+ import { ReactNode } from 'react';
9
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
10
+ import * as _mui_material_ButtonBase from '@mui/material/ButtonBase';
11
+ import * as react_jsx_runtime from 'react/jsx-runtime';
12
+
13
+ declare const tabTheme: {
14
+ readonly defaultProps: {
15
+ readonly disableRipple: true;
16
+ };
17
+ readonly styleOverrides: {
18
+ readonly root: ({ theme }: _mui_material_Tab.TabOwnProps & Omit<_mui_material_ButtonBase.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "icon" | "iconPosition" | "label" | "value" | "wrapped"> & {
19
+ component?: React.ElementType | undefined;
20
+ } & Record<string, unknown> & {
21
+ ownerState: _mui_material_Tab.TabOwnProps & Omit<_mui_material_ButtonBase.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "icon" | "iconPosition" | "label" | "value" | "wrapped"> & {
22
+ component?: React.ElementType | undefined;
23
+ } & Record<string, unknown>;
24
+ } & {
25
+ theme: Omit<_mui_material_styles.Theme, "components" | "palette"> & _mui_material_styles.CssVarsTheme;
26
+ }) => {
27
+ minHeight: number;
28
+ minWidth: number;
29
+ paddingInline: string;
30
+ paddingBlock: string;
31
+ borderRadius: string | number;
32
+ textTransform: "none";
33
+ fontWeight: csstype.Property.FontWeight | undefined;
34
+ color: "var(--mui-palette-text-secondary)";
35
+ transition: string;
36
+ '&:hover': {
37
+ color: string;
38
+ backgroundColor: string;
39
+ };
40
+ '&.Mui-selected': {
41
+ color: string;
42
+ backgroundColor: string;
43
+ };
44
+ '&.Mui-selected:hover': {
45
+ backgroundColor: string;
46
+ };
47
+ '&.Mui-disabled': {
48
+ color: string;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ declare const tabsTheme: {
54
+ readonly styleOverrides: {
55
+ readonly root: {
56
+ readonly minHeight: 44;
57
+ };
58
+ readonly list: {
59
+ readonly gap: 4;
60
+ };
61
+ readonly indicator: {
62
+ readonly height: 3;
63
+ readonly borderRadius: 999;
64
+ readonly backgroundColor: "var(--mui-palette-primary-emphasis)";
65
+ };
66
+ readonly scrollButtons: {
67
+ readonly color: "var(--mui-palette-text-secondary)";
68
+ readonly '&.Mui-disabled': {
69
+ readonly opacity: 0.4;
70
+ };
71
+ };
72
+ };
73
+ };
74
+
75
+ /**
76
+ * Default TabPanel CSS variables — set on the root wrapper via `sx`.
77
+ * Override with `sx`, `slotProps.root.sx`, or `slotProps.root.style`.
78
+ */
79
+ declare const tabPanelRootSx: {
80
+ readonly '--tabpanel-accent': "var(--mui-palette-primary-emphasis)";
81
+ readonly '--tabpanel-track-bg': "color-mix(in lab, var(--tabpanel-accent), transparent 92%)";
82
+ readonly '--tabpanel-tab-color': "var(--mui-palette-text-secondary)";
83
+ readonly '--tabpanel-tab-color-active': "var(--tabpanel-accent)";
84
+ readonly '--tabpanel-tab-color-disabled': "var(--mui-palette-text-disabled)";
85
+ readonly '--tabpanel-badge-color': "var(--mui-palette-error-main)";
86
+ readonly '--tabpanel-badge-bg': "color-mix(in lab, var(--mui-palette-error-main), transparent 86%)";
87
+ readonly '--tabpanel-focus-bg': "color-mix(in lab, var(--mui-palette-background-paper), transparent 78%)";
88
+ readonly '--tabpanel-focus-bg-dark': "color-mix(in lab, var(--mui-palette-background-paper), transparent 55%)";
89
+ readonly '--tabpanel-focus-shadow': string;
90
+ readonly '--tabpanel-focus-shadow-dark': string;
91
+ readonly '--tabpanel-focus-radius': "10px";
92
+ readonly '--tabpanel-track-radius': "12px";
93
+ readonly '--tabpanel-track-pad': "3px";
94
+ readonly '--tabpanel-item-gap': "1px";
95
+ readonly '--tabpanel-indicator-ease': "cubic-bezier(0.32, 0.72, 0, 1)";
96
+ readonly '--tabpanel-indicator-ms': "380ms";
97
+ };
98
+ type TabPanelStyleVars = {
99
+ accent?: string;
100
+ trackBg?: string;
101
+ tabColor?: string;
102
+ tabColorActive?: string;
103
+ tabColorDisabled?: string;
104
+ badgeColor?: string;
105
+ badgeBg?: string;
106
+ focusBg?: string;
107
+ focusBgDark?: string;
108
+ focusShadow?: string;
109
+ focusShadowDark?: string;
110
+ focusRadius?: string;
111
+ trackRadius?: string;
112
+ };
113
+ /** Maps typed style tokens onto CSS custom properties for the root wrapper. */
114
+ declare function tabPanelStyleToCssVars(style?: TabPanelStyleVars): Record<string, string>;
115
+
116
+ type TabPanelItem = {
117
+ id: string;
118
+ label: string;
119
+ icon?: ReactNode;
120
+ badge?: number | string;
121
+ disabled?: boolean;
122
+ content?: ReactNode;
123
+ };
124
+ type TabPanelSlotProps = {
125
+ root?: {
126
+ /** Typed color / token overrides → CSS vars on the root wrapper. */
127
+ style?: TabPanelStyleVars;
128
+ sx?: SxProps<Theme>;
129
+ };
130
+ strip?: {
131
+ sx?: SxProps<Theme>;
132
+ };
133
+ indicator?: {
134
+ sx?: SxProps<Theme>;
135
+ };
136
+ tab?: {
137
+ sx?: SxProps<Theme>;
138
+ };
139
+ menu?: {
140
+ sx?: SxProps<Theme>;
141
+ };
142
+ panel?: {
143
+ sx?: SxProps<Theme>;
144
+ };
145
+ };
146
+ type TabPanelProps = {
147
+ items: TabPanelItem[];
148
+ value?: string;
149
+ defaultValue?: string;
150
+ onChange?: (id: string) => void;
151
+ /**
152
+ * When false, the fitted strip prefers icons (labels stay for a11y / overflow menu).
153
+ * Defaults to true.
154
+ */
155
+ showLabels?: boolean;
156
+ /**
157
+ * Corner radius of the selected focus highlight (and tab hit targets).
158
+ * Number = px (avoids MUI theme multiplier). Default: `10`.
159
+ * Sets `--tabpanel-focus-radius` (overridable via `slotProps.root.style` / `sx`).
160
+ */
161
+ focusRadius?: number | string;
162
+ /**
163
+ * Corner radius of the outer track. Number = px. Default: `12`.
164
+ * Sets `--tabpanel-track-radius` (overridable via `slotProps.root.style` / `sx`).
165
+ */
166
+ trackRadius?: number | string;
167
+ /** Root wrapper `sx` — merge after default CSS vars. */
168
+ sx?: SxProps<Theme>;
169
+ className?: string;
170
+ slotProps?: TabPanelSlotProps;
171
+ };
172
+
173
+ /**
174
+ * Adaptive content tabs: soft liquid track + morphing pill.
175
+ * Overflow cuts trailing tabs into a More dropdown (selected stays visible).
176
+ *
177
+ * Colors / radii are CSS vars on the root (`tabPanelRootSx`). Override via
178
+ * `sx`, `slotProps.root.style`, or `slotProps.root.sx`.
179
+ */
180
+ declare function TabPanel({ items, value, defaultValue, onChange, showLabels, focusRadius, trackRadius, sx, className, slotProps, }: TabPanelProps): react_jsx_runtime.JSX.Element;
181
+
182
+ export { TabPanel, type TabPanelItem, type TabPanelProps, type TabPanelSlotProps, type TabPanelStyleVars, tabPanelRootSx, tabPanelStyleToCssVars, tabTheme, tabsTheme };