@astryx-vue/core 0.2.2 → 0.2.4
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 +4 -0
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-CeBmB0Q9.js} +2 -2
- package/dist/Avatar/index.d.ts +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +2 -2
- package/dist/BottomSheet/index.js +3 -2
- package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
- package/dist/BottomSheet-o7xw-TOi.js +153 -0
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-D6G7f5WL.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-DmTeM7PO.js +656 -0
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-CIKrcA2r.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-BFox3u9D.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-BlPf7vPe.js} +78 -25
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-BG-vg9ia.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +3 -3
- package/dist/Code/index.js +4 -4
- package/dist/{Code-yb_KOFtJ.js → Code-XnPuGxey.js} +3 -2
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-B2pnEOJY.js} +146 -16
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-DKgHzmJk.js} +10 -10
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-Dv44FFhN.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-BeJO5HYx.js} +206 -423
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-D4XFAEMp.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-Cp6AZfew.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-B6MPPp76.js} +54 -15
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu--lnUeJEG.js} +309 -64
- package/dist/DropdownMenu-6E9jFdFe.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-CXEURBcq.d.ts +564 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-DuNwdbAo.js} +2 -2
- package/dist/Grid/index.d.ts +1 -1
- package/dist/Heading/index.d.ts +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/Heading-B9C3LZlS.js +94 -0
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Item-DrYJL1TG.js +590 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-Br3o0SyQ.js} +2 -2
- package/dist/Link/index.d.ts +3 -2
- package/dist/Link/index.js +1 -1
- package/dist/Link-DCZ6922-.js +196 -0
- package/dist/List/index.d.ts +3 -3
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
- package/dist/Markdown/index.d.ts +2 -2
- package/dist/Markdown/index.js +2 -2
- package/dist/{Markdown-BqKloI3w.js → Markdown-Bz0R3kNj.js} +280 -33
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-CFaocx6j.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-Dh3uLivq.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B95nRSe8.js} +3 -3
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-DuF5TECE.js} +304 -122
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-C6sPZ89n.js} +5 -2
- package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
- package/dist/NavMenu/index.d.ts +2 -2
- package/dist/NavMenu/index.js +4 -3
- package/dist/NavMenu-ClIgMaxE.js +176 -0
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-E7S8gBh-.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-B4IL3s_8.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline-DBUuchi9.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-aDd_oem0.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-CNe9F6Fl.js} +181 -45
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-C6U8Sq1Y.js} +16 -16
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → ResizeHandle-DYy0e3v9.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-5N-hq2nF.js +618 -0
- package/dist/SideNav/index.d.ts +2 -2
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-CT9lfspi.js} +226 -230
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-BqhVCgC-.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-CsdH8fCB.js} +7 -7
- package/dist/Text/index.d.ts +3 -3
- package/dist/Text/index.js +1 -1
- package/dist/Text-DIzZw6FA.js +86 -0
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +3 -2
- package/dist/Theme/index.js +2 -2
- package/dist/Theme-CtaUWo4g.js +1246 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-BnQwX1cQ.js} +3 -3
- package/dist/{TimeField-DpHFrNv0.js → TimeField-Biiuv0hB.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-C9gptCOK.js} +1 -1
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-D7bd_nF3.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-D2GsI_Ei.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-rwzamZg4.js} +4 -4
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-arWFLTBM.js} +113 -43
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-C9xvMpJZ.js} +2 -2
- package/dist/Typeahead/index.d.ts +2 -2
- package/dist/Typeahead/index.js +3 -2
- package/dist/Typeahead-_V11btpv.js +499 -0
- package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +12 -7
- package/dist/composables-CWw6t-RJ.js +520 -0
- package/dist/{context-CiKncNSH.js → context-CPh7kE-a.js} +140 -18
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{index-CJlBAXwj.d.ts → index-12QYAbiz.d.ts} +41 -4
- package/dist/{index-Cs5pcwY3.d.ts → index-6yB8BtEu.d.ts} +3 -3
- package/dist/{index-C7mxUcDR.d.ts → index-B4OOtNP8.d.ts} +2 -2
- package/dist/index-BBtJt5_A.d.ts +26 -0
- package/dist/{index-CRizexSC.d.ts → index-BH9PzQ1F.d.ts} +13 -73
- package/dist/index-BPwD6aBv.d.ts +83 -0
- package/dist/{index-DOUEn7V0.d.ts → index-BcZI402h.d.ts} +64 -5
- package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
- package/dist/{index-DimuSES0.d.ts → index-BlOIC_AM.d.ts} +3 -1
- package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
- package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
- package/dist/{index-kVhSuA9t.d.ts → index-BxhJqiZ7.d.ts} +6 -6
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-qiZtHnGK.d.ts → index-C3GaPqvJ.d.ts} +123 -8
- package/dist/{index-D4I_obqR.d.ts → index-CFIXnk5D.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-CI9kyg74.d.ts} +11 -1
- package/dist/{index-D-ZuubCK.d.ts → index-CUCcYKxl.d.ts} +1 -1
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-DGXviOlp.d.ts → index-D-ezcKaY.d.ts} +30 -4
- package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
- package/dist/index-DxR1FChm.d.ts +158 -0
- package/dist/{index-DNRBbwp_.d.ts → index-EtZgovdH.d.ts} +842 -107
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/index-XuAAcYiP.d.ts +77 -0
- package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
- package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
- package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-cL3q7O4R.d.ts} +31 -2
- package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
- package/dist/{index-DsyKhauk.d.ts → index-hCpxKePE.d.ts} +48 -2
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-B1TG2GPS.d.ts → index-vizlhXVs.d.ts} +246 -45
- package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
- package/dist/index.d.ts +82 -80
- package/dist/index.js +127 -116
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/locale-sLw5Caia.js +917 -0
- package/dist/searchResultMessage-CCnq-_ce.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
- package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
- package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
- package/dist/types-D_J66aPN.d.ts +85 -0
- package/dist/types-gKsEkk2g.d.ts +320 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-BgjJcY3K.js +520 -0
- package/dist/useMenuPress-DUmEy4TB.js +425 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/{composables-CVfjp9h4.js → useResizable-B3ahKLoZ.js} +74 -152
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/dist/useTruncation-B5qXQzAP.js +53 -0
- package/locales/SOURCE.json +37 -0
- package/locales/af-ZA.json +1482 -0
- package/locales/ar-SA.json +1482 -0
- package/locales/ca-ES.json +1482 -0
- package/locales/cs-CZ.json +1482 -0
- package/locales/da-DK.json +1482 -0
- package/locales/de-DE.json +1482 -0
- package/locales/el-GR.json +1482 -0
- package/locales/en.json +1646 -0
- package/locales/es-ES.json +1482 -0
- package/locales/fi-FI.json +1482 -0
- package/locales/fr-FR.json +1482 -0
- package/locales/he-IL.json +1482 -0
- package/locales/hu-HU.json +1482 -0
- package/locales/it-IT.json +1482 -0
- package/locales/ja-JP.json +1482 -0
- package/locales/ko-KR.json +1482 -0
- package/locales/nl-NL.json +1482 -0
- package/locales/no-NO.json +1482 -0
- package/locales/pl-PL.json +1482 -0
- package/locales/pt-BR.json +1482 -0
- package/locales/pt-PT.json +1482 -0
- package/locales/ro-RO.json +1482 -0
- package/locales/ru-RU.json +1482 -0
- package/locales/sr-SP.json +1482 -0
- package/locales/sv-SE.json +1482 -0
- package/locales/tr-TR.json +1482 -0
- package/locales/uk-UA.json +1482 -0
- package/locales/vi-VN.json +1482 -0
- package/locales/zh-CN.json +1482 -0
- package/locales/zh-TW.json +1482 -0
- package/package.json +7 -1
- package/styles/bottom-sheet.css +27 -0
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/code.css +62 -0
- package/styles/container-reveal.css +104 -0
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/heading.css +47 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/keyboard-hint.css +28 -0
- package/styles/link.css +34 -0
- package/styles/list.css +88 -1
- package/styles/markdown.css +12 -0
- package/styles/multi-selector.css +26 -0
- package/styles/pagination.css +30 -0
- package/styles/progress-bar.css +49 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles/side-nav.css +36 -1
- package/styles/text.css +18 -0
- package/styles/top-nav.css +145 -6
- package/styles/typeahead.css +24 -0
- package/styles.css +4 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/Heading-Dugosn6j.js +0 -43
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Item-C1z6gXn8.js +0 -289
- package/dist/Link-DqdQZ37C.js +0 -141
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/Text-BHVghsWo.js +0 -53
- package/dist/Theme-BuUiiJNr.js +0 -429
- package/dist/Typeahead-P7cCqtaQ.js +0 -375
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-Dg3ZmwEg.d.ts +0 -75
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/index-jdjcb3Js.d.ts +0 -80
- package/dist/locale-Cpk_nrLA.js +0 -18
- package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- package/dist/useHotkeys-dABSK1o9.js +0 -80
- package/dist/useLongPress-Cyxwa73s.js +0 -60
- package/dist/{index-BUXNRekN.d.ts → index-IdK2g5B4.d.ts} +2 -2
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-B5qXQzAP.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "./Tooltip-C2fh9anJ.js";
|
|
3
|
+
import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, withCtx } from "vue";
|
|
4
|
+
import "../styles/heading.css";
|
|
5
|
+
//#region src/Heading/Heading.vue
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
__name: "Heading",
|
|
9
|
+
props: {
|
|
10
|
+
level: {},
|
|
11
|
+
type: {},
|
|
12
|
+
color: { default: "primary" },
|
|
13
|
+
weight: {},
|
|
14
|
+
display: { default: "block" },
|
|
15
|
+
accessibilityLevel: {},
|
|
16
|
+
textWrap: {},
|
|
17
|
+
wordBreak: {},
|
|
18
|
+
justify: { default: "start" },
|
|
19
|
+
hasStrikethrough: { type: Boolean },
|
|
20
|
+
maxLines: { default: 0 },
|
|
21
|
+
hasTruncateTooltip: {
|
|
22
|
+
type: [Boolean, String],
|
|
23
|
+
default: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const tag = computed(() => `h${props.level}`);
|
|
29
|
+
const placement = computed(() => props.maxLines > 0 ? truncatePlacement(props.hasTruncateTooltip) : null);
|
|
30
|
+
const wordBreak = computed(() => props.wordBreak ?? (props.maxLines === 1 ? "break-all" : props.maxLines > 1 ? "break-word" : void 0));
|
|
31
|
+
const truncation = useTruncation(computed(() => props.maxLines));
|
|
32
|
+
const ariaLevel = computed(() => props.accessibilityLevel != null && props.accessibilityLevel !== props.level ? props.accessibilityLevel : void 0);
|
|
33
|
+
const attrs = useAttrs();
|
|
34
|
+
const classes = computed(() => [
|
|
35
|
+
"astryx-heading",
|
|
36
|
+
`astryx-heading--level-${props.level}`,
|
|
37
|
+
props.type && `astryx-heading--type-${props.type}`,
|
|
38
|
+
`astryx-heading--color-${props.color}`,
|
|
39
|
+
props.weight && `astryx-heading--weight-${props.weight}`,
|
|
40
|
+
props.display === "inline" && props.maxLines === 0 && "astryx-heading--inline",
|
|
41
|
+
props.textWrap && `astryx-heading--wrap-${props.textWrap}`,
|
|
42
|
+
wordBreak.value && `astryx-heading--word-${wordBreak.value}`,
|
|
43
|
+
props.justify !== "start" && `astryx-heading--justify-${props.justify}`,
|
|
44
|
+
props.hasStrikethrough && "astryx-heading--strike",
|
|
45
|
+
props.maxLines === 1 && "astryx-heading--truncate-single",
|
|
46
|
+
props.maxLines > 1 && "astryx-heading--truncate-multi"
|
|
47
|
+
]);
|
|
48
|
+
const style = computed(() => {
|
|
49
|
+
if (props.maxLines > 1) return { WebkitLineClamp: props.maxLines };
|
|
50
|
+
return {};
|
|
51
|
+
});
|
|
52
|
+
return (_ctx, _cache) => {
|
|
53
|
+
return placement.value ? (openBlock(), createBlock(_sfc_main$1, {
|
|
54
|
+
key: 0,
|
|
55
|
+
"anchors-on-self": "",
|
|
56
|
+
"has-hover-indication": false,
|
|
57
|
+
content: unref(truncation).fullText.value,
|
|
58
|
+
"is-enabled": unref(truncation).isTruncated.value,
|
|
59
|
+
placement: placement.value
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({ ref: unref(truncation).bind }, unref(attrs), {
|
|
62
|
+
class: ["astryx-heading", classes.value],
|
|
63
|
+
style: style.value,
|
|
64
|
+
"aria-level": ariaLevel.value
|
|
65
|
+
}), {
|
|
66
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
67
|
+
_: 3
|
|
68
|
+
}, 16, [
|
|
69
|
+
"class",
|
|
70
|
+
"style",
|
|
71
|
+
"aria-level"
|
|
72
|
+
]))]),
|
|
73
|
+
_: 3
|
|
74
|
+
}, 8, [
|
|
75
|
+
"content",
|
|
76
|
+
"is-enabled",
|
|
77
|
+
"placement"
|
|
78
|
+
])) : (openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({ key: 1 }, unref(attrs), {
|
|
79
|
+
class: ["astryx-heading", classes.value],
|
|
80
|
+
style: style.value,
|
|
81
|
+
"aria-level": ariaLevel.value
|
|
82
|
+
}), {
|
|
83
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
84
|
+
_: 3
|
|
85
|
+
}, 16, [
|
|
86
|
+
"class",
|
|
87
|
+
"style",
|
|
88
|
+
"aria-level"
|
|
89
|
+
]));
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
//#endregion
|
|
94
|
+
export { _sfc_main as t };
|
package/dist/Icon/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as IconSize, i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "../types-
|
|
2
|
-
import { a as
|
|
1
|
+
import { a as IconSize, i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "../types-CwyibrRB.js";
|
|
2
|
+
import { a as iconGlyphSlug, i as IconGlyphName, n as _default, o as isIconGlyph, r as ICON_GLYPHS, t as useSemanticIcon } from "../index-vP0EtrJJ.js";
|
|
3
3
|
import { i as addIcon, n as IconifyIcon, r as addCollection, t as IconifyCollection } from "../registry-B1ObuP--.js";
|
|
4
|
-
|
|
4
|
+
import { n as defaultSemanticIcons, r as resolveSemanticIcon, t as SemanticIconMap } from "../semantic-CKH9XVqa.js";
|
|
5
|
+
export { ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconSize, type IconSlots, type IconifyCollection, type IconifyIcon, type SemanticIconMap, addCollection, addIcon, defaultSemanticIcons, iconGlyphSlug, isIconGlyph, resolveSemanticIcon, useSemanticIcon };
|
package/dist/Icon/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as
|
|
1
|
+
import { a as ICON_GLYPHS, i as resolveSemanticIcon, n as useSemanticIcon, o as iconGlyphSlug, r as defaultSemanticIcons, s as isIconGlyph, t as _sfc_main } from "../Icon-bteSId7T.js";
|
|
2
2
|
import { n as addCollection, r as addIcon } from "../registry-C7OZb0PJ.js";
|
|
3
|
-
export { ICON_GLYPHS, _sfc_main as Icon, addCollection, addIcon, iconGlyphSlug, isIconGlyph };
|
|
3
|
+
export { ICON_GLYPHS, _sfc_main as Icon, addCollection, addIcon, defaultSemanticIcons, iconGlyphSlug, isIconGlyph, resolveSemanticIcon, useSemanticIcon };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { i as getIcon, s as warnMissingIcon } from "./registry-C7OZb0PJ.js";
|
|
2
|
+
import { n as themeContextKey } from "./context-Cws_tXTr.js";
|
|
2
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toValue, useId } from "vue";
|
|
3
4
|
import "../styles/icon.css";
|
|
4
5
|
//#region src/Icon/context.ts
|
|
@@ -23,25 +24,36 @@ function useIconDefaultSize() {
|
|
|
23
24
|
* icons; this list only has to cover what astryx-vue draws itself.
|
|
24
25
|
*/
|
|
25
26
|
const ICON_GLYPHS = [
|
|
27
|
+
"close",
|
|
26
28
|
"chevronDown",
|
|
27
29
|
"chevronLeft",
|
|
28
30
|
"chevronRight",
|
|
31
|
+
"chevronsLeft",
|
|
32
|
+
"chevronsRight",
|
|
29
33
|
"check",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
34
|
+
"success",
|
|
35
|
+
"error",
|
|
36
|
+
"warning",
|
|
37
|
+
"info",
|
|
32
38
|
"calendar",
|
|
33
39
|
"clock",
|
|
40
|
+
"externalLink",
|
|
41
|
+
"menu",
|
|
42
|
+
"moreHorizontal",
|
|
43
|
+
"search",
|
|
34
44
|
"upload",
|
|
35
45
|
"arrowUp",
|
|
36
46
|
"arrowDown",
|
|
37
|
-
"
|
|
47
|
+
"arrowsUpDown",
|
|
38
48
|
"funnel",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
49
|
+
"eyeSlash",
|
|
50
|
+
"viewColumns",
|
|
51
|
+
"copy",
|
|
52
|
+
"checkDouble",
|
|
53
|
+
"wrench",
|
|
41
54
|
"stop",
|
|
42
55
|
"microphone",
|
|
43
|
-
"
|
|
44
|
-
"error"
|
|
56
|
+
"image"
|
|
45
57
|
];
|
|
46
58
|
function isIconGlyph(value) {
|
|
47
59
|
return ICON_GLYPHS.includes(value);
|
|
@@ -131,6 +143,75 @@ function renderIconMarkup(icon, idPrefix) {
|
|
|
131
143
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${built.viewBox}" width="100%" height="100%" aria-hidden="true" focusable="false">${body}</svg>`;
|
|
132
144
|
}
|
|
133
145
|
//#endregion
|
|
146
|
+
//#region src/Icon/semantic.ts
|
|
147
|
+
/**
|
|
148
|
+
* Semantic name to Iconify id.
|
|
149
|
+
*
|
|
150
|
+
* The names describe the job (close, search, check). The id is the drawing.
|
|
151
|
+
* Lucide matches the upstream themes. A theme replaces any of these, or adds
|
|
152
|
+
* its own keys, through `defineTheme({ icons })`.
|
|
153
|
+
*
|
|
154
|
+
* The drawing is used only after that collection is registered. Until then
|
|
155
|
+
* the built-in glyph stays, so a missing collection does not blank the icon.
|
|
156
|
+
*/
|
|
157
|
+
const defaultSemanticIcons = {
|
|
158
|
+
close: "lucide:x",
|
|
159
|
+
chevronDown: "lucide:chevron-down",
|
|
160
|
+
chevronLeft: "lucide:chevron-left",
|
|
161
|
+
chevronRight: "lucide:chevron-right",
|
|
162
|
+
chevronsLeft: "lucide:chevrons-left",
|
|
163
|
+
chevronsRight: "lucide:chevrons-right",
|
|
164
|
+
check: "lucide:check",
|
|
165
|
+
success: "lucide:circle-check",
|
|
166
|
+
error: "lucide:circle-x",
|
|
167
|
+
warning: "lucide:triangle-alert",
|
|
168
|
+
info: "lucide:info",
|
|
169
|
+
calendar: "lucide:calendar",
|
|
170
|
+
clock: "lucide:clock",
|
|
171
|
+
externalLink: "lucide:external-link",
|
|
172
|
+
menu: "lucide:menu",
|
|
173
|
+
moreHorizontal: "lucide:ellipsis",
|
|
174
|
+
search: "lucide:search",
|
|
175
|
+
upload: "lucide:upload",
|
|
176
|
+
arrowUp: "lucide:arrow-up",
|
|
177
|
+
arrowDown: "lucide:arrow-down",
|
|
178
|
+
arrowsUpDown: "lucide:arrow-up-down",
|
|
179
|
+
funnel: "lucide:funnel",
|
|
180
|
+
eyeSlash: "lucide:eye-off",
|
|
181
|
+
viewColumns: "lucide:columns-3",
|
|
182
|
+
copy: "lucide:copy",
|
|
183
|
+
checkDouble: "lucide:check-check",
|
|
184
|
+
wrench: "lucide:wrench",
|
|
185
|
+
stop: "lucide:square",
|
|
186
|
+
microphone: "lucide:mic",
|
|
187
|
+
image: "lucide:image"
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* The Iconify id for a semantic name.
|
|
191
|
+
*
|
|
192
|
+
* Theme entries win, including keys the package does not ship. An unknown
|
|
193
|
+
* name with no theme entry returns undefined, so a CSS class can still pass
|
|
194
|
+
* through `icon`.
|
|
195
|
+
*/
|
|
196
|
+
function resolveSemanticIcon(name, icons) {
|
|
197
|
+
if (name == null || name === "") return void 0;
|
|
198
|
+
const override = icons?.[name];
|
|
199
|
+
if (override) return override;
|
|
200
|
+
return defaultSemanticIcons[name];
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/Icon/useSemanticIcon.ts
|
|
204
|
+
/**
|
|
205
|
+
* The Iconify id for a semantic icon name, from the nearest theme.
|
|
206
|
+
*
|
|
207
|
+
* Returns undefined when the name is not a semantic icon and the theme does
|
|
208
|
+
* not map it. Callers then keep the built-in glyph or a CSS class.
|
|
209
|
+
*/
|
|
210
|
+
function useSemanticIcon(name) {
|
|
211
|
+
const context = inject(themeContextKey, null);
|
|
212
|
+
return computed(() => resolveSemanticIcon(toValue(name), context?.value.theme.icons));
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
134
215
|
//#region src/Icon/Icon.vue
|
|
135
216
|
const _hoisted_1 = ["data-color", "data-size"];
|
|
136
217
|
const _hoisted_2 = ["innerHTML"];
|
|
@@ -148,24 +229,38 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
148
229
|
const props = __props;
|
|
149
230
|
const inheritedSize = useIconDefaultSize();
|
|
150
231
|
const idPrefix = `i${useId().replace(/\W/g, "")}-`;
|
|
151
|
-
const
|
|
232
|
+
const directName = computed(() => props.name != null && props.name !== "" ? props.name : void 0);
|
|
233
|
+
const semanticId = useSemanticIcon(() => typeof props.icon === "string" ? props.icon : void 0);
|
|
234
|
+
const registeredSemanticId = computed(() => {
|
|
235
|
+
const id = semanticId.value;
|
|
236
|
+
if (!id || directName.value != null) return void 0;
|
|
237
|
+
return getIcon(id) ? id : void 0;
|
|
238
|
+
});
|
|
152
239
|
const resolvedSize = computed(() => {
|
|
153
240
|
if (props.size != null) return props.size;
|
|
154
241
|
if (inheritedSize.value != null) return inheritedSize.value;
|
|
155
|
-
if (
|
|
242
|
+
if (directName.value != null) return void 0;
|
|
156
243
|
return "md";
|
|
157
244
|
});
|
|
158
245
|
const iconMarkup = computed(() => {
|
|
159
|
-
|
|
160
|
-
|
|
246
|
+
const query = directName.value ?? registeredSemanticId.value;
|
|
247
|
+
if (query == null) return void 0;
|
|
248
|
+
const data = getIcon(query);
|
|
161
249
|
if (data == null) {
|
|
162
|
-
warnMissingIcon(
|
|
250
|
+
if (directName.value != null) warnMissingIcon(directName.value);
|
|
163
251
|
return;
|
|
164
252
|
}
|
|
165
253
|
return renderIconMarkup(data, idPrefix);
|
|
166
254
|
});
|
|
167
|
-
const glyphSlug = computed(() =>
|
|
168
|
-
|
|
255
|
+
const glyphSlug = computed(() => {
|
|
256
|
+
if (directName.value != null || registeredSemanticId.value != null) return void 0;
|
|
257
|
+
return typeof props.icon === "string" && isIconGlyph(props.icon) ? iconGlyphSlug(props.icon) : void 0;
|
|
258
|
+
});
|
|
259
|
+
const providedClass = computed(() => {
|
|
260
|
+
if (directName.value != null || registeredSemanticId.value != null || glyphSlug.value != null) return void 0;
|
|
261
|
+
if (typeof props.icon !== "string" || semanticId.value != null) return void 0;
|
|
262
|
+
return props.icon;
|
|
263
|
+
});
|
|
169
264
|
const iconComponent = computed(() => props.icon != null && typeof props.icon !== "string" ? props.icon : void 0);
|
|
170
265
|
const a11yAttrs = computed(() => {
|
|
171
266
|
const label = props.label;
|
|
@@ -182,17 +277,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
182
277
|
}), [
|
|
183
278
|
createCommentVNode(" Iconify bodies are SVG path data from a collection, not caller HTML. "),
|
|
184
279
|
createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
|
|
185
|
-
|
|
280
|
+
iconMarkup.value ? (openBlock(), createElementBlock("span", {
|
|
186
281
|
key: 0,
|
|
187
282
|
class: "astryx-icon__svg",
|
|
188
283
|
innerHTML: iconMarkup.value
|
|
189
|
-
}, null, 8, _hoisted_2)) :
|
|
284
|
+
}, null, 8, _hoisted_2)) : glyphSlug.value ? (openBlock(), createElementBlock("span", {
|
|
190
285
|
key: 1,
|
|
191
286
|
class: normalizeClass(["astryx-icon__glyph", `astryx-icon--${glyphSlug.value}`])
|
|
192
|
-
}, null, 2)) :
|
|
287
|
+
}, null, 2)) : providedClass.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode("\n Utility icon classes (UnoCSS `i-*`) set width and height to 100% outside\n any layer, which would override this box's size if the class sat on it.\n The box owns the size; the class only paints the inside.\n "), createElementVNode("span", { class: normalizeClass(["astryx-icon__external", providedClass.value]) }, null, 2)], 2112)) : iconComponent.value && directName.value == null ? (openBlock(), createBlock(resolveDynamicComponent(iconComponent.value), { key: 3 })) : directName.value == null ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 4) : createCommentVNode("v-if", true)
|
|
193
288
|
], 16, _hoisted_1);
|
|
194
289
|
};
|
|
195
290
|
}
|
|
196
291
|
});
|
|
197
292
|
//#endregion
|
|
198
|
-
export {
|
|
293
|
+
export { ICON_GLYPHS as a, resolveSemanticIcon as i, useSemanticIcon as n, iconGlyphSlug as o, defaultSemanticIcons as r, isIconGlyph as s, _sfc_main as t };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { A as IndicatorRegistry, C as IndicatorComponent, D as IndicatorName, E as IndicatorMap, M as IndicatorState, O as IndicatorPosition, S as CoreIndicatorName, T as IndicatorFamilyMap, j as IndicatorSize, k as IndicatorProps, w as IndicatorFamily } from "../types-gKsEkk2g.js";
|
|
2
|
+
import { a as _default$1, i as isCoreIndicatorName, n as defaultIndicators, o as isRenderable, r as getIndicator, s as _default, t as useIndicator } from "../index-XuAAcYiP.js";
|
|
3
|
+
export { _default as CheckIndicator, type CoreIndicatorName, type IndicatorComponent, type IndicatorFamily, type IndicatorFamilyMap, type IndicatorMap, type IndicatorName, type IndicatorPosition, type IndicatorProps, type IndicatorRegistry, type IndicatorSize, type IndicatorState, _default$1 as RadioIndicator, defaultIndicators, getIndicator, isCoreIndicatorName, isRenderable, useIndicator };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as _sfc_main$1, i as isCoreIndicatorName, n as defaultIndicators, o as _sfc_main, r as getIndicator, s as isRenderable, t as useIndicator } from "../useIndicator-i1NORM7W.js";
|
|
2
|
+
export { _sfc_main as CheckIndicator, _sfc_main$1 as RadioIndicator, defaultIndicators, getIndicator, isCoreIndicatorName, isRenderable, useIndicator };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as INPUT_GROUP_KEY, i as
|
|
2
|
-
export { INPUT_GROUP_KEY, _default as InputGroup, type InputGroupContext, type InputGroupProps, type InputGroupSize, type InputGroupSlots };
|
|
1
|
+
import { a as InputGroupSlots, c as INPUT_GROUP_KEY, i as InputGroupSize, l as InputGroupContext, n as _default, o as InputGroupTextProps, r as InputGroupProps, s as InputGroupTextSlots, t as _default$1 } from "../index-BPwD6aBv.js";
|
|
2
|
+
export { INPUT_GROUP_KEY, _default as InputGroup, type InputGroupContext, type InputGroupProps, type InputGroupSize, type InputGroupSlots, _default$1 as InputGroupText, type InputGroupTextProps, type InputGroupTextSlots };
|
package/dist/InputGroup/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as INPUT_GROUP_KEY } from "../context-D5-MwxnN.js";
|
|
2
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../InputGroup-BzR6JRZb.js";
|
|
3
|
+
export { INPUT_GROUP_KEY, _sfc_main as InputGroup, _sfc_main$1 as InputGroupText };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { t as _sfc_main$2 } from "./Field-8zRxzDHE.js";
|
|
2
|
+
import { t as INPUT_GROUP_KEY } from "./context-D5-MwxnN.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, provide, renderSlot, useId, withCtx } from "vue";
|
|
4
|
+
import "../styles/input-group.css";
|
|
5
|
+
//#region src/InputGroup/InputGroup.vue
|
|
6
|
+
const _hoisted_1 = ["aria-labelledby", "aria-describedby"];
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "astryx-input-group-addon before"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = { class: "astryx-input-group-field" };
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "astryx-input-group-addon after"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_5 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "astryx-input-group-addon before"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_6 = { class: "astryx-input-group-field" };
|
|
21
|
+
const _hoisted_7 = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "astryx-input-group-addon after"
|
|
24
|
+
};
|
|
25
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
26
|
+
name: "AstryxInputGroup",
|
|
27
|
+
__name: "InputGroup",
|
|
28
|
+
props: {
|
|
29
|
+
label: {},
|
|
30
|
+
isLabelHidden: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
description: {},
|
|
35
|
+
disabled: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
isOptional: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
isRequired: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
size: { default: "md" },
|
|
48
|
+
status: {},
|
|
49
|
+
labelTooltip: {}
|
|
50
|
+
},
|
|
51
|
+
setup(__props) {
|
|
52
|
+
const props = __props;
|
|
53
|
+
const inputId = `astryx-input-group-${useId()}`;
|
|
54
|
+
const labelId = computed(() => props.label ? `${inputId}-label` : void 0);
|
|
55
|
+
const descriptionId = computed(() => props.label && props.description ? `${inputId}-description` : void 0);
|
|
56
|
+
const statusId = computed(() => props.label && props.status?.message ? `${inputId}-status` : void 0);
|
|
57
|
+
const describedBy = computed(() => [descriptionId.value, statusId.value].filter(Boolean).join(" ") || void 0);
|
|
58
|
+
provide(INPUT_GROUP_KEY, {
|
|
59
|
+
size: computed(() => props.size),
|
|
60
|
+
disabled: computed(() => props.disabled),
|
|
61
|
+
labelId,
|
|
62
|
+
describedBy
|
|
63
|
+
});
|
|
64
|
+
const groupClass = computed(() => [`size-${props.size}`, {
|
|
65
|
+
"is-disabled": props.disabled,
|
|
66
|
+
[`status-${props.status?.type}`]: props.status != null
|
|
67
|
+
}]);
|
|
68
|
+
return (_ctx, _cache) => {
|
|
69
|
+
return __props.label ? (openBlock(), createBlock(_sfc_main$2, {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "astryx-input-group-shell",
|
|
72
|
+
label: __props.label,
|
|
73
|
+
"input-id": inputId,
|
|
74
|
+
description: __props.description,
|
|
75
|
+
"is-label-hidden": __props.isLabelHidden,
|
|
76
|
+
"is-disabled": __props.disabled,
|
|
77
|
+
"is-optional": __props.isOptional,
|
|
78
|
+
"is-required": __props.isRequired,
|
|
79
|
+
status: __props.status,
|
|
80
|
+
"status-variant": "detached",
|
|
81
|
+
"label-tooltip": __props.labelTooltip,
|
|
82
|
+
"is-group-label": ""
|
|
83
|
+
}, {
|
|
84
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
85
|
+
class: normalizeClass(["astryx-input-group", groupClass.value]),
|
|
86
|
+
role: "group",
|
|
87
|
+
"aria-labelledby": labelId.value,
|
|
88
|
+
"aria-describedby": describedBy.value
|
|
89
|
+
}, [
|
|
90
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "before")])) : createCommentVNode("v-if", true),
|
|
91
|
+
createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "default")]),
|
|
92
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "after")])) : createCommentVNode("v-if", true)
|
|
93
|
+
], 10, _hoisted_1)]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, [
|
|
96
|
+
"label",
|
|
97
|
+
"description",
|
|
98
|
+
"is-label-hidden",
|
|
99
|
+
"is-disabled",
|
|
100
|
+
"is-optional",
|
|
101
|
+
"is-required",
|
|
102
|
+
"status",
|
|
103
|
+
"label-tooltip"
|
|
104
|
+
])) : (openBlock(), createElementBlock("div", {
|
|
105
|
+
key: 1,
|
|
106
|
+
class: normalizeClass(["astryx-input-group", groupClass.value])
|
|
107
|
+
}, [
|
|
108
|
+
_ctx.$slots.before ? (openBlock(), createElementBlock("div", _hoisted_5, [renderSlot(_ctx.$slots, "before")])) : createCommentVNode("v-if", true),
|
|
109
|
+
createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "default")]),
|
|
110
|
+
_ctx.$slots.after ? (openBlock(), createElementBlock("div", _hoisted_7, [renderSlot(_ctx.$slots, "after")])) : createCommentVNode("v-if", true)
|
|
111
|
+
], 2));
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region src/InputGroup/InputGroupText.vue
|
|
117
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
118
|
+
name: "AstryxInputGroupText",
|
|
119
|
+
inheritAttrs: false,
|
|
120
|
+
__name: "InputGroupText",
|
|
121
|
+
props: { id: {} },
|
|
122
|
+
setup(__props) {
|
|
123
|
+
return (_ctx, _cache) => {
|
|
124
|
+
return openBlock(), createElementBlock("span", mergeProps({ class: "astryx-input-group-text" }, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
export { _sfc_main$1 as n, _sfc_main as t };
|