@firstnoodle-ui/bui 0.0.27 → 0.0.28

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 (334) hide show
  1. package/LICENSE +21 -21
  2. package/dist/bui.css +1 -1
  3. package/dist/components/calendar-view/CalendarView.vue.d.ts +21 -0
  4. package/dist/components/calendar-view/components/DateButton.vue.d.ts +10 -0
  5. package/dist/components/calendar-view/components/DecadeView.vue.d.ts +12 -0
  6. package/dist/components/calendar-view/components/MonthView.vue.d.ts +17 -0
  7. package/dist/components/calendar-view/components/YearView.vue.d.ts +13 -0
  8. package/dist/components/calendar-view/composables/useCalendar.d.ts +44 -0
  9. package/dist/components/calendar-view/index.d.ts +1 -0
  10. package/dist/components/calendar-view/utils/enums.d.ts +29 -0
  11. package/dist/components/calendar-view/utils/index.d.ts +23 -0
  12. package/dist/components/calendar-view/utils/types.d.ts +12 -0
  13. package/dist/components/calendar-view/utils/utils/calendar.d.ts +22 -0
  14. package/dist/components/calendar-view/utils/utils/date.d.ts +15 -0
  15. package/dist/components/calendar-view/utils/utils/format.d.ts +18 -0
  16. package/dist/components/calendar-view/utils/utils/time.d.ts +35 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/components/notification-badge/NotificationBadge.vue.d.ts +5 -0
  19. package/dist/components/notification-badge/index.d.ts +1 -0
  20. package/dist/components/select-list/components/option-group/OptionGroup.vue.d.ts +1 -0
  21. package/dist/components/select-list/components/select-list-option/SelectListOption.vue.d.ts +1 -0
  22. package/dist/components/select-list/types.d.ts +1 -0
  23. package/dist/components/types.d.ts +1 -1
  24. package/dist/index.mjs +7056 -6465
  25. package/dist/utils/capitalizeFirstLetter.d.ts +1 -0
  26. package/package.json +4 -3
  27. package/src/components/application-wrapper/ApplicationWrapper.vue +8 -0
  28. package/src/components/application-wrapper/index.ts +1 -0
  29. package/src/components/aside-section-label/AsideSectionLabel.vue +16 -0
  30. package/src/components/aside-section-label/index.ts +1 -0
  31. package/src/components/button/Button.vue +246 -0
  32. package/src/components/button/NotificationBadge.vue +15 -0
  33. package/src/components/button/components/button-label/ButtonLabel.vue +9 -0
  34. package/src/components/button/components/button-label/index.ts +1 -0
  35. package/src/components/button/components/index.ts +3 -0
  36. package/src/components/button/components/left-group/LeftGroup.vue +5 -0
  37. package/src/components/button/components/left-group/index.ts +1 -0
  38. package/src/components/button/components/notification-badge/NotificationBadge.vue +17 -0
  39. package/src/components/button/components/notification-badge/index.ts +1 -0
  40. package/src/components/button/index.ts +1 -0
  41. package/src/components/button-group/ButtonGroup.vue +97 -0
  42. package/src/components/button-group/index.ts +1 -0
  43. package/src/components/calendar-view/CalendarView.vue +106 -0
  44. package/src/components/calendar-view/components/DateButton.vue +23 -0
  45. package/src/components/calendar-view/components/DecadeView.vue +50 -0
  46. package/src/components/calendar-view/components/MonthView.vue +72 -0
  47. package/src/components/calendar-view/components/NavButton.vue +16 -0
  48. package/src/components/calendar-view/components/YearView.vue +52 -0
  49. package/src/components/calendar-view/composables/useCalendar.ts +138 -0
  50. package/src/components/calendar-view/index.ts +1 -0
  51. package/src/components/calendar-view/utils/enums.ts +31 -0
  52. package/src/components/calendar-view/utils/index.ts +240 -0
  53. package/src/components/calendar-view/utils/types.ts +13 -0
  54. package/src/components/calendar-view/utils/utils/calendar.ts +70 -0
  55. package/src/components/calendar-view/utils/utils/date.ts +130 -0
  56. package/src/components/calendar-view/utils/utils/format.ts +61 -0
  57. package/src/components/calendar-view/utils/utils/time.ts +70 -0
  58. package/src/components/checkbox/Checkbox.vue +51 -0
  59. package/src/components/checkbox/CircleIndicator.vue +26 -0
  60. package/src/components/checkbox/DefaultIndicator.vue +19 -0
  61. package/src/components/checkbox/index.ts +1 -0
  62. package/src/components/collapse/Collapse.vue +114 -0
  63. package/src/components/collapse/index.ts +1 -0
  64. package/src/components/confirm-cancel/ConfirmCancel.vue +66 -0
  65. package/src/components/confirm-cancel/index.ts +1 -0
  66. package/src/components/confirm-cancel/types.ts +18 -0
  67. package/src/components/content-slider/ContentSlider.vue +79 -0
  68. package/src/components/content-slider/index.ts +1 -0
  69. package/src/components/data-point/DataPoint.vue +5 -0
  70. package/src/components/data-point/index.ts +1 -0
  71. package/src/components/delete-button/DeleteButton.vue +19 -0
  72. package/src/components/delete-button/index.ts +1 -0
  73. package/src/components/dialog/Dialog.vue +70 -0
  74. package/src/components/dialog/index.ts +1 -0
  75. package/src/components/fade-in-up/FadeInUp.vue +17 -0
  76. package/src/components/fade-in-up/index.ts +1 -0
  77. package/src/components/filter-chip/FilterChip.vue +28 -0
  78. package/src/components/filter-chip/index.ts +1 -0
  79. package/src/components/first-paint/FirstPaint.vue +21 -0
  80. package/src/components/first-paint/index.ts +1 -0
  81. package/src/components/first-paint/style.scss +23 -0
  82. package/src/components/flexbox/Flexbox.vue +51 -0
  83. package/src/components/flexbox/index.ts +1 -0
  84. package/src/components/horizontal-layout/Aside.vue +114 -0
  85. package/src/components/horizontal-layout/HorizontalLayout.vue +118 -0
  86. package/src/components/horizontal-layout/index.ts +2 -0
  87. package/src/components/icon/Icon.vue +1263 -0
  88. package/src/components/icon/index.ts +1 -0
  89. package/src/components/icon/utils/combine-svgs.cjs +55 -0
  90. package/src/components/icon/utils/combined-svgs.txt +1150 -0
  91. package/src/components/icon/utils/svgs/admin.svg +16 -0
  92. package/src/components/icon/utils/svgs/arrow-deviate.svg +3 -0
  93. package/src/components/icon/utils/svgs/arrow-down-plus.svg +4 -0
  94. package/src/components/icon/utils/svgs/arrow-down.svg +3 -0
  95. package/src/components/icon/utils/svgs/arrow-from.svg +3 -0
  96. package/src/components/icon/utils/svgs/arrow-left.svg +3 -0
  97. package/src/components/icon/utils/svgs/arrow-move.svg +15 -0
  98. package/src/components/icon/utils/svgs/arrow-right.svg +3 -0
  99. package/src/components/icon/utils/svgs/arrow-sub.svg +3 -0
  100. package/src/components/icon/utils/svgs/arrow-trend.svg +15 -0
  101. package/src/components/icon/utils/svgs/arrow-up-plus.svg +4 -0
  102. package/src/components/icon/utils/svgs/arrow-up.svg +3 -0
  103. package/src/components/icon/utils/svgs/authority.svg +5 -0
  104. package/src/components/icon/utils/svgs/beams.svg +5 -0
  105. package/src/components/icon/utils/svgs/bell.svg +15 -0
  106. package/src/components/icon/utils/svgs/bold.svg +3 -0
  107. package/src/components/icon/utils/svgs/box.svg +5 -0
  108. package/src/components/icon/utils/svgs/building.svg +15 -0
  109. package/src/components/icon/utils/svgs/bullet-list.svg +8 -0
  110. package/src/components/icon/utils/svgs/calendar.svg +21 -0
  111. package/src/components/icon/utils/svgs/camera.svg +5 -0
  112. package/src/components/icon/utils/svgs/categories.svg +3 -0
  113. package/src/components/icon/utils/svgs/check-circled.svg +16 -0
  114. package/src/components/icon/utils/svgs/check-outline.svg +15 -0
  115. package/src/components/icon/utils/svgs/check.svg +3 -0
  116. package/src/components/icon/utils/svgs/chevron-down.svg +3 -0
  117. package/src/components/icon/utils/svgs/chevron-left-double.svg +4 -0
  118. package/src/components/icon/utils/svgs/chevron-left.svg +3 -0
  119. package/src/components/icon/utils/svgs/chevron-right-double.svg +4 -0
  120. package/src/components/icon/utils/svgs/chevron-right.svg +3 -0
  121. package/src/components/icon/utils/svgs/chevron-up.svg +3 -0
  122. package/src/components/icon/utils/svgs/clock.svg +4 -0
  123. package/src/components/icon/utils/svgs/close-outline.svg +3 -0
  124. package/src/components/icon/utils/svgs/close.svg +3 -0
  125. package/src/components/icon/utils/svgs/columns.svg +3 -0
  126. package/src/components/icon/utils/svgs/conclusion.svg +17 -0
  127. package/src/components/icon/utils/svgs/copy.svg +16 -0
  128. package/src/components/icon/utils/svgs/crosshair.svg +15 -0
  129. package/src/components/icon/utils/svgs/dash.svg +3 -0
  130. package/src/components/icon/utils/svgs/dashboard.svg +3 -0
  131. package/src/components/icon/utils/svgs/delete.svg +4 -0
  132. package/src/components/icon/utils/svgs/delta.svg +3 -0
  133. package/src/components/icon/utils/svgs/download.svg +3 -0
  134. package/src/components/icon/utils/svgs/drag.svg +8 -0
  135. package/src/components/icon/utils/svgs/drilldown.svg +8 -0
  136. package/src/components/icon/utils/svgs/edit.svg +16 -0
  137. package/src/components/icon/utils/svgs/envelope.svg +3 -0
  138. package/src/components/icon/utils/svgs/error.svg +3 -0
  139. package/src/components/icon/utils/svgs/export-document.svg +16 -0
  140. package/src/components/icon/utils/svgs/filter.svg +6 -0
  141. package/src/components/icon/utils/svgs/filters.svg +4 -0
  142. package/src/components/icon/utils/svgs/flag.svg +3 -0
  143. package/src/components/icon/utils/svgs/folder.svg +15 -0
  144. package/src/components/icon/utils/svgs/frequency.svg +3 -0
  145. package/src/components/icon/utils/svgs/fullscreen-off.svg +3 -0
  146. package/src/components/icon/utils/svgs/fullscreen-on.svg +3 -0
  147. package/src/components/icon/utils/svgs/graduate.svg +3 -0
  148. package/src/components/icon/utils/svgs/hamburger.svg +5 -0
  149. package/src/components/icon/utils/svgs/handshake.svg +15 -0
  150. package/src/components/icon/utils/svgs/heading-1.svg +4 -0
  151. package/src/components/icon/utils/svgs/heading-2.svg +4 -0
  152. package/src/components/icon/utils/svgs/heading.svg +3 -0
  153. package/src/components/icon/utils/svgs/home.svg +3 -0
  154. package/src/components/icon/utils/svgs/id-card.svg +6 -0
  155. package/src/components/icon/utils/svgs/id.svg +4 -0
  156. package/src/components/icon/utils/svgs/indent-left.svg +7 -0
  157. package/src/components/icon/utils/svgs/indent-right.svg +7 -0
  158. package/src/components/icon/utils/svgs/information.svg +17 -0
  159. package/src/components/icon/utils/svgs/italics.svg +3 -0
  160. package/src/components/icon/utils/svgs/itenary.svg +11 -0
  161. package/src/components/icon/utils/svgs/keyboard.svg +11 -0
  162. package/src/components/icon/utils/svgs/lightning.svg +15 -0
  163. package/src/components/icon/utils/svgs/link.svg +4 -0
  164. package/src/components/icon/utils/svgs/list-collapse.svg +6 -0
  165. package/src/components/icon/utils/svgs/list-expand.svg +6 -0
  166. package/src/components/icon/utils/svgs/location.svg +4 -0
  167. package/src/components/icon/utils/svgs/lock-locked.svg +4 -0
  168. package/src/components/icon/utils/svgs/lock-unlocked.svg +4 -0
  169. package/src/components/icon/utils/svgs/magnifying-glass.svg +15 -0
  170. package/src/components/icon/utils/svgs/map.svg +3 -0
  171. package/src/components/icon/utils/svgs/megaphone.svg +3 -0
  172. package/src/components/icon/utils/svgs/message.svg +15 -0
  173. package/src/components/icon/utils/svgs/microscope.svg +3 -0
  174. package/src/components/icon/utils/svgs/moon.svg +3 -0
  175. package/src/components/icon/utils/svgs/new-document.svg +4 -0
  176. package/src/components/icon/utils/svgs/news.svg +15 -0
  177. package/src/components/icon/utils/svgs/numbered-list.svg +7 -0
  178. package/src/components/icon/utils/svgs/open-link.svg +16 -0
  179. package/src/components/icon/utils/svgs/options.svg +5 -0
  180. package/src/components/icon/utils/svgs/page.svg +7 -0
  181. package/src/components/icon/utils/svgs/paper-plane.svg +15 -0
  182. package/src/components/icon/utils/svgs/paper.svg +3 -0
  183. package/src/components/icon/utils/svgs/pen-and-paper.svg +4 -0
  184. package/src/components/icon/utils/svgs/phase.svg +15 -0
  185. package/src/components/icon/utils/svgs/photo.svg +4 -0
  186. package/src/components/icon/utils/svgs/pie-chart.svg +3 -0
  187. package/src/components/icon/utils/svgs/plus.svg +3 -0
  188. package/src/components/icon/utils/svgs/point-left.svg +3 -0
  189. package/src/components/icon/utils/svgs/point-up.svg +3 -0
  190. package/src/components/icon/utils/svgs/popup.svg +16 -0
  191. package/src/components/icon/utils/svgs/question.svg +17 -0
  192. package/src/components/icon/utils/svgs/radio-tower.svg +3 -0
  193. package/src/components/icon/utils/svgs/recycle.svg +3 -0
  194. package/src/components/icon/utils/svgs/redo.svg +3 -0
  195. package/src/components/icon/utils/svgs/refresh.svg +3 -0
  196. package/src/components/icon/utils/svgs/route.svg +3 -0
  197. package/src/components/icon/utils/svgs/rows.svg +3 -0
  198. package/src/components/icon/utils/svgs/scope.svg +7 -0
  199. package/src/components/icon/utils/svgs/settings.svg +16 -0
  200. package/src/components/icon/utils/svgs/share.svg +11 -0
  201. package/src/components/icon/utils/svgs/sign-in.svg +4 -0
  202. package/src/components/icon/utils/svgs/sign-up.svg +3 -0
  203. package/src/components/icon/utils/svgs/sort-down.svg +20 -0
  204. package/src/components/icon/utils/svgs/sort-up.svg +20 -0
  205. package/src/components/icon/utils/svgs/sort.svg +7 -0
  206. package/src/components/icon/utils/svgs/square-solid.svg +3 -0
  207. package/src/components/icon/utils/svgs/star-solid.svg +15 -0
  208. package/src/components/icon/utils/svgs/star.svg +15 -0
  209. package/src/components/icon/utils/svgs/stop-watch.svg +5 -0
  210. package/src/components/icon/utils/svgs/structure.svg +3 -0
  211. package/src/components/icon/utils/svgs/sun.svg +23 -0
  212. package/src/components/icon/utils/svgs/table.svg +3 -0
  213. package/src/components/icon/utils/svgs/tag.svg +15 -0
  214. package/src/components/icon/utils/svgs/team.svg +15 -0
  215. package/src/components/icon/utils/svgs/telescope.svg +15 -0
  216. package/src/components/icon/utils/svgs/trash.svg +6 -0
  217. package/src/components/icon/utils/svgs/triangle-angle.svg +3 -0
  218. package/src/components/icon/utils/svgs/triangle-side.svg +3 -0
  219. package/src/components/icon/utils/svgs/underline.svg +4 -0
  220. package/src/components/icon/utils/svgs/undo.svg +3 -0
  221. package/src/components/icon/utils/svgs/user.svg +16 -0
  222. package/src/components/icon/utils/svgs/venn.svg +3 -0
  223. package/src/components/icon/utils/svgs/video.svg +3 -0
  224. package/src/components/icon/utils/svgs/visibility-off-alt.svg +19 -0
  225. package/src/components/icon/utils/svgs/visibility-off.svg +3 -0
  226. package/src/components/icon/utils/svgs/visibility-on.svg +16 -0
  227. package/src/components/icon/utils/svgs/warning.svg +5 -0
  228. package/src/components/index.ts +45 -0
  229. package/src/components/input/Input.vue +118 -0
  230. package/src/components/input/index.ts +1 -0
  231. package/src/components/input-number/InputNumber.vue +112 -0
  232. package/src/components/input-number/StepButton.vue +23 -0
  233. package/src/components/input-number/index.ts +1 -0
  234. package/src/components/load-spinner/LoadSpinner.vue +13 -0
  235. package/src/components/load-spinner/index.ts +1 -0
  236. package/src/components/modal/Modal.vue +111 -0
  237. package/src/components/modal/index.ts +1 -0
  238. package/src/components/nav-item/NavItem.vue +62 -0
  239. package/src/components/nav-item/index.ts +1 -0
  240. package/src/components/notification/Notification.vue +53 -0
  241. package/src/components/notification/index.ts +1 -0
  242. package/src/components/notification-badge/NotificationBadge.vue +7 -0
  243. package/src/components/notification-badge/index.ts +1 -0
  244. package/src/components/pagination/Pagination.vue +65 -0
  245. package/src/components/pagination/index.ts +1 -0
  246. package/src/components/pop-confirm/PopConfirm.vue +90 -0
  247. package/src/components/pop-confirm/index.ts +1 -0
  248. package/src/components/pop-select/FooterButton.vue +5 -0
  249. package/src/components/pop-select/PopSelect.vue +346 -0
  250. package/src/components/pop-select/ResultFilters.vue +28 -0
  251. package/src/components/pop-select/enums.ts +7 -0
  252. package/src/components/pop-select/index.ts +2 -0
  253. package/src/components/pop-select/option.vue +51 -0
  254. package/src/components/popper/Popper.vue +239 -0
  255. package/src/components/popper/PopperContent.vue +5 -0
  256. package/src/components/popper/index.ts +2 -0
  257. package/src/components/popper/middleware.ts +19 -0
  258. package/src/components/screen-overlay/ScreenOverlay.vue +53 -0
  259. package/src/components/screen-overlay/index.ts +1 -0
  260. package/src/components/scrollbar/Bar.vue +106 -0
  261. package/src/components/scrollbar/ScrollBottomLoader.vue +25 -0
  262. package/src/components/scrollbar/Scrollbar.vue +219 -0
  263. package/src/components/scrollbar/enums.ts +23 -0
  264. package/src/components/scrollbar/index.ts +3 -0
  265. package/src/components/scrollbar/style.scss +77 -0
  266. package/src/components/scrollbar/types.ts +32 -0
  267. package/src/components/select-list/SelectList.vue +476 -0
  268. package/src/components/select-list/components/SelectListFilterChip.vue +34 -0
  269. package/src/components/select-list/components/index.ts +3 -0
  270. package/src/components/select-list/components/option-group/OptionGroup.vue +20 -0
  271. package/src/components/select-list/components/option-group/index.ts +1 -0
  272. package/src/components/select-list/components/select-list-option/SelectListOption.vue +83 -0
  273. package/src/components/select-list/components/select-list-option/index.ts +1 -0
  274. package/src/components/select-list/components/status-cards/error-card/ErrorCard.vue +17 -0
  275. package/src/components/select-list/components/status-cards/error-card/index.ts +1 -0
  276. package/src/components/select-list/components/status-cards/idle-card/IdleCard.vue +11 -0
  277. package/src/components/select-list/components/status-cards/idle-card/index.ts +1 -0
  278. package/src/components/select-list/components/status-cards/index.ts +4 -0
  279. package/src/components/select-list/components/status-cards/loading-card/LoadingCard.vue +10 -0
  280. package/src/components/select-list/components/status-cards/loading-card/index.ts +1 -0
  281. package/src/components/select-list/components/status-cards/no-match-card/NoMatchCard.vue +15 -0
  282. package/src/components/select-list/components/status-cards/no-match-card/index.ts +1 -0
  283. package/src/components/select-list/components/status-cards/status-card/StatusCard.vue +25 -0
  284. package/src/components/select-list/components/status-cards/status-card/index.ts +1 -0
  285. package/src/components/select-list/index.ts +5 -0
  286. package/src/components/select-list/types.ts +49 -0
  287. package/src/components/side-over/SideOver.vue +87 -0
  288. package/src/components/side-over/index.ts +1 -0
  289. package/src/components/status-select/StatusIndicator.vue +78 -0
  290. package/src/components/status-select/StatusSelect.vue +62 -0
  291. package/src/components/status-select/index.ts +1 -0
  292. package/src/components/switch/Switch.vue +52 -0
  293. package/src/components/switch/index.ts +1 -0
  294. package/src/components/tab/Tab.vue +65 -0
  295. package/src/components/tab/index.ts +1 -0
  296. package/src/components/tag/Tag.vue +34 -0
  297. package/src/components/tag/index.ts +1 -0
  298. package/src/components/text-editor/TextEditor.vue +399 -0
  299. package/src/components/text-editor/components/Dialog.vue +11 -0
  300. package/src/components/text-editor/components/FormattingButton.vue +46 -0
  301. package/src/components/text-editor/components/InsertLinkDialog.vue +81 -0
  302. package/src/components/text-editor/components/InsertTextDialog.vue +36 -0
  303. package/src/components/text-editor/components/index.ts +3 -0
  304. package/src/components/text-editor/index.ts +1 -0
  305. package/src/components/text-highlight/TextHighlight.vue +113 -0
  306. package/src/components/text-highlight/index.ts +1 -0
  307. package/src/components/text-viewer/TextViewer.vue +5 -0
  308. package/src/components/text-viewer/index.ts +1 -0
  309. package/src/components/toggle-button/ToggleButton.vue +105 -0
  310. package/src/components/toggle-button/index.ts +1 -0
  311. package/src/components/tooltip/Tooltip.vue +54 -0
  312. package/src/components/tooltip/index.ts +1 -0
  313. package/src/components/types.ts +232 -0
  314. package/src/components/vertical-layout/RunningSection.vue +54 -0
  315. package/src/components/vertical-layout/VerticalLayout.vue +37 -0
  316. package/src/components/vertical-layout/index.ts +3 -0
  317. package/src/components/vertical-layout/types.ts +2 -0
  318. package/src/components/window-frame/WindowFrame.vue +20 -0
  319. package/src/components/window-frame/index.ts +1 -0
  320. package/src/composables/index.ts +5 -0
  321. package/src/composables/useClickOutside.ts +48 -0
  322. package/src/composables/useEscapeKey.ts +12 -0
  323. package/src/composables/useMounted.ts +7 -0
  324. package/src/composables/useNextFrame.ts +10 -0
  325. package/src/composables/useTrapFocus.ts +61 -0
  326. package/src/index.ts +5 -0
  327. package/src/main.css +140 -0
  328. package/src/utils/array.ts +11 -0
  329. package/src/utils/capitalizeFirstLetter.ts +4 -0
  330. package/src/utils/clamp.ts +9 -0
  331. package/src/utils/debounce.ts +8 -0
  332. package/src/utils/index.ts +5 -0
  333. package/src/utils/scrollIntoView.ts +25 -0
  334. package/src/utils/scrollbarWidth.ts +27 -0
