@gustavo-valsechi/client 1.4.76 → 1.4.78

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 (64) hide show
  1. package/dist/components/types/credit-card/card/index.js +8 -8
  2. package/dist/components/types/credit-card/card/index.mjs +8 -8
  3. package/dist/components/types/credit-card/card/styles.js +9 -9
  4. package/dist/components/types/credit-card/card/styles.mjs +9 -9
  5. package/dist/components/types/credit-card/functions/index.js +2 -2
  6. package/dist/components/types/credit-card/functions/index.mjs +2 -2
  7. package/dist/components/types/credit-card/functions/styles.js +3 -3
  8. package/dist/components/types/credit-card/functions/styles.mjs +3 -3
  9. package/dist/components/types/credit-card/styles.js +4 -4
  10. package/dist/components/types/credit-card/styles.mjs +4 -4
  11. package/dist/components/types/form/index.js +4 -4
  12. package/dist/components/types/form/index.mjs +4 -4
  13. package/dist/components/types/form/styles.js +3 -3
  14. package/dist/components/types/form/styles.mjs +3 -3
  15. package/dist/components/types/form/types/button/index.js +1 -1
  16. package/dist/components/types/form/types/button/index.mjs +1 -1
  17. package/dist/components/types/form/types/custom/index.js +2 -2
  18. package/dist/components/types/form/types/custom/index.mjs +2 -2
  19. package/dist/components/types/form/types/custom/styles.js +2 -2
  20. package/dist/components/types/form/types/custom/styles.mjs +2 -2
  21. package/dist/components/types/form/types/datetime/index.js +1 -1
  22. package/dist/components/types/form/types/datetime/index.mjs +1 -1
  23. package/dist/components/types/form/types/datetime/styles.js +1 -1
  24. package/dist/components/types/form/types/datetime/styles.mjs +1 -1
  25. package/dist/components/types/form/types/file/index.js +1 -1
  26. package/dist/components/types/form/types/file/index.mjs +1 -1
  27. package/dist/components/types/form/types/file/styles.js +1 -1
  28. package/dist/components/types/form/types/file/styles.mjs +1 -1
  29. package/dist/components/types/form/types/select/index.js +4 -4
  30. package/dist/components/types/form/types/select/index.mjs +4 -4
  31. package/dist/components/types/form/types/select/options/index.d.ts +1 -1
  32. package/dist/components/types/form/types/select/options/index.js +11 -4
  33. package/dist/components/types/form/types/select/options/index.mjs +11 -4
  34. package/dist/components/types/form/types/select/options/styles.js +11 -2
  35. package/dist/components/types/form/types/select/options/styles.mjs +11 -2
  36. package/dist/components/types/form/types/select/styles.js +5 -1
  37. package/dist/components/types/form/types/select/styles.mjs +5 -1
  38. package/dist/components/types/form/types/text/index.js +1 -1
  39. package/dist/components/types/form/types/text/index.mjs +1 -1
  40. package/dist/components/types/form/types/text/styles.js +1 -1
  41. package/dist/components/types/form/types/text/styles.mjs +1 -1
  42. package/dist/components/types/form/types/textarea/index.js +1 -1
  43. package/dist/components/types/form/types/textarea/index.mjs +1 -1
  44. package/dist/components/types/form/types/textarea/styles.js +1 -1
  45. package/dist/components/types/form/types/textarea/styles.mjs +1 -1
  46. package/dist/components/types/loading/app/index.js +1 -1
  47. package/dist/components/types/loading/app/index.mjs +1 -1
  48. package/dist/components/types/loading/app/styles.js +1 -1
  49. package/dist/components/types/loading/app/styles.mjs +1 -1
  50. package/dist/components/types/modal/index.js +7 -7
  51. package/dist/components/types/modal/index.mjs +7 -7
  52. package/dist/components/types/modal/styles.js +7 -7
  53. package/dist/components/types/modal/styles.mjs +7 -7
  54. package/dist/components/types/table/index.js +10 -10
  55. package/dist/components/types/table/index.mjs +10 -10
  56. package/dist/components/types/table/modal/index.js +5 -5
  57. package/dist/components/types/table/modal/index.mjs +5 -5
  58. package/dist/components/types/table/modal/styles.js +5 -5
  59. package/dist/components/types/table/modal/styles.mjs +5 -5
  60. package/dist/components/types/table/styles.js +16 -16
  61. package/dist/components/types/table/styles.mjs +16 -16
  62. package/dist/contexts/target/index.js +35 -9
  63. package/dist/contexts/target/index.mjs +35 -9
  64. package/package.json +1 -1
