1mpacto-react-ui 2.0.22 → 2.0.24
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/_mixins.scss +72 -72
- package/dist/assets/icons/arrow-narrow-down.svg +3 -3
- package/dist/assets/style.css +1 -1
- package/dist/components/Button/Button.cjs +12 -12
- package/dist/components/Button/Button.config.cjs +1 -1
- package/dist/components/Button/Button.config.mjs +1 -1
- package/dist/components/Button/Button.mjs +24 -24
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +57 -57
- package/dist/components/ButtonIcon/ButtonIcon.cjs +12 -12
- package/dist/components/ButtonIcon/ButtonIcon.mjs +20 -20
- package/dist/components/Calendar/CalendarYear.cjs +2 -2
- package/dist/components/Calendar/CalendarYear.mjs +2 -2
- package/dist/components/Chart/PieChart.cjs +1 -1
- package/dist/components/Chart/PieChart.mjs +126 -107
- package/dist/components/Upload/UploadImage.cjs +12 -12
- package/dist/components/Upload/UploadImage.mjs +28 -28
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.d.ts +128 -128
- package/dist/package.json.mjs +1 -1
- package/dist/src/components/Button/Button.config.d.ts +1 -1
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/Chart/index.d.ts +11 -1
- package/dist/types-external/table.d.ts +15 -15
- package/package.json +128 -128
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),
|
|
2
|
-
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629
|
|
3
|
-
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861
|
|
4
|
-
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514
|
|
5
|
-
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731
|
|
6
|
-
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543
|
|
7
|
-
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776
|
|
8
|
-
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858
|
|
9
|
-
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607
|
|
10
|
-
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049
|
|
11
|
-
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),c=
|
|
12
|
-
${e?
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),i=require("react"),l=require("./style.module.scss.cjs"),s=require("./Button.config.cjs"),p=({className:r=""})=>n.jsx("svg",{className:`${l.default["icon-loading"]} ${r??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:n.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
|
2
|
+
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
|
3
|
+
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
|
4
|
+
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
|
5
|
+
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731 \r
|
|
6
|
+
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543 \r
|
|
7
|
+
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776 \r
|
|
8
|
+
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858 \r
|
|
9
|
+
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
|
10
|
+
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
|
11
|
+
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),c=i.forwardRef((r,d)=>{const{size:a="reguler",variants:u="primary-laba-blue-10",startIcon:t=()=>n.jsx(n.Fragment,{}),endIcon:o=()=>n.jsx(n.Fragment,{}),children:C,className:g,classNameIconLoading:m,loading:e,onClick:f,type:h="button",disabled:x,...j}=r;return n.jsxs("button",{onClick:e?void 0:f,ref:d,className:`${s.configButton.size[a]} ${s.configButton.variants[u]}
|
|
12
|
+
${e?l.default.loading:""} ${g??""}`,type:h,disabled:x??e,...j,children:[!e&&n.jsxs(n.Fragment,{children:[typeof t=="function"&&t(),i.isValidElement(t)&&t]}),e&&n.jsx(p,{className:`${s.configButton.loadingSize[a]} ${m}`}),C,!e&&n.jsxs(n.Fragment,{children:[typeof o=="function"&&o(),i.isValidElement(o)&&o]})]})});c.displayName="Button";exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.module.scss.cjs"),l={size:{large:e.default["button-large"],reguler:e.default["button-reguler"],small:e.default["button-small"],"extra-small":e.default["button-extra-small"],l:e.default["button-l"],m:e.default["button-m"],s:e.default["button-s"],xs:e.default["button-xs"],"bill-l":e.default["button-bill-l"],"bill-m":e.default["button-bill-m"],"bill-s":e.default["button-bill-s"],"bill-xs":e.default["button-bill-xs"],"bill-xxs":e.default["button-bill-xxs"]},loadingSize:{large:"iru-size-6",reguler:"iru-size-5",small:"iru-size-5","extra-small":"iru-size-5",l:"iru-size-6",m:"iru-size-5",s:"iru-size-5",xs:"iru-size-5","bill-l":"iru-size-6","bill-m":"iru-size-5","bill-s":"iru-size-5","bill-xs":"iru-size-5","bill-xxs":"iru-size-5"},variants:{"primary-laba-blue-10":e.default["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":e.default["primary-red-700-dsb_laba-grey-06"],"primary-green-700-dsb_laba-grey-06":e.default["primary-green-700-dsb_laba-grey-06"],"ghost-laba-blue-10":e.default["ghost-laba-blue-10"],"ghost-red-700":e.default["ghost-red-700"],"ghost-green-700":e.default["ghost-green-700"],"ghost-laba-green-10":e.default["ghost-laba-green-10"],"nude-laba-blue-10":e.default["nude-laba-blue-10"],"nude-red-700":e.default["nude-red-700"],"nude-green-700":e.default["nude-green-700"],"nude-gray-500":e.default["nude-gray-500"],"primary-blue-700":e.default["primary-blue-700"],"secondary-blue-700":e.default["secondary-blue-700"],"tertiary-blue-700":e.default["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":e.default["ghost-blue-gray-100-bg_white"],"ghost-blue-gray-100-bg_white-text_blue-gray-400":e.default["ghost-blue-gray-100-bg_white-text_blue-gray-400"],"ghost-laba-blue-05":e.default["ghost-laba-blue-05"],"secondary-red-600":e.default["secondary-red-600"],"tertiary-red-300":e.default["tertiary-red-300"],"tertiary-gray-500":e.default["tertiary-gray-500"],"tertiary-red-600":e.default["tertiary-red-600"],"tertiary-black":e.default["tertiary-black"],"secondary-green-600":e.default["secondary-green-600"],"nude-laba-red-10":e.default["nude-laba-red-10"],"nude-laba-red-05":e.default["nude-laba-red-05"],"primary-red-700":e.default["primary-red-700"],"nude-laba-red-08":e.default["nude-laba-red-08"],"ghost-laba-blue-01":e.default["ghost-laba-blue-01"],"filled-laba-white_laba-blue-10":e.default["filled-laba-white_laba-blue-10"],"filled-laba-white_laba-red-05":e.default["filled-laba-white_laba-red-05"],"secondary-red-700":e.default["secondary-red-700"],"primary-bill-primary-600":e.default["primary-bill-primary-600"],"secondary-bill-secondary-800":e.default["secondary-bill-secondary-800"],"tertiary-bill-secondary-800":e.default["tertiary-bill-secondary-800"],"primary-bill-red-700":e.default["primary-bill-red-700"],"filled-bill-blue-gray-500_bg-blue-gray-50":e.default["filled-bill-blue-gray-500_bg-blue-gray-50"],"filled-bill-secondary-800_bg-white":e.default["filled-bill-secondary-800_bg-white"],"primary-blue-gray-900":e.default["primary-blue-gray-900"],"filled-blue-gray-900":e.default["filled-blue-gray-900"]}};exports.configButton=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.module.scss.cjs"),l={size:{large:e.default["button-large"],reguler:e.default["button-reguler"],small:e.default["button-small"],"extra-small":e.default["button-extra-small"],l:e.default["button-l"],m:e.default["button-m"],s:e.default["button-s"],xs:e.default["button-xs"],"bill-l":e.default["button-bill-l"],"bill-m":e.default["button-bill-m"],"bill-s":e.default["button-bill-s"],"bill-xs":e.default["button-bill-xs"],"bill-xxs":e.default["button-bill-xxs"]},loadingSize:{large:"iru-size-6",reguler:"iru-size-5",small:"iru-size-5","extra-small":"iru-size-5",l:"iru-size-6",m:"iru-size-5",s:"iru-size-5",xs:"iru-size-5","bill-l":"iru-size-6","bill-m":"iru-size-5","bill-s":"iru-size-5","bill-xs":"iru-size-5","bill-xxs":"iru-size-5"},variants:{"primary-laba-blue-10":e.default["primary-laba-blue-10"],"primary-red-700-dsb_laba-grey-06":e.default["primary-red-700-dsb_laba-grey-06"],"primary-green-700-dsb_laba-grey-06":e.default["primary-green-700-dsb_laba-grey-06"],"ghost-laba-blue-10":e.default["ghost-laba-blue-10"],"ghost-red-700":e.default["ghost-red-700"],"ghost-green-700":e.default["ghost-green-700"],"ghost-laba-green-10":e.default["ghost-laba-green-10"],"nude-laba-blue-10":e.default["nude-laba-blue-10"],"nude-red-700":e.default["nude-red-700"],"nude-green-700":e.default["nude-green-700"],"nude-gray-500":e.default["nude-gray-500"],"primary-blue-700":e.default["primary-blue-700"],"secondary-blue-700":e.default["secondary-blue-700"],"tertiary-blue-700":e.default["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":e.default["ghost-blue-gray-100-bg_white"],"ghost-blue-gray-100-bg_white-text_blue-gray-400":e.default["ghost-blue-gray-100-bg_white-text_blue-gray-400"],"ghost-laba-blue-05":e.default["ghost-laba-blue-05"],"secondary-red-600":e.default["secondary-red-600"],"tertiary-red-300":e.default["tertiary-red-300"],"tertiary-gray-500":e.default["tertiary-gray-500"],"tertiary-red-600":e.default["tertiary-red-600"],"tertiary-black":e.default["tertiary-black"],"secondary-green-600":e.default["secondary-green-600"],"nude-laba-red-10":e.default["nude-laba-red-10"],"nude-laba-red-05":e.default["nude-laba-red-05"],"primary-red-700":e.default["primary-red-700"],"nude-laba-red-08":e.default["nude-laba-red-08"],"ghost-laba-blue-01":e.default["ghost-laba-blue-01"],"filled-laba-white_laba-blue-10":e.default["filled-laba-white_laba-blue-10"],"filled-laba-white_laba-red-05":e.default["filled-laba-white_laba-red-05"],"secondary-red-700":e.default["secondary-red-700"],"primary-bill-primary-600":e.default["primary-bill-primary-600"],"secondary-bill-secondary-800":e.default["secondary-bill-secondary-800"],"tertiary-bill-secondary-800":e.default["tertiary-bill-secondary-800"],"primary-bill-red-700":e.default["primary-bill-red-700"],"filled-bill-blue-gray-500_bg-blue-gray-50":e.default["filled-bill-blue-gray-500_bg-blue-gray-50"],"filled-bill-secondary-800_bg-white":e.default["filled-bill-secondary-800_bg-white"],"primary-blue-gray-900-dsb_laba-grey-06":e.default["primary-blue-gray-900-dsb_laba-grey-06"],"filled-blue-gray-900":e.default["filled-blue-gray-900"]}};exports.configButton=l;
|
|
@@ -68,7 +68,7 @@ const r = {
|
|
|
68
68
|
"primary-bill-red-700": e["primary-bill-red-700"],
|
|
69
69
|
"filled-bill-blue-gray-500_bg-blue-gray-50": e["filled-bill-blue-gray-500_bg-blue-gray-50"],
|
|
70
70
|
"filled-bill-secondary-800_bg-white": e["filled-bill-secondary-800_bg-white"],
|
|
71
|
-
"primary-blue-gray-900": e["primary-blue-gray-900"],
|
|
71
|
+
"primary-blue-gray-900-dsb_laba-grey-06": e["primary-blue-gray-900-dsb_laba-grey-06"],
|
|
72
72
|
"filled-blue-gray-900": e["filled-blue-gray-900"]
|
|
73
73
|
}
|
|
74
74
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as o, Fragment as
|
|
1
|
+
import { jsx as o, Fragment as i, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b, isValidElement as c } from "react";
|
|
3
3
|
import d from "./style.module.scss.mjs";
|
|
4
4
|
import { configButton as l } from "./Button.config.mjs";
|
|
5
|
-
const v = ({ className:
|
|
5
|
+
const v = ({ className: e = "" }) => /* @__PURE__ */ o(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
8
|
-
className: `${d["icon-loading"]} ${
|
|
8
|
+
className: `${d["icon-loading"]} ${e ?? ""}`,
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
width: "25",
|
|
11
11
|
height: "24",
|
|
@@ -14,27 +14,27 @@ const v = ({ className: a = "" }) => /* @__PURE__ */ o(
|
|
|
14
14
|
children: /* @__PURE__ */ o(
|
|
15
15
|
"path",
|
|
16
16
|
{
|
|
17
|
-
d: `M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063
|
|
18
|
-
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629
|
|
19
|
-
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861
|
|
20
|
-
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514
|
|
21
|
-
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731
|
|
22
|
-
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543
|
|
23
|
-
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776
|
|
24
|
-
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858
|
|
25
|
-
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607
|
|
26
|
-
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049
|
|
17
|
+
d: `M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
|
18
|
+
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
|
19
|
+
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
|
20
|
+
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
|
21
|
+
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731 \r
|
|
22
|
+
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543 \r
|
|
23
|
+
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776 \r
|
|
24
|
+
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858 \r
|
|
25
|
+
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
|
26
|
+
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
|
27
27
|
6.79445 20.9604 7.02733 21.6311 6.63315Z`,
|
|
28
28
|
fill: "currentColor"
|
|
29
29
|
}
|
|
30
30
|
)
|
|
31
31
|
}
|
|
32
|
-
), y = b((
|
|
32
|
+
), y = b((e, C) => {
|
|
33
33
|
const {
|
|
34
34
|
size: s = "reguler",
|
|
35
35
|
variants: m = "primary-laba-blue-10",
|
|
36
|
-
startIcon:
|
|
37
|
-
endIcon:
|
|
36
|
+
startIcon: r = () => /* @__PURE__ */ o(i, {}),
|
|
37
|
+
endIcon: t = () => /* @__PURE__ */ o(i, {}),
|
|
38
38
|
children: f,
|
|
39
39
|
className: g,
|
|
40
40
|
classNameIconLoading: p,
|
|
@@ -43,8 +43,8 @@ const v = ({ className: a = "" }) => /* @__PURE__ */ o(
|
|
|
43
43
|
type: h = "button",
|
|
44
44
|
disabled: $,
|
|
45
45
|
...w
|
|
46
|
-
} =
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
} = e;
|
|
47
|
+
return /* @__PURE__ */ a(
|
|
48
48
|
"button",
|
|
49
49
|
{
|
|
50
50
|
onClick: n ? void 0 : u,
|
|
@@ -55,15 +55,15 @@ const v = ({ className: a = "" }) => /* @__PURE__ */ o(
|
|
|
55
55
|
disabled: $ ?? n,
|
|
56
56
|
...w,
|
|
57
57
|
children: [
|
|
58
|
-
!n && /* @__PURE__ */
|
|
59
|
-
typeof
|
|
60
|
-
c(
|
|
58
|
+
!n && /* @__PURE__ */ a(i, { children: [
|
|
59
|
+
typeof r == "function" && r(),
|
|
60
|
+
c(r) && r
|
|
61
61
|
] }),
|
|
62
62
|
n && /* @__PURE__ */ o(v, { className: `${l.loadingSize[s]} ${p}` }),
|
|
63
63
|
f,
|
|
64
|
-
!n && /* @__PURE__ */
|
|
65
|
-
typeof
|
|
66
|
-
c(
|
|
64
|
+
!n && /* @__PURE__ */ a(i, { children: [
|
|
65
|
+
typeof t == "function" && t(),
|
|
66
|
+
c(t) && t
|
|
67
67
|
] })
|
|
68
68
|
]
|
|
69
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="_loading_11hyr_14",_={"button-bill-xxs":"_button-bill-xxs_11hyr_6","button-bill-xs":"_button-bill-xs_11hyr_6","button-bill-s":"_button-bill-s_11hyr_6","button-bill-m":"_button-bill-m_11hyr_6","button-bill-l":"_button-bill-l_11hyr_6","button-xs":"_button-xs_11hyr_6","button-s":"_button-s_11hyr_6","button-m":"_button-m_11hyr_6","button-l":"_button-l_11hyr_6","button-extra-small":"_button-extra-small_11hyr_6","button-small":"_button-small_11hyr_6","button-reguler":"_button-reguler_11hyr_6","button-large":"_button-large_11hyr_6",loading:r,"filled-blue-gray-900":"_filled-blue-gray-900_11hyr_29","primary-blue-gray-900-dsb_laba-grey-06":"_primary-blue-gray-900-dsb_laba-grey-06_11hyr_29","filled-bill-secondary-800_bg-white":"_filled-bill-secondary-800_bg-white_11hyr_29","filled-bill-blue-gray-500_bg-blue-gray-50":"_filled-bill-blue-gray-500_bg-blue-gray-50_11hyr_29","nude-laba-red-05":"_nude-laba-red-05_11hyr_29","nude-laba-red-08":"_nude-laba-red-08_11hyr_29","nude-laba-red-10":"_nude-laba-red-10_11hyr_29","nude-gray-500":"_nude-gray-500_11hyr_29","nude-green-700":"_nude-green-700_11hyr_29","nude-red-700":"_nude-red-700_11hyr_29","nude-laba-blue-10":"_nude-laba-blue-10_11hyr_29","ghost-blue-gray-100-bg_white-text_blue-gray-400":"_ghost-blue-gray-100-bg_white-text_blue-gray-400_11hyr_29","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_11hyr_29","ghost-laba-green-10":"_ghost-laba-green-10_11hyr_29","ghost-laba-blue-01":"_ghost-laba-blue-01_11hyr_29","ghost-laba-blue-05":"_ghost-laba-blue-05_11hyr_29","ghost-green-700":"_ghost-green-700_11hyr_29","ghost-red-700":"_ghost-red-700_11hyr_29","ghost-laba-blue-10":"_ghost-laba-blue-10_11hyr_29","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_11hyr_29","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_11hyr_29","primary-green-700-dsb_laba-grey-06":"_primary-green-700-dsb_laba-grey-06_11hyr_29","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_11hyr_29","primary-laba-blue-10":"_primary-laba-blue-10_11hyr_29","primary-bill-red-700":"_primary-bill-red-700_11hyr_29","tertiary-bill-secondary-800":"_tertiary-bill-secondary-800_11hyr_29","secondary-bill-secondary-800":"_secondary-bill-secondary-800_11hyr_29","primary-bill-primary-600":"_primary-bill-primary-600_11hyr_29","tertiary-black":"_tertiary-black_11hyr_29","tertiary-gray-500":"_tertiary-gray-500_11hyr_29","tertiary-red-600":"_tertiary-red-600_11hyr_29","tertiary-red-300":"_tertiary-red-300_11hyr_29","tertiary-blue-700":"_tertiary-blue-700_11hyr_29","secondary-green-600":"_secondary-green-600_11hyr_29","secondary-red-700":"_secondary-red-700_11hyr_29","secondary-red-600":"_secondary-red-600_11hyr_29","secondary-blue-700":"_secondary-blue-700_11hyr_29","primary-red-700":"_primary-red-700_11hyr_29","primary-blue-700":"_primary-blue-700_11hyr_29","icon-loading":"_icon-loading_11hyr_244"};exports.default=_;exports.loading=r;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
const
|
|
2
|
-
"button-bill-xxs": "_button-bill-
|
|
3
|
-
"button-bill-xs": "_button-bill-
|
|
4
|
-
"button-bill-s": "_button-bill-
|
|
5
|
-
"button-bill-m": "_button-bill-
|
|
6
|
-
"button-bill-l": "_button-bill-
|
|
7
|
-
"button-xs": "_button-
|
|
8
|
-
"button-s": "_button-
|
|
9
|
-
"button-m": "_button-
|
|
10
|
-
"button-l": "_button-
|
|
11
|
-
"button-extra-small": "_button-extra-
|
|
12
|
-
"button-small": "_button-
|
|
13
|
-
"button-reguler": "_button-
|
|
14
|
-
"button-large": "_button-
|
|
15
|
-
loading:
|
|
16
|
-
"filled-blue-gray-900": "_filled-blue-gray-
|
|
17
|
-
"primary-blue-gray-900": "_primary-blue-gray-
|
|
18
|
-
"filled-bill-secondary-800_bg-white": "_filled-bill-secondary-800_bg-
|
|
19
|
-
"filled-bill-blue-gray-500_bg-blue-gray-50": "_filled-bill-blue-gray-500_bg-blue-gray-
|
|
20
|
-
"nude-laba-red-05": "_nude-laba-red-
|
|
21
|
-
"nude-laba-red-08": "_nude-laba-red-
|
|
22
|
-
"nude-laba-red-10": "_nude-laba-red-
|
|
23
|
-
"nude-gray-500": "_nude-gray-
|
|
24
|
-
"nude-green-700": "_nude-green-
|
|
25
|
-
"nude-red-700": "_nude-red-
|
|
26
|
-
"nude-laba-blue-10": "_nude-laba-blue-
|
|
27
|
-
"ghost-blue-gray-100-bg_white-text_blue-gray-400": "_ghost-blue-gray-100-bg_white-text_blue-gray-
|
|
28
|
-
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-
|
|
29
|
-
"ghost-laba-green-10": "_ghost-laba-green-
|
|
30
|
-
"ghost-laba-blue-01": "_ghost-laba-blue-
|
|
31
|
-
"ghost-laba-blue-05": "_ghost-laba-blue-
|
|
32
|
-
"ghost-green-700": "_ghost-green-
|
|
33
|
-
"ghost-red-700": "_ghost-red-
|
|
34
|
-
"ghost-laba-blue-10": "_ghost-laba-blue-
|
|
35
|
-
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-
|
|
36
|
-
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-
|
|
37
|
-
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-
|
|
38
|
-
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-
|
|
39
|
-
"primary-laba-blue-10": "_primary-laba-blue-
|
|
40
|
-
"primary-bill-red-700": "_primary-bill-red-
|
|
41
|
-
"tertiary-bill-secondary-800": "_tertiary-bill-secondary-
|
|
42
|
-
"secondary-bill-secondary-800": "_secondary-bill-secondary-
|
|
43
|
-
"primary-bill-primary-600": "_primary-bill-primary-
|
|
44
|
-
"tertiary-black": "_tertiary-
|
|
45
|
-
"tertiary-gray-500": "_tertiary-gray-
|
|
46
|
-
"tertiary-red-600": "_tertiary-red-
|
|
47
|
-
"tertiary-red-300": "_tertiary-red-
|
|
48
|
-
"tertiary-blue-700": "_tertiary-blue-
|
|
49
|
-
"secondary-green-600": "_secondary-green-
|
|
50
|
-
"secondary-red-700": "_secondary-red-
|
|
51
|
-
"secondary-red-600": "_secondary-red-
|
|
52
|
-
"secondary-blue-700": "_secondary-blue-
|
|
53
|
-
"primary-red-700": "_primary-red-
|
|
54
|
-
"primary-blue-700": "_primary-blue-
|
|
55
|
-
"icon-loading": "_icon-
|
|
1
|
+
const r = "_loading_11hyr_14", _ = {
|
|
2
|
+
"button-bill-xxs": "_button-bill-xxs_11hyr_6",
|
|
3
|
+
"button-bill-xs": "_button-bill-xs_11hyr_6",
|
|
4
|
+
"button-bill-s": "_button-bill-s_11hyr_6",
|
|
5
|
+
"button-bill-m": "_button-bill-m_11hyr_6",
|
|
6
|
+
"button-bill-l": "_button-bill-l_11hyr_6",
|
|
7
|
+
"button-xs": "_button-xs_11hyr_6",
|
|
8
|
+
"button-s": "_button-s_11hyr_6",
|
|
9
|
+
"button-m": "_button-m_11hyr_6",
|
|
10
|
+
"button-l": "_button-l_11hyr_6",
|
|
11
|
+
"button-extra-small": "_button-extra-small_11hyr_6",
|
|
12
|
+
"button-small": "_button-small_11hyr_6",
|
|
13
|
+
"button-reguler": "_button-reguler_11hyr_6",
|
|
14
|
+
"button-large": "_button-large_11hyr_6",
|
|
15
|
+
loading: r,
|
|
16
|
+
"filled-blue-gray-900": "_filled-blue-gray-900_11hyr_29",
|
|
17
|
+
"primary-blue-gray-900-dsb_laba-grey-06": "_primary-blue-gray-900-dsb_laba-grey-06_11hyr_29",
|
|
18
|
+
"filled-bill-secondary-800_bg-white": "_filled-bill-secondary-800_bg-white_11hyr_29",
|
|
19
|
+
"filled-bill-blue-gray-500_bg-blue-gray-50": "_filled-bill-blue-gray-500_bg-blue-gray-50_11hyr_29",
|
|
20
|
+
"nude-laba-red-05": "_nude-laba-red-05_11hyr_29",
|
|
21
|
+
"nude-laba-red-08": "_nude-laba-red-08_11hyr_29",
|
|
22
|
+
"nude-laba-red-10": "_nude-laba-red-10_11hyr_29",
|
|
23
|
+
"nude-gray-500": "_nude-gray-500_11hyr_29",
|
|
24
|
+
"nude-green-700": "_nude-green-700_11hyr_29",
|
|
25
|
+
"nude-red-700": "_nude-red-700_11hyr_29",
|
|
26
|
+
"nude-laba-blue-10": "_nude-laba-blue-10_11hyr_29",
|
|
27
|
+
"ghost-blue-gray-100-bg_white-text_blue-gray-400": "_ghost-blue-gray-100-bg_white-text_blue-gray-400_11hyr_29",
|
|
28
|
+
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_11hyr_29",
|
|
29
|
+
"ghost-laba-green-10": "_ghost-laba-green-10_11hyr_29",
|
|
30
|
+
"ghost-laba-blue-01": "_ghost-laba-blue-01_11hyr_29",
|
|
31
|
+
"ghost-laba-blue-05": "_ghost-laba-blue-05_11hyr_29",
|
|
32
|
+
"ghost-green-700": "_ghost-green-700_11hyr_29",
|
|
33
|
+
"ghost-red-700": "_ghost-red-700_11hyr_29",
|
|
34
|
+
"ghost-laba-blue-10": "_ghost-laba-blue-10_11hyr_29",
|
|
35
|
+
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-05_11hyr_29",
|
|
36
|
+
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-10_11hyr_29",
|
|
37
|
+
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-06_11hyr_29",
|
|
38
|
+
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-06_11hyr_29",
|
|
39
|
+
"primary-laba-blue-10": "_primary-laba-blue-10_11hyr_29",
|
|
40
|
+
"primary-bill-red-700": "_primary-bill-red-700_11hyr_29",
|
|
41
|
+
"tertiary-bill-secondary-800": "_tertiary-bill-secondary-800_11hyr_29",
|
|
42
|
+
"secondary-bill-secondary-800": "_secondary-bill-secondary-800_11hyr_29",
|
|
43
|
+
"primary-bill-primary-600": "_primary-bill-primary-600_11hyr_29",
|
|
44
|
+
"tertiary-black": "_tertiary-black_11hyr_29",
|
|
45
|
+
"tertiary-gray-500": "_tertiary-gray-500_11hyr_29",
|
|
46
|
+
"tertiary-red-600": "_tertiary-red-600_11hyr_29",
|
|
47
|
+
"tertiary-red-300": "_tertiary-red-300_11hyr_29",
|
|
48
|
+
"tertiary-blue-700": "_tertiary-blue-700_11hyr_29",
|
|
49
|
+
"secondary-green-600": "_secondary-green-600_11hyr_29",
|
|
50
|
+
"secondary-red-700": "_secondary-red-700_11hyr_29",
|
|
51
|
+
"secondary-red-600": "_secondary-red-600_11hyr_29",
|
|
52
|
+
"secondary-blue-700": "_secondary-blue-700_11hyr_29",
|
|
53
|
+
"primary-red-700": "_primary-red-700_11hyr_29",
|
|
54
|
+
"primary-blue-700": "_primary-blue-700_11hyr_29",
|
|
55
|
+
"icon-loading": "_icon-loading_11hyr_244"
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
_ as default,
|
|
59
|
+
r as loading
|
|
60
60
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),h=require("react"),
|
|
2
|
-
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629
|
|
3
|
-
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861
|
|
4
|
-
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514
|
|
5
|
-
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731
|
|
6
|
-
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543
|
|
7
|
-
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776
|
|
8
|
-
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858
|
|
9
|
-
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607
|
|
10
|
-
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049
|
|
11
|
-
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),
|
|
12
|
-
${n?
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),h=require("react"),i=require("./style.module.scss.cjs"),t=require("./ButtonIcon.config.cjs"),b=({className:o=""})=>e.jsx("svg",{className:`${i.default["icon-loading"]} ${o??""}`,xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:e.jsx("path",{d:`M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
|
2
|
+
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
|
3
|
+
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
|
4
|
+
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
|
5
|
+
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731 \r
|
|
6
|
+
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543 \r
|
|
7
|
+
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776 \r
|
|
8
|
+
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858 \r
|
|
9
|
+
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
|
10
|
+
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
|
11
|
+
6.79445 20.9604 7.02733 21.6311 6.63315Z`,fill:"currentColor"})}),s=h.forwardRef((o,a)=>{const{size:r="reguler",variants:l="primary-laba-blue-10",children:c,className:u,classNameIconLoading:d,loading:n,onClick:C,type:g="button",disabled:f,...m}=o;return e.jsxs("button",{onClick:n?void 0:C,ref:a,className:`${t.configButton.size[r]} ${t.configButton.variants[l]}
|
|
12
|
+
${n?i.default.loading:""} ${u??""}`,type:g,disabled:f??n,...m,children:[n&&e.jsx(b,{className:`${t.configButton.loadingSize[r]} ${d}`}),c]})});s.displayName="ButtonIcon";exports.default=s;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { configButton as
|
|
5
|
-
const h = ({ className: o = "" }) => /* @__PURE__ */
|
|
3
|
+
import a from "./style.module.scss.mjs";
|
|
4
|
+
import { configButton as r } from "./ButtonIcon.config.mjs";
|
|
5
|
+
const h = ({ className: o = "" }) => /* @__PURE__ */ i(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
8
|
-
className: `${
|
|
8
|
+
className: `${a["icon-loading"]} ${o ?? ""}`,
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
width: "25",
|
|
11
11
|
height: "24",
|
|
12
12
|
viewBox: "0 0 25 24",
|
|
13
13
|
fill: "none",
|
|
14
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ i(
|
|
15
15
|
"path",
|
|
16
16
|
{
|
|
17
|
-
d: `M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063
|
|
18
|
-
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629
|
|
19
|
-
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861
|
|
20
|
-
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514
|
|
21
|
-
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731
|
|
22
|
-
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543
|
|
23
|
-
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776
|
|
24
|
-
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858
|
|
25
|
-
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607
|
|
26
|
-
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049
|
|
17
|
+
d: `M21.6311 6.63315C22.3017 6.23898 22.5321 5.36957 22.0621 4.7497C20.7187 2.9779 18.9029 1.6063 \r
|
|
18
|
+
16.8106 0.800956C14.2782 -0.173807 11.4901 -0.261467 8.90143 0.552281C6.31275 1.36603 4.07629 \r
|
|
19
|
+
3.03314 2.55704 5.28155C1.0378 7.52995 0.325454 10.2269 0.536268 12.9323C0.747083 15.6376 1.86861 \r
|
|
20
|
+
18.1917 3.71782 20.1776C5.56702 22.1635 8.03473 23.4641 10.7182 23.867C13.4017 24.2699 16.1425 23.7514 \r
|
|
21
|
+
18.4934 22.3961C20.4357 21.2764 22.0171 19.64 23.0698 17.6815C23.4381 16.9963 23.0758 16.1731 \r
|
|
22
|
+
22.3522 15.8876C21.6286 15.6021 20.8195 15.9647 20.4268 16.6361C19.6248 18.0072 18.4764 19.1543 \r
|
|
23
|
+
17.0864 19.9556C15.2874 20.9927 13.19 21.3895 11.1365 21.0812C9.08296 20.7728 7.19456 19.7776 \r
|
|
24
|
+
5.77946 18.2579C4.36436 16.7382 3.50612 14.7837 3.34479 12.7134C3.18346 10.6431 3.72858 \r
|
|
25
|
+
8.57931 4.89118 6.85872C6.05378 5.13813 7.76522 3.86239 9.7462 3.23967C11.7272 2.61695 13.8607 \r
|
|
26
|
+
2.68403 15.7987 3.42996C17.296 4.0063 18.6083 4.96159 19.6129 6.19191C20.1049 \r
|
|
27
27
|
6.79445 20.9604 7.02733 21.6311 6.63315Z`,
|
|
28
28
|
fill: "currentColor"
|
|
29
29
|
}
|
|
@@ -31,7 +31,7 @@ const h = ({ className: o = "" }) => /* @__PURE__ */ t(
|
|
|
31
31
|
}
|
|
32
32
|
), $ = f((o, e) => {
|
|
33
33
|
const {
|
|
34
|
-
size:
|
|
34
|
+
size: t = "reguler",
|
|
35
35
|
variants: s = "primary-laba-blue-10",
|
|
36
36
|
children: l,
|
|
37
37
|
className: C,
|
|
@@ -47,13 +47,13 @@ const h = ({ className: o = "" }) => /* @__PURE__ */ t(
|
|
|
47
47
|
{
|
|
48
48
|
onClick: n ? void 0 : d,
|
|
49
49
|
ref: e,
|
|
50
|
-
className: `${
|
|
51
|
-
${n ?
|
|
50
|
+
className: `${r.size[t]} ${r.variants[s]}
|
|
51
|
+
${n ? a.loading : ""} ${C ?? ""}`,
|
|
52
52
|
type: m,
|
|
53
53
|
disabled: g ?? n,
|
|
54
54
|
...p,
|
|
55
55
|
children: [
|
|
56
|
-
n && /* @__PURE__ */
|
|
56
|
+
n && /* @__PURE__ */ i(h, { className: `${r.loadingSize[t]} ${c}` }),
|
|
57
57
|
l
|
|
58
58
|
]
|
|
59
59
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),y=require("react"),c=require("./style.module.scss.cjs"),m=({className:o})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`iru-h-4 iru-w-4 iru-text-blue-700 ${o??""}`,viewBox:"0 0 512 512",children:n.jsx("path",{d:`M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8
|
|
2
|
-
0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),y=require("react"),c=require("./style.module.scss.cjs"),m=({className:o})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:`iru-h-4 iru-w-4 iru-text-blue-700 ${o??""}`,viewBox:"0 0 512 512",children:n.jsx("path",{d:`M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 \r
|
|
2
|
+
0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 \r
|
|
3
3
|
0s-12.5 32.8 0 45.3l192 192z`})}),b=({title:o,state:a,type:l,setUpYear:t={startYear:1970,endAfterThisYear:20},hiddenHeader:h,setActiveTypeCalendar:i,onChangeYear:u})=>{const x=(r,e)=>{const s=a.focusedDate.set({year:r});e?(i("month"),a.setFocusedDate(s)):!e&&typeof u=="function"&&u(s)},g=(r,e,s)=>Array.from({length:(e-r)/s+1},(f,d)=>r+d*s);return y.useEffect(()=>{const r=document.getElementById(`calendar-year-${a.focusedDate.year}`),e=document.getElementById("wrapper-calendar-year");r&&e&&e.scrollTo({behavior:"instant",top:r.offsetTop-93})},[]),n.jsxs("div",{className:`iru-w-[296px] ${c.default["container-calendar"]}`,children:[!h&&n.jsx("div",{className:`${c.default["header-calendar"]} iru-my-2`,children:n.jsxs("div",{className:`${c.default["header-button-calendar"]} ${l.includes("date")||l.includes("month")?"":c.default.disabled}`,onClick:()=>{l.includes("date")?i("date"):l.includes("month")&&i("month")},children:[o," ",(l.includes("date")||l.includes("month"))&&n.jsx(m,{})]})}),n.jsx("div",{id:"wrapper-calendar-year",className:c.default["year-calendar"],children:g(t?.startYear,new Date().getFullYear()+t.endAfterThisYear,1).map(r=>{const e=Number(r),s=a?.minValue?e<a?.minValue?.year:!1,f=a?.maxValue?e>a?.maxValue?.year:!1,d=s||f;return n.jsx("div",{id:`calendar-year-${r}`,onClick:()=>{d||x(e,l.includes("month"))},className:`${c.default["cell-year"]} ${a.focusedDate.year===e&&!d?c.default.selected:""} ${a.focusedDate.year!==e&&!d?"hover:iru-bg-laba-blue-01":""} ${d?"iru-text-gray-400":"iru-cursor-pointer"}`,children:r},r)})})]})};exports.ChevronDownIcon=m;exports.default=b;
|
|
@@ -11,8 +11,8 @@ const $ = ({ className: d }) => /* @__PURE__ */ o(
|
|
|
11
11
|
children: /* @__PURE__ */ o(
|
|
12
12
|
"path",
|
|
13
13
|
{
|
|
14
|
-
d: `M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8
|
|
15
|
-
0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3
|
|
14
|
+
d: `M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 \r
|
|
15
|
+
0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 \r
|
|
16
16
|
0s-12.5 32.8 0 45.3l192 192z`
|
|
17
17
|
}
|
|
18
18
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("react/jsx-runtime"),v=require("chart.js"),h=require("react"),T=require("react-chartjs-2"),M=require("../../utils/common.cjs"),k=require("../PortalComponent/PortalComponent.cjs");v.Chart.register(v.ArcElement,v.Tooltip);const O=(t,n,e)=>{const a=n>0?t/n*100:0;switch(e){case"decimal":return M.formatNumber(t,"decimal");case"currency":return M.formatNumber(t,"currency");default:return`${Math.round(a)}%`}},D=()=>{const t=Math.floor(Math.random()*360),n=60+Math.floor(Math.random()*30),e=45+Math.floor(Math.random()*20);return((s,r,o)=>{r/=100,o/=100;const l=r*Math.min(o,1-o),u=d=>{const i=(d+s/30)%12,c=o-l*Math.max(Math.min(i-3,9-i,1),-1);return Math.round(255*c).toString(16).padStart(2,"0")};return`#${u(0)}${u(8)}${u(4)}`})(t,n,e)},q=(t,n)=>Array.isArray(t)?t[n]||D():typeof t=="string"?t:D(),P=t=>t!=="data"&&t.startsWith("data"),B=t=>{const n=t.data?.length??0;return Object.keys(t).filter(e=>{const a=t[e];return P(e)&&Array.isArray(a)&&a.length===n})},j=(t,n,e)=>n.reduce((a,s)=>{const r=t[s];return Array.isArray(r)&&(a[s]=r[e]),a},{}),E=t=>Object.keys(t[0]??{}).filter(P).reduce((e,a)=>(e[a]=t.map(s=>s[a]),e),{}),C=(t,n={})=>({labels:t.map(e=>e.label),values:t.map(e=>e.value),colors:t.map(e=>e.backgroundColor||D()),extraDatasetData:E(t),mergedMap:n}),K=t=>{const n=t.labels??[],e=t.datasets[0];if(!e)return[];const a=e.data??[],s=B(e);return a.map((r,o)=>({label:n[o]??"",value:r,backgroundColor:q(e.backgroundColor,o),...j(e,s,o)}))},R=(t,n)=>{if(!n)return C(t);const{mode:e,value:a,otherLabel:s="Other",otherBackgroundColor:r="#B0BEC5"}=n,o=t.reduce((c,f)=>c+f.value,0),l=[],u=[];let d=0;t.forEach(c=>{(e==="percentage"?c.value/o*100<a:c.value<a)?(d+=c.value,u.push(c)):l.push(c)});const i={};if(d>0){const c=E(u);l.push({...c,label:s,value:d,backgroundColor:r}),i[l.length-1]=u}return C(l,i)},F=(t,n,e)=>({chart:a,tooltip:s})=>{const r={};if(s.opacity===0){t(g=>({...g,style:{...g.style,opacity:0,pointerEvents:"none"}}));return}if(!s.dataPoints||s.dataPoints.length===0)return;r.opacity="1",r.position="absolute",r.pointerEvents="none";const o=a.canvas.getBoundingClientRect();r.left=o.left+window.pageXOffset+s.caretX+"px",r.top=o.top+window.pageYOffset+s.caretY+"px";const l=s.dataPoints[0].dataIndex,u=s.dataPoints[0].dataset,d=s.dataPoints?.[0]?.label??"",i=s.dataPoints?.[0]?.raw??0,c=u.backgroundColor?.[l]??"",f=u.data?.reduce((g,y)=>g+y,0)||1,p=f>0?i/f*100:0,b=Object.keys(u).filter(P),m=j(u,b,l);t({label:d,value:i,percentage:p,formattedValue:O(i,f,n),backgroundColor:typeof c=="string"?c:"#000",mergedItems:e[l]??[],style:r,dataPoints:s.dataPoints,...m})},L=(t,n)=>({id:"pieLabelPlugin",afterDraw(e){const{ctx:a}=e,s=e.getDatasetMeta(0),r=e.data.datasets[0].data.reduce((o,l)=>o+l,0);s.data.forEach((o,l)=>{const d=e.data.datasets[0].data[l]??0;if((r>0?d/r*100:0)<n)return;const{x:c,y:f}=o.tooltipPosition(!1),p=e.data.labels?.[l];a.save(),a.textAlign="center",a.textBaseline="middle",a.fillStyle="#FFFFFF",a.font="bold 10px Inter, sans-serif",a.fillText(p,c||0,(f||0)-6),a.fillText(O(d,r,t),c||0,(f||0)+8),a.restore()})}}),V={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0}},elements:{arc:{hoverOffset:8,borderWidth:0}}},$=({data:t,height:n,classNameContainer:e,id:a,options:s,CustomTooltip:r,threshold:o,valueFormat:l,hideLabelBelowPercentage:u=5})=>{const[d,i]=h.useState({style:{opacity:0,position:"absolute",left:0,top:0},label:"",value:0,percentage:0,formattedValue:"",backgroundColor:"",mergedItems:[],dataPoints:[]}),c=h.useMemo(()=>K(t),[t]),{labels:f,values:p,colors:b,extraDatasetData:m,mergedMap:g}=h.useMemo(()=>R(c,o),[c,o]),y=h.useMemo(()=>({labels:f,datasets:[{...t.datasets[0],...m,data:p,backgroundColor:b,hoverOffset:8,borderWidth:0}]}),[f,p,b,m,t.datasets]),w=h.useMemo(()=>{const A={plugins:{tooltip:{enabled:!r,external:r?({chart:I,tooltip:S})=>F(i,l,g)({chart:I,tooltip:S}):void 0}}};return M.mergeObjects(V,A,s??{})},[s,r,l,g]);return x.jsxs("div",{id:a,className:e,style:{height:n||"300px"},children:[r&&x.jsx(k.default,{selector:"body",children:x.jsx(r,{...d})}),x.jsx(T.Pie,{data:y,options:w,plugins:[L(l,u)]})]})};exports.default=$;
|