@nubisco/ui 5.13.0 → 5.15.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 (270) hide show
  1. package/dist/AccordionItem-CCndN0ln.cjs +1 -0
  2. package/dist/AccordionItem-Cg8wmypl.js +116 -0
  3. package/dist/{AiLabel-MZn446Uy.js → AiLabel-BxCWEOn-.js} +1 -1
  4. package/dist/{AiLabel-i75MlwdE.cjs → AiLabel-D4gkbAEC.cjs} +1 -1
  5. package/dist/{Banner-DhaO7S51.js → Banner-D61pK-1n.js} +4 -4
  6. package/dist/{Banner-CqNiWOsn.cjs → Banner-DzySrOrs.cjs} +1 -1
  7. package/dist/{BarChart-Cpa8IlAy.cjs → BarChart-BmDXIaf6.cjs} +1 -1
  8. package/dist/{BarChart-BIBrrXZk.js → BarChart-CmYyd4IV.js} +4 -4
  9. package/dist/{BlueprintControls-9TePyiYN.js → BlueprintControls-CVQkxcMU.js} +1 -1
  10. package/dist/{BlueprintControls-D0IN84WV.cjs → BlueprintControls-IU6Dc5yv.cjs} +1 -1
  11. package/dist/{Checkbox-Iu2e_Ob7.js → Checkbox-BkRL6Ops.js} +1 -1
  12. package/dist/{Checkbox-9bxwFy5R.cjs → Checkbox-D8Curaxc.cjs} +1 -1
  13. package/dist/{CheckboxGroup-Dh6sf0K2.js → CheckboxGroup-Hu-wWRto.js} +3 -3
  14. package/dist/{CheckboxGroup-2hyyIRXt.cjs → CheckboxGroup-fEs9Ye8M.cjs} +1 -1
  15. package/dist/{ColorStrip-BDu9ie4P.js → ColorStrip-CcMzeYOw.js} +2 -2
  16. package/dist/{ColorStrip-8X4Op3ap.cjs → ColorStrip-Doh0adti.cjs} +1 -1
  17. package/dist/{Confirm-BQkB2b4e.js → Confirm-DWEwpP6C.js} +4 -4
  18. package/dist/{Confirm-DZ_nb6Z0.cjs → Confirm-DsrwfJbb.cjs} +1 -1
  19. package/dist/{DataTable-DLuSmiTV.cjs → DataTable-BJKfz59R.cjs} +1 -1
  20. package/dist/{DataTable-CVih75pn.js → DataTable-D6hXgtDH.js} +3 -3
  21. package/dist/{DatePicker-DcWyOduI.js → DatePicker-Cgnm0ku3.js} +3 -3
  22. package/dist/{DatePicker-B_lnTkqz.cjs → DatePicker-DytDcACW.cjs} +1 -1
  23. package/dist/{FileUploader-GhaVDiGG.js → FileUploader-B2A1T1vb.js} +1 -1
  24. package/dist/{FileUploader-BQuiNHeI.cjs → FileUploader-CufMlD5X.cjs} +1 -1
  25. package/dist/{Form-CJbbzvXt.js → Form-j4QMRkL5.js} +1 -1
  26. package/dist/{Form-D50Okwsy.cjs → Form-u6XCVBqX.cjs} +1 -1
  27. package/dist/{GanttChart-DX0FAk3D.js → GanttChart-B6Np07RJ.js} +3 -3
  28. package/dist/{GanttChart-08yTvMaQ.cjs → GanttChart-Cekazr75.cjs} +1 -1
  29. package/dist/{ImageCropper-ZofGN_5r.cjs → ImageCropper-Bl8BjRur.cjs} +1 -1
  30. package/dist/{ImageCropper-6wnJLNBr.js → ImageCropper-DBjxzZhN.js} +2 -2
  31. package/dist/{InterpolationChart-B-7W3StJ.js → InterpolationChart-BF00hyiY.js} +3 -3
  32. package/dist/{InterpolationChart-CbBAhYHw.cjs → InterpolationChart-D_QPQOIS.cjs} +1 -1
  33. package/dist/{LineChart-ndwAlJBw.cjs → LineChart-CgBvFTwd.cjs} +1 -1
  34. package/dist/{LineChart-C7_gUiB4.js → LineChart-D21jFHa1.js} +4 -4
  35. package/dist/{Message-D8ZE4uGZ.cjs → Message-DjxOb8mu.cjs} +1 -1
  36. package/dist/{Message-Ciyc2nN6.js → Message-SQvoXiWl.js} +4 -4
  37. package/dist/{Modal-kfgbfLM4.js → Modal-DAcbddGc.js} +1 -1
  38. package/dist/{Modal-BkCiD4gu.cjs → Modal-nmkOUH0U.cjs} +1 -1
  39. package/dist/{NotificationCenter-D-9IwSTD.js → NotificationCenter-BWNFq7Y_.js} +3 -3
  40. package/dist/{NotificationCenter-4oCy75aK.cjs → NotificationCenter-RIzKsxUf.cjs} +1 -1
  41. package/dist/{NotificationCenterItem--dJsS8g2.cjs → NotificationCenterItem-pWiBpKMc.cjs} +1 -1
  42. package/dist/{NotificationCenterItem-CknMkJUp.js → NotificationCenterItem-yqlKqwI2.js} +4 -4
  43. package/dist/{NumberInput-Bnd9zGie.js → NumberInput-CrbTiAkP.js} +2 -2
  44. package/dist/{NumberInput-qBJbdvfP.cjs → NumberInput-DsjKITeI.cjs} +1 -1
  45. package/dist/{Pagination-DfE_VBmi.js → Pagination-CH2A6T3n.js} +2 -2
  46. package/dist/{Pagination-BVqdCAar.cjs → Pagination-D69J9sA1.cjs} +1 -1
  47. package/dist/{PieChart-5Sl9JYUU.js → PieChart-ByOhOTXU.js} +3 -3
  48. package/dist/{PieChart-BgLnTYSn.cjs → PieChart-DajsvhAV.cjs} +1 -1
  49. package/dist/{ProgressBar-CW9nJ2CU.js → ProgressBar-BF-2nm2N.js} +2 -2
  50. package/dist/{ProgressBar-D4a4RfdX.cjs → ProgressBar-Cn-FnvZR.cjs} +1 -1
  51. package/dist/{Radio-B2bhBVJ8.cjs → Radio-CkFwMQZ-.cjs} +1 -1
  52. package/dist/{Radio-BlBitwW3.js → Radio-pH924Ch3.js} +2 -2
  53. package/dist/Select-Det8tjo1.cjs +1 -0
  54. package/dist/Select-dJWuOWN0.js +437 -0
  55. package/dist/{SidebarCollapseToggle-BM3YJ2rA.cjs → SidebarCollapseToggle-VOdswrKP.cjs} +1 -1
  56. package/dist/{SidebarCollapseToggle-k7sWa2TJ.js → SidebarCollapseToggle-pNj344jL.js} +1 -1
  57. package/dist/{Slider-BECfNKi_.cjs → Slider-Clgfp-vI.cjs} +1 -1
  58. package/dist/{Slider-CPQjPfG2.js → Slider-Dxh4sXev.js} +4 -4
  59. package/dist/{Switch-TqDspgnw.cjs → Switch-CnjGuqXl.cjs} +1 -1
  60. package/dist/{Switch-CxAgokBR.js → Switch-dKiTaRd9.js} +2 -2
  61. package/dist/{TableOfContents-C6btwKBE.cjs → TableOfContents-BfR2Zyrv.cjs} +1 -1
  62. package/dist/{TableOfContents-DCaf2uyd.js → TableOfContents-C6zgmnCg.js} +1 -1
  63. package/dist/{Tabs-4-VnGh4i.cjs → Tabs-BCCI2jAd.cjs} +1 -1
  64. package/dist/{Tabs-q8dnIAkO.js → Tabs-CxqDD--r.js} +1 -1
  65. package/dist/{TextInput-C1akT0kW.cjs → TextInput--u9htMqc.cjs} +1 -1
  66. package/dist/{TextInput-DBeZ3X3P.js → TextInput-C_i6Miob.js} +3 -3
  67. package/dist/{Toast-EsXGrZ9r.js → Toast-C7ZcSqjz.js} +6 -6
  68. package/dist/{Toast-dgMA595p.cjs → Toast-DdjLfZW7.cjs} +1 -1
  69. package/dist/{Toaster-D4r1g967.cjs → Toaster-noCUOlwh.cjs} +1 -1
  70. package/dist/{Toaster-BbDgPVmM.js → Toaster-sBQX6bee.js} +1 -1
  71. package/dist/{UserMenu-ztYcZqMp.cjs → UserMenu-C65Ky9ov.cjs} +1 -1
  72. package/dist/{UserMenu-opamjLVS.js → UserMenu-ClcDEyTu.js} +2 -2
  73. package/dist/{Walkthrough-Vy7rtAmt.js → Walkthrough-B_zZaq4y.js} +7 -7
  74. package/dist/{Walkthrough-BsPHPjJf.cjs → Walkthrough-CDeBRQZb.cjs} +1 -1
  75. package/dist/all.cjs +1 -1
  76. package/dist/all.mjs +93 -93
  77. package/dist/component-styles.json +1 -0
  78. package/dist/components/Accordion.d.ts +7 -0
  79. package/dist/components/AccordionItem.cjs +1 -1
  80. package/dist/components/AccordionItem.mjs +1 -1
  81. package/dist/components/AccordionItem.vue.d.ts +7 -2
  82. package/dist/components/AccordionItem.vue.d.ts.map +1 -1
  83. package/dist/components/AiLabel.cjs +1 -1
  84. package/dist/components/AiLabel.mjs +1 -1
  85. package/dist/components/Avatar.cjs +1 -1
  86. package/dist/components/Avatar.mjs +1 -1
  87. package/dist/components/Badge.cjs +1 -1
  88. package/dist/components/Badge.mjs +1 -1
  89. package/dist/components/Banner.cjs +1 -1
  90. package/dist/components/Banner.mjs +1 -1
  91. package/dist/components/BlueprintCard.vue.d.ts +1 -1
  92. package/dist/components/BlueprintControls.cjs +1 -1
  93. package/dist/components/BlueprintControls.mjs +1 -1
  94. package/dist/components/Board.cjs +1 -1
  95. package/dist/components/Board.mjs +1 -1
  96. package/dist/components/Breadcrumbs.cjs +1 -1
  97. package/dist/components/Breadcrumbs.mjs +1 -1
  98. package/dist/components/Button.cjs +1 -1
  99. package/dist/components/Button.mjs +1 -1
  100. package/dist/components/Button.vue.d.ts +1 -1
  101. package/dist/components/Calendar.cjs +1 -1
  102. package/dist/components/Calendar.mjs +1 -1
  103. package/dist/components/Card.cjs +1 -1
  104. package/dist/components/Card.mjs +1 -1
  105. package/dist/components/CardGrid.cjs +1 -1
  106. package/dist/components/CardGrid.mjs +1 -1
  107. package/dist/components/Charts/BarChart.cjs +1 -1
  108. package/dist/components/Charts/BarChart.mjs +1 -1
  109. package/dist/components/Charts/GanttChart.cjs +1 -1
  110. package/dist/components/Charts/GanttChart.mjs +1 -1
  111. package/dist/components/Charts/InterpolationChart.cjs +1 -1
  112. package/dist/components/Charts/InterpolationChart.mjs +1 -1
  113. package/dist/components/Charts/LineChart.cjs +1 -1
  114. package/dist/components/Charts/LineChart.mjs +1 -1
  115. package/dist/components/Charts/PieChart.cjs +1 -1
  116. package/dist/components/Charts/PieChart.mjs +1 -1
  117. package/dist/components/Checkbox.cjs +1 -1
  118. package/dist/components/Checkbox.mjs +1 -1
  119. package/dist/components/CheckboxGroup.cjs +1 -1
  120. package/dist/components/CheckboxGroup.mjs +1 -1
  121. package/dist/components/ColorStrip.cjs +1 -1
  122. package/dist/components/ColorStrip.mjs +1 -1
  123. package/dist/components/Confirm.cjs +1 -1
  124. package/dist/components/Confirm.mjs +1 -1
  125. package/dist/components/DataTable.cjs +1 -1
  126. package/dist/components/DataTable.mjs +1 -1
  127. package/dist/components/DatePicker.cjs +1 -1
  128. package/dist/components/DatePicker.mjs +1 -1
  129. package/dist/components/DefinitionList.cjs +1 -1
  130. package/dist/components/DefinitionList.mjs +1 -1
  131. package/dist/components/DefinitionListItem.cjs +1 -1
  132. package/dist/components/DefinitionListItem.mjs +1 -1
  133. package/dist/components/DragHandle.cjs +1 -1
  134. package/dist/components/DragHandle.mjs +1 -1
  135. package/dist/components/EmptyState.cjs +1 -1
  136. package/dist/components/EmptyState.mjs +1 -1
  137. package/dist/components/FileUploader.cjs +1 -1
  138. package/dist/components/FileUploader.mjs +1 -1
  139. package/dist/components/Flag.cjs +1 -1
  140. package/dist/components/Flag.mjs +1 -1
  141. package/dist/components/FloatingToolbar.cjs +1 -1
  142. package/dist/components/FloatingToolbar.mjs +1 -1
  143. package/dist/components/Form.cjs +1 -1
  144. package/dist/components/Form.mjs +1 -1
  145. package/dist/components/Grid.cjs +1 -1
  146. package/dist/components/Grid.mjs +1 -1
  147. package/dist/components/ImageCropper.cjs +1 -1
  148. package/dist/components/ImageCropper.mjs +1 -1
  149. package/dist/components/InfoHint.cjs +1 -1
  150. package/dist/components/InfoHint.mjs +1 -1
  151. package/dist/components/InfoHint.vue.d.ts +1 -1
  152. package/dist/components/Label.cjs +1 -1
  153. package/dist/components/Label.mjs +1 -1
  154. package/dist/components/Message.cjs +1 -1
  155. package/dist/components/Message.mjs +1 -1
  156. package/dist/components/Modal.cjs +1 -1
  157. package/dist/components/Modal.mjs +1 -1
  158. package/dist/components/NotificationCenter.cjs +1 -1
  159. package/dist/components/NotificationCenter.mjs +1 -1
  160. package/dist/components/NotificationCenter.vue.d.ts +1 -1
  161. package/dist/components/NotificationCenterItem.cjs +1 -1
  162. package/dist/components/NotificationCenterItem.mjs +1 -1
  163. package/dist/components/NubiscoMark.cjs +1 -1
  164. package/dist/components/NubiscoMark.mjs +1 -1
  165. package/dist/components/NubiscoPlatformMark.cjs +1 -1
  166. package/dist/components/NubiscoPlatformMark.mjs +1 -1
  167. package/dist/components/NumberInput.cjs +1 -1
  168. package/dist/components/NumberInput.mjs +1 -1
  169. package/dist/components/Pagination.cjs +1 -1
  170. package/dist/components/Pagination.mjs +1 -1
  171. package/dist/components/ProgressBar.cjs +1 -1
  172. package/dist/components/ProgressBar.mjs +1 -1
  173. package/dist/components/Radio.cjs +1 -1
  174. package/dist/components/Radio.mjs +1 -1
  175. package/dist/components/ReorderList.cjs +1 -1
  176. package/dist/components/ReorderList.mjs +1 -1
  177. package/dist/components/Select.cjs +1 -1
  178. package/dist/components/Select.d.ts +13 -0
  179. package/dist/components/Select.mjs +1 -1
  180. package/dist/components/Select.vue.d.ts.map +1 -1
  181. package/dist/components/SidebarCollapseToggle.cjs +1 -1
  182. package/dist/components/SidebarCollapseToggle.mjs +1 -1
  183. package/dist/components/SidebarLink.vue.d.ts +1 -1
  184. package/dist/components/SidebarMenuItem.vue.d.ts +1 -1
  185. package/dist/components/Slider.cjs +1 -1
  186. package/dist/components/Slider.mjs +1 -1
  187. package/dist/components/Spinner.vue.d.ts +1 -1
  188. package/dist/components/Switch.cjs +1 -1
  189. package/dist/components/Switch.mjs +1 -1
  190. package/dist/components/TableOfContents.cjs +1 -1
  191. package/dist/components/TableOfContents.mjs +1 -1
  192. package/dist/components/Tabs.cjs +1 -1
  193. package/dist/components/Tabs.mjs +1 -1
  194. package/dist/components/TextInput.cjs +1 -1
  195. package/dist/components/TextInput.mjs +1 -1
  196. package/dist/components/Toast.cjs +1 -1
  197. package/dist/components/Toast.mjs +1 -1
  198. package/dist/components/Toaster.cjs +1 -1
  199. package/dist/components/Toaster.mjs +1 -1
  200. package/dist/components/Toaster.vue.d.ts +1 -1
  201. package/dist/components/UserMenu.cjs +1 -1
  202. package/dist/components/UserMenu.mjs +1 -1
  203. package/dist/components/UserMenu.vue.d.ts +1 -1
  204. package/dist/components/Walkthrough.cjs +1 -1
  205. package/dist/components/Walkthrough.mjs +1 -1
  206. package/dist/composables/useConfirm.composable.cjs +1 -1
  207. package/dist/composables/useConfirm.composable.mjs +3 -3
  208. package/dist/index.cjs +1 -1
  209. package/dist/index.mjs +60 -60
  210. package/dist/styles/AccordionItem.css +1 -1
  211. package/dist/styles/Select.css +1 -1
  212. package/dist/types/Option.d.ts +7 -0
  213. package/dist/ui.css +3 -3
  214. package/package.json +1 -1
  215. package/dist/AccordionItem-BkV2mNGm.js +0 -90
  216. package/dist/AccordionItem-CYy-vtx2.cjs +0 -1
  217. package/dist/Select-C4kly9iF.js +0 -408
  218. package/dist/Select-CDaJcun8.cjs +0 -1
  219. /package/dist/{Avatar-DqHh71ha.cjs → Avatar-BmB57kGg.cjs} +0 -0
  220. /package/dist/{Avatar-672086EP.js → Avatar-ap4X6_kE.js} +0 -0
  221. /package/dist/{Badge-BgCdM21g.cjs → Badge-B1xoanmq.cjs} +0 -0
  222. /package/dist/{Badge-CfXOTEnO.js → Badge-CxBslbIp.js} +0 -0
  223. /package/dist/{Board-CS1pMX4d.cjs → Board-6TUivitd.cjs} +0 -0
  224. /package/dist/{Board-DmTUOIbg.js → Board-nLi96Obf.js} +0 -0
  225. /package/dist/{Breadcrumbs-CbN5yrrZ.js → Breadcrumbs-BT3EvjKk.js} +0 -0
  226. /package/dist/{Breadcrumbs-BQ61cxAo.cjs → Breadcrumbs-H9PvTXK0.cjs} +0 -0
  227. /package/dist/{Button-Cw4D6w9K.js → Button-CV2mm5ZB.js} +0 -0
  228. /package/dist/{Button-D-XSNjSL.cjs → Button-S8xZ0EGV.cjs} +0 -0
  229. /package/dist/{Calendar-B9E2LD-Z.js → Calendar-Bu8yA7-h.js} +0 -0
  230. /package/dist/{Calendar-Dl51sRax.cjs → Calendar-DiYrR5ss.cjs} +0 -0
  231. /package/dist/{Card-eM6DEphF.js → Card-ChgbYLJP.js} +0 -0
  232. /package/dist/{Card-Cn5OS4q-.cjs → Card-duvlUAg9.cjs} +0 -0
  233. /package/dist/{CardGrid-Dpr7jSvX.js → CardGrid-ChwQuHLa.js} +0 -0
  234. /package/dist/{CardGrid-CQlFeUgK.cjs → CardGrid-Desk_vNP.cjs} +0 -0
  235. /package/dist/{ChartLegend-F3Fb5_Lx.cjs → ChartLegend-O2SYdHsd.cjs} +0 -0
  236. /package/dist/{ChartLegend-DtN-9tjj.js → ChartLegend-ywCoTUbO.js} +0 -0
  237. /package/dist/{CheckboxGroup.context-DxIobnwL.js → CheckboxGroup.context-BssNljp4.js} +0 -0
  238. /package/dist/{CheckboxGroup.context-YvEAde5I.cjs → CheckboxGroup.context-DYPnnK72.cjs} +0 -0
  239. /package/dist/{DefinitionList-DURU1gfC.cjs → DefinitionList-C5cqvaLy.cjs} +0 -0
  240. /package/dist/{DefinitionList-uikEhnxV.js → DefinitionList-fmy6J4Re.js} +0 -0
  241. /package/dist/{DefinitionListItem-DzDHUFZP.js → DefinitionListItem-CJK5RkIw.js} +0 -0
  242. /package/dist/{DefinitionListItem-Cr9dbQxH.cjs → DefinitionListItem-CWqjObrZ.cjs} +0 -0
  243. /package/dist/{DragHandle-CEYUbnGp.cjs → DragHandle-CoJEyCLX.cjs} +0 -0
  244. /package/dist/{DragHandle-CnXKvg4U.js → DragHandle-DDJ1Hsmo.js} +0 -0
  245. /package/dist/{EmptyState-Cz91HAKF.cjs → EmptyState-u1iAtZUB.cjs} +0 -0
  246. /package/dist/{EmptyState-CwMG-NeI.js → EmptyState-xU5I0laM.js} +0 -0
  247. /package/dist/{Flag-CrPxTYGW.cjs → Flag-Pk2LFD1t.cjs} +0 -0
  248. /package/dist/{Flag-BdhoXwJu.js → Flag-k-Aakupd.js} +0 -0
  249. /package/dist/{FloatingToolbar-AoCFmueA.cjs → FloatingToolbar-DpBbWZL6.cjs} +0 -0
  250. /package/dist/{FloatingToolbar-Zs9hJISD.js → FloatingToolbar-_loB4pae.js} +0 -0
  251. /package/dist/{Grid-CgUyhsw4.js → Grid-DA2jibMM.js} +0 -0
  252. /package/dist/{Grid-DTZTlxd_.cjs → Grid-HifmWSUS.cjs} +0 -0
  253. /package/dist/{InfoHint-DjAgTkgL.js → InfoHint-CK96hjMo.js} +0 -0
  254. /package/dist/{InfoHint-DX3lgnTX.cjs → InfoHint-Cs9-C043.cjs} +0 -0
  255. /package/dist/{Label-DtXh4XR5.cjs → Label-BIM21I7D.cjs} +0 -0
  256. /package/dist/{Label-glcQoGCr.js → Label-CiWiUQ_H.js} +0 -0
  257. /package/dist/{NubiscoMark-Cv7PC_UC.cjs → NubiscoMark-BN6bzMMG.cjs} +0 -0
  258. /package/dist/{NubiscoMark-Cdkdq4ka.js → NubiscoMark-Bj6eID79.js} +0 -0
  259. /package/dist/{NubiscoPlatformMark-CsQKE5_2.js → NubiscoPlatformMark-C0OeymWK.js} +0 -0
  260. /package/dist/{NubiscoPlatformMark-JzdEpSRs.cjs → NubiscoPlatformMark-CE-poDEU.cjs} +0 -0
  261. /package/dist/{ReorderList-DLQ3rVnX.cjs → ReorderList-CigXh_u8.cjs} +0 -0
  262. /package/dist/{ReorderList-DpytAupm.js → ReorderList-DC83oBGi.js} +0 -0
  263. /package/dist/{palette-DeWUCp-_.cjs → palette-BW0RLn76.cjs} +0 -0
  264. /package/dist/{palette-IseTcTSI.js → palette-CS95-prq.js} +0 -0
  265. /package/dist/{scales-5n6sKgoF.js → scales-BjSg0Ayo.js} +0 -0
  266. /package/dist/{scales-BzEZs-6Z.cjs → scales-VtK6oMP0.cjs} +0 -0
  267. /package/dist/{useChartSize-DdrCBerH.cjs → useChartSize-BPqvq1te.cjs} +0 -0
  268. /package/dist/{useChartSize-Bc1dbcG2.js → useChartSize-CBOK3yq5.js} +0 -0
  269. /package/dist/{vue-i18n-yvGo2JG6.cjs → vue-i18n-Bhwom92P.cjs} +0 -0
  270. /package/dist/{vue-i18n-BogjhxqA.js → vue-i18n-CkVGSKx4.js} +0 -0
