@casinogate/ui 1.3.1 → 1.3.2
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/app-shell/components/app-shell.content.svelte +7 -10
- package/dist/components/app-shell/components/app-shell.content.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.header.svelte +5 -10
- package/dist/components/app-shell/components/app-shell.header.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.nav-bar.svelte +5 -10
- package/dist/components/app-shell/components/app-shell.nav-bar.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.root.svelte +6 -21
- package/dist/components/app-shell/components/app-shell.root.svelte.d.ts +2 -11
- package/dist/components/app-shell/components/app-shell.sidebar-footer.svelte +5 -10
- package/dist/components/app-shell/components/app-shell.sidebar-footer.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.sidebar-head.svelte +5 -10
- package/dist/components/app-shell/components/app-shell.sidebar-head.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.sidebar-toggle.svelte +7 -12
- package/dist/components/app-shell/components/app-shell.sidebar-toggle.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.sidebar.svelte +5 -10
- package/dist/components/app-shell/components/app-shell.sidebar.svelte.d.ts +1 -4
- package/dist/components/app-shell/components/app-shell.viewport.svelte +5 -10
- package/dist/components/app-shell/components/app-shell.viewport.svelte.d.ts +1 -4
- package/dist/components/app-shell/exports-primitive.d.ts +9 -0
- package/dist/components/app-shell/exports-primitive.js +9 -0
- package/dist/components/app-shell/index.d.ts +2 -20
- package/dist/components/app-shell/index.js +1 -20
- package/dist/components/app-shell/types.d.ts +26 -0
- package/dist/components/button/button.component.svelte +12 -135
- package/dist/components/button/button.component.svelte.d.ts +2 -236
- package/dist/components/button/exports.d.ts +1 -0
- package/dist/components/button/exports.js +1 -0
- package/dist/components/button/index.d.ts +2 -233
- package/dist/components/button/index.js +1 -4
- package/dist/components/button/styles.d.ts +231 -0
- package/dist/components/button/styles.js +105 -0
- package/dist/components/button/types.d.ts +7 -0
- package/dist/components/button/types.js +1 -0
- package/dist/components/button-group/button-group.stories.svelte +10 -10
- package/dist/components/button-group/button-group.stories.svelte.d.ts +0 -1
- package/dist/components/button-group/components/button-group.root.svelte +4 -11
- package/dist/components/button-group/components/button-group.root.svelte.d.ts +1 -5
- package/dist/components/button-group/components/button-group.separator.svelte +2 -2
- package/dist/components/button-group/components/button-group.separator.svelte.d.ts +1 -11
- package/dist/components/button-group/exports-primitive.d.ts +2 -0
- package/dist/components/button-group/exports-primitive.js +2 -0
- package/dist/components/button-group/index.d.ts +2 -16
- package/dist/components/button-group/index.js +1 -6
- package/dist/components/button-group/types.d.ts +8 -0
- package/dist/components/button-group/types.js +1 -0
- package/dist/components/checkbox/components/checkbox.root.svelte +8 -9
- package/dist/components/checkbox/components/checkbox.root.svelte.d.ts +3 -4
- package/dist/components/checkbox/exports-primitive.d.ts +2 -0
- package/dist/components/checkbox/exports-primitive.js +2 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.js +2 -6
- package/dist/components/checkbox/model/{checkbox-model.svelte.d.ts → checkbox-controller.svelte.d.ts} +3 -4
- package/dist/components/checkbox/model/{checkbox-model.svelte.js → checkbox-controller.svelte.js} +1 -4
- package/dist/components/checkbox/model/index.d.ts +1 -1
- package/dist/components/checkbox/model/index.js +1 -1
- package/dist/components/checkbox/types.d.ts +3 -0
- package/dist/components/checkbox/types.js +2 -0
- package/dist/components/collapsible/components/collapsaible.content.svelte +5 -9
- package/dist/components/collapsible/components/collapsaible.content.svelte.d.ts +1 -2
- package/dist/components/collapsible/components/collapsaible.root.svelte +6 -14
- package/dist/components/collapsible/components/collapsaible.root.svelte.d.ts +1 -3
- package/dist/components/collapsible/components/collapsaible.trigger.svelte +7 -14
- package/dist/components/collapsible/components/collapsaible.trigger.svelte.d.ts +1 -5
- package/dist/components/collapsible/exports-primitive.d.ts +3 -0
- package/dist/components/collapsible/exports-primitive.js +3 -0
- package/dist/components/collapsible/index.d.ts +2 -9
- package/dist/components/collapsible/index.js +1 -8
- package/dist/components/collapsible/styles.d.ts +8 -8
- package/dist/components/collapsible/types.d.ts +8 -0
- package/dist/components/collapsible/types.js +1 -1
- package/dist/components/data-table/components/data-table.body.svelte +2 -10
- package/dist/components/data-table/components/data-table.body.svelte.d.ts +1 -5
- package/dist/components/data-table/components/data-table.cell.svelte +2 -14
- package/dist/components/data-table/components/data-table.cell.svelte.d.ts +1 -7
- package/dist/components/data-table/components/data-table.head.svelte +2 -14
- package/dist/components/data-table/components/data-table.head.svelte.d.ts +1 -7
- package/dist/components/data-table/components/data-table.header.svelte +2 -9
- package/dist/components/data-table/components/data-table.header.svelte.d.ts +1 -4
- package/dist/components/data-table/components/data-table.resize-handler.svelte +2 -9
- package/dist/components/data-table/components/data-table.resize-handler.svelte.d.ts +1 -4
- package/dist/components/data-table/components/data-table.root.svelte +4 -15
- package/dist/components/data-table/components/data-table.root.svelte.d.ts +6 -13
- package/dist/components/data-table/components/data-table.row.svelte +2 -9
- package/dist/components/data-table/components/data-table.row.svelte.d.ts +1 -4
- package/dist/components/data-table/components/data-table.sort-button.svelte +4 -11
- package/dist/components/data-table/components/data-table.sort-button.svelte.d.ts +1 -4
- package/dist/components/data-table/components/data-table.svelte.d.ts +2 -2
- package/dist/components/data-table/components/data-table.table.svelte +2 -9
- package/dist/components/data-table/components/data-table.table.svelte.d.ts +1 -4
- package/dist/components/data-table/data-table.svelte +3 -16
- package/dist/components/data-table/data-table.svelte.d.ts +2 -9
- package/dist/components/data-table/exports-primitive.d.ts +10 -0
- package/dist/components/data-table/exports-primitive.js +10 -0
- package/dist/components/data-table/exports.d.ts +1 -0
- package/dist/components/data-table/exports.js +1 -28
- package/dist/components/data-table/index.d.ts +4 -0
- package/dist/components/data-table/index.js +3 -0
- package/dist/components/data-table/types.d.ts +37 -1
- package/dist/components/data-table/types.js +1 -1
- package/dist/components/field/components/field.control.svelte +3 -1
- package/dist/components/field/components/field.description.svelte +5 -10
- package/dist/components/field/components/field.description.svelte.d.ts +1 -4
- package/dist/components/field/components/field.error.svelte +5 -10
- package/dist/components/field/components/field.error.svelte.d.ts +1 -4
- package/dist/components/field/components/field.label.svelte +5 -10
- package/dist/components/field/components/field.label.svelte.d.ts +1 -4
- package/dist/components/field/components/field.root.svelte +5 -19
- package/dist/components/field/components/field.root.svelte.d.ts +1 -9
- package/dist/components/field/exports-primitive.d.ts +5 -0
- package/dist/components/field/exports-primitive.js +5 -0
- package/dist/components/field/exports.d.ts +1 -0
- package/dist/components/field/exports.js +1 -0
- package/dist/components/field/field.svelte.d.ts +1 -1
- package/dist/components/field/index.d.ts +3 -14
- package/dist/components/field/index.js +2 -14
- package/dist/components/field/styles.d.ts +3 -3
- package/dist/components/field/types.d.ts +23 -0
- package/dist/components/field/types.js +1 -0
- package/dist/components/icons/exports.d.ts +22 -0
- package/dist/components/icons/exports.js +22 -0
- package/dist/components/icons/index.d.ts +1 -22
- package/dist/components/icons/index.js +1 -22
- package/dist/components/index.d.ts +19 -0
- package/dist/components/index.js +19 -0
- package/dist/components/input/exports.d.ts +2 -0
- package/dist/components/input/exports.js +2 -0
- package/dist/components/input/index.d.ts +2 -6
- package/dist/components/input/index.js +1 -5
- package/dist/components/input/input.password.svelte +6 -15
- package/dist/components/input/input.password.svelte.d.ts +2 -4
- package/dist/components/input/input.svelte +5 -16
- package/dist/components/input/input.svelte.d.ts +1 -9
- package/dist/components/input/types.d.ts +13 -0
- package/dist/components/input/types.js +1 -0
- package/dist/components/navigation/components/navigation.content.svelte +6 -11
- package/dist/components/navigation/components/navigation.content.svelte.d.ts +1 -4
- package/dist/components/navigation/components/navigation.item.svelte +5 -10
- package/dist/components/navigation/components/navigation.item.svelte.d.ts +1 -4
- package/dist/components/navigation/components/navigation.root.svelte +6 -11
- package/dist/components/navigation/components/navigation.root.svelte.d.ts +1 -7
- package/dist/components/navigation/components/navigation.sub-content.svelte +6 -11
- package/dist/components/navigation/components/navigation.sub-content.svelte.d.ts +1 -6
- package/dist/components/navigation/components/navigation.trigger.svelte +4 -21
- package/dist/components/navigation/components/navigation.trigger.svelte.d.ts +1 -9
- package/dist/components/navigation/exports-primitive.d.ts +5 -0
- package/dist/components/navigation/exports-primitive.js +5 -0
- package/dist/components/navigation/exports.d.ts +1 -0
- package/dist/components/navigation/exports.js +1 -0
- package/dist/components/navigation/index.d.ts +3 -12
- package/dist/components/navigation/index.js +2 -12
- package/dist/components/navigation/types.d.ts +23 -0
- package/dist/components/navigation/types.js +1 -0
- package/dist/components/pagination/components/pagination.ellipsis.svelte +3 -9
- package/dist/components/pagination/components/pagination.ellipsis.svelte.d.ts +1 -4
- package/dist/components/pagination/components/pagination.item.svelte +2 -5
- package/dist/components/pagination/components/pagination.item.svelte.d.ts +1 -2
- package/dist/components/pagination/components/pagination.next-button.svelte +4 -10
- package/dist/components/pagination/components/pagination.next-button.svelte.d.ts +1 -2
- package/dist/components/pagination/components/pagination.prev-button.svelte +4 -11
- package/dist/components/pagination/components/pagination.prev-button.svelte.d.ts +1 -2
- package/dist/components/pagination/components/pagination.root.svelte +3 -10
- package/dist/components/pagination/components/pagination.root.svelte.d.ts +1 -3
- package/dist/components/pagination/exports-primitive.d.ts +5 -0
- package/dist/components/pagination/exports-primitive.js +5 -0
- package/dist/components/pagination/exports.d.ts +1 -0
- package/dist/components/pagination/exports.js +1 -0
- package/dist/components/pagination/index.d.ts +3 -16
- package/dist/components/pagination/index.js +2 -16
- package/dist/components/pagination/pagination.stories.svelte +1 -1
- package/dist/components/pagination/pagination.svelte +28 -0
- package/dist/components/pagination/pagination.svelte.d.ts +3 -0
- package/dist/components/pagination/types.d.ts +10 -0
- package/dist/components/pagination/types.js +1 -0
- package/dist/components/popover/exports-primitive.d.ts +4 -0
- package/dist/components/popover/exports-primitive.js +5 -0
- package/dist/components/popover/exports.d.ts +1 -0
- package/dist/components/popover/exports.js +1 -15
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.svelte +1 -2
- package/dist/components/popover/popover.svelte.d.ts +1 -2
- package/dist/components/popover/types.d.ts +1 -1
- package/dist/components/segment/components/segment.item.svelte +12 -14
- package/dist/components/segment/components/segment.item.svelte.d.ts +1 -6
- package/dist/components/segment/components/segment.root.svelte +6 -22
- package/dist/components/segment/components/segment.root.svelte.d.ts +1 -10
- package/dist/components/segment/exports-primitive.d.ts +2 -0
- package/dist/components/segment/exports-primitive.js +2 -0
- package/dist/components/segment/index.d.ts +2 -7
- package/dist/components/segment/index.js +1 -6
- package/dist/components/segment/types.d.ts +14 -0
- package/dist/components/segment/types.js +1 -0
- package/dist/components/select/components/select.root.svelte +3 -6
- package/dist/components/select/components/select.root.svelte.d.ts +1 -3
- package/dist/components/select/components/select.trigger.svelte +2 -11
- package/dist/components/select/components/select.trigger.svelte.d.ts +1 -7
- package/dist/components/select/exports-primitive.d.ts +2 -0
- package/dist/components/select/exports-primitive.js +2 -0
- package/dist/components/select/index.d.ts +2 -7
- package/dist/components/select/index.js +1 -6
- package/dist/components/select/select.stories.svelte +3 -3
- package/dist/components/select/types.d.ts +9 -0
- package/dist/components/select/types.js +2 -0
- package/dist/components/separator/exports.d.ts +1 -0
- package/dist/components/separator/exports.js +1 -0
- package/dist/components/separator/index.d.ts +2 -5
- package/dist/components/separator/index.js +1 -4
- package/dist/components/separator/separator.svelte +1 -4
- package/dist/components/separator/separator.svelte.d.ts +0 -1
- package/dist/components/separator/types.d.ts +2 -0
- package/dist/components/separator/types.js +1 -0
- package/dist/components/skeleton/exports.d.ts +1 -0
- package/dist/components/skeleton/exports.js +1 -0
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.svelte +3 -15
- package/dist/components/skeleton/skeleton.svelte.d.ts +1 -8
- package/dist/components/skeleton/types.d.ts +9 -0
- package/dist/components/skeleton/types.js +1 -0
- package/dist/components/spinner/exports.d.ts +1 -0
- package/dist/components/spinner/exports.js +1 -0
- package/dist/components/spinner/index.d.ts +2 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/spinner/spinner.svelte +3 -13
- package/dist/components/spinner/spinner.svelte.d.ts +1 -6
- package/dist/components/spinner/types.d.ts +7 -0
- package/dist/components/spinner/types.js +1 -0
- package/dist/components/switch/components/switch.root.svelte +6 -7
- package/dist/components/switch/components/switch.root.svelte.d.ts +2 -4
- package/dist/components/switch/components/switch.thumb.svelte +5 -7
- package/dist/components/switch/components/switch.thumb.svelte.d.ts +1 -2
- package/dist/components/switch/exports-primitive.d.ts +2 -0
- package/dist/components/switch/exports-primitive.js +2 -0
- package/dist/components/switch/exports.d.ts +1 -0
- package/dist/components/switch/exports.js +1 -0
- package/dist/components/switch/index.d.ts +4 -10
- package/dist/components/switch/index.js +3 -10
- package/dist/components/switch/model/index.d.ts +1 -1
- package/dist/components/switch/model/index.js +1 -1
- package/dist/components/switch/model/switch-controller.svelte.d.ts +11 -0
- package/dist/components/switch/model/{switch-model.svelte.js → switch-controller.svelte.js} +1 -4
- package/dist/components/switch/switch.stories.svelte +1 -1
- package/dist/components/switch/switch.svelte +11 -0
- package/dist/components/switch/switch.svelte.d.ts +3 -0
- package/dist/components/switch/types.d.ts +5 -0
- package/dist/components/switch/types.js +2 -0
- package/dist/components/toast/exports.d.ts +1 -0
- package/dist/components/toast/exports.js +1 -0
- package/dist/components/toast/index.d.ts +2 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/styles.d.ts +152 -0
- package/dist/components/toast/styles.js +62 -0
- package/dist/components/toast/toast.component.svelte +9 -97
- package/dist/components/toast/toast.component.svelte.d.ts +1 -155
- package/dist/components/toast/types.d.ts +11 -0
- package/dist/components/toast/types.js +1 -0
- package/dist/index.d.ts +1 -17
- package/dist/index.js +1 -17
- package/package.json +1 -1
- package/dist/components/pagination/presets/basic.svelte +0 -31
- package/dist/components/pagination/presets/basic.svelte.d.ts +0 -5
- package/dist/components/pagination/presets/index.d.ts +0 -1
- package/dist/components/pagination/presets/index.js +0 -1
- package/dist/components/switch/model/switch-model.svelte.d.ts +0 -12
- package/dist/components/switch/presets/basic.svelte +0 -14
- package/dist/components/switch/presets/basic.svelte.d.ts +0 -5
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export type InputPasswordProps = Omit<InputProps, 'endChevron' | 'type'> & {
|
|
3
|
-
showPassword?: boolean;
|
|
4
|
-
};
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
1
|
<script lang="ts">
|
|
8
|
-
import {
|
|
2
|
+
import { Icon } from '../icons/index.js';
|
|
9
3
|
|
|
10
4
|
import { cn } from '../../internal/utils/common.js';
|
|
11
|
-
import Input
|
|
5
|
+
import Input from './input.svelte';
|
|
6
|
+
import type { InputPasswordProps } from './types.js';
|
|
12
7
|
|
|
13
8
|
let {
|
|
14
9
|
ref = $bindable(null),
|
|
@@ -18,26 +13,22 @@
|
|
|
18
13
|
}: InputPasswordProps = $props();
|
|
19
14
|
|
|
20
15
|
const type = $derived(showPassword ? 'text' : 'password');
|
|
21
|
-
|
|
22
|
-
function togglePassword() {
|
|
23
|
-
showPassword = !showPassword;
|
|
24
|
-
}
|
|
25
16
|
</script>
|
|
26
17
|
|
|
27
18
|
<Input bind:ref bind:value {type} {...restProps}>
|
|
28
19
|
{#snippet endChevron()}
|
|
29
20
|
<button
|
|
30
21
|
type="button"
|
|
31
|
-
onclick={
|
|
22
|
+
onclick={() => (showPassword = !showPassword)}
|
|
32
23
|
class={cn(
|
|
33
24
|
'cgui:cursor-pointer cgui:p-0 cgui:flex cgui:items-center cgui:justify-center cgui:bg-transparent cgui:border-none',
|
|
34
25
|
'cgui:focus-visible:ring-stroke-focus cgui:focus-visible:border-stroke-focus cgui:outline-stroke-focus'
|
|
35
26
|
)}
|
|
36
27
|
>
|
|
37
28
|
{#if showPassword}
|
|
38
|
-
<
|
|
29
|
+
<Icon.Eye width={20} height={20} />
|
|
39
30
|
{:else}
|
|
40
|
-
<
|
|
31
|
+
<Icon.EyeCrossed width={20} height={20} />
|
|
41
32
|
{/if}
|
|
42
33
|
</button>
|
|
43
34
|
{/snippet}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
4
|
-
import Input, { type InputProps } from './input.svelte';
|
|
1
|
+
import Input from './input.svelte';
|
|
2
|
+
import type { InputPasswordProps } from './types.js';
|
|
5
3
|
declare const Input: import("svelte").Component<InputPasswordProps, {}, "value" | "ref" | "showPassword">;
|
|
6
4
|
type Input = ReturnType<typeof Input>;
|
|
7
5
|
export default Input;
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
<script lang="ts"
|
|
2
|
-
import type { PrimitiveInputAttributes } from '../../internal/types/html-attributes.js';
|
|
1
|
+
<script lang="ts">
|
|
3
2
|
import { getDataActive } from '../../internal/utils/attrs.js';
|
|
4
3
|
import { cn, useId } from '../../internal/utils/common.js';
|
|
5
|
-
import
|
|
6
|
-
import type {
|
|
7
|
-
import { type InputVariants, inputStyles } from './styles.js';
|
|
8
|
-
|
|
9
|
-
type InputPropsWithoutHTML = WithElementRef<{
|
|
10
|
-
startChevron?: Snippet;
|
|
4
|
+
import { inputStyles } from './styles.js';
|
|
5
|
+
import type { InputProps } from './types.js';
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
}> &
|
|
14
|
-
InputVariants;
|
|
7
|
+
const uid = $props.id();
|
|
15
8
|
|
|
16
|
-
export type InputProps = InputPropsWithoutHTML & Without<PrimitiveInputAttributes, InputPropsWithoutHTML>;
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<script lang="ts">
|
|
20
9
|
let {
|
|
21
10
|
ref = $bindable(null),
|
|
22
|
-
id = useId(),
|
|
11
|
+
id = useId(uid),
|
|
23
12
|
value = $bindable(''),
|
|
24
13
|
class: className,
|
|
25
14
|
startChevron,
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
3
|
-
import type { WithElementRef, Without } from 'svelte-toolbelt';
|
|
4
|
-
import { type InputVariants } from './styles.js';
|
|
5
|
-
type InputPropsWithoutHTML = WithElementRef<{
|
|
6
|
-
startChevron?: Snippet;
|
|
7
|
-
endChevron?: Snippet;
|
|
8
|
-
}> & InputVariants;
|
|
9
|
-
export type InputProps = InputPropsWithoutHTML & Without<PrimitiveInputAttributes, InputPropsWithoutHTML>;
|
|
1
|
+
import type { InputProps } from './types.js';
|
|
10
2
|
declare const Input: import("svelte").Component<InputProps, {}, "value" | "ref">;
|
|
11
3
|
type Input = ReturnType<typeof Input>;
|
|
12
4
|
export default Input;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PrimitiveInputAttributes } from '../../internal/types/html-attributes.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import type { WithElementRef, Without } from 'svelte-toolbelt';
|
|
4
|
+
import type { InputVariants } from './styles.js';
|
|
5
|
+
type InputPropsWithoutHTML = WithElementRef<{
|
|
6
|
+
startChevron?: Snippet;
|
|
7
|
+
endChevron?: Snippet;
|
|
8
|
+
}> & InputVariants;
|
|
9
|
+
export type InputProps = InputPropsWithoutHTML & Without<PrimitiveInputAttributes, InputPropsWithoutHTML>;
|
|
10
|
+
export type InputPasswordProps = Omit<InputProps, 'endChevron' | 'type'> & {
|
|
11
|
+
showPassword?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
3
|
-
import { boxWith, mergeProps, type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
|
|
4
|
-
|
|
5
|
-
type NavigationContentPropsWithoutHTML = WithElementRef<WithChild<{}>>;
|
|
6
|
-
|
|
7
|
-
export type NavigationContentProps = NavigationContentPropsWithoutHTML &
|
|
8
|
-
Without<PrimitiveElementAttributes, NavigationContentPropsWithoutHTML>;
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
1
|
<script lang="ts">
|
|
2
|
+
import { boxWith, mergeProps } from 'svelte-toolbelt';
|
|
3
|
+
|
|
12
4
|
import { NavigationStylesContext } from '../styles.js';
|
|
13
5
|
import { cn, useId } from '../../../internal/utils/common.js';
|
|
6
|
+
import type { NavigationContentProps } from '../types.js';
|
|
14
7
|
import { NavigationContentState } from './navigation.svelte.js';
|
|
15
8
|
|
|
9
|
+
const uid = $props.id();
|
|
10
|
+
|
|
16
11
|
let {
|
|
17
12
|
ref = $bindable(null),
|
|
18
|
-
id = useId(),
|
|
13
|
+
id = useId(uid),
|
|
19
14
|
children,
|
|
20
15
|
child,
|
|
21
16
|
class: className,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
|
|
3
|
-
type NavigationContentPropsWithoutHTML = WithElementRef<WithChild<{}>>;
|
|
4
|
-
export type NavigationContentProps = NavigationContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationContentPropsWithoutHTML>;
|
|
1
|
+
import type { NavigationContentProps } from '../types.js';
|
|
5
2
|
declare const Navigation: import("svelte").Component<NavigationContentProps, {}, "ref">;
|
|
6
3
|
type Navigation = ReturnType<typeof Navigation>;
|
|
7
4
|
export default Navigation;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
type NavigationItemPropsWithoutHTML = WithElementRef<WithChild<{}>>;
|
|
3
|
-
|
|
4
|
-
export type NavigationItemProps = NavigationItemPropsWithoutHTML &
|
|
5
|
-
Without<PrimitiveElementAttributes, NavigationItemPropsWithoutHTML>;
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
1
|
<script lang="ts">
|
|
9
2
|
import { CollapsiblePrimitive } from '../../collapsible/index.js';
|
|
10
3
|
import { NavigationStylesContext } from '../styles.js';
|
|
11
4
|
import { PopoverPrimitive } from '../../popover/index.js';
|
|
12
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
13
5
|
import { cn, useId } from '../../../internal/utils/common.js';
|
|
14
|
-
import { boxWith, mergeProps
|
|
6
|
+
import { boxWith, mergeProps } from 'svelte-toolbelt';
|
|
7
|
+
import type { NavigationItemProps } from '../types.js';
|
|
15
8
|
import { NavigationItemState } from './navigation.svelte.js';
|
|
16
9
|
|
|
10
|
+
const uid = $props.id();
|
|
11
|
+
|
|
17
12
|
let {
|
|
18
13
|
ref = $bindable(null),
|
|
19
|
-
id = useId(),
|
|
14
|
+
id = useId(uid),
|
|
20
15
|
children,
|
|
21
16
|
child,
|
|
22
17
|
class: className,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
type
|
|
2
|
-
export type NavigationItemProps = NavigationItemPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationItemPropsWithoutHTML>;
|
|
3
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
4
|
-
import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
|
|
1
|
+
import type { NavigationItemProps } from '../types.js';
|
|
5
2
|
declare const Navigation: import("svelte").Component<NavigationItemProps, {}, "ref">;
|
|
6
3
|
type Navigation = ReturnType<typeof Navigation>;
|
|
7
4
|
export default Navigation;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
type NavigationRootPropsWithoutHTML = WithElementRef<WithChild<{}, { compact: boolean }>> & NavigationVariantsProps;
|
|
3
|
-
|
|
4
|
-
export type NavigationRootProps = NavigationRootPropsWithoutHTML &
|
|
5
|
-
Without<PrimitiveElementAttributes, NavigationRootPropsWithoutHTML>;
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
1
|
<script lang="ts">
|
|
9
|
-
import { NavigationStylesContext, navigationVariants
|
|
2
|
+
import { NavigationStylesContext, navigationVariants } from '../styles.js';
|
|
3
|
+
import type { NavigationRootProps } from '../types.js';
|
|
10
4
|
|
|
11
5
|
import { NavigationRootState } from './navigation.svelte.js';
|
|
12
6
|
|
|
13
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
14
7
|
import { cn, useId } from '../../../internal/utils/common.js';
|
|
15
|
-
import { box, mergeProps
|
|
8
|
+
import { box, mergeProps } from 'svelte-toolbelt';
|
|
9
|
+
|
|
10
|
+
const uid = $props.id();
|
|
16
11
|
|
|
17
12
|
let {
|
|
18
13
|
ref = $bindable(null),
|
|
19
|
-
id = useId(),
|
|
14
|
+
id = useId(uid),
|
|
20
15
|
children,
|
|
21
16
|
child,
|
|
22
17
|
class: className,
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
type
|
|
2
|
-
compact: boolean;
|
|
3
|
-
}>> & NavigationVariantsProps;
|
|
4
|
-
export type NavigationRootProps = NavigationRootPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationRootPropsWithoutHTML>;
|
|
5
|
-
import { type NavigationVariantsProps } from '../styles.js';
|
|
6
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
7
|
-
import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
|
|
1
|
+
import type { NavigationRootProps } from '../types.js';
|
|
8
2
|
declare const Navigation: import("svelte").Component<NavigationRootProps, {}, "ref">;
|
|
9
3
|
type Navigation = ReturnType<typeof Navigation>;
|
|
10
4
|
export default Navigation;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
3
|
-
import { boxWith, mergeProps, type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
|
|
4
|
-
|
|
5
|
-
type NavigationSubContentPropsWithoutHTML = WithElementRef<WithChild<{}, { compact: boolean }>>;
|
|
6
|
-
|
|
7
|
-
export type NavigationSubContentProps = NavigationSubContentPropsWithoutHTML &
|
|
8
|
-
Without<PrimitiveElementAttributes, NavigationSubContentPropsWithoutHTML>;
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
1
|
<script lang="ts">
|
|
2
|
+
import { boxWith, mergeProps } from 'svelte-toolbelt';
|
|
3
|
+
|
|
12
4
|
import { CollapsiblePrimitive } from '../../collapsible/index.js';
|
|
13
5
|
import { NavigationStylesContext } from '../styles.js';
|
|
14
6
|
import { PopoverPrimitive } from '../../popover/index.js';
|
|
15
7
|
import { cn, useId } from '../../../internal/utils/common.js';
|
|
16
8
|
import { cubicInOut } from 'svelte/easing';
|
|
17
9
|
import { fade, fly } from 'svelte/transition';
|
|
10
|
+
import type { NavigationSubContentProps } from '../types.js';
|
|
18
11
|
import { NavigationSubContentState } from './navigation.svelte.js';
|
|
19
12
|
|
|
13
|
+
const uid = $props.id();
|
|
14
|
+
|
|
20
15
|
let {
|
|
21
16
|
ref = $bindable(null),
|
|
22
|
-
id = useId(),
|
|
17
|
+
id = useId(uid),
|
|
23
18
|
children,
|
|
24
19
|
child,
|
|
25
20
|
class: className,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type WithChild, type WithElementRef, type Without } from 'svelte-toolbelt';
|
|
3
|
-
type NavigationSubContentPropsWithoutHTML = WithElementRef<WithChild<{}, {
|
|
4
|
-
compact: boolean;
|
|
5
|
-
}>>;
|
|
6
|
-
export type NavigationSubContentProps = NavigationSubContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationSubContentPropsWithoutHTML>;
|
|
1
|
+
import type { NavigationSubContentProps } from '../types.js';
|
|
7
2
|
declare const Navigation: import("svelte").Component<NavigationSubContentProps, {}, "ref">;
|
|
8
3
|
type Navigation = ReturnType<typeof Navigation>;
|
|
9
4
|
export default Navigation;
|
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
type NavigationTriggerPropsWithoutHTML = WithElementRef<
|
|
3
|
-
WithChild<
|
|
4
|
-
{
|
|
5
|
-
href?: string;
|
|
6
|
-
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
compact: boolean;
|
|
11
|
-
}
|
|
12
|
-
>
|
|
13
|
-
>;
|
|
14
|
-
|
|
15
|
-
export type NavigationTriggerProps = NavigationTriggerPropsWithoutHTML &
|
|
16
|
-
Without<PrimitiveElementAttributes, NavigationTriggerPropsWithoutHTML>;
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
1
|
<script lang="ts">
|
|
20
2
|
import { CollapsiblePrimitive } from '../../collapsible/index.js';
|
|
21
3
|
import ChevronDown from '../../icons/chevron-down.svelte';
|
|
22
4
|
import { NavigationStylesContext } from '../styles.js';
|
|
23
5
|
import { PopoverPrimitive } from '../../popover/index.js';
|
|
24
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
25
6
|
import { cn, useId } from '../../../internal/utils/common.js';
|
|
26
|
-
import type { WithChild, WithElementRef, Without } from 'svelte-toolbelt';
|
|
27
7
|
import { boxWith, mergeProps } from 'svelte-toolbelt';
|
|
8
|
+
import type { NavigationTriggerProps } from '../types.js';
|
|
28
9
|
import { NavigationTriggerState } from './navigation.svelte.js';
|
|
29
10
|
|
|
11
|
+
const uid = $props.id();
|
|
12
|
+
|
|
30
13
|
let {
|
|
31
14
|
ref = $bindable(null),
|
|
32
|
-
id = useId(),
|
|
15
|
+
id = useId(uid),
|
|
33
16
|
children,
|
|
34
17
|
child,
|
|
35
18
|
class: className,
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
type
|
|
2
|
-
href?: string;
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
}, {
|
|
5
|
-
compact: boolean;
|
|
6
|
-
}>>;
|
|
7
|
-
export type NavigationTriggerProps = NavigationTriggerPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationTriggerPropsWithoutHTML>;
|
|
8
|
-
import type { PrimitiveElementAttributes } from '../../../internal/types/html-attributes.js';
|
|
9
|
-
import type { WithChild, WithElementRef, Without } from 'svelte-toolbelt';
|
|
1
|
+
import type { NavigationTriggerProps } from '../types.js';
|
|
10
2
|
declare const Navigation: import("svelte").Component<NavigationTriggerProps, {}, "ref">;
|
|
11
3
|
type Navigation = ReturnType<typeof Navigation>;
|
|
12
4
|
export default Navigation;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Content } from './components/navigation.content.svelte';
|
|
2
|
+
export { default as Item } from './components/navigation.item.svelte';
|
|
3
|
+
export { default as Root } from './components/navigation.root.svelte';
|
|
4
|
+
export { default as SubContent } from './components/navigation.sub-content.svelte';
|
|
5
|
+
export { default as Trigger } from './components/navigation.trigger.svelte';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Content } from './components/navigation.content.svelte';
|
|
2
|
+
export { default as Item } from './components/navigation.item.svelte';
|
|
3
|
+
export { default as Root } from './components/navigation.root.svelte';
|
|
4
|
+
export { default as SubContent } from './components/navigation.sub-content.svelte';
|
|
5
|
+
export { default as Trigger } from './components/navigation.trigger.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Navigation } from './navigation.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Navigation } from './navigation.svelte';
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { type NavigationSubContentProps } from './components/navigation.sub-content.svelte';
|
|
5
|
-
export declare const NavigationPrimitive: {
|
|
6
|
-
readonly Root: import("svelte").Component<NavigationRootProps, {}, "ref">;
|
|
7
|
-
readonly Trigger: import("svelte").Component<import("./components/navigation.trigger.svelte").NavigationTriggerProps, {}, "ref">;
|
|
8
|
-
readonly Content: import("svelte").Component<NavigationContentProps, {}, "ref">;
|
|
9
|
-
readonly Item: import("svelte").Component<NavigationItemProps, {}, "ref">;
|
|
10
|
-
readonly SubContent: import("svelte").Component<NavigationSubContentProps, {}, "ref">;
|
|
11
|
-
};
|
|
12
|
-
export type { NavigationContentProps, NavigationItemProps, NavigationRootProps, NavigationSubContentProps };
|
|
1
|
+
export * as NavigationPrimitive from './exports-primitive.js';
|
|
2
|
+
export * from './exports.js';
|
|
3
|
+
export type { NavigationContentProps, NavigationItemProps, NavigationRootProps, NavigationSubContentProps, NavigationTriggerProps, } from './types.js';
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import Root, {} from './components/navigation.root.svelte';
|
|
4
|
-
import SubContent, {} from './components/navigation.sub-content.svelte';
|
|
5
|
-
import Trigger from './components/navigation.trigger.svelte';
|
|
6
|
-
export const NavigationPrimitive = {
|
|
7
|
-
Root,
|
|
8
|
-
Trigger,
|
|
9
|
-
Content,
|
|
10
|
-
Item,
|
|
11
|
-
SubContent,
|
|
12
|
-
};
|
|
1
|
+
export * as NavigationPrimitive from './exports-primitive.js';
|
|
2
|
+
export * from './exports.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PrimitiveElementAttributes } from '../../internal/types/html-attributes.js';
|
|
2
|
+
import type { WithChild, WithElementRef, Without } from 'svelte-toolbelt';
|
|
3
|
+
import type { NavigationVariantsProps } from './styles.js';
|
|
4
|
+
type NavigationRootPropsWithoutHTML = WithElementRef<WithChild<{}, {
|
|
5
|
+
compact: boolean;
|
|
6
|
+
}>> & NavigationVariantsProps;
|
|
7
|
+
export type NavigationRootProps = NavigationRootPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationRootPropsWithoutHTML>;
|
|
8
|
+
type NavigationItemPropsWithoutHTML = WithElementRef<WithChild<{}>>;
|
|
9
|
+
export type NavigationItemProps = NavigationItemPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationItemPropsWithoutHTML>;
|
|
10
|
+
type NavigationContentPropsWithoutHTML = WithElementRef<WithChild<{}>>;
|
|
11
|
+
export type NavigationContentProps = NavigationContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationContentPropsWithoutHTML>;
|
|
12
|
+
type NavigationSubContentPropsWithoutHTML = WithElementRef<WithChild<{}, {
|
|
13
|
+
compact: boolean;
|
|
14
|
+
}>>;
|
|
15
|
+
export type NavigationSubContentProps = NavigationSubContentPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationSubContentPropsWithoutHTML>;
|
|
16
|
+
type NavigationTriggerPropsWithoutHTML = WithElementRef<WithChild<{
|
|
17
|
+
href?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
compact: boolean;
|
|
21
|
+
}>>;
|
|
22
|
+
export type NavigationTriggerProps = NavigationTriggerPropsWithoutHTML & Without<PrimitiveElementAttributes, NavigationTriggerPropsWithoutHTML>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export type PaginationEllipsisProps = WithChild<WithElementRef<{} & PrimitiveDivAttributes>>;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<script lang="ts">
|
|
6
2
|
import { PaginationStylesContext } from '../styles.js';
|
|
7
3
|
|
|
8
|
-
import {
|
|
9
|
-
import type { WithChild } from '../../../internal/types/composition.js';
|
|
10
|
-
import type { PrimitiveDivAttributes } from '../../../internal/types/html-attributes.js';
|
|
4
|
+
import { Icon } from '../../icons/index.js';
|
|
11
5
|
import { cn } from '../../../internal/utils/common.js';
|
|
12
|
-
import type {
|
|
6
|
+
import type { PaginationEllipsisProps } from '../types.js';
|
|
13
7
|
|
|
14
8
|
let { class: className, ref = $bindable(null), child, ...restProps }: PaginationEllipsisProps = $props();
|
|
15
9
|
|
|
@@ -22,6 +16,6 @@
|
|
|
22
16
|
{@render child?.({ props: { class: classNames, ...restProps } })}
|
|
23
17
|
{:else}
|
|
24
18
|
<div bind:this={ref} class={classNames} {...restProps}>
|
|
25
|
-
<
|
|
19
|
+
<Icon.Dots width={16} height={16} />
|
|
26
20
|
</div>
|
|
27
21
|
{/if}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { WithChild } from '../../../internal/types/composition.js';
|
|
3
|
-
import type { PrimitiveDivAttributes } from '../../../internal/types/html-attributes.js';
|
|
4
|
-
import type { WithElementRef } from 'svelte-toolbelt';
|
|
1
|
+
import type { PaginationEllipsisProps } from '../types.js';
|
|
5
2
|
declare const Pagination: import("svelte").Component<PaginationEllipsisProps, {}, "ref">;
|
|
6
3
|
type Pagination = ReturnType<typeof Pagination>;
|
|
7
4
|
export default Pagination;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export type PaginationItemProps = PaginationPagePropsPrimitive;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<script lang="ts">
|
|
6
2
|
import { cn } from '../../../internal/utils/common.js';
|
|
7
3
|
import { PaginationStylesContext } from '../styles.js';
|
|
4
|
+
import type { PaginationItemProps } from '../types.js';
|
|
8
5
|
|
|
9
|
-
import { Pagination as PaginationPrimitive
|
|
6
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
10
7
|
|
|
11
8
|
let { page, class: className, ...props }: PaginationItemProps = $props();
|
|
12
9
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Pagination as PaginationPrimitive, type PaginationPageProps as PaginationPagePropsPrimitive } from 'bits-ui';
|
|
1
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
3
2
|
declare const Pagination: import("svelte").Component<PaginationPrimitive.PageProps, {}, "">;
|
|
4
3
|
type Pagination = ReturnType<typeof Pagination>;
|
|
5
4
|
export default Pagination;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export type PaginationNextButtonProps = PaginationNextButtonPropsPrimitive;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<script lang="ts">
|
|
6
2
|
import { cn } from '../../../internal/utils/common.js';
|
|
7
3
|
import { PaginationStylesContext } from '../styles.js';
|
|
8
4
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
type PaginationNextButtonProps as PaginationNextButtonPropsPrimitive,
|
|
13
|
-
} from 'bits-ui';
|
|
5
|
+
import { Icon } from '../../icons/index.js';
|
|
6
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
7
|
+
import type { PaginationNextButtonProps } from '../types.js';
|
|
14
8
|
|
|
15
9
|
let { class: className, children, ref = $bindable(null), ...props }: PaginationNextButtonProps = $props();
|
|
16
10
|
|
|
@@ -23,6 +17,6 @@
|
|
|
23
17
|
{#if children}
|
|
24
18
|
{@render children?.()}
|
|
25
19
|
{:else}
|
|
26
|
-
<
|
|
20
|
+
<Icon.ChevronRight />
|
|
27
21
|
{/if}
|
|
28
22
|
</PaginationPrimitive.NextButton>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Pagination as PaginationPrimitive, type PaginationNextButtonProps as PaginationNextButtonPropsPrimitive } from 'bits-ui';
|
|
1
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
3
2
|
declare const Pagination: import("svelte").Component<PaginationPrimitive.NextButtonProps, {}, "ref">;
|
|
4
3
|
type Pagination = ReturnType<typeof Pagination>;
|
|
5
4
|
export default Pagination;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export type PaginationPrevButtonProps = PaginationPrevButtonPropsPrimitive;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<script lang="ts">
|
|
2
|
+
import { Icon } from '../../icons/index.js';
|
|
6
3
|
import { cn } from '../../../internal/utils/common.js';
|
|
4
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
7
5
|
import { PaginationStylesContext } from '../styles.js';
|
|
8
|
-
|
|
9
|
-
import { ChevronLeftIcon } from '../../icons/index.js';
|
|
10
|
-
import {
|
|
11
|
-
Pagination as PaginationPrimitive,
|
|
12
|
-
type PaginationPrevButtonProps as PaginationPrevButtonPropsPrimitive,
|
|
13
|
-
} from 'bits-ui';
|
|
6
|
+
import type { PaginationPrevButtonProps } from '../types.js';
|
|
14
7
|
|
|
15
8
|
let { class: className, children, ref = $bindable(null), ...props }: PaginationPrevButtonProps = $props();
|
|
16
9
|
|
|
@@ -23,6 +16,6 @@
|
|
|
23
16
|
{#if children}
|
|
24
17
|
{@render children?.()}
|
|
25
18
|
{:else}
|
|
26
|
-
<
|
|
19
|
+
<Icon.ChevronLeft />
|
|
27
20
|
{/if}
|
|
28
21
|
</PaginationPrimitive.PrevButton>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { Pagination as PaginationPrimitive, type PaginationPrevButtonProps as PaginationPrevButtonPropsPrimitive } from 'bits-ui';
|
|
1
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
3
2
|
declare const Pagination: import("svelte").Component<PaginationPrimitive.PrevButtonProps, {}, "ref">;
|
|
4
3
|
type Pagination = ReturnType<typeof Pagination>;
|
|
5
4
|
export default Pagination;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
<script lang="ts" module>
|
|
2
|
-
export type PaginationRootProps = PaginationRootPropsPrimitive & PaginationVariantsProps;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
1
|
<script lang="ts">
|
|
6
|
-
import {
|
|
7
|
-
PaginationStylesContext,
|
|
8
|
-
type PaginationVariantsProps,
|
|
9
|
-
paginationStyles,
|
|
10
|
-
} from '../styles.js';
|
|
11
2
|
import { cn } from '../../../internal/utils/common.js';
|
|
12
|
-
import { Pagination as PaginationPrimitive
|
|
3
|
+
import { Pagination as PaginationPrimitive } from 'bits-ui';
|
|
13
4
|
import { box } from 'svelte-toolbelt';
|
|
5
|
+
import { PaginationStylesContext, paginationStyles } from '../styles.js';
|
|
6
|
+
import type { PaginationRootProps } from '../types.js';
|
|
14
7
|
|
|
15
8
|
let {
|
|
16
9
|
page = $bindable(1),
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { type PaginationVariantsProps } from '../styles.js';
|
|
3
|
-
import { type PaginationRootProps as PaginationRootPropsPrimitive } from 'bits-ui';
|
|
1
|
+
import type { PaginationRootProps } from '../types.js';
|
|
4
2
|
declare const Pagination: import("svelte").Component<PaginationRootProps, {}, "page">;
|
|
5
3
|
type Pagination = ReturnType<typeof Pagination>;
|
|
6
4
|
export default Pagination;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Ellipsis } from './components/pagination.ellipsis.svelte';
|
|
2
|
+
export { default as Item } from './components/pagination.item.svelte';
|
|
3
|
+
export { default as NextButton } from './components/pagination.next-button.svelte';
|
|
4
|
+
export { default as PrevButton } from './components/pagination.prev-button.svelte';
|
|
5
|
+
export { default as Root } from './components/pagination.root.svelte';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Ellipsis } from './components/pagination.ellipsis.svelte';
|
|
2
|
+
export { default as Item } from './components/pagination.item.svelte';
|
|
3
|
+
export { default as NextButton } from './components/pagination.next-button.svelte';
|
|
4
|
+
export { default as PrevButton } from './components/pagination.prev-button.svelte';
|
|
5
|
+
export { default as Root } from './components/pagination.root.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pagination } from './pagination.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Pagination } from './pagination.svelte';
|