@gustavo-valsechi/client 1.3.30 → 1.3.32

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 (201) hide show
  1. package/dist/components/index.js +3070 -13
  2. package/dist/components/index.mjs +3082 -11
  3. package/dist/contexts/index.js +504 -9
  4. package/dist/contexts/index.mjs +486 -4
  5. package/dist/index.js +3325 -8
  6. package/dist/index.mjs +3312 -4
  7. package/dist/interfaces/index.js +2 -8
  8. package/dist/interfaces/index.mjs +0 -2
  9. package/package.json +7 -3
  10. package/dist/components/styles.js +0 -54
  11. package/dist/components/styles.mjs +0 -19
  12. package/dist/components/types/avatar/index.js +0 -63
  13. package/dist/components/types/avatar/index.mjs +0 -29
  14. package/dist/components/types/avatar/styles.js +0 -93
  15. package/dist/components/types/avatar/styles.mjs +0 -59
  16. package/dist/components/types/badge/index.js +0 -54
  17. package/dist/components/types/badge/index.mjs +0 -20
  18. package/dist/components/types/badge/styles.js +0 -71
  19. package/dist/components/types/badge/styles.mjs +0 -37
  20. package/dist/components/types/block/index.js +0 -44
  21. package/dist/components/types/block/index.mjs +0 -20
  22. package/dist/components/types/block/styles.js +0 -65
  23. package/dist/components/types/block/styles.mjs +0 -30
  24. package/dist/components/types/chart/index.js +0 -80
  25. package/dist/components/types/chart/index.mjs +0 -46
  26. package/dist/components/types/chart/styles.js +0 -42
  27. package/dist/components/types/chart/styles.mjs +0 -8
  28. package/dist/components/types/credit-card/assets/index.js +0 -41
  29. package/dist/components/types/credit-card/assets/index.mjs +0 -21
  30. package/dist/components/types/credit-card/card/index.js +0 -67
  31. package/dist/components/types/credit-card/card/index.mjs +0 -37
  32. package/dist/components/types/credit-card/card/styles.js +0 -170
  33. package/dist/components/types/credit-card/card/styles.mjs +0 -136
  34. package/dist/components/types/credit-card/functions/index.js +0 -52
  35. package/dist/components/types/credit-card/functions/index.mjs +0 -22
  36. package/dist/components/types/credit-card/functions/styles.js +0 -75
  37. package/dist/components/types/credit-card/functions/styles.mjs +0 -41
  38. package/dist/components/types/credit-card/index.js +0 -70
  39. package/dist/components/types/credit-card/index.mjs +0 -36
  40. package/dist/components/types/credit-card/styles.js +0 -72
  41. package/dist/components/types/credit-card/styles.mjs +0 -38
  42. package/dist/components/types/credit-card/tools/index.js +0 -58
  43. package/dist/components/types/credit-card/tools/index.mjs +0 -23
  44. package/dist/components/types/form/index.js +0 -111
  45. package/dist/components/types/form/index.mjs +0 -75
  46. package/dist/components/types/form/styles.js +0 -53
  47. package/dist/components/types/form/styles.mjs +0 -19
  48. package/dist/components/types/form/types/button/index.js +0 -58
  49. package/dist/components/types/form/types/button/index.mjs +0 -24
  50. package/dist/components/types/form/types/button/loading/index.js +0 -38
  51. package/dist/components/types/form/types/button/loading/index.mjs +0 -14
  52. package/dist/components/types/form/types/button/loading/styles.js +0 -126
  53. package/dist/components/types/form/types/button/loading/styles.mjs +0 -92
  54. package/dist/components/types/form/types/button/styles.js +0 -79
  55. package/dist/components/types/form/types/button/styles.mjs +0 -45
  56. package/dist/components/types/form/types/datetime/index.js +0 -72
  57. package/dist/components/types/form/types/datetime/index.mjs +0 -38
  58. package/dist/components/types/form/types/datetime/styles.js +0 -78
  59. package/dist/components/types/form/types/datetime/styles.mjs +0 -44
  60. package/dist/components/types/form/types/file/index.js +0 -71
  61. package/dist/components/types/form/types/file/index.mjs +0 -47
  62. package/dist/components/types/form/types/file/styles.js +0 -65
  63. package/dist/components/types/form/types/file/styles.mjs +0 -31
  64. package/dist/components/types/form/types/index.js +0 -35
  65. package/dist/components/types/form/types/index.mjs +0 -8
  66. package/dist/components/types/form/types/input/index.js +0 -84
  67. package/dist/components/types/form/types/input/index.mjs +0 -50
  68. package/dist/components/types/form/types/input/styles.js +0 -84
  69. package/dist/components/types/form/types/input/styles.mjs +0 -50
  70. package/dist/components/types/form/types/label/index.js +0 -34
  71. package/dist/components/types/form/types/label/index.mjs +0 -10
  72. package/dist/components/types/form/types/label/styles.js +0 -45
  73. package/dist/components/types/form/types/label/styles.mjs +0 -11
  74. package/dist/components/types/form/types/select/index.js +0 -90
  75. package/dist/components/types/form/types/select/index.mjs +0 -56
  76. package/dist/components/types/form/types/select/styles.js +0 -90
  77. package/dist/components/types/form/types/select/styles.mjs +0 -56
  78. package/dist/components/types/form/types/textarea/index.js +0 -72
  79. package/dist/components/types/form/types/textarea/index.mjs +0 -38
  80. package/dist/components/types/form/types/textarea/styles.js +0 -77
  81. package/dist/components/types/form/types/textarea/styles.mjs +0 -43
  82. package/dist/components/types/index.js +0 -43
  83. package/dist/components/types/index.mjs +0 -12
  84. package/dist/components/types/loading/app/index.js +0 -35
  85. package/dist/components/types/loading/app/index.mjs +0 -11
  86. package/dist/components/types/loading/app/styles.js +0 -125
  87. package/dist/components/types/loading/app/styles.mjs +0 -91
  88. package/dist/components/types/loading/bar/index.js +0 -34
  89. package/dist/components/types/loading/bar/index.mjs +0 -10
  90. package/dist/components/types/loading/bar/styles.js +0 -59
  91. package/dist/components/types/loading/bar/styles.mjs +0 -25
  92. package/dist/components/types/loading/index.js +0 -25
  93. package/dist/components/types/loading/index.mjs +0 -3
  94. package/dist/components/types/logo/index.js +0 -37
  95. package/dist/components/types/logo/index.mjs +0 -13
  96. package/dist/components/types/logo/styles.js +0 -57
  97. package/dist/components/types/logo/styles.mjs +0 -23
  98. package/dist/components/types/lottie/animations/index.js +0 -36
  99. package/dist/components/types/lottie/animations/index.mjs +0 -6
  100. package/dist/components/types/lottie/index.js +0 -72
  101. package/dist/components/types/lottie/index.mjs +0 -38
  102. package/dist/components/types/lottie/styles.js +0 -60
  103. package/dist/components/types/lottie/styles.mjs +0 -26
  104. package/dist/components/types/modal/index.js +0 -66
  105. package/dist/components/types/modal/index.mjs +0 -32
  106. package/dist/components/types/modal/styles.js +0 -167
  107. package/dist/components/types/modal/styles.mjs +0 -133
  108. package/dist/components/types/table/index.js +0 -171
  109. package/dist/components/types/table/index.mjs +0 -135
  110. package/dist/components/types/table/modal/actions.js +0 -30
  111. package/dist/components/types/table/modal/actions.mjs +0 -10
  112. package/dist/components/types/table/modal/index.js +0 -91
  113. package/dist/components/types/table/modal/index.mjs +0 -61
  114. package/dist/components/types/table/modal/styles.js +0 -90
  115. package/dist/components/types/table/modal/styles.mjs +0 -56
  116. package/dist/components/types/table/paginate/index.js +0 -92
  117. package/dist/components/types/table/paginate/index.mjs +0 -58
  118. package/dist/components/types/table/paginate/styles.js +0 -74
  119. package/dist/components/types/table/paginate/styles.mjs +0 -40
  120. package/dist/components/types/table/styles.js +0 -300
  121. package/dist/components/types/table/styles.mjs +0 -266
  122. package/dist/contexts/icon/assets/brands/index.js +0 -31
  123. package/dist/contexts/icon/assets/brands/index.mjs +0 -11
  124. package/dist/contexts/icon/assets/index.js +0 -42
  125. package/dist/contexts/icon/assets/index.mjs +0 -12
  126. package/dist/contexts/icon/assets/regular/index.js +0 -31
  127. package/dist/contexts/icon/assets/regular/index.mjs +0 -11
  128. package/dist/contexts/icon/assets/solid/index.js +0 -31
  129. package/dist/contexts/icon/assets/solid/index.mjs +0 -11
  130. package/dist/contexts/icon/index.js +0 -107
  131. package/dist/contexts/icon/index.mjs +0 -72
  132. package/dist/contexts/icon/styles.js +0 -42
  133. package/dist/contexts/icon/styles.mjs +0 -8
  134. package/dist/contexts/modal/index.js +0 -92
  135. package/dist/contexts/modal/index.mjs +0 -57
  136. package/dist/contexts/modal/styles.js +0 -42
  137. package/dist/contexts/modal/styles.mjs +0 -8
  138. package/dist/contexts/theme/content.js +0 -104
  139. package/dist/contexts/theme/content.mjs +0 -79
  140. package/dist/contexts/theme/index.js +0 -68
  141. package/dist/contexts/theme/index.mjs +0 -43
  142. package/dist/contexts/theme/styles.js +0 -116
  143. package/dist/contexts/theme/styles.mjs +0 -82
  144. package/dist/contexts/tooltip/index.js +0 -107
  145. package/dist/contexts/tooltip/index.mjs +0 -72
  146. package/dist/contexts/tooltip/styles.js +0 -78
  147. package/dist/contexts/tooltip/styles.mjs +0 -44
  148. package/dist/interfaces/components/avatar/index.js +0 -17
  149. package/dist/interfaces/components/avatar/index.mjs +0 -1
  150. package/dist/interfaces/components/badge/index.js +0 -17
  151. package/dist/interfaces/components/badge/index.mjs +0 -1
  152. package/dist/interfaces/components/block/index.js +0 -17
  153. package/dist/interfaces/components/block/index.mjs +0 -1
  154. package/dist/interfaces/components/chart/index.js +0 -17
  155. package/dist/interfaces/components/chart/index.mjs +0 -1
  156. package/dist/interfaces/components/credit-card/index.js +0 -17
  157. package/dist/interfaces/components/credit-card/index.mjs +0 -1
  158. package/dist/interfaces/components/form/button/index.js +0 -17
  159. package/dist/interfaces/components/form/button/index.mjs +0 -1
  160. package/dist/interfaces/components/form/datetime/index.js +0 -17
  161. package/dist/interfaces/components/form/datetime/index.mjs +0 -1
  162. package/dist/interfaces/components/form/file/index.js +0 -17
  163. package/dist/interfaces/components/form/file/index.mjs +0 -1
  164. package/dist/interfaces/components/form/index.js +0 -35
  165. package/dist/interfaces/components/form/index.mjs +0 -8
  166. package/dist/interfaces/components/form/input/index.js +0 -17
  167. package/dist/interfaces/components/form/input/index.mjs +0 -1
  168. package/dist/interfaces/components/form/label/index.js +0 -17
  169. package/dist/interfaces/components/form/label/index.mjs +0 -1
  170. package/dist/interfaces/components/form/select/index.js +0 -17
  171. package/dist/interfaces/components/form/select/index.mjs +0 -1
  172. package/dist/interfaces/components/form/textarea/index.js +0 -17
  173. package/dist/interfaces/components/form/textarea/index.mjs +0 -1
  174. package/dist/interfaces/components/index.js +0 -43
  175. package/dist/interfaces/components/index.mjs +0 -12
  176. package/dist/interfaces/components/loading/app/index.js +0 -17
  177. package/dist/interfaces/components/loading/app/index.mjs +0 -1
  178. package/dist/interfaces/components/loading/bar/index.js +0 -17
  179. package/dist/interfaces/components/loading/bar/index.mjs +0 -1
  180. package/dist/interfaces/components/loading/index.js +0 -25
  181. package/dist/interfaces/components/loading/index.mjs +0 -3
  182. package/dist/interfaces/components/logo/index.js +0 -17
  183. package/dist/interfaces/components/logo/index.mjs +0 -1
  184. package/dist/interfaces/components/lottie/index.js +0 -17
  185. package/dist/interfaces/components/lottie/index.mjs +0 -1
  186. package/dist/interfaces/components/modal/index.js +0 -17
  187. package/dist/interfaces/components/modal/index.mjs +0 -1
  188. package/dist/interfaces/components/table/index.js +0 -23
  189. package/dist/interfaces/components/table/index.mjs +0 -2
  190. package/dist/interfaces/components/table/paginate/index.js +0 -17
  191. package/dist/interfaces/components/table/paginate/index.mjs +0 -1
  192. package/dist/interfaces/contexts/icon/index.js +0 -17
  193. package/dist/interfaces/contexts/icon/index.mjs +0 -1
  194. package/dist/interfaces/contexts/index.js +0 -29
  195. package/dist/interfaces/contexts/index.mjs +0 -5
  196. package/dist/interfaces/contexts/modal/index.js +0 -18
  197. package/dist/interfaces/contexts/modal/index.mjs +0 -2
  198. package/dist/interfaces/contexts/theme/index.js +0 -17
  199. package/dist/interfaces/contexts/theme/index.mjs +0 -1
  200. package/dist/interfaces/contexts/tooltip/index.js +0 -17
  201. package/dist/interfaces/contexts/tooltip/index.mjs +0 -1
@@ -1,92 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
- var paginate_exports = {};
32
- __export(paginate_exports, {
33
- Paginate: () => Paginate
34
- });
35
- module.exports = __toCommonJS(paginate_exports);
36
- var import_jsx_runtime = require("react/jsx-runtime");
37
- var import_styles = require("./styles");
38
- var import_lodash = __toESM(require("lodash"));
39
- function Paginate(props) {
40
- const pages = () => {
41
- const offset = Number(props.page.value) - 4;
42
- let page = offset > 0 ? offset + 1 : 1;
43
- let pages2 = [];
44
- while (Number(props.total) >= page) {
45
- pages2.push(page);
46
- page++;
47
- }
48
- pages2 = import_lodash.default.slice(pages2, 0, 5);
49
- if (Number(props.page.value) + 1 > 5) pages2 = import_lodash.default.concat(["1.."], pages2);
50
- if (Number(props.total) > 6 && Number(props.page.value) + 1 < Number(props.total)) return import_lodash.default.concat(pages2, `..${props.total}`);
51
- return pages2;
52
- };
53
- return Number(props.total) > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { children: [
54
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
- "div",
56
- {
57
- className: "paginate back",
58
- onClick: () => props.page.set ? props.page.set(
59
- props.page.value ? props.page.value - 1 : props.page.value
60
- ) : null,
61
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-left" })
62
- }
63
- ),
64
- import_lodash.default.map(
65
- pages(),
66
- (page, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
- "div",
68
- {
69
- className: "paginate page",
70
- "data-current": String(props.page.value === Number(import_lodash.default.replace(page, /\D/g, "")) - 1),
71
- onClick: () => props.page.set ? props.page.set(Number(import_lodash.default.replace(page, /\D/g, "")) - 1) : null,
72
- children: page
73
- },
74
- index
75
- )
76
- ),
77
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
- "div",
79
- {
80
- className: "paginate next",
81
- onClick: () => props.page.set ? props.page.set(
82
- props.page.value !== props.total - 1 ? props.page.value + 1 : props.page.value
83
- ) : null,
84
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-right" })
85
- }
86
- )
87
- ] });
88
- }
89
- // Annotate the CommonJS export names for ESM import in node:
90
- 0 && (module.exports = {
91
- Paginate
92
- });
@@ -1,58 +0,0 @@
1
- "use client";
2
- "use client";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- import { Container } from "./styles";
5
- import _ from "lodash";
6
- function Paginate(props) {
7
- const pages = () => {
8
- const offset = Number(props.page.value) - 4;
9
- let page = offset > 0 ? offset + 1 : 1;
10
- let pages2 = [];
11
- while (Number(props.total) >= page) {
12
- pages2.push(page);
13
- page++;
14
- }
15
- pages2 = _.slice(pages2, 0, 5);
16
- if (Number(props.page.value) + 1 > 5) pages2 = _.concat(["1.."], pages2);
17
- if (Number(props.total) > 6 && Number(props.page.value) + 1 < Number(props.total)) return _.concat(pages2, `..${props.total}`);
18
- return pages2;
19
- };
20
- return Number(props.total) > 1 && /* @__PURE__ */ jsxs(Container, { children: [
21
- /* @__PURE__ */ jsx(
22
- "div",
23
- {
24
- className: "paginate back",
25
- onClick: () => props.page.set ? props.page.set(
26
- props.page.value ? props.page.value - 1 : props.page.value
27
- ) : null,
28
- children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-left" })
29
- }
30
- ),
31
- _.map(
32
- pages(),
33
- (page, index) => /* @__PURE__ */ jsx(
34
- "div",
35
- {
36
- className: "paginate page",
37
- "data-current": String(props.page.value === Number(_.replace(page, /\D/g, "")) - 1),
38
- onClick: () => props.page.set ? props.page.set(Number(_.replace(page, /\D/g, "")) - 1) : null,
39
- children: page
40
- },
41
- index
42
- )
43
- ),
44
- /* @__PURE__ */ jsx(
45
- "div",
46
- {
47
- className: "paginate next",
48
- onClick: () => props.page.set ? props.page.set(
49
- props.page.value !== props.total - 1 ? props.page.value + 1 : props.page.value
50
- ) : null,
51
- children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-right" })
52
- }
53
- )
54
- ] });
55
- }
56
- export {
57
- Paginate
58
- };
@@ -1,74 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
- var styles_exports = {};
32
- __export(styles_exports, {
33
- Container: () => Container
34
- });
35
- module.exports = __toCommonJS(styles_exports);
36
- var import_styled_components = __toESM(require("styled-components"));
37
- const Container = import_styled_components.default.div`
38
- width: 100%;
39
- display: flex;
40
- align-items: center;
41
- justify-content: center;
42
- margin-top: 1.5rem;
43
-
44
- .paginate {
45
- font-size: .8rem;
46
- font-weight: 500;
47
- height: 1.5rem;
48
- padding: 0 .6rem;
49
- border-radius: 1rem;
50
- transition: ease .3s;
51
- color: ${({ theme }) => theme.t6};
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- cursor: pointer;
56
-
57
- &[data-current="true"] {
58
- background: ${({ theme }) => theme.tertiary};
59
- color: ${({ theme }) => theme.secondary};
60
-
61
- &:hover {
62
- background: ${({ theme }) => theme.tertiary};
63
- }
64
- }
65
-
66
- &:hover {
67
- background: ${({ theme }) => theme.t05};
68
- }
69
- }
70
- `;
71
- // Annotate the CommonJS export names for ESM import in node:
72
- 0 && (module.exports = {
73
- Container
74
- });
@@ -1,40 +0,0 @@
1
- "use client";
2
- "use client";
3
- import styled from "styled-components";
4
- const Container = styled.div`
5
- width: 100%;
6
- display: flex;
7
- align-items: center;
8
- justify-content: center;
9
- margin-top: 1.5rem;
10
-
11
- .paginate {
12
- font-size: .8rem;
13
- font-weight: 500;
14
- height: 1.5rem;
15
- padding: 0 .6rem;
16
- border-radius: 1rem;
17
- transition: ease .3s;
18
- color: ${({ theme }) => theme.t6};
19
- display: flex;
20
- align-items: center;
21
- justify-content: center;
22
- cursor: pointer;
23
-
24
- &[data-current="true"] {
25
- background: ${({ theme }) => theme.tertiary};
26
- color: ${({ theme }) => theme.secondary};
27
-
28
- &:hover {
29
- background: ${({ theme }) => theme.tertiary};
30
- }
31
- }
32
-
33
- &:hover {
34
- background: ${({ theme }) => theme.t05};
35
- }
36
- }
37
- `;
38
- export {
39
- Container
40
- };
@@ -1,300 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __export = (target, all) => {
11
- for (var name in all)
12
- __defProp(target, name, { get: all[name], enumerable: true });
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
- mod
29
- ));
30
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
- var styles_exports = {};
32
- __export(styles_exports, {
33
- Container: () => Container
34
- });
35
- module.exports = __toCommonJS(styles_exports);
36
- var import_styled_components = __toESM(require("styled-components"));
37
- const Container = import_styled_components.default.div`
38
- .iz-table-container {
39
- overflow-x: auto;
40
-
41
- &::-webkit-scrollbar {
42
- width: 0;
43
- height: ${(props) => props.notFound ? "0px" : "5px"};
44
- }
45
-
46
- &::-webkit-scrollbar-track {
47
- background: transparent;
48
- }
49
-
50
- &::-webkit-scrollbar-thumb {
51
- background-color: rgb(255, 255, 255, 0.1);
52
- border-radius: 5px;
53
- }
54
-
55
- table {
56
- font-size: .8rem;
57
- border: 0;
58
- color: ${({ theme }) => theme.t6};
59
- overflow-x: ${(props) => props.notFound ? "auto" : "hidden"};
60
- width: 100%;
61
- border-spacing: 0;
62
-
63
- .iz-table-content {
64
- background: ${({ theme }) => theme.t05};
65
- height: 2.7rem;
66
- padding: 0.8rem 1.3rem;
67
- margin-top: 0.5rem;
68
- white-space: nowrap;
69
- display: flex;
70
- align-items: center;
71
- position: relative;
72
- transition: ease 0.3s;
73
-
74
- &.iz-table-identifier {
75
- padding: .8rem .5rem !important;
76
- }
77
-
78
- &.iz-table-action {
79
- display: flex;
80
- justify-content: flex-end;
81
- padding: .8rem .5rem !important;
82
- position: relative;
83
-
84
- &.left {
85
- justify-content: flex-start;
86
- }
87
-
88
- &.center {
89
- justify-content: center;
90
- }
91
-
92
- .iz-table-actions {
93
- display: flex;
94
- align-items: center;
95
- justify-content: flex-end;
96
- gap: .5rem;
97
- }
98
-
99
- .iz-table-button {
100
- min-width: 1.8rem;
101
- height: 1.8rem;
102
- border-radius: 5px;
103
- border: 1px solid ${({ theme }) => theme.t05};
104
- background: ${({ theme }) => theme.t05};
105
- color: ${({ theme }) => theme.t6};
106
- cursor: pointer;
107
- transition: ease 0.3s, width 1s, position 0s;
108
- display: flex;
109
- align-items: center;
110
- justify-content: center;
111
- gap: .5rem;
112
- font-weight: 500;
113
- text-transform: lowercase;
114
- padding: 0 .5rem;
115
- position: relative;
116
-
117
- &:disabled {
118
- pointer-events: none;
119
- opacity: .6;
120
- }
121
-
122
- &:hover {
123
- opacity: .9;
124
-
125
- &.negative {
126
- color: ${({ theme }) => theme.primary};
127
- background: ${({ theme }) => theme.negative};
128
- }
129
- }
130
- }
131
- }
132
- }
133
-
134
- thead {
135
- tr {
136
- th {
137
- border: none;
138
- padding: 0;
139
- text-transform: uppercase;
140
- font-weight: 500;
141
- letter-spacing: 2px;
142
- position: relative;
143
- height: 2.5rem;
144
-
145
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
146
- .iz-table-content {
147
- font-size: .7rem;
148
- }
149
- }
150
-
151
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
152
- display: none;
153
-
154
- &:nth-child(1), &:nth-child(2), &:last-child {
155
- display: table-cell;
156
- }
157
- }
158
-
159
- &:first-child {
160
- .iz-table-content {
161
- border-top-left-radius: 5px;
162
- border-bottom-left-radius: 5px;
163
- }
164
- }
165
-
166
- &:last-child {
167
- .iz-table-content {
168
- border-top-right-radius: 5px;
169
- border-bottom-right-radius: 5px;
170
- }
171
- }
172
- }
173
- }
174
- }
175
-
176
- tbody {
177
- tr {
178
- &:hover {
179
- td {
180
- .iz-table-content {
181
- background: ${({ theme }) => theme.tertiary};
182
- }
183
- }
184
- }
185
-
186
- td {
187
- border: none;
188
- padding: 0;
189
- font-weight: 400;
190
- position: relative;
191
-
192
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
193
- display: none;
194
-
195
- &:nth-child(1), &:nth-child(2), &:last-child {
196
- display: table-cell;
197
- }
198
- }
199
-
200
- &:first-child {
201
- .iz-table-content {
202
- border-top-left-radius: 5px;
203
- border-bottom-left-radius: 5px;
204
- }
205
- }
206
-
207
- &:last-child {
208
- .iz-table-content {
209
- border-top-right-radius: 5px;
210
- border-bottom-right-radius: 5px;
211
- }
212
- }
213
-
214
- .iz-table-content-elipse {
215
- position: absolute;
216
- left: 0;
217
- right: 0;
218
- white-space: nowrap;
219
- overflow: hidden;
220
- text-overflow: ellipsis;
221
- padding: 0.8rem 1.3rem;
222
- }
223
- }
224
-
225
- &:first-child {
226
- td {
227
- .iz-table-content {
228
- margin-top: 1.5rem;
229
- }
230
- }
231
- }
232
- }
233
- }
234
- }
235
- }
236
-
237
- .iz-table-icon {
238
- width: 1.8rem;
239
- height: 1.8rem;
240
- background: ${({ theme }) => theme.t08};
241
- border-radius: 5px;
242
- display: flex;
243
- align-items: center;
244
- justify-content: center;
245
- overflow: hidden;
246
-
247
- img {
248
- width: 100%;
249
- height: 100%;
250
- object-fit: cover;
251
- }
252
-
253
- i {
254
- font-size: .9rem;
255
- }
256
- }
257
-
258
- .iz-table-not-found {
259
- border-radius: 5px;
260
- background: ${({ theme }) => theme.t05};
261
- display: flex;
262
- flex-direction: column;
263
- align-items: center;
264
- justify-content: center;
265
- margin: 1.5rem 0;
266
- padding: 2.5rem;
267
- width: 100%;
268
-
269
- p {
270
- color: ${({ theme }) => theme.t6};
271
- text-align: center;
272
- }
273
-
274
- p:first-child {
275
- font-size: 1.3rem;
276
- font-weight: 600;
277
- margin-top: 0;
278
- margin-bottom: 0.5rem;
279
-
280
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
281
- font-size: 1rem;
282
- }
283
- }
284
-
285
- p:last-child {
286
- font-size: 0.8rem;
287
- max-width: 50rem;
288
- margin-top: 0;
289
- margin-bottom: 0;
290
-
291
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
292
- font-size: 0.7rem;
293
- }
294
- }
295
- }
296
- `;
297
- // Annotate the CommonJS export names for ESM import in node:
298
- 0 && (module.exports = {
299
- Container
300
- });