@nubisco/ui 5.48.1 → 5.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccordionItem--XeLRz2P.js +119 -0
- package/dist/AccordionItem-BYSH6dZK.cjs +1 -0
- package/dist/ActionGroup-CZWoWOYj.cjs +1 -0
- package/dist/ActionGroup-DEeOrkKF.js +137 -0
- package/dist/{AiLabel-DywBjSzr.js → AiLabel-CSSIkvKP.js} +20 -20
- package/dist/{AiLabel-pRN10dQV.cjs → AiLabel-DSKUOcZs.cjs} +1 -1
- package/dist/{AiProvider-DY1xxZff.cjs → AiProvider-BLGmpN6e.cjs} +1 -1
- package/dist/{AiProvider-D8O_YaaP.js → AiProvider-BY5kxf6u.js} +6 -6
- package/dist/{AiUsage-HcYF6RQ2.js → AiUsage-BOrAXk2-.js} +2 -2
- package/dist/{AiUsage-DRj51zK5.cjs → AiUsage-fQqE0B6N.cjs} +1 -1
- package/dist/BackToTop-DgFlV4p4.cjs +1 -0
- package/dist/BackToTop-DrgXqZgF.js +51 -0
- package/dist/Banner-CazPCK0F.js +89 -0
- package/dist/Banner-CyU3PPnt.cjs +1 -0
- package/dist/{BarChart-IX4imFVT.cjs → BarChart-3YO4YfUt.cjs} +1 -1
- package/dist/{BarChart-tB6MOMoR.js → BarChart-CDvhhPk0.js} +4 -4
- package/dist/BatchActions-CLCwxCoa.js +86 -0
- package/dist/BatchActions-DfAPQSU6.cjs +1 -0
- package/dist/{Blueprint-46DWDZmu.js → Blueprint-CGGNppmS.js} +2 -2
- package/dist/{Blueprint-NyUNNf-G.cjs → Blueprint-DBIXzLYg.cjs} +1 -1
- package/dist/{BlueprintCard-DDNP1vkk.js → BlueprintCard-CqlU0QFY.js} +114 -116
- package/dist/BlueprintCard-DGUNttWj.cjs +1 -0
- package/dist/{BlueprintControls-D0MdXrVv.js → BlueprintControls-1l0QVtB7.js} +49 -75
- package/dist/BlueprintControls-C3ffD6W8.cjs +1 -0
- package/dist/{Board-CaFH4-Qw.js → Board-DEBP52eI.js} +178 -190
- package/dist/Board-DIbzPDsD.cjs +1 -0
- package/dist/BottomPanel-1EkHEQ_H.js +81 -0
- package/dist/BottomPanel-n2jWpFH7.cjs +1 -0
- package/dist/Breadcrumbs-CCPzuiiv.cjs +1 -0
- package/dist/Breadcrumbs-CQsziZK3.js +185 -0
- package/dist/{Briefing-CoDyU3k4.js → Briefing-0A1frO4v.js} +3 -3
- package/dist/{Briefing-B_ofl8Rt.cjs → Briefing-AqSz-ZdZ.cjs} +1 -1
- package/dist/{BriefingDestination-DAu5S2HI.cjs → BriefingDestination-CqyKzyXx.cjs} +1 -1
- package/dist/{BriefingDestination-CK4XdAOo.js → BriefingDestination-v3kNa6o_.js} +4 -4
- package/dist/Button-BHFtgOXA.cjs +1 -0
- package/dist/Button-tpOmP8iV.js +699 -0
- package/dist/ButtonSet-BV76HHgD.js +67 -0
- package/dist/ButtonSet-Bj9mIOW2.cjs +1 -0
- package/dist/Calendar-Bf0Nk0rA.js +153 -0
- package/dist/Calendar-D9J17bTp.cjs +1 -0
- package/dist/Card-C6KAn4tN.cjs +1 -0
- package/dist/Card-qNem4s60.js +162 -0
- package/dist/{Checkbox-DXQpih7I.js → Checkbox-BgXXVsCC.js} +1 -1
- package/dist/{Checkbox-7JJdh4sN.cjs → Checkbox-DPPln6oG.cjs} +1 -1
- package/dist/{CheckboxGroup-B8T3zLQC.cjs → CheckboxGroup-B2a3ezEK.cjs} +1 -1
- package/dist/{CheckboxGroup-BHn1hpzh.js → CheckboxGroup-Ck1ylAX9.js} +3 -3
- package/dist/ChipGroup-CVDk4ElV.js +74 -0
- package/dist/ChipGroup-DojKPHhq.cjs +1 -0
- package/dist/CloseButton-9TTFHFmx.cjs +1 -0
- package/dist/CloseButton-CdH12Hdn.js +48 -0
- package/dist/{ColorStrip-BW1nFTja.js → ColorStrip-CuF9ZGoO.js} +2 -2
- package/dist/{ColorStrip-AEg8dQbl.cjs → ColorStrip-bpguV5b2.cjs} +1 -1
- package/dist/CommandPalette-CCEzVWfb.cjs +1 -0
- package/dist/{CommandPalette-CD75Qytr.js → CommandPalette-D1DuzaA1.js} +100 -85
- package/dist/Confirm-CZNS6FNr.js +331 -0
- package/dist/Confirm-DbrEaYlJ.cjs +1 -0
- package/dist/{ContainedListItem-CSE8d5M6.js → ContainedListItem-8z2bmoRG.js} +20 -18
- package/dist/ContainedListItem-BKvHedZO.cjs +1 -0
- package/dist/ContentSwitcher-B-PUG0FE.js +99 -0
- package/dist/ContentSwitcher-CYSF2B-a.cjs +1 -0
- package/dist/CopyButton-CQ9tcyfs.js +60 -0
- package/dist/CopyButton-DRvJ4rf5.cjs +1 -0
- package/dist/DataTable-DDqMaOqP.js +545 -0
- package/dist/DataTable-DQUX-6li.cjs +1 -0
- package/dist/DatePicker-Du21bjhe.cjs +1 -0
- package/dist/DatePicker-fS84mRE6.js +761 -0
- package/dist/FileUploader-UzgK5RKz.cjs +1 -0
- package/dist/FileUploader-dzVu4iSo.js +195 -0
- package/dist/FloatingToolbar-BTmWtGU7.js +116 -0
- package/dist/FloatingToolbar-DDCJuaq0.cjs +1 -0
- package/dist/{Form-D6rgkJ_Y.cjs → Form-D2KHlP7N.cjs} +1 -1
- package/dist/{Form-1UVOFWaf.js → Form-igwYeEVI.js} +1 -1
- package/dist/{GanttChart-B_LqsmcR.cjs → GanttChart-ClFarMf-.cjs} +1 -1
- package/dist/{GanttChart-cZguVXW8.js → GanttChart-N05mLdsn.js} +3 -3
- package/dist/{ImageCropper-CJ2mCj9z.cjs → ImageCropper-CoYR_Hhy.cjs} +1 -1
- package/dist/{ImageCropper-BFKMYthJ.js → ImageCropper-wQknqxNK.js} +2 -2
- package/dist/ImagePicker-Dhj01jq7.cjs +1 -0
- package/dist/ImagePicker-zkoay3zZ.js +171 -0
- package/dist/InfoHint-BEzkNQTM.cjs +1 -0
- package/dist/InfoHint-BlHxrTw6.js +178 -0
- package/dist/InlineEdit-DBMKJ3xP.cjs +1 -0
- package/dist/InlineEdit-Y8i0ibjH.js +117 -0
- package/dist/{InlineLoading-D8T0WO05.js → InlineLoading-CDJ_ZJ6v.js} +1 -1
- package/dist/{InlineLoading-CB_1PwMx.cjs → InlineLoading-DKCzcjZJ.cjs} +1 -1
- package/dist/InputGroup-BYThVO5L.js +86 -0
- package/dist/InputGroup-BYoHNpY0.cjs +1 -0
- package/dist/InputGroup.context-BHj-IvcT.cjs +1 -0
- package/dist/InputGroup.context-Dd4e6fGT.js +28 -0
- package/dist/{InterpolationChart-CttBiNWU.js → InterpolationChart-BX8-UOeZ.js} +3 -3
- package/dist/{InterpolationChart-CYWJFUcs.cjs → InterpolationChart-DaqKUIWi.cjs} +1 -1
- package/dist/{LineChart-DNDSJQrB.cjs → LineChart-CGXpi9l8.cjs} +1 -1
- package/dist/{LineChart-J8gCM2Ba.js → LineChart-CplGrv8-.js} +4 -4
- package/dist/Menu-7EgnchVu.js +189 -0
- package/dist/Menu-Bs2Co1sl.cjs +1 -0
- package/dist/{MenuBarItem-BLdVIz0j.js → MenuBarItem-CQsy3y2I.js} +1 -1
- package/dist/{MenuBarItem-B8H9KfFo.cjs → MenuBarItem-Dd9hNBra.cjs} +1 -1
- package/dist/MenuItem-DFfE_k0L.cjs +1 -0
- package/dist/{MenuItem-BerQIsRQ.js → MenuItem-DMYDHaa0.js} +44 -28
- package/dist/Modal-BSGKOUi_.js +223 -0
- package/dist/Modal-D0hGHXic.cjs +1 -0
- package/dist/NotificationCenter-_CK8Eejg.js +587 -0
- package/dist/NotificationCenter-xg0ZCegj.cjs +1 -0
- package/dist/NumberInput-B-TvTlXI.js +383 -0
- package/dist/NumberInput-DaZI9hc3.cjs +1 -0
- package/dist/OverflowMenu-DFOJSaS7.cjs +1 -0
- package/dist/OverflowMenu-OCAeE3W0.js +126 -0
- package/dist/{PageHeader-CFMhwRcw.js → PageHeader-1wou3Him.js} +2 -2
- package/dist/{PageHeader-BVcTzPcW.cjs → PageHeader-BfUlrscM.cjs} +1 -1
- package/dist/{Pagination-zTp1lrSP.js → Pagination-CUat0BVv.js} +26 -26
- package/dist/{Pagination-VmE04nzc.cjs → Pagination-DypRMTsC.cjs} +1 -1
- package/dist/{Panel-7qPoq2lb.cjs → Panel-NC6_ZogV.cjs} +1 -1
- package/dist/{Panel-D5OHjaTP.js → Panel-zyzu638n.js} +1 -1
- package/dist/{PieChart-Ct8oicOS.cjs → PieChart-DQhs44eH.cjs} +1 -1
- package/dist/{PieChart-CAB3b8LE.js → PieChart-D_02nX0-.js} +3 -3
- package/dist/{PrimaryActionScope-B7VLsHzT.cjs → PrimaryActionScope-Dp2gvqwk.cjs} +1 -1
- package/dist/{PrimaryActionScope-CRdjZE0V.js → PrimaryActionScope-sogYOZXZ.js} +1 -1
- package/dist/{ProgressBar-DK-j6Bzv.js → ProgressBar-Bp-pe6sU.js} +2 -2
- package/dist/{ProgressBar-CfJJf7Sc.cjs → ProgressBar-z912Ppfm.cjs} +1 -1
- package/dist/{Radio-CWWt_o_F.js → Radio-DcMkavI8.js} +2 -2
- package/dist/{Radio-D0YjKuB2.cjs → Radio-DuvSK9tl.cjs} +1 -1
- package/dist/Search-BnGuTcHp.js +130 -0
- package/dist/Search-CfH1Q9GB.cjs +1 -0
- package/dist/Select-BxPZtw_Q.js +604 -0
- package/dist/Select-uwMyqZ2S.cjs +1 -0
- package/dist/Shell-B2y5hn9K.cjs +1 -0
- package/dist/Shell-Bh6s0T89.js +536 -0
- package/dist/ShellPanel-BDE6Y773.cjs +1 -0
- package/dist/ShellPanel-CB71IKMY.js +89 -0
- package/dist/{SidebarCollapseToggle-C6aLQTYv.cjs → SidebarCollapseToggle-CqVURaqs.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-D5yQ-8Vu.js → SidebarCollapseToggle-Dm4QMGpc.js} +2 -2
- package/dist/{SidebarHeaderToggle-Bdh1Z9aF.cjs → SidebarHeaderToggle-KW1yBlpF.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-C-QIOLnU.js → SidebarHeaderToggle-daU1HfJH.js} +3 -3
- package/dist/Skeleton-CMuZJ1dR.cjs +1 -0
- package/dist/{Skeleton-C1e02dcW.js → Skeleton-Hmb5a2G_.js} +48 -31
- package/dist/{Slider-BAXKJCNG.js → Slider-BP-oEeJs.js} +4 -4
- package/dist/{Slider-BaM5cclm.cjs → Slider-D3YgGPcY.cjs} +1 -1
- package/dist/{Spinner-PT95bjWq.cjs → Spinner-BTN06wsE.cjs} +1 -1
- package/dist/{Spinner-CbBPddUx.js → Spinner-C3MeCm2k.js} +1 -1
- package/dist/{Stat-C9XaqyaG.cjs → Stat-BoQUn69z.cjs} +1 -1
- package/dist/{Stat-DJJln4rH.js → Stat-Bz0NCLTm.js} +2 -2
- package/dist/{Stepper-DV0q0Dfv.cjs → Stepper-BLyPFPge.cjs} +1 -1
- package/dist/{Stepper-B4xqkWXg.js → Stepper-BXPgrQE8.js} +1 -1
- package/dist/{StepperStep-iGyGKnQL.cjs → StepperStep-DGeyZQXY.cjs} +1 -1
- package/dist/{StepperStep-BYhlgeb1.js → StepperStep-DLr_ctr4.js} +1 -1
- package/dist/SuggestionList-DjtF5POh.cjs +1 -0
- package/dist/SuggestionList-SYGj7Sjv.js +225 -0
- package/dist/{Switch-D3j7PPhY.cjs → Switch-CQj6AsQh.cjs} +1 -1
- package/dist/{Switch-CbYMiEbQ.js → Switch-CqLfdT_m.js} +2 -2
- package/dist/{TableOfContents-CM0HKSde.js → TableOfContents-BIzH0Twf.js} +24 -34
- package/dist/{TableOfContents-By2Non4K.cjs → TableOfContents-Ct-Kwm8X.cjs} +1 -1
- package/dist/{Tabs--lz44FBk.js → Tabs-B_bsdxWy.js} +1 -1
- package/dist/{Tabs-DKikiz0_.cjs → Tabs-CTMUPND5.cjs} +1 -1
- package/dist/TextInput-BVTKUEey.cjs +2 -0
- package/dist/TextInput-DqaVhKud.js +438 -0
- package/dist/Toast-BaMGYx8-.js +118 -0
- package/dist/Toast-BvZywdtO.cjs +1 -0
- package/dist/{Toaster-CJMQM8JU.cjs → Toaster-CYSWYmUm.cjs} +1 -1
- package/dist/{Toaster-DxBW9XQ0.js → Toaster-DtUkjQM_.js} +1 -1
- package/dist/Toolbar-BmJeXz4C.cjs +1 -0
- package/dist/Toolbar-tOeTdj8a.js +48 -0
- package/dist/Toolbar.context-Bli1SqM3.js +4 -0
- package/dist/Toolbar.context-D3Uj5o0_.cjs +1 -0
- package/dist/{Tree-DP2NPXOL.cjs → Tree-CeXSIcpy.cjs} +1 -1
- package/dist/{Tree-CkcFwDr7.js → Tree-RRVk_0QJ.js} +1 -1
- package/dist/{TreeNode-DCnlEEpj.js → TreeNode-D9fc2RE_.js} +1 -1
- package/dist/{TreeNode-CtklZefA.cjs → TreeNode-z6APXuvr.cjs} +1 -1
- package/dist/UserMenu-BGIIKwi6.cjs +1 -0
- package/dist/{UserMenu-CWRMaPGO.js → UserMenu-GGR8K7gP.js} +109 -102
- package/dist/Video-BxNkDWqi.cjs +1 -0
- package/dist/Video-DD01piHm.js +106 -0
- package/dist/Walkthrough-C_5h67cq.cjs +1 -0
- package/dist/Walkthrough-DpxYuLMU.js +333 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +272 -254
- package/dist/component-styles.json +88 -2
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.d.ts +41 -9
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/ActionGroup.vue.d.ts +2 -2
- package/dist/components/ActionGroup.vue.d.ts.map +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/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/BackToTop.vue.d.ts.map +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/Banner.vue.d.ts.map +1 -1
- package/dist/components/BatchActions.cjs +1 -0
- package/dist/components/BatchActions.d.ts +43 -0
- package/dist/components/BatchActions.mjs +2 -0
- package/dist/components/BatchActions.vue.d.ts +30 -0
- package/dist/components/BatchActions.vue.d.ts.map +1 -0
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/Blueprint.vue.d.ts +2 -2
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintControls.vue.d.ts.map +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Board.vue.d.ts +2 -2
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/BottomPanel.vue.d.ts +2 -2
- package/dist/components/BottomPanel.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- 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.d.ts +38 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +4 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -0
- package/dist/components/ButtonSet.d.ts +43 -0
- package/dist/components/ButtonSet.mjs +2 -0
- package/dist/components/ButtonSet.vue.d.ts +11 -0
- package/dist/components/ButtonSet.vue.d.ts.map +1 -0
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Calendar.vue.d.ts +2 -2
- package/dist/components/Calendar.vue.d.ts.map +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Card.vue.d.ts +11 -10
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.d.ts +15 -0
- package/dist/components/CardGrid.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ChipGroup.cjs +1 -0
- package/dist/components/ChipGroup.d.ts +29 -0
- package/dist/components/ChipGroup.mjs +2 -0
- package/dist/components/ChipGroup.vue.d.ts +14 -0
- package/dist/components/ChipGroup.vue.d.ts.map +1 -0
- package/dist/components/CloseButton.cjs +1 -0
- package/dist/components/CloseButton.d.ts +26 -0
- package/dist/components/CloseButton.mjs +2 -0
- package/dist/components/CloseButton.vue.d.ts +19 -0
- package/dist/components/CloseButton.vue.d.ts.map +1 -0
- 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/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.d.ts +7 -5
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/Confirm.vue.d.ts +1 -1
- package/dist/components/Confirm.vue.d.ts.map +1 -1
- package/dist/components/ContainedList.cjs +1 -1
- package/dist/components/ContainedList.d.ts +7 -0
- package/dist/components/ContainedList.mjs +1 -1
- package/dist/components/ContainedListItem.cjs +1 -1
- package/dist/components/ContainedListItem.mjs +1 -1
- package/dist/components/ContainedListItem.vue.d.ts +1 -0
- package/dist/components/ContainedListItem.vue.d.ts.map +1 -1
- package/dist/components/ContentSwitcher.cjs +1 -0
- package/dist/components/ContentSwitcher.d.ts +36 -0
- package/dist/components/ContentSwitcher.mjs +2 -0
- package/dist/components/ContentSwitcher.vue.d.ts +13 -0
- package/dist/components/ContentSwitcher.vue.d.ts.map +1 -0
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/CopyButton.vue.d.ts.map +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.d.ts +12 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DataTable.vue.d.ts +1 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +2 -2
- package/dist/components/DatePicker.vue.d.ts.map +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/FileUploader.vue.d.ts.map +1 -1
- package/dist/components/Flag.cjs +1 -1
- package/dist/components/Flag.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/FloatingToolbar.vue.d.ts +1 -3
- package/dist/components/FloatingToolbar.vue.d.ts.map +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.mjs +1 -1
- package/dist/components/Grid.vue.d.ts +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/ImagePicker.vue.d.ts.map +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineEdit.vue.d.ts.map +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/InputGroup.cjs +1 -0
- package/dist/components/InputGroup.context.d.ts +54 -0
- package/dist/components/InputGroup.context.d.ts.map +1 -0
- package/dist/components/InputGroup.d.ts +37 -0
- package/dist/components/InputGroup.mjs +2 -0
- package/dist/components/InputGroup.vue.d.ts +27 -0
- package/dist/components/InputGroup.vue.d.ts.map +1 -0
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.d.ts +21 -0
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts +2 -0
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/MenuItem.cjs +1 -1
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItem.vue.d.ts +1 -0
- 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.d.ts +11 -7
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts +3 -3
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.d.ts +2 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NubiscoMark.cjs +1 -1
- package/dist/components/NubiscoMark.mjs +1 -1
- package/dist/components/NubiscoPlatformMark.cjs +1 -1
- package/dist/components/NubiscoPlatformMark.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/OverflowMenu.cjs +1 -0
- package/dist/components/OverflowMenu.d.ts +41 -0
- package/dist/components/OverflowMenu.mjs +2 -0
- package/dist/components/OverflowMenu.vue.d.ts +36 -0
- package/dist/components/OverflowMenu.vue.d.ts.map +1 -0
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.mjs +1 -1
- package/dist/components/PageLayout.cjs +1 -1
- package/dist/components/PageLayout.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/Search.cjs +1 -0
- package/dist/components/Search.d.ts +36 -0
- package/dist/components/Search.mjs +2 -0
- package/dist/components/Search.vue.d.ts +32 -0
- package/dist/components/Search.vue.d.ts.map +1 -0
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.d.ts +4 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +6 -6
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +1 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +2 -2
- 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 +2 -2
- 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/SidebarHeaderToggle.vue.d.ts.map +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.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/SidebarStatus.cjs +1 -1
- package/dist/components/SidebarStatus.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.d.ts +20 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Skeleton.vue.d.ts +3 -0
- package/dist/components/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/StructuredList.cjs +1 -1
- package/dist/components/StructuredList.mjs +1 -1
- package/dist/components/StructuredList.vue.d.ts +2 -2
- 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 +8 -0
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/SuggestionList.vue.d.ts +3 -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/TableOfContents.vue.d.ts.map +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/TextInput.vue.d.ts +20 -4
- package/dist/components/TextInput.vue.d.ts.map +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toast.vue.d.ts +4 -1
- package/dist/components/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Toolbar.cjs +1 -0
- package/dist/components/Toolbar.context.d.ts +22 -0
- package/dist/components/Toolbar.context.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts +26 -0
- package/dist/components/Toolbar.mjs +2 -0
- package/dist/components/Toolbar.vue.d.ts +24 -0
- package/dist/components/Toolbar.vue.d.ts.map +1 -0
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/TreeNode.vue.d.ts +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Video.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Walkthrough.vue.d.ts.map +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +9 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +9 -0
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/composables/useNbStrings.composable.cjs +1 -1
- package/dist/composables/useNbStrings.composable.d.ts +77 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +68 -0
- package/dist/composables/useRovingFocus.composable.cjs +1 -0
- package/dist/composables/useRovingFocus.composable.d.ts +22 -0
- package/dist/composables/useRovingFocus.composable.d.ts.map +1 -0
- package/dist/composables/useRovingFocus.composable.mjs +56 -0
- package/dist/directives/ToolTip.directive.d.ts +56 -0
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/global.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +152 -143
- package/dist/main-Bo1B-xzL.cjs +4 -0
- package/dist/main-nO1LQzsc.js +744 -0
- package/dist/main.d.ts +21 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/ActionGroup.css +1 -1
- package/dist/styles/Banner.css +1 -1
- package/dist/styles/BatchActions.css +1 -0
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/BlueprintControls.css +1 -1
- package/dist/styles/Board.css +1 -1
- package/dist/styles/BottomPanel.css +1 -1
- package/dist/styles/Breadcrumbs.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/ButtonSet.css +1 -0
- package/dist/styles/Calendar.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/ChipGroup.css +1 -0
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/Confirm.css +1 -1
- package/dist/styles/ContainedListItem.css +1 -1
- package/dist/styles/ContentSwitcher.css +1 -0
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/FileUploader.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/ImagePicker.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/InlineEdit.css +1 -1
- package/dist/styles/InputGroup.css +1 -0
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/OverflowMenu.css +1 -0
- package/dist/styles/Pagination.css +1 -1
- package/dist/styles/Search.css +1 -0
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/ShellPanel.css +1 -1
- package/dist/styles/SidebarHeaderToggle.css +1 -1
- package/dist/styles/Skeleton.css +1 -1
- package/dist/styles/SuggestionList.css +1 -1
- package/dist/styles/TableOfContents.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/Toast.css +1 -1
- package/dist/styles/Toolbar.css +1 -0
- package/dist/styles/UserMenu.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +45 -37
- package/dist/utils/actionFit.helper.cjs +1 -0
- package/dist/utils/actionFit.helper.d.ts +20 -0
- package/dist/utils/actionFit.helper.d.ts.map +1 -0
- package/dist/utils/actionFit.helper.mjs +13 -0
- package/package.json +2 -2
- package/src/styles/_theme.scss +11 -4
- package/src/styles/logic/_field.scss +22 -0
- package/src/styles/logic/_focus.scss +20 -0
- package/src/styles/logic/index.scss +1 -0
- package/src/utils/actionFit.helper.ts +40 -0
- package/dist/AccordionItem-DFwj28eL.js +0 -118
- package/dist/AccordionItem-DhZD2kJL.cjs +0 -1
- package/dist/ActionGroup-CJoBGUvw.js +0 -171
- package/dist/ActionGroup-CU9YQboQ.cjs +0 -1
- package/dist/BackToTop-C5gFfuu7.cjs +0 -1
- package/dist/BackToTop-DZhl6N_Q.js +0 -56
- package/dist/Banner-5uX-ujbu.js +0 -93
- package/dist/Banner-CiIQKSxv.cjs +0 -1
- package/dist/BlueprintCard-Cda5rPZu.cjs +0 -1
- package/dist/BlueprintControls-DnUoI9qp.cjs +0 -1
- package/dist/Board-BNB96CXm.cjs +0 -1
- package/dist/BottomPanel-CYxavAS0.cjs +0 -1
- package/dist/BottomPanel-vFcIk2nf.js +0 -115
- package/dist/Breadcrumbs-B-pjVWeD.js +0 -184
- package/dist/Breadcrumbs-CqDYLfIQ.cjs +0 -1
- package/dist/Button-C0N1cyOQ.cjs +0 -1
- package/dist/Button-CuwzIVWv.js +0 -132
- package/dist/Calendar-Bbk7bPW1.cjs +0 -1
- package/dist/Calendar-EiqHtUG2.js +0 -155
- package/dist/Card-B5FTcFEQ.cjs +0 -1
- package/dist/Card-DUTWbKv7.js +0 -143
- package/dist/CommandPalette-C8-2XCrf.cjs +0 -1
- package/dist/Confirm-BA-t4jPF.cjs +0 -1
- package/dist/Confirm-MmMvMttu.js +0 -313
- package/dist/ContainedListItem-Dj7TcGpO.cjs +0 -1
- package/dist/CopyButton-Bcc2BDJ8.js +0 -65
- package/dist/CopyButton-CwHAVKQ6.cjs +0 -1
- package/dist/DataTable-D4KrQH5E.js +0 -485
- package/dist/DataTable-DVJnvBQM.cjs +0 -1
- package/dist/DatePicker-BmuVSyZ3.cjs +0 -1
- package/dist/DatePicker-CagtB0Sd.js +0 -743
- package/dist/FileUploader-B9j-HmX3.js +0 -193
- package/dist/FileUploader-BolhAWrI.cjs +0 -1
- package/dist/FloatingToolbar-CYOuKLd7.js +0 -140
- package/dist/FloatingToolbar-DxUUozlf.cjs +0 -1
- package/dist/ImagePicker-CZEFzYC8.js +0 -171
- package/dist/ImagePicker-CebI8MDy.cjs +0 -1
- package/dist/InfoHint-DVrm41q9.js +0 -177
- package/dist/InfoHint-WYitTbYz.cjs +0 -1
- package/dist/InlineEdit-DViLVwtn.js +0 -116
- package/dist/InlineEdit-DfkmTudh.cjs +0 -1
- package/dist/Menu-CLDGxi-1.cjs +0 -1
- package/dist/Menu-C_UsGyKX.js +0 -177
- package/dist/MenuItem-CvpxnM4W.cjs +0 -1
- package/dist/Modal-1i_nDqvM.cjs +0 -1
- package/dist/Modal-CxIl02xU.js +0 -229
- package/dist/NotificationCenter-CXn7sGFw.cjs +0 -1
- package/dist/NotificationCenter-Cu_vs-jh.js +0 -584
- package/dist/NumberInput-CMxlZ54a.cjs +0 -1
- package/dist/NumberInput-Dy0leAIF.js +0 -324
- package/dist/Select-Bz4tf2H_.cjs +0 -1
- package/dist/Select-hL8I-aNK.js +0 -603
- package/dist/Shell-BxGBrQsM.js +0 -536
- package/dist/Shell-BzXh23BU.cjs +0 -1
- package/dist/ShellPanel-DzkkJYVd.js +0 -126
- package/dist/ShellPanel-XYKkAc5n.cjs +0 -1
- package/dist/Skeleton-CqZ9O0X0.cjs +0 -1
- package/dist/SuggestionList-BJjbVvt2.cjs +0 -1
- package/dist/SuggestionList-Bdx7CK__.js +0 -189
- package/dist/TextInput-BXyJQfGx.js +0 -348
- package/dist/TextInput-DKp819VS.cjs +0 -2
- package/dist/Toast-BKrvlON6.cjs +0 -1
- package/dist/Toast-fRHhhjZV.js +0 -115
- package/dist/UserMenu-GJHs1fKI.cjs +0 -1
- package/dist/Video-D1WOYCYH.cjs +0 -1
- package/dist/Video-DrDqaCXl.js +0 -104
- package/dist/Walkthrough-DXMDgB9t.cjs +0 -1
- package/dist/Walkthrough-D_vfYTWP.js +0 -327
- package/dist/main-BTximdIU.js +0 -1255
- package/dist/main-DkNxc78b.cjs +0 -4
- package/dist/motion-BjVtMTXD.cjs +0 -1
- package/dist/motion-C0h9XZQZ.js +0 -18
- /package/dist/{Badge-CfICqXrd.cjs → Badge-BYfdJcdD.cjs} +0 -0
- /package/dist/{Badge-BFsoJcCK.js → Badge-scjsdx_V.js} +0 -0
- /package/dist/{Blueprint.context-B3d5-4jD.cjs → Blueprint.context-BX56xsrT.cjs} +0 -0
- /package/dist/{Blueprint.context-B4bRLj7m.js → Blueprint.context-Bz6Jy1Ou.js} +0 -0
- /package/dist/{BlueprintBackground-5OOF-VpK.js → BlueprintBackground-DPjZeMwY.js} +0 -0
- /package/dist/{BlueprintBackground-D_JokLTK.cjs → BlueprintBackground-yHRGclEz.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CACuVJqI.cjs → BlueprintMinimap-qskDNYyr.cjs} +0 -0
- /package/dist/{BlueprintMinimap-Ehrltju2.js → BlueprintMinimap-xnsyS1M8.js} +0 -0
- /package/dist/{Card.link-eRkbFiF1.cjs → Card.link-Bw2B_lPO.cjs} +0 -0
- /package/dist/{Card.link-CB8_CTbn.js → Card.link-CdvubtHJ.js} +0 -0
- /package/dist/{CardGrid-DzjiR2wg.cjs → CardGrid-DPaITpcU.cjs} +0 -0
- /package/dist/{CardGrid-BOhFOzTs.js → CardGrid-j0TFmVrQ.js} +0 -0
- /package/dist/{ChartLegend-C81jju4k.cjs → ChartLegend-COJeG-2B.cjs} +0 -0
- /package/dist/{ChartLegend-fsJqOyGj.js → ChartLegend-LDNukufA.js} +0 -0
- /package/dist/{CheckboxGroup.context-C8p21aqH.cjs → CheckboxGroup.context-ADwiY4gy.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-Cu0BA648.js → CheckboxGroup.context-C1QB-Zsq.js} +0 -0
- /package/dist/{ContainedList-DV8kZgTS.cjs → ContainedList-CBWwEmoK.cjs} +0 -0
- /package/dist/{ContainedList-7uMU4e4Z.js → ContainedList-PUA2OJ08.js} +0 -0
- /package/dist/{DefinitionList-DIPobaPW.js → DefinitionList-BOVcW-V7.js} +0 -0
- /package/dist/{DefinitionList-BuRW4drr.cjs → DefinitionList-CndoLDLs.cjs} +0 -0
- /package/dist/{DefinitionListItem-CbVnrShi.js → DefinitionListItem-C3VrLhWY.js} +0 -0
- /package/dist/{DefinitionListItem-Bf9amK8a.cjs → DefinitionListItem-CLztc8mQ.cjs} +0 -0
- /package/dist/{DragHandle-snItY92k.cjs → DragHandle-Bz2N22Sm.cjs} +0 -0
- /package/dist/{DragHandle-dCNBfHJe.js → DragHandle-Cc7WrUj7.js} +0 -0
- /package/dist/{EmptyState-B8EM9ynK.cjs → EmptyState-Db0Zrrk2.cjs} +0 -0
- /package/dist/{EmptyState-D-fku2DD.js → EmptyState-DhlJV0C6.js} +0 -0
- /package/dist/{Field-3S8uGW95.cjs → Field-COMPegVv.cjs} +0 -0
- /package/dist/{Field-DK5iec3Z.js → Field-D12Dja-u.js} +0 -0
- /package/dist/{Flag-myXFwopO.js → Flag-DyDqHJy3.js} +0 -0
- /package/dist/{Flag-CNx_cE4Q.cjs → Flag-gM91kXTi.cjs} +0 -0
- /package/dist/{Grid-jlgLOwom.js → Grid-B7d8x0tA.js} +0 -0
- /package/dist/{Grid-C0muGlj3.cjs → Grid-BOtE_jXr.cjs} +0 -0
- /package/dist/{JsonTree-Bmj8WtzK.cjs → JsonTree-MjCO8_Xk.cjs} +0 -0
- /package/dist/{JsonTree-BWfMcWOV.js → JsonTree-VbXpLPoG.js} +0 -0
- /package/dist/{Label-CTOPIIbR.cjs → Label-CjxnZgNy.cjs} +0 -0
- /package/dist/{Label-BDMCrURR.js → Label-xwHw_UbN.js} +0 -0
- /package/dist/{Layer-BJeI6Q6N.js → Layer-Btb-b9Mk.js} +0 -0
- /package/dist/{Layer-D-MNrLiB.cjs → Layer-D0NqQYM0.cjs} +0 -0
- /package/dist/{MenuBar-aLDr7-eJ.cjs → MenuBar-BVgGbppN.cjs} +0 -0
- /package/dist/{MenuBar-DyJufs5b.js → MenuBar-M2eiYZG0.js} +0 -0
- /package/dist/{MenuDivider-aZIXvYsH.js → MenuDivider-B3tNv2aj.js} +0 -0
- /package/dist/{MenuDivider-D75yF8o8.cjs → MenuDivider-BSMtwoUU.cjs} +0 -0
- /package/dist/{Message-Bija1nMK.cjs → Message-BJO4MjiQ.cjs} +0 -0
- /package/dist/{Message-BONOwoVY.js → Message-DCeg8qsC.js} +0 -0
- /package/dist/{NotificationCenterItem-zdOMnxv1.cjs → NotificationCenterItem-D0agavaK.cjs} +0 -0
- /package/dist/{NotificationCenterItem-BbbBFYEu.js → NotificationCenterItem-O6SR_6KR.js} +0 -0
- /package/dist/{NubiscoMark-Cf7Ek83E.cjs → NubiscoMark-3StsXBoJ.cjs} +0 -0
- /package/dist/{NubiscoMark-BLT8ULAl.js → NubiscoMark-XJWPWIc0.js} +0 -0
- /package/dist/{NubiscoPlatformMark-Dca7vi6H.js → NubiscoPlatformMark-BgQLjI89.js} +0 -0
- /package/dist/{NubiscoPlatformMark-CXMSQDYh.cjs → NubiscoPlatformMark-D8WIp4On.cjs} +0 -0
- /package/dist/{PageLayout-DQKfOSQq.js → PageLayout-BMcT2mzU.js} +0 -0
- /package/dist/{PageLayout-Dw4JYS3k.cjs → PageLayout-DHi1w1PD.cjs} +0 -0
- /package/dist/{PrimaryAction.context-BkYkcMlm.js → PrimaryAction.context-DZUcR5ER.js} +0 -0
- /package/dist/{PrimaryAction.context-2v_jcQAo.cjs → PrimaryAction.context-DnzRVqGH.cjs} +0 -0
- /package/dist/{ReorderList-B1CYGR0e.js → ReorderList-DmjW30Mw.js} +0 -0
- /package/dist/{ReorderList-DBW8TBu6.cjs → ReorderList-qScXc3-v.cjs} +0 -0
- /package/dist/{SidebarBrand-FHBO4Dw3.js → SidebarBrand-CZf-kRyZ.js} +0 -0
- /package/dist/{SidebarBrand-CX-BgI4X.cjs → SidebarBrand-D2u7hX-v.cjs} +0 -0
- /package/dist/{SidebarLink-xtGCDABj.js → SidebarLink-BuRBmv_k.js} +0 -0
- /package/dist/{SidebarLink-DTGVapwa.cjs → SidebarLink-CSTNfb2F.cjs} +0 -0
- /package/dist/{SidebarMenu-CnsOBXeM.cjs → SidebarMenu-CAthEmyy.cjs} +0 -0
- /package/dist/{SidebarMenu-D24o7HS-.js → SidebarMenu-CgWUHllQ.js} +0 -0
- /package/dist/{SidebarMenuGroup-DJasr_cx.cjs → SidebarMenuGroup-B9JGPBcF.cjs} +0 -0
- /package/dist/{SidebarMenuGroup-Bjc2IeK5.js → SidebarMenuGroup-DdWg57Wv.js} +0 -0
- /package/dist/{SidebarMenuItem-UFeKPTvc.js → SidebarMenuItem-BvvoDIjK.js} +0 -0
- /package/dist/{SidebarMenuItem-DP4L8ljr.cjs → SidebarMenuItem-eFnj5QoE.cjs} +0 -0
- /package/dist/{SidebarStatus-D-CfUYFc.js → SidebarStatus-CnTnYL4x.js} +0 -0
- /package/dist/{SidebarStatus-YfLW9xzC.cjs → SidebarStatus-CvjuggXO.cjs} +0 -0
- /package/dist/{Sparkline-MAi1Fh2T.cjs → Sparkline-B7kUEfuW.cjs} +0 -0
- /package/dist/{Sparkline-m3wbt-f1.js → Sparkline-CVzkzaOJ.js} +0 -0
- /package/dist/{Stepper.context-DUIDhN9Q.cjs → Stepper.context-Brnt5IZv.cjs} +0 -0
- /package/dist/{Stepper.context-DqfEvgGM.js → Stepper.context-CRKX8lxW.js} +0 -0
- /package/dist/{StructuredList-h9JFXpF4.cjs → StructuredList-BexC0c1Z.cjs} +0 -0
- /package/dist/{StructuredList-BSfuLANB.js → StructuredList-DuBBP01p.js} +0 -0
- /package/dist/{Submenu-Dxo3DUDA.cjs → Submenu-DRkHiWsD.cjs} +0 -0
- /package/dist/{Submenu-BnMaJKYm.js → Submenu-Dnj5MiFy.js} +0 -0
- /package/dist/{TextInput.context-DV1MgL_Q.js → TextInput.context-B-mipPOo.js} +0 -0
- /package/dist/{TextInput.context-UTLuljcO.cjs → TextInput.context-ChkcqMNM.cjs} +0 -0
- /package/dist/{TreeContext-TZ35sT5B.cjs → TreeContext-B2Io2oii.cjs} +0 -0
- /package/dist/{TreeContext--GZ21fCm.js → TreeContext-Cs4iAw0d.js} +0 -0
- /package/dist/{Wireframe-CL0rjsos.cjs → Wireframe-3fvc4I5-.cjs} +0 -0
- /package/dist/{Wireframe-BxUNaH2g.js → Wireframe-C_Ca3wCn.js} +0 -0
- /package/dist/{palette-CWU7exM6.js → palette-6bEW4KUN.js} +0 -0
- /package/dist/{palette-B7XEOMVB.cjs → palette-LbOzdAXj.cjs} +0 -0
- /package/dist/{pixi-scene-BKyneWmd.cjs → pixi-scene-CQ1qoZvX.cjs} +0 -0
- /package/dist/{pixi-scene-TbaBQ2-u.js → pixi-scene-DFCEvc1j.js} +0 -0
- /package/dist/{scales-CNW8JgKC.js → scales-BGzTviac.js} +0 -0
- /package/dist/{scales-B8IbC7t_.cjs → scales-BRSHTjbp.cjs} +0 -0
- /package/dist/{useChartSize-CftshgoY.js → useChartSize-05CLdiR0.js} +0 -0
- /package/dist/{useChartSize-B6Bes760.cjs → useChartSize-CUZ7BuGD.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-Dn1mqnqe.cjs → useLoadingAnnouncer.composable-CEPRjDi3.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BAwecV1M.js → useLoadingAnnouncer.composable-c0XX_xNT.js} +0 -0
- /package/dist/{vue-i18n-DSR949qU.js → vue-i18n-DaD-yZmK.js} +0 -0
- /package/dist/{vue-i18n-DIvTc6LM.cjs → vue-i18n-ZdR0XDmN.cjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Label-CTOPIIbR.cjs`),r=require(`./Message-Bija1nMK.cjs`),i=require(`./Grid-C0muGlj3.cjs`),a=require(`./composables/useFieldMessage.composable.cjs`),o=require(`./TextInput.context-UTLuljcO.cjs`),s=require(`./composables/useNbStrings.composable.cjs`);let c=require(`vue`);var l={key:0,class:`nb-text-input__overlay-wrap`},u=[`innerHTML`],d=[`id`,`aria-invalid`,`aria-describedby`,`value`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`],f=[`id`,`aria-invalid`,`aria-describedby`,`value`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`],p=[`id`,`aria-invalid`,`aria-describedby`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`,`rows`],m=[`id`,`aria-invalid`,`aria-describedby`,`type`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`min`,`max`,`step`,`maxlength`],h={key:2,class:`nb-text-input__decorator`},g={key:3,class:`nb-text-input__actions`},_={key:3,class:`nb-text-input__count`},v={key:0,class:`nb-text-input__inner-header`},y=[`for`,`title`],b={key:0,class:`nb-text-input__asterisk`,"aria-hidden":`true`},x={key:3,class:`nb-text-input__count`},S=[`id`,`aria-invalid`,`aria-describedby`,`type`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`min`,`max`,`step`,`maxlength`],C=(0,c.defineComponent)({inheritAttrs:!1,__name:`TextInput`,props:(0,c.mergeModels)({type:{default:`text`},min:{default:void 0},max:{default:void 0},step:{default:void 0},maxlength:{default:void 0},showCount:{type:Boolean,default:!1},multiline:{type:Boolean,default:!1},rows:{default:3},highlight:{type:Function,default:void 0},readonly:{type:Boolean,default:!1},placeholder:{default:``},name:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e,{expose:C}){let w=e,T=(0,c.useModel)(e,`modelValue`),E=s.useNbStrings(),D=(0,c.computed)(()=>w.showCount&&typeof w.maxlength==`number`),O=(0,c.computed)(()=>E.value.textInputCount((T.value??``).length,w.maxlength??0)),k=(0,c.ref)(null),A=(0,c.ref)(null);C({focus:()=>k.value?.focus(),blur:()=>k.value?.blur(),nativeEl:k}),(0,c.provide)(o.t,{field:k});let j=(0,c.ref)(!1),M=t.useStableId({}),N=(0,c.computed)(()=>w.id??M),P=(0,c.computed)(()=>!!w.highlight),F=(0,c.computed)(()=>{if(!w.highlight)return``;let e=String(T.value??``);return w.highlight(e)+`
|
|
2
|
-
`});function I(){A.value&&k.value&&(A.value.scrollTop=k.value.scrollTop)}(0,c.watch)(F,()=>(0,c.nextTick)(I));let{variant:L,text:R,messageId:z,invalid:B,live:V,key:H}=a.useFieldMessage(w,N),U=(0,c.computed)(()=>L.value??`helper`),W=(0,c.computed)(()=>!!R.value),G=(0,c.useAttrs)(),K=(0,c.computed)(()=>a.joinDescribedBy(G[`aria-describedby`],z.value)),q=(0,c.computed)(()=>({"nb-text-input__field-wrapper--focused":j.value,"nb-text-input__field-wrapper--error":!!w.error,"nb-text-input__field-wrapper--warning":!w.error&&!!w.warning,"nb-text-input__field-wrapper--disabled":w.disabled,"nb-text-input__field-wrapper--readonly":w.readonly,"nb-text-input__field-wrapper--overlay":P.value,"nb-text-input__field-wrapper--multiline":w.multiline}));return(t,a)=>((0,c.openBlock)(),(0,c.createBlock)(i.t,{dir:`col`,class:(0,c.normalizeClass)([`nb-text-input`,`nb-text-input--${e.variant}`,`nb-text-input--${e.size}`,{"nb-text-input--multiline":e.multiline}])},{default:(0,c.withCtx)(()=>[e.variant===`default`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:0},[t.$slots.label?(0,c.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,c.openBlock)(),(0,c.createBlock)(n.t,{key:1,for:N.value,required:e.required,disabled:e.disabled},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)([`nb-text-input__field-wrapper`,q.value])},[(0,c.renderSlot)(t.$slots,`leading`,{},void 0,!0),P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,l,[(0,c.createElementVNode)(`div`,{ref_key:`mirrorRef`,ref:A,class:`nb-text-input__mirror`,"aria-hidden":`true`,innerHTML:F.value},null,8,u),e.multiline?((0,c.openBlock)(),(0,c.createElementBlock)(`textarea`,(0,c.mergeProps)({key:0,id:N.value,ref_key:`nativeRef`,ref:k},t.$attrs,{"aria-invalid":(0,c.unref)(B),"aria-describedby":K.value,class:`nb-text-input__field--transparent`,value:T.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,autocomplete:`off`,autocorrect:`off`,onInput:a[0]||=e=>T.value=e.target.value,onFocus:a[1]||=e=>j.value=!0,onBlur:a[2]||=e=>j.value=!1,onScroll:I}),null,16,d)):((0,c.openBlock)(),(0,c.createElementBlock)(`input`,(0,c.mergeProps)({key:1,id:N.value,ref_key:`nativeRef`,ref:k},t.$attrs,{"aria-invalid":(0,c.unref)(B),"aria-describedby":K.value,type:`text`,class:`nb-text-input__field--transparent`,value:T.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,onInput:a[3]||=e=>T.value=e.target.value,onFocus:a[4]||=e=>j.value=!0,onBlur:a[5]||=e=>j.value=!1}),null,16,f))])):((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[e.multiline?(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)(`textarea`,(0,c.mergeProps)({key:0,id:N.value,ref_key:`nativeRef`,ref:k},t.$attrs,{"onUpdate:modelValue":a[6]||=e=>T.value=e,"aria-invalid":(0,c.unref)(B),"aria-describedby":K.value,class:`nb-text-input__field`,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,rows:e.rows,onFocus:a[7]||=e=>j.value=!0,onBlur:a[8]||=e=>j.value=!1}),null,16,p)),[[c.vModelText,T.value]]):(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)(`input`,(0,c.mergeProps)({key:1,id:N.value,ref_key:`nativeRef`,ref:k},t.$attrs,{"onUpdate:modelValue":a[9]||=e=>T.value=e,"aria-invalid":(0,c.unref)(B),"aria-describedby":K.value,class:`nb-text-input__field`,type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:a[10]||=e=>j.value=!0,onBlur:a[11]||=e=>j.value=!1}),null,16,m)),[[c.vModelDynamic,T.value]])],64)),(0,c.renderSlot)(t.$slots,`trailing`,{},void 0,!0),t.$slots.decorator?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,h,[(0,c.renderSlot)(t.$slots,`decorator`,{},void 0,!0)])):(0,c.createCommentVNode)(``,!0),t.$slots.actions?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,g,[(0,c.renderSlot)(t.$slots,`actions`,{},void 0,!0)])):(0,c.createCommentVNode)(``,!0)],2),W.value?((0,c.openBlock)(),(0,c.createBlock)(r.t,{id:(0,c.unref)(z),key:(0,c.unref)(H),variant:U.value,live:(0,c.unref)(V),class:`nb-text-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(R)),1)]),_:1},8,[`id`,`variant`,`live`])):(0,c.createCommentVNode)(``,!0),D.value?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,_,(0,c.toDisplayString)(O.value),1)):(0,c.createCommentVNode)(``,!0),(0,c.renderSlot)(t.$slots,`dropdown`,{},void 0,!0)],64)):e.variant===`fluid`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)([`nb-text-input__field-wrapper`,q.value])},[e.label||t.$slots.label?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,v,[t.$slots.label?(0,c.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,c.openBlock)(),(0,c.createElementBlock)(`label`,{key:1,for:N.value,class:(0,c.normalizeClass)([`nb-text-input__inner-label`,{"nb-text-input__inner-label--required":e.required}]),title:e.label||void 0},[(0,c.createTextVNode)((0,c.toDisplayString)(e.label)+` `,1),e.required?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,b,`*`)):(0,c.createCommentVNode)(``,!0)],10,y)),W.value?((0,c.openBlock)(),(0,c.createBlock)(r.t,{id:(0,c.unref)(z),key:(0,c.unref)(H),variant:U.value,live:(0,c.unref)(V),"icon-only":``,class:`nb-text-input__inner-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(R)),1)]),_:1},8,[`id`,`variant`,`live`])):(0,c.createCommentVNode)(``,!0),D.value?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,x,(0,c.toDisplayString)(O.value),1)):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),(0,c.withDirectives)((0,c.createElementVNode)(`input`,(0,c.mergeProps)({id:N.value,ref_key:`nativeRef`,ref:k},t.$attrs,{"onUpdate:modelValue":a[12]||=e=>T.value=e,"aria-invalid":(0,c.unref)(B),"aria-describedby":K.value,class:`nb-text-input__field`,type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,min:e.min,max:e.max,step:e.step,maxlength:e.maxlength,onFocus:a[13]||=e=>j.value=!0,onBlur:a[14]||=e=>j.value=!1}),null,16,S),[[c.vModelDynamic,T.value]])],2),(0,c.renderSlot)(t.$slots,`dropdown`,{},void 0,!0)],64)):(0,c.createCommentVNode)(``,!0)]),_:3},8,[`class`]))}}),w=e.t(C,[[`__scopeId`,`data-v-f657247a`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return w}});
|
package/dist/Toast-BKrvlON6.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/info`);i=e.n(i);let a=require(`@nubisco/ui/icons/x`),o=require(`@nubisco/ui/icons/warning-circle`);o=e.n(o);let s=require(`@nubisco/ui/icons/warning`);s=e.n(s);let c=require(`@nubisco/ui/icons/check-circle`);c=e.n(c);var l=[`role`,`aria-live`],u={class:`nb-toast__icon`},d={class:`nb-toast__body`},f={key:0,class:`nb-toast__status`},p={key:1,class:`nb-toast__title`},m={class:`nb-toast__message`},h=[`aria-label`],g=(0,r.defineComponent)({__name:`Toast`,props:{variant:{default:`info`},title:{default:void 0},message:{},duration:{default:4e3},cta:{default:void 0},role:{default:`alert`},ariaLive:{default:void 0},statusLabel:{default:void 0},closeLabel:{default:`Close`},managed:{type:Boolean,default:!1},paused:{type:Boolean,default:!1},cycle:{default:0}},emits:[`close`,`action`],setup(e,{emit:t}){let g=e,_=t,v=(0,r.ref)(!1),y=(0,r.computed)(()=>g.managed?g.paused:v.value),b={success:c,error:o,warning:s,info:i},x={success:`Success`,error:`Error`,warning:`Warning`,info:`Information`},S=(0,r.computed)(()=>g.statusLabel===void 0?x[g.variant]:g.statusLabel),C=(0,r.computed)(()=>g.ariaLive??(g.variant===`error`?`assertive`:`polite`)),w=null,T=g.duration??0,E=0;function D(){g.managed||!T||(E=Date.now(),w=setTimeout(()=>_(`close`),T))}function O(){g.managed||A()}function k(){g.managed||j()}function A(){!T||v.value||(v.value=!0,w&&clearTimeout(w),T-=Date.now()-E)}function j(){!T||!v.value||(v.value=!1,D())}return(0,r.onMounted)(D),(0,r.onUnmounted)(()=>{w&&clearTimeout(w)}),(0,r.watch)(()=>g.duration,e=>{w&&clearTimeout(w),T=e??0,D()}),(t,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)([`nb-toast`,`nb-toast--${e.variant}`]),role:e.role,"aria-live":C.value,onMouseenter:O,onMouseleave:k},[(0,r.createElementVNode)(`div`,u,[(0,r.createVNode)(n.t,{name:b[e.variant],size:16},null,8,[`name`])]),(0,r.createElementVNode)(`div`,d,[S.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,f,(0,r.toDisplayString)(S.value),1)):(0,r.createCommentVNode)(``,!0),e.title?((0,r.openBlock)(),(0,r.createElementBlock)(`p`,p,(0,r.toDisplayString)(e.title),1)):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`p`,m,(0,r.toDisplayString)(e.message),1),e.cta?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:2,class:`nb-toast__cta`,type:`button`,onClick:i[0]||=()=>{e.cta&&e.cta.action(),_(`action`),_(`close`)}},(0,r.toDisplayString)(e.cta.label),1)):(0,r.createCommentVNode)(``,!0)]),(0,r.createElementVNode)(`button`,{class:`nb-toast__close`,type:`button`,"aria-label":e.closeLabel,onClick:i[1]||=e=>_(`close`)},[(0,r.createVNode)(n.t,{name:(0,r.unref)(a.regular),size:`sm`},null,8,[`name`])],8,h),e.duration?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:e.cycle,class:`nb-toast__progress`,style:(0,r.normalizeStyle)({animationDuration:`${e.duration}ms`,animationPlayState:y.value?`paused`:`running`})},null,4)):(0,r.createCommentVNode)(``,!0)],42,l))}}),_=t.t(g,[[`__scopeId`,`data-v-eeb6a74f`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
package/dist/Toast-fRHhhjZV.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
-
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
-
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, toDisplayString as m, unref as h, watch as g } from "vue";
|
|
4
|
-
import * as _ from "@nubisco/ui/icons/info";
|
|
5
|
-
import { regular as v } from "@nubisco/ui/icons/x";
|
|
6
|
-
import * as y from "@nubisco/ui/icons/warning-circle";
|
|
7
|
-
import * as b from "@nubisco/ui/icons/warning";
|
|
8
|
-
import * as x from "@nubisco/ui/icons/check-circle";
|
|
9
|
-
//#region src/components/Toast.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var S = ["role", "aria-live"], C = { class: "nb-toast__icon" }, w = { class: "nb-toast__body" }, T = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "nb-toast__status"
|
|
13
|
-
}, E = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "nb-toast__title"
|
|
16
|
-
}, D = { class: "nb-toast__message" }, O = ["aria-label"], k = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
17
|
-
__name: "Toast",
|
|
18
|
-
props: {
|
|
19
|
-
variant: { default: "info" },
|
|
20
|
-
title: { default: void 0 },
|
|
21
|
-
message: {},
|
|
22
|
-
duration: { default: 4e3 },
|
|
23
|
-
cta: { default: void 0 },
|
|
24
|
-
role: { default: "alert" },
|
|
25
|
-
ariaLive: { default: void 0 },
|
|
26
|
-
statusLabel: { default: void 0 },
|
|
27
|
-
closeLabel: { default: "Close" },
|
|
28
|
-
managed: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
paused: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !1
|
|
35
|
-
},
|
|
36
|
-
cycle: { default: 0 }
|
|
37
|
-
},
|
|
38
|
-
emits: ["close", "action"],
|
|
39
|
-
setup(e, { emit: s }) {
|
|
40
|
-
let k = e, A = s, j = p(!1), M = n(() => k.managed ? k.paused : j.value), N = {
|
|
41
|
-
success: x,
|
|
42
|
-
error: y,
|
|
43
|
-
warning: b,
|
|
44
|
-
info: _
|
|
45
|
-
}, P = {
|
|
46
|
-
success: "Success",
|
|
47
|
-
error: "Error",
|
|
48
|
-
warning: "Warning",
|
|
49
|
-
info: "Information"
|
|
50
|
-
}, F = n(() => k.statusLabel === void 0 ? P[k.variant] : k.statusLabel), I = n(() => k.ariaLive ?? (k.variant === "error" ? "assertive" : "polite")), L = null, R = k.duration ?? 0, z = 0;
|
|
51
|
-
function B() {
|
|
52
|
-
k.managed || !R || (z = Date.now(), L = setTimeout(() => A("close"), R));
|
|
53
|
-
}
|
|
54
|
-
function V() {
|
|
55
|
-
k.managed || U();
|
|
56
|
-
}
|
|
57
|
-
function H() {
|
|
58
|
-
k.managed || W();
|
|
59
|
-
}
|
|
60
|
-
function U() {
|
|
61
|
-
!R || j.value || (j.value = !0, L && clearTimeout(L), R -= Date.now() - z);
|
|
62
|
-
}
|
|
63
|
-
function W() {
|
|
64
|
-
!R || !j.value || (j.value = !1, B());
|
|
65
|
-
}
|
|
66
|
-
return u(B), d(() => {
|
|
67
|
-
L && clearTimeout(L);
|
|
68
|
-
}), g(() => k.duration, (e) => {
|
|
69
|
-
L && clearTimeout(L), R = e ?? 0, B();
|
|
70
|
-
}), (n, s) => (f(), i("div", {
|
|
71
|
-
class: c(["nb-toast", `nb-toast--${e.variant}`]),
|
|
72
|
-
role: e.role,
|
|
73
|
-
"aria-live": I.value,
|
|
74
|
-
onMouseenter: V,
|
|
75
|
-
onMouseleave: H
|
|
76
|
-
}, [
|
|
77
|
-
a("div", C, [o(t, {
|
|
78
|
-
name: N[e.variant],
|
|
79
|
-
size: 16
|
|
80
|
-
}, null, 8, ["name"])]),
|
|
81
|
-
a("div", w, [
|
|
82
|
-
F.value ? (f(), i("span", T, m(F.value), 1)) : r("", !0),
|
|
83
|
-
e.title ? (f(), i("p", E, m(e.title), 1)) : r("", !0),
|
|
84
|
-
a("p", D, m(e.message), 1),
|
|
85
|
-
e.cta ? (f(), i("button", {
|
|
86
|
-
key: 2,
|
|
87
|
-
class: "nb-toast__cta",
|
|
88
|
-
type: "button",
|
|
89
|
-
onClick: s[0] ||= () => {
|
|
90
|
-
e.cta && e.cta.action(), A("action"), A("close");
|
|
91
|
-
}
|
|
92
|
-
}, m(e.cta.label), 1)) : r("", !0)
|
|
93
|
-
]),
|
|
94
|
-
a("button", {
|
|
95
|
-
class: "nb-toast__close",
|
|
96
|
-
type: "button",
|
|
97
|
-
"aria-label": e.closeLabel,
|
|
98
|
-
onClick: s[1] ||= (e) => A("close")
|
|
99
|
-
}, [o(t, {
|
|
100
|
-
name: h(v),
|
|
101
|
-
size: "sm"
|
|
102
|
-
}, null, 8, ["name"])], 8, O),
|
|
103
|
-
e.duration ? (f(), i("div", {
|
|
104
|
-
key: e.cycle,
|
|
105
|
-
class: "nb-toast__progress",
|
|
106
|
-
style: l({
|
|
107
|
-
animationDuration: `${e.duration}ms`,
|
|
108
|
-
animationPlayState: M.value ? "paused" : "running"
|
|
109
|
-
})
|
|
110
|
-
}, null, 4)) : r("", !0)
|
|
111
|
-
], 42, S));
|
|
112
|
-
}
|
|
113
|
-
}), [["__scopeId", "data-v-eeb6a74f"]]);
|
|
114
|
-
//#endregion
|
|
115
|
-
export { k as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Icon-CssV4E2-.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`),n=require(`./utils/initials.helper.cjs`),r=require(`./NubiscoMark-Cf7Ek83E.cjs`),i=require(`./vue-i18n-DIvTc6LM.cjs`),a=require(`./Radio-D0YjKuB2.cjs`),o=require(`./composables/useTheme.composable.cjs`);let s=require(`vue`),ee=require(`@nubisco/ui/icons/check`),te=require(`@nubisco/ui/icons/x`),ne=require(`@nubisco/ui/icons/shield-star`),c=require(`@nubisco/ui/icons/users`),l=require(`@nubisco/ui/icons/plus`),u=require(`@nubisco/ui/icons/user`),d=require(`@nubisco/ui/icons/sign-out`);var f=[`title`,`aria-expanded`,`disabled`],p={class:`nb-user-menu__avatar`,"aria-hidden":`true`},m=[`src`],h={class:`nb-user-menu__identity-text`},g={class:`nb-user-menu__identity-name`},_={key:0,class:`nb-user-menu__identity-email`},re={key:1,class:`nb-user-menu__sr-only`},ie=[`title`,`aria-label`,`aria-expanded`,`disabled`],ae=[`src`],oe={class:`nb-user-menu__label`},se={class:`nb-user-menu__email`},ce={key:0,class:`nb-user-menu__role`},le=[`disabled`,`onClick`],ue={class:`nb-user-menu__account-main`},de={class:`nb-user-menu__account-email`},fe={key:0,class:`nb-user-menu__account-name`},v={class:`nb-user-menu__brand`},y={key:1,class:`nb-user-menu__brand-name`},b={key:2},x=260,S=8,C=(0,s.defineComponent)({__name:`UserMenu`,props:{user:{},accounts:{default:void 0},accountsUnknown:{type:Boolean,default:!1},showAccountActions:{type:Boolean,default:!0},showProfile:{type:Boolean,default:!0},brand:{default:`footer`},placement:{default:`right-end`},trigger:{default:`avatar`},showTheme:{type:Boolean,default:!1},roleBadge:{default:void 0},disabled:{type:Boolean,default:!1}},emits:[`switch`,`remove`,`switch-account`,`add-account`,`profile`,`sign-out`,`open`,`close`],setup(C,{expose:w,emit:T}){let E={en:{ACCOUNT_MENU:`Account menu`,SIGNED_IN_AS:`Signed in as`,SWITCH_ACCOUNT:`Switch account`,USE_ANOTHER_ACCOUNT:`Use another account`,REMOVE_ACCOUNT:`Sign this account out of this browser`,PROFILE:`Profile`,SIGN_OUT:`Sign out`,APPEARANCE:`Appearance`,THEME_LIGHT:`Light`,THEME_DARK:`Dark`,THEME_SYSTEM:`Match my system`,poweredBy:`Accord by Nubisco`},pt:{ACCOUNT_MENU:`Menu de conta`,SIGNED_IN_AS:`Sessão iniciada como`,SWITCH_ACCOUNT:`Mudar de conta`,USE_ANOTHER_ACCOUNT:`Usar outra conta`,REMOVE_ACCOUNT:`Terminar a sessão desta conta neste browser`,PROFILE:`Perfil`,SIGN_OUT:`Terminar sessão`,APPEARANCE:`Aspeto`,THEME_LIGHT:`Claro`,THEME_DARK:`Escuro`,THEME_SYSTEM:`Seguir o sistema`,poweredBy:`Accord da Nubisco`}},{t:D,te:O,locale:k}=i.t({useScope:`global`});function A(e){if(O(e))return D(e);let t=e.slice(9);return E[String(k.value).toLowerCase().split(`-`)[0]]?.[t]??E.en[t]??e}let j=o.useTheme(),M=(0,s.computed)(()=>[{label:A(`userMenu.THEME_LIGHT`),value:`light`},{label:A(`userMenu.THEME_DARK`),value:`dark`},{label:A(`userMenu.THEME_SYSTEM`),value:`system`}]),N=`nb-user-menu-appearance-${(0,s.useId)()}`,P=C,F=(0,s.inject)(`nb-shell-sidebar-variant`,null),I=(0,s.computed)(()=>P.trigger===`identity`&&(F?.value??`verbose`)===`verbose`),pe=(0,s.computed)(()=>P.user.name?.trim()||P.user.email),L=(0,s.computed)(()=>{let e=P.user.name?.trim();return e?e.toLowerCase()===P.user.email.trim().toLowerCase()?``:P.user.email:``}),R=(0,s.ref)(!1);(0,s.watch)(()=>P.user.picture,()=>{R.value=!1});let z=(0,s.computed)(()=>!!P.user.picture&&!R.value),B=/(Accord|Nubisco)/,me=(0,s.computed)(()=>{let e=A(`userMenu.poweredBy`);if(!B.test(e))return[{text:e,name:!0,mark:!0}];let t=!1;return e.split(B).filter(e=>e!==``).map(e=>{let n=e===`Accord`||e===`Nubisco`,r=e===`Nubisco`&&!t;return r&&(t=!0),{text:e,name:n,mark:r}})}),V=T,H=(0,s.ref)(null),U=(0,s.ref)(null),W=(0,s.ref)(!1),G=(0,s.ref)({});function K(e){return n.initialsOf(e)}let{phone:q}=t.usePhoneLayout();function J(){let e=H.value?.getBoundingClientRect();if(e){if(q.value){let t=U.value?.offsetWidth||x,n=Math.max(S,window.innerWidth-t-S);G.value={left:`${Math.round(Math.min(Math.max(e.left,S),n))}px`,bottom:`${Math.round(window.innerHeight-e.top+8)}px`};return}P.placement===`top-start`?G.value={left:`${Math.round(e.left)}px`,bottom:`${Math.round(window.innerHeight-e.top+8)}px`}:G.value={left:`${Math.round(e.right+12)}px`,bottom:`${Math.round(window.innerHeight-e.bottom)}px`}}}function Y(){P.disabled||(W.value?X():(J(),W.value=!0,V(`open`),q.value&&(0,s.nextTick)(J)))}function X(){W.value&&(W.value=!1,V(`close`))}function he(e){e.current||(X(),V(`switch`,e))}function ge(e){V(`remove`,e)}function _e(){X(),V(`switch-account`)}function ve(){X(),V(`add-account`)}function Z(){X(),V(`profile`)}function ye(){X(),V(`sign-out`)}function Q(e){if(!W.value)return;let t=e.target;H.value?.contains(t)||U.value?.contains(t)||X()}function $(e){e.key===`Escape`&&X()}return(0,s.onMounted)(()=>{document.addEventListener(`click`,Q),document.addEventListener(`keydown`,$)}),(0,s.onBeforeUnmount)(()=>{document.removeEventListener(`click`,Q),document.removeEventListener(`keydown`,$)}),w({open:W,toggle:Y,close:X}),(t,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{ref_key:`rootRef`,ref:H,class:(0,s.normalizeClass)([`nb-user-menu`,{"nb-user-menu--identity":I.value,"nb-user-menu--elevated":!!P.roleBadge}])},[(0,s.renderSlot)(t.$slots,`trigger`,{open:W.value,toggle:Y},()=>[I.value?((0,s.openBlock)(),(0,s.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-user-menu__identity`,title:P.user.email,"aria-haspopup":`menu`,"aria-expanded":W.value,disabled:C.disabled,onClick:Y},[(0,s.createElementVNode)(`span`,p,[z.value?((0,s.openBlock)(),(0,s.createElementBlock)(`img`,{key:0,class:`nb-user-menu__picture`,src:P.user.picture??void 0,alt:``,onError:n[0]||=e=>R.value=!0},null,40,m)):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[(0,s.createTextVNode)((0,s.toDisplayString)(K(P.user)),1)],64))]),(0,s.createElementVNode)(`span`,h,[(0,s.createElementVNode)(`span`,g,(0,s.toDisplayString)(pe.value),1),L.value?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,_,(0,s.toDisplayString)(L.value),1)):(0,s.createCommentVNode)(``,!0),P.roleBadge?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,re,` (`+(0,s.toDisplayString)(P.roleBadge)+`)`,1)):(0,s.createCommentVNode)(``,!0)])],8,f)):((0,s.openBlock)(),(0,s.createElementBlock)(`button`,{key:1,type:`button`,class:`nb-user-menu__avatar`,title:P.user.email,"aria-label":P.roleBadge?`${A(`userMenu.ACCOUNT_MENU`)} (${P.roleBadge})`:A(`userMenu.ACCOUNT_MENU`),"aria-haspopup":`menu`,"aria-expanded":W.value,disabled:C.disabled,onClick:Y},[z.value?((0,s.openBlock)(),(0,s.createElementBlock)(`img`,{key:0,class:`nb-user-menu__picture`,src:P.user.picture??void 0,alt:``,onError:n[1]||=e=>R.value=!0},null,40,ae)):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[(0,s.createTextVNode)((0,s.toDisplayString)(K(P.user)),1)],64))],8,ie))]),((0,s.openBlock)(),(0,s.createBlock)(s.Teleport,{to:`body`},[(0,s.createVNode)(s.Transition,{name:`nb-user-menu-pop`},{default:(0,s.withCtx)(()=>[W.value?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,ref_key:`panelRef`,ref:U,class:`nb-user-menu__panel`,style:(0,s.normalizeStyle)(G.value),role:`menu`},[(0,s.createElementVNode)(`p`,oe,(0,s.toDisplayString)(A(`userMenu.SIGNED_IN_AS`)),1),(0,s.createElementVNode)(`p`,se,(0,s.toDisplayString)(P.user.email),1),P.roleBadge?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,ce,[(0,s.createVNode)(e.t,{name:(0,s.unref)(ne.regular),size:`sm`},null,8,[`name`]),(0,s.createTextVNode)(` `+(0,s.toDisplayString)(P.roleBadge),1)])):(0,s.createCommentVNode)(``,!0),C.showAccountActions?((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[n[3]||=(0,s.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),P.accounts&&P.accounts.length?((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,{key:0},(0,s.renderList)(P.accounts,t=>((0,s.openBlock)(),(0,s.createElementBlock)(`button`,{key:t.id,type:`button`,role:`menuitem`,class:(0,s.normalizeClass)([`nb-user-menu__account`,{"nb-user-menu__account--current":t.current}]),disabled:t.current,onClick:e=>he(t)},[(0,s.createElementVNode)(`span`,ue,[(0,s.createElementVNode)(`span`,de,(0,s.toDisplayString)(t.email),1),t.name?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,fe,(0,s.toDisplayString)(t.name),1)):(0,s.createCommentVNode)(``,!0)]),t.current?((0,s.openBlock)(),(0,s.createBlock)(e.t,{key:0,name:(0,s.unref)(ee.regular),size:`sm`,class:`nb-user-menu__check`},null,8,[`name`])):t.removable===!1?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(e.t,{key:1,name:(0,s.unref)(te.regular),size:`sm`,class:`nb-user-menu__remove`,title:A(`userMenu.REMOVE_ACCOUNT`),onClick:(0,s.withModifiers)(e=>ge(t),[`stop`])},null,8,[`name`,`title`,`onClick`]))],10,le))),128)):P.accountsUnknown?((0,s.openBlock)(),(0,s.createElementBlock)(`button`,{key:1,type:`button`,role:`menuitem`,class:`nb-user-menu__action`,onClick:_e},[(0,s.createVNode)(e.t,{name:(0,s.unref)(c.regular),size:`sm`},null,8,[`name`]),(0,s.createTextVNode)(` `+(0,s.toDisplayString)(A(`userMenu.SWITCH_ACCOUNT`)),1)])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`button`,{type:`button`,role:`menuitem`,class:`nb-user-menu__action`,onClick:ve},[(0,s.createVNode)(e.t,{name:(0,s.unref)(l.regular),size:`sm`},null,8,[`name`]),(0,s.createTextVNode)(` `+(0,s.toDisplayString)(A(`userMenu.USE_ANOTHER_ACCOUNT`)),1)])],64)):(0,s.createCommentVNode)(``,!0),P.showTheme?((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:2},[n[4]||=(0,s.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),(0,s.createElementVNode)(`div`,{class:`nb-user-menu__appearance`,role:`group`,"aria-labelledby":N},[(0,s.createElementVNode)(`p`,{id:N,class:`nb-user-menu__appearance-title`},(0,s.toDisplayString)(A(`userMenu.APPEARANCE`)),1),(0,s.createVNode)(a.t,{name:N,options:M.value,"model-value":(0,s.unref)(j).theme.value,"onUpdate:modelValue":n[2]||=e=>(0,s.unref)(j).setTheme(e)},null,8,[`options`,`model-value`])])],64)):(0,s.createCommentVNode)(``,!0),t.$slots.default?((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:3},[n[5]||=(0,s.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),(0,s.renderSlot)(t.$slots,`default`,{close:X})],64)):(0,s.createCommentVNode)(``,!0),n[7]||=(0,s.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),C.showProfile?((0,s.openBlock)(),(0,s.createElementBlock)(`button`,{key:4,type:`button`,role:`menuitem`,class:`nb-user-menu__action`,onClick:Z},[(0,s.createVNode)(e.t,{name:(0,s.unref)(u.regular),size:`sm`},null,8,[`name`]),(0,s.createTextVNode)(` `+(0,s.toDisplayString)(A(`userMenu.PROFILE`)),1)])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`button`,{type:`button`,role:`menuitem`,class:`nb-user-menu__action nb-user-menu__action--danger`,onClick:ye},[(0,s.createVNode)(e.t,{name:(0,s.unref)(d.regular),size:`sm`},null,8,[`name`]),(0,s.createTextVNode)(` `+(0,s.toDisplayString)(A(`userMenu.SIGN_OUT`)),1)]),P.brand===`none`?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:5},[n[6]||=(0,s.createElementVNode)(`div`,{class:`nb-user-menu__divider`,role:`separator`},null,-1),(0,s.renderSlot)(t.$slots,`brand`,{},()=>[(0,s.createElementVNode)(`p`,v,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(me.value,(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:t},[e.mark?((0,s.openBlock)(),(0,s.createBlock)(r.t,{key:0,size:13,class:`nb-user-menu__mark`})):(0,s.createCommentVNode)(``,!0),e.name?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,y,(0,s.toDisplayString)(e.text),1)):((0,s.openBlock)(),(0,s.createElementBlock)(`span`,b,(0,s.toDisplayString)(e.text),1))],64))),128))])])],64))],4)):(0,s.createCommentVNode)(``,!0)]),_:3})]))],2))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}});
|
package/dist/Video-D1WOYCYH.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useReducedMotion.composable.cjs`),n=require(`./Button-C0N1cyOQ.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/play`);i=e.n(i);let a=require(`@nubisco/ui/icons/pause`);a=e.n(a);var o=[`poster`,`src`,`loop`,`aria-label`,`aria-hidden`,`width`,`height`],s=(0,r.defineComponent)({__name:`Video`,props:{src:{},poster:{},mobileSrc:{default:void 0},mobileBreakpoint:{default:768},label:{default:void 0},width:{default:void 0},height:{default:void 0},fit:{default:`cover`},loop:{type:Boolean,default:!0},playLabel:{default:`Play video`},pauseLabel:{default:`Pause video`}},setup(e,{expose:s}){let c=e,l=(0,r.ref)(null),u=(0,r.ref)(null),d=(0,r.ref)(``),f=(0,r.ref)(!1),p=(0,r.computed)(()=>c.width&&c.height?`${c.width} / ${c.height}`:void 0);function m(){let e=t.prefersReducedMotion(),n=navigator.connection?.saveData;return!e&&!n}function h(){return window.matchMedia?.(`(max-width: ${c.mobileBreakpoint-.02}px)`).matches&&c.mobileSrc?c.mobileSrc:c.src}let g=!1,_=!1,v=null;async function y(){let e=u.value;if(e){d.value||(d.value=h(),await(0,r.nextTick)()),e.muted=!0;try{await e.play()}catch{}}}function b(){let e=u.value;e&&(f.value?(g=!0,e.pause()):(g=!1,y()))}return(0,r.onMounted)(()=>{let e=m();if(typeof IntersectionObserver>`u`){e&&y();return}v=new IntersectionObserver(([t])=>{_=t.isIntersecting,_&&e&&!g?y():!_&&f.value&&u.value?.pause()},{rootMargin:`200px 0px`}),l.value&&v.observe(l.value)}),(0,r.onBeforeUnmount)(()=>{v?.disconnect(),v=null}),s({playing:f,toggle:b}),(t,s)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{ref_key:`root`,ref:l,class:(0,r.normalizeClass)([`nb-video`,[`nb-video--${e.fit}`,{"nb-video--playing":f.value}]]),style:(0,r.normalizeStyle)(p.value?{aspectRatio:p.value}:void 0)},[(0,r.createElementVNode)(`video`,{ref_key:`video`,ref:u,class:`nb-video__media`,poster:e.poster,src:d.value||void 0,loop:e.loop,"aria-label":e.label||void 0,"aria-hidden":e.label?void 0:`true`,width:e.width,height:e.height,muted:``,playsinline:``,preload:`none`,disablepictureinpicture:``,onPlaying:s[0]||=e=>f.value=!0,onPause:s[1]||=e=>f.value=!1,onEnded:s[2]||=e=>f.value=!1},null,40,o),(0,r.createVNode)(n.t,{class:`nb-video__toggle`,variant:`secondary`,size:`sm`,icon:f.value?a:i,"aria-label":f.value?e.pauseLabel:e.playLabel,onClick:b},null,8,[`icon`,`aria-label`])],6))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
package/dist/Video-DrDqaCXl.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { prefersReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
|
|
2
|
-
import { t } from "./Button-CuwzIVWv.js";
|
|
3
|
-
import { computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, nextTick as s, normalizeClass as c, normalizeStyle as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p } from "vue";
|
|
4
|
-
import * as m from "@nubisco/ui/icons/play";
|
|
5
|
-
import * as h from "@nubisco/ui/icons/pause";
|
|
6
|
-
//#region src/components/Video.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var g = [
|
|
8
|
-
"poster",
|
|
9
|
-
"src",
|
|
10
|
-
"loop",
|
|
11
|
-
"aria-label",
|
|
12
|
-
"aria-hidden",
|
|
13
|
-
"width",
|
|
14
|
-
"height"
|
|
15
|
-
], _ = /* @__PURE__ */ o({
|
|
16
|
-
__name: "Video",
|
|
17
|
-
props: {
|
|
18
|
-
src: {},
|
|
19
|
-
poster: {},
|
|
20
|
-
mobileSrc: { default: void 0 },
|
|
21
|
-
mobileBreakpoint: { default: 768 },
|
|
22
|
-
label: { default: void 0 },
|
|
23
|
-
width: { default: void 0 },
|
|
24
|
-
height: { default: void 0 },
|
|
25
|
-
fit: { default: "cover" },
|
|
26
|
-
loop: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
playLabel: { default: "Play video" },
|
|
31
|
-
pauseLabel: { default: "Pause video" }
|
|
32
|
-
},
|
|
33
|
-
setup(o, { expose: _ }) {
|
|
34
|
-
let v = o, y = p(null), b = p(null), x = p(""), S = p(!1), C = n(() => v.width && v.height ? `${v.width} / ${v.height}` : void 0);
|
|
35
|
-
function w() {
|
|
36
|
-
let t = e(), n = navigator.connection?.saveData;
|
|
37
|
-
return !t && !n;
|
|
38
|
-
}
|
|
39
|
-
function T() {
|
|
40
|
-
return window.matchMedia?.(`(max-width: ${v.mobileBreakpoint - .02}px)`).matches && v.mobileSrc ? v.mobileSrc : v.src;
|
|
41
|
-
}
|
|
42
|
-
let E = !1, D = !1, O = null;
|
|
43
|
-
async function k() {
|
|
44
|
-
let e = b.value;
|
|
45
|
-
if (e) {
|
|
46
|
-
x.value || (x.value = T(), await s()), e.muted = !0;
|
|
47
|
-
try {
|
|
48
|
-
await e.play();
|
|
49
|
-
} catch {}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function A() {
|
|
53
|
-
let e = b.value;
|
|
54
|
-
e && (S.value ? (E = !0, e.pause()) : (E = !1, k()));
|
|
55
|
-
}
|
|
56
|
-
return d(() => {
|
|
57
|
-
let e = w();
|
|
58
|
-
if (typeof IntersectionObserver > "u") {
|
|
59
|
-
e && k();
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
O = new IntersectionObserver(([t]) => {
|
|
63
|
-
D = t.isIntersecting, D && e && !E ? k() : !D && S.value && b.value?.pause();
|
|
64
|
-
}, { rootMargin: "200px 0px" }), y.value && O.observe(y.value);
|
|
65
|
-
}), u(() => {
|
|
66
|
-
O?.disconnect(), O = null;
|
|
67
|
-
}), _({
|
|
68
|
-
playing: S,
|
|
69
|
-
toggle: A
|
|
70
|
-
}), (e, n) => (f(), r("div", {
|
|
71
|
-
ref_key: "root",
|
|
72
|
-
ref: y,
|
|
73
|
-
class: c(["nb-video", [`nb-video--${o.fit}`, { "nb-video--playing": S.value }]]),
|
|
74
|
-
style: l(C.value ? { aspectRatio: C.value } : void 0)
|
|
75
|
-
}, [i("video", {
|
|
76
|
-
ref_key: "video",
|
|
77
|
-
ref: b,
|
|
78
|
-
class: "nb-video__media",
|
|
79
|
-
poster: o.poster,
|
|
80
|
-
src: x.value || void 0,
|
|
81
|
-
loop: o.loop,
|
|
82
|
-
"aria-label": o.label || void 0,
|
|
83
|
-
"aria-hidden": o.label ? void 0 : "true",
|
|
84
|
-
width: o.width,
|
|
85
|
-
height: o.height,
|
|
86
|
-
muted: "",
|
|
87
|
-
playsinline: "",
|
|
88
|
-
preload: "none",
|
|
89
|
-
disablepictureinpicture: "",
|
|
90
|
-
onPlaying: n[0] ||= (e) => S.value = !0,
|
|
91
|
-
onPause: n[1] ||= (e) => S.value = !1,
|
|
92
|
-
onEnded: n[2] ||= (e) => S.value = !1
|
|
93
|
-
}, null, 40, g), a(t, {
|
|
94
|
-
class: "nb-video__toggle",
|
|
95
|
-
variant: "secondary",
|
|
96
|
-
size: "sm",
|
|
97
|
-
icon: S.value ? h : m,
|
|
98
|
-
"aria-label": S.value ? o.pauseLabel : o.playLabel,
|
|
99
|
-
onClick: A
|
|
100
|
-
}, null, 8, ["icon", "aria-label"])], 6));
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
//#endregion
|
|
104
|
-
export { _ as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./utils/tourTarget.helper.cjs`),n=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./utils/anchorPosition.helper.cjs`),o=require(`./Button-C0N1cyOQ.cjs`),ee=require(`./composables/useWalkthrough.composable.cjs`);let s=require(`vue`);var te=[`viewBox`],c=[`width`,`height`],ne=[`x`,`y`,`width`,`height`,`rx`],l=[`width`,`height`,`mask`],re=[`x`,`y`,`width`,`height`,`rx`],ie=[`aria-label`,`aria-labelledby`],ae={class:`nb-walkthrough--footer`},oe={class:`nb-walkthrough--progress`,"aria-live":`polite`},u={class:`nb-walkthrough--actions`},d=(0,s.defineComponent)({__name:`Walkthrough`,props:{walkthrough:{default:void 0},controller:{default:void 0},autoStart:{type:Boolean,default:!1},storage:{default:void 0},labels:{default:void 0},teleportTo:{default:`body`},closeOnScrim:{type:Boolean,default:!1},padding:{default:8}},emits:[`step-change`,`finish`,`skip`],setup(n,{expose:d,emit:f}){let p=n,m=f,h={id:``,version:1,steps:[]},g={back:`Back`,next:`Next`,skip:`Skip`,done:`Done`,progress:(e,t)=>`Step ${e} of ${t}`,dialog:`Product walkthrough`},_=p.controller??ee.useWalkthrough(()=>p.walkthrough??h,{storage:p.storage}),v=r.useStableId({}),y=`${v}-mask`,b=`${v}-title`,x=`${v}-body`,S=e.useReducedMotion(),{layerProps:C}=i.useSurfaceLayer({overlay:!0}),w=(0,s.ref)(null),T=(0,s.ref)(null),E=(0,s.ref)(null),D=(0,s.ref)(a.viewportSize()),O=(0,s.ref)(`bottom`),k=(0,s.ref)({top:0,left:0}),A=1,j=null,M=null,N=-1,P=(0,s.computed)(()=>_.step.value),F=(0,s.computed)(()=>_.stepIndex.value),I=(0,s.computed)(()=>_.stepCount.value),L=(0,s.computed)(()=>({...g,...p.labels??{}})),R=(0,s.computed)(()=>P.value?.padding??p.padding),z=(0,s.computed)(()=>{let e=E.value;if(!e)return null;let t=R.value,n=Math.max(0,e.left-t),r=Math.max(0,e.top-t);return{left:n,top:r,width:Math.min(D.value.width-n,e.width+t*2),height:Math.min(D.value.height-r,e.height+t*2)}}),B=(0,s.computed)(()=>Math.min(8,R.value+4)),V=(0,s.computed)(()=>{if(z.value)return{top:`${k.value.top}px`,left:`${k.value.left}px`}});function H(){let e=P.value;!e||N===F.value||(N=F.value,m(`step-change`,e,F.value))}function U(){D.value=a.viewportSize();let e=T.value;E.value=e&&e.isConnected?e.getBoundingClientRect():null,W()}function W(){let e=z.value,t=w.value;if(!e||!t)return;let n=t.getBoundingClientRect(),r=P.value?.placement??`auto`,i=r===`auto`?`bottom`:r,o=a.placeAnchored(e,{width:n.width,height:n.height},{side:i,gap:12,inset:16,viewport:D.value});O.value=o.side,k.value={top:o.top,left:o.left}}function G(e){M?.disconnect(),M=null,!(!e||typeof ResizeObserver>`u`)&&(M=new ResizeObserver(()=>U()),M.observe(e))}function K(e){e.scrollIntoView({block:`center`,inline:`center`,behavior:S.value?`auto`:`smooth`})}let q=0;async function J(e=!0){if(!_.active.value)return;let n=P.value;if(!n)return;if(!n.target){q=0,T.value=null,G(null),U();return}let r=t.resolveTourTarget(n.target);if(!t.isTargetVisible(r)&&e){if(await(0,s.nextTick)(),await new Promise(e=>requestAnimationFrame(e)),!_.active.value||P.value!==n)return;r=t.resolveTourTarget(n.target)}if(t.isTargetVisible(r)){q=0,T.value=r,G(r),K(r),U();return}let i=F.value+A;if(++q>I.value||i<0||i>=I.value){q=0,await Z();return}_.goTo(i)}function se(){let e=w.value;return e?Array.from(e.querySelectorAll(`button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)):[]}function ce(e){if(e.key===`Escape`){e.preventDefault(),Q();return}if(e.key!==`Tab`)return;let t=se();if(t.length===0){e.preventDefault(),w.value?.focus();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||i===w.value)?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r&&(e.preventDefault(),n.focus())}function le(){p.closeOnScrim&&Q()}function Y(){if(A=1,_.isLast.value){Z();return}_.next()}function X(){A=-1,_.back()}async function Z(){let e=_.walkthrough.value;await _.finish(),m(`finish`,e)}async function Q(){let e=_.walkthrough.value,t=F.value;await _.skip(),m(`skip`,e,t)}function ue(){window.addEventListener(`resize`,U),window.addEventListener(`scroll`,U,!0)}function $(){window.removeEventListener(`resize`,U),window.removeEventListener(`scroll`,U,!0)}return(0,s.watch)(()=>_.active.value,async e=>{e?(A=1,q=0,N=-1,j=document.activeElement??null,ue(),await(0,s.nextTick)(),await J(),w.value?.focus(),H()):($(),G(null),T.value=null,E.value=null,j?.focus?.(),j=null,N=-1)}),(0,s.watch)(()=>_.stepIndex.value,async()=>{_.active.value&&(H(),await J())}),p.autoStart&&!p.controller&&(0,s.nextTick)(()=>_.maybeAutoStart()),(0,s.onBeforeUnmount)(()=>{$(),G(null)}),d({start:_.start,restart:_.restart,next:_.next,back:_.back,skip:Q,finish:Z,goTo:_.goTo,active:_.active,stepIndex:_.stepIndex,controller:_}),(e,t)=>((0,s.openBlock)(),(0,s.createBlock)(s.Teleport,{to:n.teleportTo},[(0,s.unref)(_).active.value?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,class:(0,s.normalizeClass)([`nb-walkthrough`,{"nb-walkthrough--no-motion":(0,s.unref)(S)}])},[((0,s.openBlock)(),(0,s.createElementBlock)(`svg`,{class:`nb-walkthrough--scrim`,"aria-hidden":`true`,viewBox:`0 0 ${D.value.width} ${D.value.height}`,preserveAspectRatio:`none`,onClick:le},[(0,s.createElementVNode)(`defs`,null,[(0,s.createElementVNode)(`mask`,{id:y},[(0,s.createElementVNode)(`rect`,{x:`0`,y:`0`,width:D.value.width,height:D.value.height,fill:`white`},null,8,c),z.value?((0,s.openBlock)(),(0,s.createElementBlock)(`rect`,{key:0,x:z.value.left,y:z.value.top,width:z.value.width,height:z.value.height,rx:B.value,fill:`black`},null,8,ne)):(0,s.createCommentVNode)(``,!0)])]),(0,s.createElementVNode)(`rect`,{class:`nb-walkthrough--scrim-fill`,x:`0`,y:`0`,width:D.value.width,height:D.value.height,mask:`url(#${y})`},null,8,l),z.value?((0,s.openBlock)(),(0,s.createElementBlock)(`rect`,{key:0,class:`nb-walkthrough--ring`,x:z.value.left,y:z.value.top,width:z.value.width,height:z.value.height,rx:B.value},null,8,re)):(0,s.createCommentVNode)(``,!0)],8,te)),(0,s.createElementVNode)(`div`,(0,s.mergeProps)({ref_key:`popoverRef`,ref:w,class:[`nb-walkthrough--popover`,`nb-walkthrough--popover-${O.value}`,{"nb-walkthrough--popover-centered":!z.value}]},(0,s.unref)(C),{role:`dialog`,"aria-modal":`true`,"aria-label":L.value.dialog,"aria-labelledby":P.value?.title?b:void 0,"aria-describedby":x,style:V.value,tabindex:`-1`,onKeydown:ce}),[(0,s.renderSlot)(e.$slots,`header`,{step:P.value,index:F.value,total:I.value},()=>[P.value?.title?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,id:b,class:`nb-walkthrough--title`},(0,s.toDisplayString)(P.value.title),1)):(0,s.createCommentVNode)(``,!0)],!0),(0,s.createElementVNode)(`div`,{id:x,class:`nb-walkthrough--body`},[(0,s.renderSlot)(e.$slots,`step`,{step:P.value,index:F.value,total:I.value},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(P.value?.body),1)],!0)]),(0,s.createElementVNode)(`div`,ae,[(0,s.createElementVNode)(`p`,oe,(0,s.toDisplayString)(L.value.progress(F.value+1,I.value)),1),(0,s.renderSlot)(e.$slots,`actions`,{step:P.value,index:F.value,total:I.value,back:X,next:Y,skip:Q},()=>[(0,s.createElementVNode)(`div`,u,[(0,s.unref)(_).isLast.value?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(o.t,{key:0,variant:`ghost`,size:`sm`,onClick:Q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(L.value.skip),1)]),_:1})),(0,s.unref)(_).isFirst.value?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createBlock)(o.t,{key:1,variant:`secondary`,outlined:``,size:`sm`,onClick:X},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(L.value.back),1)]),_:1})),(0,s.createVNode)(o.t,{variant:`primary`,size:`sm`,onClick:Y},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)((0,s.unref)(_).isLast.value?L.value.done:L.value.next),1)]),_:1})])],!0)])],16,ie)],2)):(0,s.createCommentVNode)(``,!0)],8,[`to`]))}}),f=n.t(d,[[`__scopeId`,`data-v-1e2bc2dc`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
import { useReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
|
|
2
|
-
import { isTargetVisible as t, resolveTourTarget as n } from "./utils/tourTarget.helper.mjs";
|
|
3
|
-
import { t as r } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
4
|
-
import { useStableId as i } from "./composables/useStableId.composable.mjs";
|
|
5
|
-
import { useSurfaceLayer as a } from "./composables/useSurfaceLayer.composable.mjs";
|
|
6
|
-
import { placeAnchored as ee, viewportSize as o } from "./utils/anchorPosition.helper.mjs";
|
|
7
|
-
import { t as s } from "./Button-CuwzIVWv.js";
|
|
8
|
-
import { useWalkthrough as te } from "./composables/useWalkthrough.composable.mjs";
|
|
9
|
-
import { Teleport as ne, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as re, defineComponent as m, mergeProps as ie, nextTick as h, normalizeClass as ae, onBeforeUnmount as oe, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, unref as b, watch as se, withCtx as x } from "vue";
|
|
10
|
-
//#region src/components/Walkthrough.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var ce = ["viewBox"], le = ["width", "height"], ue = [
|
|
12
|
-
"x",
|
|
13
|
-
"y",
|
|
14
|
-
"width",
|
|
15
|
-
"height",
|
|
16
|
-
"rx"
|
|
17
|
-
], de = [
|
|
18
|
-
"width",
|
|
19
|
-
"height",
|
|
20
|
-
"mask"
|
|
21
|
-
], fe = [
|
|
22
|
-
"x",
|
|
23
|
-
"y",
|
|
24
|
-
"width",
|
|
25
|
-
"height",
|
|
26
|
-
"rx"
|
|
27
|
-
], pe = ["aria-label", "aria-labelledby"], me = { class: "nb-walkthrough--footer" }, he = {
|
|
28
|
-
class: "nb-walkthrough--progress",
|
|
29
|
-
"aria-live": "polite"
|
|
30
|
-
}, ge = { class: "nb-walkthrough--actions" }, S = /* @__PURE__ */ r(/* @__PURE__ */ m({
|
|
31
|
-
__name: "Walkthrough",
|
|
32
|
-
props: {
|
|
33
|
-
walkthrough: { default: void 0 },
|
|
34
|
-
controller: { default: void 0 },
|
|
35
|
-
autoStart: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !1
|
|
38
|
-
},
|
|
39
|
-
storage: { default: void 0 },
|
|
40
|
-
labels: { default: void 0 },
|
|
41
|
-
teleportTo: { default: "body" },
|
|
42
|
-
closeOnScrim: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
padding: { default: 8 }
|
|
47
|
-
},
|
|
48
|
-
emits: [
|
|
49
|
-
"step-change",
|
|
50
|
-
"finish",
|
|
51
|
-
"skip"
|
|
52
|
-
],
|
|
53
|
-
setup(r, { expose: m, emit: S }) {
|
|
54
|
-
let C = r, w = S, _e = {
|
|
55
|
-
id: "",
|
|
56
|
-
version: 1,
|
|
57
|
-
steps: []
|
|
58
|
-
}, ve = {
|
|
59
|
-
back: "Back",
|
|
60
|
-
next: "Next",
|
|
61
|
-
skip: "Skip",
|
|
62
|
-
done: "Done",
|
|
63
|
-
progress: (e, t) => `Step ${e} of ${t}`,
|
|
64
|
-
dialog: "Product walkthrough"
|
|
65
|
-
}, T = C.controller ?? te(() => C.walkthrough ?? _e, { storage: C.storage }), E = i({}), D = `${E}-mask`, O = `${E}-title`, k = `${E}-body`, A = e(), { layerProps: ye } = a({ overlay: !0 }), j = _(null), M = _(null), N = _(null), P = _(o()), F = _("bottom"), I = _({
|
|
66
|
-
top: 0,
|
|
67
|
-
left: 0
|
|
68
|
-
}), L = 1, R = null, z = null, B = -1, V = c(() => T.step.value), H = c(() => T.stepIndex.value), U = c(() => T.stepCount.value), W = c(() => ({
|
|
69
|
-
...ve,
|
|
70
|
-
...C.labels ?? {}
|
|
71
|
-
})), G = c(() => V.value?.padding ?? C.padding), K = c(() => {
|
|
72
|
-
let e = N.value;
|
|
73
|
-
if (!e) return null;
|
|
74
|
-
let t = G.value, n = Math.max(0, e.left - t), r = Math.max(0, e.top - t);
|
|
75
|
-
return {
|
|
76
|
-
left: n,
|
|
77
|
-
top: r,
|
|
78
|
-
width: Math.min(P.value.width - n, e.width + t * 2),
|
|
79
|
-
height: Math.min(P.value.height - r, e.height + t * 2)
|
|
80
|
-
};
|
|
81
|
-
}), be = c(() => Math.min(8, G.value + 4)), xe = c(() => {
|
|
82
|
-
if (K.value) return {
|
|
83
|
-
top: `${I.value.top}px`,
|
|
84
|
-
left: `${I.value.left}px`
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
function Se() {
|
|
88
|
-
let e = V.value;
|
|
89
|
-
!e || B === H.value || (B = H.value, w("step-change", e, H.value));
|
|
90
|
-
}
|
|
91
|
-
function q() {
|
|
92
|
-
P.value = o();
|
|
93
|
-
let e = M.value;
|
|
94
|
-
N.value = e && e.isConnected ? e.getBoundingClientRect() : null, Ce();
|
|
95
|
-
}
|
|
96
|
-
function Ce() {
|
|
97
|
-
let e = K.value, t = j.value;
|
|
98
|
-
if (!e || !t) return;
|
|
99
|
-
let n = t.getBoundingClientRect(), r = V.value?.placement ?? "auto", i = r === "auto" ? "bottom" : r, a = ee(e, {
|
|
100
|
-
width: n.width,
|
|
101
|
-
height: n.height
|
|
102
|
-
}, {
|
|
103
|
-
side: i,
|
|
104
|
-
gap: 12,
|
|
105
|
-
inset: 16,
|
|
106
|
-
viewport: P.value
|
|
107
|
-
});
|
|
108
|
-
F.value = a.side, I.value = {
|
|
109
|
-
top: a.top,
|
|
110
|
-
left: a.left
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function J(e) {
|
|
114
|
-
z?.disconnect(), z = null, !(!e || typeof ResizeObserver > "u") && (z = new ResizeObserver(() => q()), z.observe(e));
|
|
115
|
-
}
|
|
116
|
-
function we(e) {
|
|
117
|
-
e.scrollIntoView({
|
|
118
|
-
block: "center",
|
|
119
|
-
inline: "center",
|
|
120
|
-
behavior: A.value ? "auto" : "smooth"
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
let Y = 0;
|
|
124
|
-
async function X(e = !0) {
|
|
125
|
-
if (!T.active.value) return;
|
|
126
|
-
let r = V.value;
|
|
127
|
-
if (!r) return;
|
|
128
|
-
if (!r.target) {
|
|
129
|
-
Y = 0, M.value = null, J(null), q();
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
let i = n(r.target);
|
|
133
|
-
if (!t(i) && e) {
|
|
134
|
-
if (await h(), await new Promise((e) => requestAnimationFrame(e)), !T.active.value || V.value !== r) return;
|
|
135
|
-
i = n(r.target);
|
|
136
|
-
}
|
|
137
|
-
if (t(i)) {
|
|
138
|
-
Y = 0, M.value = i, J(i), we(i), q();
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
let a = H.value + L;
|
|
142
|
-
if (++Y > U.value || a < 0 || a >= U.value) {
|
|
143
|
-
Y = 0, await Z();
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
T.goTo(a);
|
|
147
|
-
}
|
|
148
|
-
function Te() {
|
|
149
|
-
let e = j.value;
|
|
150
|
-
return e ? Array.from(e.querySelectorAll("button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])")) : [];
|
|
151
|
-
}
|
|
152
|
-
function Ee(e) {
|
|
153
|
-
if (e.key === "Escape") {
|
|
154
|
-
e.preventDefault(), Q();
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
if (e.key !== "Tab") return;
|
|
158
|
-
let t = Te();
|
|
159
|
-
if (t.length === 0) {
|
|
160
|
-
e.preventDefault(), j.value?.focus();
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
164
|
-
e.shiftKey && (i === n || i === j.value) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
|
|
165
|
-
}
|
|
166
|
-
function De() {
|
|
167
|
-
C.closeOnScrim && Q();
|
|
168
|
-
}
|
|
169
|
-
function Oe() {
|
|
170
|
-
if (L = 1, T.isLast.value) {
|
|
171
|
-
Z();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
T.next();
|
|
175
|
-
}
|
|
176
|
-
function ke() {
|
|
177
|
-
L = -1, T.back();
|
|
178
|
-
}
|
|
179
|
-
async function Z() {
|
|
180
|
-
let e = T.walkthrough.value;
|
|
181
|
-
await T.finish(), w("finish", e);
|
|
182
|
-
}
|
|
183
|
-
async function Q() {
|
|
184
|
-
let e = T.walkthrough.value, t = H.value;
|
|
185
|
-
await T.skip(), w("skip", e, t);
|
|
186
|
-
}
|
|
187
|
-
function Ae() {
|
|
188
|
-
window.addEventListener("resize", q), window.addEventListener("scroll", q, !0);
|
|
189
|
-
}
|
|
190
|
-
function $() {
|
|
191
|
-
window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0);
|
|
192
|
-
}
|
|
193
|
-
return se(() => T.active.value, async (e) => {
|
|
194
|
-
e ? (L = 1, Y = 0, B = -1, R = document.activeElement ?? null, Ae(), await h(), await X(), j.value?.focus(), Se()) : ($(), J(null), M.value = null, N.value = null, R?.focus?.(), R = null, B = -1);
|
|
195
|
-
}), se(() => T.stepIndex.value, async () => {
|
|
196
|
-
T.active.value && (Se(), await X());
|
|
197
|
-
}), C.autoStart && !C.controller && h(() => T.maybeAutoStart()), oe(() => {
|
|
198
|
-
$(), J(null);
|
|
199
|
-
}), m({
|
|
200
|
-
start: T.start,
|
|
201
|
-
restart: T.restart,
|
|
202
|
-
next: T.next,
|
|
203
|
-
back: T.back,
|
|
204
|
-
skip: Q,
|
|
205
|
-
finish: Z,
|
|
206
|
-
goTo: T.goTo,
|
|
207
|
-
active: T.active,
|
|
208
|
-
stepIndex: T.stepIndex,
|
|
209
|
-
controller: T
|
|
210
|
-
}), (e, t) => (g(), l(ne, { to: r.teleportTo }, [b(T).active.value ? (g(), d("div", {
|
|
211
|
-
key: 0,
|
|
212
|
-
class: ae(["nb-walkthrough", { "nb-walkthrough--no-motion": b(A) }])
|
|
213
|
-
}, [(g(), d("svg", {
|
|
214
|
-
class: "nb-walkthrough--scrim",
|
|
215
|
-
"aria-hidden": "true",
|
|
216
|
-
viewBox: `0 0 ${P.value.width} ${P.value.height}`,
|
|
217
|
-
preserveAspectRatio: "none",
|
|
218
|
-
onClick: De
|
|
219
|
-
}, [
|
|
220
|
-
f("defs", null, [f("mask", { id: D }, [f("rect", {
|
|
221
|
-
x: "0",
|
|
222
|
-
y: "0",
|
|
223
|
-
width: P.value.width,
|
|
224
|
-
height: P.value.height,
|
|
225
|
-
fill: "white"
|
|
226
|
-
}, null, 8, le), K.value ? (g(), d("rect", {
|
|
227
|
-
key: 0,
|
|
228
|
-
x: K.value.left,
|
|
229
|
-
y: K.value.top,
|
|
230
|
-
width: K.value.width,
|
|
231
|
-
height: K.value.height,
|
|
232
|
-
rx: be.value,
|
|
233
|
-
fill: "black"
|
|
234
|
-
}, null, 8, ue)) : u("", !0)])]),
|
|
235
|
-
f("rect", {
|
|
236
|
-
class: "nb-walkthrough--scrim-fill",
|
|
237
|
-
x: "0",
|
|
238
|
-
y: "0",
|
|
239
|
-
width: P.value.width,
|
|
240
|
-
height: P.value.height,
|
|
241
|
-
mask: `url(#${D})`
|
|
242
|
-
}, null, 8, de),
|
|
243
|
-
K.value ? (g(), d("rect", {
|
|
244
|
-
key: 0,
|
|
245
|
-
class: "nb-walkthrough--ring",
|
|
246
|
-
x: K.value.left,
|
|
247
|
-
y: K.value.top,
|
|
248
|
-
width: K.value.width,
|
|
249
|
-
height: K.value.height,
|
|
250
|
-
rx: be.value
|
|
251
|
-
}, null, 8, fe)) : u("", !0)
|
|
252
|
-
], 8, ce)), f("div", ie({
|
|
253
|
-
ref_key: "popoverRef",
|
|
254
|
-
ref: j,
|
|
255
|
-
class: [
|
|
256
|
-
"nb-walkthrough--popover",
|
|
257
|
-
`nb-walkthrough--popover-${F.value}`,
|
|
258
|
-
{ "nb-walkthrough--popover-centered": !K.value }
|
|
259
|
-
]
|
|
260
|
-
}, b(ye), {
|
|
261
|
-
role: "dialog",
|
|
262
|
-
"aria-modal": "true",
|
|
263
|
-
"aria-label": W.value.dialog,
|
|
264
|
-
"aria-labelledby": V.value?.title ? O : void 0,
|
|
265
|
-
"aria-describedby": k,
|
|
266
|
-
style: xe.value,
|
|
267
|
-
tabindex: "-1",
|
|
268
|
-
onKeydown: Ee
|
|
269
|
-
}), [
|
|
270
|
-
v(e.$slots, "header", {
|
|
271
|
-
step: V.value,
|
|
272
|
-
index: H.value,
|
|
273
|
-
total: U.value
|
|
274
|
-
}, () => [V.value?.title ? (g(), d("p", {
|
|
275
|
-
key: 0,
|
|
276
|
-
id: O,
|
|
277
|
-
class: "nb-walkthrough--title"
|
|
278
|
-
}, y(V.value.title), 1)) : u("", !0)], !0),
|
|
279
|
-
f("div", {
|
|
280
|
-
id: k,
|
|
281
|
-
class: "nb-walkthrough--body"
|
|
282
|
-
}, [v(e.$slots, "step", {
|
|
283
|
-
step: V.value,
|
|
284
|
-
index: H.value,
|
|
285
|
-
total: U.value
|
|
286
|
-
}, () => [p(y(V.value?.body), 1)], !0)]),
|
|
287
|
-
f("div", me, [f("p", he, y(W.value.progress(H.value + 1, U.value)), 1), v(e.$slots, "actions", {
|
|
288
|
-
step: V.value,
|
|
289
|
-
index: H.value,
|
|
290
|
-
total: U.value,
|
|
291
|
-
back: ke,
|
|
292
|
-
next: Oe,
|
|
293
|
-
skip: Q
|
|
294
|
-
}, () => [f("div", ge, [
|
|
295
|
-
b(T).isLast.value ? u("", !0) : (g(), l(s, {
|
|
296
|
-
key: 0,
|
|
297
|
-
variant: "ghost",
|
|
298
|
-
size: "sm",
|
|
299
|
-
onClick: Q
|
|
300
|
-
}, {
|
|
301
|
-
default: x(() => [p(y(W.value.skip), 1)]),
|
|
302
|
-
_: 1
|
|
303
|
-
})),
|
|
304
|
-
b(T).isFirst.value ? u("", !0) : (g(), l(s, {
|
|
305
|
-
key: 1,
|
|
306
|
-
variant: "secondary",
|
|
307
|
-
outlined: "",
|
|
308
|
-
size: "sm",
|
|
309
|
-
onClick: ke
|
|
310
|
-
}, {
|
|
311
|
-
default: x(() => [p(y(W.value.back), 1)]),
|
|
312
|
-
_: 1
|
|
313
|
-
})),
|
|
314
|
-
re(s, {
|
|
315
|
-
variant: "primary",
|
|
316
|
-
size: "sm",
|
|
317
|
-
onClick: Oe
|
|
318
|
-
}, {
|
|
319
|
-
default: x(() => [p(y(b(T).isLast.value ? W.value.done : W.value.next), 1)]),
|
|
320
|
-
_: 1
|
|
321
|
-
})
|
|
322
|
-
])], !0)])
|
|
323
|
-
], 16, pe)], 2)) : u("", !0)], 8, ["to"]));
|
|
324
|
-
}
|
|
325
|
-
}), [["__scopeId", "data-v-1e2bc2dc"]]);
|
|
326
|
-
//#endregion
|
|
327
|
-
export { S as t };
|