@apexhub/apex-ui-react-source 1.2.0 → 1.2.2

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 (166) hide show
  1. package/README.md +18 -4
  2. package/bin/apex-ui-react-source.mjs +208 -24
  3. package/dist/files/AGENTS.md +2 -2
  4. package/dist/files/_assets/table-empty.url.ts +1 -1
  5. package/dist/files/alert/Alert.tsx +2 -2
  6. package/dist/files/alert/alert.css +1 -0
  7. package/dist/files/alert/llm.txt +3 -3
  8. package/dist/files/alert/tokens.txt +1 -1
  9. package/dist/files/apex-provider/llm.txt +3 -2
  10. package/dist/files/auto-complete/llm.txt +1 -1
  11. package/dist/files/auto-complete/tokens.txt +1 -1
  12. package/dist/files/avatar/Avatar.tsx +1 -1
  13. package/dist/files/avatar/avatar.css +12 -1
  14. package/dist/files/avatar/llm.txt +1 -1
  15. package/dist/files/avatar/tokens.txt +1 -1
  16. package/dist/files/breadcrumb/Breadcrumb.tsx +17 -10
  17. package/dist/files/breadcrumb/breadcrumb.css +20 -10
  18. package/dist/files/breadcrumb/interface.ts +4 -4
  19. package/dist/files/breadcrumb/llm.txt +8 -8
  20. package/dist/files/breadcrumb/tokens.txt +46 -96
  21. package/dist/files/breadcrumb/variants.ts +6 -0
  22. package/dist/files/button/Button.tsx +25 -8
  23. package/dist/files/button/button.css +20 -2
  24. package/dist/files/button/interface.ts +7 -4
  25. package/dist/files/button/llm.txt +16 -8
  26. package/dist/files/button/tokens.txt +1 -1
  27. package/dist/files/button/variants.ts +8 -0
  28. package/dist/files/card/Card.tsx +8 -1
  29. package/dist/files/card/card-states.stories.css +42 -0
  30. package/dist/files/card/card.css +6 -1
  31. package/dist/files/card/interface.ts +3 -0
  32. package/dist/files/card/llm.txt +24 -1
  33. package/dist/files/card/tokens.txt +3 -1
  34. package/dist/files/cascader/cascader-data.ts +29 -8
  35. package/dist/files/cascader/cascader.css +45 -11
  36. package/dist/files/cascader/llm.txt +25 -6
  37. package/dist/files/cascader/tokens.txt +15 -7
  38. package/dist/files/cascader/variants.ts +1 -1
  39. package/dist/files/checkbox/Checkbox.tsx +26 -10
  40. package/dist/files/checkbox/checkbox.css +64 -22
  41. package/dist/files/checkbox/llm.txt +24 -13
  42. package/dist/files/checkbox/tokens.txt +10 -2
  43. package/dist/files/clear/clear.css +5 -2
  44. package/dist/files/collapse/llm.txt +1 -1
  45. package/dist/files/collapse/tokens.txt +1 -1
  46. package/dist/files/date-picker/RangePicker.tsx +5 -5
  47. package/dist/files/date-picker/Trigger.tsx +5 -5
  48. package/dist/files/date-picker/date-picker.css +53 -23
  49. package/dist/files/date-picker/llm.txt +7 -3
  50. package/dist/files/date-picker/tokens.txt +10 -10
  51. package/dist/files/divider/llm.txt +1 -1
  52. package/dist/files/divider/tokens.txt +1 -1
  53. package/dist/files/drawer/drawer.css +1 -0
  54. package/dist/files/drawer/llm.txt +2 -2
  55. package/dist/files/drawer/tokens.txt +2 -2
  56. package/dist/files/dropdown/llm.txt +1 -1
  57. package/dist/files/dropdown/tokens.txt +1 -1
  58. package/dist/files/form/form.css +10 -0
  59. package/dist/files/form/llm.txt +1 -1
  60. package/dist/files/form/tokens.txt +3 -1
  61. package/dist/files/grid/llm.txt +9 -9
  62. package/dist/files/image/ImagePreview.tsx +7 -6
  63. package/dist/files/image/image.css +0 -10
  64. package/dist/files/image/llm.txt +2 -2
  65. package/dist/files/image/tokens.txt +1 -1
  66. package/dist/files/input/input.css +14 -14
  67. package/dist/files/input/llm.txt +4 -2
  68. package/dist/files/input/tokens.txt +4 -4
  69. package/dist/files/input-number/InputNumber.tsx +2 -0
  70. package/dist/files/input-number/input-number.css +13 -1
  71. package/dist/files/input-number/llm.txt +8 -3
  72. package/dist/files/input-number/tokens.txt +4 -4
  73. package/dist/files/layout/llm.txt +1 -1
  74. package/dist/files/layout/tokens.txt +1 -1
  75. package/dist/files/llms.txt +18 -11
  76. package/dist/files/menu/Menu.tsx +5 -1
  77. package/dist/files/menu/llm.txt +19 -12
  78. package/dist/files/menu/menu.css +41 -15
  79. package/dist/files/menu/menu.figma.stories.css +39 -0
  80. package/dist/files/menu/tokens.txt +21 -8
  81. package/dist/files/message/llm.txt +1 -1
  82. package/dist/files/message/tokens.txt +1 -1
  83. package/dist/files/modal/Modal.tsx +1 -2
  84. package/dist/files/modal/interface.ts +1 -1
  85. package/dist/files/modal/llm.txt +9 -9
  86. package/dist/files/modal/tokens.txt +1 -1
  87. package/dist/files/notification/llm.txt +1 -1
  88. package/dist/files/notification/tokens.txt +1 -1
  89. package/dist/files/pagination/PageButton.tsx +2 -0
  90. package/dist/files/pagination/Pagination.tsx +149 -170
  91. package/dist/files/pagination/interface.ts +2 -2
  92. package/dist/files/pagination/llm.txt +18 -9
  93. package/dist/files/pagination/pagination.css +56 -17
  94. package/dist/files/pagination/tokens.txt +6 -4
  95. package/dist/files/popover/Popover.tsx +11 -3
  96. package/dist/files/popover/llm.txt +3 -3
  97. package/dist/files/popover/popover.css +30 -18
  98. package/dist/files/popover/popover.stories.css +6 -0
  99. package/dist/files/popover/tokens.txt +4 -14
  100. package/dist/files/progress/llm.txt +4 -4
  101. package/dist/files/progress/tokens.txt +1 -1
  102. package/dist/files/radio/llm.txt +38 -1
  103. package/dist/files/radio/radio.css +51 -14
  104. package/dist/files/radio/tokens.txt +11 -6
  105. package/dist/files/rate/llm.txt +1 -1
  106. package/dist/files/rate/tokens.txt +1 -1
  107. package/dist/files/select/llm.txt +8 -7
  108. package/dist/files/select/select.css +30 -16
  109. package/dist/files/select/tokens.txt +4 -4
  110. package/dist/files/skeleton/llm.txt +1 -1
  111. package/dist/files/skeleton/tokens.txt +1 -1
  112. package/dist/files/spin/llm.txt +1 -1
  113. package/dist/files/spin/tokens.txt +1 -1
  114. package/dist/files/steps/llm.txt +1 -1
  115. package/dist/files/steps/tokens.txt +1 -1
  116. package/dist/files/switch/llm.txt +1 -1
  117. package/dist/files/switch/tokens.txt +1 -1
  118. package/dist/files/table/constants.ts +2 -2
  119. package/dist/files/table/hooks/useRowSelection.tsx +3 -3
  120. package/dist/files/table/interface.ts +7 -7
  121. package/dist/files/table/llm.txt +16 -13
  122. package/dist/files/table/parts/TablePagination.tsx +8 -0
  123. package/dist/files/table/table.css +27 -10
  124. package/dist/files/table/tokenScopes.ts +2 -2
  125. package/dist/files/table/tokens.txt +2 -2
  126. package/dist/files/tabs/Tabs.tsx +1 -2
  127. package/dist/files/tabs/llm.txt +1 -1
  128. package/dist/files/tabs/tabs.css +3 -3
  129. package/dist/files/tabs/tokens.txt +1 -1
  130. package/dist/files/tag/interface.ts +2 -2
  131. package/dist/files/tag/llm.txt +7 -8
  132. package/dist/files/tag/tag.css +1 -1
  133. package/dist/files/tag/tokens.txt +1 -2
  134. package/dist/files/tag/variants.ts +12 -2
  135. package/dist/files/theme/aliases.css +1 -1
  136. package/dist/files/theme/component-tokens.css +7 -7
  137. package/dist/files/theme/primitives.css +1 -1
  138. package/dist/files/tooltip/Tooltip.tsx +2 -2
  139. package/dist/files/tooltip/llm.txt +1 -1
  140. package/dist/files/tooltip/tokens.txt +1 -1
  141. package/dist/files/tooltip/tooltip.css +2 -3
  142. package/dist/files/tree/Tree.tsx +8 -38
  143. package/dist/files/tree/llm.txt +11 -15
  144. package/dist/files/tree/tokens.txt +1 -3
  145. package/dist/files/tree/tree-data.ts +30 -2
  146. package/dist/files/tree/tree.css +17 -3
  147. package/dist/files/tree/variants.ts +4 -2
  148. package/dist/files/tree-select/llm.txt +32 -22
  149. package/dist/files/tree-select/tokens.txt +7 -6
  150. package/dist/files/tree-select/tree-select-data.ts +2 -1
  151. package/dist/files/tree-select/tree-select.css +61 -8
  152. package/dist/files/typography/llm.txt +1 -1
  153. package/dist/files/typography/tokens.txt +1 -1
  154. package/dist/files/upload/llm.txt +4 -2
  155. package/dist/files/upload/tokens.txt +5 -1
  156. package/dist/files/upload/upload.css +54 -11
  157. package/dist/manifest.json +155 -153
  158. package/package.json +6 -5
  159. package/template/_gitignore +5 -0
  160. package/template/index.html +12 -0
  161. package/template/src/App.tsx +25 -0
  162. package/template/src/main.tsx +14 -0
  163. package/template/tsconfig.app.json +22 -0
  164. package/template/tsconfig.json +4 -0
  165. package/template/tsconfig.node.json +16 -0
  166. package/template/vite.config.ts +8 -0
