@ansh-ui/react 0.2.0 → 0.3.1
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/{chunk-C5JG6TMM.cjs → chunk-2U7BHYIQ.cjs} +143 -143
- package/dist/chunk-2U7BHYIQ.cjs.map +1 -0
- package/dist/{chunk-HO2YSF5O.js → chunk-742E5FQS.js} +3 -3
- package/dist/chunk-742E5FQS.js.map +1 -0
- package/dist/{chunk-QO3E7TJS.js → chunk-7QGB2X7R.js} +36 -28
- package/dist/chunk-7QGB2X7R.js.map +1 -0
- package/dist/{chunk-EGG4CP7C.js → chunk-BQJ6H3HC.js} +3 -2
- package/dist/chunk-BQJ6H3HC.js.map +1 -0
- package/dist/{chunk-OLTS6G5M.js → chunk-GNA33V2J.js} +11 -6
- package/dist/chunk-GNA33V2J.js.map +1 -0
- package/dist/{chunk-C32LKF23.cjs → chunk-KTLTYHAT.cjs} +3 -3
- package/dist/chunk-KTLTYHAT.cjs.map +1 -0
- package/dist/{chunk-AVPEA5PB.cjs → chunk-MPX7QT4R.cjs} +4 -4
- package/dist/chunk-MPX7QT4R.cjs.map +1 -0
- package/dist/{chunk-T4AK2KLM.js → chunk-NJUVVMJV.js} +3 -3
- package/dist/chunk-NJUVVMJV.js.map +1 -0
- package/dist/{chunk-IBXLC5IE.js → chunk-P5MRISBP.js} +19 -3
- package/dist/chunk-P5MRISBP.js.map +1 -0
- package/dist/{chunk-WGYNCSTP.cjs → chunk-PUW6BTPQ.cjs} +3 -2
- package/dist/chunk-PUW6BTPQ.cjs.map +1 -0
- package/dist/{chunk-LDCZQP3R.js → chunk-RGGNLAAA.js} +122 -122
- package/dist/chunk-RGGNLAAA.js.map +1 -0
- package/dist/{chunk-6VRF7X5C.cjs → chunk-TEPQGFR4.cjs} +19 -2
- package/dist/chunk-TEPQGFR4.cjs.map +1 -0
- package/dist/{chunk-OJN5JBNP.cjs → chunk-VJI6V27F.cjs} +99 -99
- package/dist/chunk-VJI6V27F.cjs.map +1 -0
- package/dist/{chunk-HPGCILO4.js → chunk-XRKZPLUT.js} +99 -99
- package/dist/chunk-XRKZPLUT.js.map +1 -0
- package/dist/{chunk-DATBU46V.cjs → chunk-XYT6OXKP.cjs} +10 -4
- package/dist/chunk-XYT6OXKP.cjs.map +1 -0
- package/dist/{chunk-RHTLNSVW.cjs → chunk-YVJB7AAZ.cjs} +39 -31
- package/dist/chunk-YVJB7AAZ.cjs.map +1 -0
- package/dist/data.cjs +16 -16
- package/dist/data.d.cts +25 -23
- package/dist/data.d.ts +25 -23
- package/dist/data.js +1 -1
- package/dist/form.cjs +37 -37
- package/dist/form.d.cts +4 -1
- package/dist/form.d.ts +4 -1
- package/dist/form.js +2 -2
- package/dist/index.cjs +666 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +220 -7
- package/dist/index.d.ts +220 -7
- package/dist/index.js +530 -14
- package/dist/index.js.map +1 -1
- package/dist/layout.cjs +13 -13
- package/dist/layout.d.cts +11 -2
- package/dist/layout.d.ts +11 -2
- package/dist/layout.js +1 -1
- package/dist/{motion-CQmCq6_k.d.ts → motion-C6WfBFES.d.cts} +23 -19
- package/dist/{motion-CSX4g2N8.d.cts → motion-ugXmf505.d.ts} +23 -19
- package/dist/motion.cjs +19 -19
- package/dist/motion.d.cts +2 -2
- package/dist/motion.d.ts +2 -2
- package/dist/motion.js +2 -2
- package/dist/navigation.cjs +8 -8
- package/dist/navigation.d.cts +3 -2
- package/dist/navigation.d.ts +3 -2
- package/dist/navigation.js +1 -1
- package/dist/overlay.cjs +16 -16
- package/dist/overlay.d.cts +17 -14
- package/dist/overlay.d.ts +17 -14
- package/dist/overlay.js +2 -2
- package/dist/{position-DVScKcaa.d.cts → position-CW6cGpSF.d.cts} +2 -1
- package/dist/{position-DVScKcaa.d.ts → position-CW6cGpSF.d.ts} +2 -1
- package/dist/primitives.cjs +25 -21
- package/dist/primitives.d.cts +5 -4
- package/dist/primitives.d.ts +5 -4
- package/dist/primitives.js +2 -2
- package/dist/{sidebar-D-PafAXw.d.cts → sidebar-Dyt67t2z.d.cts} +2 -1
- package/dist/{sidebar-D-PafAXw.d.ts → sidebar-Dyt67t2z.d.ts} +2 -1
- package/dist/styles.css +464 -0
- package/dist/{use-observers-B9qtimrk.d.cts → use-observers-DvA7hSz4.d.cts} +10 -1
- package/dist/{use-observers-B9qtimrk.d.ts → use-observers-DvA7hSz4.d.ts} +10 -1
- package/package.json +3 -3
- package/dist/chunk-6VRF7X5C.cjs.map +0 -1
- package/dist/chunk-AVPEA5PB.cjs.map +0 -1
- package/dist/chunk-C32LKF23.cjs.map +0 -1
- package/dist/chunk-C5JG6TMM.cjs.map +0 -1
- package/dist/chunk-DATBU46V.cjs.map +0 -1
- package/dist/chunk-EGG4CP7C.js.map +0 -1
- package/dist/chunk-HO2YSF5O.js.map +0 -1
- package/dist/chunk-HPGCILO4.js.map +0 -1
- package/dist/chunk-IBXLC5IE.js.map +0 -1
- package/dist/chunk-LDCZQP3R.js.map +0 -1
- package/dist/chunk-OJN5JBNP.cjs.map +0 -1
- package/dist/chunk-OLTS6G5M.js.map +0 -1
- package/dist/chunk-QO3E7TJS.js.map +0 -1
- package/dist/chunk-RHTLNSVW.cjs.map +0 -1
- package/dist/chunk-T4AK2KLM.js.map +0 -1
- package/dist/chunk-WGYNCSTP.cjs.map +0 -1
package/dist/overlay.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunk2U7BHYIQ_cjs = require('./chunk-2U7BHYIQ.cjs');
|
|
5
|
+
require('./chunk-KTLTYHAT.cjs');
|
|
6
6
|
require('./chunk-XMXECSQO.cjs');
|
|
7
7
|
require('./chunk-PO5DU3FU.cjs');
|
|
8
8
|
require('./chunk-SFU5EPSN.cjs');
|
|
@@ -11,59 +11,59 @@ require('./chunk-SFU5EPSN.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "AlertDialog", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2U7BHYIQ_cjs.AlertDialog; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CommandPalette", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2U7BHYIQ_cjs.CommandPalette; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ContextMenu", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2U7BHYIQ_cjs.ContextMenu; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "Dialog", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk2U7BHYIQ_cjs.Dialog; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "DialogFooter", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk2U7BHYIQ_cjs.DialogFooter; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "Drawer", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk2U7BHYIQ_cjs.Drawer; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk2U7BHYIQ_cjs.DropdownMenu; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "HoverCard", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk2U7BHYIQ_cjs.HoverCard; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "Popover", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk2U7BHYIQ_cjs.Popover; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "PopoverContent", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk2U7BHYIQ_cjs.PopoverContent; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "PopoverTrigger", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk2U7BHYIQ_cjs.PopoverTrigger; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "Tooltip", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk2U7BHYIQ_cjs.Tooltip; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "TooltipProvider", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2U7BHYIQ_cjs.TooltipProvider; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "useCommandShortcut", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk2U7BHYIQ_cjs.useCommandShortcut; }
|
|
67
67
|
});
|
|
68
68
|
//# sourceMappingURL=overlay.cjs.map
|
|
69
69
|
//# sourceMappingURL=overlay.cjs.map
|
package/dist/overlay.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Placement } from './index.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A command palette.
|
|
@@ -229,18 +229,6 @@ interface DrawerProps {
|
|
|
229
229
|
*/
|
|
230
230
|
declare function Drawer({ open, onOpenChange, side, title, description, size, footer, showClose, modal, dismissable, className, children, }: DrawerProps): react.JSX.Element | null;
|
|
231
231
|
|
|
232
|
-
/**
|
|
233
|
-
* Menus — dropdown and context.
|
|
234
|
-
*
|
|
235
|
-
* Data-driven (`items={[…]}`) rather than compound. Menus are almost always built from a
|
|
236
|
-
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
237
|
-
* expressing that as JSX children means `{canDelete && <MenuItem …/>}` scattered through the tree,
|
|
238
|
-
* which breaks keyboard navigation indices in ways that are painful to debug.
|
|
239
|
-
*
|
|
240
|
-
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
241
|
-
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
242
|
-
* it does in every desktop application.
|
|
243
|
-
*/
|
|
244
232
|
interface MenuItemBase {
|
|
245
233
|
id?: string;
|
|
246
234
|
disabled?: boolean;
|
|
@@ -284,6 +272,19 @@ type MenuEntry = MenuAction | MenuCheckbox | MenuRadioGroup | MenuSubmenu | {
|
|
|
284
272
|
type: 'label';
|
|
285
273
|
label: ReactNode;
|
|
286
274
|
};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Menus — dropdown and context.
|
|
278
|
+
*
|
|
279
|
+
* Data-driven (`items={[…]}`) rather than compound. Menus are almost always built from a
|
|
280
|
+
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
281
|
+
* expressing that as JSX children means `{canDelete && <MenuItem …/>}` scattered through the tree,
|
|
282
|
+
* which breaks keyboard navigation indices in ways that are painful to debug.
|
|
283
|
+
*
|
|
284
|
+
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
285
|
+
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
286
|
+
* it does in every desktop application.
|
|
287
|
+
*/
|
|
287
288
|
interface MenuProps {
|
|
288
289
|
items: readonly MenuEntry[];
|
|
289
290
|
placement?: Placement;
|
|
@@ -309,6 +310,7 @@ interface MenuProps {
|
|
|
309
310
|
* ```
|
|
310
311
|
*/
|
|
311
312
|
declare function DropdownMenu({ items, placement, label, className, children, open: controlledOpen, onOpenChange, }: MenuProps): react.JSX.Element;
|
|
313
|
+
|
|
312
314
|
interface ContextMenuProps {
|
|
313
315
|
items: readonly MenuEntry[];
|
|
314
316
|
label?: string;
|
|
@@ -327,4 +329,5 @@ interface ContextMenuProps {
|
|
|
327
329
|
*/
|
|
328
330
|
declare function ContextMenu({ items, label, className, children, }: ContextMenuProps): react.JSX.Element;
|
|
329
331
|
|
|
330
|
-
export { AlertDialog,
|
|
332
|
+
export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut };
|
|
333
|
+
export type { AlertDialogProps, CommandItem, CommandPaletteProps, ContextMenuProps, DialogProps, DialogSize, DrawerProps, DrawerSide, HoverCardProps, MenuAction, MenuCheckbox, MenuEntry, MenuProps, MenuRadioGroup, MenuSubmenu, PopoverContentProps, PopoverProps, PopoverTriggerProps, TooltipProps, TooltipProviderProps };
|
package/dist/overlay.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Placement } from './index.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A command palette.
|
|
@@ -229,18 +229,6 @@ interface DrawerProps {
|
|
|
229
229
|
*/
|
|
230
230
|
declare function Drawer({ open, onOpenChange, side, title, description, size, footer, showClose, modal, dismissable, className, children, }: DrawerProps): react.JSX.Element | null;
|
|
231
231
|
|
|
232
|
-
/**
|
|
233
|
-
* Menus — dropdown and context.
|
|
234
|
-
*
|
|
235
|
-
* Data-driven (`items={[…]}`) rather than compound. Menus are almost always built from a
|
|
236
|
-
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
237
|
-
* expressing that as JSX children means `{canDelete && <MenuItem …/>}` scattered through the tree,
|
|
238
|
-
* which breaks keyboard navigation indices in ways that are painful to debug.
|
|
239
|
-
*
|
|
240
|
-
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
241
|
-
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
242
|
-
* it does in every desktop application.
|
|
243
|
-
*/
|
|
244
232
|
interface MenuItemBase {
|
|
245
233
|
id?: string;
|
|
246
234
|
disabled?: boolean;
|
|
@@ -284,6 +272,19 @@ type MenuEntry = MenuAction | MenuCheckbox | MenuRadioGroup | MenuSubmenu | {
|
|
|
284
272
|
type: 'label';
|
|
285
273
|
label: ReactNode;
|
|
286
274
|
};
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Menus — dropdown and context.
|
|
278
|
+
*
|
|
279
|
+
* Data-driven (`items={[…]}`) rather than compound. Menus are almost always built from a
|
|
280
|
+
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
281
|
+
* expressing that as JSX children means `{canDelete && <MenuItem …/>}` scattered through the tree,
|
|
282
|
+
* which breaks keyboard navigation indices in ways that are painful to debug.
|
|
283
|
+
*
|
|
284
|
+
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
285
|
+
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
286
|
+
* it does in every desktop application.
|
|
287
|
+
*/
|
|
287
288
|
interface MenuProps {
|
|
288
289
|
items: readonly MenuEntry[];
|
|
289
290
|
placement?: Placement;
|
|
@@ -309,6 +310,7 @@ interface MenuProps {
|
|
|
309
310
|
* ```
|
|
310
311
|
*/
|
|
311
312
|
declare function DropdownMenu({ items, placement, label, className, children, open: controlledOpen, onOpenChange, }: MenuProps): react.JSX.Element;
|
|
313
|
+
|
|
312
314
|
interface ContextMenuProps {
|
|
313
315
|
items: readonly MenuEntry[];
|
|
314
316
|
label?: string;
|
|
@@ -327,4 +329,5 @@ interface ContextMenuProps {
|
|
|
327
329
|
*/
|
|
328
330
|
declare function ContextMenu({ items, label, className, children, }: ContextMenuProps): react.JSX.Element;
|
|
329
331
|
|
|
330
|
-
export { AlertDialog,
|
|
332
|
+
export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut };
|
|
333
|
+
export type { AlertDialogProps, CommandItem, CommandPaletteProps, ContextMenuProps, DialogProps, DialogSize, DrawerProps, DrawerSide, HoverCardProps, MenuAction, MenuCheckbox, MenuEntry, MenuProps, MenuRadioGroup, MenuSubmenu, PopoverContentProps, PopoverProps, PopoverTriggerProps, TooltipProps, TooltipProviderProps };
|
package/dist/overlay.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-RGGNLAAA.js';
|
|
3
|
+
import './chunk-742E5FQS.js';
|
|
4
4
|
import './chunk-XEP6P7E6.js';
|
|
5
5
|
import './chunk-LXCIXR5T.js';
|
|
6
6
|
import './chunk-H34OXXJU.js';
|
|
@@ -63,4 +63,5 @@ interface PositionResult {
|
|
|
63
63
|
*/
|
|
64
64
|
declare function computePosition(anchor: Rect, floating: Rect, viewport: Rect, options?: PositionOptions): PositionResult;
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { computePosition as c };
|
|
67
|
+
export type { Align as A, Placement as P, Rect as R, Side as S, PositionOptions as a, PositionResult as b };
|
|
@@ -63,4 +63,5 @@ interface PositionResult {
|
|
|
63
63
|
*/
|
|
64
64
|
declare function computePosition(anchor: Rect, floating: Rect, viewport: Rect, options?: PositionOptions): PositionResult;
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { computePosition as c };
|
|
67
|
+
export type { Align as A, Placement as P, Rect as R, Side as S, PositionOptions as a, PositionResult as b };
|
package/dist/primitives.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkOHBWBXLO_cjs = require('./chunk-OHBWBXLO.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkKTLTYHAT_cjs = require('./chunk-KTLTYHAT.cjs');
|
|
6
6
|
var chunkXMXECSQO_cjs = require('./chunk-XMXECSQO.cjs');
|
|
7
7
|
var chunkPO5DU3FU_cjs = require('./chunk-PO5DU3FU.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkTEPQGFR4_cjs = require('./chunk-TEPQGFR4.cjs');
|
|
9
9
|
var chunkSFU5EPSN_cjs = require('./chunk-SFU5EPSN.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -36,43 +36,43 @@ Object.defineProperty(exports, "useSpringValue", {
|
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "Presence", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkKTLTYHAT_cjs.Presence; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "Slot", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkKTLTYHAT_cjs.Slot; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "countElements", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkKTLTYHAT_cjs.countElements; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "getTabbable", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkKTLTYHAT_cjs.getTabbable; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "slotted", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkKTLTYHAT_cjs.slotted; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "useAutoFocus", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkKTLTYHAT_cjs.useAutoFocus; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "useFocusRestore", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkKTLTYHAT_cjs.useFocusRestore; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "useFocusTrap", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkKTLTYHAT_cjs.useFocusTrap; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "usePresence", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkKTLTYHAT_cjs.usePresence; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "useRovingFocus", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkKTLTYHAT_cjs.useRovingFocus; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "Portal", {
|
|
78
78
|
enumerable: true,
|
|
@@ -104,39 +104,43 @@ Object.defineProperty(exports, "useControllableState", {
|
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "useElementSize", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkTEPQGFR4_cjs.useElementSize; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "useFrameBudget", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkTEPQGFR4_cjs.useFrameBudget; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "useInView", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkTEPQGFR4_cjs.useInView; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "useMergedRef", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkTEPQGFR4_cjs.useMergedRef; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "usePointer", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkTEPQGFR4_cjs.usePointer; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "useReducedMotion", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkTEPQGFR4_cjs.useReducedMotion; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "useScrollProgress", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkTEPQGFR4_cjs.useScrollProgress; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "useTicker", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkTEPQGFR4_cjs.useTicker; }
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "useTickerSubscriberCount", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function () { return chunkTEPQGFR4_cjs.useTickerSubscriberCount; }
|
|
136
140
|
});
|
|
137
141
|
Object.defineProperty(exports, "useWindowScroll", {
|
|
138
142
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkTEPQGFR4_cjs.useWindowScroll; }
|
|
140
144
|
});
|
|
141
145
|
Object.defineProperty(exports, "assignRef", {
|
|
142
146
|
enumerable: true,
|
package/dist/primitives.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Ref, SyntheticEvent, ReactNode, RefObject, CSSProperties } from 'react';
|
|
3
|
-
import { b as PositionResult, a as PositionOptions } from './position-
|
|
4
|
-
export { A as Align, P as Placement, R as Rect, S as Side, c as computePosition } from './position-
|
|
5
|
-
export { I as InViewOptions, u as useElementSize, a as useFrameBudget, b as useInView, c as useMergedRef, d as usePointer, e as useReducedMotion, f as useScrollProgress, g as useTicker, h as useWindowScroll } from './use-observers-
|
|
3
|
+
import { b as PositionResult, a as PositionOptions } from './position-CW6cGpSF.cjs';
|
|
4
|
+
export { A as Align, P as Placement, R as Rect, S as Side, c as computePosition } from './position-CW6cGpSF.cjs';
|
|
5
|
+
export { I as InViewOptions, u as useElementSize, a as useFrameBudget, b as useInView, c as useMergedRef, d as usePointer, e as useReducedMotion, f as useScrollProgress, g as useTicker, h as useTickerSubscriberCount, i as useWindowScroll } from './use-observers-DvA7hSz4.cjs';
|
|
6
6
|
import * as _ansh_ui_core from '@ansh-ui/core';
|
|
7
7
|
import { MotionValue, AnimationOptions, SpringOptions } from '@ansh-ui/core';
|
|
8
8
|
|
|
@@ -291,4 +291,5 @@ interface AnchoredPosition {
|
|
|
291
291
|
*/
|
|
292
292
|
declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, floatingRef: RefObject<HTMLElement | null>, open: boolean, options?: AnchoredPositionOptions): AnchoredPosition;
|
|
293
293
|
|
|
294
|
-
export {
|
|
294
|
+
export { Portal, PositionOptions, PositionResult, Presence, Slot, assignRef, composeEventHandlers, countElements, cx, getLayerStack, getTabbable, mergeProps, mergeRefs, slotted, useAnchoredPosition, useAnimate, useAutoFocus, useControllableState, useDismiss, useFocusRestore, useFocusTrap, useIsMounted, useMotionStyle, useMotionValue, useMotionValueState, usePresence, useRovingFocus, useScrollLock, useSpringValue };
|
|
295
|
+
export type { AnchoredPosition, AnchoredPositionOptions, DismissOptions, PortalProps, PresenceProps, SlotProps };
|
package/dist/primitives.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { Ref, SyntheticEvent, ReactNode, RefObject, CSSProperties } from 'react';
|
|
3
|
-
import { b as PositionResult, a as PositionOptions } from './position-
|
|
4
|
-
export { A as Align, P as Placement, R as Rect, S as Side, c as computePosition } from './position-
|
|
5
|
-
export { I as InViewOptions, u as useElementSize, a as useFrameBudget, b as useInView, c as useMergedRef, d as usePointer, e as useReducedMotion, f as useScrollProgress, g as useTicker, h as useWindowScroll } from './use-observers-
|
|
3
|
+
import { b as PositionResult, a as PositionOptions } from './position-CW6cGpSF.js';
|
|
4
|
+
export { A as Align, P as Placement, R as Rect, S as Side, c as computePosition } from './position-CW6cGpSF.js';
|
|
5
|
+
export { I as InViewOptions, u as useElementSize, a as useFrameBudget, b as useInView, c as useMergedRef, d as usePointer, e as useReducedMotion, f as useScrollProgress, g as useTicker, h as useTickerSubscriberCount, i as useWindowScroll } from './use-observers-DvA7hSz4.js';
|
|
6
6
|
import * as _ansh_ui_core from '@ansh-ui/core';
|
|
7
7
|
import { MotionValue, AnimationOptions, SpringOptions } from '@ansh-ui/core';
|
|
8
8
|
|
|
@@ -291,4 +291,5 @@ interface AnchoredPosition {
|
|
|
291
291
|
*/
|
|
292
292
|
declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, floatingRef: RefObject<HTMLElement | null>, open: boolean, options?: AnchoredPositionOptions): AnchoredPosition;
|
|
293
293
|
|
|
294
|
-
export {
|
|
294
|
+
export { Portal, PositionOptions, PositionResult, Presence, Slot, assignRef, composeEventHandlers, countElements, cx, getLayerStack, getTabbable, mergeProps, mergeRefs, slotted, useAnchoredPosition, useAnimate, useAutoFocus, useControllableState, useDismiss, useFocusRestore, useFocusTrap, useIsMounted, useMotionStyle, useMotionValue, useMotionValueState, usePresence, useRovingFocus, useScrollLock, useSpringValue };
|
|
295
|
+
export type { AnchoredPosition, AnchoredPositionOptions, DismissOptions, PortalProps, PresenceProps, SlotProps };
|
package/dist/primitives.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
export { useAnimate, useIsMounted, useMotionStyle, useMotionValue, useMotionValueState, useSpringValue } from './chunk-O2PX54KX.js';
|
|
3
|
-
export { Presence, Slot, countElements, getTabbable, slotted, useAutoFocus, useFocusRestore, useFocusTrap, usePresence, useRovingFocus } from './chunk-
|
|
3
|
+
export { Presence, Slot, countElements, getTabbable, slotted, useAutoFocus, useFocusRestore, useFocusTrap, usePresence, useRovingFocus } from './chunk-742E5FQS.js';
|
|
4
4
|
export { Portal, computePosition, getLayerStack, useAnchoredPosition, useDismiss, useScrollLock } from './chunk-XEP6P7E6.js';
|
|
5
5
|
export { useControllableState } from './chunk-LXCIXR5T.js';
|
|
6
|
-
export { useElementSize, useFrameBudget, useInView, useMergedRef, usePointer, useReducedMotion, useScrollProgress, useTicker, useWindowScroll } from './chunk-
|
|
6
|
+
export { useElementSize, useFrameBudget, useInView, useMergedRef, usePointer, useReducedMotion, useScrollProgress, useTicker, useTickerSubscriberCount, useWindowScroll } from './chunk-P5MRISBP.js';
|
|
7
7
|
export { assignRef, composeEventHandlers, cx, mergeProps, mergeRefs } from './chunk-H34OXXJU.js';
|
|
8
8
|
//# sourceMappingURL=primitives.js.map
|
|
9
9
|
//# sourceMappingURL=primitives.js.map
|
|
@@ -68,4 +68,5 @@ interface AppShellProps {
|
|
|
68
68
|
*/
|
|
69
69
|
declare function AppShell({ sidebar, header, children, className }: AppShellProps): react.JSX.Element;
|
|
70
70
|
|
|
71
|
-
export { AppShell as A,
|
|
71
|
+
export { AppShell as A, Sidebar as S };
|
|
72
|
+
export type { NavItem as N, AppShellProps as a, NavSection as b, SidebarProps as c };
|
|
@@ -68,4 +68,5 @@ interface AppShellProps {
|
|
|
68
68
|
*/
|
|
69
69
|
declare function AppShell({ sidebar, header, children, className }: AppShellProps): react.JSX.Element;
|
|
70
70
|
|
|
71
|
-
export { AppShell as A,
|
|
71
|
+
export { AppShell as A, Sidebar as S };
|
|
72
|
+
export type { NavItem as N, AppShellProps as a, NavSection as b, SidebarProps as c };
|