@casinogate/ui 1.3.1 → 1.3.2

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 (266) hide show
  1. package/dist/components/app-shell/components/app-shell.content.svelte +7 -10
  2. package/dist/components/app-shell/components/app-shell.content.svelte.d.ts +1 -4
  3. package/dist/components/app-shell/components/app-shell.header.svelte +5 -10
  4. package/dist/components/app-shell/components/app-shell.header.svelte.d.ts +1 -4
  5. package/dist/components/app-shell/components/app-shell.nav-bar.svelte +5 -10
  6. package/dist/components/app-shell/components/app-shell.nav-bar.svelte.d.ts +1 -4
  7. package/dist/components/app-shell/components/app-shell.root.svelte +6 -21
  8. package/dist/components/app-shell/components/app-shell.root.svelte.d.ts +2 -11
  9. package/dist/components/app-shell/components/app-shell.sidebar-footer.svelte +5 -10
  10. package/dist/components/app-shell/components/app-shell.sidebar-footer.svelte.d.ts +1 -4
  11. package/dist/components/app-shell/components/app-shell.sidebar-head.svelte +5 -10
  12. package/dist/components/app-shell/components/app-shell.sidebar-head.svelte.d.ts +1 -4
  13. package/dist/components/app-shell/components/app-shell.sidebar-toggle.svelte +7 -12
  14. package/dist/components/app-shell/components/app-shell.sidebar-toggle.svelte.d.ts +1 -4
  15. package/dist/components/app-shell/components/app-shell.sidebar.svelte +5 -10
  16. package/dist/components/app-shell/components/app-shell.sidebar.svelte.d.ts +1 -4
  17. package/dist/components/app-shell/components/app-shell.viewport.svelte +5 -10
  18. package/dist/components/app-shell/components/app-shell.viewport.svelte.d.ts +1 -4
  19. package/dist/components/app-shell/exports-primitive.d.ts +9 -0
  20. package/dist/components/app-shell/exports-primitive.js +9 -0
  21. package/dist/components/app-shell/index.d.ts +2 -20
  22. package/dist/components/app-shell/index.js +1 -20
  23. package/dist/components/app-shell/types.d.ts +26 -0
  24. package/dist/components/button/button.component.svelte +12 -135
  25. package/dist/components/button/button.component.svelte.d.ts +2 -236
  26. package/dist/components/button/exports.d.ts +1 -0
  27. package/dist/components/button/exports.js +1 -0
  28. package/dist/components/button/index.d.ts +2 -233
  29. package/dist/components/button/index.js +1 -4
  30. package/dist/components/button/styles.d.ts +231 -0
  31. package/dist/components/button/styles.js +105 -0
  32. package/dist/components/button/types.d.ts +7 -0
  33. package/dist/components/button/types.js +1 -0
  34. package/dist/components/button-group/button-group.stories.svelte +10 -10
  35. package/dist/components/button-group/button-group.stories.svelte.d.ts +0 -1
  36. package/dist/components/button-group/components/button-group.root.svelte +4 -11
  37. package/dist/components/button-group/components/button-group.root.svelte.d.ts +1 -5
  38. package/dist/components/button-group/components/button-group.separator.svelte +2 -2
  39. package/dist/components/button-group/components/button-group.separator.svelte.d.ts +1 -11
  40. package/dist/components/button-group/exports-primitive.d.ts +2 -0
  41. package/dist/components/button-group/exports-primitive.js +2 -0
  42. package/dist/components/button-group/index.d.ts +2 -16
  43. package/dist/components/button-group/index.js +1 -6
  44. package/dist/components/button-group/types.d.ts +8 -0
  45. package/dist/components/button-group/types.js +1 -0
  46. package/dist/components/checkbox/components/checkbox.root.svelte +8 -9
  47. package/dist/components/checkbox/components/checkbox.root.svelte.d.ts +3 -4
  48. package/dist/components/checkbox/exports-primitive.d.ts +2 -0
  49. package/dist/components/checkbox/exports-primitive.js +2 -0
  50. package/dist/components/checkbox/index.d.ts +3 -0
  51. package/dist/components/checkbox/index.js +2 -6
  52. package/dist/components/checkbox/model/{checkbox-model.svelte.d.ts → checkbox-controller.svelte.d.ts} +3 -4
  53. package/dist/components/checkbox/model/{checkbox-model.svelte.js → checkbox-controller.svelte.js} +1 -4
  54. package/dist/components/checkbox/model/index.d.ts +1 -1
  55. package/dist/components/checkbox/model/index.js +1 -1
  56. package/dist/components/checkbox/types.d.ts +3 -0
  57. package/dist/components/checkbox/types.js +2 -0
  58. package/dist/components/collapsible/components/collapsaible.content.svelte +5 -9
  59. package/dist/components/collapsible/components/collapsaible.content.svelte.d.ts +1 -2
  60. package/dist/components/collapsible/components/collapsaible.root.svelte +6 -14
  61. package/dist/components/collapsible/components/collapsaible.root.svelte.d.ts +1 -3
  62. package/dist/components/collapsible/components/collapsaible.trigger.svelte +7 -14
  63. package/dist/components/collapsible/components/collapsaible.trigger.svelte.d.ts +1 -5
  64. package/dist/components/collapsible/exports-primitive.d.ts +3 -0
  65. package/dist/components/collapsible/exports-primitive.js +3 -0
  66. package/dist/components/collapsible/index.d.ts +2 -9
  67. package/dist/components/collapsible/index.js +1 -8
  68. package/dist/components/collapsible/styles.d.ts +8 -8
  69. package/dist/components/collapsible/types.d.ts +8 -0
  70. package/dist/components/collapsible/types.js +1 -1
  71. package/dist/components/data-table/components/data-table.body.svelte +2 -10
  72. package/dist/components/data-table/components/data-table.body.svelte.d.ts +1 -5
  73. package/dist/components/data-table/components/data-table.cell.svelte +2 -14
  74. package/dist/components/data-table/components/data-table.cell.svelte.d.ts +1 -7
  75. package/dist/components/data-table/components/data-table.head.svelte +2 -14
  76. package/dist/components/data-table/components/data-table.head.svelte.d.ts +1 -7
  77. package/dist/components/data-table/components/data-table.header.svelte +2 -9
  78. package/dist/components/data-table/components/data-table.header.svelte.d.ts +1 -4
  79. package/dist/components/data-table/components/data-table.resize-handler.svelte +2 -9
  80. package/dist/components/data-table/components/data-table.resize-handler.svelte.d.ts +1 -4
  81. package/dist/components/data-table/components/data-table.root.svelte +4 -15
  82. package/dist/components/data-table/components/data-table.root.svelte.d.ts +6 -13
  83. package/dist/components/data-table/components/data-table.row.svelte +2 -9
  84. package/dist/components/data-table/components/data-table.row.svelte.d.ts +1 -4
  85. package/dist/components/data-table/components/data-table.sort-button.svelte +4 -11
  86. package/dist/components/data-table/components/data-table.sort-button.svelte.d.ts +1 -4
  87. package/dist/components/data-table/components/data-table.svelte.d.ts +2 -2
  88. package/dist/components/data-table/components/data-table.table.svelte +2 -9
  89. package/dist/components/data-table/components/data-table.table.svelte.d.ts +1 -4
  90. package/dist/components/data-table/data-table.svelte +3 -16
  91. package/dist/components/data-table/data-table.svelte.d.ts +2 -9
  92. package/dist/components/data-table/exports-primitive.d.ts +10 -0
  93. package/dist/components/data-table/exports-primitive.js +10 -0
  94. package/dist/components/data-table/exports.d.ts +1 -0
  95. package/dist/components/data-table/exports.js +1 -28
  96. package/dist/components/data-table/index.d.ts +4 -0
  97. package/dist/components/data-table/index.js +3 -0
  98. package/dist/components/data-table/types.d.ts +37 -1
  99. package/dist/components/data-table/types.js +1 -1
  100. package/dist/components/field/components/field.control.svelte +3 -1
  101. package/dist/components/field/components/field.description.svelte +5 -10
  102. package/dist/components/field/components/field.description.svelte.d.ts +1 -4
  103. package/dist/components/field/components/field.error.svelte +5 -10
  104. package/dist/components/field/components/field.error.svelte.d.ts +1 -4
  105. package/dist/components/field/components/field.label.svelte +5 -10
  106. package/dist/components/field/components/field.label.svelte.d.ts +1 -4
  107. package/dist/components/field/components/field.root.svelte +5 -19
  108. package/dist/components/field/components/field.root.svelte.d.ts +1 -9
  109. package/dist/components/field/exports-primitive.d.ts +5 -0
  110. package/dist/components/field/exports-primitive.js +5 -0
  111. package/dist/components/field/exports.d.ts +1 -0
  112. package/dist/components/field/exports.js +1 -0
  113. package/dist/components/field/field.svelte.d.ts +1 -1
  114. package/dist/components/field/index.d.ts +3 -14
  115. package/dist/components/field/index.js +2 -14
  116. package/dist/components/field/styles.d.ts +3 -3
  117. package/dist/components/field/types.d.ts +23 -0
  118. package/dist/components/field/types.js +1 -0
  119. package/dist/components/icons/exports.d.ts +22 -0
  120. package/dist/components/icons/exports.js +22 -0
  121. package/dist/components/icons/index.d.ts +1 -22
  122. package/dist/components/icons/index.js +1 -22
  123. package/dist/components/index.d.ts +19 -0
  124. package/dist/components/index.js +19 -0
  125. package/dist/components/input/exports.d.ts +2 -0
  126. package/dist/components/input/exports.js +2 -0
  127. package/dist/components/input/index.d.ts +2 -6
  128. package/dist/components/input/index.js +1 -5
  129. package/dist/components/input/input.password.svelte +6 -15
  130. package/dist/components/input/input.password.svelte.d.ts +2 -4
  131. package/dist/components/input/input.svelte +5 -16
  132. package/dist/components/input/input.svelte.d.ts +1 -9
  133. package/dist/components/input/types.d.ts +13 -0
  134. package/dist/components/input/types.js +1 -0
  135. package/dist/components/navigation/components/navigation.content.svelte +6 -11
  136. package/dist/components/navigation/components/navigation.content.svelte.d.ts +1 -4
  137. package/dist/components/navigation/components/navigation.item.svelte +5 -10
  138. package/dist/components/navigation/components/navigation.item.svelte.d.ts +1 -4
  139. package/dist/components/navigation/components/navigation.root.svelte +6 -11
  140. package/dist/components/navigation/components/navigation.root.svelte.d.ts +1 -7
  141. package/dist/components/navigation/components/navigation.sub-content.svelte +6 -11
  142. package/dist/components/navigation/components/navigation.sub-content.svelte.d.ts +1 -6
  143. package/dist/components/navigation/components/navigation.trigger.svelte +4 -21
  144. package/dist/components/navigation/components/navigation.trigger.svelte.d.ts +1 -9
  145. package/dist/components/navigation/exports-primitive.d.ts +5 -0
  146. package/dist/components/navigation/exports-primitive.js +5 -0
  147. package/dist/components/navigation/exports.d.ts +1 -0
  148. package/dist/components/navigation/exports.js +1 -0
  149. package/dist/components/navigation/index.d.ts +3 -12
  150. package/dist/components/navigation/index.js +2 -12
  151. package/dist/components/navigation/types.d.ts +23 -0
  152. package/dist/components/navigation/types.js +1 -0
  153. package/dist/components/pagination/components/pagination.ellipsis.svelte +3 -9
  154. package/dist/components/pagination/components/pagination.ellipsis.svelte.d.ts +1 -4
  155. package/dist/components/pagination/components/pagination.item.svelte +2 -5
  156. package/dist/components/pagination/components/pagination.item.svelte.d.ts +1 -2
  157. package/dist/components/pagination/components/pagination.next-button.svelte +4 -10
  158. package/dist/components/pagination/components/pagination.next-button.svelte.d.ts +1 -2
  159. package/dist/components/pagination/components/pagination.prev-button.svelte +4 -11
  160. package/dist/components/pagination/components/pagination.prev-button.svelte.d.ts +1 -2
  161. package/dist/components/pagination/components/pagination.root.svelte +3 -10
  162. package/dist/components/pagination/components/pagination.root.svelte.d.ts +1 -3
  163. package/dist/components/pagination/exports-primitive.d.ts +5 -0
  164. package/dist/components/pagination/exports-primitive.js +5 -0
  165. package/dist/components/pagination/exports.d.ts +1 -0
  166. package/dist/components/pagination/exports.js +1 -0
  167. package/dist/components/pagination/index.d.ts +3 -16
  168. package/dist/components/pagination/index.js +2 -16
  169. package/dist/components/pagination/pagination.stories.svelte +1 -1
  170. package/dist/components/pagination/pagination.svelte +28 -0
  171. package/dist/components/pagination/pagination.svelte.d.ts +3 -0
  172. package/dist/components/pagination/types.d.ts +10 -0
  173. package/dist/components/pagination/types.js +1 -0
  174. package/dist/components/popover/exports-primitive.d.ts +4 -0
  175. package/dist/components/popover/exports-primitive.js +5 -0
  176. package/dist/components/popover/exports.d.ts +1 -0
  177. package/dist/components/popover/exports.js +1 -15
  178. package/dist/components/popover/index.d.ts +2 -0
  179. package/dist/components/popover/index.js +1 -0
  180. package/dist/components/popover/popover.svelte +1 -2
  181. package/dist/components/popover/popover.svelte.d.ts +1 -2
  182. package/dist/components/popover/types.d.ts +1 -1
  183. package/dist/components/segment/components/segment.item.svelte +12 -14
  184. package/dist/components/segment/components/segment.item.svelte.d.ts +1 -6
  185. package/dist/components/segment/components/segment.root.svelte +6 -22
  186. package/dist/components/segment/components/segment.root.svelte.d.ts +1 -10
  187. package/dist/components/segment/exports-primitive.d.ts +2 -0
  188. package/dist/components/segment/exports-primitive.js +2 -0
  189. package/dist/components/segment/index.d.ts +2 -7
  190. package/dist/components/segment/index.js +1 -6
  191. package/dist/components/segment/types.d.ts +14 -0
  192. package/dist/components/segment/types.js +1 -0
  193. package/dist/components/select/components/select.root.svelte +3 -6
  194. package/dist/components/select/components/select.root.svelte.d.ts +1 -3
  195. package/dist/components/select/components/select.trigger.svelte +2 -11
  196. package/dist/components/select/components/select.trigger.svelte.d.ts +1 -7
  197. package/dist/components/select/exports-primitive.d.ts +2 -0
  198. package/dist/components/select/exports-primitive.js +2 -0
  199. package/dist/components/select/index.d.ts +2 -7
  200. package/dist/components/select/index.js +1 -6
  201. package/dist/components/select/select.stories.svelte +3 -3
  202. package/dist/components/select/types.d.ts +9 -0
  203. package/dist/components/select/types.js +2 -0
  204. package/dist/components/separator/exports.d.ts +1 -0
  205. package/dist/components/separator/exports.js +1 -0
  206. package/dist/components/separator/index.d.ts +2 -5
  207. package/dist/components/separator/index.js +1 -4
  208. package/dist/components/separator/separator.svelte +1 -4
  209. package/dist/components/separator/separator.svelte.d.ts +0 -1
  210. package/dist/components/separator/types.d.ts +2 -0
  211. package/dist/components/separator/types.js +1 -0
  212. package/dist/components/skeleton/exports.d.ts +1 -0
  213. package/dist/components/skeleton/exports.js +1 -0
  214. package/dist/components/skeleton/index.d.ts +2 -1
  215. package/dist/components/skeleton/index.js +1 -1
  216. package/dist/components/skeleton/skeleton.svelte +3 -15
  217. package/dist/components/skeleton/skeleton.svelte.d.ts +1 -8
  218. package/dist/components/skeleton/types.d.ts +9 -0
  219. package/dist/components/skeleton/types.js +1 -0
  220. package/dist/components/spinner/exports.d.ts +1 -0
  221. package/dist/components/spinner/exports.js +1 -0
  222. package/dist/components/spinner/index.d.ts +2 -1
  223. package/dist/components/spinner/index.js +1 -1
  224. package/dist/components/spinner/spinner.svelte +3 -13
  225. package/dist/components/spinner/spinner.svelte.d.ts +1 -6
  226. package/dist/components/spinner/types.d.ts +7 -0
  227. package/dist/components/spinner/types.js +1 -0
  228. package/dist/components/switch/components/switch.root.svelte +6 -7
  229. package/dist/components/switch/components/switch.root.svelte.d.ts +2 -4
  230. package/dist/components/switch/components/switch.thumb.svelte +5 -7
  231. package/dist/components/switch/components/switch.thumb.svelte.d.ts +1 -2
  232. package/dist/components/switch/exports-primitive.d.ts +2 -0
  233. package/dist/components/switch/exports-primitive.js +2 -0
  234. package/dist/components/switch/exports.d.ts +1 -0
  235. package/dist/components/switch/exports.js +1 -0
  236. package/dist/components/switch/index.d.ts +4 -10
  237. package/dist/components/switch/index.js +3 -10
  238. package/dist/components/switch/model/index.d.ts +1 -1
  239. package/dist/components/switch/model/index.js +1 -1
  240. package/dist/components/switch/model/switch-controller.svelte.d.ts +11 -0
  241. package/dist/components/switch/model/{switch-model.svelte.js → switch-controller.svelte.js} +1 -4
  242. package/dist/components/switch/switch.stories.svelte +1 -1
  243. package/dist/components/switch/switch.svelte +11 -0
  244. package/dist/components/switch/switch.svelte.d.ts +3 -0
  245. package/dist/components/switch/types.d.ts +5 -0
  246. package/dist/components/switch/types.js +2 -0
  247. package/dist/components/toast/exports.d.ts +1 -0
  248. package/dist/components/toast/exports.js +1 -0
  249. package/dist/components/toast/index.d.ts +2 -1
  250. package/dist/components/toast/index.js +1 -1
  251. package/dist/components/toast/styles.d.ts +152 -0
  252. package/dist/components/toast/styles.js +62 -0
  253. package/dist/components/toast/toast.component.svelte +9 -97
  254. package/dist/components/toast/toast.component.svelte.d.ts +1 -155
  255. package/dist/components/toast/types.d.ts +11 -0
  256. package/dist/components/toast/types.js +1 -0
  257. package/dist/index.d.ts +1 -17
  258. package/dist/index.js +1 -17
  259. package/package.json +1 -1
  260. package/dist/components/pagination/presets/basic.svelte +0 -31
  261. package/dist/components/pagination/presets/basic.svelte.d.ts +0 -5
  262. package/dist/components/pagination/presets/index.d.ts +0 -1
  263. package/dist/components/pagination/presets/index.js +0 -1
  264. package/dist/components/switch/model/switch-model.svelte.d.ts +0 -12
  265. package/dist/components/switch/presets/basic.svelte +0 -14
  266. package/dist/components/switch/presets/basic.svelte.d.ts +0 -5
