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
@@ -2,53 +2,21 @@ import { type VariantProps } from '../../utils/cn';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const cardVariants: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
5
- outline: "border border-neutral-200 bg-white/80 backdrop-blur-xs shadow-xs dark:border-neutral-800 dark:bg-neutral-900/80 yaxa-surface-elevated";
6
- solid: "bg-white shadow-md dark:bg-neutral-900 yaxa-surface-elevated";
7
- soft: "bg-neutral-50 dark:bg-neutral-900/50";
8
- subtle: "border border-neutral-200/60 bg-neutral-50/50 dark:border-neutral-800/60 dark:bg-neutral-900/40";
5
+ outline: string;
6
+ solid: string;
7
+ soft: string;
8
+ subtle: string;
9
9
  };
10
10
  hover: {
11
- true: "hover:shadow-md hover:border-neutral-300 dark:hover:border-neutral-700 hover:-translate-y-0.5 motion-reduce:transform-none";
11
+ true: string;
12
12
  };
13
13
  padding: {
14
- none: "";
15
- sm: "p-4";
16
- md: "p-6";
17
- lg: "p-8";
14
+ none: string;
15
+ sm: string;
16
+ md: string;
17
+ lg: string;
18
18
  };
19
- }, undefined, "rounded-xl transition-all duration-200 overflow-hidden", {
20
- variant: {
21
- outline: "border border-neutral-200 bg-white/80 backdrop-blur-xs shadow-xs dark:border-neutral-800 dark:bg-neutral-900/80 yaxa-surface-elevated";
22
- solid: "bg-white shadow-md dark:bg-neutral-900 yaxa-surface-elevated";
23
- soft: "bg-neutral-50 dark:bg-neutral-900/50";
24
- subtle: "border border-neutral-200/60 bg-neutral-50/50 dark:border-neutral-800/60 dark:bg-neutral-900/40";
25
- };
26
- hover: {
27
- true: "hover:shadow-md hover:border-neutral-300 dark:hover:border-neutral-700 hover:-translate-y-0.5 motion-reduce:transform-none";
28
- };
29
- padding: {
30
- none: "";
31
- sm: "p-4";
32
- md: "p-6";
33
- lg: "p-8";
34
- };
35
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
36
- variant: {
37
- outline: "border border-neutral-200 bg-white/80 backdrop-blur-xs shadow-xs dark:border-neutral-800 dark:bg-neutral-900/80 yaxa-surface-elevated";
38
- solid: "bg-white shadow-md dark:bg-neutral-900 yaxa-surface-elevated";
39
- soft: "bg-neutral-50 dark:bg-neutral-900/50";
40
- subtle: "border border-neutral-200/60 bg-neutral-50/50 dark:border-neutral-800/60 dark:bg-neutral-900/40";
41
- };
42
- hover: {
43
- true: "hover:shadow-md hover:border-neutral-300 dark:hover:border-neutral-700 hover:-translate-y-0.5 motion-reduce:transform-none";
44
- };
45
- padding: {
46
- none: "";
47
- sm: "p-4";
48
- md: "p-6";
49
- lg: "p-8";
50
- };
51
- }, undefined>>;
19
+ }, undefined, "rounded-xl transition-all duration-200 overflow-hidden", undefined, undefined, undefined>;
52
20
  export interface CardSlots {
53
21
  root?: string;
54
22
  header?: string;
@@ -2,32 +2,14 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const containerVariants: import("tailwind-variants").TVReturnType<{
4
4
  size: {
5
- sm: "max-w-3xl";
6
- md: "max-w-5xl";
7
- lg: "max-w-7xl";
8
- xl: "max-w-(--breakpoint-xl)";
9
- '2xl': "max-w-(--breakpoint-2xl)";
10
- full: "max-w-full";
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
+ xl: string;
9
+ '2xl': string;
10
+ full: string;
11
11
  };
12
- }, undefined, "mx-auto px-4 sm:px-6 lg:px-8 w-full", {
13
- size: {
14
- sm: "max-w-3xl";
15
- md: "max-w-5xl";
16
- lg: "max-w-7xl";
17
- xl: "max-w-(--breakpoint-xl)";
18
- '2xl': "max-w-(--breakpoint-2xl)";
19
- full: "max-w-full";
20
- };
21
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
22
- size: {
23
- sm: "max-w-3xl";
24
- md: "max-w-5xl";
25
- lg: "max-w-7xl";
26
- xl: "max-w-(--breakpoint-xl)";
27
- '2xl': "max-w-(--breakpoint-2xl)";
28
- full: "max-w-full";
29
- };
30
- }, undefined>>;
12
+ }, undefined, "mx-auto px-4 sm:px-6 lg:px-8 w-full", undefined, undefined, undefined>;
31
13
  export type ContainerProps = VariantProps<typeof containerVariants> & {
32
14
  class?: string;
33
15
  children?: Snippet;
@@ -15,37 +15,7 @@ export declare const dashboardShellVariants: import("tailwind-variants").TVRetur
15
15
  topbar: string;
16
16
  main: string;
17
17
  content: string;
18
- }, undefined, {
19
- collapsed: {
20
- true: {
21
- sidebar: string;
22
- };
23
- false: {
24
- sidebar: string;
25
- };
26
- };
27
- }, {
28
- root: string;
29
- sidebar: string;
30
- topbar: string;
31
- main: string;
32
- content: string;
33
- }, import("tailwind-variants").TVReturnTypeLike<{
34
- collapsed: {
35
- true: {
36
- sidebar: string;
37
- };
38
- false: {
39
- sidebar: string;
40
- };
41
- };
42
- }, {
43
- root: string;
44
- sidebar: string;
45
- topbar: string;
46
- main: string;
47
- content: string;
48
- }>>;
18
+ }, undefined, undefined, undefined, undefined>;
49
19
  export type DashboardShellProps = VariantProps<typeof dashboardShellVariants> & {
50
20
  collapsed?: boolean;
51
21
  mobileOpen?: boolean;
@@ -17,41 +17,7 @@ export declare const resizablePanelsVariants: import("tailwind-variants").TVRetu
17
17
  root: string;
18
18
  handle: string;
19
19
  grip: string;
20
- }, undefined, {
21
- direction: {
22
- horizontal: {
23
- root: string;
24
- handle: string;
25
- grip: string;
26
- };
27
- vertical: {
28
- root: string;
29
- handle: string;
30
- grip: string;
31
- };
32
- };
33
- }, {
34
- root: string;
35
- handle: string;
36
- grip: string;
37
- }, import("tailwind-variants").TVReturnTypeLike<{
38
- direction: {
39
- horizontal: {
40
- root: string;
41
- handle: string;
42
- grip: string;
43
- };
44
- vertical: {
45
- root: string;
46
- handle: string;
47
- grip: string;
48
- };
49
- };
50
- }, {
51
- root: string;
52
- handle: string;
53
- grip: string;
54
- }>>;
20
+ }, undefined, undefined, undefined, undefined>;
55
21
  export type ResizablePanelsProps = VariantProps<typeof resizablePanelsVariants> & {
56
22
  direction?: 'horizontal' | 'vertical';
57
23
  defaultSize?: number;
@@ -0,0 +1,76 @@
1
+ import { describe, it, expect, vi } from 'vitest';
2
+ import { flushSync } from 'svelte';
3
+ import { renderComponent } from '../../testing/index.js';
4
+ import CommandPalette from './CommandPalette.svelte';
5
+ describe('CommandPalette Component (DOM & Interactions)', () => {
6
+ const testItems = [
7
+ { id: '1', label: 'Documentation Buttons', group: 'Navigation', shortcut: '⌘B' },
8
+ { id: '2', label: 'Billing Settings', group: 'Settings', shortcut: '⌘S' },
9
+ { id: '3', label: 'Dark Mode Switcher', group: 'Appearance' }
10
+ ];
11
+ it('renders dialog, search input, and command items when open is true', () => {
12
+ const { cleanup, target } = renderComponent(CommandPalette, {
13
+ open: true,
14
+ items: testItems
15
+ });
16
+ const input = target.querySelector('input') || document.querySelector('input[placeholder*="command"]');
17
+ expect(input).toBeDefined();
18
+ expect(document.body.textContent).toContain('Documentation Buttons');
19
+ expect(document.body.textContent).toContain('Billing Settings');
20
+ cleanup();
21
+ });
22
+ it('filters items dynamically when user types search query', async () => {
23
+ const { cleanup, target } = renderComponent(CommandPalette, {
24
+ open: true,
25
+ items: testItems
26
+ });
27
+ const input = (target.querySelector('input') ||
28
+ document.querySelector('input[type="text"]'));
29
+ expect(input).toBeDefined();
30
+ if (input) {
31
+ input.value = 'Buttons';
32
+ input.dispatchEvent(new Event('input', { bubbles: true }));
33
+ flushSync();
34
+ expect(document.body.textContent).toContain('Documentation Buttons');
35
+ expect(document.body.textContent).not.toContain('Billing Settings');
36
+ }
37
+ cleanup();
38
+ });
39
+ it('triggers item onSelect callback when clicked', async () => {
40
+ const onSelect = vi.fn();
41
+ const itemsWithAction = [{ id: 'action-1', label: 'Create Workspace', onSelect }];
42
+ const { cleanup } = renderComponent(CommandPalette, {
43
+ open: true,
44
+ items: itemsWithAction
45
+ });
46
+ const actionEl = Array.from(document.querySelectorAll('button, [role="button"]')).find((el) => el.textContent?.includes('Create Workspace'));
47
+ expect(actionEl).toBeDefined();
48
+ if (actionEl) {
49
+ actionEl.click();
50
+ flushSync();
51
+ expect(onSelect).toHaveBeenCalledOnce();
52
+ }
53
+ cleanup();
54
+ });
55
+ it('toggles open state via global Ctrl+K and closes on Escape', async () => {
56
+ const { cleanup } = renderComponent(CommandPalette, {
57
+ open: false,
58
+ items: testItems
59
+ });
60
+ // Trigger global Ctrl+K
61
+ window.dispatchEvent(new KeyboardEvent('keydown', {
62
+ key: 'k',
63
+ ctrlKey: true,
64
+ bubbles: true
65
+ }));
66
+ flushSync();
67
+ expect(document.body.textContent).toContain('Documentation Buttons');
68
+ // Trigger Escape
69
+ window.dispatchEvent(new KeyboardEvent('keydown', {
70
+ key: 'Escape',
71
+ bubbles: true
72
+ }));
73
+ flushSync();
74
+ cleanup();
75
+ });
76
+ });
@@ -11,20 +11,10 @@ export interface StepItem {
11
11
  }
12
12
  export declare const stepperVariants: import("tailwind-variants").TVReturnType<{
13
13
  orientation: {
14
- horizontal: "flex-row items-center justify-between";
15
- vertical: "flex-col space-y-6";
14
+ horizontal: string;
15
+ vertical: string;
16
16
  };
17
- }, undefined, "flex w-full", {
18
- orientation: {
19
- horizontal: "flex-row items-center justify-between";
20
- vertical: "flex-col space-y-6";
21
- };
22
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
23
- orientation: {
24
- horizontal: "flex-row items-center justify-between";
25
- vertical: "flex-col space-y-6";
26
- };
27
- }, undefined>>;
17
+ }, undefined, "flex w-full", undefined, undefined, undefined>;
28
18
  export type StepperProps = VariantProps<typeof stepperVariants> & {
29
19
  steps?: StepItem[];
30
20
  currentStep?: number;
@@ -3,26 +3,12 @@ import type { Snippet } from 'svelte';
3
3
  import type { IconSource } from '../elements/Icon.svelte';
4
4
  export declare const alertVariants: import("tailwind-variants").TVReturnType<{
5
5
  color: {
6
- info: "border-sky-200 bg-sky-50/70 text-sky-900 dark:border-sky-900/50 dark:bg-sky-950/30 dark:text-sky-200";
7
- success: "border-emerald-200 bg-emerald-50/70 text-emerald-900 dark:border-emerald-900/50 dark:bg-emerald-950/30 dark:text-emerald-200";
8
- warning: "border-amber-200 bg-amber-50/70 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200";
9
- error: "border-rose-200 bg-rose-50/70 text-rose-900 dark:border-rose-900/50 dark:bg-rose-950/30 dark:text-rose-200";
6
+ info: string;
7
+ success: string;
8
+ warning: string;
9
+ error: string;
10
10
  };
11
- }, undefined, "relative w-full rounded-xl border p-4 transition-all duration-150", {
12
- color: {
13
- info: "border-sky-200 bg-sky-50/70 text-sky-900 dark:border-sky-900/50 dark:bg-sky-950/30 dark:text-sky-200";
14
- success: "border-emerald-200 bg-emerald-50/70 text-emerald-900 dark:border-emerald-900/50 dark:bg-emerald-950/30 dark:text-emerald-200";
15
- warning: "border-amber-200 bg-amber-50/70 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200";
16
- error: "border-rose-200 bg-rose-50/70 text-rose-900 dark:border-rose-900/50 dark:bg-rose-950/30 dark:text-rose-200";
17
- };
18
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
19
- color: {
20
- info: "border-sky-200 bg-sky-50/70 text-sky-900 dark:border-sky-900/50 dark:bg-sky-950/30 dark:text-sky-200";
21
- success: "border-emerald-200 bg-emerald-50/70 text-emerald-900 dark:border-emerald-900/50 dark:bg-emerald-950/30 dark:text-emerald-200";
22
- warning: "border-amber-200 bg-amber-50/70 text-amber-900 dark:border-amber-900/50 dark:bg-amber-950/30 dark:text-amber-200";
23
- error: "border-rose-200 bg-rose-50/70 text-rose-900 dark:border-rose-900/50 dark:bg-rose-950/30 dark:text-rose-200";
24
- };
25
- }, undefined>>;
11
+ }, undefined, "relative w-full rounded-xl border p-4 transition-all duration-150", undefined, undefined, undefined>;
26
12
  export interface AlertSlots {
27
13
  root?: string;
28
14
  icon?: string;
@@ -2,20 +2,10 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const drawerVariants: import("tailwind-variants").TVReturnType<{
4
4
  responsive: {
5
- true: "inset-x-0 bottom-0 max-h-[85vh] rounded-t-3xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom md:inset-auto md:left-1/2 md:top-1/2 md:w-full md:max-w-lg md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-2xl md:data-[state=closed]:slide-out-to-bottom-0 md:data-[state=open]:slide-in-from-bottom-0 md:data-[state=closed]:zoom-out-95 md:data-[state=open]:zoom-in-95";
6
- false: "inset-x-0 bottom-0 max-h-[85vh] rounded-t-3xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom";
5
+ true: string;
6
+ false: string;
7
7
  };
8
- }, undefined, "fixed z-50 overflow-y-auto border border-neutral-200 bg-white p-6 shadow-2xl transition-all duration-300 dark:border-neutral-800 dark:bg-neutral-900 yaxa-surface-elevated motion-reduce:transition-none", {
9
- responsive: {
10
- true: "inset-x-0 bottom-0 max-h-[85vh] rounded-t-3xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom md:inset-auto md:left-1/2 md:top-1/2 md:w-full md:max-w-lg md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-2xl md:data-[state=closed]:slide-out-to-bottom-0 md:data-[state=open]:slide-in-from-bottom-0 md:data-[state=closed]:zoom-out-95 md:data-[state=open]:zoom-in-95";
11
- false: "inset-x-0 bottom-0 max-h-[85vh] rounded-t-3xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom";
12
- };
13
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
14
- responsive: {
15
- true: "inset-x-0 bottom-0 max-h-[85vh] rounded-t-3xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom md:inset-auto md:left-1/2 md:top-1/2 md:w-full md:max-w-lg md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-2xl md:data-[state=closed]:slide-out-to-bottom-0 md:data-[state=open]:slide-in-from-bottom-0 md:data-[state=closed]:zoom-out-95 md:data-[state=open]:zoom-in-95";
16
- false: "inset-x-0 bottom-0 max-h-[85vh] rounded-t-3xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom";
17
- };
18
- }, undefined>>;
8
+ }, undefined, "fixed z-50 overflow-y-auto border border-neutral-200 bg-white p-6 shadow-2xl transition-all duration-300 dark:border-neutral-800 dark:bg-neutral-900 yaxa-surface-elevated motion-reduce:transition-none", undefined, undefined, undefined>;
19
9
  export interface DrawerSlots {
20
10
  overlay?: string;
21
11
  content?: string;
@@ -2,29 +2,13 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const modalVariants: import("tailwind-variants").TVReturnType<{
4
4
  size: {
5
- sm: "max-w-sm";
6
- md: "max-w-lg";
7
- lg: "max-w-2xl";
8
- xl: "max-w-4xl";
9
- full: "max-w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]";
5
+ sm: string;
6
+ md: string;
7
+ lg: string;
8
+ xl: string;
9
+ full: string;
10
10
  };
11
- }, undefined, "fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-2xl border border-neutral-200 bg-white p-4 sm:p-6 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 dark:border-neutral-800 dark:bg-neutral-900 yaxa-surface-elevated motion-reduce:transition-none", {
12
- size: {
13
- sm: "max-w-sm";
14
- md: "max-w-lg";
15
- lg: "max-w-2xl";
16
- xl: "max-w-4xl";
17
- full: "max-w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]";
18
- };
19
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
20
- size: {
21
- sm: "max-w-sm";
22
- md: "max-w-lg";
23
- lg: "max-w-2xl";
24
- xl: "max-w-4xl";
25
- full: "max-w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]";
26
- };
27
- }, undefined>>;
11
+ }, undefined, "fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 rounded-2xl border border-neutral-200 bg-white p-4 sm:p-6 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 dark:border-neutral-800 dark:bg-neutral-900 yaxa-surface-elevated motion-reduce:transition-none", undefined, undefined, undefined>;
28
12
  export interface ModalSlots {
29
13
  overlay?: string;
30
14
  content?: string;
@@ -9,7 +9,7 @@ export interface NotificationItem {
9
9
  icon?: IconSource;
10
10
  href?: string;
11
11
  }
12
- export declare const notificationCenterVariants: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "inline-flex", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
12
+ export declare const notificationCenterVariants: import("tailwind-variants").TVReturnType<{}, undefined, "inline-flex", undefined, undefined, undefined>;
13
13
  export type NotificationCenterProps = VariantProps<typeof notificationCenterVariants> & {
14
14
  notifications?: NotificationItem[];
15
15
  unreadCount?: number;
@@ -2,26 +2,12 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { Snippet } from 'svelte';
3
3
  export declare const slideoverVariants: import("tailwind-variants").TVReturnType<{
4
4
  side: {
5
- right: "inset-y-0 right-0 h-full w-full max-w-md border-l data-[state=closed]:translate-x-full data-[state=open]:translate-x-0";
6
- left: "inset-y-0 left-0 h-full w-full max-w-md border-r data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0";
7
- top: "inset-x-0 top-0 w-full max-h-[80vh] border-b data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0";
8
- bottom: "inset-x-0 bottom-0 w-full max-h-[80vh] rounded-t-2xl border-t data-[state=closed]:translate-y-full data-[state=open]:translate-y-0";
5
+ right: string;
6
+ left: string;
7
+ top: string;
8
+ bottom: string;
9
9
  };
10
- }, undefined, "fixed z-50 flex flex-col border-neutral-200 bg-white p-6 shadow-2xl transition-transform duration-300 dark:border-neutral-800 dark:bg-neutral-900", {
11
- side: {
12
- right: "inset-y-0 right-0 h-full w-full max-w-md border-l data-[state=closed]:translate-x-full data-[state=open]:translate-x-0";
13
- left: "inset-y-0 left-0 h-full w-full max-w-md border-r data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0";
14
- top: "inset-x-0 top-0 w-full max-h-[80vh] border-b data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0";
15
- bottom: "inset-x-0 bottom-0 w-full max-h-[80vh] rounded-t-2xl border-t data-[state=closed]:translate-y-full data-[state=open]:translate-y-0";
16
- };
17
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
18
- side: {
19
- right: "inset-y-0 right-0 h-full w-full max-w-md border-l data-[state=closed]:translate-x-full data-[state=open]:translate-x-0";
20
- left: "inset-y-0 left-0 h-full w-full max-w-md border-r data-[state=closed]:-translate-x-full data-[state=open]:translate-x-0";
21
- top: "inset-x-0 top-0 w-full max-h-[80vh] border-b data-[state=closed]:-translate-y-full data-[state=open]:translate-y-0";
22
- bottom: "inset-x-0 bottom-0 w-full max-h-[80vh] rounded-t-2xl border-t data-[state=closed]:translate-y-full data-[state=open]:translate-y-0";
23
- };
24
- }, undefined>>;
10
+ }, undefined, "fixed z-50 flex flex-col border-neutral-200 bg-white p-6 shadow-2xl transition-transform duration-300 dark:border-neutral-800 dark:bg-neutral-900", undefined, undefined, undefined>;
25
11
  export type SlideoverProps = VariantProps<typeof slideoverVariants> & {
26
12
  open?: boolean;
27
13
  title?: string;
@@ -2,53 +2,21 @@ import { type VariantProps } from '../../utils/cn.js';
2
2
  import type { ToastItem } from '../../composables/useToast.svelte.js';
3
3
  export declare const toastVariants: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
5
- soft: "border";
6
- solid: "border-transparent text-white";
7
- outline: "border bg-white/95 dark:bg-neutral-900/95";
8
- subtle: "border bg-white/95 dark:bg-neutral-900/95";
5
+ soft: string;
6
+ solid: string;
7
+ outline: string;
8
+ subtle: string;
9
9
  };
10
10
  color: {
11
- neutral: "border-neutral-200 bg-white/95 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-900/95 dark:text-neutral-50";
12
- primary: "";
13
- success: "";
14
- warning: "";
15
- error: "";
16
- info: "";
17
- loading: "border-neutral-200 bg-white/95 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-900/95 dark:text-neutral-50";
11
+ neutral: string;
12
+ primary: string;
13
+ success: string;
14
+ warning: string;
15
+ error: string;
16
+ info: string;
17
+ loading: string;
18
18
  };
19
- }, undefined, "yaxa-toast group relative pointer-events-auto flex w-full max-w-sm items-start gap-3 overflow-hidden rounded-xl border p-4 shadow-lg backdrop-blur-md transition-all duration-200 select-none", {
20
- variant: {
21
- soft: "border";
22
- solid: "border-transparent text-white";
23
- outline: "border bg-white/95 dark:bg-neutral-900/95";
24
- subtle: "border bg-white/95 dark:bg-neutral-900/95";
25
- };
26
- color: {
27
- neutral: "border-neutral-200 bg-white/95 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-900/95 dark:text-neutral-50";
28
- primary: "";
29
- success: "";
30
- warning: "";
31
- error: "";
32
- info: "";
33
- loading: "border-neutral-200 bg-white/95 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-900/95 dark:text-neutral-50";
34
- };
35
- }, undefined, import("tailwind-variants").TVReturnTypeLike<{
36
- variant: {
37
- soft: "border";
38
- solid: "border-transparent text-white";
39
- outline: "border bg-white/95 dark:bg-neutral-900/95";
40
- subtle: "border bg-white/95 dark:bg-neutral-900/95";
41
- };
42
- color: {
43
- neutral: "border-neutral-200 bg-white/95 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-900/95 dark:text-neutral-50";
44
- primary: "";
45
- success: "";
46
- warning: "";
47
- error: "";
48
- info: "";
49
- loading: "border-neutral-200 bg-white/95 text-neutral-900 dark:border-neutral-800 dark:bg-neutral-900/95 dark:text-neutral-50";
50
- };
51
- }, undefined>>;
19
+ }, undefined, "yaxa-toast group relative pointer-events-auto flex w-full max-w-sm items-start gap-3 overflow-hidden rounded-xl border p-4 shadow-lg backdrop-blur-md transition-all duration-200 select-none", undefined, undefined, undefined>;
52
20
  export type ToastProps = VariantProps<typeof toastVariants> & {
53
21
  item: ToastItem;
54
22
  closable?: boolean;
@@ -6,7 +6,7 @@ export interface OrgItem {
6
6
  plan?: string;
7
7
  role?: 'Owner' | 'Admin' | 'Member' | string;
8
8
  }
9
- export declare const orgSwitcherVariants: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "inline-flex", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
9
+ export declare const orgSwitcherVariants: import("tailwind-variants").TVReturnType<{}, undefined, "inline-flex", undefined, undefined, undefined>;
10
10
  export type OrgSwitcherProps = VariantProps<typeof orgSwitcherVariants> & {
11
11
  organizations?: OrgItem[];
12
12
  currentOrgId?: string;
@@ -1,5 +1,5 @@
1
1
  import { type VariantProps } from '../../utils/cn.js';
2
- export declare const passkeyUiVariants: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "w-full", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
2
+ export declare const passkeyUiVariants: import("tailwind-variants").TVReturnType<{}, undefined, "w-full", undefined, undefined, undefined>;
3
3
  export type PasskeyUiProps = VariantProps<typeof passkeyUiVariants> & {
4
4
  mode?: 'trigger' | 'card' | 'manage';
5
5
  title?: string;
@@ -0,0 +1 @@
1
+ export {};