svelora 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +145 -0
  3. package/dist/Accordion/Accordion.svelte +207 -0
  4. package/dist/Accordion/Accordion.svelte.d.ts +6 -0
  5. package/dist/Accordion/accordion.types.d.ts +225 -0
  6. package/dist/Accordion/accordion.types.js +1 -0
  7. package/dist/Accordion/accordion.variants.d.ts +88 -0
  8. package/dist/Accordion/accordion.variants.js +28 -0
  9. package/dist/Accordion/index.d.ts +2 -0
  10. package/dist/Accordion/index.js +1 -0
  11. package/dist/Alert/Alert.svelte +131 -0
  12. package/dist/Alert/Alert.svelte.d.ts +5 -0
  13. package/dist/Alert/alert.types.d.ts +103 -0
  14. package/dist/Alert/alert.types.js +1 -0
  15. package/dist/Alert/alert.variants.d.ts +213 -0
  16. package/dist/Alert/alert.variants.js +293 -0
  17. package/dist/Alert/index.d.ts +2 -0
  18. package/dist/Alert/index.js +1 -0
  19. package/dist/Avatar/Avatar.svelte +114 -0
  20. package/dist/Avatar/Avatar.svelte.d.ts +6 -0
  21. package/dist/Avatar/avatar.types.d.ts +73 -0
  22. package/dist/Avatar/avatar.types.js +1 -0
  23. package/dist/Avatar/avatar.variants.d.ts +316 -0
  24. package/dist/Avatar/avatar.variants.js +39 -0
  25. package/dist/Avatar/index.d.ts +2 -0
  26. package/dist/Avatar/index.js +1 -0
  27. package/dist/AvatarGroup/AvatarGroup.svelte +71 -0
  28. package/dist/AvatarGroup/AvatarGroup.svelte.d.ts +5 -0
  29. package/dist/AvatarGroup/avatar-group.types.d.ts +49 -0
  30. package/dist/AvatarGroup/avatar-group.types.js +1 -0
  31. package/dist/AvatarGroup/avatar-group.variants.d.ts +258 -0
  32. package/dist/AvatarGroup/avatar-group.variants.js +35 -0
  33. package/dist/AvatarGroup/index.d.ts +2 -0
  34. package/dist/AvatarGroup/index.js +1 -0
  35. package/dist/Badge/Badge.svelte +79 -0
  36. package/dist/Badge/Badge.svelte.d.ts +5 -0
  37. package/dist/Badge/badge.types.d.ts +83 -0
  38. package/dist/Badge/badge.types.js +1 -0
  39. package/dist/Badge/badge.variants.d.ts +303 -0
  40. package/dist/Badge/badge.variants.js +259 -0
  41. package/dist/Badge/index.d.ts +2 -0
  42. package/dist/Badge/index.js +1 -0
  43. package/dist/Banner/Banner.svelte +130 -0
  44. package/dist/Banner/Banner.svelte.d.ts +5 -0
  45. package/dist/Banner/banner.types.d.ts +148 -0
  46. package/dist/Banner/banner.types.js +1 -0
  47. package/dist/Banner/banner.variants.d.ts +293 -0
  48. package/dist/Banner/banner.variants.js +86 -0
  49. package/dist/Banner/index.d.ts +2 -0
  50. package/dist/Banner/index.js +1 -0
  51. package/dist/Breadcrumb/Breadcrumb.svelte +79 -0
  52. package/dist/Breadcrumb/Breadcrumb.svelte.d.ts +5 -0
  53. package/dist/Breadcrumb/breadcrumb.types.d.ts +66 -0
  54. package/dist/Breadcrumb/breadcrumb.types.js +1 -0
  55. package/dist/Breadcrumb/breadcrumb.variants.d.ts +138 -0
  56. package/dist/Breadcrumb/breadcrumb.variants.js +53 -0
  57. package/dist/Breadcrumb/index.d.ts +2 -0
  58. package/dist/Breadcrumb/index.js +1 -0
  59. package/dist/Button/Button.svelte +177 -0
  60. package/dist/Button/Button.svelte.d.ts +5 -0
  61. package/dist/Button/button.types.d.ts +151 -0
  62. package/dist/Button/button.types.js +1 -0
  63. package/dist/Button/button.variants.d.ts +388 -0
  64. package/dist/Button/button.variants.js +461 -0
  65. package/dist/Button/index.d.ts +2 -0
  66. package/dist/Button/index.js +1 -0
  67. package/dist/Calendar/Calendar.svelte +344 -0
  68. package/dist/Calendar/Calendar.svelte.d.ts +6 -0
  69. package/dist/Calendar/calendar.types.d.ts +122 -0
  70. package/dist/Calendar/calendar.types.js +1 -0
  71. package/dist/Calendar/calendar.variants.d.ts +553 -0
  72. package/dist/Calendar/calendar.variants.js +368 -0
  73. package/dist/Calendar/index.d.ts +2 -0
  74. package/dist/Calendar/index.js +1 -0
  75. package/dist/Card/Card.svelte +54 -0
  76. package/dist/Card/Card.svelte.d.ts +5 -0
  77. package/dist/Card/card.types.d.ts +36 -0
  78. package/dist/Card/card.types.js +1 -0
  79. package/dist/Card/card.variants.d.ts +108 -0
  80. package/dist/Card/card.variants.js +32 -0
  81. package/dist/Card/index.d.ts +2 -0
  82. package/dist/Card/index.js +1 -0
  83. package/dist/Carousel/Carousel.svelte +277 -0
  84. package/dist/Carousel/Carousel.svelte.d.ts +26 -0
  85. package/dist/Carousel/carousel.types.d.ts +251 -0
  86. package/dist/Carousel/carousel.types.js +1 -0
  87. package/dist/Carousel/carousel.variants.d.ts +408 -0
  88. package/dist/Carousel/carousel.variants.js +88 -0
  89. package/dist/Carousel/index.d.ts +2 -0
  90. package/dist/Carousel/index.js +1 -0
  91. package/dist/Checkbox/Checkbox.svelte +161 -0
  92. package/dist/Checkbox/Checkbox.svelte.d.ts +6 -0
  93. package/dist/Checkbox/checkbox.types.d.ts +101 -0
  94. package/dist/Checkbox/checkbox.types.js +1 -0
  95. package/dist/Checkbox/checkbox.variants.d.ts +448 -0
  96. package/dist/Checkbox/checkbox.variants.js +209 -0
  97. package/dist/Checkbox/index.d.ts +2 -0
  98. package/dist/Checkbox/index.js +1 -0
  99. package/dist/CheckboxGroup/CheckboxGroup.svelte +219 -0
  100. package/dist/CheckboxGroup/CheckboxGroup.svelte.d.ts +5 -0
  101. package/dist/CheckboxGroup/checkbox-group.types.d.ts +130 -0
  102. package/dist/CheckboxGroup/checkbox-group.types.js +1 -0
  103. package/dist/CheckboxGroup/checkbox-group.variants.d.ts +553 -0
  104. package/dist/CheckboxGroup/checkbox-group.variants.js +231 -0
  105. package/dist/CheckboxGroup/index.d.ts +2 -0
  106. package/dist/CheckboxGroup/index.js +1 -0
  107. package/dist/Chip/Chip.svelte +51 -0
  108. package/dist/Chip/Chip.svelte.d.ts +5 -0
  109. package/dist/Chip/chip.types.d.ts +66 -0
  110. package/dist/Chip/chip.types.js +1 -0
  111. package/dist/Chip/chip.variants.d.ts +418 -0
  112. package/dist/Chip/chip.variants.js +74 -0
  113. package/dist/Chip/index.d.ts +2 -0
  114. package/dist/Chip/index.js +1 -0
  115. package/dist/Collapsible/Collapsible.svelte +69 -0
  116. package/dist/Collapsible/Collapsible.svelte.d.ts +6 -0
  117. package/dist/Collapsible/CollapsibleTestWrapper.svelte +17 -0
  118. package/dist/Collapsible/CollapsibleTestWrapper.svelte.d.ts +4 -0
  119. package/dist/Collapsible/collapsible.types.d.ts +77 -0
  120. package/dist/Collapsible/collapsible.types.js +1 -0
  121. package/dist/Collapsible/collapsible.variants.d.ts +53 -0
  122. package/dist/Collapsible/collapsible.variants.js +21 -0
  123. package/dist/Collapsible/index.d.ts +2 -0
  124. package/dist/Collapsible/index.js +1 -0
  125. package/dist/Command/Command.svelte +183 -0
  126. package/dist/Command/Command.svelte.d.ts +6 -0
  127. package/dist/Command/CommandTestWrapper.svelte +13 -0
  128. package/dist/Command/CommandTestWrapper.svelte.d.ts +4 -0
  129. package/dist/Command/command.types.d.ts +100 -0
  130. package/dist/Command/command.types.js +1 -0
  131. package/dist/Command/command.variants.d.ts +226 -0
  132. package/dist/Command/command.variants.js +86 -0
  133. package/dist/Command/index.d.ts +2 -0
  134. package/dist/Command/index.js +1 -0
  135. package/dist/Container/Container.svelte +21 -0
  136. package/dist/Container/Container.svelte.d.ts +5 -0
  137. package/dist/Container/container.types.d.ts +19 -0
  138. package/dist/Container/container.types.js +1 -0
  139. package/dist/Container/container.variants.d.ts +29 -0
  140. package/dist/Container/container.variants.js +9 -0
  141. package/dist/Container/index.d.ts +2 -0
  142. package/dist/Container/index.js +1 -0
  143. package/dist/ContextMenu/ContextMenu.svelte +344 -0
  144. package/dist/ContextMenu/ContextMenu.svelte.d.ts +6 -0
  145. package/dist/ContextMenu/context-menu.types.d.ts +265 -0
  146. package/dist/ContextMenu/context-menu.types.js +1 -0
  147. package/dist/ContextMenu/context-menu.variants.d.ts +307 -0
  148. package/dist/ContextMenu/context-menu.variants.js +144 -0
  149. package/dist/ContextMenu/index.d.ts +2 -0
  150. package/dist/ContextMenu/index.js +1 -0
  151. package/dist/Drawer/Drawer.svelte +207 -0
  152. package/dist/Drawer/Drawer.svelte.d.ts +6 -0
  153. package/dist/Drawer/DrawerTriggerTestWrapper.svelte +10 -0
  154. package/dist/Drawer/DrawerTriggerTestWrapper.svelte.d.ts +18 -0
  155. package/dist/Drawer/drawer.types.d.ts +116 -0
  156. package/dist/Drawer/drawer.types.js +1 -0
  157. package/dist/Drawer/drawer.variants.d.ts +193 -0
  158. package/dist/Drawer/drawer.variants.js +139 -0
  159. package/dist/Drawer/index.d.ts +2 -0
  160. package/dist/Drawer/index.js +1 -0
  161. package/dist/DropdownMenu/DropdownMenu.svelte +363 -0
  162. package/dist/DropdownMenu/DropdownMenu.svelte.d.ts +6 -0
  163. package/dist/DropdownMenu/DropdownMenuTriggerTestWrapper.svelte +12 -0
  164. package/dist/DropdownMenu/DropdownMenuTriggerTestWrapper.svelte.d.ts +7 -0
  165. package/dist/DropdownMenu/dropdown-menu.types.d.ts +279 -0
  166. package/dist/DropdownMenu/dropdown-menu.types.js +1 -0
  167. package/dist/DropdownMenu/dropdown-menu.variants.d.ts +312 -0
  168. package/dist/DropdownMenu/dropdown-menu.variants.js +149 -0
  169. package/dist/DropdownMenu/index.d.ts +2 -0
  170. package/dist/DropdownMenu/index.js +1 -0
  171. package/dist/Editor/Editor.svelte +756 -0
  172. package/dist/Editor/Editor.svelte.d.ts +6 -0
  173. package/dist/Editor/EditorUrlPrompt.svelte +94 -0
  174. package/dist/Editor/EditorUrlPrompt.svelte.d.ts +15 -0
  175. package/dist/Editor/SlashPopup.svelte +74 -0
  176. package/dist/Editor/SlashPopup.svelte.d.ts +11 -0
  177. package/dist/Editor/editor.extensions.d.ts +23 -0
  178. package/dist/Editor/editor.extensions.js +132 -0
  179. package/dist/Editor/editor.schemas.d.ts +5 -0
  180. package/dist/Editor/editor.schemas.js +27 -0
  181. package/dist/Editor/editor.slash.svelte.d.ts +25 -0
  182. package/dist/Editor/editor.slash.svelte.js +299 -0
  183. package/dist/Editor/editor.suggestion.d.ts +7 -0
  184. package/dist/Editor/editor.suggestion.js +165 -0
  185. package/dist/Editor/editor.toolbar.d.ts +11 -0
  186. package/dist/Editor/editor.toolbar.js +204 -0
  187. package/dist/Editor/editor.types.d.ts +367 -0
  188. package/dist/Editor/editor.types.js +1 -0
  189. package/dist/Editor/editor.variants.d.ts +303 -0
  190. package/dist/Editor/editor.variants.js +135 -0
  191. package/dist/Editor/index.d.ts +55 -0
  192. package/dist/Editor/index.js +54 -0
  193. package/dist/Empty/Empty.svelte +118 -0
  194. package/dist/Empty/Empty.svelte.d.ts +5 -0
  195. package/dist/Empty/empty.types.d.ts +91 -0
  196. package/dist/Empty/empty.types.js +1 -0
  197. package/dist/Empty/empty.variants.d.ts +308 -0
  198. package/dist/Empty/empty.variants.js +73 -0
  199. package/dist/Empty/index.d.ts +2 -0
  200. package/dist/Empty/index.js +1 -0
  201. package/dist/FieldGroup/FieldGroup.svelte +53 -0
  202. package/dist/FieldGroup/FieldGroup.svelte.d.ts +5 -0
  203. package/dist/FieldGroup/field-group.types.d.ts +37 -0
  204. package/dist/FieldGroup/field-group.types.js +1 -0
  205. package/dist/FieldGroup/field-group.variants.d.ts +116 -0
  206. package/dist/FieldGroup/field-group.variants.js +49 -0
  207. package/dist/FieldGroup/index.d.ts +2 -0
  208. package/dist/FieldGroup/index.js +1 -0
  209. package/dist/FileUpload/FileUpload.svelte +639 -0
  210. package/dist/FileUpload/FileUpload.svelte.d.ts +8 -0
  211. package/dist/FileUpload/file-upload.types.d.ts +203 -0
  212. package/dist/FileUpload/file-upload.types.js +1 -0
  213. package/dist/FileUpload/file-upload.variants.d.ts +397 -0
  214. package/dist/FileUpload/file-upload.variants.js +224 -0
  215. package/dist/FileUpload/index.d.ts +2 -0
  216. package/dist/FileUpload/index.js +1 -0
  217. package/dist/Form/Form.svelte +197 -0
  218. package/dist/Form/Form.svelte.d.ts +26 -0
  219. package/dist/Form/form.context.svelte.d.ts +64 -0
  220. package/dist/Form/form.context.svelte.js +478 -0
  221. package/dist/Form/form.types.d.ts +164 -0
  222. package/dist/Form/form.types.js +12 -0
  223. package/dist/Form/form.variants.d.ts +39 -0
  224. package/dist/Form/form.variants.js +17 -0
  225. package/dist/Form/index.d.ts +4 -0
  226. package/dist/Form/index.js +6 -0
  227. package/dist/Form/validate-schema.d.ts +13 -0
  228. package/dist/Form/validate-schema.js +113 -0
  229. package/dist/FormField/FormField.svelte +186 -0
  230. package/dist/FormField/FormField.svelte.d.ts +5 -0
  231. package/dist/FormField/form-field.types.d.ts +109 -0
  232. package/dist/FormField/form-field.types.js +1 -0
  233. package/dist/FormField/form-field.variants.d.ts +313 -0
  234. package/dist/FormField/form-field.variants.js +74 -0
  235. package/dist/FormField/index.d.ts +2 -0
  236. package/dist/FormField/index.js +1 -0
  237. package/dist/Icon/Icon.svelte +46 -0
  238. package/dist/Icon/Icon.svelte.d.ts +6 -0
  239. package/dist/Icon/icon.types.d.ts +49 -0
  240. package/dist/Icon/icon.types.js +1 -0
  241. package/dist/Icon/index.d.ts +2 -0
  242. package/dist/Icon/index.js +1 -0
  243. package/dist/Input/Input.svelte +199 -0
  244. package/dist/Input/Input.svelte.d.ts +26 -0
  245. package/dist/Input/index.d.ts +2 -0
  246. package/dist/Input/index.js +1 -0
  247. package/dist/Input/input.types.d.ts +113 -0
  248. package/dist/Input/input.types.js +1 -0
  249. package/dist/Input/input.variants.d.ts +398 -0
  250. package/dist/Input/input.variants.js +387 -0
  251. package/dist/Kbd/Kbd.svelte +45 -0
  252. package/dist/Kbd/Kbd.svelte.d.ts +5 -0
  253. package/dist/Kbd/index.d.ts +3 -0
  254. package/dist/Kbd/index.js +2 -0
  255. package/dist/Kbd/kbd.types.d.ts +91 -0
  256. package/dist/Kbd/kbd.types.js +1 -0
  257. package/dist/Kbd/kbd.variants.d.ts +180 -0
  258. package/dist/Kbd/kbd.variants.js +168 -0
  259. package/dist/Kbd/useKbd.svelte.d.ts +29 -0
  260. package/dist/Kbd/useKbd.svelte.js +248 -0
  261. package/dist/Link/Link.svelte +168 -0
  262. package/dist/Link/Link.svelte.d.ts +5 -0
  263. package/dist/Link/index.d.ts +2 -0
  264. package/dist/Link/index.js +1 -0
  265. package/dist/Link/link.types.d.ts +86 -0
  266. package/dist/Link/link.types.js +1 -0
  267. package/dist/Link/link.variants.d.ts +113 -0
  268. package/dist/Link/link.variants.js +43 -0
  269. package/dist/Modal/Modal.svelte +218 -0
  270. package/dist/Modal/Modal.svelte.d.ts +5 -0
  271. package/dist/Modal/ModalTriggerTestWrapper.svelte +10 -0
  272. package/dist/Modal/ModalTriggerTestWrapper.svelte.d.ts +18 -0
  273. package/dist/Modal/index.d.ts +2 -0
  274. package/dist/Modal/index.js +1 -0
  275. package/dist/Modal/modal.types.d.ts +155 -0
  276. package/dist/Modal/modal.types.js +1 -0
  277. package/dist/Modal/modal.variants.d.ts +303 -0
  278. package/dist/Modal/modal.variants.js +90 -0
  279. package/dist/Pagination/Pagination.svelte +253 -0
  280. package/dist/Pagination/Pagination.svelte.d.ts +6 -0
  281. package/dist/Pagination/index.d.ts +2 -0
  282. package/dist/Pagination/index.js +1 -0
  283. package/dist/Pagination/pagination.types.d.ts +191 -0
  284. package/dist/Pagination/pagination.types.js +1 -0
  285. package/dist/Pagination/pagination.variants.d.ts +160 -0
  286. package/dist/Pagination/pagination.variants.js +125 -0
  287. package/dist/PinInput/PinInput.svelte +162 -0
  288. package/dist/PinInput/PinInput.svelte.d.ts +6 -0
  289. package/dist/PinInput/index.d.ts +2 -0
  290. package/dist/PinInput/index.js +1 -0
  291. package/dist/PinInput/pin-input.types.d.ts +110 -0
  292. package/dist/PinInput/pin-input.types.js +1 -0
  293. package/dist/PinInput/pin-input.variants.d.ts +303 -0
  294. package/dist/PinInput/pin-input.variants.js +196 -0
  295. package/dist/Popover/Popover.svelte +122 -0
  296. package/dist/Popover/Popover.svelte.d.ts +6 -0
  297. package/dist/Popover/index.d.ts +2 -0
  298. package/dist/Popover/index.js +1 -0
  299. package/dist/Popover/popover.types.d.ts +58 -0
  300. package/dist/Popover/popover.types.js +1 -0
  301. package/dist/Popover/popover.variants.d.ts +53 -0
  302. package/dist/Popover/popover.variants.js +31 -0
  303. package/dist/Progress/Progress.svelte +135 -0
  304. package/dist/Progress/Progress.svelte.d.ts +6 -0
  305. package/dist/Progress/index.d.ts +2 -0
  306. package/dist/Progress/index.js +1 -0
  307. package/dist/Progress/progress.types.d.ts +71 -0
  308. package/dist/Progress/progress.types.js +1 -0
  309. package/dist/Progress/progress.variants.d.ts +513 -0
  310. package/dist/Progress/progress.variants.js +204 -0
  311. package/dist/RadioGroup/RadioGroup.svelte +226 -0
  312. package/dist/RadioGroup/RadioGroup.svelte.d.ts +6 -0
  313. package/dist/RadioGroup/index.d.ts +2 -0
  314. package/dist/RadioGroup/index.js +1 -0
  315. package/dist/RadioGroup/radio-group.types.d.ts +111 -0
  316. package/dist/RadioGroup/radio-group.types.js +1 -0
  317. package/dist/RadioGroup/radio-group.variants.d.ts +543 -0
  318. package/dist/RadioGroup/radio-group.variants.js +232 -0
  319. package/dist/Select/Select.svelte +461 -0
  320. package/dist/Select/Select.svelte.d.ts +6 -0
  321. package/dist/Select/index.d.ts +2 -0
  322. package/dist/Select/index.js +1 -0
  323. package/dist/Select/select.types.d.ts +263 -0
  324. package/dist/Select/select.types.js +1 -0
  325. package/dist/Select/select.variants.d.ts +713 -0
  326. package/dist/Select/select.variants.js +482 -0
  327. package/dist/SelectMenu/SelectMenu.svelte +637 -0
  328. package/dist/SelectMenu/SelectMenu.svelte.d.ts +5 -0
  329. package/dist/SelectMenu/SelectMenuFormFieldTestWrapper.svelte +11 -0
  330. package/dist/SelectMenu/SelectMenuFormFieldTestWrapper.svelte.d.ts +7 -0
  331. package/dist/SelectMenu/index.d.ts +2 -0
  332. package/dist/SelectMenu/index.js +1 -0
  333. package/dist/SelectMenu/select-menu.types.d.ts +326 -0
  334. package/dist/SelectMenu/select-menu.types.js +1 -0
  335. package/dist/SelectMenu/select-menu.variants.d.ts +795 -0
  336. package/dist/SelectMenu/select-menu.variants.js +70 -0
  337. package/dist/Separator/Separator.svelte +77 -0
  338. package/dist/Separator/Separator.svelte.d.ts +6 -0
  339. package/dist/Separator/index.d.ts +2 -0
  340. package/dist/Separator/index.js +1 -0
  341. package/dist/Separator/separator.types.d.ts +53 -0
  342. package/dist/Separator/separator.types.js +1 -0
  343. package/dist/Separator/separator.variants.d.ts +509 -0
  344. package/dist/Separator/separator.variants.js +110 -0
  345. package/dist/Skeleton/Skeleton.svelte +39 -0
  346. package/dist/Skeleton/Skeleton.svelte.d.ts +5 -0
  347. package/dist/Skeleton/index.d.ts +2 -0
  348. package/dist/Skeleton/index.js +1 -0
  349. package/dist/Skeleton/skeleton.types.d.ts +27 -0
  350. package/dist/Skeleton/skeleton.types.js +1 -0
  351. package/dist/Skeleton/skeleton.variants.d.ts +18 -0
  352. package/dist/Skeleton/skeleton.variants.js +12 -0
  353. package/dist/Slideover/Slideover.svelte +212 -0
  354. package/dist/Slideover/Slideover.svelte.d.ts +5 -0
  355. package/dist/Slideover/SlideoverTriggerTestWrapper.svelte +10 -0
  356. package/dist/Slideover/SlideoverTriggerTestWrapper.svelte.d.ts +18 -0
  357. package/dist/Slideover/index.d.ts +2 -0
  358. package/dist/Slideover/index.js +1 -0
  359. package/dist/Slideover/slideover.types.d.ts +154 -0
  360. package/dist/Slideover/slideover.types.js +1 -0
  361. package/dist/Slideover/slideover.variants.d.ts +298 -0
  362. package/dist/Slideover/slideover.variants.js +145 -0
  363. package/dist/Slider/Slider.svelte +129 -0
  364. package/dist/Slider/Slider.svelte.d.ts +6 -0
  365. package/dist/Slider/index.d.ts +2 -0
  366. package/dist/Slider/index.js +1 -0
  367. package/dist/Slider/slider.types.d.ts +55 -0
  368. package/dist/Slider/slider.types.js +1 -0
  369. package/dist/Slider/slider.variants.d.ts +383 -0
  370. package/dist/Slider/slider.variants.js +102 -0
  371. package/dist/Stepper/Stepper.svelte +254 -0
  372. package/dist/Stepper/Stepper.svelte.d.ts +5 -0
  373. package/dist/Stepper/index.d.ts +2 -0
  374. package/dist/Stepper/index.js +1 -0
  375. package/dist/Stepper/stepper.types.d.ts +223 -0
  376. package/dist/Stepper/stepper.types.js +1 -0
  377. package/dist/Stepper/stepper.variants.d.ts +428 -0
  378. package/dist/Stepper/stepper.variants.js +204 -0
  379. package/dist/Switch/Switch.svelte +150 -0
  380. package/dist/Switch/Switch.svelte.d.ts +6 -0
  381. package/dist/Switch/index.d.ts +2 -0
  382. package/dist/Switch/index.js +1 -0
  383. package/dist/Switch/switch.types.d.ts +80 -0
  384. package/dist/Switch/switch.types.js +1 -0
  385. package/dist/Switch/switch.variants.d.ts +433 -0
  386. package/dist/Switch/switch.variants.js +171 -0
  387. package/dist/Table/Table.svelte +667 -0
  388. package/dist/Table/Table.svelte.d.ts +26 -0
  389. package/dist/Table/index.d.ts +2 -0
  390. package/dist/Table/index.js +1 -0
  391. package/dist/Table/table.types.d.ts +202 -0
  392. package/dist/Table/table.types.js +1 -0
  393. package/dist/Table/table.utils.d.ts +54 -0
  394. package/dist/Table/table.utils.js +167 -0
  395. package/dist/Table/table.variants.d.ts +205 -0
  396. package/dist/Table/table.variants.js +126 -0
  397. package/dist/Tabs/Tabs.svelte +188 -0
  398. package/dist/Tabs/Tabs.svelte.d.ts +6 -0
  399. package/dist/Tabs/index.d.ts +2 -0
  400. package/dist/Tabs/index.js +1 -0
  401. package/dist/Tabs/tabs.types.d.ts +207 -0
  402. package/dist/Tabs/tabs.types.js +1 -0
  403. package/dist/Tabs/tabs.variants.d.ts +298 -0
  404. package/dist/Tabs/tabs.variants.js +251 -0
  405. package/dist/Textarea/Textarea.svelte +215 -0
  406. package/dist/Textarea/Textarea.svelte.d.ts +5 -0
  407. package/dist/Textarea/index.d.ts +2 -0
  408. package/dist/Textarea/index.js +1 -0
  409. package/dist/Textarea/textarea.types.d.ts +103 -0
  410. package/dist/Textarea/textarea.types.js +1 -0
  411. package/dist/Textarea/textarea.variants.d.ts +403 -0
  412. package/dist/Textarea/textarea.variants.js +404 -0
  413. package/dist/ThemeModeButton/ThemeModeButton.svelte +74 -0
  414. package/dist/ThemeModeButton/ThemeModeButton.svelte.d.ts +5 -0
  415. package/dist/ThemeModeButton/index.d.ts +2 -0
  416. package/dist/ThemeModeButton/index.js +1 -0
  417. package/dist/ThemeModeButton/theme-mode-button.types.d.ts +69 -0
  418. package/dist/ThemeModeButton/theme-mode-button.types.js +1 -0
  419. package/dist/ThemeModeButton/theme-mode-button.variants.d.ts +21 -0
  420. package/dist/ThemeModeButton/theme-mode-button.variants.js +17 -0
  421. package/dist/Timeline/Timeline.svelte +116 -0
  422. package/dist/Timeline/Timeline.svelte.d.ts +5 -0
  423. package/dist/Timeline/index.d.ts +2 -0
  424. package/dist/Timeline/index.js +1 -0
  425. package/dist/Timeline/timeline.types.d.ts +138 -0
  426. package/dist/Timeline/timeline.types.js +1 -0
  427. package/dist/Timeline/timeline.variants.d.ts +413 -0
  428. package/dist/Timeline/timeline.variants.js +201 -0
  429. package/dist/Toast/Toaster.svelte +619 -0
  430. package/dist/Toast/Toaster.svelte.d.ts +5 -0
  431. package/dist/Toast/index.d.ts +4 -0
  432. package/dist/Toast/index.js +2 -0
  433. package/dist/Toast/toast.d.ts +38 -0
  434. package/dist/Toast/toast.js +73 -0
  435. package/dist/Toast/toast.types.d.ts +19 -0
  436. package/dist/Toast/toast.types.js +1 -0
  437. package/dist/Toast/toast.variants.d.ts +7 -0
  438. package/dist/Toast/toast.variants.js +5 -0
  439. package/dist/Tooltip/Tooltip.svelte +151 -0
  440. package/dist/Tooltip/Tooltip.svelte.d.ts +6 -0
  441. package/dist/Tooltip/TooltipTestWrapper.svelte +8 -0
  442. package/dist/Tooltip/TooltipTestWrapper.svelte.d.ts +4 -0
  443. package/dist/Tooltip/index.d.ts +2 -0
  444. package/dist/Tooltip/index.js +1 -0
  445. package/dist/Tooltip/tooltip.types.d.ts +62 -0
  446. package/dist/Tooltip/tooltip.types.js +1 -0
  447. package/dist/Tooltip/tooltip.variants.d.ts +68 -0
  448. package/dist/Tooltip/tooltip.variants.js +35 -0
  449. package/dist/User/User.svelte +98 -0
  450. package/dist/User/User.svelte.d.ts +5 -0
  451. package/dist/User/index.d.ts +2 -0
  452. package/dist/User/index.js +1 -0
  453. package/dist/User/user.types.d.ts +78 -0
  454. package/dist/User/user.types.js +1 -0
  455. package/dist/User/user.variants.d.ts +368 -0
  456. package/dist/User/user.variants.js +85 -0
  457. package/dist/config.d.ts +73 -0
  458. package/dist/config.js +108 -0
  459. package/dist/hooks/HookContextProbe.svelte +7 -0
  460. package/dist/hooks/HookContextProbe.svelte.d.ts +18 -0
  461. package/dist/hooks/HookContextProvider.svelte +9 -0
  462. package/dist/hooks/HookContextProvider.svelte.d.ts +18 -0
  463. package/dist/hooks/HookEmitProbe.svelte +14 -0
  464. package/dist/hooks/HookEmitProbe.svelte.d.ts +18 -0
  465. package/dist/hooks/index.d.ts +14 -0
  466. package/dist/hooks/index.js +7 -0
  467. package/dist/hooks/useClickOutside.svelte.d.ts +31 -0
  468. package/dist/hooks/useClickOutside.svelte.js +37 -0
  469. package/dist/hooks/useClipboard.svelte.d.ts +30 -0
  470. package/dist/hooks/useClipboard.svelte.js +45 -0
  471. package/dist/hooks/useDebounce.svelte.d.ts +36 -0
  472. package/dist/hooks/useDebounce.svelte.js +56 -0
  473. package/dist/hooks/useEscapeKeydown.svelte.d.ts +31 -0
  474. package/dist/hooks/useEscapeKeydown.svelte.js +37 -0
  475. package/dist/hooks/useFormField.svelte.d.ts +54 -0
  476. package/dist/hooks/useFormField.svelte.js +65 -0
  477. package/dist/hooks/useInfiniteScroll.svelte.d.ts +57 -0
  478. package/dist/hooks/useInfiniteScroll.svelte.js +69 -0
  479. package/dist/hooks/useMediaQuery.svelte.d.ts +31 -0
  480. package/dist/hooks/useMediaQuery.svelte.js +38 -0
  481. package/dist/index.d.ts +56 -0
  482. package/dist/index.js +57 -0
  483. package/dist/theme.css +680 -0
  484. package/package.json +237 -0
