@firstnoodle-ui/bui 0.0.28 → 0.0.29

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 (318) hide show
  1. package/dist/bui.css +1 -1
  2. package/dist/components/horizontal-layout/Aside.vue.d.ts +2 -6
  3. package/dist/components/index.d.ts +1 -0
  4. package/dist/components/modal/Modal.vue.d.ts +9 -3
  5. package/dist/components/tree-list/InputNode.vue.d.ts +90 -0
  6. package/dist/components/tree-list/TreeList.vue.d.ts +27 -0
  7. package/dist/components/tree-list/index.d.ts +2 -0
  8. package/dist/components/tree-list/types.d.ts +14 -0
  9. package/dist/index.mjs +6595 -6371
  10. package/package.json +22 -11
  11. package/src/components/application-wrapper/ApplicationWrapper.vue +0 -8
  12. package/src/components/application-wrapper/index.ts +0 -1
  13. package/src/components/aside-section-label/AsideSectionLabel.vue +0 -16
  14. package/src/components/aside-section-label/index.ts +0 -1
  15. package/src/components/button/Button.vue +0 -246
  16. package/src/components/button/NotificationBadge.vue +0 -15
  17. package/src/components/button/components/button-label/ButtonLabel.vue +0 -9
  18. package/src/components/button/components/button-label/index.ts +0 -1
  19. package/src/components/button/components/index.ts +0 -3
  20. package/src/components/button/components/left-group/LeftGroup.vue +0 -5
  21. package/src/components/button/components/left-group/index.ts +0 -1
  22. package/src/components/button/components/notification-badge/NotificationBadge.vue +0 -17
  23. package/src/components/button/components/notification-badge/index.ts +0 -1
  24. package/src/components/button/index.ts +0 -1
  25. package/src/components/button-group/ButtonGroup.vue +0 -97
  26. package/src/components/button-group/index.ts +0 -1
  27. package/src/components/calendar-view/CalendarView.vue +0 -106
  28. package/src/components/calendar-view/components/DateButton.vue +0 -23
  29. package/src/components/calendar-view/components/DecadeView.vue +0 -50
  30. package/src/components/calendar-view/components/MonthView.vue +0 -72
  31. package/src/components/calendar-view/components/NavButton.vue +0 -16
  32. package/src/components/calendar-view/components/YearView.vue +0 -52
  33. package/src/components/calendar-view/composables/useCalendar.ts +0 -138
  34. package/src/components/calendar-view/index.ts +0 -1
  35. package/src/components/calendar-view/utils/enums.ts +0 -31
  36. package/src/components/calendar-view/utils/index.ts +0 -240
  37. package/src/components/calendar-view/utils/types.ts +0 -13
  38. package/src/components/calendar-view/utils/utils/calendar.ts +0 -70
  39. package/src/components/calendar-view/utils/utils/date.ts +0 -130
  40. package/src/components/calendar-view/utils/utils/format.ts +0 -61
  41. package/src/components/calendar-view/utils/utils/time.ts +0 -70
  42. package/src/components/checkbox/Checkbox.vue +0 -51
  43. package/src/components/checkbox/CircleIndicator.vue +0 -26
  44. package/src/components/checkbox/DefaultIndicator.vue +0 -19
  45. package/src/components/checkbox/index.ts +0 -1
  46. package/src/components/collapse/Collapse.vue +0 -114
  47. package/src/components/collapse/index.ts +0 -1
  48. package/src/components/confirm-cancel/ConfirmCancel.vue +0 -66
  49. package/src/components/confirm-cancel/index.ts +0 -1
  50. package/src/components/confirm-cancel/types.ts +0 -18
  51. package/src/components/content-slider/ContentSlider.vue +0 -79
  52. package/src/components/content-slider/index.ts +0 -1
  53. package/src/components/data-point/DataPoint.vue +0 -5
  54. package/src/components/data-point/index.ts +0 -1
  55. package/src/components/delete-button/DeleteButton.vue +0 -19
  56. package/src/components/delete-button/index.ts +0 -1
  57. package/src/components/dialog/Dialog.vue +0 -70
  58. package/src/components/dialog/index.ts +0 -1
  59. package/src/components/fade-in-up/FadeInUp.vue +0 -17
  60. package/src/components/fade-in-up/index.ts +0 -1
  61. package/src/components/filter-chip/FilterChip.vue +0 -28
  62. package/src/components/filter-chip/index.ts +0 -1
  63. package/src/components/first-paint/FirstPaint.vue +0 -21
  64. package/src/components/first-paint/index.ts +0 -1
  65. package/src/components/first-paint/style.scss +0 -23
  66. package/src/components/flexbox/Flexbox.vue +0 -51
  67. package/src/components/flexbox/index.ts +0 -1
  68. package/src/components/horizontal-layout/Aside.vue +0 -114
  69. package/src/components/horizontal-layout/HorizontalLayout.vue +0 -118
  70. package/src/components/horizontal-layout/index.ts +0 -2
  71. package/src/components/icon/Icon.vue +0 -1263
  72. package/src/components/icon/index.ts +0 -1
  73. package/src/components/icon/utils/combine-svgs.cjs +0 -55
  74. package/src/components/icon/utils/combined-svgs.txt +0 -1150
  75. package/src/components/icon/utils/svgs/admin.svg +0 -16
  76. package/src/components/icon/utils/svgs/arrow-deviate.svg +0 -3
  77. package/src/components/icon/utils/svgs/arrow-down-plus.svg +0 -4
  78. package/src/components/icon/utils/svgs/arrow-down.svg +0 -3
  79. package/src/components/icon/utils/svgs/arrow-from.svg +0 -3
  80. package/src/components/icon/utils/svgs/arrow-left.svg +0 -3
  81. package/src/components/icon/utils/svgs/arrow-move.svg +0 -15
  82. package/src/components/icon/utils/svgs/arrow-right.svg +0 -3
  83. package/src/components/icon/utils/svgs/arrow-sub.svg +0 -3
  84. package/src/components/icon/utils/svgs/arrow-trend.svg +0 -15
  85. package/src/components/icon/utils/svgs/arrow-up-plus.svg +0 -4
  86. package/src/components/icon/utils/svgs/arrow-up.svg +0 -3
  87. package/src/components/icon/utils/svgs/authority.svg +0 -5
  88. package/src/components/icon/utils/svgs/beams.svg +0 -5
  89. package/src/components/icon/utils/svgs/bell.svg +0 -15
  90. package/src/components/icon/utils/svgs/bold.svg +0 -3
  91. package/src/components/icon/utils/svgs/box.svg +0 -5
  92. package/src/components/icon/utils/svgs/building.svg +0 -15
  93. package/src/components/icon/utils/svgs/bullet-list.svg +0 -8
  94. package/src/components/icon/utils/svgs/calendar.svg +0 -21
  95. package/src/components/icon/utils/svgs/camera.svg +0 -5
  96. package/src/components/icon/utils/svgs/categories.svg +0 -3
  97. package/src/components/icon/utils/svgs/check-circled.svg +0 -16
  98. package/src/components/icon/utils/svgs/check-outline.svg +0 -15
  99. package/src/components/icon/utils/svgs/check.svg +0 -3
  100. package/src/components/icon/utils/svgs/chevron-down.svg +0 -3
  101. package/src/components/icon/utils/svgs/chevron-left-double.svg +0 -4
  102. package/src/components/icon/utils/svgs/chevron-left.svg +0 -3
  103. package/src/components/icon/utils/svgs/chevron-right-double.svg +0 -4
  104. package/src/components/icon/utils/svgs/chevron-right.svg +0 -3
  105. package/src/components/icon/utils/svgs/chevron-up.svg +0 -3
  106. package/src/components/icon/utils/svgs/clock.svg +0 -4
  107. package/src/components/icon/utils/svgs/close-outline.svg +0 -3
  108. package/src/components/icon/utils/svgs/close.svg +0 -3
  109. package/src/components/icon/utils/svgs/columns.svg +0 -3
  110. package/src/components/icon/utils/svgs/conclusion.svg +0 -17
  111. package/src/components/icon/utils/svgs/copy.svg +0 -16
  112. package/src/components/icon/utils/svgs/crosshair.svg +0 -15
  113. package/src/components/icon/utils/svgs/dash.svg +0 -3
  114. package/src/components/icon/utils/svgs/dashboard.svg +0 -3
  115. package/src/components/icon/utils/svgs/delete.svg +0 -4
  116. package/src/components/icon/utils/svgs/delta.svg +0 -3
  117. package/src/components/icon/utils/svgs/download.svg +0 -3
  118. package/src/components/icon/utils/svgs/drag.svg +0 -8
  119. package/src/components/icon/utils/svgs/drilldown.svg +0 -8
  120. package/src/components/icon/utils/svgs/edit.svg +0 -16
  121. package/src/components/icon/utils/svgs/envelope.svg +0 -3
  122. package/src/components/icon/utils/svgs/error.svg +0 -3
  123. package/src/components/icon/utils/svgs/export-document.svg +0 -16
  124. package/src/components/icon/utils/svgs/filter.svg +0 -6
  125. package/src/components/icon/utils/svgs/filters.svg +0 -4
  126. package/src/components/icon/utils/svgs/flag.svg +0 -3
  127. package/src/components/icon/utils/svgs/folder.svg +0 -15
  128. package/src/components/icon/utils/svgs/frequency.svg +0 -3
  129. package/src/components/icon/utils/svgs/fullscreen-off.svg +0 -3
  130. package/src/components/icon/utils/svgs/fullscreen-on.svg +0 -3
  131. package/src/components/icon/utils/svgs/graduate.svg +0 -3
  132. package/src/components/icon/utils/svgs/hamburger.svg +0 -5
  133. package/src/components/icon/utils/svgs/handshake.svg +0 -15
  134. package/src/components/icon/utils/svgs/heading-1.svg +0 -4
  135. package/src/components/icon/utils/svgs/heading-2.svg +0 -4
  136. package/src/components/icon/utils/svgs/heading.svg +0 -3
  137. package/src/components/icon/utils/svgs/home.svg +0 -3
  138. package/src/components/icon/utils/svgs/id-card.svg +0 -6
  139. package/src/components/icon/utils/svgs/id.svg +0 -4
  140. package/src/components/icon/utils/svgs/indent-left.svg +0 -7
  141. package/src/components/icon/utils/svgs/indent-right.svg +0 -7
  142. package/src/components/icon/utils/svgs/information.svg +0 -17
  143. package/src/components/icon/utils/svgs/italics.svg +0 -3
  144. package/src/components/icon/utils/svgs/itenary.svg +0 -11
  145. package/src/components/icon/utils/svgs/keyboard.svg +0 -11
  146. package/src/components/icon/utils/svgs/lightning.svg +0 -15
  147. package/src/components/icon/utils/svgs/link.svg +0 -4
  148. package/src/components/icon/utils/svgs/list-collapse.svg +0 -6
  149. package/src/components/icon/utils/svgs/list-expand.svg +0 -6
  150. package/src/components/icon/utils/svgs/location.svg +0 -4
  151. package/src/components/icon/utils/svgs/lock-locked.svg +0 -4
  152. package/src/components/icon/utils/svgs/lock-unlocked.svg +0 -4
  153. package/src/components/icon/utils/svgs/magnifying-glass.svg +0 -15
  154. package/src/components/icon/utils/svgs/map.svg +0 -3
  155. package/src/components/icon/utils/svgs/megaphone.svg +0 -3
  156. package/src/components/icon/utils/svgs/message.svg +0 -15
  157. package/src/components/icon/utils/svgs/microscope.svg +0 -3
  158. package/src/components/icon/utils/svgs/moon.svg +0 -3
  159. package/src/components/icon/utils/svgs/new-document.svg +0 -4
  160. package/src/components/icon/utils/svgs/news.svg +0 -15
  161. package/src/components/icon/utils/svgs/numbered-list.svg +0 -7
  162. package/src/components/icon/utils/svgs/open-link.svg +0 -16
  163. package/src/components/icon/utils/svgs/options.svg +0 -5
  164. package/src/components/icon/utils/svgs/page.svg +0 -7
  165. package/src/components/icon/utils/svgs/paper-plane.svg +0 -15
  166. package/src/components/icon/utils/svgs/paper.svg +0 -3
  167. package/src/components/icon/utils/svgs/pen-and-paper.svg +0 -4
  168. package/src/components/icon/utils/svgs/phase.svg +0 -15
  169. package/src/components/icon/utils/svgs/photo.svg +0 -4
  170. package/src/components/icon/utils/svgs/pie-chart.svg +0 -3
  171. package/src/components/icon/utils/svgs/plus.svg +0 -3
  172. package/src/components/icon/utils/svgs/point-left.svg +0 -3
  173. package/src/components/icon/utils/svgs/point-up.svg +0 -3
  174. package/src/components/icon/utils/svgs/popup.svg +0 -16
  175. package/src/components/icon/utils/svgs/question.svg +0 -17
  176. package/src/components/icon/utils/svgs/radio-tower.svg +0 -3
  177. package/src/components/icon/utils/svgs/recycle.svg +0 -3
  178. package/src/components/icon/utils/svgs/redo.svg +0 -3
  179. package/src/components/icon/utils/svgs/refresh.svg +0 -3
  180. package/src/components/icon/utils/svgs/route.svg +0 -3
  181. package/src/components/icon/utils/svgs/rows.svg +0 -3
  182. package/src/components/icon/utils/svgs/scope.svg +0 -7
  183. package/src/components/icon/utils/svgs/settings.svg +0 -16
  184. package/src/components/icon/utils/svgs/share.svg +0 -11
  185. package/src/components/icon/utils/svgs/sign-in.svg +0 -4
  186. package/src/components/icon/utils/svgs/sign-up.svg +0 -3
  187. package/src/components/icon/utils/svgs/sort-down.svg +0 -20
  188. package/src/components/icon/utils/svgs/sort-up.svg +0 -20
  189. package/src/components/icon/utils/svgs/sort.svg +0 -7
  190. package/src/components/icon/utils/svgs/square-solid.svg +0 -3
  191. package/src/components/icon/utils/svgs/star-solid.svg +0 -15
  192. package/src/components/icon/utils/svgs/star.svg +0 -15
  193. package/src/components/icon/utils/svgs/stop-watch.svg +0 -5
  194. package/src/components/icon/utils/svgs/structure.svg +0 -3
  195. package/src/components/icon/utils/svgs/sun.svg +0 -23
  196. package/src/components/icon/utils/svgs/table.svg +0 -3
  197. package/src/components/icon/utils/svgs/tag.svg +0 -15
  198. package/src/components/icon/utils/svgs/team.svg +0 -15
  199. package/src/components/icon/utils/svgs/telescope.svg +0 -15
  200. package/src/components/icon/utils/svgs/trash.svg +0 -6
  201. package/src/components/icon/utils/svgs/triangle-angle.svg +0 -3
  202. package/src/components/icon/utils/svgs/triangle-side.svg +0 -3
  203. package/src/components/icon/utils/svgs/underline.svg +0 -4
  204. package/src/components/icon/utils/svgs/undo.svg +0 -3
  205. package/src/components/icon/utils/svgs/user.svg +0 -16
  206. package/src/components/icon/utils/svgs/venn.svg +0 -3
  207. package/src/components/icon/utils/svgs/video.svg +0 -3
  208. package/src/components/icon/utils/svgs/visibility-off-alt.svg +0 -19
  209. package/src/components/icon/utils/svgs/visibility-off.svg +0 -3
  210. package/src/components/icon/utils/svgs/visibility-on.svg +0 -16
  211. package/src/components/icon/utils/svgs/warning.svg +0 -5
  212. package/src/components/index.ts +0 -45
  213. package/src/components/input/Input.vue +0 -118
  214. package/src/components/input/index.ts +0 -1
  215. package/src/components/input-number/InputNumber.vue +0 -112
  216. package/src/components/input-number/StepButton.vue +0 -23
  217. package/src/components/input-number/index.ts +0 -1
  218. package/src/components/load-spinner/LoadSpinner.vue +0 -13
  219. package/src/components/load-spinner/index.ts +0 -1
  220. package/src/components/modal/Modal.vue +0 -111
  221. package/src/components/modal/index.ts +0 -1
  222. package/src/components/nav-item/NavItem.vue +0 -62
  223. package/src/components/nav-item/index.ts +0 -1
  224. package/src/components/notification/Notification.vue +0 -53
  225. package/src/components/notification/index.ts +0 -1
  226. package/src/components/notification-badge/NotificationBadge.vue +0 -7
  227. package/src/components/notification-badge/index.ts +0 -1
  228. package/src/components/pagination/Pagination.vue +0 -65
  229. package/src/components/pagination/index.ts +0 -1
  230. package/src/components/pop-confirm/PopConfirm.vue +0 -90
  231. package/src/components/pop-confirm/index.ts +0 -1
  232. package/src/components/pop-select/FooterButton.vue +0 -5
  233. package/src/components/pop-select/PopSelect.vue +0 -346
  234. package/src/components/pop-select/ResultFilters.vue +0 -28
  235. package/src/components/pop-select/enums.ts +0 -7
  236. package/src/components/pop-select/index.ts +0 -2
  237. package/src/components/pop-select/option.vue +0 -51
  238. package/src/components/popper/Popper.vue +0 -239
  239. package/src/components/popper/PopperContent.vue +0 -5
  240. package/src/components/popper/index.ts +0 -2
  241. package/src/components/popper/middleware.ts +0 -19
  242. package/src/components/screen-overlay/ScreenOverlay.vue +0 -53
  243. package/src/components/screen-overlay/index.ts +0 -1
  244. package/src/components/scrollbar/Bar.vue +0 -106
  245. package/src/components/scrollbar/ScrollBottomLoader.vue +0 -25
  246. package/src/components/scrollbar/Scrollbar.vue +0 -219
  247. package/src/components/scrollbar/enums.ts +0 -23
  248. package/src/components/scrollbar/index.ts +0 -3
  249. package/src/components/scrollbar/style.scss +0 -77
  250. package/src/components/scrollbar/types.ts +0 -32
  251. package/src/components/select-list/SelectList.vue +0 -476
  252. package/src/components/select-list/components/SelectListFilterChip.vue +0 -34
  253. package/src/components/select-list/components/index.ts +0 -3
  254. package/src/components/select-list/components/option-group/OptionGroup.vue +0 -20
  255. package/src/components/select-list/components/option-group/index.ts +0 -1
  256. package/src/components/select-list/components/select-list-option/SelectListOption.vue +0 -83
  257. package/src/components/select-list/components/select-list-option/index.ts +0 -1
  258. package/src/components/select-list/components/status-cards/error-card/ErrorCard.vue +0 -17
  259. package/src/components/select-list/components/status-cards/error-card/index.ts +0 -1
  260. package/src/components/select-list/components/status-cards/idle-card/IdleCard.vue +0 -11
  261. package/src/components/select-list/components/status-cards/idle-card/index.ts +0 -1
  262. package/src/components/select-list/components/status-cards/index.ts +0 -4
  263. package/src/components/select-list/components/status-cards/loading-card/LoadingCard.vue +0 -10
  264. package/src/components/select-list/components/status-cards/loading-card/index.ts +0 -1
  265. package/src/components/select-list/components/status-cards/no-match-card/NoMatchCard.vue +0 -15
  266. package/src/components/select-list/components/status-cards/no-match-card/index.ts +0 -1
  267. package/src/components/select-list/components/status-cards/status-card/StatusCard.vue +0 -25
  268. package/src/components/select-list/components/status-cards/status-card/index.ts +0 -1
  269. package/src/components/select-list/index.ts +0 -5
  270. package/src/components/select-list/types.ts +0 -49
  271. package/src/components/side-over/SideOver.vue +0 -87
  272. package/src/components/side-over/index.ts +0 -1
  273. package/src/components/status-select/StatusIndicator.vue +0 -78
  274. package/src/components/status-select/StatusSelect.vue +0 -62
  275. package/src/components/status-select/index.ts +0 -1
  276. package/src/components/switch/Switch.vue +0 -52
  277. package/src/components/switch/index.ts +0 -1
  278. package/src/components/tab/Tab.vue +0 -65
  279. package/src/components/tab/index.ts +0 -1
  280. package/src/components/tag/Tag.vue +0 -34
  281. package/src/components/tag/index.ts +0 -1
  282. package/src/components/text-editor/TextEditor.vue +0 -399
  283. package/src/components/text-editor/components/Dialog.vue +0 -11
  284. package/src/components/text-editor/components/FormattingButton.vue +0 -46
  285. package/src/components/text-editor/components/InsertLinkDialog.vue +0 -81
  286. package/src/components/text-editor/components/InsertTextDialog.vue +0 -36
  287. package/src/components/text-editor/components/index.ts +0 -3
  288. package/src/components/text-editor/index.ts +0 -1
  289. package/src/components/text-highlight/TextHighlight.vue +0 -113
  290. package/src/components/text-highlight/index.ts +0 -1
  291. package/src/components/text-viewer/TextViewer.vue +0 -5
  292. package/src/components/text-viewer/index.ts +0 -1
  293. package/src/components/toggle-button/ToggleButton.vue +0 -105
  294. package/src/components/toggle-button/index.ts +0 -1
  295. package/src/components/tooltip/Tooltip.vue +0 -54
  296. package/src/components/tooltip/index.ts +0 -1
  297. package/src/components/types.ts +0 -232
  298. package/src/components/vertical-layout/RunningSection.vue +0 -54
  299. package/src/components/vertical-layout/VerticalLayout.vue +0 -37
  300. package/src/components/vertical-layout/index.ts +0 -3
  301. package/src/components/vertical-layout/types.ts +0 -2
  302. package/src/components/window-frame/WindowFrame.vue +0 -20
  303. package/src/components/window-frame/index.ts +0 -1
  304. package/src/composables/index.ts +0 -5
  305. package/src/composables/useClickOutside.ts +0 -48
  306. package/src/composables/useEscapeKey.ts +0 -12
  307. package/src/composables/useMounted.ts +0 -7
  308. package/src/composables/useNextFrame.ts +0 -10
  309. package/src/composables/useTrapFocus.ts +0 -61
  310. package/src/index.ts +0 -5
  311. package/src/main.css +0 -140
  312. package/src/utils/array.ts +0 -11
  313. package/src/utils/capitalizeFirstLetter.ts +0 -4
  314. package/src/utils/clamp.ts +0 -9
  315. package/src/utils/debounce.ts +0 -8
  316. package/src/utils/index.ts +0 -5
  317. package/src/utils/scrollIntoView.ts +0 -25
  318. package/src/utils/scrollbarWidth.ts +0 -27
@@ -1,10 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BLoadingCard } from "./LoadingCard.vue";
@@ -1,15 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BNoMatchCard } from "./NoMatchCard.vue";
@@ -1,25 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as StatusCard } from "./StatusCard.vue";
@@ -1,5 +0,0 @@
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";
@@ -1,49 +0,0 @@
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
- };
@@ -1,87 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BSideOver } from "./SideOver.vue";
@@ -1,78 +0,0 @@
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>
@@ -1,62 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BStatusSelect } from "./StatusSelect.vue";
@@ -1,52 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BSwitch } from "./Switch.vue";
@@ -1,65 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BTab } from "./Tab.vue";
@@ -1,34 +0,0 @@
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>
@@ -1 +0,0 @@
1
- export { default as BTag } from "./Tag.vue";