@astryx-vue/core 0.2.6 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BBhl5P1X.js → AlertDialog-C2inDZWG.js} +13 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-mrflO0Uy.js → AppShell-CumzH-8z.js} +3 -3
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.js} +47 -34
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-DLC_FFR5.js} +57 -13
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
- package/dist/Blockquote/index.js +1 -1
- package/dist/Blockquote-DRoKdcxZ.js +27 -0
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-eJ3FzTBD.js → BottomSheet-B4sc3F1S.js} +288 -140
- package/dist/{BottomSheet-DIVwbGr3.js → BottomSheet-m54uCMJN.js} +20 -4
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Breadcrumbs-CTaz7Kh4.js +223 -0
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
- package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-B7vIowKq.js → Calendar-BAqzzQm2.js} +5 -5
- package/dist/Card/index.d.ts +2 -2
- package/dist/Card/index.js +1 -1
- package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-DAkOa7KK.js → Carousel-DXC22UWq.js} +50 -33
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DVoI6UOA.js → Chat-BdJW6IX5.js} +152 -83
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-DJHCbwgC.js} +19 -11
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.js} +8 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-ChAfiw9T.js} +10 -7
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +3 -3
- package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
- package/dist/{CodeBlock-BUM3czCS.js → CodeBlock-Caaflp7C.js} +7 -3
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-D6wYS30d.js → CommandPalette-C_MClfAg.js} +146 -62
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Bil81sfq.js → ComplexSelector-BeVQaqRf.js} +94 -22
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DdLJnxNN.js → ContextMenu-C6hPYvYz.js} +299 -179
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-u2XKccpK.js → DateInput-BjLdmYor.js} +567 -76
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-u7LhH6up.js → DateRangeInput-Br3wVEfD.js} +99 -28
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/DateTimeInput-CAZBwoRe.js +562 -0
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +2 -2
- package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.js} +28 -11
- package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Divider/index.js +1 -1
- package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-SM_BEOgM.js → DropdownMenu-BdGmQVb1.js} +85 -57
- package/dist/{DropdownMenu-BEasdJ6R.js → DropdownMenu-BzQrNV9C.js} +481 -264
- package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
- package/dist/Field/index.d.ts +4 -3
- package/dist/Field/index.js +4 -3
- package/dist/{Field-D5gUEGw4.js → Field--OEsLBfE.js} +4 -3
- package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
- package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
- package/dist/FieldStatus/index.d.ts +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BpdiO1V8.js → FileInput-B_pUxB0Y.js} +106 -29
- package/dist/FormLayout/index.d.ts +1 -1
- package/dist/FormLayout/index.js +1 -1
- package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
- package/dist/Icon/index.d.ts +4 -4
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
- package/dist/Indicator/index.d.ts +2 -2
- package/dist/Indicator/index.js +2 -1
- package/dist/InputClearButton-CwXPan8c.js +40 -0
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +2 -2
- package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.js} +2 -2
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-kBapgKAQ.js} +5 -9
- package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
- package/dist/Kbd/index.js +1 -1
- package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
- package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
- package/dist/LayerProvider/index.js +1 -1
- package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-9X6eCUoY.js → Layout-JJRCG7Mf.js} +1 -1
- package/dist/{LayoutPanel-DeOh00p5.js → LayoutPanel-zM5vjrKS.js} +15 -8
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
- package/dist/Link/index.d.ts +2 -2
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.js} +29 -12
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
- package/dist/Markdown/index.d.ts +5 -2
- package/dist/Markdown/index.js +5 -2
- package/dist/Markdown/parser/index.d.ts +4 -0
- package/dist/Markdown/parser/index.js +3 -0
- package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
- package/dist/Markdown/plugin-protocol/index.js +107 -0
- package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
- package/dist/Markdown/plugin-renderer/index.js +42 -0
- package/dist/{Markdown-2CVyZDuB.js → Markdown-DhVfOvXk.js} +195 -484
- package/dist/MediaTheme-DlLqYhDy.js +433 -0
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-C3dkrM98.js → MobileNavToggle-pdoJFZHx.js} +60 -19
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-D1WFGqGU.js → MoreMenu-CFNqSRev.js} +87 -67
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/MultiSelector-DuVatmq5.js +1456 -0
- package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
- package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.js} +29 -26
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +2 -2
- package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
- package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput-B0vzOg3N.js +727 -0
- package/dist/Outline/index.d.ts +2 -2
- package/dist/Outline/index.js +2 -2
- package/dist/{Outline-755h-lMP.js → Outline-CfGv2F1o.js} +91 -6
- package/dist/OverflowList/index.d.ts +2 -2
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cc4BrjQg.js → Pagination-Bfe12018.js} +2 -2
- package/dist/PickerWheel-CSwUYfes.js +69 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CtoBfVlD.js → Popover-78dFjTb9.js} +28 -17
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DHoiObLn.js → PowerSearch-BoAMdFaT.js} +776 -586
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-BIipql-L.js} +94 -26
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.js} +57 -8
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-TPlUCAHD.js} +103 -50
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-CJiaALHm.js → ScrollableArea-0u6RWtGG.js} +14 -3
- package/dist/Scrollbars/index.d.ts +2 -0
- package/dist/Scrollbars/index.js +3 -0
- package/dist/Scrollbars-D_93hJYK.js +75 -0
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-BEqnhPaX.js} +17 -12
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-CPISLzp7.js +1049 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-Dtv8eA2j.js → SideNav-CN2QeAtY.js} +64 -41
- package/dist/Slider/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-DdVUadii.js +200 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stack/index.js +2 -2
- package/dist/{Stack-CjQEavuq.js → Stack-Bb_h60t3.js} +10 -3
- package/dist/{Stack-D_Bhs-3r.js → Stack-Bp-XN9J4.js} +20 -9
- package/dist/StatusDot/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
- package/dist/Table/index.d.ts +3 -3
- package/dist/Table/index.js +1 -1
- package/dist/{Table-hqZMmzfU.js → Table-BcrrylMX.js} +727 -448
- package/dist/Text/index.d.ts +2 -2
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-Ab5Sw60T.js → TextArea-DA9CCG_J.js} +104 -50
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.js} +71 -38
- package/dist/Theme/index.d.ts +3 -3
- package/dist/Theme/index.js +3 -2
- package/dist/Theme-BbDT8B_C.js +2125 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-B2ZAY59J.js} +13 -10
- package/dist/{TimeField-ByiJKBRM.js → TimeField-CpAgja9D.js} +299 -40
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-S8n946tp.js → TimeInput-Bw_lHS4M.js} +78 -9
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-xpQKCk0d.js → Timestamp-BFNuoTZ0.js} +5 -5
- package/dist/Toast/index.d.ts +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toast-DwnPjx6j.js +685 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DsntTYhQ.js → Token-BfS4vi__.js} +32 -17
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-41p035dX.js → Tokenizer-Ci3E5bvP.js} +109 -23
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CeSeEMX3.js → TopNav-gW59zp1o.js} +16 -15
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-k3xhFxkr.js → Typeahead-D4JjvjK4.js} +125 -26
- package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
- package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
- package/dist/characterReferences-BJ-jLhsR.js +65 -0
- package/dist/characters-rcDbGt71.d.ts +29 -0
- package/dist/characters-wTnzjkkR.js +58 -0
- package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
- package/dist/composables/index.d.ts +5 -4
- package/dist/composables/index.js +23 -18
- package/dist/{composables-CbKx9C1Y.js → composables-Bc02zKAO.js} +167 -197
- package/dist/context-B6UElI5X.js +5 -0
- package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
- package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
- package/dist/context-IvbU9c3T.js +8 -0
- package/dist/context-pjBxaMSh.js +28 -0
- package/dist/fieldParts--SyRZVQG.js +44 -0
- package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
- package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
- package/dist/hoverIntent-DMHGb85c.js +115 -0
- package/dist/{index-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
- package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
- package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
- package/dist/{index-BJMJ09K-.d.ts → index-BEZ4ezJk.d.ts} +1 -1
- package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
- package/dist/{index-CQCTKjIO.d.ts → index-BO9TY87G.d.ts} +5 -4
- package/dist/{index-BJSxFVXH.d.ts → index-BQEJj72c.d.ts} +21 -8
- package/dist/{index-BXk7Wng7.d.ts → index-BULhhnGf.d.ts} +1 -1
- package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
- package/dist/{index-BPYzIIYn.d.ts → index-BZKgbyN9.d.ts} +2 -2
- package/dist/index-BkUkm6Al.d.ts +11 -0
- package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
- package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
- package/dist/index-Bo-ofFyg.d.ts +166 -0
- package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
- package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
- package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
- package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
- package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
- package/dist/{index-csA1lH_0.d.ts → index-CJ6ajsUC.d.ts} +2 -2
- package/dist/{index-CY-KvZ9B.d.ts → index-CK-Dbh0f.d.ts} +1 -1
- package/dist/index-CKUfpmFL.d.ts +375 -0
- package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
- package/dist/{index-EFqQF2Bx.d.ts → index-CPtDjmcX.d.ts} +4 -4
- package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
- package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
- package/dist/{index-BNy3SW4S.d.ts → index-CTjkJP4x.d.ts} +32 -3
- package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
- package/dist/{index-YKCx03zD.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-BUEPz7BL.d.ts → index-CikMzeab.d.ts} +3 -3
- package/dist/{index-CdtZjkmG.d.ts → index-CpNlPLBF.d.ts} +183 -129
- package/dist/{index-N7OVZ38M.d.ts → index-Cs1xsHKi.d.ts} +28 -16
- package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
- package/dist/{index-HV6W3xCx.d.ts → index-D05JGsT3.d.ts} +5 -2
- package/dist/{index-CsTbMVDS.d.ts → index-D0_HsuC3.d.ts} +4 -4
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
- package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
- package/dist/{index-DamRHh1i.d.ts → index-DLAG3m9W.d.ts} +11 -1
- package/dist/{index-DUnDGFQE.d.ts → index-DNA2l1RN.d.ts} +1 -1
- package/dist/{index-WnUY4Kxu.d.ts → index-DRJZ-v1E.d.ts} +4 -4
- package/dist/{index-DYp2RWkM.d.ts → index-DY8Wph-A.d.ts} +3 -3
- package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
- package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
- package/dist/{index-jW-mP58D.d.ts → index-Dr4b_oji.d.ts} +22 -15
- package/dist/{index-uKnRGtzi.d.ts → index-Ds201-d2.d.ts} +18 -4
- package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
- package/dist/{index-DQmK3Lq_.d.ts → index-IfsSCj8J.d.ts} +19 -6
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
- package/dist/index-fAZaRruV.d.ts +125 -0
- package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
- package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
- package/dist/{index-DdGck82Y.d.ts → index-pNtfr-RW.d.ts} +2 -2
- package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
- package/dist/index.d.ts +84 -77
- package/dist/index.js +151 -134
- package/dist/inlineSize-BNe8wggI.js +66 -0
- package/dist/inputPresentation-BOyHkCDr.js +62 -0
- package/dist/interactionModality-ACpTMhak.js +44 -0
- package/dist/isApplePlatform-B1ju6F5B.js +27 -0
- package/dist/isRenderable-BnKHIqfd.js +21 -0
- package/dist/layerDepth-CNDh-IHb.js +181 -0
- package/dist/link-DuuA2eCL.js +30 -0
- package/dist/{loadCatalog-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
- package/dist/loadCatalog-eopw74qb.js +424 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -3
- package/dist/locale-CabGJlGp.js +343 -0
- package/dist/modalOutlet-CUOcrhIu.js +56 -0
- package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
- package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
- package/dist/protocol-DHxY0NI8.js +113 -0
- package/dist/protocol-RSeMzAN1.d.ts +238 -0
- package/dist/publicParser-B0MRoikr.d.ts +141 -0
- package/dist/publicParser-uHC_T0Fo.js +895 -0
- package/dist/resizableChannel-3vivrEcT.js +20 -0
- package/dist/safeUrl-CsvfcZ9m.js +54 -0
- package/dist/scopedProvide-C-Df7c15.js +30 -0
- package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
- package/dist/scrollLock-C3aT4-0z.js +102 -0
- package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-mCpJBvra.js} +5 -14
- package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
- package/dist/slug-C65CUsf9.js +32 -0
- package/dist/syntaxContext-DmIfNNtb.js +4 -0
- package/dist/triggerVariant-BsL8jMHs.js +16 -0
- package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
- package/dist/{types-H4Bbbxiw.d.ts → types-BnNTzEnd.d.ts} +1 -1
- package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
- package/dist/{types-BBWrcHMD.d.ts → types-Ckih2YJi.d.ts} +3 -2
- package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
- package/dist/upstreamMap-xr3gvREu.js +731 -0
- package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
- package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
- package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
- package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
- package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
- package/dist/{useIndicator-i1NORM7W.js → useIndicator-MZmfBWid.js} +5 -23
- package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
- package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
- package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
- package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
- package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
- package/dist/useMenuHover-Djreu23i.js +170 -0
- package/dist/useMenuPress-8foxY8z4.js +764 -0
- package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
- package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
- package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
- package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
- package/dist/usePressFeedback-BJCpjEpv.js +319 -0
- package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
- package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
- package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
- package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
- package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
- package/dist/useScrollableArea-BE8b3qm7.js +222 -0
- package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
- package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
- package/dist/useTranslator-BmWt2BBt.js +35 -0
- package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +5 -0
- package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
- package/dist/utils-z3Q6BGIJ.js +819 -0
- package/locales/SOURCE.json +1 -1
- package/package.json +24 -3
- package/reset.css +364 -1
- package/styles/avatar-group.css +9 -1
- package/styles/badge.css +8 -5
- package/styles/banner.css +124 -26
- package/styles/blockquote.css +1 -0
- package/styles/bordered-control.css +1 -1
- package/styles/bottom-sheet.css +74 -6
- package/styles/breadcrumbs.css +16 -2
- package/styles/button-group.css +3 -1
- package/styles/button.css +53 -11
- package/styles/card.css +1 -1
- package/styles/chat.css +16 -6
- package/styles/checkbox-input.css +10 -0
- package/styles/clickable-card.css +10 -3
- package/styles/collapsible.css +12 -5
- package/styles/command-palette.css +29 -14
- package/styles/complex-selector.css +22 -5
- package/styles/context-menu.css +3 -3
- package/styles/date-input.css +111 -1
- package/styles/dialog-header.css +4 -1
- package/styles/dialog.css +7 -0
- package/styles/dropdown-menu.css +12 -3
- package/styles/field.css +5 -0
- package/styles/form-layout.css +1 -0
- package/styles/heading.css +18 -8
- package/styles/icon.css +4 -0
- package/styles/kbd.css +1 -1
- package/styles/layer.css +72 -0
- package/styles/list.css +9 -2
- package/styles/metadata-list.css +1 -0
- package/styles/mobile-nav.css +4 -1
- package/styles/multi-selector.css +48 -1
- package/styles/nav-item.css +9 -2
- package/styles/nav-menu.css +12 -2
- package/styles/number-input.css +9 -1
- package/styles/overflow-list.css +1 -1
- package/styles/popover.css +2 -1
- package/styles/power-search.css +5 -3
- package/styles/pressable.css +63 -22
- package/styles/progress-bar.css +15 -3
- package/styles/radio.css +16 -0
- package/styles/resize-handle.css +42 -0
- package/styles/scrollbars.css +28 -0
- package/styles/segmented-control.css +12 -4
- package/styles/selector.css +53 -1
- package/styles/side-nav.css +19 -0
- package/styles/slider.css +4 -3
- package/styles/spinner.css +48 -42
- package/styles/stepper.css +58 -4
- package/styles/switch.css +26 -0
- package/styles/tab-list.css +132 -3
- package/styles/table.css +88 -10
- package/styles/text-area.css +1 -1
- package/styles/text-input.css +1 -1
- package/styles/text.css +6 -6
- package/styles/thumbnail.css +11 -3
- package/styles/time-input.css +8 -0
- package/styles/toast.css +37 -3
- package/styles/token.css +2 -2
- package/styles/tokenizer.css +1 -1
- package/styles/toolbar.css +4 -1
- package/styles/tree-list.css +1 -1
- package/styles/typeahead.css +34 -1
- package/styles.css +1 -0
- package/dist/Blockquote-DFqBv_oJ.js +0 -18
- package/dist/Breadcrumbs-DPVaziH4.js +0 -141
- package/dist/ButtonGroup-ySQWanDP.js +0 -125
- package/dist/DateTimeInput-DHp683jZ.js +0 -268
- package/dist/MultiSelector-BeV98x7X.js +0 -988
- package/dist/NumberInput-AZ9x3oja.js +0 -473
- package/dist/Selector-DuVozKNq.js +0 -675
- package/dist/Spinner-9cYUCnDy.js +0 -84
- package/dist/Theme-CtaUWo4g.js +0 -1246
- package/dist/Toast-BuqIZV5z.js +0 -322
- package/dist/context-4PuqD1Ic.js +0 -4
- package/dist/context-D5-MwxnN.js +0 -4
- package/dist/index-BH9PzQ1F.d.ts +0 -87
- package/dist/link-C4_WogdF.js +0 -18
- package/dist/loadCatalog-CXKqEB9s.js +0 -877
- package/dist/locale-DgkZEMTn.js +0 -105
- package/dist/platform-B_9W_aHW.js +0 -33
- package/dist/scrollLock-BzIvIimL.js +0 -42
- package/dist/useMenuPress-D-FRNrBW.js +0 -573
- package/dist/useScrollableArea-DDk_CluT.js +0 -172
- /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
|
|
1
2
|
import { t as _sfc_main$2 } from "./VisuallyHidden-C7NN3VEP.js";
|
|
2
|
-
import { n as useButtonTooltip } from "./Button-
|
|
3
|
-
import { t as _sfc_main$3 } from "./ButtonTooltip-
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
3
|
+
import { n as useButtonTooltip } from "./Button-ONOoHdkg.js";
|
|
4
|
+
import { t as _sfc_main$3 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
5
|
+
import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
|
|
6
|
+
import { t as _sfc_main$4 } from "./Field--OEsLBfE.js";
|
|
7
|
+
import { t as useFieldPartStyling } from "./fieldParts--SyRZVQG.js";
|
|
8
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx, withKeys } from "vue";
|
|
6
9
|
import "../styles/button.css";
|
|
7
10
|
import "../styles/slider.css";
|
|
8
11
|
function clamp(value, min, max) {
|
|
@@ -35,6 +38,7 @@ const _hoisted_1$1 = [
|
|
|
35
38
|
"tabindex",
|
|
36
39
|
"data-thumb-index",
|
|
37
40
|
"data-dragging",
|
|
41
|
+
"data-keyboard-focus",
|
|
38
42
|
"aria-valuemin",
|
|
39
43
|
"aria-valuemax",
|
|
40
44
|
"aria-valuenow",
|
|
@@ -62,9 +66,15 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
62
66
|
isDisabled: { type: Boolean },
|
|
63
67
|
isFocusable: { type: Boolean },
|
|
64
68
|
tooltipText: {},
|
|
65
|
-
dragging: { type: Boolean }
|
|
69
|
+
dragging: { type: Boolean },
|
|
70
|
+
keyboardFocus: { type: Boolean },
|
|
71
|
+
extraAttrs: {}
|
|
66
72
|
},
|
|
67
|
-
emits: [
|
|
73
|
+
emits: [
|
|
74
|
+
"keydown",
|
|
75
|
+
"focus",
|
|
76
|
+
"blur"
|
|
77
|
+
],
|
|
68
78
|
setup(__props, { emit: __emit }) {
|
|
69
79
|
const props = __props;
|
|
70
80
|
const emit = __emit;
|
|
@@ -89,6 +99,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
89
99
|
function focus() {
|
|
90
100
|
focused.value = true;
|
|
91
101
|
dismissed.value = false;
|
|
102
|
+
emit("focus");
|
|
103
|
+
}
|
|
104
|
+
function blur() {
|
|
105
|
+
focused.value = false;
|
|
106
|
+
emit("blur");
|
|
92
107
|
}
|
|
93
108
|
function enter() {
|
|
94
109
|
hovered.value = true;
|
|
@@ -97,16 +112,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
97
112
|
return (_ctx, _cache) => {
|
|
98
113
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
99
114
|
createCommentVNode(" eslint-disable-next-line vue-a11y/interactive-supports-focus -- The tested dynamic tabindex is always 0 or -1. "),
|
|
100
|
-
createElementVNode("div", {
|
|
115
|
+
createElementVNode("div", mergeProps(__props.extraAttrs, {
|
|
101
116
|
id: __props.id,
|
|
102
117
|
ref_key: "thumb",
|
|
103
118
|
ref: thumb,
|
|
104
119
|
class: "astryx-slider-thumb",
|
|
105
120
|
role: "slider",
|
|
106
|
-
style:
|
|
121
|
+
style: style.value,
|
|
107
122
|
tabindex: tabIndex.value,
|
|
108
123
|
"data-thumb-index": __props.index,
|
|
109
124
|
"data-dragging": __props.dragging || void 0,
|
|
125
|
+
"data-keyboard-focus": __props.keyboardFocus || void 0,
|
|
110
126
|
"aria-valuemin": __props.min,
|
|
111
127
|
"aria-valuemax": __props.max,
|
|
112
128
|
"aria-valuenow": __props.value,
|
|
@@ -118,10 +134,10 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
118
134
|
"aria-invalid": __props.isInvalid || void 0,
|
|
119
135
|
onKeydown: keydown,
|
|
120
136
|
onFocus: focus,
|
|
121
|
-
onBlur:
|
|
137
|
+
onBlur: blur,
|
|
122
138
|
onPointerenter: enter,
|
|
123
|
-
onPointerleave: _cache[
|
|
124
|
-
}, null,
|
|
139
|
+
onPointerleave: _cache[0] || (_cache[0] = ($event) => hovered.value = false)
|
|
140
|
+
}), null, 16, _hoisted_1$1),
|
|
125
141
|
__props.tooltipText ? (openBlock(), createBlock(_sfc_main$3, {
|
|
126
142
|
key: 0,
|
|
127
143
|
id: `${__props.id}-tooltip`,
|
|
@@ -130,8 +146,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
130
146
|
anchor: thumb.value,
|
|
131
147
|
open: open.value,
|
|
132
148
|
text: __props.tooltipText,
|
|
133
|
-
onPointerEnter: _cache[
|
|
134
|
-
onPointerLeave: _cache[
|
|
149
|
+
onPointerEnter: _cache[1] || (_cache[1] = ($event) => hovered.value = true),
|
|
150
|
+
onPointerLeave: _cache[2] || (_cache[2] = ($event) => hovered.value = false)
|
|
135
151
|
}, null, 8, [
|
|
136
152
|
"id",
|
|
137
153
|
"anchor",
|
|
@@ -158,6 +174,8 @@ function useSlider(options) {
|
|
|
158
174
|
return [Math.min(low, add(upper, -gap.value)), upper];
|
|
159
175
|
});
|
|
160
176
|
const dragging = shallowRef(null);
|
|
177
|
+
const keyboardFocus = shallowRef(null);
|
|
178
|
+
if (typeof document !== "undefined") trackInteractionModality();
|
|
161
179
|
let pointerId = null;
|
|
162
180
|
let latest;
|
|
163
181
|
watch([
|
|
@@ -175,10 +193,10 @@ function useSlider(options) {
|
|
|
175
193
|
function bounds(index) {
|
|
176
194
|
return [index === 1 ? add(values.value[0], gap.value) : min.value, values.value.length === 2 && index === 0 ? add(values.value[1], -gap.value) : max.value];
|
|
177
195
|
}
|
|
178
|
-
function update(index, raw) {
|
|
196
|
+
function update(index, raw, shouldSnap = true) {
|
|
179
197
|
const next = [...values.value];
|
|
180
198
|
const [lower, upper] = bounds(index);
|
|
181
|
-
next[index] = clamp(snap(raw, min.value, step.value), lower, upper);
|
|
199
|
+
next[index] = clamp(shouldSnap ? snap(raw, min.value, step.value) : raw, lower, upper);
|
|
182
200
|
const value = next.length === 2 ? [next[0], next[1]] : next[0];
|
|
183
201
|
latest = value;
|
|
184
202
|
if (next.some((v, i) => v !== values.value[i])) options.change(value);
|
|
@@ -204,6 +222,7 @@ function useSlider(options) {
|
|
|
204
222
|
dragging.value = index;
|
|
205
223
|
pointerId = event.pointerId;
|
|
206
224
|
options.track.value.querySelectorAll("[role=\"slider\"]")[index]?.focus({ preventScroll: true });
|
|
225
|
+
keyboardFocus.value = null;
|
|
207
226
|
update(index, raw);
|
|
208
227
|
options.track.value.setPointerCapture?.(event.pointerId);
|
|
209
228
|
}
|
|
@@ -219,8 +238,16 @@ function useSlider(options) {
|
|
|
219
238
|
if (options.track.value?.hasPointerCapture?.(event.pointerId)) options.track.value.releasePointerCapture(event.pointerId);
|
|
220
239
|
if (!p.isDisabled) options.end(value);
|
|
221
240
|
}
|
|
241
|
+
function thumbFocus(index) {
|
|
242
|
+
keyboardFocus.value = !p.isDisabled && getInteractionModality() === "keyboard" ? index : null;
|
|
243
|
+
}
|
|
244
|
+
function thumbBlur() {
|
|
245
|
+
keyboardFocus.value = null;
|
|
246
|
+
}
|
|
222
247
|
function keydown(index, event) {
|
|
223
|
-
if (p.isDisabled || event.defaultPrevented
|
|
248
|
+
if (p.isDisabled || event.defaultPrevented) return;
|
|
249
|
+
if (event.key !== "Shift" && !event.altKey && !event.ctrlKey && !event.metaKey && getInteractionModality() === "keyboard") keyboardFocus.value = index;
|
|
250
|
+
if (event.altKey || event.ctrlKey || event.metaKey) return;
|
|
224
251
|
const current = values.value[index];
|
|
225
252
|
const rtl = p.orientation !== "vertical" && options.track.value && getComputedStyle(options.track.value).direction === "rtl";
|
|
226
253
|
const offsets = {
|
|
@@ -237,7 +264,8 @@ function useSlider(options) {
|
|
|
237
264
|
else if (event.key in offsets) value = current + offsets[event.key] * step.value;
|
|
238
265
|
else return;
|
|
239
266
|
event.preventDefault();
|
|
240
|
-
|
|
267
|
+
const toBound = event.key === "Home" || event.key === "End";
|
|
268
|
+
options.end(update(index, value, !toBound));
|
|
241
269
|
}
|
|
242
270
|
return {
|
|
243
271
|
min,
|
|
@@ -246,10 +274,13 @@ function useSlider(options) {
|
|
|
246
274
|
values,
|
|
247
275
|
bounds,
|
|
248
276
|
dragging,
|
|
277
|
+
keyboardFocus,
|
|
249
278
|
pointerDown,
|
|
250
279
|
pointerMove,
|
|
251
280
|
pointerEnd,
|
|
252
|
-
keydown
|
|
281
|
+
keydown,
|
|
282
|
+
thumbFocus,
|
|
283
|
+
thumbBlur
|
|
253
284
|
};
|
|
254
285
|
}
|
|
255
286
|
//#endregion
|
|
@@ -261,7 +292,12 @@ const _hoisted_2 = [
|
|
|
261
292
|
"disabled",
|
|
262
293
|
"form"
|
|
263
294
|
];
|
|
264
|
-
const _hoisted_3 = [
|
|
295
|
+
const _hoisted_3 = [
|
|
296
|
+
"data-orientation",
|
|
297
|
+
"data-disabled",
|
|
298
|
+
"role",
|
|
299
|
+
"aria-labelledby"
|
|
300
|
+
];
|
|
265
301
|
const _hoisted_4 = ["data-mark-value", "data-filled"];
|
|
266
302
|
const _hoisted_5 = ["data-mark-value"];
|
|
267
303
|
const _hoisted_6 = {
|
|
@@ -299,7 +335,36 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
299
335
|
labelIcon: {},
|
|
300
336
|
labelTooltip: {},
|
|
301
337
|
optionalLabel: {},
|
|
302
|
-
requiredLabel: { default: "Required" }
|
|
338
|
+
requiredLabel: { default: "Required" },
|
|
339
|
+
targetClass: {},
|
|
340
|
+
containerClass: { type: [
|
|
341
|
+
Boolean,
|
|
342
|
+
null,
|
|
343
|
+
String,
|
|
344
|
+
Object,
|
|
345
|
+
Array
|
|
346
|
+
] },
|
|
347
|
+
containerStyle: { type: [
|
|
348
|
+
Boolean,
|
|
349
|
+
null,
|
|
350
|
+
String,
|
|
351
|
+
Object,
|
|
352
|
+
Array
|
|
353
|
+
] },
|
|
354
|
+
controlClass: { type: [
|
|
355
|
+
Boolean,
|
|
356
|
+
null,
|
|
357
|
+
String,
|
|
358
|
+
Object,
|
|
359
|
+
Array
|
|
360
|
+
] },
|
|
361
|
+
controlStyle: { type: [
|
|
362
|
+
Boolean,
|
|
363
|
+
null,
|
|
364
|
+
String,
|
|
365
|
+
Object,
|
|
366
|
+
Array
|
|
367
|
+
] }
|
|
303
368
|
}, {
|
|
304
369
|
"modelValue": { required: true },
|
|
305
370
|
"modelModifiers": {}
|
|
@@ -310,6 +375,24 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
310
375
|
const emit = __emit;
|
|
311
376
|
const model = useModel(__props, "modelValue");
|
|
312
377
|
const attrs = useAttrs();
|
|
378
|
+
const press = usePressFeedback({ hasOverlay: false });
|
|
379
|
+
const parts = useFieldPartStyling({
|
|
380
|
+
component: "Slider",
|
|
381
|
+
props,
|
|
382
|
+
attrs,
|
|
383
|
+
reservedAttrs: [
|
|
384
|
+
"aria-labelledby",
|
|
385
|
+
"aria-describedby",
|
|
386
|
+
"onPointerdown",
|
|
387
|
+
"onPointermove",
|
|
388
|
+
"onPointerup",
|
|
389
|
+
"onPointercancel",
|
|
390
|
+
"onPointerDown",
|
|
391
|
+
"onPointerMove",
|
|
392
|
+
"onPointerUp",
|
|
393
|
+
"onPointerCancel"
|
|
394
|
+
]
|
|
395
|
+
});
|
|
313
396
|
const track = useTemplateRef("track");
|
|
314
397
|
const generatedId = `astryx-slider-${useId()}`;
|
|
315
398
|
const inputId = computed(() => props.id ?? generatedId);
|
|
@@ -358,9 +441,35 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
358
441
|
function isFilled(value) {
|
|
359
442
|
return value <= values.value.at(-1) && (!isRange.value || value >= values.value[0]);
|
|
360
443
|
}
|
|
361
|
-
function
|
|
362
|
-
|
|
444
|
+
function callConsumerPointer(event) {
|
|
445
|
+
for (const name of {
|
|
446
|
+
pointerdown: ["onPointerdown", "onPointerDown"],
|
|
447
|
+
pointermove: ["onPointermove", "onPointerMove"],
|
|
448
|
+
pointerup: ["onPointerup", "onPointerUp"],
|
|
449
|
+
pointercancel: ["onPointercancel", "onPointerCancel"]
|
|
450
|
+
}[event.type] ?? []) {
|
|
451
|
+
const handler = attrs[name];
|
|
452
|
+
if (typeof handler === "function") handler(event);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function onPointerDown(event) {
|
|
456
|
+
control.pointerDown(event);
|
|
457
|
+
callConsumerPointer(event);
|
|
458
|
+
}
|
|
459
|
+
function onPointerMove(event) {
|
|
460
|
+
control.pointerMove(event);
|
|
461
|
+
callConsumerPointer(event);
|
|
462
|
+
}
|
|
463
|
+
function onPointerEnd(event) {
|
|
464
|
+
control.pointerEnd(event);
|
|
465
|
+
callConsumerPointer(event);
|
|
363
466
|
}
|
|
467
|
+
const shellStyle = computed(() => [attrs.style, parts.containerStyle.value]);
|
|
468
|
+
const thumbAttrs = computed(() => isRange.value ? {} : parts.forwardedAttrs());
|
|
469
|
+
const trackAttrs = computed(() => ({
|
|
470
|
+
...isRange.value ? parts.forwardedAttrs() : {},
|
|
471
|
+
...props.isDisabled ? {} : press.pressableProps
|
|
472
|
+
}));
|
|
364
473
|
function focus(index = 0, options) {
|
|
365
474
|
track.value?.querySelectorAll("[role=\"slider\"]")[index]?.focus(options);
|
|
366
475
|
}
|
|
@@ -369,13 +478,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
369
478
|
if (active instanceof HTMLElement && track.value?.contains(active)) active.blur();
|
|
370
479
|
}
|
|
371
480
|
__expose({
|
|
372
|
-
element: computed(() =>
|
|
481
|
+
element: computed(() => {
|
|
482
|
+
if (isRange.value) return track.value;
|
|
483
|
+
return track.value?.querySelector("[role=\"slider\"]") ?? null;
|
|
484
|
+
}),
|
|
373
485
|
focus,
|
|
374
486
|
blur
|
|
375
487
|
});
|
|
376
488
|
return (_ctx, _cache) => {
|
|
377
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$4,
|
|
378
|
-
class: "astryx-slider",
|
|
489
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$4, {
|
|
490
|
+
class: normalizeClass(["astryx-slider", [unref(attrs).class, unref(parts).containerClass.value]]),
|
|
491
|
+
style: normalizeStyle(shellStyle.value),
|
|
379
492
|
"data-orientation": __props.orientation,
|
|
380
493
|
"data-disabled": __props.isDisabled || void 0,
|
|
381
494
|
"data-mark-labels": hasMarkLabels.value || void 0,
|
|
@@ -394,7 +507,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
394
507
|
"required-label": __props.requiredLabel,
|
|
395
508
|
status: __props.status,
|
|
396
509
|
"status-variant": "detached"
|
|
397
|
-
}
|
|
510
|
+
}, createSlots({
|
|
398
511
|
default: withCtx((field) => [
|
|
399
512
|
createElementVNode("div", _hoisted_1, [
|
|
400
513
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
|
|
@@ -407,24 +520,28 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
407
520
|
form: __props.form
|
|
408
521
|
}, null, 8, _hoisted_2);
|
|
409
522
|
}), 128)),
|
|
410
|
-
createElementVNode("div", {
|
|
523
|
+
createElementVNode("div", mergeProps({
|
|
411
524
|
ref_key: "track",
|
|
412
|
-
ref: track
|
|
413
|
-
|
|
525
|
+
ref: track
|
|
526
|
+
}, trackAttrs.value, {
|
|
527
|
+
class: ["astryx-slider-control", __props.controlClass],
|
|
528
|
+
style: __props.controlStyle,
|
|
529
|
+
"data-orientation": __props.orientation,
|
|
530
|
+
"data-disabled": __props.isDisabled || void 0,
|
|
414
531
|
role: isRange.value ? "group" : void 0,
|
|
415
532
|
"aria-labelledby": isRange.value ? field.labelId : void 0,
|
|
416
|
-
onPointerdown:
|
|
417
|
-
onPointermove:
|
|
418
|
-
onPointerup:
|
|
419
|
-
onPointercancel:
|
|
420
|
-
onLostpointercapture:
|
|
421
|
-
onPointerenter: _cache[
|
|
422
|
-
onPointerleave: _cache[
|
|
423
|
-
onFocusin: _cache[
|
|
424
|
-
onFocusout: _cache[
|
|
425
|
-
onKeydown: _cache[
|
|
426
|
-
}, [
|
|
427
|
-
_cache[
|
|
533
|
+
onPointerdown: onPointerDown,
|
|
534
|
+
onPointermove: onPointerMove,
|
|
535
|
+
onPointerup: onPointerEnd,
|
|
536
|
+
onPointercancel: onPointerEnd,
|
|
537
|
+
onLostpointercapture: onPointerEnd,
|
|
538
|
+
onPointerenter: _cache[1] || (_cache[1] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
|
|
539
|
+
onPointerleave: _cache[2] || (_cache[2] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args)),
|
|
540
|
+
onFocusin: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onTooltipPointerEnter && unref(tooltip).onTooltipPointerEnter(...args)),
|
|
541
|
+
onFocusout: _cache[4] || (_cache[4] = (...args) => unref(tooltip).onBlur && unref(tooltip).onBlur(...args)),
|
|
542
|
+
onKeydown: _cache[5] || (_cache[5] = withKeys((...args) => unref(tooltip).hideImmediately && unref(tooltip).hideImmediately(...args), ["esc"]))
|
|
543
|
+
}), [
|
|
544
|
+
_cache[6] || (_cache[6] = createElementVNode("div", {
|
|
428
545
|
class: "astryx-slider-track",
|
|
429
546
|
"aria-hidden": "true"
|
|
430
547
|
}, null, -1)),
|
|
@@ -460,7 +577,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
460
577
|
"labelled-by": [
|
|
461
578
|
field.labelId,
|
|
462
579
|
isRange.value ? `${inputId.value}-label-${index}` : void 0,
|
|
463
|
-
unref(attrs)["aria-labelledby"]
|
|
580
|
+
isRange.value ? void 0 : unref(attrs)["aria-labelledby"]
|
|
464
581
|
].filter(Boolean).join(" "),
|
|
465
582
|
"described-by": describedBy(field.describedBy),
|
|
466
583
|
"value-text": __props.formatValue ? format(value) : void 0,
|
|
@@ -468,8 +585,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
468
585
|
"is-disabled": __props.isDisabled,
|
|
469
586
|
"is-focusable": !__props.isDisabled || showsDisabledMessage.value,
|
|
470
587
|
dragging: unref(dragging) === index,
|
|
588
|
+
"keyboard-focus": unref(control).keyboardFocus.value === index,
|
|
589
|
+
"extra-attrs": thumbAttrs.value,
|
|
471
590
|
"tooltip-text": __props.valueDisplay === "tooltip" ? format(value) : void 0,
|
|
472
|
-
onKeydown: ($event) => unref(control).keydown(index, $event)
|
|
591
|
+
onKeydown: ($event) => unref(control).keydown(index, $event),
|
|
592
|
+
onFocus: ($event) => unref(control).thumbFocus(index),
|
|
593
|
+
onBlur: _cache[0] || (_cache[0] = ($event) => unref(control).thumbBlur())
|
|
473
594
|
}, null, 8, [
|
|
474
595
|
"id",
|
|
475
596
|
"index",
|
|
@@ -485,11 +606,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
485
606
|
"is-disabled",
|
|
486
607
|
"is-focusable",
|
|
487
608
|
"dragging",
|
|
609
|
+
"keyboard-focus",
|
|
610
|
+
"extra-attrs",
|
|
488
611
|
"tooltip-text",
|
|
489
|
-
"onKeydown"
|
|
612
|
+
"onKeydown",
|
|
613
|
+
"onFocus"
|
|
490
614
|
]);
|
|
491
615
|
}), 128))
|
|
492
|
-
],
|
|
616
|
+
], 16, _hoisted_3),
|
|
493
617
|
__props.valueDisplay === "text" ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(displayText.value), 1)) : createCommentVNode("v-if", true)
|
|
494
618
|
]),
|
|
495
619
|
isRange.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_sfc_main$2, { id: `${inputId.value}-label-0` }, {
|
|
@@ -519,7 +643,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
519
643
|
name: "labelIcon",
|
|
520
644
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "labelIcon")]),
|
|
521
645
|
key: "0"
|
|
522
|
-
} : void 0]),
|
|
646
|
+
} : void 0]), 1032, [
|
|
647
|
+
"class",
|
|
648
|
+
"style",
|
|
523
649
|
"data-orientation",
|
|
524
650
|
"data-disabled",
|
|
525
651
|
"data-mark-labels",
|
package/dist/Spinner/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Spinner-
|
|
1
|
+
import { t as _sfc_main } from "../Spinner-DdVUadii.js";
|
|
2
2
|
export { _sfc_main as Spinner };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { s as useAstryxMessages } from "./context-DWfi56sq.js";
|
|
2
|
+
import { computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, toDisplayString, useAttrs, useId, useSlots } from "vue";
|
|
3
|
+
import "../styles/spinner.css";
|
|
4
|
+
//#region src/Spinner/spinnerGeometry.ts
|
|
5
|
+
const RESOLVED_GEOMETRY = ["--_spinner-ring-diameter", "--_spinner-ring-stroke"];
|
|
6
|
+
let registered = false;
|
|
7
|
+
/**
|
|
8
|
+
* 把圆环的直径和描边登记成长度。
|
|
9
|
+
* 这样主题写成 `0` 时,它是 0px,而不是把 `calc()` 里的加法变成非法值。
|
|
10
|
+
* 公开变量不登记,避免整份文档都带着一个初始值。
|
|
11
|
+
*/
|
|
12
|
+
function registerSpinnerGeometry() {
|
|
13
|
+
if (registered || typeof CSS === "undefined" || typeof CSS.registerProperty !== "function") return;
|
|
14
|
+
registered = true;
|
|
15
|
+
for (const name of RESOLVED_GEOMETRY) try {
|
|
16
|
+
CSS.registerProperty({
|
|
17
|
+
name,
|
|
18
|
+
syntax: "<length>",
|
|
19
|
+
inherits: true,
|
|
20
|
+
initialValue: "0px"
|
|
21
|
+
});
|
|
22
|
+
} catch {}
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/Spinner/spinnerPhase.ts
|
|
26
|
+
const pending = /* @__PURE__ */ new Set();
|
|
27
|
+
let scheduled = false;
|
|
28
|
+
function pinPendingRings() {
|
|
29
|
+
scheduled = false;
|
|
30
|
+
const animations = [];
|
|
31
|
+
for (const svg of pending) if (typeof svg.getAnimations === "function") animations.push(...svg.getAnimations({ subtree: true }));
|
|
32
|
+
pending.clear();
|
|
33
|
+
for (const animation of animations) animation.startTime = 0;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 把这条弧的动画起点钉在文档时间线的 0。
|
|
37
|
+
* 后出现的加载圈因此和先出现的停在同一相位,而不是各自从挂载的那一帧开始。
|
|
38
|
+
*/
|
|
39
|
+
function bindSpinnerPhase(svg) {
|
|
40
|
+
if (typeof svg.getAnimations !== "function") return () => {};
|
|
41
|
+
pending.add(svg);
|
|
42
|
+
if (!scheduled) {
|
|
43
|
+
scheduled = true;
|
|
44
|
+
requestAnimationFrame(pinPendingRings);
|
|
45
|
+
}
|
|
46
|
+
return () => {
|
|
47
|
+
pending.delete(svg);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/Spinner/Spinner.vue
|
|
52
|
+
const _hoisted_1 = ["data-size", "data-shade"];
|
|
53
|
+
const _hoisted_2 = ["aria-label", "aria-labelledby"];
|
|
54
|
+
const _hoisted_3 = ["width", "height"];
|
|
55
|
+
const _hoisted_4 = ["r", "stroke-width"];
|
|
56
|
+
const _hoisted_5 = [
|
|
57
|
+
"r",
|
|
58
|
+
"stroke-width",
|
|
59
|
+
"stroke-dasharray"
|
|
60
|
+
];
|
|
61
|
+
const _hoisted_6 = [
|
|
62
|
+
"data-size",
|
|
63
|
+
"data-shade",
|
|
64
|
+
"aria-label"
|
|
65
|
+
];
|
|
66
|
+
const _hoisted_7 = ["width", "height"];
|
|
67
|
+
const _hoisted_8 = ["r", "stroke-width"];
|
|
68
|
+
const _hoisted_9 = [
|
|
69
|
+
"r",
|
|
70
|
+
"stroke-width",
|
|
71
|
+
"stroke-dasharray"
|
|
72
|
+
];
|
|
73
|
+
const ARC_FRACTION = .375;
|
|
74
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
75
|
+
name: "AstryxSpinner",
|
|
76
|
+
inheritAttrs: false,
|
|
77
|
+
__name: "Spinner",
|
|
78
|
+
props: {
|
|
79
|
+
size: { default: "md" },
|
|
80
|
+
shade: { default: "default" },
|
|
81
|
+
label: {}
|
|
82
|
+
},
|
|
83
|
+
setup(__props) {
|
|
84
|
+
const props = __props;
|
|
85
|
+
const RING = {
|
|
86
|
+
sm: {
|
|
87
|
+
diameter: 10,
|
|
88
|
+
stroke: 2
|
|
89
|
+
},
|
|
90
|
+
md: {
|
|
91
|
+
diameter: 14,
|
|
92
|
+
stroke: 3
|
|
93
|
+
},
|
|
94
|
+
lg: {
|
|
95
|
+
diameter: 18,
|
|
96
|
+
stroke: 3
|
|
97
|
+
},
|
|
98
|
+
xl: {
|
|
99
|
+
diameter: 28,
|
|
100
|
+
stroke: 4
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
registerSpinnerGeometry();
|
|
104
|
+
const attrs = useAttrs();
|
|
105
|
+
const slots = useSlots();
|
|
106
|
+
const messages = useAstryxMessages();
|
|
107
|
+
const labelId = `astryx-spinner-label-${useId()}`;
|
|
108
|
+
const hasLabel = computed(() => Boolean(props.label) || Boolean(slots.label));
|
|
109
|
+
const ariaLabel = computed(() => attrs["aria-label"]);
|
|
110
|
+
const namedByVisibleLabel = computed(() => Boolean(props.label) && !ariaLabel.value);
|
|
111
|
+
const ringLabelledBy = computed(() => namedByVisibleLabel.value ? labelId : void 0);
|
|
112
|
+
const ringAriaLabel = computed(() => {
|
|
113
|
+
if (namedByVisibleLabel.value) return void 0;
|
|
114
|
+
return ariaLabel.value ?? props.label ?? messages.value.spinner.loading;
|
|
115
|
+
});
|
|
116
|
+
const rootAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "aria-label" && key !== "style")));
|
|
117
|
+
const geometry = computed(() => RING[props.size]);
|
|
118
|
+
const frameSize = computed(() => geometry.value.diameter + geometry.value.stroke * 2);
|
|
119
|
+
const arcLength = computed(() => Math.PI * geometry.value.diameter * ARC_FRACTION);
|
|
120
|
+
const gapLength = computed(() => Math.PI * geometry.value.diameter - arcLength.value);
|
|
121
|
+
const boxStyle = computed(() => ({
|
|
122
|
+
width: `var(--_spinner-box-size, ${frameSize.value}px)`,
|
|
123
|
+
height: `var(--_spinner-box-size, ${frameSize.value}px)`
|
|
124
|
+
}));
|
|
125
|
+
const callerStyle = computed(() => attrs.style);
|
|
126
|
+
const rootStyle = computed(() => [callerStyle.value, hasLabel.value ? void 0 : boxStyle.value]);
|
|
127
|
+
let releasePhase;
|
|
128
|
+
function onRing(element) {
|
|
129
|
+
releasePhase?.();
|
|
130
|
+
releasePhase = void 0;
|
|
131
|
+
if (element instanceof SVGSVGElement) releasePhase = bindSpinnerPhase(element);
|
|
132
|
+
}
|
|
133
|
+
return (_ctx, _cache) => {
|
|
134
|
+
return hasLabel.value ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, rootAttrs.value, {
|
|
135
|
+
class: "astryx-spinner astryx-spinner-group",
|
|
136
|
+
"data-size": __props.size,
|
|
137
|
+
"data-shade": __props.shade,
|
|
138
|
+
style: callerStyle.value
|
|
139
|
+
}), [createElementVNode("span", {
|
|
140
|
+
class: "astryx-spinner-box",
|
|
141
|
+
role: "status",
|
|
142
|
+
"aria-label": ringAriaLabel.value,
|
|
143
|
+
"aria-labelledby": ringLabelledBy.value,
|
|
144
|
+
style: normalizeStyle(boxStyle.value)
|
|
145
|
+
}, [(openBlock(), createElementBlock("svg", {
|
|
146
|
+
ref: onRing,
|
|
147
|
+
class: "astryx-spinner__ring",
|
|
148
|
+
width: frameSize.value,
|
|
149
|
+
height: frameSize.value,
|
|
150
|
+
"aria-hidden": "true",
|
|
151
|
+
focusable: "false"
|
|
152
|
+
}, [createElementVNode("circle", {
|
|
153
|
+
class: "astryx-spinner__track",
|
|
154
|
+
cx: "50%",
|
|
155
|
+
cy: "50%",
|
|
156
|
+
r: geometry.value.diameter / 2,
|
|
157
|
+
"stroke-width": geometry.value.stroke
|
|
158
|
+
}, null, 8, _hoisted_4), createElementVNode("circle", {
|
|
159
|
+
class: "astryx-spinner__arc",
|
|
160
|
+
cx: "50%",
|
|
161
|
+
cy: "50%",
|
|
162
|
+
r: geometry.value.diameter / 2,
|
|
163
|
+
"stroke-width": geometry.value.stroke,
|
|
164
|
+
"stroke-dasharray": `${arcLength.value} ${gapLength.value}`
|
|
165
|
+
}, null, 8, _hoisted_5)], 8, _hoisted_3))], 12, _hoisted_2), createElementVNode("span", {
|
|
166
|
+
id: labelId,
|
|
167
|
+
class: "astryx-spinner-label"
|
|
168
|
+
}, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])])], 16, _hoisted_1)) : (openBlock(), createElementBlock("span", mergeProps({ key: 1 }, rootAttrs.value, {
|
|
169
|
+
class: "astryx-spinner astryx-spinner-box",
|
|
170
|
+
role: "status",
|
|
171
|
+
"data-size": __props.size,
|
|
172
|
+
"data-shade": __props.shade,
|
|
173
|
+
"aria-label": ringAriaLabel.value,
|
|
174
|
+
style: rootStyle.value
|
|
175
|
+
}), [(openBlock(), createElementBlock("svg", {
|
|
176
|
+
ref: onRing,
|
|
177
|
+
class: "astryx-spinner__ring",
|
|
178
|
+
width: frameSize.value,
|
|
179
|
+
height: frameSize.value,
|
|
180
|
+
"aria-hidden": "true",
|
|
181
|
+
focusable: "false"
|
|
182
|
+
}, [createElementVNode("circle", {
|
|
183
|
+
class: "astryx-spinner__track",
|
|
184
|
+
cx: "50%",
|
|
185
|
+
cy: "50%",
|
|
186
|
+
r: geometry.value.diameter / 2,
|
|
187
|
+
"stroke-width": geometry.value.stroke
|
|
188
|
+
}, null, 8, _hoisted_8), createElementVNode("circle", {
|
|
189
|
+
class: "astryx-spinner__arc",
|
|
190
|
+
cx: "50%",
|
|
191
|
+
cy: "50%",
|
|
192
|
+
r: geometry.value.diameter / 2,
|
|
193
|
+
"stroke-width": geometry.value.stroke,
|
|
194
|
+
"stroke-dasharray": `${arcLength.value} ${gapLength.value}`
|
|
195
|
+
}, null, 8, _hoisted_9)], 8, _hoisted_7))], 16, _hoisted_6));
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
//#endregion
|
|
200
|
+
export { _sfc_main as t };
|
package/dist/Stack/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as StackDirection, c as StackItemProps, d as StackProps, f as StackSizeValue, i as StackCrossAlignment, l as StackItemSize, m as VStackProps, n as SpacingStep, o as StackElement, p as StackWrap, r as StackAlignment, s as StackItemCrossAlignSelf, t as HStackProps, u as StackMainAlignment } from "../types-BTk0WZ0b.js";
|
|
2
|
-
import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../index-
|
|
2
|
+
import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../index-D7ShT2c-.js";
|
|
3
3
|
export { _default as HStack, type HStackProps, type SpacingStep, _default$1 as Stack, type StackAlignment, type StackCrossAlignment, type StackDirection, type StackElement, _default$2 as StackItem, type StackItemCrossAlignSelf, type StackItemProps, type StackItemSize, type StackMainAlignment, type StackProps, type StackSizeValue, type StackWrap, _default$3 as VStack, type VStackProps };
|
package/dist/Stack/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "../Stack-
|
|
2
|
-
import { n as _sfc_main$2, r as _sfc_main, t as _sfc_main$3 } from "../Stack-
|
|
1
|
+
import { t as _sfc_main$1 } from "../Stack-Bp-XN9J4.js";
|
|
2
|
+
import { n as _sfc_main$2, r as _sfc_main, t as _sfc_main$3 } from "../Stack-Bb_h60t3.js";
|
|
3
3
|
export { _sfc_main as HStack, _sfc_main$1 as Stack, _sfc_main$2 as StackItem, _sfc_main$3 as VStack };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
1
|
+
import { t as useScrollbars } from "./useScrollbars-C2NJ6Qwq.js";
|
|
2
|
+
import { t as _sfc_main$3 } from "./Stack-Bp-XN9J4.js";
|
|
3
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
3
4
|
import "../styles/stack.css";
|
|
4
5
|
//#region src/Stack/HStack.vue
|
|
5
6
|
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
@@ -52,12 +53,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
52
53
|
size: { default: "static" }
|
|
53
54
|
},
|
|
54
55
|
setup(__props) {
|
|
56
|
+
const props = __props;
|
|
55
57
|
const attrs = useAttrs();
|
|
58
|
+
const root = useTemplateRef("root");
|
|
59
|
+
useScrollbars(root, { enabled: () => props.isScrollable });
|
|
56
60
|
const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
|
|
57
61
|
const rootClass = computed(() => ["astryx-stack-item", attrs.class]);
|
|
58
62
|
const rootStyle = computed(() => attrs.style);
|
|
59
63
|
return (_ctx, _cache) => {
|
|
60
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps(
|
|
64
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
65
|
+
ref_key: "root",
|
|
66
|
+
ref: root
|
|
67
|
+
}, forwardedAttrs.value, {
|
|
61
68
|
class: rootClass.value,
|
|
62
69
|
"data-cross-align-self": __props.crossAlignSelf,
|
|
63
70
|
"data-scrollable": __props.isScrollable || void 0,
|