solid-tiny-utils 0.7.1 → 0.8.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/README.md +9 -9
- package/dist/color/{hex-rgb.d.ts → hex-rgb.d.mts} +5 -3
- package/dist/color/hex-rgb.mjs +62 -0
- package/dist/color/{oklch-rgb.d.ts → oklch-rgb.d.mts} +9 -8
- package/dist/color/oklch-rgb.mjs +101 -0
- package/dist/color/{validation.d.ts → validation.d.mts} +5 -3
- package/dist/color/validation.mjs +35 -0
- package/dist/dom/{css.d.ts → css.d.mts} +5 -3
- package/dist/dom/css.mjs +51 -0
- package/dist/event/create-click-outside.d.mts +9 -0
- package/dist/event/create-click-outside.mjs +33 -0
- package/dist/event/{create-event-listener.d.ts → create-event-listener.d.mts} +7 -6
- package/dist/event/create-event-listener.mjs +34 -0
- package/dist/event/{create-intersection-observer.d.ts → create-intersection-observer.d.mts} +5 -4
- package/dist/event/create-intersection-observer.mjs +29 -0
- package/dist/event/{create-visibility-observer.d.ts → create-visibility-observer.d.mts} +7 -5
- package/dist/event/create-visibility-observer.mjs +46 -0
- package/dist/event/index.d.mts +12 -0
- package/dist/event/index.mjs +15 -0
- package/dist/event/{make-event-listener.d.ts → make-event-listener.d.mts} +8 -7
- package/dist/event/make-event-listener.mjs +35 -0
- package/dist/event/on-motion-end.d.mts +63 -0
- package/dist/event/on-motion-end.mjs +96 -0
- package/dist/fn/create-debounce.d.mts +7 -0
- package/dist/fn/create-debounce.mjs +20 -0
- package/dist/fn/{create-loop-exec.d.ts → create-loop-exec.d.mts} +7 -6
- package/dist/fn/create-loop-exec.mjs +59 -0
- package/dist/fn/create-throttle.d.mts +7 -0
- package/dist/fn/create-throttle.mjs +21 -0
- package/dist/fn/index.d.mts +8 -0
- package/dist/fn/index.mjs +9 -0
- package/dist/index.d.mts +30 -0
- package/dist/index.mjs +27 -0
- package/dist/jsx/{attrs.d.ts → attrs.d.mts} +3 -2
- package/dist/jsx/attrs.mjs +26 -0
- package/dist/reactive/access.d.mts +6 -0
- package/dist/reactive/access.mjs +9 -0
- package/dist/reactive/{create-debounce-watch.d.ts → create-debounce-watch.d.mts} +6 -4
- package/dist/reactive/create-debounce-watch.mjs +15 -0
- package/dist/reactive/{create-watch.d.ts → create-watch.d.mts} +4 -3
- package/dist/reactive/create-watch.mjs +9 -0
- package/dist/reactive/index.d.mts +3 -0
- package/dist/types/{fn.d.ts → fn.d.mts} +3 -2
- package/dist/types/index.d.mts +2 -0
- package/dist/types/{maybe.d.ts → maybe.d.mts} +4 -3
- package/dist/utils/{array.d.ts → array.d.mts} +3 -2
- package/dist/utils/array.mjs +66 -0
- package/dist/utils/async.d.mts +8 -0
- package/dist/utils/async.mjs +17 -0
- package/dist/utils/{is.d.ts → is.d.mts} +3 -2
- package/dist/utils/is.mjs +72 -0
- package/dist/utils/{number.d.ts → number.d.mts} +3 -2
- package/dist/utils/number.mjs +127 -0
- package/dist/utils/{random.d.ts → random.d.mts} +3 -2
- package/dist/utils/random.mjs +33 -0
- package/dist/utils/{str.d.ts → str.d.mts} +4 -3
- package/dist/utils/str.mjs +120 -0
- package/package.json +22 -19
- package/dist/chunk-4L6FK7MF.js +0 -9
- package/dist/chunk-6G7GFZV2.js +0 -93
- package/dist/chunk-6OVLJ45M.js +0 -51
- package/dist/chunk-ACZGS7DG.js +0 -72
- package/dist/chunk-AZAXMGEB.js +0 -0
- package/dist/chunk-BLX3XSA6.js +0 -0
- package/dist/chunk-BT47ISVC.js +0 -36
- package/dist/chunk-EZML2DEC.js +0 -0
- package/dist/chunk-FFBJP5FE.js +0 -0
- package/dist/chunk-II6INKPZ.js +0 -8
- package/dist/chunk-KFLH3AZ6.js +0 -40
- package/dist/chunk-KKFGUHFR.js +0 -8
- package/dist/chunk-KM4Q6THD.js +0 -50
- package/dist/chunk-LEWF7QAQ.js +0 -47
- package/dist/chunk-LUFOWTRW.js +0 -0
- package/dist/chunk-PD6VHMH6.js +0 -26
- package/dist/chunk-QPEF6LHH.js +0 -111
- package/dist/chunk-QQVSG76Z.js +0 -36
- package/dist/chunk-S7U3LZNS.js +0 -23
- package/dist/chunk-SK6Y2YH6.js +0 -0
- package/dist/chunk-TDJLPDJF.js +0 -66
- package/dist/chunk-TGWWPUWD.js +0 -55
- package/dist/chunk-U5LQ2AS5.js +0 -0
- package/dist/chunk-WJHRONQU.js +0 -54
- package/dist/chunk-Y4GYGFIT.js +0 -85
- package/dist/chunk-YK5QQQ43.js +0 -12
- package/dist/chunk-YXRZ2KMJ.js +0 -0
- package/dist/color/hex-rgb.js +0 -15
- package/dist/color/index.d.ts +0 -3
- package/dist/color/index.js +0 -30
- package/dist/color/oklch-rgb.js +0 -15
- package/dist/color/validation.js +0 -18
- package/dist/dom/css.js +0 -19
- package/dist/dom/index.d.ts +0 -2
- package/dist/dom/index.js +0 -20
- package/dist/event/create-click-outside.d.ts +0 -8
- package/dist/event/create-click-outside.js +0 -17
- package/dist/event/create-event-listener.js +0 -17
- package/dist/event/create-intersection-observer.js +0 -16
- package/dist/event/create-visibility-observer.js +0 -16
- package/dist/event/index.d.ts +0 -8
- package/dist/event/index.js +0 -33
- package/dist/event/make-event-listener.js +0 -16
- package/dist/fn/create-debounce.d.ts +0 -6
- package/dist/fn/create-debounce.js +0 -15
- package/dist/fn/create-loop-exec.js +0 -15
- package/dist/fn/create-throttle.d.ts +0 -6
- package/dist/fn/create-throttle.js +0 -15
- package/dist/fn/index.d.ts +0 -9
- package/dist/fn/index.js +0 -21
- package/dist/index.d.ts +0 -27
- package/dist/index.js +0 -166
- package/dist/jsx/attrs.js +0 -6
- package/dist/jsx/index.d.ts +0 -1
- package/dist/jsx/index.js +0 -7
- package/dist/reactive/access.d.ts +0 -6
- package/dist/reactive/access.js +0 -13
- package/dist/reactive/create-debounce-watch.js +0 -15
- package/dist/reactive/create-watch.js +0 -6
- package/dist/reactive/index.d.ts +0 -5
- package/dist/reactive/index.js +0 -21
- package/dist/types/fn.js +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.js +0 -3
- package/dist/types/maybe.js +0 -1
- package/dist/utils/array.js +0 -13
- package/dist/utils/async.d.ts +0 -6
- package/dist/utils/async.js +0 -6
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -85
- package/dist/utils/is.js +0 -30
- package/dist/utils/number.js +0 -14
- package/dist/utils/object.d.ts +0 -10
- package/dist/utils/object.js +0 -7
- package/dist/utils/random.js +0 -14
- package/dist/utils/str.js +0 -20
package/dist/chunk-Y4GYGFIT.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// src/utils/str.ts
|
|
2
|
-
var capitalize = (str) => {
|
|
3
|
-
if (!str || str.length === 0) {
|
|
4
|
-
return "";
|
|
5
|
-
}
|
|
6
|
-
const lower = str.toLowerCase();
|
|
7
|
-
return lower.substring(0, 1).toUpperCase() + lower.substring(1, lower.length);
|
|
8
|
-
};
|
|
9
|
-
var splitRegexp = /(?=[A-Z])|[.\-\s_]/;
|
|
10
|
-
var camel = (str) => {
|
|
11
|
-
const parts = str?.replace(/([A-Z])+/g, capitalize)?.split(splitRegexp).map((x) => x.toLowerCase()) ?? [];
|
|
12
|
-
if (parts.length === 0) {
|
|
13
|
-
return "";
|
|
14
|
-
}
|
|
15
|
-
if (parts.length === 1) {
|
|
16
|
-
return parts[0];
|
|
17
|
-
}
|
|
18
|
-
return parts.reduce((acc, part) => {
|
|
19
|
-
return `${acc}${part.charAt(0).toUpperCase()}${part.slice(1)}`;
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var splitOnNumberRegexp = /([A-Za-z]{1}[0-9]{1})/;
|
|
23
|
-
var snake = (str, options) => {
|
|
24
|
-
const parts = str?.replace(/([A-Z])+/g, capitalize).split(splitRegexp).map((x) => x.toLowerCase()) ?? [];
|
|
25
|
-
if (parts.length === 0) {
|
|
26
|
-
return "";
|
|
27
|
-
}
|
|
28
|
-
if (parts.length === 1) {
|
|
29
|
-
return parts[0];
|
|
30
|
-
}
|
|
31
|
-
const result = parts.reduce((acc, part) => {
|
|
32
|
-
return `${acc}_${part.toLowerCase()}`;
|
|
33
|
-
});
|
|
34
|
-
return options?.splitOnNumber === false ? result : result.replace(splitOnNumberRegexp, (val) => `${val[0]}_${val[1]}`);
|
|
35
|
-
};
|
|
36
|
-
var dash = (str) => {
|
|
37
|
-
const parts = str?.replace(/([A-Z])+/g, capitalize)?.split(splitRegexp).map((x) => x.toLowerCase()) ?? [];
|
|
38
|
-
if (parts.length === 0) {
|
|
39
|
-
return "";
|
|
40
|
-
}
|
|
41
|
-
if (parts.length === 1) {
|
|
42
|
-
return parts[0];
|
|
43
|
-
}
|
|
44
|
-
return parts.reduce((acc, part) => {
|
|
45
|
-
return `${acc}-${part.toLowerCase()}`;
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
var pascalSplitRegexp = /[.\-\s_]/;
|
|
49
|
-
var pascal = (str) => {
|
|
50
|
-
const parts = str?.split(pascalSplitRegexp).map((x) => x.toLowerCase()) ?? [];
|
|
51
|
-
if (parts.length === 0) {
|
|
52
|
-
return "";
|
|
53
|
-
}
|
|
54
|
-
return parts.map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join("");
|
|
55
|
-
};
|
|
56
|
-
var title = (str) => {
|
|
57
|
-
if (!str) {
|
|
58
|
-
return "";
|
|
59
|
-
}
|
|
60
|
-
return str.split(splitRegexp).map((s) => s.trim()).filter((s) => !!s).map((s) => capitalize(s.toLowerCase())).join(" ");
|
|
61
|
-
};
|
|
62
|
-
var template = (str, data, regex = /\{\{(.+?)\}\}/g) => {
|
|
63
|
-
return Array.from(str.matchAll(regex)).reduce((acc, match) => {
|
|
64
|
-
return acc.replace(match[0], data[match[1]]);
|
|
65
|
-
}, str);
|
|
66
|
-
};
|
|
67
|
-
var trim = (str, charsToTrim = " ") => {
|
|
68
|
-
if (!str) {
|
|
69
|
-
return "";
|
|
70
|
-
}
|
|
71
|
-
const toTrim = charsToTrim.replace(/[\W]{1}/g, "\\$&");
|
|
72
|
-
const regex = new RegExp(`^[${toTrim}]+|[${toTrim}]+$`, "g");
|
|
73
|
-
return str.replace(regex, "");
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
capitalize,
|
|
78
|
-
camel,
|
|
79
|
-
snake,
|
|
80
|
-
dash,
|
|
81
|
-
pascal,
|
|
82
|
-
title,
|
|
83
|
-
template,
|
|
84
|
-
trim
|
|
85
|
-
};
|
package/dist/chunk-YK5QQQ43.js
DELETED
package/dist/chunk-YXRZ2KMJ.js
DELETED
|
File without changes
|
package/dist/color/hex-rgb.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
hexToRgb,
|
|
3
|
-
rgbToHex
|
|
4
|
-
} from "../chunk-KFLH3AZ6.js";
|
|
5
|
-
import "../chunk-U5LQ2AS5.js";
|
|
6
|
-
import "../chunk-QQVSG76Z.js";
|
|
7
|
-
import "../chunk-Y4GYGFIT.js";
|
|
8
|
-
import "../chunk-BT47ISVC.js";
|
|
9
|
-
import "../chunk-KKFGUHFR.js";
|
|
10
|
-
import "../chunk-6G7GFZV2.js";
|
|
11
|
-
import "../chunk-PD6VHMH6.js";
|
|
12
|
-
export {
|
|
13
|
-
hexToRgb,
|
|
14
|
-
rgbToHex
|
|
15
|
-
};
|
package/dist/color/index.d.ts
DELETED
package/dist/color/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import "../chunk-BLX3XSA6.js";
|
|
2
|
-
import {
|
|
3
|
-
oklchToRgb,
|
|
4
|
-
rgbToOklch
|
|
5
|
-
} from "../chunk-ACZGS7DG.js";
|
|
6
|
-
import {
|
|
7
|
-
isValidHex,
|
|
8
|
-
isValidOKLCH,
|
|
9
|
-
isValidRGB
|
|
10
|
-
} from "../chunk-S7U3LZNS.js";
|
|
11
|
-
import {
|
|
12
|
-
hexToRgb,
|
|
13
|
-
rgbToHex
|
|
14
|
-
} from "../chunk-KFLH3AZ6.js";
|
|
15
|
-
import "../chunk-U5LQ2AS5.js";
|
|
16
|
-
import "../chunk-QQVSG76Z.js";
|
|
17
|
-
import "../chunk-Y4GYGFIT.js";
|
|
18
|
-
import "../chunk-BT47ISVC.js";
|
|
19
|
-
import "../chunk-KKFGUHFR.js";
|
|
20
|
-
import "../chunk-6G7GFZV2.js";
|
|
21
|
-
import "../chunk-PD6VHMH6.js";
|
|
22
|
-
export {
|
|
23
|
-
hexToRgb,
|
|
24
|
-
isValidHex,
|
|
25
|
-
isValidOKLCH,
|
|
26
|
-
isValidRGB,
|
|
27
|
-
oklchToRgb,
|
|
28
|
-
rgbToHex,
|
|
29
|
-
rgbToOklch
|
|
30
|
-
};
|
package/dist/color/oklch-rgb.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
oklchToRgb,
|
|
3
|
-
rgbToOklch
|
|
4
|
-
} from "../chunk-ACZGS7DG.js";
|
|
5
|
-
import "../chunk-U5LQ2AS5.js";
|
|
6
|
-
import "../chunk-QQVSG76Z.js";
|
|
7
|
-
import "../chunk-Y4GYGFIT.js";
|
|
8
|
-
import "../chunk-BT47ISVC.js";
|
|
9
|
-
import "../chunk-KKFGUHFR.js";
|
|
10
|
-
import "../chunk-6G7GFZV2.js";
|
|
11
|
-
import "../chunk-PD6VHMH6.js";
|
|
12
|
-
export {
|
|
13
|
-
oklchToRgb,
|
|
14
|
-
rgbToOklch
|
|
15
|
-
};
|
package/dist/color/validation.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isValidHex,
|
|
3
|
-
isValidOKLCH,
|
|
4
|
-
isValidRGB
|
|
5
|
-
} from "../chunk-S7U3LZNS.js";
|
|
6
|
-
import "../chunk-KFLH3AZ6.js";
|
|
7
|
-
import "../chunk-U5LQ2AS5.js";
|
|
8
|
-
import "../chunk-QQVSG76Z.js";
|
|
9
|
-
import "../chunk-Y4GYGFIT.js";
|
|
10
|
-
import "../chunk-BT47ISVC.js";
|
|
11
|
-
import "../chunk-KKFGUHFR.js";
|
|
12
|
-
import "../chunk-6G7GFZV2.js";
|
|
13
|
-
import "../chunk-PD6VHMH6.js";
|
|
14
|
-
export {
|
|
15
|
-
isValidHex,
|
|
16
|
-
isValidOKLCH,
|
|
17
|
-
isValidRGB
|
|
18
|
-
};
|
package/dist/dom/css.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
combineClass,
|
|
3
|
-
combineStyle,
|
|
4
|
-
mountStyle,
|
|
5
|
-
stringStyleToObject
|
|
6
|
-
} from "../chunk-KM4Q6THD.js";
|
|
7
|
-
import "../chunk-U5LQ2AS5.js";
|
|
8
|
-
import "../chunk-QQVSG76Z.js";
|
|
9
|
-
import "../chunk-Y4GYGFIT.js";
|
|
10
|
-
import "../chunk-BT47ISVC.js";
|
|
11
|
-
import "../chunk-KKFGUHFR.js";
|
|
12
|
-
import "../chunk-6G7GFZV2.js";
|
|
13
|
-
import "../chunk-PD6VHMH6.js";
|
|
14
|
-
export {
|
|
15
|
-
combineClass,
|
|
16
|
-
combineStyle,
|
|
17
|
-
mountStyle,
|
|
18
|
-
stringStyleToObject
|
|
19
|
-
};
|
package/dist/dom/index.d.ts
DELETED
package/dist/dom/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "../chunk-FFBJP5FE.js";
|
|
2
|
-
import {
|
|
3
|
-
combineClass,
|
|
4
|
-
combineStyle,
|
|
5
|
-
mountStyle,
|
|
6
|
-
stringStyleToObject
|
|
7
|
-
} from "../chunk-KM4Q6THD.js";
|
|
8
|
-
import "../chunk-U5LQ2AS5.js";
|
|
9
|
-
import "../chunk-QQVSG76Z.js";
|
|
10
|
-
import "../chunk-Y4GYGFIT.js";
|
|
11
|
-
import "../chunk-BT47ISVC.js";
|
|
12
|
-
import "../chunk-KKFGUHFR.js";
|
|
13
|
-
import "../chunk-6G7GFZV2.js";
|
|
14
|
-
import "../chunk-PD6VHMH6.js";
|
|
15
|
-
export {
|
|
16
|
-
combineClass,
|
|
17
|
-
combineStyle,
|
|
18
|
-
mountStyle,
|
|
19
|
-
stringStyleToObject
|
|
20
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MaybeAccessor } from '../types/maybe.js';
|
|
2
|
-
import 'solid-js';
|
|
3
|
-
|
|
4
|
-
declare function createClickOutside(target: MaybeAccessor<HTMLElement | null | undefined>, handler: (event: PointerEvent) => void, options?: {
|
|
5
|
-
ignore?: MaybeAccessor<HTMLElement | null | undefined>[];
|
|
6
|
-
}): () => void;
|
|
7
|
-
|
|
8
|
-
export { createClickOutside };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createClickOutside
|
|
3
|
-
} from "../chunk-WJHRONQU.js";
|
|
4
|
-
import "../chunk-TGWWPUWD.js";
|
|
5
|
-
import "../chunk-QPEF6LHH.js";
|
|
6
|
-
import "../chunk-YK5QQQ43.js";
|
|
7
|
-
import "../chunk-4L6FK7MF.js";
|
|
8
|
-
import "../chunk-U5LQ2AS5.js";
|
|
9
|
-
import "../chunk-QQVSG76Z.js";
|
|
10
|
-
import "../chunk-Y4GYGFIT.js";
|
|
11
|
-
import "../chunk-BT47ISVC.js";
|
|
12
|
-
import "../chunk-KKFGUHFR.js";
|
|
13
|
-
import "../chunk-6G7GFZV2.js";
|
|
14
|
-
import "../chunk-PD6VHMH6.js";
|
|
15
|
-
export {
|
|
16
|
-
createClickOutside
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createEventListener
|
|
3
|
-
} from "../chunk-6OVLJ45M.js";
|
|
4
|
-
import "../chunk-TGWWPUWD.js";
|
|
5
|
-
import "../chunk-QPEF6LHH.js";
|
|
6
|
-
import "../chunk-YK5QQQ43.js";
|
|
7
|
-
import "../chunk-4L6FK7MF.js";
|
|
8
|
-
import "../chunk-U5LQ2AS5.js";
|
|
9
|
-
import "../chunk-QQVSG76Z.js";
|
|
10
|
-
import "../chunk-Y4GYGFIT.js";
|
|
11
|
-
import "../chunk-BT47ISVC.js";
|
|
12
|
-
import "../chunk-KKFGUHFR.js";
|
|
13
|
-
import "../chunk-6G7GFZV2.js";
|
|
14
|
-
import "../chunk-PD6VHMH6.js";
|
|
15
|
-
export {
|
|
16
|
-
createEventListener
|
|
17
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createIntersectionObserver
|
|
3
|
-
} from "../chunk-LEWF7QAQ.js";
|
|
4
|
-
import "../chunk-QPEF6LHH.js";
|
|
5
|
-
import "../chunk-YK5QQQ43.js";
|
|
6
|
-
import "../chunk-4L6FK7MF.js";
|
|
7
|
-
import "../chunk-U5LQ2AS5.js";
|
|
8
|
-
import "../chunk-QQVSG76Z.js";
|
|
9
|
-
import "../chunk-Y4GYGFIT.js";
|
|
10
|
-
import "../chunk-BT47ISVC.js";
|
|
11
|
-
import "../chunk-KKFGUHFR.js";
|
|
12
|
-
import "../chunk-6G7GFZV2.js";
|
|
13
|
-
import "../chunk-PD6VHMH6.js";
|
|
14
|
-
export {
|
|
15
|
-
createIntersectionObserver
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createVisibilityObserver
|
|
3
|
-
} from "../chunk-TDJLPDJF.js";
|
|
4
|
-
import "../chunk-QPEF6LHH.js";
|
|
5
|
-
import "../chunk-YK5QQQ43.js";
|
|
6
|
-
import "../chunk-4L6FK7MF.js";
|
|
7
|
-
import "../chunk-U5LQ2AS5.js";
|
|
8
|
-
import "../chunk-QQVSG76Z.js";
|
|
9
|
-
import "../chunk-Y4GYGFIT.js";
|
|
10
|
-
import "../chunk-BT47ISVC.js";
|
|
11
|
-
import "../chunk-KKFGUHFR.js";
|
|
12
|
-
import "../chunk-6G7GFZV2.js";
|
|
13
|
-
import "../chunk-PD6VHMH6.js";
|
|
14
|
-
export {
|
|
15
|
-
createVisibilityObserver
|
|
16
|
-
};
|
package/dist/event/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { createClickOutside } from './create-click-outside.js';
|
|
2
|
-
export { createEventListener } from './create-event-listener.js';
|
|
3
|
-
export { createIntersectionObserver } from './create-intersection-observer.js';
|
|
4
|
-
export { CreateVisibilityObserverOption, EntryCallback, UseVisibilityObserverFn, createVisibilityObserver } from './create-visibility-observer.js';
|
|
5
|
-
export { DocumentEventName, GeneralEventListener, WindowEventName, makeEventListener } from './make-event-listener.js';
|
|
6
|
-
import '../types/maybe.js';
|
|
7
|
-
import 'solid-js';
|
|
8
|
-
import '../types/fn.js';
|
package/dist/event/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import "../chunk-LUFOWTRW.js";
|
|
2
|
-
import {
|
|
3
|
-
createEventListener
|
|
4
|
-
} from "../chunk-6OVLJ45M.js";
|
|
5
|
-
import {
|
|
6
|
-
createIntersectionObserver
|
|
7
|
-
} from "../chunk-LEWF7QAQ.js";
|
|
8
|
-
import {
|
|
9
|
-
createVisibilityObserver
|
|
10
|
-
} from "../chunk-TDJLPDJF.js";
|
|
11
|
-
import {
|
|
12
|
-
createClickOutside
|
|
13
|
-
} from "../chunk-WJHRONQU.js";
|
|
14
|
-
import {
|
|
15
|
-
makeEventListener
|
|
16
|
-
} from "../chunk-TGWWPUWD.js";
|
|
17
|
-
import "../chunk-QPEF6LHH.js";
|
|
18
|
-
import "../chunk-YK5QQQ43.js";
|
|
19
|
-
import "../chunk-4L6FK7MF.js";
|
|
20
|
-
import "../chunk-U5LQ2AS5.js";
|
|
21
|
-
import "../chunk-QQVSG76Z.js";
|
|
22
|
-
import "../chunk-Y4GYGFIT.js";
|
|
23
|
-
import "../chunk-BT47ISVC.js";
|
|
24
|
-
import "../chunk-KKFGUHFR.js";
|
|
25
|
-
import "../chunk-6G7GFZV2.js";
|
|
26
|
-
import "../chunk-PD6VHMH6.js";
|
|
27
|
-
export {
|
|
28
|
-
createClickOutside,
|
|
29
|
-
createEventListener,
|
|
30
|
-
createIntersectionObserver,
|
|
31
|
-
createVisibilityObserver,
|
|
32
|
-
makeEventListener
|
|
33
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
makeEventListener
|
|
3
|
-
} from "../chunk-TGWWPUWD.js";
|
|
4
|
-
import "../chunk-QPEF6LHH.js";
|
|
5
|
-
import "../chunk-YK5QQQ43.js";
|
|
6
|
-
import "../chunk-4L6FK7MF.js";
|
|
7
|
-
import "../chunk-U5LQ2AS5.js";
|
|
8
|
-
import "../chunk-QQVSG76Z.js";
|
|
9
|
-
import "../chunk-Y4GYGFIT.js";
|
|
10
|
-
import "../chunk-BT47ISVC.js";
|
|
11
|
-
import "../chunk-KKFGUHFR.js";
|
|
12
|
-
import "../chunk-6G7GFZV2.js";
|
|
13
|
-
import "../chunk-PD6VHMH6.js";
|
|
14
|
-
export {
|
|
15
|
-
makeEventListener
|
|
16
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createDebounce
|
|
3
|
-
} from "../chunk-QPEF6LHH.js";
|
|
4
|
-
import "../chunk-YK5QQQ43.js";
|
|
5
|
-
import "../chunk-4L6FK7MF.js";
|
|
6
|
-
import "../chunk-U5LQ2AS5.js";
|
|
7
|
-
import "../chunk-QQVSG76Z.js";
|
|
8
|
-
import "../chunk-Y4GYGFIT.js";
|
|
9
|
-
import "../chunk-BT47ISVC.js";
|
|
10
|
-
import "../chunk-KKFGUHFR.js";
|
|
11
|
-
import "../chunk-6G7GFZV2.js";
|
|
12
|
-
import "../chunk-PD6VHMH6.js";
|
|
13
|
-
export {
|
|
14
|
-
createDebounce
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createLoopExec
|
|
3
|
-
} from "../chunk-QPEF6LHH.js";
|
|
4
|
-
import "../chunk-YK5QQQ43.js";
|
|
5
|
-
import "../chunk-4L6FK7MF.js";
|
|
6
|
-
import "../chunk-U5LQ2AS5.js";
|
|
7
|
-
import "../chunk-QQVSG76Z.js";
|
|
8
|
-
import "../chunk-Y4GYGFIT.js";
|
|
9
|
-
import "../chunk-BT47ISVC.js";
|
|
10
|
-
import "../chunk-KKFGUHFR.js";
|
|
11
|
-
import "../chunk-6G7GFZV2.js";
|
|
12
|
-
import "../chunk-PD6VHMH6.js";
|
|
13
|
-
export {
|
|
14
|
-
createLoopExec
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createThrottle
|
|
3
|
-
} from "../chunk-QPEF6LHH.js";
|
|
4
|
-
import "../chunk-YK5QQQ43.js";
|
|
5
|
-
import "../chunk-4L6FK7MF.js";
|
|
6
|
-
import "../chunk-U5LQ2AS5.js";
|
|
7
|
-
import "../chunk-QQVSG76Z.js";
|
|
8
|
-
import "../chunk-Y4GYGFIT.js";
|
|
9
|
-
import "../chunk-BT47ISVC.js";
|
|
10
|
-
import "../chunk-KKFGUHFR.js";
|
|
11
|
-
import "../chunk-6G7GFZV2.js";
|
|
12
|
-
import "../chunk-PD6VHMH6.js";
|
|
13
|
-
export {
|
|
14
|
-
createThrottle
|
|
15
|
-
};
|
package/dist/fn/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { createDebounce } from './create-debounce.js';
|
|
2
|
-
export { createLoopExec } from './create-loop-exec.js';
|
|
3
|
-
export { createThrottle } from './create-throttle.js';
|
|
4
|
-
import '../types/maybe.js';
|
|
5
|
-
import 'solid-js';
|
|
6
|
-
|
|
7
|
-
declare const noop: () => void;
|
|
8
|
-
|
|
9
|
-
export { noop };
|
package/dist/fn/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createDebounce,
|
|
3
|
-
createLoopExec,
|
|
4
|
-
createThrottle,
|
|
5
|
-
noop
|
|
6
|
-
} from "../chunk-QPEF6LHH.js";
|
|
7
|
-
import "../chunk-YK5QQQ43.js";
|
|
8
|
-
import "../chunk-4L6FK7MF.js";
|
|
9
|
-
import "../chunk-U5LQ2AS5.js";
|
|
10
|
-
import "../chunk-QQVSG76Z.js";
|
|
11
|
-
import "../chunk-Y4GYGFIT.js";
|
|
12
|
-
import "../chunk-BT47ISVC.js";
|
|
13
|
-
import "../chunk-KKFGUHFR.js";
|
|
14
|
-
import "../chunk-6G7GFZV2.js";
|
|
15
|
-
import "../chunk-PD6VHMH6.js";
|
|
16
|
-
export {
|
|
17
|
-
createDebounce,
|
|
18
|
-
createLoopExec,
|
|
19
|
-
createThrottle,
|
|
20
|
-
noop
|
|
21
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export { hexToRgb, rgbToHex } from './color/hex-rgb.js';
|
|
2
|
-
export { OKLCH, RGB, oklchToRgb, rgbToOklch } from './color/oklch-rgb.js';
|
|
3
|
-
export { isValidHex, isValidOKLCH, isValidRGB } from './color/validation.js';
|
|
4
|
-
export { combineClass, combineStyle, mountStyle, stringStyleToObject } from './dom/css.js';
|
|
5
|
-
export { createClickOutside } from './event/create-click-outside.js';
|
|
6
|
-
export { createEventListener } from './event/create-event-listener.js';
|
|
7
|
-
export { createIntersectionObserver } from './event/create-intersection-observer.js';
|
|
8
|
-
export { CreateVisibilityObserverOption, EntryCallback, UseVisibilityObserverFn, createVisibilityObserver } from './event/create-visibility-observer.js';
|
|
9
|
-
export { DocumentEventName, GeneralEventListener, WindowEventName, makeEventListener } from './event/make-event-listener.js';
|
|
10
|
-
export { noop } from './fn/index.js';
|
|
11
|
-
export { dataIf } from './jsx/attrs.js';
|
|
12
|
-
export { access } from './reactive/access.js';
|
|
13
|
-
export { createDebouncedWatch } from './reactive/create-debounce-watch.js';
|
|
14
|
-
export { createWatch } from './reactive/create-watch.js';
|
|
15
|
-
export { AnyFn, Fn } from './types/fn.js';
|
|
16
|
-
export { MaybeAccessor, MaybeArray, MaybeNullableAccessor, MaybePromise } from './types/maybe.js';
|
|
17
|
-
export { clearArray, iterate, list, range } from './utils/array.js';
|
|
18
|
-
export { sleep } from './utils/async.js';
|
|
19
|
-
export { isArray, isClient, isDate, isEmpty, isFloat, isFn, isInt, isNumber, isObject, isPrimitive, isPromise, isString, isSymbol } from './utils/is.js';
|
|
20
|
-
export { clamp, inRange, max, min, toHex } from './utils/number.js';
|
|
21
|
-
export { draw, random, shuffle, uid } from './utils/random.js';
|
|
22
|
-
export { camel, capitalize, dash, pascal, snake, template, title, trim } from './utils/str.js';
|
|
23
|
-
export { createDebounce } from './fn/create-debounce.js';
|
|
24
|
-
export { createLoopExec } from './fn/create-loop-exec.js';
|
|
25
|
-
export { createThrottle } from './fn/create-throttle.js';
|
|
26
|
-
import 'solid-js/jsx-runtime';
|
|
27
|
-
import 'solid-js';
|
package/dist/index.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import "./chunk-SK6Y2YH6.js";
|
|
2
|
-
import "./chunk-EZML2DEC.js";
|
|
3
|
-
import "./chunk-YXRZ2KMJ.js";
|
|
4
|
-
import {
|
|
5
|
-
dataIf
|
|
6
|
-
} from "./chunk-II6INKPZ.js";
|
|
7
|
-
import "./chunk-AZAXMGEB.js";
|
|
8
|
-
import "./chunk-LUFOWTRW.js";
|
|
9
|
-
import {
|
|
10
|
-
createEventListener
|
|
11
|
-
} from "./chunk-6OVLJ45M.js";
|
|
12
|
-
import {
|
|
13
|
-
createIntersectionObserver
|
|
14
|
-
} from "./chunk-LEWF7QAQ.js";
|
|
15
|
-
import {
|
|
16
|
-
createVisibilityObserver
|
|
17
|
-
} from "./chunk-TDJLPDJF.js";
|
|
18
|
-
import "./chunk-BLX3XSA6.js";
|
|
19
|
-
import {
|
|
20
|
-
oklchToRgb,
|
|
21
|
-
rgbToOklch
|
|
22
|
-
} from "./chunk-ACZGS7DG.js";
|
|
23
|
-
import {
|
|
24
|
-
isValidHex,
|
|
25
|
-
isValidOKLCH,
|
|
26
|
-
isValidRGB
|
|
27
|
-
} from "./chunk-S7U3LZNS.js";
|
|
28
|
-
import {
|
|
29
|
-
hexToRgb,
|
|
30
|
-
rgbToHex
|
|
31
|
-
} from "./chunk-KFLH3AZ6.js";
|
|
32
|
-
import "./chunk-FFBJP5FE.js";
|
|
33
|
-
import {
|
|
34
|
-
combineClass,
|
|
35
|
-
combineStyle,
|
|
36
|
-
mountStyle,
|
|
37
|
-
stringStyleToObject
|
|
38
|
-
} from "./chunk-KM4Q6THD.js";
|
|
39
|
-
import {
|
|
40
|
-
createClickOutside
|
|
41
|
-
} from "./chunk-WJHRONQU.js";
|
|
42
|
-
import {
|
|
43
|
-
makeEventListener
|
|
44
|
-
} from "./chunk-TGWWPUWD.js";
|
|
45
|
-
import {
|
|
46
|
-
createDebounce,
|
|
47
|
-
createDebouncedWatch,
|
|
48
|
-
createLoopExec,
|
|
49
|
-
createThrottle,
|
|
50
|
-
noop
|
|
51
|
-
} from "./chunk-QPEF6LHH.js";
|
|
52
|
-
import {
|
|
53
|
-
access
|
|
54
|
-
} from "./chunk-YK5QQQ43.js";
|
|
55
|
-
import {
|
|
56
|
-
createWatch
|
|
57
|
-
} from "./chunk-4L6FK7MF.js";
|
|
58
|
-
import "./chunk-U5LQ2AS5.js";
|
|
59
|
-
import {
|
|
60
|
-
draw,
|
|
61
|
-
random,
|
|
62
|
-
shuffle,
|
|
63
|
-
uid
|
|
64
|
-
} from "./chunk-QQVSG76Z.js";
|
|
65
|
-
import {
|
|
66
|
-
camel,
|
|
67
|
-
capitalize,
|
|
68
|
-
dash,
|
|
69
|
-
pascal,
|
|
70
|
-
snake,
|
|
71
|
-
template,
|
|
72
|
-
title,
|
|
73
|
-
trim
|
|
74
|
-
} from "./chunk-Y4GYGFIT.js";
|
|
75
|
-
import {
|
|
76
|
-
clearArray,
|
|
77
|
-
iterate,
|
|
78
|
-
list,
|
|
79
|
-
range
|
|
80
|
-
} from "./chunk-BT47ISVC.js";
|
|
81
|
-
import {
|
|
82
|
-
sleep
|
|
83
|
-
} from "./chunk-KKFGUHFR.js";
|
|
84
|
-
import {
|
|
85
|
-
isArray,
|
|
86
|
-
isClient,
|
|
87
|
-
isDate,
|
|
88
|
-
isEmpty,
|
|
89
|
-
isFloat,
|
|
90
|
-
isFn,
|
|
91
|
-
isInt,
|
|
92
|
-
isNumber,
|
|
93
|
-
isObject,
|
|
94
|
-
isPrimitive,
|
|
95
|
-
isPromise,
|
|
96
|
-
isString,
|
|
97
|
-
isSymbol
|
|
98
|
-
} from "./chunk-6G7GFZV2.js";
|
|
99
|
-
import {
|
|
100
|
-
clamp,
|
|
101
|
-
inRange,
|
|
102
|
-
max,
|
|
103
|
-
min,
|
|
104
|
-
toHex
|
|
105
|
-
} from "./chunk-PD6VHMH6.js";
|
|
106
|
-
export {
|
|
107
|
-
access,
|
|
108
|
-
camel,
|
|
109
|
-
capitalize,
|
|
110
|
-
clamp,
|
|
111
|
-
clearArray,
|
|
112
|
-
combineClass,
|
|
113
|
-
combineStyle,
|
|
114
|
-
createClickOutside,
|
|
115
|
-
createDebounce,
|
|
116
|
-
createDebouncedWatch,
|
|
117
|
-
createEventListener,
|
|
118
|
-
createIntersectionObserver,
|
|
119
|
-
createLoopExec,
|
|
120
|
-
createThrottle,
|
|
121
|
-
createVisibilityObserver,
|
|
122
|
-
createWatch,
|
|
123
|
-
dash,
|
|
124
|
-
dataIf,
|
|
125
|
-
draw,
|
|
126
|
-
hexToRgb,
|
|
127
|
-
inRange,
|
|
128
|
-
isArray,
|
|
129
|
-
isClient,
|
|
130
|
-
isDate,
|
|
131
|
-
isEmpty,
|
|
132
|
-
isFloat,
|
|
133
|
-
isFn,
|
|
134
|
-
isInt,
|
|
135
|
-
isNumber,
|
|
136
|
-
isObject,
|
|
137
|
-
isPrimitive,
|
|
138
|
-
isPromise,
|
|
139
|
-
isString,
|
|
140
|
-
isSymbol,
|
|
141
|
-
isValidHex,
|
|
142
|
-
isValidOKLCH,
|
|
143
|
-
isValidRGB,
|
|
144
|
-
iterate,
|
|
145
|
-
list,
|
|
146
|
-
makeEventListener,
|
|
147
|
-
max,
|
|
148
|
-
min,
|
|
149
|
-
mountStyle,
|
|
150
|
-
noop,
|
|
151
|
-
oklchToRgb,
|
|
152
|
-
pascal,
|
|
153
|
-
random,
|
|
154
|
-
range,
|
|
155
|
-
rgbToHex,
|
|
156
|
-
rgbToOklch,
|
|
157
|
-
shuffle,
|
|
158
|
-
sleep,
|
|
159
|
-
snake,
|
|
160
|
-
stringStyleToObject,
|
|
161
|
-
template,
|
|
162
|
-
title,
|
|
163
|
-
toHex,
|
|
164
|
-
trim,
|
|
165
|
-
uid
|
|
166
|
-
};
|