@gustavo-valsechi/client 1.3.25 → 1.3.26
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.d.mts +10 -0
- package/dist/components/index.d.ts +10 -3
- package/dist/components/{types/index.mjs → index.js} +404 -379
- package/dist/components/index.mjs +0 -1
- package/dist/contexts/index.d.mts +20 -0
- package/dist/contexts/index.d.ts +20 -4
- package/dist/contexts/index.js +524 -0
- package/dist/contexts/index.mjs +0 -1
- package/dist/index-BhaGW0O1.d.ts +601 -0
- package/dist/index-BxA8LyyD.d.mts +68 -0
- package/dist/index-DDi0w5pw.d.mts +601 -0
- package/dist/index-DT7VKE7H.d.ts +68 -0
- package/dist/index-Da-DtPS-.d.mts +29 -0
- package/dist/index-Da-DtPS-.d.ts +29 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.d.ts +17 -4
- package/dist/{components/types/table/index.mjs → index.js} +1476 -1211
- package/dist/index.mjs +0 -1
- package/dist/interfaces/index.d.mts +12 -0
- package/dist/interfaces/index.d.ts +12 -2
- package/dist/interfaces/index.js +18 -0
- package/dist/interfaces/index.mjs +0 -1
- package/package.json +6 -8
- package/dist/components/styles.d.ts +0 -2
- package/dist/components/styles.mjs +0 -21
- package/dist/components/types/avatar/index.d.ts +0 -2
- package/dist/components/types/avatar/index.mjs +0 -88
- package/dist/components/types/avatar/styles.d.ts +0 -1
- package/dist/components/types/avatar/styles.mjs +0 -61
- package/dist/components/types/badge/index.d.ts +0 -2
- package/dist/components/types/badge/index.mjs +0 -324
- package/dist/components/types/badge/styles.d.ts +0 -1
- package/dist/components/types/badge/styles.mjs +0 -39
- package/dist/components/types/block/index.d.ts +0 -2
- package/dist/components/types/block/index.mjs +0 -3078
- package/dist/components/types/block/styles.d.ts +0 -2
- package/dist/components/types/block/styles.mjs +0 -32
- package/dist/components/types/chart/index.d.ts +0 -2
- package/dist/components/types/chart/index.mjs +0 -322
- package/dist/components/types/chart/styles.d.ts +0 -1
- package/dist/components/types/chart/styles.mjs +0 -10
- package/dist/components/types/credit-card/assets/index.d.ts +0 -4
- package/dist/components/types/credit-card/assets/index.mjs +0 -23
- package/dist/components/types/credit-card/card/index.d.ts +0 -2
- package/dist/components/types/credit-card/card/index.mjs +0 -732
- package/dist/components/types/credit-card/card/styles.d.ts +0 -1
- package/dist/components/types/credit-card/card/styles.mjs +0 -138
- package/dist/components/types/credit-card/functions/index.d.ts +0 -2
- package/dist/components/types/credit-card/functions/index.mjs +0 -61
- package/dist/components/types/credit-card/functions/styles.d.ts +0 -1
- package/dist/components/types/credit-card/functions/styles.mjs +0 -43
- package/dist/components/types/credit-card/index.d.ts +0 -2
- package/dist/components/types/credit-card/index.mjs +0 -853
- package/dist/components/types/credit-card/styles.d.ts +0 -1
- package/dist/components/types/credit-card/styles.mjs +0 -40
- package/dist/components/types/credit-card/tools/index.d.ts +0 -6
- package/dist/components/types/credit-card/tools/index.mjs +0 -566
- package/dist/components/types/form/index.d.ts +0 -3
- package/dist/components/types/form/index.mjs +0 -711
- package/dist/components/types/form/styles.d.ts +0 -1
- package/dist/components/types/form/styles.mjs +0 -21
- package/dist/components/types/form/types/button/index.d.ts +0 -2
- package/dist/components/types/form/types/button/index.mjs +0 -165
- package/dist/components/types/form/types/button/loading/index.d.ts +0 -1
- package/dist/components/types/form/types/button/loading/index.mjs +0 -104
- package/dist/components/types/form/types/button/loading/styles.d.ts +0 -1
- package/dist/components/types/form/types/button/loading/styles.mjs +0 -94
- package/dist/components/types/form/types/button/styles.d.ts +0 -1
- package/dist/components/types/form/types/button/styles.mjs +0 -47
- package/dist/components/types/form/types/datetime/index.d.ts +0 -2
- package/dist/components/types/form/types/datetime/index.mjs +0 -93
- package/dist/components/types/form/types/datetime/styles.d.ts +0 -1
- package/dist/components/types/form/types/datetime/styles.mjs +0 -46
- package/dist/components/types/form/types/file/index.d.ts +0 -2
- package/dist/components/types/form/types/file/index.mjs +0 -91
- package/dist/components/types/form/types/file/styles.d.ts +0 -1
- package/dist/components/types/form/types/file/styles.mjs +0 -33
- package/dist/components/types/form/types/index.d.ts +0 -7
- package/dist/components/types/form/types/index.mjs +0 -603
- package/dist/components/types/form/types/input/index.d.ts +0 -2
- package/dist/components/types/form/types/input/index.mjs +0 -113
- package/dist/components/types/form/types/input/styles.d.ts +0 -1
- package/dist/components/types/form/types/input/styles.mjs +0 -52
- package/dist/components/types/form/types/label/index.d.ts +0 -2
- package/dist/components/types/form/types/label/index.mjs +0 -19
- package/dist/components/types/form/types/label/styles.d.ts +0 -1
- package/dist/components/types/form/types/label/styles.mjs +0 -13
- package/dist/components/types/form/types/select/index.d.ts +0 -2
- package/dist/components/types/form/types/select/index.mjs +0 -125
- package/dist/components/types/form/types/select/styles.d.ts +0 -1
- package/dist/components/types/form/types/select/styles.mjs +0 -58
- package/dist/components/types/form/types/textarea/index.d.ts +0 -2
- package/dist/components/types/form/types/textarea/index.mjs +0 -92
- package/dist/components/types/form/types/textarea/styles.d.ts +0 -1
- package/dist/components/types/form/types/textarea/styles.mjs +0 -45
- package/dist/components/types/index.d.ts +0 -11
- package/dist/components/types/loading/app/index.d.ts +0 -2
- package/dist/components/types/loading/app/index.mjs +0 -128
- package/dist/components/types/loading/app/styles.d.ts +0 -1
- package/dist/components/types/loading/app/styles.mjs +0 -93
- package/dist/components/types/loading/bar/index.d.ts +0 -2
- package/dist/components/types/loading/bar/index.mjs +0 -33
- package/dist/components/types/loading/bar/styles.d.ts +0 -1
- package/dist/components/types/loading/bar/styles.mjs +0 -27
- package/dist/components/types/loading/index.d.ts +0 -2
- package/dist/components/types/loading/index.mjs +0 -156
- package/dist/components/types/logo/index.d.ts +0 -2
- package/dist/components/types/logo/index.mjs +0 -34
- package/dist/components/types/logo/styles.d.ts +0 -1
- package/dist/components/types/logo/styles.mjs +0 -25
- package/dist/components/types/lottie/animations/index.d.ts +0 -293
- package/dist/components/types/lottie/animations/index.mjs +0 -10
- package/dist/components/types/lottie/index.d.ts +0 -2
- package/dist/components/types/lottie/index.mjs +0 -69
- package/dist/components/types/lottie/styles.d.ts +0 -1
- package/dist/components/types/lottie/styles.mjs +0 -28
- package/dist/components/types/modal/index.d.ts +0 -2
- package/dist/components/types/modal/index.mjs +0 -2324
- package/dist/components/types/modal/styles.d.ts +0 -1
- package/dist/components/types/modal/styles.mjs +0 -135
- package/dist/components/types/table/index.d.ts +0 -3
- package/dist/components/types/table/modal/actions.d.ts +0 -10
- package/dist/components/types/table/modal/actions.mjs +0 -87
- package/dist/components/types/table/modal/index.d.ts +0 -2
- package/dist/components/types/table/modal/index.mjs +0 -3076
- package/dist/components/types/table/modal/styles.d.ts +0 -1
- package/dist/components/types/table/modal/styles.mjs +0 -58
- package/dist/components/types/table/paginate/index.d.ts +0 -2
- package/dist/components/types/table/paginate/index.mjs +0 -96
- package/dist/components/types/table/paginate/styles.d.ts +0 -1
- package/dist/components/types/table/paginate/styles.mjs +0 -42
- package/dist/components/types/table/styles.d.ts +0 -5
- package/dist/components/types/table/styles.mjs +0 -268
- package/dist/contexts/icon/assets/brands/index.d.ts +0 -2
- package/dist/contexts/icon/assets/brands/index.mjs +0 -19
- package/dist/contexts/icon/assets/index.d.ts +0 -6
- package/dist/contexts/icon/assets/index.mjs +0 -44
- package/dist/contexts/icon/assets/regular/index.d.ts +0 -2
- package/dist/contexts/icon/assets/regular/index.mjs +0 -19
- package/dist/contexts/icon/assets/solid/index.d.ts +0 -2
- package/dist/contexts/icon/assets/solid/index.mjs +0 -19
- package/dist/contexts/icon/index.d.ts +0 -4
- package/dist/contexts/icon/index.mjs +0 -281
- package/dist/contexts/icon/styles.d.ts +0 -1
- package/dist/contexts/icon/styles.mjs +0 -10
- package/dist/contexts/modal/index.d.ts +0 -4
- package/dist/contexts/modal/index.mjs +0 -66
- package/dist/contexts/modal/styles.d.ts +0 -1
- package/dist/contexts/modal/styles.mjs +0 -10
- package/dist/contexts/theme/content.d.ts +0 -3
- package/dist/contexts/theme/content.mjs +0 -81
- package/dist/contexts/theme/index.d.ts +0 -4
- package/dist/contexts/theme/index.mjs +0 -201
- package/dist/contexts/theme/styles.d.ts +0 -1
- package/dist/contexts/theme/styles.mjs +0 -84
- package/dist/contexts/tooltip/index.d.ts +0 -6
- package/dist/contexts/tooltip/index.mjs +0 -117
- package/dist/contexts/tooltip/styles.d.ts +0 -1
- package/dist/contexts/tooltip/styles.mjs +0 -46
- package/dist/interfaces/components/avatar/index.d.ts +0 -6
- package/dist/interfaces/components/avatar/index.mjs +0 -1
- package/dist/interfaces/components/badge/index.d.ts +0 -3
- package/dist/interfaces/components/badge/index.mjs +0 -1
- package/dist/interfaces/components/block/index.d.ts +0 -16
- package/dist/interfaces/components/block/index.mjs +0 -1
- package/dist/interfaces/components/chart/index.d.ts +0 -9
- package/dist/interfaces/components/chart/index.mjs +0 -1
- package/dist/interfaces/components/credit-card/index.d.ts +0 -16
- package/dist/interfaces/components/credit-card/index.mjs +0 -1
- package/dist/interfaces/components/form/button/index.d.ts +0 -7
- package/dist/interfaces/components/form/button/index.mjs +0 -1
- package/dist/interfaces/components/form/datetime/index.d.ts +0 -15
- package/dist/interfaces/components/form/datetime/index.mjs +0 -1
- package/dist/interfaces/components/form/file/index.d.ts +0 -14
- package/dist/interfaces/components/form/file/index.mjs +0 -1
- package/dist/interfaces/components/form/index.d.ts +0 -16
- package/dist/interfaces/components/form/index.mjs +0 -1
- package/dist/interfaces/components/form/input/index.d.ts +0 -17
- package/dist/interfaces/components/form/input/index.mjs +0 -1
- package/dist/interfaces/components/form/label/index.d.ts +0 -5
- package/dist/interfaces/components/form/label/index.mjs +0 -1
- package/dist/interfaces/components/form/select/index.d.ts +0 -14
- package/dist/interfaces/components/form/select/index.mjs +0 -1
- package/dist/interfaces/components/form/textarea/index.d.ts +0 -16
- package/dist/interfaces/components/form/textarea/index.mjs +0 -1
- package/dist/interfaces/components/index.d.ts +0 -26
- package/dist/interfaces/components/index.mjs +0 -1
- package/dist/interfaces/components/loading/app/index.d.ts +0 -3
- package/dist/interfaces/components/loading/app/index.mjs +0 -1
- package/dist/interfaces/components/loading/bar/index.d.ts +0 -7
- package/dist/interfaces/components/loading/bar/index.mjs +0 -1
- package/dist/interfaces/components/loading/index.d.ts +0 -2
- package/dist/interfaces/components/loading/index.mjs +0 -1
- package/dist/interfaces/components/logo/index.d.ts +0 -6
- package/dist/interfaces/components/logo/index.mjs +0 -1
- package/dist/interfaces/components/lottie/index.d.ts +0 -12
- package/dist/interfaces/components/lottie/index.mjs +0 -1
- package/dist/interfaces/components/modal/index.d.ts +0 -16
- package/dist/interfaces/components/modal/index.mjs +0 -1
- package/dist/interfaces/components/table/index.d.ts +0 -46
- package/dist/interfaces/components/table/index.mjs +0 -1
- package/dist/interfaces/components/table/paginate/index.d.ts +0 -7
- package/dist/interfaces/components/table/paginate/index.mjs +0 -1
- package/dist/interfaces/contexts/icon/index.d.ts +0 -3
- package/dist/interfaces/contexts/icon/index.mjs +0 -1
- package/dist/interfaces/contexts/index.d.ts +0 -8
- package/dist/interfaces/contexts/index.mjs +0 -1
- package/dist/interfaces/contexts/modal/index.d.ts +0 -16
- package/dist/interfaces/contexts/modal/index.mjs +0 -2
- package/dist/interfaces/contexts/theme/index.d.ts +0 -42
- package/dist/interfaces/contexts/theme/index.mjs +0 -1
- package/dist/interfaces/contexts/tooltip/index.d.ts +0 -3
- package/dist/interfaces/contexts/tooltip/index.mjs +0 -1
- package/dist/styled.d.ts +0 -6
- package/dist/tsup.config.d.ts +0 -2
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/input/index.tsx
|
|
5
|
-
import { useState } from "react";
|
|
6
|
-
|
|
7
|
-
// components/types/form/types/input/styles.tsx
|
|
8
|
-
import styled from "styled-components";
|
|
9
|
-
var Container = styled.div`
|
|
10
|
-
width: 100%;
|
|
11
|
-
padding-top: .3rem;
|
|
12
|
-
|
|
13
|
-
.iz-input-content {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
padding-right: ${({ password }) => password ? ".6rem" : "0rem"};
|
|
21
|
-
background-color: ${({ theme }) => theme.primary};
|
|
22
|
-
|
|
23
|
-
input {
|
|
24
|
-
border: 0;
|
|
25
|
-
padding: .5rem 1rem;
|
|
26
|
-
width: 100%;
|
|
27
|
-
font-size: .8rem;
|
|
28
|
-
background-color: ${({ theme }) => theme.primary};
|
|
29
|
-
color: ${({ theme }) => theme.t6};
|
|
30
|
-
|
|
31
|
-
&:disabled {
|
|
32
|
-
background-color: ${({ theme }) => theme.t2};
|
|
33
|
-
color: ${({ theme }) => theme.t6};
|
|
34
|
-
opacity: .7;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:focus-visible {
|
|
38
|
-
outline: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
i {
|
|
43
|
-
color: ${({ theme }) => theme.t3};
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.iz-input-error {
|
|
49
|
-
color: ${({ theme }) => theme.negative};
|
|
50
|
-
font-size: .7rem;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
|
|
54
|
-
// components/types/form/types/label/styles.tsx
|
|
55
|
-
import styled2 from "styled-components";
|
|
56
|
-
var Container2 = styled2.label`
|
|
57
|
-
font-size: .8rem;
|
|
58
|
-
font-weight: 500;
|
|
59
|
-
color: ${({ theme }) => theme.t6};
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
// components/types/form/types/label/index.tsx
|
|
63
|
-
import { jsx } from "react/jsx-runtime";
|
|
64
|
-
function InputLabel(props) {
|
|
65
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// components/types/form/types/input/index.tsx
|
|
69
|
-
import _ from "lodash";
|
|
70
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
71
|
-
function InputText(props) {
|
|
72
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
73
|
-
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
74
|
-
const onChange = (event) => {
|
|
75
|
-
const value = event.target.value || "";
|
|
76
|
-
event.target.value = props.mask ? props.mask(value) : value;
|
|
77
|
-
if (register.onChange) register.onChange(event);
|
|
78
|
-
if (props.onChange) props.onChange(value);
|
|
79
|
-
};
|
|
80
|
-
return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, password: props.type === "password", children: [
|
|
81
|
-
!!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
|
|
82
|
-
props.label,
|
|
83
|
-
props.required ? "*" : ""
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ jsxs("div", { className: "iz-input-content", children: [
|
|
86
|
-
/* @__PURE__ */ jsx2(
|
|
87
|
-
"input",
|
|
88
|
-
{
|
|
89
|
-
..._.omit(props, ["className", "register", "mask"]),
|
|
90
|
-
type: props.type === "password" ? showPassword ? "text" : "password" : props.type,
|
|
91
|
-
maxLength: props.maxLength || 255,
|
|
92
|
-
onFocus: () => {
|
|
93
|
-
if (props.onFocus) props.onFocus(props.name);
|
|
94
|
-
},
|
|
95
|
-
...register,
|
|
96
|
-
onChange
|
|
97
|
-
}
|
|
98
|
-
),
|
|
99
|
-
props.type === "password" && /* @__PURE__ */ jsx2(
|
|
100
|
-
"i",
|
|
101
|
-
{
|
|
102
|
-
"aria-hidden": true,
|
|
103
|
-
className: showPassword ? "fa-solid fa-eye-slash" : "fa-solid fa-eye",
|
|
104
|
-
onClick: () => setShowPassword(!showPassword)
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
] }),
|
|
108
|
-
!!props.error && /* @__PURE__ */ jsx2("div", { className: "iz-input-error", children: props.error })
|
|
109
|
-
] });
|
|
110
|
-
}
|
|
111
|
-
export {
|
|
112
|
-
InputText
|
|
113
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: any;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/input/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
width: 100%;
|
|
8
|
-
padding-top: .3rem;
|
|
9
|
-
|
|
10
|
-
.iz-input-content {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
15
|
-
border-radius: 5px;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
padding-right: ${({ password }) => password ? ".6rem" : "0rem"};
|
|
18
|
-
background-color: ${({ theme }) => theme.primary};
|
|
19
|
-
|
|
20
|
-
input {
|
|
21
|
-
border: 0;
|
|
22
|
-
padding: .5rem 1rem;
|
|
23
|
-
width: 100%;
|
|
24
|
-
font-size: .8rem;
|
|
25
|
-
background-color: ${({ theme }) => theme.primary};
|
|
26
|
-
color: ${({ theme }) => theme.t6};
|
|
27
|
-
|
|
28
|
-
&:disabled {
|
|
29
|
-
background-color: ${({ theme }) => theme.t2};
|
|
30
|
-
color: ${({ theme }) => theme.t6};
|
|
31
|
-
opacity: .7;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:focus-visible {
|
|
35
|
-
outline: none;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
i {
|
|
40
|
-
color: ${({ theme }) => theme.t3};
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.iz-input-error {
|
|
46
|
-
color: ${({ theme }) => theme.negative};
|
|
47
|
-
font-size: .7rem;
|
|
48
|
-
}
|
|
49
|
-
`;
|
|
50
|
-
export {
|
|
51
|
-
Container
|
|
52
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/label/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.label`
|
|
7
|
-
font-size: .8rem;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
color: ${({ theme }) => theme.t6};
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
// components/types/form/types/label/index.tsx
|
|
13
|
-
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
function InputLabel(props) {
|
|
15
|
-
return /* @__PURE__ */ jsx(Container, { className: props.className, children: props.children });
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
InputLabel
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: any;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/label/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.label`
|
|
7
|
-
font-size: .8rem;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
color: ${({ theme }) => theme.t6};
|
|
10
|
-
`;
|
|
11
|
-
export {
|
|
12
|
-
Container
|
|
13
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/select/index.tsx
|
|
5
|
-
import { useState } from "react";
|
|
6
|
-
|
|
7
|
-
// components/types/form/types/select/styles.tsx
|
|
8
|
-
import styled from "styled-components";
|
|
9
|
-
var Container = styled.div`
|
|
10
|
-
width: 100%;
|
|
11
|
-
padding-top: .3rem;
|
|
12
|
-
|
|
13
|
-
.iz-input-content {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
position: relative;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
|
|
23
|
-
select {
|
|
24
|
-
border: 0;
|
|
25
|
-
padding: .5rem 2.3rem .5rem 1rem;
|
|
26
|
-
width: 100%;
|
|
27
|
-
font-size: .8rem;
|
|
28
|
-
appearance: none;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
background-color: ${({ theme }) => theme.primary};
|
|
31
|
-
color: ${({ theme }) => theme.t6};
|
|
32
|
-
|
|
33
|
-
&:disabled {
|
|
34
|
-
background-color: ${({ theme }) => theme.t2};
|
|
35
|
-
color: ${({ theme }) => theme.t6};
|
|
36
|
-
opacity: .7;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:focus-visible {
|
|
40
|
-
outline: none;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
i {
|
|
45
|
-
position: absolute;
|
|
46
|
-
top: 50%;
|
|
47
|
-
right: .8rem;
|
|
48
|
-
transform: translateY(-50%);
|
|
49
|
-
font-size: .8rem;
|
|
50
|
-
color: ${({ theme }) => theme.t6};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.iz-input-error {
|
|
55
|
-
color: ${({ theme }) => theme.negative};
|
|
56
|
-
font-size: .7rem;
|
|
57
|
-
}
|
|
58
|
-
`;
|
|
59
|
-
|
|
60
|
-
// components/types/form/types/label/styles.tsx
|
|
61
|
-
import styled2 from "styled-components";
|
|
62
|
-
var Container2 = styled2.label`
|
|
63
|
-
font-size: .8rem;
|
|
64
|
-
font-weight: 500;
|
|
65
|
-
color: ${({ theme }) => theme.t6};
|
|
66
|
-
`;
|
|
67
|
-
|
|
68
|
-
// components/types/form/types/label/index.tsx
|
|
69
|
-
import { jsx } from "react/jsx-runtime";
|
|
70
|
-
function InputLabel(props) {
|
|
71
|
-
return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// components/types/form/types/select/index.tsx
|
|
75
|
-
import _ from "lodash";
|
|
76
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
77
|
-
function InputSelect(props) {
|
|
78
|
-
const [focus, setFocus] = useState(false);
|
|
79
|
-
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
80
|
-
const onChange = (event) => {
|
|
81
|
-
const value = event.target.value || "";
|
|
82
|
-
if (register.onChange) register.onChange(event);
|
|
83
|
-
if (props.onChange) props.onChange(value);
|
|
84
|
-
};
|
|
85
|
-
return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, children: [
|
|
86
|
-
!!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
|
|
87
|
-
props.label,
|
|
88
|
-
props.required ? "*" : ""
|
|
89
|
-
] }),
|
|
90
|
-
/* @__PURE__ */ jsxs("div", { className: "iz-input-content", children: [
|
|
91
|
-
/* @__PURE__ */ jsx2(
|
|
92
|
-
"select",
|
|
93
|
-
{
|
|
94
|
-
..._.omit(props, ["className", "onChange", "onFocus", "options", "onMouseDown", "onBlur", "maxLength", "required", "register"]),
|
|
95
|
-
onMouseDown: () => setFocus(!focus),
|
|
96
|
-
onFocus: () => {
|
|
97
|
-
if (props.onFocus) props.onFocus(props.name);
|
|
98
|
-
},
|
|
99
|
-
...register,
|
|
100
|
-
onBlur: (event) => {
|
|
101
|
-
if (register.onBlur) register.onBlur(event);
|
|
102
|
-
setFocus(false);
|
|
103
|
-
},
|
|
104
|
-
onChange,
|
|
105
|
-
children: _.map(
|
|
106
|
-
props.options,
|
|
107
|
-
(data, index) => /* @__PURE__ */ jsx2(
|
|
108
|
-
"option",
|
|
109
|
-
{
|
|
110
|
-
value: Object.keys(data),
|
|
111
|
-
children: Object.values(data)
|
|
112
|
-
},
|
|
113
|
-
index
|
|
114
|
-
)
|
|
115
|
-
)
|
|
116
|
-
}
|
|
117
|
-
),
|
|
118
|
-
/* @__PURE__ */ jsx2("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
|
|
119
|
-
] }),
|
|
120
|
-
!!props.error && /* @__PURE__ */ jsx2("div", { className: "iz-input-error", children: props.error })
|
|
121
|
-
] });
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
InputSelect
|
|
125
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: any;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/select/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
width: 100%;
|
|
8
|
-
padding-top: .3rem;
|
|
9
|
-
|
|
10
|
-
.iz-input-content {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
15
|
-
border-radius: 5px;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
position: relative;
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
|
|
20
|
-
select {
|
|
21
|
-
border: 0;
|
|
22
|
-
padding: .5rem 2.3rem .5rem 1rem;
|
|
23
|
-
width: 100%;
|
|
24
|
-
font-size: .8rem;
|
|
25
|
-
appearance: none;
|
|
26
|
-
cursor: pointer;
|
|
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
|
-
position: absolute;
|
|
43
|
-
top: 50%;
|
|
44
|
-
right: .8rem;
|
|
45
|
-
transform: translateY(-50%);
|
|
46
|
-
font-size: .8rem;
|
|
47
|
-
color: ${({ theme }) => theme.t6};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.iz-input-error {
|
|
52
|
-
color: ${({ theme }) => theme.negative};
|
|
53
|
-
font-size: .7rem;
|
|
54
|
-
}
|
|
55
|
-
`;
|
|
56
|
-
export {
|
|
57
|
-
Container
|
|
58
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/textarea/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
width: 100%;
|
|
8
|
-
padding-top: .3rem;
|
|
9
|
-
|
|
10
|
-
.iz-input-content {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
15
|
-
border-radius: 5px;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
|
|
18
|
-
textarea {
|
|
19
|
-
border: 0;
|
|
20
|
-
padding: .5rem 1rem;
|
|
21
|
-
width: 100%;
|
|
22
|
-
font-size: .8rem;
|
|
23
|
-
background-color: ${({ theme }) => theme.primary};
|
|
24
|
-
color: ${({ theme }) => theme.t6};
|
|
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/textarea/index.tsx
|
|
59
|
-
import _ from "lodash";
|
|
60
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
61
|
-
function InputTextarea(props) {
|
|
62
|
-
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
63
|
-
const onChange = (event) => {
|
|
64
|
-
const value = event.target.value || "";
|
|
65
|
-
event.target.value = props.mask ? props.mask(value) : value;
|
|
66
|
-
if (register.onChange) register.onChange(event);
|
|
67
|
-
if (props.onChange) props.onChange(value);
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, children: [
|
|
70
|
-
!!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
|
|
71
|
-
props.label,
|
|
72
|
-
props.required ? "*" : ""
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ jsx2("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx2(
|
|
75
|
-
"textarea",
|
|
76
|
-
{
|
|
77
|
-
..._.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register"]),
|
|
78
|
-
maxLength: props.maxLength,
|
|
79
|
-
rows: props.rows || 5,
|
|
80
|
-
onFocus: () => {
|
|
81
|
-
if (props.onFocus) props.onFocus(props.name);
|
|
82
|
-
},
|
|
83
|
-
...register,
|
|
84
|
-
onChange
|
|
85
|
-
}
|
|
86
|
-
) }),
|
|
87
|
-
!!props.error && /* @__PURE__ */ jsx2("div", { className: "iz-input-error", children: props.error })
|
|
88
|
-
] });
|
|
89
|
-
}
|
|
90
|
-
export {
|
|
91
|
-
InputTextarea
|
|
92
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/form/types/textarea/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
width: 100%;
|
|
8
|
-
padding-top: .3rem;
|
|
9
|
-
|
|
10
|
-
.iz-input-content {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
|
|
15
|
-
border-radius: 5px;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
|
|
18
|
-
textarea {
|
|
19
|
-
border: 0;
|
|
20
|
-
padding: .5rem 1rem;
|
|
21
|
-
width: 100%;
|
|
22
|
-
font-size: .8rem;
|
|
23
|
-
background-color: ${({ theme }) => theme.primary};
|
|
24
|
-
color: ${({ theme }) => theme.t6};
|
|
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
|
-
export {
|
|
44
|
-
Container
|
|
45
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "./table";
|
|
2
|
-
export * from "./loading";
|
|
3
|
-
export * from "./modal";
|
|
4
|
-
export * from "./badge";
|
|
5
|
-
export * from "./logo";
|
|
6
|
-
export * from "./form";
|
|
7
|
-
export * from "./chart";
|
|
8
|
-
export * from "./avatar";
|
|
9
|
-
export * from "./lottie";
|
|
10
|
-
export * from "./credit-card";
|
|
11
|
-
export * from "./block";
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
// components/types/loading/app/styles.tsx
|
|
5
|
-
import styled from "styled-components";
|
|
6
|
-
var Container = styled.div`
|
|
7
|
-
width: ${({ initialization }) => initialization ? "100vw" : "100%"};
|
|
8
|
-
height: ${({ initialization }) => initialization ? "100vh" : "calc(100vh - 15rem)"};
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
position: ${({ initialization }) => initialization ? "absolute" : "relative"};;
|
|
13
|
-
bottom: 0;
|
|
14
|
-
left: 0;
|
|
15
|
-
background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
|
|
16
|
-
z-index: ${({ initialization }) => initialization ? "9" : "0"};
|
|
17
|
-
|
|
18
|
-
.iz-loading-logo {
|
|
19
|
-
font-size: 4rem;
|
|
20
|
-
opacity: 40%;
|
|
21
|
-
animation: loop 2s infinite;
|
|
22
|
-
position: relative;
|
|
23
|
-
|
|
24
|
-
&::before {
|
|
25
|
-
content: "";
|
|
26
|
-
position: absolute;
|
|
27
|
-
width: 5rem;
|
|
28
|
-
height: 5rem;
|
|
29
|
-
animation: firstImpact 2s .5s infinite ease;
|
|
30
|
-
background: ${({ theme }) => theme.t05};
|
|
31
|
-
border-radius: 50%;
|
|
32
|
-
z-index: 0;
|
|
33
|
-
opacity: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&::after {
|
|
37
|
-
content: "";
|
|
38
|
-
position: absolute;
|
|
39
|
-
width: 5rem;
|
|
40
|
-
height: 5rem;
|
|
41
|
-
animation: secondImpact 2s .5s infinite ease;
|
|
42
|
-
background: ${({ theme }) => theme.t05};
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
z-index: 0;
|
|
45
|
-
opacity: 0;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@keyframes loop {
|
|
49
|
-
0% {
|
|
50
|
-
transform: scale(1);
|
|
51
|
-
}
|
|
52
|
-
80% {
|
|
53
|
-
transform: scale(1.3);
|
|
54
|
-
}
|
|
55
|
-
100% {
|
|
56
|
-
transform: scale(1);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@keyframes firstImpact {
|
|
61
|
-
0% {
|
|
62
|
-
transform: scale(1);
|
|
63
|
-
opacity: 0;
|
|
64
|
-
}
|
|
65
|
-
10% {
|
|
66
|
-
transform: scale(1.6);
|
|
67
|
-
opacity: 1;
|
|
68
|
-
}
|
|
69
|
-
100% {
|
|
70
|
-
transform: scale(1.6);
|
|
71
|
-
opacity: 0;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
@keyframes secondImpact {
|
|
76
|
-
0% {
|
|
77
|
-
transform: scale(1);
|
|
78
|
-
opacity: 0;
|
|
79
|
-
}
|
|
80
|
-
40% {
|
|
81
|
-
transform: scale(1.3);
|
|
82
|
-
opacity: 1;
|
|
83
|
-
}
|
|
84
|
-
100% {
|
|
85
|
-
transform: scale(1.3);
|
|
86
|
-
opacity: 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
`;
|
|
91
|
-
|
|
92
|
-
// components/types/logo/styles.tsx
|
|
93
|
-
import styled2 from "styled-components";
|
|
94
|
-
var Container2 = styled2.div`
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
gap: .3rem;
|
|
99
|
-
font-size: ${(props) => props.size || "2"}rem;
|
|
100
|
-
color: ${(props) => props.theme.t5};
|
|
101
|
-
|
|
102
|
-
label:first-child {
|
|
103
|
-
font-weight: 900;
|
|
104
|
-
color: ${(props) => props.theme.secondary};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
label:last-child {
|
|
108
|
-
font-weight: 600;
|
|
109
|
-
}
|
|
110
|
-
`;
|
|
111
|
-
|
|
112
|
-
// components/types/logo/index.tsx
|
|
113
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
114
|
-
function Logo(props) {
|
|
115
|
-
return /* @__PURE__ */ jsxs(Container2, { ...props, children: [
|
|
116
|
-
/* @__PURE__ */ jsx("label", { children: "IZ" }),
|
|
117
|
-
!props.onlyPrefix && /* @__PURE__ */ jsx("label", { children: "Way" })
|
|
118
|
-
] });
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// components/types/loading/app/index.tsx
|
|
122
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
123
|
-
function LoadingApp(props) {
|
|
124
|
-
return /* @__PURE__ */ jsx2(Container, { ...props, children: /* @__PURE__ */ jsx2(Logo, { className: "iz-loading-logo", onlyPrefix: true }) });
|
|
125
|
-
}
|
|
126
|
-
export {
|
|
127
|
-
LoadingApp
|
|
128
|
-
};
|