@x-plat/design-system 0.4.5 → 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.
Files changed (205) hide show
  1. package/dist/components/Accordion/index.cjs +294 -294
  2. package/dist/components/Accordion/index.css +11 -11
  3. package/dist/components/Accordion/index.d.cts +0 -1
  4. package/dist/components/Accordion/index.d.ts +0 -1
  5. package/dist/components/Accordion/index.js +491 -491
  6. package/dist/components/Alert/index.cjs +2 -2
  7. package/dist/components/Alert/index.css +19 -19
  8. package/dist/components/Alert/index.d.cts +0 -1
  9. package/dist/components/Alert/index.d.ts +0 -1
  10. package/dist/components/Alert/index.js +2 -2
  11. package/dist/components/Avatar/index.cjs +11 -6
  12. package/dist/components/Avatar/index.css +41 -11
  13. package/dist/components/Avatar/index.d.cts +1 -3
  14. package/dist/components/Avatar/index.d.ts +1 -3
  15. package/dist/components/Avatar/index.js +11 -6
  16. package/dist/components/Badge/index.cjs +4 -6
  17. package/dist/components/Badge/index.css +32 -19
  18. package/dist/components/Badge/index.d.cts +3 -3
  19. package/dist/components/Badge/index.d.ts +3 -3
  20. package/dist/components/Badge/index.js +4 -6
  21. package/dist/components/Breadcrumb/index.cjs +2 -18
  22. package/dist/components/Breadcrumb/index.css +6 -6
  23. package/dist/components/Breadcrumb/index.d.cts +0 -1
  24. package/dist/components/Breadcrumb/index.d.ts +0 -1
  25. package/dist/components/Breadcrumb/index.js +2 -18
  26. package/dist/components/Button/index.cjs +1 -4
  27. package/dist/components/Button/index.css +67 -23
  28. package/dist/components/Button/index.d.cts +2 -3
  29. package/dist/components/Button/index.d.ts +2 -3
  30. package/dist/components/Button/index.js +1 -4
  31. package/dist/components/Calendar/index.cjs +306 -307
  32. package/dist/components/Calendar/index.css +51 -52
  33. package/dist/components/Calendar/index.d.cts +3 -4
  34. package/dist/components/Calendar/index.d.ts +3 -4
  35. package/dist/components/Calendar/index.js +503 -504
  36. package/dist/components/Card/index.cjs +2 -18
  37. package/dist/components/Card/index.css +6 -6
  38. package/dist/components/Card/index.d.cts +0 -4
  39. package/dist/components/Card/index.d.ts +0 -4
  40. package/dist/components/Card/index.js +2 -18
  41. package/dist/components/CardTab/index.cjs +4 -5
  42. package/dist/components/CardTab/index.css +28 -28
  43. package/dist/components/CardTab/index.d.cts +0 -2
  44. package/dist/components/CardTab/index.d.ts +0 -2
  45. package/dist/components/CardTab/index.js +4 -5
  46. package/dist/components/Chart/index.cjs +228 -14548
  47. package/dist/components/Chart/index.css +57 -0
  48. package/dist/components/Chart/index.d.cts +3 -2
  49. package/dist/components/Chart/index.d.ts +3 -2
  50. package/dist/components/Chart/index.js +219 -14541
  51. package/dist/components/CheckBox/index.cjs +301 -297
  52. package/dist/components/CheckBox/index.css +50 -27
  53. package/dist/components/CheckBox/index.d.cts +3 -3
  54. package/dist/components/CheckBox/index.d.ts +3 -3
  55. package/dist/components/CheckBox/index.js +486 -482
  56. package/dist/components/Chip/index.cjs +2 -5
  57. package/dist/components/Chip/index.css +35 -23
  58. package/dist/components/Chip/index.d.cts +2 -4
  59. package/dist/components/Chip/index.d.ts +2 -4
  60. package/dist/components/Chip/index.js +2 -5
  61. package/dist/components/DatePicker/index.cjs +348 -359
  62. package/dist/components/DatePicker/index.css +175 -122
  63. package/dist/components/DatePicker/index.d.cts +2 -3
  64. package/dist/components/DatePicker/index.d.ts +2 -3
  65. package/dist/components/DatePicker/index.js +525 -536
  66. package/dist/components/Divider/index.cjs +2 -2
  67. package/dist/components/Divider/index.css +2 -2
  68. package/dist/components/Divider/index.d.cts +0 -1
  69. package/dist/components/Divider/index.d.ts +0 -1
  70. package/dist/components/Divider/index.js +2 -2
  71. package/dist/components/Drawer/index.css +7 -7
  72. package/dist/components/Dropdown/index.cjs +2 -2
  73. package/dist/components/Dropdown/index.css +10 -10
  74. package/dist/components/Dropdown/index.d.cts +0 -1
  75. package/dist/components/Dropdown/index.d.ts +0 -1
  76. package/dist/components/Dropdown/index.js +2 -2
  77. package/dist/components/EmptyState/index.cjs +2 -18
  78. package/dist/components/EmptyState/index.css +8 -9
  79. package/dist/components/EmptyState/index.d.cts +0 -1
  80. package/dist/components/EmptyState/index.d.ts +0 -1
  81. package/dist/components/EmptyState/index.js +2 -18
  82. package/dist/components/FileUpload/index.cjs +280 -281
  83. package/dist/components/FileUpload/index.css +13 -14
  84. package/dist/components/FileUpload/index.d.cts +0 -1
  85. package/dist/components/FileUpload/index.d.ts +0 -1
  86. package/dist/components/FileUpload/index.js +476 -477
  87. package/dist/components/HtmlTypeWriter/index.cjs +10 -10
  88. package/dist/components/HtmlTypeWriter/index.css +3 -3
  89. package/dist/components/HtmlTypeWriter/index.js +10 -10
  90. package/dist/components/ImageSelector/index.cjs +309 -309
  91. package/dist/components/ImageSelector/index.css +15 -15
  92. package/dist/components/ImageSelector/index.js +477 -477
  93. package/dist/components/Input/index.cjs +6 -7
  94. package/dist/components/Input/index.css +37 -26
  95. package/dist/components/Input/index.d.cts +2 -2
  96. package/dist/components/Input/index.d.ts +2 -2
  97. package/dist/components/Input/index.js +6 -7
  98. package/dist/components/Modal/index.css +5 -4
  99. package/dist/components/Pagination/index.cjs +303 -305
  100. package/dist/components/Pagination/index.css +37 -26
  101. package/dist/components/Pagination/index.d.cts +3 -3
  102. package/dist/components/Pagination/index.d.ts +3 -3
  103. package/dist/components/Pagination/index.js +500 -502
  104. package/dist/components/PopOver/index.css +3 -3
  105. package/dist/components/Progress/index.cjs +4 -6
  106. package/dist/components/Progress/index.css +23 -9
  107. package/dist/components/Progress/index.d.cts +3 -3
  108. package/dist/components/Progress/index.d.ts +3 -3
  109. package/dist/components/Progress/index.js +4 -6
  110. package/dist/components/Radio/index.cjs +4 -7
  111. package/dist/components/Radio/index.css +61 -29
  112. package/dist/components/Radio/index.d.cts +3 -3
  113. package/dist/components/Radio/index.d.ts +3 -3
  114. package/dist/components/Radio/index.js +4 -7
  115. package/dist/components/Select/index.cjs +294 -294
  116. package/dist/components/Select/index.css +46 -40
  117. package/dist/components/Select/index.d.cts +0 -1
  118. package/dist/components/Select/index.d.ts +0 -1
  119. package/dist/components/Select/index.js +491 -491
  120. package/dist/components/Skeleton/index.cjs +2 -2
  121. package/dist/components/Skeleton/index.css +3 -3
  122. package/dist/components/Skeleton/index.d.cts +0 -1
  123. package/dist/components/Skeleton/index.d.ts +0 -1
  124. package/dist/components/Skeleton/index.js +2 -2
  125. package/dist/components/Spinner/index.cjs +2 -4
  126. package/dist/components/Spinner/index.css +22 -8
  127. package/dist/components/Spinner/index.d.cts +3 -3
  128. package/dist/components/Spinner/index.d.ts +3 -3
  129. package/dist/components/Spinner/index.js +2 -4
  130. package/dist/components/Steps/index.cjs +296 -298
  131. package/dist/components/Steps/index.css +77 -22
  132. package/dist/components/Steps/index.d.cts +3 -3
  133. package/dist/components/Steps/index.d.ts +3 -3
  134. package/dist/components/Steps/index.js +481 -483
  135. package/dist/components/Swiper/index.cjs +2 -3
  136. package/dist/components/Swiper/index.css +10 -10
  137. package/dist/components/Swiper/index.d.cts +0 -1
  138. package/dist/components/Swiper/index.d.ts +0 -1
  139. package/dist/components/Swiper/index.js +2 -3
  140. package/dist/components/Switch/index.cjs +4 -7
  141. package/dist/components/Switch/index.css +58 -26
  142. package/dist/components/Switch/index.d.cts +3 -3
  143. package/dist/components/Switch/index.d.ts +3 -3
  144. package/dist/components/Switch/index.js +4 -7
  145. package/dist/components/Tab/index.css +15 -15
  146. package/dist/components/Table/index.cjs +22 -31
  147. package/dist/components/Table/index.css +15 -15
  148. package/dist/components/Table/index.d.cts +2 -8
  149. package/dist/components/Table/index.d.ts +2 -8
  150. package/dist/components/Table/index.js +22 -31
  151. package/dist/components/Tag/index.cjs +305 -293
  152. package/dist/components/Tag/index.css +58 -17
  153. package/dist/components/Tag/index.d.cts +5 -3
  154. package/dist/components/Tag/index.d.ts +5 -3
  155. package/dist/components/Tag/index.js +492 -480
  156. package/dist/components/TextArea/index.cjs +2 -2
  157. package/dist/components/TextArea/index.css +20 -9
  158. package/dist/components/TextArea/index.d.cts +2 -1
  159. package/dist/components/TextArea/index.d.ts +2 -1
  160. package/dist/components/TextArea/index.js +2 -2
  161. package/dist/components/Toast/index.css +22 -22
  162. package/dist/components/Tooltip/index.cjs +1 -3
  163. package/dist/components/Tooltip/index.css +6 -6
  164. package/dist/components/Tooltip/index.d.cts +1 -2
  165. package/dist/components/Tooltip/index.d.ts +1 -2
  166. package/dist/components/Tooltip/index.js +1 -3
  167. package/dist/components/Video/index.cjs +1 -3
  168. package/dist/components/Video/index.css +5 -5
  169. package/dist/components/Video/index.d.cts +0 -2
  170. package/dist/components/Video/index.d.ts +0 -2
  171. package/dist/components/Video/index.js +1 -3
  172. package/dist/components/index.cjs +1604 -15950
  173. package/dist/components/index.css +2167 -1061
  174. package/dist/components/index.d.cts +1 -2
  175. package/dist/components/index.d.ts +1 -2
  176. package/dist/components/index.js +1478 -15826
  177. package/dist/index.cjs +2941 -17269
  178. package/dist/index.css +2164 -1058
  179. package/dist/index.d.cts +3 -3
  180. package/dist/index.d.ts +3 -3
  181. package/dist/index.js +2837 -17169
  182. package/dist/layout/Grid/FullGrid/index.cjs +9 -18
  183. package/dist/layout/Grid/FullGrid/index.d.cts +1 -1
  184. package/dist/layout/Grid/FullGrid/index.d.ts +1 -1
  185. package/dist/layout/Grid/FullGrid/index.js +9 -18
  186. package/dist/layout/Grid/FullScreen/index.cjs +9 -18
  187. package/dist/layout/Grid/FullScreen/index.d.cts +3 -3
  188. package/dist/layout/Grid/FullScreen/index.d.ts +3 -3
  189. package/dist/layout/Grid/FullScreen/index.js +9 -18
  190. package/dist/layout/Grid/index.cjs +34 -20
  191. package/dist/layout/Grid/index.js +34 -20
  192. package/dist/layout/index.cjs +34 -20
  193. package/dist/layout/index.css +1000 -295
  194. package/dist/layout/index.js +34 -20
  195. package/dist/tokens/index.cjs +1861 -1970
  196. package/dist/tokens/index.d.cts +209 -192
  197. package/dist/tokens/index.d.ts +209 -192
  198. package/dist/tokens/index.js +2048 -2159
  199. package/package.json +2 -4
  200. package/dist/colors-CY4JXVHj.d.cts +0 -137
  201. package/dist/colors-CY4JXVHj.d.ts +0 -137
  202. package/dist/layout/Grid/GapGrid/index.cjs +0 -32
  203. package/dist/layout/Grid/GapGrid/index.d.cts +0 -12
  204. package/dist/layout/Grid/GapGrid/index.d.ts +0 -12
  205. package/dist/layout/Grid/GapGrid/index.js +0 -11
