@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,79 +28,16 @@ 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/input/index.tsx
|
|
32
31
|
var input_exports = {};
|
|
33
32
|
__export(input_exports, {
|
|
34
33
|
InputText: () => InputText
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(input_exports);
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
|
|
39
|
-
// components/types/form/types/input/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-input-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-right: ${({ password }) => password ? ".6rem" : "0rem"};
|
|
53
|
-
background-color: ${({ theme }) => theme.primary};
|
|
54
|
-
|
|
55
|
-
input {
|
|
56
|
-
border: 0;
|
|
57
|
-
padding: .5rem 1rem;
|
|
58
|
-
width: 100%;
|
|
59
|
-
font-size: .8rem;
|
|
60
|
-
background-color: ${({ theme }) => theme.primary};
|
|
61
|
-
color: ${({ theme }) => theme.t6};
|
|
62
|
-
|
|
63
|
-
&:disabled {
|
|
64
|
-
background-color: ${({ theme }) => theme.t2};
|
|
65
|
-
color: ${({ theme }) => theme.t6};
|
|
66
|
-
opacity: .7;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:focus-visible {
|
|
70
|
-
outline: none;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
i {
|
|
75
|
-
color: ${({ theme }) => theme.t3};
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.iz-input-error {
|
|
81
|
-
color: ${({ theme }) => theme.negative};
|
|
82
|
-
font-size: .7rem;
|
|
83
|
-
}
|
|
84
|
-
`;
|
|
85
|
-
|
|
86
|
-
// components/types/form/types/label/styles.tsx
|
|
87
|
-
var import_styled_components2 = __toESM(require("styled-components"));
|
|
88
|
-
var Container2 = import_styled_components2.default.label`
|
|
89
|
-
font-size: .8rem;
|
|
90
|
-
font-weight: 500;
|
|
91
|
-
color: ${({ theme }) => theme.t6};
|
|
92
|
-
`;
|
|
93
|
-
|
|
94
|
-
// components/types/form/types/label/index.tsx
|
|
95
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
// components/types/form/types/input/index.tsx
|
|
37
|
+
var import_react = require("react");
|
|
38
|
+
var import_styles = require("./styles");
|
|
39
|
+
var import_label = require("../label");
|
|
101
40
|
var import_lodash = __toESM(require("lodash"));
|
|
102
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
103
41
|
function InputText(props) {
|
|
104
42
|
const [showPassword, setShowPassword] = (0, import_react.useState)(false);
|
|
105
43
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
@@ -109,13 +47,13 @@ function InputText(props) {
|
|
|
109
47
|
if (register.onChange) register.onChange(event);
|
|
110
48
|
if (props.onChange) props.onChange(value);
|
|
111
49
|
};
|
|
112
|
-
return /* @__PURE__ */ (0,
|
|
113
|
-
!!props.label && /* @__PURE__ */ (0,
|
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { className: props.className, error: props.error, password: props.type === "password", children: [
|
|
51
|
+
!!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.InputLabel, { children: [
|
|
114
52
|
props.label,
|
|
115
53
|
props.required ? "*" : ""
|
|
116
54
|
] }),
|
|
117
|
-
/* @__PURE__ */ (0,
|
|
118
|
-
/* @__PURE__ */ (0,
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-input-content", children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
57
|
"input",
|
|
120
58
|
{
|
|
121
59
|
...import_lodash.default.omit(props, ["className", "register", "mask"]),
|
|
@@ -128,7 +66,7 @@ function InputText(props) {
|
|
|
128
66
|
onChange
|
|
129
67
|
}
|
|
130
68
|
),
|
|
131
|
-
props.type === "password" && /* @__PURE__ */ (0,
|
|
69
|
+
props.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
132
70
|
"i",
|
|
133
71
|
{
|
|
134
72
|
"aria-hidden": true,
|
|
@@ -137,7 +75,7 @@ function InputText(props) {
|
|
|
137
75
|
}
|
|
138
76
|
)
|
|
139
77
|
] }),
|
|
140
|
-
!!props.error && /* @__PURE__ */ (0,
|
|
78
|
+
!!props.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-error", children: props.error })
|
|
141
79
|
] });
|
|
142
80
|
}
|
|
143
81
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,72 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useState } 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-input-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-right: ${({ password }) => password ? ".6rem" : "0rem"};
|
|
20
|
-
background-color: ${({ theme }) => theme.primary};
|
|
21
|
-
|
|
22
|
-
input {
|
|
23
|
-
border: 0;
|
|
24
|
-
padding: .5rem 1rem;
|
|
25
|
-
width: 100%;
|
|
26
|
-
font-size: .8rem;
|
|
27
|
-
background-color: ${({ theme }) => theme.primary};
|
|
28
|
-
color: ${({ theme }) => theme.t6};
|
|
29
|
-
|
|
30
|
-
&:disabled {
|
|
31
|
-
background-color: ${({ theme }) => theme.t2};
|
|
32
|
-
color: ${({ theme }) => theme.t6};
|
|
33
|
-
opacity: .7;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:focus-visible {
|
|
37
|
-
outline: none;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
i {
|
|
42
|
-
color: ${({ theme }) => theme.t3};
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.iz-input-error {
|
|
48
|
-
color: ${({ theme }) => theme.negative};
|
|
49
|
-
font-size: .7rem;
|
|
50
|
-
}
|
|
51
|
-
`;
|
|
52
|
-
|
|
53
|
-
// components/types/form/types/label/styles.tsx
|
|
54
|
-
import styled2 from "styled-components";
|
|
55
|
-
var Container2 = styled2.label`
|
|
56
|
-
font-size: .8rem;
|
|
57
|
-
font-weight: 500;
|
|
58
|
-
color: ${({ theme }) => theme.t6};
|
|
59
|
-
`;
|
|
60
|
-
|
|
61
|
-
// components/types/form/types/label/index.tsx
|
|
62
|
-
import { jsx } from "react/jsx-runtime";
|
|
63
|
-
function InputLabel(props) {
|
|
64
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// components/types/form/types/input/index.tsx
|
|
5
|
+
import { Container } from "./styles";
|
|
6
|
+
import { InputLabel } from "../label";
|
|
68
7
|
import _ from "lodash";
|
|
69
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
70
8
|
function InputText(props) {
|
|
71
9
|
const [showPassword, setShowPassword] = useState(false);
|
|
72
10
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
@@ -82,7 +20,7 @@ function InputText(props) {
|
|
|
82
20
|
props.required ? "*" : ""
|
|
83
21
|
] }),
|
|
84
22
|
/* @__PURE__ */ jsxs("div", { className: "iz-input-content", children: [
|
|
85
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
86
24
|
"input",
|
|
87
25
|
{
|
|
88
26
|
..._.omit(props, ["className", "register", "mask"]),
|
|
@@ -95,7 +33,7 @@ function InputText(props) {
|
|
|
95
33
|
onChange
|
|
96
34
|
}
|
|
97
35
|
),
|
|
98
|
-
props.type === "password" && /* @__PURE__ */
|
|
36
|
+
props.type === "password" && /* @__PURE__ */ jsx(
|
|
99
37
|
"i",
|
|
100
38
|
{
|
|
101
39
|
"aria-hidden": true,
|
|
@@ -104,7 +42,7 @@ function InputText(props) {
|
|
|
104
42
|
}
|
|
105
43
|
)
|
|
106
44
|
] }),
|
|
107
|
-
!!props.error && /* @__PURE__ */
|
|
45
|
+
!!props.error && /* @__PURE__ */ jsx("div", { className: "iz-input-error", children: props.error })
|
|
108
46
|
] });
|
|
109
47
|
}
|
|
110
48
|
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/input/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,35 +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/label/index.tsx
|
|
32
21
|
var label_exports = {};
|
|
33
22
|
__export(label_exports, {
|
|
34
23
|
InputLabel: () => InputLabel
|
|
35
24
|
});
|
|
36
25
|
module.exports = __toCommonJS(label_exports);
|
|
37
|
-
|
|
38
|
-
// components/types/form/types/label/styles.tsx
|
|
39
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
40
|
-
var Container = import_styled_components.default.label`
|
|
41
|
-
font-size: .8rem;
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
color: ${({ theme }) => theme.t6};
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
// components/types/form/types/label/index.tsx
|
|
47
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
var import_styles = require("./styles");
|
|
48
28
|
function InputLabel(props) {
|
|
49
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, { className: props.className, children: props.children });
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { className: props.className, children: props.children });
|
|
50
30
|
}
|
|
51
31
|
// Annotate the CommonJS export names for ESM import in node:
|
|
52
32
|
0 && (module.exports = {
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
// components/types/form/types/label/styles.tsx
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
var Container = styled.label`
|
|
6
|
-
font-size: .8rem;
|
|
7
|
-
font-weight: 500;
|
|
8
|
-
color: ${({ theme }) => theme.t6};
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
// components/types/form/types/label/index.tsx
|
|
2
|
+
"use client";
|
|
12
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Container } from "./styles";
|
|
13
5
|
function InputLabel(props) {
|
|
14
6
|
return /* @__PURE__ */ jsx(Container, { className: props.className, children: props.children });
|
|
15
7
|
}
|
|
@@ -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/label/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.label`
|
|
39
38
|
font-size: .8rem;
|
|
40
39
|
font-weight: 500;
|
|
41
40
|
color: ${({ theme }) => theme.t6};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
// components/types/form/types/label/styles.tsx
|
|
2
|
+
"use client";
|
|
4
3
|
import styled from "styled-components";
|
|
5
|
-
|
|
4
|
+
const Container = styled.label`
|
|
6
5
|
font-size: .8rem;
|
|
7
6
|
font-weight: 500;
|
|
8
7
|
color: ${({ theme }) => theme.t6};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
"use client";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -27,85 +28,16 @@ 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/select/index.tsx
|
|
32
31
|
var select_exports = {};
|
|
33
32
|
__export(select_exports, {
|
|
34
33
|
InputSelect: () => InputSelect
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(select_exports);
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
|
|
39
|
-
// components/types/form/types/select/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-input-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
|
-
position: relative;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
|
|
55
|
-
select {
|
|
56
|
-
border: 0;
|
|
57
|
-
padding: .5rem 2.3rem .5rem 1rem;
|
|
58
|
-
width: 100%;
|
|
59
|
-
font-size: .8rem;
|
|
60
|
-
appearance: none;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
background-color: ${({ theme }) => theme.primary};
|
|
63
|
-
color: ${({ theme }) => theme.t6};
|
|
64
|
-
|
|
65
|
-
&:disabled {
|
|
66
|
-
background-color: ${({ theme }) => theme.t2};
|
|
67
|
-
color: ${({ theme }) => theme.t6};
|
|
68
|
-
opacity: .7;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:focus-visible {
|
|
72
|
-
outline: none;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
i {
|
|
77
|
-
position: absolute;
|
|
78
|
-
top: 50%;
|
|
79
|
-
right: .8rem;
|
|
80
|
-
transform: translateY(-50%);
|
|
81
|
-
font-size: .8rem;
|
|
82
|
-
color: ${({ theme }) => theme.t6};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.iz-input-error {
|
|
87
|
-
color: ${({ theme }) => theme.negative};
|
|
88
|
-
font-size: .7rem;
|
|
89
|
-
}
|
|
90
|
-
`;
|
|
91
|
-
|
|
92
|
-
// components/types/form/types/label/styles.tsx
|
|
93
|
-
var import_styled_components2 = __toESM(require("styled-components"));
|
|
94
|
-
var Container2 = import_styled_components2.default.label`
|
|
95
|
-
font-size: .8rem;
|
|
96
|
-
font-weight: 500;
|
|
97
|
-
color: ${({ theme }) => theme.t6};
|
|
98
|
-
`;
|
|
99
|
-
|
|
100
|
-
// components/types/form/types/label/index.tsx
|
|
101
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
// components/types/form/types/select/index.tsx
|
|
37
|
+
var import_react = require("react");
|
|
38
|
+
var import_styles = require("./styles");
|
|
39
|
+
var import_label = require("../label");
|
|
107
40
|
var import_lodash = __toESM(require("lodash"));
|
|
108
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
109
41
|
function InputSelect(props) {
|
|
110
42
|
const [focus, setFocus] = (0, import_react.useState)(false);
|
|
111
43
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
@@ -114,13 +46,13 @@ function InputSelect(props) {
|
|
|
114
46
|
if (register.onChange) register.onChange(event);
|
|
115
47
|
if (props.onChange) props.onChange(value);
|
|
116
48
|
};
|
|
117
|
-
return /* @__PURE__ */ (0,
|
|
118
|
-
!!props.label && /* @__PURE__ */ (0,
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { className: props.className, error: props.error, children: [
|
|
50
|
+
!!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.InputLabel, { children: [
|
|
119
51
|
props.label,
|
|
120
52
|
props.required ? "*" : ""
|
|
121
53
|
] }),
|
|
122
|
-
/* @__PURE__ */ (0,
|
|
123
|
-
/* @__PURE__ */ (0,
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-input-content", children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
124
56
|
"select",
|
|
125
57
|
{
|
|
126
58
|
...import_lodash.default.omit(props, ["className", "onChange", "onFocus", "options", "onMouseDown", "onBlur", "maxLength", "required", "register"]),
|
|
@@ -136,7 +68,7 @@ function InputSelect(props) {
|
|
|
136
68
|
onChange,
|
|
137
69
|
children: import_lodash.default.map(
|
|
138
70
|
props.options,
|
|
139
|
-
(data, index) => /* @__PURE__ */ (0,
|
|
71
|
+
(data, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
140
72
|
"option",
|
|
141
73
|
{
|
|
142
74
|
value: Object.keys(data),
|
|
@@ -147,9 +79,9 @@ function InputSelect(props) {
|
|
|
147
79
|
)
|
|
148
80
|
}
|
|
149
81
|
),
|
|
150
|
-
/* @__PURE__ */ (0,
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
|
|
151
83
|
] }),
|
|
152
|
-
!!props.error && /* @__PURE__ */ (0,
|
|
84
|
+
!!props.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-error", children: props.error })
|
|
153
85
|
] });
|
|
154
86
|
}
|
|
155
87
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,78 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useState } 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-input-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
|
-
position: relative;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
|
|
22
|
-
select {
|
|
23
|
-
border: 0;
|
|
24
|
-
padding: .5rem 2.3rem .5rem 1rem;
|
|
25
|
-
width: 100%;
|
|
26
|
-
font-size: .8rem;
|
|
27
|
-
appearance: none;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
background-color: ${({ theme }) => theme.primary};
|
|
30
|
-
color: ${({ theme }) => theme.t6};
|
|
31
|
-
|
|
32
|
-
&:disabled {
|
|
33
|
-
background-color: ${({ theme }) => theme.t2};
|
|
34
|
-
color: ${({ theme }) => theme.t6};
|
|
35
|
-
opacity: .7;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:focus-visible {
|
|
39
|
-
outline: none;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
i {
|
|
44
|
-
position: absolute;
|
|
45
|
-
top: 50%;
|
|
46
|
-
right: .8rem;
|
|
47
|
-
transform: translateY(-50%);
|
|
48
|
-
font-size: .8rem;
|
|
49
|
-
color: ${({ theme }) => theme.t6};
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.iz-input-error {
|
|
54
|
-
color: ${({ theme }) => theme.negative};
|
|
55
|
-
font-size: .7rem;
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
|
|
59
|
-
// components/types/form/types/label/styles.tsx
|
|
60
|
-
import styled2 from "styled-components";
|
|
61
|
-
var Container2 = styled2.label`
|
|
62
|
-
font-size: .8rem;
|
|
63
|
-
font-weight: 500;
|
|
64
|
-
color: ${({ theme }) => theme.t6};
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
// components/types/form/types/label/index.tsx
|
|
68
|
-
import { jsx } from "react/jsx-runtime";
|
|
69
|
-
function InputLabel(props) {
|
|
70
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// components/types/form/types/select/index.tsx
|
|
5
|
+
import { Container } from "./styles";
|
|
6
|
+
import { InputLabel } from "../label";
|
|
74
7
|
import _ from "lodash";
|
|
75
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
76
8
|
function InputSelect(props) {
|
|
77
9
|
const [focus, setFocus] = useState(false);
|
|
78
10
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
@@ -87,7 +19,7 @@ function InputSelect(props) {
|
|
|
87
19
|
props.required ? "*" : ""
|
|
88
20
|
] }),
|
|
89
21
|
/* @__PURE__ */ jsxs("div", { className: "iz-input-content", children: [
|
|
90
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
91
23
|
"select",
|
|
92
24
|
{
|
|
93
25
|
..._.omit(props, ["className", "onChange", "onFocus", "options", "onMouseDown", "onBlur", "maxLength", "required", "register"]),
|
|
@@ -103,7 +35,7 @@ function InputSelect(props) {
|
|
|
103
35
|
onChange,
|
|
104
36
|
children: _.map(
|
|
105
37
|
props.options,
|
|
106
|
-
(data, index) => /* @__PURE__ */
|
|
38
|
+
(data, index) => /* @__PURE__ */ jsx(
|
|
107
39
|
"option",
|
|
108
40
|
{
|
|
109
41
|
value: Object.keys(data),
|
|
@@ -114,9 +46,9 @@ function InputSelect(props) {
|
|
|
114
46
|
)
|
|
115
47
|
}
|
|
116
48
|
),
|
|
117
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
|
|
118
50
|
] }),
|
|
119
|
-
!!props.error && /* @__PURE__ */
|
|
51
|
+
!!props.error && /* @__PURE__ */ jsx("div", { className: "iz-input-error", children: props.error })
|
|
120
52
|
] });
|
|
121
53
|
}
|
|
122
54
|
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/select/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
|
|