@x-plat/design-system 0.4.6 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/index.cjs +4 -4
- package/dist/components/Accordion/index.css +11 -11
- package/dist/components/Accordion/index.js +4 -4
- package/dist/components/Alert/index.css +19 -19
- package/dist/components/Avatar/index.cjs +11 -5
- package/dist/components/Avatar/index.css +41 -11
- package/dist/components/Avatar/index.d.cts +1 -2
- package/dist/components/Avatar/index.d.ts +1 -2
- package/dist/components/Avatar/index.js +11 -5
- package/dist/components/Badge/index.cjs +3 -4
- package/dist/components/Badge/index.css +32 -19
- package/dist/components/Badge/index.d.cts +3 -2
- package/dist/components/Badge/index.d.ts +3 -2
- package/dist/components/Badge/index.js +3 -4
- package/dist/components/Breadcrumb/index.css +6 -6
- package/dist/components/Button/index.cjs +1 -3
- 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 -3
- package/dist/components/Calendar/index.cjs +10 -10
- package/dist/components/Calendar/index.css +51 -52
- package/dist/components/Calendar/index.d.cts +3 -3
- package/dist/components/Calendar/index.d.ts +3 -3
- package/dist/components/Calendar/index.js +10 -10
- package/dist/components/Card/index.css +6 -6
- package/dist/components/CardTab/index.css +28 -28
- 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 +13 -8
- package/dist/components/CheckBox/index.css +50 -27
- package/dist/components/CheckBox/index.d.cts +3 -2
- package/dist/components/CheckBox/index.d.ts +3 -2
- package/dist/components/CheckBox/index.js +13 -8
- package/dist/components/Chip/index.cjs +1 -3
- package/dist/components/Chip/index.css +35 -23
- package/dist/components/Chip/index.d.cts +2 -3
- package/dist/components/Chip/index.d.ts +2 -3
- package/dist/components/Chip/index.js +1 -3
- package/dist/components/DatePicker/index.cjs +37 -46
- 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 +37 -46
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Drawer/index.css +7 -7
- package/dist/components/Dropdown/index.css +10 -10
- package/dist/components/EmptyState/index.css +8 -9
- package/dist/components/FileUpload/index.cjs +4 -4
- package/dist/components/FileUpload/index.css +13 -14
- package/dist/components/FileUpload/index.js +4 -4
- 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 +4 -4
- package/dist/components/ImageSelector/index.css +15 -15
- package/dist/components/ImageSelector/index.js +4 -4
- package/dist/components/Input/index.css +37 -26
- package/dist/components/Modal/index.css +5 -4
- package/dist/components/Pagination/index.cjs +9 -10
- package/dist/components/Pagination/index.css +37 -26
- package/dist/components/Pagination/index.d.cts +3 -2
- package/dist/components/Pagination/index.d.ts +3 -2
- package/dist/components/Pagination/index.js +9 -10
- package/dist/components/PopOver/index.css +3 -3
- package/dist/components/Progress/index.cjs +4 -5
- package/dist/components/Progress/index.css +23 -9
- package/dist/components/Progress/index.d.cts +3 -2
- package/dist/components/Progress/index.d.ts +3 -2
- package/dist/components/Progress/index.js +4 -5
- package/dist/components/Radio/index.cjs +3 -4
- package/dist/components/Radio/index.css +61 -29
- package/dist/components/Radio/index.d.cts +3 -2
- package/dist/components/Radio/index.d.ts +3 -2
- package/dist/components/Radio/index.js +3 -4
- package/dist/components/Select/index.cjs +4 -4
- package/dist/components/Select/index.css +46 -40
- package/dist/components/Select/index.js +4 -4
- package/dist/components/Skeleton/index.css +3 -3
- package/dist/components/Spinner/index.cjs +2 -3
- package/dist/components/Spinner/index.css +22 -8
- package/dist/components/Spinner/index.d.cts +3 -2
- package/dist/components/Spinner/index.d.ts +3 -2
- package/dist/components/Spinner/index.js +2 -3
- package/dist/components/Steps/index.cjs +8 -9
- package/dist/components/Steps/index.css +77 -22
- package/dist/components/Steps/index.d.cts +3 -2
- package/dist/components/Steps/index.d.ts +3 -2
- package/dist/components/Steps/index.js +8 -9
- package/dist/components/Swiper/index.css +10 -10
- package/dist/components/Switch/index.cjs +4 -5
- package/dist/components/Switch/index.css +58 -26
- package/dist/components/Switch/index.d.cts +3 -2
- package/dist/components/Switch/index.d.ts +3 -2
- package/dist/components/Switch/index.js +4 -5
- package/dist/components/Tab/index.css +15 -15
- package/dist/components/Table/index.cjs +0 -3
- package/dist/components/Table/index.css +15 -15
- package/dist/components/Table/index.d.cts +1 -2
- package/dist/components/Table/index.d.ts +1 -2
- package/dist/components/Table/index.js +0 -3
- package/dist/components/Tag/index.cjs +23 -10
- package/dist/components/Tag/index.css +58 -17
- package/dist/components/Tag/index.d.cts +5 -2
- package/dist/components/Tag/index.d.ts +5 -2
- package/dist/components/Tag/index.js +23 -10
- package/dist/components/TextArea/index.css +20 -9
- 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.css +5 -5
- package/dist/components/index.cjs +970 -15289
- 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 +871 -15192
- package/dist/index.cjs +1077 -15378
- package/dist/index.css +2164 -1058
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +877 -15182
- 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 +33 -142
- package/dist/tokens/index.d.cts +23 -6
- package/dist/tokens/index.d.ts +23 -6
- package/dist/tokens/index.js +29 -140
- package/guidelines/Guidelines.md +57 -0
- package/guidelines/components/accordion.md +72 -0
- package/guidelines/components/avatar.md +35 -0
- package/guidelines/components/button.md +58 -0
- package/guidelines/components/card.md +28 -0
- package/guidelines/components/chart.md +58 -0
- package/guidelines/components/chip-tag.md +49 -0
- package/guidelines/components/data-display.md +96 -0
- package/guidelines/components/datepicker.md +60 -0
- package/guidelines/components/dropdown.md +49 -0
- package/guidelines/components/feedback.md +64 -0
- package/guidelines/components/file-media.md +95 -0
- package/guidelines/components/form.md +60 -0
- package/guidelines/components/html-typewriter.md +38 -0
- package/guidelines/components/input.md +55 -0
- package/guidelines/components/navigation.md +80 -0
- package/guidelines/components/overlay.md +72 -0
- package/guidelines/components/select.md +44 -0
- package/guidelines/components/swiper.md +84 -0
- package/guidelines/components/table.md +62 -0
- package/guidelines/composition/grid.md +95 -0
- package/guidelines/composition/layout.md +30 -0
- package/guidelines/foundations/color.md +81 -0
- package/guidelines/foundations/icons.md +55 -0
- package/guidelines/foundations/spacing.md +51 -0
- package/guidelines/foundations/typography.md +63 -0
- package/guidelines/setup.md +42 -0
- package/package.json +5 -5
- 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
|
@@ -14,54 +14,54 @@
|
|
|
14
14
|
}
|
|
15
15
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.table-bottom-border,
|
|
16
16
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.table-bottom-border {
|
|
17
|
-
border-bottom: 1px solid var(--
|
|
17
|
+
border-bottom: 1px solid var(--semantic-border-default);
|
|
18
18
|
}
|
|
19
19
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary,
|
|
20
20
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary {
|
|
21
|
-
background-color: var(--
|
|
21
|
+
background-color: var(--semantic-surface-brand-default);
|
|
22
22
|
}
|
|
23
23
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary > td,
|
|
24
24
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary > th,
|
|
25
25
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary > td,
|
|
26
26
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary > th {
|
|
27
|
-
color: var(--
|
|
28
|
-
background-color: var(--
|
|
27
|
+
color: var(--semantic-text-inverse);
|
|
28
|
+
background-color: var(--semantic-surface-brand-default);
|
|
29
29
|
}
|
|
30
30
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary > td.cell-hover:hover,
|
|
31
31
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary > th.cell-hover:hover,
|
|
32
32
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary > td.cell-hover:hover,
|
|
33
33
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary > th.cell-hover:hover {
|
|
34
|
-
background-color:
|
|
34
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
35
35
|
}
|
|
36
36
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary.hover:hover > td,
|
|
37
37
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary.hover:hover > th,
|
|
38
38
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary.hover:hover > td,
|
|
39
39
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary.hover:hover > th {
|
|
40
|
-
color: var(--
|
|
41
|
-
background-color:
|
|
40
|
+
color: var(--semantic-text-inverse);
|
|
41
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
42
42
|
}
|
|
43
43
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary,
|
|
44
44
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary {
|
|
45
|
-
background-color: var(--
|
|
45
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
46
46
|
}
|
|
47
47
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > td,
|
|
48
48
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > th,
|
|
49
49
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > td,
|
|
50
50
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > th {
|
|
51
|
-
background-color: var(--
|
|
52
|
-
color: var(--
|
|
51
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
52
|
+
color: var(--semantic-text-strong);
|
|
53
53
|
}
|
|
54
54
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > td.cell-hover:hover,
|
|
55
55
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > th.cell-hover:hover,
|
|
56
56
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > td.cell-hover:hover,
|
|
57
57
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > th.cell-hover:hover {
|
|
58
|
-
background-color:
|
|
58
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
59
59
|
}
|
|
60
60
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary.hover:hover > td,
|
|
61
61
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary.hover:hover > th,
|
|
62
62
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > td,
|
|
63
63
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > th {
|
|
64
|
-
background-color:
|
|
64
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
65
65
|
}
|
|
66
66
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.clickable,
|
|
67
67
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.clickable {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > td,
|
|
73
73
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr > th {
|
|
74
74
|
min-width: 80px;
|
|
75
|
-
padding:
|
|
75
|
+
padding: var(--spacing-space-2);
|
|
76
76
|
vertical-align: middle;
|
|
77
77
|
transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
78
78
|
}
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
content: "";
|
|
126
126
|
position: absolute;
|
|
127
127
|
top: 0;
|
|
128
|
-
right: -
|
|
129
|
-
width:
|
|
128
|
+
right: calc(var(--spacing-space-2) * -1);
|
|
129
|
+
width: var(--spacing-space-2);
|
|
130
130
|
height: 100%;
|
|
131
131
|
background:
|
|
132
132
|
linear-gradient(
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.cjs';
|
|
4
3
|
|
|
5
4
|
interface TableProps {
|
|
6
5
|
children: React.ReactNode;
|
|
@@ -39,7 +38,7 @@ declare const TableHead: {
|
|
|
39
38
|
displayName: string;
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
interface TableRowProps
|
|
41
|
+
interface TableRowProps {
|
|
43
42
|
children: React.ReactNode;
|
|
44
43
|
type?: "primary" | "secondary";
|
|
45
44
|
isHover?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.js';
|
|
4
3
|
|
|
5
4
|
interface TableProps {
|
|
6
5
|
children: React.ReactNode;
|
|
@@ -39,7 +38,7 @@ declare const TableHead: {
|
|
|
39
38
|
displayName: string;
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
interface TableRowProps
|
|
41
|
+
interface TableRowProps {
|
|
43
42
|
children: React.ReactNode;
|
|
44
43
|
type?: "primary" | "secondary";
|
|
45
44
|
isHover?: boolean;
|
|
@@ -162,7 +162,6 @@ import { jsx as jsx5 } from "react/jsx-runtime";
|
|
|
162
162
|
var TableRow = (props) => {
|
|
163
163
|
const {
|
|
164
164
|
children,
|
|
165
|
-
color = "xplat-neutral-900",
|
|
166
165
|
type = "secondary",
|
|
167
166
|
isHover,
|
|
168
167
|
onClick
|
|
@@ -175,14 +174,12 @@ var TableRow = (props) => {
|
|
|
175
174
|
return [...prev, ref];
|
|
176
175
|
});
|
|
177
176
|
};
|
|
178
|
-
const colorClass = color;
|
|
179
177
|
return /* @__PURE__ */ jsx5(TableRowContext_default.Provider, { value: { stickyCells, registerStickyCell }, children: /* @__PURE__ */ jsx5(
|
|
180
178
|
"tr",
|
|
181
179
|
{
|
|
182
180
|
className: clsx_default(
|
|
183
181
|
rowBorderUse ? "table-bottom-border" : null,
|
|
184
182
|
type,
|
|
185
|
-
colorClass,
|
|
186
183
|
isHover && "hover",
|
|
187
184
|
onClick && "clickable"
|
|
188
185
|
),
|
|
@@ -405,10 +405,10 @@ var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
|
405
405
|
// src/tokens/svg/file/BookIcon.tsx
|
|
406
406
|
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
407
407
|
|
|
408
|
-
// src/tokens/svg/file/
|
|
408
|
+
// src/tokens/svg/file/BookmarkIcon.tsx
|
|
409
409
|
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
410
410
|
|
|
411
|
-
// src/tokens/svg/file/
|
|
411
|
+
// src/tokens/svg/file/BookOpenIcon.tsx
|
|
412
412
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
413
413
|
|
|
414
414
|
// src/tokens/svg/file/ClipboardIcon.tsx
|
|
@@ -876,10 +876,10 @@ var import_jsx_runtime279 = require("react/jsx-runtime");
|
|
|
876
876
|
// src/tokens/svg/user/UserPlusIcon.tsx
|
|
877
877
|
var import_jsx_runtime280 = require("react/jsx-runtime");
|
|
878
878
|
|
|
879
|
-
// src/tokens/svg/user/
|
|
879
|
+
// src/tokens/svg/user/UsersIcon.tsx
|
|
880
880
|
var import_jsx_runtime281 = require("react/jsx-runtime");
|
|
881
881
|
|
|
882
|
-
// src/tokens/svg/user/
|
|
882
|
+
// src/tokens/svg/user/UserXIcon.tsx
|
|
883
883
|
var import_jsx_runtime282 = require("react/jsx-runtime");
|
|
884
884
|
|
|
885
885
|
// src/tokens/svg/weather/CloudDrizzleIcon.tsx
|
|
@@ -939,15 +939,28 @@ var import_jsx_runtime295 = require("react/jsx-runtime");
|
|
|
939
939
|
var Tag = (props) => {
|
|
940
940
|
const {
|
|
941
941
|
children,
|
|
942
|
+
type = "neutral",
|
|
942
943
|
onClose,
|
|
943
944
|
size = "md",
|
|
944
|
-
|
|
945
|
+
disabled = false,
|
|
946
|
+
colorIndex
|
|
945
947
|
} = props;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
|
|
949
|
+
"span",
|
|
950
|
+
{
|
|
951
|
+
className: clsx_default(
|
|
952
|
+
"lib-xplat-tag",
|
|
953
|
+
type,
|
|
954
|
+
size,
|
|
955
|
+
type === "categorical" && colorIndex !== void 0 && `cat-${colorIndex}`,
|
|
956
|
+
disabled && "disabled"
|
|
957
|
+
),
|
|
958
|
+
children: [
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime295.jsx)("span", { className: "tag-label", children }),
|
|
960
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("button", { className: "tag-close", onClick: onClose, "aria-label": "\uC0AD\uC81C", disabled, children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(XIcon_default, {}) })
|
|
961
|
+
]
|
|
962
|
+
}
|
|
963
|
+
);
|
|
951
964
|
};
|
|
952
965
|
Tag.displayName = "Tag";
|
|
953
966
|
var Tag_default = Tag;
|
|
@@ -2,29 +2,73 @@
|
|
|
2
2
|
.lib-xplat-tag {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
|
-
border-radius:
|
|
5
|
+
border-radius: var(--spacing-radius-sm);
|
|
6
6
|
line-height: 1.5;
|
|
7
7
|
border: 1px solid;
|
|
8
8
|
}
|
|
9
9
|
.lib-xplat-tag.sm {
|
|
10
|
-
gap:
|
|
11
|
-
padding:
|
|
10
|
+
gap: var(--spacing-space-1);
|
|
11
|
+
padding: 1px var(--spacing-space-2);
|
|
12
12
|
font-size: 11px;
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-tag.md {
|
|
15
|
-
gap:
|
|
16
|
-
padding:
|
|
15
|
+
gap: var(--spacing-space-1);
|
|
16
|
+
padding: 2px var(--spacing-space-2);
|
|
17
17
|
font-size: 12px;
|
|
18
18
|
}
|
|
19
19
|
.lib-xplat-tag.lg {
|
|
20
|
-
gap:
|
|
21
|
-
padding:
|
|
20
|
+
gap: var(--spacing-space-1);
|
|
21
|
+
padding: var(--spacing-space-1) var(--spacing-space-2);
|
|
22
22
|
font-size: 14px;
|
|
23
23
|
}
|
|
24
|
-
.lib-xplat-tag {
|
|
25
|
-
color: var(--
|
|
26
|
-
border-color: var(--
|
|
27
|
-
background-color:
|
|
24
|
+
.lib-xplat-tag.neutral {
|
|
25
|
+
color: var(--semantic-text-muted);
|
|
26
|
+
border-color: var(--semantic-border-default);
|
|
27
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
28
|
+
}
|
|
29
|
+
.lib-xplat-tag.categorical.cat-1 {
|
|
30
|
+
color: var(--semantic-categorical-1-text);
|
|
31
|
+
background-color: var(--semantic-categorical-1-bg);
|
|
32
|
+
border-color: var(--semantic-categorical-1-area);
|
|
33
|
+
}
|
|
34
|
+
.lib-xplat-tag.categorical.cat-2 {
|
|
35
|
+
color: var(--semantic-categorical-2-text);
|
|
36
|
+
background-color: var(--semantic-categorical-2-bg);
|
|
37
|
+
border-color: var(--semantic-categorical-2-area);
|
|
38
|
+
}
|
|
39
|
+
.lib-xplat-tag.categorical.cat-3 {
|
|
40
|
+
color: var(--semantic-categorical-3-text);
|
|
41
|
+
background-color: var(--semantic-categorical-3-bg);
|
|
42
|
+
border-color: var(--semantic-categorical-3-area);
|
|
43
|
+
}
|
|
44
|
+
.lib-xplat-tag.categorical.cat-4 {
|
|
45
|
+
color: var(--semantic-categorical-4-text);
|
|
46
|
+
background-color: var(--semantic-categorical-4-bg);
|
|
47
|
+
border-color: var(--semantic-categorical-4-area);
|
|
48
|
+
}
|
|
49
|
+
.lib-xplat-tag.categorical.cat-5 {
|
|
50
|
+
color: var(--semantic-categorical-5-text);
|
|
51
|
+
background-color: var(--semantic-categorical-5-bg);
|
|
52
|
+
border-color: var(--semantic-categorical-5-area);
|
|
53
|
+
}
|
|
54
|
+
.lib-xplat-tag.categorical.cat-6 {
|
|
55
|
+
color: var(--semantic-categorical-6-text);
|
|
56
|
+
background-color: var(--semantic-categorical-6-bg);
|
|
57
|
+
border-color: var(--semantic-categorical-6-area);
|
|
58
|
+
}
|
|
59
|
+
.lib-xplat-tag.categorical.cat-7 {
|
|
60
|
+
color: var(--semantic-categorical-7-text);
|
|
61
|
+
background-color: var(--semantic-categorical-7-bg);
|
|
62
|
+
border-color: var(--semantic-categorical-7-area);
|
|
63
|
+
}
|
|
64
|
+
.lib-xplat-tag.categorical.cat-8 {
|
|
65
|
+
color: var(--semantic-categorical-8-text);
|
|
66
|
+
background-color: var(--semantic-categorical-8-bg);
|
|
67
|
+
border-color: var(--semantic-categorical-8-area);
|
|
68
|
+
}
|
|
69
|
+
.lib-xplat-tag.disabled {
|
|
70
|
+
opacity: 0.5;
|
|
71
|
+
pointer-events: none;
|
|
28
72
|
}
|
|
29
73
|
.lib-xplat-tag .tag-label {
|
|
30
74
|
white-space: nowrap;
|
|
@@ -45,14 +89,11 @@
|
|
|
45
89
|
opacity: 1;
|
|
46
90
|
}
|
|
47
91
|
.lib-xplat-tag.sm .tag-close svg {
|
|
48
|
-
|
|
49
|
-
height: 10px;
|
|
92
|
+
font-size: 10px;
|
|
50
93
|
}
|
|
51
94
|
.lib-xplat-tag.md .tag-close svg {
|
|
52
|
-
|
|
53
|
-
height: 12px;
|
|
95
|
+
font-size: 12px;
|
|
54
96
|
}
|
|
55
97
|
.lib-xplat-tag.lg .tag-close svg {
|
|
56
|
-
|
|
57
|
-
height: 14px;
|
|
98
|
+
font-size: 14px;
|
|
58
99
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.cjs';
|
|
4
3
|
|
|
4
|
+
type TagType = "neutral" | "categorical";
|
|
5
5
|
type TagSize = "sm" | "md" | "lg";
|
|
6
|
-
interface TagProps
|
|
6
|
+
interface TagProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
+
type?: TagType;
|
|
8
9
|
onClose?: () => void;
|
|
9
10
|
size?: TagSize;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
colorIndex?: number;
|
|
10
13
|
}
|
|
11
14
|
declare const Tag: {
|
|
12
15
|
(props: TagProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.js';
|
|
4
3
|
|
|
4
|
+
type TagType = "neutral" | "categorical";
|
|
5
5
|
type TagSize = "sm" | "md" | "lg";
|
|
6
|
-
interface TagProps
|
|
6
|
+
interface TagProps {
|
|
7
7
|
children: React.ReactNode;
|
|
8
|
+
type?: TagType;
|
|
8
9
|
onClose?: () => void;
|
|
9
10
|
size?: TagSize;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
colorIndex?: number;
|
|
10
13
|
}
|
|
11
14
|
declare const Tag: {
|
|
12
15
|
(props: TagProps): react_jsx_runtime.JSX.Element;
|
|
@@ -379,10 +379,10 @@ import { jsx as jsx126, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
|
379
379
|
// src/tokens/svg/file/BookIcon.tsx
|
|
380
380
|
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
381
381
|
|
|
382
|
-
// src/tokens/svg/file/
|
|
382
|
+
// src/tokens/svg/file/BookmarkIcon.tsx
|
|
383
383
|
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
384
384
|
|
|
385
|
-
// src/tokens/svg/file/
|
|
385
|
+
// src/tokens/svg/file/BookOpenIcon.tsx
|
|
386
386
|
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
387
387
|
|
|
388
388
|
// src/tokens/svg/file/ClipboardIcon.tsx
|
|
@@ -850,10 +850,10 @@ import { jsx as jsx279, jsxs as jsxs177 } from "react/jsx-runtime";
|
|
|
850
850
|
// src/tokens/svg/user/UserPlusIcon.tsx
|
|
851
851
|
import { jsx as jsx280, jsxs as jsxs178 } from "react/jsx-runtime";
|
|
852
852
|
|
|
853
|
-
// src/tokens/svg/user/
|
|
853
|
+
// src/tokens/svg/user/UsersIcon.tsx
|
|
854
854
|
import { jsx as jsx281, jsxs as jsxs179 } from "react/jsx-runtime";
|
|
855
855
|
|
|
856
|
-
// src/tokens/svg/user/
|
|
856
|
+
// src/tokens/svg/user/UserXIcon.tsx
|
|
857
857
|
import { jsx as jsx282, jsxs as jsxs180 } from "react/jsx-runtime";
|
|
858
858
|
|
|
859
859
|
// src/tokens/svg/weather/CloudDrizzleIcon.tsx
|
|
@@ -913,15 +913,28 @@ import { jsx as jsx295, jsxs as jsxs189 } from "react/jsx-runtime";
|
|
|
913
913
|
var Tag = (props) => {
|
|
914
914
|
const {
|
|
915
915
|
children,
|
|
916
|
+
type = "neutral",
|
|
916
917
|
onClose,
|
|
917
918
|
size = "md",
|
|
918
|
-
|
|
919
|
+
disabled = false,
|
|
920
|
+
colorIndex
|
|
919
921
|
} = props;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
922
|
+
return /* @__PURE__ */ jsxs189(
|
|
923
|
+
"span",
|
|
924
|
+
{
|
|
925
|
+
className: clsx_default(
|
|
926
|
+
"lib-xplat-tag",
|
|
927
|
+
type,
|
|
928
|
+
size,
|
|
929
|
+
type === "categorical" && colorIndex !== void 0 && `cat-${colorIndex}`,
|
|
930
|
+
disabled && "disabled"
|
|
931
|
+
),
|
|
932
|
+
children: [
|
|
933
|
+
/* @__PURE__ */ jsx295("span", { className: "tag-label", children }),
|
|
934
|
+
onClose && /* @__PURE__ */ jsx295("button", { className: "tag-close", onClick: onClose, "aria-label": "\uC0AD\uC81C", disabled, children: /* @__PURE__ */ jsx295(XIcon_default, {}) })
|
|
935
|
+
]
|
|
936
|
+
}
|
|
937
|
+
);
|
|
925
938
|
};
|
|
926
939
|
Tag.displayName = "Tag";
|
|
927
940
|
var Tag_default = Tag;
|
|
@@ -2,30 +2,41 @@
|
|
|
2
2
|
.lib-xplat-textarea-wrapper {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
gap:
|
|
5
|
+
gap: var(--spacing-space-2);
|
|
6
6
|
}
|
|
7
7
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
border: 1px solid var(--
|
|
11
|
-
border-radius:
|
|
12
|
-
min-height:
|
|
10
|
+
border: 1px solid var(--semantic-border-default);
|
|
11
|
+
border-radius: var(--spacing-radius-md);
|
|
12
|
+
min-height: var(--spacing-control-height-md);
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
background-color: var(--
|
|
14
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
15
15
|
width: 100%;
|
|
16
|
+
transition: border-color 0.15s, box-shadow 0.15s;
|
|
17
|
+
}
|
|
18
|
+
.lib-xplat-textarea-wrapper .lib-xplat-textarea:hover:not(.disabled):not(:focus-within) {
|
|
19
|
+
border-color: var(--semantic-border-strong);
|
|
20
|
+
}
|
|
21
|
+
.lib-xplat-textarea-wrapper .lib-xplat-textarea:focus-within {
|
|
22
|
+
border-color: var(--semantic-interaction-focus-ring);
|
|
23
|
+
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
24
|
+
}
|
|
25
|
+
.lib-xplat-textarea-wrapper .lib-xplat-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
|
|
26
|
+
border-color: var(--semantic-border-strong);
|
|
16
27
|
}
|
|
17
28
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea.disabled {
|
|
18
|
-
background-color: var(--
|
|
29
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
19
30
|
cursor: not-allowed;
|
|
20
31
|
}
|
|
21
32
|
.lib-xplat-textarea-wrapper .lib-xplat-textarea > textarea {
|
|
22
33
|
border: none;
|
|
23
34
|
outline: none;
|
|
24
35
|
flex: 1;
|
|
25
|
-
padding-left:
|
|
26
|
-
padding-right:
|
|
36
|
+
padding-left: var(--spacing-space-4);
|
|
37
|
+
padding-right: var(--spacing-space-4);
|
|
27
38
|
width: 100%;
|
|
28
|
-
color: var(--
|
|
39
|
+
color: var(--semantic-text-subtle);
|
|
29
40
|
resize: none;
|
|
30
41
|
height: 1.5em;
|
|
31
42
|
}
|
|
@@ -8,41 +8,41 @@
|
|
|
8
8
|
pointer-events: none;
|
|
9
9
|
}
|
|
10
10
|
.lib-xplat-toast-container.top {
|
|
11
|
-
top:
|
|
11
|
+
top: var(--spacing-space-4);
|
|
12
12
|
left: 50%;
|
|
13
13
|
transform: translateX(-50%);
|
|
14
14
|
align-items: center;
|
|
15
15
|
}
|
|
16
16
|
.lib-xplat-toast-container.bottom {
|
|
17
|
-
bottom:
|
|
17
|
+
bottom: var(--spacing-space-4);
|
|
18
18
|
left: 50%;
|
|
19
19
|
transform: translateX(-50%);
|
|
20
20
|
align-items: center;
|
|
21
21
|
}
|
|
22
22
|
.lib-xplat-toast-container.top-left {
|
|
23
|
-
top:
|
|
24
|
-
left:
|
|
23
|
+
top: var(--spacing-space-4);
|
|
24
|
+
left: var(--spacing-space-4);
|
|
25
25
|
align-items: flex-start;
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-toast-container.top-right {
|
|
28
|
-
top:
|
|
29
|
-
right:
|
|
28
|
+
top: var(--spacing-space-4);
|
|
29
|
+
right: var(--spacing-space-4);
|
|
30
30
|
align-items: flex-end;
|
|
31
31
|
}
|
|
32
32
|
.lib-xplat-toast-container.bottom-left {
|
|
33
|
-
bottom:
|
|
34
|
-
left:
|
|
33
|
+
bottom: var(--spacing-space-4);
|
|
34
|
+
left: var(--spacing-space-4);
|
|
35
35
|
align-items: flex-start;
|
|
36
36
|
}
|
|
37
37
|
.lib-xplat-toast-container.bottom-right {
|
|
38
|
-
bottom:
|
|
39
|
-
right:
|
|
38
|
+
bottom: var(--spacing-space-4);
|
|
39
|
+
right: var(--spacing-space-4);
|
|
40
40
|
align-items: flex-end;
|
|
41
41
|
}
|
|
42
42
|
.lib-xplat-toast-wrapper {
|
|
43
43
|
overflow: hidden;
|
|
44
44
|
transition: max-height 0.3s ease, margin-bottom 0.3s ease;
|
|
45
|
-
margin-bottom:
|
|
45
|
+
margin-bottom: var(--spacing-space-2);
|
|
46
46
|
}
|
|
47
47
|
.lib-xplat-toast-wrapper.exit {
|
|
48
48
|
margin-bottom: 0;
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
.lib-xplat-toast {
|
|
51
51
|
display: flex;
|
|
52
52
|
align-items: center;
|
|
53
|
-
gap:
|
|
54
|
-
padding:
|
|
55
|
-
border-radius:
|
|
53
|
+
gap: var(--spacing-space-2);
|
|
54
|
+
padding: var(--spacing-space-3) var(--spacing-space-4);
|
|
55
|
+
border-radius: var(--spacing-radius-md);
|
|
56
56
|
font-size: 14px;
|
|
57
57
|
line-height: 1.5;
|
|
58
58
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
@@ -84,20 +84,20 @@
|
|
|
84
84
|
opacity: 1;
|
|
85
85
|
}
|
|
86
86
|
.lib-xplat-toast.info {
|
|
87
|
-
background-color: var(--
|
|
88
|
-
color: var(--
|
|
87
|
+
background-color: var(--semantic-surface-info-default);
|
|
88
|
+
color: var(--semantic-text-inverse);
|
|
89
89
|
}
|
|
90
90
|
.lib-xplat-toast.success {
|
|
91
|
-
background-color: var(--
|
|
92
|
-
color: var(--
|
|
91
|
+
background-color: var(--semantic-surface-success-default);
|
|
92
|
+
color: var(--semantic-text-inverse);
|
|
93
93
|
}
|
|
94
94
|
.lib-xplat-toast.warning {
|
|
95
|
-
background-color: var(--
|
|
96
|
-
color: var(--
|
|
95
|
+
background-color: var(--semantic-surface-warning-default);
|
|
96
|
+
color: var(--semantic-text-inverse);
|
|
97
97
|
}
|
|
98
98
|
.lib-xplat-toast.error {
|
|
99
|
-
background-color: var(--
|
|
100
|
-
color: var(--
|
|
99
|
+
background-color: var(--semantic-surface-error-default);
|
|
100
|
+
color: var(--semantic-text-inverse);
|
|
101
101
|
}
|
|
102
102
|
@keyframes lib-xplat-toast-enter {
|
|
103
103
|
from {
|
|
@@ -58,15 +58,13 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
58
58
|
var Tooltip = (props) => {
|
|
59
59
|
const {
|
|
60
60
|
type = "primary",
|
|
61
|
-
color = "xplat-neutral-900",
|
|
62
61
|
description,
|
|
63
62
|
children
|
|
64
63
|
} = props;
|
|
65
64
|
const iconRef = import_react.default.useRef(null);
|
|
66
|
-
const colorClass = color;
|
|
67
65
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lib-xplat-tooltip", children: [
|
|
68
66
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "tooltip-content", ref: iconRef, children: children || "Tooltip" }),
|
|
69
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx_default("tooltip-wrapper",
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx_default("tooltip-wrapper", type), children: description })
|
|
70
68
|
] });
|
|
71
69
|
};
|
|
72
70
|
Tooltip.displayName = "Tooltip";
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
left: 50%;
|
|
14
14
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
15
15
|
white-space: nowrap;
|
|
16
|
-
border-radius:
|
|
17
|
-
padding:
|
|
16
|
+
border-radius: var(--spacing-radius-sm);
|
|
17
|
+
padding: var(--spacing-space-2) var(--spacing-space-2);
|
|
18
18
|
opacity: 0;
|
|
19
19
|
pointer-events: none;
|
|
20
20
|
bottom: 100%;
|
|
21
21
|
transition: opacity 0.12s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
|
|
22
22
|
}
|
|
23
23
|
.lib-xplat-tooltip > .tooltip-wrapper.primary {
|
|
24
|
-
color: var(--
|
|
25
|
-
background-color: var(--
|
|
24
|
+
color: var(--semantic-text-inverse);
|
|
25
|
+
background-color: var(--semantic-surface-neutral-strong);
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-tooltip > .tooltip-wrapper.secondary {
|
|
28
|
-
background-color: var(--
|
|
29
|
-
color: var(--
|
|
28
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
29
|
+
color: var(--semantic-text-strong);
|
|
30
30
|
}
|
|
31
31
|
.lib-xplat-tooltip.tooltip-bottom > .tooltip-wrapper {
|
|
32
32
|
top: 100%;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.cjs';
|
|
4
3
|
|
|
5
|
-
interface TooltipProps
|
|
4
|
+
interface TooltipProps {
|
|
6
5
|
type?: "primary" | "secondary";
|
|
7
6
|
description: React.ReactNode;
|
|
8
7
|
children?: React.ReactNode;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.js';
|
|
4
3
|
|
|
5
|
-
interface TooltipProps
|
|
4
|
+
interface TooltipProps {
|
|
6
5
|
type?: "primary" | "secondary";
|
|
7
6
|
description: React.ReactNode;
|
|
8
7
|
children?: React.ReactNode;
|
|
@@ -22,15 +22,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
22
22
|
var Tooltip = (props) => {
|
|
23
23
|
const {
|
|
24
24
|
type = "primary",
|
|
25
|
-
color = "xplat-neutral-900",
|
|
26
25
|
description,
|
|
27
26
|
children
|
|
28
27
|
} = props;
|
|
29
28
|
const iconRef = React.useRef(null);
|
|
30
|
-
const colorClass = color;
|
|
31
29
|
return /* @__PURE__ */ jsxs("div", { className: "lib-xplat-tooltip", children: [
|
|
32
30
|
/* @__PURE__ */ jsx("div", { className: "tooltip-content", ref: iconRef, children: children || "Tooltip" }),
|
|
33
|
-
/* @__PURE__ */ jsx("div", { className: clsx_default("tooltip-wrapper",
|
|
31
|
+
/* @__PURE__ */ jsx("div", { className: clsx_default("tooltip-wrapper", type), children: description })
|
|
34
32
|
] });
|
|
35
33
|
};
|
|
36
34
|
Tooltip.displayName = "Tooltip";
|