@@ -1,408 +0,0 @@
1
- import { t as e } from "./Icon-rREAqsu0.js";
2
- import { t } from "./Label-glcQoGCr.js";
3
- import { t as n } from "./Message-Ciyc2nN6.js";
4
- import { t as r } from "./Grid-CgUyhsw4.js";
5
- import { useMenuSurface as i } from "./composables/useMenuSurface.composable.mjs";
6
- import { Fragment as a, Teleport as ee, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as te, onBeforeUnmount as ne, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useId as re, vModelText as ie, watch as ae, withCtx as S, withDirectives as oe, withKeys as se, withModifiers as C } from "vue";
7
- import { regular as w } from "@nubisco/ui/icons/caret-down";
8
- import { regular as T } from "@nubisco/ui/icons/caret-up";
9
- //#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
10
- var ce = [
11
- "id",
12
- "aria-expanded",
13
- "aria-disabled",
14
- "aria-required",
15
- "disabled"
16
- ], le = [
17
- "id",
18
- "aria-expanded",
19
- "aria-disabled",
20
- "aria-required",
21
- "disabled"
22
- ], ue = {
23
- key: 1,
24
- class: "nb-select__inner-label"
25
- }, de = {
26
- key: 0,
27
- class: "nb-select__asterisk",
28
- "aria-hidden": "true"
29
- }, fe = ["aria-multiselectable"], pe = [
30
- "aria-selected",
31
- "aria-disabled",
32
- "onMouseenter",
33
- "onClick"
34
- ], me = {
35
- key: 0,
36
- class: "nb-select__option-check",
37
- "aria-hidden": "true"
38
- }, he = {
39
- key: 0,
40
- viewBox: "0 0 10 8",
41
- fill: "none",
42
- width: "10",
43
- height: "8"
44
- }, E = { class: "nb-select__option-label" }, D = {
45
- key: 0,
46
- class: "nb-select__empty"
47
- }, O = ["placeholder", "onKeydown"], k = /* @__PURE__ */ p({
48
- __name: "Select",
49
- props: {
50
- modelValue: { default: null },
51
- options: { default: () => [] },
52
- multiple: {
53
- type: Boolean,
54
- default: !1
55
- },
56
- creatable: {
57
- type: Boolean,
58
- default: !1
59
- },
60
- createPlaceholder: { default: "" },
61
- placeholder: { default: "Select…" },
62
- name: { default: "" },
63
- disabled: {
64
- type: Boolean,
65
- default: !1
66
- },
67
- required: {
68
- type: Boolean,
69
- default: !1
70
- },
71
- id: { default: void 0 },
72
- label: { default: "" },
73
- error: { default: "" },
74
- warning: { default: "" },
75
- helper: { default: "" },
76
- variant: { default: "default" },
77
- size: { default: "md" }
78
- },
79
- emits: [
80
- "update:modelValue",
81
- "change",
82
- "create"
83
- ],
84
- setup(p, { expose: k, emit: A }) {
85
- let j = p, M = A, N = _("");
86
- function ge() {
87
- let e = N.value.trim();
88
- e && (M("create", e), N.value = "");
89
- }
90
- let P = _(!1), F = _(!1), I = _(-1), L = _(null), R = _(null), z = _(null);
91
- i(z);
92
- let B = _({
93
- position: "fixed",
94
- top: "0px",
95
- left: "0px",
96
- width: "0px",
97
- zIndex: "9999"
98
- }), _e = `nb-select-${re()}`, V = o(() => j.id ?? _e), H = o(() => j.modelValue == null ? [] : Array.isArray(j.modelValue) ? j.modelValue : [j.modelValue]), U = o(() => {
99
- if (!(j.multiple || H.value.length !== 1)) return (j.options ?? []).find((e) => e.value === H.value[0])?.icon;
100
- }), W = o(() => {
101
- if (H.value.length === 0) return "";
102
- let e = j.options ?? [];
103
- return j.multiple ? H.value.length === 1 ? e.find((e) => e.value === H.value[0])?.label ?? String(H.value[0]) : H.value.length === 2 ? H.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${H.value.length} selected` : e.find((e) => e.value === H.value[0])?.label ?? String(H.value[0]);
104
- });
105
- function G(e) {
106
- return H.value.includes(e);
107
- }
108
- function K(e) {
109
- if (e.disabled) return;
110
- let t;
111
- if (j.multiple) {
112
- let n = [...H.value], r = n.indexOf(e.value);
113
- r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
114
- } else t = e.value, Y();
115
- M("update:modelValue", t), M("change", t);
116
- }
117
- function q() {
118
- if (!R.value) return;
119
- let e = R.value.getBoundingClientRect(), t = z.value?.offsetHeight ?? 0, n = window.innerHeight - e.bottom, r = e.top;
120
- B.value = {
121
- position: "fixed",
122
- top: t > 0 && n < t && r > n ? `${e.top - t}px` : `${e.bottom}px`,
123
- left: `${e.left}px`,
124
- width: `${e.width}px`,
125
- zIndex: "9999"
126
- };
127
- }
128
- function J() {
129
- if (j.disabled) return;
130
- P.value = !0, q();
131
- let e = j.options ?? [];
132
- I.value = H.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === H.value[0])) : -1, m(() => {
133
- q(), $();
134
- });
135
- }
136
- function Y() {
137
- P.value = !1, I.value = -1;
138
- }
139
- function X() {
140
- P.value ? Y() : J();
141
- }
142
- function Z(e) {
143
- let t = e.target, n = L.value?.contains(t) ?? !1, r = z.value?.contains(t) ?? !1;
144
- !n && !r && Y();
145
- }
146
- function Q() {
147
- P.value && q();
148
- }
149
- ae(P, (e) => {
150
- e ? (document.addEventListener("mousedown", Z), window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q)) : (document.removeEventListener("mousedown", Z), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q));
151
- }), ne(() => {
152
- document.removeEventListener("mousedown", Z), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
153
- });
154
- function ve(e) {
155
- let t = j.options ?? [];
156
- if (!P.value) {
157
- (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), J());
158
- return;
159
- }
160
- e.key === "Escape" ? (Y(), e.preventDefault()) : e.key === "Tab" ? Y() : e.key === "ArrowDown" ? (e.preventDefault(), I.value = Math.min(I.value + 1, t.length - 1), $()) : e.key === "ArrowUp" ? (e.preventDefault(), I.value = Math.max(I.value - 1, 0), $()) : (e.key === "Enter" || e.key === " ") && I.value >= 0 && (e.preventDefault(), K(t[I.value]));
161
- }
162
- function $() {
163
- m(() => {
164
- !z.value || I.value < 0 || z.value.querySelectorAll(".nb-select__option")[I.value]?.scrollIntoView({ block: "nearest" });
165
- });
166
- }
167
- let ye = o(() => [
168
- "nb-select",
169
- `nb-select--${j.variant}`,
170
- `nb-select--${j.size}`,
171
- {
172
- "nb-select--open": P.value,
173
- "nb-select--focused": F.value && !P.value,
174
- "nb-select--error": !!j.error,
175
- "nb-select--warning": !j.error && !!j.warning,
176
- "nb-select--multiple": j.multiple
177
- }
178
- ]);
179
- return k({
180
- open: J,
181
- close: Y
182
- }), (i, o) => (g(), l(a, null, [u("div", {
183
- ref_key: "rootRef",
184
- ref: L,
185
- class: h(ye.value),
186
- onKeydown: ve
187
- }, [p.variant === "default" ? (g(), l(a, { key: 0 }, [
188
- i.$slots.label ? y(i.$slots, "label", { key: 0 }) : p.label ? (g(), s(t, {
189
- key: 1,
190
- for: V.value,
191
- required: p.required,
192
- disabled: p.disabled
193
- }, {
194
- default: S(() => [d(b(p.label), 1)]),
195
- _: 1
196
- }, 8, [
197
- "for",
198
- "required",
199
- "disabled"
200
- ])) : c("", !0),
201
- u("button", {
202
- id: V.value,
203
- ref_key: "triggerRef",
204
- ref: R,
205
- type: "button",
206
- class: "nb-select__trigger",
207
- role: "combobox",
208
- "aria-expanded": P.value,
209
- "aria-haspopup": "listbox",
210
- "aria-disabled": p.disabled || void 0,
211
- "aria-required": p.required || void 0,
212
- disabled: p.disabled || void 0,
213
- onClick: X,
214
- onFocus: o[0] ||= (e) => F.value = !0,
215
- onBlur: o[1] ||= (e) => F.value = !1
216
- }, [
217
- u("span", { class: h(["nb-select__value", {
218
- "nb-select__value--placeholder": !W.value,
219
- "nb-select__value--with-icon": !!U.value
220
- }]) }, [U.value ? (g(), s(e, {
221
- key: 0,
222
- class: "nb-select__value-icon",
223
- name: U.value,
224
- size: 16
225
- }, null, 8, ["name"])) : c("", !0), W.value ? y(i.$slots, "value", {
226
- key: 1,
227
- values: H.value
228
- }, () => [d(b(W.value), 1)]) : (g(), l(a, { key: 2 }, [d(b(p.placeholder), 1)], 64))], 2),
229
- p.error ? (g(), s(n, {
230
- key: 0,
231
- variant: "error",
232
- "icon-only": !0,
233
- class: "nb-select__status-icon"
234
- }, {
235
- default: S(() => [d(b(p.error), 1)]),
236
- _: 1
237
- })) : p.warning ? (g(), s(n, {
238
- key: 1,
239
- variant: "warning",
240
- "icon-only": !0,
241
- class: "nb-select__status-icon"
242
- }, {
243
- default: S(() => [d(b(p.warning), 1)]),
244
- _: 1
245
- })) : c("", !0),
246
- f(r, {
247
- align: "center",
248
- justify: "center",
249
- class: "nb-select__caret"
250
- }, {
251
- default: S(() => [f(e, {
252
- name: P.value ? x(T) : x(w),
253
- size: 16
254
- }, null, 8, ["name"])]),
255
- _: 1
256
- })
257
- ], 40, ce),
258
- p.error ? (g(), s(n, {
259
- key: 2,
260
- variant: "error",
261
- class: "nb-select__message"
262
- }, {
263
- default: S(() => [d(b(p.error), 1)]),
264
- _: 1
265
- })) : p.warning ? (g(), s(n, {
266
- key: 3,
267
- variant: "warning",
268
- class: "nb-select__message"
269
- }, {
270
- default: S(() => [d(b(p.warning), 1)]),
271
- _: 1
272
- })) : p.helper ? (g(), s(n, {
273
- key: 4,
274
- variant: "helper",
275
- class: "nb-select__message"
276
- }, {
277
- default: S(() => [d(b(p.helper), 1)]),
278
- _: 1
279
- })) : c("", !0)
280
- ], 64)) : p.variant === "fluid" ? (g(), l(a, { key: 1 }, [u("button", {
281
- id: V.value,
282
- ref_key: "triggerRef",
283
- ref: R,
284
- type: "button",
285
- class: "nb-select__trigger",
286
- role: "combobox",
287
- "aria-expanded": P.value,
288
- "aria-haspopup": "listbox",
289
- "aria-disabled": p.disabled || void 0,
290
- "aria-required": p.required || void 0,
291
- disabled: p.disabled || void 0,
292
- onClick: X,
293
- onFocus: o[2] ||= (e) => F.value = !0,
294
- onBlur: o[3] ||= (e) => F.value = !1
295
- }, [p.label || i.$slots.label ? (g(), s(r, {
296
- key: 0,
297
- dir: "row",
298
- align: "center",
299
- gap: "xs",
300
- class: "nb-select__inner-header"
301
- }, {
302
- default: S(() => [i.$slots.label ? y(i.$slots, "label", { key: 0 }) : (g(), l("label", ue, [d(b(p.label) + " ", 1), p.required ? (g(), l("span", de, "*")) : c("", !0)])), p.helper && !p.error && !p.warning ? (g(), s(n, {
303
- key: 2,
304
- variant: "helper",
305
- "icon-only": !0,
306
- class: "nb-select__inner-message"
307
- }, {
308
- default: S(() => [d(b(p.helper), 1)]),
309
- _: 1
310
- })) : c("", !0)]),
311
- _: 3
312
- })) : c("", !0), f(r, {
313
- dir: "row",
314
- align: "end",
315
- flex: "",
316
- class: "nb-select__value-row"
317
- }, {
318
- default: S(() => [u("span", { class: h(["nb-select__value", {
319
- "nb-select__value--placeholder": !W.value,
320
- "nb-select__value--with-icon": !!U.value
321
- }]) }, [U.value ? (g(), s(e, {
322
- key: 0,
323
- class: "nb-select__value-icon",
324
- name: U.value,
325
- size: 16
326
- }, null, 8, ["name"])) : c("", !0), W.value ? y(i.$slots, "value", {
327
- key: 1,
328
- values: H.value
329
- }, () => [d(b(W.value), 1)]) : (g(), l(a, { key: 2 }, [d(b(p.placeholder), 1)], 64))], 2), f(r, {
330
- align: "center",
331
- justify: "center",
332
- class: "nb-select__caret"
333
- }, {
334
- default: S(() => [f(e, {
335
- name: P.value ? x(T) : x(w),
336
- size: 16
337
- }, null, 8, ["name"])]),
338
- _: 1
339
- })]),
340
- _: 3
341
- })], 40, le), p.error ? (g(), s(n, {
342
- key: 0,
343
- variant: "error",
344
- class: "nb-select__fluid-message"
345
- }, {
346
- default: S(() => [d(b(p.error), 1)]),
347
- _: 1
348
- })) : p.warning ? (g(), s(n, {
349
- key: 1,
350
- variant: "warning",
351
- class: "nb-select__fluid-message"
352
- }, {
353
- default: S(() => [d(b(p.warning), 1)]),
354
- _: 1
355
- })) : c("", !0)], 64)) : c("", !0)], 34), (g(), s(ee, { to: "body" }, [P.value ? (g(), l("div", {
356
- key: 0,
357
- ref_key: "dropdownRef",
358
- ref: z,
359
- class: "nb-select__dropdown",
360
- style: te(B.value),
361
- role: "listbox",
362
- "aria-multiselectable": p.multiple || void 0
363
- }, [
364
- (g(!0), l(a, null, v(p.options, (t, n) => (g(), l("div", {
365
- key: t.value,
366
- class: h(["nb-select__option", {
367
- "nb-select__option--selected": G(t.value),
368
- "nb-select__option--highlighted": I.value === n,
369
- "nb-select__option--disabled": t.disabled
370
- }]),
371
- role: "option",
372
- "aria-selected": G(t.value),
373
- "aria-disabled": t.disabled || void 0,
374
- onMouseenter: (e) => I.value = n,
375
- onClick: (e) => K(t)
376
- }, [
377
- p.multiple ? (g(), l("span", me, [G(t.value) ? (g(), l("svg", he, [...o[7] ||= [u("path", {
378
- d: "M1 4l3 3 5-6",
379
- stroke: "currentColor",
380
- "stroke-width": "1.5",
381
- "stroke-linecap": "round",
382
- "stroke-linejoin": "round"
383
- }, null, -1)]])) : c("", !0)])) : c("", !0),
384
- t.icon ? (g(), s(e, {
385
- key: 1,
386
- class: "nb-select__option-icon",
387
- name: t.icon,
388
- size: 16
389
- }, null, 8, ["name"])) : c("", !0),
390
- u("span", E, [y(i.$slots, "option", { option: t }, () => [d(b(t.label), 1)])])
391
- ], 42, pe))), 128)),
392
- !p.options || p.options.length === 0 ? (g(), l("div", D, " No options ")) : c("", !0),
393
- p.creatable ? (g(), l("div", {
394
- key: 1,
395
- class: "nb-select__create",
396
- onMousedown: o[6] ||= C(() => {}, ["prevent"])
397
- }, [oe(u("input", {
398
- "onUpdate:modelValue": o[4] ||= (e) => N.value = e,
399
- type: "text",
400
- class: "nb-select__create-input",
401
- placeholder: p.createPlaceholder || "Add new…",
402
- onKeydown: [se(C(ge, ["prevent"]), ["enter"]), o[5] ||= C(() => {}, ["stop"])]
403
- }, null, 40, O), [[ie, N.value]])], 32)) : c("", !0)
404
- ], 12, fe)) : c("", !0)]))], 64));
405
- }
406
- });
407
- //#endregion
408
- export { k as t };
@@ -1 +0,0 @@
1
- require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Icon-C8R_r_In.cjs`),t=require(`./Label-DtXh4XR5.cjs`),n=require(`./Message-D8ZE4uGZ.cjs`),r=require(`./Grid-DTZTlxd_.cjs`),i=require(`./composables/useMenuSurface.composable.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/caret-down`),s=require(`@nubisco/ui/icons/caret-up`);var c=[`id`,`aria-expanded`,`aria-disabled`,`aria-required`,`disabled`],l=[`id`,`aria-expanded`,`aria-disabled`,`aria-required`,`disabled`],u={key:1,class:`nb-select__inner-label`},d={key:0,class:`nb-select__asterisk`,"aria-hidden":`true`},f=[`aria-multiselectable`],p=[`aria-selected`,`aria-disabled`,`onMouseenter`,`onClick`],m={key:0,class:`nb-select__option-check`,"aria-hidden":`true`},h={key:0,viewBox:`0 0 10 8`,fill:`none`,width:`10`,height:`8`},g={class:`nb-select__option-label`},_={key:0,class:`nb-select__empty`},v=[`placeholder`,`onKeydown`],y=(0,a.defineComponent)({__name:`Select`,props:{modelValue:{default:null},options:{default:()=>[]},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createPlaceholder:{default:``},placeholder:{default:`Select…`},name:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},emits:[`update:modelValue`,`change`,`create`],setup(y,{expose:b,emit:x}){let S=y,C=x,w=(0,a.ref)(``);function T(){let e=w.value.trim();e&&(C(`create`,e),w.value=``)}let E=(0,a.ref)(!1),D=(0,a.ref)(!1),O=(0,a.ref)(-1),k=(0,a.ref)(null),A=(0,a.ref)(null),j=(0,a.ref)(null);i.useMenuSurface(j);let M=(0,a.ref)({position:`fixed`,top:`0px`,left:`0px`,width:`0px`,zIndex:`9999`}),N=`nb-select-${(0,a.useId)()}`,P=(0,a.computed)(()=>S.id??N),F=(0,a.computed)(()=>S.modelValue==null?[]:Array.isArray(S.modelValue)?S.modelValue:[S.modelValue]),I=(0,a.computed)(()=>{if(!(S.multiple||F.value.length!==1))return(S.options??[]).find(e=>e.value===F.value[0])?.icon}),L=(0,a.computed)(()=>{if(F.value.length===0)return``;let e=S.options??[];return S.multiple?F.value.length===1?e.find(e=>e.value===F.value[0])?.label??String(F.value[0]):F.value.length===2?F.value.map(t=>e.find(e=>e.value===t)?.label??String(t)).join(`, `):`${F.value.length} selected`:e.find(e=>e.value===F.value[0])?.label??String(F.value[0])});function R(e){return F.value.includes(e)}function z(e){if(e.disabled)return;let t;if(S.multiple){let n=[...F.value],r=n.indexOf(e.value);r>=0?n.splice(r,1):n.push(e.value),t=n}else t=e.value,H();C(`update:modelValue`,t),C(`change`,t)}function B(){if(!A.value)return;let e=A.value.getBoundingClientRect(),t=j.value?.offsetHeight??0,n=window.innerHeight-e.bottom,r=e.top;M.value={position:`fixed`,top:t>0&&n<t&&r>n?`${e.top-t}px`:`${e.bottom}px`,left:`${e.left}px`,width:`${e.width}px`,zIndex:`9999`}}function V(){if(S.disabled)return;E.value=!0,B();let e=S.options??[];O.value=F.value.length>0?Math.max(0,e.findIndex(e=>e.value===F.value[0])):-1,(0,a.nextTick)(()=>{B(),q()})}function H(){E.value=!1,O.value=-1}function U(){E.value?H():V()}function W(e){let t=e.target,n=k.value?.contains(t)??!1,r=j.value?.contains(t)??!1;!n&&!r&&H()}function G(){E.value&&B()}(0,a.watch)(E,e=>{e?(document.addEventListener(`mousedown`,W),window.addEventListener(`scroll`,G,!0),window.addEventListener(`resize`,G)):(document.removeEventListener(`mousedown`,W),window.removeEventListener(`scroll`,G,!0),window.removeEventListener(`resize`,G))}),(0,a.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,W),window.removeEventListener(`scroll`,G,!0),window.removeEventListener(`resize`,G)});function K(e){let t=S.options??[];if(!E.value){(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)&&(e.preventDefault(),V());return}e.key===`Escape`?(H(),e.preventDefault()):e.key===`Tab`?H():e.key===`ArrowDown`?(e.preventDefault(),O.value=Math.min(O.value+1,t.length-1),q()):e.key===`ArrowUp`?(e.preventDefault(),O.value=Math.max(O.value-1,0),q()):(e.key===`Enter`||e.key===` `)&&O.value>=0&&(e.preventDefault(),z(t[O.value]))}function q(){(0,a.nextTick)(()=>{!j.value||O.value<0||j.value.querySelectorAll(`.nb-select__option`)[O.value]?.scrollIntoView({block:`nearest`})})}let J=(0,a.computed)(()=>[`nb-select`,`nb-select--${S.variant}`,`nb-select--${S.size}`,{"nb-select--open":E.value,"nb-select--focused":D.value&&!E.value,"nb-select--error":!!S.error,"nb-select--warning":!S.error&&!!S.warning,"nb-select--multiple":S.multiple}]);return b({open:V,close:H}),(i,b)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)(`div`,{ref_key:`rootRef`,ref:k,class:(0,a.normalizeClass)(J.value),onKeydown:K},[y.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[i.$slots.label?(0,a.renderSlot)(i.$slots,`label`,{key:0}):y.label?((0,a.openBlock)(),(0,a.createBlock)(t.t,{key:1,for:P.value,required:y.required,disabled:y.disabled},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`button`,{id:P.value,ref_key:`triggerRef`,ref:A,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":E.value,"aria-haspopup":`listbox`,"aria-disabled":y.disabled||void 0,"aria-required":y.required||void 0,disabled:y.disabled||void 0,onClick:U,onFocus:b[0]||=e=>D.value=!0,onBlur:b[1]||=e=>D.value=!1},[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!L.value,"nb-select__value--with-icon":!!I.value}])},[I.value?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-select__value-icon`,name:I.value,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),L.value?(0,a.renderSlot)(i.$slots,`value`,{key:1,values:F.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(L.value),1)]):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)((0,a.toDisplayString)(y.placeholder),1)],64))],2),y.error?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-select__status-icon`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.error),1)]),_:1})):y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-select__status-icon`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.warning),1)]),_:1})):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(r.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(e.t,{name:E.value?(0,a.unref)(s.regular):(0,a.unref)(o.regular),size:16},null,8,[`name`])]),_:1})],40,c),y.error?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:2,variant:`error`,class:`nb-select__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.error),1)]),_:1})):y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:3,variant:`warning`,class:`nb-select__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.warning),1)]),_:1})):y.helper?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:4,variant:`helper`,class:`nb-select__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.helper),1)]),_:1})):(0,a.createCommentVNode)(``,!0)],64)):y.variant===`fluid`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createElementVNode)(`button`,{id:P.value,ref_key:`triggerRef`,ref:A,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":E.value,"aria-haspopup":`listbox`,"aria-disabled":y.disabled||void 0,"aria-required":y.required||void 0,disabled:y.disabled||void 0,onClick:U,onFocus:b[2]||=e=>D.value=!0,onBlur:b[3]||=e=>D.value=!1},[y.label||i.$slots.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:0,dir:`row`,align:`center`,gap:`xs`,class:`nb-select__inner-header`},{default:(0,a.withCtx)(()=>[i.$slots.label?(0,a.renderSlot)(i.$slots,`label`,{key:0}):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,u,[(0,a.createTextVNode)((0,a.toDisplayString)(y.label)+` `,1),y.required?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,d,`*`)):(0,a.createCommentVNode)(``,!0)])),y.helper&&!y.error&&!y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:2,variant:`helper`,"icon-only":!0,class:`nb-select__inner-message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.helper),1)]),_:1})):(0,a.createCommentVNode)(``,!0)]),_:3})):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(r.t,{dir:`row`,align:`end`,flex:``,class:`nb-select__value-row`},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!L.value,"nb-select__value--with-icon":!!I.value}])},[I.value?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-select__value-icon`,name:I.value,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),L.value?(0,a.renderSlot)(i.$slots,`value`,{key:1,values:F.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(L.value),1)]):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)((0,a.toDisplayString)(y.placeholder),1)],64))],2),(0,a.createVNode)(r.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(e.t,{name:E.value?(0,a.unref)(s.regular):(0,a.unref)(o.regular),size:16},null,8,[`name`])]),_:1})]),_:3})],40,l),y.error?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,variant:`error`,class:`nb-select__fluid-message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.error),1)]),_:1})):y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,variant:`warning`,class:`nb-select__fluid-message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.warning),1)]),_:1})):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0)],34),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`},[E.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref_key:`dropdownRef`,ref:j,class:`nb-select__dropdown`,style:(0,a.normalizeStyle)(M.value),role:`listbox`,"aria-multiselectable":y.multiple||void 0},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.options,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:t.value,class:(0,a.normalizeClass)([`nb-select__option`,{"nb-select__option--selected":R(t.value),"nb-select__option--highlighted":O.value===n,"nb-select__option--disabled":t.disabled}]),role:`option`,"aria-selected":R(t.value),"aria-disabled":t.disabled||void 0,onMouseenter:e=>O.value=n,onClick:e=>z(t)},[y.multiple?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,m,[R(t.value)?((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,h,[...b[7]||=[(0,a.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,a.createCommentVNode)(``,!0)])):(0,a.createCommentVNode)(``,!0),t.icon?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:1,class:`nb-select__option-icon`,name:t.icon,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,g,[(0,a.renderSlot)(i.$slots,`option`,{option:t},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.label),1)])])],42,p))),128)),!y.options||y.options.length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,_,` No options `)):(0,a.createCommentVNode)(``,!0),y.creatable?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:`nb-select__create`,onMousedown:b[6]||=(0,a.withModifiers)(()=>{},[`prevent`])},[(0,a.withDirectives)((0,a.createElementVNode)(`input`,{"onUpdate:modelValue":b[4]||=e=>w.value=e,type:`text`,class:`nb-select__create-input`,placeholder:y.createPlaceholder||`Add new…`,onKeydown:[(0,a.withKeys)((0,a.withModifiers)(T,[`prevent`]),[`enter`]),b[5]||=(0,a.withModifiers)(()=>{},[`stop`])]},null,40,v),[[a.vModelText,w.value]])],32)):(0,a.createCommentVNode)(``,!0)],12,f)):(0,a.createCommentVNode)(``,!0)]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes