@astryx-vue/core 0.7.27 → 0.7.29
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-DZpJzvOC.js → AlertDialog-BO2LucRK.js} +3 -3
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-D7ik41g-.js → AppShell-CeFsQXNh.js} +8 -3
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-D_C9RBJb.js → Avatar-76xnfD9n.js} +3 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CFvNDgU-.js → AvatarGroup-Beuljwpu.js} +5 -3
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C1B7DsHS.js → Banner-C-8DEWdJ.js} +4 -3
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BgiZY7un.js → Breadcrumbs-sakAtNnr.js} +1 -1
- package/dist/Button/index.d.ts +2 -2
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DsjdehLZ.js → Button-BeNp2zq_.js} +7 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CSW7a9vq.js → ButtonGroup-CosYAili.js} +15 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-Bzgi-XyF.js → Calendar-DwFAzDky.js} +4 -3
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel--VycM-Sa.js → Carousel-C8kE0YJh.js} +4 -3
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C1DlnlCQ.js → Chat-Bl_Wr2lK.js} +26 -25
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-uk8nuCEf.js → CheckboxInput-iCg8FgRv.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-Dr4kQ-BC.js → CheckboxList-Dr40y9ME.js} +5 -4
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-BAFsn6N1.js → Citation-CSgRYxGU.js} +3 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-PSnUWX57.js → CodeBlock-CSxQPryb.js} +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-lewtyQrO.js → CommandPalette-C1duZfmg.js} +8 -7
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BUnqjeW5.js → ComplexSelector-DFKi6sKq.js} +6 -5
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-IDkvorRp.js → ContextMenu-DN_nTBgW.js} +6 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DTxxFz9-.js → DateInput-CI1_FFPZ.js} +14 -9
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-D4Us58KW.js → DateRangeInput-lTx_eqfT.js} +14 -8
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CliLnI7P.js → DateTimeInput-BouEOOwo.js} +16 -8
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +1 -1
- package/dist/{DialogHeader-Hk419KW1.js → DialogHeader-cr9rFLYM.js} +4 -3
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DoQ9hjKz.js → Drawer-Ba-yG1rk.js} +1 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-BF2Z5T4h.js → DropdownMenu-BJicFgwf.js} +4 -5
- package/dist/{DropdownMenu-B2iga1fe.js → DropdownMenu-BPZjqbcw.js} +3 -4
- package/dist/{DropdownMenuRadioItem.vue-D455cIQQ.d.ts → DropdownMenuRadioItem.vue-C9DdN6UE.d.ts} +1 -1
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-if5a58LO.js → Field-Dc15m78p.js} +1 -1
- package/dist/{FieldInfoTip-BJAaKJjM.js → FieldInfoTip-BouJddgS.js} +1 -1
- package/dist/{FieldLabel-C-IaUcP4.js → FieldLabel-CfO3zaZ5.js} +4 -3
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-0zBWfO8h.js → FileInput-CFUgV2px.js} +6 -5
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/Icon/index.d.ts +3 -3
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Crtfruc0.js → IconButton-C91rhbvu.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DNQy7wqB.js → InfoTip-iKOp_vUV.js} +3 -2
- package/dist/{InputClearButton-DhvxPkK6.js → InputClearButton-BiF7qGMR.js} +8 -5
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-B1kG0rBN.js → InputGroup-CIKleAu8.js} +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CUEIHCf4.js → InternationalizationProvider-CcEXq6fT.js} +2 -3
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-DyxKNYtE.js → Kbd-D4JPY4VI.js} +3 -2
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-B8uMFPOS.js → Lightbox-VlvxtZn4.js} +5 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Kc2RQFHc.js → Link-k1Z20GSP.js} +3 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-NVkHi_tk.js → Markdown-DsE-40yq.js} +9 -4
- package/dist/{MediaTheme-Bt7WBTkq.js → MediaTheme-BVKUsMfC.js} +37 -1
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-4GnMi6s9.js → MetadataList-n3YXiP4a.js} +3 -2
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-TMDrnXfG.js → MobileNavToggle-_dutVRGj.js} +4 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CpGEXWCd.js → MoreMenu-1lxF-JY5.js} +4 -3
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Baca6xNx.js → MultiSelector-Slqiulwd.js} +8 -7
- package/dist/{NavHeadingSurface-j2gzMVKt.js → NavHeadingSurface-Cjp2DHPt.js} +3 -2
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BBFGZ4Fg.js → NumberInput-Bsz7bmRp.js} +6 -5
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BgDOI3ar.js → Outline-BXu7HCHp.js} +3 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-D4fC5s_q.js → OverflowList-CJZgNVSb.js} +3 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Do_MIlo4.js → Pagination-DOw8gHjL.js} +4 -3
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Bd93LlDd.js → Popover-cnfHz2tm.js} +4 -3
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DyqItMHo.js → PowerSearch-2jO62NSM.js} +19 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Dzp4qSgm.js → RadioGroup-D3TXgdwV.js} +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-CAIgB1j_.js → RadioList-Boj8QfPe.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-GAmiHb0-.js → ResizeHandle-Bon51yNV.js} +3 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-B9lINQRM.js → Selector-DCrEaxnG.js} +6 -5
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DzZ12DIq.js → SideNav-DeVtoFFq.js} +8 -7
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Cuk2ul9w.js → Slider-BFc5GTXb.js} +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-ke63bQPv.js → Spinner-DEVPDsD0.js} +3 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C68f_iJG.js → Stepper-B_CDbhCW.js} +4 -3
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-bnxiN6Qe.js → Switch-B0E8cZy7.js} +4 -3
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-8dlO0Ws6.js → TabList-DBSXa5QT.js} +3 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-j_DCDbcI.js → Table-sKQpWVKc.js} +24 -23
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Bzz_KcKT.js → TextArea-BzcHz2qI.js} +11 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-givkH9HQ.js → TextInput-BeJNEQL6.js} +7 -6
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -3
- package/dist/{Theme-BQe--DY6.js → Theme-1r_aWHvr.js} +330 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-CZOWP5HN.js → Thumbnail-CTkLFo-A.js} +9 -4
- package/dist/{TimeField-ByoS5s_I.js → TimeField-BGtS_m-U.js} +10 -5
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D9kvMQso.js → TimeInput-BKfg3SZ7.js} +2 -2
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-CEdNhKc5.js → Timestamp-B7H0KScU.js} +5 -4
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CnZrcU-G.js → Toast-aI9QMW-L.js} +5 -4
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-BMn4yJXe.js → ToggleButton-DI9I-LBH.js} +14 -7
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DWCDMawn.js → Token-CtG_XE6z.js} +3 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-R0eC1BOk.js → Tokenizer-XeyJuIJ7.js} +6 -5
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-DHunql9h.js → TopNav-zpU9w-mH.js} +5 -4
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Dg5gtkOu.js → TreeList-DeknLfbQ.js} +3 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BkmCC6DX.js → Typeahead-GOdnQXcB.js} +7 -6
- package/dist/{TypeaheadMenu-CFeJCv-6.js → TypeaheadMenu-BOzaCvSb.js} +1 -1
- package/dist/avatar-group-Dcn6i_ne.js +13 -0
- package/dist/banner-Bv76b50U.js +17 -0
- package/dist/calendar-Cs2vIPsV.js +31 -0
- package/dist/carousel-BHUqW44m.js +18 -0
- package/dist/chat-mh_siWVp.js +94 -0
- package/dist/checkbox-list-uI6q4y3V.js +13 -0
- package/dist/citation-h6fyz-JH.js +7 -0
- package/dist/command-palette-DuNs5XAd.js +34 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +2 -2
- package/dist/{composables-DqJzanJ5.js → composables-lCxHhZQY.js} +4 -3
- package/dist/context-B8IEFCDR.js +51 -0
- package/dist/context-BJ9RkXYX.js +676 -0
- package/dist/context-menu-9i6CObx3.js +7 -0
- package/dist/date-input-Bj3KSuoJ.js +38 -0
- package/dist/date-range-input-CoCiWt9_.js +18 -0
- package/dist/dialog-CNjGcdd1.js +7 -0
- package/dist/dropdown-menu-BDu4gWwQ.js +15 -0
- package/dist/field-CehUqCe0.js +15 -0
- package/dist/file-input-C2JFODtb.js +40 -0
- package/dist/{locale-BA52q_fh.js → format-CiN0Dt_H.js} +1 -30
- package/dist/{index-BU78NOP-.d.ts → index-B0R5CLPF.d.ts} +1 -1
- package/dist/{index-rbhycKiu.d.ts → index-B16Jb5mf.d.ts} +11 -11
- package/dist/{index-CfPGC9aW.d.ts → index-BMCjAlq6.d.ts} +1 -1
- package/dist/{index-D57GW53K.d.ts → index-BMVI4cM5.d.ts} +1 -1
- package/dist/{index-rszZajcw.d.ts → index-BPf_jmME.d.ts} +2 -2
- package/dist/{index-BgT6mH3U.d.ts → index-BR3MOBYd.d.ts} +2 -2
- package/dist/{index-CbNLiaWw.d.ts → index-Bfm6mF-r.d.ts} +47 -2
- package/dist/{index-CAoenU4T.d.ts → index-BlhbRf58.d.ts} +1 -1
- package/dist/{index-gw92L7ZG.d.ts → index-BmYnVNI-.d.ts} +5 -5
- package/dist/{index-3t5RAfNP.d.ts → index-Bn-v89Vt.d.ts} +4 -4
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-BZuEYd9y.d.ts → index-BvWBeoa8.d.ts} +2 -2
- package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
- package/dist/{index-DyALKpjX.d.ts → index-CM2L3SUw.d.ts} +4 -4
- package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-CvquEEGw.d.ts → index-CXOAA8us.d.ts} +2 -2
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BPyRH3WL.d.ts → index-CfXW4km8.d.ts} +1 -1
- package/dist/{index-Be7N3B5F.d.ts → index-CvLWh-d-.d.ts} +2 -2
- package/dist/{index-DaXzQxos.d.ts → index-CxdKu7d2.d.ts} +2 -2
- package/dist/{index-BzZC2Y7c.d.ts → index-Cz72NaF_.d.ts} +1 -1
- package/dist/{index-C3f1zsJR.d.ts → index-D4FgX9h3.d.ts} +4 -4
- package/dist/{index-DkF8wxHr.d.ts → index-DCxdesMw.d.ts} +8 -8
- package/dist/{index-C16d2Fc4.d.ts → index-DDAcxZAP.d.ts} +1 -1
- package/dist/{index-DCU6dy7n.d.ts → index-DKgonPjs.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-DY8Wph-A.d.ts} +2 -2
- package/dist/{index-IfiA8CSr.d.ts → index-DZKv1WNB.d.ts} +3 -3
- package/dist/{index-CM8KfpBL.d.ts → index-Dlq0cFK-.d.ts} +2 -2
- package/dist/{index--tm6L1ot.d.ts → index-DpYJBFJj.d.ts} +1 -1
- package/dist/{index-DN1RqxjP.d.ts → index-DxR6cZBf.d.ts} +1 -1
- package/dist/{index-IFFGXlhq.d.ts → index-GmoeIuhl.d.ts} +1 -1
- package/dist/{index-_VG-Bc2K.d.ts → index-MOtVbTwK.d.ts} +5 -5
- package/dist/{index-DhMCql2U.d.ts → index-NHtQmIIM.d.ts} +1 -1
- 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-BSlzqFzV.d.ts → index-a1jCiQP7.d.ts} +5 -5
- package/dist/{index-D4zmrP2a.d.ts → index-dRBNR7Tq.d.ts} +80 -80
- package/dist/{index-BjbPK91B.d.ts → index-pACjRM0E.d.ts} +8 -2
- package/dist/{index-Dy746dfn.d.ts → index-unAZVFGz.d.ts} +1 -1
- package/dist/index.d.ts +48 -48
- package/dist/index.js +80 -81
- package/dist/info-tip-BV42YsA4.js +7 -0
- package/dist/input-DUSvqqG_.js +17 -0
- package/dist/kbd-C-D_nOfU.js +41 -0
- package/dist/keyboard-hint-KWx0-7kD.js +7 -0
- package/dist/layout-DzxSsBe8.js +17 -0
- package/dist/lightbox-BrvPVD8I.js +32 -0
- package/dist/loadCatalog-BHlH2S6H.js +2349 -0
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +4 -4
- package/dist/{useTranslator-Q85hi4qz.js → locale-BGrZM4ow.js} +31 -3
- package/dist/markdown-JcCeKquw.js +23 -0
- package/dist/metadata-list-BEmAuMYs.js +13 -0
- package/dist/more-menu-B_dod4C-.js +7 -0
- package/dist/multi-selector-B_pe6KkZ.js +48 -0
- package/dist/nav-CoUOgByC.js +50 -0
- package/dist/number-input-Dw5NSQxh.js +18 -0
- package/dist/outline-BflaJV62.js +7 -0
- package/dist/pagination-Ds3yXCJw.js +58 -0
- package/dist/popover-DxCyd_Ua.js +7 -0
- package/dist/{searchResultMessage-CFmIy2Da.js → searchResultMessage-BEqDlHdV.js} +3 -2
- package/dist/selector-qWbffnIX.js +30 -0
- package/dist/{semantic-CXHSMwPK.d.ts → semantic-Dj507RuV.d.ts} +1 -1
- package/dist/shared-aoQdb_6V.js +23 -0
- package/dist/spinner-DVia-eDf.js +7 -0
- package/dist/stepper-BOgJs2Ht.js +32 -0
- package/dist/switch-B9xwxdOU.js +7 -0
- package/dist/tab-list-B_q2n-9d.js +7 -0
- package/dist/text-area-Co4Egt6b.js +14 -0
- package/dist/text-input-BtwGEoGv.js +8 -0
- package/dist/thumbnail-BI82Ijpj.js +15 -0
- package/dist/time-input-DL1_SV7j.js +68 -0
- package/dist/timestamp-CFBVCsHF.js +17 -0
- package/dist/toast-BvAnX6Vc.js +13 -0
- package/dist/token-DcbdjdZ2.js +7 -0
- package/dist/tokenizer-DD_UBzR7.js +29 -0
- package/dist/tree-list-NZ1EZhtd.js +7 -0
- package/dist/typeahead-BzrhssJi.js +24 -0
- package/dist/{types-Dcai2Icw.d.ts → types-D8t_HevJ.d.ts} +1 -0
- package/dist/{types-hB0M54I7.d.ts → types-DRpOiAlm.d.ts} +1 -1
- package/dist/{types-BwVJBE-G.d.ts → types-bAQk3F8G.d.ts} +1 -1
- package/dist/{types-Bq4Yl6CS.d.ts → types-uWxXh1Jm.d.ts} +7 -2
- package/dist/{useActionGroupTracking-BncJjk1A.js → useActionGroupTracking-B4niQ_tR.js} +3 -3
- package/dist/{useInputStatusIcon-DCnx00BM.js → useInputStatusIcon-Da2FiXwF.js} +1 -1
- package/dist/{useMenuDrillIn-C5eJCuO1.js → useMenuDrillIn-uQtOSny6.js} +9 -1
- package/package.json +1 -1
- package/styles/avatar.css +2 -2
- package/styles/badge.css +8 -0
- package/styles/button.css +3 -0
- package/styles/chat.css +10 -3
- package/styles/dropdown-menu.css +3 -3
- package/styles/field.css +9 -9
- package/styles/icon.css +4 -0
- package/styles/input-group.css +6 -6
- package/styles/list.css +7 -0
- package/styles/more-menu.css +4 -4
- package/styles/number-input.css +6 -6
- package/styles/power-search.css +3 -3
- package/styles/progress-bar.css +8 -0
- package/styles/status-dot.css +21 -1
- package/styles/stepper.css +11 -3
- package/styles/text-area.css +1 -1
- package/styles/touch-hit-area.css +37 -0
- package/styles.css +1 -0
- package/dist/context-CV6TrhJY.js +0 -2080
- package/dist/context-CZP3jfy-.js +0 -125
- package/dist/loadCatalog-Bulk4H7U.js +0 -143
- package/dist/upstreamMap-DrkVNtXW.js +0 -1073
- package/dist/{index-BqhgeAT4.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
package/dist/Theme/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as expandMotionScale, C as WidthBreakpointName, D as RadiusScaleConfig, E as expandTypeScale, M as expandColorScale, O as expandRadiusScale, S as WIDTH_BREAKPOINT_NAMES, T as TypeScaleConfig, _ as ThemeAdaptationRule, a as StyleOverrides, b as ThemeAdaptationWidthCondition, c as ThemeMode, d as ThemeTokenValue, f as ThemeTokens, g as ThemeAdaptationCondition, h as DEFAULT_WIDTH_BREAKPOINTS, i as MediaThemeProps, j as ColorScaleConfig, k as MotionScaleConfig, l as ThemeProps, m as TypographyRole, n as DefineThemeInput, o as ThemeDefinition, p as TypographyConfig, r as MediaThemeMode, t as ComponentStyleMap, u as ThemeSurfaceInput, v as ThemeAdaptationTypographyConfig, w as WidthBreakpoints, x as ThemeAdaptations, y as ThemeAdaptationValue } from "../types-
|
|
2
|
-
import { a as _default$1, c as
|
|
3
|
-
export { type ColorScaleConfig, type ComponentStyleMap, DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, type DataTokenName, type DefineThemeInput, _default as MediaTheme, type MediaThemeMode, type MediaThemeProps, type MotionScaleConfig, type RadiusScaleConfig, type StyleOverrides, _default$1 as Theme, type ThemeAdaptationCondition, type ThemeAdaptationRule, type ThemeAdaptationTypographyConfig, type ThemeAdaptationValue, type ThemeAdaptationWidthCondition, type ThemeAdaptations, type ThemeDefinition, type ThemeMode, type ThemeProps, type ThemeSurfaceInput, type ThemeTokenValue, type ThemeTokens, type TypeScaleConfig, type TypographyConfig, type TypographyRole, type UseMediaThemeReturn, type UseThemeReturn, WIDTH_BREAKPOINT_NAMES, type WidthBreakpointName, type WidthBreakpoints, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
|
|
1
|
+
import { A as expandMotionScale, C as WidthBreakpointName, D as RadiusScaleConfig, E as expandTypeScale, M as expandColorScale, O as expandRadiusScale, S as WIDTH_BREAKPOINT_NAMES, T as TypeScaleConfig, _ as ThemeAdaptationRule, a as StyleOverrides, b as ThemeAdaptationWidthCondition, c as ThemeMode, d as ThemeTokenValue, f as ThemeTokens, g as ThemeAdaptationCondition, h as DEFAULT_WIDTH_BREAKPOINTS, i as MediaThemeProps, j as ColorScaleConfig, k as MotionScaleConfig, l as ThemeProps, m as TypographyRole, n as DefineThemeInput, o as ThemeDefinition, p as TypographyConfig, r as MediaThemeMode, t as ComponentStyleMap, u as ThemeSurfaceInput, v as ThemeAdaptationTypographyConfig, w as WidthBreakpoints, x as ThemeAdaptations, y as ThemeAdaptationValue } from "../types-uWxXh1Jm.js";
|
|
2
|
+
import { a as _default$1, c as defineTheme, d as normalizeTokenName, f as DATA_TOKEN_DEFAULTS, i as useMediaTheme, l as isDefinedTheme, n as useTheme, o as STATUS_COLOR_DEFAULTS, p as DataTokenName, r as UseMediaThemeReturn, s as _default, t as UseThemeReturn, u as neutralTheme } from "../index-Bfm6mF-r.js";
|
|
3
|
+
export { type ColorScaleConfig, type ComponentStyleMap, DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, type DataTokenName, type DefineThemeInput, _default as MediaTheme, type MediaThemeMode, type MediaThemeProps, type MotionScaleConfig, type RadiusScaleConfig, STATUS_COLOR_DEFAULTS, type StyleOverrides, _default$1 as Theme, type ThemeAdaptationCondition, type ThemeAdaptationRule, type ThemeAdaptationTypographyConfig, type ThemeAdaptationValue, type ThemeAdaptationWidthCondition, type ThemeAdaptations, type ThemeDefinition, type ThemeMode, type ThemeProps, type ThemeSurfaceInput, type ThemeTokenValue, type ThemeTokens, type TypeScaleConfig, type TypographyConfig, type TypographyRole, type UseMediaThemeReturn, type UseThemeReturn, WIDTH_BREAKPOINT_NAMES, type WidthBreakpointName, type WidthBreakpoints, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
|
package/dist/Theme/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as neutralTheme, c as
|
|
2
|
-
import { a as normalizeTokenName,
|
|
3
|
-
export { DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, _sfc_main as MediaTheme, _sfc_main$1 as Theme, WIDTH_BREAKPOINT_NAMES, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
|
|
1
|
+
import { a as neutralTheme, c as expandRadiusScale, d as DEFAULT_WIDTH_BREAKPOINTS, f as WIDTH_BREAKPOINT_NAMES, i as isDefinedTheme, l as expandMotionScale, n as _sfc_main$1, o as STATUS_COLOR_DEFAULTS, r as defineTheme, s as expandTypeScale, t as useMediaTheme, u as expandColorScale } from "../Theme-1r_aWHvr.js";
|
|
2
|
+
import { a as normalizeTokenName, d as DATA_TOKEN_DEFAULTS, n as useTheme, t as _sfc_main } from "../MediaTheme-BVKUsMfC.js";
|
|
3
|
+
export { DATA_TOKEN_DEFAULTS, DEFAULT_WIDTH_BREAKPOINTS, _sfc_main as MediaTheme, STATUS_COLOR_DEFAULTS, _sfc_main$1 as Theme, WIDTH_BREAKPOINT_NAMES, defineTheme, expandColorScale, expandMotionScale, expandRadiusScale, expandTypeScale, isDefinedTheme, neutralTheme, normalizeTokenName, useMediaTheme, useTheme };
|
|
@@ -3,7 +3,7 @@ import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
|
|
|
3
3
|
import { r as staticComponentIcons, t as mergeComponentIcons } from "./componentIcons-CFr2L6o3.js";
|
|
4
4
|
import { a as syntaxThemeStyle } from "./syntaxTheme-R7xnu5x5.js";
|
|
5
5
|
import { t as syntaxThemeKey } from "./syntaxContext-DmIfNNtb.js";
|
|
6
|
-
import { a as normalizeTokenName, c as
|
|
6
|
+
import { a as normalizeTokenName, c as contrastRatio, i as isPortableTokenName, l as parseColor, o as prefixTokenReferences, r as bridgeComponentTokens, s as compositeOver, u as relativeLuminance } from "./MediaTheme-BVKUsMfC.js";
|
|
7
7
|
import { computed, createBlock, createCommentVNode, createElementBlock, defineComponent, h, inject, markRaw, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, renderSlot, unref, useAttrs, useTemplateRef, watch } from "vue";
|
|
8
8
|
import "../styles/theme.css";
|
|
9
9
|
//#region src/Theme/adaptationTypes.ts
|
|
@@ -1641,6 +1641,314 @@ function tokenRule(selector, tokens, location) {
|
|
|
1641
1641
|
return body ? [`${selector} {\n${body}\n}`] : [];
|
|
1642
1642
|
}
|
|
1643
1643
|
//#endregion
|
|
1644
|
+
//#region src/Theme/statusColor.ts
|
|
1645
|
+
const WHITE$1 = {
|
|
1646
|
+
r: 255,
|
|
1647
|
+
g: 255,
|
|
1648
|
+
b: 255,
|
|
1649
|
+
a: 1
|
|
1650
|
+
};
|
|
1651
|
+
function toLinear(value) {
|
|
1652
|
+
const c = value / 255;
|
|
1653
|
+
return c <= .04045 ? c / 12.92 : ((c + .055) / 1.055) ** 2.4;
|
|
1654
|
+
}
|
|
1655
|
+
function fromLinear(value) {
|
|
1656
|
+
return (value <= .0031308 ? 12.92 * value : 1.055 * value ** (1 / 2.4) - .055) * 255;
|
|
1657
|
+
}
|
|
1658
|
+
function toOklch({ r, g, b }) {
|
|
1659
|
+
const lr = toLinear(r);
|
|
1660
|
+
const lg = toLinear(g);
|
|
1661
|
+
const lb = toLinear(b);
|
|
1662
|
+
const l = Math.cbrt(.4122214708 * lr + .5363325363 * lg + .0514459929 * lb);
|
|
1663
|
+
const m = Math.cbrt(.2119034982 * lr + .6806995451 * lg + .1073969566 * lb);
|
|
1664
|
+
const s = Math.cbrt(.0883024619 * lr + .2817188376 * lg + .6299787005 * lb);
|
|
1665
|
+
const L = .2104542553 * l + .793617785 * m - .0040720468 * s;
|
|
1666
|
+
const A = 1.9779984951 * l - 2.428592205 * m + .4505937099 * s;
|
|
1667
|
+
const B = .0259040371 * l + .7827717662 * m - .808675766 * s;
|
|
1668
|
+
return {
|
|
1669
|
+
l: L,
|
|
1670
|
+
c: Math.hypot(A, B),
|
|
1671
|
+
h: Math.atan2(B, A)
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
function oklchToLinear({ l: L, c, h }) {
|
|
1675
|
+
const A = c * Math.cos(h);
|
|
1676
|
+
const B = c * Math.sin(h);
|
|
1677
|
+
const l = (L + .3963377774 * A + .2158037573 * B) ** 3;
|
|
1678
|
+
const m = (L - .1055613458 * A - .0638541728 * B) ** 3;
|
|
1679
|
+
const s = (L - .0894841775 * A - 1.291485548 * B) ** 3;
|
|
1680
|
+
return [
|
|
1681
|
+
4.0767416621 * l - 3.3077115913 * m + .2309699292 * s,
|
|
1682
|
+
-1.2684380046 * l + 2.6097574011 * m - .3413193965 * s,
|
|
1683
|
+
-.0041960863 * l - .7034186147 * m + 1.707614701 * s
|
|
1684
|
+
];
|
|
1685
|
+
}
|
|
1686
|
+
function linearToRgb(channels) {
|
|
1687
|
+
const [r = 0, g = 0, b = 0] = channels.map((v) => fromLinear(Math.min(1, Math.max(0, v))));
|
|
1688
|
+
return {
|
|
1689
|
+
r,
|
|
1690
|
+
g,
|
|
1691
|
+
b,
|
|
1692
|
+
a: 1
|
|
1693
|
+
};
|
|
1694
|
+
}
|
|
1695
|
+
/** OKLCH to sRGB, lowering chroma at the same lightness and hue until it fits. */
|
|
1696
|
+
function fromOklch(color) {
|
|
1697
|
+
let c = color.c;
|
|
1698
|
+
for (let i = 0; i < 40; i++) {
|
|
1699
|
+
const rgb = oklchToLinear({
|
|
1700
|
+
...color,
|
|
1701
|
+
c
|
|
1702
|
+
});
|
|
1703
|
+
if (rgb.every((v) => v >= -1e-4 && v <= 1.0001)) return linearToRgb(rgb);
|
|
1704
|
+
c *= .9;
|
|
1705
|
+
}
|
|
1706
|
+
return linearToRgb(oklchToLinear({
|
|
1707
|
+
...color,
|
|
1708
|
+
c: 0
|
|
1709
|
+
}));
|
|
1710
|
+
}
|
|
1711
|
+
/** Lowest chroma, and the lightness band, at which a color still reads as a hue. */
|
|
1712
|
+
const CHROMA_FLOOR = .03;
|
|
1713
|
+
const LIGHTNESS_RANGE = [.2, .95];
|
|
1714
|
+
/** Whether a color reads as a hue rather than grey, near-black, or near-white. */
|
|
1715
|
+
function isChromatic(color) {
|
|
1716
|
+
const { l, c } = toOklch(color);
|
|
1717
|
+
return c >= CHROMA_FLOOR && l >= LIGHTNESS_RANGE[0] && l <= LIGHTNESS_RANGE[1];
|
|
1718
|
+
}
|
|
1719
|
+
/** Paint a possibly translucent color over an opaque backdrop. */
|
|
1720
|
+
function opaqueOver(color, backdrop = WHITE$1) {
|
|
1721
|
+
return color.a < 1 ? compositeOver(color, backdrop) : color;
|
|
1722
|
+
}
|
|
1723
|
+
/**
|
|
1724
|
+
* Move `color` along OKLCH lightness, at its own hue, until it reaches
|
|
1725
|
+
* `ratio` against every backdrop. It moves away from the backdrops: darker on
|
|
1726
|
+
* light ones, lighter on dark ones. The color comes back unchanged when it
|
|
1727
|
+
* already passes, and `null` means no lightness at that hue gets there.
|
|
1728
|
+
*/
|
|
1729
|
+
function solveLightness(color, backdrops, ratio) {
|
|
1730
|
+
const passes = (candidate) => backdrops.every((backdrop) => contrastRatio(candidate, backdrop) >= ratio);
|
|
1731
|
+
const opaque = {
|
|
1732
|
+
...color,
|
|
1733
|
+
a: 1
|
|
1734
|
+
};
|
|
1735
|
+
if (passes(opaque)) return opaque;
|
|
1736
|
+
const meanLuminance = backdrops.reduce((sum, b) => sum + relativeLuminance(b), 0) / backdrops.length;
|
|
1737
|
+
const base = toOklch(opaque);
|
|
1738
|
+
const darker = meanLuminance > .18;
|
|
1739
|
+
const at = (l) => fromOklch({
|
|
1740
|
+
...base,
|
|
1741
|
+
l
|
|
1742
|
+
});
|
|
1743
|
+
const target = at(darker ? 0 : 1);
|
|
1744
|
+
if (!passes(target)) return null;
|
|
1745
|
+
let lo = darker ? 0 : base.l;
|
|
1746
|
+
let hi = darker ? base.l : 1;
|
|
1747
|
+
for (let i = 0; i < 32; i++) {
|
|
1748
|
+
const mid = (lo + hi) / 2;
|
|
1749
|
+
if (darker === passes(at(mid))) lo = mid;
|
|
1750
|
+
else hi = mid;
|
|
1751
|
+
}
|
|
1752
|
+
const solved = at(darker ? lo : hi);
|
|
1753
|
+
return passes(solved) ? solved : target;
|
|
1754
|
+
}
|
|
1755
|
+
/** `#RRGGBB` for an opaque color. */
|
|
1756
|
+
function toHex(color) {
|
|
1757
|
+
return formatHex(Math.round(color.r), Math.round(color.g), Math.round(color.b));
|
|
1758
|
+
}
|
|
1759
|
+
//#endregion
|
|
1760
|
+
//#region src/Theme/statusColorDefaults.ts
|
|
1761
|
+
/**
|
|
1762
|
+
* Status color defaults, by upstream name.
|
|
1763
|
+
*
|
|
1764
|
+
* The CSS lives in `@astryx-vue/themes/neutral/base.css`, the default theme.
|
|
1765
|
+
* This is the same group for code that measures colors instead of painting
|
|
1766
|
+
* them: status-role derivation reads a fill or surface a custom theme leaves
|
|
1767
|
+
* unset from here. `statusColorDefaults.test.ts` keeps the two in sync.
|
|
1768
|
+
*
|
|
1769
|
+
* The table covers every color the derivation measures (surfaces, the light
|
|
1770
|
+
* and dark content colors, each status fill and pale fill) and the roles it
|
|
1771
|
+
* derives (content on the fill, status text, content on the pale fill).
|
|
1772
|
+
*/
|
|
1773
|
+
const STATUS_COLOR_DEFAULTS = {
|
|
1774
|
+
"--color-background-surface": "light-dark(#ffffff, #262626)",
|
|
1775
|
+
"--color-background-card": "light-dark(#ffffff, #1b1b1b)",
|
|
1776
|
+
"--color-on-dark": "#ffffff",
|
|
1777
|
+
"--color-on-light": "#111111",
|
|
1778
|
+
"--color-info": "light-dark(#0074e2, #6d9cfe)",
|
|
1779
|
+
"--color-info-muted": "light-dark(#b9d7ff, #88bcff3D)",
|
|
1780
|
+
"--color-on-info": "light-dark(#ffffff, #111111)",
|
|
1781
|
+
"--color-text-info": "light-dark(#0067ce, #a1caff)",
|
|
1782
|
+
"--color-on-info-muted": "light-dark(#003978, #a1caff)",
|
|
1783
|
+
"--color-success": "light-dark(#198100, #64af4c)",
|
|
1784
|
+
"--color-success-muted": "light-dark(#bce0bb, #90ca903d)",
|
|
1785
|
+
"--color-on-success": "light-dark(#ffffff, #111111)",
|
|
1786
|
+
"--color-text-success": "light-dark(#2f7d33, #90ca90)",
|
|
1787
|
+
"--color-on-success-muted": "light-dark(#00490b, #90ca90)",
|
|
1788
|
+
"--color-warning": "#ffce2f",
|
|
1789
|
+
"--color-warning-muted": "light-dark(#fae19e, #e2b6233d)",
|
|
1790
|
+
"--color-on-warning": "#111111",
|
|
1791
|
+
"--color-text-warning": "light-dark(#836700, #eec448)",
|
|
1792
|
+
"--color-on-warning-muted": "light-dark(#4b3900, #eec448)",
|
|
1793
|
+
"--color-error": "light-dark(#c9303a, #ff705d)",
|
|
1794
|
+
"--color-error-muted": "light-dark(#ffc4be, #ff98903d)",
|
|
1795
|
+
"--color-on-error": "light-dark(#ffffff, #111111)",
|
|
1796
|
+
"--color-text-error": "light-dark(#c0262c, #ffaea7)",
|
|
1797
|
+
"--color-on-error-muted": "light-dark(#76000c, #ffaea7)"
|
|
1798
|
+
};
|
|
1799
|
+
//#endregion
|
|
1800
|
+
//#region src/Theme/statusRoleDerivation.ts
|
|
1801
|
+
const STATUS_NAMES = [
|
|
1802
|
+
"info",
|
|
1803
|
+
"success",
|
|
1804
|
+
"warning",
|
|
1805
|
+
"error"
|
|
1806
|
+
];
|
|
1807
|
+
const TEXT_RATIO = 4.5;
|
|
1808
|
+
const SOLVE_RATIO = 4.58;
|
|
1809
|
+
const WHITE = {
|
|
1810
|
+
r: 255,
|
|
1811
|
+
g: 255,
|
|
1812
|
+
b: 255,
|
|
1813
|
+
a: 1
|
|
1814
|
+
};
|
|
1815
|
+
const BLACK = {
|
|
1816
|
+
r: 0,
|
|
1817
|
+
g: 0,
|
|
1818
|
+
b: 0,
|
|
1819
|
+
a: 1
|
|
1820
|
+
};
|
|
1821
|
+
const DEFAULTS = Object.fromEntries(Object.entries(STATUS_COLOR_DEFAULTS).map(([name, value]) => [normalizeTokenName(name), value]));
|
|
1822
|
+
const name = (bare) => normalizeTokenName(bare);
|
|
1823
|
+
const SURFACE = name("--color-background-surface");
|
|
1824
|
+
const CARD = name("--color-background-card");
|
|
1825
|
+
const ON_DARK = name("--color-on-dark");
|
|
1826
|
+
const ON_LIGHT = name("--color-on-light");
|
|
1827
|
+
const fillOf = (status) => name(`--color-${status}`);
|
|
1828
|
+
const mutedOf = (status) => name(`--color-${status}-muted`);
|
|
1829
|
+
const ROLE_TOKENS = {
|
|
1830
|
+
on: (s) => name(`--color-on-${s}`),
|
|
1831
|
+
text: (s) => name(`--color-text-${s}`),
|
|
1832
|
+
onMuted: (s) => name(`--color-on-${s}-muted`)
|
|
1833
|
+
};
|
|
1834
|
+
const ROLES = Object.keys(ROLE_TOKENS);
|
|
1835
|
+
/** Roles that follow the text role. */
|
|
1836
|
+
const TEXT_FOLLOWERS = [(s) => name(`--color-icon-${s}`), (s) => name(`--color-border-${s}`)];
|
|
1837
|
+
/** Split on commas outside parentheses. */
|
|
1838
|
+
function splitTopLevel(input) {
|
|
1839
|
+
const parts = [];
|
|
1840
|
+
let depth = 0;
|
|
1841
|
+
let current = "";
|
|
1842
|
+
for (const ch of input) {
|
|
1843
|
+
if (ch === "(") depth++;
|
|
1844
|
+
if (ch === ")") depth--;
|
|
1845
|
+
if (ch === "," && depth === 0) {
|
|
1846
|
+
parts.push(current.trim());
|
|
1847
|
+
current = "";
|
|
1848
|
+
continue;
|
|
1849
|
+
}
|
|
1850
|
+
current += ch;
|
|
1851
|
+
}
|
|
1852
|
+
parts.push(current.trim());
|
|
1853
|
+
return parts;
|
|
1854
|
+
}
|
|
1855
|
+
const VAR_REF = /^var\(\s*(--[\w-]+)\s*(?:,(.*))?\)$/s;
|
|
1856
|
+
/**
|
|
1857
|
+
* One token's concrete value in a mode, following `light-dark()` and `var()`
|
|
1858
|
+
* through the theme's tokens and then the defaults.
|
|
1859
|
+
*/
|
|
1860
|
+
function resolveToken(tokens, token, mode, seen) {
|
|
1861
|
+
if (seen.has(token)) return void 0;
|
|
1862
|
+
const raw = tokens[token] ?? DEFAULTS[token];
|
|
1863
|
+
return raw === void 0 ? void 0 : resolveValue(tokens, raw, mode, /* @__PURE__ */ new Set([...seen, token]));
|
|
1864
|
+
}
|
|
1865
|
+
function resolveValue(tokens, raw, mode, seen) {
|
|
1866
|
+
const value = raw.trim();
|
|
1867
|
+
if (/^light-dark\(/i.test(value) && value.endsWith(")")) {
|
|
1868
|
+
const [light = "", dark = ""] = splitTopLevel(value.slice(value.indexOf("(") + 1, -1));
|
|
1869
|
+
return resolveValue(tokens, mode === "light" ? light : dark, mode, seen);
|
|
1870
|
+
}
|
|
1871
|
+
const ref = VAR_REF.exec(value);
|
|
1872
|
+
if (ref?.[1]) return resolveToken(tokens, ref[1], mode, seen) ?? (ref[2] ? resolveValue(tokens, ref[2], mode, seen) : void 0);
|
|
1873
|
+
return value;
|
|
1874
|
+
}
|
|
1875
|
+
function colorAt(tokens, token, mode) {
|
|
1876
|
+
const value = resolveToken(tokens, token, mode, /* @__PURE__ */ new Set());
|
|
1877
|
+
return value === void 0 ? null : parseColor(value);
|
|
1878
|
+
}
|
|
1879
|
+
/** The fill's hue, or the default fill's when the theme's fill is grey. */
|
|
1880
|
+
function statusHue(tokens, status, mode) {
|
|
1881
|
+
const color = colorAt(tokens, fillOf(status), mode);
|
|
1882
|
+
if (color !== null && isChromatic(color)) return {
|
|
1883
|
+
...color,
|
|
1884
|
+
a: 1
|
|
1885
|
+
};
|
|
1886
|
+
const fallback = colorAt({}, fillOf(status), mode);
|
|
1887
|
+
return fallback === null ? null : {
|
|
1888
|
+
...fallback,
|
|
1889
|
+
a: 1
|
|
1890
|
+
};
|
|
1891
|
+
}
|
|
1892
|
+
function deriveForMode(tokens, status, mode) {
|
|
1893
|
+
const source = colorAt(tokens, fillOf(status), mode);
|
|
1894
|
+
const hue = statusHue(tokens, status, mode);
|
|
1895
|
+
const surface = colorAt(tokens, SURFACE, mode);
|
|
1896
|
+
const cardColor = colorAt(tokens, CARD, mode);
|
|
1897
|
+
const muted = colorAt(tokens, mutedOf(status), mode);
|
|
1898
|
+
const onDark = colorAt(tokens, ON_DARK, mode);
|
|
1899
|
+
const onLight = colorAt(tokens, ON_LIGHT, mode);
|
|
1900
|
+
if (!source || !hue || !surface || !cardColor || !muted || !onDark || !onLight) return null;
|
|
1901
|
+
const opaqueSurface = opaqueOver(surface);
|
|
1902
|
+
const card = opaqueOver(cardColor, opaqueSurface);
|
|
1903
|
+
const fill = opaqueOver(source, opaqueSurface);
|
|
1904
|
+
const roles = {};
|
|
1905
|
+
const lightInk = opaqueOver(onDark, fill);
|
|
1906
|
+
const darkInk = opaqueOver(onLight, fill);
|
|
1907
|
+
const themeInk = contrastRatio(lightInk, fill) >= contrastRatio(darkInk, fill) ? lightInk : darkInk;
|
|
1908
|
+
roles.on = contrastRatio(themeInk, fill) >= TEXT_RATIO ? themeInk : contrastRatio(WHITE, fill) >= contrastRatio(BLACK, fill) ? WHITE : BLACK;
|
|
1909
|
+
const text = solveLightness(hue, [opaqueSurface, card], SOLVE_RATIO);
|
|
1910
|
+
if (text) roles.text = text;
|
|
1911
|
+
const onMuted = solveLightness(hue, [compositeOver(muted, opaqueSurface)], SOLVE_RATIO);
|
|
1912
|
+
if (onMuted) roles.onMuted = onMuted;
|
|
1913
|
+
return roles;
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* `light-dark()` values for every status role a theme leaves unset while
|
|
1917
|
+
* setting a color that role is measured against, plus icon and border roles
|
|
1918
|
+
* that follow a text role the theme sets or gets here.
|
|
1919
|
+
*
|
|
1920
|
+
* `tokens` are the theme's own `--astryx-` prefixed values.
|
|
1921
|
+
*/
|
|
1922
|
+
function deriveStatusRoleTokens(tokens) {
|
|
1923
|
+
const authored = (token) => tokens[token] !== void 0;
|
|
1924
|
+
const surfaceSet = authored(SURFACE) || authored(CARD);
|
|
1925
|
+
const inkSet = authored(ON_DARK) || authored(ON_LIGHT);
|
|
1926
|
+
const derived = {};
|
|
1927
|
+
for (const status of STATUS_NAMES) {
|
|
1928
|
+
const fillSet = authored(fillOf(status));
|
|
1929
|
+
const affects = {
|
|
1930
|
+
on: fillSet || inkSet,
|
|
1931
|
+
text: fillSet || surfaceSet,
|
|
1932
|
+
onMuted: fillSet || authored(mutedOf(status)) || surfaceSet
|
|
1933
|
+
};
|
|
1934
|
+
const light = deriveForMode(tokens, status, "light");
|
|
1935
|
+
const dark = deriveForMode(tokens, status, "dark");
|
|
1936
|
+
if (light && dark) for (const role of ROLES) {
|
|
1937
|
+
const token = ROLE_TOKENS[role](status);
|
|
1938
|
+
const pair = [light[role], dark[role]];
|
|
1939
|
+
if (!affects[role] || authored(token) || !pair[0] || !pair[1]) continue;
|
|
1940
|
+
derived[token] = `light-dark(${toHex(pair[0])}, ${toHex(pair[1])})`;
|
|
1941
|
+
}
|
|
1942
|
+
const textRole = ROLE_TOKENS.text(status);
|
|
1943
|
+
if (!authored(textRole) && derived[textRole] === void 0) continue;
|
|
1944
|
+
for (const follower of TEXT_FOLLOWERS) {
|
|
1945
|
+
const token = follower(status);
|
|
1946
|
+
if (!authored(token) && !tokens[textRole]?.includes(token)) derived[token] = `var(${textRole})`;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
return derived;
|
|
1950
|
+
}
|
|
1951
|
+
//#endregion
|
|
1644
1952
|
//#region src/Theme/themeAxes.ts
|
|
1645
1953
|
function mergeRole(base, own) {
|
|
1646
1954
|
if (!base || !own) return own ?? base;
|
|
@@ -2401,6 +2709,12 @@ function sealIndicators(indicators) {
|
|
|
2401
2709
|
for (const [name, component] of Object.entries(indicators)) if (component) sealed[name] = markRaw(component);
|
|
2402
2710
|
return sealed;
|
|
2403
2711
|
}
|
|
2712
|
+
/** The base's tokens without the ones it derived, so this theme derives its own. */
|
|
2713
|
+
function authoredBaseTokens(base) {
|
|
2714
|
+
const tokens = { ...base?.tokens };
|
|
2715
|
+
for (const name of base?.derivedTokens ?? []) delete tokens[name];
|
|
2716
|
+
return tokens;
|
|
2717
|
+
}
|
|
2404
2718
|
function assertTargets(components) {
|
|
2405
2719
|
for (const target of Object.keys(components ?? {})) assertTargetName(target);
|
|
2406
2720
|
}
|
|
@@ -2415,6 +2729,11 @@ function assertTargets(components) {
|
|
|
2415
2729
|
* `extends` starts from everything the base theme resolved to: tokens,
|
|
2416
2730
|
* local tokens, component styles, surfaces, adaptations, icons, indicators.
|
|
2417
2731
|
* This theme's own values win, and the result is self-contained.
|
|
2732
|
+
*
|
|
2733
|
+
* Status roles the theme does not set but whose colors it changes (a status
|
|
2734
|
+
* fill, a pale fill, a surface, or the light and dark content colors) are
|
|
2735
|
+
* computed against its own colors: content on each fill, status text, and
|
|
2736
|
+
* content on each pale fill. See `statusRoleDerivation.ts`.
|
|
2418
2737
|
*/
|
|
2419
2738
|
function defineTheme(input) {
|
|
2420
2739
|
if (!THEME_NAME.test(input.name)) throw new Error(`Theme name "${input.name}" must use letters, numbers, and hyphens.`);
|
|
@@ -2424,10 +2743,16 @@ function defineTheme(input) {
|
|
|
2424
2743
|
assertTargets(input.onLight?.components);
|
|
2425
2744
|
const base = input.extends;
|
|
2426
2745
|
const own = resolveThemeValues(input, "");
|
|
2427
|
-
const
|
|
2428
|
-
...base
|
|
2746
|
+
const authoredTokens = {
|
|
2747
|
+
...authoredBaseTokens(base),
|
|
2429
2748
|
...own.tokens
|
|
2430
2749
|
};
|
|
2750
|
+
const derivedStatusRoles = deriveStatusRoleTokens(authoredTokens);
|
|
2751
|
+
const tokens = {
|
|
2752
|
+
...authoredTokens,
|
|
2753
|
+
...derivedStatusRoles
|
|
2754
|
+
};
|
|
2755
|
+
const derivedTokens = Object.keys(derivedStatusRoles);
|
|
2431
2756
|
const components = mergeComponentMaps(base?.components, own.components);
|
|
2432
2757
|
const local = resolveLocalTokens(input.name, input.localTokens, base, tokens);
|
|
2433
2758
|
const ownAxes = {
|
|
@@ -2474,6 +2799,7 @@ function defineTheme(input) {
|
|
|
2474
2799
|
__astryxTheme: true,
|
|
2475
2800
|
name: input.name,
|
|
2476
2801
|
tokens,
|
|
2802
|
+
...derivedTokens.length > 0 ? { derivedTokens } : {},
|
|
2477
2803
|
...local ? {
|
|
2478
2804
|
localTokens: local.localTokens,
|
|
2479
2805
|
localTokenOwners: local.owners
|
|
@@ -2721,4 +3047,4 @@ function useMediaTheme() {
|
|
|
2721
3047
|
return { mode: inject(mediaThemeKey, null) ?? computed(() => "off") };
|
|
2722
3048
|
}
|
|
2723
3049
|
//#endregion
|
|
2724
|
-
export { neutralTheme as a,
|
|
3050
|
+
export { neutralTheme as a, expandRadiusScale as c, DEFAULT_WIDTH_BREAKPOINTS as d, WIDTH_BREAKPOINT_NAMES as f, isDefinedTheme as i, expandMotionScale as l, _sfc_main as n, STATUS_COLOR_DEFAULTS as o, defineTheme as r, expandTypeScale as s, useMediaTheme as t, expandColorScale as u };
|
package/dist/Thumbnail/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Thumbnail-
|
|
1
|
+
import { t as _sfc_main } from "../Thumbnail-CTkLFo-A.js";
|
|
2
2
|
export { _sfc_main as Thumbnail };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { t as usePressFeedback } from "./usePressFeedback-Bcjsw9vv.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
5
|
-
import {
|
|
4
|
+
import { t as _sfc_main$2 } from "./IconButton-C91rhbvu.js";
|
|
5
|
+
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
6
6
|
import { t as _sfc_main$3 } from "./Tooltip-CGHpFMnc.js";
|
|
7
|
-
import { t as
|
|
7
|
+
import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
|
|
8
|
+
import { t as _sfc_main$4 } from "./Spinner-DEVPDsD0.js";
|
|
9
|
+
import { t as thumbnailMessages } from "./thumbnail-BI82Ijpj.js";
|
|
8
10
|
import { t as _sfc_main$5 } from "./Skeleton-CrgWxJgr.js";
|
|
9
11
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, normalizeClass, normalizeStyle, openBlock, ref, unref, watch, withCtx } from "vue";
|
|
10
12
|
import "../styles/thumbnail.css";
|
|
@@ -63,7 +65,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
63
65
|
setup(__props, { emit: __emit }) {
|
|
64
66
|
const props = __props;
|
|
65
67
|
const emit = __emit;
|
|
66
|
-
const messages =
|
|
68
|
+
const messages = useComponentMessages({
|
|
69
|
+
spinner: spinnerMessages,
|
|
70
|
+
thumbnail: thumbnailMessages
|
|
71
|
+
});
|
|
67
72
|
const failedSrc = ref();
|
|
68
73
|
const instance = getCurrentInstance();
|
|
69
74
|
const press = usePressFeedback({ hasOverlay: false });
|
|
@@ -7,13 +7,15 @@ import { t as _sfc_main$5 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
|
7
7
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
8
8
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
9
9
|
import { t as _sfc_main$6 } from "./FieldIcon-DMtfe1Ne.js";
|
|
10
|
-
import { t as _sfc_main$7 } from "./IconButton-
|
|
11
|
-
import {
|
|
10
|
+
import { t as _sfc_main$7 } from "./IconButton-C91rhbvu.js";
|
|
11
|
+
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
12
12
|
import { a as parseISOTime, i as parseDisplayTime, n as formatISOTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
|
|
13
13
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
14
|
-
import { t as _sfc_main$8 } from "./Spinner-
|
|
14
|
+
import { t as _sfc_main$8 } from "./Spinner-DEVPDsD0.js";
|
|
15
15
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
16
|
+
import { t as dateInputMessages } from "./date-input-Bj3KSuoJ.js";
|
|
16
17
|
import { t as _sfc_main$9 } from "./PickerWheel-CSwUYfes.js";
|
|
18
|
+
import { n as dateTimeInputMessages, t as timeInputMessages } from "./time-input-DL1_SV7j.js";
|
|
17
19
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, openBlock, renderList, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
18
20
|
import "../styles/layer.css";
|
|
19
21
|
import "../styles/date-input.css";
|
|
@@ -37,7 +39,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
37
39
|
setup(__props, { emit: __emit }) {
|
|
38
40
|
const props = __props;
|
|
39
41
|
const emit = __emit;
|
|
40
|
-
const messages =
|
|
42
|
+
const messages = useComponentMessages({ dateTimeInput: dateTimeInputMessages });
|
|
41
43
|
const parsed = computed(() => props.modelValue ? parseISOTime(props.modelValue) : null);
|
|
42
44
|
const hour24 = computed(() => parsed.value?.hours ?? 0);
|
|
43
45
|
const minute = computed(() => parsed.value?.minutes ?? 0);
|
|
@@ -287,7 +289,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
287
289
|
const model = useModel(__props, "modelValue");
|
|
288
290
|
const attrs = useAttrs();
|
|
289
291
|
const ariaRequired = useAriaRequired(props);
|
|
290
|
-
const messages =
|
|
292
|
+
const messages = useComponentMessages({
|
|
293
|
+
dateInput: dateInputMessages,
|
|
294
|
+
timeInput: timeInputMessages
|
|
295
|
+
});
|
|
291
296
|
const sheetOpen = shallowRef(false);
|
|
292
297
|
const coarse = useMediaQuery("(pointer: coarse)");
|
|
293
298
|
const focused = shallowRef(false);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-
|
|
1
|
+
import { at as TimeInputSize, it as TimeInputProps, nt as _default, rt as TimeInputEmits } from "../index-dRBNR7Tq.js";
|
|
2
2
|
export { _default as TimeInput, type TimeInputEmits, type TimeInputProps, type TimeInputSize };
|
package/dist/TimeInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../TimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../TimeInput-BKfg3SZ7.js";
|
|
2
2
|
export { _sfc_main as TimeInput };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
2
2
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
3
3
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
4
|
-
import { t as _sfc_main$1 } from "./Field-
|
|
4
|
+
import { t as _sfc_main$1 } from "./Field-Dc15m78p.js";
|
|
5
5
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
6
|
-
import { t as _sfc_main$2 } from "./TimeField-
|
|
6
|
+
import { t as _sfc_main$2 } from "./TimeField-BGtS_m-U.js";
|
|
7
7
|
import { computed, createBlock, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, unref, useAttrs, useId, useModel, withCtx } from "vue";
|
|
8
8
|
//#region src/TimeInput/TimeInput.vue
|
|
9
9
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-
|
|
1
|
+
import { $ as FormatInstantOptions, G as TimestampColor, J as TimestampTooltipEntry, K as TimestampFormat, Q as formatRelativeTime, W as _default, X as TimestampTooltipLine, Y as TimestampTooltipFormat, Z as formatTooltipLines, et as InstantFormat, q as TimestampProps, tt as formatInstant } from "../index-dRBNR7Tq.js";
|
|
2
2
|
export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
|
package/dist/Timestamp/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as formatInstant } from "../formatInstant-BDWUIxS7.js";
|
|
2
|
-
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-
|
|
2
|
+
import { n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-B7H0KScU.js";
|
|
3
3
|
export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./IconButton-
|
|
2
|
-
import {
|
|
1
|
+
import { t as _sfc_main$2 } from "./IconButton-C91rhbvu.js";
|
|
2
|
+
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
3
|
import { t as _sfc_main$3 } from "./Text-WB-fpFne.js";
|
|
4
4
|
import { t as _sfc_main$4 } from "./HoverCard-CLcbBLBN.js";
|
|
5
5
|
import { t as _sfc_main$5 } from "./ComponentIcon-BRXBBKeG.js";
|
|
6
6
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
7
|
+
import { t as timestampMessages } from "./timestamp-CFBVCsHF.js";
|
|
7
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
9
|
import "../styles/timestamp.css";
|
|
9
10
|
//#region src/Timestamp/formatRelativeTime.ts
|
|
@@ -78,7 +79,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
78
79
|
},
|
|
79
80
|
setup(__props) {
|
|
80
81
|
const props = __props;
|
|
81
|
-
const messages =
|
|
82
|
+
const messages = useComponentMessages({ timestamp: timestampMessages });
|
|
82
83
|
const copiedKey = ref();
|
|
83
84
|
let resetTimer;
|
|
84
85
|
const hasLabel = computed(() => props.lines.some((line) => line.label != null && line.label !== ""));
|
|
@@ -222,7 +223,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
222
223
|
setup(__props) {
|
|
223
224
|
const props = __props;
|
|
224
225
|
const locale = useAstryxLocale();
|
|
225
|
-
const messages =
|
|
226
|
+
const messages = useComponentMessages({ timestamp: timestampMessages });
|
|
226
227
|
const now = ref(null);
|
|
227
228
|
let timer;
|
|
228
229
|
function parseValue(value) {
|
package/dist/Toast/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as useToast } from "../Toast-aI9QMW-L.js";
|
|
2
2
|
export { _sfc_main as Toast, _sfc_main$1 as ToastViewport, useToast };
|
|
@@ -2,10 +2,11 @@ import { d as hasInteractiveAncestor } from "./pressFeedback-Bwwpex9q.js";
|
|
|
2
2
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./Icon-BCHo7W0x.js";
|
|
4
4
|
import { r as useLayerConfig } from "./context-M-er0-Rk.js";
|
|
5
|
-
import { t as _sfc_main$3 } from "./IconButton-
|
|
6
|
-
import {
|
|
5
|
+
import { t as _sfc_main$3 } from "./IconButton-C91rhbvu.js";
|
|
6
|
+
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
7
7
|
import { i as whenModalSettled, r as useActiveModalOutlet } from "./modalOutlet-CUOcrhIu.js";
|
|
8
|
-
import {
|
|
8
|
+
import { t as toastMessages } from "./toast-BvAnX6Vc.js";
|
|
9
|
+
import { n as useTheme, t as _sfc_main$4 } from "./MediaTheme-BVKUsMfC.js";
|
|
9
10
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, markRaw, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, onUnmounted, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
10
11
|
import "../styles/toast.css";
|
|
11
12
|
//#region src/Toast/options.ts
|
|
@@ -284,7 +285,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
284
285
|
const isAlert = computed(() => props.type === "error");
|
|
285
286
|
const role = computed(() => isAlert.value ? "alert" : "status");
|
|
286
287
|
const ariaLive = computed(() => isAlert.value ? "assertive" : "polite");
|
|
287
|
-
const messages =
|
|
288
|
+
const messages = useComponentMessages({ toast: toastMessages });
|
|
288
289
|
const theme = useTheme();
|
|
289
290
|
const mediaFallback = computed(() => isAlert.value || theme.mode.value === "light" ? "dark" : "light");
|
|
290
291
|
const dismissLabel = computed(() => messages.value.toast.dismiss);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-
|
|
1
|
+
import { A as ToggleButtonEmits, B as ToggleButtonPressedChangeHandler, D as _default, E as _default$1, F as ToggleButtonGroupProps, H as ToggleButtonSize, I as ToggleButtonGroupSingleProps, L as ToggleButtonGroupSlots, M as ToggleButtonGroupEmits, N as ToggleButtonGroupMultipleProps, O as ToggleButtonChangeAction, P as ToggleButtonGroupOrientation, R as ToggleButtonGroupType, U as ToggleButtonSlots, V as ToggleButtonProps, j as ToggleButtonGroupBaseProps, k as ToggleButtonElevation, z as ToggleButtonGroupValue } from "../index-dRBNR7Tq.js";
|
|
2
2
|
export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-
|
|
1
|
+
import { n as _sfc_main$1, r as _sfc_main, t as ToggleButton_default } from "../ToggleButton-DI9I-LBH.js";
|
|
2
2
|
export { _sfc_main as ToggleButton, _sfc_main$1 as ToggleButtonGroup, ToggleButton_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as pressGroupItemProps } from "./context-
|
|
2
|
-
import { t as useActionGroupTracking } from "./useActionGroupTracking-
|
|
1
|
+
import { i as useTouchHitArea, n as buttonHitAreaContextKey, r as GROUP_HIT_AREA, s as pressGroupItemProps } from "./context-BJ9RkXYX.js";
|
|
2
|
+
import { t as useActionGroupTracking } from "./useActionGroupTracking-B4niQ_tR.js";
|
|
3
3
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./Button-
|
|
4
|
+
import { t as _sfc_main$2 } from "./Button-BeNp2zq_.js";
|
|
5
5
|
import { t as useCoarsePointer } from "./useCoarsePointer-GItEMrjX.js";
|
|
6
|
-
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, mergeProps, openBlock, provide, renderSlot, shallowRef, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
|
|
6
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, provide, renderSlot, shallowRef, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
|
|
7
7
|
import "../styles/toggle-button.css";
|
|
8
8
|
//#region src/ToggleButton/context.ts
|
|
9
9
|
const toggleButtonGroupContextKey = defineLayerScopedKey("astryx-toggle-button-group", null);
|
|
@@ -207,11 +207,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
207
207
|
/**
|
|
208
208
|
* 触屏为主的设备上,手指和笔可以按住一个切换按钮滑到别的上面,只切换松手时手指下的那个;
|
|
209
209
|
* 在组外松手什么都不切换。鼠标还是原生按钮的行为。
|
|
210
|
+
* 手指的目标通过组画的一圈热区朝 44px 长,长到离组外相邻控件一半间距为止;
|
|
211
|
+
* 按在热区上的触摸交给最近的成员。成员自己不画热区。
|
|
210
212
|
*/
|
|
211
213
|
const root = useTemplateRef("root");
|
|
212
214
|
const isCoarse = useCoarsePointer();
|
|
213
215
|
const tracksPress = computed(() => isCoarse.value && !props.isDisabled);
|
|
214
|
-
useActionGroupTracking(root, {
|
|
216
|
+
useActionGroupTracking(root, {
|
|
217
|
+
isEnabled: tracksPress,
|
|
218
|
+
growsTargets: true
|
|
219
|
+
});
|
|
220
|
+
useTouchHitArea(root, tracksPress, GROUP_HIT_AREA);
|
|
221
|
+
provide(buttonHitAreaContextKey, false);
|
|
215
222
|
provide(toggleButtonGroupContextKey, {
|
|
216
223
|
isDisabled,
|
|
217
224
|
selectedValues,
|
|
@@ -223,13 +230,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
223
230
|
return openBlock(), createElementBlock("div", {
|
|
224
231
|
ref_key: "root",
|
|
225
232
|
ref: root,
|
|
226
|
-
class: "astryx-toggle-button-group",
|
|
233
|
+
class: normalizeClass(["astryx-toggle-button-group", { "astryx-touch-hit-area-below": tracksPress.value }]),
|
|
227
234
|
"aria-label": __props.label,
|
|
228
235
|
"data-orientation": __props.orientation,
|
|
229
236
|
"data-press-tracking": tracksPress.value || void 0,
|
|
230
237
|
"data-size": size.value,
|
|
231
238
|
role: "group"
|
|
232
|
-
}, [renderSlot(_ctx.$slots, "default")],
|
|
239
|
+
}, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1);
|
|
233
240
|
};
|
|
234
241
|
}
|
|
235
242
|
});
|
package/dist/Token/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-
|
|
1
|
+
import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-J6YRJ7Ul.js";
|
|
2
2
|
export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
|