@gustavo-valsechi/client 1.3.29 → 1.3.30
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/index.js +14 -3070
- package/dist/components/index.mjs +12 -3082
- package/dist/components/styles.js +3 -4
- package/dist/components/styles.mjs +3 -4
- package/dist/components/types/avatar/index.js +4 -62
- package/dist/components/types/avatar/index.mjs +3 -61
- package/dist/components/types/avatar/styles.js +2 -3
- package/dist/components/types/avatar/styles.mjs +2 -3
- package/dist/components/types/badge/index.js +5 -304
- package/dist/components/types/badge/index.mjs +5 -308
- package/dist/components/types/badge/styles.js +2 -3
- package/dist/components/types/badge/styles.mjs +2 -3
- package/dist/components/types/block/index.js +9 -3046
- package/dist/components/types/block/index.mjs +9 -3066
- package/dist/components/types/block/styles.js +3 -4
- package/dist/components/types/block/styles.mjs +3 -4
- package/dist/components/types/chart/index.js +13 -284
- package/dist/components/types/chart/index.mjs +13 -288
- package/dist/components/types/chart/styles.js +2 -3
- package/dist/components/types/chart/styles.mjs +2 -2
- package/dist/components/types/credit-card/assets/index.js +2 -3
- package/dist/components/types/credit-card/assets/index.mjs +2 -2
- package/dist/components/types/credit-card/card/index.js +9 -681
- package/dist/components/types/credit-card/card/index.mjs +7 -701
- package/dist/components/types/credit-card/card/styles.js +2 -3
- package/dist/components/types/credit-card/card/styles.mjs +2 -3
- package/dist/components/types/credit-card/functions/index.js +4 -44
- package/dist/components/types/credit-card/functions/index.mjs +3 -41
- package/dist/components/types/credit-card/functions/styles.js +2 -3
- package/dist/components/types/credit-card/functions/styles.mjs +2 -3
- package/dist/components/types/credit-card/index.js +7 -803
- package/dist/components/types/credit-card/index.mjs +7 -823
- package/dist/components/types/credit-card/styles.js +2 -3
- package/dist/components/types/credit-card/styles.mjs +2 -3
- package/dist/components/types/credit-card/tools/index.js +7 -527
- package/dist/components/types/credit-card/tools/index.mjs +8 -550
- package/dist/components/types/form/index.js +24 -659
- package/dist/components/types/form/index.mjs +20 -655
- package/dist/components/types/form/styles.js +2 -3
- package/dist/components/types/form/styles.mjs +2 -3
- package/dist/components/types/form/types/button/index.js +7 -149
- package/dist/components/types/form/types/button/index.mjs +6 -146
- package/dist/components/types/form/types/button/loading/index.js +3 -104
- package/dist/components/types/form/types/button/loading/index.mjs +2 -91
- package/dist/components/types/form/types/button/loading/styles.js +2 -3
- package/dist/components/types/form/types/button/loading/styles.mjs +2 -3
- package/dist/components/types/form/types/button/styles.js +2 -3
- package/dist/components/types/form/types/button/styles.mjs +2 -3
- package/dist/components/types/form/types/datetime/index.js +7 -63
- package/dist/components/types/form/types/datetime/index.mjs +6 -60
- package/dist/components/types/form/types/datetime/styles.js +2 -3
- package/dist/components/types/form/types/datetime/styles.mjs +2 -3
- package/dist/components/types/form/types/file/index.js +9 -62
- package/dist/components/types/form/types/file/index.mjs +7 -50
- package/dist/components/types/form/types/file/styles.js +2 -3
- package/dist/components/types/form/types/file/styles.mjs +2 -3
- package/dist/components/types/form/types/index.js +16 -625
- package/dist/components/types/form/types/index.mjs +8 -601
- package/dist/components/types/form/types/input/index.js +10 -72
- package/dist/components/types/form/types/input/index.mjs +7 -69
- package/dist/components/types/form/types/input/styles.js +2 -3
- package/dist/components/types/form/types/input/styles.mjs +2 -3
- package/dist/components/types/form/types/label/index.js +3 -23
- package/dist/components/types/form/types/label/index.mjs +2 -10
- package/dist/components/types/form/types/label/styles.js +2 -3
- package/dist/components/types/form/types/label/styles.mjs +2 -3
- package/dist/components/types/form/types/select/index.js +11 -79
- package/dist/components/types/form/types/select/index.mjs +8 -76
- package/dist/components/types/form/types/select/styles.js +2 -3
- package/dist/components/types/form/types/select/styles.mjs +2 -3
- package/dist/components/types/form/types/textarea/index.js +7 -62
- package/dist/components/types/form/types/textarea/index.mjs +6 -59
- package/dist/components/types/form/types/textarea/styles.js +2 -3
- package/dist/components/types/form/types/textarea/styles.mjs +2 -3
- package/dist/components/types/index.js +24 -3072
- package/dist/components/types/index.mjs +12 -3093
- package/dist/components/types/loading/app/index.js +4 -132
- package/dist/components/types/loading/app/index.mjs +5 -121
- package/dist/components/types/loading/app/styles.js +2 -3
- package/dist/components/types/loading/app/styles.mjs +2 -3
- package/dist/components/types/loading/bar/index.js +3 -37
- package/dist/components/types/loading/bar/index.mjs +2 -24
- package/dist/components/types/loading/bar/styles.js +2 -3
- package/dist/components/types/loading/bar/styles.mjs +2 -3
- package/dist/components/types/loading/index.js +6 -173
- package/dist/components/types/loading/index.mjs +3 -154
- package/dist/components/types/logo/index.js +3 -35
- package/dist/components/types/logo/index.mjs +2 -22
- package/dist/components/types/logo/styles.js +2 -3
- package/dist/components/types/logo/styles.mjs +2 -3
- package/dist/components/types/lottie/animations/index.js +13 -8
- package/dist/components/types/lottie/animations/index.mjs +3 -5
- package/dist/components/types/lottie/index.js +7 -39
- package/dist/components/types/lottie/index.mjs +6 -36
- package/dist/components/types/lottie/styles.js +2 -3
- package/dist/components/types/lottie/styles.mjs +2 -3
- package/dist/components/types/modal/index.js +18 -2283
- package/dist/components/types/modal/index.mjs +18 -2309
- package/dist/components/types/modal/styles.js +2 -3
- package/dist/components/types/modal/styles.mjs +2 -3
- package/dist/components/types/table/index.js +45 -2955
- package/dist/components/types/table/index.mjs +40 -2983
- package/dist/components/types/table/modal/actions.js +4 -82
- package/dist/components/types/table/modal/actions.mjs +3 -78
- package/dist/components/types/table/modal/index.js +22 -3006
- package/dist/components/types/table/modal/index.mjs +19 -3033
- package/dist/components/types/table/modal/styles.js +2 -3
- package/dist/components/types/table/modal/styles.mjs +2 -3
- package/dist/components/types/table/paginate/index.js +4 -43
- package/dist/components/types/table/paginate/index.mjs +3 -40
- package/dist/components/types/table/paginate/styles.js +2 -3
- package/dist/components/types/table/paginate/styles.mjs +2 -3
- package/dist/components/types/table/styles.js +2 -3
- package/dist/components/types/table/styles.mjs +2 -3
- package/dist/contexts/icon/assets/brands/index.js +3 -4
- package/dist/contexts/icon/assets/brands/index.mjs +3 -10
- package/dist/contexts/icon/assets/index.js +17 -34
- package/dist/contexts/icon/assets/index.mjs +7 -38
- package/dist/contexts/icon/assets/regular/index.js +3 -4
- package/dist/contexts/icon/assets/regular/index.mjs +3 -10
- package/dist/contexts/icon/assets/solid/index.js +3 -4
- package/dist/contexts/icon/assets/solid/index.mjs +3 -10
- package/dist/contexts/icon/index.js +15 -217
- package/dist/contexts/icon/index.mjs +15 -223
- package/dist/contexts/icon/styles.js +2 -3
- package/dist/contexts/icon/styles.mjs +2 -2
- package/dist/contexts/index.js +10 -504
- package/dist/contexts/index.mjs +5 -486
- package/dist/contexts/modal/index.js +8 -16
- package/dist/contexts/modal/index.mjs +7 -15
- package/dist/contexts/modal/styles.js +2 -3
- package/dist/contexts/modal/styles.mjs +2 -2
- package/dist/contexts/theme/content.js +3 -4
- package/dist/contexts/theme/content.mjs +3 -3
- package/dist/contexts/theme/index.js +11 -178
- package/dist/contexts/theme/index.mjs +7 -164
- package/dist/contexts/theme/styles.js +2 -3
- package/dist/contexts/theme/styles.mjs +2 -2
- package/dist/contexts/tooltip/index.js +7 -51
- package/dist/contexts/tooltip/index.mjs +6 -50
- package/dist/contexts/tooltip/styles.js +2 -3
- package/dist/contexts/tooltip/styles.mjs +2 -2
- package/dist/index.js +9 -3325
- package/dist/index.mjs +5 -3312
- package/dist/interfaces/components/avatar/index.js +1 -2
- package/dist/interfaces/components/avatar/index.mjs +1 -0
- package/dist/interfaces/components/badge/index.js +1 -2
- package/dist/interfaces/components/badge/index.mjs +1 -0
- package/dist/interfaces/components/block/index.js +1 -2
- package/dist/interfaces/components/block/index.mjs +1 -0
- package/dist/interfaces/components/chart/index.js +1 -2
- package/dist/interfaces/components/chart/index.mjs +1 -0
- package/dist/interfaces/components/credit-card/index.js +1 -2
- package/dist/interfaces/components/credit-card/index.mjs +1 -0
- package/dist/interfaces/components/form/button/index.js +1 -2
- package/dist/interfaces/components/form/button/index.mjs +1 -0
- package/dist/interfaces/components/form/datetime/index.js +1 -2
- package/dist/interfaces/components/form/datetime/index.mjs +1 -0
- package/dist/interfaces/components/form/file/index.js +1 -2
- package/dist/interfaces/components/form/file/index.mjs +1 -0
- package/dist/interfaces/components/form/index.js +19 -2
- package/dist/interfaces/components/form/index.mjs +8 -0
- package/dist/interfaces/components/form/input/index.js +1 -2
- package/dist/interfaces/components/form/input/index.mjs +1 -0
- package/dist/interfaces/components/form/label/index.js +1 -2
- package/dist/interfaces/components/form/label/index.mjs +1 -0
- package/dist/interfaces/components/form/select/index.js +1 -2
- package/dist/interfaces/components/form/select/index.mjs +1 -0
- package/dist/interfaces/components/form/textarea/index.js +1 -2
- package/dist/interfaces/components/form/textarea/index.mjs +1 -0
- package/dist/interfaces/components/index.js +27 -2
- package/dist/interfaces/components/index.mjs +12 -0
- package/dist/interfaces/components/loading/app/index.js +1 -2
- package/dist/interfaces/components/loading/app/index.mjs +1 -0
- package/dist/interfaces/components/loading/bar/index.js +1 -2
- package/dist/interfaces/components/loading/bar/index.mjs +1 -0
- package/dist/interfaces/components/loading/index.js +9 -2
- package/dist/interfaces/components/loading/index.mjs +3 -0
- package/dist/interfaces/components/logo/index.js +1 -2
- package/dist/interfaces/components/logo/index.mjs +1 -0
- package/dist/interfaces/components/lottie/index.js +1 -2
- package/dist/interfaces/components/lottie/index.mjs +1 -0
- package/dist/interfaces/components/modal/index.js +1 -2
- package/dist/interfaces/components/modal/index.mjs +1 -0
- package/dist/interfaces/components/table/index.js +7 -2
- package/dist/interfaces/components/table/index.mjs +2 -0
- package/dist/interfaces/components/table/paginate/index.js +1 -2
- package/dist/interfaces/components/table/paginate/index.mjs +1 -0
- package/dist/interfaces/contexts/icon/index.js +1 -2
- package/dist/interfaces/contexts/icon/index.mjs +1 -0
- package/dist/interfaces/contexts/index.js +13 -2
- package/dist/interfaces/contexts/index.mjs +5 -0
- package/dist/interfaces/contexts/modal/index.js +1 -2
- package/dist/interfaces/contexts/modal/index.mjs +1 -0
- package/dist/interfaces/contexts/theme/index.js +1 -2
- package/dist/interfaces/contexts/theme/index.mjs +1 -0
- package/dist/interfaces/contexts/tooltip/index.js +1 -2
- package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
- package/dist/interfaces/index.js +9 -2
- package/dist/interfaces/index.mjs +3 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
"use client";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -27,72 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
mod
|
|
28
29
|
));
|
|
29
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// components/types/form/types/datetime/index.tsx
|
|
32
31
|
var datetime_exports = {};
|
|
33
32
|
__export(datetime_exports, {
|
|
34
33
|
InputDateTime: () => InputDateTime
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(datetime_exports);
|
|
37
|
-
|
|
38
|
-
// components/types/form/types/datetime/styles.tsx
|
|
39
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
40
|
-
var Container = import_styled_components.default.div`
|
|
41
|
-
width: 100%;
|
|
42
|
-
padding-top: .3rem;
|
|
43
|
-
|
|
44
|
-
.iz-input-content {
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
49
|
-
border-radius: 5px;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
|
|
52
|
-
input {
|
|
53
|
-
border: 0;
|
|
54
|
-
padding: .5rem 1rem;
|
|
55
|
-
width: 100%;
|
|
56
|
-
font-size: .8rem;
|
|
57
|
-
background-color: ${({ theme }) => theme.primary};
|
|
58
|
-
color: ${({ theme }) => theme.t6};
|
|
59
|
-
color-scheme: ${(props) => props.theme || "light"};
|
|
60
|
-
|
|
61
|
-
&:disabled {
|
|
62
|
-
background-color: ${({ theme }) => theme.t2};
|
|
63
|
-
color: ${({ theme }) => theme.t6};
|
|
64
|
-
opacity: .7;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:focus-visible {
|
|
68
|
-
outline: none;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.iz-input-error {
|
|
74
|
-
color: ${({ theme }) => theme.negative};
|
|
75
|
-
font-size: .7rem;
|
|
76
|
-
}
|
|
77
|
-
`;
|
|
78
|
-
|
|
79
|
-
// components/types/form/types/label/styles.tsx
|
|
80
|
-
var import_styled_components2 = __toESM(require("styled-components"));
|
|
81
|
-
var Container2 = import_styled_components2.default.label`
|
|
82
|
-
font-size: .8rem;
|
|
83
|
-
font-weight: 500;
|
|
84
|
-
color: ${({ theme }) => theme.t6};
|
|
85
|
-
`;
|
|
86
|
-
|
|
87
|
-
// components/types/form/types/label/index.tsx
|
|
88
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// components/types/form/types/datetime/index.tsx
|
|
37
|
+
var import_styles = require("./styles");
|
|
38
|
+
var import_label = require("../label");
|
|
94
39
|
var import_lodash = __toESM(require("lodash"));
|
|
95
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
96
40
|
function InputDateTime(props) {
|
|
97
41
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
98
42
|
const onChange = (event) => {
|
|
@@ -101,12 +45,12 @@ function InputDateTime(props) {
|
|
|
101
45
|
if (register.onChange) register.onChange(event);
|
|
102
46
|
if (props.onChange) props.onChange(event);
|
|
103
47
|
};
|
|
104
|
-
return /* @__PURE__ */ (0,
|
|
105
|
-
!!props.label && /* @__PURE__ */ (0,
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { className: props.className, error: props.error, children: [
|
|
49
|
+
!!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.InputLabel, { children: [
|
|
106
50
|
props.label,
|
|
107
51
|
props.required ? "*" : ""
|
|
108
52
|
] }),
|
|
109
|
-
/* @__PURE__ */ (0,
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
54
|
"input",
|
|
111
55
|
{
|
|
112
56
|
...import_lodash.default.omit(props, ["className", "onChange", "mask", "type", "required", "register"]),
|
|
@@ -119,7 +63,7 @@ function InputDateTime(props) {
|
|
|
119
63
|
onChange
|
|
120
64
|
}
|
|
121
65
|
) }),
|
|
122
|
-
!!props.error && /* @__PURE__ */ (0,
|
|
66
|
+
!!props.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-error", children: props.error })
|
|
123
67
|
] });
|
|
124
68
|
}
|
|
125
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,63 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
width: 100%;
|
|
7
|
-
padding-top: .3rem;
|
|
8
|
-
|
|
9
|
-
.iz-input-content {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
14
|
-
border-radius: 5px;
|
|
15
|
-
overflow: hidden;
|
|
16
|
-
|
|
17
|
-
input {
|
|
18
|
-
border: 0;
|
|
19
|
-
padding: .5rem 1rem;
|
|
20
|
-
width: 100%;
|
|
21
|
-
font-size: .8rem;
|
|
22
|
-
background-color: ${({ theme }) => theme.primary};
|
|
23
|
-
color: ${({ theme }) => theme.t6};
|
|
24
|
-
color-scheme: ${(props) => props.theme || "light"};
|
|
25
|
-
|
|
26
|
-
&:disabled {
|
|
27
|
-
background-color: ${({ theme }) => theme.t2};
|
|
28
|
-
color: ${({ theme }) => theme.t6};
|
|
29
|
-
opacity: .7;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:focus-visible {
|
|
33
|
-
outline: none;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.iz-input-error {
|
|
39
|
-
color: ${({ theme }) => theme.negative};
|
|
40
|
-
font-size: .7rem;
|
|
41
|
-
}
|
|
42
|
-
`;
|
|
43
|
-
|
|
44
|
-
// components/types/form/types/label/styles.tsx
|
|
45
|
-
import styled2 from "styled-components";
|
|
46
|
-
var Container2 = styled2.label`
|
|
47
|
-
font-size: .8rem;
|
|
48
|
-
font-weight: 500;
|
|
49
|
-
color: ${({ theme }) => theme.t6};
|
|
50
|
-
`;
|
|
51
|
-
|
|
52
|
-
// components/types/form/types/label/index.tsx
|
|
53
|
-
import { jsx } from "react/jsx-runtime";
|
|
54
|
-
function InputLabel(props) {
|
|
55
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// components/types/form/types/datetime/index.tsx
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Container } from "./styles";
|
|
5
|
+
import { InputLabel } from "../label";
|
|
59
6
|
import _ from "lodash";
|
|
60
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
61
7
|
function InputDateTime(props) {
|
|
62
8
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
63
9
|
const onChange = (event) => {
|
|
@@ -71,7 +17,7 @@ function InputDateTime(props) {
|
|
|
71
17
|
props.label,
|
|
72
18
|
props.required ? "*" : ""
|
|
73
19
|
] }),
|
|
74
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx(
|
|
75
21
|
"input",
|
|
76
22
|
{
|
|
77
23
|
..._.omit(props, ["className", "onChange", "mask", "type", "required", "register"]),
|
|
@@ -84,7 +30,7 @@ function InputDateTime(props) {
|
|
|
84
30
|
onChange
|
|
85
31
|
}
|
|
86
32
|
) }),
|
|
87
|
-
!!props.error && /* @__PURE__ */
|
|
33
|
+
!!props.error && /* @__PURE__ */ jsx("div", { className: "iz-input-error", children: props.error })
|
|
88
34
|
] });
|
|
89
35
|
}
|
|
90
36
|
export {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
"use client";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -27,15 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
mod
|
|
28
29
|
));
|
|
29
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// components/types/form/types/datetime/styles.tsx
|
|
32
31
|
var styles_exports = {};
|
|
33
32
|
__export(styles_exports, {
|
|
34
33
|
Container: () => Container
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(styles_exports);
|
|
37
36
|
var import_styled_components = __toESM(require("styled-components"));
|
|
38
|
-
|
|
37
|
+
const Container = import_styled_components.default.div`
|
|
39
38
|
width: 100%;
|
|
40
39
|
padding-top: .3rem;
|
|
41
40
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
8
|
var __export = (target, all) => {
|
|
10
9
|
for (var name in all)
|
|
@@ -18,68 +17,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
17
|
}
|
|
19
18
|
return to;
|
|
20
19
|
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
20
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// components/types/form/types/file/index.tsx
|
|
32
21
|
var file_exports = {};
|
|
33
22
|
__export(file_exports, {
|
|
34
23
|
InputFile: () => InputFile
|
|
35
24
|
});
|
|
36
25
|
module.exports = __toCommonJS(file_exports);
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
|
|
39
|
-
// components/types/form/types/file/styles.tsx
|
|
40
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
41
|
-
var Container = import_styled_components.default.div`
|
|
42
|
-
width: 100%;
|
|
43
|
-
padding-top: .3rem;
|
|
44
|
-
|
|
45
|
-
.iz-image-content {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
50
|
-
border-radius: 5px;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
padding: .5rem 1rem;
|
|
53
|
-
width: 100%;
|
|
54
|
-
font-size: .8rem;
|
|
55
|
-
background: ${(props) => props.disabled ? "${({ theme }) => theme.t2}" : "${({ theme }) => theme.primary}"};
|
|
56
|
-
opacity: ${(props) => props.disabled ? ".7" : "1"};
|
|
57
|
-
color: ${({ theme }) => theme.t6};
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.iz-input-error {
|
|
62
|
-
color: ${({ theme }) => theme.negative};
|
|
63
|
-
font-size: .7rem;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
// components/types/form/types/label/styles.tsx
|
|
68
|
-
var import_styled_components2 = __toESM(require("styled-components"));
|
|
69
|
-
var Container2 = import_styled_components2.default.label`
|
|
70
|
-
font-size: .8rem;
|
|
71
|
-
font-weight: 500;
|
|
72
|
-
color: ${({ theme }) => theme.t6};
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
// components/types/form/types/label/index.tsx
|
|
76
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
// components/types/form/types/file/index.tsx
|
|
82
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
27
|
+
var import_react = require("react");
|
|
28
|
+
var import_styles = require("./styles");
|
|
29
|
+
var import_label = require("../label");
|
|
83
30
|
function InputFile(props) {
|
|
84
31
|
var _a;
|
|
85
32
|
const inputRef = (0, import_react.useRef)({});
|
|
@@ -88,8 +35,8 @@ function InputFile(props) {
|
|
|
88
35
|
if (props.onPreview) props.onPreview(URL.createObjectURL(data));
|
|
89
36
|
if (props.onChange) props.onChange(data);
|
|
90
37
|
};
|
|
91
|
-
return /* @__PURE__ */ (0,
|
|
92
|
-
/* @__PURE__ */ (0,
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { className: props.className, error: props.error, disabled: props.disabled, children: [
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
93
40
|
"input",
|
|
94
41
|
{
|
|
95
42
|
hidden: true,
|
|
@@ -110,12 +57,12 @@ function InputFile(props) {
|
|
|
110
57
|
}
|
|
111
58
|
}
|
|
112
59
|
),
|
|
113
|
-
!!props.label && /* @__PURE__ */ (0,
|
|
60
|
+
!!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.InputLabel, { children: [
|
|
114
61
|
props.label,
|
|
115
62
|
props.required ? "*" : ""
|
|
116
63
|
] }),
|
|
117
|
-
/* @__PURE__ */ (0,
|
|
118
|
-
!!props.error && /* @__PURE__ */ (0,
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-image-content", onClick: () => inputRef.current.click(), children: ((_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.value) || "selecione uma imagem" }),
|
|
65
|
+
!!props.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-error", children: props.error })
|
|
119
66
|
] });
|
|
120
67
|
}
|
|
121
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,52 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useRef } from "react";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import styled from "styled-components";
|
|
8
|
-
var Container = styled.div`
|
|
9
|
-
width: 100%;
|
|
10
|
-
padding-top: .3rem;
|
|
11
|
-
|
|
12
|
-
.iz-image-content {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
17
|
-
border-radius: 5px;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
padding: .5rem 1rem;
|
|
20
|
-
width: 100%;
|
|
21
|
-
font-size: .8rem;
|
|
22
|
-
background: ${(props) => props.disabled ? "${({ theme }) => theme.t2}" : "${({ theme }) => theme.primary}"};
|
|
23
|
-
opacity: ${(props) => props.disabled ? ".7" : "1"};
|
|
24
|
-
color: ${({ theme }) => theme.t6};
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.iz-input-error {
|
|
29
|
-
color: ${({ theme }) => theme.negative};
|
|
30
|
-
font-size: .7rem;
|
|
31
|
-
}
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
// components/types/form/types/label/styles.tsx
|
|
35
|
-
import styled2 from "styled-components";
|
|
36
|
-
var Container2 = styled2.label`
|
|
37
|
-
font-size: .8rem;
|
|
38
|
-
font-weight: 500;
|
|
39
|
-
color: ${({ theme }) => theme.t6};
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
// components/types/form/types/label/index.tsx
|
|
43
|
-
import { jsx } from "react/jsx-runtime";
|
|
44
|
-
function InputLabel(props) {
|
|
45
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// components/types/form/types/file/index.tsx
|
|
49
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Container } from "./styles";
|
|
6
|
+
import { InputLabel } from "../label";
|
|
50
7
|
function InputFile(props) {
|
|
51
8
|
var _a;
|
|
52
9
|
const inputRef = useRef({});
|
|
@@ -56,7 +13,7 @@ function InputFile(props) {
|
|
|
56
13
|
if (props.onChange) props.onChange(data);
|
|
57
14
|
};
|
|
58
15
|
return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, disabled: props.disabled, children: [
|
|
59
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ jsx(
|
|
60
17
|
"input",
|
|
61
18
|
{
|
|
62
19
|
hidden: true,
|
|
@@ -81,8 +38,8 @@ function InputFile(props) {
|
|
|
81
38
|
props.label,
|
|
82
39
|
props.required ? "*" : ""
|
|
83
40
|
] }),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
!!props.error && /* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "iz-image-content", onClick: () => inputRef.current.click(), children: ((_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.value) || "selecione uma imagem" }),
|
|
42
|
+
!!props.error && /* @__PURE__ */ jsx("div", { className: "iz-input-error", children: props.error })
|
|
86
43
|
] });
|
|
87
44
|
}
|
|
88
45
|
export {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
"use client";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -27,15 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
mod
|
|
28
29
|
));
|
|
29
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// components/types/form/types/file/styles.tsx
|
|
32
31
|
var styles_exports = {};
|
|
33
32
|
__export(styles_exports, {
|
|
34
33
|
Container: () => Container
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(styles_exports);
|
|
37
36
|
var import_styled_components = __toESM(require("styled-components"));
|
|
38
|
-
|
|
37
|
+
const Container = import_styled_components.default.div`
|
|
39
38
|
width: 100%;
|
|
40
39
|
padding-top: .3rem;
|
|
41
40
|
|