@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
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
.lib-xplat-accordion {
|
|
3
3
|
contain: content;
|
|
4
4
|
width: 100%;
|
|
5
|
-
border: 1px solid var(--semantic-border-
|
|
5
|
+
border: 1px solid var(--semantic-border-primary);
|
|
6
6
|
border-radius: var(--spacing-radius-md);
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
}
|
|
9
9
|
.lib-xplat-accordion .accordion-item {
|
|
10
|
-
border-bottom: 1px solid var(--semantic-border-
|
|
10
|
+
border-bottom: 1px solid var(--semantic-border-primary);
|
|
11
11
|
}
|
|
12
12
|
.lib-xplat-accordion .accordion-item:last-child {
|
|
13
13
|
border-bottom: none;
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
25
25
|
font-weight: 500;
|
|
26
|
-
color: var(--semantic-text-
|
|
26
|
+
color: var(--semantic-text-primary);
|
|
27
27
|
text-align: left;
|
|
28
28
|
transition: background-color 0.2s;
|
|
29
29
|
}
|
|
30
30
|
.lib-xplat-accordion .accordion-header:hover {
|
|
31
|
-
background-color: var(--semantic-surface-neutral-
|
|
31
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
32
32
|
}
|
|
33
33
|
.lib-xplat-accordion .accordion-header .chevron {
|
|
34
34
|
width: var(--spacing-space-5);
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
align-items: center;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
transition: transform 0.25s ease;
|
|
41
|
-
color: var(--semantic-text-
|
|
41
|
+
color: var(--semantic-text-tertiary);
|
|
42
42
|
}
|
|
43
43
|
.lib-xplat-accordion .accordion-body {
|
|
44
44
|
overflow: hidden;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
.lib-xplat-accordion .accordion-content {
|
|
49
49
|
padding: 0 var(--spacing-space-4) 14px;
|
|
50
50
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
51
|
-
color: var(--semantic-text-
|
|
51
|
+
color: var(--semantic-text-secondary);
|
|
52
52
|
line-height: 1.6;
|
|
53
53
|
}
|
|
54
54
|
.lib-xplat-accordion .accordion-item.open .chevron {
|
|
@@ -7,23 +7,23 @@
|
|
|
7
7
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
|
|
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
|
min-height: var(--spacing-control-height-md);
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
background-color: var(--semantic-surface-neutral-
|
|
14
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
15
15
|
width: 100%;
|
|
16
16
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
17
17
|
}
|
|
18
18
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea: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-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea: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-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea: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-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
|
|
29
29
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
flex: 1;
|
|
36
36
|
padding: var(--spacing-space-2) var(--spacing-space-4);
|
|
37
37
|
width: 100%;
|
|
38
|
-
color: var(--semantic-text-
|
|
38
|
+
color: var(--semantic-text-secondary);
|
|
39
39
|
resize: none;
|
|
40
40
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
41
41
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
align-items: center;
|
|
36
36
|
justify-content: center;
|
|
37
37
|
font-weight: 600;
|
|
38
|
-
background-color: var(--semantic-surface-neutral-
|
|
39
|
-
color: var(--semantic-text-
|
|
38
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
39
|
+
color: var(--semantic-text-tertiary);
|
|
40
40
|
}
|
|
41
41
|
.lib-xplat-avatar .fallback.cat-1 {
|
|
42
42
|
background-color: var(--semantic-categorical-1-bg);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
.lib-xplat-badge .badge-indicator.warning {
|
|
56
56
|
background-color: var(--semantic-surface-warning-default);
|
|
57
|
-
color: var(--semantic-text-
|
|
57
|
+
color: var(--semantic-text-primary);
|
|
58
58
|
}
|
|
59
59
|
.lib-xplat-badge .badge-indicator.info {
|
|
60
60
|
background-color: var(--semantic-surface-info-default);
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
flex: 1;
|
|
9
9
|
min-width: 0;
|
|
10
10
|
border-radius: var(--spacing-radius-xl);
|
|
11
|
-
background-color: var(--semantic-surface-neutral-
|
|
11
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-box.outlined {
|
|
15
|
-
border: 1px solid var(--semantic-border-
|
|
15
|
+
border: 1px solid var(--semantic-border-primary);
|
|
16
16
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
17
17
|
}
|
|
18
18
|
.lib-xplat-box.elevated {
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
}
|
|
22
22
|
.lib-xplat-box.flat {
|
|
23
23
|
border: none;
|
|
24
|
-
background-color: var(--semantic-surface-neutral-
|
|
24
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
25
25
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-box > .box-title {
|
|
28
28
|
font-weight: 600;
|
|
29
29
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
30
|
-
color: var(--semantic-text-
|
|
30
|
+
color: var(--semantic-text-primary);
|
|
31
31
|
padding: var(--spacing-space-3) var(--spacing-space-4);
|
|
32
|
-
border-bottom: 1px solid var(--semantic-border-
|
|
32
|
+
border-bottom: 1px solid var(--semantic-border-secondary);
|
|
33
33
|
min-width: 0;
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
text-overflow: ellipsis;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
19
19
|
}
|
|
20
20
|
.lib-xplat-breadcrumb .link {
|
|
21
|
-
color: var(--semantic-text-
|
|
21
|
+
color: var(--semantic-text-tertiary);
|
|
22
22
|
text-decoration: none;
|
|
23
23
|
background: none;
|
|
24
24
|
border: none;
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
transition: color 0.2s;
|
|
29
29
|
}
|
|
30
30
|
.lib-xplat-breadcrumb .link:hover {
|
|
31
|
-
color: var(--semantic-text-
|
|
31
|
+
color: var(--semantic-text-primary);
|
|
32
32
|
}
|
|
33
33
|
.lib-xplat-breadcrumb .current {
|
|
34
|
-
color: var(--semantic-text-
|
|
34
|
+
color: var(--semantic-text-primary);
|
|
35
35
|
font-weight: 500;
|
|
36
36
|
}
|
|
37
37
|
.lib-xplat-breadcrumb .separator {
|
|
38
|
-
color: var(--semantic-icon-
|
|
38
|
+
color: var(--semantic-icon-secondary);
|
|
39
39
|
user-select: none;
|
|
40
40
|
}
|
|
@@ -45,7 +45,6 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
45
45
|
var Button = (props) => {
|
|
46
46
|
const {
|
|
47
47
|
children,
|
|
48
|
-
className,
|
|
49
48
|
type = "primary",
|
|
50
49
|
size = "md",
|
|
51
50
|
disabled,
|
|
@@ -54,7 +53,7 @@ var Button = (props) => {
|
|
|
54
53
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
54
|
"button",
|
|
56
55
|
{
|
|
57
|
-
className: clsx_default("lib-xplat-button", type, size
|
|
56
|
+
className: clsx_default("lib-xplat-button", type, size),
|
|
58
57
|
disabled,
|
|
59
58
|
...rest,
|
|
60
59
|
children
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
}
|
|
53
53
|
.lib-xplat-button.secondary {
|
|
54
54
|
color: var(--semantic-surface-brand-default);
|
|
55
|
-
background-color: var(--semantic-surface-neutral-
|
|
56
|
-
border-color: var(--semantic-border-
|
|
55
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
56
|
+
border-color: var(--semantic-border-primary);
|
|
57
57
|
}
|
|
58
58
|
.lib-xplat-button.secondary:hover:not(:disabled) {
|
|
59
|
-
background-color: var(--semantic-surface-neutral-
|
|
59
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
60
60
|
}
|
|
61
61
|
.lib-xplat-button.secondary:active:not(:disabled) {
|
|
62
|
-
background-color: var(--semantic-surface-neutral-
|
|
62
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
63
63
|
}
|
|
64
64
|
.lib-xplat-button.secondary:focus-visible {
|
|
65
65
|
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
outline-offset: 2px;
|
|
81
81
|
}
|
|
82
82
|
.lib-xplat-button.ghost {
|
|
83
|
-
color: var(--semantic-text-
|
|
83
|
+
color: var(--semantic-text-secondary);
|
|
84
84
|
background-color: transparent;
|
|
85
85
|
border-color: transparent;
|
|
86
86
|
}
|
|
87
87
|
.lib-xplat-button.ghost:hover:not(:disabled) {
|
|
88
|
-
background-color: var(--semantic-surface-neutral-
|
|
88
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
89
89
|
}
|
|
90
90
|
.lib-xplat-button.ghost:active:not(:disabled) {
|
|
91
91
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.cjs';
|
|
|
4
4
|
|
|
5
5
|
type ButtonType = "primary" | "secondary" | "danger" | "ghost";
|
|
6
6
|
type ButtonSize = "sm" | "md" | "lg";
|
|
7
|
-
interface ButtonProps extends Omit<ButtonAttributes, "
|
|
7
|
+
interface ButtonProps extends Omit<ButtonAttributes, "className"> {
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
type?: ButtonType;
|
|
10
10
|
size?: ButtonSize;
|
|
@@ -4,7 +4,7 @@ import { B as ButtonAttributes } from '../../attributes-DJIWir_0.js';
|
|
|
4
4
|
|
|
5
5
|
type ButtonType = "primary" | "secondary" | "danger" | "ghost";
|
|
6
6
|
type ButtonSize = "sm" | "md" | "lg";
|
|
7
|
-
interface ButtonProps extends Omit<ButtonAttributes, "
|
|
7
|
+
interface ButtonProps extends Omit<ButtonAttributes, "className"> {
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
type?: ButtonType;
|
|
10
10
|
size?: ButtonSize;
|
|
@@ -19,7 +19,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
19
19
|
var Button = (props) => {
|
|
20
20
|
const {
|
|
21
21
|
children,
|
|
22
|
-
className,
|
|
23
22
|
type = "primary",
|
|
24
23
|
size = "md",
|
|
25
24
|
disabled,
|
|
@@ -28,7 +27,7 @@ var Button = (props) => {
|
|
|
28
27
|
return /* @__PURE__ */ jsx(
|
|
29
28
|
"button",
|
|
30
29
|
{
|
|
31
|
-
className: clsx_default("lib-xplat-button", type, size
|
|
30
|
+
className: clsx_default("lib-xplat-button", type, size),
|
|
32
31
|
disabled,
|
|
33
32
|
...rest,
|
|
34
33
|
children
|
|
@@ -1114,7 +1114,7 @@ var DayCell = import_react2.default.memo(
|
|
|
1114
1114
|
"span",
|
|
1115
1115
|
{
|
|
1116
1116
|
className: "calendar-event-dot",
|
|
1117
|
-
style: { backgroundColor: event.color ?? "var(--
|
|
1117
|
+
style: { backgroundColor: event.color ?? "var(--semantic-surface-brand-default)" },
|
|
1118
1118
|
title: event.label,
|
|
1119
1119
|
onClick: (e) => {
|
|
1120
1120
|
e.stopPropagation();
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
.lib-xplat-calendar .calendar-title {
|
|
17
17
|
font-size: clamp(14px, 3cqi, 20px);
|
|
18
18
|
font-weight: 600;
|
|
19
|
-
color: var(--semantic-text-
|
|
19
|
+
color: var(--semantic-text-primary);
|
|
20
20
|
min-width: 120px;
|
|
21
21
|
text-align: center;
|
|
22
22
|
background: none;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
border-radius: var(--spacing-radius-md);
|
|
40
40
|
background: none;
|
|
41
41
|
cursor: pointer;
|
|
42
|
-
color: var(--semantic-text-
|
|
42
|
+
color: var(--semantic-text-secondary);
|
|
43
43
|
transition: background-color 0.15s;
|
|
44
44
|
}
|
|
45
45
|
.lib-xplat-calendar .calendar-nav:hover {
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
.lib-xplat-calendar .calendar-today-btn {
|
|
52
52
|
margin-left: auto;
|
|
53
53
|
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
54
|
-
border: 1px solid var(--semantic-border-
|
|
54
|
+
border: 1px solid var(--semantic-border-primary);
|
|
55
55
|
border-radius: var(--spacing-radius-md);
|
|
56
56
|
background: none;
|
|
57
57
|
font-size: clamp(12px, 2cqi, 14px);
|
|
58
|
-
color: var(--semantic-text-
|
|
58
|
+
color: var(--semantic-text-secondary);
|
|
59
59
|
cursor: pointer;
|
|
60
60
|
transition: background-color 0.15s;
|
|
61
61
|
}
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
font-size: clamp(11px, 2cqi, 14px);
|
|
73
73
|
font-weight: 500;
|
|
74
74
|
padding: var(--spacing-space-2) 0;
|
|
75
|
-
color: var(--semantic-text-
|
|
75
|
+
color: var(--semantic-text-tertiary);
|
|
76
76
|
}
|
|
77
77
|
.lib-xplat-calendar .calendar-weekday.sunday {
|
|
78
|
-
color: var(--semantic-text-
|
|
78
|
+
color: var(--semantic-text-accent-red);
|
|
79
79
|
}
|
|
80
80
|
.lib-xplat-calendar .calendar-weekday.saturday {
|
|
81
|
-
color: var(--semantic-text-
|
|
81
|
+
color: var(--semantic-text-accent-blue);
|
|
82
82
|
}
|
|
83
83
|
.lib-xplat-calendar .calendar-grid {
|
|
84
84
|
display: grid;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
transition: background-color 0.15s;
|
|
96
96
|
}
|
|
97
97
|
.lib-xplat-calendar .calendar-day:hover:not(.disabled):not(.outside):not(.selected) {
|
|
98
|
-
background-color: var(--semantic-surface-neutral-
|
|
98
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
99
99
|
}
|
|
100
100
|
.lib-xplat-calendar .calendar-day.outside {
|
|
101
101
|
cursor: default;
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
color: var(--semantic-text-disabled);
|
|
105
105
|
}
|
|
106
106
|
.lib-xplat-calendar .calendar-day.outside.sunday .calendar-day-number {
|
|
107
|
-
color: color-mix(in srgb, var(--semantic-text-
|
|
107
|
+
color: color-mix(in srgb, var(--semantic-text-accent-red) 35%, transparent);
|
|
108
108
|
}
|
|
109
109
|
.lib-xplat-calendar .calendar-day.outside.saturday .calendar-day-number {
|
|
110
|
-
color: color-mix(in srgb, var(--semantic-text-
|
|
110
|
+
color: color-mix(in srgb, var(--semantic-text-accent-blue) 35%, transparent);
|
|
111
111
|
}
|
|
112
112
|
.lib-xplat-calendar .calendar-day.disabled {
|
|
113
113
|
cursor: not-allowed;
|
|
@@ -120,24 +120,24 @@
|
|
|
120
120
|
color: var(--semantic-surface-brand-default);
|
|
121
121
|
}
|
|
122
122
|
.lib-xplat-calendar .calendar-day.selected {
|
|
123
|
-
box-shadow: inset 0 0 0 1.5px var(--calendar-selected-color, var(--semantic-text-
|
|
123
|
+
box-shadow: inset 0 0 0 1.5px var(--calendar-selected-color, var(--semantic-text-tertiary));
|
|
124
124
|
}
|
|
125
125
|
.lib-xplat-calendar .calendar-day.selected .calendar-day-number {
|
|
126
126
|
font-weight: 700;
|
|
127
127
|
}
|
|
128
128
|
.lib-xplat-calendar .calendar-day.selected:hover {
|
|
129
|
-
background-color: color-mix(in srgb, var(--calendar-selected-color, var(--semantic-text-
|
|
129
|
+
background-color: color-mix(in srgb, var(--calendar-selected-color, var(--semantic-text-tertiary)) 10%, transparent);
|
|
130
130
|
}
|
|
131
131
|
.lib-xplat-calendar .calendar-day.sunday:not(.outside) .calendar-day-number {
|
|
132
|
-
color: var(--semantic-text-
|
|
132
|
+
color: var(--semantic-text-accent-red);
|
|
133
133
|
}
|
|
134
134
|
.lib-xplat-calendar .calendar-day.saturday:not(.outside) .calendar-day-number {
|
|
135
|
-
color: var(--semantic-text-
|
|
135
|
+
color: var(--semantic-text-accent-blue);
|
|
136
136
|
}
|
|
137
137
|
.lib-xplat-calendar .calendar-day-number {
|
|
138
138
|
font-size: clamp(12px, 2.5cqi, 16px);
|
|
139
139
|
line-height: 1;
|
|
140
|
-
color: var(--semantic-text-
|
|
140
|
+
color: var(--semantic-text-primary);
|
|
141
141
|
}
|
|
142
142
|
.lib-xplat-calendar .calendar-day-events {
|
|
143
143
|
display: flex;
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
}
|
|
155
155
|
.lib-xplat-calendar .calendar-event-more {
|
|
156
156
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
157
|
-
color: var(--semantic-text-
|
|
157
|
+
color: var(--semantic-text-tertiary);
|
|
158
158
|
line-height: 1;
|
|
159
159
|
}
|
|
160
160
|
.lib-xplat-calendar .calendar-picker-grid {
|
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
border-radius: var(--spacing-radius-md);
|
|
173
173
|
background: none;
|
|
174
174
|
font-size: clamp(12px, 2.5cqi, 15px);
|
|
175
|
-
color: var(--semantic-text-
|
|
175
|
+
color: var(--semantic-text-secondary);
|
|
176
176
|
cursor: pointer;
|
|
177
177
|
transition: background-color 0.15s;
|
|
178
178
|
}
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
181
181
|
}
|
|
182
182
|
.lib-xplat-calendar .calendar-picker-cell.active {
|
|
183
|
-
background-color: var(--semantic-surface-neutral-
|
|
183
|
+
background-color: var(--semantic-surface-neutral-tertiary);
|
|
184
184
|
color: var(--semantic-text-inverse);
|
|
185
185
|
font-weight: 600;
|
|
186
186
|
}
|
|
@@ -1075,7 +1075,7 @@ var DayCell = React2.memo(
|
|
|
1075
1075
|
"span",
|
|
1076
1076
|
{
|
|
1077
1077
|
className: "calendar-event-dot",
|
|
1078
|
-
style: { backgroundColor: event.color ?? "var(--
|
|
1078
|
+
style: { backgroundColor: event.color ?? "var(--semantic-surface-brand-default)" },
|
|
1079
1079
|
title: event.label,
|
|
1080
1080
|
onClick: (e) => {
|
|
1081
1081
|
e.stopPropagation();
|
|
@@ -12,30 +12,30 @@
|
|
|
12
12
|
.lib-xplat-card-tab .card-tab-trigger {
|
|
13
13
|
position: relative;
|
|
14
14
|
cursor: pointer;
|
|
15
|
-
border: 1px solid var(--semantic-border-
|
|
15
|
+
border: 1px solid var(--semantic-border-primary);
|
|
16
16
|
border-bottom: none;
|
|
17
17
|
border-radius: var(--spacing-radius-md) var(--spacing-radius-md) 0 0;
|
|
18
18
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
19
|
-
color: var(--semantic-text-
|
|
19
|
+
color: var(--semantic-text-tertiary);
|
|
20
20
|
font-weight: 500;
|
|
21
21
|
transition: background-color 0.2s, color 0.2s;
|
|
22
22
|
}
|
|
23
23
|
.lib-xplat-card-tab .card-tab-trigger:hover:not(.active) {
|
|
24
|
-
background-color: var(--semantic-surface-neutral-
|
|
25
|
-
color: var(--semantic-text-
|
|
24
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
25
|
+
color: var(--semantic-text-secondary);
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-card-tab .card-tab-trigger.active {
|
|
28
|
-
background-color: var(--semantic-surface-neutral-
|
|
29
|
-
color: var(--semantic-text-
|
|
28
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
29
|
+
color: var(--semantic-text-primary);
|
|
30
30
|
font-weight: 600;
|
|
31
31
|
z-index: 1;
|
|
32
32
|
margin-bottom: -1px;
|
|
33
33
|
padding-bottom: calc(var(--tab-py) + 1px);
|
|
34
34
|
}
|
|
35
35
|
.lib-xplat-card-tab .card-tab-body {
|
|
36
|
-
border: 1px solid var(--semantic-border-
|
|
36
|
+
border: 1px solid var(--semantic-border-primary);
|
|
37
37
|
border-radius: 0 var(--spacing-radius-md) var(--spacing-radius-md) var(--spacing-radius-md);
|
|
38
|
-
background-color: var(--semantic-surface-neutral-
|
|
38
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
39
39
|
padding: var(--spacing-space-5);
|
|
40
40
|
}
|
|
41
41
|
.lib-xplat-card-tab .card-tab-panel {
|
|
@@ -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 {
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
contain: layout style paint;
|
|
64
64
|
}
|
|
65
65
|
.lib-xplat-chart .chart-grid {
|
|
66
|
-
stroke: var(--semantic-border-
|
|
66
|
+
stroke: var(--semantic-border-secondary);
|
|
67
67
|
stroke-width: 1;
|
|
68
68
|
}
|
|
69
69
|
.lib-xplat-chart .chart-axis-label {
|
|
70
70
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
71
|
-
fill: var(--semantic-text-
|
|
71
|
+
fill: var(--semantic-text-tertiary);
|
|
72
72
|
}
|
|
73
73
|
.lib-xplat-chart .chart-pie-label {
|
|
74
74
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
}
|
|
106
106
|
.lib-xplat-chart .chart-slice {
|
|
107
107
|
cursor: pointer;
|
|
108
|
-
stroke: var(--semantic-surface-neutral-
|
|
108
|
+
stroke: var(--semantic-surface-neutral-primary);
|
|
109
109
|
stroke-width: 2;
|
|
110
110
|
transition:
|
|
111
111
|
opacity 0.15s ease-out,
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
opacity: 1;
|
|
126
126
|
}
|
|
127
127
|
.lib-xplat-chart .chart-crosshair {
|
|
128
|
-
stroke: var(--semantic-border-
|
|
128
|
+
stroke: var(--semantic-border-tertiary);
|
|
129
129
|
stroke-width: 1;
|
|
130
130
|
stroke-dasharray: 4 3;
|
|
131
131
|
pointer-events: none;
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
.lib-xplat-chart .chart-crosshair-label {
|
|
138
138
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
139
139
|
font-weight: 500;
|
|
140
|
-
color: var(--semantic-text-
|
|
140
|
+
color: var(--semantic-text-primary);
|
|
141
141
|
text-align: center;
|
|
142
142
|
white-space: nowrap;
|
|
143
143
|
overflow: visible;
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
}
|
|
183
183
|
.lib-xplat-chart .chart-legend-label {
|
|
184
184
|
font-size: var(--semantic-typo-caption-2-r-size);
|
|
185
|
-
color: var(--semantic-text-
|
|
185
|
+
color: var(--semantic-text-tertiary);
|
|
186
186
|
}
|
|
187
187
|
.lib-xplat-chart .chart-legend-value {
|
|
188
188
|
font-size: var(--semantic-typo-caption-1-r-size);
|
|
189
189
|
font-weight: 600;
|
|
190
|
-
color: var(--semantic-text-
|
|
190
|
+
color: var(--semantic-text-primary);
|
|
191
191
|
}
|
|
192
192
|
@keyframes chart-bar-grow {
|
|
193
193
|
from {
|
|
@@ -58,7 +58,6 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
58
58
|
var IconButton = (props) => {
|
|
59
59
|
const {
|
|
60
60
|
icon,
|
|
61
|
-
className,
|
|
62
61
|
type = "primary",
|
|
63
62
|
size = "md",
|
|
64
63
|
disabled,
|
|
@@ -67,7 +66,7 @@ var IconButton = (props) => {
|
|
|
67
66
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
67
|
"button",
|
|
69
68
|
{
|
|
70
|
-
className: clsx_default("lib-xplat-icon-button", type, size
|
|
69
|
+
className: clsx_default("lib-xplat-icon-button", type, size),
|
|
71
70
|
disabled,
|
|
72
71
|
...rest,
|
|
73
72
|
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);
|
|
@@ -85,23 +85,23 @@
|
|
|
85
85
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
|
|
86
86
|
display: flex;
|
|
87
87
|
align-items: center;
|
|
88
|
-
border: 1px solid var(--semantic-border-
|
|
88
|
+
border: 1px solid var(--semantic-border-primary);
|
|
89
89
|
border-radius: var(--spacing-radius-md);
|
|
90
90
|
min-height: var(--spacing-control-height-md);
|
|
91
91
|
overflow: hidden;
|
|
92
|
-
background-color: var(--semantic-surface-neutral-
|
|
92
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
93
93
|
width: 100%;
|
|
94
94
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
95
95
|
}
|
|
96
96
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
|
|
97
|
-
border-color: var(--semantic-border-
|
|
97
|
+
border-color: var(--semantic-border-tertiary);
|
|
98
98
|
}
|
|
99
99
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
|
|
100
100
|
border-color: var(--semantic-interaction-focus-ring);
|
|
101
101
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
102
102
|
}
|
|
103
103
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
|
|
104
|
-
border-color: var(--semantic-border-
|
|
104
|
+
border-color: var(--semantic-border-tertiary);
|
|
105
105
|
}
|
|
106
106
|
.lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
|
|
107
107
|
background-color: var(--semantic-surface-neutral-disabled);
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
flex: 1;
|
|
114
114
|
padding: var(--spacing-space-2) var(--spacing-space-4);
|
|
115
115
|
width: 100%;
|
|
116
|
-
color: var(--semantic-text-
|
|
116
|
+
color: var(--semantic-text-secondary);
|
|
117
117
|
resize: none;
|
|
118
118
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
119
119
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
@@ -130,21 +130,21 @@
|
|
|
130
130
|
width: 100%;
|
|
131
131
|
gap: var(--spacing-space-2);
|
|
132
132
|
padding: var(--spacing-space-3);
|
|
133
|
-
border: 1px solid var(--semantic-border-
|
|
133
|
+
border: 1px solid var(--semantic-border-primary);
|
|
134
134
|
border-radius: var(--spacing-radius-lg);
|
|
135
|
-
background-color: var(--semantic-surface-neutral-
|
|
135
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
136
136
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
137
137
|
}
|
|
138
138
|
.lib-xplat-chat-input:hover:not(.disabled):not(:focus-within) {
|
|
139
|
-
border-color: var(--semantic-border-
|
|
139
|
+
border-color: var(--semantic-border-tertiary);
|
|
140
140
|
}
|
|
141
141
|
.lib-xplat-chat-input:focus-within {
|
|
142
142
|
border-color: var(--semantic-interaction-focus-ring);
|
|
143
143
|
box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
|
|
144
144
|
}
|
|
145
145
|
.lib-xplat-chat-input.disabled {
|
|
146
|
-
background-color: var(--semantic-surface-neutral-
|
|
147
|
-
border-color: var(--semantic-border-
|
|
146
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
147
|
+
border-color: var(--semantic-border-primary);
|
|
148
148
|
cursor: not-allowed;
|
|
149
149
|
}
|
|
150
150
|
.lib-xplat-chat-input .chat-input-textarea {
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
padding: 4px 0;
|
|
159
159
|
font-size: var(--semantic-typo-label-2-m-size);
|
|
160
160
|
line-height: var(--semantic-typo-label-2-m-lh);
|
|
161
|
-
color: var(--semantic-text-
|
|
161
|
+
color: var(--semantic-text-primary);
|
|
162
162
|
background: transparent;
|
|
163
163
|
}
|
|
164
164
|
.lib-xplat-chat-input .chat-input-textarea::placeholder {
|
|
@@ -22,7 +22,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
22
22
|
var IconButton = (props) => {
|
|
23
23
|
const {
|
|
24
24
|
icon,
|
|
25
|
-
className,
|
|
26
25
|
type = "primary",
|
|
27
26
|
size = "md",
|
|
28
27
|
disabled,
|
|
@@ -31,7 +30,7 @@ var IconButton = (props) => {
|
|
|
31
30
|
return /* @__PURE__ */ jsx(
|
|
32
31
|
"button",
|
|
33
32
|
{
|
|
34
|
-
className: clsx_default("lib-xplat-icon-button", type, size
|
|
33
|
+
className: clsx_default("lib-xplat-icon-button", type, size),
|
|
35
34
|
disabled,
|
|
36
35
|
...rest,
|
|
37
36
|
children: icon
|