@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
@@ -1,10 +1,18 @@
1
1
  import { HTMLAttributes } from 'vue';
2
2
  type __VLS_Props = {
3
+ /** Second line (Figma: Text Configuration=Double). */
4
+ description?: string;
3
5
  class?: HTMLAttributes['class'];
4
6
  };
5
- declare var __VLS_7: {};
7
+ declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
6
8
  type __VLS_Slots = {} & {
7
9
  default?: (props: typeof __VLS_7) => any;
10
+ } & {
11
+ description?: (props: typeof __VLS_9) => any;
12
+ } & {
13
+ action?: (props: typeof __VLS_11) => any;
14
+ } & {
15
+ default?: (props: typeof __VLS_13) => any;
8
16
  };
9
17
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,22 +1,38 @@
1
1
  import { cn } from "../../../../lib/utils.js";
2
2
  import TableHead_default from "../../../ui/table/TableHead.js";
3
- import { gandalfTableHeadVariants } from "./index.js";
4
- import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
3
+ import { gandalfTableDescriptionVariants, gandalfTableHeadVariants } from "./index.js";
4
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
5
5
  // src/components/gandalf/base/table/GTableHead.vue?vue&type=script&setup=true&lang.ts
6
+ var _hoisted_1 = {
7
+ key: 0,
8
+ class: "flex items-center gap-2"
9
+ };
10
+ var _hoisted_2 = { class: "flex min-w-0 flex-1 flex-col gap-0.5" };
11
+ var _hoisted_3 = { class: "block truncate" };
12
+ var _hoisted_4 = {
13
+ key: 0,
14
+ class: "flex shrink-0 opacity-0 transition-opacity group-hover/table-head:opacity-100 focus-within:opacity-100"
15
+ };
6
16
  var GTableHead_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
7
17
  __name: "GTableHead",
8
- props: { class: { type: [
9
- Boolean,
10
- null,
11
- String,
12
- Object,
13
- Array
14
- ] } },
18
+ props: {
19
+ description: {},
20
+ class: { type: [
21
+ Boolean,
22
+ null,
23
+ String,
24
+ Object,
25
+ Array
26
+ ] }
27
+ },
15
28
  setup(__props) {
16
29
  const props = __props;
17
30
  return (_ctx, _cache) => {
18
31
  return openBlock(), createBlock(unref(TableHead_default), { class: normalizeClass(unref(cn)(unref(gandalfTableHeadVariants)(), props.class)) }, {
19
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
32
+ default: withCtx(() => [__props.description || _ctx.$slots.description || _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("span", _hoisted_2, [createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "default")]), __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", {
33
+ key: 0,
34
+ class: normalizeClass(unref(gandalfTableDescriptionVariants)({ type: "header" }))
35
+ }, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 2)) : createCommentVNode("", true)]), _ctx.$slots.action ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)])) : renderSlot(_ctx.$slots, "default", { key: 1 })]),
20
36
  _: 3
21
37
  }, 8, ["class"]);
22
38
  };
@@ -7,7 +7,12 @@ export { default as GTableHead } from './GTableHead.vue';
7
7
  export { default as GTableCell } from './GTableCell.vue';
8
8
  export { default as GTableCaption } from './GTableCaption.vue';
9
9
  export declare const gandalfTableVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
10
+ export declare const gandalfTableFooterBarVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
10
11
  export declare const gandalfTableHeaderVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
12
+ export declare const gandalfTableFooterVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
11
13
  export declare const gandalfTableRowVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
12
14
  export declare const gandalfTableHeadVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
13
15
  export declare const gandalfTableCellVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
