@ansh-ui/vue 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HIVA75XC.js → chunk-D3HH726R.js} +151 -143
- package/dist/chunk-D3HH726R.js.map +1 -0
- package/dist/{chunk-FK536ZUI.cjs → chunk-EDAF7RAN.cjs} +150 -142
- package/dist/chunk-EDAF7RAN.cjs.map +1 -0
- package/dist/{chunk-LRTNIUAG.js → chunk-G3EIU6VM.js} +13 -7
- package/dist/chunk-G3EIU6VM.js.map +1 -0
- package/dist/{chunk-J2LA4GRP.cjs → chunk-IO6WJEJI.cjs} +122 -120
- package/dist/chunk-IO6WJEJI.cjs.map +1 -0
- package/dist/{chunk-IK3E4MPB.cjs → chunk-JJBYF7AH.cjs} +13 -7
- package/dist/chunk-JJBYF7AH.cjs.map +1 -0
- package/dist/{chunk-Z7XOFKM4.cjs → chunk-KKCZ5RUE.cjs} +4 -2
- package/dist/chunk-KKCZ5RUE.cjs.map +1 -0
- package/dist/{chunk-6ABPGOJP.js → chunk-LFGAOD32.js} +4 -2
- package/dist/chunk-LFGAOD32.js.map +1 -0
- package/dist/{chunk-FVKLCGA4.js → chunk-NJMTWLT2.js} +123 -121
- package/dist/chunk-NJMTWLT2.js.map +1 -0
- package/dist/data.cjs +16 -16
- package/dist/data.d.cts +46 -45
- package/dist/data.d.ts +46 -45
- package/dist/data.js +1 -1
- package/dist/form.cjs +36 -36
- package/dist/form.d.cts +51 -44
- package/dist/form.d.ts +51 -44
- package/dist/form.js +1 -1
- package/dist/index.cjs +134 -134
- package/dist/index.js +8 -8
- package/dist/layout.d.cts +2 -2
- package/dist/layout.d.ts +2 -2
- package/dist/motion.cjs +11 -11
- package/dist/motion.d.cts +28 -25
- package/dist/motion.d.ts +28 -25
- package/dist/motion.js +1 -1
- package/dist/navigation.d.cts +2 -2
- package/dist/navigation.d.ts +2 -2
- package/dist/overlay.cjs +13 -13
- package/dist/overlay.d.cts +29 -27
- package/dist/overlay.d.ts +29 -27
- package/dist/overlay.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-6ABPGOJP.js.map +0 -1
- package/dist/chunk-FK536ZUI.cjs.map +0 -1
- package/dist/chunk-FVKLCGA4.js.map +0 -1
- package/dist/chunk-HIVA75XC.js.map +0 -1
- package/dist/chunk-IK3E4MPB.cjs.map +0 -1
- package/dist/chunk-J2LA4GRP.cjs.map +0 -1
- package/dist/chunk-LRTNIUAG.js.map +0 -1
- package/dist/chunk-Z7XOFKM4.cjs.map +0 -1
package/dist/motion.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKKCZ5RUE_cjs = require('./chunk-KKCZ5RUE.cjs');
|
|
4
4
|
require('./chunk-PP6OYURM.cjs');
|
|
5
5
|
require('./chunk-6732H4BQ.cjs');
|
|
6
6
|
|
|
@@ -8,43 +8,43 @@ require('./chunk-6732H4BQ.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "AnimatePresence", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkKKCZ5RUE_cjs.AnimatePresence; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "AnimatedText", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkKKCZ5RUE_cjs.AnimatedText; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "Draggable", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkKKCZ5RUE_cjs.Draggable; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "GradientText", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkKKCZ5RUE_cjs.GradientText; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "Motion", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkKKCZ5RUE_cjs.Motion; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "MotionConfig", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkKKCZ5RUE_cjs.MotionConfig; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "ThemeProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkKKCZ5RUE_cjs.ThemeProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "themeScript", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkKKCZ5RUE_cjs.themeScript; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "useMotionConfig", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkKKCZ5RUE_cjs.useMotionConfig; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "useTheme", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkKKCZ5RUE_cjs.useTheme; }
|
|
48
48
|
});
|
|
49
49
|
//# sourceMappingURL=motion.cjs.map
|
|
50
50
|
//# sourceMappingURL=motion.cjs.map
|
package/dist/motion.d.cts
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import * as vue from 'vue';
|
|
2
|
-
import { VNode, PropType, ComputedRef } from 'vue';
|
|
3
1
|
import { EasingInput, SpringOptions, springs, StaggerFrom, ColorInput, ReducedMotionMode } from '@ansh-ui/core';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
import { PropType, VNode, ComputedRef } from 'vue';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Declarative motion — the Vue counterpart of `@ansh-ui/react`'s `Motion`/`AnimatePresence`/
|
|
7
|
-
* `Draggable`.
|
|
8
|
-
*
|
|
9
|
-
* A deliberately **small** subset of what a full motion library does: transform properties and
|
|
10
|
-
* opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
|
|
11
|
-
* when paired with `AnimatePresence`.
|
|
12
|
-
*
|
|
13
|
-
* That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
|
|
14
|
-
* variant propagation each need machinery an order of magnitude larger than this file, and a
|
|
15
|
-
* half-implementation of them is worse than none — it works in the demo and fails on the real page.
|
|
16
|
-
* For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
|
|
17
|
-
* card on hover", this costs a fraction of the bundle.
|
|
18
|
-
*
|
|
19
|
-
* Values are written straight to the element's `style` from the ticker's write phase, outside Vue's
|
|
20
|
-
* reactivity — the same principle `useMotionStyle` documents in `composables/use-motion.ts`. `Motion`
|
|
21
|
-
* and `Draggable` are built on `useAnimate()` (scope-bound imperative animation, auto-stopping the
|
|
22
|
-
* previous run) and `useInView()` (the `whileInView` trigger) rather than calling the ticker
|
|
23
|
-
* primitives from scratch, so cleanup and scope-disposal are inherited for free.
|
|
24
|
-
*/
|
|
25
5
|
interface MotionValues {
|
|
26
6
|
opacity?: number;
|
|
27
7
|
x?: number;
|
|
@@ -42,6 +22,27 @@ interface MotionTransition {
|
|
|
42
22
|
/** Use a spring instead of a tween. `true` uses the `smooth` preset. */
|
|
43
23
|
spring?: boolean | SpringOptions | keyof typeof springs;
|
|
44
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Declarative motion — the Vue counterpart of `@ansh-ui/react`'s `Motion`/`AnimatePresence`/
|
|
28
|
+
* `Draggable`.
|
|
29
|
+
*
|
|
30
|
+
* A deliberately **small** subset of what a full motion library does: transform properties and
|
|
31
|
+
* opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
|
|
32
|
+
* when paired with `AnimatePresence`.
|
|
33
|
+
*
|
|
34
|
+
* That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
|
|
35
|
+
* variant propagation each need machinery an order of magnitude larger than this file, and a
|
|
36
|
+
* half-implementation of them is worse than none — it works in the demo and fails on the real page.
|
|
37
|
+
* For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
|
|
38
|
+
* card on hover", this costs a fraction of the bundle.
|
|
39
|
+
*
|
|
40
|
+
* Values are written straight to the element's `style` from the ticker's write phase, outside Vue's
|
|
41
|
+
* reactivity — the same principle `useMotionStyle` documents in `composables/use-motion.ts`. `Motion`
|
|
42
|
+
* and `Draggable` are built on `useAnimate()` (scope-bound imperative animation, auto-stopping the
|
|
43
|
+
* previous run) and `useInView()` (the `whileInView` trigger) rather than calling the ticker
|
|
44
|
+
* primitives from scratch, so cleanup and scope-disposal are inherited for free.
|
|
45
|
+
*/
|
|
45
46
|
/**
|
|
46
47
|
* An animated element.
|
|
47
48
|
*
|
|
@@ -92,7 +93,7 @@ declare const Motion: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
92
93
|
type: NumberConstructor;
|
|
93
94
|
default: number;
|
|
94
95
|
};
|
|
95
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
96
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
96
97
|
[key: string]: any;
|
|
97
98
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
98
99
|
as: {
|
|
@@ -139,13 +140,14 @@ declare const Motion: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
139
140
|
as: string;
|
|
140
141
|
initial: MotionValues;
|
|
141
142
|
animate: MotionValues;
|
|
142
|
-
exit: MotionValues;
|
|
143
143
|
transition: MotionTransition;
|
|
144
|
+
exit: MotionValues;
|
|
144
145
|
whileHover: MotionValues;
|
|
145
146
|
whileTap: MotionValues;
|
|
146
147
|
whileInView: boolean;
|
|
147
148
|
inViewAmount: number;
|
|
148
149
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
150
|
+
|
|
149
151
|
interface AnimatePresenceProps {
|
|
150
152
|
/** Seconds to keep a removed child mounted. Default `0.35`. */
|
|
151
153
|
exitDuration?: number;
|
|
@@ -181,6 +183,7 @@ declare const AnimatePresence: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
181
183
|
}>> & Readonly<{}>, {
|
|
182
184
|
exitDuration: number;
|
|
183
185
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
186
|
+
|
|
184
187
|
interface DraggableProps {
|
|
185
188
|
/** Constrain movement. */
|
|
186
189
|
axis?: 'x' | 'y' | 'both';
|
|
@@ -229,7 +232,7 @@ declare const Draggable: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
229
232
|
type: BooleanConstructor;
|
|
230
233
|
default: undefined;
|
|
231
234
|
};
|
|
232
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
235
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
233
236
|
[key: string]: any;
|
|
234
237
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("dragStart" | "dragEnd")[], "dragStart" | "dragEnd", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
235
238
|
axis: {
|
package/dist/motion.d.ts
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import * as vue from 'vue';
|
|
2
|
-
import { VNode, PropType, ComputedRef } from 'vue';
|
|
3
1
|
import { EasingInput, SpringOptions, springs, StaggerFrom, ColorInput, ReducedMotionMode } from '@ansh-ui/core';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
import { PropType, VNode, ComputedRef } from 'vue';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Declarative motion — the Vue counterpart of `@ansh-ui/react`'s `Motion`/`AnimatePresence`/
|
|
7
|
-
* `Draggable`.
|
|
8
|
-
*
|
|
9
|
-
* A deliberately **small** subset of what a full motion library does: transform properties and
|
|
10
|
-
* opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
|
|
11
|
-
* when paired with `AnimatePresence`.
|
|
12
|
-
*
|
|
13
|
-
* That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
|
|
14
|
-
* variant propagation each need machinery an order of magnitude larger than this file, and a
|
|
15
|
-
* half-implementation of them is worse than none — it works in the demo and fails on the real page.
|
|
16
|
-
* For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
|
|
17
|
-
* card on hover", this costs a fraction of the bundle.
|
|
18
|
-
*
|
|
19
|
-
* Values are written straight to the element's `style` from the ticker's write phase, outside Vue's
|
|
20
|
-
* reactivity — the same principle `useMotionStyle` documents in `composables/use-motion.ts`. `Motion`
|
|
21
|
-
* and `Draggable` are built on `useAnimate()` (scope-bound imperative animation, auto-stopping the
|
|
22
|
-
* previous run) and `useInView()` (the `whileInView` trigger) rather than calling the ticker
|
|
23
|
-
* primitives from scratch, so cleanup and scope-disposal are inherited for free.
|
|
24
|
-
*/
|
|
25
5
|
interface MotionValues {
|
|
26
6
|
opacity?: number;
|
|
27
7
|
x?: number;
|
|
@@ -42,6 +22,27 @@ interface MotionTransition {
|
|
|
42
22
|
/** Use a spring instead of a tween. `true` uses the `smooth` preset. */
|
|
43
23
|
spring?: boolean | SpringOptions | keyof typeof springs;
|
|
44
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Declarative motion — the Vue counterpart of `@ansh-ui/react`'s `Motion`/`AnimatePresence`/
|
|
28
|
+
* `Draggable`.
|
|
29
|
+
*
|
|
30
|
+
* A deliberately **small** subset of what a full motion library does: transform properties and
|
|
31
|
+
* opacity, animated from `initial` to `animate`, plus hover and press states and an exit animation
|
|
32
|
+
* when paired with `AnimatePresence`.
|
|
33
|
+
*
|
|
34
|
+
* That scope is a decision, not a gap. Layout animation (FLIP), shared-element transitions and
|
|
35
|
+
* variant propagation each need machinery an order of magnitude larger than this file, and a
|
|
36
|
+
* half-implementation of them is worse than none — it works in the demo and fails on the real page.
|
|
37
|
+
* For those, use a dedicated library; for the 90% case of "fade this in, slide that up, spring the
|
|
38
|
+
* card on hover", this costs a fraction of the bundle.
|
|
39
|
+
*
|
|
40
|
+
* Values are written straight to the element's `style` from the ticker's write phase, outside Vue's
|
|
41
|
+
* reactivity — the same principle `useMotionStyle` documents in `composables/use-motion.ts`. `Motion`
|
|
42
|
+
* and `Draggable` are built on `useAnimate()` (scope-bound imperative animation, auto-stopping the
|
|
43
|
+
* previous run) and `useInView()` (the `whileInView` trigger) rather than calling the ticker
|
|
44
|
+
* primitives from scratch, so cleanup and scope-disposal are inherited for free.
|
|
45
|
+
*/
|
|
45
46
|
/**
|
|
46
47
|
* An animated element.
|
|
47
48
|
*
|
|
@@ -92,7 +93,7 @@ declare const Motion: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
92
93
|
type: NumberConstructor;
|
|
93
94
|
default: number;
|
|
94
95
|
};
|
|
95
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
96
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
96
97
|
[key: string]: any;
|
|
97
98
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
98
99
|
as: {
|
|
@@ -139,13 +140,14 @@ declare const Motion: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
139
140
|
as: string;
|
|
140
141
|
initial: MotionValues;
|
|
141
142
|
animate: MotionValues;
|
|
142
|
-
exit: MotionValues;
|
|
143
143
|
transition: MotionTransition;
|
|
144
|
+
exit: MotionValues;
|
|
144
145
|
whileHover: MotionValues;
|
|
145
146
|
whileTap: MotionValues;
|
|
146
147
|
whileInView: boolean;
|
|
147
148
|
inViewAmount: number;
|
|
148
149
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
150
|
+
|
|
149
151
|
interface AnimatePresenceProps {
|
|
150
152
|
/** Seconds to keep a removed child mounted. Default `0.35`. */
|
|
151
153
|
exitDuration?: number;
|
|
@@ -181,6 +183,7 @@ declare const AnimatePresence: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
181
183
|
}>> & Readonly<{}>, {
|
|
182
184
|
exitDuration: number;
|
|
183
185
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
186
|
+
|
|
184
187
|
interface DraggableProps {
|
|
185
188
|
/** Constrain movement. */
|
|
186
189
|
axis?: 'x' | 'y' | 'both';
|
|
@@ -229,7 +232,7 @@ declare const Draggable: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
229
232
|
type: BooleanConstructor;
|
|
230
233
|
default: undefined;
|
|
231
234
|
};
|
|
232
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
235
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
233
236
|
[key: string]: any;
|
|
234
237
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("dragStart" | "dragEnd")[], "dragStart" | "dragEnd", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
235
238
|
axis: {
|
package/dist/motion.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AnimatePresence, AnimatedText, Draggable, GradientText, Motion, MotionConfig, ThemeProvider, themeScript, useMotionConfig, useTheme } from './chunk-
|
|
1
|
+
export { AnimatePresence, AnimatedText, Draggable, GradientText, Motion, MotionConfig, ThemeProvider, themeScript, useMotionConfig, useTheme } from './chunk-LFGAOD32.js';
|
|
2
2
|
import './chunk-EVO23GUS.js';
|
|
3
3
|
import './chunk-NJDDNO4C.js';
|
|
4
4
|
//# sourceMappingURL=motion.js.map
|
package/dist/navigation.d.cts
CHANGED
|
@@ -130,10 +130,10 @@ declare const Tabs: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
130
130
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
131
131
|
}>, {
|
|
132
132
|
size: TabsSize;
|
|
133
|
-
orientation: TabsOrientation;
|
|
134
133
|
modelValue: string;
|
|
135
134
|
defaultValue: string;
|
|
136
135
|
variant: TabsVariant;
|
|
136
|
+
orientation: TabsOrientation;
|
|
137
137
|
fitted: boolean;
|
|
138
138
|
activateOnFocus: boolean;
|
|
139
139
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -576,9 +576,9 @@ declare const Accordion: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
576
576
|
}>> & Readonly<{
|
|
577
577
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
578
578
|
}>, {
|
|
579
|
+
multiple: boolean;
|
|
579
580
|
modelValue: readonly string[];
|
|
580
581
|
defaultValue: readonly string[];
|
|
581
|
-
multiple: boolean;
|
|
582
582
|
variant: AccordionVariant;
|
|
583
583
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
584
584
|
interface DisclosureListProps {
|
package/dist/navigation.d.ts
CHANGED
|
@@ -130,10 +130,10 @@ declare const Tabs: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
130
130
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
131
131
|
}>, {
|
|
132
132
|
size: TabsSize;
|
|
133
|
-
orientation: TabsOrientation;
|
|
134
133
|
modelValue: string;
|
|
135
134
|
defaultValue: string;
|
|
136
135
|
variant: TabsVariant;
|
|
136
|
+
orientation: TabsOrientation;
|
|
137
137
|
fitted: boolean;
|
|
138
138
|
activateOnFocus: boolean;
|
|
139
139
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
@@ -576,9 +576,9 @@ declare const Accordion: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
576
576
|
}>> & Readonly<{
|
|
577
577
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
578
578
|
}>, {
|
|
579
|
+
multiple: boolean;
|
|
579
580
|
modelValue: readonly string[];
|
|
580
581
|
defaultValue: readonly string[];
|
|
581
|
-
multiple: boolean;
|
|
582
582
|
variant: AccordionVariant;
|
|
583
583
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
584
584
|
interface DisclosureListProps {
|
package/dist/overlay.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEDAF7RAN_cjs = require('./chunk-EDAF7RAN.cjs');
|
|
4
4
|
require('./chunk-DMPNT3MY.cjs');
|
|
5
5
|
require('./chunk-XLLSS464.cjs');
|
|
6
6
|
require('./chunk-MWGVDY6K.cjs');
|
|
@@ -11,51 +11,51 @@ require('./chunk-6732H4BQ.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "AlertDialog", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkEDAF7RAN_cjs.AlertDialog; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "ContextMenu", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkEDAF7RAN_cjs.ContextMenu; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "Dialog", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkEDAF7RAN_cjs.Dialog; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "DialogFooter", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEDAF7RAN_cjs.DialogFooter; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "Drawer", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkEDAF7RAN_cjs.Drawer; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkEDAF7RAN_cjs.DropdownMenu; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "HoverCard", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkEDAF7RAN_cjs.HoverCard; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "Popover", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkEDAF7RAN_cjs.Popover; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "PopoverContent", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkEDAF7RAN_cjs.PopoverContent; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "PopoverTrigger", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkEDAF7RAN_cjs.PopoverTrigger; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "Tooltip", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkEDAF7RAN_cjs.Tooltip; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "TooltipProvider", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkEDAF7RAN_cjs.TooltipProvider; }
|
|
59
59
|
});
|
|
60
60
|
//# sourceMappingURL=overlay.cjs.map
|
|
61
61
|
//# sourceMappingURL=overlay.cjs.map
|
package/dist/overlay.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { PropType, Ref
|
|
2
|
+
import { PropType, Ref } from 'vue';
|
|
3
3
|
import { Placement } from './index.cjs';
|
|
4
4
|
import { SlotContent } from './index.cjs';
|
|
5
5
|
|
|
@@ -369,9 +369,9 @@ declare const Dialog: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
369
369
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
370
370
|
}>, {
|
|
371
371
|
size: DialogSize;
|
|
372
|
-
description: SlotContent;
|
|
373
372
|
open: boolean;
|
|
374
373
|
defaultOpen: boolean;
|
|
374
|
+
description: SlotContent;
|
|
375
375
|
showClose: boolean;
|
|
376
376
|
dismissable: boolean;
|
|
377
377
|
initialFocus: Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -594,37 +594,15 @@ declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
594
594
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
595
595
|
}>, {
|
|
596
596
|
size: string;
|
|
597
|
-
description: SlotContent;
|
|
598
597
|
side: DrawerSide;
|
|
599
598
|
open: boolean;
|
|
600
599
|
defaultOpen: boolean;
|
|
601
600
|
modal: boolean;
|
|
601
|
+
description: SlotContent;
|
|
602
602
|
showClose: boolean;
|
|
603
603
|
dismissable: boolean;
|
|
604
604
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
605
605
|
|
|
606
|
-
/**
|
|
607
|
-
* Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
|
|
608
|
-
* `ContextMenu`.
|
|
609
|
-
*
|
|
610
|
-
* Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
|
|
611
|
-
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
612
|
-
* expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
|
|
613
|
-
* navigation indices in ways that are painful to debug.
|
|
614
|
-
*
|
|
615
|
-
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
616
|
-
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
617
|
-
* it does in every desktop application.
|
|
618
|
-
*
|
|
619
|
-
* Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
|
|
620
|
-
* `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
|
|
621
|
-
* navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
|
|
622
|
-
* pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
|
|
623
|
-
* elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
|
|
624
|
-
* skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
|
|
625
|
-
* `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
|
|
626
|
-
* directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
|
|
627
|
-
*/
|
|
628
606
|
interface MenuItemBase {
|
|
629
607
|
id?: string;
|
|
630
608
|
disabled?: boolean;
|
|
@@ -668,6 +646,29 @@ type MenuEntry = MenuAction | MenuCheckbox | MenuRadioGroup | MenuSubmenu | {
|
|
|
668
646
|
type: 'label';
|
|
669
647
|
label: SlotContent;
|
|
670
648
|
};
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
|
|
652
|
+
* `ContextMenu`.
|
|
653
|
+
*
|
|
654
|
+
* Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
|
|
655
|
+
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
656
|
+
* expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
|
|
657
|
+
* navigation indices in ways that are painful to debug.
|
|
658
|
+
*
|
|
659
|
+
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
660
|
+
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
661
|
+
* it does in every desktop application.
|
|
662
|
+
*
|
|
663
|
+
* Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
|
|
664
|
+
* `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
|
|
665
|
+
* navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
|
|
666
|
+
* pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
|
|
667
|
+
* elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
|
|
668
|
+
* skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
|
|
669
|
+
* `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
|
|
670
|
+
* directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
|
|
671
|
+
*/
|
|
671
672
|
/**
|
|
672
673
|
* A dropdown menu.
|
|
673
674
|
*
|
|
@@ -703,7 +704,7 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
703
704
|
type: BooleanConstructor;
|
|
704
705
|
default: boolean;
|
|
705
706
|
};
|
|
706
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
707
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
707
708
|
[key: string]: any;
|
|
708
709
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
709
710
|
items: {
|
|
@@ -735,6 +736,7 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
735
736
|
defaultOpen: boolean;
|
|
736
737
|
placement: Placement;
|
|
737
738
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
739
|
+
|
|
738
740
|
/**
|
|
739
741
|
* A right-click menu.
|
|
740
742
|
*
|
|
@@ -754,7 +756,7 @@ declare const ContextMenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
754
756
|
type: StringConstructor;
|
|
755
757
|
default: string;
|
|
756
758
|
};
|
|
757
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
759
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
758
760
|
[key: string]: any;
|
|
759
761
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
760
762
|
items: {
|
package/dist/overlay.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { PropType, Ref
|
|
2
|
+
import { PropType, Ref } from 'vue';
|
|
3
3
|
import { Placement } from './index.js';
|
|
4
4
|
import { SlotContent } from './index.js';
|
|
5
5
|
|
|
@@ -369,9 +369,9 @@ declare const Dialog: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
369
369
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
370
370
|
}>, {
|
|
371
371
|
size: DialogSize;
|
|
372
|
-
description: SlotContent;
|
|
373
372
|
open: boolean;
|
|
374
373
|
defaultOpen: boolean;
|
|
374
|
+
description: SlotContent;
|
|
375
375
|
showClose: boolean;
|
|
376
376
|
dismissable: boolean;
|
|
377
377
|
initialFocus: Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -594,37 +594,15 @@ declare const Drawer: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
594
594
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
595
595
|
}>, {
|
|
596
596
|
size: string;
|
|
597
|
-
description: SlotContent;
|
|
598
597
|
side: DrawerSide;
|
|
599
598
|
open: boolean;
|
|
600
599
|
defaultOpen: boolean;
|
|
601
600
|
modal: boolean;
|
|
601
|
+
description: SlotContent;
|
|
602
602
|
showClose: boolean;
|
|
603
603
|
dismissable: boolean;
|
|
604
604
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
605
605
|
|
|
606
|
-
/**
|
|
607
|
-
* Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
|
|
608
|
-
* `ContextMenu`.
|
|
609
|
-
*
|
|
610
|
-
* Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
|
|
611
|
-
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
612
|
-
* expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
|
|
613
|
-
* navigation indices in ways that are painful to debug.
|
|
614
|
-
*
|
|
615
|
-
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
616
|
-
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
617
|
-
* it does in every desktop application.
|
|
618
|
-
*
|
|
619
|
-
* Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
|
|
620
|
-
* `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
|
|
621
|
-
* navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
|
|
622
|
-
* pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
|
|
623
|
-
* elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
|
|
624
|
-
* skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
|
|
625
|
-
* `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
|
|
626
|
-
* directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
|
|
627
|
-
*/
|
|
628
606
|
interface MenuItemBase {
|
|
629
607
|
id?: string;
|
|
630
608
|
disabled?: boolean;
|
|
@@ -668,6 +646,29 @@ type MenuEntry = MenuAction | MenuCheckbox | MenuRadioGroup | MenuSubmenu | {
|
|
|
668
646
|
type: 'label';
|
|
669
647
|
label: SlotContent;
|
|
670
648
|
};
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Menus — dropdown and context. The Vue counterpart of `@ansh-ui/react`'s `DropdownMenu` /
|
|
652
|
+
* `ContextMenu`.
|
|
653
|
+
*
|
|
654
|
+
* Data-driven (`:items="[…]"`) rather than compound. Menus are almost always built from a
|
|
655
|
+
* configuration array anyway — permissions filter entries, a selection decides what's enabled — and
|
|
656
|
+
* expressing that as template children means `v-if` scattered through the tree, which breaks keyboard
|
|
657
|
+
* navigation indices in ways that are painful to debug.
|
|
658
|
+
*
|
|
659
|
+
* Follows the ARIA menu pattern, where **DOM focus moves to the item** (unlike a listbox, which
|
|
660
|
+
* keeps focus on the container). That's what makes Right/Left arrow submenu traversal work the way
|
|
661
|
+
* it does in every desktop application.
|
|
662
|
+
*
|
|
663
|
+
* Keyboard navigation (`Home`/`End`/arrows/typeahead) is implemented directly rather than through
|
|
664
|
+
* `useRovingFocus`: that primitive's arrow-key stepping doesn't skip disabled rows, while this menu's
|
|
665
|
+
* navigation must — landing the roving tab stop on a disabled item is the one behaviour the ARIA menu
|
|
666
|
+
* pattern explicitly forbids. The tabindex-per-row wiring below (`0` on the active row, `-1`
|
|
667
|
+
* elsewhere) is the same roving-tabindex shape `useRovingFocus` implements, just with the
|
|
668
|
+
* skip-disabled search this menu needs and the extra keys (`Enter`, `Escape`, `Tab`, typeahead,
|
|
669
|
+
* `ArrowRight`/`ArrowLeft` for submenus) a generic composite widget hook doesn't know about — ported
|
|
670
|
+
* directly from `@ansh-ui/react`'s own hand-rolled `move()`/`activate()`.
|
|
671
|
+
*/
|
|
671
672
|
/**
|
|
672
673
|
* A dropdown menu.
|
|
673
674
|
*
|
|
@@ -703,7 +704,7 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
703
704
|
type: BooleanConstructor;
|
|
704
705
|
default: boolean;
|
|
705
706
|
};
|
|
706
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
707
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
707
708
|
[key: string]: any;
|
|
708
709
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:open"[], "update:open", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
709
710
|
items: {
|
|
@@ -735,6 +736,7 @@ declare const DropdownMenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
735
736
|
defaultOpen: boolean;
|
|
736
737
|
placement: Placement;
|
|
737
738
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
739
|
+
|
|
738
740
|
/**
|
|
739
741
|
* A right-click menu.
|
|
740
742
|
*
|
|
@@ -754,7 +756,7 @@ declare const ContextMenu: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
754
756
|
type: StringConstructor;
|
|
755
757
|
default: string;
|
|
756
758
|
};
|
|
757
|
-
}>, () => VNode<vue.RendererNode, vue.RendererElement, {
|
|
759
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
758
760
|
[key: string]: any;
|
|
759
761
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
760
762
|
items: {
|
package/dist/overlay.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AlertDialog, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider } from './chunk-
|
|
1
|
+
export { AlertDialog, ContextMenu, Dialog, DialogFooter, Drawer, DropdownMenu, HoverCard, Popover, PopoverContent, PopoverTrigger, Tooltip, TooltipProvider } from './chunk-D3HH726R.js';
|
|
2
2
|
import './chunk-6XJOB6LE.js';
|
|
3
3
|
import './chunk-XZ5ZFLZM.js';
|
|
4
4
|
import './chunk-G2OX2NH2.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ansh-ui/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Ansh for Vue 3 and Nuxt — premium animated components and motion composables.",
|
|
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.
|
|
78
|
-
"@ansh-ui/tokens": "0.
|
|
77
|
+
"@ansh-ui/core": "0.4.0",
|
|
78
|
+
"@ansh-ui/tokens": "0.4.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"vue": "^3.4.0"
|