@noction/vue-bezier 1.12.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +143 -66
- package/dist/types/components/Blur/BlurTransition.vue.d.ts +23 -0
- package/dist/types/components/ClipPath/ClipPathTransition.vue.d.ts +17 -0
- package/dist/types/components/Dissolve/DissolveListTransition.vue.d.ts +14 -0
- package/dist/types/components/Dissolve/DissolveTransition.vue.d.ts +14 -0
- package/dist/types/components/FadeSlide/FadeSlideTransition.vue.d.ts +14 -0
- package/dist/types/components/Push/PushTransition.vue.d.ts +17 -0
- package/dist/types/components/Rotate/RotateTransition.vue.d.ts +14 -0
- package/dist/types/components/Scale/ScaleListTransition.vue.d.ts +14 -0
- package/dist/types/components/Scale/ScaleTransition.vue.d.ts +9 -63
- package/dist/types/components/Wipe/WipeTransition.vue.d.ts +14 -0
- package/dist/types/components/Zoom/ZoomTransition.vue.d.ts +14 -0
- package/dist/types/components/index.d.ts +10 -10
- package/dist/types/main.d.ts +1 -1
- package/dist/types/types/index.d.ts +6 -6
- package/dist/vue-bezier.css +2 -0
- package/dist/vue-bezier.js +529 -418
- package/dist/web-types.json +222 -306
- package/package.json +27 -28
- package/dist/style.css +0 -1
- package/dist/types/components/Collapse/CollapseTransition.vue.d.ts +0 -69
- package/dist/types/components/Fade/FadeTransition.vue.d.ts +0 -68
- package/dist/types/components/Slide/SlideXLeftTransition.vue.d.ts +0 -68
- package/dist/types/components/Slide/SlideXRightTransition.vue.d.ts +0 -68
- package/dist/types/components/Slide/SlideYDownTransition.vue.d.ts +0 -68
- package/dist/types/components/Slide/SlideYUpTransition.vue.d.ts +0 -68
- package/dist/types/components/Zoom/ZoomCenterTransition.vue.d.ts +0 -68
- package/dist/types/components/Zoom/ZoomUpTransition.vue.d.ts +0 -68
- package/dist/types/components/Zoom/ZoomXTransition.vue.d.ts +0 -68
- package/dist/types/components/Zoom/ZoomYTransition.vue.d.ts +0 -68
- package/dist/types/composables/buildComponentType.d.ts +0 -4
- package/dist/types/composables/index.d.ts +0 -3
- package/dist/types/composables/useHooks.d.ts +0 -15
package/README.md
CHANGED
|
@@ -9,95 +9,172 @@
|
|
|
9
9
|
## Install :coffee:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
|
|
12
|
+
pnpm add @noction/vue-bezier
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Local usage :rocket:
|
|
16
16
|
|
|
17
17
|
```vue
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<p>Fade transition</p>
|
|
22
|
-
</div>
|
|
23
|
-
</fade-transition>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script>
|
|
18
|
+
<script setup>
|
|
19
|
+
import { DissolveTransition } from '@noction/vue-bezier'
|
|
20
|
+
import { ref } from 'vue'
|
|
27
21
|
import '@noction/vue-bezier/styles'
|
|
28
|
-
import { FadeTransition } from '@noction/vue-bezier'
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
components: {
|
|
32
|
-
FadeTransition
|
|
33
|
-
}
|
|
34
|
-
}
|
|
23
|
+
const show = ref(true)
|
|
35
24
|
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<DissolveTransition :duration="400">
|
|
28
|
+
<div v-if="show" class="box">
|
|
29
|
+
<p>Dissolve transition</p>
|
|
30
|
+
</div>
|
|
31
|
+
</DissolveTransition>
|
|
32
|
+
</template>
|
|
36
33
|
```
|
|
37
34
|
|
|
38
35
|
## Global usage
|
|
36
|
+
|
|
39
37
|
```js
|
|
40
|
-
import '@noction/vue-bezier/styles'
|
|
41
38
|
import Transitions from '@noction/vue-bezier'
|
|
42
39
|
import { createApp } from 'vue'
|
|
40
|
+
import '@noction/vue-bezier/styles'
|
|
43
41
|
|
|
44
42
|
const app = createApp(App)
|
|
45
43
|
app.use(Transitions)
|
|
46
44
|
```
|
|
47
45
|
|
|
48
46
|
## List of available transitions
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
47
|
+
|
|
48
|
+
### Single Element Transitions
|
|
49
|
+
|
|
50
|
+
- `BlurTransition` - Blur effect with opacity
|
|
51
|
+
- `ClipPathTransition` - Clip path reveal animation
|
|
52
|
+
- `DissolveTransition` - Fade in/out effect
|
|
53
|
+
- `FadeSlideTransition` - Combined fade and slide animation
|
|
54
|
+
- `PushTransition` - Push content in a direction
|
|
55
|
+
- `RotateTransition` - 3D rotation effect
|
|
56
|
+
- `ScaleTransition` - Scale up/down animation
|
|
57
|
+
- `WipeTransition` - Wipe reveal effect
|
|
58
|
+
- `ZoomTransition` - Zoom in/out animation
|
|
59
|
+
|
|
60
|
+
### List Transitions (TransitionGroup)
|
|
61
|
+
|
|
62
|
+
- `DissolveListTransition` - Fade effect for lists
|
|
63
|
+
- `ScaleListTransition` - Scale effect for lists
|
|
59
64
|
|
|
60
65
|
## Props
|
|
61
66
|
|
|
62
|
-
| Prop | Type |
|
|
63
|
-
|
|
64
|
-
| **duration** | _Number_, _Object_ |
|
|
65
|
-
| **
|
|
66
|
-
| **tag** | _String_ |
|
|
67
|
-
| **origin** | _String_ |
|
|
68
|
-
| **styles** | _Object_ |
|
|
69
|
-
|
|
70
|
-
##
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
| Prop | Type | Default | Description |
|
|
68
|
+
| :----------: | ------------------ | :------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
69
|
+
| **duration** | _Number_, _Object_ | `300` | Transition duration in milliseconds. Number for specifying the same duration for enter/leave transitions. <br> Object style `{enter: 300, leave: 300}` for specifying explicit durations for enter/leave. |
|
|
70
|
+
| **delay** | _Number_, _Object_ | `0` | Transition delay in milliseconds. Number for specifying the same delay for enter/leave transitions. <br> Object style `{enter: 0, leave: 100}` for specifying explicit delays for enter/leave. |
|
|
71
|
+
| **tag** | _String_ | `'span'` | Transition tag for List transitions (TransitionGroup components). |
|
|
72
|
+
| **origin** | _String_ | `''` | [Transform origin property](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin), can be specified with styles as well but it's shorter with this prop. |
|
|
73
|
+
| **styles** | _Object_ | `{}` | Custom CSS styles that are applied during transition. These styles are applied via CSS variables. |
|
|
74
|
+
|
|
75
|
+
## Component-Specific Props
|
|
76
|
+
|
|
77
|
+
Some transitions have additional props for customization:
|
|
78
|
+
|
|
79
|
+
### ClipPathTransition
|
|
80
|
+
|
|
81
|
+
| Prop | Type | Default | Description |
|
|
82
|
+
| :----------: | :----------------------: | :--------: | --------------------------- |
|
|
83
|
+
| **clipType** | `'circle'` \| `'square'` | `'circle'` | Type of clip path animation |
|
|
84
|
+
|
|
85
|
+
```vue
|
|
86
|
+
<ClipPathTransition clip-type="square" :duration="1000">
|
|
87
|
+
<div v-if="show">Content</div>
|
|
88
|
+
</ClipPathTransition>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### PushTransition
|
|
92
|
+
|
|
93
|
+
| Prop | Type | Default | Description |
|
|
94
|
+
| :-----------: | :-----------------------------------------: | :-------: | ---------------------------- |
|
|
95
|
+
| **direction** | `'left'` \| `'right'` \| `'up'` \| `'down'` | `'right'` | Direction of the push effect |
|
|
96
|
+
|
|
97
|
+
```vue
|
|
98
|
+
<PushTransition direction="down" :duration="400">
|
|
99
|
+
<div v-if="show">Content</div>
|
|
100
|
+
</PushTransition>
|
|
76
101
|
```
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
|
|
103
|
+
### ScaleTransition
|
|
104
|
+
|
|
105
|
+
| Prop | Type | Default | Description |
|
|
106
|
+
| :--------: | :------: | :----------: | ---------------------------------------- |
|
|
107
|
+
| **origin** | _String_ | `'top left'` | Transform origin for the scale animation |
|
|
108
|
+
|
|
109
|
+
```vue
|
|
110
|
+
<ScaleTransition origin="center" :duration="300">
|
|
111
|
+
<div v-if="show">Content</div>
|
|
112
|
+
</ScaleTransition>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## List Transitions
|
|
116
|
+
|
|
117
|
+
For animating lists of elements, use the dedicated List transition components:
|
|
118
|
+
|
|
119
|
+
```vue
|
|
120
|
+
<script setup>
|
|
121
|
+
import { DissolveListTransition } from '@noction/vue-bezier'
|
|
122
|
+
import { ref } from 'vue'
|
|
123
|
+
import '@noction/vue-bezier/styles'
|
|
124
|
+
|
|
125
|
+
const items = ref([1, 2, 3, 4, 5])
|
|
126
|
+
</script>
|
|
127
|
+
|
|
128
|
+
<template>
|
|
129
|
+
<DissolveListTransition :duration="400" tag="div">
|
|
130
|
+
<div v-for="item in items" :key="item" class="item">
|
|
131
|
+
{{ item }}
|
|
132
|
+
</div>
|
|
133
|
+
</DissolveListTransition>
|
|
134
|
+
</template>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
**Important notes:**
|
|
138
|
+
|
|
139
|
+
1. Elements inside list transitions should have `display: inline-block` or must be placed in a flex context: [Vue.js docs reference](https://vuejs.org/guide/built-ins/transition-group.html#move-transitions)
|
|
140
|
+
2. Each list transition has a `move` class for animating position changes. The move duration defaults to `.3s` or `.35s` and cannot be configured via props. To customize, override the CSS class:
|
|
141
|
+
|
|
142
|
+
```css
|
|
143
|
+
/* Example: Custom move duration for DissolveListTransition */
|
|
144
|
+
.noc-dissolve-move {
|
|
145
|
+
transition: transform 0.5s ease-out;
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Customizing Transitions
|
|
150
|
+
|
|
151
|
+
All CSS classes and custom properties are prefixed with `noc-` to prevent naming conflicts with other libraries. You can override any transition styles by targeting the specific classes:
|
|
152
|
+
|
|
153
|
+
```css
|
|
154
|
+
/* Override dissolve transition timing */
|
|
155
|
+
.noc-dissolve-enter-active {
|
|
156
|
+
transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Override blur transition effect */
|
|
160
|
+
.noc-blur-enter-from {
|
|
161
|
+
opacity: 0;
|
|
162
|
+
filter: blur(20px); /* Increase blur intensity */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Override scale list move animation */
|
|
166
|
+
.noc-scale-list-move {
|
|
167
|
+
transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.5, 1);
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Available CSS custom properties:
|
|
172
|
+
|
|
173
|
+
- `--noc-transition-enter-duration`
|
|
174
|
+
- `--noc-transition-leave-duration`
|
|
175
|
+
- `--noc-transition-enter-delay`
|
|
176
|
+
- `--noc-transition-leave-delay`
|
|
177
|
+
- `--noc-transform-origin` (ScaleTransition)
|
|
101
178
|
|
|
102
179
|
## License
|
|
103
180
|
|
|
@@ -105,4 +182,4 @@ MIT © [50rayn](https://github.com/50rayn)
|
|
|
105
182
|
|
|
106
183
|
## Special thanks to
|
|
107
184
|
|
|
108
|
-
@cristijora (The UI for list transitions in the demo is inspired by [vue2-transitions](https://github.com/BinarCode/vue2-transitions) )
|
|
185
|
+
@cristijora (The UI for list transitions in the demo is inspired by [vue2-transitions](https://github.com/BinarCode/vue2-transitions) )
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
duration?: number | {
|
|
3
|
+
enter: number;
|
|
4
|
+
leave: number;
|
|
5
|
+
};
|
|
6
|
+
delay?: number | {
|
|
7
|
+
enter: number;
|
|
8
|
+
leave: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_7: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_7) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
type __VLS_Props = ComponentProps & {
|
|
3
|
+
clipType?: 'circle' | 'square';
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_7: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_7) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_12: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_12) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
type __VLS_Props = ComponentProps & {
|
|
3
|
+
direction?: 'left' | 'right' | 'up' | 'down';
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_7: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_7) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_12: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_12) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,68 +1,14 @@
|
|
|
1
|
-
import type { ComponentProps } from '
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
origin: string;
|
|
10
|
-
styles: () => {
|
|
11
|
-
animationFillMode: string;
|
|
12
|
-
animationTimingFunction: string;
|
|
13
|
-
};
|
|
14
|
-
tag: string;
|
|
15
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
-
leave: (el: import("vue").RendererElement, done: () => void) => void;
|
|
17
|
-
"after-enter": (el: import("vue").RendererElement) => void;
|
|
18
|
-
"after-leave": (el: import("vue").RendererElement) => void;
|
|
19
|
-
"before-enter": (el: import("vue").RendererElement) => void;
|
|
20
|
-
"before-leave": (el: import("vue").RendererElement) => void;
|
|
21
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ComponentProps>, {
|
|
22
|
-
delay: number;
|
|
23
|
-
duration: number;
|
|
24
|
-
group: boolean;
|
|
25
|
-
origin: string;
|
|
26
|
-
styles: () => {
|
|
27
|
-
animationFillMode: string;
|
|
28
|
-
animationTimingFunction: string;
|
|
29
|
-
};
|
|
30
|
-
tag: string;
|
|
31
|
-
}>>> & {
|
|
32
|
-
onLeave?: ((el: import("vue").RendererElement, done: () => void) => any) | undefined;
|
|
33
|
-
"onAfter-enter"?: ((el: import("vue").RendererElement) => any) | undefined;
|
|
34
|
-
"onAfter-leave"?: ((el: import("vue").RendererElement) => any) | undefined;
|
|
35
|
-
"onBefore-enter"?: ((el: import("vue").RendererElement) => any) | undefined;
|
|
36
|
-
"onBefore-leave"?: ((el: import("vue").RendererElement) => any) | undefined;
|
|
37
|
-
}, {
|
|
38
|
-
delay: import("@/types").NumberOrTimings;
|
|
39
|
-
duration: import("@/types").NumberOrTimings;
|
|
40
|
-
group: boolean;
|
|
41
|
-
origin: string;
|
|
42
|
-
styles: Partial<CSSStyleDeclaration>;
|
|
43
|
-
tag: string;
|
|
44
|
-
}, {}>;
|
|
45
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
46
9
|
export default _default;
|
|
47
|
-
type
|
|
48
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
49
|
-
default: D[K];
|
|
50
|
-
}> : P[K];
|
|
51
|
-
};
|
|
52
|
-
type __VLS_Prettify<T> = {
|
|
53
|
-
[K in keyof T]: T[K];
|
|
54
|
-
} & {};
|
|
55
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
11
|
new (): {
|
|
57
12
|
$slots: S;
|
|
58
13
|
};
|
|
59
14
|
};
|
|
60
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentProps } from '../../types';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
1
|
+
export { default as BlurTransition } from './Blur/BlurTransition.vue';
|
|
2
|
+
export { default as ClipPathTransition } from './ClipPath/ClipPathTransition.vue';
|
|
3
|
+
export { default as DissolveListTransition } from './Dissolve/DissolveListTransition.vue';
|
|
4
|
+
export { default as DissolveTransition } from './Dissolve/DissolveTransition.vue';
|
|
5
|
+
export { default as FadeSlideTransition } from './FadeSlide/FadeSlideTransition.vue';
|
|
6
|
+
export { default as PushTransition } from './Push/PushTransition.vue';
|
|
7
|
+
export { default as RotateTransition } from './Rotate/RotateTransition.vue';
|
|
8
|
+
export { default as ScaleListTransition } from './Scale/ScaleListTransition.vue';
|
|
3
9
|
export { default as ScaleTransition } from './Scale/ScaleTransition.vue';
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as SlideYDownTransition } from './Slide/SlideYDownTransition.vue';
|
|
7
|
-
export { default as SlideYUpTransition } from './Slide/SlideYUpTransition.vue';
|
|
8
|
-
export { default as ZoomCenterTransition } from './Zoom/ZoomCenterTransition.vue';
|
|
9
|
-
export { default as ZoomUpTransition } from './Zoom/ZoomUpTransition.vue';
|
|
10
|
-
export { default as ZoomXTransition } from './Zoom/ZoomXTransition.vue';
|
|
11
|
-
export { default as ZoomYTransition } from './Zoom/ZoomYTransition.vue';
|
|
10
|
+
export { default as WipeTransition } from './Wipe/WipeTransition.vue';
|
|
11
|
+
export { default as ZoomTransition } from './Zoom/ZoomTransition.vue';
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RendererElement } from 'vue';
|
|
1
|
+
import type { RendererElement } from 'vue';
|
|
2
2
|
export type ComponentEvents = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
afterEnter: [el: RendererElement];
|
|
4
|
+
afterLeave: [el: RendererElement];
|
|
5
|
+
beforeEnter: [el: RendererElement];
|
|
6
|
+
beforeLeave: [el: RendererElement];
|
|
7
|
+
leave: [el: RendererElement, done: () => void];
|
|
8
8
|
};
|
|
9
9
|
export type ComponentProps = {
|
|
10
10
|
/**
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@property --noc-transition-enter-duration{syntax:"<time>";inherits:false;initial-value:.5s}@property --noc-transition-leave-duration{syntax:"<time>";inherits:false;initial-value:.5s}@property --noc-transition-enter-delay{syntax:"<time>";inherits:false;initial-value:0s}@property --noc-transition-leave-delay{syntax:"<time>";inherits:false;initial-value:0s}.noc-blur-enter-active[data-v-fec99d84],.noc-blur-leave-active[data-v-fec99d84]{transition:all var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);will-change:opacity,filter;position:absolute;inset-block-start:0;inset-inline-start:0}.noc-blur-leave-active[data-v-fec99d84]{transition:all var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay)}.noc-blur-enter-from[data-v-fec99d84]{opacity:0;filter:blur(8px)}.noc-blur-enter-to[data-v-fec99d84],.noc-blur-leave-from[data-v-fec99d84]{opacity:1;filter:blur()}.noc-blur-leave-to[data-v-fec99d84]{opacity:0;filter:blur(8px)}.noc-clip-enter-active[data-v-65f5f5ac]{transition:all var(--noc-transition-enter-duration)ease-in var(--noc-transition-enter-delay);position:relative}.noc-clip-leave-active[data-v-65f5f5ac]{transition:all calc(var(--noc-transition-leave-duration) - 10ms)linear calc(var(--noc-transition-leave-delay));position:absolute}.noc-clip-circle.noc-clip-enter-from[data-v-65f5f5ac]{clip-path:circle(0%)}.noc-clip-circle.noc-clip-enter-to[data-v-65f5f5ac]{clip-path:circle(100%)}.noc-clip-square.noc-clip-enter-from[data-v-65f5f5ac]{clip-path:polygon(50% 50%,50% 50%,50% 50%,50% 50%)}.noc-clip-square.noc-clip-enter-to[data-v-65f5f5ac]{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}.noc-dissolve-list>*{--noc-transition-enter-duration:inherit;--noc-transition-leave-duration:inherit;--noc-transition-enter-delay:inherit;--noc-transition-leave-delay:inherit}.noc-dissolve-enter-active{transition:opacity var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);will-change:opacity}.noc-dissolve-leave-active{backface-visibility:hidden;transition:opacity var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay);will-change:opacity;position:absolute}.noc-dissolve-enter-from,.noc-dissolve-leave-to{opacity:0}.noc-dissolve-enter-to,.noc-dissolve-leave-from{opacity:1}.noc-dissolve-move{transition:transform var(--noc-transition-enter-duration)ease-out var(--noc-transition-enter-delay)}.noc-dissolve-enter-active[data-v-a98e0a99]{backface-visibility:hidden;transition:opacity var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);will-change:opacity;position:absolute;inset-block-start:0;inset-inline-start:0}.noc-dissolve-leave-active[data-v-a98e0a99]{backface-visibility:hidden;transition:opacity var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay);will-change:opacity;position:absolute;inset-block-start:0;inset-inline-start:0}.noc-dissolve-enter-from[data-v-a98e0a99],.noc-dissolve-leave-to[data-v-a98e0a99]{opacity:0}.noc-dissolve-enter-to[data-v-a98e0a99],.noc-dissolve-leave-from[data-v-a98e0a99]{opacity:1}.noc-fade-slide-enter-active[data-v-475efc48],.noc-fade-slide-leave-active[data-v-475efc48]{backface-visibility:hidden;transition:all var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);position:absolute;inset-block-start:0;inset-inline-start:0}.noc-fade-slide-leave-active[data-v-475efc48]{backface-visibility:hidden;transition:all var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay)}.noc-fade-slide-enter-from[data-v-475efc48]{opacity:0;transform:translateY(.5rem)}.noc-fade-slide-enter-to[data-v-475efc48],.noc-fade-slide-leave-from[data-v-475efc48]{opacity:1;transform:translateY(0)}.noc-fade-slide-leave-to[data-v-475efc48]{opacity:0;transform:translateY(.5rem)}.noc-push-enter-active[data-v-2822b81a],.noc-push-leave-active[data-v-2822b81a]{backface-visibility:hidden;transition:opacity var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay),transform var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);will-change:opacity,transform;position:absolute;inset-block-start:0;inset-inline-start:0}.noc-push-leave-active[data-v-2822b81a]{backface-visibility:hidden;transition:opacity var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay),transform var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay)}.noc-push-enter-to[data-v-2822b81a],.noc-push-leave-from[data-v-2822b81a]{opacity:1;transform:translate(0)}.noc-push-left.noc-push-enter-from[data-v-2822b81a]{opacity:0;transform:translate(100%)}.noc-push-left.noc-push-leave-to[data-v-2822b81a],.noc-push-right.noc-push-enter-from[data-v-2822b81a]{opacity:0;transform:translate(-100%)}.noc-push-right.noc-push-leave-to[data-v-2822b81a]{opacity:0;transform:translate(100%)}.noc-push-up.noc-push-enter-from[data-v-2822b81a]{opacity:0;transform:translateY(100%)}.noc-push-up.noc-push-leave-to[data-v-2822b81a],.noc-push-down.noc-push-enter-from[data-v-2822b81a]{opacity:0;transform:translateY(-100%)}.noc-push-down.noc-push-leave-to[data-v-2822b81a]{opacity:0;transform:translateY(100%)}.noc-rotate-enter-active[data-v-c4785237],.noc-rotate-leave-active[data-v-c4785237]{transition:all var(--noc-transition-enter-duration)linear var(--noc-transition-enter-delay)}.noc-rotate-leave-active[data-v-c4785237]{transition:all var(--noc-transition-leave-duration)linear var(--noc-transition-leave-delay)}.noc-rotate-enter-from[data-v-c4785237]{opacity:1;filter:blur(4px);transform:rotate(12deg)}.noc-rotate-enter-to[data-v-c4785237],.noc-rotate-leave-from[data-v-c4785237]{opacity:1;filter:blur();transform:rotate(0)}.noc-rotate-leave-to[data-v-c4785237]{opacity:1;filter:blur(4px);transform:rotate(12deg)}.noc-scale-list>*{--noc-transition-enter-duration:inherit;--noc-transition-leave-duration:inherit;--noc-transition-enter-delay:inherit;--noc-transition-leave-delay:inherit}.noc-scale-list-enter-active{transition:opacity var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay),transform var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);will-change:opacity,transform}.noc-scale-list-leave-active{backface-visibility:hidden;transition:opacity var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay),transform var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay);will-change:opacity,transform;position:absolute}.noc-scale-list-enter-from,.noc-scale-list-leave-to{opacity:0;transform:scale(0)}.noc-scale-list-enter-to,.noc-scale-list-leave-from{opacity:1;transform:scale(1)}.noc-scale-list-move{transition:transform var(--noc-transition-enter-duration)ease-out var(--noc-transition-enter-delay)}.noc-scale-enter-active[data-v-f5da5408],.noc-scale-leave-active[data-v-f5da5408]{transform-origin:var(--noc-transform-origin,top left);transition:all var(--noc-transition-enter-duration)ease-out var(--noc-transition-enter-delay);will-change:opacity,transform}.noc-scale-leave-active[data-v-f5da5408]{transition:all var(--noc-transition-leave-duration)ease-out var(--noc-transition-leave-delay)}.noc-scale-enter-from[data-v-f5da5408]{opacity:0;transform:scale(0)}.noc-scale-enter-to[data-v-f5da5408],.noc-scale-leave-from[data-v-f5da5408]{opacity:1;transform:scale(1)}.noc-scale-leave-to[data-v-f5da5408]{opacity:0;transform:scale(0)}.noc-scale-move[data-v-f5da5408]{transition:transform .3s cubic-bezier(.25,.8,.5,1)}.noc-wipe-enter-active[data-v-41990a90]{z-index:10;transition:transform var(--noc-transition-enter-duration)ease-out var(--noc-transition-enter-delay)}.noc-wipe-leave-active[data-v-41990a90]{transition:transform calc(var(--noc-transition-leave-duration) - 10ms)ease var(--noc-transition-leave-delay);position:absolute}.noc-wipe-enter-from[data-v-41990a90]{transform:translate(-100%)}.noc-wipe-enter-to[data-v-41990a90]{transform:translate(0)}.noc-zoom-enter-active[data-v-6112c8a6],.noc-zoom-leave-active[data-v-6112c8a6]{transition:transform var(--noc-transition-enter-duration)ease var(--noc-transition-enter-delay);will-change:transform;position:absolute;inset-block-start:0;inset-inline-start:0}.noc-zoom-leave-active[data-v-6112c8a6]{transition:transform var(--noc-transition-leave-duration)ease var(--noc-transition-leave-delay)}.noc-zoom-enter-from[data-v-6112c8a6],.noc-zoom-leave-to[data-v-6112c8a6]{transform:scale(1.05)}.noc-zoom-enter-to[data-v-6112c8a6],.noc-zoom-leave-from[data-v-6112c8a6]{transform:scale(1)}
|
|
2
|
+
/*$vite$:1*/
|