@maz-ui/utils 4.0.0-beta.19 → 4.0.0-beta.24
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/helpers/index.js +54 -42
- package/dist/index.js +36 -36
- package/dist/types/helpers/index.d.ts +6 -0
- package/dist/types/index.d.ts +0 -1
- package/package.json +2 -15
- package/dist/formatters/index.js +0 -14
- package/dist/types/formatters/index.d.ts +0 -6
- /package/dist/{formatters → helpers}/camelCase.js +0 -0
- /package/dist/{formatters → helpers}/capitalize.js +0 -0
- /package/dist/{formatters → helpers}/formatCurrency.js +0 -0
- /package/dist/{formatters → helpers}/formatDate.js +0 -0
- /package/dist/{formatters → helpers}/formatNumber.js +0 -0
- /package/dist/{formatters → helpers}/formatPhoneNumber.js +0 -0
- /package/dist/{formatters → helpers}/pascalCase.js +0 -0
- /package/dist/types/{formatters → helpers}/camelCase.d.ts +0 -0
- /package/dist/types/{formatters → helpers}/capitalize.d.ts +0 -0
- /package/dist/types/{formatters → helpers}/formatCurrency.d.ts +0 -0
- /package/dist/types/{formatters → helpers}/formatDate.d.ts +0 -0
- /package/dist/types/{formatters → helpers}/formatNumber.d.ts +0 -0
- /package/dist/types/{formatters → helpers}/formatPhoneNumber.d.ts +0 -0
- /package/dist/types/{formatters → helpers}/pascalCase.d.ts +0 -0
package/dist/helpers/index.js
CHANGED
|
@@ -1,44 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
1
|
+
import { camelCase as e } from "./camelCase.js";
|
|
2
|
+
import { capitalize as m } from "./capitalize.js";
|
|
3
|
+
import { checkAvailability as f } from "./checkAvailability.js";
|
|
4
|
+
import { countryCodeToUnicodeFlag as a } from "./countryCodeToUnicodeFlag.js";
|
|
5
|
+
import { debounce as l } from "./debounce.js";
|
|
6
|
+
import { debounceCallback as n } from "./debounceCallback.js";
|
|
7
|
+
import { debounceId as d } from "./debounceId.js";
|
|
8
|
+
import { formatCurrency as b } from "./formatCurrency.js";
|
|
9
|
+
import { formatDate as C } from "./formatDate.js";
|
|
10
|
+
import { formatNumber as S } from "./formatNumber.js";
|
|
11
|
+
import { getCountryFlagUrl as F } from "./getCountryFlagUrl.js";
|
|
12
|
+
import { getErrorMessage as T } from "./getErrorMessage.js";
|
|
13
|
+
import { IdleTimeout as k } from "./idleTimeout.js";
|
|
14
|
+
import { isClient as w } from "./isClient.js";
|
|
15
|
+
import { isEqual as A } from "./isEqual.js";
|
|
16
|
+
import { isServer as M } from "./isServer.js";
|
|
17
|
+
import { isStandaloneMode as D } from "./isStandaloneMode.js";
|
|
18
|
+
import { normalizeString as N } from "./normalizeString.js";
|
|
19
|
+
import { pascalCase as j } from "./pascalCase.js";
|
|
20
|
+
import { ScriptLoader as G } from "./scriptLoader.js";
|
|
21
|
+
import { sleep as J } from "./sleep.js";
|
|
22
|
+
import { Swipe as O } from "./swipeHandler.js";
|
|
23
|
+
import { TextareaAutogrow as Q } from "./TextareaAutogrow.js";
|
|
24
|
+
import { throttle as W } from "./throttle.js";
|
|
25
|
+
import { throttleId as Y } from "./throttleId.js";
|
|
26
|
+
import { truthyFilter as _ } from "./truthyFilter.js";
|
|
27
|
+
import { UserVisibility as rr } from "./userVisibility.js";
|
|
22
28
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
e as
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
n as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
k as IdleTimeout,
|
|
30
|
+
G as ScriptLoader,
|
|
31
|
+
O as Swipe,
|
|
32
|
+
Q as TextareaAutogrow,
|
|
33
|
+
rr as UserVisibility,
|
|
34
|
+
e as camelCase,
|
|
35
|
+
m as capitalize,
|
|
36
|
+
f as checkAvailability,
|
|
37
|
+
a as countryCodeToUnicodeFlag,
|
|
38
|
+
l as debounce,
|
|
39
|
+
n as debounceCallback,
|
|
40
|
+
d as debounceId,
|
|
41
|
+
b as formatCurrency,
|
|
42
|
+
C as formatDate,
|
|
43
|
+
S as formatNumber,
|
|
44
|
+
F as getCountryFlagUrl,
|
|
45
|
+
T as getErrorMessage,
|
|
46
|
+
w as isClient,
|
|
47
|
+
A as isEqual,
|
|
48
|
+
M as isServer,
|
|
49
|
+
D as isStandaloneMode,
|
|
50
|
+
N as normalizeString,
|
|
51
|
+
j as pascalCase,
|
|
52
|
+
J as sleep,
|
|
53
|
+
W as throttle,
|
|
54
|
+
Y as throttleId,
|
|
55
|
+
_ as truthyFilter
|
|
44
56
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { camelCase as e } from "./
|
|
2
|
-
import { capitalize as m } from "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
1
|
+
import { camelCase as e } from "./helpers/camelCase.js";
|
|
2
|
+
import { capitalize as m } from "./helpers/capitalize.js";
|
|
3
|
+
import { checkAvailability as f } from "./helpers/checkAvailability.js";
|
|
4
|
+
import { countryCodeToUnicodeFlag as a } from "./helpers/countryCodeToUnicodeFlag.js";
|
|
5
|
+
import { debounce as l } from "./helpers/debounce.js";
|
|
6
|
+
import { debounceCallback as n } from "./helpers/debounceCallback.js";
|
|
7
|
+
import { debounceId as d } from "./helpers/debounceId.js";
|
|
8
|
+
import { formatCurrency as b } from "./helpers/formatCurrency.js";
|
|
9
|
+
import { formatDate as C } from "./helpers/formatDate.js";
|
|
10
|
+
import { formatNumber as S } from "./helpers/formatNumber.js";
|
|
11
|
+
import { getCountryFlagUrl as F } from "./helpers/getCountryFlagUrl.js";
|
|
12
|
+
import { getErrorMessage as T } from "./helpers/getErrorMessage.js";
|
|
13
|
+
import { IdleTimeout as k } from "./helpers/idleTimeout.js";
|
|
14
|
+
import { isClient as w } from "./helpers/isClient.js";
|
|
15
|
+
import { isEqual as A } from "./helpers/isEqual.js";
|
|
16
|
+
import { isServer as M } from "./helpers/isServer.js";
|
|
17
|
+
import { isStandaloneMode as D } from "./helpers/isStandaloneMode.js";
|
|
18
|
+
import { normalizeString as N } from "./helpers/normalizeString.js";
|
|
19
|
+
import { pascalCase as j } from "./helpers/pascalCase.js";
|
|
20
20
|
import { ScriptLoader as G } from "./helpers/scriptLoader.js";
|
|
21
21
|
import { sleep as J } from "./helpers/sleep.js";
|
|
22
22
|
import { Swipe as O } from "./helpers/swipeHandler.js";
|
|
@@ -26,29 +26,29 @@ import { throttleId as Y } from "./helpers/throttleId.js";
|
|
|
26
26
|
import { truthyFilter as _ } from "./helpers/truthyFilter.js";
|
|
27
27
|
import { UserVisibility as rr } from "./helpers/userVisibility.js";
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
k as IdleTimeout,
|
|
30
30
|
G as ScriptLoader,
|
|
31
31
|
O as Swipe,
|
|
32
32
|
Q as TextareaAutogrow,
|
|
33
33
|
rr as UserVisibility,
|
|
34
34
|
e as camelCase,
|
|
35
35
|
m as capitalize,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
36
|
+
f as checkAvailability,
|
|
37
|
+
a as countryCodeToUnicodeFlag,
|
|
38
|
+
l as debounce,
|
|
39
|
+
n as debounceCallback,
|
|
40
|
+
d as debounceId,
|
|
41
|
+
b as formatCurrency,
|
|
42
|
+
C as formatDate,
|
|
43
|
+
S as formatNumber,
|
|
44
|
+
F as getCountryFlagUrl,
|
|
45
|
+
T as getErrorMessage,
|
|
46
|
+
w as isClient,
|
|
47
|
+
A as isEqual,
|
|
48
|
+
M as isServer,
|
|
49
|
+
D as isStandaloneMode,
|
|
50
|
+
N as normalizeString,
|
|
51
|
+
j as pascalCase,
|
|
52
52
|
J as sleep,
|
|
53
53
|
W as throttle,
|
|
54
54
|
Y as throttleId,
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
export * from './camelCase';
|
|
2
|
+
export * from './capitalize';
|
|
1
3
|
export * from './checkAvailability';
|
|
2
4
|
export * from './countryCodeToUnicodeFlag';
|
|
3
5
|
export * from './debounce';
|
|
4
6
|
export * from './debounceCallback';
|
|
5
7
|
export * from './debounceId';
|
|
8
|
+
export * from './formatCurrency';
|
|
9
|
+
export * from './formatDate';
|
|
10
|
+
export * from './formatNumber';
|
|
6
11
|
export * from './getCountryFlagUrl';
|
|
7
12
|
export * from './getErrorMessage';
|
|
8
13
|
export * from './idleTimeout';
|
|
@@ -11,6 +16,7 @@ export * from './isEqual';
|
|
|
11
16
|
export * from './isServer';
|
|
12
17
|
export * from './isStandaloneMode';
|
|
13
18
|
export * from './normalizeString';
|
|
19
|
+
export * from './pascalCase';
|
|
14
20
|
export * from './scriptLoader';
|
|
15
21
|
export * from './sleep';
|
|
16
22
|
export * from './swipeHandler';
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.24",
|
|
5
5
|
"description": "Utils of maz-ui for JavaScript/TypeScript users",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -32,24 +32,12 @@
|
|
|
32
32
|
"module": "./dist/helpers/index.js",
|
|
33
33
|
"default": "./dist/helpers/index.js"
|
|
34
34
|
},
|
|
35
|
-
"./formatters": {
|
|
36
|
-
"types": "./dist/types/formatters/index.d.ts",
|
|
37
|
-
"import": "./dist/formatters/index.js",
|
|
38
|
-
"module": "./dist/formatters/index.js",
|
|
39
|
-
"default": "./dist/formatters/index.js"
|
|
40
|
-
},
|
|
41
35
|
"./helpers/*": {
|
|
42
36
|
"types": "./dist/types/helpers/*.d.ts",
|
|
43
37
|
"import": "./dist/helpers/*.js",
|
|
44
38
|
"module": "./dist/helpers/*.js",
|
|
45
39
|
"default": "./dist/helpers/*.js"
|
|
46
40
|
},
|
|
47
|
-
"./formatters/*": {
|
|
48
|
-
"types": "./dist/types/formatters/*.d.ts",
|
|
49
|
-
"import": "./dist/formatters/*.js",
|
|
50
|
-
"module": "./dist/formatters/*.js",
|
|
51
|
-
"default": "./dist/formatters/*.js"
|
|
52
|
-
},
|
|
53
41
|
"./*": "./*"
|
|
54
42
|
},
|
|
55
43
|
"main": "./dist/index.js",
|
|
@@ -74,7 +62,6 @@
|
|
|
74
62
|
"test:unit:coverage": "vitest run --coverage"
|
|
75
63
|
},
|
|
76
64
|
"devDependencies": {
|
|
77
|
-
"eslint": "^9.31.0",
|
|
78
65
|
"eslint-plugin-format": "^1.0.1",
|
|
79
66
|
"glob": "^11.0.3",
|
|
80
67
|
"libphonenumber-js": "^1.12.10",
|
|
@@ -87,5 +74,5 @@
|
|
|
87
74
|
"eslint --fix"
|
|
88
75
|
]
|
|
89
76
|
},
|
|
90
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "9ea5ccdfb15f18c4e102ef5d2cfba29bd304d38e"
|
|
91
78
|
}
|
package/dist/formatters/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { camelCase as e } from "./camelCase.js";
|
|
2
|
-
import { capitalize as m } from "./capitalize.js";
|
|
3
|
-
import { formatCurrency as f } from "./formatCurrency.js";
|
|
4
|
-
import { formatDate as x } from "./formatDate.js";
|
|
5
|
-
import { formatNumber as l } from "./formatNumber.js";
|
|
6
|
-
import { pascalCase as C } from "./pascalCase.js";
|
|
7
|
-
export {
|
|
8
|
-
e as camelCase,
|
|
9
|
-
m as capitalize,
|
|
10
|
-
f as formatCurrency,
|
|
11
|
-
x as formatDate,
|
|
12
|
-
l as formatNumber,
|
|
13
|
-
C as pascalCase
|
|
14
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|