@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,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/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.form`
|
|
39
38
|
width: 100%;
|
|
40
39
|
|
|
41
40
|
.form-buttons {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
"use strict";
|
|
2
3
|
"use client";
|
|
3
4
|
var __create = Object.create;
|
|
@@ -27,169 +28,26 @@ 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/button/index.tsx
|
|
32
31
|
var button_exports = {};
|
|
33
32
|
__export(button_exports, {
|
|
34
33
|
Button: () => Button
|
|
35
34
|
});
|
|
36
35
|
module.exports = __toCommonJS(button_exports);
|
|
37
|
-
|
|
38
|
-
// components/types/form/types/button/styles.tsx
|
|
39
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
40
|
-
var Container = import_styled_components.default.button`
|
|
41
|
-
border-radius: 5px;
|
|
42
|
-
font-size: .8rem;
|
|
43
|
-
font-weight: 500;
|
|
44
|
-
transition: ease .3s;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
|
|
49
|
-
background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
|
|
50
|
-
border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
|
|
51
|
-
pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
|
|
52
|
-
cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
|
|
53
|
-
opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
|
|
54
|
-
padding: .4rem 2.5rem;
|
|
55
|
-
transition: ease .3s;
|
|
56
|
-
|
|
57
|
-
span {
|
|
58
|
-
text-align: center;
|
|
59
|
-
cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:disabled {
|
|
63
|
-
pointer-events: none;
|
|
64
|
-
|
|
65
|
-
&::before {
|
|
66
|
-
opacity: .6;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&:hover {
|
|
71
|
-
opacity: .9;
|
|
72
|
-
color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
|
|
73
|
-
|
|
74
|
-
&::before {
|
|
75
|
-
background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
|
|
80
|
-
// components/types/form/types/button/loading/styles.tsx
|
|
81
|
-
var import_styled_components2 = __toESM(require("styled-components"));
|
|
82
|
-
var Container2 = import_styled_components2.default.div`
|
|
83
|
-
display: flex;
|
|
84
|
-
justify-content: space-between;
|
|
85
|
-
align-items: center;
|
|
86
|
-
width: 2rem;
|
|
87
|
-
margin-right: .5rem;
|
|
88
|
-
|
|
89
|
-
div {
|
|
90
|
-
width: .5rem;
|
|
91
|
-
height: .5rem;
|
|
92
|
-
border-radius: 1rem;
|
|
93
|
-
background: rgb(255, 255, 255, 1);
|
|
94
|
-
|
|
95
|
-
&:nth-child(1) {
|
|
96
|
-
animation: blinkOne infinite ease 2s;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:nth-child(2) {
|
|
100
|
-
animation: blinkTwo infinite ease 2s;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:nth-child(3) {
|
|
104
|
-
animation: blinkThree infinite ease 2s;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@keyframes blinkOne {
|
|
109
|
-
0% {
|
|
110
|
-
opacity: 0.8;
|
|
111
|
-
}
|
|
112
|
-
20% {
|
|
113
|
-
opacity: 0.2;
|
|
114
|
-
}
|
|
115
|
-
40% {
|
|
116
|
-
opacity: 0.2;
|
|
117
|
-
}
|
|
118
|
-
60% {
|
|
119
|
-
opacity: 0.2;
|
|
120
|
-
}
|
|
121
|
-
80% {
|
|
122
|
-
opacity: 0.2;
|
|
123
|
-
}
|
|
124
|
-
100% {
|
|
125
|
-
opacity: 0.8;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@keyframes blinkTwo {
|
|
130
|
-
0% {
|
|
131
|
-
opacity: 0.2;
|
|
132
|
-
}
|
|
133
|
-
20% {
|
|
134
|
-
opacity: 0.8;
|
|
135
|
-
}
|
|
136
|
-
40% {
|
|
137
|
-
opacity: 0.2;
|
|
138
|
-
}
|
|
139
|
-
60% {
|
|
140
|
-
opacity: 0.2;
|
|
141
|
-
}
|
|
142
|
-
80% {
|
|
143
|
-
opacity: 0.8;
|
|
144
|
-
}
|
|
145
|
-
100% {
|
|
146
|
-
opacity: 0.2;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@keyframes blinkThree {
|
|
151
|
-
0% {
|
|
152
|
-
opacity: 0.2;
|
|
153
|
-
}
|
|
154
|
-
25% {
|
|
155
|
-
opacity: 0.2;
|
|
156
|
-
}
|
|
157
|
-
50% {
|
|
158
|
-
opacity: 0.8;
|
|
159
|
-
}
|
|
160
|
-
75% {
|
|
161
|
-
opacity: 0.2;
|
|
162
|
-
}
|
|
163
|
-
100% {
|
|
164
|
-
opacity: 0.2;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
`;
|
|
168
|
-
|
|
169
|
-
// components/types/form/types/button/loading/index.tsx
|
|
170
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
174
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
175
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
|
|
176
|
-
] });
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// components/types/form/types/button/index.tsx
|
|
37
|
+
var import_styles = require("./styles");
|
|
38
|
+
var import_loading = require("./loading");
|
|
180
39
|
var import_lodash = __toESM(require("lodash"));
|
|
181
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
182
40
|
function Button(props) {
|
|
183
|
-
return /* @__PURE__ */ (0,
|
|
184
|
-
Container,
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
42
|
+
import_styles.Container,
|
|
185
43
|
{
|
|
186
44
|
loading: String(!!props.loading),
|
|
187
45
|
disabled: props.disabled,
|
|
188
46
|
type: props.type || "button",
|
|
189
47
|
...import_lodash.default.omit(props, ["loading", "type"]),
|
|
190
48
|
children: [
|
|
191
|
-
!!props.loading && /* @__PURE__ */ (0,
|
|
192
|
-
/* @__PURE__ */ (0,
|
|
49
|
+
!!props.loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_loading.Loading, {}),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: props.label })
|
|
193
51
|
]
|
|
194
52
|
}
|
|
195
53
|
);
|
|
@@ -1,151 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
// components/types/form/types/button/styles.tsx
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
var Container = styled.button`
|
|
6
|
-
border-radius: 5px;
|
|
7
|
-
font-size: .8rem;
|
|
8
|
-
font-weight: 500;
|
|
9
|
-
transition: ease .3s;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
|
|
14
|
-
background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
|
|
15
|
-
border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
|
|
16
|
-
pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
|
|
17
|
-
cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
|
|
18
|
-
opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
|
|
19
|
-
padding: .4rem 2.5rem;
|
|
20
|
-
transition: ease .3s;
|
|
21
|
-
|
|
22
|
-
span {
|
|
23
|
-
text-align: center;
|
|
24
|
-
cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:disabled {
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
|
|
30
|
-
&::before {
|
|
31
|
-
opacity: .6;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:hover {
|
|
36
|
-
opacity: .9;
|
|
37
|
-
color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
|
|
38
|
-
|
|
39
|
-
&::before {
|
|
40
|
-
background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
// components/types/form/types/button/loading/styles.tsx
|
|
46
|
-
import styled2 from "styled-components";
|
|
47
|
-
var Container2 = styled2.div`
|
|
48
|
-
display: flex;
|
|
49
|
-
justify-content: space-between;
|
|
50
|
-
align-items: center;
|
|
51
|
-
width: 2rem;
|
|
52
|
-
margin-right: .5rem;
|
|
53
|
-
|
|
54
|
-
div {
|
|
55
|
-
width: .5rem;
|
|
56
|
-
height: .5rem;
|
|
57
|
-
border-radius: 1rem;
|
|
58
|
-
background: rgb(255, 255, 255, 1);
|
|
59
|
-
|
|
60
|
-
&:nth-child(1) {
|
|
61
|
-
animation: blinkOne infinite ease 2s;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:nth-child(2) {
|
|
65
|
-
animation: blinkTwo infinite ease 2s;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:nth-child(3) {
|
|
69
|
-
animation: blinkThree infinite ease 2s;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@keyframes blinkOne {
|
|
74
|
-
0% {
|
|
75
|
-
opacity: 0.8;
|
|
76
|
-
}
|
|
77
|
-
20% {
|
|
78
|
-
opacity: 0.2;
|
|
79
|
-
}
|
|
80
|
-
40% {
|
|
81
|
-
opacity: 0.2;
|
|
82
|
-
}
|
|
83
|
-
60% {
|
|
84
|
-
opacity: 0.2;
|
|
85
|
-
}
|
|
86
|
-
80% {
|
|
87
|
-
opacity: 0.2;
|
|
88
|
-
}
|
|
89
|
-
100% {
|
|
90
|
-
opacity: 0.8;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@keyframes blinkTwo {
|
|
95
|
-
0% {
|
|
96
|
-
opacity: 0.2;
|
|
97
|
-
}
|
|
98
|
-
20% {
|
|
99
|
-
opacity: 0.8;
|
|
100
|
-
}
|
|
101
|
-
40% {
|
|
102
|
-
opacity: 0.2;
|
|
103
|
-
}
|
|
104
|
-
60% {
|
|
105
|
-
opacity: 0.2;
|
|
106
|
-
}
|
|
107
|
-
80% {
|
|
108
|
-
opacity: 0.8;
|
|
109
|
-
}
|
|
110
|
-
100% {
|
|
111
|
-
opacity: 0.2;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@keyframes blinkThree {
|
|
116
|
-
0% {
|
|
117
|
-
opacity: 0.2;
|
|
118
|
-
}
|
|
119
|
-
25% {
|
|
120
|
-
opacity: 0.2;
|
|
121
|
-
}
|
|
122
|
-
50% {
|
|
123
|
-
opacity: 0.8;
|
|
124
|
-
}
|
|
125
|
-
75% {
|
|
126
|
-
opacity: 0.2;
|
|
127
|
-
}
|
|
128
|
-
100% {
|
|
129
|
-
opacity: 0.2;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
`;
|
|
133
|
-
|
|
134
|
-
// components/types/form/types/button/loading/index.tsx
|
|
2
|
+
"use client";
|
|
135
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
/* @__PURE__ */ jsx("div", {}),
|
|
139
|
-
/* @__PURE__ */ jsx("div", {}),
|
|
140
|
-
/* @__PURE__ */ jsx("div", {})
|
|
141
|
-
] });
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// components/types/form/types/button/index.tsx
|
|
4
|
+
import { Container } from "./styles";
|
|
5
|
+
import { Loading } from "./loading";
|
|
145
6
|
import _ from "lodash";
|
|
146
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
147
7
|
function Button(props) {
|
|
148
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ jsxs(
|
|
149
9
|
Container,
|
|
150
10
|
{
|
|
151
11
|
loading: String(!!props.loading),
|
|
@@ -153,8 +13,8 @@ function Button(props) {
|
|
|
153
13
|
type: props.type || "button",
|
|
154
14
|
..._.omit(props, ["loading", "type"]),
|
|
155
15
|
children: [
|
|
156
|
-
!!props.loading && /* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
16
|
+
!!props.loading && /* @__PURE__ */ jsx(Loading, {}),
|
|
17
|
+
/* @__PURE__ */ jsx("span", { children: props.label })
|
|
158
18
|
]
|
|
159
19
|
}
|
|
160
20
|
);
|
|
@@ -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,116 +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/button/loading/index.tsx
|
|
32
21
|
var loading_exports = {};
|
|
33
22
|
__export(loading_exports, {
|
|
34
23
|
Loading: () => Loading
|
|
35
24
|
});
|
|
36
25
|
module.exports = __toCommonJS(loading_exports);
|
|
37
|
-
|
|
38
|
-
// components/types/form/types/button/loading/styles.tsx
|
|
39
|
-
var import_styled_components = __toESM(require("styled-components"));
|
|
40
|
-
var Container = import_styled_components.default.div`
|
|
41
|
-
display: flex;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
align-items: center;
|
|
44
|
-
width: 2rem;
|
|
45
|
-
margin-right: .5rem;
|
|
46
|
-
|
|
47
|
-
div {
|
|
48
|
-
width: .5rem;
|
|
49
|
-
height: .5rem;
|
|
50
|
-
border-radius: 1rem;
|
|
51
|
-
background: rgb(255, 255, 255, 1);
|
|
52
|
-
|
|
53
|
-
&:nth-child(1) {
|
|
54
|
-
animation: blinkOne infinite ease 2s;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:nth-child(2) {
|
|
58
|
-
animation: blinkTwo infinite ease 2s;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:nth-child(3) {
|
|
62
|
-
animation: blinkThree infinite ease 2s;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@keyframes blinkOne {
|
|
67
|
-
0% {
|
|
68
|
-
opacity: 0.8;
|
|
69
|
-
}
|
|
70
|
-
20% {
|
|
71
|
-
opacity: 0.2;
|
|
72
|
-
}
|
|
73
|
-
40% {
|
|
74
|
-
opacity: 0.2;
|
|
75
|
-
}
|
|
76
|
-
60% {
|
|
77
|
-
opacity: 0.2;
|
|
78
|
-
}
|
|
79
|
-
80% {
|
|
80
|
-
opacity: 0.2;
|
|
81
|
-
}
|
|
82
|
-
100% {
|
|
83
|
-
opacity: 0.8;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@keyframes blinkTwo {
|
|
88
|
-
0% {
|
|
89
|
-
opacity: 0.2;
|
|
90
|
-
}
|
|
91
|
-
20% {
|
|
92
|
-
opacity: 0.8;
|
|
93
|
-
}
|
|
94
|
-
40% {
|
|
95
|
-
opacity: 0.2;
|
|
96
|
-
}
|
|
97
|
-
60% {
|
|
98
|
-
opacity: 0.2;
|
|
99
|
-
}
|
|
100
|
-
80% {
|
|
101
|
-
opacity: 0.8;
|
|
102
|
-
}
|
|
103
|
-
100% {
|
|
104
|
-
opacity: 0.2;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@keyframes blinkThree {
|
|
109
|
-
0% {
|
|
110
|
-
opacity: 0.2;
|
|
111
|
-
}
|
|
112
|
-
25% {
|
|
113
|
-
opacity: 0.2;
|
|
114
|
-
}
|
|
115
|
-
50% {
|
|
116
|
-
opacity: 0.8;
|
|
117
|
-
}
|
|
118
|
-
75% {
|
|
119
|
-
opacity: 0.2;
|
|
120
|
-
}
|
|
121
|
-
100% {
|
|
122
|
-
opacity: 0.2;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
`;
|
|
126
|
-
|
|
127
|
-
// components/types/form/types/button/loading/index.tsx
|
|
128
26
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
var import_styles = require("./styles");
|
|
129
28
|
function Loading() {
|
|
130
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Container, { children: [
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { children: [
|
|
131
30
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
132
31
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
133
32
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
|
|
@@ -1,96 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
// components/types/form/types/button/loading/styles.tsx
|
|
4
|
-
import styled from "styled-components";
|
|
5
|
-
var Container = styled.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
align-items: center;
|
|
9
|
-
width: 2rem;
|
|
10
|
-
margin-right: .5rem;
|
|
11
|
-
|
|
12
|
-
div {
|
|
13
|
-
width: .5rem;
|
|
14
|
-
height: .5rem;
|
|
15
|
-
border-radius: 1rem;
|
|
16
|
-
background: rgb(255, 255, 255, 1);
|
|
17
|
-
|
|
18
|
-
&:nth-child(1) {
|
|
19
|
-
animation: blinkOne infinite ease 2s;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&:nth-child(2) {
|
|
23
|
-
animation: blinkTwo infinite ease 2s;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:nth-child(3) {
|
|
27
|
-
animation: blinkThree infinite ease 2s;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes blinkOne {
|
|
32
|
-
0% {
|
|
33
|
-
opacity: 0.8;
|
|
34
|
-
}
|
|
35
|
-
20% {
|
|
36
|
-
opacity: 0.2;
|
|
37
|
-
}
|
|
38
|
-
40% {
|
|
39
|
-
opacity: 0.2;
|
|
40
|
-
}
|
|
41
|
-
60% {
|
|
42
|
-
opacity: 0.2;
|
|
43
|
-
}
|
|
44
|
-
80% {
|
|
45
|
-
opacity: 0.2;
|
|
46
|
-
}
|
|
47
|
-
100% {
|
|
48
|
-
opacity: 0.8;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes blinkTwo {
|
|
53
|
-
0% {
|
|
54
|
-
opacity: 0.2;
|
|
55
|
-
}
|
|
56
|
-
20% {
|
|
57
|
-
opacity: 0.8;
|
|
58
|
-
}
|
|
59
|
-
40% {
|
|
60
|
-
opacity: 0.2;
|
|
61
|
-
}
|
|
62
|
-
60% {
|
|
63
|
-
opacity: 0.2;
|
|
64
|
-
}
|
|
65
|
-
80% {
|
|
66
|
-
opacity: 0.8;
|
|
67
|
-
}
|
|
68
|
-
100% {
|
|
69
|
-
opacity: 0.2;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@keyframes blinkThree {
|
|
74
|
-
0% {
|
|
75
|
-
opacity: 0.2;
|
|
76
|
-
}
|
|
77
|
-
25% {
|
|
78
|
-
opacity: 0.2;
|
|
79
|
-
}
|
|
80
|
-
50% {
|
|
81
|
-
opacity: 0.8;
|
|
82
|
-
}
|
|
83
|
-
75% {
|
|
84
|
-
opacity: 0.2;
|
|
85
|
-
}
|
|
86
|
-
100% {
|
|
87
|
-
opacity: 0.2;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
`;
|
|
91
|
-
|
|
92
|
-
// components/types/form/types/button/loading/index.tsx
|
|
2
|
+
"use client";
|
|
93
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Container } from "./styles";
|
|
94
5
|
function Loading() {
|
|
95
6
|
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
96
7
|
/* @__PURE__ */ jsx("div", {}),
|
|
@@ -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/button/loading/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
|
display: flex;
|
|
40
39
|
justify-content: space-between;
|
|
41
40
|
align-items: center;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
// components/types/form/types/button/loading/styles.tsx
|
|
2
|
+
"use client";
|
|
4
3
|
import styled from "styled-components";
|
|
5
|
-
|
|
4
|
+
const Container = styled.div`
|
|
6
5
|
display: flex;
|
|
7
6
|
justify-content: space-between;
|
|
8
7
|
align-items: center;
|
|
@@ -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/button/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.button`
|
|
39
38
|
border-radius: 5px;
|
|
40
39
|
font-size: .8rem;
|
|
41
40
|
font-weight: 500;
|