@x-plat/design-system 0.6.1 → 0.7.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.
Files changed (81) hide show
  1. package/dist/components/Accordion/index.css +10 -3
  2. package/dist/components/Alert/index.css +7 -0
  3. package/dist/components/AutoResizeTextArea/index.css +3 -0
  4. package/dist/components/Avatar/index.css +13 -1
  5. package/dist/components/Badge/index.cjs +10 -7
  6. package/dist/components/Badge/index.css +26 -15
  7. package/dist/components/Badge/index.d.cts +3 -19
  8. package/dist/components/Badge/index.d.ts +3 -19
  9. package/dist/components/Badge/index.js +8 -6
  10. package/dist/components/Box/index.css +8 -5
  11. package/dist/components/Breadcrumb/index.css +5 -1
  12. package/dist/components/Button/index.css +10 -1
  13. package/dist/components/Calendar/index.css +10 -6
  14. package/dist/components/CardTab/index.css +14 -2
  15. package/dist/components/Chart/index.css +32 -11
  16. package/dist/components/ChatInput/index.css +6 -0
  17. package/dist/components/CheckBox/index.css +10 -1
  18. package/dist/components/Chip/index.css +12 -0
  19. package/dist/components/DatePicker/index.css +51 -12
  20. package/dist/components/Drawer/index.css +14 -7
  21. package/dist/components/Dropdown/index.css +5 -1
  22. package/dist/components/Editor/index.css +49 -10
  23. package/dist/components/EmptyState/index.css +9 -2
  24. package/dist/components/FileUpload/index.css +9 -2
  25. package/dist/components/HtmlTypeWriter/index.cjs +2 -0
  26. package/dist/components/HtmlTypeWriter/index.css +13 -1
  27. package/dist/components/HtmlTypeWriter/index.d.cts +3 -3
  28. package/dist/components/HtmlTypeWriter/index.d.ts +3 -3
  29. package/dist/components/HtmlTypeWriter/index.js +1 -0
  30. package/dist/components/ImageSelector/index.css +8 -0
  31. package/dist/components/Input/index.css +12 -0
  32. package/dist/components/Modal/index.css +1 -1
  33. package/dist/components/NotificationBadge/index.cjs +68 -0
  34. package/dist/components/NotificationBadge/index.css +75 -0
  35. package/dist/components/NotificationBadge/index.d.cts +47 -0
  36. package/dist/components/NotificationBadge/index.d.ts +47 -0
  37. package/dist/components/NotificationBadge/index.js +40 -0
  38. package/dist/components/Pagination/index.css +25 -1
  39. package/dist/components/PopOver/index.css +1 -1
  40. package/dist/components/Progress/index.css +5 -2
  41. package/dist/components/Radio/index.css +9 -0
  42. package/dist/components/Select/index.css +20 -3
  43. package/dist/components/Steps/index.css +14 -4
  44. package/dist/components/Switch/index.css +1 -1
  45. package/dist/components/Tab/index.css +16 -1
  46. package/dist/components/Table/index.cjs +6 -1
  47. package/dist/components/Table/index.css +12 -0
  48. package/dist/components/Table/index.d.cts +4 -0
  49. package/dist/components/Table/index.d.ts +4 -0
  50. package/dist/components/Table/index.js +6 -1
  51. package/dist/components/Tag/index.css +12 -0
  52. package/dist/components/TextArea/index.css +9 -0
  53. package/dist/components/Toast/index.css +8 -1
  54. package/dist/components/Tooltip/index.css +8 -4
  55. package/dist/components/Video/index.css +30 -19
  56. package/dist/components/index.cjs +274 -265
  57. package/dist/components/index.css +547 -162
  58. package/dist/components/index.d.cts +2 -2
  59. package/dist/components/index.d.ts +2 -2
  60. package/dist/components/index.js +272 -265
  61. package/dist/index.cjs +274 -265
  62. package/dist/index.css +547 -162
  63. package/dist/index.d.cts +2 -2
  64. package/dist/index.d.ts +2 -2
  65. package/dist/index.js +272 -265
  66. package/dist/layout/index.css +40 -0
  67. package/guidelines/AGENT_PROMPT.md +1 -1
  68. package/guidelines/Guidelines.md +1 -1
  69. package/guidelines/components/accordion.md +1 -1
  70. package/guidelines/components/avatar.md +1 -1
  71. package/guidelines/components/card.md +1 -1
  72. package/guidelines/components/chart.md +1 -1
  73. package/guidelines/components/data-display.md +4 -4
  74. package/guidelines/components/dropdown.md +1 -1
  75. package/guidelines/components/feedback.md +39 -11
  76. package/guidelines/components/file-media.md +3 -3
  77. package/guidelines/components/html-typewriter.md +1 -1
  78. package/guidelines/components/navigation.md +144 -20
  79. package/guidelines/components/swiper.md +2 -2
  80. package/guidelines/components/table.md +68 -5
  81. package/package.json +1 -1
