@hai-dev/ui-kit 1.0.11 → 1.0.12
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/assets/circular-progress-loader.css +1 -1
- package/dist/components/circular-progress-loader/circular-progress-loader.js +29 -27
- package/dist/components/circular-progress-loader/constants.d.ts +3 -1
- package/dist/components/circular-progress-loader/constants.js +4 -2
- package/package.json +1 -1
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { PRECENT_SYMBOL as
|
|
4
|
-
import { CIRCULAR_PROGRESS_DEFAULT_VALUE as
|
|
5
|
-
import { B as
|
|
6
|
-
import { C } from "../../CircularProgress-BQQkuSse.js";
|
|
7
|
-
import { T as
|
|
8
|
-
import '../../assets/circular-progress-loader.css';const
|
|
9
|
-
circularProgressLoader:
|
|
10
|
-
progress:
|
|
11
|
-
labelContainer:
|
|
12
|
-
labelText:
|
|
13
|
-
},
|
|
1
|
+
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "../../index-B2JRaoNz.js";
|
|
3
|
+
import { PRECENT_SYMBOL as T } from "../../constants.js";
|
|
4
|
+
import { CIRCULAR_PROGRESS_DEFAULT_VALUE as R, PROGRESS_VARIANT_DETERMINATE as a, CIRCULAR_PROGRESS_DEFAULT_SIZE as C } from "./constants.js";
|
|
5
|
+
import { B as l } from "../../Box-D8oKffw9.js";
|
|
6
|
+
import { C as E } from "../../CircularProgress-BQQkuSse.js";
|
|
7
|
+
import { T as g } from "../../Typography-r_TXEM1e.js";
|
|
8
|
+
import '../../assets/circular-progress-loader.css';const L = "_circularProgressLoader_knl3p_1", P = "_progress_knl3p_5", b = "_labelContainer_knl3p_8", d = "_labelText_knl3p_18", r = {
|
|
9
|
+
circularProgressLoader: L,
|
|
10
|
+
progress: P,
|
|
11
|
+
labelContainer: b,
|
|
12
|
+
labelText: d
|
|
13
|
+
}, k = (t) => {
|
|
14
14
|
const {
|
|
15
|
-
value: o =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
value: o = R,
|
|
16
|
+
variant: s = a,
|
|
17
|
+
size: c = C,
|
|
18
|
+
className: n,
|
|
19
|
+
...i
|
|
20
|
+
} = t, p = `${Math.round(o)}${T}`;
|
|
21
|
+
return /* @__PURE__ */ _(l, { className: r.circularProgressLoader, children: [
|
|
20
22
|
/* @__PURE__ */ e(
|
|
21
|
-
|
|
23
|
+
E,
|
|
22
24
|
{
|
|
23
|
-
className:
|
|
24
|
-
size: p,
|
|
25
|
+
className: m(r.progress, n),
|
|
25
26
|
enableTrackSlot: !0,
|
|
26
|
-
variant:
|
|
27
|
+
variant: s,
|
|
27
28
|
value: o,
|
|
28
|
-
|
|
29
|
+
size: c,
|
|
30
|
+
...i
|
|
29
31
|
}
|
|
30
32
|
),
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
|
|
33
|
+
s === a && /* @__PURE__ */ e(l, { className: r.labelContainer, children: /* @__PURE__ */ e(
|
|
34
|
+
g,
|
|
33
35
|
{
|
|
34
36
|
className: r.labelText,
|
|
35
37
|
variant: "caption",
|
|
36
38
|
component: "div",
|
|
37
|
-
children:
|
|
39
|
+
children: p
|
|
38
40
|
}
|
|
39
41
|
) })
|
|
40
42
|
] });
|
|
41
43
|
};
|
|
42
44
|
export {
|
|
43
|
-
|
|
45
|
+
k as CircularProgressLoader
|
|
44
46
|
};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const CIRCULAR_PROGRESS_DEFAULT_SIZE = 100;
|
|
2
2
|
export declare const CIRCULAR_PROGRESS_DEFAULT_VALUE = 0;
|
|
3
|
+
export declare const PROGRESS_VARIANT_DETERMINATE = "determinate";
|
|
4
|
+
export declare const PROGRESS_VARIANT_INDETERMINATE = "indeterminate";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
const R = 100, E = 0;
|
|
1
|
+
const R = 100, E = 0, A = "determinate", _ = "indeterminate";
|
|
2
2
|
export {
|
|
3
|
+
R as CIRCULAR_PROGRESS_DEFAULT_SIZE,
|
|
3
4
|
E as CIRCULAR_PROGRESS_DEFAULT_VALUE,
|
|
4
|
-
|
|
5
|
+
A as PROGRESS_VARIANT_DETERMINATE,
|
|
6
|
+
_ as PROGRESS_VARIANT_INDETERMINATE
|
|
5
7
|
};
|