@pathscale/ui 1.1.53 → 1.1.54
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/drawer/Drawer.classes.d.ts +26 -88
- package/dist/components/drawer/Drawer.classes.js +26 -88
- package/dist/components/drawer/Drawer.css +2 -102
- package/dist/components/drawer/Drawer.d.ts +9 -26
- package/dist/components/drawer/Drawer.js +241 -409
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/field-error/FieldError.d.ts +3 -3
- package/dist/components/field-error/FieldError.js +11 -11
- package/dist/components/form/Form.d.ts +6 -0
- package/dist/hooks/form/index.d.ts +6 -0
- package/dist/hooks/form/index.js +12 -1
- package/dist/hooks/form/useField.d.ts +11 -0
- package/dist/hooks/form/useField.js +20 -0
- package/dist/hooks/form/useFieldError.d.ts +3 -0
- package/dist/hooks/form/useFieldError.js +3 -0
- package/dist/hooks/form/useFieldMeta.d.ts +20 -0
- package/dist/hooks/form/useFieldMeta.js +49 -0
- package/dist/hooks/form/useFieldProps.d.ts +10 -0
- package/dist/hooks/form/useFieldProps.js +51 -0
- package/dist/hooks/form/useForm.d.ts +27 -0
- package/dist/hooks/form/useForm.js +59 -0
- package/dist/hooks/form/utils.d.ts +4 -0
- package/dist/hooks/form/utils.js +30 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -1
- package/dist/purge-manifest.json +2332 -2352
- package/dist/styles/icons/generated-icons.css +1 -63
- package/package.json +1 -1
- package/dist/components/drawer/Drawer.a11y.d.ts +0 -11
- package/dist/components/drawer/Drawer.a11y.js +0 -32
- package/dist/components/drawer/Drawer.context.d.ts +0 -27
- package/dist/components/drawer/Drawer.context.js +0 -8
|
@@ -1,90 +1,28 @@
|
|
|
1
1
|
export declare const CLASSES: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
readonly
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
readonly placement: {
|
|
29
|
-
readonly top: "drawer__content--top";
|
|
30
|
-
readonly bottom: "drawer__content--bottom";
|
|
31
|
-
readonly left: "drawer__content--left";
|
|
32
|
-
readonly right: "drawer__content--right";
|
|
33
|
-
};
|
|
34
|
-
readonly scroll: {
|
|
35
|
-
readonly inside: "drawer__content--scroll-inside";
|
|
36
|
-
readonly outside: "drawer__content--scroll-outside";
|
|
37
|
-
};
|
|
38
|
-
readonly state: {
|
|
39
|
-
readonly entering: "drawer__content--entering";
|
|
40
|
-
readonly exiting: "drawer__content--exiting";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
readonly Dialog: {
|
|
44
|
-
readonly base: "drawer__dialog";
|
|
45
|
-
readonly axis: {
|
|
46
|
-
readonly side: "drawer__dialog--axis-side";
|
|
47
|
-
readonly edge: "drawer__dialog--axis-edge";
|
|
48
|
-
};
|
|
49
|
-
readonly size: {
|
|
50
|
-
readonly side: {
|
|
51
|
-
readonly sm: "drawer__dialog--side-sm";
|
|
52
|
-
readonly md: "drawer__dialog--side-md";
|
|
53
|
-
readonly lg: "drawer__dialog--side-lg";
|
|
54
|
-
readonly full: "drawer__dialog--side-full";
|
|
55
|
-
};
|
|
56
|
-
readonly edge: {
|
|
57
|
-
readonly sm: "drawer__dialog--edge-sm";
|
|
58
|
-
readonly md: "drawer__dialog--edge-md";
|
|
59
|
-
readonly lg: "drawer__dialog--edge-lg";
|
|
60
|
-
readonly full: "drawer__dialog--edge-full";
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
readonly state: {
|
|
64
|
-
readonly entering: "drawer__dialog--entering";
|
|
65
|
-
readonly exiting: "drawer__dialog--exiting";
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
readonly Header: {
|
|
69
|
-
readonly base: "drawer__header";
|
|
70
|
-
};
|
|
71
|
-
readonly Heading: {
|
|
72
|
-
readonly base: "drawer__heading";
|
|
73
|
-
};
|
|
74
|
-
readonly Body: {
|
|
75
|
-
readonly base: "drawer__body";
|
|
76
|
-
};
|
|
77
|
-
readonly Footer: {
|
|
78
|
-
readonly base: "drawer__footer";
|
|
79
|
-
};
|
|
80
|
-
readonly Handle: {
|
|
81
|
-
readonly base: "drawer__handle";
|
|
82
|
-
readonly bar: "drawer__handle-bar";
|
|
83
|
-
};
|
|
84
|
-
readonly CloseTrigger: {
|
|
85
|
-
readonly base: "drawer__close-trigger";
|
|
86
|
-
readonly icon: "drawer__close-icon";
|
|
87
|
-
readonly iconStart: "drawer__close-icon--start";
|
|
88
|
-
readonly iconEnd: "drawer__close-icon--end";
|
|
89
|
-
};
|
|
2
|
+
readonly slot: {
|
|
3
|
+
readonly trigger: "drawer__trigger";
|
|
4
|
+
readonly backdrop: "drawer__backdrop";
|
|
5
|
+
readonly content: "drawer__content";
|
|
6
|
+
readonly dialog: "drawer__dialog";
|
|
7
|
+
readonly header: "drawer__header";
|
|
8
|
+
readonly heading: "drawer__heading";
|
|
9
|
+
readonly body: "drawer__body";
|
|
10
|
+
readonly footer: "drawer__footer";
|
|
11
|
+
readonly handle: "drawer__handle";
|
|
12
|
+
readonly closeTrigger: "drawer__close-trigger";
|
|
13
|
+
readonly closeIcon: "drawer__close-icon";
|
|
14
|
+
};
|
|
15
|
+
readonly backdrop: {
|
|
16
|
+
readonly opaque: "drawer__backdrop--opaque";
|
|
17
|
+
readonly blur: "drawer__backdrop--blur";
|
|
18
|
+
readonly transparent: "drawer__backdrop--transparent";
|
|
19
|
+
};
|
|
20
|
+
readonly placement: {
|
|
21
|
+
readonly top: "drawer__content--top";
|
|
22
|
+
readonly bottom: "drawer__content--bottom";
|
|
23
|
+
readonly left: "drawer__content--left";
|
|
24
|
+
readonly right: "drawer__content--right";
|
|
25
|
+
};
|
|
26
|
+
readonly closeIconStart: "drawer__close-icon--start";
|
|
27
|
+
readonly closeIconEnd: "drawer__close-icon--end";
|
|
90
28
|
};
|
|
@@ -1,91 +1,29 @@
|
|
|
1
1
|
const CLASSES = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
placement: {
|
|
29
|
-
top: "drawer__content--top",
|
|
30
|
-
bottom: "drawer__content--bottom",
|
|
31
|
-
left: "drawer__content--left",
|
|
32
|
-
right: "drawer__content--right"
|
|
33
|
-
},
|
|
34
|
-
scroll: {
|
|
35
|
-
inside: "drawer__content--scroll-inside",
|
|
36
|
-
outside: "drawer__content--scroll-outside"
|
|
37
|
-
},
|
|
38
|
-
state: {
|
|
39
|
-
entering: "drawer__content--entering",
|
|
40
|
-
exiting: "drawer__content--exiting"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
Dialog: {
|
|
44
|
-
base: "drawer__dialog",
|
|
45
|
-
axis: {
|
|
46
|
-
side: "drawer__dialog--axis-side",
|
|
47
|
-
edge: "drawer__dialog--axis-edge"
|
|
48
|
-
},
|
|
49
|
-
size: {
|
|
50
|
-
side: {
|
|
51
|
-
sm: "drawer__dialog--side-sm",
|
|
52
|
-
md: "drawer__dialog--side-md",
|
|
53
|
-
lg: "drawer__dialog--side-lg",
|
|
54
|
-
full: "drawer__dialog--side-full"
|
|
55
|
-
},
|
|
56
|
-
edge: {
|
|
57
|
-
sm: "drawer__dialog--edge-sm",
|
|
58
|
-
md: "drawer__dialog--edge-md",
|
|
59
|
-
lg: "drawer__dialog--edge-lg",
|
|
60
|
-
full: "drawer__dialog--edge-full"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
state: {
|
|
64
|
-
entering: "drawer__dialog--entering",
|
|
65
|
-
exiting: "drawer__dialog--exiting"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
Header: {
|
|
69
|
-
base: "drawer__header"
|
|
70
|
-
},
|
|
71
|
-
Heading: {
|
|
72
|
-
base: "drawer__heading"
|
|
73
|
-
},
|
|
74
|
-
Body: {
|
|
75
|
-
base: "drawer__body"
|
|
76
|
-
},
|
|
77
|
-
Footer: {
|
|
78
|
-
base: "drawer__footer"
|
|
79
|
-
},
|
|
80
|
-
Handle: {
|
|
81
|
-
base: "drawer__handle",
|
|
82
|
-
bar: "drawer__handle-bar"
|
|
83
|
-
},
|
|
84
|
-
CloseTrigger: {
|
|
85
|
-
base: "drawer__close-trigger",
|
|
86
|
-
icon: "drawer__close-icon",
|
|
87
|
-
iconStart: "drawer__close-icon--start",
|
|
88
|
-
iconEnd: "drawer__close-icon--end"
|
|
89
|
-
}
|
|
2
|
+
slot: {
|
|
3
|
+
trigger: "drawer__trigger",
|
|
4
|
+
backdrop: "drawer__backdrop",
|
|
5
|
+
content: "drawer__content",
|
|
6
|
+
dialog: "drawer__dialog",
|
|
7
|
+
header: "drawer__header",
|
|
8
|
+
heading: "drawer__heading",
|
|
9
|
+
body: "drawer__body",
|
|
10
|
+
footer: "drawer__footer",
|
|
11
|
+
handle: "drawer__handle",
|
|
12
|
+
closeTrigger: "drawer__close-trigger",
|
|
13
|
+
closeIcon: "drawer__close-icon"
|
|
14
|
+
},
|
|
15
|
+
backdrop: {
|
|
16
|
+
opaque: "drawer__backdrop--opaque",
|
|
17
|
+
blur: "drawer__backdrop--blur",
|
|
18
|
+
transparent: "drawer__backdrop--transparent"
|
|
19
|
+
},
|
|
20
|
+
placement: {
|
|
21
|
+
top: "drawer__content--top",
|
|
22
|
+
bottom: "drawer__content--bottom",
|
|
23
|
+
left: "drawer__content--left",
|
|
24
|
+
right: "drawer__content--right"
|
|
25
|
+
},
|
|
26
|
+
closeIconStart: "drawer__close-icon--start",
|
|
27
|
+
closeIconEnd: "drawer__close-icon--end"
|
|
90
28
|
};
|
|
91
29
|
export { CLASSES };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
@layer components {
|
|
2
|
-
.drawer {
|
|
3
|
-
position: relative;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
2
|
/* -------------------------------------------------------------------------------------------------
|
|
7
3
|
* Trigger
|
|
8
4
|
* -----------------------------------------------------------------------------------------------*/
|
|
@@ -38,15 +34,6 @@
|
|
|
38
34
|
transition: opacity 250ms cubic-bezier(0.32, 0.72, 0, 1);
|
|
39
35
|
}
|
|
40
36
|
|
|
41
|
-
.drawer__backdrop--entering {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.drawer__backdrop--exiting {
|
|
46
|
-
opacity: 0;
|
|
47
|
-
transition-duration: 200ms;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
37
|
.drawer__backdrop[data-entering="true"] {
|
|
51
38
|
opacity: 0;
|
|
52
39
|
}
|
|
@@ -90,42 +77,6 @@
|
|
|
90
77
|
height: 100dvh;
|
|
91
78
|
}
|
|
92
79
|
|
|
93
|
-
.drawer__content--scroll-inside .drawer__dialog {
|
|
94
|
-
overflow: hidden;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.drawer__content--scroll-inside .drawer__body {
|
|
98
|
-
overflow-y: auto;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.drawer__content--scroll-outside {
|
|
102
|
-
overflow-y: auto;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.drawer__content--scroll-outside .drawer__dialog {
|
|
106
|
-
margin-block: auto;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.drawer__content--entering[data-placement="left"] .drawer__dialog,
|
|
110
|
-
.drawer__content--exiting[data-placement="left"] .drawer__dialog {
|
|
111
|
-
translate: -100% 0;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.drawer__content--entering[data-placement="right"] .drawer__dialog,
|
|
115
|
-
.drawer__content--exiting[data-placement="right"] .drawer__dialog {
|
|
116
|
-
translate: 100% 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.drawer__content--entering[data-placement="top"] .drawer__dialog,
|
|
120
|
-
.drawer__content--exiting[data-placement="top"] .drawer__dialog {
|
|
121
|
-
translate: 0 -100%;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.drawer__content--entering[data-placement="bottom"] .drawer__dialog,
|
|
125
|
-
.drawer__content--exiting[data-placement="bottom"] .drawer__dialog {
|
|
126
|
-
translate: 0 100%;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
80
|
.drawer__content--bottom {
|
|
130
81
|
align-items: flex-end;
|
|
131
82
|
}
|
|
@@ -166,57 +117,6 @@
|
|
|
166
117
|
transition: translate var(--drawer-enter-duration) var(--drawer-ease);
|
|
167
118
|
}
|
|
168
119
|
|
|
169
|
-
.drawer__dialog--axis-side {
|
|
170
|
-
height: 100%;
|
|
171
|
-
border-radius: 0;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.drawer__dialog--axis-edge {
|
|
175
|
-
width: 100%;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.drawer__dialog--side-sm {
|
|
179
|
-
width: 18rem;
|
|
180
|
-
max-width: 85vw;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.drawer__dialog--side-md {
|
|
184
|
-
width: 20rem;
|
|
185
|
-
max-width: 85vw;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.drawer__dialog--side-lg {
|
|
189
|
-
width: 24rem;
|
|
190
|
-
max-width: 90vw;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.drawer__dialog--side-full {
|
|
194
|
-
width: 100vw;
|
|
195
|
-
max-width: 100vw;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.drawer__dialog--edge-sm {
|
|
199
|
-
max-height: min(40vh, 24rem);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.drawer__dialog--edge-md {
|
|
203
|
-
max-height: min(60vh, 36rem);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.drawer__dialog--edge-lg {
|
|
207
|
-
max-height: 85vh;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.drawer__dialog--edge-full {
|
|
211
|
-
max-height: 100vh;
|
|
212
|
-
border-radius: 0;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.drawer__dialog--entering,
|
|
216
|
-
.drawer__dialog--exiting {
|
|
217
|
-
transition-duration: var(--drawer-exit-duration);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
120
|
[data-exiting="true"] .drawer__dialog {
|
|
221
121
|
transition-duration: var(--drawer-exit-duration);
|
|
222
122
|
}
|
|
@@ -292,6 +192,7 @@
|
|
|
292
192
|
.drawer__dialog--custom-bg {
|
|
293
193
|
background-color: var(--drawer-dialog-bg, var(--color-base-100));
|
|
294
194
|
}
|
|
195
|
+
|
|
295
196
|
/* Slide transitions — open state */
|
|
296
197
|
.drawer__content--left .drawer__dialog,
|
|
297
198
|
.drawer__content--right .drawer__dialog,
|
|
@@ -300,7 +201,7 @@
|
|
|
300
201
|
translate: 0 0;
|
|
301
202
|
}
|
|
302
203
|
|
|
303
|
-
/* Entering/exiting slide transforms
|
|
204
|
+
/* Entering/exiting slide transforms */
|
|
304
205
|
.drawer__content--left[data-entering="true"] .drawer__dialog,
|
|
305
206
|
.drawer__content--left[data-exiting="true"] .drawer__dialog {
|
|
306
207
|
translate: -100% 0;
|
|
@@ -384,7 +285,6 @@
|
|
|
384
285
|
padding-bottom: 0.5rem;
|
|
385
286
|
}
|
|
386
287
|
|
|
387
|
-
.drawer__handle-bar,
|
|
388
288
|
.drawer__handle > [data-slot="drawer-handle-bar"] {
|
|
389
289
|
height: 0.25rem;
|
|
390
290
|
width: 2.25rem;
|
|
@@ -1,39 +1,25 @@
|
|
|
1
1
|
import "./Drawer.css";
|
|
2
2
|
import { type Component, type JSX, type ParentComponent } from "solid-js";
|
|
3
3
|
import type { IComponentBaseProps } from "../types";
|
|
4
|
-
|
|
5
|
-
export type
|
|
6
|
-
export type DrawerRootProps =
|
|
4
|
+
export type DrawerPlacement = "top" | "bottom" | "left" | "right";
|
|
5
|
+
export type DrawerBackdropVariant = "opaque" | "blur" | "transparent";
|
|
6
|
+
export type DrawerRootProps = IComponentBaseProps & {
|
|
7
7
|
children: JSX.Element;
|
|
8
8
|
isOpen?: boolean;
|
|
9
9
|
defaultOpen?: boolean;
|
|
10
10
|
onOpenChange?: (isOpen: boolean) => void;
|
|
11
|
-
placement?: DrawerPlacement;
|
|
12
|
-
size?: DrawerSize;
|
|
13
|
-
backdrop?: DrawerBackdropVariant;
|
|
14
|
-
scrollBehavior?: DrawerScrollBehavior;
|
|
15
|
-
isDismissable?: boolean;
|
|
16
|
-
shouldCloseOnEsc?: boolean;
|
|
17
|
-
shouldCloseOnBackdropClick?: boolean;
|
|
18
|
-
trapFocus?: boolean;
|
|
19
|
-
restoreFocus?: boolean;
|
|
20
11
|
};
|
|
21
|
-
export type DrawerTriggerProps = Omit<JSX.
|
|
12
|
+
export type DrawerTriggerProps = Omit<JSX.HTMLAttributes<HTMLButtonElement>, "children"> & IComponentBaseProps & {
|
|
22
13
|
children: JSX.Element;
|
|
23
14
|
};
|
|
24
15
|
export type DrawerBackdropProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
25
16
|
children: JSX.Element;
|
|
26
17
|
variant?: DrawerBackdropVariant;
|
|
27
|
-
/** @deprecated Configure dismissability at Drawer.Root `isDismissable` */
|
|
28
18
|
isDismissable?: boolean;
|
|
29
|
-
/** @deprecated Configure backdrop closing at Drawer.Root `shouldCloseOnBackdropClick` */
|
|
30
|
-
shouldCloseOnBackdropClick?: boolean;
|
|
31
19
|
};
|
|
32
20
|
export type DrawerContentProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
33
21
|
children: JSX.Element;
|
|
34
|
-
/** @deprecated Configure placement at Drawer.Root `placement` */
|
|
35
22
|
placement?: DrawerPlacement;
|
|
36
|
-
scrollBehavior?: DrawerScrollBehavior;
|
|
37
23
|
};
|
|
38
24
|
export type DrawerDialogSide = "left" | "right";
|
|
39
25
|
export type DrawerDialogProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
@@ -45,35 +31,29 @@ export type DrawerDialogProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "childr
|
|
|
45
31
|
padding?: string;
|
|
46
32
|
borderWidth?: string;
|
|
47
33
|
borderColor?: string;
|
|
48
|
-
size?: DrawerSize;
|
|
49
34
|
};
|
|
50
35
|
export type DrawerHeaderProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
51
36
|
children: JSX.Element;
|
|
52
37
|
};
|
|
53
38
|
export type DrawerHeadingProps = Omit<JSX.HTMLAttributes<HTMLHeadingElement>, "children"> & IComponentBaseProps & {
|
|
54
39
|
children: JSX.Element;
|
|
55
|
-
id?: string;
|
|
56
40
|
};
|
|
57
41
|
export type DrawerBodyProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
58
42
|
children: JSX.Element;
|
|
59
|
-
id?: string;
|
|
60
43
|
};
|
|
61
44
|
export type DrawerFooterProps = Omit<JSX.HTMLAttributes<HTMLDivElement>, "children"> & IComponentBaseProps & {
|
|
62
45
|
children: JSX.Element;
|
|
63
46
|
};
|
|
64
47
|
export type DrawerHandleProps = JSX.HTMLAttributes<HTMLDivElement> & IComponentBaseProps;
|
|
65
|
-
export type DrawerCloseTriggerProps = Omit<JSX.
|
|
48
|
+
export type DrawerCloseTriggerProps = Omit<JSX.HTMLAttributes<HTMLButtonElement>, "children"> & IComponentBaseProps & {
|
|
66
49
|
children?: JSX.Element;
|
|
67
50
|
startIcon?: JSX.Element;
|
|
68
51
|
endIcon?: JSX.Element;
|
|
69
52
|
};
|
|
70
|
-
export type DrawerCloseProps = {
|
|
71
|
-
children: JSX.Element;
|
|
72
|
-
};
|
|
73
53
|
declare const DrawerRoot: ParentComponent<DrawerRootProps>;
|
|
74
54
|
declare const DrawerTrigger: Component<DrawerTriggerProps>;
|
|
75
|
-
declare const DrawerContent: ParentComponent<DrawerContentProps>;
|
|
76
55
|
declare const DrawerBackdrop: ParentComponent<DrawerBackdropProps>;
|
|
56
|
+
declare const DrawerContent: ParentComponent<DrawerContentProps>;
|
|
77
57
|
declare const DrawerDialog: ParentComponent<DrawerDialogProps>;
|
|
78
58
|
declare const DrawerHeader: ParentComponent<DrawerHeaderProps>;
|
|
79
59
|
declare const DrawerHeading: ParentComponent<DrawerHeadingProps>;
|
|
@@ -81,6 +61,9 @@ declare const DrawerBody: ParentComponent<DrawerBodyProps>;
|
|
|
81
61
|
declare const DrawerFooter: ParentComponent<DrawerFooterProps>;
|
|
82
62
|
declare const DrawerHandle: Component<DrawerHandleProps>;
|
|
83
63
|
declare const DrawerCloseTrigger: Component<DrawerCloseTriggerProps>;
|
|
64
|
+
export type DrawerCloseProps = {
|
|
65
|
+
children: JSX.Element;
|
|
66
|
+
};
|
|
84
67
|
declare const DrawerClose: ParentComponent<DrawerCloseProps>;
|
|
85
68
|
declare const Drawer: ParentComponent<DrawerRootProps> & {
|
|
86
69
|
Root: ParentComponent<DrawerRootProps>;
|