lawgic-dev-kit 0.11.6 → 0.11.8
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 +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +2 -2
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +2 -0
- package/dist/components/atoms/Checkbox/Checkbox.js +23 -15
- package/dist/components/atoms/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/atoms/ProgressBar/ProgressBar.js +11 -8
- package/dist/components/atoms/ProgressBar/ProgressBar.styles.d.ts +7 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.styles.js +18 -0
- package/dist/components/atoms/ProgressBar/ProgressBar.types.d.ts +2 -0
- package/dist/lawgic-dev-kit.umd.js +38 -38
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/scheduler/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +3 -3
- package/dist/src/components/atoms/Checkbox/Checkbox.d.ts +12 -0
- package/package.json +1 -1
- package/dist/src/components/atoms/SidebarButton/SidebarButton.d.ts +0 -13
- package/dist/src/components/atoms/SidebarButton/SidebarButton.styles.d.ts +0 -9
- package/dist/src/components/molecules/Stepper/Stepper.styles.d.ts +0 -11
- package/dist/src/components/molecules/Stepper/Stepper.types.d.ts +0 -9
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
s as default
|
|
5
7
|
};
|
package/dist/_virtual/index5.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
|
@@ -5,6 +5,8 @@ interface CheckboxProps extends React.ComponentPropsWithoutRef<"div"> {
|
|
|
5
5
|
active?: boolean | string | number;
|
|
6
6
|
color?: ColorVariant;
|
|
7
7
|
variant?: Variant;
|
|
8
|
+
className?: string;
|
|
9
|
+
size?: number;
|
|
8
10
|
}
|
|
9
11
|
declare const Checkbox: React.FC<CheckboxProps>;
|
|
10
12
|
export default Checkbox;
|
|
@@ -1,34 +1,42 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
const
|
|
1
|
+
import { j as d } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
+
const c = ({
|
|
3
3
|
active: r,
|
|
4
|
-
color:
|
|
5
|
-
variant:
|
|
6
|
-
className:
|
|
7
|
-
|
|
4
|
+
color: n = "blue",
|
|
5
|
+
variant: u = "rounded",
|
|
6
|
+
className: l,
|
|
7
|
+
size: o = 16,
|
|
8
|
+
...i
|
|
8
9
|
}) => {
|
|
9
|
-
const
|
|
10
|
+
const t = {
|
|
10
11
|
blue: "border-blue-500 bg-blue-500",
|
|
11
12
|
aqua: "border-aqua-500 bg-aqua-500",
|
|
12
13
|
red: "border-red-500 bg-red-500",
|
|
13
14
|
gray: "border-gray-500 bg-gray-500"
|
|
14
|
-
}[
|
|
15
|
+
}[n], a = {
|
|
15
16
|
rounded: "rounded-full",
|
|
16
17
|
square: "rounded-md"
|
|
17
|
-
}[
|
|
18
|
-
|
|
18
|
+
}[u], s = (e) => ({
|
|
19
|
+
width: `${e}px`,
|
|
20
|
+
height: `${e}px`,
|
|
21
|
+
minWidth: `${e}px`,
|
|
22
|
+
minHeight: `${e}px`
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ d.jsx(
|
|
19
25
|
"div",
|
|
20
26
|
{
|
|
21
|
-
className: `transition-colors ease-in-out duration-150 flex items-center justify-center ${
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
className: `transition-colors ease-in-out duration-150 flex items-center justify-center ${a} border-[1.5px] bg-white ${r ? t : "border-gray-400"} ${l}`,
|
|
28
|
+
style: s(o),
|
|
29
|
+
...i,
|
|
30
|
+
children: /* @__PURE__ */ d.jsx(
|
|
24
31
|
"div",
|
|
25
32
|
{
|
|
26
|
-
className: `absolute transition-colors ease-in-out duration-150 ${
|
|
33
|
+
className: `absolute transition-colors ease-in-out duration-150 ${a} size-12 ${r ? t : ""}`,
|
|
34
|
+
style: s(o * 0.7)
|
|
27
35
|
}
|
|
28
36
|
)
|
|
29
37
|
}
|
|
30
38
|
);
|
|
31
39
|
};
|
|
32
40
|
export {
|
|
33
|
-
|
|
41
|
+
c as default
|
|
34
42
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ProgressBarProps } from './ProgressBar.types';
|
|
2
|
-
declare const ProgressBar: ({ progress, showPercentage, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ProgressBar: ({ progress, showPercentage, color, }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ProgressBar;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { j as e } from "../../../_virtual/jsx-runtime.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { resolveProgressBarColors as m } from "./ProgressBar.styles.js";
|
|
3
|
+
import { useTheme as d } from "../../../hooks/useTheme.js";
|
|
4
|
+
const x = ({
|
|
5
|
+
progress: r,
|
|
6
|
+
showPercentage: o = !1,
|
|
7
|
+
color: l
|
|
5
8
|
}) => {
|
|
6
|
-
const s = Math.min(Math.max(
|
|
9
|
+
const { defaultColorScheme: t } = d(), a = l || t, { bgColor: n, fillColor: i } = m(a), s = Math.min(Math.max(r, 0), 100);
|
|
7
10
|
return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-12", children: [
|
|
8
|
-
/* @__PURE__ */ e.jsx("div", { className:
|
|
11
|
+
/* @__PURE__ */ e.jsx("div", { className: `w-full h-8 ${n} rounded-full`, children: /* @__PURE__ */ e.jsx(
|
|
9
12
|
"div",
|
|
10
13
|
{
|
|
11
|
-
className:
|
|
14
|
+
className: `h-full ${i} rounded-full transition-all duration-300 ease-in-out`,
|
|
12
15
|
style: { width: `${s}%` }
|
|
13
16
|
}
|
|
14
17
|
) }),
|
|
15
|
-
|
|
18
|
+
o && /* @__PURE__ */ e.jsxs("span", { className: "text-sm text-gray-400 font-500", children: [
|
|
16
19
|
s,
|
|
17
20
|
"%"
|
|
18
21
|
] })
|
|
19
22
|
] });
|
|
20
23
|
};
|
|
21
24
|
export {
|
|
22
|
-
|
|
25
|
+
x as default
|
|
23
26
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const l = {
|
|
2
|
+
bgColor: "bg-blue-100",
|
|
3
|
+
fillColor: "bg-blue-500"
|
|
4
|
+
}, r = {
|
|
5
|
+
bgColor: "bg-aqua-100",
|
|
6
|
+
fillColor: "bg-aqua-500"
|
|
7
|
+
}, e = (o) => {
|
|
8
|
+
switch (o) {
|
|
9
|
+
case "aqua":
|
|
10
|
+
return r;
|
|
11
|
+
case "blue":
|
|
12
|
+
default:
|
|
13
|
+
return l;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
e as resolveProgressBarColors
|
|
18
|
+
};
|