@stacksjs/composables 0.75.519 → 0.75.522
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/onKeyStroke.d.ts +1 -0
- package/dist/ssrHandlers.d.ts +1 -0
- package/dist/useBreakpoints.d.ts +41 -41
- package/dist/useEventListener.d.ts +1 -0
- package/dist/useInterval.d.ts +1 -0
- package/dist/useIntervalFn.d.ts +1 -0
- package/dist/useLocalStorage.d.ts +1 -0
- package/dist/useMath.d.ts +1 -0
- package/dist/useQuery.d.ts +1 -0
- package/dist/useRafFn.d.ts +1 -0
- package/dist/useScreenOrientation.d.ts +1 -0
- package/dist/useSessionStorage.d.ts +1 -0
- package/dist/useStorage.d.ts +1 -0
- package/dist/useTimeAgo.d.ts +1 -0
- package/dist/useTimeout.d.ts +1 -0
- package/dist/useTimeoutFn.d.ts +1 -0
- package/dist/useTimestamp.d.ts +1 -0
- package/dist/useTransition.d.ts +7 -7
- package/package.json +2 -2
package/dist/onKeyStroke.d.ts
CHANGED
package/dist/ssrHandlers.d.ts
CHANGED
package/dist/useBreakpoints.d.ts
CHANGED
|
@@ -8,21 +8,21 @@ export declare function useBreakpoints<K extends string>(breakpoints: Breakpoint
|
|
|
8
8
|
* Tailwind CSS default breakpoints.
|
|
9
9
|
*/
|
|
10
10
|
export declare const breakpointsTailwind: {
|
|
11
|
-
sm: 640;
|
|
12
|
-
md: 768;
|
|
13
|
-
lg: 1024;
|
|
14
|
-
xl: 1280;
|
|
15
|
-
'2xl': 1536
|
|
11
|
+
readonly sm: 640;
|
|
12
|
+
readonly md: 768;
|
|
13
|
+
readonly lg: 1024;
|
|
14
|
+
readonly xl: 1280;
|
|
15
|
+
readonly '2xl': 1536
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Bootstrap default breakpoints.
|
|
19
19
|
*/
|
|
20
20
|
export declare const breakpointsBootstrap: {
|
|
21
|
-
sm: 576;
|
|
22
|
-
md: 768;
|
|
23
|
-
lg: 992;
|
|
24
|
-
xl: 1200;
|
|
25
|
-
xxl: 1400
|
|
21
|
+
readonly sm: 576;
|
|
22
|
+
readonly md: 768;
|
|
23
|
+
readonly lg: 992;
|
|
24
|
+
readonly xl: 1200;
|
|
25
|
+
readonly xxl: 1400
|
|
26
26
|
};
|
|
27
27
|
/** Alias for breakpointsBootstrap */
|
|
28
28
|
export declare const breakpointsBootstrapV5: unknown;
|
|
@@ -30,57 +30,57 @@ export declare const breakpointsBootstrapV5: unknown;
|
|
|
30
30
|
* Ant Design breakpoints.
|
|
31
31
|
*/
|
|
32
32
|
export declare const breakpointsAntDesign: {
|
|
33
|
-
xs: 480;
|
|
34
|
-
sm: 576;
|
|
35
|
-
md: 768;
|
|
36
|
-
lg: 992;
|
|
37
|
-
xl: 1200;
|
|
38
|
-
xxl: 1600
|
|
33
|
+
readonly xs: 480;
|
|
34
|
+
readonly sm: 576;
|
|
35
|
+
readonly md: 768;
|
|
36
|
+
readonly lg: 992;
|
|
37
|
+
readonly xl: 1200;
|
|
38
|
+
readonly xxl: 1600
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Material Design breakpoints.
|
|
42
42
|
*/
|
|
43
43
|
export declare const breakpointsMaterialDesign: {
|
|
44
|
-
xs: 600;
|
|
45
|
-
sm: 960;
|
|
46
|
-
md: 1264;
|
|
47
|
-
lg: 1904
|
|
44
|
+
readonly xs: 600;
|
|
45
|
+
readonly sm: 960;
|
|
46
|
+
readonly md: 1264;
|
|
47
|
+
readonly lg: 1904
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
50
|
* Quasar breakpoints.
|
|
51
51
|
*/
|
|
52
52
|
export declare const breakpointsQuasar: {
|
|
53
|
-
xs: 600;
|
|
54
|
-
sm: 1024;
|
|
55
|
-
md: 1440;
|
|
56
|
-
lg: 1920
|
|
53
|
+
readonly xs: 600;
|
|
54
|
+
readonly sm: 1024;
|
|
55
|
+
readonly md: 1440;
|
|
56
|
+
readonly lg: 1920
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
59
|
* Master CSS breakpoints.
|
|
60
60
|
*/
|
|
61
61
|
export declare const breakpointsMasterCss: {
|
|
62
|
-
'3xs': 360;
|
|
63
|
-
'2xs': 480;
|
|
64
|
-
'xs': 600;
|
|
65
|
-
'sm': 768;
|
|
66
|
-
'md': 1024;
|
|
67
|
-
'lg': 1280;
|
|
68
|
-
'xl': 1440;
|
|
69
|
-
'2xl': 1600;
|
|
70
|
-
'3xl': 1920;
|
|
71
|
-
'4xl': 2560
|
|
62
|
+
readonly '3xs': 360;
|
|
63
|
+
readonly '2xs': 480;
|
|
64
|
+
readonly 'xs': 600;
|
|
65
|
+
readonly 'sm': 768;
|
|
66
|
+
readonly 'md': 1024;
|
|
67
|
+
readonly 'lg': 1280;
|
|
68
|
+
readonly 'xl': 1440;
|
|
69
|
+
readonly '2xl': 1600;
|
|
70
|
+
readonly '3xl': 1920;
|
|
71
|
+
readonly '4xl': 2560
|
|
72
72
|
};
|
|
73
73
|
/**
|
|
74
74
|
* Semantic UI breakpoints.
|
|
75
75
|
*/
|
|
76
76
|
export declare const breakpointsSematic: {
|
|
77
|
-
mobileS: 320;
|
|
78
|
-
mobileM: 375;
|
|
79
|
-
mobileL: 425;
|
|
80
|
-
tablet: 768;
|
|
81
|
-
laptop: 1024;
|
|
82
|
-
laptopL: 1440;
|
|
83
|
-
desktop: 2560
|
|
77
|
+
readonly mobileS: 320;
|
|
78
|
+
readonly mobileM: 375;
|
|
79
|
+
readonly mobileL: 425;
|
|
80
|
+
readonly tablet: 768;
|
|
81
|
+
readonly laptop: 1024;
|
|
82
|
+
readonly laptopL: 1440;
|
|
83
|
+
readonly desktop: 2560
|
|
84
84
|
};
|
|
85
85
|
export declare interface UseBreakpointsReturn<K extends string> {
|
|
86
86
|
greaterOrEqual: (k: K) => Ref<boolean>
|
|
@@ -12,3 +12,4 @@ import { type MaybeRef } from './_shared';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare function useEventListener(target: MaybeRef<EventTarget | null | undefined> | EventTarget, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): () => void;
|
|
14
14
|
declare type EventTarget = Window | Document | HTMLElement | Element;
|
|
15
|
+
export {};
|
package/dist/useInterval.d.ts
CHANGED
package/dist/useIntervalFn.d.ts
CHANGED
package/dist/useMath.d.ts
CHANGED
package/dist/useQuery.d.ts
CHANGED
package/dist/useRafFn.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export declare interface UseScreenOrientationReturn {
|
|
|
11
11
|
unlockOrientation: () => void
|
|
12
12
|
}
|
|
13
13
|
declare type ScreenOrientationLockType = 'any' | 'natural' | 'landscape' | 'portrait' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary';
|
|
14
|
+
export {};
|
package/dist/useStorage.d.ts
CHANGED
package/dist/useTimeAgo.d.ts
CHANGED
package/dist/useTimeout.d.ts
CHANGED
package/dist/useTimeoutFn.d.ts
CHANGED
package/dist/useTimestamp.d.ts
CHANGED
package/dist/useTransition.d.ts
CHANGED
|
@@ -10,13 +10,13 @@ export declare function useTransition(source: MaybeRef<number>, options?: UseTra
|
|
|
10
10
|
export declare function executeTransition(_from: number, _to: number, options?: UseTransitionOptions): Promise<void>;
|
|
11
11
|
// Common easing functions
|
|
12
12
|
export declare const TransitionPresets: {
|
|
13
|
-
linear: (t: number) => number;
|
|
14
|
-
easeInQuad: (t: number) => number;
|
|
15
|
-
easeOutQuad: (t: number) => number;
|
|
16
|
-
easeInOutQuad: (t: number) => number;
|
|
17
|
-
easeInCubic: (t: number) => number;
|
|
18
|
-
easeOutCubic: (t: number) => unknown;
|
|
19
|
-
easeInOutCubic: (t: number) => number
|
|
13
|
+
readonly linear: (t: number) => number;
|
|
14
|
+
readonly easeInQuad: (t: number) => number;
|
|
15
|
+
readonly easeOutQuad: (t: number) => number;
|
|
16
|
+
readonly easeInOutQuad: (t: number) => number;
|
|
17
|
+
readonly easeInCubic: (t: number) => number;
|
|
18
|
+
readonly easeOutCubic: (t: number) => unknown;
|
|
19
|
+
readonly easeInOutCubic: (t: number) => number
|
|
20
20
|
};
|
|
21
21
|
export declare interface UseTransitionOptions {
|
|
22
22
|
duration?: number
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/composables",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.522",
|
|
6
6
|
"description": "Stacks composables powered by stx reactivity.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@stacksjs/stx": "0.2.807",
|
|
55
|
-
"@stacksjs/datetime": "0.75.
|
|
55
|
+
"@stacksjs/datetime": "0.75.522"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"better-dx": "^0.2.24"
|