@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,71 +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/textarea/index.tsx
|
|
32
31
|
var textarea_exports = {};
|
|
33
32
|
__export(textarea_exports, {
|
|
34
33
|
InputTextarea: () => InputTextarea
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(textarea_exports);
|
|
37
|
-
|
|
38
|
-
// components/types/form/types/textarea/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
|
-
textarea {
|
|
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
|
-
|
|
60
|
-
&:disabled {
|
|
61
|
-
background-color: ${({ theme }) => theme.t2};
|
|
62
|
-
color: ${({ theme }) => theme.t6};
|
|
63
|
-
opacity: .7;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:focus-visible {
|
|
67
|
-
outline: none;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.iz-input-error {
|
|
73
|
-
color: ${({ theme }) => theme.negative};
|
|
74
|
-
font-size: .7rem;
|
|
75
|
-
}
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
// components/types/form/types/label/styles.tsx
|
|
79
|
-
var import_styled_components2 = __toESM(require("styled-components"));
|
|
80
|
-
var Container2 = import_styled_components2.default.label`
|
|
81
|
-
font-size: .8rem;
|
|
82
|
-
font-weight: 500;
|
|
83
|
-
color: ${({ theme }) => theme.t6};
|
|
84
|
-
`;
|
|
85
|
-
|
|
86
|
-
// components/types/form/types/label/index.tsx
|
|
87
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// components/types/form/types/textarea/index.tsx
|
|
37
|
+
var import_styles = require("./styles");
|
|
38
|
+
var import_label = require("../label");
|
|
93
39
|
var import_lodash = __toESM(require("lodash"));
|
|
94
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
95
40
|
function InputTextarea(props) {
|
|
96
41
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
97
42
|
const onChange = (event) => {
|
|
@@ -100,12 +45,12 @@ function InputTextarea(props) {
|
|
|
100
45
|
if (register.onChange) register.onChange(event);
|
|
101
46
|
if (props.onChange) props.onChange(value);
|
|
102
47
|
};
|
|
103
|
-
return /* @__PURE__ */ (0,
|
|
104
|
-
!!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: [
|
|
105
50
|
props.label,
|
|
106
51
|
props.required ? "*" : ""
|
|
107
52
|
] }),
|
|
108
|
-
/* @__PURE__ */ (0,
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
109
54
|
"textarea",
|
|
110
55
|
{
|
|
111
56
|
...import_lodash.default.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register"]),
|
|
@@ -118,7 +63,7 @@ function InputTextarea(props) {
|
|
|
118
63
|
onChange
|
|
119
64
|
}
|
|
120
65
|
) }),
|
|
121
|
-
!!props.error && /* @__PURE__ */ (0,
|
|
66
|
+
!!props.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-error", children: props.error })
|
|
122
67
|
] });
|
|
123
68
|
}
|
|
124
69
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,62 +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
|
-
textarea {
|
|
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
|
-
|
|
25
|
-
&:disabled {
|
|
26
|
-
background-color: ${({ theme }) => theme.t2};
|
|
27
|
-
color: ${({ theme }) => theme.t6};
|
|
28
|
-
opacity: .7;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:focus-visible {
|
|
32
|
-
outline: none;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.iz-input-error {
|
|
38
|
-
color: ${({ theme }) => theme.negative};
|
|
39
|
-
font-size: .7rem;
|
|
40
|
-
}
|
|
41
|
-
`;
|
|
42
|
-
|
|
43
|
-
// components/types/form/types/label/styles.tsx
|
|
44
|
-
import styled2 from "styled-components";
|
|
45
|
-
var Container2 = styled2.label`
|
|
46
|
-
font-size: .8rem;
|
|
47
|
-
font-weight: 500;
|
|
48
|
-
color: ${({ theme }) => theme.t6};
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
// components/types/form/types/label/index.tsx
|
|
52
|
-
import { jsx } from "react/jsx-runtime";
|
|
53
|
-
function InputLabel(props) {
|
|
54
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// components/types/form/types/textarea/index.tsx
|
|
2
|
+
"use client";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Container } from "./styles";
|
|
5
|
+
import { InputLabel } from "../label";
|
|
58
6
|
import _ from "lodash";
|
|
59
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
60
7
|
function InputTextarea(props) {
|
|
61
8
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
62
9
|
const onChange = (event) => {
|
|
@@ -70,7 +17,7 @@ function InputTextarea(props) {
|
|
|
70
17
|
props.label,
|
|
71
18
|
props.required ? "*" : ""
|
|
72
19
|
] }),
|
|
73
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx(
|
|
74
21
|
"textarea",
|
|
75
22
|
{
|
|
76
23
|
..._.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register"]),
|
|
@@ -83,7 +30,7 @@ function InputTextarea(props) {
|
|
|
83
30
|
onChange
|
|
84
31
|
}
|
|
85
32
|
) }),
|
|
86
|
-
!!props.error && /* @__PURE__ */
|
|
33
|
+
!!props.error && /* @__PURE__ */ jsx("div", { className: "iz-input-error", children: props.error })
|
|
87
34
|
] });
|
|
88
35
|
}
|
|
89
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/textarea/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
|
|