@gustavo-valsechi/client 1.4.25 → 1.4.27
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/components/types/form/index.js +7 -6
- package/dist/components/types/form/index.mjs +7 -6
- package/package.json +5 -5
- /package/dist/{src/components → components}/index.d.ts +0 -0
- /package/dist/{src/components → components}/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/avatar/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/avatar/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/badge/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/badge/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/block/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/block/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/chart/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/chart/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/assets/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/card/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/card/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/functions/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/functions/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/credit-card/tools/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/button/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/button/loading/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/button/loading/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/button/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/custom/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/custom/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/datetime/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/datetime/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/error/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/error/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/file/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/file/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/label/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/label/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/select/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/select/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/text/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/text/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/textarea/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/form/types/textarea/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/loading/app/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/loading/app/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/loading/bar/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/loading/bar/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/loading/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/logo/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/logo/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/lottie/animations/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/lottie/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/lottie/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/modal/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/modal/actions.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/modal/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/modal/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/paginate/index.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/paginate/styles.d.ts +0 -0
- /package/dist/{src/components → components}/types/table/styles.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/icon/assets/brands/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/icon/assets/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/icon/assets/regular/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/icon/assets/solid/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/icon/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/icon/styles.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/modal/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/modal/styles.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/theme/content.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/theme/global.styles.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/theme/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/theme/registry.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/theme/styles.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/tooltip/index.d.ts +0 -0
- /package/dist/{src/contexts → contexts}/tooltip/styles.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/avatar/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/badge/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/block/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/chart/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/credit-card/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/button/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/custom/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/datetime/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/error/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/file/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/label/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/select/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/text/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/form/textarea/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/loading/app/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/loading/bar/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/loading/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/logo/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/lottie/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/modal/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/table/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/components/table/paginate/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/contexts/icon/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/contexts/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/contexts/modal/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/contexts/theme/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/contexts/tooltip/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/index.d.ts +0 -0
- /package/dist/{src/interfaces → interfaces}/request/index.d.ts +0 -0
|
@@ -86,19 +86,20 @@ function Form(props) {
|
|
|
86
86
|
}, [props.defaultValues]);
|
|
87
87
|
const component = (data) => {
|
|
88
88
|
var _a;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const
|
|
89
|
+
let inputType = "";
|
|
90
|
+
inputType = import_lodash.default.upperFirst(import_lodash.default.camelCase(data.type));
|
|
91
|
+
inputType = import_lodash.default.includes(inputType, "Input") ? inputType : `Input${inputType}`;
|
|
92
|
+
const component2 = Types[inputType];
|
|
93
|
+
const ComponentType = component2 || Types.InputText;
|
|
93
94
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
94
|
-
|
|
95
|
+
ComponentType,
|
|
95
96
|
{
|
|
96
97
|
...import_lodash.default.omit(data, ["validation"]),
|
|
97
98
|
id: data.name,
|
|
98
99
|
type: component2 ? void 0 : data.type,
|
|
99
100
|
error: (_a = errors[data.name]) == null ? void 0 : _a.message,
|
|
100
101
|
register,
|
|
101
|
-
setValue:
|
|
102
|
+
setValue: inputType === "InputCustom" ? setValue : void 0
|
|
102
103
|
}
|
|
103
104
|
);
|
|
104
105
|
};
|
|
@@ -52,19 +52,20 @@ function Form(props) {
|
|
|
52
52
|
}, [props.defaultValues]);
|
|
53
53
|
const component = (data) => {
|
|
54
54
|
var _a;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const
|
|
55
|
+
let inputType = "";
|
|
56
|
+
inputType = _.upperFirst(_.camelCase(data.type));
|
|
57
|
+
inputType = _.includes(inputType, "Input") ? inputType : `Input${inputType}`;
|
|
58
|
+
const component2 = Types[inputType];
|
|
59
|
+
const ComponentType = component2 || Types.InputText;
|
|
59
60
|
return /* @__PURE__ */ jsx(
|
|
60
|
-
|
|
61
|
+
ComponentType,
|
|
61
62
|
{
|
|
62
63
|
..._.omit(data, ["validation"]),
|
|
63
64
|
id: data.name,
|
|
64
65
|
type: component2 ? void 0 : data.type,
|
|
65
66
|
error: (_a = errors[data.name]) == null ? void 0 : _a.message,
|
|
66
67
|
register,
|
|
67
|
-
setValue:
|
|
68
|
+
setValue: inputType === "InputCustom" ? setValue : void 0
|
|
68
69
|
}
|
|
69
70
|
);
|
|
70
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustavo-valsechi/client",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.27",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"clean": "rimraf dist && rimraf node_modules/.cache",
|
|
13
|
-
"build:types": "tsc
|
|
13
|
+
"build:types": "tsc -p tsconfig.json",
|
|
14
14
|
"build:js": "tsup && tsc-alias",
|
|
15
15
|
"build:remodel": "node scripts/remodel.js",
|
|
16
16
|
"build:assets": "node scripts/assets.js",
|
|
17
|
-
"build": "npm run clean && npm run build:js && npm run build:assets && npm run build:remodel",
|
|
18
|
-
"commit": "npm run build && npm
|
|
17
|
+
"build": "npm run clean && npm run build:js && npm run build:types && npm run build:assets && npm run build:remodel",
|
|
18
|
+
"commit": "npm run build && npm version patch --no-git-tag-version && npm publish --access public"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "18.3.1",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@emotion/is-prop-valid": "1.3.0",
|
|
27
|
-
"@gustavo-valsechi/server": "1.0.13",
|
|
28
27
|
"@gustavo-valsechi/utils": "1.0.0",
|
|
28
|
+
"@gustavo-valsechi/server": "1.0.13",
|
|
29
29
|
"@hookform/resolvers": "5.2.2",
|
|
30
30
|
"apexcharts": "3.51.0",
|
|
31
31
|
"lodash": "4.17.21",
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|