@human-kit/ui 1.0.0-beta.5 → 1.0.0-beta.7
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 +19 -17
- package/dist/accordion/README.md +3 -3
- package/dist/accordion/types.d.ts +37 -23
- package/dist/autocomplete/README.md +6 -7
- package/dist/autocomplete/empty/autocomplete-empty.svelte +1 -1
- package/dist/autocomplete/empty/autocomplete-empty.svelte.d.ts +1 -1
- package/dist/autocomplete/input/autocomplete-input.svelte +3 -3
- package/dist/autocomplete/input/autocomplete-input.svelte.d.ts +3 -3
- package/dist/autocomplete/item/autocomplete-item.svelte +10 -0
- package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte +2 -2
- package/dist/autocomplete/item-indicator/autocomplete-item-indicator.svelte.d.ts +2 -2
- package/dist/autocomplete/list/autocomplete-list.svelte +2 -2
- package/dist/autocomplete/list/autocomplete-list.svelte.d.ts +2 -2
- package/dist/autocomplete/root/autocomplete.svelte +7 -7
- package/dist/autocomplete/root/autocomplete.svelte.d.ts +7 -7
- package/dist/autocomplete/status/autocomplete-status.svelte +1 -1
- package/dist/autocomplete/status/autocomplete-status.svelte.d.ts +1 -1
- package/dist/button/README.md +1 -1
- package/dist/button/root/button-root.svelte +24 -10
- package/dist/button/root/button-root.svelte.d.ts +15 -10
- package/dist/calendar/README.md +3 -3
- package/dist/calendar/body-cell/calendar-body-cell.svelte +7 -0
- package/dist/calendar/grid-header/calendar-grid-header.svelte +3 -4
- package/dist/calendar/grid-header/calendar-grid-header.svelte.d.ts +3 -4
- package/dist/calendar/root/calendar-root.svelte +8 -2
- package/dist/calendar/root/calendar-root.svelte.d.ts +8 -2
- package/dist/calendar/trigger-next/README.md +1 -1
- package/dist/calendar/trigger-previous/README.md +1 -1
- package/dist/checkbox/README.md +1 -1
- package/dist/checkbox/indicator/README.md +1 -1
- package/dist/checkbox/indicator/checkbox-indicator.svelte +1 -0
- package/dist/checkbox/indicator/checkbox-indicator.svelte.d.ts +1 -0
- package/dist/checkbox/root/README.md +2 -2
- package/dist/checkbox/root/checkbox-root.svelte +118 -40
- package/dist/checkbox/root/checkbox-root.svelte.d.ts +17 -10
- package/dist/checkbox-group/README.md +95 -0
- package/dist/checkbox-group/index.d.ts +15 -0
- package/dist/checkbox-group/index.js +6 -0
- package/dist/checkbox-group/index.parts.d.ts +4 -0
- package/dist/checkbox-group/index.parts.js +7 -0
- package/dist/checkbox-group/label/checkbox-group-label.svelte +36 -0
- package/dist/checkbox-group/label/checkbox-group-label.svelte.d.ts +4 -0
- package/dist/checkbox-group/root/checkbox-group-root.svelte +118 -0
- package/dist/checkbox-group/root/checkbox-group-root.svelte.d.ts +4 -0
- package/dist/checkbox-group/root/context.svelte.d.ts +52 -0
- package/dist/checkbox-group/root/context.svelte.js +251 -0
- package/dist/checkbox-group/types.d.ts +57 -0
- package/dist/checkbox-group/types.js +1 -0
- package/dist/clock/README.md +3 -3
- package/dist/clock/axis/README.md +1 -1
- package/dist/clock/root/README.md +1 -1
- package/dist/clock/wheel-column/clock-wheel-column.svelte +1 -1
- package/dist/clock/wheel-column/clock-wheel-column.svelte.d.ts +1 -1
- package/dist/collapsible/README.md +3 -3
- package/dist/collapsible/types.d.ts +10 -7
- package/dist/combobox/README.md +2 -2
- package/dist/combobox/button/README.md +6 -6
- package/dist/combobox/input/README.md +1 -1
- package/dist/combobox/input/combobox-input.svelte +3 -3
- package/dist/combobox/input/combobox-input.svelte.d.ts +3 -3
- package/dist/combobox/item/combobox-listboxitem.svelte +4 -2
- package/dist/combobox/item/combobox-listboxitem.svelte.d.ts +4 -2
- package/dist/combobox/item-indicator/README.md +1 -1
- package/dist/combobox/item-indicator/combobox-item-indicator.svelte +2 -2
- package/dist/combobox/item-indicator/combobox-item-indicator.svelte.d.ts +2 -2
- package/dist/combobox/list/combobox-listbox.svelte +11 -8
- package/dist/combobox/list/combobox-listbox.svelte.d.ts +11 -8
- package/dist/combobox/popover/README.md +1 -1
- package/dist/combobox/root/README.md +24 -24
- package/dist/combobox/root/combobox.svelte +26 -17
- package/dist/combobox/root/combobox.svelte.d.ts +26 -17
- package/dist/combobox/status/README.md +1 -1
- package/dist/combobox/status/combobox-status.svelte +1 -1
- package/dist/combobox/status/combobox-status.svelte.d.ts +1 -1
- package/dist/combobox/tag/README.md +1 -1
- package/dist/combobox/tag/combobox-tag.svelte +1 -1
- package/dist/combobox/tag/combobox-tag.svelte.d.ts +1 -1
- package/dist/combobox/tag-remove/README.md +1 -1
- package/dist/combobox/tag-remove/combobox-tag-remove.svelte +4 -5
- package/dist/combobox/tag-remove/combobox-tag-remove.svelte.d.ts +4 -5
- package/dist/combobox/tags/README.md +1 -1
- package/dist/combobox/tags/combobox-tags.svelte +11 -11
- package/dist/combobox/tags/combobox-tags.svelte.d.ts +11 -11
- package/dist/combobox/trigger/README.md +7 -7
- package/dist/datepicker/README.md +4 -4
- package/dist/datepicker/input/date-picker-input.svelte +3 -4
- package/dist/datepicker/input/date-picker-input.svelte.d.ts +3 -4
- package/dist/datepicker/root/date-picker-root.svelte +1 -1
- package/dist/datepicker/trigger/README.md +1 -1
- package/dist/daterangepicker/README.md +3 -3
- package/dist/daterangepicker/input/date-range-picker-input.svelte +3 -4
- package/dist/daterangepicker/input/date-range-picker-input.svelte.d.ts +3 -4
- package/dist/dialog/README.md +1 -1
- package/dist/dialog/close/dialog-close.svelte +3 -3
- package/dist/dialog/close/dialog-close.svelte.d.ts +3 -3
- package/dist/dialog/content/dialog-content.svelte +4 -4
- package/dist/dialog/content/dialog-content.svelte.d.ts +4 -4
- package/dist/dialog/description/dialog-description.svelte +3 -3
- package/dist/dialog/description/dialog-description.svelte.d.ts +3 -3
- package/dist/dialog/overlay/dialog-overlay.svelte +1 -1
- package/dist/dialog/overlay/dialog-overlay.svelte.d.ts +1 -1
- package/dist/dialog/portal/dialog-portal.svelte +1 -1
- package/dist/dialog/portal/dialog-portal.svelte.d.ts +1 -1
- package/dist/dialog/root/README.md +1 -1
- package/dist/dialog/root/dialog-root.svelte +36 -11
- package/dist/dialog/root/dialog-root.svelte.d.ts +11 -9
- package/dist/dialog/title/dialog-title.svelte +3 -3
- package/dist/dialog/title/dialog-title.svelte.d.ts +3 -3
- package/dist/dialog/trigger/README.md +1 -1
- package/dist/drawer/README.md +3 -3
- package/dist/drawer/body/drawer-body.svelte +2 -2
- package/dist/drawer/body/drawer-body.svelte.d.ts +2 -2
- package/dist/drawer/close/drawer-close.svelte +3 -3
- package/dist/drawer/close/drawer-close.svelte.d.ts +3 -3
- package/dist/drawer/content/drawer-content.svelte +12 -9
- package/dist/drawer/content/drawer-content.svelte.d.ts +12 -9
- package/dist/drawer/description/drawer-description.svelte +3 -3
- package/dist/drawer/description/drawer-description.svelte.d.ts +3 -3
- package/dist/drawer/indent/drawer-indent-background.svelte +1 -1
- package/dist/drawer/indent/drawer-indent-background.svelte.d.ts +1 -1
- package/dist/drawer/indent/drawer-indent.svelte +2 -2
- package/dist/drawer/indent/drawer-indent.svelte.d.ts +2 -2
- package/dist/drawer/overlay/drawer-overlay.svelte +1 -1
- package/dist/drawer/overlay/drawer-overlay.svelte.d.ts +1 -1
- package/dist/drawer/portal/drawer-portal.svelte +1 -1
- package/dist/drawer/portal/drawer-portal.svelte.d.ts +1 -1
- package/dist/drawer/root/context.d.ts +1 -1
- package/dist/drawer/root/drawer-root.svelte +25 -23
- package/dist/drawer/root/drawer-root.svelte.d.ts +25 -23
- package/dist/drawer/swipe-area/drawer-swipe-area.svelte +3 -3
- package/dist/drawer/swipe-area/drawer-swipe-area.svelte.d.ts +3 -3
- package/dist/drawer/title/drawer-title.svelte +3 -3
- package/dist/drawer/title/drawer-title.svelte.d.ts +3 -3
- package/dist/drawer/trigger/drawer-trigger.svelte +6 -6
- package/dist/drawer/trigger/drawer-trigger.svelte.d.ts +6 -6
- package/dist/drawer/viewport/drawer-viewport.svelte +2 -2
- package/dist/drawer/viewport/drawer-viewport.svelte.d.ts +2 -2
- package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte +1 -1
- package/dist/drawer/virtual-keyboard/drawer-virtual-keyboard-provider.svelte.d.ts +1 -1
- package/dist/dropzone/README.md +4 -6
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/input/input.svelte +6 -6
- package/dist/input/input.svelte.d.ts +6 -6
- package/dist/listbox/README.md +3 -10
- package/dist/listbox/item/listbox-item.svelte +24 -15
- package/dist/listbox/item/listbox-item.svelte.d.ts +24 -15
- package/dist/listbox/root/README.md +1 -1
- package/dist/listbox/root/context.d.ts +1 -1
- package/dist/listbox/root/listbox.svelte +50 -38
- package/dist/listbox/root/listbox.svelte.d.ts +50 -38
- package/dist/locale-provider/README.md +1 -6
- package/dist/menu/README.md +6 -15
- package/dist/menu/content/menu-content.svelte +14 -10
- package/dist/menu/content/menu-content.svelte.d.ts +14 -10
- package/dist/menu/context-trigger/menu-context-trigger.svelte +8 -9
- package/dist/menu/context-trigger/menu-context-trigger.svelte.d.ts +8 -9
- package/dist/menu/group/menu-group-label.svelte +1 -1
- package/dist/menu/group/menu-group-label.svelte.d.ts +1 -1
- package/dist/menu/item/menu-item.svelte +11 -8
- package/dist/menu/item/menu-item.svelte.d.ts +11 -8
- package/dist/menu/overlay/menu-overlay.svelte +1 -1
- package/dist/menu/overlay/menu-overlay.svelte.d.ts +1 -1
- package/dist/menu/root/context.d.ts +6 -3
- package/dist/menu/root/menu-root.svelte +14 -8
- package/dist/menu/root/menu-root.svelte.d.ts +14 -8
- package/dist/menu/root/menu-state.svelte.d.ts +1 -1
- package/dist/menu/separator/menu-separator.svelte +1 -1
- package/dist/menu/separator/menu-separator.svelte.d.ts +1 -1
- package/dist/menu/submenu/menu-submenu-root.svelte +10 -7
- package/dist/menu/submenu/menu-submenu-root.svelte.d.ts +10 -7
- package/dist/numberfield/root/README.md +1 -1
- package/dist/numberfield/scrub-area-cursor/README.md +1 -1
- package/dist/popover/README.md +1 -1
- package/dist/popover/content/popover-content.svelte +19 -14
- package/dist/popover/content/popover-content.svelte.d.ts +19 -14
- package/dist/popover/overlay/popover-overlay.svelte +1 -1
- package/dist/popover/overlay/popover-overlay.svelte.d.ts +1 -1
- package/dist/popover/root/README.md +1 -1
- package/dist/popover/root/popover-root.svelte +13 -10
- package/dist/popover/root/popover-root.svelte.d.ts +13 -10
- package/dist/popover/trigger/README.md +1 -1
- package/dist/primitives/floating.d.ts +3 -3
- package/dist/primitives/focus-visible.svelte.d.ts +14 -0
- package/dist/primitives/focus-visible.svelte.js +19 -0
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.js +1 -0
- package/dist/primitives/input-modality.d.ts +7 -0
- package/dist/primitives/input-modality.js +32 -5
- package/dist/primitives/scroll-lock.js +37 -8
- package/dist/radio-group/README.md +103 -0
- package/dist/radio-group/index.d.ts +18 -0
- package/dist/radio-group/index.js +9 -0
- package/dist/radio-group/index.parts.d.ts +4 -0
- package/dist/radio-group/index.parts.js +4 -0
- package/dist/radio-group/indicator/radio-group-indicator.svelte +43 -0
- package/dist/radio-group/indicator/radio-group-indicator.svelte.d.ts +12 -0
- package/dist/radio-group/item/context.d.ts +18 -0
- package/dist/radio-group/item/context.js +15 -0
- package/dist/radio-group/item/radio-group-item.svelte +377 -0
- package/dist/radio-group/item/radio-group-item.svelte.d.ts +35 -0
- package/dist/radio-group/label/radio-group-label.svelte +37 -0
- package/dist/radio-group/label/radio-group-label.svelte.d.ts +4 -0
- package/dist/radio-group/root/context.svelte.d.ts +57 -0
- package/dist/radio-group/root/context.svelte.js +284 -0
- package/dist/radio-group/root/radio-group-root.svelte +193 -0
- package/dist/radio-group/root/radio-group-root.svelte.d.ts +4 -0
- package/dist/radio-group/types.d.ts +50 -0
- package/dist/radio-group/types.js +1 -0
- package/dist/switch/root/README.md +2 -2
- package/dist/switch/root/switch-root.svelte +32 -18
- package/dist/switch/root/switch-root.svelte.d.ts +23 -18
- package/dist/switch/thumb/switch-thumb.svelte +1 -1
- package/dist/switch/thumb/switch-thumb.svelte.d.ts +1 -1
- package/dist/table/README.md +15 -10
- package/dist/table/checkbox-indicator/README.md +1 -1
- package/dist/table/column-header-cell/table-column-header-cell.svelte +24 -0
- package/dist/table/column-resizer/README.md +2 -2
- package/dist/table/root/README.md +1 -1
- package/dist/table/root/table-root.svelte +29 -6
- package/dist/table/sort-trigger/README.md +1 -1
- package/dist/table/types.d.ts +21 -20
- package/dist/tabs/types.d.ts +6 -6
- package/dist/timepicker/README.md +3 -2
- package/dist/timepicker/input/README.md +1 -1
- package/dist/timepicker/input/time-picker-input.svelte +66 -5
- package/dist/timepicker/input/time-picker-input.svelte.d.ts +18 -1
- package/dist/timepicker/root/README.md +1 -1
- package/dist/timepicker/trigger/README.md +1 -1
- package/dist/toggle/README.md +1 -1
- package/dist/toggle/root/toggle-root.svelte +28 -0
- package/dist/toggle/root/toggle-root.svelte.d.ts +19 -0
- package/dist/toggle-group/README.md +8 -10
- package/dist/toggle-group/index.d.ts +2 -0
- package/dist/toggle-group/index.parts.d.ts +1 -0
- package/dist/toggle-group/index.parts.js +4 -0
- package/dist/toggle-group/types.d.ts +7 -6
- package/dist/transfer-list/README.md +6 -17
- package/dist/transfer-list/item/transfer-list-item.svelte +4 -4
- package/dist/transfer-list/item/transfer-list-item.svelte.d.ts +4 -4
- package/dist/transfer-list/list/transfer-list-list.svelte +12 -12
- package/dist/transfer-list/list/transfer-list-list.svelte.d.ts +12 -12
- package/dist/transfer-list/move/transfer-list-move-button.svelte +4 -4
- package/dist/transfer-list/move/transfer-list-move-button.svelte.d.ts +4 -4
- package/dist/transfer-list/move/transfer-list-reorder-button.svelte +3 -3
- package/dist/transfer-list/move/transfer-list-reorder-button.svelte.d.ts +3 -3
- package/dist/transfer-list/root/transfer-list-root.svelte +23 -20
- package/dist/transfer-list/root/transfer-list-root.svelte.d.ts +23 -20
- package/dist/transfer-list/status/transfer-list-status.svelte +1 -1
- package/dist/transfer-list/status/transfer-list-status.svelte.d.ts +1 -1
- package/dist/tree/README.md +3 -3
- package/dist/tree/checkbox-indicator/README.md +1 -1
- package/dist/tree/root/README.md +1 -1
- package/dist/tree/types.d.ts +19 -10
- package/package.json +11 -1
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
* forcing it here would fight consumers whose panel sizes to its content.
|
|
26
26
|
*/
|
|
27
27
|
type DrawerBodyProps = {
|
|
28
|
-
/**
|
|
28
|
+
/** The content of the body region. */
|
|
29
29
|
children?: Snippet;
|
|
30
|
-
/** CSS class
|
|
30
|
+
/** The CSS class names of the body. */
|
|
31
31
|
class?: string;
|
|
32
32
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
33
33
|
|
|
@@ -22,9 +22,9 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
22
22
|
* forcing it here would fight consumers whose panel sizes to its content.
|
|
23
23
|
*/
|
|
24
24
|
type DrawerBodyProps = {
|
|
25
|
-
/**
|
|
25
|
+
/** The content of the body region. */
|
|
26
26
|
children?: Snippet;
|
|
27
|
-
/** CSS class
|
|
27
|
+
/** The CSS class names of the body. */
|
|
28
28
|
class?: string;
|
|
29
29
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
30
30
|
declare const DrawerBody: import("svelte").Component<DrawerBodyProps, {}, "">;
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* unreachable for some users. Every dismissible drawer wants one of these.
|
|
13
13
|
*/
|
|
14
14
|
export type DrawerCloseProps = Omit<HTMLButtonAttributes, 'type' | 'class' | 'children'> & {
|
|
15
|
-
/**
|
|
15
|
+
/** The name on the button. */
|
|
16
16
|
children?: Snippet;
|
|
17
|
-
/** CSS class
|
|
17
|
+
/** The CSS class names of the button. */
|
|
18
18
|
class?: string;
|
|
19
|
-
/**
|
|
19
|
+
/** A bindable reference to the button element. */
|
|
20
20
|
element?: HTMLButtonElement | null;
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -8,11 +8,11 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
|
|
|
8
8
|
* unreachable for some users. Every dismissible drawer wants one of these.
|
|
9
9
|
*/
|
|
10
10
|
export type DrawerCloseProps = Omit<HTMLButtonAttributes, 'type' | 'class' | 'children'> & {
|
|
11
|
-
/**
|
|
11
|
+
/** The name on the button. */
|
|
12
12
|
children?: Snippet;
|
|
13
|
-
/** CSS class
|
|
13
|
+
/** The CSS class names of the button. */
|
|
14
14
|
class?: string;
|
|
15
|
-
/**
|
|
15
|
+
/** A bindable reference to the button element. */
|
|
16
16
|
element?: HTMLButtonElement | null;
|
|
17
17
|
};
|
|
18
18
|
declare const DrawerClose: import("svelte").Component<DrawerCloseProps, {}, "element">;
|
|
@@ -51,21 +51,24 @@
|
|
|
51
51
|
* Belongs inside a Drawer.Portal, optionally wrapped in a Drawer.Viewport.
|
|
52
52
|
*/
|
|
53
53
|
type DrawerContentProps = {
|
|
54
|
-
/**
|
|
54
|
+
/** The content of the panel. */
|
|
55
55
|
children?: Snippet;
|
|
56
|
-
/** CSS class
|
|
56
|
+
/** The CSS class names of the panel. */
|
|
57
57
|
class?: string;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
59
|
+
* The element that gets the focus when the drawer opens. The default is the first element in the
|
|
60
|
+
* panel that can take the focus.
|
|
61
61
|
*/
|
|
62
62
|
initialFocus?: HTMLElement | string | (() => HTMLElement | null | undefined);
|
|
63
63
|
/**
|
|
64
|
-
* `touch-action`
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* axis
|
|
68
|
-
*
|
|
64
|
+
* The `touch-action` value of the panel.
|
|
65
|
+
*
|
|
66
|
+
* For a left drawer or a right drawer, the default is `pan-y`. The children still scroll on the
|
|
67
|
+
* vertical axis, and the horizontal axis belongs to the drag.
|
|
68
|
+
*
|
|
69
|
+
* For a top drawer or a bottom drawer, there is no default. A reservation of the vertical axis
|
|
70
|
+
* would break each region in the panel that scrolls. `touch-action` applies down the chain of
|
|
71
|
+
* the parents, and a child cannot cancel it.
|
|
69
72
|
*/
|
|
70
73
|
touchAction?: string | null;
|
|
71
74
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
@@ -5,21 +5,24 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
5
5
|
* Belongs inside a Drawer.Portal, optionally wrapped in a Drawer.Viewport.
|
|
6
6
|
*/
|
|
7
7
|
type DrawerContentProps = {
|
|
8
|
-
/**
|
|
8
|
+
/** The content of the panel. */
|
|
9
9
|
children?: Snippet;
|
|
10
|
-
/** CSS class
|
|
10
|
+
/** The CSS class names of the panel. */
|
|
11
11
|
class?: string;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* The element that gets the focus when the drawer opens. The default is the first element in the
|
|
14
|
+
* panel that can take the focus.
|
|
15
15
|
*/
|
|
16
16
|
initialFocus?: HTMLElement | string | (() => HTMLElement | null | undefined);
|
|
17
17
|
/**
|
|
18
|
-
* `touch-action`
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* axis
|
|
22
|
-
*
|
|
18
|
+
* The `touch-action` value of the panel.
|
|
19
|
+
*
|
|
20
|
+
* For a left drawer or a right drawer, the default is `pan-y`. The children still scroll on the
|
|
21
|
+
* vertical axis, and the horizontal axis belongs to the drag.
|
|
22
|
+
*
|
|
23
|
+
* For a top drawer or a bottom drawer, there is no default. A reservation of the vertical axis
|
|
24
|
+
* would break each region in the panel that scrolls. `touch-action` applies down the chain of
|
|
25
|
+
* the parents, and a child cannot cancel it.
|
|
23
26
|
*/
|
|
24
27
|
touchAction?: string | null;
|
|
25
28
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* than only when the user happens to arrow onto it.
|
|
12
12
|
*/
|
|
13
13
|
type DrawerDescriptionProps = {
|
|
14
|
-
/**
|
|
14
|
+
/** The text that a screen reader announces after the title. */
|
|
15
15
|
children?: Snippet;
|
|
16
|
-
/** CSS class
|
|
16
|
+
/** The CSS class names of the paragraph. */
|
|
17
17
|
class?: string;
|
|
18
|
-
/**
|
|
18
|
+
/** Replaces the id that the component makes. */
|
|
19
19
|
id?: string;
|
|
20
20
|
} & Omit<HTMLAttributes<HTMLParagraphElement>, 'class' | 'children' | 'id'>;
|
|
21
21
|
|
|
@@ -8,11 +8,11 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
8
8
|
* than only when the user happens to arrow onto it.
|
|
9
9
|
*/
|
|
10
10
|
type DrawerDescriptionProps = {
|
|
11
|
-
/**
|
|
11
|
+
/** The text that a screen reader announces after the title. */
|
|
12
12
|
children?: Snippet;
|
|
13
|
-
/** CSS class
|
|
13
|
+
/** The CSS class names of the paragraph. */
|
|
14
14
|
class?: string;
|
|
15
|
-
/**
|
|
15
|
+
/** Replaces the id that the component makes. */
|
|
16
16
|
id?: string;
|
|
17
17
|
} & Omit<HTMLAttributes<HTMLParagraphElement>, 'class' | 'children' | 'id'>;
|
|
18
18
|
declare const DrawerDescription: import("svelte").Component<DrawerDescriptionProps, {}, "">;
|
|
@@ -9,7 +9,7 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
9
9
|
* normally the same colour as the app.
|
|
10
10
|
*/
|
|
11
11
|
type DrawerIndentBackgroundProps = {
|
|
12
|
-
/** CSS class
|
|
12
|
+
/** The CSS class names of the layer. */
|
|
13
13
|
class?: string;
|
|
14
14
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
|
|
15
15
|
declare const DrawerIndentBackground: import("svelte").Component<DrawerIndentBackgroundProps, {}, "">;
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
* module-global, so there is nothing left for one to coordinate.
|
|
26
26
|
*/
|
|
27
27
|
type DrawerIndentProps = {
|
|
28
|
-
/** The
|
|
28
|
+
/** The application UI that moves back while a drawer is open. */
|
|
29
29
|
children?: Snippet;
|
|
30
|
-
/** CSS class
|
|
30
|
+
/** The CSS class names of the container element. */
|
|
31
31
|
class?: string;
|
|
32
32
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
33
33
|
|
|
@@ -22,9 +22,9 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
22
22
|
* module-global, so there is nothing left for one to coordinate.
|
|
23
23
|
*/
|
|
24
24
|
type DrawerIndentProps = {
|
|
25
|
-
/** The
|
|
25
|
+
/** The application UI that moves back while a drawer is open. */
|
|
26
26
|
children?: Snippet;
|
|
27
|
-
/** CSS class
|
|
27
|
+
/** The CSS class names of the container element. */
|
|
28
28
|
class?: string;
|
|
29
29
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
30
30
|
declare const DrawerIndent: import("svelte").Component<DrawerIndentProps, {}, "">;
|
|
@@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
4
4
|
* Belongs inside a Drawer.Portal.
|
|
5
5
|
*/
|
|
6
6
|
type DrawerOverlayProps = {
|
|
7
|
-
/** CSS class
|
|
7
|
+
/** The CSS class names of the overlay. */
|
|
8
8
|
class?: string;
|
|
9
9
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
|
|
10
10
|
declare const DrawerOverlay: import("svelte").Component<DrawerOverlayProps, {}, "">;
|
|
@@ -5,7 +5,7 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
* it can play before they leave.
|
|
6
6
|
*/
|
|
7
7
|
type DrawerPortalProps = {
|
|
8
|
-
/** The layers
|
|
8
|
+
/** The layers for the portal: the Overlay, and the Viewport or the Content. */
|
|
9
9
|
children?: Snippet;
|
|
10
10
|
};
|
|
11
11
|
declare const DrawerPortal: import("svelte").Component<DrawerPortalProps, {}, "">;
|
|
@@ -9,7 +9,7 @@ import type { DrawerModal, DrawerSide, DrawerCloseReason, DrawerSnapPoint } from
|
|
|
9
9
|
export type DrawerContext = {
|
|
10
10
|
/** Whether the drawer is open. */
|
|
11
11
|
readonly isOpen: boolean;
|
|
12
|
-
/**
|
|
12
|
+
/** The edge of the panel. */
|
|
13
13
|
readonly side: DrawerSide;
|
|
14
14
|
/** Focus/scroll behaviour: `true`, `'trap-focus'`, or `false`. */
|
|
15
15
|
readonly modal: DrawerModal;
|
|
@@ -24,54 +24,56 @@
|
|
|
24
24
|
* Renders no element of its own; it provides the context every other part reads.
|
|
25
25
|
*/
|
|
26
26
|
type DrawerRootProps = {
|
|
27
|
-
/**
|
|
27
|
+
/** The open state. By default it goes in the two directions: use `bind:open`. */
|
|
28
28
|
open?: boolean;
|
|
29
|
-
/**
|
|
29
|
+
/** The open state at the start, for when you give no `open`. */
|
|
30
30
|
defaultOpen?: boolean;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* Give your own code full control of the open state. The component stops to write back to
|
|
33
|
+
* `open`, and it reports only through `onOpenChange`. Thus the parent can refuse a change: the
|
|
34
|
+
* parent does not send the new value down. The default is off, because `bind:open` is the usual
|
|
35
|
+
* case and it needs the write-back.
|
|
36
36
|
*/
|
|
37
37
|
controlledOpen?: boolean;
|
|
38
38
|
/** Callback when the open state changes. */
|
|
39
39
|
onOpenChange?: (open: boolean) => void;
|
|
40
|
-
/**
|
|
40
|
+
/** The edge of the panel. */
|
|
41
41
|
side?: DrawerSide;
|
|
42
|
-
/**
|
|
42
|
+
/** How the drawer holds the focus and stops the page scroll. Read `DrawerModal`. */
|
|
43
43
|
modal?: DrawerModal;
|
|
44
|
-
/**
|
|
44
|
+
/** Lets a swipe toward the anchored edge dismiss the drawer. */
|
|
45
45
|
dismissible?: boolean;
|
|
46
|
-
/**
|
|
46
|
+
/** Closes the drawer when the user pushes the `Escape` key. */
|
|
47
47
|
shouldCloseOnEscape?: boolean;
|
|
48
|
-
/**
|
|
48
|
+
/** Closes the panel when the user presses outside it. */
|
|
49
49
|
shouldCloseOnInteractOutside?: boolean;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
51
|
+
* The rest positions of the panel. They can be in any sequence, because the component sorts
|
|
52
|
+
* them. `DrawerSnapPoint` gives the value forms that the prop accepts. Without this prop, the
|
|
53
|
+
* drawer is open or closed, and nothing between.
|
|
54
54
|
*/
|
|
55
55
|
snapPoints?: readonly DrawerSnapPoint[];
|
|
56
|
-
/**
|
|
56
|
+
/** The current snap point. By default it goes in the two directions: use `bind:snapPoint`. */
|
|
57
57
|
snapPoint?: DrawerSnapPoint | null;
|
|
58
|
-
/**
|
|
58
|
+
/** The snap point at the start, for when you give no `snapPoint`. */
|
|
59
59
|
defaultSnapPoint?: DrawerSnapPoint | null;
|
|
60
|
-
/**
|
|
60
|
+
/** The component calls it when the current snap point changes. */
|
|
61
61
|
onSnapPointChange?: (snapPoint: DrawerSnapPoint | null, event?: Event) => void;
|
|
62
62
|
/**
|
|
63
|
-
* Stops a fast flick
|
|
64
|
-
*
|
|
63
|
+
* Stops a fast flick at the next snap point. Use it when each step has a meaning, and a jump of
|
|
64
|
+
* two steps would confuse the user.
|
|
65
65
|
*/
|
|
66
66
|
snapToSequentialPoints?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
68
|
+
* Controls the drawer from a separate object, and not from the `open` prop. Thus a trigger can
|
|
69
|
+
* be at any position in the tree. Read `createDrawerHandle`.
|
|
70
70
|
*/
|
|
71
71
|
handle?: DrawerHandle<Payload>;
|
|
72
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* The reference to the trigger element. Set it in your own code, or let Drawer.Trigger set it.
|
|
74
|
+
*/
|
|
73
75
|
triggerRef?: HTMLElement | null;
|
|
74
|
-
/**
|
|
76
|
+
/** The children snippet. It receives the state functions. */
|
|
75
77
|
children?: Snippet<[DrawerStateHelpers<Payload>]>;
|
|
76
78
|
};
|
|
77
79
|
|
|
@@ -3,54 +3,56 @@ import type { DrawerModal, DrawerSide, DrawerSnapPoint, DrawerStateHelpers } fro
|
|
|
3
3
|
import type { DrawerHandle } from './handle.svelte';
|
|
4
4
|
declare function $$render<Payload = unknown>(): {
|
|
5
5
|
props: {
|
|
6
|
-
/**
|
|
6
|
+
/** The open state. By default it goes in the two directions: use `bind:open`. */
|
|
7
7
|
open?: boolean;
|
|
8
|
-
/**
|
|
8
|
+
/** The open state at the start, for when you give no `open`. */
|
|
9
9
|
defaultOpen?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* Give your own code full control of the open state. The component stops to write back to
|
|
12
|
+
* `open`, and it reports only through `onOpenChange`. Thus the parent can refuse a change: the
|
|
13
|
+
* parent does not send the new value down. The default is off, because `bind:open` is the usual
|
|
14
|
+
* case and it needs the write-back.
|
|
15
15
|
*/
|
|
16
16
|
controlledOpen?: boolean;
|
|
17
17
|
/** Callback when the open state changes. */
|
|
18
18
|
onOpenChange?: (open: boolean) => void;
|
|
19
|
-
/**
|
|
19
|
+
/** The edge of the panel. */
|
|
20
20
|
side?: DrawerSide;
|
|
21
|
-
/**
|
|
21
|
+
/** How the drawer holds the focus and stops the page scroll. Read `DrawerModal`. */
|
|
22
22
|
modal?: DrawerModal;
|
|
23
|
-
/**
|
|
23
|
+
/** Lets a swipe toward the anchored edge dismiss the drawer. */
|
|
24
24
|
dismissible?: boolean;
|
|
25
|
-
/**
|
|
25
|
+
/** Closes the drawer when the user pushes the `Escape` key. */
|
|
26
26
|
shouldCloseOnEscape?: boolean;
|
|
27
|
-
/**
|
|
27
|
+
/** Closes the panel when the user presses outside it. */
|
|
28
28
|
shouldCloseOnInteractOutside?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* The rest positions of the panel. They can be in any sequence, because the component sorts
|
|
31
|
+
* them. `DrawerSnapPoint` gives the value forms that the prop accepts. Without this prop, the
|
|
32
|
+
* drawer is open or closed, and nothing between.
|
|
33
33
|
*/
|
|
34
34
|
snapPoints?: readonly DrawerSnapPoint[];
|
|
35
|
-
/**
|
|
35
|
+
/** The current snap point. By default it goes in the two directions: use `bind:snapPoint`. */
|
|
36
36
|
snapPoint?: DrawerSnapPoint | null;
|
|
37
|
-
/**
|
|
37
|
+
/** The snap point at the start, for when you give no `snapPoint`. */
|
|
38
38
|
defaultSnapPoint?: DrawerSnapPoint | null;
|
|
39
|
-
/**
|
|
39
|
+
/** The component calls it when the current snap point changes. */
|
|
40
40
|
onSnapPointChange?: (snapPoint: DrawerSnapPoint | null, event?: Event) => void;
|
|
41
41
|
/**
|
|
42
|
-
* Stops a fast flick
|
|
43
|
-
*
|
|
42
|
+
* Stops a fast flick at the next snap point. Use it when each step has a meaning, and a jump of
|
|
43
|
+
* two steps would confuse the user.
|
|
44
44
|
*/
|
|
45
45
|
snapToSequentialPoints?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* Controls the drawer from a separate object, and not from the `open` prop. Thus a trigger can
|
|
48
|
+
* be at any position in the tree. Read `createDrawerHandle`.
|
|
49
49
|
*/
|
|
50
50
|
handle?: DrawerHandle<Payload>;
|
|
51
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* The reference to the trigger element. Set it in your own code, or let Drawer.Trigger set it.
|
|
53
|
+
*/
|
|
52
54
|
triggerRef?: HTMLElement | null;
|
|
53
|
-
/**
|
|
55
|
+
/** The children snippet. It receives the state functions. */
|
|
54
56
|
children?: Snippet<[DrawerStateHelpers<Payload>]>;
|
|
55
57
|
};
|
|
56
58
|
exports: {};
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
* drawer is unreachable by keyboard and to anyone who cannot perform the gesture.
|
|
21
21
|
*/
|
|
22
22
|
type DrawerSwipeAreaProps = {
|
|
23
|
-
/** CSS class
|
|
23
|
+
/** The CSS class names of the strip. */
|
|
24
24
|
class?: string;
|
|
25
|
-
/**
|
|
25
|
+
/** The thickness of the strip, as a CSS length. */
|
|
26
26
|
size?: string;
|
|
27
|
-
/**
|
|
27
|
+
/** Stops the gesture, but keeps the strip in the DOM. */
|
|
28
28
|
disabled?: boolean;
|
|
29
29
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
|
|
30
30
|
|
|
@@ -10,11 +10,11 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
10
10
|
* drawer is unreachable by keyboard and to anyone who cannot perform the gesture.
|
|
11
11
|
*/
|
|
12
12
|
type DrawerSwipeAreaProps = {
|
|
13
|
-
/** CSS class
|
|
13
|
+
/** The CSS class names of the strip. */
|
|
14
14
|
class?: string;
|
|
15
|
-
/**
|
|
15
|
+
/** The thickness of the strip, as a CSS length. */
|
|
16
16
|
size?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** Stops the gesture, but keeps the strip in the DOM. */
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class'>;
|
|
20
20
|
declare const DrawerSwipeArea: import("svelte").Component<DrawerSwipeAreaProps, {}, "">;
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* from the text inside it.
|
|
13
13
|
*/
|
|
14
14
|
type DrawerTitleProps = {
|
|
15
|
-
/** The drawer
|
|
15
|
+
/** The name of the drawer. */
|
|
16
16
|
children?: Snippet;
|
|
17
|
-
/** CSS class
|
|
17
|
+
/** The CSS class names of the heading. */
|
|
18
18
|
class?: string;
|
|
19
|
-
/**
|
|
19
|
+
/** Replaces the id that the component makes. */
|
|
20
20
|
id?: string;
|
|
21
21
|
} & Omit<HTMLAttributes<HTMLHeadingElement>, 'class' | 'children' | 'id'>;
|
|
22
22
|
|
|
@@ -9,11 +9,11 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
9
9
|
* from the text inside it.
|
|
10
10
|
*/
|
|
11
11
|
type DrawerTitleProps = {
|
|
12
|
-
/** The drawer
|
|
12
|
+
/** The name of the drawer. */
|
|
13
13
|
children?: Snippet;
|
|
14
|
-
/** CSS class
|
|
14
|
+
/** The CSS class names of the heading. */
|
|
15
15
|
class?: string;
|
|
16
|
-
/**
|
|
16
|
+
/** Replaces the id that the component makes. */
|
|
17
17
|
id?: string;
|
|
18
18
|
} & Omit<HTMLAttributes<HTMLHeadingElement>, 'class' | 'children' | 'id'>;
|
|
19
19
|
declare const DrawerTitle: import("svelte").Component<DrawerTitleProps, {}, "">;
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
HTMLButtonAttributes,
|
|
14
14
|
'type' | 'class' | 'children' | 'aria-haspopup' | 'aria-expanded'
|
|
15
15
|
> & {
|
|
16
|
-
/**
|
|
16
|
+
/** The name on the button. */
|
|
17
17
|
children?: Snippet;
|
|
18
|
-
/** CSS class
|
|
18
|
+
/** The CSS class names of the button. */
|
|
19
19
|
class?: string;
|
|
20
|
-
/**
|
|
20
|
+
/** A bindable reference to the button element. */
|
|
21
21
|
element?: HTMLButtonElement | null;
|
|
22
22
|
/**
|
|
23
|
-
* Opens the drawer through a
|
|
24
|
-
*
|
|
23
|
+
* Opens the drawer through a separate object, and not through the context. Thus the trigger can
|
|
24
|
+
* be at any position in the tree. Read `createDrawerHandle`.
|
|
25
25
|
*/
|
|
26
26
|
handle?: DrawerHandle<Payload>;
|
|
27
|
-
/**
|
|
27
|
+
/** The value that goes to the `children` snippet of the drawer when this trigger opens it. */
|
|
28
28
|
payload?: Payload;
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -3,18 +3,18 @@ import type { HTMLButtonAttributes } from 'svelte/elements';
|
|
|
3
3
|
import type { DrawerHandle } from '../root/handle.svelte';
|
|
4
4
|
declare function $$render<Payload = unknown>(): {
|
|
5
5
|
props: Omit<HTMLButtonAttributes, "children" | "class" | "aria-expanded" | "aria-haspopup" | "type"> & {
|
|
6
|
-
/**
|
|
6
|
+
/** The name on the button. */
|
|
7
7
|
children?: Snippet;
|
|
8
|
-
/** CSS class
|
|
8
|
+
/** The CSS class names of the button. */
|
|
9
9
|
class?: string;
|
|
10
|
-
/**
|
|
10
|
+
/** A bindable reference to the button element. */
|
|
11
11
|
element?: HTMLButtonElement | null;
|
|
12
12
|
/**
|
|
13
|
-
* Opens the drawer through a
|
|
14
|
-
*
|
|
13
|
+
* Opens the drawer through a separate object, and not through the context. Thus the trigger can
|
|
14
|
+
* be at any position in the tree. Read `createDrawerHandle`.
|
|
15
15
|
*/
|
|
16
16
|
handle?: DrawerHandle<Payload>;
|
|
17
|
-
/**
|
|
17
|
+
/** The value that goes to the `children` snippet of the drawer when this trigger opens it. */
|
|
18
18
|
payload?: Payload;
|
|
19
19
|
};
|
|
20
20
|
exports: {};
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* Belongs inside a Drawer.Portal, wrapping a Drawer.Content.
|
|
13
13
|
*/
|
|
14
14
|
type DrawerViewportProps = {
|
|
15
|
-
/** The panel this viewport
|
|
15
|
+
/** The panel that this viewport puts in position. */
|
|
16
16
|
children?: Snippet;
|
|
17
|
-
/** CSS class
|
|
17
|
+
/** The CSS class names of the viewport. */
|
|
18
18
|
class?: string;
|
|
19
19
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
20
20
|
|
|
@@ -5,9 +5,9 @@ import type { HTMLAttributes } from 'svelte/elements';
|
|
|
5
5
|
* Belongs inside a Drawer.Portal, wrapping a Drawer.Content.
|
|
6
6
|
*/
|
|
7
7
|
type DrawerViewportProps = {
|
|
8
|
-
/** The panel this viewport
|
|
8
|
+
/** The panel that this viewport puts in position. */
|
|
9
9
|
children?: Snippet;
|
|
10
|
-
/** CSS class
|
|
10
|
+
/** The CSS class names of the viewport. */
|
|
11
11
|
class?: string;
|
|
12
12
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'class' | 'children'>;
|
|
13
13
|
declare const DrawerViewport: import("svelte").Component<DrawerViewportProps, {}, "">;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* every desktop where this does not apply anyway) the provider is inert.
|
|
26
26
|
*/
|
|
27
27
|
type DrawerVirtualKeyboardProviderProps = {
|
|
28
|
-
/** The
|
|
28
|
+
/** The elements below it, which receive the keyboard inset. */
|
|
29
29
|
children?: Snippet;
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -21,7 +21,7 @@ import type { Snippet } from 'svelte';
|
|
|
21
21
|
* every desktop where this does not apply anyway) the provider is inert.
|
|
22
22
|
*/
|
|
23
23
|
type DrawerVirtualKeyboardProviderProps = {
|
|
24
|
-
/** The
|
|
24
|
+
/** The elements below it, which receive the keyboard inset. */
|
|
25
25
|
children?: Snippet;
|
|
26
26
|
};
|
|
27
27
|
declare const DrawerVirtualKeyboardProvider: import("svelte").Component<DrawerVirtualKeyboardProviderProps, {}, "">;
|