1mpacto-react-ui 2.0.25 → 2.0.27
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 +6 -1
- package/dist/assets/_typography.scss +37 -3
- package/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/assets/style.css +1 -1
- 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 +33 -33
- package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -1
- package/dist/components/Breadcrumbs/style.module.scss.mjs +13 -10
- package/dist/components/Button/Button.config.cjs +1 -1
- package/dist/components/Button/Button.config.mjs +67 -56
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +63 -56
- 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 +53 -46
- 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 +2 -2
- package/dist/components/Calendar/CalendarYear.mjs +25 -23
- 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/Modal/ModalDialog.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.mjs +11 -7
- package/dist/components/Modal/ModalDialog.mjs +24 -23
- package/dist/components/Modal/style.module.scss.cjs +1 -1
- package/dist/components/Modal/style.module.scss.mjs +13 -11
- package/dist/components/Popover/Popover.cjs +1 -1
- package/dist/components/Popover/Popover.config.cjs +1 -0
- package/dist/components/Popover/Popover.config.mjs +10 -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 +7 -4
- 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 +25 -23
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -24
- 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 +14 -12
- 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 +79 -4
- 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/Breadcrumbs/Breadcrumbs.config.d.ts +1 -0
- package/dist/src/components/Button/Button.config.d.ts +11 -0
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +11 -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/Modal/ModalDialog.config.d.ts +4 -0
- package/dist/src/components/Modal/ModalDialog.d.ts +1 -1
- package/dist/src/components/Modal/ModalDialog.stories.d.ts +1 -1
- package/dist/src/components/Popover/Popover.config.d.ts +7 -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/components/Textarea/TextareaFloatingInner.config.d.ts +5 -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/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/interfaces/components/Button/index.d.ts +2 -2
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- 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/Modal/index.d.ts +5 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +5 -0
- package/dist/src/interfaces/components/Sidebar/index.d.ts +6 -1
- package/dist/src/interfaces/components/Textarea/index.d.ts +5 -0
- package/dist/utils/common.cjs +1 -1
- package/dist/utils/common.mjs +7 -7
- package/package.json +1 -1
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import r from "./style.module.scss.mjs";
|
|
2
|
+
const i = {
|
|
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
|
+
"fin-l": r["button-fin-l"],
|
|
18
|
+
"fin-m": r["button-fin-m"],
|
|
19
|
+
"fin-s": r["button-fin-s"],
|
|
20
|
+
"fin-xs": r["button-fin-xs"]
|
|
17
21
|
},
|
|
18
22
|
loadingSize: {
|
|
19
23
|
large: "iru-size-6",
|
|
@@ -28,41 +32,48 @@ const l = {
|
|
|
28
32
|
"bill-m": "iru-size-5",
|
|
29
33
|
"bill-s": "iru-size-5",
|
|
30
34
|
"bill-xs": "iru-size-5",
|
|
31
|
-
"bill-xxs": "iru-size-5"
|
|
35
|
+
"bill-xxs": "iru-size-5",
|
|
36
|
+
"fin-l": "iru-size-6",
|
|
37
|
+
"fin-m": "iru-size-5",
|
|
38
|
+
"fin-s": "iru-size-5",
|
|
39
|
+
"fin-xs": "iru-size-5"
|
|
32
40
|
},
|
|
33
41
|
variants: {
|
|
34
|
-
"primary-laba-blue-10":
|
|
35
|
-
"primary-red-700-dsb_laba-grey-06":
|
|
36
|
-
"primary-green-700-dsb_laba-grey-06":
|
|
37
|
-
"filled-laba-white_laba-blue-10":
|
|
38
|
-
"filled-laba-white_laba-red-05":
|
|
39
|
-
"ghost-laba-blue-10":
|
|
40
|
-
"ghost-red-700":
|
|
41
|
-
"ghost-green-700":
|
|
42
|
-
"ghost-laba-green-10":
|
|
43
|
-
"nude-laba-blue-10":
|
|
44
|
-
"nude-red-700":
|
|
45
|
-
"nude-green-700":
|
|
46
|
-
"nude-gray-500":
|
|
47
|
-
"primary-blue-700":
|
|
48
|
-
"secondary-blue-700":
|
|
49
|
-
"tertiary-blue-700":
|
|
50
|
-
"ghost-blue-gray-100-bg_white":
|
|
51
|
-
"secondary-red-600":
|
|
52
|
-
"tertiary-red-300":
|
|
53
|
-
"tertiary-gray-500":
|
|
54
|
-
"tertiary-red-600":
|
|
55
|
-
"secondary-green-600":
|
|
56
|
-
"nude-laba-red-10":
|
|
57
|
-
"nude-laba-red-05":
|
|
58
|
-
"primary-red-700":
|
|
59
|
-
"secondary-red-700":
|
|
60
|
-
"primary-bill-primary-600":
|
|
61
|
-
"secondary-bill-secondary-800":
|
|
62
|
-
"tertiary-bill-secondary-800":
|
|
63
|
-
"primary-bill-red-700":
|
|
42
|
+
"primary-laba-blue-10": r["primary-laba-blue-10"],
|
|
43
|
+
"primary-red-700-dsb_laba-grey-06": r["primary-red-700-dsb_laba-grey-06"],
|
|
44
|
+
"primary-green-700-dsb_laba-grey-06": r["primary-green-700-dsb_laba-grey-06"],
|
|
45
|
+
"filled-laba-white_laba-blue-10": r["filled-laba-white_laba-blue-10"],
|
|
46
|
+
"filled-laba-white_laba-red-05": r["filled-laba-white_laba-red-05"],
|
|
47
|
+
"ghost-laba-blue-10": r["ghost-laba-blue-10"],
|
|
48
|
+
"ghost-red-700": r["ghost-red-700"],
|
|
49
|
+
"ghost-green-700": r["ghost-green-700"],
|
|
50
|
+
"ghost-laba-green-10": r["ghost-laba-green-10"],
|
|
51
|
+
"nude-laba-blue-10": r["nude-laba-blue-10"],
|
|
52
|
+
"nude-red-700": r["nude-red-700"],
|
|
53
|
+
"nude-green-700": r["nude-green-700"],
|
|
54
|
+
"nude-gray-500": r["nude-gray-500"],
|
|
55
|
+
"primary-blue-700": r["primary-blue-700"],
|
|
56
|
+
"secondary-blue-700": r["secondary-blue-700"],
|
|
57
|
+
"tertiary-blue-700": r["tertiary-blue-700"],
|
|
58
|
+
"ghost-blue-gray-100-bg_white": r["ghost-blue-gray-100-bg_white"],
|
|
59
|
+
"secondary-red-600": r["secondary-red-600"],
|
|
60
|
+
"tertiary-red-300": r["tertiary-red-300"],
|
|
61
|
+
"tertiary-gray-500": r["tertiary-gray-500"],
|
|
62
|
+
"tertiary-red-600": r["tertiary-red-600"],
|
|
63
|
+
"secondary-green-600": r["secondary-green-600"],
|
|
64
|
+
"nude-laba-red-10": r["nude-laba-red-10"],
|
|
65
|
+
"nude-laba-red-05": r["nude-laba-red-05"],
|
|
66
|
+
"primary-red-700": r["primary-red-700"],
|
|
67
|
+
"secondary-red-700": r["secondary-red-700"],
|
|
68
|
+
"primary-bill-primary-600": r["primary-bill-primary-600"],
|
|
69
|
+
"secondary-bill-secondary-800": r["secondary-bill-secondary-800"],
|
|
70
|
+
"tertiary-bill-secondary-800": r["tertiary-bill-secondary-800"],
|
|
71
|
+
"primary-bill-red-700": r["primary-bill-red-700"],
|
|
72
|
+
"primary-fin-primary-500": r["primary-fin-primary-500"],
|
|
73
|
+
"secondary-fin-primary-500": r["secondary-fin-primary-500"],
|
|
74
|
+
"tertiary-fin-primary-500": r["tertiary-fin-primary-500"]
|
|
64
75
|
}
|
|
65
76
|
};
|
|
66
77
|
export {
|
|
67
|
-
|
|
78
|
+
i as configButton
|
|
68
79
|
};
|
|
@@ -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_o0460_14",r={"button-fin-xs":"_button-fin-xs_o0460_6","button-fin-s":"_button-fin-s_o0460_6","button-fin-m":"_button-fin-m_o0460_6","button-fin-l":"_button-fin-l_o0460_6","button-bill-xxs":"_button-bill-xxs_o0460_6","button-bill-xs":"_button-bill-xs_o0460_6","button-bill-s":"_button-bill-s_o0460_6","button-bill-m":"_button-bill-m_o0460_6","button-bill-l":"_button-bill-l_o0460_6","button-xs":"_button-xs_o0460_6","button-s":"_button-s_o0460_6","button-m":"_button-m_o0460_6","button-l":"_button-l_o0460_6","button-extra-small":"_button-extra-small_o0460_6","button-small":"_button-small_o0460_6","button-reguler":"_button-reguler_o0460_6","button-large":"_button-large_o0460_6",loading:_,"nude-laba-red-05":"_nude-laba-red-05_o0460_29","nude-laba-red-10":"_nude-laba-red-10_o0460_29","nude-gray-500":"_nude-gray-500_o0460_29","nude-green-700":"_nude-green-700_o0460_29","nude-red-700":"_nude-red-700_o0460_29","nude-laba-blue-10":"_nude-laba-blue-10_o0460_29","ghost-laba-green-10":"_ghost-laba-green-10_o0460_29","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_o0460_29","ghost-green-700":"_ghost-green-700_o0460_29","ghost-red-700":"_ghost-red-700_o0460_29","ghost-laba-blue-10":"_ghost-laba-blue-10_o0460_29","filled-laba-white_laba-red-05":"_filled-laba-white_laba-red-05_o0460_29","filled-laba-white_laba-blue-10":"_filled-laba-white_laba-blue-10_o0460_29","primary-green-700-dsb_laba-grey-06":"_primary-green-700-dsb_laba-grey-06_o0460_29","primary-red-700-dsb_laba-grey-06":"_primary-red-700-dsb_laba-grey-06_o0460_29","primary-laba-blue-10":"_primary-laba-blue-10_o0460_29","tertiary-fin-primary-500":"_tertiary-fin-primary-500_o0460_29","secondary-fin-primary-500":"_secondary-fin-primary-500_o0460_29","primary-fin-primary-500":"_primary-fin-primary-500_o0460_29","primary-bill-red-700":"_primary-bill-red-700_o0460_29","tertiary-bill-secondary-800":"_tertiary-bill-secondary-800_o0460_29","secondary-bill-secondary-800":"_secondary-bill-secondary-800_o0460_29","primary-bill-primary-600":"_primary-bill-primary-600_o0460_29","tertiary-gray-500":"_tertiary-gray-500_o0460_29","tertiary-red-600":"_tertiary-red-600_o0460_29","tertiary-red-300":"_tertiary-red-300_o0460_29","tertiary-blue-700":"_tertiary-blue-700_o0460_29","secondary-green-600":"_secondary-green-600_o0460_29","secondary-red-700":"_secondary-red-700_o0460_29","secondary-red-600":"_secondary-red-600_o0460_29","secondary-blue-700":"_secondary-blue-700_o0460_29","primary-red-700":"_primary-red-700_o0460_29","primary-blue-700":"_primary-blue-700_o0460_29","icon-loading":"_icon-loading_o0460_236"};exports.default=r;exports.loading=_;
|
|
@@ -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-
|
|
1
|
+
const _ = "_loading_o0460_14", r = {
|
|
2
|
+
"button-fin-xs": "_button-fin-xs_o0460_6",
|
|
3
|
+
"button-fin-s": "_button-fin-s_o0460_6",
|
|
4
|
+
"button-fin-m": "_button-fin-m_o0460_6",
|
|
5
|
+
"button-fin-l": "_button-fin-l_o0460_6",
|
|
6
|
+
"button-bill-xxs": "_button-bill-xxs_o0460_6",
|
|
7
|
+
"button-bill-xs": "_button-bill-xs_o0460_6",
|
|
8
|
+
"button-bill-s": "_button-bill-s_o0460_6",
|
|
9
|
+
"button-bill-m": "_button-bill-m_o0460_6",
|
|
10
|
+
"button-bill-l": "_button-bill-l_o0460_6",
|
|
11
|
+
"button-xs": "_button-xs_o0460_6",
|
|
12
|
+
"button-s": "_button-s_o0460_6",
|
|
13
|
+
"button-m": "_button-m_o0460_6",
|
|
14
|
+
"button-l": "_button-l_o0460_6",
|
|
15
|
+
"button-extra-small": "_button-extra-small_o0460_6",
|
|
16
|
+
"button-small": "_button-small_o0460_6",
|
|
17
|
+
"button-reguler": "_button-reguler_o0460_6",
|
|
18
|
+
"button-large": "_button-large_o0460_6",
|
|
15
19
|
loading: _,
|
|
16
|
-
"nude-laba-red-05": "_nude-laba-red-
|
|
17
|
-
"nude-laba-red-10": "_nude-laba-red-
|
|
18
|
-
"nude-gray-500": "_nude-gray-
|
|
19
|
-
"nude-green-700": "_nude-green-
|
|
20
|
-
"nude-red-700": "_nude-red-
|
|
21
|
-
"nude-laba-blue-10": "_nude-laba-blue-
|
|
22
|
-
"ghost-laba-green-10": "_ghost-laba-green-
|
|
23
|
-
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-
|
|
24
|
-
"ghost-green-700": "_ghost-green-
|
|
25
|
-
"ghost-red-700": "_ghost-red-
|
|
26
|
-
"ghost-laba-blue-10": "_ghost-laba-blue-
|
|
27
|
-
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-
|
|
28
|
-
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-
|
|
29
|
-
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-
|
|
30
|
-
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-
|
|
31
|
-
"primary-laba-blue-10": "_primary-laba-blue-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"primary-bill-
|
|
36
|
-
"tertiary-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"tertiary-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"secondary-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
20
|
+
"nude-laba-red-05": "_nude-laba-red-05_o0460_29",
|
|
21
|
+
"nude-laba-red-10": "_nude-laba-red-10_o0460_29",
|
|
22
|
+
"nude-gray-500": "_nude-gray-500_o0460_29",
|
|
23
|
+
"nude-green-700": "_nude-green-700_o0460_29",
|
|
24
|
+
"nude-red-700": "_nude-red-700_o0460_29",
|
|
25
|
+
"nude-laba-blue-10": "_nude-laba-blue-10_o0460_29",
|
|
26
|
+
"ghost-laba-green-10": "_ghost-laba-green-10_o0460_29",
|
|
27
|
+
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_o0460_29",
|
|
28
|
+
"ghost-green-700": "_ghost-green-700_o0460_29",
|
|
29
|
+
"ghost-red-700": "_ghost-red-700_o0460_29",
|
|
30
|
+
"ghost-laba-blue-10": "_ghost-laba-blue-10_o0460_29",
|
|
31
|
+
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-05_o0460_29",
|
|
32
|
+
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-10_o0460_29",
|
|
33
|
+
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-06_o0460_29",
|
|
34
|
+
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-06_o0460_29",
|
|
35
|
+
"primary-laba-blue-10": "_primary-laba-blue-10_o0460_29",
|
|
36
|
+
"tertiary-fin-primary-500": "_tertiary-fin-primary-500_o0460_29",
|
|
37
|
+
"secondary-fin-primary-500": "_secondary-fin-primary-500_o0460_29",
|
|
38
|
+
"primary-fin-primary-500": "_primary-fin-primary-500_o0460_29",
|
|
39
|
+
"primary-bill-red-700": "_primary-bill-red-700_o0460_29",
|
|
40
|
+
"tertiary-bill-secondary-800": "_tertiary-bill-secondary-800_o0460_29",
|
|
41
|
+
"secondary-bill-secondary-800": "_secondary-bill-secondary-800_o0460_29",
|
|
42
|
+
"primary-bill-primary-600": "_primary-bill-primary-600_o0460_29",
|
|
43
|
+
"tertiary-gray-500": "_tertiary-gray-500_o0460_29",
|
|
44
|
+
"tertiary-red-600": "_tertiary-red-600_o0460_29",
|
|
45
|
+
"tertiary-red-300": "_tertiary-red-300_o0460_29",
|
|
46
|
+
"tertiary-blue-700": "_tertiary-blue-700_o0460_29",
|
|
47
|
+
"secondary-green-600": "_secondary-green-600_o0460_29",
|
|
48
|
+
"secondary-red-700": "_secondary-red-700_o0460_29",
|
|
49
|
+
"secondary-red-600": "_secondary-red-600_o0460_29",
|
|
50
|
+
"secondary-blue-700": "_secondary-blue-700_o0460_29",
|
|
51
|
+
"primary-red-700": "_primary-red-700_o0460_29",
|
|
52
|
+
"primary-blue-700": "_primary-blue-700_o0460_29",
|
|
53
|
+
"icon-loading": "_icon-loading_o0460_236"
|
|
47
54
|
};
|
|
48
55
|
export {
|
|
49
|
-
|
|
56
|
+
r as default,
|
|
50
57
|
_ as loading
|
|
51
58
|
};
|
|
@@ -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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import a from "./style.module.scss.mjs";
|
|
2
|
+
const e = {
|
|
3
|
+
variants: {
|
|
4
|
+
"laba-blue-10": a["laba-blue-10"],
|
|
5
|
+
"fin-primary-500": a["fin-primary-500"]
|
|
6
|
+
},
|
|
7
|
+
selectedVariants: {
|
|
8
|
+
"laba-blue-10": a["selected-laba-blue-10"],
|
|
9
|
+
"fin-primary-500": a["selected-blue-700"]
|
|
10
|
+
},
|
|
11
|
+
resetButtonVariant: {
|
|
12
|
+
"laba-blue-10": "nude-laba-blue-10",
|
|
13
|
+
"fin-primary-500": "tertiary-fin-primary-500"
|
|
14
|
+
},
|
|
15
|
+
submitButtonVariant: {
|
|
16
|
+
"laba-blue-10": "primary-laba-blue-10",
|
|
17
|
+
"fin-primary-500": "primary-fin-primary-500"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as configCalendar
|
|
22
|
+
};
|