@@ -21,8 +21,11 @@
21
21
  background: none;
22
22
  border: none;
23
23
  cursor: pointer;
24
- font-size: var(--semantic-typo-caption-1-r-size);
25
- font-weight: 500;
24
+ font-family: var(--semantic-typo-caption-1-m-font);
25
+ font-size: var(--semantic-typo-caption-1-m-size);
26
+ line-height: var(--semantic-typo-caption-1-m-lh);
27
+ font-weight: var(--semantic-typo-caption-1-m-weight);
28
+ letter-spacing: var(--semantic-typo-caption-1-m-ls);
26
29
  color: var(--semantic-text-primary);
27
30
  text-align: left;
28
31
  transition: background-color 0.2s;
@@ -47,9 +50,13 @@
47
50
  }
48
51
  .lib-xplat-accordion .accordion-content {
49
52
  padding: 0 var(--spacing-space-4) 14px;
53
+ font-family: var(--semantic-typo-caption-1-r-font);
50
54
  font-size: var(--semantic-typo-caption-1-r-size);
51
- color: var(--semantic-text-secondary);
55
+ line-height: var(--semantic-typo-caption-1-r-lh);
56
+ font-weight: var(--semantic-typo-caption-1-r-weight);
57
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
52
58
  line-height: 1.6;
59
+ color: var(--semantic-text-secondary);
53
60
  }
54
61
  .lib-xplat-accordion .accordion-item.open .chevron {
55
62
  transform: rotate(180deg);
@@ -6,8 +6,11 @@
6
6
  justify-content: space-between;
7
7
  padding: var(--spacing-space-3) var(--spacing-space-4);
8
8
  border-radius: var(--spacing-radius-md);
9
+ font-family: var(--semantic-typo-caption-1-r-font);
9
10
  font-size: var(--semantic-typo-caption-1-r-size);
10
11
  line-height: var(--semantic-typo-caption-1-r-lh);
12
+ font-weight: var(--semantic-typo-caption-1-r-weight);
13
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
11
14
  border: 1px solid;
12
15
  }
13
16
  .lib-xplat-alert .content {
@@ -17,7 +20,11 @@
17
20
  background: none;
18
21
  border: none;
19
22
  cursor: pointer;
23
+ font-family: var(--semantic-typo-label-1-m-font);
20
24
  font-size: var(--semantic-typo-label-1-m-size);
25
+ line-height: var(--semantic-typo-label-1-m-lh);
26
+ font-weight: var(--semantic-typo-label-1-m-weight);
27
+ letter-spacing: var(--semantic-typo-label-1-m-ls);
21
28
  line-height: 1;
22
29
  margin-left: var(--spacing-space-2);
23
30
  padding: 0;
@@ -37,8 +37,11 @@
37
37
  width: 100%;
38
38
  color: var(--semantic-text-secondary);
39
39
  resize: none;
40
+ font-family: var(--semantic-typo-label-2-m-font);
40
41
  font-size: var(--semantic-typo-label-2-m-size);
41
42
  line-height: var(--semantic-typo-label-2-m-lh);
43
+ font-weight: var(--semantic-typo-label-2-m-weight);
44
+ letter-spacing: var(--semantic-typo-label-2-m-ls);
42
45
  font-family: inherit;
43
46
  }
44
47
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
@@ -11,17 +11,29 @@
11
11
  .lib-xplat-avatar.sm {
12
12
  width: var(--spacing-control-height-sm);
13
13
  height: var(--spacing-control-height-sm);
14
+ font-family: var(--semantic-typo-caption-2-r-font);
14
15
  font-size: var(--semantic-typo-caption-2-r-size);
16
+ line-height: var(--semantic-typo-caption-2-r-lh);
17
+ font-weight: var(--semantic-typo-caption-2-r-weight);
18
+ letter-spacing: var(--semantic-typo-caption-2-r-ls);
15
19
  }
16
20
  .lib-xplat-avatar.md {
17
21
  width: var(--spacing-control-height-md);
18
22
  height: var(--spacing-control-height-md);
23
+ font-family: var(--semantic-typo-caption-1-r-font);
19
24
  font-size: var(--semantic-typo-caption-1-r-size);
25
+ line-height: var(--semantic-typo-caption-1-r-lh);
26
+ font-weight: var(--semantic-typo-caption-1-r-weight);
27
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
20
28
  }