@@ -2,42 +2,53 @@
2
2
  .lib-xplat-input-wrap {
3
3
  display: flex;
4
4
  flex-direction: column;
5
- gap: 0.5rem;
5
+ gap: var(--spacing-space-2);
6
6
  }
7
7
  .lib-xplat-input-wrap .lib-xplat-input {
8
8
  display: flex;
9
9
  align-items: center;
10
- border: 1px solid var(--xplat-neutral-300);
11
- border-radius: 0.5rem;
10
+ border: 1px solid var(--semantic-border-default);
11
+ border-radius: var(--spacing-radius-md);
12
12
  overflow: hidden;
13
- background-color: var(--xplat-white);
14
- padding-right: 0.5rem;
13
+ background-color: var(--semantic-surface-neutral-default);
14
+ padding-right: var(--spacing-space-2);
15
15
  width: 100%;
16
+ transition: border-color 0.15s, box-shadow 0.15s;
17
+ }
18
+ .lib-xplat-input-wrap .lib-xplat-input:hover:not(.disabled):not(:focus-within) {
19
+ border-color: var(--semantic-border-strong);
20
+ }
21
+ .lib-xplat-input-wrap .lib-xplat-input:focus-within {
22
+ border-color: var(--semantic-interaction-focus-ring);
23
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
24
+ }
25
+ .lib-xplat-input-wrap .lib-xplat-input:has(> input:not(:placeholder-shown)):not(:focus-within) {
26
+ border-color: var(--semantic-border-strong);
16
27
  }
