moduix 0.11.0 → 0.11.1

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 (486) hide show
  1. package/README.md +9 -2
  2. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  3. package/dist/components/Accordion/Accordion.cjs +65 -0
  4. package/dist/components/Accordion/Accordion.css +99 -0
  5. package/dist/components/Accordion/Accordion.d.ts +17 -9
  6. package/dist/components/Accordion/Accordion.js +60 -0
  7. package/dist/components/Accordion/Accordion.module.cjs +12 -0
  8. package/dist/components/Accordion/Accordion.module.js +12 -0
  9. package/dist/components/Accordion/index.d.ts +1 -1
  10. package/dist/components/Alert/Alert.cjs +50 -0
  11. package/dist/components/Alert/Alert.css +114 -0
  12. package/dist/components/Alert/Alert.d.ts +30 -10
  13. package/dist/components/Alert/Alert.js +44 -0
  14. package/dist/components/Alert/Alert.module.cjs +11 -0
  15. package/dist/components/Alert/Alert.module.js +11 -0
  16. package/dist/components/Alert/index.d.ts +1 -1
  17. package/dist/components/AlertDialog/AlertDialog.cjs +122 -0
  18. package/dist/components/AlertDialog/AlertDialog.css +159 -0
  19. package/dist/components/AlertDialog/AlertDialog.d.ts +66 -19
  20. package/dist/components/AlertDialog/AlertDialog.js +107 -0
  21. package/dist/components/AlertDialog/AlertDialog.module.cjs +18 -0
  22. package/dist/components/AlertDialog/AlertDialog.module.js +18 -0
  23. package/dist/components/AlertDialog/index.d.ts +1 -1
  24. package/dist/components/AspectRatio/AspectRatio.cjs +24 -0
  25. package/dist/components/AspectRatio/AspectRatio.css +14 -0
  26. package/dist/components/AspectRatio/AspectRatio.d.ts +12 -5
  27. package/dist/components/AspectRatio/AspectRatio.js +24 -0
  28. package/dist/components/AspectRatio/AspectRatio.module.cjs +5 -0
  29. package/dist/components/AspectRatio/AspectRatio.module.js +5 -0
  30. package/dist/components/AspectRatio/index.d.ts +1 -2
  31. package/dist/components/Autocomplete/Autocomplete.cjs +303 -0
  32. package/dist/components/Autocomplete/Autocomplete.css +454 -0
  33. package/dist/components/Autocomplete/Autocomplete.d.ts +40 -37
  34. package/dist/components/Autocomplete/Autocomplete.js +271 -0
  35. package/dist/components/Autocomplete/Autocomplete.module.cjs +37 -0
  36. package/dist/components/Autocomplete/Autocomplete.module.js +37 -0
  37. package/dist/components/Autocomplete/index.d.ts +1 -1
  38. package/dist/components/Avatar/Avatar.cjs +31 -0
  39. package/dist/components/Avatar/Avatar.css +74 -0
  40. package/dist/components/Avatar/Avatar.d.ts +19 -6
  41. package/dist/components/Avatar/Avatar.js +29 -0
  42. package/dist/components/Avatar/Avatar.module.cjs +9 -0
  43. package/dist/components/Avatar/Avatar.module.js +9 -0
  44. package/dist/components/Avatar/index.d.ts +1 -1
  45. package/dist/components/Badge/Badge.cjs +25 -0
  46. package/dist/components/Badge/Badge.css +66 -0
  47. package/dist/components/Badge/Badge.d.ts +15 -6
  48. package/dist/components/Badge/Badge.js +22 -0
  49. package/dist/components/Badge/Badge.module.cjs +8 -0
  50. package/dist/components/Badge/Badge.module.js +8 -0
  51. package/dist/components/Badge/index.d.ts +1 -1
  52. package/dist/components/Bleed/Bleed.cjs +17 -0
  53. package/dist/components/Bleed/Bleed.css +51 -0
  54. package/dist/components/Bleed/Bleed.d.ts +15 -6
  55. package/dist/components/Bleed/Bleed.js +15 -0
  56. package/dist/components/Bleed/Bleed.module.cjs +5 -0
  57. package/dist/components/Bleed/Bleed.module.js +5 -0
  58. package/dist/components/Bleed/index.d.ts +1 -1
  59. package/dist/components/Breadcrumbs/Breadcrumbs.cjs +72 -0
  60. package/dist/components/Breadcrumbs/Breadcrumbs.css +88 -0
  61. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +38 -10
  62. package/dist/components/Breadcrumbs/Breadcrumbs.js +66 -0
  63. package/dist/components/Breadcrumbs/Breadcrumbs.module.cjs +13 -0
  64. package/dist/components/Breadcrumbs/Breadcrumbs.module.js +13 -0
  65. package/dist/components/Breadcrumbs/index.d.ts +1 -1
  66. package/dist/components/Button/Button.cjs +18 -0
  67. package/dist/components/Button/Button.css +194 -0
  68. package/dist/components/Button/Button.d.ts +9 -7
  69. package/dist/components/Button/Button.js +18 -0
  70. package/dist/components/Button/Button.module.cjs +5 -0
  71. package/dist/components/Button/Button.module.js +5 -0
  72. package/dist/components/Button/index.d.ts +1 -2
  73. package/dist/components/Card/Card.cjs +81 -0
  74. package/dist/components/Card/Card.css +136 -0
  75. package/dist/components/Card/Card.d.ts +45 -15
  76. package/dist/components/Card/Card.js +72 -0
  77. package/dist/components/Card/Card.module.cjs +14 -0
  78. package/dist/components/Card/Card.module.js +14 -0
  79. package/dist/components/Card/index.d.ts +1 -2
  80. package/dist/components/Checkbox/Checkbox.cjs +63 -0
  81. package/dist/components/Checkbox/Checkbox.css +131 -0
  82. package/dist/components/Checkbox/Checkbox.d.ts +27 -10
  83. package/dist/components/Checkbox/Checkbox.js +59 -0
  84. package/dist/components/Checkbox/Checkbox.module.cjs +13 -0
  85. package/dist/components/Checkbox/Checkbox.module.js +13 -0
  86. package/dist/components/Checkbox/index.d.ts +1 -1
  87. package/dist/components/CheckboxGroup/CheckboxGroup.cjs +55 -0
  88. package/dist/components/CheckboxGroup/CheckboxGroup.css +33 -0
  89. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +27 -9
  90. package/dist/components/CheckboxGroup/CheckboxGroup.js +50 -0
  91. package/dist/components/CheckboxGroup/CheckboxGroup.module.cjs +11 -0
  92. package/dist/components/CheckboxGroup/CheckboxGroup.module.js +11 -0
  93. package/dist/components/CheckboxGroup/index.d.ts +1 -1
  94. package/dist/components/CloseButton/CloseButton.cjs +22 -0
  95. package/dist/components/CloseButton/CloseButton.css +49 -0
  96. package/dist/components/CloseButton/CloseButton.d.ts +4 -2
  97. package/dist/components/CloseButton/CloseButton.js +22 -0
  98. package/dist/components/CloseButton/CloseButton.module.cjs +5 -0
  99. package/dist/components/CloseButton/CloseButton.module.js +5 -0
  100. package/dist/components/Collapsible/Collapsible.cjs +47 -0
  101. package/dist/components/Collapsible/Collapsible.css +92 -0
  102. package/dist/components/Collapsible/Collapsible.d.ts +14 -6
  103. package/dist/components/Collapsible/Collapsible.js +44 -0
  104. package/dist/components/Collapsible/Collapsible.module.cjs +10 -0
  105. package/dist/components/Collapsible/Collapsible.module.js +10 -0
  106. package/dist/components/Collapsible/index.d.ts +1 -1
  107. package/dist/components/Combobox/Combobox.cjs +330 -0
  108. package/dist/components/Combobox/Combobox.css +497 -0
  109. package/dist/components/Combobox/Combobox.d.ts +58 -43
  110. package/dist/components/Combobox/Combobox.js +295 -0
  111. package/dist/components/Combobox/Combobox.module.cjs +42 -0
  112. package/dist/components/Combobox/Combobox.module.js +42 -0
  113. package/dist/components/Combobox/index.d.ts +1 -1
  114. package/dist/components/CommandPalette/CommandPalette.cjs +304 -0
  115. package/dist/components/CommandPalette/CommandPalette.css +375 -0
  116. package/dist/components/CommandPalette/CommandPalette.d.ts +134 -42
  117. package/dist/components/CommandPalette/CommandPalette.js +278 -0
  118. package/dist/components/CommandPalette/CommandPalette.module.cjs +30 -0
  119. package/dist/components/CommandPalette/CommandPalette.module.js +30 -0
  120. package/dist/components/CommandPalette/index.d.ts +1 -1
  121. package/dist/components/Container/Container.cjs +17 -0
  122. package/dist/components/Container/Container.css +45 -0
  123. package/dist/components/Container/Container.d.ts +15 -6
  124. package/dist/components/Container/Container.js +15 -0
  125. package/dist/components/Container/Container.module.cjs +5 -0
  126. package/dist/components/Container/Container.module.js +5 -0
  127. package/dist/components/Container/index.d.ts +1 -1
  128. package/dist/components/ContextMenu/ContextMenu.cjs +241 -0
  129. package/dist/components/ContextMenu/ContextMenu.css +308 -0
  130. package/dist/components/ContextMenu/ContextMenu.d.ts +131 -38
  131. package/dist/components/ContextMenu/ContextMenu.js +215 -0
  132. package/dist/components/ContextMenu/ContextMenu.module.cjs +33 -0
  133. package/dist/components/ContextMenu/ContextMenu.module.js +33 -0
  134. package/dist/components/ContextMenu/index.d.ts +1 -2
  135. package/dist/components/CopyButton/CopyButton.cjs +66 -0
  136. package/dist/components/CopyButton/CopyButton.css +14 -0
  137. package/dist/components/CopyButton/CopyButton.d.ts +14 -13
  138. package/dist/components/CopyButton/CopyButton.js +66 -0
  139. package/dist/components/CopyButton/CopyButton.module.cjs +5 -0
  140. package/dist/components/CopyButton/CopyButton.module.js +5 -0
  141. package/dist/components/CopyButton/index.d.ts +1 -2
  142. package/dist/components/Dialog/Dialog.cjs +136 -0
  143. package/dist/components/Dialog/Dialog.css +186 -0
  144. package/dist/components/Dialog/Dialog.d.ts +68 -18
  145. package/dist/components/Dialog/Dialog.js +122 -0
  146. package/dist/components/Dialog/Dialog.module.cjs +18 -0
  147. package/dist/components/Dialog/Dialog.module.js +18 -0
  148. package/dist/components/Dialog/index.d.ts +1 -1
  149. package/dist/components/Drawer/Drawer.cjs +202 -0
  150. package/dist/components/Drawer/Drawer.css +483 -0
  151. package/dist/components/Drawer/Drawer.d.ts +95 -27
  152. package/dist/components/Drawer/Drawer.js +182 -0
  153. package/dist/components/Drawer/Drawer.module.cjs +24 -0
  154. package/dist/components/Drawer/Drawer.module.js +24 -0
  155. package/dist/components/Drawer/index.d.ts +1 -1
  156. package/dist/components/Empty/Empty.cjs +55 -0
  157. package/dist/components/Empty/Empty.css +78 -0
  158. package/dist/components/Empty/Empty.d.ts +31 -9
  159. package/dist/components/Empty/Empty.js +48 -0
  160. package/dist/components/Empty/Empty.module.cjs +12 -0
  161. package/dist/components/Empty/Empty.module.js +12 -0
  162. package/dist/components/Empty/index.d.ts +1 -1
  163. package/dist/components/Field/Field.cjs +56 -0
  164. package/dist/components/Field/Field.css +86 -0
  165. package/dist/components/Field/Field.d.ts +30 -9
  166. package/dist/components/Field/Field.js +50 -0
  167. package/dist/components/Field/Field.module.cjs +12 -0
  168. package/dist/components/Field/Field.module.js +12 -0
  169. package/dist/components/Field/index.d.ts +1 -1
  170. package/dist/components/Fieldset/Fieldset.cjs +22 -0
  171. package/dist/components/Fieldset/Fieldset.css +39 -0
  172. package/dist/components/Fieldset/Fieldset.d.ts +13 -4
  173. package/dist/components/Fieldset/Fieldset.js +21 -0
  174. package/dist/components/Fieldset/Fieldset.module.cjs +8 -0
  175. package/dist/components/Fieldset/Fieldset.module.js +8 -0
  176. package/dist/components/Fieldset/index.d.ts +1 -1
  177. package/dist/components/Form/Form.cjs +16 -0
  178. package/dist/components/Form/Form.css +9 -0
  179. package/dist/components/Form/Form.d.ts +6 -3
  180. package/dist/components/Form/Form.js +16 -0
  181. package/dist/components/Form/Form.module.cjs +5 -0
  182. package/dist/components/Form/Form.module.js +5 -0
  183. package/dist/components/Form/index.d.ts +1 -1
  184. package/dist/components/Heading/Heading.cjs +25 -0
  185. package/dist/components/Heading/Heading.css +50 -0
  186. package/dist/components/Heading/Heading.d.ts +21 -13
  187. package/dist/components/Heading/Heading.js +23 -0
  188. package/dist/components/Heading/Heading.module.cjs +5 -0
  189. package/dist/components/Heading/Heading.module.js +5 -0
  190. package/dist/components/Heading/index.d.ts +1 -1
  191. package/dist/components/Input/Input.cjs +18 -0
  192. package/dist/components/Input/Input.css +78 -0
  193. package/dist/components/Input/Input.d.ts +10 -8
  194. package/dist/components/Input/Input.js +18 -0
  195. package/dist/components/Input/Input.module.cjs +5 -0
  196. package/dist/components/Input/Input.module.js +5 -0
  197. package/dist/components/Input/index.d.ts +1 -2
  198. package/dist/components/InputGroup/InputGroup.cjs +77 -0
  199. package/dist/components/InputGroup/InputGroup.css +160 -0
  200. package/dist/components/InputGroup/InputGroup.d.ts +14 -10
  201. package/dist/components/InputGroup/InputGroup.js +73 -0
  202. package/dist/components/InputGroup/InputGroup.module.cjs +11 -0
  203. package/dist/components/InputGroup/InputGroup.module.js +11 -0
  204. package/dist/components/InputGroup/index.d.ts +1 -1
  205. package/dist/components/Kbd/Kbd.cjs +23 -0
  206. package/dist/components/Kbd/Kbd.css +49 -0
  207. package/dist/components/Kbd/Kbd.d.ts +13 -4
  208. package/dist/components/Kbd/Kbd.js +20 -0
  209. package/dist/components/Kbd/Kbd.module.cjs +8 -0
  210. package/dist/components/Kbd/Kbd.module.js +8 -0
  211. package/dist/components/Kbd/index.d.ts +1 -1
  212. package/dist/components/Lightbox/Lightbox.cjs +220 -0
  213. package/dist/components/Lightbox/Lightbox.css +114 -0
  214. package/dist/components/Lightbox/Lightbox.d.ts +81 -28
  215. package/dist/components/Lightbox/Lightbox.js +208 -0
  216. package/dist/components/Lightbox/Lightbox.module.cjs +14 -0
  217. package/dist/components/Lightbox/Lightbox.module.js +14 -0
  218. package/dist/components/Lightbox/index.d.ts +1 -1
  219. package/dist/components/List/List.cjs +31 -0
  220. package/dist/components/List/List.css +114 -0
  221. package/dist/components/List/List.d.ts +26 -12
  222. package/dist/components/List/List.js +28 -0
  223. package/dist/components/List/List.module.cjs +5 -0
  224. package/dist/components/List/List.module.js +5 -0
  225. package/dist/components/List/index.d.ts +1 -1
  226. package/dist/components/Menu/Menu.cjs +260 -0
  227. package/dist/components/Menu/Menu.css +377 -0
  228. package/dist/components/Menu/Menu.d.ts +141 -41
  229. package/dist/components/Menu/Menu.js +231 -0
  230. package/dist/components/Menu/Menu.module.cjs +36 -0
  231. package/dist/components/Menu/Menu.module.js +36 -0
  232. package/dist/components/Menu/index.d.ts +1 -2
  233. package/dist/components/Menubar/Menubar.cjs +261 -0
  234. package/dist/components/Menubar/Menubar.css +387 -0
  235. package/dist/components/Menubar/Menubar.d.ts +144 -42
  236. package/dist/components/Menubar/Menubar.js +232 -0
  237. package/dist/components/Menubar/Menubar.module.cjs +36 -0
  238. package/dist/components/Menubar/Menubar.module.js +36 -0
  239. package/dist/components/Menubar/index.d.ts +1 -2
  240. package/dist/components/Meter/Meter.cjs +60 -0
  241. package/dist/components/Meter/Meter.css +46 -0
  242. package/dist/components/Meter/Meter.d.ts +9 -7
  243. package/dist/components/Meter/Meter.js +55 -0
  244. package/dist/components/Meter/Meter.module.cjs +11 -0
  245. package/dist/components/Meter/Meter.module.js +11 -0
  246. package/dist/components/NavigationMenu/NavigationMenu.cjs +146 -0
  247. package/dist/components/NavigationMenu/NavigationMenu.css +319 -0
  248. package/dist/components/NavigationMenu/NavigationMenu.d.ts +81 -22
  249. package/dist/components/NavigationMenu/NavigationMenu.js +134 -0
  250. package/dist/components/NavigationMenu/NavigationMenu.module.cjs +21 -0
  251. package/dist/components/NavigationMenu/NavigationMenu.module.js +21 -0
  252. package/dist/components/NavigationMenu/index.d.ts +1 -2
  253. package/dist/components/NumberField/NumberField.cjs +82 -0
  254. package/dist/components/NumberField/NumberField.css +158 -0
  255. package/dist/components/NumberField/NumberField.d.ts +48 -14
  256. package/dist/components/NumberField/NumberField.js +75 -0
  257. package/dist/components/NumberField/NumberField.module.cjs +13 -0
  258. package/dist/components/NumberField/NumberField.module.js +13 -0
  259. package/dist/components/NumberField/index.d.ts +1 -2
  260. package/dist/components/OTPField/OTPField.cjs +41 -0
  261. package/dist/components/OTPField/OTPField.css +78 -0
  262. package/dist/components/OTPField/OTPField.d.ts +19 -5
  263. package/dist/components/OTPField/OTPField.js +39 -0
  264. package/dist/components/OTPField/OTPField.module.cjs +9 -0
  265. package/dist/components/OTPField/OTPField.module.js +9 -0
  266. package/dist/components/OTPField/index.d.ts +1 -1
  267. package/dist/components/Pagination/Pagination.cjs +123 -0
  268. package/dist/components/Pagination/Pagination.css +103 -0
  269. package/dist/components/Pagination/Pagination.d.ts +60 -22
  270. package/dist/components/Pagination/Pagination.js +116 -0
  271. package/dist/components/Pagination/Pagination.module.cjs +16 -0
  272. package/dist/components/Pagination/Pagination.module.js +16 -0
  273. package/dist/components/Pagination/index.d.ts +1 -1
  274. package/dist/components/PasswordInput/PasswordInput.cjs +47 -0
  275. package/dist/components/PasswordInput/PasswordInput.css +19 -0
  276. package/dist/components/PasswordInput/PasswordInput.d.ts +14 -12
  277. package/dist/components/PasswordInput/PasswordInput.js +47 -0
  278. package/dist/components/PasswordInput/PasswordInput.module.cjs +9 -0
  279. package/dist/components/PasswordInput/PasswordInput.module.js +9 -0
  280. package/dist/components/PasswordInput/index.d.ts +1 -2
  281. package/dist/components/Popover/Popover.cjs +146 -0
  282. package/dist/components/Popover/Popover.css +200 -0
  283. package/dist/components/Popover/Popover.d.ts +79 -22
  284. package/dist/components/Popover/Popover.js +131 -0
  285. package/dist/components/Popover/Popover.module.cjs +22 -0
  286. package/dist/components/Popover/Popover.module.js +22 -0
  287. package/dist/components/Popover/index.d.ts +1 -1
  288. package/dist/components/PreviewCard/PreviewCard.cjs +96 -0
  289. package/dist/components/PreviewCard/PreviewCard.css +136 -0
  290. package/dist/components/PreviewCard/PreviewCard.d.ts +51 -15
  291. package/dist/components/PreviewCard/PreviewCard.js +87 -0
  292. package/dist/components/PreviewCard/PreviewCard.module.cjs +16 -0
  293. package/dist/components/PreviewCard/PreviewCard.module.js +16 -0
  294. package/dist/components/PreviewCard/index.d.ts +1 -1
  295. package/dist/components/Progress/Progress.cjs +60 -0
  296. package/dist/components/Progress/Progress.css +68 -0
  297. package/dist/components/Progress/Progress.d.ts +9 -7
  298. package/dist/components/Progress/Progress.js +55 -0
  299. package/dist/components/Progress/Progress.module.cjs +12 -0
  300. package/dist/components/Progress/Progress.module.js +12 -0
  301. package/dist/components/Radio/Radio.cjs +78 -0
  302. package/dist/components/Radio/Radio.css +141 -0
  303. package/dist/components/Radio/Radio.d.ts +39 -14
  304. package/dist/components/Radio/Radio.js +71 -0
  305. package/dist/components/Radio/Radio.module.cjs +14 -0
  306. package/dist/components/Radio/Radio.module.js +14 -0
  307. package/dist/components/Radio/index.d.ts +1 -1
  308. package/dist/components/Rating/Rating.cjs +61 -0
  309. package/dist/components/Rating/Rating.css +79 -0
  310. package/dist/components/Rating/Rating.d.ts +12 -10
  311. package/dist/components/Rating/Rating.js +61 -0
  312. package/dist/components/Rating/Rating.module.cjs +9 -0
  313. package/dist/components/Rating/Rating.module.js +9 -0
  314. package/dist/components/Rating/index.d.ts +1 -2
  315. package/dist/components/ScrollArea/ScrollArea.cjs +82 -0
  316. package/dist/components/ScrollArea/ScrollArea.css +205 -0
  317. package/dist/components/ScrollArea/ScrollArea.d.ts +16 -13
  318. package/dist/components/ScrollArea/ScrollArea.js +76 -0
  319. package/dist/components/ScrollArea/ScrollArea.module.cjs +12 -0
  320. package/dist/components/ScrollArea/ScrollArea.module.js +12 -0
  321. package/dist/components/ScrollArea/index.d.ts +1 -1
  322. package/dist/components/Select/Select.cjs +219 -0
  323. package/dist/components/Select/Select.css +357 -0
  324. package/dist/components/Select/Select.d.ts +116 -30
  325. package/dist/components/Select/Select.js +196 -0
  326. package/dist/components/Select/Select.module.cjs +33 -0
  327. package/dist/components/Select/Select.module.js +33 -0
  328. package/dist/components/Select/index.d.ts +1 -1
  329. package/dist/components/Separator/Separator.cjs +16 -0
  330. package/dist/components/Separator/Separator.css +17 -0
  331. package/dist/components/Separator/Separator.d.ts +4 -2
  332. package/dist/components/Separator/Separator.js +16 -0
  333. package/dist/components/Separator/Separator.module.cjs +5 -0
  334. package/dist/components/Separator/Separator.module.js +5 -0
  335. package/dist/components/Skeleton/Skeleton.cjs +25 -0
  336. package/dist/components/Skeleton/Skeleton.css +21 -0
  337. package/dist/components/Skeleton/Skeleton.d.ts +22 -9
  338. package/dist/components/Skeleton/Skeleton.js +25 -0
  339. package/dist/components/Skeleton/Skeleton.module.cjs +5 -0
  340. package/dist/components/Skeleton/Skeleton.module.js +5 -0
  341. package/dist/components/Skeleton/index.d.ts +1 -1
  342. package/dist/components/Slider/Slider.cjs +106 -0
  343. package/dist/components/Slider/Slider.css +115 -0
  344. package/dist/components/Slider/Slider.d.ts +14 -11
  345. package/dist/components/Slider/Slider.js +99 -0
  346. package/dist/components/Slider/Slider.module.cjs +13 -0
  347. package/dist/components/Slider/Slider.module.js +13 -0
  348. package/dist/components/Slider/index.d.ts +1 -1
  349. package/dist/components/SnapCarousel/SnapCarousel.cjs +130 -0
  350. package/dist/components/SnapCarousel/SnapCarousel.css +131 -0
  351. package/dist/components/SnapCarousel/SnapCarousel.d.ts +37 -10
  352. package/dist/components/SnapCarousel/SnapCarousel.js +125 -0
  353. package/dist/components/SnapCarousel/SnapCarousel.module.cjs +13 -0
  354. package/dist/components/SnapCarousel/SnapCarousel.module.js +13 -0
  355. package/dist/components/SnapCarousel/index.d.ts +1 -2
  356. package/dist/components/Spinner/Spinner.cjs +30 -0
  357. package/dist/components/Spinner/Spinner.css +60 -0
  358. package/dist/components/Spinner/Spinner.d.ts +16 -6
  359. package/dist/components/Spinner/Spinner.js +28 -0
  360. package/dist/components/Spinner/Spinner.module.cjs +9 -0
  361. package/dist/components/Spinner/Spinner.module.js +9 -0
  362. package/dist/components/Spinner/index.d.ts +1 -2
  363. package/dist/components/SplitButton/SplitButton.cjs +69 -0
  364. package/dist/components/SplitButton/SplitButton.css +59 -0
  365. package/dist/components/SplitButton/SplitButton.d.ts +39 -20
  366. package/dist/components/SplitButton/SplitButton.js +66 -0
  367. package/dist/components/SplitButton/SplitButton.module.cjs +9 -0
  368. package/dist/components/SplitButton/SplitButton.module.js +9 -0
  369. package/dist/components/SplitButton/index.d.ts +1 -2
  370. package/dist/components/Stack/Stack.cjs +27 -0
  371. package/dist/components/Stack/Stack.css +13 -0
  372. package/dist/components/Stack/Stack.d.ts +27 -13
  373. package/dist/components/Stack/Stack.js +27 -0
  374. package/dist/components/Stack/Stack.module.cjs +5 -0
  375. package/dist/components/Stack/Stack.module.js +5 -0
  376. package/dist/components/Stack/index.d.ts +1 -1
  377. package/dist/components/Stepper/Stepper.cjs +138 -0
  378. package/dist/components/Stepper/Stepper.css +174 -0
  379. package/dist/components/Stepper/Stepper.d.ts +55 -16
  380. package/dist/components/Stepper/Stepper.js +131 -0
  381. package/dist/components/Stepper/Stepper.module.cjs +14 -0
  382. package/dist/components/Stepper/Stepper.module.js +14 -0
  383. package/dist/components/Stepper/index.d.ts +1 -2
  384. package/dist/components/Switch/Switch.cjs +43 -0
  385. package/dist/components/Switch/Switch.css +138 -0
  386. package/dist/components/Switch/Switch.d.ts +21 -9
  387. package/dist/components/Switch/Switch.js +40 -0
  388. package/dist/components/Switch/Switch.module.cjs +10 -0
  389. package/dist/components/Switch/Switch.module.js +10 -0
  390. package/dist/components/Switch/index.d.ts +1 -1
  391. package/dist/components/Table/Table.cjs +96 -0
  392. package/dist/components/Table/Table.css +107 -0
  393. package/dist/components/Table/Table.d.ts +54 -16
  394. package/dist/components/Table/Table.js +85 -0
  395. package/dist/components/Table/Table.module.cjs +18 -0
  396. package/dist/components/Table/Table.module.js +18 -0
  397. package/dist/components/Table/index.d.ts +1 -1
  398. package/dist/components/Tabs/Tabs.cjs +70 -0
  399. package/dist/components/Tabs/Tabs.css +181 -0
  400. package/dist/components/Tabs/Tabs.d.ts +10 -8
  401. package/dist/components/Tabs/Tabs.js +66 -0
  402. package/dist/components/Tabs/Tabs.module.cjs +11 -0
  403. package/dist/components/Tabs/Tabs.module.js +11 -0
  404. package/dist/components/Text/Text.cjs +42 -0
  405. package/dist/components/Text/Text.css +73 -0
  406. package/dist/components/Text/Text.d.ts +20 -9
  407. package/dist/components/Text/Text.js +42 -0
  408. package/dist/components/Text/Text.module.cjs +5 -0
  409. package/dist/components/Text/Text.module.js +5 -0
  410. package/dist/components/Text/index.d.ts +1 -1
  411. package/dist/components/Textarea/Textarea.cjs +28 -0
  412. package/dist/components/Textarea/Textarea.css +59 -0
  413. package/dist/components/Textarea/Textarea.d.ts +7 -5
  414. package/dist/components/Textarea/Textarea.js +28 -0
  415. package/dist/components/Textarea/Textarea.module.cjs +5 -0
  416. package/dist/components/Textarea/Textarea.module.js +5 -0
  417. package/dist/components/Textarea/index.d.ts +1 -2
  418. package/dist/components/Toast/Toast.cjs +278 -0
  419. package/dist/components/Toast/Toast.css +351 -0
  420. package/dist/components/Toast/Toast.d.ts +79 -38
  421. package/dist/components/Toast/Toast.js +263 -0
  422. package/dist/components/Toast/Toast.module.cjs +26 -0
  423. package/dist/components/Toast/Toast.module.js +26 -0
  424. package/dist/components/Toast/index.d.ts +1 -2
  425. package/dist/components/Toggle/Toggle.cjs +18 -0
  426. package/dist/components/Toggle/Toggle.css +147 -0
  427. package/dist/components/Toggle/Toggle.d.ts +9 -6
  428. package/dist/components/Toggle/Toggle.js +18 -0
  429. package/dist/components/Toggle/Toggle.module.cjs +5 -0
  430. package/dist/components/Toggle/Toggle.module.js +5 -0
  431. package/dist/components/Toggle/index.d.ts +1 -1
  432. package/dist/components/ToggleGroup/ToggleGroup.cjs +42 -0
  433. package/dist/components/ToggleGroup/ToggleGroup.css +42 -0
  434. package/dist/components/ToggleGroup/ToggleGroup.d.ts +15 -12
  435. package/dist/components/ToggleGroup/ToggleGroup.js +41 -0
  436. package/dist/components/ToggleGroup/ToggleGroup.module.cjs +8 -0
  437. package/dist/components/ToggleGroup/ToggleGroup.module.js +8 -0
  438. package/dist/components/ToggleGroup/index.d.ts +1 -1
  439. package/dist/components/Toolbar/Toolbar.cjs +61 -0
  440. package/dist/components/Toolbar/Toolbar.css +203 -0
  441. package/dist/components/Toolbar/Toolbar.d.ts +9 -7
  442. package/dist/components/Toolbar/Toolbar.js +56 -0
  443. package/dist/components/Toolbar/Toolbar.module.cjs +12 -0
  444. package/dist/components/Toolbar/Toolbar.module.js +12 -0
  445. package/dist/components/Tooltip/Tooltip.cjs +91 -0
  446. package/dist/components/Tooltip/Tooltip.css +155 -0
  447. package/dist/components/Tooltip/Tooltip.d.ts +51 -15
  448. package/dist/components/Tooltip/Tooltip.js +82 -0
  449. package/dist/components/Tooltip/Tooltip.module.cjs +15 -0
  450. package/dist/components/Tooltip/Tooltip.module.js +15 -0
  451. package/dist/components/Tooltip/index.d.ts +1 -1
  452. package/dist/icons/demo/Icons.cjs +234 -0
  453. package/dist/icons/demo/Icons.d.ts +15 -12
  454. package/dist/icons/demo/Icons.js +225 -0
  455. package/dist/icons/demo/index.d.ts +1 -1
  456. package/dist/icons/ui/Icons.cjs +324 -0
  457. package/dist/icons/ui/Icons.d.ts +30 -22
  458. package/dist/icons/ui/Icons.js +308 -0
  459. package/dist/icons/ui/index.d.ts +1 -1
  460. package/dist/index.cjs +619 -1
  461. package/dist/index.d.cts +1 -0
  462. package/dist/index.d.ts +68 -67
  463. package/dist/index.js +68 -5775
  464. package/dist/reset.cjs +1 -0
  465. package/dist/reset.d.cts +1 -0
  466. package/dist/reset.d.ts +1 -0
  467. package/dist/reset.js +1 -0
  468. package/dist/style.cjs +1 -0
  469. package/dist/style.d.cts +1 -0
  470. package/dist/style.d.ts +1 -0
  471. package/dist/style.js +1 -0
  472. package/dist/styles/reset.css +175 -0
  473. package/dist/styles/style.css +263 -0
  474. package/dist/utils/mergeClassName.cjs +8 -0
  475. package/dist/utils/mergeClassName.js +8 -0
  476. package/package.json +6 -5
  477. package/dist/components/CloseButton/index.d.ts +0 -1
  478. package/dist/components/Meter/index.d.ts +0 -1
  479. package/dist/components/Progress/index.d.ts +0 -1
  480. package/dist/components/Separator/index.d.ts +0 -1
  481. package/dist/components/Tabs/index.d.ts +0 -1
  482. package/dist/components/Toolbar/index.d.ts +0 -1
  483. package/dist/data/insideScrollSections.d.ts +0 -4
  484. package/dist/index.css +0 -1
  485. package/dist/reset.css +0 -334
  486. package/dist/utils/mergeClassName.d.ts +0 -4
