@itilite/lumina-ui 1.1.1-alpha.1 → 1.1.2

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 (71) hide show
  1. package/dist/atom/Avatar/Avatar.d.mts +1 -1
  2. package/dist/atom/Avatar/Avatar.d.ts +1 -1
  3. package/dist/atom/Avatar/Avatar.js +28 -28
  4. package/dist/atom/Avatar/Avatar.mjs +2 -2
  5. package/dist/atom/Button/Button.d.mts +1 -1
  6. package/dist/atom/Button/Button.d.ts +1 -1
  7. package/dist/atom/Button/Button.js +6 -6
  8. package/dist/atom/Button/Button.mjs +2 -2
  9. package/dist/atom/Checkbox/Checkbox.d.mts +1 -1
  10. package/dist/atom/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/atom/Checkbox/Checkbox.js +9 -5
  12. package/dist/atom/Checkbox/Checkbox.mjs +2 -2
  13. package/dist/atom/Modal/Modal.d.mts +1 -3
  14. package/dist/atom/Modal/Modal.d.ts +1 -3
  15. package/dist/atom/Modal/Modal.js +55 -46
  16. package/dist/atom/Modal/Modal.mjs +3 -3
  17. package/dist/atom/Radio/Radio.js +25 -18
  18. package/dist/atom/Radio/Radio.mjs +2 -2
  19. package/dist/atom/Switch/Switch.js +2 -2
  20. package/dist/atom/Switch/Switch.mjs +2 -2
  21. package/dist/atom/Tag/Tag.js +9 -5
  22. package/dist/atom/Tag/Tag.mjs +2 -2
  23. package/dist/atom/Tooltip/Tooltip.d.mts +1 -3
  24. package/dist/atom/Tooltip/Tooltip.d.ts +1 -3
  25. package/dist/atom/Tooltip/Tooltip.js +9 -15
  26. package/dist/atom/Tooltip/Tooltip.mjs +2 -2
  27. package/dist/{chunk-5AHNAQMH.mjs → chunk-AF2RKLH6.mjs} +6 -6
  28. package/dist/{chunk-HR4KEILE.mjs → chunk-UQJ3BDM4.mjs} +49 -42
  29. package/dist/index.js +125 -109
  30. package/dist/index.mjs +13 -13
  31. package/dist/styles.css +167 -163
  32. package/package.json +5 -7
  33. package/dist/Avatar.d.mts +0 -17
  34. package/dist/Avatar.d.ts +0 -17
  35. package/dist/Avatar.js +0 -121
  36. package/dist/Avatar.mjs +0 -9
  37. package/dist/Button.d.mts +0 -25
  38. package/dist/Button.d.ts +0 -25
  39. package/dist/Button.js +0 -111
  40. package/dist/Button.mjs +0 -9
  41. package/dist/Checkbox.d.mts +0 -20
  42. package/dist/Checkbox.d.ts +0 -20
  43. package/dist/Checkbox.js +0 -121
  44. package/dist/Checkbox.mjs +0 -9
  45. package/dist/Modal.d.mts +0 -25
  46. package/dist/Modal.d.ts +0 -25
  47. package/dist/Modal.js +0 -267
  48. package/dist/Modal.mjs +0 -10
  49. package/dist/Radio.d.mts +0 -17
  50. package/dist/Radio.d.ts +0 -17
  51. package/dist/Radio.js +0 -122
  52. package/dist/Radio.mjs +0 -9
  53. package/dist/Switch.d.mts +0 -13
  54. package/dist/Switch.d.ts +0 -13
  55. package/dist/Switch.js +0 -102
  56. package/dist/Switch.mjs +0 -9
  57. package/dist/Tag.d.mts +0 -13
  58. package/dist/Tag.d.ts +0 -13
  59. package/dist/Tag.js +0 -108
  60. package/dist/Tag.mjs +0 -9
  61. package/dist/Tooltip.d.mts +0 -12
  62. package/dist/Tooltip.d.ts +0 -12
  63. package/dist/Tooltip.js +0 -97
  64. package/dist/Tooltip.mjs +0 -9
  65. package/dist/chunk-AQYK4FOY.mjs +0 -60
  66. package/dist/chunk-DQCWY57N.mjs +0 -62
  67. package/dist/chunk-GUIX7A7G.mjs +0 -48
  68. package/dist/chunk-MFW6Q2WR.mjs +0 -49
  69. package/dist/chunk-POO2DKYG.mjs +0 -87
  70. package/dist/chunk-TGSZ7VMS.mjs +0 -33
  71. package/dist/chunk-WUFWIRBB.mjs +0 -47
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
8
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
9
  var __getProtoOf = Object.getPrototypeOf;
