sv5ui-plus 5.0.4 → 5.0.6

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 (215) hide show
  1. package/README.md +6 -6
  2. package/dist/adapters/notify.d.ts +1 -1
  3. package/dist/adapters/notify.js +18 -18
  4. package/dist/compat.d.ts +2 -2
  5. package/dist/compat.js +2 -2
  6. package/dist/components/BentoGrid/BentoCard.svelte +33 -33
  7. package/dist/components/BentoGrid/BentoCard.svelte.d.ts +1 -1
  8. package/dist/components/BentoGrid/BentoGrid.svelte +1 -1
  9. package/dist/components/BentoGrid/BentoGrid.svelte.d.ts +1 -1
  10. package/dist/components/BentoGrid/bento-grid.types.d.ts +2 -2
  11. package/dist/components/BentoGrid/bento-grid.variants.d.ts +1 -1
  12. package/dist/components/BentoGrid/bento-grid.variants.js +10 -10
  13. package/dist/components/BentoGrid/index.d.ts +4 -4
  14. package/dist/components/BentoGrid/index.js +4 -4
  15. package/dist/components/Chart/Chart.svelte +1 -1
  16. package/dist/components/Chart/Chart.svelte.d.ts +1 -1
  17. package/dist/components/Chart/chart.types.d.ts +3 -3
  18. package/dist/components/Chart/index.d.ts +2 -2
  19. package/dist/components/Chart/index.js +2 -2
  20. package/dist/components/Chat/ChatBubble.svelte +19 -19
  21. package/dist/components/Chat/ChatBubble.svelte.d.ts +1 -1
  22. package/dist/components/Chat/ChatInput.svelte +26 -27
  23. package/dist/components/Chat/ChatInput.svelte.d.ts +1 -1
  24. package/dist/components/Chat/ChatMessage.svelte +1 -1
  25. package/dist/components/Chat/ChatMessage.svelte.d.ts +1 -1
  26. package/dist/components/Chat/chat.types.d.ts +6 -6
  27. package/dist/components/Chat/chat.variants.d.ts +1 -1
  28. package/dist/components/Chat/chat.variants.js +29 -29
  29. package/dist/components/Chat/index.d.ts +5 -5
  30. package/dist/components/Chat/index.js +5 -5
  31. package/dist/components/CodeBlock/CodeBlock.svelte +15 -15
  32. package/dist/components/CodeBlock/CodeBlock.svelte.d.ts +1 -1
  33. package/dist/components/CodeBlock/code-block.types.d.ts +5 -5
  34. package/dist/components/CodeBlock/code-block.variants.d.ts +1 -1
  35. package/dist/components/CodeBlock/code-block.variants.js +40 -40
  36. package/dist/components/CodeBlock/index.d.ts +2 -2
  37. package/dist/components/CodeBlock/index.js +1 -1
  38. package/dist/components/ConfirmDialog/ConfirmDialog.svelte +93 -97
  39. package/dist/components/ConfirmDialog/ConfirmDialog.svelte.d.ts +1 -1
  40. package/dist/components/ConfirmDialog/confirm.d.ts +1 -1
  41. package/dist/components/ConfirmDialog/confirm.js +9 -9
  42. package/dist/components/ConfirmDialog/confirm.types.d.ts +4 -4
  43. package/dist/components/ConfirmDialog/index.d.ts +4 -4
  44. package/dist/components/ConfirmDialog/index.js +2 -2
  45. package/dist/components/DatePickerField/DatePickerField.svelte +11 -11
  46. package/dist/components/DatePickerField/DatePickerField.svelte.d.ts +2 -2
  47. package/dist/components/DatePickerField/date-picker-field.types.d.ts +1 -1
  48. package/dist/components/DatePickerField/index.d.ts +2 -2
  49. package/dist/components/DatePickerField/index.js +1 -1
  50. package/dist/components/DateRangePickerField/DateRangePickerField.svelte +26 -26
  51. package/dist/components/DateRangePickerField/DateRangePickerField.svelte.d.ts +2 -2
  52. package/dist/components/DateRangePickerField/date-range-picker-field.types.d.ts +1 -1
  53. package/dist/components/DateRangePickerField/index.d.ts +2 -2
  54. package/dist/components/DateRangePickerField/index.js +1 -1
  55. package/dist/components/Fonts/Fonts.svelte +12 -12
  56. package/dist/components/Fonts/Fonts.svelte.d.ts +1 -1
  57. package/dist/components/Fonts/fonts.d.ts +1 -1
  58. package/dist/components/Fonts/fonts.js +42 -42
  59. package/dist/components/Fonts/fonts.types.d.ts +6 -6
  60. package/dist/components/Fonts/index.d.ts +3 -3
  61. package/dist/components/Fonts/index.js +2 -2
  62. package/dist/components/FormSelect/FormSelect.svelte +4 -4
  63. package/dist/components/FormSelect/FormSelect.svelte.d.ts +2 -2
  64. package/dist/components/FormSelect/form-select.types.d.ts +3 -3
  65. package/dist/components/FormSelect/index.d.ts +2 -2
  66. package/dist/components/FormSelect/index.js +1 -1
  67. package/dist/components/List/List.svelte +1 -1
  68. package/dist/components/List/List.svelte.d.ts +1 -1
  69. package/dist/components/List/ListItem.svelte +31 -39
  70. package/dist/components/List/ListItem.svelte.d.ts +1 -1
  71. package/dist/components/List/index.d.ts +4 -4
  72. package/dist/components/List/index.js +4 -4
  73. package/dist/components/List/list.types.d.ts +4 -4
  74. package/dist/components/List/list.variants.d.ts +1 -1
  75. package/dist/components/List/list.variants.js +22 -22
  76. package/dist/components/LocaleButton/LocaleButton.svelte +104 -108
  77. package/dist/components/LocaleButton/LocaleButton.svelte.d.ts +1 -1
  78. package/dist/components/LocaleButton/index.d.ts +2 -2
  79. package/dist/components/LocaleButton/index.js +1 -1
  80. package/dist/components/LocaleButton/locale-button.types.d.ts +12 -12
  81. package/dist/components/LocaleButton/locale-button.variants.d.ts +2 -2
  82. package/dist/components/LocaleButton/locale-button.variants.js +68 -68
  83. package/dist/components/Marquee/Marquee.svelte +34 -34
  84. package/dist/components/Marquee/Marquee.svelte.d.ts +1 -1
  85. package/dist/components/Marquee/index.d.ts +3 -3
  86. package/dist/components/Marquee/index.js +3 -3
  87. package/dist/components/Marquee/marquee.types.d.ts +4 -4
  88. package/dist/components/Marquee/marquee.variants.d.ts +1 -1
  89. package/dist/components/Marquee/marquee.variants.js +15 -15
  90. package/dist/components/NavigationMenu/NavigationMenu.svelte +366 -379
  91. package/dist/components/NavigationMenu/NavigationMenu.svelte.d.ts +1 -1
  92. package/dist/components/NavigationMenu/index.d.ts +2 -2
  93. package/dist/components/NavigationMenu/index.js +1 -1
  94. package/dist/components/NavigationMenu/navigation-menu.types.d.ts +17 -17
  95. package/dist/components/NavigationMenu/navigation-menu.variants.d.ts +1 -1
  96. package/dist/components/NavigationMenu/navigation-menu.variants.js +177 -177
  97. package/dist/components/NumberTicker/NumberTicker.svelte +1 -5
  98. package/dist/components/NumberTicker/NumberTicker.svelte.d.ts +1 -1
  99. package/dist/components/NumberTicker/index.d.ts +3 -3
  100. package/dist/components/NumberTicker/index.js +3 -3
  101. package/dist/components/NumberTicker/number-ticker.types.d.ts +1 -1
  102. package/dist/components/NumberTicker/number-ticker.variants.d.ts +1 -1
  103. package/dist/components/NumberTicker/number-ticker.variants.js +3 -3
  104. package/dist/components/PasswordInput/PasswordInput.svelte +58 -58
  105. package/dist/components/PasswordInput/PasswordInput.svelte.d.ts +1 -1
  106. package/dist/components/PasswordInput/index.d.ts +2 -2
  107. package/dist/components/PasswordInput/index.js +1 -1
  108. package/dist/components/PasswordInput/password-input.types.d.ts +9 -9
  109. package/dist/components/PasswordInput/password-input.variants.d.ts +2 -2
  110. package/dist/components/PasswordInput/password-input.variants.js +62 -62
  111. package/dist/components/Prose/Prose.svelte +5 -5
  112. package/dist/components/Prose/Prose.svelte.d.ts +1 -1
  113. package/dist/components/Prose/index.d.ts +3 -3
  114. package/dist/components/Prose/index.js +3 -3
  115. package/dist/components/Prose/prose.types.d.ts +4 -4
  116. package/dist/components/Prose/prose.variants.d.ts +1 -1
  117. package/dist/components/Prose/prose.variants.js +27 -27
  118. package/dist/components/{Resizable/Resizable.svelte → ResizeContainer/ResizeContainer.svelte} +3 -3
  119. package/dist/components/ResizeContainer/ResizeContainer.svelte.d.ts +4 -0
  120. package/dist/components/ResizeContainer/index.d.ts +4 -0
  121. package/dist/components/ResizeContainer/index.js +4 -0
  122. package/dist/components/ResizeContainer/resize-container.types.d.ts +18 -0
  123. package/dist/components/ResizeContainer/resize-container.variants.d.ts +30 -0
  124. package/dist/components/ResizeContainer/resize-container.variants.js +17 -0
  125. package/dist/components/SafeTable/SafeTable.svelte +74 -74
  126. package/dist/components/SafeTable/SafeTable.svelte.d.ts +2 -2
  127. package/dist/components/SafeTable/index.d.ts +2 -2
  128. package/dist/components/SafeTable/index.js +1 -1
  129. package/dist/components/SafeTable/safe-table.types.d.ts +1 -1
  130. package/dist/components/Search/Search.svelte +63 -63
  131. package/dist/components/Search/Search.svelte.d.ts +1 -1
  132. package/dist/components/Search/index.d.ts +2 -2
  133. package/dist/components/Search/index.js +1 -1
  134. package/dist/components/Search/search.types.d.ts +5 -5
  135. package/dist/components/SortableGroup/SortableGroup.svelte +16 -10
  136. package/dist/components/SortableGroup/SortableGroup.svelte.d.ts +3 -3
  137. package/dist/components/SortableGroup/index.d.ts +1 -1
  138. package/dist/components/SortableGroup/index.js +1 -1
  139. package/dist/components/SortableList/SortableList.svelte +49 -46
  140. package/dist/components/SortableList/SortableList.svelte.d.ts +2 -2
  141. package/dist/components/SortableList/index.d.ts +2 -2
  142. package/dist/components/SortableList/index.js +1 -1
  143. package/dist/components/SortableList/sortable-list.types.d.ts +3 -3
  144. package/dist/components/Spotlight/Spotlight.svelte +13 -13
  145. package/dist/components/Spotlight/Spotlight.svelte.d.ts +1 -1
  146. package/dist/components/Spotlight/index.d.ts +3 -3
  147. package/dist/components/Spotlight/index.js +3 -3
  148. package/dist/components/Spotlight/spotlight.types.d.ts +2 -2
  149. package/dist/components/Spotlight/spotlight.variants.d.ts +1 -1
  150. package/dist/components/Spotlight/spotlight.variants.js +5 -5
  151. package/dist/components/TableBulkActionBar/TableBulkActionBar.svelte +23 -23
  152. package/dist/components/TableBulkActionBar/TableBulkActionBar.svelte.d.ts +1 -1
  153. package/dist/components/TableBulkActionBar/index.d.ts +2 -2
  154. package/dist/components/TableBulkActionBar/index.js +1 -1
  155. package/dist/components/TableBulkActionBar/table-bulk-action-bar.types.d.ts +3 -3
  156. package/dist/components/TableBulkActionBar/table-bulk-action-bar.variants.d.ts +1 -1
  157. package/dist/components/TableBulkActionBar/table-bulk-action-bar.variants.js +7 -7
  158. package/dist/components/TreeView/TreeView.svelte +59 -59
  159. package/dist/components/TreeView/TreeView.svelte.d.ts +1 -1
  160. package/dist/components/TreeView/index.d.ts +3 -3
  161. package/dist/components/TreeView/index.js +2 -2
  162. package/dist/components/TreeView/tree-view.types.d.ts +4 -4
  163. package/dist/components/TreeView/tree-view.variants.d.ts +1 -1
  164. package/dist/components/TreeView/tree-view.variants.js +19 -19
  165. package/dist/config.d.ts +1 -1
  166. package/dist/config.js +28 -28
  167. package/dist/editor.d.ts +1 -1
  168. package/dist/editor.js +1 -1
  169. package/dist/form/resolve-form-field-name.js +1 -1
  170. package/dist/hooks/internal/DragDropProviderScope.svelte +1 -1
  171. package/dist/hooks/internal/DragDropProviderScope.svelte.d.ts +1 -1
  172. package/dist/hooks/internal/SortableProvider.svelte +16 -11
  173. package/dist/hooks/internal/SortableProvider.svelte.d.ts +1 -1
  174. package/dist/hooks/internal/drag-drop-context.d.ts +1 -1
  175. package/dist/hooks/internal/drag-drop-context.js +1 -1
  176. package/dist/hooks/internal/sortable-context.d.ts +6 -6
  177. package/dist/hooks/internal/sortable-context.js +2 -2
  178. package/dist/hooks/useDragDrop/index.d.ts +1 -1
  179. package/dist/hooks/useDragDrop/index.js +1 -1
  180. package/dist/hooks/useDragDrop/useDragDrop.svelte.d.ts +3 -3
  181. package/dist/hooks/useDragDrop/useDragDrop.svelte.js +15 -15
  182. package/dist/hooks/useSortable/index.d.ts +2 -2
  183. package/dist/hooks/useSortable/index.js +2 -2
  184. package/dist/hooks/useSortable/useSortable.svelte.d.ts +4 -4
  185. package/dist/hooks/useSortable/useSortable.svelte.js +23 -23
  186. package/dist/hooks/utils.js +1 -1
  187. package/dist/index.d.ts +29 -31
  188. package/dist/index.js +28 -30
  189. package/dist/mcp/install-template.mjs +44 -44
  190. package/dist/mcp/server.mjs +262 -263
  191. package/dist/mcp/sv5ui-plus-docs.data.json +4 -10
  192. package/package.json +17 -14
  193. package/dist/components/ColorPicker/ColorPicker.svelte +0 -109
  194. package/dist/components/ColorPicker/ColorPicker.svelte.d.ts +0 -4
  195. package/dist/components/ColorPicker/color-picker.types.d.ts +0 -26
  196. package/dist/components/ColorPicker/color-picker.variants.d.ts +0 -69
  197. package/dist/components/ColorPicker/color-picker.variants.js +0 -13
  198. package/dist/components/ColorPicker/index.d.ts +0 -4
  199. package/dist/components/ColorPicker/index.js +0 -4
  200. package/dist/components/Resizable/Resizable.svelte.d.ts +0 -4
  201. package/dist/components/Resizable/index.d.ts +0 -4
  202. package/dist/components/Resizable/index.js +0 -4
  203. package/dist/components/Resizable/resizable.types.d.ts +0 -18
  204. package/dist/components/Resizable/resizable.types.js +0 -1
  205. package/dist/components/Resizable/resizable.variants.d.ts +0 -48
  206. package/dist/components/Resizable/resizable.variants.js +0 -17
  207. package/dist/components/ScrollArea/ScrollArea.svelte +0 -54
  208. package/dist/components/ScrollArea/ScrollArea.svelte.d.ts +0 -4
  209. package/dist/components/ScrollArea/index.d.ts +0 -4
  210. package/dist/components/ScrollArea/index.js +0 -4
  211. package/dist/components/ScrollArea/scroll-area.types.d.ts +0 -27
  212. package/dist/components/ScrollArea/scroll-area.types.js +0 -1
  213. package/dist/components/ScrollArea/scroll-area.variants.d.ts +0 -45
  214. package/dist/components/ScrollArea/scroll-area.variants.js +0 -27
  215. /package/dist/components/{ColorPicker/color-picker.types.js → ResizeContainer/resize-container.types.js} +0 -0
