@nubisco/ui 5.46.1 → 5.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccordionItem-C4_5XDlJ.js → AccordionItem-BybHChPs.js} +2 -2
- package/dist/{AccordionItem-CvdHihy_.cjs → AccordionItem-D6mruuMX.cjs} +1 -1
- package/dist/{ActionGroup-PgnAwRgJ.cjs → ActionGroup-BW4jTdT0.cjs} +1 -1
- package/dist/{ActionGroup-DVzC7pb-.js → ActionGroup-D3Gl1-JX.js} +2 -2
- package/dist/{AiLabel-CPINOrQd.js → AiLabel-DSiCpLvM.js} +2 -2
- package/dist/{AiLabel-BK3oecvT.cjs → AiLabel-G7b92e7Q.cjs} +1 -1
- package/dist/{AiProvider-Dfl-y2Wy.cjs → AiProvider-CXIEBABi.cjs} +1 -1
- package/dist/{AiProvider-rvV85R7w.js → AiProvider-HhveBBc_.js} +6 -6
- package/dist/{AiUsage-D1xgxa2C.js → AiUsage-CFdp1EMH.js} +2 -2
- package/dist/{AiUsage-62kxTT8F.cjs → AiUsage-DFo022zD.cjs} +1 -1
- package/dist/{BackToTop-Bgq4txNz.js → BackToTop-BAyTy5SN.js} +1 -1
- package/dist/{BackToTop-FeQ4kykw.cjs → BackToTop-DvNNsQcS.cjs} +1 -1
- package/dist/{Badge-Ce3NRrp_.cjs → Badge-BC7sqGRj.cjs} +1 -1
- package/dist/{Badge-D37sr-14.js → Badge-DVujzLka.js} +2 -2
- package/dist/{Banner-C6t1fbs0.cjs → Banner-BWfbWQjt.cjs} +1 -1
- package/dist/{Banner-Cb3GrxMM.js → Banner-CsxChQ3U.js} +1 -1
- package/dist/{BlueprintControls-HuvP3JgD.cjs → BlueprintControls-BwZeMwyC.cjs} +1 -1
- package/dist/{BlueprintControls-B9TveRQm.js → BlueprintControls-bMZ4hJTJ.js} +1 -1
- package/dist/{Board-CpSPRwYK.cjs → Board-BVpQ2OAm.cjs} +1 -1
- package/dist/{Board-m5s6Dtby.js → Board-CovoTYff.js} +2 -2
- package/dist/Breadcrumbs-BievPitp.js +184 -0
- package/dist/Breadcrumbs-BxhAEegP.cjs +1 -0
- package/dist/{Briefing-DH_mh7fN.js → Briefing-DOKq89AG.js} +3 -3
- package/dist/{Briefing-DUhMbdSV.cjs → Briefing-DVkZ2qDG.cjs} +1 -1
- package/dist/{BriefingDestination-D2_W_n7J.js → BriefingDestination-Bt07cVas.js} +2 -2
- package/dist/{BriefingDestination-LfgeTUzh.cjs → BriefingDestination-DymsWBLL.cjs} +1 -1
- package/dist/{Button-C-OsrbBY.js → Button-Cepcs335.js} +2 -2
- package/dist/{Button-Cjtw1CkB.cjs → Button-tmwLbryG.cjs} +1 -1
- package/dist/{Card-B1Snkf7r.cjs → Card-BNmkM0Cr.cjs} +1 -1
- package/dist/{Card-__tew6aW.js → Card-D5brHuVU.js} +2 -2
- package/dist/{CheckboxGroup-CUIlWTqZ.js → CheckboxGroup-B2GnAaDG.js} +3 -3
- package/dist/{CheckboxGroup-DZYMcUYF.cjs → CheckboxGroup-DJs_1dDP.cjs} +1 -1
- package/dist/{ColorStrip-ms8u4-on.js → ColorStrip-BSzZPdsl.js} +3 -3
- package/dist/{ColorStrip-oYITobr0.cjs → ColorStrip-CeQebn7z.cjs} +1 -1
- package/dist/{CommandPalette-CsFZYJBG.cjs → CommandPalette--Xg6G2hP.cjs} +1 -1
- package/dist/{CommandPalette-DTl9rvF0.js → CommandPalette-C-Hz6lEX.js} +1 -1
- package/dist/{Confirm-BVTBZR2b.js → Confirm-BZizwCO1.js} +5 -5
- package/dist/{Confirm-19CDmfES.cjs → Confirm-CquZnoj-.cjs} +1 -1
- package/dist/{CopyButton-CetR7hHC.cjs → CopyButton-Bctl1-xC.cjs} +1 -1
- package/dist/{CopyButton-Dgt2DbUH.js → CopyButton-Bm1kmCNv.js} +1 -1
- package/dist/{DataTable-CaJYOtLk.js → DataTable-Bm6OM1uz.js} +3 -3
- package/dist/{DataTable-6Z8IZeHf.cjs → DataTable-DrWZCe55.cjs} +1 -1
- package/dist/{DatePicker-DN_5RDB8.js → DatePicker-On8SAmN4.js} +4 -4
- package/dist/{DatePicker-BXZaGWsS.cjs → DatePicker-wMeO_BAn.cjs} +1 -1
- package/dist/{DragHandle-B673DaN2.cjs → DragHandle-BiRZHXXV.cjs} +1 -1
- package/dist/{DragHandle-CaK-4YhE.js → DragHandle-CCsaiV6I.js} +1 -1
- package/dist/{EmptyState-CpRnEfbE.js → EmptyState-CAEo8pSi.js} +1 -1
- package/dist/{EmptyState-DmBAVLu8.cjs → EmptyState-DNIDvUi9.cjs} +1 -1
- package/dist/{FileUploader-3vqReJ1p.cjs → FileUploader-CrtHrF9n.cjs} +1 -1
- package/dist/{FileUploader-DbkSKQbb.js → FileUploader-D9H4klul.js} +3 -3
- package/dist/{Form-CTlKzud3.cjs → Form-DLQDzw3T.cjs} +1 -1
- package/dist/{Form-CU8I3tRi.js → Form-KF4-rBll.js} +1 -1
- package/dist/Grid-BEezjVdC.cjs +1 -0
- package/dist/{Grid-CJFQvcko.js → Grid-CVFkhOfa.js} +14 -5
- package/dist/Icon-Bwec1Nfv.cjs +1 -0
- package/dist/{Icon-rREAqsu0.js → Icon-DwhI2DFK.js} +12 -10
- package/dist/{ImageCropper-DsPY_FK-.cjs → ImageCropper-B6aiAxIi.cjs} +1 -1
- package/dist/{ImageCropper-DJdFeFEa.js → ImageCropper-xicq_NFy.js} +2 -2
- package/dist/{ImagePicker-BGSGBibF.cjs → ImagePicker-CTfZfaq9.cjs} +1 -1
- package/dist/{ImagePicker-BX28wROp.js → ImagePicker-DNtBcBbo.js} +2 -2
- package/dist/{InfoHint-CyuBCIgq.cjs → InfoHint-DaBGsnrK.cjs} +1 -1
- package/dist/{InfoHint-CC4cvFsD.js → InfoHint-KtTzQk1z.js} +1 -1
- package/dist/{InlineEdit-CBeh3e_w.js → InlineEdit-CqMv5XBG.js} +1 -1
- package/dist/{InlineEdit-_fLd4ZNk.cjs → InlineEdit-JuytHnWO.cjs} +1 -1
- package/dist/{InlineLoading-DTni8I9v.cjs → InlineLoading-CUycVgGa.cjs} +1 -1
- package/dist/{InlineLoading-Cs5QZd9l.js → InlineLoading-D7ku7ugr.js} +1 -1
- package/dist/{Label-71QAuWf4.cjs → Label-B9x4-i1C.cjs} +1 -1
- package/dist/{Label-BEW_5nYq.js → Label-D1_MfuTA.js} +1 -1
- package/dist/MenuItem-D6hIjWBm.cjs +1 -0
- package/dist/MenuItem-DSFh9Akf.js +94 -0
- package/dist/{Message-BpDOzu5W.cjs → Message-COxRTtqI.cjs} +1 -1
- package/dist/{Message-CqVP4y4Y.js → Message-DlluDLCZ.js} +1 -1
- package/dist/{Modal-wtlHUSSo.js → Modal-C75Kf4t7.js} +3 -3
- package/dist/{Modal-CMF77gQX.cjs → Modal-F7rA1EFq.cjs} +1 -1
- package/dist/{NotificationCenter-CGNa7MoB.cjs → NotificationCenter-C3D55kLa.cjs} +1 -1
- package/dist/{NotificationCenter-DtsfXKrM.js → NotificationCenter-bGbvX-iA.js} +4 -4
- package/dist/{NotificationCenterItem-DOEvOsiy.js → NotificationCenterItem-BIhM59Xh.js} +1 -1
- package/dist/{NotificationCenterItem-hSxc82yG.cjs → NotificationCenterItem-Dpj3jDEN.cjs} +1 -1
- package/dist/{NumberInput-ggLG8zsa.js → NumberInput-DZ2JIarM.js} +3 -3
- package/dist/{NumberInput-x1lY-01L.cjs → NumberInput-Daauv-mS.cjs} +1 -1
- package/dist/{Pagination-6FLCG39u.cjs → Pagination-BiXAAS94.cjs} +1 -1
- package/dist/{Pagination-gc-SNeLt.js → Pagination-oWMOC9Qw.js} +2 -2
- package/dist/{ProgressBar-RCt7Y6mi.js → ProgressBar-B26wk0nU.js} +4 -4
- package/dist/{ProgressBar-CHyFQlL4.cjs → ProgressBar-DukxUvmt.cjs} +1 -1
- package/dist/{Radio-BSl4W12s.cjs → Radio-DuW0s5JD.cjs} +1 -1
- package/dist/{Radio-DHmTMvjM.js → Radio-LrqGD0NJ.js} +3 -3
- package/dist/{ReorderList-JLX01ViS.cjs → ReorderList-97H8hsPW.cjs} +1 -1
- package/dist/{ReorderList-BgowtiZj.js → ReorderList-BMIf_x8B.js} +1 -1
- package/dist/{Select-DPrncZll.js → Select-Dah-tYeb.js} +4 -4
- package/dist/{Select-cRjKYI2t.cjs → Select-Z6XKZwgn.cjs} +1 -1
- package/dist/{Shell-B-kBO9pJ.cjs → Shell-BCBzgwZl.cjs} +1 -1
- package/dist/{Shell-Da_Updzh.js → Shell-DSY0rcWY.js} +1 -1
- package/dist/{ShellPanel-BaJQxg3h.cjs → ShellPanel-CB_Rn_JF.cjs} +1 -1
- package/dist/{ShellPanel-CoP2tWLo.js → ShellPanel-DAOuAPdn.js} +1 -1
- package/dist/{SidebarBrand-DgGfdnZE.cjs → SidebarBrand-DLKszSpJ.cjs} +1 -1
- package/dist/{SidebarBrand-Bvfoqveo.js → SidebarBrand-ZZknryCa.js} +1 -1
- package/dist/{SidebarCollapseToggle-BYTXsEKz.cjs → SidebarCollapseToggle-CCNVQPFh.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-CjRALrn2.js → SidebarCollapseToggle-Dq-A6NAJ.js} +1 -1
- package/dist/{SidebarHeaderToggle-BwnXdcrB.js → SidebarHeaderToggle-8K_NrpBm.js} +1 -1
- package/dist/{SidebarHeaderToggle-BeLPv1dU.cjs → SidebarHeaderToggle-CRsdm90m.cjs} +1 -1
- package/dist/{SidebarMenuGroup-ByeTvkHJ.cjs → SidebarMenuGroup-D1jYkspC.cjs} +1 -1
- package/dist/{SidebarMenuGroup-BTVsBDts.js → SidebarMenuGroup-RczOdr4t.js} +2 -2
- package/dist/{SidebarMenuItem-CA1dBftp.js → SidebarMenuItem-D8eFyD7l.js} +6 -6
- package/dist/{SidebarMenuItem-BhRePtWB.cjs → SidebarMenuItem-r_TpdHsD.cjs} +1 -1
- package/dist/{Slider-56pPcL_E.js → Slider-CM-YIOPa.js} +4 -4
- package/dist/{Slider-TlwhliL1.cjs → Slider-CNqWXBhw.cjs} +1 -1
- package/dist/{Stat-BfDK9HRp.js → Stat-BHuShwuo.js} +2 -2
- package/dist/{Stat-x01dwM0g.cjs → Stat-DmdfVU4X.cjs} +1 -1
- package/dist/{StepperStep-CsrrJfwu.js → StepperStep-BMts1ePk.js} +1 -1
- package/dist/{StepperStep-C-uCJroV.cjs → StepperStep-DM__K4sj.cjs} +1 -1
- package/dist/{Submenu-DS2s0NYW.js → Submenu-D3kcN7Qm.js} +1 -1
- package/dist/{Submenu-Dqgk6Bu2.cjs → Submenu-DTqj37HQ.cjs} +1 -1
- package/dist/SuggestionList--DXpfDSJ.cjs +1 -0
- package/dist/SuggestionList-CNtaiJFb.js +189 -0
- package/dist/{Switch-B40hMlXu.js → Switch-Bhn_b5ue.js} +3 -3
- package/dist/{Switch-D7eHiXw1.cjs → Switch-DPxYeU1r.cjs} +1 -1
- package/dist/{TableOfContents-B72I_ReR.js → TableOfContents-DvsufeVY.js} +1 -1
- package/dist/{TableOfContents-CNxzC_6Z.cjs → TableOfContents-pJY07qUd.cjs} +1 -1
- package/dist/{Tabs-DCoou72c.cjs → Tabs-DPd-CKi1.cjs} +1 -1
- package/dist/{Tabs-C9nc4fvQ.js → Tabs-S3I4uaTq.js} +39 -39
- package/dist/{TextInput-DssK3wB2.js → TextInput-CMNHASTy.js} +4 -4
- package/dist/{TextInput-gA5Fp8Y7.cjs → TextInput-Dim1RJ1e.cjs} +1 -1
- package/dist/{Toast-DNtON_wR.cjs → Toast-BZZgBE9V.cjs} +1 -1
- package/dist/{Toast-CkZ1teg6.js → Toast-CHqiHiKq.js} +1 -1
- package/dist/{Toaster-B1SyGLyl.js → Toaster-6tdIn4we.js} +1 -1
- package/dist/{Toaster-C6GwLIeR.cjs → Toaster-CwLeMxh_.cjs} +1 -1
- package/dist/{TreeNode-CSHd1PSy.cjs → TreeNode-BjqvPxI6.cjs} +1 -1
- package/dist/{TreeNode-4bbso5nG.js → TreeNode-Bnlm_eRb.js} +1 -1
- package/dist/{UserMenu-Cn_zwZyJ.cjs → UserMenu-BtS4CcwB.cjs} +1 -1
- package/dist/{UserMenu-BD6uLDXp.js → UserMenu-SokwKvM0.js} +2 -2
- package/dist/{Video-B8TFsoLx.cjs → Video-CfRR9Ire.cjs} +1 -1
- package/dist/{Video-CTeSlgd1.js → Video-CvpT9tlK.js} +1 -1
- package/dist/{Walkthrough-BIN8ZCbA.cjs → Walkthrough-9SbBr6ig.cjs} +1 -1
- package/dist/{Walkthrough-Cy136LvZ.js → Walkthrough-BX3cVdLo.js} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +205 -205
- package/dist/component-styles.json +5 -0
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/AiUsage.cjs +1 -1
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.d.ts +5 -0
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/EmptyState.cjs +1 -1
- package/dist/components/EmptyState.mjs +1 -1
- package/dist/components/Field.cjs +1 -1
- package/dist/components/Field.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/Grid.cjs +1 -1
- package/dist/components/Grid.d.ts +28 -3
- package/dist/components/Grid.mjs +1 -1
- package/dist/components/Grid.vue.d.ts.map +1 -1
- package/dist/components/Icon.cjs +1 -1
- package/dist/components/Icon.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Menu.d.ts +7 -0
- package/dist/components/MenuItem.cjs +1 -1
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItem.vue.d.ts +5 -2
- package/dist/components/MenuItem.vue.d.ts.map +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/ShellPanel.vue.d.ts.map +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.d.ts +10 -0
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/SuggestionList.vue.d.ts +1 -0
- package/dist/components/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +134 -134
- package/dist/{main-Dw1kBHgQ.cjs → main-R1TM8Ptt.cjs} +2 -2
- package/dist/{main-Bp4F8LhP.js → main-TRQw3oqC.js} +22 -20
- package/dist/main.d.ts +45 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/plugins/vite/imports.d.ts +15 -0
- package/dist/plugins/vite/imports.d.ts.map +1 -1
- package/dist/plugins/vite/imports.js +77 -4
- package/dist/plugins/vite/index.d.ts.map +1 -1
- package/dist/plugins/vite/index.js +2 -1
- package/dist/styles/Board.css +1 -1
- package/dist/styles/Breadcrumbs.css +1 -1
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/ShellPanel.css +1 -1
- package/dist/styles/SuggestionList.css +1 -1
- package/dist/ui.css +7 -7
- package/package.json +1 -1
- package/src/plugins/vite/imports.ts +64 -4
- package/src/plugins/vite/index.ts +2 -1
- package/src/styles/_reset.scss +55 -53
- package/src/styles/grid/_mixins.scss +21 -0
- package/dist/Breadcrumbs-Cmr5dHB3.js +0 -175
- package/dist/Breadcrumbs-DGJEdKOS.cjs +0 -1
- package/dist/Grid-CXE0B85G.cjs +0 -1
- package/dist/Icon-C8R_r_In.cjs +0 -1
- package/dist/MenuItem-BDLX2QWw.js +0 -85
- package/dist/MenuItem-ZQcFYe4m.cjs +0 -1
- package/dist/SuggestionList-C6LGxP-U.cjs +0 -1
- package/dist/SuggestionList-IAeZl5eK.js +0 -170
- /package/dist/{Avatar-BpPczEa8.cjs → Avatar-BtPUauIn.cjs} +0 -0
- /package/dist/{Avatar-BibgBZuN.js → Avatar-DqZ-eYb8.js} +0 -0
- /package/dist/{Card.link--Qj8i8fT.cjs → Card.link-crO1EgJA.cjs} +0 -0
- /package/dist/{Card.link-gVhJkbHq.js → Card.link-dJAabUqe.js} +0 -0
- /package/dist/{CardGrid-MzpKRH7W.js → CardGrid-BXFxfmlA.js} +0 -0
- /package/dist/{CardGrid-DYF5LaKh.cjs → CardGrid-q_Zz_Ip_.cjs} +0 -0
- /package/dist/{DefinitionList-DQja72sQ.cjs → DefinitionList-BH2HAPr3.cjs} +0 -0
- /package/dist/{DefinitionList-DbIcRjHH.js → DefinitionList-CCWqE3Kh.js} +0 -0
- /package/dist/{DefinitionListItem-Ci0YYnKM.js → DefinitionListItem-Cg8BggyX.js} +0 -0
- /package/dist/{DefinitionListItem-Cre5iJWK.cjs → DefinitionListItem-DnFxxXWI.cjs} +0 -0
- /package/dist/{Field-C7JxGz6g.cjs → Field-3zUVZEMG.cjs} +0 -0
- /package/dist/{Field-6haRtm1-.js → Field-BCzaQlaY.js} +0 -0
- /package/dist/{Panel-B3kJkm_w.js → Panel-CWBZ-kgD.js} +0 -0
- /package/dist/{Panel-DKp-aPUn.cjs → Panel-ap8JYHvL.cjs} +0 -0
- /package/dist/{TextInput.context-BrDuawa9.cjs → TextInput.context-C0YTT4zw.cjs} +0 -0
- /package/dist/{TextInput.context-CR-Svohb.js → TextInput.context-DvCbZUx_.js} +0 -0
|
@@ -34,6 +34,18 @@ import { parse, babelParse } from 'vue/compiler-sfc'
|
|
|
34
34
|
* file actually uses.
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Exports that mount a library component at runtime instead of rendering it
|
|
39
|
+
* from a template. `useConfirm()` creates its own app around NbConfirm, so no
|
|
40
|
+
* template ever names NbConfirm and, before this map, no build linked
|
|
41
|
+
* `Confirm.css`: every confirm dialog rendered unstyled. A spec in
|
|
42
|
+
* `tests/import-plugin.test.ts` reads the composables' own imports and fails
|
|
43
|
+
* if one mounts a component this map does not name.
|
|
44
|
+
*/
|
|
45
|
+
export const PROGRAMMATIC_MOUNTS: Record<string, string[]> = {
|
|
46
|
+
useConfirm: ['Confirm'],
|
|
47
|
+
}
|
|
48
|
+
|
|
37
49
|
interface INubiscoImportOptions {
|
|
38
50
|
/** `Nb*` name to entry file, from the component manifest. */
|
|
39
51
|
manifest: Map<string, string>
|
|
@@ -41,6 +53,12 @@ interface INubiscoImportOptions {
|
|
|
41
53
|
styleManifest: Record<string, string[]>
|
|
42
54
|
/** Inject stylesheets. When false this plugin only rewrites imports. */
|
|
43
55
|
styles: boolean
|
|
56
|
+
/**
|
|
57
|
+
* Exports that mount a component at runtime, mapped to the entries they
|
|
58
|
+
* mount. No template names that component, so neither the resolver nor the
|
|
59
|
+
* rewrite below would otherwise link its stylesheets.
|
|
60
|
+
*/
|
|
61
|
+
mounts?: Record<string, string[]>
|
|
44
62
|
packageName: string
|
|
45
63
|
/** Called with the number of components resolved in a file. */
|
|
46
64
|
onResolve: (count: number) => void
|
|
@@ -70,8 +88,16 @@ interface ISpecifier {
|
|
|
70
88
|
}
|
|
71
89
|
|
|
72
90
|
export function nubiscoImports(options: INubiscoImportOptions) {
|
|
73
|
-
const {
|
|
91
|
+
const {
|
|
92
|
+
manifest,
|
|
93
|
+
styleManifest,
|
|
94
|
+
styles,
|
|
95
|
+
mounts = {},
|
|
96
|
+
packageName,
|
|
97
|
+
onResolve,
|
|
98
|
+
} = options
|
|
74
99
|
const componentPrefix = `${packageName}/components/`
|
|
100
|
+
const composablePrefix = `${packageName}/composables/`
|
|
75
101
|
|
|
76
102
|
return {
|
|
77
103
|
name: 'nubisco-ui:imports',
|
|
@@ -135,7 +161,33 @@ export function nubiscoImports(options: INubiscoImportOptions) {
|
|
|
135
161
|
continue
|
|
136
162
|
}
|
|
137
163
|
|
|
138
|
-
|
|
164
|
+
/*
|
|
165
|
+
* A composable that mounts a component itself (`useConfirm` creates
|
|
166
|
+
* its own NbConfirm app) links that component's stylesheets, since
|
|
167
|
+
* no template ever names it. Only named value imports can say which
|
|
168
|
+
* export the file uses.
|
|
169
|
+
*/
|
|
170
|
+
let mounted = ''
|
|
171
|
+
if (source === packageName || source.startsWith(composablePrefix)) {
|
|
172
|
+
for (const specifier of node.specifiers as any[]) {
|
|
173
|
+
if (specifier.type !== 'ImportSpecifier') continue
|
|
174
|
+
if (specifier.importKind === 'type') continue
|
|
175
|
+
const imported: string =
|
|
176
|
+
specifier.imported.name ?? specifier.imported.value
|
|
177
|
+
for (const entry of mounts[imported] ?? []) {
|
|
178
|
+
resolved += 1
|
|
179
|
+
mounted += sheetsFor(entry)
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (source !== packageName) {
|
|
185
|
+
if (mounted) {
|
|
186
|
+
magic.appendRight(end, mounted)
|
|
187
|
+
changed = true
|
|
188
|
+
}
|
|
189
|
+
continue
|
|
190
|
+
}
|
|
139
191
|
|
|
140
192
|
const components: ISpecifier[] = []
|
|
141
193
|
const rest: string[] = []
|
|
@@ -160,7 +212,13 @@ export function nubiscoImports(options: INubiscoImportOptions) {
|
|
|
160
212
|
components.push({ imported, local })
|
|
161
213
|
}
|
|
162
214
|
|
|
163
|
-
if (!splittable || !components.length)
|
|
215
|
+
if (!splittable || !components.length) {
|
|
216
|
+
if (mounted) {
|
|
217
|
+
magic.appendRight(end, mounted)
|
|
218
|
+
changed = true
|
|
219
|
+
}
|
|
220
|
+
continue
|
|
221
|
+
}
|
|
164
222
|
|
|
165
223
|
const lines = components.map(({ imported, local }) => {
|
|
166
224
|
const entry = manifest.get(imported) as string
|
|
@@ -172,7 +230,9 @@ export function nubiscoImports(options: INubiscoImportOptions) {
|
|
|
172
230
|
)
|
|
173
231
|
})
|
|
174
232
|
if (rest.length) {
|
|
175
|
-
lines.push(
|
|
233
|
+
lines.push(
|
|
234
|
+
`import { ${rest.join(', ')} } from '${source}'` + mounted,
|
|
235
|
+
)
|
|
176
236
|
}
|
|
177
237
|
|
|
178
238
|
resolved += components.length
|
|
@@ -5,7 +5,7 @@ import type { Plugin } from 'vite'
|
|
|
5
5
|
import { Components } from './vendor.js'
|
|
6
6
|
import { COMPONENT_MANIFEST } from '../../components/manifest.js'
|
|
7
7
|
import { nubiscoGlyphs, type IGlyphOptions } from './glyphs.js'
|
|
8
|
-
import { nubiscoImports } from './imports.js'
|
|
8
|
+
import { nubiscoImports, PROGRAMMATIC_MOUNTS } from './imports.js'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Compile-time resolution for `@nubisco/ui`.
|
|
@@ -123,6 +123,7 @@ export function nubiscoUI(options: INubiscoUIOptions = {}): Plugin[] {
|
|
|
123
123
|
manifest: lookup,
|
|
124
124
|
styleManifest,
|
|
125
125
|
styles,
|
|
126
|
+
mounts: PROGRAMMATIC_MOUNTS,
|
|
126
127
|
packageName: '@nubisco/ui',
|
|
127
128
|
onResolve: (count) => {
|
|
128
129
|
resolvedComponents += count
|
package/src/styles/_reset.scss
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
@use 'config';
|
|
2
2
|
|
|
3
|
+
// Every element selector in here sits inside `:where()`, so the reset has
|
|
4
|
+
// zero specificity and loses to anything a component or a product says about
|
|
5
|
+
// the same element, whatever order the stylesheets load in. Without that, a
|
|
6
|
+
// per-component sheet that loads before the app's own `@use '@nubisco/ui/styles'`
|
|
7
|
+
// (a route chunk, measured on a contact form) had its `.nb-select__trigger`
|
|
8
|
+
// background and border wiped by `[type='button'] { background: transparent;
|
|
9
|
+
// border: 0 }`, which has the same specificity and came later. A reset is a
|
|
10
|
+
// baseline, never a winner.
|
|
11
|
+
//
|
|
12
|
+
// Two rules stay at their natural specificity on purpose: `[hidden]`, because
|
|
13
|
+
// a hidden element must stay hidden against a component's own `display`, and
|
|
14
|
+
// the `*` box-sizing rule, which is already zero.
|
|
3
15
|
@mixin reset {
|
|
4
16
|
* {
|
|
5
17
|
margin-block-start: 0;
|
|
@@ -16,7 +28,7 @@
|
|
|
16
28
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
17
29
|
*/
|
|
18
30
|
|
|
19
|
-
html {
|
|
31
|
+
:where(html) {
|
|
20
32
|
line-height: 1.15; /* 1 */
|
|
21
33
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
22
34
|
}
|
|
@@ -28,7 +40,7 @@
|
|
|
28
40
|
* Remove the margin in all browsers.
|
|
29
41
|
*/
|
|
30
42
|
|
|
31
|
-
body {
|
|
43
|
+
:where(body) {
|
|
32
44
|
margin: 0;
|
|
33
45
|
}
|
|
34
46
|
|
|
@@ -36,7 +48,7 @@
|
|
|
36
48
|
* Render the `main` element consistently in IE.
|
|
37
49
|
*/
|
|
38
50
|
|
|
39
|
-
main {
|
|
51
|
+
:where(main) {
|
|
40
52
|
display: block;
|
|
41
53
|
}
|
|
42
54
|
|
|
@@ -45,7 +57,7 @@
|
|
|
45
57
|
* `article` contexts in Chrome, Firefox, and Safari.
|
|
46
58
|
*/
|
|
47
59
|
|
|
48
|
-
h1 {
|
|
60
|
+
:where(h1) {
|
|
49
61
|
font-size: 2em;
|
|
50
62
|
margin: 0.67em 0;
|
|
51
63
|
}
|
|
@@ -58,7 +70,7 @@
|
|
|
58
70
|
* 2. Show the overflow in Edge and IE.
|
|
59
71
|
*/
|
|
60
72
|
|
|
61
|
-
hr {
|
|
73
|
+
:where(hr) {
|
|
62
74
|
box-sizing: content-box; /* 1 */
|
|
63
75
|
height: 0; /* 1 */
|
|
64
76
|
overflow: visible; /* 2 */
|
|
@@ -69,7 +81,7 @@
|
|
|
69
81
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
70
82
|
*/
|
|
71
83
|
|
|
72
|
-
pre {
|
|
84
|
+
:where(pre) {
|
|
73
85
|
font-family: monospace; /* 1 */
|
|
74
86
|
font-size: 1em; /* 2 */
|
|
75
87
|
}
|
|
@@ -111,7 +123,7 @@
|
|
|
111
123
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
112
124
|
*/
|
|
113
125
|
|
|
114
|
-
abbr[title] {
|
|
126
|
+
:where(abbr[title]) {
|
|
115
127
|
border-bottom: none; /* 1 */
|
|
116
128
|
text-decoration: underline; /* 2 */
|
|
117
129
|
text-decoration: underline dotted; /* 2 */
|
|
@@ -121,8 +133,7 @@
|
|
|
121
133
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
122
134
|
*/
|
|
123
135
|
|
|
124
|
-
b,
|
|
125
|
-
strong {
|
|
136
|
+
:where(b, strong) {
|
|
126
137
|
font-weight: bolder;
|
|
127
138
|
}
|
|
128
139
|
|
|
@@ -131,9 +142,7 @@
|
|
|
131
142
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
132
143
|
*/
|
|
133
144
|
|
|
134
|
-
code,
|
|
135
|
-
kbd,
|
|
136
|
-
samp {
|
|
145
|
+
:where(code, kbd, samp) {
|
|
137
146
|
box-sizing: border-box;
|
|
138
147
|
font-family: monospace; /* 1 */
|
|
139
148
|
font-size: 1em; /* 2 */
|
|
@@ -143,7 +152,7 @@
|
|
|
143
152
|
* Add the correct font size in all browsers.
|
|
144
153
|
*/
|
|
145
154
|
|
|
146
|
-
small {
|
|
155
|
+
:where(small) {
|
|
147
156
|
font-size: 80%;
|
|
148
157
|
}
|
|
149
158
|
|
|
@@ -152,19 +161,18 @@
|
|
|
152
161
|
* all browsers.
|
|
153
162
|
*/
|
|
154
163
|
|
|
155
|
-
sub,
|
|
156
|
-
sup {
|
|
164
|
+
:where(sub, sup) {
|
|
157
165
|
font-size: 75%;
|
|
158
166
|
line-height: 0;
|
|
159
167
|
position: relative;
|
|
160
168
|
vertical-align: baseline;
|
|
161
169
|
}
|
|
162
170
|
|
|
163
|
-
sub {
|
|
171
|
+
:where(sub) {
|
|
164
172
|
bottom: -0.25em;
|
|
165
173
|
}
|
|
166
174
|
|
|
167
|
-
sup {
|
|
175
|
+
:where(sup) {
|
|
168
176
|
top: -0.5em;
|
|
169
177
|
}
|
|
170
178
|
|
|
@@ -175,7 +183,7 @@
|
|
|
175
183
|
* Remove the border on images inside links in IE 10.
|
|
176
184
|
*/
|
|
177
185
|
|
|
178
|
-
img {
|
|
186
|
+
:where(img) {
|
|
179
187
|
border-style: none;
|
|
180
188
|
}
|
|
181
189
|
|
|
@@ -187,11 +195,7 @@
|
|
|
187
195
|
* 2. Remove the margin in Firefox and Safari.
|
|
188
196
|
*/
|
|
189
197
|
|
|
190
|
-
button,
|
|
191
|
-
input,
|
|
192
|
-
optgroup,
|
|
193
|
-
select,
|
|
194
|
-
textarea {
|
|
198
|
+
:where(button, input, optgroup, select, textarea) {
|
|
195
199
|
font-family: inherit; /* 1 */
|
|
196
200
|
font-size: 100%; /* 1 */
|
|
197
201
|
line-height: 1.15; /* 1 */
|
|
@@ -207,8 +211,7 @@
|
|
|
207
211
|
* 1. Show the overflow in Edge.
|
|
208
212
|
*/
|
|
209
213
|
|
|
210
|
-
button,
|
|
211
|
-
input {
|
|
214
|
+
:where(button, input) {
|
|
212
215
|
/* 1 */
|
|
213
216
|
overflow: visible;
|
|
214
217
|
}
|
|
@@ -218,8 +221,7 @@
|
|
|
218
221
|
* 1. Remove the inheritance of text transform in Firefox.
|
|
219
222
|
*/
|
|
220
223
|
|
|
221
|
-
button,
|
|
222
|
-
select {
|
|
224
|
+
:where(button, select) {
|
|
223
225
|
/* 1 */
|
|
224
226
|
text-transform: none;
|
|
225
227
|
}
|
|
@@ -228,10 +230,7 @@
|
|
|
228
230
|
* Correct the inability to style clickable types in iOS and Safari.
|
|
229
231
|
*/
|
|
230
232
|
|
|
231
|
-
button,
|
|
232
|
-
[type='button'],
|
|
233
|
-
[type='reset'],
|
|
234
|
-
[type='submit'] {
|
|
233
|
+
:where(button, [type='button'], [type='reset'], [type='submit']) {
|
|
235
234
|
appearance: button;
|
|
236
235
|
background-color: transparent;
|
|
237
236
|
border: 0;
|
|
@@ -241,10 +240,12 @@
|
|
|
241
240
|
* Remove the inner border and padding in Firefox.
|
|
242
241
|
*/
|
|
243
242
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
243
|
+
:where(
|
|
244
|
+
button,
|
|
245
|
+
[type='button'],
|
|
246
|
+
[type='reset'],
|
|
247
|
+
[type='submit']
|
|
248
|
+
)::-moz-focus-inner {
|
|
248
249
|
border-style: none;
|
|
249
250
|
padding: 0;
|
|
250
251
|
}
|
|
@@ -253,10 +254,12 @@
|
|
|
253
254
|
* Restore the focus styles unset by the previous rule.
|
|
254
255
|
*/
|
|
255
256
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
:where(
|
|
258
|
+
button:-moz-focusring,
|
|
259
|
+
[type='button']:-moz-focusring,
|
|
260
|
+
[type='reset']:-moz-focusring,
|
|
261
|
+
[type='submit']:-moz-focusring
|
|
262
|
+
) {
|
|
260
263
|
outline: 1px dotted ButtonText;
|
|
261
264
|
}
|
|
262
265
|
|
|
@@ -264,7 +267,7 @@
|
|
|
264
267
|
* Correct the padding in Firefox.
|
|
265
268
|
*/
|
|
266
269
|
|
|
267
|
-
fieldset {
|
|
270
|
+
:where(fieldset) {
|
|
268
271
|
padding: 0.35em 0.75em 0.625em;
|
|
269
272
|
}
|
|
270
273
|
|
|
@@ -275,7 +278,7 @@
|
|
|
275
278
|
* `fieldset` elements in all browsers.
|
|
276
279
|
*/
|
|
277
280
|
|
|
278
|
-
legend {
|
|
281
|
+
:where(legend) {
|
|
279
282
|
box-sizing: border-box; /* 1 */
|
|
280
283
|
color: inherit; /* 2 */
|
|
281
284
|
display: table; /* 1 */
|
|
@@ -288,7 +291,7 @@
|
|
|
288
291
|
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
289
292
|
*/
|
|
290
293
|
|
|
291
|
-
progress {
|
|
294
|
+
:where(progress) {
|
|
292
295
|
vertical-align: baseline;
|
|
293
296
|
}
|
|
294
297
|
|
|
@@ -296,7 +299,7 @@
|
|
|
296
299
|
* Remove the default vertical scrollbar in IE 10+.
|
|
297
300
|
*/
|
|
298
301
|
|
|
299
|
-
textarea {
|
|
302
|
+
:where(textarea) {
|
|
300
303
|
overflow: auto;
|
|
301
304
|
}
|
|
302
305
|
|
|
@@ -305,8 +308,7 @@
|
|
|
305
308
|
* 2. Remove the padding in IE 10.
|
|
306
309
|
*/
|
|
307
310
|
|
|
308
|
-
[type='checkbox'],
|
|
309
|
-
[type='radio'] {
|
|
311
|
+
:where([type='checkbox'], [type='radio']) {
|
|
310
312
|
box-sizing: border-box; /* 1 */
|
|
311
313
|
padding: 0; /* 2 */
|
|
312
314
|
}
|
|
@@ -315,8 +317,8 @@
|
|
|
315
317
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
316
318
|
*/
|
|
317
319
|
|
|
318
|
-
[type='number']::-webkit-inner-spin-button,
|
|
319
|
-
[type='number']::-webkit-outer-spin-button {
|
|
320
|
+
:where([type='number'])::-webkit-inner-spin-button,
|
|
321
|
+
:where([type='number'])::-webkit-outer-spin-button {
|
|
320
322
|
height: auto;
|
|
321
323
|
}
|
|
322
324
|
|
|
@@ -325,7 +327,7 @@
|
|
|
325
327
|
* 2. Correct the outline style in Safari.
|
|
326
328
|
*/
|
|
327
329
|
|
|
328
|
-
[type='search'] {
|
|
330
|
+
:where([type='search']) {
|
|
329
331
|
appearance: textfield; /* 1 */
|
|
330
332
|
outline-offset: -2px; /* 2 */
|
|
331
333
|
}
|
|
@@ -334,7 +336,7 @@
|
|
|
334
336
|
* Remove the inner padding in Chrome and Safari on macOS.
|
|
335
337
|
*/
|
|
336
338
|
|
|
337
|
-
[type='search']::-webkit-search-decoration {
|
|
339
|
+
:where([type='search'])::-webkit-search-decoration {
|
|
338
340
|
-webkit-appearance: none;
|
|
339
341
|
}
|
|
340
342
|
|
|
@@ -355,7 +357,7 @@
|
|
|
355
357
|
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
356
358
|
*/
|
|
357
359
|
|
|
358
|
-
details {
|
|
360
|
+
:where(details) {
|
|
359
361
|
display: block;
|
|
360
362
|
}
|
|
361
363
|
|
|
@@ -363,7 +365,7 @@
|
|
|
363
365
|
* Add the correct display in all browsers.
|
|
364
366
|
*/
|
|
365
367
|
|
|
366
|
-
summary {
|
|
368
|
+
:where(summary) {
|
|
367
369
|
display: list-item;
|
|
368
370
|
}
|
|
369
371
|
|
|
@@ -374,7 +376,7 @@
|
|
|
374
376
|
* Add the correct display in IE 10+.
|
|
375
377
|
*/
|
|
376
378
|
|
|
377
|
-
template {
|
|
379
|
+
:where(template) {
|
|
378
380
|
display: none;
|
|
379
381
|
}
|
|
380
382
|
|
|
@@ -386,7 +388,7 @@
|
|
|
386
388
|
display: none;
|
|
387
389
|
}
|
|
388
390
|
|
|
389
|
-
ul {
|
|
391
|
+
:where(ul) {
|
|
390
392
|
padding-inline-start: 0;
|
|
391
393
|
}
|
|
392
394
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
1
2
|
@use 'sass:map';
|
|
2
3
|
@use './common';
|
|
3
4
|
@use '../variables/grid';
|
|
@@ -25,6 +26,26 @@
|
|
|
25
26
|
min-width: $span;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
29
|
+
// Shares the 16 columns cannot express: thirds, fifths and sixths. The
|
|
30
|
+
// same arithmetic, with the fraction in place of columns over 16, so they
|
|
31
|
+
// share the row's gap the way a column count does.
|
|
32
|
+
@each $fraction in (1 3, 2 3, 1 5, 2 5, 3 5, 4 5, 1 6, 5 6) {
|
|
33
|
+
$n: list.nth($fraction, 1);
|
|
34
|
+
$d: list.nth($fraction, 2);
|
|
35
|
+
&.#{$prefix}grid-#{$n}-#{$d} {
|
|
36
|
+
$span: calc(
|
|
37
|
+
(100% * #{$n}) /
|
|
38
|
+
#{$d} - var(--nb-grid-parent-gap, 0px) *
|
|
39
|
+
var(--nb-grid-parent-row, 1) *
|
|
40
|
+
#{$d -
|
|
41
|
+
$n} /
|
|
42
|
+
#{$d}
|
|
43
|
+
);
|
|
44
|
+
flex-basis: $span;
|
|
45
|
+
max-width: $span;
|
|
46
|
+
min-width: $span;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
28
49
|
@each $column in common.$var-columns-bottom {
|
|
29
50
|
&.#{$prefix}shift-#{$column} {
|
|
30
51
|
margin-left: calc((100% * #{$column}) / #{grid.$grid-columns});
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { usePhoneLayout as n } from "./composables/usePhoneLayout.composable.mjs";
|
|
4
|
-
import { t as r } from "./Button-C-OsrbBY.js";
|
|
5
|
-
import { t as i } from "./Select-DPrncZll.js";
|
|
6
|
-
import { t as a } from "./Avatar-BibgBZuN.js";
|
|
7
|
-
import { Comment as o, Fragment as s, Text as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ee, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as _, mergeProps as v, normalizeClass as y, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as te, useSlots as w, withCtx as T } from "vue";
|
|
8
|
-
import { regular as E } from "@nubisco/ui/icons/caret-right";
|
|
9
|
-
import * as D from "@nubisco/ui/icons/caret-up-down";
|
|
10
|
-
//#region src/components/Breadcrumbs.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var O = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "nb-breadcrumbs__brand"
|
|
14
|
-
}, k = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "nb-breadcrumbs__title"
|
|
17
|
-
}, A = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "nb-breadcrumbs__subtitle"
|
|
20
|
-
}, j = {
|
|
21
|
-
key: 2,
|
|
22
|
-
class: "nb-breadcrumbs__crumbs"
|
|
23
|
-
}, M = {
|
|
24
|
-
key: 1,
|
|
25
|
-
class: "nb-breadcrumbs__current",
|
|
26
|
-
"aria-current": "page"
|
|
27
|
-
}, N = {
|
|
28
|
-
key: 3,
|
|
29
|
-
class: "nb-breadcrumbs__parent"
|
|
30
|
-
}, P = { class: "nb-breadcrumbs__option" }, F = { class: "nb-breadcrumbs__option-label" }, I = ["aria-label"], L = /* @__PURE__ */ e(/* @__PURE__ */ g({
|
|
31
|
-
__name: "Breadcrumbs",
|
|
32
|
-
props: {
|
|
33
|
-
title: { default: void 0 },
|
|
34
|
-
subtitle: { default: void 0 },
|
|
35
|
-
collapse: { default: "none" },
|
|
36
|
-
items: { default: void 0 }
|
|
37
|
-
},
|
|
38
|
-
emits: ["select", "switch"],
|
|
39
|
-
setup(e, { emit: g }) {
|
|
40
|
-
let L = e, R = g, z = _(), ne = l(() => !!z?.vnode.props?.onSelect), B = l(() => {
|
|
41
|
-
let e = L.items ?? [], t = e.findIndex((e) => e.current);
|
|
42
|
-
return t === -1 ? e.length - 1 : t;
|
|
43
|
-
});
|
|
44
|
-
function V(e) {
|
|
45
|
-
return e === B.value;
|
|
46
|
-
}
|
|
47
|
-
function H(e) {
|
|
48
|
-
return e.to != null || !!e.href || !!e.onClick || ne.value;
|
|
49
|
-
}
|
|
50
|
-
function U(e, t, n) {
|
|
51
|
-
e.onClick?.(n), R("select", e, t, n);
|
|
52
|
-
}
|
|
53
|
-
let W = [], G = (e, t) => e.value ?? t;
|
|
54
|
-
function K(e) {
|
|
55
|
-
return (e.options ?? []).map((e, t) => ({
|
|
56
|
-
label: e.label,
|
|
57
|
-
value: G(e, t),
|
|
58
|
-
icon: e.picture === void 0 ? e.icon : void 0
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
function q(e) {
|
|
62
|
-
return (e.options ?? []).some((e) => e.picture !== void 0);
|
|
63
|
-
}
|
|
64
|
-
function J(e, t) {
|
|
65
|
-
let n = e.options ?? [], r = n.findIndex((e, n) => G(e, n) === t);
|
|
66
|
-
return r === -1 ? void 0 : n[r].picture;
|
|
67
|
-
}
|
|
68
|
-
function Y(e) {
|
|
69
|
-
if (e.value != null) return e.value;
|
|
70
|
-
let t = e.options ?? [], n = t.findIndex((t) => t.label === e.label);
|
|
71
|
-
return n === -1 ? null : G(t[n], n);
|
|
72
|
-
}
|
|
73
|
-
function X(e, t, n) {
|
|
74
|
-
let r = e.options ?? [], i = r.findIndex((e, t) => G(e, t) === n);
|
|
75
|
-
if (i === -1 || n === Y(e)) return;
|
|
76
|
-
let a = r[i];
|
|
77
|
-
R("switch", e, a, t), Z(a);
|
|
78
|
-
}
|
|
79
|
-
function Z(e) {
|
|
80
|
-
let t = z?.appContext.config.globalProperties.$router;
|
|
81
|
-
e.to == null ? e.href && window.location.assign(e.href) : t ? t.push(e.to) : typeof e.to == "string" && window.location.assign(e.to);
|
|
82
|
-
}
|
|
83
|
-
let re = w();
|
|
84
|
-
function Q(e) {
|
|
85
|
-
return e.some((e) => e.type === o ? !1 : e.type === c ? String(e.children ?? "").trim() !== "" : e.type === s ? Q(e.children ?? []) : !0);
|
|
86
|
-
}
|
|
87
|
-
let ie = l(() => Q(re.default?.() ?? [])), $ = l(() => !!L.items?.length || ie.value), { phone: ae } = n(), oe = l(() => L.collapse === "phone" && ae.value && $.value);
|
|
88
|
-
return (n, o) => (b(), f("nav", {
|
|
89
|
-
class: y(["nb-breadcrumbs", { "nb-breadcrumbs--collapsed": oe.value }]),
|
|
90
|
-
"aria-label": "breadcrumb"
|
|
91
|
-
}, [
|
|
92
|
-
e.title || e.subtitle ? (b(), f("span", O, [e.title ? (b(), f("span", k, C(e.title), 1)) : d("", !0), e.subtitle ? (b(), f("span", A, C(e.subtitle), 1)) : d("", !0)])) : d("", !0),
|
|
93
|
-
(e.title || e.subtitle) && $.value ? (b(), u(t, {
|
|
94
|
-
key: 1,
|
|
95
|
-
name: te(E),
|
|
96
|
-
size: "sm",
|
|
97
|
-
class: "nb-breadcrumbs__sep"
|
|
98
|
-
}, null, 8, ["name"])) : d("", !0),
|
|
99
|
-
$.value ? (b(), f("span", j, [e.items?.length ? (b(!0), f(s, { key: 0 }, x(e.items, (e, n) => (b(), f("span", {
|
|
100
|
-
key: n,
|
|
101
|
-
ref_for: !0,
|
|
102
|
-
ref: (e) => W[n] = e,
|
|
103
|
-
class: "nb-breadcrumbs__item"
|
|
104
|
-
}, [
|
|
105
|
-
e.picture === void 0 ? d("", !0) : (b(), u(a, {
|
|
106
|
-
key: 0,
|
|
107
|
-
class: "nb-breadcrumbs__picture",
|
|
108
|
-
name: e.label,
|
|
109
|
-
picture: e.picture,
|
|
110
|
-
size: 16,
|
|
111
|
-
decorative: ""
|
|
112
|
-
}, null, 8, ["name", "picture"])),
|
|
113
|
-
V(n) ? (b(), f("span", M, C(e.label), 1)) : H(e) ? (b(), u(r, {
|
|
114
|
-
key: 2,
|
|
115
|
-
class: "nb-breadcrumbs__link",
|
|
116
|
-
variant: "link",
|
|
117
|
-
to: e.to,
|
|
118
|
-
href: e.href,
|
|
119
|
-
target: e.target,
|
|
120
|
-
onClick: (t) => U(e, n, t)
|
|
121
|
-
}, {
|
|
122
|
-
default: T(() => [m(C(e.label), 1)]),
|
|
123
|
-
_: 2
|
|
124
|
-
}, 1032, [
|
|
125
|
-
"to",
|
|
126
|
-
"href",
|
|
127
|
-
"target",
|
|
128
|
-
"onClick"
|
|
129
|
-
])) : (b(), f("span", N, C(e.label), 1)),
|
|
130
|
-
e.options?.length ? (b(), u(i, {
|
|
131
|
-
key: 4,
|
|
132
|
-
class: "nb-breadcrumbs__switcher",
|
|
133
|
-
searchable: "",
|
|
134
|
-
"selected-mark": "check",
|
|
135
|
-
anchor: () => W[n],
|
|
136
|
-
"model-value": Y(e),
|
|
137
|
-
options: K(e),
|
|
138
|
-
"search-placeholder": e.searchPlaceholder ?? "Find",
|
|
139
|
-
"no-results-label": e.noResultsLabel ?? "No results",
|
|
140
|
-
onChange: (t) => X(e, n, t)
|
|
141
|
-
}, ee({
|
|
142
|
-
trigger: T(({ attrs: n }) => [p("button", v({
|
|
143
|
-
type: "button",
|
|
144
|
-
class: "nb-breadcrumbs__switch"
|
|
145
|
-
}, { ref_for: !0 }, n, { "aria-label": e.switchLabel ?? `Switch ${e.label}` }), [h(t, {
|
|
146
|
-
name: D,
|
|
147
|
-
size: 14,
|
|
148
|
-
"aria-hidden": "true"
|
|
149
|
-
})], 16, I)]),
|
|
150
|
-
_: 2
|
|
151
|
-
}, [q(e) ? {
|
|
152
|
-
name: "option",
|
|
153
|
-
fn: T(({ option: t }) => [p("span", P, [J(e, t.value) === void 0 ? d("", !0) : (b(), u(a, {
|
|
154
|
-
key: 0,
|
|
155
|
-
class: "nb-breadcrumbs__option-picture",
|
|
156
|
-
name: t.label,
|
|
157
|
-
picture: J(e, t.value),
|
|
158
|
-
size: 16,
|
|
159
|
-
decorative: ""
|
|
160
|
-
}, null, 8, ["name", "picture"])), p("span", F, C(t.label), 1)])]),
|
|
161
|
-
key: "0"
|
|
162
|
-
} : void 0]), 1032, [
|
|
163
|
-
"anchor",
|
|
164
|
-
"model-value",
|
|
165
|
-
"options",
|
|
166
|
-
"search-placeholder",
|
|
167
|
-
"no-results-label",
|
|
168
|
-
"onChange"
|
|
169
|
-
])) : d("", !0)
|
|
170
|
-
]))), 128)) : S(n.$slots, "default", { key: 1 }, void 0, !0)])) : d("", !0)
|
|
171
|
-
], 2));
|
|
172
|
-
}
|
|
173
|
-
}), [["__scopeId", "data-v-01534a2c"]]);
|
|
174
|
-
//#endregion
|
|
175
|
-
export { L as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./Button-Cjtw1CkB.cjs`),a=require(`./Select-cRjKYI2t.cjs`),o=require(`./Avatar-BpPczEa8.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/caret-right`),l=require(`@nubisco/ui/icons/caret-up-down`);l=e.n(l);var u={key:0,class:`nb-breadcrumbs__brand`},d={key:0,class:`nb-breadcrumbs__title`},f={key:1,class:`nb-breadcrumbs__subtitle`},p={key:2,class:`nb-breadcrumbs__crumbs`},m={key:1,class:`nb-breadcrumbs__current`,"aria-current":`page`},h={key:3,class:`nb-breadcrumbs__parent`},g={class:`nb-breadcrumbs__option`},_={class:`nb-breadcrumbs__option-label`},v=[`aria-label`],y=(0,s.defineComponent)({__name:`Breadcrumbs`,props:{title:{default:void 0},subtitle:{default:void 0},collapse:{default:`none`},items:{default:void 0}},emits:[`select`,`switch`],setup(e,{emit:t}){let y=e,b=t,x=(0,s.getCurrentInstance)(),S=(0,s.computed)(()=>!!x?.vnode.props?.onSelect),C=(0,s.computed)(()=>{let e=y.items??[],t=e.findIndex(e=>e.current);return t===-1?e.length-1:t});function w(e){return e===C.value}function T(e){return e.to!=null||!!e.href||!!e.onClick||S.value}function E(e,t,n){e.onClick?.(n),b(`select`,e,t,n)}let D=[],O=(e,t)=>e.value??t;function k(e){return(e.options??[]).map((e,t)=>({label:e.label,value:O(e,t),icon:e.picture===void 0?e.icon:void 0}))}function A(e){return(e.options??[]).some(e=>e.picture!==void 0)}function j(e,t){let n=e.options??[],r=n.findIndex((e,n)=>O(e,n)===t);return r===-1?void 0:n[r].picture}function M(e){if(e.value!=null)return e.value;let t=e.options??[],n=t.findIndex(t=>t.label===e.label);return n===-1?null:O(t[n],n)}function N(e,t,n){let r=e.options??[],i=r.findIndex((e,t)=>O(e,t)===n);if(i===-1||n===M(e))return;let a=r[i];b(`switch`,e,a,t),P(a)}function P(e){let t=x?.appContext.config.globalProperties.$router;e.to==null?e.href&&window.location.assign(e.href):t?t.push(e.to):typeof e.to==`string`&&window.location.assign(e.to)}let F=(0,s.useSlots)();function I(e){return e.some(e=>e.type===s.Comment?!1:e.type===s.Text?String(e.children??``).trim()!==``:e.type===s.Fragment?I(e.children??[]):!0)}let L=(0,s.computed)(()=>I(F.default?.()??[])),R=(0,s.computed)(()=>!!y.items?.length||L.value),{phone:z}=r.usePhoneLayout(),B=(0,s.computed)(()=>y.collapse===`phone`&&z.value&&R.value);return(t,r)=>((0,s.openBlock)(),(0,s.createElementBlock)(`nav`,{class:(0,s.normalizeClass)([`nb-breadcrumbs`,{"nb-breadcrumbs--collapsed":B.value}]),"aria-label":`breadcrumb`},[e.title||e.subtitle?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,u,[e.title?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,d,(0,s.toDisplayString)(e.title),1)):(0,s.createCommentVNode)(``,!0),e.subtitle?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,f,(0,s.toDisplayString)(e.subtitle),1)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),(e.title||e.subtitle)&&R.value?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:1,name:(0,s.unref)(c.regular),size:`sm`,class:`nb-breadcrumbs__sep`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),R.value?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,p,[e.items?.length?((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,{key:0},(0,s.renderList)(e.items,(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(`span`,{key:t,ref_for:!0,ref:e=>D[t]=e,class:`nb-breadcrumbs__item`},[e.picture===void 0?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(o.t,{key:0,class:`nb-breadcrumbs__picture`,name:e.label,picture:e.picture,size:16,decorative:``},null,8,[`name`,`picture`])),w(t)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,m,(0,s.toDisplayString)(e.label),1)):T(e)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{key:2,class:`nb-breadcrumbs__link`,variant:`link`,to:e.to,href:e.href,target:e.target,onClick:n=>E(e,t,n)},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(e.label),1)]),_:2},1032,[`to`,`href`,`target`,`onClick`])):((0,s.openBlock)(),(0,s.createElementBlock)(`span`,h,(0,s.toDisplayString)(e.label),1)),e.options?.length?((0,s.openBlock)(),(0,s.createBlock)(a.t,{key:4,class:`nb-breadcrumbs__switcher`,searchable:``,"selected-mark":`check`,anchor:()=>D[t],"model-value":M(e),options:k(e),"search-placeholder":e.searchPlaceholder??`Find`,"no-results-label":e.noResultsLabel??`No results`,onChange:n=>N(e,t,n)},(0,s.createSlots)({trigger:(0,s.withCtx)(({attrs:t})=>[(0,s.createElementVNode)(`button`,(0,s.mergeProps)({type:`button`,class:`nb-breadcrumbs__switch`},{ref_for:!0},t,{"aria-label":e.switchLabel??`Switch ${e.label}`}),[(0,s.createVNode)(n.t,{name:l,size:14,"aria-hidden":`true`})],16,v)]),_:2},[A(e)?{name:`option`,fn:(0,s.withCtx)(({option:t})=>[(0,s.createElementVNode)(`span`,g,[j(e,t.value)===void 0?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(o.t,{key:0,class:`nb-breadcrumbs__option-picture`,name:t.label,picture:j(e,t.value),size:16,decorative:``},null,8,[`name`,`picture`])),(0,s.createElementVNode)(`span`,_,(0,s.toDisplayString)(t.label),1)])]),key:`0`}:void 0]),1032,[`anchor`,`model-value`,`options`,`search-placeholder`,`no-results-label`,`onChange`])):(0,s.createCommentVNode)(``,!0)]))),128)):(0,s.renderSlot)(t.$slots,`default`,{key:1},void 0,!0)])):(0,s.createCommentVNode)(``,!0)],2))}}),b=t.t(y,[[`__scopeId`,`data-v-01534a2c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
package/dist/Grid-CXE0B85G.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);let e=require(`vue`);var t={id:{type:String,default:null},is:{type:String,default:`div`},dir:{type:[String,Object,Function],default:`row`,validator:e=>typeof e==`function`?!0:typeof e==`string`?[`row`,`col`,`row-reverse`,`col-reverse`].includes(e):Object.values(e).every(e=>[`row`,`col`,`row-reverse`,`col-reverse`].includes(e))},align:{type:[String,Object,Function],default:null,validator:e=>e==null||typeof e==`function`?!0:typeof e==`string`?[`start`,`end`,`center`,`baseline`,`stretch`].includes(e):Object.values(e).every(e=>[`start`,`end`,`center`,`baseline`,`stretch`].includes(e))},justify:{type:[String,Object,Function],default:null,validator:e=>e==null||typeof e==`function`?!0:typeof e==`string`?[`around`,`between`,`center`,`end`,`evenly`,`start`].includes(e):Object.values(e).every(e=>[`around`,`between`,`center`,`end`,`evenly`,`start`].includes(e))},gap:{type:[String,Object,Function],default:null,validator:e=>{if(e==null||typeof e==`function`)return!0;let t=[`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`xxl`];return typeof e==`string`?t.includes(e):Object.values(e).every(e=>t.includes(e))}},grid:{type:[Number,String,Object,Function],default:null,validator:e=>{if(e==null||typeof e==`function`)return!0;let t=e=>{let t=typeof e==`string`?parseInt(e,10):e;return t>=1&&t<=16&&!isNaN(t)};return typeof e==`number`||typeof e==`string`?t(e):Object.values(e).every(t)}},shift:{type:[Number,String,Object,Function],default:null,validator:e=>{if(e==null||typeof e==`function`)return!0;let t=e=>{let t=typeof e==`string`?parseInt(e,10):e;return t>=0&&t<=15&&!isNaN(t)};return typeof e==`number`||typeof e==`string`?t(e):Object.values(e).every(t)}},wrap:{type:[String,Object,Function],default:null,validator:e=>e==null||typeof e==`function`?!0:typeof e==`string`?[`nowrap`,`wrap`,`reverse`].includes(e):Object.values(e).every(e=>[`nowrap`,`wrap`,`reverse`].includes(e))},first:{type:[Boolean,Array],default:null,validator:e=>{if(e==null||typeof e==`boolean`)return!0;let t=[`sm`,`md`,`lg`,`xl`,`xxl`];return e.every(e=>t.includes(e))}},last:{type:[Boolean,Array],default:null,validator:e=>{if(e==null||typeof e==`boolean`)return!0;let t=[`sm`,`md`,`lg`,`xl`,`xxl`];return e.every(e=>t.includes(e))}},visible:{type:[Boolean,Object,Function],default:null},reverse:{type:[Boolean,Array],default:!1,validator:e=>{if(e==null||typeof e==`boolean`)return!0;let t=[`sm`,`md`,`lg`,`xl`,`xxl`];return e.every(e=>t.includes(e))}},grow:{type:Boolean,default:null},flex:{type:Boolean,default:null},shrink:{type:Boolean,default:null},distributed:{type:Boolean,default:!1},mode:{type:String,default:`wide`,validator:e=>[`wide`,`narrow`,`condensed`].includes(e)},tabIndex:{type:String,default:null}},n=(0,e.defineComponent)({__name:`Grid`,props:t,setup(t,{expose:n}){let r=[`a`,`button`,`input`,`textarea`,`select`,`details`,`iframe`,`object`,`embed`,`area`,`audio`,`video`],i=(0,e.ref)();n({getRef:()=>i.value});let a=t,o=e=>e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase();function s(e,t){let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}${e}`]=!0}function c(e,t){let{collection:n,breakpoint:r,classMap:i}=t,a=r?`${r}-`:``,o=i?.[e]??e;n[`${a}align-${o}`]=!0}function l(e,t){let{collection:n,breakpoint:r,classMap:i}=t,a=r?`${r}-`:``,o=i?.[e]??e;n[`${a}justify-${o}`]=!0}function u(e,t){let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}gap-${e}`]=!0}function d(e,t){let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}grid-${e}`]=!0}function f(e,t){let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}shift-${e}`]=!0}function p(e,t){let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}${e}`]=!0}function m(e,t){if(!e)return;let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}reverse`]=!0}function h(e,t,n){if(!e)return;let{collection:r,breakpoint:i}=t,a=i?`${i}-`:``;r[`${a}${n}`]=!0}function g(e,t){let{collection:n,breakpoint:r}=t,i=r?`${r}-`:``;n[`${i}${e?`visible`:`hidden`}`]=!0}function _(e,t,n){let r={};if(e==null)return r;if(typeof e==`function`){let i=e();return i!=null&&t(i,{collection:r,classMap:n}),r}return typeof e==`string`||typeof e==`number`||typeof e==`boolean`?(t(e,{collection:r,classMap:n}),r):Array.isArray(e)?(e.forEach(e=>{t(!0,{collection:r,breakpoint:o(e),classMap:n})}),r):(typeof e==`object`&&Object.entries(e).forEach(([e,i])=>{i!=null&&t(i,{collection:r,breakpoint:o(e),classMap:n})}),r)}let v=e=>{let t={top:`start`,bottom:`end`,center:`center`,stretch:`stretch`,baseline:`base`},n={left:`start`,right:`end`,center:`center`,between:`between`,around:`around`,evenly:`evenly`};return{"nb-grid":!0,..._(e.dir,s),..._(e.align,c,t),..._(e.justify,l,n),..._(e.gap,u),..._(e.grid,d),..._(e.shift,f),..._(e.wrap,p),..._(e.reverse,m),..._(e.first,(e,t)=>h(e,t,`first`)),..._(e.last,(e,t)=>h(e,t,`last`)),..._(e.visible,g),...e.flex?{flex:!0}:{},...e.distributed?{distributed:!0}:{},...e.mode?{[e.mode]:!0}:{},...e.grow?{grow:!0}:{},...e.shrink!==null&&e.shrink!==void 0?{[`shrink-${e.shrink?`1`:`0`}`]:!0}:{}}},y=(0,e.computed)(()=>v(a));return(t,n)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.is),{id:t.id,ref_key:`root`,ref:i,class:(0,e.normalizeClass)(y.value),tabindex:t.tabIndex??!r.includes(t.is)?`-1`:`0`},{default:(0,e.withCtx)(()=>[(0,e.renderSlot)(t.$slots,`default`)]),_:3},8,[`id`,`class`,`tabindex`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
package/dist/Icon-C8R_r_In.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/iconRegistry.cjs`),t=require(`./composables/glyphCatalog.composable.cjs`),n=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),r=require(`./Size.d-GBIblj2D.cjs`),i=require(`./composables/useStableId.composable.cjs`);let a=require(`vue`);var o=function(e){return e.Hover=`hover`,e.Always=`always`,e}(o||{}),s=function(e){return e.Thin=`thin`,e.Light=`light`,e.Regular=`regular`,e.Bold=`bold`,e.Fill=`fill`,e.Duotone=`duotone`,e}(s||{}),c=function(e){return e[e.XXL=92]=`XXL`,e[e.XL=60]=`XL`,e[e.LG=20]=`LG`,e[e.MD=16]=`MD`,e[e.SM=14]=`SM`,e[e.XS=12]=`XS`,e[e.XXS=8]=`XXS`,e}(c||{}),l=[`title`],u=(0,a.defineComponent)({__name:`Icon`,props:{name:{default:void 0},icon:{default:void 0},size:{default:r.t.Medium},animation:{default:null},animationMode:{default:o.Always},color:{default:void 0},weight:{default:s.Regular},title:{default:void 0},clickable:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1}},emits:[`click`],setup(n,{emit:r}){let o=n,s=r,u=(0,a.computed)(()=>o.icon??o.name),d=(0,a.computed)(()=>typeof u.value==`string`?u.value:t.glyphNameOf(u.value)),f=(0,a.computed)(()=>typeof u.value==`string`?void 0:u.value),p=i.useStableId({name:d.value}),m=(0,a.computed)(()=>{let e=typeof o.size==`number`?o.size:c[String(o.size).toUpperCase()]||c.MD;return{id:p,...o.size&&{width:`${e}px`,height:`${e}px`},...o.clickable&&{role:`button`}}}),h=(0,a.computed)(()=>{let n=f.value;if(n)return t.pickWeight(n,o.weight);let r=typeof u.value==`string`?u.value:void 0;return r?e.getRegisteredIcon(r,o.weight)||t.resolveFromCatalog(`icon`,r,o.weight):void 0}),g=(0,a.computed)(()=>({"nb-icon":!0,...d.value&&{[d.value]:!0},[`nb-icon-${o.size}`]:[`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`xxl`].includes(String(o.size)),[`nb-icon-animation-${o.animationMode}-${o.animation}`]:o.animation,hoverable:o.hoverable||o.animation&&o.animationMode===`hover`,"box-clickable":o.clickable})),_=(0,a.computed)(()=>({...o.color&&{color:o.color},...typeof o.size==`number`&&{maxWidth:`${o.size}px`,maxHeight:`${o.size}px`,height:`${o.size}px`,width:`${o.size}px`},...typeof o.size==`string`&&![`xxs`,`xs`,`sm`,`md`,`lg`,`xl`,`xxl`].includes(o.size)&&{maxWidth:o.size,maxHeight:o.size,height:o.size,width:o.size}}));return(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`i`,(0,a.mergeProps)({class:g.value,style:_.value},m.value,{title:n.title,onClick:t[0]||=e=>n.clickable?s(`click`,e):void 0}),[h.value?((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(h.value),{key:0,"aria-hidden":`true`})):(0,a.createCommentVNode)(``,!0)],16,l))}}),d=n.t(u,[[`__scopeId`,`data-v-034072e6`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|