@unergy-dev/gandalf 0.3.0 → 0.6.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 (224) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/components/gandalf/base/accordion/GAccordion.vue.d.ts +10 -6
  3. package/dist/components/gandalf/base/accordion/GAccordion.vue_vue_type_script_setup_true_lang.js +36 -21
  4. package/dist/components/gandalf/base/accordion/GAccordionContent.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/dist/components/gandalf/base/accordion/GAccordionItem.vue.d.ts +9 -1
  6. package/dist/components/gandalf/base/accordion/GAccordionItem.vue_vue_type_script_setup_true_lang.js +32 -14
  7. package/dist/components/gandalf/base/accordion/GAccordionTrigger.vue.d.ts +21 -8
  8. package/dist/components/gandalf/base/accordion/GAccordionTrigger.vue_vue_type_script_setup_true_lang.js +58 -8
  9. package/dist/components/gandalf/base/accordion/index.d.ts +22 -9
  10. package/dist/components/gandalf/base/accordion/index.js +89 -24
  11. package/dist/components/gandalf/base/alert-dialog/GAlertDialog.vue.d.ts +4 -1
  12. package/dist/components/gandalf/base/alert-dialog/GAlertDialog.vue_vue_type_script_setup_true_lang.js +8 -2
  13. package/dist/components/gandalf/base/alert-dialog/GAlertDialogAction.vue.d.ts +8 -1
  14. package/dist/components/gandalf/base/alert-dialog/GAlertDialogAction.vue_vue_type_script_setup_true_lang.js +18 -9
  15. package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.js +4 -0
  16. package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.vue.d.ts +17 -0
  17. package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.vue_vue_type_script_setup_true_lang.js +24 -0
  18. package/dist/components/gandalf/base/alert-dialog/GAlertDialogCancel.vue.d.ts +8 -1
  19. package/dist/components/gandalf/base/alert-dialog/GAlertDialogCancel.vue_vue_type_script_setup_true_lang.js +18 -9
  20. package/dist/components/gandalf/base/alert-dialog/GAlertDialogContent.vue_vue_type_script_setup_true_lang.js +2 -1
  21. package/dist/components/gandalf/base/alert-dialog/GAlertDialogDescription.vue_vue_type_script_setup_true_lang.js +2 -1
  22. package/dist/components/gandalf/base/alert-dialog/GAlertDialogFooter.vue_vue_type_script_setup_true_lang.js +4 -5
  23. package/dist/components/gandalf/base/alert-dialog/GAlertDialogHeader.vue.d.ts +10 -3
  24. package/dist/components/gandalf/base/alert-dialog/GAlertDialogHeader.vue_vue_type_script_setup_true_lang.js +25 -13
  25. package/dist/components/gandalf/base/alert-dialog/GAlertDialogTitle.vue_vue_type_script_setup_true_lang.js +2 -1
  26. package/dist/components/gandalf/base/alert-dialog/index.d.ts +1 -0
  27. package/dist/components/gandalf/base/avatar/GAvatar.vue.d.ts +12 -3
  28. package/dist/components/gandalf/base/avatar/GAvatar.vue_vue_type_script_setup_true_lang.js +32 -15
  29. package/dist/components/gandalf/base/avatar/GAvatarFallback.vue.d.ts +3 -2
  30. package/dist/components/gandalf/base/avatar/GAvatarFallback.vue_vue_type_script_setup_true_lang.js +9 -9
  31. package/dist/components/gandalf/base/avatar/GAvatarImage.vue.d.ts +7 -2
  32. package/dist/components/gandalf/base/avatar/GAvatarImage.vue_vue_type_script_setup_true_lang.js +11 -6
  33. package/dist/components/gandalf/base/avatar/index.d.ts +16 -3
  34. package/dist/components/gandalf/base/avatar/index.js +31 -7
  35. package/dist/components/gandalf/base/badge/index.d.ts +1 -1
  36. package/dist/components/gandalf/base/breadcrumb/GBreadcrumb.vue.d.ts +6 -1
  37. package/dist/components/gandalf/base/breadcrumb/GBreadcrumb.vue_vue_type_script_setup_true_lang.js +21 -10
  38. package/dist/components/gandalf/base/breadcrumb/GBreadcrumbEllipsis.vue_vue_type_script_setup_true_lang.js +4 -2
  39. package/dist/components/gandalf/base/breadcrumb/GBreadcrumbItem.vue_vue_type_script_setup_true_lang.js +4 -2
  40. package/dist/components/gandalf/base/breadcrumb/GBreadcrumbLink.vue_vue_type_script_setup_true_lang.js +4 -2
  41. package/dist/components/gandalf/base/breadcrumb/GBreadcrumbList.vue_vue_type_script_setup_true_lang.js +4 -2
  42. package/dist/components/gandalf/base/breadcrumb/GBreadcrumbPage.vue_vue_type_script_setup_true_lang.js +2 -1
  43. package/dist/components/gandalf/base/breadcrumb/GBreadcrumbSeparator.vue_vue_type_script_setup_true_lang.js +4 -2
  44. package/dist/components/gandalf/base/breadcrumb/index.d.ts +21 -0
  45. package/dist/components/gandalf/base/breadcrumb/index.js +47 -0
  46. package/dist/components/gandalf/base/button/index.d.ts +1 -1
  47. package/dist/components/gandalf/base/details-panel/index.js +1 -1
  48. package/dist/components/gandalf/base/dialog/GDialog.vue.d.ts +5 -1
  49. package/dist/components/gandalf/base/dialog/GDialog.vue_vue_type_script_setup_true_lang.js +12 -3
  50. package/dist/components/gandalf/base/dialog/GDialogBody.js +4 -0
  51. package/dist/components/gandalf/base/dialog/GDialogBody.vue.d.ts +17 -0
  52. package/dist/components/gandalf/base/dialog/GDialogBody.vue_vue_type_script_setup_true_lang.js +24 -0
  53. package/dist/components/gandalf/base/dialog/GDialogContent.vue.d.ts +1 -5
  54. package/dist/components/gandalf/base/dialog/GDialogContent.vue_vue_type_script_setup_true_lang.js +10 -15
  55. package/dist/components/gandalf/base/dialog/GDialogDescription.vue_vue_type_script_setup_true_lang.js +2 -1
  56. package/dist/components/gandalf/base/dialog/GDialogFooter.vue.d.ts +6 -3
  57. package/dist/components/gandalf/base/dialog/GDialogFooter.vue_vue_type_script_setup_true_lang.js +21 -10
  58. package/dist/components/gandalf/base/dialog/GDialogHeader.vue.d.ts +15 -3
  59. package/dist/components/gandalf/base/dialog/GDialogHeader.vue_vue_type_script_setup_true_lang.js +51 -13
  60. package/dist/components/gandalf/base/dialog/GDialogScrollContent.vue_vue_type_script_setup_true_lang.js +2 -1
  61. package/dist/components/gandalf/base/dialog/GDialogTitle.vue_vue_type_script_setup_true_lang.js +2 -1
  62. package/dist/components/gandalf/base/dialog/index.d.ts +13 -0
  63. package/dist/components/gandalf/base/dialog/index.js +27 -0
  64. package/dist/components/gandalf/base/dropdown/GDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  65. package/dist/components/gandalf/base/input/GInput.vue.d.ts +13 -1
  66. package/dist/components/gandalf/base/input/GInput.vue_vue_type_script_setup_true_lang.js +23 -5
  67. package/dist/components/gandalf/base/input/index.d.ts +6 -1
  68. package/dist/components/gandalf/base/input/index.js +11 -1
  69. package/dist/components/gandalf/base/input-group/GInputGroupButton.vue.d.ts +2 -2
  70. package/dist/components/gandalf/base/menu/GMenu.js +4 -0
  71. package/dist/components/gandalf/base/menu/GMenu.vue.d.ts +20 -0
  72. package/dist/components/gandalf/base/menu/GMenu.vue_vue_type_script_setup_true_lang.js +24 -0
  73. package/dist/components/gandalf/base/menu/GMenuContent.js +4 -0
  74. package/dist/components/gandalf/base/menu/GMenuContent.vue.d.ts +34 -0
  75. package/dist/components/gandalf/base/menu/GMenuContent.vue_vue_type_script_setup_true_lang.js +65 -0
  76. package/dist/components/gandalf/base/menu/GMenuItem.js +4 -0
  77. package/dist/components/gandalf/base/menu/GMenuItem.vue.d.ts +27 -0
  78. package/dist/components/gandalf/base/menu/GMenuItem.vue_vue_type_script_setup_true_lang.js +43 -0
  79. package/dist/components/gandalf/base/menu/GMenuLabel.js +4 -0
  80. package/dist/components/gandalf/base/menu/GMenuLabel.vue.d.ts +18 -0
  81. package/dist/components/gandalf/base/menu/GMenuLabel.vue_vue_type_script_setup_true_lang.js +31 -0
  82. package/dist/components/gandalf/base/menu/GMenuSeparator.js +4 -0
  83. package/dist/components/gandalf/base/{sonner/GToastCard.vue.d.ts → menu/GMenuSeparator.vue.d.ts} +4 -6
  84. package/dist/components/gandalf/base/menu/GMenuSeparator.vue_vue_type_script_setup_true_lang.js +28 -0
  85. package/dist/components/gandalf/base/menu/GMenuTrigger.js +4 -0
  86. package/dist/components/gandalf/base/menu/GMenuTrigger.vue.d.ts +16 -0
  87. package/dist/components/gandalf/base/menu/GMenuTrigger.vue_vue_type_script_setup_true_lang.js +24 -0
  88. package/dist/components/gandalf/base/menu/index.d.ts +16 -2
  89. package/dist/components/gandalf/base/menu/index.js +19 -3
  90. package/dist/components/gandalf/base/navigation-button/GNavigationButton.vue_vue_type_script_setup_true_lang.js +1 -1
  91. package/dist/components/gandalf/base/navigation-button/index.d.ts +1 -1
  92. package/dist/components/gandalf/base/pagination/GPaginationFirst.vue.d.ts +1 -1
  93. package/dist/components/gandalf/base/pagination/GPaginationItem.vue.d.ts +1 -1
  94. package/dist/components/gandalf/base/pagination/GPaginationLast.vue.d.ts +1 -1
  95. package/dist/components/gandalf/base/pagination/GPaginationNext.vue.d.ts +1 -1
  96. package/dist/components/gandalf/base/pagination/GPaginationPrevious.vue.d.ts +1 -1
  97. package/dist/components/gandalf/base/popover/GPopover.vue.d.ts +5 -1
  98. package/dist/components/gandalf/base/popover/GPopover.vue_vue_type_script_setup_true_lang.js +12 -3
  99. package/dist/components/gandalf/base/segmented-button/index.js +1 -0
  100. package/dist/components/gandalf/base/select/GSelect.vue.d.ts +7 -1
  101. package/dist/components/gandalf/base/select/GSelect.vue_vue_type_script_setup_true_lang.js +21 -6
  102. package/dist/components/gandalf/base/sidebar/GSidebar.vue.d.ts +1 -1
  103. package/dist/components/gandalf/base/sonner/GToast.js +4 -0
  104. package/dist/components/gandalf/base/sonner/GToast.vue.d.ts +19 -0
  105. package/dist/components/gandalf/base/sonner/GToast.vue_vue_type_script_setup_true_lang.js +63 -0
  106. package/dist/components/gandalf/base/sonner/GToaster.vue_vue_type_script_setup_true_lang.js +5 -2
  107. package/dist/components/gandalf/base/sonner/index.d.ts +12 -4
  108. package/dist/components/gandalf/base/sonner/index.js +26 -14
  109. package/dist/components/gandalf/base/table/GTable.vue.d.ts +5 -1
  110. package/dist/components/gandalf/base/table/GTable.vue_vue_type_script_setup_true_lang.js +24 -11
  111. package/dist/components/gandalf/base/table/GTableCell.vue.d.ts +7 -1
  112. package/dist/components/gandalf/base/table/GTableCell.vue_vue_type_script_setup_true_lang.js +18 -10
  113. package/dist/components/gandalf/base/table/GTableFooter.vue_vue_type_script_setup_true_lang.js +2 -1
  114. package/dist/components/gandalf/base/table/GTableHead.vue.d.ts +9 -1
  115. package/dist/components/gandalf/base/table/GTableHead.vue_vue_type_script_setup_true_lang.js +26 -10
  116. package/dist/components/gandalf/base/table/index.d.ts +5 -0
  117. package/dist/components/gandalf/base/table/index.js +12 -6
  118. package/dist/components/gandalf/base/tabs/GTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
  119. package/dist/components/gandalf/base/tabs/index.d.ts +4 -4
  120. package/dist/components/gandalf/base/tabs/index.js +32 -24
  121. package/dist/components/gandalf/base/tooltip/GTooltip.vue.d.ts +10 -3
  122. package/dist/components/gandalf/base/tooltip/GTooltip.vue_vue_type_script_setup_true_lang.js +30 -10
  123. package/dist/components/gandalf/base/tooltip/index.js +1 -1
  124. package/dist/components/gandalf/kit/avatar/Avatar.vue.d.ts +7 -2
  125. package/dist/components/gandalf/kit/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +12 -3
  126. package/dist/components/gandalf/kit/avatar/AvatarGroup.vue.d.ts +13 -1
  127. package/dist/components/gandalf/kit/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +37 -9
  128. package/dist/components/gandalf/kit/avatar/AvatarRol.js +4 -0
  129. package/dist/components/gandalf/kit/avatar/AvatarRol.vue.d.ts +23 -0
  130. package/dist/components/gandalf/kit/avatar/AvatarRol.vue_vue_type_script_setup_true_lang.js +75 -0
  131. package/dist/components/gandalf/kit/avatar/index.d.ts +12 -0
  132. package/dist/components/gandalf/kit/avatar/index.js +35 -0
  133. package/dist/components/gandalf/kit/card-toggle/index.d.ts +1 -1
  134. package/dist/components/gandalf/kit/date-picker/DatePicker.vue.d.ts +1 -1
  135. package/dist/components/gandalf/kit/files-card/FilesCard.vue.d.ts +3 -3
  136. package/dist/components/gandalf/kit/files-card/FilesCard.vue_vue_type_script_setup_true_lang.js +5 -8
  137. package/dist/components/gandalf/kit/header/Header.js +4 -0
  138. package/dist/components/gandalf/kit/header/Header.vue.d.ts +26 -0
  139. package/dist/components/gandalf/kit/header/Header.vue_vue_type_script_setup_true_lang.js +45 -0
  140. package/dist/components/gandalf/kit/header/UnergyLogo.js +4 -0
  141. package/dist/components/gandalf/kit/header/UnergyLogo.vue.d.ts +3 -0
  142. package/dist/components/gandalf/kit/header/UnergyLogo.vue_vue_type_script_setup_true_lang.js +26 -0
  143. package/dist/components/gandalf/kit/header/index.d.ts +8 -0
  144. package/dist/components/gandalf/kit/header/index.js +11 -0
  145. package/dist/components/gandalf/kit/input-chat/InputChat.js +4 -0
  146. package/dist/components/gandalf/kit/input-chat/InputChat.vue.d.ts +52 -0
  147. package/dist/components/gandalf/kit/input-chat/InputChat.vue_vue_type_script_setup_true_lang.js +121 -0
  148. package/dist/components/gandalf/kit/input-chat/index.d.ts +2 -0
  149. package/dist/components/gandalf/kit/input-chat/index.js +5 -0
  150. package/dist/components/gandalf/kit/layout/Layout.js +4 -0
  151. package/dist/components/gandalf/kit/layout/Layout.vue.d.ts +49 -0
  152. package/dist/components/gandalf/kit/layout/Layout.vue_vue_type_script_setup_true_lang.js +86 -0
  153. package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.js +4 -0
  154. package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.vue.d.ts +31 -0
  155. package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.vue_vue_type_script_setup_true_lang.js +56 -0
  156. package/dist/components/gandalf/kit/layout/LayoutTitle.js +4 -0
  157. package/dist/components/gandalf/kit/layout/LayoutTitle.vue.d.ts +39 -0
  158. package/dist/components/gandalf/kit/layout/LayoutTitle.vue_vue_type_script_setup_true_lang.js +50 -0
  159. package/dist/components/gandalf/kit/layout/index.d.ts +37 -0
  160. package/dist/components/gandalf/kit/layout/index.js +45 -0
  161. package/dist/components/gandalf/kit/message-card/MessageCard.js +4 -0
  162. package/dist/components/gandalf/kit/message-card/MessageCard.vue.d.ts +52 -0
  163. package/dist/components/gandalf/kit/message-card/MessageCard.vue_vue_type_script_setup_true_lang.js +97 -0
  164. package/dist/components/gandalf/kit/message-card/index.d.ts +4 -0
  165. package/dist/components/gandalf/kit/message-card/index.js +5 -0
  166. package/dist/components/gandalf/kit/miniatures/Miniatures.js +4 -0
  167. package/dist/components/gandalf/kit/miniatures/Miniatures.vue.d.ts +42 -0
  168. package/dist/components/gandalf/kit/miniatures/Miniatures.vue_vue_type_script_setup_true_lang.js +75 -0
  169. package/dist/components/gandalf/kit/miniatures/index.d.ts +7 -0
  170. package/dist/components/gandalf/kit/miniatures/index.js +11 -0
  171. package/dist/components/gandalf/kit/report/AvatarReport.js +4 -0
  172. package/dist/components/gandalf/kit/report/AvatarReport.vue.d.ts +15 -0
  173. package/dist/components/gandalf/kit/report/AvatarReport.vue_vue_type_script_setup_true_lang.js +47 -0
  174. package/dist/components/gandalf/kit/report/CircleReport.js +4 -0
  175. package/dist/components/gandalf/kit/report/CircleReport.vue.d.ts +15 -0
  176. package/dist/components/gandalf/kit/report/CircleReport.vue_vue_type_script_setup_true_lang.js +41 -0
  177. package/dist/components/gandalf/kit/report/Icons.js +4 -0
  178. package/dist/components/gandalf/kit/report/Icons.vue.d.ts +15 -0
  179. package/dist/components/gandalf/kit/report/Icons.vue_vue_type_script_setup_true_lang.js +170 -0
  180. package/dist/components/gandalf/kit/report/PickerItem.js +4 -0
  181. package/dist/components/gandalf/kit/report/PickerItem.vue.d.ts +56 -0
  182. package/dist/components/gandalf/kit/report/PickerItem.vue_vue_type_script_setup_true_lang.js +92 -0
  183. package/dist/components/gandalf/kit/report/Pin.js +4 -0
  184. package/dist/components/gandalf/kit/report/Pin.vue.d.ts +31 -0
  185. package/dist/components/gandalf/kit/report/Pin.vue_vue_type_script_setup_true_lang.js +51 -0
  186. package/dist/components/gandalf/kit/report/index.d.ts +24 -0
  187. package/dist/components/gandalf/kit/report/index.js +77 -0
  188. package/dist/components/gandalf/kit/search-field/index.d.ts +1 -1
  189. package/dist/components/gandalf/kit/sidebar/Sidebar.js +4 -0
  190. package/dist/components/gandalf/kit/sidebar/Sidebar.vue.d.ts +53 -0
  191. package/dist/components/gandalf/kit/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +140 -0
  192. package/dist/components/gandalf/kit/sidebar/index.d.ts +2 -0
  193. package/dist/components/gandalf/kit/sidebar/types.d.ts +25 -0
  194. package/dist/components/gandalf/kit/star/Star.vue.d.ts +1 -1
  195. package/dist/components/gandalf/kit/star/index.d.ts +1 -1
  196. package/dist/components/gandalf/kit/upload-box/UploadBox.vue.d.ts +3 -3
  197. package/dist/components/gandalf/kit/upload-box/index.d.ts +1 -1
  198. package/dist/components/gandalf/kit/upload-card/UploadCard.vue.d.ts +1 -1
  199. package/dist/components/ui/badge/index.d.ts +1 -1
  200. package/dist/components/ui/button/Button.vue.d.ts +2 -2
  201. package/dist/components/ui/button/index.d.ts +2 -2
  202. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
  203. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
  204. package/dist/components/ui/chart/ChartLegendContent.vue.d.ts +1 -1
  205. package/dist/components/ui/combobox/ComboboxList.vue.d.ts +1 -1
  206. package/dist/components/ui/drawer/Drawer.vue.d.ts +2 -2
  207. package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +2 -2
  208. package/dist/components/ui/input-group/index.d.ts +1 -1
  209. package/dist/components/ui/menubar/MenubarContent.vue.d.ts +1 -1
  210. package/dist/components/ui/pagination/PaginationFirst.vue.d.ts +1 -1
  211. package/dist/components/ui/pagination/PaginationItem.vue.d.ts +1 -1
  212. package/dist/components/ui/pagination/PaginationLast.vue.d.ts +1 -1
  213. package/dist/components/ui/pagination/PaginationNext.vue.d.ts +1 -1
  214. package/dist/components/ui/pagination/PaginationPrevious.vue.d.ts +1 -1
  215. package/dist/components/ui/popover/PopoverContent.vue.d.ts +1 -1
  216. package/dist/components/ui/sidebar/Sidebar.vue.d.ts +1 -1
  217. package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
  218. package/dist/index.d.ts +7 -0
  219. package/dist/index.js +52 -20
  220. package/dist/nuxt/components.json +1 -1
  221. package/dist/styles/tokens.css +23 -0
  222. package/package.json +1 -1
  223. package/dist/components/gandalf/base/sonner/GToastCard.js +0 -4
  224. package/dist/components/gandalf/base/sonner/GToastCard.vue_vue_type_script_setup_true_lang.js +0 -43