@@ -0,0 +1,203 @@
1
+ import type { Snippet } from 'svelte';
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import type { ClassNameValue } from 'tailwind-merge';
4
+ import type { FileUploadSlots, FileUploadVariantProps } from './file-upload.variants.js';
5
+ /**
6
+ * Reason a file was rejected by FileUpload.
7
+ *
8
+ * - `accept`: file did not match the `accept` MIME/extension filter
9
+ * - `maxSize`: file exceeded the `maxSize` byte limit
10
+ * - `maxFiles`: file would have pushed the selection past `maxFiles`
11
+ */
12
+ export type FileUploadRejectionReason = 'accept' | 'maxSize' | 'maxFiles';
13
+ /**
14
+ * A single rejected file along with the reason it was rejected.
15
+ */
16
+ export interface FileUploadRejection {
17
+ file: File;
18
+ reason: FileUploadRejectionReason;
19
+ }
20
+ export type FileUploadProps = Omit<HTMLAttributes<HTMLElement>, 'class' | 'children'> & {
21
+ /**
22
+ * Bindable reference to the root DOM element.
23
+ */
24
+ ref?: HTMLElement | null;
25
+ /**
26
+ * The list of selected files. Supports two-way binding with `bind:value`.
27
+ * @default []
28
+ */
29
+ value?: File[];
30
+ /**
31
+ * Callback when the selected files change.
32
+ */
33
+ onValueChange?: (value: File[]) => void;
34
+ /**
35
+ * Allow multiple files to be selected.
36
+ * @default false
37
+ */
38
+ multiple?: boolean;
39
+ /**
40
+ * Accepted file types as MIME types or extensions (e.g. "image/*,.pdf").
41
+ */
42
+ accept?: string;
43
+ /**
44
+ * Maximum allowed size per file, in bytes. Files exceeding this are
45
+ * rejected and reported through `onReject`.
46
+ *
47
+ * @example
48
+ * ```svelte
49
+ * <FileUpload maxSize={5 * 1024 * 1024} /> <!-- 5 MB -->
50
+ * ```
51
+ */
52
+ maxSize?: number;
53
+ /**
54
+ * Maximum number of files that can be selected. When the current
55
+ * selection plus the incoming files would exceed this, the excess
56
+ * files are rejected and reported through `onReject`. The root element
57
+ * exposes a `data-full` attribute when the limit is reached, so the
58
+ * upload area can be styled accordingly.
59
+ */
60
+ maxFiles?: number;
61
+ /**
62
+ * Called when one or more incoming files are rejected by `accept`,
63
+ * `maxSize`, or `maxFiles`. Receives the full rejection list for a
64
+ * single user action (one drop or one input change).
65
+ */
66
+ onReject?: (rejected: FileUploadRejection[]) => void;
67
+ /**
68
+ * Enable drag-and-drop file upload.
69
+ * @default true
70
+ */
71
+ dropzone?: boolean;
72
+ /**
73
+ * Whether clicking the area opens the file dialog.
74
+ * @default true
75
+ */
76
+ interactive?: boolean;
77
+ /**
78
+ * Label text displayed in the upload area.
79
+ * @default 'Drop files here or click to upload'
80
+ */
81
+ label?: string;
82
+ /**
83
+ * Description text displayed below the label.
84
+ */
85
+ description?: string;
86
+ /**
87
+ * Icon displayed in the upload area.
88
+ * @default 'lucide:upload'
89
+ */
90
+ icon?: string;
91
+ /**
92
+ * Color scheme of the upload area.
93
+ * @default 'primary'
94
+ */
95
+ color?: NonNullable<FileUploadVariantProps['color']>;
96
+ /**
97
+ * Size of the upload area and file items.
98
+ * @default 'md'
99
+ */
100
+ size?: NonNullable<FileUploadVariantProps['size']>;
101
+ /**
102
+ * Visual style of the upload trigger.
103
+ * @default 'area'
104
+ */
105
+ variant?: NonNullable<FileUploadVariantProps['variant']>;
106
+ /**
107
+ * Layout of the file list.
108
+ * @default 'list'
109
+ */
110
+ layout?: NonNullable<FileUploadVariantProps['layout']>;
111
+ /**
112
+ * Whether the upload area is disabled.
113
+ * @default false
114
+ */
115
+ disabled?: boolean;
116
+ /**
117
+ * Show a loading state on the upload area.
118
+ * @default false
119
+ */
120
+ loading?: boolean;
121
+ /**
122
+ * Icon displayed in the loading state.
123
+ * @default Uses `icons.loading` from app config
124
+ */
125
+ loadingIcon?: string;
126
+ /**
127
+ * Show the file list after selection.
128
+ * @default true
129
+ */
130
+ preview?: boolean;
131
+ /**
132
+ * Highlight the upload area border with the active color.
133
+ * @default false
134
+ */
135
+ highlight?: boolean;
136
+ /**
137
+ * The name attribute for the file input (used in form submission).
138
+ */
139
+ name?: string;
140
+ /**
141
+ * The HTML id attribute for the root element.
142
+ */
143
+ id?: string;
144
+ /**
145
+ * Mark the file input as required for form submission.
146
+ * @default false
147
+ */
148
+ required?: boolean;
149
+ /**
150
+ * Icon displayed for non-image files.
151
+ * @default 'lucide:file'
152
+ */
153
+ fileIcon?: string;
154
+ /**
155
+ * Show a preview button on image files in the list to open a lightbox.
156
+ * @default true
157
+ */
158
+ imagePreview?: boolean;
159
+ /**
160
+ * Custom snippet for the leading icon/avatar inside the upload area.
161
+ */
162
+ leadingSlot?: Snippet;
163
+ /**
164
+ * Custom snippet for the label text.
165
+ */
166
+ labelSlot?: Snippet;
167
+ /**
168
+ * Custom snippet for the description text.
169
+ */
170
+ descriptionSlot?: Snippet;
171
+ /**
172
+ * Custom snippet for action buttons. Receives `open()` to trigger the file dialog.
173
+ */
174
+ actionsSlot?: Snippet<[{
175
+ open: () => void;
176
+ }]>;
177
+ /**
178
+ * Custom snippet to replace the entire file list.
179
+ */
180
+ filesSlot?: Snippet<[{
181
+ files: File[];
182
+ }]>;
183
+ /**
184
+ * Custom snippet for each file item.
185
+ */
186
+ fileSlot?: Snippet<[{
187
+ file: File;
188
+ index: number;
189
+ remove: () => void;
190
+ }]>;
191
+ /**
192
+ * Default slot for additional content inside the upload area.
193
+ */
194
+ children?: Snippet;
195
+ /**
196
+ * Additional CSS classes for the root element.
197
+ */
198
+ class?: ClassNameValue;
199
+ /**
200
+ * Override styles for specific upload slots.
201
+ */
202
+ ui?: Partial<Record<FileUploadSlots, ClassNameValue>>;
203
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,397 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ export declare const fileUploadVariants: import("tailwind-variants").TVReturnType<{
3
+ color: {
4
+ primary: {
5
+ base: string;
6
+ };
7
+ secondary: {
8
+ base: string;
9
+ };
10
+ tertiary: {
11
+ base: string;
12
+ };
13
+ success: {
14
+ base: string;
15
+ };
16
+ warning: {
17
+ base: string;
18
+ };
19
+ error: {
20
+ base: string;
21
+ };
22
+ info: {
23
+ base: string;
24
+ };
25
+ surface: {
26
+ base: string;
27
+ };
28
+ };
29
+ variant: {
30
+ area: {
31
+ base: string;
32
+ wrapper: string;
33
+ };
34
+ button: {};
35
+ };
36
+ size: {
37
+ xs: {
38
+ base: string;
39
+ icon: string;
40
+ label: string;
41
+ description: string;
42
+ file: string;
43
+ fileWrapper: string;
44
+ };
45
+ sm: {
46
+ base: string;
47
+ icon: string;
48
+ label: string;
49
+ description: string;
50
+ file: string;
51
+ fileWrapper: string;
52
+ };
53
+ md: {
54
+ base: string;
55
+ icon: string;
56
+ label: string;
57
+ description: string;
58
+ file: string;
59
+ };
60
+ lg: {
61
+ base: string;
62
+ icon: string;
63
+ label: string;
64
+ description: string;
65
+ file: string;
66
+ fileSize: string;
67
+ };
68
+ xl: {
69
+ base: string;
70
+ icon: string;
71
+ label: string;
72
+ description: string;
73
+ file: string;
74
+ };
75
+ };
76
+ layout: {
77
+ list: {
78
+ root: string;
79
+ files: string;
80
+ file: string;
81
+ fileTrailing: string;
82
+ };
83
+ grid: {
84
+ root: string;
85
+ files: string;
86
+ file: string;
87
+ fileWrapper: string;
88
+ fileLeading: string;
89
+ fileTrailing: string;
90
+ };
91
+ };
92
+ dropzone: {
93
+ true: {
94
+ base: string;
95
+ };
96
+ };
97
+ interactive: {
98
+ true: {
99
+ base: string;
100
+ };
101
+ };
102
+ highlight: {
103
+ true: {};
104
+ };
105
+ multiple: {
106
+ true: {};
107
+ };
108
+ disabled: {
109
+ true: {
110
+ base: string;
111
+ };
112
+ };
113
+ }, {
114
+ root: string;
115
+ base: string[];
116
+ wrapper: string;
117
+ icon: string;
118
+ label: string;
119
+ description: string;
120
+ actions: string;
121
+ files: string;
122
+ file: string;
123
+ fileLeading: string;
124
+ fileWrapper: string;
125
+ fileName: string;
126
+ fileSize: string;
127
+ fileTrailing: string;
128
+ previewContent: string;
129
+ previewBody: string;
130
+ }, undefined, {
131
+ color: {
132
+ primary: {
133
+ base: string;
134
+ };
135
+ secondary: {
136
+ base: string;
137
+ };
138
+ tertiary: {
139
+ base: string;
140
+ };
141
+ success: {
142
+ base: string;
143
+ };
144
+ warning: {
145
+ base: string;
146
+ };
147
+ error: {
148
+ base: string;
149
+ };
150
+ info: {
151
+ base: string;
152
+ };
153
+ surface: {
154
+ base: string;
155
+ };
156
+ };
157
+ variant: {
158
+ area: {
159
+ base: string;
160
+ wrapper: string;
161
+ };
162
+ button: {};
163
+ };
164
+ size: {
165
+ xs: {
166
+ base: string;
167
+ icon: string;
168
+ label: string;
169
+ description: string;
170
+ file: string;
171
+ fileWrapper: string;
172
+ };
173
+ sm: {
174
+ base: string;
175
+ icon: string;
176
+ label: string;
177
+ description: string;
178
+ file: string;
179
+ fileWrapper: string;
180
+ };
181
+ md: {
182
+ base: string;
183
+ icon: string;
184
+ label: string;
185
+ description: string;
186
+ file: string;
187
+ };
188
+ lg: {
189
+ base: string;
190
+ icon: string;
191
+ label: string;
192
+ description: string;
193
+ file: string;
194
+ fileSize: string;
195
+ };
196
+ xl: {
197
+ base: string;
198
+ icon: string;
199
+ label: string;
200
+ description: string;
201
+ file: string;
202
+ };
203
+ };
204
+ layout: {
205
+ list: {
206
+ root: string;
207
+ files: string;
208
+ file: string;
209
+ fileTrailing: string;
210
+ };
211
+ grid: {
212
+ root: string;
213
+ files: string;
214
+ file: string;
215
+ fileWrapper: string;
216
+ fileLeading: string;
217
+ fileTrailing: string;
218
+ };
219
+ };
220
+ dropzone: {
221
+ true: {
222
+ base: string;
223
+ };
224
+ };
225
+ interactive: {
226
+ true: {
227
+ base: string;
228
+ };
229
+ };
230
+ highlight: {
231
+ true: {};
232
+ };
233
+ multiple: {
234
+ true: {};
235
+ };
236
+ disabled: {
237
+ true: {
238
+ base: string;
239
+ };
240
+ };
241
+ }, {
242
+ root: string;
243
+ base: string[];
244
+ wrapper: string;
245
+ icon: string;
246
+ label: string;
247
+ description: string;
248
+ actions: string;
249
+ files: string;
250
+ file: string;
251
+ fileLeading: string;
252
+ fileWrapper: string;
253
+ fileName: string;
254
+ fileSize: string;
255
+ fileTrailing: string;
256
+ previewContent: string;
257
+ previewBody: string;
258
+ }, import("tailwind-variants").TVReturnType<{
259
+ color: {
260
+ primary: {
261
+ base: string;
262
+ };
263
+ secondary: {
264
+ base: string;
265
+ };
266
+ tertiary: {
267
+ base: string;
268
+ };
269
+ success: {
270
+ base: string;
271
+ };
272
+ warning: {
273
+ base: string;
274
+ };
275
+ error: {
276
+ base: string;
277
+ };
278
+ info: {
279
+ base: string;
280
+ };
281
+ surface: {
282
+ base: string;
283
+ };
284
+ };
285
+ variant: {
286
+ area: {
287
+ base: string;
288
+ wrapper: string;
289
+ };
290
+ button: {};
291
+ };
292
+ size: {
293
+ xs: {
294
+ base: string;
295
+ icon: string;
296
+ label: string;
297
+ description: string;
298
+ file: string;
299
+ fileWrapper: string;
300
+ };
301
+ sm: {
302
+ base: string;
303
+ icon: string;
304
+ label: string;
305
+ description: string;
306
+ file: string;
307
+ fileWrapper: string;
308
+ };
309
+ md: {
310
+ base: string;
311
+ icon: string;
312
+ label: string;
313
+ description: string;
314
+ file: string;
315
+ };
316
+ lg: {
317
+ base: string;
318
+ icon: string;
319
+ label: string;
320
+ description: string;
321
+ file: string;
322
+ fileSize: string;
323
+ };
324
+ xl: {
325
+ base: string;
326
+ icon: string;
327
+ label: string;
328
+ description: string;
329
+ file: string;
330
+ };
331
+ };
332
+ layout: {
333
+ list: {
334
+ root: string;
335
+ files: string;
336
+ file: string;
337
+ fileTrailing: string;
338
+ };
339
+ grid: {
340
+ root: string;
341
+ files: string;
342
+ file: string;
343
+ fileWrapper: string;
344
+ fileLeading: string;
345
+ fileTrailing: string;
346
+ };
347
+ };
348
+ dropzone: {
349
+ true: {
350
+ base: string;
351
+ };
352
+ };
353
+ interactive: {
354
+ true: {
355
+ base: string;
356
+ };
357
+ };
358
+ highlight: {
359
+ true: {};
360
+ };
361
+ multiple: {
362
+ true: {};
363
+ };
364
+ disabled: {
365
+ true: {
366
+ base: string;
367
+ };
368
+ };
369
+ }, {
370
+ root: string;
371
+ base: string[];
372
+ wrapper: string;
373
+ icon: string;
374
+ label: string;
375
+ description: string;
376
+ actions: string;
377
+ files: string;
378
+ file: string;
379
+ fileLeading: string;
380
+ fileWrapper: string;
381
+ fileName: string;
382
+ fileSize: string;
383
+ fileTrailing: string;
384
+ previewContent: string;
385
+ previewBody: string;
386
+ }, undefined, unknown, unknown, undefined>>;
387
+ export type FileUploadVariantProps = VariantProps<typeof fileUploadVariants>;
388
+ export type FileUploadSlots = keyof ReturnType<typeof fileUploadVariants>;
389
+ export declare const fileUploadDefaults: {
390
+ defaultVariants: {
391
+ color: NonNullable<FileUploadVariantProps["color"]>;
392
+ variant: NonNullable<FileUploadVariantProps["variant"]>;
393
+ size: NonNullable<FileUploadVariantProps["size"]>;
394
+ layout: NonNullable<FileUploadVariantProps["layout"]>;
395
+ };
396
+ slots: Partial<Record<FileUploadSlots, string>>;
397
+ };