@x-plat/design-system 0.20.0 → 0.21.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/chunk-2EGVOUGV.cjs +93 -0
- package/dist/chunk-2T3BVV7R.js +0 -0
- package/dist/chunk-3FYYFDKQ.js +159 -0
- package/dist/chunk-3M3GFSHJ.js +67 -0
- package/dist/chunk-3WBHUFOA.cjs +48 -0
- package/dist/chunk-3XYYZQR5.cjs +22 -0
- package/dist/chunk-4EF7NVAL.js +67 -0
- package/dist/chunk-4ISERXK2.cjs +1 -0
- package/dist/chunk-4KYHHJ6Z.cjs +250 -0
- package/dist/chunk-4NSRDRXC.cjs +70 -0
- package/dist/chunk-4OXMRSVE.cjs +99 -0
- package/dist/chunk-55EPYLXN.js +30 -0
- package/dist/chunk-5CE3ADO5.js +254 -0
- package/dist/chunk-5F6Y2JD6.cjs +1 -0
- package/dist/chunk-5FMTMXSP.cjs +127 -0
- package/dist/chunk-5POCKDDY.js +36 -0
- package/dist/chunk-5VDI56BV.js +33 -0
- package/dist/chunk-5WLBUPSK.js +77 -0
- package/dist/chunk-5WNNWQHD.cjs +272 -0
- package/dist/chunk-66STZB6I.cjs +404 -0
- package/dist/chunk-6AIKCZN7.js +1455 -0
- package/dist/chunk-6IUJJUVP.js +18 -0
- package/dist/chunk-6P2B3ZGP.js +79 -0
- package/dist/chunk-764ILIDG.cjs +22 -0
- package/dist/chunk-7B44DWC4.js +0 -0
- package/dist/chunk-7BE6ETFY.js +18 -0
- package/dist/chunk-7BSUS5A4.js +97 -0
- package/dist/chunk-7RPWCDEW.cjs +20 -0
- package/dist/chunk-7ULXHGLO.cjs +77 -0
- package/dist/chunk-7YOI5XOW.js +55 -0
- package/dist/chunk-AFVTM5CP.js +0 -0
- package/dist/chunk-AN2WSL3B.cjs +1 -0
- package/dist/chunk-AT5Y5GLS.cjs +118 -0
- package/dist/chunk-AWPO2FI7.js +404 -0
- package/dist/chunk-BGXHIDUR.js +103 -0
- package/dist/chunk-BPZXL5TP.js +99 -0
- package/dist/chunk-BRTS5GWV.js +275 -0
- package/dist/chunk-BS3MLZCK.cjs +97 -0
- package/dist/chunk-BSPYYE2U.js +36 -0
- package/dist/chunk-BWJAEB42.js +48 -0
- package/dist/chunk-C4RMTISI.cjs +18 -0
- package/dist/chunk-C6M4XVR7.cjs +36 -0
- package/dist/chunk-CGC4D5MP.cjs +89 -0
- package/dist/chunk-CIRQYSQW.js +70 -0
- package/dist/chunk-CLOTWJNP.cjs +310 -0
- package/dist/chunk-CS7ZY35M.cjs +49 -0
- package/dist/chunk-CUV4RLDE.js +89 -0
- package/dist/chunk-CZAMLFSE.cjs +275 -0
- package/dist/chunk-D7QZLJ3Z.cjs +18 -0
- package/dist/chunk-DMSAAZ3M.cjs +92 -0
- package/dist/chunk-DUIZC7VJ.cjs +36 -0
- package/dist/chunk-DVBF4BDH.js +43 -0
- package/dist/chunk-EETYMP6K.cjs +584 -0
- package/dist/chunk-EFQL7JPX.js +0 -0
- package/dist/chunk-EFU7IAF5.cjs +12 -0
- package/dist/chunk-F3M2H5EX.cjs +79 -0
- package/dist/chunk-F436V2SX.cjs +254 -0
- package/dist/chunk-F664X2OY.js +250 -0
- package/dist/chunk-FF7ELUQW.cjs +1 -0
- package/dist/chunk-G3HE4S3Q.cjs +296 -0
- package/dist/chunk-GOPD5KUK.js +23 -0
- package/dist/chunk-GYTB24V6.cjs +107 -0
- package/dist/chunk-GZ657SGO.js +310 -0
- package/dist/chunk-H2QN65L6.cjs +1 -0
- package/dist/chunk-H6WUT7CK.js +22 -0
- package/dist/chunk-H76OQ75T.js +49 -0
- package/dist/chunk-HA3XONYI.js +18 -0
- package/dist/chunk-HF3UFXEU.js +296 -0
- package/dist/chunk-HGA47QVV.cjs +55 -0
- package/dist/chunk-HHPPAMXF.cjs +674 -0
- package/dist/chunk-HLV2XIE2.cjs +385 -0
- package/dist/chunk-HNQGIL45.cjs +96 -0
- package/dist/chunk-HQ37R7T3.js +53 -0
- package/dist/chunk-HXUGW4RR.js +187 -0
- package/dist/chunk-HYPRLWD3.js +272 -0
- package/dist/chunk-I7TLJUTP.cjs +6 -0
- package/dist/chunk-ICTWDTKC.cjs +1 -0
- package/dist/chunk-IPYKHDP4.cjs +187 -0
- package/dist/chunk-IRKREQ2X.cjs +18 -0
- package/dist/chunk-IVJJBMRY.js +92 -0
- package/dist/chunk-JPVIVOFG.js +26 -0
- package/dist/chunk-JYNBNSNF.js +151 -0
- package/dist/chunk-JZC3BXAC.js +93 -0
- package/dist/chunk-K5XPQWXN.cjs +92 -0
- package/dist/chunk-KQ3GOMHL.js +31 -0
- package/dist/chunk-KUJH72U6.cjs +159 -0
- package/dist/chunk-KVUXLC6M.cjs +479 -0
- package/dist/chunk-KZOJN57Q.js +19 -0
- package/dist/chunk-L3XPL4NP.cjs +53 -0
- package/dist/chunk-LOEMSXYB.js +0 -0
- package/dist/chunk-LU4KBPNG.cjs +23 -0
- package/dist/chunk-MWWWPQDB.js +26 -0
- package/dist/chunk-NCBB3WUJ.js +562 -0
- package/dist/chunk-NGCZTZST.cjs +562 -0
- package/dist/chunk-NSDKALIS.cjs +67 -0
- package/dist/chunk-NZHCRLNB.cjs +26 -0
- package/dist/chunk-OL4NANHB.js +0 -0
- package/dist/chunk-OTJRNKLR.js +96 -0
- package/dist/chunk-OWWFKTSK.js +0 -0
- package/dist/chunk-P2E3PB62.cjs +99 -0
- package/dist/chunk-P2QVFR7S.js +20 -0
- package/dist/chunk-P6ZGIYY7.cjs +18 -0
- package/dist/chunk-PFGSJJRY.cjs +19 -0
- package/dist/chunk-PNIUW7AJ.cjs +32 -0
- package/dist/chunk-Q2M2ONGO.js +70 -0
- package/dist/chunk-Q4PGP5KE.cjs +562 -0
- package/dist/chunk-QAI2YQPY.cjs +51 -0
- package/dist/chunk-QCD7UEZ3.cjs +59 -0
- package/dist/chunk-QEZ4R3SK.js +6 -0
- package/dist/chunk-QKDCPM2D.cjs +23 -0
- package/dist/chunk-QRGG3V7W.cjs +59 -0
- package/dist/chunk-QURIHUEC.js +107 -0
- package/dist/chunk-QY742LWN.js +30 -0
- package/dist/chunk-QYMRGYTN.js +127 -0
- package/dist/chunk-RLKJ2RZG.js +23 -0
- package/dist/chunk-RRR5BUOM.cjs +30 -0
- package/dist/chunk-RU3FCVXM.cjs +1 -0
- package/dist/chunk-RYTDVTV2.js +32 -0
- package/dist/chunk-RYYGUYDE.js +92 -0
- package/dist/chunk-SGLP4U3Y.cjs +67 -0
- package/dist/chunk-SJC543ZK.js +71 -0
- package/dist/chunk-SLYQK4SC.js +20 -0
- package/dist/chunk-SMLCOMLS.js +2888 -0
- package/dist/chunk-SNMOPLMH.cjs +372 -0
- package/dist/chunk-TRJUJYW7.cjs +151 -0
- package/dist/chunk-TTY5PE3P.js +30 -0
- package/dist/chunk-TXARYG3J.js +22 -0
- package/dist/chunk-TYXJU4EF.js +18 -0
- package/dist/chunk-U3PC7FYZ.cjs +26 -0
- package/dist/chunk-U67JM2WL.cjs +34 -0
- package/dist/chunk-UARGO5UG.js +59 -0
- package/dist/chunk-UCYE3H3F.cjs +43 -0
- package/dist/chunk-UGEGN35F.js +118 -0
- package/dist/chunk-UHUA3GQC.cjs +30 -0
- package/dist/chunk-UJQN477L.js +59 -0
- package/dist/chunk-UMX7DTFZ.cjs +70 -0
- package/dist/chunk-UT42P54P.js +372 -0
- package/dist/chunk-V76ZRGHQ.cjs +1 -0
- package/dist/chunk-VCIK366Y.cjs +1455 -0
- package/dist/chunk-VMA74ABT.cjs +137 -0
- package/dist/chunk-VSA62N2O.js +12 -0
- package/dist/chunk-WDAFLVQK.js +479 -0
- package/dist/chunk-WHMLMAMO.js +674 -0
- package/dist/chunk-WNBLKKLM.js +0 -0
- package/dist/chunk-WQ2GY7F3.js +46 -0
- package/dist/chunk-WRLCCK3M.cjs +30 -0
- package/dist/chunk-WVCZIOLY.js +562 -0
- package/dist/chunk-WZLGJQLW.js +385 -0
- package/dist/chunk-XB6FEBK6.js +34 -0
- package/dist/chunk-XMERDSRE.js +75 -0
- package/dist/chunk-XMLFKZYY.js +137 -0
- package/dist/chunk-XMM52J3T.js +584 -0
- package/dist/chunk-XZ7C5CGB.cjs +103 -0
- package/dist/chunk-YGFBAOKX.js +51 -0
- package/dist/chunk-YIN552MF.cjs +20 -0
- package/dist/chunk-YLC42E65.cjs +31 -0
- package/dist/chunk-YOTXRYJL.cjs +46 -0
- package/dist/chunk-ZAUGJZK7.js +99 -0
- package/dist/chunk-ZIZOQTDG.cjs +75 -0
- package/dist/chunk-ZMSV5VZI.cjs +2888 -0
- package/dist/chunk-ZN6MLZAE.cjs +71 -0
- package/dist/chunk-ZNCT6HXA.cjs +33 -0
- package/dist/components/Accordion/index.cjs +5 -1036
- package/dist/components/Accordion/index.js +5 -999
- package/dist/components/Alert/index.cjs +4 -69
- package/dist/components/Alert/index.js +4 -42
- package/dist/components/AutoResizeTextArea/index.cjs +6 -260
- package/dist/components/AutoResizeTextArea/index.js +6 -223
- package/dist/components/Avatar/index.cjs +4 -65
- package/dist/components/Avatar/index.js +4 -38
- package/dist/components/Badge/index.cjs +6 -69
- package/dist/components/Badge/index.js +5 -40
- package/dist/components/Box/index.cjs +4 -58
- package/dist/components/Box/index.js +4 -31
- package/dist/components/Breadcrumb/index.cjs +4 -42
- package/dist/components/Breadcrumb/index.js +3 -14
- package/dist/components/Button/index.cjs +5 -65
- package/dist/components/Button/index.js +5 -38
- package/dist/components/Calendar/index.cjs +6 -1317
- package/dist/components/Calendar/index.js +10 -1281
- package/dist/components/CardTab/index.cjs +4 -120
- package/dist/components/CardTab/index.js +4 -83
- package/dist/components/Chart/index.cjs +5 -708
- package/dist/components/Chart/index.js +4 -670
- package/dist/components/ChatInput/index.cjs +9 -390
- package/dist/components/ChatInput/index.js +9 -353
- package/dist/components/CheckBox/index.cjs +20 -1125
- package/dist/components/CheckBox/index.js +17 -1095
- package/dist/components/Chip/index.cjs +5 -55
- package/dist/components/Chip/index.js +5 -28
- package/dist/components/DatePicker/index.cjs +16 -2136
- package/dist/components/DatePicker/index.js +19 -2099
- package/dist/components/Divider/index.cjs +4 -58
- package/dist/components/Divider/index.js +4 -31
- package/dist/components/Drawer/index.cjs +5 -190
- package/dist/components/Drawer/index.js +5 -153
- package/dist/components/Dropdown/index.cjs +7 -375
- package/dist/components/Dropdown/index.js +7 -338
- package/dist/components/Editor/index.cjs +6 -1486
- package/dist/components/Editor/index.css +53 -0
- package/dist/components/Editor/index.d.cts +13 -0
- package/dist/components/Editor/index.d.ts +13 -0
- package/dist/components/Editor/index.js +6 -1453
- package/dist/components/EmptyState/index.cjs +4 -42
- package/dist/components/EmptyState/index.js +3 -14
- package/dist/components/FieldMessage/index.cjs +7 -182
- package/dist/components/FieldMessage/index.js +8 -154
- package/dist/components/FileUpload/index.cjs +7 -1171
- package/dist/components/FileUpload/index.js +7 -1134
- package/dist/components/HtmlTypeWriter/index.cjs +3 -171
- package/dist/components/HtmlTypeWriter/index.js +3 -133
- package/dist/components/IconButton/index.cjs +4 -65
- package/dist/components/IconButton/index.js +4 -38
- package/dist/components/ImageSelector/index.cjs +8 -1214
- package/dist/components/ImageSelector/index.js +8 -1177
- package/dist/components/Input/index.cjs +7 -429
- package/dist/components/Input/index.js +8 -392
- package/dist/components/Link/index.cjs +4 -61
- package/dist/components/Link/index.js +4 -34
- package/dist/components/LinkButton/index.cjs +5 -61
- package/dist/components/LinkButton/index.js +5 -34
- package/dist/components/Modal/index.cjs +5 -190
- package/dist/components/Modal/index.js +5 -153
- package/dist/components/NotificationBadge/index.cjs +5 -68
- package/dist/components/NotificationBadge/index.js +5 -40
- package/dist/components/Pagination/index.cjs +6 -1034
- package/dist/components/Pagination/index.js +6 -1007
- package/dist/components/PopOver/index.cjs +7 -363
- package/dist/components/PopOver/index.js +7 -326
- package/dist/components/Progress/index.cjs +5 -84
- package/dist/components/Progress/index.js +5 -57
- package/dist/components/Radio/index.cjs +7 -274
- package/dist/components/Radio/index.js +8 -237
- package/dist/components/Select/index.cjs +10 -1577
- package/dist/components/Select/index.js +11 -1540
- package/dist/components/Skeleton/index.cjs +4 -71
- package/dist/components/Skeleton/index.js +4 -44
- package/dist/components/Spinner/index.cjs +5 -88
- package/dist/components/Spinner/index.js +5 -61
- package/dist/components/Stat/index.cjs +5 -81
- package/dist/components/Stat/index.js +5 -54
- package/dist/components/Steps/index.cjs +7 -968
- package/dist/components/Steps/index.js +7 -941
- package/dist/components/Swiper/index.cjs +4 -357
- package/dist/components/Swiper/index.js +4 -320
- package/dist/components/Switch/index.cjs +7 -252
- package/dist/components/Switch/index.js +7 -215
- package/dist/components/Tab/index.cjs +4 -144
- package/dist/components/Tab/index.js +4 -107
- package/dist/components/Table/index.cjs +4 -337
- package/dist/components/Table/index.js +8 -300
- package/dist/components/Tag/index.cjs +6 -969
- package/dist/components/Tag/index.js +6 -942
- package/dist/components/TextArea/index.cjs +6 -229
- package/dist/components/TextArea/index.js +6 -192
- package/dist/components/TimePicker/index.cjs +9 -579
- package/dist/components/TimePicker/index.js +9 -542
- package/dist/components/Toast/index.cjs +5 -146
- package/dist/components/Toast/index.js +5 -108
- package/dist/components/ToggleChip/index.cjs +5 -66
- package/dist/components/ToggleChip/index.js +5 -39
- package/dist/components/Tooltip/index.cjs +6 -204
- package/dist/components/Tooltip/index.js +6 -167
- package/dist/components/Tour/index.cjs +6 -414
- package/dist/components/Tour/index.js +6 -377
- package/dist/components/Video/index.cjs +7 -796
- package/dist/components/Video/index.js +7 -759
- package/dist/components/index.cjs +140 -8342
- package/dist/components/index.js +190 -8288
- package/dist/index.cjs +903 -13318
- package/dist/index.js +524 -12526
- package/dist/layout/Grid/FullGrid/index.cjs +4 -46
- package/dist/layout/Grid/FullGrid/index.js +3 -18
- package/dist/layout/Grid/FullScreen/index.cjs +4 -46
- package/dist/layout/Grid/FullScreen/index.js +3 -18
- package/dist/layout/Grid/Item/index.cjs +5 -68
- package/dist/layout/Grid/Item/index.js +5 -41
- package/dist/layout/Grid/index.cjs +14 -109
- package/dist/layout/Grid/index.js +14 -79
- package/dist/layout/Header/index.cjs +4 -44
- package/dist/layout/Header/index.js +3 -16
- package/dist/layout/Layout/index.cjs +4 -42
- package/dist/layout/Layout/index.js +3 -14
- package/dist/layout/SideBar/index.cjs +6 -96
- package/dist/layout/SideBar/index.js +6 -57
- package/dist/layout/index.cjs +38 -209
- package/dist/layout/index.js +27 -153
- package/dist/tokens/index.cjs +627 -6119
- package/dist/tokens/index.js +324 -5489
- package/guidelines/components/editor.md +3 -0
- package/guidelines/setup.md +7 -0
- package/package.json +6 -3
|
@@ -1,68 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
__export(Avatar_exports, {
|
|
23
|
-
Avatar: () => Avatar_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Avatar_exports);
|
|
3
|
+
var _chunkRRR5BUOMcjs = require('../../chunk-RRR5BUOM.cjs');
|
|
4
|
+
require('../../chunk-PFGSJJRY.cjs');
|
|
26
5
|
|
|
27
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
|
28
|
-
function r(e) {
|
|
29
|
-
var t, f, n = "";
|
|
30
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
31
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
32
|
-
var o = e.length;
|
|
33
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
34
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
function clsx() {
|
|
38
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
39
|
-
return n;
|
|
40
|
-
}
|
|
41
|
-
var clsx_default = clsx;
|
|
42
6
|
|
|
43
|
-
|
|
44
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
var CATEGORICAL_COUNT = 8;
|
|
46
|
-
var getColorIndex = (name) => {
|
|
47
|
-
if (!name) return 1;
|
|
48
|
-
const code = name.charCodeAt(0) || 0;
|
|
49
|
-
return code % CATEGORICAL_COUNT + 1;
|
|
50
|
-
};
|
|
51
|
-
var Avatar = (props) => {
|
|
52
|
-
const {
|
|
53
|
-
src,
|
|
54
|
-
alt,
|
|
55
|
-
name,
|
|
56
|
-
size = "md"
|
|
57
|
-
} = props;
|
|
58
|
-
const fullInitials = name ? name.split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase() : "";
|
|
59
|
-
const initials = size === "sm" ? fullInitials.slice(0, 1) : fullInitials;
|
|
60
|
-
const catIndex = getColorIndex(name || "");
|
|
61
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx_default("lib-xplat-avatar", size), children: src ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src, alt: alt || name || "avatar" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx_default("fallback", `cat-${catIndex}`), children: initials || /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) }) });
|
|
62
|
-
};
|
|
63
|
-
Avatar.displayName = "Avatar";
|
|
64
|
-
var Avatar_default = Avatar;
|
|
65
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
-
0 && (module.exports = {
|
|
67
|
-
Avatar
|
|
68
|
-
});
|
|
7
|
+
exports.Avatar = _chunkRRR5BUOMcjs.Avatar_default;
|
|
@@ -1,41 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
var clsx_default = clsx;
|
|
16
|
-
|
|
17
|
-
// src/components/Avatar/Avatar.tsx
|
|
18
|
-
import { jsx } from "react/jsx-runtime";
|
|
19
|
-
var CATEGORICAL_COUNT = 8;
|
|
20
|
-
var getColorIndex = (name) => {
|
|
21
|
-
if (!name) return 1;
|
|
22
|
-
const code = name.charCodeAt(0) || 0;
|
|
23
|
-
return code % CATEGORICAL_COUNT + 1;
|
|
24
|
-
};
|
|
25
|
-
var Avatar = (props) => {
|
|
26
|
-
const {
|
|
27
|
-
src,
|
|
28
|
-
alt,
|
|
29
|
-
name,
|
|
30
|
-
size = "md"
|
|
31
|
-
} = props;
|
|
32
|
-
const fullInitials = name ? name.split(" ").map((s) => s[0]).join("").slice(0, 2).toUpperCase() : "";
|
|
33
|
-
const initials = size === "sm" ? fullInitials.slice(0, 1) : fullInitials;
|
|
34
|
-
const catIndex = getColorIndex(name || "");
|
|
35
|
-
return /* @__PURE__ */ jsx("div", { className: clsx_default("lib-xplat-avatar", size), children: src ? /* @__PURE__ */ jsx("img", { src, alt: alt || name || "avatar" }) : /* @__PURE__ */ jsx("div", { className: clsx_default("fallback", `cat-${catIndex}`), children: initials || /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) }) });
|
|
36
|
-
};
|
|
37
|
-
Avatar.displayName = "Avatar";
|
|
38
|
-
var Avatar_default = Avatar;
|
|
1
|
+
import {
|
|
2
|
+
Avatar_default
|
|
3
|
+
} from "../../chunk-QY742LWN.js";
|
|
4
|
+
import "../../chunk-KZOJN57Q.js";
|
|
39
5
|
export {
|
|
40
6
|
Avatar_default as Avatar
|
|
41
7
|
};
|
|
@@ -1,73 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Badge: () => NotificationBadge_default,
|
|
24
|
-
NotificationBadge: () => NotificationBadge_default,
|
|
25
|
-
default: () => NotificationBadge_default
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Badge_exports);
|
|
3
|
+
var _chunkPNIUW7AJcjs = require('../../chunk-PNIUW7AJ.cjs');
|
|
4
|
+
require('../../chunk-I7TLJUTP.cjs');
|
|
5
|
+
require('../../chunk-PFGSJJRY.cjs');
|
|
28
6
|
|
|
29
|
-
// src/tokens/interface/status.ts
|
|
30
|
-
var normalizeStatus = (value) => value === "brand" ? "primary" : value;
|
|
31
7
|
|
|
32
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
|
33
|
-
function r(e) {
|
|
34
|
-
var t, f, n = "";
|
|
35
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
36
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
37
|
-
var o = e.length;
|
|
38
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
39
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
40
|
-
return n;
|
|
41
|
-
}
|
|
42
|
-
function clsx() {
|
|
43
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
44
|
-
return n;
|
|
45
|
-
}
|
|
46
|
-
var clsx_default = clsx;
|
|
47
8
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var NotificationBadge = (props) => {
|
|
51
|
-
const {
|
|
52
|
-
children,
|
|
53
|
-
type = "error",
|
|
54
|
-
count,
|
|
55
|
-
maxCount = 99,
|
|
56
|
-
dot = false,
|
|
57
|
-
size = "md"
|
|
58
|
-
} = props;
|
|
59
|
-
const statusType = normalizeStatus(type);
|
|
60
|
-
const showBadge = dot || count !== void 0 && count > 0;
|
|
61
|
-
const displayCount = count !== void 0 && count > maxCount ? `${maxCount}+` : count;
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: clsx_default("lib-xplat-notification-badge", size), children: [
|
|
63
|
-
children,
|
|
64
|
-
showBadge && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: clsx_default("badge-indicator", statusType, { dot }), children: !dot && displayCount })
|
|
65
|
-
] });
|
|
66
|
-
};
|
|
67
|
-
NotificationBadge.displayName = "NotificationBadge";
|
|
68
|
-
var NotificationBadge_default = NotificationBadge;
|
|
69
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
-
0 && (module.exports = {
|
|
71
|
-
Badge,
|
|
72
|
-
NotificationBadge
|
|
73
|
-
});
|
|
9
|
+
|
|
10
|
+
exports.Badge = _chunkPNIUW7AJcjs.NotificationBadge_default; exports.NotificationBadge = _chunkPNIUW7AJcjs.NotificationBadge_default; exports.default = _chunkPNIUW7AJcjs.NotificationBadge_default;
|
|
@@ -1,43 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var t, f, n = "";
|
|
7
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
8
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
9
|
-
var o = e.length;
|
|
10
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
11
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
12
|
-
return n;
|
|
13
|
-
}
|
|
14
|
-
function clsx() {
|
|
15
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
16
|
-
return n;
|
|
17
|
-
}
|
|
18
|
-
var clsx_default = clsx;
|
|
19
|
-
|
|
20
|
-
// src/components/NotificationBadge/NotificationBadge.tsx
|
|
21
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
var NotificationBadge = (props) => {
|
|
23
|
-
const {
|
|
24
|
-
children,
|
|
25
|
-
type = "error",
|
|
26
|
-
count,
|
|
27
|
-
maxCount = 99,
|
|
28
|
-
dot = false,
|
|
29
|
-
size = "md"
|
|
30
|
-
} = props;
|
|
31
|
-
const statusType = normalizeStatus(type);
|
|
32
|
-
const showBadge = dot || count !== void 0 && count > 0;
|
|
33
|
-
const displayCount = count !== void 0 && count > maxCount ? `${maxCount}+` : count;
|
|
34
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-notification-badge", size), children: [
|
|
35
|
-
children,
|
|
36
|
-
showBadge && /* @__PURE__ */ jsx("span", { className: clsx_default("badge-indicator", statusType, { dot }), children: !dot && displayCount })
|
|
37
|
-
] });
|
|
38
|
-
};
|
|
39
|
-
NotificationBadge.displayName = "NotificationBadge";
|
|
40
|
-
var NotificationBadge_default = NotificationBadge;
|
|
1
|
+
import {
|
|
2
|
+
NotificationBadge_default
|
|
3
|
+
} from "../../chunk-RYTDVTV2.js";
|
|
4
|
+
import "../../chunk-QEZ4R3SK.js";
|
|
5
|
+
import "../../chunk-KZOJN57Q.js";
|
|
41
6
|
export {
|
|
42
7
|
NotificationBadge_default as Badge,
|
|
43
8
|
NotificationBadge_default as NotificationBadge,
|
|
@@ -1,61 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
__export(Box_exports, {
|
|
23
|
-
Box: () => Box_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Box_exports);
|
|
3
|
+
var _chunkQKDCPM2Dcjs = require('../../chunk-QKDCPM2D.cjs');
|
|
4
|
+
require('../../chunk-PFGSJJRY.cjs');
|
|
26
5
|
|
|
27
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
|
28
|
-
function r(e) {
|
|
29
|
-
var t, f, n = "";
|
|
30
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
31
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
32
|
-
var o = e.length;
|
|
33
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
34
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
function clsx() {
|
|
38
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
39
|
-
return n;
|
|
40
|
-
}
|
|
41
|
-
var clsx_default = clsx;
|
|
42
6
|
|
|
43
|
-
|
|
44
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
var Box = ({
|
|
46
|
-
children,
|
|
47
|
-
title,
|
|
48
|
-
variant = "outlined",
|
|
49
|
-
padding = "md"
|
|
50
|
-
}) => {
|
|
51
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: clsx_default("lib-xplat-box", variant, `pad-${padding}`), children: [
|
|
52
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "box-title", children: title }),
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "box-content", children })
|
|
54
|
-
] });
|
|
55
|
-
};
|
|
56
|
-
Box.displayName = "Box";
|
|
57
|
-
var Box_default = Box;
|
|
58
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
-
0 && (module.exports = {
|
|
60
|
-
Box
|
|
61
|
-
});
|
|
7
|
+
exports.Box = _chunkQKDCPM2Dcjs.Box_default;
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
var clsx_default = clsx;
|
|
16
|
-
|
|
17
|
-
// src/components/Box/Box.tsx
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
var Box = ({
|
|
20
|
-
children,
|
|
21
|
-
title,
|
|
22
|
-
variant = "outlined",
|
|
23
|
-
padding = "md"
|
|
24
|
-
}) => {
|
|
25
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-box", variant, `pad-${padding}`), children: [
|
|
26
|
-
title && /* @__PURE__ */ jsx("div", { className: "box-title", children: title }),
|
|
27
|
-
/* @__PURE__ */ jsx("div", { className: "box-content", children })
|
|
28
|
-
] });
|
|
29
|
-
};
|
|
30
|
-
Box.displayName = "Box";
|
|
31
|
-
var Box_default = Box;
|
|
1
|
+
import {
|
|
2
|
+
Box_default
|
|
3
|
+
} from "../../chunk-GOPD5KUK.js";
|
|
4
|
+
import "../../chunk-KZOJN57Q.js";
|
|
32
5
|
export {
|
|
33
6
|
Box_default as Box
|
|
34
7
|
};
|
|
@@ -1,44 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
var Breadcrumb_exports = {};
|
|
22
|
-
__export(Breadcrumb_exports, {
|
|
23
|
-
Breadcrumb: () => Breadcrumb_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Breadcrumb_exports);
|
|
3
|
+
var _chunkIRKREQ2Xcjs = require('../../chunk-IRKREQ2X.cjs');
|
|
26
4
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var Breadcrumb = (props) => {
|
|
30
|
-
const { items, separator = "/" } = props;
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { className: "lib-xplat-breadcrumb", "aria-label": "\uACBD\uB85C", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ol", { children: items.map((item, index) => {
|
|
32
|
-
const isLast = index === items.length - 1;
|
|
33
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", { children: [
|
|
34
|
-
isLast ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "current", "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { href: item.href, className: "link", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className: "link", onClick: item.onClick, children: item.label }),
|
|
35
|
-
!isLast && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "separator", children: separator })
|
|
36
|
-
] }, index);
|
|
37
|
-
}) }) });
|
|
38
|
-
};
|
|
39
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
40
|
-
var Breadcrumb_default = Breadcrumb;
|
|
41
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
-
0 && (module.exports = {
|
|
43
|
-
Breadcrumb
|
|
44
|
-
});
|
|
5
|
+
|
|
6
|
+
exports.Breadcrumb = _chunkIRKREQ2Xcjs.Breadcrumb_default;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const { items, separator = "/" } = props;
|
|
5
|
-
return /* @__PURE__ */ jsx("nav", { className: "lib-xplat-breadcrumb", "aria-label": "\uACBD\uB85C", children: /* @__PURE__ */ jsx("ol", { children: items.map((item, index) => {
|
|
6
|
-
const isLast = index === items.length - 1;
|
|
7
|
-
return /* @__PURE__ */ jsxs("li", { children: [
|
|
8
|
-
isLast ? /* @__PURE__ */ jsx("span", { className: "current", "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ jsx("a", { href: item.href, className: "link", children: item.label }) : /* @__PURE__ */ jsx("button", { className: "link", onClick: item.onClick, children: item.label }),
|
|
9
|
-
!isLast && /* @__PURE__ */ jsx("span", { className: "separator", children: separator })
|
|
10
|
-
] }, index);
|
|
11
|
-
}) }) });
|
|
12
|
-
};
|
|
13
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
14
|
-
var Breadcrumb_default = Breadcrumb;
|
|
1
|
+
import {
|
|
2
|
+
Breadcrumb_default
|
|
3
|
+
} from "../../chunk-7BE6ETFY.js";
|
|
15
4
|
export {
|
|
16
5
|
Breadcrumb_default as Breadcrumb
|
|
17
6
|
};
|
|
@@ -1,68 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Button: () => Button_default
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Button_exports);
|
|
3
|
+
var _chunkUHUA3GQCcjs = require('../../chunk-UHUA3GQC.cjs');
|
|
4
|
+
require('../../chunk-5F6Y2JD6.cjs');
|
|
5
|
+
require('../../chunk-PFGSJJRY.cjs');
|
|
26
6
|
|
|
27
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
|
28
|
-
function r(e) {
|
|
29
|
-
var t, f, n = "";
|
|
30
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
31
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
32
|
-
var o = e.length;
|
|
33
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
34
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
function clsx() {
|
|
38
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
39
|
-
return n;
|
|
40
|
-
}
|
|
41
|
-
var clsx_default = clsx;
|
|
42
7
|
|
|
43
|
-
|
|
44
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
|
-
var Button = (props) => {
|
|
46
|
-
const {
|
|
47
|
-
children,
|
|
48
|
-
type = "primary",
|
|
49
|
-
size = "md",
|
|
50
|
-
disabled,
|
|
51
|
-
...rest
|
|
52
|
-
} = props;
|
|
53
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
-
"button",
|
|
55
|
-
{
|
|
56
|
-
className: clsx_default("lib-xplat-button", type, size),
|
|
57
|
-
disabled,
|
|
58
|
-
...rest,
|
|
59
|
-
children
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
Button.displayName = "Button";
|
|
64
|
-
var Button_default = Button;
|
|
65
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
-
0 && (module.exports = {
|
|
67
|
-
Button
|
|
68
|
-
});
|
|
8
|
+
exports.Button = _chunkUHUA3GQCcjs.Button_default;
|
|
@@ -1,41 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
var clsx_default = clsx;
|
|
16
|
-
|
|
17
|
-
// src/components/Button/Button.tsx
|
|
18
|
-
import { jsx } from "react/jsx-runtime";
|
|
19
|
-
var Button = (props) => {
|
|
20
|
-
const {
|
|
21
|
-
children,
|
|
22
|
-
type = "primary",
|
|
23
|
-
size = "md",
|
|
24
|
-
disabled,
|
|
25
|
-
...rest
|
|
26
|
-
} = props;
|
|
27
|
-
return /* @__PURE__ */ jsx(
|
|
28
|
-
"button",
|
|
29
|
-
{
|
|
30
|
-
className: clsx_default("lib-xplat-button", type, size),
|
|
31
|
-
disabled,
|
|
32
|
-
...rest,
|
|
33
|
-
children
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
Button.displayName = "Button";
|
|
38
|
-
var Button_default = Button;
|
|
1
|
+
import {
|
|
2
|
+
Button_default
|
|
3
|
+
} from "../../chunk-TTY5PE3P.js";
|
|
4
|
+
import "../../chunk-OL4NANHB.js";
|
|
5
|
+
import "../../chunk-KZOJN57Q.js";
|
|
39
6
|
export {
|
|
40
7
|
Button_default as Button
|
|
41
8
|
};
|