@@ -1,4 +1,4 @@
1
- import type { NavigationMenuProps } from './navigation-menu.types.js';
1
+ import type { NavigationMenuProps } from "./navigation-menu.types.js";
2
2
  export type Props = NavigationMenuProps;
3
3
  declare const NavigationMenu: import("svelte").Component<NavigationMenuProps, {}, "value" | "ref" | "drawerOpen">;
4
4
  type NavigationMenu = ReturnType<typeof NavigationMenu>;
@@ -1,2 +1,2 @@
1
- export { default as SvelteKitNavigationMenu } from './NavigationMenu.svelte';
2
- export type { NavigationMenuProps as SvelteKitNavigationMenuProps, NavigationMenuItem as SvelteKitNavigationMenuItem, NavigationMenuChildItem as SvelteKitNavigationMenuChildItem, NavigationMenuValue as SvelteKitNavigationMenuValue } from './navigation-menu.types.js';
1
+ export { default as SvelteKitNavigationMenu } from "./NavigationMenu.svelte";
2
+ export type { NavigationMenuProps as SvelteKitNavigationMenuProps, NavigationMenuItem as SvelteKitNavigationMenuItem, NavigationMenuChildItem as SvelteKitNavigationMenuChildItem, NavigationMenuValue as SvelteKitNavigationMenuValue, } from "./navigation-menu.types.js";
@@ -1 +1 @@
1
- export { default as SvelteKitNavigationMenu } from './NavigationMenu.svelte';
1
+ export { default as SvelteKitNavigationMenu } from "./NavigationMenu.svelte";
@@ -1,13 +1,13 @@
1
- import type { Snippet } from 'svelte';
2
- import type { ClassNameValue } from 'tailwind-merge';
3
- import type { HTMLAttributes } from 'svelte/elements';
4
- import type { NavigationMenuSlots, NavigationMenuVariantProps } from './navigation-menu.variants.js';
5
- import type { AvatarProps } from 'sv5ui';
6
- import type { BadgeProps } from 'sv5ui';
7
- import type { ChipProps } from 'sv5ui';
8
- import type { TooltipProps } from 'sv5ui';
9
- import type { PopoverProps } from 'sv5ui';
10
- import type { DrawerProps } from 'sv5ui';
1
+ import type { Snippet } from "svelte";
2
+ import type { ClassNameValue } from "tailwind-merge";
3
+ import type { HTMLAttributes } from "svelte/elements";
4
+ import type { NavigationMenuSlots, NavigationMenuVariantProps } from "./navigation-menu.variants.js";
5
+ import type { AvatarProps } from "sv5ui";
6
+ import type { BadgeProps } from "sv5ui";
7
+ import type { ChipProps } from "sv5ui";
8
+ import type { TooltipProps } from "sv5ui";
9
+ import type { PopoverProps } from "sv5ui";
10
+ import type { DrawerProps } from "sv5ui";
11
11
  /**
12
12
  * The open value(s) of the menu.
13
13
  * A single value string when `type='single'`, an array when `type='multiple'`
@@ -15,7 +15,7 @@ import type { DrawerProps } from 'sv5ui';
15
15
  */
