@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.
- package/dist/components/form/form-dialog.svelte +1 -1
- package/dist/components/table/multiselect.svelte +2 -2
- package/dist/components/ui/native-select/native-select-option.svelte +8 -2
- package/dist/components/ui/native-select/native-select-option.svelte.d.ts +1 -1
- package/dist/components/ui/pagination/pagination-next.svelte +15 -9
- package/dist/components/ui/pagination/pagination-next.svelte.d.ts +2 -13
- package/dist/components/ui/pagination/pagination-previous.svelte +15 -9
- package/dist/components/ui/pagination/pagination-previous.svelte.d.ts +2 -13
- package/dist/components/ui/sidebar/constants.d.ts +1 -1
- package/dist/components/ui/sidebar/constants.js +1 -1
- package/dist/components/ui-extra/copy-button/copy-button.svelte +12 -6
- package/dist/components/ui-extra/stepper/stepper-indicator.svelte +1 -0
- package/dist/components/ui-extra/stepper/stepper-trigger.svelte +1 -1
- package/package.json +15 -15
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
2
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
3
3
|
import { cn } from '../../../utils.js';
|
|
4
|
-
import {
|
|
4
|
+
import { buttonVariants } from '../button/index.js';
|
|
5
5
|
import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
let {
|
|
8
|
+
ref = $bindable(null),
|
|
9
|
+
class: className,
|
|
10
|
+
...restProps
|
|
11
|
+
}: PaginationPrimitive.NextButtonProps = $props();
|
|
10
12
|
</script>
|
|
11
13
|
|
|
12
|
-
<
|
|
14
|
+
<PaginationPrimitive.NextButton
|
|
15
|
+
bind:ref
|
|
13
16
|
aria-label="Go to next page"
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
</
|
|
26
|
+
</PaginationPrimitive.NextButton>
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
2
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
3
3
|
import { cn } from '../../../utils.js';
|
|
4
|
-
import {
|
|
4
|
+
import { buttonVariants } from '../button/index.js';
|
|
5
5
|
import ChevronLeftIcon from '@lucide/svelte/icons/chevron-left';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
let {
|
|
8
|
+
ref = $bindable(null),
|
|
9
|
+
class: className,
|
|
10
|
+
...restProps
|
|
11
|
+
}: PaginationPrimitive.PrevButtonProps = $props();
|
|
10
12
|
</script>
|
|
11
13
|
|
|
12
|
-
<
|
|
14
|
+
<PaginationPrimitive.PrevButton
|
|
15
|
+
bind:ref
|
|
13
16
|
aria-label="Go to previous page"
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
</
|
|
26
|
+
</PaginationPrimitive.PrevButton>
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 = "
|
|
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";
|
|
@@ -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
|
-
|
|
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.
|
|
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": "
|
|
755
|
-
"lint": "
|
|
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-
|
|
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.
|
|
802
|
+
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
802
803
|
"@tailwindcss/typography": "0.5.19",
|
|
803
|
-
"@types/node": "25.
|
|
804
|
+
"@types/node": "25.9.1",
|
|
804
805
|
"jsrepo": "3.7.0",
|
|
805
|
-
"
|
|
806
|
-
"oxlint
|
|
807
|
-
"
|
|
808
|
-
"prettier-plugin-svelte": "
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
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.
|
|
815
|
+
"vite": "8.0.14"
|
|
816
816
|
},
|
|
817
817
|
"peerDependencies": {
|
|
818
818
|
"@sveltejs/kit": "^2.0.0",
|