@ansh-ui/react 0.3.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.
Files changed (57) hide show
  1. package/dist/{chunk-YACOHFYJ.cjs → chunk-2U7BHYIQ.cjs} +121 -121
  2. package/dist/chunk-2U7BHYIQ.cjs.map +1 -0
  3. package/dist/{chunk-WNWGYXJY.js → chunk-7QGB2X7R.js} +34 -26
  4. package/dist/chunk-7QGB2X7R.js.map +1 -0
  5. package/dist/{chunk-OLTS6G5M.js → chunk-GNA33V2J.js} +11 -6
  6. package/dist/chunk-GNA33V2J.js.map +1 -0
  7. package/dist/{chunk-IZ6T7LO3.cjs → chunk-MPX7QT4R.cjs} +2 -2
  8. package/dist/chunk-MPX7QT4R.cjs.map +1 -0
  9. package/dist/{chunk-PVDQPVYF.js → chunk-NJUVVMJV.js} +2 -2
  10. package/dist/chunk-NJUVVMJV.js.map +1 -0
  11. package/dist/{chunk-CWYBOVCZ.js → chunk-RGGNLAAA.js} +121 -121
  12. package/dist/chunk-RGGNLAAA.js.map +1 -0
  13. package/dist/{chunk-OJN5JBNP.cjs → chunk-VJI6V27F.cjs} +99 -99
  14. package/dist/chunk-VJI6V27F.cjs.map +1 -0
  15. package/dist/{chunk-HPGCILO4.js → chunk-XRKZPLUT.js} +99 -99
  16. package/dist/chunk-XRKZPLUT.js.map +1 -0
  17. package/dist/{chunk-DATBU46V.cjs → chunk-XYT6OXKP.cjs} +10 -4
  18. package/dist/chunk-XYT6OXKP.cjs.map +1 -0
  19. package/dist/{chunk-3SWO2M33.cjs → chunk-YVJB7AAZ.cjs} +34 -26
  20. package/dist/chunk-YVJB7AAZ.cjs.map +1 -0
  21. package/dist/data.cjs +16 -16
  22. package/dist/data.d.cts +23 -22
  23. package/dist/data.d.ts +23 -22
  24. package/dist/data.js +1 -1
  25. package/dist/form.cjs +36 -36
  26. package/dist/form.d.cts +2 -0
  27. package/dist/form.d.ts +2 -0
  28. package/dist/form.js +1 -1
  29. package/dist/index.cjs +99 -99
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +10 -9
  34. package/dist/index.js.map +1 -1
  35. package/dist/{motion-DsQPOsTT.d.cts → motion-C6WfBFES.d.cts} +20 -17
  36. package/dist/{motion-DoT_sTl1.d.ts → motion-ugXmf505.d.ts} +20 -17
  37. package/dist/motion.cjs +17 -17
  38. package/dist/motion.d.cts +1 -1
  39. package/dist/motion.d.ts +1 -1
  40. package/dist/motion.js +1 -1
  41. package/dist/navigation.cjs +8 -8
  42. package/dist/navigation.js +1 -1
  43. package/dist/overlay.cjs +15 -15
  44. package/dist/overlay.d.cts +14 -12
  45. package/dist/overlay.d.ts +14 -12
  46. package/dist/overlay.js +1 -1
  47. package/package.json +3 -3
  48. package/dist/chunk-3SWO2M33.cjs.map +0 -1
  49. package/dist/chunk-CWYBOVCZ.js.map +0 -1
  50. package/dist/chunk-DATBU46V.cjs.map +0 -1
  51. package/dist/chunk-HPGCILO4.js.map +0 -1
  52. package/dist/chunk-IZ6T7LO3.cjs.map +0 -1
  53. package/dist/chunk-OJN5JBNP.cjs.map +0 -1
  54. package/dist/chunk-OLTS6G5M.js.map +0 -1
  55. package/dist/chunk-PVDQPVYF.js.map +0 -1
  56. package/dist/chunk-WNWGYXJY.js.map +0 -1
  57. package/dist/chunk-YACOHFYJ.cjs.map +0 -1
@@ -1,25 +1,9 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, CSSProperties, ElementType, ForwardRefExoticComponent, ComponentPropsWithoutRef, RefAttributes } from 'react';
2
+ import { ElementType, CSSProperties, ReactNode, ForwardRefExoticComponent, ComponentPropsWithoutRef, RefAttributes } from 'react';
3
3
  import * as _ansh_ui_core from '@ansh-ui/core';