17
28
  .lib-xplat-input-wrap .lib-xplat-input.sm {
18
- height: 2rem;
19
- font-size: 0.875rem;
29
+ height: var(--spacing-control-height-sm);
30
+ font-size: 14px;
20
31
  }
21
32
  .lib-xplat-input-wrap .lib-xplat-input.md {
22
- height: 2.5rem;
23
- font-size: 1rem;
33
+ height: var(--spacing-control-height-md);
34
+ font-size: 16px;
24
35
  }
25
36
  .lib-xplat-input-wrap .lib-xplat-input.lg {
26
- height: 3rem;
27
- font-size: 1.125rem;
37
+ height: var(--spacing-control-height-lg);
38
+ font-size: 18px;
28
39
  }
29
40
  .lib-xplat-input-wrap .lib-xplat-input.disabled {
30
- background-color: var(--xplat-neutral-100);
41
+ background-color: var(--semantic-surface-neutral-disabled);
31
42
  cursor: not-allowed;
32
43
  }
33
44
  .lib-xplat-input-wrap .lib-xplat-input > input {
34
45
  border: none;
35
46
  outline: none;
36
47
  flex: 1;
37
- padding-left: 1rem;
38
- padding-right: 0.5rem;
48
+ padding-left: var(--spacing-space-4);
49
+ padding-right: var(--spacing-space-2);
39
50
  width: 100%;
40
- color: var(--xplat-neutral-700);
51
+ color: var(--semantic-text-subtle);
41
52
  }
