@x-plat/design-system 0.19.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 -310
- package/dist/components/Table/index.css +31 -5
- package/dist/components/Table/index.js +8 -273
- 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 -8315
- package/dist/components/index.css +31 -5
- package/dist/components/index.js +190 -8261
- package/dist/index.cjs +903 -13291
- package/dist/index.css +31 -5
- package/dist/index.js +524 -12499
- 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/components/table.md +23 -0
- package/guidelines/setup.md +7 -0
- package/package.json +6 -3
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/tokens/svg/status/ErrorIcon.tsx
|
|
2
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
3
|
+
var ErrorIcon = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 16 16",
|
|
10
|
+
fill: "none",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { clipPath: "url(#clip0_1196_9603)", children: [
|
|
13
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M9.57588 5.57559C9.81019 5.34127 10.19 5.34127 10.4243 5.57559C10.6586 5.8099 10.6586 6.18971 10.4243 6.42402L8.84854 7.9998L10.4243 9.57559C10.6586 9.8099 10.6586 10.1897 10.4243 10.424C10.19 10.6583 9.81019 10.6583 9.57588 10.424L8.0001 8.84824L6.42432 10.424C6.19 10.6583 5.81019 10.6583 5.57588 10.424C5.34156 10.1897 5.34156 9.8099 5.57588 9.57559L7.15166 7.9998L5.57588 6.42402C5.34156 6.18971 5.34156 5.8099 5.57588 5.57559C5.81019 5.34127 6.19 5.34127 6.42432 5.57559L8.0001 7.15137L9.57588 5.57559Z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
fillRule: "evenodd",
|
|
24
|
+
clipRule: "evenodd",
|
|
25
|
+
d: "M8.0001 0.733398C12.0131 0.73361 15.2671 3.98679 15.2673 7.9998C15.2672 12.0129 12.0131 15.2668 8.0001 15.267C3.98701 15.2669 0.733016 12.0129 0.73291 7.9998C0.733051 3.98674 3.98704 0.733539 8.0001 0.733398ZM8.0001 1.9334C4.64978 1.93354 1.93383 4.64948 1.93369 7.9998C1.9338 11.3502 4.64975 14.0669 8.0001 14.067C11.3504 14.0668 14.0672 11.3501 14.0673 7.9998C14.0671 4.64953 11.3504 1.93361 8.0001 1.9334Z",
|
|
26
|
+
fill: "currentColor"
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "clipPath", { id: "clip0_1196_9603", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
var ErrorIcon_default = ErrorIcon;
|
|
35
|
+
|
|
36
|
+
// src/tokens/svg/status/InfoIcon.tsx
|
|
37
|
+
|
|
38
|
+
var InfoIcon = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
39
|
+
"svg",
|
|
40
|
+
{
|
|
41
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
width: "1em",
|
|
43
|
+
height: "1em",
|
|
44
|
+
viewBox: "0 0 16 16",
|
|
45
|
+
fill: "none",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "g", { clipPath: "url(#clip0_1188_11261)", children: [
|
|
48
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
49
|
+
"path",
|
|
50
|
+
{
|
|
51
|
+
d: "M8.00156 7.39999C8.33293 7.39999 8.60156 7.66862 8.60156 7.99999V10.6664C8.60156 10.9978 8.33293 11.2664 8.00156 11.2664C7.67019 11.2664 7.40156 10.9978 7.40156 10.6664V7.99999C7.40156 7.66862 7.67019 7.39999 8.00156 7.39999Z",
|
|
52
|
+
fill: "currentColor"
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
+
"path",
|
|
57
|
+
{
|
|
58
|
+
d: "M8.00859 4.73358C8.3398 4.73378 8.60859 5.00233 8.60859 5.33358C8.60849 5.66474 8.33973 5.93338 8.00859 5.93358H8.00156C7.67026 5.93358 7.40167 5.66486 7.40156 5.33358C7.40156 5.00221 7.67019 4.73358 8.00156 4.73358H8.00859Z",
|
|
59
|
+
fill: "currentColor"
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
63
|
+
"path",
|
|
64
|
+
{
|
|
65
|
+
fillRule: "evenodd",
|
|
66
|
+
clipRule: "evenodd",
|
|
67
|
+
d: "M8.00156 0.733582C12.0146 0.733793 15.2686 3.98697 15.2688 7.99999C15.2686 12.013 12.0146 15.267 8.00156 15.2672C3.98848 15.267 0.734481 12.0131 0.734375 7.99999C0.734516 3.98693 3.9885 0.733722 8.00156 0.733582ZM8.00156 1.93358C4.65124 1.93372 1.9353 4.64967 1.93516 7.99999C1.93526 11.3503 4.65122 14.067 8.00156 14.0672C11.3518 14.067 14.0686 11.3503 14.0688 7.99999C14.0686 4.64971 11.3518 1.93379 8.00156 1.93358Z",
|
|
68
|
+
fill: "currentColor"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "clipPath", { id: "clip0_1188_11261", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
var InfoIcon_default = InfoIcon;
|
|
77
|
+
|
|
78
|
+
// src/tokens/svg/status/SuccessIcon.tsx
|
|
79
|
+
|
|
80
|
+
var SuccessIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
81
|
+
"svg",
|
|
82
|
+
{
|
|
83
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
84
|
+
width: "1em",
|
|
85
|
+
height: "1em",
|
|
86
|
+
viewBox: "0 0 16 16",
|
|
87
|
+
fill: "none",
|
|
88
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
89
|
+
"path",
|
|
90
|
+
{
|
|
91
|
+
d: "M12.9084 3.57597C13.1426 3.34172 13.5225 3.34185 13.7568 3.57597C13.9911 3.81028 13.9911 4.19009 13.7568 4.4244L6.424 11.758C6.31157 11.8703 6.15869 11.9337 5.99978 11.9338C5.8409 11.9337 5.68798 11.8703 5.57556 11.758L2.24197 8.4244C2.00782 8.19018 2.00795 7.81028 2.24197 7.57597C2.47626 7.34167 2.85609 7.34172 3.09041 7.57597L5.999 10.4846L12.9084 3.57597Z",
|
|
92
|
+
fill: "currentColor"
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
var SuccessIcon_default = SuccessIcon;
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
exports.ErrorIcon_default = ErrorIcon_default; exports.InfoIcon_default = InfoIcon_default; exports.SuccessIcon_default = SuccessIcon_default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clsx_default
|
|
3
|
+
} from "./chunk-KZOJN57Q.js";
|
|
4
|
+
|
|
5
|
+
// src/layout/SideBar/SideBar.tsx
|
|
6
|
+
import React2 from "react";
|
|
7
|
+
|
|
8
|
+
// src/layout/SideBar/SideBarContext.tsx
|
|
9
|
+
import React from "react";
|
|
10
|
+
var SideBarContext = React.createContext(null);
|
|
11
|
+
var useSideBarContext = () => {
|
|
12
|
+
const ctx = React.useContext(SideBarContext);
|
|
13
|
+
if (!ctx) throw new Error("Error");
|
|
14
|
+
return ctx;
|
|
15
|
+
};
|
|
16
|
+
var SideBarContext_default = SideBarContext;
|
|
17
|
+
|
|
18
|
+
// src/layout/SideBar/SideBar.tsx
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
var SideBar = (props) => {
|
|
21
|
+
const { children, className } = props;
|
|
22
|
+
const [isOpen, setIsOpen] = React2.useState(true);
|
|
23
|
+
const handleSwitchSideBar = () => {
|
|
24
|
+
setIsOpen((prev) => !prev);
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
SideBarContext_default.Provider,
|
|
28
|
+
{
|
|
29
|
+
value: { isSidebarOpen: isOpen, handleSwitchSideBar },
|
|
30
|
+
children: /* @__PURE__ */ jsx(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: clsx_default(
|
|
34
|
+
"lib-xplat-layout-sidebar",
|
|
35
|
+
isOpen ? "large" : "small",
|
|
36
|
+
className
|
|
37
|
+
),
|
|
38
|
+
children
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
SideBar.displayName = "SideBar";
|
|
45
|
+
var SideBar_default = SideBar;
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
useSideBarContext,
|
|
49
|
+
SideBarContext_default,
|
|
50
|
+
SideBar_default
|
|
51
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/layout/Header/Header.tsx
|
|
2
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
3
|
+
var Header = ({
|
|
4
|
+
leftContent,
|
|
5
|
+
logo,
|
|
6
|
+
centerContent,
|
|
7
|
+
rightContent
|
|
8
|
+
}) => {
|
|
9
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "lib-xplat-layout-header", children: [
|
|
10
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: _nullishCoalesce(leftContent, () => ( logo)) }),
|
|
11
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: centerContent }),
|
|
12
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: rightContent })
|
|
13
|
+
] });
|
|
14
|
+
};
|
|
15
|
+
Header.displayName = "Header";
|
|
16
|
+
var Header_default = Header;
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.Header_default = Header_default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
|
|
4
|
+
|
|
5
|
+
// src/components/ToggleChip/ToggleChip.tsx
|
|
6
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
7
|
+
var ToggleChip = (props) => {
|
|
8
|
+
const { children, selected = false, onClick, disabled = false, size = "md" } = props;
|
|
9
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10
|
+
"button",
|
|
11
|
+
{
|
|
12
|
+
type: "button",
|
|
13
|
+
className: _chunkPFGSJJRYcjs.clsx_default.call(void 0,
|
|
14
|
+
"lib-xplat-chip",
|
|
15
|
+
"lib-xplat-toggle-chip",
|
|
16
|
+
size,
|
|
17
|
+
selected ? "selected" : "unselected"
|
|
18
|
+
),
|
|
19
|
+
"aria-pressed": selected,
|
|
20
|
+
disabled,
|
|
21
|
+
onClick,
|
|
22
|
+
children
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
ToggleChip.displayName = "ToggleChip";
|
|
27
|
+
var ToggleChip_default = ToggleChip;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.ToggleChip_default = ToggleChip_default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkI7TLJUTPcjs = require('./chunk-I7TLJUTP.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
|
|
7
|
+
|
|
8
|
+
// src/components/Stat/Stat.tsx
|
|
9
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
10
|
+
var ARROW = {
|
|
11
|
+
up: "\u25B2",
|
|
12
|
+
down: "\u25BC",
|
|
13
|
+
flat: "\u2014"
|
|
14
|
+
};
|
|
15
|
+
var Stat = (props) => {
|
|
16
|
+
const {
|
|
17
|
+
label,
|
|
18
|
+
value,
|
|
19
|
+
unit,
|
|
20
|
+
description,
|
|
21
|
+
trend,
|
|
22
|
+
icon,
|
|
23
|
+
size = "md",
|
|
24
|
+
type = "primary"
|
|
25
|
+
} = props;
|
|
26
|
+
const statusType = _chunkI7TLJUTPcjs.normalizeStatus.call(void 0, type);
|
|
27
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "lib-xplat-stat", size, statusType), children: [
|
|
28
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "stat-label", children: label }),
|
|
29
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "stat-value-row", children: [
|
|
30
|
+
icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "stat-icon", children: icon }),
|
|
31
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "stat-value", children: value }),
|
|
32
|
+
unit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "stat-unit", children: unit }),
|
|
33
|
+
trend && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "stat-trend", trend.direction), children: [
|
|
34
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", children: ARROW[trend.direction] }),
|
|
35
|
+
trend.value
|
|
36
|
+
] })
|
|
37
|
+
] }),
|
|
38
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "stat-description", children: description })
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
Stat.displayName = "Stat";
|
|
42
|
+
var Stat_default = Stat;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
exports.Stat_default = Stat_default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import {
|
|
2
|
+
clsx_default
|
|
3
|
+
} from "./chunk-KZOJN57Q.js";
|
|
4
|
+
|
|
5
|
+
// src/components/Toast/Toast.tsx
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { createPortal } from "react-dom";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var ToastContext = React.createContext(null);
|
|
10
|
+
var useToast = () => {
|
|
11
|
+
const ctx = React.useContext(ToastContext);
|
|
12
|
+
if (!ctx) throw new Error("useToast must be used within ToastProvider");
|
|
13
|
+
return ctx;
|
|
14
|
+
};
|
|
15
|
+
var EXIT_DURATION = 300;
|
|
16
|
+
var ToastItemComponent = ({ item, isExiting, onClose }) => {
|
|
17
|
+
const ref = React.useRef(null);
|
|
18
|
+
const [height, setHeight] = React.useState(void 0);
|
|
19
|
+
React.useEffect(() => {
|
|
20
|
+
if (ref.current && !isExiting) {
|
|
21
|
+
setHeight(ref.current.offsetHeight);
|
|
22
|
+
}
|
|
23
|
+
}, [isExiting]);
|
|
24
|
+
return /* @__PURE__ */ jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: clsx_default("lib-xplat-toast-wrapper", { exit: isExiting }),
|
|
28
|
+
style: {
|
|
29
|
+
maxHeight: isExiting ? 0 : height ?? "none",
|
|
30
|
+
marginBottom: isExiting ? 0 : void 0
|
|
31
|
+
},
|
|
32
|
+
children: /* @__PURE__ */ jsxs(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
ref,
|
|
36
|
+
className: clsx_default("lib-xplat-toast", item.type, { exit: isExiting }),
|
|
37
|
+
role: "alert",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx("span", { className: "message", children: item.message }),
|
|
40
|
+
/* @__PURE__ */ jsx("button", { className: "close-btn", onClick: onClose, "aria-label": "\uB2EB\uAE30", children: "\xD7" })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
var ToastProvider = ({
|
|
48
|
+
children,
|
|
49
|
+
position = "top-right"
|
|
50
|
+
}) => {
|
|
51
|
+
const [toasts, setToasts] = React.useState([]);
|
|
52
|
+
const [removing, setRemoving] = React.useState(/* @__PURE__ */ new Set());
|
|
53
|
+
const [mounted, setMounted] = React.useState(false);
|
|
54
|
+
React.useEffect(() => {
|
|
55
|
+
setMounted(true);
|
|
56
|
+
}, []);
|
|
57
|
+
const remove = React.useCallback((id) => {
|
|
58
|
+
setRemoving((prev) => new Set(prev).add(id));
|
|
59
|
+
setTimeout(() => {
|
|
60
|
+
setToasts((prev) => prev.filter((t) => t.id !== id));
|
|
61
|
+
setRemoving((prev) => {
|
|
62
|
+
const next = new Set(prev);
|
|
63
|
+
next.delete(id);
|
|
64
|
+
return next;
|
|
65
|
+
});
|
|
66
|
+
}, EXIT_DURATION);
|
|
67
|
+
}, []);
|
|
68
|
+
const toast = React.useCallback(
|
|
69
|
+
(type, message, duration = 3e3) => {
|
|
70
|
+
const id = `${Date.now()}-${Math.random()}`;
|
|
71
|
+
setToasts((prev) => [...prev, { id, type, message }]);
|
|
72
|
+
if (duration > 0) {
|
|
73
|
+
setTimeout(() => remove(id), duration);
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
[remove]
|
|
77
|
+
);
|
|
78
|
+
return /* @__PURE__ */ jsxs(ToastContext.Provider, { value: { toast }, children: [
|
|
79
|
+
children,
|
|
80
|
+
mounted && createPortal(
|
|
81
|
+
/* @__PURE__ */ jsx("div", { className: clsx_default("lib-xplat-toast-container", position), children: toasts.map((t) => /* @__PURE__ */ jsx(
|
|
82
|
+
ToastItemComponent,
|
|
83
|
+
{
|
|
84
|
+
item: t,
|
|
85
|
+
isExiting: removing.has(t.id),
|
|
86
|
+
onClose: () => remove(t.id)
|
|
87
|
+
},
|
|
88
|
+
t.id
|
|
89
|
+
)) }),
|
|
90
|
+
document.body
|
|
91
|
+
)
|
|
92
|
+
] });
|
|
93
|
+
};
|
|
94
|
+
ToastProvider.displayName = "ToastProvider";
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
useToast,
|
|
98
|
+
ToastProvider
|
|
99
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkPFGSJJRYcjs = require('./chunk-PFGSJJRY.cjs');
|
|
4
|
+
|
|
5
|
+
// src/components/CardTab/CardTab.tsx
|
|
6
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
7
|
+
|
|
8
|
+
// src/components/CardTab/CardTabPanel.tsx
|
|
9
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
10
|
+
var CardTabPanel = (props) => {
|
|
11
|
+
const { children, columns = 3 } = props;
|
|
12
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: "card-tab-panel",
|
|
16
|
+
style: { "--card-tab-columns": columns },
|
|
17
|
+
children
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
CardTabPanel.displayName = "CardTab.Panel";
|
|
22
|
+
var CardTabPanel_default = CardTabPanel;
|
|
23
|
+
|
|
24
|
+
// src/components/CardTab/CardTab.tsx
|
|
25
|
+
|
|
26
|
+
var CardTabRoot = (props) => {
|
|
27
|
+
const {
|
|
28
|
+
tabs,
|
|
29
|
+
activeValue: activeValueProp,
|
|
30
|
+
onChange,
|
|
31
|
+
size = "md",
|
|
32
|
+
children
|
|
33
|
+
} = props;
|
|
34
|
+
const isControlled = activeValueProp !== void 0;
|
|
35
|
+
const [uncontrolledValue, setUncontrolledValue] = _react2.default.useState(_nullishCoalesce(_optionalChain([tabs, 'access', _ => _[0], 'optionalAccess', _2 => _2.value]), () => ( "")));
|
|
36
|
+
const activeValue = isControlled ? activeValueProp : uncontrolledValue;
|
|
37
|
+
const handleTabClick = (tab) => {
|
|
38
|
+
if (!isControlled) {
|
|
39
|
+
setUncontrolledValue(tab.value);
|
|
40
|
+
}
|
|
41
|
+
_optionalChain([onChange, 'optionalCall', _3 => _3(tab)]);
|
|
42
|
+
};
|
|
43
|
+
const panels = _react2.default.Children.toArray(children).filter(
|
|
44
|
+
(child) => _react2.default.isValidElement(child) && child.type === CardTabPanel_default
|
|
45
|
+
);
|
|
46
|
+
const activePanel = panels.find(
|
|
47
|
+
(panel) => panel.props.value === activeValue
|
|
48
|
+
);
|
|
49
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "lib-xplat-card-tab", size), children: [
|
|
50
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "card-tab-bar", children: tabs.map((tab) => {
|
|
51
|
+
const isActive = tab.value === activeValue;
|
|
52
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
|
+
"button",
|
|
54
|
+
{
|
|
55
|
+
className: _chunkPFGSJJRYcjs.clsx_default.call(void 0, "card-tab-trigger", isActive && "active"),
|
|
56
|
+
onClick: () => handleTabClick(tab),
|
|
57
|
+
role: "tab",
|
|
58
|
+
"aria-selected": isActive,
|
|
59
|
+
children: tab.title
|
|
60
|
+
},
|
|
61
|
+
tab.value
|
|
62
|
+
);
|
|
63
|
+
}) }),
|
|
64
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "card-tab-body", children: activePanel })
|
|
65
|
+
] });
|
|
66
|
+
};
|
|
67
|
+
CardTabRoot.displayName = "CardTab";
|
|
68
|
+
var CardTab = Object.assign(CardTabRoot, {
|
|
69
|
+
Panel: CardTabPanel_default
|
|
70
|
+
});
|
|
71
|
+
var CardTab_default = CardTab;
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
exports.CardTab_default = CardTab_default;
|