@astryx-vue/core 0.3.0 → 0.4.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-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-0wTvOo3H.js → AppShell-CumzH-8z.js} +3 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.js} +47 -34
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-DLC_FFR5.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
- package/dist/Blockquote/index.js +1 -1
- package/dist/Blockquote-DRoKdcxZ.js +27 -0
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-pt7m4CvC.js → BottomSheet-B4sc3F1S.js} +286 -140
- package/dist/{BottomSheet-JYMB_Ofl.js → BottomSheet-m54uCMJN.js} +20 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Breadcrumbs-CTaz7Kh4.js +223 -0
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
- package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-B7vIowKq.js → Calendar-BAqzzQm2.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CA8zpD9v.js → Carousel-DXC22UWq.js} +4 -4
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bmna9EOA.js → Chat-BdJW6IX5.js} +147 -83
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-DJHCbwgC.js} +19 -11
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.js} +8 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-D0BFubut.js → CodeBlock-Caaflp7C.js} +3 -3
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-YHsUNg3V.js → CommandPalette-C_MClfAg.js} +143 -63
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-BeVQaqRf.js} +85 -20
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-C6hPYvYz.js} +297 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DT518j5E.js → DateInput-BjLdmYor.js} +567 -76
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Br3wVEfD.js} +85 -20
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-CAZBwoRe.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.js} +28 -11
- package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +1 -1
- package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CoOQVlRp.js → DropdownMenu-BdGmQVb1.js} +85 -57
- package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-BzQrNV9C.js} +479 -264
- package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
- package/dist/Field/index.d.ts +4 -3
- package/dist/Field/index.js +4 -3
- package/dist/{Field-D5gUEGw4.js → Field--OEsLBfE.js} +4 -3
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BpdiO1V8.js → FileInput-B_pUxB0Y.js} +106 -29
- package/dist/FormLayout/index.d.ts +1 -1
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +2 -1
- package/dist/InputClearButton-CwXPan8c.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.js} +2 -2
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-kBapgKAQ.js} +5 -9
- package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
- package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
- package/dist/LayerProvider/index.js +1 -1
- package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-C6RHllr-.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DXOsaeQb.js → LayoutPanel-zM5vjrKS.js} +12 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.js} +29 -12
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
- package/dist/Markdown/index.d.ts +5 -2
- package/dist/Markdown/index.js +5 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +3 -0
- package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
- package/dist/Markdown/plugin-protocol/index.js +107 -0
- package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
- package/dist/Markdown/plugin-renderer/index.js +42 -0
- package/dist/{Markdown-CvtN7HnF.js → Markdown-DhVfOvXk.js} +195 -484
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-pdoJFZHx.js} +52 -17
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-CFNqSRev.js} +72 -59
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-DuVatmq5.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.js} +29 -26
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
- package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-B0vzOg3N.js +727 -0
- package/dist/Outline/index.d.ts +2 -2
- package/dist/Outline/index.js +2 -2
- package/dist/{Outline-755h-lMP.js → Outline-CfGv2F1o.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DqwNQFRp.js → Pagination-Bfe12018.js} +2 -2
- package/dist/PickerWheel-CSwUYfes.js +69 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-DJf8POzL.js → Popover-78dFjTb9.js} +20 -15
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DvjiPqMZ.js → PowerSearch-BoAMdFaT.js} +774 -586
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-BIipql-L.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.js} +57 -8
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-TPlUCAHD.js} +103 -50
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-D4dCJv9I.js → ScrollableArea-0u6RWtGG.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Cku4dRzc.js → SelectableCard-BEqnhPaX.js} +16 -11
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-CPISLzp7.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BF8mYDxl.js → SideNav-CN2QeAtY.js} +51 -37
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-DdVUadii.js +200 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CTsTFfar.js → Stack-Bb_h60t3.js} +1 -1
- package/dist/{Stack-kQlYbbL4.js → Stack-Bp-XN9J4.js} +12 -7
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-fecqnm7P.js → Table-BcrrylMX.js} +726 -452
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Ab5Sw60T.js → TextArea-DA9CCG_J.js} +104 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.js} +71 -38
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -2
- package/dist/Theme-BbDT8B_C.js +2125 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-B2ZAY59J.js} +13 -10
- package/dist/{TimeField-CoHDGmsP.js → TimeField-CpAgja9D.js} +297 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-Bw_lHS4M.js} +78 -9
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-xpQKCk0d.js → Timestamp-BFNuoTZ0.js} +5 -5
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-DwnPjx6j.js +685 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DsntTYhQ.js → Token-BfS4vi__.js} +32 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-B5C_qY7t.js → Tokenizer-Ci3E5bvP.js} +107 -23
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-Ciq0l1w7.js → TopNav-gW59zp1o.js} +16 -15
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-JP9RT87x.js → Typeahead-D4JjvjK4.js} +123 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- package/dist/characterReferences-BJ-jLhsR.js +65 -0
- package/dist/characters-rcDbGt71.d.ts +29 -0
- package/dist/characters-wTnzjkkR.js +58 -0
- package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
- package/dist/composables/index.d.ts +5 -4
- package/dist/composables/index.js +23 -18
- package/dist/{composables-CbKx9C1Y.js → composables-Bc02zKAO.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
- package/dist/context-IvbU9c3T.js +8 -0
- package/dist/context-pjBxaMSh.js +28 -0
- package/dist/fieldParts--SyRZVQG.js +44 -0
- package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
- package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
- package/dist/hoverIntent-DMHGb85c.js +115 -0
- package/dist/{index-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
- package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-0QGtSf3r.d.ts → index-BO9TY87G.d.ts} +3 -2
- package/dist/{index-IBAInumL.d.ts → index-BQEJj72c.d.ts} +23 -10
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-Crp3NFLW.d.ts → index-BZKgbyN9.d.ts} +1 -1
- package/dist/index-BkUkm6Al.d.ts +11 -0
- package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
- package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
- package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
- package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
- package/dist/{index-xrzJC4wm.d.ts → index-CJ6ajsUC.d.ts} +1 -1
- package/dist/{index-B9e52paP.d.ts → index-CK-Dbh0f.d.ts} +1 -1
- package/dist/index-CKUfpmFL.d.ts +375 -0
- package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-B4OOtNP8.d.ts → index-CPtDjmcX.d.ts} +3 -3
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-BVKivP59.d.ts → index-CTjkJP4x.d.ts} +32 -3
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-GI9xIV9l.d.ts → index-CikMzeab.d.ts} +2 -2
- package/dist/{index-DUaLJO7l.d.ts → index-CpNlPLBF.d.ts} +172 -126
- package/dist/{index-yT1yiiww.d.ts → index-Cs1xsHKi.d.ts} +24 -12
- package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
- package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
- package/dist/{index-B3Fomy15.d.ts → index-D0_HsuC3.d.ts} +3 -3
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
- package/dist/{index-DVmgNb78.d.ts → index-DRJZ-v1E.d.ts} +4 -4
- package/dist/{index-CL1T2j4y.d.ts → index-DY8Wph-A.d.ts} +3 -3
- package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-D41_xqjs.d.ts → index-Dr4b_oji.d.ts} +20 -13
- package/dist/{index-CqE4Bf3Q.d.ts → index-Ds201-d2.d.ts} +16 -2
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-B42oE_F-.d.ts → index-IfsSCj8J.d.ts} +18 -5
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-CICeEoZV.d.ts → index-pNtfr-RW.d.ts} +1 -1
- package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
- package/dist/index.d.ts +80 -74
- package/dist/index.js +149 -134
- package/dist/inlineSize-BNe8wggI.js +66 -0
- package/dist/inputPresentation-BOyHkCDr.js +62 -0
- package/dist/interactionModality-ACpTMhak.js +44 -0
- package/dist/isApplePlatform-B1ju6F5B.js +27 -0
- package/dist/isRenderable-BnKHIqfd.js +21 -0
- package/dist/layerDepth-CNDh-IHb.js +181 -0
- package/dist/link-DuuA2eCL.js +30 -0
- package/dist/{loadCatalog-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
- package/dist/loadCatalog-eopw74qb.js +424 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-CabGJlGp.js +343 -0
- package/dist/modalOutlet-CUOcrhIu.js +56 -0
- package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
- package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
- package/dist/protocol-DHxY0NI8.js +113 -0
- package/dist/protocol-RSeMzAN1.d.ts +238 -0
- package/dist/publicParser-B0MRoikr.d.ts +141 -0
- package/dist/publicParser-uHC_T0Fo.js +895 -0
- package/dist/resizableChannel-3vivrEcT.js +20 -0
- package/dist/safeUrl-CsvfcZ9m.js +54 -0
- package/dist/scopedProvide-C-Df7c15.js +30 -0
- package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
- package/dist/scrollLock-C3aT4-0z.js +102 -0
- package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-mCpJBvra.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-C65CUsf9.js +32 -0
- package/dist/syntaxContext-DmIfNNtb.js +4 -0
- package/dist/triggerVariant-BsL8jMHs.js +16 -0
- package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
- package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
- package/dist/upstreamMap-xr3gvREu.js +731 -0
- package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
- package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
- package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
- package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
- package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
- package/dist/{useIndicator-i1NORM7W.js → useIndicator-MZmfBWid.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
- package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
- package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
- package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
- package/dist/useMenuHover-Djreu23i.js +170 -0
- package/dist/useMenuPress-8foxY8z4.js +764 -0
- package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
- package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
- package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
- package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
- package/dist/usePressFeedback-BJCpjEpv.js +319 -0
- package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
- package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
- package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
- package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
- package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
- package/dist/useScrollableArea-BE8b3qm7.js +222 -0
- package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
- package/dist/useTranslator-BmWt2BBt.js +35 -0
- package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +5 -0
- package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
- package/dist/utils-z3Q6BGIJ.js +819 -0
- package/locales/SOURCE.json +1 -1
- package/package.json +18 -2
- package/reset.css +364 -1
- package/styles/avatar-group.css +9 -1
- package/styles/badge.css +8 -5
- package/styles/banner.css +124 -26
- package/styles/blockquote.css +1 -0
- package/styles/bordered-control.css +1 -1
- package/styles/bottom-sheet.css +74 -6
- package/styles/breadcrumbs.css +16 -2
- package/styles/button-group.css +3 -1
- package/styles/button.css +53 -11
- package/styles/card.css +1 -1
- package/styles/chat.css +16 -6
- package/styles/checkbox-input.css +10 -0
- package/styles/clickable-card.css +10 -3
- package/styles/collapsible.css +12 -5
- package/styles/command-palette.css +29 -14
- package/styles/complex-selector.css +22 -5
- package/styles/context-menu.css +3 -3
- package/styles/date-input.css +111 -1
- package/styles/dialog-header.css +4 -1
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +12 -3
- package/styles/field.css +5 -0
- package/styles/form-layout.css +1 -0
- package/styles/heading.css +18 -8
- package/styles/icon.css +4 -0
- package/styles/kbd.css +1 -1
- package/styles/layer.css +72 -0
- package/styles/list.css +9 -2
- package/styles/metadata-list.css +1 -0
- package/styles/mobile-nav.css +4 -1
- package/styles/multi-selector.css +48 -1
- package/styles/nav-item.css +9 -2
- package/styles/nav-menu.css +12 -2
- package/styles/number-input.css +9 -1
- package/styles/overflow-list.css +1 -1
- package/styles/popover.css +2 -1
- package/styles/power-search.css +5 -3
- package/styles/pressable.css +63 -22
- package/styles/progress-bar.css +15 -3
- package/styles/radio.css +16 -0
- package/styles/resize-handle.css +42 -0
- package/styles/segmented-control.css +12 -4
- package/styles/selector.css +53 -1
- package/styles/side-nav.css +19 -0
- package/styles/slider.css +4 -3
- package/styles/spinner.css +48 -42
- package/styles/stepper.css +58 -4
- package/styles/switch.css +26 -0
- package/styles/tab-list.css +132 -3
- package/styles/table.css +88 -10
- package/styles/text-area.css +1 -1
- package/styles/text-input.css +1 -1
- package/styles/text.css +6 -6
- package/styles/thumbnail.css +11 -3
- package/styles/time-input.css +8 -0
- package/styles/toast.css +37 -3
- package/styles/token.css +2 -2
- package/styles/tokenizer.css +1 -1
- package/styles/toolbar.css +4 -1
- package/styles/tree-list.css +1 -1
- package/styles/typeahead.css +34 -1
- package/styles.css +1 -0
- package/dist/Blockquote-DFqBv_oJ.js +0 -18
- package/dist/Breadcrumbs-DIm4figq.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-A7m2O3bg.js +0 -268
- package/dist/MultiSelector-BtAUfQ3t.js +0 -990
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DJ2BhUTV.js +0 -677
- package/dist/Spinner-9cYUCnDy.js +0 -84
- package/dist/Theme-CtaUWo4g.js +0 -1246
- package/dist/Toast-BuqIZV5z.js +0 -322
- package/dist/context-4PuqD1Ic.js +0 -4
- package/dist/context-D5-MwxnN.js +0 -4
- package/dist/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- package/dist/loadCatalog-CXKqEB9s.js +0 -877
- package/dist/locale-DgkZEMTn.js +0 -105
- package/dist/platform-B_9W_aHW.js +0 -33
- package/dist/scrollLock-BzIvIimL.js +0 -42
- package/dist/useMenuPress-D-FRNrBW.js +0 -573
- package/dist/useScrollableArea-DDk_CluT.js +0 -172
- /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
package/styles/resize-handle.css
CHANGED
|
@@ -89,6 +89,48 @@
|
|
|
89
89
|
cursor: row-resize;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/*
|
|
93
|
+
* 抓取区跟握把走同一套物理偏移。6.5px 是 (16px - 3px) / 2,用来把更宽的抓取区中心对齐握把。
|
|
94
|
+
* 这段位移在行内轴上,从右到左时要改号,否则抓取区会偏到握把旁边。
|
|
95
|
+
*/
|
|
96
|
+
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='center'] {
|
|
97
|
+
inset-inline-start: 50%;
|
|
98
|
+
transform: translateX(-50%);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit[data-bias='center'] {
|
|
102
|
+
inset-block-start: 50%;
|
|
103
|
+
transform: translateY(-50%);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='start'] {
|
|
107
|
+
inset-inline-start: 0;
|
|
108
|
+
transform: translateX(calc(-1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='end'] {
|
|
112
|
+
inset-inline-start: 0;
|
|
113
|
+
transform: translateX(calc(1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:is([dir='rtl'] .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='start']) {
|
|
117
|
+
transform: translateX(calc(-1 * (3px + var(--astryx-spacing-1, 4px)) + 6.5px));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:is([dir='rtl'] .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='end']) {
|
|
121
|
+
transform: translateX(calc(1 * (3px + var(--astryx-spacing-1, 4px)) + 6.5px));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit[data-bias='start'] {
|
|
125
|
+
inset-block-start: 0;
|
|
126
|
+
transform: translateY(calc(-1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit[data-bias='end'] {
|
|
130
|
+
inset-block-start: 0;
|
|
131
|
+
transform: translateY(calc(1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
|
|
132
|
+
}
|
|
133
|
+
|
|
92
134
|
.astryx-resize-handle-pill {
|
|
93
135
|
position: absolute;
|
|
94
136
|
z-index: 2;
|
|
@@ -113,12 +113,20 @@
|
|
|
113
113
|
forced-color-adjust: none;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
@media (hover: hover) {
|
|
117
|
+
.astryx-segmented-control-item:not([aria-disabled='true']):not([data-selected='true']):hover {
|
|
118
|
+
background-color: var(--astryx-segmented-control-item-hover-background, light-dark(#0000000d, #ffffff0d));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media not all and (pointer: coarse) {
|
|
123
|
+
.astryx-segmented-control-item:not([aria-disabled='true']):not([data-selected='true']):active {
|
|
124
|
+
background-color: var(--astryx-segmented-control-item-pressed-background, light-dark(#0000001a, #ffffff1a));
|
|
125
|
+
}
|
|
118
126
|
}
|
|
119
127
|
|
|
120
|
-
.astryx-segmented-control-item:not([aria-disabled='true']):not([data-selected='true'])
|
|
121
|
-
background-
|
|
128
|
+
.astryx-segmented-control-item[data-astryx-press]:not([aria-disabled='true']):not([data-selected='true']) {
|
|
129
|
+
background-image: var(--_press-paint-image);
|
|
122
130
|
}
|
|
123
131
|
|
|
124
132
|
.astryx-segmented-control-item[aria-disabled='true'] {
|
package/styles/selector.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
width: 100%;
|
|
42
42
|
min-width: 0;
|
|
43
43
|
height: var(--astryx-input-height-md, 32px);
|
|
44
|
-
padding: var(--astryx-spacing-1, 4px) var(--astryx-spacing-2, 8px);
|
|
44
|
+
padding: var(--astryx-input-padding-block, var(--astryx-spacing-1, 4px)) var(--astryx-input-padding-inline, var(--astryx-spacing-2, 8px));
|
|
45
45
|
border: var(--astryx-border-width, 1px) solid var(--astryx-input-status-color, var(--astryx-input-border, #d4d4d4));
|
|
46
46
|
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
47
47
|
background: var(--astryx-input-background, #fff);
|
|
@@ -121,6 +121,58 @@
|
|
|
121
121
|
box-shadow: none;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
.astryx-selector-field[data-variant='secondary'] {
|
|
125
|
+
border-width: var(--astryx-button-secondary-border-width, 0);
|
|
126
|
+
border-style: var(--astryx-button-secondary-border-style, solid);
|
|
127
|
+
border-color: var(--astryx-button-secondary-border-color, transparent);
|
|
128
|
+
background-color: var(--astryx-button-secondary-background, #0000000f);
|
|
129
|
+
box-shadow: none;
|
|
130
|
+
color: var(--astryx-button-secondary-foreground, #171717);
|
|
131
|
+
font-weight: var(--astryx-font-weight-medium, 500);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media (hover: hover) {
|
|
135
|
+
.astryx-selector-field[data-variant='secondary']:hover:not(.is-disabled):not(:focus-within) {
|
|
136
|
+
background-image: linear-gradient(var(--astryx-button-secondary-hover-overlay, var(--astryx-button-hover-overlay, #0000000d)), var(--astryx-button-secondary-hover-overlay, var(--astryx-button-hover-overlay, #0000000d)));
|
|
137
|
+
box-shadow: none;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.astryx-selector-field[data-variant='secondary']:focus-within,
|
|
142
|
+
.astryx-selector-field[data-variant='secondary'].is-open {
|
|
143
|
+
border-color: var(--astryx-button-secondary-border-color, transparent);
|
|
144
|
+
box-shadow: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.astryx-selector-listbox[role='grid'] .astryx-selector-option {
|
|
148
|
+
display: grid;
|
|
149
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
150
|
+
align-items: stretch;
|
|
151
|
+
padding: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.astryx-selector-option-main,
|
|
155
|
+
.astryx-selector-option-action {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
min-width: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.astryx-selector-option-main {
|
|
162
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
163
|
+
padding: var(--astryx-spacing-2, 8px);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.astryx-selector-option-action {
|
|
167
|
+
justify-content: flex-end;
|
|
168
|
+
padding-inline-end: var(--astryx-spacing-2, 8px);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.astryx-selector-option-action.is-active {
|
|
172
|
+
outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, currentcolor);
|
|
173
|
+
outline-offset: -2px;
|
|
174
|
+
}
|
|
175
|
+
|
|
124
176
|
.astryx-selector:has(.astryx-selector-value.is-rich) .astryx-selector-field {
|
|
125
177
|
height: auto;
|
|
126
178
|
min-height: var(--astryx-input-height-md, 32px);
|
package/styles/side-nav.css
CHANGED
|
@@ -322,6 +322,25 @@
|
|
|
322
322
|
|
|
323
323
|
.astryx-side-nav-item { width: 100%; }
|
|
324
324
|
|
|
325
|
+
.astryx-side-nav-item__main {
|
|
326
|
+
display: flex;
|
|
327
|
+
align-items: center;
|
|
328
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
329
|
+
min-width: 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.astryx-side-nav-item__main > .astryx-nav-item,
|
|
333
|
+
.astryx-side-nav-item__main > .astryx-side-nav-item {
|
|
334
|
+
flex: 1 1 auto;
|
|
335
|
+
min-width: 0;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.astryx-side-nav-item__actions {
|
|
339
|
+
display: inline-flex;
|
|
340
|
+
flex: none;
|
|
341
|
+
align-items: center;
|
|
342
|
+
}
|
|
343
|
+
|
|
325
344
|
.astryx-side-nav-item__split {
|
|
326
345
|
min-width: 0;
|
|
327
346
|
}
|
package/styles/slider.css
CHANGED
|
@@ -41,14 +41,15 @@
|
|
|
41
41
|
transition: background-color 130ms ease-out;
|
|
42
42
|
}
|
|
43
43
|
.astryx-slider-thumb:dir(rtl) { transform: translate(50%, -50%); }
|
|
44
|
-
.astryx-slider-thumb:focus-visible:not([data-dragging='true']) {
|
|
44
|
+
.astryx-slider-thumb[data-keyboard-focus='true']:focus-visible:not([data-dragging='true']) {
|
|
45
45
|
outline: 2px solid var(--astryx-slider-focus, #262626);
|
|
46
46
|
outline-offset: 3px;
|
|
47
47
|
z-index: 2;
|
|
48
48
|
}
|
|
49
49
|
.astryx-slider-thumb[data-dragging='true'] {
|
|
50
50
|
cursor: grabbing;
|
|
51
|
-
background: color-mix(in srgb, var(--astryx-slider-accent, #262626), var(--astryx-slider-track, #e5e5e5) 20%);
|
|
51
|
+
background-color: color-mix(in srgb, var(--astryx-slider-accent, #262626), var(--astryx-slider-track, #e5e5e5) 20%);
|
|
52
|
+
background-image: var(--_press-paint-image);
|
|
52
53
|
z-index: 2;
|
|
53
54
|
}
|
|
54
55
|
@media (hover: hover) {
|
|
@@ -106,6 +107,6 @@
|
|
|
106
107
|
.astryx-slider-fill,
|
|
107
108
|
.astryx-slider-thumb,
|
|
108
109
|
.astryx-slider-mark[data-filled='true'] { background: Highlight; forced-color-adjust: none; }
|
|
109
|
-
.astryx-slider-thumb:focus-visible { outline-color: Highlight; }
|
|
110
|
+
.astryx-slider-thumb[data-keyboard-focus='true']:focus-visible { outline-color: Highlight; }
|
|
110
111
|
}
|
|
111
112
|
}
|
package/styles/spinner.css
CHANGED
|
@@ -1,125 +1,131 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
|
-
@keyframes astryx-spinner-
|
|
3
|
+
@keyframes astryx-spinner-dash {
|
|
4
4
|
from {
|
|
5
|
-
|
|
5
|
+
stroke-dashoffset: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
to {
|
|
9
|
-
|
|
9
|
+
stroke-dashoffset: calc(var(--_spinner-ring-diameter) * -3.141592653589793);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
@layer astryx.components {
|
|
14
|
+
.astryx-spinner {
|
|
15
|
+
--astryx-spinner-diameter: var(--astryx-spinner-diameter-md, 14px);
|
|
16
|
+
--astryx-spinner-stroke-width: var(--astryx-spinner-stroke-width-md, 3px);
|
|
17
|
+
--astryx-spinner-color: var(--astryx-spinner-color-accent, var(--astryx-color-accent, #262626));
|
|
18
|
+
--astryx-spinner-track-color: var(--astryx-spinner-color-track, var(--astryx-color-track, #ccd3db));
|
|
19
|
+
--astryx-spinner-arc-fraction: 0.375;
|
|
20
|
+
--_spinner-track-opacity: 1;
|
|
21
|
+
--_spinner-ring-diameter: var(--astryx-spinner-diameter);
|
|
22
|
+
--_spinner-ring-stroke: var(--astryx-spinner-stroke-width);
|
|
23
|
+
--_spinner-box-size: calc(var(--_spinner-ring-diameter) + var(--_spinner-ring-stroke) * 2);
|
|
24
|
+
}
|
|
25
|
+
|
|
14
26
|
.astryx-spinner-group {
|
|
15
27
|
box-sizing: border-box;
|
|
16
28
|
display: inline-flex;
|
|
17
29
|
flex-direction: column;
|
|
18
30
|
align-items: center;
|
|
19
|
-
gap: var(--astryx-spinner-group-gap, 8px);
|
|
31
|
+
gap: var(--astryx-spinner-group-gap, var(--astryx-spacing-2, 8px));
|
|
20
32
|
}
|
|
21
33
|
|
|
22
34
|
.astryx-spinner-label {
|
|
23
|
-
color: var(--astryx-spinner-label-color, #171717);
|
|
35
|
+
color: var(--astryx-spinner-label-color, var(--astryx-color-text-primary, #171717));
|
|
24
36
|
font-size: var(--astryx-text-body-size, 0.875rem);
|
|
25
37
|
font-weight: var(--astryx-font-weight-bold, 700);
|
|
26
38
|
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
27
39
|
}
|
|
28
40
|
|
|
29
|
-
.astryx-spinner {
|
|
30
|
-
--_spinner-diameter: var(--astryx-spinner-diameter-md, 14px);
|
|
31
|
-
--_spinner-stroke: var(--astryx-spinner-stroke-width-md, 3px);
|
|
32
|
-
--_spinner-color: var(--astryx-spinner-color-accent, #262626);
|
|
33
|
-
--_spinner-track: var(--astryx-spinner-color-track, #ccd3db);
|
|
34
|
-
--_spinner-track-opacity: 1;
|
|
35
|
-
--_spinner-arc-fraction: var(--astryx-spinner-arc-fraction, 0.375);
|
|
36
|
-
|
|
41
|
+
.astryx-spinner-box {
|
|
37
42
|
box-sizing: content-box;
|
|
38
43
|
display: inline-grid;
|
|
39
44
|
flex-shrink: 0;
|
|
40
45
|
place-items: center;
|
|
41
46
|
vertical-align: middle;
|
|
42
|
-
width: calc(var(--_spinner-diameter) + var(--_spinner-stroke) * 2);
|
|
43
|
-
height: calc(var(--_spinner-diameter) + var(--_spinner-stroke) * 2);
|
|
44
|
-
animation: astryx-spinner-rotate var(--astryx-duration-slow-min, 525ms) linear infinite;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.astryx-spinner[data-size='sm'] {
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
+
--astryx-spinner-diameter: var(--astryx-spinner-diameter-sm, 10px);
|
|
51
|
+
--astryx-spinner-stroke-width: var(--astryx-spinner-stroke-width-sm, 2px);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
.astryx-spinner[data-size='md'] {
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
+
--astryx-spinner-diameter: var(--astryx-spinner-diameter-md, 14px);
|
|
56
|
+
--astryx-spinner-stroke-width: var(--astryx-spinner-stroke-width-md, 3px);
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
.astryx-spinner[data-size='lg'] {
|
|
58
|
-
--
|
|
59
|
-
--
|
|
60
|
+
--astryx-spinner-diameter: var(--astryx-spinner-diameter-lg, 18px);
|
|
61
|
+
--astryx-spinner-stroke-width: var(--astryx-spinner-stroke-width-lg, 3px);
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
.astryx-spinner[data-size='xl'] {
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
+
--astryx-spinner-diameter: var(--astryx-spinner-diameter-xl, 28px);
|
|
66
|
+
--astryx-spinner-stroke-width: var(--astryx-spinner-stroke-width-xl, 4px);
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.astryx-spinner[data-shade='default'] {
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
+
--astryx-spinner-color: var(--astryx-spinner-color-accent, var(--astryx-color-accent, #262626));
|
|
71
|
+
--astryx-spinner-track-color: var(--astryx-spinner-color-track, var(--astryx-color-track, #ccd3db));
|
|
70
72
|
--_spinner-track-opacity: 1;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
.astryx-spinner[data-shade='subtle'] {
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
+
--astryx-spinner-color: var(--astryx-spinner-color-subtle, var(--astryx-color-text-secondary, #525252));
|
|
77
|
+
--astryx-spinner-track-color: var(--astryx-spinner-color-track, var(--astryx-color-track, #ccd3db));
|
|
76
78
|
--_spinner-track-opacity: 1;
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
.astryx-spinner[data-shade='onMedia'] {
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--_spinner-track-opacity:
|
|
82
|
+
--astryx-spinner-color: var(--astryx-spinner-color-on-dark, var(--astryx-color-on-dark, #fff));
|
|
83
|
+
--astryx-spinner-track-color: var(--astryx-spinner-color-on-dark, var(--astryx-color-on-dark, #fff));
|
|
84
|
+
--_spinner-track-opacity: calc(77 / 255);
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
.astryx-spinner[data-shade='inherit'] {
|
|
86
|
-
--
|
|
87
|
-
--
|
|
88
|
+
--astryx-spinner-color: currentcolor;
|
|
89
|
+
--astryx-spinner-track-color: currentcolor;
|
|
88
90
|
--_spinner-track-opacity: 0.3;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
.astryx-spinner__ring {
|
|
92
94
|
display: block;
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
95
|
+
width: var(--_spinner-box-size, 100%);
|
|
96
|
+
height: var(--_spinner-box-size, 100%);
|
|
95
97
|
overflow: visible;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
100
|
.astryx-spinner__track,
|
|
99
101
|
.astryx-spinner__arc {
|
|
100
102
|
fill: none;
|
|
101
|
-
r: calc(var(--_spinner-diameter) / 2);
|
|
102
|
-
stroke-width: var(--_spinner-stroke);
|
|
103
|
+
r: calc(var(--_spinner-ring-diameter) / 2);
|
|
104
|
+
stroke-width: var(--_spinner-ring-stroke);
|
|
103
105
|
stroke-linecap: round;
|
|
104
106
|
transform-box: fill-box;
|
|
105
107
|
transform-origin: center;
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
.astryx-spinner__track {
|
|
109
|
-
stroke: var(--
|
|
111
|
+
stroke: var(--astryx-spinner-track-color);
|
|
110
112
|
stroke-opacity: var(--_spinner-track-opacity);
|
|
111
113
|
}
|
|
112
114
|
|
|
113
115
|
.astryx-spinner__arc {
|
|
114
|
-
stroke: var(--
|
|
116
|
+
stroke: var(--astryx-spinner-color);
|
|
115
117
|
transform: rotate(-90deg);
|
|
116
118
|
stroke-dasharray:
|
|
117
|
-
calc(var(--_spinner-diameter) * 3.
|
|
118
|
-
calc(var(--_spinner-diameter) * 3.
|
|
119
|
+
calc(var(--_spinner-ring-diameter) * 3.141592653589793 * var(--astryx-spinner-arc-fraction))
|
|
120
|
+
calc(var(--_spinner-ring-diameter) * 3.141592653589793 * (1 - var(--astryx-spinner-arc-fraction)));
|
|
121
|
+
animation-name: astryx-spinner-dash;
|
|
122
|
+
animation-duration: var(--astryx-duration-slow-min, 525ms);
|
|
123
|
+
animation-timing-function: linear;
|
|
124
|
+
animation-iteration-count: infinite;
|
|
119
125
|
}
|
|
120
126
|
|
|
121
127
|
@media (prefers-reduced-motion: reduce) {
|
|
122
|
-
.astryx-
|
|
128
|
+
.astryx-spinner__arc {
|
|
123
129
|
animation-duration: 3s;
|
|
124
130
|
}
|
|
125
131
|
}
|
package/styles/stepper.css
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.astryx-stepper-frame {
|
|
9
|
+
--astryx-step-connector-gap: 0px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.astryx-stepper {
|
|
13
|
+
--astryx-step-connector-gap: inherit;
|
|
14
|
+
}
|
|
15
|
+
|
|
8
16
|
.astryx-stepper-root[data-collapsed] {
|
|
9
17
|
display: flex;
|
|
10
18
|
flex-direction: column;
|
|
@@ -57,6 +65,14 @@
|
|
|
57
65
|
gap: var(--astryx-spacing-2, 8px);
|
|
58
66
|
}
|
|
59
67
|
|
|
68
|
+
/* 控件和内容合成一列:竖向流程里内容落在标签下面,而不是被排到标签右边。 */
|
|
69
|
+
.astryx-step-body {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex: 1 1 auto;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
min-width: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
.astryx-step[data-density='compact'] { --_step-space: var(--astryx-spacing-1, 4px); }
|
|
61
77
|
.astryx-step[data-density='balanced'] { --_step-space: var(--astryx-spacing-2, 8px); }
|
|
62
78
|
.astryx-step[data-density='spacious'] { --_step-space: var(--astryx-spacing-3, 12px); }
|
|
@@ -108,11 +124,36 @@
|
|
|
108
124
|
}
|
|
109
125
|
|
|
110
126
|
.astryx-step-connector {
|
|
127
|
+
--_step-connector-gap: max(0px, min(var(--astryx-step-connector-gap, 0px), var(--astryx-spacing-2, 8px)));
|
|
111
128
|
flex: 1 1 auto;
|
|
112
129
|
min-width: var(--astryx-spacing-2, 8px);
|
|
113
130
|
border-radius: 0;
|
|
114
131
|
}
|
|
115
132
|
|
|
133
|
+
.astryx-step[data-orientation='vertical'][data-indicator-position='on-track']:not([data-glyph='none']) .astryx-step-connector-lead {
|
|
134
|
+
clip-path: inset(0 0 var(--_step-connector-gap) 0);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.astryx-step[data-orientation='vertical'][data-indicator-position='on-track']:not([data-glyph='none']) .astryx-step-connector-trail {
|
|
138
|
+
clip-path: inset(var(--_step-connector-gap) 0 0 0);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.astryx-step[data-orientation='horizontal'][data-indicator-position='on-track']:not([data-glyph='none']) .astryx-step-connector-lead {
|
|
142
|
+
clip-path: inset(0 var(--_step-connector-gap) 0 0);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.astryx-step[data-orientation='horizontal'][data-indicator-position='on-track']:not([data-glyph='none']) .astryx-step-connector-trail {
|
|
146
|
+
clip-path: inset(0 0 0 var(--_step-connector-gap));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:is([dir='rtl'] .astryx-step[data-orientation='horizontal'][data-indicator-position='on-track']:not([data-glyph='none'])) .astryx-step-connector-lead {
|
|
150
|
+
clip-path: inset(0 0 0 var(--_step-connector-gap));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:is([dir='rtl'] .astryx-step[data-orientation='horizontal'][data-indicator-position='on-track']:not([data-glyph='none'])) .astryx-step-connector-trail {
|
|
154
|
+
clip-path: inset(0 var(--_step-connector-gap) 0 0);
|
|
155
|
+
}
|
|
156
|
+
|
|
116
157
|
.astryx-step[data-orientation='horizontal'] .astryx-step-connector {
|
|
117
158
|
height: var(--astryx-spacing-1, 4px);
|
|
118
159
|
}
|
|
@@ -150,13 +191,21 @@
|
|
|
150
191
|
}
|
|
151
192
|
|
|
152
193
|
@media (hover: hover) {
|
|
153
|
-
button.astryx-step-control:hover {
|
|
194
|
+
button.astryx-step-control:where(:not(:disabled, [aria-disabled='true'])):hover {
|
|
154
195
|
background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
|
|
155
196
|
}
|
|
156
197
|
}
|
|
157
198
|
|
|
158
|
-
|
|
159
|
-
|
|
199
|
+
@media not all and (pointer: coarse) {
|
|
200
|
+
button.astryx-step-control:where(:not(:disabled, [aria-disabled='true'])):active {
|
|
201
|
+
background: var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
button.astryx-step-control[data-astryx-press='on'],
|
|
206
|
+
button.astryx-step-control[data-astryx-press='fading'] {
|
|
207
|
+
background-color: transparent;
|
|
208
|
+
background-image: var(--_press-paint-image);
|
|
160
209
|
}
|
|
161
210
|
|
|
162
211
|
button.astryx-step-control:focus-visible {
|
|
@@ -255,6 +304,11 @@
|
|
|
255
304
|
padding-block-start: var(--astryx-spacing-2, 8px);
|
|
256
305
|
}
|
|
257
306
|
|
|
307
|
+
/* 竖向的内容跟标签左对齐:缩进 = 控件内边距 + 指示点宽度和间距。 */
|
|
308
|
+
.astryx-step[data-orientation='vertical'] .astryx-step-content {
|
|
309
|
+
padding-inline: calc(var(--_step-space) + var(--astryx-spacing-4, 16px) + var(--astryx-spacing-2, 8px)) var(--_step-space);
|
|
310
|
+
}
|
|
311
|
+
|
|
258
312
|
.astryx-step[data-orientation='horizontal'][data-indicator-position='separated'] .astryx-step-control {
|
|
259
313
|
align-items: center;
|
|
260
314
|
}
|
|
@@ -340,7 +394,7 @@
|
|
|
340
394
|
|
|
341
395
|
.astryx-stepper-nav:disabled {
|
|
342
396
|
opacity: 0.4;
|
|
343
|
-
cursor:
|
|
397
|
+
cursor: default;
|
|
344
398
|
}
|
|
345
399
|
|
|
346
400
|
@container astryx-stepper (max-width: 480px) {
|
package/styles/switch.css
CHANGED
|
@@ -58,6 +58,32 @@
|
|
|
58
58
|
cursor: default;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
@media not all and (pointer: coarse) {
|
|
62
|
+
.astryx-switch:not([data-blocked='true']) .astryx-switch-row:active .astryx-switch-track,
|
|
63
|
+
.astryx-switch:not([data-blocked='true']) .astryx-switch-row:active .astryx-switch-thumb {
|
|
64
|
+
background-image: linear-gradient(var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19)), var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19)));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.astryx-switch-row[data-astryx-press] .astryx-switch-track,
|
|
69
|
+
.astryx-switch-row[data-astryx-press] .astryx-switch-thumb {
|
|
70
|
+
background-image: var(--_press-paint-image);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (pointer: coarse) {
|
|
74
|
+
.astryx-switch-control {
|
|
75
|
+
min-width: 24px;
|
|
76
|
+
min-height: 24px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.astryx-switch-native {
|
|
80
|
+
inset: 50% auto auto 50%;
|
|
81
|
+
width: max(100%, 24px);
|
|
82
|
+
height: max(100%, 24px);
|
|
83
|
+
transform: translate(-50%, -50%);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
61
87
|
.astryx-switch-track {
|
|
62
88
|
box-sizing: border-box;
|
|
63
89
|
position: relative;
|
package/styles/tab-list.css
CHANGED
|
@@ -21,11 +21,129 @@
|
|
|
21
21
|
padding: 0;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/*
|
|
25
|
+
* 滚动容器在内边距盒处裁切,而焦点环和选中下划线都画在标签自己的盒子外面。
|
|
26
|
+
* 条用同样大小的内边距撑出去、再用负外边距收回来,什么都不会被裁,标签也不挪位。
|
|
27
|
+
* 焦点环那一份只在条里真的画着焦点环时才留,平时条和 TabList 一样大。
|
|
28
|
+
*/
|
|
29
|
+
.astryx-tab-list__strip--scroll {
|
|
30
|
+
--_tab-strip-bleed: 0px;
|
|
31
|
+
--_tab-strip-edge-inset: calc(var(--_tab-strip-bleed) + var(--astryx-spacing-8, 32px));
|
|
32
|
+
--_tab-strip-block-end-bleed: max(var(--_tab-strip-bleed), calc(-1 * var(--_tab-indicator-bottom, 0px)));
|
|
33
|
+
align-self: flex-start;
|
|
34
|
+
overflow-x: auto;
|
|
35
|
+
overflow-y: hidden;
|
|
36
|
+
overscroll-behavior-x: contain;
|
|
37
|
+
scroll-behavior: smooth;
|
|
38
|
+
scroll-padding-inline: var(--_tab-strip-edge-inset);
|
|
39
|
+
scrollbar-width: none;
|
|
40
|
+
padding-block: var(--_tab-strip-bleed) var(--_tab-strip-block-end-bleed);
|
|
41
|
+
margin-block: calc(-1 * var(--_tab-strip-bleed)) calc(-1 * var(--_tab-strip-block-end-bleed));
|
|
42
|
+
padding-inline: var(--_tab-strip-bleed);
|
|
43
|
+
margin-inline: calc(-1 * var(--_tab-strip-bleed));
|
|
44
|
+
mask-image: none;
|
|
45
|
+
transition: mask-image var(--astryx-duration-medium, 240ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.astryx-tab-list__strip--scroll:has(:focus-visible) {
|
|
49
|
+
--_tab-strip-bleed: 4px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.astryx-tab-list__strip--scroll::-webkit-scrollbar {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (prefers-reduced-motion: reduce) {
|
|
57
|
+
.astryx-tab-list__strip--scroll {
|
|
58
|
+
scroll-behavior: auto;
|
|
59
|
+
transition-duration: 0ms;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* 渐隐在条自己的边上就到透明,不画到血边外面,也不压到箭头底下。 */
|
|
64
|
+
.astryx-tab-list__strip--fade-start {
|
|
65
|
+
mask-image: linear-gradient(to right, transparent var(--_tab-strip-bleed), #000 var(--_tab-strip-edge-inset));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.astryx-tab-list__strip--fade-end {
|
|
69
|
+
mask-image: linear-gradient(to left, transparent var(--_tab-strip-bleed), #000 var(--_tab-strip-edge-inset));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[dir='rtl'] .astryx-tab-list__strip--fade-start {
|
|
73
|
+
mask-image: linear-gradient(to left, transparent var(--_tab-strip-bleed), #000 var(--_tab-strip-edge-inset));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[dir='rtl'] .astryx-tab-list__strip--fade-end {
|
|
77
|
+
mask-image: linear-gradient(to right, transparent var(--_tab-strip-bleed), #000 var(--_tab-strip-edge-inset));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.astryx-tab-list__strip--fade-both {
|
|
81
|
+
mask-image: linear-gradient(
|
|
82
|
+
to right,
|
|
83
|
+
transparent var(--_tab-strip-bleed),
|
|
84
|
+
#000 var(--_tab-strip-edge-inset),
|
|
85
|
+
#000 calc(100% - var(--_tab-strip-edge-inset)),
|
|
86
|
+
transparent calc(100% - var(--_tab-strip-bleed))
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* 箭头只给能悬停的指针用。键盘和读屏用方向键走,焦点项会自己滚进来。 */
|
|
91
|
+
.astryx-tab-scroll-button {
|
|
92
|
+
position: absolute;
|
|
93
|
+
z-index: 1;
|
|
94
|
+
inset-block-start: 0;
|
|
95
|
+
display: none;
|
|
96
|
+
align-items: center;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
width: var(--astryx-size-element-md, 32px);
|
|
99
|
+
height: var(--astryx-size-element-md, 32px);
|
|
100
|
+
padding: 0;
|
|
101
|
+
border: 0;
|
|
102
|
+
border-radius: 9999px;
|
|
103
|
+
background-color: var(--astryx-color-background-popover, light-dark(#fff, #262626));
|
|
104
|
+
box-shadow: var(--astryx-shadow-low, 0 1px 2px #0000001f);
|
|
105
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (hover: hover) {
|
|
110
|
+
.astryx-tab-scroll-button {
|
|
111
|
+
display: inline-flex;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.astryx-tab-scroll-button:hover {
|
|
115
|
+
color: var(--astryx-color-text-primary, #171717);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.astryx-tab-list--size-sm .astryx-tab-scroll-button {
|
|
120
|
+
width: var(--astryx-size-element-sm, 28px);
|
|
121
|
+
height: var(--astryx-size-element-sm, 28px);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.astryx-tab-list--size-lg .astryx-tab-scroll-button {
|
|
125
|
+
width: var(--astryx-size-element-lg, 36px);
|
|
126
|
+
height: var(--astryx-size-element-lg, 36px);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.astryx-tab-scroll-button--start { inset-inline-start: 0; }
|
|
130
|
+
.astryx-tab-scroll-button--end { inset-inline-end: 0; }
|
|
131
|
+
|
|
132
|
+
.astryx-tab-scroll-button:focus-visible {
|
|
133
|
+
outline: 2px solid var(--astryx-color-text-primary, #171717);
|
|
134
|
+
outline-offset: 2px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[dir='rtl'] .astryx-tab-scroll-button__icon {
|
|
138
|
+
transform: scaleX(-1);
|
|
139
|
+
}
|
|
140
|
+
|
|
24
141
|
.astryx-tab-list--layout-fill .astryx-tab-list__strip {
|
|
25
142
|
width: 100%;
|
|
26
143
|
}
|
|
27
144
|
|
|
28
145
|
.astryx-tab-list--has-divider {
|
|
146
|
+
--_tab-indicator-bottom: calc(-1 * var(--astryx-spacing-1, 4px));
|
|
29
147
|
border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border-emphasized, #d4d4d4);
|
|
30
148
|
padding-bottom: var(--astryx-spacing-1, 4px);
|
|
31
149
|
}
|
|
@@ -41,8 +159,8 @@
|
|
|
41
159
|
}
|
|
42
160
|
|
|
43
161
|
.astryx-tab-list--full-bleed .astryx-tab-list__strip {
|
|
44
|
-
padding-inline-start: max(var(--container-padding-inline-start, 0px) - var(--astryx-spacing-3, 12px), 0px);
|
|
45
|
-
padding-inline-end: max(var(--container-padding-inline-end, 0px) - var(--astryx-spacing-3, 12px), 0px);
|
|
162
|
+
padding-inline-start: calc(var(--_tab-strip-bleed, 0px) + max(var(--container-padding-inline-start, 0px) - var(--astryx-spacing-3, 12px), 0px));
|
|
163
|
+
padding-inline-end: calc(var(--_tab-strip-bleed, 0px) + max(var(--container-padding-inline-end, 0px) - var(--astryx-spacing-3, 12px), 0px));
|
|
46
164
|
}
|
|
47
165
|
|
|
48
166
|
.astryx-tab {
|
|
@@ -88,6 +206,17 @@
|
|
|
88
206
|
background-color: color-mix(in srgb, currentColor 6%, transparent);
|
|
89
207
|
}
|
|
90
208
|
|
|
209
|
+
/* 鼠标按下才用 :active。粗指针改看按压模型写的 data-astryx-press,滚动时不会误亮。 */
|
|
210
|
+
@media not all and (pointer: coarse) {
|
|
211
|
+
.astryx-tab:active:not(:disabled, [aria-disabled='true']) {
|
|
212
|
+
background-color: var(--astryx-color-overlay-pressed, color-mix(in srgb, currentColor 12%, transparent));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.astryx-tab[data-astryx-press]:not(:disabled, [aria-disabled='true']) {
|
|
217
|
+
background-image: var(--_press-paint-image);
|
|
218
|
+
}
|
|
219
|
+
|
|
91
220
|
.astryx-tab--selected {
|
|
92
221
|
color: var(--astryx-color-text-primary, #171717);
|
|
93
222
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
@@ -105,7 +234,7 @@
|
|
|
105
234
|
}
|
|
106
235
|
|
|
107
236
|
.astryx-tab-list--has-divider .astryx-tab--selected::after {
|
|
108
|
-
bottom:
|
|
237
|
+
bottom: var(--_tab-indicator-bottom);
|
|
109
238
|
}
|
|
110
239
|
|
|
111
240
|
.astryx-tab:disabled,
|