@@ -19,6 +21,7 @@ var __spreadValues = (a, b) => {
19
21
  }
20
22
  return a;
21
23
  };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
25
  var __objRest = (source, exclude) => {
23
26
  var target = {};
24
27
  for (var prop in source)
@@ -60,7 +63,6 @@ __export(Tag_exports, {
60
63
  default: () => Tag_default
61
64
  });
62
65
  module.exports = __toCommonJS(Tag_exports);
63
- var React = __toESM(require("react"));
64
66
  var import_antd = require("antd");
65
67
  var import_clsx = __toESM(require("clsx"));
66
68
 
@@ -68,6 +70,7 @@ var import_clsx = __toESM(require("clsx"));
68
70
  var Tag_module_default = { "tag": "Tag-module__tag___PIkhI", "small": "Tag-module__small___nG5XQ", "success": "Tag-module__success___99fad", "blue": "Tag-module__blue___Zky2Z", "warning": "Tag-module__warning___KXsly", "processing": "Tag-module__processing___OssXC", "bookingConfirmed": "Tag-module__bookingConfirmed___potR4", "bookingRescheduled": "Tag-module__bookingRescheduled___ynrwI", "bookingRescheduledPending": "Tag-module__bookingRescheduledPending___K3GqS", "failed": "Tag-module__failed___dvpyQ", "bookingPending": "Tag-module__bookingPending___64umX" };
69
71
 
70
72
  // src/atom/Tag/Tag.tsx
73
+ var import_jsx_runtime = require("react/jsx-runtime");
71
74
  var Tag = (_a) => {
72
75
  var _b = _a, {
73
76
  type = "success",
@@ -82,9 +85,9 @@ var Tag = (_a) => {
82
85
  "icon",
83
86
  "size"
84
87
  ]);
85
- return /* @__PURE__ */ React.createElement(
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
89
  import_antd.Tag,
87
- __spreadValues({
90
+ __spreadProps(__spreadValues({
88
91
  className: (0, import_clsx.default)(
89
92
  Tag_module_default.tag,
90
93
  size === "small" && Tag_module_default.small,
@@ -92,8 +95,9 @@ var Tag = (_a) => {
92
95
  className
93
96
  ),
94
97
  icon
95
- }, rest),
96
- title
98
+ }, rest), {
99
+ children: title
100
+ })
97
101
  );
98
102
  };
99
103
  Tag.displayName = "Tag";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tag,
3
3
  Tag_default
4
- } from "../../chunk-MFW6Q2WR.mjs";
5
- import "../../chunk-TGSZ7VMS.mjs";
4
+ } from "../../chunk-4VZB2KR2.mjs";
5
+ import "../../chunk-FWCSY2DS.mjs";
6
6
  export {
7
7
  Tag,
8
8
  Tag_default as default
@@ -1,5 +1,3 @@
1
- import * as React$1 from 'react';
2
-
3
1
  interface TooltipProps {
4
2
  children?: React.ReactNode;
5
3
  title?: string | undefined;
@@ -9,6 +7,6 @@ interface TooltipProps {
9
7
  mode?: "light" | "dark";
10
8
  }
11
9
 
12
- declare const Tooltip: React$1.FC<TooltipProps>;
10
+ declare const Tooltip: React.FC<TooltipProps>;
13
11
 
14
12
  export { Tooltip, Tooltip as default };
@@ -1,5 +1,3 @@
1
- import * as React$1 from 'react';
2
-
3
1
  interface TooltipProps {
4
2
  children?: React.ReactNode;
5
3
  title?: string | undefined;
@@ -9,6 +7,6 @@ interface TooltipProps {
9
7
  mode?: "light" | "dark";
10
8
  }
11
9
 
12
- declare const Tooltip: React$1.FC<TooltipProps>;
10
+ declare const Tooltip: React.FC<TooltipProps>;
13
11
 
14
12
  export { Tooltip, Tooltip as default };
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
- var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -19,6 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  }
20
20
  return a;
21
21
  };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
23
  var __objRest = (source, exclude) => {
23
24
  var target = {};
24
25
  for (var prop in source)
@@ -43,14 +44,6 @@ var __copyProps = (to, from, except, desc) => {
43
44
  }
44
45
  return to;
45
46
  };
46
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
47
- // If the importer is in node compatibility mode or this is not an ESM
48
- // file that has been converted to a CommonJS file using a Babel-
49
- // compatible transform (i.e. "__esModule" has not been set), then set
50
- // "default" to the CommonJS "module.exports" for node compatibility.
51
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
52
- mod
53
- ));
54
47
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
55
48
 
