1mpacto-react-ui 2.0.24 → 2.0.26
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/_colors.scss +42 -0
- package/dist/assets/_mixins.scss +72 -72
- package/dist/assets/_typography.scss +32 -2
- package/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- 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 +58 -55
- 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 +60 -57
- package/dist/components/ButtonIcon/ButtonIcon.cjs +12 -12
- package/dist/components/ButtonIcon/ButtonIcon.mjs +20 -20
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.config.cjs +1 -0
- package/dist/components/Calendar/Calendar.config.mjs +22 -0
- package/dist/components/Calendar/Calendar.mjs +221 -133
- package/dist/components/Calendar/CalendarCell.cjs +1 -1
- package/dist/components/Calendar/CalendarCell.mjs +9 -9
- package/dist/components/Calendar/CalendarMonth.cjs +1 -1
- package/dist/components/Calendar/CalendarMonth.mjs +23 -21
- package/dist/components/Calendar/CalendarRange.cjs +1 -1
- package/dist/components/Calendar/CalendarRange.mjs +100 -98
- package/dist/components/Calendar/CalendarYear.cjs +3 -3
- package/dist/components/Calendar/CalendarYear.mjs +27 -25
- package/dist/components/Calendar/style.module.scss.cjs +1 -1
- package/dist/components/Calendar/style.module.scss.mjs +35 -33
- package/dist/components/Chart/LineChart.cjs +1 -1
- package/dist/components/Chart/LineChart.mjs +1 -1
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +78 -69
- package/dist/components/DatePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DatePicker/DateRangePicker.mjs +91 -79
- package/dist/components/DatePicker/FilterDate.cjs +1 -1
- package/dist/components/DatePicker/FilterDate.mjs +181 -127
- package/dist/components/DatePicker/MonthYearPicker.cjs +1 -1
- package/dist/components/DatePicker/MonthYearPicker.mjs +58 -49
- package/dist/components/Input/InputInnerLabel.cjs +6 -6
- package/dist/components/Input/InputInnerLabel.config.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.config.mjs +9 -5
- package/dist/components/Input/InputInnerLabel.mjs +36 -35
- package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.module.scss.mjs +19 -17
- package/dist/components/Sidebar/ItemSidebar.config.cjs +1 -1
- package/dist/components/Sidebar/ItemSidebar.config.mjs +6 -2
- package/dist/components/Sidebar/Sidebar.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.config.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.config.mjs +14 -12
- package/dist/components/Sidebar/Sidebar.mjs +78 -77
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.module.scss.mjs +22 -20
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -24
- package/dist/components/Upload/UploadImage.cjs +12 -12
- package/dist/components/Upload/UploadImage.mjs +28 -28
- package/dist/config/resources/index.cjs +1 -1
- package/dist/config/resources/index.mjs +1 -1
- package/dist/config/tailwind/colors.cjs +1 -1
- package/dist/config/tailwind/colors.mjs +22 -1
- package/dist/config/tailwind/typography.cjs +1 -1
- package/dist/config/tailwind/typography.mjs +70 -3
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.d.ts +127 -128
- package/dist/package.json.mjs +1 -1
- package/dist/src/components/Button/Button.config.d.ts +3 -0
- package/dist/src/components/Calendar/Calendar.config.d.ts +19 -0
- package/dist/src/components/Calendar/Calendar.d.ts +5 -3
- package/dist/src/components/Calendar/Calendar.stories.d.ts +21 -5
- package/dist/src/components/Calendar/CalendarMonth.d.ts +1 -1
- package/dist/src/components/Calendar/CalendarRange.d.ts +1 -1
- package/dist/src/components/Calendar/CalendarYear.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +28 -0
- package/dist/src/components/DatePicker/FilterDate.d.ts +1 -1
- package/dist/src/components/DatePicker/FilterDate.stories.d.ts +29 -1
- package/dist/src/components/DatePicker/MonthYearPicker.d.ts +1 -1
- package/dist/src/components/DatePicker/MonthYearPicker.stories.d.ts +29 -1
- package/dist/src/components/Input/InputInnerLabel.config.d.ts +5 -1
- package/dist/src/components/Input/InputInnerLabel.stories.d.ts +16 -0
- package/dist/src/components/Sidebar/ItemSidebar.config.d.ts +4 -0
- package/dist/src/components/Sidebar/Sidebar.config.d.ts +2 -0
- package/dist/src/config/resources/index.d.ts +2 -2
- package/dist/src/config/tailwind/typography.d.ts +1 -0
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/Calendar/index.d.ts +41 -0
- package/dist/src/interfaces/components/DatePicker/index.d.ts +41 -1
- package/dist/src/interfaces/components/Input/index.d.ts +10 -0
- package/dist/src/interfaces/components/Sidebar/index.d.ts +6 -1
- package/dist/src/interfaces/components/Tabs/index.d.ts +1 -1
- package/dist/types-external/table.d.ts +15 -15
- package/dist/utils/common.cjs +1 -1
- package/dist/utils/common.mjs +7 -7
- package/package.json +127 -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"),s=require("react"),r=require("./style.module.scss.cjs"),a=require("./Button.config.cjs"),p=({className:i=""})=>n.jsx("svg",{className:`${r.default["icon-loading"]} ${i??""}`,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
|
|
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=s.forwardRef((i,d)=>{const{size:l="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}=i;return n.jsxs("button",{onClick:e?void 0:f,ref:d,className:`${a.configButton.size[l]} ${a.configButton.variants[u]}
|
|
12
|
+
${e?r.default.loading:""} ${g??""}`,type:h,disabled:x??e,...j,children:[!e&&n.jsxs(n.Fragment,{children:[typeof t=="function"&&t(),s.isValidElement(t)&&t]}),e&&n.jsx(p,{className:`${a.configButton.loadingSize[l]} ${m}`}),C,!e&&n.jsxs(n.Fragment,{children:[typeof o=="function"&&o(),s.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-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;
|
|
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"],"primary-fin-primary-500":e.default["primary-fin-primary-500"],"secondary-fin-primary-500":e.default["secondary-fin-primary-500"],"tertiary-fin-primary-500":e.default["tertiary-fin-primary-500"]}};exports.configButton=l;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import r from "./style.module.scss.mjs";
|
|
2
|
+
const l = {
|
|
3
3
|
size: {
|
|
4
|
-
large:
|
|
5
|
-
reguler:
|
|
6
|
-
small:
|
|
7
|
-
"extra-small":
|
|
8
|
-
l:
|
|
9
|
-
m:
|
|
10
|
-
s:
|
|
11
|
-
xs:
|
|
12
|
-
"bill-l":
|
|
13
|
-
"bill-m":
|
|
14
|
-
"bill-s":
|
|
15
|
-
"bill-xs":
|
|
16
|
-
"bill-xxs":
|
|
4
|
+
large: r["button-large"],
|
|
5
|
+
reguler: r["button-reguler"],
|
|
6
|
+
small: r["button-small"],
|
|
7
|
+
"extra-small": r["button-extra-small"],
|
|
8
|
+
l: r["button-l"],
|
|
9
|
+
m: r["button-m"],
|
|
10
|
+
s: r["button-s"],
|
|
11
|
+
xs: r["button-xs"],
|
|
12
|
+
"bill-l": r["button-bill-l"],
|
|
13
|
+
"bill-m": r["button-bill-m"],
|
|
14
|
+
"bill-s": r["button-bill-s"],
|
|
15
|
+
"bill-xs": r["button-bill-xs"],
|
|
16
|
+
"bill-xxs": r["button-bill-xxs"]
|
|
17
17
|
},
|
|
18
18
|
loadingSize: {
|
|
19
19
|
large: "iru-size-6",
|
|
@@ -31,47 +31,50 @@ const r = {
|
|
|
31
31
|
"bill-xxs": "iru-size-5"
|
|
32
32
|
},
|
|
33
33
|
variants: {
|
|
34
|
-
"primary-laba-blue-10":
|
|
35
|
-
"primary-red-700-dsb_laba-grey-06":
|
|
36
|
-
"primary-green-700-dsb_laba-grey-06":
|
|
37
|
-
"ghost-laba-blue-10":
|
|
38
|
-
"ghost-red-700":
|
|
39
|
-
"ghost-green-700":
|
|
40
|
-
"ghost-laba-green-10":
|
|
41
|
-
"nude-laba-blue-10":
|
|
42
|
-
"nude-red-700":
|
|
43
|
-
"nude-green-700":
|
|
44
|
-
"nude-gray-500":
|
|
45
|
-
"primary-blue-700":
|
|
46
|
-
"secondary-blue-700":
|
|
47
|
-
"tertiary-blue-700":
|
|
48
|
-
"ghost-blue-gray-100-bg_white":
|
|
49
|
-
"ghost-blue-gray-100-bg_white-text_blue-gray-400":
|
|
50
|
-
"ghost-laba-blue-05":
|
|
51
|
-
"secondary-red-600":
|
|
52
|
-
"tertiary-red-300":
|
|
53
|
-
"tertiary-gray-500":
|
|
54
|
-
"tertiary-red-600":
|
|
55
|
-
"tertiary-black":
|
|
56
|
-
"secondary-green-600":
|
|
57
|
-
"nude-laba-red-10":
|
|
58
|
-
"nude-laba-red-05":
|
|
59
|
-
"primary-red-700":
|
|
60
|
-
"nude-laba-red-08":
|
|
61
|
-
"ghost-laba-blue-01":
|
|
62
|
-
"filled-laba-white_laba-blue-10":
|
|
63
|
-
"filled-laba-white_laba-red-05":
|
|
64
|
-
"secondary-red-700":
|
|
65
|
-
"primary-bill-primary-600":
|
|
66
|
-
"secondary-bill-secondary-800":
|
|
67
|
-
"tertiary-bill-secondary-800":
|
|
68
|
-
"primary-bill-red-700":
|
|
69
|
-
"filled-bill-blue-gray-500_bg-blue-gray-50":
|
|
70
|
-
"filled-bill-secondary-800_bg-white":
|
|
71
|
-
"primary-blue-gray-900-dsb_laba-grey-06":
|
|
72
|
-
"filled-blue-gray-900":
|
|
34
|
+
"primary-laba-blue-10": r["primary-laba-blue-10"],
|
|
35
|
+
"primary-red-700-dsb_laba-grey-06": r["primary-red-700-dsb_laba-grey-06"],
|
|
36
|
+
"primary-green-700-dsb_laba-grey-06": r["primary-green-700-dsb_laba-grey-06"],
|
|
37
|
+
"ghost-laba-blue-10": r["ghost-laba-blue-10"],
|
|
38
|
+
"ghost-red-700": r["ghost-red-700"],
|
|
39
|
+
"ghost-green-700": r["ghost-green-700"],
|
|
40
|
+
"ghost-laba-green-10": r["ghost-laba-green-10"],
|
|
41
|
+
"nude-laba-blue-10": r["nude-laba-blue-10"],
|
|
42
|
+
"nude-red-700": r["nude-red-700"],
|
|
43
|
+
"nude-green-700": r["nude-green-700"],
|
|
44
|
+
"nude-gray-500": r["nude-gray-500"],
|
|
45
|
+
"primary-blue-700": r["primary-blue-700"],
|
|
46
|
+
"secondary-blue-700": r["secondary-blue-700"],
|
|
47
|
+
"tertiary-blue-700": r["tertiary-blue-700"],
|
|
48
|
+
"ghost-blue-gray-100-bg_white": r["ghost-blue-gray-100-bg_white"],
|
|
49
|
+
"ghost-blue-gray-100-bg_white-text_blue-gray-400": r["ghost-blue-gray-100-bg_white-text_blue-gray-400"],
|
|
50
|
+
"ghost-laba-blue-05": r["ghost-laba-blue-05"],
|
|
51
|
+
"secondary-red-600": r["secondary-red-600"],
|
|
52
|
+
"tertiary-red-300": r["tertiary-red-300"],
|
|
53
|
+
"tertiary-gray-500": r["tertiary-gray-500"],
|
|
54
|
+
"tertiary-red-600": r["tertiary-red-600"],
|
|
55
|
+
"tertiary-black": r["tertiary-black"],
|
|
56
|
+
"secondary-green-600": r["secondary-green-600"],
|
|
57
|
+
"nude-laba-red-10": r["nude-laba-red-10"],
|
|
58
|
+
"nude-laba-red-05": r["nude-laba-red-05"],
|
|
59
|
+
"primary-red-700": r["primary-red-700"],
|
|
60
|
+
"nude-laba-red-08": r["nude-laba-red-08"],
|
|
61
|
+
"ghost-laba-blue-01": r["ghost-laba-blue-01"],
|
|
62
|
+
"filled-laba-white_laba-blue-10": r["filled-laba-white_laba-blue-10"],
|
|
63
|
+
"filled-laba-white_laba-red-05": r["filled-laba-white_laba-red-05"],
|
|
64
|
+
"secondary-red-700": r["secondary-red-700"],
|
|
65
|
+
"primary-bill-primary-600": r["primary-bill-primary-600"],
|
|
66
|
+
"secondary-bill-secondary-800": r["secondary-bill-secondary-800"],
|
|
67
|
+
"tertiary-bill-secondary-800": r["tertiary-bill-secondary-800"],
|
|
68
|
+
"primary-bill-red-700": r["primary-bill-red-700"],
|
|
69
|
+
"filled-bill-blue-gray-500_bg-blue-gray-50": r["filled-bill-blue-gray-500_bg-blue-gray-50"],
|
|
70
|
+
"filled-bill-secondary-800_bg-white": r["filled-bill-secondary-800_bg-white"],
|
|
71
|
+
"primary-blue-gray-900-dsb_laba-grey-06": r["primary-blue-gray-900-dsb_laba-grey-06"],
|
|
72
|
+
"filled-blue-gray-900": r["filled-blue-gray-900"],
|
|
73
|
+
"primary-fin-primary-500": r["primary-fin-primary-500"],
|
|
74
|
+
"secondary-fin-primary-500": r["secondary-fin-primary-500"],
|
|
75
|
+
"tertiary-fin-primary-500": r["tertiary-fin-primary-500"]
|
|
73
76
|
}
|
|
74
77
|
};
|
|
75
78
|
export {
|
|
76
|
-
|
|
79
|
+
l as configButton
|
|
77
80
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as o, Fragment as
|
|
1
|
+
import { jsx as o, Fragment as e, jsxs as r } 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: a = "" }) => /* @__PURE__ */ o(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
8
|
-
className: `${d["icon-loading"]} ${
|
|
8
|
+
className: `${d["icon-loading"]} ${a ?? ""}`,
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
width: "25",
|
|
11
11
|
height: "24",
|
|
@@ -14,27 +14,27 @@ const v = ({ className: e = "" }) => /* @__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
|
|
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
|
|
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((a, C) => {
|
|
33
33
|
const {
|
|
34
34
|
size: s = "reguler",
|
|
35
35
|
variants: m = "primary-laba-blue-10",
|
|
36
|
-
startIcon:
|
|
37
|
-
endIcon:
|
|
36
|
+
startIcon: t = () => /* @__PURE__ */ o(e, {}),
|
|
37
|
+
endIcon: i = () => /* @__PURE__ */ o(e, {}),
|
|
38
38
|
children: f,
|
|
39
39
|
className: g,
|
|
40
40
|
classNameIconLoading: p,
|
|
@@ -43,8 +43,8 @@ const v = ({ className: e = "" }) => /* @__PURE__ */ o(
|
|
|
43
43
|
type: h = "button",
|
|
44
44
|
disabled: $,
|
|
45
45
|
...w
|
|
46
|
-
} =
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
} = a;
|
|
47
|
+
return /* @__PURE__ */ r(
|
|
48
48
|
"button",
|
|
49
49
|
{
|
|
50
50
|
onClick: n ? void 0 : u,
|
|
@@ -55,15 +55,15 @@ const v = ({ className: e = "" }) => /* @__PURE__ */ o(
|
|
|
55
55
|
disabled: $ ?? n,
|
|
56
56
|
...w,
|
|
57
57
|
children: [
|
|
58
|
-
!n && /* @__PURE__ */
|
|
59
|
-
typeof
|
|
60
|
-
c(
|
|
58
|
+
!n && /* @__PURE__ */ r(e, { children: [
|
|
59
|
+
typeof t == "function" && t(),
|
|
60
|
+
c(t) && t
|
|
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__ */ r(e, { children: [
|
|
65
|
+
typeof i == "function" && i(),
|
|
66
|
+
c(i) && i
|
|
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 _="_loading_o3qfx_14",e={"button-bill-xxs":"_button-bill-xxs_o3qfx_6","button-bill-xs":"_button-bill-xs_o3qfx_6","button-bill-s":"_button-bill-s_o3qfx_6","button-bill-m":"_button-bill-m_o3qfx_6","button-bill-l":"_button-bill-l_o3qfx_6","button-xs":"_button-xs_o3qfx_6","button-s":"_button-s_o3qfx_6","button-m":"_button-m_o3qfx_6","button-l":"_button-l_o3qfx_6","button-extra-small":"_button-extra-small_o3qfx_6","button-small":"_button-small_o3qfx_6","button-reguler":"_button-reguler_o3qfx_6","button-large":"_button-large_o3qfx_6",loading:_,"filled-blue-gray-900":"_filled-blue-gray-900_o3qfx_29","primary-blue-gray-900-dsb_laba-grey-06":"_primary-blue-gray-900-dsb_laba-grey-06_o3qfx_29","filled-bill-secondary-800_bg-white":"_filled-bill-secondary-800_bg-white_o3qfx_29","filled-bill-blue-gray-500_bg-blue-gray-50":"_filled-bill-blue-gray-500_bg-blue-gray-50_o3qfx_29","nude-laba-red-05":"_nude-laba-red-05_o3qfx_29","nude-laba-red-08":"_nude-laba-red-08_o3qfx_29","nude-laba-red-10":"_nude-laba-red-10_o3qfx_29","nude-gray-500":"_nude-gray-500_o3qfx_29","nude-green-700":"_nude-green-700_o3qfx_29","nude-red-700":"_nude-red-700_o3qfx_29","nude-laba-blue-10":"_nude-laba-blue-10_o3qfx_29","ghost-blue-gray-100-bg_white-text_blue-gray-400":"_ghost-blue-gray-100-bg_white-text_blue-gray-400_o3qfx_29","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_o3qfx_29","ghost-laba-green-10":"_ghost-laba-green-10_o3qfx_29","ghost-laba-blue-01":"_ghost-laba-blue-01_o3qfx_29","ghost-laba-blue-05":"_ghost-laba-blue-05_o3qfx_29","ghost-green-700":"_ghost-green-700_o3qfx_29","ghost-red-700":"_ghost-red-700_o3qfx_29","ghost-laba-blue-10":"_ghost-laba-blue-10_o3qfx_29","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_o3qfx_29","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_o3qfx_29","primary-green-700-dsb_laba-grey-06":"_primary-green-700-dsb_laba-grey-06_o3qfx_29","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_o3qfx_29","primary-laba-blue-10":"_primary-laba-blue-10_o3qfx_29","tertiary-fin-primary-500":"_tertiary-fin-primary-500_o3qfx_29","secondary-fin-primary-500":"_secondary-fin-primary-500_o3qfx_29","primary-fin-primary-500":"_primary-fin-primary-500_o3qfx_29","primary-bill-red-700":"_primary-bill-red-700_o3qfx_29","tertiary-bill-secondary-800":"_tertiary-bill-secondary-800_o3qfx_29","secondary-bill-secondary-800":"_secondary-bill-secondary-800_o3qfx_29","primary-bill-primary-600":"_primary-bill-primary-600_o3qfx_29","tertiary-black":"_tertiary-black_o3qfx_29","tertiary-gray-500":"_tertiary-gray-500_o3qfx_29","tertiary-red-600":"_tertiary-red-600_o3qfx_29","tertiary-red-300":"_tertiary-red-300_o3qfx_29","tertiary-blue-700":"_tertiary-blue-700_o3qfx_29","secondary-green-600":"_secondary-green-600_o3qfx_29","secondary-red-700":"_secondary-red-700_o3qfx_29","secondary-red-600":"_secondary-red-600_o3qfx_29","secondary-blue-700":"_secondary-blue-700_o3qfx_29","primary-red-700":"_primary-red-700_o3qfx_29","primary-blue-700":"_primary-blue-700_o3qfx_29","icon-loading":"_icon-loading_o3qfx_244"};exports.default=e;exports.loading=_;
|
|
@@ -1,60 +1,63 @@
|
|
|
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-dsb_laba-grey-06": "_primary-blue-gray-900-dsb_laba-grey-
|
|
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
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"primary-bill-
|
|
44
|
-
"tertiary-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"tertiary-
|
|
48
|
-
"tertiary-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"secondary-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
1
|
+
const _ = "_loading_o3qfx_14", r = {
|
|
2
|
+
"button-bill-xxs": "_button-bill-xxs_o3qfx_6",
|
|
3
|
+
"button-bill-xs": "_button-bill-xs_o3qfx_6",
|
|
4
|
+
"button-bill-s": "_button-bill-s_o3qfx_6",
|
|
5
|
+
"button-bill-m": "_button-bill-m_o3qfx_6",
|
|
6
|
+
"button-bill-l": "_button-bill-l_o3qfx_6",
|
|
7
|
+
"button-xs": "_button-xs_o3qfx_6",
|
|
8
|
+
"button-s": "_button-s_o3qfx_6",
|
|
9
|
+
"button-m": "_button-m_o3qfx_6",
|
|
10
|
+
"button-l": "_button-l_o3qfx_6",
|
|
11
|
+
"button-extra-small": "_button-extra-small_o3qfx_6",
|
|
12
|
+
"button-small": "_button-small_o3qfx_6",
|
|
13
|
+
"button-reguler": "_button-reguler_o3qfx_6",
|
|
14
|
+
"button-large": "_button-large_o3qfx_6",
|
|
15
|
+
loading: _,
|
|
16
|
+
"filled-blue-gray-900": "_filled-blue-gray-900_o3qfx_29",
|
|
17
|
+
"primary-blue-gray-900-dsb_laba-grey-06": "_primary-blue-gray-900-dsb_laba-grey-06_o3qfx_29",
|
|
18
|
+
"filled-bill-secondary-800_bg-white": "_filled-bill-secondary-800_bg-white_o3qfx_29",
|
|
19
|
+
"filled-bill-blue-gray-500_bg-blue-gray-50": "_filled-bill-blue-gray-500_bg-blue-gray-50_o3qfx_29",
|
|
20
|
+
"nude-laba-red-05": "_nude-laba-red-05_o3qfx_29",
|
|
21
|
+
"nude-laba-red-08": "_nude-laba-red-08_o3qfx_29",
|
|
22
|
+
"nude-laba-red-10": "_nude-laba-red-10_o3qfx_29",
|
|
23
|
+
"nude-gray-500": "_nude-gray-500_o3qfx_29",
|
|
24
|
+
"nude-green-700": "_nude-green-700_o3qfx_29",
|
|
25
|
+
"nude-red-700": "_nude-red-700_o3qfx_29",
|
|
26
|
+
"nude-laba-blue-10": "_nude-laba-blue-10_o3qfx_29",
|
|
27
|
+
"ghost-blue-gray-100-bg_white-text_blue-gray-400": "_ghost-blue-gray-100-bg_white-text_blue-gray-400_o3qfx_29",
|
|
28
|
+
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_o3qfx_29",
|
|
29
|
+
"ghost-laba-green-10": "_ghost-laba-green-10_o3qfx_29",
|
|
30
|
+
"ghost-laba-blue-01": "_ghost-laba-blue-01_o3qfx_29",
|
|
31
|
+
"ghost-laba-blue-05": "_ghost-laba-blue-05_o3qfx_29",
|
|
32
|
+
"ghost-green-700": "_ghost-green-700_o3qfx_29",
|
|
33
|
+
"ghost-red-700": "_ghost-red-700_o3qfx_29",
|
|
34
|
+
"ghost-laba-blue-10": "_ghost-laba-blue-10_o3qfx_29",
|
|
35
|
+
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-05_o3qfx_29",
|
|
36
|
+
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-10_o3qfx_29",
|
|
37
|
+
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-06_o3qfx_29",
|
|
38
|
+
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-06_o3qfx_29",
|
|
39
|
+
"primary-laba-blue-10": "_primary-laba-blue-10_o3qfx_29",
|
|
40
|
+
"tertiary-fin-primary-500": "_tertiary-fin-primary-500_o3qfx_29",
|
|
41
|
+
"secondary-fin-primary-500": "_secondary-fin-primary-500_o3qfx_29",
|
|
42
|
+
"primary-fin-primary-500": "_primary-fin-primary-500_o3qfx_29",
|
|
43
|
+
"primary-bill-red-700": "_primary-bill-red-700_o3qfx_29",
|
|
44
|
+
"tertiary-bill-secondary-800": "_tertiary-bill-secondary-800_o3qfx_29",
|
|
45
|
+
"secondary-bill-secondary-800": "_secondary-bill-secondary-800_o3qfx_29",
|
|
46
|
+
"primary-bill-primary-600": "_primary-bill-primary-600_o3qfx_29",
|
|
47
|
+
"tertiary-black": "_tertiary-black_o3qfx_29",
|
|
48
|
+
"tertiary-gray-500": "_tertiary-gray-500_o3qfx_29",
|
|
49
|
+
"tertiary-red-600": "_tertiary-red-600_o3qfx_29",
|
|
50
|
+
"tertiary-red-300": "_tertiary-red-300_o3qfx_29",
|
|
51
|
+
"tertiary-blue-700": "_tertiary-blue-700_o3qfx_29",
|
|
52
|
+
"secondary-green-600": "_secondary-green-600_o3qfx_29",
|
|
53
|
+
"secondary-red-700": "_secondary-red-700_o3qfx_29",
|
|
54
|
+
"secondary-red-600": "_secondary-red-600_o3qfx_29",
|
|
55
|
+
"secondary-blue-700": "_secondary-blue-700_o3qfx_29",
|
|
56
|
+
"primary-red-700": "_primary-red-700_o3qfx_29",
|
|
57
|
+
"primary-blue-700": "_primary-blue-700_o3qfx_29",
|
|
58
|
+
"icon-loading": "_icon-loading_o3qfx_244"
|
|
56
59
|
};
|
|
57
60
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
r as default,
|
|
62
|
+
_ as loading
|
|
60
63
|
};
|
|
@@ -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"),s=require("./style.module.scss.cjs"),t=require("./ButtonIcon.config.cjs"),b=({className:o=""})=>e.jsx("svg",{className:`${s.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
|
|
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"})}),a=h.forwardRef((o,l)=>{const{size:i="reguler",variants:r="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:l,className:`${t.configButton.size[i]} ${t.configButton.variants[r]}
|
|
12
|
+
${n?s.default.loading:""} ${u??""}`,type:g,disabled:f??n,...m,children:[n&&e.jsx(b,{className:`${t.configButton.loadingSize[i]} ${d}`}),c]})});a.displayName="ButtonIcon";exports.default=a;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
1
|
+
import { jsxs as u, jsx as t } 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 r from "./style.module.scss.mjs";
|
|
4
|
+
import { configButton as i } from "./ButtonIcon.config.mjs";
|
|
5
|
+
const h = ({ className: o = "" }) => /* @__PURE__ */ t(
|
|
6
6
|
"svg",
|
|
7
7
|
{
|
|
8
|
-
className: `${
|
|
8
|
+
className: `${r["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__ */ t(
|
|
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
|
|
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
|
|
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__ */ i(
|
|
|
31
31
|
}
|
|
32
32
|
), $ = f((o, e) => {
|
|
33
33
|
const {
|
|
34
|
-
size:
|
|
34
|
+
size: a = "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__ */ i(
|
|
|
47
47
|
{
|
|
48
48
|
onClick: n ? void 0 : d,
|
|
49
49
|
ref: e,
|
|
50
|
-
className: `${
|
|
51
|
-
${n ?
|
|
50
|
+
className: `${i.size[a]} ${i.variants[s]}
|
|
51
|
+
${n ? r.loading : ""} ${C ?? ""}`,
|
|
52
52
|
type: m,
|
|
53
53
|
disabled: g ?? n,
|
|
54
54
|
...p,
|
|
55
55
|
children: [
|
|
56
|
-
n && /* @__PURE__ */
|
|
56
|
+
n && /* @__PURE__ */ t(h, { className: `${i.loadingSize[a]} ${c}` }),
|
|
57
57
|
l
|
|
58
58
|
]
|
|
59
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),g=require("react"),D=require("@internationalized/date"),q=require("react-aria"),L=require("react-stately"),s=require("./style.module.scss.cjs"),w=require("../Button/Button.cjs"),Y=require("./CalendarCell.cjs"),A=require("./CalendarButton.cjs"),_=require("./CalendarMonth.cjs"),k=require("./CalendarYear.cjs"),J=require("../../hooks/useDeepCompareEffect.cjs"),N=require("./Calendar.config.cjs"),c={"en-US":{Reset:"Reset",Apply:"Apply",Start:"Start",End:"End",Hour:"Hour",Minute:"Minute","Set Time":"Set time",Sun:"Sun",Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat"},"id-ID":{Reset:"Reset",Apply:"Terapkan",Start:"Awal",End:"Akhir",Hour:"Jam",Minute:"Menit","Set Time":"Atur waktu",Sun:"Min",Mon:"Sen",Tue:"Sel",Wed:"Rab",Thu:"Kam",Fri:"Jum",Sat:"Sab"},"zh-CN":{Reset:"重置",Apply:"应用",Start:"开始",End:"结束",Hour:"小时",Minute:"分钟","Set Time":"设置时间",Sun:"周日",Mon:"周一",Tue:"周二",Wed:"周三",Thu:"周四",Fri:"周五",Sat:"周六"},"nl-NL":{Reset:"Reset",Apply:"Toepassen",Start:"Start",End:"Einde",Hour:"Uur",Minute:"Minuten","Set Time":"Tijd instellen",Sun:"Zo",Mon:"Ma",Tue:"Di",Wed:"Wo",Thu:"Do",Fri:"Vr",Sat:"Za"}},$=(a,e)=>{let i="";switch(a){case 0:i=c[e].Sun;break;case 1:i=c[e].Mon;break;case 2:i=c[e].Tue;break;case 3:i=c[e].Wed;break;case 4:i=c[e].Thu;break;case 5:i=c[e].Fri;break;case 6:i=c[e].Sat;break}return i},P=a=>{const e=D.getWeeksInMonth(a.state.visibleRange.start,a.locale),{gridProps:i,headerProps:l,weekDays:y}=q.useCalendarGrid({},a.state),{prevButtonProps:x,nextButtonProps:C,title:r}=q.useCalendar(a,a.state);return t.jsxs("div",{children:[!a.hiddenHeader&&t.jsxs("div",{className:s.default["header-calendar"],children:[t.jsx(A.default,{...x,children:typeof a?.prevIcon=="function"||g.isValidElement(a?.prevIcon)?g.isValidElement(a.prevIcon)?a.prevIcon:a.prevIcon():t.jsx(k.ChevronDownIcon,{className:"iru-rotate-90"})}),t.jsx("div",{className:s.default["header-button-calendar"],onClick:()=>a.setActiveTypeCalendar("month"),children:r}),t.jsx(A.default,{...C,children:typeof a?.nextIcon=="function"||g.isValidElement(a?.nextIcon)?g.isValidElement(a.nextIcon)?a.nextIcon:a.nextIcon():t.jsx(k.ChevronDownIcon,{className:"-iru-rotate-90"})})]}),t.jsxs("table",{...i,children:[t.jsx("thead",{...l,children:t.jsx("tr",{children:y.map((f,d)=>t.jsx("th",{className:s.default["days-calendar"],children:$(d,a.locale)},d))})}),t.jsx("tbody",{children:[...new Array(e).keys()].map(f=>t.jsx("tr",{children:a.state.getDatesInWeek(f).map((d,u)=>d?t.jsx(Y.default,{state:a.state,date:d},u):t.jsx("td",{},u))},f))})]})]})},I=({minDate:a,maxDate:e,value:i,time:l,hiddenHeader:y,handlerChangeTime:x,timeLabel:C,type:r,locale:f="id-ID"})=>{const d=a?new Date(a):null,u=e?new Date(e):null,M=d?.getHours(),b=u?.getHours(),m=d?.getMinutes(),j=u?.getMinutes(),[v,B]=g.useState(!0),R=(n,h,o)=>Array.from({length:(h-n)/o+1},(T,E)=>n+E*o),H=(n,h)=>{typeof x=="function"&&x({hour:n,minut:h,second:l?.second})},V=()=>{const n=document.getElementById(`calendar-hour-${l?.hour}-${r}`),h=document.getElementById(`calendar-minut-${l?.minut}-${r}`),o=document.getElementById(`wrapper-calendar-hour-${r}`),T=document.getElementById(`wrapper-calendar-minut-${r}`);n&&o&&o.scrollTo({behavior:"instant",top:n.offsetTop-78}),h&&T&&T.scrollTo({behavior:"instant",top:h.offsetTop-78})},S=(n,h)=>{let o=!0;if(d&&i){const T=i.year===d.getFullYear(),E=i.month===d.getMonth()+1;i.day===d.getDate()&&E&&T?(h==="hour"&&n<(M??0)||h==="minut"&&(l?.hour??0)<=d.getHours()&&n<(m??0))&&(o=!1):i.toDate(D.getLocalTimeZone()).getTime()<d.getTime()&&(o=!1)}if(u&&i){const T=i.year===u.getFullYear(),E=i.month===u.getMonth()+1;i.day===u.getDate()&&E&&T?(h==="hour"&&n>(b??0)||h==="minut"&&(l?.hour??0)>=u.getHours()&&n>(j??0))&&(o=!1):i.toDate(D.getLocalTimeZone()).getTime()>u.getTime()&&(o=!1)}return o};return g.useEffect(()=>{v&&V(),l&&B(!1)},[JSON.stringify(i),JSON.stringify(l)]),t.jsxs("div",{className:s.default["custom-time-calendar"],children:[!y&&t.jsx("div",{className:s.default["header-time"],children:C||c[f]["Set Time"]}),t.jsxs("div",{className:s.default["type-time"],children:[t.jsx("div",{children:c[f].Hour}),t.jsx("div",{children:c[f].Minute})]}),t.jsxs("div",{className:"iru-flex iru-justify-around",children:[t.jsx("div",{id:`wrapper-calendar-hour-${r}`,className:s.default["container-cell-time"],children:R(0,23,1).map(n=>t.jsx("div",{id:`calendar-hour-${n}-${r}`,className:`${s.default["cell-time"]} ${l?.hour===n?S(n,"hour")?s.default.selected:s.default.error:""} ${S(n,"hour")&&l?.hour!=n?s.default.valid:s.default.invalid}`,onClick:()=>{S(n,"hour")&&H(n,l?.minut)},children:n<10?`0${n}`:n},n))}),t.jsx("div",{id:`wrapper-calendar-minut-${r}`,className:s.default["container-cell-time"],children:R(0,59,1).map(n=>t.jsx("div",{id:`calendar-minut-${n}-${r}`,className:`${s.default["cell-time"]} ${l?.minut===n?S(n,"minut")?s.default.selected:s.default.error:""} ${S(n,"minut")&&l?.minut!=n?s.default.valid:s.default.invalid}`,onClick:()=>{S(n,"minut")&&H(l?.hour,n)},children:n<10?`0${n}`:n},n))})]})]})},Z=({variants:a="laba-blue-10",...e})=>{const i=e.typeTime??"SINGLE",l=L.useCalendarState({...e,locale:e.locale,createCalendar:D.createCalendar}),{title:y}=q.useCalendar(e,l),[x,C]=g.useState(e?.activeType??"date"),[r,f]=g.useState({start:void 0,end:void 0}),d=r.start?.hour?.toString()&&r?.start?.minut?.toString()&&e.value?.toDate(D.getLocalTimeZone()).setHours(r.start?.hour,r.start?.minut)||e.minDate,u=e.maxDate,M=(m,j)=>{const v={...r,[j]:m};f(v),typeof e?.handlerChangeTime=="function"&&e.handlerChangeTime(v)},b=m=>{l.setValue(m)};return J.useDeepCompareEffect(()=>{e?.activeType&&C(e.activeType)},[e?.activeType]),g.useEffect(()=>{if(e.time?.start&&e.time?.end){const m=e.time.start,j=e.time.end;f({start:m,end:j})}},[JSON.stringify(e.time)]),t.jsxs("div",{className:"iru-text-laba-base-sr",children:[x==="date"&&t.jsx(t.Fragment,{children:t.jsxs("div",{className:`${N.configCalendar.variants[a]}`,children:[t.jsxs("div",{className:"iru-flex iru-gap-2",children:[t.jsx(P,{state:l,setActiveTypeCalendar:C,...e}),e?.isCustomTime&&t.jsxs("div",{className:"iru-flex",children:[t.jsx(I,{minDate:e.minDate,maxDate:e.maxDate,time:e.time?.start,value:e.value,timeLabel:c[e.locale][i==="RANGE"?"Start":"Set Time"],type:"start",locale:e.locale,handlerChangeTime:m=>M(m,"start")}),i==="RANGE"&&t.jsx(I,{minDate:d,maxDate:u,time:e.time?.end,value:e.value,timeLabel:c[e.locale].End,type:"end",handlerChangeTime:m=>M(m,"end")})]})]}),(e?.withConfirm??e?.isCustomTime)&&t.jsxs("div",{className:`${s.default["footer-calendar"]}`,children:[typeof e?.buttonReset=="function"?t.jsx("div",{onClick:()=>e.handlerReset(l),children:e.buttonReset()}):t.jsx(w.default,{variants:N.configCalendar.resetButtonVariant[a],size:"small",onClick:()=>e.handlerReset(l),children:c[e.locale].Reset}),typeof e?.buttonSubmit=="function"?t.jsx("div",{onClick:e.handlerSubmit,children:e.buttonSubmit()}):t.jsx(w.default,{variants:N.configCalendar.submitButtonVariant[a],size:"small",onClick:e.handlerSubmit,children:c[e.locale].Apply})]})]})}),x==="month"&&t.jsx(_.default,{state:l,setActiveTypeCalendar:C,type:e.type,onChangeMonth:b,variants:a,hiddenHeader:e.hiddenHeader}),x==="year"&&t.jsx(k.default,{state:l,type:e.type,setActiveTypeCalendar:C,title:y,onChangeYear:b,hiddenHeader:e.hiddenHeader,variants:a})]})};exports.CustomTimeCalendar=I;exports.default=Z;exports.getDaysCalendar=$;exports.translateCalendar=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./style.module.scss.cjs"),e={variants:{"laba-blue-10":a.default["laba-blue-10"],"fin-primary-500":a.default["fin-primary-500"]},selectedVariants:{"laba-blue-10":a.default["selected-laba-blue-10"],"fin-primary-500":a.default["selected-blue-700"]},resetButtonVariant:{"laba-blue-10":"nude-laba-blue-10","fin-primary-500":"tertiary-fin-primary-500"},submitButtonVariant:{"laba-blue-10":"primary-laba-blue-10","fin-primary-500":"primary-fin-primary-500"}};exports.configCalendar=e;
|