@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface ModalProps {
|
|
2
|
+
className?: string | undefined;
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
handleOk?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
7
|
+
handleCancel?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
8
|
+
okText?: string | undefined;
|
|
9
|
+
cancelText?: string | undefined;
|
|
10
|
+
closeIcon?: React.ReactNode;
|
|
11
|
+
bodyClassName?: string | undefined;
|
|
12
|
+
outsideClickDisable?: boolean;
|
|
13
|
+
hideCross?: boolean;
|
|
14
|
+
okButtonLoading?: boolean;
|
|
15
|
+
okButtonDisabled?: boolean;
|
|
16
|
+
variant?: "primary" | "secondary";
|
|
17
|
+
okBtnClasses?: string | undefined;
|
|
18
|
+
cancelButtonAnalytics?: object | undefined;
|
|
19
|
+
okButtonAnalytics?: object | undefined;
|
|
20
|
+
footerMargintopDisable?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const Modal: React.FC<ModalProps>;
|
|
24
|
+
|
|
25
|
+
export { Modal, Modal as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface ModalProps {
|
|
2
|
+
className?: string | undefined;
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
handleOk?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
7
|
+
handleCancel?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
8
|
+
okText?: string | undefined;
|
|
9
|
+
cancelText?: string | undefined;
|
|
10
|
+
closeIcon?: React.ReactNode;
|
|
11
|
+
bodyClassName?: string | undefined;
|
|
12
|
+
outsideClickDisable?: boolean;
|
|
13
|
+
hideCross?: boolean;
|
|
14
|
+
okButtonLoading?: boolean;
|
|
15
|
+
okButtonDisabled?: boolean;
|
|
16
|
+
variant?: "primary" | "secondary";
|
|
17
|
+
okBtnClasses?: string | undefined;
|
|
18
|
+
cancelButtonAnalytics?: object | undefined;
|
|
19
|
+
okButtonAnalytics?: object | undefined;
|
|
20
|
+
footerMargintopDisable?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare const Modal: React.FC<ModalProps>;
|
|
24
|
+
|
|
25
|
+
export { Modal, Modal as default };
|
|
@@ -0,0 +1,267 @@
|
|
|
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/Modal/Modal.tsx
|
|
60
|
+
var Modal_exports = {};
|
|
61
|
+
__export(Modal_exports, {
|
|
62
|
+
Modal: () => Modal,
|
|
63
|
+
default: () => Modal_default
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(Modal_exports);
|
|
66
|
+
var import_antd2 = require("antd");
|
|
67
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
68
|
+
|
|
69
|
+
// src/atom/Modal/Modal.module.scss
|
|
70
|
+
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" };
|
|
71
|
+
|
|
72
|
+
// src/atom/Button/Button.tsx
|
|
73
|
+
var import_antd = require("antd");
|
|
74
|
+
var import_clsx = __toESM(require("clsx"));
|
|
75
|
+
|
|
76
|
+
// src/atom/Button/Button.module.scss
|
|
77
|
+
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" };
|
|
78
|
+
|
|
79
|
+
// src/atom/Button/Button.tsx
|
|
80
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
81
|
+
function Button(props) {
|
|
82
|
+
const {
|
|
83
|
+
type = "primary",
|
|
84
|
+
variant = "default",
|
|
85
|
+
size = "normal",
|
|
86
|
+
shape = "default",
|
|
87
|
+
className = "",
|
|
88
|
+
icon = null,
|
|
89
|
+
children,
|
|
90
|
+
onClick,
|
|
91
|
+
href = "",
|
|
92
|
+
disabled = false,
|
|
93
|
+
loading = false,
|
|
94
|
+
onHoverUnderline = false
|
|
95
|
+
} = props;
|
|
96
|
+
const buttonMap = {
|
|
97
|
+
default: "primary",
|
|
98
|
+
subtle: "default",
|
|
99
|
+
text: "text",
|
|
100
|
+
link: "link"
|
|
101
|
+
};
|
|
102
|
+
const sizeMap = {
|
|
103
|
+
small: "small",
|
|
104
|
+
normal: "middle",
|
|
105
|
+
// Map "default" to "middle"
|
|
106
|
+
large: "large"
|
|
107
|
+
};
|
|
108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
109
|
+
import_antd.Button,
|
|
110
|
+
{
|
|
111
|
+
className: (0, import_clsx.default)(
|
|
112
|
+
Button_module_default.button,
|
|
113
|
+
Button_module_default[`size_${size}`],
|
|
114
|
+
Button_module_default[`variant_${variant}`],
|
|
115
|
+
Button_module_default[`shape_${shape}`],
|
|
116
|
+
Button_module_default[`type_${type}`],
|
|
117
|
+
`size_${size}`,
|
|
118
|
+
`variant_${variant}`,
|
|
119
|
+
`shape_${shape}`,
|
|
120
|
+
`type_${type}`,
|
|
121
|
+
className,
|
|
122
|
+
{
|
|
123
|
+
"tw-cursor-not-allowed": disabled,
|
|
124
|
+
"tw-opacity-40": disabled
|
|
125
|
+
},
|
|
126
|
+
disabled && Button_module_default.disabled,
|
|
127
|
+
onHoverUnderline && Button_module_default.onHoverUnderline
|
|
128
|
+
),
|
|
129
|
+
"data-testid": "lumina-button",
|
|
130
|
+
disabled,
|
|
131
|
+
href: href || void 0,
|
|
132
|
+
icon,
|
|
133
|
+
loading,
|
|
134
|
+
onClick,
|
|
135
|
+
shape,
|
|
136
|
+
size: sizeMap[size],
|
|
137
|
+
type: buttonMap[variant],
|
|
138
|
+
children
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
Button.displayName = "Button";
|
|
143
|
+
|
|
144
|
+
// src/atom/Modal/Modal.tsx
|
|
145
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
146
|
+
var Close = (_a) => {
|
|
147
|
+
var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
|
|
148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
149
|
+
"svg",
|
|
150
|
+
__spreadProps(__spreadValues({
|
|
151
|
+
width: size,
|
|
152
|
+
height: size,
|
|
153
|
+
viewBox: "0 0 14 14",
|
|
154
|
+
fill: "none",
|
|
155
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
156
|
+
}, rest), {
|
|
157
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
158
|
+
"path",
|
|
159
|
+
{
|
|
160
|
+
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",
|
|
161
|
+
fill: color
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
})
|
|
165
|
+
);
|
|
166
|
+
};
|
|
167
|
+
var Modal = (_a) => {
|
|
168
|
+
var _b = _a, {
|
|
169
|
+
className = "",
|
|
170
|
+
title = "",
|
|
171
|
+
children,
|
|
172
|
+
open = false,
|
|
173
|
+
handleOk,
|
|
174
|
+
handleCancel,
|
|
175
|
+
okText = "",
|
|
176
|
+
cancelText = "",
|
|
177
|
+
closeIcon = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Close, { color: "#6B7280" }),
|
|
178
|
+
bodyClassName = "modalBody",
|
|
179
|
+
outsideClickDisable = false,
|
|
180
|
+
hideCross = false,
|
|
181
|
+
okButtonLoading = false,
|
|
182
|
+
okButtonDisabled = false,
|
|
183
|
+
variant = "primary",
|
|
184
|
+
okBtnClasses = "",
|
|
185
|
+
cancelButtonAnalytics = {},
|
|
186
|
+
okButtonAnalytics = {},
|
|
187
|
+
footerMargintopDisable = true
|
|
188
|
+
} = _b, rest = __objRest(_b, [
|
|
189
|
+
"className",
|
|
190
|
+
"title",
|
|
191
|
+
"children",
|
|
192
|
+
"open",
|
|
193
|
+
"handleOk",
|
|
194
|
+
"handleCancel",
|
|
195
|
+
"okText",
|
|
196
|
+
"cancelText",
|
|
197
|
+
"closeIcon",
|
|
198
|
+
"bodyClassName",
|
|
199
|
+
"outsideClickDisable",
|
|
200
|
+
"hideCross",
|
|
201
|
+
"okButtonLoading",
|
|
202
|
+
"okButtonDisabled",
|
|
203
|
+
"variant",
|
|
204
|
+
"okBtnClasses",
|
|
205
|
+
"cancelButtonAnalytics",
|
|
206
|
+
"okButtonAnalytics",
|
|
207
|
+
"footerMargintopDisable"
|
|
208
|
+
]);
|
|
209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
210
|
+
import_antd2.Modal,
|
|
211
|
+
__spreadProps(__spreadValues({
|
|
212
|
+
title,
|
|
213
|
+
open,
|
|
214
|
+
onOk: handleOk,
|
|
215
|
+
onCancel: handleCancel,
|
|
216
|
+
className: (0, import_clsx2.default)(Modal_module_default.modal, className, {
|
|
217
|
+
footerMargintopDisable
|
|
218
|
+
}),
|
|
219
|
+
okText,
|
|
220
|
+
cancelText,
|
|
221
|
+
closeIcon,
|
|
222
|
+
closable: !hideCross,
|
|
223
|
+
maskClosable: !outsideClickDisable,
|
|
224
|
+
footer: okText || cancelText ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
225
|
+
"div",
|
|
226
|
+
{
|
|
227
|
+
className: (0, import_clsx2.default)({
|
|
228
|
+
primaryFooter: variant === "primary",
|
|
229
|
+
secondaryFooter: variant === "secondary"
|
|
230
|
+
}),
|
|
231
|
+
children: [
|
|
232
|
+
cancelText && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
233
|
+
Button,
|
|
234
|
+
__spreadProps(__spreadValues({
|
|
235
|
+
onClick: handleCancel,
|
|
236
|
+
type: "secondary",
|
|
237
|
+
className: "cancelBtn",
|
|
238
|
+
variant: "subtle"
|
|
239
|
+
}, cancelButtonAnalytics), {
|
|
240
|
+
children: cancelText
|
|
241
|
+
})
|
|
242
|
+
),
|
|
243
|
+
okText && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
244
|
+
Button,
|
|
245
|
+
__spreadProps(__spreadValues({
|
|
246
|
+
onClick: handleOk,
|
|
247
|
+
className: (0, import_clsx2.default)(okBtnClasses, "okBtn"),
|
|
248
|
+
loading: okButtonLoading,
|
|
249
|
+
disabled: okButtonDisabled
|
|
250
|
+
}, okButtonAnalytics), {
|
|
251
|
+
children: okText
|
|
252
|
+
})
|
|
253
|
+
)
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
) : null
|
|
257
|
+
}, rest), {
|
|
258
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: bodyClassName, children })
|
|
259
|
+
})
|
|
260
|
+
) });
|
|
261
|
+
};
|
|
262
|
+
Modal.displayName = "Modal";
|
|
263
|
+
var Modal_default = Modal;
|
|
264
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
265
|
+
0 && (module.exports = {
|
|
266
|
+
Modal
|
|
267
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { RadioChangeEvent } from 'antd/lib/radio';
|
|
3
|
+
|
|
4
|
+
interface RadioProps {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
onChange?: (event: RadioChangeEvent) => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
size?: "large" | "small" | "medium";
|
|
10
|
+
variant?: "normal" | "emphasized";
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
extra?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const Radio: React__default.FC<RadioProps>;
|
|
16
|
+
|
|
17
|
+
export { Radio, Radio as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { RadioChangeEvent } from 'antd/lib/radio';
|
|
3
|
+
|
|
4
|
+
interface RadioProps {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
onChange?: (event: RadioChangeEvent) => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
size?: "large" | "small" | "medium";
|
|
10
|
+
variant?: "normal" | "emphasized";
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
extra?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const Radio: React__default.FC<RadioProps>;
|
|
16
|
+
|
|
17
|
+
export { Radio, Radio as default };
|
|
@@ -0,0 +1,122 @@
|
|
|
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/Radio/Radio.tsx
|
|
60
|
+
var Radio_exports = {};
|
|
61
|
+
__export(Radio_exports, {
|
|
62
|
+
Radio: () => Radio,
|
|
63
|
+
default: () => Radio_default
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(Radio_exports);
|
|
66
|
+
var import_antd = require("antd");
|
|
67
|
+
var import_clsx = __toESM(require("clsx"));
|
|
68
|
+
|
|
69
|
+
// src/atom/Radio/Radio.module.scss
|
|
70
|
+
var Radio_module_default = { "radio": "Radio-module__radio___1CPAk", "size_small": "Radio-module__size_small___nRXgM", "size_medium": "Radio-module__size_medium___uSzPl", "size_large": "Radio-module__size_large___ubpHs", "type_checked": "Radio-module__type_checked___BvPpu", "disabled": "Radio-module__disabled___AF98Z", "type_unchecked": "Radio-module__type_unchecked___Xrb-7", "variant_normal": "Radio-module__variant_normal___FQkTC", "variant_emphasized": "Radio-module__variant_emphasized___Fgpv6" };
|
|
71
|
+
|
|
72
|
+
// src/atom/Radio/Radio.tsx
|
|
73
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
74
|
+
var Radio = (_a) => {
|
|
75
|
+
var _b = _a, {
|
|
76
|
+
checked = true,
|
|
77
|
+
className = "",
|
|
78
|
+
size = "small",
|
|
79
|
+
variant = "normal",
|
|
80
|
+
children,
|
|
81
|
+
onChange = () => {
|
|
82
|
+
},
|
|
83
|
+
disabled = false,
|
|
84
|
+
extra = null
|
|
85
|
+
} = _b, rest = __objRest(_b, [
|
|
86
|
+
"checked",
|
|
87
|
+
"className",
|
|
88
|
+
"size",
|
|
89
|
+
"variant",
|
|
90
|
+
"children",
|
|
91
|
+
"onChange",
|
|
92
|
+
"disabled",
|
|
93
|
+
"extra"
|
|
94
|
+
]);
|
|
95
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
96
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
|
+
import_antd.Radio,
|
|
98
|
+
__spreadProps(__spreadValues({
|
|
99
|
+
className: (0, import_clsx.default)(
|
|
100
|
+
Radio_module_default.radio,
|
|
101
|
+
Radio_module_default[`size_${size}`],
|
|
102
|
+
Radio_module_default[`variant_${variant}`],
|
|
103
|
+
checked ? Radio_module_default.type_checked : Radio_module_default.type_unchecked,
|
|
104
|
+
disabled && Radio_module_default.disabled,
|
|
105
|
+
className
|
|
106
|
+
),
|
|
107
|
+
onChange,
|
|
108
|
+
checked,
|
|
109
|
+
disabled
|
|
110
|
+
}, rest), {
|
|
111
|
+
children
|
|
112
|
+
})
|
|
113
|
+
),
|
|
114
|
+
checked && extra
|
|
115
|
+
] });
|
|
116
|
+
};
|
|
117
|
+
Radio.displayName = "Radio";
|
|
118
|
+
var Radio_default = Radio;
|
|
119
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
120
|
+
0 && (module.exports = {
|
|
121
|
+
Radio
|
|
122
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface SwitchProps {
|
|
4
|
+
size?: "default" | "small";
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
onChange?: (checked: boolean, event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const Switch: React$1.FC<SwitchProps>;
|
|
12
|
+
|
|
13
|
+
export { Switch, Switch as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
interface SwitchProps {
|
|
4
|
+
size?: "default" | "small";
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
onChange?: (checked: boolean, event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const Switch: React$1.FC<SwitchProps>;
|
|
12
|
+
|
|
13
|
+
export { Switch, Switch as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
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/Switch/Switch.tsx
|
|
57
|
+
var Switch_exports = {};
|
|
58
|
+
__export(Switch_exports, {
|
|
59
|
+
Switch: () => Switch,
|
|
60
|
+
default: () => Switch_default
|
|
61
|
+
});
|
|
62
|
+
module.exports = __toCommonJS(Switch_exports);
|
|
63
|
+
var import_antd = require("antd");
|
|
64
|
+
var import_clsx = __toESM(require("clsx"));
|
|
65
|
+
|
|
66
|
+
// src/atom/Switch/Switch.module.scss
|
|
67
|
+
var Switch_module_default = { "switch": "Switch-module__switch___fUHZL" };
|
|
68
|
+
|
|
69
|
+
// src/atom/Switch/Switch.tsx
|
|
70
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
71
|
+
var Switch = (_a) => {
|
|
72
|
+
var _b = _a, {
|
|
73
|
+
className,
|
|
74
|
+
onChange = () => {
|
|
75
|
+
},
|
|
76
|
+
size = "default",
|
|
77
|
+
disabled = false,
|
|
78
|
+
checked = false
|
|
79
|
+
} = _b, rest = __objRest(_b, [
|
|
80
|
+
"className",
|
|
81
|
+
"onChange",
|
|
82
|
+
"size",
|
|
83
|
+
"disabled",
|
|
84
|
+
"checked"
|
|
85
|
+
]);
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
+
import_antd.Switch,
|
|
88
|
+
__spreadValues({
|
|
89
|
+
className: (0, import_clsx.default)(className, Switch_module_default.switch, Switch_module_default[size]),
|
|
90
|
+
onChange,
|
|
91
|
+
size,
|
|
92
|
+
disabled,
|
|
93
|
+
checked
|
|
94
|
+
}, rest)
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
Switch.displayName = "Switch";
|
|
98
|
+
var Switch_default = Switch;
|
|
99
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
100
|
+
0 && (module.exports = {
|
|
101
|
+
Switch
|
|
102
|
+
});
|
|
@@ -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 };
|
|
@@ -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 };
|