@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.
- package/CHANGELOG.md +42 -0
- package/dist/components/gandalf/base/accordion/GAccordion.vue.d.ts +10 -6
- package/dist/components/gandalf/base/accordion/GAccordion.vue_vue_type_script_setup_true_lang.js +36 -21
- package/dist/components/gandalf/base/accordion/GAccordionContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/accordion/GAccordionItem.vue.d.ts +9 -1
- package/dist/components/gandalf/base/accordion/GAccordionItem.vue_vue_type_script_setup_true_lang.js +32 -14
- package/dist/components/gandalf/base/accordion/GAccordionTrigger.vue.d.ts +21 -8
- package/dist/components/gandalf/base/accordion/GAccordionTrigger.vue_vue_type_script_setup_true_lang.js +58 -8
- package/dist/components/gandalf/base/accordion/index.d.ts +22 -9
- package/dist/components/gandalf/base/accordion/index.js +89 -24
- package/dist/components/gandalf/base/alert-dialog/GAlertDialog.vue.d.ts +4 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialog.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogAction.vue.d.ts +8 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogAction.vue_vue_type_script_setup_true_lang.js +18 -9
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.js +4 -0
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.vue.d.ts +17 -0
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogCancel.vue.d.ts +8 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogCancel.vue_vue_type_script_setup_true_lang.js +18 -9
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogContent.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogDescription.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogFooter.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogHeader.vue.d.ts +10 -3
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogHeader.vue_vue_type_script_setup_true_lang.js +25 -13
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogTitle.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/alert-dialog/index.d.ts +1 -0
- package/dist/components/gandalf/base/avatar/GAvatar.vue.d.ts +12 -3
- package/dist/components/gandalf/base/avatar/GAvatar.vue_vue_type_script_setup_true_lang.js +32 -15
- package/dist/components/gandalf/base/avatar/GAvatarFallback.vue.d.ts +3 -2
- package/dist/components/gandalf/base/avatar/GAvatarFallback.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/gandalf/base/avatar/GAvatarImage.vue.d.ts +7 -2
- package/dist/components/gandalf/base/avatar/GAvatarImage.vue_vue_type_script_setup_true_lang.js +11 -6
- package/dist/components/gandalf/base/avatar/index.d.ts +16 -3
- package/dist/components/gandalf/base/avatar/index.js +31 -7
- package/dist/components/gandalf/base/badge/index.d.ts +1 -1
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumb.vue.d.ts +6 -1
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumb.vue_vue_type_script_setup_true_lang.js +21 -10
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbEllipsis.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbItem.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbLink.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbList.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbPage.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbSeparator.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/index.d.ts +21 -0
- package/dist/components/gandalf/base/breadcrumb/index.js +47 -0
- package/dist/components/gandalf/base/button/index.d.ts +1 -1
- package/dist/components/gandalf/base/details-panel/index.js +1 -1
- package/dist/components/gandalf/base/dialog/GDialog.vue.d.ts +5 -1
- package/dist/components/gandalf/base/dialog/GDialog.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/gandalf/base/dialog/GDialogBody.js +4 -0
- package/dist/components/gandalf/base/dialog/GDialogBody.vue.d.ts +17 -0
- package/dist/components/gandalf/base/dialog/GDialogBody.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/dialog/GDialogContent.vue.d.ts +1 -5
- package/dist/components/gandalf/base/dialog/GDialogContent.vue_vue_type_script_setup_true_lang.js +10 -15
- package/dist/components/gandalf/base/dialog/GDialogDescription.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/dialog/GDialogFooter.vue.d.ts +6 -3
- package/dist/components/gandalf/base/dialog/GDialogFooter.vue_vue_type_script_setup_true_lang.js +21 -10
- package/dist/components/gandalf/base/dialog/GDialogHeader.vue.d.ts +15 -3
- package/dist/components/gandalf/base/dialog/GDialogHeader.vue_vue_type_script_setup_true_lang.js +51 -13
- package/dist/components/gandalf/base/dialog/GDialogScrollContent.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/dialog/GDialogTitle.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/dialog/index.d.ts +13 -0
- package/dist/components/gandalf/base/dialog/index.js +27 -0
- package/dist/components/gandalf/base/dropdown/GDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/input/GInput.vue.d.ts +13 -1
- package/dist/components/gandalf/base/input/GInput.vue_vue_type_script_setup_true_lang.js +23 -5
- package/dist/components/gandalf/base/input/index.d.ts +6 -1
- package/dist/components/gandalf/base/input/index.js +11 -1
- package/dist/components/gandalf/base/input-group/GInputGroupButton.vue.d.ts +2 -2
- package/dist/components/gandalf/base/menu/GMenu.js +4 -0
- package/dist/components/gandalf/base/menu/GMenu.vue.d.ts +20 -0
- package/dist/components/gandalf/base/menu/GMenu.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/menu/GMenuContent.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuContent.vue.d.ts +34 -0
- package/dist/components/gandalf/base/menu/GMenuContent.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/gandalf/base/menu/GMenuItem.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuItem.vue.d.ts +27 -0
- package/dist/components/gandalf/base/menu/GMenuItem.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/gandalf/base/menu/GMenuLabel.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuLabel.vue.d.ts +18 -0
- package/dist/components/gandalf/base/menu/GMenuLabel.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/gandalf/base/menu/GMenuSeparator.js +4 -0
- package/dist/components/gandalf/base/{sonner/GToastCard.vue.d.ts → menu/GMenuSeparator.vue.d.ts} +4 -6
- package/dist/components/gandalf/base/menu/GMenuSeparator.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/gandalf/base/menu/GMenuTrigger.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuTrigger.vue.d.ts +16 -0
- package/dist/components/gandalf/base/menu/GMenuTrigger.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/menu/index.d.ts +16 -2
- package/dist/components/gandalf/base/menu/index.js +19 -3
- package/dist/components/gandalf/base/navigation-button/GNavigationButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/navigation-button/index.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationFirst.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationItem.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationLast.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationNext.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationPrevious.vue.d.ts +1 -1
- package/dist/components/gandalf/base/popover/GPopover.vue.d.ts +5 -1
- package/dist/components/gandalf/base/popover/GPopover.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/gandalf/base/segmented-button/index.js +1 -0
- package/dist/components/gandalf/base/select/GSelect.vue.d.ts +7 -1
- package/dist/components/gandalf/base/select/GSelect.vue_vue_type_script_setup_true_lang.js +21 -6
- package/dist/components/gandalf/base/sidebar/GSidebar.vue.d.ts +1 -1
- package/dist/components/gandalf/base/sonner/GToast.js +4 -0
- package/dist/components/gandalf/base/sonner/GToast.vue.d.ts +19 -0
- package/dist/components/gandalf/base/sonner/GToast.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/gandalf/base/sonner/GToaster.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/gandalf/base/sonner/index.d.ts +12 -4
- package/dist/components/gandalf/base/sonner/index.js +26 -14
- package/dist/components/gandalf/base/table/GTable.vue.d.ts +5 -1
- package/dist/components/gandalf/base/table/GTable.vue_vue_type_script_setup_true_lang.js +24 -11
- package/dist/components/gandalf/base/table/GTableCell.vue.d.ts +7 -1
- package/dist/components/gandalf/base/table/GTableCell.vue_vue_type_script_setup_true_lang.js +18 -10
- package/dist/components/gandalf/base/table/GTableFooter.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/table/GTableHead.vue.d.ts +9 -1
- package/dist/components/gandalf/base/table/GTableHead.vue_vue_type_script_setup_true_lang.js +26 -10
- package/dist/components/gandalf/base/table/index.d.ts +5 -0
- package/dist/components/gandalf/base/table/index.js +12 -6
- package/dist/components/gandalf/base/tabs/GTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/tabs/index.d.ts +4 -4
- package/dist/components/gandalf/base/tabs/index.js +32 -24
- package/dist/components/gandalf/base/tooltip/GTooltip.vue.d.ts +10 -3
- package/dist/components/gandalf/base/tooltip/GTooltip.vue_vue_type_script_setup_true_lang.js +30 -10
- package/dist/components/gandalf/base/tooltip/index.js +1 -1
- package/dist/components/gandalf/kit/avatar/Avatar.vue.d.ts +7 -2
- package/dist/components/gandalf/kit/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/gandalf/kit/avatar/AvatarGroup.vue.d.ts +13 -1
- package/dist/components/gandalf/kit/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +37 -9
- package/dist/components/gandalf/kit/avatar/AvatarRol.js +4 -0
- package/dist/components/gandalf/kit/avatar/AvatarRol.vue.d.ts +23 -0
- package/dist/components/gandalf/kit/avatar/AvatarRol.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/gandalf/kit/avatar/index.d.ts +12 -0
- package/dist/components/gandalf/kit/avatar/index.js +35 -0
- package/dist/components/gandalf/kit/card-toggle/index.d.ts +1 -1
- package/dist/components/gandalf/kit/date-picker/DatePicker.vue.d.ts +1 -1
- package/dist/components/gandalf/kit/files-card/FilesCard.vue.d.ts +3 -3
- package/dist/components/gandalf/kit/files-card/FilesCard.vue_vue_type_script_setup_true_lang.js +5 -8
- package/dist/components/gandalf/kit/header/Header.js +4 -0
- package/dist/components/gandalf/kit/header/Header.vue.d.ts +26 -0
- package/dist/components/gandalf/kit/header/Header.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/gandalf/kit/header/UnergyLogo.js +4 -0
- package/dist/components/gandalf/kit/header/UnergyLogo.vue.d.ts +3 -0
- package/dist/components/gandalf/kit/header/UnergyLogo.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/gandalf/kit/header/index.d.ts +8 -0
- package/dist/components/gandalf/kit/header/index.js +11 -0
- package/dist/components/gandalf/kit/input-chat/InputChat.js +4 -0
- package/dist/components/gandalf/kit/input-chat/InputChat.vue.d.ts +52 -0
- package/dist/components/gandalf/kit/input-chat/InputChat.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/components/gandalf/kit/input-chat/index.d.ts +2 -0
- package/dist/components/gandalf/kit/input-chat/index.js +5 -0
- package/dist/components/gandalf/kit/layout/Layout.js +4 -0
- package/dist/components/gandalf/kit/layout/Layout.vue.d.ts +49 -0
- package/dist/components/gandalf/kit/layout/Layout.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.js +4 -0
- package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.vue.d.ts +31 -0
- package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/gandalf/kit/layout/LayoutTitle.js +4 -0
- package/dist/components/gandalf/kit/layout/LayoutTitle.vue.d.ts +39 -0
- package/dist/components/gandalf/kit/layout/LayoutTitle.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/gandalf/kit/layout/index.d.ts +37 -0
- package/dist/components/gandalf/kit/layout/index.js +45 -0
- package/dist/components/gandalf/kit/message-card/MessageCard.js +4 -0
- package/dist/components/gandalf/kit/message-card/MessageCard.vue.d.ts +52 -0
- package/dist/components/gandalf/kit/message-card/MessageCard.vue_vue_type_script_setup_true_lang.js +97 -0
- package/dist/components/gandalf/kit/message-card/index.d.ts +4 -0
- package/dist/components/gandalf/kit/message-card/index.js +5 -0
- package/dist/components/gandalf/kit/miniatures/Miniatures.js +4 -0
- package/dist/components/gandalf/kit/miniatures/Miniatures.vue.d.ts +42 -0
- package/dist/components/gandalf/kit/miniatures/Miniatures.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/gandalf/kit/miniatures/index.d.ts +7 -0
- package/dist/components/gandalf/kit/miniatures/index.js +11 -0
- package/dist/components/gandalf/kit/report/AvatarReport.js +4 -0
- package/dist/components/gandalf/kit/report/AvatarReport.vue.d.ts +15 -0
- package/dist/components/gandalf/kit/report/AvatarReport.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/gandalf/kit/report/CircleReport.js +4 -0
- package/dist/components/gandalf/kit/report/CircleReport.vue.d.ts +15 -0
- package/dist/components/gandalf/kit/report/CircleReport.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/gandalf/kit/report/Icons.js +4 -0
- package/dist/components/gandalf/kit/report/Icons.vue.d.ts +15 -0
- package/dist/components/gandalf/kit/report/Icons.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/gandalf/kit/report/PickerItem.js +4 -0
- package/dist/components/gandalf/kit/report/PickerItem.vue.d.ts +56 -0
- package/dist/components/gandalf/kit/report/PickerItem.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/components/gandalf/kit/report/Pin.js +4 -0
- package/dist/components/gandalf/kit/report/Pin.vue.d.ts +31 -0
- package/dist/components/gandalf/kit/report/Pin.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/components/gandalf/kit/report/index.d.ts +24 -0
- package/dist/components/gandalf/kit/report/index.js +77 -0
- package/dist/components/gandalf/kit/search-field/index.d.ts +1 -1
- package/dist/components/gandalf/kit/sidebar/Sidebar.js +4 -0
- package/dist/components/gandalf/kit/sidebar/Sidebar.vue.d.ts +53 -0
- package/dist/components/gandalf/kit/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +140 -0
- package/dist/components/gandalf/kit/sidebar/index.d.ts +2 -0
- package/dist/components/gandalf/kit/sidebar/types.d.ts +25 -0
- package/dist/components/gandalf/kit/star/Star.vue.d.ts +1 -1
- package/dist/components/gandalf/kit/star/index.d.ts +1 -1
- package/dist/components/gandalf/kit/upload-box/UploadBox.vue.d.ts +3 -3
- package/dist/components/gandalf/kit/upload-box/index.d.ts +1 -1
- package/dist/components/gandalf/kit/upload-card/UploadCard.vue.d.ts +1 -1
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/button/Button.vue.d.ts +2 -2
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/chart/ChartLegendContent.vue.d.ts +1 -1
- package/dist/components/ui/combobox/ComboboxList.vue.d.ts +1 -1
- package/dist/components/ui/drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +2 -2
- package/dist/components/ui/input-group/index.d.ts +1 -1
- package/dist/components/ui/menubar/MenubarContent.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationFirst.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationItem.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationLast.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationNext.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationPrevious.vue.d.ts +1 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +52 -20
- package/dist/nuxt/components.json +1 -1
- package/dist/styles/tokens.css +23 -0
- package/package.json +1 -1
- package/dist/components/gandalf/base/sonner/GToastCard.js +0 -4
- 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>;
|
package/dist/components/gandalf/base/table/GTableHead.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -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: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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-
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
|
|
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 ?? "
|
|
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?: "
|
|
11
|
-
align?: "end" | "
|
|
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?: "
|
|
16
|
-
align?: "end" | "
|
|
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
|
-
|
|
13
|
-
|
|
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: "
|
|
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
|
-
|
|
40
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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: "
|
|
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
|
|
2
|
+
declare var __VLS_9: {
|
|
3
3
|
open: boolean;
|
|
4
4
|
};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
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
|
-
}>, {
|
|
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;
|
package/dist/components/gandalf/base/tooltip/GTooltip.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
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: {
|
|
8
|
-
|
|
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: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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(
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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, [
|
|
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<{}>, {
|
|
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;
|
package/dist/components/gandalf/kit/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,19 +1,47 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
|
-
import
|
|
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: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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", {
|
|
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" | "
|
|
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" | "
|
|
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;
|