yaxa-svelte 2.0.4 → 2.2.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 (65) hide show
  1. package/README.md +38 -3
  2. package/dist/components/blocks/FAQ.svelte.d.ts +1 -1
  3. package/dist/components/blocks/FeatureGrid.svelte.d.ts +1 -1
  4. package/dist/components/blocks/Testimonials.svelte.d.ts +1 -1
  5. package/dist/components/elements/Avatar.svelte.d.ts +7 -25
  6. package/dist/components/elements/Badge.svelte.d.ts +15 -57
  7. package/dist/components/elements/Button.svelte.d.ts +19 -77
  8. package/dist/components/elements/Carousel.svelte.d.ts +2 -54
  9. package/dist/components/elements/CodeBlock.svelte +237 -8
  10. package/dist/components/elements/CodeBlock.test.js +227 -0
  11. package/dist/components/elements/CodeDiff.svelte +14 -0
  12. package/dist/components/elements/CodeDiff.test.js +16 -0
  13. package/dist/components/elements/EmptyState.svelte.d.ts +6 -26
  14. package/dist/components/elements/Icon.svelte.d.ts +6 -22
  15. package/dist/components/elements/Kbd.svelte.d.ts +5 -19
  16. package/dist/components/elements/Progress.svelte.d.ts +9 -35
  17. package/dist/components/elements/Skeleton.svelte.d.ts +8 -32
  18. package/dist/components/elements/Terminal.svelte.d.ts +1 -1
  19. package/dist/components/elements/Timeline.svelte.d.ts +4 -16
  20. package/dist/components/elements/Tree.svelte.d.ts +3 -13
  21. package/dist/components/elements/VirtualList.svelte.d.ts +3 -13
  22. package/dist/components/forms/Combobox.svelte.d.ts +7 -29
  23. package/dist/components/forms/Input.svelte.d.ts +9 -35
  24. package/dist/components/forms/MultiSelect.svelte.d.ts +7 -29
  25. package/dist/components/forms/NumberInput.svelte.d.ts +7 -29
  26. package/dist/components/forms/Select.svelte.d.ts +7 -29
  27. package/dist/components/forms/Switch.svelte.d.ts +8 -32
  28. package/dist/components/forms/Textarea.svelte.d.ts +11 -45
  29. package/dist/components/layout/Card.svelte.d.ts +10 -42
  30. package/dist/components/layout/Container.svelte.d.ts +7 -25
  31. package/dist/components/layout/DashboardShell.svelte.d.ts +1 -31
  32. package/dist/components/layout/ResizablePanels.svelte.d.ts +1 -35
  33. package/dist/components/navigation/CommandPalette.dom.test.d.ts +1 -0
  34. package/dist/components/navigation/CommandPalette.dom.test.js +76 -0
  35. package/dist/components/navigation/Stepper.svelte.d.ts +3 -13
  36. package/dist/components/overlays/Alert.svelte.d.ts +5 -19
  37. package/dist/components/overlays/Drawer.svelte.d.ts +3 -13
  38. package/dist/components/overlays/Modal.svelte.d.ts +6 -22
  39. package/dist/components/overlays/NotificationCenter.svelte.d.ts +1 -1
  40. package/dist/components/overlays/Slideover.svelte.d.ts +5 -19
  41. package/dist/components/overlays/Toast.svelte.d.ts +12 -44
  42. package/dist/components/saas/OrgSwitcher.svelte.d.ts +1 -1
  43. package/dist/components/saas/PasskeyUI.svelte.d.ts +1 -1
  44. package/dist/server/endpoint/endpoint.test.d.ts +1 -0
  45. package/dist/server/endpoint/endpoint.test.js +364 -0
  46. package/dist/server/endpoint/guards.d.ts +52 -0
  47. package/dist/server/endpoint/guards.js +137 -0
  48. package/dist/server/endpoint/index.d.ts +14 -0
  49. package/dist/server/endpoint/index.js +238 -0
  50. package/dist/server/endpoint/problem.d.ts +26 -0
  51. package/dist/server/endpoint/problem.js +62 -0
  52. package/dist/server/endpoint/types.d.ts +144 -0
  53. package/dist/server/endpoint/types.js +1 -0
  54. package/dist/server/endpoint/validate.d.ts +21 -0
  55. package/dist/server/endpoint/validate.js +128 -0
  56. package/dist/server/index.d.ts +2 -0
  57. package/dist/server/index.js +2 -0
  58. package/dist/server/polar/index.d.ts +2 -1
  59. package/dist/server/polar/index.js +9 -8
  60. package/dist/server/polar/webhook.js +14 -11
  61. package/dist/server/polar/webhook.test.js +81 -0
  62. package/dist/testing/index.d.ts +2 -0
  63. package/dist/testing/index.js +12 -1
  64. package/dist/utils/cn.d.ts +2 -2
  65. package/package.json +11 -13
