lawgic-dev-kit 0.10.0 → 0.10.4

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 (35) hide show
  1. package/dist/_virtual/index2.js +2 -3
  2. package/dist/_virtual/index3.js +2 -3
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index5.js +3 -2
  5. package/dist/_virtual/index6.js +5 -2
  6. package/dist/_virtual/index7.js +2 -2
  7. package/dist/_virtual/index8.js +2 -2
  8. package/dist/components/atoms/Button/Button.styles.js +1 -1
  9. package/dist/components/atoms/CenterModal/CenterModal.js +4 -4
  10. package/dist/components/atoms/IconButton/IconButton.styles.js +1 -1
  11. package/dist/components/atoms/ProgressBar/ProgressBar.js +1 -1
  12. package/dist/components/atoms/SectionButton/desktop/SectionButton.styles.js +1 -1
  13. package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +1 -1
  14. package/dist/components/atoms/SidebarButton/SidebarButton.d.ts +10 -0
  15. package/dist/components/atoms/SidebarButton/SidebarButton.js +49 -0
  16. package/dist/components/atoms/SidebarButton/index.d.ts +1 -10
  17. package/dist/components/atoms/TextButton/TextButton.styles.js +1 -1
  18. package/dist/components/atoms/index.d.ts +0 -1
  19. package/dist/components/molecules/AlertModal/AlertModal.js +3 -3
  20. package/dist/components/molecules/DialogModal/DialogModal.js +45 -44
  21. package/dist/components/molecules/Dropdown/Dropdown.js +1 -1
  22. package/dist/index.js +114 -116
  23. package/dist/lawgic-dev-kit.css +1 -1
  24. package/dist/lawgic-dev-kit.umd.js +83 -72
  25. package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +7 -2
  26. package/dist/node_modules/prop-types/index.js +1 -1
  27. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  28. package/dist/node_modules/scheduler/index.js +1 -1
  29. package/dist/node_modules/toposort/index.js +1 -1
  30. package/dist/node_modules/yup/index.esm.js +3 -3
  31. package/package.json +1 -1
  32. package/dist/components/atoms/FullLogo/FullLogo.d.ts +0 -3
  33. package/dist/components/atoms/FullLogo/FullLogo.js +0 -21
  34. package/dist/components/atoms/FullLogo/index.d.ts +0 -1
  35. package/dist/src/components/atoms/index.d.ts +0 -34
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/property-expr/index.js";
2
- var e = r();
1
+ var e = { exports: {} };
3
2
  export {
4
- e as p
3
+ e as __module
5
4
  };
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/tiny-case/index.js";
2
- var a = r();
1
+ var p = { exports: {} };
3
2
  export {
4
- a as t
3
+ p as __module
5
4
  };
@@ -1,7 +1,5 @@
1
- import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
- import { __require as r } from "../node_modules/toposort/index.js";
3
- var t = r();
4
- const s = /* @__PURE__ */ o(t);
1
+ import { __require as r } from "../node_modules/property-expr/index.js";
2
+ var e = r();
5
3
  export {
6
- s as default
4
+ e as p
7
5
  };
@@ -1,4 +1,5 @@
1
- var e = { exports: {} };
1
+ import { __require as r } from "../node_modules/tiny-case/index.js";
2
+ var a = r();
2
3
  export {
3
- e as __module
4
+ a as t
4
5
  };
@@ -1,4 +1,7 @@
1
- var p = { exports: {} };
1
+ import { getDefaultExportFromCjs as o } from "./_commonjsHelpers.js";
2
+ import { __require as r } from "../node_modules/toposort/index.js";
3
+ var t = r();
4
+ const s = /* @__PURE__ */ o(t);
2
5
  export {
3
- p as __module
6
+ s as default
4
7
  };