@@ -0,0 +1,43 @@
1
+ const require_mergeClassName = require("../../utils/mergeClassName.cjs");
2
+ const require_Switch_module = require("./Switch.module.cjs");
3
+ let react_jsx_runtime = require("react/jsx-runtime");
4
+ let clsx = require("clsx");
5
+ let react = require("react");
6
+ let _base_ui_react_switch = require("@base-ui/react/switch");
7
+ //#region src/components/Switch/Switch.tsx
8
+ const Switch = (0, react.forwardRef)(function Switch({ className, size = "md", children, ...props }, ref) {
9
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_switch.Switch.Root, {
10
+ ref,
11
+ "data-slot": "switch-root",
12
+ "data-size": size,
13
+ className: require_mergeClassName.mergeClassName(className, require_Switch_module.default.root),
14
+ ...props,
15
+ children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchThumb, {})
16
+ });
17
+ });
18
+ function SwitchThumb({ className, ...props }) {
19
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_switch.Switch.Thumb, {
20
+ "data-slot": "switch-thumb",
21
+ className: require_mergeClassName.mergeClassName(className, require_Switch_module.default.thumb),
22
+ ...props
23
+ });
24
+ }
25
+ function SwitchField({ className, ...props }) {
26
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
27
+ "data-slot": "switch-field",
28
+ className: (0, clsx.clsx)(require_Switch_module.default.field, className),
29
+ ...props
30
+ });
31
+ }
32
+ function SwitchLabel({ className, ...props }) {
33
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
34
+ "data-slot": "switch-label",
35
+ className: (0, clsx.clsx)(require_Switch_module.default.label, className),
36
+ ...props
37
+ });
38
+ }
39
+ //#endregion
40
+ exports.Switch = Switch;
41
+ exports.SwitchField = SwitchField;
42
+ exports.SwitchLabel = SwitchLabel;
43
+ exports.SwitchThumb = SwitchThumb;
@@ -0,0 +1,138 @@
1
+ @layer ui.components {
2
+ .klbdca_field {
3
+ align-items: center;
4
+ gap: var(--switch-gap, var(--spacing-2));
5
+ vertical-align: middle;
6
+ cursor: pointer;
7
+ display: inline-flex;
8
+
9
+ &:has(.klbdca_root[data-disabled]), &:has(.klbdca_root[data-readonly]) {
10
+ cursor: default;
11
+ }
12
+ }
13
+
14
+ .klbdca_root {
15
+ box-sizing: border-box;
16
+ -webkit-appearance: none;
17
+ appearance: none;
18
+ width: var(--switch-width, 2.5rem);
19
+ height: var(--switch-height, 1.5rem);
20
+ --switch-thumb-translate-default: calc(var(--switch-width, 2.5rem) - var(--switch-thumb-size, 1.125rem) -
21
+ var(--switch-padding, .125rem) - var(--switch-padding, .125rem) -
22
+ var(--switch-border-width, var(--border-width-sm)) -
23
+ var(--switch-border-width, var(--border-width-sm)));
24
+ border: var(--switch-border-width, var(--border-width-sm)) solid
25
+ var(--switch-border-color, var(--color-border));
26
+ border-radius: var(--switch-radius, var(--radius-full));
27
+ padding: var(--switch-padding, .125rem);
28
+ background-color: var(--switch-bg, var(--color-muted));
29
+ user-select: none;
30
+ cursor: pointer;
31
+ transition: background-color var(--switch-transition, var(--transition-default)),
32
+ border-color var(--switch-transition, var(--transition-default)),
33
+ opacity var(--switch-transition, var(--transition-default));
34
+ outline: 0;
35
+ flex-shrink: 0;
36
+ align-items: center;
37
+ margin: 0;
38
+ line-height: 0;
39
+ display: inline-flex;
40
+ position: relative;
41
+
42
+ &[data-checked] {
43
+ border-color: var(--switch-border-color-checked, var(--color-primary));
44
+ background-color: var(--switch-bg-checked, var(--color-primary));
45
+ }
46
+
47
+ &:focus-visible {
48
+ outline: var(--switch-focus-ring-width, var(--border-width-sm)) solid
49
+ var(--switch-focus-ring-color, var(--color-ring));
50
+ outline-offset: var(--switch-focus-ring-offset, var(--border-width-sm));
51
+ }
52
+
53
+ @media (hover: hover) {
54
+ &[data-unchecked]:not([data-readonly]):hover {
55
+ background-color: var(--switch-bg-hover, var(--color-accent));
56
+ }
57
+
58
+ &[data-checked]:not([data-readonly]):hover {
59
+ background-color: var(--switch-bg-checked-hover, var(--switch-bg-checked, var(--color-primary)));
60
+ }
61
+ }
62
+
63
+ &[data-disabled], &[data-readonly] {
64
+ cursor: default;
65
+ }
66
+
67
+ &[data-disabled] {
68
+ opacity: var(--switch-disabled-opacity, var(--opacity-disabled));
69
+ pointer-events: none;
70
+ }
71
+
72
+ &[data-size="xs"] {
73
+ --switch-width: var(--switch-width-xs, 1.75rem);
74
+ --switch-height: var(--switch-height-xs, 1rem);
75
+ --switch-thumb-size: var(--switch-thumb-size-xs, .625rem);
76
+ }
77
+
78
+ &[data-size="sm"] {
79
+ --switch-width: var(--switch-width-sm, 2rem);
80
+ --switch-height: var(--switch-height-sm, 1.25rem);
81
+ --switch-thumb-size: var(--switch-thumb-size-sm, .875rem);
82
+ }
83
+
84
+ &[data-size="md"] {
85
+ --switch-width: var(--switch-width-md, 2.5rem);
86
+ --switch-height: var(--switch-height-md, 1.5rem);
87
+ --switch-thumb-size: var(--switch-thumb-size-md, 1.125rem);
88
+ }
89
+
90
+ &[data-size="lg"] {
91
+ --switch-width: var(--switch-width-lg, 3rem);
92
+ --switch-height: var(--switch-height-lg, 1.75rem);
93
+ --switch-thumb-size: var(--switch-thumb-size-lg, 1.375rem);
94
+ }
95
+
96
+ &[data-size="xl"] {
97
+ --switch-width: var(--switch-width-xl, 3.5rem);
98
+ --switch-height: var(--switch-height-xl, 2rem);
99
+ --switch-thumb-size: var(--switch-thumb-size-xl, 1.625rem);
100
+ }
101
+ }
102
+
103
+ .klbdca_thumb {
104
+ width: var(--switch-thumb-size, 1.125rem);
105
+ height: var(--switch-thumb-size, 1.125rem);
106
+ border: var(--switch-thumb-border-width, 0) solid var(--switch-thumb-border-color, transparent);
107
+ border-radius: var(--switch-thumb-radius, var(--radius-full));
108
+ background-color: var(--switch-thumb-bg-unchecked, var(--switch-thumb-bg, var(--color-background)));
109
+ color: var(--switch-thumb-color-unchecked, var(--switch-thumb-color, var(--color-muted)));
110
+ box-shadow: var(--switch-thumb-shadow, var(--shadow-sm));
111
+ transition: transform var(--switch-thumb-transition, var(--switch-transition, var(--transition-default))),
112
+ background-color var(--switch-transition, var(--transition-default)),
113
+ color var(--switch-transition, var(--transition-default));
114
+ justify-content: center;
115
+ align-items: center;
116
+ display: inline-flex;
117
+ transform: translateX(0);
118
+
119
+ &[data-checked] {
120
+ background-color: var(--switch-thumb-bg-checked, var(--switch-thumb-bg, var(--color-primary-foreground)));
121
+ color: var(--switch-thumb-color-checked, var(--switch-thumb-color, var(--color-primary)));
122
+ transform: translateX(var(--switch-thumb-translate, var(--switch-thumb-translate-default)));
123
+ }
124
+
125
+ & > svg {
126
+ width: var(--switch-thumb-icon-size, 65%);
127
+ height: var(--switch-thumb-icon-size, 65%);
128
+ flex-shrink: 0;
129
+ }
130
+ }
131
+
132
+ .klbdca_label {
133
+ color: var(--switch-label-color, var(--color-foreground));
134
+ font-size: var(--switch-label-font-size, var(--text-sm));
135
+ font-weight: var(--switch-label-font-weight, var(--weight-medium));
136
+ line-height: var(--switch-label-line-height, var(--line-height-text-sm));
137
+ }
138
+ }
@@ -1,10 +1,22 @@
1
- import { Switch as SwitchPrimitive } from '@base-ui/react/switch';
2
- import { ComponentProps } from 'react';
1
+ import { ComponentProps } from "react";
2
+ import { Switch } from "@base-ui/react/switch";
3
+
4
+ //#region src/components/Switch/Switch.d.ts
3
5
  type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
