@x-plat/design-system 0.5.54 → 0.5.58

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 (43) hide show
  1. package/dist/components/Accordion/index.css +2 -2
  2. package/dist/components/Alert/index.css +3 -3
  3. package/dist/components/Avatar/index.css +2 -2
  4. package/dist/components/Box/index.css +1 -1
  5. package/dist/components/Breadcrumb/index.css +1 -1
  6. package/dist/components/Button/index.css +6 -6
  7. package/dist/components/Calendar/index.css +1 -1
  8. package/dist/components/CardTab/index.css +2 -2
  9. package/dist/components/Chart/index.css +1 -1
  10. package/dist/components/ChatInput/index.css +4 -4
  11. package/dist/components/CheckBox/index.css +5 -5
  12. package/dist/components/Chip/index.css +2 -2
  13. package/dist/components/DatePicker/index.css +20 -18
  14. package/dist/components/Drawer/index.css +1 -1
  15. package/dist/components/Dropdown/index.css +1 -1
  16. package/dist/components/Editor/index.css +1 -1
  17. package/dist/components/EmptyState/index.css +1 -1
  18. package/dist/components/FileUpload/index.css +1 -1
  19. package/dist/components/HtmlTypeWriter/index.css +1 -1
  20. package/dist/components/IconButton/index.css +2 -2
  21. package/dist/components/ImageSelector/index.css +1 -1
  22. package/dist/components/Input/index.css +9 -7
  23. package/dist/components/Pagination/index.css +6 -6
  24. package/dist/components/Radio/index.css +6 -6
  25. package/dist/components/Select/index.cjs +8 -3
  26. package/dist/components/Select/index.css +29 -24
  27. package/dist/components/Select/index.js +8 -3
  28. package/dist/components/Steps/index.css +1 -1
  29. package/dist/components/Swiper/index.cjs +1 -0
  30. package/dist/components/Swiper/index.css +5 -0
  31. package/dist/components/Swiper/index.js +1 -0
  32. package/dist/components/Tab/index.css +4 -4
  33. package/dist/components/Table/index.css +2 -2
  34. package/dist/components/Tag/index.css +2 -2
  35. package/dist/components/TextArea/index.css +2 -2
  36. package/dist/components/Toast/index.css +3 -3
  37. package/dist/components/index.cjs +9 -3
  38. package/dist/components/index.css +107 -95
  39. package/dist/components/index.js +9 -3
  40. package/dist/index.cjs +9 -3
  41. package/dist/index.css +107 -95
  42. package/dist/index.js +9 -3
  43. package/package.json +1 -1
@@ -21,7 +21,7 @@
21
21
  background: none;
22
22
  border: none;
23
23
  cursor: pointer;
24
- font-size: var(--semantic-typo-label-2-m-size);
24
+ font-size: var(--semantic-typo-caption-1-r-size);
25
25
  font-weight: 500;
26
26
  color: var(--semantic-text-strong);
27
27
  text-align: left;
@@ -47,7 +47,7 @@
47
47
  }
48
48
  .lib-xplat-accordion .accordion-content {
49
49
  padding: 0 var(--spacing-space-4) 14px;
50
- font-size: var(--semantic-typo-label-2-m-size);
50
+ font-size: var(--semantic-typo-caption-1-r-size);
51
51
  color: var(--semantic-text-subtle);
52
52
  line-height: 1.6;
53
53
  }
@@ -6,8 +6,8 @@
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-size: var(--semantic-typo-label-2-m-size);
10
- line-height: var(--semantic-typo-label-2-m-lh);
9
+ font-size: var(--semantic-typo-caption-1-r-size);
10
+ line-height: var(--semantic-typo-caption-1-r-lh);
11
11
  border: 1px solid;
12
12
  }
