lawgic-dev-kit 0.16.8 → 0.17.2

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 (224) hide show
  1. package/dist/_virtual/index2.js +2 -3
  2. package/dist/_virtual/index3.js +3 -3
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index5.js +5 -2
  5. package/dist/_virtual/index6.js +2 -2
  6. package/dist/_virtual/index7.js +2 -2
  7. package/dist/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
  8. package/dist/components/atoms/CircleProgress/CircleProgress.js +78 -0
  9. package/dist/components/atoms/CircleProgress/index.d.ts +1 -0
  10. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +20 -19
  11. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +1 -0
  12. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +11 -1
  13. package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +1 -0
  14. package/dist/components/atoms/Switch/Switch.d.ts +7 -0
  15. package/dist/components/atoms/Switch/Switch.js +33 -0
  16. package/dist/components/atoms/Switch/index.d.ts +1 -0
  17. package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.js +52 -59
  18. package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +6 -2
  19. package/dist/components/atoms/{TresholdProgressBar/TresholdProgressBar.d.ts → ThresholdProgressBar/ThresholdProgressBar.d.ts} +1 -1
  20. package/dist/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
  21. package/dist/components/atoms/index.d.ts +3 -1
  22. package/dist/components/molecules/Dropdown/Dropdown.js +7 -7
  23. package/dist/index.js +71 -67
  24. package/dist/lawgic-dev-kit.css +1 -1
  25. package/dist/lawgic-dev-kit.umd.js +64 -55
  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/toposort/index.js +1 -1
  29. package/dist/node_modules/yup/index.esm.js +3 -3
  30. package/dist/src/Root.d.ts +2 -0
  31. package/dist/src/app.d.ts +1 -0
  32. package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
  33. package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
  34. package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
  35. package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
  36. package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
  37. package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
  38. package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
  39. package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
  40. package/dist/src/components/atoms/Button/Button.d.ts +4 -0
  41. package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
  42. package/dist/src/components/atoms/Button/Button.types.d.ts +12 -0
  43. package/dist/src/components/atoms/Button/index.d.ts +1 -0
  44. package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
  45. package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +6 -0
  46. package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
  47. package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +12 -0
  48. package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
  49. package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
  50. package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
  51. package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
  52. package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
  53. package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
  54. package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
  55. package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
  56. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
  57. package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
  58. package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
  59. package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
  60. package/dist/src/components/atoms/Divider/index.d.ts +1 -0
  61. package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
  62. package/dist/src/components/atoms/FloatingCard/FloatingCard.types.d.ts +9 -0
  63. package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
  64. package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
  65. package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
  66. package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
  67. package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
  68. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
  69. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
  70. package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
  71. package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
  72. package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
  73. package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
  74. package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
  75. package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
  76. package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
  77. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
  78. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +3 -0
  79. package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
  80. package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
  81. package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +12 -0
  82. package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
  83. package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
  84. package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
  85. package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
  86. package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
  87. package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
  88. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -0
  89. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
  90. package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
  91. package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
  92. package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
  93. package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
  94. package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
  95. package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
  96. package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
  97. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
  98. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +2 -0
  99. package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -0
  100. package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
  101. package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
  102. package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +3 -0
  103. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
  104. package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
  105. package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
  106. package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +4 -0
  107. package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +24 -0
  108. package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
  109. package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
  110. package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
  111. package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
  112. package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
  113. package/dist/src/components/atoms/Switch/index.d.ts +1 -0
  114. package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
  115. package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
  116. package/dist/src/components/atoms/Tab/Tab.types.d.ts +10 -0
  117. package/dist/src/components/atoms/Tab/index.d.ts +1 -0
  118. package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
  119. package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
  120. package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
  121. package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
  122. package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
  123. package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +12 -0
  124. package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
  125. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
  126. package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
  127. package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
  128. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
  129. package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
  130. package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
  131. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
  132. package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
  133. package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
  134. package/dist/src/components/atoms/Toast/Toast.d.ts +21 -0
  135. package/dist/src/components/atoms/Toast/index.d.ts +1 -0
  136. package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +4 -0
  137. package/dist/src/components/atoms/Tooltip/Tooltip.types.d.ts +9 -0
  138. package/dist/src/components/atoms/Tooltip/index.d.ts +1 -0
  139. package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +18 -0
  140. package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
  141. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
  142. package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +13 -0
  143. package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
  144. package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
  145. package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +35 -0
  146. package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
  147. package/dist/src/components/atoms/index.d.ts +3 -1
  148. package/dist/src/components/index.d.ts +3 -0
  149. package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
  150. package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
  151. package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
  152. package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +11 -0
  153. package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +6 -0
  154. package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
  155. package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
  156. package/dist/src/components/molecules/DateInput/DateInput.d.ts +13 -0
  157. package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
  158. package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
  159. package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
  160. package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
  161. package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
  162. package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
  163. package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
  164. package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
  165. package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
  166. package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
  167. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
  168. package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +11 -0
  169. package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
  170. package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
  171. package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
  172. package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
  173. package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
  174. package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
  175. package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
  176. package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
  177. package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
  178. package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +11 -0
  179. package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +9 -0
  180. package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
  181. package/dist/src/components/molecules/Tabs/Tabs.d.ts +20 -0
  182. package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
  183. package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +12 -0
  184. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
  185. package/dist/src/components/molecules/index.d.ts +15 -0
  186. package/dist/src/components/organisms/index.d.ts +1 -0
  187. package/dist/src/constants/countries.d.ts +30 -0
  188. package/dist/src/contexts/index.d.ts +1 -0
  189. package/dist/src/contexts/themeContext.d.ts +3 -0
  190. package/dist/src/hooks/index.d.ts +1 -0
  191. package/dist/src/hooks/useTheme.d.ts +1 -0
  192. package/dist/src/index.d.ts +8 -0
  193. package/dist/src/lab/Laboratory.d.ts +2 -0
  194. package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
  195. package/dist/src/lab/index.lab.d.ts +1 -0
  196. package/dist/src/providers/ThemeProvider.d.ts +7 -0
  197. package/dist/src/providers/index.d.ts +1 -0
  198. package/dist/src/themes/default.d.ts +2 -0
  199. package/dist/src/themes/index.d.ts +2 -0
  200. package/dist/src/themes/types.d.ts +6 -0
  201. package/dist/src/types/baseModalProps.d.ts +4 -0
  202. package/dist/src/types/display.d.ts +2 -0
  203. package/dist/src/types/fileInfo.d.ts +2 -0
  204. package/dist/src/types/i18n.d.ts +1 -0
  205. package/dist/src/types/index.d.ts +9 -0
  206. package/dist/src/types/modal.d.ts +34 -0
  207. package/dist/src/types/modalType.d.ts +1 -0
  208. package/dist/src/types/navbarOption.d.ts +7 -0
  209. package/dist/src/types/sidebarOption.d.ts +7 -0
  210. package/dist/src/types/styleValues.d.ts +4 -0
  211. package/dist/src/types/toast.d.ts +26 -0
  212. package/dist/src/utils/dates.d.ts +1 -0
  213. package/dist/src/utils/files.d.ts +8 -0
  214. package/dist/src/utils/images.d.ts +1 -0
  215. package/dist/src/utils/index.d.ts +7 -0
  216. package/dist/src/utils/modal.d.ts +13 -0
  217. package/dist/src/utils/renderContentOptions.d.ts +3 -0
  218. package/dist/src/utils/strings.d.ts +2 -0
  219. package/dist/src/utils/toast.d.ts +15 -0
  220. package/dist/vite.config.d.ts +2 -0
  221. package/package.json +1 -1
  222. package/dist/components/atoms/TresholdProgressBar/index.d.ts +0 -1
  223. /package/dist/components/atoms/{TresholdProgressBar/TresholdProgressBar.js → ThresholdProgressBar/ThresholdProgressBar.js} +0 -0
  224. /package/dist/components/atoms/{TresholdProgressBar/TresholdProgressBar.types.d.ts → ThresholdProgressBar/ThresholdProgressBar.types.d.ts} +0 -0
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/property-expr/index.js";
2
- var e = r();
1
+ var p = { exports: {} };
3
2
  export {
4
- e as p
3
+ p as __module
5
4
  };
