@astryx-vue/core 0.7.24 → 0.7.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.d.ts +1 -1
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DsPFYRxB.js → AlertDialog-DZpJzvOC.js} +30 -15
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-cNntRBEo.js → Avatar-D_C9RBJb.js} +27 -21
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CiJia58o.js → AvatarGroup-CFvNDgU-.js} +17 -7
- package/dist/Badge/index.js +1 -1
- package/dist/Badge-BbPS_49c.js +41 -0
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C8f377q3.js → Banner-C1B7DsHS.js} +3 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BKeyoL9N.js → BottomSheet-BECeWtEy.js} +2 -2
- package/dist/{BottomSheet-CMukh1iI.js → BottomSheet-CgOzQHaA.js} +4 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CXJNJ93V.js → Breadcrumbs-BgiZY7un.js} +9 -8
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-Dgm5wCch.js → Button-DsjdehLZ.js} +181 -18
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-UgiGP61q.js → ButtonGroup-CSW7a9vq.js} +14 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-d_uOkvFE.js → Calendar-Bzgi-XyF.js} +12 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +1 -1
- package/dist/{Card-H4571ZKi.js → Card-BbKFHWuD.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-BWTArLIP.js → Carousel--VycM-Sa.js} +64 -19
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DKZWVA3Q.js → Chat-C1DlnlCQ.js} +30 -28
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-B4pDfjvr.js → CheckboxInput-uk8nuCEf.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DtxfdHRI.js → CheckboxList-Dr4kQ-BC.js} +7 -7
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-CCu6QWG7.js → Citation-BAFsn6N1.js} +4 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-jEBZbzHE.js → ClickableCard-CvxSKkXh.js} +16 -6
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-PDhTfE2w.js → Code-6GS0nAkR.js} +1 -1
- package/dist/{CodeBlock-BrE72i6C.js → CodeBlock-PSnUWX57.js} +21 -10
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BsPZ8CoN.js → Collapsible-C_tl5-L0.js} +2 -2
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-0Kg-dJg3.js → CommandPalette-lewtyQrO.js} +7 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BrGVG8c7.js → ComplexSelector-BUnqjeW5.js} +16 -8
- package/dist/ComponentIcon-BRXBBKeG.js +37 -0
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CgSIWUYh.js → ContextMenu-IDkvorRp.js} +10 -9
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-vV0tc4a4.js → DateInput-DTxxFz9-.js} +15 -13
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DcM1Zntr.js → DateRangeInput-D4Us58KW.js} +9 -9
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DbbVU3bk.js → DateTimeInput-CliLnI7P.js} +10 -10
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-vPGLWE3o.js → Dialog-B_s-w66_.js} +1 -1
- package/dist/{Dialog-D4V2ZnuS.js → Dialog-BtPktuiy.js} +3 -1
- package/dist/{DialogHeader-D1sgjPC7.js → DialogHeader-Hk419KW1.js} +4 -4
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CaZF_-lH.js → Drawer-DoQ9hjKz.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-B3R5WLsl.js → DropdownMenu-B2iga1fe.js} +18 -13
- package/dist/{DropdownMenu-BjE_cTDM.js → DropdownMenu-BF2Z5T4h.js} +9 -9
- package/dist/{DropdownMenuRadioItem.vue-z0XU7pZS.d.ts → DropdownMenuRadioItem.vue-D455cIQQ.d.ts} +1 -1
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BQrzgh2f.js → EmptyState-v1cvHKav.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-DLg-trP2.js → Field-if5a58LO.js} +2 -2
- package/dist/{FieldIcon-CxTnEb4Y.js → FieldIcon-DMtfe1Ne.js} +1 -1
- package/dist/{FieldInfoTip-D5IOQrVA.js → FieldInfoTip-BJAaKJjM.js} +2 -2
- package/dist/{FieldLabel-D5_Pap_W.js → FieldLabel-C-IaUcP4.js} +3 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FieldStatus/index.js +1 -1
- package/dist/{FieldStatus-D6Vo_dU5.js → FieldStatus-DSUCli4W.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CKYpJtuU.js → FileInput-0zBWfO8h.js} +9 -9
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Grid/index.js +1 -1
- package/dist/{Grid-D1onTzyC.js → Grid-C0mp7fha.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-C10qO8wg.js +114 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-B9uadAzT.js → HoverCard-CLcbBLBN.js} +4 -3
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/plugin.js +1 -1
- package/dist/Icon-B2aULLnn.js +15 -0
- package/dist/{Icon-CU3412Fe.js → Icon-BCHo7W0x.js} +48 -86
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-B6AQLlx9.js → IconButton-Crtfruc0.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BlOySTNC.js → InfoTip-DNQy7wqB.js} +3 -3
- package/dist/{InputClearButton-BbFXoxWi.js → InputClearButton-DhvxPkK6.js} +3 -3
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-BleRgc6W.js → InputGroup-B1kG0rBN.js} +42 -18
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js} +3 -3
- package/dist/{Item-X9wgYWoD.js → Item-Cfv4ALls.js} +29 -6
- package/dist/Kbd/index.d.ts +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-CV3LO2Ge.js → Kbd-DyxKNYtE.js} +58 -30
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-mHcy28k7.js → Layout-OHKb6r7D.js} +8 -5
- package/dist/{LayoutPanel-DpbBk6rj.js → LayoutPanel-D-rpTtC-.js} +6 -3
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DLZzT9un.js → Lightbox-B8uMFPOS.js} +96 -17
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Qhzs2lcO.js → Link-Kc2RQFHc.js} +59 -70
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-CertehfW.js → ListItem-2evjQQ7n.js} +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-DGTG02tI.js → Markdown-NVkHi_tk.js} +6 -6
- package/dist/{MediaTheme-CnSOALNj.js → MediaTheme-Bt7WBTkq.js} +1 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-wOngshS5.js → MetadataList-4GnMi6s9.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C8KAzhRl.js → MobileNavToggle-TMDrnXfG.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-B_NLxMJW.js → MoreMenu-CpGEXWCd.js} +10 -10
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-B0TQuJ5d.js → MultiSelector-Baca6xNx.js} +17 -16
- package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
- package/dist/{NavHeadingSurface-B2HkXx6S.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-DfHMmSsw.js → NavItem-BZLN0U5a.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-mZVfqNxt.js → NavMenu-t7WN2bcq.js} +1 -1
- package/dist/{NavMenuItem-DkfXIdxs.js → NavMenuItem-DIMQohIa.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DEv4_fDj.js → NumberInput-BBFGZ4Fg.js} +27 -17
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bbu16_MT.js → Outline-BgDOI3ar.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CjIOYKLM.js → OverflowList-D4fC5s_q.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Bcq0T9qo.js → Pagination-Do_MIlo4.js} +16 -4
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-9Xt2lYdo.js → Popover-Bd93LlDd.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DXz85xcx.js → PowerSearch-DyqItMHo.js} +111 -42
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-Dt5AS0GY.js → ProgressBar-gsm2A_cR.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-B2lYTCeV.js → RadioGroup-Dzp4qSgm.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CieZtXzY.js → RadioList-CAIgB1j_.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-uBJj4W1M.js → ResizeHandle-GAmiHb0-.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-BmDn1avo.js → SegmentedControl-Bs74LlvS.js} +3 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-2a2gsxys.js → SelectableCard-BFCwgtWf.js} +12 -7
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CgrXQtte.js → Selector-B9lINQRM.js} +15 -13
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DW4jXGp5.js → SideNav-DzZ12DIq.js} +8 -8
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-CEhy-D-R.js → Slider-Cuk2ul9w.js} +4 -4
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-CTWLR75x.js → Spinner-ke63bQPv.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Bu_nCu0I.js → StatusDot-DF5wK42f.js} +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DVXisudw.js → Stepper-C68f_iJG.js} +3 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DXShvaDA.js → Switch-bnxiN6Qe.js} +4 -4
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bo4pjQhj.js → TabList-8dlO0Ws6.js} +13 -8
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-Bd8BQ8X_.js → Table-j_DCDbcI.js} +107 -49
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +3 -2
- package/dist/{Text-Wk-iDAzh.js → Text-WB-fpFne.js} +38 -29
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-8bifudmD.js → TextArea-Bzz_KcKT.js} +11 -11
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bb25yDd0.js → TextInput-givkH9HQ.js} +22 -20
- package/dist/Theme/index.d.ts +2 -2
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-D7_fQWgb.js → Theme-BQe--DY6.js} +42 -9
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CYVlnYws.js → Thumbnail-CZOWP5HN.js} +42 -14
- package/dist/{TimeField-dDDrUtI4.js → TimeField-ByoS5s_I.js} +8 -8
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-BvGVUfWy.js → TimeInput-D9kvMQso.js} +7 -5
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DL_MPa_h.js → Timer-BD2gSoQ3.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CJSVY4tS.js → Timestamp-CEdNhKc5.js} +17 -13
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-cXs5Cbr4.js → Toast-CnZrcU-G.js} +5 -5
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DFiJDsOV.js → ToggleButton-BMn4yJXe.js} +27 -8
- package/dist/Token/index.js +1 -1
- package/dist/{Token-BJDLztV6.js → Token-DWCDMawn.js} +101 -28
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-yz0873oG.js → Tokenizer-R0eC1BOk.js} +93 -10
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-D5UI1JLe.js → Toolbar-BH_E0F0G.js} +4 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BfKegFfq.js → Tooltip-CGHpFMnc.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CWksqYD8.js → TopNav-DHunql9h.js} +7 -7
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-tcEjVfb0.js → TreeList-Dg5gtkOu.js} +24 -17
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-ClidGB0O.js → Typeahead-BkmCC6DX.js} +52 -27
- package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
- package/dist/componentIcons-CFr2L6o3.js +106 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +13 -11
- package/dist/{composables-BWDrzi3J.js → composables-DqJzanJ5.js} +5 -24
- package/dist/context-Bg7eSJ47.js +17 -0
- package/dist/{context-BLSiTojH.js → context-CV6TrhJY.js} +57 -3
- package/dist/context-CZP3jfy-.js +125 -0
- package/dist/{context-Bv6lAoqu.js → context-CjX2RSDn.js} +14 -2
- package/dist/devBuild-G249YcdZ.js +17 -0
- package/dist/{fieldParts--SyRZVQG.js → fieldParts-CDOlBdy6.js} +2 -2
- package/dist/{index-CM8KfpBL.d.ts → index--uIQXVJ7.d.ts} +2 -2
- package/dist/{index-CL8JvxHW.d.ts → index-B3yTdknp.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-B449gOMC.d.ts} +2 -2
- package/dist/{index-B3PTchxx.d.ts → index-B7brdDVR.d.ts} +5 -5
- package/dist/{index-BO9TY87G.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Gnewu6-J.d.ts → index-BPyRH3WL.d.ts} +1 -1
- package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
- package/dist/{index-f3d9cVtj.d.ts → index-BU78NOP-.d.ts} +1 -1
- package/dist/{index-BfQ85cS8.d.ts → index-BZuEYd9y.d.ts} +1 -1
- package/dist/{index-D_K1wfRa.d.ts → index-BfSZhAVv.d.ts} +2 -2
- package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-BngdKVro.d.ts} +1 -1
- package/dist/{index-RW8kvEwf.d.ts → index-BnqDF_AX.d.ts} +11 -6
- package/dist/{index-Be7N3B5F.d.ts → index-BqEPgwku.d.ts} +2 -2
- package/dist/{index-DxxudRgB.d.ts → index-C16d2Fc4.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-C89cIh4E.d.ts} +3 -5
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-IvAfdGCC.d.ts → index-CAoenU4T.d.ts} +1 -1
- package/dist/{index-BaxM-pFP.d.ts → index-CM2L3SUw.d.ts} +6 -4
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-Bo-ofFyg.d.ts → index-CbNLiaWw.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BMCjAlq6.d.ts → index-CfPGC9aW.d.ts} +1 -1
- package/dist/index-CtYlR9Cu.d.ts +46 -0
- package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-C9gAlDt_.d.ts → index-CvquEEGw.d.ts} +8 -2
- package/dist/{index-QWh122EV.d.ts → index-D57GW53K.d.ts} +1 -1
- package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
- package/dist/{index-dcT6zeY_.d.ts → index-DCU6dy7n.d.ts} +25 -5
- package/dist/{index-DqaYENaT.d.ts → index-DFDadgys.d.ts} +68 -68
- package/dist/{index-DEm3kRBO.d.ts → index-DN1RqxjP.d.ts} +1 -1
- package/dist/{index-BzZC2Y7c.d.ts → index-DTfA4uE3.d.ts} +1 -1
- package/dist/{index-BZchpRgm.d.ts → index-DZKv1WNB.d.ts} +2 -2
- package/dist/{index-BUZDSd-n.d.ts → index-Dc52pmSr.d.ts} +4 -2
- package/dist/{index-uqEqPcmR.d.ts → index-DhMCql2U.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-DneQgJfI.d.ts} +1 -1
- package/dist/{index-Dj1_1t3j.d.ts → index-IFFGXlhq.d.ts} +1 -1
- package/dist/{index-DaXzQxos.d.ts → index-MEix_m1o.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-D21zdEgS.d.ts → index-Uh-ddE5F.d.ts} +1 -1
- package/dist/{index-BtrAhmSP.d.ts → index-fuztfDLA.d.ts} +10 -6
- package/dist/{index-BRXgpLcd.d.ts → index-mJ_aqK5M.d.ts} +3 -3
- package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/{index-Dacg7XTH.d.ts → index-wkeCkhTi.d.ts} +16 -6
- package/dist/index.d.ts +53 -53
- package/dist/index.js +134 -130
- package/dist/layerSurfacePress-C3PjPpJP.js +29 -0
- package/dist/{loadCatalog-85MyL2bm.js → loadCatalog-Bulk4H7U.js} +2 -2
- package/dist/{loadCatalog-DSRSkHnY.d.ts → loadCatalog-D_uf2uX1.d.ts} +36 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-C7RSY-JG.js → locale-BA52q_fh.js} +1 -1
- package/dist/pressFeedback-Bwwpex9q.js +578 -0
- package/dist/{registry-C7OZb0PJ.js → registry-fNY3jasS.js} +23 -4
- package/dist/{searchResultMessage-T4H3r8Vz.js → searchResultMessage-CFmIy2Da.js} +2 -2
- package/dist/semantic-CXHSMwPK.d.ts +118 -0
- package/dist/{sharedResizeObserver-9EFWnSWH.js → sharedResizeObserver-BekhnB3E.js} +5 -1
- package/dist/slotContent-CNWOrGOr.js +14 -0
- package/dist/{slug-DAK6hdbr.js → slug-D6ln5PTq.js} +3 -1
- package/dist/strayClick-CY-_ImKv.js +60 -0
- package/dist/textClampContext-o3-nLErq.js +15 -0
- package/dist/textDirection-D4ObTwbB.js +32 -0
- package/dist/themeIcons-CqGF0fwW.js +128 -0
- package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
- package/dist/{types-CsqwQkf1.d.ts → types-Bq4Yl6CS.d.ts} +68 -7
- package/dist/{types-Bb7OGivY.d.ts → types-BwVJBE-G.d.ts} +1 -1
- package/dist/{types-C5GQ2KCK.d.ts → types-Dcai2Icw.d.ts} +55 -1
- package/dist/{types-DnrU3HYQ.d.ts → types-hB0M54I7.d.ts} +1 -1
- package/dist/unicodeRegExp-B7yQnpFC.js +14 -0
- package/dist/{upstreamMap-CZUPxbc9.js → upstreamMap-DrkVNtXW.js} +2 -0
- package/dist/useActionGroupTracking-BncJjk1A.js +131 -0
- package/dist/{useAnchoredListbox-6t5zSSz1.js → useAnchoredListbox-9Gn8asBR.js} +3 -2
- package/dist/useCoarsePointer-GItEMrjX.js +21 -0
- package/dist/{useDevWarning-DznOpOHT.js → useDevWarning-B2fsk2B-.js} +1 -4
- package/dist/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
- package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
- package/dist/{useIndicator-BvF_KY9S.js → useIndicator--9mGGlT2.js} +2 -2
- package/dist/{useInputContainer-CLcYrby4.js → useInputContainer-BpLtCA-U.js} +1 -1
- package/dist/{useInputStatusIcon-BSVFtRQG.js → useInputStatusIcon-DCnx00BM.js} +2 -2
- package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
- package/dist/{useMenuDrillIn-C36Z89W3.js → useMenuDrillIn-C5eJCuO1.js} +2 -2
- package/dist/{useMenuPress-8foxY8z4.js → useMenuPress-BLPwY_m1.js} +2 -59
- package/dist/usePressFeedback-Bcjsw9vv.js +49 -0
- package/dist/{useTooltip-BKsCTWdb.js → useTooltip-D8Tq7-yd.js} +36 -22
- package/dist/{useTranslator-BDUOzbP_.js → useTranslator-Q85hi4qz.js} +2 -2
- package/dist/useTruncation-C4pdlaXa.js +135 -0
- package/dist/useTruncationTooltip-BNk2xslw.js +106 -0
- package/dist/utils/index.js +1 -1
- package/dist/{utils-ClVseK2w.js → utils-BTkg5Ie9.js} +7 -2
- package/locales/en.json +8 -0
- package/package.json +1 -1
- package/styles/alert-dialog.css +19 -0
- package/styles/avatar.css +18 -3
- package/styles/badge.css +20 -2
- package/styles/banner.css +6 -0
- package/styles/button-group.css +38 -2
- package/styles/button.css +76 -4
- package/styles/calendar.css +34 -0
- package/styles/carousel.css +19 -11
- package/styles/chat.css +2 -0
- package/styles/checkbox-indicator.css +9 -9
- package/styles/checkbox-input.css +4 -1
- package/styles/citation.css +2 -1
- package/styles/clickable-card.css +19 -5
- package/styles/code.css +6 -0
- package/styles/context-menu.css +11 -0
- package/styles/dialog-header.css +2 -0
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +11 -0
- package/styles/field.css +2 -0
- package/styles/heading.css +4 -0
- package/styles/hover-card.css +2 -0
- package/styles/icon.css +18 -12
- package/styles/input-group.css +1 -0
- package/styles/kbd.css +2 -0
- package/styles/layer.css +2 -0
- package/styles/lightbox.css +78 -0
- package/styles/link.css +25 -1
- package/styles/list.css +10 -1
- package/styles/metadata-list.css +1 -1
- package/styles/more-menu.css +6 -0
- package/styles/popover.css +7 -0
- package/styles/pressable.css +7 -0
- package/styles/radio-indicator.css +21 -4
- package/styles/slider.css +2 -0
- package/styles/switch.css +2 -1
- package/styles/table.css +25 -1
- package/styles/text.css +8 -0
- package/styles/thumbnail.css +25 -0
- package/styles/toast.css +2 -0
- package/styles/toggle-button.css +17 -0
- package/styles/token.css +14 -9
- package/styles/toolbar.css +19 -0
- package/dist/Badge-CjDQPF5g.js +0 -30
- package/dist/Heading-D0zL1j5T.js +0 -99
- package/dist/context-B6UElI5X.js +0 -5
- package/dist/context-Cws_tXTr.js +0 -7
- package/dist/context-IvbU9c3T.js +0 -8
- package/dist/index-LySSG_PR.d.ts +0 -27
- package/dist/semantic-BF_AjLvk.d.ts +0 -57
- package/dist/useClickableContainer-CdGp_Cev.js +0 -112
- package/dist/usePressFeedback-Dhnfc3ee.js +0 -336
- package/dist/useTruncation-C02rA1-c.js +0 -102
- package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-BekhnB3E.js";
|
|
2
|
+
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
3
|
+
//#region src/utils/sharedMutationObserver.ts
|
|
4
|
+
const OPTIONS = {
|
|
5
|
+
characterData: true,
|
|
6
|
+
childList: true,
|
|
7
|
+
subtree: true
|
|
8
|
+
};
|
|
9
|
+
let observer = null;
|
|
10
|
+
const callbacks = /* @__PURE__ */ new Map();
|
|
11
|
+
function dispatch(records) {
|
|
12
|
+
const pending = /* @__PURE__ */ new Set();
|
|
13
|
+
for (const record of records) for (let node = record.target; node; node = node.parentNode) callbacks.get(node)?.forEach((callback) => pending.add(callback));
|
|
14
|
+
pending.forEach((callback) => callback());
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Observe text and child changes anywhere inside an element. All registrations
|
|
18
|
+
* share one MutationObserver; the returned function removes only its own callback.
|
|
19
|
+
*/
|
|
20
|
+
function observeContent(element, callback) {
|
|
21
|
+
if (typeof MutationObserver === "undefined") return () => {};
|
|
22
|
+
observer ??= new MutationObserver(dispatch);
|
|
23
|
+
const existing = callbacks.get(element);
|
|
24
|
+
if (existing) existing.add(callback);
|
|
25
|
+
else {
|
|
26
|
+
callbacks.set(element, /* @__PURE__ */ new Set([callback]));
|
|
27
|
+
observer.observe(element, OPTIONS);
|
|
28
|
+
}
|
|
29
|
+
let subscribed = true;
|
|
30
|
+
return () => {
|
|
31
|
+
if (!subscribed) return;
|
|
32
|
+
subscribed = false;
|
|
33
|
+
const registered = callbacks.get(element);
|
|
34
|
+
registered?.delete(callback);
|
|
35
|
+
if (registered?.size === 0) callbacks.delete(element);
|
|
36
|
+
if (callbacks.size === 0 && observer) {
|
|
37
|
+
observer.disconnect();
|
|
38
|
+
observer = null;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/Text/useTruncation.ts
|
|
44
|
+
/** `false` 关掉提示。`true` 和缺省都出现在上方。 */
|
|
45
|
+
function truncatePlacement(value) {
|
|
46
|
+
if (value === false) return null;
|
|
47
|
+
if (value == null || value === true) return "above";
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 量文字有没有被截断:`maxLines` 为 1 比宽度,大于 1 用 Range 量真实高度
|
|
52
|
+
* (`-webkit-line-clamp` 会把 scrollHeight 也夹成容器高度),0 不测量。
|
|
53
|
+
*
|
|
54
|
+
* 尺寸和内容的变化都走全页共用的 ResizeObserver / MutationObserver,
|
|
55
|
+
* 一页几百个表格单元格也只有各一个观察者。新元素的第一次测量交给共用
|
|
56
|
+
* ResizeObserver 的第一次通知,那是浏览器自己排版之后发的,挂载时不额外强制排版;
|
|
57
|
+
* 元素已被别人观察、不会再有第一次通知时,改在渲染提交后的微任务里量。
|
|
58
|
+
*/
|
|
59
|
+
function useTruncation(maxLines) {
|
|
60
|
+
const isTruncated = ref(false);
|
|
61
|
+
const fullText = ref("");
|
|
62
|
+
let release;
|
|
63
|
+
let node = null;
|
|
64
|
+
function measure(element) {
|
|
65
|
+
const lines = toValue(maxLines);
|
|
66
|
+
if (lines <= 0) {
|
|
67
|
+
isTruncated.value = false;
|
|
68
|
+
fullText.value = "";
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
fullText.value = element.textContent ?? "";
|
|
72
|
+
if (lines === 1) {
|
|
73
|
+
isTruncated.value = element.scrollWidth > element.clientWidth + 1;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let contentHeight = element.scrollHeight;
|
|
77
|
+
try {
|
|
78
|
+
const range = element.ownerDocument.createRange();
|
|
79
|
+
range.selectNodeContents(element);
|
|
80
|
+
contentHeight = range.getBoundingClientRect().height;
|
|
81
|
+
range.detach();
|
|
82
|
+
} catch {}
|
|
83
|
+
isTruncated.value = contentHeight > element.clientHeight + 1;
|
|
84
|
+
}
|
|
85
|
+
function observe(element) {
|
|
86
|
+
let isActive = true;
|
|
87
|
+
const unobserveContent = observeContent(element, () => measure(element));
|
|
88
|
+
let unobserveResize;
|
|
89
|
+
if (typeof ResizeObserver === "undefined") measure(element);
|
|
90
|
+
else {
|
|
91
|
+
let isRegistered = false;
|
|
92
|
+
const wasObserved = isResizeObserved(element);
|
|
93
|
+
unobserveResize = observeResize(element, () => {
|
|
94
|
+
if (isRegistered) measure(element);
|
|
95
|
+
});
|
|
96
|
+
isRegistered = true;
|
|
97
|
+
if (wasObserved) queueMicrotask(() => {
|
|
98
|
+
if (isActive) measure(element);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return () => {
|
|
102
|
+
isActive = false;
|
|
103
|
+
unobserveContent();
|
|
104
|
+
unobserveResize?.();
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function bind(value) {
|
|
108
|
+
const next = value instanceof HTMLElement ? value : null;
|
|
109
|
+
if (next === node && release != null) return;
|
|
110
|
+
release?.();
|
|
111
|
+
release = void 0;
|
|
112
|
+
node = next;
|
|
113
|
+
if (node && toValue(maxLines) > 0) {
|
|
114
|
+
release = observe(node);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
isTruncated.value = false;
|
|
118
|
+
fullText.value = "";
|
|
119
|
+
}
|
|
120
|
+
watch(() => toValue(maxLines), () => {
|
|
121
|
+
const current = node;
|
|
122
|
+
release?.();
|
|
123
|
+
release = void 0;
|
|
124
|
+
node = null;
|
|
125
|
+
bind(current);
|
|
126
|
+
});
|
|
127
|
+
onScopeDispose(() => release?.());
|
|
128
|
+
return {
|
|
129
|
+
bind,
|
|
130
|
+
isTruncated,
|
|
131
|
+
fullText
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
export { useTruncation as n, truncatePlacement as t };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
|
|
2
|
+
import { r as matchesFocusVisible } from "./tooltipTriggerRules-Bg4tG8w2.js";
|
|
3
|
+
import { n as tooltipPresentInterestKey } from "./useTooltip-D8Tq7-yd.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-CGHpFMnc.js";
|
|
5
|
+
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-C4pdlaXa.js";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
|
+
//#region src/Text/TruncationTooltip.vue
|
|
8
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
9
|
+
name: "AstryxTruncationTooltip",
|
|
10
|
+
__name: "TruncationTooltip",
|
|
11
|
+
props: {
|
|
12
|
+
anchor: {},
|
|
13
|
+
content: {},
|
|
14
|
+
placement: {},
|
|
15
|
+
interest: {}
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
provide(tooltipPresentInterestKey, __props.interest);
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return __props.anchor ? (openBlock(), createBlock(_sfc_main$1, {
|
|
21
|
+
key: 0,
|
|
22
|
+
anchor: __props.anchor,
|
|
23
|
+
content: __props.content,
|
|
24
|
+
placement: __props.placement,
|
|
25
|
+
"has-hover-indication": false
|
|
26
|
+
}, null, 8, [
|
|
27
|
+
"anchor",
|
|
28
|
+
"content",
|
|
29
|
+
"placement"
|
|
30
|
+
])) : createCommentVNode("v-if", true);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/Text/useTruncationTooltipInterest.ts
|
|
36
|
+
/**
|
|
37
|
+
* 截断文字的提示不随文字一起挂载,等第一次悬停、轻点或键盘聚焦才挂。
|
|
38
|
+
* 一长串表格单元格因此不会在加载时各挂一个关着的提示层。
|
|
39
|
+
* 这次交互记在 `state` 里,提示挂上后按自己的规则回应:悬停照常等延迟,轻点立刻打开。
|
|
40
|
+
*/
|
|
41
|
+
function useTruncationTooltipInterest(isEnabled) {
|
|
42
|
+
const isWanted = shallowRef(false);
|
|
43
|
+
const state = {
|
|
44
|
+
interest: null,
|
|
45
|
+
tapEvent: null,
|
|
46
|
+
isRead: false
|
|
47
|
+
};
|
|
48
|
+
let isTouchPress = false;
|
|
49
|
+
trackInteractionModality();
|
|
50
|
+
function want(interest, tapEvent = null) {
|
|
51
|
+
if (!isEnabled() || state.isRead) return;
|
|
52
|
+
state.interest = interest;
|
|
53
|
+
state.tapEvent = tapEvent;
|
|
54
|
+
isWanted.value = true;
|
|
55
|
+
}
|
|
56
|
+
function forget(interest) {
|
|
57
|
+
if (!state.isRead && state.interest === interest) state.interest = null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
isWanted,
|
|
61
|
+
state,
|
|
62
|
+
onPointerenter(event) {
|
|
63
|
+
if (event.pointerType !== "touch") want("hover");
|
|
64
|
+
},
|
|
65
|
+
onPointerleave: () => forget("hover"),
|
|
66
|
+
onPointerdown(event) {
|
|
67
|
+
isTouchPress = event.pointerType === "touch" || event.pointerType === "pen";
|
|
68
|
+
if (event.pointerType === "touch") {
|
|
69
|
+
want("tap", event);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
forget("hover");
|
|
73
|
+
},
|
|
74
|
+
onFocusin(event) {
|
|
75
|
+
const target = event.target;
|
|
76
|
+
if (!(target instanceof Element) || !matchesFocusVisible(target)) return;
|
|
77
|
+
if (isTouchPress && getInteractionModality() === "pointer") return;
|
|
78
|
+
want("focus");
|
|
79
|
+
},
|
|
80
|
+
onFocusout: () => forget("focus")
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/Text/useTruncationTooltip.ts
|
|
85
|
+
/** Text 和 Heading 共用:测量截断,并在第一次交互时才挂载显示全文的提示。 */
|
|
86
|
+
function useTruncationTooltip(maxLines, hasTruncateTooltip) {
|
|
87
|
+
const placement = computed(() => maxLines() > 0 ? truncatePlacement(hasTruncateTooltip()) : null);
|
|
88
|
+
const truncation = useTruncation(() => placement.value == null ? 0 : maxLines());
|
|
89
|
+
const isEnabled = computed(() => placement.value != null && truncation.isTruncated.value);
|
|
90
|
+
const interest = useTruncationTooltipInterest(() => isEnabled.value);
|
|
91
|
+
const element = shallowRef(null);
|
|
92
|
+
function bind(value) {
|
|
93
|
+
element.value = value instanceof HTMLElement ? value : null;
|
|
94
|
+
truncation.bind(value);
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
placement,
|
|
98
|
+
bind,
|
|
99
|
+
element,
|
|
100
|
+
truncation,
|
|
101
|
+
interest,
|
|
102
|
+
isMounted: computed(() => isEnabled.value && interest.isWanted.value)
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
export { _sfc_main as n, useTruncationTooltip as t };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
|
|
3
|
+
import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
|
|
3
4
|
import { a as presentationFromNativePicker, i as pickerPresentationFromNativePicker, n as effectiveInputPresentation, o as resolveInputPresentation, r as effectivePickerPresentation, s as resolvePickerPresentation, t as DEFAULT_INPUT_PRESENTATION } from "../inputPresentation-BOyHkCDr.js";
|
|
4
|
-
import { n as unobserveResize, t as observeResize } from "../sharedResizeObserver-9EFWnSWH.js";
|
|
5
5
|
import { A as plainDateCreate, B as plainDateIsEqual, C as DATE_FORMAT_WITH_WEEKDAY, D as getTimeZoneParts, E as getDaysInMonth, F as plainDateFromISO, G as plainDateSetFirstOfMonth, H as plainDateMax, I as plainDateFromInstant, J as plainDateToISO, K as plainDateSetStartOfWeek, L as plainDateGetWeekNumber, M as plainDateDiffDays, N as plainDateFormat, O as plainDateAddDays, P as plainDateFromDate, Q as chainEventHandlers, R as plainDateIsAfter, S as DATE_FORMAT_WEEKDAY_ONLY, T as formatSharedDate, U as plainDateMin, V as plainDateIsInRange, W as plainDateSetEndOfWeekExclusive, X as plainDateToday, Y as plainDateToInstant, Z as plainDateWeekFieldName, _ as DATE_FORMAT_MONTH_ONLY, a as formatDisplayTime12h, b as DATE_FORMAT_SHORT_WITH_WEEKDAY, c as parseStyleKey, d as getItemGroup, f as groupItems, g as DATE_FORMAT_LONG, h as parseDateInput, i as createISOTimeString, j as plainDateDayOfWeek, k as plainDateAddMonths, l as getInputARIA, m as isLocaleDayFirst, n as clampTime, o as formatDisplayTime24h, p as normalizeDayOfWeek, q as plainDateToDate, r as compareTime, s as parseTimeInput, t as adjustTime, u as joinAriaIDs, v as DATE_FORMAT_MONTH_YEAR, w as SHARED_DATE_FORMAT_OPTIONS, x as DATE_FORMAT_SHORT_WITH_YEAR, y as DATE_FORMAT_SHORT, z as plainDateIsBefore } from "../utils-BOmFijPc.js";
|
|
6
6
|
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 };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
|
+
import { t as unicodeRegExp } from "./unicodeRegExp-B7yQnpFC.js";
|
|
2
3
|
//#region src/AvatarGroup/context.ts
|
|
3
4
|
const AvatarGroupContext = defineLayerScopedKey("AvatarGroupContext", void 0);
|
|
4
5
|
//#endregion
|
|
5
6
|
//#region src/Avatar/utils.ts
|
|
6
|
-
const INITIAL_CHARACTER =
|
|
7
|
+
const INITIAL_CHARACTER = unicodeRegExp("[\\p{L}\\p{N}\\p{Extended_Pictographic}\\p{Regional_Indicator}]");
|
|
7
8
|
const characterSegmenter = typeof Intl !== "undefined" && typeof Intl.Segmenter === "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
|
|
8
9
|
/** 用户眼里的第一个字,避免把表情切成半个。 */
|
|
9
10
|
function firstCharacter(value) {
|
|
@@ -81,5 +82,9 @@ function composeAccessibleName(name, status, join) {
|
|
|
81
82
|
if (name && status) return join(name, status);
|
|
82
83
|
return name ?? status;
|
|
83
84
|
}
|
|
85
|
+
/** 把文字写成 CSS 字符串字面量,转义引号、反斜杠和换行。 */
|
|
86
|
+
function cssString(text) {
|
|
87
|
+
return `"${text.replace(/[\\"]/g, (char) => `\\${char}`).replace(/\n/g, "\\a ")}"`;
|
|
88
|
+
}
|
|
84
89
|
//#endregion
|
|
85
|
-
export {
|
|
90
|
+
export { resolveStatusDotMetrics as a, resolveSize as i, cssString as n, resolveStatusDotVariant as o, getInitials as r, AvatarGroupContext as s, composeAccessibleName as t };
|
package/locales/en.json
CHANGED
|
@@ -1323,6 +1323,14 @@
|
|
|
1323
1323
|
"defaultMessage": "Zoomed out",
|
|
1324
1324
|
"description": "Polite screen-reader announcement after zooming back out of a Lightbox image. Pairs with `lightbox.zoomedIn`."
|
|
1325
1325
|
},
|
|
1326
|
+
"@astryx.lightbox.captionMore": {
|
|
1327
|
+
"defaultMessage": "more",
|
|
1328
|
+
"description": "Visible label of the button after a gallery caption that two lines cut short in a Lightbox. It opens the full caption over the photo. Pairs with `lightbox.captionLess`."
|
|
1329
|
+
},
|
|
1330
|
+
"@astryx.lightbox.captionLess": {
|
|
1331
|
+
"defaultMessage": "less",
|
|
1332
|
+
"description": "Visible label of the same button while a Lightbox gallery's full caption is open over the photo. It closes the full caption. Pairs with `lightbox.captionMore`."
|
|
1333
|
+
},
|
|
1326
1334
|
"@astryx.metadataList.showMore": {
|
|
1327
1335
|
"defaultMessage": "Show more",
|
|
1328
1336
|
"description": "Button label under a MetadataList that reveals items hidden beyond the configured maximum. Toggles with `metadataList.showLess` — keep the pair parallel in your language."
|
package/package.json
CHANGED
package/styles/alert-dialog.css
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
min-height: 0;
|
|
14
14
|
overflow: auto;
|
|
15
15
|
overflow-wrap: anywhere;
|
|
16
|
+
/* Text 和 Heading 在里面也按 anywhere 换行。 */
|
|
17
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
/* Two classes so the level-2 scale from Heading still loses to this rule
|
|
@@ -44,4 +46,21 @@
|
|
|
44
46
|
max-width: 100%;
|
|
45
47
|
min-width: 0;
|
|
46
48
|
}
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* 跟踪滑动时(触屏为主的设备上),沿着按钮排列方向的拖动留给滑动选按钮,另一个方向照常滚动页面,
|
|
52
|
+
* 按住也不选中文字、不弹系统菜单。
|
|
53
|
+
*/
|
|
54
|
+
.astryx-alert-dialog__footer[data-press-tracking] {
|
|
55
|
+
-webkit-touch-callout: none;
|
|
56
|
+
user-select: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.astryx-alert-dialog[data-layout='row'] .astryx-alert-dialog__footer[data-press-tracking] {
|
|
60
|
+
touch-action: pan-y pinch-zoom;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.astryx-alert-dialog[data-layout='stacked'] .astryx-alert-dialog__footer[data-press-tracking] {
|
|
64
|
+
touch-action: pan-x pinch-zoom;
|
|
65
|
+
}
|
|
47
66
|
}
|
package/styles/avatar.css
CHANGED
|
@@ -67,14 +67,29 @@
|
|
|
67
67
|
user-select: none;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
/*
|
|
70
|
+
/*
|
|
71
|
+
* 首字母由生成内容画出,是头像这张「图」的一部分,不是控件的文字。
|
|
72
|
+
* 字符串来自组件写在行内的私有属性;支持替代文字的引擎给空替代文字,
|
|
73
|
+
* 其余引擎照常画出,控件的 aria-label 仍然负责命名。
|
|
74
|
+
*/
|
|
71
75
|
.astryx-avatar__fallback--initials::before {
|
|
72
|
-
content:
|
|
76
|
+
content: var(--_avatar-initials);
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
@supports (content: "a" / "") {
|
|
76
80
|
.astryx-avatar__fallback--initials::before {
|
|
77
|
-
content:
|
|
81
|
+
content: var(--_avatar-initials) / "";
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
* 强制配色下作者写的颜色都会被换成 CanvasText。单独的头像让首字母和默认图标
|
|
87
|
+
* 跟随周围的颜色:外面的控件画成禁用(GrayText)或选中(HighlightText)时一起变。
|
|
88
|
+
* 组内头像的描边是被强制成 Canvas 的实底,只有 CanvasText 一定看得清,所以不跟。
|
|
89
|
+
*/
|
|
90
|
+
@media (forced-colors: active) {
|
|
91
|
+
.astryx-avatar:not(.astryx-avatar--group-item) .astryx-avatar__fallback {
|
|
92
|
+
color: currentColor;
|
|
78
93
|
}
|
|
79
94
|
}
|
|
80
95
|
|
package/styles/badge.css
CHANGED
|
@@ -20,19 +20,37 @@
|
|
|
20
20
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
21
21
|
vertical-align: middle;
|
|
22
22
|
white-space: nowrap;
|
|
23
|
+
/*
|
|
24
|
+
* 和文字一样宽:网格单元格和栈的交叉轴会把 width: auto 的子元素拉满。
|
|
25
|
+
* 在横向 flex 行里它照样能缩:flex 基准跟着这个宽度走,下面的 min-width 允许缩到更小。
|
|
26
|
+
*/
|
|
27
|
+
width: fit-content;
|
|
23
28
|
max-width: 100%;
|
|
24
29
|
min-width: 0;
|
|
25
30
|
}
|
|
26
31
|
|
|
32
|
+
/*
|
|
33
|
+
* 至少有一行文字那么高:字号变大时徽章跟着文字长高,文字不会溢出。
|
|
34
|
+
* 用最小高度而不是新高度,默认字号下主题设的高度照旧生效。
|
|
35
|
+
*/
|
|
36
|
+
.astryx-badge--has-label {
|
|
37
|
+
min-height: 1lh;
|
|
38
|
+
}
|
|
39
|
+
|
|
27
40
|
.astryx-badge__label {
|
|
28
41
|
min-width: 0;
|
|
29
42
|
overflow: hidden;
|
|
30
43
|
text-overflow: ellipsis;
|
|
44
|
+
unicode-bidi: isolate;
|
|
31
45
|
}
|
|
32
46
|
|
|
47
|
+
/*
|
|
48
|
+
* 放在主要或危险按钮里时,中性底色叠在按钮底色上对比度不够。
|
|
49
|
+
* 这时把按钮的底色和文字反过来用:按钮文字色做徽标底色,按钮底色做徽标文字。
|
|
50
|
+
*/
|
|
33
51
|
.astryx-badge[data-variant='neutral'] {
|
|
34
|
-
color: var(--astryx-badge-neutral-foreground);
|
|
35
|
-
background-color: var(--astryx-badge-neutral-background);
|
|
52
|
+
color: var(--_button-fill, var(--astryx-badge-neutral-foreground));
|
|
53
|
+
background-color: var(--_button-on-fill, var(--astryx-badge-neutral-background));
|
|
36
54
|
}
|
|
37
55
|
|
|
38
56
|
.astryx-badge[data-variant='info'] {
|
package/styles/banner.css
CHANGED
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
73
73
|
line-height: var(--astryx-text-label-leading, 1.4286);
|
|
74
74
|
overflow-wrap: anywhere;
|
|
75
|
+
/* Text 和 Heading 在里面也按 anywhere 换行。 */
|
|
76
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.astryx-banner[data-status] .astryx-banner-title,
|
|
@@ -85,6 +87,8 @@
|
|
|
85
87
|
font-weight: var(--astryx-font-weight-regular, 400);
|
|
86
88
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
87
89
|
overflow-wrap: anywhere;
|
|
90
|
+
/* Text 和 Heading 在里面也按 anywhere 换行。 */
|
|
91
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
.astryx-banner-icon {
|
|
@@ -146,6 +150,8 @@
|
|
|
146
150
|
font-size: var(--astryx-text-label-size, 14px);
|
|
147
151
|
line-height: 1.5;
|
|
148
152
|
overflow-wrap: anywhere;
|
|
153
|
+
/* Text 和 Heading 在里面也按 anywhere 换行。 */
|
|
154
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
149
155
|
}
|
|
150
156
|
|
|
151
157
|
.astryx-banner-frame[data-expanded] .astryx-banner-header {
|
package/styles/button-group.css
CHANGED
|
@@ -43,7 +43,12 @@
|
|
|
43
43
|
border-end-start-radius: var(--astryx-radius-element, 0.625rem);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
/*
|
|
47
|
+
* 末尾成员:最后一个不是弹出层、<template> 或 <dialog> 的兄弟。调用方放在组里的
|
|
48
|
+
* 弹出层不算成员,末尾按钮照样圆角。用 :nth-last-child(1 of S) 而不是
|
|
49
|
+
* 「后面没有成员兄弟」这类相对兄弟的 :has() 写法:后者在 WebKit 里每插入一个子元素都要回头重算前面所有兄弟。
|
|
50
|
+
*/
|
|
51
|
+
.astryx-button-group[data-orientation='horizontal'] > .astryx-button:nth-last-child(1 of :not([popover], template, dialog)) {
|
|
47
52
|
border-start-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
48
53
|
border-end-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
49
54
|
}
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
border-start-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
58
63
|
}
|
|
59
64
|
|
|
60
|
-
.astryx-button-group[data-orientation='vertical'] > .astryx-button:last-child {
|
|
65
|
+
.astryx-button-group[data-orientation='vertical'] > .astryx-button:nth-last-child(1 of :not([popover], template, dialog)) {
|
|
61
66
|
border-end-start-radius: var(--astryx-radius-element, 0.625rem);
|
|
62
67
|
border-end-end-radius: var(--astryx-radius-element, 0.625rem);
|
|
63
68
|
}
|
|
@@ -69,4 +74,35 @@
|
|
|
69
74
|
.astryx-button-group > .astryx-button:is([data-variant='primary'], [data-variant='destructive']):not(:first-child) {
|
|
70
75
|
--astryx-button-separator: var(--astryx-button-solid-separator);
|
|
71
76
|
}
|
|
77
|
+
|
|
78
|
+
/*
|
|
79
|
+
* 跟踪滑动时(触屏为主的设备上),沿着按钮排列方向的拖动留给滑动选按钮,另一个方向照常滚动页面,
|
|
80
|
+
* 按住也不选中文字、不弹系统菜单。
|
|
81
|
+
*/
|
|
82
|
+
.astryx-button-group[data-press-tracking] {
|
|
83
|
+
-webkit-touch-callout: none;
|
|
84
|
+
user-select: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.astryx-button-group[data-orientation='horizontal'][data-press-tracking] {
|
|
88
|
+
touch-action: pan-y pinch-zoom;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.astryx-button-group[data-orientation='vertical'][data-press-tracking] {
|
|
92
|
+
touch-action: pan-x pinch-zoom;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (forced-colors: active) {
|
|
96
|
+
/*
|
|
97
|
+
* 强制配色下实心按钮各自画一圈边。相邻两个按钮的边会叠成双线,所以末尾成员以外
|
|
98
|
+
* 都不画结束边,接缝只留下一个按钮的起始边(即组的分隔线)。组的外沿仍然完整。
|
|
99
|
+
*/
|
|
100
|
+
.astryx-button-group[data-orientation='horizontal'] > .astryx-button:not(:nth-last-child(1 of :not([popover], template, dialog))) {
|
|
101
|
+
border-inline-end-width: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.astryx-button-group[data-orientation='vertical'] > .astryx-button:not(:nth-last-child(1 of :not([popover], template, dialog))) {
|
|
105
|
+
border-block-end-width: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
72
108
|
}
|
package/styles/button.css
CHANGED
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
@keyframes astryx-button-press-release {
|
|
30
|
+
from {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
to {
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
@keyframes astryx-button-tooltip-enter {
|
|
30
40
|
from {
|
|
31
41
|
opacity: 0;
|
|
@@ -117,8 +127,12 @@
|
|
|
117
127
|
--_button-border-style: var(--astryx-button-primary-border-style, var(--astryx-button-border-style, solid));
|
|
118
128
|
--_button-border-color: var(--astryx-button-primary-border-color, var(--astryx-button-border-color, transparent));
|
|
119
129
|
|
|
120
|
-
|
|
121
|
-
|
|
130
|
+
/* 底色和文字这一对传给按钮内容:里面的中性 Badge 反过来用,对比度就够。 */
|
|
131
|
+
--_button-fill: var(--astryx-button-primary-background, #262626);
|
|
132
|
+
--_button-on-fill: var(--astryx-button-primary-foreground, #fff);
|
|
133
|
+
|
|
134
|
+
color: var(--_button-on-fill);
|
|
135
|
+
background-color: var(--_button-fill);
|
|
122
136
|
}
|
|
123
137
|
|
|
124
138
|
/* 主题的次要按钮可以带描边、带自己的悬停叠层;次要样式的选择器类组件复用这几条。 */
|
|
@@ -147,8 +161,11 @@
|
|
|
147
161
|
--_button-border-style: var(--astryx-button-destructive-border-style, var(--astryx-button-border-style, solid));
|
|
148
162
|
--_button-border-color: var(--astryx-button-destructive-border-color, var(--astryx-button-border-color, transparent));
|
|
149
163
|
|
|
150
|
-
|
|
151
|
-
|
|
164
|
+
--_button-fill: var(--astryx-button-destructive-background, var(--astryx-color-error, light-dark(#e3193b, #f5394f)));
|
|
165
|
+
--_button-on-fill: var(--astryx-button-destructive-foreground, var(--astryx-color-on-error, light-dark(#ffffff, #0a1317)));
|
|
166
|
+
|
|
167
|
+
color: var(--_button-on-fill);
|
|
168
|
+
background-color: var(--_button-fill);
|
|
152
169
|
}
|
|
153
170
|
|
|
154
171
|
@media (hover: hover) {
|
|
@@ -180,6 +197,45 @@
|
|
|
180
197
|
background-image: var(--_press-paint-image);
|
|
181
198
|
}
|
|
182
199
|
|
|
200
|
+
/*
|
|
201
|
+
* 自己的弹层开着时(菜单、列表框这类触发器)按下不缩放,弹层贴着静止的按钮;
|
|
202
|
+
* 缩放也不做过渡,弹层打开那一刻按钮立即回到原大小。没有弹层的展开按钮照常缩放。
|
|
203
|
+
*/
|
|
204
|
+
.astryx-button[aria-expanded='true'][aria-haspopup]:not([aria-haspopup='false']) {
|
|
205
|
+
transition-property: background-color, background-image, box-shadow, color, opacity;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.astryx-button[aria-expanded='true'][aria-haspopup]:not([aria-haspopup='false']):is(:active, [data-astryx-press='on']) {
|
|
209
|
+
transform: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/*
|
|
213
|
+
* 粗指针下,按压画在按钮自己的 ::before 上(文字下面一层)。抬手淡出的是这一层的 opacity,
|
|
214
|
+
* 浏览器在合成线程上播:页面脚本再忙,淡出也照常走完,不卡在满强度。
|
|
215
|
+
* 从按下到淡完一直留着合成层(will-change),缩放结束时不用重绘整个按钮。鼠标不受影响。
|
|
216
|
+
*/
|
|
217
|
+
@media (pointer: coarse) {
|
|
218
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press] {
|
|
219
|
+
isolation: isolate;
|
|
220
|
+
background-image: none;
|
|
221
|
+
will-change: transform;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press]::before {
|
|
225
|
+
content: '';
|
|
226
|
+
position: absolute;
|
|
227
|
+
inset: 0;
|
|
228
|
+
z-index: -1;
|
|
229
|
+
border-radius: inherit;
|
|
230
|
+
background-color: var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19));
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press='fading']::before {
|
|
235
|
+
animation: astryx-button-press-release var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6)) both;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
183
239
|
.astryx-button:focus-visible {
|
|
184
240
|
outline: 2px solid var(--astryx-button-focus, currentcolor);
|
|
185
241
|
outline-offset: var(--button-focus-offset);
|
|
@@ -354,6 +410,8 @@
|
|
|
354
410
|
font-size: 14px;
|
|
355
411
|
line-height: 1.4286;
|
|
356
412
|
overflow-wrap: anywhere;
|
|
413
|
+
/* Text 和 Heading 在里面也按 anywhere 换行。 */
|
|
414
|
+
--_astryx-text-overflow-wrap: anywhere;
|
|
357
415
|
pointer-events: auto;
|
|
358
416
|
animation: astryx-button-tooltip-enter 130ms cubic-bezier(0.24, 1, 0.4, 1);
|
|
359
417
|
}
|
|
@@ -363,6 +421,15 @@
|
|
|
363
421
|
transition-duration: 0s;
|
|
364
422
|
}
|
|
365
423
|
|
|
424
|
+
/* 减少动态效果时按下不缩放,只靠按压色表示按下。 */
|
|
425
|
+
.astryx-button:not(:disabled):not([aria-disabled='true']):is(:active, [data-astryx-press='on']) {
|
|
426
|
+
transform: none;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.astryx-button:not(:disabled):not([aria-disabled='true'])[data-astryx-press='fading']::before {
|
|
430
|
+
animation-duration: min(var(--astryx-duration-exit, 175ms), 200ms);
|
|
431
|
+
}
|
|
432
|
+
|
|
366
433
|
.astryx-button[data-delay-spinner='true'] .astryx-button__spinner-overlay,
|
|
367
434
|
.astryx-button[aria-busy='true'][data-delay-spinner='true'] .astryx-button__content {
|
|
368
435
|
animation-delay: 0s;
|
|
@@ -391,6 +458,11 @@
|
|
|
391
458
|
border: 0;
|
|
392
459
|
}
|
|
393
460
|
|
|
461
|
+
/* 危险按钮的边用 CanvasText,和上游主题约定一致;其余实心变体用 ButtonText。 */
|
|
462
|
+
.astryx-button[data-variant='destructive'] {
|
|
463
|
+
border-color: CanvasText;
|
|
464
|
+
}
|
|
465
|
+
|
|
394
466
|
.astryx-button:focus-visible {
|
|
395
467
|
outline-color: Highlight;
|
|
396
468
|
}
|
package/styles/calendar.css
CHANGED
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.astryx-calendar-weekday {
|
|
81
|
+
/* 最小宽度而不是固定宽度:星期名变大时撑宽自己这一列。 */
|
|
82
|
+
min-width: var(--astryx-input-height-md, 32px);
|
|
81
83
|
/* 同原版:星期表头行比日期行高 4px。 */
|
|
82
84
|
height: calc(var(--astryx-input-height-md, 32px) + 4px);
|
|
83
85
|
color: var(--astryx-color-text-secondary, #525252);
|
|
@@ -141,6 +143,38 @@
|
|
|
141
143
|
grid-template-columns: var(--astryx-spacing-6, 24px) repeat(7, var(--astryx-input-height-md, 32px));
|
|
142
144
|
}
|
|
143
145
|
|
|
146
|
+
/*
|
|
147
|
+
* 支持 subgrid 时,星期行和各个日期行共用月份网格的同一套列。列不会比它最宽的
|
|
148
|
+
* 格子窄,星期名也算在内:主题调大文字或调小元素尺寸时,星期名把整列撑宽,
|
|
149
|
+
* 不会挤进隔壁那一列。
|
|
150
|
+
*/
|
|
151
|
+
@supports (grid-template-columns: subgrid) {
|
|
152
|
+
.astryx-calendar-grid {
|
|
153
|
+
display: grid;
|
|
154
|
+
grid-template-columns: repeat(7, minmax(min-content, 1fr));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* 带周数时日期列不拉伸:网格按内容取宽、居中,七列一样宽,宽度取最宽的那一格。 */
|
|
158
|
+
.astryx-calendar-grid[data-week-numbers] {
|
|
159
|
+
grid-template-columns: var(--astryx-spacing-6, 24px) repeat(7, minmax(min-content, 1fr));
|
|
160
|
+
width: fit-content;
|
|
161
|
+
margin-inline: auto;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.astryx-calendar-grid[data-week-numbers] .astryx-calendar-weekday:first-child {
|
|
165
|
+
min-width: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* 写在带周数的固定列规则之后,同等权重下 subgrid 生效。 */
|
|
169
|
+
.astryx-calendar-grid .astryx-calendar-weekdays,
|
|
170
|
+
.astryx-calendar-grid .astryx-calendar-row,
|
|
171
|
+
.astryx-calendar-grid[data-week-numbers] .astryx-calendar-weekdays,
|
|
172
|
+
.astryx-calendar-grid[data-week-numbers] .astryx-calendar-row {
|
|
173
|
+
grid-column: 1 / -1;
|
|
174
|
+
grid-template-columns: subgrid;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
144
178
|
.astryx-calendar-week-number {
|
|
145
179
|
display: flex;
|
|
146
180
|
align-items: center;
|