@itilite/lumina-ui 1.1.14 → 1.2.1

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.
Files changed (129) hide show
  1. package/dist/AdvancedDateRangePicker-D7xn4So6.d.mts +59 -0
  2. package/dist/AdvancedDateRangePicker-D7xn4So6.d.ts +59 -0
  3. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.mts +64 -0
  4. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.ts +64 -0
  5. package/dist/AdvancedDateRangePicker-DGg-rucL.d.mts +62 -0
  6. package/dist/AdvancedDateRangePicker-DGg-rucL.d.ts +62 -0
  7. package/dist/AdvancedDateRangePicker-DOSprRQR.d.mts +52 -0
  8. package/dist/AdvancedDateRangePicker-DOSprRQR.d.ts +52 -0
  9. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.mts +64 -0
  10. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.ts +64 -0
  11. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.mts +60 -0
  12. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.ts +60 -0
  13. package/dist/AdvancedDateRangePicker-ozItnkhp.d.mts +57 -0
  14. package/dist/AdvancedDateRangePicker-ozItnkhp.d.ts +57 -0
  15. package/dist/Table-BOq-_9Nr.d.mts +121 -0
  16. package/dist/Table-BOq-_9Nr.d.ts +121 -0
  17. package/dist/Table-BfGn3Pa0.d.mts +82 -0
  18. package/dist/Table-BfGn3Pa0.d.ts +82 -0
  19. package/dist/Table-BxaCiQmh.d.mts +82 -0
  20. package/dist/Table-BxaCiQmh.d.ts +82 -0
  21. package/dist/Table-CnzP9dkc.d.mts +82 -0
  22. package/dist/Table-CnzP9dkc.d.ts +82 -0
  23. package/dist/Table-DNvoh2P8.d.mts +127 -0
  24. package/dist/Table-DNvoh2P8.d.ts +127 -0
  25. package/dist/Table-DSFYzrpU.d.mts +129 -0
  26. package/dist/Table-DSFYzrpU.d.ts +129 -0
  27. package/dist/Table-DmfNNnuD.d.mts +86 -0
  28. package/dist/Table-DmfNNnuD.d.ts +86 -0
  29. package/dist/Table-DoCPt3ri.d.mts +129 -0
  30. package/dist/Table-DoCPt3ri.d.ts +129 -0
  31. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +2 -0
  32. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +2 -0
  33. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.js +1649 -0
  34. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +15 -0
  35. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +17 -0
  36. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +17 -0
  37. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.js +370 -0
  38. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.mjs +8 -0
  39. package/dist/atom/Button/Button.js +1 -1
  40. package/dist/atom/Button/Button.mjs +1 -1
  41. package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +2 -2
  42. package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +2 -2
  43. package/dist/atom/Modal/Modal.js +1 -1
  44. package/dist/atom/Modal/Modal.mjs +2 -2
  45. package/dist/atom/RangePicker/RangePicker.mjs +1 -1
  46. package/dist/atom/Table/Table.d.mts +3 -0
  47. package/dist/atom/Table/Table.d.ts +3 -0
  48. package/dist/atom/Table/Table.js +340 -0
  49. package/dist/atom/Table/Table.mjs +9 -0
  50. package/dist/chunk-27LRL4RO.mjs +428 -0
  51. package/dist/chunk-2IT3XM7C.mjs +473 -0
  52. package/dist/chunk-3HXZIFV6.mjs +438 -0
  53. package/dist/{chunk-35KDS27M.mjs → chunk-4JX54OKI.mjs} +27 -18
  54. package/dist/chunk-53O7JM5I.mjs +424 -0
  55. package/dist/chunk-5JXIJTAS.mjs +448 -0
  56. package/dist/chunk-5OUMKJWI.mjs +301 -0
  57. package/dist/chunk-5PMUTA6S.mjs +303 -0
  58. package/dist/chunk-5PQ43JFX.mjs +440 -0
  59. package/dist/chunk-62VAYFZA.mjs +437 -0
  60. package/dist/chunk-6ON32H2N.mjs +431 -0
  61. package/dist/chunk-6RIZXTFP.mjs +290 -0
  62. package/dist/chunk-6XIT27XY.mjs +269 -0
  63. package/dist/chunk-772C454L.mjs +438 -0
  64. package/dist/chunk-7L267Y4P.mjs +429 -0
  65. package/dist/chunk-7WSVCE2C.mjs +269 -0
  66. package/dist/chunk-ANJI6SPV.mjs +283 -0
  67. package/dist/chunk-BFFLWW7N.mjs +250 -0
  68. package/dist/chunk-C5VYFNVC.mjs +441 -0
  69. package/dist/chunk-DL7BZMGE.mjs +295 -0
  70. package/dist/chunk-DXPVJNGY.mjs +284 -0
  71. package/dist/chunk-FPH63V2R.mjs +269 -0
  72. package/dist/chunk-FTL3PFC2.mjs +438 -0
  73. package/dist/chunk-G4P6XGQX.mjs +278 -0
  74. package/dist/chunk-GGWY2SYX.mjs +452 -0
  75. package/dist/chunk-GOIABK2Y.mjs +283 -0
  76. package/dist/chunk-GZ4P7OL3.mjs +429 -0
  77. package/dist/chunk-I6GLPWHS.mjs +278 -0
  78. package/dist/chunk-IPVJEGDI.mjs +476 -0
  79. package/dist/chunk-J4YYP4IZ.mjs +0 -0
  80. package/dist/chunk-J5JDQ4R6.mjs +278 -0
  81. package/dist/chunk-K2A4TWA3.mjs +430 -0
  82. package/dist/chunk-L3L42SIL.mjs +429 -0
  83. package/dist/chunk-LRNKIRH3.mjs +289 -0
  84. package/dist/chunk-MA23J4WQ.mjs +430 -0
  85. package/dist/chunk-N4DPPZVJ.mjs +269 -0
  86. package/dist/chunk-PQ3B2FEB.mjs +249 -0
  87. package/dist/chunk-QQA7KWAJ.mjs +477 -0
  88. package/dist/chunk-QRGHJP7U.mjs +437 -0
  89. package/dist/chunk-QU73KNTT.mjs +452 -0
  90. package/dist/chunk-RC6IGURJ.mjs +428 -0
  91. package/dist/chunk-SKPCOHON.mjs +473 -0
  92. package/dist/chunk-SRKN7WS7.mjs +448 -0
  93. package/dist/chunk-T43CWNOG.mjs +283 -0
  94. package/dist/chunk-TE5EOIIW.mjs +301 -0
  95. package/dist/chunk-TQDZWJZP.mjs +269 -0
  96. package/dist/chunk-UAGSPM3T.mjs +288 -0
  97. package/dist/chunk-UC4NTBDH.mjs +439 -0
  98. package/dist/chunk-UPSQTJJ4.mjs +294 -0
  99. package/dist/chunk-V3CHJHUX.mjs +424 -0
  100. package/dist/chunk-X3NDICAU.mjs +284 -0
  101. package/dist/chunk-XECXKSTC.mjs +453 -0
  102. package/dist/chunk-XIVTXS3Y.mjs +439 -0
  103. package/dist/chunk-Z3N4E2C5.mjs +477 -0
  104. package/dist/chunk-ZGV6QMVM.mjs +437 -0
  105. package/dist/index.d.mts +16 -14
  106. package/dist/index.d.ts +16 -14
  107. package/dist/index.js +1018 -16
  108. package/dist/index.mjs +25 -16
  109. package/dist/styles.css +1343 -199
  110. package/package.json +1 -1
  111. package/dist/Avatar-DX2JwvAs.d.mts +0 -17
  112. package/dist/Avatar-DX2JwvAs.d.ts +0 -17
  113. package/dist/Tag-l7I5oeyk.d.mts +0 -13
  114. package/dist/Tag-l7I5oeyk.d.ts +0 -13
  115. package/dist/chunk-3S4X3YO2.mjs +0 -64
  116. package/dist/chunk-3XUHGVYA.mjs +0 -77
  117. package/dist/chunk-DLLT6V65.mjs +0 -141
  118. package/dist/chunk-E4FCLHYA.mjs +0 -678
  119. package/dist/chunk-HISCHZ5H.mjs +0 -77
  120. package/dist/chunk-I5VHKSQR.mjs +0 -64
  121. package/dist/chunk-N355RJGH.mjs +0 -141
  122. package/dist/chunk-N3YFQDW7.mjs +0 -77
  123. package/dist/chunk-QWK3MYDM.mjs +0 -64
  124. package/dist/chunk-SWRFCTJW.mjs +0 -77
  125. package/dist/chunk-UTMZY37A.mjs +0 -141
  126. package/dist/chunk-UUEPD2FH.mjs +0 -141
  127. package/dist/chunk-X76GNSBB.mjs +0 -87
  128. package/dist/chunk-Y3BIY4DW.mjs +0 -618
  129. package/dist/chunk-ZGFE3OPJ.mjs +0 -678
