@x-plat/design-system 0.5.66 → 0.6.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.css +6 -6
- package/dist/components/AutoResizeTextArea/index.css +5 -5
- package/dist/components/Avatar/index.css +2 -2
- package/dist/components/Badge/index.css +1 -1
- package/dist/components/Box/index.css +5 -5
- package/dist/components/Breadcrumb/index.css +4 -4
- package/dist/components/Button/index.cjs +1 -2
- package/dist/components/Button/index.css +6 -6
- package/dist/components/Button/index.d.cts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.js +1 -2
- package/dist/components/Calendar/index.cjs +1 -1
- package/dist/components/Calendar/index.css +18 -18
- package/dist/components/Calendar/index.js +1 -1
- package/dist/components/CardTab/index.css +8 -8
- package/dist/components/Chart/index.css +11 -11
- package/dist/components/ChatInput/index.cjs +1 -2
- package/dist/components/ChatInput/index.css +16 -16
- package/dist/components/ChatInput/index.js +1 -2
- package/dist/components/CheckBox/index.css +2 -2
- package/dist/components/CheckBox/index.js +1 -1
- package/dist/components/Chip/index.css +5 -5
- package/dist/components/DatePicker/index.cjs +1 -2
- package/dist/components/DatePicker/index.css +36 -36
- package/dist/components/DatePicker/index.js +1 -2
- package/dist/components/Divider/index.css +2 -2
- package/dist/components/Drawer/index.css +5 -5
- package/dist/components/Dropdown/index.css +4 -4
- package/dist/components/Editor/index.css +36 -36
- package/dist/components/EmptyState/index.css +2 -2
- package/dist/components/FileUpload/index.css +4 -4
- package/dist/components/HtmlTypeWriter/index.css +1 -1
- package/dist/components/IconButton/index.cjs +1 -2
- package/dist/components/IconButton/index.css +5 -5
- package/dist/components/IconButton/index.d.cts +1 -1
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/IconButton/index.js +1 -2
- package/dist/components/ImageSelector/index.css +7 -7
- package/dist/components/Input/index.css +7 -7
- package/dist/components/Modal/index.css +1 -1
- package/dist/components/Pagination/index.css +3 -3
- package/dist/components/PopOver/index.css +1 -1
- package/dist/components/Progress/index.css +1 -1
- package/dist/components/Radio/index.css +5 -5
- package/dist/components/Select/index.css +9 -9
- package/dist/components/Skeleton/index.cjs +6 -6
- package/dist/components/Skeleton/index.js +6 -6
- package/dist/components/Spinner/index.css +1 -1
- package/dist/components/Steps/index.css +3 -3
- package/dist/components/Swiper/index.css +3 -3
- package/dist/components/Switch/index.css +3 -3
- package/dist/components/Tab/index.css +4 -4
- package/dist/components/Table/index.css +10 -10
- package/dist/components/Tag/index.css +3 -3
- package/dist/components/TextArea/index.css +5 -5
- package/dist/components/Tooltip/index.css +4 -4
- package/dist/components/Video/index.css +2 -2
- package/dist/components/index.cjs +249 -251
- package/dist/components/index.css +667 -1059
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +224 -226
- package/dist/index.cjs +249 -253
- package/dist/index.css +670 -1062
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +224 -227
- package/dist/layout/Header/index.css +2 -2
- package/dist/layout/Layout/index.css +1 -1
- package/dist/layout/index.css +404 -796
- package/dist/tokens/index.cjs +0 -2
- package/dist/tokens/index.d.cts +9 -10
- package/dist/tokens/index.d.ts +9 -10
- package/dist/tokens/index.js +1 -2
- package/guidelines/AGENT_PROMPT.md +8 -9
- package/guidelines/Guidelines.md +1 -1
- package/guidelines/components/chart.md +1 -1
- package/guidelines/foundations/color.md +22 -23
- package/guidelines/foundations/typography.md +86 -36
- package/package.json +1 -1
|
@@ -45,7 +45,6 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
45
45
|
var IconButton = (props) => {
|
|
46
46
|
const {
|
|
47
47
|
icon,
|
|
48
|
-
className,
|
|
49
48
|
type = "primary",
|
|
50
49
|
size = "md",
|
|
51
50
|
disabled,
|
|
@@ -54,7 +53,7 @@ var IconButton = (props) => {
|
|
|
54
53
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
54
|
"button",
|
|
56
55
|
{
|
|
57
|
-
className: clsx_default("lib-xplat-icon-button", type, size
|
|
56
|
+
className: clsx_default("lib-xplat-icon-button", type, size),
|
|
58
57
|
disabled,
|
|
59
58
|
...rest,
|
|
60
59
|
children: icon
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
}
|
|
44
44
|
.lib-xplat-icon-button.secondary {
|
|
45
45
|
color: var(--semantic-surface-brand-default);
|
|
46
|
-
background-color: var(--semantic-surface-neutral-
|
|
47
|
-
border-color: var(--semantic-border-
|
|
46
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
47
|
+
border-color: var(--semantic-border-primary);
|
|
48
48
|
}
|
|
49
49
|
.lib-xplat-icon-button.secondary:hover:not(:disabled) {
|
|
50
|
-
background-color: var(--semantic-surface-neutral-
|
|
50
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
51
51
|
}
|
|
52
52
|
.lib-xplat-icon-button.secondary:focus-visible {
|
|
53
53
|
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
outline-offset: 2px;
|
|
66
66
|
}
|
|
67
67
|
.lib-xplat-icon-button.ghost {
|
|
68
|
-
color: var(--semantic-text-
|
|
68
|
+
color: var(--semantic-text-secondary);
|
|
69
69
|
background-color: transparent;
|
|
70
70
|
}
|
|
71
71
|
.lib-xplat-icon-button.ghost:hover:not(:disabled) {
|
|
72
|
-
background-color: var(--semantic-surface-neutral-
|
|
72
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
73
73
|
}
|
|
74
74
|
.lib-xplat-icon-button.ghost:focus-visible {
|
|
75
75
|
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.cjs';
|
|
|
4
4
|
|
|
5
5
|
type IconButtonType = "primary" | "secondary" | "danger" | "ghost";
|
|
6
6
|
type IconButtonSize = "sm" | "md" | "lg";
|
|
7
|
-
interface IconButtonProps extends Omit<ButtonAttributes, "children"> {
|
|
7
|
+
interface IconButtonProps extends Omit<ButtonAttributes, "className" | "children"> {
|
|
8
8
|
icon: React.ReactNode;
|
|
9
9
|
type?: IconButtonType;
|
|
10
10
|
size?: IconButtonSize;
|
|
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.js';
|
|
|
4
4
|
|
|
5
5
|
type IconButtonType = "primary" | "secondary" | "danger" | "ghost";
|
|
6
6
|
type IconButtonSize = "sm" | "md" | "lg";
|
|
7
|
-
interface IconButtonProps extends Omit<ButtonAttributes, "children"> {
|
|
7
|
+
interface IconButtonProps extends Omit<ButtonAttributes, "className" | "children"> {
|
|
8
8
|
icon: React.ReactNode;
|
|
9
9
|
type?: IconButtonType;
|
|
10
10
|
size?: IconButtonSize;
|
|
@@ -19,7 +19,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
19
19
|
var IconButton = (props) => {
|
|
20
20
|
const {
|
|
21
21
|
icon,
|
|
22
|
-
className,
|
|
23
22
|
type = "primary",
|
|
24
23
|
size = "md",
|
|
25
24
|
disabled,
|
|
@@ -28,7 +27,7 @@ var IconButton = (props) => {
|
|
|
28
27
|
return /* @__PURE__ */ jsx(
|
|
29
28
|
"button",
|
|
30
29
|
{
|
|
31
|
-
className: clsx_default("lib-xplat-icon-button", type, size
|
|
30
|
+
className: clsx_default("lib-xplat-icon-button", type, size),
|
|
32
31
|
disabled,
|
|
33
32
|
...rest,
|
|
34
33
|
children: icon
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
height: 100%;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
position: relative;
|
|
9
|
-
background-color: var(--semantic-surface-neutral-
|
|
9
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
10
10
|
border-radius: var(--spacing-radius-sm);
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
padding: var(--spacing-space-3);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
display: none;
|
|
16
16
|
}
|
|
17
17
|
.lib-xplat-imageselector.none-value {
|
|
18
|
-
border: 1px dashed var(--semantic-border-
|
|
18
|
+
border: 1px dashed var(--semantic-border-tertiary);
|
|
19
19
|
}
|
|
20
20
|
.lib-xplat-imageselector:hover {
|
|
21
21
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
}
|
|
49
49
|
.lib-xplat-imageselector > .content .skeleton > .icon-wrapper {
|
|
50
|
-
color: var(--semantic-icon-
|
|
50
|
+
color: var(--semantic-icon-secondary);
|
|
51
51
|
}
|
|
52
52
|
.lib-xplat-imageselector > .content .skeleton > .label {
|
|
53
53
|
margin-top: var(--spacing-space-1);
|
|
54
54
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
55
|
-
color: var(--semantic-text-
|
|
55
|
+
color: var(--semantic-text-tertiary);
|
|
56
56
|
}
|
|
57
57
|
.lib-xplat-imageselector > .content .skeleton:hover > .icon-wrapper {
|
|
58
|
-
color: var(--semantic-icon-
|
|
58
|
+
color: var(--semantic-icon-primary);
|
|
59
59
|
}
|
|
60
60
|
.lib-xplat-imageselector > .content .skeleton:hover > .label {
|
|
61
|
-
color: var(--semantic-text-
|
|
61
|
+
color: var(--semantic-text-secondary);
|
|
62
62
|
}
|
|
63
63
|
.lib-xplat-imageselector > .action-bar {
|
|
64
64
|
position: absolute;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
display: flex;
|
|
69
69
|
gap: 0.5em;
|
|
70
70
|
font-size: var(--semantic-typo-title-2-m-size);
|
|
71
|
-
background-color: var(--semantic-surface-neutral-
|
|
71
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
72
72
|
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
73
73
|
align-items: center;
|
|
74
74
|
opacity: 0;
|
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
.lib-xplat-input-wrap .lib-xplat-input {
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
border: 1px solid var(--semantic-border-
|
|
10
|
+
border: 1px solid var(--semantic-border-primary);
|
|
11
11
|
border-radius: var(--spacing-radius-md);
|
|
12
12
|
overflow: hidden;
|
|
13
|
-
background-color: var(--semantic-surface-neutral-
|
|
13
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
14
14
|
padding-right: var(--spacing-space-2);
|
|
15
15
|
width: 100%;
|
|
16
16
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
17
17
|
}
|
|
18
18
|
.lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
|
|
19
|
-
border-color: var(--semantic-border-
|
|
19
|
+
border-color: var(--semantic-border-tertiary);
|
|
20
20
|
}
|
|
21
21
|
.lib-xplat-input-wrap .lib-xplat-input:focus-within {
|
|
22
22
|
border-color: var(--semantic-interaction-focus-ring);
|
|
23
23
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
24
24
|
}
|
|
25
25
|
.lib-xplat-input-wrap .lib-xplat-input:has(> input:not(:placeholder-shown)):not(:focus-within) {
|
|
26
|
-
border-color: var(--semantic-border-
|
|
26
|
+
border-color: var(--semantic-border-tertiary);
|
|
27
27
|
}
|
|
28
28
|
.lib-xplat-input-wrap .lib-xplat-input.sm {
|
|
29
29
|
height: var(--spacing-control-height-sm);
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
padding-left: var(--spacing-space-4);
|
|
52
52
|
padding-right: var(--spacing-space-2);
|
|
53
53
|
width: 100%;
|
|
54
|
-
color: var(--semantic-text-
|
|
54
|
+
color: var(--semantic-text-secondary);
|
|
55
55
|
font-size: inherit;
|
|
56
56
|
font-family: inherit;
|
|
57
57
|
}
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: center;
|
|
65
65
|
height: 100%;
|
|
66
|
-
color: var(--semantic-icon-
|
|
66
|
+
color: var(--semantic-icon-secondary);
|
|
67
67
|
padding-right: var(--spacing-space-2);
|
|
68
68
|
}
|
|
69
69
|
.lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
user-select: none;
|
|
87
87
|
}
|
|
88
88
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
|
|
89
|
-
color: var(--semantic-icon-
|
|
89
|
+
color: var(--semantic-icon-secondary);
|
|
90
90
|
}
|
|
91
91
|
.lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
|
|
92
92
|
color: var(--semantic-text-success);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
.lib-xplat-modal.modal-box {
|
|
6
6
|
border-radius: var(--spacing-radius-lg);
|
|
7
|
-
background-color: var(--semantic-surface-neutral-
|
|
7
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
8
8
|
padding: var(--spacing-space-6);
|
|
9
9
|
min-width: min-content;
|
|
10
10
|
max-width: calc(100vw - 32px);
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
width: var(--spacing-control-height-sm);
|
|
38
38
|
height: var(--spacing-control-height-sm);
|
|
39
39
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
40
|
-
color: var(--semantic-text-
|
|
40
|
+
color: var(--semantic-text-tertiary);
|
|
41
41
|
user-select: none;
|
|
42
42
|
}
|
|
43
43
|
.lib-xplat-pagination .page-btn {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
background: none;
|
|
53
53
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
54
54
|
cursor: pointer;
|
|
55
|
-
color: var(--semantic-text-
|
|
55
|
+
color: var(--semantic-text-secondary);
|
|
56
56
|
transition: background-color 0.2s, color 0.2s;
|
|
57
57
|
}
|
|
58
58
|
.lib-xplat-pagination .page-btn:hover:not(:disabled):not(.active) {
|
|
59
|
-
background-color: var(--semantic-surface-neutral-
|
|
59
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
60
60
|
}
|
|
61
61
|
.lib-xplat-pagination .page-btn:disabled {
|
|
62
62
|
cursor: not-allowed;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
z-index: 1000;
|
|
12
12
|
cursor: default;
|
|
13
13
|
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
14
|
-
background: var(--semantic-surface-neutral-
|
|
14
|
+
background: var(--semantic-surface-neutral-primary);
|
|
15
15
|
border-radius: var(--spacing-radius-md);
|
|
16
16
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
17
17
|
opacity: 0;
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
46
46
|
}
|
|
47
47
|
.lib-xplat-radio > .circle {
|
|
48
|
-
border: 2px solid var(--semantic-border-
|
|
48
|
+
border: 2px solid var(--semantic-border-tertiary);
|
|
49
49
|
border-radius: 50%;
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-shrink: 0;
|
|
52
52
|
align-items: center;
|
|
53
53
|
justify-content: center;
|
|
54
54
|
cursor: pointer;
|
|
55
|
-
background-color: var(--semantic-surface-neutral-
|
|
55
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
56
56
|
transition: border-color 0.12s ease-out, background-color 0.12s ease-out;
|
|
57
57
|
}
|
|
58
58
|
.lib-xplat-radio > .circle > .inner-circle {
|
|
59
59
|
width: var(--spacing-space-3);
|
|
60
60
|
height: var(--spacing-space-3);
|
|
61
|
-
background-color: var(--semantic-surface-neutral-
|
|
61
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
62
62
|
border-radius: 50%;
|
|
63
63
|
}
|
|
64
64
|
.lib-xplat-radio:hover > .circle:not(.checked) {
|
|
65
|
-
border-color: var(--semantic-icon-
|
|
66
|
-
background-color: var(--semantic-surface-neutral-
|
|
65
|
+
border-color: var(--semantic-icon-primary);
|
|
66
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
67
67
|
}
|
|
68
68
|
.lib-xplat-radio.brand > .circle.checked {
|
|
69
69
|
background-color: var(--semantic-surface-brand-default);
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
align-items: center;
|
|
36
36
|
justify-content: space-between;
|
|
37
37
|
gap: var(--spacing-space-2);
|
|
38
|
-
border: 1px solid var(--semantic-border-
|
|
38
|
+
border: 1px solid var(--semantic-border-primary);
|
|
39
39
|
border-radius: var(--spacing-radius-md);
|
|
40
|
-
background-color: var(--semantic-surface-neutral-
|
|
41
|
-
color: var(--semantic-text-
|
|
40
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
41
|
+
color: var(--semantic-text-primary);
|
|
42
42
|
transition: border-color 0.15s;
|
|
43
43
|
}
|
|
44
44
|
.lib-xplat-select .select-trigger:hover:not(.disabled) {
|
|
45
|
-
border-color: var(--semantic-border-
|
|
45
|
+
border-color: var(--semantic-border-tertiary);
|
|
46
46
|
}
|
|
47
47
|
.lib-xplat-select .select-trigger:active:not(.disabled) {
|
|
48
48
|
border-color: var(--semantic-interaction-focus-ring);
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
cursor: not-allowed;
|
|
56
56
|
pointer-events: none;
|
|
57
57
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
58
|
-
border-color: var(--semantic-border-
|
|
58
|
+
border-color: var(--semantic-border-primary);
|
|
59
59
|
color: var(--semantic-text-disabled);
|
|
60
60
|
}
|
|
61
61
|
.lib-xplat-select .select-trigger.disabled .select-trigger-value.placeholder {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
display: flex;
|
|
87
87
|
align-items: center;
|
|
88
88
|
justify-content: center;
|
|
89
|
-
color: var(--semantic-icon-
|
|
89
|
+
color: var(--semantic-icon-secondary);
|
|
90
90
|
transition: transform 0.2s ease;
|
|
91
91
|
}
|
|
92
92
|
.lib-xplat-select .select-trigger .select-trigger-icon.open {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
z-index: 1000;
|
|
101
101
|
padding: var(--spacing-space-1) 0;
|
|
102
102
|
border-radius: var(--spacing-radius-md);
|
|
103
|
-
background-color: var(--semantic-surface-neutral-
|
|
103
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
104
104
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
105
105
|
cursor: default;
|
|
106
106
|
max-height: 220px;
|
|
@@ -153,10 +153,10 @@
|
|
|
153
153
|
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
154
154
|
}
|
|
155
155
|
.lib-xplat-select-content .select-item:hover:not(.disabled) {
|
|
156
|
-
background-color: var(--semantic-surface-neutral-
|
|
156
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
157
157
|
}
|
|
158
158
|
.lib-xplat-select-content .select-item:focus-visible:not(.disabled) {
|
|
159
|
-
background-color: var(--semantic-surface-neutral-
|
|
159
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
160
160
|
}
|
|
161
161
|
.lib-xplat-select-content .select-item.disabled {
|
|
162
162
|
cursor: not-allowed;
|
|
@@ -43,12 +43,12 @@ var clsx_default = clsx;
|
|
|
43
43
|
// src/components/Skeleton/Skeleton.tsx
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
45
45
|
var SIZE_MAP = {
|
|
46
|
-
xs: "var(--spacing-
|
|
47
|
-
sm: "var(--spacing-
|
|
48
|
-
md: "var(--spacing-
|
|
49
|
-
lg: "var(--spacing-
|
|
50
|
-
xl: "var(--spacing-
|
|
51
|
-
"2xl": "var(--spacing-
|
|
46
|
+
xs: "var(--spacing-space-1)",
|
|
47
|
+
sm: "var(--spacing-space-2)",
|
|
48
|
+
md: "var(--spacing-space-4)",
|
|
49
|
+
lg: "var(--spacing-space-8)",
|
|
50
|
+
xl: "var(--spacing-space-12)",
|
|
51
|
+
"2xl": "var(--spacing-space-16)",
|
|
52
52
|
full: "100%"
|
|
53
53
|
};
|
|
54
54
|
var Skeleton = (props) => {
|
|
@@ -17,12 +17,12 @@ var clsx_default = clsx;
|
|
|
17
17
|
// src/components/Skeleton/Skeleton.tsx
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
19
|
var SIZE_MAP = {
|
|
20
|
-
xs: "var(--spacing-
|
|
21
|
-
sm: "var(--spacing-
|
|
22
|
-
md: "var(--spacing-
|
|
23
|
-
lg: "var(--spacing-
|
|
24
|
-
xl: "var(--spacing-
|
|
25
|
-
"2xl": "var(--spacing-
|
|
20
|
+
xs: "var(--spacing-space-1)",
|
|
21
|
+
sm: "var(--spacing-space-2)",
|
|
22
|
+
md: "var(--spacing-space-4)",
|
|
23
|
+
lg: "var(--spacing-space-8)",
|
|
24
|
+
xl: "var(--spacing-space-12)",
|
|
25
|
+
"2xl": "var(--spacing-space-16)",
|
|
26
26
|
full: "100%"
|
|
27
27
|
};
|
|
28
28
|
var Skeleton = (props) => {
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
.lib-xplat-steps .step-title {
|
|
47
47
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
48
48
|
font-weight: 500;
|
|
49
|
-
color: var(--semantic-text-
|
|
49
|
+
color: var(--semantic-text-primary);
|
|
50
50
|
}
|
|
51
51
|
.lib-xplat-steps .step-description {
|
|
52
52
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
53
|
-
color: var(--semantic-text-
|
|
53
|
+
color: var(--semantic-text-tertiary);
|
|
54
54
|
margin-top: 2px;
|
|
55
55
|
}
|
|
56
56
|
.lib-xplat-steps.brand .step-item.completed .step-circle {
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
.lib-xplat-steps .step-item.pending .step-circle {
|
|
112
112
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
113
|
-
color: var(--semantic-text-
|
|
113
|
+
color: var(--semantic-text-tertiary);
|
|
114
114
|
}
|
|
115
115
|
.lib-xplat-steps .step-item.pending .step-title {
|
|
116
116
|
color: var(--semantic-text-disabled);
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
top: 0;
|
|
48
48
|
left: 0;
|
|
49
49
|
height: 100%;
|
|
50
|
-
background-color: var(--semantic-text-
|
|
50
|
+
background-color: var(--semantic-text-tertiary);
|
|
51
51
|
border-radius: 1px;
|
|
52
52
|
transition-property: width;
|
|
53
53
|
transition-timing-function: ease;
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
border: none;
|
|
66
66
|
padding: 0;
|
|
67
67
|
cursor: pointer;
|
|
68
|
-
background-color: var(--semantic-border-
|
|
68
|
+
background-color: var(--semantic-border-primary);
|
|
69
69
|
transition: background-color 0.2s;
|
|
70
70
|
}
|
|
71
71
|
.lib-xplat-swiper__dot.active {
|
|
72
|
-
background-color: var(--semantic-text-
|
|
72
|
+
background-color: var(--semantic-text-secondary);
|
|
73
73
|
}
|
|
74
74
|
.lib-xplat-swiper__dot:hover:not(.active) {
|
|
75
75
|
background-color: var(--semantic-text-disabled);
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
transition: background-color 0.2s, border-color 0.2s;
|
|
8
8
|
border: 1px solid transparent;
|
|
9
|
-
background-color: var(--semantic-border-
|
|
10
|
-
border-color: var(--semantic-border-
|
|
9
|
+
background-color: var(--semantic-border-primary);
|
|
10
|
+
border-color: var(--semantic-border-primary);
|
|
11
11
|
}
|
|
12
12
|
.lib-xplat-switch.sm {
|
|
13
13
|
width: 34px;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
top: 50%;
|
|
97
97
|
left: 2px;
|
|
98
98
|
transform: translateY(-50%);
|
|
99
|
-
background-color: var(--semantic-surface-neutral-
|
|
99
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
100
100
|
border-radius: var(--spacing-radius-full);
|
|
101
101
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
102
102
|
transition: left 0.25s;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-tab.type-default {
|
|
28
28
|
width: 100%;
|
|
29
|
-
background-color: var(--semantic-surface-neutral-
|
|
29
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
30
30
|
border-radius: var(--spacing-radius-md);
|
|
31
31
|
}
|
|
32
32
|
.lib-xplat-tab.type-default > .tab-item {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
justify-content: center;
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
white-space: nowrap;
|
|
41
|
-
border-right: 1px solid var(--semantic-border-
|
|
41
|
+
border-right: 1px solid var(--semantic-border-tertiary);
|
|
42
42
|
color: var(--semantic-text-inverse);
|
|
43
43
|
}
|
|
44
44
|
.lib-xplat-tab.type-default > .tab-item:last-child {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
.lib-xplat-tab.type-toggle {
|
|
51
51
|
width: 100%;
|
|
52
|
-
border-bottom: 1px solid var(--semantic-border-
|
|
52
|
+
border-bottom: 1px solid var(--semantic-border-primary);
|
|
53
53
|
gap: var(--spacing-space-6);
|
|
54
54
|
}
|
|
55
55
|
.lib-xplat-tab.type-toggle > .tab-item {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
border: none;
|
|
68
68
|
cursor: pointer;
|
|
69
69
|
transition: color 0.2s;
|
|
70
|
-
color: var(--semantic-text-
|
|
70
|
+
color: var(--semantic-text-tertiary);
|
|
71
71
|
}
|
|
72
72
|
.lib-xplat-tab.type-toggle > .tab-item.active {
|
|
73
73
|
color: var(--semantic-surface-brand-default);
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.table-bottom-border,
|
|
48
48
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.table-bottom-border {
|
|
49
|
-
border-bottom: 1px solid var(--semantic-border-
|
|
49
|
+
border-bottom: 1px solid var(--semantic-border-primary);
|
|
50
50
|
}
|
|
51
51
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.primary,
|
|
52
52
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.primary {
|
|
@@ -74,26 +74,26 @@
|
|
|
74
74
|
}
|
|
75
75
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary,
|
|
76
76
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary {
|
|
77
|
-
background-color: var(--semantic-surface-neutral-
|
|
77
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
78
78
|
}
|
|
79
79
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > td,
|
|
80
80
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > th,
|
|
81
81
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > td,
|
|
82
82
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > th {
|
|
83
|
-
background-color: var(--semantic-surface-neutral-
|
|
84
|
-
color: var(--semantic-text-
|
|
83
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
84
|
+
color: var(--semantic-text-primary);
|
|
85
85
|
}
|
|
86
86
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > td.cell-hover:hover,
|
|
87
87
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary > th.cell-hover:hover,
|
|
88
88
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > td.cell-hover:hover,
|
|
89
89
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary > th.cell-hover:hover {
|
|
90
|
-
background-color: var(--semantic-surface-neutral-
|
|
90
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
91
91
|
}
|
|
92
92
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary.hover:hover > td,
|
|
93
93
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.secondary.hover:hover > th,
|
|
94
94
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > td,
|
|
95
95
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.secondary.hover:hover > th {
|
|
96
|
-
background-color: var(--semantic-surface-neutral-
|
|
96
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
97
97
|
}
|
|
98
98
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.success,
|
|
99
99
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.success {
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > th,
|
|
152
152
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > td,
|
|
153
153
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning > th {
|
|
154
|
-
color: var(--semantic-text-
|
|
154
|
+
color: var(--semantic-text-primary);
|
|
155
155
|
background-color: var(--semantic-surface-warning-default);
|
|
156
156
|
}
|
|
157
157
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning > td.cell-hover:hover,
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.warning.hover:hover > th,
|
|
165
165
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning.hover:hover > td,
|
|
166
166
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.warning.hover:hover > th {
|
|
167
|
-
color: var(--semantic-text-
|
|
167
|
+
color: var(--semantic-text-primary);
|
|
168
168
|
background-color: var(--semantic-surface-warning-strong);
|
|
169
169
|
}
|
|
170
170
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.info,
|
|
@@ -210,14 +210,14 @@
|
|
|
210
210
|
}
|
|
211
211
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.categorical.cat-neutral,
|
|
212
212
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.categorical.cat-neutral {
|
|
213
|
-
background-color: var(--semantic-surface-neutral-
|
|
213
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
214
214
|
}
|
|
215
215
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.categorical.cat-neutral > td,
|
|
216
216
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.categorical.cat-neutral > th,
|
|
217
217
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.categorical.cat-neutral > td,
|
|
218
218
|
.lib-xplat-table-wrapper > .lib-xplat-table > tbody > tr.categorical.cat-neutral > th {
|
|
219
219
|
color: var(--semantic-text-inverse);
|
|
220
|
-
background-color: var(--semantic-surface-neutral-
|
|
220
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
221
221
|
}
|
|
222
222
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.categorical.cat-neutral.hover:hover > td,
|
|
223
223
|
.lib-xplat-table-wrapper > .lib-xplat-table > thead > tr.categorical.cat-neutral.hover:hover > th,
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
23
23
|
}
|
|
24
24
|
.lib-xplat-tag.neutral {
|
|
25
|
-
color: var(--semantic-text-
|
|
26
|
-
border-color: var(--semantic-border-
|
|
27
|
-
background-color: var(--semantic-surface-neutral-
|
|
25
|
+
color: var(--semantic-text-tertiary);
|
|
26
|
+
border-color: var(--semantic-border-primary);
|
|
27
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
28
28
|
}
|
|
29
29
|
.lib-xplat-tag.categorical.cat-1 {
|
|
30
30
|
color: var(--semantic-categorical-1-text);
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
}
|
|
7
7
|
.lib-xplat-textarea-wrap .lib-xplat-textarea {
|
|
8
8
|
width: 100%;
|
|
9
|
-
border: 1px solid var(--semantic-border-
|
|
9
|
+
border: 1px solid var(--semantic-border-primary);
|
|
10
10
|
border-radius: var(--spacing-radius-md);
|
|
11
|
-
background-color: var(--semantic-surface-neutral-
|
|
12
|
-
color: var(--semantic-text-
|
|
11
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
12
|
+
color: var(--semantic-text-secondary);
|
|
13
13
|
font-family: inherit;
|
|
14
14
|
outline: none;
|
|
15
15
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
line-height: var(--semantic-typo-label-1-m-lh);
|
|
31
31
|
}
|
|
32
32
|
.lib-xplat-textarea-wrap .lib-xplat-textarea:hover:not(.disabled):not(:focus) {
|
|
33
|
-
border-color: var(--semantic-border-
|
|
33
|
+
border-color: var(--semantic-border-tertiary);
|
|
34
34
|
}
|
|
35
35
|
.lib-xplat-textarea-wrap .lib-xplat-textarea:focus {
|
|
36
36
|
border-color: var(--semantic-interaction-focus-ring);
|
|
37
37
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
38
38
|
}
|
|
39
39
|
.lib-xplat-textarea-wrap .lib-xplat-textarea:not(:placeholder-shown):not(:focus) {
|
|
40
|
-
border-color: var(--semantic-border-
|
|
40
|
+
border-color: var(--semantic-border-tertiary);
|
|
41
41
|
}
|
|
42
42
|
.lib-xplat-textarea-wrap .lib-xplat-textarea.disabled {
|
|
43
43
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
font-weight: 400;
|
|
22
22
|
}
|
|
23
23
|
.lib-xplat-tooltip.dark {
|
|
24
|
-
background-color: var(--semantic-surface-neutral-
|
|
24
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
25
25
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-tooltip.dark .tooltip-title,
|
|
28
28
|
.lib-xplat-tooltip.dark .tooltip-desc {
|
|
29
|
-
color: var(--semantic-text-
|
|
29
|
+
color: var(--semantic-text-secondary);
|
|
30
30
|
}
|
|
31
31
|
.lib-xplat-tooltip.light {
|
|
32
|
-
background-color: var(--semantic-surface-neutral-
|
|
32
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
33
33
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
34
34
|
}
|
|
35
35
|
.lib-xplat-tooltip.light .tooltip-title,
|
|
36
36
|
.lib-xplat-tooltip.light .tooltip-desc {
|
|
37
|
-
color: var(--semantic-text-
|
|
37
|
+
color: var(--semantic-text-secondary);
|
|
38
38
|
}
|
|
39
39
|
@keyframes tooltip-show {
|
|
40
40
|
from {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
height: 100%;
|
|
6
6
|
border-radius: var(--spacing-radius-sm);
|
|
7
7
|
overflow: hidden;
|
|
8
|
-
background-color: var(--semantic-surface-neutral-
|
|
8
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
9
9
|
}
|
|
10
10
|
.lib-xplat-video > video {
|
|
11
11
|
display: block;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
color: inherit;
|
|
143
143
|
text-align: left;
|
|
144
144
|
cursor: pointer;
|
|
145
|
-
border-radius: var(--spacing-radius-
|
|
145
|
+
border-radius: var(--spacing-radius-sm);
|
|
146
146
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
147
147
|
font-variant-numeric: tabular-nums;
|
|
148
148
|
}
|