cytur-design-system 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +929 -2167
- package/dist/types/components/index.d.ts +0 -12
- package/dist/types/lib.d.ts +2 -13
- package/package.json +1 -1
- package/dist/types/components/button/Button.d.ts +0 -16
- package/dist/types/components/checkbox/Checkbox.d.ts +0 -14
- package/dist/types/components/dropdown/Dropdown.d.ts +0 -37
- package/dist/types/components/input/Input.d.ts +0 -20
- package/dist/types/components/modal/Modal.d.ts +0 -35
- package/dist/types/components/radio/Radio.d.ts +0 -12
- package/dist/types/components/select/Select.d.ts +0 -36
- package/dist/types/components/tag/Tag.d.ts +0 -21
- package/dist/types/components/toast/Toast.d.ts +0 -22
- package/dist/types/components/toast/ToastRoot.d.ts +0 -1
- package/dist/types/components/toast/singleton.d.ts +0 -26
- package/dist/types/components/toast/store.d.ts +0 -28
- package/dist/types/components/toggle/Toggle.d.ts +0 -15
- package/dist/types/components/tooltip/Tooltip.d.ts +0 -16
package/dist/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Alert as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { createRoot as Se } from "react-dom/client";
|
|
6
|
-
import * as Ce from "@ant-design/icons";
|
|
1
|
+
import { forwardRef as e, useEffect as t } from "react";
|
|
2
|
+
import { Alert as n, App as r, AutoComplete as i, Avatar as a, Badge as o, Breadcrumb as s, Button as ee, Card as te, Checkbox as ne, Col as re, ConfigProvider as ie, ConfigProvider as ae, DatePicker as oe, Descriptions as se, Divider as ce, Drawer as le, Dropdown as ue, Empty as de, Flex as c, Form as l, Input as u, InputNumber as d, Layout as f, List as p, Menu as m, Modal as h, Pagination as g, Popconfirm as _, Popover as v, Progress as y, Radio as b, Result as x, Row as S, Select as C, Skeleton as w, Slider as T, Space as E, Spin as D, Statistic as O, Steps as k, Switch as A, Switch as j, Table as M, Tabs as N, Tag as P, TimePicker as F, Tooltip as I, Tree as L, Typography as R, Upload as z, message as B, notification as V, theme as H, theme as U } from "antd";
|
|
3
|
+
import { jsx as W } from "react/jsx-runtime";
|
|
4
|
+
import * as fe from "@ant-design/icons";
|
|
7
5
|
//#region src/theme/index.ts
|
|
8
|
-
var
|
|
6
|
+
var pe = {
|
|
9
7
|
fontFamily: "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
|
|
10
8
|
fontSize: 14,
|
|
11
9
|
borderRadius: 4,
|
|
@@ -31,7 +29,7 @@ var we = {
|
|
|
31
29
|
colorBgContainer: "#ffffff",
|
|
32
30
|
colorBgElevated: "#ffffff",
|
|
33
31
|
colorBgLayout: "#f8fafb"
|
|
34
|
-
},
|
|
32
|
+
}, me = {
|
|
35
33
|
Button: {
|
|
36
34
|
primaryShadow: "none",
|
|
37
35
|
defaultShadow: "none",
|
|
@@ -64,9 +62,9 @@ var we = {
|
|
|
64
62
|
warningActiveShadow: "none"
|
|
65
63
|
},
|
|
66
64
|
Modal: { borderRadiusLG: 12 }
|
|
67
|
-
},
|
|
65
|
+
}, G = {
|
|
68
66
|
token: {
|
|
69
|
-
...
|
|
67
|
+
...pe,
|
|
70
68
|
colorPrimary: "#0a9e9e",
|
|
71
69
|
colorPrimaryHover: "#078080",
|
|
72
70
|
colorPrimaryActive: "#056363",
|
|
@@ -74,8 +72,8 @@ var we = {
|
|
|
74
72
|
colorLinkHover: "#078080",
|
|
75
73
|
colorLinkActive: "#056363"
|
|
76
74
|
},
|
|
77
|
-
components:
|
|
78
|
-
},
|
|
75
|
+
components: me
|
|
76
|
+
}, he = G, ge = { base: G }, K = {
|
|
79
77
|
"label-default-bg-solid": "#1f2937",
|
|
80
78
|
"label-default-text-solid": "#ffffff",
|
|
81
79
|
"label-primary-bg-solid": "#2563eb",
|
|
@@ -624,8 +622,8 @@ var we = {
|
|
|
624
622
|
"color-teal-200": "#223234",
|
|
625
623
|
"color-yellow-100": "#ffd655",
|
|
626
624
|
"color-yellow-200": "#292614"
|
|
627
|
-
},
|
|
628
|
-
...
|
|
625
|
+
}, _e = {
|
|
626
|
+
...K,
|
|
629
627
|
"action-danger": "#f87171",
|
|
630
628
|
"action-danger-hover": "#fca5a5",
|
|
631
629
|
"action-danger-active": "#fecaca",
|
|
@@ -865,7 +863,7 @@ var we = {
|
|
|
865
863
|
"border-topology-connected": "#4ade80",
|
|
866
864
|
"border-topology-disconnected": "#ffffff",
|
|
867
865
|
"border-topology-unknown": "#a3adb8"
|
|
868
|
-
},
|
|
866
|
+
}, ve = (e, t, n) => {
|
|
869
867
|
let r = (e) => Object.entries(e).map(([e, t]) => ` --cytur-${e}: ${t};`).join("\n"), i = Object.keys(n), a = i[0];
|
|
870
868
|
return `${`
|
|
871
869
|
:root, [data-mode="light"] {
|
|
@@ -900,19 +898,30 @@ ${r(t.dark)}
|
|
|
900
898
|
.cytur-scroll:hover::-webkit-scrollbar-thumb { background-color: var(--cytur-scrollbar-thumb-hover); }
|
|
901
899
|
.cytur-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--cytur-scrollbar-thumb-hover); }
|
|
902
900
|
.cytur-scroll::-webkit-scrollbar-thumb:active { background-color: var(--cytur-scrollbar-thumb-active); }\n
|
|
903
|
-
input:-webkit-autofill,
|
|
904
|
-
input:-webkit-autofill:hover,
|
|
905
|
-
input:-webkit-autofill:focus,
|
|
906
|
-
input:-webkit-autofill:active,
|
|
907
|
-
|
|
908
|
-
textarea:-webkit-autofill
|
|
909
|
-
textarea:-webkit-autofill:
|
|
910
|
-
|
|
901
|
+
html input:-webkit-autofill,
|
|
902
|
+
html input:-webkit-autofill:hover,
|
|
903
|
+
html input:-webkit-autofill:focus,
|
|
904
|
+
html input:-webkit-autofill:active,
|
|
905
|
+
html input:-internal-autofill-selected,
|
|
906
|
+
html textarea:-webkit-autofill,
|
|
907
|
+
html textarea:-webkit-autofill:hover,
|
|
908
|
+
html textarea:-webkit-autofill:focus,
|
|
909
|
+
html textarea:-internal-autofill-selected,
|
|
910
|
+
.ant-input:-webkit-autofill,
|
|
911
|
+
.ant-input:-webkit-autofill:hover,
|
|
912
|
+
.ant-input:-webkit-autofill:focus,
|
|
913
|
+
.ant-input-affix-wrapper input:-webkit-autofill,
|
|
914
|
+
.ant-input-affix-wrapper input:-webkit-autofill:hover,
|
|
915
|
+
.ant-input-affix-wrapper input:-webkit-autofill:focus {
|
|
911
916
|
-webkit-box-shadow: 0 0 0 1000px var(--cytur-input-bg-default) inset !important;
|
|
912
|
-
|
|
913
|
-
|
|
917
|
+
-webkit-text-fill-color: var(--cytur-input-text-default) !important;
|
|
918
|
+
color: var(--cytur-input-text-default) !important;
|
|
919
|
+
background-color: var(--cytur-input-bg-default) !important;
|
|
920
|
+
caret-color: var(--cytur-input-text-default) !important;
|
|
921
|
+
transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s !important;
|
|
922
|
+
filter: none !important;
|
|
914
923
|
}`;
|
|
915
|
-
},
|
|
924
|
+
}, ye = {
|
|
916
925
|
light: {
|
|
917
926
|
"action-primary": "#0a9e9e",
|
|
918
927
|
"action-primary-hover": "#078080",
|
|
@@ -955,18 +964,7 @@ textarea:-webkit-autofill:focus {
|
|
|
955
964
|
"button-primary-border-disabled": "transparent",
|
|
956
965
|
"text-primary-action": "#3b82f6"
|
|
957
966
|
}
|
|
958
|
-
},
|
|
959
|
-
light: {
|
|
960
|
-
colorPrimary: "#0a9e9e",
|
|
961
|
-
colorPrimaryHover: "#078080",
|
|
962
|
-
colorPrimaryActive: "#056363"
|
|
963
|
-
},
|
|
964
|
-
dark: {
|
|
965
|
-
colorPrimary: "#3b82f6",
|
|
966
|
-
colorPrimaryHover: "#5899f5",
|
|
967
|
-
colorPrimaryActive: "#88b8fa"
|
|
968
|
-
}
|
|
969
|
-
}, I = {
|
|
967
|
+
}, q = {
|
|
970
968
|
"font-family": "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif",
|
|
971
969
|
"action-primary": "#3d6bff",
|
|
972
970
|
"action-primary-hover": "#4c86ff",
|
|
@@ -1258,1151 +1256,1249 @@ textarea:-webkit-autofill:focus {
|
|
|
1258
1256
|
"input-text-default": "#ffffff",
|
|
1259
1257
|
"input-text-placeholder": "#6e6e6e",
|
|
1260
1258
|
"input-text-disabled": "#535353"
|
|
1261
|
-
},
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
colorPrimary: "#3d6bff",
|
|
1267
|
-
colorPrimaryHover: "#4c86ff",
|
|
1268
|
-
colorPrimaryActive: "#2e54cc"
|
|
1269
|
-
},
|
|
1270
|
-
dark: {
|
|
1271
|
-
colorPrimary: "#3d6bff",
|
|
1272
|
-
colorPrimaryHover: "#4c86ff",
|
|
1273
|
-
colorPrimaryActive: "#2e54cc"
|
|
1259
|
+
}, be = {
|
|
1260
|
+
base: ye,
|
|
1261
|
+
mg: {
|
|
1262
|
+
light: q,
|
|
1263
|
+
dark: { ...q }
|
|
1274
1264
|
}
|
|
1275
|
-
},
|
|
1276
|
-
base: ke,
|
|
1277
|
-
mg: je
|
|
1278
|
-
}, Pe = {
|
|
1279
|
-
base: Ae,
|
|
1280
|
-
mg: Me
|
|
1281
|
-
}, L = "__cytur_tokens__", Fe = () => {
|
|
1265
|
+
}, J = "__cytur_tokens__", xe = () => {
|
|
1282
1266
|
if (typeof document > "u") return;
|
|
1283
|
-
let e = document.getElementById(
|
|
1284
|
-
e || (e = document.createElement("style"), e.id =
|
|
1285
|
-
},
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1267
|
+
let e = document.getElementById(J);
|
|
1268
|
+
e || (e = document.createElement("style"), e.id = J, document.head.appendChild(e)), e.innerHTML = ve(K, _e, be);
|
|
1269
|
+
}, Se = "\"Pretendard\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif", Ce = {
|
|
1270
|
+
primary: "#0a9e9e",
|
|
1271
|
+
primaryHover: "#078080",
|
|
1272
|
+
primaryActive: "#056363",
|
|
1273
|
+
text: "#111827",
|
|
1274
|
+
textSecondary: "#4a5568",
|
|
1275
|
+
textTertiary: "#6b7b8d",
|
|
1276
|
+
textPlaceholder: "#a3adb8",
|
|
1277
|
+
textDisabled: "#a3adb8",
|
|
1278
|
+
bgContainer: "#ffffff",
|
|
1279
|
+
bgElevated: "#ffffff",
|
|
1280
|
+
bgLayout: "#f8fafb",
|
|
1281
|
+
bgSpotlight: "rgba(17,17,17,0.92)",
|
|
1282
|
+
border: "#e2e6ea",
|
|
1283
|
+
borderSecondary: "#f1f3f5",
|
|
1284
|
+
error: "#dc2626",
|
|
1285
|
+
errorBg: "#fef2f2",
|
|
1286
|
+
errorBorder: "#f87171",
|
|
1287
|
+
warning: "#d97706",
|
|
1288
|
+
warningBg: "#fffbeb",
|
|
1289
|
+
success: "#16a34a",
|
|
1290
|
+
successBg: "#f0fdf4",
|
|
1291
|
+
info: "#2563eb",
|
|
1292
|
+
infoBg: "#eff6ff"
|
|
1293
|
+
}, we = {
|
|
1294
|
+
primary: "#3b82f6",
|
|
1295
|
+
primaryHover: "#60a5fa",
|
|
1296
|
+
primaryActive: "#2563eb",
|
|
1297
|
+
text: "#f8fafb",
|
|
1298
|
+
textSecondary: "#cdd3d9",
|
|
1299
|
+
textTertiary: "#a3adb8",
|
|
1300
|
+
textPlaceholder: "#6b7b8d",
|
|
1301
|
+
textDisabled: "#6b7b8d",
|
|
1302
|
+
bgContainer: "#1f2937",
|
|
1303
|
+
bgElevated: "#374151",
|
|
1304
|
+
bgLayout: "#121212",
|
|
1305
|
+
bgSpotlight: "rgba(17,17,17,0.92)",
|
|
1306
|
+
border: "#374151",
|
|
1307
|
+
borderSecondary: "#1f2937",
|
|
1308
|
+
error: "#f87171",
|
|
1309
|
+
errorBg: "#7f1d1d",
|
|
1310
|
+
errorBorder: "#f87171",
|
|
1311
|
+
warning: "#fbbf24",
|
|
1312
|
+
warningBg: "#78350f",
|
|
1313
|
+
success: "#4ade80",
|
|
1314
|
+
successBg: "#14532d",
|
|
1315
|
+
info: "#60a5fa",
|
|
1316
|
+
infoBg: "#1e3a8a"
|
|
1317
|
+
}, Y = {
|
|
1318
|
+
primary: "#3d6bff",
|
|
1319
|
+
primaryHover: "#4c86ff",
|
|
1320
|
+
primaryActive: "#2e54cc",
|
|
1321
|
+
text: "#ffffff",
|
|
1322
|
+
textSecondary: "#a3a3a3",
|
|
1323
|
+
textTertiary: "#6a6a6a",
|
|
1324
|
+
textPlaceholder: "#6e6e6e",
|
|
1325
|
+
textDisabled: "#535353",
|
|
1326
|
+
bgContainer: "#1d1d1d",
|
|
1327
|
+
bgElevated: "#222222",
|
|
1328
|
+
bgLayout: "#111111",
|
|
1329
|
+
bgSpotlight: "#1a1a1aeb",
|
|
1330
|
+
border: "#3e3e3e",
|
|
1331
|
+
borderSecondary: "#3c3c3c",
|
|
1332
|
+
error: "#fb5858",
|
|
1333
|
+
errorBg: "#351b17",
|
|
1334
|
+
errorBorder: "#fb5858",
|
|
1335
|
+
warning: "#ebae16",
|
|
1336
|
+
warningBg: "#332b14",
|
|
1337
|
+
success: "#2bc029",
|
|
1338
|
+
successBg: "#1f3322",
|
|
1339
|
+
info: "#3d6bff",
|
|
1340
|
+
infoBg: "#1e2634"
|
|
1341
|
+
}, Te = (e, t) => e === "mg" ? Y : t === "dark" ? we : Ce, Ee = (e, t) => {
|
|
1342
|
+
let n = Te(e, t), r = e === "mg" ? "dark" : t;
|
|
1343
|
+
return {
|
|
1344
|
+
algorithm: r === "dark" ? U.darkAlgorithm : U.defaultAlgorithm,
|
|
1345
|
+
token: {
|
|
1346
|
+
fontFamily: Se,
|
|
1347
|
+
fontSize: 14,
|
|
1348
|
+
borderRadius: 6,
|
|
1349
|
+
borderRadiusSM: 4,
|
|
1350
|
+
borderRadiusLG: 8,
|
|
1351
|
+
borderRadiusXS: 2,
|
|
1352
|
+
controlOutlineWidth: 0,
|
|
1353
|
+
controlOutline: "transparent",
|
|
1354
|
+
colorPrimary: n.primary,
|
|
1355
|
+
colorPrimaryHover: n.primaryHover,
|
|
1356
|
+
colorPrimaryActive: n.primaryActive,
|
|
1357
|
+
colorLink: n.primary,
|
|
1358
|
+
colorLinkHover: n.primaryHover,
|
|
1359
|
+
colorLinkActive: n.primaryActive,
|
|
1360
|
+
colorText: n.text,
|
|
1361
|
+
colorTextSecondary: n.textSecondary,
|
|
1362
|
+
colorTextTertiary: n.textTertiary,
|
|
1363
|
+
colorTextQuaternary: n.textPlaceholder,
|
|
1364
|
+
colorTextPlaceholder: n.textPlaceholder,
|
|
1365
|
+
colorTextDisabled: n.textDisabled,
|
|
1366
|
+
colorBgContainer: n.bgContainer,
|
|
1367
|
+
colorBgElevated: n.bgElevated,
|
|
1368
|
+
colorBgLayout: n.bgLayout,
|
|
1369
|
+
colorBgSpotlight: n.bgSpotlight,
|
|
1370
|
+
colorBorder: n.border,
|
|
1371
|
+
colorBorderSecondary: n.borderSecondary,
|
|
1372
|
+
colorError: n.error,
|
|
1373
|
+
colorErrorHover: n.error,
|
|
1374
|
+
colorErrorActive: n.error,
|
|
1375
|
+
colorErrorBg: n.errorBg,
|
|
1376
|
+
colorErrorBorder: n.errorBorder,
|
|
1377
|
+
colorWarning: n.warning,
|
|
1378
|
+
colorWarningBg: n.warningBg,
|
|
1379
|
+
colorSuccess: n.success,
|
|
1380
|
+
colorSuccessBg: n.successBg,
|
|
1381
|
+
colorInfo: n.info,
|
|
1382
|
+
colorInfoBg: n.infoBg,
|
|
1383
|
+
boxShadow: "0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08)",
|
|
1384
|
+
boxShadowSecondary: "0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.08)"
|
|
1385
|
+
},
|
|
1386
|
+
components: {
|
|
1387
|
+
Button: {
|
|
1388
|
+
primaryShadow: "none",
|
|
1389
|
+
defaultShadow: "none",
|
|
1390
|
+
dangerShadow: "none",
|
|
1391
|
+
fontWeight: 700,
|
|
1392
|
+
controlHeight: 36,
|
|
1393
|
+
controlHeightSM: 28,
|
|
1394
|
+
controlHeightLG: 44,
|
|
1395
|
+
paddingInline: 12,
|
|
1396
|
+
paddingInlineSM: 8,
|
|
1397
|
+
paddingInlineLG: 16,
|
|
1398
|
+
contentFontSize: 14,
|
|
1399
|
+
contentFontSizeSM: 12,
|
|
1400
|
+
contentFontSizeLG: 16,
|
|
1401
|
+
contentLineHeight: 20 / 14,
|
|
1402
|
+
contentLineHeightSM: 16 / 12,
|
|
1403
|
+
contentLineHeightLG: 24 / 16,
|
|
1404
|
+
borderRadius: 6,
|
|
1405
|
+
borderRadiusSM: 4,
|
|
1406
|
+
borderRadiusLG: 8
|
|
1407
|
+
},
|
|
1408
|
+
Input: {
|
|
1409
|
+
activeShadow: "none",
|
|
1410
|
+
errorActiveShadow: "none",
|
|
1411
|
+
warningActiveShadow: "none",
|
|
1412
|
+
hoverBg: n.bgContainer,
|
|
1413
|
+
activeBg: n.bgContainer,
|
|
1414
|
+
hoverBorderColor: e === "mg" ? "#4c4c4c" : n.border,
|
|
1415
|
+
activeBorderColor: n.primary,
|
|
1416
|
+
paddingBlock: 8,
|
|
1417
|
+
paddingInline: 12,
|
|
1418
|
+
borderRadius: 6
|
|
1419
|
+
},
|
|
1420
|
+
InputNumber: {
|
|
1421
|
+
activeShadow: "none",
|
|
1422
|
+
errorActiveShadow: "none",
|
|
1423
|
+
warningActiveShadow: "none",
|
|
1424
|
+
hoverBorderColor: e === "mg" ? "#4c4c4c" : n.border,
|
|
1425
|
+
activeBorderColor: n.primary
|
|
1426
|
+
},
|
|
1427
|
+
Select: {
|
|
1428
|
+
activeBorderColor: n.primary,
|
|
1429
|
+
hoverBorderColor: e === "mg" ? "#4c4c4c" : n.border,
|
|
1430
|
+
optionSelectedBg: e === "mg" ? "#1e2634" : r === "dark" ? "#1e3a8a" : "#e8f0fe",
|
|
1431
|
+
optionSelectedColor: n.primary,
|
|
1432
|
+
optionActiveBg: e === "mg" ? "#292929" : r === "dark" ? "#374151" : "#f1f3f5",
|
|
1433
|
+
selectorBg: n.bgContainer
|
|
1434
|
+
},
|
|
1435
|
+
Modal: {
|
|
1436
|
+
borderRadiusLG: 12,
|
|
1437
|
+
contentBg: n.bgElevated,
|
|
1438
|
+
headerBg: n.bgElevated,
|
|
1439
|
+
titleColor: n.text,
|
|
1440
|
+
titleFontSize: 16
|
|
1441
|
+
},
|
|
1442
|
+
Tooltip: {
|
|
1443
|
+
colorBgSpotlight: n.bgSpotlight,
|
|
1444
|
+
borderRadius: 4,
|
|
1445
|
+
paddingXS: 4
|
|
1446
|
+
},
|
|
1447
|
+
Dropdown: {
|
|
1448
|
+
controlPaddingHorizontal: 12,
|
|
1449
|
+
borderRadiusLG: 6
|
|
1450
|
+
},
|
|
1451
|
+
Tag: { borderRadiusSM: 8 },
|
|
1452
|
+
Switch: {
|
|
1453
|
+
trackHeight: 16,
|
|
1454
|
+
trackPadding: 2,
|
|
1455
|
+
handleSize: 12,
|
|
1456
|
+
colorPrimary: n.primary,
|
|
1457
|
+
colorPrimaryHover: n.primaryHover
|
|
1458
|
+
},
|
|
1459
|
+
Checkbox: {
|
|
1460
|
+
borderRadiusSM: 3,
|
|
1461
|
+
controlInteractiveSize: 16
|
|
1462
|
+
},
|
|
1463
|
+
Radio: {
|
|
1464
|
+
radioSize: 16,
|
|
1465
|
+
dotSize: 8
|
|
1466
|
+
},
|
|
1467
|
+
Card: {
|
|
1468
|
+
colorBgContainer: n.bgElevated,
|
|
1469
|
+
borderRadiusLG: 8
|
|
1470
|
+
},
|
|
1471
|
+
Table: {
|
|
1472
|
+
headerBg: e === "mg" ? "#262626" : r === "dark" ? "#1f2937" : "#f1f3f5",
|
|
1473
|
+
rowHoverBg: e === "mg" ? "#1d1d1d" : r === "dark" ? "#1f2937" : "#fafafa",
|
|
1474
|
+
borderColor: n.borderSecondary
|
|
1475
|
+
},
|
|
1476
|
+
Menu: {
|
|
1477
|
+
itemBg: "transparent",
|
|
1478
|
+
itemHoverBg: e === "mg" ? "#1f1f1f" : r === "dark" ? "#374151" : "#f1f3f5",
|
|
1479
|
+
itemSelectedBg: e === "mg" ? "#1e2634" : r === "dark" ? "#1e3a8a" : "#e8f0fe",
|
|
1480
|
+
itemSelectedColor: n.primary
|
|
1481
|
+
},
|
|
1482
|
+
Layout: {
|
|
1483
|
+
bodyBg: n.bgLayout,
|
|
1484
|
+
headerBg: n.bgContainer,
|
|
1485
|
+
siderBg: n.bgContainer
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
};
|
|
1489
|
+
}, X = ({ brand: e = "base", mode: n = "light", children: r }) => (t(() => {
|
|
1490
|
+
xe();
|
|
1491
|
+
}, []), t(() => {
|
|
1492
|
+
if (typeof document < "u") {
|
|
1493
|
+
let t = e === "mg" ? "dark" : n;
|
|
1494
|
+
document.documentElement.dataset.mode = t, document.documentElement.dataset.brand = e;
|
|
1495
|
+
}
|
|
1496
|
+
}, [n, e]), /* @__PURE__ */ W(ae, {
|
|
1497
|
+
theme: Ee(e, n),
|
|
1498
|
+
wave: { disabled: !0 },
|
|
1499
|
+
children: r
|
|
1500
|
+
}));
|
|
1501
|
+
X.displayName = "CyturProvider";
|
|
1320
1502
|
//#endregion
|
|
1321
1503
|
//#region src/theme/tokens.ts
|
|
1322
|
-
var
|
|
1504
|
+
var Z = (e) => `var(--cytur-${e})`, De = {
|
|
1323
1505
|
label: {
|
|
1324
1506
|
default: {
|
|
1325
1507
|
bg: {
|
|
1326
|
-
solid:
|
|
1327
|
-
subtle:
|
|
1328
|
-
border:
|
|
1508
|
+
solid: Z("label-default-bg-solid"),
|
|
1509
|
+
subtle: Z("label-default-bg-subtle"),
|
|
1510
|
+
border: Z("label-default-bg-border")
|
|
1329
1511
|
},
|
|
1330
1512
|
text: {
|
|
1331
|
-
solid:
|
|
1332
|
-
subtle:
|
|
1333
|
-
border:
|
|
1513
|
+
solid: Z("label-default-text-solid"),
|
|
1514
|
+
subtle: Z("label-default-text-subtle"),
|
|
1515
|
+
border: Z("label-default-text-border")
|
|
1334
1516
|
},
|
|
1335
|
-
border:
|
|
1517
|
+
border: Z("label-default-border")
|
|
1336
1518
|
},
|
|
1337
1519
|
primary: {
|
|
1338
1520
|
bg: {
|
|
1339
|
-
solid:
|
|
1340
|
-
subtle:
|
|
1341
|
-
border:
|
|
1521
|
+
solid: Z("label-primary-bg-solid"),
|
|
1522
|
+
subtle: Z("label-primary-bg-subtle"),
|
|
1523
|
+
border: Z("label-primary-bg-border")
|
|
1342
1524
|
},
|
|
1343
1525
|
text: {
|
|
1344
|
-
solid:
|
|
1345
|
-
subtle:
|
|
1346
|
-
border:
|
|
1526
|
+
solid: Z("label-primary-text-solid"),
|
|
1527
|
+
subtle: Z("label-primary-text-subtle"),
|
|
1528
|
+
border: Z("label-primary-text-border")
|
|
1347
1529
|
},
|
|
1348
|
-
border:
|
|
1530
|
+
border: Z("label-primary-border")
|
|
1349
1531
|
},
|
|
1350
1532
|
info: {
|
|
1351
1533
|
bg: {
|
|
1352
|
-
solid:
|
|
1353
|
-
subtle:
|
|
1354
|
-
border:
|
|
1534
|
+
solid: Z("label-info-bg-solid"),
|
|
1535
|
+
subtle: Z("label-info-bg-subtle"),
|
|
1536
|
+
border: Z("label-info-bg-border")
|
|
1355
1537
|
},
|
|
1356
1538
|
text: {
|
|
1357
|
-
solid:
|
|
1358
|
-
subtle:
|
|
1359
|
-
border:
|
|
1539
|
+
solid: Z("label-info-text-solid"),
|
|
1540
|
+
subtle: Z("label-info-text-subtle"),
|
|
1541
|
+
border: Z("label-info-text-border")
|
|
1360
1542
|
},
|
|
1361
|
-
border:
|
|
1543
|
+
border: Z("label-info-border")
|
|
1362
1544
|
},
|
|
1363
1545
|
success: {
|
|
1364
1546
|
bg: {
|
|
1365
|
-
solid:
|
|
1366
|
-
subtle:
|
|
1367
|
-
border:
|
|
1547
|
+
solid: Z("label-success-bg-solid"),
|
|
1548
|
+
subtle: Z("label-success-bg-subtle"),
|
|
1549
|
+
border: Z("label-success-bg-border")
|
|
1368
1550
|
},
|
|
1369
1551
|
text: {
|
|
1370
|
-
solid:
|
|
1371
|
-
subtle:
|
|
1372
|
-
border:
|
|
1552
|
+
solid: Z("label-success-text-solid"),
|
|
1553
|
+
subtle: Z("label-success-text-subtle"),
|
|
1554
|
+
border: Z("label-success-text-border")
|
|
1373
1555
|
},
|
|
1374
|
-
border:
|
|
1556
|
+
border: Z("label-success-border")
|
|
1375
1557
|
},
|
|
1376
1558
|
warning: {
|
|
1377
1559
|
bg: {
|
|
1378
|
-
solid:
|
|
1379
|
-
subtle:
|
|
1380
|
-
border:
|
|
1560
|
+
solid: Z("label-warning-bg-solid"),
|
|
1561
|
+
subtle: Z("label-warning-bg-subtle"),
|
|
1562
|
+
border: Z("label-warning-bg-border")
|
|
1381
1563
|
},
|
|
1382
1564
|
text: {
|
|
1383
|
-
solid:
|
|
1384
|
-
subtle:
|
|
1385
|
-
border:
|
|
1565
|
+
solid: Z("label-warning-text-solid"),
|
|
1566
|
+
subtle: Z("label-warning-text-subtle"),
|
|
1567
|
+
border: Z("label-warning-text-border")
|
|
1386
1568
|
},
|
|
1387
|
-
border:
|
|
1569
|
+
border: Z("label-warning-border")
|
|
1388
1570
|
},
|
|
1389
1571
|
danger: {
|
|
1390
1572
|
bg: {
|
|
1391
|
-
solid:
|
|
1392
|
-
subtle:
|
|
1393
|
-
border:
|
|
1573
|
+
solid: Z("label-danger-bg-solid"),
|
|
1574
|
+
subtle: Z("label-danger-bg-subtle"),
|
|
1575
|
+
border: Z("label-danger-bg-border")
|
|
1394
1576
|
},
|
|
1395
1577
|
text: {
|
|
1396
|
-
solid:
|
|
1397
|
-
subtle:
|
|
1398
|
-
border:
|
|
1578
|
+
solid: Z("label-danger-text-solid"),
|
|
1579
|
+
subtle: Z("label-danger-text-subtle"),
|
|
1580
|
+
border: Z("label-danger-text-border")
|
|
1399
1581
|
},
|
|
1400
|
-
border:
|
|
1582
|
+
border: Z("label-danger-border")
|
|
1401
1583
|
}
|
|
1402
1584
|
},
|
|
1403
1585
|
tag: {
|
|
1404
|
-
radius:
|
|
1586
|
+
radius: Z("tag-radius"),
|
|
1405
1587
|
size: {
|
|
1406
1588
|
sm: {
|
|
1407
|
-
height:
|
|
1408
|
-
paddingX:
|
|
1409
|
-
gap:
|
|
1410
|
-
icon:
|
|
1411
|
-
fontSize:
|
|
1412
|
-
lineHeight:
|
|
1589
|
+
height: Z("tag-sm-height"),
|
|
1590
|
+
paddingX: Z("tag-sm-padding-x"),
|
|
1591
|
+
gap: Z("tag-sm-gap"),
|
|
1592
|
+
icon: Z("tag-sm-icon-size"),
|
|
1593
|
+
fontSize: Z("tag-sm-font-size"),
|
|
1594
|
+
lineHeight: Z("tag-sm-line-height")
|
|
1413
1595
|
},
|
|
1414
1596
|
md: {
|
|
1415
|
-
height:
|
|
1416
|
-
paddingX:
|
|
1417
|
-
gap:
|
|
1418
|
-
icon:
|
|
1419
|
-
fontSize:
|
|
1420
|
-
lineHeight:
|
|
1597
|
+
height: Z("tag-md-height"),
|
|
1598
|
+
paddingX: Z("tag-md-padding-x"),
|
|
1599
|
+
gap: Z("tag-md-gap"),
|
|
1600
|
+
icon: Z("tag-md-icon-size"),
|
|
1601
|
+
fontSize: Z("tag-md-font-size"),
|
|
1602
|
+
lineHeight: Z("tag-md-line-height")
|
|
1421
1603
|
},
|
|
1422
1604
|
lg: {
|
|
1423
|
-
height:
|
|
1424
|
-
paddingX:
|
|
1425
|
-
gap:
|
|
1426
|
-
icon:
|
|
1427
|
-
fontSize:
|
|
1428
|
-
lineHeight:
|
|
1605
|
+
height: Z("tag-lg-height"),
|
|
1606
|
+
paddingX: Z("tag-lg-padding-x"),
|
|
1607
|
+
gap: Z("tag-lg-gap"),
|
|
1608
|
+
icon: Z("tag-lg-icon-size"),
|
|
1609
|
+
fontSize: Z("tag-lg-font-size"),
|
|
1610
|
+
lineHeight: Z("tag-lg-line-height")
|
|
1429
1611
|
}
|
|
1430
1612
|
},
|
|
1431
1613
|
neutral: {
|
|
1432
1614
|
bg: {
|
|
1433
|
-
default:
|
|
1434
|
-
hover:
|
|
1435
|
-
selected:
|
|
1615
|
+
default: Z("tag-neutral-bg"),
|
|
1616
|
+
hover: Z("tag-neutral-bg-hover"),
|
|
1617
|
+
selected: Z("tag-neutral-bg-selected")
|
|
1436
1618
|
},
|
|
1437
|
-
border:
|
|
1438
|
-
text:
|
|
1619
|
+
border: Z("tag-neutral-border"),
|
|
1620
|
+
text: Z("tag-neutral-text")
|
|
1439
1621
|
},
|
|
1440
1622
|
gray: {
|
|
1441
1623
|
bg: {
|
|
1442
|
-
default:
|
|
1443
|
-
hover:
|
|
1444
|
-
selected:
|
|
1624
|
+
default: Z("tag-gray-bg"),
|
|
1625
|
+
hover: Z("tag-gray-bg-hover"),
|
|
1626
|
+
selected: Z("tag-gray-bg-selected")
|
|
1445
1627
|
},
|
|
1446
|
-
border:
|
|
1447
|
-
text:
|
|
1628
|
+
border: Z("tag-gray-border"),
|
|
1629
|
+
text: Z("tag-gray-text")
|
|
1448
1630
|
},
|
|
1449
1631
|
red: {
|
|
1450
1632
|
bg: {
|
|
1451
|
-
default:
|
|
1452
|
-
hover:
|
|
1453
|
-
selected:
|
|
1633
|
+
default: Z("tag-red-bg"),
|
|
1634
|
+
hover: Z("tag-red-bg-hover"),
|
|
1635
|
+
selected: Z("tag-red-bg-selected")
|
|
1454
1636
|
},
|
|
1455
|
-
border:
|
|
1456
|
-
text:
|
|
1637
|
+
border: Z("tag-red-border"),
|
|
1638
|
+
text: Z("tag-red-text")
|
|
1457
1639
|
},
|
|
1458
1640
|
ot: {
|
|
1459
1641
|
bg: {
|
|
1460
|
-
default:
|
|
1461
|
-
hover:
|
|
1462
|
-
selected:
|
|
1642
|
+
default: Z("tag-ot-bg"),
|
|
1643
|
+
hover: Z("tag-ot-bg-hover"),
|
|
1644
|
+
selected: Z("tag-ot-bg-selected")
|
|
1463
1645
|
},
|
|
1464
|
-
border:
|
|
1465
|
-
text:
|
|
1646
|
+
border: Z("tag-ot-border"),
|
|
1647
|
+
text: Z("tag-ot-text")
|
|
1466
1648
|
},
|
|
1467
1649
|
it: {
|
|
1468
1650
|
bg: {
|
|
1469
|
-
default:
|
|
1470
|
-
hover:
|
|
1471
|
-
selected:
|
|
1651
|
+
default: Z("tag-it-bg"),
|
|
1652
|
+
hover: Z("tag-it-bg-hover"),
|
|
1653
|
+
selected: Z("tag-it-bg-selected")
|
|
1472
1654
|
},
|
|
1473
|
-
border:
|
|
1474
|
-
text:
|
|
1655
|
+
border: Z("tag-it-border"),
|
|
1656
|
+
text: Z("tag-it-text")
|
|
1475
1657
|
},
|
|
1476
1658
|
brand: {
|
|
1477
1659
|
bg: {
|
|
1478
|
-
default:
|
|
1479
|
-
hover:
|
|
1480
|
-
selected:
|
|
1660
|
+
default: Z("tag-brand-bg"),
|
|
1661
|
+
hover: Z("tag-brand-bg-hover"),
|
|
1662
|
+
selected: Z("tag-brand-bg-selected")
|
|
1481
1663
|
},
|
|
1482
|
-
border:
|
|
1483
|
-
text:
|
|
1664
|
+
border: Z("tag-brand-border"),
|
|
1665
|
+
text: Z("tag-brand-text")
|
|
1484
1666
|
},
|
|
1485
1667
|
disabled: {
|
|
1486
|
-
bg:
|
|
1487
|
-
border:
|
|
1488
|
-
text:
|
|
1668
|
+
bg: Z("tag-disabled-bg"),
|
|
1669
|
+
border: Z("tag-disabled-border"),
|
|
1670
|
+
text: Z("tag-disabled-text")
|
|
1489
1671
|
}
|
|
1490
1672
|
},
|
|
1491
1673
|
action: {
|
|
1492
1674
|
primary: {
|
|
1493
|
-
default:
|
|
1494
|
-
hover:
|
|
1495
|
-
active:
|
|
1675
|
+
default: Z("action-primary"),
|
|
1676
|
+
hover: Z("action-primary-hover"),
|
|
1677
|
+
active: Z("action-primary-active")
|
|
1496
1678
|
},
|
|
1497
1679
|
secondary: {
|
|
1498
|
-
default:
|
|
1499
|
-
hover:
|
|
1500
|
-
active:
|
|
1680
|
+
default: Z("action-secondary"),
|
|
1681
|
+
hover: Z("action-secondary-hover"),
|
|
1682
|
+
active: Z("action-secondary-active")
|
|
1501
1683
|
},
|
|
1502
1684
|
danger: {
|
|
1503
|
-
default:
|
|
1504
|
-
hover:
|
|
1505
|
-
active:
|
|
1685
|
+
default: Z("action-danger"),
|
|
1686
|
+
hover: Z("action-danger-hover"),
|
|
1687
|
+
active: Z("action-danger-active")
|
|
1506
1688
|
}
|
|
1507
1689
|
},
|
|
1508
1690
|
bg: {
|
|
1509
|
-
surface:
|
|
1510
|
-
subtle:
|
|
1511
|
-
secondarySubtle:
|
|
1512
|
-
dangerSubtle:
|
|
1513
|
-
page:
|
|
1514
|
-
modal:
|
|
1691
|
+
surface: Z("bg-surface"),
|
|
1692
|
+
subtle: Z("bg-subtle"),
|
|
1693
|
+
secondarySubtle: Z("bg-secondary-subtle"),
|
|
1694
|
+
dangerSubtle: Z("bg-danger-subtle"),
|
|
1695
|
+
page: Z("bg-page"),
|
|
1696
|
+
modal: Z("bg-modal"),
|
|
1515
1697
|
neutral: {
|
|
1516
|
-
default:
|
|
1517
|
-
secondary:
|
|
1518
|
-
tertiary:
|
|
1698
|
+
default: Z("bg-neutral-default"),
|
|
1699
|
+
secondary: Z("bg-neutral-secondary"),
|
|
1700
|
+
tertiary: Z("bg-neutral-tertiary")
|
|
1519
1701
|
},
|
|
1520
1702
|
table: {
|
|
1521
|
-
header:
|
|
1522
|
-
row:
|
|
1523
|
-
rowHover:
|
|
1703
|
+
header: Z("bg-table-header"),
|
|
1704
|
+
row: Z("bg-table-row"),
|
|
1705
|
+
rowHover: Z("bg-table-row-hover")
|
|
1524
1706
|
},
|
|
1525
1707
|
brand: {
|
|
1526
|
-
default:
|
|
1527
|
-
hover:
|
|
1528
|
-
secondary:
|
|
1708
|
+
default: Z("bg-brand-default"),
|
|
1709
|
+
hover: Z("bg-brand-hover"),
|
|
1710
|
+
secondary: Z("bg-brand-secondary")
|
|
1529
1711
|
},
|
|
1530
1712
|
alarm: {
|
|
1531
|
-
default:
|
|
1532
|
-
hover:
|
|
1713
|
+
default: Z("bg-alarm-default"),
|
|
1714
|
+
hover: Z("bg-alarm-hover")
|
|
1533
1715
|
},
|
|
1534
1716
|
status: {
|
|
1535
|
-
error:
|
|
1536
|
-
errorTint:
|
|
1537
|
-
info:
|
|
1538
|
-
success:
|
|
1539
|
-
warning:
|
|
1717
|
+
error: Z("bg-status-error"),
|
|
1718
|
+
errorTint: Z("bg-status-error-tint"),
|
|
1719
|
+
info: Z("bg-status-info"),
|
|
1720
|
+
success: Z("bg-status-success"),
|
|
1721
|
+
warning: Z("bg-status-warning")
|
|
1540
1722
|
},
|
|
1541
1723
|
threat: {
|
|
1542
|
-
default:
|
|
1543
|
-
alarm:
|
|
1544
|
-
caution:
|
|
1545
|
-
emergency:
|
|
1546
|
-
warning:
|
|
1724
|
+
default: Z("bg-threat-default"),
|
|
1725
|
+
alarm: Z("bg-threat-alarm"),
|
|
1726
|
+
caution: Z("bg-threat-caution"),
|
|
1727
|
+
emergency: Z("bg-threat-emergency"),
|
|
1728
|
+
warning: Z("bg-threat-warning")
|
|
1547
1729
|
}
|
|
1548
1730
|
},
|
|
1549
1731
|
text: {
|
|
1550
|
-
primary:
|
|
1551
|
-
secondary:
|
|
1552
|
-
secondaryAction:
|
|
1553
|
-
primaryAction:
|
|
1554
|
-
muted:
|
|
1555
|
-
danger:
|
|
1556
|
-
inverse:
|
|
1557
|
-
disabled:
|
|
1558
|
-
tertiary:
|
|
1559
|
-
mutedStrong:
|
|
1560
|
-
placeholder:
|
|
1561
|
-
onBrand:
|
|
1732
|
+
primary: Z("text-primary"),
|
|
1733
|
+
secondary: Z("text-secondary"),
|
|
1734
|
+
secondaryAction: Z("text-secondary-action"),
|
|
1735
|
+
primaryAction: Z("text-primary-action"),
|
|
1736
|
+
muted: Z("text-muted"),
|
|
1737
|
+
danger: Z("text-danger"),
|
|
1738
|
+
inverse: Z("text-inverse"),
|
|
1739
|
+
disabled: Z("text-disabled"),
|
|
1740
|
+
tertiary: Z("text-tertiary"),
|
|
1741
|
+
mutedStrong: Z("text-muted-strong"),
|
|
1742
|
+
placeholder: Z("text-placeholder"),
|
|
1743
|
+
onBrand: Z("text-on-brand"),
|
|
1562
1744
|
brand: {
|
|
1563
|
-
default:
|
|
1564
|
-
hover:
|
|
1745
|
+
default: Z("text-brand-default"),
|
|
1746
|
+
hover: Z("text-brand-hover")
|
|
1565
1747
|
},
|
|
1566
1748
|
status: {
|
|
1567
|
-
error:
|
|
1568
|
-
info:
|
|
1569
|
-
success:
|
|
1570
|
-
warning:
|
|
1749
|
+
error: Z("text-status-error"),
|
|
1750
|
+
info: Z("text-status-info"),
|
|
1751
|
+
success: Z("text-status-success"),
|
|
1752
|
+
warning: Z("text-status-warning")
|
|
1571
1753
|
},
|
|
1572
1754
|
threat: {
|
|
1573
|
-
default:
|
|
1574
|
-
alarm:
|
|
1575
|
-
caution:
|
|
1576
|
-
emergency:
|
|
1577
|
-
warning:
|
|
1755
|
+
default: Z("text-threat-default"),
|
|
1756
|
+
alarm: Z("text-threat-alarm"),
|
|
1757
|
+
caution: Z("text-threat-caution"),
|
|
1758
|
+
emergency: Z("text-threat-emergency"),
|
|
1759
|
+
warning: Z("text-threat-warning")
|
|
1578
1760
|
},
|
|
1579
1761
|
purpose: {
|
|
1580
|
-
normal:
|
|
1581
|
-
expiring:
|
|
1582
|
-
expired:
|
|
1762
|
+
normal: Z("text-purpose-normal"),
|
|
1763
|
+
expiring: Z("text-purpose-expiring"),
|
|
1764
|
+
expired: Z("text-purpose-expired")
|
|
1583
1765
|
}
|
|
1584
1766
|
},
|
|
1585
1767
|
border: {
|
|
1586
|
-
default:
|
|
1587
|
-
secondary:
|
|
1588
|
-
danger:
|
|
1589
|
-
focus:
|
|
1590
|
-
defaultHover:
|
|
1591
|
-
strong:
|
|
1592
|
-
table:
|
|
1768
|
+
default: Z("border-default"),
|
|
1769
|
+
secondary: Z("border-secondary"),
|
|
1770
|
+
danger: Z("border-danger"),
|
|
1771
|
+
focus: Z("border-focus"),
|
|
1772
|
+
defaultHover: Z("border-default-hover"),
|
|
1773
|
+
strong: Z("border-strong"),
|
|
1774
|
+
table: Z("border-table"),
|
|
1593
1775
|
status: {
|
|
1594
|
-
error:
|
|
1595
|
-
success:
|
|
1596
|
-
warning:
|
|
1776
|
+
error: Z("border-status-error"),
|
|
1777
|
+
success: Z("border-status-success"),
|
|
1778
|
+
warning: Z("border-status-warning")
|
|
1597
1779
|
},
|
|
1598
1780
|
topology: {
|
|
1599
|
-
connected:
|
|
1600
|
-
disconnected:
|
|
1601
|
-
unknown:
|
|
1781
|
+
connected: Z("border-topology-connected"),
|
|
1782
|
+
disconnected: Z("border-topology-disconnected"),
|
|
1783
|
+
unknown: Z("border-topology-unknown")
|
|
1602
1784
|
}
|
|
1603
1785
|
},
|
|
1604
1786
|
disabled: {
|
|
1605
|
-
bg:
|
|
1606
|
-
border:
|
|
1607
|
-
text:
|
|
1787
|
+
bg: Z("disabled-bg"),
|
|
1788
|
+
border: Z("disabled-border"),
|
|
1789
|
+
text: Z("disabled-text")
|
|
1608
1790
|
},
|
|
1609
1791
|
button: {
|
|
1610
1792
|
base: {
|
|
1611
|
-
borderWidth:
|
|
1612
|
-
fontWeight:
|
|
1613
|
-
transition:
|
|
1793
|
+
borderWidth: Z("button-base-border-width"),
|
|
1794
|
+
fontWeight: Z("button-base-font-weight"),
|
|
1795
|
+
transition: Z("button-base-transition")
|
|
1614
1796
|
},
|
|
1615
1797
|
primary: {
|
|
1616
1798
|
bg: {
|
|
1617
|
-
default:
|
|
1618
|
-
hover:
|
|
1619
|
-
active:
|
|
1620
|
-
focus:
|
|
1621
|
-
disabled:
|
|
1799
|
+
default: Z("button-primary-bg-default"),
|
|
1800
|
+
hover: Z("button-primary-bg-hover"),
|
|
1801
|
+
active: Z("button-primary-bg-active"),
|
|
1802
|
+
focus: Z("button-primary-bg-focus"),
|
|
1803
|
+
disabled: Z("button-primary-bg-disabled")
|
|
1622
1804
|
},
|
|
1623
1805
|
text: {
|
|
1624
|
-
default:
|
|
1625
|
-
hover:
|
|
1626
|
-
active:
|
|
1627
|
-
focus:
|
|
1628
|
-
disabled:
|
|
1806
|
+
default: Z("button-primary-text-default"),
|
|
1807
|
+
hover: Z("button-primary-text-hover"),
|
|
1808
|
+
active: Z("button-primary-text-active"),
|
|
1809
|
+
focus: Z("button-primary-text-focus"),
|
|
1810
|
+
disabled: Z("button-primary-text-disabled")
|
|
1629
1811
|
},
|
|
1630
1812
|
border: {
|
|
1631
|
-
default:
|
|
1632
|
-
hover:
|
|
1633
|
-
active:
|
|
1634
|
-
focus:
|
|
1635
|
-
disabled:
|
|
1813
|
+
default: Z("button-primary-border-default"),
|
|
1814
|
+
hover: Z("button-primary-border-hover"),
|
|
1815
|
+
active: Z("button-primary-border-active"),
|
|
1816
|
+
focus: Z("button-primary-border-focus"),
|
|
1817
|
+
disabled: Z("button-primary-border-disabled")
|
|
1636
1818
|
}
|
|
1637
1819
|
},
|
|
1638
1820
|
secondary: {
|
|
1639
1821
|
bg: {
|
|
1640
|
-
default:
|
|
1641
|
-
hover:
|
|
1642
|
-
active:
|
|
1643
|
-
focus:
|
|
1644
|
-
disabled:
|
|
1822
|
+
default: Z("button-secondary-bg-default"),
|
|
1823
|
+
hover: Z("button-secondary-bg-hover"),
|
|
1824
|
+
active: Z("button-secondary-bg-active"),
|
|
1825
|
+
focus: Z("button-secondary-bg-focus"),
|
|
1826
|
+
disabled: Z("button-secondary-bg-disabled")
|
|
1645
1827
|
},
|
|
1646
1828
|
text: {
|
|
1647
|
-
default:
|
|
1648
|
-
hover:
|
|
1649
|
-
active:
|
|
1650
|
-
focus:
|
|
1651
|
-
disabled:
|
|
1829
|
+
default: Z("button-secondary-text-default"),
|
|
1830
|
+
hover: Z("button-secondary-text-hover"),
|
|
1831
|
+
active: Z("button-secondary-text-active"),
|
|
1832
|
+
focus: Z("button-secondary-text-focus"),
|
|
1833
|
+
disabled: Z("button-secondary-text-disabled")
|
|
1652
1834
|
},
|
|
1653
1835
|
border: {
|
|
1654
|
-
default:
|
|
1655
|
-
hover:
|
|
1656
|
-
active:
|
|
1657
|
-
focus:
|
|
1658
|
-
disabled:
|
|
1836
|
+
default: Z("button-secondary-border-default"),
|
|
1837
|
+
hover: Z("button-secondary-border-hover"),
|
|
1838
|
+
active: Z("button-secondary-border-active"),
|
|
1839
|
+
focus: Z("button-secondary-border-focus"),
|
|
1840
|
+
disabled: Z("button-secondary-border-disabled")
|
|
1659
1841
|
}
|
|
1660
1842
|
},
|
|
1661
1843
|
ghost: {
|
|
1662
1844
|
bg: {
|
|
1663
|
-
default:
|
|
1664
|
-
hover:
|
|
1665
|
-
active:
|
|
1666
|
-
focus:
|
|
1667
|
-
disabled:
|
|
1845
|
+
default: Z("button-ghost-bg-default"),
|
|
1846
|
+
hover: Z("button-ghost-bg-hover"),
|
|
1847
|
+
active: Z("button-ghost-bg-active"),
|
|
1848
|
+
focus: Z("button-ghost-bg-focus"),
|
|
1849
|
+
disabled: Z("button-ghost-bg-disabled")
|
|
1668
1850
|
},
|
|
1669
1851
|
text: {
|
|
1670
|
-
default:
|
|
1671
|
-
hover:
|
|
1672
|
-
active:
|
|
1673
|
-
focus:
|
|
1674
|
-
disabled:
|
|
1852
|
+
default: Z("button-ghost-text-default"),
|
|
1853
|
+
hover: Z("button-ghost-text-hover"),
|
|
1854
|
+
active: Z("button-ghost-text-active"),
|
|
1855
|
+
focus: Z("button-ghost-text-focus"),
|
|
1856
|
+
disabled: Z("button-ghost-text-disabled")
|
|
1675
1857
|
},
|
|
1676
1858
|
border: {
|
|
1677
|
-
default:
|
|
1678
|
-
hover:
|
|
1679
|
-
active:
|
|
1680
|
-
focus:
|
|
1681
|
-
disabled:
|
|
1859
|
+
default: Z("button-ghost-border-default"),
|
|
1860
|
+
hover: Z("button-ghost-border-hover"),
|
|
1861
|
+
active: Z("button-ghost-border-active"),
|
|
1862
|
+
focus: Z("button-ghost-border-focus"),
|
|
1863
|
+
disabled: Z("button-ghost-border-disabled")
|
|
1682
1864
|
}
|
|
1683
1865
|
},
|
|
1684
1866
|
danger: {
|
|
1685
1867
|
bg: {
|
|
1686
|
-
default:
|
|
1687
|
-
hover:
|
|
1688
|
-
active:
|
|
1689
|
-
focus:
|
|
1690
|
-
disabled:
|
|
1868
|
+
default: Z("button-danger-bg-default"),
|
|
1869
|
+
hover: Z("button-danger-bg-hover"),
|
|
1870
|
+
active: Z("button-danger-bg-active"),
|
|
1871
|
+
focus: Z("button-danger-bg-focus"),
|
|
1872
|
+
disabled: Z("button-danger-bg-disabled")
|
|
1691
1873
|
},
|
|
1692
1874
|
text: {
|
|
1693
|
-
default:
|
|
1694
|
-
hover:
|
|
1695
|
-
active:
|
|
1696
|
-
focus:
|
|
1697
|
-
disabled:
|
|
1875
|
+
default: Z("button-danger-text-default"),
|
|
1876
|
+
hover: Z("button-danger-text-hover"),
|
|
1877
|
+
active: Z("button-danger-text-active"),
|
|
1878
|
+
focus: Z("button-danger-text-focus"),
|
|
1879
|
+
disabled: Z("button-danger-text-disabled")
|
|
1698
1880
|
},
|
|
1699
1881
|
border: {
|
|
1700
|
-
default:
|
|
1701
|
-
hover:
|
|
1702
|
-
active:
|
|
1703
|
-
focus:
|
|
1704
|
-
disabled:
|
|
1882
|
+
default: Z("button-danger-border-default"),
|
|
1883
|
+
hover: Z("button-danger-border-hover"),
|
|
1884
|
+
active: Z("button-danger-border-active"),
|
|
1885
|
+
focus: Z("button-danger-border-focus"),
|
|
1886
|
+
disabled: Z("button-danger-border-disabled")
|
|
1705
1887
|
}
|
|
1706
1888
|
},
|
|
1707
1889
|
tertiary: {
|
|
1708
1890
|
bg: {
|
|
1709
|
-
default:
|
|
1710
|
-
hover:
|
|
1711
|
-
active:
|
|
1712
|
-
focus:
|
|
1713
|
-
disabled:
|
|
1891
|
+
default: Z("button-tertiary-bg-default"),
|
|
1892
|
+
hover: Z("button-tertiary-bg-hover"),
|
|
1893
|
+
active: Z("button-tertiary-bg-active"),
|
|
1894
|
+
focus: Z("button-tertiary-bg-focus"),
|
|
1895
|
+
disabled: Z("button-tertiary-bg-disabled")
|
|
1714
1896
|
},
|
|
1715
1897
|
text: {
|
|
1716
|
-
default:
|
|
1717
|
-
hover:
|
|
1718
|
-
active:
|
|
1719
|
-
focus:
|
|
1720
|
-
disabled:
|
|
1898
|
+
default: Z("button-tertiary-text-default"),
|
|
1899
|
+
hover: Z("button-tertiary-text-hover"),
|
|
1900
|
+
active: Z("button-tertiary-text-active"),
|
|
1901
|
+
focus: Z("button-tertiary-text-focus"),
|
|
1902
|
+
disabled: Z("button-tertiary-text-disabled")
|
|
1721
1903
|
},
|
|
1722
1904
|
border: {
|
|
1723
|
-
default:
|
|
1724
|
-
hover:
|
|
1725
|
-
active:
|
|
1726
|
-
focus:
|
|
1727
|
-
disabled:
|
|
1905
|
+
default: Z("button-tertiary-border-default"),
|
|
1906
|
+
hover: Z("button-tertiary-border-hover"),
|
|
1907
|
+
active: Z("button-tertiary-border-active"),
|
|
1908
|
+
focus: Z("button-tertiary-border-focus"),
|
|
1909
|
+
disabled: Z("button-tertiary-border-disabled")
|
|
1728
1910
|
}
|
|
1729
1911
|
},
|
|
1730
1912
|
softDanger: {
|
|
1731
1913
|
bg: {
|
|
1732
|
-
default:
|
|
1733
|
-
hover:
|
|
1734
|
-
active:
|
|
1735
|
-
focus:
|
|
1736
|
-
disabled:
|
|
1914
|
+
default: Z("button-softdanger-bg-default"),
|
|
1915
|
+
hover: Z("button-softdanger-bg-hover"),
|
|
1916
|
+
active: Z("button-softdanger-bg-active"),
|
|
1917
|
+
focus: Z("button-softdanger-bg-focus"),
|
|
1918
|
+
disabled: Z("button-softdanger-bg-disabled")
|
|
1737
1919
|
},
|
|
1738
1920
|
text: {
|
|
1739
|
-
default:
|
|
1740
|
-
hover:
|
|
1741
|
-
active:
|
|
1742
|
-
focus:
|
|
1743
|
-
disabled:
|
|
1921
|
+
default: Z("button-softdanger-text-default"),
|
|
1922
|
+
hover: Z("button-softdanger-text-hover"),
|
|
1923
|
+
active: Z("button-softdanger-text-active"),
|
|
1924
|
+
focus: Z("button-softdanger-text-focus"),
|
|
1925
|
+
disabled: Z("button-softdanger-text-disabled")
|
|
1744
1926
|
},
|
|
1745
1927
|
border: {
|
|
1746
|
-
default:
|
|
1747
|
-
hover:
|
|
1748
|
-
active:
|
|
1749
|
-
focus:
|
|
1750
|
-
disabled:
|
|
1928
|
+
default: Z("button-softdanger-border-default"),
|
|
1929
|
+
hover: Z("button-softdanger-border-hover"),
|
|
1930
|
+
active: Z("button-softdanger-border-active"),
|
|
1931
|
+
focus: Z("button-softdanger-border-focus"),
|
|
1932
|
+
disabled: Z("button-softdanger-border-disabled")
|
|
1751
1933
|
}
|
|
1752
1934
|
},
|
|
1753
1935
|
size: {
|
|
1754
1936
|
sm: {
|
|
1755
|
-
height:
|
|
1756
|
-
paddingX:
|
|
1757
|
-
paddingY:
|
|
1758
|
-
gap:
|
|
1759
|
-
radius:
|
|
1760
|
-
icon:
|
|
1937
|
+
height: Z("button-size-sm-height"),
|
|
1938
|
+
paddingX: Z("button-size-sm-padding-x"),
|
|
1939
|
+
paddingY: Z("button-size-sm-padding-y"),
|
|
1940
|
+
gap: Z("button-size-sm-gap"),
|
|
1941
|
+
radius: Z("button-size-sm-radius"),
|
|
1942
|
+
icon: Z("button-size-sm-icon")
|
|
1761
1943
|
},
|
|
1762
1944
|
md: {
|
|
1763
|
-
height:
|
|
1764
|
-
paddingX:
|
|
1765
|
-
paddingY:
|
|
1766
|
-
gap:
|
|
1767
|
-
radius:
|
|
1768
|
-
icon:
|
|
1945
|
+
height: Z("button-size-md-height"),
|
|
1946
|
+
paddingX: Z("button-size-md-padding-x"),
|
|
1947
|
+
paddingY: Z("button-size-md-padding-y"),
|
|
1948
|
+
gap: Z("button-size-md-gap"),
|
|
1949
|
+
radius: Z("button-size-md-radius"),
|
|
1950
|
+
icon: Z("button-size-md-icon")
|
|
1769
1951
|
},
|
|
1770
1952
|
lg: {
|
|
1771
|
-
height:
|
|
1772
|
-
paddingX:
|
|
1773
|
-
paddingY:
|
|
1774
|
-
gap:
|
|
1775
|
-
radius:
|
|
1776
|
-
icon:
|
|
1953
|
+
height: Z("button-size-lg-height"),
|
|
1954
|
+
paddingX: Z("button-size-lg-padding-x"),
|
|
1955
|
+
paddingY: Z("button-size-lg-padding-y"),
|
|
1956
|
+
gap: Z("button-size-lg-gap"),
|
|
1957
|
+
radius: Z("button-size-lg-radius"),
|
|
1958
|
+
icon: Z("button-size-lg-icon")
|
|
1777
1959
|
}
|
|
1778
1960
|
}
|
|
1779
1961
|
},
|
|
1780
1962
|
iconButton: {
|
|
1781
|
-
radius:
|
|
1963
|
+
radius: Z("iconbutton-radius"),
|
|
1782
1964
|
size: {
|
|
1783
1965
|
sm: {
|
|
1784
|
-
box:
|
|
1785
|
-
icon:
|
|
1966
|
+
box: Z("iconbutton-size-sm"),
|
|
1967
|
+
icon: Z("iconbutton-icon-sm")
|
|
1786
1968
|
},
|
|
1787
1969
|
md: {
|
|
1788
|
-
box:
|
|
1789
|
-
icon:
|
|
1970
|
+
box: Z("iconbutton-size-md"),
|
|
1971
|
+
icon: Z("iconbutton-icon-md")
|
|
1790
1972
|
},
|
|
1791
1973
|
lg: {
|
|
1792
|
-
box:
|
|
1793
|
-
icon:
|
|
1974
|
+
box: Z("iconbutton-size-lg"),
|
|
1975
|
+
icon: Z("iconbutton-icon-lg")
|
|
1794
1976
|
}
|
|
1795
1977
|
},
|
|
1796
1978
|
bg: {
|
|
1797
|
-
default:
|
|
1798
|
-
hover:
|
|
1799
|
-
active:
|
|
1800
|
-
disabled:
|
|
1979
|
+
default: Z("iconbutton-bg-default"),
|
|
1980
|
+
hover: Z("iconbutton-bg-hover"),
|
|
1981
|
+
active: Z("iconbutton-bg-active"),
|
|
1982
|
+
disabled: Z("iconbutton-bg-disabled")
|
|
1801
1983
|
},
|
|
1802
1984
|
icon: {
|
|
1803
|
-
default:
|
|
1804
|
-
hover:
|
|
1805
|
-
active:
|
|
1806
|
-
disabled:
|
|
1985
|
+
default: Z("iconbutton-icon-default"),
|
|
1986
|
+
hover: Z("iconbutton-icon-hover"),
|
|
1987
|
+
active: Z("iconbutton-icon-active"),
|
|
1988
|
+
disabled: Z("iconbutton-icon-disabled")
|
|
1807
1989
|
}
|
|
1808
1990
|
},
|
|
1809
1991
|
input: {
|
|
1810
|
-
radius:
|
|
1992
|
+
radius: Z("input-radius"),
|
|
1811
1993
|
size: {
|
|
1812
1994
|
sm: {
|
|
1813
|
-
height:
|
|
1814
|
-
paddingX:
|
|
1815
|
-
gap:
|
|
1816
|
-
icon:
|
|
1817
|
-
fontSize:
|
|
1995
|
+
height: Z("input-sm-height"),
|
|
1996
|
+
paddingX: Z("input-sm-padding-x"),
|
|
1997
|
+
gap: Z("input-sm-gap"),
|
|
1998
|
+
icon: Z("input-sm-icon"),
|
|
1999
|
+
fontSize: Z("input-sm-font-size")
|
|
1818
2000
|
},
|
|
1819
2001
|
md: {
|
|
1820
|
-
height:
|
|
1821
|
-
paddingX:
|
|
1822
|
-
gap:
|
|
1823
|
-
icon:
|
|
1824
|
-
fontSize:
|
|
2002
|
+
height: Z("input-md-height"),
|
|
2003
|
+
paddingX: Z("input-md-padding-x"),
|
|
2004
|
+
gap: Z("input-md-gap"),
|
|
2005
|
+
icon: Z("input-md-icon"),
|
|
2006
|
+
fontSize: Z("input-md-font-size")
|
|
1825
2007
|
},
|
|
1826
2008
|
lg: {
|
|
1827
|
-
height:
|
|
1828
|
-
paddingX:
|
|
1829
|
-
gap:
|
|
1830
|
-
icon:
|
|
1831
|
-
fontSize:
|
|
2009
|
+
height: Z("input-lg-height"),
|
|
2010
|
+
paddingX: Z("input-lg-padding-x"),
|
|
2011
|
+
gap: Z("input-lg-gap"),
|
|
2012
|
+
icon: Z("input-lg-icon"),
|
|
2013
|
+
fontSize: Z("input-lg-font-size")
|
|
1832
2014
|
}
|
|
1833
2015
|
},
|
|
1834
2016
|
bg: {
|
|
1835
|
-
default:
|
|
1836
|
-
hover:
|
|
1837
|
-
focus:
|
|
1838
|
-
error:
|
|
1839
|
-
disabled:
|
|
2017
|
+
default: Z("input-bg-default"),
|
|
2018
|
+
hover: Z("input-bg-hover"),
|
|
2019
|
+
focus: Z("input-bg-focus"),
|
|
2020
|
+
error: Z("input-bg-error"),
|
|
2021
|
+
disabled: Z("input-bg-disabled")
|
|
1840
2022
|
},
|
|
1841
2023
|
border: {
|
|
1842
|
-
default:
|
|
1843
|
-
hover:
|
|
1844
|
-
focus:
|
|
1845
|
-
error:
|
|
1846
|
-
disabled:
|
|
2024
|
+
default: Z("input-border-default"),
|
|
2025
|
+
hover: Z("input-border-hover"),
|
|
2026
|
+
focus: Z("input-border-focus"),
|
|
2027
|
+
error: Z("input-border-error"),
|
|
2028
|
+
disabled: Z("input-border-disabled")
|
|
1847
2029
|
},
|
|
1848
2030
|
text: {
|
|
1849
|
-
default:
|
|
1850
|
-
placeholder:
|
|
1851
|
-
disabled:
|
|
2031
|
+
default: Z("input-text-default"),
|
|
2032
|
+
placeholder: Z("input-text-placeholder"),
|
|
2033
|
+
disabled: Z("input-text-disabled")
|
|
1852
2034
|
}
|
|
1853
2035
|
},
|
|
1854
2036
|
scrollbar: { thumb: {
|
|
1855
|
-
width:
|
|
1856
|
-
radius:
|
|
1857
|
-
default:
|
|
1858
|
-
hover:
|
|
1859
|
-
active:
|
|
2037
|
+
width: Z("scrollbar-thumb-width"),
|
|
2038
|
+
radius: Z("scrollbar-thumb-radius"),
|
|
2039
|
+
default: Z("scrollbar-thumb-default"),
|
|
2040
|
+
hover: Z("scrollbar-thumb-hover"),
|
|
2041
|
+
active: Z("scrollbar-thumb-active")
|
|
1860
2042
|
} },
|
|
1861
2043
|
toggle: {
|
|
1862
|
-
width:
|
|
1863
|
-
height:
|
|
2044
|
+
width: Z("toggle-width"),
|
|
2045
|
+
height: Z("toggle-height"),
|
|
1864
2046
|
thumb: {
|
|
1865
|
-
size:
|
|
1866
|
-
color:
|
|
1867
|
-
disabled:
|
|
2047
|
+
size: Z("toggle-thumb-size"),
|
|
2048
|
+
color: Z("toggle-thumb-color"),
|
|
2049
|
+
disabled: Z("toggle-thumb-disabled")
|
|
1868
2050
|
},
|
|
1869
2051
|
bg: {
|
|
1870
|
-
off:
|
|
1871
|
-
on:
|
|
1872
|
-
disabledOff:
|
|
1873
|
-
disabledOn:
|
|
2052
|
+
off: Z("toggle-bg-off"),
|
|
2053
|
+
on: Z("toggle-bg-on"),
|
|
2054
|
+
disabledOff: Z("toggle-bg-disabled-off"),
|
|
2055
|
+
disabledOn: Z("toggle-bg-disabled-on")
|
|
1874
2056
|
}
|
|
1875
2057
|
},
|
|
1876
2058
|
tooltip: {
|
|
1877
|
-
bg:
|
|
1878
|
-
text:
|
|
1879
|
-
radius:
|
|
1880
|
-
paddingX:
|
|
1881
|
-
paddingY:
|
|
1882
|
-
fontSize:
|
|
1883
|
-
arrowSize:
|
|
2059
|
+
bg: Z("tooltip-bg"),
|
|
2060
|
+
text: Z("tooltip-text"),
|
|
2061
|
+
radius: Z("tooltip-radius"),
|
|
2062
|
+
paddingX: Z("tooltip-padding-x"),
|
|
2063
|
+
paddingY: Z("tooltip-padding-y"),
|
|
2064
|
+
fontSize: Z("tooltip-font-size"),
|
|
2065
|
+
arrowSize: Z("tooltip-arrow-size")
|
|
1884
2066
|
},
|
|
1885
2067
|
modal: {
|
|
1886
|
-
bg:
|
|
1887
|
-
border:
|
|
1888
|
-
overlayBg:
|
|
1889
|
-
paddingX:
|
|
1890
|
-
paddingY:
|
|
1891
|
-
headerGap:
|
|
1892
|
-
radius:
|
|
1893
|
-
titleText:
|
|
1894
|
-
bodyText:
|
|
2068
|
+
bg: Z("modal-bg"),
|
|
2069
|
+
border: Z("modal-border"),
|
|
2070
|
+
overlayBg: Z("modal-overlay-bg"),
|
|
2071
|
+
paddingX: Z("modal-padding-x"),
|
|
2072
|
+
paddingY: Z("modal-padding-y"),
|
|
2073
|
+
headerGap: Z("modal-header-gap"),
|
|
2074
|
+
radius: Z("modal-radius"),
|
|
2075
|
+
titleText: Z("modal-text-title"),
|
|
2076
|
+
bodyText: Z("modal-text-body"),
|
|
1895
2077
|
size: {
|
|
1896
|
-
sm:
|
|
1897
|
-
md:
|
|
1898
|
-
lg:
|
|
1899
|
-
},
|
|
1900
|
-
info: { icon:
|
|
1901
|
-
success: { icon:
|
|
1902
|
-
warning: { icon:
|
|
1903
|
-
error: { icon:
|
|
2078
|
+
sm: Z("modal-sm-width"),
|
|
2079
|
+
md: Z("modal-md-width"),
|
|
2080
|
+
lg: Z("modal-lg-width")
|
|
2081
|
+
},
|
|
2082
|
+
info: { icon: Z("modal-info-icon") },
|
|
2083
|
+
success: { icon: Z("modal-success-icon") },
|
|
2084
|
+
warning: { icon: Z("modal-warning-icon") },
|
|
2085
|
+
error: { icon: Z("modal-error-icon") }
|
|
1904
2086
|
},
|
|
1905
2087
|
toast: {
|
|
1906
|
-
width:
|
|
1907
|
-
padding:
|
|
1908
|
-
gap:
|
|
1909
|
-
radius:
|
|
1910
|
-
iconSize:
|
|
1911
|
-
title:
|
|
1912
|
-
message:
|
|
1913
|
-
closeIcon:
|
|
2088
|
+
width: Z("toast-width"),
|
|
2089
|
+
padding: Z("toast-padding"),
|
|
2090
|
+
gap: Z("toast-gap"),
|
|
2091
|
+
radius: Z("toast-radius"),
|
|
2092
|
+
iconSize: Z("toast-icon-size"),
|
|
2093
|
+
title: Z("toast-title"),
|
|
2094
|
+
message: Z("toast-message"),
|
|
2095
|
+
closeIcon: Z("toast-close-icon"),
|
|
1914
2096
|
info: {
|
|
1915
|
-
bg:
|
|
1916
|
-
border:
|
|
1917
|
-
icon:
|
|
2097
|
+
bg: Z("toast-info-bg"),
|
|
2098
|
+
border: Z("toast-info-border"),
|
|
2099
|
+
icon: Z("toast-info-icon")
|
|
1918
2100
|
},
|
|
1919
2101
|
success: {
|
|
1920
|
-
bg:
|
|
1921
|
-
border:
|
|
1922
|
-
icon:
|
|
2102
|
+
bg: Z("toast-success-bg"),
|
|
2103
|
+
border: Z("toast-success-border"),
|
|
2104
|
+
icon: Z("toast-success-icon")
|
|
1923
2105
|
},
|
|
1924
2106
|
warning: {
|
|
1925
|
-
bg:
|
|
1926
|
-
border:
|
|
1927
|
-
icon:
|
|
2107
|
+
bg: Z("toast-warning-bg"),
|
|
2108
|
+
border: Z("toast-warning-border"),
|
|
2109
|
+
icon: Z("toast-warning-icon")
|
|
1928
2110
|
},
|
|
1929
2111
|
error: {
|
|
1930
|
-
bg:
|
|
1931
|
-
border:
|
|
1932
|
-
icon:
|
|
2112
|
+
bg: Z("toast-error-bg"),
|
|
2113
|
+
border: Z("toast-error-border"),
|
|
2114
|
+
icon: Z("toast-error-icon")
|
|
1933
2115
|
}
|
|
1934
2116
|
},
|
|
1935
2117
|
radio: {
|
|
1936
|
-
size:
|
|
1937
|
-
gap:
|
|
2118
|
+
size: Z("radio-size"),
|
|
2119
|
+
gap: Z("radio-gap"),
|
|
1938
2120
|
dot: {
|
|
1939
|
-
size:
|
|
1940
|
-
color:
|
|
2121
|
+
size: Z("radio-dot-size"),
|
|
2122
|
+
color: Z("radio-dot-color")
|
|
1941
2123
|
},
|
|
1942
2124
|
bg: {
|
|
1943
|
-
hover:
|
|
1944
|
-
disabled:
|
|
2125
|
+
hover: Z("radio-bg-hover"),
|
|
2126
|
+
disabled: Z("radio-bg-disabled")
|
|
1945
2127
|
},
|
|
1946
2128
|
border: {
|
|
1947
|
-
off:
|
|
1948
|
-
hover:
|
|
1949
|
-
on:
|
|
1950
|
-
disabled:
|
|
2129
|
+
off: Z("radio-border-off"),
|
|
2130
|
+
hover: Z("radio-border-hover"),
|
|
2131
|
+
on: Z("radio-border-on"),
|
|
2132
|
+
disabled: Z("radio-border-disabled")
|
|
1951
2133
|
}
|
|
1952
2134
|
},
|
|
1953
2135
|
checkbox: {
|
|
1954
|
-
size:
|
|
1955
|
-
radius:
|
|
1956
|
-
gap:
|
|
2136
|
+
size: Z("checkbox-size"),
|
|
2137
|
+
radius: Z("checkbox-radius"),
|
|
2138
|
+
gap: Z("checkbox-gap"),
|
|
1957
2139
|
bg: {
|
|
1958
|
-
off:
|
|
1959
|
-
hover:
|
|
1960
|
-
on:
|
|
1961
|
-
disabled:
|
|
2140
|
+
off: Z("checkbox-bg-off"),
|
|
2141
|
+
hover: Z("checkbox-bg-hover"),
|
|
2142
|
+
on: Z("checkbox-bg-on"),
|
|
2143
|
+
disabled: Z("checkbox-bg-disabled")
|
|
1962
2144
|
},
|
|
1963
2145
|
border: {
|
|
1964
|
-
off:
|
|
1965
|
-
hover:
|
|
1966
|
-
on:
|
|
1967
|
-
disabled:
|
|
2146
|
+
off: Z("checkbox-border-off"),
|
|
2147
|
+
hover: Z("checkbox-border-hover"),
|
|
2148
|
+
on: Z("checkbox-border-on"),
|
|
2149
|
+
disabled: Z("checkbox-border-disabled")
|
|
1968
2150
|
},
|
|
1969
|
-
check: { color:
|
|
2151
|
+
check: { color: Z("checkbox-check-color") }
|
|
1970
2152
|
},
|
|
1971
2153
|
dropdown: {
|
|
1972
2154
|
menu: {
|
|
1973
|
-
bg:
|
|
1974
|
-
border:
|
|
1975
|
-
radius:
|
|
1976
|
-
padding:
|
|
1977
|
-
shadow:
|
|
2155
|
+
bg: Z("dropdown-menu-bg"),
|
|
2156
|
+
border: Z("dropdown-menu-border"),
|
|
2157
|
+
radius: Z("dropdown-menu-radius"),
|
|
2158
|
+
padding: Z("dropdown-menu-padding"),
|
|
2159
|
+
shadow: Z("dropdown-menu-shadow")
|
|
1978
2160
|
},
|
|
1979
2161
|
item: {
|
|
1980
2162
|
size: {
|
|
1981
2163
|
sm: {
|
|
1982
|
-
height:
|
|
1983
|
-
paddingX:
|
|
1984
|
-
gap:
|
|
1985
|
-
radius:
|
|
1986
|
-
icon:
|
|
2164
|
+
height: Z("dropdown-sm-height"),
|
|
2165
|
+
paddingX: Z("dropdown-sm-padding-x"),
|
|
2166
|
+
gap: Z("dropdown-sm-gap"),
|
|
2167
|
+
radius: Z("dropdown-sm-radius"),
|
|
2168
|
+
icon: Z("dropdown-sm-icon-size")
|
|
1987
2169
|
},
|
|
1988
2170
|
md: {
|
|
1989
|
-
height:
|
|
1990
|
-
paddingX:
|
|
1991
|
-
gap:
|
|
1992
|
-
radius:
|
|
1993
|
-
icon:
|
|
2171
|
+
height: Z("dropdown-md-height"),
|
|
2172
|
+
paddingX: Z("dropdown-md-padding-x"),
|
|
2173
|
+
gap: Z("dropdown-md-gap"),
|
|
2174
|
+
radius: Z("dropdown-md-radius"),
|
|
2175
|
+
icon: Z("dropdown-md-icon-size")
|
|
1994
2176
|
},
|
|
1995
2177
|
lg: {
|
|
1996
|
-
height:
|
|
1997
|
-
paddingX:
|
|
1998
|
-
gap:
|
|
1999
|
-
radius:
|
|
2000
|
-
icon:
|
|
2178
|
+
height: Z("dropdown-lg-height"),
|
|
2179
|
+
paddingX: Z("dropdown-lg-padding-x"),
|
|
2180
|
+
gap: Z("dropdown-lg-gap"),
|
|
2181
|
+
radius: Z("dropdown-lg-radius"),
|
|
2182
|
+
icon: Z("dropdown-lg-icon-size")
|
|
2001
2183
|
}
|
|
2002
2184
|
},
|
|
2003
2185
|
text: {
|
|
2004
|
-
default:
|
|
2005
|
-
danger:
|
|
2006
|
-
disabled:
|
|
2186
|
+
default: Z("dropdown-item-text-default"),
|
|
2187
|
+
danger: Z("dropdown-item-text-danger"),
|
|
2188
|
+
disabled: Z("dropdown-item-text-disabled")
|
|
2007
2189
|
},
|
|
2008
2190
|
icon: {
|
|
2009
|
-
default:
|
|
2010
|
-
danger:
|
|
2191
|
+
default: Z("dropdown-item-icon-default"),
|
|
2192
|
+
danger: Z("dropdown-item-icon-danger")
|
|
2011
2193
|
},
|
|
2012
2194
|
bg: {
|
|
2013
|
-
hover:
|
|
2014
|
-
focus:
|
|
2195
|
+
hover: Z("dropdown-item-bg-hover"),
|
|
2196
|
+
focus: Z("dropdown-item-bg-focus")
|
|
2015
2197
|
}
|
|
2016
2198
|
},
|
|
2017
2199
|
divider: {
|
|
2018
|
-
color:
|
|
2019
|
-
thickness:
|
|
2020
|
-
marginY:
|
|
2200
|
+
color: Z("dropdown-divider-color"),
|
|
2201
|
+
thickness: Z("dropdown-divider-thickness"),
|
|
2202
|
+
marginY: Z("dropdown-divider-margin-y")
|
|
2021
2203
|
}
|
|
2022
2204
|
},
|
|
2023
2205
|
select: {
|
|
2024
2206
|
list: {
|
|
2025
|
-
bg:
|
|
2026
|
-
border:
|
|
2207
|
+
bg: Z("select-list-bg"),
|
|
2208
|
+
border: Z("select-list-border")
|
|
2027
2209
|
},
|
|
2028
2210
|
option: {
|
|
2029
2211
|
bg: {
|
|
2030
|
-
hover:
|
|
2031
|
-
selected:
|
|
2212
|
+
hover: Z("select-option-bg-hover"),
|
|
2213
|
+
selected: Z("select-option-bg-selected")
|
|
2032
2214
|
},
|
|
2033
2215
|
text: {
|
|
2034
|
-
default:
|
|
2035
|
-
selected:
|
|
2036
|
-
disabled:
|
|
2216
|
+
default: Z("select-option-text-default"),
|
|
2217
|
+
selected: Z("select-option-text-selected"),
|
|
2218
|
+
disabled: Z("select-option-text-disabled")
|
|
2037
2219
|
}
|
|
2038
2220
|
}
|
|
2039
2221
|
},
|
|
2040
2222
|
radius: {
|
|
2041
|
-
4:
|
|
2042
|
-
6:
|
|
2043
|
-
8:
|
|
2223
|
+
4: Z("radius-4"),
|
|
2224
|
+
6: Z("radius-6"),
|
|
2225
|
+
8: Z("radius-8")
|
|
2044
2226
|
},
|
|
2045
2227
|
typography: {
|
|
2046
2228
|
heading: {
|
|
2047
2229
|
xl: {
|
|
2048
|
-
fontFamily:
|
|
2049
|
-
fontWeight:
|
|
2050
|
-
fontSize:
|
|
2051
|
-
lineHeight:
|
|
2052
|
-
letterSpacing:
|
|
2230
|
+
fontFamily: Z("font-family"),
|
|
2231
|
+
fontWeight: Z("font-weight-bold"),
|
|
2232
|
+
fontSize: Z("font-size-xl"),
|
|
2233
|
+
lineHeight: Z("line-height-32"),
|
|
2234
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2053
2235
|
},
|
|
2054
2236
|
lg: {
|
|
2055
|
-
fontFamily:
|
|
2056
|
-
fontWeight:
|
|
2057
|
-
fontSize:
|
|
2058
|
-
lineHeight:
|
|
2059
|
-
letterSpacing:
|
|
2237
|
+
fontFamily: Z("font-family"),
|
|
2238
|
+
fontWeight: Z("font-weight-bold"),
|
|
2239
|
+
fontSize: Z("font-size-lg"),
|
|
2240
|
+
lineHeight: Z("line-height-28"),
|
|
2241
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2060
2242
|
},
|
|
2061
2243
|
md: {
|
|
2062
|
-
fontFamily:
|
|
2063
|
-
fontWeight:
|
|
2064
|
-
fontSize:
|
|
2065
|
-
lineHeight:
|
|
2066
|
-
letterSpacing:
|
|
2244
|
+
fontFamily: Z("font-family"),
|
|
2245
|
+
fontWeight: Z("font-weight-bold"),
|
|
2246
|
+
fontSize: Z("font-size-md"),
|
|
2247
|
+
lineHeight: Z("line-height-24"),
|
|
2248
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2067
2249
|
},
|
|
2068
2250
|
sm: {
|
|
2069
|
-
fontFamily:
|
|
2070
|
-
fontWeight:
|
|
2071
|
-
fontSize:
|
|
2072
|
-
lineHeight:
|
|
2073
|
-
letterSpacing:
|
|
2251
|
+
fontFamily: Z("font-family"),
|
|
2252
|
+
fontWeight: Z("font-weight-bold"),
|
|
2253
|
+
fontSize: Z("font-size-sm"),
|
|
2254
|
+
lineHeight: Z("line-height-20"),
|
|
2255
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2074
2256
|
}
|
|
2075
2257
|
},
|
|
2076
2258
|
body: {
|
|
2077
2259
|
lg: {
|
|
2078
|
-
fontFamily:
|
|
2079
|
-
fontWeight:
|
|
2080
|
-
fontSize:
|
|
2081
|
-
lineHeight:
|
|
2082
|
-
letterSpacing:
|
|
2260
|
+
fontFamily: Z("font-family"),
|
|
2261
|
+
fontWeight: Z("font-weight-regular"),
|
|
2262
|
+
fontSize: Z("font-size-md"),
|
|
2263
|
+
lineHeight: Z("line-height-24"),
|
|
2264
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2083
2265
|
},
|
|
2084
2266
|
md: {
|
|
2085
|
-
fontFamily:
|
|
2086
|
-
fontWeight:
|
|
2087
|
-
fontSize:
|
|
2088
|
-
lineHeight:
|
|
2089
|
-
letterSpacing:
|
|
2267
|
+
fontFamily: Z("font-family"),
|
|
2268
|
+
fontWeight: Z("font-weight-regular"),
|
|
2269
|
+
fontSize: Z("font-size-sm"),
|
|
2270
|
+
lineHeight: Z("line-height-20"),
|
|
2271
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2090
2272
|
},
|
|
2091
2273
|
sm: {
|
|
2092
|
-
fontFamily:
|
|
2093
|
-
fontWeight:
|
|
2094
|
-
fontSize:
|
|
2095
|
-
lineHeight:
|
|
2096
|
-
letterSpacing:
|
|
2274
|
+
fontFamily: Z("font-family"),
|
|
2275
|
+
fontWeight: Z("font-weight-regular"),
|
|
2276
|
+
fontSize: Z("font-size-xs"),
|
|
2277
|
+
lineHeight: Z("line-height-18"),
|
|
2278
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2097
2279
|
},
|
|
2098
2280
|
lgBold: {
|
|
2099
|
-
fontFamily:
|
|
2100
|
-
fontWeight:
|
|
2101
|
-
fontSize:
|
|
2102
|
-
lineHeight:
|
|
2103
|
-
letterSpacing:
|
|
2281
|
+
fontFamily: Z("font-family"),
|
|
2282
|
+
fontWeight: Z("font-weight-bold"),
|
|
2283
|
+
fontSize: Z("font-size-md"),
|
|
2284
|
+
lineHeight: Z("line-height-24"),
|
|
2285
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2104
2286
|
},
|
|
2105
2287
|
mdBold: {
|
|
2106
|
-
fontFamily:
|
|
2107
|
-
fontWeight:
|
|
2108
|
-
fontSize:
|
|
2109
|
-
lineHeight:
|
|
2110
|
-
letterSpacing:
|
|
2288
|
+
fontFamily: Z("font-family"),
|
|
2289
|
+
fontWeight: Z("font-weight-bold"),
|
|
2290
|
+
fontSize: Z("font-size-sm"),
|
|
2291
|
+
lineHeight: Z("line-height-20"),
|
|
2292
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2111
2293
|
},
|
|
2112
2294
|
smBold: {
|
|
2113
|
-
fontFamily:
|
|
2114
|
-
fontWeight:
|
|
2115
|
-
fontSize:
|
|
2116
|
-
lineHeight:
|
|
2117
|
-
letterSpacing:
|
|
2295
|
+
fontFamily: Z("font-family"),
|
|
2296
|
+
fontWeight: Z("font-weight-bold"),
|
|
2297
|
+
fontSize: Z("font-size-xs"),
|
|
2298
|
+
lineHeight: Z("line-height-18"),
|
|
2299
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2118
2300
|
}
|
|
2119
2301
|
},
|
|
2120
2302
|
label: {
|
|
2121
2303
|
lg: {
|
|
2122
|
-
fontFamily:
|
|
2123
|
-
fontWeight:
|
|
2124
|
-
fontSize:
|
|
2125
|
-
lineHeight:
|
|
2126
|
-
letterSpacing:
|
|
2304
|
+
fontFamily: Z("font-family"),
|
|
2305
|
+
fontWeight: Z("font-weight-medium"),
|
|
2306
|
+
fontSize: Z("font-size-md"),
|
|
2307
|
+
lineHeight: Z("line-height-24"),
|
|
2308
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2127
2309
|
},
|
|
2128
2310
|
md: {
|
|
2129
|
-
fontFamily:
|
|
2130
|
-
fontWeight:
|
|
2131
|
-
fontSize:
|
|
2132
|
-
lineHeight:
|
|
2133
|
-
letterSpacing:
|
|
2311
|
+
fontFamily: Z("font-family"),
|
|
2312
|
+
fontWeight: Z("font-weight-medium"),
|
|
2313
|
+
fontSize: Z("font-size-sm"),
|
|
2314
|
+
lineHeight: Z("line-height-18"),
|
|
2315
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2134
2316
|
},
|
|
2135
2317
|
sm: {
|
|
2136
|
-
fontFamily:
|
|
2137
|
-
fontWeight:
|
|
2138
|
-
fontSize:
|
|
2139
|
-
lineHeight:
|
|
2140
|
-
letterSpacing:
|
|
2318
|
+
fontFamily: Z("font-family"),
|
|
2319
|
+
fontWeight: Z("font-weight-medium"),
|
|
2320
|
+
fontSize: Z("font-size-xs"),
|
|
2321
|
+
lineHeight: Z("line-height-16"),
|
|
2322
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2141
2323
|
}
|
|
2142
2324
|
},
|
|
2143
2325
|
button: {
|
|
2144
2326
|
lg: {
|
|
2145
|
-
fontFamily:
|
|
2146
|
-
fontWeight:
|
|
2147
|
-
fontSize:
|
|
2148
|
-
lineHeight:
|
|
2149
|
-
letterSpacing:
|
|
2327
|
+
fontFamily: Z("font-family"),
|
|
2328
|
+
fontWeight: Z("font-weight-bold"),
|
|
2329
|
+
fontSize: Z("font-size-md"),
|
|
2330
|
+
lineHeight: Z("line-height-24"),
|
|
2331
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2150
2332
|
},
|
|
2151
2333
|
md: {
|
|
2152
|
-
fontFamily:
|
|
2153
|
-
fontWeight:
|
|
2154
|
-
fontSize:
|
|
2155
|
-
lineHeight:
|
|
2156
|
-
letterSpacing:
|
|
2334
|
+
fontFamily: Z("font-family"),
|
|
2335
|
+
fontWeight: Z("font-weight-bold"),
|
|
2336
|
+
fontSize: Z("font-size-sm"),
|
|
2337
|
+
lineHeight: Z("line-height-20"),
|
|
2338
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2157
2339
|
},
|
|
2158
2340
|
sm: {
|
|
2159
|
-
fontFamily:
|
|
2160
|
-
fontWeight:
|
|
2161
|
-
fontSize:
|
|
2162
|
-
lineHeight:
|
|
2163
|
-
letterSpacing:
|
|
2341
|
+
fontFamily: Z("font-family"),
|
|
2342
|
+
fontWeight: Z("font-weight-bold"),
|
|
2343
|
+
fontSize: Z("font-size-xs"),
|
|
2344
|
+
lineHeight: Z("line-height-16"),
|
|
2345
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2164
2346
|
}
|
|
2165
2347
|
},
|
|
2166
2348
|
caption: {
|
|
2167
|
-
fontFamily:
|
|
2168
|
-
fontWeight:
|
|
2169
|
-
fontSize:
|
|
2170
|
-
lineHeight:
|
|
2171
|
-
letterSpacing:
|
|
2349
|
+
fontFamily: Z("font-family"),
|
|
2350
|
+
fontWeight: Z("font-weight-regular"),
|
|
2351
|
+
fontSize: Z("font-size-2xs"),
|
|
2352
|
+
lineHeight: Z("line-height-16"),
|
|
2353
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2172
2354
|
},
|
|
2173
2355
|
overline: {
|
|
2174
|
-
fontFamily:
|
|
2175
|
-
fontWeight:
|
|
2176
|
-
fontSize:
|
|
2177
|
-
lineHeight:
|
|
2178
|
-
letterSpacing:
|
|
2356
|
+
fontFamily: Z("font-family"),
|
|
2357
|
+
fontWeight: Z("font-weight-semibold"),
|
|
2358
|
+
fontSize: Z("font-size-xs"),
|
|
2359
|
+
lineHeight: Z("line-height-16"),
|
|
2360
|
+
letterSpacing: Z("letter-spacing-wide"),
|
|
2179
2361
|
textTransform: "uppercase"
|
|
2180
2362
|
},
|
|
2181
2363
|
tooltip: {
|
|
2182
|
-
fontFamily:
|
|
2183
|
-
fontWeight:
|
|
2184
|
-
fontSize:
|
|
2185
|
-
lineHeight:
|
|
2186
|
-
letterSpacing:
|
|
2364
|
+
fontFamily: Z("font-family"),
|
|
2365
|
+
fontWeight: Z("font-weight-medium"),
|
|
2366
|
+
fontSize: Z("font-size-xs"),
|
|
2367
|
+
lineHeight: Z("line-height-16"),
|
|
2368
|
+
letterSpacing: Z("letter-spacing-normal")
|
|
2187
2369
|
}
|
|
2188
2370
|
},
|
|
2189
2371
|
font: {
|
|
2190
2372
|
size: {
|
|
2191
|
-
"2xs":
|
|
2192
|
-
xs:
|
|
2193
|
-
sm:
|
|
2194
|
-
md:
|
|
2195
|
-
lg:
|
|
2196
|
-
xl:
|
|
2373
|
+
"2xs": Z("font-size-2xs"),
|
|
2374
|
+
xs: Z("font-size-xs"),
|
|
2375
|
+
sm: Z("font-size-sm"),
|
|
2376
|
+
md: Z("font-size-md"),
|
|
2377
|
+
lg: Z("font-size-lg"),
|
|
2378
|
+
xl: Z("font-size-xl")
|
|
2197
2379
|
},
|
|
2198
2380
|
weight: {
|
|
2199
|
-
regular:
|
|
2200
|
-
medium:
|
|
2201
|
-
semibold:
|
|
2202
|
-
bold:
|
|
2381
|
+
regular: Z("font-weight-regular"),
|
|
2382
|
+
medium: Z("font-weight-medium"),
|
|
2383
|
+
semibold: Z("font-weight-semibold"),
|
|
2384
|
+
bold: Z("font-weight-bold")
|
|
2203
2385
|
},
|
|
2204
2386
|
lineHeight: {
|
|
2205
|
-
16:
|
|
2206
|
-
18:
|
|
2207
|
-
20:
|
|
2208
|
-
22:
|
|
2209
|
-
24:
|
|
2210
|
-
28:
|
|
2211
|
-
32:
|
|
2387
|
+
16: Z("line-height-16"),
|
|
2388
|
+
18: Z("line-height-18"),
|
|
2389
|
+
20: Z("line-height-20"),
|
|
2390
|
+
22: Z("line-height-22"),
|
|
2391
|
+
24: Z("line-height-24"),
|
|
2392
|
+
28: Z("line-height-28"),
|
|
2393
|
+
32: Z("line-height-32")
|
|
2212
2394
|
},
|
|
2213
2395
|
letterSpacing: {
|
|
2214
|
-
tighter:
|
|
2215
|
-
tight:
|
|
2216
|
-
normal:
|
|
2217
|
-
wide:
|
|
2396
|
+
tighter: Z("letter-spacing-tighter"),
|
|
2397
|
+
tight: Z("letter-spacing-tight"),
|
|
2398
|
+
normal: Z("letter-spacing-normal"),
|
|
2399
|
+
wide: Z("letter-spacing-wide")
|
|
2218
2400
|
}
|
|
2219
2401
|
},
|
|
2220
2402
|
color: {
|
|
2221
2403
|
gray: {
|
|
2222
|
-
50:
|
|
2223
|
-
100:
|
|
2224
|
-
200:
|
|
2225
|
-
300:
|
|
2226
|
-
400:
|
|
2227
|
-
500:
|
|
2228
|
-
600:
|
|
2229
|
-
700:
|
|
2230
|
-
800:
|
|
2231
|
-
900:
|
|
2404
|
+
50: Z("color-gray-50"),
|
|
2405
|
+
100: Z("color-gray-100"),
|
|
2406
|
+
200: Z("color-gray-200"),
|
|
2407
|
+
300: Z("color-gray-300"),
|
|
2408
|
+
400: Z("color-gray-400"),
|
|
2409
|
+
500: Z("color-gray-500"),
|
|
2410
|
+
600: Z("color-gray-600"),
|
|
2411
|
+
700: Z("color-gray-700"),
|
|
2412
|
+
800: Z("color-gray-800"),
|
|
2413
|
+
900: Z("color-gray-900")
|
|
2232
2414
|
},
|
|
2233
2415
|
yellow: {
|
|
2234
|
-
50:
|
|
2235
|
-
500:
|
|
2236
|
-
100:
|
|
2237
|
-
200:
|
|
2416
|
+
50: Z("color-yellow-50"),
|
|
2417
|
+
500: Z("color-yellow-500"),
|
|
2418
|
+
100: Z("color-yellow-100"),
|
|
2419
|
+
200: Z("color-yellow-200")
|
|
2238
2420
|
},
|
|
2239
2421
|
neutral: {
|
|
2240
|
-
"0050":
|
|
2241
|
-
"0100":
|
|
2242
|
-
"0150":
|
|
2243
|
-
"0200":
|
|
2244
|
-
"0250":
|
|
2245
|
-
"0300":
|
|
2246
|
-
"0350":
|
|
2247
|
-
"0400":
|
|
2248
|
-
"0450":
|
|
2249
|
-
"0500":
|
|
2250
|
-
"0550":
|
|
2251
|
-
"0600":
|
|
2252
|
-
"0650":
|
|
2253
|
-
"0700":
|
|
2254
|
-
"0750":
|
|
2255
|
-
"0800":
|
|
2256
|
-
"0850":
|
|
2257
|
-
"0900":
|
|
2258
|
-
"0950":
|
|
2259
|
-
1e3:
|
|
2260
|
-
1050:
|
|
2261
|
-
1100:
|
|
2262
|
-
1150:
|
|
2263
|
-
1200:
|
|
2264
|
-
1250:
|
|
2265
|
-
1300:
|
|
2266
|
-
1350:
|
|
2267
|
-
1400:
|
|
2268
|
-
1450:
|
|
2269
|
-
1500:
|
|
2270
|
-
1550:
|
|
2271
|
-
1600:
|
|
2422
|
+
"0050": Z("color-neutral-0050"),
|
|
2423
|
+
"0100": Z("color-neutral-0100"),
|
|
2424
|
+
"0150": Z("color-neutral-0150"),
|
|
2425
|
+
"0200": Z("color-neutral-0200"),
|
|
2426
|
+
"0250": Z("color-neutral-0250"),
|
|
2427
|
+
"0300": Z("color-neutral-0300"),
|
|
2428
|
+
"0350": Z("color-neutral-0350"),
|
|
2429
|
+
"0400": Z("color-neutral-0400"),
|
|
2430
|
+
"0450": Z("color-neutral-0450"),
|
|
2431
|
+
"0500": Z("color-neutral-0500"),
|
|
2432
|
+
"0550": Z("color-neutral-0550"),
|
|
2433
|
+
"0600": Z("color-neutral-0600"),
|
|
2434
|
+
"0650": Z("color-neutral-0650"),
|
|
2435
|
+
"0700": Z("color-neutral-0700"),
|
|
2436
|
+
"0750": Z("color-neutral-0750"),
|
|
2437
|
+
"0800": Z("color-neutral-0800"),
|
|
2438
|
+
"0850": Z("color-neutral-0850"),
|
|
2439
|
+
"0900": Z("color-neutral-0900"),
|
|
2440
|
+
"0950": Z("color-neutral-0950"),
|
|
2441
|
+
1e3: Z("color-neutral-1000"),
|
|
2442
|
+
1050: Z("color-neutral-1050"),
|
|
2443
|
+
1100: Z("color-neutral-1100"),
|
|
2444
|
+
1150: Z("color-neutral-1150"),
|
|
2445
|
+
1200: Z("color-neutral-1200"),
|
|
2446
|
+
1250: Z("color-neutral-1250"),
|
|
2447
|
+
1300: Z("color-neutral-1300"),
|
|
2448
|
+
1350: Z("color-neutral-1350"),
|
|
2449
|
+
1400: Z("color-neutral-1400"),
|
|
2450
|
+
1450: Z("color-neutral-1450"),
|
|
2451
|
+
1500: Z("color-neutral-1500"),
|
|
2452
|
+
1550: Z("color-neutral-1550"),
|
|
2453
|
+
1600: Z("color-neutral-1600")
|
|
2272
2454
|
},
|
|
2273
2455
|
blue: {
|
|
2274
|
-
100:
|
|
2275
|
-
200:
|
|
2276
|
-
300:
|
|
2277
|
-
400:
|
|
2278
|
-
500:
|
|
2279
|
-
600:
|
|
2280
|
-
700:
|
|
2281
|
-
800:
|
|
2456
|
+
100: Z("color-blue-100"),
|
|
2457
|
+
200: Z("color-blue-200"),
|
|
2458
|
+
300: Z("color-blue-300"),
|
|
2459
|
+
400: Z("color-blue-400"),
|
|
2460
|
+
500: Z("color-blue-500"),
|
|
2461
|
+
600: Z("color-blue-600"),
|
|
2462
|
+
700: Z("color-blue-700"),
|
|
2463
|
+
800: Z("color-blue-800")
|
|
2282
2464
|
},
|
|
2283
2465
|
brown: {
|
|
2284
|
-
100:
|
|
2285
|
-
200:
|
|
2466
|
+
100: Z("color-brown-100"),
|
|
2467
|
+
200: Z("color-brown-200")
|
|
2286
2468
|
},
|
|
2287
2469
|
green: {
|
|
2288
|
-
100:
|
|
2289
|
-
200:
|
|
2290
|
-
300:
|
|
2291
|
-
400:
|
|
2292
|
-
500:
|
|
2470
|
+
100: Z("color-green-100"),
|
|
2471
|
+
200: Z("color-green-200"),
|
|
2472
|
+
300: Z("color-green-300"),
|
|
2473
|
+
400: Z("color-green-400"),
|
|
2474
|
+
500: Z("color-green-500")
|
|
2293
2475
|
},
|
|
2294
2476
|
orange: {
|
|
2295
|
-
100:
|
|
2296
|
-
200:
|
|
2297
|
-
300:
|
|
2298
|
-
400:
|
|
2299
|
-
500:
|
|
2300
|
-
600:
|
|
2477
|
+
100: Z("color-orange-100"),
|
|
2478
|
+
200: Z("color-orange-200"),
|
|
2479
|
+
300: Z("color-orange-300"),
|
|
2480
|
+
400: Z("color-orange-400"),
|
|
2481
|
+
500: Z("color-orange-500"),
|
|
2482
|
+
600: Z("color-orange-600")
|
|
2301
2483
|
},
|
|
2302
2484
|
red: {
|
|
2303
|
-
100:
|
|
2304
|
-
200:
|
|
2305
|
-
300:
|
|
2306
|
-
400:
|
|
2307
|
-
500:
|
|
2308
|
-
600:
|
|
2309
|
-
700:
|
|
2310
|
-
800:
|
|
2311
|
-
900:
|
|
2312
|
-
1e3:
|
|
2485
|
+
100: Z("color-red-100"),
|
|
2486
|
+
200: Z("color-red-200"),
|
|
2487
|
+
300: Z("color-red-300"),
|
|
2488
|
+
400: Z("color-red-400"),
|
|
2489
|
+
500: Z("color-red-500"),
|
|
2490
|
+
600: Z("color-red-600"),
|
|
2491
|
+
700: Z("color-red-700"),
|
|
2492
|
+
800: Z("color-red-800"),
|
|
2493
|
+
900: Z("color-red-900"),
|
|
2494
|
+
1e3: Z("color-red-1000")
|
|
2313
2495
|
},
|
|
2314
2496
|
teal: {
|
|
2315
|
-
100:
|
|
2316
|
-
200:
|
|
2497
|
+
100: Z("color-teal-100"),
|
|
2498
|
+
200: Z("color-teal-200")
|
|
2317
2499
|
}
|
|
2318
2500
|
}
|
|
2319
|
-
},
|
|
2320
|
-
"secondary",
|
|
2321
|
-
"tertiary",
|
|
2322
|
-
"softDanger"
|
|
2323
|
-
], Le = (e, t) => {
|
|
2324
|
-
let n = B.button[e], r = t === "disabled" ? n.bg.disabled : t === "hover" ? n.bg.hover : t === "active" ? n.bg.active : t === "focus" ? n.bg.focus : n.bg.default;
|
|
2325
|
-
if (Ie.includes(e)) {
|
|
2326
|
-
let e = n;
|
|
2327
|
-
return {
|
|
2328
|
-
bg: r,
|
|
2329
|
-
text: t === "disabled" ? e.text.disabled : t === "hover" ? e.text.hover : t === "active" ? e.text.active : t === "focus" ? e.text.focus : e.text.default,
|
|
2330
|
-
border: t === "disabled" ? e.border.disabled : t === "hover" ? e.border.hover : t === "active" ? e.border.active : t === "focus" ? e.border.focus : e.border.default
|
|
2331
|
-
};
|
|
2332
|
-
}
|
|
2333
|
-
return {
|
|
2334
|
-
bg: r,
|
|
2335
|
-
text: t === "disabled" ? n.text.disabled : n.text.default,
|
|
2336
|
-
border: t === "focus" ? n.border.focus : e === "ghost" ? "transparent" : r
|
|
2337
|
-
};
|
|
2338
|
-
}, V = t(({ variant: e = "primary", size: t = "md", htmlType: n = "button", icon: r, rightIcon: i, disabled: s, onMouseEnter: c, onMouseLeave: l, onMouseDown: u, onMouseUp: d, onFocus: f, onBlur: p, style: m, children: h, ...g }, _) => {
|
|
2339
|
-
let [v, y] = o(!1), [b, x] = o(!1), [S, C] = o(!1), w = a(!1), { bg: T, text: E, border: ee } = Le(e, s ? "disabled" : b ? "active" : v ? "hover" : S ? "focus" : "default"), D = B.button.size[t], O = B.typography.button[t];
|
|
2340
|
-
return /* @__PURE__ */ j("button", {
|
|
2341
|
-
ref: _,
|
|
2342
|
-
type: n,
|
|
2343
|
-
disabled: s,
|
|
2344
|
-
onMouseEnter: (e) => {
|
|
2345
|
-
y(!0), c?.(e);
|
|
2346
|
-
},
|
|
2347
|
-
onMouseLeave: (e) => {
|
|
2348
|
-
y(!1), x(!1), l?.(e);
|
|
2349
|
-
},
|
|
2350
|
-
onMouseDown: (e) => {
|
|
2351
|
-
w.current = !0, x(!0), u?.(e);
|
|
2352
|
-
},
|
|
2353
|
-
onMouseUp: (e) => {
|
|
2354
|
-
x(!1), d?.(e);
|
|
2355
|
-
},
|
|
2356
|
-
onFocus: (e) => {
|
|
2357
|
-
w.current || C(!0), w.current = !1, f?.(e);
|
|
2358
|
-
},
|
|
2359
|
-
onBlur: (e) => {
|
|
2360
|
-
C(!1), p?.(e);
|
|
2361
|
-
},
|
|
2362
|
-
style: {
|
|
2363
|
-
...O,
|
|
2364
|
-
height: D.height,
|
|
2365
|
-
padding: `0 ${D.paddingX}`,
|
|
2366
|
-
gap: D.gap,
|
|
2367
|
-
background: T,
|
|
2368
|
-
color: E,
|
|
2369
|
-
border: `1px solid ${ee}`,
|
|
2370
|
-
borderRadius: D.radius,
|
|
2371
|
-
cursor: s ? "not-allowed" : "pointer",
|
|
2372
|
-
display: "inline-flex",
|
|
2373
|
-
alignItems: "center",
|
|
2374
|
-
justifyContent: "center",
|
|
2375
|
-
transition: "0.15s ease",
|
|
2376
|
-
whiteSpace: "nowrap",
|
|
2377
|
-
outline: "none",
|
|
2378
|
-
...m
|
|
2379
|
-
},
|
|
2380
|
-
...g,
|
|
2381
|
-
children: [
|
|
2382
|
-
r && /* @__PURE__ */ A("span", {
|
|
2383
|
-
"aria-hidden": !0,
|
|
2384
|
-
style: {
|
|
2385
|
-
display: "inline-flex",
|
|
2386
|
-
alignItems: "center"
|
|
2387
|
-
},
|
|
2388
|
-
children: r
|
|
2389
|
-
}),
|
|
2390
|
-
h,
|
|
2391
|
-
i && /* @__PURE__ */ A("span", {
|
|
2392
|
-
"aria-hidden": !0,
|
|
2393
|
-
style: {
|
|
2394
|
-
display: "inline-flex",
|
|
2395
|
-
alignItems: "center"
|
|
2396
|
-
},
|
|
2397
|
-
children: i
|
|
2398
|
-
})
|
|
2399
|
-
]
|
|
2400
|
-
});
|
|
2401
|
-
});
|
|
2402
|
-
V.displayName = "Button";
|
|
2403
|
-
//#endregion
|
|
2404
|
-
//#region src/components/icon/icons.ts
|
|
2405
|
-
var Re = {
|
|
2501
|
+
}, Oe = {
|
|
2406
2502
|
"arrow-right": {
|
|
2407
2503
|
viewBox: "0 0 20 20",
|
|
2408
2504
|
body: "<path d=\"M3.5 10H16M11 15L16 10L11 5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>"
|
|
@@ -2475,13 +2571,13 @@ var Re = {
|
|
|
2475
2571
|
viewBox: "0 0 20 20",
|
|
2476
2572
|
body: "<path d=\"M5 5L15 15M15 5L5 15\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\"/>"
|
|
2477
2573
|
}
|
|
2478
|
-
},
|
|
2574
|
+
}, ke = {
|
|
2479
2575
|
sm: 16,
|
|
2480
2576
|
md: 20,
|
|
2481
2577
|
lg: 24
|
|
2482
|
-
},
|
|
2483
|
-
let o = typeof t == "number" ? t :
|
|
2484
|
-
return /* @__PURE__ */
|
|
2578
|
+
}, Q = e(({ name: e, size: t = "md", color: n = "currentColor", style: r, ...i }, a) => {
|
|
2579
|
+
let o = typeof t == "number" ? t : ke[t], s = Oe[e];
|
|
2580
|
+
return /* @__PURE__ */ W("svg", {
|
|
2485
2581
|
ref: a,
|
|
2486
2582
|
width: o,
|
|
2487
2583
|
height: o,
|
|
@@ -2498,423 +2594,10 @@ var Re = {
|
|
|
2498
2594
|
...i
|
|
2499
2595
|
});
|
|
2500
2596
|
});
|
|
2501
|
-
|
|
2502
|
-
//#endregion
|
|
2503
|
-
//#region src/components/input/Input.tsx
|
|
2504
|
-
var Be = {
|
|
2505
|
-
sm: "sm",
|
|
2506
|
-
md: "md",
|
|
2507
|
-
lg: "lg"
|
|
2508
|
-
}, Ve = t(({ size: e = "md", type: t = "text", error: n, prefix: r, suffix: i, disabled: a, style: s, ...c }, l) => {
|
|
2509
|
-
let [u, d] = o(!1), [f, p] = o(!1), m = a ? "disabled" : n ? "error" : u ? "focus" : f ? "hover" : "default", h = B.input.size[e], g = m === "disabled" ? B.input.bg.disabled : m === "error" ? B.input.bg.error : m === "focus" ? B.input.bg.focus : m === "hover" ? B.input.bg.hover : B.input.bg.default, _ = m === "disabled" ? B.input.border.disabled : m === "error" ? B.input.border.error : m === "focus" ? B.input.border.focus : m === "hover" ? B.input.border.hover : B.input.border.default, v = a ? B.input.text.disabled : B.input.text.default, y = t === "textarea", b = Be[e], x = i;
|
|
2510
|
-
t === "search" ? x = /* @__PURE__ */ A(H, {
|
|
2511
|
-
name: "search",
|
|
2512
|
-
size: b
|
|
2513
|
-
}) : t === "password" && (x = /* @__PURE__ */ A(H, {
|
|
2514
|
-
name: "eye",
|
|
2515
|
-
size: b
|
|
2516
|
-
}));
|
|
2517
|
-
let S = t === "search" || t === "password" ? null : r, C = {
|
|
2518
|
-
display: "inline-flex",
|
|
2519
|
-
alignItems: y ? "flex-start" : "center",
|
|
2520
|
-
gap: h.gap,
|
|
2521
|
-
padding: y ? `16px ${h.paddingX}` : `0 ${h.paddingX}`,
|
|
2522
|
-
...y ? { minHeight: 96 } : { height: h.height },
|
|
2523
|
-
background: g,
|
|
2524
|
-
border: `1px solid ${_}`,
|
|
2525
|
-
borderRadius: B.input.radius,
|
|
2526
|
-
color: v,
|
|
2527
|
-
fontFamily: B.typography.body.sm.fontFamily,
|
|
2528
|
-
fontSize: h.fontSize,
|
|
2529
|
-
lineHeight: "20px",
|
|
2530
|
-
cursor: a ? "not-allowed" : "text",
|
|
2531
|
-
transition: "border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease",
|
|
2532
|
-
boxSizing: "border-box",
|
|
2533
|
-
boxShadow: m === "focus" ? `0 0 0 1px ${_} inset` : "none",
|
|
2534
|
-
...s
|
|
2535
|
-
}, w = {
|
|
2536
|
-
flex: 1,
|
|
2537
|
-
minWidth: 0,
|
|
2538
|
-
background: "transparent",
|
|
2539
|
-
border: "none",
|
|
2540
|
-
outline: "none",
|
|
2541
|
-
color: "inherit",
|
|
2542
|
-
font: "inherit",
|
|
2543
|
-
padding: 0,
|
|
2544
|
-
...y ? {
|
|
2545
|
-
resize: "vertical",
|
|
2546
|
-
minHeight: 60,
|
|
2547
|
-
lineHeight: "20px"
|
|
2548
|
-
} : {}
|
|
2549
|
-
}, T = {
|
|
2550
|
-
display: "inline-flex",
|
|
2551
|
-
alignItems: "center",
|
|
2552
|
-
justifyContent: "center",
|
|
2553
|
-
flexShrink: 0,
|
|
2554
|
-
width: h.icon,
|
|
2555
|
-
height: h.icon,
|
|
2556
|
-
color: v
|
|
2557
|
-
}, E = {
|
|
2558
|
-
onMouseEnter: () => p(!0),
|
|
2559
|
-
onMouseLeave: () => p(!1),
|
|
2560
|
-
onFocus: () => d(!0),
|
|
2561
|
-
onBlur: () => d(!1),
|
|
2562
|
-
disabled: a
|
|
2563
|
-
};
|
|
2564
|
-
return /* @__PURE__ */ j("label", {
|
|
2565
|
-
style: C,
|
|
2566
|
-
children: [
|
|
2567
|
-
S && /* @__PURE__ */ A("span", {
|
|
2568
|
-
style: T,
|
|
2569
|
-
children: S
|
|
2570
|
-
}),
|
|
2571
|
-
y ? /* @__PURE__ */ A("textarea", {
|
|
2572
|
-
ref: l,
|
|
2573
|
-
...E,
|
|
2574
|
-
style: w,
|
|
2575
|
-
...c
|
|
2576
|
-
}) : /* @__PURE__ */ A("input", {
|
|
2577
|
-
ref: l,
|
|
2578
|
-
type: t,
|
|
2579
|
-
...E,
|
|
2580
|
-
style: w,
|
|
2581
|
-
...c
|
|
2582
|
-
}),
|
|
2583
|
-
x && /* @__PURE__ */ A("span", {
|
|
2584
|
-
style: T,
|
|
2585
|
-
children: x
|
|
2586
|
-
})
|
|
2587
|
-
]
|
|
2588
|
-
});
|
|
2589
|
-
});
|
|
2590
|
-
Ve.displayName = "Input";
|
|
2591
|
-
//#endregion
|
|
2592
|
-
//#region src/components/select/Select.tsx
|
|
2593
|
-
var He = {
|
|
2594
|
-
sm: "sm",
|
|
2595
|
-
md: "md",
|
|
2596
|
-
lg: "lg"
|
|
2597
|
-
}, U = (e, t, n) => {
|
|
2598
|
-
let [r, i] = o(!1);
|
|
2599
|
-
return {
|
|
2600
|
-
state: e ? "disabled" : t ? "error" : n ? "focus" : r ? "hover" : "default",
|
|
2601
|
-
setHover: i
|
|
2602
|
-
};
|
|
2603
|
-
}, Ue = (e, t) => {
|
|
2604
|
-
let n = B.input.size[e], r = t === "disabled" ? B.input.bg.disabled : t === "error" ? B.input.bg.error : t === "focus" ? B.input.bg.focus : t === "hover" ? B.input.bg.hover : B.input.bg.default, i = t === "disabled" ? B.input.border.disabled : t === "error" ? B.input.border.error : t === "focus" ? B.input.border.focus : t === "hover" ? B.input.border.hover : B.input.border.default;
|
|
2605
|
-
return {
|
|
2606
|
-
display: "inline-flex",
|
|
2607
|
-
alignItems: "center",
|
|
2608
|
-
gap: n.gap,
|
|
2609
|
-
padding: `0 ${n.paddingX}`,
|
|
2610
|
-
height: n.height,
|
|
2611
|
-
background: r,
|
|
2612
|
-
border: `1px solid ${i}`,
|
|
2613
|
-
borderRadius: B.input.radius,
|
|
2614
|
-
color: t === "disabled" ? B.input.text.disabled : B.input.text.default,
|
|
2615
|
-
fontFamily: B.typography.body.sm.fontFamily,
|
|
2616
|
-
fontSize: n.fontSize,
|
|
2617
|
-
lineHeight: "20px",
|
|
2618
|
-
cursor: t === "disabled" ? "not-allowed" : "pointer",
|
|
2619
|
-
boxSizing: "border-box",
|
|
2620
|
-
minWidth: 0,
|
|
2621
|
-
transition: "border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease",
|
|
2622
|
-
boxShadow: t === "focus" ? `0 0 0 1px ${i} inset` : "none"
|
|
2623
|
-
};
|
|
2624
|
-
}, We = ({ options: e, selected: t, multi: n, onSelect: r, anchorRef: a, listRef: s }) => {
|
|
2625
|
-
let [c, l] = o(null);
|
|
2626
|
-
return i(() => {
|
|
2627
|
-
let e = () => {
|
|
2628
|
-
let e = a.current;
|
|
2629
|
-
if (!e) return;
|
|
2630
|
-
let t = e.getBoundingClientRect();
|
|
2631
|
-
l({
|
|
2632
|
-
top: t.bottom + 4,
|
|
2633
|
-
left: t.left,
|
|
2634
|
-
width: t.width
|
|
2635
|
-
});
|
|
2636
|
-
};
|
|
2637
|
-
return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
2638
|
-
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
2639
|
-
};
|
|
2640
|
-
}, [a]), typeof document > "u" ? null : M(/* @__PURE__ */ A("div", {
|
|
2641
|
-
ref: s,
|
|
2642
|
-
role: "listbox",
|
|
2643
|
-
style: {
|
|
2644
|
-
position: "fixed",
|
|
2645
|
-
top: c?.top ?? 0,
|
|
2646
|
-
left: c?.left ?? 0,
|
|
2647
|
-
width: c?.width ?? 0,
|
|
2648
|
-
maxHeight: 240,
|
|
2649
|
-
overflow: "auto",
|
|
2650
|
-
background: B.select.list.bg,
|
|
2651
|
-
border: `1px solid ${B.select.list.border}`,
|
|
2652
|
-
borderRadius: B.input.radius,
|
|
2653
|
-
padding: 4,
|
|
2654
|
-
zIndex: 1e3,
|
|
2655
|
-
boxSizing: "border-box",
|
|
2656
|
-
visibility: c ? "visible" : "hidden"
|
|
2657
|
-
},
|
|
2658
|
-
children: e.map((e) => {
|
|
2659
|
-
let i = t.includes(e.value);
|
|
2660
|
-
return /* @__PURE__ */ A(Ge, {
|
|
2661
|
-
label: e.label,
|
|
2662
|
-
selected: i,
|
|
2663
|
-
disabled: e.disabled,
|
|
2664
|
-
showCheck: n,
|
|
2665
|
-
onClick: () => !e.disabled && r(e.value)
|
|
2666
|
-
}, String(e.value));
|
|
2667
|
-
})
|
|
2668
|
-
}), document.body);
|
|
2669
|
-
}, Ge = ({ label: e, selected: t, disabled: n, showCheck: r, onClick: i }) => {
|
|
2670
|
-
let [a, s] = o(!1), c = t ? B.select.option.bg.selected : a ? B.select.option.bg.hover : "transparent", l = n ? B.select.option.text.disabled : t ? B.select.option.text.selected : B.select.option.text.default;
|
|
2671
|
-
return /* @__PURE__ */ j("div", {
|
|
2672
|
-
role: "option",
|
|
2673
|
-
"aria-selected": t,
|
|
2674
|
-
"aria-disabled": n,
|
|
2675
|
-
onClick: i,
|
|
2676
|
-
onMouseEnter: () => !n && s(!0),
|
|
2677
|
-
onMouseLeave: () => s(!1),
|
|
2678
|
-
style: {
|
|
2679
|
-
display: "flex",
|
|
2680
|
-
alignItems: "center",
|
|
2681
|
-
justifyContent: "space-between",
|
|
2682
|
-
gap: 8,
|
|
2683
|
-
height: 32,
|
|
2684
|
-
padding: "0 8px",
|
|
2685
|
-
borderRadius: 4,
|
|
2686
|
-
background: c,
|
|
2687
|
-
color: l,
|
|
2688
|
-
cursor: n ? "not-allowed" : "pointer",
|
|
2689
|
-
...B.typography.body.sm,
|
|
2690
|
-
fontSize: B.input.size.md.fontSize,
|
|
2691
|
-
userSelect: "none"
|
|
2692
|
-
},
|
|
2693
|
-
children: [/* @__PURE__ */ A("span", {
|
|
2694
|
-
style: {
|
|
2695
|
-
overflow: "hidden",
|
|
2696
|
-
textOverflow: "ellipsis",
|
|
2697
|
-
whiteSpace: "nowrap"
|
|
2698
|
-
},
|
|
2699
|
-
children: e
|
|
2700
|
-
}), r && t && /* @__PURE__ */ A(H, {
|
|
2701
|
-
name: "check",
|
|
2702
|
-
size: "sm"
|
|
2703
|
-
})]
|
|
2704
|
-
});
|
|
2705
|
-
}, Ke = t(({ size: e = "md", error: t, disabled: n, placeholder: i = "Select", value: s, options: c, onChange: l }, u) => {
|
|
2706
|
-
let [d, f] = o(!1), { state: p, setHover: m } = U(n, t, d), h = a(null), g = a(null);
|
|
2707
|
-
r(() => {
|
|
2708
|
-
if (!d) return;
|
|
2709
|
-
let e = (e) => {
|
|
2710
|
-
let t = e.target;
|
|
2711
|
-
h.current?.contains(t) || g.current?.contains(t) || f(!1);
|
|
2712
|
-
};
|
|
2713
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
2714
|
-
}, [d]);
|
|
2715
|
-
let _ = c.find((e) => e.value === s)?.label, v = n ? B.input.text.disabled : B.input.text.default;
|
|
2716
|
-
return /* @__PURE__ */ j("div", {
|
|
2717
|
-
ref: u,
|
|
2718
|
-
style: {
|
|
2719
|
-
position: "relative",
|
|
2720
|
-
display: "inline-block"
|
|
2721
|
-
},
|
|
2722
|
-
children: [/* @__PURE__ */ j("div", {
|
|
2723
|
-
ref: h,
|
|
2724
|
-
role: "combobox",
|
|
2725
|
-
"aria-expanded": d,
|
|
2726
|
-
"aria-disabled": n,
|
|
2727
|
-
onClick: () => !n && f((e) => !e),
|
|
2728
|
-
onMouseEnter: () => m(!0),
|
|
2729
|
-
onMouseLeave: () => m(!1),
|
|
2730
|
-
style: Ue(e, p),
|
|
2731
|
-
children: [/* @__PURE__ */ A("span", {
|
|
2732
|
-
style: {
|
|
2733
|
-
flex: 1,
|
|
2734
|
-
minWidth: 0,
|
|
2735
|
-
overflow: "hidden",
|
|
2736
|
-
textOverflow: "ellipsis",
|
|
2737
|
-
whiteSpace: "nowrap",
|
|
2738
|
-
color: _ ? "inherit" : B.input.text.placeholder
|
|
2739
|
-
},
|
|
2740
|
-
children: _ ?? i
|
|
2741
|
-
}), /* @__PURE__ */ A("span", {
|
|
2742
|
-
style: {
|
|
2743
|
-
display: "inline-flex",
|
|
2744
|
-
flexShrink: 0,
|
|
2745
|
-
color: v,
|
|
2746
|
-
transform: d ? "rotate(180deg)" : "none",
|
|
2747
|
-
transition: "transform 0.15s ease"
|
|
2748
|
-
},
|
|
2749
|
-
children: /* @__PURE__ */ A(H, {
|
|
2750
|
-
name: "down",
|
|
2751
|
-
size: He[e]
|
|
2752
|
-
})
|
|
2753
|
-
})]
|
|
2754
|
-
}), d && !n && /* @__PURE__ */ A(We, {
|
|
2755
|
-
options: c,
|
|
2756
|
-
selected: s === void 0 ? [] : [s],
|
|
2757
|
-
multi: !1,
|
|
2758
|
-
onSelect: (e) => {
|
|
2759
|
-
l?.(e), f(!1);
|
|
2760
|
-
},
|
|
2761
|
-
anchorRef: h,
|
|
2762
|
-
listRef: g
|
|
2763
|
-
})]
|
|
2764
|
-
});
|
|
2765
|
-
}), qe = t(({ size: e = "md", error: t, disabled: n, placeholder: i = "Select", value: s = [], options: c, onChange: l }, u) => {
|
|
2766
|
-
let [d, f] = o(!1), { state: p, setHover: m } = U(n, t, d), h = a(null), g = a(null);
|
|
2767
|
-
r(() => {
|
|
2768
|
-
if (!d) return;
|
|
2769
|
-
let e = (e) => {
|
|
2770
|
-
let t = e.target;
|
|
2771
|
-
h.current?.contains(t) || g.current?.contains(t) || f(!1);
|
|
2772
|
-
};
|
|
2773
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
2774
|
-
}, [d]);
|
|
2775
|
-
let _ = c.filter((e) => s.includes(e.value)), v = n ? B.input.text.disabled : B.input.text.default, y = (e) => {
|
|
2776
|
-
let t = s.includes(e) ? s.filter((t) => t !== e) : [...s, e];
|
|
2777
|
-
l?.(t);
|
|
2778
|
-
};
|
|
2779
|
-
return /* @__PURE__ */ j("div", {
|
|
2780
|
-
ref: u,
|
|
2781
|
-
style: {
|
|
2782
|
-
position: "relative",
|
|
2783
|
-
display: "inline-block"
|
|
2784
|
-
},
|
|
2785
|
-
children: [/* @__PURE__ */ j("div", {
|
|
2786
|
-
ref: h,
|
|
2787
|
-
role: "combobox",
|
|
2788
|
-
"aria-expanded": d,
|
|
2789
|
-
"aria-disabled": n,
|
|
2790
|
-
onClick: () => !n && f((e) => !e),
|
|
2791
|
-
onMouseEnter: () => m(!0),
|
|
2792
|
-
onMouseLeave: () => m(!1),
|
|
2793
|
-
style: Ue(e, p),
|
|
2794
|
-
children: [/* @__PURE__ */ A("div", {
|
|
2795
|
-
style: {
|
|
2796
|
-
flex: 1,
|
|
2797
|
-
minWidth: 0,
|
|
2798
|
-
display: "flex",
|
|
2799
|
-
flexWrap: "wrap",
|
|
2800
|
-
gap: 4
|
|
2801
|
-
},
|
|
2802
|
-
children: _.length === 0 ? /* @__PURE__ */ A("span", {
|
|
2803
|
-
style: { color: B.input.text.placeholder },
|
|
2804
|
-
children: i
|
|
2805
|
-
}) : _.map((e) => /* @__PURE__ */ j("span", {
|
|
2806
|
-
style: {
|
|
2807
|
-
display: "inline-flex",
|
|
2808
|
-
alignItems: "center",
|
|
2809
|
-
gap: B.tag.size.sm.gap,
|
|
2810
|
-
height: B.tag.size.sm.height,
|
|
2811
|
-
padding: `0 ${B.tag.size.sm.paddingX}`,
|
|
2812
|
-
background: B.tag.neutral.bg.default,
|
|
2813
|
-
color: B.tag.neutral.text,
|
|
2814
|
-
border: `1px solid ${B.tag.neutral.border}`,
|
|
2815
|
-
borderRadius: B.tag.radius,
|
|
2816
|
-
fontSize: 12,
|
|
2817
|
-
lineHeight: "16px"
|
|
2818
|
-
},
|
|
2819
|
-
children: [e.label, /* @__PURE__ */ A("button", {
|
|
2820
|
-
type: "button",
|
|
2821
|
-
onClick: (t) => {
|
|
2822
|
-
t.stopPropagation(), n || y(e.value);
|
|
2823
|
-
},
|
|
2824
|
-
style: {
|
|
2825
|
-
background: "transparent",
|
|
2826
|
-
border: "none",
|
|
2827
|
-
color: "inherit",
|
|
2828
|
-
cursor: n ? "not-allowed" : "pointer",
|
|
2829
|
-
padding: 0,
|
|
2830
|
-
display: "inline-flex"
|
|
2831
|
-
},
|
|
2832
|
-
"aria-label": "remove",
|
|
2833
|
-
children: /* @__PURE__ */ A(H, {
|
|
2834
|
-
name: "x",
|
|
2835
|
-
size: "sm"
|
|
2836
|
-
})
|
|
2837
|
-
})]
|
|
2838
|
-
}, String(e.value)))
|
|
2839
|
-
}), /* @__PURE__ */ A("span", {
|
|
2840
|
-
style: {
|
|
2841
|
-
display: "inline-flex",
|
|
2842
|
-
flexShrink: 0,
|
|
2843
|
-
color: v,
|
|
2844
|
-
transform: d ? "rotate(180deg)" : "none",
|
|
2845
|
-
transition: "transform 0.15s ease"
|
|
2846
|
-
},
|
|
2847
|
-
children: /* @__PURE__ */ A(H, {
|
|
2848
|
-
name: "down",
|
|
2849
|
-
size: He[e]
|
|
2850
|
-
})
|
|
2851
|
-
})]
|
|
2852
|
-
}), d && !n && /* @__PURE__ */ A(We, {
|
|
2853
|
-
options: c,
|
|
2854
|
-
selected: s,
|
|
2855
|
-
multi: !0,
|
|
2856
|
-
onSelect: (e) => y(e),
|
|
2857
|
-
anchorRef: h,
|
|
2858
|
-
listRef: g
|
|
2859
|
-
})]
|
|
2860
|
-
});
|
|
2861
|
-
}), Je = t(({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r, onClick: i, onFocus: s, onBlur: c, onMouseDown: l, style: u, ...d }, f) => {
|
|
2862
|
-
let [p, m] = o(t), h = e ?? p, g = e !== void 0, [_, v] = o(!1), y = a(!1), b = r ? h ? B.toggle.bg.disabledOn : B.toggle.bg.disabledOff : h ? B.toggle.bg.on : B.toggle.bg.off, x = r ? B.toggle.thumb.disabled : B.toggle.thumb.color, S = h ? 14 : 2;
|
|
2863
|
-
return /* @__PURE__ */ A("button", {
|
|
2864
|
-
ref: f,
|
|
2865
|
-
type: "button",
|
|
2866
|
-
role: "switch",
|
|
2867
|
-
"aria-checked": h,
|
|
2868
|
-
disabled: r,
|
|
2869
|
-
onClick: (e) => {
|
|
2870
|
-
if (r) return;
|
|
2871
|
-
let t = !h;
|
|
2872
|
-
g || m(t), n?.(t), i?.(e);
|
|
2873
|
-
},
|
|
2874
|
-
onFocus: (e) => {
|
|
2875
|
-
y.current || v(!0), y.current = !1, s?.(e);
|
|
2876
|
-
},
|
|
2877
|
-
onBlur: (e) => {
|
|
2878
|
-
v(!1), c?.(e);
|
|
2879
|
-
},
|
|
2880
|
-
onMouseDown: (e) => {
|
|
2881
|
-
y.current = !0, l?.(e);
|
|
2882
|
-
},
|
|
2883
|
-
style: {
|
|
2884
|
-
position: "relative",
|
|
2885
|
-
width: B.toggle.width,
|
|
2886
|
-
height: B.toggle.height,
|
|
2887
|
-
padding: 0,
|
|
2888
|
-
background: b,
|
|
2889
|
-
border: "none",
|
|
2890
|
-
borderRadius: 9999,
|
|
2891
|
-
cursor: r ? "not-allowed" : "pointer",
|
|
2892
|
-
outline: "none",
|
|
2893
|
-
boxShadow: _ ? `0 0 0 2px ${B.toggle.bg.on}` : "none",
|
|
2894
|
-
transition: "background 0.15s ease, box-shadow 0.15s ease",
|
|
2895
|
-
...u
|
|
2896
|
-
},
|
|
2897
|
-
...d,
|
|
2898
|
-
children: /* @__PURE__ */ A("span", {
|
|
2899
|
-
"aria-hidden": !0,
|
|
2900
|
-
style: {
|
|
2901
|
-
position: "absolute",
|
|
2902
|
-
top: "50%",
|
|
2903
|
-
left: S,
|
|
2904
|
-
width: B.toggle.thumb.size,
|
|
2905
|
-
height: B.toggle.thumb.size,
|
|
2906
|
-
background: x,
|
|
2907
|
-
borderRadius: 9999,
|
|
2908
|
-
transform: "translateY(-50%)",
|
|
2909
|
-
transition: "left 0.15s ease, background 0.15s ease"
|
|
2910
|
-
}
|
|
2911
|
-
})
|
|
2912
|
-
});
|
|
2913
|
-
});
|
|
2914
|
-
Je.displayName = "Toggle";
|
|
2597
|
+
Q.displayName = "Icon";
|
|
2915
2598
|
//#endregion
|
|
2916
2599
|
//#region src/components/scroll-area/ScrollArea.tsx
|
|
2917
|
-
var
|
|
2600
|
+
var $ = e(({ horizontal: e, className: t, style: n, children: r, ...i }, a) => /* @__PURE__ */ W("div", {
|
|
2918
2601
|
ref: a,
|
|
2919
2602
|
className: `cytur-scroll${t ? ` ${t}` : ""}`,
|
|
2920
2603
|
style: {
|
|
@@ -2925,927 +2608,6 @@ var Ye = t(({ horizontal: e, className: t, style: n, children: r, ...i }, a) =>
|
|
|
2925
2608
|
...i,
|
|
2926
2609
|
children: r
|
|
2927
2610
|
}));
|
|
2928
|
-
|
|
2929
|
-
//#endregion
|
|
2930
|
-
//#region src/components/dropdown/Dropdown.tsx
|
|
2931
|
-
var Xe = {
|
|
2932
|
-
sm: 160,
|
|
2933
|
-
md: 200,
|
|
2934
|
-
lg: 240
|
|
2935
|
-
}, Ze = ({ item: e, size: t }) => {
|
|
2936
|
-
let [n, r] = o(!1), i = e.variant === "danger", a = B.dropdown.item.size[t], s = e.disabled ? B.dropdown.item.text.disabled : i ? B.dropdown.item.text.danger : B.dropdown.item.text.default, c = !e.disabled && n ? B.dropdown.item.bg.hover : "transparent", l = e.disabled ? B.dropdown.item.text.disabled : i ? B.dropdown.item.icon.danger : B.dropdown.item.icon.default;
|
|
2937
|
-
return /* @__PURE__ */ j("div", {
|
|
2938
|
-
role: "menuitem",
|
|
2939
|
-
"aria-disabled": e.disabled,
|
|
2940
|
-
onClick: () => !e.disabled && e.onClick?.(),
|
|
2941
|
-
onMouseEnter: () => !e.disabled && r(!0),
|
|
2942
|
-
onMouseLeave: () => r(!1),
|
|
2943
|
-
style: {
|
|
2944
|
-
display: "flex",
|
|
2945
|
-
alignItems: "center",
|
|
2946
|
-
gap: a.gap,
|
|
2947
|
-
height: a.height,
|
|
2948
|
-
padding: `0 ${a.paddingX}`,
|
|
2949
|
-
borderRadius: a.radius,
|
|
2950
|
-
background: c,
|
|
2951
|
-
color: s,
|
|
2952
|
-
cursor: e.disabled ? "not-allowed" : "pointer",
|
|
2953
|
-
userSelect: "none",
|
|
2954
|
-
transition: "background 0.15s ease, color 0.15s ease",
|
|
2955
|
-
...B.typography.body.md
|
|
2956
|
-
},
|
|
2957
|
-
children: [e.icon && /* @__PURE__ */ A("span", {
|
|
2958
|
-
"aria-hidden": !0,
|
|
2959
|
-
style: {
|
|
2960
|
-
display: "inline-flex",
|
|
2961
|
-
alignItems: "center",
|
|
2962
|
-
justifyContent: "center",
|
|
2963
|
-
flexShrink: 0,
|
|
2964
|
-
width: a.icon,
|
|
2965
|
-
height: a.icon,
|
|
2966
|
-
color: l
|
|
2967
|
-
},
|
|
2968
|
-
children: e.icon
|
|
2969
|
-
}), /* @__PURE__ */ A("span", {
|
|
2970
|
-
style: {
|
|
2971
|
-
flex: 1,
|
|
2972
|
-
overflow: "hidden",
|
|
2973
|
-
textOverflow: "ellipsis",
|
|
2974
|
-
whiteSpace: "nowrap"
|
|
2975
|
-
},
|
|
2976
|
-
children: e.label
|
|
2977
|
-
})]
|
|
2978
|
-
});
|
|
2979
|
-
}, Qe = () => /* @__PURE__ */ A("div", {
|
|
2980
|
-
role: "separator",
|
|
2981
|
-
style: {
|
|
2982
|
-
height: B.dropdown.divider.thickness,
|
|
2983
|
-
background: B.dropdown.divider.color,
|
|
2984
|
-
margin: `${B.dropdown.divider.marginY} 0`
|
|
2985
|
-
}
|
|
2986
|
-
}), $e = t(({ trigger: t, items: s, size: c = "md", open: l, onOpenChange: u, menuWidth: d, placement: f = "bottom-start" }, p) => {
|
|
2987
|
-
let [m, h] = o(!1), g = l !== void 0, _ = g ? l : m, v = a(null), y = a(null), [b, x] = o(null), S = (e) => {
|
|
2988
|
-
g || h(e), u?.(e);
|
|
2989
|
-
};
|
|
2990
|
-
i(() => {
|
|
2991
|
-
if (!_) {
|
|
2992
|
-
x(null);
|
|
2993
|
-
return;
|
|
2994
|
-
}
|
|
2995
|
-
let e = () => {
|
|
2996
|
-
let e = v.current;
|
|
2997
|
-
if (!e) return;
|
|
2998
|
-
let t = e.getBoundingClientRect(), n = typeof d == "number" ? d : d ? parseInt(d, 10) : Xe[c], r = f === "bottom-end" ? t.right - n : t.left;
|
|
2999
|
-
x({
|
|
3000
|
-
top: t.bottom + 4,
|
|
3001
|
-
left: r
|
|
3002
|
-
});
|
|
3003
|
-
};
|
|
3004
|
-
return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
3005
|
-
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
3006
|
-
};
|
|
3007
|
-
}, [
|
|
3008
|
-
_,
|
|
3009
|
-
f,
|
|
3010
|
-
c,
|
|
3011
|
-
d
|
|
3012
|
-
]), r(() => {
|
|
3013
|
-
if (!_) return;
|
|
3014
|
-
let e = (e) => {
|
|
3015
|
-
let t = e.target;
|
|
3016
|
-
v.current?.contains(t) || y.current?.contains(t) || S(!1);
|
|
3017
|
-
};
|
|
3018
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
3019
|
-
}, [_]);
|
|
3020
|
-
let C = n(t) ? e(t, { onClick: (e) => {
|
|
3021
|
-
t.props.onClick?.(e), S(!_);
|
|
3022
|
-
} }) : t, w = {
|
|
3023
|
-
position: "fixed",
|
|
3024
|
-
top: b?.top ?? 0,
|
|
3025
|
-
left: b?.left ?? 0,
|
|
3026
|
-
width: d ?? Xe[c],
|
|
3027
|
-
background: B.dropdown.menu.bg,
|
|
3028
|
-
border: `1px solid ${B.dropdown.menu.border}`,
|
|
3029
|
-
borderRadius: B.dropdown.menu.radius,
|
|
3030
|
-
padding: B.dropdown.menu.padding,
|
|
3031
|
-
boxShadow: B.dropdown.menu.shadow,
|
|
3032
|
-
zIndex: 1e3,
|
|
3033
|
-
boxSizing: "border-box",
|
|
3034
|
-
visibility: b ? "visible" : "hidden"
|
|
3035
|
-
};
|
|
3036
|
-
return /* @__PURE__ */ j("div", {
|
|
3037
|
-
ref: p,
|
|
3038
|
-
style: { display: "inline-block" },
|
|
3039
|
-
children: [/* @__PURE__ */ A("div", {
|
|
3040
|
-
ref: v,
|
|
3041
|
-
style: { display: "inline-block" },
|
|
3042
|
-
children: C
|
|
3043
|
-
}), _ && typeof document < "u" && M(/* @__PURE__ */ A("div", {
|
|
3044
|
-
ref: y,
|
|
3045
|
-
role: "menu",
|
|
3046
|
-
style: w,
|
|
3047
|
-
children: s.map((e, t) => {
|
|
3048
|
-
if ("type" in e && e.type === "divider") return /* @__PURE__ */ A(Qe, {}, e.key ?? `div-${t}`);
|
|
3049
|
-
let n = e;
|
|
3050
|
-
return /* @__PURE__ */ A(Ze, {
|
|
3051
|
-
size: c,
|
|
3052
|
-
item: {
|
|
3053
|
-
...n,
|
|
3054
|
-
onClick: () => {
|
|
3055
|
-
n.onClick?.(), S(!1);
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
}, n.key ?? `item-${t}`);
|
|
3059
|
-
})
|
|
3060
|
-
}), document.body)]
|
|
3061
|
-
});
|
|
3062
|
-
});
|
|
3063
|
-
$e.displayName = "Dropdown";
|
|
3064
|
-
//#endregion
|
|
3065
|
-
//#region src/components/tag/Tag.tsx
|
|
3066
|
-
var et = () => /* @__PURE__ */ A("svg", {
|
|
3067
|
-
width: "100%",
|
|
3068
|
-
height: "100%",
|
|
3069
|
-
viewBox: "0 0 16 16",
|
|
3070
|
-
fill: "none",
|
|
3071
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3072
|
-
children: /* @__PURE__ */ A("path", {
|
|
3073
|
-
d: "M3.5 3.5L12.5 12.5M12.5 3.5L3.5 12.5",
|
|
3074
|
-
stroke: "currentColor",
|
|
3075
|
-
strokeWidth: "1.4",
|
|
3076
|
-
strokeLinecap: "round"
|
|
3077
|
-
})
|
|
3078
|
-
}), tt = t(({ color: e = "neutral", size: t = "md", icon: n, selected: r, disabled: i, closable: a, onClose: s, onMouseEnter: c, onMouseLeave: l, style: u, children: d, ...f }, p) => {
|
|
3079
|
-
let [m, h] = o(!1), g = B.tag.size[t], _ = B.tag[e], v = i ? "disabled" : r ? "selected" : m ? "hover" : "default", y = i ? B.tag.disabled.bg : v === "selected" ? _.bg.selected : v === "hover" ? _.bg.hover : _.bg.default, b = i ? B.tag.disabled.border : _.border, x = i ? B.tag.disabled.text : _.text;
|
|
3080
|
-
return /* @__PURE__ */ j("span", {
|
|
3081
|
-
ref: p,
|
|
3082
|
-
onMouseEnter: (e) => {
|
|
3083
|
-
i || h(!0), c?.(e);
|
|
3084
|
-
},
|
|
3085
|
-
onMouseLeave: (e) => {
|
|
3086
|
-
h(!1), l?.(e);
|
|
3087
|
-
},
|
|
3088
|
-
style: {
|
|
3089
|
-
display: "inline-flex",
|
|
3090
|
-
alignItems: "center",
|
|
3091
|
-
gap: g.gap,
|
|
3092
|
-
height: g.height,
|
|
3093
|
-
padding: `0 ${g.paddingX}`,
|
|
3094
|
-
background: y,
|
|
3095
|
-
color: x,
|
|
3096
|
-
border: `1px solid ${b}`,
|
|
3097
|
-
borderRadius: B.tag.radius,
|
|
3098
|
-
fontFamily: B.typography.body.md.fontFamily,
|
|
3099
|
-
fontWeight: 500,
|
|
3100
|
-
fontSize: g.fontSize,
|
|
3101
|
-
lineHeight: g.lineHeight,
|
|
3102
|
-
cursor: i ? "not-allowed" : "default",
|
|
3103
|
-
transition: "background 0.15s ease, border-color 0.15s ease",
|
|
3104
|
-
whiteSpace: "nowrap",
|
|
3105
|
-
boxSizing: "border-box",
|
|
3106
|
-
...u
|
|
3107
|
-
},
|
|
3108
|
-
...f,
|
|
3109
|
-
children: [
|
|
3110
|
-
n && /* @__PURE__ */ A("span", {
|
|
3111
|
-
"aria-hidden": !0,
|
|
3112
|
-
style: {
|
|
3113
|
-
display: "inline-flex",
|
|
3114
|
-
alignItems: "center",
|
|
3115
|
-
justifyContent: "center",
|
|
3116
|
-
flexShrink: 0,
|
|
3117
|
-
width: g.icon,
|
|
3118
|
-
height: g.icon
|
|
3119
|
-
},
|
|
3120
|
-
children: n
|
|
3121
|
-
}),
|
|
3122
|
-
d,
|
|
3123
|
-
a && /* @__PURE__ */ A("button", {
|
|
3124
|
-
type: "button",
|
|
3125
|
-
onClick: (e) => {
|
|
3126
|
-
e.stopPropagation(), i || s?.(e);
|
|
3127
|
-
},
|
|
3128
|
-
disabled: i,
|
|
3129
|
-
"aria-label": "remove",
|
|
3130
|
-
style: {
|
|
3131
|
-
display: "inline-flex",
|
|
3132
|
-
alignItems: "center",
|
|
3133
|
-
justifyContent: "center",
|
|
3134
|
-
flexShrink: 0,
|
|
3135
|
-
width: g.icon,
|
|
3136
|
-
height: g.icon,
|
|
3137
|
-
padding: 0,
|
|
3138
|
-
border: "none",
|
|
3139
|
-
background: "transparent",
|
|
3140
|
-
color: "inherit",
|
|
3141
|
-
cursor: i ? "not-allowed" : "pointer"
|
|
3142
|
-
},
|
|
3143
|
-
children: /* @__PURE__ */ A(et, {})
|
|
3144
|
-
})
|
|
3145
|
-
]
|
|
3146
|
-
});
|
|
3147
|
-
});
|
|
3148
|
-
tt.displayName = "Tag";
|
|
3149
|
-
//#endregion
|
|
3150
|
-
//#region src/components/checkbox/Checkbox.tsx
|
|
3151
|
-
var nt = () => /* @__PURE__ */ A("svg", {
|
|
3152
|
-
width: "100%",
|
|
3153
|
-
height: "100%",
|
|
3154
|
-
viewBox: "0 0 16 16",
|
|
3155
|
-
fill: "none",
|
|
3156
|
-
children: /* @__PURE__ */ A("path", {
|
|
3157
|
-
d: "M3.5 8L7 11L12.5 5",
|
|
3158
|
-
stroke: "currentColor",
|
|
3159
|
-
strokeWidth: "2",
|
|
3160
|
-
strokeLinecap: "round",
|
|
3161
|
-
strokeLinejoin: "round"
|
|
3162
|
-
})
|
|
3163
|
-
}), rt = () => /* @__PURE__ */ A("svg", {
|
|
3164
|
-
width: "100%",
|
|
3165
|
-
height: "100%",
|
|
3166
|
-
viewBox: "0 0 16 16",
|
|
3167
|
-
fill: "none",
|
|
3168
|
-
children: /* @__PURE__ */ A("path", {
|
|
3169
|
-
d: "M4 8H12",
|
|
3170
|
-
stroke: "currentColor",
|
|
3171
|
-
strokeWidth: "2",
|
|
3172
|
-
strokeLinecap: "round"
|
|
3173
|
-
})
|
|
3174
|
-
}), it = t(({ checked: e, defaultChecked: t = !1, indeterminate: n, onChange: r, disabled: i, label: s, children: c, onFocus: l, onBlur: u, onMouseDown: d, ...f }, p) => {
|
|
3175
|
-
let [m, h] = o(t), g = e !== void 0, _ = g ? e : m, [v, y] = o(!1), [b, x] = o(!1), S = a(!1), C = n || _, w = i ? B.checkbox.bg.disabled : C ? B.checkbox.bg.on : v ? B.checkbox.bg.hover : B.checkbox.bg.off, T = i ? B.checkbox.border.disabled : C || v || b ? B.checkbox.border.on : B.checkbox.border.off, E = b ? 2 : 1;
|
|
3176
|
-
return /* @__PURE__ */ j("label", {
|
|
3177
|
-
style: {
|
|
3178
|
-
display: "inline-flex",
|
|
3179
|
-
alignItems: "center",
|
|
3180
|
-
gap: B.checkbox.gap,
|
|
3181
|
-
cursor: i ? "not-allowed" : "pointer",
|
|
3182
|
-
color: i ? B.text.disabled : B.text.primary,
|
|
3183
|
-
...B.typography.label.md,
|
|
3184
|
-
userSelect: "none"
|
|
3185
|
-
},
|
|
3186
|
-
onMouseEnter: () => !i && y(!0),
|
|
3187
|
-
onMouseLeave: () => y(!1),
|
|
3188
|
-
children: [
|
|
3189
|
-
/* @__PURE__ */ A("input", {
|
|
3190
|
-
ref: p,
|
|
3191
|
-
type: "checkbox",
|
|
3192
|
-
checked: _,
|
|
3193
|
-
disabled: i,
|
|
3194
|
-
onChange: (e) => {
|
|
3195
|
-
let t = e.target.checked;
|
|
3196
|
-
g || h(t), r?.(t);
|
|
3197
|
-
},
|
|
3198
|
-
onMouseDown: (e) => {
|
|
3199
|
-
S.current = !0, d?.(e);
|
|
3200
|
-
},
|
|
3201
|
-
onFocus: (e) => {
|
|
3202
|
-
S.current || x(!0), S.current = !1, l?.(e);
|
|
3203
|
-
},
|
|
3204
|
-
onBlur: (e) => {
|
|
3205
|
-
x(!1), u?.(e);
|
|
3206
|
-
},
|
|
3207
|
-
style: {
|
|
3208
|
-
position: "absolute",
|
|
3209
|
-
opacity: 0,
|
|
3210
|
-
width: 1,
|
|
3211
|
-
height: 1,
|
|
3212
|
-
margin: -1,
|
|
3213
|
-
padding: 0,
|
|
3214
|
-
overflow: "hidden",
|
|
3215
|
-
clip: "rect(0,0,0,0)",
|
|
3216
|
-
border: 0
|
|
3217
|
-
},
|
|
3218
|
-
"aria-checked": n ? "mixed" : _,
|
|
3219
|
-
...f
|
|
3220
|
-
}),
|
|
3221
|
-
/* @__PURE__ */ A("span", {
|
|
3222
|
-
"aria-hidden": !0,
|
|
3223
|
-
style: {
|
|
3224
|
-
display: "inline-flex",
|
|
3225
|
-
alignItems: "center",
|
|
3226
|
-
justifyContent: "center",
|
|
3227
|
-
flexShrink: 0,
|
|
3228
|
-
width: B.checkbox.size,
|
|
3229
|
-
height: B.checkbox.size,
|
|
3230
|
-
background: w,
|
|
3231
|
-
border: `${E}px solid ${T}`,
|
|
3232
|
-
borderRadius: B.checkbox.radius,
|
|
3233
|
-
color: B.checkbox.check.color,
|
|
3234
|
-
boxSizing: "border-box",
|
|
3235
|
-
transition: "background 0.12s ease, border-color 0.12s ease"
|
|
3236
|
-
},
|
|
3237
|
-
children: n ? /* @__PURE__ */ A(rt, {}) : _ ? /* @__PURE__ */ A(nt, {}) : null
|
|
3238
|
-
}),
|
|
3239
|
-
(c ?? s) && /* @__PURE__ */ A("span", { children: c ?? s })
|
|
3240
|
-
]
|
|
3241
|
-
});
|
|
3242
|
-
});
|
|
3243
|
-
it.displayName = "Checkbox";
|
|
3244
|
-
//#endregion
|
|
3245
|
-
//#region src/components/radio/Radio.tsx
|
|
3246
|
-
var at = t(({ checked: e, defaultChecked: t = !1, onChange: n, disabled: r, label: i, children: s, onFocus: c, onBlur: l, onMouseDown: u, ...d }, f) => {
|
|
3247
|
-
let [p, m] = o(t), h = e !== void 0, g = h ? e : p, [_, v] = o(!1), [y, b] = o(!1), x = a(!1), S = r ? B.radio.bg.disabled : _ && !g ? B.radio.bg.hover : "transparent", C = r ? B.radio.border.disabled : g ? B.radio.border.on : _ || y ? B.radio.border.hover : B.radio.border.off, w = y ? 2 : 1;
|
|
3248
|
-
return /* @__PURE__ */ j("label", {
|
|
3249
|
-
style: {
|
|
3250
|
-
display: "inline-flex",
|
|
3251
|
-
alignItems: "center",
|
|
3252
|
-
gap: B.radio.gap,
|
|
3253
|
-
cursor: r ? "not-allowed" : "pointer",
|
|
3254
|
-
color: r ? B.text.disabled : B.text.primary,
|
|
3255
|
-
...B.typography.label.md,
|
|
3256
|
-
userSelect: "none"
|
|
3257
|
-
},
|
|
3258
|
-
onMouseEnter: () => !r && v(!0),
|
|
3259
|
-
onMouseLeave: () => v(!1),
|
|
3260
|
-
children: [
|
|
3261
|
-
/* @__PURE__ */ A("input", {
|
|
3262
|
-
ref: f,
|
|
3263
|
-
type: "radio",
|
|
3264
|
-
checked: g,
|
|
3265
|
-
disabled: r,
|
|
3266
|
-
onChange: (e) => {
|
|
3267
|
-
let t = e.target.checked;
|
|
3268
|
-
h || m(t), n?.(t);
|
|
3269
|
-
},
|
|
3270
|
-
onMouseDown: (e) => {
|
|
3271
|
-
x.current = !0, u?.(e);
|
|
3272
|
-
},
|
|
3273
|
-
onFocus: (e) => {
|
|
3274
|
-
x.current || b(!0), x.current = !1, c?.(e);
|
|
3275
|
-
},
|
|
3276
|
-
onBlur: (e) => {
|
|
3277
|
-
b(!1), l?.(e);
|
|
3278
|
-
},
|
|
3279
|
-
style: {
|
|
3280
|
-
position: "absolute",
|
|
3281
|
-
opacity: 0,
|
|
3282
|
-
width: 1,
|
|
3283
|
-
height: 1,
|
|
3284
|
-
margin: -1,
|
|
3285
|
-
padding: 0,
|
|
3286
|
-
overflow: "hidden",
|
|
3287
|
-
clip: "rect(0,0,0,0)",
|
|
3288
|
-
border: 0
|
|
3289
|
-
},
|
|
3290
|
-
...d
|
|
3291
|
-
}),
|
|
3292
|
-
/* @__PURE__ */ A("span", {
|
|
3293
|
-
"aria-hidden": !0,
|
|
3294
|
-
style: {
|
|
3295
|
-
display: "inline-flex",
|
|
3296
|
-
alignItems: "center",
|
|
3297
|
-
justifyContent: "center",
|
|
3298
|
-
flexShrink: 0,
|
|
3299
|
-
width: B.radio.size,
|
|
3300
|
-
height: B.radio.size,
|
|
3301
|
-
background: S,
|
|
3302
|
-
border: `${w}px solid ${C}`,
|
|
3303
|
-
borderRadius: "50%",
|
|
3304
|
-
boxSizing: "border-box",
|
|
3305
|
-
transition: "background 0.12s ease, border-color 0.12s ease"
|
|
3306
|
-
},
|
|
3307
|
-
children: g && /* @__PURE__ */ A("span", { style: {
|
|
3308
|
-
width: B.radio.dot.size,
|
|
3309
|
-
height: B.radio.dot.size,
|
|
3310
|
-
background: B.radio.dot.color,
|
|
3311
|
-
borderRadius: "50%"
|
|
3312
|
-
} })
|
|
3313
|
-
}),
|
|
3314
|
-
(s ?? i) && /* @__PURE__ */ A("span", { children: s ?? i })
|
|
3315
|
-
]
|
|
3316
|
-
});
|
|
3317
|
-
});
|
|
3318
|
-
at.displayName = "Radio";
|
|
3319
|
-
//#endregion
|
|
3320
|
-
//#region src/components/tooltip/Tooltip.tsx
|
|
3321
|
-
var W = B.tooltip.bg, ot = 4, st = (e, t, n, r) => {
|
|
3322
|
-
let i = ot + r, a = t?.width ?? 0, o = t?.height ?? 0;
|
|
3323
|
-
switch (n) {
|
|
3324
|
-
case "bottom": return {
|
|
3325
|
-
top: e.bottom + i,
|
|
3326
|
-
left: e.left + e.width / 2 - a / 2
|
|
3327
|
-
};
|
|
3328
|
-
case "left": return {
|
|
3329
|
-
top: e.top + e.height / 2 - o / 2,
|
|
3330
|
-
left: e.left - a - i
|
|
3331
|
-
};
|
|
3332
|
-
case "right": return {
|
|
3333
|
-
top: e.top + e.height / 2 - o / 2,
|
|
3334
|
-
left: e.right + i
|
|
3335
|
-
};
|
|
3336
|
-
default: return {
|
|
3337
|
-
top: e.top - o - i,
|
|
3338
|
-
left: e.left + e.width / 2 - a / 2
|
|
3339
|
-
};
|
|
3340
|
-
}
|
|
3341
|
-
}, ct = (e) => {
|
|
3342
|
-
let t = ot;
|
|
3343
|
-
switch (e) {
|
|
3344
|
-
case "top": return {
|
|
3345
|
-
position: "absolute",
|
|
3346
|
-
top: "100%",
|
|
3347
|
-
left: "50%",
|
|
3348
|
-
transform: "translateX(-50%)",
|
|
3349
|
-
width: 0,
|
|
3350
|
-
height: 0,
|
|
3351
|
-
borderLeft: `${t}px solid transparent`,
|
|
3352
|
-
borderRight: `${t}px solid transparent`,
|
|
3353
|
-
borderTop: `${t}px solid ${W}`
|
|
3354
|
-
};
|
|
3355
|
-
case "bottom": return {
|
|
3356
|
-
position: "absolute",
|
|
3357
|
-
bottom: "100%",
|
|
3358
|
-
left: "50%",
|
|
3359
|
-
transform: "translateX(-50%)",
|
|
3360
|
-
width: 0,
|
|
3361
|
-
height: 0,
|
|
3362
|
-
borderLeft: `${t}px solid transparent`,
|
|
3363
|
-
borderRight: `${t}px solid transparent`,
|
|
3364
|
-
borderBottom: `${t}px solid ${W}`
|
|
3365
|
-
};
|
|
3366
|
-
case "left": return {
|
|
3367
|
-
position: "absolute",
|
|
3368
|
-
left: "100%",
|
|
3369
|
-
top: "50%",
|
|
3370
|
-
transform: "translateY(-50%)",
|
|
3371
|
-
width: 0,
|
|
3372
|
-
height: 0,
|
|
3373
|
-
borderTop: `${t}px solid transparent`,
|
|
3374
|
-
borderBottom: `${t}px solid transparent`,
|
|
3375
|
-
borderLeft: `${t}px solid ${W}`
|
|
3376
|
-
};
|
|
3377
|
-
case "right": return {
|
|
3378
|
-
position: "absolute",
|
|
3379
|
-
right: "100%",
|
|
3380
|
-
top: "50%",
|
|
3381
|
-
transform: "translateY(-50%)",
|
|
3382
|
-
width: 0,
|
|
3383
|
-
height: 0,
|
|
3384
|
-
borderTop: `${t}px solid transparent`,
|
|
3385
|
-
borderBottom: `${t}px solid transparent`,
|
|
3386
|
-
borderRight: `${t}px solid ${W}`
|
|
3387
|
-
};
|
|
3388
|
-
default: return null;
|
|
3389
|
-
}
|
|
3390
|
-
}, lt = ({ content: t, direction: r = "top", children: s, offset: c = 0 }) => {
|
|
3391
|
-
let [l, u] = o(!1), d = a(null), f = a(null), [p, m] = o(null);
|
|
3392
|
-
i(() => {
|
|
3393
|
-
if (!l) {
|
|
3394
|
-
m(null);
|
|
3395
|
-
return;
|
|
3396
|
-
}
|
|
3397
|
-
let e = () => {
|
|
3398
|
-
let e = d.current;
|
|
3399
|
-
e && m(st(e.getBoundingClientRect(), f.current?.getBoundingClientRect() ?? null, r, c));
|
|
3400
|
-
};
|
|
3401
|
-
return e(), window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
|
|
3402
|
-
window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
|
|
3403
|
-
};
|
|
3404
|
-
}, [
|
|
3405
|
-
l,
|
|
3406
|
-
r,
|
|
3407
|
-
c
|
|
3408
|
-
]);
|
|
3409
|
-
let h = n(s) ? e(s, {
|
|
3410
|
-
ref: (e) => {
|
|
3411
|
-
d.current = e;
|
|
3412
|
-
let t = s.props.ref;
|
|
3413
|
-
typeof t == "function" ? t(e) : t && "current" in t && (t.current = e);
|
|
3414
|
-
},
|
|
3415
|
-
onMouseEnter: (e) => {
|
|
3416
|
-
s.props.onMouseEnter?.(e), u(!0);
|
|
3417
|
-
},
|
|
3418
|
-
onMouseLeave: (e) => {
|
|
3419
|
-
s.props.onMouseLeave?.(e), u(!1);
|
|
3420
|
-
},
|
|
3421
|
-
onFocus: (e) => {
|
|
3422
|
-
s.props.onFocus?.(e), u(!0);
|
|
3423
|
-
},
|
|
3424
|
-
onBlur: (e) => {
|
|
3425
|
-
s.props.onBlur?.(e), u(!1);
|
|
3426
|
-
}
|
|
3427
|
-
}) : s, g = ct(r);
|
|
3428
|
-
return /* @__PURE__ */ j(xe, { children: [h, l && typeof document < "u" && M(/* @__PURE__ */ j("span", {
|
|
3429
|
-
ref: f,
|
|
3430
|
-
role: "tooltip",
|
|
3431
|
-
style: {
|
|
3432
|
-
position: "fixed",
|
|
3433
|
-
...p,
|
|
3434
|
-
background: B.tooltip.bg,
|
|
3435
|
-
color: B.tooltip.text,
|
|
3436
|
-
padding: `${B.tooltip.paddingY} ${B.tooltip.paddingX}`,
|
|
3437
|
-
borderRadius: B.tooltip.radius,
|
|
3438
|
-
fontFamily: B.typography.tooltip.fontFamily,
|
|
3439
|
-
fontWeight: 500,
|
|
3440
|
-
fontSize: B.tooltip.fontSize,
|
|
3441
|
-
lineHeight: "16px",
|
|
3442
|
-
whiteSpace: "nowrap",
|
|
3443
|
-
pointerEvents: "none",
|
|
3444
|
-
zIndex: 1e3,
|
|
3445
|
-
visibility: p ? "visible" : "hidden"
|
|
3446
|
-
},
|
|
3447
|
-
children: [t, g && /* @__PURE__ */ A("span", {
|
|
3448
|
-
"aria-hidden": !0,
|
|
3449
|
-
style: g
|
|
3450
|
-
})]
|
|
3451
|
-
}), document.body)] });
|
|
3452
|
-
};
|
|
3453
|
-
lt.displayName = "Tooltip";
|
|
3454
|
-
//#endregion
|
|
3455
|
-
//#region src/components/toast/Toast.tsx
|
|
3456
|
-
var ut = {
|
|
3457
|
-
info: B.toast.info,
|
|
3458
|
-
success: B.toast.success,
|
|
3459
|
-
warning: B.toast.warning,
|
|
3460
|
-
error: B.toast.error
|
|
3461
|
-
}, dt = {
|
|
3462
|
-
info: "info-circle",
|
|
3463
|
-
success: "check-circle",
|
|
3464
|
-
warning: "warning",
|
|
3465
|
-
error: "close-circle"
|
|
3466
|
-
}, G = t(({ severity: e = "info", title: t, message: n, action: r, showIcon: i = !0, showClose: a = !0, onClose: o, style: s, className: c }, l) => {
|
|
3467
|
-
let u = ut[e], d = a && !!o;
|
|
3468
|
-
return /* @__PURE__ */ j("div", {
|
|
3469
|
-
ref: l,
|
|
3470
|
-
role: "status",
|
|
3471
|
-
"aria-live": e === "error" ? "assertive" : "polite",
|
|
3472
|
-
className: c,
|
|
3473
|
-
style: {
|
|
3474
|
-
display: "flex",
|
|
3475
|
-
alignItems: "flex-start",
|
|
3476
|
-
gap: B.toast.gap,
|
|
3477
|
-
width: B.toast.width,
|
|
3478
|
-
padding: B.toast.padding,
|
|
3479
|
-
background: u.bg,
|
|
3480
|
-
border: `1px solid ${u.border}`,
|
|
3481
|
-
borderRadius: B.toast.radius,
|
|
3482
|
-
boxSizing: "border-box",
|
|
3483
|
-
...s
|
|
3484
|
-
},
|
|
3485
|
-
children: [
|
|
3486
|
-
i && /* @__PURE__ */ A("div", {
|
|
3487
|
-
style: {
|
|
3488
|
-
flex: "0 0 auto",
|
|
3489
|
-
width: B.toast.iconSize,
|
|
3490
|
-
height: B.toast.iconSize,
|
|
3491
|
-
display: "flex",
|
|
3492
|
-
alignItems: "center",
|
|
3493
|
-
justifyContent: "center"
|
|
3494
|
-
},
|
|
3495
|
-
children: /* @__PURE__ */ A(H, {
|
|
3496
|
-
name: dt[e],
|
|
3497
|
-
size: 20,
|
|
3498
|
-
color: u.icon
|
|
3499
|
-
})
|
|
3500
|
-
}),
|
|
3501
|
-
/* @__PURE__ */ j("div", {
|
|
3502
|
-
style: {
|
|
3503
|
-
flex: "1 1 auto",
|
|
3504
|
-
minWidth: 0,
|
|
3505
|
-
display: "flex",
|
|
3506
|
-
flexDirection: "column",
|
|
3507
|
-
gap: 4
|
|
3508
|
-
},
|
|
3509
|
-
children: [t && /* @__PURE__ */ A("div", {
|
|
3510
|
-
style: {
|
|
3511
|
-
...B.typography.body.md,
|
|
3512
|
-
fontWeight: 700,
|
|
3513
|
-
color: B.toast.title,
|
|
3514
|
-
wordBreak: "break-word"
|
|
3515
|
-
},
|
|
3516
|
-
children: t
|
|
3517
|
-
}), n && /* @__PURE__ */ A("div", {
|
|
3518
|
-
style: {
|
|
3519
|
-
...B.typography.body.sm,
|
|
3520
|
-
color: B.toast.message,
|
|
3521
|
-
wordBreak: "break-word"
|
|
3522
|
-
},
|
|
3523
|
-
children: n
|
|
3524
|
-
})]
|
|
3525
|
-
}),
|
|
3526
|
-
r && /* @__PURE__ */ A("button", {
|
|
3527
|
-
type: "button",
|
|
3528
|
-
onClick: r.onClick,
|
|
3529
|
-
style: {
|
|
3530
|
-
flex: "0 0 auto",
|
|
3531
|
-
...B.typography.body.md,
|
|
3532
|
-
fontWeight: 700,
|
|
3533
|
-
color: u.border,
|
|
3534
|
-
background: "transparent",
|
|
3535
|
-
border: "none",
|
|
3536
|
-
padding: 0,
|
|
3537
|
-
cursor: "pointer",
|
|
3538
|
-
whiteSpace: "nowrap"
|
|
3539
|
-
},
|
|
3540
|
-
children: r.label
|
|
3541
|
-
}),
|
|
3542
|
-
d && /* @__PURE__ */ A("button", {
|
|
3543
|
-
type: "button",
|
|
3544
|
-
onClick: o,
|
|
3545
|
-
"aria-label": "Close",
|
|
3546
|
-
style: {
|
|
3547
|
-
flex: "0 0 auto",
|
|
3548
|
-
width: 16,
|
|
3549
|
-
height: 16,
|
|
3550
|
-
display: "flex",
|
|
3551
|
-
alignItems: "center",
|
|
3552
|
-
justifyContent: "center",
|
|
3553
|
-
background: "transparent",
|
|
3554
|
-
border: "none",
|
|
3555
|
-
padding: 0,
|
|
3556
|
-
cursor: "pointer"
|
|
3557
|
-
},
|
|
3558
|
-
children: /* @__PURE__ */ A(H, {
|
|
3559
|
-
name: "x",
|
|
3560
|
-
size: 14,
|
|
3561
|
-
color: B.toast.closeIcon
|
|
3562
|
-
})
|
|
3563
|
-
})
|
|
3564
|
-
]
|
|
3565
|
-
});
|
|
3566
|
-
});
|
|
3567
|
-
G.displayName = "Toast";
|
|
3568
|
-
//#endregion
|
|
3569
|
-
//#region src/components/modal/Modal.tsx
|
|
3570
|
-
var ft = {
|
|
3571
|
-
info: "info-circle",
|
|
3572
|
-
success: "check-circle",
|
|
3573
|
-
warning: "warning",
|
|
3574
|
-
error: "close-circle"
|
|
3575
|
-
}, pt = {
|
|
3576
|
-
info: B.modal.info.icon,
|
|
3577
|
-
success: B.modal.success.icon,
|
|
3578
|
-
warning: B.modal.warning.icon,
|
|
3579
|
-
error: B.modal.error.icon
|
|
3580
|
-
}, mt = {
|
|
3581
|
-
sm: B.typography.heading.sm,
|
|
3582
|
-
md: B.typography.heading.md,
|
|
3583
|
-
lg: B.typography.heading.lg
|
|
3584
|
-
}, ht = ({ open: e, onClose: t, severity: n, size: i = "md", title: a, body: o, children: s, showClose: c = !0, showFooter: l = !0, showCancel: u = !0, onCancel: d, cancelLabel: f = "Cancel", onConfirm: p, confirmLabel: m = "Confirm", confirmVariant: h = "primary", closeOnEsc: g = !0, closeOnBackdrop: _ = !0 }) => {
|
|
3585
|
-
if (r(() => {
|
|
3586
|
-
if (!e || !g) return;
|
|
3587
|
-
let n = (e) => {
|
|
3588
|
-
e.key === "Escape" && t();
|
|
3589
|
-
};
|
|
3590
|
-
return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n);
|
|
3591
|
-
}, [
|
|
3592
|
-
e,
|
|
3593
|
-
g,
|
|
3594
|
-
t
|
|
3595
|
-
]), r(() => {
|
|
3596
|
-
if (!e) return;
|
|
3597
|
-
let t = document.body.style.overflow;
|
|
3598
|
-
return document.body.style.overflow = "hidden", () => {
|
|
3599
|
-
document.body.style.overflow = t;
|
|
3600
|
-
};
|
|
3601
|
-
}, [e]), !e || typeof document > "u") return null;
|
|
3602
|
-
let v = s ?? o;
|
|
3603
|
-
return M(/* @__PURE__ */ A("div", {
|
|
3604
|
-
role: "presentation",
|
|
3605
|
-
onClick: (e) => {
|
|
3606
|
-
_ && e.target === e.currentTarget && t();
|
|
3607
|
-
},
|
|
3608
|
-
style: {
|
|
3609
|
-
position: "fixed",
|
|
3610
|
-
inset: 0,
|
|
3611
|
-
background: B.modal.overlayBg,
|
|
3612
|
-
display: "flex",
|
|
3613
|
-
alignItems: "center",
|
|
3614
|
-
justifyContent: "center",
|
|
3615
|
-
zIndex: 1e3
|
|
3616
|
-
},
|
|
3617
|
-
children: /* @__PURE__ */ j("div", {
|
|
3618
|
-
role: "dialog",
|
|
3619
|
-
"aria-modal": "true",
|
|
3620
|
-
style: {
|
|
3621
|
-
background: B.modal.bg,
|
|
3622
|
-
border: `1px solid ${B.modal.border}`,
|
|
3623
|
-
borderRadius: B.modal.radius,
|
|
3624
|
-
paddingTop: B.modal.paddingY,
|
|
3625
|
-
paddingBottom: B.modal.paddingY,
|
|
3626
|
-
paddingLeft: B.modal.paddingX,
|
|
3627
|
-
paddingRight: B.modal.paddingX,
|
|
3628
|
-
width: B.modal.size[i],
|
|
3629
|
-
maxWidth: "92vw",
|
|
3630
|
-
maxHeight: "92vh",
|
|
3631
|
-
display: "flex",
|
|
3632
|
-
flexDirection: "column",
|
|
3633
|
-
gap: B.modal.headerGap,
|
|
3634
|
-
boxSizing: "border-box",
|
|
3635
|
-
overflow: "hidden"
|
|
3636
|
-
},
|
|
3637
|
-
children: [
|
|
3638
|
-
/* @__PURE__ */ j("div", {
|
|
3639
|
-
style: {
|
|
3640
|
-
display: "flex",
|
|
3641
|
-
gap: 12,
|
|
3642
|
-
alignItems: "center",
|
|
3643
|
-
width: "100%"
|
|
3644
|
-
},
|
|
3645
|
-
children: [
|
|
3646
|
-
n && /* @__PURE__ */ A(H, {
|
|
3647
|
-
name: ft[n],
|
|
3648
|
-
size: 20,
|
|
3649
|
-
color: pt[n]
|
|
3650
|
-
}),
|
|
3651
|
-
a !== void 0 && /* @__PURE__ */ A("div", {
|
|
3652
|
-
style: {
|
|
3653
|
-
...mt[i],
|
|
3654
|
-
color: B.modal.titleText,
|
|
3655
|
-
flex: "1 1 0",
|
|
3656
|
-
minWidth: 0,
|
|
3657
|
-
wordBreak: "break-word"
|
|
3658
|
-
},
|
|
3659
|
-
children: a
|
|
3660
|
-
}),
|
|
3661
|
-
c && /* @__PURE__ */ A("button", {
|
|
3662
|
-
type: "button",
|
|
3663
|
-
onClick: t,
|
|
3664
|
-
"aria-label": "Close",
|
|
3665
|
-
style: {
|
|
3666
|
-
flex: "0 0 auto",
|
|
3667
|
-
width: 20,
|
|
3668
|
-
height: 20,
|
|
3669
|
-
display: "flex",
|
|
3670
|
-
alignItems: "center",
|
|
3671
|
-
justifyContent: "center",
|
|
3672
|
-
background: "transparent",
|
|
3673
|
-
border: "none",
|
|
3674
|
-
padding: 0,
|
|
3675
|
-
cursor: "pointer",
|
|
3676
|
-
color: B.modal.titleText
|
|
3677
|
-
},
|
|
3678
|
-
children: /* @__PURE__ */ A(H, {
|
|
3679
|
-
name: "x",
|
|
3680
|
-
size: 16
|
|
3681
|
-
})
|
|
3682
|
-
})
|
|
3683
|
-
]
|
|
3684
|
-
}),
|
|
3685
|
-
v != null && /* @__PURE__ */ A("div", {
|
|
3686
|
-
style: {
|
|
3687
|
-
...B.typography.body.md,
|
|
3688
|
-
color: B.modal.bodyText,
|
|
3689
|
-
wordBreak: "break-word",
|
|
3690
|
-
width: "100%"
|
|
3691
|
-
},
|
|
3692
|
-
children: v
|
|
3693
|
-
}),
|
|
3694
|
-
l && /* @__PURE__ */ j("div", {
|
|
3695
|
-
style: {
|
|
3696
|
-
display: "flex",
|
|
3697
|
-
gap: 8,
|
|
3698
|
-
alignItems: "center",
|
|
3699
|
-
justifyContent: "flex-end",
|
|
3700
|
-
width: "100%"
|
|
3701
|
-
},
|
|
3702
|
-
children: [u && /* @__PURE__ */ A(V, {
|
|
3703
|
-
variant: "tertiary",
|
|
3704
|
-
size: "md",
|
|
3705
|
-
onClick: d ?? t,
|
|
3706
|
-
children: f
|
|
3707
|
-
}), /* @__PURE__ */ A(V, {
|
|
3708
|
-
variant: h,
|
|
3709
|
-
size: "md",
|
|
3710
|
-
onClick: p ?? t,
|
|
3711
|
-
children: m
|
|
3712
|
-
})]
|
|
3713
|
-
})
|
|
3714
|
-
]
|
|
3715
|
-
})
|
|
3716
|
-
}), document.body);
|
|
3717
|
-
};
|
|
3718
|
-
ht.displayName = "Modal";
|
|
3719
|
-
//#endregion
|
|
3720
|
-
//#region src/components/toast/store.ts
|
|
3721
|
-
var K = [], gt = 0, q = {
|
|
3722
|
-
position: "top-right",
|
|
3723
|
-
defaultDuration: 4e3,
|
|
3724
|
-
maxStack: 5
|
|
3725
|
-
}, J = /* @__PURE__ */ new Set(), _t = () => K, vt = () => q, yt = (e) => (J.add(e), () => {
|
|
3726
|
-
J.delete(e);
|
|
3727
|
-
}), Y = () => {
|
|
3728
|
-
J.forEach((e) => e());
|
|
3729
|
-
}, bt = (e, t) => {
|
|
3730
|
-
gt += 1;
|
|
3731
|
-
let n = `toast-${Date.now()}-${gt}`, r = [...K, {
|
|
3732
|
-
id: n,
|
|
3733
|
-
severity: e,
|
|
3734
|
-
...t
|
|
3735
|
-
}];
|
|
3736
|
-
return K = r.length > q.maxStack ? r.slice(r.length - q.maxStack) : r, Y(), n;
|
|
3737
|
-
}, X = (e) => {
|
|
3738
|
-
K = K.filter((t) => t.id !== e), Y();
|
|
3739
|
-
}, xt = () => {
|
|
3740
|
-
K = [], Y();
|
|
3741
|
-
}, St = (e) => {
|
|
3742
|
-
q = {
|
|
3743
|
-
...q,
|
|
3744
|
-
...e
|
|
3745
|
-
}, Y();
|
|
3746
|
-
}, Ct = (e) => {
|
|
3747
|
-
let t = {
|
|
3748
|
-
position: "fixed",
|
|
3749
|
-
zIndex: 9999,
|
|
3750
|
-
display: "flex",
|
|
3751
|
-
flexDirection: "column",
|
|
3752
|
-
gap: 8,
|
|
3753
|
-
pointerEvents: "none",
|
|
3754
|
-
padding: 16
|
|
3755
|
-
};
|
|
3756
|
-
switch (e) {
|
|
3757
|
-
case "top": return {
|
|
3758
|
-
...t,
|
|
3759
|
-
top: 0,
|
|
3760
|
-
left: "50%",
|
|
3761
|
-
transform: "translateX(-50%)",
|
|
3762
|
-
alignItems: "center"
|
|
3763
|
-
};
|
|
3764
|
-
case "top-left": return {
|
|
3765
|
-
...t,
|
|
3766
|
-
top: 0,
|
|
3767
|
-
left: 0,
|
|
3768
|
-
alignItems: "flex-start"
|
|
3769
|
-
};
|
|
3770
|
-
case "bottom": return {
|
|
3771
|
-
...t,
|
|
3772
|
-
bottom: 0,
|
|
3773
|
-
left: "50%",
|
|
3774
|
-
transform: "translateX(-50%)",
|
|
3775
|
-
alignItems: "center",
|
|
3776
|
-
flexDirection: "column-reverse"
|
|
3777
|
-
};
|
|
3778
|
-
case "bottom-left": return {
|
|
3779
|
-
...t,
|
|
3780
|
-
bottom: 0,
|
|
3781
|
-
left: 0,
|
|
3782
|
-
alignItems: "flex-start",
|
|
3783
|
-
flexDirection: "column-reverse"
|
|
3784
|
-
};
|
|
3785
|
-
case "bottom-right": return {
|
|
3786
|
-
...t,
|
|
3787
|
-
bottom: 0,
|
|
3788
|
-
right: 0,
|
|
3789
|
-
alignItems: "flex-end",
|
|
3790
|
-
flexDirection: "column-reverse"
|
|
3791
|
-
};
|
|
3792
|
-
default: return {
|
|
3793
|
-
...t,
|
|
3794
|
-
top: 0,
|
|
3795
|
-
right: 0,
|
|
3796
|
-
alignItems: "flex-end"
|
|
3797
|
-
};
|
|
3798
|
-
}
|
|
3799
|
-
}, wt = ({ toast: e, duration: t }) => {
|
|
3800
|
-
let [n, i] = o(!1);
|
|
3801
|
-
return r(() => {
|
|
3802
|
-
if (t <= 0 || n) return;
|
|
3803
|
-
let r = setTimeout(() => X(e.id), t);
|
|
3804
|
-
return () => clearTimeout(r);
|
|
3805
|
-
}, [
|
|
3806
|
-
e.id,
|
|
3807
|
-
t,
|
|
3808
|
-
n
|
|
3809
|
-
]), /* @__PURE__ */ A("div", {
|
|
3810
|
-
style: { pointerEvents: "auto" },
|
|
3811
|
-
onMouseEnter: () => i(!0),
|
|
3812
|
-
onMouseLeave: () => i(!1),
|
|
3813
|
-
onFocus: () => i(!0),
|
|
3814
|
-
onBlur: () => i(!1),
|
|
3815
|
-
children: /* @__PURE__ */ A(G, {
|
|
3816
|
-
severity: e.severity,
|
|
3817
|
-
title: e.title,
|
|
3818
|
-
message: e.message,
|
|
3819
|
-
action: e.action,
|
|
3820
|
-
showIcon: e.showIcon,
|
|
3821
|
-
showClose: e.showClose ?? !0,
|
|
3822
|
-
onClose: () => X(e.id)
|
|
3823
|
-
})
|
|
3824
|
-
});
|
|
3825
|
-
}, Tt = () => {
|
|
3826
|
-
let [, e] = o(0);
|
|
3827
|
-
r(() => yt(() => e((e) => e + 1)), []);
|
|
3828
|
-
let t = _t(), n = vt();
|
|
3829
|
-
return /* @__PURE__ */ A("div", {
|
|
3830
|
-
style: Ct(n.position),
|
|
3831
|
-
children: t.map((e) => /* @__PURE__ */ A(wt, {
|
|
3832
|
-
toast: e,
|
|
3833
|
-
duration: e.duration ?? n.defaultDuration
|
|
3834
|
-
}, e.id))
|
|
3835
|
-
});
|
|
3836
|
-
}, Z = "__cytur_toast_container__", Q = null, Et = () => {
|
|
3837
|
-
if (typeof document > "u" || Q) return;
|
|
3838
|
-
let e = document.getElementById(Z);
|
|
3839
|
-
e || (e = document.createElement("div"), e.id = Z, document.body.appendChild(e)), Q = Se(e), Q.render(/* @__PURE__ */ A(Tt, {}));
|
|
3840
|
-
}, $ = (e, t) => (Et(), bt(e, t)), Dt = {
|
|
3841
|
-
show: $,
|
|
3842
|
-
info: (e) => $("info", e),
|
|
3843
|
-
success: (e) => $("success", e),
|
|
3844
|
-
warning: (e) => $("warning", e),
|
|
3845
|
-
error: (e) => $("error", e),
|
|
3846
|
-
dismiss: X,
|
|
3847
|
-
dismissAll: xt,
|
|
3848
|
-
configure: St
|
|
3849
|
-
};
|
|
2611
|
+
$.displayName = "ScrollArea";
|
|
3850
2612
|
//#endregion
|
|
3851
|
-
export {
|
|
2613
|
+
export { n as Alert, r as App, i as AutoComplete, a as Avatar, o as Badge, s as Breadcrumb, ee as Button, te as Card, ne as Checkbox, re as Col, ie as ConfigProvider, X as CyturProvider, oe as DatePicker, se as Descriptions, ce as Divider, le as Drawer, ue as Dropdown, de as Empty, c as Flex, l as Form, Q as Icon, fe as Icons, u as Input, d as InputNumber, f as Layout, p as List, m as Menu, h as Modal, g as Pagination, _ as Popconfirm, v as Popover, y as Progress, b as Radio, x as Result, S as Row, $ as ScrollArea, C as Select, w as Skeleton, T as Slider, E as Space, D as Spin, O as Statistic, k as Steps, A as Switch, M as Table, N as Tabs, P as Tag, F as TimePicker, j as Toggle, I as Tooltip, L as Tree, R as Typography, z as Upload, G as baseTheme, he as defaultTheme, B as message, V as notification, H as theme, ge as themes, De as tokens };
|