42
53
  .lib-xplat-input-wrap .lib-xplat-input > input :disabled {
43
54
  cursor: not-allowed;
@@ -47,8 +58,8 @@
47
58
  align-items: center;
48
59
  justify-content: center;
49
60
  height: 100%;
50
- color: var(--xplat-neutral-400);
51
- padding-right: 0.5rem;
61
+ color: var(--semantic-icon-subtle);
62
+ padding-right: var(--spacing-space-2);
52
63
  }
53
64
  .lib-xplat-input-wrap .lib-xplat-input > .suffix > .wrapper {
54
65
  font: 500;
@@ -58,36 +69,35 @@
58
69
  }
59
70
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap {
60
71
  display: flex;
61
- gap: 0.5rem;
62
- margin-left: 0.25rem;
72
+ gap: var(--spacing-space-2);
73
+ margin-left: var(--spacing-space-1);
63
74
  }
64
75
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation {
65
76
  display: flex;
66
- gap: 0.25rem;
67
- font-size: 0.75rem;
77
+ gap: var(--spacing-space-1);
78
+ font-size: 12px;
68
79
  align-items: center;
69
80
  user-select: none;
70
81
  }
71
82
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.default {
72
- color: var(--xplat-neutral-400);
83
+ color: var(--semantic-icon-subtle);
73
84
  }
74
85
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.success {
75
- color: var(--xplat-green-600);
86
+ color: var(--semantic-text-success);
76
87
  }
77
88
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.warning {
78
- color: var(--xplat-yellow-600);
89
+ color: var(--semantic-text-warning);
79
90
  }
80
91
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation.error {
81
- color: var(--xplat-red-600);
92
+ color: var(--semantic-text-error);
82
93
  }
83
94
  .lib-xplat-input-wrap .lib-xplat-input-validation-wrap > .lib-xplat-input-validation > .icon {
84
- font-size: 1rem;
95
+ font-size: 16px;
85
96
  }
86
97
 
87
98
  /* src/components/DatePicker/datepicker.scss */
88
99
  .lib-xplat-datepicker {
89
100
  user-select: none;
90
- container-type: inline-size;
91
101
  min-width: 200px;
92
102
  width: 100%;
93
103
  }
@@ -95,89 +105,88 @@
95
105
  display: flex;
96
106
  align-items: center;
97
107
  justify-content: center;
98
- gap: 0.5rem;
99
- margin-bottom: 0.75rem;
108
+ gap: var(--spacing-space-2);
109
+ margin-bottom: var(--spacing-space-3);
100
110
  }
101
111
  .lib-xplat-datepicker .datepicker-title {
102
112
  background: none;
103
113
  border: none;
104
114
  cursor: pointer;
105
- padding: 0.25rem 0.5rem;
106
- border-radius: 0.375rem;
115
+ padding: var(--spacing-space-1) var(--spacing-space-2);
116
+ border-radius: var(--spacing-radius-md);
107
117
  transition: background-color 0.15s;
108
- font-size: clamp(0.8125rem, 3cqi, 1.125rem);
118
+ font-size: clamp(13px, 3cqi, 18px);
109
119
  font-weight: 600;
110
- color: var(--xplat-neutral-900);
120
+ color: var(--semantic-text-strong);
111
121
  min-width: 110px;
112
122
  text-align: center;
113
123
  }
114
124
  .lib-xplat-datepicker .datepicker-title:hover {
115
- background-color: var(--xplat-neutral-100);
125
+ background-color: var(--semantic-surface-neutral-disabled);
116
126
  }
117
127
  .lib-xplat-datepicker .datepicker-picker-grid {
118
128
  display: grid;
119
129
  grid-template-columns: repeat(3, 1fr);
120
- gap: 0.25rem;
121
- padding: 0.25rem 0;
130
+ gap: var(--spacing-space-1);
131
+ padding: var(--spacing-space-1) 0;
122
132
  }