@@ -1,29 +1,13 @@
1
1
  import type { Component, Snippet } from 'svelte';
2
2
  export declare const iconVariants: import("tailwind-variants").TVReturnType<{
3
3
  size: {
4
- xs: "w-3.5 h-3.5";
5
- sm: "w-4 h-4";
6
- md: "w-5 h-5";
7
- lg: "w-6 h-6";
8
- xl: "w-8 h-8";
4
+ xs: string;
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
+ xl: string;
9
9
  };
10
- }, undefined, "inline-flex shrink-0 items-center justify-center", {
11
- size: {
12
- xs: "w-3.5 h-3.5";
13
- sm: "w-4 h-4";
14
- md: "w-5 h-5";
15
- lg: "w-6 h-6";
16
- xl: "w-8 h-8";
17
- };
18
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
19
- size: {
20
- xs: "w-3.5 h-3.5";
21
- sm: "w-4 h-4";
22
- md: "w-5 h-5";
23
- lg: "w-6 h-6";
24
- xl: "w-8 h-8";
25
- };
26
- }, undefined>>;
10
+ }, undefined, "inline-flex shrink-0 items-center justify-center", undefined, undefined, undefined>;
27
11
  export type IconSource = string | Component<{
28
12
  class?: string;
29
13
  size?: string | number;
@@ -2,26 +2,12 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const kbdVariants: import("tailwind-variants").TVReturnType<{
4
4
  size: {
5
- xs: "h-4 min-w-[16px] px-1 text-[10px]";
6
- sm: "h-5 min-w-[20px] px-1.5 text-xs";
7
- md: "h-6 min-w-[24px] px-2 text-xs";
8
- lg: "h-7 min-w-[28px] px-2.5 text-sm";
5
+ xs: string;
6
+ sm: string;
7
+ md: string;
8
+ lg: string;
9
9
  };
10
- }, undefined, "inline-flex items-center justify-center font-mono font-medium rounded border border-neutral-300 bg-neutral-100 text-neutral-700 shadow-xs dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-300 select-none", {
11
- size: {
12
- xs: "h-4 min-w-[16px] px-1 text-[10px]";
13
- sm: "h-5 min-w-[20px] px-1.5 text-xs";
14
- md: "h-6 min-w-[24px] px-2 text-xs";
15
- lg: "h-7 min-w-[28px] px-2.5 text-sm";
16
- };
17
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
18
- size: {
19
- xs: "h-4 min-w-[16px] px-1 text-[10px]";
20
- sm: "h-5 min-w-[20px] px-1.5 text-xs";
21
- md: "h-6 min-w-[24px] px-2 text-xs";
22
- lg: "h-7 min-w-[28px] px-2.5 text-sm";
23
- };
24
- }, undefined>>;
10
+ }, undefined, "inline-flex items-center justify-center font-mono font-medium rounded border border-neutral-300 bg-neutral-100 text-neutral-700 shadow-xs dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-300 select-none", undefined, undefined, undefined>;
25
11
  export type KbdProps = VariantProps<typeof kbdVariants> & {
26
12
  value?: string;
27
13
  keys?: string[];
@@ -1,44 +1,18 @@
1
1
  import { type VariantProps } from '../../utils/cn.js';
2
2
  export declare const progressVariants: import("tailwind-variants").TVReturnType<{
3
3
  size: {
4
- xs: "h-1";
5
- sm: "h-1.5";
6
- md: "h-2.5";
7
- lg: "h-4";
4
+ xs: string;
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
8
  };
9
9
  color: {
10
- primary: "[&>div]:bg-primary-600";
11
- success: "[&>div]:bg-emerald-600";
12
- warning: "[&>div]:bg-amber-600";
13
- error: "[&>div]:bg-rose-600";
10
+ primary: string;
11
+ success: string;
12
+ warning: string;
13
+ error: string;
14
14
  };
15
- }, undefined, "relative w-full overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800", {
16
- size: {
17
- xs: "h-1";
18
- sm: "h-1.5";
19
- md: "h-2.5";
20
- lg: "h-4";
21
- };
22
- color: {
23
- primary: "[&>div]:bg-primary-600";
24
- success: "[&>div]:bg-emerald-600";
25
- warning: "[&>div]:bg-amber-600";
26
- error: "[&>div]:bg-rose-600";
27
- };
28
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
29
- size: {
30
- xs: "h-1";
31
- sm: "h-1.5";
32
- md: "h-2.5";
33
- lg: "h-4";
34
- };
35
- color: {
36
- primary: "[&>div]:bg-primary-600";
37
- success: "[&>div]:bg-emerald-600";
38
- warning: "[&>div]:bg-amber-600";
39
- error: "[&>div]:bg-rose-600";
40
- };
41
- }, undefined>>;
15
+ }, undefined, "relative w-full overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800", undefined, undefined, undefined>;
42
16
  export type ProgressProps = VariantProps<typeof progressVariants> & {
43
17
  value?: number;
44
18
  max?: number;
@@ -1,41 +1,17 @@
1
1
  import { type VariantProps } from '../../utils/cn.js';
2
2
  export declare const skeletonVariants: import("tailwind-variants").TVReturnType<{
3
3
  variant: {
4
- pulse: "animate-pulse";
5
- shimmer: "before:absolute before:inset-0 before:-translate-x-full before:animate-[yaxa-shimmer-slide_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/60 before:to-transparent motion-reduce:before:animate-none dark:before:via-white/20";
6
- none: "";
4
+ pulse: string;
5
+ shimmer: string;
6
+ none: string;
7
7
  };
8
8
  shape: {
9
- rectangle: "rounded-lg";
10
- circle: "rounded-full aspect-square";
11
- pill: "rounded-full";
12
- text: "rounded h-4 my-1";
9
+ rectangle: string;
10
+ circle: string;
11
+ pill: string;
12
+ text: string;
13
13
  };
14
- }, undefined, "relative overflow-hidden bg-neutral-200 select-none motion-reduce:animate-none dark:bg-neutral-800", {
15
- variant: {
16
- pulse: "animate-pulse";
17
- shimmer: "before:absolute before:inset-0 before:-translate-x-full before:animate-[yaxa-shimmer-slide_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/60 before:to-transparent motion-reduce:before:animate-none dark:before:via-white/20";
18
- none: "";
19
- };
20
- shape: {
21
- rectangle: "rounded-lg";
22
- circle: "rounded-full aspect-square";
23
- pill: "rounded-full";
24
- text: "rounded h-4 my-1";
25
- };
26
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
27
- variant: {
28
- pulse: "animate-pulse";
29
- shimmer: "before:absolute before:inset-0 before:-translate-x-full before:animate-[yaxa-shimmer-slide_1.5s_infinite] before:bg-gradient-to-r before:from-transparent before:via-white/60 before:to-transparent motion-reduce:before:animate-none dark:before:via-white/20";
30
- none: "";
31
- };
32
- shape: {
33
- rectangle: "rounded-lg";
34
- circle: "rounded-full aspect-square";
35
- pill: "rounded-full";
36
- text: "rounded h-4 my-1";
37
- };
38
- }, undefined>>;
14
+ }, undefined, "relative overflow-hidden bg-neutral-200 select-none motion-reduce:animate-none dark:bg-neutral-800", undefined, undefined, undefined>;
39
15
  export type SkeletonRecipe = 'card' | 'user' | 'table-row' | 'metric';
