@profidev/pleiades 1.8.0 → 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.
@@ -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}
@@ -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';
@@ -22,6 +22,7 @@
22
22
  import Button from '../../../blocks/button.svelte';
23
23
  import { UseClipboard } from '../../../blocks/use-clipboard.svelte';
24
24
  import { cn } from '../../../blocks/utils.js';
25
+ import { mergeProps } from 'bits-ui';
25
26
  import CheckIcon from '@lucide/svelte/icons/check';
26
27
  import CopyIcon from '@lucide/svelte/icons/copy';
27
28
  import XIcon from '@lucide/svelte/icons/x';
@@ -48,6 +49,16 @@
48
49
  }
49
50
 
50
51
  const clipboard = new UseClipboard();
52
+
53
+ const merged = $derived(
54
+ mergeProps(rest, {
55
+ onclick: async () => {
56
+ const status = await clipboard.copy(text);
57
+
58
+ onCopy?.(status);
59
+ }
60
+ })
61
+ );
51
62
  </script>
52
63
 
53
64
  <Button
@@ -58,12 +69,7 @@
58
69
  class={cn('flex items-center gap-2', className)}
59
70
  type="button"
60
71
  name="copy"
61
- onclick={async () => {
62
- const status = await clipboard.copy(text);
63
-
64
- onCopy?.(status);
65
- }}
66
- {...rest as /* eslint-disable-line @typescript-eslint/no-explicit-any */ any}
72
+ {...merged as /* eslint-disable-line @typescript-eslint/no-explicit-any */ any}
67
73
  >
68
74
  {#if clipboard.status === 'success'}
69
75
  <div in:scale={{ duration: animationDuration, start: 0.85 }}>
@@ -14,6 +14,7 @@
14
14
  class={cn(
15
15
  'bg-primary text-primary-foreground z-1 flex size-7 shrink-0 items-center justify-center rounded-full ring-3 transition-colors select-none [&_svg]:size-4',
16
16
  'group-data-[state=inactive]/stepper-trigger:text-muted-foreground group-data-[state=inactive]/stepper-trigger:bg-muted ring-background',
17
+ 'group-focus-visible/stepper-trigger:ring-ring/50',
17
18
  className
18
19
  )}
19
20
  {...rest}
@@ -26,7 +26,7 @@
26
26
  bind:this={ref}
27
27
  data-slot="stepper-trigger"
28
28
  class={cn(
29
- 'group/stepper-trigger z-1 flex',
29
+ 'group/stepper-trigger z-1 flex outline-none',
30
30
  'group-data-[orientation=horizontal]/stepper-nav:flex-col',
31
31
  'group-data-[orientation=vertical]/stepper-nav:flex-row group-data-[orientation=vertical]/stepper-nav:gap-4',
32
32
  className
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profidev/pleiades",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Profiidev/pleiades"
@@ -751,8 +751,8 @@
751
751
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
752
752
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
753
753
  "dev": "vite dev",
754
- "format": "prettier --write .",
755
- "lint": "prettier --check .",
754
+ "format": "oxfmt",
755
+ "lint": "oxfmt --check",
756
756
  "prepack": "svelte-kit sync && svelte-package && publint",
757
757
  "prepare": "svelte-kit sync || echo ''",
758
758
  "preview": "vite preview",
@@ -775,6 +775,7 @@
775
775
  "country-flag-icons": "^1.0.0",
776
776
  "embla-carousel-svelte": "^8.0.0",
777
777
  "formsnap": "^2.0.0",
778
+ "jsencrypt": "^3.0.0",
778
779
  "layerchart": "^2.0.0-next.53",
779
780
  "luxon": "^3.0.0",
780
781
  "mode-watcher": "^1.0.0",
@@ -795,24 +796,23 @@
795
796
  "zod": "^4.0.0"
796
797
  },
797
798
  "devDependencies": {
798
- "@jsrepo/transform-prettier": "7.0.0",
799
+ "@jsrepo/transform-oxfmt": "^7.0.0",
799
800
  "@sveltejs/adapter-auto": "7.0.1",
800
801
  "@sveltejs/package": "2.5.7",
801
- "@sveltejs/vite-plugin-svelte": "7.0.0",
802
+ "@sveltejs/vite-plugin-svelte": "7.1.2",
802
803
  "@tailwindcss/typography": "0.5.19",
803
- "@types/node": "25.6.0",
804
+ "@types/node": "25.9.1",
804
805
  "jsrepo": "3.7.0",
805
- "oxlint": "1.61.0",
806
- "oxlint-tsgolint": "0.21.1",
807
- "prettier": "3.8.3",
808
- "prettier-plugin-svelte": "3.5.1",
809
- "prettier-plugin-tailwindcss": "0.7.2",
810
- "publint": "0.3.18",
811
- "svelte-check": "4.4.6",
812
- "tailwindcss": "4.2.4",
806
+ "oxfmt": "0.51.0",
807
+ "oxlint": "1.66.0",
808
+ "oxlint-tsgolint": "0.23.0",
809
+ "prettier-plugin-svelte": "4.0.1",
810
+ "publint": "0.3.21",
811
+ "svelte-check": "4.4.8",
812
+ "tailwindcss": "4.3.0",
813
813
  "tw-animate-css": "1.4.0",
814
814
  "typescript": "6.0.3",
815
- "vite": "8.0.10"
815
+ "vite": "8.0.14"
816
816
  },
817
817
  "peerDependencies": {
818
818
  "@sveltejs/kit": "^2.0.0",