@juantroconisf/lib 2.5.2 → 2.5.4

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.
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import {
3
+ domAnimation
4
+ } from "./chunk-JRLTQWP6.mjs";
5
+
6
+ // node_modules/@heroui/dom-animation/dist/index.mjs
7
+ var index_default = domAnimation;
8
+ export {
9
+ index_default as default
10
+ };
@@ -0,0 +1,259 @@
1
+ "use client";
2
+ import {
3
+ AcceleratedAnimation,
4
+ AnimatePresence,
5
+ AnimateSharedLayout,
6
+ DeprecatedLayoutGroupContext,
7
+ DragControls,
8
+ FlatTree,
9
+ LayoutGroup,
10
+ LayoutGroupContext,
11
+ LazyMotion,
12
+ MotionConfig,
13
+ MotionConfigContext,
14
+ MotionContext,
15
+ MotionGlobalConfig,
16
+ MotionValue,
17
+ PresenceContext,
18
+ SwitchLayoutGroupContext,
19
+ VisualElement,
20
+ addPointerEvent,
21
+ addPointerInfo,
22
+ addScaleCorrector,
23
+ animate,
24
+ animateMini,
25
+ animateValue,
26
+ animateVisualElement,
27
+ animationControls,
28
+ animations,
29
+ anticipate,
30
+ backIn,
31
+ backInOut,
32
+ backOut,
33
+ buildTransform,
34
+ calcLength,
35
+ cancelFrame,
36
+ circIn,
37
+ circInOut,
38
+ circOut,
39
+ clamp,
40
+ color,
41
+ complex,
42
+ createBox,
43
+ createRendererMotionComponent,
44
+ createScopedAnimate,
45
+ cubicBezier,
46
+ delay,
47
+ disableInstantTransitions,
48
+ distance,
49
+ distance2D,
50
+ domAnimation,
51
+ domMax,
52
+ domMin,
53
+ easeIn,
54
+ easeInOut,
55
+ easeOut,
56
+ filterProps,
57
+ findSpring,
58
+ frame,
59
+ frameData,
60
+ hover,
61
+ inView,
62
+ inertia,
63
+ interpolate,
64
+ invariant,
65
+ isBrowser,
66
+ isDragActive,
67
+ isMotionComponent,
68
+ isMotionValue,
69
+ isValidMotionProp,
70
+ keyframes,
71
+ m,
72
+ makeUseVisualState,
73
+ mirrorEasing,
74
+ mix,
75
+ motion,
76
+ motionValue,
77
+ namespace_exports,
78
+ noop,
79
+ optimizedAppearDataAttribute,
80
+ pipe,
81
+ press,
82
+ progress,
83
+ px,
84
+ resolveMotionValue,
85
+ reverseEasing,
86
+ scroll,
87
+ scrollInfo,
88
+ spring,
89
+ stagger,
90
+ startOptimizedAppearAnimation,
91
+ steps,
92
+ time,
93
+ transform,
94
+ unwrapMotionComponent,
95
+ useAnimate,
96
+ useAnimateMini,
97
+ useAnimatedState,
98
+ useAnimation,
99
+ useAnimationControls,
100
+ useAnimationFrame,
101
+ useCycle,
102
+ useDomEvent,
103
+ useDragControls,
104
+ useElementScroll,
105
+ useForceUpdate,
106
+ useInView,
107
+ useInstantLayoutTransition,
108
+ useInstantTransition,
109
+ useInvertedScale,
110
+ useIsPresent,
111
+ useIsomorphicLayoutEffect,
112
+ useMotionTemplate,
113
+ useMotionValue,
114
+ useMotionValueEvent,
115
+ usePresence,
116
+ usePresenceData,
117
+ useReducedMotion,
118
+ useReducedMotionConfig,
119
+ useResetProjection,
120
+ useScroll,
121
+ useSpring,
122
+ useTime,
123
+ useTransform,
124
+ useUnmountEffect,
125
+ useVelocity,
126
+ useViewportScroll,
127
+ useWillChange,
128
+ visualElementStore,
129
+ wrap
130
+ } from "./chunk-JRLTQWP6.mjs";
131
+ export {
132
+ AcceleratedAnimation,
133
+ AnimatePresence,
134
+ AnimateSharedLayout,
135
+ DeprecatedLayoutGroupContext,
136
+ DragControls,
137
+ FlatTree,
138
+ LayoutGroup,
139
+ LayoutGroupContext,
140
+ LazyMotion,
141
+ MotionConfig,
142
+ MotionConfigContext,
143
+ MotionContext,
144
+ MotionGlobalConfig,
145
+ MotionValue,
146
+ PresenceContext,
147
+ namespace_exports as Reorder,
148
+ SwitchLayoutGroupContext,
149
+ VisualElement,
150
+ addPointerEvent,
151
+ addPointerInfo,
152
+ addScaleCorrector,
153
+ animate,
154
+ animateMini,
155
+ animateValue,
156
+ animateVisualElement,
157
+ animationControls,
158
+ animations,
159
+ anticipate,
160
+ backIn,
161
+ backInOut,
162
+ backOut,
163
+ buildTransform,
164
+ calcLength,
165
+ cancelFrame,
166
+ circIn,
167
+ circInOut,
168
+ circOut,
169
+ clamp,
170
+ color,
171
+ complex,
172
+ createBox,
173
+ createRendererMotionComponent,
174
+ createScopedAnimate,
175
+ cubicBezier,
176
+ delay,
177
+ disableInstantTransitions,
178
+ distance,
179
+ distance2D,
180
+ domAnimation,
181
+ domMax,
182
+ domMin,
183
+ easeIn,
184
+ easeInOut,
185
+ easeOut,
186
+ filterProps,
187
+ findSpring,
188
+ frame,
189
+ frameData,
190
+ hover,
191
+ inView,
192
+ inertia,
193
+ interpolate,
194
+ invariant,
195
+ isBrowser,
196
+ isDragActive,
197
+ isMotionComponent,
198
+ isMotionValue,
199
+ isValidMotionProp,
200
+ keyframes,
201
+ m,
202
+ makeUseVisualState,
203
+ mirrorEasing,
204
+ mix,
205
+ motion,
206
+ motionValue,
207
+ noop,
208
+ optimizedAppearDataAttribute,
209
+ pipe,
210
+ press,
211
+ progress,
212
+ px,
213
+ resolveMotionValue,
214
+ reverseEasing,
215
+ scroll,
216
+ scrollInfo,
217
+ spring,
218
+ stagger,
219
+ startOptimizedAppearAnimation,
220
+ steps,
221
+ time,
222
+ transform,
223
+ unwrapMotionComponent,
224
+ useAnimate,
225
+ useAnimateMini,
226
+ useAnimation,
227
+ useAnimationControls,
228
+ useAnimationFrame,
229
+ useCycle,
230
+ useAnimatedState as useDeprecatedAnimatedState,
231
+ useInvertedScale as useDeprecatedInvertedScale,
232
+ useDomEvent,
233
+ useDragControls,
234
+ useElementScroll,
235
+ useForceUpdate,
236
+ useInView,
237
+ useInstantLayoutTransition,
238
+ useInstantTransition,
239
+ useIsPresent,
240
+ useIsomorphicLayoutEffect,
241
+ useMotionTemplate,
242
+ useMotionValue,
243
+ useMotionValueEvent,
244
+ usePresence,
245
+ usePresenceData,
246
+ useReducedMotion,
247
+ useReducedMotionConfig,
248
+ useResetProjection,
249
+ useScroll,
250
+ useSpring,
251
+ useTime,
252
+ useTransform,
253
+ useUnmountEffect,
254
+ useVelocity,
255
+ useViewportScroll,
256
+ useWillChange,
257
+ visualElementStore,
258
+ wrap
259
+ };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { InputProps } from '@heroui/react';
1
+ import { SharedSelection, InputProps } from '@heroui/react';
2
2
  import { ChangeEvent } from 'react';
