@nubisco/ui 5.31.0 → 5.32.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/{ActionGroup-BepLbLUB.js → ActionGroup-BTCKhtoQ.js} +1 -1
- package/dist/{ActionGroup-CPJcdC_x.cjs → ActionGroup-Bke1hEXW.cjs} +1 -1
- package/dist/{AiLabel-CGxUTm-X.js → AiLabel--bFL3RGP.js} +1 -1
- package/dist/{AiLabel-BMeJMSLm.cjs → AiLabel-oCXAwOV7.cjs} +1 -1
- package/dist/{AiProvider-ueSRHZ4d.cjs → AiProvider-Hcn5HI7d.cjs} +1 -1
- package/dist/{AiProvider-CkzXTd_m.js → AiProvider-e52qwD9B.js} +6 -6
- package/dist/{AiUsage-CCMQdmZv.cjs → AiUsage-62kxTT8F.cjs} +1 -1
- package/dist/{AiUsage-q_WU2toP.js → AiUsage-D1xgxa2C.js} +2 -2
- package/dist/{BackToTop-Bep47dq4.cjs → BackToTop-BekeNBkd.cjs} +1 -1
- package/dist/{BackToTop-DwInsaIf.js → BackToTop-CgJdrehl.js} +1 -1
- package/dist/{BarChart-CV1GzXgj.cjs → BarChart-Ci0qaOZm.cjs} +1 -1
- package/dist/{BarChart-DWH40Q0_.js → BarChart-DF9C-09O.js} +4 -4
- package/dist/{Blueprint-ZklSOKvo.cjs → Blueprint-CrscH3bU.cjs} +1 -1
- package/dist/{Blueprint-CztF1C7M.js → Blueprint-DGqjK9oB.js} +2 -2
- package/dist/{BlueprintCard-DfbiDxaX.cjs → BlueprintCard-CRcMUcbC.cjs} +1 -1
- package/dist/{BlueprintCard-DeQe5F9O.js → BlueprintCard-CrLvovri.js} +1 -1
- package/dist/{BlueprintControls-DqzA7vVR.cjs → BlueprintControls-CSuknRl_.cjs} +1 -1
- package/dist/{BlueprintControls-OPbXEOlE.js → BlueprintControls-CoI6YQ95.js} +1 -1
- package/dist/{Board-CoxZg27T.cjs → Board-C4pvwydQ.cjs} +1 -1
- package/dist/{Board-CTjk-pTy.js → Board-Dnk3Sn93.js} +1 -1
- package/dist/{Briefing-Ce2nPMi-.js → Briefing-B3DkTnx2.js} +3 -3
- package/dist/{Briefing-B_D0X4pk.cjs → Briefing-j9BVOjgG.cjs} +1 -1
- package/dist/{BriefingDestination-D_IHVo71.js → BriefingDestination-BSjBDX-4.js} +1 -1
- package/dist/{BriefingDestination-Md4A2sPI.cjs → BriefingDestination-Bjo062E8.cjs} +1 -1
- package/dist/{Button-Cq9dEeHz.js → Button-BHlNXmBr.js} +1 -1
- package/dist/{Button-CbQyG-jg.cjs → Button-bQHEUhzc.cjs} +1 -1
- package/dist/Card-4l_DbIKC.cjs +1 -0
- package/dist/Card-BBXSjH58.js +74 -0
- package/dist/Card.link-CPtMC-Hu.cjs +1 -0
- package/dist/Card.link-CfeswzHY.js +37 -0
- package/dist/{Checkbox-Cj70wwUV.js → Checkbox-ColjurT5.js} +1 -1
- package/dist/{Checkbox-B0VPSJBY.cjs → Checkbox-hoojePrb.cjs} +1 -1
- package/dist/{CheckboxGroup-CzpbYjaA.js → CheckboxGroup-B6UmmUpN.js} +3 -3
- package/dist/{CheckboxGroup-CzhomyRH.cjs → CheckboxGroup-DRTRfYnm.cjs} +1 -1
- package/dist/{ColorStrip-C6KK7RMa.js → ColorStrip-BU-ulOHD.js} +2 -2
- package/dist/{ColorStrip-CjNDptlR.cjs → ColorStrip-BYyRIRcm.cjs} +1 -1
- package/dist/{Confirm-CpufclnJ.js → Confirm-D4efGS9N.js} +4 -4
- package/dist/{Confirm-9xk3l58e.cjs → Confirm-dbr67RaT.cjs} +1 -1
- package/dist/{CopyButton-rEPzSx4v.cjs → CopyButton-BRRmpFuP.cjs} +1 -1
- package/dist/{CopyButton-DRpVCGXL.js → CopyButton-fbE_I72_.js} +1 -1
- package/dist/{DataTable-OfThpfks.cjs → DataTable-CEn_t_gK.cjs} +1 -1
- package/dist/{DataTable-7mjrUxT9.js → DataTable-Crff50H9.js} +3 -3
- package/dist/{DatePicker-DIdEzzsG.cjs → DatePicker-BE8UNh5e.cjs} +1 -1
- package/dist/{DatePicker-ZiWlM0Ee.js → DatePicker-DdC1K_r4.js} +3 -3
- package/dist/{FileUploader-C9UH-Z55.js → FileUploader-83cZPW3H.js} +2 -2
- package/dist/{FileUploader-CBymiita.cjs → FileUploader-DwuQVCjI.cjs} +1 -1
- package/dist/{Form-BPVpxTZQ.js → Form-C6D7J3uE.js} +1 -1
- package/dist/{Form-BeYswpJM.cjs → Form-CCIMliw5.cjs} +1 -1
- package/dist/{GanttChart-DSiFcLIL.cjs → GanttChart-C2ql59iv.cjs} +1 -1
- package/dist/{GanttChart-CBNjVceP.js → GanttChart-tHaks3Qu.js} +3 -3
- package/dist/{ImageCropper-BC4pRMRj.js → ImageCropper-BdB5u2KL.js} +2 -2
- package/dist/{ImageCropper-BIDxE4N-.cjs → ImageCropper-ujxFwNFt.cjs} +1 -1
- package/dist/{InlineLoading-C06ETzoT.js → InlineLoading-Cs5QZd9l.js} +1 -1
- package/dist/{InlineLoading-DdgaHvhk.cjs → InlineLoading-DTni8I9v.cjs} +1 -1
- package/dist/{InterpolationChart-CW6jsxbG.cjs → InterpolationChart-CezKg7nG.cjs} +1 -1
- package/dist/{InterpolationChart-B5c9PPgm.js → InterpolationChart-x2yvZUFf.js} +3 -3
- package/dist/{LineChart-DrEv3pAe.js → LineChart-A2so8GBH.js} +4 -4
- package/dist/{LineChart-BceHLI2r.cjs → LineChart-DnYgeNPe.cjs} +1 -1
- package/dist/{Modal-Dffb6fJW.cjs → Modal-B5o-iCST.cjs} +1 -1
- package/dist/{Modal-BrnJwgh5.js → Modal-DmNuqKOf.js} +2 -2
- package/dist/{NotificationCenter-DMIqGkxv.js → NotificationCenter-3a6Ka6f0.js} +5 -5
- package/dist/{NotificationCenter-_v_X9zLG.cjs → NotificationCenter-BdQvSMWC.cjs} +1 -1
- package/dist/{NumberInput-BwiFF9bx.js → NumberInput-DgjZDq0n.js} +2 -2
- package/dist/{NumberInput-BooE-zqh.cjs → NumberInput-DpPVxENr.cjs} +1 -1
- package/dist/{Pagination-DX4XgQZM.cjs → Pagination-DC0orqR2.cjs} +1 -1
- package/dist/{Pagination-D5By9-m3.js → Pagination-R0xsDurI.js} +2 -2
- package/dist/{PieChart-njhwQKaO.cjs → PieChart-C3MInQWP.cjs} +1 -1
- package/dist/{PieChart-DaskwoU5.js → PieChart-DnGl86Lc.js} +3 -3
- package/dist/ProgressBar-CnVdi3l4.cjs +1 -0
- package/dist/{ProgressBar-ClKgPiWo.js → ProgressBar-DFtOp3I-.js} +8 -4
- package/dist/{Radio-CFAdCHBt.js → Radio-CgsnwzDy.js} +3 -3
- package/dist/{Radio-D7vxGglR.cjs → Radio-DYXyO8tN.cjs} +1 -1
- package/dist/{Select-CHuZfqLt.cjs → Select-CjkBXtFi.cjs} +1 -1
- package/dist/{Select-CwO5aX8j.js → Select-Rt3Y2VD4.js} +3 -3
- package/dist/{Shell-qpPhxpqT.js → Shell-BUqkz67b.js} +1 -1
- package/dist/{Shell-CxZZhH9l.cjs → Shell-CixU-_Lh.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-xbeMvxja.js → SidebarCollapseToggle-1Od8XvzB.js} +2 -2
- package/dist/{SidebarCollapseToggle-CcxDjKZU.cjs → SidebarCollapseToggle-D3upA4VD.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-B5QC_zBy.js → SidebarHeaderToggle-BFxmHAl9.js} +1 -1
- package/dist/{SidebarHeaderToggle-CuYM063E.cjs → SidebarHeaderToggle-CHkcVjY7.cjs} +1 -1
- package/dist/{Skeleton-Bc9jsinl.cjs → Skeleton-CSRjBPVt.cjs} +1 -1
- package/dist/{Skeleton-C3VaNLNl.js → Skeleton-TgkyQXSq.js} +1 -1
- package/dist/{Slider-Ci5TU4P4.cjs → Slider-NUU1SB6V.cjs} +1 -1
- package/dist/{Slider-BtsElA6K.js → Slider-YLBEViRc.js} +4 -4
- package/dist/{Spinner-JayAXEyd.cjs → Spinner-BPC4GV2R.cjs} +1 -1
- package/dist/{Spinner-C5ouuwn-.js → Spinner-DT8nD53U.js} +1 -1
- package/dist/Stat-CHBimwPd.cjs +1 -0
- package/dist/Stat-DqRpuO4B.js +101 -0
- package/dist/{Stepper-C9eHMZ8V.cjs → Stepper-CHRsH26g.cjs} +1 -1
- package/dist/{Stepper-BFdO3sQI.js → Stepper-Do9WOdhu.js} +1 -1
- package/dist/{StepperStep-Byw4EBRA.cjs → StepperStep-8Z1ERb7I.cjs} +1 -1
- package/dist/{StepperStep-DSr3MyH5.js → StepperStep-AGFO5cKL.js} +1 -1
- package/dist/SuggestionList-BdFhF0fM.cjs +1 -0
- package/dist/SuggestionList-CTJEWb2x.js +170 -0
- package/dist/{Switch-a73y1wiu.cjs → Switch-BNIi6Xxq.cjs} +1 -1
- package/dist/{Switch-DS297b1b.js → Switch-CZUy_hrg.js} +2 -2
- package/dist/{TableOfContents-DigLeDNO.cjs → TableOfContents-BKRPPea4.cjs} +1 -1
- package/dist/{TableOfContents-VZjSntV4.js → TableOfContents-DP9O7w7I.js} +1 -1
- package/dist/{Tabs-DEq0xEZB.js → Tabs-C-vp8-s1.js} +1 -1
- package/dist/{Tabs-DYtk5VC-.cjs → Tabs-CNZ3LlV1.cjs} +1 -1
- package/dist/TextInput-BaRumauo.js +293 -0
- package/dist/TextInput-bj61DMdd.cjs +2 -0
- package/dist/TextInput.context-kCqQ5HWv.cjs +1 -0
- package/dist/TextInput.context-qkmg5Mpm.js +4 -0
- package/dist/{Toaster-uheAMTLu.js → Toaster-BHcDHheK.js} +1 -1
- package/dist/{Toaster-tkwHvYWX.cjs → Toaster-BkxXz6XR.cjs} +1 -1
- package/dist/{Tree-948eRw61.js → Tree-B0-bRZLF.js} +1 -1
- package/dist/{Tree-r1tGxoQV.cjs → Tree-DHLVF8eV.cjs} +1 -1
- package/dist/{TreeNode-C-APuzeJ.js → TreeNode-CjXf_kJH.js} +1 -1
- package/dist/{TreeNode-CXIk7R6w.cjs → TreeNode-ixiFKZpi.cjs} +1 -1
- package/dist/{UserMenu-4X_d62Uo.cjs → UserMenu-1BiJ1Q6k.cjs} +1 -1
- package/dist/{UserMenu-B9WJ5t5y.js → UserMenu-D09PImNx.js} +3 -3
- package/dist/{Video-C6KUqrBg.js → Video-C8s9kdCW.js} +1 -1
- package/dist/{Video-B-RuZL-9.cjs → Video-D1sAapY7.cjs} +1 -1
- package/dist/{Walkthrough-BO9mRfuC.cjs → Walkthrough-B5MWEfO0.cjs} +1 -1
- package/dist/{Walkthrough-BA-MrcaO.js → Walkthrough-BMiPIGlt.js} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +146 -142
- package/dist/component-styles.json +8 -0
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/AiUsage.cjs +1 -1
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- 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/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +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/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.link.d.ts +38 -0
- package/dist/components/Card.link.d.ts.map +1 -0
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Card.vue.d.ts +1 -0
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.d.ts +10 -2
- 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/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/EmptyState.cjs +1 -1
- package/dist/components/EmptyState.mjs +1 -1
- package/dist/components/Field.cjs +1 -1
- package/dist/components/Field.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/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/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/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/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/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/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/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/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.d.ts +7 -0
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/ProgressBar.vue.d.ts +1 -0
- package/dist/components/ProgressBar.vue.d.ts.map +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Radio.vue.d.ts.map +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/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/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.mjs +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 -0
- package/dist/components/Stat.d.ts +57 -0
- package/dist/components/Stat.mjs +2 -0
- package/dist/components/Stat.vue.d.ts +38 -0
- package/dist/components/Stat.vue.d.ts.map +1 -0
- 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/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -0
- package/dist/components/SuggestionList.d.ts +37 -0
- package/dist/components/SuggestionList.mjs +2 -0
- package/dist/components/SuggestionList.vue.d.ts +35 -0
- package/dist/components/SuggestionList.vue.d.ts.map +1 -0
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.context.d.ts +13 -0
- package/dist/components/TextInput.context.d.ts.map +1 -0
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +3 -1
- 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/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- 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/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/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 +2 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +2 -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/global.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +113 -111
- package/dist/main.d.ts +4 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/FileUploader.css +1 -1
- package/dist/styles/ProgressBar.css +1 -1
- package/dist/styles/Radio.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/Stat.css +1 -0
- package/dist/styles/SuggestionList.css +1 -0
- package/dist/styles/TextInput.css +1 -1
- package/dist/ui.css +9 -7
- package/package.json +1 -1
- package/src/styles/_reset.scss +6 -1
- package/src/styles/_theme-api.scss +21 -0
- package/src/styles/_theme.scss +43 -3
- package/src/styles/logic/_ink.scss +34 -0
- package/dist/Card-BqIF-svL.js +0 -78
- package/dist/Card-Xmv6oz9a.cjs +0 -1
- package/dist/ProgressBar-DPMCRM1f.cjs +0 -1
- package/dist/TextInput-DmCYZgG0.cjs +0 -2
- package/dist/TextInput-HwIhSOJD.js +0 -295
- /package/dist/{Avatar-BpPczEa8.cjs → Avatar-DMTs2BnK.cjs} +0 -0
- /package/dist/{Avatar-BibgBZuN.js → Avatar-EkPppXcU.js} +0 -0
- /package/dist/{Badge-D6nlcs4F.cjs → Badge-Ce3NRrp_.cjs} +0 -0
- /package/dist/{Badge-DJx3RZxk.js → Badge-D37sr-14.js} +0 -0
- /package/dist/{Banner-r_cdQAMp.js → Banner-Czz07yca.js} +0 -0
- /package/dist/{Banner-DQyHNDEP.cjs → Banner-S8WqTTYP.cjs} +0 -0
- /package/dist/{Blueprint.context-C-rwu3ut.js → Blueprint.context-BOP7aLQl.js} +0 -0
- /package/dist/{Blueprint.context-BJFr4pG6.cjs → Blueprint.context-C0sg1sbm.cjs} +0 -0
- /package/dist/{BlueprintBackground-oSRK8gQO.cjs → BlueprintBackground-BpkT_8A8.cjs} +0 -0
- /package/dist/{BlueprintBackground-EPvpMCXy.js → BlueprintBackground-Ez4ICRal.js} +0 -0
- /package/dist/{BlueprintMinimap-CG62ddGj.cjs → BlueprintMinimap-CWmys37d.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CQ_fY0-L.js → BlueprintMinimap-zXf1g5UN.js} +0 -0
- /package/dist/{BottomPanel-YpR9NTLe.cjs → BottomPanel-D8z92-SS.cjs} +0 -0
- /package/dist/{BottomPanel-woivIctS.js → BottomPanel-xfSCWeN2.js} +0 -0
- /package/dist/{Breadcrumbs-B0nEpUik.js → Breadcrumbs-DGcdCThx.js} +0 -0
- /package/dist/{Breadcrumbs-B8zyUzRM.cjs → Breadcrumbs-vjfN-lDP.cjs} +0 -0
- /package/dist/{Calendar-C2KlJvo5.js → Calendar-BdPVR00d.js} +0 -0
- /package/dist/{Calendar-BPYKfErK.cjs → Calendar-Dg3g3h7z.cjs} +0 -0
- /package/dist/{CardGrid-BbGLqQmb.cjs → CardGrid-DYF5LaKh.cjs} +0 -0
- /package/dist/{CardGrid-CphjVIvE.js → CardGrid-MzpKRH7W.js} +0 -0
- /package/dist/{ChartLegend-BtBKVnH3.js → ChartLegend-BythwRMJ.js} +0 -0
- /package/dist/{ChartLegend-ndpGucTZ.cjs → ChartLegend-DGUo_MYi.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-BWseGFxY.js → CheckboxGroup.context-BXBbxCqM.js} +0 -0
- /package/dist/{CheckboxGroup.context-DPq5hmH0.cjs → CheckboxGroup.context-Cq9keYoj.cjs} +0 -0
- /package/dist/{CommandPalette-iMOtCNQy.cjs → CommandPalette-CsFZYJBG.cjs} +0 -0
- /package/dist/{CommandPalette-DfWRSIQ7.js → CommandPalette-DTl9rvF0.js} +0 -0
- /package/dist/{DefinitionList-COgbbyRS.cjs → DefinitionList-DQja72sQ.cjs} +0 -0
- /package/dist/{DefinitionList-Xn-f_QhT.js → DefinitionList-DbIcRjHH.js} +0 -0
- /package/dist/{DefinitionListItem-ZRjLrhaI.js → DefinitionListItem-Ci0YYnKM.js} +0 -0
- /package/dist/{DefinitionListItem-B4bGJJJj.cjs → DefinitionListItem-Cre5iJWK.cjs} +0 -0
- /package/dist/{DragHandle-DCm6Mtv9.js → DragHandle-CBfcSRsL.js} +0 -0
- /package/dist/{DragHandle-_bikrb5H.cjs → DragHandle-DX3qexW0.cjs} +0 -0
- /package/dist/{EmptyState-63UqLFX6.js → EmptyState-CpRnEfbE.js} +0 -0
- /package/dist/{EmptyState-CV-UfKR6.cjs → EmptyState-DmBAVLu8.cjs} +0 -0
- /package/dist/{Field-DCEukL3E.js → Field-6haRtm1-.js} +0 -0
- /package/dist/{Field-M289tArC.cjs → Field-C7JxGz6g.cjs} +0 -0
- /package/dist/{Flag-Dc0DtID0.js → Flag-B5E4tHa2.js} +0 -0
- /package/dist/{Flag-B5EaQ5Dl.cjs → Flag-Mpl1_r4m.cjs} +0 -0
- /package/dist/{FloatingToolbar-Cqx8LnTK.cjs → FloatingToolbar-Bdwzxebh.cjs} +0 -0
- /package/dist/{FloatingToolbar-DBC-2FlB.js → FloatingToolbar-Bfe38At4.js} +0 -0
- /package/dist/{Grid-D8c0StGs.cjs → Grid-CDrItyQ7.cjs} +0 -0
- /package/dist/{Grid-XtnH-vr_.js → Grid-Hbvbu16k.js} +0 -0
- /package/dist/{InlineEdit-xdCv1gWm.js → InlineEdit-CBeh3e_w.js} +0 -0
- /package/dist/{InlineEdit-_QMSc24F.cjs → InlineEdit-_fLd4ZNk.cjs} +0 -0
- /package/dist/{JsonTree-CB1TWqPT.cjs → JsonTree-CjeK5gqm.cjs} +0 -0
- /package/dist/{JsonTree-CJ3tk08k.js → JsonTree-DbyC2G2G.js} +0 -0
- /package/dist/{Label-CVCNXFn1.cjs → Label-71QAuWf4.cjs} +0 -0
- /package/dist/{Label-ciCAG21-.js → Label-BEW_5nYq.js} +0 -0
- /package/dist/{Layer-CKmhBz7s.js → Layer-BLOx5Oh8.js} +0 -0
- /package/dist/{Layer-rgAWsfwJ.cjs → Layer-DOnWnKYV.cjs} +0 -0
- /package/dist/{MenuBar-C4j3ytQu.cjs → MenuBar-Bdz7lk2r.cjs} +0 -0
- /package/dist/{MenuBar-Dx_v4ZPi.js → MenuBar-BrOsK3Qa.js} +0 -0
- /package/dist/{MenuBarItem-DMY6OdWn.js → MenuBarItem-BlRZXDnm.js} +0 -0
- /package/dist/{MenuBarItem-BvWV59vi.cjs → MenuBarItem-DCArqyTW.cjs} +0 -0
- /package/dist/{MenuDivider-CRvC2uO4.cjs → MenuDivider-Bz7uGAPE.cjs} +0 -0
- /package/dist/{MenuDivider-BYKt84Gz.js → MenuDivider-CEeFfvpa.js} +0 -0
- /package/dist/{Message-Cecz48PA.js → Message-DPv6St5M.js} +0 -0
- /package/dist/{Message-VfpaGblO.cjs → Message-vFr_gB2V.cjs} +0 -0
- /package/dist/{NotificationCenterItem-DD5LnGg8.js → NotificationCenterItem-DOEvOsiy.js} +0 -0
- /package/dist/{NotificationCenterItem-NKH3y8HB.cjs → NotificationCenterItem-hSxc82yG.cjs} +0 -0
- /package/dist/{NubiscoMark-DgzvBHAd.js → NubiscoMark-BGi9b3YU.js} +0 -0
- /package/dist/{NubiscoMark-D4-pm2EX.cjs → NubiscoMark-DH9Ngmod.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-CayXaZGB.js → NubiscoPlatformMark-C6WbipA4.js} +0 -0
- /package/dist/{NubiscoPlatformMark-DV2XeqiT.cjs → NubiscoPlatformMark-ddkDJ0AU.cjs} +0 -0
- /package/dist/{Panel-Drfi9pqS.js → Panel-B3kJkm_w.js} +0 -0
- /package/dist/{Panel-valtWFWI.cjs → Panel-DKp-aPUn.cjs} +0 -0
- /package/dist/{ReorderList-BdHgEL4G.cjs → ReorderList-BpJaGDDA.cjs} +0 -0
- /package/dist/{ReorderList-BDLxDc6t.js → ReorderList-DvPkvpFU.js} +0 -0
- /package/dist/{ShellPanel-Hpm-eBqt.js → ShellPanel-6slzyDrP.js} +0 -0
- /package/dist/{ShellPanel-CQaXYB20.cjs → ShellPanel-7EmMevry.cjs} +0 -0
- /package/dist/{SidebarBrand-BThjow9_.js → SidebarBrand-Bvfoqveo.js} +0 -0
- /package/dist/{SidebarBrand-UfpenlDY.cjs → SidebarBrand-DgGfdnZE.cjs} +0 -0
- /package/dist/{SidebarLink-Bl-Sj2nx.js → SidebarLink-CXCdVrWM.js} +0 -0
- /package/dist/{SidebarLink-CwmNyhlK.cjs → SidebarLink-DaZrlrLZ.cjs} +0 -0
- /package/dist/{SidebarMenu-CWFsKG2j.cjs → SidebarMenu-N9opcSs0.cjs} +0 -0
- /package/dist/{SidebarMenu-D8-2usxB.js → SidebarMenu-ippvct70.js} +0 -0
- /package/dist/{SidebarMenuGroup-DDW1MQYi.cjs → SidebarMenuGroup-BTE6pzU7.cjs} +0 -0
- /package/dist/{SidebarMenuGroup-CxsPzWRO.js → SidebarMenuGroup-BWjJE_SN.js} +0 -0
- /package/dist/{SidebarMenuItem-C_JHC7Yt.cjs → SidebarMenuItem-BebyqOzN.cjs} +0 -0
- /package/dist/{SidebarMenuItem-Bz7iZxp4.js → SidebarMenuItem-CjtylCV1.js} +0 -0
- /package/dist/{SidebarStatus-DS2lYq12.cjs → SidebarStatus-8xHtWS22.cjs} +0 -0
- /package/dist/{SidebarStatus-dCli4_vh.js → SidebarStatus-DxJwYk3n.js} +0 -0
- /package/dist/{Sparkline-DAtjfUpM.cjs → Sparkline-DgmOYz7G.cjs} +0 -0
- /package/dist/{Sparkline-ebQVLVhY.js → Sparkline-TptJc3Gp.js} +0 -0
- /package/dist/{Stepper.context-D6ZX2zXY.js → Stepper.context-BaKuMRsu.js} +0 -0
- /package/dist/{Stepper.context-D56VQS_Q.cjs → Stepper.context-vC_Cctnn.cjs} +0 -0
- /package/dist/{Submenu-mUsq51XV.js → Submenu-DS2s0NYW.js} +0 -0
- /package/dist/{Submenu-DxxFiGqt.cjs → Submenu-Dqgk6Bu2.cjs} +0 -0
- /package/dist/{Toast-D666KPCk.cjs → Toast-DJ4m7ct6.cjs} +0 -0
- /package/dist/{Toast-Bv4CvhFI.js → Toast-WMeps0Sy.js} +0 -0
- /package/dist/{TreeContext-DNHT9WiK.cjs → TreeContext-B73gZjHy.cjs} +0 -0
- /package/dist/{TreeContext-BRFV85x7.js → TreeContext-dgGdNVcW.js} +0 -0
- /package/dist/{Wireframe-DSvovZjf.js → Wireframe-CT2d4yey.js} +0 -0
- /package/dist/{Wireframe-DY1c_O26.cjs → Wireframe-YFaVOmuO.cjs} +0 -0
- /package/dist/{palette-BoABA-De.cjs → palette-9NBcW3rl.cjs} +0 -0
- /package/dist/{palette-VMXxKICH.js → palette-Cq2Mb9QH.js} +0 -0
- /package/dist/{pixi-scene-mdr13T3c.cjs → pixi-scene-DdcmrtpA.cjs} +0 -0
- /package/dist/{pixi-scene-CBmqhUr4.js → pixi-scene-tM_RIArI.js} +0 -0
- /package/dist/{scales-BWtB8m5D.cjs → scales-Bdgv87s2.cjs} +0 -0
- /package/dist/{scales-DVJzRU1F.js → scales-CzvC8OOZ.js} +0 -0
- /package/dist/{useChartSize-Dyh37PYP.js → useChartSize-BXgOzSCU.js} +0 -0
- /package/dist/{useChartSize-D9UxUkiU.cjs → useChartSize-ByPUvppp.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BknuRv_m.js → useLoadingAnnouncer.composable-DQEzOEt_.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-DcBmMSBO.cjs → useLoadingAnnouncer.composable-pW7VKY0k.cjs} +0 -0
- /package/dist/{vue-i18n-Dzm-MDw4.js → vue-i18n-BERFm5iG.js} +0 -0
- /package/dist/{vue-i18n-B_5xehV9.cjs → vue-i18n-CNxAi_sd.cjs} +0 -0
package/src/styles/_theme.scss
CHANGED
|
@@ -636,9 +636,11 @@
|
|
|
636
636
|
--nb-shell-menu-color: var(--nb-shell-chrome-color);
|
|
637
637
|
--nb-shell-menu-border: var(--nb-shell-chrome-border);
|
|
638
638
|
--nb-shell-body-bg: var(--nb-shell-chrome-bg);
|
|
639
|
-
//
|
|
640
|
-
//
|
|
641
|
-
|
|
639
|
+
// --nb-shell-main-bg, the page ground behind the main region, is
|
|
640
|
+
// deliberately NOT declared here. Its default is the main region's own
|
|
641
|
+
// layer-0 surface, and that can only be resolved on the element (see
|
|
642
|
+
// `.nb-shell__main` in Shell.vue): declared at :root it froze to layer 1.
|
|
643
|
+
// A product still overrides it on :root as before, to any value.
|
|
642
644
|
--nb-shell-inspector-width: calc(var(--nb-base-unit) * 70); // 560px
|
|
643
645
|
--nb-shell-inspector-expanded-width: 50vw;
|
|
644
646
|
// Ceiling for a visible inspector, whatever set its width (a size preset,
|
|
@@ -885,6 +887,44 @@
|
|
|
885
887
|
--nb-c-secondary-hover: #{colors.get-color('nouveau-gray', 650)};
|
|
886
888
|
--nb-c-secondary-active: #{colors.get-color('nouveau-gray', 600)};
|
|
887
889
|
|
|
890
|
+
// Readable foregrounds for the fills this block moves. A colour and its
|
|
891
|
+
// `-a11y` travel together (the rule `_theme-api.scss` enforces for named
|
|
892
|
+
// themes), and here they had come apart: the dark primary hover and
|
|
893
|
+
// active, info and danger kept the white chosen for their LIGHT step and
|
|
894
|
+
// measured 3.01 to 3.82:1. color-contrast() picks whichever of white and
|
|
895
|
+
// near-black reads better, exactly as the light ramp does.
|
|
896
|
+
--nb-c-primary-hover-a11y: #{colors.color-contrast(
|
|
897
|
+
colors.get-color('grape-hyacinth', 350)
|
|
898
|
+
)};
|
|
899
|
+
--nb-c-primary-active-a11y: #{colors.color-contrast(
|
|
900
|
+
colors.get-color('grape-hyacinth', 300)
|
|
901
|
+
)};
|
|
902
|
+
--nb-c-success-a11y: #{colors.color-contrast(
|
|
903
|
+
colors.get-color('emerald-reflection', 500)
|
|
904
|
+
)};
|
|
905
|
+
--nb-c-info-a11y: #{colors.color-contrast(
|
|
906
|
+
colors.get-color('the-blues-brothers', 400)
|
|
907
|
+
)};
|
|
908
|
+
--nb-c-warning-a11y: #{colors.color-contrast(
|
|
909
|
+
colors.get-color('phoenix-flames', 400)
|
|
910
|
+
)};
|
|
911
|
+
--nb-c-danger-a11y: #{colors.color-contrast(
|
|
912
|
+
colors.get-color('chicken-comb', 400)
|
|
913
|
+
)};
|
|
914
|
+
|
|
915
|
+
// Ink lift: how far each semantic colour moves toward white when it is
|
|
916
|
+
// drawn as text or an outline straight onto a dark layer (an outlined
|
|
917
|
+
// button, a drop-zone label). See `logic/_ink.scss`. Each value is the
|
|
918
|
+
// smallest whole lift that clears WCAG AA on all four dark layers and on
|
|
919
|
+
// the 14% pressed wash, plus two points of margin. The light theme
|
|
920
|
+
// declares none, so ink there is the colour itself.
|
|
921
|
+
--nb-c-primary-ink-lift: 48%;
|
|
922
|
+
--nb-c-secondary-ink-lift: 56%;
|
|
923
|
+
--nb-c-success-ink-lift: 21%;
|
|
924
|
+
--nb-c-info-ink-lift: 43%;
|
|
925
|
+
--nb-c-warning-ink-lift: 6%;
|
|
926
|
+
--nb-c-danger-ink-lift: 46%;
|
|
927
|
+
|
|
888
928
|
// Component states
|
|
889
929
|
--nb-c-component-inactive: #{colors.get-color('nouveau-gray', 500)};
|
|
890
930
|
--nb-c-component-active: #{colors.get-color('nouveau-gray', 400)};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// A semantic colour drawn as ink: text, an outline or an icon set directly on a
|
|
2
|
+
/// surface, with no fill of its own behind it.
|
|
3
|
+
///
|
|
4
|
+
/// The semantic colours (`--nb-c-primary`, `--nb-c-secondary`, ...) are picked
|
|
5
|
+
/// first as FILLS, with their `-a11y` foreground on top. Drawn straight onto a
|
|
6
|
+
/// surface they are a different pair, and in the dark theme several of them do
|
|
7
|
+
/// not survive it: the dark secondary is a mid grey chosen to carry white text,
|
|
8
|
+
/// and as the label of an outlined button it measured 1.21:1 to 2.15:1 against
|
|
9
|
+
/// the four dark layers.
|
|
10
|
+
///
|
|
11
|
+
/// So ink lifts the colour toward white by `--nb-c-<variant>-ink-lift`. The
|
|
12
|
+
/// light theme does not declare the lift, so the fallback of 0% returns the
|
|
13
|
+
/// colour unchanged and light mode is pixel-identical. The dark theme declares
|
|
14
|
+
/// one per variant, each the smallest lift that clears WCAG AA (4.5:1) on all
|
|
15
|
+
/// four dark layers and on the 14% wash an outlined button paints when pressed.
|
|
16
|
+
/// `tests/inkContrast.test.ts` measures it.
|
|
17
|
+
///
|
|
18
|
+
/// The mix is resolved on the element that paints, not at `:root`, so a product
|
|
19
|
+
/// that re-points `--nb-c-primary` (on `:root` or on a themed subtree) gets ITS
|
|
20
|
+
/// primary lifted, never the library's. A named theme that sets its own dark
|
|
21
|
+
/// colour for a variant resets that variant's lift to 0%, because it chose that
|
|
22
|
+
/// colour for contrast already (see `theme()` in `_theme-api.scss`).
|
|
23
|
+
///
|
|
24
|
+
/// @param {String} $variant - primary, secondary, success, info, warning or danger
|
|
25
|
+
/// @return {String} a `color-mix()` expression
|
|
26
|
+
/// @access public
|
|
27
|
+
/// @group @nubisco/colors
|
|
28
|
+
@function ink($variant) {
|
|
29
|
+
@return color-mix(
|
|
30
|
+
in srgb,
|
|
31
|
+
var(--nb-c-#{$variant}),
|
|
32
|
+
var(--nb-c-white) var(--nb-c-#{$variant}-ink-lift, 0%)
|
|
33
|
+
);
|
|
34
|
+
}
|
package/dist/Card-BqIF-svL.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, mergeProps as u, openBlock as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, withCtx as h } from "vue";
|
|
4
|
-
//#region src/components/Card.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var g = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "nb-card__icon"
|
|
8
|
-
}, _ = { class: "nb-card__head" }, v = { class: "nb-card__title" }, y = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "nb-card__subtitle"
|
|
11
|
-
}, b = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "nb-card__body"
|
|
14
|
-
}, x = {
|
|
15
|
-
key: 2,
|
|
16
|
-
class: "nb-card__footer"
|
|
17
|
-
}, S = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
18
|
-
__name: "Card",
|
|
19
|
-
props: {
|
|
20
|
-
title: { default: "" },
|
|
21
|
-
subtitle: { default: "" },
|
|
22
|
-
icon: { default: void 0 },
|
|
23
|
-
href: { default: void 0 },
|
|
24
|
-
target: { default: void 0 },
|
|
25
|
-
clickable: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: !1
|
|
28
|
-
},
|
|
29
|
-
selected: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: !1
|
|
32
|
-
},
|
|
33
|
-
disabled: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
emits: ["select"],
|
|
39
|
-
setup(e, { emit: l }) {
|
|
40
|
-
let S = e, C = l, w = n(() => !!S.href && !S.disabled), T = n(() => (w.value || S.clickable) && !S.disabled), E = n(() => w.value ? "a" : (S.clickable, "div")), D = n(() => w.value ? {
|
|
41
|
-
href: S.href,
|
|
42
|
-
target: S.target,
|
|
43
|
-
rel: S.target === "_blank" ? "noopener" : void 0
|
|
44
|
-
} : S.clickable && !S.disabled ? {
|
|
45
|
-
role: "button",
|
|
46
|
-
tabindex: 0,
|
|
47
|
-
"aria-pressed": S.selected ? !0 : void 0
|
|
48
|
-
} : {});
|
|
49
|
-
function O() {
|
|
50
|
-
!S.clickable || S.disabled || w.value || C("select");
|
|
51
|
-
}
|
|
52
|
-
function k(e) {
|
|
53
|
-
!S.clickable || S.disabled || w.value || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), C("select"));
|
|
54
|
-
}
|
|
55
|
-
return (n, l) => (d(), r(p(E.value), u({ class: ["nb-card", {
|
|
56
|
-
"nb-card--interactive": T.value,
|
|
57
|
-
"nb-card--selected": e.selected,
|
|
58
|
-
"nb-card--disabled": e.disabled
|
|
59
|
-
}] }, D.value, {
|
|
60
|
-
onClick: O,
|
|
61
|
-
onKeydown: k
|
|
62
|
-
}), {
|
|
63
|
-
default: h(() => [
|
|
64
|
-
e.icon || n.$slots.icon ? (d(), a("div", g, [f(n.$slots, "icon", {}, () => [c(t, {
|
|
65
|
-
name: e.icon,
|
|
66
|
-
size: 20,
|
|
67
|
-
"aria-hidden": "true"
|
|
68
|
-
}, null, 8, ["name"])], !0)])) : i("", !0),
|
|
69
|
-
o("div", _, [o("span", v, [f(n.$slots, "title", {}, () => [s(m(e.title), 1)], !0)]), e.subtitle || n.$slots.subtitle ? (d(), a("span", y, [f(n.$slots, "subtitle", {}, () => [s(m(e.subtitle), 1)], !0)])) : i("", !0)]),
|
|
70
|
-
n.$slots.default ? (d(), a("div", b, [f(n.$slots, "default", {}, void 0, !0)])) : i("", !0),
|
|
71
|
-
n.$slots.footer ? (d(), a("div", x, [f(n.$slots, "footer", {}, void 0, !0)])) : i("", !0)
|
|
72
|
-
]),
|
|
73
|
-
_: 3
|
|
74
|
-
}, 16, ["class"]));
|
|
75
|
-
}
|
|
76
|
-
}), [["__scopeId", "data-v-2a7f84df"]]);
|
|
77
|
-
//#endregion
|
|
78
|
-
export { S as t };
|
package/dist/Card-Xmv6oz9a.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`);let n=require(`vue`);var r={key:0,class:`nb-card__icon`},i={class:`nb-card__head`},a={class:`nb-card__title`},o={key:0,class:`nb-card__subtitle`},s={key:1,class:`nb-card__body`},c={key:2,class:`nb-card__footer`},l=(0,n.defineComponent)({__name:`Card`,props:{title:{default:``},subtitle:{default:``},icon:{default:void 0},href:{default:void 0},target:{default:void 0},clickable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:l}){let u=e,d=l,f=(0,n.computed)(()=>!!u.href&&!u.disabled),p=(0,n.computed)(()=>(f.value||u.clickable)&&!u.disabled),m=(0,n.computed)(()=>f.value?`a`:(u.clickable,`div`)),h=(0,n.computed)(()=>f.value?{href:u.href,target:u.target,rel:u.target===`_blank`?`noopener`:void 0}:u.clickable&&!u.disabled?{role:`button`,tabindex:0,"aria-pressed":u.selected?!0:void 0}:{});function g(){!u.clickable||u.disabled||f.value||d(`select`)}function _(e){!u.clickable||u.disabled||f.value||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),d(`select`))}return(l,u)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(m.value),(0,n.mergeProps)({class:[`nb-card`,{"nb-card--interactive":p.value,"nb-card--selected":e.selected,"nb-card--disabled":e.disabled}]},h.value,{onClick:g,onKeydown:_}),{default:(0,n.withCtx)(()=>[e.icon||l.$slots.icon?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,r,[(0,n.renderSlot)(l.$slots,`icon`,{},()=>[(0,n.createVNode)(t.t,{name:e.icon,size:20,"aria-hidden":`true`},null,8,[`name`])],!0)])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`div`,i,[(0,n.createElementVNode)(`span`,a,[(0,n.renderSlot)(l.$slots,`title`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.title),1)],!0)]),e.subtitle||l.$slots.subtitle?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,o,[(0,n.renderSlot)(l.$slots,`subtitle`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.subtitle),1)],!0)])):(0,n.createCommentVNode)(``,!0)]),l.$slots.default?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,s,[(0,n.renderSlot)(l.$slots,`default`,{},void 0,!0)])):(0,n.createCommentVNode)(``,!0),l.$slots.footer?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,c,[(0,n.renderSlot)(l.$slots,`footer`,{},void 0,!0)])):(0,n.createCommentVNode)(``,!0)]),_:3},16,[`class`]))}}),u=e.t(l,[[`__scopeId`,`data-v-2a7f84df`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-CVCNXFn1.cjs`),i=require(`./Message-VfpaGblO.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/warning-circle`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);s=e.n(s);var c=function(e){return e.Small=`sm`,e.Medium=`md`,e}(c||{}),l=function(e){return e.Active=`active`,e.Finished=`finished`,e.Error=`error`,e}(l||{}),u={key:0,class:`nb-progress-bar__header`},d=[`aria-label`,`aria-valuemax`,`aria-valuenow`],f=(0,a.defineComponent)({__name:`ProgressBar`,props:{value:{default:void 0},max:{default:100},helper:{default:void 0},size:{default:c.Medium},status:{default:l.Active},id:{default:`progress-bar`},label:{}},setup(e){let t=e,c=(0,a.computed)(()=>t.value==null&&t.status===l.Active),f=(0,a.computed)(()=>t.status===l.Active?t.value==null||t.max<=0?0:Math.min(Math.max(t.value/t.max,0),1):1),p=(0,a.computed)(()=>c.value?void 0:f.value*t.max),m=(0,a.computed)(()=>[`nb-progress-bar`,`nb-progress-bar--${t.size}`,`nb-progress-bar--${t.status}`,{"nb-progress-bar--indeterminate":c.value}]),h=(0,a.computed)(()=>({transform:`scaleX(${f.value})`})),g=(0,a.computed)(()=>t.status===l.Finished?s:t.status===l.Error?o:null),_=(0,a.computed)(()=>t.status===l.Error?i.n.Error:i.n.Helper);return(t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)(m.value)},[e.label?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,u,[(0,a.createVNode)(r.t,null,{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1}),g.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:g.value,size:14,class:`nb-progress-bar__status-icon`},null,8,[`name`])):(0,a.createCommentVNode)(``,!0)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,{class:`nb-progress-bar__track`,role:`progressbar`,"aria-label":e.label,"aria-valuemin":`0`,"aria-valuemax":e.max,"aria-valuenow":p.value},[(0,a.createElementVNode)(`div`,{class:`nb-progress-bar__bar`,style:(0,a.normalizeStyle)(h.value)},null,4)],8,d),e.helper?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,variant:_.value,class:`nb-progress-bar__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.helper),1)]),_:1},8,[`variant`])):(0,a.createCommentVNode)(``,!0)],2))}}),p=t.t(f,[[`__scopeId`,`data-v-5c8dd315`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Grid-D8c0StGs.cjs`),n=require(`./Label-CVCNXFn1.cjs`),r=require(`./Message-VfpaGblO.cjs`);let i=require(`vue`);var a={key:0,class:`nb-text-input__overlay-wrap`},o=[`innerHTML`],s=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`],c=[`id`,`value`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`],l=[`id`,`placeholder`,`disabled`,`readonly`,`name`,`maxlength`,`rows`],u=[`id`,`type`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`min`,`max`,`step`,`maxlength`],d={key:2,class:`nb-text-input__actions`},f={key:0,class:`nb-text-input__inner-header`},p=[`for`],m={key:0,class:`nb-text-input__asterisk`,"aria-hidden":`true`},h=[`id`,`type`,`placeholder`,`disabled`,`readonly`,`required`,`name`,`min`,`max`,`step`,`maxlength`],g=(0,i.defineComponent)({inheritAttrs:!1,__name:`TextInput`,props:(0,i.mergeModels)({type:{default:`text`},min:{default:void 0},max:{default:void 0},step:{default:void 0},maxlength:{default:void 0},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:g}){let _=e,v=(0,i.useModel)(e,`modelValue`),y=(0,i.ref)(null),b=(0,i.ref)(null);g({focus:()=>y.value?.focus(),blur:()=>y.value?.blur(),nativeEl:y});let x=(0,i.ref)(!1),S=`nb-input-${(0,i.useId)()}`,C=(0,i.computed)(()=>_.id??S),w=(0,i.computed)(()=>!!_.highlight),T=(0,i.computed)(()=>{if(!_.highlight)return``;let e=String(v.value??``);return _.highlight(e)+`
|
|
2
|
-
`});function E(){b.value&&y.value&&(b.value.scrollTop=y.value.scrollTop)}(0,i.watch)(T,()=>(0,i.nextTick)(E));let D=(0,i.computed)(()=>_.error?`error`:_.warning?`warning`:`helper`),O=(0,i.computed)(()=>_.error||_.warning||_.helper||``),k=(0,i.computed)(()=>!!O.value),A=(0,i.computed)(()=>({"nb-text-input__field-wrapper--focused":x.value,"nb-text-input__field-wrapper--error":!!_.error,"nb-text-input__field-wrapper--warning":!_.error&&!!_.warning,"nb-text-input__field-wrapper--disabled":_.disabled,"nb-text-input__field-wrapper--readonly":_.readonly,"nb-text-input__field-wrapper--overlay":w.value,"nb-text-input__field-wrapper--multiline":_.multiline}));return(g,_)=>((0,i.openBlock)(),(0,i.createBlock)(t.t,{dir:`col`,class:(0,i.normalizeClass)([`nb-text-input`,`nb-text-input--${e.variant}`,`nb-text-input--${e.size}`,{"nb-text-input--multiline":e.multiline}])},{default:(0,i.withCtx)(()=>[e.variant===`default`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[g.$slots.label?(0,i.renderSlot)(g.$slots,`label`,{key:0},void 0,!0):e.label?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,for:C.value,required:e.required,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-text-input__field-wrapper`,A.value])},[(0,i.renderSlot)(g.$slots,`leading`,{},void 0,!0),w.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,a,[(0,i.createElementVNode)(`div`,{ref_key:`mirrorRef`,ref:b,class:`nb-text-input__mirror`,"aria-hidden":`true`,innerHTML:T.value},null,8,o),e.multiline?((0,i.openBlock)(),(0,i.createElementBlock)(`textarea`,(0,i.mergeProps)({key:0,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{class:`nb-text-input__field--transparent`,value:v.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,autocomplete:`off`,autocorrect:`off`,onInput:_[0]||=e=>v.value=e.target.value,onFocus:_[1]||=e=>x.value=!0,onBlur:_[2]||=e=>x.value=!1,onScroll:E}),null,16,s)):((0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({key:1,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{type:`text`,class:`nb-text-input__field--transparent`,value:v.value,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,spellcheck:`false`,onInput:_[3]||=e=>v.value=e.target.value,onFocus:_[4]||=e=>x.value=!0,onBlur:_[5]||=e=>x.value=!1}),null,16,c))])):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[e.multiline?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`textarea`,(0,i.mergeProps)({key:0,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[6]||=e=>v.value=e,class:`nb-text-input__field`,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,name:e.name,maxlength:e.maxlength,rows:e.rows,onFocus:_[7]||=e=>x.value=!0,onBlur:_[8]||=e=>x.value=!1}),null,16,l)),[[i.vModelText,v.value]]):(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`input`,(0,i.mergeProps)({key:1,id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[9]||=e=>v.value=e,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:_[10]||=e=>x.value=!0,onBlur:_[11]||=e=>x.value=!1}),null,16,u)),[[i.vModelDynamic,v.value]])],64)),(0,i.renderSlot)(g.$slots,`trailing`,{},void 0,!0),g.$slots.actions?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[(0,i.renderSlot)(g.$slots,`actions`,{},void 0,!0)])):(0,i.createCommentVNode)(``,!0)],2),k.value?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:2,variant:D.value,class:`nb-text-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(O.value),1)]),_:1},8,[`variant`])):(0,i.createCommentVNode)(``,!0),(0,i.renderSlot)(g.$slots,`dropdown`,{},void 0,!0)],64)):e.variant===`fluid`?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:(0,i.normalizeClass)([`nb-text-input__field-wrapper`,A.value])},[e.label||g.$slots.label?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,f,[g.$slots.label?(0,i.renderSlot)(g.$slots,`label`,{key:0},void 0,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`label`,{key:1,for:C.value,class:(0,i.normalizeClass)([`nb-text-input__inner-label`,{"nb-text-input__inner-label--required":e.required}])},[(0,i.createTextVNode)((0,i.toDisplayString)(e.label)+` `,1),e.required?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,m,`*`)):(0,i.createCommentVNode)(``,!0)],10,p)),k.value?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:2,variant:D.value,"icon-only":``,class:`nb-text-input__inner-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(O.value),1)]),_:1},8,[`variant`])):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0),(0,i.withDirectives)((0,i.createElementVNode)(`input`,(0,i.mergeProps)({id:C.value,ref_key:`nativeRef`,ref:y},g.$attrs,{"onUpdate:modelValue":_[12]||=e=>v.value=e,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:_[13]||=e=>x.value=!0,onBlur:_[14]||=e=>x.value=!1}),null,16,h),[[i.vModelDynamic,v.value]])],2)):(0,i.createCommentVNode)(``,!0)]),_:3},8,[`class`]))}}),_=e.t(g,[[`__scopeId`,`data-v-2e908d7d`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return _}});
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Grid-XtnH-vr_.js";
|
|
3
|
-
import { t as n } from "./Label-ciCAG21-.js";
|
|
4
|
-
import { t as r } from "./Message-Cecz48PA.js";
|
|
5
|
-
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, nextTick as m, normalizeClass as h, openBlock as g, ref as _, renderSlot as v, toDisplayString as y, useId as b, useModel as x, vModelDynamic as S, vModelText as C, watch as w, withCtx as T, withDirectives as E } from "vue";
|
|
6
|
-
//#region src/components/TextInput.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var D = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "nb-text-input__overlay-wrap"
|
|
10
|
-
}, O = ["innerHTML"], k = [
|
|
11
|
-
"id",
|
|
12
|
-
"value",
|
|
13
|
-
"placeholder",
|
|
14
|
-
"disabled",
|
|
15
|
-
"readonly",
|
|
16
|
-
"name",
|
|
17
|
-
"maxlength"
|
|
18
|
-
], A = [
|
|
19
|
-
"id",
|
|
20
|
-
"value",
|
|
21
|
-
"placeholder",
|
|
22
|
-
"disabled",
|
|
23
|
-
"readonly",
|
|
24
|
-
"name",
|
|
25
|
-
"maxlength"
|
|
26
|
-
], j = [
|
|
27
|
-
"id",
|
|
28
|
-
"placeholder",
|
|
29
|
-
"disabled",
|
|
30
|
-
"readonly",
|
|
31
|
-
"name",
|
|
32
|
-
"maxlength",
|
|
33
|
-
"rows"
|
|
34
|
-
], M = [
|
|
35
|
-
"id",
|
|
36
|
-
"type",
|
|
37
|
-
"placeholder",
|
|
38
|
-
"disabled",
|
|
39
|
-
"readonly",
|
|
40
|
-
"required",
|
|
41
|
-
"name",
|
|
42
|
-
"min",
|
|
43
|
-
"max",
|
|
44
|
-
"step",
|
|
45
|
-
"maxlength"
|
|
46
|
-
], N = {
|
|
47
|
-
key: 2,
|
|
48
|
-
class: "nb-text-input__actions"
|
|
49
|
-
}, P = {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: "nb-text-input__inner-header"
|
|
52
|
-
}, F = ["for"], I = {
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "nb-text-input__asterisk",
|
|
55
|
-
"aria-hidden": "true"
|
|
56
|
-
}, L = [
|
|
57
|
-
"id",
|
|
58
|
-
"type",
|
|
59
|
-
"placeholder",
|
|
60
|
-
"disabled",
|
|
61
|
-
"readonly",
|
|
62
|
-
"required",
|
|
63
|
-
"name",
|
|
64
|
-
"min",
|
|
65
|
-
"max",
|
|
66
|
-
"step",
|
|
67
|
-
"maxlength"
|
|
68
|
-
], R = /* @__PURE__ */ e(/* @__PURE__ */ d({
|
|
69
|
-
inheritAttrs: !1,
|
|
70
|
-
__name: "TextInput",
|
|
71
|
-
props: /* @__PURE__ */ f({
|
|
72
|
-
type: { default: "text" },
|
|
73
|
-
min: { default: void 0 },
|
|
74
|
-
max: { default: void 0 },
|
|
75
|
-
step: { default: void 0 },
|
|
76
|
-
maxlength: { default: void 0 },
|
|
77
|
-
multiline: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: !1
|
|
80
|
-
},
|
|
81
|
-
rows: { default: 3 },
|
|
82
|
-
highlight: {
|
|
83
|
-
type: Function,
|
|
84
|
-
default: void 0
|
|
85
|
-
},
|
|
86
|
-
readonly: {
|
|
87
|
-
type: Boolean,
|
|
88
|
-
default: !1
|
|
89
|
-
},
|
|
90
|
-
placeholder: { default: "" },
|
|
91
|
-
name: { default: "" },
|
|
92
|
-
disabled: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: !1
|
|
95
|
-
},
|
|
96
|
-
required: {
|
|
97
|
-
type: Boolean,
|
|
98
|
-
default: !1
|
|
99
|
-
},
|
|
100
|
-
id: { default: void 0 },
|
|
101
|
-
label: { default: "" },
|
|
102
|
-
error: { default: "" },
|
|
103
|
-
warning: { default: "" },
|
|
104
|
-
helper: { default: "" },
|
|
105
|
-
variant: { default: "default" },
|
|
106
|
-
size: { default: "md" }
|
|
107
|
-
}, {
|
|
108
|
-
modelValue: { default: "" },
|
|
109
|
-
modelModifiers: {}
|
|
110
|
-
}),
|
|
111
|
-
emits: ["update:modelValue"],
|
|
112
|
-
setup(e, { expose: d }) {
|
|
113
|
-
let f = e, R = x(e, "modelValue"), z = _(null), B = _(null);
|
|
114
|
-
d({
|
|
115
|
-
focus: () => z.value?.focus(),
|
|
116
|
-
blur: () => z.value?.blur(),
|
|
117
|
-
nativeEl: z
|
|
118
|
-
});
|
|
119
|
-
let V = _(!1), H = `nb-input-${b()}`, U = a(() => f.id ?? H), W = a(() => !!f.highlight), G = a(() => {
|
|
120
|
-
if (!f.highlight) return "";
|
|
121
|
-
let e = String(R.value ?? "");
|
|
122
|
-
return f.highlight(e) + "\n";
|
|
123
|
-
});
|
|
124
|
-
function K() {
|
|
125
|
-
B.value && z.value && (B.value.scrollTop = z.value.scrollTop);
|
|
126
|
-
}
|
|
127
|
-
w(G, () => m(K));
|
|
128
|
-
let q = a(() => f.error ? "error" : f.warning ? "warning" : "helper"), J = a(() => f.error || f.warning || f.helper || ""), Y = a(() => !!J.value), X = a(() => ({
|
|
129
|
-
"nb-text-input__field-wrapper--focused": V.value,
|
|
130
|
-
"nb-text-input__field-wrapper--error": !!f.error,
|
|
131
|
-
"nb-text-input__field-wrapper--warning": !f.error && !!f.warning,
|
|
132
|
-
"nb-text-input__field-wrapper--disabled": f.disabled,
|
|
133
|
-
"nb-text-input__field-wrapper--readonly": f.readonly,
|
|
134
|
-
"nb-text-input__field-wrapper--overlay": W.value,
|
|
135
|
-
"nb-text-input__field-wrapper--multiline": f.multiline
|
|
136
|
-
}));
|
|
137
|
-
return (a, d) => (g(), o(t, {
|
|
138
|
-
dir: "col",
|
|
139
|
-
class: h([
|
|
140
|
-
"nb-text-input",
|
|
141
|
-
`nb-text-input--${e.variant}`,
|
|
142
|
-
`nb-text-input--${e.size}`,
|
|
143
|
-
{ "nb-text-input--multiline": e.multiline }
|
|
144
|
-
])
|
|
145
|
-
}, {
|
|
146
|
-
default: T(() => [e.variant === "default" ? (g(), c(i, { key: 0 }, [
|
|
147
|
-
a.$slots.label ? v(a.$slots, "label", { key: 0 }, void 0, !0) : e.label ? (g(), o(n, {
|
|
148
|
-
key: 1,
|
|
149
|
-
for: U.value,
|
|
150
|
-
required: e.required,
|
|
151
|
-
disabled: e.disabled
|
|
152
|
-
}, {
|
|
153
|
-
default: T(() => [u(y(e.label), 1)]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, [
|
|
156
|
-
"for",
|
|
157
|
-
"required",
|
|
158
|
-
"disabled"
|
|
159
|
-
])) : s("", !0),
|
|
160
|
-
l("div", { class: h(["nb-text-input__field-wrapper", X.value]) }, [
|
|
161
|
-
v(a.$slots, "leading", {}, void 0, !0),
|
|
162
|
-
W.value ? (g(), c("div", D, [l("div", {
|
|
163
|
-
ref_key: "mirrorRef",
|
|
164
|
-
ref: B,
|
|
165
|
-
class: "nb-text-input__mirror",
|
|
166
|
-
"aria-hidden": "true",
|
|
167
|
-
innerHTML: G.value
|
|
168
|
-
}, null, 8, O), e.multiline ? (g(), c("textarea", p({
|
|
169
|
-
key: 0,
|
|
170
|
-
id: U.value,
|
|
171
|
-
ref_key: "nativeRef",
|
|
172
|
-
ref: z
|
|
173
|
-
}, a.$attrs, {
|
|
174
|
-
class: "nb-text-input__field--transparent",
|
|
175
|
-
value: R.value,
|
|
176
|
-
placeholder: e.placeholder,
|
|
177
|
-
disabled: e.disabled,
|
|
178
|
-
readonly: e.readonly,
|
|
179
|
-
name: e.name,
|
|
180
|
-
maxlength: e.maxlength,
|
|
181
|
-
spellcheck: "false",
|
|
182
|
-
autocomplete: "off",
|
|
183
|
-
autocorrect: "off",
|
|
184
|
-
onInput: d[0] ||= (e) => R.value = e.target.value,
|
|
185
|
-
onFocus: d[1] ||= (e) => V.value = !0,
|
|
186
|
-
onBlur: d[2] ||= (e) => V.value = !1,
|
|
187
|
-
onScroll: K
|
|
188
|
-
}), null, 16, k)) : (g(), c("input", p({
|
|
189
|
-
key: 1,
|
|
190
|
-
id: U.value,
|
|
191
|
-
ref_key: "nativeRef",
|
|
192
|
-
ref: z
|
|
193
|
-
}, a.$attrs, {
|
|
194
|
-
type: "text",
|
|
195
|
-
class: "nb-text-input__field--transparent",
|
|
196
|
-
value: R.value,
|
|
197
|
-
placeholder: e.placeholder,
|
|
198
|
-
disabled: e.disabled,
|
|
199
|
-
readonly: e.readonly,
|
|
200
|
-
name: e.name,
|
|
201
|
-
maxlength: e.maxlength,
|
|
202
|
-
spellcheck: "false",
|
|
203
|
-
onInput: d[3] ||= (e) => R.value = e.target.value,
|
|
204
|
-
onFocus: d[4] ||= (e) => V.value = !0,
|
|
205
|
-
onBlur: d[5] ||= (e) => V.value = !1
|
|
206
|
-
}), null, 16, A))])) : (g(), c(i, { key: 1 }, [e.multiline ? E((g(), c("textarea", p({
|
|
207
|
-
key: 0,
|
|
208
|
-
id: U.value,
|
|
209
|
-
ref_key: "nativeRef",
|
|
210
|
-
ref: z
|
|
211
|
-
}, a.$attrs, {
|
|
212
|
-
"onUpdate:modelValue": d[6] ||= (e) => R.value = e,
|
|
213
|
-
class: "nb-text-input__field",
|
|
214
|
-
placeholder: e.placeholder,
|
|
215
|
-
disabled: e.disabled,
|
|
216
|
-
readonly: e.readonly,
|
|
217
|
-
name: e.name,
|
|
218
|
-
maxlength: e.maxlength,
|
|
219
|
-
rows: e.rows,
|
|
220
|
-
onFocus: d[7] ||= (e) => V.value = !0,
|
|
221
|
-
onBlur: d[8] ||= (e) => V.value = !1
|
|
222
|
-
}), null, 16, j)), [[C, R.value]]) : E((g(), c("input", p({
|
|
223
|
-
key: 1,
|
|
224
|
-
id: U.value,
|
|
225
|
-
ref_key: "nativeRef",
|
|
226
|
-
ref: z
|
|
227
|
-
}, a.$attrs, {
|
|
228
|
-
"onUpdate:modelValue": d[9] ||= (e) => R.value = e,
|
|
229
|
-
class: "nb-text-input__field",
|
|
230
|
-
type: e.type,
|
|
231
|
-
placeholder: e.placeholder,
|
|
232
|
-
disabled: e.disabled,
|
|
233
|
-
readonly: e.readonly,
|
|
234
|
-
required: e.required,
|
|
235
|
-
name: e.name,
|
|
236
|
-
min: e.min,
|
|
237
|
-
max: e.max,
|
|
238
|
-
step: e.step,
|
|
239
|
-
maxlength: e.maxlength,
|
|
240
|
-
onFocus: d[10] ||= (e) => V.value = !0,
|
|
241
|
-
onBlur: d[11] ||= (e) => V.value = !1
|
|
242
|
-
}), null, 16, M)), [[S, R.value]])], 64)),
|
|
243
|
-
v(a.$slots, "trailing", {}, void 0, !0),
|
|
244
|
-
a.$slots.actions ? (g(), c("div", N, [v(a.$slots, "actions", {}, void 0, !0)])) : s("", !0)
|
|
245
|
-
], 2),
|
|
246
|
-
Y.value ? (g(), o(r, {
|
|
247
|
-
key: 2,
|
|
248
|
-
variant: q.value,
|
|
249
|
-
class: "nb-text-input__message"
|
|
250
|
-
}, {
|
|
251
|
-
default: T(() => [u(y(J.value), 1)]),
|
|
252
|
-
_: 1
|
|
253
|
-
}, 8, ["variant"])) : s("", !0),
|
|
254
|
-
v(a.$slots, "dropdown", {}, void 0, !0)
|
|
255
|
-
], 64)) : e.variant === "fluid" ? (g(), c("div", {
|
|
256
|
-
key: 1,
|
|
257
|
-
class: h(["nb-text-input__field-wrapper", X.value])
|
|
258
|
-
}, [e.label || a.$slots.label ? (g(), c("div", P, [a.$slots.label ? v(a.$slots, "label", { key: 0 }, void 0, !0) : (g(), c("label", {
|
|
259
|
-
key: 1,
|
|
260
|
-
for: U.value,
|
|
261
|
-
class: h(["nb-text-input__inner-label", { "nb-text-input__inner-label--required": e.required }])
|
|
262
|
-
}, [u(y(e.label) + " ", 1), e.required ? (g(), c("span", I, "*")) : s("", !0)], 10, F)), Y.value ? (g(), o(r, {
|
|
263
|
-
key: 2,
|
|
264
|
-
variant: q.value,
|
|
265
|
-
"icon-only": "",
|
|
266
|
-
class: "nb-text-input__inner-message"
|
|
267
|
-
}, {
|
|
268
|
-
default: T(() => [u(y(J.value), 1)]),
|
|
269
|
-
_: 1
|
|
270
|
-
}, 8, ["variant"])) : s("", !0)])) : s("", !0), E(l("input", p({
|
|
271
|
-
id: U.value,
|
|
272
|
-
ref_key: "nativeRef",
|
|
273
|
-
ref: z
|
|
274
|
-
}, a.$attrs, {
|
|
275
|
-
"onUpdate:modelValue": d[12] ||= (e) => R.value = e,
|
|
276
|
-
class: "nb-text-input__field",
|
|
277
|
-
type: e.type,
|
|
278
|
-
placeholder: e.placeholder,
|
|
279
|
-
disabled: e.disabled,
|
|
280
|
-
readonly: e.readonly,
|
|
281
|
-
required: e.required,
|
|
282
|
-
name: e.name,
|
|
283
|
-
min: e.min,
|
|
284
|
-
max: e.max,
|
|
285
|
-
step: e.step,
|
|
286
|
-
maxlength: e.maxlength,
|
|
287
|
-
onFocus: d[13] ||= (e) => V.value = !0,
|
|
288
|
-
onBlur: d[14] ||= (e) => V.value = !1
|
|
289
|
-
}), null, 16, L), [[S, R.value]])], 2)) : s("", !0)]),
|
|
290
|
-
_: 3
|
|
291
|
-
}, 8, ["class"]));
|
|
292
|
-
}
|
|
293
|
-
}), [["__scopeId", "data-v-2e908d7d"]]);
|
|
294
|
-
//#endregion
|
|
295
|
-
export { R as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|