@apexhub/apex-ui-react 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.
- package/dist/index.cjs +3363 -3328
- package/dist/index.d.ts +26 -22
- package/dist/index.mjs +3363 -3328
- package/dist/llm/alert.tokens.txt +1 -1
- package/dist/llm/alert.txt +3 -3
- package/dist/llm/apex-provider.txt +3 -2
- package/dist/llm/auto-complete.tokens.txt +1 -1
- package/dist/llm/auto-complete.txt +1 -1
- package/dist/llm/avatar.tokens.txt +1 -1
- package/dist/llm/avatar.txt +1 -1
- package/dist/llm/breadcrumb.tokens.txt +46 -96
- package/dist/llm/breadcrumb.txt +8 -8
- package/dist/llm/button.tokens.txt +1 -1
- package/dist/llm/button.txt +16 -8
- package/dist/llm/card.tokens.txt +3 -1
- package/dist/llm/card.txt +24 -1
- package/dist/llm/cascader.tokens.txt +15 -7
- package/dist/llm/cascader.txt +25 -6
- package/dist/llm/checkbox.tokens.txt +10 -2
- package/dist/llm/checkbox.txt +24 -13
- package/dist/llm/collapse.tokens.txt +1 -1
- package/dist/llm/collapse.txt +1 -1
- package/dist/llm/date-picker.tokens.txt +10 -10
- package/dist/llm/date-picker.txt +7 -3
- package/dist/llm/divider.tokens.txt +1 -1
- package/dist/llm/divider.txt +1 -1
- package/dist/llm/drawer.tokens.txt +2 -2
- package/dist/llm/drawer.txt +2 -2
- package/dist/llm/dropdown.tokens.txt +1 -1
- package/dist/llm/dropdown.txt +1 -1
- package/dist/llm/form.tokens.txt +3 -1
- package/dist/llm/form.txt +1 -1
- package/dist/llm/grid.txt +9 -9
- package/dist/llm/image.tokens.txt +1 -1
- package/dist/llm/image.txt +2 -2
- package/dist/llm/input-number.tokens.txt +4 -4
- package/dist/llm/input-number.txt +8 -3
- package/dist/llm/input.tokens.txt +4 -4
- package/dist/llm/input.txt +4 -2
- package/dist/llm/layout.tokens.txt +1 -1
- package/dist/llm/layout.txt +1 -1
- package/dist/llm/menu.tokens.txt +21 -8
- package/dist/llm/menu.txt +19 -12
- package/dist/llm/message.tokens.txt +1 -1
- package/dist/llm/message.txt +1 -1
- package/dist/llm/modal.tokens.txt +1 -1
- package/dist/llm/modal.txt +9 -9
- package/dist/llm/notification.tokens.txt +1 -1
- package/dist/llm/notification.txt +1 -1
- package/dist/llm/pagination.tokens.txt +6 -4
- package/dist/llm/pagination.txt +18 -9
- package/dist/llm/popover.tokens.txt +4 -14
- package/dist/llm/popover.txt +3 -3
- package/dist/llm/progress.tokens.txt +1 -1
- package/dist/llm/progress.txt +4 -4
- package/dist/llm/radio.tokens.txt +11 -6
- package/dist/llm/radio.txt +38 -1
- package/dist/llm/rate.tokens.txt +1 -1
- package/dist/llm/rate.txt +1 -1
- package/dist/llm/select.tokens.txt +4 -4
- package/dist/llm/select.txt +8 -7
- package/dist/llm/skeleton.tokens.txt +1 -1
- package/dist/llm/skeleton.txt +1 -1
- package/dist/llm/spin.tokens.txt +1 -1
- package/dist/llm/spin.txt +1 -1
- package/dist/llm/steps.tokens.txt +1 -1
- package/dist/llm/steps.txt +1 -1
- package/dist/llm/switch.tokens.txt +1 -1
- package/dist/llm/switch.txt +1 -1
- package/dist/llm/table.tokens.txt +2 -2
- package/dist/llm/table.txt +16 -13
- package/dist/llm/tabs.tokens.txt +1 -1
- package/dist/llm/tabs.txt +1 -1
- package/dist/llm/tag.tokens.txt +1 -2
- package/dist/llm/tag.txt +7 -8
- package/dist/llm/tooltip.tokens.txt +1 -1
- package/dist/llm/tooltip.txt +1 -1
- package/dist/llm/tree-select.tokens.txt +7 -6
- package/dist/llm/tree-select.txt +32 -22
- package/dist/llm/tree.tokens.txt +1 -3
- package/dist/llm/tree.txt +11 -15
- package/dist/llm/typography.tokens.txt +1 -1
- package/dist/llm/typography.txt +1 -1
- package/dist/llm/upload.tokens.txt +5 -1
- package/dist/llm/upload.txt +4 -2
- package/dist/llms-full.txt +321 -184
- package/dist/llms.txt +1 -1
- package/dist/style.css +1716 -1240
- package/llms-full.txt +321 -184
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/src/alert/llm.txt +3 -3
- package/src/alert/tokens.txt +1 -1
- package/src/apex-provider/llm.txt +3 -2
- package/src/auto-complete/llm.txt +1 -1
- package/src/auto-complete/tokens.txt +1 -1
- package/src/avatar/llm.txt +1 -1
- package/src/avatar/tokens.txt +1 -1
- package/src/breadcrumb/llm.txt +8 -8
- package/src/breadcrumb/tokens.txt +46 -96
- package/src/button/llm.txt +16 -8
- package/src/button/tokens.txt +1 -1
- package/src/card/llm.txt +24 -1
- package/src/card/tokens.txt +3 -1
- package/src/cascader/llm.txt +25 -6
- package/src/cascader/tokens.txt +15 -7
- package/src/checkbox/llm.txt +24 -13
- package/src/checkbox/tokens.txt +10 -2
- package/src/collapse/llm.txt +1 -1
- package/src/collapse/tokens.txt +1 -1
- package/src/date-picker/llm.txt +7 -3
- package/src/date-picker/tokens.txt +10 -10
- package/src/divider/llm.txt +1 -1
- package/src/divider/tokens.txt +1 -1
- package/src/drawer/llm.txt +2 -2
- package/src/drawer/tokens.txt +2 -2
- package/src/dropdown/llm.txt +1 -1
- package/src/dropdown/tokens.txt +1 -1
- package/src/form/llm.txt +1 -1
- package/src/form/tokens.txt +3 -1
- package/src/grid/llm.txt +9 -9
- package/src/image/llm.txt +2 -2
- package/src/image/tokens.txt +1 -1
- package/src/input/llm.txt +4 -2
- package/src/input/tokens.txt +4 -4
- package/src/input-number/llm.txt +8 -3
- package/src/input-number/tokens.txt +4 -4
- package/src/layout/llm.txt +1 -1
- package/src/layout/tokens.txt +1 -1
- package/src/menu/llm.txt +19 -12
- package/src/menu/tokens.txt +21 -8
- package/src/message/llm.txt +1 -1
- package/src/message/tokens.txt +1 -1
- package/src/modal/llm.txt +9 -9
- package/src/modal/tokens.txt +1 -1
- package/src/notification/llm.txt +1 -1
- package/src/notification/tokens.txt +1 -1
- package/src/pagination/llm.txt +18 -9
- package/src/pagination/tokens.txt +6 -4
- package/src/popover/llm.txt +3 -3
- package/src/popover/tokens.txt +4 -14
- package/src/progress/llm.txt +4 -4
- package/src/progress/tokens.txt +1 -1
- package/src/radio/llm.txt +38 -1
- package/src/radio/tokens.txt +11 -6
- package/src/rate/llm.txt +1 -1
- package/src/rate/tokens.txt +1 -1
- package/src/select/llm.txt +8 -7
- package/src/select/tokens.txt +4 -4
- package/src/skeleton/llm.txt +1 -1
- package/src/skeleton/tokens.txt +1 -1
- package/src/spin/llm.txt +1 -1
- package/src/spin/tokens.txt +1 -1
- package/src/steps/llm.txt +1 -1
- package/src/steps/tokens.txt +1 -1
- package/src/switch/llm.txt +1 -1
- package/src/switch/tokens.txt +1 -1
- package/src/table/llm.txt +16 -13
- package/src/table/tokens.txt +2 -2
- package/src/tabs/llm.txt +1 -1
- package/src/tabs/tokens.txt +1 -1
- package/src/tag/llm.txt +7 -8
- package/src/tag/tokens.txt +1 -2
- package/src/tooltip/llm.txt +1 -1
- package/src/tooltip/tokens.txt +1 -1
- package/src/tree/llm.txt +11 -15
- package/src/tree/tokens.txt +1 -3
- package/src/tree-select/llm.txt +32 -22
- package/src/tree-select/tokens.txt +7 -6
- package/src/typography/llm.txt +1 -1
- package/src/typography/tokens.txt +1 -1
- package/src/upload/llm.txt +4 -2
- package/src/upload/tokens.txt +5 -1
package/src/cascader/tokens.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cascader Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
3
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
|
|
4
4
|
|
|
5
5
|
按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
|
|
6
6
|
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
| Token | 用途(CSS 属性) | 定义值 | 定义作用域 |
|
|
12
12
|
| --- | --- | --- | --- |
|
|
13
|
+
| `--cascader-spacing-gap` | `gap` | `var(--apex-spacing-4)` | `.apex-cascader.apex-default-cascader` |
|
|
14
|
+
| `--checkbox-fill-check-active` | `fill` | `var(--apex-fill-brand-tertiary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
15
|
+
| `--checkbox-fill-check-hover` | `fill` | `var(--apex-fill-brand-secondary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
13
16
|
| `--checkbox-fill-checked` | `fill`、`outline` | `var(--apex-fill-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
17
|
+
| `--checkbox-fill-disabled` | `fill` | `var(--apex-fill-neutral-quinary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
14
18
|
| `--checkbox-fill-indeterminate` | `fill` | `var(--apex-fill-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
15
19
|
| `--checkbox-group-spacing-gap-x` | `column-gap` | `var(--apex-spacing-12)` | `.apex-checkbox-group.apex-default-checkbox-group` |
|
|
16
20
|
| `--checkbox-group-spacing-gap-y` | `row-gap` | `var(--apex-spacing-8)` | `.apex-checkbox-group.apex-default-checkbox-group` |
|
|
@@ -19,13 +23,18 @@
|
|
|
19
23
|
| `--checkbox-icon-indeterminate` | `color` | `var(--apex-icon-neutral-quaternary-stable)` | `.apex-checkbox.apex-default-checkbox` |
|
|
20
24
|
| `--checkbox-radius-radius` | `border-radius` | `var(--apex-radius-4)` | `.apex-checkbox.apex-default-checkbox` |
|
|
21
25
|
| `--checkbox-spacing-gap` | `gap` | `var(--apex-spacing-4)` | `.apex-checkbox.apex-default-checkbox` |
|
|
26
|
+
| `--checkbox-stroke-active` | `color` | `var(--apex-stroke-neutral-septenary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
27
|
+
| `--checkbox-stroke-check-active` | `color` | `var(--apex-stroke-brand-tertiary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
28
|
+
| `--checkbox-stroke-check-hover` | `color` | `var(--apex-stroke-brand-secondary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
22
29
|
| `--checkbox-stroke-checked` | `color` | `var(--apex-stroke-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
23
30
|
| `--checkbox-stroke-default` | `color` | `var(--apex-stroke-neutral-denary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
24
|
-
| `--checkbox-stroke-disabled` | `color
|
|
31
|
+
| `--checkbox-stroke-disabled` | `color` | `var(--apex-stroke-neutral-quinary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
25
32
|
| `--checkbox-stroke-hover` | `color` | `var(--apex-stroke-neutral-octonary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
26
33
|
| `--checkbox-stroke-indeterminate` | `color` | `var(--apex-stroke-brand-primary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
34
|
+
| `--checkbox-text-active` | `color` | `var(--apex-text-neutral-tertiary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
27
35
|
| `--checkbox-text-default` | `color` | `var(--apex-text-neutral-primary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
28
36
|
| `--checkbox-text-disabled` | `color` | `var(--apex-text-neutral-disabled)` | `.apex-checkbox.apex-default-checkbox` |
|
|
37
|
+
| `--checkbox-text-hover` | `color` | `var(--apex-text-neutral-secondary)` | `.apex-checkbox.apex-default-checkbox` |
|
|
29
38
|
| `--dropdown-fill-active` | `background-color` | `var(--apex-fill-neutral-quaternary)` | `.apex-dropdown.apex-default-dropdown` |
|
|
30
39
|
| `--dropdown-fill-container-default` | `background-color` | `var(--apex-fill-neutral-secondary)` | `.apex-dropdown.apex-default-dropdown` |
|
|
31
40
|
| `--dropdown-fill-default` | `background-color` | `var(--apex-fill-neutral-transparent)` | `.apex-dropdown.apex-default-dropdown` |
|
|
@@ -65,7 +74,7 @@
|
|
|
65
74
|
| `--dropdown-spacing-item-padding-x-item` | `padding`、`padding-inline` | `var(--apex-spacing-12)` | `.apex-dropdown.apex-sm-dropdown` |
|
|
66
75
|
| `--dropdown-stroke` | `border-width` | `var(--apex-border-1)` | `.apex-dropdown.apex-lg-dropdown` |
|
|
67
76
|
| `--dropdown-stroke` | `border-width` | `var(--apex-border-1)` | `.apex-dropdown.apex-sm-dropdown` |
|
|
68
|
-
| `--dropdown-stroke-container-default` | `border-color` | `var(--apex-stroke-neutral-quinary)` | `.apex-dropdown.apex-default-dropdown` |
|
|
77
|
+
| `--dropdown-stroke-container-default` | `background`、`border-color` | `var(--apex-stroke-neutral-quinary)` | `.apex-dropdown.apex-default-dropdown` |
|
|
69
78
|
| `--dropdown-text-active` | `color` | `var(--apex-text-neutral-primary)` | `.apex-dropdown.apex-default-dropdown` |
|
|
70
79
|
| `--dropdown-text-default` | `color` | `var(--apex-text-neutral-primary)` | `.apex-dropdown.apex-default-dropdown` |
|
|
71
80
|
| `--dropdown-text-disabled` | `color` | `var(--apex-text-neutral-disabled)` | `.apex-dropdown.apex-default-dropdown` |
|
|
@@ -181,10 +190,10 @@
|
|
|
181
190
|
| `--input-stroke-stroke` | `border-width`、`padding-block` | `var(--apex-border-1)` | `.apex-input.apex-sm-input` |
|
|
182
191
|
| `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
183
192
|
| `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
184
|
-
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
193
|
+
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-default-input` |
|
|
185
194
|
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-elevated-input` |
|
|
186
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
187
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
195
|
+
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
196
|
+
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
188
197
|
| `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
189
198
|
| `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
190
199
|
| `--input-text-filled-hover` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
@@ -200,7 +209,6 @@
|
|
|
200
209
|
| `--input-text-placeholder-hover` | `color` | `var(--apex-text-neutral-tertiary)` | `.apex-input.apex-default-input` |
|
|
201
210
|
| `--input-text-placeholder-hover` | `color` | `var(--apex-text-neutral-tertiary)` | `.apex-input.apex-elevated-input` |
|
|
202
211
|
| `--tag-active` | `color` | `var(--apex-icon-neutral-tertiary)` | `.apex-tag.apex-close-tag` |
|
|
203
|
-
| `--tag-default` | `color` | `var(--apex-icon-neutral-primary)` | `.apex-tag.apex-close-tag` |
|
|
204
212
|
| `--tag-fill-default` | `background-color` | `var(--apex-fill-brand-alpha-secondary)` | `.apex-tag.apex-filled-default-brand-tag` |
|
|
205
213
|
| `--tag-fill-default` | `background-color` | `var(--apex-fill-neutral-secondary)` | `.apex-tag.apex-filled-default-default-tag` |
|
|
206
214
|
| `--tag-fill-default` | `background-color` | `var(--apex-fill-error-alpha-secondary)` | `.apex-tag.apex-filled-default-error-tag` |
|
package/src/checkbox/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Checkbox:用户可从多个选项中任选零个、一个或多个时(与 Radio 互斥单选相对)。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`Checkbox`、`CheckboxGroup`。
|
|
8
8
|
|
|
@@ -144,17 +144,28 @@ export default () => (
|
|
|
144
144
|
import { Checkbox } from '@apexhub/apex-ui-react'
|
|
145
145
|
|
|
146
146
|
export default () => (
|
|
147
|
-
<div
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
147
|
+
<div
|
|
148
|
+
style={{
|
|
149
|
+
display: 'grid',
|
|
150
|
+
gridTemplateColumns: 'auto repeat(3, minmax(72px, 1fr))',
|
|
151
|
+
alignItems: 'center',
|
|
152
|
+
columnGap: 16,
|
|
153
|
+
rowGap: 12,
|
|
154
|
+
width: 'min(100%, 360px)',
|
|
155
|
+
}}
|
|
156
|
+
>
|
|
157
|
+
<span />
|
|
158
|
+
<span>未选中</span>
|
|
159
|
+
<span>已选中</span>
|
|
160
|
+
<span>半选</span>
|
|
161
|
+
<span>默认</span>
|
|
162
|
+
<Checkbox aria-label="默认-未选中" />
|
|
163
|
+
<Checkbox defaultChecked aria-label="默认-已选中" />
|
|
164
|
+
<Checkbox indeterminate aria-label="默认-半选" />
|
|
165
|
+
<span>禁用</span>
|
|
166
|
+
<Checkbox disabled aria-label="禁用-未选中" />
|
|
167
|
+
<Checkbox disabled defaultChecked aria-label="禁用-已选中" />
|
|
168
|
+
<Checkbox disabled indeterminate aria-label="禁用-半选" />
|
|
158
169
|
</div>
|
|
159
170
|
)
|
|
160
171
|
```
|
|
@@ -282,7 +293,7 @@ import type * as React from 'react'
|
|
|
282
293
|
|
|
283
294
|
const styles: CheckboxProps['styles'] = {
|
|
284
295
|
root: {
|
|
285
|
-
'--checkbox-gap': 'var(--apex-spacing-
|
|
296
|
+
'--checkbox-spacing-gap': 'var(--apex-spacing-8)',
|
|
286
297
|
} as React.CSSProperties,
|
|
287
298
|
indicator: {
|
|
288
299
|
opacity: 0.9,
|
package/src/checkbox/tokens.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Checkbox Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
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
|
|
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` |
|
package/src/collapse/llm.txt
CHANGED
package/src/collapse/tokens.txt
CHANGED
package/src/date-picker/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> DatePicker:用户需要选择单个日期或日期范围,且精确到日、周、月、季、年等不同粒度时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`DatePicker`、`RangePicker`。
|
|
8
8
|
|
|
@@ -300,15 +300,19 @@ export default () => (
|
|
|
300
300
|
|
|
301
301
|
### 只读
|
|
302
302
|
|
|
303
|
-
`readOnly` 为 true
|
|
303
|
+
`readOnly` 为 true 时仅展示选中值,不可打开面板或修改;视觉使用禁用配色,触发器仍可聚焦。示例对照空值与已填值的单日期和日期范围。
|
|
304
304
|
|
|
305
305
|
```tsx
|
|
306
306
|
import { DatePicker, RangePicker } from '@apexhub/apex-ui-react'
|
|
307
307
|
|
|
308
|
+
import dayjs from 'dayjs'
|
|
309
|
+
|
|
308
310
|
export default () => (
|
|
309
311
|
<div style={{ display: 'flex', flexDirection: 'column', gap: 12, padding: 24 }}>
|
|
310
312
|
<DatePicker readOnly placeholder="只读,不可打开面板" />
|
|
313
|
+
<DatePicker readOnly defaultValue={dayjs('2026-11-19')} />
|
|
311
314
|
<RangePicker readOnly placeholder={['开始日期', '结束日期']} />
|
|
315
|
+
<RangePicker readOnly defaultValue={[dayjs('2026-11-01'), dayjs('2026-11-19')]} />
|
|
312
316
|
</div>
|
|
313
317
|
)
|
|
314
318
|
```
|
|
@@ -392,7 +396,7 @@ export default () => (
|
|
|
392
396
|
|
|
393
397
|
## DOM 结构
|
|
394
398
|
|
|
395
|
-
源码声明的静态 `data-slot`:`date-picker-shortcuts`、`date-picker-shortcut`、`date-picker-
|
|
399
|
+
源码声明的静态 `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`。具体节点随模式和状态出现,不表示固定嵌套顺序。
|
|
396
400
|
|
|
397
401
|
## 样式定制
|
|
398
402
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DatePicker Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
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-
|
|
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-
|
|
156
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
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` |
|
package/src/divider/llm.txt
CHANGED
package/src/divider/tokens.txt
CHANGED
package/src/drawer/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Drawer:需要从屏幕边缘滑出面板展示详情、表单或临时任务,且保留原页面上下文时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`Drawer`。
|
|
8
8
|
|
|
@@ -336,7 +336,7 @@ export default () => {
|
|
|
336
336
|
body: 'custom-drawer-body',
|
|
337
337
|
}}
|
|
338
338
|
styles={{
|
|
339
|
-
body: { paddingBlock: 'var(--drawer-padding)' },
|
|
339
|
+
body: { paddingBlock: 'var(--drawer-spacing-padding)' },
|
|
340
340
|
}}
|
|
341
341
|
drawerRender={(node) => <div data-demo="drawer-shell">{node}</div>}
|
|
342
342
|
onClose={() => setOpen(false)}
|
package/src/drawer/tokens.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Drawer Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
3
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
|
|
4
4
|
|
|
5
5
|
按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
|
|
6
6
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
| `--drawer-icon-hover` | `color` | `var(--apex-icon-neutral-secondary)` | `.apex-drawer.apex-default-drawer` |
|
|
17
17
|
| `--drawer-radius-radius` | `border-radius` | `var(--apex-radius-12)` | `.apex-drawer.apex-default-drawer` |
|
|
18
18
|
| `--drawer-spacing-margin` | `height`、`margin`、`max-height` | `var(--apex-spacing-8)` | `.apex-drawer.apex-default-drawer` |
|
|
19
|
-
| `--drawer-spacing-padding` | `margin-inline-end`、`padding`、`padding-inline-end` | `var(--apex-spacing-16)` | `.apex-drawer.apex-default-drawer` |
|
|
19
|
+
| `--drawer-spacing-padding` | `margin-inline-end`、`padding`、`padding-block-start`、`padding-inline-end` | `var(--apex-spacing-16)` | `.apex-drawer.apex-default-drawer` |
|
|
20
20
|
| `--drawer-spacing-width` | `width` | `var(--apex-size-800)` | `.apex-drawer.apex-default-drawer` |
|
|
21
21
|
| `--drawer-stroke-default` | `border` | `var(--apex-stroke-neutral-quinary)` | `.apex-drawer.apex-default-drawer` |
|
|
22
22
|
| `--drawer-stroke-stroke` | `border` | `var(--apex-border-1)` | `.apex-drawer.apex-default-drawer` |
|
package/src/dropdown/llm.txt
CHANGED
package/src/dropdown/tokens.txt
CHANGED
package/src/form/llm.txt
CHANGED
package/src/form/tokens.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Form Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
3
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
|
|
4
4
|
|
|
5
5
|
按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
|
|
6
6
|
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
| Token | 用途(CSS 属性) | 定义值 | 定义作用域 |
|
|
12
12
|
| --- | --- | --- | --- |
|
|
13
|
+
| `--form-spacing-gap` | `margin-top` | `var(--apex-spacing-4)` | `.apex-form.apex-vertical-form` |
|
|
13
14
|
| `--form-spacing-gap-caption` | `gap` | `var(--apex-spacing-0)` | `.apex-form.apex-horizontal-form` |
|
|
14
15
|
| `--form-spacing-gap-caption` | `gap` | `var(--apex-spacing-0)` | `.apex-form.apex-vertical-form` |
|
|
15
16
|
| `--form-spacing-gap-title` | `column-gap`、`gap` | `var(--apex-spacing-8)` | `.apex-form.apex-horizontal-form` |
|
|
16
17
|
| `--form-spacing-gap-title` | `column-gap`、`gap` | `var(--apex-spacing-4)` | `.apex-form.apex-vertical-form` |
|
|
18
|
+
| `--form-spacing-gap-y` | `margin-top` | `var(--apex-spacing-4)` | `.apex-form.apex-horizontal-form` |
|
|
17
19
|
| `--form-text-caption-default` | `color` | `var(--apex-text-neutral-secondary)` | `.apex-form.apex-default-form` |
|
|
18
20
|
| `--form-text-caption-disabled` | `color` | `var(--apex-text-neutral-disabled)` | `.apex-form.apex-default-form` |
|
|
19
21
|
| `--form-text-caption-error` | `color` | `var(--apex-text-error-primary)` | `.apex-form.apex-default-form` |
|
package/src/grid/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Grid:页面区块需要按 24 栅格划分宽度与响应式列数时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`Col`、`Row`、`useBreakpoint`。
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ import type { CSSProperties } from 'react'
|
|
|
18
18
|
import '@apexhub/apex-ui-react/style.css'
|
|
19
19
|
|
|
20
20
|
const boxStyle: CSSProperties = {
|
|
21
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
21
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
22
22
|
padding: '8px 0',
|
|
23
23
|
textAlign: 'center',
|
|
24
24
|
borderRadius: 4,
|
|
@@ -175,7 +175,7 @@ import { Col, Row } from '@apexhub/apex-ui-react'
|
|
|
175
175
|
import type { CSSProperties } from 'react'
|
|
176
176
|
|
|
177
177
|
const boxStyle: CSSProperties = {
|
|
178
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
178
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
179
179
|
padding: '8px 0',
|
|
180
180
|
textAlign: 'center',
|
|
181
181
|
borderRadius: 4,
|
|
@@ -206,7 +206,7 @@ import { Col, Row } from '@apexhub/apex-ui-react'
|
|
|
206
206
|
import type { CSSProperties } from 'react'
|
|
207
207
|
|
|
208
208
|
const boxStyle: CSSProperties = {
|
|
209
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
209
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
210
210
|
padding: '8px 0',
|
|
211
211
|
textAlign: 'center',
|
|
212
212
|
borderRadius: 4,
|
|
@@ -262,7 +262,7 @@ import { Col, Divider, Row, Typography } from '@apexhub/apex-ui-react'
|
|
|
262
262
|
import type { CSSProperties } from 'react'
|
|
263
263
|
|
|
264
264
|
const boxStyle: CSSProperties = {
|
|
265
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
265
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
266
266
|
padding: '8px 0',
|
|
267
267
|
textAlign: 'center',
|
|
268
268
|
borderRadius: 4,
|
|
@@ -270,7 +270,7 @@ const boxStyle: CSSProperties = {
|
|
|
270
270
|
|
|
271
271
|
const rowStyle: CSSProperties = {
|
|
272
272
|
width: '100%',
|
|
273
|
-
backgroundColor: '
|
|
273
|
+
backgroundColor: 'var(--apex-fill-neutral-primary)',
|
|
274
274
|
borderRadius: 4,
|
|
275
275
|
}
|
|
276
276
|
|
|
@@ -320,7 +320,7 @@ import { Col, Row } from '@apexhub/apex-ui-react'
|
|
|
320
320
|
import type { CSSProperties } from 'react'
|
|
321
321
|
|
|
322
322
|
const boxStyle: CSSProperties = {
|
|
323
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
323
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
324
324
|
padding: '8px 0',
|
|
325
325
|
textAlign: 'center',
|
|
326
326
|
borderRadius: 4,
|
|
@@ -356,7 +356,7 @@ export default () => (
|
|
|
356
356
|
import { Col, Row } from '@apexhub/apex-ui-react'
|
|
357
357
|
|
|
358
358
|
const boxStyle = {
|
|
359
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
359
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
360
360
|
padding: '8px 12px',
|
|
361
361
|
borderRadius: 4,
|
|
362
362
|
display: 'flex',
|
|
@@ -386,7 +386,7 @@ import { Col, Row } from '@apexhub/apex-ui-react'
|
|
|
386
386
|
import type { CSSProperties } from 'react'
|
|
387
387
|
|
|
388
388
|
const boxStyle: CSSProperties = {
|
|
389
|
-
background: 'var(--apex-fill-neutral-secondary
|
|
389
|
+
background: 'var(--apex-fill-neutral-secondary)',
|
|
390
390
|
padding: '8px 0',
|
|
391
391
|
textAlign: 'center',
|
|
392
392
|
borderRadius: 4,
|
package/src/image/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Image:需要以缩略图形式展示图片,并支持点击放大预览时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`Image`。
|
|
8
8
|
|
|
@@ -406,7 +406,7 @@ export default () => {
|
|
|
406
406
|
## 行为要点
|
|
407
407
|
|
|
408
408
|
- **URL 所有权**:Image 只接收可用 URL 字符串,**不接收 `File`/`Blob`**,不调用 `revokeObjectURL`。如果你使用 `URL.createObjectURL` 生成的 `blob:` 地址,需自行管理生命周期。
|
|
409
|
-
-
|
|
409
|
+
- **变换工具栏**:预览层使用 medium 图标按钮,内置缩放(步进 0.25,范围 0.25–5)、左右旋转、1:1 原始尺寸、适应视口、占满视口。切图/关闭/重开时变换复位。
|
|
410
410
|
- **键盘**:打开后焦点陷阱;`Esc` 在占满视口时先退出占满再关闭;`←` / `→` 切图;关闭后焦点回触发元素。
|
|
411
411
|
- **边界**:单图无 prev/next 控件;索引越界时禁用不循环;`fallback` 再失败不递归。
|
|
412
412
|
|
package/src/image/tokens.txt
CHANGED
package/src/input/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Input:需要通过键盘录入单行或多行文本内容时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`Input`。
|
|
8
8
|
|
|
@@ -258,14 +258,16 @@ export default () => (
|
|
|
258
258
|
|
|
259
259
|
### 只读
|
|
260
260
|
|
|
261
|
-
`readOnly` 为 true 时可查看内容但不可修改,无 hover
|
|
261
|
+
`readOnly` 为 true 时可查看内容但不可修改,无 hover 交互态;视觉使用禁用配色,但控件仍可聚焦。示例同时展示空值占位和已填内容。
|
|
262
262
|
|
|
263
263
|
```tsx
|
|
264
264
|
import { Input } from '@apexhub/apex-ui-react'
|
|
265
265
|
|
|
266
266
|
export default () => (
|
|
267
267
|
<div style={{ display: 'flex', flexDirection: 'column', gap: 12, maxWidth: 320 }}>
|
|
268
|
+
<Input readOnly placeholder="只读空值" />
|
|
268
269
|
<Input readOnly defaultValue="只读输入框" />
|
|
270
|
+
<Input type="textarea" readOnly rows={3} placeholder="只读文本域空值" />
|
|
269
271
|
<Input type="textarea" readOnly rows={3} defaultValue="只读文本域" />
|
|
270
272
|
</div>
|
|
271
273
|
)
|
package/src/input/tokens.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Input Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
3
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
|
|
4
4
|
|
|
5
5
|
按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
|
|
6
6
|
|
|
@@ -118,10 +118,10 @@
|
|
|
118
118
|
| `--input-stroke-stroke` | `border-width`、`padding-block` | `var(--apex-border-1)` | `.apex-input.apex-sm-input` |
|
|
119
119
|
| `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
120
120
|
| `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
121
|
-
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
121
|
+
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-default-input` |
|
|
122
122
|
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-elevated-input` |
|
|
123
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
124
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
123
|
+
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
124
|
+
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
125
125
|
| `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
126
126
|
| `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
127
127
|
| `--input-text-filled-hover` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
package/src/input-number/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> InputNumber:需要录入有上下界的数值,并支持步进增减时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`InputNumber`。
|
|
8
8
|
|
|
@@ -284,12 +284,17 @@ export default () => <InputNumber disabled defaultValue={5} min={0} max={100} />
|
|
|
284
284
|
|
|
285
285
|
### 只读
|
|
286
286
|
|
|
287
|
-
`readOnly` 为 true
|
|
287
|
+
`readOnly` 为 true 时可查看数值但不可编辑,步进按钮与键盘输入一并禁用;空值占位和已填数值均使用禁用配色。
|
|
288
288
|
|
|
289
289
|
```tsx
|
|
290
290
|
import { InputNumber } from '@apexhub/apex-ui-react'
|
|
291
291
|
|
|
292
|
-
export default () =>
|
|
292
|
+
export default () => (
|
|
293
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: 12, maxWidth: 280 }}>
|
|
294
|
+
<InputNumber readOnly placeholder="只读空值" min={0} max={100} />
|
|
295
|
+
<InputNumber readOnly defaultValue={5} min={0} max={100} />
|
|
296
|
+
</div>
|
|
297
|
+
)
|
|
293
298
|
```
|
|
294
299
|
|
|
295
300
|
### 小数步长与格式化
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# InputNumber Token 明细
|
|
2
2
|
|
|
3
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
3
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照)。
|
|
4
4
|
|
|
5
5
|
按需读取:[组件用法](./llm.txt) · [主题与覆盖规则](../../llms-theme.txt)。
|
|
6
6
|
|
|
@@ -139,10 +139,10 @@
|
|
|
139
139
|
| `--input-stroke-stroke` | `border`、`border-end-end-radius`、`border-end-start-radius`、`border-start-end-radius`、`border-start-start-radius`、`border-width`、`height`、`margin-block`、`margin-inline-end`、`margin-inline-start`、`outline`、`padding-block`、`padding-inline-end`、`padding-inline-start`、`width` | `var(--apex-border-1)` | `.apex-input.apex-sm-input` |
|
|
140
140
|
| `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
141
141
|
| `--input-text-filled-default` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
142
|
-
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
142
|
+
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-default-input` |
|
|
143
143
|
| `--input-text-filled-disabled` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-disabled)` | `.apex-input.apex-elevated-input` |
|
|
144
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
145
|
-
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-
|
|
144
|
+
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
145
|
+
| `--input-text-filled-error` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
146
146
|
| `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
|
147
147
|
| `--input-text-filled-focused` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-elevated-input` |
|
|
148
148
|
| `--input-text-filled-hover` | `-webkit-text-fill-color`、`caret-color`、`color` | `var(--apex-text-neutral-primary)` | `.apex-input.apex-default-input` |
|
package/src/layout/llm.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Layout:搭建后台页面的 Header、侧栏、内容区与 Footer 等整体结构时。
|
|
4
4
|
|
|
5
|
-
包:`@apexhub/apex-ui-react`;版本:`1.2.
|
|
5
|
+
包:`@apexhub/apex-ui-react`;版本:`1.2.2`(当前源码快照,发布状态以安装包版本为准)。
|
|
6
6
|
|
|
7
7
|
公开导出:`Layout`、`LayoutSiderDrawerBody`、`LayoutSiderDrawerHeader`、`LayoutSiderMenuCollapsed`、`LayoutSiderMenuMaximized`。
|
|
8
8
|
|