16
16
  export type NavigationMenuValue = string | string[];
17
17
  /** Per-item semantic role. Defaults to `'link'`. */
18
- export type NavigationMenuItemType = 'label' | 'trigger' | 'link';
18
+ export type NavigationMenuItemType = "label" | "trigger" | "link";
19
19
  /**
20
20
  * A leaf entry inside a dropdown / mega-menu (an item's `children`).
21
21
  */
@@ -127,7 +127,7 @@ export interface NavigationMenuContentSlotProps {
127
127
  * real anchor links (SEO), a nav landmark, and an optional baked-in mobile
128
128
  * drawer below a breakpoint.
129
129
  */
130
- export interface NavigationMenuProps extends Omit<HTMLAttributes<HTMLElement>, 'class' | 'children' | 'onselect' | 'popover' | 'dir'> {
130
+ export interface NavigationMenuProps extends Omit<HTMLAttributes<HTMLElement>, "class" | "children" | "onselect" | "popover" | "dir"> {
131
131
  /** Bindable reference to the root element. */
132
132
  ref?: HTMLElement | null;
133
133
  /** The root element for the vertical path. @default 'nav' */
@@ -136,7 +136,7 @@ export interface NavigationMenuProps extends Omit<HTMLAttributes<HTMLElement>, '
136
136
  * Selection model for vertical inline disclosures.
137
137
  * `'multiple'` allows several open at once. @default 'multiple'
138
138
  */
139
- type?: 'single' | 'multiple';
139
+ type?: "single" | "multiple";
140
140
  /** Open value(s). Use `bind:value` for two-way binding. */
141
141
  value?: NavigationMenuValue;
142
142
  /** Initial open value(s) when uncontrolled. */
@@ -146,7 +146,7 @@ export interface NavigationMenuProps extends Omit<HTMLAttributes<HTMLElement>, '
146
146
  /** Top-level items, or an array of arrays to render separated groups. */
147
147
  items?: NavigationMenuItem[] | NavigationMenuItem[][];
148
148
  /** Layout direction. @default 'horizontal' */
149
- orientation?: NonNullable<NavigationMenuVariantProps['orientation']>;
149
+ orientation?: NonNullable<NavigationMenuVariantProps["orientation"]>;
150
150
  /** Icons-only rail (vertical). Labels/children surface via tooltip/popover. */
151
151
  collapsed?: boolean;
152
152
  /** Whether expandable groups can be toggled (vertical). @default true */
@@ -165,9 +165,9 @@ export interface NavigationMenuProps extends Omit<HTMLAttributes<HTMLElement>, '
165
165
  */
166
166
  stacked?: boolean;
167
167
  /** Visual style of items. @default 'pill' */
168
- variant?: NonNullable<NavigationMenuVariantProps['variant']>;
168
+ variant?: NonNullable<NavigationMenuVariantProps["variant"]>;
169
169
  /** Color for active/highlight state and focus ring. @default 'primary' */
170
- color?: NonNullable<NavigationMenuVariantProps['color']>;
170
+ color?: NonNullable<NavigationMenuVariantProps["color"]>;
171
171
  /** Iconify name for the dropdown chevron. @default icons.chevronDown */
172
172
  trailingIcon?: string;
173
173
  /** External-link icon; `true` uses the default, a string overrides, `false` hides. */
@@ -179,7 +179,7 @@ export interface NavigationMenuProps extends Omit<HTMLAttributes<HTMLElement>, '
179
179
  /** Default popover config for collapsed items. */
180
180
  popover?: boolean | PopoverProps;
181
181
  /** Layout of the mega-menu content (horizontal only). @default 'horizontal' */
182
- contentOrientation?: NonNullable<NavigationMenuVariantProps['contentOrientation']>;
182
+ contentOrientation?: NonNullable<NavigationMenuVariantProps["contentOrientation"]>;
183
183
  /** Item field used as the label. @default 'label' */
184
184
  labelKey?: string;
185
185
  /**
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from "tailwind-variants";
2
2
  export declare const navigationMenuVariants: import("tailwind-variants").TVReturnType<{
3
3
  variant: {
4
4
  pill: "";
@@ -1,287 +1,287 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from "tailwind-variants";
2
2
  export const navigationMenuVariants = tv({
3
3
  slots: {
4
- root: 'relative',
5
- list: 'relative isolate min-w-0',
6
- highlight: 'absolute z-0 rounded-full transition-all duration-200',
7
- item: 'min-w-0',
8
- label: 'w-full flex items-center gap-1.5 px-2.5 pt-3 pb-1 font-semibold text-sm text-on-surface-variant',
9
- separator: 'shrink-0 bg-outline-variant',
4
+ root: "relative",
5
+ list: "relative isolate min-w-0",
6
+ highlight: "absolute z-0 rounded-full transition-all duration-200",
7
+ item: "min-w-0",
8
+ label: "w-full flex items-center gap-1.5 px-2.5 pt-3 pb-1 font-semibold text-sm text-on-surface-variant",
9
+ separator: "shrink-0 bg-outline-variant",
10
10
  link: [
11
- 'group relative w-full flex items-center gap-1.5 font-medium text-sm rounded-md',
12
- 'text-on-surface-variant',
13
- 'transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset',
14
- 'data-disabled:cursor-not-allowed data-disabled:opacity-60'
11
+ "group relative w-full flex items-center gap-1.5 font-medium text-sm rounded-md",
12
+ "text-on-surface-variant",
13
+ "transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset",
14
+ "data-disabled:cursor-not-allowed data-disabled:opacity-60",
15
15
  ],
16
- linkLeadingIcon: 'shrink-0',
17
- linkLeadingAvatar: 'shrink-0',
18
- linkLabel: 'truncate',
19
- linkLabelExternalIcon: 'size-3.5 shrink-0 text-on-surface-variant/70',
20
- linkTrailing: 'ms-auto inline-flex items-center gap-1.5',
21
- linkTrailingBadge: 'shrink-0',
22
- linkTrailingIcon: 'size-5 shrink-0 transform transition-transform duration-200',
23
- childList: 'grid gap-0.5 p-2',
24
- childLabel: 'font-semibold text-sm text-on-surface-variant px-2 py-1.5',
25
- childItem: 'min-w-0',
16
+ linkLeadingIcon: "shrink-0",
17
+ linkLeadingAvatar: "shrink-0",
18
+ linkLabel: "truncate",
19
+ linkLabelExternalIcon: "size-3.5 shrink-0 text-on-surface-variant/70",
20
+ linkTrailing: "ms-auto inline-flex items-center gap-1.5",
21
+ linkTrailingBadge: "shrink-0",
22
+ linkTrailingIcon: "size-5 shrink-0 transform transition-transform duration-200",
23
+ childList: "grid gap-0.5 p-2",
24
+ childLabel: "font-semibold text-sm text-on-surface-variant px-2 py-1.5",
25
+ childItem: "min-w-0",
26
26
  childLink: [
27
- 'group relative w-full flex items-start gap-2.5 px-2.5 py-2 rounded-lg',
28
- 'text-sm text-on-surface-variant',
29
- 'transition-colors hover:bg-surface-container-high hover:text-on-surface',
30
- 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary',
31
- 'data-[active]:bg-surface-container-high data-[active]:text-on-surface'
27
+ "group relative w-full flex items-start gap-2.5 px-2.5 py-2 rounded-lg",
28
+ "text-sm text-on-surface-variant",
29
+ "transition-colors hover:bg-surface-container-high hover:text-on-surface",
30
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary",
31
+ "data-[active]:bg-surface-container-high data-[active]:text-on-surface",
32
32
  ],
33
- childLinkWrapper: 'min-w-0 flex flex-col gap-0.5',
34
- childLinkIcon: 'size-5 shrink-0 mt-0.5 text-on-surface-variant group-hover:text-primary',
35
- childLinkLabel: 'font-medium text-on-surface truncate',
36
- childLinkDescription: 'text-xs text-on-surface-variant/80 line-clamp-2',
37
- childGroup: 'min-w-0',
38
- childGroupLabel: 'px-2.5 pt-1 pb-1.5 font-semibold text-sm text-on-surface-variant',
39
- childGroupList: 'grid gap-0.5',
40
- linkBadgeDot: 'absolute top-1 end-1 size-2 rounded-full bg-error ring-2 ring-surface',
41
- itemActions: 'absolute end-1.5 top-1/2 z-10 -translate-y-1/2 inline-flex items-center opacity-0 transition-opacity focus-within:opacity-100 group-hover/nav-row:opacity-100 has-[[data-state=open]]:opacity-100',
42
- labelActions: 'ms-auto inline-flex items-center',
33
+ childLinkWrapper: "min-w-0 flex flex-col gap-0.5",
34
+ childLinkIcon: "size-5 shrink-0 mt-0.5 text-on-surface-variant group-hover:text-primary",
35
+ childLinkLabel: "font-medium text-on-surface truncate",
36
+ childLinkDescription: "text-xs text-on-surface-variant/80 line-clamp-2",
37
+ childGroup: "min-w-0",
38
+ childGroupLabel: "px-2.5 pt-1 pb-1.5 font-semibold text-sm text-on-surface-variant",
39
+ childGroupList: "grid gap-0.5",
40
+ linkBadgeDot: "absolute top-1 end-1 size-2 rounded-full bg-error ring-2 ring-surface",
41
+ itemActions: "absolute end-1.5 top-1/2 z-10 -translate-y-1/2 inline-flex items-center opacity-0 transition-opacity focus-within:opacity-100 group-hover/nav-row:opacity-100 has-[[data-state=open]]:opacity-100",
42
+ labelActions: "ms-auto inline-flex items-center",
43
43
  content: [
44
- 'top-0 left-0 w-full sm:absolute sm:w-auto',
45
- 'data-[motion=from-start]:animate-[nav-from-start_250ms_ease]',
46
- 'data-[motion=from-end]:animate-[nav-from-end_250ms_ease]',
47
- 'data-[motion=to-start]:animate-[nav-to-start_250ms_ease]',
48
- 'data-[motion=to-end]:animate-[nav-to-end_250ms_ease]'
44
+ "top-0 left-0 w-full sm:absolute sm:w-auto",
45
+ "data-[motion=from-start]:animate-[nav-from-start_250ms_ease]",
46
+ "data-[motion=from-end]:animate-[nav-from-end_250ms_ease]",
47
+ "data-[motion=to-start]:animate-[nav-to-start_250ms_ease]",
48
+ "data-[motion=to-end]:animate-[nav-to-end_250ms_ease]",
49
49
  ],
50
- viewportWrapper: 'absolute top-full left-0 z-50 flex w-full justify-start pt-1.5 [perspective:2000px]',
50
+ viewportWrapper: "absolute top-full left-0 z-50 flex w-full justify-start pt-1.5 [perspective:2000px]",
51
51
  viewport: [
52
- 'relative h-(--bits-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden sm:w-(--bits-navigation-menu-viewport-width)',
53
- 'rounded-xl border border-outline-variant bg-surface-container-low shadow-lg',
54
- 'transition-[width,height] duration-200',
55
- 'data-[state=open]:animate-[nav-scale-in_200ms_ease]',
56
- 'data-[state=closed]:animate-[nav-scale-out_200ms_ease]'
52
+ "relative h-(--bits-navigation-menu-viewport-height) w-full origin-[top_center] overflow-hidden sm:w-(--bits-navigation-menu-viewport-width)",
53
+ "rounded-xl border border-outline-variant bg-surface-container-low shadow-lg",
54
+ "transition-[width,height] duration-200",
55
+ "data-[state=open]:animate-[nav-scale-in_200ms_ease]",
56
+ "data-[state=closed]:animate-[nav-scale-out_200ms_ease]",
57
57
  ],
58
58
  indicator: [
59
- 'top-full z-50 flex h-2 items-end justify-center overflow-hidden',
60
- 'data-[state=visible]:animate-[fade-in_150ms_ease]',
61
- 'data-[state=hidden]:animate-[fade-out_150ms_ease]'
59
+ "top-full z-50 flex h-2 items-end justify-center overflow-hidden",
60
+ "data-[state=visible]:animate-[fade-in_150ms_ease]",
61
+ "data-[state=hidden]:animate-[fade-out_150ms_ease]",
62
62
  ],
63
- arrow: 'relative top-[60%] size-2 rotate-45 rounded-tl-sm border-t border-l border-outline-variant bg-surface-container-low',
64
- toggle: '',
65
- childTrigger: 'group ms-auto inline-flex items-center justify-center transition-transform duration-200'
63
+ arrow: "relative top-[60%] size-2 rotate-45 rounded-tl-sm border-t border-l border-outline-variant bg-surface-container-low",
64
+ toggle: "",
65
+ childTrigger: "group ms-auto inline-flex items-center justify-center transition-transform duration-200",
66
66
  },
67
67
  variants: {
68
68
  variant: {
69
- pill: '',
70
- link: ''
69
+ pill: "",
70
+ link: "",
71
71
  },
72
72
  color: {
73
- primary: { highlight: 'bg-primary' },
74
- secondary: { highlight: 'bg-secondary' },
75
- tertiary: { highlight: 'bg-tertiary' },
76
- success: { highlight: 'bg-success' },
77
- warning: { highlight: 'bg-warning' },
78
- error: { highlight: 'bg-error' },
79
- info: { highlight: 'bg-info' },
80
- surface: { highlight: 'bg-on-surface-variant' }
73
+ primary: { highlight: "bg-primary" },
74
+ secondary: { highlight: "bg-secondary" },
75
+ tertiary: { highlight: "bg-tertiary" },
76
+ success: { highlight: "bg-success" },
77
+ warning: { highlight: "bg-warning" },
78
+ error: { highlight: "bg-error" },
79
+ info: { highlight: "bg-info" },
80
+ surface: { highlight: "bg-on-surface-variant" },
81
81
  },
82
82
  orientation: {
83
83
  horizontal: {
84
- root: 'w-full',
85
- list: 'flex items-center gap-1 overflow-x-auto scrollbar-thin',
86
- separator: 'mx-1 h-5 w-px self-center',
87
- highlight: 'bottom-0 h-0.5'
84
+ root: "w-full",
85
+ list: "flex items-center gap-1 overflow-x-auto scrollbar-thin",
86
+ separator: "mx-1 h-5 w-px self-center",
87
+ highlight: "bottom-0 h-0.5",
88
88
  },
89
89
  vertical: {
90
- root: 'w-full',
91
- list: 'flex flex-col gap-0.5',
92
- item: 'flex flex-col',
93
- separator: 'my-1 h-px w-full',
94
- childList: 'ms-3.5 mt-0.5 gap-0.5 border-s border-outline-variant p-0 ps-2',
95
- highlight: 'start-0 w-0.5'
96
- }
90
+ root: "w-full",
91
+ list: "flex flex-col gap-0.5",
92
+ item: "flex flex-col",
93
+ separator: "my-1 h-px w-full",
94
+ childList: "ms-3.5 mt-0.5 gap-0.5 border-s border-outline-variant p-0 ps-2",
95
+ highlight: "start-0 w-0.5",
96
+ },
97
97
  },
98
98
  highlight: {
99
- true: '',
100
- false: ''
99
+ true: "",
100
+ false: "",
101
101
  },
102
102
  collapsed: {
103
103
  true: {
104
- link: 'justify-center',
105
- linkLabel: 'sr-only',
106
- linkTrailing: 'hidden'
104
+ link: "justify-center",
105
+ linkLabel: "sr-only",
106
+ linkTrailing: "hidden",
107
107
  },
108
- false: ''
108
+ false: "",
109
109
  },
110
110
  stacked: {
111
- true: '',
112
- false: ''
111
+ true: "",
112
+ false: "",
113
113
  },
114
114
  contentOrientation: {
115
115
  horizontal: {},
116
- vertical: {}
116
+ vertical: {},
117
117
  },
118
118
  disabled: {
119
- true: '',
120
- false: ''
121
- }
119
+ true: "",
120
+ false: "",
121
+ },
122
122
  },
123
123
  compoundVariants: [
124
124
  {
125
- orientation: 'horizontal',
125
+ orientation: "horizontal",
126
126
  class: {
127
- item: 'shrink-0',
128
- link: 'w-auto px-2.5 py-1.5',
129
- label: 'w-auto shrink-0 whitespace-nowrap',
130
- childList: 'min-w-60'
131
- }
127
+ item: "shrink-0",
128
+ link: "w-auto px-2.5 py-1.5",
129
+ label: "w-auto shrink-0 whitespace-nowrap",
130
+ childList: "min-w-60",
131
+ },
132
132
  },
133
133
  {
134
- orientation: 'horizontal',
135
- contentOrientation: 'horizontal',
136
- class: { childList: 'sm:w-128 sm:grid-cols-2' }
134
+ orientation: "horizontal",
135
+ contentOrientation: "horizontal",
136
+ class: { childList: "sm:w-128 sm:grid-cols-2" },
137
137
  },
138
138
  {
139
- orientation: 'vertical',
140
- class: { link: 'px-2.5 py-1.5' }
139
+ orientation: "vertical",
140
+ class: { link: "px-2.5 py-1.5" },
141
141
  },
142
142
  {
143
143
  stacked: true,
144
144
  class: {
145
- link: 'flex-col justify-center gap-1 py-2',
146
- linkLabel: 'text-xs leading-tight',
147
- linkTrailing: 'hidden'
148
- }
145
+ link: "flex-col justify-center gap-1 py-2",
146
+ linkLabel: "text-xs leading-tight",
147
+ linkTrailing: "hidden",
148
+ },
149
149
  },
150
150
  {
151
- orientation: 'horizontal',
151
+ orientation: "horizontal",
152
152
  stacked: true,
153
153
  class: {
154
- list: 'justify-around overflow-visible',
155
- item: 'flex-1',
156
- link: 'w-full'
157
- }
154
+ list: "justify-around overflow-visible",
155
+ item: "flex-1",
156
+ link: "w-full",
157
+ },
158
158
  },
159
159
  {
160
160
  collapsed: true,
161
161
  stacked: true,
162
- class: { linkLabel: 'not-sr-only text-xs leading-tight' }
162
+ class: { linkLabel: "not-sr-only text-xs leading-tight" },
163
163
  },
164
164
  {
165
- variant: 'pill',
165
+ variant: "pill",
166
166
  class: {
167
- link: 'hover:bg-surface-container-high hover:text-on-surface data-[state=open]:bg-surface-container-high'
168
- }
167
+ link: "hover:bg-surface-container-high hover:text-on-surface data-[state=open]:bg-surface-container-high",
168
+ },
169
169
  },
170
170
  {
171
- variant: 'link',
171
+ variant: "link",
172
172
  class: {
173
- link: 'hover:text-on-surface data-[state=open]:text-on-surface'
174
- }
173
+ link: "hover:text-on-surface data-[state=open]:text-on-surface",
174
+ },
175
175
  },
176
176
  {
177
- variant: 'pill',
178
- color: 'primary',
177
+ variant: "pill",
178
+ color: "primary",
179
179
  class: {
180
- link: 'data-[active]:bg-primary-container data-[active]:text-on-primary-container focus-visible:ring-primary'
181
- }
180
+ link: "data-[active]:bg-primary-container data-[active]:text-on-primary-container focus-visible:ring-primary",
181
+ },
182
182
  },
183
183
  {
184
- variant: 'pill',
185
- color: 'secondary',
184
+ variant: "pill",
185
+ color: "secondary",
186
186
  class: {
187
- link: 'data-[active]:bg-secondary-container data-[active]:text-on-secondary-container focus-visible:ring-secondary'
188
- }
187
+ link: "data-[active]:bg-secondary-container data-[active]:text-on-secondary-container focus-visible:ring-secondary",
188
+ },
189
189
  },
190
190
  {
191
- variant: 'pill',
192
- color: 'tertiary',
191
+ variant: "pill",
192
+ color: "tertiary",
193
193
  class: {
194
- link: 'data-[active]:bg-tertiary-container data-[active]:text-on-tertiary-container focus-visible:ring-tertiary'
195
- }
194
+ link: "data-[active]:bg-tertiary-container data-[active]:text-on-tertiary-container focus-visible:ring-tertiary",
195
+ },
196
196
  },
197
197
  {
198
- variant: 'pill',
199
- color: 'success',
198
+ variant: "pill",
199
+ color: "success",
200
200
  class: {
201
- link: 'data-[active]:bg-success-container data-[active]:text-on-success-container focus-visible:ring-success'
202
- }
201
+ link: "data-[active]:bg-success-container data-[active]:text-on-success-container focus-visible:ring-success",
202
+ },
203
203
  },
204
204
  {
205
- variant: 'pill',
206
- color: 'warning',
205
+ variant: "pill",
206
+ color: "warning",
207
207
  class: {
208
- link: 'data-[active]:bg-warning-container data-[active]:text-on-warning-container focus-visible:ring-warning'
209
- }
208
+ link: "data-[active]:bg-warning-container data-[active]:text-on-warning-container focus-visible:ring-warning",
209
+ },
210
210
  },
211
211
  {
212
- variant: 'pill',
213
- color: 'error',
212
+ variant: "pill",
213
+ color: "error",
214
214
  class: {
215
- link: 'data-[active]:bg-error-container data-[active]:text-on-error-container focus-visible:ring-error'
216
- }
215
+ link: "data-[active]:bg-error-container data-[active]:text-on-error-container focus-visible:ring-error",
216
+ },
217
217
  },
218
218
  {
219
- variant: 'pill',
220
- color: 'info',
219
+ variant: "pill",
220
+ color: "info",
221
221
  class: {
222
- link: 'data-[active]:bg-info-container data-[active]:text-on-info-container focus-visible:ring-info'
223
- }
222
+ link: "data-[active]:bg-info-container data-[active]:text-on-info-container focus-visible:ring-info",
223
+ },
224
224
  },
225
225
  {
226
- variant: 'pill',
227
- color: 'surface',
226
+ variant: "pill",
227
+ color: "surface",
228
228
  class: {
229
- link: 'data-[active]:bg-surface-container-high data-[active]:text-on-surface focus-visible:ring-outline'
230
- }
229
+ link: "data-[active]:bg-surface-container-high data-[active]:text-on-surface focus-visible:ring-outline",
230
+ },
231
231
  },
232
232
  {
233
- variant: 'link',
234
- color: 'primary',
235
- class: { link: 'data-[active]:text-primary focus-visible:ring-primary' }
233
+ variant: "link",
234
+ color: "primary",
235
+ class: { link: "data-[active]:text-primary focus-visible:ring-primary" },
236
236
  },
237
237
  {
238
- variant: 'link',
239
- color: 'secondary',
240
- class: { link: 'data-[active]:text-secondary focus-visible:ring-secondary' }
238
+ variant: "link",
239
+ color: "secondary",
240
+ class: { link: "data-[active]:text-secondary focus-visible:ring-secondary" },
241
241
  },
242
242
  {
243
- variant: 'link',
244
- color: 'tertiary',
245
- class: { link: 'data-[active]:text-tertiary focus-visible:ring-tertiary' }
243
+ variant: "link",
244
+ color: "tertiary",
245
+ class: { link: "data-[active]:text-tertiary focus-visible:ring-tertiary" },
246
246
  },
247
247
  {
248
- variant: 'link',
249
- color: 'success',
250
- class: { link: 'data-[active]:text-success focus-visible:ring-success' }
248
+ variant: "link",
249
+ color: "success",
250
+ class: { link: "data-[active]:text-success focus-visible:ring-success" },
251
251
  },
252
252
  {
253
- variant: 'link',
254
- color: 'warning',
255
- class: { link: 'data-[active]:text-warning focus-visible:ring-warning' }
253
+ variant: "link",
254
+ color: "warning",
255
+ class: { link: "data-[active]:text-warning focus-visible:ring-warning" },
256
256
  },
257
257
  {
258
- variant: 'link',
259
- color: 'error',
260
- class: { link: 'data-[active]:text-error focus-visible:ring-error' }
258
+ variant: "link",
259
+ color: "error",
260
+ class: { link: "data-[active]:text-error focus-visible:ring-error" },
261
261
  },
262
262
  {
263
- variant: 'link',
264
- color: 'info',
265
- class: { link: 'data-[active]:text-info focus-visible:ring-info' }
263
+ variant: "link",
264
+ color: "info",
265
+ class: { link: "data-[active]:text-info focus-visible:ring-info" },
266
266
  },
267
267
  {
268
- variant: 'link',
269
- color: 'surface',
270
- class: { link: 'data-[active]:text-on-surface focus-visible:ring-outline' }
271
- }
268
+ variant: "link",
269
+ color: "surface",
270
+ class: { link: "data-[active]:text-on-surface focus-visible:ring-outline" },
271
+ },
272
272
  ],
273
273
  defaultVariants: {
274
- variant: 'pill',
275
- color: 'primary',
276
- orientation: 'horizontal',
274
+ variant: "pill",
275
+ color: "primary",
276
+ orientation: "horizontal",
277
277
  highlight: false,
278
278
  collapsed: false,
279
279
  stacked: false,
280
- contentOrientation: 'horizontal',
281
- disabled: false
282
- }
280
+ contentOrientation: "horizontal",
281
+ disabled: false,
282
+ },
283
283
  });
284
284
  export const navigationMenuDefaults = {
285
285
  defaultVariants: navigationMenuVariants.defaultVariants,
286
- slots: {}
286
+ slots: {},
287
287
  };
@@ -93,10 +93,6 @@ let formattedValue = $derived(new Intl.NumberFormat("en-US", {
93
93
  }).format(displayValue));
94
94
  </script>
95
95
 
96
- <span
97
- bind:this={nodeRef}
98
- class={twMerge(styles.base() as string, className)}
99
- {...restProps}
100
- >
96
+ <span bind:this={nodeRef} class={twMerge(styles.base() as string, className)} {...restProps}>
101
97
  {formattedValue}
102
98
  </span>
@@ -1,4 +1,4 @@
1
- import type { NumberTickerProps } from './number-ticker.types.js';
1
+ import type { NumberTickerProps } from "./number-ticker.types.js";
2
2
  declare const NumberTicker: import("svelte").Component<NumberTickerProps, {}, "">;
3
3
  type NumberTicker = ReturnType<typeof NumberTicker>;
4
4
  export default NumberTicker;
@@ -1,4 +1,4 @@
1
- import NumberTicker from './NumberTicker.svelte';
1
+ import NumberTicker from "./NumberTicker.svelte";
2
2
  export { NumberTicker };
3
- export * from './number-ticker.types.js';
4
- export * from './number-ticker.variants.js';
3
+ export * from "./number-ticker.types.js";
4
+ export * from "./number-ticker.variants.js";
@@ -1,4 +1,4 @@
1
- import NumberTicker from './NumberTicker.svelte';
1
+ import NumberTicker from "./NumberTicker.svelte";
2
2
  export { NumberTicker };
3
- export * from './number-ticker.types.js';
4
- export * from './number-ticker.variants.js';
3
+ export * from "./number-ticker.types.js";
4
+ export * from "./number-ticker.variants.js";
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
1
+ import type { HTMLAttributes } from "svelte/elements";
2
2
  export interface NumberTickerProps extends HTMLAttributes<HTMLSpanElement> {
3
3
  /**
4
4
  * The target number to animate to.
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from "tailwind-variants";
2
2
  export declare const numberTickerVariants: import("tailwind-variants").TVReturnType<{
3
3
  [key: string]: {
4
4
  [key: string]: import("tailwind-variants").ClassValue | {