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,404 @@
1
+ import { tv } from 'tailwind-variants';
2
+ export const textareaVariants = tv({
3
+ slots: {
4
+ root: 'relative w-full inline-flex items-start',
5
+ base: [
6
+ 'w-full rounded-md border-0 bg-surface text-on-surface placeholder:text-on-surface-variant/50',
7
+ 'disabled:cursor-not-allowed disabled:opacity-75',
8
+ 'transition-colors',
9
+ 'focus:outline-none'
10
+ ],
11
+ leading: 'absolute start-0 flex items-start pointer-events-none',
12
+ leadingIcon: 'shrink-0 text-on-surface-variant/75',
13
+ trailing: 'absolute end-0 flex items-start pointer-events-none',
14
+ trailingIcon: 'shrink-0 text-on-surface-variant/75'
15
+ },
16
+ variants: {
17
+ variant: {
18
+ outline: '',
19
+ soft: '',
20
+ subtle: '',
21
+ ghost: '',
22
+ none: ''
23
+ },
24
+ color: {
25
+ primary: '',
26
+ secondary: '',
27
+ tertiary: '',
28
+ success: '',
29
+ warning: '',
30
+ error: '',
31
+ info: '',
32
+ surface: ''
33
+ },
34
+ size: {
35
+ xs: {
36
+ base: 'px-2 py-1 text-xs rounded',
37
+ leading: 'ps-2 inset-y-1',
38
+ leadingIcon: 'size-3.5',
39
+ trailing: 'pe-2 inset-y-1',
40
+ trailingIcon: 'size-3.5'
41
+ },
42
+ sm: {
43
+ base: 'px-2.5 py-1.5 text-xs rounded-md',
44
+ leading: 'ps-2.5 inset-y-1.5',
45
+ leadingIcon: 'size-4',
46
+ trailing: 'pe-2.5 inset-y-1.5',
47
+ trailingIcon: 'size-4'
48
+ },
49
+ md: {
50
+ base: 'px-3 py-2 text-sm rounded-md',
51
+ leading: 'ps-3 inset-y-1.5',
52
+ leadingIcon: 'size-5',
53
+ trailing: 'pe-3 inset-y-1.5',
54
+ trailingIcon: 'size-5'
55
+ },
56
+ lg: {
57
+ base: 'px-3 py-2.5 text-sm rounded-md',
58
+ leading: 'ps-3 inset-y-2',
59
+ leadingIcon: 'size-5',
60
+ trailing: 'pe-3 inset-y-2',
61
+ trailingIcon: 'size-5'
62
+ },
63
+ xl: {
64
+ base: 'px-3 py-3 text-base rounded-lg',
65
+ leading: 'ps-3 inset-y-2',
66
+ leadingIcon: 'size-6',
67
+ trailing: 'pe-3 inset-y-2',
68
+ trailingIcon: 'size-6'
69
+ }
70
+ },
71
+ leading: {
72
+ true: ''
73
+ },
74
+ trailing: {
75
+ true: ''
76
+ },
77
+ loading: {
78
+ true: ''
79
+ },
80
+ highlight: {
81
+ true: ''
82
+ },
83
+ autoresize: {
84
+ true: {
85
+ base: 'resize-none'
86
+ }
87
+ }
88
+ },
89
+ compoundVariants: [
90
+ // ========== OUTLINE VARIANTS ==========
91
+ {
92
+ variant: 'outline',
93
+ color: 'primary',
94
+ class: {
95
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-primary'
96
+ }
97
+ },
98
+ {
99
+ variant: 'outline',
100
+ color: 'secondary',
101
+ class: {
102
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-secondary'
103
+ }
104
+ },
105
+ {
106
+ variant: 'outline',
107
+ color: 'tertiary',
108
+ class: {
109
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-tertiary'
110
+ }
111
+ },
112
+ {
113
+ variant: 'outline',
114
+ color: 'success',
115
+ class: {
116
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-success'
117
+ }
118
+ },
119
+ {
120
+ variant: 'outline',
121
+ color: 'warning',
122
+ class: {
123
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-warning'
124
+ }
125
+ },
126
+ {
127
+ variant: 'outline',
128
+ color: 'error',
129
+ class: {
130
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-error'
131
+ }
132
+ },
133
+ {
134
+ variant: 'outline',
135
+ color: 'info',
136
+ class: {
137
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-info'
138
+ }
139
+ },
140
+ {
141
+ variant: 'outline',
142
+ color: 'surface',
143
+ class: {
144
+ base: 'ring ring-inset ring-outline-variant focus:ring-2 focus:ring-outline'
145
+ }
146
+ },
147
+ // ========== SOFT VARIANTS ==========
148
+ {
149
+ variant: 'soft',
150
+ color: 'primary',
151
+ class: {
152
+ base: 'bg-primary-container/50 focus:bg-primary-container/75 focus:ring-2 focus:ring-inset focus:ring-primary'
153
+ }
154
+ },
155
+ {
156
+ variant: 'soft',
157
+ color: 'secondary',
158
+ class: {
159
+ base: 'bg-secondary-container/50 focus:bg-secondary-container/75 focus:ring-2 focus:ring-inset focus:ring-secondary'
160
+ }
161
+ },
162
+ {
163
+ variant: 'soft',
164
+ color: 'tertiary',
165
+ class: {
166
+ base: 'bg-tertiary-container/50 focus:bg-tertiary-container/75 focus:ring-2 focus:ring-inset focus:ring-tertiary'
167
+ }
168
+ },
169
+ {
170
+ variant: 'soft',
171
+ color: 'success',
172
+ class: {
173
+ base: 'bg-success-container/50 focus:bg-success-container/75 focus:ring-2 focus:ring-inset focus:ring-success'
174
+ }
175
+ },
176
+ {
177
+ variant: 'soft',
178
+ color: 'warning',
179
+ class: {
180
+ base: 'bg-warning-container/50 focus:bg-warning-container/75 focus:ring-2 focus:ring-inset focus:ring-warning'
181
+ }
182
+ },
183
+ {
184
+ variant: 'soft',
185
+ color: 'error',
186
+ class: {
187
+ base: 'bg-error-container/50 focus:bg-error-container/75 focus:ring-2 focus:ring-inset focus:ring-error'
188
+ }
189
+ },
190
+ {
191
+ variant: 'soft',
192
+ color: 'info',
193
+ class: {
194
+ base: 'bg-info-container/50 focus:bg-info-container/75 focus:ring-2 focus:ring-inset focus:ring-info'
195
+ }
196
+ },
197
+ {
198
+ variant: 'soft',
199
+ color: 'surface',
200
+ class: {
201
+ base: 'bg-surface-container-highest/50 focus:bg-surface-container-highest/75 focus:ring-2 focus:ring-inset focus:ring-outline'
202
+ }
203
+ },
204
+ // ========== SUBTLE VARIANTS ==========
205
+ {
206
+ variant: 'subtle',
207
+ color: 'primary',
208
+ class: {
209
+ base: 'ring ring-inset ring-primary/25 bg-primary-container/50 focus:ring-2 focus:ring-primary'
210
+ }
211
+ },
212
+ {
213
+ variant: 'subtle',
214
+ color: 'secondary',
215
+ class: {
216
+ base: 'ring ring-inset ring-secondary/25 bg-secondary-container/50 focus:ring-2 focus:ring-secondary'
217
+ }
218
+ },
219
+ {
220
+ variant: 'subtle',
221
+ color: 'tertiary',
222
+ class: {
223
+ base: 'ring ring-inset ring-tertiary/25 bg-tertiary-container/50 focus:ring-2 focus:ring-tertiary'
224
+ }
225
+ },
226
+ {
227
+ variant: 'subtle',
228
+ color: 'success',
229
+ class: {
230
+ base: 'ring ring-inset ring-success/25 bg-success-container/50 focus:ring-2 focus:ring-success'
231
+ }
232
+ },
233
+ {
234
+ variant: 'subtle',
235
+ color: 'warning',
236
+ class: {
237
+ base: 'ring ring-inset ring-warning/25 bg-warning-container/50 focus:ring-2 focus:ring-warning'
238
+ }
239
+ },
240
+ {
241
+ variant: 'subtle',
242
+ color: 'error',
243
+ class: {
244
+ base: 'ring ring-inset ring-error/25 bg-error-container/50 focus:ring-2 focus:ring-error'
245
+ }
246
+ },
247
+ {
248
+ variant: 'subtle',
249
+ color: 'info',
250
+ class: {
251
+ base: 'ring ring-inset ring-info/25 bg-info-container/50 focus:ring-2 focus:ring-info'
252
+ }
253
+ },
254
+ {
255
+ variant: 'subtle',
256
+ color: 'surface',
257
+ class: {
258
+ base: 'ring ring-inset ring-outline-variant bg-surface-container-highest/50 focus:ring-2 focus:ring-outline'
259
+ }
260
+ },
261
+ // ========== GHOST VARIANTS ==========
262
+ {
263
+ variant: 'ghost',
264
+ color: 'primary',
265
+ class: {
266
+ base: 'bg-transparent hover:bg-primary-container/50 focus:ring-2 focus:ring-inset focus:ring-primary'
267
+ }
268
+ },
269
+ {
270
+ variant: 'ghost',
271
+ color: 'secondary',
272
+ class: {
273
+ base: 'bg-transparent hover:bg-secondary-container/50 focus:ring-2 focus:ring-inset focus:ring-secondary'
274
+ }
275
+ },
276
+ {
277
+ variant: 'ghost',
278
+ color: 'tertiary',
279
+ class: {
280
+ base: 'bg-transparent hover:bg-tertiary-container/50 focus:ring-2 focus:ring-inset focus:ring-tertiary'
281
+ }
282
+ },
283
+ {
284
+ variant: 'ghost',
285
+ color: 'success',
286
+ class: {
287
+ base: 'bg-transparent hover:bg-success-container/50 focus:ring-2 focus:ring-inset focus:ring-success'
288
+ }
289
+ },
290
+ {
291
+ variant: 'ghost',
292
+ color: 'warning',
293
+ class: {
294
+ base: 'bg-transparent hover:bg-warning-container/50 focus:ring-2 focus:ring-inset focus:ring-warning'
295
+ }
296
+ },
297
+ {
298
+ variant: 'ghost',
299
+ color: 'error',
300
+ class: {
301
+ base: 'bg-transparent hover:bg-error-container/50 focus:ring-2 focus:ring-inset focus:ring-error'
302
+ }
303
+ },
304
+ {
305
+ variant: 'ghost',
306
+ color: 'info',
307
+ class: {
308
+ base: 'bg-transparent hover:bg-info-container/50 focus:ring-2 focus:ring-inset focus:ring-info'
309
+ }
310
+ },
311
+ {
312
+ variant: 'ghost',
313
+ color: 'surface',
314
+ class: {
315
+ base: 'bg-transparent hover:bg-surface-container-highest/50 focus:ring-2 focus:ring-inset focus:ring-outline'
316
+ }
317
+ },
318
+ // ========== NONE VARIANT ==========
319
+ {
320
+ variant: 'none',
321
+ class: {
322
+ base: 'bg-transparent focus:ring-0'
323
+ }
324
+ },
325
+ // ========== HIGHLIGHT VARIANTS ==========
326
+ {
327
+ highlight: true,
328
+ color: 'primary',
329
+ class: { base: 'ring-2 ring-inset ring-primary' }
330
+ },
331
+ {
332
+ highlight: true,
333
+ color: 'secondary',
334
+ class: { base: 'ring-2 ring-inset ring-secondary' }
335
+ },
336
+ {
337
+ highlight: true,
338
+ color: 'tertiary',
339
+ class: { base: 'ring-2 ring-inset ring-tertiary' }
340
+ },
341
+ {
342
+ highlight: true,
343
+ color: 'success',
344
+ class: { base: 'ring-2 ring-inset ring-success' }
345
+ },
346
+ {
347
+ highlight: true,
348
+ color: 'warning',
349
+ class: { base: 'ring-2 ring-inset ring-warning' }
350
+ },
351
+ {
352
+ highlight: true,
353
+ color: 'error',
354
+ class: { base: 'ring-2 ring-inset ring-error' }
355
+ },
356
+ {
357
+ highlight: true,
358
+ color: 'info',
359
+ class: { base: 'ring-2 ring-inset ring-info' }
360
+ },
361
+ {
362
+ highlight: true,
363
+ color: 'surface',
364
+ class: { base: 'ring-2 ring-inset ring-outline' }
365
+ },
366
+ // ========== LEADING PADDING ADJUSTMENTS ==========
367
+ { leading: true, size: 'xs', class: { base: 'ps-7' } },
368
+ { leading: true, size: 'sm', class: { base: 'ps-8' } },
369
+ { leading: true, size: 'md', class: { base: 'ps-9' } },
370
+ { leading: true, size: 'lg', class: { base: 'ps-10' } },
371
+ { leading: true, size: 'xl', class: { base: 'ps-12' } },
372
+ // ========== TRAILING PADDING ADJUSTMENTS ==========
373
+ { trailing: true, size: 'xs', class: { base: 'pe-7' } },
374
+ { trailing: true, size: 'sm', class: { base: 'pe-8' } },
375
+ { trailing: true, size: 'md', class: { base: 'pe-9' } },
376
+ { trailing: true, size: 'lg', class: { base: 'pe-10' } },
377
+ { trailing: true, size: 'xl', class: { base: 'pe-12' } },
378
+ // ========== LOADING ICON ANIMATION ==========
379
+ {
380
+ loading: true,
381
+ leading: true,
382
+ class: {
383
+ leadingIcon: 'animate-spin'
384
+ }
385
+ },
386
+ {
387
+ loading: true,
388
+ leading: false,
389
+ trailing: true,
390
+ class: {
391
+ trailingIcon: 'animate-spin'
392
+ }
393
+ }
394
+ ],
395
+ defaultVariants: {
396
+ variant: 'outline',
397
+ color: 'primary',
398
+ size: 'md'
399
+ }
400
+ });
401
+ export const textareaDefaults = {
402
+ defaultVariants: textareaVariants.defaultVariants,
403
+ slots: {}
404
+ };
@@ -0,0 +1,74 @@
1
+ <script lang="ts" module>
2
+ import type { ThemeModeButtonProps } from './theme-mode-button.types.js'
3
+
4
+ export type Props = ThemeModeButtonProps
5
+ </script>
6
+
7
+ <script lang="ts">
8
+ import { mode, toggleMode } from 'mode-watcher'
9
+ import Button from '../Button/Button.svelte'
10
+ import { getComponentConfig, iconsDefaults } from '../config.js'
11
+ import {
12
+ themeModeButtonDefaults,
13
+ themeModeButtonVariants
14
+ } from './theme-mode-button.variants.js'
15
+
16
+ const config = getComponentConfig('themeModeButton', themeModeButtonDefaults)
17
+ const icons = getComponentConfig('icons', iconsDefaults)
18
+
19
+ let {
20
+ ui,
21
+ color = config.defaultVariants.color ?? 'surface',
22
+ variant = config.defaultVariants.variant ?? 'ghost',
23
+ size,
24
+ lightIcon = icons.light,
25
+ darkIcon = icons.dark,
26
+ loading = false,
27
+ disabled = false,
28
+ square = true,
29
+ block = false,
30
+ children,
31
+ class: className,
32
+ ...restProps
33
+ }: Props = $props()
34
+
35
+ const isDark = $derived(mode.current === 'dark')
36
+
37
+ const slots = themeModeButtonVariants()
38
+ const baseClass = $derived(slots.base({ class: [config.slots.base, className, ui?.base] }))
39
+
40
+ const iconName = $derived(isDark ? lightIcon : darkIcon)
41
+ </script>
42
+
43
+ {#if children}
44
+ <Button
45
+ {color}
46
+ {variant}
47
+ {size}
48
+ {loading}
49
+ {disabled}
50
+ {square}
51
+ {block}
52
+ class={baseClass}
53
+ aria-label={isDark ? 'Switch to light mode' : 'Switch to dark mode'}
54
+ onclick={toggleMode}
55
+ {...restProps}
56
+ >
57
+ {@render children({ isDark })}
58
+ </Button>
59
+ {:else}
60
+ <Button
61
+ {color}
62
+ {variant}
63
+ {size}
64
+ {loading}
65
+ {disabled}
66
+ {square}
67
+ {block}
68
+ icon={iconName}
69
+ class={baseClass}
70
+ aria-label={isDark ? 'Switch to light mode' : 'Switch to dark mode'}
71
+ onclick={toggleMode}
72
+ {...restProps}
73
+ />
74
+ {/if}
@@ -0,0 +1,5 @@
1
+ import type { ThemeModeButtonProps } from './theme-mode-button.types.js';
2
+ export type Props = ThemeModeButtonProps;
3
+ declare const ThemeModeButton: import("svelte").Component<ThemeModeButtonProps, {}, "">;
4
+ type ThemeModeButton = ReturnType<typeof ThemeModeButton>;
5
+ export default ThemeModeButton;
@@ -0,0 +1,2 @@
1
+ export { default as ThemeModeButton } from './ThemeModeButton.svelte';
2
+ export type { ThemeModeButtonProps } from './theme-mode-button.types.js';
@@ -0,0 +1 @@
1
+ export { default as ThemeModeButton } from './ThemeModeButton.svelte';
@@ -0,0 +1,69 @@
1
+ import type { Snippet } from 'svelte';
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import type { ClassNameValue } from 'tailwind-merge';
4
+ import type { ButtonVariantProps } from '../Button/button.variants.js';
5
+ import type { ThemeModeButtonSlots } from './theme-mode-button.variants.js';
6
+ export type ThemeModeButtonProps = Omit<HTMLAttributes<HTMLElement>, 'class' | 'children'> & {
7
+ /**
8
+ * Controls the visual style of the button.
9
+ * @default 'ghost'
10
+ */
11
+ variant?: NonNullable<ButtonVariantProps['variant']>;
12
+ /**
13
+ * Sets the color scheme applied to the button.
14
+ * @default 'surface'
15
+ */
16
+ color?: NonNullable<ButtonVariantProps['color']>;
17
+ /**
18
+ * Controls the dimensions and text size of the button.
19
+ * @default 'md'
20
+ */
21
+ size?: NonNullable<ButtonVariantProps['size']>;
22
+ /**
23
+ * Icon displayed when light mode is active.
24
+ * Supports any valid Iconify icon name.
25
+ * @default 'lucide:sun'
26
+ */
27
+ lightIcon?: string;
28
+ /**
29
+ * Icon displayed when dark mode is active.
30
+ * Supports any valid Iconify icon name.
31
+ * @default 'lucide:moon'
32
+ */
33
+ darkIcon?: string;
34
+ /**
35
+ * Renders a loading spinner and disables interaction.
36
+ * @default false
37
+ */
38
+ loading?: boolean;
39
+ /**
40
+ * Disables the button and prevents interaction.
41
+ * @default false
42
+ */
43
+ disabled?: boolean;
44
+ /**
45
+ * Forces equal width and height, ideal for icon-only buttons.
46
+ * @default true
47
+ */
48
+ square?: boolean;
49
+ /**
50
+ * Stretches the button to fill the full width of its container.
51
+ * @default false
52
+ */
53
+ block?: boolean;
54
+ /**
55
+ * Custom content rendered inside the button.
56
+ * When provided, replaces the default icon rendering.
57
+ */
58
+ children?: Snippet<[{
59
+ isDark: boolean;
60
+ }]>;
61
+ /**
62
+ * Additional CSS classes for the root element.
63
+ */
64
+ class?: ClassNameValue;
65
+ /**
66
+ * Override styles for specific slots.
67
+ */
68
+ ui?: Partial<Record<ThemeModeButtonSlots, ClassNameValue>>;
69
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ import { type VariantProps } from 'tailwind-variants';
2
+ import type { ButtonVariantProps } from '../Button/button.variants.js';
3
+ export declare const themeModeButtonVariants: import("tailwind-variants").TVReturnType<{}, {
4
+ base: string;
5
+ icon: string;
6
+ }, undefined, {}, {
7
+ base: string;
8
+ icon: string;
9
+ }, import("tailwind-variants").TVReturnType<{}, {
10
+ base: string;
11
+ icon: string;
12
+ }, undefined, unknown, unknown, undefined>>;
13
+ export type ThemeModeButtonVariantProps = VariantProps<typeof themeModeButtonVariants>;
14
+ export type ThemeModeButtonSlots = keyof ReturnType<typeof themeModeButtonVariants>;
15
+ export declare const themeModeButtonDefaults: {
16
+ defaultVariants: {
17
+ color: NonNullable<ButtonVariantProps["color"]>;
18
+ variant: NonNullable<ButtonVariantProps["variant"]>;
19
+ };
20
+ slots: Partial<Record<ThemeModeButtonSlots, string>>;
21
+ };
@@ -0,0 +1,17 @@
1
+ import { tv } from 'tailwind-variants';
2
+ export const themeModeButtonVariants = tv({
3
+ slots: {
4
+ base: '',
5
+ icon: 'shrink-0'
6
+ },
7
+ variants: {},
8
+ defaultVariants: {}
9
+ });
10
+ export const themeModeButtonDefaults = {
11
+ defaultVariants: {
12
+ ...themeModeButtonVariants.defaultVariants,
13
+ color: 'surface',
14
+ variant: 'ghost'
15
+ },
16
+ slots: {}
17
+ };