infinity-forge 0.35.8 → 0.36.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.
@@ -13,23 +13,22 @@ var __assign = (this && this.__assign) || function () {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.InputMask = void 0;
15
15
  var jsx_runtime_1 = require("react/jsx-runtime");
16
- var react_1 = require("react");
17
16
  var formik_1 = require("formik");
18
- var mask_1 = require("@react-input/mask");
17
+ // import { useMask } from '@react-input/mask'
19
18
  var input_control_1 = require("../input-control/index.js");
20
19
  function InputMask(props) {
21
20
  var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], helpers = _a[2];
22
- var inputRef = (0, mask_1.useMask)({
23
- mask: props.mask,
24
- replacement: { _: /\d/ },
25
- });
26
- (0, react_1.useEffect)(function () {
27
- if (field.value === undefined) {
28
- helpers.setValue('');
29
- inputRef.current.value = '';
30
- }
31
- }, [field.value]);
32
- return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { children: (0, jsx_runtime_1.jsx)("input", __assign({ id: props.name }, field, { placeholder: props.placeholder, ref: inputRef })) })));
21
+ // const inputRef = useMask({
22
+ // mask: props.mask,
23
+ // replacement: { _: /\d/ },
24
+ // })
25
+ // useEffect(() => {
26
+ // if (field.value === undefined) {
27
+ // helpers.setValue('')
28
+ // inputRef.current.value = ''
29
+ // }
30
+ // }, [field.value])
31
+ return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props)));
33
32
  }
34
33
  exports.InputMask = InputMask;
