@stacksjs/composables 0.75.520 → 0.75.524

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.
@@ -24,3 +24,4 @@ export declare interface OnKeyStrokeOptions {
24
24
  target?: MaybeRef<EventTarget | null>
25
25
  }
26
26
  declare type KeyFilter = string | string[] | ((_event: KeyboardEvent) => boolean);
27
+ export {};
@@ -11,3 +11,4 @@ export declare function setSSRHandler(key: string, handler: SSRHandler): void;
11
11
  */
12
12
  export declare const customStorageEventName: 'stx-storage';
13
13
  declare type SSRHandler = (..._args: any[]) => any;
14
+ export {};
@@ -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 {};
@@ -15,3 +15,4 @@ declare interface UseIntervalControls {
15
15
  resume: () => void
16
16
  reset: () => void
17
17
  }
18
+ export {};
@@ -14,3 +14,4 @@ declare interface UseIntervalFnReturn {
14
14
  resume: () => void
15
15
  isActive: Ref<boolean>
16
16
  }
17
+ export {};
@@ -15,3 +15,4 @@ declare interface UseLocalStorageSerializer<T> {
15
15
  declare interface UseLocalStorageOptions<T> {
16
16
  serializer?: UseLocalStorageSerializer<T>
17
17
  }
18
+ export {};
package/dist/useMath.d.ts CHANGED
@@ -15,3 +15,4 @@ export declare function logicOr(...args: MaybeRef<boolean>[]): Ref<boolean>;
15
15
  export declare function and(...args: MaybeRef<boolean>[]): Ref<boolean>;
16
16
  export declare const or: unknown;
17
17
  declare type MaybeRef<T> = T | Ref<T>;
18
+ export {};
@@ -104,3 +104,4 @@ export type QueryKey = readonly unknown[];
104
104
  * `invalidate({ predicate: k => k.includes('judges') })`.
105
105
  */
106
106
  export type QueryMatcher = QueryKey | { predicate: (key: QueryKey) => boolean }
107
+ export {};
@@ -17,3 +17,4 @@ declare interface UseRafFnReturn {
17
17
  resume: () => void
18
18
  isActive: Ref<boolean>
19
19
  }
20
+ export {};
@@ -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 {};
@@ -15,3 +15,4 @@ declare interface UseSessionStorageSerializer<T> {
15
15
  declare interface UseSessionStorageOptions<T> {
16
16
  serializer?: UseSessionStorageSerializer<T>
17
17
  }
18
+ export {};
@@ -16,3 +16,4 @@ declare interface UseStorageSerializer<T> {
16
16
  declare interface UseStorageOptions<T> {
17
17
  serializer?: UseStorageSerializer<T>
18
18
  }
19
+ export {};
@@ -14,3 +14,4 @@ export declare function useTimeAgo(date: MaybeRefOrGetter<Date | number | string
14
14
  declare interface UseTimeAgoOptions {
15
15
  updateInterval?: number
16
16
  }
17
+ export {};
@@ -14,3 +14,4 @@ declare interface UseTimeoutControls {
14
14
  start: () => void
15
15
  stop: () => void
16
16
  }
17
+ export {};
@@ -14,3 +14,4 @@ declare interface UseTimeoutFnReturn {
14
14
  stop: () => void
15
15
  isPending: Ref<boolean>
16
16
  }
17
+ export {};
@@ -13,3 +13,4 @@ declare interface UseTimestampOptions {
13
13
  interval?: number | 'requestAnimationFrame'
14
14
  immediate?: boolean
15
15
  }
16
+ export {};
@@ -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.520",
5
+ "version": "0.75.524",
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.520"
55
+ "@stacksjs/datetime": "0.75.524"
56
56
  },
57
57
  "devDependencies": {
58
58
  "better-dx": "^0.2.24"