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.
@@ -1,4 +1,5 @@
1
- var p = { exports: {} };
1
+ import { __require as r } from "../node_modules/property-expr/index.js";
2
+ var e = r();
2
3
  export {
3
- p as __module
4
+ e as p
4
5
  };
@@ -1,5 +1,5 @@
1
- import { __require as r } from "../node_modules/property-expr/index.js";
2
- var e = r();
1
+ import { __require as r } from "../node_modules/tiny-case/index.js";
2
+ var a = r();
3
3
  export {
4
- e as p
4
+ a as t
5
5
  };
@@ -1,5 +1,7 @@
1
- import { __require as r } from "../node_modules/tiny-case/index.js";
2
- var a = r();
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
- a as t
6
+ s as default
5
7
  };
@@ -1,7 +1,4 @@
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
+ var e = { exports: {} };
5
2
  export {
6
- s as default
3
+ e as __module
7
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var p = { exports: {} };
2
2
  export {
3
- e as __module
3
+ p as __module
4
4
  };
@@ -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 a } from "../../../_virtual/jsx-runtime.js";
2
- const b = ({
1
+ import { j as d } from "../../../_virtual/jsx-runtime.js";
2
+ const c = ({
3
3
  active: r,
4
- color: s = "blue",
5
- variant: d = "rounded",
6
- className: t,
7
- ...u
4
+ color: n = "blue",
5
+ variant: u = "rounded",
6
+ className: l,
7
+ size: o = 16,
8
+ ...i
8
9
  }) => {
9
- const e = {
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
- }[s], o = {
15
+ }[n], a = {
15
16
  rounded: "rounded-full",
16
17
  square: "rounded-md"
17
- }[d];
18
- return /* @__PURE__ */ a.jsx(
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 ${o} border-[1.5px] bg-white ${r ? e : "border-gray-400"} ${t}`,
22
- ...u,
23
- children: /* @__PURE__ */ a.jsx(
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 ${o} size-12 ${r ? e : ""}`
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
- b as default
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
- const r = ({
3
- progress: a,
4
- showPercentage: l = !1
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(a, 0), 100);
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: "w-full h-8 bg-blue-100 rounded-full", children: /* @__PURE__ */ e.jsx(
11
+ /* @__PURE__ */ e.jsx("div", { className: `w-full h-8 ${n} rounded-full`, children: /* @__PURE__ */ e.jsx(
9
12
  "div",
10
13
  {
11
- className: "h-full bg-blue-500 rounded-full transition-all duration-300 ease-in-out",
14
+ className: `h-full ${i} rounded-full transition-all duration-300 ease-in-out`,
12
15
  style: { width: `${s}%` }
13
16
  }
14
17
  ) }),
15
- l && /* @__PURE__ */ e.jsxs("span", { className: "text-sm text-gray-400 font-500", children: [
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
- r as default
25
+ x as default
23
26
  };
@@ -0,0 +1,7 @@
1
+ import { Color } from '../../../types/styleValues';
2
+ interface ProgressBarColorConfig {
3
+ bgColor: string;
4
+ fillColor: string;
5
+ }
6
+ export declare const resolveProgressBarColors: (color: Color) => ProgressBarColorConfig;
7
+ export {};
@@ -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
+ };
@@ -1,4 +1,6 @@
1
+ import { Color } from '../../../types/styleValues';
1
2
  export interface ProgressBarProps {
2
3
  progress: number;
3
4
  showPercentage?: boolean;
5
+ color?: Color;
4
6
  }