@casinogate/ui 1.3.7 → 1.5.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.
- package/README.md +4 -9
- package/dist/assets/css/root.css +428 -21
- package/dist/assets/css/theme.css +38 -0
- package/dist/components/badge/badge.stories.svelte +81 -0
- package/dist/components/badge/badge.stories.svelte.d.ts +19 -0
- package/dist/components/badge/badge.svelte +30 -0
- package/dist/components/badge/badge.svelte.d.ts +4 -0
- package/dist/components/badge/exports.d.ts +1 -0
- package/dist/components/badge/exports.js +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/styles.d.ts +99 -0
- package/dist/components/badge/styles.js +126 -0
- package/dist/components/badge/types.d.ts +8 -0
- package/dist/components/badge/types.js +1 -0
- package/dist/components/breadcrumb/breadcrumb.stories.svelte +60 -0
- package/dist/components/breadcrumb/breadcrumb.stories.svelte.d.ts +19 -0
- package/dist/components/breadcrumb/breadcrumb.svelte +32 -0
- package/dist/components/breadcrumb/breadcrumb.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/components/breadcrumb.item.svelte +16 -0
- package/dist/components/breadcrumb/components/breadcrumb.item.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/components/breadcrumb.link.svelte +29 -0
- package/dist/components/breadcrumb/components/breadcrumb.link.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/components/breadcrumb.list.svelte +16 -0
- package/dist/components/breadcrumb/components/breadcrumb.list.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/components/breadcrumb.page.svelte +19 -0
- package/dist/components/breadcrumb/components/breadcrumb.page.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/components/breadcrumb.root.svelte +22 -0
- package/dist/components/breadcrumb/components/breadcrumb.root.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/components/breadcrumb.separator.svelte +24 -0
- package/dist/components/breadcrumb/components/breadcrumb.separator.svelte.d.ts +4 -0
- package/dist/components/breadcrumb/exports-primitive.d.ts +6 -0
- package/dist/components/breadcrumb/exports-primitive.js +6 -0
- package/dist/components/breadcrumb/exports.d.ts +1 -0
- package/dist/components/breadcrumb/exports.js +1 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/breadcrumb/index.js +2 -0
- package/dist/components/breadcrumb/styles.d.ts +62 -0
- package/dist/components/breadcrumb/styles.js +18 -0
- package/dist/components/breadcrumb/types.d.ts +19 -0
- package/dist/components/breadcrumb/types.js +1 -0
- package/dist/components/collapsible/components/collapsaible.svelte.d.ts +11 -0
- package/dist/components/collapsible/components/collapsaible.svelte.js +16 -0
- package/dist/components/collapsible/components/collapsaible.trigger.svelte +17 -5
- package/dist/components/collapsible/types.d.ts +5 -2
- package/dist/components/icons/caret-down.svelte +3 -3
- package/dist/components/icons/caret-up.svelte +3 -3
- package/dist/components/icons/check.svelte +3 -3
- package/dist/components/icons/checkmark.svelte +12 -0
- package/dist/components/icons/checkmark.svelte.d.ts +3 -0
- package/dist/components/icons/chevron-down.svelte +3 -3
- package/dist/components/icons/chevron-left.svelte +3 -3
- package/dist/components/icons/chevron-right.svelte +3 -3
- package/dist/components/icons/chevron-small-down.svelte +3 -3
- package/dist/components/icons/chevron-small-left.svelte +3 -3
- package/dist/components/icons/chevron-small-right.svelte +3 -3
- package/dist/components/icons/chevron-small-up.svelte +3 -3
- package/dist/components/icons/chevron-up.svelte +3 -3
- package/dist/components/icons/dots.svelte +5 -5
- package/dist/components/icons/error.svelte +3 -3
- package/dist/components/icons/exports.d.ts +2 -0
- package/dist/components/icons/exports.js +2 -0
- package/dist/components/icons/eye-crossed.svelte +3 -3
- package/dist/components/icons/eye.svelte +3 -3
- package/dist/components/icons/info.svelte +3 -3
- package/dist/components/icons/minus.svelte +3 -3
- package/dist/components/icons/sidebar-toggle.svelte +4 -4
- package/dist/components/icons/slash.svelte +9 -0
- package/dist/components/icons/slash.svelte.d.ts +3 -0
- package/dist/components/icons/sort.svelte +4 -4
- package/dist/components/icons/spinner.svelte +3 -3
- package/dist/components/icons/success.svelte +3 -3
- package/dist/components/icons/warning.svelte +3 -3
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/navigation/components/navigation.content.svelte +2 -2
- package/dist/components/navigation/components/navigation.root.svelte +3 -1
- package/dist/components/navigation/components/navigation.root.svelte.d.ts +1 -1
- package/dist/components/navigation/components/navigation.sub-content.svelte +12 -5
- package/dist/components/navigation/components/navigation.svelte.d.ts +8 -2
- package/dist/components/navigation/components/navigation.svelte.js +8 -4
- package/dist/components/navigation/components/navigation.trigger.svelte +83 -25
- package/dist/components/navigation/exports.d.ts +1 -1
- package/dist/components/navigation/exports.js +1 -1
- package/dist/components/navigation/index.d.ts +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/navigation/navigation.stories.svelte +34 -20
- package/dist/components/navigation/navigation.stories.svelte.d.ts +1 -0
- package/dist/components/navigation/navigation.svelte +35 -2
- package/dist/components/navigation/navigation.svelte.d.ts +3 -17
- package/dist/components/navigation/styles.d.ts +3 -3
- package/dist/components/navigation/styles.js +5 -4
- package/dist/components/navigation/types.d.ts +35 -4
- package/dist/components/popover/styles.d.ts +3 -3
- package/dist/components/popover/styles.js +1 -1
- package/dist/components/select/components/select.content.svelte +31 -0
- package/dist/components/select/components/select.content.svelte.d.ts +3 -25
- package/dist/components/select/components/select.group-heading.svelte +19 -0
- package/dist/components/select/components/select.group-heading.svelte.d.ts +4 -0
- package/dist/components/select/components/select.group.svelte +8 -0
- package/dist/components/select/components/select.group.svelte.d.ts +4 -0
- package/dist/components/select/components/select.item.svelte +38 -0
- package/dist/components/select/components/select.item.svelte.d.ts +3 -25
- package/dist/components/select/components/select.portal.svelte +10 -0
- package/dist/components/select/components/select.portal.svelte.d.ts +3 -0
- package/dist/components/select/components/select.trigger.svelte +28 -27
- package/dist/components/select/components/select.viewport.svelte +24 -0
- package/dist/components/select/components/select.viewport.svelte.d.ts +3 -25
- package/dist/components/select/exports-primitive.d.ts +6 -0
- package/dist/components/select/exports-primitive.js +6 -0
- package/dist/components/select/exports.d.ts +1 -0
- package/dist/components/select/exports.js +1 -0
- package/dist/components/select/index.d.ts +2 -1
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select.stories.svelte +178 -15
- package/dist/components/select/select.stories.svelte.d.ts +3 -17
- package/dist/components/select/select.svelte +141 -0
- package/dist/components/select/select.svelte.d.ts +4 -0
- package/dist/components/select/styles.d.ts +15 -3
- package/dist/components/select/styles.js +24 -8
- package/dist/components/select/types.d.ts +42 -4
- package/dist/components/textarea/exports.d.ts +1 -0
- package/dist/components/textarea/exports.js +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/styles.d.ts +54 -0
- package/dist/components/textarea/styles.js +39 -0
- package/dist/components/textarea/textarea.stories.svelte +36 -0
- package/dist/components/textarea/textarea.stories.svelte.d.ts +19 -0
- package/dist/components/textarea/textarea.svelte +22 -0
- package/dist/components/textarea/textarea.svelte.d.ts +4 -0
- package/dist/components/textarea/types.d.ts +6 -0
- package/dist/components/textarea/types.js +1 -0
- package/dist/internal/types/html-attributes.d.ts +2 -1
- package/dist/internal/utils/tailwindcss.js +16 -0
- package/package.json +2 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '../../../internal/utils/common.js';
|
|
3
|
+
import { BreadcrumbStylesContext } from '../styles.js';
|
|
4
|
+
import type { BreadcrumbPageProps } from '../types.js';
|
|
5
|
+
|
|
6
|
+
let { ref = $bindable(null), class: className, children, ...restProps }: BreadcrumbPageProps = $props();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<span
|
|
10
|
+
bind:this={ref}
|
|
11
|
+
data-slot="breadcrumb-page"
|
|
12
|
+
role="link"
|
|
13
|
+
aria-disabled="true"
|
|
14
|
+
aria-current="page"
|
|
15
|
+
class={cn(BreadcrumbStylesContext.get().current.page(), className)}
|
|
16
|
+
{...restProps}
|
|
17
|
+
>
|
|
18
|
+
{@render children?.()}
|
|
19
|
+
</span>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { cn } from '../../../internal/utils/common.js';
|
|
3
|
+
import { boxWith } from 'svelte-toolbelt';
|
|
4
|
+
import { BreadcrumbStylesContext, breadcrumbVariants } from '../styles.js';
|
|
5
|
+
import type { BreadcrumbRootProps } from '../types.js';
|
|
6
|
+
|
|
7
|
+
let { ref = $bindable(null), class: className, children, ...restProps }: BreadcrumbRootProps = $props();
|
|
8
|
+
|
|
9
|
+
const variants = $derived(breadcrumbVariants());
|
|
10
|
+
|
|
11
|
+
BreadcrumbStylesContext.set(boxWith(() => variants));
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<nav
|
|
15
|
+
bind:this={ref}
|
|
16
|
+
data-slot="breadcrumb"
|
|
17
|
+
class={cn(variants.root(), className)}
|
|
18
|
+
aria-label="breadcrumb"
|
|
19
|
+
{...restProps}
|
|
20
|
+
>
|
|
21
|
+
{@render children?.()}
|
|
22
|
+
</nav>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
// import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
3
|
+
import { Icon } from '../../icons/index.js';
|
|
4
|
+
import { cn } from '../../../internal/utils/common.js';
|
|
5
|
+
import { BreadcrumbStylesContext } from '../styles.js';
|
|
6
|
+
import type { BreadcrumbSeparatorProps } from '../types.js';
|
|
7
|
+
|
|
8
|
+
let { ref = $bindable(null), class: className, children, ...restProps }: BreadcrumbSeparatorProps = $props();
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<li
|
|
12
|
+
bind:this={ref}
|
|
13
|
+
data-slot="breadcrumb-separator"
|
|
14
|
+
role="presentation"
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
class={cn(BreadcrumbStylesContext.get().current.separator(), className)}
|
|
17
|
+
{...restProps}
|
|
18
|
+
>
|
|
19
|
+
{#if children}
|
|
20
|
+
{@render children?.()}
|
|
21
|
+
{:else}
|
|
22
|
+
<Icon.Slash width={14} height={14} />
|
|
23
|
+
{/if}
|
|
24
|
+
</li>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Item } from './components/breadcrumb.item.svelte';
|
|
2
|
+
export { default as Link } from './components/breadcrumb.link.svelte';
|
|
3
|
+
export { default as List } from './components/breadcrumb.list.svelte';
|
|
4
|
+
export { default as Page } from './components/breadcrumb.page.svelte';
|
|
5
|
+
export { default as Root } from './components/breadcrumb.root.svelte';
|
|
6
|
+
export { default as Separator } from './components/breadcrumb.separator.svelte';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as Item } from './components/breadcrumb.item.svelte';
|
|
2
|
+
export { default as Link } from './components/breadcrumb.link.svelte';
|
|
3
|
+
export { default as List } from './components/breadcrumb.list.svelte';
|
|
4
|
+
export { default as Page } from './components/breadcrumb.page.svelte';
|
|
5
|
+
export { default as Root } from './components/breadcrumb.root.svelte';
|
|
6
|
+
export { default as Separator } from './components/breadcrumb.separator.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Root } from './breadcrumb.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Root } from './breadcrumb.svelte';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * as BreadcrumbPrimitive from './exports-primitive.js';
|
|
2
|
+
export * as Breadcrumb from './exports.js';
|
|
3
|
+
export type { BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbListProps, BreadcrumbPageProps, BreadcrumbProps, BreadcrumbRootProps, BreadcrumbSeparatorProps, } from './types.js';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Context } from 'runed';
|
|
2
|
+
import type { ReadableBox } from 'svelte-toolbelt';
|
|
3
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
4
|
+
export declare const breadcrumbVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
7
|
+
root?: import("tailwind-variants").ClassValue;
|
|
8
|
+
list?: import("tailwind-variants").ClassValue;
|
|
9
|
+
link?: import("tailwind-variants").ClassValue;
|
|
10
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
11
|
+
page?: import("tailwind-variants").ClassValue;
|
|
12
|
+
item?: import("tailwind-variants").ClassValue;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
[x: string]: {
|
|
17
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
18
|
+
root?: import("tailwind-variants").ClassValue;
|
|
19
|
+
list?: import("tailwind-variants").ClassValue;
|
|
20
|
+
link?: import("tailwind-variants").ClassValue;
|
|
21
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
22
|
+
page?: import("tailwind-variants").ClassValue;
|
|
23
|
+
item?: import("tailwind-variants").ClassValue;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {}, {
|
|
27
|
+
root: string[];
|
|
28
|
+
list: string[];
|
|
29
|
+
item: string[];
|
|
30
|
+
separator: string[];
|
|
31
|
+
link: string[];
|
|
32
|
+
page: string[];
|
|
33
|
+
}, undefined, {
|
|
34
|
+
[key: string]: {
|
|
35
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
36
|
+
root?: import("tailwind-variants").ClassValue;
|
|
37
|
+
list?: import("tailwind-variants").ClassValue;
|
|
38
|
+
link?: import("tailwind-variants").ClassValue;
|
|
39
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
40
|
+
page?: import("tailwind-variants").ClassValue;
|
|
41
|
+
item?: import("tailwind-variants").ClassValue;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
} | {}, {
|
|
45
|
+
root: string[];
|
|
46
|
+
list: string[];
|
|
47
|
+
item: string[];
|
|
48
|
+
separator: string[];
|
|
49
|
+
link: string[];
|
|
50
|
+
page: string[];
|
|
51
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
52
|
+
root: string[];
|
|
53
|
+
list: string[];
|
|
54
|
+
item: string[];
|
|
55
|
+
separator: string[];
|
|
56
|
+
link: string[];
|
|
57
|
+
page: string[];
|
|
58
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
59
|
+
export type BreadcrumbVariantsProps = VariantProps<typeof breadcrumbVariants>;
|
|
60
|
+
type BreadcrumbStylesContextValues = ReadableBox<ReturnType<typeof breadcrumbVariants>>;
|
|
61
|
+
export declare const BreadcrumbStylesContext: Context<BreadcrumbStylesContextValues>;
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { keyWithPrefix } from '../../internal/utils/common.js';
|
|
2
|
+
import { tv } from '../../internal/utils/tailwindcss.js';
|
|
3
|
+
import { Context } from 'runed';
|
|
4
|
+
export const breadcrumbVariants = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
root: ['cgui:flex cgui:items-center'],
|
|
7
|
+
list: ['cgui:flex cgui:items-center'],
|
|
8
|
+
item: ['cgui:text-caption-2'],
|
|
9
|
+
separator: ['cgui:text-fg-regular cgui:[&>svg]:size-3.5'],
|
|
10
|
+
link: [
|
|
11
|
+
'cgui:text-fg-regular cgui:hover:text-fg-darkest',
|
|
12
|
+
'cgui:transition-all cgui:duration-250 cgui:ease-in-out',
|
|
13
|
+
'cgui:truncate',
|
|
14
|
+
],
|
|
15
|
+
page: ['cgui:text-fg-darkest', 'cgui:truncate'],
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
export const BreadcrumbStylesContext = new Context(keyWithPrefix('breadcrumb-styles'));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PrimitiveAnchorAttributes, PrimitiveElementAttributes, PrimitiveLiAttributes, PrimitiveOListAttributes, PrimitiveSpanAttributes } from '../../internal/types/html-attributes.js';
|
|
2
|
+
import type { WithChild, WithChildren, WithElementRef, Without } from 'svelte-toolbelt';
|
|
3
|
+
import type { BreadcrumbVariantsProps } from './styles.js';
|
|
4
|
+
type BreadcrumbRootPropsWithoutHTML = WithElementRef<WithChildren<{}>> & BreadcrumbVariantsProps;
|
|
5
|
+
export type BreadcrumbRootProps = BreadcrumbRootPropsWithoutHTML & Without<PrimitiveElementAttributes, BreadcrumbRootPropsWithoutHTML>;
|
|
6
|
+
type BreadcrumbListPropsWithoutHTML = WithElementRef<WithChildren<{}>>;
|
|
7
|
+
export type BreadcrumbListProps = BreadcrumbListPropsWithoutHTML & Without<PrimitiveOListAttributes, BreadcrumbListPropsWithoutHTML>;
|
|
8
|
+
type BreadcrumbItemPropsWithoutHTML = WithElementRef<WithChildren<{}>>;
|
|
9
|
+
export type BreadcrumbItemProps = BreadcrumbItemPropsWithoutHTML & Without<PrimitiveLiAttributes, BreadcrumbItemPropsWithoutHTML>;
|
|
10
|
+
type BreadcrumbSeparatorPropsWithoutHTML = WithElementRef<WithChildren<{}>>;
|
|
11
|
+
export type BreadcrumbSeparatorProps = BreadcrumbSeparatorPropsWithoutHTML & Without<PrimitiveLiAttributes, BreadcrumbSeparatorPropsWithoutHTML>;
|
|
12
|
+
type BreadcrumbLinkPropsWithoutHTML = WithElementRef<WithChild<{}>>;
|
|
13
|
+
export type BreadcrumbLinkProps = BreadcrumbLinkPropsWithoutHTML & Without<PrimitiveAnchorAttributes, BreadcrumbLinkPropsWithoutHTML>;
|
|
14
|
+
type BreadcrumbPagePropsWithoutHTML = WithElementRef<WithChildren<{}>>;
|
|
15
|
+
export type BreadcrumbPageProps = BreadcrumbPagePropsWithoutHTML & Without<PrimitiveSpanAttributes, BreadcrumbPagePropsWithoutHTML>;
|
|
16
|
+
export type BreadcrumbProps = BreadcrumbRootProps & {
|
|
17
|
+
path: string[] | string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -41,4 +41,15 @@ export declare class CollapsibleRootState {
|
|
|
41
41
|
readonly 'data-disabled': "" | undefined;
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
+
export type CollapsibleTriggerStateOpts = WithRefProps<{}>;
|
|
45
|
+
export declare class CollapsibleTriggerState {
|
|
46
|
+
static create(opts: CollapsibleTriggerStateOpts): CollapsibleTriggerState;
|
|
47
|
+
readonly opts: CollapsibleTriggerStateOpts;
|
|
48
|
+
readonly attachment: RefAttachment;
|
|
49
|
+
readonly root: CollapsibleRootState;
|
|
50
|
+
constructor(opts: CollapsibleTriggerStateOpts, root: CollapsibleRootState);
|
|
51
|
+
readonly props: {
|
|
52
|
+
readonly [x: symbol]: (node: HTMLElement) => () => void;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
44
55
|
export {};
|
|
@@ -90,3 +90,19 @@ export class CollapsibleRootState {
|
|
|
90
90
|
...this.attachment,
|
|
91
91
|
}));
|
|
92
92
|
}
|
|
93
|
+
export class CollapsibleTriggerState {
|
|
94
|
+
static create(opts) {
|
|
95
|
+
return new CollapsibleTriggerState(opts, CollapsibleRootContext.get());
|
|
96
|
+
}
|
|
97
|
+
opts;
|
|
98
|
+
attachment;
|
|
99
|
+
root;
|
|
100
|
+
constructor(opts, root) {
|
|
101
|
+
this.opts = opts;
|
|
102
|
+
this.root = root;
|
|
103
|
+
this.attachment = attachRef(opts.ref);
|
|
104
|
+
}
|
|
105
|
+
props = $derived.by(() => ({
|
|
106
|
+
...this.attachment,
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { cn, useId } from '../../../internal/utils/common.js';
|
|
6
6
|
|
|
7
7
|
import { Collapsible as CollapsiblePrimitive } from 'bits-ui';
|
|
8
|
+
import { boxWith, mergeProps } from 'svelte-toolbelt';
|
|
9
|
+
import { CollapsibleTriggerState } from './collapsaible.svelte.js';
|
|
8
10
|
|
|
9
11
|
const uid = $props.id();
|
|
10
12
|
|
|
@@ -18,15 +20,25 @@
|
|
|
18
20
|
...restProps
|
|
19
21
|
}: CollapsibleTriggerProps = $props();
|
|
20
22
|
|
|
23
|
+
const triggerState = CollapsibleTriggerState.create({
|
|
24
|
+
ref: boxWith(
|
|
25
|
+
() => ref,
|
|
26
|
+
(v) => (ref = v)
|
|
27
|
+
),
|
|
28
|
+
id: boxWith(() => id),
|
|
29
|
+
});
|
|
30
|
+
|
|
21
31
|
const styles = CollapsibleStylesContext.get();
|
|
32
|
+
|
|
33
|
+
const mergedProps = $derived(mergeProps(restProps, triggerState.props));
|
|
22
34
|
</script>
|
|
23
35
|
|
|
24
|
-
<CollapsiblePrimitive.Trigger bind:ref {id} class={cn(styles.current.trigger(), className)} {...
|
|
25
|
-
{#snippet child(childProps)}
|
|
36
|
+
<CollapsiblePrimitive.Trigger bind:ref {id} class={cn(styles.current.trigger(), className)} {...mergedProps}>
|
|
37
|
+
{#snippet child({ props: childProps })}
|
|
26
38
|
{#if childSnippet}
|
|
27
|
-
{@render childSnippet?.(childProps)}
|
|
39
|
+
{@render childSnippet?.({ props: childProps, open: triggerState.root.opts.value.current })}
|
|
28
40
|
{:else}
|
|
29
|
-
<button {...childProps
|
|
41
|
+
<button {...childProps}>
|
|
30
42
|
{#if iconSnippet !== null}
|
|
31
43
|
<span data-slot="icon" class={styles.current.icon()}>
|
|
32
44
|
{#if iconSnippet}
|
|
@@ -37,7 +49,7 @@
|
|
|
37
49
|
</span>
|
|
38
50
|
{/if}
|
|
39
51
|
|
|
40
|
-
{@render childrenSnippet?.()}
|
|
52
|
+
{@render childrenSnippet?.({ open: triggerState.root.opts.value.current })}
|
|
41
53
|
</button>
|
|
42
54
|
{/if}
|
|
43
55
|
{/snippet}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { CollapsibleVariantsProps } from './styles.js';
|
|
2
2
|
import { type CollapsibleContentProps as CollapsibleContentPropsPrimitive, type CollapsibleRootProps as CollapsibleRootPropsPrimitive, type CollapsibleTriggerProps as CollapsibleTriggerPropsPrimitive } from 'bits-ui';
|
|
3
3
|
import type { Snippet } from 'svelte';
|
|
4
|
+
import type { WithChild, WithoutChild } from 'svelte-toolbelt';
|
|
4
5
|
export type CollapsibleOpenVariant = 'single' | 'multiple';
|
|
5
6
|
export type CollapsibleRootProps = CollapsibleRootPropsPrimitive & CollapsibleVariantsProps;
|
|
6
7
|
export type CollapsibleContentProps = CollapsibleContentPropsPrimitive;
|
|
7
|
-
export type CollapsibleTriggerProps = CollapsibleTriggerPropsPrimitive & {
|
|
8
|
+
export type CollapsibleTriggerProps = WithChild<WithoutChild<CollapsibleTriggerPropsPrimitive> & {
|
|
8
9
|
icon?: Snippet | null;
|
|
9
|
-
}
|
|
10
|
+
}, {
|
|
11
|
+
open: boolean;
|
|
12
|
+
}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
|
-
fill=
|
|
9
|
+
fill={color}
|
|
10
10
|
d="m11.36 14.227l-3.199-3.636c-.395-.45-.019-1.091.64-1.091H15.2c.659 0 1.035.641.64 1.09l-3.2 3.637c-.32.364-.959.364-1.279 0"
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
|
-
fill=
|
|
9
|
+
fill={color}
|
|
10
10
|
d="m11.36 9.773l-3.199 3.636c-.395.45-.019 1.091.64 1.091H15.2c.659 0 1.035-.641.64-1.09l-3.2-3.637c-.32-.364-.959-.364-1.279 0"
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...props}>
|
|
7
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M8.94964 15.7264L5.6133 12.3865C5.52606 12.298 5.42215 12.2279 5.30761 12.18C5.19307 12.1321 5.07017 12.1074 4.94603 12.1074C4.8219 12.1074 4.699 12.1321 4.58445 12.18C4.46991 12.2279 4.36601 12.298 4.27876 12.3865C4.19046 12.4738 4.12034 12.5778 4.07249 12.6925C4.02464 12.8071 4 12.9302 4 13.0544C4 13.1787 4.02464 13.3018 4.07249 13.4164C4.12034 13.5311 4.19046 13.6351 4.27876 13.7224L8.27284 17.7209C8.6446 18.093 9.24514 18.093 9.6169 17.7209L19.7212 7.61506C19.8095 7.52772 19.8797 7.4237 19.9275 7.30904C19.9754 7.19437 20 7.07133 20 6.94706C20 6.82279 19.9754 6.69976 19.9275 6.58509C19.8797 6.47042 19.8095 6.36641 19.7212 6.27907C19.634 6.19066 19.5301 6.12048 19.4155 6.07257C19.301 6.02467 19.1781 6 19.054 6C18.9298 6 18.8069 6.02467 18.6924 6.07257C18.5778 6.12048 18.4739 6.19066 18.3867 6.27907L8.94964 15.7264Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
|
+
<path
|
|
9
|
+
d="M8.94964 15.7264L5.6133 12.3865C5.52606 12.298 5.42215 12.2279 5.30761 12.18C5.19307 12.1321 5.07017 12.1074 4.94603 12.1074C4.8219 12.1074 4.699 12.1321 4.58445 12.18C4.46991 12.2279 4.36601 12.298 4.27876 12.3865C4.19046 12.4738 4.12034 12.5778 4.07249 12.6925C4.02464 12.8071 4 12.9302 4 13.0544C4 13.1787 4.02464 13.3018 4.07249 13.4164C4.12034 13.5311 4.19046 13.6351 4.27876 13.7224L8.27284 17.7209C8.6446 18.093 9.24514 18.093 9.6169 17.7209L19.7212 7.61506C19.8095 7.52772 19.8797 7.4237 19.9275 7.30904C19.9754 7.19437 20 7.07133 20 6.94706C20 6.82279 19.9754 6.69976 19.9275 6.58509C19.8797 6.47042 19.8095 6.36641 19.7212 6.27907C19.634 6.19066 19.5301 6.12048 19.4155 6.07257C19.301 6.02467 19.1781 6 19.054 6C18.9298 6 18.8069 6.02467 18.6924 6.07257C18.5778 6.12048 18.4739 6.19066 18.3867 6.27907L8.94964 15.7264Z"
|
|
10
|
+
fill={color}
|
|
11
|
+
/>
|
|
12
|
+
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M4.71888 8.46936C4.78854 8.39952 4.87131 8.3441 4.96243 8.30629C5.05354 8.26849 5.15122 8.24902 5.24988 8.24902C5.34853 8.24902 5.44621 8.26849 5.53733 8.30629C5.62844 8.3441 5.71121 8.39952 5.78088 8.46936L11.9999 14.6899L18.2189 8.46936C18.3597 8.32853 18.5507 8.24942 18.7499 8.24942C18.949 8.24942 19.14 8.32853 19.2809 8.46936C19.4217 8.61019 19.5008 8.8012 19.5008 9.00036C19.5008 9.19953 19.4217 9.39053 19.2809 9.53136L12.5309 16.2814C12.4612 16.3512 12.3784 16.4066 12.2873 16.4444C12.1962 16.4822 12.0985 16.5017 11.9999 16.5017C11.9012 16.5017 11.8035 16.4822 11.7124 16.4444C11.6213 16.4066 11.5385 16.3512 11.4689 16.2814L4.71888 9.53136C4.64903 9.4617 4.59362 9.37893 4.55581 9.28781C4.518 9.1967 4.49854 9.09901 4.49854 9.00036C4.49854 8.90171 4.518 8.80403 4.55581 8.71291C4.59362 8.6218 4.64903 8.53903 4.71888 8.46936Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M15.9061 5.09436C15.976 5.16403 16.0314 5.2468 16.0692 5.33791C16.107 5.42903 16.1265 5.52671 16.1265 5.62536C16.1265 5.72402 16.107 5.8217 16.0692 5.91281C16.0314 6.00393 15.976 6.0867 15.9061 6.15636L9.68562 12.3754L15.9061 18.5944C16.0469 18.7352 16.1261 18.9262 16.1261 19.1254C16.1261 19.3245 16.0469 19.5155 15.9061 19.6564C15.7653 19.7972 15.5743 19.8763 15.3751 19.8763C15.176 19.8763 14.9849 19.7972 14.8441 19.6564L8.09412 12.9064C8.02427 12.8367 7.96886 12.7539 7.93105 12.6628C7.89324 12.5717 7.87378 12.474 7.87378 12.3754C7.87378 12.2767 7.89324 12.179 7.93105 12.0879C7.96886 11.9968 8.02427 11.914 8.09412 11.8444L14.8441 5.09436C14.9138 5.02452 14.9966 4.96911 15.0877 4.9313C15.1788 4.89349 15.2765 4.87402 15.3751 4.87402C15.4738 4.87402 15.5715 4.89349 15.6626 4.9313C15.7537 4.96911 15.8365 5.02452 15.9061 5.09436Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M8.09412 19.656C8.02427 19.5863 7.96886 19.5035 7.93105 19.4124C7.89324 19.3213 7.87378 19.2236 7.87378 19.125C7.87378 19.0263 7.89324 18.9286 7.93105 18.8375C7.96886 18.7464 8.02427 18.6636 8.09412 18.594L14.3146 12.375L8.09412 6.15597C7.95329 6.01514 7.87417 5.82413 7.87417 5.62497C7.87417 5.42581 7.95329 5.2348 8.09412 5.09397C8.23495 4.95314 8.42596 4.87402 8.62512 4.87402C8.82428 4.87402 9.01529 4.95314 9.15612 5.09397L15.9061 11.844C15.976 11.9136 16.0314 11.9964 16.0692 12.0875C16.107 12.1786 16.1265 12.2763 16.1265 12.375C16.1265 12.4736 16.107 12.5713 16.0692 12.6624C16.0314 12.7535 15.976 12.8363 15.9061 12.906L9.15612 19.656C9.08645 19.7258 9.00369 19.7812 8.91257 19.819C8.82145 19.8568 8.72377 19.8763 8.62512 19.8763C8.52647 19.8763 8.42879 19.8568 8.33767 19.819C8.24655 19.7812 8.16379 19.7258 8.09412 19.656Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
fill-rule="evenodd"
|
|
10
10
|
clip-rule="evenodd"
|
|
11
11
|
d="M7.46967 9.46967C7.76256 9.17678 8.23744 9.17678 8.53033 9.46967L12 12.9393L15.4697 9.46967C15.7626 9.17678 16.2374 9.17678 16.5303 9.46967C16.8232 9.76256 16.8232 10.2374 16.5303 10.5303L12.5303 14.5303C12.2374 14.8232 11.7626 14.8232 11.4697 14.5303L7.46967 10.5303C7.17678 10.2374 7.17678 9.76256 7.46967 9.46967Z"
|
|
12
|
-
fill=
|
|
12
|
+
fill={color}
|
|
13
13
|
/>
|
|
14
14
|
</svg>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
fill-rule="evenodd"
|
|
10
10
|
clip-rule="evenodd"
|
|
11
11
|
d="M14.5303 7.46967C14.8232 7.76256 14.8232 8.23744 14.5303 8.53033L11.0607 12L14.5303 15.4697C14.8232 15.7626 14.8232 16.2374 14.5303 16.5303C14.2374 16.8232 13.7626 16.8232 13.4697 16.5303L9.46967 12.5303C9.17678 12.2374 9.17678 11.7626 9.46967 11.4697L13.4697 7.46967C13.7626 7.17678 14.2374 7.17678 14.5303 7.46967Z"
|
|
12
|
-
fill=
|
|
12
|
+
fill={color}
|
|
13
13
|
/>
|
|
14
14
|
</svg>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
fill-rule="evenodd"
|
|
10
10
|
clip-rule="evenodd"
|
|
11
11
|
d="M9.46967 7.46967C9.76256 7.17678 10.2374 7.17678 10.5303 7.46967L14.5303 11.4697C14.8232 11.7626 14.8232 12.2374 14.5303 12.5303L10.5303 16.5303C10.2374 16.8232 9.76256 16.8232 9.46967 16.5303C9.17678 16.2374 9.17678 15.7626 9.46967 15.4697L12.9393 12L9.46967 8.53033C9.17678 8.23744 9.17678 7.76256 9.46967 7.46967Z"
|
|
12
|
-
fill=
|
|
12
|
+
fill={color}
|
|
13
13
|
/>
|
|
14
14
|
</svg>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
fill-rule="evenodd"
|
|
10
10
|
clip-rule="evenodd"
|
|
11
11
|
d="M11.4697 9.46967C11.7626 9.17678 12.2374 9.17678 12.5303 9.46967L16.5303 13.4697C16.8232 13.7626 16.8232 14.2374 16.5303 14.5303C16.2374 14.8232 15.7626 14.8232 15.4697 14.5303L12 11.0607L8.53033 14.5303C8.23744 14.8232 7.76256 14.8232 7.46967 14.5303C7.17678 14.2374 7.17678 13.7626 7.46967 13.4697L11.4697 9.46967Z"
|
|
12
|
-
fill=
|
|
12
|
+
fill={color}
|
|
13
13
|
/>
|
|
14
14
|
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M19.281 16.2814C19.2113 16.3512 19.1285 16.4066 19.0374 16.4444C18.9463 16.4822 18.8486 16.5017 18.75 16.5017C18.6513 16.5017 18.5536 16.4822 18.4625 16.4444C18.3714 16.4066 18.2886 16.3512 18.219 16.2814L12 10.0609L5.78097 16.2814C5.64014 16.4222 5.44913 16.5013 5.24997 16.5013C5.05081 16.5013 4.8598 16.4222 4.71897 16.2814C4.57814 16.1405 4.49902 15.9495 4.49902 15.7504C4.49902 15.5512 4.57814 15.3602 4.71897 15.2194L11.469 8.46936C11.5386 8.39952 11.6214 8.34411 11.7125 8.3063C11.8036 8.26849 11.9013 8.24902 12 8.24902C12.0986 8.24902 12.1963 8.26849 12.2874 8.3063C12.3785 8.34411 12.4613 8.39952 12.531 8.46936L19.281 15.2194C19.3508 15.289 19.4062 15.3718 19.444 15.4629C19.4818 15.554 19.5013 15.6517 19.5013 15.7504C19.5013 15.849 19.4818 15.9467 19.444 16.0378C19.4062 16.1289 19.3508 16.2117 19.281 16.2814Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M18 14C16.8954 14 16 13.1046 16 12C16 10.8954 16.8954 10 18 10C19.1046 10 20 10.8954 20 12C20 13.1046 19.1046 14 18 14Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
<path
|
|
13
13
|
d="M12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14Z"
|
|
14
|
-
fill=
|
|
14
|
+
fill={color}
|
|
15
15
|
/>
|
|
16
16
|
<path
|
|
17
17
|
d="M6 14C4.89543 14 4 13.1046 4 12C4 10.8954 4.89543 10 6 10C7.10457 10 8 10.8954 8 12C8 13.1046 7.10457 14 6 14Z"
|
|
18
|
-
fill=
|
|
18
|
+
fill={color}
|
|
19
19
|
/>
|
|
20
20
|
</svg>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { IconProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
let props: IconProps = $props();
|
|
4
|
+
let { width = 24, height = 24, color = 'currentColor', ...props }: IconProps = $props();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
|
|
7
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {width} {height} {...props}>
|
|
8
8
|
<path
|
|
9
9
|
d="M12 3C7.041 3 3 7.041 3 12C3 16.959 7.041 21 12 21C16.959 21 21 16.959 21 12C21 7.041 16.959 3 12 3ZM15.024 14.07C15.285 14.331 15.285 14.763 15.024 15.024C14.889 15.159 14.718 15.222 14.547 15.222C14.376 15.222 14.205 15.159 14.07 15.024L12 12.954L9.93 15.024C9.795 15.159 9.624 15.222 9.453 15.222C9.282 15.222 9.111 15.159 8.976 15.024C8.715 14.763 8.715 14.331 8.976 14.07L11.046 12L8.976 9.93C8.715 9.669 8.715 9.237 8.976 8.976C9.237 8.715 9.669 8.715 9.93 8.976L12 11.046L14.07 8.976C14.331 8.715 14.763 8.715 15.024 8.976C15.285 9.237 15.285 9.669 15.024 9.93L12.954 12L15.024 14.07Z"
|
|
10
|
-
fill=
|
|
10
|
+
fill={color}
|
|
11
11
|
/>
|
|
12
12
|
</svg>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as CaretDown } from './caret-down.svelte';
|
|
2
2
|
export { default as CaretUp } from './caret-up.svelte';
|
|
3
3
|
export { default as Check } from './check.svelte';
|
|
4
|
+
export { default as Checkmark } from './checkmark.svelte';
|
|
4
5
|
export { default as ChevronDown } from './chevron-down.svelte';
|
|
5
6
|
export { default as ChevronLeft } from './chevron-left.svelte';
|
|
6
7
|
export { default as ChevronRight } from './chevron-right.svelte';
|
|
@@ -16,6 +17,7 @@ export { default as Eye } from './eye.svelte';
|
|
|
16
17
|
export { default as Info } from './info.svelte';
|
|
17
18
|
export { default as Minus } from './minus.svelte';
|
|
18
19
|
export { default as SidebarToggle } from './sidebar-toggle.svelte';
|
|
20
|
+
export { default as Slash } from './slash.svelte';
|
|
19
21
|
export { default as Sort } from './sort.svelte';
|
|
20
22
|
export { default as Spinner } from './spinner.svelte';
|
|
21
23
|
export { default as Success } from './success.svelte';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as CaretDown } from './caret-down.svelte';
|
|
2
2
|
export { default as CaretUp } from './caret-up.svelte';
|
|
3
3
|
export { default as Check } from './check.svelte';
|
|
4
|
+
export { default as Checkmark } from './checkmark.svelte';
|
|
4
5
|
export { default as ChevronDown } from './chevron-down.svelte';
|
|
5
6
|
export { default as ChevronLeft } from './chevron-left.svelte';
|
|
6
7
|
export { default as ChevronRight } from './chevron-right.svelte';
|
|
@@ -16,6 +17,7 @@ export { default as Eye } from './eye.svelte';
|
|
|
16
17
|
export { default as Info } from './info.svelte';
|
|
17
18
|
export { default as Minus } from './minus.svelte';
|
|
18
19
|
export { default as SidebarToggle } from './sidebar-toggle.svelte';
|
|
20
|
+
export { default as Slash } from './slash.svelte';
|
|
19
21
|
export { default as Sort } from './sort.svelte';
|
|
20
22
|
export { default as Spinner } from './spinner.svelte';
|
|
21
23
|
export { default as Success } from './success.svelte';
|