35
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-mask/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,+BAAiC;AAEjC,iCAAiC;AACjC,0CAA2C;AAE3C,kDAA+C;AAI/C,SAAgB,SAAS,CAAC,KAA0D;IAC5E,IAA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pB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,EAER,CAChB,CAAA;AACH,CAAC;AApBD,8BAoBC"}
package/package.json CHANGED
@@ -1,87 +1,86 @@
1
- {
2
- "name": "infinity-forge",
3
- "version": "0.35.8",
4
- "description": "codie Library",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/CodieDigital/codiedigital-library"
11
- },
12
- "scripts": {
13
- "dev": "next -p 3050",
14
- "start": "next start -p 3015",
15
- "build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
16
- "nextBuild": "next build",
17
- "build:esm": "tsc",
18
- "build:cjs": "tsc --module commonjs --outDir dist && tsc-alias -p tsconfig.json && for /r src %i in (.otf, *.ttf) do copy \"%i\" dist\\ && for /r src %i in (.css) do copy \"%i\" dist\\ "
19
- },
20
- "peerDependencies": {
21
- "react": ">=16"
22
- },
23
- "files": [
24
- "dist",
25
- "LICENSE",
26
- "README.md"
27
- ],
28
- "keywords": [
29
- "react",
30
- "typescript",
31
- "awesome-project"
32
- ],
33
- "author": "Codie Digital",
34
- "license": "MIT",
35
- "devDependencies": {
36
- "@types/node": "^18.11.7",
37
- "@types/react": "^18.0.12",
38
- "@types/react-dom": "^18.2.18",
39
- "prettier": "^2.6.2",
40
- "react": "^18.1.0",
41
- "react-dom": "^18.2.0",
42
- "tslib": "^2.4.1",
43
- "typescript": "^5.4.5"
44
- },
45
- "dependencies": {
46
- "@ckeditor/ckeditor5-react": "^6.3.0",
47
- "@internationalized/date": "^3.5.3",
48
- "@nextui-org/react": "^2.3.6",
49
- "@react-aria/i18n": "^3.11.0",
50
- "@react-input/mask": "^1.0.21",
51
- "@types/react-date-range": "^1.4.9",
52
- "@types/react-datepicker": "^6.2.0",
53
- "@types/styled-components": "^5.1.34",
54
- "aos": "^2.3.4",
55
- "axios": "^1.4.0",
56
- "chroma-js": "^2.4.2",
57
- "ckeditor5-custom-build": "^0.0.6",
58
- "concurrently": "^8.2.2",
59
- "date-fns": "^3.6.0",
60
- "formik": "^2.4.5",
61
- "framer-motion": "^11.1.7",
62
- "inversify": "^6.0.2",
63
- "js-cookie": "^3.0.5",
64
- "moment": "^2.30.1",
65
- "next": "^13.1.6",
66
- "react-countup": "^6.5.0",
67
- "react-currency-input-field": "^3.8.0",
68
- "react-date-range": "^2.0.1",
69
- "react-datepicker": "^6.9.0",
70
- "react-error-boundary": "^3.1.4",
71
- "react-ga": "^3.3.1",
72
- "react-glider": "^4.0.2",
73
- "react-select": "^5.8.0",
74
- "react-semantic-ui-datepickers": "^2.17.2",
75
- "react-slick": "^0.30.2",
76
- "reflect-metadata": "^0.2.1",
77
- "semantic-ui-css": "^2.5.0",
78
- "semantic-ui-react": "^2.1.5",
79
- "sharp": "^0.33.2",
80
- "slick-carousel": "^1.8.1",
81
- "styled-components": "^6.1.8",
82
- "swr": "^2.2.5",
83
- "tsc-alias": "^1.8.8",
84
- "yup": "^1.3.3",
85
- "zustand": "^4.3.8"
86
- }
87
- }
1
+ {
2
+ "name": "infinity-forge",
3
+ "version": "0.36.0",
4
+ "description": "codie Library",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/CodieDigital/codiedigital-library"
11
+ },
12
+ "scripts": {
13
+ "dev": "next -p 3050",
14
+ "start": "next start -p 3015",
15
+ "build": "concurrently --kill-others \"tsc -w\" \"tsc-alias -w --resolve-full-paths\"",
16
+ "nextBuild": "next build",
17
+ "build:esm": "tsc",
18
+ "build:cjs": "tsc --module commonjs --outDir dist && tsc-alias -p tsconfig.json && for /r src %i in (.otf, *.ttf) do copy \"%i\" dist\\ && for /r src %i in (.css) do copy \"%i\" dist\\ "
19
+ },
20
+ "peerDependencies": {
21
+ "react": ">=16"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "LICENSE",
26
+ "README.md"
27
+ ],
28
+ "keywords": [
29
+ "react",
30
+ "typescript",
31
+ "awesome-project"
32
+ ],
33
+ "author": "Codie Digital",
34
+ "license": "MIT",
35
+ "devDependencies": {
36
+ "@types/node": "^18.11.7",
37
+ "@types/react": "^18.0.12",
38
+ "@types/react-date-range": "^1.4.9",
39
+ "@types/react-datepicker": "^6.2.0",
40
+ "@types/react-dom": "^18.2.18",
41
+ "@types/styled-components": "^5.1.34",
42
+ "prettier": "^2.6.2",
43
+ "tslib": "^2.4.1"
44
+ },
45
+ "dependencies": {
46
+ "@ckeditor/ckeditor5-react": "^6.3.0",
47
+ "@internationalized/date": "^3.5.3",
48
+ "@nextui-org/react": "^2.3.6",
49
+ "@react-aria/i18n": "^3.11.0",
50
+ "aos": "^2.3.4",
51
+ "axios": "^1.4.0",
52
+ "chroma-js": "^2.4.2",
53
+ "ckeditor5-custom-build": "^0.0.6",
54
+ "concurrently": "^8.2.2",
55
+ "date-fns": "^3.6.0",
56
+ "formik": "^2.4.5",
57
+ "framer-motion": "^11.1.7",
58
+ "inversify": "^6.0.2",
59
+ "js-cookie": "^3.0.5",
60
+ "moment": "^2.30.1",
61
+ "next": "^13.1.6",
62
+ "react": "^18.3.0",
63
+ "react-countup": "^6.5.0",
64
+ "react-currency-input-field": "^3.8.0",
65
+ "react-date-range": "^2.0.1",
66
+ "react-datepicker": "^6.9.0",
67
+ "react-dom": "^18.3.1",
68
+ "react-error-boundary": "^3.1.4",
69
+ "react-ga": "^3.3.1",
70
+ "react-glider": "^4.0.2",
71
+ "react-select": "^5.8.0",
72
+ "react-semantic-ui-datepickers": "^2.17.2",
73
+ "react-slick": "^0.30.2",
74
+ "reflect-metadata": "^0.2.1",
75
+ "semantic-ui-css": "^2.5.0",
76
+ "semantic-ui-react": "^2.1.5",
77
+ "sharp": "^0.33.2",
78
+ "slick-carousel": "^1.8.1",
79
+ "styled-components": "^6.1.8",
80
+ "swr": "^2.2.5",
81
+ "tsc-alias": "^1.8.8",
82
+ "typescript": "^5.4.5",
83
+ "yup": "^1.3.3",
84
+ "zustand": "^4.3.8"
85
+ }
86
+ }