16
+ export declare const gandalfTableDescriptionVariants: (props?: ({
17
+ type?: "header" | "cell" | null | undefined;
18
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -8,9 +8,15 @@ import GTableCell_default from "./GTableCell.js";
8
8
  import GTableCaption_default from "./GTableCaption.js";
9
9
  import { cva } from "class-variance-authority";
10
10
  // src/components/gandalf/base/table/index.ts
11
- var gandalfTableVariants = cva("rounded-lg border border-slate-200 overflow-hidden");
12
- var gandalfTableHeaderVariants = cva("bg-base-base");
13
- var gandalfTableRowVariants = cva("border-slate-200");
14
- var gandalfTableHeadVariants = cva("h-11 px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-base-foreground-extra-quiet");
15
- var gandalfTableCellVariants = cva("h-10 px-3 py-1.5 text-sm text-base-foreground-loud");
16
- export { GTable_default as GTable, GTableBody_default as GTableBody, GTableCaption_default as GTableCaption, GTableCell_default as GTableCell, GTableFooter_default as GTableFooter, GTableHead_default as GTableHead, GTableHeader_default as GTableHeader, GTableRow_default as GTableRow, gandalfTableCellVariants, gandalfTableHeadVariants, gandalfTableHeaderVariants, gandalfTableRowVariants, gandalfTableVariants };
11
+ var gandalfTableVariants = cva("overflow-hidden rounded-xl border border-bni-border bg-card");
12
+ var gandalfTableFooterBarVariants = cva("flex h-14 items-center justify-end gap-2 border-t border-bni-border bg-base-base px-3 text-sm leading-[normal] text-base-foreground-quiet");
13
+ var gandalfTableHeaderVariants = cva("bg-base-base [&_tr]:hover:bg-base-base");
14
+ var gandalfTableFooterVariants = cva("border-bni-border bg-base-base font-normal text-base-foreground-quiet");
15
+ var gandalfTableRowVariants = cva("border-bni-border hover:bg-accent data-[state=selected]:bg-muted");
16
+ var gandalfTableHeadVariants = cva("group/table-head h-11 px-3 py-1.5 text-xs leading-[normal] font-semibold text-base-foreground-extra-quiet [&:has([role=checkbox])]:pr-3 [&>[role=checkbox]]:translate-y-0");
17
+ var gandalfTableCellVariants = cva("h-10 px-3 py-1.5 text-sm leading-[normal] text-base-inverse [&:has([role=checkbox])]:pr-3 [&>[role=checkbox]]:translate-y-0");
18
+ var gandalfTableDescriptionVariants = cva("block truncate", { variants: { type: {
19
+ header: "text-sm font-normal text-base-foreground-extra-quiet",
20
+ cell: "text-xs text-base-foreground-extra-quiet"
21
+ } } });
22
+ export { GTable_default as GTable, GTableBody_default as GTableBody, GTableCaption_default as GTableCaption, GTableCell_default as GTableCell, GTableFooter_default as GTableFooter, GTableHead_default as GTableHead, GTableHeader_default as GTableHeader, GTableRow_default as GTableRow, gandalfTableCellVariants, gandalfTableDescriptionVariants, gandalfTableFooterBarVariants, gandalfTableFooterVariants, gandalfTableHeadVariants, gandalfTableHeaderVariants, gandalfTableRowVariants, gandalfTableVariants };
@@ -24,7 +24,7 @@ var GTabsList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ define
24
24
  setup(__props) {
25
25
  const props = __props;
26
26
  const delegatedProps = reactiveOmit(props, "class", "variant", "align", "fullWidth");
27
- provide(tabsVariantKey, toRef(() => props.variant ?? "base"));
27
+ provide(tabsVariantKey, toRef(() => props.variant ?? "toggle-primary"));
28
28
  provide(tabsAlignKey, toRef(() => props.align ?? "start"));
29
29
  return (_ctx, _cache) => {
30
30
  return openBlock(), createBlock(unref(TabsList_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfTabsListVariants)({
@@ -7,13 +7,13 @@ export { default as GTabsContent } from './GTabsContent.vue';
7
7
  export declare const tabsVariantKey: InjectionKey<Ref<GandalfTabsVariant>>;
8
8
  export declare const tabsAlignKey: InjectionKey<Ref<GandalfTabsAlign>>;
9
9
  export declare const gandalfTabsListVariants: (props?: ({
10
- variant?: "base" | "outline" | null | undefined;
11
- align?: "end" | "start" | "stretch" | "center" | null | undefined;
10
+ variant?: "tab" | "toggle-primary" | "toggle-secondary" | null | undefined;
11
+ align?: "end" | "stretch" | "center" | "start" | null | undefined;
12
12
  fullWidth?: boolean | null | undefined;
13
13
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
14
  export declare const gandalfTabsTriggerVariants: (props?: ({
15
- variant?: "base" | "outline" | null | undefined;
16
- align?: "end" | "start" | "stretch" | "center" | null | undefined;
15
+ variant?: "tab" | "toggle-primary" | "toggle-secondary" | null | undefined;
16
+ align?: "end" | "stretch" | "center" | "start" | null | undefined;
17
17
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
18
18
  export type GandalfTabsListVariants = VariantProps<typeof gandalfTabsListVariants>;
19
19
  export type GandalfTabsVariant = NonNullable<GandalfTabsListVariants['variant']>;
@@ -9,8 +9,9 @@ var tabsAlignKey = Symbol("tabs-align");
9
9
  var gandalfTabsListVariants = cva("inline-flex items-center", {
10
10
  variants: {
11
11
  variant: {
12
- base: "bg-card rounded-2xl p-2 gap-1 h-14",
13
- outline: "w-full bg-transparent rounded-none p-0 gap-0 border-b border-border"
12
+ "toggle-primary": "bg-card h-14 gap-1 rounded-2xl p-2",
13
+ "toggle-secondary": "bg-base-loud h-8 gap-0 overflow-hidden rounded-xl p-0",
14
+ tab: "h-10 w-full gap-4 rounded-none bg-transparent p-0 shadow-[inset_0_-1px_0_var(--color-bni-border)]"
14
15
  },
15
16
  align: {
16
17
  start: "justify-start",
@@ -28,16 +29,31 @@ var gandalfTabsListVariants = cva("inline-flex items-center", {
28
29
  class: "w-full"
29
30
  }],
30
31
  defaultVariants: {
31
- variant: "base",
32
+ variant: "toggle-primary",
32
33
  align: "start",
33
34
  fullWidth: false
34
35
  }
35
36
  });
36
- var gandalfTabsTriggerVariants = cva("focus-visible:outline-none", {
37
+ var gandalfTabsTriggerVariants = cva("cursor-pointer text-base leading-normal font-semibold focus-visible:outline-none", {
37
38
  variants: {
38
39
  variant: {
39
- base: "gap-2 px-3 py-2 text-base font-semibold text-muted-foreground-quiet data-[state=active]:bg-base-base data-[state=active]:border-brand data-[state=active]:text-brand",
40
- outline: "self-end rounded-none border-b-2 border-b-transparent px-3 pb-2 pt-1 text-muted-foreground -mb-px data-[state=active]:bg-transparent data-[state=active]:border-b-primary data-[state=active]:text-primary data-[state=active]:shadow-none"
40
+ "toggle-primary": [
41
+ "text-muted-foreground-quiet h-10 rounded-xl px-3 py-2",
42
+ "hover:overlay-dark-5 active:overlay-dark-8",
43
+ "data-[state=active]:bg-base-base data-[state=active]:border-primary data-[state=active]:text-primary",
44
+ "data-[state=active]:hover:bg-none"
45
+ ].join(" "),
46
+ "toggle-secondary": [
47
+ "text-base-foreground-extra-quiet h-8 rounded-xl border-0 px-2 py-1",
48
+ "hover:overlay-dark-5 active:overlay-dark-8",
49
+ "data-[state=active]:bg-base-inverse data-[state=active]:text-base-on-inverse data-[state=active]:shadow-none",
50
+ "data-[state=active]:hover:bg-none"
51
+ ].join(" "),
52
+ tab: [
53
+ "text-muted-foreground-quiet hover:text-primary-quiet h-10 gap-2 rounded-none border-0 p-2",
54
+ "data-[state=active]:text-primary data-[state=active]:hover:text-primary data-[state=active]:bg-transparent",
55
+ "data-[state=active]:shadow-[inset_0_-3px_0_var(--color-primary)]"
56
+ ].join(" ")
41
57
  },
42
58
  align: {
43
59
  start: "",
@@ -46,25 +62,17 @@ var gandalfTabsTriggerVariants = cva("focus-visible:outline-none", {
46
62
  stretch: "flex-1"
47
63
  }
48
64
  },
49
- compoundVariants: [
50
- {
51
- variant: "outline",
52
- align: "start",
53
- class: "flex-none"
54
- },
55
- {
56
- variant: "outline",
57
- align: "center",
58
- class: "flex-none"
59
- },
60
- {
61
- variant: "outline",
62
- align: "end",
63
- class: "flex-none"
64
- }
65
- ],
65
+ compoundVariants: [{
66
+ variant: "tab",
67
+ align: [
68
+ "start",
69
+ "center",
70
+ "end"
71
+ ],
72
+ class: "flex-none"
73
+ }],
66
74
  defaultVariants: {
67
- variant: "base",
75
+ variant: "toggle-primary",
68
76
  align: "start"
69
77
  }
70
78
  });
@@ -1,15 +1,22 @@
1
1
  import { TooltipRootProps } from 'reka-ui';
2
- declare var __VLS_7: {
2
+ declare var __VLS_9: {
3
3
  open: boolean;
4
4
  };
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_7) => any;
6
+ default?: (props: typeof __VLS_9) => any;
7
7
  };
8
8
  declare const __VLS_base: import('vue').DefineComponent<TooltipRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
9
  "update:open": (value: boolean) => any;
10
10
  }, string, import('vue').PublicProps, Readonly<TooltipRootProps> & Readonly<{
11
11
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ }>, {
13
+ disabled: boolean;
14
+ open: boolean;
15
+ defaultOpen: boolean;
16
+ disableHoverableContent: boolean;
17
+ disableClosingTrigger: boolean;
18
+ ignoreNonKeyboardFocus: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
21
  declare const _default: typeof __VLS_export;
15
22
  export default _default;
@@ -1,24 +1,44 @@
1
- import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
2
- import { TooltipRoot } from "reka-ui";
1
+ import Tooltip_default from "../../../ui/tooltip/Tooltip.js";
2
+ import { createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
3
3
  // src/components/gandalf/base/tooltip/GTooltip.vue?vue&type=script&setup=true&lang.ts
4
4
  var GTooltip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
5
5
  __name: "GTooltip",
6
6
  props: {
7
- defaultOpen: { type: Boolean },
8
- open: { type: Boolean },
7
+ defaultOpen: {
8
+ type: Boolean,
9
+ default: void 0
10
+ },
11
+ open: {
12
+ type: Boolean,
13
+ default: void 0
14
+ },
9
15
  delayDuration: {},
10
- disableHoverableContent: { type: Boolean },
11
- disableClosingTrigger: { type: Boolean },
12
- disabled: { type: Boolean },
13
- ignoreNonKeyboardFocus: { type: Boolean }
16
+ disableHoverableContent: {
17
+ type: Boolean,
18
+ default: void 0
19
+ },
20
+ disableClosingTrigger: {
21
+ type: Boolean,
22
+ default: void 0
23
+ },
24
+ disabled: {
25
+ type: Boolean,
26
+ default: void 0
27
+ },
28
+ ignoreNonKeyboardFocus: {
29
+ type: Boolean,
30
+ default: void 0
31
+ }
14
32
  },
15
33
  emits: ["update:open"],
16
34
  setup(__props, { emit: __emit }) {
35
+ const props = __props;
36
+ const emit = __emit;
17
37
  return (_ctx, _cache) => {
18
- return openBlock(), createBlock(unref(TooltipRoot), null, {
38
+ return openBlock(), createBlock(unref(Tooltip_default), mergeProps(props, { "onUpdate:open": _cache[0] || (_cache[0] = ($event) => emit("update:open", $event)) }), {
19
39
  default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
20
40
  _: 3
21
- });
41
+ }, 16);
22
42
  };
23
43
  }
24
44
  });
@@ -4,5 +4,5 @@ import GTooltipTrigger_default from "./GTooltipTrigger.js";
4
4
  import GTooltipContent_default from "./GTooltipContent.js";
5
5
  import { cva } from "class-variance-authority";
6
6
  // src/components/gandalf/base/tooltip/index.ts
7
- var gandalfTooltipContentVariants = cva("flex min-h-[38px] w-fit max-w-80 items-center justify-center rounded-xl bg-base-inverse p-2 text-center text-xs text-base-on-inverse shadow-neutral-md");
7
+ var gandalfTooltipContentVariants = cva(["flex min-h-[38px] w-fit max-w-80 items-center justify-center rounded-xl bg-base-inverse p-2 text-center text-xs text-base-on-inverse shadow-neutral-md", "[&>span[style]>svg]:h-2 [&>span[style]>svg]:w-3 [&>span[style]>svg]:translate-y-0 [&>span[style]>svg]:rotate-0 [&>span[style]>svg]:rounded-none [&>span[style]>svg]:bg-transparent [&>span[style]>svg]:fill-base-inverse"]);
8
8
  export { GTooltip_default as GTooltip, GTooltipContent_default as GTooltipContent, GTooltipProvider_default as GTooltipProvider, GTooltipTrigger_default as GTooltipTrigger, gandalfTooltipContentVariants };
@@ -1,12 +1,17 @@
1
1
  import { HTMLAttributes } from 'vue';
2
- import { GandalfAvatarVariant } from '../../base/avatar';
2
+ import { GandalfAvatarSemantic, GandalfAvatarSize, GandalfAvatarType } from '../../base/avatar';
3
3
  type __VLS_Props = {
4
4
  src?: string;
5
5
  alt?: string;
6
+ /** Text shown when there is no image (e.g. initials). */
6
7
  fallback?: string;
7
- variant?: GandalfAvatarVariant;
8
+ type?: GandalfAvatarType;
9
+ size?: GandalfAvatarSize;
10
+ semantic?: GandalfAvatarSemantic;
8
11
  delayMs?: number;
12
+ /** Custom hex background for the fallback, outside the Figma semantics. */
9
13
  bg?: `#${string}`;
14
+ /** Custom hex text color for the fallback, outside the Figma semantics. */
10
15
  color?: `#${string}`;
11
16
  class?: HTMLAttributes['class'];
12
17
  };
@@ -9,7 +9,9 @@ var Avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
9
9
  src: {},
10
10
  alt: {},
11
11
  fallback: {},
12
- variant: {},
12
+ type: {},
13
+ size: {},
14
+ semantic: {},
13
15
  delayMs: {},
14
16
  bg: {},
15
17
  color: {},
@@ -25,7 +27,9 @@ var Avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
25
27
  const props = __props;
26
28
  return (_ctx, _cache) => {
27
29
  return openBlock(), createBlock(unref(GAvatar_default), {
28
- variant: __props.variant,
30
+ type: __props.type,
31
+ size: __props.size,
32
+ semantic: __props.semantic,
29
33
  class: normalizeClass(props.class)
30
34
  }, {
31
35
  default: withCtx(() => [__props.src ? (openBlock(), createBlock(unref(GAvatarImage_default), {
@@ -43,7 +47,12 @@ var Avatar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
43
47
  _: 1
44
48
  }, 8, ["delay-ms", "style"])]),
45
49
  _: 1
46
- }, 8, ["variant", "class"]);
50
+ }, 8, [
51
+ "type",
52
+ "size",
53
+ "semantic",
54
+ "class"
55
+ ]);
47
56
  };
48
57
  }
49
58
  });
@@ -1,12 +1,24 @@
1
1
  import { HTMLAttributes } from 'vue';
2
+ import { GandalfAvatarSize, GandalfAvatarType } from '../../base/avatar';
2
3
  type __VLS_Props = {
4
+ /** Shape of every avatar in the group, unless an avatar sets its own. */
5
+ type?: GandalfAvatarType;
6
+ /** Size of every avatar in the group, unless an avatar sets its own. */
7
+ size?: GandalfAvatarSize;
8
+ /** Hidden avatars: adds a last "+N" avatar (Type=+3 in Figma). */
9
+ more?: number;
3
10
  class?: HTMLAttributes['class'];
4
11
  };
5
12
  declare var __VLS_1: {};
6
13
  type __VLS_Slots = {} & {
7
14
  default?: (props: typeof __VLS_1) => any;
8
15
  };
9
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ type: GandalfAvatarType;
18
+ size: GandalfAvatarSize;
19
+ class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
20
+ more: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
23
  declare const _default: typeof __VLS_export;
12
24
  export default _default;
@@ -1,19 +1,47 @@
1
1
  import { cn } from "../../../../lib/utils.js";
2
- import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
2
+ import GAvatar_default from "../../base/avatar/GAvatar.js";
3
+ import GAvatarFallback_default from "../../base/avatar/GAvatarFallback.js";
4
+ import { avatarGroupKey } from "../../base/avatar/index.js";
5
+ import { gandalfAvatarGroupVariants } from "./index.js";
6
+ import { createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, provide, renderSlot, toDisplayString, toRef, unref, withCtx } from "vue";
3
7
  // src/components/gandalf/kit/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
4
8
  var AvatarGroup_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
5
9
  __name: "AvatarGroup",
6
- props: { class: { type: [
7
- Boolean,
8
- null,
9
- String,
10
- Object,
11
- Array
12
- ] } },
10
+ props: {
11
+ type: { default: "circle" },
12
+ size: { default: "sm" },
13
+ more: { default: void 0 },
14
+ class: {
15
+ type: [
16
+ Boolean,
17
+ null,
18
+ String,
19
+ Object,
20
+ Array
21
+ ],
22
+ default: void 0
23
+ }
24
+ },
13
25
  setup(__props) {
14
26
  const props = __props;
27
+ provide(avatarGroupKey, {
28
+ type: toRef(() => props.type),
29
+ size: toRef(() => props.size)
30
+ });
15
31
  return (_ctx, _cache) => {
16
- return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)("flex -space-x-2", props.class)) }, [renderSlot(_ctx.$slots, "default")], 2);
32
+ return openBlock(), createElementBlock("div", {
33
+ "data-slot": "avatar-group",
34
+ class: normalizeClass(unref(cn)(unref(gandalfAvatarGroupVariants)({ size: __props.size }), props.class))
35
+ }, [renderSlot(_ctx.$slots, "default"), __props.more ? (openBlock(), createBlock(unref(GAvatar_default), {
36
+ key: 0,
37
+ semantic: "default"
38
+ }, {
39
+ default: withCtx(() => [createVNode(unref(GAvatarFallback_default), null, {
40
+ default: withCtx(() => [createTextVNode("+" + toDisplayString(__props.more), 1)]),
41
+ _: 1
42
+ })]),
43
+ _: 1
44
+ })) : createCommentVNode("", true)], 2);
17
45
  };
18
46
  }
19
47
  });
@@ -0,0 +1,4 @@
1
+ import AvatarRol_vue_vue_type_script_setup_true_lang_default from "./AvatarRol.vue_vue_type_script_setup_true_lang.js";
2
+ // src/components/gandalf/kit/avatar/AvatarRol.vue
3
+ var AvatarRol_default = AvatarRol_vue_vue_type_script_setup_true_lang_default;
4
+ export { AvatarRol_default as default };
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ import { GandalfAvatarRolType } from './index';
3
+ type __VLS_Props = {
4
+ /** Role ("Type" in Figma). "Eléctrico" is `electrico`. */
5
+ type?: GandalfAvatarRolType;
6
+ class?: HTMLAttributes['class'];
7
+ };
8
+ declare var __VLS_13: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_13) => any;
11
+ };
12
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
13
+ type: GandalfAvatarRolType;
14
+ class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,75 @@
1
+ import { cn } from "../../../../lib/utils.js";
2
+ import GAvatar_default from "../../base/avatar/GAvatar.js";
3
+ import GAvatarFallback_default from "../../base/avatar/GAvatarFallback.js";
4
+ import { gandalfAvatarRolBadgeVariants, gandalfAvatarRolVariants } from "./index.js";
5
+ import { createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, withCtx } from "vue";
6
+ import { HardHat, Leaf, Scale, TreePine, Zap } from "lucide-vue-next";
7
+ // src/components/gandalf/kit/avatar/AvatarRol.vue?vue&type=script&setup=true&lang.ts
8
+ var _hoisted_1 = ["aria-label"];
9
+ var AvatarRol_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
10
+ __name: "AvatarRol",
11
+ props: {
12
+ type: { default: "legal" },
13
+ class: {
14
+ type: [
15
+ Boolean,
16
+ null,
17
+ String,
18
+ Object,
19
+ Array
20
+ ],
21
+ default: void 0
22
+ }
23
+ },
24
+ setup(__props) {
25
+ const props = __props;
26
+ const roles = {
27
+ legal: {
28
+ label: "Legal",
29
+ initials: "LE",
30
+ icon: Scale
31
+ },
32
+ ambiental: {
33
+ label: "Ambiental",
34
+ initials: "AM",
35
+ icon: Leaf
36
+ },
37
+ forestal: {
38
+ label: "Forestal",
39
+ initials: "FO",
40
+ icon: TreePine
41
+ },
42
+ civil: {
43
+ label: "Civil",
44
+ initials: "CI",
45
+ icon: HardHat
46
+ },
47
+ electrico: {
48
+ label: "Eléctrico",
49
+ initials: "EL",
50
+ icon: Zap
51
+ }
52
+ };
53
+ return (_ctx, _cache) => {
54
+ return openBlock(), createElementBlock("span", {
55
+ role: "img",
56
+ "aria-label": roles[__props.type].label,
57
+ "data-slot": "avatar-rol",
58
+ class: normalizeClass(unref(cn)("relative inline-flex size-8 shrink-0", props.class))
59
+ }, [createVNode(unref(GAvatar_default), {
60
+ size: "sm",
61
+ "aria-hidden": "true"
62
+ }, {
63
+ default: withCtx(() => [createVNode(unref(GAvatarFallback_default), { class: normalizeClass(unref(cn)("pb-[3px]", unref(gandalfAvatarRolVariants)({ type: __props.type }))) }, {
64
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(roles[__props.type].initials), 1)])]),
65
+ _: 3
66
+ }, 8, ["class"])]),
67
+ _: 3
68
+ }), createElementVNode("span", {
69
+ "aria-hidden": "true",
70
+ class: normalizeClass(unref(gandalfAvatarRolBadgeVariants)({ type: __props.type }))
71
+ }, [(openBlock(), createBlock(resolveDynamicComponent(roles[__props.type].icon)))], 2)], 10, _hoisted_1);
72
+ };
73
+ }
74
+ });
75
+ export { AvatarRol_vue_vue_type_script_setup_true_lang_default as default };
@@ -1,2 +1,14 @@
1
+ import { VariantProps } from 'class-variance-authority';
1
2
  export { default as GKitAvatar } from './Avatar.vue';