@@ -23,11 +23,15 @@ import {
23
23
  // 颜色由 CSS 通过 `currentColor` + `--checkbox-*` token 注入,不在 SVG 内硬编码。
24
24
  // ────────────────────────────────────────────────────────────────────────────
25
25
 
26
- const BOX_PATH =
27
- 'M1.33334 8C1.33334 4.85731 1.33334 3.28596 2.30965 2.30965C3.28596 1.33334 4.85731 1.33334 8 1.33334C11.1427 1.33334 12.714 1.33334 13.6904 2.30965C14.6667 3.28596 14.6667 4.85731 14.6667 8C14.6667 11.1427 14.6667 12.714 13.6904 13.6904C12.714 14.6667 11.1427 14.6667 8 14.6667C4.85731 14.6667 3.28596 14.6667 2.30965 13.6904C1.33334 12.714 1.33334 11.1427 1.33334 8Z'
26
+ // The 20px control contains the smaller Figma glyph, leaving its designed
27
+ // internal breathing room while keeping the full control area clickable.
28
+ const BOX_OUTLINE_PATH =
29
+ 'M16.1665 10.0005C16.1665 8.41528 16.1658 7.27626 16.0493 6.40967C15.9348 5.55764 15.717 5.04331 15.3374 4.66357C14.9577 4.28382 14.4435 4.06527 13.5913 3.95068C12.7247 3.83417 11.5858 3.8335 10.0005 3.8335C8.41531 3.8335 7.27626 3.83423 6.40967 3.95068C5.5574 4.06527 5.04334 4.2838 4.66357 4.66357C4.2838 5.04334 4.06527 5.5574 3.95068 6.40967C3.83423 7.27626 3.8335 8.41531 3.8335 10.0005C3.8335 11.5858 3.83417 12.7247 3.95068 13.5913C4.06527 14.4435 4.28382 14.9577 4.66357 15.3374C5.04331 15.717 5.55764 15.9348 6.40967 16.0493C7.27626 16.1658 8.41528 16.1665 10.0005 16.1665C11.5858 16.1665 12.7247 16.1658 13.5913 16.0493C14.4435 15.9347 14.9577 15.7171 15.3374 15.3374C15.7171 14.9577 15.9347 14.4435 16.0493 13.5913C16.1658 12.7247 16.1665 11.5858 16.1665 10.0005ZM17.1665 10.0005C17.1665 11.5574 17.168 12.7755 17.0405 13.7241C16.911 14.6873 16.641 15.4479 16.0444 16.0444C15.4479 16.641 14.6873 16.911 13.7241 17.0405C12.7755 17.168 11.5574 17.1665 10.0005 17.1665C8.44327 17.1665 7.22465 17.1681 6.27588 17.0405C5.31292 16.9111 4.55302 16.6407 3.95654 16.0444C3.36 15.4479 3.08994 14.6873 2.96045 13.7241C2.83292 12.7754 2.8335 11.5575 2.8335 10.0005C2.8335 8.44327 2.83289 7.22465 2.96045 6.27588C3.08995 5.31279 3.36003 4.55305 3.95654 3.95654C4.55305 3.36003 5.31279 3.08995 6.27588 2.96045C7.22465 2.83289 8.44327 2.8335 10.0005 2.8335C11.5575 2.8335 12.7754 2.83292 13.7241 2.96045C14.6873 3.08994 15.4479 3.36 16.0444 3.95654C16.6407 4.55302 16.9111 5.31292 17.0405 6.27588C17.1681 7.22465 17.1665 8.44327 17.1665 10.0005Z'
30
+ const BOX_FILLED_PATH =
31
+ 'M3.33333 10C3.33333 6.8573 3.33333 5.28595 4.30964 4.30964C5.28595 3.33333 6.8573 3.33333 10 3.33333C13.1427 3.33333 14.714 3.33333 15.6904 4.30964C16.6667 5.28595 16.6667 6.8573 16.6667 10C16.6667 13.1427 16.6667 14.714 15.6904 15.6904C14.714 16.6667 13.1427 16.6667 10 16.6667C6.8573 16.6667 5.28595 16.6667 4.30964 15.6904C3.33333 14.714 3.33333 13.1427 3.33333 10Z'
28
32
 
29
- const CHECK_PATH = 'M5.6 8.4L7.12381 10L10.9333 6'
30
- const MINUS_PATH = 'M5.33334 8L10.6667 8'
33
+ const CHECK_PATH = 'M7.6 10.4L9.12381 12L12.9333 8'
34
+ const MINUS_PATH = 'M7.33333 10L12.6667 10'
31
35
 
32
36
  // ────────────────────────────────────────────────────────────────────────────
33
37
  // Group Context —— 子项 Checkbox 通过此 Context 接管 value / disabled / 回调
@@ -48,8 +52,15 @@ const CheckboxGroupContext = React.createContext<CheckboxGroupContextValue | nul
48
52
 
49
53
  const CheckboxBox = React.memo(function CheckboxBox() {
50
54
  return (
51
- <svg className="apex-checkbox__box" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
52
- <path className="apex-checkbox__box-path" d={BOX_PATH} />
55
+ <svg className="apex-checkbox__box" viewBox="0 0 20 20" aria-hidden="true" focusable="false">
56
+ <path
57
+ className="apex-checkbox__box-path apex-checkbox__box-path--outline"
58
+ d={BOX_OUTLINE_PATH}
59
+ />
60
+ <path
61
+ className="apex-checkbox__box-path apex-checkbox__box-path--filled"
62
+ d={BOX_FILLED_PATH}
63
+ />
53
64
  </svg>
54
65
  )
55
66
  })
@@ -59,7 +70,7 @@ const CheckboxIcons = React.memo(function CheckboxIcons() {
59
70
  <>
60
71
  <svg
61
72
  className="apex-checkbox__icon-check"
62
- viewBox="0 0 16 16"
73
+ viewBox="0 0 20 20"
63
74
  aria-hidden="true"
64
75
  focusable="false"
65
76
  >
@@ -67,7 +78,7 @@ const CheckboxIcons = React.memo(function CheckboxIcons() {
67
78
  </svg>
68
79
  <svg
69
80
  className="apex-checkbox__icon-indeterminate"
70
- viewBox="0 0 16 16"
81
+ viewBox="0 0 20 20"
71
82
  aria-hidden="true"
72
83
  focusable="false"
73
84
  >
@@ -220,6 +231,7 @@ function CheckboxRoot({
220
231
  const inGroup = group !== null && value !== undefined
221
232
  const effectiveDisabled = Boolean(disabled || (group?.disabled ?? false))
222
233
  const groupChecked = inGroup ? group.value.some((v) => v === value) : undefined
234
+ const [innerChecked, setInnerChecked] = React.useState(Boolean(defaultChecked))
223
235
 
224
236
  // ── Radix `CheckedState` 映射:indeterminate 优先,再按受控/非受控 ────
225
237
  const radixCheckedProps: { checked?: CheckedState; defaultChecked?: CheckedState } = {}
@@ -248,12 +260,14 @@ function CheckboxRoot({
248
260
  const nextChecked = next === 'indeterminate' ? false : Boolean(next)
249
261
  if (inGroup && value !== undefined) {
250
262
  groupOnChangeRef.current?.(value, nextChecked)
263
+ } else if (checked === undefined && !indeterminate) {
264
+ setInnerChecked(nextChecked)
251
265
  }
252
266
  if (onChangeRef.current && source) {
253
267
  onChangeRef.current(buildChangeEvent(source, nextChecked, next === 'indeterminate'))
254
268
  }
255
269
  },
256
- [inGroup, value],
270
+ [inGroup, value, checked, indeterminate],
257
271
  )
258
272
 
259
273
  const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {
@@ -284,7 +298,9 @@ function CheckboxRoot({
284
298
  ? 'indeterminate'
285
299
  : radixCheckedProps.checked === true || (inGroup && groupChecked === true)
286
300
  ? 'checked'
287
- : 'unchecked'
301
+ : checked === undefined && !inGroup && innerChecked
302
+ ? 'checked'
303
+ : 'unchecked'
288
304
 
289
305
  const labelClassName = cn(checkboxVariants(), resolvedClassNames.root, className)
290
306
 
@@ -21,6 +21,14 @@
21
21
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
22
22
  }
23
23
 
24
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):hover {
25
+ color: var(--checkbox-text-hover);
26
+ }
27
+
28
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):active {
29
+ color: var(--checkbox-text-active);
30
+ }
31
+
24
32
  .apex-checkbox.apex-default-checkbox[data-disabled] {
25
33
  cursor: not-allowed;
26
34
  color: var(--checkbox-text-disabled);
@@ -68,29 +76,26 @@
68
76
  pointer-events: none;
69
77
  fill: transparent;
70
78
  color: var(--checkbox-stroke-default);
79
+ transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
71
80
  }
72
81
 
73
82
  .apex-checkbox__box-path {
74
- fill: transparent;
75
- stroke: currentColor;
76
- stroke-width: 1;
77
- vector-effect: non-scaling-stroke;
78
- transition:
79
- fill 0.18s cubic-bezier(0.4, 0, 0.2, 1),
80
- stroke 0.18s cubic-bezier(0.4, 0, 0.2, 1);
83
+ fill: currentColor;
84
+ transition: fill 0.18s cubic-bezier(0.4, 0, 0.2, 1);
81
85
  }
82
86
 
83
- /* hover */
84
- /* .apex-checkbox.apex-default-checkbox:not([data-disabled])
85
- .apex-checkbox__control:hover
86
- .apex-checkbox__box:not([data-state='checked']) {
87
- color: var(--checkbox-stroke-hover);
88
- } */
89
- /* hover — only when unchecked */
90
- .apex-checkbox.apex-default-checkbox:not([data-disabled])
91
- .apex-checkbox__control:not([data-state='checked']):not([data-state='indeterminate']):hover
92
- .apex-checkbox__box {
93
- color: var(--checkbox-stroke-hover);
87
+ .apex-checkbox__box-path--filled {
88
+ display: none;
89
+ }
90
+
91
+ .apex-checkbox__control[data-state='checked'] .apex-checkbox__box-path--outline,
92
+ .apex-checkbox__control[data-state='indeterminate'] .apex-checkbox__box-path--outline {
93
+ display: none;
94
+ }
95
+
96
+ .apex-checkbox__control[data-state='checked'] .apex-checkbox__box-path--filled,
97
+ .apex-checkbox__control[data-state='indeterminate'] .apex-checkbox__box-path--filled {
98
+ display: block;
94
99
  }
95
100
 
96
101
  /* checked:填充 brand,描边同色 */
@@ -111,15 +116,52 @@ color: var(--checkbox-stroke-hover);
111
116
  fill: var(--checkbox-fill-indeterminate);
112
117
  }
113
118
 
119
+ /* 交互状态由整行 label 驱动,方框与文案保持一致。 */
120
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
121
+ .apex-checkbox__control[data-state='unchecked']
122
+ .apex-checkbox__box {
123
+ color: var(--checkbox-stroke-hover);
124
+ }
125
+
126
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):active
127
+ .apex-checkbox__control[data-state='unchecked']
128
+ .apex-checkbox__box {
129
+ color: var(--checkbox-stroke-active);
130
+ }
131
+
132
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
133
+ .apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
134
+ .apex-checkbox__box {
135
+ color: var(--checkbox-stroke-check-hover);
136
+ }
137
+
138
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):hover
139
+ .apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
140
+ .apex-checkbox__box-path--filled {
141
+ fill: var(--checkbox-fill-check-hover);
142
+ }
143
+
144
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):active
145
+ .apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
146
+ .apex-checkbox__box {
147
+ color: var(--checkbox-stroke-check-active);
148
+ }
149
+
150
+ .apex-checkbox.apex-default-checkbox:not([data-disabled]):active
151
+ .apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
152
+ .apex-checkbox__box-path--filled {
153
+ fill: var(--checkbox-fill-check-active);
154
+ }
155
+
114
156
  /* disabled:覆盖所有状态色 */
115
157
  .apex-checkbox.apex-default-checkbox[data-disabled] .apex-checkbox__box {
116
158
  color: var(--checkbox-stroke-disabled);
117
159
  }
118
160
 
119
161
  .apex-checkbox.apex-default-checkbox[data-disabled]
120
- .apex-checkbox__control[data-state='checked']
121
- .apex-checkbox__box-path {
122
- fill: var(--checkbox-stroke-disabled);
162
+ .apex-checkbox__control:is([data-state='checked'], [data-state='indeterminate'])
163
+ .apex-checkbox__box-path--filled {
164
+ fill: var(--checkbox-fill-disabled);
123
165
  }
124
166
 
125
167
  /* ── Indicator(Radix 仅在 checked / indeterminate 时挂载)──────────────── */
@@ -165,7 +207,7 @@ color: var(--checkbox-stroke-hover);
165
207
  .apex-checkbox__icon-indeterminate path {
166
208
  fill: none;
167
209
  stroke: currentColor;
168
- stroke-width: 1.2;
210
+ stroke-width: 1;
169
211
  stroke-linecap: round;
170
212
  stroke-linejoin: round;
171
213
  vector-effect: non-scaling-stroke;
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Checkbox:用户可从多个选项中任选零个、一个或多个时(与 Radio 互斥单选相对)。
4
4
 
5
- 版本:`1.2.0`。组件源码在本目录,属于当前项目。
5
+ 版本:`1.2.2`。组件源码在本目录,属于当前项目。
6
6
 
7
7
  公开导出:`Checkbox`、`CheckboxGroup`。
8
8
 
@@ -142,17 +142,28 @@ export default () => (
142
142
  import { Checkbox } from '@/components/apex/checkbox'
143
143
 
144
144
  export default () => (
145
- <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
146
- <Checkbox>未选中</Checkbox>
147
- <Checkbox defaultChecked>已选中</Checkbox>
148
- <Checkbox indeterminate>半选</Checkbox>
149
- <Checkbox disabled>禁用 - 未选</Checkbox>
150
- <Checkbox disabled defaultChecked>
151
- 禁用 - 选中
152
- </Checkbox>
153
- <Checkbox disabled indeterminate>
154
- 禁用 - 半选
155
- </Checkbox>
145
+ <div
146
+ style={{
147
+ display: 'grid',
148
+ gridTemplateColumns: 'auto repeat(3, minmax(72px, 1fr))',
149
+ alignItems: 'center',
150
+ columnGap: 16,
151
+ rowGap: 12,
152
+ width: 'min(100%, 360px)',
153
+ }}
154
+ >
155
+ <span />
156
+ <span>未选中</span>
157
+ <span>已选中</span>
158
+ <span>半选</span>
159
+ <span>默认</span>
160
+ <Checkbox aria-label="默认-未选中" />
161
+ <Checkbox defaultChecked aria-label="默认-已选中" />
162
+ <Checkbox indeterminate aria-label="默认-半选" />
163
+ <span>禁用</span>
164
+ <Checkbox disabled aria-label="禁用-未选中" />
165
+ <Checkbox disabled defaultChecked aria-label="禁用-已选中" />
166
+ <Checkbox disabled indeterminate aria-label="禁用-半选" />
156
167
  </div>
157
168
  )
158
169
  ```
@@ -280,7 +291,7 @@ import type * as React from 'react'
280
291
 
281
292
  const styles: CheckboxProps['styles'] = {
282
293
  root: {
283
- '--checkbox-gap': 'var(--apex-spacing-3)',
294
+ '--checkbox-spacing-gap': 'var(--apex-spacing-8)',
284
295
  } as React.CSSProperties,
285
296
  indicator: {
286
297
  opacity: 0.9,
@@ -1,6 +1,6 @@
1
1
  # Checkbox Token 明细
2
2
 
3
- 包:`@apexhub/apex-ui-react`;版本:`1.2.0`(当前源码快照)。
3
+ 包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
4
4
 
5
5
  按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
6
6
 
@@ -10,7 +10,10 @@
10
10
 
11
11
  | Token | 用途(CSS 属性) | 定义值 | 定义作用域 |
12
12
  | --- | --- | --- | --- |
13
+ | `--checkbox-fill-check-active` | `fill` | `var(--apex-fill-brand-tertiary)` | `.apex-checkbox.apex-default-checkbox` |
14
+ | `--checkbox-fill-check-hover` | `fill` | `var(--apex-fill-brand-secondary)` | `.apex-checkbox.apex-default-checkbox` |
13
15
  | `--checkbox-fill-checked` | `fill`、`outline` | `var(--apex-fill-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
16
+ | `--checkbox-fill-disabled` | `fill` | `var(--apex-fill-neutral-quinary)` | `.apex-checkbox.apex-default-checkbox` |
14
17
  | `--checkbox-fill-indeterminate` | `fill` | `var(--apex-fill-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
15
18
  | `--checkbox-group-spacing-gap-x` | `column-gap` | `var(--apex-spacing-12)` | `.apex-checkbox-group.apex-default-checkbox-group` |
16
19
  | `--checkbox-group-spacing-gap-y` | `row-gap` | `var(--apex-spacing-8)` | `.apex-checkbox-group.apex-default-checkbox-group` |
@@ -19,10 +22,15 @@
19
22
  | `--checkbox-icon-indeterminate` | `color` | `var(--apex-icon-neutral-quaternary-stable)` | `.apex-checkbox.apex-default-checkbox` |
20
23
  | `--checkbox-radius-radius` | `border-radius` | `var(--apex-radius-4)` | `.apex-checkbox.apex-default-checkbox` |
21
24
  | `--checkbox-spacing-gap` | `gap` | `var(--apex-spacing-4)` | `.apex-checkbox.apex-default-checkbox` |
25
+ | `--checkbox-stroke-active` | `color` | `var(--apex-stroke-neutral-septenary)` | `.apex-checkbox.apex-default-checkbox` |
26
+ | `--checkbox-stroke-check-active` | `color` | `var(--apex-stroke-brand-tertiary)` | `.apex-checkbox.apex-default-checkbox` |
27
+ | `--checkbox-stroke-check-hover` | `color` | `var(--apex-stroke-brand-secondary)` | `.apex-checkbox.apex-default-checkbox` |
22
28
  | `--checkbox-stroke-checked` | `color` | `var(--apex-stroke-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
23
29
  | `--checkbox-stroke-default` | `color` | `var(--apex-stroke-neutral-denary)` | `.apex-checkbox.apex-default-checkbox` |
24
- | `--checkbox-stroke-disabled` | `color`、`fill` | `var(--apex-stroke-neutral-quinary)` | `.apex-checkbox.apex-default-checkbox` |
30
+ | `--checkbox-stroke-disabled` | `color` | `var(--apex-stroke-neutral-quinary)` | `.apex-checkbox.apex-default-checkbox` |
25
31
  | `--checkbox-stroke-hover` | `color` | `var(--apex-stroke-neutral-octonary)` | `.apex-checkbox.apex-default-checkbox` |
26
32
  | `--checkbox-stroke-indeterminate` | `color` | `var(--apex-stroke-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
33
+ | `--checkbox-text-active` | `color` | `var(--apex-text-neutral-tertiary)` | `.apex-checkbox.apex-default-checkbox` |
27
34
  | `--checkbox-text-default` | `color` | `var(--apex-text-neutral-primary)` | `.apex-checkbox.apex-default-checkbox` |
28
35
  | `--checkbox-text-disabled` | `color` | `var(--apex-text-neutral-disabled)` | `.apex-checkbox.apex-default-checkbox` |
36
+ | `--checkbox-text-hover` | `color` | `var(--apex-text-neutral-secondary)` | `.apex-checkbox.apex-default-checkbox` |
@@ -17,8 +17,11 @@
17
17
  font: inherit;
18
18
  border-radius: var(--apex-radius-999);
19
19
  cursor: pointer;
20
- width: var(--input-icon-icon, var(--apex-icon-14));
21
- height: var(--input-icon-icon, var(--apex-icon-14));
20
+ /* Figma:Clear Button 恒为 14×14,与同排下拉箭头(--input-icon-icon,md/lg 16px)
21
+ 不同轨。消费方可用 --clear-size-size 覆盖;不要再挂回 --input-icon-icon,
22
+ 否则 md/lg 下会被拉到 16px。 */
23
+ width: var(--clear-size-size, var(--apex-icon-14));
24
+ height: var(--clear-size-size, var(--apex-icon-14));
22
25
  }
23
26
 
24
27
  .apex-clear__icon,
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Collapse:页面信息量大,需要将次要内容默认折叠、按需展开时。
4
4
 
5
- 版本:`1.2.0`。组件源码在本目录,属于当前项目。
5
+ 版本:`1.2.2`。组件源码在本目录,属于当前项目。
6
6
 
7
7
  公开导出:`Collapse`。
8
8
 
@@ -1,6 +1,6 @@
1
1
  # Collapse Token 明细
2
2
 
3
- 包:`@apexhub/apex-ui-react`;版本:`1.2.0`(当前源码快照)。
3
+ 包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
4
4
 
5
5
  按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
6
6
 
@@ -42,9 +42,9 @@ const EMPTY_PRESETS: RangePickerPreset[] = []
42
42
  dayjs.extend(weekOfYear)
43
43
  dayjs.extend(quarterOfYear)
44
44
 
45
- function CalendarSuffixIcon() {
45
+ function CalendarPrefixIcon() {
46
46
  return (
47
- <span className="apex-input__suffix" data-slot="date-picker-suffix" aria-hidden="true">
47
+ <span className="apex-input__prefix" data-slot="date-picker-prefix" aria-hidden="true">
48
48
  <Icon name="calendar" />
49
49
  </span>
50
50
  )
@@ -919,6 +919,8 @@ export const RangePicker: React.FC<RangePickerProps> = ({
919
919
  data-readonly={readOnly || undefined}
920
920
  onClick={handleInnerClick}
921
921
  >
922
+ {!readOnly ? <CalendarPrefixIcon /> : null}
923
+
922
924
  {/* Start trigger */}
923
925
  <Trigger
924
926
  style={{ display: 'flex', justifyContent: 'center' }}
@@ -998,7 +1000,7 @@ export const RangePicker: React.FC<RangePickerProps> = ({
998
1000
  }}
999
1001
  />
1000
1002
 
1001
- {/* Clear button(须在 suffix 前,与单选 hover 隐藏图标规则一致) */}
1003
+ {/* Clear button */}
1002
1004
  {!readOnly && allowClear && (value[0] || value[1]) ? (
1003
1005
  <Clear
1004
1006
  data-slot="date-picker-clear"
@@ -1009,8 +1011,6 @@ export const RangePicker: React.FC<RangePickerProps> = ({
1009
1011
  }}
1010
1012
  />
1011
1013
  ) : null}
1012
-
1013
- {!readOnly ? <CalendarSuffixIcon /> : null}
1014
1014
  </div>
1015
1015
  </div>
1016
1016
 
@@ -80,6 +80,11 @@ export const Trigger: React.FC<
80
80
  data-readonly={readOnly || undefined}
81
81
  {...rest}
82
82
  >
83
+ {!isRange && !readOnly ? (
84
+ <span className="apex-input__prefix" data-slot="date-picker-prefix" aria-hidden="true">
85
+ <Icon name="calendar" />
86
+ </span>
87
+ ) : null}
83
88
  <span
84
89
  style={style}
85
90
  className={cn(
@@ -101,11 +106,6 @@ export const Trigger: React.FC<
101
106
  }}
102
107
  />
103
108
  ) : null}
104
- {!isRange && !readOnly ? (
105
- <span className="apex-input__suffix" data-slot="date-picker-suffix" aria-hidden="true">
106
- <Icon name="calendar" />
107
- </span>
108
- ) : null}
109
109
  </>
110
110
  )
111
111
  }
@@ -34,9 +34,9 @@
34
34
  max-width: 100%;
35
35
  }
36
36
 
37
- /* RangePicker 触发器默认宽度 200px(missing token,待 UI 补 --datepicker-width-range-trigger) */
37
+ /* RangePicker 为完整日期与清除图标预留空间(待 UI 补 --datepicker-width-range-trigger)。 */
38
38
  .apex-datepicker.apex-input:is(.apex-default-input, .apex-elevated-input).apex-datepicker--range {
39
- width: calc(2 * var(--input-spacing-width-min));
39
+ width: calc(2 * var(--input-spacing-width-min) + 2 * var(--input-spacing-padding-x) + var(--input-icon-icon));
40
40
  height: var(--input-spacing-height);
41
41
  min-width: 0;
42
42
  max-width: 100%;
@@ -80,13 +80,13 @@
80
80
  color: var(--input-icon-focused);
81
81
  }
82
82
 
83
- /* 只读:focus / hover 保持 default */
83
+ /* 只读保持 disabled 视觉,仍可聚焦。 */
84
84
  .apex-datepicker[data-readonly]:not([data-disabled]) .apex-input__inner,
85
85
  .apex-datepicker[data-readonly]:not([data-disabled]):hover .apex-input__inner,
86
86
  .apex-datepicker[data-readonly]:not([data-disabled]) .apex-input__inner:focus-within {
87
- background-color: var(--input-fill-default);
88
- border-color: var(--input-stroke-default);
89
- color: var(--input-text-filled-default);
87
+ background-color: var(--input-fill-disabled);
88
+ border-color: var(--input-stroke-disabled);
89
+ color: var(--input-text-filled-disabled);
90
90
  }
91
91
 
92
92
  .apex-datepicker__trigger[data-readonly] {
@@ -97,7 +97,7 @@
97
97
  §2 触发器 button(字段区,布局对齐 .apex-input__field)
98
98
  ========================================================================== */
99
99
 
100
- /* 双 class 提权:填满 __inner 中 clear / suffix 之外的区域,整块可点 */
100
+ /* 双 class 提权:填满 __inner 中 prefix / clear 之外的区域,整块可点 */
101
101
  .apex-datepicker__trigger.apex-input__field {
102
102
  flex: 1 1 auto;
103
103
  min-width: 0;
@@ -108,6 +108,7 @@
108
108
  text-align: start;
109
109
  cursor: pointer;
110
110
  white-space: nowrap;
111
+ gap: var(--input-spacing-gap-x);
111
112
  }
112
113
 
113
114
  .apex-datepicker__trigger.apex-input__field:disabled {
@@ -122,7 +123,7 @@
122
123
  }
123
124
 
124
125
  /* ==========================================================================
125
- §3 value / separator / clear(suffix 用 .apex-input__suffix)
126
+ §3 value / separator / clear
126
127
  ========================================================================== */
127
128
 
128
129
  .apex-datepicker__value {
@@ -159,32 +160,44 @@
159
160
 
160
161
  .apex-datepicker .apex-input__inner[data-readonly]:not([data-disabled])
161
162
  .apex-datepicker__value--placeholder {
162
- color: var(--input-text-placeholder-default);
163
+ color: var(--input-text-placeholder-disabled);
163
164
  }
164
165
 
165
166
  .apex-datepicker__separator {
167
+ position: relative;
168
+ display: inline-flex;
169
+ align-items: center;
166
170
  flex-shrink: 0;
167
171
  padding: 0 var(--input-spacing-gap-x);
168
172
  user-select: none;
169
173
  color: inherit;
170
174
  }
171
175
 
172
- /* Icon 默认渲染 16px,但 DatePicker 尾部槽位应遵循 Input 的 --input-icon-icon。
173
- 与 14px Clear 保持同宽,避免 hover 互换时触发器宽度重排、文字横向跳动。 */
174
- .apex-datepicker .apex-input__suffix,
175
- .apex-datepicker .apex-input__suffix .apex-icon,
176
- .apex-datepicker .apex-input__suffix .apex-icon svg {
176
+ .apex-datepicker__separator::before {
177
+ content: '';
178
+ position: absolute;
179
+ inset-block: var(--apex-spacing-6);
180
+ inset-inline-start: 50%;
181
+ width: var(--apex-border-1);
182
+ transform: translateX(-50%);
183
+ background: var(--input-stroke-default);
184
+ }
185
+
186
+ /* Icon 默认渲染 16px,但 DatePicker 槽位应遵循 Input 的 --input-icon-icon。 */
187
+ .apex-datepicker .apex-input__prefix,
188
+ .apex-datepicker .apex-input__prefix .apex-icon,
189
+ .apex-datepicker .apex-input__prefix .apex-icon svg {
177
190
  width: var(--input-icon-icon);
178
191
  height: var(--input-icon-icon);
179
192
  }
180
193
 
181
- /* Icon 自带默认 color;改为继承 suffix,才能响应 Input 的 hover / focus / error / disabled 色。 */
182
- .apex-datepicker .apex-input__suffix .apex-icon {
194
+ /* Icon 自带默认 color;改为继承槽位,才能响应 Input 的 hover / focus / error / disabled 色。 */
195
+ .apex-datepicker .apex-input__prefix .apex-icon {
183
196
  color: inherit;
184
197
  }
185
198
 
186
199
  /* RangePicker showTime 打开时:仅拉伸当前编辑字段绘制底部 active bar。
187
- inner 保持 Input 默认的纵向居中,避免固定高度的 clear / suffix icon 贴到顶部。 */
200
+ inner 保持 Input 默认的纵向居中,避免固定高度的 clear / prefix icon 贴到顶部。 */
188
201
  .apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
189
202
  .apex-datepicker__trigger--start,
190
203
  .apex-datepicker--range[data-show-time][data-open]:not([data-disabled]):not([data-readonly])
@@ -227,7 +240,7 @@
227
240
  color: var(--input-text-placeholder-focused);
228
241
  }
229
242
 
230
- /* 有值且 hover 时显示 clear,与日历图标共用尾部槽。 */
243
+ /* 有值且 hover 时显示 clear。 */
231
244
  .apex-datepicker .apex-clear {
232
245
  display: none;
233
246
  }
@@ -236,11 +249,19 @@
236
249
  display: inline-flex;
237
250
  }
238
251
 
239
- /* 显示 clear 时隐藏日历图标 */
240
- .apex-datepicker:hover:not([data-disabled]):not([data-readonly]) .apex-clear ~ .apex-input__suffix {
241
- display: none;
252
+ /* RangePicker 的 clear 常驻占位,避免 hover 时两段日期重新分配宽度。 */
253
+ .apex-datepicker--range .apex-clear {
254
+ display: inline-flex;
255
+ visibility: hidden;
256
+ pointer-events: none;
257
+ }
258
+
259
+ .apex-datepicker--range:hover:not([data-disabled]):not([data-readonly]) .apex-clear {
260
+ visibility: visible;
261
+ pointer-events: auto;
242
262
  }
243
263
 
264
+
244
265
  /* Popover portal shell — above Modal/Drawer (default z-index 1000); align with Select dropdown */
245
266
  .apex-datepicker__popup {
246
267
  z-index: var(--apex-z-index-date-picker, 1050);
@@ -461,8 +482,17 @@
461
482
  }
462
483
 
463
484
  .apex-datepicker-panel__half--left {
464
- border-right: var(--datepicker-stroke-stroke-container) solid
465
- var(--datepicker-stroke-container-default);
485
+ position: relative;
486
+ }
487
+
488
+ .apex-datepicker-panel__half--left::after {
489
+ content: '';
490
+ position: absolute;
491
+ inset-block: 0;
492
+ inset-inline-end: 0;
493
+ width: var(--datepicker-stroke-stroke-container);
494
+ background: var(--datepicker-stroke-container-default);
495
+ pointer-events: none;
466
496
  }
467
497
 
468
498
  /* ==========================================================================
@@ -2,7 +2,7 @@
2
2
 
3
3
  > DatePicker:用户需要选择单个日期或日期范围,且精确到日、周、月、季、年等不同粒度时。
4
4
 
5
- 版本:`1.2.0`。组件源码在本目录,属于当前项目。
5
+ 版本:`1.2.2`。组件源码在本目录,属于当前项目。
6
6
 
7
7
  公开导出:`DatePicker`、`RangePicker`。
8
8
 
@@ -299,15 +299,19 @@ export default () => (
299
299
 
300
300
  ### 只读
301
301
 
302
- `readOnly` 为 true 时仅展示选中值,不可打开面板或修改;与 `disabled` 正交,触发器仍可聚焦。
302
+ `readOnly` 为 true 时仅展示选中值,不可打开面板或修改;视觉使用禁用配色,触发器仍可聚焦。示例对照空值与已填值的单日期和日期范围。
303
303
 
304
304
  ```tsx
305
305
  import { DatePicker, RangePicker } from '@/components/apex/date-picker'
306
306
 
307
+ import dayjs from 'dayjs'
308
+
307
309
  export default () => (
308
310
  <div style={{ display: 'flex', flexDirection: 'column', gap: 12, padding: 24 }}>
309
311
  <DatePicker readOnly placeholder="只读,不可打开面板" />
312
+ <DatePicker readOnly defaultValue={dayjs('2026-11-19')} />
310
313
  <RangePicker readOnly placeholder={['开始日期', '结束日期']} />
314
+ <RangePicker readOnly defaultValue={[dayjs('2026-11-01'), dayjs('2026-11-19')]} />
311
315
  </div>
312
316
  )
313
317
  ```
@@ -391,7 +395,7 @@ export default () => (
391
395
 
392
396
  ## DOM 结构
393
397
 
394
- 源码声明的静态 `data-slot`:`date-picker-shortcuts`、`date-picker-shortcut`、`date-picker-suffix`、`range-picker-trigger`、`date-picker-clear`、`range-picker-panel`、`date-picker-panel-body`、`date-picker-panel-day`、`date-picker-panel-footer`、`date-picker-panel-header`、`date-picker-panel`、`date-picker-panel-time-shortcut`、`date-picker-panel-time`。具体节点随模式和状态出现,不表示固定嵌套顺序。
398
+ 源码声明的静态 `data-slot`:`date-picker-shortcuts`、`date-picker-shortcut`、`date-picker-prefix`、`range-picker-trigger`、`date-picker-clear`、`range-picker-panel`、`date-picker-panel-body`、`date-picker-panel-day`、`date-picker-panel-footer`、`date-picker-panel-header`、`date-picker-panel`、`date-picker-panel-time-shortcut`、`date-picker-panel-time`。具体节点随模式和状态出现,不表示固定嵌套顺序。
395
399
 
396
400
  ## 样式定制
397
401
 
@@ -1,6 +1,6 @@
1
1
  # DatePicker Token 明细
2
2
 
3
- 包:`@apexhub/apex-ui-react`;版本:`1.2.0`(当前源码快照)。
3
+ 包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
4
4
 
5
5
  按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
6
6
 
@@ -124,10 +124,10 @@
124
124
  | `--input-spacing-height` | `height`、`min-height`、`padding-top` | `var(--apex-size-32)` | `.apex-input.apex-md-input` |
125
125
  | `--input-spacing-height` | `height`、`min-height`、`padding-top` | `var(--apex-size-24)` | `.apex-input.apex-sm-input` |
126
126
  | `--input-spacing-height-max` | `max-height` | `var(--apex-size-130)` | `.apex-input.apex-textarea-input` |
127
- | `--input-spacing-padding-x` | `padding-inline` | `var(--apex-spacing-12)` | `.apex-input.apex-lg-input` |
128
- | `--input-spacing-padding-x` | `padding-inline` | `var(--apex-spacing-12)` | `.apex-input.apex-md-input` |
129
- | `--input-spacing-padding-x` | `padding-inline` | `var(--apex-spacing-8)` | `.apex-input.apex-sm-input` |
130
- | `--input-spacing-padding-x` | `padding-inline` | `var(--apex-spacing-12)` | `.apex-input.apex-textarea-input` |
127
+ | `--input-spacing-padding-x` | `padding-inline`、`width` | `var(--apex-spacing-12)` | `.apex-input.apex-lg-input` |
128
+ | `--input-spacing-padding-x` | `padding-inline`、`width` | `var(--apex-spacing-12)` | `.apex-input.apex-md-input` |
129
+ | `--input-spacing-padding-x` | `padding-inline`、`width` | `var(--apex-spacing-8)` | `.apex-input.apex-sm-input` |
130
+ | `--input-spacing-padding-x` | `padding-inline`、`width` | `var(--apex-spacing-12)` | `.apex-input.apex-textarea-input` |
131
131
  | `--input-spacing-padding-y` | `padding-block` | `var(--apex-spacing-12)` | `.apex-input.apex-lg-input` |
132
132
  | `--input-spacing-padding-y` | `padding-block` | `var(--apex-spacing-6)` | `.apex-input.apex-md-input` |
133
133
  | `--input-spacing-padding-y` | `padding-block` | `var(--apex-spacing-4)` | `.apex-input.apex-sm-input` |
@@ -135,8 +135,8 @@
135
135
  | `--input-spacing-width-min` | `min-width`、`width` | `var(--apex-size-120)` | `.apex-input.apex-lg-input` |
136
136
  | `--input-spacing-width-min` | `min-width`、`width` | `var(--apex-size-120)` | `.apex-input.apex-md-input` |
137
137
  | `--input-spacing-width-min` | `min-width`、`width` | `var(--apex-size-120)` | `.apex-input.apex-sm-input` |
138
- | `--input-stroke-default` | `border-color` | `var(--apex-stroke-neutral-quaternary)` | `.apex-input.apex-default-input` |
139
- | `--input-stroke-default` | `border-color` | `var(--apex-stroke-neutral-quaternary)` | `.apex-input.apex-elevated-input` |
138
+ | `--input-stroke-default` | `background`、`border-color` | `var(--apex-stroke-neutral-quaternary)` | `.apex-input.apex-default-input` |
139
+ | `--input-stroke-default` | `background`、`border-color` | `var(--apex-stroke-neutral-quaternary)` | `.apex-input.apex-elevated-input` |
140
140
  | `--input-stroke-disabled` | `border-color` | `var(--apex-stroke-neutral-quaternary)` | `.apex-input.apex-default-input` |
141
141
  | `--input-stroke-disabled` | `border-color` | `var(--apex-stroke-neutral-quaternary)` | `.apex-input.apex-elevated-input` |
142
142
  | `--input-stroke-error` | `border-color` | `var(--apex-stroke-error-primary)` | `.apex-input.apex-default-input` |
@@ -150,10 +150,10 @@
150
150
  | `--input-stroke-stroke` | `border-width`、`padding-block` | `var(--apex-border-1)` | `.apex-input.apex-sm-input` |
151
151
  | `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
152
152
  | `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
153
- | `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-secondary)` | `.apex-input.apex-default-input` |
153
+ | `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-default-input` |
154
154
  | `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-elevated-input` |
155
- | `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-tertiary)` | `.apex-input.apex-default-input` |
156
- | `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-tertiary)` | `.apex-input.apex-elevated-input` |
155
+ | `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
156
+ | `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
157
157
  | `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
158
158
  | `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
159
159
  | `--input-text-filled-hover` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |