@astryx-vue/core 0.7.23 → 0.7.25
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.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-XBjLwnAX.js → AlertDialog--9IcMdY3.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-CqPpL59Q.js} +24 -19
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DbWLEmi1.js → AvatarGroup-lmO-a3Eq.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/{Badge-CjDQPF5g.js → Badge-DByZSDmu.js} +10 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-ks2zPq6Z.js → Banner-BpiQjQvG.js} +2 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-k-Xqzbkt.js → Breadcrumbs-CH-rcc_-.js} +3 -3
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Byrr4hAu.js → Button-7W3G5gok.js} +7 -10
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-B9sj-OvC.js → ButtonGroup-UgiGP61q.js} +3 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-DjhwshS8.js} +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CrRD6YdZ.js → Carousel-RN3BV6qj.js} +107 -56
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-D0m-tH7R.js → Chat-D5cXLYlh.js} +3 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-GFjf15n3.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-CJzRo5vd.js} +5 -5
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-C_XMPOpv.js} +3 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-qeVRS9dw.js} +14 -5
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-C1CyMSCL.js → CodeBlock-9NMYGL48.js} +19 -10
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-CifnTLlc.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-BbGFrwAI.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-wbVUmVh6.js → ComplexSelector-DMnzBMY1.js} +5 -5
- package/dist/ComponentIcon-hPmWTSXE.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-BD3pObnQ.js} +2 -2
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-CdwODQhw.js → DateInput-CYFPGd__.js} +10 -8
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Byb8zqZ2.js → DateRangeInput-BOdKqQUw.js} +6 -6
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-lcpORu_P.js → DateTimeInput-Bs4T8KWb.js} +7 -7
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-8cIwslf4.js → DialogHeader-Dii5B7vE.js} +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-B8OuWU7j.js → Drawer-CtuxdSAd.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BYD5fFzB.js → DropdownMenu-BmAeVIu5.js} +5 -5
- package/dist/{DropdownMenu-BnY1UWKa.js → DropdownMenu-CXyECszu.js} +4 -4
- package/dist/{DropdownMenuRadioItem.vue-z0XU7pZS.d.ts → DropdownMenuRadioItem.vue-D455cIQQ.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BQrzgh2f.js → EmptyState-DaVNSbYi.js} +1 -1
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-CdrGdY7U.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-BB08VXf7.js} +1 -1
- package/dist/{FieldInfoTip-xYN2qeQk.js → FieldInfoTip-CPhFmGaY.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-lJ1exgvq.js} +2 -2
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-CR-cK1rW.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-D2AOeGrs.js → FileInput-C85funO_.js} +5 -5
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/plugin.js +1 -1
- package/dist/Icon-B2aULLnn.js +15 -0
- package/dist/{Icon-CU3412Fe.js → Icon-DAcZMgiJ.js} +47 -85
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Dzhukpzc.js → IconButton-Cn4re9lo.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BlOySTNC.js → InfoTip-CQmrs5nz.js} +1 -1
- package/dist/{InputClearButton-D9QzdIWM.js → InputClearButton-gGlttFrg.js} +2 -2
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-DQpDwkjF.js} +23 -16
- package/dist/{Item-X9wgYWoD.js → Item-Dbf2g0Ee.js} +25 -5
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-Dn1LTcNY.js} +24 -7
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-COttfQHP.js → Lightbox-Duz-OrsN.js} +2 -2
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-C0NPH_Zy.js} +57 -68
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-C8F4r-3e.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-C42NPUFp.js → Markdown-B0K6WhMg.js} +3 -3
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CocuDVj-.js → MoreMenu-CPp7nRqq.js} +3 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-D0g3yHj6.js → MultiSelector-EuMT3jk8.js} +11 -10
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-DemUziLF.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-B_c92jqW.js} +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenu-CZS5pRUv.js → NavMenu-mZVfqNxt.js} +1 -1
- package/dist/{NavMenuItem-duQuvU1o.js → NavMenuItem-Crc0y9_s.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEfKx0qI.js → NumberInput-nhsOtHSM.js} +15 -14
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-D3g7Vq7-.js → Outline-CXQKfopf.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-WwL2NPbI.js → OverflowList-BGHiFBEV.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cn53Nqe3.js → Pagination-DtItBecM.js} +2 -2
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-D90phFsK.js → Popover-DE_a8vx0.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cj_D0iaM.js → PowerSearch-BPqinhNg.js} +15 -15
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-DgD_qw8h.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-BTfVjABV.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-5JnYYMyi.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-BOFsp4zL.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-DkAtLqr0.js} +10 -6
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-Bb0Tw0IX.js} +8 -7
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-GELGN9LR.js → SideNav-woP0TsbV.js} +5 -5
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-DPNiq0HG.js} +3 -3
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-Ca1DQGyG.js} +2 -2
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-yKKscO-i.js} +3 -3
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIEm4YKM.js → TabList-cg8Mrbs_.js} +4 -4
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Du4FXP9X.js → Table-rUgNSJgQ.js} +41 -32
- package/dist/Text/index.js +1 -1
- package/dist/{Text-Wk-iDAzh.js → Text-BShV9dky.js} +7 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CbQp3Lqm.js → TextArea-D8703Iin.js} +7 -7
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-CkJRorQb.js → TextInput-C3TcHG4h.js} +18 -16
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-DkFv7FGK.js} +23 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-7dKY4N-p.js → Thumbnail-7hvPR8TA.js} +39 -11
- package/dist/{TimeField-DGPsFfii.js → TimeField-D2vnhUvT.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CnOvJGgC.js → TimeInput-D31lgw-s.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-D0A9hh4O.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BQc2NBd7.js → Timestamp-BCYaQaDQ.js} +16 -12
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DytdMVIS.js → Toast-BpumSIBN.js} +4 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-Cgr84UJy.js → ToggleButton-DYGsPjtx.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DV53YBsy.js} +12 -7
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-DlptPLpP.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-CbVhy7K9.js → Toolbar-D5UI1JLe.js} +2 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-aCHKxMyk.js → TopNav-ZTKVEADp.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-CLWHRRDM.js} +21 -16
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-Dd8pq0fI.js} +7 -5
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +6 -7
- package/dist/{composables-BWDrzi3J.js → composables-DamLUqw3.js} +1 -1
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-CfPGC9aW.d.ts → index-BMCjAlq6.d.ts} +1 -1
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -1
- package/dist/{index-f3d9cVtj.d.ts → index-BU78NOP-.d.ts} +1 -1
- package/dist/{index-BfQ85cS8.d.ts → index-BZuEYd9y.d.ts} +1 -1
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-HoCUEVoX.d.ts → index-CCYGMtZy.d.ts} +28 -28
- package/dist/{index-BhLLG-Gi.d.ts → index-CEHqYyz5.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-BqEPgwku.d.ts → index-D4BeRDzX.d.ts} +1 -1
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DjVJDoz4.d.ts → index-DAs54mND.d.ts} +20 -3
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BUZDSd-n.d.ts → index-Dc52pmSr.d.ts} +4 -2
- package/dist/{index-uqEqPcmR.d.ts → index-DhMCql2U.d.ts} +1 -1
- package/dist/{index-Dw-zjHHD.d.ts → index-Ds4OafGN.d.ts} +2 -2
- package/dist/{index-cJKrAHO-.d.ts → index-GksCg4a4.d.ts} +4 -4
- package/dist/{index-8px-LKw_.d.ts → index-HLkEFNeu.d.ts} +3 -3
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/index.d.ts +30 -30
- package/dist/index.js +95 -95
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-U_4q8zX3.js} +1 -1
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/{types-CsqwQkf1.d.ts → types-Bq4Yl6CS.d.ts} +68 -7
- package/dist/{types-Bb7OGivY.d.ts → types-BwVJBE-G.d.ts} +1 -1
- package/dist/{types-C5GQ2KCK.d.ts → types-Dcai2Icw.d.ts} +55 -1
- package/dist/{types-DnrU3HYQ.d.ts → types-hB0M54I7.d.ts} +1 -1
- package/dist/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator-DGWEjVpB.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BP3u3hGz.js} +1 -1
- package/dist/{useInputStatusIcon-Bpe0xKqN.js → useInputStatusIcon-CTF4yF3e.js} +2 -2
- package/dist/{useListFocus-ChxLg0b4.js → useListFocus-CbHkLT-X.js} +4 -3
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-DJ4U_hF7.js} +2 -2
- package/dist/{useMenuHover-Ctmp4Xkh.js → useMenuHover-CbjjfzAd.js} +1 -1
- package/dist/usePressFeedback-Dt76SpLj.js +616 -0
- package/dist/{utils-ClVseK2w.js → utils-DsFqXaGf.js} +5 -1
- package/package.json +1 -1
- package/styles/avatar.css +18 -3
- package/styles/badge.css +13 -0
- package/styles/button-group.css +21 -2
- package/styles/button.css +63 -0
- package/styles/carousel.css +19 -11
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +7 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +9 -0
- package/styles/icon.css +18 -12
- package/styles/kbd.css +2 -0
- package/styles/link.css +20 -1
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/table.css +24 -0
- package/styles/thumbnail.css +25 -0
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/semantic-BF_AjLvk.d.ts +0 -57
- package/dist/useClickableContainer-CdGp_Cev.js +0 -112
- package/dist/usePressFeedback-Dhnfc3ee.js +0 -336
- package/dist/{index-BqhgeAT4.d.ts → index-BJ9Wim6J.d.ts} +1 -1
package/styles/button-group.css
CHANGED
|
@@ -43,7 +43,12 @@
|
|
|
43
43
|
border-end-start-radius: var(--astryx-radius-element, 0.625rem);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
/*
|
|
47
|
+
* 末尾成员:最后一个不是弹出层、<template> 或 <dialog> 的兄弟。调用方放在组里的
|
|
48
|
+
* 弹出层不算成员,末尾按钮照样圆角。用 :nth-last-child(1 of S) 而不是
|
|
49
|
+
* 「后面没有成员兄弟」这类相对兄弟的 :has() 写法:后者在 WebKit 里每插入一个子元素都要回头重算前面所有兄弟。
|
|
50
|
+
*/
|
|
51
|
+
.astryx-button-group[data-orientation='horizontal'] > .astryx-button:nth-last-child(1 of :not([popover], template, dialog)) {
|
|
47
52
|
border-start-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
48
53
|
border-end-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
49
54
|
}
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
border-start-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
.astryx-button-group[data-orientation='vertical'] > .astryx-button:last-child {
|
|
65
|
+
.astryx-button-group[data-orientation='vertical'] > .astryx-button:nth-last-child(1 of :not([popover], template, dialog)) {
|
|
61
66
|
border-end-start-radius: var(--astryx-radius-element, 0.625rem);
|
|
62
67
|
border-end-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
63
68
|
}
|
|
@@ -69,4 +74,18 @@
|
|
|
69
74
|
.astryx-button-group > .astryx-button:is([data-variant='primary'], [data-variant='destructive']):not(:first-child) {
|
|
70
75
|
--astryx-button-separator: var(--astryx-button-solid-separator);
|
|
71
76
|
}
|
|
77
|
+
|
|
78
|
+
@media (forced-colors: active) {
|
|
79
|
+
/*
|
|
80
|
+
* 强制配色下实心按钮各自画一圈边。相邻两个按钮的边会叠成双线,所以末尾成员以外
|
|
81
|
+
* 都不画结束边,接缝只留下一个按钮的起始边(即组的分隔线)。组的外沿仍然完整。
|
|
82
|
+
*/
|
|
83
|
+
.astryx-button-group[data-orientation='horizontal'] > .astryx-button:not(:nth-last-child(1 of :not([popover], template, dialog))) {
|
|
84
|
+
border-inline-end-width: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.astryx-button-group[data-orientation='vertical'] > .astryx-button:not(:nth-last-child(1 of :not([popover], template, dialog))) {
|
|
88
|
+
border-block-end-width: 0;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
72
91
|
}
|
package/styles/button.css
CHANGED
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
@keyframes astryx-button-press-release {
|
|
30
|
+
from {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
to {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
@keyframes astryx-button-tooltip-enter {
|
|
30
40
|
from {
|
|
31
41
|
opacity: 0;
|
|
@@ -180,6 +190,45 @@
|
|
|
180
190
|
background-image: var(--_press-paint-image);
|
|
181
191
|
}
|
|
182
192
|
|
|
193
|
+
/*
|
|
194
|
+
* 自己的弹层开着时(菜单、列表框这类触发器)按下不缩放,弹层贴着静止的按钮;
|
|
195
|
+
* 缩放也不做过渡,弹层打开那一刻按钮立即回到原大小。没有弹层的展开按钮照常缩放。
|
|
196
|
+
*/
|
|
197
|
+
.astryx-button[aria-expanded='true'][aria-haspopup]:not([aria-haspopup='false']) {
|
|
198
|
+
transition-property: background-color, background-image, box-shadow, color, opacity;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.astryx-button[aria-expanded='true'][aria-haspopup]:not([aria-haspopup='false']):is(:active, [data-astryx-press='on']) {
|
|
202
|
+
transform: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/*
|
|
206
|
+
* 粗指针下,按压画在按钮自己的 ::before 上(文字下面一层)。抬手淡出的是这一层的 opacity,
|
|
207
|
+
* 浏览器在合成线程上播:页面脚本再忙,淡出也照常走完,不卡在满强度。
|
|
208
|
+
* 从按下到淡完一直留着合成层(will-change),缩放结束时不用重绘整个按钮。鼠标不受影响。
|
|
209
|
+
*/
|
|
210
|
+
@media (pointer: coarse) {
|
|
211
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press] {
|
|
212
|
+
isolation: isolate;
|
|
213
|
+
background-image: none;
|
|
214
|
+
will-change: transform;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press]::before {
|
|
218
|
+
content: '';
|
|
219
|
+
position: absolute;
|
|
220
|
+
inset: 0;
|
|
221
|
+
z-index: -1;
|
|
222
|
+
border-radius: inherit;
|
|
223
|
+
background-color: var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19));
|
|
224
|
+
pointer-events: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press='fading']::before {
|
|
228
|
+
animation: astryx-button-press-release var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)) both;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
183
232
|
.astryx-button:focus-visible {
|
|
184
233
|
outline: 2px solid var(--astryx-button-focus, currentcolor);
|
|
185
234
|
outline-offset: var(--button-focus-offset);
|
|
@@ -363,6 +412,15 @@
|
|
|
363
412
|
transition-duration: 0s;
|
|
364
413
|
}
|
|
365
414
|
|
|
415
|
+
/* 减少动态效果时按下不缩放,只靠按压色表示按下。 */
|
|
416
|
+
.astryx-button:not(:disabled):not([aria-disabled='true']):is(:active, [data-astryx-press='on']) {
|
|
417
|
+
transform: none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press='fading']::before {
|
|
421
|
+
animation-duration: min(var(--astryx-duration-exit, 175ms), 200ms);
|
|
422
|
+
}
|
|
423
|
+
|
|
366
424
|
.astryx-button[data-delay-spinner='true'] .astryx-button__spinner-overlay,
|
|
367
425
|
.astryx-button[aria-busy='true'][data-delay-spinner='true'] .astryx-button__content {
|
|
368
426
|
animation-delay: 0s;
|
|
@@ -391,6 +449,11 @@
|
|
|
391
449
|
border: 0;
|
|
392
450
|
}
|
|
393
451
|
|
|
452
|
+
/* 危险按钮的边用 CanvasText,和上游主题约定一致;其余实心变体用 ButtonText。 */
|
|
453
|
+
.astryx-button[data-variant='destructive'] {
|
|
454
|
+
border-color: CanvasText;
|
|
455
|
+
}
|
|
456
|
+
|
|
394
457
|
.astryx-button:focus-visible {
|
|
395
458
|
outline-color: Highlight;
|
|
396
459
|
}
|
package/styles/carousel.css
CHANGED
|
@@ -36,9 +36,24 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/* 滚动区是焦点的主人,但它的边缘渐隐遮罩会盖住自己画的焦点环;
|
|
40
|
+
所以由外层在内容之上画一层同款焦点环,向内收一个环宽,完整落在轮播框内。 */
|
|
39
41
|
.astryx-carousel__scroller:focus-visible {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.astryx-carousel::after {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
inset: 0;
|
|
49
|
+
border-radius: inherit;
|
|
50
|
+
pointer-events: none;
|
|
51
|
+
outline: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.astryx-carousel:has(> .astryx-carousel__scroller:focus-visible)::after {
|
|
40
55
|
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
|
|
41
|
-
outline-offset: var(--astryx-focus-outline-
|
|
56
|
+
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
42
57
|
}
|
|
43
58
|
|
|
44
59
|
.astryx-carousel__scroller[data-snap] {
|
|
@@ -93,20 +108,13 @@
|
|
|
93
108
|
--astryx-button-radius: var(--astryx-radius-full, 9999px);
|
|
94
109
|
}
|
|
95
110
|
|
|
111
|
+
/* 每个按钮都收进焦点环以内(环的偏移加环宽),滚动区获得焦点时整圈环都看得见。 */
|
|
96
112
|
.astryx-carousel__pill--start {
|
|
97
|
-
|
|
113
|
+
margin-inline-start: calc(var(--astryx-focus-outline-offset, 3px) + var(--astryx-focus-outline-width, 2px));
|
|
98
114
|
}
|
|
99
115
|
|
|
100
116
|
.astryx-carousel__pill--end {
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
[dir='rtl'] .astryx-carousel__pill--start {
|
|
105
|
-
transform: translateX(50%);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
[dir='rtl'] .astryx-carousel__pill--end {
|
|
109
|
-
transform: translateX(-50%);
|
|
117
|
+
margin-inline-end: calc(var(--astryx-focus-outline-offset, 3px) + var(--astryx-focus-outline-width, 2px));
|
|
110
118
|
}
|
|
111
119
|
|
|
112
120
|
.astryx-carousel__pill[data-hidden] {
|
package/styles/citation.css
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
margin-inline-start: var(--astryx-spacing-0-5, 2px);
|
|
22
22
|
padding-inline: var(--astryx-spacing-2, 8px);
|
|
23
23
|
overflow: visible;
|
|
24
|
-
|
|
24
|
+
/* flex 芯片的基线取自第一个子项,图标没有文字基线,芯片会浮在行上方;居中后有无图标都落在行内。 */
|
|
25
|
+
vertical-align: middle;
|
|
25
26
|
border: var(--astryx-border-width, 1px) solid var(--astryx-citation-border, var(--astryx-color-border));
|
|
26
27
|
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
27
28
|
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
@@ -24,11 +24,6 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.astryx-clickable-card[data-astryx-press]::after {
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
background-image: var(--_press-paint-image);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
27
|
@media (hover: hover) {
|
|
33
28
|
.astryx-clickable-card:hover::after {
|
|
34
29
|
background-color: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
|
|
@@ -39,6 +34,17 @@
|
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
|
|
37
|
+
/*
|
|
38
|
+
* 控制器画的按压(手指,或触屏优先设备上的鼠标、按键)是这一层的背景图,按下第一帧就满强度,
|
|
39
|
+
* 抬手时按自己的强度动画淡出。所以按压期间颜色不做过渡、直接让位:
|
|
40
|
+
* 混合设备上手指按下时 :active 和悬停也可能匹配,不让开就会叠成两层。写在悬停后面,盖过悬停的颜色。
|
|
41
|
+
*/
|
|
42
|
+
.astryx-clickable-card[data-astryx-press]::after {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
background-image: var(--_press-paint-image);
|
|
45
|
+
transition-property: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
42
48
|
.astryx-clickable-card:focus-within {
|
|
43
49
|
outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, var(--astryx-color-text-primary, #171717));
|
|
44
50
|
outline-offset: var(--astryx-focus-outline-offset, 2px);
|
|
@@ -105,4 +111,12 @@
|
|
|
105
111
|
.astryx-selectable-card[data-selected='true'][data-variant='yellow'] {
|
|
106
112
|
--astryx-selectable-card-accent: var(--astryx-color-yellow, #ca8a04);
|
|
107
113
|
}
|
|
114
|
+
|
|
115
|
+
/* 减少动态效果时,悬停、按下、选中的颜色和边框都立即切换,不做过渡。 */
|
|
116
|
+
@media (prefers-reduced-motion: reduce) {
|
|
117
|
+
.astryx-clickable-card::after,
|
|
118
|
+
.astryx-selectable-card {
|
|
119
|
+
transition-duration: 0s;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
108
122
|
}
|
package/styles/code.css
CHANGED
|
@@ -180,6 +180,12 @@
|
|
|
180
180
|
overflow: auto;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
/* 外层为了圆角会裁切溢出,所以代码视口的键盘焦点环向内收一个环宽,完整画在自己框内。 */
|
|
184
|
+
.astryx-code-block__scroll:focus-visible {
|
|
185
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
|
|
186
|
+
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
187
|
+
}
|
|
188
|
+
|
|
183
189
|
.astryx-code-block__wrap {
|
|
184
190
|
display: flex;
|
|
185
191
|
min-width: fit-content;
|
package/styles/context-menu.css
CHANGED
package/styles/dialog.css
CHANGED
package/styles/dropdown-menu.css
CHANGED
|
@@ -409,4 +409,13 @@
|
|
|
409
409
|
transition: none;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
+
|
|
413
|
+
@media (forced-colors: active) {
|
|
414
|
+
/* 强制配色会去掉阴影,阴影是这块浮层唯一的边,这里补一圈系统色边框。 */
|
|
415
|
+
/* 底部抽屉和框里的菜单不是独立浮层,不加。子菜单的弹出面板同样带 .astryx-dropdown-menu。 */
|
|
416
|
+
.astryx-dropdown-menu:not(.is-sheet, .is-in-frame),
|
|
417
|
+
.astryx-dropdown-menu-popover {
|
|
418
|
+
border: 1px solid CanvasText;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
412
421
|
}
|
package/styles/icon.css
CHANGED
|
@@ -84,28 +84,34 @@
|
|
|
84
84
|
height: 100%;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/*
|
|
88
|
+
* A theme sets a size's dimension with width and height on
|
|
89
|
+
* components.icon['size:sm'] and the other sizes. The theme compiler copies
|
|
90
|
+
* them into --_icon-width and --_icon-height, so the font size that
|
|
91
|
+
* 1em-based artwork follows is the smaller side of the themed box.
|
|
92
|
+
*/
|
|
87
93
|
.astryx-icon[data-size='xsm'] {
|
|
88
|
-
width: 0.75rem;
|
|
89
|
-
height: 0.75rem;
|
|
90
|
-
font-size: 0.75rem;
|
|
94
|
+
width: var(--_icon-width, 0.75rem);
|
|
95
|
+
height: var(--_icon-height, 0.75rem);
|
|
96
|
+
font-size: min(var(--_icon-width, 0.75rem), var(--_icon-height, 0.75rem));
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
.astryx-icon[data-size='sm'] {
|
|
94
|
-
width: 1rem;
|
|
95
|
-
height: 1rem;
|
|
96
|
-
font-size: 1rem;
|
|
100
|
+
width: var(--_icon-width, 1rem);
|
|
101
|
+
height: var(--_icon-height, 1rem);
|
|
102
|
+
font-size: min(var(--_icon-width, 1rem), var(--_icon-height, 1rem));
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
.astryx-icon[data-size='md'] {
|
|
100
|
-
width: 1.25rem;
|
|
101
|
-
height: 1.25rem;
|
|
102
|
-
font-size: 1.25rem;
|
|
106
|
+
width: var(--_icon-width, 1.25rem);
|
|
107
|
+
height: var(--_icon-height, 1.25rem);
|
|
108
|
+
font-size: min(var(--_icon-width, 1.25rem), var(--_icon-height, 1.25rem));
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
.astryx-icon[data-size='lg'] {
|
|
106
|
-
width: 1.5rem;
|
|
107
|
-
height: 1.5rem;
|
|
108
|
-
font-size: 1.5rem;
|
|
112
|
+
width: var(--_icon-width, 1.5rem);
|
|
113
|
+
height: var(--_icon-height, 1.5rem);
|
|
114
|
+
font-size: min(var(--_icon-width, 1.5rem), var(--_icon-height, 1.5rem));
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
.astryx-icon[data-color='primary'] {
|
package/styles/kbd.css
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
min-width: var(--astryx-spacing-5, 20px);
|
|
18
18
|
height: var(--astryx-spacing-5, 20px);
|
|
19
|
+
/* 主题高度在一行文字放得下时生效;字号变大、行变高时键帽跟着长高。 */
|
|
20
|
+
min-height: 1lh;
|
|
19
21
|
padding-inline: var(--astryx-spacing-1, 4px);
|
|
20
22
|
border-bottom: 2px solid var(--astryx-kbd-border-color, var(--astryx-color-border-emphasized, #d4d4d4));
|
|
21
23
|
border-radius: var(--astryx-radius-inner, 0.375rem);
|
package/styles/link.css
CHANGED
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
@layer astryx.components {
|
|
4
4
|
.astryx-link.astryx-link {
|
|
5
5
|
display: inline-flex;
|
|
6
|
+
/* 根元素到容器为止,标签可以收窄:没有断点的长标签(比如一串网址)在行内换行,不会撑出去。 */
|
|
7
|
+
max-width: 100%;
|
|
6
8
|
align-items: center;
|
|
7
9
|
gap: var(--astryx-spacing-0-5, 2px);
|
|
8
10
|
padding: 0;
|
|
9
11
|
border: 0;
|
|
10
12
|
background: transparent;
|
|
13
|
+
/* 按钮形态默认居中文字;跟随外面的对齐,换行后和锚点形态一样从行首排起。 */
|
|
14
|
+
text-align: inherit;
|
|
11
15
|
color: var(--astryx-link-accent-foreground, #0074e2);
|
|
12
16
|
font: inherit;
|
|
13
17
|
text-decoration: none;
|
|
@@ -124,11 +128,26 @@
|
|
|
124
128
|
white-space: nowrap;
|
|
125
129
|
}
|
|
126
130
|
|
|
131
|
+
/* 截断的链接在弹性行里也能收窄到比标签短,标签才会溢出并画出省略号。 */
|
|
127
132
|
.astryx-link.astryx-link--lines {
|
|
128
|
-
|
|
133
|
+
min-width: 0;
|
|
129
134
|
align-items: flex-start;
|
|
130
135
|
}
|
|
131
136
|
|
|
137
|
+
/*
|
|
138
|
+
* 在会截断行数的 Text 里,链接并入文字的行盒,外面的截断才能从链接中间切开;
|
|
139
|
+
* inline-flex 是整块的,切不动。截断会裁掉行边缘,所以焦点框往里收。
|
|
140
|
+
*/
|
|
141
|
+
.astryx-link.astryx-link--in-clamp {
|
|
142
|
+
display: inline;
|
|
143
|
+
outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.astryx-link--in-clamp .astryx-link__external {
|
|
147
|
+
margin-inline-start: var(--astryx-spacing-0-5, 2px);
|
|
148
|
+
vertical-align: middle;
|
|
149
|
+
}
|
|
150
|
+
|
|
132
151
|
.astryx-link__label--clamp {
|
|
133
152
|
display: -webkit-box;
|
|
134
153
|
overflow: hidden;
|
package/styles/popover.css
CHANGED
package/styles/pressable.css
CHANGED
|
@@ -59,6 +59,13 @@
|
|
|
59
59
|
animation-fill-mode: both;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/* 减少动态效果时淡出最多 200ms,控制器的 pressFadeMs 用同一个上限。 */
|
|
63
|
+
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
[data-astryx-pressable][data-astryx-press='fading'] {
|
|
65
|
+
animation-duration: min(var(--astryx-duration-exit, 175ms), 200ms);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
/* 默认的一层按压色,给不想自己写样式的本地组件用。 */
|
|
63
70
|
.astryx-pressable {
|
|
64
71
|
position: relative;
|
package/styles/table.css
CHANGED
|
@@ -227,6 +227,11 @@
|
|
|
227
227
|
opacity: 0.35;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
/* A theme that hides the sort glyph leaves no gap beside the label. */
|
|
231
|
+
.astryx-table__sort-icon:empty {
|
|
232
|
+
display: none;
|
|
233
|
+
}
|
|
234
|
+
|
|
230
235
|
.astryx-table th:hover .astryx-table__sort-icon,
|
|
231
236
|
.astryx-table__sort:focus-visible .astryx-table__sort-icon,
|
|
232
237
|
.astryx-table__sort-icon[data-active='true'] {
|
|
@@ -526,6 +531,25 @@
|
|
|
526
531
|
transition: transform var(--astryx-duration-fast, 125ms) var(--astryx-ease-move, cubic-bezier(0.24, 1, 0.4, 1));
|
|
527
532
|
}
|
|
528
533
|
|
|
534
|
+
/*
|
|
535
|
+
* The row-expansion toggle holds whatever the theme's table-row-expand slot
|
|
536
|
+
* resolves in a box the size of the default glyph, centred out of flow. A
|
|
537
|
+
* larger glyph or a hidden one keeps the toggle's baseline and the row height.
|
|
538
|
+
* The box carries the turn, so any glyph turns with it.
|
|
539
|
+
*/
|
|
540
|
+
.astryx-table__chevron-icon--slot {
|
|
541
|
+
position: relative;
|
|
542
|
+
inline-size: 0.75rem;
|
|
543
|
+
block-size: 0.75rem;
|
|
544
|
+
flex-shrink: 0;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.astryx-table__chevron-icon--slot > .astryx-icon {
|
|
548
|
+
position: absolute;
|
|
549
|
+
inset: 0;
|
|
550
|
+
margin: auto;
|
|
551
|
+
}
|
|
552
|
+
|
|
529
553
|
.astryx-table__chevron-icon.is-expanded {
|
|
530
554
|
transform: rotate(90deg);
|
|
531
555
|
}
|
package/styles/thumbnail.css
CHANGED
|
@@ -70,6 +70,23 @@
|
|
|
70
70
|
overflow: hidden;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/*
|
|
74
|
+
* 一次聚焦只画一个焦点环:图片容器替 Open 画,Open 自己不画。
|
|
75
|
+
* 聚焦 Remove 时容器也亮,Remove 自己的环可能落在照片上看不清。
|
|
76
|
+
*/
|
|
77
|
+
.astryx-thumbnail__open:focus-visible {
|
|
78
|
+
outline: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.astryx-thumbnail__frame:has(:focus-visible) {
|
|
82
|
+
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent));
|
|
83
|
+
outline-offset: var(--astryx-focus-outline-offset, 3px);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.astryx-thumbnail__open[aria-disabled='true'] {
|
|
87
|
+
cursor: default;
|
|
88
|
+
}
|
|
89
|
+
|
|
73
90
|
.astryx-thumbnail__open::after,
|
|
74
91
|
.astryx-thumbnail__frame[data-interactive='true']::after {
|
|
75
92
|
content: '';
|
|
@@ -101,6 +118,14 @@
|
|
|
101
118
|
transition-duration: 0s;
|
|
102
119
|
}
|
|
103
120
|
|
|
121
|
+
/* 减少动态效果时,悬停和按下的颜色立即切换。 */
|
|
122
|
+
@media (prefers-reduced-motion: reduce) {
|
|
123
|
+
.astryx-thumbnail__open::after,
|
|
124
|
+
.astryx-thumbnail__frame[data-interactive='true']::after {
|
|
125
|
+
transition-duration: 0s;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
104
129
|
.astryx-thumbnail__loading {
|
|
105
130
|
position: absolute;
|
|
106
131
|
inset: 0;
|
package/dist/context-Cws_tXTr.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
//#region src/Theme/context.ts
|
|
2
|
-
const themeContextKey = Symbol("astryx-theme");
|
|
3
|
-
/** Present when this component is already inside a Theme. */
|
|
4
|
-
const themeNestingKey = Symbol("astryx-theme-nesting");
|
|
5
|
-
const mediaThemeKey = Symbol("astryx-media-theme");
|
|
6
|
-
//#endregion
|
|
7
|
-
export { themeContextKey as n, themeNestingKey as r, mediaThemeKey as t };
|
package/dist/context-IvbU9c3T.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
-
//#region src/InputGroup/context.ts
|
|
3
|
-
const INPUT_GROUP_KEY = defineLayerScopedKey("InputGroup", null);
|
|
4
|
-
function useInputGroupContext() {
|
|
5
|
-
return readLayerScoped(INPUT_GROUP_KEY);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { useInputGroupContext as n, INPUT_GROUP_KEY as t };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
//#region src/Icon/semantic.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Semantic name to Iconify id.
|
|
4
|
-
*
|
|
5
|
-
* The names describe the job (close, search, check). The id is the drawing.
|
|
6
|
-
* Lucide matches the upstream themes. A theme replaces any of these, or adds
|
|
7
|
-
* its own keys, through `defineTheme({ icons })`.
|
|
8
|
-
*
|
|
9
|
-
* The drawing is used only after that collection is registered. Until then
|
|
10
|
-
* the built-in glyph stays, so a missing collection does not blank the icon.
|
|
11
|
-
*
|
|
12
|
-
* `upload` is its own name, not `arrowUp`: a theme can redraw the upload
|
|
13
|
-
* affordance without changing sort arrows or the send button.
|
|
14
|
-
*/
|
|
15
|
-
declare const defaultSemanticIcons: {
|
|
16
|
-
readonly close: "lucide:x";
|
|
17
|
-
readonly chevronDown: "lucide:chevron-down";
|
|
18
|
-
readonly chevronLeft: "lucide:chevron-left";
|
|
19
|
-
readonly chevronRight: "lucide:chevron-right";
|
|
20
|
-
readonly chevronsLeft: "lucide:chevrons-left";
|
|
21
|
-
readonly chevronsRight: "lucide:chevrons-right";
|
|
22
|
-
readonly check: "lucide:check";
|
|
23
|
-
readonly success: "lucide:circle-check";
|
|
24
|
-
readonly error: "lucide:circle-x";
|
|
25
|
-
readonly warning: "lucide:triangle-alert";
|
|
26
|
-
readonly info: "lucide:info";
|
|
27
|
-
readonly calendar: "lucide:calendar";
|
|
28
|
-
readonly clock: "lucide:clock";
|
|
29
|
-
readonly externalLink: "lucide:external-link";
|
|
30
|
-
readonly menu: "lucide:menu";
|
|
31
|
-
readonly moreHorizontal: "lucide:ellipsis";
|
|
32
|
-
readonly search: "lucide:search";
|
|
33
|
-
readonly upload: "lucide:upload";
|
|
34
|
-
readonly arrowUp: "lucide:arrow-up";
|
|
35
|
-
readonly arrowDown: "lucide:arrow-down";
|
|
36
|
-
readonly arrowsUpDown: "lucide:arrow-up-down";
|
|
37
|
-
readonly funnel: "lucide:funnel";
|
|
38
|
-
readonly eyeSlash: "lucide:eye-off";
|
|
39
|
-
readonly viewColumns: "lucide:columns-3";
|
|
40
|
-
readonly copy: "lucide:copy";
|
|
41
|
-
readonly checkDouble: "lucide:check-check";
|
|
42
|
-
readonly wrench: "lucide:wrench";
|
|
43
|
-
readonly stop: "lucide:square";
|
|
44
|
-
readonly microphone: "lucide:mic";
|
|
45
|
-
readonly image: "lucide:image";
|
|
46
|
-
};
|
|
47
|
-
type SemanticIconMap = Readonly<Record<string, string>>;
|
|
48
|
-
/**
|
|
49
|
-
* The Iconify id for a semantic name.
|
|
50
|
-
*
|
|
51
|
-
* Theme entries win, including keys the package does not ship, such as a
|
|
52
|
-
* namespaced `numberInput:stepperDown`. An unknown name with no theme entry
|
|
53
|
-
* returns undefined, so a CSS class can still pass through `icon`.
|
|
54
|
-
*/
|
|
55
|
-
declare function resolveSemanticIcon(name: string | undefined, icons?: SemanticIconMap): string | undefined;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { defaultSemanticIcons as n, resolveSemanticIcon as r, SemanticIconMap as t };
|