@itilite/lumina-ui 0.0.323 → 1.0.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/Button.js +4 -4
- package/dist/Button.mjs +2 -2
- package/dist/Checkbox.js +4 -4
- package/dist/Checkbox.mjs +2 -2
- package/dist/Modal.d.mts +25 -0
- package/dist/Modal.d.ts +25 -0
- package/dist/Modal.js +267 -0
- package/dist/Modal.mjs +10 -0
- package/dist/Radio.d.mts +17 -0
- package/dist/Radio.d.ts +17 -0
- package/dist/Radio.js +122 -0
- package/dist/Radio.mjs +9 -0
- package/dist/Switch.d.mts +13 -0
- package/dist/Switch.d.ts +13 -0
- package/dist/Switch.js +102 -0
- package/dist/Switch.mjs +9 -0
- package/dist/Tooltip.d.mts +12 -0
- package/dist/Tooltip.d.ts +12 -0
- package/dist/Tooltip.js +97 -0
- package/dist/Tooltip.mjs +9 -0
- package/dist/chunk-2EBPXGRY.mjs +65 -0
- package/dist/{chunk-ME35H7QC.mjs → chunk-HISCHZ5H.mjs} +4 -4
- package/dist/chunk-MLCMZRUC.mjs +50 -0
- package/dist/chunk-MNARBWAJ.mjs +47 -0
- package/dist/chunk-N355RJGH.mjs +141 -0
- package/dist/{chunk-OMYHSSPQ.mjs → chunk-UQZNUEZE.mjs} +5 -5
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +279 -10
- package/dist/index.mjs +21 -5
- package/dist/styles.css +935 -536
- package/package.json +22 -7
- /package/dist/{chunk-FUJQIYOF.mjs → chunk-FWCSY2DS.mjs} +0 -0
package/dist/Button.js
CHANGED
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// src/Button/Button.tsx
|
|
30
|
+
// src/atom/Button/Button.tsx
|
|
31
31
|
var Button_exports = {};
|
|
32
32
|
__export(Button_exports, {
|
|
33
33
|
Button: () => Button,
|
|
@@ -37,10 +37,10 @@ module.exports = __toCommonJS(Button_exports);
|
|
|
37
37
|
var import_antd = require("antd");
|
|
38
38
|
var import_clsx = __toESM(require("clsx"));
|
|
39
39
|
|
|
40
|
-
// src/Button/Button.module.scss
|
|
41
|
-
var Button_module_default = { "button": "Button-
|
|
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
42
|
|
|
43
|
-
// src/Button/Button.tsx
|
|
43
|
+
// src/atom/Button/Button.tsx
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
45
|
function Button(props) {
|
|
46
46
|
const {
|
package/dist/Button.mjs
CHANGED
package/dist/Checkbox.js
CHANGED
|
@@ -56,7 +56,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
56
56
|
));
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
|
-
// src/Checkbox/Checkbox.tsx
|
|
59
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
60
60
|
var Checkbox_exports = {};
|
|
61
61
|
__export(Checkbox_exports, {
|
|
62
62
|
Checkbox: () => Checkbox,
|
|
@@ -66,10 +66,10 @@ module.exports = __toCommonJS(Checkbox_exports);
|
|
|
66
66
|
var import_antd = require("antd");
|
|
67
67
|
var import_clsx = __toESM(require("clsx"));
|
|
68
68
|
|
|
69
|
-
// src/Checkbox/Checkbox.module.scss
|
|
70
|
-
var Checkbox_module_default = { "checkbox": "Checkbox-
|
|
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
71
|
|
|
72
|
-
// src/Checkbox/Checkbox.tsx
|
|
72
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
73
73
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
74
74
|
function Checkbox(props) {
|
|
75
75
|
const _a = props, {
|
package/dist/Checkbox.mjs
CHANGED
package/dist/Modal.d.mts
ADDED
|
@@ -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 };
|
package/dist/Modal.d.ts
ADDED
|
@@ -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 };
|
package/dist/Modal.js
ADDED
|
@@ -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
|
+
});
|
package/dist/Modal.mjs
ADDED
package/dist/Radio.d.mts
ADDED
|
@@ -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 };
|
package/dist/Radio.d.ts
ADDED
|
@@ -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 };
|
package/dist/Radio.js
ADDED
|
@@ -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
|
+
});
|
package/dist/Radio.mjs
ADDED
|
@@ -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 };
|
package/dist/Switch.d.ts
ADDED
|
@@ -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 };
|