- declare const Switch: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').SwitchRootProps & {
5
- size?: SwitchSize;
6
- }, "ref"> & import('react').RefAttributes<HTMLElement>>;
7
- declare function SwitchThumb({ className, ...props }: SwitchPrimitive.Thumb.Props): import("react").JSX.Element;
8
- declare function SwitchField({ className, ...props }: ComponentProps<'label'>): import("react").JSX.Element;
9
- declare function SwitchLabel({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
10
- export { Switch, SwitchThumb, SwitchField, SwitchLabel };
6
+ declare const Switch$1: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react").SwitchRootProps & {
7
+ size?: SwitchSize;
8
+ }, "ref"> & import("react").RefAttributes<HTMLElement>>;
9
+ declare function SwitchThumb({
10
+ className,
11
+ ...props
12
+ }: Switch.Thumb.Props): import("react").JSX.Element;
13
+ declare function SwitchField({
14
+ className,
15
+ ...props
16
+ }: ComponentProps<'label'>): import("react").JSX.Element;
17
+ declare function SwitchLabel({
18
+ className,
19
+ ...props
20
+ }: ComponentProps<'span'>): import("react").JSX.Element;
21
+ //#endregion
22
+ export { Switch$1 as Switch, SwitchField, SwitchLabel, SwitchThumb };
@@ -0,0 +1,40 @@
1
+ import { mergeClassName } from "../../utils/mergeClassName.js";
2
+ import Switch_module_default from "./Switch.module.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { clsx } from "clsx";
5
+ import { forwardRef } from "react";
6
+ import { Switch } from "@base-ui/react/switch";
7
+ //#region src/components/Switch/Switch.tsx
8
+ const Switch$1 = forwardRef(function Switch$2({ className, size = "md", children, ...props }, ref) {
9
+ return /* @__PURE__ */ jsx(Switch.Root, {
10
+ ref,
11
+ "data-slot": "switch-root",
12
+ "data-size": size,
13
+ className: mergeClassName(className, Switch_module_default.root),
14
+ ...props,
15
+ children: children ?? /* @__PURE__ */ jsx(SwitchThumb, {})
16
+ });
17
+ });
18
+ function SwitchThumb({ className, ...props }) {
19
+ return /* @__PURE__ */ jsx(Switch.Thumb, {
20
+ "data-slot": "switch-thumb",
21
+ className: mergeClassName(className, Switch_module_default.thumb),
22
+ ...props
23
+ });
24
+ }
25
+ function SwitchField({ className, ...props }) {
26
+ return /* @__PURE__ */ jsx("label", {
27
+ "data-slot": "switch-field",
28
+ className: clsx(Switch_module_default.field, className),
29
+ ...props
30
+ });
31
+ }
32
+ function SwitchLabel({ className, ...props }) {
33
+ return /* @__PURE__ */ jsx("span", {
34
+ "data-slot": "switch-label",
35
+ className: clsx(Switch_module_default.label, className),
36
+ ...props
37
+ });
38
+ }
39
+ //#endregion
40
+ export { Switch$1 as Switch, SwitchField, SwitchLabel, SwitchThumb };
@@ -0,0 +1,10 @@
1
+ import './Switch.css';
2
+ //#region src/components/Switch/Switch.module.css
3
+ var Switch_module_default = {
4
+ "field": "klbdca_field",
5
+ "label": "klbdca_label",
6
+ "root": "klbdca_root",
7
+ "thumb": "klbdca_thumb"
8
+ };
9
+ //#endregion
10
+ exports.default = Switch_module_default;
@@ -0,0 +1,10 @@
1
+ import './Switch.css';
2
+ //#region src/components/Switch/Switch.module.css
3
+ var Switch_module_default = {
4
+ "field": "klbdca_field",
5
+ "label": "klbdca_label",
6
+ "root": "klbdca_root",
7
+ "thumb": "klbdca_thumb"
8
+ };
9
+ //#endregion
10
+ export { Switch_module_default as default };
@@ -1 +1 @@
1
- export { Switch, SwitchThumb, SwitchField, SwitchLabel } from './Switch';
1
+ import { Switch, SwitchField, SwitchLabel, SwitchThumb } from "./Switch.js";
@@ -0,0 +1,96 @@
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_Table_module = require("./Table.module.cjs");
3
+ let react_jsx_runtime = require("react/jsx-runtime");
4
+ let clsx = require("clsx");
5
+ clsx = require_runtime.__toESM(clsx);
6
+ //#region src/components/Table/Table.tsx
7
+ function TableContainer({ className, ...props }) {
8
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9
+ "data-slot": "table-container",
10
+ className: (0, clsx.default)(require_Table_module.default.container, className),
11
+ ...props
12
+ });
13
+ }
14
+ function Table({ className, ...props }) {
15
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
16
+ "data-slot": "table",
17
+ className: (0, clsx.default)(require_Table_module.default.root, className),
18
+ ...props
19
+ });
20
+ }
21
+ function TableHeader({ className, ...props }) {
22
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
23
+ "data-slot": "table-header",
24
+ className: (0, clsx.default)(require_Table_module.default.header, className),
25
+ ...props
26
+ });
27
+ }
28
+ function TableBody({ className, ...props }) {
29
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
30
+ "data-slot": "table-body",
31
+ className: (0, clsx.default)(require_Table_module.default.body, className),
32
+ ...props
33
+ });
34
+ }
35
+ function TableFooter({ className, ...props }) {
36
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
37
+ "data-slot": "table-footer",
38
+ className: (0, clsx.default)(require_Table_module.default.footer, className),
39
+ ...props
40
+ });
41
+ }
42
+ function TableRow({ className, ...props }) {
43
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
44
+ "data-slot": "table-row",
45
+ className: (0, clsx.default)(require_Table_module.default.row, className),
46
+ ...props
47
+ });
48
+ }
49
+ function TableHead({ className, numeric = false, ...props }) {
50
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
51
+ "data-numeric": numeric || void 0,
52
+ "data-slot": "table-head",
53
+ className: (0, clsx.default)(require_Table_module.default.head, numeric && require_Table_module.default.numeric, className),
54
+ ...props
55
+ });
56
+ }
57
+ function TableCell({ className, numeric = false, ...props }) {
58
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
59
+ "data-numeric": numeric || void 0,
60
+ "data-slot": "table-cell",
61
+ className: (0, clsx.default)(require_Table_module.default.cell, numeric && require_Table_module.default.numeric, className),
62
+ ...props
63
+ });
64
+ }
65
+ function TableEmpty({ children = "No results.", className, colSpan, ...props }) {
66
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
67
+ "data-slot": "table-row",
68
+ className: (0, clsx.default)(require_Table_module.default.row, require_Table_module.default.emptyRow),
69
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
70
+ "data-slot": "table-empty",
71
+ colSpan,
72
+ className: (0, clsx.default)(require_Table_module.default.cell, require_Table_module.default.empty, className),
73
+ ...props,
74
+ children
75
+ })
76
+ });
77
+ }
78
+ function TableCaption({ className, side = "bottom", ...props }) {
79
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
80
+ "data-side": side,
81
+ "data-slot": "table-caption",
82
+ className: (0, clsx.default)(require_Table_module.default.caption, className),
83
+ ...props
84
+ });
85
+ }
86
+ //#endregion
87
+ exports.Table = Table;
88
+ exports.TableBody = TableBody;
89
+ exports.TableCaption = TableCaption;
90
+ exports.TableCell = TableCell;
91
+ exports.TableContainer = TableContainer;
92
+ exports.TableEmpty = TableEmpty;
93
+ exports.TableFooter = TableFooter;
94
+ exports.TableHead = TableHead;
95
+ exports.TableHeader = TableHeader;
96
+ exports.TableRow = TableRow;
@@ -0,0 +1,107 @@
1
+ @layer ui.components {
2
+ .Bc8hSq_container {
3
+ box-sizing: border-box;
4
+ border: var(--table-container-border-width, var(--table-border-width, var(--border-width-sm)))
5
+ solid var(--table-container-border-color, var(--table-border-color, var(--color-border)));
6
+ border-radius: var(--table-container-radius, var(--radius-lg));
7
+ background-color: var(--table-container-bg, var(--color-card));
8
+ width: 100%;
9
+ min-width: 0;
10
+ box-shadow: var(--table-container-shadow, none);
11
+ overflow-x: auto;
12
+ }
13
+
14
+ .Bc8hSq_root {
15
+ --table-cell-padding-y-default: var(--table-cell-padding-y, var(--spacing-3));
16
+ --table-empty-padding-y-default: calc(var(--table-cell-padding-y-default) * 2);
17
+ box-sizing: border-box;
18
+ border-collapse: collapse;
19
+ border-spacing: 0;
20
+ width: 100%;
21
+ color: var(--table-color, var(--color-foreground));
22
+ font-family: var(--table-font-family, var(--font-sans));
23
+ font-size: var(--table-font-size, var(--text-sm));
24
+ line-height: var(--table-line-height, var(--line-height-text-sm));
25
+ text-align: left;
26
+ }
27
+
28
+ .Bc8hSq_caption {
29
+ box-sizing: border-box;
30
+ color: var(--table-caption-color, var(--color-muted-foreground));
31
+ font-size: var(--table-caption-font-size, var(--text-sm));
32
+ line-height: var(--table-caption-line-height, var(--line-height-text-sm));
33
+ padding-inline: var(--table-caption-padding-x, var(--table-cell-padding-x, var(--spacing-4)));
34
+ text-align: left;
35
+ text-wrap: pretty;
36
+ }
37
+
38
+ .Bc8hSq_caption[data-side="top"] {
39
+ caption-side: top;
40
+ padding-block: var(--table-caption-padding-edge, var(--spacing-2))
41
+ var(--table-caption-padding-y, var(--spacing-3));
42
+ }
43
+
44
+ .Bc8hSq_caption[data-side="bottom"] {
45
+ caption-side: bottom;
46
+ padding-block: var(--table-caption-padding-y, var(--spacing-3))
47
+ var(--table-caption-padding-edge, var(--spacing-2));
48
+ }
49
+
50
+ .Bc8hSq_row {
51
+ transition: var(--table-row-transition, background-color var(--transition-default));
52
+ }
53
+
54
+ .Bc8hSq_header .Bc8hSq_row, .Bc8hSq_body .Bc8hSq_row {
55
+ border-bottom: var(--table-border-width, var(--border-width-sm)) solid
56
+ var(--table-border-color, var(--color-border));
57
+ }
58
+
59
+ .Bc8hSq_body .Bc8hSq_row:hover {
60
+ background-color: var(--table-row-bg-hover, var(--color-muted));
61
+ }
62
+
63
+ .Bc8hSq_body .Bc8hSq_row:last-child {
64
+ border-bottom: 0;
65
+ }
66
+
67
+ .Bc8hSq_footer {
68
+ border-top: var(--table-border-width, var(--border-width-sm)) solid
69
+ var(--table-border-color, var(--color-border));
70
+ background-color: var(--table-footer-bg, var(--color-muted));
71
+ color: var(--table-footer-color, var(--table-color, var(--color-foreground)));
72
+ font-weight: var(--table-footer-font-weight, var(--weight-medium));
73
+ }
74
+
75
+ .Bc8hSq_head, .Bc8hSq_cell {
76
+ padding-block: var(--table-cell-padding-y-default);
77
+ padding-inline: var(--table-cell-padding-x, var(--spacing-4));
78
+ vertical-align: middle;
79
+ }
80
+
81
+ .Bc8hSq_head {
82
+ color: var(--table-head-color, var(--color-muted-foreground));
83
+ font-weight: var(--table-head-font-weight, var(--weight-medium));
84
+ text-align: inherit;
85
+ white-space: nowrap;
86
+ }
87
+
88
+ .Bc8hSq_cell {
89
+ color: inherit;
90
+ }
91
+
92
+ .Bc8hSq_numeric {
93
+ text-align: right;
94
+ white-space: nowrap;
95
+ font-variant-numeric: tabular-nums;
96
+ }
97
+
98
+ .Bc8hSq_emptyRow:hover {
99
+ background-color: #0000;
100
+ }
101
+
102
+ .Bc8hSq_empty {
103
+ padding-block: var(--table-empty-padding-y, var(--table-empty-padding-y-default));
104
+ color: var(--table-empty-color, var(--color-muted-foreground));
105
+ text-align: center;
106
+ }
107
+ }
@@ -1,20 +1,58 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- declare function TableContainer({ className, ...props }: ComponentPropsWithoutRef<'div'>): import("react").JSX.Element;
3
- declare function Table({ className, ...props }: ComponentPropsWithoutRef<'table'>): import("react").JSX.Element;
4
- declare function TableHeader({ className, ...props }: ComponentPropsWithoutRef<'thead'>): import("react").JSX.Element;
5
- declare function TableBody({ className, ...props }: ComponentPropsWithoutRef<'tbody'>): import("react").JSX.Element;
6
- declare function TableFooter({ className, ...props }: ComponentPropsWithoutRef<'tfoot'>): import("react").JSX.Element;
7
- declare function TableRow({ className, ...props }: ComponentPropsWithoutRef<'tr'>): import("react").JSX.Element;
8
- declare function TableHead({ className, numeric, ...props }: ComponentPropsWithoutRef<'th'> & {
9
- numeric?: boolean;
1
+ import { ComponentPropsWithoutRef } from "react";
2
+
3
+ //#region src/components/Table/Table.d.ts
4
+ declare function TableContainer({
5
+ className,
6
+ ...props
7
+ }: ComponentPropsWithoutRef<'div'>): import("react").JSX.Element;
8
+ declare function Table({
9
+ className,
10
+ ...props
11
+ }: ComponentPropsWithoutRef<'table'>): import("react").JSX.Element;
12
+ declare function TableHeader({
13
+ className,
14
+ ...props
15
+ }: ComponentPropsWithoutRef<'thead'>): import("react").JSX.Element;
16
+ declare function TableBody({
17
+ className,
18
+ ...props
19
+ }: ComponentPropsWithoutRef<'tbody'>): import("react").JSX.Element;
20
+ declare function TableFooter({
21
+ className,
22
+ ...props
23
+ }: ComponentPropsWithoutRef<'tfoot'>): import("react").JSX.Element;
24
+ declare function TableRow({
25
+ className,
26
+ ...props
27
+ }: ComponentPropsWithoutRef<'tr'>): import("react").JSX.Element;
28
+ declare function TableHead({
29
+ className,
30
+ numeric,
31
+ ...props
32
+ }: ComponentPropsWithoutRef<'th'> & {
33
+ numeric?: boolean;
10
34
  }): import("react").JSX.Element;
11
- declare function TableCell({ className, numeric, ...props }: ComponentPropsWithoutRef<'td'> & {
12
- numeric?: boolean;
35
+ declare function TableCell({
36
+ className,
37
+ numeric,
38
+ ...props
39
+ }: ComponentPropsWithoutRef<'td'> & {
40
+ numeric?: boolean;
13
41
  }): import("react").JSX.Element;
14
- declare function TableEmpty({ children, className, colSpan, ...props }: ComponentPropsWithoutRef<'td'> & {
15
- colSpan: number;
42
+ declare function TableEmpty({
43
+ children,
44
+ className,
45
+ colSpan,
46
+ ...props
47
+ }: ComponentPropsWithoutRef<'td'> & {
48
+ colSpan: number;
16
49
  }): import("react").JSX.Element;
17
- declare function TableCaption({ className, side, ...props }: ComponentPropsWithoutRef<'caption'> & {
18
- side?: 'top' | 'bottom';
50
+ declare function TableCaption({
51
+ className,
52
+ side,
53
+ ...props
54
+ }: ComponentPropsWithoutRef<'caption'> & {
55
+ side?: 'top' | 'bottom';
19
56
  }): import("react").JSX.Element;
20
- export { Table, TableBody, TableCaption, TableCell, TableContainer, TableEmpty, TableFooter, TableHead, TableHeader, TableRow, };
57
+ //#endregion
58
+ export { Table, TableBody, TableCaption, TableCell, TableContainer, TableEmpty, TableFooter, TableHead, TableHeader, TableRow };
@@ -0,0 +1,85 @@
1
+ import Table_module_default from "./Table.module.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import clsx$1 from "clsx";
4
+ //#region src/components/Table/Table.tsx
5
+ function TableContainer({ className, ...props }) {
6
+ return /* @__PURE__ */ jsx("div", {
7
+ "data-slot": "table-container",
8
+ className: clsx$1(Table_module_default.container, className),
9
+ ...props
10
+ });
11
+ }
12
+ function Table({ className, ...props }) {
13
+ return /* @__PURE__ */ jsx("table", {
14
+ "data-slot": "table",
15
+ className: clsx$1(Table_module_default.root, className),
16
+ ...props
17
+ });
18
+ }
19
+ function TableHeader({ className, ...props }) {
20
+ return /* @__PURE__ */ jsx("thead", {
21
+ "data-slot": "table-header",
22
+ className: clsx$1(Table_module_default.header, className),
23
+ ...props
24
+ });
25
+ }
26
+ function TableBody({ className, ...props }) {
27
+ return /* @__PURE__ */ jsx("tbody", {
28
+ "data-slot": "table-body",
29
+ className: clsx$1(Table_module_default.body, className),
30
+ ...props
31
+ });
32
+ }
33
+ function TableFooter({ className, ...props }) {
34
+ return /* @__PURE__ */ jsx("tfoot", {
35
+ "data-slot": "table-footer",
36
+ className: clsx$1(Table_module_default.footer, className),
37
+ ...props
38
+ });
39
+ }
40
+ function TableRow({ className, ...props }) {
41
+ return /* @__PURE__ */ jsx("tr", {
42
+ "data-slot": "table-row",
43
+ className: clsx$1(Table_module_default.row, className),
44
+ ...props
45
+ });
46
+ }
47
+ function TableHead({ className, numeric = false, ...props }) {
48
+ return /* @__PURE__ */ jsx("th", {
49
+ "data-numeric": numeric || void 0,
50
+ "data-slot": "table-head",
51
+ className: clsx$1(Table_module_default.head, numeric && Table_module_default.numeric, className),
52
+ ...props
53
+ });
54
+ }
55
+ function TableCell({ className, numeric = false, ...props }) {
56
+ return /* @__PURE__ */ jsx("td", {
57
+ "data-numeric": numeric || void 0,
58
+ "data-slot": "table-cell",
59
+ className: clsx$1(Table_module_default.cell, numeric && Table_module_default.numeric, className),
60
+ ...props
61
+ });
62
+ }
63
+ function TableEmpty({ children = "No results.", className, colSpan, ...props }) {
64
+ return /* @__PURE__ */ jsx("tr", {
65
+ "data-slot": "table-row",
66
+ className: clsx$1(Table_module_default.row, Table_module_default.emptyRow),
67
+ children: /* @__PURE__ */ jsx("td", {
68
+ "data-slot": "table-empty",
69
+ colSpan,
70
+ className: clsx$1(Table_module_default.cell, Table_module_default.empty, className),
71
+ ...props,
72
+ children
73
+ })
74
+ });
75
+ }
76
+ function TableCaption({ className, side = "bottom", ...props }) {
77
+ return /* @__PURE__ */ jsx("caption", {
78
+ "data-side": side,
79
+ "data-slot": "table-caption",
80
+ className: clsx$1(Table_module_default.caption, className),
81
+ ...props
82
+ });
83
+ }
84
+ //#endregion
85
+ export { Table, TableBody, TableCaption, TableCell, TableContainer, TableEmpty, TableFooter, TableHead, TableHeader, TableRow };
@@ -0,0 +1,18 @@
1
+ import './Table.css';
2
+ //#region src/components/Table/Table.module.css
3
+ var Table_module_default = {
4
+ "body": "Bc8hSq_body",
5
+ "caption": "Bc8hSq_caption",
6
+ "cell": "Bc8hSq_cell",
7
+ "container": "Bc8hSq_container",
8
+ "empty": "Bc8hSq_empty",
9
+ "emptyRow": "Bc8hSq_emptyRow",
10
+ "footer": "Bc8hSq_footer",
11
+ "head": "Bc8hSq_head",
12
+ "header": "Bc8hSq_header",
13
+ "numeric": "Bc8hSq_numeric",
14
+ "root": "Bc8hSq_root",
15
+ "row": "Bc8hSq_row"
16
+ };
17
+ //#endregion
18
+ exports.default = Table_module_default;