1mpacto-react-ui 2.0.26 → 2.0.28
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 +6 -1
- package/dist/assets/_typography.scss +19 -15
- package/dist/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/components/Alert/index.cjs +1 -1
- package/dist/components/Alert/index.mjs +55 -51
- package/dist/components/Alert/style.module.scss.cjs +1 -1
- package/dist/components/Alert/style.module.scss.mjs +12 -11
- package/dist/components/Badges/Badges.config.cjs +1 -1
- package/dist/components/Badges/Badges.config.mjs +18 -3
- package/dist/components/Badges/style.module.scss.cjs +1 -1
- package/dist/components/Badges/style.module.scss.mjs +46 -35
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +4 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.mjs +45 -43
- package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -1
- package/dist/components/Breadcrumbs/style.module.scss.mjs +12 -9
- package/dist/components/Button/Button.config.cjs +1 -1
- package/dist/components/Button/Button.config.mjs +10 -2
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +64 -60
- package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.config.mjs +58 -47
- package/dist/components/ButtonIcon/style.module.scss.cjs +1 -1
- package/dist/components/ButtonIcon/style.module.scss.mjs +55 -48
- package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.module.scss.mjs +19 -19
- package/dist/components/Modal/ModalDialog.cjs +11 -1
- package/dist/components/Modal/ModalDialog.config.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.mjs +18 -7
- package/dist/components/Modal/ModalDialog.mjs +59 -32
- package/dist/components/Modal/style.module.scss.cjs +1 -1
- package/dist/components/Modal/style.module.scss.mjs +17 -11
- package/dist/components/Pagination/Pagination.cjs +2 -2
- package/dist/components/Pagination/Pagination.config.cjs +1 -1
- package/dist/components/Pagination/Pagination.config.mjs +4 -3
- package/dist/components/Pagination/Pagination.mjs +90 -90
- package/dist/components/Pagination/style.module.scss.cjs +1 -1
- package/dist/components/Pagination/style.module.scss.mjs +18 -16
- package/dist/components/Popover/Popover.cjs +1 -1
- package/dist/components/Popover/Popover.config.cjs +1 -0
- package/dist/components/Popover/Popover.config.mjs +11 -0
- package/dist/components/Popover/Popover.mjs +42 -40
- package/dist/components/Popover/style.module.scss.cjs +1 -1
- package/dist/components/Popover/style.module.scss.mjs +8 -4
- package/dist/components/RadioCheckbox/RadioCheckbox.config.cjs +1 -1
- package/dist/components/RadioCheckbox/RadioCheckbox.config.mjs +24 -22
- package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.cjs +1 -1
- package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.mjs +25 -23
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.cjs +1 -1
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.mjs +5 -4
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.cjs +1 -1
- package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.mjs +8 -7
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.cjs +1 -1
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.cjs +1 -1
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.mjs +19 -10
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.mjs +95 -80
- package/dist/components/SelectDropdownContainer/styleConfig.cjs +1 -1
- package/dist/components/SelectDropdownContainer/styleConfig.mjs +151 -11
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.module.scss.mjs +22 -22
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -25
- package/dist/components/Step/StepIndicator.cjs +6 -4
- package/dist/components/Step/StepIndicator.config.cjs +1 -0
- package/dist/components/Step/StepIndicator.config.mjs +12 -0
- package/dist/components/Step/StepIndicator.mjs +31 -26
- package/dist/components/Step/StepIndicator.module.scss.cjs +1 -1
- package/dist/components/Step/StepIndicator.module.scss.mjs +12 -11
- package/dist/components/Switch/Switch.config.cjs +1 -1
- package/dist/components/Switch/Switch.config.mjs +6 -3
- package/dist/components/Switch/style.module.scss.cjs +1 -1
- package/dist/components/Switch/style.module.scss.mjs +18 -15
- package/dist/components/Tabs/Tabs.config.cjs +1 -1
- package/dist/components/Tabs/Tabs.config.mjs +13 -6
- package/dist/components/Tabs/style.module.scss.cjs +1 -1
- package/dist/components/Tabs/style.module.scss.mjs +29 -23
- package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -5
- package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -1
- package/dist/components/Textarea/TextareaFloatingInner.config.mjs +6 -2
- package/dist/components/Textarea/TextareaFloatingInner.mjs +38 -36
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -1
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +11 -9
- package/dist/components/fin/Chat/BubbleChat.cjs +1 -0
- package/dist/components/fin/Chat/BubbleChat.mjs +20 -0
- package/dist/components/fin/Chat/BubbleChatOption.cjs +1 -0
- package/dist/components/fin/Chat/BubbleChatOption.mjs +70 -0
- package/dist/components/fin/Chat/BubbleChatUser.cjs +1 -0
- package/dist/components/fin/Chat/BubbleChatUser.mjs +15 -0
- package/dist/components/fin/Chat/Icons.cjs +1 -0
- package/dist/components/fin/Chat/Icons.mjs +44 -0
- package/dist/components/fin/Chat/style.module.scss.cjs +1 -0
- package/dist/components/fin/Chat/style.module.scss.mjs +27 -0
- package/dist/config/components/typography.cjs +1 -1
- package/dist/config/components/typography.mjs +40 -6
- package/dist/config/tailwind/typography.cjs +1 -1
- package/dist/config/tailwind/typography.mjs +23 -15
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +86 -80
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/components/Badges/Badges.config.d.ts +15 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.config.d.ts +1 -0
- package/dist/src/components/Button/Button.config.d.ts +8 -0
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +11 -0
- package/dist/src/components/Modal/ModalDialog.config.d.ts +12 -0
- package/dist/src/components/Modal/ModalDialog.d.ts +1 -1
- package/dist/src/components/Modal/ModalDialog.stories.d.ts +17 -1
- package/dist/src/components/Pagination/Pagination.config.d.ts +1 -0
- package/dist/src/components/Pagination/Pagination.d.ts +1 -1
- package/dist/src/components/Pagination/Pagination.stories.d.ts +14 -1
- package/dist/src/components/Popover/Popover.config.d.ts +8 -0
- package/dist/src/components/RadioCheckbox/RadioCheckbox.config.d.ts +2 -0
- package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.config.d.ts +1 -0
- package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.config.d.ts +10 -0
- package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +2 -0
- package/dist/src/components/Step/StepIndicator.config.d.ts +18 -0
- package/dist/src/components/Step/StepIndicator.d.ts +1 -1
- package/dist/src/components/Step/StepIndicator.stories.d.ts +30 -1
- package/dist/src/components/Switch/Switch.config.d.ts +3 -0
- package/dist/src/components/Tabs/Tabs.config.d.ts +7 -1
- package/dist/src/components/Textarea/TextareaFloatingInner.config.d.ts +5 -0
- package/dist/src/components/fin/Chat/BubbleChat.d.ts +3 -0
- package/dist/src/components/fin/Chat/BubbleChatOption.d.ts +3 -0
- package/dist/src/components/fin/Chat/BubbleChatUser.d.ts +3 -0
- package/dist/src/components/fin/Chat/Icons.d.ts +5 -0
- package/dist/src/components/fin/index.d.ts +4 -0
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/config/components/typography.d.ts +1 -1
- package/dist/src/interfaces/components/Badges/index.d.ts +6 -1
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- package/dist/src/interfaces/components/Modal/index.d.ts +10 -0
- package/dist/src/interfaces/components/Pagination/index.d.ts +6 -1
- package/dist/src/interfaces/components/Popover/index.d.ts +5 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +1 -1
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +1 -1
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +7 -1
- package/dist/src/interfaces/components/Step/index.d.ts +13 -2
- package/dist/src/interfaces/components/Switch/index.d.ts +1 -1
- package/dist/src/interfaces/components/Tabs/index.d.ts +2 -2
- package/dist/src/interfaces/components/Textarea/index.d.ts +5 -0
- package/dist/src/interfaces/components/fin/Chat/index.d.ts +39 -0
- package/package.json +1 -1
|
@@ -1,51 +1,58 @@
|
|
|
1
|
-
const
|
|
2
|
-
"button-
|
|
3
|
-
"button-
|
|
4
|
-
"button-
|
|
5
|
-
"button-
|
|
6
|
-
"button-bill-
|
|
7
|
-
"button-xs": "_button-
|
|
8
|
-
"button-s": "_button-
|
|
9
|
-
"button-m": "_button-
|
|
10
|
-
"button-l": "_button-
|
|
11
|
-
"button-
|
|
12
|
-
"button-
|
|
13
|
-
"button-
|
|
14
|
-
"button-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"nude-red-
|
|
21
|
-
"nude-laba-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"ghost-laba-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"primary-
|
|
36
|
-
"tertiary-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"secondary-
|
|
41
|
-
"secondary-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
1
|
+
const a = "_loading_ayzhk_14", _ = {
|
|
2
|
+
"button-fin-xs": "_button-fin-xs_ayzhk_6",
|
|
3
|
+
"button-fin-s": "_button-fin-s_ayzhk_6",
|
|
4
|
+
"button-fin-m": "_button-fin-m_ayzhk_6",
|
|
5
|
+
"button-fin-l": "_button-fin-l_ayzhk_6",
|
|
6
|
+
"button-bill-xxs": "_button-bill-xxs_ayzhk_6",
|
|
7
|
+
"button-bill-xs": "_button-bill-xs_ayzhk_6",
|
|
8
|
+
"button-bill-s": "_button-bill-s_ayzhk_6",
|
|
9
|
+
"button-bill-m": "_button-bill-m_ayzhk_6",
|
|
10
|
+
"button-bill-l": "_button-bill-l_ayzhk_6",
|
|
11
|
+
"button-xs": "_button-xs_ayzhk_6",
|
|
12
|
+
"button-s": "_button-s_ayzhk_6",
|
|
13
|
+
"button-m": "_button-m_ayzhk_6",
|
|
14
|
+
"button-l": "_button-l_ayzhk_6",
|
|
15
|
+
"button-extra-small": "_button-extra-small_ayzhk_6",
|
|
16
|
+
"button-small": "_button-small_ayzhk_6",
|
|
17
|
+
"button-reguler": "_button-reguler_ayzhk_6",
|
|
18
|
+
"button-large": "_button-large_ayzhk_6",
|
|
19
|
+
loading: a,
|
|
20
|
+
"nude-laba-red-05": "_nude-laba-red-05_ayzhk_29",
|
|
21
|
+
"nude-laba-red-10": "_nude-laba-red-10_ayzhk_29",
|
|
22
|
+
"nude-gray-500": "_nude-gray-500_ayzhk_29",
|
|
23
|
+
"nude-green-700": "_nude-green-700_ayzhk_29",
|
|
24
|
+
"nude-red-700": "_nude-red-700_ayzhk_29",
|
|
25
|
+
"nude-laba-blue-10": "_nude-laba-blue-10_ayzhk_29",
|
|
26
|
+
"ghost-laba-green-10": "_ghost-laba-green-10_ayzhk_29",
|
|
27
|
+
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_ayzhk_29",
|
|
28
|
+
"ghost-green-700": "_ghost-green-700_ayzhk_29",
|
|
29
|
+
"ghost-red-700": "_ghost-red-700_ayzhk_29",
|
|
30
|
+
"ghost-laba-blue-10": "_ghost-laba-blue-10_ayzhk_29",
|
|
31
|
+
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-05_ayzhk_29",
|
|
32
|
+
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-10_ayzhk_29",
|
|
33
|
+
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-06_ayzhk_29",
|
|
34
|
+
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-06_ayzhk_29",
|
|
35
|
+
"primary-laba-blue-10": "_primary-laba-blue-10_ayzhk_29",
|
|
36
|
+
"tertiary-fin-primary-500": "_tertiary-fin-primary-500_ayzhk_29",
|
|
37
|
+
"secondary-fin-primary-500": "_secondary-fin-primary-500_ayzhk_29",
|
|
38
|
+
"primary-fin-primary-500": "_primary-fin-primary-500_ayzhk_29",
|
|
39
|
+
"primary-bill-red-700": "_primary-bill-red-700_ayzhk_29",
|
|
40
|
+
"tertiary-bill-secondary-800": "_tertiary-bill-secondary-800_ayzhk_29",
|
|
41
|
+
"secondary-bill-secondary-800": "_secondary-bill-secondary-800_ayzhk_29",
|
|
42
|
+
"primary-bill-primary-600": "_primary-bill-primary-600_ayzhk_29",
|
|
43
|
+
"tertiary-gray-500": "_tertiary-gray-500_ayzhk_29",
|
|
44
|
+
"tertiary-red-600": "_tertiary-red-600_ayzhk_29",
|
|
45
|
+
"tertiary-red-300": "_tertiary-red-300_ayzhk_29",
|
|
46
|
+
"tertiary-blue-700": "_tertiary-blue-700_ayzhk_29",
|
|
47
|
+
"secondary-green-600": "_secondary-green-600_ayzhk_29",
|
|
48
|
+
"secondary-red-700": "_secondary-red-700_ayzhk_29",
|
|
49
|
+
"secondary-red-600": "_secondary-red-600_ayzhk_29",
|
|
50
|
+
"secondary-blue-700": "_secondary-blue-700_ayzhk_29",
|
|
51
|
+
"primary-red-700": "_primary-red-700_ayzhk_29",
|
|
52
|
+
"primary-blue-700": "_primary-blue-700_ayzhk_29",
|
|
53
|
+
"icon-loading": "_icon-loading_ayzhk_236"
|
|
47
54
|
};
|
|
48
55
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
_ as default,
|
|
57
|
+
a as loading
|
|
51
58
|
};
|
|
@@ -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 e="_input_zpfet_12",t="_label_zpfet_43",_="_error_zpfet_63",l={"container-large":"_container-large_zpfet_1","container-input":"_container-input_zpfet_6",input:e,label:t,error:_,"isset-right-icon":"_isset-right-icon_zpfet_89","isset-left-icon":"_isset-left-icon_zpfet_92","start-icon":"_start-icon_zpfet_95","end-icon":"_end-icon_zpfet_102","label-error":"_label-error_zpfet_109","hidden-label":"_hidden-label_zpfet_120","container-small":"_container-small_zpfet_243","bill-blue-800":"_bill-blue-800_zpfet_485","fin-black":"_fin-black_zpfet_492"};exports.default=l;exports.error=_;exports.input=e;exports.label=t;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const
|
|
2
|
-
"container-large": "_container-
|
|
3
|
-
"container-input": "_container-
|
|
4
|
-
input:
|
|
5
|
-
label:
|
|
6
|
-
error:
|
|
7
|
-
"isset-right-icon": "_isset-right-
|
|
8
|
-
"isset-left-icon": "_isset-left-
|
|
9
|
-
"start-icon": "_start-
|
|
10
|
-
"end-icon": "_end-
|
|
11
|
-
"label-error": "_label-
|
|
12
|
-
"hidden-label": "_hidden-
|
|
13
|
-
"container-small": "_container-
|
|
14
|
-
"bill-blue-800": "_bill-blue-
|
|
15
|
-
"fin-black": "_fin-
|
|
1
|
+
const e = "_input_zpfet_12", t = "_label_zpfet_43", _ = "_error_zpfet_63", n = {
|
|
2
|
+
"container-large": "_container-large_zpfet_1",
|
|
3
|
+
"container-input": "_container-input_zpfet_6",
|
|
4
|
+
input: e,
|
|
5
|
+
label: t,
|
|
6
|
+
error: _,
|
|
7
|
+
"isset-right-icon": "_isset-right-icon_zpfet_89",
|
|
8
|
+
"isset-left-icon": "_isset-left-icon_zpfet_92",
|
|
9
|
+
"start-icon": "_start-icon_zpfet_95",
|
|
10
|
+
"end-icon": "_end-icon_zpfet_102",
|
|
11
|
+
"label-error": "_label-error_zpfet_109",
|
|
12
|
+
"hidden-label": "_hidden-label_zpfet_120",
|
|
13
|
+
"container-small": "_container-small_zpfet_243",
|
|
14
|
+
"bill-blue-800": "_bill-blue-800_zpfet_485",
|
|
15
|
+
"fin-black": "_fin-black_zpfet_492"
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
n as default,
|
|
19
|
+
_ as error,
|
|
20
|
+
e as input,
|
|
21
|
+
t as label
|
|
22
22
|
};
|
|
@@ -1 +1,11 @@
|
|
|
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 c=require("react/jsx-runtime"),r=require("react"),T=require("react-dom"),e=require("./style.module.scss.cjs"),a=require("./ModalDialog.config.cjs"),_=({as:d,children:f,id:m="modal",idModal:g="iru-modal",withOverlay:$=!0,show:t,size:M="regular",position:p="center",className:q,classNameContainer:v,onClose:i,brand:y="",...j})=>{const C=d??"div",[o,n]=r.useState(t),[R,s]=r.useState(!1);r.useEffect(()=>{if(t)n(!0),s(!1);else if(o){s(!0);const l=setTimeout(()=>{n(!1)},400);return()=>clearTimeout(l)}},[t,o]);const S=()=>{typeof i=="function"&&i()};if(!o)return null;const u=document.getElementById(g);return u?T.createPortal(c.jsx("div",{id:m,onClick:S,className:`
|
|
2
|
+
${a.configModal.brand[y]||""}
|
|
3
|
+
${$?e.default["with-overlay"]:""}
|
|
4
|
+
${R?e.default["modal-hide"]:e.default["modal-show"]}
|
|
5
|
+
${v??""}
|
|
6
|
+
`.trim(),children:c.jsx(C,{onClick:l=>l.stopPropagation(),className:`
|
|
7
|
+
${e.default["modal-content"]}
|
|
8
|
+
${a.configModal.position[p]||""}
|
|
9
|
+
${a.configModal.size[M]||""}
|
|
10
|
+
${q??""}
|
|
11
|
+
`.trim(),...j,children:f})}),u):null};exports.default=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./style.module.scss.cjs"),l={size:{small:t.default["modal-small"],medium:t.default["modal-medium"],regular:t.default["modal-regular"],large:t.default["modal-large"]},brand:{"":t.default["brand-general"],fin:t.default["brand-fin"]},position:{center:t.default["modal-center"],"right-top":t.default["modal-right-top"],"right-bottom":t.default["modal-right-bottom"],"left-top":t.default["modal-left-top"],"left-bottom":t.default["modal-left-bottom"]}};exports.configModal=l;
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import o from "./style.module.scss.mjs";
|
|
2
|
+
const l = {
|
|
3
3
|
size: {
|
|
4
|
-
small:
|
|
5
|
-
medium:
|
|
6
|
-
regular:
|
|
7
|
-
large:
|
|
4
|
+
small: o["modal-small"],
|
|
5
|
+
medium: o["modal-medium"],
|
|
6
|
+
regular: o["modal-regular"],
|
|
7
|
+
large: o["modal-large"]
|
|
8
|
+
},
|
|
9
|
+
brand: {
|
|
10
|
+
"": o["brand-general"],
|
|
11
|
+
fin: o["brand-fin"]
|
|
12
|
+
},
|
|
13
|
+
position: {
|
|
14
|
+
center: o["modal-center"],
|
|
15
|
+
"right-top": o["modal-right-top"],
|
|
16
|
+
"right-bottom": o["modal-right-bottom"],
|
|
17
|
+
"left-top": o["modal-left-top"],
|
|
18
|
+
"left-bottom": o["modal-left-bottom"]
|
|
8
19
|
}
|
|
9
20
|
};
|
|
10
21
|
export {
|
|
11
|
-
|
|
22
|
+
l as configModal
|
|
12
23
|
};
|
|
@@ -1,44 +1,71 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c, useEffect as I } from "react";
|
|
3
|
+
import { createPortal as M } from "react-dom";
|
|
4
|
+
import e from "./style.module.scss.mjs";
|
|
5
|
+
import { configModal as i } from "./ModalDialog.config.mjs";
|
|
6
|
+
const z = ({
|
|
7
|
+
as: d,
|
|
8
|
+
children: f,
|
|
9
|
+
id: u = "modal",
|
|
10
|
+
idModal: p = "iru-modal",
|
|
11
|
+
withOverlay: g = !0,
|
|
12
|
+
show: t,
|
|
13
|
+
size: $ = "regular",
|
|
14
|
+
position: y = "center",
|
|
15
|
+
className: C,
|
|
16
|
+
classNameContainer: h,
|
|
17
|
+
onClose: l,
|
|
18
|
+
brand: v = "",
|
|
19
|
+
...T
|
|
17
20
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
21
|
+
const k = d ?? "div", [o, n] = c(t), [x, a] = c(!1);
|
|
22
|
+
I(() => {
|
|
23
|
+
if (t)
|
|
24
|
+
n(!0), a(!1);
|
|
25
|
+
else if (o) {
|
|
26
|
+
a(!0);
|
|
27
|
+
const r = setTimeout(() => {
|
|
28
|
+
n(!1);
|
|
29
|
+
}, 400);
|
|
30
|
+
return () => clearTimeout(r);
|
|
31
|
+
}
|
|
32
|
+
}, [t, o]);
|
|
33
|
+
const E = () => {
|
|
34
|
+
typeof l == "function" && l();
|
|
20
35
|
};
|
|
21
|
-
|
|
22
|
-
|
|
36
|
+
if (!o) return null;
|
|
37
|
+
const s = document.getElementById(p);
|
|
38
|
+
return s ? M(
|
|
39
|
+
/* @__PURE__ */ m(
|
|
23
40
|
"div",
|
|
24
41
|
{
|
|
25
|
-
id:
|
|
26
|
-
onClick:
|
|
27
|
-
className:
|
|
28
|
-
|
|
29
|
-
|
|
42
|
+
id: u,
|
|
43
|
+
onClick: E,
|
|
44
|
+
className: `
|
|
45
|
+
${i.brand[v] || ""}
|
|
46
|
+
${g ? e["with-overlay"] : ""}
|
|
47
|
+
${x ? e["modal-hide"] : e["modal-show"]}
|
|
48
|
+
${h ?? ""}
|
|
49
|
+
`.trim(),
|
|
50
|
+
children: /* @__PURE__ */ m(
|
|
51
|
+
k,
|
|
30
52
|
{
|
|
31
|
-
onClick: (
|
|
32
|
-
className:
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
onClick: (r) => r.stopPropagation(),
|
|
54
|
+
className: `
|
|
55
|
+
${e["modal-content"]}
|
|
56
|
+
${i.position[y] || ""}
|
|
57
|
+
${i.size[$] || ""}
|
|
58
|
+
${C ?? ""}
|
|
59
|
+
`.trim(),
|
|
60
|
+
...T,
|
|
61
|
+
children: f
|
|
35
62
|
}
|
|
36
63
|
)
|
|
37
64
|
}
|
|
38
65
|
),
|
|
39
|
-
|
|
40
|
-
)
|
|
66
|
+
s
|
|
67
|
+
) : null;
|
|
41
68
|
};
|
|
42
69
|
export {
|
|
43
|
-
|
|
70
|
+
z as default
|
|
44
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o={"modal-content":"_modal-content_qxu4j_77","modal-small":"_modal-small_qxu4j_77","modal-medium":"_modal-medium_qxu4j_81","modal-regular":"_modal-regular_qxu4j_85","modal-large":"_modal-large_qxu4j_89","modal-center":"_modal-center_qxu4j_93","modal-right-top":"_modal-right-top_qxu4j_99","modal-right-bottom":"_modal-right-bottom_qxu4j_104","modal-left-top":"_modal-left-top_qxu4j_109","modal-left-bottom":"_modal-left-bottom_qxu4j_114","brand-general":"_brand-general_qxu4j_120","with-overlay":"_with-overlay_qxu4j_132","modal-show":"_modal-show_qxu4j_146","modal-hide":"_modal-hide_qxu4j_164","brand-fin":"_brand-fin_qxu4j_181"};exports.default=o;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
const
|
|
2
|
-
modal:
|
|
3
|
-
"modal-
|
|
4
|
-
"
|
|
5
|
-
"modal-
|
|
6
|
-
"modal-
|
|
7
|
-
"modal-
|
|
8
|
-
"modal-
|
|
9
|
-
"modal-
|
|
1
|
+
const _ = {
|
|
2
|
+
"modal-content": "_modal-content_qxu4j_77",
|
|
3
|
+
"modal-small": "_modal-small_qxu4j_77",
|
|
4
|
+
"modal-medium": "_modal-medium_qxu4j_81",
|
|
5
|
+
"modal-regular": "_modal-regular_qxu4j_85",
|
|
6
|
+
"modal-large": "_modal-large_qxu4j_89",
|
|
7
|
+
"modal-center": "_modal-center_qxu4j_93",
|
|
8
|
+
"modal-right-top": "_modal-right-top_qxu4j_99",
|
|
9
|
+
"modal-right-bottom": "_modal-right-bottom_qxu4j_104",
|
|
10
|
+
"modal-left-top": "_modal-left-top_qxu4j_109",
|
|
11
|
+
"modal-left-bottom": "_modal-left-bottom_qxu4j_114",
|
|
12
|
+
"brand-general": "_brand-general_qxu4j_120",
|
|
13
|
+
"with-overlay": "_with-overlay_qxu4j_132",
|
|
14
|
+
"modal-show": "_modal-show_qxu4j_146",
|
|
15
|
+
"modal-hide": "_modal-hide_qxu4j_164",
|
|
16
|
+
"brand-fin": "_brand-fin_qxu4j_181"
|
|
10
17
|
};
|
|
11
18
|
export {
|
|
12
|
-
|
|
13
|
-
o as modal
|
|
19
|
+
_ as default
|
|
14
20
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),
|
|
2
|
-
${
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),d=require("react"),o=require("./style.module.scss.cjs"),m=require("../../utils/common.cjs"),G=require("../Calendar/CalendarYear.cjs"),X=require("../Popover/Popover.cjs"),k=require("./Pagination.config.cjs"),x=(t,s)=>{const c=s-t+1;return Array.from({length:c},(r,N)=>N+t)},q={"en-US":{"Rows per page:":"Rows per page:",of:"of","Go to:":"Go to:"},"id-ID":{"Rows per page:":"Baris per halaman:",of:"dari","Go to:":"Go to:"},"zh-CN":{"Rows per page:":"每页行数:",of:"共","Go to:":"跳至:"},"nl-NL":{"Rows per page:":"Rijen per pagina:",of:"van","Go to:":"Ga naar:"}},Z=({totalData:t,totalPage:s,pageNumber:c,pageSize:r,className:N,id:u="1ru-pagination",kind:L="box",prevIcon:g,nextIcon:p,onChange:j,optionPageSize:v=[25,50,75,100],offset:I=1.5,zIndex:O,withGotoPage:A=!1,withMorePage:M=!0,withOptionPageSize:F=!1,withPageSize:T=!0,locale:$="id-ID",fonts:S="inter"})=>{const w=d.useRef(null),[i,C]=d.useState(c),[U,R]=d.useState(c.toString()),f=1,Y=(i-1)*r+1,V=r*i,H=t?`${m.formatNumber(Y,"decimal")}-${V>=t?m.formatNumber(t,"decimal"):m.formatNumber(V,"decimal")}`:0,J=d.useMemo(()=>{const e=Math.ceil(t/r);if(f+5>=e)return x(1,e);const l=Math.max(i-f,1),_=Math.min(i+f,e),y=l>2,P=_<e-2,B=1,W=e;if(!y&&P){const b=3+2*f;return[...x(1,b),"mr",e]}if(y&&!P){const b=3+2*f,E=x(e-b+1,e);return[B,"ml",...E]}if(y&&P){const b=x(l,_);return[B,"ml",...b,"mr",W]}},[t,r,f,i]),h=e=>{typeof j=="function"&&(j(e),C(e.pageNumber),R(e.pageNumber.toString()))},K=e=>{if(typeof j=="function"&&M){if(e==="ml"){const l=i-5;C(l<1?1:i-5)}else if(e==="mr"){const l=i+5;C(l>s?s:i+5)}}},Q=e=>{R(e);const a=Number(e);a>0&&a<=s&&h({pageSize:r,totalData:t,totalPage:s,pageNumber:a})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{id:u,className:`${k.configPagination.kind[L]} ${k.configPagination.fonts[S].value} ${N}`,children:[n.jsxs("div",{className:o.default["pagination-size"],children:[n.jsx("span",{children:q[$]["Rows per page:"]}),F&&n.jsxs("button",{id:`${u}-option-size`,className:o.default["button-option"],onClick:e=>w.current?.handlerShow(e),children:[m.formatNumber(r,"decimal"),n.jsx(G.ChevronDownIcon,{className:"!iru-text-gray-500 !iru-w-[14px] !iru-h-[14px] iru-mx-0.5"})]}),T&&n.jsxs("span",{children:[H," ",q[$].of," ",m.formatNumber(t,"decimal")]})]}),n.jsxs("div",{className:o.default["navigation-container"],children:[n.jsx("button",{id:`${u}-button-prev`,className:`${o.default["button-prev"]}`,disabled:i===1,onClick:()=>h({pageSize:r,totalData:t,totalPage:s,pageNumber:c-1}),children:typeof g=="function"||d.isValidElement(g)?d.isValidElement(g)?g:g():n.jsx(G.ChevronDownIcon,{className:"iru-rotate-90 !iru-text-gray-500 !iru-w-[14px] !iru-h-[14px]"})}),(J??[]).map((e,a)=>{if(typeof e!="number"){const l=["ml","mr"].includes(e);return n.jsx("button",{className:o.default["button-container"],disabled:!M,onClick:()=>K(e),children:l?"...":e},a)}return n.jsx("button",{id:`${u}-button-${e}`,className:`${e===c?o.default["pagination-active"]:""} ${o.default["button-container"]}
|
|
2
|
+
${k.configPagination.fonts[S].typographyButtonLabel}`,disabled:e===c,onClick:()=>h({pageSize:r,totalData:t,totalPage:s,pageNumber:e}),children:m.formatNumber(e,"decimal")},a)}),n.jsx("button",{id:`${u}-button-next`,className:`${o.default["button-next"]}`,disabled:i===s||!s,onClick:()=>h({pageSize:r,totalData:t,totalPage:s,pageNumber:c+1}),children:typeof p=="function"||d.isValidElement(p)?d.isValidElement(p)?p:p():n.jsx(G.ChevronDownIcon,{className:"-iru-rotate-90 !iru-text-gray-500 !iru-w-[14px] !iru-h-[14px]"})}),A&&n.jsxs("div",{className:o.default["goto-page"],children:[n.jsx("span",{children:q[$]["Go to:"]}),n.jsx("input",{id:`${u}-goto-page`,type:"number",className:o.default["goto-page-input"],value:U,onChange:e=>Q(e.target.value),onBlur:()=>R(i.toString())})]})]})]}),n.jsx(X.default,{floatingOptions:{placement:"bottom-end"},ref:w,className:o.default["options-size"],offset:I,zIndex:O,id:`${u}-popover-options-size`,children:v.map((e,a)=>n.jsx("p",{id:`${u}-option-size-${e}`,className:`${o.default.option} ${e===r?o.default.active:""}`,onClick:()=>{h({totalData:t,totalPage:s,pageSize:e,pageNumber:1}),w.current?.setShow(!1)},children:m.formatNumber(e,"decimal")},a))})]})};exports.default=Z;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../config/components/font.cjs"),a=require("./style.module.scss.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../config/components/font.cjs"),a=require("./style.module.scss.cjs"),n={kind:{box:a.default["pagination-box"],nude:a.default["pagination-nude"],"box-fin":a.default["pagination-box-fin"]},fonts:{inter:{value:t.configFont.inter,typographyButtonLabel:"iru-text-payhere-body-sr"},lato:{value:t.configFont.lato,typographyButtonLabel:"iru-text-payhere-body-sr"},pJakartaSans:{value:t.configFont.pJakartaSans,typographyButtonLabel:"iru-text-bill-label-r"}}};exports.configPagination=n;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { configFont as t } from "../../config/components/font.mjs";
|
|
2
2
|
import a from "./style.module.scss.mjs";
|
|
3
|
-
const
|
|
3
|
+
const i = {
|
|
4
4
|
kind: {
|
|
5
5
|
box: a["pagination-box"],
|
|
6
|
-
nude: a["pagination-nude"]
|
|
6
|
+
nude: a["pagination-nude"],
|
|
7
|
+
"box-fin": a["pagination-box-fin"]
|
|
7
8
|
},
|
|
8
9
|
fonts: {
|
|
9
10
|
inter: {
|
|
@@ -21,5 +22,5 @@ const e = {
|
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
i as configPagination
|
|
25
26
|
};
|