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.
- package/dist/_virtual/index2.js +2 -3
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index5.js +5 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
- package/dist/components/atoms/CircleProgress/CircleProgress.js +78 -0
- package/dist/components/atoms/CircleProgress/index.d.ts +1 -0
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.js +20 -19
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +1 -0
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.js +11 -1
- package/dist/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +1 -0
- package/dist/components/atoms/Switch/Switch.d.ts +7 -0
- package/dist/components/atoms/Switch/Switch.js +33 -0
- package/dist/components/atoms/Switch/index.d.ts +1 -0
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.js +52 -59
- package/dist/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +6 -2
- package/dist/components/atoms/{TresholdProgressBar/TresholdProgressBar.d.ts → ThresholdProgressBar/ThresholdProgressBar.d.ts} +1 -1
- package/dist/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +3 -1
- package/dist/components/molecules/Dropdown/Dropdown.js +7 -7
- package/dist/index.js +71 -67
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +64 -55
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/Root.d.ts +2 -0
- package/dist/src/app.d.ts +1 -0
- package/dist/src/components/atoms/ActionButton/ActionButton.d.ts +11 -0
- package/dist/src/components/atoms/ActionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/AsyncToast/index.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +11 -0
- package/dist/src/components/atoms/Avatar/index.d.ts +1 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.d.ts +4 -0
- package/dist/src/components/atoms/BoxContainer/BoxContainer.types.d.ts +6 -0
- package/dist/src/components/atoms/BoxContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/Button/Button.d.ts +4 -0
- package/dist/src/components/atoms/Button/Button.styles.d.ts +26 -0
- package/dist/src/components/atoms/Button/Button.types.d.ts +12 -0
- package/dist/src/components/atoms/Button/index.d.ts +1 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.d.ts +4 -0
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +6 -0
- package/dist/src/components/atoms/CenterModal/index.d.ts +1 -0
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +12 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +1 -0
- package/dist/src/components/atoms/CircleProgress/CircleProgress.d.ts +22 -0
- package/dist/src/components/atoms/CircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.d.ts +4 -0
- package/dist/src/components/atoms/CountryInput/CountryInput.types.d.ts +37 -0
- package/dist/src/components/atoms/CountryInput/index.d.ts +1 -0
- package/dist/src/components/atoms/CountryLabel/CountryLabel.d.ts +6 -0
- package/dist/src/components/atoms/CountryLabel/index.d.ts +1 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.d.ts +4 -0
- package/dist/src/components/atoms/CountrySelectInput/CountryDropdown.types.d.ts +36 -0
- package/dist/src/components/atoms/CountrySelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/Divider/Divider.d.ts +7 -0
- package/dist/src/components/atoms/Divider/index.d.ts +1 -0
- package/dist/src/components/atoms/FloatingCard/FloatingCard.d.ts +4 -0
- package/dist/src/components/atoms/FloatingCard/FloatingCard.types.d.ts +9 -0
- package/dist/src/components/atoms/FloatingCard/index.d.ts +1 -0
- package/dist/src/components/atoms/IconButton/IconButton.d.ts +4 -0
- package/dist/src/components/atoms/IconButton/IconButton.styles.d.ts +10 -0
- package/dist/src/components/atoms/IconButton/IconButton.types.d.ts +11 -0
- package/dist/src/components/atoms/IconButton/index.d.ts +1 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.d.ts +4 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.types.d.ts +12 -0
- package/dist/src/components/atoms/ImageProfileInput/ImageProfileInput.validators.d.ts +9 -0
- package/dist/src/components/atoms/ImageProfileInput/index.d.ts +2 -0
- package/dist/src/components/atoms/IndexedStep/IndexedStep.d.ts +9 -0
- package/dist/src/components/atoms/IndexedStep/index.d.ts +1 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.d.ts +3 -0
- package/dist/src/components/atoms/InfoCard/InfoCard.types.d.ts +6 -0
- package/dist/src/components/atoms/InfoCard/index.d.ts +1 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.d.ts +4 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.styles.d.ts +3 -0
- package/dist/src/components/atoms/InformationDisclaimer/InformationDisclaimer.types.d.ts +10 -0
- package/dist/src/components/atoms/InformationDisclaimer/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +12 -0
- package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/LoadingSpinner/LoadingSpinner.d.ts +8 -0
- package/dist/src/components/atoms/LoadingSpinner/index.d.ts +1 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.d.ts +5 -0
- package/dist/src/components/atoms/PasswordInput/PasswordInput.types.d.ts +11 -0
- package/dist/src/components/atoms/PasswordInput/index.d.ts +1 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +5 -0
- package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +12 -0
- package/dist/src/components/atoms/PhoneInput/index.d.ts +1 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
- package/dist/src/components/atoms/ProgressBar/ProgressBar.types.d.ts +6 -0
- package/dist/src/components/atoms/ProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/SearchBar/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/SectionButton.d.ts +12 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/desktop/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/desktop/index.d.ts +2 -0
- package/dist/src/components/atoms/SectionButton/index.d.ts +1 -0
- package/dist/src/components/atoms/SectionButton/mobile/MobileSectionButton.styles.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.d.ts +3 -0
- package/dist/src/components/atoms/SectionButton/mobile/SectionButton.types.d.ts +37 -0
- package/dist/src/components/atoms/SectionButton/mobile/index.d.ts +2 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +4 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +24 -0
- package/dist/src/components/atoms/SelectInput/index.d.ts +1 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +13 -0
- package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +9 -0
- package/dist/src/components/atoms/SidebarButton/index.d.ts +1 -0
- package/dist/src/components/atoms/Switch/Switch.d.ts +7 -0
- package/dist/src/components/atoms/Switch/index.d.ts +1 -0
- package/dist/src/components/atoms/Tab/Tab.d.ts +3 -0
- package/dist/src/components/atoms/Tab/Tab.styles.d.ts +6 -0
- package/dist/src/components/atoms/Tab/Tab.types.d.ts +10 -0
- package/dist/src/components/atoms/Tab/index.d.ts +1 -0
- package/dist/src/components/atoms/TextButton/TextButton.d.ts +4 -0
- package/dist/src/components/atoms/TextButton/TextButton.styles.d.ts +2 -0
- package/dist/src/components/atoms/TextButton/TextButton.types.d.ts +6 -0
- package/dist/src/components/atoms/TextButton/index.d.ts +1 -0
- package/dist/src/components/atoms/TextInput/TextInput.d.ts +5 -0
- package/dist/src/components/atoms/TextInput/TextInput.types.d.ts +12 -0
- package/dist/src/components/atoms/TextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.d.ts +3 -0
- package/dist/src/components/atoms/TextStaticInput/TextStaticInput.types.d.ts +5 -0
- package/dist/src/components/atoms/TextStaticInput/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/ThresholdCircleProgress.types.d.ts +30 -0
- package/dist/src/components/atoms/ThresholdCircleProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.d.ts +4 -0
- package/dist/src/components/atoms/ThresholdProgressBar/ThresholdProgressBar.types.d.ts +22 -0
- package/dist/src/components/atoms/ThresholdProgressBar/index.d.ts +1 -0
- package/dist/src/components/atoms/Toast/Toast.d.ts +21 -0
- package/dist/src/components/atoms/Toast/index.d.ts +1 -0
- package/dist/src/components/atoms/Tooltip/Tooltip.d.ts +4 -0
- package/dist/src/components/atoms/Tooltip/Tooltip.types.d.ts +9 -0
- package/dist/src/components/atoms/Tooltip/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +18 -0
- package/dist/src/components/atoms/UncontrolledSelector/index.d.ts +1 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.d.ts +4 -0
- package/dist/src/components/atoms/UncontrolledTextInput/UncontrolledTextInput.types.d.ts +13 -0
- package/dist/src/components/atoms/UncontrolledTextInput/index.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.d.ts +4 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +35 -0
- package/dist/src/components/atoms/UploadContainer/index.d.ts +1 -0
- package/dist/src/components/atoms/index.d.ts +3 -1
- package/dist/src/components/index.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.d.ts +3 -0
- package/dist/src/components/molecules/AlertModal/AlertModal.types.d.ts +9 -0
- package/dist/src/components/molecules/AlertModal/index.d.ts +2 -0
- package/dist/src/components/molecules/CalendarSelector/CalendarSelector.d.ts +11 -0
- package/dist/src/components/molecules/CalendarSelector/PeriodToggle.d.ts +6 -0
- package/dist/src/components/molecules/CalendarSelector/TimeDisplay.d.ts +7 -0
- package/dist/src/components/molecules/CalendarSelector/index.d.ts +1 -0
- package/dist/src/components/molecules/DateInput/DateInput.d.ts +13 -0
- package/dist/src/components/molecules/DateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.d.ts +3 -0
- package/dist/src/components/molecules/DialogModal/DialogModal.types.d.ts +11 -0
- package/dist/src/components/molecules/DialogModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.d.ts +3 -0
- package/dist/src/components/molecules/Dropdown/Dropdown.types.d.ts +9 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +1 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.d.ts +4 -0
- package/dist/src/components/molecules/FileUpload/FileUpload.types.d.ts +17 -0
- package/dist/src/components/molecules/FileUpload/index.d.ts +1 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.d.ts +4 -0
- package/dist/src/components/molecules/FloatingMenu/FloatingMenu.types.d.ts +11 -0
- package/dist/src/components/molecules/FloatingMenu/index.d.ts +1 -0
- package/dist/src/components/molecules/IndexedStepper/IndexedStepper.d.ts +7 -0
- package/dist/src/components/molecules/IndexedStepper/index.d.ts +1 -0
- package/dist/src/components/molecules/InformationContainer/InformationContainer.d.ts +14 -0
- package/dist/src/components/molecules/InformationContainer/index.d.ts +1 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.d.ts +4 -0
- package/dist/src/components/molecules/SearchModal/SearchModal.types.d.ts +5 -0
- package/dist/src/components/molecules/SearchModal/index.d.ts +1 -0
- package/dist/src/components/molecules/Stepper/Stepper.d.ts +3 -0
- package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +11 -0
- package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +9 -0
- package/dist/src/components/molecules/Stepper/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.d.ts +20 -0
- package/dist/src/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/src/components/molecules/UncontrolledDateInput/UncontrolledDateInput.d.ts +12 -0
- package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +15 -0
- package/dist/src/components/organisms/index.d.ts +1 -0
- package/dist/src/constants/countries.d.ts +30 -0
- package/dist/src/contexts/index.d.ts +1 -0
- package/dist/src/contexts/themeContext.d.ts +3 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/useTheme.d.ts +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/lab/Laboratory.d.ts +2 -0
- package/dist/src/lab/LaboratoryLayout.d.ts +5 -0
- package/dist/src/lab/index.lab.d.ts +1 -0
- package/dist/src/providers/ThemeProvider.d.ts +7 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/dist/src/themes/default.d.ts +2 -0
- package/dist/src/themes/index.d.ts +2 -0
- package/dist/src/themes/types.d.ts +6 -0
- package/dist/src/types/baseModalProps.d.ts +4 -0
- package/dist/src/types/display.d.ts +2 -0
- package/dist/src/types/fileInfo.d.ts +2 -0
- package/dist/src/types/i18n.d.ts +1 -0
- package/dist/src/types/index.d.ts +9 -0
- package/dist/src/types/modal.d.ts +34 -0
- package/dist/src/types/modalType.d.ts +1 -0
- package/dist/src/types/navbarOption.d.ts +7 -0
- package/dist/src/types/sidebarOption.d.ts +7 -0
- package/dist/src/types/styleValues.d.ts +4 -0
- package/dist/src/types/toast.d.ts +26 -0
- package/dist/src/utils/dates.d.ts +1 -0
- package/dist/src/utils/files.d.ts +8 -0
- package/dist/src/utils/images.d.ts +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/modal.d.ts +13 -0
- package/dist/src/utils/renderContentOptions.d.ts +3 -0
- package/dist/src/utils/strings.d.ts +2 -0
- package/dist/src/utils/toast.d.ts +15 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/atoms/TresholdProgressBar/index.d.ts +0 -1
- /package/dist/components/atoms/{TresholdProgressBar/TresholdProgressBar.js → ThresholdProgressBar/ThresholdProgressBar.js} +0 -0
- /package/dist/components/atoms/{TresholdProgressBar/TresholdProgressBar.types.d.ts → ThresholdProgressBar/ThresholdProgressBar.types.d.ts} +0 -0
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
-
|
|
4
|
+
a as t
|
|
7
5
|
};
|
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.js
CHANGED
|
@@ -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
|
|
3
|
-
import { FontAwesomeIcon as
|
|
4
|
-
import { resolveDisclaimerClasses as
|
|
5
|
-
const
|
|
6
|
-
description:
|
|
7
|
-
title:
|
|
8
|
-
className:
|
|
9
|
-
icon:
|
|
10
|
-
type:
|
|
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 ${
|
|
15
|
-
|
|
16
|
-
)} rounded-lg ${
|
|
15
|
+
className: `flex items-center gap-12 p-12 w-full ${c(
|
|
16
|
+
s
|
|
17
|
+
)} rounded-lg ${m}`,
|
|
17
18
|
children: [
|
|
18
|
-
|
|
19
|
-
|
|
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:
|
|
22
|
-
className:
|
|
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:
|
|
27
|
-
/* @__PURE__ */ e.jsx("p", { className: "text-gray-600 text-body-s leading-none", children:
|
|
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
|
-
|
|
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
|
};
|
|
@@ -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
|
|
3
|
-
progress:
|
|
4
|
-
showPercentage:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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:
|
|
11
|
-
animated:
|
|
12
|
-
animationDuration:
|
|
14
|
+
backgroundColor: k = "#e5e7eb",
|
|
15
|
+
animated: u = !0,
|
|
16
|
+
animationDuration: D = "1.5s",
|
|
13
17
|
colorThresholds: n,
|
|
14
|
-
lowThreshold:
|
|
15
|
-
mediumThreshold:
|
|
16
|
-
lowColor:
|
|
17
|
-
mediumColor:
|
|
18
|
-
highColor:
|
|
19
|
-
singleColor:
|
|
20
|
-
clockwise:
|
|
21
|
-
startAngle:
|
|
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
|
|
24
|
-
if (
|
|
25
|
-
return
|
|
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,
|
|
32
|
+
(t, x) => t.threshold - x.threshold
|
|
29
33
|
);
|
|
30
34
|
for (let t = r.length - 1; t >= 0; t--)
|
|
31
|
-
if (
|
|
35
|
+
if (a >= r[t].threshold)
|
|
32
36
|
return r[t].color;
|
|
33
37
|
return r[0].color;
|
|
34
38
|
}
|
|
35
|
-
return
|
|
36
|
-
},
|
|
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,
|
|
43
|
+
(t, x) => t.threshold - x.threshold
|
|
40
44
|
);
|
|
41
45
|
for (let t = r.length - 1; t >= 0; t--)
|
|
42
|
-
if (
|
|
46
|
+
if (a >= r[t].threshold)
|
|
43
47
|
return r[t].label;
|
|
44
48
|
return r[0].label;
|
|
45
|
-
},
|
|
46
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `flex flex-col items-center gap-2 ${
|
|
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:
|
|
60
|
-
cy:
|
|
61
|
-
r:
|
|
63
|
+
cx: o,
|
|
64
|
+
cy: o,
|
|
65
|
+
r: i,
|
|
62
66
|
fill: "transparent",
|
|
63
|
-
stroke:
|
|
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:
|
|
72
|
-
cy:
|
|
73
|
-
r:
|
|
75
|
+
cx: o,
|
|
76
|
+
cy: o,
|
|
77
|
+
r: i,
|
|
74
78
|
fill: "transparent",
|
|
75
|
-
stroke:
|
|
79
|
+
stroke: q,
|
|
76
80
|
strokeWidth: l,
|
|
77
|
-
strokeDasharray:
|
|
78
|
-
strokeDashoffset:
|
|
81
|
+
strokeDasharray: A,
|
|
82
|
+
strokeDashoffset: F,
|
|
79
83
|
strokeLinecap: "round",
|
|
80
|
-
transform:
|
|
81
|
-
className:
|
|
82
|
-
style:
|
|
83
|
-
transitionDuration:
|
|
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
|
-
|
|
92
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
93
|
-
Math.round(
|
|
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
|
-
|
|
100
|
+
(g || f) && y && /* @__PURE__ */ e.jsx("div", { className: `text-xs text-gray-500 mt-1 ${$}`, children: g || f })
|
|
97
101
|
] }) })
|
|
98
102
|
] }),
|
|
99
|
-
|
|
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
|
-
|
|
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
|
|
7
|
+
progress?: number;
|
|
8
8
|
showPercentage?: boolean;
|
|
9
|
-
|
|
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 './
|
|
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 './
|
|
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:
|
|
34
|
-
className:
|
|
33
|
+
onClick: m,
|
|
34
|
+
className: c = "",
|
|
35
35
|
labelClassName: d = ""
|
|
36
36
|
}) => {
|
|
37
|
-
const { t: x } = g(), [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:
|
|
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
|
|
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:
|
|
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 ${
|
|
70
|
+
className: `w-full bg-white overflow-hidden ${c}`,
|
|
71
71
|
children: s
|
|
72
72
|
}
|
|
73
73
|
) })
|