@mondarth/ui 0.0.0-stage → 0.0.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.
Files changed (76) hide show
  1. package/LICENSE +21 -0
  2. package/dist/AppShell.svelte +107 -0
  3. package/dist/AppShell.svelte.d.ts +14 -0
  4. package/dist/Badge.svelte +54 -0
  5. package/dist/Badge.svelte.d.ts +9 -0
  6. package/dist/Brand.svelte +62 -0
  7. package/dist/Brand.svelte.d.ts +14 -0
  8. package/dist/Button.svelte +73 -0
  9. package/dist/Button.svelte.d.ts +10 -0
  10. package/dist/Callout.svelte +40 -0
  11. package/dist/Callout.svelte.d.ts +9 -0
  12. package/dist/CalloutMark.svelte +104 -0
  13. package/dist/CalloutMark.svelte.d.ts +14 -0
  14. package/dist/Checkbox.svelte +60 -0
  15. package/dist/Checkbox.svelte.d.ts +15 -0
  16. package/dist/ContextMenu.svelte +151 -0
  17. package/dist/ContextMenu.svelte.d.ts +15 -0
  18. package/dist/Dialog.svelte +73 -0
  19. package/dist/Dialog.svelte.d.ts +14 -0
  20. package/dist/DrawerLayout.svelte +182 -0
  21. package/dist/DrawerLayout.svelte.d.ts +26 -0
  22. package/dist/DrawerToggle.svelte +66 -0
  23. package/dist/DrawerToggle.svelte.d.ts +11 -0
  24. package/dist/ExpandableList.svelte +164 -0
  25. package/dist/ExpandableList.svelte.d.ts +46 -0
  26. package/dist/Field.svelte +109 -0
  27. package/dist/Field.svelte.d.ts +28 -0
  28. package/dist/FooterLinks.svelte +54 -0
  29. package/dist/FooterLinks.svelte.d.ts +15 -0
  30. package/dist/LanguagePicker.svelte +48 -0
  31. package/dist/LanguagePicker.svelte.d.ts +33 -0
  32. package/dist/Logo.svelte +36 -0
  33. package/dist/Logo.svelte.d.ts +12 -0
  34. package/dist/Notice.svelte +116 -0
  35. package/dist/Notice.svelte.d.ts +13 -0
  36. package/dist/Panel.svelte +41 -0
  37. package/dist/Panel.svelte.d.ts +11 -0
  38. package/dist/Prose.svelte +23 -0
  39. package/dist/Prose.svelte.d.ts +8 -0
  40. package/dist/ReturnLink.svelte +50 -0
  41. package/dist/ReturnLink.svelte.d.ts +12 -0
  42. package/dist/SplitPanes.svelte +92 -0
  43. package/dist/SplitPanes.svelte.d.ts +21 -0
  44. package/dist/Splitter.svelte +160 -0
  45. package/dist/Splitter.svelte.d.ts +20 -0
  46. package/dist/Table.svelte +65 -0
  47. package/dist/Table.svelte.d.ts +12 -0
  48. package/dist/Toast.svelte +143 -0
  49. package/dist/Toast.svelte.d.ts +18 -0
  50. package/dist/TopBar.svelte +68 -0
  51. package/dist/TopBar.svelte.d.ts +19 -0
  52. package/dist/Tree.svelte +367 -0
  53. package/dist/Tree.svelte.d.ts +27 -0
  54. package/dist/UserMenu.svelte +209 -0
  55. package/dist/UserMenu.svelte.d.ts +10 -0
  56. package/dist/WarningMark.svelte +33 -0
  57. package/dist/WarningMark.svelte.d.ts +10 -0
  58. package/dist/context-menu.d.ts +41 -0
  59. package/dist/context-menu.js +80 -0
  60. package/dist/dates.d.ts +37 -0
  61. package/dist/dates.js +69 -0
  62. package/dist/index.d.ts +46 -0
  63. package/dist/index.js +42 -0
  64. package/dist/language.d.ts +7 -0
  65. package/dist/language.js +12 -0
  66. package/dist/remembered.d.ts +30 -0
  67. package/dist/remembered.js +50 -0
  68. package/dist/site.d.ts +7 -0
  69. package/dist/site.js +5 -0
  70. package/dist/theme.css +61 -0
  71. package/dist/top-bar.d.ts +29 -0
  72. package/dist/top-bar.js +2 -0
  73. package/dist/tree.d.ts +29 -0
  74. package/dist/tree.js +27 -0
  75. package/package.json +83 -3
  76. package/README.md +0 -3
