@gustavo-valsechi/client 1.3.25 → 1.3.27

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.
Files changed (211) hide show
  1. package/dist/components/index.d.mts +10 -0
  2. package/dist/components/index.d.ts +10 -3
  3. package/dist/components/{types/index.mjs → index.js} +405 -379
  4. package/dist/contexts/index.d.mts +20 -0
  5. package/dist/contexts/index.d.ts +20 -4
  6. package/dist/contexts/index.js +525 -0
  7. package/dist/index-BhaGW0O1.d.ts +601 -0
  8. package/dist/index-BxA8LyyD.d.mts +68 -0
  9. package/dist/index-DDi0w5pw.d.mts +601 -0
  10. package/dist/index-DT7VKE7H.d.ts +68 -0
  11. package/dist/index-Da-DtPS-.d.mts +29 -0
  12. package/dist/index-Da-DtPS-.d.ts +29 -0
  13. package/dist/index.d.mts +17 -0
  14. package/dist/index.d.ts +17 -4
  15. package/dist/{components/types/table/index.mjs → index.js} +1476 -1210
  16. package/dist/interfaces/index.d.mts +12 -0
  17. package/dist/interfaces/index.d.ts +12 -2
  18. package/dist/interfaces/index.js +19 -0
  19. package/package.json +6 -8
  20. package/dist/components/styles.d.ts +0 -2
  21. package/dist/components/styles.mjs +0 -21
  22. package/dist/components/types/avatar/index.d.ts +0 -2
  23. package/dist/components/types/avatar/index.mjs +0 -88
  24. package/dist/components/types/avatar/styles.d.ts +0 -1
  25. package/dist/components/types/avatar/styles.mjs +0 -61
  26. package/dist/components/types/badge/index.d.ts +0 -2
  27. package/dist/components/types/badge/index.mjs +0 -324
  28. package/dist/components/types/badge/styles.d.ts +0 -1
  29. package/dist/components/types/badge/styles.mjs +0 -39
  30. package/dist/components/types/block/index.d.ts +0 -2
  31. package/dist/components/types/block/index.mjs +0 -3078
  32. package/dist/components/types/block/styles.d.ts +0 -2
  33. package/dist/components/types/block/styles.mjs +0 -32
  34. package/dist/components/types/chart/index.d.ts +0 -2
  35. package/dist/components/types/chart/index.mjs +0 -322
  36. package/dist/components/types/chart/styles.d.ts +0 -1
  37. package/dist/components/types/chart/styles.mjs +0 -10
  38. package/dist/components/types/credit-card/assets/index.d.ts +0 -4
  39. package/dist/components/types/credit-card/assets/index.mjs +0 -23
  40. package/dist/components/types/credit-card/card/index.d.ts +0 -2
  41. package/dist/components/types/credit-card/card/index.mjs +0 -732
  42. package/dist/components/types/credit-card/card/styles.d.ts +0 -1
  43. package/dist/components/types/credit-card/card/styles.mjs +0 -138
  44. package/dist/components/types/credit-card/functions/index.d.ts +0 -2
  45. package/dist/components/types/credit-card/functions/index.mjs +0 -61
  46. package/dist/components/types/credit-card/functions/styles.d.ts +0 -1
  47. package/dist/components/types/credit-card/functions/styles.mjs +0 -43
  48. package/dist/components/types/credit-card/index.d.ts +0 -2
  49. package/dist/components/types/credit-card/index.mjs +0 -853
  50. package/dist/components/types/credit-card/styles.d.ts +0 -1
  51. package/dist/components/types/credit-card/styles.mjs +0 -40
  52. package/dist/components/types/credit-card/tools/index.d.ts +0 -6
  53. package/dist/components/types/credit-card/tools/index.mjs +0 -566
  54. package/dist/components/types/form/index.d.ts +0 -3
  55. package/dist/components/types/form/index.mjs +0 -711
  56. package/dist/components/types/form/styles.d.ts +0 -1
  57. package/dist/components/types/form/styles.mjs +0 -21
  58. package/dist/components/types/form/types/button/index.d.ts +0 -2
  59. package/dist/components/types/form/types/button/index.mjs +0 -165
  60. package/dist/components/types/form/types/button/loading/index.d.ts +0 -1
  61. package/dist/components/types/form/types/button/loading/index.mjs +0 -104
  62. package/dist/components/types/form/types/button/loading/styles.d.ts +0 -1
  63. package/dist/components/types/form/types/button/loading/styles.mjs +0 -94
  64. package/dist/components/types/form/types/button/styles.d.ts +0 -1
  65. package/dist/components/types/form/types/button/styles.mjs +0 -47
  66. package/dist/components/types/form/types/datetime/index.d.ts +0 -2
  67. package/dist/components/types/form/types/datetime/index.mjs +0 -93
  68. package/dist/components/types/form/types/datetime/styles.d.ts +0 -1
  69. package/dist/components/types/form/types/datetime/styles.mjs +0 -46
  70. package/dist/components/types/form/types/file/index.d.ts +0 -2
  71. package/dist/components/types/form/types/file/index.mjs +0 -91
  72. package/dist/components/types/form/types/file/styles.d.ts +0 -1
  73. package/dist/components/types/form/types/file/styles.mjs +0 -33
  74. package/dist/components/types/form/types/index.d.ts +0 -7
  75. package/dist/components/types/form/types/index.mjs +0 -603
  76. package/dist/components/types/form/types/input/index.d.ts +0 -2
  77. package/dist/components/types/form/types/input/index.mjs +0 -113
  78. package/dist/components/types/form/types/input/styles.d.ts +0 -1
  79. package/dist/components/types/form/types/input/styles.mjs +0 -52
  80. package/dist/components/types/form/types/label/index.d.ts +0 -2
  81. package/dist/components/types/form/types/label/index.mjs +0 -19
  82. package/dist/components/types/form/types/label/styles.d.ts +0 -1
  83. package/dist/components/types/form/types/label/styles.mjs +0 -13
  84. package/dist/components/types/form/types/select/index.d.ts +0 -2
  85. package/dist/components/types/form/types/select/index.mjs +0 -125
  86. package/dist/components/types/form/types/select/styles.d.ts +0 -1
  87. package/dist/components/types/form/types/select/styles.mjs +0 -58
  88. package/dist/components/types/form/types/textarea/index.d.ts +0 -2
  89. package/dist/components/types/form/types/textarea/index.mjs +0 -92
  90. package/dist/components/types/form/types/textarea/styles.d.ts +0 -1
  91. package/dist/components/types/form/types/textarea/styles.mjs +0 -45
  92. package/dist/components/types/index.d.ts +0 -11
  93. package/dist/components/types/loading/app/index.d.ts +0 -2
  94. package/dist/components/types/loading/app/index.mjs +0 -128
  95. package/dist/components/types/loading/app/styles.d.ts +0 -1
  96. package/dist/components/types/loading/app/styles.mjs +0 -93
  97. package/dist/components/types/loading/bar/index.d.ts +0 -2
  98. package/dist/components/types/loading/bar/index.mjs +0 -33
  99. package/dist/components/types/loading/bar/styles.d.ts +0 -1
  100. package/dist/components/types/loading/bar/styles.mjs +0 -27
  101. package/dist/components/types/loading/index.d.ts +0 -2
  102. package/dist/components/types/loading/index.mjs +0 -156
  103. package/dist/components/types/logo/index.d.ts +0 -2
  104. package/dist/components/types/logo/index.mjs +0 -34
  105. package/dist/components/types/logo/styles.d.ts +0 -1
  106. package/dist/components/types/logo/styles.mjs +0 -25
  107. package/dist/components/types/lottie/animations/index.d.ts +0 -293
  108. package/dist/components/types/lottie/animations/index.mjs +0 -10
  109. package/dist/components/types/lottie/index.d.ts +0 -2
  110. package/dist/components/types/lottie/index.mjs +0 -69
  111. package/dist/components/types/lottie/styles.d.ts +0 -1
  112. package/dist/components/types/lottie/styles.mjs +0 -28
  113. package/dist/components/types/modal/index.d.ts +0 -2
  114. package/dist/components/types/modal/index.mjs +0 -2324
  115. package/dist/components/types/modal/styles.d.ts +0 -1
  116. package/dist/components/types/modal/styles.mjs +0 -135
  117. package/dist/components/types/table/index.d.ts +0 -3
  118. package/dist/components/types/table/modal/actions.d.ts +0 -10
  119. package/dist/components/types/table/modal/actions.mjs +0 -87
  120. package/dist/components/types/table/modal/index.d.ts +0 -2
  121. package/dist/components/types/table/modal/index.mjs +0 -3076
  122. package/dist/components/types/table/modal/styles.d.ts +0 -1
  123. package/dist/components/types/table/modal/styles.mjs +0 -58
  124. package/dist/components/types/table/paginate/index.d.ts +0 -2
  125. package/dist/components/types/table/paginate/index.mjs +0 -96
  126. package/dist/components/types/table/paginate/styles.d.ts +0 -1
  127. package/dist/components/types/table/paginate/styles.mjs +0 -42
  128. package/dist/components/types/table/styles.d.ts +0 -5
  129. package/dist/components/types/table/styles.mjs +0 -268
  130. package/dist/contexts/icon/assets/brands/index.d.ts +0 -2
  131. package/dist/contexts/icon/assets/brands/index.mjs +0 -19
  132. package/dist/contexts/icon/assets/index.d.ts +0 -6
  133. package/dist/contexts/icon/assets/index.mjs +0 -44
  134. package/dist/contexts/icon/assets/regular/index.d.ts +0 -2
  135. package/dist/contexts/icon/assets/regular/index.mjs +0 -19
  136. package/dist/contexts/icon/assets/solid/index.d.ts +0 -2
  137. package/dist/contexts/icon/assets/solid/index.mjs +0 -19
  138. package/dist/contexts/icon/index.d.ts +0 -4
  139. package/dist/contexts/icon/index.mjs +0 -281
  140. package/dist/contexts/icon/styles.d.ts +0 -1
  141. package/dist/contexts/icon/styles.mjs +0 -10
  142. package/dist/contexts/modal/index.d.ts +0 -4
  143. package/dist/contexts/modal/index.mjs +0 -66
  144. package/dist/contexts/modal/styles.d.ts +0 -1
  145. package/dist/contexts/modal/styles.mjs +0 -10
  146. package/dist/contexts/theme/content.d.ts +0 -3
  147. package/dist/contexts/theme/content.mjs +0 -81
  148. package/dist/contexts/theme/index.d.ts +0 -4
  149. package/dist/contexts/theme/index.mjs +0 -201
  150. package/dist/contexts/theme/styles.d.ts +0 -1
  151. package/dist/contexts/theme/styles.mjs +0 -84
  152. package/dist/contexts/tooltip/index.d.ts +0 -6
  153. package/dist/contexts/tooltip/index.mjs +0 -117
  154. package/dist/contexts/tooltip/styles.d.ts +0 -1
  155. package/dist/contexts/tooltip/styles.mjs +0 -46
  156. package/dist/interfaces/components/avatar/index.d.ts +0 -6
  157. package/dist/interfaces/components/avatar/index.mjs +0 -1
  158. package/dist/interfaces/components/badge/index.d.ts +0 -3
  159. package/dist/interfaces/components/badge/index.mjs +0 -1
  160. package/dist/interfaces/components/block/index.d.ts +0 -16
  161. package/dist/interfaces/components/block/index.mjs +0 -1
  162. package/dist/interfaces/components/chart/index.d.ts +0 -9
  163. package/dist/interfaces/components/chart/index.mjs +0 -1
  164. package/dist/interfaces/components/credit-card/index.d.ts +0 -16
  165. package/dist/interfaces/components/credit-card/index.mjs +0 -1
  166. package/dist/interfaces/components/form/button/index.d.ts +0 -7
  167. package/dist/interfaces/components/form/button/index.mjs +0 -1
  168. package/dist/interfaces/components/form/datetime/index.d.ts +0 -15
  169. package/dist/interfaces/components/form/datetime/index.mjs +0 -1
  170. package/dist/interfaces/components/form/file/index.d.ts +0 -14
  171. package/dist/interfaces/components/form/file/index.mjs +0 -1
  172. package/dist/interfaces/components/form/index.d.ts +0 -16
  173. package/dist/interfaces/components/form/index.mjs +0 -1
  174. package/dist/interfaces/components/form/input/index.d.ts +0 -17
  175. package/dist/interfaces/components/form/input/index.mjs +0 -1
  176. package/dist/interfaces/components/form/label/index.d.ts +0 -5
  177. package/dist/interfaces/components/form/label/index.mjs +0 -1
  178. package/dist/interfaces/components/form/select/index.d.ts +0 -14
  179. package/dist/interfaces/components/form/select/index.mjs +0 -1
  180. package/dist/interfaces/components/form/textarea/index.d.ts +0 -16
  181. package/dist/interfaces/components/form/textarea/index.mjs +0 -1
  182. package/dist/interfaces/components/index.d.ts +0 -26
  183. package/dist/interfaces/components/index.mjs +0 -1
  184. package/dist/interfaces/components/loading/app/index.d.ts +0 -3
  185. package/dist/interfaces/components/loading/app/index.mjs +0 -1
  186. package/dist/interfaces/components/loading/bar/index.d.ts +0 -7
  187. package/dist/interfaces/components/loading/bar/index.mjs +0 -1
  188. package/dist/interfaces/components/loading/index.d.ts +0 -2
  189. package/dist/interfaces/components/loading/index.mjs +0 -1
  190. package/dist/interfaces/components/logo/index.d.ts +0 -6
  191. package/dist/interfaces/components/logo/index.mjs +0 -1
  192. package/dist/interfaces/components/lottie/index.d.ts +0 -12
  193. package/dist/interfaces/components/lottie/index.mjs +0 -1
  194. package/dist/interfaces/components/modal/index.d.ts +0 -16
  195. package/dist/interfaces/components/modal/index.mjs +0 -1
  196. package/dist/interfaces/components/table/index.d.ts +0 -46
  197. package/dist/interfaces/components/table/index.mjs +0 -1
  198. package/dist/interfaces/components/table/paginate/index.d.ts +0 -7
  199. package/dist/interfaces/components/table/paginate/index.mjs +0 -1
  200. package/dist/interfaces/contexts/icon/index.d.ts +0 -3
  201. package/dist/interfaces/contexts/icon/index.mjs +0 -1
  202. package/dist/interfaces/contexts/index.d.ts +0 -8
  203. package/dist/interfaces/contexts/index.mjs +0 -1
  204. package/dist/interfaces/contexts/modal/index.d.ts +0 -16
  205. package/dist/interfaces/contexts/modal/index.mjs +0 -2
  206. package/dist/interfaces/contexts/theme/index.d.ts +0 -42
  207. package/dist/interfaces/contexts/theme/index.mjs +0 -1
  208. package/dist/interfaces/contexts/tooltip/index.d.ts +0 -3
  209. package/dist/interfaces/contexts/tooltip/index.mjs +0 -1
  210. package/dist/styled.d.ts +0 -6
  211. package/dist/tsup.config.d.ts +0 -2
