@x-plat/design-system 0.4.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/index.cjs +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/package.json +2 -4
- package/dist/colors-CY4JXVHj.d.cts +0 -137
- package/dist/colors-CY4JXVHj.d.ts +0 -137
- package/dist/layout/Grid/GapGrid/index.cjs +0 -32
- package/dist/layout/Grid/GapGrid/index.d.cts +0 -12
- package/dist/layout/Grid/GapGrid/index.d.ts +0 -12
- package/dist/layout/Grid/GapGrid/index.js +0 -11
|
@@ -1,43 +1,87 @@
|
|
|
1
1
|
/* src/components/Button/button.scss */
|
|
2
2
|
.lib-xplat-button {
|
|
3
|
-
border-radius:
|
|
3
|
+
border-radius: var(--spacing-radius-md);
|
|
4
4
|
font-weight: 500;
|
|
5
5
|
cursor: pointer;
|
|
6
|
+
border: 1px solid transparent;
|
|
7
|
+
transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
6
8
|
}
|
|
7
9
|
.lib-xplat-button.sm {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
height: var(--spacing-control-height-sm);
|
|
11
|
+
padding: 0 var(--spacing-space-3);
|
|
12
|
+
font-size: 14px;
|
|
10
13
|
}
|
|
11
14
|
.lib-xplat-button.md {
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
height: var(--spacing-control-height-md);
|
|
16
|
+
padding: 0 var(--spacing-space-4);
|
|
17
|
+
font-size: 16px;
|
|
14
18
|
}
|
|
15
19
|
.lib-xplat-button.lg {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
.lib-xplat-button {
|
|
20
|
-
transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
20
|
+
height: var(--spacing-control-height-lg);
|
|
21
|
+
padding: 0 var(--spacing-space-6);
|
|
22
|
+
font-size: 18px;
|
|
21
23
|
}
|
|
22
24
|
.lib-xplat-button:disabled {
|
|
23
25
|
cursor: not-allowed;
|
|
24
|
-
background-color: var(--
|
|
25
|
-
border-color: var(--
|
|
26
|
-
color: var(--
|
|
26
|
+
background-color: var(--semantic-surface-neutral-disabled) !important;
|
|
27
|
+
border-color: var(--semantic-surface-neutral-disabled) !important;
|
|
28
|
+
color: var(--semantic-text-disabled) !important;
|
|
27
29
|
}
|
|
28
30
|
.lib-xplat-button.primary {
|
|
29
|
-
color: var(--
|
|
30
|
-
background-color: var(--
|
|
31
|
+
color: var(--semantic-text-inverse);
|
|
32
|
+
background-color: var(--semantic-surface-brand-default);
|
|
31
33
|
}
|
|
32
|
-
.lib-xplat-button.primary:hover {
|
|
33
|
-
background-color:
|
|
34
|
+
.lib-xplat-button.primary:hover:not(:disabled) {
|
|
35
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
36
|
+
}
|
|
37
|
+
.lib-xplat-button.primary:active:not(:disabled) {
|
|
38
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
39
|
+
}
|
|
40
|
+
.lib-xplat-button.primary:focus-visible {
|
|
41
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
42
|
+
outline-offset: 2px;
|
|
34
43
|
}
|
|
35
44
|
.lib-xplat-button.secondary {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
color: var(--
|
|
39
|
-
|
|
45
|
+
color: var(--semantic-surface-brand-default);
|
|
46
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
47
|
+
border-color: var(--semantic-border-default);
|
|
48
|
+
}
|
|
49
|
+
.lib-xplat-button.secondary:hover:not(:disabled) {
|
|
50
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
51
|
+
}
|
|
52
|
+
.lib-xplat-button.secondary:active:not(:disabled) {
|
|
53
|
+
background-color: var(--semantic-surface-neutral-strong);
|
|
54
|
+
}
|
|
55
|
+
.lib-xplat-button.secondary:focus-visible {
|
|
56
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
57
|
+
outline-offset: 2px;
|
|
58
|
+
}
|
|
59
|
+
.lib-xplat-button.danger {
|
|
60
|
+
color: var(--semantic-text-inverse);
|
|
61
|
+
background-color: var(--semantic-surface-error-default);
|
|
62
|
+
}
|
|
63
|
+
.lib-xplat-button.danger:hover:not(:disabled) {
|
|
64
|
+
background-color: var(--semantic-surface-error-strong);
|
|
65
|
+
}
|
|
66
|
+
.lib-xplat-button.danger:active:not(:disabled) {
|
|
67
|
+
background-color: var(--semantic-surface-error-strong);
|
|
68
|
+
}
|
|
69
|
+
.lib-xplat-button.danger:focus-visible {
|
|
70
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
71
|
+
outline-offset: 2px;
|
|
72
|
+
}
|
|
73
|
+
.lib-xplat-button.ghost {
|
|
74
|
+
color: var(--semantic-text-subtle);
|
|
75
|
+
background-color: transparent;
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
}
|
|
78
|
+
.lib-xplat-button.ghost:hover:not(:disabled) {
|
|
79
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
80
|
+
}
|
|
81
|
+
.lib-xplat-button.ghost:active:not(:disabled) {
|
|
82
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
40
83
|
}
|
|
41
|
-
.lib-xplat-button.
|
|
42
|
-
|
|
84
|
+
.lib-xplat-button.ghost:focus-visible {
|
|
85
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
86
|
+
outline-offset: 2px;
|
|
43
87
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { B as ButtonAttributes } from '../../attributes-DJIWir_0.cjs';
|
|
4
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.cjs';
|
|
5
4
|
|
|
6
|
-
type ButtonType = "primary" | "secondary";
|
|
5
|
+
type ButtonType = "primary" | "secondary" | "danger" | "ghost";
|
|
7
6
|
type ButtonSize = "sm" | "md" | "lg";
|
|
8
|
-
interface ButtonProps extends Omit<ButtonAttributes, "className"
|
|
7
|
+
interface ButtonProps extends Omit<ButtonAttributes, "className"> {
|
|
9
8
|
children: React.ReactNode;
|
|
10
9
|
type?: ButtonType;
|
|
11
10
|
size?: ButtonSize;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { B as ButtonAttributes } from '../../attributes-DJIWir_0.js';
|
|
4
|
-
import { a as ColorProps } from '../../colors-CY4JXVHj.js';
|
|
5
4
|
|
|
6
|
-
type ButtonType = "primary" | "secondary";
|
|
5
|
+
type ButtonType = "primary" | "secondary" | "danger" | "ghost";
|
|
7
6
|
type ButtonSize = "sm" | "md" | "lg";
|
|
8
|
-
interface ButtonProps extends Omit<ButtonAttributes, "className"
|
|
7
|
+
interface ButtonProps extends Omit<ButtonAttributes, "className"> {
|
|
9
8
|
children: React.ReactNode;
|
|
10
9
|
type?: ButtonType;
|
|
11
10
|
size?: ButtonSize;
|
|
@@ -21,15 +21,13 @@ var Button = (props) => {
|
|
|
21
21
|
children,
|
|
22
22
|
type = "primary",
|
|
23
23
|
size = "md",
|
|
24
|
-
color = "xplat-black",
|
|
25
24
|
disabled,
|
|
26
25
|
...rest
|
|
27
26
|
} = props;
|
|
28
|
-
const colorClass = color;
|
|
29
27
|
return /* @__PURE__ */ jsx(
|
|
30
28
|
"button",
|
|
31
29
|
{
|
|
32
|
-
className: clsx_default("lib-xplat-button", type, size
|
|
30
|
+
className: clsx_default("lib-xplat-button", type, size),
|
|
33
31
|
disabled,
|
|
34
32
|
...rest,
|
|
35
33
|
children
|
|
@@ -445,10 +445,10 @@ var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
|
445
445
|
// src/tokens/svg/file/BookIcon.tsx
|
|
446
446
|
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
447
447
|
|
|
448
|
-
// src/tokens/svg/file/
|
|
448
|
+
// src/tokens/svg/file/BookmarkIcon.tsx
|
|
449
449
|
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
450
450
|
|
|
451
|
-
// src/tokens/svg/file/
|
|
451
|
+
// src/tokens/svg/file/BookOpenIcon.tsx
|
|
452
452
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
453
453
|
|
|
454
454
|
// src/tokens/svg/file/ClipboardIcon.tsx
|
|
@@ -904,10 +904,10 @@ var import_jsx_runtime279 = require("react/jsx-runtime");
|
|
|
904
904
|
// src/tokens/svg/user/UserPlusIcon.tsx
|
|
905
905
|
var import_jsx_runtime280 = require("react/jsx-runtime");
|
|
906
906
|
|
|
907
|
-
// src/tokens/svg/user/
|
|
907
|
+
// src/tokens/svg/user/UsersIcon.tsx
|
|
908
908
|
var import_jsx_runtime281 = require("react/jsx-runtime");
|
|
909
909
|
|
|
910
|
-
// src/tokens/svg/user/
|
|
910
|
+
// src/tokens/svg/user/UserXIcon.tsx
|
|
911
911
|
var import_jsx_runtime282 = require("react/jsx-runtime");
|
|
912
912
|
|
|
913
913
|
// src/tokens/svg/weather/CloudDrizzleIcon.tsx
|
|
@@ -964,7 +964,7 @@ var clsx_default = clsx;
|
|
|
964
964
|
|
|
965
965
|
// src/components/Calendar/useCalendar.ts
|
|
966
966
|
var import_react = __toESM(require("react"), 1);
|
|
967
|
-
|
|
967
|
+
var useCalendar = (initialYear, initialMonth) => {
|
|
968
968
|
const today = /* @__PURE__ */ new Date();
|
|
969
969
|
const [year, setYear] = import_react.default.useState(initialYear ?? today.getFullYear());
|
|
970
970
|
const [month, setMonth] = import_react.default.useState(initialMonth ?? today.getMonth());
|
|
@@ -1043,16 +1043,16 @@ function useCalendar(initialYear, initialMonth) {
|
|
|
1043
1043
|
setYear,
|
|
1044
1044
|
setMonth
|
|
1045
1045
|
};
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1046
|
+
};
|
|
1047
|
+
var isSameDay = (a, b) => {
|
|
1048
1048
|
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1049
|
+
};
|
|
1050
|
+
var isInRange = (date, start, end) => {
|
|
1051
1051
|
const d = date.getTime();
|
|
1052
1052
|
const s = new Date(start.getFullYear(), start.getMonth(), start.getDate()).getTime();
|
|
1053
1053
|
const e = new Date(end.getFullYear(), end.getMonth(), end.getDate()).getTime();
|
|
1054
1054
|
return d >= s && d <= e;
|
|
1055
|
-
}
|
|
1055
|
+
};
|
|
1056
1056
|
var WEEKDAY_LABELS = {
|
|
1057
1057
|
ko: ["\uC77C", "\uC6D4", "\uD654", "\uC218", "\uBAA9", "\uAE08", "\uD1A0"],
|
|
1058
1058
|
en: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
|
|
@@ -8,76 +8,75 @@
|
|
|
8
8
|
.lib-xplat-calendar .calendar-header {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap:
|
|
12
|
-
margin-bottom:
|
|
11
|
+
gap: var(--spacing-space-2);
|
|
12
|
+
margin-bottom: var(--spacing-space-4);
|
|
13
13
|
}
|
|
14
14
|
.lib-xplat-calendar .calendar-title {
|
|
15
|
-
font-size: clamp(
|
|
15
|
+
font-size: clamp(14px, 3cqi, 20px);
|
|
16
16
|
font-weight: 600;
|
|
17
|
-
color: var(--
|
|
17
|
+
color: var(--semantic-text-strong);
|
|
18
18
|
min-width: 120px;
|
|
19
19
|
text-align: center;
|
|
20
20
|
background: none;
|
|
21
21
|
border: none;
|
|
22
22
|
cursor: pointer;
|
|
23
|
-
padding:
|
|
24
|
-
border-radius:
|
|
23
|
+
padding: var(--spacing-space-1) var(--spacing-space-2);
|
|
24
|
+
border-radius: var(--spacing-radius-md);
|
|
25
25
|
transition: background-color 0.15s;
|
|
26
26
|
}
|
|
27
27
|
.lib-xplat-calendar .calendar-title:hover {
|
|
28
|
-
background-color: var(--
|
|
28
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
29
29
|
}
|
|
30
30
|
.lib-xplat-calendar .calendar-nav {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: center;
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
34
|
+
width: var(--spacing-space-7);
|
|
35
|
+
height: var(--spacing-space-7);
|
|
36
36
|
border: none;
|
|
37
|
-
border-radius:
|
|
37
|
+
border-radius: var(--spacing-radius-md);
|
|
38
38
|
background: none;
|
|
39
39
|
cursor: pointer;
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--semantic-text-subtle);
|
|
41
41
|
transition: background-color 0.15s;
|
|
42
42
|
}
|
|
43
43
|
.lib-xplat-calendar .calendar-nav:hover {
|
|
44
|
-
background-color: var(--
|
|
44
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
45
45
|
}
|
|
46
46
|
.lib-xplat-calendar .calendar-nav svg {
|
|
47
|
-
|
|
48
|
-
height: 16px;
|
|
47
|
+
font-size: 16px;
|
|
49
48
|
}
|
|
50
49
|
.lib-xplat-calendar .calendar-today-btn {
|
|
51
50
|
margin-left: auto;
|
|
52
|
-
padding:
|
|
53
|
-
border: 1px solid var(--
|
|
54
|
-
border-radius:
|
|
51
|
+
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
52
|
+
border: 1px solid var(--semantic-border-default);
|
|
53
|
+
border-radius: var(--spacing-radius-md);
|
|
55
54
|
background: none;
|
|
56
|
-
font-size: clamp(
|
|
57
|
-
color: var(--
|
|
55
|
+
font-size: clamp(12px, 2cqi, 14px);
|
|
56
|
+
color: var(--semantic-text-subtle);
|
|
58
57
|
cursor: pointer;
|
|
59
58
|
transition: background-color 0.15s;
|
|
60
59
|
}
|
|
61
60
|
.lib-xplat-calendar .calendar-today-btn:hover {
|
|
62
|
-
background-color: var(--
|
|
61
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
63
62
|
}
|
|
64
63
|
.lib-xplat-calendar .calendar-weekdays {
|
|
65
64
|
display: grid;
|
|
66
65
|
grid-template-columns: repeat(7, 1fr);
|
|
67
|
-
margin-bottom:
|
|
66
|
+
margin-bottom: var(--spacing-space-1);
|
|
68
67
|
}
|
|
69
68
|
.lib-xplat-calendar .calendar-weekday {
|
|
70
69
|
text-align: center;
|
|
71
|
-
font-size: clamp(
|
|
70
|
+
font-size: clamp(11px, 2cqi, 14px);
|
|
72
71
|
font-weight: 500;
|
|
73
|
-
padding:
|
|
74
|
-
color: var(--
|
|
72
|
+
padding: var(--spacing-space-2) 0;
|
|
73
|
+
color: var(--semantic-text-muted);
|
|
75
74
|
}
|
|
76
75
|
.lib-xplat-calendar .calendar-weekday.sunday {
|
|
77
|
-
color: var(--
|
|
76
|
+
color: var(--semantic-text-sunday);
|
|
78
77
|
}
|
|
79
78
|
.lib-xplat-calendar .calendar-weekday.saturday {
|
|
80
|
-
color: var(--
|
|
79
|
+
color: var(--semantic-text-saturday);
|
|
81
80
|
}
|
|
82
81
|
.lib-xplat-calendar .calendar-grid {
|
|
83
82
|
display: grid;
|
|
@@ -90,96 +89,96 @@
|
|
|
90
89
|
justify-content: center;
|
|
91
90
|
aspect-ratio: 1/0.85;
|
|
92
91
|
cursor: pointer;
|
|
93
|
-
border-radius:
|
|
92
|
+
border-radius: var(--spacing-radius-md);
|
|
94
93
|
transition: background-color 0.15s;
|
|
95
94
|
}
|
|
96
95
|
.lib-xplat-calendar .calendar-day:hover:not(.disabled):not(.outside):not(.selected) {
|
|
97
|
-
background-color: var(--
|
|
96
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
98
97
|
}
|
|
99
98
|
.lib-xplat-calendar .calendar-day.outside {
|
|
100
99
|
cursor: default;
|
|
101
100
|
}
|
|
102
101
|
.lib-xplat-calendar .calendar-day.outside .calendar-day-number {
|
|
103
|
-
color: var(--
|
|
102
|
+
color: var(--semantic-text-disabled);
|
|
104
103
|
}
|
|
105
104
|
.lib-xplat-calendar .calendar-day.outside.sunday .calendar-day-number {
|
|
106
|
-
color: color-mix(in srgb, var(--
|
|
105
|
+
color: color-mix(in srgb, var(--semantic-text-sunday) 35%, transparent);
|
|
107
106
|
}
|
|
108
107
|
.lib-xplat-calendar .calendar-day.outside.saturday .calendar-day-number {
|
|
109
|
-
color: color-mix(in srgb, var(--
|
|
108
|
+
color: color-mix(in srgb, var(--semantic-text-saturday) 35%, transparent);
|
|
110
109
|
}
|
|
111
110
|
.lib-xplat-calendar .calendar-day.disabled {
|
|
112
111
|
cursor: not-allowed;
|
|
113
112
|
}
|
|
114
113
|
.lib-xplat-calendar .calendar-day.disabled .calendar-day-number {
|
|
115
|
-
color: var(--
|
|
114
|
+
color: var(--semantic-text-disabled);
|
|
116
115
|
}
|
|
117
116
|
.lib-xplat-calendar .calendar-day.today .calendar-day-number {
|
|
118
117
|
font-weight: 700;
|
|
119
|
-
color: var(--
|
|
118
|
+
color: var(--semantic-surface-brand-default);
|
|
120
119
|
}
|
|
121
120
|
.lib-xplat-calendar .calendar-day.selected {
|
|
122
|
-
box-shadow: inset 0 0 0 1.5px var(--calendar-selected-color, var(--
|
|
121
|
+
box-shadow: inset 0 0 0 1.5px var(--calendar-selected-color, var(--semantic-text-muted));
|
|
123
122
|
}
|
|
124
123
|
.lib-xplat-calendar .calendar-day.selected .calendar-day-number {
|
|
125
124
|
font-weight: 700;
|
|
126
125
|
}
|
|
127
126
|
.lib-xplat-calendar .calendar-day.selected:hover {
|
|
128
|
-
background-color: color-mix(in srgb, var(--calendar-selected-color, var(--
|
|
127
|
+
background-color: color-mix(in srgb, var(--calendar-selected-color, var(--semantic-text-muted)) 10%, transparent);
|
|
129
128
|
}
|
|
130
129
|
.lib-xplat-calendar .calendar-day.sunday:not(.outside) .calendar-day-number {
|
|
131
|
-
color: var(--
|
|
130
|
+
color: var(--semantic-text-sunday);
|
|
132
131
|
}
|
|
133
132
|
.lib-xplat-calendar .calendar-day.saturday:not(.outside) .calendar-day-number {
|
|
134
|
-
color: var(--
|
|
133
|
+
color: var(--semantic-text-saturday);
|
|
135
134
|
}
|
|
136
135
|
.lib-xplat-calendar .calendar-day-number {
|
|
137
|
-
font-size: clamp(
|
|
136
|
+
font-size: clamp(12px, 2.5cqi, 16px);
|
|
138
137
|
line-height: 1;
|
|
139
|
-
color: var(--
|
|
138
|
+
color: var(--semantic-text-strong);
|
|
140
139
|
}
|
|
141
140
|
.lib-xplat-calendar .calendar-day-events {
|
|
142
141
|
display: flex;
|
|
143
142
|
gap: 2px;
|
|
144
|
-
margin-top:
|
|
143
|
+
margin-top: var(--spacing-space-1);
|
|
145
144
|
align-items: center;
|
|
146
145
|
}
|
|
147
146
|
.lib-xplat-calendar .calendar-event-dot {
|
|
148
|
-
width:
|
|
149
|
-
height:
|
|
147
|
+
width: var(--spacing-space-1);
|
|
148
|
+
height: var(--spacing-space-1);
|
|
150
149
|
border-radius: 50%;
|
|
151
150
|
flex-shrink: 0;
|
|
152
151
|
cursor: pointer;
|
|
153
152
|
}
|
|
154
153
|
.lib-xplat-calendar .calendar-event-more {
|
|
155
154
|
font-size: 9px;
|
|
156
|
-
color: var(--
|
|
155
|
+
color: var(--semantic-text-muted);
|
|
157
156
|
line-height: 1;
|
|
158
157
|
}
|
|
159
158
|
.lib-xplat-calendar .calendar-picker-grid {
|
|
160
159
|
display: grid;
|
|
161
160
|
grid-template-columns: repeat(3, 1fr);
|
|
162
|
-
gap:
|
|
163
|
-
padding:
|
|
161
|
+
gap: var(--spacing-space-2);
|
|
162
|
+
padding: var(--spacing-space-2) 0;
|
|
164
163
|
}
|
|
165
164
|
.lib-xplat-calendar .calendar-picker-cell {
|
|
166
165
|
display: flex;
|
|
167
166
|
align-items: center;
|
|
168
167
|
justify-content: center;
|
|
169
|
-
padding:
|
|
168
|
+
padding: var(--spacing-space-2);
|
|
170
169
|
border: none;
|
|
171
|
-
border-radius:
|
|
170
|
+
border-radius: var(--spacing-radius-md);
|
|
172
171
|
background: none;
|
|
173
|
-
font-size: clamp(
|
|
174
|
-
color: var(--
|
|
172
|
+
font-size: clamp(12px, 2.5cqi, 15px);
|
|
173
|
+
color: var(--semantic-text-subtle);
|
|
175
174
|
cursor: pointer;
|
|
176
175
|
transition: background-color 0.15s;
|
|
177
176
|
}
|
|
178
177
|
.lib-xplat-calendar .calendar-picker-cell:hover {
|
|
179
|
-
background-color: var(--
|
|
178
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
180
179
|
}
|
|
181
180
|
.lib-xplat-calendar .calendar-picker-cell.active {
|
|
182
|
-
background-color: var(--
|
|
183
|
-
color: var(--
|
|
181
|
+
background-color: var(--semantic-surface-neutral-strong);
|
|
182
|
+
color: var(--semantic-text-inverse);
|
|
184
183
|
font-weight: 600;
|
|
185
184
|
}
|
|
@@ -9,7 +9,7 @@ interface CalendarDay {
|
|
|
9
9
|
isSunday: boolean;
|
|
10
10
|
isSaturday: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare const useCalendar: (initialYear?: number, initialMonth?: number) => {
|
|
13
13
|
year: number;
|
|
14
14
|
month: number;
|
|
15
15
|
days: CalendarDay[];
|
|
@@ -19,8 +19,8 @@ declare function useCalendar(initialYear?: number, initialMonth?: number): {
|
|
|
19
19
|
setYear: React.Dispatch<React.SetStateAction<number>>;
|
|
20
20
|
setMonth: React.Dispatch<React.SetStateAction<number>>;
|
|
21
21
|
};
|
|
22
|
-
declare
|
|
23
|
-
declare
|
|
22
|
+
declare const isSameDay: (a: Date, b: Date) => boolean;
|
|
23
|
+
declare const isInRange: (date: Date, start: Date, end: Date) => boolean;
|
|
24
24
|
|
|
25
25
|
interface CalendarEvent {
|
|
26
26
|
date: Date;
|
|
@@ -9,7 +9,7 @@ interface CalendarDay {
|
|
|
9
9
|
isSunday: boolean;
|
|
10
10
|
isSaturday: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare const useCalendar: (initialYear?: number, initialMonth?: number) => {
|
|
13
13
|
year: number;
|
|
14
14
|
month: number;
|
|
15
15
|
days: CalendarDay[];
|
|
@@ -19,8 +19,8 @@ declare function useCalendar(initialYear?: number, initialMonth?: number): {
|
|
|
19
19
|
setYear: React.Dispatch<React.SetStateAction<number>>;
|
|
20
20
|
setMonth: React.Dispatch<React.SetStateAction<number>>;
|
|
21
21
|
};
|
|
22
|
-
declare
|
|
23
|
-
declare
|
|
22
|
+
declare const isSameDay: (a: Date, b: Date) => boolean;
|
|
23
|
+
declare const isInRange: (date: Date, start: Date, end: Date) => boolean;
|
|
24
24
|
|
|
25
25
|
interface CalendarEvent {
|
|
26
26
|
date: Date;
|
|
@@ -406,10 +406,10 @@ import { jsx as jsx126, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
|
406
406
|
// src/tokens/svg/file/BookIcon.tsx
|
|
407
407
|
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
408
408
|
|
|
409
|
-
// src/tokens/svg/file/
|
|
409
|
+
// src/tokens/svg/file/BookmarkIcon.tsx
|
|
410
410
|
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
411
411
|
|
|
412
|
-
// src/tokens/svg/file/
|
|
412
|
+
// src/tokens/svg/file/BookOpenIcon.tsx
|
|
413
413
|
import { jsx as jsx129 } from "react/jsx-runtime";
|
|
414
414
|
|
|
415
415
|
// src/tokens/svg/file/ClipboardIcon.tsx
|
|
@@ -865,10 +865,10 @@ import { jsx as jsx279, jsxs as jsxs177 } from "react/jsx-runtime";
|
|
|
865
865
|
// src/tokens/svg/user/UserPlusIcon.tsx
|
|
866
866
|
import { jsx as jsx280, jsxs as jsxs178 } from "react/jsx-runtime";
|
|
867
867
|
|
|
868
|
-
// src/tokens/svg/user/
|
|
868
|
+
// src/tokens/svg/user/UsersIcon.tsx
|
|
869
869
|
import { jsx as jsx281, jsxs as jsxs179 } from "react/jsx-runtime";
|
|
870
870
|
|
|
871
|
-
// src/tokens/svg/user/
|
|
871
|
+
// src/tokens/svg/user/UserXIcon.tsx
|
|
872
872
|
import { jsx as jsx282, jsxs as jsxs180 } from "react/jsx-runtime";
|
|
873
873
|
|
|
874
874
|
// src/tokens/svg/weather/CloudDrizzleIcon.tsx
|
|
@@ -925,7 +925,7 @@ var clsx_default = clsx;
|
|
|
925
925
|
|
|
926
926
|
// src/components/Calendar/useCalendar.ts
|
|
927
927
|
import React from "react";
|
|
928
|
-
|
|
928
|
+
var useCalendar = (initialYear, initialMonth) => {
|
|
929
929
|
const today = /* @__PURE__ */ new Date();
|
|
930
930
|
const [year, setYear] = React.useState(initialYear ?? today.getFullYear());
|
|
931
931
|
const [month, setMonth] = React.useState(initialMonth ?? today.getMonth());
|
|
@@ -1004,16 +1004,16 @@ function useCalendar(initialYear, initialMonth) {
|
|
|
1004
1004
|
setYear,
|
|
1005
1005
|
setMonth
|
|
1006
1006
|
};
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1007
|
+
};
|
|
1008
|
+
var isSameDay = (a, b) => {
|
|
1009
1009
|
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1010
|
+
};
|
|
1011
|
+
var isInRange = (date, start, end) => {
|
|
1012
1012
|
const d = date.getTime();
|
|
1013
1013
|
const s = new Date(start.getFullYear(), start.getMonth(), start.getDate()).getTime();
|
|
1014
1014
|
const e = new Date(end.getFullYear(), end.getMonth(), end.getDate()).getTime();
|
|
1015
1015
|
return d >= s && d <= e;
|
|
1016
|
-
}
|
|
1016
|
+
};
|
|
1017
1017
|
var WEEKDAY_LABELS = {
|
|
1018
1018
|
ko: ["\uC77C", "\uC6D4", "\uD654", "\uC218", "\uBAA9", "\uAE08", "\uD1A0"],
|
|
1019
1019
|
en: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
flex: 1;
|
|
6
6
|
min-width: 0;
|
|
7
7
|
height: fit-content;
|
|
8
|
-
border-radius:
|
|
9
|
-
border: 1px solid var(--
|
|
10
|
-
background-color: var(--
|
|
8
|
+
border-radius: var(--spacing-radius-xl);
|
|
9
|
+
border: 1px solid var(--semantic-border-strong);
|
|
10
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
13
|
.lib-xplat-card > .title {
|
|
14
14
|
font-weight: 600;
|
|
15
|
-
background-color: var(--
|
|
16
|
-
padding:
|
|
15
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
16
|
+
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
17
17
|
min-width: 0;
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
text-overflow: ellipsis;
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
.lib-xplat-card > .content {
|
|
23
23
|
display: flex;
|
|
24
24
|
flex-direction: column;
|
|
25
|
-
padding:
|
|
25
|
+
padding: var(--spacing-space-4);
|
|
26
26
|
}
|
|
@@ -11,67 +11,67 @@
|
|
|
11
11
|
.lib-xplat-card-tab .card-tab-trigger {
|
|
12
12
|
position: relative;
|
|
13
13
|
cursor: pointer;
|
|
14
|
-
border: 1px solid var(--
|
|
14
|
+
border: 1px solid var(--semantic-border-default);
|
|
15
15
|
border-bottom: none;
|
|
16
|
-
border-radius:
|
|
17
|
-
background-color: var(--
|
|
18
|
-
color: var(--
|
|
16
|
+
border-radius: var(--spacing-radius-md) var(--spacing-radius-md) 0 0;
|
|
17
|
+
background-color: var(--semantic-surface-neutral-disabled);
|
|
18
|
+
color: var(--semantic-text-muted);
|
|
19
19
|
font-weight: 500;
|
|
20
20
|
transition: background-color 0.2s, color 0.2s;
|
|
21
21
|
}
|
|
22
22
|
.lib-xplat-card-tab .card-tab-trigger:hover:not(.active) {
|
|
23
|
-
background-color: var(--
|
|
24
|
-
color: var(--
|
|
23
|
+
background-color: var(--semantic-surface-neutral-subtle);
|
|
24
|
+
color: var(--semantic-text-subtle);
|
|
25
25
|
}
|
|
26
26
|
.lib-xplat-card-tab .card-tab-trigger.active {
|
|
27
|
-
background-color: var(--
|
|
28
|
-
color: var(--
|
|
27
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
28
|
+
color: var(--semantic-text-strong);
|
|
29
29
|
font-weight: 600;
|
|
30
30
|
z-index: 1;
|
|
31
31
|
margin-bottom: -1px;
|
|
32
32
|
padding-bottom: calc(var(--tab-py) + 1px);
|
|
33
33
|
}
|
|
34
34
|
.lib-xplat-card-tab .card-tab-body {
|
|
35
|
-
border: 1px solid var(--
|
|
36
|
-
border-radius: 0
|
|
37
|
-
background-color: var(--
|
|
38
|
-
padding:
|
|
35
|
+
border: 1px solid var(--semantic-border-default);
|
|
36
|
+
border-radius: 0 var(--spacing-radius-md) var(--spacing-radius-md) var(--spacing-radius-md);
|
|
37
|
+
background-color: var(--semantic-surface-neutral-default);
|
|
38
|
+
padding: var(--spacing-space-5);
|
|
39
39
|
}
|
|
40
40
|
.lib-xplat-card-tab .card-tab-panel {
|
|
41
41
|
display: grid;
|
|
42
42
|
grid-template-columns: repeat(var(--card-tab-columns, 3), 1fr);
|
|
43
|
-
gap:
|
|
43
|
+
gap: var(--spacing-space-4);
|
|
44
44
|
}
|
|
45
45
|
.lib-xplat-card-tab.sm .card-tab-trigger {
|
|
46
|
-
--tab-py:
|
|
47
|
-
padding:
|
|
48
|
-
font-size:
|
|
46
|
+
--tab-py: var(--spacing-space-1);
|
|
47
|
+
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
48
|
+
font-size: 13px;
|
|
49
49
|
}
|
|
50
50
|
.lib-xplat-card-tab.sm .card-tab-body {
|
|
51
|
-
padding:
|
|
51
|
+
padding: var(--spacing-space-4);
|
|
52
52
|
}
|
|
53
53
|
.lib-xplat-card-tab.sm .card-tab-panel {
|
|
54
|
-
gap:
|
|
54
|
+
gap: var(--spacing-space-3);
|
|
55
55
|
}
|
|
56
56
|
.lib-xplat-card-tab.md .card-tab-trigger {
|
|
57
|
-
--tab-py:
|
|
58
|
-
padding:
|
|
59
|
-
font-size:
|
|
57
|
+
--tab-py: 6px;
|
|
58
|
+
padding: 6px var(--spacing-space-4);
|
|
59
|
+
font-size: 14px;
|
|
60
60
|
}
|
|
61
61
|
.lib-xplat-card-tab.md .card-tab-body {
|
|
62
|
-
padding:
|
|
62
|
+
padding: var(--spacing-space-5);
|
|
63
63
|
}
|
|
64
64
|
.lib-xplat-card-tab.md .card-tab-panel {
|
|
65
|
-
gap:
|
|
65
|
+
gap: var(--spacing-space-4);
|
|
66
66
|
}
|
|
67
67
|
.lib-xplat-card-tab.lg .card-tab-trigger {
|
|
68
|
-
--tab-py:
|
|
69
|
-
padding:
|
|
70
|
-
font-size:
|
|
68
|
+
--tab-py: var(--spacing-space-2);
|
|
69
|
+
padding: var(--spacing-space-2) var(--spacing-space-5);
|
|
70
|
+
font-size: 16px;
|
|
71
71
|
}
|
|
72
72
|
.lib-xplat-card-tab.lg .card-tab-body {
|
|
73
|
-
padding:
|
|
73
|
+
padding: var(--spacing-space-6);
|
|
74
74
|
}
|
|
75
75
|
.lib-xplat-card-tab.lg .card-tab-panel {
|
|
76
|
-
gap:
|
|
76
|
+
gap: var(--spacing-space-5);
|
|
77
77
|
}
|