@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.
@@ -1,44 +1,46 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { c as n } from "../../index-B2JRaoNz.js";
3
- import { PRECENT_SYMBOL as m } from "../../constants.js";
4
- import { CIRCULAR_PROGRESS_DEFAULT_VALUE as _, CIRCULAR_PROGRESS_SIZE as p } from "./constants.js";
5
- import { B as a } from "../../Box-D8oKffw9.js";
6
- import { C } from "../../CircularProgress-BQQkuSse.js";
7
- import { T as d } from "../../Typography-r_TXEM1e.js";
8
- import '../../assets/circular-progress-loader.css';const g = "_circularProgressLoader_ric36_1", b = "_progress_ric36_7", u = "_labelContainer_ric36_10", x = "_labelText_ric36_20", r = {
9
- circularProgressLoader: g,
10
- progress: b,
11
- labelContainer: u,
12
- labelText: x
13
- }, h = (s) => {
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
- className: t,
17
- ...l
18
- } = s, c = `${Math.round(o)}${m}`;
19
- return /* @__PURE__ */ i(a, { className: r.circularProgressLoader, children: [
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
- C,
23
+ E,
22
24
  {
23
- className: n(r.progress, t),
24
- size: p,
25
+ className: m(r.progress, n),
25
26
  enableTrackSlot: !0,
26
- variant: "determinate",
27
+ variant: s,
27
28
  value: o,
28
- ...l
29
+ size: c,
30
+ ...i
29
31
  }
30
32
  ),
31
- /* @__PURE__ */ e(a, { className: r.labelContainer, children: /* @__PURE__ */ e(
32
- d,
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: c
39
+ children: p
38
40
  }
39
41
  ) })
40
42
  ] });
41
43
  };
42
44
  export {
43
- h as CircularProgressLoader
45
+ k as CircularProgressLoader
44
46
  };
@@ -1,2 +1,4 @@
1
- export declare const CIRCULAR_PROGRESS_SIZE = 100;
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
- R as CIRCULAR_PROGRESS_SIZE
5
+ A as PROGRESS_VARIANT_DETERMINATE,
6
+ _ as PROGRESS_VARIANT_INDETERMINATE
5
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hai-dev/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.11",
4
+ "version": "1.0.12",
5
5
  "license": "UNLICENSED",
6
6
  "author": {
7
7
  "name": "Vladislav Knitrunov",