@ansh-ui/react 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/{chunk-RHTLNSVW.cjs → chunk-3SWO2M33.cjs} +7 -7
  2. package/dist/chunk-3SWO2M33.cjs.map +1 -0
  3. package/dist/{chunk-HO2YSF5O.js → chunk-742E5FQS.js} +3 -3
  4. package/dist/chunk-742E5FQS.js.map +1 -0
  5. package/dist/{chunk-EGG4CP7C.js → chunk-BQJ6H3HC.js} +3 -2
  6. package/dist/chunk-BQJ6H3HC.js.map +1 -0
  7. package/dist/{chunk-LDCZQP3R.js → chunk-CWYBOVCZ.js} +3 -3
  8. package/dist/{chunk-LDCZQP3R.js.map → chunk-CWYBOVCZ.js.map} +1 -1
  9. package/dist/{chunk-AVPEA5PB.cjs → chunk-IZ6T7LO3.cjs} +4 -4
  10. package/dist/{chunk-AVPEA5PB.cjs.map → chunk-IZ6T7LO3.cjs.map} +1 -1
  11. package/dist/{chunk-C32LKF23.cjs → chunk-KTLTYHAT.cjs} +3 -3
  12. package/dist/chunk-KTLTYHAT.cjs.map +1 -0
  13. package/dist/{chunk-IBXLC5IE.js → chunk-P5MRISBP.js} +19 -3
  14. package/dist/chunk-P5MRISBP.js.map +1 -0
  15. package/dist/{chunk-WGYNCSTP.cjs → chunk-PUW6BTPQ.cjs} +3 -2
  16. package/dist/chunk-PUW6BTPQ.cjs.map +1 -0
  17. package/dist/{chunk-T4AK2KLM.js → chunk-PVDQPVYF.js} +3 -3
  18. package/dist/{chunk-T4AK2KLM.js.map → chunk-PVDQPVYF.js.map} +1 -1
  19. package/dist/{chunk-6VRF7X5C.cjs → chunk-TEPQGFR4.cjs} +19 -2
  20. package/dist/chunk-TEPQGFR4.cjs.map +1 -0
  21. package/dist/{chunk-QO3E7TJS.js → chunk-WNWGYXJY.js} +4 -4
  22. package/dist/chunk-WNWGYXJY.js.map +1 -0
  23. package/dist/{chunk-C5JG6TMM.cjs → chunk-YACOHFYJ.cjs} +27 -27
  24. package/dist/{chunk-C5JG6TMM.cjs.map → chunk-YACOHFYJ.cjs.map} +1 -1
  25. package/dist/data.d.cts +2 -1
  26. package/dist/data.d.ts +2 -1
  27. package/dist/form.cjs +37 -37
  28. package/dist/form.d.cts +2 -1
  29. package/dist/form.d.ts +2 -1
  30. package/dist/form.js +2 -2
  31. package/dist/index.cjs +641 -110
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.cts +220 -7
  34. package/dist/index.d.ts +220 -7
  35. package/dist/index.js +526 -11
  36. package/dist/index.js.map +1 -1
  37. package/dist/layout.cjs +13 -13
  38. package/dist/layout.d.cts +11 -2
  39. package/dist/layout.d.ts +11 -2
  40. package/dist/layout.js +1 -1
  41. package/dist/{motion-CQmCq6_k.d.ts → motion-DoT_sTl1.d.ts} +3 -2
  42. package/dist/{motion-CSX4g2N8.d.cts → motion-DsQPOsTT.d.cts} +3 -2
  43. package/dist/motion.cjs +19 -19
  44. package/dist/motion.d.cts +2 -2
  45. package/dist/motion.d.ts +2 -2
  46. package/dist/motion.js +2 -2
  47. package/dist/navigation.d.cts +3 -2
  48. package/dist/navigation.d.ts +3 -2
  49. package/dist/overlay.cjs +16 -16
  50. package/dist/overlay.d.cts +3 -2
  51. package/dist/overlay.d.ts +3 -2
  52. package/dist/overlay.js +2 -2
  53. package/dist/{position-DVScKcaa.d.cts → position-CW6cGpSF.d.cts} +2 -1
  54. package/dist/{position-DVScKcaa.d.ts → position-CW6cGpSF.d.ts} +2 -1
  55. package/dist/primitives.cjs +25 -21
  56. package/dist/primitives.d.cts +5 -4
  57. package/dist/primitives.d.ts +5 -4
  58. package/dist/primitives.js +2 -2
  59. package/dist/{sidebar-D-PafAXw.d.cts → sidebar-Dyt67t2z.d.cts} +2 -1
  60. package/dist/{sidebar-D-PafAXw.d.ts → sidebar-Dyt67t2z.d.ts} +2 -1
  61. package/dist/styles.css +464 -0
  62. package/dist/{use-observers-B9qtimrk.d.cts → use-observers-DvA7hSz4.d.cts} +10 -1
  63. package/dist/{use-observers-B9qtimrk.d.ts → use-observers-DvA7hSz4.d.ts} +10 -1
  64. package/package.json +3 -3
  65. package/dist/chunk-6VRF7X5C.cjs.map +0 -1
  66. package/dist/chunk-C32LKF23.cjs.map +0 -1
  67. package/dist/chunk-EGG4CP7C.js.map +0 -1
  68. package/dist/chunk-HO2YSF5O.js.map +0 -1
  69. package/dist/chunk-IBXLC5IE.js.map +0 -1
  70. package/dist/chunk-QO3E7TJS.js.map +0 -1
  71. package/dist/chunk-RHTLNSVW.cjs.map +0 -1
  72. package/dist/chunk-WGYNCSTP.cjs.map +0 -1