@@ -1,5 +1,5 @@
1
- import { __require as r } from "../node_modules/tiny-case/index.js";
2
- var a = r();
1
+ import { __require as r } from "../node_modules/property-expr/index.js";
2
+ var e = r();
3
3
  export {
4
- a as t
4
+ e as p
5
5
  };
@@ -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/tiny-case/index.js";
2
+ var a = r();
5
3
  export {
6
- s as default
4
+ a as t
7
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
  };
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ interface CircleProgressProps {
3
+ progress?: number;
4
+ label?: string;
5
+ showPercentage?: boolean;
6
+ progressLabel?: string;
7
+ color?: string;
8
+ backgroundColor?: string;
9
+ labelClassName?: string;
10
+ percentaeLabel?: string;
11
+ percentageLabelClassName?: string;
12
+ showPercentageLabel?: boolean;
13
+ percentageClassName?: string;
14
+ className?: string;
15
+ percentageLabel?: string;
16
+ size?: number;
17
+ strokeWidth?: number;
18
+ clockwise?: boolean;
19
+ startAngle?: number;
20
+ }
21
+ declare const CircleProgress: React.FC<CircleProgressProps>;
22
+ export default CircleProgress;
@@ -0,0 +1,78 @@
1
+ import { j as t } from "../../../_virtual/jsx-runtime.js";
2
+ const E = ({
3
+ progress: l = 0,
4
+ showPercentage: x = !0,
5
+ size: s = 120,
6
+ strokeWidth: r = 8,
7
+ color: m = "#4570EB",
8
+ backgroundColor: d = "#E4E4E7",
9
+ label: n,
10
+ className: h = "",
11
+ labelClassName: f = "",
12
+ percentageLabel: o = "",
13
+ percentageClassName: j = "",
14
+ showPercentageLabel: u = !1,
15
+ percentageLabelClassName: y = "",
16
+ clockwise: p = !0,
17
+ startAngle: N = -90
18
+ }) => {
19
+ const i = Math.min(100, Math.max(0, l)), e = s / 2, a = (s - r) / 2, c = 2 * Math.PI * a, $ = c, v = c - i / 100 * c, g = `rotate(${N} ${e} ${e}) scale(${p ? 1 : -1}, 1)`;
20
+ return /* @__PURE__ */ t.jsxs("div", { className: `flex flex-col items-center gap-2 ${h}`, children: [
21
+ /* @__PURE__ */ t.jsxs("div", { className: "relative", style: { width: s, height: s }, children: [
22
+ /* @__PURE__ */ t.jsxs(
23
+ "svg",
24
+ {
25
+ width: s,
26
+ height: s,
27
+ className: "transform -rotate-90",
28
+ viewBox: `0 0 ${s} ${s}`,
29
+ children: [
30
+ /* @__PURE__ */ t.jsx(
31
+ "circle",
32
+ {
33
+ cx: e,
34
+ cy: e,
35
+ r: a,
36
+ fill: "transparent",
37
+ stroke: d,
38
+ strokeWidth: r,
39
+ className: "opacity-20"
40
+ }
41
+ ),
42
+ /* @__PURE__ */ t.jsx(
43
+ "circle",
44
+ {
45
+ cx: e,
46
+ cy: e,
47
+ r: a,
48
+ fill: "transparent",
49
+ stroke: m,
50
+ strokeWidth: r,
51
+ strokeDasharray: $,
52
+ strokeDashoffset: v,
53
+ strokeLinecap: "round",
54
+ transform: g,
55
+ className: "transition-all ease-out",
56
+ style: {
57
+ transitionDuration: "1.5s",
58
+ transitionProperty: "stroke-dashoffset, stroke"
59
+ }
60
+ }
61
+ )
62
+ ]
63
+ }
64
+ ),
65
+ /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ t.jsxs("div", { className: "text-center", children: [
66
+ x && /* @__PURE__ */ t.jsxs("div", { className: `text-2xl font-bold text-gray-800 ${j}`, children: [
67
+ Math.round(i),
68
+ "%"
69
+ ] }),
70
+ o && u && /* @__PURE__ */ t.jsx("div", { className: `text-xs text-gray-500 mt-1 ${y}`, children: o })
71
+ ] }) })
72
+ ] }),
73
+ n && /* @__PURE__ */ t.jsx("p", { className: `text-gray-500 text-label mt-6 ${f}`, children: n })
74
+ ] });
75
+ };
76
+ export {
77
+ E as default
78
+ };
@@ -0,0 +1 @@
1
+ export { default as CircleProgress } from './CircleProgress';
@@ -1,34 +1,35 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- import { faCircleInfo as i } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
3
- import { FontAwesomeIcon as l } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
- import { resolveDisclaimerClasses as n } from "./InformationDisclaimer.styles.js";
5
- const d = ({
6
- description: t,
7
- title: a,
8
- className: o,
9
- icon: s,
10
- type: r = "informative"
2
+ import { faCircleInfo as t } from "../../../node_modules/@fortawesome/pro-regular-svg-icons/index.js";
3
+ import { FontAwesomeIcon as r } from "../../../node_modules/@fortawesome/react-fontawesome/index.es.js";
4
+ import { resolveDisclaimerClasses as c, resolveIconColor as a } from "./InformationDisclaimer.styles.js";
5
+ const j = ({
6
+ description: n,
7
+ title: i,
8
+ className: m,
9
+ icon: o,
10
+ type: s = "informative",
11
+ iconClassName: l = ""
11
12
  }) => /* @__PURE__ */ e.jsxs(
12
13
  "div",
13
14
  {
14
- className: `flex items-center gap-12 p-12 w-full ${n(
15
- r
16
- )} rounded-lg ${o}`,
15
+ className: `flex items-center gap-12 p-12 w-full ${c(
16
+ s
17
+ )} rounded-lg ${m}`,
17
18
  children: [
18
- s ? /* @__PURE__ */ e.jsx(l, { icon: s, className: "text-blue-500 min-h-20 h-20" }) : /* @__PURE__ */ e.jsx(
19
- l,
19
+ o ? /* @__PURE__ */ e.jsx(r, { icon: o, className: `min-h-20 h-20 ${l} ${a(s)}` }) : /* @__PURE__ */ e.jsx(
20
+ r,
20
21
  {
21
- icon: i,
22
- className: "text-blue-500 min-h-20 h-20"
22
+ icon: t,
23
+ className: `min-h-20 h-20 ${l} ${a(s)}`
23
24
  }
24
25
  ),
25
26
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4", children: [
26
- /* @__PURE__ */ e.jsx("h4", { className: "text-body-s font-500 text-black leading-none", children: a }),
27
- /* @__PURE__ */ e.jsx("p", { className: "text-gray-600 text-body-s leading-none", children: t })
27
+ /* @__PURE__ */ e.jsx("h4", { className: "text-body-s font-500 text-black leading-none", children: i }),
28
+ /* @__PURE__ */ e.jsx("p", { className: "text-gray-600 text-body-s leading-none", children: n })
28
29
  ] })
29
30
  ]
30
31
  }
31
32
  );