13
13
  .lib-xplat-alert .content {
@@ -17,7 +17,7 @@
17
17
  background: none;
18
18
  border: none;
19
19
  cursor: pointer;
20
- font-size: var(--semantic-typo-body-1-m-size);
20
+ font-size: var(--semantic-typo-label-1-m-size);
21
21
  line-height: 1;
22
22
  margin-left: var(--spacing-space-2);
23
23
  padding: 0;
@@ -16,12 +16,12 @@
16
16
  .lib-xplat-avatar.md {
17
17
  width: var(--spacing-control-height-md);
18
18
  height: var(--spacing-control-height-md);
19
- font-size: var(--semantic-typo-label-2-m-size);
19
+ font-size: var(--semantic-typo-caption-1-r-size);
20
20
  }
21
21
  .lib-xplat-avatar.lg {
22
22
  width: var(--spacing-control-height-lg);
23
23
  height: var(--spacing-control-height-lg);
24
- font-size: var(--semantic-typo-body-1-m-size);
24
+ font-size: var(--semantic-typo-label-1-m-size);
25
25
  }
26
26
  .lib-xplat-avatar img {
27
27
  width: 100%;
@@ -26,7 +26,7 @@
26
26
  }
27
27
  .lib-xplat-box > .box-title {
28
28
  font-weight: 600;
29
- font-size: var(--semantic-typo-label-2-m-size);
29
+ font-size: var(--semantic-typo-caption-1-r-size);
30
30
  color: var(--semantic-text-strong);
31
31
  padding: var(--spacing-space-3) var(--spacing-space-4);
32
32
  border-bottom: 1px solid var(--semantic-border-subtle);
@@ -15,7 +15,7 @@
15
15
  display: flex;
16
16
  align-items: center;
17
17
  gap: var(--spacing-space-1);
18
- font-size: var(--semantic-typo-label-2-m-size);
18
+ font-size: var(--semantic-typo-caption-1-r-size);
19
19
  }
20
20
  .lib-xplat-breadcrumb .link {
21
21
  color: var(--semantic-text-muted);
@@ -15,20 +15,20 @@
15
15
  .lib-xplat-button.sm {
16
16
  height: var(--spacing-control-height-sm);
17
17
  padding: 0 var(--spacing-space-3);
18
- font-size: var(--semantic-typo-label-2-m-size);
19
- line-height: var(--semantic-typo-label-2-m-lh);
18
+ font-size: var(--semantic-typo-caption-1-r-size);
19
+ line-height: var(--semantic-typo-caption-1-r-lh);
20
20
  }
21
21
  .lib-xplat-button.md {
22
22
  height: var(--spacing-control-height-md);
23
23
  padding: 0 var(--spacing-space-4);
24
- font-size: var(--semantic-typo-label-1-m-size);
25
- line-height: var(--semantic-typo-label-1-m-lh);
24
+ font-size: var(--semantic-typo-label-2-m-size);
25
+ line-height: var(--semantic-typo-label-2-m-lh);
26
26
  }
27
27
  .lib-xplat-button.lg {
28
28
  height: var(--spacing-control-height-lg);
29
29
  padding: 0 var(--spacing-space-6);
30
- font-size: var(--semantic-typo-body-1-m-size);
31
- line-height: var(--semantic-typo-body-1-m-lh);
30
+ font-size: var(--semantic-typo-label-1-m-size);
31
+ line-height: var(--semantic-typo-label-1-m-lh);
32
32
  }
33
33
  .lib-xplat-button:disabled {
34
34
  cursor: not-allowed;
@@ -46,7 +46,7 @@
46
46
  background-color: var(--semantic-surface-neutral-disabled);
47
47
  }
48
48
  .lib-xplat-calendar .calendar-nav svg {
49
- font-size: var(--semantic-typo-label-1-m-size);
49
+ font-size: var(--semantic-typo-label-2-m-size);
50
50
  }
51
51
  .lib-xplat-calendar .calendar-today-btn {
52
52
  margin-left: auto;
@@ -57,7 +57,7 @@
57
57
  .lib-xplat-card-tab.md .card-tab-trigger {
58
58
  --tab-py: 6px;
59
59
  padding: 6px var(--spacing-space-4);
60
- font-size: var(--semantic-typo-label-2-m-size);
60
+ font-size: var(--semantic-typo-caption-1-r-size);
61
61
  }
62
62
  .lib-xplat-card-tab.md .card-tab-body {
63
63
  padding: var(--spacing-space-5);
@@ -68,7 +68,7 @@
68
68
  .lib-xplat-card-tab.lg .card-tab-trigger {
69
69
  --tab-py: var(--spacing-space-2);
70
70
  padding: var(--spacing-space-2) var(--spacing-space-5);
71
- font-size: var(--semantic-typo-label-1-m-size);
71
+ font-size: var(--semantic-typo-label-2-m-size);
72
72
  }
73
73
  .lib-xplat-card-tab.lg .card-tab-body {
74
74
  padding: var(--spacing-space-6);
@@ -185,7 +185,7 @@
185
185
  color: var(--semantic-text-muted);
186
186
  }
187
187
  .lib-xplat-chart .chart-legend-value {
188
- font-size: var(--semantic-typo-label-2-m-size);
188
+ font-size: var(--semantic-typo-caption-1-r-size);
189
189
  font-weight: 600;
190
190
  color: var(--semantic-text-strong);
191
191
  }
@@ -12,12 +12,12 @@
12
12
  .lib-xplat-icon-button.sm {
13
13
  width: var(--spacing-control-height-sm);
14
14
  height: var(--spacing-control-height-sm);
15
- font-size: var(--semantic-typo-label-2-m-size);
15
+ font-size: var(--semantic-typo-caption-1-r-size);
16
16
  }
17
17
  .lib-xplat-icon-button.md {
18
18
  width: var(--spacing-control-height-md);
19
19
  height: var(--spacing-control-height-md);
20
- font-size: var(--semantic-typo-body-1-m-size);
20
+ font-size: var(--semantic-typo-label-1-m-size);
21
21
  }
22
22
  .lib-xplat-icon-button.lg {
23
23
  width: var(--spacing-control-height-lg);
@@ -109,8 +109,8 @@
109
109
  max-height: 200px;
110
110
  overflow-y: auto;
111
111
  padding: 4px 0;
112
- font-size: var(--semantic-typo-label-1-m-size);
113
- line-height: var(--semantic-typo-label-1-m-lh);
112
+ font-size: var(--semantic-typo-label-2-m-size);
113
+ line-height: var(--semantic-typo-label-2-m-lh);
114
114
  color: var(--semantic-text-strong);
115
115
  background: transparent;
116
116
  }
@@ -24,17 +24,17 @@
24
24
  height: var(--spacing-space-6);
25
25
  }
26
26
  .lib-xplat-checkbox.sm > .label {
27
+ font-size: var(--semantic-typo-caption-1-r-size);
28
+ line-height: var(--semantic-typo-caption-1-r-lh);
29
+ }
30
+ .lib-xplat-checkbox.md > .label {
27
31
  font-size: var(--semantic-typo-label-2-m-size);
28
32
  line-height: var(--semantic-typo-label-2-m-lh);
29
33
  }
30
- .lib-xplat-checkbox.md > .label {
34
+ .lib-xplat-checkbox.lg > .label {
31
35
  font-size: var(--semantic-typo-label-1-m-size);
32
36
  line-height: var(--semantic-typo-label-1-m-lh);
33
37
  }
34
- .lib-xplat-checkbox.lg > .label {
35
- font-size: var(--semantic-typo-body-1-m-size);
36
- line-height: var(--semantic-typo-body-1-m-lh);
37
- }
38
38
  .lib-xplat-checkbox > .checkbox {
39
39
  display: flex;
40
40
  align-items: center;
@@ -13,11 +13,11 @@
13
13
  }
14
14
  .lib-xplat-chip.md {
15
15
  padding: 2px var(--spacing-space-3);
16
- font-size: var(--semantic-typo-label-2-m-size);
16
+ font-size: var(--semantic-typo-caption-1-r-size);
17
17
  }
18
18
  .lib-xplat-chip.lg {
19
19
  padding: var(--spacing-space-1) var(--spacing-space-4);
20
- font-size: var(--semantic-typo-label-1-m-size);
20
+ font-size: var(--semantic-typo-label-2-m-size);
21
21
  }
22
22
  .lib-xplat-chip.primary {
23
23
  color: var(--semantic-text-inverse);
@@ -15,20 +15,20 @@
15
15
  .lib-xplat-button.sm {
16
16
  height: var(--spacing-control-height-sm);
17
17
  padding: 0 var(--spacing-space-3);
18
- font-size: var(--semantic-typo-label-2-m-size);
19
- line-height: var(--semantic-typo-label-2-m-lh);
18
+ font-size: var(--semantic-typo-caption-1-r-size);
19
+ line-height: var(--semantic-typo-caption-1-r-lh);
20
20
  }
21
21
  .lib-xplat-button.md {
22
22
  height: var(--spacing-control-height-md);
23
23
  padding: 0 var(--spacing-space-4);
24
- font-size: var(--semantic-typo-label-1-m-size);
25
- line-height: var(--semantic-typo-label-1-m-lh);
24
+ font-size: var(--semantic-typo-label-2-m-size);
25
+ line-height: var(--semantic-typo-label-2-m-lh);
26
26
  }
27
27
  .lib-xplat-button.lg {
28
28
  height: var(--spacing-control-height-lg);
29
29
  padding: 0 var(--spacing-space-6);
30
- font-size: var(--semantic-typo-body-1-m-size);
31
- line-height: var(--semantic-typo-body-1-m-lh);
30
+ font-size: var(--semantic-typo-label-1-m-size);
31
+ line-height: var(--semantic-typo-label-1-m-lh);
32
32
  }
33
33
  .lib-xplat-button:disabled {
34
34
  cursor: not-allowed;
@@ -124,18 +124,18 @@
124
124
  }
125
125
  .lib-xplat-input-wrap .lib-xplat-input.sm {
126
126
  height: var(--spacing-control-height-sm);
127
- font-size: var(--semantic-typo-label-2-m-size);
128
- line-height: var(--semantic-typo-label-2-m-lh);
127
+ font-size: var(--semantic-typo-caption-1-r-size);
128
+ line-height: var(--semantic-typo-caption-1-r-lh);
129
129
  }
130
130
  .lib-xplat-input-wrap .lib-xplat-input.md {
131
131
  height: var(--spacing-control-height-md);
132
- font-size: var(--semantic-typo-label-1-m-size);
133
- line-height: var(--semantic-typo-label-1-m-lh);
132
+ font-size: var(--semantic-typo-label-2-m-size);
133
+ line-height: var(--semantic-typo-label-2-m-lh);
134
134
  }
135
135
  .lib-xplat-input-wrap .lib-xplat-input.lg {
136
136
  height: var(--spacing-control-height-lg);
137
- font-size: var(--semantic-typo-body-1-m-size);
138
- line-height: var(--semantic-typo-body-1-m-lh);
137
+ font-size: var(--semantic-typo-label-1-m-size);
138
+ line-height: var(--semantic-typo-label-1-m-lh);
139
139
  }
140
140
  .lib-xplat-input-wrap .lib-xplat-input.disabled {
141
141
  background-color: var(--semantic-surface-neutral-disabled);
@@ -149,6 +149,8 @@
149
149
  padding-right: var(--spacing-space-2);
150
150
  width: 100%;
151
151
  color: var(--semantic-text-subtle);
152
+ font-size: inherit;
153
+ font-family: inherit;
152
154
  }
153
155
  .lib-xplat-input-wrap .lib-xplat-input > input :disabled {
154
156
  cursor: not-allowed;
@@ -193,7 +195,7 @@
193
195
  color: var(--semantic-text-error);
194
196
  }
195
197
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
196
- font-size: var(--semantic-typo-label-1-m-size);
198
+ font-size: var(--semantic-typo-label-2-m-size);
197
199
  }
198
200
 
199
201
  /* src/components/Modal/modal.scss */
@@ -316,7 +318,7 @@
316
318
  background-color: var(--semantic-surface-neutral-disabled);
317
319
  }
318
320
  .lib-xplat-datepicker .datepicker-nav svg {
319
- font-size: var(--semantic-typo-label-1-m-size);
321
+ font-size: var(--semantic-typo-label-2-m-size);
320
322
  }
321
323
  .lib-xplat-datepicker .datepicker-weekdays {
322
324
  display: grid;
@@ -509,15 +511,15 @@
509
511
  }
510
512
  .lib-xplat-tab.sm {
511
513
  height: var(--spacing-control-height-sm);
512
- font-size: var(--semantic-typo-label-2-m-size);
514
+ font-size: var(--semantic-typo-caption-1-r-size);
513
515
  }
514
516
  .lib-xplat-tab.md {
515
517
  height: var(--spacing-control-height-md);
516
- font-size: var(--semantic-typo-label-1-m-size);
518
+ font-size: var(--semantic-typo-label-2-m-size);
517
519
  }
518
520
  .lib-xplat-tab.lg {
519
521
  height: var(--spacing-control-height-lg);
520
- font-size: var(--semantic-typo-body-1-m-size);
522
+ font-size: var(--semantic-typo-label-1-m-size);
521
523
  }
522
524
  .lib-xplat-tab.type-default {
523
525
  width: 100%;
@@ -555,7 +557,7 @@
555
557
  justify-content: center;
556
558
  white-space: nowrap;
557
559
  padding: 0 var(--spacing-space-3);
558
- font-size: var(--semantic-typo-label-1-m-size);
560
+ font-size: var(--semantic-typo-label-2-m-size);
559
561
  font-weight: 500;
560
562
  height: 100%;
561
563
  background: none;
@@ -58,7 +58,7 @@
58
58
  border-bottom: 1px solid var(--semantic-border-default);
59
59
  }
60
60
  .lib-xplat-drawer .drawer-title {
61
- font-size: var(--semantic-typo-label-1-m-size);
61
+ font-size: var(--semantic-typo-label-2-m-size);
62
62
  font-weight: 600;
63
63
  color: var(--semantic-text-strong);
64
64
  }
@@ -34,7 +34,7 @@
34
34
  padding: var(--spacing-space-2) 14px;
35
35
  border: none;
36
36
  background: none;
37
- font-size: var(--semantic-typo-label-2-m-size);
37
+ font-size: var(--semantic-typo-caption-1-r-size);
38
38
  color: var(--semantic-text-strong);
39
39
  cursor: pointer;
40
40
  text-align: left;
@@ -89,7 +89,7 @@
89
89
  font-size: var(--semantic-typo-heading-1-m-size);
90
90
  }
91
91
  .lib-xplat-editor__editable h3 {
92
- font-size: var(--semantic-typo-body-1-m-size);
92
+ font-size: var(--semantic-typo-label-1-m-size);
93
93
  }
94
94
  .lib-xplat-editor__editable p {
95
95
  margin: var(--spacing-space-2) 0;
@@ -17,7 +17,7 @@
17
17
  font-size: var(--semantic-typo-display-1-b-size);
18
18
  }
19
19
  .lib-xplat-empty-state .empty-title {
20
- font-size: var(--semantic-typo-label-2-m-size);
20
+ font-size: var(--semantic-typo-caption-1-r-size);
21
21
  font-weight: 500;
22
22
  color: var(--semantic-text-subtle);
23
23
  margin: 0;
@@ -32,7 +32,7 @@
32
32
  font-size: var(--semantic-typo-display-2-sb-size);
33
33
  }
34
34
  .lib-xplat-file-upload .upload-label {
35
- font-size: var(--semantic-typo-label-2-m-size);
35
+ font-size: var(--semantic-typo-caption-1-r-size);
36
36
  font-weight: 500;
37
37
  color: var(--semantic-text-subtle);
38
38
  margin: 0;
@@ -1,7 +1,7 @@
1
1
  /* src/components/HtmlTypeWriter/htmlTypeWriter.scss */
2
2
  .lib-xplat-htmlTypewriter {
3
3
  width: 100%;
4
- font-size: var(--semantic-typo-label-1-m-size);
4
+ font-size: var(--semantic-typo-label-2-m-size);
5
5
  }
6
6
  .lib-xplat-htmlTypewriter h1,
7
7
  .lib-xplat-htmlTypewriter h2,
@@ -12,12 +12,12 @@
12
12
  .lib-xplat-icon-button.sm {
13
13
  width: var(--spacing-control-height-sm);
14
14
  height: var(--spacing-control-height-sm);
15
- font-size: var(--semantic-typo-label-2-m-size);
15
+ font-size: var(--semantic-typo-caption-1-r-size);
16
16
  }
17
17
  .lib-xplat-icon-button.md {
18
18
  width: var(--spacing-control-height-md);
19
19
  height: var(--spacing-control-height-md);
20
- font-size: var(--semantic-typo-body-1-m-size);
20
+ font-size: var(--semantic-typo-label-1-m-size);
21
21
  }
22
22
  .lib-xplat-icon-button.lg {
23
23
  width: var(--spacing-control-height-lg);
@@ -51,7 +51,7 @@
51
51
  }
52
52
  .lib-xplat-imageselector > .content .skeleton > .label {
53
53
  margin-top: var(--spacing-space-1);
54
- font-size: var(--semantic-typo-label-2-m-size);
54
+ font-size: var(--semantic-typo-caption-1-r-size);
55
55
  color: var(--semantic-text-muted);
56
56
  }
57
57
  .lib-xplat-imageselector > .content .skeleton:hover > .icon-wrapper {
@@ -27,18 +27,18 @@
27
27
  }
28
28
  .lib-xplat-input-wrap .lib-xplat-input.sm {
29
29
  height: var(--spacing-control-height-sm);
30
- font-size: var(--semantic-typo-label-2-m-size);
31
- line-height: var(--semantic-typo-label-2-m-lh);
30
+ font-size: var(--semantic-typo-caption-1-r-size);
31
+ line-height: var(--semantic-typo-caption-1-r-lh);
32
32
  }
33
33
  .lib-xplat-input-wrap .lib-xplat-input.md {
34
34
  height: var(--spacing-control-height-md);
35
- font-size: var(--semantic-typo-label-1-m-size);
36
- line-height: var(--semantic-typo-label-1-m-lh);
35
+ font-size: var(--semantic-typo-label-2-m-size);
36
+ line-height: var(--semantic-typo-label-2-m-lh);
37
37
  }
38
38
  .lib-xplat-input-wrap .lib-xplat-input.lg {
39
39
  height: var(--spacing-control-height-lg);
40
- font-size: var(--semantic-typo-body-1-m-size);
41
- line-height: var(--semantic-typo-body-1-m-lh);
40
+ font-size: var(--semantic-typo-label-1-m-size);
41
+ line-height: var(--semantic-typo-label-1-m-lh);
42
42
  }
43
43
  .lib-xplat-input-wrap .lib-xplat-input.disabled {
44
44
  background-color: var(--semantic-surface-neutral-disabled);
@@ -52,6 +52,8 @@
52
52
  padding-right: var(--spacing-space-2);
53
53
  width: 100%;
54
54
  color: var(--semantic-text-subtle);
55
+ font-size: inherit;
56
+ font-family: inherit;
55
57
  }
56
58
  .lib-xplat-input-wrap .lib-xplat-input > input :disabled {
57
59
  cursor: not-allowed;
@@ -96,5 +98,5 @@
96
98
  color: var(--semantic-text-error);
97
99
  }
98
100
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
99
- font-size: var(--semantic-typo-label-1-m-size);
101
+ font-size: var(--semantic-typo-label-2-m-size);
100
102
  }
@@ -15,17 +15,17 @@
15
15
  font-size: var(--semantic-typo-caption-2-r-size);
16
16
  }
17
17
  .lib-xplat-pagination.sm .page-btn svg {
18
- font-size: var(--semantic-typo-label-2-m-size);
18
+ font-size: var(--semantic-typo-caption-1-r-size);
19
19
  }
20
20
  .lib-xplat-pagination.lg .dots {
21
21
  width: var(--spacing-control-height-md);
22
22
  height: var(--spacing-control-height-md);
23
- font-size: var(--semantic-typo-label-1-m-size);
23
+ font-size: var(--semantic-typo-label-2-m-size);
24
24
  }
25
25
  .lib-xplat-pagination.lg .page-btn {
26
26
  min-width: var(--spacing-control-height-md);
27
27
  height: var(--spacing-control-height-md);
28
- font-size: var(--semantic-typo-label-1-m-size);
28
+ font-size: var(--semantic-typo-label-2-m-size);
29
29
  }
30
30
  .lib-xplat-pagination.lg .page-btn svg {
31
31
  font-size: var(--semantic-typo-heading-1-m-size);
@@ -36,7 +36,7 @@
36
36
  justify-content: center;
37
37
  width: var(--spacing-control-height-sm);
38
38
  height: var(--spacing-control-height-sm);
39
- font-size: var(--semantic-typo-label-2-m-size);
39
+ font-size: var(--semantic-typo-caption-1-r-size);
40
40
  color: var(--semantic-text-muted);
41
41
  user-select: none;
42
42
  }
@@ -50,7 +50,7 @@
50
50
  border: none;
51
51
  border-radius: var(--spacing-radius-md);
52
52
  background: none;
53
- font-size: var(--semantic-typo-label-2-m-size);
53
+ font-size: var(--semantic-typo-caption-1-r-size);
54
54
  cursor: pointer;
55
55
  color: var(--semantic-text-subtle);
56
56
  transition: background-color 0.2s, color 0.2s;
@@ -67,7 +67,7 @@
67
67
  font-weight: 600;
68
68
  }