123
133
  .lib-xplat-datepicker .datepicker-picker-cell {
124
134
  display: flex;
125
135
  align-items: center;
126
136
  justify-content: center;
127
- padding: 0.375rem;
137
+ padding: var(--spacing-space-2);
128
138
  border: none;
129
- border-radius: 0.375rem;
139
+ border-radius: var(--spacing-radius-md);
130
140
  background: none;
131
- font-size: clamp(0.6875rem, 2cqi, 0.8125rem);
132
- color: var(--xplat-neutral-700);
141
+ font-size: clamp(11px, 2cqi, 13px);
142
+ color: var(--semantic-text-subtle);
133
143
  cursor: pointer;
134
144
  transition: background-color 0.15s;
135
145
  }
136
146
  .lib-xplat-datepicker .datepicker-picker-cell:hover {
137
- background-color: var(--xplat-neutral-100);
147
+ background-color: var(--semantic-surface-neutral-disabled);
138
148
  }
139
149
  .lib-xplat-datepicker .datepicker-picker-cell.active {
140
- background-color: var(--datepicker-active-color, var(--xplat-blue-500));
141
- color: var(--xplat-white);
150
+ background-color: var(--semantic-surface-brand-default);
151
+ color: var(--semantic-text-inverse);
142
152
  font-weight: 600;
143
153
  }
144
154
  .lib-xplat-datepicker .datepicker-nav {
145
155
  display: flex;
146
156
  align-items: center;
147
157
  justify-content: center;
148
- width: 28px;
149
- height: 28px;
158
+ width: var(--spacing-space-7);
159
+ height: var(--spacing-space-7);
150
160
  border: none;
151
- border-radius: 0.375rem;
161
+ border-radius: var(--spacing-radius-md);
152
162
  background: none;
153
163
  cursor: pointer;
154
- color: var(--xplat-neutral-500);
164
+ color: var(--semantic-text-muted);
155
165
  transition: background-color 0.15s;
156
166
  }
157
167
  .lib-xplat-datepicker .datepicker-nav:hover {
158
- background-color: var(--xplat-neutral-100);
168
+ background-color: var(--semantic-surface-neutral-disabled);
159
169
  }
160
170
  .lib-xplat-datepicker .datepicker-nav svg {
161
- width: 16px;
162
- height: 16px;
171
+ font-size: 16px;
163
172
  }
164
173
  .lib-xplat-datepicker .datepicker-weekdays {
165
174
  display: grid;
166
175
  grid-template-columns: repeat(7, 1fr);
167
- margin-bottom: 0.25rem;
176
+ margin-bottom: var(--spacing-space-1);
168
177
  }
169
178
  .lib-xplat-datepicker .datepicker-weekday {
170
179
  text-align: center;
171
- font-size: clamp(0.6875rem, 2cqi, 0.875rem);
180
+ font-size: clamp(11px, 2cqi, 14px);
172
181
  font-weight: 500;
173
- padding: 0.25rem 0;
174
- color: var(--xplat-neutral-400);
182
+ padding: var(--spacing-space-1) 0;
183
+ color: var(--semantic-text-muted);
175
184
  }
176
185
  .lib-xplat-datepicker .datepicker-weekday.sunday {
177
- color: var(--xplat-red-500);
186
+ color: var(--semantic-text-sunday);
178
187
  }
179
188
  .lib-xplat-datepicker .datepicker-weekday.saturday {
180
- color: var(--xplat-blue-500);
189
+ color: var(--semantic-text-saturday);
181
190
  }
182
191
  .lib-xplat-datepicker .datepicker-grid {
183
192
  display: grid;
@@ -190,63 +199,63 @@
190
199
  justify-content: center;
191
200
  max-height: 100%;
192
201
  aspect-ratio: 1;
193
- font-size: clamp(0.75rem, 2.5cqi, 1rem);
202
+ font-size: clamp(12px, 2.5cqi, 16px);
194
203
  border: none;
195
- border-radius: 0.375rem;
204
+ border-radius: var(--spacing-radius-md);
196
205
  background: none;
197
206
  cursor: pointer;
198
- color: var(--xplat-neutral-800);
207
+ color: var(--semantic-text-strong);
199
208
  transition: background-color 0.15s, color 0.15s;
200
209
  }
201
210
  .lib-xplat-datepicker .datepicker-day:hover:not(:disabled):not(.outside):not(.selected) {
202
- background-color: color-mix(in srgb, var(--datepicker-active-color, var(--xplat-blue-500)) 15%, transparent);
211
+ background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 15%, transparent);
203
212
  }
204
213
  .lib-xplat-datepicker .datepicker-day.outside {
205
- color: var(--xplat-neutral-300);
214
+ color: var(--semantic-text-disabled);
206
215
  cursor: default;
207
216
  }
208
217
  .lib-xplat-datepicker .datepicker-day.outside.sunday {
209
- color: color-mix(in srgb, var(--xplat-red-500) 35%, transparent);
218
+ color: color-mix(in srgb, var(--semantic-text-sunday) 35%, transparent);
210
219
  }