32
33
  export {
33
- d as default
34
+ j as default
34
35
  };
@@ -1,2 +1,3 @@
1
1
  import { InformationDisclaimerType } from './InformationDisclaimer.types';
2
2
  export declare const resolveDisclaimerClasses: (type: InformationDisclaimerType) => "bg-yellow-50 border-2 border-yellow-500" | "bg-red-50 border-2 border-red-500" | "bg-blue-50 border-2 border-blue-500";
3
+ export declare const resolveIconColor: (type: InformationDisclaimerType) => "text-blue-500" | "text-red-500" | "text-yellow-500";
@@ -7,7 +7,17 @@ const e = (r) => {
7
7
  default:
8
8
  return "bg-blue-50 border-2 border-blue-500";
9
9
  }
10
+ }, o = (r) => {
11
+ switch (r) {
12
+ case "warning":
13
+ return "text-yellow-500";
14
+ case "error":
15
+ return "text-red-500";
16
+ default:
17
+ return "text-blue-500";
18
+ }
10
19
  };
11
20
  export {
12
- e as resolveDisclaimerClasses
21
+ e as resolveDisclaimerClasses,
22
+ o as resolveIconColor
13
23
  };
@@ -6,4 +6,5 @@ export type InformationDisclaimerProps = {
6
6
  className?: string;
7
7
  icon?: IconProp;
8
8
  type?: InformationDisclaimerType;
9
+ iconClassName?: string;
9
10
  };
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ export type SwitchProps = {
3
+ active: boolean;
4
+ onClick?: () => void;
5
+ };
6
+ declare const Switch: React.FC<SwitchProps>;
7
+ export default Switch;
@@ -0,0 +1,33 @@
1
+ import { j as s } from "../../../_virtual/jsx-runtime.js";
2
+ import { useTheme as t } from "../../../hooks/useTheme.js";
3
+ const l = ({ active: n, onClick: e }) => {
4
+ const { defaultColorScheme: o } = t();
5
+ return /* @__PURE__ */ s.jsxs(
6
+ "button",
7
+ {
8
+ onClick: e,
9
+ className: `
10
+ relative inline-flex min-h-24 min-w-48 items-center rounded-full
11
+ transition-colors duration-200 ease-in-out focus:outline-none
12
+ shadow-lg
13
+ ${n ? `bg-${o}-500` : "bg-gray-200"}
14
+ `,
15
+ children: [
16
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: n ? "On" : "Off" }),
17
+ /* @__PURE__ */ s.jsx(
18
+ "span",
19
+ {
20
+ className: `
21
+ inline-block h-20 w-20 transform rounded-full bg-white
22
+ transition-transform duration-200 ease-in-out drop-shadow-xl
23
+ ${n ? "translate-x-24" : "translate-x-3"}
24
+ `
25
+ }
26
+ )
27
+ ]
28
+ }
29
+ );
30
+ };
31
+ export {
32
+ l as default
33
+ };
@@ -0,0 +1 @@
1
+ export { default as Switch } from './Switch';
@@ -1,49 +1,53 @@
1
1
  import { j as e } from "../../../_virtual/jsx-runtime.js";
2
- const F = ({
3
- progress: p,
4
- showPercentage: f = !0,
5
- showLabel: m = !1,
6
- percentageLabel: u = "progreso",
7
- className: y = "",
2
+ const K = ({
3
+ progress: j = 0,
4
+ showPercentage: p = !0,
5
+ showPercentageLabel: y = !1,
6
+ label: d,
7
+ percentageLabel: f = "progreso",
8
+ percentageClassName: N = "",
9
+ percentageLabelClassName: $ = "",
10
+ labelClassName: v = "",
11
+ className: b = "",
8
12
  size: s = 120,
9
13
  strokeWidth: l = 8,
10
- backgroundColor: N = "#e5e7eb",
11
- animated: g = !0,
12
- animationDuration: v = "1.5s",
14
+ backgroundColor: k = "#e5e7eb",
15
+ animated: u = !0,
16
+ animationDuration: D = "1.5s",
13
17
  colorThresholds: n,
14
- lowThreshold: b = 30,
15
- mediumThreshold: $ = 70,
16
- lowColor: k = "#ef4444",
17
- mediumColor: D = "#eab308",
18
- highColor: M = "#22c55e",
19
- singleColor: j,
20
- clockwise: P = !0,
21
- startAngle: C = -90
18
+ lowThreshold: P = 30,
19
+ mediumThreshold: M = 70,
20
+ lowColor: w = "#ef4444",
21
+ mediumColor: C = "#eab308",
22
+ highColor: L = "#22c55e",
23
+ singleColor: m,
24
+ clockwise: B = !0,
25
+ startAngle: E = -90
22
26
  }) => {
23
- const w = (c) => {
24
- if (j)
25
- return j;
27
+ const I = (a) => {
28
+ if (m)
29
+ return m;
26
30
  if (n && n.length > 0) {
27
31
  const r = [...n].sort(
28
- (t, h) => t.threshold - h.threshold
32
+ (t, x) => t.threshold - x.threshold
29
33
  );
30
34
  for (let t = r.length - 1; t >= 0; t--)
31
- if (c >= r[t].threshold)
35
+ if (a >= r[t].threshold)
32
36
  return r[t].color;
33
37
  return r[0].color;
34
38
  }
35
- return c < b ? k : c < $ ? D : M;
36
- }, B = (c) => {
39
+ return a < P ? w : a < M ? C : L;
40
+ }, R = (a) => {
37
41
  if (!n || n.length === 0) return;
38
42
  const r = [...n].sort(
39
- (t, h) => t.threshold - h.threshold
43
+ (t, x) => t.threshold - x.threshold
40
44
  );
41
45
  for (let t = r.length - 1; t >= 0; t--)
42
- if (c >= r[t].threshold)
46
+ if (a >= r[t].threshold)
43
47
  return r[t].label;
44
48
  return r[0].label;
45
- }, o = Math.min(100, Math.max(0, p)), E = w(o), i = B(o), a = s / 2, x = (s - l) / 2, d = 2 * Math.PI * x, I = d, L = d - o / 100 * d, R = `rotate(${C} ${a} ${a}) scale(${P ? 1 : -1}, 1)`;
46
- return /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col items-center gap-2 ${y}`, children: [
49
+ }, c = Math.min(100, Math.max(0, j)), q = I(c), g = R(c), o = s / 2, i = (s - l) / 2, h = 2 * Math.PI * i, A = h, F = h - c / 100 * h, G = `rotate(${E} ${o} ${o}) scale(${B ? 1 : -1}, 1)`;
50
+ return /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col items-center gap-2 ${b}`, children: [
47
51
  /* @__PURE__ */ e.jsxs("div", { className: "relative", style: { width: s, height: s }, children: [
48
52
  /* @__PURE__ */ e.jsxs(
49
53
  "svg",
@@ -56,11 +60,11 @@ const F = ({
56
60
  /* @__PURE__ */ e.jsx(
57
61
  "circle",
58
62
  {
59
- cx: a,
60
- cy: a,
61
- r: x,
63
+ cx: o,
64
+ cy: o,
65
+ r: i,
62
66
  fill: "transparent",
63
- stroke: N,
67
+ stroke: k,
64
68
  strokeWidth: l,
65
69
  className: "opacity-20"
66
70
  }
@@ -68,19 +72,19 @@ const F = ({
68
72
  /* @__PURE__ */ e.jsx(
69
73
  "circle",
70
74
  {
71
- cx: a,
72
- cy: a,
73
- r: x,
75
+ cx: o,
76
+ cy: o,
77
+ r: i,
74
78
  fill: "transparent",
75
- stroke: E,
79
+ stroke: q,
76
80
  strokeWidth: l,
77
- strokeDasharray: I,
78
- strokeDashoffset: L,
81
+ strokeDasharray: A,
82
+ strokeDashoffset: F,
79
83
  strokeLinecap: "round",
80
- transform: R,
81
- className: g ? "transition-all ease-out" : "",
82
- style: g ? {
83
- transitionDuration: v,
84
+ transform: G,
85
+ className: u ? "transition-all ease-out" : "",
86
+ style: u ? {
87
+ transitionDuration: D,
84
88
  transitionProperty: "stroke-dashoffset, stroke"
85
89
  } : {}
86
90
  }
@@ -88,28 +92,17 @@ const F = ({
88
92
  ]
89
93
  }
90
94
  ),
91
- f && /* @__PURE__ */ e.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
92
- /* @__PURE__ */ e.jsxs("div", { className: "text-2xl font-bold text-gray-800", children: [
93
- Math.round(o),
95
+ /* @__PURE__ */ e.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e.jsxs("div", { className: "text-center", children: [
96
+ p && /* @__PURE__ */ e.jsxs("div", { className: `text-2xl font-bold text-gray-800 ${N}`, children: [
97
+ Math.round(c),
94
98
  "%"
95
99
  ] }),
96
- m && /* @__PURE__ */ e.jsx("div", { className: "text-xs text-gray-500 mt-1", children: i || u })
100
+ (g || f) && y && /* @__PURE__ */ e.jsx("div", { className: `text-xs text-gray-500 mt-1 ${$}`, children: g || f })
97
101
  ] }) })
98
102
  ] }),
99
- m && !f && /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-gray-600 text-center", children: [
100
- /* @__PURE__ */ e.jsxs("span", { className: "font-medium", children: [
101
- Math.round(o),
102
- "%"
103
- ] }),
104
- i && /* @__PURE__ */ e.jsxs("span", { className: "text-xs text-gray-500 block", children: [
105
- "(",
106
- i,
107
- ")"
108
- ] }),
109
- /* @__PURE__ */ e.jsx("span", { className: "text-gray-500", children: u })
110
- ] })
103
+ d && /* @__PURE__ */ e.jsx("p", { className: `text-gray-500 text-label mt-6 ${v}`, children: d })
111
104
  ] });
112
105
  };
113
106
  export {
114
- F as default
107
+ K as default
115
108
  };
@@ -4,10 +4,14 @@ export interface ColorThreshold {
4
4
  label?: string;
5
5
  }
6
6
  export interface ThresholdCircleProgressProps {
7
- progress: number;
7
+ progress?: number;
8
8
  showPercentage?: boolean;
9
- showLabel?: boolean;
9
+ showPercentageLabel?: boolean;
10
+ percentageClassName?: string;
11
+ percentageLabelClassName?: string;
10
12
  percentageLabel?: string;
13
+ label?: string;
14
+ labelClassName?: string;
11
15
  className?: string;
12
16
  size?: number;
13
17
  strokeWidth?: number;
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { ThresholdProgressBarProps } from './TresholdProgressBar.types';
2
+ import { ThresholdProgressBarProps } from './ThresholdProgressBar.types';
3
3
  declare const ThresholdProgressBar: React.FC<ThresholdProgressBarProps>;
4
4
  export default ThresholdProgressBar;
@@ -0,0 +1 @@
1
+ export { default as ThresholdProgressBar } from './ThresholdProgressBar';
@@ -34,4 +34,6 @@ export * from './UploadContainer/index';
34
34
  export * from './Tooltip/index';
35
35
  export * from './LoadingProgress/index';
36
36
  export * from './ThresholdCircleProgress/index';
37
- export * from './TresholdProgressBar/index';
37
+ export * from './ThresholdProgressBar/index';
38
+ export * from './CircleProgress/index';
39
+ export * from './Switch/index';
@@ -30,22 +30,22 @@ const i = {
30
30
  children: s,
31
31
  subtitle: l,
32
32
  open: a,
33
- onClick: c,
34
- className: m = "",
33
+ onClick: m,
34
+ className: c = "",
35
35
  labelClassName: d = ""
36
36
  }) => {
37
- const { t: x } = g(), [r, u] = b(!1), o = a !== void 0 ? a : r, h = c || (() => u(!r));
37
+ const { t: x } = g(), [r, h] = b(!1), o = a !== void 0 ? a : r, u = m || (() => h(!r));
38
38
  return /* @__PURE__ */ e.jsxs(n.div, { className: "relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden", children: [
39
39
  /* @__PURE__ */ e.jsxs(
40
40
  "button",
41
41
  {
42
- onClick: h,
42
+ onClick: u,
43
43
  className: `py-24 px-32 text-black font-semibold border-b
44
44
  ${o ? "border-blue-100 bg-gray-50/50" : "border-transparent"}
45
- transition-all duration-200 ease-in-out ${d} focus:outline-none hover:bg-gray-50/50
45
+ transition-all duration-200 ease-in-out 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: `text-left text-lg md:text-xl font-700 ${d}`, 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 })
@@ -67,7 +67,7 @@ const i = {
67
67
  ease: "easeOut"
68
68
  }
69
69
  },
70
- className: `w-full bg-white overflow-hidden ${m}`,
70
+ className: `w-full bg-white overflow-hidden ${c}`,
71
71
  children: s
72
72
  }
73
73
  ) })