@profidev/pleiades 1.7.1 → 1.8.1

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 (104) hide show
  1. package/dist/components/form/form-dialog.svelte +1 -1
  2. package/dist/components/table/multiselect.svelte +2 -2
  3. package/dist/components/ui/command/command-input.svelte +6 -3
  4. package/dist/components/ui/field/field-label.svelte +1 -1
  5. package/dist/components/ui/field/field-title.svelte +1 -1
  6. package/dist/components/ui/native-select/native-select-option.svelte +8 -2
  7. package/dist/components/ui/native-select/native-select-option.svelte.d.ts +1 -1
  8. package/dist/components/ui/pagination/pagination-next.svelte +15 -9
  9. package/dist/components/ui/pagination/pagination-next.svelte.d.ts +2 -13
  10. package/dist/components/ui/pagination/pagination-previous.svelte +15 -9
  11. package/dist/components/ui/pagination/pagination-previous.svelte.d.ts +2 -13
  12. package/dist/components/ui/sidebar/constants.d.ts +1 -1
  13. package/dist/components/ui/sidebar/constants.js +1 -1
  14. package/dist/components/ui/slider/slider.svelte +1 -1
  15. package/dist/components/ui/tooltip/tooltip.svelte +1 -4
  16. package/dist/components/ui-extra/alert-dialog/alert-dialog-action.svelte +40 -0
  17. package/dist/components/ui-extra/alert-dialog/alert-dialog-action.svelte.d.ts +10 -0
  18. package/dist/components/ui-extra/alert-dialog/alert-dialog-cancel.svelte +31 -0
  19. package/dist/components/ui-extra/alert-dialog/alert-dialog-cancel.svelte.d.ts +9 -0
  20. package/dist/components/ui-extra/alert-dialog/alert-dialog-content.svelte +38 -0
  21. package/dist/components/ui-extra/alert-dialog/alert-dialog-content.svelte.d.ts +11 -0
  22. package/dist/components/ui-extra/alert-dialog/alert-dialog-description.svelte +20 -0
  23. package/dist/components/ui-extra/alert-dialog/alert-dialog-description.svelte.d.ts +4 -0
  24. package/dist/components/ui-extra/alert-dialog/alert-dialog-footer.svelte +23 -0
  25. package/dist/components/ui-extra/alert-dialog/alert-dialog-footer.svelte.d.ts +5 -0
  26. package/dist/components/ui-extra/alert-dialog/alert-dialog-header.svelte +23 -0
  27. package/dist/components/ui-extra/alert-dialog/alert-dialog-header.svelte.d.ts +5 -0
  28. package/dist/components/ui-extra/alert-dialog/alert-dialog-media.svelte +23 -0
  29. package/dist/components/ui-extra/alert-dialog/alert-dialog-media.svelte.d.ts +5 -0
  30. package/dist/components/ui-extra/alert-dialog/alert-dialog-overlay.svelte +20 -0
  31. package/dist/components/ui-extra/alert-dialog/alert-dialog-overlay.svelte.d.ts +4 -0
  32. package/dist/components/ui-extra/alert-dialog/alert-dialog-portal.svelte +7 -0
  33. package/dist/components/ui-extra/alert-dialog/alert-dialog-portal.svelte.d.ts +3 -0
  34. package/dist/components/ui-extra/alert-dialog/alert-dialog-title.svelte +20 -0
  35. package/dist/components/ui-extra/alert-dialog/alert-dialog-title.svelte.d.ts +4 -0
  36. package/dist/components/ui-extra/alert-dialog/alert-dialog-trigger.svelte +14 -0
  37. package/dist/components/ui-extra/alert-dialog/alert-dialog-trigger.svelte.d.ts +4 -0
  38. package/dist/components/ui-extra/alert-dialog/alert-dialog.svelte +10 -0
  39. package/dist/components/ui-extra/alert-dialog/alert-dialog.svelte.d.ts +3 -0
  40. package/dist/components/ui-extra/alert-dialog/index.d.ts +13 -0
  41. package/dist/components/ui-extra/alert-dialog/index.js +15 -0
  42. package/dist/components/ui-extra/button-group/button-group-separator.svelte +23 -0
  43. package/dist/components/ui-extra/button-group/button-group-separator.svelte.d.ts +13 -0
  44. package/dist/components/ui-extra/button-group/button-group-text.svelte +31 -0
  45. package/dist/components/ui-extra/button-group/button-group-text.svelte.d.ts +11 -0
  46. package/dist/components/ui-extra/button-group/button-group.svelte +48 -0
  47. package/dist/components/ui-extra/button-group/button-group.svelte.d.ts +26 -0
  48. package/dist/components/ui-extra/button-group/index.d.ts +4 -0
  49. package/dist/components/ui-extra/button-group/index.js +6 -0
  50. package/dist/components/ui-extra/confirm-delete-dialog/confirm-delete-dialog.svelte +131 -0
  51. package/dist/components/ui-extra/confirm-delete-dialog/confirm-delete-dialog.svelte.d.ts +35 -0
  52. package/dist/components/ui-extra/confirm-delete-dialog/index.d.ts +2 -0
  53. package/dist/components/ui-extra/confirm-delete-dialog/index.js +2 -0
  54. package/dist/components/ui-extra/copy-button/copy-button.svelte +12 -6
  55. package/dist/components/ui-extra/github-button/github-button.svelte +81 -0
  56. package/dist/components/ui-extra/github-button/github-button.svelte.d.ts +13 -0
  57. package/dist/components/ui-extra/github-button/index.d.ts +20 -0
  58. package/dist/components/ui-extra/github-button/index.js +27 -0
  59. package/dist/components/ui-extra/select/index.d.ts +12 -0
  60. package/dist/components/ui-extra/select/index.js +14 -0
  61. package/dist/components/ui-extra/select/select-content.svelte +45 -0
  62. package/dist/components/ui-extra/select/select-content.svelte.d.ts +11 -0
  63. package/dist/components/ui-extra/select/select-group-heading.svelte +21 -0
  64. package/dist/components/ui-extra/select/select-group-heading.svelte.d.ts +10 -0
  65. package/dist/components/ui-extra/select/select-group.svelte +17 -0
  66. package/dist/components/ui-extra/select/select-group.svelte.d.ts +4 -0
  67. package/dist/components/ui-extra/select/select-item.svelte +38 -0
  68. package/dist/components/ui-extra/select/select-item.svelte.d.ts +4 -0
  69. package/dist/components/ui-extra/select/select-label.svelte +20 -0
  70. package/dist/components/ui-extra/select/select-label.svelte.d.ts +6 -0
  71. package/dist/components/ui-extra/select/select-portal.svelte +7 -0
  72. package/dist/components/ui-extra/select/select-portal.svelte.d.ts +3 -0
  73. package/dist/components/ui-extra/select/select-scroll-down-button.svelte +23 -0
  74. package/dist/components/ui-extra/select/select-scroll-down-button.svelte.d.ts +4 -0
  75. package/dist/components/ui-extra/select/select-scroll-up-button.svelte +23 -0
  76. package/dist/components/ui-extra/select/select-scroll-up-button.svelte.d.ts +4 -0
  77. package/dist/components/ui-extra/select/select-separator.svelte +18 -0
  78. package/dist/components/ui-extra/select/select-separator.svelte.d.ts +4 -0
  79. package/dist/components/ui-extra/select/select-trigger.svelte +29 -0
  80. package/dist/components/ui-extra/select/select-trigger.svelte.d.ts +8 -0
  81. package/dist/components/ui-extra/select/select.svelte +11 -0
  82. package/dist/components/ui-extra/select/select.svelte.d.ts +3 -0
  83. package/dist/components/ui-extra/separator/index.d.ts +2 -0
  84. package/dist/components/ui-extra/separator/index.js +4 -0
  85. package/dist/components/ui-extra/separator/separator.svelte +23 -0
  86. package/dist/components/ui-extra/separator/separator.svelte.d.ts +4 -0
  87. package/dist/components/ui-extra/split-button/index.d.ts +14 -0
  88. package/dist/components/ui-extra/split-button/index.js +9 -0
  89. package/dist/components/ui-extra/split-button/split-button-action.svelte +41 -0
  90. package/dist/components/ui-extra/split-button/split-button-action.svelte.d.ts +9 -0
  91. package/dist/components/ui-extra/split-button/split-button-content.svelte +19 -0
  92. package/dist/components/ui-extra/split-button/split-button-content.svelte.d.ts +6 -0
  93. package/dist/components/ui-extra/split-button/split-button-select-action.svelte +54 -0
  94. package/dist/components/ui-extra/split-button/split-button-select-action.svelte.d.ts +6 -0
  95. package/dist/components/ui-extra/split-button/split-button-select-trigger.svelte +47 -0
  96. package/dist/components/ui-extra/split-button/split-button-select-trigger.svelte.d.ts +10 -0
  97. package/dist/components/ui-extra/split-button/split-button-select.svelte +31 -0
  98. package/dist/components/ui-extra/split-button/split-button-select.svelte.d.ts +6 -0
  99. package/dist/components/ui-extra/split-button/split-button.svelte +53 -0
  100. package/dist/components/ui-extra/split-button/split-button.svelte.d.ts +17 -0
  101. package/dist/components/ui-extra/split-button/split-button.svelte.js +82 -0
  102. package/dist/components/ui-extra/stepper/stepper-indicator.svelte +1 -0
  103. package/dist/components/ui-extra/stepper/stepper-trigger.svelte +1 -1
  104. package/package.json +49 -21