21
29
  .lib-xplat-avatar.lg {
22
30
  width: var(--spacing-control-height-lg);
23
31
  height: var(--spacing-control-height-lg);
32
+ font-family: var(--semantic-typo-label-1-m-font);
24
33
  font-size: var(--semantic-typo-label-1-m-size);
34
+ line-height: var(--semantic-typo-label-1-m-lh);
35
+ font-weight: var(--semantic-typo-label-1-m-weight);
36
+ letter-spacing: var(--semantic-typo-label-1-m-ls);
25
37
  }
26
38
  .lib-xplat-avatar img {
27
39
  width: 100%;
@@ -34,7 +46,7 @@
34
46
  display: flex;
35
47
  align-items: center;
36
48
  justify-content: center;
37
- font-weight: 600;
49
+ font-weight: var(--semantic-typo-label-1-sb-weight);
38
50
  background-color: var(--semantic-surface-neutral-secondary);
39
51
  color: var(--semantic-text-tertiary);
40
52
  }
@@ -20,7 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/components/Badge/index.ts
21
21
  var Badge_exports = {};
22
22
  __export(Badge_exports, {
23
- Badge: () => Badge_default
23
+ Badge: () => NotificationBadge_default,
24
+ NotificationBadge: () => NotificationBadge_default,
25
+ default: () => NotificationBadge_default
24
26
  });
25
27
  module.exports = __toCommonJS(Badge_exports);
26
28
 
@@ -40,9 +42,9 @@ function clsx() {
40
42
  }
41
43
  var clsx_default = clsx;
42
44
 
43
- // src/components/Badge/Badge.tsx
45
+ // src/components/NotificationBadge/NotificationBadge.tsx
44
46
  var import_jsx_runtime = require("react/jsx-runtime");
45
- var Badge = (props) => {
47
+ var NotificationBadge = (props) => {
46
48
  const {
47
49
  children,
48
50
  type = "error",
@@ -53,14 +55,15 @@ var Badge = (props) => {
53
55
  } = props;
54
56
  const showBadge = dot || count !== void 0 && count > 0;
55
57
  const displayCount = count !== void 0 && count > maxCount ? `${maxCount}+` : count;
56
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: clsx_default("lib-xplat-badge", size), children: [
58
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: clsx_default("lib-xplat-notification-badge", size), children: [
57
59
  children,
58
60
  showBadge && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: clsx_default("badge-indicator", type, { dot }), children: !dot && displayCount })
59
61
  ] });
60
62
  };
61
- Badge.displayName = "Badge";
62
- var Badge_default = Badge;
63
+ NotificationBadge.displayName = "NotificationBadge";
64
+ var NotificationBadge_default = NotificationBadge;
63
65
  // Annotate the CommonJS export names for ESM import in node:
64
66
  0 && (module.exports = {
65
- Badge
67
+ Badge,
68
+ NotificationBadge
66
69
  });
