@itilite/lumina-ui 1.1.0 → 1.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atom/Avatar/Avatar.d.mts +1 -1
- package/dist/atom/Avatar/Avatar.d.ts +1 -1
- package/dist/atom/Avatar/Avatar.js +28 -28
- package/dist/atom/Avatar/Avatar.mjs +2 -2
- package/dist/atom/Button/Button.d.mts +1 -1
- package/dist/atom/Button/Button.d.ts +1 -1
- package/dist/atom/Button/Button.js +5 -5
- package/dist/atom/Button/Button.mjs +2 -2
- package/dist/atom/Checkbox/Checkbox.d.mts +1 -1
- package/dist/atom/Checkbox/Checkbox.d.ts +1 -1
- package/dist/atom/Checkbox/Checkbox.js +5 -9
- package/dist/atom/Checkbox/Checkbox.mjs +2 -2
- package/dist/atom/Modal/Modal.d.mts +4 -2
- package/dist/atom/Modal/Modal.d.ts +4 -2
- package/dist/atom/Modal/Modal.js +45 -54
- package/dist/atom/Modal/Modal.mjs +3 -3
- package/dist/atom/Radio/Radio.js +18 -25
- package/dist/atom/Radio/Radio.mjs +2 -2
- package/dist/atom/Switch/Switch.js +2 -2
- package/dist/atom/Switch/Switch.mjs +2 -2
- package/dist/atom/Tag/Tag.js +5 -9
- package/dist/atom/Tag/Tag.mjs +2 -2
- package/dist/atom/Tooltip/Tooltip.d.mts +3 -1
- package/dist/atom/Tooltip/Tooltip.d.ts +3 -1
- package/dist/atom/Tooltip/Tooltip.js +15 -9
- package/dist/atom/Tooltip/Tooltip.mjs +2 -2
- package/dist/chunk-5AHNAQMH.mjs +77 -0
- package/dist/chunk-AQYK4FOY.mjs +60 -0
- package/dist/chunk-DQCWY57N.mjs +62 -0
- package/dist/chunk-GUIX7A7G.mjs +48 -0
- package/dist/chunk-HR4KEILE.mjs +134 -0
- package/dist/chunk-MFW6Q2WR.mjs +49 -0
- package/dist/chunk-POO2DKYG.mjs +87 -0
- package/dist/chunk-TGSZ7VMS.mjs +33 -0
- package/dist/chunk-WUFWIRBB.mjs +47 -0
- package/dist/index.js +108 -124
- package/dist/index.mjs +15 -15
- package/dist/styles.css +184 -184
- package/package.json +7 -5
package/dist/atom/Tag/Tag.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
6
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -21,7 +19,6 @@ var __spreadValues = (a, b) => {
|
|
|
21
19
|
}
|
|
22
20
|
return a;
|
|
23
21
|
};
|
|
24
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
22
|
var __objRest = (source, exclude) => {
|
|
26
23
|
var target = {};
|
|
27
24
|
for (var prop in source)
|
|
@@ -63,6 +60,7 @@ __export(Tag_exports, {
|
|
|
63
60
|
default: () => Tag_default
|
|
64
61
|
});
|
|
65
62
|
module.exports = __toCommonJS(Tag_exports);
|
|
63
|
+
var React = __toESM(require("react"));
|
|
66
64
|
var import_antd = require("antd");
|
|
67
65
|
var import_clsx = __toESM(require("clsx"));
|
|
68
66
|
|
|
@@ -70,7 +68,6 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
70
68
|
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
69
|
|
|
72
70
|
// src/atom/Tag/Tag.tsx
|
|
73
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
74
71
|
var Tag = (_a) => {
|
|
75
72
|
var _b = _a, {
|
|
76
73
|
type = "success",
|
|
@@ -85,9 +82,9 @@ var Tag = (_a) => {
|
|
|
85
82
|
"icon",
|
|
86
83
|
"size"
|
|
87
84
|
]);
|
|
88
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ React.createElement(
|
|
89
86
|
import_antd.Tag,
|
|
90
|
-
|
|
87
|
+
__spreadValues({
|
|
91
88
|
className: (0, import_clsx.default)(
|
|
92
89
|
Tag_module_default.tag,
|
|
93
90
|
size === "small" && Tag_module_default.small,
|
|
@@ -95,9 +92,8 @@ var Tag = (_a) => {
|
|
|
95
92
|
className
|
|
96
93
|
),
|
|
97
94
|
icon
|
|
98
|
-
}, rest),
|
|
99
|
-
|
|
100
|
-
})
|
|
95
|
+
}, rest),
|
|
96
|
+
title
|
|
101
97
|
);
|
|
102
98
|
};
|
|
103
99
|
Tag.displayName = "Tag";
|
package/dist/atom/Tag/Tag.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
1
3
|
interface TooltipProps {
|
|
2
4
|
children?: React.ReactNode;
|
|
3
5
|
title?: string | undefined;
|
|
@@ -7,6 +9,6 @@ interface TooltipProps {
|
|
|
7
9
|
mode?: "light" | "dark";
|
|
8
10
|
}
|
|
9
11
|
|
|
10
|
-
declare const Tooltip: React.FC<TooltipProps>;
|
|
12
|
+
declare const Tooltip: React$1.FC<TooltipProps>;
|
|
11
13
|
|
|
12
14
|
export { Tooltip, Tooltip as default };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
1
3
|
interface TooltipProps {
|
|
2
4
|
children?: React.ReactNode;
|
|
3
5
|
title?: string | undefined;
|
|
@@ -7,6 +9,6 @@ interface TooltipProps {
|
|
|
7
9
|
mode?: "light" | "dark";
|
|
8
10
|
}
|
|
9
11
|
|
|
10
|
-
declare const Tooltip: React.FC<TooltipProps>;
|
|
12
|
+
declare const Tooltip: React$1.FC<TooltipProps>;
|
|
11
13
|
|
|
12
14
|
export { Tooltip, Tooltip as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
6
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
10
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -19,7 +19,6 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
}
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
22
|
var __objRest = (source, exclude) => {
|
|
24
23
|
var target = {};
|
|
25
24
|
for (var prop in source)
|
|
@@ -44,6 +43,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
44
43
|
}
|
|
45
44
|
return to;
|
|
46
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
|
+
));
|
|
47
54
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
55
|
|
|
49
56
|
// src/atom/Tooltip/Tooltip.tsx
|
|
@@ -53,13 +60,13 @@ __export(Tooltip_exports, {
|
|
|
53
60
|
default: () => Tooltip_default
|
|
54
61
|
});
|
|
55
62
|
module.exports = __toCommonJS(Tooltip_exports);
|
|
63
|
+
var React = __toESM(require("react"));
|
|
56
64
|
var import_antd = require("antd");
|
|
57
65
|
|
|
58
66
|
// src/atom/Tooltip/Tooltip.module.scss
|
|
59
67
|
var Tooltip_module_default = { "light": "Tooltip-module__light___H5oCc" };
|
|
60
68
|
|
|
61
69
|
// src/atom/Tooltip/Tooltip.tsx
|
|
62
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
70
|
var Tooltip = (_a) => {
|
|
64
71
|
var _b = _a, {
|
|
65
72
|
children,
|
|
@@ -76,17 +83,16 @@ var Tooltip = (_a) => {
|
|
|
76
83
|
"className",
|
|
77
84
|
"mode"
|
|
78
85
|
]);
|
|
79
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ React.createElement(
|
|
80
87
|
import_antd.Tooltip,
|
|
81
|
-
|
|
88
|
+
__spreadValues({
|
|
82
89
|
className,
|
|
83
90
|
color,
|
|
84
91
|
title,
|
|
85
92
|
placement,
|
|
86
93
|
overlayClassName: mode === "light" ? Tooltip_module_default.light : ""
|
|
87
|
-
}, rest),
|
|
88
|
-
|
|
89
|
-
})
|
|
94
|
+
}, rest),
|
|
95
|
+
children
|
|
90
96
|
);
|
|
91
97
|
};
|
|
92
98
|
Tooltip.displayName = "Tooltip";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// src/atom/Button/Button.tsx
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Button as AntButton } from "antd";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
|
|
6
|
+
// src/atom/Button/Button.module.scss
|
|
7
|
+
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" };
|
|
8
|
+
|
|
9
|
+
// src/atom/Button/Button.tsx
|
|
10
|
+
function Button(props) {
|
|
11
|
+
const {
|
|
12
|
+
type = "primary",
|
|
13
|
+
variant = "default",
|
|
14
|
+
size = "normal",
|
|
15
|
+
shape = "default",
|
|
16
|
+
className = "",
|
|
17
|
+
icon = null,
|
|
18
|
+
children,
|
|
19
|
+
onClick,
|
|
20
|
+
href = "",
|
|
21
|
+
disabled = false,
|
|
22
|
+
loading = false,
|
|
23
|
+
onHoverUnderline = false
|
|
24
|
+
} = props;
|
|
25
|
+
const buttonMap = {
|
|
26
|
+
default: "primary",
|
|
27
|
+
subtle: "default",
|
|
28
|
+
text: "text",
|
|
29
|
+
link: "link"
|
|
30
|
+
};
|
|
31
|
+
const sizeMap = {
|
|
32
|
+
small: "small",
|
|
33
|
+
normal: "middle",
|
|
34
|
+
// Map "default" to "middle"
|
|
35
|
+
large: "large"
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ React.createElement(
|
|
38
|
+
AntButton,
|
|
39
|
+
{
|
|
40
|
+
className: clsx(
|
|
41
|
+
Button_module_default.button,
|
|
42
|
+
Button_module_default[`size_${size}`],
|
|
43
|
+
Button_module_default[`variant_${variant}`],
|
|
44
|
+
Button_module_default[`shape_${shape}`],
|
|
45
|
+
Button_module_default[`type_${type}`],
|
|
46
|
+
`size_${size}`,
|
|
47
|
+
`variant_${variant}`,
|
|
48
|
+
`shape_${shape}`,
|
|
49
|
+
`type_${type}`,
|
|
50
|
+
className,
|
|
51
|
+
{
|
|
52
|
+
"tw-cursor-not-allowed": disabled,
|
|
53
|
+
"tw-opacity-40": disabled
|
|
54
|
+
},
|
|
55
|
+
disabled && Button_module_default.disabled,
|
|
56
|
+
onHoverUnderline && Button_module_default.onHoverUnderline
|
|
57
|
+
),
|
|
58
|
+
"data-testid": "lumina-button",
|
|
59
|
+
disabled,
|
|
60
|
+
href: href || void 0,
|
|
61
|
+
icon,
|
|
62
|
+
loading,
|
|
63
|
+
onClick,
|
|
64
|
+
shape,
|
|
65
|
+
size: sizeMap[size],
|
|
66
|
+
type: buttonMap[variant]
|
|
67
|
+
},
|
|
68
|
+
children
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
Button.displayName = "Button";
|
|
72
|
+
var Button_default = Button;
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
Button,
|
|
76
|
+
Button_default
|
|
77
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-TGSZ7VMS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/atom/Radio/Radio.tsx
|
|
7
|
+
import React from "react";
|
|
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
|
+
var Radio = (_a) => {
|
|
16
|
+
var _b = _a, {
|
|
17
|
+
checked = true,
|
|
18
|
+
className = "",
|
|
19
|
+
size = "small",
|
|
20
|
+
variant = "normal",
|
|
21
|
+
children,
|
|
22
|
+
onChange = () => {
|
|
23
|
+
},
|
|
24
|
+
disabled = false,
|
|
25
|
+
extra = null
|
|
26
|
+
} = _b, rest = __objRest(_b, [
|
|
27
|
+
"checked",
|
|
28
|
+
"className",
|
|
29
|
+
"size",
|
|
30
|
+
"variant",
|
|
31
|
+
"children",
|
|
32
|
+
"onChange",
|
|
33
|
+
"disabled",
|
|
34
|
+
"extra"
|
|
35
|
+
]);
|
|
36
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
37
|
+
AntRadio,
|
|
38
|
+
__spreadValues({
|
|
39
|
+
className: clsx(
|
|
40
|
+
Radio_module_default.radio,
|
|
41
|
+
Radio_module_default[`size_${size}`],
|
|
42
|
+
Radio_module_default[`variant_${variant}`],
|
|
43
|
+
checked ? Radio_module_default.type_checked : Radio_module_default.type_unchecked,
|
|
44
|
+
disabled && Radio_module_default.disabled,
|
|
45
|
+
className
|
|
46
|
+
),
|
|
47
|
+
onChange,
|
|
48
|
+
checked,
|
|
49
|
+
disabled
|
|
50
|
+
}, rest),
|
|
51
|
+
children
|
|
52
|
+
), checked && extra);
|
|
53
|
+
};
|
|
54
|
+
Radio.displayName = "Radio";
|
|
55
|
+
var Radio_default = Radio;
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
Radio,
|
|
59
|
+
Radio_default
|
|
60
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-TGSZ7VMS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Checkbox as AntCheckbox } from "antd";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
|
|
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
|
+
|
|
14
|
+
// src/atom/Checkbox/Checkbox.tsx
|
|
15
|
+
function Checkbox(props) {
|
|
16
|
+
const _a = props, {
|
|
17
|
+
className = "",
|
|
18
|
+
children = null,
|
|
19
|
+
onChange = () => {
|
|
20
|
+
},
|
|
21
|
+
checked = false,
|
|
22
|
+
disabled = false,
|
|
23
|
+
size = "small",
|
|
24
|
+
variant = "normal",
|
|
25
|
+
indeterminate = false
|
|
26
|
+
} = _a, rest = __objRest(_a, [
|
|
27
|
+
"className",
|
|
28
|
+
"children",
|
|
29
|
+
"onChange",
|
|
30
|
+
"checked",
|
|
31
|
+
"disabled",
|
|
32
|
+
"size",
|
|
33
|
+
"variant",
|
|
34
|
+
"indeterminate"
|
|
35
|
+
]);
|
|
36
|
+
return /* @__PURE__ */ React.createElement(
|
|
37
|
+
AntCheckbox,
|
|
38
|
+
__spreadValues({
|
|
39
|
+
checked,
|
|
40
|
+
className: clsx(
|
|
41
|
+
Checkbox_module_default.checkbox,
|
|
42
|
+
Checkbox_module_default[`size_${size}`],
|
|
43
|
+
Checkbox_module_default[`variant_${variant}`],
|
|
44
|
+
checked ? Checkbox_module_default.type_checked : Checkbox_module_default.type_unchecked,
|
|
45
|
+
disabled && Checkbox_module_default.disabled,
|
|
46
|
+
indeterminate && Checkbox_module_default[`variant_indeterminate`],
|
|
47
|
+
className
|
|
48
|
+
),
|
|
49
|
+
disabled,
|
|
50
|
+
indeterminate,
|
|
51
|
+
onChange
|
|
52
|
+
}, rest),
|
|
53
|
+
children
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
Checkbox.displayName = "Checkbox";
|
|
57
|
+
var Checkbox_default = Checkbox;
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
Checkbox,
|
|
61
|
+
Checkbox_default
|
|
62
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-TGSZ7VMS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/atom/Tooltip/Tooltip.tsx
|
|
7
|
+
import * as React from "react";
|
|
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
|
+
var Tooltip = (_a) => {
|
|
15
|
+
var _b = _a, {
|
|
16
|
+
children,
|
|
17
|
+
title = "",
|
|
18
|
+
placement = "top",
|
|
19
|
+
color = "#1F2937",
|
|
20
|
+
className,
|
|
21
|
+
mode = "dark"
|
|
22
|
+
} = _b, rest = __objRest(_b, [
|
|
23
|
+
"children",
|
|
24
|
+
"title",
|
|
25
|
+
"placement",
|
|
26
|
+
"color",
|
|
27
|
+
"className",
|
|
28
|
+
"mode"
|
|
29
|
+
]);
|
|
30
|
+
return /* @__PURE__ */ React.createElement(
|
|
31
|
+
AntTooltip,
|
|
32
|
+
__spreadValues({
|
|
33
|
+
className,
|
|
34
|
+
color,
|
|
35
|
+
title,
|
|
36
|
+
placement,
|
|
37
|
+
overlayClassName: mode === "light" ? Tooltip_module_default.light : ""
|
|
38
|
+
}, rest),
|
|
39
|
+
children
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
Tooltip.displayName = "Tooltip";
|
|
43
|
+
var Tooltip_default = Tooltip;
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
Tooltip,
|
|
47
|
+
Tooltip_default
|
|
48
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button
|
|
3
|
+
} from "./chunk-5AHNAQMH.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadValues
|
|
7
|
+
} from "./chunk-TGSZ7VMS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/atom/Modal/Modal.tsx
|
|
10
|
+
import * as React from "react";
|
|
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
|
+
var Close = (_a) => {
|
|
19
|
+
var _b = _a, { size = 14, color = "#B6BAC3" } = _b, rest = __objRest(_b, ["size", "color"]);
|
|
20
|
+
return /* @__PURE__ */ React.createElement(
|
|
21
|
+
"svg",
|
|
22
|
+
__spreadValues({
|
|
23
|
+
width: size,
|
|
24
|
+
height: size,
|
|
25
|
+
viewBox: "0 0 14 14",
|
|
26
|
+
fill: "none",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
28
|
+
}, rest),
|
|
29
|
+
/* @__PURE__ */ React.createElement(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
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",
|
|
33
|
+
fill: color
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
var Modal = (_a) => {
|
|
39
|
+
var _b = _a, {
|
|
40
|
+
className = "",
|
|
41
|
+
title = "",
|
|
42
|
+
children,
|
|
43
|
+
open = false,
|
|
44
|
+
handleOk,
|
|
45
|
+
handleCancel,
|
|
46
|
+
okText = "",
|
|
47
|
+
cancelText = "",
|
|
48
|
+
closeIcon = /* @__PURE__ */ React.createElement(Close, { color: "#6B7280" }),
|
|
49
|
+
bodyClassName = "modalBody",
|
|
50
|
+
outsideClickDisable = false,
|
|
51
|
+
hideCross = false,
|
|
52
|
+
okButtonLoading = false,
|
|
53
|
+
okButtonDisabled = false,
|
|
54
|
+
variant = "primary",
|
|
55
|
+
okBtnClasses = "",
|
|
56
|
+
cancelButtonAnalytics = {},
|
|
57
|
+
okButtonAnalytics = {},
|
|
58
|
+
footerMargintopDisable = true
|
|
59
|
+
} = _b, rest = __objRest(_b, [
|
|
60
|
+
"className",
|
|
61
|
+
"title",
|
|
62
|
+
"children",
|
|
63
|
+
"open",
|
|
64
|
+
"handleOk",
|
|
65
|
+
"handleCancel",
|
|
66
|
+
"okText",
|
|
67
|
+
"cancelText",
|
|
68
|
+
"closeIcon",
|
|
69
|
+
"bodyClassName",
|
|
70
|
+
"outsideClickDisable",
|
|
71
|
+
"hideCross",
|
|
72
|
+
"okButtonLoading",
|
|
73
|
+
"okButtonDisabled",
|
|
74
|
+
"variant",
|
|
75
|
+
"okBtnClasses",
|
|
76
|
+
"cancelButtonAnalytics",
|
|
77
|
+
"okButtonAnalytics",
|
|
78
|
+
"footerMargintopDisable"
|
|
79
|
+
]);
|
|
80
|
+
return /* @__PURE__ */ React.createElement("div", { onClick: (e) => e.stopPropagation() }, /* @__PURE__ */ React.createElement(
|
|
81
|
+
AntModal,
|
|
82
|
+
__spreadValues({
|
|
83
|
+
title,
|
|
84
|
+
open,
|
|
85
|
+
onOk: handleOk,
|
|
86
|
+
onCancel: handleCancel,
|
|
87
|
+
className: clsx(Modal_module_default.modal, className, {
|
|
88
|
+
footerMargintopDisable
|
|
89
|
+
}),
|
|
90
|
+
okText,
|
|
91
|
+
cancelText,
|
|
92
|
+
closeIcon,
|
|
93
|
+
closable: !hideCross,
|
|
94
|
+
maskClosable: !outsideClickDisable,
|
|
95
|
+
footer: okText || cancelText ? /* @__PURE__ */ React.createElement(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: clsx({
|
|
99
|
+
primaryFooter: variant === "primary",
|
|
100
|
+
secondaryFooter: variant === "secondary"
|
|
101
|
+
})
|
|
102
|
+
},
|
|
103
|
+
cancelText && /* @__PURE__ */ React.createElement(
|
|
104
|
+
Button,
|
|
105
|
+
__spreadValues({
|
|
106
|
+
onClick: handleCancel,
|
|
107
|
+
type: "secondary",
|
|
108
|
+
className: "cancelBtn",
|
|
109
|
+
variant: "subtle"
|
|
110
|
+
}, cancelButtonAnalytics),
|
|
111
|
+
cancelText
|
|
112
|
+
),
|
|
113
|
+
okText && /* @__PURE__ */ React.createElement(
|
|
114
|
+
Button,
|
|
115
|
+
__spreadValues({
|
|
116
|
+
onClick: handleOk,
|
|
117
|
+
className: clsx(okBtnClasses, "okBtn"),
|
|
118
|
+
loading: okButtonLoading,
|
|
119
|
+
disabled: okButtonDisabled
|
|
120
|
+
}, okButtonAnalytics),
|
|
121
|
+
okText
|
|
122
|
+
)
|
|
123
|
+
) : null
|
|
124
|
+
}, rest),
|
|
125
|
+
/* @__PURE__ */ React.createElement("div", { className: bodyClassName }, children)
|
|
126
|
+
));
|
|
127
|
+
};
|
|
128
|
+
Modal.displayName = "Modal";
|
|
129
|
+
var Modal_default = Modal;
|
|
130
|
+
|
|
131
|
+
export {
|
|
132
|
+
Modal,
|
|
133
|
+
Modal_default
|
|
134
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "./chunk-TGSZ7VMS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/atom/Tag/Tag.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Tag as AntTag } from "antd";
|
|
9
|
+
import clsx from "clsx";
|
|
10
|
+
|
|
11
|
+
// src/atom/Tag/Tag.module.scss
|
|
12
|
+
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" };
|
|
13
|
+
|
|
14
|
+
// src/atom/Tag/Tag.tsx
|
|
15
|
+
var Tag = (_a) => {
|
|
16
|
+
var _b = _a, {
|
|
17
|
+
type = "success",
|
|
18
|
+
className = "",
|
|
19
|
+
title = "",
|
|
20
|
+
icon = null,
|
|
21
|
+
size = ""
|
|
22
|
+
} = _b, rest = __objRest(_b, [
|
|
23
|
+
"type",
|
|
24
|
+
"className",
|
|
25
|
+
"title",
|
|
26
|
+
"icon",
|
|
27
|
+
"size"
|
|
28
|
+
]);
|
|
29
|
+
return /* @__PURE__ */ React.createElement(
|
|
30
|
+
AntTag,
|
|
31
|
+
__spreadValues({
|
|
32
|
+
className: clsx(
|
|
33
|
+
Tag_module_default.tag,
|
|
34
|
+
size === "small" && Tag_module_default.small,
|
|
35
|
+
Tag_module_default[type],
|
|
36
|
+
className
|
|
37
|
+
),
|
|
38
|
+
icon
|
|
39
|
+
}, rest),
|
|
40
|
+
title
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
Tag.displayName = "Tag";
|
|
44
|
+
var Tag_default = Tag;
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
Tag,
|
|
48
|
+
Tag_default
|
|
49
|
+
};
|