@astryx-vue/core 0.21.0 → 0.22.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/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-0UUojm_Q.js → AlertDialog-VD9PadlM.js} +4 -4
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-6rvfUu8p.js → AppShell-C4XGguw0.js} +19 -4
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CXpGcula.js → Avatar-CAweS1WY.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-fmkd6nXw.js → Banner-DnK7bKAb.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DqAuZBgA.js → BottomSheet-C4OU3mJT.js} +3 -3
- package/dist/{BottomSheet-DrKtyVVo.js → BottomSheet-CM0-eaUF.js} +4 -4
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-uaApwhFB.js → Breadcrumbs-DZAgtC9c.js} +4 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-CQAjaQa0.js → Button-Blnc0yB3.js} +3 -3
- 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/Carousel/index.js +1 -1
- package/dist/{Carousel-C3O9Uavl.js → Carousel-CB4Iap-B.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CmjK6fBy.js → Chat-DjJPQ9bX.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-D6ow4VuS.js → CheckboxInput-CGTPmOHs.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CPaRsgRQ.js → CheckboxList-CGzHkA95.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-DMG9rLQN.js → CodeBlock-CwQCMSKA.js} +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CmOytlWq.js → CommandPalette-DBOETNGM.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-mfEoIHtI.js → ComplexSelector-CNBH2t6W.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-DDvOR25x.js → ContextMenu-CUwAPrVP.js} +5 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-pDh6H44y.js → DateInput-BQ-3bvV5.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-CQDfoXX5.js → DateRangeInput-DFXz4vNX.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CZjere9H.js → DateTimeInput-BHO4nXKW.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BRlZ7n83.js → Dialog-BCPhWMxL.js} +3 -3
- package/dist/{Dialog-XIB0KZ-m.js → Dialog-Dx6zuttb.js} +1 -1
- package/dist/{DialogHeader-DF6jFDq3.js → DialogHeader-C9fp2Rti.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BYUELPLs.js → Drawer--2vLSKY_.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-DY3yFENC.js → DropdownMenu-BImEVieZ.js} +4 -4
- package/dist/{DropdownMenu-BBXFl5Mu.js → DropdownMenu-CskkQAAz.js} +7 -7
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-cs-L9Ovg.js → EmptyState-Dq3NWNnG.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-BQ3q-K5D.js → Field-DsucLkyQ.js} +1 -1
- package/dist/{FieldInfoTip-MgGzYEq0.js → FieldInfoTip-1zW3QTQG.js} +1 -1
- package/dist/{FieldLabel-yH6KAVyU.js → FieldLabel-D9uFPtXs.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-R8CqJrA5.js → FileInput-DLtHinlh.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-DkCkHEG-.js → Heading-DBBChghq.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-D0KqUCXI.js → HoverCard-BW-bOUZI.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DR9_545-.js → IconButton-CIUbkA8_.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BfgtAgck.js → InfoTip-C71T8lv_.js} +1 -1
- package/dist/{InputClearButton-DaFtlyKR.js → InputClearButton-h0BxBXu1.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-1CLPKULR.js → InputGroup-DHPTru5v.js} +1 -1
- package/dist/{LayerContentBoundary-lxUfJk2v.js → LayerContentBoundary-DxeAFxNJ.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DyaSfJix.js → Lightbox-B3WP06Qt.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-JVAfvoxT.js → Link-CQK9d_Yf.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DtnPfhP0.js → Markdown-BVXFWJT0.js} +3 -3
- package/dist/MobileNav/index.js +2 -1
- package/dist/{MobileNavToggle-CPNsCIFR.js → MobileNavToggle-DGZPwsf9.js} +6 -8
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DQjrchg5.js → MoreMenu-Q_KpDTNB.js} +4 -4
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-sJ-LUrze.js → MultiSelector-CzGsdjcl.js} +7 -7
- package/dist/{NavDisclosure-CE79mxpa.js → NavDisclosure-DIYayUrP.js} +13 -4
- package/dist/{NavHeadingSurface-EsNdvhx7.js → NavHeadingSurface-bFcFpeMI.js} +15 -14
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-_Mo1yWZC.js → NavMenu-DYvMKPU_.js} +8 -6
- package/dist/{NavMenuItem-CDHKFOKi.js → NavMenuItem-Ccix-agv.js} +7 -4
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-Bpc2c39W.js → NumberInput-DTksMfSU.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-Dx_Iw8xd.js → OverflowList-DKM7TeUs.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-D7sbjDKw.js → Pagination-B-O21ut1.js} +271 -135
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Bhi0b1x0.js → Popover-BtfsoxXC.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-B13bgXSs.js → PowerSearch-CniqThU7.js} +16 -16
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-BtEaKOhz.js → ProgressBar-DOusesCL.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CFqN0t92.js → RadioGroup-CRwMwMw4.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DVNkGcpc.js → RadioList-PUlENMq5.js} +1 -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/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-sGqS3qNy.js → Selector-Qs1rFiI6.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Dw9MydVe.js → SideNav-BUfUwE2P.js} +11 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-BkVTjzrx.js → Slider-BbiQbyie.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D4S8b-FU.js → StatusDot-DhfcDBE7.js} +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-DU-MRs1W.js → Switch-CMK5bICl.js} +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CmB55DUS.js → TabList-Bd3h7Nj3.js} +61 -22
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-BUh0OjeU.js → Table-DN9mo-cQ.js} +11 -11
- package/dist/Text/index.js +1 -1
- package/dist/{Text-BBQUFWb_.js → Text-Dez23ltM.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BVppzw5n.js → TextArea-BsGUOyDg.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CmxKsaUt.js → TextInput-DZi0EMh-.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-_KR0IRj-.js → Thumbnail-CsmF1HTP.js} +2 -2
- package/dist/{TimeField-Dbr2MOqX.js → TimeField-DqOPj5s2.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-hzZ3tuAw.js → TimeInput-CA3kXBWB.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-UnFtEgGb.js → Timer-vubjQ88x.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-DiPZTa4W.js → Timestamp-Cz_0Ofj4.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-kV5KuJdD.js → Toast-DhJNtBjT.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DZ3n-izd.js → ToggleButton-BR_qVBEt.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-e8BisAF8.js → Tokenizer-C3pXgLmC.js} +5 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CPyoc4cM.js → Tooltip-BUHvOnE1.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-OOGD2uOp.js → TopNav-klsRhS-I.js} +168 -61
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead--CFFYPMl.js → Typeahead-BaPqX3Ey.js} +5 -5
- package/dist/{assertOptions-DLEhkmM-.js → assertOptions-DF9pum-3.js} +1 -1
- package/dist/closeOnActivate-D1KgKWwm.js +13 -0
- package/dist/composables/index.js +11 -11
- package/dist/{composables-DSx0MWv0.js → composables-BDWdSCwe.js} +2 -2
- package/dist/context-D8MAZio1.js +7 -0
- package/dist/{focusReturn-CiSQAp52.js → focusReturn-CsEp47Wa.js} +1 -1
- package/dist/{index-BOzyKBg8.d.ts → index--CtH4lQr.d.ts} +5 -5
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-DFLPv9io.d.ts → index-BOCb89V9.d.ts} +2 -2
- package/dist/{index-B8K2sDmO.d.ts → index-BhxqUt3y.d.ts} +2 -2
- package/dist/{index-CNzSg1OM.d.ts → index-BkxWKIV_.d.ts} +7 -7
- package/dist/{index-PffxihMx.d.ts → index-BmXk_doE.d.ts} +3 -3
- package/dist/{index-DGXCnzOL.d.ts → index-BrMtj1lT.d.ts} +4 -4
- package/dist/{index-BJputYk6.d.ts → index-BvW0tiei.d.ts} +4 -4
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- 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-Cm36VS1A.d.ts → index-C9uW39Mj.d.ts} +1 -1
- package/dist/{index-DSoQE84m.d.ts → index-CAKT4Kkz.d.ts} +64 -50
- package/dist/{index-DB1EP38S.d.ts → index-CG3fD4hw.d.ts} +2 -2
- package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
- package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-BZNoML0r.d.ts → index-D0MA9x_i.d.ts} +9 -9
- package/dist/{index-FeZXsFO-.d.ts → index-DDrL_-hJ.d.ts} +1 -1
- package/dist/{index-Dge6tyPE.d.ts → index-DIw5D3zj.d.ts} +2 -2
- package/dist/{index-BL4mH8aK.d.ts → index-DMN_JVEt.d.ts} +1 -1
- 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-fz8XqpNd.d.ts → index-DogWVRJi.d.ts} +15 -2
- package/dist/{index-B6svLvfZ.d.ts → index-Qdbssopn.d.ts} +1 -1
- package/dist/{index-BaFphczL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-DFTrqCmp.d.ts → index-rzkX36wM.d.ts} +3 -3
- package/dist/index.d.ts +29 -29
- package/dist/index.js +85 -85
- package/dist/{interactionModality-JFDvbtbb.js → interactionModality-CyU67ucP.js} +7 -2
- package/dist/{layerFocusReturn-DJ5mlqYj.js → layerFocusReturn-BeCsk_4F.js} +1 -1
- package/dist/{stillPointerGate-BTISispN.js → stillPointerGate-BX4vr5M-.js} +1 -1
- package/dist/{tooltipFocusRules-DPsyi9L5.js → tooltipFocusRules-BnZ1zwAm.js} +2 -2
- package/dist/{tooltipTriggerRules-Dazz57_v.js → tooltipTriggerRules-BLBEkBcK.js} +1 -1
- package/dist/{useCombobox-DTDT9dRx.js → useCombobox-DcBbaWYj.js} +1 -1
- package/dist/{useDismiss-N66C48zd.js → useDismiss-C1dyveme.js} +1 -1
- package/dist/{useFocusTrap-DzspshsM.js → useFocusTrap-DAKJJP0Z.js} +2 -2
- package/dist/{useInputStatusIcon-D1WRYTOZ.js → useInputStatusIcon-BDWAijXe.js} +1 -1
- package/dist/{useMenuPress-Cm7LVmHJ.js → useMenuPress-3203ryBY.js} +2 -2
- package/dist/{useResizable-C9FtmPir.js → useResizable-wZU54yCO.js} +1 -1
- package/dist/{useRestoreFocus-CEbfcwWb.js → useRestoreFocus-v8-FFcQQ.js} +2 -2
- package/dist/{useTooltip-BfOruqIL.js → useTooltip-0_wOd0e5.js} +5 -5
- package/dist/{useTouchTriggerInternal-TQnpDkL0.js → useTouchTriggerInternal-DwzthF8T.js} +1 -1
- package/dist/{useTruncationTooltip-CbzoB-1m.js → useTruncationTooltip-BDIe7-ya.js} +4 -4
- package/dist/{useTypeahead-BGmDZyPB.js → useTypeahead-BlqvS9x9.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-BZaduAP4.js → useTypeaheadMenuConfig-CIf9Ep57.js} +2 -2
- package/package.json +1 -1
- package/styles/app-shell.css +36 -0
- package/styles/breadcrumbs.css +1 -0
- package/styles/nav-item.css +9 -3
- package/styles/nav-menu.css +3 -0
- package/styles/pagination.css +2 -2
- package/styles/tab-list.css +7 -3
- package/styles/tab-menu.css +1 -0
- package/styles/top-nav.css +141 -11
- package/dist/{index-5FGt4HsB.d.ts → index-BqhgeAT4.d.ts} +1 -1
package/styles/nav-item.css
CHANGED
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
color var(--astryx-duration-fast-max) var(--astryx-ease-standard);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
.astryx-nav-item--
|
|
32
|
-
.astryx-nav-item--
|
|
30
|
+
/* 最小高度而不是固定高度:行随更大的文字尺寸长高,标签不会跑出行外。 */
|
|
31
|
+
.astryx-nav-item--sm { min-height: var(--astryx-size-element-sm, 28px); padding-inline: var(--astryx-spacing-1, 4px); }
|
|
32
|
+
.astryx-nav-item--md { min-height: var(--astryx-size-element-md, 32px); }
|
|
33
|
+
.astryx-nav-item--lg { min-height: var(--astryx-size-element-lg, 36px); }
|
|
33
34
|
|
|
34
35
|
.astryx-nav-item--block { width: 100%; }
|
|
35
36
|
|
|
@@ -42,6 +43,11 @@
|
|
|
42
43
|
.astryx-nav-item--sm.astryx-nav-item--icon-only { width: 28px; }
|
|
43
44
|
.astryx-nav-item--lg.astryx-nav-item--icon-only { width: 36px; }
|
|
44
45
|
|
|
46
|
+
/* 只有图标的行(收起的轨道)里没有会长高的文字,保持固定的方块。 */
|
|
47
|
+
.astryx-nav-item--icon-only { height: var(--astryx-size-element-md, 32px); }
|
|
48
|
+
.astryx-nav-item--sm.astryx-nav-item--icon-only { height: var(--astryx-size-element-sm, 28px); }
|
|
49
|
+
.astryx-nav-item--lg.astryx-nav-item--icon-only { height: var(--astryx-size-element-lg, 36px); }
|
|
50
|
+
|
|
45
51
|
.astryx-nav-item--plain {
|
|
46
52
|
width: auto;
|
|
47
53
|
height: auto;
|
package/styles/nav-menu.css
CHANGED
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
.astryx-nav-menu--md { min-width: 200px; }
|
|
41
41
|
.astryx-nav-menu--lg { min-width: 240px; }
|
|
42
42
|
|
|
43
|
+
/* 按住滑过各行时不选中行里的文字;菜单旁边调用方的内容仍可选中。 */
|
|
43
44
|
.astryx-nav-menu-item {
|
|
45
|
+
user-select: none;
|
|
44
46
|
display: flex;
|
|
45
47
|
align-items: center;
|
|
46
48
|
gap: var(--astryx-spacing-2, 8px);
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
background: transparent;
|
|
53
55
|
color: var(--astryx-color-text-primary);
|
|
54
56
|
font: inherit;
|
|
57
|
+
line-height: var(--astryx-text-label-leading, 1.4286);
|
|
55
58
|
text-align: start;
|
|
56
59
|
text-decoration: none;
|
|
57
60
|
cursor: pointer;
|
package/styles/pagination.css
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
.astryx-pagination--sm .astryx-pagination-button,
|
|
98
98
|
.astryx-pagination--sm .astryx-pagination-page {
|
|
99
99
|
min-width: var(--astryx-size-element-sm, 28px);
|
|
100
|
-
height: var(--astryx-size-element-sm, 28px);
|
|
100
|
+
min-height: var(--astryx-size-element-sm, 28px);
|
|
101
101
|
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
102
102
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
103
103
|
}
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
justify-content: center;
|
|
118
118
|
gap: var(--astryx-spacing-1);
|
|
119
119
|
min-width: var(--astryx-size-element-md);
|
|
120
|
-
height: var(--astryx-size-element-md);
|
|
120
|
+
min-height: var(--astryx-size-element-md);
|
|
121
121
|
padding: 0 var(--astryx-spacing-2);
|
|
122
122
|
border: 0;
|
|
123
123
|
border-radius: var(--astryx-radius-element);
|
package/styles/tab-list.css
CHANGED
|
@@ -226,8 +226,8 @@
|
|
|
226
226
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
/* 选中下划线是一个真元素(tab-indicator 主题挂点),主题可以单独改它,例如拉满整个标签宽度。 */
|
|
230
|
+
.astryx-tab__indicator {
|
|
231
231
|
position: absolute;
|
|
232
232
|
/* 同原版:默认压在 tab 底边外 1px;滚动条按同一个值往下留出空间,不会裁掉。 */
|
|
233
233
|
bottom: var(--_tab-indicator-bottom, -1px);
|
|
@@ -236,9 +236,10 @@
|
|
|
236
236
|
height: 2px;
|
|
237
237
|
border-radius: var(--astryx-radius-full, 9999px);
|
|
238
238
|
background-color: var(--astryx-color-accent, currentColor);
|
|
239
|
+
pointer-events: none;
|
|
239
240
|
}
|
|
240
241
|
|
|
241
|
-
.astryx-tab-list--has-divider .astryx-
|
|
242
|
+
.astryx-tab-list--has-divider .astryx-tab__indicator {
|
|
242
243
|
bottom: var(--_tab-indicator-bottom);
|
|
243
244
|
}
|
|
244
245
|
|
|
@@ -253,14 +254,17 @@
|
|
|
253
254
|
outline-offset: 2px;
|
|
254
255
|
}
|
|
255
256
|
|
|
257
|
+
/* 标签和半粗字重的隐形副本共用一格。换行的标签可能比副本少几行,两者都在格里居中,选中时标签不会跳。 */
|
|
256
258
|
.astryx-tab__label {
|
|
257
259
|
display: inline-grid;
|
|
258
260
|
align-items: center;
|
|
261
|
+
text-align: center;
|
|
259
262
|
}
|
|
260
263
|
|
|
261
264
|
.astryx-tab__label-text,
|
|
262
265
|
.astryx-tab__label-sizer {
|
|
263
266
|
grid-area: 1 / 1;
|
|
267
|
+
align-self: center;
|
|
264
268
|
display: inline-flex;
|
|
265
269
|
align-items: center;
|
|
266
270
|
gap: var(--astryx-spacing-1, 4px);
|
package/styles/tab-menu.css
CHANGED
package/styles/top-nav.css
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
3
|
@layer astryx.components {
|
|
4
|
+
/*
|
|
5
|
+
* 区域放不进一行时整条栏换行,结束区移到下一行;只有比整条栏还宽的区域才让自己的项换行。
|
|
6
|
+
* 放得下时起始区和结束区平分剩余宽度,居中区留在栏的正中。
|
|
7
|
+
*/
|
|
4
8
|
.astryx-top-nav {
|
|
5
9
|
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
6
11
|
align-items: center;
|
|
7
12
|
box-sizing: border-box;
|
|
8
13
|
width: 100%;
|
|
9
14
|
min-height: 48px;
|
|
10
15
|
padding: var(--astryx-spacing-2, 8px);
|
|
11
|
-
gap: var(--astryx-spacing-4, 16px);
|
|
16
|
+
column-gap: var(--astryx-spacing-4, 16px);
|
|
12
17
|
background: transparent;
|
|
13
18
|
color: var(--astryx-color-text-primary);
|
|
14
19
|
}
|
|
15
20
|
|
|
16
|
-
.astryx-top-nav--centered {
|
|
17
|
-
display: grid;
|
|
18
|
-
grid-template-columns: 1fr auto 1fr;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
21
|
.astryx-top-nav__start,
|
|
22
22
|
.astryx-top-nav__end,
|
|
23
23
|
.astryx-top-nav__items,
|
|
@@ -29,13 +29,68 @@
|
|
|
29
29
|
min-width: 0;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.astryx-top-
|
|
33
|
-
.astryx-top-
|
|
34
|
-
.astryx-top-
|
|
35
|
-
|
|
32
|
+
.astryx-top-nav__end,
|
|
33
|
+
.astryx-top-nav__start,
|
|
34
|
+
.astryx-top-nav__items { flex-wrap: wrap; }
|
|
35
|
+
|
|
36
|
+
.astryx-top-nav__start {
|
|
37
|
+
flex: 1 1 0%;
|
|
38
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
39
|
+
min-width: fit-content;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* 标题只收缩到它自己最窄的宽度;TopNavHeading 在那个宽度上还留着标志。 */
|
|
43
|
+
.astryx-top-nav__heading { flex-shrink: 1; }
|
|
44
|
+
|
|
45
|
+
.astryx-top-nav__end {
|
|
46
|
+
flex-shrink: 0;
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
margin-inline-start: auto;
|
|
49
|
+
min-width: fit-content;
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* 居中区先按内容的最小宽度占位,再优先长到内容宽度;只有独占一行还放不下时才再收窄。 */
|
|
54
|
+
.astryx-top-nav__center {
|
|
55
|
+
flex: 1000 1 min-content;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
max-width: max-content;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.astryx-top-nav--centered > .astryx-top-nav__end {
|
|
61
|
+
flex: 1 1 0%;
|
|
62
|
+
margin-inline-start: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 手机条:标题先让位,结束区和菜单按钮始终留在条内;结束区不比整条栏宽。 */
|
|
66
|
+
.astryx-top-nav--compact { flex-wrap: nowrap; }
|
|
67
|
+
.astryx-top-nav--compact .astryx-top-nav__start {
|
|
68
|
+
flex: 0 1 auto;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
}
|
|
71
|
+
.astryx-top-nav--compact .astryx-top-nav__end {
|
|
72
|
+
flex: 0 0 auto;
|
|
73
|
+
flex-wrap: nowrap;
|
|
74
|
+
margin-inline-start: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* 纯文字标题没有能裁剪它的盒子,这一层把它收在一行内,栏高不变。 */
|
|
78
|
+
.astryx-top-nav__heading-text {
|
|
79
|
+
min-width: 0;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
36
84
|
|
|
85
|
+
/*
|
|
86
|
+
* 标志一列、文字一列:文字列先收缩,标志不收缩;末端内容紧贴行内结束边。
|
|
87
|
+
* 文字列至少留着最长的一个词(有链接时)或菜单箭头那一格,不会被压成零宽。
|
|
88
|
+
*/
|
|
37
89
|
.astryx-top-nav-heading {
|
|
38
|
-
display: inline-
|
|
90
|
+
display: inline-grid;
|
|
91
|
+
grid-auto-flow: column;
|
|
92
|
+
grid-template-columns: minmax(0, 1fr);
|
|
93
|
+
justify-content: start;
|
|
39
94
|
align-items: center;
|
|
40
95
|
gap: var(--astryx-spacing-2, 8px);
|
|
41
96
|
box-sizing: border-box;
|
|
@@ -54,6 +109,28 @@
|
|
|
54
109
|
padding-inline-start: 0;
|
|
55
110
|
}
|
|
56
111
|
|
|
112
|
+
.astryx-top-nav-heading:has(> .astryx-top-nav-heading__icon):has(> .astryx-top-nav-heading__text) {
|
|
113
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* 有链接的行会换行,文字列至少留着最长的一个词,链接不会被裁成零宽。 */
|
|
117
|
+
.astryx-top-nav-heading:has(.astryx-top-nav-heading__link) {
|
|
118
|
+
grid-template-columns: minmax(min-content, 1fr);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.astryx-top-nav-heading:has(> .astryx-top-nav-heading__icon):has(> .astryx-top-nav-heading__text):has(.astryx-top-nav-heading__link) {
|
|
122
|
+
grid-template-columns: auto minmax(min-content, 1fr);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* 带菜单时文字列停在箭头那一格(28px 加前面的间距),拥挤的栏盖不住箭头。 */
|
|
126
|
+
.astryx-top-nav-heading:has(.astryx-top-nav-heading__chevron) {
|
|
127
|
+
grid-template-columns: minmax(calc(var(--astryx-spacing-7, 28px) + var(--astryx-spacing-1, 4px)), 1fr);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.astryx-top-nav-heading:has(> .astryx-top-nav-heading__icon):has(> .astryx-top-nav-heading__text):has(.astryx-top-nav-heading__chevron) {
|
|
131
|
+
grid-template-columns: auto minmax(calc(var(--astryx-spacing-7, 28px) + var(--astryx-spacing-1, 4px)), 1fr);
|
|
132
|
+
}
|
|
133
|
+
|
|
57
134
|
.astryx-top-nav-heading--link:hover,
|
|
58
135
|
.astryx-top-nav-heading--echo:hover {
|
|
59
136
|
background: var(--astryx-color-overlay-hover);
|
|
@@ -117,7 +194,11 @@
|
|
|
117
194
|
white-space: nowrap;
|
|
118
195
|
}
|
|
119
196
|
|
|
197
|
+
/* 有链接的行自己裁剪自己:长词留在列里,链接自己的焦点环也不会被切掉。 */
|
|
120
198
|
.astryx-top-nav-heading__link {
|
|
199
|
+
min-width: 0;
|
|
200
|
+
max-width: 100%;
|
|
201
|
+
overflow: hidden;
|
|
121
202
|
color: inherit;
|
|
122
203
|
text-decoration: none;
|
|
123
204
|
}
|
|
@@ -243,12 +324,52 @@
|
|
|
243
324
|
cursor: pointer;
|
|
244
325
|
}
|
|
245
326
|
|
|
327
|
+
/*
|
|
328
|
+
* 抽屉里的分组只在收起动画期间裁剪:常驻裁剪会切掉画在行外的焦点环。
|
|
329
|
+
* overflow 是离散属性,靠 allow-discrete 和等于展开时长的延迟,展开完成后才放开;
|
|
330
|
+
* 收起时立刻回到裁剪。
|
|
331
|
+
*/
|
|
332
|
+
.astryx-top-nav-drawer-section {
|
|
333
|
+
display: grid;
|
|
334
|
+
grid-template-rows: 1fr;
|
|
335
|
+
overflow: visible;
|
|
336
|
+
transition:
|
|
337
|
+
grid-template-rows var(--astryx-duration-medium-max) var(--astryx-ease-standard),
|
|
338
|
+
overflow 0s var(--astryx-duration-medium-max) allow-discrete;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.astryx-top-nav-drawer-section--collapsed {
|
|
342
|
+
grid-template-rows: 0fr;
|
|
343
|
+
overflow: hidden;
|
|
344
|
+
transition-delay: 0s, 0s;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.astryx-top-nav-drawer-section__inner { min-height: 0; }
|
|
348
|
+
|
|
246
349
|
.astryx-top-nav-menu__drawer-items { padding-inline-start: var(--astryx-spacing-4, 16px); }
|
|
247
350
|
|
|
351
|
+
/* 面板最高到视口底边留一点边距,更高的内容在面板里滚动,不会掉出屏幕。 */
|
|
248
352
|
.astryx-top-nav-mega__panel {
|
|
249
353
|
min-width: min(640px, calc(100vw - 32px));
|
|
250
354
|
max-width: min(1248px, calc(100vw - 32px));
|
|
355
|
+
max-height: calc(100dvh - var(--astryx-nav-panel-top, 0px) - var(--astryx-spacing-3, 12px));
|
|
251
356
|
padding: var(--astryx-spacing-3, 12px);
|
|
357
|
+
overflow-y: auto;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/*
|
|
361
|
+
* 减少动态效果时面板不缩放:触屏上 200ms 淡入,鼠标和触控板上立刻出现。
|
|
362
|
+
* 常规动画的起点透明度在这个设置下是 1,所以触屏的淡入用自己的关键帧。
|
|
363
|
+
*/
|
|
364
|
+
@keyframes astryx-top-nav-mega-fade-in {
|
|
365
|
+
from { opacity: 0; }
|
|
366
|
+
to { opacity: 1; }
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@media (prefers-reduced-motion: reduce) and (pointer: coarse) {
|
|
370
|
+
.astryx-nav-disclosure__panel.astryx-top-nav-mega__panel {
|
|
371
|
+
animation: astryx-top-nav-mega-fade-in var(--_astryx-reduced-motion-fade-duration, 200ms) var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1)) both;
|
|
372
|
+
}
|
|
252
373
|
}
|
|
253
374
|
|
|
254
375
|
.astryx-top-nav-mega__layout {
|
|
@@ -332,6 +453,15 @@
|
|
|
332
453
|
text-decoration: none;
|
|
333
454
|
}
|
|
334
455
|
|
|
456
|
+
/* 箭头指向行内结束方向,从右到左的文字里要镜像;变换需要盒子,行内元素不会镜像。 */
|
|
457
|
+
.astryx-top-nav-mega-card__link-arrow {
|
|
458
|
+
display: inline-block;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
[dir='rtl'] .astryx-top-nav-mega-card__link-arrow {
|
|
462
|
+
transform: scaleX(-1);
|
|
463
|
+
}
|
|
464
|
+
|
|
335
465
|
.astryx-top-nav-mega-item:hover,
|
|
336
466
|
.astryx-top-nav-mega-card:hover {
|
|
337
467
|
background: var(--astryx-color-overlay-hover);
|
|
@@ -43,8 +43,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
43
43
|
onRemove?: ((event: Event) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
|
-
disabled: boolean;
|
|
47
46
|
labelHidden: boolean;
|
|
47
|
+
disabled: boolean;
|
|
48
48
|
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|