@@ -1,14 +1,9 @@
1
- <script lang="ts" module>
2
- export type InputPasswordProps = Omit<InputProps, 'endChevron' | 'type'> & {
3
- showPassword?: boolean;
4
- };
5
- </script>
6
-
7
1
  <script lang="ts">
8
- import { EyeCrossedIcon, EyeIcon } from '../icons/index.js';
2
+ import { Icon } from '../icons/index.js';
9
3
 
10
4
  import { cn } from '../../internal/utils/common.js';
11
- import Input, { type InputProps } from './input.svelte';
5
+ import Input from './input.svelte';
6
+ import type { InputPasswordProps } from './types.js';
12
7
 
13
8
  let {
14
9
  ref = $bindable(null),
@@ -18,26 +13,22 @@
18
13
  }: InputPasswordProps = $props();
19
14
 
20
15
  const type = $derived(showPassword ? 'text' : 'password');
21
-
22
- function togglePassword() {
23
- showPassword = !showPassword;
24
- }
25
16
  </script>
26
17
 
27
18
  <Input bind:ref bind:value {type} {...restProps}>
28
19
  {#snippet endChevron()}
29
20
  <button
30
21
  type="button"
31
- onclick={togglePassword}
22
+ onclick={() => (showPassword = !showPassword)}
32
23
  class={cn(
33
24
  'cgui:cursor-pointer cgui:p-0 cgui:flex cgui:items-center cgui:justify-center cgui:bg-transparent cgui:border-none',
34
25
  'cgui:focus-visible:ring-stroke-focus cgui:focus-visible:border-stroke-focus cgui:outline-stroke-focus'
35
26
  )}
36
27
  >
37
28
  {#if showPassword}
38
- <EyeIcon width={20} height={20} />
29
+ <Icon.Eye width={20} height={20} />
39
30
  {:else}
40
- <EyeCrossedIcon width={20} height={20} />
31
+ <Icon.EyeCrossed width={20} height={20} />
41
32
  {/if}
42
33
  </button>
43
34
  {/snippet}
@@ -1,7 +1,5 @@
1
- export type InputPasswordProps = Omit<InputProps, 'endChevron' | 'type'> & {
2
- showPassword?: boolean;
3
- };
4
- import Input, { type InputProps } from './input.svelte';
1
+ import Input from './input.svelte';
2
+ import type { InputPasswordProps } from './types.js';
5
3
  declare const Input: import("svelte").Component<InputPasswordProps, {}, "value" | "ref" | "showPassword">;
6
4
  type Input = ReturnType<typeof Input>;
7
5
  export default Input;
@@ -1,25 +1,14 @@
1
- <script lang="ts" module>
2
- import type { PrimitiveInputAttributes } from '../../internal/types/html-attributes.js';
1
+ <script lang="ts">
3
2
  import { getDataActive } from '../../internal/utils/attrs.js';
4
3
  import { cn, useId } from '../../internal/utils/common.js';
5
- import type { Snippet } from 'svelte';
6
- import type { WithElementRef, Without } from 'svelte-toolbelt';
7
- import { type InputVariants, inputStyles } from './styles.js';
8
-
9
- type InputPropsWithoutHTML = WithElementRef<{
10
- startChevron?: Snippet;
4
+ import { inputStyles } from './styles.js';
5
+ import type { InputProps } from './types.js';
11
6
 
12
- endChevron?: Snippet;
13
- }> &
14
- InputVariants;
7
+ const uid = $props.id();
15
8
 
16
- export type InputProps = InputPropsWithoutHTML & Without<PrimitiveInputAttributes, InputPropsWithoutHTML>;
17
- </script>
18
-
19
- <script lang="ts">
20
9
  let {
21
10
  ref = $bindable(null),
22
- id = useId(),
11
+ id = useId(uid),
23
12
  value = $bindable(''),
24
13
  class: className,
25
14
  startChevron,
@@ -1,12 +1,4 @@
1
- import type { PrimitiveInputAttributes } from '../../internal/types/html-attributes.js';
2
- import type { Snippet } from 'svelte';
3
- import type { WithElementRef, Without } from 'svelte-toolbelt';
4
- import { type InputVariants } from './styles.js';
5
- type InputPropsWithoutHTML = WithElementRef<{
6
- startChevron?: Snippet;
7
- endChevron?: Snippet;
8
- }> & InputVariants;
9
- export type InputProps = InputPropsWithoutHTML & Without<PrimitiveInputAttributes, InputPropsWithoutHTML>;
1
+ import type { InputProps } from './types.js';
10
2
  declare const Input: import("svelte").Component<InputProps, {}, "value" | "ref">;
11
3
  type Input = ReturnType<typeof Input>;
12
4
  export default Input;
@@ -0,0 +1,13 @@
1
+ import type { PrimitiveInputAttributes } from '../../internal/types/html-attributes.js';
2
+ import type { Snippet } from 'svelte';
3
+ import type { WithElementRef, Without } from 'svelte-toolbelt';
4
+ import type { InputVariants } from './styles.js';
5
+ type InputPropsWithoutHTML = WithElementRef<{
6
+ startChevron?: Snippet;
7
+ endChevron?: Snippet;
8
+ }> & InputVariants;
9
+ export type InputProps = InputPropsWithoutHTML & Without<PrimitiveInputAttributes, InputPropsWithoutHTML>;
10
+ export type InputPasswordProps = Omit<InputProps, 'endChevron' | 'type'> & {
11
+ showPassword?: boolean;
12
+ };
13
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,21 +1,16 @@
1
- <script lang="ts" module>
2
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
3
- import { boxWith, mergeProps, type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
4
-
5
- type NavigationContentPropsWithoutHTML = WithElementRef<WithChild<{}>>;
6
-
7
- export type NavigationContentProps = NavigationContentPropsWithoutHTML &
8
- Without<PrimitiveElementAttributes, NavigationContentPropsWithoutHTML>;
9
- </script>
10
-
11
1
  <script lang="ts">
2
+ import { boxWith, mergeProps } from 'svelte-toolbelt';
3
+
12
4
  import { NavigationStylesContext } from '../styles.js';
13
5
  import { cn, useId } from '../../../internal/utils/common.js';
6
+ import type { NavigationContentProps } from '../types.js';
14
7
  import { NavigationContentState } from './navigation.svelte.js';
15
8
 
9
+ const uid = $props.id();
10
+
16
11
  let {
17
12
  ref = $bindable(null),
18
- id = useId(),
13
+ id = useId(uid),
19
14
  children,
20
15
  child,
21
16
  class: className,
@@ -1,7 +1,4 @@
1
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
2
- import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
3
- type NavigationContentPropsWithoutHTML = WithElementRef<WithChild<{}>>;
4
- export type NavigationContentProps = NavigationContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationContentPropsWithoutHTML>;
1
+ import type { NavigationContentProps } from '../types.js';
5
2
  declare const Navigation: import("svelte").Component<NavigationContentProps, {}, "ref">;
6
3
  type Navigation = ReturnType<typeof Navigation>;
7
4
  export default Navigation;
@@ -1,22 +1,17 @@
1
- <script lang="ts" module>
2
- type NavigationItemPropsWithoutHTML = WithElementRef<WithChild<{}>>;
3
-
4
- export type NavigationItemProps = NavigationItemPropsWithoutHTML &
5
- Without<PrimitiveElementAttributes, NavigationItemPropsWithoutHTML>;
6
- </script>
7
-
8
1
  <script lang="ts">
9
2
  import { CollapsiblePrimitive } from '../../collapsible/index.js';
10
3
  import { NavigationStylesContext } from '../styles.js';
11
4
  import { PopoverPrimitive } from '../../popover/index.js';
12
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
13
5
  import { cn, useId } from '../../../internal/utils/common.js';
14
- import { boxWith, mergeProps, type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
6
+ import { boxWith, mergeProps } from 'svelte-toolbelt';
7
+ import type { NavigationItemProps } from '../types.js';
15
8
  import { NavigationItemState } from './navigation.svelte.js';
16
9
 
10
+ const uid = $props.id();
11
+
17
12
  let {
18
13
  ref = $bindable(null),
19
- id = useId(),
14
+ id = useId(uid),
20
15
  children,
21
16
  child,
22
17
  class: className,
@@ -1,7 +1,4 @@
1
- type NavigationItemPropsWithoutHTML = WithElementRef<WithChild<{}>>;
2
- export type NavigationItemProps = NavigationItemPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationItemPropsWithoutHTML>;
3
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
4
- import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
1
+ import type { NavigationItemProps } from '../types.js';
5
2
  declare const Navigation: import("svelte").Component<NavigationItemProps, {}, "ref">;
6
3
  type Navigation = ReturnType<typeof Navigation>;
7
4
  export default Navigation;
@@ -1,22 +1,17 @@
1
- <script lang="ts" module>
2
- type NavigationRootPropsWithoutHTML = WithElementRef<WithChild<{}, { compact: boolean }>> & NavigationVariantsProps;
3
-
4
- export type NavigationRootProps = NavigationRootPropsWithoutHTML &
5
- Without<PrimitiveElementAttributes, NavigationRootPropsWithoutHTML>;
6
- </script>
7
-
8
1
  <script lang="ts">
9
- import { NavigationStylesContext, navigationVariants, type NavigationVariantsProps } from '../styles.js';
2
+ import { NavigationStylesContext, navigationVariants } from '../styles.js';
3
+ import type { NavigationRootProps } from '../types.js';
10
4
 
11
5
  import { NavigationRootState } from './navigation.svelte.js';
12
6
 
13
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
14
7
  import { cn, useId } from '../../../internal/utils/common.js';
15
- import { box, mergeProps, type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
8
+ import { box, mergeProps } from 'svelte-toolbelt';
9
+
10
+ const uid = $props.id();
16
11
 
17
12
  let {
18
13
  ref = $bindable(null),
19
- id = useId(),
14
+ id = useId(uid),
20
15
  children,
21
16
  child,
22
17
  class: className,
@@ -1,10 +1,4 @@
1
- type NavigationRootPropsWithoutHTML = WithElementRef<WithChild<{}, {
2
- compact: boolean;
3
- }>> & NavigationVariantsProps;
4
- export type NavigationRootProps = NavigationRootPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationRootPropsWithoutHTML>;
5
- import { type NavigationVariantsProps } from '../styles.js';
6
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
7
- import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
1
+ import type { NavigationRootProps } from '../types.js';
8
2
  declare const Navigation: import("svelte").Component<NavigationRootProps, {}, "ref">;
9
3
  type Navigation = ReturnType<typeof Navigation>;
10
4
  export default Navigation;
@@ -1,25 +1,20 @@
1
- <script lang="ts" module>
2
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
3
- import { boxWith, mergeProps, type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
4
-
5
- type NavigationSubContentPropsWithoutHTML = WithElementRef<WithChild<{}, { compact: boolean }>>;
6
-
7
- export type NavigationSubContentProps = NavigationSubContentPropsWithoutHTML &
8
- Without<PrimitiveElementAttributes, NavigationSubContentPropsWithoutHTML>;
9
- </script>
10
-
11
1
  <script lang="ts">
2
+ import { boxWith, mergeProps } from 'svelte-toolbelt';
3
+
12
4
  import { CollapsiblePrimitive } from '../../collapsible/index.js';
13
5
  import { NavigationStylesContext } from '../styles.js';
14
6
  import { PopoverPrimitive } from '../../popover/index.js';
15
7
  import { cn, useId } from '../../../internal/utils/common.js';
16
8
  import { cubicInOut } from 'svelte/easing';
17
9
  import { fade, fly } from 'svelte/transition';
10
+ import type { NavigationSubContentProps } from '../types.js';
18
11
  import { NavigationSubContentState } from './navigation.svelte.js';
19
12
 
13
+ const uid = $props.id();
14
+
20
15
  let {
21
16
  ref = $bindable(null),
22
- id = useId(),
17
+ id = useId(uid),
23
18
  children,
24
19
  child,
25
20
  class: className,
@@ -1,9 +1,4 @@
1
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
2
- import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
3
- type NavigationSubContentPropsWithoutHTML = WithElementRef<WithChild<{}, {
4
- compact: boolean;
5
- }>>;
6
- export type NavigationSubContentProps = NavigationSubContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationSubContentPropsWithoutHTML>;
1
+ import type { NavigationSubContentProps } from '../types.js';
7
2
  declare const Navigation: import("svelte").Component<NavigationSubContentProps, {}, "ref">;
8
3
  type Navigation = ReturnType<typeof Navigation>;
9
4
  export default Navigation;
@@ -1,35 +1,18 @@
1
- <script lang="ts" module>
2
- type NavigationTriggerPropsWithoutHTML = WithElementRef<
3
- WithChild<
4
- {
5
- href?: string;
6
-
7
- disabled?: boolean;
8
- },
9
- {
10
- compact: boolean;
11
- }
12
- >
13
- >;
14
-
15
- export type NavigationTriggerProps = NavigationTriggerPropsWithoutHTML &
16
- Without<PrimitiveElementAttributes, NavigationTriggerPropsWithoutHTML>;
17
- </script>
18
-
19
1
  <script lang="ts">
20
2
  import { CollapsiblePrimitive } from '../../collapsible/index.js';
21
3
  import ChevronDown from '../../icons/chevron-down.svelte';
22
4
  import { NavigationStylesContext } from '../styles.js';
23
5
  import { PopoverPrimitive } from '../../popover/index.js';
24
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
25
6
  import { cn, useId } from '../../../internal/utils/common.js';
26
- import type { WithChild, WithElementRef, Without } from 'svelte-toolbelt';
27
7
  import { boxWith, mergeProps } from 'svelte-toolbelt';
8
+ import type { NavigationTriggerProps } from '../types.js';
28
9
  import { NavigationTriggerState } from './navigation.svelte.js';
29
10
 
11
+ const uid = $props.id();
12
+
30
13
  let {
31
14
  ref = $bindable(null),
32
- id = useId(),
15
+ id = useId(uid),
33
16
  children,
34
17
  child,
35
18
  class: className,
@@ -1,12 +1,4 @@
1
- type NavigationTriggerPropsWithoutHTML = WithElementRef<WithChild<{
2
- href?: string;
3
- disabled?: boolean;
4
- }, {
5
- compact: boolean;
6
- }>>;
7
- export type NavigationTriggerProps = NavigationTriggerPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationTriggerPropsWithoutHTML>;
8
- import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
9
- import type { WithChild, WithElementRef, Without } from 'svelte-toolbelt';
1
+ import type { NavigationTriggerProps } from '../types.js';
10
2
  declare const Navigation: import("svelte").Component<NavigationTriggerProps, {}, "ref">;
11
3
  type Navigation = ReturnType<typeof Navigation>;
12
4
  export default Navigation;
@@ -0,0 +1,5 @@
1
+ export { default as Content } from './components/navigation.content.svelte';
2
+ export { default as Item } from './components/navigation.item.svelte';
3
+ export { default as Root } from './components/navigation.root.svelte';
4
+ export { default as SubContent } from './components/navigation.sub-content.svelte';
5
+ export { default as Trigger } from './components/navigation.trigger.svelte';
@@ -0,0 +1,5 @@
1
+ export { default as Content } from './components/navigation.content.svelte';
2
+ export { default as Item } from './components/navigation.item.svelte';
3
+ export { default as Root } from './components/navigation.root.svelte';
4
+ export { default as SubContent } from './components/navigation.sub-content.svelte';
5
+ export { default as Trigger } from './components/navigation.trigger.svelte';
@@ -0,0 +1 @@
1
+ export { default as Navigation } from './navigation.svelte';
@@ -0,0 +1 @@
1
+ export { default as Navigation } from './navigation.svelte';
@@ -1,12 +1,3 @@
1
- import { type NavigationContentProps } from './components/navigation.content.svelte';
2
- import { type NavigationItemProps } from './components/navigation.item.svelte';
3
- import { type NavigationRootProps } from './components/navigation.root.svelte';
4
- import { type NavigationSubContentProps } from './components/navigation.sub-content.svelte';
5
- export declare const NavigationPrimitive: {
6
- readonly Root: import("svelte").Component<NavigationRootProps, {}, "ref">;
7
- readonly Trigger: import("svelte").Component<import("./components/navigation.trigger.svelte").NavigationTriggerProps, {}, "ref">;
8
- readonly Content: import("svelte").Component<NavigationContentProps, {}, "ref">;
9
- readonly Item: import("svelte").Component<NavigationItemProps, {}, "ref">;
10
- readonly SubContent: import("svelte").Component<NavigationSubContentProps, {}, "ref">;
11
- };
12
- export type { NavigationContentProps, NavigationItemProps, NavigationRootProps, NavigationSubContentProps };
1
+ export * as NavigationPrimitive from './exports-primitive.js';
2
+ export * from './exports.js';
3
+ export type { NavigationContentProps, NavigationItemProps, NavigationRootProps, NavigationSubContentProps, NavigationTriggerProps, } from './types.js';
@@ -1,12 +1,2 @@
1
- import Content, {} from './components/navigation.content.svelte';
2
- import Item, {} from './components/navigation.item.svelte';
3
- import Root, {} from './components/navigation.root.svelte';
4
- import SubContent, {} from './components/navigation.sub-content.svelte';
5
- import Trigger from './components/navigation.trigger.svelte';
6
- export const NavigationPrimitive = {
7
- Root,
8
- Trigger,
9
- Content,
10
- Item,
11
- SubContent,
12
- };
1
+ export * as NavigationPrimitive from './exports-primitive.js';
2
+ export * from './exports.js';
@@ -0,0 +1,23 @@
1
+ import type { PrimitiveElementAttributes } from '../../internal/types/html-attributes.js';
2
+ import type { WithChild, WithElementRef, Without } from 'svelte-toolbelt';
3
+ import type { NavigationVariantsProps } from './styles.js';
4
+ type NavigationRootPropsWithoutHTML = WithElementRef<WithChild<{}, {
5
+ compact: boolean;
6
+ }>> & NavigationVariantsProps;
7
+ export type NavigationRootProps = NavigationRootPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationRootPropsWithoutHTML>;
8
+ type NavigationItemPropsWithoutHTML = WithElementRef<WithChild<{}>>;
9
+ export type NavigationItemProps = NavigationItemPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationItemPropsWithoutHTML>;
10
+ type NavigationContentPropsWithoutHTML = WithElementRef<WithChild<{}>>;
11
+ export type NavigationContentProps = NavigationContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationContentPropsWithoutHTML>;
12
+ type NavigationSubContentPropsWithoutHTML = WithElementRef<WithChild<{}, {
13
+ compact: boolean;
14
+ }>>;
15
+ export type NavigationSubContentProps = NavigationSubContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationSubContentPropsWithoutHTML>;
16
+ type NavigationTriggerPropsWithoutHTML = WithElementRef<WithChild<{
17
+ href?: string;
18
+ disabled?: boolean;
19
+ }, {
20
+ compact: boolean;
21
+ }>>;
22
+ export type NavigationTriggerProps = NavigationTriggerPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationTriggerPropsWithoutHTML>;
23
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,15 +1,9 @@
1
- <script lang="ts" module>
2
- export type PaginationEllipsisProps = WithChild<WithElementRef<{} & PrimitiveDivAttributes>>;
3
- </script>
4
-
5
1
  <script lang="ts">
6
2
  import { PaginationStylesContext } from '../styles.js';
7
3
 
8
- import { DotsIcon } from '../../icons/index.js';
9
- import type { WithChild } from '../../../internal/types/composition.js';
10
- import type { PrimitiveDivAttributes } from '../../../internal/types/html-attributes.js';
4
+ import { Icon } from '../../icons/index.js';
11
5
  import { cn } from '../../../internal/utils/common.js';
12
- import type { WithElementRef } from 'svelte-toolbelt';
6
+ import type { PaginationEllipsisProps } from '../types.js';
13
7
 
14
8
  let { class: className, ref = $bindable(null), child, ...restProps }: PaginationEllipsisProps = $props();
15
9
 
@@ -22,6 +16,6 @@
22
16
  {@render child?.({ props: { class: classNames, ...restProps } })}
23
17
  {:else}
24
18
  <div bind:this={ref} class={classNames} {...restProps}>
25
- <DotsIcon width={16} height={16} />
19
+ <Icon.Dots width={16} height={16} />
26
20
  </div>
27
21
  {/if}
@@ -1,7 +1,4 @@
1
- export type PaginationEllipsisProps = WithChild<WithElementRef<{} & PrimitiveDivAttributes>>;
2
- import type { WithChild } from '../../../internal/types/composition.js';
3
- import type { PrimitiveDivAttributes } from '../../../internal/types/html-attributes.js';
4
- import type { WithElementRef } from 'svelte-toolbelt';
1
+ import type { PaginationEllipsisProps } from '../types.js';
5
2
  declare const Pagination: import("svelte").Component<PaginationEllipsisProps, {}, "ref">;
6
3
  type Pagination = ReturnType<typeof Pagination>;
7
4
  export default Pagination;
@@ -1,12 +1,9 @@
1
- <script lang="ts" module>
2
- export type PaginationItemProps = PaginationPagePropsPrimitive;
3
- </script>
4
-
5
1
  <script lang="ts">
6
2
  import { cn } from '../../../internal/utils/common.js';
7
3
  import { PaginationStylesContext } from '../styles.js';
4
+ import type { PaginationItemProps } from '../types.js';
8
5
 
9
- import { Pagination as PaginationPrimitive, type PaginationPageProps as PaginationPagePropsPrimitive } from 'bits-ui';
6
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
10
7
 
11
8
  let { page, class: className, ...props }: PaginationItemProps = $props();
12
9
 
@@ -1,5 +1,4 @@
1
- export type PaginationItemProps = PaginationPagePropsPrimitive;
2
- import { Pagination as PaginationPrimitive, type PaginationPageProps as PaginationPagePropsPrimitive } from 'bits-ui';
1
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
3
2
  declare const Pagination: import("svelte").Component<PaginationPrimitive.PageProps, {}, "">;
4
3
  type Pagination = ReturnType<typeof Pagination>;
5
4
  export default Pagination;
@@ -1,16 +1,10 @@
1
- <script lang="ts" module>
2
- export type PaginationNextButtonProps = PaginationNextButtonPropsPrimitive;
3
- </script>
4
-
5
1
  <script lang="ts">
6
2
  import { cn } from '../../../internal/utils/common.js';
7
3
  import { PaginationStylesContext } from '../styles.js';
8
4
 
9
- import { ChevronRightIcon } from '../../icons/index.js';
10
- import {
11
- Pagination as PaginationPrimitive,
12
- type PaginationNextButtonProps as PaginationNextButtonPropsPrimitive,
13
- } from 'bits-ui';
5
+ import { Icon } from '../../icons/index.js';
6
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
7
+ import type { PaginationNextButtonProps } from '../types.js';
14
8
 
15
9
  let { class: className, children, ref = $bindable(null), ...props }: PaginationNextButtonProps = $props();
16
10
 
@@ -23,6 +17,6 @@
23
17
  {#if children}
24
18
  {@render children?.()}
25
19
  {:else}
26
- <ChevronRightIcon />
20
+ <Icon.ChevronRight />
27
21
  {/if}
28
22
  </PaginationPrimitive.NextButton>
@@ -1,5 +1,4 @@
1
- export type PaginationNextButtonProps = PaginationNextButtonPropsPrimitive;
2
- import { Pagination as PaginationPrimitive, type PaginationNextButtonProps as PaginationNextButtonPropsPrimitive } from 'bits-ui';
1
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
3
2
  declare const Pagination: import("svelte").Component<PaginationPrimitive.NextButtonProps, {}, "ref">;
4
3
  type Pagination = ReturnType<typeof Pagination>;
5
4
  export default Pagination;
@@ -1,16 +1,9 @@
1
- <script lang="ts" module>
2
- export type PaginationPrevButtonProps = PaginationPrevButtonPropsPrimitive;
3
- </script>
4
-
5
1
  <script lang="ts">
2
+ import { Icon } from '../../icons/index.js';
6
3
  import { cn } from '../../../internal/utils/common.js';
4
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
7
5
  import { PaginationStylesContext } from '../styles.js';
8
-
9
- import { ChevronLeftIcon } from '../../icons/index.js';
10
- import {
11
- Pagination as PaginationPrimitive,
12
- type PaginationPrevButtonProps as PaginationPrevButtonPropsPrimitive,
13
- } from 'bits-ui';
6
+ import type { PaginationPrevButtonProps } from '../types.js';
14
7
 
15
8
  let { class: className, children, ref = $bindable(null), ...props }: PaginationPrevButtonProps = $props();
16
9
 
@@ -23,6 +16,6 @@
23
16
  {#if children}
24
17
  {@render children?.()}
25
18
  {:else}
26
- <ChevronLeftIcon />
19
+ <Icon.ChevronLeft />
27
20
  {/if}
28
21
  </PaginationPrimitive.PrevButton>
@@ -1,5 +1,4 @@
1
- export type PaginationPrevButtonProps = PaginationPrevButtonPropsPrimitive;
2
- import { Pagination as PaginationPrimitive, type PaginationPrevButtonProps as PaginationPrevButtonPropsPrimitive } from 'bits-ui';
1
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
3
2
  declare const Pagination: import("svelte").Component<PaginationPrimitive.PrevButtonProps, {}, "ref">;
4
3
  type Pagination = ReturnType<typeof Pagination>;
5
4
  export default Pagination;
@@ -1,16 +1,9 @@
1
- <script lang="ts" module>
2
- export type PaginationRootProps = PaginationRootPropsPrimitive & PaginationVariantsProps;
3
- </script>
4
-
5
1
  <script lang="ts">
6
- import {
7
- PaginationStylesContext,
8
- type PaginationVariantsProps,
9
- paginationStyles,
10
- } from '../styles.js';
11
2
  import { cn } from '../../../internal/utils/common.js';
12
- import { Pagination as PaginationPrimitive, type PaginationRootProps as PaginationRootPropsPrimitive } from 'bits-ui';
3
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
13
4
  import { box } from 'svelte-toolbelt';
5
+ import { PaginationStylesContext, paginationStyles } from '../styles.js';
6
+ import type { PaginationRootProps } from '../types.js';
14
7
 
15
8
  let {
16
9
  page = $bindable(1),
@@ -1,6 +1,4 @@
1
- export type PaginationRootProps = PaginationRootPropsPrimitive & PaginationVariantsProps;
2
- import { type PaginationVariantsProps } from '../styles.js';
3
- import { type PaginationRootProps as PaginationRootPropsPrimitive } from 'bits-ui';
1
+ import type { PaginationRootProps } from '../types.js';
4
2
  declare const Pagination: import("svelte").Component<PaginationRootProps, {}, "page">;
5
3
  type Pagination = ReturnType<typeof Pagination>;
6
4
  export default Pagination;
@@ -0,0 +1,5 @@
1
+ export { default as Ellipsis } from './components/pagination.ellipsis.svelte';
2
+ export { default as Item } from './components/pagination.item.svelte';
3
+ export { default as NextButton } from './components/pagination.next-button.svelte';
4
+ export { default as PrevButton } from './components/pagination.prev-button.svelte';
5
+ export { default as Root } from './components/pagination.root.svelte';
@@ -0,0 +1,5 @@
1
+ export { default as Ellipsis } from './components/pagination.ellipsis.svelte';
2
+ export { default as Item } from './components/pagination.item.svelte';
3
+ export { default as NextButton } from './components/pagination.next-button.svelte';
4
+ export { default as PrevButton } from './components/pagination.prev-button.svelte';
5
+ export { default as Root } from './components/pagination.root.svelte';
@@ -0,0 +1 @@
1
+ export { default as Pagination } from './pagination.svelte';
@@ -0,0 +1 @@
1
+ export { default as Pagination } from './pagination.svelte';