@@ -1 +0,0 @@
1
- export declare const Container: any;
@@ -1,21 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/styles.tsx
5
- import styled from "styled-components";
6
- var Container = styled.form`
7
- width: 100%;
8
-
9
- .form-buttons {
10
- width: 100%;
11
- padding-top: 1rem;
12
-
13
- button {
14
- width: 100%;
15
- margin-top: 1rem;
16
- }
17
- }
18
- `;
19
- export {
20
- Container
21
- };
@@ -1,2 +0,0 @@
1
- import { IButton } from "@interfaces";
2
- export declare function Button(props: IButton): import("react/jsx-runtime").JSX.Element;
@@ -1,165 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/button/styles.tsx
5
- import styled from "styled-components";
6
- var Container = styled.button`
7
- border-radius: 5px;
8
- font-size: .8rem;
9
- font-weight: 500;
10
- transition: ease .3s;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
15
- background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
16
- border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
17
- pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
18
- cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
19
- opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
20
- padding: .4rem 2.5rem;
21
- transition: ease .3s;
22
-
23
- span {
24
- text-align: center;
25
- cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
26
- }
27
-
28
- &:disabled {
29
- pointer-events: none;
30
-
31
- &::before {
32
- opacity: .6;
33
- }
34
- }
35
-
36
- &:hover {
37
- opacity: .9;
38
- color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
39
-
40
- &::before {
41
- background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
42
- }
43
- }
44
- `;
45
-
46
- // components/types/form/types/button/loading/styles.tsx
47
- import styled2 from "styled-components";
48
- var Container2 = styled2.div`
49
- display: flex;
50
- justify-content: space-between;
51
- align-items: center;
52
- width: 2rem;
53
- margin-right: .5rem;
54
-
55
- div {
56
- width: .5rem;
57
- height: .5rem;
58
- border-radius: 1rem;
59
- background: rgb(255, 255, 255, 1);
60
-
61
- &:nth-child(1) {
62
- animation: blinkOne infinite ease 2s;
63
- }
64
-
65
- &:nth-child(2) {
66
- animation: blinkTwo infinite ease 2s;
67
- }
68
-
69
- &:nth-child(3) {
70
- animation: blinkThree infinite ease 2s;
71
- }
72
- }
73
-
74
- @keyframes blinkOne {
75
- 0% {
76
- opacity: 0.8;
77
- }
78
- 20% {
79
- opacity: 0.2;
80
- }
81
- 40% {
82
- opacity: 0.2;
83
- }
84
- 60% {
85
- opacity: 0.2;
86
- }
87
- 80% {
88
- opacity: 0.2;
89
- }
90
- 100% {
91
- opacity: 0.8;
92
- }
93
- }
94
-
95
- @keyframes blinkTwo {
96
- 0% {
97
- opacity: 0.2;
98
- }
99
- 20% {
100
- opacity: 0.8;
101
- }
102
- 40% {
103
- opacity: 0.2;
104
- }
105
- 60% {
106
- opacity: 0.2;
107
- }
108
- 80% {
109
- opacity: 0.8;
110
- }
111
- 100% {
112
- opacity: 0.2;
113
- }
114
- }
115
-
116
- @keyframes blinkThree {
117
- 0% {
118
- opacity: 0.2;
119
- }
120
- 25% {
121
- opacity: 0.2;
122
- }
123
- 50% {
124
- opacity: 0.8;
125
- }
126
- 75% {
127
- opacity: 0.2;
128
- }
129
- 100% {
130
- opacity: 0.2;
131
- }
132
- }
133
- `;
134
-
135
- // components/types/form/types/button/loading/index.tsx
136
- import { jsx, jsxs } from "react/jsx-runtime";
137
- function Loading() {
138
- return /* @__PURE__ */ jsxs(Container2, { children: [
139
- /* @__PURE__ */ jsx("div", {}),
140
- /* @__PURE__ */ jsx("div", {}),
141
- /* @__PURE__ */ jsx("div", {})
142
- ] });
143
- }
144
-
145
- // components/types/form/types/button/index.tsx
146
- import _ from "lodash";
147
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
148
- function Button(props) {
149
- return /* @__PURE__ */ jsxs2(
150
- Container,
151
- {
152
- loading: String(!!props.loading),
153
- disabled: props.disabled,
154
- type: props.type || "button",
155
- ..._.omit(props, ["loading", "type"]),
156
- children: [
157
- !!props.loading && /* @__PURE__ */ jsx2(Loading, {}),
158
- /* @__PURE__ */ jsx2("span", { children: props.label })
159
- ]
160
- }
161
- );
162
- }
163
- export {
164
- Button
165
- };
@@ -1 +0,0 @@
1
- export declare function Loading(): import("react/jsx-runtime").JSX.Element;
@@ -1,104 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/button/loading/styles.tsx
5
- import styled from "styled-components";
6
- var Container = styled.div`
7
- display: flex;
8
- justify-content: space-between;
9
- align-items: center;
10
- width: 2rem;
11
- margin-right: .5rem;
12
-
13
- div {
14
- width: .5rem;
15
- height: .5rem;
16
- border-radius: 1rem;
17
- background: rgb(255, 255, 255, 1);
18
-
19
- &:nth-child(1) {
20
- animation: blinkOne infinite ease 2s;
21
- }
22
-
23
- &:nth-child(2) {
24
- animation: blinkTwo infinite ease 2s;
25
- }
26
-
27
- &:nth-child(3) {
28
- animation: blinkThree infinite ease 2s;
29
- }
30
- }
31
-
32
- @keyframes blinkOne {
33
- 0% {
34
- opacity: 0.8;
35
- }
36
- 20% {
37
- opacity: 0.2;
38
- }
39
- 40% {
40
- opacity: 0.2;
41
- }
42
- 60% {
43
- opacity: 0.2;
44
- }
45
- 80% {
46
- opacity: 0.2;
47
- }
48
- 100% {
49
- opacity: 0.8;
50
- }
51
- }
52
-
53
- @keyframes blinkTwo {
54
- 0% {
55
- opacity: 0.2;
56
- }
57
- 20% {
58
- opacity: 0.8;
59
- }
60
- 40% {
61
- opacity: 0.2;
62
- }
63
- 60% {
64
- opacity: 0.2;
65
- }
66
- 80% {
67
- opacity: 0.8;
68
- }
69
- 100% {
70
- opacity: 0.2;
71
- }
72
- }
73
-
74
- @keyframes blinkThree {
75
- 0% {
76
- opacity: 0.2;
77
- }
78
- 25% {
79
- opacity: 0.2;
80
- }
81
- 50% {
82
- opacity: 0.8;
83
- }
84
- 75% {
85
- opacity: 0.2;
86
- }
87
- 100% {
88
- opacity: 0.2;
89
- }
90
- }
91
- `;
92
-
93
- // components/types/form/types/button/loading/index.tsx
94
- import { jsx, jsxs } from "react/jsx-runtime";
95
- function Loading() {
96
- return /* @__PURE__ */ jsxs(Container, { children: [
97
- /* @__PURE__ */ jsx("div", {}),
98
- /* @__PURE__ */ jsx("div", {}),
99
- /* @__PURE__ */ jsx("div", {})
100
- ] });
101
- }
102
- export {
103
- Loading
104
- };
@@ -1 +0,0 @@
1
- export declare const Container: any;
@@ -1,94 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/button/loading/styles.tsx
5
- import styled from "styled-components";
6
- var Container = styled.div`
7
- display: flex;
8
- justify-content: space-between;
9
- align-items: center;
10
- width: 2rem;
11
- margin-right: .5rem;
12
-
13
- div {
14
- width: .5rem;
15
- height: .5rem;
16
- border-radius: 1rem;
17
- background: rgb(255, 255, 255, 1);
18
-
19
- &:nth-child(1) {
20
- animation: blinkOne infinite ease 2s;
21
- }
22
-
23
- &:nth-child(2) {
24
- animation: blinkTwo infinite ease 2s;
25
- }
26
-
27
- &:nth-child(3) {
28
- animation: blinkThree infinite ease 2s;
29
- }
30
- }
31
-
32
- @keyframes blinkOne {
33
- 0% {
34
- opacity: 0.8;
35
- }
36
- 20% {
37
- opacity: 0.2;
38
- }
39
- 40% {
40
- opacity: 0.2;
41
- }
42
- 60% {
43
- opacity: 0.2;
44
- }
45
- 80% {
46
- opacity: 0.2;
47
- }
48
- 100% {
49
- opacity: 0.8;
50
- }
51
- }
52
-
53
- @keyframes blinkTwo {
54
- 0% {
55
- opacity: 0.2;
56
- }
57
- 20% {
58
- opacity: 0.8;
59
- }
60
- 40% {
61
- opacity: 0.2;
62
- }
63
- 60% {
64
- opacity: 0.2;
65
- }
66
- 80% {
67
- opacity: 0.8;
68
- }
69
- 100% {
70
- opacity: 0.2;
71
- }
72
- }
73
-
74
- @keyframes blinkThree {
75
- 0% {
76
- opacity: 0.2;
77
- }
78
- 25% {
79
- opacity: 0.2;
80
- }
81
- 50% {
82
- opacity: 0.8;
83
- }
84
- 75% {
85
- opacity: 0.2;
86
- }
87
- 100% {
88
- opacity: 0.2;
89
- }
90
- }
91
- `;
92
- export {
93
- Container
94
- };
@@ -1 +0,0 @@
1
- export declare const Container: any;
@@ -1,47 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/button/styles.tsx
5
- import styled from "styled-components";
6
- var Container = styled.button`
7
- border-radius: 5px;
8
- font-size: .8rem;
9
- font-weight: 500;
10
- transition: ease .3s;
11
- display: flex;
12
- align-items: center;
13
- justify-content: center;
14
- color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
15
- background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
16
- border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
17
- pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
18
- cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
19
- opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
20
- padding: .4rem 2.5rem;
21
- transition: ease .3s;
22
-
23
- span {
24
- text-align: center;
25
- cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
26
- }
27
-
28
- &:disabled {
29
- pointer-events: none;
30
-
31
- &::before {
32
- opacity: .6;
33
- }
34
- }
35
-
36
- &:hover {
37
- opacity: .9;
38
- color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
39
-
40
- &::before {
41
- background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
42
- }
43
- }
44
- `;
45
- export {
46
- Container
47
- };
@@ -1,2 +0,0 @@
1
- import { IInputDateTime } from "@interfaces";
2
- export declare function InputDateTime(props: IInputDateTime): import("react/jsx-runtime").JSX.Element;
@@ -1,93 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/datetime/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
- input {
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
- color-scheme: ${(props) => props.theme || "light"};
26
-
27
- &:disabled {
28
- background-color: ${({ theme }) => theme.t2};
29
- color: ${({ theme }) => theme.t6};
30
- opacity: .7;
31
- }
32
-
33
- &:focus-visible {
34
- outline: none;
35
- }
36
- }
37
- }
38
-
39
- .iz-input-error {
40
- color: ${({ theme }) => theme.negative};
41
- font-size: .7rem;
42
- }
43
- `;
44
-
45
- // components/types/form/types/label/styles.tsx
46
- import styled2 from "styled-components";
47
- var Container2 = styled2.label`
48
- font-size: .8rem;
49
- font-weight: 500;
50
- color: ${({ theme }) => theme.t6};
51
- `;
52
-
53
- // components/types/form/types/label/index.tsx
54
- import { jsx } from "react/jsx-runtime";
55
- function InputLabel(props) {
56
- return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
57
- }
58
-
59
- // components/types/form/types/datetime/index.tsx
60
- import _ from "lodash";
61
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
62
- function InputDateTime(props) {
63
- const register = (props.register || ((name) => ({})))(props.name || "");
64
- const onChange = (event) => {
65
- const value = event.target.value || "";
66
- event.target.value = props.mask ? props.mask(value) : value;
67
- if (register.onChange) register.onChange(event);
68
- if (props.onChange) props.onChange(event);
69
- };
70
- return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, children: [
71
- !!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
72
- props.label,
73
- props.required ? "*" : ""
74
- ] }),
75
- /* @__PURE__ */ jsx2("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx2(
76
- "input",
77
- {
78
- ..._.omit(props, ["className", "onChange", "mask", "type", "required", "register"]),
79
- type: "datetime-local",
80
- onFocus: () => {
81
- if (props.onFocus) props.onFocus(props.name);
82
- },
83
- maxLength: props.maxLength || 255,
84
- ...register,
85
- onChange
86
- }
87
- ) }),
88
- !!props.error && /* @__PURE__ */ jsx2("div", { className: "iz-input-error", children: props.error })
89
- ] });
90
- }
91
- export {
92
- InputDateTime
93
- };
@@ -1 +0,0 @@
1
- export declare const Container: any;
@@ -1,46 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/datetime/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
- input {
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
- color-scheme: ${(props) => props.theme || "light"};
26
-
27
- &:disabled {
28
- background-color: ${({ theme }) => theme.t2};
29
- color: ${({ theme }) => theme.t6};
30
- opacity: .7;
31
- }
32
-
33
- &:focus-visible {
34
- outline: none;
35
- }
36
- }
37
- }
38
-
39
- .iz-input-error {
40
- color: ${({ theme }) => theme.negative};
41
- font-size: .7rem;
42
- }
43
- `;
44
- export {
45
- Container
46
- };
@@ -1,2 +0,0 @@
1
- import { IInputFile } from "@interfaces";
2
- export declare function InputFile(props: IInputFile): import("react/jsx-runtime").JSX.Element;
@@ -1,91 +0,0 @@
1
- "use client";
2
- "use client";
3
-
4
- // components/types/form/types/file/index.tsx
5
- import { useRef } from "react";
6
-
7
- // components/types/form/types/file/styles.tsx
8
- import styled from "styled-components";
9
- var Container = styled.div`
10
- width: 100%;
11
- padding-top: .3rem;
12
-
13
- .iz-image-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: .5rem 1rem;
21
- width: 100%;
22
- font-size: .8rem;
23
- background: ${(props) => props.disabled ? "${({ theme }) => theme.t2}" : "${({ theme }) => theme.primary}"};
24
- opacity: ${(props) => props.disabled ? ".7" : "1"};
25
- color: ${({ theme }) => theme.t6};
26
- cursor: pointer;
27
- }
28
-
29
- .iz-input-error {
30
- color: ${({ theme }) => theme.negative};
31
- font-size: .7rem;
32
- }
33
- `;
34
-
35
- // components/types/form/types/label/styles.tsx
36
- import styled2 from "styled-components";
37
- var Container2 = styled2.label`
38
- font-size: .8rem;
39
- font-weight: 500;
40
- color: ${({ theme }) => theme.t6};
41
- `;
42
-
43
- // components/types/form/types/label/index.tsx
44
- import { jsx } from "react/jsx-runtime";
45
- function InputLabel(props) {
46
- return /* @__PURE__ */ jsx(Container2, { className: props.className, children: props.children });
47
- }
48
-
49
- // components/types/form/types/file/index.tsx
50
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
51
- function InputFile(props) {
52
- var _a;
53
- const inputRef = useRef({});
54
- const register = (props.register || ((name) => ({})))(props.name || "");
55
- const readImage = (data) => {
56
- if (props.onPreview) props.onPreview(URL.createObjectURL(data));
57
- if (props.onChange) props.onChange(data);
58
- };
59
- return /* @__PURE__ */ jsxs(Container, { className: props.className, error: props.error, disabled: props.disabled, children: [
60
- /* @__PURE__ */ jsx2(
61
- "input",
62
- {
63
- hidden: true,
64
- type: "file",
65
- id: "file",
66
- accept: "image/*",
67
- ref: inputRef,
68
- disabled: props.disabled,
69
- name: props.name,
70
- onFocus: () => {
71
- if (props.onFocus) props.onFocus(props.name);
72
- },
73
- ...register,
74
- onChange: (e) => {
75
- var _a2;
76
- register.onChange(e);
77
- readImage((_a2 = e.target.files) == null ? void 0 : _a2[0]);
78
- }
79
- }
80
- ),
81
- !!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
82
- props.label,
83
- props.required ? "*" : ""
84
- ] }),
85
- /* @__PURE__ */ jsx2("div", { className: "iz-image-content", onClick: () => inputRef.current.click(), children: ((_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.value) || "selecione uma imagem" }),
86
- !!props.error && /* @__PURE__ */ jsx2("div", { className: "iz-input-error", children: props.error })
87
- ] });
88
- }
89
- export {
90
- InputFile
91
- };
@@ -1 +0,0 @@
1
- export declare const Container: any;