@@ -1,77 +0,0 @@
1
- // src/atom/Button/Button.tsx
2
- import { Button as AntButton } from "antd";
3
- import clsx from "clsx";
4
-
5
- // src/atom/Button/Button.module.scss
6
- var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
7
-
8
- // src/atom/Button/Button.tsx
9
- import { jsx } from "react/jsx-runtime";
10
- function Button(props) {
11
- const {
12
- type = "primary",
13
- variant = "default",
14
- size = "normal",
15
- shape = "default",
16
- className = "",
17
- icon = null,
18
- children,
19
- onClick,
20
- href = "",
21
- disabled = false,
22
- loading = false,
23
- onHoverUnderline = false
24
- } = props;
25
- const buttonMap = {
26
- default: "primary",
27
- subtle: "default",
28
- text: "text",
29
- link: "link"
30
- };
31
- const sizeMap = {
32
- small: "small",
33
- normal: "middle",
34
- // Map "default" to "middle"
35
- large: "large"
36
- };
37
- return /* @__PURE__ */ jsx(
38
- AntButton,
39
- {
40
- className: clsx(
41
- Button_module_default.button,
42
- Button_module_default[`size_${size}`],
43
- Button_module_default[`variant_${variant}`],
44
- Button_module_default[`shape_${shape}`],
45
- Button_module_default[`type_${type}`],
46
- `size_${size}`,
47
- `variant_${variant}`,
48
- `shape_${shape}`,
49
- `type_${type}`,
50
- className,
51
- {
52
- "tw-cursor-not-allowed": disabled,
53
- "tw-opacity-40": disabled
54
- },
55
- disabled && Button_module_default.disabled,
56
- onHoverUnderline && Button_module_default.onHoverUnderline
57
- ),
58
- "data-testid": "lumina-button",
59
- disabled,
60
- href: href || void 0,
61
- icon,
62
- loading,
63
- onClick,
64
- shape,
65
- size: sizeMap[size],
66
- type: buttonMap[variant],
67
- children
68
- }
69
- );
70
- }
71
- Button.displayName = "Button";
72
- var Button_default = Button;
73
-
74
- export {
75
- Button,
76
- Button_default
77
- };
@@ -1,64 +0,0 @@
1
- import {
2
- Tag
3
- } from "./chunk-4VZB2KR2.mjs";
4
- import {
5
- Avatar
6
- } from "./chunk-IWO2Y5QX.mjs";
7
- import {
8
- __spreadValues
9
- } from "./chunk-FWCSY2DS.mjs";
10
-
11
- // src/molecules/UserProfile/UserProfile.tsx
12
- import clsx from "clsx";
13
-
14
- // src/molecules/UserProfile/UserProfile.module.scss
15
- var UserProfile_module_default = { "userProfile": "UserProfile-module__userProfile___cRMm9", "profileContent": "UserProfile-module__profileContent___tfy8E", "profileHeader": "UserProfile-module__profileHeader___5qYbt", "profileName": "UserProfile-module__profileName___x8pg-", "profileEmail": "UserProfile-module__profileEmail___ZWKDd" };
16
-
17
- // src/molecules/UserProfile/UserProfile.tsx
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var UserProfile = ({
20
- firstName,
21
- lastName,
22
- email,
23
- profileImg,
24
- className = "",
25
- avatarHeight = 32,
26
- avatarWidth = 32,
27
- avatarSize = "normal",
28
- showTag = false,
29
- tagProps,
30
- uniqueKey
31
- }) => {
32
- const fullName = `${firstName} ${lastName}`;
33
- return /* @__PURE__ */ jsxs("div", { className: clsx(UserProfile_module_default.userProfile, className), children: [
34
- /* @__PURE__ */ jsx(
35
- Avatar,
36
- {
37
- img: profileImg,
38
- name: fullName,
39
- className: "tw-w-full tw-h-full tw-border-none",
40
- height: avatarHeight,
41
- width: avatarWidth,
42
- size: avatarSize
43
- }
44
- ),
45
- /* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileContent, children: [
46
- /* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileHeader, children: [
47
- /* @__PURE__ */ jsxs("p", { className: clsx(UserProfile_module_default.profileName, "tw-typography-body2Bold"), children: [
48
- firstName,
49
- " ",
50
- lastName
51
- ] }),
52
- showTag && tagProps && /* @__PURE__ */ jsx(Tag, __spreadValues({}, tagProps))
53
- ] }),
54
- email && /* @__PURE__ */ jsx("p", { className: clsx(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask"), children: email })
55
- ] })
56
- ] }, uniqueKey);
57
- };
58
- UserProfile.displayName = "UserProfile";
59
- var UserProfile_default = UserProfile;
60
-
61
- export {
62
- UserProfile,
63
- UserProfile_default
64
- };
@@ -1,141 +0,0 @@
1
- import {
2
- Button
3
- } from "./chunk-HISCHZ5H.mjs";
4
- import {
5
- __objRest,
6
- __spreadProps,
7
- __spreadValues
8
- } from "./chunk-FWCSY2DS.mjs";
9
-
10
- // src/atom/Modal/Modal.tsx
11
- import { Modal as AntModal } from "antd";
12
- import clsx from "clsx";
13
-
14
- // src/atom/Modal/Modal.module.scss
15
- var Modal_module_default = { "modal": "Modal-module__modal___PKrAi", "footerMargintopDisable": "Modal-module__footerMargintopDisable___4B6u-", "ant-modal-footer": "Modal-module__ant-modal-footer___HKsDR", "okBtn": "Modal-module__okBtn___Ut8e5", "cancelBtn": "Modal-module__cancelBtn___i0Rm8" };
16
-
17
- // src/atom/Modal/Modal.tsx
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var Close = (_a) => {
20
- var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
21
- return /* @__PURE__ */ jsx(
22
- "svg",
23
- __spreadProps(__spreadValues({
24
- width: size,
25
- height: size,
26
- viewBox: "0 0 14 14",
27
- fill: "none",
28
- xmlns: "http://www.w3.org/2000/svg"
29
- }, rest), {
30
- children: /* @__PURE__ */ jsx(
31
- "path",
32
- {
33
- d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L8.41421 7L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L7 8.41421L1.70711 13.7071C1.31658 14.0976 0.683417 14.0976 0.292893 13.7071C-0.0976311 13.3166 -0.0976311 12.6834 0.292893 12.2929L5.58579 7L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
34
- fill: color
35
- }
36
- )
37
- })
38
- );
39
- };
40
- var Modal = (_a) => {
41
- var _b = _a, {
42
- className = "",
43
- title = "",
44
- children,
45
- open = false,
46
- handleOk,
47
- handleCancel,
48
- okText = "",
49
- cancelText = "",
50
- closeIcon = /* @__PURE__ */ jsx(Close, { color: "#6B7280" }),
51
- bodyClassName = "modalBody",
52
- outsideClickDisable = false,
53
- hideCross = false,
54
- okButtonLoading = false,
55
- okButtonDisabled = false,
56
- variant = "primary",
57
- okBtnClasses = "",
58
- cancelButtonAnalytics = {},
59
- okButtonAnalytics = {},
60
- footerMargintopDisable = true
61
- } = _b, rest = __objRest(_b, [
62
- "className",
63
- "title",
64
- "children",
65
- "open",
66
- "handleOk",
67
- "handleCancel",
68
- "okText",
69
- "cancelText",
70
- "closeIcon",
71
- "bodyClassName",
72
- "outsideClickDisable",
73
- "hideCross",
74
- "okButtonLoading",
75
- "okButtonDisabled",
76
- "variant",
77
- "okBtnClasses",
78
- "cancelButtonAnalytics",
79
- "okButtonAnalytics",
80
- "footerMargintopDisable"
81
- ]);
82
- return /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
83
- AntModal,
84
- __spreadProps(__spreadValues({
85
- title,
86
- open,
87
- onOk: handleOk,
88
- onCancel: handleCancel,
89
- className: clsx(Modal_module_default.modal, className, {
90
- footerMargintopDisable
91
- }),
92
- okText,
93
- cancelText,
94
- closeIcon,
95
- closable: !hideCross,
96
- maskClosable: !outsideClickDisable,
97
- footer: okText || cancelText ? /* @__PURE__ */ jsxs(
98
- "div",
99
- {
100
- className: clsx({
101
- primaryFooter: variant === "primary",
102
- secondaryFooter: variant === "secondary"
103
- }),
104
- children: [
105
- cancelText && /* @__PURE__ */ jsx(
106
- Button,
107
- __spreadProps(__spreadValues({
108
- onClick: handleCancel,
109
- type: "secondary",
110
- className: "cancelBtn",
111
- variant: "subtle"
112
- }, cancelButtonAnalytics), {
113
- children: cancelText
114
- })
115
- ),
116
- okText && /* @__PURE__ */ jsx(
117
- Button,
118
- __spreadProps(__spreadValues({
119
- onClick: handleOk,
120
- className: clsx(okBtnClasses, "okBtn"),
121
- loading: okButtonLoading,
122
- disabled: okButtonDisabled
123
- }, okButtonAnalytics), {
124
- children: okText
125
- })
126
- )
127
- ]
128
- }
129
- ) : null
130
- }, rest), {
131
- children: /* @__PURE__ */ jsx("div", { className: bodyClassName, children })
132
- })
133
- ) });
134
- };
135
- Modal.displayName = "Modal";
136
- var Modal_default = Modal;
137
-
138
- export {
139
- Modal,
140
- Modal_default
141
- };
@@ -1,77 +0,0 @@
1
- // src/atom/Button/Button.tsx
2
- import { Button as AntButton } from "antd";
3
- import clsx from "clsx";
4
-
5
- // src/atom/Button/Button.module.scss
6
- var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
7
-
8
- // src/atom/Button/Button.tsx
9
- import { jsx } from "react/jsx-runtime";
10
- function Button(props) {
11
- const {
12
- // type = "primary",
13
- variant = "default",
14
- size = "normal",
15
- shape = "default",
16
- className = "",
17
- icon = null,
18
- children,
19
- onClick,
20
- href = "",
21
- disabled = false,
22
- loading = false,
23
- onHoverUnderline = false
24
- } = props;
25
- const buttonMap = {
26
- default: "primary",
27
- subtle: "default",
28
- text: "text",
29
- link: "link"
30
- };
31
- const sizeMap = {
32
- small: "small",
33
- normal: "middle",
34
- // Map "default" to "middle"
35
- large: "large"
36
- };
37
- return /* @__PURE__ */ jsx(
38
- AntButton,
39
- {
40
- className: clsx(
41
- Button_module_default.button,
42
- Button_module_default[`size_${size}`],
43
- Button_module_default[`variant_${variant}`],
44
- Button_module_default[`shape_${shape}`],
45
- Button_module_default[`type_${type}`],
46
- `size_${size}`,
47
- `variant_${variant}`,
48
- `shape_${shape}`,
49
- `type_${type}`,
50
- className,
51
- {
52
- "tw-cursor-not-allowed": disabled,
53
- "tw-opacity-40": disabled
54
- },
55
- disabled && Button_module_default.disabled,
56
- onHoverUnderline && Button_module_default.onHoverUnderline
57
- ),
58
- "data-testid": "lumina-button",
59
- disabled,
60
- href: href || void 0,
61
- icon,
62
- loading,
63
- onClick,
64
- shape,
65
- size: sizeMap[size],
66
- type: buttonMap[variant],
67
- children
68
- }
69
- );
70
- }
71
- Button.displayName = "Button";
72
- var Button_default = Button;
73
-
74
- export {
75
- Button,
76
- Button_default
77
- };
@@ -1,64 +0,0 @@
1
- import {
2
- Avatar
3
- } from "./chunk-X76GNSBB.mjs";
4
- import {
5
- Tag
6
- } from "./chunk-4VZB2KR2.mjs";
7
- import {
8
- __spreadValues
9
- } from "./chunk-FWCSY2DS.mjs";
10
-
11
- // src/molecules/UserProfile/UserProfile.tsx
12
- import clsx from "clsx";
13
-
14
- // src/molecules/UserProfile/UserProfile.module.scss
15
- var UserProfile_module_default = { "userProfile": "UserProfile-module__userProfile___cRMm9", "profileContent": "UserProfile-module__profileContent___tfy8E", "profileHeader": "UserProfile-module__profileHeader___5qYbt", "profileName": "UserProfile-module__profileName___x8pg-", "profileEmail": "UserProfile-module__profileEmail___ZWKDd" };
16
-
17
- // src/molecules/UserProfile/UserProfile.tsx
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var UserProfile = ({
20
- firstName,
21
- lastName,
22
- email,
23
- profileImg,
24
- className = "",
25
- avatarHeight = 32,
26
- avatarWidth = 32,
27
- avatarSize = "normal",
28
- showTag = false,
29
- tagProps,
30
- uniqueKey
31
- }) => {
32
- const fullName = `${firstName} ${lastName}`;
33
- return /* @__PURE__ */ jsxs("div", { className: clsx(UserProfile_module_default.userProfile, className), children: [
34
- /* @__PURE__ */ jsx(
35
- Avatar,
36
- {
37
- img: profileImg,
38
- name: fullName,
39
- className: "tw-w-full tw-h-full tw-border-none",
40
- height: avatarHeight,
41
- width: avatarWidth,
42
- size: avatarSize
43
- }
44
- ),
45
- /* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileContent, children: [
46
- /* @__PURE__ */ jsxs("div", { className: UserProfile_module_default.profileHeader, children: [
47
- /* @__PURE__ */ jsxs("p", { className: clsx(UserProfile_module_default.profileName, "tw-typography-body2Bold"), children: [
48
- firstName,
49
- " ",
50
- lastName
51
- ] }),
52
- showTag && tagProps && /* @__PURE__ */ jsx(Tag, __spreadValues({}, tagProps))
53
- ] }),
54
- email && /* @__PURE__ */ jsx("p", { className: clsx(UserProfile_module_default.profileEmail, "tw-typography-caption3", "amp-mask"), children: email })
55
- ] })
56
- ] }, uniqueKey);
57
- };
58
- UserProfile.displayName = "UserProfile";
59
- var UserProfile_default = UserProfile;
60
-
61
- export {
62
- UserProfile,
63
- UserProfile_default
64
- };
@@ -1,77 +0,0 @@
1
- // src/atom/Button/Button.tsx
2
- import { Button as AntButton } from "antd";
3
- import clsx from "clsx";
4
-
5
- // src/atom/Button/Button.module.scss
6
- var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
7
-
8
- // src/atom/Button/Button.tsx
9
- import { jsx } from "react/jsx-runtime";
10
- function Button(props) {
11
- const {
12
- // type = "primary",
13
- variant = "default",
14
- size = "normal",
15
- shape = "default",
16
- className = "",
17
- icon = null,
18
- children,
19
- onClick,
20
- href = "",
21
- disabled = false,
22
- loading = false,
23
- onHoverUnderline = false
24
- } = props;
25
- const buttonMap = {
26
- default: "primary",
27
- subtle: "default",
28
- text: "text",
29
- link: "link"
30
- };
31
- const sizeMap = {
32
- small: "small",
33
- normal: "middle",
34
- // Map "default" to "middle"
35
- large: "large"
36
- };
37
- return /* @__PURE__ */ jsx(
38
- AntButton,
39
- {
40
- className: clsx(
41
- Button_module_default.button,
42
- Button_module_default[`size_${size}`],
43
- Button_module_default[`variant_${variant}`],
44
- Button_module_default[`shape_${shape}`],
45
- Button_module_default[`type_${type}`],
46
- `size_${size}`,
47
- `variant_${variant}`,
48
- `shape_${shape}`,
49
- // `type_${type}`,
50
- className,
51
- {
52
- "tw-cursor-not-allowed": disabled,
53
- "tw-opacity-40": disabled
54
- },
55
- disabled && Button_module_default.disabled,
56
- onHoverUnderline && Button_module_default.onHoverUnderline
57
- ),
58
- "data-testid": "lumina-button",
59
- disabled,
60
- href: href || void 0,
61
- icon,
62
- loading,
63
- onClick,
64
- shape,
65
- size: sizeMap[size],
66
- type: buttonMap[variant],
67
- children
68
- }
69
- );
70
- }
71
- Button.displayName = "Button";
72
- var Button_default = Button;
73
-
74
- export {
75
- Button,
76
- Button_default
77
- };
@@ -1,141 +0,0 @@
1
- import {
2
- Button
3
- } from "./chunk-3XUHGVYA.mjs";
4
- import {
5
- __objRest,
6
- __spreadProps,
7
- __spreadValues
8
- } from "./chunk-FWCSY2DS.mjs";
9
-
10
- // src/atom/Modal/Modal.tsx
11
- import { Modal as AntModal } from "antd";
12
- import clsx from "clsx";
13
-
14
- // src/atom/Modal/Modal.module.scss
15
- var Modal_module_default = { "modal": "Modal-module__modal___PKrAi", "footerMargintopDisable": "Modal-module__footerMargintopDisable___4B6u-", "ant-modal-footer": "Modal-module__ant-modal-footer___HKsDR", "okBtn": "Modal-module__okBtn___Ut8e5", "cancelBtn": "Modal-module__cancelBtn___i0Rm8" };
16
-
17
- // src/atom/Modal/Modal.tsx
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var Close = (_a) => {
20
- var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
21
- return /* @__PURE__ */ jsx(
22
- "svg",
23
- __spreadProps(__spreadValues({
24
- width: size,
25
- height: size,
26
- viewBox: "0 0 14 14",
27
- fill: "none",
28
- xmlns: "http://www.w3.org/2000/svg"
29
- }, rest), {
30
- children: /* @__PURE__ */ jsx(
31
- "path",
32
- {
33
- d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L8.41421 7L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L7 8.41421L1.70711 13.7071C1.31658 14.0976 0.683417 14.0976 0.292893 13.7071C-0.0976311 13.3166 -0.0976311 12.6834 0.292893 12.2929L5.58579 7L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
34
- fill: color
35
- }
36
- )
37
- })
38
- );
39
- };
40
- var Modal = (_a) => {
41
- var _b = _a, {
42
- className = "",
43
- title = "",
44
- children,
45
- open = false,
46
- handleOk,
47
- handleCancel,
48
- okText = "",
49
- cancelText = "",
50
- closeIcon = /* @__PURE__ */ jsx(Close, { color: "#6B7280" }),
51
- bodyClassName = "modalBody",
52
- outsideClickDisable = false,
53
- hideCross = false,
54
- okButtonLoading = false,
55
- okButtonDisabled = false,
56
- variant = "primary",
57
- okBtnClasses = "",
58
- cancelButtonAnalytics = {},
59
- okButtonAnalytics = {},
60
- footerMargintopDisable = true
61
- } = _b, rest = __objRest(_b, [
62
- "className",
63
- "title",
64
- "children",
65
- "open",
66
- "handleOk",
67
- "handleCancel",
68
- "okText",
69
- "cancelText",
70
- "closeIcon",
71
- "bodyClassName",
72
- "outsideClickDisable",
73
- "hideCross",
74
- "okButtonLoading",
75
- "okButtonDisabled",
76
- "variant",
77
- "okBtnClasses",
78
- "cancelButtonAnalytics",
79
- "okButtonAnalytics",
80
- "footerMargintopDisable"
81
- ]);
82
- return /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
83
- AntModal,
84
- __spreadProps(__spreadValues({
85
- title,
86
- open,
87
- onOk: handleOk,
88
- onCancel: handleCancel,
89
- className: clsx(Modal_module_default.modal, className, {
90
- footerMargintopDisable
91
- }),
92
- okText,
93
- cancelText,
94
- closeIcon,
95
- closable: !hideCross,
96
- maskClosable: !outsideClickDisable,
97
- footer: okText || cancelText ? /* @__PURE__ */ jsxs(
98
- "div",
99
- {
100
- className: clsx({
101
- primaryFooter: variant === "primary",
102
- secondaryFooter: variant === "secondary"
103
- }),
104
- children: [
105
- cancelText && /* @__PURE__ */ jsx(
106
- Button,
107
- __spreadProps(__spreadValues({
108
- onClick: handleCancel,
109
- type: "secondary",
110
- className: "cancelBtn",
111
- variant: "subtle"
112
- }, cancelButtonAnalytics), {
113
- children: cancelText
114
- })
115
- ),
116
- okText && /* @__PURE__ */ jsx(
117
- Button,
118
- __spreadProps(__spreadValues({
119
- onClick: handleOk,
120
- className: clsx(okBtnClasses, "okBtn"),
121
- loading: okButtonLoading,
122
- disabled: okButtonDisabled
123
- }, okButtonAnalytics), {
124
- children: okText
125
- })
126
- )
127
- ]
128
- }
129
- ) : null
130
- }, rest), {
131
- children: /* @__PURE__ */ jsx("div", { className: bodyClassName, children })
132
- })
133
- ) });
134
- };
135
- Modal.displayName = "Modal";
136
- var Modal_default = Modal;
137
-
138
- export {
139
- Modal,
140
- Modal_default
141
- };