@x-plat/design-system 0.4.5 → 0.5.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/components/Accordion/index.cjs +294 -294
- package/dist/components/Accordion/index.css +11 -11
- package/dist/components/Accordion/index.d.cts +0 -1
- package/dist/components/Accordion/index.d.ts +0 -1
- package/dist/components/Accordion/index.js +491 -491
- package/dist/components/Alert/index.cjs +2 -2
- package/dist/components/Alert/index.css +19 -19
- package/dist/components/Alert/index.d.cts +0 -1
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Alert/index.js +2 -2
- package/dist/components/Avatar/index.cjs +11 -6
- package/dist/components/Avatar/index.css +41 -11
- package/dist/components/Avatar/index.d.cts +1 -3
- package/dist/components/Avatar/index.d.ts +1 -3
- package/dist/components/Avatar/index.js +11 -6
- package/dist/components/Badge/index.cjs +4 -6
- package/dist/components/Badge/index.css +32 -19
- package/dist/components/Badge/index.d.cts +3 -3
- package/dist/components/Badge/index.d.ts +3 -3
- package/dist/components/Badge/index.js +4 -6
- package/dist/components/Breadcrumb/index.cjs +2 -18
- package/dist/components/Breadcrumb/index.css +6 -6
- package/dist/components/Breadcrumb/index.d.cts +0 -1
- package/dist/components/Breadcrumb/index.d.ts +0 -1
- package/dist/components/Breadcrumb/index.js +2 -18
- package/dist/components/Button/index.cjs +1 -4
- package/dist/components/Button/index.css +67 -23
- package/dist/components/Button/index.d.cts +2 -3
- package/dist/components/Button/index.d.ts +2 -3
- package/dist/components/Button/index.js +1 -4
- package/dist/components/Calendar/index.cjs +306 -307
- package/dist/components/Calendar/index.css +51 -52
- package/dist/components/Calendar/index.d.cts +3 -4
- package/dist/components/Calendar/index.d.ts +3 -4
- package/dist/components/Calendar/index.js +503 -504
- package/dist/components/Card/index.cjs +2 -18
- package/dist/components/Card/index.css +6 -6
- package/dist/components/Card/index.d.cts +0 -4
- package/dist/components/Card/index.d.ts +0 -4
- package/dist/components/Card/index.js +2 -18
- package/dist/components/CardTab/index.cjs +4 -5
- package/dist/components/CardTab/index.css +28 -28
- package/dist/components/CardTab/index.d.cts +0 -2
- package/dist/components/CardTab/index.d.ts +0 -2
- package/dist/components/CardTab/index.js +4 -5
- package/dist/components/Chart/index.cjs +228 -14548
- package/dist/components/Chart/index.css +57 -0
- package/dist/components/Chart/index.d.cts +3 -2
- package/dist/components/Chart/index.d.ts +3 -2
- package/dist/components/Chart/index.js +219 -14541
- package/dist/components/CheckBox/index.cjs +301 -297
- package/dist/components/CheckBox/index.css +50 -27
- package/dist/components/CheckBox/index.d.cts +3 -3
- package/dist/components/CheckBox/index.d.ts +3 -3
- package/dist/components/CheckBox/index.js +486 -482
- package/dist/components/Chip/index.cjs +2 -5
- package/dist/components/Chip/index.css +35 -23
- package/dist/components/Chip/index.d.cts +2 -4
- package/dist/components/Chip/index.d.ts +2 -4
- package/dist/components/Chip/index.js +2 -5
- package/dist/components/DatePicker/index.cjs +348 -359
- package/dist/components/DatePicker/index.css +175 -122
- package/dist/components/DatePicker/index.d.cts +2 -3
- package/dist/components/DatePicker/index.d.ts +2 -3
- package/dist/components/DatePicker/index.js +525 -536
- package/dist/components/Divider/index.cjs +2 -2
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Divider/index.d.cts +0 -1
- package/dist/components/Divider/index.d.ts +0 -1
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Drawer/index.css +7 -7
- package/dist/components/Dropdown/index.cjs +2 -2
- package/dist/components/Dropdown/index.css +10 -10
- package/dist/components/Dropdown/index.d.cts +0 -1
- package/dist/components/Dropdown/index.d.ts +0 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/EmptyState/index.cjs +2 -18
- package/dist/components/EmptyState/index.css +8 -9
- package/dist/components/EmptyState/index.d.cts +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -1
- package/dist/components/EmptyState/index.js +2 -18
- package/dist/components/FileUpload/index.cjs +280 -281
- package/dist/components/FileUpload/index.css +13 -14
- package/dist/components/FileUpload/index.d.cts +0 -1
- package/dist/components/FileUpload/index.d.ts +0 -1
- package/dist/components/FileUpload/index.js +476 -477
- package/dist/components/HtmlTypeWriter/index.cjs +10 -10
- package/dist/components/HtmlTypeWriter/index.css +3 -3
- package/dist/components/HtmlTypeWriter/index.js +10 -10
- package/dist/components/ImageSelector/index.cjs +309 -309
- package/dist/components/ImageSelector/index.css +15 -15
- package/dist/components/ImageSelector/index.js +477 -477
- package/dist/components/Input/index.cjs +6 -7
- package/dist/components/Input/index.css +37 -26
- package/dist/components/Input/index.d.cts +2 -2
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/Input/index.js +6 -7
- package/dist/components/Modal/index.css +5 -4
- package/dist/components/Pagination/index.cjs +303 -305
- package/dist/components/Pagination/index.css +37 -26
- package/dist/components/Pagination/index.d.cts +3 -3
- package/dist/components/Pagination/index.d.ts +3 -3
- package/dist/components/Pagination/index.js +500 -502
- package/dist/components/PopOver/index.css +3 -3
- package/dist/components/Progress/index.cjs +4 -6
- package/dist/components/Progress/index.css +23 -9
- package/dist/components/Progress/index.d.cts +3 -3
- package/dist/components/Progress/index.d.ts +3 -3
- package/dist/components/Progress/index.js +4 -6
- package/dist/components/Radio/index.cjs +4 -7
- package/dist/components/Radio/index.css +61 -29
- package/dist/components/Radio/index.d.cts +3 -3
- package/dist/components/Radio/index.d.ts +3 -3
- package/dist/components/Radio/index.js +4 -7
- package/dist/components/Select/index.cjs +294 -294
- package/dist/components/Select/index.css +46 -40
- package/dist/components/Select/index.d.cts +0 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Select/index.js +491 -491
- package/dist/components/Skeleton/index.cjs +2 -2
- package/dist/components/Skeleton/index.css +3 -3
- package/dist/components/Skeleton/index.d.cts +0 -1
- package/dist/components/Skeleton/index.d.ts +0 -1
- package/dist/components/Skeleton/index.js +2 -2
- package/dist/components/Spinner/index.cjs +2 -4
- package/dist/components/Spinner/index.css +22 -8
- package/dist/components/Spinner/index.d.cts +3 -3
- package/dist/components/Spinner/index.d.ts +3 -3
- package/dist/components/Spinner/index.js +2 -4
- package/dist/components/Steps/index.cjs +296 -298
- package/dist/components/Steps/index.css +77 -22
- package/dist/components/Steps/index.d.cts +3 -3
- package/dist/components/Steps/index.d.ts +3 -3
- package/dist/components/Steps/index.js +481 -483
- package/dist/components/Swiper/index.cjs +2 -3
- package/dist/components/Swiper/index.css +10 -10
- package/dist/components/Swiper/index.d.cts +0 -1
- package/dist/components/Swiper/index.d.ts +0 -1
- package/dist/components/Swiper/index.js +2 -3
- package/dist/components/Switch/index.cjs +4 -7
- package/dist/components/Switch/index.css +58 -26
- package/dist/components/Switch/index.d.cts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/Switch/index.js +4 -7
- package/dist/components/Tab/index.css +15 -15
- package/dist/components/Table/index.cjs +22 -31
- package/dist/components/Table/index.css +15 -15
- package/dist/components/Table/index.d.cts +2 -8
- package/dist/components/Table/index.d.ts +2 -8
- package/dist/components/Table/index.js +22 -31
- package/dist/components/Tag/index.cjs +305 -293
- package/dist/components/Tag/index.css +58 -17
- package/dist/components/Tag/index.d.cts +5 -3
- package/dist/components/Tag/index.d.ts +5 -3
- package/dist/components/Tag/index.js +492 -480
- package/dist/components/TextArea/index.cjs +2 -2
- package/dist/components/TextArea/index.css +20 -9
- package/dist/components/TextArea/index.d.cts +2 -1
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/TextArea/index.js +2 -2
- package/dist/components/Toast/index.css +22 -22
- package/dist/components/Tooltip/index.cjs +1 -3
- package/dist/components/Tooltip/index.css +6 -6
- package/dist/components/Tooltip/index.d.cts +1 -2
- package/dist/components/Tooltip/index.d.ts +1 -2
- package/dist/components/Tooltip/index.js +1 -3
- package/dist/components/Video/index.cjs +1 -3
- package/dist/components/Video/index.css +5 -5
- package/dist/components/Video/index.d.cts +0 -2
- package/dist/components/Video/index.d.ts +0 -2
- package/dist/components/Video/index.js +1 -3
- package/dist/components/index.cjs +1604 -15950
- package/dist/components/index.css +2167 -1061
- package/dist/components/index.d.cts +1 -2
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.js +1478 -15826
- package/dist/index.cjs +2941 -17269
- package/dist/index.css +2164 -1058
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2837 -17169
- package/dist/layout/Grid/FullGrid/index.cjs +9 -18
- package/dist/layout/Grid/FullGrid/index.d.cts +1 -1
- package/dist/layout/Grid/FullGrid/index.d.ts +1 -1
- package/dist/layout/Grid/FullGrid/index.js +9 -18
- package/dist/layout/Grid/FullScreen/index.cjs +9 -18
- package/dist/layout/Grid/FullScreen/index.d.cts +3 -3
- package/dist/layout/Grid/FullScreen/index.d.ts +3 -3
- package/dist/layout/Grid/FullScreen/index.js +9 -18
- package/dist/layout/Grid/index.cjs +34 -20
- package/dist/layout/Grid/index.js +34 -20
- package/dist/layout/index.cjs +34 -20
- package/dist/layout/index.css +1000 -295
- package/dist/layout/index.js +34 -20
- package/dist/tokens/index.cjs +1861 -1970
- package/dist/tokens/index.d.cts +209 -192
- package/dist/tokens/index.d.ts +209 -192
- package/dist/tokens/index.js +2048 -2159
- package/package.json +2 -4
- package/dist/colors-CY4JXVHj.d.cts +0 -137
- package/dist/colors-CY4JXVHj.d.ts +0 -137
- package/dist/layout/Grid/GapGrid/index.cjs +0 -32
- package/dist/layout/Grid/GapGrid/index.d.cts +0 -12
- package/dist/layout/Grid/GapGrid/index.d.ts +0 -12
- package/dist/layout/Grid/GapGrid/index.js +0 -11
|
@@ -43,11 +43,11 @@ var clsx_default = clsx;
|
|
|
43
43
|
// src/components/Divider/Divider.tsx
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
45
|
var Divider = (props) => {
|
|
46
|
-
const { orientation = "horizontal"
|
|
46
|
+
const { orientation = "horizontal" } = props;
|
|
47
47
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
|
-
className: clsx_default("lib-xplat-divider", orientation
|
|
50
|
+
className: clsx_default("lib-xplat-divider", orientation),
|
|
51
51
|
role: "separator",
|
|
52
52
|
"aria-orientation": orientation
|
|
53
53
|
}
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
.lib-xplat-divider.horizontal {
|
|
7
7
|
width: 100%;
|
|
8
8
|
height: 1px;
|
|
9
|
-
background-color: var(--
|
|
9
|
+
background-color: var(--semantic-border-default);
|
|
10
10
|
}
|
|
11
11
|
.lib-xplat-divider.vertical {
|
|
12
12
|
width: 1px;
|
|
13
13
|
align-self: stretch;
|
|
14
|
-
background-color: var(--
|
|
14
|
+
background-color: var(--semantic-border-default);
|
|
15
15
|
}
|
|
@@ -17,11 +17,11 @@ var clsx_default = clsx;
|
|
|
17
17
|
// src/components/Divider/Divider.tsx
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
19
|
var Divider = (props) => {
|
|
20
|
-
const { orientation = "horizontal"
|
|
20
|
+
const { orientation = "horizontal" } = props;
|
|
21
21
|
return /* @__PURE__ */ jsx(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
className: clsx_default("lib-xplat-divider", orientation
|
|
24
|
+
className: clsx_default("lib-xplat-divider", orientation),
|
|
25
25
|
role: "separator",
|
|
26
26
|
"aria-orientation": orientation
|
|
27
27
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
position: fixed;
|
|
17
17
|
top: 0;
|
|
18
18
|
height: 100%;
|
|
19
|
-
background: var(--
|
|
19
|
+
background: var(--semantic-surface-neutral-default);
|
|
20
20
|
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: column;
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
justify-content: space-between;
|
|
45
|
-
padding:
|
|
46
|
-
border-bottom: 1px solid var(--
|
|
45
|
+
padding: var(--spacing-space-4) var(--spacing-space-5);
|
|
46
|
+
border-bottom: 1px solid var(--semantic-border-default);
|
|
47
47
|
}
|
|
48
48
|
.lib-xplat-drawer .drawer-title {
|
|
49
49
|
font-size: 16px;
|
|
50
50
|
font-weight: 600;
|
|
51
|
-
color: var(--
|
|
51
|
+
color: var(--semantic-text-strong);
|
|
52
52
|
}
|
|
53
53
|
.lib-xplat-drawer .close-btn {
|
|
54
54
|
background: none;
|
|
@@ -56,15 +56,15 @@
|
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
font-size: 22px;
|
|
58
58
|
line-height: 1;
|
|
59
|
-
color: var(--
|
|
59
|
+
color: var(--semantic-icon-strong);
|
|
60
60
|
padding: 0;
|
|
61
61
|
transition: color 0.2s;
|
|
62
62
|
}
|
|
63
63
|
.lib-xplat-drawer .close-btn:hover {
|
|
64
|
-
color: var(--
|
|
64
|
+
color: var(--semantic-text-strong);
|
|
65
65
|
}
|
|
66
66
|
.lib-xplat-drawer .drawer-body {
|
|
67
67
|
flex: 1;
|
|
68
|
-
padding:
|
|
68
|
+
padding: var(--spacing-space-5);
|
|
69
69
|
overflow-y: auto;
|
|
70
70
|
}
|
|
@@ -119,7 +119,7 @@ var clsx_default = clsx;
|
|
|
119
119
|
// src/components/Dropdown/Dropdown.tsx
|
|
120
120
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
121
121
|
var Dropdown = (props) => {
|
|
122
|
-
const { items, children
|
|
122
|
+
const { items, children } = props;
|
|
123
123
|
const [isOpen, setIsOpen] = import_react3.default.useState(false);
|
|
124
124
|
const [mounted, setMounted] = import_react3.default.useState(false);
|
|
125
125
|
const [visible, setVisible] = import_react3.default.useState(false);
|
|
@@ -142,7 +142,7 @@ var Dropdown = (props) => {
|
|
|
142
142
|
item.onClick?.();
|
|
143
143
|
setIsOpen(false);
|
|
144
144
|
};
|
|
145
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className:
|
|
145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lib-xplat-dropdown", children: [
|
|
146
146
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
position: absolute;
|
|
11
11
|
z-index: 100;
|
|
12
12
|
min-width: 160px;
|
|
13
|
-
background: var(--
|
|
14
|
-
border: 1px solid var(--
|
|
15
|
-
border-radius:
|
|
13
|
+
background: var(--semantic-surface-neutral-default);
|
|
14
|
+
border: 1px solid var(--semantic-border-default);
|
|
15
|
+
border-radius: var(--spacing-radius-md);
|
|
16
16
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
17
|
-
padding:
|
|
17
|
+
padding: var(--spacing-space-1) 0;
|
|
18
18
|
opacity: 0;
|
|
19
19
|
transform: translateY(-4px);
|
|
20
20
|
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
@@ -30,25 +30,25 @@
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
width: 100%;
|
|
33
|
-
padding:
|
|
33
|
+
padding: var(--spacing-space-2) 14px;
|
|
34
34
|
border: none;
|
|
35
35
|
background: none;
|
|
36
36
|
font-size: 14px;
|
|
37
|
-
color: var(--
|
|
37
|
+
color: var(--semantic-text-strong);
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
text-align: left;
|
|
40
40
|
transition: background-color 0.15s;
|
|
41
41
|
}
|
|
42
42
|
.lib-xplat-dropdown .dropdown-item:hover:not(:disabled) {
|
|
43
|
-
background-color: var(--
|
|
43
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
44
44
|
}
|
|
45
45
|
.lib-xplat-dropdown .dropdown-item.danger {
|
|
46
|
-
color: var(--
|
|
46
|
+
color: var(--semantic-text-error);
|
|
47
47
|
}
|
|
48
48
|
.lib-xplat-dropdown .dropdown-item.danger:hover:not(:disabled) {
|
|
49
|
-
background-color: var(--
|
|
49
|
+
background-color: var(--semantic-surface-error-subtle);
|
|
50
50
|
}
|
|
51
51
|
.lib-xplat-dropdown .dropdown-item:disabled {
|
|
52
|
-
color: var(--
|
|
52
|
+
color: var(--semantic-text-disabled);
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
@@ -83,7 +83,7 @@ var clsx_default = clsx;
|
|
|
83
83
|
// src/components/Dropdown/Dropdown.tsx
|
|
84
84
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
85
85
|
var Dropdown = (props) => {
|
|
86
|
-
const { items, children
|
|
86
|
+
const { items, children } = props;
|
|
87
87
|
const [isOpen, setIsOpen] = React3.useState(false);
|
|
88
88
|
const [mounted, setMounted] = React3.useState(false);
|
|
89
89
|
const [visible, setVisible] = React3.useState(false);
|
|
@@ -106,7 +106,7 @@ var Dropdown = (props) => {
|
|
|
106
106
|
item.onClick?.();
|
|
107
107
|
setIsOpen(false);
|
|
108
108
|
};
|
|
109
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
109
|
+
return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-dropdown", children: [
|
|
110
110
|
/* @__PURE__ */ jsx(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
@@ -24,27 +24,11 @@ __export(EmptyState_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(EmptyState_exports);
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
|
28
|
-
function r(e) {
|
|
29
|
-
var t, f, n = "";
|
|
30
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
31
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
32
|
-
var o = e.length;
|
|
33
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
34
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
35
|
-
return n;
|
|
36
|
-
}
|
|
37
|
-
function clsx() {
|
|
38
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
39
|
-
return n;
|
|
40
|
-
}
|
|
41
|
-
var clsx_default = clsx;
|
|
42
|
-
|
|
43
27
|
// src/components/EmptyState/EmptyState.tsx
|
|
44
28
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
29
|
var EmptyState = (props) => {
|
|
46
|
-
const { icon, title = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4", description, action
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className:
|
|
30
|
+
const { icon, title = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4", description, action } = props;
|
|
31
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lib-xplat-empty-state", children: [
|
|
48
32
|
icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "empty-icon", children: icon }),
|
|
49
33
|
!icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "empty-icon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z" }) }) }),
|
|
50
34
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "empty-title", children: title }),
|
|
@@ -4,29 +4,28 @@
|
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
7
|
-
padding:
|
|
7
|
+
padding: var(--spacing-space-11) var(--spacing-space-6);
|
|
8
8
|
text-align: center;
|
|
9
9
|
}
|
|
10
10
|
.lib-xplat-empty-state .empty-icon {
|
|
11
|
-
color: var(--
|
|
12
|
-
margin-bottom:
|
|
11
|
+
color: var(--semantic-icon-disabled);
|
|
12
|
+
margin-bottom: var(--spacing-space-4);
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-empty-state .empty-icon svg {
|
|
15
|
-
|
|
16
|
-
height: 48px;
|
|
15
|
+
font-size: 48px;
|
|
17
16
|
}
|
|
18
17
|
.lib-xplat-empty-state .empty-title {
|
|
19
18
|
font-size: 15px;
|
|
20
19
|
font-weight: 500;
|
|
21
|
-
color: var(--
|
|
20
|
+
color: var(--semantic-text-subtle);
|
|
22
21
|
margin: 0;
|
|
23
22
|
}
|
|
24
23
|
.lib-xplat-empty-state .empty-description {
|
|
25
24
|
font-size: 13px;
|
|
26
|
-
color: var(--
|
|
27
|
-
margin:
|
|
25
|
+
color: var(--semantic-text-muted);
|
|
26
|
+
margin: var(--spacing-space-2) 0 0;
|
|
28
27
|
max-width: 320px;
|
|
29
28
|
}
|
|
30
29
|
.lib-xplat-empty-state .empty-action {
|
|
31
|
-
margin-top:
|
|
30
|
+
margin-top: var(--spacing-space-5);
|
|
32
31
|
}
|
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
// ../../node_modules/clsx/dist/clsx.mjs
|
|
2
|
-
function r(e) {
|
|
3
|
-
var t, f, n = "";
|
|
4
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
var clsx_default = clsx;
|
|
16
|
-
|
|
17
1
|
// src/components/EmptyState/EmptyState.tsx
|
|
18
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
3
|
var EmptyState = (props) => {
|
|
20
|
-
const { icon, title = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4", description, action
|
|
21
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
4
|
+
const { icon, title = "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4", description, action } = props;
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-empty-state", children: [
|
|
22
6
|
icon && /* @__PURE__ */ jsx("div", { className: "empty-icon", children: icon }),
|
|
23
7
|
!icon && /* @__PURE__ */ jsx("div", { className: "empty-icon", children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z" }) }) }),
|
|
24
8
|
/* @__PURE__ */ jsx("p", { className: "empty-title", children: title }),
|