69
69
  .lib-xplat-pagination .page-btn svg {
70
- font-size: var(--semantic-typo-label-1-m-size);
70
+ font-size: var(--semantic-typo-label-2-m-size);
71
71
  }
72
72
  .lib-xplat-pagination.brand .page-btn.active {
73
73
  background-color: var(--semantic-surface-brand-default);
@@ -19,16 +19,16 @@
19
19
  height: var(--spacing-space-2);
20
20
  }
21
21
  .lib-xplat-radio.sm > span {
22
- font-size: var(--semantic-typo-label-2-m-size);
23
- line-height: var(--semantic-typo-label-2-m-lh);
22
+ font-size: var(--semantic-typo-caption-1-r-size);
23
+ line-height: var(--semantic-typo-caption-1-r-lh);
24
24
  }
25
25
  .lib-xplat-radio.md > .circle {
26
26
  width: var(--spacing-space-5);
27
27
  height: var(--spacing-space-5);
28
28
  }
29
29
  .lib-xplat-radio.md > span {
30
- font-size: var(--semantic-typo-label-1-m-size);
31
- line-height: var(--semantic-typo-label-1-m-lh);
30
+ font-size: var(--semantic-typo-label-2-m-size);
31
+ line-height: var(--semantic-typo-label-2-m-lh);
32
32
  }