@@ -1,4 +1,4 @@
1
- var o = { exports: {} };
1
+ var e = { exports: {} };
2
2
  export {
3
- o as __module
3
+ e as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var o = { exports: {} };
2
2
  export {
3
- e as __module
3
+ o as __module
4
4
  };
@@ -19,7 +19,7 @@ const i = {
19
19
  transparent: "bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",
20
20
  outline: "bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",
21
21
  invisible: "text-gray-500 hover:text-gray-600 active:text-gray-700"
22
- }, l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-[600] text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300", s = {
22
+ }, l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300", s = {
23
23
  lg: "gap-12 px-24 py-8 text-lg",
24
24
  base: "gap-8 px-20 py-7",
25
25
  md: "gap-8 px-16 py-6",
@@ -37,7 +37,7 @@ const b = ({
37
37
  return /* @__PURE__ */ i.jsx(p, { children: n && /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(
38
38
  s.div,
39
39
  {
40
- className: "fixed inset-0 bg-black bg-opacity-50 z-9999 flex items-center justify-center",
40
+ className: "fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",
41
41
  initial: "hidden",
42
42
  animate: "visible",
43
43
  exit: "hidden",
@@ -46,13 +46,13 @@ const b = ({
46
46
  children: /* @__PURE__ */ i.jsx(
47
47
  s.div,
48
48
  {
49
- className: "w-full max-w-screen-md mx-16 z-50",
49
+ className: "w-full max-w-lg mx-16 z-50",
50
50
  variants: r,
51
51
  initial: "hidden",
52
52
  animate: "visible",
53
53
  exit: "exit",
54
54
  onClick: (l) => l.stopPropagation(),
55
- children: /* @__PURE__ */ i.jsxs(m, { className: "flex flex-col gap-16 md:gap-24 !p-0", children: [
55
+ children: /* @__PURE__ */ i.jsxs(m, { className: "flex flex-col gap-16 md:gap-24 p-0!", children: [
56
56
  /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-16 md:gap-24 md:p-32 md:pb-0", children: [
57
57
  /* @__PURE__ */ i.jsxs("div", { className: "flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0", children: [
58
58
  t && /* @__PURE__ */ i.jsx("h2", { className: "text-black font-700 text-2xl", children: t }),
@@ -65,7 +65,7 @@ const b = ({
65
65
  }
66
66
  )
67
67
  ] }),
68
- t && /* @__PURE__ */ i.jsx(x, { className: "!bg-gray-100" })
68
+ t && /* @__PURE__ */ i.jsx(x, { className: "bg-gray-100!" })
69
69
  ] }),
70
70
  /* @__PURE__ */ i.jsx("div", { className: "flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4", children: typeof a == "function" ? a(e) : a })
71
71
  ] })
@@ -1,6 +1,6 @@
1
1
  import { clsx as a } from "../../../node_modules/clsx/dist/clsx.js";
2
2
  import { grayVariants as m, redVariants as t, aquaVariants as p, blueVariants as r } from "../Button/Button.styles.js";
3
- const l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-[600] leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300", h = {
3
+ const l = "transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300", h = {
4
4
  lg: "min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",
5
5
  base: "min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",
6
6
  md: "min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",
@@ -12,7 +12,7 @@ const r = ({
12
12
  style: { width: `${s}%` }
13
13
  }
14
14
  ) }),
15
- l && /* @__PURE__ */ e.jsxs("span", { className: "text-sm text-gray-400 font-[500]", children: [
15
+ l && /* @__PURE__ */ e.jsxs("span", { className: "text-sm text-gray-400 font-500", children: [
16
16
  s,
17
17
  "%"
18
18
  ] })
@@ -1,5 +1,5 @@
1
1
  import { clsx as t } from "../../../../node_modules/clsx/dist/clsx.js";
2
- const s = "w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-[600] bg-transparent", o = {
2
+ const s = "w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent", o = {
3
3
  true: "bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50",
4
4
  false: "text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"
5
5
  }, r = (e = !1) => t(
@@ -1,5 +1,5 @@
1
1
  import { clsx as e } from "../../../../node_modules/clsx/dist/clsx.js";
2
- const s = "w-fit transition-colors ease-in-out duration-150 flex gap-10 items-center justify-center text-xs rounded-full font-[600] bg-transparent", n = {
2
+ const s = "w-fit transition-colors ease-in-out duration-150 flex gap-10 items-center justify-center text-xs rounded-full font-600 bg-transparent", n = {
3
3
  true: "text-blue-500",
4
4
  false: "text-gray-800 hover:text-blue-500 active:text-blue-500"
5
5
  }, o = "bg-transparent p-16", r = {
@@ -0,0 +1,10 @@
1
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
+ declare const SidebarButton: ({ active, icon, label, onClick, expanded, disabled, }: {
3
+ active: boolean;
4
+ icon: IconProp;
5
+ label: string;
6
+ onClick: () => void;
7
+ expanded: boolean;
8
+ disabled?: boolean;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default SidebarButton;
@@ -0,0 +1,49 @@
1
+ import { j as o } from "../../../_virtual/jsx-runtime.js";
2
+ import { FontAwesomeIcon as i } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
3
+ const p = ({
4
+ active: t,
5
+ icon: r,
6
+ label: l,
7
+ onClick: a,
8
+ expanded: e,
9
+ disabled: n = !1
10
+ }) => /* @__PURE__ */ o.jsxs(
11
+ "div",
12
+ {
13
+ onClick: () => a(),
14
+ className: `
15
+ flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
16
+ ${!e && "w-fit"} hover:bg-[#ECF1FD] ${n ? "cursor-not-allowed opacity-50" : "cursor-pointer"} ${t ? "text-[#4570EB] bg-[#ECF1FD]" : "bg-transparent"}`,
17
+ children: [
18
+ /* @__PURE__ */ o.jsx(
19
+ i,
20
+ {
21
+ icon: r,
22
+ color: t ? "#4570EB" : "#00000",
23
+ style: {
24
+ height: "16px"
25
+ }
26
+ }
27
+ ),
28
+ /* @__PURE__ */ o.jsx(
29
+ "h4",
30
+ {
31
+ className: `
32
+ text-md
33
+ leading-none
34
+ font-600
35
+ w-[0px]
36
+ text-nowrap
37
+ transition-all duration-100 ease-in-out
38
+ opacity-0 capitalize
39
+ ${e && "translate-x-0 opacity-100 !w-full !h-auto ml-8"}
40
+ ${t && "text-lightblue"} `,
41
+ children: l
42
+ }
43
+ )
44
+ ]
45
+ }
46
+ );
47
+ export {
48
+ p as default
49
+ };
@@ -1,10 +1 @@
1
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- declare const SidebarButton: ({ active, icon, label, onClick, expanded, disabled, }: {
3
- active: boolean;
4
- icon: IconProp;
5
- label: string;
6
- onClick: () => void;
7
- expanded: boolean;
8
- disabled?: boolean;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export default SidebarButton;
1
+ export { default as SidebarButton } from './SidebarButton';
@@ -1,5 +1,5 @@
1
1
  import { clsx as e } from "../../../node_modules/clsx/dist/clsx.js";
2
- const a = "transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-[600] leading-normal disabled:cursor-not-allowed disabled:text-gray-300", r = {
2
+ const a = "transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300", r = {
3
3
  blue: "text-blue-500 hover:text-blue-600 active:text-blue-700",
4
4
  aqua: "text-aqua-500 hover:text-aqua-600 active:text-aqua-700",
5
5
  red: "text-red-500 hover:text-red-600 active:text-red-700",
@@ -10,7 +10,6 @@ export * from './CountryInput/index';
10
10
  export * from './CountryLabel/index';
11
11
  export * from './CountrySelectInput/index';
12
12
  export * from './Divider/index';
13
- export * from './FullLogo/index';
14
13
  export * from './IconButton/index';
15
14
  export * from './ImageProfileInput/index';
16
15
  export * from './IndexedStep/index';
@@ -55,7 +55,7 @@ const M = ({
55
55
  return /* @__PURE__ */ t.jsx(u, { children: o && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
56
56
  n.div,
57
57
  {
58
- className: "fixed inset-0 bg-black bg-opacity-50 z-9999 flex items-center justify-center",
58
+ className: "fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",
59
59
  initial: "hidden",
60
60
  animate: "visible",
61
61
  exit: "hidden",
@@ -89,7 +89,7 @@ const M = ({
89
89
  {
90
90
  onClick: d,
91
91
  variant: "transparent",
92
- className: "px-24 !py-10 !text-lg",
92
+ className: "px-24 py-10! text-lg!",
93
93
  children: e("cancel")
94
94
  }
95
95
  ),
@@ -97,7 +97,7 @@ const M = ({
97
97
  a,
98
98
  {
99
99
  onClick: p,
100
- className: "px-24 py-16 !text-lg",
100
+ className: "px-24 py-16 text-lg!",
101
101
  children: e("confirm")
102
102
  }
103
103
  )
@@ -1,30 +1,31 @@
1
1
  import { j as i } from "../../../_virtual/jsx-runtime.js";
2
- import { faX as j } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
3
- import { FontAwesomeIcon as t } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
2
+ import { faX as u } from "../../../node_modules/@fortawesome/pro-light-svg-icons/index.js";
3
+ import { FontAwesomeIcon as a } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
4
  import "react";
5
5
  import "../../../_virtual/lodash.js";
6
- import "../../../contexts/themeContext.js";
6
+ import { useTheme as y } from "../../../hooks/useTheme.js";
7
+ import { faCheck as v } from "../../../node_modules/@fortawesome/pro-solid-svg-icons/index.js";
7
8
  import "react-hook-form";
8
- import y from "../../atoms/BoxContainer/BoxContainer.js";
9
+ import g from "../../atoms/BoxContainer/BoxContainer.js";
9
10
  import "react-dom";
10
- import a from "../../atoms/Button/Button.js";
11
+ import l from "../../atoms/Button/Button.js";
11
12
  import "../../../constants/countries.js";
12
13
  import "../../atoms/ImageProfileInput/ImageProfileInput.validators.js";
13
- import { AnimatePresence as u } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
14
- import { motion as s } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
15
- const E = ({
14
+ import { AnimatePresence as N } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js";
15
+ import { motion as r } from "../../../node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js";
16
+ const T = ({
16
17
  title: n,
17
- description: l,
18
- open: r,
18
+ description: c,
19
+ open: o,
19
20
  onClose: e,
20
- onConfirm: c,
21
- onCancel: o,
22
- icon: x
21
+ onConfirm: m,
22
+ onCancel: t,
23
+ icon: x = v
23
24
  }) => {
24
- const m = {
25
+ const d = {
25
26
  hidden: { opacity: 0 },
26
27
  visible: { opacity: 1 }
27
- }, d = {
28
+ }, f = {
28
29
  hidden: {
29
30
  opacity: 0,
30
31
  scale: 0.8,
@@ -49,40 +50,40 @@ const E = ({
49
50
  }
50
51
  }
51
52
  }, p = () => {
52
- c(), e();
53
- }, f = () => {
54
- o(), e();
55
- };
56
- return /* @__PURE__ */ i.jsx(u, { children: r && /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(
57
- s.div,
53
+ m(), e();
54
+ }, h = () => {
55
+ t == null || t(), e();
56
+ }, { t: s } = y();
57
+ return /* @__PURE__ */ i.jsx(N, { children: o && /* @__PURE__ */ i.jsx(i.Fragment, { children: /* @__PURE__ */ i.jsx(
58
+ r.div,
58
59
  {
59
- className: "fixed inset-0 bg-black bg-opacity-50 z-9999 flex items-center justify-center",
60
+ className: "fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",
60
61
  initial: "hidden",
61
62
  animate: "visible",
62
63
  exit: "hidden",
63
- variants: m,
64
+ variants: d,
64
65
  onClick: e,
65
66
  children: /* @__PURE__ */ i.jsx(
66
- s.div,
67
+ r.div,
67
68
  {
68
- className: "w-full max-w-4xl mx-16 z-50",
69
- variants: d,
69
+ className: "w-full max-w-sm mx-16 z-50",
70
+ variants: f,
70
71
  initial: "hidden",
71
72
  animate: "visible",
72
73
  exit: "exit",
73
- onClick: (h) => h.stopPropagation(),
74
- children: /* @__PURE__ */ i.jsxs(y, { className: "flex flex-col gap-20 p-32", children: [
74
+ onClick: (j) => j.stopPropagation(),
75
+ children: /* @__PURE__ */ i.jsxs(g, { className: "flex flex-col gap-20 p-32", children: [
75
76
  /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col", children: [
76
77
  /* @__PURE__ */ i.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ i.jsx(
77
- t,
78
+ a,
78
79
  {
79
- icon: j,
80
+ icon: u,
80
81
  className: "cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",
81
82
  onClick: e
82
83
  }
83
84
  ) }),
84
85
  /* @__PURE__ */ i.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ i.jsx("div", { className: "bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center", children: /* @__PURE__ */ i.jsx(
85
- t,
86
+ a,
86
87
  {
87
88
  icon: x,
88
89
  className: "w-32 h-36 min-h-36 min-w-36 text-blue-500",
@@ -90,27 +91,27 @@ const E = ({
90
91
  }
91
92
  ) }) })
92
93
  ] }),
93
- /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-20 items-center", children: [
94
- /* @__PURE__ */ i.jsxs("div", { children: [
95
- /* @__PURE__ */ i.jsx("h3", { className: "text-black font-700 text-3xl", children: n }),
96
- /* @__PURE__ */ i.jsx("p", { className: "text-gray-500 text-xl font-600", children: l })
94
+ /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-20 items-center justify-center", children: [
95
+ /* @__PURE__ */ i.jsxs("div", { className: "text-center w-full", children: [
96
+ /* @__PURE__ */ i.jsx("h3", { className: "text-black font-700 text-3xl w-full", children: n }),
97
+ /* @__PURE__ */ i.jsx("p", { className: "text-gray-500 text-xl font-600 w-full", children: c })
97
98
  ] }),
98
99
  /* @__PURE__ */ i.jsxs("div", { className: "flex justify-center w-full gap-16", children: [
99
- /* @__PURE__ */ i.jsx(
100
- a,
100
+ !!t && /* @__PURE__ */ i.jsx(
101
+ l,
101
102
  {
102
- onClick: f,
103
+ size: "lg",
104
+ onClick: h,
103
105
  variant: "transparent",
104
- className: "px-36 !py-10 !text-lg",
105
- children: "Cancel"
106
+ children: s("cancel")
106
107
  }
107
108
  ),
108
109
  /* @__PURE__ */ i.jsx(
109
- a,
110
+ l,
110
111
  {
112
+ size: "lg",
111
113
  onClick: p,
112
- className: "px-32 py-16 !text-lg",
113
- children: "Confirm"
114
+ children: s("confirm")
114
115
  }
115
116
  )
116
117
  ] })
@@ -122,5 +123,5 @@ const E = ({
122
123
  ) }) });
123
124
  };
124
125
  export {
125
- E as default
126
+ T as default
126
127
  };
@@ -45,7 +45,7 @@ const i = {
45
45
  transition-all duration-200 ease-in-out ${d} focus:outline-none hover:bg-gray-50/50
46
46
  flex items-center gap-2 group w-full justify-between`,
47
47
  children: [
48
- /* @__PURE__ */ e.jsx("span", { className: "truncate text-nowrap text-lg md:text-xl font-[700]", children: x(t) }),
48
+ /* @__PURE__ */ e.jsx("span", { className: "truncate text-nowrap text-lg md:text-xl font-700", children: x(t) }),
49
49
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-10 items-center", children: [
50
50
  /* @__PURE__ */ e.jsx("span", { className: "text-gray-500 font-normal text-base md:text-lg", children: l }),
51
51
  /* @__PURE__ */ e.jsx(y, { isOpen: o })