3
3
 
4
4
  type StateType = Record<string, any>;
@@ -47,11 +47,14 @@ interface TargetChangeProps<O extends StateType> {
47
47
  };
48
48
  }
49
49
  type InputChangeFunc<O extends StateType> = (props: TargetChangeProps<O> | ChangeEvent<HTMLInputElement>) => void;
50
- interface RegisterInputProps<O extends StateType> extends ValidationProps {
50
+ type ValueChangeFunc<O extends StateType, V extends unknown> = (id: keyof O, value: V) => void;
51
+ interface ComponentInputProps<O extends StateType, V extends unknown> extends ValidationProps {
51
52
  id: keyof O;
52
- onChange: InputChangeFunc<O>;
53
53
  onBlur: InputChangeFunc<O>;
54
- value: string;
54
+ value: V;
55
+ }
56
+ interface RegisterInputProps<O extends StateType> extends ComponentInputProps<O, string | number> {
57
+ onChange: InputChangeFunc<O>;
55
58
  }
56
59
  type RegisterFunc<O extends StateType> = (id: keyof O, errorMessages?: ValidatorErrorMessage) => RegisterInputProps<O>;
57
60
  type HasInvalidValuesFunc = () => boolean;
@@ -59,6 +62,8 @@ type ResetFormFunc = () => void;
59
62
  interface UseFormChangeResponse<O extends StateType> {
60
63
  onChange: InputChangeFunc<O>;
61
64
  onBlur: InputChangeFunc<O>;
65
+ onValueChange: ValueChangeFunc<O, string | number>;
66
+ onSelectionChange: ValueChangeFunc<O, SharedSelection>;
62
67
  state: O;
63
68
  setState: React.Dispatch<React.SetStateAction<O>>;
64
69
  register: RegisterFunc<O>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { InputProps } from '@heroui/react';
1
+ import { SharedSelection, InputProps } from '@heroui/react';
2
2
  import { ChangeEvent } from 'react';
3
3
 
4
4
  type StateType = Record<string, any>;
@@ -47,11 +47,14 @@ interface TargetChangeProps<O extends StateType> {
47
47
  };
48
48
  }
49
49
  type InputChangeFunc<O extends StateType> = (props: TargetChangeProps<O> | ChangeEvent<HTMLInputElement>) => void;
50
- interface RegisterInputProps<O extends StateType> extends ValidationProps {
50
+ type ValueChangeFunc<O extends StateType, V extends unknown> = (id: keyof O, value: V) => void;
51
+ interface ComponentInputProps<O extends StateType, V extends unknown> extends ValidationProps {
51
52
  id: keyof O;
52
- onChange: InputChangeFunc<O>;
53
53
  onBlur: InputChangeFunc<O>;
54
- value: string;
54
+ value: V;
55
+ }
56
+ interface RegisterInputProps<O extends StateType> extends ComponentInputProps<O, string | number> {
57
+ onChange: InputChangeFunc<O>;
55
58
  }
56
59
  type RegisterFunc<O extends StateType> = (id: keyof O, errorMessages?: ValidatorErrorMessage) => RegisterInputProps<O>;
57
60
  type HasInvalidValuesFunc = () => boolean;
@@ -59,6 +62,8 @@ type ResetFormFunc = () => void;
59
62
  interface UseFormChangeResponse<O extends StateType> {
60
63
  onChange: InputChangeFunc<O>;
61
64
  onBlur: InputChangeFunc<O>;
65
+ onValueChange: ValueChangeFunc<O, string | number>;
66
+ onSelectionChange: ValueChangeFunc<O, SharedSelection>;
62
67
  state: O;
63
68
  setState: React.Dispatch<React.SetStateAction<O>>;
64
69
  register: RegisterFunc<O>;