33
33
  .lib-xplat-radio.lg > .circle {
34
34
  width: var(--spacing-space-6);
@@ -39,8 +39,8 @@
39
39
  height: var(--spacing-space-4);
40
40
  }
41
41
  .lib-xplat-radio.lg > span {
42
- font-size: var(--semantic-typo-body-1-m-size);
43
- line-height: var(--semantic-typo-body-1-m-lh);
42
+ font-size: var(--semantic-typo-label-1-m-size);
43
+ line-height: var(--semantic-typo-label-1-m-lh);
44
44
  }
45
45
  .lib-xplat-radio > .circle {
46
46
  border: 2px solid var(--semantic-border-strong);
@@ -1073,10 +1073,11 @@ var SelectItem = (props) => {
1073
1073
  ctx?.close();
1074
1074
  onClick?.();
1075
1075
  };
1076
+ const isSelected = value !== void 0 ? ctx?.selectedValue === value : ctx?.selectedLabel === children;
1076
1077
  return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
1077
1078
  "div",
1078
1079
  {
1079
- className: clsx_default("select-item", disabled && "disabled"),
1080
+ className: clsx_default("select-item", disabled && "disabled", isSelected && "is-selected"),
1080
1081
  onClick: handleClick,
1081
1082
  role: "menuitem",
1082
1083
  tabIndex: disabled ? void 0 : 0,
@@ -1112,12 +1113,14 @@ var SelectRoot = (props) => {
1112
1113
  const isControlled = valueProp !== void 0;
1113
1114
  const [isOpen, setOpen] = import_react6.default.useState(false);
1114
1115
  const [uncontrolledLabel, setUncontrolledLabel] = import_react6.default.useState(null);
1116
+ const [uncontrolledValue, setUncontrolledValue] = import_react6.default.useState(void 0);
1115
1117
  const controlledLabel = import_react6.default.useMemo(() => {
1116
1118
  if (!isControlled) return null;
1117
1119
  const match = itemChildren.find((child) => child.props.value === valueProp);
1118
1120
  return match ? match.props.children : null;
1119
1121
  }, [isControlled, valueProp, itemChildren]);
1120
1122
  const selectedLabel = isControlled ? controlledLabel : uncontrolledLabel;
1123
+ const selectedValue = isControlled ? valueProp : uncontrolledValue;
1121
1124
  const triggerRef = import_react6.default.useRef(null);
1122
1125
  const contentRef = import_react6.default.useRef(null);
1123
1126
  const [mounted, setMounted] = import_react6.default.useState(false);
@@ -1144,6 +1147,7 @@ var SelectRoot = (props) => {
1144
1147
  (label, itemValue) => {
1145
1148
  if (!isControlled) {
1146
1149
  setUncontrolledLabel(label);
1150
+ setUncontrolledValue(itemValue);
1147
1151
  }
1148
1152
  onChange?.(itemValue, label);
1149
1153
  },
@@ -1156,12 +1160,13 @@ var SelectRoot = (props) => {
1156
1160
  visible,
1157
1161
  triggerRef,
1158
1162
  selectedLabel,
1163
+ selectedValue,
1159
1164
  setSelected,
1160
1165
  open,
1161
1166
  close,
1162
1167
  toggle
1163
1168
  }),
1164
- [isOpen, mounted, visible, selectedLabel, setSelected, open, close, toggle]
1169
+ [isOpen, mounted, visible, selectedLabel, selectedValue, setSelected, open, close, toggle]
1165
1170
  );
1166
1171
  const stateClass = visible ? "visible" : "exit";
1167
1172
  const handleTriggerClick = (e) => {
@@ -1229,7 +1234,7 @@ var SelectRoot = (props) => {
1229
1234
  mounted && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(Portal_default, { children: /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
1230
1235
  "div",
1231
1236
  {
1232
- className: clsx_default("lib-xplat-select-content", position.direction, stateClass),
1237
+ className: clsx_default("lib-xplat-select-content", size, position.direction, stateClass),
1233
1238
  ref: contentRef,
1234
1239
  style: { ...position.position, width: triggerRef.current?.offsetWidth },
1235
1240
  role: "listbox",