@@ -11,7 +11,7 @@ type __VLS_Props = {
11
11
  modelValue?: boolean;
12
12
  class?: HTMLAttributes['class'];
13
13
  };
14
- declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
14
+ declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_19: {};
15
15
  type __VLS_Slots = {} & {
16
16
  icon?: (props: typeof __VLS_1) => any;
17
17
  } & {
@@ -19,9 +19,9 @@ type __VLS_Slots = {} & {
19
19
  } & {
20
20
  icon?: (props: typeof __VLS_10) => any;
21
21
  } & {
22
- actions?: (props: typeof __VLS_12) => any;
22
+ actions?: (props: typeof __VLS_17) => any;
23
23
  } & {
24
- preview?: (props: typeof __VLS_14) => any;
24
+ preview?: (props: typeof __VLS_19) => any;
25
25
  };
26
26
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
27
27
  "update:modelValue": (value: boolean) => any;
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../../../lib/utils.js";
2
2
  import { gandalfFilesCardVariants } from "./index.js";
3
3
  import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withKeys, withModifiers } from "vue";
4
- import { FileSpreadsheet, Folder } from "lucide-vue-next";
4
+ import { File, FileSpreadsheet, Folder } from "lucide-vue-next";
5
5
  // src/components/gandalf/kit/files-card/FilesCard.vue?vue&type=script&setup=true&lang.ts