4
4
  import { EasingInput, SpringOptions, springs, StaggerFrom, resolvePalette, BaseBehaviourOptions, BehaviourDefinition, ReducedMotionMode } from '@ansh-ui/core';
5
5
  import './use-observers-DvA7hSz4.cjs';
6
6
 
7
- /**
8
- * Declarative motion.
9
- *
10
- * A deliberately **small** subset of what a full motion library does: transform properties and
11
- * opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
12
- * when paired with `AnimatePresence`.
13
- *
14
- * That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
15
- * variant propagation each need machinery an order of magnitude larger than this file, and a
16
- * half-implementation of them is worse than none — it works in the demo and fails on the real page.
17
- * For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
18
- * card on hover", this costs a fraction of the bundle.
19
- *
20
- * Values are written straight to the element's `style` from the ticker's write phase. React never
21
- * re-renders during an animation.
22
- */
23
7
  interface MotionValues {
24
8
  opacity?: number;
25
9
  x?: number;
@@ -59,6 +43,23 @@ type MotionElementProps = {
59
43
  style?: CSSProperties;
60
44
  children?: ReactNode;
61
45
  };
46
+
47
+ /**
48
+ * Declarative motion.
49
+ *
50
+ * A deliberately **small** subset of what a full motion library does: transform properties and
51
+ * opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
52
+ * when paired with `AnimatePresence`.
53
+ *
54
+ * That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
55
+ * variant propagation each need machinery an order of magnitude larger than this file, and a
56
+ * half-implementation of them is worse than none — it works in the demo and fails on the real page.
57
+ * For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
58
+ * card on hover", this costs a fraction of the bundle.
59
+ *
60
+ * Values are written straight to the element's `style` from the ticker's write phase. React never
61
+ * re-renders during an animation.
62
+ */
62
63
  /**
63
64
  * An animated element.
64
65
  *
@@ -69,6 +70,7 @@ type MotionElementProps = {
69
70
  * ```
70
71
  */
71
72
  declare function Motion({ as: Component, initial, animate: target, exit: _exit, transition, whileHover, whileTap, whileInView, inViewAmount, className, style, children, ...rest }: MotionElementProps & Record<string, unknown>): react.JSX.Element;
73
+
72
74
  interface AnimatePresenceProps {
73
75
  children: ReactNode;
74
76
  /** Seconds to keep a removed child mounted. Default `0.35`. */
@@ -85,6 +87,7 @@ interface AnimatePresenceProps {
85
87
  * React reuses element positions and this sees no removal to animate.
86
88
  */
87
89
  declare function AnimatePresence({ children, exitDuration }: AnimatePresenceProps): react.JSX.Element;
90
+
88
91
  interface DraggableProps {
89
92
  /** Constrain movement. */
90
93
  axis?: 'x' | 'y' | 'both';
@@ -1,25 +1,9 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, CSSProperties, ElementType, ForwardRefExoticComponent, ComponentPropsWithoutRef, RefAttributes } from 'react';
2
+ import { ElementType, CSSProperties, ReactNode, ForwardRefExoticComponent, ComponentPropsWithoutRef, RefAttributes } from 'react';
3
3
  import * as _ansh_ui_core from '@ansh-ui/core';
4
4
  import { EasingInput, SpringOptions, springs, StaggerFrom, resolvePalette, BaseBehaviourOptions, BehaviourDefinition, ReducedMotionMode } from '@ansh-ui/core';
5
5
  import './use-observers-DvA7hSz4.js';
6
6
 
7
- /**
8
- * Declarative motion.
9
- *
10
- * A deliberately **small** subset of what a full motion library does: transform properties and
11
- * opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
12
- * when paired with `AnimatePresence`.
13
- *
14
- * That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
15
- * variant propagation each need machinery an order of magnitude larger than this file, and a
16
- * half-implementation of them is worse than none — it works in the demo and fails on the real page.
17
- * For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
18
- * card on hover", this costs a fraction of the bundle.
19
- *
20
- * Values are written straight to the element's `style` from the ticker's write phase. React never
21
- * re-renders during an animation.
22
- */
23
7
  interface MotionValues {
24
8
  opacity?: number;
25
9
  x?: number;
@@ -59,6 +43,23 @@ type MotionElementProps = {
59
43
  style?: CSSProperties;
60
44
  children?: ReactNode;
61
45
  };
46
+
47
+ /**
48
+ * Declarative motion.
49
+ *
50
+ * A deliberately **small** subset of what a full motion library does: transform properties and
51
+ * opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
52
+ * when paired with `AnimatePresence`.
53
+ *
54
+ * That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
55
+ * variant propagation each need machinery an order of magnitude larger than this file, and a
56
+ * half-implementation of them is worse than none — it works in the demo and fails on the real page.
57
+ * For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
58
+ * card on hover", this costs a fraction of the bundle.
59
+ *
60
+ * Values are written straight to the element's `style` from the ticker's write phase. React never
61
+ * re-renders during an animation.
62
+ */
62
63
  /**
63
64
  * An animated element.
64
65
  *
@@ -69,6 +70,7 @@ type MotionElementProps = {
69
70
  * ```
70
71
  */
71
72
  declare function Motion({ as: Component, initial, animate: target, exit: _exit, transition, whileHover, whileTap, whileInView, inViewAmount, className, style, children, ...rest }: MotionElementProps & Record<string, unknown>): react.JSX.Element;
73
+
72
74
  interface AnimatePresenceProps {
73
75
  children: ReactNode;
74
76
  /** Seconds to keep a removed child mounted. Default `0.35`. */
@@ -85,6 +87,7 @@ interface AnimatePresenceProps {
85
87
  * React reuses element positions and this sees no removal to animate.
86
88
  */
87
89
  declare function AnimatePresence({ children, exitDuration }: AnimatePresenceProps): react.JSX.Element;
90
+
88
91
  interface DraggableProps {
89
92
  /** Constrain movement. */
90
93
  axis?: 'x' | 'y' | 'both';
package/dist/motion.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkIZ6T7LO3_cjs = require('./chunk-IZ6T7LO3.cjs');
4
+ var chunkMPX7QT4R_cjs = require('./chunk-MPX7QT4R.cjs');
5
5
  var chunkTEPQGFR4_cjs = require('./chunk-TEPQGFR4.cjs');
6
6
  require('./chunk-SFU5EPSN.cjs');
7
7
 
@@ -9,67 +9,67 @@ require('./chunk-SFU5EPSN.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "AnimatePresence", {
11
11
  enumerable: true,
12
- get: function () { return chunkIZ6T7LO3_cjs.AnimatePresence; }
12
+ get: function () { return chunkMPX7QT4R_cjs.AnimatePresence; }
13
13
  });
14
14
  Object.defineProperty(exports, "AnimatedText", {
15
15
  enumerable: true,
16
- get: function () { return chunkIZ6T7LO3_cjs.AnimatedText; }
16
+ get: function () { return chunkMPX7QT4R_cjs.AnimatedText; }
17
17
  });
18
18
  Object.defineProperty(exports, "Draggable", {
19
19
  enumerable: true,
20
- get: function () { return chunkIZ6T7LO3_cjs.Draggable; }
20
+ get: function () { return chunkMPX7QT4R_cjs.Draggable; }
21
21
  });
22
22
  Object.defineProperty(exports, "GradientText", {
23
23
  enumerable: true,
24
- get: function () { return chunkIZ6T7LO3_cjs.GradientText; }
24
+ get: function () { return chunkMPX7QT4R_cjs.GradientText; }
25
25
  });
26
26
  Object.defineProperty(exports, "MagneticButton", {
27
27
  enumerable: true,
28
- get: function () { return chunkIZ6T7LO3_cjs.MagneticButton; }
28
+ get: function () { return chunkMPX7QT4R_cjs.MagneticButton; }
29
29
  });
30
30
  Object.defineProperty(exports, "Marquee", {
31
31
  enumerable: true,
32
- get: function () { return chunkIZ6T7LO3_cjs.Marquee; }
32
+ get: function () { return chunkMPX7QT4R_cjs.Marquee; }
33
33
  });
34
34
  Object.defineProperty(exports, "Motion", {
35
35
  enumerable: true,
36
- get: function () { return chunkIZ6T7LO3_cjs.Motion; }
36
+ get: function () { return chunkMPX7QT4R_cjs.Motion; }
37
37
  });
38
38
  Object.defineProperty(exports, "MotionConfig", {
39
39
  enumerable: true,
40
- get: function () { return chunkIZ6T7LO3_cjs.MotionConfig; }
40
+ get: function () { return chunkMPX7QT4R_cjs.MotionConfig; }
41
41
  });
42
42
  Object.defineProperty(exports, "Parallax", {
43
43
  enumerable: true,
44
- get: function () { return chunkIZ6T7LO3_cjs.Parallax; }
44
+ get: function () { return chunkMPX7QT4R_cjs.Parallax; }
45
45
  });
46
46
  Object.defineProperty(exports, "Ripple", {
47
47
  enumerable: true,
48
- get: function () { return chunkIZ6T7LO3_cjs.Ripple; }
48
+ get: function () { return chunkMPX7QT4R_cjs.Ripple; }
49
49
  });
50
50
  Object.defineProperty(exports, "ScrollReveal", {
51
51
  enumerable: true,
52
- get: function () { return chunkIZ6T7LO3_cjs.ScrollReveal; }
52
+ get: function () { return chunkMPX7QT4R_cjs.ScrollReveal; }
53
53
  });
54
54
  Object.defineProperty(exports, "ThemeProvider", {
55
55
  enumerable: true,
56
- get: function () { return chunkIZ6T7LO3_cjs.ThemeProvider; }
56
+ get: function () { return chunkMPX7QT4R_cjs.ThemeProvider; }
57
57
  });
58
58
  Object.defineProperty(exports, "TiltCard", {
59
59
  enumerable: true,
60
- get: function () { return chunkIZ6T7LO3_cjs.TiltCard; }
60
+ get: function () { return chunkMPX7QT4R_cjs.TiltCard; }
61
61
  });
62
62
  Object.defineProperty(exports, "themeScript", {
63
63
  enumerable: true,
64
- get: function () { return chunkIZ6T7LO3_cjs.themeScript; }
64
+ get: function () { return chunkMPX7QT4R_cjs.themeScript; }
65
65
  });
66
66
  Object.defineProperty(exports, "useMotionConfig", {
67
67
  enumerable: true,
68
- get: function () { return chunkIZ6T7LO3_cjs.useMotionConfig; }
68
+ get: function () { return chunkMPX7QT4R_cjs.useMotionConfig; }
69
69
  });
70
70
  Object.defineProperty(exports, "useTheme", {
71
71
  enumerable: true,
72
- get: function () { return chunkIZ6T7LO3_cjs.useTheme; }
72
+ get: function () { return chunkMPX7QT4R_cjs.useTheme; }
73
73
  });
74
74
  Object.defineProperty(exports, "useMergedRef", {
75
75
  enumerable: true,
package/dist/motion.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, t as themeScript, v as useMotionConfig, w as useTheme } from './motion-DsQPOsTT.cjs';
1
+ export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, t as themeScript, v as useMotionConfig, w as useTheme } from './motion-C6WfBFES.cjs';
2
2
  export { c as useMergedRef } from './use-observers-DvA7hSz4.cjs';
3
3
  import 'react';
4
4
  import '@ansh-ui/core';
package/dist/motion.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, t as themeScript, v as useMotionConfig, w as useTheme } from './motion-DoT_sTl1.js';
1
+ export { A as AnimatePresence, a as AnimatePresenceProps, b as AnimatedText, c as AnimatedTextProps, D as Draggable, f as DraggableProps, G as GradientText, g as GradientTextProps, M as MagneticButton, h as Marquee, i as Motion, j as MotionConfig, k as MotionConfigProps, l as MotionConfigValue, m as MotionTransition, n as MotionValues, P as Parallax, R as Ripple, S as ScrollReveal, T as ThemeContextValue, o as ThemeProvider, p as ThemeProviderProps, q as ThemeSetting, r as TiltCard, t as themeScript, v as useMotionConfig, w as useTheme } from './motion-ugXmf505.js';
2
2
  export { c as useMergedRef } from './use-observers-DvA7hSz4.js';
3
3
  import 'react';
4
4
  import '@ansh-ui/core';
package/dist/motion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { AnimatePresence, AnimatedText, Draggable, GradientText, MagneticButton, Marquee, Motion, MotionConfig, Parallax, Ripple, ScrollReveal, ThemeProvider, TiltCard, themeScript, useMotionConfig, useTheme } from './chunk-PVDQPVYF.js';
2
+ export { AnimatePresence, AnimatedText, Draggable, GradientText, MagneticButton, Marquee, Motion, MotionConfig, Parallax, Ripple, ScrollReveal, ThemeProvider, TiltCard, themeScript, useMotionConfig, useTheme } from './chunk-NJUVVMJV.js';
3
3
  export { useMergedRef } from './chunk-P5MRISBP.js';
4
4
  import './chunk-H34OXXJU.js';
5
5
  //# sourceMappingURL=motion.js.map
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkDATBU46V_cjs = require('./chunk-DATBU46V.cjs');
4
+ var chunkXYT6OXKP_cjs = require('./chunk-XYT6OXKP.cjs');
5
5
  var chunkZWAFLHC2_cjs = require('./chunk-ZWAFLHC2.cjs');
6
6
  require('./chunk-PO5DU3FU.cjs');
7
7
  require('./chunk-SFU5EPSN.cjs');
@@ -10,31 +10,31 @@ require('./chunk-SFU5EPSN.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "Accordion", {
12
12
  enumerable: true,
13
- get: function () { return chunkDATBU46V_cjs.Accordion; }
13
+ get: function () { return chunkXYT6OXKP_cjs.Accordion; }
14
14
  });
15
15
  Object.defineProperty(exports, "Breadcrumbs", {
16
16
  enumerable: true,
17
- get: function () { return chunkDATBU46V_cjs.Breadcrumbs; }
17
+ get: function () { return chunkXYT6OXKP_cjs.Breadcrumbs; }
18
18
  });
19
19
  Object.defineProperty(exports, "Collapsible", {
20
20
  enumerable: true,
21
- get: function () { return chunkDATBU46V_cjs.Collapsible; }
21
+ get: function () { return chunkXYT6OXKP_cjs.Collapsible; }
22
22
  });
23
23
  Object.defineProperty(exports, "DisclosureList", {
24
24
  enumerable: true,
25
- get: function () { return chunkDATBU46V_cjs.DisclosureList; }
25
+ get: function () { return chunkXYT6OXKP_cjs.DisclosureList; }
26
26
  });
27
27
  Object.defineProperty(exports, "NavigationMenu", {
28
28
  enumerable: true,
29
- get: function () { return chunkDATBU46V_cjs.NavigationMenu; }
29
+ get: function () { return chunkXYT6OXKP_cjs.NavigationMenu; }
30
30
  });
31
31
  Object.defineProperty(exports, "Stepper", {
32
32
  enumerable: true,
33
- get: function () { return chunkDATBU46V_cjs.Stepper; }
33
+ get: function () { return chunkXYT6OXKP_cjs.Stepper; }
34
34
  });
35
35
  Object.defineProperty(exports, "Tabs", {
36
36
  enumerable: true,
37
- get: function () { return chunkDATBU46V_cjs.Tabs; }
37
+ get: function () { return chunkXYT6OXKP_cjs.Tabs; }
38
38
  });
39
39
  Object.defineProperty(exports, "AppShell", {
40
40
  enumerable: true,
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { Accordion, Breadcrumbs, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs } from './chunk-OLTS6G5M.js';
2
+ export { Accordion, Breadcrumbs, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs } from './chunk-GNA33V2J.js';
3
3
  export { AppShell, Sidebar } from './chunk-5CFQFMP5.js';
4
4
  import './chunk-LXCIXR5T.js';
5
5
  import './chunk-H34OXXJU.js';
package/dist/overlay.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkYACOHFYJ_cjs = require('./chunk-YACOHFYJ.cjs');
4
+ var chunk2U7BHYIQ_cjs = require('./chunk-2U7BHYIQ.cjs');
5
5
  require('./chunk-KTLTYHAT.cjs');
6
6
  require('./chunk-XMXECSQO.cjs');
7
7
  require('./chunk-PO5DU3FU.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 chunkYACOHFYJ_cjs.AlertDialog; }
14
+ get: function () { return chunk2U7BHYIQ_cjs.AlertDialog; }
15
15
  });
16
16
  Object.defineProperty(exports, "CommandPalette", {
17
17
  enumerable: true,
18
- get: function () { return chunkYACOHFYJ_cjs.CommandPalette; }
18
+ get: function () { return chunk2U7BHYIQ_cjs.CommandPalette; }
19
19
  });
20
20
  Object.defineProperty(exports, "ContextMenu", {
21
21
  enumerable: true,
22
- get: function () { return chunkYACOHFYJ_cjs.ContextMenu; }
22
+ get: function () { return chunk2U7BHYIQ_cjs.ContextMenu; }
23
23
  });
24
24
  Object.defineProperty(exports, "Dialog", {
25
25
  enumerable: true,
26
- get: function () { return chunkYACOHFYJ_cjs.Dialog; }
26
+ get: function () { return chunk2U7BHYIQ_cjs.Dialog; }
27
27
  });
28
28
  Object.defineProperty(exports, "DialogFooter", {
29
29
  enumerable: true,
30
- get: function () { return chunkYACOHFYJ_cjs.DialogFooter; }
30
+ get: function () { return chunk2U7BHYIQ_cjs.DialogFooter; }
31
31
  });
32
32
  Object.defineProperty(exports, "Drawer", {
33
33
  enumerable: true,
34
- get: function () { return chunkYACOHFYJ_cjs.Drawer; }
34
+ get: function () { return chunk2U7BHYIQ_cjs.Drawer; }
35
35
  });
36
36
  Object.defineProperty(exports, "DropdownMenu", {
37
37
  enumerable: true,
38
- get: function () { return chunkYACOHFYJ_cjs.DropdownMenu; }
38
+ get: function () { return chunk2U7BHYIQ_cjs.DropdownMenu; }
39
39
  });
40
40
  Object.defineProperty(exports, "HoverCard", {
41
41
  enumerable: true,
42
- get: function () { return chunkYACOHFYJ_cjs.HoverCard; }
42
+ get: function () { return chunk2U7BHYIQ_cjs.HoverCard; }
43
43
  });
44
44
  Object.defineProperty(exports, "Popover", {
45
45
  enumerable: true,
46
- get: function () { return chunkYACOHFYJ_cjs.Popover; }
46
+ get: function () { return chunk2U7BHYIQ_cjs.Popover; }
47
47
  });
48
48
  Object.defineProperty(exports, "PopoverContent", {
49
49
  enumerable: true,
50
- get: function () { return chunkYACOHFYJ_cjs.PopoverContent; }
50
+ get: function () { return chunk2U7BHYIQ_cjs.PopoverContent; }
51
51
  });
52
52
  Object.defineProperty(exports, "PopoverTrigger", {
53
53
  enumerable: true,
54
- get: function () { return chunkYACOHFYJ_cjs.PopoverTrigger; }
54
+ get: function () { return chunk2U7BHYIQ_cjs.PopoverTrigger; }
55
55
  });
56
56
  Object.defineProperty(exports, "Tooltip", {
57
57
  enumerable: true,
58
- get: function () { return chunkYACOHFYJ_cjs.Tooltip; }
58
+ get: function () { return chunk2U7BHYIQ_cjs.Tooltip; }
59
59
  });
60
60
  Object.defineProperty(exports, "TooltipProvider", {
61
61
  enumerable: true,
62
- get: function () { return chunkYACOHFYJ_cjs.TooltipProvider; }
62
+ get: function () { return chunk2U7BHYIQ_cjs.TooltipProvider; }
63
63
  });
64
64
  Object.defineProperty(exports, "useCommandShortcut", {
65
65
  enumerable: true,
66
- get: function () { return chunkYACOHFYJ_cjs.useCommandShortcut; }
66
+ get: function () { return chunk2U7BHYIQ_cjs.useCommandShortcut; }
67
67
  });
68
68
  //# sourceMappingURL=overlay.cjs.map
69
69
  //# sourceMappingURL=overlay.cjs.map
@@ -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;
package/dist/overlay.d.ts CHANGED
@@ -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;
package/dist/overlay.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-CWYBOVCZ.js';
2
+ export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-RGGNLAAA.js';
3
3
  import './chunk-742E5FQS.js';
4
4
  import './chunk-XEP6P7E6.js';
5
5
  import './chunk-LXCIXR5T.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ansh-ui/react",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Ansh for React and Next.js — premium animated components and motion hooks.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -74,8 +74,8 @@
74
74
  "./package.json": "./package.json"
75
75
  },
76
76
  "dependencies": {
77
- "@ansh-ui/core": "0.3.0",
78
- "@ansh-ui/tokens": "0.3.0"
77
+ "@ansh-ui/core": "0.3.1",
78
+ "@ansh-ui/tokens": "0.3.1"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": "^18.2.0 || ^19.0.0",