use-mask-input 3.3.3 โ 3.3.5
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/CHANGELOG.md +14 -0
- package/README.md +7 -5
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +575 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +19 -20
- package/src/inputmask.types.ts +607 -0
- package/src/types.ts +3 -2
- package/src/useHookFormMask.ts +1 -1
- package/scripts.sh +0 -73
package/scripts.sh
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
# All package scripts to not polute
|
|
4
|
-
# package.json file with long scripts
|
|
5
|
-
|
|
6
|
-
cmd=$1
|
|
7
|
-
args=${@:2}
|
|
8
|
-
|
|
9
|
-
function dev() {
|
|
10
|
-
echo "๐ Starting dev server...";
|
|
11
|
-
npx rollup -c --watch;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
function build() {
|
|
15
|
-
clean;
|
|
16
|
-
echo "๐ฆ Building package...";
|
|
17
|
-
npx rollup -c;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
function prepare() {
|
|
21
|
-
echo "๐ Installing git hooks...";
|
|
22
|
-
npx simple-git-hooks >> /dev/null;
|
|
23
|
-
build;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
function test() {
|
|
27
|
-
echo "๐งช Running tests...";
|
|
28
|
-
npx vitest --dir ./src --run --coverage;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
function lint() {
|
|
32
|
-
echo "๐งน Linting...";
|
|
33
|
-
npx eslint ./src --ext ts,tsx;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
function clean() {
|
|
37
|
-
echo "๐งน Cleaning up...";
|
|
38
|
-
rm -rf dist;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
function postinstall() {
|
|
42
|
-
echo "๐ Running patches...";
|
|
43
|
-
npx patch-package;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
function hello() {
|
|
47
|
-
echo "๐ Hello!" $args;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
function example() {
|
|
51
|
-
echo "๐ Select your example project to run: ";
|
|
52
|
-
examples="$(ls ./examples)";
|
|
53
|
-
|
|
54
|
-
select example in $examples; do
|
|
55
|
-
if [ -n "$example" ]; then
|
|
56
|
-
build;
|
|
57
|
-
echo "๐ Starting $example...";
|
|
58
|
-
cd ./examples/$example;
|
|
59
|
-
# if example is cra, run npm start
|
|
60
|
-
# else run npm run dev
|
|
61
|
-
if [ "$example" = "cra" ]; then
|
|
62
|
-
npm start;
|
|
63
|
-
else
|
|
64
|
-
npm run dev;
|
|
65
|
-
fi
|
|
66
|
-
break;
|
|
67
|
-
else
|
|
68
|
-
echo "๐ Select your example project to run: ";
|
|
69
|
-
fi
|
|
70
|
-
done
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
eval $cmd $args
|