@itilite/lumina-ui 1.0.21 → 1.1.1-alpha.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 (52) hide show
  1. package/dist/Tag.d.mts +13 -0
  2. package/dist/Tag.d.ts +13 -0
  3. package/dist/Tag.js +108 -0
  4. package/dist/Tag.mjs +9 -0
  5. package/dist/atom/Avatar/Avatar.d.mts +17 -0
  6. package/dist/atom/Avatar/Avatar.d.ts +17 -0
  7. package/dist/atom/Avatar/Avatar.js +121 -0
  8. package/dist/atom/Avatar/Avatar.mjs +9 -0
  9. package/dist/atom/Button/Button.d.mts +25 -0
  10. package/dist/atom/Button/Button.d.ts +25 -0
  11. package/dist/atom/Button/Button.js +111 -0
  12. package/dist/atom/Button/Button.mjs +9 -0
  13. package/dist/atom/Checkbox/Checkbox.d.mts +20 -0
  14. package/dist/atom/Checkbox/Checkbox.d.ts +20 -0
  15. package/dist/atom/Checkbox/Checkbox.js +117 -0
  16. package/dist/atom/Checkbox/Checkbox.mjs +9 -0
  17. package/dist/atom/Modal/Modal.d.mts +27 -0
  18. package/dist/atom/Modal/Modal.d.ts +27 -0
  19. package/dist/atom/Modal/Modal.js +258 -0
  20. package/dist/atom/Modal/Modal.mjs +10 -0
  21. package/dist/atom/Radio/Radio.d.mts +17 -0
  22. package/dist/atom/Radio/Radio.d.ts +17 -0
  23. package/dist/atom/Radio/Radio.js +115 -0
  24. package/dist/atom/Radio/Radio.mjs +9 -0
  25. package/dist/atom/Switch/Switch.d.mts +13 -0
  26. package/dist/atom/Switch/Switch.d.ts +13 -0
  27. package/dist/atom/Switch/Switch.js +102 -0
  28. package/dist/atom/Switch/Switch.mjs +9 -0
  29. package/dist/atom/Tag/Tag.d.mts +13 -0
  30. package/dist/atom/Tag/Tag.d.ts +13 -0
  31. package/dist/atom/Tag/Tag.js +104 -0
  32. package/dist/atom/Tag/Tag.mjs +9 -0
  33. package/dist/atom/Tooltip/Tooltip.d.mts +14 -0
  34. package/dist/atom/Tooltip/Tooltip.d.ts +14 -0
  35. package/dist/atom/Tooltip/Tooltip.js +103 -0
  36. package/dist/atom/Tooltip/Tooltip.mjs +9 -0
  37. package/dist/chunk-4VZB2KR2.mjs +51 -0
  38. package/dist/chunk-5AHNAQMH.mjs +77 -0
  39. package/dist/chunk-AQYK4FOY.mjs +60 -0
  40. package/dist/chunk-DQCWY57N.mjs +62 -0
  41. package/dist/chunk-GUIX7A7G.mjs +48 -0
  42. package/dist/chunk-HR4KEILE.mjs +134 -0
  43. package/dist/chunk-MFW6Q2WR.mjs +49 -0
  44. package/dist/chunk-POO2DKYG.mjs +87 -0
  45. package/dist/chunk-TGSZ7VMS.mjs +33 -0
  46. package/dist/chunk-WUFWIRBB.mjs +47 -0
  47. package/dist/index.d.mts +8 -7
  48. package/dist/index.d.ts +8 -7
  49. package/dist/index.js +148 -121
  50. package/dist/index.mjs +17 -13
  51. package/dist/styles.css +231 -129
  52. package/package.json +11 -39