40
16
  export type SkeletonProps = VariantProps<typeof skeletonVariants> & {
41
17
  recipe?: SkeletonRecipe;
@@ -5,7 +5,7 @@ export interface TerminalLine {
5
5
  comment?: string;
6
6
  prompt?: string;
7
7
  }
8
- export declare const terminalVariants: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "w-full overflow-hidden rounded-xl border border-neutral-800 bg-neutral-950 font-mono shadow-2xl transition-all", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
8
+ export declare const terminalVariants: import("tailwind-variants").TVReturnType<{}, undefined, "w-full overflow-hidden rounded-xl border border-neutral-800 bg-neutral-950 font-mono shadow-2xl transition-all", undefined, undefined, undefined>;
9
9
  export type TerminalProps = VariantProps<typeof terminalVariants> & {
10
10
  title?: string;
11
11
  lines?: TerminalLine[];
@@ -12,23 +12,11 @@ export interface TimelineItem {
12
12
  }
13
13
  export declare const timelineVariants: import("tailwind-variants").TVReturnType<{
14
14
  size: {
15
- sm: "space-y-4 text-xs";
16
- md: "space-y-6 text-sm";
17
- lg: "space-y-8 text-base";
15
+ sm: string;
16
+ md: string;
17
+ lg: string;
18
18
  };
19
- }, undefined, "relative space-y-6", {
20
- size: {
21
- sm: "space-y-4 text-xs";
22
- md: "space-y-6 text-sm";
23
- lg: "space-y-8 text-base";
24
- };
25
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
26
- size: {
27
- sm: "space-y-4 text-xs";
28
- md: "space-y-6 text-sm";
29
- lg: "space-y-8 text-base";
30
- };
31
- }, undefined>>;
19
+ }, undefined, "relative space-y-6", undefined, undefined, undefined>;
32
20
  export type TimelineProps = VariantProps<typeof timelineVariants> & {
33
21
  items?: TimelineItem[];
34
22
  itemSnippet?: Snippet<[TimelineItem]>;
@@ -10,20 +10,10 @@ export interface TreeNode {
10
10
  }
11
11
  export declare const treeVariants: import("tailwind-variants").TVReturnType<{
12
12
  size: {
13
- sm: "text-xs";
14
- md: "text-sm";
13
+ sm: string;
14
+ md: string;
15
15
  };
16
- }, undefined, "w-full select-none font-sans text-xs", {
17
- size: {
18
- sm: "text-xs";
19
- md: "text-sm";
20
- };
21
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
22
- size: {
23
- sm: "text-xs";
24
- md: "text-sm";
25
- };
26
- }, undefined>>;
16
+ }, undefined, "w-full select-none font-sans text-xs", undefined, undefined, undefined>;
27
17
  export type TreeProps = VariantProps<typeof treeVariants> & {
28
18
  items?: TreeNode[];
29
19
  selectedId?: string;
@@ -2,20 +2,10 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const virtualListVariants: import("tailwind-variants").TVReturnType<{
4
4
  bordered: {
5
- true: "border border-neutral-200 dark:border-neutral-800";
6
- false: "border-0";
5
+ true: string;
6
+ false: string;
7
7
  };
8
- }, undefined, "relative w-full overflow-y-auto rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900", {
9
- bordered: {
10
- true: "border border-neutral-200 dark:border-neutral-800";
11
- false: "border-0";
12
- };
13
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
14
- bordered: {
15
- true: "border border-neutral-200 dark:border-neutral-800";
16
- false: "border-0";
17
- };
18
- }, undefined>>;
8
+ }, undefined, "relative w-full overflow-y-auto rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900", undefined, undefined, undefined>;
19
9
  export type VirtualListProps<T> = VariantProps<typeof virtualListVariants> & {
20
10
  items: T[];
21
11
  itemHeight?: number;
@@ -10,38 +10,16 @@ export interface ComboboxOption {
10
10
  }
11
11
  export declare const comboboxVariants: import("tailwind-variants").TVReturnType<{
12
12
  size: {
13
- sm: "h-9 px-3 text-xs gap-2";
14
- md: "h-10 px-3.5 text-sm gap-2.5";
15
- lg: "h-12 px-4 text-base gap-3";
13
+ sm: string;
14
+ md: string;
15
+ lg: string;
16
16
  };
17
17
  status: {
18
- default: "border-neutral-300 focus:border-primary-500 focus:ring-primary-500/20 dark:border-neutral-700";
19
- error: "border-rose-500 text-rose-900 focus:border-rose-500 focus:ring-rose-500/20 dark:text-rose-100";
20
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20 dark:border-emerald-500";
18
+ default: string;
19
+ error: string;
20
+ success: string;
21
21
  };
22
- }, undefined, "flex w-full items-center justify-between rounded-lg border bg-white text-neutral-900 transition-all duration-150 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100", {
23
- size: {
24
- sm: "h-9 px-3 text-xs gap-2";
25
- md: "h-10 px-3.5 text-sm gap-2.5";
26
- lg: "h-12 px-4 text-base gap-3";
27
- };
28
- status: {
29
- default: "border-neutral-300 focus:border-primary-500 focus:ring-primary-500/20 dark:border-neutral-700";
30
- error: "border-rose-500 text-rose-900 focus:border-rose-500 focus:ring-rose-500/20 dark:text-rose-100";
31
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20 dark:border-emerald-500";
32
- };
33
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
34
- size: {
35
- sm: "h-9 px-3 text-xs gap-2";
36
- md: "h-10 px-3.5 text-sm gap-2.5";
37
- lg: "h-12 px-4 text-base gap-3";
38
- };
39
- status: {
40
- default: "border-neutral-300 focus:border-primary-500 focus:ring-primary-500/20 dark:border-neutral-700";
41
- error: "border-rose-500 text-rose-900 focus:border-rose-500 focus:ring-rose-500/20 dark:text-rose-100";
42
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20 dark:border-emerald-500";
43
- };
44
- }, undefined>>;
22
+ }, undefined, "flex w-full items-center justify-between rounded-lg border bg-white text-neutral-900 transition-all duration-150 focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100", undefined, undefined, undefined>;
45
23
  export type ComboboxProps = VariantProps<typeof comboboxVariants> & {
46
24
  id?: string;
47
25
  value?: string;
@@ -4,44 +4,18 @@ import type { HTMLInputAttributes } from 'svelte/elements';
4
4
  import type { IconSource } from '../elements/Icon.svelte';
5
5
  export declare const inputVariants: import("tailwind-variants").TVReturnType<{
6
6
  size: {
7
- xs: "text-xs py-1 px-2";
8
- sm: "text-sm py-1.5 px-3";
9
- md: "text-base py-2 px-3.5";
10
- lg: "text-base py-2.5 px-4";
11
- xl: "text-lg py-3 px-4.5";
7
+ xs: string;
8
+ sm: string;
9
+ md: string;
10
+ lg: string;
11
+ xl: string;
12
12
  };
13
13
  status: {
14
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500";
15
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus-visible:ring-rose-500/30";
16
- success: "border-emerald-500 focus:border-emerald-500 focus-visible:ring-emerald-500/30";
14
+ default: string;
15
+ error: string;
16
+ success: string;
17
17
  };
18
- }, undefined, "w-full rounded-lg border bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 dark:placeholder:text-neutral-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--yaxa-ring)] focus-visible:border-primary-500 transition-all duration-150 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-neutral-50 dark:disabled:bg-neutral-950 motion-reduce:transition-none", {
19
- size: {
20
- xs: "text-xs py-1 px-2";
21
- sm: "text-sm py-1.5 px-3";
22
- md: "text-base py-2 px-3.5";
23
- lg: "text-base py-2.5 px-4";
24
- xl: "text-lg py-3 px-4.5";
25
- };
26
- status: {
27
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500";
28
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus-visible:ring-rose-500/30";
29
- success: "border-emerald-500 focus:border-emerald-500 focus-visible:ring-emerald-500/30";
30
- };
31
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
32
- size: {
33
- xs: "text-xs py-1 px-2";
34
- sm: "text-sm py-1.5 px-3";
35
- md: "text-base py-2 px-3.5";
36
- lg: "text-base py-2.5 px-4";
37
- xl: "text-lg py-3 px-4.5";
38
- };
39
- status: {
40
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500";
41
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus-visible:ring-rose-500/30";
42
- success: "border-emerald-500 focus:border-emerald-500 focus-visible:ring-emerald-500/30";
43
- };
44
- }, undefined>>;
18
+ }, undefined, "w-full rounded-lg border bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 dark:placeholder:text-neutral-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--yaxa-ring)] focus-visible:border-primary-500 transition-all duration-150 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-neutral-50 dark:disabled:bg-neutral-950 motion-reduce:transition-none", undefined, undefined, undefined>;
45
19
  export interface InputSlots {
46
20
  root?: string;
47
21
  base?: string;
@@ -9,38 +9,16 @@ export interface MultiSelectOption {
9
9
  }
10
10
  export declare const multiSelectVariants: import("tailwind-variants").TVReturnType<{
11
11
  size: {
12
- sm: "min-h-[36px] text-xs p-1 gap-1";
13
- md: "min-h-[40px] text-sm p-1.5 gap-1.5";
14
- lg: "min-h-[48px] text-base p-2 gap-2";
12
+ sm: string;
13
+ md: string;
14
+ lg: string;
15
15
  };
16
16
  status: {
17
- default: "border-neutral-300 focus-within:border-primary-500 focus-within:ring-primary-500/20 dark:border-neutral-700";
18
- error: "border-rose-500 text-rose-900 focus-within:border-rose-500 focus-within:ring-rose-500/20 dark:text-rose-100";
19
- success: "border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20 dark:border-emerald-500";
17
+ default: string;
18
+ error: string;
19
+ success: string;
20
20
  };
21
- }, undefined, "flex min-h-[40px] w-full flex-wrap items-center gap-1.5 rounded-lg border bg-white p-1.5 text-neutral-900 transition-all duration-150 focus-within:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100", {
22
- size: {
23
- sm: "min-h-[36px] text-xs p-1 gap-1";
24
- md: "min-h-[40px] text-sm p-1.5 gap-1.5";
25
- lg: "min-h-[48px] text-base p-2 gap-2";
26
- };
27
- status: {
28
- default: "border-neutral-300 focus-within:border-primary-500 focus-within:ring-primary-500/20 dark:border-neutral-700";
29
- error: "border-rose-500 text-rose-900 focus-within:border-rose-500 focus-within:ring-rose-500/20 dark:text-rose-100";
30
- success: "border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20 dark:border-emerald-500";
31
- };
32
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
33
- size: {
34
- sm: "min-h-[36px] text-xs p-1 gap-1";
35
- md: "min-h-[40px] text-sm p-1.5 gap-1.5";
36
- lg: "min-h-[48px] text-base p-2 gap-2";
37
- };
38
- status: {
39
- default: "border-neutral-300 focus-within:border-primary-500 focus-within:ring-primary-500/20 dark:border-neutral-700";
40
- error: "border-rose-500 text-rose-900 focus-within:border-rose-500 focus-within:ring-rose-500/20 dark:text-rose-100";
41
- success: "border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20 dark:border-emerald-500";
42
- };
43
- }, undefined>>;
21
+ }, undefined, "flex min-h-[40px] w-full flex-wrap items-center gap-1.5 rounded-lg border bg-white p-1.5 text-neutral-900 transition-all duration-150 focus-within:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100", undefined, undefined, undefined>;
44
22
  export type MultiSelectProps = VariantProps<typeof multiSelectVariants> & {
45
23
  id?: string;
46
24
  values?: string[];
@@ -1,38 +1,16 @@
1
1
  import { type VariantProps } from '../../utils/cn.js';
2
2
  export declare const numberInputVariants: import("tailwind-variants").TVReturnType<{
3
3
  size: {
4
- sm: "h-9 text-xs";
5
- md: "h-10 text-sm";
6
- lg: "h-12 text-base";
4
+ sm: string;
5
+ md: string;
6
+ lg: string;
7
7
  };
8
8
  status: {
9
- default: "border-neutral-300 focus-within:border-primary-500 focus-within:ring-primary-500/20 dark:border-neutral-700";
10
- error: "border-rose-500 text-rose-900 focus-within:border-rose-500 focus-within:ring-rose-500/20 dark:text-rose-100";
11
- success: "border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20 dark:border-emerald-500";
9
+ default: string;
10
+ error: string;
11
+ success: string;
12
12
  };
13
- }, undefined, "flex items-center rounded-lg border bg-white text-neutral-900 transition-all duration-150 focus-within:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100", {
14
- size: {
15
- sm: "h-9 text-xs";
16
- md: "h-10 text-sm";
17
- lg: "h-12 text-base";
18
- };
19
- status: {
20
- default: "border-neutral-300 focus-within:border-primary-500 focus-within:ring-primary-500/20 dark:border-neutral-700";
21
- error: "border-rose-500 text-rose-900 focus-within:border-rose-500 focus-within:ring-rose-500/20 dark:text-rose-100";
22
- success: "border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20 dark:border-emerald-500";
23
- };
24
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
25
- size: {
26
- sm: "h-9 text-xs";
27
- md: "h-10 text-sm";
28
- lg: "h-12 text-base";
29
- };
30
- status: {
31
- default: "border-neutral-300 focus-within:border-primary-500 focus-within:ring-primary-500/20 dark:border-neutral-700";
32
- error: "border-rose-500 text-rose-900 focus-within:border-rose-500 focus-within:ring-rose-500/20 dark:text-rose-100";
33
- success: "border-emerald-500 focus-within:border-emerald-500 focus-within:ring-emerald-500/20 dark:border-emerald-500";
34
- };
35
- }, undefined>>;
13
+ }, undefined, "flex items-center rounded-lg border bg-white text-neutral-900 transition-all duration-150 focus-within:ring-2 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-neutral-900 dark:text-neutral-100", undefined, undefined, undefined>;
36
14
  export type NumberInputProps = VariantProps<typeof numberInputVariants> & {
37
15
  id?: string;
38
16
  value?: number;
@@ -8,38 +8,16 @@ export interface SelectOption {
8
8
  }
9
9
  export declare const selectVariants: import("tailwind-variants").TVReturnType<{
10
10
  size: {
11
- sm: "text-sm py-1.5 pl-3 pr-8";
12
- md: "text-base py-2 pl-3.5 pr-10";
13
- lg: "text-base py-2.5 pl-4 pr-10";
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
14
  };
15
15
  status: {
16
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500 focus:ring-primary-500/20";
17
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus:ring-rose-500/20";
18
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20";
16
+ default: string;
17
+ error: string;
18
+ success: string;
19
19
  };
20
- }, undefined, "w-full rounded-lg border bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-100 focus:outline-none focus:ring-2 transition-all duration-150 disabled:cursor-not-allowed disabled:opacity-50 appearance-none", {
21
- size: {
22
- sm: "text-sm py-1.5 pl-3 pr-8";
23
- md: "text-base py-2 pl-3.5 pr-10";
24
- lg: "text-base py-2.5 pl-4 pr-10";
25
- };
26
- status: {
27
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500 focus:ring-primary-500/20";
28
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus:ring-rose-500/20";
29
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20";
30
- };
31
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
32
- size: {
33
- sm: "text-sm py-1.5 pl-3 pr-8";
34
- md: "text-base py-2 pl-3.5 pr-10";
35
- lg: "text-base py-2.5 pl-4 pr-10";
36
- };
37
- status: {
38
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500 focus:ring-primary-500/20";
39
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus:ring-rose-500/20";
40
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20";
41
- };
42
- }, undefined>>;
20
+ }, undefined, "w-full rounded-lg border bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-100 focus:outline-none focus:ring-2 transition-all duration-150 disabled:cursor-not-allowed disabled:opacity-50 appearance-none", undefined, undefined, undefined>;
43
21
  export type SelectProps = VariantProps<typeof selectVariants> & {
44
22
  id?: string;
45
23
  value?: string;
@@ -2,42 +2,18 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const switchVariants: import("tailwind-variants").TVReturnType<{
4
4
  size: {
5
- sm: "h-5 w-9";
6
- md: "h-6 w-11";
7
- lg: "h-7 w-14";
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
8
  };
9
- }, undefined, "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--yaxa-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--yaxa-bg)] disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none data-[state=checked]:bg-primary-600 data-[state=unchecked]:bg-neutral-300 dark:data-[state=unchecked]:bg-neutral-700", {
10
- size: {
11
- sm: "h-5 w-9";
12
- md: "h-6 w-11";
13
- lg: "h-7 w-14";
14
- };
15
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
16
- size: {
17
- sm: "h-5 w-9";
18
- md: "h-6 w-11";
19
- lg: "h-7 w-14";
20
- };
21
- }, undefined>>;
9
+ }, undefined, "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--yaxa-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--yaxa-bg)] disabled:cursor-not-allowed disabled:opacity-50 motion-reduce:transition-none data-[state=checked]:bg-primary-600 data-[state=unchecked]:bg-neutral-300 dark:data-[state=unchecked]:bg-neutral-700", undefined, undefined, undefined>;
22
10
  export declare const thumbVariants: import("tailwind-variants").TVReturnType<{
23
11
  size: {
24
- sm: "h-4 w-4 data-[state=checked]:translate-x-4";
25
- md: "h-5 w-5 data-[state=checked]:translate-x-5";
26
- lg: "h-6 w-6 data-[state=checked]:translate-x-7";
27
- };
28
- }, undefined, "pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform duration-200 motion-reduce:transition-none data-[state=unchecked]:translate-x-0", {
29
- size: {
30
- sm: "h-4 w-4 data-[state=checked]:translate-x-4";
31
- md: "h-5 w-5 data-[state=checked]:translate-x-5";
32
- lg: "h-6 w-6 data-[state=checked]:translate-x-7";
33
- };
34
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
35
- size: {
36
- sm: "h-4 w-4 data-[state=checked]:translate-x-4";
37
- md: "h-5 w-5 data-[state=checked]:translate-x-5";
38
- lg: "h-6 w-6 data-[state=checked]:translate-x-7";
12
+ sm: string;
13
+ md: string;
14
+ lg: string;
39
15
  };
40
- }, undefined>>;
16
+ }, undefined, "pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform duration-200 motion-reduce:transition-none data-[state=unchecked]:translate-x-0", undefined, undefined, undefined>;
41
17
  export interface SwitchSlots {
42
18
  root?: string;
43
19
  track?: string;
@@ -2,56 +2,22 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { HTMLTextareaAttributes } from 'svelte/elements';
3
3
  export declare const textareaVariants: import("tailwind-variants").TVReturnType<{
4
4
  size: {
5
- sm: "text-sm p-2.5";
6
- md: "text-base p-3";
7
- lg: "text-base p-4";
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
8
  };
9
9
  status: {
10
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500 focus:ring-primary-500/20";
11
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus:ring-rose-500/20";
12
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20";
10
+ default: string;
11
+ error: string;
12
+ success: string;
13
13
  };
14
14
  resize: {
15
- none: "resize-none";
16
- vertical: "resize-y";
17
- horizontal: "resize-x";
18
- both: "resize";
15
+ none: string;
16
+ vertical: string;
17
+ horizontal: string;
18
+ both: string;
19
19
  };
20
- }, undefined, "w-full rounded-lg border bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 dark:placeholder:text-neutral-500 focus:outline-none focus:ring-2 transition-all duration-150 disabled:cursor-not-allowed disabled:opacity-50", {
21
- size: {
22
- sm: "text-sm p-2.5";
23
- md: "text-base p-3";
24
- lg: "text-base p-4";
25
- };
26
- status: {
27
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500 focus:ring-primary-500/20";
28
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus:ring-rose-500/20";
29
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20";
30
- };
31
- resize: {
32
- none: "resize-none";
33
- vertical: "resize-y";
34
- horizontal: "resize-x";
35
- both: "resize";
36
- };
37
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
38
- size: {
39
- sm: "text-sm p-2.5";
40
- md: "text-base p-3";
41
- lg: "text-base p-4";
42
- };
43
- status: {
44
- default: "border-neutral-300 dark:border-neutral-700 focus:border-primary-500 focus:ring-primary-500/20";
45
- error: "border-rose-500 text-rose-900 dark:text-rose-100 focus:border-rose-500 focus:ring-rose-500/20";
46
- success: "border-emerald-500 focus:border-emerald-500 focus:ring-emerald-500/20";
47
- };
48
- resize: {
49
- none: "resize-none";
50
- vertical: "resize-y";
51
- horizontal: "resize-x";
52
- both: "resize";
53
- };
54
- }, undefined>>;
20
+ }, undefined, "w-full rounded-lg border bg-white dark:bg-neutral-900 text-neutral-900 dark:text-neutral-100 placeholder:text-neutral-400 dark:placeholder:text-neutral-500 focus:outline-none focus:ring-2 transition-all duration-150 disabled:cursor-not-allowed disabled:opacity-50", undefined, undefined, undefined>;
55
21
  export type TextareaProps = Omit<HTMLTextareaAttributes, 'size'> & VariantProps<typeof textareaVariants> & {
56
22
  value?: string;
57
23
  rows?: number;