@lobehub/ui 5.40.3 → 5.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/base-ui/DraggablePanel/DraggablePanel.d.mts +6 -0
- package/es/base-ui/DraggablePanel/DraggablePanel.mjs +68 -0
- package/es/base-ui/DraggablePanel/DraggablePanel.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/atoms.d.mts +47 -0
- package/es/base-ui/DraggablePanel/atoms.mjs +333 -0
- package/es/base-ui/DraggablePanel/atoms.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/context.d.mts +17 -0
- package/es/base-ui/DraggablePanel/context.mjs +13 -0
- package/es/base-ui/DraggablePanel/context.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/axes.d.mts +16 -0
- package/es/base-ui/DraggablePanel/core/axes.mjs +51 -0
- package/es/base-ui/DraggablePanel/core/axes.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/controller.d.mts +56 -0
- package/es/base-ui/DraggablePanel/core/controller.mjs +206 -0
- package/es/base-ui/DraggablePanel/core/controller.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/dom.mjs +34 -0
- package/es/base-ui/DraggablePanel/core/dom.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/env.mjs +28 -0
- package/es/base-ui/DraggablePanel/core/env.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/internal.mjs +9 -0
- package/es/base-ui/DraggablePanel/core/internal.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/transition.mjs +17 -0
- package/es/base-ui/DraggablePanel/core/transition.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/core/utils.mjs +20 -0
- package/es/base-ui/DraggablePanel/core/utils.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/index.d.mts +5 -0
- package/es/base-ui/DraggablePanel/style.mjs +356 -0
- package/es/base-ui/DraggablePanel/style.mjs.map +1 -0
- package/es/base-ui/DraggablePanel/type.d.mts +53 -0
- package/es/base-ui/Input/style.d.mts +1 -1
- package/es/base-ui/index.d.mts +6 -1
- package/es/base-ui/index.mjs +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
import { createStaticStyles, cx } from "antd-style";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
//#region src/base-ui/DraggablePanel/style.ts
|
|
4
|
+
const TOGGLE_HIT_SHORT = 26;
|
|
5
|
+
const TOGGLE_HIT_LONG = 34;
|
|
6
|
+
const BOW = {
|
|
7
|
+
bulge: 10,
|
|
8
|
+
curve: .44,
|
|
9
|
+
gap: 45,
|
|
10
|
+
half: 46,
|
|
11
|
+
stroke: 1.25
|
|
12
|
+
};
|
|
13
|
+
const prefix = "base-draggable-panel";
|
|
14
|
+
const styles = createStaticStyles(({ css, cssVar }) => {
|
|
15
|
+
const float = css`
|
|
16
|
+
position: absolute;
|
|
17
|
+
z-index: 200;
|
|
18
|
+
`;
|
|
19
|
+
const toggleRoot = cx(`${prefix}-toggle`, css`
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: 110;
|
|
24
|
+
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
|
|
29
|
+
> button {
|
|
30
|
+
pointer-events: all;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
|
|
33
|
+
position: relative;
|
|
34
|
+
|
|
35
|
+
width: ${TOGGLE_HIT_SHORT}px;
|
|
36
|
+
height: ${TOGGLE_HIT_LONG}px;
|
|
37
|
+
padding: 0;
|
|
38
|
+
border: none;
|
|
39
|
+
|
|
40
|
+
color: ${cssVar.colorTextTertiary};
|
|
41
|
+
|
|
42
|
+
background: none;
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
color: ${cssVar.colorText};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:focus-visible {
|
|
49
|
+
outline: 2px solid ${cssVar.colorPrimary};
|
|
50
|
+
outline-offset: 3px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
svg {
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
|
|
57
|
+
position: absolute;
|
|
58
|
+
inset-block-start: 50%;
|
|
59
|
+
inset-inline-start: 50%;
|
|
60
|
+
transform: translate(-50%, -50%) scaleX(0.45);
|
|
61
|
+
|
|
62
|
+
overflow: visible;
|
|
63
|
+
|
|
64
|
+
opacity: 0;
|
|
65
|
+
|
|
66
|
+
transition:
|
|
67
|
+
opacity 0.18s ${cssVar.motionEaseOut},
|
|
68
|
+
transform 0.24s ${cssVar.motionEaseOut};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
path {
|
|
72
|
+
transition: stroke 0.16s ${cssVar.motionEaseOut};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* The bow is the seam bending, so it carries the seam's color, not the chevron's. */
|
|
76
|
+
path[data-bow] {
|
|
77
|
+
stroke: ${cssVar.colorBorderSecondary};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
button:hover path[data-bow] {
|
|
81
|
+
stroke: ${cssVar.colorBorder};
|
|
82
|
+
}
|
|
83
|
+
`);
|
|
84
|
+
return {
|
|
85
|
+
body: css`
|
|
86
|
+
overflow: hidden auto;
|
|
87
|
+
padding: 16px;
|
|
88
|
+
`,
|
|
89
|
+
bottomFloat: cx(float, css`
|
|
90
|
+
inset-block-end: 0;
|
|
91
|
+
inset-inline: 0;
|
|
92
|
+
width: 100%;
|
|
93
|
+
`),
|
|
94
|
+
container: css`
|
|
95
|
+
position: relative;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
`,
|
|
100
|
+
content: cx(`${prefix}-content`, css`
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
flex-shrink: 0;
|
|
104
|
+
|
|
105
|
+
min-width: 0;
|
|
106
|
+
min-height: 0;
|
|
107
|
+
|
|
108
|
+
background: var(--draggable-panel-bg, ${cssVar.colorBgLayout});
|
|
109
|
+
`),
|
|
110
|
+
fixed: css`
|
|
111
|
+
position: relative;
|
|
112
|
+
`,
|
|
113
|
+
footer: css`
|
|
114
|
+
display: flex;
|
|
115
|
+
flex: none;
|
|
116
|
+
gap: 8px;
|
|
117
|
+
align-items: center;
|
|
118
|
+
|
|
119
|
+
padding-block: 8px;
|
|
120
|
+
padding-inline: 16px;
|
|
121
|
+
border-block-start: 1px solid ${cssVar.colorBorderSecondary};
|
|
122
|
+
`,
|
|
123
|
+
handle: cx(`${prefix}-handle`, css`
|
|
124
|
+
touch-action: none;
|
|
125
|
+
position: absolute;
|
|
126
|
+
z-index: 100;
|
|
127
|
+
|
|
128
|
+
&::before,
|
|
129
|
+
&::after {
|
|
130
|
+
content: '';
|
|
131
|
+
position: absolute;
|
|
132
|
+
background: ${cssVar.colorBorderSecondary};
|
|
133
|
+
transition:
|
|
134
|
+
width 0.25s ${cssVar.motionEaseOut},
|
|
135
|
+
height 0.25s ${cssVar.motionEaseOut},
|
|
136
|
+
background 0.16s ${cssVar.motionEaseOut};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:hover::before,
|
|
140
|
+
&:hover::after {
|
|
141
|
+
background: ${cssVar.colorFill};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&[data-resizing]::before,
|
|
145
|
+
&[data-resizing]::after {
|
|
146
|
+
background: ${cssVar.colorPrimary};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&[data-border='false']::before,
|
|
150
|
+
&[data-border='false']::after {
|
|
151
|
+
background: transparent;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:focus-visible {
|
|
155
|
+
outline: 2px solid ${cssVar.colorPrimary};
|
|
156
|
+
outline-offset: -2px;
|
|
157
|
+
}
|
|
158
|
+
`),
|
|
159
|
+
handleHorizontal: css`
|
|
160
|
+
cursor: row-resize;
|
|
161
|
+
inset-inline: 0;
|
|
162
|
+
height: var(--draggable-panel-handle-size);
|
|
163
|
+
|
|
164
|
+
&::before,
|
|
165
|
+
&::after {
|
|
166
|
+
inset-block-start: 50%;
|
|
167
|
+
height: 1px;
|
|
168
|
+
margin-block-start: -0.5px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&::before {
|
|
172
|
+
inset-inline-start: 0;
|
|
173
|
+
width: calc(50% - var(--draggable-panel-gap, 0px));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&::after {
|
|
177
|
+
inset-inline-end: 0;
|
|
178
|
+
width: calc(50% - var(--draggable-panel-gap, 0px));
|
|
179
|
+
}
|
|
180
|
+
`,
|
|
181
|
+
handleVertical: css`
|
|
182
|
+
cursor: col-resize;
|
|
183
|
+
inset-block: 0;
|
|
184
|
+
width: var(--draggable-panel-handle-size);
|
|
185
|
+
|
|
186
|
+
&::before,
|
|
187
|
+
&::after {
|
|
188
|
+
inset-inline-start: 50%;
|
|
189
|
+
width: 1px;
|
|
190
|
+
margin-inline-start: -0.5px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&::before {
|
|
194
|
+
inset-block-start: 0;
|
|
195
|
+
height: calc(50% - var(--draggable-panel-gap, 0px));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&::after {
|
|
199
|
+
inset-block-end: 0;
|
|
200
|
+
height: calc(50% - var(--draggable-panel-gap, 0px));
|
|
201
|
+
}
|
|
202
|
+
`,
|
|
203
|
+
header: css`
|
|
204
|
+
display: flex;
|
|
205
|
+
flex: none;
|
|
206
|
+
gap: 8px;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: space-between;
|
|
209
|
+
|
|
210
|
+
padding-block: 8px;
|
|
211
|
+
padding-inline: 16px;
|
|
212
|
+
border-block-end: 1px solid ${cssVar.colorBorderSecondary};
|
|
213
|
+
|
|
214
|
+
font-weight: 500;
|
|
215
|
+
`,
|
|
216
|
+
leftFloat: cx(float, css`
|
|
217
|
+
inset-block: 0;
|
|
218
|
+
inset-inline-start: 0;
|
|
219
|
+
height: 100%;
|
|
220
|
+
`),
|
|
221
|
+
rightFloat: cx(float, css`
|
|
222
|
+
inset-block: 0;
|
|
223
|
+
inset-inline-end: 0;
|
|
224
|
+
height: 100%;
|
|
225
|
+
`),
|
|
226
|
+
root: cx(prefix, css`
|
|
227
|
+
--draggable-panel-gap: 0px;
|
|
228
|
+
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-shrink: 0;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
min-height: 0;
|
|
233
|
+
|
|
234
|
+
&[data-expandable='true']:hover,
|
|
235
|
+
&[data-expandable='true']:focus-within,
|
|
236
|
+
&[data-expandable='true'][data-expand='false'] {
|
|
237
|
+
--draggable-panel-gap: ${BOW.gap}px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* The wrapper carries an inline opacity when collapsed, so beat it. */
|
|
241
|
+
&[data-expandable='true']:hover
|
|
242
|
+
.${prefix}-toggle,
|
|
243
|
+
&[data-expandable='true']:focus-within
|
|
244
|
+
.${prefix}-toggle {
|
|
245
|
+
opacity: 1 !important;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&[data-expandable='true']:hover .${prefix}-toggle svg,
|
|
249
|
+
&[data-expandable='true']:focus-within .${prefix}-toggle svg,
|
|
250
|
+
&[data-expandable='true'][data-expand='false'] .${prefix}-toggle svg {
|
|
251
|
+
transform: translate(-50%, -50%) scaleX(1);
|
|
252
|
+
opacity: 1;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&[data-expandable='true'][data-resizing='true'] {
|
|
256
|
+
--draggable-panel-gap: 0px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&[data-expandable='true'][data-resizing='true'] .${prefix}-toggle svg {
|
|
260
|
+
opacity: 0;
|
|
261
|
+
}
|
|
262
|
+
`),
|
|
263
|
+
toggleBottom: cx(`${prefix}-toggle-bottom`, css`
|
|
264
|
+
inset-block-end: -${TOGGLE_HIT_SHORT / 2}px;
|
|
265
|
+
inset-inline: 0;
|
|
266
|
+
height: ${TOGGLE_HIT_SHORT}px;
|
|
267
|
+
|
|
268
|
+
> button {
|
|
269
|
+
width: ${TOGGLE_HIT_LONG}px;
|
|
270
|
+
height: ${TOGGLE_HIT_SHORT}px;
|
|
271
|
+
}
|
|
272
|
+
`),
|
|
273
|
+
toggleLeft: cx(`${prefix}-toggle-left`, css`
|
|
274
|
+
inset-block: 0;
|
|
275
|
+
inset-inline-start: -${TOGGLE_HIT_SHORT / 2}px;
|
|
276
|
+
width: ${TOGGLE_HIT_SHORT}px;
|
|
277
|
+
`),
|
|
278
|
+
toggleRight: cx(`${prefix}-toggle-right`, css`
|
|
279
|
+
inset-block: 0;
|
|
280
|
+
inset-inline-end: -${TOGGLE_HIT_SHORT / 2}px;
|
|
281
|
+
width: ${TOGGLE_HIT_SHORT}px;
|
|
282
|
+
`),
|
|
283
|
+
toggleRoot,
|
|
284
|
+
toggleTop: cx(`${prefix}-toggle-top`, css`
|
|
285
|
+
inset-block-start: -${TOGGLE_HIT_SHORT / 2}px;
|
|
286
|
+
inset-inline: 0;
|
|
287
|
+
height: ${TOGGLE_HIT_SHORT}px;
|
|
288
|
+
|
|
289
|
+
> button {
|
|
290
|
+
width: ${TOGGLE_HIT_LONG}px;
|
|
291
|
+
height: ${TOGGLE_HIT_SHORT}px;
|
|
292
|
+
}
|
|
293
|
+
`),
|
|
294
|
+
topFloat: cx(float, css`
|
|
295
|
+
inset-block-start: 0;
|
|
296
|
+
inset-inline: 0;
|
|
297
|
+
width: 100%;
|
|
298
|
+
`)
|
|
299
|
+
};
|
|
300
|
+
});
|
|
301
|
+
const rootVariants = cva(styles.root, {
|
|
302
|
+
compoundVariants: [
|
|
303
|
+
{
|
|
304
|
+
class: styles.leftFloat,
|
|
305
|
+
mode: "float",
|
|
306
|
+
placement: "left"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
class: styles.rightFloat,
|
|
310
|
+
mode: "float",
|
|
311
|
+
placement: "right"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
class: styles.topFloat,
|
|
315
|
+
mode: "float",
|
|
316
|
+
placement: "top"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
class: styles.bottomFloat,
|
|
320
|
+
mode: "float",
|
|
321
|
+
placement: "bottom"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
defaultVariants: {
|
|
325
|
+
mode: "fixed",
|
|
326
|
+
placement: "right"
|
|
327
|
+
},
|
|
328
|
+
variants: {
|
|
329
|
+
mode: {
|
|
330
|
+
fixed: styles.fixed,
|
|
331
|
+
float: null
|
|
332
|
+
},
|
|
333
|
+
placement: {
|
|
334
|
+
bottom: null,
|
|
335
|
+
left: null,
|
|
336
|
+
right: null,
|
|
337
|
+
top: null
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
const handleVariants = cva(styles.handle, { variants: { edge: {
|
|
342
|
+
bottom: styles.handleHorizontal,
|
|
343
|
+
left: styles.handleVertical,
|
|
344
|
+
right: styles.handleVertical,
|
|
345
|
+
top: styles.handleHorizontal
|
|
346
|
+
} } });
|
|
347
|
+
const toggleVariants = cva(styles.toggleRoot, { variants: { placement: {
|
|
348
|
+
bottom: styles.toggleTop,
|
|
349
|
+
left: styles.toggleRight,
|
|
350
|
+
right: styles.toggleLeft,
|
|
351
|
+
top: styles.toggleBottom
|
|
352
|
+
} } });
|
|
353
|
+
//#endregion
|
|
354
|
+
export { BOW, handleVariants, rootVariants, styles, toggleVariants };
|
|
355
|
+
|
|
356
|
+
//# sourceMappingURL=style.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.mjs","names":[],"sources":["../../../src/base-ui/DraggablePanel/style.ts"],"sourcesContent":["import { createStaticStyles, cx } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nconst TOGGLE_HIT_SHORT = 26;\nconst TOGGLE_HIT_LONG = 34;\n\nexport const BOW = {\n bulge: 10,\n curve: 0.44,\n gap: 45,\n half: 46,\n stroke: 1.25,\n};\n\nconst prefix = 'base-draggable-panel';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n const float = css`\n position: absolute;\n z-index: 200;\n `;\n\n const toggleRoot = cx(\n `${prefix}-toggle`,\n css`\n pointer-events: none;\n\n position: absolute;\n z-index: 110;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n > button {\n pointer-events: all;\n cursor: pointer;\n\n position: relative;\n\n width: ${TOGGLE_HIT_SHORT}px;\n height: ${TOGGLE_HIT_LONG}px;\n padding: 0;\n border: none;\n\n color: ${cssVar.colorTextTertiary};\n\n background: none;\n\n &:hover {\n color: ${cssVar.colorText};\n }\n\n &:focus-visible {\n outline: 2px solid ${cssVar.colorPrimary};\n outline-offset: 3px;\n }\n }\n\n svg {\n pointer-events: none;\n\n position: absolute;\n inset-block-start: 50%;\n inset-inline-start: 50%;\n transform: translate(-50%, -50%) scaleX(0.45);\n\n overflow: visible;\n\n opacity: 0;\n\n transition:\n opacity 0.18s ${cssVar.motionEaseOut},\n transform 0.24s ${cssVar.motionEaseOut};\n }\n\n path {\n transition: stroke 0.16s ${cssVar.motionEaseOut};\n }\n\n /* The bow is the seam bending, so it carries the seam's color, not the chevron's. */\n path[data-bow] {\n stroke: ${cssVar.colorBorderSecondary};\n }\n\n button:hover path[data-bow] {\n stroke: ${cssVar.colorBorder};\n }\n `,\n );\n\n return {\n body: css`\n overflow: hidden auto;\n padding: 16px;\n `,\n bottomFloat: cx(\n float,\n css`\n inset-block-end: 0;\n inset-inline: 0;\n width: 100%;\n `,\n ),\n container: css`\n position: relative;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n `,\n content: cx(\n `${prefix}-content`,\n css`\n display: flex;\n flex-direction: column;\n flex-shrink: 0;\n\n min-width: 0;\n min-height: 0;\n\n background: var(--draggable-panel-bg, ${cssVar.colorBgLayout});\n `,\n ),\n fixed: css`\n position: relative;\n `,\n footer: css`\n display: flex;\n flex: none;\n gap: 8px;\n align-items: center;\n\n padding-block: 8px;\n padding-inline: 16px;\n border-block-start: 1px solid ${cssVar.colorBorderSecondary};\n `,\n handle: cx(\n `${prefix}-handle`,\n css`\n touch-action: none;\n position: absolute;\n z-index: 100;\n\n &::before,\n &::after {\n content: '';\n position: absolute;\n background: ${cssVar.colorBorderSecondary};\n transition:\n width 0.25s ${cssVar.motionEaseOut},\n height 0.25s ${cssVar.motionEaseOut},\n background 0.16s ${cssVar.motionEaseOut};\n }\n\n &:hover::before,\n &:hover::after {\n background: ${cssVar.colorFill};\n }\n\n &[data-resizing]::before,\n &[data-resizing]::after {\n background: ${cssVar.colorPrimary};\n }\n\n &[data-border='false']::before,\n &[data-border='false']::after {\n background: transparent;\n }\n\n &:focus-visible {\n outline: 2px solid ${cssVar.colorPrimary};\n outline-offset: -2px;\n }\n `,\n ),\n handleHorizontal: css`\n cursor: row-resize;\n inset-inline: 0;\n height: var(--draggable-panel-handle-size);\n\n &::before,\n &::after {\n inset-block-start: 50%;\n height: 1px;\n margin-block-start: -0.5px;\n }\n\n &::before {\n inset-inline-start: 0;\n width: calc(50% - var(--draggable-panel-gap, 0px));\n }\n\n &::after {\n inset-inline-end: 0;\n width: calc(50% - var(--draggable-panel-gap, 0px));\n }\n `,\n handleVertical: css`\n cursor: col-resize;\n inset-block: 0;\n width: var(--draggable-panel-handle-size);\n\n &::before,\n &::after {\n inset-inline-start: 50%;\n width: 1px;\n margin-inline-start: -0.5px;\n }\n\n &::before {\n inset-block-start: 0;\n height: calc(50% - var(--draggable-panel-gap, 0px));\n }\n\n &::after {\n inset-block-end: 0;\n height: calc(50% - var(--draggable-panel-gap, 0px));\n }\n `,\n header: css`\n display: flex;\n flex: none;\n gap: 8px;\n align-items: center;\n justify-content: space-between;\n\n padding-block: 8px;\n padding-inline: 16px;\n border-block-end: 1px solid ${cssVar.colorBorderSecondary};\n\n font-weight: 500;\n `,\n leftFloat: cx(\n float,\n css`\n inset-block: 0;\n inset-inline-start: 0;\n height: 100%;\n `,\n ),\n rightFloat: cx(\n float,\n css`\n inset-block: 0;\n inset-inline-end: 0;\n height: 100%;\n `,\n ),\n root: cx(\n prefix,\n css`\n --draggable-panel-gap: 0px;\n\n display: flex;\n flex-shrink: 0;\n min-width: 0;\n min-height: 0;\n\n &[data-expandable='true']:hover,\n &[data-expandable='true']:focus-within,\n &[data-expandable='true'][data-expand='false'] {\n --draggable-panel-gap: ${BOW.gap}px;\n }\n\n /* The wrapper carries an inline opacity when collapsed, so beat it. */\n &[data-expandable='true']:hover\n .${prefix}-toggle,\n &[data-expandable='true']:focus-within\n .${prefix}-toggle {\n opacity: 1 !important;\n }\n\n &[data-expandable='true']:hover .${prefix}-toggle svg,\n &[data-expandable='true']:focus-within .${prefix}-toggle svg,\n &[data-expandable='true'][data-expand='false'] .${prefix}-toggle svg {\n transform: translate(-50%, -50%) scaleX(1);\n opacity: 1;\n }\n\n &[data-expandable='true'][data-resizing='true'] {\n --draggable-panel-gap: 0px;\n }\n\n &[data-expandable='true'][data-resizing='true'] .${prefix}-toggle svg {\n opacity: 0;\n }\n `,\n ),\n toggleBottom: cx(\n `${prefix}-toggle-bottom`,\n css`\n inset-block-end: -${TOGGLE_HIT_SHORT / 2}px;\n inset-inline: 0;\n height: ${TOGGLE_HIT_SHORT}px;\n\n > button {\n width: ${TOGGLE_HIT_LONG}px;\n height: ${TOGGLE_HIT_SHORT}px;\n }\n `,\n ),\n toggleLeft: cx(\n `${prefix}-toggle-left`,\n css`\n inset-block: 0;\n inset-inline-start: -${TOGGLE_HIT_SHORT / 2}px;\n width: ${TOGGLE_HIT_SHORT}px;\n `,\n ),\n toggleRight: cx(\n `${prefix}-toggle-right`,\n css`\n inset-block: 0;\n inset-inline-end: -${TOGGLE_HIT_SHORT / 2}px;\n width: ${TOGGLE_HIT_SHORT}px;\n `,\n ),\n toggleRoot,\n toggleTop: cx(\n `${prefix}-toggle-top`,\n css`\n inset-block-start: -${TOGGLE_HIT_SHORT / 2}px;\n inset-inline: 0;\n height: ${TOGGLE_HIT_SHORT}px;\n\n > button {\n width: ${TOGGLE_HIT_LONG}px;\n height: ${TOGGLE_HIT_SHORT}px;\n }\n `,\n ),\n\n topFloat: cx(\n float,\n css`\n inset-block-start: 0;\n inset-inline: 0;\n width: 100%;\n `,\n ),\n };\n});\n\nexport const rootVariants = cva(styles.root, {\n compoundVariants: [\n { class: styles.leftFloat, mode: 'float', placement: 'left' },\n { class: styles.rightFloat, mode: 'float', placement: 'right' },\n { class: styles.topFloat, mode: 'float', placement: 'top' },\n { class: styles.bottomFloat, mode: 'float', placement: 'bottom' },\n ],\n defaultVariants: { mode: 'fixed', placement: 'right' },\n variants: {\n mode: { fixed: styles.fixed, float: null },\n placement: { bottom: null, left: null, right: null, top: null },\n },\n});\n\nexport const handleVariants = cva(styles.handle, {\n variants: {\n edge: {\n bottom: styles.handleHorizontal,\n left: styles.handleVertical,\n right: styles.handleVertical,\n top: styles.handleHorizontal,\n },\n },\n});\n\nexport const toggleVariants = cva(styles.toggleRoot, {\n variants: {\n placement: {\n bottom: styles.toggleTop,\n left: styles.toggleRight,\n right: styles.toggleLeft,\n top: styles.toggleBottom,\n },\n },\n});\n"],"mappings":";;;AAGA,MAAM,mBAAmB;AACzB,MAAM,kBAAkB;AAExB,MAAa,MAAM;CACjB,OAAO;CACP,OAAO;CACP,KAAK;CACL,MAAM;CACN,QAAQ;AACV;AAEA,MAAM,SAAS;AAEf,MAAa,SAAS,oBAAoB,EAAE,KAAK,aAAa;CAC5D,MAAM,QAAQ,GAAG;;;;CAKjB,MAAM,aAAa,GACjB,GAAG,OAAO,UACV,GAAG;;;;;;;;;;;;;;;;iBAgBU,iBAAiB;kBAChB,gBAAgB;;;;iBAIjB,OAAO,kBAAkB;;;;;mBAKvB,OAAO,UAAU;;;;+BAIL,OAAO,aAAa;;;;;;;;;;;;;;;;;;0BAkBzB,OAAO,cAAc;4BACnB,OAAO,cAAc;;;;mCAId,OAAO,cAAc;;;;;kBAKtC,OAAO,qBAAqB;;;;kBAI5B,OAAO,YAAY;;KAGnC;CAEA,OAAO;EACL,MAAM,GAAG;;;;EAIT,aAAa,GACX,OACA,GAAG;;;;OAKL;EACA,WAAW,GAAG;;;;;;EAMd,SAAS,GACP,GAAG,OAAO,WACV,GAAG;;;;;;;;gDAQuC,OAAO,cAAc;OAEjE;EACA,OAAO,GAAG;;;EAGV,QAAQ,GAAG;;;;;;;;sCAQuB,OAAO,qBAAqB;;EAE9D,QAAQ,GACN,GAAG,OAAO,UACV,GAAG;;;;;;;;;wBASe,OAAO,qBAAqB;;0BAE1B,OAAO,cAAc;2BACpB,OAAO,cAAc;+BACjB,OAAO,cAAc;;;;;wBAK5B,OAAO,UAAU;;;;;wBAKjB,OAAO,aAAa;;;;;;;;;+BASb,OAAO,aAAa;;;OAI/C;EACA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;EAsBrB,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;EAsBnB,QAAQ,GAAG;;;;;;;;;oCASqB,OAAO,qBAAqB;;;;EAI5D,WAAW,GACT,OACA,GAAG;;;;OAKL;EACA,YAAY,GACV,OACA,GAAG;;;;OAKL;EACA,MAAM,GACJ,QACA,GAAG;;;;;;;;;;;mCAW0B,IAAI,IAAI;;;;;aAK9B,OAAO;;aAEP,OAAO;;;;2CAIuB,OAAO;kDACA,OAAO;0DACC,OAAO;;;;;;;;;2DASN,OAAO;;;OAI9D;EACA,cAAc,GACZ,GAAG,OAAO,iBACV,GAAG;4BACmB,mBAAmB,EAAE;;kBAE/B,iBAAiB;;;mBAGhB,gBAAgB;oBACf,iBAAiB;;OAGjC;EACA,YAAY,GACV,GAAG,OAAO,eACV,GAAG;;+BAEsB,mBAAmB,EAAE;iBACnC,iBAAiB;OAE9B;EACA,aAAa,GACX,GAAG,OAAO,gBACV,GAAG;;6BAEoB,mBAAmB,EAAE;iBACjC,iBAAiB;OAE9B;EACA;EACA,WAAW,GACT,GAAG,OAAO,cACV,GAAG;8BACqB,mBAAmB,EAAE;;kBAEjC,iBAAiB;;;mBAGhB,gBAAgB;oBACf,iBAAiB;;OAGjC;EAEA,UAAU,GACR,OACA,GAAG;;;;OAKL;CACF;AACF,CAAC;AAED,MAAa,eAAe,IAAI,OAAO,MAAM;CAC3C,kBAAkB;EAChB;GAAE,OAAO,OAAO;GAAW,MAAM;GAAS,WAAW;EAAO;EAC5D;GAAE,OAAO,OAAO;GAAY,MAAM;GAAS,WAAW;EAAQ;EAC9D;GAAE,OAAO,OAAO;GAAU,MAAM;GAAS,WAAW;EAAM;EAC1D;GAAE,OAAO,OAAO;GAAa,MAAM;GAAS,WAAW;EAAS;CAClE;CACA,iBAAiB;EAAE,MAAM;EAAS,WAAW;CAAQ;CACrD,UAAU;EACR,MAAM;GAAE,OAAO,OAAO;GAAO,OAAO;EAAK;EACzC,WAAW;GAAE,QAAQ;GAAM,MAAM;GAAM,OAAO;GAAM,KAAK;EAAK;CAChE;AACF,CAAC;AAED,MAAa,iBAAiB,IAAI,OAAO,QAAQ,EAC/C,UAAU,EACR,MAAM;CACJ,QAAQ,OAAO;CACf,MAAM,OAAO;CACb,OAAO,OAAO;CACd,KAAK,OAAO;AACd,EACF,EACF,CAAC;AAED,MAAa,iBAAiB,IAAI,OAAO,YAAY,EACnD,UAAU,EACR,WAAW;CACT,QAAQ,OAAO;CACf,MAAM,OAAO;CACb,OAAO,OAAO;CACd,KAAK,OAAO;AACd,EACF,EACF,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { DivProps } from "../../types/index.mjs";
|
|
2
|
+
import { Placement } from "./core/axes.mjs";
|
|
3
|
+
import { CSSProperties } from "react";
|
|
4
|
+
//#region src/base-ui/DraggablePanel/type.d.ts
|
|
5
|
+
type DraggablePanelPlacement = Placement;
|
|
6
|
+
interface DraggablePanelSize {
|
|
7
|
+
height?: number | string;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
}
|
|
10
|
+
interface DraggablePanelProps extends Omit<DivProps, 'onDrag'> {
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
classNames?: {
|
|
13
|
+
content?: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Preview a collapsed panel while resizing at or below this size, then commit
|
|
17
|
+
* the collapsed state on pointer release. Dragging back above the threshold
|
|
18
|
+
* before release restores the panel.
|
|
19
|
+
* Omit to disable drag-to-collapse behavior.
|
|
20
|
+
*/
|
|
21
|
+
collapseThreshold?: number;
|
|
22
|
+
defaultExpand?: boolean;
|
|
23
|
+
defaultSize?: DraggablePanelSize;
|
|
24
|
+
expand?: boolean;
|
|
25
|
+
expandable?: boolean;
|
|
26
|
+
maxHeight?: number;
|
|
27
|
+
maxWidth?: number;
|
|
28
|
+
minHeight?: number;
|
|
29
|
+
minWidth?: number;
|
|
30
|
+
mode?: 'fixed' | 'float';
|
|
31
|
+
onExpandChange?: (expand: boolean) => void;
|
|
32
|
+
onSizeChange?: (delta: DraggablePanelSize, size: DraggablePanelSize) => void;
|
|
33
|
+
onSizeDragging?: (delta: DraggablePanelSize, size: DraggablePanelSize) => void;
|
|
34
|
+
/**
|
|
35
|
+
* `placement` is resolved against the inline axis, so `left` means inline-start
|
|
36
|
+
* and flips with `dir="rtl"`.
|
|
37
|
+
*/
|
|
38
|
+
placement?: DraggablePanelPlacement;
|
|
39
|
+
showBorder?: boolean;
|
|
40
|
+
showHandleWhenCollapsed?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Widen the resize handle's hit area from 8px to 16px. A coarse pointer always
|
|
43
|
+
* gets 20px regardless.
|
|
44
|
+
*/
|
|
45
|
+
showHandleWideArea?: boolean;
|
|
46
|
+
size?: DraggablePanelSize;
|
|
47
|
+
styles?: {
|
|
48
|
+
content?: CSSProperties;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { DraggablePanelPlacement, DraggablePanelProps, DraggablePanelSize };
|
|
53
|
+
//# sourceMappingURL=type.d.mts.map
|
|
@@ -24,7 +24,7 @@ declare const styles: {
|
|
|
24
24
|
declare const rootVariants: (props?: ({
|
|
25
25
|
shadow?: boolean | null | undefined;
|
|
26
26
|
size?: "large" | "middle" | "small" | null | undefined;
|
|
27
|
-
variant?: "
|
|
27
|
+
variant?: "borderless" | "filled" | "outlined" | null | undefined;
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { rootVariants, styles };
|
package/es/base-ui/index.d.mts
CHANGED
|
@@ -69,6 +69,11 @@ import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
|
|
|
69
69
|
import { styles as styles$5 } from "./Checkbox/style.mjs";
|
|
70
70
|
import "./Checkbox/index.mjs";
|
|
71
71
|
import { ControlSize, controlHeight } from "./controlSize.mjs";
|
|
72
|
+
import { DraggablePanelBody, DraggablePanelBodyProps, DraggablePanelContainer, DraggablePanelContainerProps, DraggablePanelContent, DraggablePanelContentProps, DraggablePanelFooter, DraggablePanelFooterProps, DraggablePanelHandle, DraggablePanelHandleProps, DraggablePanelHeader, DraggablePanelHeaderProps, DraggablePanelRoot, DraggablePanelRootProps, DraggablePanelToggle, DraggablePanelToggleProps } from "./DraggablePanel/atoms.mjs";
|
|
73
|
+
import { useDraggablePanelContext } from "./DraggablePanel/context.mjs";
|
|
74
|
+
import { DraggablePanelPlacement, DraggablePanelProps, DraggablePanelSize } from "./DraggablePanel/type.mjs";
|
|
75
|
+
import DraggablePanel from "./DraggablePanel/DraggablePanel.mjs";
|
|
76
|
+
import "./DraggablePanel/index.mjs";
|
|
72
77
|
import { DrawerPlacement, DrawerProps, DrawerPush, DrawerSemanticNames, DrawerSemanticStyles } from "./Drawer/type.mjs";
|
|
73
78
|
import Drawer from "./Drawer/Drawer.mjs";
|
|
74
79
|
import { DrawerBackdrop, DrawerBackdropProps, DrawerClose, DrawerCloseProps, DrawerContent, DrawerContentProps, DrawerDescription, DrawerDescriptionProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerPopup, DrawerPopupProps, DrawerPortal, DrawerPortalProps, DrawerRoot, DrawerRootProps, DrawerTitle, DrawerTitleProps, DrawerTrigger, DrawerTriggerProps, useDrawerActions, useDrawerOpen } from "./Drawer/atoms.mjs";
|
|
@@ -143,4 +148,4 @@ import { styles as styles$12 } from "./ToggleGroup/style.mjs";
|
|
|
143
148
|
import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupItemProps, ToggleGroupRoot, ToggleGroupRootProps } from "./ToggleGroup/atoms.mjs";
|
|
144
149
|
import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
|
|
145
150
|
import "./ToggleGroup/index.mjs";
|
|
146
|
-
export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, ActionIcon, type ActionIconClassNames, type ActionIconOutdent, type ActionIconProps, type ActionIconSize, type ActionIconStyles, type ActionIconVariant, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, type BaseModalProps, Button, type ButtonIconPosition, type ButtonOutdent, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, type FloatingCollisionPadding, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type IconSpaceMode, type ImperativeModalProps, Input, type InputClassNames, InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Skeleton, type SkeletonAnimation, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, _default as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, getFloatingCollisionPadding, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, setFloatingCollisionPadding, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, groupStyles as textGroupStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
|
|
151
|
+
export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, ActionIcon, type ActionIconClassNames, type ActionIconOutdent, type ActionIconProps, type ActionIconSize, type ActionIconStyles, type ActionIconVariant, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, type BaseModalProps, Button, type ButtonIconPosition, type ButtonOutdent, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelContent, type DraggablePanelContentProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHandle, type DraggablePanelHandleProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelPlacement, type DraggablePanelProps, DraggablePanelRoot, type DraggablePanelRootProps, type DraggablePanelSize, DraggablePanelToggle, type DraggablePanelToggleProps, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, type FloatingCollisionPadding, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type IconSpaceMode, type ImperativeModalProps, Input, type InputClassNames, InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Skeleton, type SkeletonAnimation, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, _default as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, getFloatingCollisionPadding, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, setFloatingCollisionPadding, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, groupStyles as textGroupStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
|
package/es/base-ui/index.mjs
CHANGED
|
@@ -48,6 +48,9 @@ import Avatar from "./Avatar/index.mjs";
|
|
|
48
48
|
import { styles as styles$5 } from "./Checkbox/style.mjs";
|
|
49
49
|
import Checkbox from "./Checkbox/Checkbox.mjs";
|
|
50
50
|
import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
|
|
51
|
+
import { useDraggablePanelContext } from "./DraggablePanel/context.mjs";
|
|
52
|
+
import { DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle } from "./DraggablePanel/atoms.mjs";
|
|
53
|
+
import DraggablePanel from "./DraggablePanel/DraggablePanel.mjs";
|
|
51
54
|
import { drawerBackdropTransition, getDrawerMotionConfig } from "./Drawer/constants.mjs";
|
|
52
55
|
import { DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, useDrawerActions, useDrawerOpen } from "./Drawer/atoms.mjs";
|
|
53
56
|
import Drawer from "./Drawer/Drawer.mjs";
|
|
@@ -87,4 +90,4 @@ import Text from "./Text/Text.mjs";
|
|
|
87
90
|
import { styles as styles$12 } from "./ToggleGroup/style.mjs";
|
|
88
91
|
import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot } from "./ToggleGroup/atoms.mjs";
|
|
89
92
|
import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
|
|
90
|
-
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, ContextMenuHost, ContextMenuTrigger, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, getFloatingCollisionPadding, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, setFloatingCollisionPadding, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, groupStyles as textGroupStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
|
|
93
|
+
export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, ContextMenuHost, ContextMenuTrigger, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, getFloatingCollisionPadding, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, setFloatingCollisionPadding, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, groupStyles as textGroupStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
|