@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/Switch.js
ADDED
|
@@ -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
|
+
});
|
package/dist/Switch.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface TooltipProps {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
placement?: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
|
|
5
|
+
color?: string | undefined;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
mode?: "light" | "dark";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
11
|
+
|
|
12
|
+
export { Tooltip, Tooltip as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface TooltipProps {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
placement?: "top" | "left" | "right" | "bottom" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
|
|
5
|
+
color?: string | undefined;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
mode?: "light" | "dark";
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare const Tooltip: React.FC<TooltipProps>;
|
|
11
|
+
|
|
12
|
+
export { Tooltip, Tooltip as default };
|
package/dist/Tooltip.js
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
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 __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/atom/Tooltip/Tooltip.tsx
|
|
50
|
+
var Tooltip_exports = {};
|
|
51
|
+
__export(Tooltip_exports, {
|
|
52
|
+
Tooltip: () => Tooltip,
|
|
53
|
+
default: () => Tooltip_default
|
|
54
|
+
});
|
|
55
|
+
module.exports = __toCommonJS(Tooltip_exports);
|
|
56
|
+
var import_antd = require("antd");
|
|
57
|
+
|
|
58
|
+
// src/atom/Tooltip/Tooltip.module.scss
|
|
59
|
+
var Tooltip_module_default = { "light": "Tooltip-module__light___H5oCc" };
|
|
60
|
+
|
|
61
|
+
// src/atom/Tooltip/Tooltip.tsx
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
|
+
var Tooltip = (_a) => {
|
|
64
|
+
var _b = _a, {
|
|
65
|
+
children,
|
|
66
|
+
title = "",
|
|
67
|
+
placement = "top",
|
|
68
|
+
color = "#1F2937",
|
|
69
|
+
className,
|
|
70
|
+
mode = "dark"
|
|
71
|
+
} = _b, rest = __objRest(_b, [
|
|
72
|
+
"children",
|
|
73
|
+
"title",
|
|
74
|
+
"placement",
|
|
75
|
+
"color",
|
|
76
|
+
"className",
|
|
77
|
+
"mode"
|
|
78
|
+
]);
|
|
79
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
import_antd.Tooltip,
|
|
81
|
+
__spreadProps(__spreadValues({
|
|
82
|
+
className,
|
|
83
|
+
color,
|
|
84
|
+
title,
|
|
85
|
+
placement,
|
|
86
|
+
overlayClassName: mode === "light" ? Tooltip_module_default.light : ""
|
|
87
|
+
}, rest), {
|
|
88
|
+
children
|
|
89
|
+
})
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
Tooltip.displayName = "Tooltip";
|
|
93
|
+
var Tooltip_default = Tooltip;
|
|
94
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
95
|
+
0 && (module.exports = {
|
|
96
|
+
Tooltip
|
|
97
|
+
});
|
package/dist/Tooltip.mjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/atom/Radio/Radio.tsx
|
|
8
|
+
import { Radio as AntRadio } from "antd";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
|
|
11
|
+
// src/atom/Radio/Radio.module.scss
|
|
12
|
+
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" };
|
|
13
|
+
|
|
14
|
+
// src/atom/Radio/Radio.tsx
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var Radio = (_a) => {
|
|
17
|
+
var _b = _a, {
|
|
18
|
+
checked = true,
|
|
19
|
+
className = "",
|
|
20
|
+
size = "small",
|
|
21
|
+
variant = "normal",
|
|
22
|
+
children,
|
|
23
|
+
onChange = () => {
|
|
24
|
+
},
|
|
25
|
+
disabled = false,
|
|
26
|
+
extra = null
|
|
27
|
+
} = _b, rest = __objRest(_b, [
|
|
28
|
+
"checked",
|
|
29
|
+
"className",
|
|
30
|
+
"size",
|
|
31
|
+
"variant",
|
|
32
|
+
"children",
|
|
33
|
+
"onChange",
|
|
34
|
+
"disabled",
|
|
35
|
+
"extra"
|
|
36
|
+
]);
|
|
37
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
AntRadio,
|
|
40
|
+
__spreadProps(__spreadValues({
|
|
41
|
+
className: clsx(
|
|
42
|
+
Radio_module_default.radio,
|
|
43
|
+
Radio_module_default[`size_${size}`],
|
|
44
|
+
Radio_module_default[`variant_${variant}`],
|
|
45
|
+
checked ? Radio_module_default.type_checked : Radio_module_default.type_unchecked,
|
|
46
|
+
disabled && Radio_module_default.disabled,
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
onChange,
|
|
50
|
+
checked,
|
|
51
|
+
disabled
|
|
52
|
+
}, rest), {
|
|
53
|
+
children
|
|
54
|
+
})
|
|
55
|
+
),
|
|
56
|
+
checked && extra
|
|
57
|
+
] });
|
|
58
|
+
};
|
|
59
|
+
Radio.displayName = "Radio";
|
|
60
|
+
var Radio_default = Radio;
|
|
61
|
+
|
|
62
|
+
export {
|
|
63
|
+
Radio,
|
|
64
|
+
Radio_default
|
|
65
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// src/Button/Button.tsx
|
|
1
|
+
// src/atom/Button/Button.tsx
|
|
2
2
|
import { Button as AntButton } from "antd";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
|
|
5
|
-
// src/Button/Button.module.scss
|
|
6
|
-
var Button_module_default = { "button": "Button-
|
|
5
|
+
// src/atom/Button/Button.module.scss
|
|
6
|
+
var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
|
|
7
7
|
|
|
8
|
-
// src/Button/Button.tsx
|
|
8
|
+
// src/atom/Button/Button.tsx
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
function Button(props) {
|
|
11
11
|
const {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/atom/Tooltip/Tooltip.tsx
|
|
8
|
+
import { Tooltip as AntTooltip } from "antd";
|
|
9
|
+
|
|
10
|
+
// src/atom/Tooltip/Tooltip.module.scss
|
|
11
|
+
var Tooltip_module_default = { "light": "Tooltip-module__light___H5oCc" };
|
|
12
|
+
|
|
13
|
+
// src/atom/Tooltip/Tooltip.tsx
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var Tooltip = (_a) => {
|
|
16
|
+
var _b = _a, {
|
|
17
|
+
children,
|
|
18
|
+
title = "",
|
|
19
|
+
placement = "top",
|
|
20
|
+
color = "#1F2937",
|
|
21
|
+
className,
|
|
22
|
+
mode = "dark"
|
|
23
|
+
} = _b, rest = __objRest(_b, [
|
|
24
|
+
"children",
|
|
25
|
+
"title",
|
|
26
|
+
"placement",
|
|
27
|
+
"color",
|
|
28
|
+
"className",
|
|
29
|
+
"mode"
|
|
30
|
+
]);
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
AntTooltip,
|
|
33
|
+
__spreadProps(__spreadValues({
|
|
34
|
+
className,
|
|
35
|
+
color,
|
|
36
|
+
title,
|
|
37
|
+
placement,
|
|
38
|
+
overlayClassName: mode === "light" ? Tooltip_module_default.light : ""
|
|
39
|
+
}, rest), {
|
|
40
|
+
children
|
|
41
|
+
})
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
Tooltip.displayName = "Tooltip";
|
|
45
|
+
var Tooltip_default = Tooltip;
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
Tooltip,
|
|
49
|
+
Tooltip_default
|
|
50
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/atom/Switch/Switch.tsx
|
|
7
|
+
import { Switch as AntSwitch } from "antd";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
|
|
10
|
+
// src/atom/Switch/Switch.module.scss
|
|
11
|
+
var Switch_module_default = { "switch": "Switch-module__switch___fUHZL" };
|
|
12
|
+
|
|
13
|
+
// src/atom/Switch/Switch.tsx
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
var Switch = (_a) => {
|
|
16
|
+
var _b = _a, {
|
|
17
|
+
className,
|
|
18
|
+
onChange = () => {
|
|
19
|
+
},
|
|
20
|
+
size = "default",
|
|
21
|
+
disabled = false,
|
|
22
|
+
checked = false
|
|
23
|
+
} = _b, rest = __objRest(_b, [
|
|
24
|
+
"className",
|
|
25
|
+
"onChange",
|
|
26
|
+
"size",
|
|
27
|
+
"disabled",
|
|
28
|
+
"checked"
|
|
29
|
+
]);
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
AntSwitch,
|
|
32
|
+
__spreadValues({
|
|
33
|
+
className: clsx(className, Switch_module_default.switch, Switch_module_default[size]),
|
|
34
|
+
onChange,
|
|
35
|
+
size,
|
|
36
|
+
disabled,
|
|
37
|
+
checked
|
|
38
|
+
}, rest)
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
Switch.displayName = "Switch";
|
|
42
|
+
var Switch_default = Switch;
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
Switch,
|
|
46
|
+
Switch_default
|
|
47
|
+
};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button
|
|
3
|
+
} from "./chunk-HISCHZ5H.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadProps,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
9
|
+
|
|
10
|
+
// src/atom/Modal/Modal.tsx
|
|
11
|
+
import { Modal as AntModal } from "antd";
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
|
|
14
|
+
// src/atom/Modal/Modal.module.scss
|
|
15
|
+
var Modal_module_default = { "modal": "Modal-module__modal___PKrAi", "footerMargintopDisable": "Modal-module__footerMargintopDisable___4B6u-", "ant-modal-footer": "Modal-module__ant-modal-footer___HKsDR", "okBtn": "Modal-module__okBtn___Ut8e5", "cancelBtn": "Modal-module__cancelBtn___i0Rm8" };
|
|
16
|
+
|
|
17
|
+
// src/atom/Modal/Modal.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var Close = (_a) => {
|
|
20
|
+
var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"svg",
|
|
23
|
+
__spreadProps(__spreadValues({
|
|
24
|
+
width: size,
|
|
25
|
+
height: size,
|
|
26
|
+
viewBox: "0 0 14 14",
|
|
27
|
+
fill: "none",
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
29
|
+
}, rest), {
|
|
30
|
+
children: /* @__PURE__ */ jsx(
|
|
31
|
+
"path",
|
|
32
|
+
{
|
|
33
|
+
d: "M0.292893 0.292893C0.683417 -0.0976311 1.31658 -0.0976311 1.70711 0.292893L7 5.58579L12.2929 0.292893C12.6834 -0.0976311 13.3166 -0.0976311 13.7071 0.292893C14.0976 0.683417 14.0976 1.31658 13.7071 1.70711L8.41421 7L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L7 8.41421L1.70711 13.7071C1.31658 14.0976 0.683417 14.0976 0.292893 13.7071C-0.0976311 13.3166 -0.0976311 12.6834 0.292893 12.2929L5.58579 7L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683417 0.292893 0.292893Z",
|
|
34
|
+
fill: color
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
var Modal = (_a) => {
|
|
41
|
+
var _b = _a, {
|
|
42
|
+
className = "",
|
|
43
|
+
title = "",
|
|
44
|
+
children,
|
|
45
|
+
open = false,
|
|
46
|
+
handleOk,
|
|
47
|
+
handleCancel,
|
|
48
|
+
okText = "",
|
|
49
|
+
cancelText = "",
|
|
50
|
+
closeIcon = /* @__PURE__ */ jsx(Close, { color: "#6B7280" }),
|
|
51
|
+
bodyClassName = "modalBody",
|
|
52
|
+
outsideClickDisable = false,
|
|
53
|
+
hideCross = false,
|
|
54
|
+
okButtonLoading = false,
|
|
55
|
+
okButtonDisabled = false,
|
|
56
|
+
variant = "primary",
|
|
57
|
+
okBtnClasses = "",
|
|
58
|
+
cancelButtonAnalytics = {},
|
|
59
|
+
okButtonAnalytics = {},
|
|
60
|
+
footerMargintopDisable = true
|
|
61
|
+
} = _b, rest = __objRest(_b, [
|
|
62
|
+
"className",
|
|
63
|
+
"title",
|
|
64
|
+
"children",
|
|
65
|
+
"open",
|
|
66
|
+
"handleOk",
|
|
67
|
+
"handleCancel",
|
|
68
|
+
"okText",
|
|
69
|
+
"cancelText",
|
|
70
|
+
"closeIcon",
|
|
71
|
+
"bodyClassName",
|
|
72
|
+
"outsideClickDisable",
|
|
73
|
+
"hideCross",
|
|
74
|
+
"okButtonLoading",
|
|
75
|
+
"okButtonDisabled",
|
|
76
|
+
"variant",
|
|
77
|
+
"okBtnClasses",
|
|
78
|
+
"cancelButtonAnalytics",
|
|
79
|
+
"okButtonAnalytics",
|
|
80
|
+
"footerMargintopDisable"
|
|
81
|
+
]);
|
|
82
|
+
return /* @__PURE__ */ jsx("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(
|
|
83
|
+
AntModal,
|
|
84
|
+
__spreadProps(__spreadValues({
|
|
85
|
+
title,
|
|
86
|
+
open,
|
|
87
|
+
onOk: handleOk,
|
|
88
|
+
onCancel: handleCancel,
|
|
89
|
+
className: clsx(Modal_module_default.modal, className, {
|
|
90
|
+
footerMargintopDisable
|
|
91
|
+
}),
|
|
92
|
+
okText,
|
|
93
|
+
cancelText,
|
|
94
|
+
closeIcon,
|
|
95
|
+
closable: !hideCross,
|
|
96
|
+
maskClosable: !outsideClickDisable,
|
|
97
|
+
footer: okText || cancelText ? /* @__PURE__ */ jsxs(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: clsx({
|
|
101
|
+
primaryFooter: variant === "primary",
|
|
102
|
+
secondaryFooter: variant === "secondary"
|
|
103
|
+
}),
|
|
104
|
+
children: [
|
|
105
|
+
cancelText && /* @__PURE__ */ jsx(
|
|
106
|
+
Button,
|
|
107
|
+
__spreadProps(__spreadValues({
|
|
108
|
+
onClick: handleCancel,
|
|
109
|
+
type: "secondary",
|
|
110
|
+
className: "cancelBtn",
|
|
111
|
+
variant: "subtle"
|
|
112
|
+
}, cancelButtonAnalytics), {
|
|
113
|
+
children: cancelText
|
|
114
|
+
})
|
|
115
|
+
),
|
|
116
|
+
okText && /* @__PURE__ */ jsx(
|
|
117
|
+
Button,
|
|
118
|
+
__spreadProps(__spreadValues({
|
|
119
|
+
onClick: handleOk,
|
|
120
|
+
className: clsx(okBtnClasses, "okBtn"),
|
|
121
|
+
loading: okButtonLoading,
|
|
122
|
+
disabled: okButtonDisabled
|
|
123
|
+
}, okButtonAnalytics), {
|
|
124
|
+
children: okText
|
|
125
|
+
})
|
|
126
|
+
)
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
) : null
|
|
130
|
+
}, rest), {
|
|
131
|
+
children: /* @__PURE__ */ jsx("div", { className: bodyClassName, children })
|
|
132
|
+
})
|
|
133
|
+
) });
|
|
134
|
+
};
|
|
135
|
+
Modal.displayName = "Modal";
|
|
136
|
+
var Modal_default = Modal;
|
|
137
|
+
|
|
138
|
+
export {
|
|
139
|
+
Modal,
|
|
140
|
+
Modal_default
|
|
141
|
+
};
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
__objRest,
|
|
3
3
|
__spreadProps,
|
|
4
4
|
__spreadValues
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
6
6
|
|
|
7
|
-
// src/Checkbox/Checkbox.tsx
|
|
7
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
8
8
|
import { Checkbox as AntCheckbox } from "antd";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
|
|
11
|
-
// src/Checkbox/Checkbox.module.scss
|
|
12
|
-
var Checkbox_module_default = { "checkbox": "Checkbox-
|
|
11
|
+
// src/atom/Checkbox/Checkbox.module.scss
|
|
12
|
+
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" };
|
|
13
13
|
|
|
14
|
-
// src/Checkbox/Checkbox.tsx
|
|
14
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
15
15
|
import { jsx } from "react/jsx-runtime";
|
|
16
16
|
function Checkbox(props) {
|
|
17
17
|
const _a = props, {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export { default as Button } from './Button.mjs';
|
|
2
2
|
export { default as Checkbox } from './Checkbox.mjs';
|
|
3
|
+
export { default as Modal } from './Modal.mjs';
|
|
4
|
+
export { default as Radio } from './Radio.mjs';
|
|
5
|
+
export { default as Switch } from './Switch.mjs';
|
|
6
|
+
export { default as Tooltip } from './Tooltip.mjs';
|
|
3
7
|
import 'react';
|
|
4
8
|
import 'antd/es/checkbox';
|
|
9
|
+
import 'antd/lib/radio';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export { default as Button } from './Button.js';
|
|
2
2
|
export { default as Checkbox } from './Checkbox.js';
|
|
3
|
+
export { default as Modal } from './Modal.js';
|
|
4
|
+
export { default as Radio } from './Radio.js';
|
|
5
|
+
export { default as Switch } from './Switch.js';
|
|
6
|
+
export { default as Tooltip } from './Tooltip.js';
|
|
3
7
|
import 'react';
|
|
4
8
|
import 'antd/es/checkbox';
|
|
9
|
+
import 'antd/lib/radio';
|