@@ -1,29 +1,37 @@
1
- /* src/components/Badge/badge.scss */
2
- .lib-xplat-badge {
1
+ /* src/components/NotificationBadge/notificationBadge.scss */
2
+ .lib-xplat-notification-badge {
3
3
  position: relative;
4
4
  display: inline-flex;
5
5
  }
6
- .lib-xplat-badge.sm .badge-indicator {
6
+ .lib-xplat-notification-badge.sm .badge-indicator {
7
7
  min-width: var(--spacing-space-4);
8
8
  height: var(--spacing-space-4);
9
+ font-family: var(--semantic-typo-caption-2-r-font);
9
10
  font-size: var(--semantic-typo-caption-2-r-size);
11
+ line-height: var(--semantic-typo-caption-2-r-lh);
12
+ font-weight: var(--semantic-typo-caption-2-r-weight);
13
+ letter-spacing: var(--semantic-typo-caption-2-r-ls);
10
14
  padding: 0 var(--spacing-space-1);
11
15
  }
12
- .lib-xplat-badge.sm .badge-indicator.dot {
16
+ .lib-xplat-notification-badge.sm .badge-indicator.dot {
13
17
  min-width: var(--spacing-space-2);
14
18
  height: var(--spacing-space-2);
15
19
  }
16
- .lib-xplat-badge.lg .badge-indicator {
20
+ .lib-xplat-notification-badge.lg .badge-indicator {
17
21
  min-width: var(--spacing-space-6);
18
22
  height: var(--spacing-space-6);
23
+ font-family: var(--semantic-typo-caption-1-r-font);
19
24
  font-size: var(--semantic-typo-caption-1-r-size);
25
+ line-height: var(--semantic-typo-caption-1-r-lh);
26
+ font-weight: var(--semantic-typo-caption-1-r-weight);
27
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
20
28
  padding: 0 var(--spacing-space-2);
21
29
  }
22
- .lib-xplat-badge.lg .badge-indicator.dot {
30
+ .lib-xplat-notification-badge.lg .badge-indicator.dot {
23
31
  min-width: var(--spacing-space-2);
24
32
  height: var(--spacing-space-2);
25
33
  }
26
- .lib-xplat-badge .badge-indicator {
34
+ .lib-xplat-notification-badge .badge-indicator {
27
35
  position: absolute;
28
36
  top: 0;
29
37
  right: 0;
@@ -33,32 +41,35 @@
33
41
  justify-content: center;
34
42
  border-radius: var(--spacing-radius-full);
35
43
  color: var(--semantic-text-inverse);
36
- font-size: var(--semantic-typo-caption-2-r-size);
37
- font-weight: 600;
44
+ font-family: var(--semantic-typo-caption-2-sb-font);
45
+ font-size: var(--semantic-typo-caption-2-sb-size);
46
+ line-height: var(--semantic-typo-caption-2-sb-lh);
47
+ font-weight: var(--semantic-typo-caption-2-sb-weight);
48
+ letter-spacing: var(--semantic-typo-caption-2-sb-ls);
38
49
  line-height: 1;
39
50
  min-width: var(--spacing-space-4);
40
51
  height: var(--spacing-space-4);
41
52
  padding: 0 var(--spacing-space-1);
42
53
  box-sizing: border-box;
43
54
  }
44
- .lib-xplat-badge .badge-indicator.dot {
55
+ .lib-xplat-notification-badge .badge-indicator.dot {
45
56
  min-width: var(--spacing-space-2);
46
57
  height: var(--spacing-space-2);
47
58
  padding: 0;
48
59
  }
49
- .lib-xplat-badge .badge-indicator.error {
60
+ .lib-xplat-notification-badge .badge-indicator.error {
50
61
  background-color: var(--semantic-surface-error-default);
51
62
  }
52
- .lib-xplat-badge .badge-indicator.success {
63
+ .lib-xplat-notification-badge .badge-indicator.success {
53
64
  background-color: var(--semantic-surface-success-default);
54
65
  }
55
- .lib-xplat-badge .badge-indicator.warning {
66
+ .lib-xplat-notification-badge .badge-indicator.warning {
56
67
  background-color: var(--semantic-surface-warning-default);
57
68
  color: var(--semantic-text-primary);
58
69
  }
59
- .lib-xplat-badge .badge-indicator.info {
70
+ .lib-xplat-notification-badge .badge-indicator.info {
60
71
  background-color: var(--semantic-surface-info-default);
61
72
  }
62
- .lib-xplat-badge .badge-indicator.brand {
73
+ .lib-xplat-notification-badge .badge-indicator.brand {
63
74
  background-color: var(--semantic-surface-brand-default);
64
75
  }
@@ -1,19 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
-
4
- type BadgeType = "error" | "success" | "warning" | "info" | "brand";
5
- type BadgeSize = "sm" | "md" | "lg";
6
- interface BadgeProps {
7
- children: React.ReactNode;
8
- type?: BadgeType;
9
- count?: number;
10
- maxCount?: number;
11
- dot?: boolean;
12
- size?: BadgeSize;
13
- }
14
- declare const Badge: {
15
- (props: BadgeProps): react_jsx_runtime.JSX.Element;
16
- displayName: string;
17
- };
18
-
19
- export { Badge };
1
+ export { NotificationBadge as Badge, NotificationBadge, NotificationBadge as default } from '../NotificationBadge/index.cjs';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -1,19 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
-
4
- type BadgeType = "error" | "success" | "warning" | "info" | "brand";
5
- type BadgeSize = "sm" | "md" | "lg";
6
- interface BadgeProps {
7
- children: React.ReactNode;
8
- type?: BadgeType;
9
- count?: number;
10
- maxCount?: number;
11
- dot?: boolean;
12
- size?: BadgeSize;
13
- }
14
- declare const Badge: {
15
- (props: BadgeProps): react_jsx_runtime.JSX.Element;
16
- displayName: string;
17
- };
18
-
19
- export { Badge };
1
+ export { NotificationBadge as Badge, NotificationBadge, NotificationBadge as default } from '../NotificationBadge/index.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -14,9 +14,9 @@ function clsx() {
14
14
  }
15
15
  var clsx_default = clsx;
16
16
 
17
- // src/components/Badge/Badge.tsx
17
+ // src/components/NotificationBadge/NotificationBadge.tsx
18
18
  import { jsx, jsxs } from "react/jsx-runtime";
19
- var Badge = (props) => {
19
+ var NotificationBadge = (props) => {
20
20
  const {
21
21
  children,
22
22
  type = "error",
@@ -27,13 +27,15 @@ var Badge = (props) => {
27
27
  } = props;
28
28
  const showBadge = dot || count !== void 0 && count > 0;
29
29
  const displayCount = count !== void 0 && count > maxCount ? `${maxCount}+` : count;
30
- return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-badge", size), children: [
30
+ return /* @__PURE__ */ jsxs("div", { className: clsx_default("lib-xplat-notification-badge", size), children: [
31
31
  children,
32
32
  showBadge && /* @__PURE__ */ jsx("span", { className: clsx_default("badge-indicator", type, { dot }), children: !dot && displayCount })
33
33
  ] });
34
34
  };
35
- Badge.displayName = "Badge";
36
- var Badge_default = Badge;
35
+ NotificationBadge.displayName = "NotificationBadge";
36
+ var NotificationBadge_default = NotificationBadge;
37
37
  export {
38
- Badge_default as Badge
38
+ NotificationBadge_default as Badge,
39
+ NotificationBadge_default as NotificationBadge,
40
+ NotificationBadge_default as default
39
41
  };
@@ -13,20 +13,23 @@
13
13
  }
14
14
  .lib-xplat-box.outlined {
15
15
  border: 1px solid var(--semantic-border-primary);
16
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
16
+ box-shadow: var(--semantic-shadow-sm);
17
17
  }
18
18
  .lib-xplat-box.elevated {
19
19
  border: none;
20
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
20
+ box-shadow: var(--semantic-shadow-lg);
21
21
  }
22
22
  .lib-xplat-box.flat {
23
23
  border: none;
24
24
  background-color: var(--semantic-surface-neutral-secondary);
25
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
25
+ box-shadow: var(--semantic-shadow-sm);
26
26
  }
27
27
  .lib-xplat-box > .box-title {
28
- font-weight: 600;
29
- font-size: var(--semantic-typo-caption-1-r-size);
28
+ font-family: var(--semantic-typo-caption-1-sb-font);
29
+ font-size: var(--semantic-typo-caption-1-sb-size);
30
+ line-height: var(--semantic-typo-caption-1-sb-lh);
31
+ font-weight: var(--semantic-typo-caption-1-sb-weight);
32
+ letter-spacing: var(--semantic-typo-caption-1-sb-ls);
30
33
  color: var(--semantic-text-primary);
31
34
  padding: var(--spacing-space-3) var(--spacing-space-4);
32
35
  border-bottom: 1px solid var(--semantic-border-secondary);
@@ -15,7 +15,11 @@
15
15
  display: flex;
16
16
  align-items: center;
17
17
  gap: var(--spacing-space-1);
18
+ font-family: var(--semantic-typo-caption-1-r-font);
18
19
  font-size: var(--semantic-typo-caption-1-r-size);
20
+ line-height: var(--semantic-typo-caption-1-r-lh);
21
+ font-weight: var(--semantic-typo-caption-1-r-weight);
22
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
19
23
  }
20
24
  .lib-xplat-breadcrumb .link {
21
25
  color: var(--semantic-text-tertiary);
@@ -32,7 +36,7 @@
32
36
  }
33
37
  .lib-xplat-breadcrumb .current {
34
38
  color: var(--semantic-text-primary);
35
- font-weight: 500;
39
+ font-weight: var(--semantic-typo-label-1-m-weight);
36
40
  }
37
41
  .lib-xplat-breadcrumb .separator {
38
42
  color: var(--semantic-icon-secondary);
@@ -7,7 +7,7 @@
7
7
  gap: var(--spacing-space-2);
8
8
  white-space: nowrap;
9
9
  border-radius: var(--spacing-radius-md);
10
- font-weight: 500;
10
+ font-weight: var(--semantic-typo-label-1-m-weight);
11
11
  cursor: pointer;
12
12
  border: 1px solid transparent;
13
13
  transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
@@ -15,20 +15,29 @@
15
15
  .lib-xplat-button.sm {
16
16
  height: var(--spacing-control-height-sm);
17
17
  padding: 0 var(--spacing-space-3);
18
+ font-family: var(--semantic-typo-caption-1-r-font);
18
19
  font-size: var(--semantic-typo-caption-1-r-size);
19
20
  line-height: var(--semantic-typo-caption-1-r-lh);
21
+ font-weight: var(--semantic-typo-caption-1-r-weight);
22
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
20
23
  }
21
24
  .lib-xplat-button.md {
22
25
  height: var(--spacing-control-height-md);
23
26
  padding: 0 var(--spacing-space-4);
27
+ font-family: var(--semantic-typo-label-2-m-font);
24
28
  font-size: var(--semantic-typo-label-2-m-size);
25
29
  line-height: var(--semantic-typo-label-2-m-lh);
30
+ font-weight: var(--semantic-typo-label-2-m-weight);
31
+ letter-spacing: var(--semantic-typo-label-2-m-ls);
26
32
  }
27
33
  .lib-xplat-button.lg {
28
34
  height: var(--spacing-control-height-lg);
29
35
  padding: 0 var(--spacing-space-6);
36
+ font-family: var(--semantic-typo-label-1-m-font);
30
37
  font-size: var(--semantic-typo-label-1-m-size);
31
38
  line-height: var(--semantic-typo-label-1-m-lh);
39
+ font-weight: var(--semantic-typo-label-1-m-weight);
40
+ letter-spacing: var(--semantic-typo-label-1-m-ls);
32
41
  }
33
42
  .lib-xplat-button:disabled {
34
43
  cursor: not-allowed;
@@ -15,7 +15,7 @@
15
15
  }
16
16
  .lib-xplat-calendar .calendar-title {
17
17
  font-size: clamp(14px, 3cqi, 20px);
18
- font-weight: 600;
18
+ font-weight: var(--semantic-typo-label-1-sb-weight);
19
19
  color: var(--semantic-text-primary);
20
20
  min-width: 120px;
21
21
  text-align: center;
@@ -70,7 +70,7 @@
70
70
  .lib-xplat-calendar .calendar-weekday {
71
71
  text-align: center;
72
72
  font-size: clamp(11px, 2cqi, 14px);
73
- font-weight: 500;
73
+ font-weight: var(--semantic-typo-label-1-m-weight);
74
74
  padding: var(--spacing-space-2) 0;
75
75
  color: var(--semantic-text-tertiary);
76
76
  }
@@ -116,14 +116,14 @@
116
116
  color: var(--semantic-text-disabled);
117
117
  }
118
118
  .lib-xplat-calendar .calendar-day.today .calendar-day-number {
119
- font-weight: 700;
119
+ font-weight: var(--semantic-typo-display-1-b-weight);
120
120
  color: var(--semantic-surface-brand-default);
121
121
  }
122
122
  .lib-xplat-calendar .calendar-day.selected {
123
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
- font-weight: 700;
126
+ font-weight: var(--semantic-typo-display-1-b-weight);
127
127
  }
128
128
  .lib-xplat-calendar .calendar-day.selected:hover {
129
129
  background-color: color-mix(in srgb, var(--calendar-selected-color, var(--semantic-text-tertiary)) 10%, transparent);
@@ -153,9 +153,13 @@
153
153
  cursor: pointer;
154
154
  }
155
155
  .lib-xplat-calendar .calendar-event-more {
156
+ font-family: var(--semantic-typo-caption-2-r-font);
156
157
  font-size: var(--semantic-typo-caption-2-r-size);
157
- color: var(--semantic-text-tertiary);
158
+ line-height: var(--semantic-typo-caption-2-r-lh);
159
+ font-weight: var(--semantic-typo-caption-2-r-weight);
160
+ letter-spacing: var(--semantic-typo-caption-2-r-ls);
158
161
  line-height: 1;
162
+ color: var(--semantic-text-tertiary);
159
163
  }
160
164
  .lib-xplat-calendar .calendar-picker-grid {
161
165
  display: grid;
@@ -182,5 +186,5 @@
182
186
  .lib-xplat-calendar .calendar-picker-cell.active {
183
187
  background-color: var(--semantic-surface-neutral-tertiary);
184
188
  color: var(--semantic-text-inverse);
185
- font-weight: 600;
189
+ font-weight: var(--semantic-typo-label-1-sb-weight);
186
190
  }
@@ -17,7 +17,7 @@
17
17
  border-radius: var(--spacing-radius-md) var(--spacing-radius-md) 0 0;
18
18
  background-color: var(--semantic-surface-neutral-disabled);
19
19
  color: var(--semantic-text-tertiary);
20
- font-weight: 500;
20
+ font-weight: var(--semantic-typo-label-1-m-weight);
21
21
  transition: background-color 0.2s, color 0.2s;
22
22
  }
23
23
  .lib-xplat-card-tab .card-tab-trigger:hover:not(.active) {
@@ -27,7 +27,7 @@
27
27
  .lib-xplat-card-tab .card-tab-trigger.active {
28
28
  background-color: var(--semantic-surface-neutral-primary);
29
29
  color: var(--semantic-text-primary);
30
- font-weight: 600;
30
+ font-weight: var(--semantic-typo-label-1-sb-weight);
31
31
  z-index: 1;
32
32
  margin-bottom: -1px;
33
33
  padding-bottom: calc(var(--tab-py) + 1px);
@@ -46,7 +46,11 @@
46
46
  .lib-xplat-card-tab.sm .card-tab-trigger {
47
47
  --tab-py: var(--spacing-space-1);
48
48
  padding: var(--spacing-space-1) var(--spacing-space-3);
49
+ font-family: var(--semantic-typo-caption-1-r-font);
49
50
  font-size: var(--semantic-typo-caption-1-r-size);
51
+ line-height: var(--semantic-typo-caption-1-r-lh);
52
+ font-weight: var(--semantic-typo-caption-1-r-weight);
53
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
50
54
  }
51
55
  .lib-xplat-card-tab.sm .card-tab-body {
52
56
  padding: var(--spacing-space-4);
@@ -57,7 +61,11 @@
57
61
  .lib-xplat-card-tab.md .card-tab-trigger {
58
62
  --tab-py: 6px;
59
63
  padding: 6px var(--spacing-space-4);
64
+ font-family: var(--semantic-typo-caption-1-r-font);
60
65
  font-size: var(--semantic-typo-caption-1-r-size);
66
+ line-height: var(--semantic-typo-caption-1-r-lh);
67
+ font-weight: var(--semantic-typo-caption-1-r-weight);
68
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
61
69
  }
62
70
  .lib-xplat-card-tab.md .card-tab-body {
63
71
  padding: var(--spacing-space-5);
@@ -68,7 +76,11 @@
68
76
  .lib-xplat-card-tab.lg .card-tab-trigger {
69
77
  --tab-py: var(--spacing-space-2);
70
78
  padding: var(--spacing-space-2) var(--spacing-space-5);
79
+ font-family: var(--semantic-typo-label-2-m-font);
71
80
  font-size: var(--semantic-typo-label-2-m-size);
81
+ line-height: var(--semantic-typo-label-2-m-lh);
82
+ font-weight: var(--semantic-typo-label-2-m-weight);
83
+ letter-spacing: var(--semantic-typo-label-2-m-ls);
72
84
  }
73
85
  .lib-xplat-card-tab.lg .card-tab-body {
74
86
  padding: var(--spacing-space-6);
@@ -11,18 +11,22 @@
11
11
  animation: tooltip-show 120ms ease-out;
12
12
  }
13
13
  .lib-xplat-tooltip .tooltip-title {
14
+ font-family: var(--semantic-typo-caption-1-r-font);
14
15
  font-size: var(--semantic-typo-caption-1-r-size);
15
16
  line-height: var(--semantic-typo-caption-1-r-lh);
16
- font-weight: 400;
17
+ font-weight: var(--semantic-typo-caption-1-r-weight);
18
+ letter-spacing: var(--semantic-typo-caption-1-r-ls);
17
19
  }
18
20
  .lib-xplat-tooltip .tooltip-desc {
21
+ font-family: var(--semantic-typo-caption-2-r-font);
19
22
  font-size: var(--semantic-typo-caption-2-r-size);
20
23
  line-height: var(--semantic-typo-caption-2-r-lh);
21
- font-weight: 400;
24
+ font-weight: var(--semantic-typo-caption-2-r-weight);
25
+ letter-spacing: var(--semantic-typo-caption-2-r-ls);
22
26
  }
23
27
  .lib-xplat-tooltip.dark {
24
28
  background-color: var(--semantic-surface-neutral-tertiary);
25
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
29
+ box-shadow: var(--semantic-shadow-md);
26
30
  }
27
31
  .lib-xplat-tooltip.dark .tooltip-title,
28
32
  .lib-xplat-tooltip.dark .tooltip-desc {
@@ -30,7 +34,7 @@
30
34
  }
31
35
  .lib-xplat-tooltip.light {
32
36
  background-color: var(--semantic-surface-neutral-primary);
33
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
37
+ box-shadow: var(--semantic-shadow-md);
34
38
  }
35
39
  .lib-xplat-tooltip.light .tooltip-title,
36
40
  .lib-xplat-tooltip.light .tooltip-desc {
@@ -67,12 +71,19 @@
67
71
  stroke-width: 1;
68
72
  }
69
73
  .lib-xplat-chart .chart-axis-label {
74
+ font-family: var(--semantic-typo-caption-2-r-font);
70
75
  font-size: var(--semantic-typo-caption-2-r-size);
76
+ line-height: var(--semantic-typo-caption-2-r-lh);
77
+ font-weight: var(--semantic-typo-caption-2-r-weight);
78
+ letter-spacing: var(--semantic-typo-caption-2-r-ls);
71
79
  fill: var(--semantic-text-tertiary);
72
80
  }
73
81
  .lib-xplat-chart .chart-pie-label {
74
- font-size: var(--semantic-typo-caption-2-r-size);
75
- font-weight: 600;
82
+ font-family: var(--semantic-typo-caption-2-sb-font);
83
+ font-size: var(--semantic-typo-caption-2-sb-size);
84
+ line-height: var(--semantic-typo-caption-2-sb-lh);
85
+ font-weight: var(--semantic-typo-caption-2-sb-weight);
86
+ letter-spacing: var(--semantic-typo-caption-2-sb-ls);
76
87
  fill: var(--semantic-text-inverse);
77
88
  pointer-events: none;
78
89
  opacity: 1;
@@ -119,7 +130,7 @@
119
130
  .lib-xplat-chart .chart-slice:hover {
120
131
  opacity: 1 !important;
121
132
  transform: scale(1.03);
122
- filter: brightness(1.05) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
133
+ filter: brightness(1.05) drop-shadow(0 2px 6px var(--semantic-interaction-overlay-25));
123
134
  }
124
135
  .lib-xplat-chart .chart-area {
125
136
  opacity: 1;
@@ -135,8 +146,11 @@
135
146
  transition: cx 0.05s, cy 0.05s;
136
147
  }
137
148
  .lib-xplat-chart .chart-crosshair-label {
138
- font-size: var(--semantic-typo-caption-2-r-size);
139
- font-weight: 500;
149
+ font-family: var(--semantic-typo-caption-2-m-font);
150
+ font-size: var(--semantic-typo-caption-2-m-size);
151
+ line-height: var(--semantic-typo-caption-2-m-lh);
152
+ font-weight: var(--semantic-typo-caption-2-m-weight);
153
+ letter-spacing: var(--semantic-typo-caption-2-m-ls);
140
154
  color: var(--semantic-text-primary);
141
155
  text-align: center;
142
156
  white-space: nowrap;
@@ -181,12 +195,19 @@
181
195
  flex-direction: column;
182
196
  }
183
197
  .lib-xplat-chart .chart-legend-label {
198
+ font-family: var(--semantic-typo-caption-2-r-font);
184
199
  font-size: var(--semantic-typo-caption-2-r-size);
200
+ line-height: var(--semantic-typo-caption-2-r-lh);
201
+ font-weight: var(--semantic-typo-caption-2-r-weight);
202
+ letter-spacing: var(--semantic-typo-caption-2-r-ls);
185
203
  color: var(--semantic-text-tertiary);
186
204
  }
187
205
  .lib-xplat-chart .chart-legend-value {
188
- font-size: var(--semantic-typo-caption-1-r-size);
189
- font-weight: 600;
206
+ font-family: var(--semantic-typo-caption-1-sb-font);
207
+ font-size: var(--semantic-typo-caption-1-sb-size);
208
+ line-height: var(--semantic-typo-caption-1-sb-lh);
209
+ font-weight: var(--semantic-typo-caption-1-sb-weight);
210
+ letter-spacing: var(--semantic-typo-caption-1-sb-ls);
190
211
  color: var(--semantic-text-primary);
191
212
  }
192
213
  @keyframes chart-bar-grow {
@@ -115,8 +115,11 @@
115
115
  width: 100%;
116
116
  color: var(--semantic-text-secondary);
117
117
  resize: none;
118
+ font-family: var(--semantic-typo-label-2-m-font);
118
119
  font-size: var(--semantic-typo-label-2-m-size);
119
120
  line-height: var(--semantic-typo-label-2-m-lh);
121
+ font-weight: var(--semantic-typo-label-2-m-weight);
122
+ letter-spacing: var(--semantic-typo-label-2-m-ls);
120
123
  font-family: inherit;
121
124
  }
122
125
  .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
@@ -156,8 +159,11 @@
156
159
  max-height: 200px;
157
160
  overflow-y: auto;
158
161
  padding: 4px 0;
162
+ font-family: var(--semantic-typo-label-2-m-font);
159
163
  font-size: var(--semantic-typo-label-2-m-size);
160
164
  line-height: var(--semantic-typo-label-2-m-lh);
165
+ font-weight: var(--semantic-typo-label-2-m-weight);
166
+ letter-spacing: var(--semantic-typo-label-2-m-ls);
161
167
  color: var(--semantic-text-primary);
162
168
  background: transparent;
163
169
  }