@@ -0,0 +1,151 @@
1
+ <!--
2
+ A context menu: what can be done with something, at a place in the window. The focus moves into it, the arrow keys,
3
+ Home and End move along it, and Escape, Tab, a choice or a click anywhere else asks to close it. Each entry is the
4
+ application's, in its words. Most open it with `contextMenu` or `openContextMenu` (`context-menu.ts`), which open
5
+ and close it, one at a time, and give the focus back.
6
+ -->
7
+ <script lang="ts">
8
+ import type { MenuItem } from './context-menu.js';
9
+
10
+ interface Props {
11
+ /** The entries. */
12
+ items: readonly MenuItem[];
13
+ /** Where it opens, in the window's coordinates: its top left corner, kept within the window. */
14
+ x: number;
15
+ y: number;
16
+ /** What it is a menu of, for a screen reader, such as "Actions for Catalogue". */
17
+ label: string;
18
+ /** Closes it; `refocus` says whether the focus should go back where it was. */
19
+ onClose: (refocus: boolean) => void;
20
+ }
21
+
22
+ let { items, x, y, label, onClose }: Props = $props();
23
+
24
+ let menu: HTMLUListElement | undefined = $state();
25
+ /** Where it shows, once measured: moved in from the window's edges. */
26
+ let left = $state(0);
27
+ let top = $state(0);
28
+
29
+ const entries = () => [...(menu?.querySelectorAll<HTMLButtonElement>('button:not([disabled])') ?? [])];
30
+
31
+ $effect(() => {
32
+ const box = menu?.getBoundingClientRect();
33
+ left = Math.max(0, Math.min(x, window.innerWidth - (box?.width ?? 0)));
34
+ top = Math.max(0, Math.min(y, window.innerHeight - (box?.height ?? 0)));
35
+ entries()[0]?.focus();
36
+ const onPointer = (event: PointerEvent) => {
37
+ if (!(event.target instanceof Node) || menu?.contains(event.target) !== true) onClose(false);
38
+ };
39
+ document.addEventListener('pointerdown', onPointer);
40
+ return () => {
41
+ document.removeEventListener('pointerdown', onPointer);
42
+ };
43
+ });
44
+
45
+ /**
46
+ * Moves along the menu with the arrow keys, Home and End; closes it with Escape or Tab.
47
+ * @param event - The key pressed
48
+ */
49
+ function onKeydown(event: KeyboardEvent): void {
50
+ const list = entries();
51
+ const at = list.indexOf(document.activeElement as HTMLButtonElement);
52
+ const to = (index: number) => {
53
+ event.preventDefault();
54
+ list[(index + list.length) % list.length]?.focus();
55
+ };
56
+ switch (event.key) {
57
+ case 'ArrowDown':
58
+ to(at + 1);
59
+ break;
60
+ case 'ArrowUp':
61
+ to(at - 1);
62
+ break;
63
+ case 'Home':
64
+ to(0);
65
+ break;
66
+ case 'End':
67
+ to(list.length - 1);
68
+ break;
69
+ case 'Escape':
70
+ event.preventDefault();
71
+ onClose(true);
72
+ break;
73
+ case 'Tab':
74
+ onClose(true);
75
+ break;
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Chooses an entry: the menu closes, the focus going back, then the entry does what it does.
81
+ * @param item - The entry
82
+ */
83
+ function choose(item: MenuItem): void {
84
+ onClose(true);
85
+ item.onSelect();
86
+ }
87
+ </script>
88
+
89
+ <ul
90
+ class="menu"
91
+ role="menu"
92
+ aria-label={label}
93
+ tabindex="-1"
94
+ bind:this={menu}
95
+ style:left="{left}px"
96
+ style:top="{top}px"
97
+ onkeydown={onKeydown}>
98
+ {#each items as item (item.label)}
99
+ <li role="none">
100
+ <button
101
+ type="button"
102
+ role="menuitem"
103
+ disabled={item.disabled}
104
+ onclick={() => {
105
+ choose(item);
106
+ }}>
107
+ {item.label}
108
+ </button>
109
+ </li>
110
+ {/each}
111
+ </ul>
112
+
113
+ <style>
114
+ .menu {
115
+ position: fixed;
116
+ z-index: 20;
117
+ display: grid;
118
+ min-width: 12rem;
119
+ margin: 0;
120
+ padding: var(--mdr-space-1) 0;
121
+ border: var(--mdr-border-width-thin) solid var(--mdr-color-border);
122
+ border-radius: var(--mdr-radius-small);
123
+ background: var(--mdr-color-surface);
124
+ list-style: none;
125
+ }
126
+
127
+ button {
128
+ display: block;
129
+ box-sizing: border-box;
130
+ width: 100%;
131
+ padding: var(--mdr-space-2) var(--mdr-space-4);
132
+ border: 0;
133
+ background: none;
134
+ color: var(--mdr-color-text);
135
+ font: inherit;
136
+ text-align: start;
137
+ cursor: pointer;
138
+ }
139
+
140
+ button:hover:not([disabled]),
141
+ button:focus-visible {
142
+ outline: none;
143
+ background: var(--mdr-color-subtle);
144
+ color: var(--mdr-color-accent);
145
+ }
146
+
147
+ button[disabled] {
148
+ color: var(--mdr-color-text-muted);
149
+ cursor: default;
150
+ }
151
+ </style>
@@ -0,0 +1,15 @@
1
+ import type { MenuItem } from './context-menu.js';
2
+ interface Props {
3
+ /** The entries. */
4
+ items: readonly MenuItem[];
5
+ /** Where it opens, in the window's coordinates: its top left corner, kept within the window. */
6
+ x: number;
7
+ y: number;
8
+ /** What it is a menu of, for a screen reader, such as "Actions for Catalogue". */
9
+ label: string;
10
+ /** Closes it; `refocus` says whether the focus should go back where it was. */
11
+ onClose: (refocus: boolean) => void;
12
+ }
13
+ declare const ContextMenu: import("svelte").Component<Props, {}, "">;
14
+ type ContextMenu = ReturnType<typeof ContextMenu>;
15
+ export default ContextMenu;
@@ -0,0 +1,73 @@
1
+ <!--
2
+ A modal dialog: the native one, which keeps the focus inside it, closes on Escape, and gives the focus back to what
3
+ opened it. Open it by setting `open`; it sets `open` to false however it is closed.
4
+ -->
5
+ <script lang="ts">
6
+ import type { Snippet } from 'svelte';
7
+
8
+ interface Props {
9
+ /** Whether it is open. */
10
+ open?: boolean;
11
+ /** Its title, which names it. */
12
+ title: string;
13
+ /** What it says. */
14
+ children: Snippet;
15
+ /** Its buttons, at its foot. */
16
+ actions?: Snippet;
17
+ }
18
+
19
+ let { open = $bindable(false), title, children, actions }: Props = $props();
20
+ const titleId = $props.id();
21
+ let dialog: HTMLDialogElement | undefined = $state();
22
+
23
+ $effect(() => {
24
+ if (open && dialog?.open === false) dialog.showModal();
25
+ else if (!open && dialog?.open === true) dialog.close();
26
+ });
27
+ </script>
28
+
29
+ <dialog
30
+ bind:this={dialog}
31
+ aria-labelledby={titleId}
32
+ onclose={() => {
33
+ // The event comes a moment after the dialog closes: by then it may be open again, as when reopened at once, and
34
+ // a stale close is not to shut it.
35
+ if (dialog?.open === false) open = false;
36
+ }}>
37
+ <h2 id={titleId}>{title}</h2>
38
+ <div class="body">{@render children()}</div>
39
+ {#if actions}<div class="actions">{@render actions()}</div>{/if}
40
+ </dialog>
41
+
42
+ <style>
43
+ dialog {
44
+ width: min(var(--mdr-layout-dialog), calc(100vw - 2 * var(--mdr-space-4)));
45
+ padding: var(--mdr-space-5);
46
+ border: var(--mdr-border-width-thin) solid var(--mdr-color-border);
47
+ border-radius: var(--mdr-radius-small);
48
+ background: var(--mdr-color-surface);
49
+ color: var(--mdr-color-text);
50
+ }
51
+
52
+ dialog::backdrop {
53
+ background: rgb(0 0 0 / 50%);
54
+ }
55
+
56
+ h2 {
57
+ margin: 0 0 var(--mdr-space-3);
58
+ font-size: var(--mdr-font-size-large);
59
+ line-height: var(--mdr-font-line-height-tight);
60
+ }
61
+
62
+ .body {
63
+ display: grid;
64
+ gap: var(--mdr-space-3);
65
+ }
66
+
67
+ .actions {
68
+ display: flex;
69
+ flex-wrap: wrap;
70
+ gap: var(--mdr-space-2);
71
+ margin-top: var(--mdr-space-5);
72
+ }
73
+ </style>
@@ -0,0 +1,14 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ /** Whether it is open. */
4
+ open?: boolean;
5
+ /** Its title, which names it. */
6
+ title: string;
7
+ /** What it says. */
8
+ children: Snippet;
9
+ /** Its buttons, at its foot. */
10
+ actions?: Snippet;
11
+ }
12
+ declare const Dialog: import("svelte").Component<Props, {}, "open">;
13
+ type Dialog = ReturnType<typeof Dialog>;
14
+ export default Dialog;
@@ -0,0 +1,182 @@
1
+ <!--
2
+ A drawer at the start of a layout, beside its content, filling the height it is given: the drawer holds what works on
3
+ the content, such as filters, and the content fills the rest. The drawer is resized by its splitter, dragged or from
4
+ the keyboard, and shown or hidden by a `DrawerToggle` (in the top bar), which names it by its `id`.
5
+
6
+ Where the layout itself is narrow, as on a phone, the drawer lies over the content instead of beside it, starting
7
+ closed: opened, it takes the focus, and Escape, or a click beside it, closes it, the focus going back to its toggle. With a `storageKey`, the
8
+ width and whether it is open are remembered in this browser.
9
+ -->
10
+ <script lang="ts">
11
+ import { onMount } from 'svelte';
12
+
13
+ import { isBoolean, isNumber, recall, remember } from './remembered.js';
14
+ import Splitter from './Splitter.svelte';
15
+
16
+ import type { Snippet } from 'svelte';
17
+
18
+ interface Props {
19
+ /** The drawer's id, which its toggle controls. */
20
+ id: string;
21
+ /** What the drawer is, as a landmark, such as "Search and filters". */
22
+ label: string;
23
+ /** What its splitter does, for assistive technology, such as "Resize the search and filters". */
24
+ resizeLabel: string;
25
+ /** Whether it is showing. */
26
+ open?: boolean;
27
+ /** Its width, in pixels. */
28
+ width?: number;
29
+ minWidth?: number;
30
+ maxWidth?: number;
31
+ /** Below this width of the layout, in pixels, the drawer lies over the content. */
32
+ overlayBelow?: number;
33
+ /** Where this browser remembers its width and whether it is open; none, and nothing is remembered. */
34
+ storageKey?: string | undefined;
35
+ /** The drawer's own content. */
36
+ drawer: Snippet;
37
+ /** The content beside it. */
38
+ children: Snippet;
39
+ }
40
+
41
+ let {
42
+ id,
43
+ label,
44
+ resizeLabel,
45
+ open = $bindable(true),
46
+ width = $bindable(320),
47
+ minWidth = 240,
48
+ maxWidth = 560,
49
+ overlayBelow = 768,
50
+ storageKey,
51
+ drawer,
52
+ children,
53
+ }: Props = $props();
54
+
55
+ let layout: HTMLDivElement | undefined = $state();
56
+ let aside: HTMLElement | undefined = $state();
57
+ /** Whether the layout is narrow, so the drawer lies over the content. */
58
+ let narrow = $state(false);
59
+ /** Whether what was remembered has been read: until then nothing is written, so it is not overwritten. */
60
+ let recalled = $state(false);
61
+
62
+ onMount(() => {
63
+ const keptOpen = storageKey === undefined ? undefined : recall(`${storageKey}:open`, isBoolean);
64
+ const keptWidth = storageKey === undefined ? undefined : recall(`${storageKey}:width`, isNumber);
65
+ if (keptWidth !== undefined) width = Math.min(maxWidth, Math.max(minWidth, keptWidth));
66
+ const measure = () => {
67
+ narrow = (layout?.clientWidth ?? 0) < overlayBelow;
68
+ };
69
+ measure();
70
+ // Narrow, it starts closed, as it would hide the content, unless it was left open.
71
+ open = keptOpen ?? (narrow ? false : open);
72
+ recalled = true;
73
+ const observer = new ResizeObserver(measure);
74
+ if (layout !== undefined) observer.observe(layout);
75
+ return () => {
76
+ observer.disconnect();
77
+ };
78
+ });
79
+
80
+ /** Whether it was open, so that opening it over the content can be told from its being open as the page loads. */
81
+ let wasOpen: boolean | undefined;
82
+ $effect(() => {
83
+ // Opened over the content, it takes the focus, so that the keyboard is in it, and Escape reaches it; it runs
84
+ // after the mount, so that it is first open, or not, as it was left.
85
+ if (open && wasOpen === false && narrow) aside?.focus();
86
+ wasOpen = open;
87
+ });
88
+
89
+ $effect(() => {
90
+ if (!recalled || storageKey === undefined) return;
91
+ remember(`${storageKey}:open`, open);
92
+ remember(`${storageKey}:width`, width);
93
+ });
94
+
95
+ /** Close the drawer, giving the focus back to its toggle. */
96
+ function close(): void {
97
+ open = false;
98
+ document.querySelector<HTMLElement>(`[aria-controls="${CSS.escape(id)}"]`)?.focus();
99
+ }
100
+ </script>
101
+
102
+ <svelte:window
103
+ onkeydown={(event: KeyboardEvent) => {
104
+ // Over the content, Escape closes it, wherever the focus is.
105
+ if (open && narrow && event.key === 'Escape') {
106
+ event.preventDefault();
107
+ close();
108
+ }
109
+ }} />
110
+
111
+ <div class={['layout', { narrow }]} bind:this={layout}>
112
+ <aside {id} class="drawer" aria-label={label} tabindex="-1" bind:this={aside} hidden={!open} style:width="{width}px">
113
+ {@render drawer()}
114
+ </aside>
115
+ {#if open && !narrow}
116
+ <Splitter
117
+ orientation="vertical"
118
+ scale="pixels"
119
+ sizes="before"
120
+ value={width}
121
+ min={minWidth}
122
+ max={maxWidth}
123
+ label={resizeLabel}
124
+ controls={id}
125
+ onChange={(size: number) => {
126
+ width = size;
127
+ }} />
128
+ {/if}
129
+ {#if open && narrow}
130
+ <!-- A click beside the drawer closes it, as Escape does from the keyboard. -->
131
+ <div class="backdrop" aria-hidden="true" onclick={close}></div>
132
+ {/if}
133
+ <div class="content">{@render children()}</div>
134
+ </div>
135
+
136
+ <style>
137
+ .layout {
138
+ position: relative;
139
+ display: flex;
140
+ height: 100%;
141
+ min-height: 0;
142
+ }
143
+
144
+ .drawer {
145
+ flex: none;
146
+ box-sizing: border-box;
147
+ overflow: auto;
148
+ background: var(--mdr-color-surface);
149
+ }
150
+
151
+ .drawer:focus {
152
+ outline: none;
153
+ }
154
+
155
+ .drawer[hidden] {
156
+ display: none;
157
+ }
158
+
159
+ .content {
160
+ flex: 1;
161
+ min-width: 0;
162
+ overflow: auto;
163
+ }
164
+
165
+ /* Narrow, it lies over the content, no wider than the layout, with the content dimmed behind it. */
166
+ .narrow .drawer {
167
+ position: absolute;
168
+ z-index: 2;
169
+ inset-block: 0;
170
+ inset-inline-start: 0;
171
+ max-width: 85%;
172
+ border-inline-end: var(--mdr-border-width-thin) solid var(--mdr-color-border);
173
+ }
174
+
175
+ .backdrop {
176
+ position: absolute;
177
+ z-index: 1;
178
+ inset: 0;
179
+ background: var(--mdr-color-text);
180
+ opacity: 0.3;
181
+ }
182
+ </style>
@@ -0,0 +1,26 @@
1
+ import type { Snippet } from 'svelte';
2
+ interface Props {
3
+ /** The drawer's id, which its toggle controls. */
4
+ id: string;
5
+ /** What the drawer is, as a landmark, such as "Search and filters". */
6
+ label: string;
7
+ /** What its splitter does, for assistive technology, such as "Resize the search and filters". */
8
+ resizeLabel: string;
9
+ /** Whether it is showing. */
10
+ open?: boolean;
11
+ /** Its width, in pixels. */
12
+ width?: number;
13
+ minWidth?: number;
14
+ maxWidth?: number;
15
+ /** Below this width of the layout, in pixels, the drawer lies over the content. */
16
+ overlayBelow?: number;
17
+ /** Where this browser remembers its width and whether it is open; none, and nothing is remembered. */
18
+ storageKey?: string | undefined;
19
+ /** The drawer's own content. */
20
+ drawer: Snippet;
21
+ /** The content beside it. */
22
+ children: Snippet;
23
+ }
24
+ declare const DrawerLayout: import("svelte").Component<Props, {}, "width" | "open">;
25
+ type DrawerLayout = ReturnType<typeof DrawerLayout>;
26
+ export default DrawerLayout;
@@ -0,0 +1,66 @@
1
+ <!--
2
+ The button that shows or hides a `DrawerLayout`'s drawer, which it names by the drawer's id: in the top bar, at its
3
+ start. It says whether the drawer is open (`aria-expanded`), and what the drawer is, in the application's words.
4
+ -->
5
+ <script lang="ts">
6
+ interface Props {
7
+ /** The id of the drawer it shows and hides. */
8
+ controls: string;
9
+ /** Whether the drawer is open. */
10
+ open: boolean;
11
+ /** What the drawer is, as its name and tooltip, such as "Search and filters". */
12
+ label: string;
13
+ }
14
+
15
+ let { controls, open = $bindable(), label }: Props = $props();
16
+ </script>
17
+
18
+ <button
19
+ type="button"
20
+ class="toggle"
21
+ aria-controls={controls}
22
+ aria-expanded={open}
23
+ aria-label={label}
24
+ data-tooltip={label}
25
+ title={label}
26
+ onclick={() => {
27
+ open = !open;
28
+ }}>
29
+ <!-- A panel at the start of a window: shaded while the drawer is open. -->
30
+ <svg viewBox="0 0 20 20" width="20" height="20" aria-hidden="true">
31
+ <rect x="1.5" y="3" width="17" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="1.5" />
32
+ <rect class="panel" x="2.25" y="3.75" width="5.25" height="12.5" fill="currentColor" />
33
+ <line x1="7.5" y1="3" x2="7.5" y2="17" stroke="currentColor" stroke-width="1.5" />
34
+ </svg>
35
+ </button>
36
+
37
+ <style>
38
+ .toggle {
39
+ display: inline-grid;
40
+ place-items: center;
41
+ padding: var(--mdr-space-1);
42
+ border: var(--mdr-border-width-thin) solid transparent;
43
+ border-radius: var(--mdr-radius-small);
44
+ background: none;
45
+ color: var(--mdr-color-text);
46
+ cursor: pointer;
47
+ }
48
+
49
+ .toggle:hover {
50
+ border-color: var(--mdr-color-border);
51
+ color: var(--mdr-color-accent);
52
+ }
53
+
54
+ .toggle:focus-visible {
55
+ outline: var(--mdr-border-width-focus) solid var(--mdr-color-focus);
56
+ outline-offset: var(--mdr-border-width-thin);
57
+ }
58
+
59
+ .panel {
60
+ opacity: 0;
61
+ }
62
+
63
+ .toggle[aria-expanded='true'] .panel {
64
+ opacity: 0.35;
65
+ }
66
+ </style>
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ /** The id of the drawer it shows and hides. */
3
+ controls: string;
4
+ /** Whether the drawer is open. */
5
+ open: boolean;
6
+ /** What the drawer is, as its name and tooltip, such as "Search and filters". */
7
+ label: string;
8
+ }
9
+ declare const DrawerToggle: import("svelte").Component<Props, {}, "open">;
10
+ type DrawerToggle = ReturnType<typeof DrawerToggle>;
11
+ export default DrawerToggle;