56
49
  // src/atom/Tooltip/Tooltip.tsx
@@ -60,13 +53,13 @@ __export(Tooltip_exports, {
60
53
  default: () => Tooltip_default
61
54
  });
62
55
  module.exports = __toCommonJS(Tooltip_exports);
63
- var React = __toESM(require("react"));
64
56
  var import_antd = require("antd");
65
57
 
66
58
  // src/atom/Tooltip/Tooltip.module.scss
67
59
  var Tooltip_module_default = { "light": "Tooltip-module__light___H5oCc" };
68
60
 
69
61
  // src/atom/Tooltip/Tooltip.tsx
62
+ var import_jsx_runtime = require("react/jsx-runtime");
70
63
  var Tooltip = (_a) => {
71
64
  var _b = _a, {
72
65
  children,
@@ -83,16 +76,17 @@ var Tooltip = (_a) => {
83
76
  "className",
84
77
  "mode"
85
78
  ]);
86
- return /* @__PURE__ */ React.createElement(
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
80
  import_antd.Tooltip,
88
- __spreadValues({
81
+ __spreadProps(__spreadValues({
89
82
  className,
90
83
  color,
91
84
  title,
92
85
  placement,
93
86
  overlayClassName: mode === "light" ? Tooltip_module_default.light : ""
94
- }, rest),
95
- children
87
+ }, rest), {
88
+ children
89
+ })
96
90
  );
97
91
  };
98
92
  Tooltip.displayName = "Tooltip";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tooltip,
3
3
  Tooltip_default
