@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.
Files changed (480) hide show
  1. package/dist/{ActionGroup-BepLbLUB.js → ActionGroup-BTCKhtoQ.js} +1 -1
  2. package/dist/{ActionGroup-CPJcdC_x.cjs → ActionGroup-Bke1hEXW.cjs} +1 -1
  3. package/dist/{AiLabel-CGxUTm-X.js → AiLabel--bFL3RGP.js} +1 -1
  4. package/dist/{AiLabel-BMeJMSLm.cjs → AiLabel-oCXAwOV7.cjs} +1 -1
  5. package/dist/{AiProvider-ueSRHZ4d.cjs → AiProvider-Hcn5HI7d.cjs} +1 -1
  6. package/dist/{AiProvider-CkzXTd_m.js → AiProvider-e52qwD9B.js} +6 -6
  7. package/dist/{AiUsage-CCMQdmZv.cjs → AiUsage-62kxTT8F.cjs} +1 -1
  8. package/dist/{AiUsage-q_WU2toP.js → AiUsage-D1xgxa2C.js} +2 -2
  9. package/dist/{BackToTop-Bep47dq4.cjs → BackToTop-BekeNBkd.cjs} +1 -1
  10. package/dist/{BackToTop-DwInsaIf.js → BackToTop-CgJdrehl.js} +1 -1
  11. package/dist/{BarChart-CV1GzXgj.cjs → BarChart-Ci0qaOZm.cjs} +1 -1
  12. package/dist/{BarChart-DWH40Q0_.js → BarChart-DF9C-09O.js} +4 -4
  13. package/dist/{Blueprint-ZklSOKvo.cjs → Blueprint-CrscH3bU.cjs} +1 -1
  14. package/dist/{Blueprint-CztF1C7M.js → Blueprint-DGqjK9oB.js} +2 -2
  15. package/dist/{BlueprintCard-DfbiDxaX.cjs → BlueprintCard-CRcMUcbC.cjs} +1 -1
  16. package/dist/{BlueprintCard-DeQe5F9O.js → BlueprintCard-CrLvovri.js} +1 -1
  17. package/dist/{BlueprintControls-DqzA7vVR.cjs → BlueprintControls-CSuknRl_.cjs} +1 -1
  18. package/dist/{BlueprintControls-OPbXEOlE.js → BlueprintControls-CoI6YQ95.js} +1 -1
  19. package/dist/{Board-CoxZg27T.cjs → Board-C4pvwydQ.cjs} +1 -1
  20. package/dist/{Board-CTjk-pTy.js → Board-Dnk3Sn93.js} +1 -1
  21. package/dist/{Briefing-Ce2nPMi-.js → Briefing-B3DkTnx2.js} +3 -3
  22. package/dist/{Briefing-B_D0X4pk.cjs → Briefing-j9BVOjgG.cjs} +1 -1
  23. package/dist/{BriefingDestination-D_IHVo71.js → BriefingDestination-BSjBDX-4.js} +1 -1
  24. package/dist/{BriefingDestination-Md4A2sPI.cjs → BriefingDestination-Bjo062E8.cjs} +1 -1
  25. package/dist/{Button-Cq9dEeHz.js → Button-BHlNXmBr.js} +1 -1
  26. package/dist/{Button-CbQyG-jg.cjs → Button-bQHEUhzc.cjs} +1 -1
  27. package/dist/Card-4l_DbIKC.cjs +1 -0
  28. package/dist/Card-BBXSjH58.js +74 -0
  29. package/dist/Card.link-CPtMC-Hu.cjs +1 -0
  30. package/dist/Card.link-CfeswzHY.js +37 -0
  31. package/dist/{Checkbox-Cj70wwUV.js → Checkbox-ColjurT5.js} +1 -1
  32. package/dist/{Checkbox-B0VPSJBY.cjs → Checkbox-hoojePrb.cjs} +1 -1
  33. package/dist/{CheckboxGroup-CzpbYjaA.js → CheckboxGroup-B6UmmUpN.js} +3 -3
  34. package/dist/{CheckboxGroup-CzhomyRH.cjs → CheckboxGroup-DRTRfYnm.cjs} +1 -1
  35. package/dist/{ColorStrip-C6KK7RMa.js → ColorStrip-BU-ulOHD.js} +2 -2
  36. package/dist/{ColorStrip-CjNDptlR.cjs → ColorStrip-BYyRIRcm.cjs} +1 -1
  37. package/dist/{Confirm-CpufclnJ.js → Confirm-D4efGS9N.js} +4 -4
  38. package/dist/{Confirm-9xk3l58e.cjs → Confirm-dbr67RaT.cjs} +1 -1
  39. package/dist/{CopyButton-rEPzSx4v.cjs → CopyButton-BRRmpFuP.cjs} +1 -1
  40. package/dist/{CopyButton-DRpVCGXL.js → CopyButton-fbE_I72_.js} +1 -1
  41. package/dist/{DataTable-OfThpfks.cjs → DataTable-CEn_t_gK.cjs} +1 -1
  42. package/dist/{DataTable-7mjrUxT9.js → DataTable-Crff50H9.js} +3 -3
  43. package/dist/{DatePicker-DIdEzzsG.cjs → DatePicker-BE8UNh5e.cjs} +1 -1
  44. package/dist/{DatePicker-ZiWlM0Ee.js → DatePicker-DdC1K_r4.js} +3 -3
  45. package/dist/{FileUploader-C9UH-Z55.js → FileUploader-83cZPW3H.js} +2 -2
  46. package/dist/{FileUploader-CBymiita.cjs → FileUploader-DwuQVCjI.cjs} +1 -1
  47. package/dist/{Form-BPVpxTZQ.js → Form-C6D7J3uE.js} +1 -1
  48. package/dist/{Form-BeYswpJM.cjs → Form-CCIMliw5.cjs} +1 -1
  49. package/dist/{GanttChart-DSiFcLIL.cjs → GanttChart-C2ql59iv.cjs} +1 -1
  50. package/dist/{GanttChart-CBNjVceP.js → GanttChart-tHaks3Qu.js} +3 -3
  51. package/dist/{ImageCropper-BC4pRMRj.js → ImageCropper-BdB5u2KL.js} +2 -2
  52. package/dist/{ImageCropper-BIDxE4N-.cjs → ImageCropper-ujxFwNFt.cjs} +1 -1
  53. package/dist/{InlineLoading-C06ETzoT.js → InlineLoading-Cs5QZd9l.js} +1 -1
  54. package/dist/{InlineLoading-DdgaHvhk.cjs → InlineLoading-DTni8I9v.cjs} +1 -1
  55. package/dist/{InterpolationChart-CW6jsxbG.cjs → InterpolationChart-CezKg7nG.cjs} +1 -1
  56. package/dist/{InterpolationChart-B5c9PPgm.js → InterpolationChart-x2yvZUFf.js} +3 -3
  57. package/dist/{LineChart-DrEv3pAe.js → LineChart-A2so8GBH.js} +4 -4
  58. package/dist/{LineChart-BceHLI2r.cjs → LineChart-DnYgeNPe.cjs} +1 -1
  59. package/dist/{Modal-Dffb6fJW.cjs → Modal-B5o-iCST.cjs} +1 -1
  60. package/dist/{Modal-BrnJwgh5.js → Modal-DmNuqKOf.js} +2 -2
  61. package/dist/{NotificationCenter-DMIqGkxv.js → NotificationCenter-3a6Ka6f0.js} +5 -5
  62. package/dist/{NotificationCenter-_v_X9zLG.cjs → NotificationCenter-BdQvSMWC.cjs} +1 -1
  63. package/dist/{NumberInput-BwiFF9bx.js → NumberInput-DgjZDq0n.js} +2 -2
  64. package/dist/{NumberInput-BooE-zqh.cjs → NumberInput-DpPVxENr.cjs} +1 -1
  65. package/dist/{Pagination-DX4XgQZM.cjs → Pagination-DC0orqR2.cjs} +1 -1
  66. package/dist/{Pagination-D5By9-m3.js → Pagination-R0xsDurI.js} +2 -2
  67. package/dist/{PieChart-njhwQKaO.cjs → PieChart-C3MInQWP.cjs} +1 -1
  68. package/dist/{PieChart-DaskwoU5.js → PieChart-DnGl86Lc.js} +3 -3
  69. package/dist/ProgressBar-CnVdi3l4.cjs +1 -0
  70. package/dist/{ProgressBar-ClKgPiWo.js → ProgressBar-DFtOp3I-.js} +8 -4
  71. package/dist/{Radio-CFAdCHBt.js → Radio-CgsnwzDy.js} +3 -3
  72. package/dist/{Radio-D7vxGglR.cjs → Radio-DYXyO8tN.cjs} +1 -1
  73. package/dist/{Select-CHuZfqLt.cjs → Select-CjkBXtFi.cjs} +1 -1
  74. package/dist/{Select-CwO5aX8j.js → Select-Rt3Y2VD4.js} +3 -3
  75. package/dist/{Shell-qpPhxpqT.js → Shell-BUqkz67b.js} +1 -1
  76. package/dist/{Shell-CxZZhH9l.cjs → Shell-CixU-_Lh.cjs} +1 -1
  77. package/dist/{SidebarCollapseToggle-xbeMvxja.js → SidebarCollapseToggle-1Od8XvzB.js} +2 -2
  78. package/dist/{SidebarCollapseToggle-CcxDjKZU.cjs → SidebarCollapseToggle-D3upA4VD.cjs} +1 -1
  79. package/dist/{SidebarHeaderToggle-B5QC_zBy.js → SidebarHeaderToggle-BFxmHAl9.js} +1 -1
  80. package/dist/{SidebarHeaderToggle-CuYM063E.cjs → SidebarHeaderToggle-CHkcVjY7.cjs} +1 -1
  81. package/dist/{Skeleton-Bc9jsinl.cjs → Skeleton-CSRjBPVt.cjs} +1 -1
  82. package/dist/{Skeleton-C3VaNLNl.js → Skeleton-TgkyQXSq.js} +1 -1
  83. package/dist/{Slider-Ci5TU4P4.cjs → Slider-NUU1SB6V.cjs} +1 -1
  84. package/dist/{Slider-BtsElA6K.js → Slider-YLBEViRc.js} +4 -4
  85. package/dist/{Spinner-JayAXEyd.cjs → Spinner-BPC4GV2R.cjs} +1 -1
  86. package/dist/{Spinner-C5ouuwn-.js → Spinner-DT8nD53U.js} +1 -1
  87. package/dist/Stat-CHBimwPd.cjs +1 -0
  88. package/dist/Stat-DqRpuO4B.js +101 -0
  89. package/dist/{Stepper-C9eHMZ8V.cjs → Stepper-CHRsH26g.cjs} +1 -1
  90. package/dist/{Stepper-BFdO3sQI.js → Stepper-Do9WOdhu.js} +1 -1
  91. package/dist/{StepperStep-Byw4EBRA.cjs → StepperStep-8Z1ERb7I.cjs} +1 -1
  92. package/dist/{StepperStep-DSr3MyH5.js → StepperStep-AGFO5cKL.js} +1 -1
  93. package/dist/SuggestionList-BdFhF0fM.cjs +1 -0
  94. package/dist/SuggestionList-CTJEWb2x.js +170 -0
  95. package/dist/{Switch-a73y1wiu.cjs → Switch-BNIi6Xxq.cjs} +1 -1
  96. package/dist/{Switch-DS297b1b.js → Switch-CZUy_hrg.js} +2 -2
  97. package/dist/{TableOfContents-DigLeDNO.cjs → TableOfContents-BKRPPea4.cjs} +1 -1
  98. package/dist/{TableOfContents-VZjSntV4.js → TableOfContents-DP9O7w7I.js} +1 -1
  99. package/dist/{Tabs-DEq0xEZB.js → Tabs-C-vp8-s1.js} +1 -1
  100. package/dist/{Tabs-DYtk5VC-.cjs → Tabs-CNZ3LlV1.cjs} +1 -1
  101. package/dist/TextInput-BaRumauo.js +293 -0
  102. package/dist/TextInput-bj61DMdd.cjs +2 -0
  103. package/dist/TextInput.context-kCqQ5HWv.cjs +1 -0
  104. package/dist/TextInput.context-qkmg5Mpm.js +4 -0
  105. package/dist/{Toaster-uheAMTLu.js → Toaster-BHcDHheK.js} +1 -1
  106. package/dist/{Toaster-tkwHvYWX.cjs → Toaster-BkxXz6XR.cjs} +1 -1
  107. package/dist/{Tree-948eRw61.js → Tree-B0-bRZLF.js} +1 -1
  108. package/dist/{Tree-r1tGxoQV.cjs → Tree-DHLVF8eV.cjs} +1 -1
  109. package/dist/{TreeNode-C-APuzeJ.js → TreeNode-CjXf_kJH.js} +1 -1
  110. package/dist/{TreeNode-CXIk7R6w.cjs → TreeNode-ixiFKZpi.cjs} +1 -1
  111. package/dist/{UserMenu-4X_d62Uo.cjs → UserMenu-1BiJ1Q6k.cjs} +1 -1
  112. package/dist/{UserMenu-B9WJ5t5y.js → UserMenu-D09PImNx.js} +3 -3
  113. package/dist/{Video-C6KUqrBg.js → Video-C8s9kdCW.js} +1 -1
  114. package/dist/{Video-B-RuZL-9.cjs → Video-D1sAapY7.cjs} +1 -1
  115. package/dist/{Walkthrough-BO9mRfuC.cjs → Walkthrough-B5MWEfO0.cjs} +1 -1
  116. package/dist/{Walkthrough-BA-MrcaO.js → Walkthrough-BMiPIGlt.js} +1 -1
  117. package/dist/all.cjs +1 -1
  118. package/dist/all.mjs +146 -142
  119. package/dist/component-styles.json +8 -0
  120. package/dist/components/ActionGroup.cjs +1 -1
  121. package/dist/components/ActionGroup.mjs +1 -1
  122. package/dist/components/AiLabel.cjs +1 -1
  123. package/dist/components/AiLabel.mjs +1 -1
  124. package/dist/components/AiProvider.cjs +1 -1
  125. package/dist/components/AiProvider.mjs +1 -1
  126. package/dist/components/AiUsage.cjs +1 -1
  127. package/dist/components/AiUsage.mjs +1 -1
  128. package/dist/components/Avatar.cjs +1 -1
  129. package/dist/components/Avatar.mjs +1 -1
  130. package/dist/components/BackToTop.cjs +1 -1
  131. package/dist/components/BackToTop.mjs +1 -1
  132. package/dist/components/Badge.cjs +1 -1
  133. package/dist/components/Badge.mjs +1 -1
  134. package/dist/components/Banner.cjs +1 -1
  135. package/dist/components/Banner.mjs +1 -1
  136. package/dist/components/Blueprint.cjs +1 -1
  137. package/dist/components/Blueprint.mjs +1 -1
  138. package/dist/components/BlueprintBackground.cjs +1 -1
  139. package/dist/components/BlueprintBackground.mjs +1 -1
  140. package/dist/components/BlueprintCard.cjs +1 -1
  141. package/dist/components/BlueprintCard.mjs +1 -1
  142. package/dist/components/BlueprintControls.cjs +1 -1
  143. package/dist/components/BlueprintControls.mjs +1 -1
  144. package/dist/components/BlueprintMinimap.cjs +1 -1
  145. package/dist/components/BlueprintMinimap.mjs +1 -1
  146. package/dist/components/Board.cjs +1 -1
  147. package/dist/components/Board.mjs +1 -1
  148. package/dist/components/BottomPanel.cjs +1 -1
  149. package/dist/components/BottomPanel.mjs +1 -1
  150. package/dist/components/Breadcrumbs.cjs +1 -1
  151. package/dist/components/Breadcrumbs.mjs +1 -1
  152. package/dist/components/Briefing.cjs +1 -1
  153. package/dist/components/Briefing.mjs +1 -1
  154. package/dist/components/BriefingDestination.cjs +1 -1
  155. package/dist/components/BriefingDestination.mjs +1 -1
  156. package/dist/components/Button.cjs +1 -1
  157. package/dist/components/Button.mjs +1 -1
  158. package/dist/components/Button.vue.d.ts.map +1 -1
  159. package/dist/components/Calendar.cjs +1 -1
  160. package/dist/components/Calendar.mjs +1 -1
  161. package/dist/components/Card.cjs +1 -1
  162. package/dist/components/Card.link.d.ts +38 -0
  163. package/dist/components/Card.link.d.ts.map +1 -0
  164. package/dist/components/Card.mjs +1 -1
  165. package/dist/components/Card.vue.d.ts +1 -0
  166. package/dist/components/Card.vue.d.ts.map +1 -1
  167. package/dist/components/CardGrid.cjs +1 -1
  168. package/dist/components/CardGrid.d.ts +10 -2
  169. package/dist/components/CardGrid.mjs +1 -1
  170. package/dist/components/Charts/BarChart.cjs +1 -1
  171. package/dist/components/Charts/BarChart.mjs +1 -1
  172. package/dist/components/Charts/GanttChart.cjs +1 -1
  173. package/dist/components/Charts/GanttChart.mjs +1 -1
  174. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  175. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  176. package/dist/components/Charts/LineChart.cjs +1 -1
  177. package/dist/components/Charts/LineChart.mjs +1 -1
  178. package/dist/components/Charts/PieChart.cjs +1 -1
  179. package/dist/components/Charts/PieChart.mjs +1 -1
  180. package/dist/components/Charts/Sparkline.cjs +1 -1
  181. package/dist/components/Charts/Sparkline.mjs +1 -1
  182. package/dist/components/Checkbox.cjs +1 -1
  183. package/dist/components/Checkbox.mjs +1 -1
  184. package/dist/components/CheckboxGroup.cjs +1 -1
  185. package/dist/components/CheckboxGroup.mjs +1 -1
  186. package/dist/components/ColorStrip.cjs +1 -1
  187. package/dist/components/ColorStrip.mjs +1 -1
  188. package/dist/components/CommandPalette.cjs +1 -1
  189. package/dist/components/CommandPalette.mjs +1 -1
  190. package/dist/components/Confirm.cjs +1 -1
  191. package/dist/components/Confirm.mjs +1 -1
  192. package/dist/components/CopyButton.cjs +1 -1
  193. package/dist/components/CopyButton.mjs +1 -1
  194. package/dist/components/DataTable.cjs +1 -1
  195. package/dist/components/DataTable.mjs +1 -1
  196. package/dist/components/DatePicker.cjs +1 -1
  197. package/dist/components/DatePicker.mjs +1 -1
  198. package/dist/components/DefinitionList.cjs +1 -1
  199. package/dist/components/DefinitionList.mjs +1 -1
  200. package/dist/components/DefinitionListItem.cjs +1 -1
  201. package/dist/components/DefinitionListItem.mjs +1 -1
  202. package/dist/components/DragHandle.cjs +1 -1
  203. package/dist/components/DragHandle.mjs +1 -1
  204. package/dist/components/EmptyState.cjs +1 -1
  205. package/dist/components/EmptyState.mjs +1 -1
  206. package/dist/components/Field.cjs +1 -1
  207. package/dist/components/Field.mjs +1 -1
  208. package/dist/components/FileUploader.cjs +1 -1
  209. package/dist/components/FileUploader.mjs +1 -1
  210. package/dist/components/FileUploader.vue.d.ts.map +1 -1
  211. package/dist/components/Flag.cjs +1 -1
  212. package/dist/components/Flag.mjs +1 -1
  213. package/dist/components/FloatingToolbar.cjs +1 -1
  214. package/dist/components/FloatingToolbar.mjs +1 -1
  215. package/dist/components/Form.cjs +1 -1
  216. package/dist/components/Form.mjs +1 -1
  217. package/dist/components/Grid.cjs +1 -1
  218. package/dist/components/Grid.mjs +1 -1
  219. package/dist/components/ImageCropper.cjs +1 -1
  220. package/dist/components/ImageCropper.mjs +1 -1
  221. package/dist/components/InlineEdit.cjs +1 -1
  222. package/dist/components/InlineEdit.mjs +1 -1
  223. package/dist/components/InlineLoading.cjs +1 -1
  224. package/dist/components/InlineLoading.mjs +1 -1
  225. package/dist/components/JsonTree.cjs +1 -1
  226. package/dist/components/JsonTree.mjs +1 -1
  227. package/dist/components/Label.cjs +1 -1
  228. package/dist/components/Label.mjs +1 -1
  229. package/dist/components/Layer.cjs +1 -1
  230. package/dist/components/Layer.mjs +1 -1
  231. package/dist/components/MenuBar.cjs +1 -1
  232. package/dist/components/MenuBar.mjs +1 -1
  233. package/dist/components/MenuBarItem.cjs +1 -1
  234. package/dist/components/MenuBarItem.mjs +1 -1
  235. package/dist/components/MenuDivider.cjs +1 -1
  236. package/dist/components/MenuDivider.mjs +1 -1
  237. package/dist/components/Message.cjs +1 -1
  238. package/dist/components/Message.mjs +1 -1
  239. package/dist/components/Modal.cjs +1 -1
  240. package/dist/components/Modal.mjs +1 -1
  241. package/dist/components/NotificationCenter.cjs +1 -1
  242. package/dist/components/NotificationCenter.mjs +1 -1
  243. package/dist/components/NotificationCenterItem.cjs +1 -1
  244. package/dist/components/NotificationCenterItem.mjs +1 -1
  245. package/dist/components/NubiscoMark.cjs +1 -1
  246. package/dist/components/NubiscoMark.mjs +1 -1
  247. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  248. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  249. package/dist/components/NumberInput.cjs +1 -1
  250. package/dist/components/NumberInput.mjs +1 -1
  251. package/dist/components/Pagination.cjs +1 -1
  252. package/dist/components/Pagination.mjs +1 -1
  253. package/dist/components/Panel.cjs +1 -1
  254. package/dist/components/Panel.mjs +1 -1
  255. package/dist/components/ProgressBar.cjs +1 -1
  256. package/dist/components/ProgressBar.d.ts +7 -0
  257. package/dist/components/ProgressBar.mjs +1 -1
  258. package/dist/components/ProgressBar.vue.d.ts +1 -0
  259. package/dist/components/ProgressBar.vue.d.ts.map +1 -1
  260. package/dist/components/Radio.cjs +1 -1
  261. package/dist/components/Radio.mjs +1 -1
  262. package/dist/components/Radio.vue.d.ts.map +1 -1
  263. package/dist/components/ReorderList.cjs +1 -1
  264. package/dist/components/ReorderList.mjs +1 -1
  265. package/dist/components/Select.cjs +1 -1
  266. package/dist/components/Select.mjs +1 -1
  267. package/dist/components/Shell.cjs +1 -1
  268. package/dist/components/Shell.mjs +1 -1
  269. package/dist/components/Shell.vue.d.ts.map +1 -1
  270. package/dist/components/ShellPanel.cjs +1 -1
  271. package/dist/components/ShellPanel.mjs +1 -1
  272. package/dist/components/SidebarBrand.cjs +1 -1
  273. package/dist/components/SidebarBrand.mjs +1 -1
  274. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  275. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  276. package/dist/components/SidebarHeaderToggle.cjs +1 -1
  277. package/dist/components/SidebarHeaderToggle.mjs +1 -1
  278. package/dist/components/SidebarLink.cjs +1 -1
  279. package/dist/components/SidebarLink.mjs +1 -1
  280. package/dist/components/SidebarMenu.cjs +1 -1
  281. package/dist/components/SidebarMenu.mjs +1 -1
  282. package/dist/components/SidebarMenuGroup.cjs +1 -1
  283. package/dist/components/SidebarMenuGroup.mjs +1 -1
  284. package/dist/components/SidebarMenuItem.cjs +1 -1
  285. package/dist/components/SidebarMenuItem.mjs +1 -1
  286. package/dist/components/SidebarStatus.cjs +1 -1
  287. package/dist/components/SidebarStatus.mjs +1 -1
  288. package/dist/components/Skeleton.cjs +1 -1
  289. package/dist/components/Skeleton.mjs +1 -1
  290. package/dist/components/Slider.cjs +1 -1
  291. package/dist/components/Slider.mjs +1 -1
  292. package/dist/components/Spinner.cjs +1 -1
  293. package/dist/components/Spinner.mjs +1 -1
  294. package/dist/components/Stat.cjs +1 -0
  295. package/dist/components/Stat.d.ts +57 -0
  296. package/dist/components/Stat.mjs +2 -0
  297. package/dist/components/Stat.vue.d.ts +38 -0
  298. package/dist/components/Stat.vue.d.ts.map +1 -0
  299. package/dist/components/Stepper.cjs +1 -1
  300. package/dist/components/Stepper.mjs +1 -1
  301. package/dist/components/StepperStep.cjs +1 -1
  302. package/dist/components/StepperStep.mjs +1 -1
  303. package/dist/components/Submenu.cjs +1 -1
  304. package/dist/components/Submenu.mjs +1 -1
  305. package/dist/components/SuggestionList.cjs +1 -0
  306. package/dist/components/SuggestionList.d.ts +37 -0
  307. package/dist/components/SuggestionList.mjs +2 -0
  308. package/dist/components/SuggestionList.vue.d.ts +35 -0
  309. package/dist/components/SuggestionList.vue.d.ts.map +1 -0
  310. package/dist/components/Switch.cjs +1 -1
  311. package/dist/components/Switch.mjs +1 -1
  312. package/dist/components/TableOfContents.cjs +1 -1
  313. package/dist/components/TableOfContents.mjs +1 -1
  314. package/dist/components/Tabs.cjs +1 -1
  315. package/dist/components/Tabs.mjs +1 -1
  316. package/dist/components/TextInput.cjs +1 -1
  317. package/dist/components/TextInput.context.d.ts +13 -0
  318. package/dist/components/TextInput.context.d.ts.map +1 -0
  319. package/dist/components/TextInput.mjs +1 -1
  320. package/dist/components/TextInput.vue.d.ts +3 -1
  321. package/dist/components/TextInput.vue.d.ts.map +1 -1
  322. package/dist/components/Toast.cjs +1 -1
  323. package/dist/components/Toast.mjs +1 -1
  324. package/dist/components/Toaster.cjs +1 -1
  325. package/dist/components/Toaster.mjs +1 -1
  326. package/dist/components/Tree.cjs +1 -1
  327. package/dist/components/Tree.mjs +1 -1
  328. package/dist/components/TreeNode.cjs +1 -1
  329. package/dist/components/TreeNode.mjs +1 -1
  330. package/dist/components/UserMenu.cjs +1 -1
  331. package/dist/components/UserMenu.mjs +1 -1
  332. package/dist/components/Video.cjs +1 -1
  333. package/dist/components/Video.mjs +1 -1
  334. package/dist/components/Walkthrough.cjs +1 -1
  335. package/dist/components/Walkthrough.mjs +1 -1
  336. package/dist/components/Wireframe.cjs +1 -1
  337. package/dist/components/Wireframe.mjs +1 -1
  338. package/dist/components/index.d.ts.map +1 -1
  339. package/dist/components/manifest.d.ts +2 -0
  340. package/dist/components/manifest.d.ts.map +1 -1
  341. package/dist/components/manifest.js +2 -0
  342. package/dist/composables/useBlueprint.composable.cjs +1 -1
  343. package/dist/composables/useBlueprint.composable.mjs +1 -1
  344. package/dist/composables/useConfirm.composable.cjs +1 -1
  345. package/dist/composables/useConfirm.composable.mjs +3 -3
  346. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  347. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  348. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  349. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  350. package/dist/global.d.ts +4 -0
  351. package/dist/index.cjs +1 -1
  352. package/dist/index.mjs +113 -111
  353. package/dist/main.d.ts +4 -0
  354. package/dist/main.d.ts.map +1 -1
  355. package/dist/styles/Button.css +1 -1
  356. package/dist/styles/Card.css +1 -1
  357. package/dist/styles/FileUploader.css +1 -1
  358. package/dist/styles/ProgressBar.css +1 -1
  359. package/dist/styles/Radio.css +1 -1
  360. package/dist/styles/Shell.css +1 -1
  361. package/dist/styles/Stat.css +1 -0
  362. package/dist/styles/SuggestionList.css +1 -0
  363. package/dist/styles/TextInput.css +1 -1
  364. package/dist/ui.css +9 -7
  365. package/package.json +1 -1
  366. package/src/styles/_reset.scss +6 -1
  367. package/src/styles/_theme-api.scss +21 -0
  368. package/src/styles/_theme.scss +43 -3
  369. package/src/styles/logic/_ink.scss +34 -0
  370. package/dist/Card-BqIF-svL.js +0 -78
  371. package/dist/Card-Xmv6oz9a.cjs +0 -1
  372. package/dist/ProgressBar-DPMCRM1f.cjs +0 -1
  373. package/dist/TextInput-DmCYZgG0.cjs +0 -2
  374. package/dist/TextInput-HwIhSOJD.js +0 -295
  375. /package/dist/{Avatar-BpPczEa8.cjs → Avatar-DMTs2BnK.cjs} +0 -0
  376. /package/dist/{Avatar-BibgBZuN.js → Avatar-EkPppXcU.js} +0 -0
  377. /package/dist/{Badge-D6nlcs4F.cjs → Badge-Ce3NRrp_.cjs} +0 -0
  378. /package/dist/{Badge-DJx3RZxk.js → Badge-D37sr-14.js} +0 -0
  379. /package/dist/{Banner-r_cdQAMp.js → Banner-Czz07yca.js} +0 -0
  380. /package/dist/{Banner-DQyHNDEP.cjs → Banner-S8WqTTYP.cjs} +0 -0
  381. /package/dist/{Blueprint.context-C-rwu3ut.js → Blueprint.context-BOP7aLQl.js} +0 -0
  382. /package/dist/{Blueprint.context-BJFr4pG6.cjs → Blueprint.context-C0sg1sbm.cjs} +0 -0
  383. /package/dist/{BlueprintBackground-oSRK8gQO.cjs → BlueprintBackground-BpkT_8A8.cjs} +0 -0
  384. /package/dist/{BlueprintBackground-EPvpMCXy.js → BlueprintBackground-Ez4ICRal.js} +0 -0
  385. /package/dist/{BlueprintMinimap-CG62ddGj.cjs → BlueprintMinimap-CWmys37d.cjs} +0 -0
  386. /package/dist/{BlueprintMinimap-CQ_fY0-L.js → BlueprintMinimap-zXf1g5UN.js} +0 -0
  387. /package/dist/{BottomPanel-YpR9NTLe.cjs → BottomPanel-D8z92-SS.cjs} +0 -0
  388. /package/dist/{BottomPanel-woivIctS.js → BottomPanel-xfSCWeN2.js} +0 -0
  389. /package/dist/{Breadcrumbs-B0nEpUik.js → Breadcrumbs-DGcdCThx.js} +0 -0
  390. /package/dist/{Breadcrumbs-B8zyUzRM.cjs → Breadcrumbs-vjfN-lDP.cjs} +0 -0
  391. /package/dist/{Calendar-C2KlJvo5.js → Calendar-BdPVR00d.js} +0 -0
  392. /package/dist/{Calendar-BPYKfErK.cjs → Calendar-Dg3g3h7z.cjs} +0 -0
  393. /package/dist/{CardGrid-BbGLqQmb.cjs → CardGrid-DYF5LaKh.cjs} +0 -0
  394. /package/dist/{CardGrid-CphjVIvE.js → CardGrid-MzpKRH7W.js} +0 -0
  395. /package/dist/{ChartLegend-BtBKVnH3.js → ChartLegend-BythwRMJ.js} +0 -0
  396. /package/dist/{ChartLegend-ndpGucTZ.cjs → ChartLegend-DGUo_MYi.cjs} +0 -0
  397. /package/dist/{CheckboxGroup.context-BWseGFxY.js → CheckboxGroup.context-BXBbxCqM.js} +0 -0
  398. /package/dist/{CheckboxGroup.context-DPq5hmH0.cjs → CheckboxGroup.context-Cq9keYoj.cjs} +0 -0
  399. /package/dist/{CommandPalette-iMOtCNQy.cjs → CommandPalette-CsFZYJBG.cjs} +0 -0
  400. /package/dist/{CommandPalette-DfWRSIQ7.js → CommandPalette-DTl9rvF0.js} +0 -0
  401. /package/dist/{DefinitionList-COgbbyRS.cjs → DefinitionList-DQja72sQ.cjs} +0 -0
  402. /package/dist/{DefinitionList-Xn-f_QhT.js → DefinitionList-DbIcRjHH.js} +0 -0
  403. /package/dist/{DefinitionListItem-ZRjLrhaI.js → DefinitionListItem-Ci0YYnKM.js} +0 -0
  404. /package/dist/{DefinitionListItem-B4bGJJJj.cjs → DefinitionListItem-Cre5iJWK.cjs} +0 -0
  405. /package/dist/{DragHandle-DCm6Mtv9.js → DragHandle-CBfcSRsL.js} +0 -0
  406. /package/dist/{DragHandle-_bikrb5H.cjs → DragHandle-DX3qexW0.cjs} +0 -0
  407. /package/dist/{EmptyState-63UqLFX6.js → EmptyState-CpRnEfbE.js} +0 -0
  408. /package/dist/{EmptyState-CV-UfKR6.cjs → EmptyState-DmBAVLu8.cjs} +0 -0
  409. /package/dist/{Field-DCEukL3E.js → Field-6haRtm1-.js} +0 -0
  410. /package/dist/{Field-M289tArC.cjs → Field-C7JxGz6g.cjs} +0 -0
  411. /package/dist/{Flag-Dc0DtID0.js → Flag-B5E4tHa2.js} +0 -0
  412. /package/dist/{Flag-B5EaQ5Dl.cjs → Flag-Mpl1_r4m.cjs} +0 -0
  413. /package/dist/{FloatingToolbar-Cqx8LnTK.cjs → FloatingToolbar-Bdwzxebh.cjs} +0 -0
  414. /package/dist/{FloatingToolbar-DBC-2FlB.js → FloatingToolbar-Bfe38At4.js} +0 -0
  415. /package/dist/{Grid-D8c0StGs.cjs → Grid-CDrItyQ7.cjs} +0 -0
  416. /package/dist/{Grid-XtnH-vr_.js → Grid-Hbvbu16k.js} +0 -0
  417. /package/dist/{InlineEdit-xdCv1gWm.js → InlineEdit-CBeh3e_w.js} +0 -0
  418. /package/dist/{InlineEdit-_QMSc24F.cjs → InlineEdit-_fLd4ZNk.cjs} +0 -0
  419. /package/dist/{JsonTree-CB1TWqPT.cjs → JsonTree-CjeK5gqm.cjs} +0 -0
  420. /package/dist/{JsonTree-CJ3tk08k.js → JsonTree-DbyC2G2G.js} +0 -0
  421. /package/dist/{Label-CVCNXFn1.cjs → Label-71QAuWf4.cjs} +0 -0
  422. /package/dist/{Label-ciCAG21-.js → Label-BEW_5nYq.js} +0 -0
  423. /package/dist/{Layer-CKmhBz7s.js → Layer-BLOx5Oh8.js} +0 -0
  424. /package/dist/{Layer-rgAWsfwJ.cjs → Layer-DOnWnKYV.cjs} +0 -0
  425. /package/dist/{MenuBar-C4j3ytQu.cjs → MenuBar-Bdz7lk2r.cjs} +0 -0
  426. /package/dist/{MenuBar-Dx_v4ZPi.js → MenuBar-BrOsK3Qa.js} +0 -0
  427. /package/dist/{MenuBarItem-DMY6OdWn.js → MenuBarItem-BlRZXDnm.js} +0 -0
  428. /package/dist/{MenuBarItem-BvWV59vi.cjs → MenuBarItem-DCArqyTW.cjs} +0 -0
  429. /package/dist/{MenuDivider-CRvC2uO4.cjs → MenuDivider-Bz7uGAPE.cjs} +0 -0
  430. /package/dist/{MenuDivider-BYKt84Gz.js → MenuDivider-CEeFfvpa.js} +0 -0
  431. /package/dist/{Message-Cecz48PA.js → Message-DPv6St5M.js} +0 -0
  432. /package/dist/{Message-VfpaGblO.cjs → Message-vFr_gB2V.cjs} +0 -0
  433. /package/dist/{NotificationCenterItem-DD5LnGg8.js → NotificationCenterItem-DOEvOsiy.js} +0 -0
  434. /package/dist/{NotificationCenterItem-NKH3y8HB.cjs → NotificationCenterItem-hSxc82yG.cjs} +0 -0
  435. /package/dist/{NubiscoMark-DgzvBHAd.js → NubiscoMark-BGi9b3YU.js} +0 -0
  436. /package/dist/{NubiscoMark-D4-pm2EX.cjs → NubiscoMark-DH9Ngmod.cjs} +0 -0
  437. /package/dist/{NubiscoPlatformMark-CayXaZGB.js → NubiscoPlatformMark-C6WbipA4.js} +0 -0
  438. /package/dist/{NubiscoPlatformMark-DV2XeqiT.cjs → NubiscoPlatformMark-ddkDJ0AU.cjs} +0 -0
  439. /package/dist/{Panel-Drfi9pqS.js → Panel-B3kJkm_w.js} +0 -0
  440. /package/dist/{Panel-valtWFWI.cjs → Panel-DKp-aPUn.cjs} +0 -0
  441. /package/dist/{ReorderList-BdHgEL4G.cjs → ReorderList-BpJaGDDA.cjs} +0 -0
  442. /package/dist/{ReorderList-BDLxDc6t.js → ReorderList-DvPkvpFU.js} +0 -0
  443. /package/dist/{ShellPanel-Hpm-eBqt.js → ShellPanel-6slzyDrP.js} +0 -0
  444. /package/dist/{ShellPanel-CQaXYB20.cjs → ShellPanel-7EmMevry.cjs} +0 -0
  445. /package/dist/{SidebarBrand-BThjow9_.js → SidebarBrand-Bvfoqveo.js} +0 -0
  446. /package/dist/{SidebarBrand-UfpenlDY.cjs → SidebarBrand-DgGfdnZE.cjs} +0 -0
  447. /package/dist/{SidebarLink-Bl-Sj2nx.js → SidebarLink-CXCdVrWM.js} +0 -0
  448. /package/dist/{SidebarLink-CwmNyhlK.cjs → SidebarLink-DaZrlrLZ.cjs} +0 -0
  449. /package/dist/{SidebarMenu-CWFsKG2j.cjs → SidebarMenu-N9opcSs0.cjs} +0 -0
  450. /package/dist/{SidebarMenu-D8-2usxB.js → SidebarMenu-ippvct70.js} +0 -0
  451. /package/dist/{SidebarMenuGroup-DDW1MQYi.cjs → SidebarMenuGroup-BTE6pzU7.cjs} +0 -0
  452. /package/dist/{SidebarMenuGroup-CxsPzWRO.js → SidebarMenuGroup-BWjJE_SN.js} +0 -0
  453. /package/dist/{SidebarMenuItem-C_JHC7Yt.cjs → SidebarMenuItem-BebyqOzN.cjs} +0 -0
  454. /package/dist/{SidebarMenuItem-Bz7iZxp4.js → SidebarMenuItem-CjtylCV1.js} +0 -0
  455. /package/dist/{SidebarStatus-DS2lYq12.cjs → SidebarStatus-8xHtWS22.cjs} +0 -0
  456. /package/dist/{SidebarStatus-dCli4_vh.js → SidebarStatus-DxJwYk3n.js} +0 -0
  457. /package/dist/{Sparkline-DAtjfUpM.cjs → Sparkline-DgmOYz7G.cjs} +0 -0
  458. /package/dist/{Sparkline-ebQVLVhY.js → Sparkline-TptJc3Gp.js} +0 -0
  459. /package/dist/{Stepper.context-D6ZX2zXY.js → Stepper.context-BaKuMRsu.js} +0 -0
  460. /package/dist/{Stepper.context-D56VQS_Q.cjs → Stepper.context-vC_Cctnn.cjs} +0 -0
  461. /package/dist/{Submenu-mUsq51XV.js → Submenu-DS2s0NYW.js} +0 -0
  462. /package/dist/{Submenu-DxxFiGqt.cjs → Submenu-Dqgk6Bu2.cjs} +0 -0
  463. /package/dist/{Toast-D666KPCk.cjs → Toast-DJ4m7ct6.cjs} +0 -0
  464. /package/dist/{Toast-Bv4CvhFI.js → Toast-WMeps0Sy.js} +0 -0
  465. /package/dist/{TreeContext-DNHT9WiK.cjs → TreeContext-B73gZjHy.cjs} +0 -0
  466. /package/dist/{TreeContext-BRFV85x7.js → TreeContext-dgGdNVcW.js} +0 -0
  467. /package/dist/{Wireframe-DSvovZjf.js → Wireframe-CT2d4yey.js} +0 -0
  468. /package/dist/{Wireframe-DY1c_O26.cjs → Wireframe-YFaVOmuO.cjs} +0 -0
  469. /package/dist/{palette-BoABA-De.cjs → palette-9NBcW3rl.cjs} +0 -0
  470. /package/dist/{palette-VMXxKICH.js → palette-Cq2Mb9QH.js} +0 -0
  471. /package/dist/{pixi-scene-mdr13T3c.cjs → pixi-scene-DdcmrtpA.cjs} +0 -0
  472. /package/dist/{pixi-scene-CBmqhUr4.js → pixi-scene-tM_RIArI.js} +0 -0
  473. /package/dist/{scales-BWtB8m5D.cjs → scales-Bdgv87s2.cjs} +0 -0
  474. /package/dist/{scales-DVJzRU1F.js → scales-CzvC8OOZ.js} +0 -0
  475. /package/dist/{useChartSize-Dyh37PYP.js → useChartSize-BXgOzSCU.js} +0 -0
  476. /package/dist/{useChartSize-D9UxUkiU.cjs → useChartSize-ByPUvppp.cjs} +0 -0
  477. /package/dist/{useLoadingAnnouncer.composable-BknuRv_m.js → useLoadingAnnouncer.composable-DQEzOEt_.js} +0 -0
  478. /package/dist/{useLoadingAnnouncer.composable-DcBmMSBO.cjs → useLoadingAnnouncer.composable-pW7VKY0k.cjs} +0 -0
  479. /package/dist/{vue-i18n-Dzm-MDw4.js → vue-i18n-BERFm5iG.js} +0 -0
  480. /package/dist/{vue-i18n-B_5xehV9.cjs → vue-i18n-CNxAi_sd.cjs} +0 -0
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Stepper.context-D56VQS_Q.cjs`);let r=require(`vue`);var i=[`id`],a=[`aria-label`],o={class:`nb-stepper__announcement`,role:`status`,"aria-live":`polite`},s=(0,r.defineComponent)({__name:`Stepper`,props:{modelValue:{default:void 0},orientation:{default:n.r.Horizontal},size:{default:n.i.Medium},navigable:{type:Boolean,default:!1},furthest:{default:void 0},ariaLabel:{default:void 0},labels:{default:void 0},announce:{type:Boolean,default:!0},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let c=e,l=s,u=t.useStableId(c),d=(0,r.ref)(null),f={progress:`Progress`,announcement:`Step {step} of {total}: {label}`,complete:`Complete`,current:`Current step`,incomplete:`Not started`,disabled:`Unavailable`,invalid:`Needs attention`},p=(0,r.computed)(()=>({...f,...c.labels??{}})),m=(0,r.ref)(c.modelValue??0),h=(0,r.computed)(()=>c.modelValue===void 0?m.value:c.modelValue),g=(0,r.ref)(h.value);(0,r.watch)(h,e=>{e>g.value&&(g.value=e)});let _=(0,r.computed)(()=>c.furthest??g.value),v=[],y=(0,r.ref)([]);function b(){let e=v.map((e,t)=>({uid:e.uid,node:e.el(),at:t}));e.sort((e,t)=>!e.node||!t.node?e.at-t.at:e.node.compareDocumentPosition(t.node)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let t=e.map(e=>e.uid);(t.length!==y.value.length||t.some((e,t)=>e!==y.value[t]))&&(y.value=t)}function x(e){return v.push(e),b(),()=>{let t=v.findIndex(t=>t.uid===e.uid);t>=0&&v.splice(t,1),b()}}(0,r.onMounted)(b),(0,r.onUpdated)(b);let S=e=>{let t=y.value[e];return v.find(e=>e.uid===t)?.disabled.value??!1};function C(e,t){return!c.navigable||t||e<0||e===h.value?!1:e<=_.value}let w=(0,r.ref)(-1),T=(0,r.computed)(()=>w.value>=0&&C(w.value,S(w.value))?w.value:y.value.findIndex((e,t)=>C(t,S(t)))),E=(0,r.ref)(null);function D(e){let t=e.target;E.value=t;let n=(t?.closest?.(`[data-nb-step]`))?.dataset?.nbStep;if(!n)return;let r=y.value.indexOf(n);r>=0&&(w.value=r)}function O(e){let t=e.relatedTarget;if(t&&d.value?.contains(t))return;if(t){E.value=null;return}let n=e.target;n&&!d.value?.contains(n)&&(E.value=null)}async function k(){let e=E.value;if(!e)return;await(0,r.nextTick)();let t=d.value;if(!t)return;let n=document.activeElement;if(n&&n!==document.body&&t.contains(n))return;if(e.isConnected&&t.contains(e)&&e.matches(`[data-nb-stepper-button]`)){e.focus();return}let i=N();if(!i.length){E.value=null;return}let a=y.value[T.value],o=i.find(e=>e.closest(`[data-nb-step]`)?.dataset.nbStep===a)??i[0];o.focus(),E.value=o}function A(e,t){C(e,t)&&(c.modelValue===void 0&&(m.value=e),l(`update:modelValue`,e),l(`change`,e))}(0,r.provide)(n.t,{current:h,furthest:_,orientation:(0,r.toRef)(c,`orientation`),size:(0,r.toRef)(c,`size`),navigable:(0,r.toRef)(c,`navigable`),labels:p,order:y,tabbable:T,register:x,clickable:C,select:A});let j=(0,r.computed)(()=>[`nb-stepper`,`nb-stepper--${c.orientation}`,`nb-stepper--${c.size}`,{"nb-stepper--navigable":c.navigable}]),M=(0,r.ref)(``);(0,r.watch)(h,e=>{let t=y.value[e],n=v.find(e=>e.uid===t)?.el()??null;if(c.announce){let t=n?.querySelector(`.nb-stepper__label`)?.textContent?.trim()??``;M.value=p.value.announcement.replace(`{step}`,String(e+1)).replace(`{total}`,String(y.value.length)).replace(`{label}`,t).replace(/[:,\-\s]+$/,``)}k();let r=d.value;r&&n&&r.scrollWidth>r.clientWidth&&n.scrollIntoView?.({block:`nearest`,inline:`nearest`})});function N(){return Array.from(d.value?.querySelectorAll(`[data-nb-stepper-button]`)??[])}function P(e){let t=N();if(!t.length)return;let n=t.indexOf(document.activeElement);t[((n<0?0:n+e)+t.length)%t.length]?.focus()}function F(e){let t=N();t.length&&(e===`first`?t[0]:t[t.length-1]).focus()}function I(e){let t=c.orientation===n.r.Horizontal;switch(e.key){case`ArrowRight`:if(!t)return;P(1);break;case`ArrowLeft`:if(!t)return;P(-1);break;case`ArrowDown`:if(t)return;P(1);break;case`ArrowUp`:if(t)return;P(-1);break;case`Home`:F(`first`);break;case`End`:F(`last`);break;default:return}e.preventDefault()}return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:(0,r.unref)(u),class:(0,r.normalizeClass)(j.value)},[(0,r.createElementVNode)(`ol`,{ref_key:`listRef`,ref:d,class:`nb-stepper__list`,role:`list`,"aria-label":e.ariaLabel||p.value.progress,onKeydown:I,onFocusin:D,onFocusout:O},[(0,r.renderSlot)(t.$slots,`default`,{},void 0,!0)],40,a),(0,r.createElementVNode)(`p`,o,(0,r.toDisplayString)(M.value),1)],10,i))}}),c=e.t(s,[[`__scopeId`,`data-v-40496e58`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Stepper.context-vC_Cctnn.cjs`);let r=require(`vue`);var i=[`id`],a=[`aria-label`],o={class:`nb-stepper__announcement`,role:`status`,"aria-live":`polite`},s=(0,r.defineComponent)({__name:`Stepper`,props:{modelValue:{default:void 0},orientation:{default:n.r.Horizontal},size:{default:n.i.Medium},navigable:{type:Boolean,default:!1},furthest:{default:void 0},ariaLabel:{default:void 0},labels:{default:void 0},announce:{type:Boolean,default:!0},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let c=e,l=s,u=t.useStableId(c),d=(0,r.ref)(null),f={progress:`Progress`,announcement:`Step {step} of {total}: {label}`,complete:`Complete`,current:`Current step`,incomplete:`Not started`,disabled:`Unavailable`,invalid:`Needs attention`},p=(0,r.computed)(()=>({...f,...c.labels??{}})),m=(0,r.ref)(c.modelValue??0),h=(0,r.computed)(()=>c.modelValue===void 0?m.value:c.modelValue),g=(0,r.ref)(h.value);(0,r.watch)(h,e=>{e>g.value&&(g.value=e)});let _=(0,r.computed)(()=>c.furthest??g.value),v=[],y=(0,r.ref)([]);function b(){let e=v.map((e,t)=>({uid:e.uid,node:e.el(),at:t}));e.sort((e,t)=>!e.node||!t.node?e.at-t.at:e.node.compareDocumentPosition(t.node)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let t=e.map(e=>e.uid);(t.length!==y.value.length||t.some((e,t)=>e!==y.value[t]))&&(y.value=t)}function x(e){return v.push(e),b(),()=>{let t=v.findIndex(t=>t.uid===e.uid);t>=0&&v.splice(t,1),b()}}(0,r.onMounted)(b),(0,r.onUpdated)(b);let S=e=>{let t=y.value[e];return v.find(e=>e.uid===t)?.disabled.value??!1};function C(e,t){return!c.navigable||t||e<0||e===h.value?!1:e<=_.value}let w=(0,r.ref)(-1),T=(0,r.computed)(()=>w.value>=0&&C(w.value,S(w.value))?w.value:y.value.findIndex((e,t)=>C(t,S(t)))),E=(0,r.ref)(null);function D(e){let t=e.target;E.value=t;let n=(t?.closest?.(`[data-nb-step]`))?.dataset?.nbStep;if(!n)return;let r=y.value.indexOf(n);r>=0&&(w.value=r)}function O(e){let t=e.relatedTarget;if(t&&d.value?.contains(t))return;if(t){E.value=null;return}let n=e.target;n&&!d.value?.contains(n)&&(E.value=null)}async function k(){let e=E.value;if(!e)return;await(0,r.nextTick)();let t=d.value;if(!t)return;let n=document.activeElement;if(n&&n!==document.body&&t.contains(n))return;if(e.isConnected&&t.contains(e)&&e.matches(`[data-nb-stepper-button]`)){e.focus();return}let i=N();if(!i.length){E.value=null;return}let a=y.value[T.value],o=i.find(e=>e.closest(`[data-nb-step]`)?.dataset.nbStep===a)??i[0];o.focus(),E.value=o}function A(e,t){C(e,t)&&(c.modelValue===void 0&&(m.value=e),l(`update:modelValue`,e),l(`change`,e))}(0,r.provide)(n.t,{current:h,furthest:_,orientation:(0,r.toRef)(c,`orientation`),size:(0,r.toRef)(c,`size`),navigable:(0,r.toRef)(c,`navigable`),labels:p,order:y,tabbable:T,register:x,clickable:C,select:A});let j=(0,r.computed)(()=>[`nb-stepper`,`nb-stepper--${c.orientation}`,`nb-stepper--${c.size}`,{"nb-stepper--navigable":c.navigable}]),M=(0,r.ref)(``);(0,r.watch)(h,e=>{let t=y.value[e],n=v.find(e=>e.uid===t)?.el()??null;if(c.announce){let t=n?.querySelector(`.nb-stepper__label`)?.textContent?.trim()??``;M.value=p.value.announcement.replace(`{step}`,String(e+1)).replace(`{total}`,String(y.value.length)).replace(`{label}`,t).replace(/[:,\-\s]+$/,``)}k();let r=d.value;r&&n&&r.scrollWidth>r.clientWidth&&n.scrollIntoView?.({block:`nearest`,inline:`nearest`})});function N(){return Array.from(d.value?.querySelectorAll(`[data-nb-stepper-button]`)??[])}function P(e){let t=N();if(!t.length)return;let n=t.indexOf(document.activeElement);t[((n<0?0:n+e)+t.length)%t.length]?.focus()}function F(e){let t=N();t.length&&(e===`first`?t[0]:t[t.length-1]).focus()}function I(e){let t=c.orientation===n.r.Horizontal;switch(e.key){case`ArrowRight`:if(!t)return;P(1);break;case`ArrowLeft`:if(!t)return;P(-1);break;case`ArrowDown`:if(t)return;P(1);break;case`ArrowUp`:if(t)return;P(-1);break;case`Home`:F(`first`);break;case`End`:F(`last`);break;default:return}e.preventDefault()}return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:(0,r.unref)(u),class:(0,r.normalizeClass)(j.value)},[(0,r.createElementVNode)(`ol`,{ref_key:`listRef`,ref:d,class:`nb-stepper__list`,role:`list`,"aria-label":e.ariaLabel||p.value.progress,onKeydown:I,onFocusin:D,onFocusout:O},[(0,r.renderSlot)(t.$slots,`default`,{},void 0,!0)],40,a),(0,r.createElementVNode)(`p`,o,(0,r.toDisplayString)(M.value),1)],10,i))}}),c=e.t(s,[[`__scopeId`,`data-v-40496e58`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
2
  import { useStableId as t } from "./composables/useStableId.composable.mjs";
3
- import { i as n, r, t as i } from "./Stepper.context-D6ZX2zXY.js";
3
+ import { i as n, r, t as i } from "./Stepper.context-BaKuMRsu.js";
4
4
  import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, onMounted as d, onUpdated as f, openBlock as p, provide as m, ref as h, renderSlot as g, toDisplayString as _, toRef as v, unref as y, watch as b } from "vue";
5
5
  //#region src/components/Stepper.vue?vue&type=script&setup=true&lang.ts
6
6
  var x = ["id"], S = ["aria-label"], C = {
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./Stepper.context-D56VQS_Q.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`);o=e.n(o);let s=require(`@nubisco/ui/icons/warning`);s=e.n(s);var c=[`data-nb-step`,`data-status`,`data-orientation`,`aria-current`],l={class:`nb-stepper__marker`,"aria-hidden":`true`},u={class:`nb-stepper__text`},d=[`id`],f=[`id`],p=[`id`],m=(0,a.defineComponent)({__name:`StepperStep`,props:{label:{default:``},description:{default:void 0},complete:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:void 0}},setup(e){let t=e,m=r.useStableId(t),h=(0,a.useSlots)(),g=(0,a.inject)(i.t,null),_=(0,a.ref)(null),v=(0,a.computed)(()=>t.disabled),y=g?.register({uid:m,disabled:v,el:()=>_.value});(0,a.onUnmounted)(()=>y?.());let b=(0,a.computed)(()=>g?.order.value.indexOf(m)??-1),x=(0,a.computed)(()=>b.value===g?.current.value),S=(0,a.computed)(()=>b.value<0?1:b.value+1),C=(0,a.computed)(()=>t.disabled?i.n.Disabled:t.invalid?i.n.Invalid:x.value?i.n.Current:t.complete||b.value>=0&&b.value<(g?.current.value??0)?i.n.Complete:i.n.Incomplete),w=(0,a.computed)(()=>g?.labels.value[C.value]??``),T=(0,a.computed)(()=>`${m}-label`),E=(0,a.computed)(()=>`${m}-description`),D=(0,a.computed)(()=>`${m}-status`),O=(0,a.computed)(()=>!!t.description||!!h.description),k=(0,a.computed)(()=>[O.value?E.value:null,D.value].filter(Boolean).join(` `)),A=(0,a.computed)(()=>g?.tabbable.value??-1),j=(0,a.computed)(()=>g?.clickable(b.value,t.disabled)??!1),M=(0,a.computed)(()=>C.value===i.n.Complete?o:C.value===i.n.Invalid?s:null),N=(0,a.computed)(()=>g?.size.value===`sm`?12:14),P=(0,a.computed)(()=>g?.orientation.value??`horizontal`);function F(){g?.select(b.value,t.disabled)}return(t,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`li`,{ref_key:`rootEl`,ref:_,class:(0,a.normalizeClass)([`nb-stepper__step`,[`nb-stepper__step--${C.value}`,{"nb-stepper__step--clickable":j.value}]]),"data-nb-step":(0,a.unref)(m),"data-status":C.value,"data-orientation":P.value,"aria-current":x.value?`step`:void 0},[((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(j.value?`button`:`div`),(0,a.mergeProps)({id:(0,a.unref)(m),class:`nb-stepper__body`},j.value?{type:`button`,"data-nb-stepper-button":``,tabindex:b.value===A.value?0:-1,"aria-labelledby":T.value,"aria-describedby":k.value}:{},{onClick:F}),{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,l,[M.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:M.value,size:N.value},null,8,[`name`,`size`])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(S.value),1)],64))]),(0,a.createElementVNode)(`span`,u,[(0,a.createElementVNode)(`span`,{id:T.value,class:`nb-stepper__label`},[(0,a.renderSlot)(t.$slots,`label`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)],!0)],8,d),e.description||t.$slots.description?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:0,id:E.value,class:`nb-stepper__description`},[(0,a.renderSlot)(t.$slots,`description`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.description),1)],!0)],8,f)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,{id:D.value,class:`nb-stepper__status`},(0,a.toDisplayString)(w.value),9,p)])]),_:3},16,[`id`])),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-stepper__line`,"aria-hidden":`true`},null,-1)],10,c))}}),h=t.t(m,[[`__scopeId`,`data-v-ff8a033d`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./Stepper.context-vC_Cctnn.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`);o=e.n(o);let s=require(`@nubisco/ui/icons/warning`);s=e.n(s);var c=[`data-nb-step`,`data-status`,`data-orientation`,`aria-current`],l={class:`nb-stepper__marker`,"aria-hidden":`true`},u={class:`nb-stepper__text`},d=[`id`],f=[`id`],p=[`id`],m=(0,a.defineComponent)({__name:`StepperStep`,props:{label:{default:``},description:{default:void 0},complete:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:void 0}},setup(e){let t=e,m=r.useStableId(t),h=(0,a.useSlots)(),g=(0,a.inject)(i.t,null),_=(0,a.ref)(null),v=(0,a.computed)(()=>t.disabled),y=g?.register({uid:m,disabled:v,el:()=>_.value});(0,a.onUnmounted)(()=>y?.());let b=(0,a.computed)(()=>g?.order.value.indexOf(m)??-1),x=(0,a.computed)(()=>b.value===g?.current.value),S=(0,a.computed)(()=>b.value<0?1:b.value+1),C=(0,a.computed)(()=>t.disabled?i.n.Disabled:t.invalid?i.n.Invalid:x.value?i.n.Current:t.complete||b.value>=0&&b.value<(g?.current.value??0)?i.n.Complete:i.n.Incomplete),w=(0,a.computed)(()=>g?.labels.value[C.value]??``),T=(0,a.computed)(()=>`${m}-label`),E=(0,a.computed)(()=>`${m}-description`),D=(0,a.computed)(()=>`${m}-status`),O=(0,a.computed)(()=>!!t.description||!!h.description),k=(0,a.computed)(()=>[O.value?E.value:null,D.value].filter(Boolean).join(` `)),A=(0,a.computed)(()=>g?.tabbable.value??-1),j=(0,a.computed)(()=>g?.clickable(b.value,t.disabled)??!1),M=(0,a.computed)(()=>C.value===i.n.Complete?o:C.value===i.n.Invalid?s:null),N=(0,a.computed)(()=>g?.size.value===`sm`?12:14),P=(0,a.computed)(()=>g?.orientation.value??`horizontal`);function F(){g?.select(b.value,t.disabled)}return(t,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`li`,{ref_key:`rootEl`,ref:_,class:(0,a.normalizeClass)([`nb-stepper__step`,[`nb-stepper__step--${C.value}`,{"nb-stepper__step--clickable":j.value}]]),"data-nb-step":(0,a.unref)(m),"data-status":C.value,"data-orientation":P.value,"aria-current":x.value?`step`:void 0},[((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(j.value?`button`:`div`),(0,a.mergeProps)({id:(0,a.unref)(m),class:`nb-stepper__body`},j.value?{type:`button`,"data-nb-stepper-button":``,tabindex:b.value===A.value?0:-1,"aria-labelledby":T.value,"aria-describedby":k.value}:{},{onClick:F}),{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,l,[M.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:M.value,size:N.value},null,8,[`name`,`size`])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(S.value),1)],64))]),(0,a.createElementVNode)(`span`,u,[(0,a.createElementVNode)(`span`,{id:T.value,class:`nb-stepper__label`},[(0,a.renderSlot)(t.$slots,`label`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)],!0)],8,d),e.description||t.$slots.description?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:0,id:E.value,class:`nb-stepper__description`},[(0,a.renderSlot)(t.$slots,`description`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.description),1)],!0)],8,f)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,{id:D.value,class:`nb-stepper__status`},(0,a.toDisplayString)(w.value),9,p)])]),_:3},16,[`id`])),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-stepper__line`,"aria-hidden":`true`},null,-1)],10,c))}}),h=t.t(m,[[`__scopeId`,`data-v-ff8a033d`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
2
  import { t } from "./Icon-rREAqsu0.js";
3
3
  import { useStableId as n } from "./composables/useStableId.composable.mjs";
4
- import { n as r, t as i } from "./Stepper.context-D6ZX2zXY.js";
4
+ import { n as r, t as i } from "./Stepper.context-BaKuMRsu.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, inject as p, mergeProps as m, normalizeClass as h, onUnmounted as g, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useSlots as C, withCtx as w } from "vue";
6
6
  import * as T from "@nubisco/ui/icons/check";
7
7
  import * as E from "@nubisco/ui/icons/warning";
@@ -0,0 +1 @@
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./TextInput.context-kCqQ5HWv.cjs`);let r=require(`vue`);var i=[`id`,`aria-label`],a=[`id`,`aria-selected`,`onMousemove`,`onClick`],o={key:0,class:`nb-suggestion-list__empty`,role:`presentation`},s=(0,r.defineComponent)({__name:`SuggestionList`,props:{items:{},open:{type:Boolean,default:!0},itemLabel:{type:Function,default:void 0},itemKey:{type:Function,default:void 0},emptyText:{default:``},placement:{default:`bottom`},label:{default:``},for:{default:void 0},id:{default:void 0}},emits:[`select`,`update:open`,`close`],setup(e,{expose:s,emit:c}){let l=e,u=c,d=(0,r.useSlots)(),f=t.useStableId({id:l.id}),p=(0,r.ref)(null),m=(0,r.ref)(0),h=(0,r.inject)(n.t,null),g=(0,r.computed)(()=>!!l.emptyText||!!d.empty),_=(0,r.computed)(()=>l.open&&(l.items.length>0||g.value));function v(e){return l.itemLabel?l.itemLabel(e):e&&typeof e==`object`&&`label`in e?String(e.label):String(e)}function y(e,t){return l.itemKey?l.itemKey(e,t):v(e)}function b(e){return`${f}-option-${e}`}function x(){if(l.for&&typeof document<`u`){let e=document.getElementById(l.for);if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e}return h?.field.value??null}function S(){u(`update:open`,!1),u(`close`)}function C(e){let t=l.items[e];t!==void 0&&(u(`select`,t,e),S())}function w(e){let t=l.items.length;t!==0&&(m.value=(e+t)%t)}function T(e){if(!_.value||e.isComposing)return;let t=l.items.length>0;switch(e.key){case`ArrowDown`:if(!t)return;w(m.value+1);break;case`ArrowUp`:if(!t)return;w(m.value-1);break;case`Home`:case`End`:if(!t||!(e.ctrlKey||e.metaKey))return;m.value=e.key===`Home`?0:l.items.length-1;break;case`Enter`:case`Tab`:if(!t)return;C(m.value);break;case`Escape`:S(),e.stopPropagation();break;default:return}e.preventDefault()}function E(){l.open&&S()}let D=[`role`,`aria-autocomplete`,`aria-expanded`,`aria-controls`,`aria-activedescendant`],O=null;function k(){O&&(O.setAttribute(`role`,`combobox`),O.setAttribute(`aria-autocomplete`,`list`),O.setAttribute(`aria-expanded`,String(_.value)),_.value?O.setAttribute(`aria-controls`,f):O.removeAttribute(`aria-controls`),_.value&&l.items.length>0?O.setAttribute(`aria-activedescendant`,b(m.value)):O.removeAttribute(`aria-activedescendant`))}function A(){let e=x();if(e===O||(j(),!e))return;O=e;let t=e;t.addEventListener(`keydown`,T,!0),t.addEventListener(`blur`,E),k()}function j(){if(O){O.removeEventListener(`keydown`,T,!0),O.removeEventListener(`blur`,E);for(let e of D)O.removeAttribute(e);O=null}}function M(){(p.value?.querySelectorAll(`.nb-suggestion-list__item`))?.[m.value]?.scrollIntoView?.({block:`nearest`})}return(0,r.watch)(()=>l.items,()=>{m.value=0}),(0,r.watch)(()=>l.open,e=>{e&&(m.value=0)}),(0,r.watch)([_,m,()=>l.items.length],async()=>{k(),await(0,r.nextTick)(),M()}),(0,r.onMounted)(()=>{A(),O||(0,r.nextTick)(A)}),(0,r.onBeforeUnmount)(j),s({onKeydown:T,activeIndex:m}),(t,n)=>_.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,id:(0,r.unref)(f),ref_key:`listRef`,ref:p,class:(0,r.normalizeClass)([`nb-suggestion-list`,`nb-suggestion-list--${e.placement}`]),role:`listbox`,"aria-label":e.label||void 0},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.items,(e,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:b(i),key:y(e,i),class:(0,r.normalizeClass)([`nb-suggestion-list__item`,{"nb-suggestion-list__item--active":i===m.value}]),role:`option`,"aria-selected":i===m.value,onMousedown:n[0]||=(0,r.withModifiers)(()=>{},[`prevent`]),onMousemove:e=>m.value=i,onClick:e=>C(i)},[(0,r.renderSlot)(t.$slots,`item`,{item:e,index:i,active:i===m.value},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(v(e)),1)],!0)],42,a))),128)),e.items.length===0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,o,[(0,r.renderSlot)(t.$slots,`empty`,{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.emptyText),1)],!0)])):(0,r.createCommentVNode)(``,!0)],10,i)):(0,r.createCommentVNode)(``,!0)}}),c=e.t(s,[[`__scopeId`,`data-v-007f5e1b`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
@@ -0,0 +1,170 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
+ import { useStableId as t } from "./composables/useStableId.composable.mjs";
3
+ import { t as n } from "./TextInput.context-qkmg5Mpm.js";
4
+ import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, defineComponent as c, inject as l, nextTick as u, normalizeClass as d, onBeforeUnmount as f, onMounted as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as b, watch as x, withModifiers as S } from "vue";
5
+ //#region src/components/SuggestionList.vue?vue&type=script&setup=true&lang.ts
6
+ var C = ["id", "aria-label"], w = [
7
+ "id",
8
+ "aria-selected",
9
+ "onMousemove",
10
+ "onClick"
11
+ ], T = {
12
+ key: 0,
13
+ class: "nb-suggestion-list__empty",
14
+ role: "presentation"
15
+ }, E = /* @__PURE__ */ e(/* @__PURE__ */ c({
16
+ __name: "SuggestionList",
17
+ props: {
18
+ items: {},
19
+ open: {
20
+ type: Boolean,
21
+ default: !0
22
+ },
23
+ itemLabel: {
24
+ type: Function,
25
+ default: void 0
26
+ },
27
+ itemKey: {
28
+ type: Function,
29
+ default: void 0
30
+ },
31
+ emptyText: { default: "" },
32
+ placement: { default: "bottom" },
33
+ label: { default: "" },
34
+ for: { default: void 0 },
35
+ id: { default: void 0 }
36
+ },
37
+ emits: [
38
+ "select",
39
+ "update:open",
40
+ "close"
41
+ ],
42
+ setup(e, { expose: c, emit: E }) {
43
+ let D = e, O = E, k = b(), A = t({ id: D.id }), j = h(null), M = h(0), N = l(n, null), P = i(() => !!D.emptyText || !!k.empty), F = i(() => D.open && (D.items.length > 0 || P.value));
44
+ function I(e) {
45
+ return D.itemLabel ? D.itemLabel(e) : e && typeof e == "object" && "label" in e ? String(e.label) : String(e);
46
+ }
47
+ function L(e, t) {
48
+ return D.itemKey ? D.itemKey(e, t) : I(e);
49
+ }
50
+ function R(e) {
51
+ return `${A}-option-${e}`;
52
+ }
53
+ function z() {
54
+ if (D.for && typeof document < "u") {
55
+ let e = document.getElementById(D.for);
56
+ if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement) return e;
57
+ }
58
+ return N?.field.value ?? null;
59
+ }
60
+ function B() {
61
+ O("update:open", !1), O("close");
62
+ }
63
+ function V(e) {
64
+ let t = D.items[e];
65
+ t !== void 0 && (O("select", t, e), B());
66
+ }
67
+ function H(e) {
68
+ let t = D.items.length;
69
+ t !== 0 && (M.value = (e + t) % t);
70
+ }
71
+ function U(e) {
72
+ if (!F.value || e.isComposing) return;
73
+ let t = D.items.length > 0;
74
+ switch (e.key) {
75
+ case "ArrowDown":
76
+ if (!t) return;
77
+ H(M.value + 1);
78
+ break;
79
+ case "ArrowUp":
80
+ if (!t) return;
81
+ H(M.value - 1);
82
+ break;
83
+ case "Home":
84
+ case "End":
85
+ if (!t || !(e.ctrlKey || e.metaKey)) return;
86
+ M.value = e.key === "Home" ? 0 : D.items.length - 1;
87
+ break;
88
+ case "Enter":
89
+ case "Tab":
90
+ if (!t) return;
91
+ V(M.value);
92
+ break;
93
+ case "Escape":
94
+ B(), e.stopPropagation();
95
+ break;
96
+ default: return;
97
+ }
98
+ e.preventDefault();
99
+ }
100
+ function W() {
101
+ D.open && B();
102
+ }
103
+ let G = [
104
+ "role",
105
+ "aria-autocomplete",
106
+ "aria-expanded",
107
+ "aria-controls",
108
+ "aria-activedescendant"
109
+ ], K = null;
110
+ function q() {
111
+ K && (K.setAttribute("role", "combobox"), K.setAttribute("aria-autocomplete", "list"), K.setAttribute("aria-expanded", String(F.value)), F.value ? K.setAttribute("aria-controls", A) : K.removeAttribute("aria-controls"), F.value && D.items.length > 0 ? K.setAttribute("aria-activedescendant", R(M.value)) : K.removeAttribute("aria-activedescendant"));
112
+ }
113
+ function J() {
114
+ let e = z();
115
+ if (e === K || (Y(), !e)) return;
116
+ K = e;
117
+ let t = e;
118
+ t.addEventListener("keydown", U, !0), t.addEventListener("blur", W), q();
119
+ }
120
+ function Y() {
121
+ if (K) {
122
+ K.removeEventListener("keydown", U, !0), K.removeEventListener("blur", W);
123
+ for (let e of G) K.removeAttribute(e);
124
+ K = null;
125
+ }
126
+ }
127
+ function X() {
128
+ (j.value?.querySelectorAll(".nb-suggestion-list__item"))?.[M.value]?.scrollIntoView?.({ block: "nearest" });
129
+ }
130
+ return x(() => D.items, () => {
131
+ M.value = 0;
132
+ }), x(() => D.open, (e) => {
133
+ e && (M.value = 0);
134
+ }), x([
135
+ F,
136
+ M,
137
+ () => D.items.length
138
+ ], async () => {
139
+ q(), await u(), X();
140
+ }), p(() => {
141
+ J(), K || u(J);
142
+ }), f(Y), c({
143
+ onKeydown: U,
144
+ activeIndex: M
145
+ }), (t, n) => F.value ? (m(), o("div", {
146
+ key: 0,
147
+ id: y(A),
148
+ ref_key: "listRef",
149
+ ref: j,
150
+ class: d(["nb-suggestion-list", `nb-suggestion-list--${e.placement}`]),
151
+ role: "listbox",
152
+ "aria-label": e.label || void 0
153
+ }, [(m(!0), o(r, null, g(e.items, (e, r) => (m(), o("div", {
154
+ id: R(r),
155
+ key: L(e, r),
156
+ class: d(["nb-suggestion-list__item", { "nb-suggestion-list__item--active": r === M.value }]),
157
+ role: "option",
158
+ "aria-selected": r === M.value,
159
+ onMousedown: n[0] ||= S(() => {}, ["prevent"]),
160
+ onMousemove: (e) => M.value = r,
161
+ onClick: (e) => V(r)
162
+ }, [_(t.$slots, "item", {
163
+ item: e,
164
+ index: r,
165
+ active: r === M.value
166
+ }, () => [s(v(I(e)), 1)], !0)], 42, w))), 128)), e.items.length === 0 ? (m(), o("div", T, [_(t.$slots, "empty", {}, () => [s(v(e.emptyText), 1)], !0)])) : a("", !0)], 10, C)) : a("", !0);
167
+ }
168
+ }), [["__scopeId", "data-v-007f5e1b"]]);
169
+ //#endregion
170
+ export { E as t };
@@ -1 +1 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Grid-D8c0StGs.cjs`),r=require(`./Label-CVCNXFn1.cjs`);let i=require(`vue`);var a=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(a||{}),o=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e}(o||{}),s=[`for`],c=[`id`,`name`,`disabled`],l=(0,i.defineComponent)({__name:`Switch`,props:(0,i.mergeModels)({id:{type:String,default:()=>null},label:{type:String,default:``},size:{type:String,default:a.Medium,validator:e=>Object.values(a).includes(e)},verbose:Boolean,hideLabel:Boolean,name:{type:String,required:!0},disabled:Boolean,variant:{type:String,default:o.Primary,validator:e=>Object.values(o).includes(e)}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let a=(0,i.useModel)(e,`modelValue`),o=e,l=t.useStableId(o),u=(0,i.computed)(()=>({"aria-disabled":o.disabled})),d=(0,i.computed)(()=>({"nb-switch":!0,disabled:o.disabled})),f=(0,i.computed)(()=>({"nb-switch-wrapper":!0,verbose:o.verbose,[o.size]:!0,[`nb-${o.variant}`]:!0}));return(t,o)=>((0,i.openBlock)(),(0,i.createBlock)(n.t,{id:(0,i.unref)(l),class:(0,i.normalizeClass)(d.value),align:`center`,gap:`sm`},{default:(0,i.withCtx)(()=>[e.label?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,for:`${(0,i.unref)(l)}-input`,disabled:e.disabled,class:(0,i.normalizeClass)({"nb-switch__label--hidden":e.hideLabel})},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`disabled`,`class`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`label`,(0,i.mergeProps)({for:`${(0,i.unref)(l)}-input`,class:f.value},u.value,{onClick:o[1]||=(0,i.withModifiers)(()=>{},[`stop`])}),[(0,i.withDirectives)((0,i.createElementVNode)(`input`,{id:`${(0,i.unref)(l)}-input`,"onUpdate:modelValue":o[0]||=e=>a.value=e,name:e.name,type:`checkbox`,disabled:e.disabled},null,8,c),[[i.vModelCheckbox,a.value]]),o[2]||=(0,i.createElementVNode)(`div`,{class:`slider round`},null,-1)],16,s)]),_:1},8,[`id`,`class`]))}}),u=e.t(l,[[`__scopeId`,`data-v-f6465c1e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
1
+ require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Grid-CDrItyQ7.cjs`),r=require(`./Label-71QAuWf4.cjs`);let i=require(`vue`);var a=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(a||{}),o=function(e){return e.Primary=`primary`,e.Secondary=`secondary`,e}(o||{}),s=[`for`],c=[`id`,`name`,`disabled`],l=(0,i.defineComponent)({__name:`Switch`,props:(0,i.mergeModels)({id:{type:String,default:()=>null},label:{type:String,default:``},size:{type:String,default:a.Medium,validator:e=>Object.values(a).includes(e)},verbose:Boolean,hideLabel:Boolean,name:{type:String,required:!0},disabled:Boolean,variant:{type:String,default:o.Primary,validator:e=>Object.values(o).includes(e)}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let a=(0,i.useModel)(e,`modelValue`),o=e,l=t.useStableId(o),u=(0,i.computed)(()=>({"aria-disabled":o.disabled})),d=(0,i.computed)(()=>({"nb-switch":!0,disabled:o.disabled})),f=(0,i.computed)(()=>({"nb-switch-wrapper":!0,verbose:o.verbose,[o.size]:!0,[`nb-${o.variant}`]:!0}));return(t,o)=>((0,i.openBlock)(),(0,i.createBlock)(n.t,{id:(0,i.unref)(l),class:(0,i.normalizeClass)(d.value),align:`center`,gap:`sm`},{default:(0,i.withCtx)(()=>[e.label?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,for:`${(0,i.unref)(l)}-input`,disabled:e.disabled,class:(0,i.normalizeClass)({"nb-switch__label--hidden":e.hideLabel})},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`disabled`,`class`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`label`,(0,i.mergeProps)({for:`${(0,i.unref)(l)}-input`,class:f.value},u.value,{onClick:o[1]||=(0,i.withModifiers)(()=>{},[`stop`])}),[(0,i.withDirectives)((0,i.createElementVNode)(`input`,{id:`${(0,i.unref)(l)}-input`,"onUpdate:modelValue":o[0]||=e=>a.value=e,name:e.name,type:`checkbox`,disabled:e.disabled},null,8,c),[[i.vModelCheckbox,a.value]]),o[2]||=(0,i.createElementVNode)(`div`,{class:`slider round`},null,-1)],16,s)]),_:1},8,[`id`,`class`]))}}),u=e.t(l,[[`__scopeId`,`data-v-f6465c1e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
2
  import { useStableId as t } from "./composables/useStableId.composable.mjs";
3
- import { t as n } from "./Grid-XtnH-vr_.js";
4
- import { t as r } from "./Label-ciCAG21-.js";
3
+ import { t as n } from "./Grid-Hbvbu16k.js";
4
+ import { t as r } from "./Label-BEW_5nYq.js";
5
5
  import { computed as i, createBlock as a, createCommentVNode as o, createElementVNode as s, createTextVNode as c, defineComponent as l, mergeModels as u, mergeProps as d, normalizeClass as f, openBlock as p, toDisplayString as m, unref as h, useModel as g, vModelCheckbox as _, withCtx as v, withDirectives as y, withModifiers as b } from "vue";
6
6
  //#region src/components/Switch.d.ts
7
7
  var x = /* @__PURE__ */ function(e) {
@@ -1 +1 @@
1
- const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useReducedMotion.composable.cjs`),n=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-CbQyG-jg.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/caret-right`);s=e.n(s);let c=require(`@nubisco/ui/icons/list-dashes`);c=e.n(c);var l=[`href`,`aria-current`,`data-id`,`onClick`],u=(0,o.defineComponent)({name:`TableOfContentsList`,__name:`TableOfContentsList`,props:{nodes:{},active:{},nested:{type:Boolean}},emits:[`go`],setup(e,{emit:t}){let n=t;function r(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button===0&&(e.preventDefault(),n(`go`,t))}return(t,i)=>{let a=(0,o.resolveComponent)(`TableOfContentsList`,!0);return(0,o.openBlock)(),(0,o.createElementBlock)(`ol`,{class:(0,o.normalizeClass)([`nb-toc-list`,{"nb-toc-list--nested":e.nested}])},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.nodes,t=>((0,o.openBlock)(),(0,o.createElementBlock)(`li`,{key:t.id,class:`nb-toc-list__item`},[(0,o.createElementVNode)(`a`,{class:(0,o.normalizeClass)([`nb-toc-list__link`,{"nb-toc-list__link--active":t.id===e.active}]),href:`#${t.id}`,"aria-current":t.id===e.active?`location`:void 0,"data-id":t.id,onClick:e=>r(e,t)},(0,o.toDisplayString)(t.label),11,l),t.children.length>0?((0,o.openBlock)(),(0,o.createBlock)(a,{key:0,nodes:t.children,active:e.active,nested:``,onGo:i[0]||=e=>n(`go`,e)},null,8,[`nodes`,`active`])):(0,o.createCommentVNode)(``,!0)]))),128))],2)}}}),d=n.t(u,[[`__scopeId`,`data-v-d0f98dc3`]]),f=[`aria-label`],p={class:`nb-toc__head`},m={class:`nb-toc__title`},h=(0,o.defineComponent)({__name:`TableOfContents`,props:{items:{},active:{default:void 0},open:{type:Boolean,default:void 0},variant:{default:`docked`},collapsible:{type:Boolean,default:!0},title:{default:`Contents`},label:{default:`Table of contents`},showLabel:{default:`Show contents`},hideLabel:{default:`Hide contents`},root:{default:null},resolveTarget:{type:Function,default:void 0},spy:{type:Boolean,default:!0},offset:{default:96},updateHash:{type:Boolean,default:!0},followHash:{type:Boolean,default:!1}},emits:[`update:active`,`update:open`,`navigate`],setup(e,{expose:n,emit:l}){let u=e,h=l,g=`${r.useStableId({})}-nav`,_=(0,o.ref)(null),v=(0,o.ref)(null),{layerProps:y}=i.useSurfaceLayer({overlay:!0}),b=(0,o.computed)(()=>u.variant===`floating`?y.value:{}),x=(0,o.ref)(u.variant!==`floating`),S=(0,o.computed)(()=>u.open??x.value),C=(0,o.computed)(()=>u.variant===`floating`||u.collapsible);function w(e){!e&&!C.value||(x.value=e,h(`update:open`,e),e||(0,o.nextTick)(()=>T()))}function T(){(v.value?.$el)?.focus()}function E(e){u.variant!==`floating`||!S.value||(e.stopPropagation(),w(!1))}(0,o.watch)(()=>u.variant,e=>{x.value=e!==`floating`});let D=(0,o.computed)(()=>{let e=[],t=[];for(let n of u.items){let r={...n,children:[]};for(;t.length>0&&t[t.length-1].level>=n.level;)t.pop();t.length===0?e.push(r):t[t.length-1].children.push(r),t.push(r)}return e}),O=(0,o.ref)(null),k=(0,o.computed)(()=>u.active===void 0?O.value:u.active);function A(e){e!==k.value&&(O.value=e,h(`update:active`,e))}function j(e,t){return u.resolveTarget?u.resolveTarget(e,t):u.root?u.root.querySelector(`[id="${e.id.replace(/(["\\])/g,`\\$1`)}"]`):typeof document>`u`?null:document.getElementById(e.id)}function M(e){let t=e?.parentElement??null;for(;t;){let{overflowY:e}=getComputedStyle(t);if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return window}function N(e,t,n,r){if(n){for(let t=e.length-1;t>=0;t--)if(e[t]<r)return t}let i=-1;for(let n=0;n<e.length&&e[n]<=t;n++)i=n;return i}let P=null,F=null,I=0;function L(){if(F=null,!u.spy||typeof window>`u`||Date.now()<I)return;let e=u.items.map((e,t)=>({item:e,el:j(e,t)})).filter(e=>!!e.el);if(e.length===0){A(null);return}let t=P??window,n=0,r=window.innerHeight,i=window.scrollY,a=document.documentElement.scrollHeight;if(t!==window){let e=t;n=e.getBoundingClientRect().top,r=e.clientHeight,i=e.scrollTop,a=e.scrollHeight}let o=a>r&&i+r>=a-2,s=N(e.map(({el:e})=>e.getBoundingClientRect().top-n),u.offset,o,r);A(s>=0?e[s].item.id:null)}function R(){F===null&&(F=typeof requestAnimationFrame==`function`?requestAnimationFrame(L):setTimeout(L,16))}function z(){B(),!(!u.spy||typeof window>`u`)&&(P=M(u.items.map((e,t)=>j(e,t)).find(Boolean)??u.root??_.value),P.addEventListener(`scroll`,R,{passive:!0}),window.addEventListener(`resize`,R,{passive:!0}),R())}function B(){P?.removeEventListener(`scroll`,R),typeof window<`u`&&window.removeEventListener(`resize`,R),P=null}function V(e,n={}){let r=typeof e==`string`?e:e.id,i=u.items.findIndex(e=>e.id===r);if(i<0)return;let a=u.items[i],o=j(a,i);if(!o)return;let s=n.instant||t.prefersReducedMotion();if(o.scrollIntoView?.({behavior:s?`auto`:`smooth`,block:`start`}),A(r),I=s?0:Date.now()+700,u.updateHash)try{let{pathname:e,search:t}=window.location;window.history.replaceState(window.history.state,``,`${e}${t}#${r}`)}catch{}o.closest(`[contenteditable="true"]`)||(o.hasAttribute(`tabindex`)||o.setAttribute(`tabindex`,`-1`),o.focus({preventScroll:!0})),u.variant===`floating`&&(x.value=!1,h(`update:open`,!1)),h(`navigate`,a)}let H=!1;function U(){if(!u.followHash||H||typeof window>`u`)return;let e=decodeURIComponent(window.location.hash.slice(1));if(!e){H=!0;return}let t=u.items.findIndex(t=>t.id===e);t<0||!j(u.items[t],t)||(H=!0,V(e,{instant:!0}))}return(0,o.watch)(()=>u.items,()=>void(0,o.nextTick)(()=>{z(),U()}),{flush:`post`,deep:!0}),(0,o.watch)(()=>[u.root,u.spy],()=>void(0,o.nextTick)(z),{flush:`post`}),(0,o.onMounted)(()=>{z(),(0,o.nextTick)(U)}),(0,o.onBeforeUnmount)(()=>{B(),F!==null&&(typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(F),clearTimeout(F))}),n({go:V,measure:L}),(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`rootEl`,ref:_,class:(0,o.normalizeClass)([`nb-toc`,`nb-toc--${e.variant}`,{"nb-toc--open":S.value}]),onKeydown:(0,o.withKeys)(E,[`esc`])},[S.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({key:1,class:`nb-toc__body`},b.value),[(0,o.createElementVNode)(`nav`,{id:g,class:`nb-toc__nav`,"aria-label":e.label},[(0,o.createElementVNode)(`div`,p,[(0,o.createElementVNode)(`span`,m,(0,o.toDisplayString)(e.title),1),C.value?((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,size:`xs`,variant:`ghost`,icon:s,"aria-label":e.hideLabel,title:e.hideLabel,"aria-expanded":!0,"aria-controls":g,onClick:n[1]||=e=>w(!1)},null,8,[`aria-label`,`title`])):(0,o.createCommentVNode)(``,!0)]),(0,o.createVNode)(d,{nodes:D.value,active:k.value,onGo:V},null,8,[`nodes`,`active`])],8,f)],16)):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,ref_key:`showButton`,ref:v,size:`sm`,variant:`ghost`,icon:c,class:`nb-toc__show`,"aria-label":e.showLabel,title:e.showLabel,"aria-expanded":!1,"aria-controls":g,onClick:n[0]||=e=>w(!0)},null,8,[`aria-label`,`title`]))],34))}}),g=n.t(h,[[`__scopeId`,`data-v-cb6a1ca7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
1
+ const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./composables/useReducedMotion.composable.cjs`),n=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-bQHEUhzc.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/caret-right`);s=e.n(s);let c=require(`@nubisco/ui/icons/list-dashes`);c=e.n(c);var l=[`href`,`aria-current`,`data-id`,`onClick`],u=(0,o.defineComponent)({name:`TableOfContentsList`,__name:`TableOfContentsList`,props:{nodes:{},active:{},nested:{type:Boolean}},emits:[`go`],setup(e,{emit:t}){let n=t;function r(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button===0&&(e.preventDefault(),n(`go`,t))}return(t,i)=>{let a=(0,o.resolveComponent)(`TableOfContentsList`,!0);return(0,o.openBlock)(),(0,o.createElementBlock)(`ol`,{class:(0,o.normalizeClass)([`nb-toc-list`,{"nb-toc-list--nested":e.nested}])},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.nodes,t=>((0,o.openBlock)(),(0,o.createElementBlock)(`li`,{key:t.id,class:`nb-toc-list__item`},[(0,o.createElementVNode)(`a`,{class:(0,o.normalizeClass)([`nb-toc-list__link`,{"nb-toc-list__link--active":t.id===e.active}]),href:`#${t.id}`,"aria-current":t.id===e.active?`location`:void 0,"data-id":t.id,onClick:e=>r(e,t)},(0,o.toDisplayString)(t.label),11,l),t.children.length>0?((0,o.openBlock)(),(0,o.createBlock)(a,{key:0,nodes:t.children,active:e.active,nested:``,onGo:i[0]||=e=>n(`go`,e)},null,8,[`nodes`,`active`])):(0,o.createCommentVNode)(``,!0)]))),128))],2)}}}),d=n.t(u,[[`__scopeId`,`data-v-d0f98dc3`]]),f=[`aria-label`],p={class:`nb-toc__head`},m={class:`nb-toc__title`},h=(0,o.defineComponent)({__name:`TableOfContents`,props:{items:{},active:{default:void 0},open:{type:Boolean,default:void 0},variant:{default:`docked`},collapsible:{type:Boolean,default:!0},title:{default:`Contents`},label:{default:`Table of contents`},showLabel:{default:`Show contents`},hideLabel:{default:`Hide contents`},root:{default:null},resolveTarget:{type:Function,default:void 0},spy:{type:Boolean,default:!0},offset:{default:96},updateHash:{type:Boolean,default:!0},followHash:{type:Boolean,default:!1}},emits:[`update:active`,`update:open`,`navigate`],setup(e,{expose:n,emit:l}){let u=e,h=l,g=`${r.useStableId({})}-nav`,_=(0,o.ref)(null),v=(0,o.ref)(null),{layerProps:y}=i.useSurfaceLayer({overlay:!0}),b=(0,o.computed)(()=>u.variant===`floating`?y.value:{}),x=(0,o.ref)(u.variant!==`floating`),S=(0,o.computed)(()=>u.open??x.value),C=(0,o.computed)(()=>u.variant===`floating`||u.collapsible);function w(e){!e&&!C.value||(x.value=e,h(`update:open`,e),e||(0,o.nextTick)(()=>T()))}function T(){(v.value?.$el)?.focus()}function E(e){u.variant!==`floating`||!S.value||(e.stopPropagation(),w(!1))}(0,o.watch)(()=>u.variant,e=>{x.value=e!==`floating`});let D=(0,o.computed)(()=>{let e=[],t=[];for(let n of u.items){let r={...n,children:[]};for(;t.length>0&&t[t.length-1].level>=n.level;)t.pop();t.length===0?e.push(r):t[t.length-1].children.push(r),t.push(r)}return e}),O=(0,o.ref)(null),k=(0,o.computed)(()=>u.active===void 0?O.value:u.active);function A(e){e!==k.value&&(O.value=e,h(`update:active`,e))}function j(e,t){return u.resolveTarget?u.resolveTarget(e,t):u.root?u.root.querySelector(`[id="${e.id.replace(/(["\\])/g,`\\$1`)}"]`):typeof document>`u`?null:document.getElementById(e.id)}function M(e){let t=e?.parentElement??null;for(;t;){let{overflowY:e}=getComputedStyle(t);if(e===`auto`||e===`scroll`)return t;t=t.parentElement}return window}function N(e,t,n,r){if(n){for(let t=e.length-1;t>=0;t--)if(e[t]<r)return t}let i=-1;for(let n=0;n<e.length&&e[n]<=t;n++)i=n;return i}let P=null,F=null,I=0;function L(){if(F=null,!u.spy||typeof window>`u`||Date.now()<I)return;let e=u.items.map((e,t)=>({item:e,el:j(e,t)})).filter(e=>!!e.el);if(e.length===0){A(null);return}let t=P??window,n=0,r=window.innerHeight,i=window.scrollY,a=document.documentElement.scrollHeight;if(t!==window){let e=t;n=e.getBoundingClientRect().top,r=e.clientHeight,i=e.scrollTop,a=e.scrollHeight}let o=a>r&&i+r>=a-2,s=N(e.map(({el:e})=>e.getBoundingClientRect().top-n),u.offset,o,r);A(s>=0?e[s].item.id:null)}function R(){F===null&&(F=typeof requestAnimationFrame==`function`?requestAnimationFrame(L):setTimeout(L,16))}function z(){B(),!(!u.spy||typeof window>`u`)&&(P=M(u.items.map((e,t)=>j(e,t)).find(Boolean)??u.root??_.value),P.addEventListener(`scroll`,R,{passive:!0}),window.addEventListener(`resize`,R,{passive:!0}),R())}function B(){P?.removeEventListener(`scroll`,R),typeof window<`u`&&window.removeEventListener(`resize`,R),P=null}function V(e,n={}){let r=typeof e==`string`?e:e.id,i=u.items.findIndex(e=>e.id===r);if(i<0)return;let a=u.items[i],o=j(a,i);if(!o)return;let s=n.instant||t.prefersReducedMotion();if(o.scrollIntoView?.({behavior:s?`auto`:`smooth`,block:`start`}),A(r),I=s?0:Date.now()+700,u.updateHash)try{let{pathname:e,search:t}=window.location;window.history.replaceState(window.history.state,``,`${e}${t}#${r}`)}catch{}o.closest(`[contenteditable="true"]`)||(o.hasAttribute(`tabindex`)||o.setAttribute(`tabindex`,`-1`),o.focus({preventScroll:!0})),u.variant===`floating`&&(x.value=!1,h(`update:open`,!1)),h(`navigate`,a)}let H=!1;function U(){if(!u.followHash||H||typeof window>`u`)return;let e=decodeURIComponent(window.location.hash.slice(1));if(!e){H=!0;return}let t=u.items.findIndex(t=>t.id===e);t<0||!j(u.items[t],t)||(H=!0,V(e,{instant:!0}))}return(0,o.watch)(()=>u.items,()=>void(0,o.nextTick)(()=>{z(),U()}),{flush:`post`,deep:!0}),(0,o.watch)(()=>[u.root,u.spy],()=>void(0,o.nextTick)(z),{flush:`post`}),(0,o.onMounted)(()=>{z(),(0,o.nextTick)(U)}),(0,o.onBeforeUnmount)(()=>{B(),F!==null&&(typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(F),clearTimeout(F))}),n({go:V,measure:L}),(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`rootEl`,ref:_,class:(0,o.normalizeClass)([`nb-toc`,`nb-toc--${e.variant}`,{"nb-toc--open":S.value}]),onKeydown:(0,o.withKeys)(E,[`esc`])},[S.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,(0,o.mergeProps)({key:1,class:`nb-toc__body`},b.value),[(0,o.createElementVNode)(`nav`,{id:g,class:`nb-toc__nav`,"aria-label":e.label},[(0,o.createElementVNode)(`div`,p,[(0,o.createElementVNode)(`span`,m,(0,o.toDisplayString)(e.title),1),C.value?((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,size:`xs`,variant:`ghost`,icon:s,"aria-label":e.hideLabel,title:e.hideLabel,"aria-expanded":!0,"aria-controls":g,onClick:n[1]||=e=>w(!1)},null,8,[`aria-label`,`title`])):(0,o.createCommentVNode)(``,!0)]),(0,o.createVNode)(d,{nodes:D.value,active:k.value,onGo:V},null,8,[`nodes`,`active`])],8,f)],16)):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,ref_key:`showButton`,ref:v,size:`sm`,variant:`ghost`,icon:c,class:`nb-toc__show`,"aria-label":e.showLabel,title:e.showLabel,"aria-expanded":!1,"aria-controls":g,onClick:n[0]||=e=>w(!0)},null,8,[`aria-label`,`title`]))],34))}}),g=n.t(h,[[`__scopeId`,`data-v-cb6a1ca7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
@@ -2,7 +2,7 @@ import { prefersReducedMotion as e } from "./composables/useReducedMotion.compos
2
2
  import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
3
3
  import { useStableId as n } from "./composables/useStableId.composable.mjs";
4
4
  import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
5
- import { t as i } from "./Button-Cq9dEeHz.js";
5
+ import { t as i } from "./Button-BHlNXmBr.js";
6
6
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, mergeProps as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, resolveComponent as x, toDisplayString as S, watch as C, withKeys as w } from "vue";
7
7
  import * as T from "@nubisco/ui/icons/caret-right";
8
8
  import * as E from "@nubisco/ui/icons/list-dashes";
@@ -3,7 +3,7 @@ import { t } from "./Icon-rREAqsu0.js";
3
3
  import { useStableId as n } from "./composables/useStableId.composable.mjs";
4
4
  import { usePhoneLayout as r } from "./composables/usePhoneLayout.composable.mjs";
5
5
  import { hasSlotContent as i } from "./utils/slotContent.helper.mjs";
6
- import { t as a } from "./Badge-DJx3RZxk.js";
6
+ import { t as a } from "./Badge-D37sr-14.js";
7
7
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, onBeforeUnmount as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, useSlots as ee, watch as C, withCtx as te } from "vue";
8
8
  //#region src/components/Tabs.d.ts
9
9
  var w = /* @__PURE__ */ function(e) {
@@ -1 +1 @@
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/useStableId.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./utils/slotContent.helper.cjs`),a=require(`./Badge-D6nlcs4F.cjs`);let o=require(`vue`);var s=function(e){return e.Line=`line`,e.Contained=`contained`,e}(s||{}),c=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(c||{}),l=[`aria-label`],u=[`id`,`data-tab-id`,`aria-selected`,`aria-controls`,`tabindex`,`disabled`,`onClick`],d={class:`nb-tabs__label`},f=[`id`,`aria-labelledby`],p=24,m=(0,o.defineComponent)({__name:`Tabs`,props:{items:{},ariaLabel:{default:void 0},modelValue:{default:void 0},variant:{default:s.Line},size:{default:c.Medium},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let m=e,h=s,g=(0,o.useSlots)(),_=n.useStableId(m),v=(0,o.ref)(null),y=(0,o.computed)(()=>m.items.filter(e=>!w(e))),b=(0,o.ref)(m.modelValue??y.value[0]?.id);(0,o.watch)(()=>m.modelValue,e=>{e!=null&&(b.value=e)});let x=(0,o.computed)(()=>{let e=m.modelValue??b.value,t=m.items.find(t=>t.id===e);return t&&!w(t)?t.id:y.value[0]?.id}),S=(0,o.computed)(()=>m.size===c.Large?18:16),C=(0,o.computed)(()=>[`nb-tabs`,`nb-tabs--${m.variant}`,`nb-tabs--${m.size}`,{"nb-tabs--full-width":m.fullWidth,"nb-tabs--disabled":m.disabled,"nb-tabs--overflow":P.value}]);function w(e){return m.disabled||!!e.disabled}function T(e){return`${_}-tab-${e}`}function E(e){return`${_}-panel-${e}`}function D(e){return i.hasSlotContent(g,e)}function O(e){w(e)||e.id===x.value||(b.value=e.id,h(`update:modelValue`,e.id),h(`change`,e.id,e))}function k(e){(v.value?.querySelectorAll(`[data-tab-id]`))?.forEach(t=>{t.dataset.tabId===e&&t.focus()})}function A(e){let t=y.value;if(!t.length)return;let n=t[(t.findIndex(e=>e.id===x.value)+e+t.length)%t.length];O(n),k(n.id)}function j(e){e&&(O(e),k(e.id))}let{phone:M}=r.usePhoneLayout(),N=(0,o.ref)(null),P=(0,o.ref)(!1),F=(0,o.computed)(()=>M.value||P.value);function I(){let e=N.value,t=v.value;!e||!t||(P.value=t.scrollWidth>e.clientWidth+1)}let L=(0,o.ref)(!1),R=(0,o.ref)(!1);function z(){let e=v.value;if(!F.value||!e)return;let t=e.scrollWidth-e.clientWidth;L.value=e.scrollLeft>1,R.value=e.scrollLeft<t-1}function B(){let e=v.value;if(!F.value||!e)return;let t=[...e.querySelectorAll(`[data-tab-id]`)].find(e=>e.dataset.tabId===x.value);if(t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.left-n.left+e.scrollLeft,a=i+r.width,o=t===e.firstElementChild,s=t===e.lastElementChild;i<e.scrollLeft+(o?0:p)?e.scrollLeft=Math.max(0,o?0:i-p):a>e.scrollLeft+e.clientWidth-(s?0:p)&&(e.scrollLeft=a-e.clientWidth+(s?0:p))}z()}(0,o.watch)([x,F],()=>(0,o.nextTick)(B));function V(){I(),B()}let H=null;function U(){!H||!N.value||!v.value||(H.disconnect(),H.observe(N.value),v.value.querySelectorAll(`[data-tab-id]`).forEach(e=>H?.observe(e)))}(0,o.watch)(()=>m.items,()=>(0,o.nextTick)(()=>{U(),V()}),{deep:!0}),(0,o.onMounted)(()=>{I(),B(),window.addEventListener(`resize`,V,{passive:!0}),typeof ResizeObserver<`u`&&(H=new ResizeObserver(V),U())}),(0,o.onBeforeUnmount)(()=>{window.removeEventListener(`resize`,V),H?.disconnect(),H=null});function W(e){switch(e.key){case`ArrowRight`:A(1);break;case`ArrowLeft`:A(-1);break;case`Home`:j(y.value[0]);break;case`End`:j(y.value[y.value.length-1]);break;default:return}e.preventDefault()}return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`rootRef`,ref:N,class:(0,o.normalizeClass)(C.value)},[(0,o.createElementVNode)(`div`,{ref_key:`listRef`,ref:v,class:(0,o.normalizeClass)([`nb-tabs__list`,{"nb-tabs__list--fade-start":F.value&&L.value,"nb-tabs__list--fade-end":F.value&&R.value}]),role:`tablist`,"aria-label":e.ariaLabel||void 0,onKeydown:W,onScrollPassive:z},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(`button`,{id:T(e.id),key:e.id,"data-tab-id":e.id,type:`button`,role:`tab`,class:(0,o.normalizeClass)([`nb-tabs__tab`,{"nb-tabs__tab--active":e.id===x.value}]),"aria-selected":e.id===x.value,"aria-controls":D(e.id)?E(e.id):void 0,tabindex:e.id===x.value?0:-1,disabled:w(e),onClick:t=>O(e)},[e.icon?((0,o.openBlock)(),(0,o.createBlock)(t.t,{key:0,name:e.icon,size:S.value,class:`nb-tabs__icon`},null,8,[`name`,`size`])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`span`,d,(0,o.toDisplayString)(e.label),1),e.badge==null?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:1,size:`sm`,class:`nb-tabs__badge`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.badge),1)]),_:2},1024))],10,u))),128))],42,l),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:`panel-${e.id}`},[e.id===x.value&&D(e.id)?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:E(e.id),class:`nb-tabs__panel`,role:`tabpanel`,"aria-labelledby":T(e.id),tabindex:`0`},[(0,o.renderSlot)(n.$slots,e.id,{item:e},void 0,!0)],8,f)):(0,o.createCommentVNode)(``,!0)],64))),128))],2))}}),h=e.t(m,[[`__scopeId`,`data-v-4367403c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
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/useStableId.composable.cjs`),r=require(`./composables/usePhoneLayout.composable.cjs`),i=require(`./utils/slotContent.helper.cjs`),a=require(`./Badge-Ce3NRrp_.cjs`);let o=require(`vue`);var s=function(e){return e.Line=`line`,e.Contained=`contained`,e}(s||{}),c=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(c||{}),l=[`aria-label`],u=[`id`,`data-tab-id`,`aria-selected`,`aria-controls`,`tabindex`,`disabled`,`onClick`],d={class:`nb-tabs__label`},f=[`id`,`aria-labelledby`],p=24,m=(0,o.defineComponent)({__name:`Tabs`,props:{items:{},ariaLabel:{default:void 0},modelValue:{default:void 0},variant:{default:s.Line},size:{default:c.Medium},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let m=e,h=s,g=(0,o.useSlots)(),_=n.useStableId(m),v=(0,o.ref)(null),y=(0,o.computed)(()=>m.items.filter(e=>!w(e))),b=(0,o.ref)(m.modelValue??y.value[0]?.id);(0,o.watch)(()=>m.modelValue,e=>{e!=null&&(b.value=e)});let x=(0,o.computed)(()=>{let e=m.modelValue??b.value,t=m.items.find(t=>t.id===e);return t&&!w(t)?t.id:y.value[0]?.id}),S=(0,o.computed)(()=>m.size===c.Large?18:16),C=(0,o.computed)(()=>[`nb-tabs`,`nb-tabs--${m.variant}`,`nb-tabs--${m.size}`,{"nb-tabs--full-width":m.fullWidth,"nb-tabs--disabled":m.disabled,"nb-tabs--overflow":P.value}]);function w(e){return m.disabled||!!e.disabled}function T(e){return`${_}-tab-${e}`}function E(e){return`${_}-panel-${e}`}function D(e){return i.hasSlotContent(g,e)}function O(e){w(e)||e.id===x.value||(b.value=e.id,h(`update:modelValue`,e.id),h(`change`,e.id,e))}function k(e){(v.value?.querySelectorAll(`[data-tab-id]`))?.forEach(t=>{t.dataset.tabId===e&&t.focus()})}function A(e){let t=y.value;if(!t.length)return;let n=t[(t.findIndex(e=>e.id===x.value)+e+t.length)%t.length];O(n),k(n.id)}function j(e){e&&(O(e),k(e.id))}let{phone:M}=r.usePhoneLayout(),N=(0,o.ref)(null),P=(0,o.ref)(!1),F=(0,o.computed)(()=>M.value||P.value);function I(){let e=N.value,t=v.value;!e||!t||(P.value=t.scrollWidth>e.clientWidth+1)}let L=(0,o.ref)(!1),R=(0,o.ref)(!1);function z(){let e=v.value;if(!F.value||!e)return;let t=e.scrollWidth-e.clientWidth;L.value=e.scrollLeft>1,R.value=e.scrollLeft<t-1}function B(){let e=v.value;if(!F.value||!e)return;let t=[...e.querySelectorAll(`[data-tab-id]`)].find(e=>e.dataset.tabId===x.value);if(t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=r.left-n.left+e.scrollLeft,a=i+r.width,o=t===e.firstElementChild,s=t===e.lastElementChild;i<e.scrollLeft+(o?0:p)?e.scrollLeft=Math.max(0,o?0:i-p):a>e.scrollLeft+e.clientWidth-(s?0:p)&&(e.scrollLeft=a-e.clientWidth+(s?0:p))}z()}(0,o.watch)([x,F],()=>(0,o.nextTick)(B));function V(){I(),B()}let H=null;function U(){!H||!N.value||!v.value||(H.disconnect(),H.observe(N.value),v.value.querySelectorAll(`[data-tab-id]`).forEach(e=>H?.observe(e)))}(0,o.watch)(()=>m.items,()=>(0,o.nextTick)(()=>{U(),V()}),{deep:!0}),(0,o.onMounted)(()=>{I(),B(),window.addEventListener(`resize`,V,{passive:!0}),typeof ResizeObserver<`u`&&(H=new ResizeObserver(V),U())}),(0,o.onBeforeUnmount)(()=>{window.removeEventListener(`resize`,V),H?.disconnect(),H=null});function W(e){switch(e.key){case`ArrowRight`:A(1);break;case`ArrowLeft`:A(-1);break;case`Home`:j(y.value[0]);break;case`End`:j(y.value[y.value.length-1]);break;default:return}e.preventDefault()}return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`rootRef`,ref:N,class:(0,o.normalizeClass)(C.value)},[(0,o.createElementVNode)(`div`,{ref_key:`listRef`,ref:v,class:(0,o.normalizeClass)([`nb-tabs__list`,{"nb-tabs__list--fade-start":F.value&&L.value,"nb-tabs__list--fade-end":F.value&&R.value}]),role:`tablist`,"aria-label":e.ariaLabel||void 0,onKeydown:W,onScrollPassive:z},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(`button`,{id:T(e.id),key:e.id,"data-tab-id":e.id,type:`button`,role:`tab`,class:(0,o.normalizeClass)([`nb-tabs__tab`,{"nb-tabs__tab--active":e.id===x.value}]),"aria-selected":e.id===x.value,"aria-controls":D(e.id)?E(e.id):void 0,tabindex:e.id===x.value?0:-1,disabled:w(e),onClick:t=>O(e)},[e.icon?((0,o.openBlock)(),(0,o.createBlock)(t.t,{key:0,name:e.icon,size:S.value,class:`nb-tabs__icon`},null,8,[`name`,`size`])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`span`,d,(0,o.toDisplayString)(e.label),1),e.badge==null?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:1,size:`sm`,class:`nb-tabs__badge`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.badge),1)]),_:2},1024))],10,u))),128))],42,l),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:`panel-${e.id}`},[e.id===x.value&&D(e.id)?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,id:E(e.id),class:`nb-tabs__panel`,role:`tabpanel`,"aria-labelledby":T(e.id),tabindex:`0`},[(0,o.renderSlot)(n.$slots,e.id,{item:e},void 0,!0)],8,f)):(0,o.createCommentVNode)(``,!0)],64))),128))],2))}}),h=e.t(m,[[`__scopeId`,`data-v-4367403c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
@@ -0,0 +1,293 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
2
+ import { t } from "./Grid-Hbvbu16k.js";
3
+ import { t as n } from "./Label-BEW_5nYq.js";
4
+ import { t as r } from "./Message-DPv6St5M.js";
5
+ import { t as i } from "./TextInput.context-qkmg5Mpm.js";
6
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, openBlock as _, provide as v, ref as y, renderSlot as b, toDisplayString as x, useId as S, useModel as C, vModelDynamic as w, vModelText as T, watch as E, withCtx as D, withDirectives as O } from "vue";
7
+ //#region src/components/TextInput.vue?vue&type=script&setup=true&lang.ts
8
+ var k = {
9
+ key: 0,
10
+ class: "nb-text-input__overlay-wrap"
11
+ }, A = ["innerHTML"], j = [
12
+ "id",
13
+ "value",
14
+ "placeholder",
15
+ "disabled",
16
+ "readonly",
17
+ "name",
18
+ "maxlength"
19
+ ], M = [
20
+ "id",
21
+ "value",
22
+ "placeholder",
23
+ "disabled",
24
+ "readonly",
25
+ "name",
26
+ "maxlength"
27
+ ], N = [
28
+ "id",
29
+ "placeholder",
30
+ "disabled",
31
+ "readonly",
32
+ "name",
33
+ "maxlength",
34
+ "rows"
35
+ ], P = [
36
+ "id",
37
+ "type",
38
+ "placeholder",
39
+ "disabled",
40
+ "readonly",
41
+ "required",
42
+ "name",
43
+ "min",
44
+ "max",
45
+ "step",
46
+ "maxlength"
47
+ ], F = {
48
+ key: 2,
49
+ class: "nb-text-input__actions"
50
+ }, I = {
51
+ key: 0,
52
+ class: "nb-text-input__inner-header"
53
+ }, L = ["for"], R = {
54
+ key: 0,
55
+ class: "nb-text-input__asterisk",
56
+ "aria-hidden": "true"
57
+ }, z = [
58
+ "id",
59
+ "type",
60
+ "placeholder",
61
+ "disabled",
62
+ "readonly",
63
+ "required",
64
+ "name",
65
+ "min",
66
+ "max",
67
+ "step",
68
+ "maxlength"
69
+ ], B = /* @__PURE__ */ e(/* @__PURE__ */ f({
70
+ inheritAttrs: !1,
71
+ __name: "TextInput",
72
+ props: /* @__PURE__ */ p({
73
+ type: { default: "text" },
74
+ min: { default: void 0 },
75
+ max: { default: void 0 },
76
+ step: { default: void 0 },
77
+ maxlength: { default: void 0 },
78
+ multiline: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ rows: { default: 3 },
83
+ highlight: {
84
+ type: Function,
85
+ default: void 0
86
+ },
87
+ readonly: {
88
+ type: Boolean,
89
+ default: !1
90
+ },
91
+ placeholder: { default: "" },
92
+ name: { default: "" },
93
+ disabled: {
94
+ type: Boolean,
95
+ default: !1
96
+ },
97
+ required: {
98
+ type: Boolean,
99
+ default: !1
100
+ },
101
+ id: { default: void 0 },
102
+ label: { default: "" },
103
+ error: { default: "" },
104
+ warning: { default: "" },
105
+ helper: { default: "" },
106
+ variant: { default: "default" },
107
+ size: { default: "md" }
108
+ }, {
109
+ modelValue: { default: "" },
110
+ modelModifiers: {}
111
+ }),
112
+ emits: ["update:modelValue"],
113
+ setup(e, { expose: f }) {
114
+ let p = e, B = C(e, "modelValue"), V = y(null), H = y(null);
115
+ f({
116
+ focus: () => V.value?.focus(),
117
+ blur: () => V.value?.blur(),
118
+ nativeEl: V
119
+ }), v(i, { field: V });
120
+ let U = y(!1), W = `nb-input-${S()}`, G = o(() => p.id ?? W), K = o(() => !!p.highlight), q = o(() => {
121
+ if (!p.highlight) return "";
122
+ let e = String(B.value ?? "");
123
+ return p.highlight(e) + "\n";
124
+ });
125
+ function J() {
126
+ H.value && V.value && (H.value.scrollTop = V.value.scrollTop);
127
+ }
128
+ E(q, () => h(J));
129
+ let Y = o(() => p.error ? "error" : p.warning ? "warning" : "helper"), X = o(() => p.error || p.warning || p.helper || ""), Z = o(() => !!X.value), Q = o(() => ({
130
+ "nb-text-input__field-wrapper--focused": U.value,
131
+ "nb-text-input__field-wrapper--error": !!p.error,
132
+ "nb-text-input__field-wrapper--warning": !p.error && !!p.warning,
133
+ "nb-text-input__field-wrapper--disabled": p.disabled,
134
+ "nb-text-input__field-wrapper--readonly": p.readonly,
135
+ "nb-text-input__field-wrapper--overlay": K.value,
136
+ "nb-text-input__field-wrapper--multiline": p.multiline
137
+ }));
138
+ return (i, o) => (_(), s(t, {
139
+ dir: "col",
140
+ class: g([
141
+ "nb-text-input",
142
+ `nb-text-input--${e.variant}`,
143
+ `nb-text-input--${e.size}`,
144
+ { "nb-text-input--multiline": e.multiline }
145
+ ])
146
+ }, {
147
+ default: D(() => [e.variant === "default" ? (_(), l(a, { key: 0 }, [
148
+ i.$slots.label ? b(i.$slots, "label", { key: 0 }, void 0, !0) : e.label ? (_(), s(n, {
149
+ key: 1,
150
+ for: G.value,
151
+ required: e.required,
152
+ disabled: e.disabled
153
+ }, {
154
+ default: D(() => [d(x(e.label), 1)]),
155
+ _: 1
156
+ }, 8, [
157
+ "for",
158
+ "required",
159
+ "disabled"
160
+ ])) : c("", !0),
161
+ u("div", { class: g(["nb-text-input__field-wrapper", Q.value]) }, [
162
+ b(i.$slots, "leading", {}, void 0, !0),
163
+ K.value ? (_(), l("div", k, [u("div", {
164
+ ref_key: "mirrorRef",
165
+ ref: H,
166
+ class: "nb-text-input__mirror",
167
+ "aria-hidden": "true",
168
+ innerHTML: q.value
169
+ }, null, 8, A), e.multiline ? (_(), l("textarea", m({
170
+ key: 0,
171
+ id: G.value,
172
+ ref_key: "nativeRef",
173
+ ref: V
174
+ }, i.$attrs, {
175
+ class: "nb-text-input__field--transparent",
176
+ value: B.value,
177
+ placeholder: e.placeholder,
178
+ disabled: e.disabled,
179
+ readonly: e.readonly,
180
+ name: e.name,
181
+ maxlength: e.maxlength,
182
+ spellcheck: "false",
183
+ autocomplete: "off",
184
+ autocorrect: "off",
185
+ onInput: o[0] ||= (e) => B.value = e.target.value,
186
+ onFocus: o[1] ||= (e) => U.value = !0,
187
+ onBlur: o[2] ||= (e) => U.value = !1,
188
+ onScroll: J
189
+ }), null, 16, j)) : (_(), l("input", m({
190
+ key: 1,
191
+ id: G.value,
192
+ ref_key: "nativeRef",
193
+ ref: V
194
+ }, i.$attrs, {
195
+ type: "text",
196
+ class: "nb-text-input__field--transparent",
197
+ value: B.value,
198
+ placeholder: e.placeholder,
199
+ disabled: e.disabled,
200
+ readonly: e.readonly,
201
+ name: e.name,
202
+ maxlength: e.maxlength,
203
+ spellcheck: "false",
204
+ onInput: o[3] ||= (e) => B.value = e.target.value,
205
+ onFocus: o[4] ||= (e) => U.value = !0,
206
+ onBlur: o[5] ||= (e) => U.value = !1
207
+ }), null, 16, M))])) : (_(), l(a, { key: 1 }, [e.multiline ? O((_(), l("textarea", m({
208
+ key: 0,
209
+ id: G.value,
210
+ ref_key: "nativeRef",
211
+ ref: V
212
+ }, i.$attrs, {
213
+ "onUpdate:modelValue": o[6] ||= (e) => B.value = e,
214
+ class: "nb-text-input__field",
215
+ placeholder: e.placeholder,
216
+ disabled: e.disabled,
217
+ readonly: e.readonly,
218
+ name: e.name,
219
+ maxlength: e.maxlength,
220
+ rows: e.rows,
221
+ onFocus: o[7] ||= (e) => U.value = !0,
222
+ onBlur: o[8] ||= (e) => U.value = !1
223
+ }), null, 16, N)), [[T, B.value]]) : O((_(), l("input", m({
224
+ key: 1,
225
+ id: G.value,
226
+ ref_key: "nativeRef",
227
+ ref: V
228
+ }, i.$attrs, {
229
+ "onUpdate:modelValue": o[9] ||= (e) => B.value = e,
230
+ class: "nb-text-input__field",
231
+ type: e.type,
232
+ placeholder: e.placeholder,
233
+ disabled: e.disabled,
234
+ readonly: e.readonly,
235
+ required: e.required,
236
+ name: e.name,
237
+ min: e.min,
238
+ max: e.max,
239
+ step: e.step,
240
+ maxlength: e.maxlength,
241
+ onFocus: o[10] ||= (e) => U.value = !0,
242
+ onBlur: o[11] ||= (e) => U.value = !1
243
+ }), null, 16, P)), [[w, B.value]])], 64)),
244
+ b(i.$slots, "trailing", {}, void 0, !0),
245
+ i.$slots.actions ? (_(), l("div", F, [b(i.$slots, "actions", {}, void 0, !0)])) : c("", !0)
246
+ ], 2),
247
+ Z.value ? (_(), s(r, {
248
+ key: 2,
249
+ variant: Y.value,
250
+ class: "nb-text-input__message"
251
+ }, {
252
+ default: D(() => [d(x(X.value), 1)]),
253
+ _: 1
254
+ }, 8, ["variant"])) : c("", !0),
255
+ b(i.$slots, "dropdown", {}, void 0, !0)
256
+ ], 64)) : e.variant === "fluid" ? (_(), l(a, { key: 1 }, [u("div", { class: g(["nb-text-input__field-wrapper", Q.value]) }, [e.label || i.$slots.label ? (_(), l("div", I, [i.$slots.label ? b(i.$slots, "label", { key: 0 }, void 0, !0) : (_(), l("label", {
257
+ key: 1,
258
+ for: G.value,
259
+ class: g(["nb-text-input__inner-label", { "nb-text-input__inner-label--required": e.required }])
260
+ }, [d(x(e.label) + " ", 1), e.required ? (_(), l("span", R, "*")) : c("", !0)], 10, L)), Z.value ? (_(), s(r, {
261
+ key: 2,
262
+ variant: Y.value,
263
+ "icon-only": "",
264
+ class: "nb-text-input__inner-message"
265
+ }, {
266
+ default: D(() => [d(x(X.value), 1)]),
267
+ _: 1
268
+ }, 8, ["variant"])) : c("", !0)])) : c("", !0), O(u("input", m({
269
+ id: G.value,
270
+ ref_key: "nativeRef",
271
+ ref: V
272
+ }, i.$attrs, {
273
+ "onUpdate:modelValue": o[12] ||= (e) => B.value = e,
274
+ class: "nb-text-input__field",
275
+ type: e.type,
276
+ placeholder: e.placeholder,
277
+ disabled: e.disabled,
278
+ readonly: e.readonly,
279
+ required: e.required,
280
+ name: e.name,
281
+ min: e.min,
282
+ max: e.max,
283
+ step: e.step,
284
+ maxlength: e.maxlength,
285
+ onFocus: o[13] ||= (e) => U.value = !0,
286
+ onBlur: o[14] ||= (e) => U.value = !1
287
+ }), null, 16, z), [[w, B.value]])], 2), b(i.$slots, "dropdown", {}, void 0, !0)], 64)) : c("", !0)]),
288
+ _: 3
289
+ }, 8, ["class"]));
290
+ }
291
+ }), [["__scopeId", "data-v-09e30e0d"]]);
292
+ //#endregion
293
+ export { B as t };