@@ -128,7 +128,7 @@
128
128
  {children}
129
129
  >
130
130
  {#snippet footer({ defaultBtn })}
131
- <Dialog.Footer class="mt-4">
131
+ <Dialog.Footer>
132
132
  {@render defaultBtn({ variant: confirmVariant, content: confirm })}
133
133
  </Dialog.Footer>
134
134
  {/snippet}
@@ -120,7 +120,7 @@
120
120
  </Button>
121
121
  {/snippet}
122
122
  </Popover.Trigger>
123
- <Popover.Content>
123
+ <Popover.Content class="p-0">
124
124
  <Command.Root>
125
125
  <Command.Input placeholder={`Search ${label.toLowerCase()}...`} />
126
126
  <Command.List class="h-full overflow-hidden">
@@ -137,7 +137,7 @@
137
137
  class={cn(
138
138
  'mr-2 size-4',
139
139
  !selected.some((i) => compare(i, item.value)) &&
140
- 'text-transparent'
140
+ 'text-transparent!'
141
141
  )}
142
142
  />
143
143
  {item.label}
@@ -17,15 +17,18 @@
17
17
  class="bg-input/30 border-input/30 h-8! rounded-lg! shadow-none! *:data-[slot=input-group-addon]:pl-2!"
18
18
  >
19
19
  <CommandPrimitive.Input
20
+ {value}
20
21
  data-slot="command-input"
21
22
  class={cn(
22
23
  'w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',
23
24
  className
24
25
  )}
25
- bind:ref
26
26
  {...restProps}
27
- bind:value
28
- />
27
+ >
28
+ {#snippet child({ props })}
29
+ <InputGroup.Input {...props} bind:value bind:ref />
30
+ {/snippet}
31
+ </CommandPrimitive.Input>
29
32
  <InputGroup.Addon>
30
33
  <SearchIcon class="size-4 shrink-0 opacity-50" />
31
34
  </InputGroup.Addon>
@@ -15,7 +15,7 @@
15
15
  bind:ref
16
16
  data-slot="field-label"
17
17
  class={cn(
18
- 'has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5',
18
+ 'has-data-checked:bg-primary/5 has-data-checked:border-primary/30 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 group/field-label peer/field-label flex w-fit gap-2 leading-snug leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5',
19
19
  'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',
20
20
  className
21
21
  )}
@@ -14,7 +14,7 @@
14
14
  bind:this={ref}
15
15
  data-slot="field-label"
16
16
  class={cn(
17
- 'flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50',
17
+ 'flex w-fit items-center gap-2 text-sm leading-snug leading-snug font-medium group-data-[disabled=true]/field:opacity-50',
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -1,14 +1,20 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLOptionAttributes } from 'svelte/elements';
3
- import type { WithElementRef } from '../../../utils.js';
3
+ import { cn, type WithElementRef } from '../../../utils.js';
4
4
 
5
5
  let {
6
6
  ref = $bindable(null),
7
+ class: className,
7
8
  children,
8
9
  ...restProps
9
10
  }: WithElementRef<HTMLOptionAttributes> = $props();
10
11
  </script>
11
12
 
12
- <option bind:this={ref} data-slot="native-select-option" {...restProps}>
13
+ <option
14
+ bind:this={ref}
15
+ data-slot="native-select-option"
16
+ class={cn('bg-[Canvas] text-[CanvasText]', className)}
17
+ {...restProps}
18
+ >
13
19
  {@render children?.()}
14
20
  </option>
@@ -1,5 +1,5 @@
1
1
  import type { HTMLOptionAttributes } from 'svelte/elements';
2
- import type { WithElementRef } from '../../../utils.js';
2
+ import { type WithElementRef } from '../../../utils.js';
3
3
  declare const NativeSelectOption: import("svelte").Component<WithElementRef<HTMLOptionAttributes>, {}, "ref">;
4
4
  type NativeSelectOption = ReturnType<typeof NativeSelectOption>;
5
5
  export default NativeSelectOption;
@@ -1,20 +1,26 @@
1
1
  <script lang="ts">
2
- import type { ComponentProps } from 'svelte';
2
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
3
3
  import { cn } from '../../../utils.js';
4
- import { PaginationLink } from './index.js';
4
+ import { buttonVariants } from '../button/index.js';
5
5
  import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
6
6
 
7
- type PaginationNextProps = ComponentProps<typeof PaginationLink>;
8
-
9
- let { class: className, ...restProps }: PaginationNextProps = $props();
7
+ let {
8
+ ref = $bindable(null),
9
+ class: className,
10
+ ...restProps
11
+ }: PaginationPrimitive.NextButtonProps = $props();
10
12
  </script>
11
13
 
12
- <PaginationLink
14
+ <PaginationPrimitive.NextButton
15
+ bind:ref
13
16
  aria-label="Go to next page"
14
- size="default"
15
- class={cn('pr-1.5!', className)}
17
+ class={cn(
18
+ buttonVariants({ variant: 'ghost', size: 'default' }),
19
+ 'pr-1.5!',
20
+ className
21
+ )}
16
22
  {...restProps}
17
23
  >
18
24
  <span class="cn-pagination-next-text hidden sm:block">Next</span>
19
25
  <ChevronRightIcon data-icon="inline-end" />
20
- </PaginationLink>
26
+ </PaginationPrimitive.NextButton>
@@ -1,15 +1,4 @@
1
- declare const PaginationNext: import("svelte").Component<Omit<{
2
- page: import("bits-ui").Page;
3
- }, "child" | "children"> & {
4
- child?: import("svelte").Snippet<[{
5
- props: Record<string, unknown>;
6
- }]> | undefined;
7
- children?: import("svelte").Snippet<[]> | undefined;
8
- style?: import("bits-ui").StyleProperties | string | null | undefined;
9
- ref?: HTMLElement | null | undefined;
10
- } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveButtonAttributes, import("bits-ui").PaginationPagePropsWithoutHTML> & {
11
- size?: import("../button/button.svelte.js").ButtonSize;
12
- isActive: boolean;
13
- }, {}, "">;
1
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
2
+ declare const PaginationNext: import("svelte").Component<PaginationPrimitive.NextButtonProps, {}, "ref">;
14
3
  type PaginationNext = ReturnType<typeof PaginationNext>;
15
4
  export default PaginationNext;
@@ -1,20 +1,26 @@
1
1
  <script lang="ts">
2
- import type { ComponentProps } from 'svelte';
2
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
3
3
  import { cn } from '../../../utils.js';
4
- import { PaginationLink } from './index.js';
4
+ import { buttonVariants } from '../button/index.js';
5
5
  import ChevronLeftIcon from '@lucide/svelte/icons/chevron-left';
6
6
 
7
- type PaginationPreviousProps = ComponentProps<typeof PaginationLink>;
8
-
9
- let { class: className, ...restProps }: PaginationPreviousProps = $props();
7
+ let {
8
+ ref = $bindable(null),
9
+ class: className,
10
+ ...restProps
11
+ }: PaginationPrimitive.PrevButtonProps = $props();
10
12
  </script>
11
13
 
12
- <PaginationLink
14
+ <PaginationPrimitive.PrevButton
15
+ bind:ref
13
16
  aria-label="Go to previous page"
14
- size="default"
15
- class={cn('pl-1.5!', className)}
17
+ class={cn(
18
+ buttonVariants({ variant: 'ghost', size: 'default' }),
19
+ 'pl-1.5!',
20
+ className
21
+ )}
16
22
  {...restProps}
17
23
  >
18
24
  <ChevronLeftIcon data-icon="inline-start" />
19
25
  <span class="cn-pagination-previous-text hidden sm:block">Previous</span>
20
- </PaginationLink>
26
+ </PaginationPrimitive.PrevButton>
@@ -1,15 +1,4 @@
1
- declare const PaginationPrevious: import("svelte").Component<Omit<{
2
- page: import("bits-ui").Page;
3
- }, "child" | "children"> & {
4
- child?: import("svelte").Snippet<[{
5
- props: Record<string, unknown>;
6
- }]> | undefined;
7
- children?: import("svelte").Snippet<[]> | undefined;
8
- style?: import("bits-ui").StyleProperties | string | null | undefined;
9
- ref?: HTMLElement | null | undefined;
10
- } & import("bits-ui").Without<import("bits-ui").BitsPrimitiveButtonAttributes, import("bits-ui").PaginationPagePropsWithoutHTML> & {
11
- size?: import("../button/button.svelte.js").ButtonSize;
12
- isActive: boolean;
13
- }, {}, "">;
1
+ import { Pagination as PaginationPrimitive } from 'bits-ui';
2
+ declare const PaginationPrevious: import("svelte").Component<PaginationPrimitive.PrevButtonProps, {}, "ref">;
14
3
  type PaginationPrevious = ReturnType<typeof PaginationPrevious>;
15
4
  export default PaginationPrevious;
@@ -1,4 +1,4 @@
1
- export declare const SIDEBAR_COOKIE_NAME = "sidebar:state";
1
+ export declare const SIDEBAR_COOKIE_NAME = "sidebar_state";
2
2
  export declare const SIDEBAR_COOKIE_MAX_AGE: number;
3
3
  export declare const SIDEBAR_WIDTH = "16rem";
4
4
  export declare const SIDEBAR_WIDTH_MOBILE = "18rem";
@@ -1,4 +1,4 @@
1
- export const SIDEBAR_COOKIE_NAME = 'sidebar:state';
1
+ export const SIDEBAR_COOKIE_NAME = 'sidebar_state';
2
2
  export const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
3
3
  export const SIDEBAR_WIDTH = '16rem';
4
4
  export const SIDEBAR_WIDTH_MOBILE = '18rem';
@@ -41,7 +41,7 @@ get along, so we shut typescript up by casting `value` to `never`.
41
41
  )}
42
42
  />
43
43
  </span>
44
- {#each thumbItems as thumb (thumb)}
44
+ {#each thumbItems as thumb (thumb.index)}
45
45
  <SliderPrimitive.Thumb
46
46
  data-slot="slider-thumb"
47
47
  index={thumb.index}
@@ -1,11 +1,8 @@
1
1
  <script lang="ts">
2
2
  import { Tooltip as TooltipPrimitive } from 'bits-ui';
3
- import TooltipProvider from './tooltip-provider.svelte';
4
3
 
5
4
  let { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps =
6
5
  $props();
7
6
  </script>
8
7
 
9
- <TooltipProvider>
10
- <TooltipPrimitive.Root bind:open {...restProps} />
11
- </TooltipProvider>
8
+ <TooltipPrimitive.Root bind:open {...restProps} />
@@ -0,0 +1,40 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+ import {
4
+ buttonVariants,
5
+ type ButtonVariant,
6
+ type ButtonSize
7
+ } from '../button/index.js';
8
+ import { cn } from '../../../blocks/utils.js';
9
+ import { Spinner } from '../spinner';
10
+
11
+ let {
12
+ ref = $bindable(null),
13
+ class: className,
14
+ variant = 'default',
15
+ size = 'default',
16
+ loading = false,
17
+ children,
18
+ ...restProps
19
+ }: AlertDialogPrimitive.ActionProps & {
20
+ variant?: ButtonVariant;
21
+ size?: ButtonSize;
22
+ loading?: boolean;
23
+ } = $props();
24
+ </script>
25
+
26
+ <AlertDialogPrimitive.Action
27
+ bind:ref
28
+ data-slot="alert-dialog-action"
29
+ class={cn(
30
+ buttonVariants({ variant, size }),
31
+ 'cn-alert-dialog-action',
32
+ className
33
+ )}
34
+ {...restProps}
35
+ >
36
+ {#if loading}
37
+ <Spinner data-icon="inline-start" />
38
+ {/if}
39
+ {@render children?.()}
40
+ </AlertDialogPrimitive.Action>
@@ -0,0 +1,10 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ import { type ButtonVariant, type ButtonSize } from '../button/index.js';
3
+ type $$ComponentProps = AlertDialogPrimitive.ActionProps & {
4
+ variant?: ButtonVariant;
5
+ size?: ButtonSize;
6
+ loading?: boolean;
7
+ };
8
+ declare const AlertDialogAction: import("svelte").Component<$$ComponentProps, {}, "ref">;
9
+ type AlertDialogAction = ReturnType<typeof AlertDialogAction>;
10
+ export default AlertDialogAction;
@@ -0,0 +1,31 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+ import {
4
+ buttonVariants,
5
+ type ButtonVariant,
6
+ type ButtonSize
7
+ } from '../button/index.js';
8
+ import { cn } from '../../../blocks/utils.js';
9
+
10
+ let {
11
+ ref = $bindable(null),
12
+ class: className,
13
+ variant = 'outline',
14
+ size = 'default',
15
+ ...restProps
16
+ }: AlertDialogPrimitive.CancelProps & {
17
+ variant?: ButtonVariant;
18
+ size?: ButtonSize;
19
+ } = $props();
20
+ </script>
21
+
22
+ <AlertDialogPrimitive.Cancel
23
+ bind:ref
24
+ data-slot="alert-dialog-cancel"
25
+ class={cn(
26
+ buttonVariants({ variant, size }),
27
+ 'cn-alert-dialog-cancel',
28
+ className
29
+ )}
30
+ {...restProps}
31
+ />
@@ -0,0 +1,9 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ import { type ButtonVariant, type ButtonSize } from '../button/index.js';
3
+ type $$ComponentProps = AlertDialogPrimitive.CancelProps & {
4
+ variant?: ButtonVariant;
5
+ size?: ButtonSize;
6
+ };
7
+ declare const AlertDialogCancel: import("svelte").Component<$$ComponentProps, {}, "ref">;
8
+ type AlertDialogCancel = ReturnType<typeof AlertDialogCancel>;
9
+ export default AlertDialogCancel;
@@ -0,0 +1,38 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+ import AlertDialogPortal from './alert-dialog-portal.svelte';
4
+ import AlertDialogOverlay from './alert-dialog-overlay.svelte';
5
+ import {
6
+ cn,
7
+ type WithoutChild,
8
+ type WithoutChildrenOrChild
9
+ } from '../../../blocks/utils.js';
10
+ import type { ComponentProps } from 'svelte';
11
+
12
+ let {
13
+ ref = $bindable(null),
14
+ class: className,
15
+ size = 'default',
16
+ portalProps,
17
+ ...restProps
18
+ }: WithoutChild<AlertDialogPrimitive.ContentProps> & {
19
+ size?: 'default' | 'sm';
20
+ portalProps?: WithoutChildrenOrChild<
21
+ ComponentProps<typeof AlertDialogPortal>
22
+ >;
23
+ } = $props();
24
+ </script>
25
+
26
+ <AlertDialogPortal {...portalProps}>
27
+ <AlertDialogOverlay />
28
+ <AlertDialogPrimitive.Content
29
+ bind:ref
30
+ data-slot="alert-dialog-content"
31
+ data-size={size}
32
+ class={cn(
33
+ 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 bg-popover text-popover-foreground ring-foreground/10 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl p-6 ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg',
34
+ className
35
+ )}
36
+ {...restProps}
37
+ />
38
+ </AlertDialogPortal>
@@ -0,0 +1,11 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ import AlertDialogPortal from './alert-dialog-portal.svelte';
3
+ import { type WithoutChild, type WithoutChildrenOrChild } from '../../../blocks/utils.js';
4
+ import type { ComponentProps } from 'svelte';
5
+ type $$ComponentProps = WithoutChild<AlertDialogPrimitive.ContentProps> & {
6
+ size?: 'default' | 'sm';
7
+ portalProps?: WithoutChildrenOrChild<ComponentProps<typeof AlertDialogPortal>>;
8
+ };
9
+ declare const AlertDialogContent: import("svelte").Component<$$ComponentProps, {}, "ref">;
10
+ type AlertDialogContent = ReturnType<typeof AlertDialogContent>;
11
+ export default AlertDialogContent;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+ import { cn } from '../../../blocks/utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: AlertDialogPrimitive.DescriptionProps = $props();
10
+ </script>
11
+
12
+ <AlertDialogPrimitive.Description
13
+ bind:ref
14
+ data-slot="alert-dialog-description"
15
+ class={cn(
16
+ 'text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3',
17
+ className
18
+ )}
19
+ {...restProps}
20
+ />
@@ -0,0 +1,4 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ declare const AlertDialogDescription: import("svelte").Component<AlertDialogPrimitive.DescriptionProps, {}, "ref">;
3
+ type AlertDialogDescription = ReturnType<typeof AlertDialogDescription>;
4
+ export default AlertDialogDescription;
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import { cn, type WithElementRef } from '../../../blocks/utils.js';
3
+ import type { HTMLAttributes } from 'svelte/elements';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
11
+ </script>
12
+
13
+ <div
14
+ bind:this={ref}
15
+ data-slot="alert-dialog-footer"
16
+ class={cn(
17
+ 'cn-alert-dialog-footer flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end',
18
+ className
19
+ )}
20
+ {...restProps}
21
+ >
22
+ {@render children?.()}
23
+ </div>
@@ -0,0 +1,5 @@
1
+ import { type WithElementRef } from '../../../blocks/utils.js';
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ declare const AlertDialogFooter: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type AlertDialogFooter = ReturnType<typeof AlertDialogFooter>;
5
+ export default AlertDialogFooter;
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import { cn, type WithElementRef } from '../../../blocks/utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
11
+ </script>
12
+
13
+ <div
14
+ bind:this={ref}
15
+ data-slot="alert-dialog-header"
16
+ class={cn(
17
+ 'grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]',
18
+ className
19
+ )}
20
+ {...restProps}
21
+ >
22
+ {@render children?.()}
23
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from 'svelte/elements';
2
+ import { type WithElementRef } from '../../../blocks/utils.js';
3
+ declare const AlertDialogHeader: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type AlertDialogHeader = ReturnType<typeof AlertDialogHeader>;
5
+ export default AlertDialogHeader;
@@ -0,0 +1,23 @@
1
+ <script lang="ts">
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import { cn, type WithElementRef } from '../../../blocks/utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ children,
9
+ ...restProps
10
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
11
+ </script>
12
+
13
+ <div
14
+ bind:this={ref}
15
+ data-slot="alert-dialog-media"
16
+ class={cn(
17
+ "bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8",
18
+ className
19
+ )}
20
+ {...restProps}
21
+ >
22
+ {@render children?.()}
23
+ </div>
@@ -0,0 +1,5 @@
1
+ import type { HTMLAttributes } from 'svelte/elements';
2
+ import { type WithElementRef } from '../../../blocks/utils.js';
3
+ declare const AlertDialogMedia: import("svelte").Component<WithElementRef<HTMLAttributes<HTMLDivElement>>, {}, "ref">;
4
+ type AlertDialogMedia = ReturnType<typeof AlertDialogMedia>;
5
+ export default AlertDialogMedia;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+ import { cn } from '../../../blocks/utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: AlertDialogPrimitive.OverlayProps = $props();
10
+ </script>
11
+
12
+ <AlertDialogPrimitive.Overlay
13
+ bind:ref
14
+ data-slot="alert-dialog-overlay"
15
+ class={cn(
16
+ 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs',
17
+ className
18
+ )}
19
+ {...restProps}
20
+ />
@@ -0,0 +1,4 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ declare const AlertDialogOverlay: import("svelte").Component<AlertDialogPrimitive.OverlayProps, {}, "ref">;
3
+ type AlertDialogOverlay = ReturnType<typeof AlertDialogOverlay>;
4
+ export default AlertDialogOverlay;
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+
4
+ let { ...restProps }: AlertDialogPrimitive.PortalProps = $props();
5
+ </script>
6
+
7
+ <AlertDialogPrimitive.Portal {...restProps} />
@@ -0,0 +1,3 @@
1
+ declare const AlertDialogPortal: import("svelte").Component<import("bits-ui").PortalProps, {}, "">;
2
+ type AlertDialogPortal = ReturnType<typeof AlertDialogPortal>;
3
+ export default AlertDialogPortal;
@@ -0,0 +1,20 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+ import { cn } from '../../../blocks/utils.js';
4
+
5
+ let {
6
+ ref = $bindable(null),
7
+ class: className,
8
+ ...restProps
9
+ }: AlertDialogPrimitive.TitleProps = $props();
10
+ </script>
11
+
12
+ <AlertDialogPrimitive.Title
13
+ bind:ref
14
+ data-slot="alert-dialog-title"
15
+ class={cn(
16
+ 'text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2',
17
+ className
18
+ )}
19
+ {...restProps}
20
+ />
@@ -0,0 +1,4 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ declare const AlertDialogTitle: import("svelte").Component<AlertDialogPrimitive.TitleProps, {}, "ref">;
3
+ type AlertDialogTitle = ReturnType<typeof AlertDialogTitle>;
4
+ export default AlertDialogTitle;
@@ -0,0 +1,14 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+
4
+ let {
5
+ ref = $bindable(null),
6
+ ...restProps
7
+ }: AlertDialogPrimitive.TriggerProps = $props();
8
+ </script>
9
+
10
+ <AlertDialogPrimitive.Trigger
11
+ bind:ref
12
+ data-slot="alert-dialog-trigger"
13
+ {...restProps}
14
+ />
@@ -0,0 +1,4 @@
1
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
2
+ declare const AlertDialogTrigger: import("svelte").Component<AlertDialogPrimitive.TriggerProps, {}, "ref">;
3
+ type AlertDialogTrigger = ReturnType<typeof AlertDialogTrigger>;
4
+ export default AlertDialogTrigger;
@@ -0,0 +1,10 @@
1
+ <script lang="ts">
2
+ import { AlertDialog as AlertDialogPrimitive } from 'bits-ui';
3
+
4
+ let {
5
+ open = $bindable(false),
6
+ ...restProps
7
+ }: AlertDialogPrimitive.RootProps = $props();
8
+ </script>
9
+
10
+ <AlertDialogPrimitive.Root bind:open {...restProps} />
@@ -0,0 +1,3 @@
1
+ declare const AlertDialog: import("svelte").Component<import("bits-ui").AlertDialogRootPropsWithoutHTML, {}, "open">;
2
+ type AlertDialog = ReturnType<typeof AlertDialog>;
3
+ export default AlertDialog;