@nubisco/ui 5.31.1 → 5.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiLabel-BMeJMSLm.cjs → AiLabel-BK3oecvT.cjs} +1 -1
- package/dist/{AiLabel-CGxUTm-X.js → AiLabel-CPINOrQd.js} +1 -1
- package/dist/{AiProvider-DvvTdjjT.cjs → AiProvider-CXkNWwzy.cjs} +1 -1
- package/dist/{AiProvider-CxXzqmaL.js → AiProvider-TIZP0M_z.js} +5 -5
- package/dist/{AiUsage-CCMQdmZv.cjs → AiUsage-62kxTT8F.cjs} +1 -1
- package/dist/{AiUsage-q_WU2toP.js → AiUsage-D1xgxa2C.js} +2 -2
- 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/{Briefing-Ce2nPMi-.js → Briefing-BhnZ6WVQ.js} +3 -3
- package/dist/{Briefing-B_D0X4pk.cjs → Briefing-CZ2bGU7N.cjs} +1 -1
- package/dist/Card-4l_DbIKC.cjs +1 -0
- package/dist/{Card-C74PaCx8.js → Card-BBXSjH58.js} +15 -23
- 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-Cvg8SDbi.js} +2 -2
- package/dist/{ColorStrip-CjNDptlR.cjs → ColorStrip-D9Y0q4F3.cjs} +1 -1
- package/dist/{Confirm-BmUz2b8D.js → Confirm-PX-ztREx.js} +3 -3
- package/dist/{Confirm-BVFOXvHm.cjs → Confirm-f5dXOogg.cjs} +1 -1
- package/dist/{DataTable-x8lKfQRr.js → DataTable-pqZtxJyw.js} +2 -2
- package/dist/{DataTable--thiOouM.cjs → DataTable-pukt9JVj.cjs} +1 -1
- package/dist/{DatePicker-DIdEzzsG.cjs → DatePicker-BtQGKawo.cjs} +1 -1
- package/dist/{DatePicker-ZiWlM0Ee.js → DatePicker-D-V0rt-j.js} +3 -3
- package/dist/{Form-BeYswpJM.cjs → Form-CTlKzud3.cjs} +1 -1
- package/dist/{Form-BPVpxTZQ.js → Form-CU8I3tRi.js} +1 -1
- package/dist/{GanttChart-DSiFcLIL.cjs → GanttChart-C2ql59iv.cjs} +1 -1
- package/dist/{GanttChart-CBNjVceP.js → GanttChart-tHaks3Qu.js} +3 -3
- package/dist/{Grid-XtnH-vr_.js → Grid-CJFQvcko.js} +1 -1
- package/dist/{Grid-D8c0StGs.cjs → Grid-CXE0B85G.cjs} +1 -1
- package/dist/{ImageCropper-BC4pRMRj.js → ImageCropper-DJdFeFEa.js} +2 -2
- package/dist/{ImageCropper-BIDxE4N-.cjs → ImageCropper-DsPY_FK-.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-Cm0afrVz.cjs → Modal-BsjO-Q-K.cjs} +1 -1
- package/dist/{Modal-Cy_ukbdF.js → Modal-CN35LB5_.js} +1 -1
- package/dist/{NotificationCenter-xEyb8Bjj.js → NotificationCenter-3a6Ka6f0.js} +4 -4
- package/dist/{NotificationCenter-bmTyLvkL.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-CdYqrQbM.js → Pagination-DyoObjwm.js} +1 -1
- package/dist/{Pagination-DjkCQOqi.cjs → Pagination-zLxu_xGl.cjs} +1 -1
- 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-CwO5aX8j.js → Select-Djtr68yO.js} +3 -3
- package/dist/{Select-CHuZfqLt.cjs → Select-tqEDoa5r.cjs} +1 -1
- package/dist/{ShellPanel-CQaXYB20.cjs → ShellPanel-COJIhqCY.cjs} +1 -1
- package/dist/{ShellPanel-Hpm-eBqt.js → ShellPanel-Dway28Hw.js} +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-BtsElA6K.js → Slider-CUonOhgJ.js} +4 -4
- package/dist/{Slider-Ci5TU4P4.cjs → Slider-CojrFGb_.cjs} +1 -1
- 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-DS297b1b.js → Switch-8zEBXjF9.js} +2 -2
- package/dist/{Switch-a73y1wiu.cjs → Switch-D6Yh4B_9.cjs} +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-D5vlfecS.js +293 -0
- package/dist/TextInput-IAk1KYb5.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/all.cjs +1 -1
- package/dist/all.mjs +144 -140
- package/dist/component-styles.json +8 -0
- 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/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/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/Grid.vue.d.ts.map +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/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/ShellPanel.vue.d.ts.map +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/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 +111 -109
- 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/ShellPanel.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/_theme-api.scss +31 -13
- package/src/styles/_theme.scss +16 -15
- package/src/styles/grid/_mixins.scss +26 -3
- package/src/styles/grid/index.scss +5 -0
- package/src/styles/logic/_ink.scss +54 -15
- package/dist/Card-B4NIRb5n.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/{BackToTop-D4D0gP59.cjs → BackToTop-BekeNBkd.cjs} +0 -0
- /package/dist/{BackToTop-DppeK48m.js → BackToTop-CgJdrehl.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/{BlueprintControls-D7DPd3is.cjs → BlueprintControls-CSuknRl_.cjs} +0 -0
- /package/dist/{BlueprintControls-BIhfK4EB.js → BlueprintControls-CoI6YQ95.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/{Board-DjY5EzND.cjs → Board-C4pvwydQ.cjs} +0 -0
- /package/dist/{Board-cRf01JoK.js → Board-Dnk3Sn93.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/{BriefingDestination-Qij0wR7I.js → BriefingDestination-BSjBDX-4.js} +0 -0
- /package/dist/{BriefingDestination-CIK7YFt-.cjs → BriefingDestination-Bjo062E8.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/{CopyButton-CAcov6fU.cjs → CopyButton-BRRmpFuP.cjs} +0 -0
- /package/dist/{CopyButton-D0NGQFK0.js → CopyButton-fbE_I72_.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/{FileUploader-DESyfs_1.js → FileUploader-83cZPW3H.js} +0 -0
- /package/dist/{FileUploader-BAvu2PvH.cjs → FileUploader-DwuQVCjI.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/{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/{Shell-Div0nPH6.js → Shell-BUqkz67b.js} +0 -0
- /package/dist/{Shell-BwfS4LOy.cjs → Shell-CixU-_Lh.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/{TableOfContents-DEc2LBKP.cjs → TableOfContents-BKRPPea4.cjs} +0 -0
- /package/dist/{TableOfContents-BYtgdAbp.js → TableOfContents-DP9O7w7I.js} +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/{Video-CKnOZgqI.js → Video-C8s9kdCW.js} +0 -0
- /package/dist/{Video-C1BIM2vN.cjs → Video-D1sAapY7.cjs} +0 -0
- /package/dist/{Walkthrough-DNeWYW_3.cjs → Walkthrough-B5MWEfO0.cjs} +0 -0
- /package/dist/{Walkthrough-s0pVivDn.js → Walkthrough-BMiPIGlt.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
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
@use 'sass:string';
|
|
55
55
|
@use 'accent' as accent;
|
|
56
56
|
@use 'logic' as logic;
|
|
57
|
+
@use 'logic/ink' as ink;
|
|
57
58
|
@use 'variables/categories' as categories;
|
|
58
59
|
|
|
59
60
|
/// The tints every palette colour is expanded into, matching the library's own
|
|
@@ -177,6 +178,7 @@ $a11y-roles:
|
|
|
177
178
|
@if $palette != () or map.keys($light) != () or $light != () {
|
|
178
179
|
[data-nb-theme='#{$id}'] {
|
|
179
180
|
@include _palette($palette);
|
|
181
|
+
@include _ink-reset($light);
|
|
180
182
|
@include _emit($light, $palette);
|
|
181
183
|
}
|
|
182
184
|
}
|
|
@@ -187,31 +189,47 @@ $a11y-roles:
|
|
|
187
189
|
* single-attribute block above, so the dark half wins inside a dark document
|
|
188
190
|
* regardless of the order the stylesheets happen to be concatenated in.
|
|
189
191
|
*/
|
|
190
|
-
@if map.keys($dark) != () or $dark != () {
|
|
192
|
+
@if map.keys($dark) != () or $dark != () or _has-ink($light) {
|
|
191
193
|
.dark[data-nb-theme='#{$id}'],
|
|
192
194
|
.dark [data-nb-theme='#{$id}'] {
|
|
193
|
-
@include _ink-reset($dark);
|
|
195
|
+
@include _ink-reset($dark, $light);
|
|
194
196
|
@include _emit($dark, $palette);
|
|
195
197
|
}
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
200
|
|
|
199
|
-
///
|
|
200
|
-
$
|
|
201
|
+
/// Whether a token map colours any variant that ink applies to.
|
|
202
|
+
@function _has-ink($tokens) {
|
|
203
|
+
@each $variant in ink.$variants {
|
|
204
|
+
@if map.has-key($tokens, $variant) {
|
|
205
|
+
@return true;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
@return false;
|
|
209
|
+
}
|
|
201
210
|
|
|
202
|
-
/// Turns the
|
|
203
|
-
/// colour.
|
|
211
|
+
/// Turns the ink lift off for every variant a theme gives its own colour.
|
|
204
212
|
///
|
|
205
|
-
/// The library's
|
|
206
|
-
///
|
|
207
|
-
///
|
|
208
|
-
///
|
|
209
|
-
///
|
|
213
|
+
/// The library's lifts (`--nb-c-<variant>-ink-lift`, see `logic/_ink.scss`)
|
|
214
|
+
/// are sized for the library's own colours. A theme that picks a colour has
|
|
215
|
+
/// picked it for contrast already (every category accent clears AA on all four
|
|
216
|
+
/// layers of its mode), and moving it further would only wash it out or muddy
|
|
217
|
+
/// it. Emitted before the theme's own keys, so a theme that does want a lift
|
|
210
218
|
/// can still pass `primary-ink-lift` and win.
|
|
211
|
-
|
|
212
|
-
|
|
219
|
+
///
|
|
220
|
+
/// The light scope applies in both modes, so its reset would also reach a dark
|
|
221
|
+
/// document. A variant the theme colours only in light therefore gets the
|
|
222
|
+
/// library's dark lift back in the dark scope: its light colour is what shows
|
|
223
|
+
/// there, and it was not picked for a dark layer.
|
|
224
|
+
///
|
|
225
|
+
/// @param {Map} $tokens - the mode being emitted
|
|
226
|
+
/// @param {Map} $light - the light map, when emitting the dark scope
|
|
227
|
+
@mixin _ink-reset($tokens, $light: ()) {
|
|
228
|
+
@each $variant in ink.$variants {
|
|
213
229
|
@if map.has-key($tokens, $variant) {
|
|
214
230
|
--nb-c-#{$variant}-ink-lift: 0%;
|
|
231
|
+
} @else if map.has-key($light, $variant) {
|
|
232
|
+
--nb-c-#{$variant}-ink-lift: #{map.get(ink.$dark-lifts, $variant) or 0%};
|
|
215
233
|
}
|
|
216
234
|
}
|
|
217
235
|
}
|
package/src/styles/_theme.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'accent';
|
|
4
|
+
@use 'logic/ink';
|
|
4
5
|
@use 'config';
|
|
5
6
|
@use 'variables/layout';
|
|
6
7
|
@use 'variables/colors';
|
|
@@ -168,6 +169,13 @@
|
|
|
168
169
|
--nb-c-secondary-active: var(--nb-c-plain-black-850);
|
|
169
170
|
--nb-c-secondary-active-a11y: var(--nb-c-plain-black-850-a11y);
|
|
170
171
|
|
|
172
|
+
// Ink: a semantic colour drawn as text or an outline straight onto a
|
|
173
|
+
// layer (an outlined button, a drop-zone label) moves away from the
|
|
174
|
+
// surface, toward black here and toward white in .dark, by a per-variant
|
|
175
|
+
// lift sized for WCAG AA on every layer. See `logic/_ink.scss`.
|
|
176
|
+
--nb-c-ink-toward: var(--nb-c-black);
|
|
177
|
+
@include ink.lifts(ink.$light-lifts);
|
|
178
|
+
|
|
171
179
|
--nb-c-success: var(--nb-c-emerald-reflection-600);
|
|
172
180
|
--nb-c-success-a11y: var(--nb-c-emerald-reflection-600-a11y);
|
|
173
181
|
--nb-c-success-hover: var(--nb-c-emerald-reflection-700);
|
|
@@ -668,12 +676,14 @@
|
|
|
668
676
|
// fighting the components' scoped-style specificity.
|
|
669
677
|
--nb-shell-panel-header-height: calc(var(--nb-base-unit) * 3.5); // 28px
|
|
670
678
|
--nb-shell-panel-gap: 1px; // hairline separator, not a spacing step
|
|
671
|
-
--nb-shell-panel-bg
|
|
672
|
-
|
|
679
|
+
// --nb-shell-panel-bg, -border and -header-border are deliberately NOT
|
|
680
|
+
// declared here. Their defaults read the panel's own layer (`--nb-c-surface`
|
|
681
|
+
// and `--nb-c-border` on the panel), which only resolves on the panel
|
|
682
|
+
// element: declared at :root they froze to layer 1 and every NbShellPanel
|
|
683
|
+
// painted layer 1 wherever it sat. ShellPanel.vue writes the fallbacks.
|
|
673
684
|
// Transparent by default so the header reads as part of the panel; set it
|
|
674
685
|
// when a product wants the header bar tinted against its own content.
|
|
675
686
|
--nb-shell-panel-header-bg: transparent;
|
|
676
|
-
--nb-shell-panel-header-border: 1px solid var(--nb-c-border);
|
|
677
687
|
// How much of the body a bottom panel claims at its intermediate (`default`)
|
|
678
688
|
// size. A share rather than a length: the point of that size is to show part
|
|
679
689
|
// of the panel and part of the page at once, which has to hold at any window
|
|
@@ -912,18 +922,9 @@
|
|
|
912
922
|
colors.get-color('chicken-comb', 400)
|
|
913
923
|
)};
|
|
914
924
|
|
|
915
|
-
// Ink
|
|
916
|
-
|
|
917
|
-
|
|
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%;
|
|
925
|
+
// Ink moves toward white on a dark layer. Lifts in `logic/_ink.scss`.
|
|
926
|
+
--nb-c-ink-toward: var(--nb-c-white);
|
|
927
|
+
@include ink.lifts(ink.$dark-lifts);
|
|
927
928
|
|
|
928
929
|
// Component states
|
|
929
930
|
--nb-c-component-inactive: #{colors.get-color('nouveau-gray', 500)};
|
|
@@ -4,11 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
@mixin generate-styles($prefix) {
|
|
6
6
|
// grid
|
|
7
|
+
//
|
|
8
|
+
// A span is its share of the row minus its share of the gaps, so spans that
|
|
9
|
+
// add up to the full row fit beside each other with the parent's gap
|
|
10
|
+
// between them: 8 + 8 is (100% - gap) / 2 each. The parent tells its
|
|
11
|
+
// children its gap and whether it is laid out as a row (only a row's gap is
|
|
12
|
+
// horizontal) through two custom properties it sets on them directly, below.
|
|
7
13
|
@each $column in common.$var-columns-top {
|
|
8
14
|
&.#{$prefix}grid-#{$column} {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
$span: calc(
|
|
16
|
+
(100% * #{$column}) /
|
|
17
|
+
#{grid.$grid-columns} - var(--nb-grid-parent-gap, 0px) *
|
|
18
|
+
var(--nb-grid-parent-row, 1) *
|
|
19
|
+
#{grid.$grid-columns -
|
|
20
|
+
$column} /
|
|
21
|
+
#{grid.$grid-columns}
|
|
22
|
+
);
|
|
23
|
+
flex-basis: $span;
|
|
24
|
+
max-width: $span;
|
|
25
|
+
min-width: $span;
|
|
12
26
|
}
|
|
13
27
|
}
|
|
14
28
|
@each $column in common.$var-columns-bottom {
|
|
@@ -22,10 +36,16 @@
|
|
|
22
36
|
flex-direction: row;
|
|
23
37
|
// width: 100%;
|
|
24
38
|
// overflow-x: hidden;
|
|
39
|
+
> * {
|
|
40
|
+
--nb-grid-parent-row: 1;
|
|
41
|
+
}
|
|
25
42
|
}
|
|
26
43
|
&.#{$prefix}col {
|
|
27
44
|
flex-direction: column;
|
|
28
45
|
// width: 100%;
|
|
46
|
+
> * {
|
|
47
|
+
--nb-grid-parent-row: 0;
|
|
48
|
+
}
|
|
29
49
|
}
|
|
30
50
|
|
|
31
51
|
// wrap
|
|
@@ -112,6 +132,9 @@
|
|
|
112
132
|
@each $gap in map.keys(grid.$gap-ratios) {
|
|
113
133
|
&.#{$prefix}gap-#{$gap} {
|
|
114
134
|
gap: map.get(grid.$gap-ratios, $gap);
|
|
135
|
+
> * {
|
|
136
|
+
--nb-grid-parent-gap: #{map.get(grid.$gap-ratios, $gap)};
|
|
137
|
+
}
|
|
115
138
|
}
|
|
116
139
|
}
|
|
117
140
|
}
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
@mixin defaults-root-styles {
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
display: flex;
|
|
12
|
+
// A grid without a gap class has no gap for its spans to share, whatever
|
|
13
|
+
// the grid around it uses. Its gap class, being more specific, sets it.
|
|
14
|
+
> * {
|
|
15
|
+
--nb-grid-parent-gap: 0px;
|
|
16
|
+
}
|
|
12
17
|
&.flex {
|
|
13
18
|
flex: 1;
|
|
14
19
|
}
|
|
@@ -1,34 +1,73 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
1
3
|
/// A semantic colour drawn as ink: text, an outline or an icon set directly on a
|
|
2
4
|
/// surface, with no fill of its own behind it.
|
|
3
5
|
///
|
|
4
6
|
/// The semantic colours (`--nb-c-primary`, `--nb-c-secondary`, ...) are picked
|
|
5
7
|
/// first as FILLS, with their `-a11y` foreground on top. Drawn straight onto a
|
|
6
|
-
/// surface they are a different pair, and
|
|
7
|
-
///
|
|
8
|
-
///
|
|
9
|
-
/// the
|
|
8
|
+
/// surface they are a different pair, and several of them do not survive it.
|
|
9
|
+
/// In dark mode the secondary is a mid grey chosen to carry white text, and as
|
|
10
|
+
/// the label of an outlined button it measured 1.21:1 to 2.15:1 on the dark
|
|
11
|
+
/// layers. In light mode the warning amber measured 1.75:1 to 2.06:1, and the
|
|
12
|
+
/// success green 2.69:1 to 3.16:1.
|
|
10
13
|
///
|
|
11
|
-
/// So ink
|
|
12
|
-
///
|
|
13
|
-
///
|
|
14
|
-
///
|
|
15
|
-
///
|
|
16
|
-
///
|
|
14
|
+
/// So ink moves the colour away from the surface: toward
|
|
15
|
+
/// `--nb-c-ink-toward` (black in light mode, white in dark) by
|
|
16
|
+
/// `--nb-c-<variant>-ink-lift`. Each lift is the smallest whole value that
|
|
17
|
+
/// clears WCAG AA (4.5:1) on all four layers of its theme, and on the 8% hover
|
|
18
|
+
/// and 14% pressed washes an outlined button paints under its own label, plus
|
|
19
|
+
/// two points of margin. A variant that already clears it has no lift.
|
|
20
|
+
/// `tests/inkContrast.test.ts` measures every one.
|
|
17
21
|
///
|
|
18
22
|
/// The mix is resolved on the element that paints, not at `:root`, so a product
|
|
19
23
|
/// that re-points `--nb-c-primary` (on `:root` or on a themed subtree) gets ITS
|
|
20
|
-
/// primary
|
|
21
|
-
///
|
|
22
|
-
/// colour for contrast already (see `theme()` in `_theme-api.scss`).
|
|
24
|
+
/// primary moved, never the library's. A named theme that sets its own colour
|
|
25
|
+
/// for a variant resets that variant's lift to 0% in that mode, because it chose
|
|
26
|
+
/// that colour for contrast already (see `theme()` in `_theme-api.scss`).
|
|
23
27
|
///
|
|
28
|
+
/// @group @nubisco/colors
|
|
29
|
+
|
|
30
|
+
/// Light-theme lifts, toward black.
|
|
31
|
+
/// @type Map
|
|
32
|
+
$light-lifts: (
|
|
33
|
+
success: 34%,
|
|
34
|
+
info: 14%,
|
|
35
|
+
warning: 46%,
|
|
36
|
+
danger: 22%,
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
/// Dark-theme lifts, toward white.
|
|
40
|
+
/// @type Map
|
|
41
|
+
$dark-lifts: (
|
|
42
|
+
primary: 48%,
|
|
43
|
+
secondary: 56%,
|
|
44
|
+
success: 21%,
|
|
45
|
+
info: 43%,
|
|
46
|
+
warning: 6%,
|
|
47
|
+
danger: 46%,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
/// The variants ink applies to.
|
|
51
|
+
$variants: primary, secondary, success, info, warning, danger;
|
|
52
|
+
|
|
53
|
+
/// Declares one theme's lifts. Variants absent from the map get 0%, written
|
|
54
|
+
/// out, so a theme scope never inherits the other mode's value.
|
|
55
|
+
///
|
|
56
|
+
/// @param {Map} $lifts - `$light-lifts` or `$dark-lifts`
|
|
57
|
+
@mixin lifts($lifts) {
|
|
58
|
+
@each $variant in $variants {
|
|
59
|
+
--nb-c-#{$variant}-ink-lift: #{map.get($lifts, $variant) or 0%};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
24
63
|
/// @param {String} $variant - primary, secondary, success, info, warning or danger
|
|
25
64
|
/// @return {String} a `color-mix()` expression
|
|
26
65
|
/// @access public
|
|
27
|
-
/// @group @nubisco/colors
|
|
28
66
|
@function ink($variant) {
|
|
29
67
|
@return color-mix(
|
|
30
68
|
in srgb,
|
|
31
69
|
var(--nb-c-#{$variant}),
|
|
32
|
-
var(--nb-c-
|
|
70
|
+
var(--nb-c-ink-toward, var(--nb-c-white))
|
|
71
|
+
var(--nb-c-#{$variant}-ink-lift, 0%)
|
|
33
72
|
);
|
|
34
73
|
}
|
package/dist/Card-B4NIRb5n.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`),n=require(`./composables/useSurfaceLayer.composable.cjs`);let r=require(`vue`);var i={key:0,class:`nb-card__icon`},a={class:`nb-card__head`},o={class:`nb-card__title`},s={key:0,class:`nb-card__subtitle`},c={key:1,class:`nb-card__body`},l={key:2,class:`nb-card__footer`},u=(0,r.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:u}){let d=e,f=u,{layerProps:p}=n.useSurfaceLayer(),m=(0,r.computed)(()=>!!d.href&&!d.disabled),h=(0,r.computed)(()=>(m.value||d.clickable)&&!d.disabled),g=(0,r.computed)(()=>m.value?`a`:(d.clickable,`div`)),_=(0,r.computed)(()=>m.value?{href:d.href,target:d.target,rel:d.target===`_blank`?`noopener`:void 0}:d.clickable&&!d.disabled?{role:`button`,tabindex:0,"aria-pressed":d.selected?!0:void 0}:{});function v(){!d.clickable||d.disabled||m.value||f(`select`)}function y(e){!d.clickable||d.disabled||m.value||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),f(`select`))}return(n,u)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(g.value),(0,r.mergeProps)({class:[`nb-card`,{"nb-card--interactive":h.value,"nb-card--selected":e.selected,"nb-card--disabled":e.disabled}]},{..._.value,...(0,r.unref)(p)},{onClick:v,onKeydown:y}),{default:(0,r.withCtx)(()=>[e.icon||n.$slots.icon?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,i,[(0,r.renderSlot)(n.$slots,`icon`,{},()=>[(0,r.createVNode)(t.t,{name:e.icon,size:20,"aria-hidden":`true`},null,8,[`name`])],!0)])):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`div`,a,[(0,r.createElementVNode)(`span`,o,[(0,r.renderSlot)(n.$slots,`title`,{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)],!0)]),e.subtitle||n.$slots.subtitle?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,[(0,r.renderSlot)(n.$slots,`subtitle`,{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.subtitle),1)],!0)])):(0,r.createCommentVNode)(``,!0)]),n.$slots.default?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,c,[(0,r.renderSlot)(n.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0),n.$slots.footer?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,l,[(0,r.renderSlot)(n.$slots,`footer`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)]),_:3},16,[`class`]))}}),d=e.t(u,[[`__scopeId`,`data-v-1accde78`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -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
|