@@ -10,11 +10,10 @@ import InputSelectOption from "./options";
10
10
  function InputSelect(props) {
11
11
  const inputRef = useRef({});
12
12
  const target = useTarget();
13
- const option = useState("");
14
13
  const [focus, setFocus] = useState(false);
15
14
  const register = (props.register || ((name) => ({})))(props.name || "");
16
15
  useEffect(() => {
17
- target.add({ ref: inputRef, component: /* @__PURE__ */ jsx(InputSelectOption, { option, ...props }) });
16
+ target.add({ ref: inputRef, component: /* @__PURE__ */ jsx(InputSelectOption, { ...props, inputRef, register }) });
18
17
  return () => target.remove(inputRef);
19
18
  }, []);
20
19
  const onBlur = (event) => {
@@ -35,7 +34,7 @@ function InputSelect(props) {
35
34
  props.label,
36
35
  props.required ? "*" : ""
37
36
  ] }),
38
- /* @__PURE__ */ jsxs("div", { ref: inputRef, className: "iz-input-content", children: [
37
+ /* @__PURE__ */ jsxs("div", { ref: inputRef, className: "input-content", children: [
39
38
  /* @__PURE__ */ jsx(
40
39
  "input",
41
40
  {
@@ -45,7 +44,8 @@ function InputSelect(props) {
45
44
  ...register,
46
45
  onChange,
47
46
  onFocus,
48
- onBlur
47
+ onBlur,
48
+ focus
49
49
  }
50
50
  ),
51
51
  /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: focus ? "fa-solid fa-chevron-up" : "fa-solid fa-chevron-down" })
@@ -1,4 +1,4 @@
1
1
  import { IInputSelect } from "@interfaces";
2
2
  export default function InputSelectOption(props: IInputSelect & {
3
- option: any;
3
+ inputRef: any;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -33,16 +33,23 @@ __export(options_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(options_exports);
35
35
  var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_react = require("react");
36
37
  var import_styles = require("./styles");
37
38
  var import_lodash = __toESM(require("lodash"));
38
39
  function InputSelectOption(props) {
39
- const [value, set] = props.option;
40
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { children: import_lodash.default.map(
40
+ var _a, _b;
41
+ const [value, set] = (0, import_react.useState)("");
42
+ (0, import_react.useEffect)(() => {
43
+ var _a2;
44
+ (_a2 = props.setValue) == null ? void 0 : _a2.call(props, value);
45
+ }, [value, props.inputRef]);
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { width: (_b = (_a = props.inputRef) == null ? void 0 : _a.current) == null ? void 0 : _b.offsetWidth, children: import_lodash.default.map(
41
47
  props.options,
42
48
  (data, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
43
- "option",
49
+ "div",
44
50
  {
45
- value: Object.keys(data),
51
+ className: "input-option",
52
+ onClick: () => set(Object.keys(data)[index]),
46
53
  children: Object.values(data)
47
54
  },
48
55
  index
@@ -1,15 +1,22 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { useEffect, useState } from "react";
3
4
  import { Container } from "./styles";
4
5
  import _ from "lodash";
5
6
  function InputSelectOption(props) {
6
- const [value, set] = props.option;
7
- return /* @__PURE__ */ jsx(Container, { children: _.map(
7
+ var _a, _b;
8
+ const [value, set] = useState("");
9
+ useEffect(() => {
10
+ var _a2;
11
+ (_a2 = props.setValue) == null ? void 0 : _a2.call(props, value);
12
+ }, [value, props.inputRef]);
13
+ return /* @__PURE__ */ jsx(Container, { width: (_b = (_a = props.inputRef) == null ? void 0 : _a.current) == null ? void 0 : _b.offsetWidth, children: _.map(
8
14
  props.options,
9
15
  (data, index) => /* @__PURE__ */ jsx(
10
- "option",
16
+ "div",
11
17
  {
12
- value: Object.keys(data),
18
+ className: "input-option",
19
+ onClick: () => set(Object.keys(data)[index]),
13
20
  children: Object.values(data)
14
21
  },
15
22
  index
@@ -34,11 +34,20 @@ __export(styles_exports, {
34
34
  module.exports = __toCommonJS(styles_exports);
35
35
  var import_styled_components = __toESM(require("styled-components"));
36
36
  const Container = import_styled_components.default.div`
37
- width: 20rem;
38
- height: 10rem;
37
+ width: ${({ width }) => width}px;
39
38
  background-color: ${({ theme }) => theme.primary};
40
39
  border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
41
40
  border-radius: 5px;
41
+
42
+ .input-option {
43
+ padding: .5rem .8rem;
44
+ border-radius: 5px;
45
+ cursor: pointer;
46
+
47
+ &:hover {
48
+ background-color: ${({ theme }) => theme.t05};
49
+ }
50
+ }
42
51
  `;
43
52
  // Annotate the CommonJS export names for ESM import in node:
44
53
  0 && (module.exports = {
@@ -1,11 +1,20 @@
1
1
  "use client";
2
2
  import styled from "styled-components";
3
3
  const Container = styled.div`
4
- width: 20rem;
5
- height: 10rem;
4
+ width: ${({ width }) => width}px;
6
5
  background-color: ${({ theme }) => theme.primary};
7
6
  border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
8
7
  border-radius: 5px;
8
+
9
+ .input-option {
10
+ padding: .5rem .8rem;
11
+ border-radius: 5px;
12
+ cursor: pointer;
13
+
14
+ &:hover {
15
+ background-color: ${({ theme }) => theme.t05};
16
+ }
17
+ }
9
18
  `;
10
19
  export {
11
20
  Container
@@ -36,7 +36,7 @@ var import_styled_components = __toESM(require("styled-components"));
36
36
  const Container = import_styled_components.default.div`
37
37
  width: 100%;
38
38
 
39
- .iz-input-content {
39
+ .input-content {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  justify-content: center;
@@ -53,6 +53,7 @@ const Container = import_styled_components.default.div`
53
53
  font-size: .8rem;
54
54
  background-color: ${({ theme }) => theme.primary};
55
55
  color: ${({ theme }) => theme.t6};
56
+ cursor: ${({ focus }) => focus ? "vertical-text" : "pointer"};
56
57
 
57
58
  &:disabled {
58
59
  background-color: ${({ theme }) => theme.t2};
@@ -68,6 +69,9 @@ const Container = import_styled_components.default.div`
68
69
  i {
69
70
  color: ${({ theme }) => theme.t3};
70
71
  cursor: pointer;
72
+ font-size: .9rem;
73
+ padding: 0 .5rem 0 .8rem;
74
+ height: 100%;
71
75
  }
72
76
  }
73
77
  `;
@@ -3,7 +3,7 @@ import styled from "styled-components";
3
3
  const Container = styled.div`
4
4
  width: 100%;
5
5
 
6
- .iz-input-content {
6
+ .input-content {
7
7
  display: flex;
8
8
  align-items: center;
9
9
  justify-content: center;
@@ -20,6 +20,7 @@ const Container = styled.div`
20
20
  font-size: .8rem;
21
21
  background-color: ${({ theme }) => theme.primary};
22
22
  color: ${({ theme }) => theme.t6};
23
+ cursor: ${({ focus }) => focus ? "vertical-text" : "pointer"};
23
24
 
24
25
  &:disabled {
25
26
  background-color: ${({ theme }) => theme.t2};
@@ -35,6 +36,9 @@ const Container = styled.div`
35
36
  i {
36
37
  color: ${({ theme }) => theme.t3};
37
38
  cursor: pointer;
39
+ font-size: .9rem;
40
+ padding: 0 .5rem 0 .8rem;
41
+ height: 100%;
38
42
  }
39
43
  }
40
44
  `;
@@ -52,7 +52,7 @@ function InputText(props) {
52
52
  props.label,
53
53
  props.required ? "*" : ""
54
54
  ] }),
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-input-content", children: [
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "input-content", children: [
56
56
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
57
57
  "input",
58
58
  {
@@ -19,7 +19,7 @@ function InputText(props) {
19
19
  props.label,
20
20
  props.required ? "*" : ""
21
21
  ] }),
22
- /* @__PURE__ */ jsxs("div", { className: "iz-input-content", children: [
22
+ /* @__PURE__ */ jsxs("div", { className: "input-content", children: [
23
23
  /* @__PURE__ */ jsx(
24
24
  "input",
25
25
  {
@@ -36,7 +36,7 @@ var import_styled_components = __toESM(require("styled-components"));
36
36
  const Container = import_styled_components.default.div`
37
37
  width: 100%;
38
38
 
39
- .iz-input-content {
39
+ .input-content {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  justify-content: center;
@@ -3,7 +3,7 @@ import styled from "styled-components";
3
3
  const Container = styled.div`
4
4
  width: 100%;
5
5
 
6
- .iz-input-content {
6
+ .input-content {
7
7
  display: flex;
8
8
  align-items: center;
9
9
  justify-content: center;
@@ -50,7 +50,7 @@ function InputTextarea(props) {
50
50
  props.label,
51
51
  props.required ? "*" : ""
52
52
  ] }),
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-input-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "input-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
54
54
  "textarea",
55
55
  {
56
56
  ...import_lodash.default.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register", "setValue"]),
@@ -17,7 +17,7 @@ function InputTextarea(props) {
17
17
  props.label,
18
18
  props.required ? "*" : ""
19
19
  ] }),
20
- /* @__PURE__ */ jsx("div", { className: "iz-input-content", children: /* @__PURE__ */ jsx(
20
+ /* @__PURE__ */ jsx("div", { className: "input-content", children: /* @__PURE__ */ jsx(
21
21
  "textarea",
22
22
  {
23
23
  ..._.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register", "setValue"]),
@@ -36,7 +36,7 @@ var import_styled_components = __toESM(require("styled-components"));
36
36
  const Container = import_styled_components.default.div`
37
37
  width: 100%;
38
38
 
39
- .iz-input-content {
39
+ .input-content {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  justify-content: center;
@@ -3,7 +3,7 @@ import styled from "styled-components";
3
3
  const Container = styled.div`
4
4
  width: 100%;
5
5
 
6
- .iz-input-content {
6
+ .input-content {
7
7
  display: flex;
8
8
  align-items: center;
9
9
  justify-content: center;
@@ -26,7 +26,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
26
26
  var import_styles = require("./styles");
27
27
  var import_logo = require("../../logo");
28
28
  function LoadingApp(props) {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.Logo, { className: "iz-loading-logo", onlyPrefix: true }) });
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_logo.Logo, { className: "loading-logo", onlyPrefix: true }) });
30
30
  }
31
31
  // Annotate the CommonJS export names for ESM import in node:
32
32
  0 && (module.exports = {
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { Container } from "./styles";
4
4
  import { Logo } from "../../logo";
5
5
  function LoadingApp(props) {
6
- return /* @__PURE__ */ jsx(Container, { ...props, children: /* @__PURE__ */ jsx(Logo, { className: "iz-loading-logo", onlyPrefix: true }) });
6
+ return /* @__PURE__ */ jsx(Container, { ...props, children: /* @__PURE__ */ jsx(Logo, { className: "loading-logo", onlyPrefix: true }) });
7
7
  }
8
8
  export {
9
9
  LoadingApp
@@ -45,7 +45,7 @@ const Container = import_styled_components.default.div`
45
45
  background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
46
46
  z-index: ${({ initialization }) => initialization ? "9" : "0"};
47
47
 
48
- .iz-loading-logo {
48
+ .loading-logo {
49
49
  font-size: 4rem;
50
50
  opacity: 40%;
51
51
  animation: loop 2s infinite;
@@ -12,7 +12,7 @@ const Container = styled.div`
12
12
  background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
13
13
  z-index: ${({ initialization }) => initialization ? "9" : "0"};
14
14
 
15
- .iz-loading-logo {
15
+ .loading-logo {
16
16
  font-size: 4rem;
17
17
  opacity: 40%;
18
18
  animation: loop 2s infinite;
@@ -39,20 +39,20 @@ var import_lodash = __toESM(require("lodash"));
39
39
  function Modal(props) {
40
40
  var _a, _b, _c;
41
41
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { ...import_lodash.default.omit(props, ["className"]), position: props.position || "center", title: "", children: [
42
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-modal-back", onClick: props.onClose }),
43
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-modal-container", children: [
44
- (!!props.title || !!props.header) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-modal-header", children: [
45
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-modal-title", children: [
42
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "modal-back", onClick: props.onClose }),
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "modal-container", children: [
44
+ (!!props.title || !!props.header) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "modal-header", children: [
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "modal-title", children: [
46
46
  ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
47
47
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
48
48
  ] }),
49
49
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
50
50
  ] }),
51
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `iz-modal-content ${props.className || ""}`, children: [
52
- props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `modal-content ${props.className || ""}`, children: [
52
+ props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "modal-close", onClick: props.onClose, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
53
53
  props.children
54
54
  ] }),
55
- props.buttons && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-modal-buttons", children: import_lodash.default.map(
55
+ props.buttons && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "modal-buttons", children: import_lodash.default.map(
56
56
  props.buttons,
57
57
  (button, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Button, { ...button }, index)
58
58
  ) })
@@ -6,20 +6,20 @@ import _ from "lodash";
6
6
  function Modal(props) {
7
7
  var _a, _b, _c;
8
8
  return /* @__PURE__ */ jsxs(Container, { ..._.omit(props, ["className"]), position: props.position || "center", title: "", children: [
9
- /* @__PURE__ */ jsx("div", { className: "iz-modal-back", onClick: props.onClose }),
10
- /* @__PURE__ */ jsxs("div", { className: "iz-modal-container", children: [
11
- (!!props.title || !!props.header) && /* @__PURE__ */ jsxs("div", { className: "iz-modal-header", children: [
12
- /* @__PURE__ */ jsxs("div", { className: "iz-modal-title", children: [
9
+ /* @__PURE__ */ jsx("div", { className: "modal-back", onClick: props.onClose }),
10
+ /* @__PURE__ */ jsxs("div", { className: "modal-container", children: [
11
+ (!!props.title || !!props.header) && /* @__PURE__ */ jsxs("div", { className: "modal-header", children: [
12
+ /* @__PURE__ */ jsxs("div", { className: "modal-title", children: [
13
13
  ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
14
14
  /* @__PURE__ */ jsx("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
15
15
  ] }),
16
16
  /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
17
17
  ] }),
18
- /* @__PURE__ */ jsxs("div", { className: `iz-modal-content ${props.className || ""}`, children: [
19
- props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
18
+ /* @__PURE__ */ jsxs("div", { className: `modal-content ${props.className || ""}`, children: [
19
+ props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx("div", { className: "modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
20
20
  props.children
21
21
  ] }),
22
- props.buttons && /* @__PURE__ */ jsx("div", { className: "iz-modal-buttons", children: _.map(
22
+ props.buttons && /* @__PURE__ */ jsx("div", { className: "modal-buttons", children: _.map(
23
23
  props.buttons,
24
24
  (button, index) => /* @__PURE__ */ jsx(Button, { ...button }, index)
25
25
  ) })
@@ -45,7 +45,7 @@ const Container = import_styled_components.default.div`
45
45
  transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
46
46
  transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
47
47
 
48
- .iz-modal-back {
48
+ .modal-back {
49
49
  width: 100%;
50
50
  height: 100%;
51
51
  background: rgb(0, 0, 0, 0.3);
@@ -54,7 +54,7 @@ const Container = import_styled_components.default.div`
54
54
  position: absolute;
55
55
  }
56
56
 
57
- .iz-modal-container {
57
+ .modal-container {
58
58
  display: flex;
59
59
  flex-direction: column;
60
60
  height: ${(props) => props.position !== "center" ? "100%" : void 0};
@@ -81,14 +81,14 @@ const Container = import_styled_components.default.div`
81
81
  ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
82
82
  }
83
83
 
84
- .iz-modal-header {
84
+ .modal-header {
85
85
  padding: 1rem 1.5rem;
86
86
  display: flex;
87
87
  align-items: center;
88
88
  justify-content: space-between;
89
89
  border-bottom: 1px solid rgb(0, 0, 0, 0.2);
90
90
 
91
- .iz-modal-title {
91
+ .modal-title {
92
92
  color: ${({ theme }) => theme.t6};
93
93
  font-size: 1rem;
94
94
  font-weight: 500;
@@ -113,14 +113,14 @@ const Container = import_styled_components.default.div`
113
113
  }
114
114
  }
115
115
 
116
- .iz-modal-content {
116
+ .modal-content {
117
117
  overflow-x: hidden;
118
118
  overflow-y: overlay;
119
119
  position: relative;
120
120
  height: ${(props) => props.position === "center" ? "initial" : "100%"};
121
121
  padding: ${(props) => props.position === "center" ? "1.5rem" : "0"};
122
122
 
123
- .iz-modal-close {
123
+ .modal-close {
124
124
  position: absolute;
125
125
  color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
126
126
  top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
@@ -143,7 +143,7 @@ const Container = import_styled_components.default.div`
143
143
  }
144
144
  }
145
145
 
146
- .iz-modal-buttons {
146
+ .modal-buttons {
147
147
  padding: 1rem 2rem;
148
148
 
149
149
  @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
@@ -12,7 +12,7 @@ const Container = styled.div`
12
12
  transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
13
13
  transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
14
14
 
15
- .iz-modal-back {
15
+ .modal-back {
16
16
  width: 100%;
17
17
  height: 100%;
18
18
  background: rgb(0, 0, 0, 0.3);
@@ -21,7 +21,7 @@ const Container = styled.div`
21
21
  position: absolute;
22
22
  }
23
23
 
24
- .iz-modal-container {
24
+ .modal-container {
25
25
  display: flex;
26
26
  flex-direction: column;
27
27
  height: ${(props) => props.position !== "center" ? "100%" : void 0};
@@ -48,14 +48,14 @@ const Container = styled.div`
48
48
  ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
49
49
  }
50
50
 
51
- .iz-modal-header {
51
+ .modal-header {
52
52
  padding: 1rem 1.5rem;
53
53
  display: flex;
54
54
  align-items: center;
55
55
  justify-content: space-between;
56
56
  border-bottom: 1px solid rgb(0, 0, 0, 0.2);
57
57
 
58
- .iz-modal-title {
58
+ .modal-title {
59
59
  color: ${({ theme }) => theme.t6};
60
60
  font-size: 1rem;
61
61
  font-weight: 500;
@@ -80,14 +80,14 @@ const Container = styled.div`
80
80
  }
81
81
  }
82
82
 
83
- .iz-modal-content {
83
+ .modal-content {
84
84
  overflow-x: hidden;
85
85
  overflow-y: overlay;
86
86
  position: relative;
87
87
  height: ${(props) => props.position === "center" ? "initial" : "100%"};
88
88
  padding: ${(props) => props.position === "center" ? "1.5rem" : "0"};
89
89
 
90
- .iz-modal-close {
90
+ .modal-close {
91
91
  position: absolute;
92
92
  color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
93
93
  top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
@@ -110,7 +110,7 @@ const Container = styled.div`
110
110
  }
111
111
  }
112
112
 
113
- .iz-modal-buttons {
113
+ .modal-buttons {
114
114
  padding: 1rem 2rem;
115
115
 
116
116
  @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
@@ -69,9 +69,9 @@ function Table(props) {
69
69
  "div",
70
70
  {
71
71
  className: `
72
- iz-table-content
73
- ${((_a2 = option.row) == null ? void 0 : _a2.actions) ? "iz-table-action" : ""}
74
- ${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "iz-table-identifier" : ""}
72
+ table-content
73
+ ${((_a2 = option.row) == null ? void 0 : _a2.actions) ? "table-action" : ""}
74
+ ${((_b2 = option.row) == null ? void 0 : _b2.icon) ? "table-identifier" : ""}
75
75
  `,
76
76
  style: import_lodash.default.isFunction((_c2 = option.row) == null ? void 0 : _c2.style) ? option.row.style(data, option) : (_d2 = option.row) == null ? void 0 : _d2.style,
77
77
  children: renderRowContent(data, option)
@@ -81,13 +81,13 @@ function Table(props) {
81
81
  const renderRowContent = (data, option) => {
82
82
  var _a2, _b2, _c2, _d2, _e2;
83
83
  if (!!((_a2 = option.row) == null ? void 0 : _a2.actions)) {
84
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-table-actions", children: import_lodash.default.map(
84
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "table-actions", children: import_lodash.default.map(
85
85
  (_b2 = option.row) == null ? void 0 : _b2.actions,
86
86
  (action, index) => renderButton(action, data, index)
87
87
  ) });
88
88
  }
89
89
  if ((_c2 = option.row) == null ? void 0 : _c2.icon) {
90
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-table-icon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
90
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "table-icon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
91
  "i",
92
92
  {
93
93
  "aria-hidden": true,
@@ -101,7 +101,7 @@ function Table(props) {
101
101
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
102
  "button",
103
103
  {
104
- className: `iz-table-button ${import_lodash.default.includes(action.icon, "trash") ? "negative" : ""}`,
104
+ className: `table-button ${import_lodash.default.includes(action.icon, "trash") ? "negative" : ""}`,
105
105
  onClick: () => action.function ? action.function(data) : null,
106
106
  disabled: action.disabled,
107
107
  "data-tooltip": action.tooltip,
@@ -124,7 +124,7 @@ function Table(props) {
124
124
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
125
125
  "div",
126
126
  {
127
- className: "iz-table-content-elipse",
127
+ className: "table-content-elipse",
128
128
  "data-tooltip": import_lodash.default.isString(body) ? body : "",
129
129
  "data-tooltip-props": '{"position":"bottom"}',
130
130
  children: body
@@ -132,7 +132,7 @@ function Table(props) {
132
132
  );
133
133
  };
134
134
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { notFound: !((_b = props.content) == null ? void 0 : _b.length) && !props.loading, children: [
135
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "iz-table-container", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", { children: [
135
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "table-container", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", { children: [
136
136
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { children: import_lodash.default.map(
137
137
  props.options,
138
138
  (option, index) => {
@@ -140,7 +140,7 @@ function Table(props) {
140
140
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("th", { style: (_a2 = option.column) == null ? void 0 : _a2.style, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
141
141
  "div",
142
142
  {
143
- className: `iz-table-content ${((_b2 = option.column) == null ? void 0 : _b2.action) ? `iz-table-action ${((_d2 = (_c2 = option.column) == null ? void 0 : _c2.action) == null ? void 0 : _d2.position) ? (_f2 = (_e2 = option.column) == null ? void 0 : _e2.action) == null ? void 0 : _f2.position : ""}` : ""}`,
143
+ className: `table-content ${((_b2 = option.column) == null ? void 0 : _b2.action) ? `table-action ${((_d2 = (_c2 = option.column) == null ? void 0 : _c2.action) == null ? void 0 : _d2.position) ? (_f2 = (_e2 = option.column) == null ? void 0 : _e2.action) == null ? void 0 : _f2.position : ""}` : ""}`,
144
144
  children: !!((_g = option.column) == null ? void 0 : _g.action) ? renderButton(option.column.action) : !((_h = props.content) == null ? void 0 : _h.length) && !props.loading ? "" : import_lodash.default.isString(((_i = option.column) == null ? void 0 : _i.name) || option.column) ? ((_j = option.column) == null ? void 0 : _j.name) || option.column : ""
145
145
  }
146
146
  ) }, index);
@@ -158,7 +158,7 @@ function Table(props) {
158
158
  ) }, index);
159
159
  }) }, key)) : import_lodash.default.map(props.content, (data, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { children: import_lodash.default.map(props.options, (option, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("td", { onClick: () => index < 2 ? onShowLine(key) : null, children: renderRowContainer(data, option) }, index)) }, key)) })
160
160
  ] }) }),
161
- !((_d = props.content) == null ? void 0 : _d.length) && !props.loading && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "iz-table-not-found", children: [
161
+ !((_d = props.content) == null ? void 0 : _d.length) && !props.loading && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "table-not-found", children: [
162
162
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: ((_e = props.notFound) == null ? void 0 : _e.title) || "Nenhuma campanha encontrado" }),
163
163
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: ((_f = props.notFound) == null ? void 0 : _f.message) || "Envie uma campanha de marketing para aparecer algum registro" })
164
164
  ] }),