6
6
  var _hoisted_1 = [
7
7
  "data-state",
@@ -24,13 +24,10 @@ var _hoisted_7 = {
24
24
  class: "group-hover:bg-alpha-dark-5 group-active:bg-alpha-dark-8 flex min-h-0 flex-1 flex-col gap-2 p-2"
25
25
  };
26
26
  var _hoisted_8 = { class: "flex items-center gap-2 pl-1" };
27
- var _hoisted_9 = {
28
- key: 0,
29
- class: "text-base-foreground shrink-0 [&_svg]:size-4"
30
- };
27
+ var _hoisted_9 = { class: "text-base-foreground hidden shrink-0 group-hover:inline-flex [&_svg]:size-4" };
31
28
  var _hoisted_10 = { class: "text-base-foreground min-w-0 flex-1 truncate text-base leading-normal font-semibold" };
32
29
  var _hoisted_11 = { class: "bg-card flex min-h-0 flex-1 flex-col items-center justify-center gap-1.5 overflow-clip rounded-xl" };
33
- var _hoisted_12 = { class: "text-base-foreground [&_svg]:size-6" };
30
+ var _hoisted_12 = { class: "text-base-foreground-quiet group-hover:text-base-foreground group-active:text-base-foreground group-data-[state=on]:text-base-foreground [&_svg]:size-6" };
34
31
  var _hoisted_13 = {
35
32
  key: 0,
36
33
  class: "text-base-foreground-quiet text-base leading-normal font-semibold uppercase"
@@ -84,10 +81,10 @@ var FilesCard_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
84
81
  onKeydown: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
85
82
  }, [renderSlot(_ctx.$slots, "actions")], 32)) : createCommentVNode("", true)