package/dist/layout.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkWGYNCSTP_cjs = require('./chunk-WGYNCSTP.cjs');
4
+ var chunkPUW6BTPQ_cjs = require('./chunk-PUW6BTPQ.cjs');
5
5
  var chunkZWAFLHC2_cjs = require('./chunk-ZWAFLHC2.cjs');
6
6
  require('./chunk-PO5DU3FU.cjs');
7
7
  require('./chunk-SFU5EPSN.cjs');
@@ -10,51 +10,51 @@ require('./chunk-SFU5EPSN.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "AspectRatio", {
12
12
  enumerable: true,
13
- get: function () { return chunkWGYNCSTP_cjs.AspectRatio; }
13
+ get: function () { return chunkPUW6BTPQ_cjs.AspectRatio; }
14
14
  });
15
15
  Object.defineProperty(exports, "Center", {
16
16
  enumerable: true,
17
- get: function () { return chunkWGYNCSTP_cjs.Center; }
17
+ get: function () { return chunkPUW6BTPQ_cjs.Center; }
18
18
  });
19
19
  Object.defineProperty(exports, "Container", {
20
20
  enumerable: true,
21
- get: function () { return chunkWGYNCSTP_cjs.Container; }
21
+ get: function () { return chunkPUW6BTPQ_cjs.Container; }
22
22
  });
23
23
  Object.defineProperty(exports, "Divider", {
24
24
  enumerable: true,
25
- get: function () { return chunkWGYNCSTP_cjs.Divider; }
25
+ get: function () { return chunkPUW6BTPQ_cjs.Divider; }
26
26
  });
27
27
  Object.defineProperty(exports, "Grid", {
28
28
  enumerable: true,
29
- get: function () { return chunkWGYNCSTP_cjs.Grid; }
29
+ get: function () { return chunkPUW6BTPQ_cjs.Grid; }
30
30
  });
31
31
  Object.defineProperty(exports, "GridItem", {
32
32
  enumerable: true,
33
- get: function () { return chunkWGYNCSTP_cjs.GridItem; }
33
+ get: function () { return chunkPUW6BTPQ_cjs.GridItem; }
34
34
  });
35
35
  Object.defineProperty(exports, "HStack", {
36
36
  enumerable: true,
37
- get: function () { return chunkWGYNCSTP_cjs.HStack; }
37
+ get: function () { return chunkPUW6BTPQ_cjs.HStack; }
38
38
  });
39
39
  Object.defineProperty(exports, "Resizable", {
40
40
  enumerable: true,
41
- get: function () { return chunkWGYNCSTP_cjs.Resizable; }
41
+ get: function () { return chunkPUW6BTPQ_cjs.Resizable; }
42
42
  });
43
43
  Object.defineProperty(exports, "ScrollArea", {
44
44
  enumerable: true,
45
- get: function () { return chunkWGYNCSTP_cjs.ScrollArea; }
45
+ get: function () { return chunkPUW6BTPQ_cjs.ScrollArea; }
46
46
  });
47
47
  Object.defineProperty(exports, "Spacer", {
48
48
  enumerable: true,
49
- get: function () { return chunkWGYNCSTP_cjs.Spacer; }
49
+ get: function () { return chunkPUW6BTPQ_cjs.Spacer; }
50
50
  });
51
51
  Object.defineProperty(exports, "Stack", {
52
52
  enumerable: true,
53
- get: function () { return chunkWGYNCSTP_cjs.Stack; }
53
+ get: function () { return chunkPUW6BTPQ_cjs.Stack; }
54
54
  });
55
55
  Object.defineProperty(exports, "VStack", {
56
56
  enumerable: true,
57
- get: function () { return chunkWGYNCSTP_cjs.VStack; }
57
+ get: function () { return chunkPUW6BTPQ_cjs.VStack; }
58
58
  });
