@astryx-vue/core 0.23.0 → 0.24.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.
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-mlCoLtma.js → Breadcrumbs-Nv-089W0.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BNwTTDHu.js → CheckboxInput-FKfsoLcl.js} +14 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BLY16jPG.js → CheckboxList-DuSVBtMk.js} +20 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CVQ7XS4L.js → ClickableCard-dNmSVHBu.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CVCIsgAU.js → ComplexSelector-C4CO8Fd2.js} +1 -1
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DYLdP-Ok.js → ContextMenu-SzsWZf18.js} +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BVEOMFwc.js → DropdownMenu-BhxKnh6D.js} +2 -2
- package/dist/{DropdownMenu-PjqSkkQs.js → DropdownMenu-Der2x_k_.js} +3 -3
- package/dist/{DropdownMenuRadioItem.vue-C9DdN6UE.d.ts → DropdownMenuRadioItem.vue-DINRx71W.d.ts} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Bc4snKv8.js → ListItem-gj_lOvEt.js} +4 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DAhOiau3.js → MoreMenu-Dokwc4Mg.js} +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-ERv5u6r4.js → MultiSelector-CId8-qAX.js} +2 -2
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-CB3loauj.js → NavItem-_eIEwV41.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DuTUReOl.js → Pagination-C0Bx80Tu.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CewQJzEt.js → PowerSearch-Dq6Gi9z1.js} +5 -5
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DrCL5-AN.js → RadioGroup-IKBXLzYU.js} +27 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CRi4E1zq.js → RadioList-NW4fGKgm.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DFUYTOVH.js → SegmentedControl-DRxcUlVP.js} +71 -4
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-D6yzPO5O.js → Selector-BW_oxWDM.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-z_6FwEJy.js → SideNav-B5mMRj98.js} +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DMHlRq7q.js → Slider-oD3AY4jh.js} +64 -20
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-OPRkoPLi.js → Switch-DG_A9cD0.js} +5 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CCjpL_Ku.js → Table-zNW23VwP.js} +4 -4
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DTrNL430.js → ToggleButton-Bnn_MiOn.js} +9 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CPNzkSj3.js → Token-B-j3AKxB.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DdddkJb1.js → Tokenizer-Cpdy_L00.js} +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-C1wpttKX.js → TopNav-q8xDVlM_.js} +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DOAcS3PM.js → TreeList-CEGInQtF.js} +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-6y_r-VNU.js → Typeahead-C-PdRnRQ.js} +1 -1
- package/dist/{disabledInteraction-CPzL8kVP.js → disabledInteraction-Bqoyhoss.js} +9 -1
- package/dist/{index-beOIC0Qk.d.ts → index-0RIgvtdm.d.ts} +1 -1
- package/dist/{index-ZT45ZWd5.d.ts → index-85RFPeV0.d.ts} +3 -3
- package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-nk2xIHpr.d.ts → index-BWcZ-L80.d.ts} +3 -3
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-CpLLSVCn.d.ts → index-C2HVLdNb.d.ts} +2 -2
- package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-BJputYk6.d.ts → index-CH-xSiJz.d.ts} +3 -3
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-GgHVkJtB.d.ts → index-CRtGmCHi.d.ts} +1 -1
- package/dist/{index-DXHmlFcC.d.ts → index-CuW4AQ7M.d.ts} +3 -3
- package/dist/{index-Dc6mU3rv.d.ts → index-CyMStZq4.d.ts} +2 -2
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-BlhbRf58.d.ts → index-DDVCVpnG.d.ts} +1 -1
- package/dist/{index-B5MCvW75.d.ts → index-DRDOArzq.d.ts} +63 -47
- package/dist/{index-MvrDMqnQ.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-Cb-rvc1W.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-SRA6e30Q.d.ts → index-HULXozsK.d.ts} +5 -5
- package/dist/{index-B-3EGjfQ.d.ts → index-Q1oG9yIT.d.ts} +2 -2
- package/dist/{index-B6svLvfZ.d.ts → index-Qdbssopn.d.ts} +1 -1
- package/dist/{index-NOxH5oYj.d.ts → index-etx25Eq-.d.ts} +1 -1
- package/dist/{index-B3U6GJKl.d.ts → index-lmd9LZKB.d.ts} +1 -1
- package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +30 -30
- package/dist/index.js +30 -30
- package/dist/{types-Dxs5rf-2.d.ts → types-Gw2OjSK9.d.ts} +9 -9
- package/dist/{useMenuDrillIn-f3m-59Qb.js → useMenuDrillIn-CQrzwZvx.js} +1 -1
- package/package.json +1 -1
- package/styles/checkbox-list.css +5 -0
- package/styles/radio-indicator.css +2 -2
- package/styles/radio.css +25 -0
- package/styles/segmented-control.css +46 -1
- package/styles/slider.css +8 -2
- package/styles/switch.css +2 -1
- package/styles/toggle-button.css +3 -0
- package/dist/{Item-CzKm9wxQ.js → Item-DyaYlbyE.js} +1 -1
package/styles/radio.css
CHANGED
|
@@ -15,6 +15,31 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
.astryx-radio[data-align='start'] {
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* first-line:单选圈贴顶,再按「一行文字的行高减圈的高度」的一半往下推,
|
|
24
|
+
* 圈的中心就落在标签第一行的中心。圈比这一行高时(md 24px),不推,文字被它压下去。
|
|
25
|
+
*/
|
|
26
|
+
.astryx-radio[data-align='first-line'] {
|
|
27
|
+
--_radio-size: var(--astryx-radio-size, 18px);
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.astryx-radio[data-align='first-line'][data-size='sm'] {
|
|
32
|
+
--_radio-size: 20px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.astryx-radio[data-align='first-line'][data-size='md'] {
|
|
36
|
+
--_radio-size: 24px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.astryx-radio[data-align='first-line'] > .astryx-radio-indicator {
|
|
40
|
+
margin-block-start: max(0px, calc((var(--astryx-text-body-size, 0.875rem) * var(--astryx-text-body-leading, 1.4286) - var(--_radio-size)) / 2));
|
|
41
|
+
}
|
|
42
|
+
|
|
18
43
|
.astryx-radio[data-disabled='true'] {
|
|
19
44
|
opacity: 0.5;
|
|
20
45
|
cursor: default;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@layer astryx.components {
|
|
4
4
|
.astryx-segmented-control {
|
|
5
|
+
position: relative;
|
|
5
6
|
--_segmented-control-padding: var(--astryx-segmented-control-padding, var(--astryx-spacing-0-5, 2px));
|
|
6
7
|
--_segmented-control-radius: var(--astryx-segmented-control-radius, var(--astryx-radius-element, 0.625rem));
|
|
7
8
|
|
|
@@ -95,6 +96,41 @@
|
|
|
95
96
|
flex-shrink: 0;
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
/*
|
|
100
|
+
* 选中块是控件里独立的一块表面,选中的分段一变就滑到新位置,大小也跟着变。
|
|
101
|
+
* 量到位置之前(服务端渲染、还没有布局),选中的分段自己画这块底色,
|
|
102
|
+
* 量到以后由选中块画,分段只留文字的颜色和字重。
|
|
103
|
+
*/
|
|
104
|
+
.astryx-segmented-control__selection {
|
|
105
|
+
position: absolute;
|
|
106
|
+
z-index: 0;
|
|
107
|
+
top: 0;
|
|
108
|
+
left: 0;
|
|
109
|
+
width: var(--_selection-width);
|
|
110
|
+
height: var(--_selection-height);
|
|
111
|
+
border-radius: max(0px, calc(var(--_segmented-control-radius) - var(--_segmented-control-padding)));
|
|
112
|
+
background-color: var(--astryx-segmented-control-item-selected-background, light-dark(#fff, #262626));
|
|
113
|
+
box-shadow: var(--astryx-segmented-control-item-selected-shadow);
|
|
114
|
+
transform: translate(var(--_selection-x), var(--_selection-y));
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
forced-color-adjust: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.astryx-segmented-control[data-selection='ready'] > .astryx-segmented-control__selection {
|
|
120
|
+
transition-property: transform, width, height;
|
|
121
|
+
transition-duration: var(--astryx-duration-fast-max, 165ms);
|
|
122
|
+
transition-timing-function: var(--astryx-ease-move, cubic-bezier(0.24, 1, 0.4, 1));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item {
|
|
126
|
+
z-index: 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item[data-selected='true'] {
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
box-shadow: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
98
134
|
.astryx-segmented-control-item[data-selected='true'] {
|
|
99
135
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
100
136
|
color: var(--astryx-segmented-control-item-selected-foreground, var(--astryx-color-text-primary, #171717));
|
|
@@ -167,10 +203,19 @@
|
|
|
167
203
|
color: HighlightText;
|
|
168
204
|
background-color: Highlight;
|
|
169
205
|
}
|
|
206
|
+
|
|
207
|
+
.astryx-segmented-control__selection {
|
|
208
|
+
background-color: Highlight;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item[data-selected='true'] {
|
|
212
|
+
background-color: transparent;
|
|
213
|
+
}
|
|
170
214
|
}
|
|
171
215
|
|
|
172
216
|
@media (prefers-reduced-motion: reduce) {
|
|
173
|
-
.astryx-segmented-control-item
|
|
217
|
+
.astryx-segmented-control-item,
|
|
218
|
+
.astryx-segmented-control[data-selection='ready'] > .astryx-segmented-control__selection {
|
|
174
219
|
transition-duration: 0s;
|
|
175
220
|
}
|
|
176
221
|
}
|
package/styles/slider.css
CHANGED
|
@@ -87,11 +87,14 @@
|
|
|
87
87
|
transform: translateX(-50%);
|
|
88
88
|
color: var(--astryx-color-text-secondary, #525252);
|
|
89
89
|
font-size: var(--astryx-text-supporting-size, 12px);
|
|
90
|
-
line-height: 1.
|
|
90
|
+
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
91
91
|
white-space: nowrap;
|
|
92
92
|
}
|
|
93
93
|
.astryx-slider-mark-label:dir(rtl) { transform: translateX(50%); }
|
|
94
|
-
|
|
94
|
+
/* 横向的刻度文字挂在控件中线下面。行底部留出文字超出控件的那一截,滑块后面的内容就从文字下方开始。 */
|
|
95
|
+
.astryx-slider[data-mark-labels='true'][data-orientation='horizontal'] .astryx-slider-row {
|
|
96
|
+
padding-block-end: calc(4px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
97
|
+
}
|
|
95
98
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-control { flex: none; width: 20px; height: var(--astryx-slider-height, 160px); }
|
|
96
99
|
.astryx-slider[data-orientation='vertical'] :is(.astryx-slider-track, .astryx-slider-fill) { top: auto; left: 50%; width: 4px; height: auto; transform: translateX(-50%); }
|
|
97
100
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-track { top: 0; bottom: 0; inset-inline-end: auto; }
|
|
@@ -103,6 +106,9 @@
|
|
|
103
106
|
.astryx-slider-thumb::before { content: ''; position: absolute; inset: -2px; }
|
|
104
107
|
/* 控件和滑块一样高(20px),手指点按时把可点区域撑到 WCAG 2.5.8 的 24px,轨道和滑块都居中不动。 */
|
|
105
108
|
.astryx-slider-control { min-height: 24px; }
|
|
109
|
+
.astryx-slider[data-mark-labels='true'][data-orientation='horizontal'] .astryx-slider-row {
|
|
110
|
+
padding-block-end: calc(2px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
111
|
+
}
|
|
106
112
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-control { min-width: 24px; }
|
|
107
113
|
}
|
|
108
114
|
@media (prefers-reduced-motion: reduce) {
|
package/styles/switch.css
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
flex: none;
|
|
133
133
|
width: var(--astryx-switch-thumb-size, 16px);
|
|
134
134
|
height: var(--astryx-switch-thumb-size, 16px);
|
|
135
|
-
|
|
135
|
+
/* 圆用 50% 画在方盒子上:主题把 --astryx-radius-full 改成方角时,轨道变方,拇指仍是圆的。 */
|
|
136
|
+
border-radius: var(--astryx-switch-thumb-radius, 50%);
|
|
136
137
|
background: var(--astryx-switch-thumb, #fff);
|
|
137
138
|
transform: translateX(0);
|
|
138
139
|
transition: transform 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), width var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), height var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|
package/styles/toggle-button.css
CHANGED
|
@@ -46,15 +46,18 @@
|
|
|
46
46
|
pointer-events: none;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/* 成员在窄屏上换行,每个标签保留完整宽度;单个成员比容器还宽时才截断。 */
|
|
49
50
|
.astryx-toggle-button-group {
|
|
50
51
|
display: inline-flex;
|
|
51
52
|
align-items: center;
|
|
53
|
+
flex-wrap: wrap;
|
|
52
54
|
gap: var(--astryx-toggle-button-group-gap, var(--astryx-spacing-1, 4px));
|
|
53
55
|
max-width: 100%;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
.astryx-toggle-button-group[data-orientation='vertical'] {
|
|
57
59
|
flex-direction: column;
|
|
60
|
+
flex-wrap: nowrap;
|
|
58
61
|
align-items: stretch;
|
|
59
62
|
}
|
|
60
63
|
|
|
@@ -260,7 +260,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
260
260
|
__name: "Item",
|
|
261
261
|
props: {
|
|
262
262
|
as: { default: "div" },
|
|
263
|
-
align: { default: "center" },
|
|
264
263
|
layout: { default: "stacked" },
|
|
265
264
|
labelLines: {},
|
|
266
265
|
descriptionLines: {},
|
|
@@ -268,6 +267,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
268
267
|
type: Boolean,
|
|
269
268
|
default: false
|
|
270
269
|
},
|
|
270
|
+
align: { default: "center" },
|
|
271
271
|
label: {},
|
|
272
272
|
description: {},
|
|
273
273
|
density: { default: "balanced" },
|