86
83
  ])) : (openBlock(), createElementBlock("div", _hoisted_7, [createElementVNode("div", _hoisted_8, [
87
- _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_9, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true),
84
+ createElementVNode("span", _hoisted_9, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(unref(File))])]),
88
85
  createElementVNode("span", _hoisted_10, toDisplayString(__props.title), 1),
89
86
  _ctx.$slots.actions ? (openBlock(), createElementBlock("span", {
90
- key: 1,
87
+ key: 0,
91
88
  class: "shrink-0",
92
89
  onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"])),
93
90
  onKeydown: _cache[3] || (_cache[3] = withModifiers(() => {}, ["stop"]))
@@ -0,0 +1,4 @@
1
+ import Header_vue_vue_type_script_setup_true_lang_default from "./Header.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/header/Header.vue
3
+ var Header_default = Header_vue_vue_type_script_setup_true_lang_default;
4
+ export { Header_default as default };
@@ -0,0 +1,26 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ /** Shows the GSidebarTrigger after the logo. It needs a GSidebarProvider above (GLayout has one). */
4
+ sidebarTrigger?: boolean;
5
+ class?: HTMLAttributes['class'];
6
+ };
7
+ declare var __VLS_1: {}, __VLS_13: {}, __VLS_15: {};
8
+ type __VLS_Slots = {} & {
9
+ logo?: (props: typeof __VLS_1) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_13) => any;
12
+ } & {
13
+ actions?: (props: typeof __VLS_15) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
17
+ sidebarTrigger: boolean;
18
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,45 @@
1
+ import { cn } from "../../../../lib/utils.js";
2
+ import GSidebarTrigger_default from "../../base/sidebar/GSidebarTrigger.js";
3
+ import UnergyLogo_default from "./UnergyLogo.js";
4
+ import { gandalfHeaderDividerClass, gandalfHeaderVariants } from "./index.js";
5
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
6
+ // src/components/gandalf/kit/header/Header.vue?vue&type=script&setup=true&lang.ts
7
+ var _hoisted_1 = { class: "flex min-w-0 flex-1 items-center gap-1" };
8
+ var Header_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
9
+ __name: "Header",
10
+ props: {
11
+ sidebarTrigger: {
12
+ type: Boolean,
13
+ default: true
14
+ },
15
+ class: {
16
+ type: [
17
+ Boolean,
18
+ null,
19
+ String,
20
+ Object,
21
+ Array
22
+ ],
23
+ default: void 0
24
+ }
25
+ },
26
+ setup(__props) {
27
+ const props = __props;
28
+ return (_ctx, _cache) => {
29
+ return openBlock(), createElementBlock("header", {
30
+ "data-slot": "header",
31
+ class: normalizeClass(unref(cn)(unref(gandalfHeaderVariants)(), props.class))
32
+ }, [createElementVNode("div", _hoisted_1, [
33
+ renderSlot(_ctx.$slots, "logo", {}, () => [createVNode(UnergyLogo_default, { class: "shrink-0" })]),
34
+ __props.sidebarTrigger ? (openBlock(), createElementBlock("span", {
35
+ key: 0,
36
+ "aria-hidden": "true",
37
+ class: normalizeClass(unref(gandalfHeaderDividerClass))
38
+ }, null, 2)) : createCommentVNode("", true),
39
+ __props.sidebarTrigger ? (openBlock(), createBlock(unref(GSidebarTrigger_default), { key: 1 })) : createCommentVNode("", true),
40
+ renderSlot(_ctx.$slots, "default")
41
+ ]), renderSlot(_ctx.$slots, "actions")], 2);
42
+ };
43
+ }
44
+ });
45
+ export { Header_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,4 @@
1
+ import UnergyLogo_vue_vue_type_script_setup_true_lang_default from "./UnergyLogo.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/header/UnergyLogo.vue
3
+ var UnergyLogo_default = UnergyLogo_vue_vue_type_script_setup_true_lang_default;
4
+ export { UnergyLogo_default as default };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, openBlock } from "vue";
2
+ // src/components/gandalf/kit/header/UnergyLogo.vue?vue&type=script&setup=true&lang.ts
3
+ var _hoisted_1 = {
4
+ width: "15",
5
+ height: "22",
6
+ viewBox: "0 0 15 22",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ role: "img",
10
+ "aria-label": "Unergy"
11
+ };
12
+ var UnergyLogo_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
13
+ __name: "UnergyLogo",
14
+ setup(__props) {
15
+ return (_ctx, _cache) => {
16
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
17
+ d: "M4.2741 9.85924C4.25474 9.52165 4.18004 9.19343 4.06661 8.8871C3.98638 8.66829 3.88955 8.46199 3.76783 8.26506C3.58523 7.95873 3.35285 7.6774 3.08726 7.43359C2.40945 6.81467 1.50203 6.40831 0.492237 6.34267C0.483938 6.34267 0.475637 6.34267 0.467337 6.34267H0.398174C0.293045 6.3583 0.210049 6.44582 0.19345 6.56148C0.190683 6.58023 0.187916 6.59899 0.187916 6.61774L0.240481 10.1718L0.27441 13.207H4.24921L4.28794 10.1718V10.0968C4.28794 10.0187 4.2824 9.94051 4.2741 9.86236V9.85924ZM14.9945 0.222273C14.9917 0.203518 14.9862 0.187889 14.9806 0.169134C14.9696 0.137875 14.953 0.106617 14.9308 0.0816102C14.9253 0.0816102 14.9198 0.0722327 14.9142 0.0659811C14.9087 0.0566035 14.9032 0.0534777 14.8976 0.047226C14.8561 0.0159676 14.8036 -0.00278743 14.7482 0.00033841C13.8242 0.0628552 12.9943 0.469214 12.3773 1.09438C12.1366 1.3382 11.9264 1.61952 11.7604 1.92586C11.6497 2.12278 11.5612 2.32909 11.4893 2.5479C11.3869 2.85423 11.3205 3.18244 11.3011 3.52003C11.2956 3.59818 11.2901 3.67633 11.2901 3.75447V3.82949L11.3288 5.30176H14.9225L15 0.275412C15 0.256657 14.9972 0.237902 14.9945 0.222273ZM11.3288 13.8822C11.3288 16.8236 10.2083 18.4428 7.65759 18.4428C5.28942 18.4428 4.24921 16.8236 4.24921 13.8822V13.0476H0.276447L0.265381 13.9135C0.265381 19.1492 2.81613 22 7.65759 22C12.499 22 14.9225 19.1492 14.9225 13.9135V5.233H11.3288V13.8822Z",
18
+ fill: "#2C2039"
19
+ }, null, -1), createElementVNode("path", {
20
+ d: "M2.23813 5.05805C3.47422 5.05805 4.47627 3.92586 4.47627 2.52924C4.47627 1.13262 3.47422 0.000438482 2.23813 0.000438482C1.00205 0.000438482 0 1.13262 0 2.52924C0 3.92586 1.00205 5.05805 2.23813 5.05805Z",
21
+ fill: "#915BD8"
22
+ }, null, -1)])]);
23
+ };
24
+ }
25
+ });
26
+ export { UnergyLogo_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,8 @@
1
+ export { default as GHeader } from './Header.vue';
2
+ /** Figma: Header — 48px `card/card` bar with a `bni/border` bottom edge, 16px sides and 8px gaps. */
3
+ export declare const gandalfHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
4
+ /**
5
+ * Figma: Header › Divider — a 24×32px frame with an 8px `primary/foreground-loud` line, 16px from
6
+ * its left edge.
7
+ */
8
+ export declare const gandalfHeaderDividerClass = "before:bg-primary-foreground-loud relative h-8 w-6 shrink-0 before:absolute before:top-3 before:left-4 before:h-2 before:w-px";
@@ -0,0 +1,11 @@
1
+ import Header_default from "./Header.js";
2
+ import { cva } from "class-variance-authority";
3
+ // src/components/gandalf/kit/header/index.ts
4
+ /** Figma: Header — 48px `card/card` bar with a `bni/border` bottom edge, 16px sides and 8px gaps. */
5
+ var gandalfHeaderVariants = cva("bg-card border-bni-border flex h-12 shrink-0 items-center gap-2 border-b px-4 py-3");
6
+ /**
7
+ * Figma: Header › Divider — a 24×32px frame with an 8px `primary/foreground-loud` line, 16px from
8
+ * its left edge.
9
+ */
10
+ var gandalfHeaderDividerClass = "before:bg-primary-foreground-loud relative h-8 w-6 shrink-0 before:absolute before:top-3 before:left-4 before:h-2 before:w-px";
11
+ export { Header_default as GHeader, gandalfHeaderDividerClass, gandalfHeaderVariants };
@@ -0,0 +1,4 @@
1
+ import InputChat_vue_vue_type_script_setup_true_lang_default from "./InputChat.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/input-chat/InputChat.vue
3
+ var InputChat_default = InputChat_vue_vue_type_script_setup_true_lang_default;
4
+ export { InputChat_default as default };
@@ -0,0 +1,52 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ /** The text ("Input text" in Figma). */
4
+ modelValue?: string;
5
+ placeholder?: string;
6
+ /** Text of the comment being edited. Shows the "Editando" block and disables the attach buttons. */
7
+ editing?: string;
8
+ editingLabel?: string;
9
+ /** Whether the send button is enabled. By default, when there is text. */
10
+ canSend?: boolean;
11
+ disabled?: boolean;
12
+ attachFileLabel?: string;
13
+ attachImageLabel?: string;
14
+ sendLabel?: string;
15
+ class?: HTMLAttributes['class'];
16
+ };
17
+ declare var __VLS_1: {}, __VLS_3: {};
18
+ type __VLS_Slots = {} & {
19
+ attachments?: (props: typeof __VLS_1) => any;
20
+ } & {
21
+ actions?: (props: typeof __VLS_3) => any;
22
+ };
23
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
+ "update:modelValue": (value: string) => any;
25
+ send: (value: string) => any;
26
+ "attach-file": () => any;
27
+ "attach-image": () => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
+ onSend?: ((value: string) => any) | undefined;
31
+ "onAttach-file"?: (() => any) | undefined;
32
+ "onAttach-image"?: (() => any) | undefined;
33
+ }>, {
34
+ disabled: boolean;
35
+ modelValue: string;
36
+ placeholder: string;
37
+ class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
38
+ editing: string;
39
+ editingLabel: string;
40
+ canSend: boolean;
41
+ attachFileLabel: string;
42
+ attachImageLabel: string;
43
+ sendLabel: string;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ export default _default;
48
+ type __VLS_WithSlots<T, S> = T & {
49
+ new (): {
50
+ $slots: S;
51
+ };
52
+ };
@@ -0,0 +1,121 @@
1
+ import { cn } from "../../../../lib/utils.js";
2
+ import GButton_default from "../../base/button/GButton.js";
3
+ import { gandalfInputChatVariants } from "./index.js";
4
+ import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
5
+ import { File, Image, Send } from "lucide-vue-next";
6
+ // src/components/gandalf/kit/input-chat/InputChat.vue?vue&type=script&setup=true&lang.ts
7
+ var _hoisted_1 = {
8
+ key: 0,
9
+ class: "flex flex-wrap items-start gap-1.5"
10
+ };
11
+ var _hoisted_2 = {
12
+ key: 1,
13
+ class: "bg-information-muted flex w-full flex-col overflow-clip rounded-xl px-3 py-2 text-base leading-normal whitespace-nowrap"
14
+ };
15
+ var _hoisted_3 = { class: "text-information-bold truncate font-semibold" };
16
+ var _hoisted_4 = { class: "text-base-foreground truncate" };
17
+ var _hoisted_5 = [
18
+ "value",
19
+ "placeholder",
20
+ "disabled"
21
+ ];
22
+ var _hoisted_6 = { class: "flex items-center justify-between" };
23
+ var _hoisted_7 = { class: "flex min-w-0 flex-1 items-center gap-2" };
24
+ var InputChat_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
25
+ __name: "InputChat",
26
+ props: {
27
+ modelValue: { default: "" },
28
+ placeholder: { default: void 0 },
29
+ editing: { default: void 0 },
30
+ editingLabel: { default: "Editando" },
31
+ canSend: {
32
+ type: Boolean,
33
+ default: void 0
34
+ },
35
+ disabled: {
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ attachFileLabel: { default: "Attach file" },
40
+ attachImageLabel: { default: "Attach image" },
41
+ sendLabel: { default: "Send" },
42
+ class: {
43
+ type: [
44
+ Boolean,
45
+ null,
46
+ String,
47
+ Object,
48
+ Array
49
+ ],
50
+ default: void 0
51
+ }
52
+ },
53
+ emits: [
54
+ "update:modelValue",
55
+ "send",
56
+ "attach-file",
57
+ "attach-image"
58
+ ],
59
+ setup(__props, { emit: __emit }) {
60
+ const props = __props;
61
+ const emit = __emit;
62
+ const sendEnabled = computed(() => !props.disabled && (props.canSend ?? props.modelValue.trim().length > 0));
63
+ function onInput(event) {
64
+ emit("update:modelValue", event.target.value);
65
+ }
66
+ function send() {
67
+ if (sendEnabled.value) emit("send", props.modelValue);
68
+ }
69
+ function onKeydown(event) {
70
+ if (event.key !== "Enter" || event.shiftKey || event.isComposing) return;
71
+ event.preventDefault();
72
+ send();
73
+ }
74
+ return (_ctx, _cache) => {
75
+ return openBlock(), createElementBlock("div", {
76
+ "data-slot": "input-chat",
77
+ class: normalizeClass(unref(cn)(unref(gandalfInputChatVariants)(), props.class))
78
+ }, [
79
+ _ctx.$slots.attachments ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "attachments")])) : createCommentVNode("", true),
80
+ __props.editing !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(__props.editingLabel), 1), createElementVNode("span", _hoisted_4, toDisplayString(__props.editing), 1)])) : createCommentVNode("", true),
81
+ createElementVNode("textarea", {
82
+ value: __props.modelValue,
83
+ placeholder: __props.placeholder,
84
+ disabled: __props.disabled,
85
+ rows: "1",
86
+ class: normalizeClass(["text-base-foreground placeholder:text-base-foreground-extra-quiet [field-sizing:content] max-h-40 min-h-9 w-full resize-none bg-transparent py-1.5 text-base leading-normal outline-none disabled:cursor-not-allowed", __props.editing !== void 0 && "mt-1.5 min-h-6 py-0"]),
87
+ onInput,
88
+ onKeydown
89
+ }, null, 42, _hoisted_5),
90
+ createElementVNode("div", _hoisted_6, [createElementVNode("div", _hoisted_7, [renderSlot(_ctx.$slots, "actions", {}, () => [createVNode(unref(GButton_default), {
91
+ variant: "ghost-primary",
92
+ "aria-label": __props.attachFileLabel,
93
+ disabled: __props.disabled || __props.editing !== void 0,
94
+ class: "group-focus-within/input-chat:text-secondary-foreground",
95
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("attach-file"))
96
+ }, {
97
+ default: withCtx(() => [createVNode(unref(File), { class: "size-4" })]),
98
+ _: 1
99
+ }, 8, ["aria-label", "disabled"]), createVNode(unref(GButton_default), {
100
+ variant: "ghost-primary",
101
+ "aria-label": __props.attachImageLabel,
102
+ disabled: __props.disabled || __props.editing !== void 0,
103
+ class: "group-focus-within/input-chat:text-secondary-foreground",
104
+ onClick: _cache[1] || (_cache[1] = ($event) => emit("attach-image"))
105
+ }, {
106
+ default: withCtx(() => [createVNode(unref(Image), { class: "size-4" })]),
107
+ _: 1
108
+ }, 8, ["aria-label", "disabled"])])]), createVNode(unref(GButton_default), {
109
+ variant: "tonal-primary",
110
+ "aria-label": __props.sendLabel,
111
+ disabled: !sendEnabled.value,
112
+ onClick: send
113
+ }, {
114
+ default: withCtx(() => [createVNode(unref(Send), { class: "size-4" })]),
115
+ _: 1
116
+ }, 8, ["aria-label", "disabled"])])
117
+ ], 2);
118
+ };
119
+ }
120
+ });
121
+ export { InputChat_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,2 @@
1
+ export { default as GInputChat } from './InputChat.vue';
2
+ export declare const gandalfInputChatVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
@@ -0,0 +1,5 @@
1
+ import InputChat_default from "./InputChat.js";
2
+ import { cva } from "class-variance-authority";
3
+ // src/components/gandalf/kit/input-chat/index.ts
4
+ var gandalfInputChatVariants = cva("group/input-chat bg-card border-bni-border-loud focus-within:border-primary focus-within:ring-primary flex w-full flex-col justify-center rounded-xl border p-3 shadow-md focus-within:ring-1 focus-within:ring-inset");
5
+ export { InputChat_default as GInputChat, gandalfInputChatVariants };
@@ -0,0 +1,4 @@
1
+ import Layout_vue_vue_type_script_setup_true_lang_default from "./Layout.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/layout/Layout.vue
3
+ var Layout_default = Layout_vue_vue_type_script_setup_true_lang_default;
4
+ export { Layout_default as default };
@@ -0,0 +1,49 @@
1
+ import { Component, HTMLAttributes } from 'vue';
2
+ import { SidebarNavGroup, SidebarNavItem } from '../sidebar';
3
+ type __VLS_Props = {
4
+ /** Groups of the GKitSidebar. Leave empty and use the `sidebar` slot for a custom rail. */
5
+ groups?: SidebarNavGroup[];
6
+ /** `value` of the active sidebar item (v-model). */
7
+ modelValue?: string;
8
+ /** Component for sidebar items with `to`, such as `NuxtLink` or `RouterLink`. */
9
+ linkAs?: Component | string;
10
+ /** Expanded or collapsed sidebar (v-model:open). */
11
+ open?: boolean;
12
+ defaultOpen?: boolean;
13
+ class?: HTMLAttributes['class'];
14
+ /** Classes for the `<main>` that holds the page. */
15
+ contentClass?: HTMLAttributes['class'];
16
+ };
17
+ declare var __VLS_9: {}, __VLS_16: {}, __VLS_32: {};
18
+ type __VLS_Slots = {} & {
19
+ header?: (props: typeof __VLS_9) => any;
20
+ } & {
21
+ sidebar?: (props: typeof __VLS_16) => any;
22
+ } & {
23
+ default?: (props: typeof __VLS_32) => any;
24
+ };
25
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
+ "update:modelValue": (value: string) => any;
27
+ select: (item: SidebarNavItem) => any;
28
+ "update:open": (value: boolean) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
+ onSelect?: ((item: SidebarNavItem) => any) | undefined;
32
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
33
+ }>, {
34
+ modelValue: string;
35
+ class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
36
+ open: boolean;
37
+ defaultOpen: boolean;
38
+ contentClass: string | false | Record<string, any> | import('vue').ClassValue[] | null;
39
+ groups: SidebarNavGroup[];
40
+ linkAs: string | Component;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
45
+ type __VLS_WithSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -0,0 +1,86 @@
1
+ import { cn } from "../../../../lib/utils.js";
2
+ import GSidebarInset_default from "../../base/sidebar/GSidebarInset.js";
3
+ import GSidebarProvider_default from "../../base/sidebar/GSidebarProvider.js";
4
+ import Header_default from "../header/Header.js";
5
+ import Sidebar_default from "../sidebar/Sidebar.js";
6
+ import { gandalfLayoutContentVariants, gandalfLayoutSidebarClass } from "./index.js";
7
+ import { createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
8
+ // src/components/gandalf/kit/layout/Layout.vue?vue&type=script&setup=true&lang.ts
9
+ var _hoisted_1 = { class: "relative flex min-h-0 flex-1" };
10
+ var Layout_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
11
+ __name: "Layout",
12
+ props: {
13
+ groups: { default: () => [] },
14
+ modelValue: { default: void 0 },
15
+ linkAs: { default: void 0 },
16
+ open: {
17
+ type: Boolean,
18
+ default: void 0
19
+ },
20
+ defaultOpen: {
21
+ type: Boolean,
22
+ default: true
23
+ },
24
+ class: {
25
+ type: [
26
+ Boolean,
27
+ null,
28
+ String,
29
+ Object,
30
+ Array
31
+ ],
32
+ default: void 0
33
+ },
34
+ contentClass: {
35
+ type: [
36
+ Boolean,
37
+ null,
38
+ String,
39
+ Object,
40
+ Array
41
+ ],
42
+ default: void 0
43
+ }
44
+ },
45
+ emits: [
46
+ "update:modelValue",
47
+ "update:open",
48
+ "select"
49
+ ],
50
+ setup(__props, { emit: __emit }) {
51
+ const props = __props;
52
+ const emit = __emit;
53
+ return (_ctx, _cache) => {
54
+ return openBlock(), createBlock(unref(GSidebarProvider_default), {
55
+ open: props.open,
56
+ "default-open": __props.defaultOpen,
57
+ class: normalizeClass(unref(cn)("h-svh min-h-0 flex-col overflow-hidden", props.class)),
58
+ "onUpdate:open": _cache[2] || (_cache[2] = (value) => emit("update:open", value))
59
+ }, {
60
+ default: withCtx(() => [renderSlot(_ctx.$slots, "header", {}, () => [createVNode(unref(Header_default))]), createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "sidebar", {}, () => [__props.groups.length ? (openBlock(), createBlock(unref(Sidebar_default), {
61
+ key: 0,
62
+ groups: __props.groups,
63
+ "model-value": __props.modelValue,
64
+ "link-as": __props.linkAs,
65
+ class: normalizeClass(unref(gandalfLayoutSidebarClass)),
66
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = (value) => emit("update:modelValue", value)),
67
+ onSelect: _cache[1] || (_cache[1] = (item) => emit("select", item))
68
+ }, null, 8, [
69
+ "groups",
70
+ "model-value",
71
+ "link-as",
72
+ "class"
73
+ ])) : createCommentVNode("", true)]), createVNode(unref(GSidebarInset_default), { class: normalizeClass(unref(cn)(unref(gandalfLayoutContentVariants)(), __props.contentClass)) }, {
74
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
75
+ _: 3
76
+ }, 8, ["class"])])]),
77
+ _: 3
78
+ }, 8, [
79
+ "open",
80
+ "default-open",
81
+ "class"
82
+ ]);
83
+ };
84
+ }
85
+ });
86
+ export { Layout_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,4 @@
1
+ import LayoutBreadcrumbs_vue_vue_type_script_setup_true_lang_default from "./LayoutBreadcrumbs.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/layout/LayoutBreadcrumbs.vue
3
+ var LayoutBreadcrumbs_default = LayoutBreadcrumbs_vue_vue_type_script_setup_true_lang_default;
4
+ export { LayoutBreadcrumbs_default as default };
@@ -0,0 +1,31 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ type __VLS_Props = {
3
+ /** Shows the back button (Ghost primary sm with `arrow-left`). */
4
+ back?: boolean;
5
+ /** Accessible name of the back button. */
6
+ backLabel?: string;
7
+ class?: HTMLAttributes['class'];
8
+ };
9
+ declare var __VLS_14: {}, __VLS_16: {};
10
+ type __VLS_Slots = {} & {
11
+ default?: (props: typeof __VLS_14) => any;
12
+ } & {
13
+ actions?: (props: typeof __VLS_16) => any;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
+ back: (event: MouseEvent) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onBack?: ((event: MouseEvent) => any) | undefined;
19
+ }>, {
20
+ class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
21
+ back: boolean;
22
+ backLabel: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,56 @@
1
+ import { cn } from "../../../../lib/utils.js";
2
+ import GButton_default from "../../base/button/GButton.js";
3
+ import { gandalfLayoutBreadcrumbsVariants } from "./index.js";
4
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
5
+ import { ArrowLeft } from "lucide-vue-next";
6
+ // src/components/gandalf/kit/layout/LayoutBreadcrumbs.vue?vue&type=script&setup=true&lang.ts
7
+ var _hoisted_1 = { class: "flex min-w-0 flex-1 items-center" };
8
+ var _hoisted_2 = {
9
+ key: 1,
10
+ class: "flex shrink-0 items-center gap-2"
11
+ };
12
+ var LayoutBreadcrumbs_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
13
+ __name: "LayoutBreadcrumbs",
14
+ props: {
15
+ back: {
16
+ type: Boolean,
17
+ default: true
18
+ },
19
+ backLabel: { default: "Back" },
20
+ class: {
21
+ type: [
22
+ Boolean,
23
+ null,
24
+ String,
25
+ Object,
26
+ Array
27
+ ],
28
+ default: void 0
29
+ }
30
+ },
31
+ emits: ["back"],
32
+ setup(__props, { emit: __emit }) {
33
+ const props = __props;
34
+ const emit = __emit;
35
+ return (_ctx, _cache) => {
36
+ return openBlock(), createElementBlock("div", {
37
+ "data-slot": "layout-breadcrumbs",
38
+ class: normalizeClass(unref(cn)(unref(gandalfLayoutBreadcrumbsVariants)(), props.class))
39
+ }, [
40
+ __props.back ? (openBlock(), createBlock(unref(GButton_default), {
41
+ key: 0,
42
+ variant: "ghost-primary",
43
+ size: "sm",
44
+ "aria-label": __props.backLabel,
45
+ onClick: _cache[0] || (_cache[0] = (event) => emit("back", event))
46
+ }, {
47
+ default: withCtx(() => [createVNode(unref(ArrowLeft))]),
48
+ _: 1
49
+ }, 8, ["aria-label"])) : createCommentVNode("", true),
50
+ createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]),
51
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "actions")])) : createCommentVNode("", true)
52
+ ], 2);
53
+ };
54
+ }
55
+ });
56
+ export { LayoutBreadcrumbs_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,4 @@
1
+ import LayoutTitle_vue_vue_type_script_setup_true_lang_default from "./LayoutTitle.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/layout/LayoutTitle.vue
3
+ var LayoutTitle_default = LayoutTitle_vue_vue_type_script_setup_true_lang_default;
4
+ export { LayoutTitle_default as default };