59
59
  Object.defineProperty(exports, "AppShell", {
60
60
  enumerable: true,
package/dist/layout.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ElementType, ReactNode, CSSProperties } from 'react';
3
- export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-D-PafAXw.cjs';
3
+ export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-Dyt67t2z.cjs';
4
4
 
5
5
  /**
6
6
  * Layout primitives.
@@ -19,6 +19,7 @@ interface BaseProps extends HTMLAttributes<HTMLElement> {
19
19
  as?: ElementType;
20
20
  children?: ReactNode;
21
21
  }
22
+
22
23
  interface StackProps extends BaseProps {
23
24
  /** Default `'vertical'` — the direction that needs a helper more often. */
24
25
  direction?: 'horizontal' | 'vertical';
@@ -49,6 +50,7 @@ declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttri
49
50
  declare const HStack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLElement>>;
50
51
  /** Vertical `Stack`, for symmetry with `HStack`. */
51
52
  declare const VStack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLElement>>;
53
+
52
54
  interface GridProps extends BaseProps {
53
55
  /** Fixed column count, or `'auto'` for a responsive `auto-fill` track. */
54
56
  columns?: number | 'auto';
@@ -73,6 +75,7 @@ interface GridItemProps extends BaseProps {
73
75
  rowSpan?: number;
74
76
  }
75
77
  declare const GridItem: react.ForwardRefExoticComponent<GridItemProps & react.RefAttributes<HTMLElement>>;
78
+
76
79
  interface ContainerProps extends BaseProps {
77
80
  /** Max content width. Default `'lg'` (72rem). */
78
81
  size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
@@ -81,6 +84,7 @@ interface ContainerProps extends BaseProps {
81
84
  }
82
85
  /** Centred, width-constrained page content. */
83
86
  declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLElement>>;
87
+
84
88
  interface DividerProps extends Omit<BaseProps, 'children'> {
85
89
  orientation?: 'horizontal' | 'vertical';
86
90
  /** Optional label rendered in the middle of the rule. */
@@ -94,6 +98,7 @@ interface DividerProps extends Omit<BaseProps, 'children'> {
94
98
  * announcing it as a separator loses the text.
95
99
  */
96
100
  declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
101
+
97
102
  interface SpacerProps {
98
103
  size?: SpaceToken;
99
104
  /** Grow to absorb free space in a flex container. */
@@ -101,8 +106,10 @@ interface SpacerProps {
101
106
  }
102
107
  /** Explicit empty space. `grow` pushes siblings apart in a flex row. */
103
108
  declare function Spacer({ size, grow }: SpacerProps): react.JSX.Element;
109
+
104
110
  /** Centre a child on both axes. */
105
111
  declare const Center: react.ForwardRefExoticComponent<BaseProps & react.RefAttributes<HTMLElement>>;
112
+
106
113
  interface AspectRatioProps extends BaseProps {
107
114
  /** Width ÷ height. `16 / 9` reads better than `1.777`. Default `16 / 9`. */
108
115
  ratio?: number;
@@ -115,6 +122,7 @@ interface AspectRatioProps extends BaseProps {
115
122
  * Shift penalty and the most common cause of a failing Core Web Vitals score.
116
123
  */
117
124
  declare const AspectRatio: react.ForwardRefExoticComponent<AspectRatioProps & react.RefAttributes<HTMLElement>>;
125
+
118
126
  interface ScrollAreaProps extends BaseProps {
119
127
  /** Max height before scrolling starts. */
120
128
  maxHeight?: string;
@@ -166,4 +174,5 @@ interface ResizableProps {
166
174
  */
167
175
  declare function Resizable({ children, direction, defaultSize, size, onSizeChange, minSize, maxSize, snapPoints, className, label, }: ResizableProps): react.JSX.Element;
168
176
 
169
- export { AspectRatio, type AspectRatioProps, Center, Container, type ContainerProps, Divider, type DividerProps, Grid, GridItem, type GridItemProps, type GridProps, HStack, Resizable, type ResizableProps, ScrollArea, type ScrollAreaProps, type SpaceToken, Spacer, type SpacerProps, Stack, type StackProps, VStack };
177
+ export { AspectRatio, Center, Container, Divider, Grid, GridItem, HStack, Resizable, ScrollArea, Spacer, Stack, VStack };
178
+ export type { AspectRatioProps, ContainerProps, DividerProps, GridItemProps, GridProps, ResizableProps, ScrollAreaProps, SpaceToken, SpacerProps, StackProps };
package/dist/layout.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { HTMLAttributes, ElementType, ReactNode, CSSProperties } from 'react';
3
- export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-D-PafAXw.js';
3
+ export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-Dyt67t2z.js';
4
4
 
5
5
  /**
6
6
  * Layout primitives.
@@ -19,6 +19,7 @@ interface BaseProps extends HTMLAttributes<HTMLElement> {
19
19
  as?: ElementType;
20
20
  children?: ReactNode;
21
21
  }
22
+
22
23
  interface StackProps extends BaseProps {
23
24
  /** Default `'vertical'` — the direction that needs a helper more often. */
24
25
  direction?: 'horizontal' | 'vertical';
@@ -49,6 +50,7 @@ declare const Stack: react.ForwardRefExoticComponent<StackProps & react.RefAttri
49
50
  declare const HStack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLElement>>;
50
51
  /** Vertical `Stack`, for symmetry with `HStack`. */
51
52
  declare const VStack: react.ForwardRefExoticComponent<StackProps & react.RefAttributes<HTMLElement>>;
53
+
52
54
  interface GridProps extends BaseProps {
53
55
  /** Fixed column count, or `'auto'` for a responsive `auto-fill` track. */
54
56
  columns?: number | 'auto';
@@ -73,6 +75,7 @@ interface GridItemProps extends BaseProps {
73
75
  rowSpan?: number;
74
76
  }
75
77
  declare const GridItem: react.ForwardRefExoticComponent<GridItemProps & react.RefAttributes<HTMLElement>>;
78
+
76
79
  interface ContainerProps extends BaseProps {
77
80
  /** Max content width. Default `'lg'` (72rem). */
78
81
  size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
@@ -81,6 +84,7 @@ interface ContainerProps extends BaseProps {
81
84
  }
82
85
  /** Centred, width-constrained page content. */
83
86
  declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLElement>>;
87
+
84
88
  interface DividerProps extends Omit<BaseProps, 'children'> {
85
89
  orientation?: 'horizontal' | 'vertical';
86
90
  /** Optional label rendered in the middle of the rule. */
@@ -94,6 +98,7 @@ interface DividerProps extends Omit<BaseProps, 'children'> {
94
98
  * announcing it as a separator loses the text.
95
99
  */
96
100
  declare const Divider: react.ForwardRefExoticComponent<DividerProps & react.RefAttributes<HTMLDivElement>>;
101
+
97
102
  interface SpacerProps {
98
103
  size?: SpaceToken;
99
104
  /** Grow to absorb free space in a flex container. */
@@ -101,8 +106,10 @@ interface SpacerProps {
101
106
  }
102
107
  /** Explicit empty space. `grow` pushes siblings apart in a flex row. */
103
108
  declare function Spacer({ size, grow }: SpacerProps): react.JSX.Element;
109
+
104
110
  /** Centre a child on both axes. */
105
111
  declare const Center: react.ForwardRefExoticComponent<BaseProps & react.RefAttributes<HTMLElement>>;
112
+
106
113
  interface AspectRatioProps extends BaseProps {
107
114
  /** Width ÷ height. `16 / 9` reads better than `1.777`. Default `16 / 9`. */
108
115
  ratio?: number;
@@ -115,6 +122,7 @@ interface AspectRatioProps extends BaseProps {
115
122
  * Shift penalty and the most common cause of a failing Core Web Vitals score.
116
123
  */
117
124
  declare const AspectRatio: react.ForwardRefExoticComponent<AspectRatioProps & react.RefAttributes<HTMLElement>>;
125
+
118
126
  interface ScrollAreaProps extends BaseProps {
119
127
  /** Max height before scrolling starts. */
120
128
  maxHeight?: string;
@@ -166,4 +174,5 @@ interface ResizableProps {
166
174
  */
167
175
  declare function Resizable({ children, direction, defaultSize, size, onSizeChange, minSize, maxSize, snapPoints, className, label, }: ResizableProps): react.JSX.Element;
168
176
 
169
- export { AspectRatio, type AspectRatioProps, Center, Container, type ContainerProps, Divider, type DividerProps, Grid, GridItem, type GridItemProps, type GridProps, HStack, Resizable, type ResizableProps, ScrollArea, type ScrollAreaProps, type SpaceToken, Spacer, type SpacerProps, Stack, type StackProps, VStack };
177
+ export { AspectRatio, Center, Container, Divider, Grid, GridItem, HStack, Resizable, ScrollArea, Spacer, Stack, VStack };
178
+ export type { AspectRatioProps, ContainerProps, DividerProps, GridItemProps, GridProps, ResizableProps, ScrollAreaProps, SpaceToken, SpacerProps, StackProps };
package/dist/layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { AspectRatio, Center, Container, Divider, Grid, GridItem, HStack, Resizable, ScrollArea, Spacer, Stack, VStack } from './chunk-EGG4CP7C.js';
2
+ export { AspectRatio, Center, Container, Divider, Grid, GridItem, HStack, Resizable, ScrollArea, Spacer, Stack, VStack } from './chunk-BQJ6H3HC.js';
3
3
  export { AppShell, Sidebar } from './chunk-5CFQFMP5.js';
4
4
  import './chunk-LXCIXR5T.js';
5
5
  import './chunk-H34OXXJU.js';
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties, ElementType, 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
- import './use-observers-B9qtimrk.js';
5
+ import './use-observers-DvA7hSz4.js';
6
6
 
7
7
  /**
8
8
  * Declarative motion.
@@ -392,4 +392,5 @@ declare const ScrollReveal: BehaviourComponent<_ansh_ui_core.ScrollRevealOptions
392
392
  */
393
393
  declare const Parallax: BehaviourComponent<_ansh_ui_core.ParallaxOptions, HTMLElement>;
394
394
 
395
- export { AnimatePresence as A, type BehaviourComponent as B, Draggable as D, GradientText as G, MagneticButton as M, Parallax as P, Ripple as R, ScrollReveal as S, type ThemeContextValue as T, type AnimatePresenceProps as a, AnimatedText as b, type AnimatedTextProps as c, type BehaviourComponentBaseProps as d, type BehaviourComponentProps as e, type DraggableProps as f, type GradientTextProps as g, Marquee as h, Motion as i, MotionConfig as j, type MotionConfigProps as k, type MotionConfigValue as l, type MotionTransition as m, type MotionValues as n, ThemeProvider as o, type ThemeProviderProps as p, type ThemeSetting as q, TiltCard as r, createBehaviourComponent as s, themeScript as t, useBehaviour as u, useMotionConfig as v, useTheme as w };
395
+ export { AnimatePresence as A, Draggable as D, GradientText as G, MagneticButton as M, Parallax as P, Ripple as R, ScrollReveal as S, AnimatedText as b, Marquee as h, Motion as i, MotionConfig as j, ThemeProvider as o, TiltCard as r, createBehaviourComponent as s, themeScript as t, useBehaviour as u, useMotionConfig as v, useTheme as w };
396
+ export type { BehaviourComponent as B, ThemeContextValue as T, AnimatePresenceProps as a, AnimatedTextProps as c, BehaviourComponentBaseProps as d, BehaviourComponentProps as e, DraggableProps as f, GradientTextProps as g, MotionConfigProps as k, MotionConfigValue as l, MotionTransition as m, MotionValues as n, ThemeProviderProps as p, ThemeSetting as q };
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties, ElementType, 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
- import './use-observers-B9qtimrk.cjs';
5
+ import './use-observers-DvA7hSz4.cjs';
6
6
 
7
7
  /**
8
8
  * Declarative motion.
@@ -392,4 +392,5 @@ declare const ScrollReveal: BehaviourComponent<_ansh_ui_core.ScrollRevealOptions
392
392
  */
393
393
  declare const Parallax: BehaviourComponent<_ansh_ui_core.ParallaxOptions, HTMLElement>;
394
394
 
395
- export { AnimatePresence as A, type BehaviourComponent as B, Draggable as D, GradientText as G, MagneticButton as M, Parallax as P, Ripple as R, ScrollReveal as S, type ThemeContextValue as T, type AnimatePresenceProps as a, AnimatedText as b, type AnimatedTextProps as c, type BehaviourComponentBaseProps as d, type BehaviourComponentProps as e, type DraggableProps as f, type GradientTextProps as g, Marquee as h, Motion as i, MotionConfig as j, type MotionConfigProps as k, type MotionConfigValue as l, type MotionTransition as m, type MotionValues as n, ThemeProvider as o, type ThemeProviderProps as p, type ThemeSetting as q, TiltCard as r, createBehaviourComponent as s, themeScript as t, useBehaviour as u, useMotionConfig as v, useTheme as w };
395
+ export { AnimatePresence as A, Draggable as D, GradientText as G, MagneticButton as M, Parallax as P, Ripple as R, ScrollReveal as S, AnimatedText as b, Marquee as h, Motion as i, MotionConfig as j, ThemeProvider as o, TiltCard as r, createBehaviourComponent as s, themeScript as t, useBehaviour as u, useMotionConfig as v, useTheme as w };
396
+ export type { BehaviourComponent as B, ThemeContextValue as T, AnimatePresenceProps as a, AnimatedTextProps as c, BehaviourComponentBaseProps as d, BehaviourComponentProps as e, DraggableProps as f, GradientTextProps as g, MotionConfigProps as k, MotionConfigValue as l, MotionTransition as m, MotionValues as n, ThemeProviderProps as p, ThemeSetting as q };
package/dist/motion.cjs CHANGED
@@ -1,79 +1,79 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkAVPEA5PB_cjs = require('./chunk-AVPEA5PB.cjs');
5
- var chunk6VRF7X5C_cjs = require('./chunk-6VRF7X5C.cjs');
4
+ var chunkIZ6T7LO3_cjs = require('./chunk-IZ6T7LO3.cjs');
5
+ var chunkTEPQGFR4_cjs = require('./chunk-TEPQGFR4.cjs');
6
6
  require('./chunk-SFU5EPSN.cjs');
7
7
 
8
8
 
9
9
 
10
10
  Object.defineProperty(exports, "AnimatePresence", {
11
11
  enumerable: true,
12
- get: function () { return chunkAVPEA5PB_cjs.AnimatePresence; }
12
+ get: function () { return chunkIZ6T7LO3_cjs.AnimatePresence; }
13
13
  });
14
14
  Object.defineProperty(exports, "AnimatedText", {
15
15
  enumerable: true,
16
- get: function () { return chunkAVPEA5PB_cjs.AnimatedText; }
16
+ get: function () { return chunkIZ6T7LO3_cjs.AnimatedText; }
17
17
  });
18
18
  Object.defineProperty(exports, "Draggable", {
19
19
  enumerable: true,
20
- get: function () { return chunkAVPEA5PB_cjs.Draggable; }
20
+ get: function () { return chunkIZ6T7LO3_cjs.Draggable; }
21
21
  });
22
22
  Object.defineProperty(exports, "GradientText", {
23
23
  enumerable: true,
24
- get: function () { return chunkAVPEA5PB_cjs.GradientText; }
24
+ get: function () { return chunkIZ6T7LO3_cjs.GradientText; }
25
25
  });
26
26
  Object.defineProperty(exports, "MagneticButton", {
27
27
  enumerable: true,
28
- get: function () { return chunkAVPEA5PB_cjs.MagneticButton; }
28
+ get: function () { return chunkIZ6T7LO3_cjs.MagneticButton; }
29
29
  });
30
30
  Object.defineProperty(exports, "Marquee", {
31
31
  enumerable: true,
32
- get: function () { return chunkAVPEA5PB_cjs.Marquee; }
32
+ get: function () { return chunkIZ6T7LO3_cjs.Marquee; }
33
33
  });
34
34
  Object.defineProperty(exports, "Motion", {
35
35
  enumerable: true,
36
- get: function () { return chunkAVPEA5PB_cjs.Motion; }
36
+ get: function () { return chunkIZ6T7LO3_cjs.Motion; }
37
37
  });
38
38
  Object.defineProperty(exports, "MotionConfig", {
39
39
  enumerable: true,
40
- get: function () { return chunkAVPEA5PB_cjs.MotionConfig; }
40
+ get: function () { return chunkIZ6T7LO3_cjs.MotionConfig; }
41
41
  });
42
42
  Object.defineProperty(exports, "Parallax", {
43
43
  enumerable: true,
44
- get: function () { return chunkAVPEA5PB_cjs.Parallax; }
44
+ get: function () { return chunkIZ6T7LO3_cjs.Parallax; }
45
45
  });
46
46
  Object.defineProperty(exports, "Ripple", {
47
47
  enumerable: true,
48
- get: function () { return chunkAVPEA5PB_cjs.Ripple; }
48
+ get: function () { return chunkIZ6T7LO3_cjs.Ripple; }
49
49
  });
50
50
  Object.defineProperty(exports, "ScrollReveal", {
51
51
  enumerable: true,
52
- get: function () { return chunkAVPEA5PB_cjs.ScrollReveal; }
52
+ get: function () { return chunkIZ6T7LO3_cjs.ScrollReveal; }
53
53
  });
54
54
  Object.defineProperty(exports, "ThemeProvider", {
55
55
  enumerable: true,
56
- get: function () { return chunkAVPEA5PB_cjs.ThemeProvider; }
56
+ get: function () { return chunkIZ6T7LO3_cjs.ThemeProvider; }
57
57
  });
58
58
  Object.defineProperty(exports, "TiltCard", {
59
59
  enumerable: true,
60
- get: function () { return chunkAVPEA5PB_cjs.TiltCard; }
60
+ get: function () { return chunkIZ6T7LO3_cjs.TiltCard; }
61
61
  });
62
62
  Object.defineProperty(exports, "themeScript", {
63
63
  enumerable: true,
64
- get: function () { return chunkAVPEA5PB_cjs.themeScript; }
64
+ get: function () { return chunkIZ6T7LO3_cjs.themeScript; }
65
65
  });
66
66
  Object.defineProperty(exports, "useMotionConfig", {
67
67
  enumerable: true,
68
- get: function () { return chunkAVPEA5PB_cjs.useMotionConfig; }
68
+ get: function () { return chunkIZ6T7LO3_cjs.useMotionConfig; }
69
69
  });
70
70
  Object.defineProperty(exports, "useTheme", {
71
71
  enumerable: true,
72
- get: function () { return chunkAVPEA5PB_cjs.useTheme; }
72
+ get: function () { return chunkIZ6T7LO3_cjs.useTheme; }
73
73
  });
74
74
  Object.defineProperty(exports, "useMergedRef", {
75
75
  enumerable: true,
76
- get: function () { return chunk6VRF7X5C_cjs.useMergedRef; }
76
+ get: function () { return chunkTEPQGFR4_cjs.useMergedRef; }
77
77
  });
78
78
  //# sourceMappingURL=motion.cjs.map
79
79
  //# sourceMappingURL=motion.cjs.map
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-CSX4g2N8.cjs';
2
- export { c as useMergedRef } from './use-observers-B9qtimrk.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-DsQPOsTT.cjs';
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-CQmCq6_k.js';
2
- export { c as useMergedRef } from './use-observers-B9qtimrk.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-DoT_sTl1.js';
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,6 +1,6 @@
1
1
  'use client';
2
- export { AnimatePresence, AnimatedText, Draggable, GradientText, MagneticButton, Marquee, Motion, MotionConfig, Parallax, Ripple, ScrollReveal, ThemeProvider, TiltCard, themeScript, useMotionConfig, useTheme } from './chunk-T4AK2KLM.js';
3
- export { useMergedRef } from './chunk-IBXLC5IE.js';
2
+ export { AnimatePresence, AnimatedText, Draggable, GradientText, MagneticButton, Marquee, Motion, MotionConfig, Parallax, Ripple, ScrollReveal, ThemeProvider, TiltCard, themeScript, useMotionConfig, useTheme } from './chunk-PVDQPVYF.js';
3
+ export { useMergedRef } from './chunk-P5MRISBP.js';
4
4
  import './chunk-H34OXXJU.js';
5
5
  //# sourceMappingURL=motion.js.map
6
6
  //# sourceMappingURL=motion.js.map
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-D-PafAXw.cjs';
3
+ export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-Dyt67t2z.cjs';
4
4
 
5
5
  interface TabItem {
6
6
  id: string;
@@ -207,4 +207,5 @@ interface DisclosureListProps {
207
207
  /** Show a few items with a "show N more" toggle. */
208
208
  declare function DisclosureList({ items, initial, moreLabel, lessLabel, className, }: DisclosureListProps): react.JSX.Element;
209
209
 
210
- export { Accordion, type AccordionItem, type AccordionProps, Breadcrumbs, type BreadcrumbsProps, Collapsible, type CollapsibleProps, type Crumb, DisclosureList, type DisclosureListProps, type MegaMenuColumn, type MegaMenuLink, type NavMenuItem, NavigationMenu, type NavigationMenuProps, type Step, Stepper, type StepperProps, type TabItem, Tabs, type TabsProps };
210
+ export { Accordion, Breadcrumbs, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs };
211
+ export type { AccordionItem, AccordionProps, BreadcrumbsProps, CollapsibleProps, Crumb, DisclosureListProps, MegaMenuColumn, MegaMenuLink, NavMenuItem, NavigationMenuProps, Step, StepperProps, TabItem, TabsProps };
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-D-PafAXw.js';
3
+ export { A as AppShell, a as AppShellProps, N as NavItem, b as NavSection, S as Sidebar, c as SidebarProps } from './sidebar-Dyt67t2z.js';
4
4
 
5
5
  interface TabItem {
6
6
  id: string;
@@ -207,4 +207,5 @@ interface DisclosureListProps {
207
207
  /** Show a few items with a "show N more" toggle. */
208
208
  declare function DisclosureList({ items, initial, moreLabel, lessLabel, className, }: DisclosureListProps): react.JSX.Element;
209
209
 
210
- export { Accordion, type AccordionItem, type AccordionProps, Breadcrumbs, type BreadcrumbsProps, Collapsible, type CollapsibleProps, type Crumb, DisclosureList, type DisclosureListProps, type MegaMenuColumn, type MegaMenuLink, type NavMenuItem, NavigationMenu, type NavigationMenuProps, type Step, Stepper, type StepperProps, type TabItem, Tabs, type TabsProps };
210
+ export { Accordion, Breadcrumbs, Collapsible, DisclosureList, NavigationMenu, Stepper, Tabs };
211
+ export type { AccordionItem, AccordionProps, BreadcrumbsProps, CollapsibleProps, Crumb, DisclosureListProps, MegaMenuColumn, MegaMenuLink, NavMenuItem, NavigationMenuProps, Step, StepperProps, TabItem, TabsProps };
package/dist/overlay.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkC5JG6TMM_cjs = require('./chunk-C5JG6TMM.cjs');
5
- require('./chunk-C32LKF23.cjs');
4
+ var chunkYACOHFYJ_cjs = require('./chunk-YACOHFYJ.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 chunkC5JG6TMM_cjs.AlertDialog; }
14
+ get: function () { return chunkYACOHFYJ_cjs.AlertDialog; }
15
15
  });
16
16
  Object.defineProperty(exports, "CommandPalette", {
17
17
  enumerable: true,
18
- get: function () { return chunkC5JG6TMM_cjs.CommandPalette; }
18
+ get: function () { return chunkYACOHFYJ_cjs.CommandPalette; }
19
19
  });
20
20
  Object.defineProperty(exports, "ContextMenu", {
21
21
  enumerable: true,
22
- get: function () { return chunkC5JG6TMM_cjs.ContextMenu; }
22
+ get: function () { return chunkYACOHFYJ_cjs.ContextMenu; }
23
23
  });
24
24
  Object.defineProperty(exports, "Dialog", {
25
25
  enumerable: true,
26
- get: function () { return chunkC5JG6TMM_cjs.Dialog; }
26
+ get: function () { return chunkYACOHFYJ_cjs.Dialog; }
27
27
  });
28
28
  Object.defineProperty(exports, "DialogFooter", {
29
29
  enumerable: true,
30
- get: function () { return chunkC5JG6TMM_cjs.DialogFooter; }
30
+ get: function () { return chunkYACOHFYJ_cjs.DialogFooter; }
31
31
  });
32
32
  Object.defineProperty(exports, "Drawer", {
33
33
  enumerable: true,
34
- get: function () { return chunkC5JG6TMM_cjs.Drawer; }
34
+ get: function () { return chunkYACOHFYJ_cjs.Drawer; }
35
35
  });
36
36
  Object.defineProperty(exports, "DropdownMenu", {
37
37
  enumerable: true,
38
- get: function () { return chunkC5JG6TMM_cjs.DropdownMenu; }
38
+ get: function () { return chunkYACOHFYJ_cjs.DropdownMenu; }
39
39
  });
40
40
  Object.defineProperty(exports, "HoverCard", {
41
41
  enumerable: true,
42
- get: function () { return chunkC5JG6TMM_cjs.HoverCard; }
42
+ get: function () { return chunkYACOHFYJ_cjs.HoverCard; }
43
43
  });
44
44
  Object.defineProperty(exports, "Popover", {
45
45
  enumerable: true,
46
- get: function () { return chunkC5JG6TMM_cjs.Popover; }
46
+ get: function () { return chunkYACOHFYJ_cjs.Popover; }
47
47
  });
48
48
  Object.defineProperty(exports, "PopoverContent", {
49
49
  enumerable: true,
50
- get: function () { return chunkC5JG6TMM_cjs.PopoverContent; }
50
+ get: function () { return chunkYACOHFYJ_cjs.PopoverContent; }
51
51
  });
52
52
  Object.defineProperty(exports, "PopoverTrigger", {
53
53
  enumerable: true,
54
- get: function () { return chunkC5JG6TMM_cjs.PopoverTrigger; }
54
+ get: function () { return chunkYACOHFYJ_cjs.PopoverTrigger; }
55
55
  });
56
56
  Object.defineProperty(exports, "Tooltip", {
57
57
  enumerable: true,
58
- get: function () { return chunkC5JG6TMM_cjs.Tooltip; }
58
+ get: function () { return chunkYACOHFYJ_cjs.Tooltip; }
59
59
  });
60
60
  Object.defineProperty(exports, "TooltipProvider", {
61
61
  enumerable: true,
62
- get: function () { return chunkC5JG6TMM_cjs.TooltipProvider; }
62
+ get: function () { return chunkYACOHFYJ_cjs.TooltipProvider; }
63
63
  });
64
64
  Object.defineProperty(exports, "useCommandShortcut", {
65
65
  enumerable: true,
66
- get: function () { return chunkC5JG6TMM_cjs.useCommandShortcut; }
66
+ get: function () { return chunkYACOHFYJ_cjs.useCommandShortcut; }
67
67
  });
68
68
  //# sourceMappingURL=overlay.cjs.map
69
69
  //# sourceMappingURL=overlay.cjs.map
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { P as Placement } from './position-DVScKcaa.cjs';
3
+ import { Placement } from './index.cjs';
4
4
 
5
5
  /**
6
6
  * A command palette.
@@ -327,4 +327,5 @@ interface ContextMenuProps {
327
327
  */
328
328
  declare function ContextMenu({ items, label, className, children, }: ContextMenuProps): react.JSX.Element;
329
329
 
330
- export { AlertDialog, type AlertDialogProps, type CommandItem, CommandPalette, type CommandPaletteProps, ContextMenu, type ContextMenuProps, Dialog, DialogFooter, type DialogProps, type DialogSize, Drawer, type DrawerProps, type DrawerSide, DropdownMenu, HoverCard, type HoverCardProps, type MenuAction, type MenuCheckbox, type MenuEntry, type MenuProps, type MenuRadioGroup, type MenuSubmenu, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, useCommandShortcut };
330
+ export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut };
331
+ 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 { P as Placement } from './position-DVScKcaa.js';
3
+ import { Placement } from './index.js';
4
4
 
5
5
  /**
6
6
  * A command palette.
@@ -327,4 +327,5 @@ interface ContextMenuProps {
327
327
  */
328
328
  declare function ContextMenu({ items, label, className, children, }: ContextMenuProps): react.JSX.Element;
329
329
 
330
- export { AlertDialog, type AlertDialogProps, type CommandItem, CommandPalette, type CommandPaletteProps, ContextMenu, type ContextMenuProps, Dialog, DialogFooter, type DialogProps, type DialogSize, Drawer, type DrawerProps, type DrawerSide, DropdownMenu, HoverCard, type HoverCardProps, type MenuAction, type MenuCheckbox, type MenuEntry, type MenuProps, type MenuRadioGroup, type MenuSubmenu, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, useCommandShortcut };
330
+ export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut };
331
+ 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-LDCZQP3R.js';
3
- import './chunk-HO2YSF5O.js';
2
+ export { AlertDialog, CommandPalette, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider, useCommandShortcut } from './chunk-CWYBOVCZ.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 { type Align as A, type Placement as P, type Rect as R, type Side as S, type PositionOptions as a, type PositionResult as b, computePosition as c };
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 { type Align as A, type Placement as P, type Rect as R, type Side as S, type PositionOptions as a, type PositionResult as b, computePosition as c };
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 };