211
220
  .lib-xplat-datepicker .datepicker-day.outside.saturday {
212
- color: color-mix(in srgb, var(--xplat-blue-500) 35%, transparent);
221
+ color: color-mix(in srgb, var(--semantic-text-saturday) 35%, transparent);
213
222
  }
214
223
  .lib-xplat-datepicker .datepicker-day.disabled {
215
- color: var(--xplat-neutral-300);
224
+ color: var(--semantic-text-disabled);
216
225
  cursor: not-allowed;
217
226
  }
218
227
  .lib-xplat-datepicker .datepicker-day.today {
219
228
  font-weight: 700;
220
- box-shadow: inset 0 0 0 1px var(--datepicker-active-color, var(--xplat-blue-500));
229
+ box-shadow: inset 0 0 0 1px var(--semantic-surface-brand-default);
221
230
  }
222
231
  .lib-xplat-datepicker .datepicker-day.selected {
223
- background-color: var(--datepicker-active-color, var(--xplat-blue-500));
224
- color: var(--xplat-white);
232
+ background-color: var(--semantic-surface-brand-default);
233
+ color: var(--semantic-text-inverse);
225
234
  font-weight: 600;
226
235
  }
227
236
  .lib-xplat-datepicker .datepicker-day.selected:hover {
228
- background-color: color-mix(in srgb, var(--datepicker-active-color, var(--xplat-blue-500)), black 15%);
237
+ background-color: color-mix(in srgb, var(--semantic-surface-brand-default), black 15%);
229
238
  }
230
239
  .lib-xplat-datepicker .datepicker-day.highlighted {
231
- background-color: color-mix(in srgb, var(--datepicker-active-color, var(--xplat-blue-500)) 20%, transparent);
240
+ background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 20%, transparent);
232
241
  }
233
242
  .lib-xplat-datepicker .datepicker-day.in-range {
234
- background-color: color-mix(in srgb, var(--datepicker-active-color, var(--xplat-blue-500)) 12%, transparent);
243
+ background-color: color-mix(in srgb, var(--semantic-surface-brand-default) 12%, transparent);
235
244
  border-radius: 0;
236
245
  }
237
246
  .lib-xplat-datepicker .datepicker-day.sunday:not(.selected):not(.outside):not(.disabled) {
238
- color: var(--xplat-red-500);
247
+ color: var(--semantic-text-sunday);
239
248
  }
240
249
  .lib-xplat-datepicker .datepicker-day.saturday:not(.selected):not(.outside):not(.disabled) {
241
- color: var(--xplat-blue-500);
250
+ color: var(--semantic-text-saturday);
242
251
  }
243
252
  .lib-xplat-datepicker .datepicker-day.outside.sunday,
244
253
  .lib-xplat-datepicker .datepicker-day.disabled.sunday {
245
- color: color-mix(in srgb, var(--xplat-red-500) 35%, transparent);
254
+ color: color-mix(in srgb, var(--semantic-text-sunday) 35%, transparent);
246
255
  }
247
256
  .lib-xplat-datepicker .datepicker-day.outside.saturday,
248
257
  .lib-xplat-datepicker .datepicker-day.disabled.saturday {
249
- color: color-mix(in srgb, var(--xplat-blue-500) 35%, transparent);
258
+ color: color-mix(in srgb, var(--semantic-text-saturday) 35%, transparent);
250
259
  }
251
260
  .lib-xplat-datepicker.range {
252
261
  display: flex;
@@ -254,29 +263,29 @@
254
263
  }
255
264
  .lib-xplat-datepicker .datepicker-range-tabs {
256
265
  display: none;
257
- margin-bottom: 0.75rem;
258
- border-bottom: 1px solid var(--xplat-neutral-200);
266
+ margin-bottom: var(--spacing-space-3);
267
+ border-bottom: 1px solid var(--semantic-border-default);
259
268
  }
260
269
  .lib-xplat-datepicker .datepicker-range-tab {
261
270
  flex: 1;
262
- padding: 0.5rem;
271
+ padding: var(--spacing-space-2);
263
272
  border: none;
264
273
  background: none;
265
- font-size: 0.8125rem;
274
+ font-size: 13px;
266
275
  font-weight: 500;
267
- color: var(--xplat-neutral-400);
276
+ color: var(--semantic-text-muted);
268
277
  cursor: pointer;
269
278
  border-bottom: 2px solid transparent;
270
279
  transition: color 0.15s, border-color 0.15s;
271
280
  }
272
281
  .lib-xplat-datepicker .datepicker-range-tab.active {
273
- color: var(--datepicker-active-color, var(--xplat-blue-500));
274
- border-bottom-color: var(--datepicker-active-color, var(--xplat-blue-500));
282
+ color: var(--semantic-surface-brand-default);
283
+ border-bottom-color: var(--semantic-surface-brand-default);
275
284
  font-weight: 600;
276
285
  }
277
286
  .lib-xplat-datepicker .datepicker-range-panels {
278
287
  display: flex;
279
- gap: 1.5rem;
288
+ gap: var(--spacing-space-6);
280
289
  }
