@astryx-vue/core 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-VD9PadlM.js → AlertDialog-DXOTr1D7.js} +4 -4
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-C4XGguw0.js → AppShell-Cmu6bMY6.js} +63 -23
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CAweS1WY.js → Avatar-dMcn3j8Z.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DnK7bKAb.js → Banner-CTY9qV89.js} +2 -2
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-CM0-eaUF.js → BottomSheet-DyJJtZZU.js} +5 -5
- package/dist/{BottomSheet-C4OU3mJT.js → BottomSheet-ZOjuZya0.js} +3 -3
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DZAgtC9c.js → Breadcrumbs-Nv-089W0.js} +2 -2
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Blnc0yB3.js → Button-TiYG0btL.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +3 -2
- package/dist/Calendar-B6TZYEge.js +105 -0
- package/dist/{Calendar-ydp0vJdO.js → Calendar-CUMnYIhe.js} +182 -257
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-BbKFHWuD.js → Card-D_OJxmwD.js} +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CB4Iap-B.js → Carousel-DsXup1mZ.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DjJPQ9bX.js → Chat-DqYT_S9M.js} +7 -6
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CGTPmOHs.js → CheckboxInput-FKfsoLcl.js} +17 -7
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CGzHkA95.js → CheckboxList-DuSVBtMk.js} +22 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CSgRYxGU.js → Citation-Ijf06x0V.js} +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DMX5z-QV.js → ClickableCard-dNmSVHBu.js} +2 -2
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-rmiC0XfO.js → Code-5rZyPwty.js} +1 -1
- package/dist/{CodeBlock-CwQCMSKA.js → CodeBlock-5KoJDvWd.js} +3 -3
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BVoNZijw.js → Collapsible-B1qW6OuL.js} +3 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DBOETNGM.js → CommandPalette-B2riNg_7.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CNBH2t6W.js → ComplexSelector-C4CO8Fd2.js} +5 -5
- package/dist/{ComponentIcon-BRXBBKeG.js → ComponentIcon-Dw4xQxg3.js} +3 -3
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CUwAPrVP.js → ContextMenu-SzsWZf18.js} +7 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BQ-3bvV5.js → DateInput-D9Jv70H7.js} +1210 -108
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DFXz4vNX.js → DateRangeInput-BsB2kg_q.js} +75 -55
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BHO4nXKW.js → DateTimeInput-BDyKPKGD.js} +26 -13
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dx6zuttb.js → Dialog-DUlWQH8R.js} +1 -1
- package/dist/{Dialog-BCPhWMxL.js → Dialog-JCB5s-T-.js} +4 -4
- package/dist/{DialogHeader-C9fp2Rti.js → DialogHeader-C6hZZxdv.js} +3 -3
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer--2vLSKY_.js → Drawer-BDuiw1-g.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-CskkQAAz.js → DropdownMenu-BhxKnh6D.js} +10 -10
- package/dist/{DropdownMenu-BImEVieZ.js → DropdownMenu-Der2x_k_.js} +7 -7
- package/dist/{DropdownMenuRadioItem.vue-C9DdN6UE.d.ts → DropdownMenuRadioItem.vue-DINRx71W.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-Dq3NWNnG.js → EmptyState-CnFkYtcS.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DsucLkyQ.js → Field-D4UmRHlD.js} +2 -2
- package/dist/{FieldIcon-DMtfe1Ne.js → FieldIcon-BU1ZWAuo.js} +1 -1
- package/dist/{FieldInfoTip-1zW3QTQG.js → FieldInfoTip-BSqcEcUx.js} +2 -2
- package/dist/{FieldLabel-D9uFPtXs.js → FieldLabel-CZbayYFD.js} +2 -2
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-DSUCli4W.js → FieldStatus-DmCWPT6U.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLtHinlh.js → FileInput-8oYiJsq_.js} +4 -4
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-C0mp7fha.js → Grid-DTnDDT0Q.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-DBBChghq.js → Heading-COtyAhtB.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-BW-bOUZI.js → HoverCard-DGlOpk4x.js} +4 -4
- package/dist/Icon/index.js +3 -3
- package/dist/{Icon-BCHo7W0x.js → Icon-Dk0jccgU.js} +2 -1
- package/dist/{Icon-B2aULLnn.js → Icon-M1Rlknd0.js} +2 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CIUbkA8_.js → IconButton-CwjHTIBg.js} +1 -1
- 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-C71T8lv_.js → InfoTip-CNZateDb.js} +2 -2
- package/dist/{InputClearButton-h0BxBXu1.js → InputClearButton-CzCP41sx.js} +2 -2
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DHPTru5v.js → InputGroup-CfUGHDNz.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-Ddo_-tLK.js → InternationalizationProvider-DaZS5Dch.js} +5 -2
- package/dist/{LayerContentBoundary-DxeAFxNJ.js → LayerContentBoundary-LCQLyxBT.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-DP2vrvTv.js → Layout-DOIeCgs4.js} +2 -2
- package/dist/{LayoutPanel-DuroKU_A.js → LayoutPanel-C7Wsid2W.js} +34 -14
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-B3WP06Qt.js → Lightbox-Dzzd2Vqe.js} +4 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CQK9d_Yf.js → Link-B7OJQ0zl.js} +2 -2
- package/dist/List/index.d.ts +2 -2
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Bc4snKv8.js → ListItem-gj_lOvEt.js} +4 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BVXFWJT0.js → Markdown-Cbj-nqhN.js} +4 -4
- package/dist/{MediaTheme-DfcdEWx-.js → MediaTheme-UM8oOqwX.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-DGZPwsf9.js → MobileNavToggle-BlcdCg8M.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Q_KpDTNB.js → MoreMenu-Dokwc4Mg.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CzGsdjcl.js → MultiSelector-CId8-qAX.js} +13 -12
- package/dist/{NavDisclosure-DIYayUrP.js → NavDisclosure-CqAThYgR.js} +1 -1
- package/dist/{NavHeadingSurface-bFcFpeMI.js → NavHeadingSurface-DJ4pWvEi.js} +2 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-CB3loauj.js → NavItem-_eIEwV41.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-DYvMKPU_.js → NavMenu-BtA_Xbmr.js} +3 -3
- package/dist/{NavMenuItem-Ccix-agv.js → NavMenuItem-BxfjAf1T.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DTksMfSU.js → NumberInput-Bl5TFhGD.js} +5 -5
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DKM7TeUs.js → OverflowList-CumJl6X_.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B-O21ut1.js → Pagination-C0Bx80Tu.js} +3 -3
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BtfsoxXC.js → Popover-DpR4rwiW.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CniqThU7.js → PowerSearch-Dq6Gi9z1.js} +35 -34
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DOusesCL.js → ProgressBar-Dp-0xquN.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CRwMwMw4.js → RadioGroup-IKBXLzYU.js} +30 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-PUlENMq5.js → RadioList-NW4fGKgm.js} +4 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-4-krI-cQ.js → ResizeHandle-BMSbAFdP.js} +43 -27
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-DFUYTOVH.js → SegmentedControl-DRxcUlVP.js} +71 -4
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-DUTtyApJ.js → SelectableCard-Dp-LsEcf.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-Qs1rFiI6.js → Selector-BW_oxWDM.js} +10 -10
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BUfUwE2P.js → SideNav-B5mMRj98.js} +9 -59
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-BbiQbyie.js → Slider-oD3AY4jh.js} +66 -22
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DhfcDBE7.js → StatusDot-B3oOyRF7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CQd4YlPC.js → Stepper-CgOdL36_.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CMK5bICl.js → Switch-DG_A9cD0.js} +7 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bd3h7Nj3.js → TabList-FkoypUk0.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DN9mo-cQ.js → Table-zNW23VwP.js} +16 -16
- package/dist/Text/index.js +1 -1
- package/dist/{Text-Dez23ltM.js → Text-v1ep26uD.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BsGUOyDg.js → TextArea-BilHnmSs.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-DZi0EMh-.js → TextInput-D6tHM2sA.js} +4 -4
- package/dist/Theme/index.js +3 -2
- package/dist/{Theme-1RJVaRgz.js → Theme-BmTbbiAD.js} +6 -22
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CsmF1HTP.js → Thumbnail-llGdnQM8.js} +3 -3
- package/dist/{TimeField-DqOPj5s2.js → TimeField-C5rcoaVu.js} +7 -7
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CA3kXBWB.js → TimeInput-D0N8nwrI.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-vubjQ88x.js → Timer-65PfuoQ7.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +2 -2
- package/dist/{Timestamp-Cz_0Ofj4.js → Timestamp-rYC8mE3r.js} +20 -12
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DhJNtBjT.js → Toast-BtQ-4Y6Z.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BR_qVBEt.js → ToggleButton-Bnn_MiOn.js} +10 -4
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CPNzkSj3.js → Token-B-j3AKxB.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-C3pXgLmC.js → Tokenizer-Cpdy_L00.js} +7 -6
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-B4Vltu-j.js → Toolbar-DSWH8ll4.js} +25 -2
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BUHvOnE1.js → Tooltip-CByjfHBZ.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-klsRhS-I.js → TopNav-q8xDVlM_.js} +7 -7
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-DJQvL5tG.js → TreeList-CEGInQtF.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BaPqX3Ey.js → Typeahead-C-PdRnRQ.js} +7 -7
- package/dist/adaptationTypes-Beao49TN.js +19 -0
- package/dist/{assertOptions-DF9pum-3.js → assertOptions-og3t30Fh.js} +2 -1
- package/dist/calendar-C7py_wtb.js +351 -0
- package/dist/calendarFormat-_CEZIMZG.js +123 -0
- package/dist/{componentIcons-CFr2L6o3.js → componentIcons-BBJqmilP.js} +1 -1
- package/dist/composables/index.js +11 -11
- package/dist/{composables-BDWdSCwe.js → composables-COCeg92e.js} +2 -2
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/{context-CjX2RSDn.js → context-D-Hwh-Jf.js} +1 -1
- package/dist/{date-input-rUD8YAow.js → date-input-CRdc2H3c.js} +6 -2
- package/dist/{disabledInteraction-CPzL8kVP.js → disabledInteraction-Bqoyhoss.js} +9 -1
- package/dist/focusLeaving-Dqm8Yj4T.js +53 -0
- package/dist/{focusReturn-CsEp47Wa.js → focusReturn-C1cFL3WM.js} +1 -1
- package/dist/{format-mffyPc-L.js → format-6G9QuGy1.js} +12 -4
- package/dist/{formatInstant-BDWUIxS7.js → formatInstant-CjCwl6JS.js} +8 -6
- package/dist/{index-DogWVRJi.d.ts → index-0RIgvtdm.d.ts} +1 -1
- package/dist/{index-D0MA9x_i.d.ts → index-85RFPeV0.d.ts} +5 -5
- package/dist/{index-C3FgFPrM.d.ts → index-BDJQW9cW.d.ts} +10 -10
- package/dist/{index-rzkX36wM.d.ts → index-BWcZ-L80.d.ts} +2 -2
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-BTljzczH.d.ts → index-C-kIxNCq.d.ts} +8 -11
- package/dist/{index-CG3fD4hw.d.ts → index-C2HVLdNb.d.ts} +9 -7
- package/dist/{index-DDrL_-hJ.d.ts → index-CBOv5j3c.d.ts} +2 -2
- package/dist/{index-BvW0tiei.d.ts → index-CH-xSiJz.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
- package/dist/{index-GgHVkJtB.d.ts → index-CRtGmCHi.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
- package/dist/{index-BdZCLUgY.d.ts → index-CnVjgLP5.d.ts} +9 -1
- package/dist/{index-BhxqUt3y.d.ts → index-CuW4AQ7M.d.ts} +2 -2
- package/dist/{index--CtH4lQr.d.ts → index-CyMStZq4.d.ts} +4 -4
- package/dist/{index-B1eCxBCY.d.ts → index-DCyYldjP.d.ts} +7 -1
- package/dist/{index-BlhbRf58.d.ts → index-DDVCVpnG.d.ts} +1 -1
- package/dist/{index-BrMtj1lT.d.ts → index-DGXCnzOL.d.ts} +4 -4
- package/dist/{index-CAKT4Kkz.d.ts → index-DRDOArzq.d.ts} +242 -68
- package/dist/{index-fd--aE4B.d.ts → index-DbNGGCM0.d.ts} +4 -3
- package/dist/{index-BkxWKIV_.d.ts → index-HULXozsK.d.ts} +6 -6
- package/dist/{index-CO9GW-ik.d.ts → index-Q1oG9yIT.d.ts} +1 -1
- package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-CQ-sq76o.d.ts → index-_FjbcSgD.d.ts} +8 -2
- package/dist/{index-DMN_JVEt.d.ts → index-etx25Eq-.d.ts} +4 -3
- package/dist/{index-BmXk_doE.d.ts → index-lmd9LZKB.d.ts} +3 -3
- package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +36 -36
- package/dist/index.js +122 -121
- package/dist/inputPresentation-DES0JwkL.js +203 -0
- package/dist/interactionModality-CedLz5PC.js +130 -0
- package/dist/{interactionModality-CyU67ucP.js → layerDepth-D3Rh8T5C.js} +1 -130
- package/dist/{layerFocusReturn-BeCsk_4F.js → layerFocusReturn-KvH6DMFT.js} +1 -1
- package/dist/{loadCatalog-DsEKSY3U.js → loadCatalog-BeQt6Uq-.js} +9 -1
- package/dist/{loadCatalog-C4h9SmJs.d.ts → loadCatalog-C8mRnC0E.d.ts} +5 -1
- package/dist/locale/index.d.ts +4 -4
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C-Y-13BP.js → locale-B4FpGKpc.js} +6 -2
- package/dist/{dateParser-BKoaawL9.js → plainDate-CaTDErKr.js} +1 -132
- package/dist/{power-search-CqcsJT1F.d.ts → power-search-CuMzfLwW.d.ts} +13 -1
- package/dist/resizableChannel-LElsNkSY.js +33 -0
- package/dist/{stillPointerGate-BX4vr5M-.js → stillPointerGate-1Tgkns0J.js} +1 -1
- package/dist/{themeIcons-CqGF0fwW.js → themeIcons-1O7ymucc.js} +1 -7
- package/dist/{tooltipFocusRules-BnZ1zwAm.js → tooltipFocusRules-vIH7PZh1.js} +3 -2
- package/dist/{tooltipTriggerRules-BLBEkBcK.js → tooltipTriggerRules-DoBAbfGc.js} +1 -1
- package/dist/{triggerVariant-BDVvyLtv.js → triggerVariant-DG0VhG-X.js} +1 -1
- package/dist/{types-Dxs5rf-2.d.ts → types-Gw2OjSK9.d.ts} +9 -9
- package/dist/useCalendarGrid-0WvxbeFC.js +179 -0
- package/dist/{useCombobox-DcBbaWYj.js → useCombobox-BqkTY3bw.js} +1 -1
- package/dist/{useDismiss-C1dyveme.js → useDismiss-CMIsdIOQ.js} +1 -1
- package/dist/{useFocusTrap-DAKJJP0Z.js → useFocusTrap-DTz_d7IP.js} +3 -2
- package/dist/{useIndicator--9mGGlT2.js → useIndicator-PFDBNOvX.js} +2 -2
- package/dist/{useInputStatusIcon-BDWAijXe.js → useInputStatusIcon-CrgeMzrf.js} +2 -2
- package/dist/{useMenuDrillIn-RZwY55RM.js → useMenuDrillIn-CQrzwZvx.js} +2 -2
- package/dist/{useMenuPress-3203ryBY.js → useMenuPress-wqRDvUMW.js} +2 -2
- package/dist/{useResizable-wZU54yCO.js → useResizable-hv4NYIUi.js} +6 -3
- package/dist/{useRestoreFocus-v8-FFcQQ.js → useRestoreFocus-BxooFhas.js} +2 -2
- package/dist/{useTooltip-0_wOd0e5.js → useTooltip-BwqzEtoF.js} +5 -5
- package/dist/{useTouchTriggerInternal-DwzthF8T.js → useTouchTriggerInternal-Bdm_M4aa.js} +2 -1
- package/dist/{useTruncationTooltip-BDIe7-ya.js → useTruncationTooltip-CRhoPzeu.js} +4 -4
- package/dist/{useTypeahead-BlqvS9x9.js → useTypeahead-BGpvWkzm.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-CIf9Ep57.js → useTypeaheadMenuConfig-GvdIymRg.js} +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/package.json +1 -1
- package/reset.css +0 -19
- package/styles/app-shell.css +88 -7
- package/styles/aspect-ratio.css +4 -3
- package/styles/checkbox-list.css +5 -0
- package/styles/collapsible.css +1 -0
- package/styles/layout.css +22 -5
- package/styles/radio-indicator.css +2 -2
- package/styles/radio.css +25 -0
- package/styles/resize-handle.css +64 -35
- package/styles/scrollable-area.css +13 -0
- package/styles/segmented-control.css +46 -1
- package/styles/slider.css +8 -2
- package/styles/switch.css +2 -1
- package/styles/toggle-button.css +3 -0
- package/styles/toolbar.css +39 -3
- package/dist/inputPresentation-BOyHkCDr.js +0 -62
- package/dist/resizableChannel-3vivrEcT.js +0 -20
- package/dist/{Item-CzKm9wxQ.js → Item-DyaYlbyE.js} +1 -1
package/dist/utils/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../saf
|
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
|
|
3
3
|
import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
|
|
4
4
|
import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
|
|
5
|
-
import { A as
|
|
6
|
-
import { a as
|
|
5
|
+
import { A as plainDateSetFirstOfMonth, C as plainDateIsAfter, D as plainDateMax, E as plainDateIsInRange, F as plainDateToday, I as plainDateWeekFieldName, M as plainDateToDate, N as plainDateToISO, O as plainDateMin, P as plainDateToInstant, S as plainDateGetWeekNumber, T as plainDateIsEqual, _ as plainDateDiffDays, a as DATE_FORMAT_SHORT_WITH_WEEKDAY, b as plainDateFromISO, c as DATE_FORMAT_WITH_WEEKDAY, d as getDaysInMonth, f as getTimeZoneParts, g as plainDateDayOfWeek, h as plainDateCreate, i as DATE_FORMAT_SHORT, j as plainDateSetStartOfWeek, k as plainDateSetEndOfWeekExclusive, l as SHARED_DATE_FORMAT_OPTIONS, m as plainDateAddMonths, n as DATE_FORMAT_MONTH_ONLY, o as DATE_FORMAT_SHORT_WITH_YEAR, p as plainDateAddDays, r as DATE_FORMAT_MONTH_YEAR, s as DATE_FORMAT_WEEKDAY_ONLY, t as DATE_FORMAT_LONG, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, x as plainDateFromInstant, y as plainDateFromDate } from "../plainDate-CaTDErKr.js";
|
|
6
|
+
import { a as pickerPresentationFromNativePicker, c as resolvePickerPresentation, i as effectivePickerPresentation, l as isLocaleDayFirst, o as presentationFromNativePicker, r as effectiveInputPresentation, s as resolveInputPresentation, t as DEFAULT_INPUT_PRESENTATION, u as parseDateInput } from "../inputPresentation-DES0JwkL.js";
|
|
7
7
|
import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-BW62BpDR.js";
|
|
8
8
|
export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize };
|
package/package.json
CHANGED
package/reset.css
CHANGED
|
@@ -180,25 +180,6 @@
|
|
|
180
180
|
height: auto;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
/*
|
|
184
|
-
* AspectRatio 的 fit 子元素尺寸。组件样式 `aspect-ratio.css` 里也有同样几条,
|
|
185
|
-
* 没引入 reset 时靠那里生效。这里再写一遍,是为了让它们排在上面
|
|
186
|
-
* `height: auto` 的后面:两者同在 reset 层、特异性都是 0,后出现的赢,
|
|
187
|
-
* 所以不管 reset.css 和组件样式谁先加载,fit 的子元素都能填满容器。
|
|
188
|
-
*/
|
|
189
|
-
:where([data-astryx-aspect-ratio-override='cover'], [data-astryx-aspect-ratio-override='contain']) > :where(*) {
|
|
190
|
-
width: 100%;
|
|
191
|
-
height: 100%;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
:where([data-astryx-aspect-ratio-override='cover']) > :where(img, video) {
|
|
195
|
-
object-fit: cover;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
:where([data-astryx-aspect-ratio-override='contain']) > :where(img, video) {
|
|
199
|
-
object-fit: contain;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
183
|
/* ===========================================================================
|
|
203
184
|
表单
|
|
204
185
|
=========================================================================== */
|
package/styles/app-shell.css
CHANGED
|
@@ -7,6 +7,20 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
overflow: clip;
|
|
9
9
|
min-height: 0;
|
|
10
|
+
/* AppShell 是布局的根:外层 Card、Section、Layout 的内边距与宽度变量停在这里。 */
|
|
11
|
+
--container-padding-inline-start: 0px;
|
|
12
|
+
--container-padding-inline-end: 0px;
|
|
13
|
+
--container-padding-block-start: 0px;
|
|
14
|
+
--container-padding-block-end: 0px;
|
|
15
|
+
--layout-padding-outer-x: initial;
|
|
16
|
+
--layout-padding-outer-y: initial;
|
|
17
|
+
--layout-padding-own-outer-x: initial;
|
|
18
|
+
--layout-padding-own-outer-y: initial;
|
|
19
|
+
--layout-padding-inner-x: initial;
|
|
20
|
+
--layout-padding-inner-y: initial;
|
|
21
|
+
--layout-content-width: initial;
|
|
22
|
+
--layout-alignment-width: initial;
|
|
23
|
+
--_section-padding-propagated: initial;
|
|
10
24
|
}
|
|
11
25
|
|
|
12
26
|
.astryx-app-shell[data-variant='wash'],
|
|
@@ -89,6 +103,26 @@
|
|
|
89
103
|
background-color: var(--astryx-color-background-surface, #fff);
|
|
90
104
|
}
|
|
91
105
|
|
|
106
|
+
/*
|
|
107
|
+
* 页面设了 viewport-fit=cover 时,页头背景延伸到状态栏下面和屏幕两侧,
|
|
108
|
+
* 页头里的内容留在安全区内;没设时这些边距都是 0。安全区是物理方向,从右到左时内联两侧互换。
|
|
109
|
+
*/
|
|
110
|
+
.astryx-app-shell__header,
|
|
111
|
+
.astryx-app-shell__mobile-bar {
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
padding-inline-start: env(safe-area-inset-left, 0px);
|
|
114
|
+
padding-inline-end: env(safe-area-inset-right, 0px);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:is([dir='rtl'] .astryx-app-shell__header, [dir='rtl'] .astryx-app-shell__mobile-bar) {
|
|
118
|
+
padding-inline-start: env(safe-area-inset-right, 0px);
|
|
119
|
+
padding-inline-end: env(safe-area-inset-left, 0px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.astryx-app-shell__header {
|
|
123
|
+
padding-block-start: env(safe-area-inset-top, 0px);
|
|
124
|
+
}
|
|
125
|
+
|
|
92
126
|
.astryx-app-shell__banner {
|
|
93
127
|
flex-shrink: 0;
|
|
94
128
|
}
|
|
@@ -96,8 +130,18 @@
|
|
|
96
130
|
.astryx-app-shell__mobile-bar {
|
|
97
131
|
display: flex;
|
|
98
132
|
align-items: center;
|
|
133
|
+
height: calc(var(--astryx-spacing-12, 48px) + env(safe-area-inset-top, 0px));
|
|
134
|
+
padding-block-start: env(safe-area-inset-top, 0px);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* 横幅已经让出顶部安全区,下面的手机顶栏只留两侧;自动高度时它钉在顶部安全区下面。 */
|
|
138
|
+
.astryx-app-shell__header + .astryx-app-shell__mobile-bar {
|
|
99
139
|
height: var(--astryx-spacing-12, 48px);
|
|
100
|
-
padding-
|
|
140
|
+
padding-block-start: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.astryx-app-shell[data-height='auto'] .astryx-app-shell__header + .astryx-app-shell__mobile-bar {
|
|
144
|
+
top: env(safe-area-inset-top, 0px);
|
|
101
145
|
}
|
|
102
146
|
|
|
103
147
|
.astryx-app-shell__mobile-bar[data-variant='wash'],
|
|
@@ -116,6 +160,8 @@
|
|
|
116
160
|
width: 100%;
|
|
117
161
|
min-width: 0;
|
|
118
162
|
height: 100%;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
padding-inline: var(--astryx-spacing-2, 8px);
|
|
119
165
|
}
|
|
120
166
|
|
|
121
167
|
.astryx-app-shell__mobile-nav > .astryx-mobile-nav-toggle {
|
|
@@ -147,6 +193,11 @@
|
|
|
147
193
|
outline: none;
|
|
148
194
|
}
|
|
149
195
|
|
|
196
|
+
/* 主区域在内容内边距之外再加底部安全区,铺满它的子元素也停在安全区之上。 */
|
|
197
|
+
.astryx-app-shell .astryx-app-shell__content {
|
|
198
|
+
padding-block-end: calc(var(--container-padding-block-end, 0px) + env(safe-area-inset-bottom, 0px));
|
|
199
|
+
}
|
|
200
|
+
|
|
150
201
|
/*
|
|
151
202
|
* 内容溢出时主区域是键盘停靠点:只有 Tab 到它才画标准焦点环,往里收一圈免得被外壳裁掉;
|
|
152
203
|
* 跳转链接和脚本的聚焦(data-programmatic-focus)不画。
|
|
@@ -174,39 +225,69 @@
|
|
|
174
225
|
isolation: isolate;
|
|
175
226
|
}
|
|
176
227
|
|
|
177
|
-
/*
|
|
228
|
+
/*
|
|
229
|
+
* 脚本读到窗口之前(服务端渲染的页面),手机上先按手机布局显示:
|
|
230
|
+
* 顶栏藏起起始和中间内容,内联侧栏不出,抬起样式的背景板去掉圆角;
|
|
231
|
+
* 读完窗口后由 TopNav 收进抽屉、侧栏换成抽屉。
|
|
232
|
+
* 主题改过宽度点时没有对应规则,保持服务端的布局直到读到窗口。
|
|
233
|
+
*/
|
|
178
234
|
@media (width < 640px) {
|
|
179
235
|
.astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__items,
|
|
180
|
-
.astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__center
|
|
236
|
+
.astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__center,
|
|
237
|
+
.astryx-app-shell[data-mobile-unread='sm'] .astryx-app-shell__sidenav {
|
|
181
238
|
display: none;
|
|
182
239
|
}
|
|
240
|
+
|
|
241
|
+
.astryx-app-shell[data-mobile-unread='sm'] .astryx-app-shell__backdrop {
|
|
242
|
+
border-start-start-radius: 0;
|
|
243
|
+
}
|
|
183
244
|
}
|
|
184
245
|
|
|
185
246
|
@media (width < 768px) {
|
|
186
247
|
.astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__items,
|
|
187
|
-
.astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__center
|
|
248
|
+
.astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__center,
|
|
249
|
+
.astryx-app-shell[data-mobile-unread='md'] .astryx-app-shell__sidenav {
|
|
188
250
|
display: none;
|
|
189
251
|
}
|
|
252
|
+
|
|
253
|
+
.astryx-app-shell[data-mobile-unread='md'] .astryx-app-shell__backdrop {
|
|
254
|
+
border-start-start-radius: 0;
|
|
255
|
+
}
|
|
190
256
|
}
|
|
191
257
|
|
|
192
258
|
@media (width < 1024px) {
|
|
193
259
|
.astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__items,
|
|
194
|
-
.astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__center
|
|
260
|
+
.astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__center,
|
|
261
|
+
.astryx-app-shell[data-mobile-unread='lg'] .astryx-app-shell__sidenav {
|
|
195
262
|
display: none;
|
|
196
263
|
}
|
|
264
|
+
|
|
265
|
+
.astryx-app-shell[data-mobile-unread='lg'] .astryx-app-shell__backdrop {
|
|
266
|
+
border-start-start-radius: 0;
|
|
267
|
+
}
|
|
197
268
|
}
|
|
198
269
|
|
|
199
270
|
@media (width < 1280px) {
|
|
200
271
|
.astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__items,
|
|
201
|
-
.astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__center
|
|
272
|
+
.astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__center,
|
|
273
|
+
.astryx-app-shell[data-mobile-unread='xl'] .astryx-app-shell__sidenav {
|
|
202
274
|
display: none;
|
|
203
275
|
}
|
|
276
|
+
|
|
277
|
+
.astryx-app-shell[data-mobile-unread='xl'] .astryx-app-shell__backdrop {
|
|
278
|
+
border-start-start-radius: 0;
|
|
279
|
+
}
|
|
204
280
|
}
|
|
205
281
|
|
|
206
282
|
@media (width < 1536px) {
|
|
207
283
|
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__items,
|
|
208
|
-
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__center
|
|
284
|
+
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__center,
|
|
285
|
+
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-app-shell__sidenav {
|
|
209
286
|
display: none;
|
|
210
287
|
}
|
|
288
|
+
|
|
289
|
+
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-app-shell__backdrop {
|
|
290
|
+
border-start-start-radius: 0;
|
|
291
|
+
}
|
|
211
292
|
}
|
|
212
293
|
}
|
package/styles/aspect-ratio.css
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
* fit 的子元素尺寸放在
|
|
5
|
-
*
|
|
4
|
+
* fit 的子元素尺寸放在 base 层,选择器特异性为零。
|
|
5
|
+
* 排在 reset 层的 `height: auto` 后面,Tailwind 等后面的层、不分层的 CSS 和子元素自己的内联样式仍然能盖过这里,
|
|
6
|
+
* 所以文档里写的各种 Tailwind 接法下 fit 都能填满容器。
|
|
6
7
|
*/
|
|
7
|
-
@layer astryx.
|
|
8
|
+
@layer astryx.base {
|
|
8
9
|
:where([data-astryx-aspect-ratio-override='cover'], [data-astryx-aspect-ratio-override='contain']) > :where(*) {
|
|
9
10
|
width: 100%;
|
|
10
11
|
height: 100%;
|
package/styles/checkbox-list.css
CHANGED
|
@@ -12,4 +12,9 @@
|
|
|
12
12
|
.astryx-checkbox-list .astryx-checkbox-input {
|
|
13
13
|
gap: 0;
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
/* 行自己画按压,框里的复选框读行写在它身上的按压画面:手指落在行上任何地方,行和框一起亮。 */
|
|
17
|
+
.astryx-checkbox-list .astryx-item[data-astryx-press] .astryx-checkbox-indicator {
|
|
18
|
+
background-image: var(--_press-paint-image);
|
|
19
|
+
}
|
|
15
20
|
}
|
package/styles/collapsible.css
CHANGED
package/styles/layout.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
--container-padding-inline-end: 0px;
|
|
30
30
|
--container-padding-block-start: 0px;
|
|
31
31
|
--container-padding-block-end: 0px;
|
|
32
|
-
--layout-content-width:
|
|
32
|
+
--layout-content-width: initial;
|
|
33
33
|
--layout-alignment-width: 100cqi;
|
|
34
34
|
--layout-padding-own-outer-x: initial;
|
|
35
35
|
--layout-padding-own-outer-y: initial;
|
|
@@ -178,11 +178,11 @@
|
|
|
178
178
|
.astryx-layout-content[data-edge-start]:not([data-explicit-padding]) {
|
|
179
179
|
padding-inline-start: var(--layout-pad-outer-x);
|
|
180
180
|
--container-padding-inline-start: var(--layout-pad-outer-x);
|
|
181
|
-
--container-padding-inline-end: var(--layout-pad-outer-x);
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
.astryx-layout-content[data-edge-end]:not([data-explicit-padding]) {
|
|
185
184
|
padding-inline-end: var(--layout-pad-outer-x);
|
|
185
|
+
--container-padding-inline-end: var(--layout-pad-outer-x);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.astryx-layout-content[data-edge-header]:not([data-explicit-padding]) {
|
|
@@ -195,13 +195,20 @@
|
|
|
195
195
|
--container-padding-block-end: var(--layout-pad-outer-y);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
/*
|
|
199
|
+
* 页头没有分隔线时,内容顶部的内边距收掉;页脚没有分隔线时收掉底部的。
|
|
200
|
+
* 用兄弟关系只看这一个 Layout 自己的那一行:嵌套的 Layout 不会吃到外层的收拢。
|
|
201
|
+
* 同时把发布给贴边子元素(Table、Divider)的容器内边距一起归零,它们才和内容的实际边距对得上。
|
|
202
|
+
*/
|
|
203
|
+
.astryx-layout__inner > .astryx-layout-header:not([data-divider]) ~ .astryx-layout__middle > .astryx-layout__content-slot > .astryx-layout-content:not([data-explicit-padding]),
|
|
204
|
+
.astryx-layout__inner > .astryx-dialog-header[data-layout-header]:not(.astryx-dialog-header--divider) ~ .astryx-layout__middle > .astryx-layout__content-slot > .astryx-layout-content:not([data-explicit-padding]) {
|
|
200
205
|
padding-block-start: 0;
|
|
206
|
+
--container-padding-block-start: 0px;
|
|
201
207
|
}
|
|
202
208
|
|
|
203
|
-
.astryx-
|
|
209
|
+
.astryx-layout__middle:has(~ .astryx-layout-footer:not([data-divider])) > .astryx-layout__content-slot > .astryx-layout-content:not([data-explicit-padding]) {
|
|
204
210
|
padding-block-end: 0;
|
|
211
|
+
--container-padding-block-end: 0px;
|
|
205
212
|
}
|
|
206
213
|
|
|
207
214
|
.astryx-layout-content[data-scrollable] {
|
|
@@ -243,26 +250,36 @@
|
|
|
243
250
|
--container-padding-block-end: var(--_layout-panel-block-end, var(--layout-pad-block));
|
|
244
251
|
}
|
|
245
252
|
|
|
253
|
+
/* 贴着 Layout 边界的那条边用 Layout 的外缘内边距,并把它发布出去,贴边子元素才和它对得上。 */
|
|
246
254
|
.astryx-layout-panel[data-area='start']:not([data-explicit-padding]) {
|
|
247
255
|
padding-inline-start: var(--layout-pad-outer-x);
|
|
256
|
+
--container-padding-inline-start: var(--layout-pad-outer-x);
|
|
248
257
|
}
|
|
249
258
|
|
|
250
259
|
.astryx-layout-panel[data-area='end']:not([data-explicit-padding]) {
|
|
251
260
|
padding-inline-end: var(--layout-pad-outer-x);
|
|
261
|
+
--container-padding-inline-end: var(--layout-pad-outer-x);
|
|
252
262
|
}
|
|
253
263
|
|
|
254
264
|
.astryx-layout-panel[data-edge-header]:not([data-explicit-padding]) {
|
|
255
265
|
padding-block-start: var(--layout-pad-outer-y);
|
|
266
|
+
--container-padding-block-start: var(--layout-pad-outer-y);
|
|
256
267
|
}
|
|
257
268
|
|
|
258
269
|
.astryx-layout-panel[data-edge-footer]:not([data-explicit-padding]) {
|
|
259
270
|
padding-block-end: var(--layout-pad-outer-y);
|
|
271
|
+
--container-padding-block-end: var(--layout-pad-outer-y);
|
|
260
272
|
}
|
|
261
273
|
|
|
262
274
|
.astryx-layout-panel[data-scrollable] {
|
|
263
275
|
overflow: auto;
|
|
264
276
|
}
|
|
265
277
|
|
|
278
|
+
.astryx-layout-panel[data-zero-width][data-zero-width] {
|
|
279
|
+
padding-inline: 0;
|
|
280
|
+
overflow: clip;
|
|
281
|
+
}
|
|
282
|
+
|
|
266
283
|
.astryx-layout-panel[data-area='start'][data-divider] {
|
|
267
284
|
border-inline-end: 1px solid var(--astryx-color-border, #ebebeb);
|
|
268
285
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
border-style: solid;
|
|
13
13
|
border-width: var(--astryx-border-width, 1px);
|
|
14
14
|
border-color: var(--astryx-input-status-color, var(--astryx-color-border-emphasized, #d4d4d4));
|
|
15
|
-
border-radius:
|
|
15
|
+
border-radius: 50%;
|
|
16
16
|
color: var(--astryx-color-accent, #262626);
|
|
17
17
|
background: var(--astryx-color-background-surface, #fff);
|
|
18
18
|
transition-property: background-color, border-color;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
.astryx-radio-indicator-dot {
|
|
49
49
|
width: calc((100% + 2 * var(--astryx-border-width, 1px)) * 10 / 24);
|
|
50
50
|
height: calc((100% + 2 * var(--astryx-border-width, 1px)) * 10 / 24);
|
|
51
|
-
border-radius:
|
|
51
|
+
border-radius: 50%;
|
|
52
52
|
background: currentcolor;
|
|
53
53
|
}
|
|
54
54
|
|
package/styles/radio.css
CHANGED
|
@@ -15,6 +15,31 @@
|
|
|
15
15
|
cursor: pointer;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
.astryx-radio[data-align='start'] {
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* first-line:单选圈贴顶,再按「一行文字的行高减圈的高度」的一半往下推,
|
|
24
|
+
* 圈的中心就落在标签第一行的中心。圈比这一行高时(md 24px),不推,文字被它压下去。
|
|
25
|
+
*/
|
|
26
|
+
.astryx-radio[data-align='first-line'] {
|
|
27
|
+
--_radio-size: var(--astryx-radio-size, 18px);
|
|
28
|
+
align-items: flex-start;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.astryx-radio[data-align='first-line'][data-size='sm'] {
|
|
32
|
+
--_radio-size: 20px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.astryx-radio[data-align='first-line'][data-size='md'] {
|
|
36
|
+
--_radio-size: 24px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.astryx-radio[data-align='first-line'] > .astryx-radio-indicator {
|
|
40
|
+
margin-block-start: max(0px, calc((var(--astryx-text-body-size, 0.875rem) * var(--astryx-text-body-leading, 1.4286) - var(--_radio-size)) / 2));
|
|
41
|
+
}
|
|
42
|
+
|
|
18
43
|
.astryx-radio[data-disabled='true'] {
|
|
19
44
|
opacity: 0.5;
|
|
20
45
|
cursor: default;
|
package/styles/resize-handle.css
CHANGED
|
@@ -64,6 +64,14 @@
|
|
|
64
64
|
height: var(--resize-handle-hit-area, 16px);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
.astryx-resize-handle[data-position='overlay'][data-pane][data-direction='horizontal'] {
|
|
68
|
+
width: min(var(--resize-handle-hit-area, 16px), 50%);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.astryx-resize-handle[data-position='overlay'][data-pane][data-direction='vertical'] {
|
|
72
|
+
height: min(var(--resize-handle-hit-area, 16px), 50%);
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
.astryx-resize-handle[data-disabled] {
|
|
68
76
|
cursor: default;
|
|
69
77
|
pointer-events: none;
|
|
@@ -89,52 +97,28 @@
|
|
|
89
97
|
cursor: row-resize;
|
|
90
98
|
}
|
|
91
99
|
|
|
92
|
-
/*
|
|
93
|
-
|
|
94
|
-
* 这段位移在行内轴上,从右到左时要改号,否则抓取区会偏到握把旁边。
|
|
95
|
-
*/
|
|
96
|
-
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='center'] {
|
|
100
|
+
/* 抓取区居中在分隔条上,握把摆在哪一侧都不改变它;握把自己另外接管指针。 */
|
|
101
|
+
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit {
|
|
97
102
|
inset-inline-start: 50%;
|
|
103
|
+
width: min(var(--astryx-spacing-4, 16px), var(--_resize-pane-length, 100vw));
|
|
98
104
|
transform: translateX(-50%);
|
|
99
105
|
}
|
|
100
106
|
|
|
101
|
-
.astryx-resize-handle[data-direction='
|
|
102
|
-
|
|
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));
|
|
107
|
+
:is([dir='rtl'] .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit) {
|
|
108
|
+
transform: translateX(50%);
|
|
114
109
|
}
|
|
115
110
|
|
|
116
|
-
|
|
117
|
-
|
|
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));
|
|
111
|
+
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit {
|
|
112
|
+
inset-block-start: 50%;
|
|
113
|
+
height: min(var(--astryx-spacing-4, 16px), var(--_resize-pane-length, 100vh));
|
|
114
|
+
transform: translateY(-50%);
|
|
132
115
|
}
|
|
133
116
|
|
|
134
117
|
.astryx-resize-handle-pill {
|
|
135
118
|
position: absolute;
|
|
136
119
|
z-index: 2;
|
|
137
|
-
|
|
120
|
+
touch-action: none;
|
|
121
|
+
user-select: none;
|
|
138
122
|
border-radius: var(--astryx-radius-full, 9999px);
|
|
139
123
|
background-color: var(--astryx-divider-color-subtle, #00000014);
|
|
140
124
|
transition-property: opacity, background-color, transform;
|
|
@@ -144,21 +128,66 @@
|
|
|
144
128
|
}
|
|
145
129
|
|
|
146
130
|
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle-pill {
|
|
131
|
+
cursor: col-resize;
|
|
147
132
|
width: 3px;
|
|
148
133
|
height: var(--astryx-spacing-8, 32px);
|
|
149
134
|
top: 50%;
|
|
150
135
|
}
|
|
151
136
|
|
|
152
137
|
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle-pill {
|
|
138
|
+
cursor: row-resize;
|
|
153
139
|
width: var(--astryx-spacing-8, 32px);
|
|
154
140
|
height: 3px;
|
|
155
141
|
inset-inline-start: 50%;
|
|
156
142
|
}
|
|
157
143
|
|
|
144
|
+
/* 画出来的握把就是抓手,收起或禁用时不接管指针。 */
|
|
145
|
+
.astryx-resize-handle-pill[data-hidden],
|
|
146
|
+
.astryx-resize-handle[data-disabled] > .astryx-resize-handle-pill {
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
158
150
|
.astryx-resize-handle-pill[data-hidden] {
|
|
159
151
|
opacity: 0;
|
|
160
152
|
}
|
|
161
153
|
|
|
154
|
+
.astryx-resize-handle[data-active] > .astryx-resize-handle-pill[data-hidden] {
|
|
155
|
+
pointer-events: auto;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/*
|
|
159
|
+
* 悬停才显示的握把可能落在抓取区之外。握把带一段看不见的延伸,只朝分隔条一侧伸出那一格空隙,
|
|
160
|
+
* 指针从抓取区移向握把的路上悬停不会丢。握把的偏移是物理方向,所以延伸也用物理方向。
|
|
161
|
+
*/
|
|
162
|
+
.astryx-resize-handle-pill[data-hidden]::before {
|
|
163
|
+
content: '';
|
|
164
|
+
position: absolute;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle-pill[data-hidden][data-side='start']::before {
|
|
168
|
+
inset-block: 0;
|
|
169
|
+
left: 0;
|
|
170
|
+
right: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle-pill[data-hidden][data-side='end']::before {
|
|
174
|
+
inset-block: 0;
|
|
175
|
+
right: 0;
|
|
176
|
+
left: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle-pill[data-hidden][data-side='start']::before {
|
|
180
|
+
inset-inline: 0;
|
|
181
|
+
top: 0;
|
|
182
|
+
bottom: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle-pill[data-hidden][data-side='end']::before {
|
|
186
|
+
inset-inline: 0;
|
|
187
|
+
bottom: 0;
|
|
188
|
+
top: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
|
|
189
|
+
}
|
|
190
|
+
|
|
162
191
|
.astryx-resize-handle[data-active] > .astryx-resize-handle-pill {
|
|
163
192
|
opacity: 1;
|
|
164
193
|
}
|
|
@@ -10,6 +10,19 @@
|
|
|
10
10
|
scrollbar-width: auto;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/* 触屏保留平台自己的滚动指示条:iOS 只在滚动时显示它;写了颜色就会变成一条淡淡的常驻条,下拉露出的空隙里也看得见。 */
|
|
14
|
+
@media (pointer: coarse) {
|
|
15
|
+
.astryx-scrollable-area {
|
|
16
|
+
scrollbar-color: auto;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (forced-colors: active) {
|
|
21
|
+
.astryx-scrollable-area {
|
|
22
|
+
scrollbar-color: auto;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
.astryx-scrollable-area:focus-visible {
|
|
14
27
|
outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, currentcolor);
|
|
15
28
|
outline-offset: var(--astryx-focus-outline-offset, 3px);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@layer astryx.components {
|
|
4
4
|
.astryx-segmented-control {
|
|
5
|
+
position: relative;
|
|
5
6
|
--_segmented-control-padding: var(--astryx-segmented-control-padding, var(--astryx-spacing-0-5, 2px));
|
|
6
7
|
--_segmented-control-radius: var(--astryx-segmented-control-radius, var(--astryx-radius-element, 0.625rem));
|
|
7
8
|
|
|
@@ -95,6 +96,41 @@
|
|
|
95
96
|
flex-shrink: 0;
|
|
96
97
|
}
|
|
97
98
|
|
|
99
|
+
/*
|
|
100
|
+
* 选中块是控件里独立的一块表面,选中的分段一变就滑到新位置,大小也跟着变。
|
|
101
|
+
* 量到位置之前(服务端渲染、还没有布局),选中的分段自己画这块底色,
|
|
102
|
+
* 量到以后由选中块画,分段只留文字的颜色和字重。
|
|
103
|
+
*/
|
|
104
|
+
.astryx-segmented-control__selection {
|
|
105
|
+
position: absolute;
|
|
106
|
+
z-index: 0;
|
|
107
|
+
top: 0;
|
|
108
|
+
left: 0;
|
|
109
|
+
width: var(--_selection-width);
|
|
110
|
+
height: var(--_selection-height);
|
|
111
|
+
border-radius: max(0px, calc(var(--_segmented-control-radius) - var(--_segmented-control-padding)));
|
|
112
|
+
background-color: var(--astryx-segmented-control-item-selected-background, light-dark(#fff, #262626));
|
|
113
|
+
box-shadow: var(--astryx-segmented-control-item-selected-shadow);
|
|
114
|
+
transform: translate(var(--_selection-x), var(--_selection-y));
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
forced-color-adjust: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.astryx-segmented-control[data-selection='ready'] > .astryx-segmented-control__selection {
|
|
120
|
+
transition-property: transform, width, height;
|
|
121
|
+
transition-duration: var(--astryx-duration-fast-max, 165ms);
|
|
122
|
+
transition-timing-function: var(--astryx-ease-move, cubic-bezier(0.24, 1, 0.4, 1));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item {
|
|
126
|
+
z-index: 1;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item[data-selected='true'] {
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
box-shadow: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
98
134
|
.astryx-segmented-control-item[data-selected='true'] {
|
|
99
135
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
100
136
|
color: var(--astryx-segmented-control-item-selected-foreground, var(--astryx-color-text-primary, #171717));
|
|
@@ -167,10 +203,19 @@
|
|
|
167
203
|
color: HighlightText;
|
|
168
204
|
background-color: Highlight;
|
|
169
205
|
}
|
|
206
|
+
|
|
207
|
+
.astryx-segmented-control__selection {
|
|
208
|
+
background-color: Highlight;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.astryx-segmented-control[data-selection] > .astryx-segmented-control-item[data-selected='true'] {
|
|
212
|
+
background-color: transparent;
|
|
213
|
+
}
|
|
170
214
|
}
|
|
171
215
|
|
|
172
216
|
@media (prefers-reduced-motion: reduce) {
|
|
173
|
-
.astryx-segmented-control-item
|
|
217
|
+
.astryx-segmented-control-item,
|
|
218
|
+
.astryx-segmented-control[data-selection='ready'] > .astryx-segmented-control__selection {
|
|
174
219
|
transition-duration: 0s;
|
|
175
220
|
}
|
|
176
221
|
}
|
package/styles/slider.css
CHANGED
|
@@ -87,11 +87,14 @@
|
|
|
87
87
|
transform: translateX(-50%);
|
|
88
88
|
color: var(--astryx-color-text-secondary, #525252);
|
|
89
89
|
font-size: var(--astryx-text-supporting-size, 12px);
|
|
90
|
-
line-height: 1.
|
|
90
|
+
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
91
91
|
white-space: nowrap;
|
|
92
92
|
}
|
|
93
93
|
.astryx-slider-mark-label:dir(rtl) { transform: translateX(50%); }
|
|
94
|
-
|
|
94
|
+
/* 横向的刻度文字挂在控件中线下面。行底部留出文字超出控件的那一截,滑块后面的内容就从文字下方开始。 */
|
|
95
|
+
.astryx-slider[data-mark-labels='true'][data-orientation='horizontal'] .astryx-slider-row {
|
|
96
|
+
padding-block-end: calc(4px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
97
|
+
}
|
|
95
98
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-control { flex: none; width: 20px; height: var(--astryx-slider-height, 160px); }
|
|
96
99
|
.astryx-slider[data-orientation='vertical'] :is(.astryx-slider-track, .astryx-slider-fill) { top: auto; left: 50%; width: 4px; height: auto; transform: translateX(-50%); }
|
|
97
100
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-track { top: 0; bottom: 0; inset-inline-end: auto; }
|
|
@@ -103,6 +106,9 @@
|
|
|
103
106
|
.astryx-slider-thumb::before { content: ''; position: absolute; inset: -2px; }
|
|
104
107
|
/* 控件和滑块一样高(20px),手指点按时把可点区域撑到 WCAG 2.5.8 的 24px,轨道和滑块都居中不动。 */
|
|
105
108
|
.astryx-slider-control { min-height: 24px; }
|
|
109
|
+
.astryx-slider[data-mark-labels='true'][data-orientation='horizontal'] .astryx-slider-row {
|
|
110
|
+
padding-block-end: calc(2px + var(--astryx-text-supporting-size, 0.75rem) * var(--astryx-text-supporting-leading, 1.6667));
|
|
111
|
+
}
|
|
106
112
|
.astryx-slider[data-orientation='vertical'] .astryx-slider-control { min-width: 24px; }
|
|
107
113
|
}
|
|
108
114
|
@media (prefers-reduced-motion: reduce) {
|
package/styles/switch.css
CHANGED
|
@@ -132,7 +132,8 @@
|
|
|
132
132
|
flex: none;
|
|
133
133
|
width: var(--astryx-switch-thumb-size, 16px);
|
|
134
134
|
height: var(--astryx-switch-thumb-size, 16px);
|
|
135
|
-
|
|
135
|
+
/* 圆用 50% 画在方盒子上:主题把 --astryx-radius-full 改成方角时,轨道变方,拇指仍是圆的。 */
|
|
136
|
+
border-radius: var(--astryx-switch-thumb-radius, 50%);
|
|
136
137
|
background: var(--astryx-switch-thumb, #fff);
|
|
137
138
|
transform: translateX(0);
|
|
138
139
|
transition: transform 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), width var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)), height var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
|