@@ -0,0 +1,10 @@
1
+ <script setup lang="ts">
2
+ import { BLoadSpinner } from "../../../..";
3
+ import { StatusCard } from "../status-card";
4
+ </script>
5
+
6
+ <template>
7
+ <StatusCard status="Loading" variant="loading">
8
+ <BLoadSpinner />
9
+ </StatusCard>
10
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BLoadingCard } from "./LoadingCard.vue";
@@ -0,0 +1,15 @@
1
+ <script setup lang="ts">
2
+ import { StatusCard } from "../status-card";
3
+ </script>
4
+
5
+ <template>
6
+ <StatusCard status="No matches" variant="no match">
7
+ <svg width="26" height="44" viewBox="0 0 26 44" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <path d="M3.15001 30.8249C1.30001 28.9749 2.00001 25.2749 2.00001 25.2749C2.00001 25.2749 5.70001 24.5749 7.55001 26.4249C9.40001 28.2749 8.70001 31.9749 8.70001 31.9749C8.70001 31.9749 5.00001 32.6749 3.15001 30.8249Z" stroke="#ADA7A1" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" />
9
+ <path d="M18.1501 18.175V17.3749H19.0001C21.8501 17.3749 24.1501 15.0749 24.1501 12.225C24.1501 9.37495 21.8501 7.02495 19.0001 7.02495H18.2001V6.22495C18.2001 3.37495 15.9001 1.07495 13.0501 1.07495C10.2001 1.07495 7.9001 3.37495 7.9001 6.22495V7.02495H7.0001C4.1501 7.02495 1.8501 9.32495 1.8501 12.175C1.8501 15.025 4.1501 17.3749 7.0001 17.3749H7.8001V18.175C7.8001 21.025 10.1001 23.3249 12.9501 23.3249C15.8501 23.3249 18.1501 21.025 18.1501 18.175Z" stroke="#ADA7A1" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" />
10
+ <path d="M13 15.9749C15.0986 15.9749 16.7999 14.2736 16.7999 12.1749C16.7999 10.0762 15.0986 8.37488 13 8.37488C10.9013 8.37488 9.19995 10.0762 9.19995 12.1749C9.19995 14.2736 10.9013 15.9749 13 15.9749Z" stroke="#ADA7A1" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" />
11
+ <path d="M13 23.325V42.9249" stroke="#ADA7A1" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" />
12
+ <path d="M8.69995 31.975L12.9999 35.725" stroke="#ADA7A1" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" />
13
+ </svg>
14
+ </StatusCard>
15
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BNoMatchCard } from "./NoMatchCard.vue";
@@ -0,0 +1,25 @@
1
+ <script setup lang="ts">
2
+ import type { SelectListState } from "../../../types";
3
+
4
+ defineProps<{ status: string; variant: SelectListState }>();
5
+ </script>
6
+
7
+ <template>
8
+ <div class="flex-1 h-full flex flex-col items-center justify-center gap-2">
9
+ <div class="flex flex-col items-center justify-center">
10
+ <div class="flex items-center justify-center w-12 h-12">
11
+ <slot />
12
+ </div>
13
+ </div>
14
+ <span
15
+ class="text-ui-label-14-medium"
16
+ :class="{
17
+ 'text-disabled-font': variant === 'idle' || variant === 'no match',
18
+ 'text-alert': variant === 'error',
19
+ 'text-primary': variant === 'loading',
20
+ }"
21
+ >
22
+ {{ status }}
23
+ </span>
24
+ </div>
25
+ </template>
@@ -0,0 +1 @@
1
+ export { default as StatusCard } from "./StatusCard.vue";
@@ -0,0 +1,5 @@
1
+ export { BSelectListOptionGroup } from "./components/option-group";
2
+ export { BSelectListOption } from "./components/select-list-option";
3
+ export { default as BSelectList } from "./SelectList.vue";
4
+
5
+ export * from "./types";
@@ -0,0 +1,49 @@
1
+ import type { TIcon } from "../types";
2
+
3
+ export const states = ["error", "idle", "loading", "match", "no match"] as const;
4
+ export type SelectListState = typeof states[number];
5
+
6
+ export const selectOptionVariants = ["checkbox", "deletable", "single"] as const;
7
+ export type SelectOptionVariant = typeof selectOptionVariants[number];
8
+
9
+ export type SelectListOption = {
10
+ id?: string | number;
11
+ icon?: TIcon;
12
+ label: string;
13
+ disabled?: boolean;
14
+ suffix?: string | number;
15
+ group?: string;
16
+ value?: any;
17
+ handler?: (option: SelectListOption) => void;
18
+ };
19
+
20
+ export type SelectListOptionGroup = {
21
+ id: string | number;
22
+ name?: string;
23
+ options: SelectListOption[];
24
+ };
25
+
26
+ export type SelectListFilter = {
27
+ id?: string | number;
28
+ name: string;
29
+ disabled: boolean;
30
+ execute: (record: SelectListOption) => boolean;
31
+ count?: number;
32
+ };
33
+
34
+ export type SelectListProps = {
35
+ identifier?: keyof SelectListOption;
36
+ errorMessage?: string;
37
+ filters?: SelectListFilter[];
38
+ loading?: boolean;
39
+ options: SelectListOption[] | SelectListOptionGroup[];
40
+ placeholder?: string;
41
+ rootClass?: string;
42
+ sameWidthAsTrigger?: boolean;
43
+ searchDebounce?: number;
44
+ searchFunction?: (query: string) => SelectListOption[] | null;
45
+ selectAll?: boolean;
46
+ selected: SelectListOption | null | SelectListOption[];
47
+ showSelection?: boolean;
48
+ small?: boolean;
49
+ };
@@ -0,0 +1,87 @@
1
+ <script setup lang="ts">
2
+ import type { Slots } from "vue";
3
+ import type { TOverlayType } from "../types";
4
+ import { onMounted, ref, useSlots } from "vue";
5
+ import { BButton, BScreenOverlay, BVerticalLayout } from "../";
6
+ import { useEscapeKey, useTrapFocus } from "../../";
7
+
8
+ const props = withDefaults(
9
+ defineProps<{
10
+ closeable?: boolean;
11
+ overlayType?: TOverlayType;
12
+ noScrollbar?: boolean;
13
+ target?: string;
14
+ title?: string;
15
+ }>(),
16
+ {
17
+ closeable: true,
18
+ overlayType: "default",
19
+ noScrollbar: false,
20
+ target: "#modals",
21
+ },
22
+ );
23
+ const emit = defineEmits(["close"]);
24
+ const slots: Slots = useSlots();
25
+ const show = ref(false);
26
+ const panelRef = ref<HTMLDivElement>();
27
+ const { trapFocus } = useTrapFocus(panelRef);
28
+
29
+ // when component is mounted start the transition
30
+ onMounted(() => (show.value = true));
31
+
32
+ const close = () => (show.value = false);
33
+ const onClose = () => props.closeable && close();
34
+ props.closeable && useEscapeKey(onClose);
35
+
36
+ // afterTransition -> start trapFocus
37
+ const onTransitionAfterEnter = () => {
38
+ // focus the dialog after transition
39
+ panelRef.value?.focus();
40
+ // trap focus inside the dialog (without focusing the first focusable element)
41
+ trapFocus();
42
+ };
43
+
44
+ defineExpose({ close });
45
+ </script>
46
+
47
+ <template>
48
+ <Teleport to="#modals">
49
+ <BScreenOverlay :show="show" :type="overlayType" class="p-4" @click="onClose" @close="emit('close')">
50
+ <transition
51
+ enter-active-class="transform transition ease-in-out duration-500"
52
+ enter-from-class="translate-x-full"
53
+ enter-to-class=""
54
+ leave-active-class="transform transition ease-in-out duration-300"
55
+ leave-class="translate-x-0"
56
+ leave-to-class="translate-x-full"
57
+ @after-enter="onTransitionAfterEnter"
58
+ >
59
+ <div
60
+ v-show="show"
61
+ ref="panelRef"
62
+ tabindex="0"
63
+ class="ml-auto flex flex-col bg-primary shadow-sm-xl rounded-xl overflow-hidden max-w-lg w-full h-full focus:outline-hidden"
64
+ :class="{ 'px-6 py-4': !slots.default }"
65
+ style="pointer-events: auto"
66
+ >
67
+ <slot v-if="$slots.default" />
68
+ <BVerticalLayout v-else>
69
+ <template v-if="props.title || $slots.header" #header>
70
+ <header v-if="props.title" class="flex items-center justify-between w-full h-12">
71
+ <h4>{{ props.title }}</h4>
72
+ <BButton v-if="props.closeable" small icon="close" variant="textSubtle" @click="onClose" />
73
+ </header>
74
+ <slot v-else name="header" />
75
+ </template>
76
+ <template #main>
77
+ <slot name="main" />
78
+ </template>
79
+ <template #footer>
80
+ <slot name="footer" />
81
+ </template>
82
+ </BVerticalLayout>
83
+ </div>
84
+ </transition>
85
+ </BScreenOverlay>
86
+ </Teleport>
87
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BSideOver } from "./SideOver.vue";
@@ -0,0 +1,78 @@
1
+ <!-- eslint-disable vue/no-deprecated-slot-attribute -->
2
+ <script setup lang="ts">
3
+ import type { TStatusSelectStatus } from "../types";
4
+ import { computed } from "vue";
5
+ import { BIcon, BLoadSpinner } from "../";
6
+
7
+ const props = withDefaults(
8
+ defineProps<{
9
+ button?: boolean;
10
+ loading?: boolean;
11
+ softFocus?: boolean;
12
+ status?: TStatusSelectStatus | null;
13
+ }>(),
14
+ {
15
+ button: true,
16
+ loading: false,
17
+ softFocus: false,
18
+ status: null,
19
+ },
20
+ );
21
+
22
+ // should be a 'disabled' prop instead of 'button'
23
+ const tag = computed(() => (props.button ? "button" : "div"));
24
+
25
+ const classes = computed(() => {
26
+ const result = [];
27
+
28
+ const loadingClasses = "border-default bg-granite-grey-15";
29
+
30
+ switch (props.status) {
31
+ case null:
32
+ if (props.loading) {
33
+ result.push(loadingClasses);
34
+ }
35
+ else if (props.button) {
36
+ result.push("border-default");
37
+ props.softFocus ? result.push("bg-sand-grey-15") : result.push("bg-white");
38
+ }
39
+
40
+ break;
41
+ case "Ok":
42
+ props.loading ? result.push(loadingClasses) : result.push("border-forest-green-darker bg-forest-green");
43
+ break;
44
+ case "Not Ok":
45
+ props.loading ? result.push(loadingClasses) : result.push("border-lava-red-darker bg-lava-red");
46
+ break;
47
+ case "Not Applicable":
48
+ props.loading ? result.push(loadingClasses) : result.push("border-granite-grey-darker bg-granite-grey");
49
+ break;
50
+ default:
51
+ }
52
+
53
+ if (props.button) result.push("focus:outline-hidden focus-visible:ring-3 active:scale-[0.98]");
54
+
55
+ return result;
56
+ });
57
+
58
+ const icon = computed(() => {
59
+ switch (props.status) {
60
+ case null:
61
+ return null;
62
+ case "Ok":
63
+ return "check";
64
+ case "Not Ok":
65
+ return "close";
66
+ case "Not Applicable":
67
+ return "dash";
68
+ }
69
+ return null;
70
+ });
71
+ </script>
72
+
73
+ <template>
74
+ <component :is="tag" class="inline-flex items-center justify-center w-6 h-6 rounded-full border" :class="classes">
75
+ <BLoadSpinner v-if="loading" class="w-4 h-4 text-white" />
76
+ <BIcon v-else-if="icon" :name="icon" class="text-white" />
77
+ </component>
78
+ </template>
@@ -0,0 +1,62 @@
1
+ <script setup lang="ts">
2
+ // import { ref } from "vue";
3
+ // import StatusIndicator from "./StatusIndicator.vue";
4
+ // import { BPopper, BPopperContent, BPopperOption } from "@firstnoodle-ui/bui";
5
+ // import { useNextFrame } from "@/bui/composables";
6
+ // import { TStatusSelectStatus } from "../types.ts";
7
+
8
+ // const emit = defineEmits<{ change: [TStatusSelectStatus | null] }>();
9
+
10
+ // withDefaults(
11
+ // defineProps<{
12
+ // clearable?: boolean;
13
+ // disabled?: boolean;
14
+ // loading?: boolean;
15
+ // status: TStatusSelectStatus | null;
16
+ // }>(),
17
+ // {
18
+ // clearable: false,
19
+ // disabled: false,
20
+ // loading: false,
21
+ // status: null
22
+ // }
23
+ // );
24
+
25
+ // const { nextFrame } = useNextFrame();
26
+
27
+ // const popoverRef = ref<typeof BPopper>();
28
+ // const contentRef = ref<typeof BPopperContent>();
29
+
30
+ // const onShow = () => {
31
+ // nextFrame(() => contentRef.value!.focus());
32
+ // };
33
+
34
+ // const onStatusChange = (status: TStatusSelectStatus | null) => {
35
+ // emit("change", status);
36
+ // popoverRef.value && popoverRef.value.close();
37
+ // };
38
+ </script>
39
+
40
+ <template>
41
+ TODO
42
+ <!-- <status-indicator v-if="disabled" :status="status" />
43
+ <b-popper v-else ref="popoverRef" trigger="click" trigger-class="flex" placement="bottom" :disabled="loading" :offset-main="4" @show="onShow">
44
+ <template #default="slotProps">
45
+ <status-indicator button :soft-focus="slotProps && slotProps.visible" :status="status" :loading="loading" />
46
+ </template>
47
+ <template #content>
48
+ <b-popper-content ref="contentRef">
49
+ <b-popper-option @click="onStatusChange('Ok')">
50
+ <status-indicator :button="false" status="Ok" />
51
+ </b-popper-option>
52
+ <b-popper-option @click="onStatusChange('Not Ok')">
53
+ <status-indicator :button="false" status="Not Ok" />
54
+ </b-popper-option>
55
+ <b-popper-option @click="onStatusChange('Not Applicable')">
56
+ <status-indicator :button="false" status="Not Applicable" />
57
+ </b-popper-option>
58
+ <b-popper-option v-if="clearable" icon="trash" @click="onStatusChange(null)" class="justify-center py-3" />
59
+ </b-popper-content>
60
+ </template>
61
+ </b-popper> -->
62
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BStatusSelect } from "./StatusSelect.vue";
@@ -0,0 +1,52 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue";
3
+
4
+ const props = withDefaults(
5
+ defineProps<{
6
+ value?: boolean;
7
+ offColorClass?: string;
8
+ onColorClass?: string;
9
+ small?: boolean;
10
+ }>(),
11
+ {
12
+ value: false,
13
+ offColorClass: "bg-tertiary",
14
+ onColorClass: "bg-tertiary",
15
+ small: false,
16
+ },
17
+ );
18
+
19
+ const emit = defineEmits<{
20
+ (e: "toggle", event: Event): void;
21
+ }>();
22
+
23
+ const knobClass = computed(() => {
24
+ return [props.small ? "h-3 w-3" : "h-5 w-5", props.value ? (props.small ? "translate-x-3" : "translate-x-5") : "translate-x-0"];
25
+ });
26
+
27
+ const backgroundClass = computed(() => {
28
+ return [props.small ? "h-4" : "h-6", props.value ? props.onColorClass : props.offColorClass];
29
+ });
30
+
31
+ const backgroundStyle = computed(() => {
32
+ return {
33
+ width: props.small ? "1.75rem" : "2.75rem",
34
+ };
35
+ });
36
+ </script>
37
+
38
+ <template>
39
+ <button
40
+ role="checkbox"
41
+ tabindex="0"
42
+ aria-checked="false"
43
+ :class="backgroundClass"
44
+ class="group relative inline-flex flex-shrink-0 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-hidden focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-black dark:focus-visible:outline-white"
45
+ :style="backgroundStyle"
46
+ @click.stop.prevent="emit('toggle', $event)"
47
+ @keydown.space.prevent="emit('toggle', $event)"
48
+ @keydown.enter.prevent="emit('toggle', $event)"
49
+ >
50
+ <span aria-hidden="true" :class="knobClass" class="inline-block rounded-full bg-primary shadow-sm transform transition ease-in-out duration-200" />
51
+ </button>
52
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BSwitch } from "./Switch.vue";
@@ -0,0 +1,65 @@
1
+ <script setup lang="ts">
2
+ import type { TIcon } from "../types";
3
+ import { ref } from "vue";
4
+ import { BIcon, BNotificationBadge } from "../../";
5
+
6
+ const props = withDefaults(
7
+ defineProps<{
8
+ icon?: TIcon;
9
+ grow?: boolean;
10
+ name: string;
11
+ notification?: boolean;
12
+ selected: boolean;
13
+ type?: "default" | "pill";
14
+ size?: "small" | "default";
15
+ disabled?: boolean;
16
+ }>(),
17
+ {
18
+ grow: false,
19
+ notification: false,
20
+ size: "default",
21
+ type: "default",
22
+ },
23
+ );
24
+
25
+ const emit = defineEmits(["select"]);
26
+
27
+ const tabRef = ref<HTMLButtonElement>();
28
+
29
+ const onSelect = () => {
30
+ tabRef.value!.blur();
31
+ emit("select", props.name);
32
+ };
33
+ </script>
34
+
35
+ <template>
36
+ <button
37
+ ref="tabRef"
38
+ :disabled="disabled"
39
+ class="cursor-pointer"
40
+ :class="{
41
+ 'text-sm gap-2 px-4 h-8': size === 'default' && type === 'default',
42
+ 'text-xs gap-1 px-3 h-6': size === 'small' && type === 'default',
43
+ 'relative flex items-center justify-center border-b focus:outline-hidden focus-visible:outline': type === 'default',
44
+ 'border-action text-action': selected && type === 'default',
45
+ 'border-default text-tertiary hover:text-secondary active:text-action hover:border-strong': !selected && type === 'default',
46
+ 'text-sm px-3 h-8 rounded-lg': size === 'default' && type === 'pill',
47
+ 'text-xs px-2 h-6 rounded': size === 'small' && type === 'pill',
48
+ 'relative flex items-center justify-center gap-1 border border-transparent focus:outline-hidden': type === 'pill',
49
+ 'bg-tertiary text-primary hover:bg-tertiary hover:text-primary': selected && type === 'pill',
50
+ 'text-tertiary hover:bg-secondary active:bg-tertiary active:text-primary':
51
+ !disabled && !selected && type === 'pill',
52
+ 'text-muted': disabled,
53
+ 'flex-grow': grow,
54
+ }"
55
+ @click.stop.prevent="onSelect"
56
+ >
57
+ <BIcon v-if="icon && size === 'default'" :name="icon" />
58
+ <span class="relative">
59
+ {{ name }}
60
+ <div v-if="notification" class="absolute" style="top: 0em; right: -0.6em">
61
+ <BNotificationBadge />
62
+ </div>
63
+ </span>
64
+ </button>
65
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BTab } from "./Tab.vue";
@@ -0,0 +1,34 @@
1
+ <script setup lang="ts">
2
+ import type { TIcon } from "../types";
3
+ import { BButton, BFlexbox, BIcon } from "../";
4
+
5
+ withDefaults(
6
+ defineProps<{
7
+ label: string;
8
+ icon?: TIcon;
9
+ deletable?: boolean;
10
+ }>(),
11
+ {
12
+ deletable: false,
13
+ },
14
+ );
15
+
16
+ const emit = defineEmits(["delete"]);
17
+ </script>
18
+
19
+ <template>
20
+ <BFlexbox
21
+ inline
22
+ class="h-5 truncate text-xs rounded-sm text-tertiary bg-tertiary"
23
+ :class="{
24
+ 'px-1': !deletable,
25
+ 'pl-1 pr-0.5': deletable,
26
+ }"
27
+ >
28
+ <BFlexbox class="gap-1">
29
+ <BIcon v-if="icon" :name="icon" />
30
+ <span class="truncate">{{ label }}</span>
31
+ </BFlexbox>
32
+ <BButton v-if="deletable" small variant="textSubtle" icon="close" class="ml-0.5" stop-propagation @click="emit('delete')" />
33
+ </BFlexbox>
34
+ </template>
@@ -0,0 +1 @@
1
+ export { default as BTag } from "./Tag.vue";