@gustavo-valsechi/client 1.3.31 → 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 +2 -2
  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
@@ -12,14 +12,8 @@ var __copyProps = (to, from, except, desc) => {
12
12
  }
13
13
  return to;
14
14
  };
15
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
16
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // interfaces/index.tsx
17
18
  var interfaces_exports = {};
18
19
  module.exports = __toCommonJS(interfaces_exports);
19
- __reExport(interfaces_exports, require("./components"), module.exports);
20
- __reExport(interfaces_exports, require("./contexts"), module.exports);
21
- // Annotate the CommonJS export names for ESM import in node:
22
- 0 && (module.exports = {
23
- ...require("./components"),
24
- ...require("./contexts")
25
- });
@@ -1,3 +1 @@
1
1
  "use client";
2
- export * from "./components";
3
- export * from "./contexts";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.3.31",
3
+ "version": "1.3.32",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "clean": "rimraf dist && rimraf node_modules/.cache",
13
13
  "build:types": "tsc -p tsconfig.json",
14
- "build:js": "tsup && tsc-alias",
14
+ "build:js": "tsup",
15
15
  "build": "npm run clean && npm run build:js && npm run build:types",
16
16
  "publish": "npm publish --access public"
17
17
  },
@@ -1,54 +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
- RowContainer: () => RowContainer
35
- });
36
- module.exports = __toCommonJS(styles_exports);
37
- var import_styled_components = __toESM(require("styled-components"));
38
- const Container = import_styled_components.default.div`
39
- display: flex;
40
- flex-direction: column;
41
- gap: 1rem;
42
- `;
43
- const RowContainer = import_styled_components.default.div`
44
- display: flex;
45
- flex-direction: row;
46
- align-items: stretch;
47
- gap: 1rem;
48
- flex-wrap: wrap;
49
- `;
50
- // Annotate the CommonJS export names for ESM import in node:
51
- 0 && (module.exports = {
52
- Container,
53
- RowContainer
54
- });
@@ -1,19 +0,0 @@
1
- "use client";
2
- "use client";
3
- import styled from "styled-components";
4
- const Container = styled.div`
5
- display: flex;
6
- flex-direction: column;
7
- gap: 1rem;
8
- `;
9
- const RowContainer = styled.div`
10
- display: flex;
11
- flex-direction: row;
12
- align-items: stretch;
13
- gap: 1rem;
14
- flex-wrap: wrap;
15
- `;
16
- export {
17
- Container,
18
- RowContainer
19
- };
@@ -1,63 +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 avatar_exports = {};
32
- __export(avatar_exports, {
33
- Avatar: () => Avatar
34
- });
35
- module.exports = __toCommonJS(avatar_exports);
36
- var import_jsx_runtime = require("react/jsx-runtime");
37
- var import_react = require("react");
38
- var import_styles = require("./styles");
39
- var import_lodash = __toESM(require("lodash"));
40
- function Avatar(props) {
41
- const containerRef = (0, import_react.useRef)({});
42
- const [color, setColor] = (0, import_react.useState)("");
43
- const name = () => {
44
- const [first, secound] = import_lodash.default.split(props.name, " ") || [];
45
- if (first && secound) return `${first} ${secound}`;
46
- if (first) return first;
47
- return "IZ";
48
- };
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
- import_styles.Container,
51
- {
52
- ref: containerRef,
53
- color,
54
- width: containerRef.current.offsetWidth,
55
- ...props,
56
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: import_lodash.default.upperCase(name()) })
57
- }
58
- );
59
- }
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {
62
- Avatar
63
- });
@@ -1,29 +0,0 @@
1
- "use client";
2
- "use client";
3
- import { jsx } from "react/jsx-runtime";
4
- import { useRef, useState } from "react";
5
- import { Container } from "./styles";
6
- import _ from "lodash";
7
- function Avatar(props) {
8
- const containerRef = useRef({});
9
- const [color, setColor] = useState("");
10
- const name = () => {
11
- const [first, secound] = _.split(props.name, " ") || [];
12
- if (first && secound) return `${first} ${secound}`;
13
- if (first) return first;
14
- return "IZ";
15
- };
16
- return /* @__PURE__ */ jsx(
17
- Container,
18
- {
19
- ref: containerRef,
20
- color,
21
- width: containerRef.current.offsetWidth,
22
- ...props,
23
- children: /* @__PURE__ */ jsx("span", { children: _.upperCase(name()) })
24
- }
25
- );
26
- }
27
- export {
28
- Avatar
29
- };
@@ -1,93 +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: ${({ size }) => size || "2.3rem"};
39
- height: ${({ size }) => size || "2.3rem"};
40
- border-radius: ${({ size }) => size || "2.3rem"};
41
- border: 2px solid ${({ theme }) => theme.t1};
42
- background: ${({ color }) => color};
43
- display: flex;
44
- align-items: center;
45
- justify-content: center;
46
- cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
47
- transition: ease .2s;
48
- position: relative;
49
- font-size: ${({ width }) => width / 2.5}px;
50
- font-weight: 500;
51
- color: ${({ theme }) => theme.primary};
52
-
53
- span {
54
- position: relative;
55
- z-index: 1;
56
- }
57
-
58
- &::before {
59
- content: "";
60
- position: absolute;
61
- width: 100%;
62
- height: 100%;
63
- transition: ease .2s;
64
- background: ${({ theme }) => theme.t03};
65
- border-radius: ${({ size }) => size || "2.3rem"};
66
- z-index: 0;
67
- }
68
-
69
- &::after {
70
- content: "";
71
- position: absolute;
72
- width: 100%;
73
- height: 100%;
74
- transition: ease .2s;
75
- background: ${({ theme }) => theme.t05};
76
- border-radius: ${({ size }) => size || "2.3rem"};
77
- z-index: 0;
78
- }
79
-
80
- &:hover {
81
- &::before {
82
- transform: scale(1.6);
83
- }
84
-
85
- &::after {
86
- transform: scale(1.3);
87
- }
88
- }
89
- `;
90
- // Annotate the CommonJS export names for ESM import in node:
91
- 0 && (module.exports = {
92
- Container
93
- });
@@ -1,59 +0,0 @@
1
- "use client";
2
- "use client";
3
- import styled from "styled-components";
4
- const Container = styled.div`
5
- width: ${({ size }) => size || "2.3rem"};
6
- height: ${({ size }) => size || "2.3rem"};
7
- border-radius: ${({ size }) => size || "2.3rem"};
8
- border: 2px solid ${({ theme }) => theme.t1};
9
- background: ${({ color }) => color};
10
- display: flex;
11
- align-items: center;
12
- justify-content: center;
13
- cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
14
- transition: ease .2s;
15
- position: relative;
16
- font-size: ${({ width }) => width / 2.5}px;
17
- font-weight: 500;
18
- color: ${({ theme }) => theme.primary};
19
-
20
- span {
21
- position: relative;
22
- z-index: 1;
23
- }
24
-
25
- &::before {
26
- content: "";
27
- position: absolute;
28
- width: 100%;
29
- height: 100%;
30
- transition: ease .2s;
31
- background: ${({ theme }) => theme.t03};
32
- border-radius: ${({ size }) => size || "2.3rem"};
33
- z-index: 0;
34
- }
35
-
36
- &::after {
37
- content: "";
38
- position: absolute;
39
- width: 100%;
40
- height: 100%;
41
- transition: ease .2s;
42
- background: ${({ theme }) => theme.t05};
43
- border-radius: ${({ size }) => size || "2.3rem"};
44
- z-index: 0;
45
- }
46
-
47
- &:hover {
48
- &::before {
49
- transform: scale(1.6);
50
- }
51
-
52
- &::after {
53
- transform: scale(1.3);
54
- }
55
- }
56
- `;
57
- export {
58
- Container
59
- };
@@ -1,54 +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 badge_exports = {};
32
- __export(badge_exports, {
33
- Badge: () => Badge
34
- });
35
- module.exports = __toCommonJS(badge_exports);
36
- var import_jsx_runtime = require("react/jsx-runtime");
37
- var import_styles = require("./styles");
38
- var import_contexts = require("../../../contexts");
39
- var import_lodash = __toESM(require("lodash"));
40
- function Badge(props) {
41
- const { content } = (0, import_contexts.useTheme)();
42
- const status = {
43
- ATIVO: "positive",
44
- DESATIVADO: "negative",
45
- ESTAVEL: "positive",
46
- INSTAVEL: "negative",
47
- REGULAR: "negative"
48
- };
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { color: status[props.value] || content.t3, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: import_lodash.default.lowerCase(props.value) }) }) });
50
- }
51
- // Annotate the CommonJS export names for ESM import in node:
52
- 0 && (module.exports = {
53
- Badge
54
- });
@@ -1,20 +0,0 @@
1
- "use client";
2
- "use client";
3
- import { jsx } from "react/jsx-runtime";
4
- import { Container } from "./styles";
5
- import { useTheme } from "../../../contexts";
6
- import _ from "lodash";
7
- function Badge(props) {
8
- const { content } = useTheme();
9
- const status = {
10
- ATIVO: "positive",
11
- DESATIVADO: "negative",
12
- ESTAVEL: "positive",
13
- INSTAVEL: "negative",
14
- REGULAR: "negative"
15
- };
16
- return /* @__PURE__ */ jsx(Container, { color: status[props.value] || content.t3, children: /* @__PURE__ */ jsx("div", { className: "content", children: /* @__PURE__ */ jsx("div", { children: _.lowerCase(props.value) }) }) });
17
- }
18
- export {
19
- Badge
20
- };
@@ -1,71 +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
- .content {
39
- display: inline-flex;
40
- align-items: center;
41
- justify-content: center;
42
- height: 1.8rem;
43
- padding: 0 2rem;
44
- position: relative;
45
-
46
- div {
47
- position: relative;
48
- z-index: 1;
49
- color: ${({ theme, color }) => theme[color]};
50
- font-size: .8rem;
51
- font-weight: 500;
52
- text-transform: capitalize;
53
- }
54
-
55
- &:before {
56
- content: "";
57
- position: absolute;
58
- top: 0;
59
- left: 0;
60
- width: 100%;
61
- height: 100%;
62
- border-radius: 5px;
63
- background: ${({ theme, color }) => theme[color]};
64
- opacity: .2;
65
- }
66
- }
67
- `;
68
- // Annotate the CommonJS export names for ESM import in node:
69
- 0 && (module.exports = {
70
- Container
71
- });
@@ -1,37 +0,0 @@
1
- "use client";
2
- "use client";
3
- import styled from "styled-components";
4
- const Container = styled.div`
5
- .content {
6
- display: inline-flex;
7
- align-items: center;
8
- justify-content: center;
9
- height: 1.8rem;
10
- padding: 0 2rem;
11
- position: relative;
12
-
13
- div {
14
- position: relative;
15
- z-index: 1;
16
- color: ${({ theme, color }) => theme[color]};
17
- font-size: .8rem;
18
- font-weight: 500;
19
- text-transform: capitalize;
20
- }
21
-
22
- &:before {
23
- content: "";
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- width: 100%;
28
- height: 100%;
29
- border-radius: 5px;
30
- background: ${({ theme, color }) => theme[color]};
31
- opacity: .2;
32
- }
33
- }
34
- `;
35
- export {
36
- Container
37
- };
@@ -1,44 +0,0 @@
1
- "use client";
2
- "use strict";
3
- "use client";
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
- var block_exports = {};
22
- __export(block_exports, {
23
- Block: () => Block
24
- });
25
- module.exports = __toCommonJS(block_exports);
26
- var import_jsx_runtime = require("react/jsx-runtime");
27
- var import_styles = require("./styles");
28
- var import__ = require("../..");
29
- function Block(props) {
30
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { children: [
31
- (!!props.icon || !!props.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { children: [
32
- !!props.icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: props.icon }),
33
- !!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: props.label })
34
- ] }),
35
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Content, { children: [
36
- !!props.component && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Component, { content: props.component }),
37
- props.children
38
- ] })
39
- ] });
40
- }
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- Block
44
- });
@@ -1,20 +0,0 @@
1
- "use client";
2
- "use client";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- import { Container, Content } from "./styles";
5
- import { Component } from "../..";
6
- function Block(props) {
7
- return /* @__PURE__ */ jsxs(Container, { children: [
8
- (!!props.icon || !!props.label) && /* @__PURE__ */ jsxs("header", { children: [
9
- !!props.icon && /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: props.icon }),
10
- !!props.label && /* @__PURE__ */ jsx("span", { children: props.label })
11
- ] }),
12
- /* @__PURE__ */ jsxs(Content, { children: [
13
- !!props.component && /* @__PURE__ */ jsx(Component, { content: props.component }),
14
- props.children
15
- ] })
16
- ] });
17
- }
18
- export {
19
- Block
20
- };
@@ -1,65 +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
- Content: () => Content
35
- });
36
- module.exports = __toCommonJS(styles_exports);
37
- var import_styled_components = __toESM(require("styled-components"));
38
- const Container = import_styled_components.default.div`
39
- display: flex;
40
- flex-direction: column;
41
- gap: 1rem;
42
- padding: 1.3rem 1.5rem;
43
- border-radius: 5px;
44
- background: ${({ theme }) => theme.t05};
45
- flex: 1 1 20rem;
46
-
47
- header {
48
- display: flex;
49
- align-items: center;
50
- gap: .5rem;
51
- font-size: .9rem;
52
- font-weight: 600;
53
- color: ${({ theme }) => theme.t6};
54
- }
55
- `;
56
- const Content = import_styled_components.default.div`
57
- font-size: 1.5rem;
58
- font-weight: 500;
59
- color: ${({ theme }) => theme.t7};
60
- `;
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- Container,
64
- Content
65
- });