package/dist/Tag.d.mts ADDED
@@ -0,0 +1,13 @@
1
+ import * as React$1 from 'react';
2
+
3
+ interface TagProps {
4
+ type?: "success" | "warning" | "blue" | "processing" | "failed";
5
+ className?: string;
6
+ title?: string;
7
+ icon?: React.ReactElement;
8
+ size?: string;
9
+ }
10
+
11
+ declare const Tag: React$1.FC<TagProps>;
12
+
13
+ export { Tag, Tag as default };
package/dist/Tag.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import * as React$1 from 'react';
2
+
3
+ interface TagProps {
4
+ type?: "success" | "warning" | "blue" | "processing" | "failed";
5
+ className?: string;
6
+ title?: string;
7
+ icon?: React.ReactElement;
8
+ size?: string;
9
+ }
10
+
11
+ declare const Tag: React$1.FC<TagProps>;
12
+
13
+ export { Tag, Tag as default };
package/dist/Tag.js ADDED
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/atom/Tag/Tag.tsx
60
+ var Tag_exports = {};
61
+ __export(Tag_exports, {
62
+ Tag: () => Tag,
63
+ default: () => Tag_default
64
+ });
65
+ module.exports = __toCommonJS(Tag_exports);
66
+ var import_antd = require("antd");
67
+ var import_clsx = __toESM(require("clsx"));
68
+
69
+ // src/atom/Tag/Tag.module.scss
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" };
71
+
72
+ // src/atom/Tag/Tag.tsx
73
+ var import_jsx_runtime = require("react/jsx-runtime");
74
+ var Tag = (_a) => {
75
+ var _b = _a, {
76
+ type = "success",
77
+ className = "",
78
+ title = "",
79
+ icon = null,
80
+ size = ""
81
+ } = _b, rest = __objRest(_b, [
82
+ "type",
83
+ "className",
84
+ "title",
85
+ "icon",
86
+ "size"
87
+ ]);
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
+ import_antd.Tag,
90
+ __spreadProps(__spreadValues({
91
+ className: (0, import_clsx.default)(
92
+ Tag_module_default.tag,
93
+ size === "small" && Tag_module_default.small,
94
+ Tag_module_default[type],
95
+ className
96
+ ),
97
+ icon
98
+ }, rest), {
99
+ children: title
100
+ })
101
+ );
102
+ };
103
+ Tag.displayName = "Tag";
104
+ var Tag_default = Tag;
105
+ // Annotate the CommonJS export names for ESM import in node:
106
+ 0 && (module.exports = {
107
+ Tag
108
+ });
package/dist/Tag.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ Tag,
3
+ Tag_default
4
+ } from "./chunk-4VZB2KR2.mjs";
5
+ import "./chunk-FWCSY2DS.mjs";
6
+ export {
7
+ Tag,
8
+ Tag_default as default
9
+ };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+
3
+ interface AvatarProps {
4
+ img?: string;
5
+ className?: string;
6
+ name: string;
7
+ height?: number;
8
+ width?: number;
9
+ size?: "small" | "normal";
10
+ }
11
+
12
+ declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.ReactElement;
13
+ declare namespace Avatar {
14
+ var displayName: string;
15
+ }
16
+
17
+ export { Avatar, Avatar as default };
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+
3
+ interface AvatarProps {
4
+ img?: string;
5
+ className?: string;
6
+ name: string;
7
+ height?: number;
8
+ width?: number;
9
+ size?: "small" | "normal";
10
+ }
11
+
12
+ declare function Avatar({ img, className, name, height, width, size, }: AvatarProps): React.ReactElement;
13
+ declare namespace Avatar {
14
+ var displayName: string;
15
+ }
16
+
17
+ export { Avatar, Avatar as default };
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/atom/Avatar/Avatar.tsx
31
+ var Avatar_exports = {};
32
+ __export(Avatar_exports, {
33
+ Avatar: () => Avatar,
34
+ default: () => Avatar_default
35
+ });
36
+ module.exports = __toCommonJS(Avatar_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_clsx = __toESM(require("clsx"));
39
+ var COLOR_MAP = {
40
+ A: "#6455BF",
41
+ B: "#C46273",
42
+ C: "#52A79E",
43
+ D: "#DF8654",
44
+ E: "#B8639F",
45
+ F: "#6455BF",
46
+ G: "#C46273",
47
+ H: "#52A79E",
48
+ I: "#DF8654",
49
+ J: "#B8639F",
50
+ K: "#6455BF",
51
+ L: "#C46273",
52
+ M: "#52A79E",
53
+ N: "#DF8654",
54
+ O: "#B8639F",
55
+ P: "#6455BF",
56
+ Q: "#C46273",
57
+ R: "#52A79E",
58
+ S: "#DF8654",
59
+ T: "#B8639F",
60
+ U: "#6455BF",
61
+ V: "#C46273",
62
+ W: "#52A79E",
63
+ X: "#DF8654",
64
+ Y: "#B8639F",
65
+ Z: "#6455BF",
66
+ 0: "#6455BF",
67
+ 1: "#C46273",
68
+ 6: "#C46273",
69
+ 2: "#52A79E",
70
+ 7: "#52A79E",
71
+ 3: "#DF8654",
72
+ 8: "#DF8654",
73
+ 4: "#B8639F",
74
+ 9: "#B8639F"
75
+ };
76
+ function Avatar({
77
+ img,
78
+ className,
79
+ name,
80
+ height = 28,
81
+ width = 28,
82
+ size = "normal"
83
+ }) {
84
+ return /* @__PURE__ */ React.createElement(
85
+ "div",
86
+ {
87
+ style: { height, width },
88
+ className: "tw-rounded-full tw-flex tw-items-center"
89
+ },
90
+ !img && name ? /* @__PURE__ */ React.createElement(
91
+ "div",
92
+ {
93
+ style: {
94
+ backgroundColor: COLOR_MAP[name[0]],
95
+ height,
96
+ width
97
+ },
98
+ className: (0, import_clsx.default)(
99
+ { "tw-text-font-size-10": size === "small" },
100
+ `tw-text-white tw-font-medium tw-rounded-full tw-flex tw-items-center tw-justify-center`,
101
+ className
102
+ )
103
+ },
104
+ name[0]
105
+ ) : img ? /* @__PURE__ */ React.createElement(
106
+ "img",
107
+ {
108
+ src: img,
109
+ style: { height, width },
110
+ alt: name,
111
+ className: (0, import_clsx.default)("tw-rounded-full tw-object-cover", className)
112
+ }
113
+ ) : null
114
+ );
115
+ }
116
+ Avatar.displayName = "Avatar";
117
+ var Avatar_default = Avatar;
118
+ // Annotate the CommonJS export names for ESM import in node:
119
+ 0 && (module.exports = {
120
+ Avatar
121
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ Avatar,
3
+ Avatar_default
4
+ } from "../../chunk-POO2DKYG.mjs";
5
+ import "../../chunk-TGSZ7VMS.mjs";
6
+ export {
7
+ Avatar,
8
+ Avatar_default as default
9
+ };
@@ -0,0 +1,25 @@
1
+ import * as React$1 from 'react';
2
+
3
+ interface ButtonProps {
4
+ type?: "primary" | "secondary" | "critical" | undefined;
5
+ variant?: "subtle" | "text" | "link";
6
+ size?: "large" | "small";
7
+ shape?: "circle" | "default" | "round";
8
+ icon?: React.ReactNode;
9
+ iconPosition?: "start" | "end";
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
13
+ href?: string;
14
+ disabled?: boolean;
15
+ loading?: boolean;
16
+ onHoverUnderline?: boolean;
17
+ analytics?: Record<string, unknown>;
18
+ }
19
+
20
+ declare function Button(props: ButtonProps): React$1.ReactElement;
21
+ declare namespace Button {
22
+ var displayName: string;
23
+ }
24
+
25
+ export { Button, Button as default };
@@ -0,0 +1,25 @@
1
+ import * as React$1 from 'react';
2
+
3
+ interface ButtonProps {
4
+ type?: "primary" | "secondary" | "critical" | undefined;
5
+ variant?: "subtle" | "text" | "link";
6
+ size?: "large" | "small";
7
+ shape?: "circle" | "default" | "round";
8
+ icon?: React.ReactNode;
9
+ iconPosition?: "start" | "end";
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
13
+ href?: string;
14
+ disabled?: boolean;
15
+ loading?: boolean;
16
+ onHoverUnderline?: boolean;
17
+ analytics?: Record<string, unknown>;
18
+ }
19
+
20
+ declare function Button(props: ButtonProps): React$1.ReactElement;
21
+ declare namespace Button {
22
+ var displayName: string;
23
+ }
24
+
25
+ export { Button, Button as default };
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/atom/Button/Button.tsx
31
+ var Button_exports = {};
32
+ __export(Button_exports, {
33
+ Button: () => Button,
34
+ default: () => Button_default
35
+ });
36
+ module.exports = __toCommonJS(Button_exports);
37
+ var React = __toESM(require("react"));
38
+ var import_antd = require("antd");
39
+ var import_clsx = __toESM(require("clsx"));
40
+
41
+ // src/atom/Button/Button.module.scss
42
+ 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" };
43
+
44
+ // src/atom/Button/Button.tsx
45
+ function Button(props) {
46
+ const {
47
+ type = "primary",
48
+ variant = "default",
49
+ size = "normal",
50
+ shape = "default",
51
+ className = "",
52
+ icon = null,
53
+ children,
54
+ onClick,
55
+ href = "",
56
+ disabled = false,
57
+ loading = false,
58
+ onHoverUnderline = false
59
+ } = props;
60
+ const buttonMap = {
61
+ default: "primary",
62
+ subtle: "default",
63
+ text: "text",
64
+ link: "link"
65
+ };
66
+ const sizeMap = {
67
+ small: "small",
68
+ normal: "middle",
69
+ // Map "default" to "middle"
70
+ large: "large"
71
+ };
72
+ return /* @__PURE__ */ React.createElement(
73
+ import_antd.Button,
74
+ {
75
+ className: (0, import_clsx.default)(
76
+ Button_module_default.button,
77
+ Button_module_default[`size_${size}`],
78
+ Button_module_default[`variant_${variant}`],
79
+ Button_module_default[`shape_${shape}`],
80
+ Button_module_default[`type_${type}`],
81
+ `size_${size}`,
82
+ `variant_${variant}`,
83
+ `shape_${shape}`,
84
+ `type_${type}`,
85
+ className,
86
+ {
87
+ "tw-cursor-not-allowed": disabled,
88
+ "tw-opacity-40": disabled
89
+ },
90
+ disabled && Button_module_default.disabled,
91
+ onHoverUnderline && Button_module_default.onHoverUnderline
92
+ ),
93
+ "data-testid": "lumina-button",
94
+ disabled,
95
+ href: href || void 0,
96
+ icon,
97
+ loading,
98
+ onClick,
99
+ shape,
100
+ size: sizeMap[size],
101
+ type: buttonMap[variant]
102
+ },
103
+ children
104
+ );
105
+ }
106
+ Button.displayName = "Button";
107
+ var Button_default = Button;
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
110
+ Button
111
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ Button,
3
+ Button_default
4
+ } from "../../chunk-5AHNAQMH.mjs";
5
+ import "../../chunk-TGSZ7VMS.mjs";
6
+ export {
7
+ Button,
8
+ Button_default as default
9
+ };
@@ -0,0 +1,20 @@
1
+ import * as React$1 from 'react';
2
+ import { CheckboxChangeEvent } from 'antd/es/checkbox';
3
+
4
+ interface CheckboxProps {
5
+ checked?: boolean;
6
+ className?: string;
7
+ onChange?: (e: CheckboxChangeEvent) => void;
8
+ children?: React.ReactNode;
9
+ size?: "large" | "small" | "medium";
10
+ variant?: "normal" | "emphasized";
11
+ disabled?: boolean;
12
+ indeterminate?: boolean;
13
+ }
14
+
15
+ declare function Checkbox(props: CheckboxProps): React$1.ReactElement;
16
+ declare namespace Checkbox {
17
+ var displayName: string;
18
+ }
19
+
20
+ export { Checkbox, Checkbox as default };
@@ -0,0 +1,20 @@
1
+ import * as React$1 from 'react';
2
+ import { CheckboxChangeEvent } from 'antd/es/checkbox';
3
+
4
+ interface CheckboxProps {
5
+ checked?: boolean;
6
+ className?: string;
7
+ onChange?: (e: CheckboxChangeEvent) => void;
8
+ children?: React.ReactNode;
9
+ size?: "large" | "small" | "medium";
10
+ variant?: "normal" | "emphasized";
11
+ disabled?: boolean;
12
+ indeterminate?: boolean;
13
+ }
14
+
15
+ declare function Checkbox(props: CheckboxProps): React$1.ReactElement;
16
+ declare namespace Checkbox {
17
+ var displayName: string;
18
+ }
19
+
20
+ export { Checkbox, Checkbox as default };
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
31
+ }
32
+ return target;
33
+ };
34
+ var __export = (target, all) => {
35
+ for (var name in all)
36
+ __defProp(target, name, { get: all[name], enumerable: true });
37
+ };
38
+ var __copyProps = (to, from, except, desc) => {
39
+ if (from && typeof from === "object" || typeof from === "function") {
40
+ for (let key of __getOwnPropNames(from))
41
+ if (!__hasOwnProp.call(to, key) && key !== except)
42
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
43
+ }
44
+ return to;
45
+ };
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
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
55
+
56
+ // src/atom/Checkbox/Checkbox.tsx
57
+ var Checkbox_exports = {};
58
+ __export(Checkbox_exports, {
59
+ Checkbox: () => Checkbox,
60
+ default: () => Checkbox_default
61
+ });
62
+ module.exports = __toCommonJS(Checkbox_exports);
63
+ var React = __toESM(require("react"));
64
+ var import_antd = require("antd");
65
+ var import_clsx = __toESM(require("clsx"));
66
+
67
+ // src/atom/Checkbox/Checkbox.module.scss
68
+ var Checkbox_module_default = { "checkbox": "Checkbox-module__checkbox___xxg5L", "size_small": "Checkbox-module__size_small___Kknlo", "size_medium": "Checkbox-module__size_medium___V6Ah8", "size_large": "Checkbox-module__size_large___eWjFY", "type_checked": "Checkbox-module__type_checked___5742T", "disabled": "Checkbox-module__disabled___v-RG1", "type_unchecked": "Checkbox-module__type_unchecked___QFMpP", "variant_normal": "Checkbox-module__variant_normal___faYKo", "variant_emphasized": "Checkbox-module__variant_emphasized___-koYj", "variant_indeterminate": "Checkbox-module__variant_indeterminate___J5Xcc" };
69
+
70
+ // src/atom/Checkbox/Checkbox.tsx
71
+ function Checkbox(props) {
72
+ const _a = props, {
73
+ className = "",
74
+ children = null,
75
+ onChange = () => {
76
+ },
77
+ checked = false,
78
+ disabled = false,
79
+ size = "small",
80
+ variant = "normal",
81
+ indeterminate = false
82
+ } = _a, rest = __objRest(_a, [
83
+ "className",
84
+ "children",
85
+ "onChange",
86
+ "checked",
87
+ "disabled",
88
+ "size",
89
+ "variant",
90
+ "indeterminate"
91
+ ]);
92
+ return /* @__PURE__ */ React.createElement(
93
+ import_antd.Checkbox,
94
+ __spreadValues({
95
+ checked,
96
+ className: (0, import_clsx.default)(
97
+ Checkbox_module_default.checkbox,
98
+ Checkbox_module_default[`size_${size}`],
99
+ Checkbox_module_default[`variant_${variant}`],
100
+ checked ? Checkbox_module_default.type_checked : Checkbox_module_default.type_unchecked,
101
+ disabled && Checkbox_module_default.disabled,
102
+ indeterminate && Checkbox_module_default[`variant_indeterminate`],
103
+ className
104
+ ),
105
+ disabled,
106
+ indeterminate,
107
+ onChange
108
+ }, rest),
109
+ children
110
+ );
111
+ }
112
+ Checkbox.displayName = "Checkbox";
113
+ var Checkbox_default = Checkbox;
114
+ // Annotate the CommonJS export names for ESM import in node:
115
+ 0 && (module.exports = {
116
+ Checkbox
117
+ });
@@ -0,0 +1,9 @@
1
+ import {
2
+ Checkbox,
3
+ Checkbox_default
4
+ } from "../../chunk-DQCWY57N.mjs";
5
+ import "../../chunk-TGSZ7VMS.mjs";
6
+ export {
7
+ Checkbox,
8
+ Checkbox_default as default
9
+ };