2
3
  export { default as GKitAvatarGroup } from './AvatarGroup.vue';
4
+ export { default as GAvatarRol } from './AvatarRol.vue';
5
+ export declare const gandalfAvatarGroupVariants: (props?: ({
6
+ size?: "md" | "sm" | "xs" | "lg" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export declare const gandalfAvatarRolVariants: (props?: ({
9
+ type?: "legal" | "ambiental" | "forestal" | "civil" | "electrico" | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ export declare const gandalfAvatarRolBadgeVariants: (props?: ({
12
+ type?: "legal" | "ambiental" | "forestal" | "civil" | "electrico" | null | undefined;
13
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
14
+ export type GandalfAvatarRolType = NonNullable<VariantProps<typeof gandalfAvatarRolVariants>['type']>;
@@ -0,0 +1,35 @@
1
+ import Avatar_default from "./Avatar.js";
2
+ import AvatarGroup_default from "./AvatarGroup.js";
3
+ import AvatarRol_default from "./AvatarRol.js";
4
+ import { cva } from "class-variance-authority";
5
+ // src/components/gandalf/kit/avatar/index.ts
6
+ var gandalfAvatarGroupVariants = cva("flex items-center", {
7
+ variants: { size: {
8
+ xs: "-space-x-3",
9
+ sm: "-space-x-4",
10
+ md: "-space-x-5",
11
+ lg: "-space-x-6"
12
+ } },
13
+ defaultVariants: { size: "sm" }
14
+ });
15
+ var gandalfAvatarRolVariants = cva("", {
16
+ variants: { type: {
17
+ legal: "bg-information-muted text-information-bold",
18
+ ambiental: "bg-lime-100 text-lime-700",
19
+ forestal: "bg-success-muted text-success-bold",
20
+ civil: "bg-action-muted text-action-bold",
21
+ electrico: "bg-warning-muted text-warning-bold"
22
+ } },
23
+ defaultVariants: { type: "legal" }
24
+ });
25
+ var gandalfAvatarRolBadgeVariants = cva("text-card absolute top-[23px] left-[7px] flex size-[18px] items-center justify-center rounded-full drop-shadow-[0px_-0.5px_0.5px_rgba(0,0,0,0.25)] [&_svg]:size-2.5", {
26
+ variants: { type: {
27
+ legal: "bg-information-bold",
28
+ ambiental: "bg-lime-700",
29
+ forestal: "bg-success",
30
+ civil: "bg-action-bold",
31
+ electrico: "bg-warning-bold"
32
+ } },
33
+ defaultVariants: { type: "legal" }
34
+ });
35
+ export { AvatarRol_default as GAvatarRol, Avatar_default as GKitAvatar, AvatarGroup_default as GKitAvatarGroup, gandalfAvatarGroupVariants, gandalfAvatarRolBadgeVariants, gandalfAvatarRolVariants };
@@ -5,7 +5,7 @@ export declare const gandalfCardToggleVariants: (props?: ({
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export declare const gandalfCardToggleAvatarVariants: (props?: ({
7
7
  type?: "report" | "doble" | null | undefined;
8
- color?: "default" | "action" | "destructive" | "information" | "success" | "warning" | null | undefined;
8
+ color?: "default" | "destructive" | "action" | "information" | "success" | "warning" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
10
  export type GandalfCardToggleVariants = VariantProps<typeof gandalfCardToggleVariants>;
11
11
  export type GandalfCardToggleType = NonNullable<GandalfCardToggleVariants['type']>;
@@ -95,7 +95,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
95
95
  format: Intl.DateTimeFormatOptions;
96
96
  locale: string;
97
97
  isDateDisabled: DatePickerMatcher;
98
- align: "end" | "start" | "center";
98
+ align: "end" | "center" | "start";
99
99
  contentClass: string | false | Record<string, any> | import('vue').ClassValue[] | null;
100
100
  clearable: boolean;
101
101
  clearLabel: string;