4
- } from "../../chunk-GUIX7A7G.mjs";
5
- import "../../chunk-TGSZ7VMS.mjs";
4
+ } from "../../chunk-MLCMZRUC.mjs";
5
+ import "../../chunk-FWCSY2DS.mjs";
6
6
  export {
7
7
  Tooltip,
8
8
  Tooltip_default as default
@@ -1,12 +1,12 @@
1
1
  // src/atom/Button/Button.tsx
2
- import * as React from "react";
3
2
  import { Button as AntButton } from "antd";
4
3
  import clsx from "clsx";
5
4
 
6
5
  // src/atom/Button/Button.module.scss
7
- 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" };
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", "disabled": "Button-module__disabled___nwPn4", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
8
7
 
9
8
  // src/atom/Button/Button.tsx
9
+ import { jsx } from "react/jsx-runtime";
10
10
  function Button(props) {
11
11
  const {
12
12
  type = "primary",
@@ -34,7 +34,7 @@ function Button(props) {
34
34
  // Map "default" to "middle"
35
35
  large: "large"
36
36
  };
37
- return /* @__PURE__ */ React.createElement(
37
+ return /* @__PURE__ */ jsx(
38
38
  AntButton,
39
39
  {
40
40
  className: clsx(
@@ -63,9 +63,9 @@ function Button(props) {
63
63
  onClick,
64
64
  shape,
65
65
  size: sizeMap[size],
66
- type: buttonMap[variant]
67
- },
68
- children
66
+ type: buttonMap[variant],
67
+ children
68
+ }
69
69
  );
70
70
  }
71
71
  Button.displayName = "Button";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-5AHNAQMH.mjs";
3
+ } from "./chunk-AF2RKLH6.mjs";
4
4
  import {
5
5
  __objRest,
6
+ __spreadProps,
6
7
  __spreadValues
7
- } from "./chunk-TGSZ7VMS.mjs";
8
+ } from "./chunk-FWCSY2DS.mjs";
8
9
 
9
10
  // src/atom/Modal/Modal.tsx
10
- import * as React from "react";
11
11
  import { Modal as AntModal } from "antd";
12
12
  import clsx from "clsx";
13
13
 
@@ -15,24 +15,26 @@ import clsx from "clsx";
15
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
16
 
17
17
  // src/atom/Modal/Modal.tsx
18
+ import { jsx, jsxs } from "react/jsx-runtime";
18
19
  var Close = (_a) => {
19
20
  var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
20
- return /* @__PURE__ */ React.createElement(
21
+ return /* @__PURE__ */ jsx(
21
22
  "svg",
22
- __spreadValues({
23
+ __spreadProps(__spreadValues({
23
24
  width: size,
24
25
  height: size,
25
26
  viewBox: "0 0 14 14",
26
27
  fill: "none",
27
28
  xmlns: "http://www.w3.org/2000/svg"
28
- }, rest),
29
- /* @__PURE__ */ React.createElement(
30
- "path",
31
- {
32
- 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",
33
- fill: color
34
- }
35
- )
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
+ })
36
38
  );
37
39
  };
38
40
  var Modal = (_a) => {
@@ -45,7 +47,7 @@ var Modal = (_a) => {
45
47
  handleCancel,
46
48
  okText = "",
47
49
  cancelText = "",
48
- closeIcon = /* @__PURE__ */ React.createElement(Close, { color: "#6B7280" }),
50
+ closeIcon = /* @__PURE__ */ jsx(Close, { color: "#6B7280" }),
49
51
  bodyClassName = "modalBody",
50
52
  outsideClickDisable = false,
51
53
  hideCross = false,
@@ -77,9 +79,9 @@ var Modal = (_a) => {
77
79
  "okButtonAnalytics",
78
80
  "footerMargintopDisable"
79
81
  ]);
80
- return /* @__PURE__ */ React.createElement("div", { onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ React.createElement(
82
+ return /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
81
83
  AntModal,
82
- __spreadValues({
84
+ __spreadProps(__spreadValues({
83
85
  title,
84
86
  open,
85
87
  onOk: handleOk,
@@ -92,38 +94,43 @@ var Modal = (_a) => {
92
94
  closeIcon,
93
95
  closable: !hideCross,
94
96
  maskClosable: !outsideClickDisable,
95
- footer: okText || cancelText ? /* @__PURE__ */ React.createElement(
97
+ footer: okText || cancelText ? /* @__PURE__ */ jsxs(
96
98
  "div",
97
99
  {
98
100
  className: clsx({
99
101
  primaryFooter: variant === "primary",
100
102
  secondaryFooter: variant === "secondary"
101
- })
102
- },
103
- cancelText && /* @__PURE__ */ React.createElement(
104
- Button,
105
- __spreadValues({
106
- onClick: handleCancel,
107
- type: "secondary",
108
- className: "cancelBtn",
109
- variant: "subtle"
110
- }, cancelButtonAnalytics),
111
- cancelText
112
- ),
113
- okText && /* @__PURE__ */ React.createElement(
114
- Button,
115
- __spreadValues({
116
- onClick: handleOk,
117
- className: clsx(okBtnClasses, "okBtn"),
118
- loading: okButtonLoading,
119
- disabled: okButtonDisabled
120
- }, okButtonAnalytics),
121
- okText
122
- )
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
+ }
123
129
  ) : null
124
- }, rest),
125
- /* @__PURE__ */ React.createElement("div", { className: bodyClassName }, children)
126
- ));
130
+ }, rest), {
131
+ children: /* @__PURE__ */ jsx("div", { className: bodyClassName, children })
132
+ })
133
+ ) });
127
134
  };
128
135
  Modal.displayName = "Modal";
129
136
  var Modal_default = Modal;