@itilite/lumina-ui 1.0.21 → 1.1.0
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/Tag.d.mts +13 -0
- package/dist/Tag.d.ts +13 -0
- package/dist/Tag.js +108 -0
- package/dist/Tag.mjs +9 -0
- package/dist/atom/Avatar/Avatar.d.mts +17 -0
- package/dist/atom/Avatar/Avatar.d.ts +17 -0
- package/dist/atom/Avatar/Avatar.js +121 -0
- package/dist/atom/Avatar/Avatar.mjs +9 -0
- package/dist/atom/Button/Button.d.mts +25 -0
- package/dist/atom/Button/Button.d.ts +25 -0
- package/dist/atom/Button/Button.js +111 -0
- package/dist/atom/Button/Button.mjs +9 -0
- package/dist/atom/Checkbox/Checkbox.d.mts +20 -0
- package/dist/atom/Checkbox/Checkbox.d.ts +20 -0
- package/dist/atom/Checkbox/Checkbox.js +121 -0
- package/dist/atom/Checkbox/Checkbox.mjs +9 -0
- package/dist/atom/Modal/Modal.d.mts +25 -0
- package/dist/atom/Modal/Modal.d.ts +25 -0
- package/dist/atom/Modal/Modal.js +267 -0
- package/dist/atom/Modal/Modal.mjs +10 -0
- package/dist/atom/Radio/Radio.d.mts +17 -0
- package/dist/atom/Radio/Radio.d.ts +17 -0
- package/dist/atom/Radio/Radio.js +122 -0
- package/dist/atom/Radio/Radio.mjs +9 -0
- package/dist/atom/Switch/Switch.d.mts +13 -0
- package/dist/atom/Switch/Switch.d.ts +13 -0
- package/dist/atom/Switch/Switch.js +102 -0
- package/dist/atom/Switch/Switch.mjs +9 -0
- package/dist/atom/Tag/Tag.d.mts +13 -0
- package/dist/atom/Tag/Tag.d.ts +13 -0
- package/dist/atom/Tag/Tag.js +108 -0
- package/dist/atom/Tag/Tag.mjs +9 -0
- package/dist/atom/Tooltip/Tooltip.d.mts +12 -0
- package/dist/atom/Tooltip/Tooltip.d.ts +12 -0
- package/dist/atom/Tooltip/Tooltip.js +97 -0
- package/dist/atom/Tooltip/Tooltip.mjs +9 -0
- package/dist/chunk-4VZB2KR2.mjs +51 -0
- package/dist/index.d.mts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +46 -3
- package/dist/index.mjs +10 -6
- package/dist/styles.css +125 -23
- package/package.json +5 -35
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,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.JSX.Element;
|
|
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.JSX.Element;
|
|
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 import_clsx = __toESM(require("clsx"));
|
|
38
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
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__ */ (0, import_jsx_runtime.jsx)(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
style: { height, width },
|
|
88
|
+
className: "tw-rounded-full tw-flex tw-items-center",
|
|
89
|
+
children: !img && name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
90
|
+
"div",
|
|
91
|
+
{
|
|
92
|
+
style: {
|
|
93
|
+
backgroundColor: COLOR_MAP[name[0]],
|
|
94
|
+
height,
|
|
95
|
+
width
|
|
96
|
+
},
|
|
97
|
+
className: (0, import_clsx.default)(
|
|
98
|
+
{ "tw-text-font-size-10": size === "small" },
|
|
99
|
+
`tw-text-white tw-font-medium tw-rounded-full tw-flex tw-items-center tw-justify-center`,
|
|
100
|
+
className
|
|
101
|
+
),
|
|
102
|
+
children: name[0]
|
|
103
|
+
}
|
|
104
|
+
) : img ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
105
|
+
"img",
|
|
106
|
+
{
|
|
107
|
+
src: img,
|
|
108
|
+
style: { height, width },
|
|
109
|
+
alt: name,
|
|
110
|
+
className: (0, import_clsx.default)("tw-rounded-full tw-object-cover", className)
|
|
111
|
+
}
|
|
112
|
+
) : null
|
|
113
|
+
}
|
|
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,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.JSX.Element;
|
|
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.JSX.Element;
|
|
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 import_antd = require("antd");
|
|
38
|
+
var import_clsx = __toESM(require("clsx"));
|
|
39
|
+
|
|
40
|
+
// src/atom/Button/Button.module.scss
|
|
41
|
+
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" };
|
|
42
|
+
|
|
43
|
+
// src/atom/Button/Button.tsx
|
|
44
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
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__ */ (0, import_jsx_runtime.jsx)(
|
|
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
|
+
children
|
|
103
|
+
}
|
|
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,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.JSX.Element;
|
|
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.JSX.Element;
|
|
16
|
+
declare namespace Checkbox {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { Checkbox, Checkbox as default };
|
|
@@ -0,0 +1,121 @@
|
|
|
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/Checkbox/Checkbox.tsx
|
|
60
|
+
var Checkbox_exports = {};
|
|
61
|
+
__export(Checkbox_exports, {
|
|
62
|
+
Checkbox: () => Checkbox,
|
|
63
|
+
default: () => Checkbox_default
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(Checkbox_exports);
|
|
66
|
+
var import_antd = require("antd");
|
|
67
|
+
var import_clsx = __toESM(require("clsx"));
|
|
68
|
+
|
|
69
|
+
// src/atom/Checkbox/Checkbox.module.scss
|
|
70
|
+
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" };
|
|
71
|
+
|
|
72
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
73
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
74
|
+
function Checkbox(props) {
|
|
75
|
+
const _a = props, {
|
|
76
|
+
className = "",
|
|
77
|
+
children = null,
|
|
78
|
+
onChange = () => {
|
|
79
|
+
},
|
|
80
|
+
checked = false,
|
|
81
|
+
disabled = false,
|
|
82
|
+
size = "small",
|
|
83
|
+
variant = "normal",
|
|
84
|
+
indeterminate = false
|
|
85
|
+
} = _a, rest = __objRest(_a, [
|
|
86
|
+
"className",
|
|
87
|
+
"children",
|
|
88
|
+
"onChange",
|
|
89
|
+
"checked",
|
|
90
|
+
"disabled",
|
|
91
|
+
"size",
|
|
92
|
+
"variant",
|
|
93
|
+
"indeterminate"
|
|
94
|
+
]);
|
|
95
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
+
import_antd.Checkbox,
|
|
97
|
+
__spreadProps(__spreadValues({
|
|
98
|
+
checked,
|
|
99
|
+
className: (0, import_clsx.default)(
|
|
100
|
+
Checkbox_module_default.checkbox,
|
|
101
|
+
Checkbox_module_default[`size_${size}`],
|
|
102
|
+
Checkbox_module_default[`variant_${variant}`],
|
|
103
|
+
checked ? Checkbox_module_default.type_checked : Checkbox_module_default.type_unchecked,
|
|
104
|
+
disabled && Checkbox_module_default.disabled,
|
|
105
|
+
indeterminate && Checkbox_module_default[`variant_indeterminate`],
|
|
106
|
+
className
|
|
107
|
+
),
|
|
108
|
+
disabled,
|
|
109
|
+
indeterminate,
|
|
110
|
+
onChange
|
|
111
|
+
}, rest), {
|
|
112
|
+
children
|
|
113
|
+
})
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
Checkbox.displayName = "Checkbox";
|
|
117
|
+
var Checkbox_default = Checkbox;
|
|
118
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
119
|
+
0 && (module.exports = {
|
|
120
|
+
Checkbox
|
|
121
|
+
});
|