281
290
  .lib-xplat-datepicker .datepicker-range-mobile {
282
291
  display: none;
@@ -288,10 +297,10 @@
288
297
  .lib-xplat-datepicker .datepicker-range-label {
289
298
  display: block;
290
299
  text-align: center;
291
- font-size: 0.75rem;
300
+ font-size: 12px;
292
301
  font-weight: 500;
293
- color: var(--xplat-neutral-500);
294
- margin-bottom: 0.5rem;
302
+ color: var(--semantic-text-muted);
303
+ margin-bottom: var(--spacing-space-2);
295
304
  }
296
305
  @media (max-width: 600px) {
297
306
  .lib-xplat-datepicker .datepicker-range-tabs {
@@ -315,69 +324,112 @@
315
324
  top: 100%;
316
325
  left: 0;
317
326
  z-index: 10;
318
- margin-top: 4px;
319
- padding: 1rem;
320
- background-color: var(--xplat-white);
321
- border: 1px solid var(--xplat-neutral-200);
322
- border-radius: 0.5rem;
327
+ margin-top: var(--spacing-space-1);
328
+ padding: var(--spacing-space-4);
329
+ background-color: var(--semantic-surface-neutral-default);
330
+ border: 1px solid var(--semantic-border-default);
331
+ border-radius: var(--spacing-radius-md);
323
332
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
324
333
  }
325
334
  .lib-xplat-popup-datepicker-card {
326
- padding: 1.5rem;
327
- background-color: var(--xplat-white);
328
- border-radius: 0.75rem;
335
+ background-color: var(--semantic-surface-neutral-default);
336
+ border-radius: var(--spacing-radius-lg);
329
337
  }
330
338
  .lib-xplat-popup-datepicker-card .popup-datepicker-content {
331
- margin-bottom: 1rem;
339
+ margin-bottom: var(--spacing-space-4);
332
340
  }
333
341
  .lib-xplat-popup-datepicker-card .popup-datepicker-footer {
334
342
  display: flex;
335
343
  justify-content: flex-end;
336
- gap: 0.5rem;
344
+ gap: var(--spacing-space-2);
337
345
  }
338
346
 
339
347
  /* src/components/Button/button.scss */
340
348
  .lib-xplat-button {
341
- border-radius: 0.5rem;
349
+ border-radius: var(--spacing-radius-md);
342
350
  font-weight: 500;
343
351
  cursor: pointer;
352
+ border: 1px solid transparent;
353
+ transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
344
354
  }
345
355
  .lib-xplat-button.sm {
346
- padding: 0.25rem 0.75rem;
347
- font-size: 0.875rem;
356
+ height: var(--spacing-control-height-sm);
357
+ padding: 0 var(--spacing-space-3);
358
+ font-size: 14px;
348
359
  }
349
360
  .lib-xplat-button.md {
350
- padding: 0.5rem 1rem;
351
- font-size: 1rem;
361
+ height: var(--spacing-control-height-md);
362
+ padding: 0 var(--spacing-space-4);
363
+ font-size: 16px;
352
364
  }
353
365
  .lib-xplat-button.lg {
354
- padding: 0.75rem 1.5rem;
355
- font-size: 1.125rem;
356
- }
357
- .lib-xplat-button {
358
- transition: background-color 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
366
+ height: var(--spacing-control-height-lg);
367
+ padding: 0 var(--spacing-space-6);
368
+ font-size: 18px;
359
369
  }
360
370
  .lib-xplat-button:disabled {
361
371
  cursor: not-allowed;
362
- background-color: var(--xplat-neutral-400) !important;
363
- border-color: var(--xplat-neutral-400) !important;
364
- color: var(--xplat-white) !important;
372
+ background-color: var(--semantic-surface-neutral-disabled) !important;
373
+ border-color: var(--semantic-surface-neutral-disabled) !important;
374
+ color: var(--semantic-text-disabled) !important;
365
375
  }
366
376
  .lib-xplat-button.primary {
367
- color: var(--xplat-white);
368
- background-color: var(--ds-color);
377
+ color: var(--semantic-text-inverse);
378
+ background-color: var(--semantic-surface-brand-default);
379
+ }
380
+ .lib-xplat-button.primary:hover:not(:disabled) {
381
+ background-color: var(--semantic-surface-brand-strong);
369
382
  }
370
- .lib-xplat-button.primary:hover {
371
- background-color: color-mix(in srgb, var(--ds-color), black 12%);
383
+ .lib-xplat-button.primary:active:not(:disabled) {
384
+ background-color: var(--semantic-surface-brand-strong);
385
+ }
386
+ .lib-xplat-button.primary:focus-visible {
387
+ outline: 2px solid var(--semantic-interaction-focus-ring);
388
+ outline-offset: 2px;
372
389
  }
373
390
  .lib-xplat-button.secondary {
374
- background-color: var(--xplat-white);
375
- border: 1px solid;
376
- color: var(--ds-color);
377
- border-color: var(--ds-color);
391
+ color: var(--semantic-surface-brand-default);
392
+ background-color: var(--semantic-surface-neutral-default);
393
+ border-color: var(--semantic-border-default);
394
+ }
395
+ .lib-xplat-button.secondary:hover:not(:disabled) {
396
+ background-color: var(--semantic-surface-neutral-subtle);
397
+ }
398
+ .lib-xplat-button.secondary:active:not(:disabled) {
399
+ background-color: var(--semantic-surface-neutral-strong);
400
+ }
401
+ .lib-xplat-button.secondary:focus-visible {
402
+ outline: 2px solid var(--semantic-interaction-focus-ring);
403
+ outline-offset: 2px;
404
+ }
405
+ .lib-xplat-button.danger {
406
+ color: var(--semantic-text-inverse);
407
+ background-color: var(--semantic-surface-error-default);
408
+ }
409
+ .lib-xplat-button.danger:hover:not(:disabled) {
410
+ background-color: var(--semantic-surface-error-strong);
411
+ }
412
+ .lib-xplat-button.danger:active:not(:disabled) {
413
+ background-color: var(--semantic-surface-error-strong);
414
+ }
415
+ .lib-xplat-button.danger:focus-visible {
416
+ outline: 2px solid var(--semantic-interaction-focus-ring);
417
+ outline-offset: 2px;
418
+ }
419
+ .lib-xplat-button.ghost {
420
+ color: var(--semantic-text-subtle);
421
+ background-color: transparent;
422
+ border-color: transparent;
423
+ }
424
+ .lib-xplat-button.ghost:hover:not(:disabled) {
425
+ background-color: var(--semantic-surface-neutral-subtle);
426
+ }
427
+ .lib-xplat-button.ghost:active:not(:disabled) {
428
+ background-color: var(--semantic-surface-neutral-disabled);
378
429
  }
379
- .lib-xplat-button.secondary:hover {
380
- background-color: color-mix(in srgb, var(--ds-color) 12%, white);
430
+ .lib-xplat-button.ghost:focus-visible {
431
+ outline: 2px solid var(--semantic-interaction-focus-ring);
432
+ outline-offset: 2px;
381
433
  }
382
434
 
383
435
  /* src/components/Modal/modal.scss */
@@ -385,11 +437,12 @@
385
437
  z-index: 11;
386
438
  }
387
439
  .lib-xplat-modal.modal-box {
388
- border-radius: 12px;
440
+ border-radius: var(--spacing-radius-lg);
389
441
  background-color: #fff;
390
- padding: 24px;
391
- max-width: calc(100vw - 2rem);
392
- max-height: calc(100vh - 2rem);
442
+ padding: var(--spacing-space-6);
443
+ min-width: min-content;
444
+ max-width: calc(100vw - 32px);
445
+ max-height: calc(100vh - 32px);
393
446
  overflow: visible;
394
447
  transform: scale(0.9);
395
448
  opacity: 0;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { a as ColorProps } from '../../colors-CY4JXVHj.cjs';
4
3
 
5
4
  interface InputDatePickerProps {
6
5
  value: Date;
@@ -37,7 +36,7 @@ interface PopupPickerBaseProps {
37
36
  type PopupPickerProps = PopupPickerBaseProps & (SinglePickerProps | RangePickerProps$1);
38
37
  declare const PopupPicker: React.FC<PopupPickerProps>;
39
38
 
40
- interface RangePickerProps extends Partial<ColorProps> {
39
+ interface RangePickerProps {
41
40
  startDate: Date;
42
41
  endDate: Date;
43
42
  onChange?: (range: {
@@ -53,7 +52,7 @@ declare const RangePicker: {
53
52
  displayName: string;
54
53
  };
55
54
 
56
- interface SingleDatePickerProps extends Partial<ColorProps> {
55
+ interface SingleDatePickerProps {
57
56
  value: Date | null;
58
57
  onChange?: (date: Date | null) => void;
59
58
  minDate?: Date;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { a as ColorProps } from '../../colors-CY4JXVHj.js';
4
3
 
5
4
  interface InputDatePickerProps {
6
5
  value: Date;
@@ -37,7 +36,7 @@ interface PopupPickerBaseProps {
37
36
  type PopupPickerProps = PopupPickerBaseProps & (SinglePickerProps | RangePickerProps$1);
38
37
  declare const PopupPicker: React.FC<PopupPickerProps>;
39
38
 
40
- interface RangePickerProps extends Partial<ColorProps> {
39
+ interface RangePickerProps {
41
40
  startDate: Date;
42
41
  endDate: Date;
43
42
  onChange?: (range: {
@@ -53,7 +52,7 @@ declare const RangePicker: {
53
52
  displayName: string;
54
53
  };
55
54
 
56
- interface SingleDatePickerProps extends Partial<ColorProps> {
55
+ interface SingleDatePickerProps {
57
56
  value: Date | null;
58
57
  onChange?: (date: Date | null) => void;
59
58
  minDate?: Date;