@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
package/dist/components/gandalf/base/dialog/GDialogTitle.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import DialogTitle_default from "../../../ui/dialog/DialogTitle.js";
|
|
3
|
+
import { gandalfDialogTitleVariants } from "./index.js";
|
|
3
4
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
import { reactiveOmit } from "@vueuse/core";
|
|
5
6
|
// src/components/gandalf/base/dialog/GDialogTitle.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -20,7 +21,7 @@ var GDialogTitle_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
20
21
|
const props = __props;
|
|
21
22
|
const delegatedProps = reactiveOmit(props, "class");
|
|
22
23
|
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createBlock(unref(DialogTitle_default), mergeProps(unref(delegatedProps), { class: unref(cn)(props.class) }), {
|
|
24
|
+
return openBlock(), createBlock(unref(DialogTitle_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfDialogTitleVariants)(), props.class) }), {
|
|
24
25
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
26
|
_: 3
|
|
26
27
|
}, 16, ["class"]);
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
1
2
|
export { default as GDialog } from './GDialog.vue';
|
|
2
3
|
export { default as GDialogTrigger } from './GDialogTrigger.vue';
|
|
3
4
|
export { default as GDialogContent } from './GDialogContent.vue';
|
|
4
5
|
export { default as GDialogHeader } from './GDialogHeader.vue';
|
|
6
|
+
export { default as GDialogBody } from './GDialogBody.vue';
|
|
5
7
|
export { default as GDialogFooter } from './GDialogFooter.vue';
|
|
6
8
|
export { default as GDialogTitle } from './GDialogTitle.vue';
|
|
7
9
|
export { default as GDialogDescription } from './GDialogDescription.vue';
|
|
8
10
|
export { default as GDialogClose } from './GDialogClose.vue';
|
|
9
11
|
export { default as GDialogScrollContent } from './GDialogScrollContent.vue';
|
|
10
12
|
export { default as GDialogOverlay } from './GDialogOverlay.vue';
|
|
13
|
+
export declare const gandalfDialogContentVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
14
|
+
export declare const gandalfDialogHeaderVariants: (props?: ({
|
|
15
|
+
type?: "center" | "left" | null | undefined;
|
|
16
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
|
+
export type GandalfDialogHeaderVariants = VariantProps<typeof gandalfDialogHeaderVariants>;
|
|
18
|
+
export type GandalfDialogHeaderType = NonNullable<GandalfDialogHeaderVariants['type']>;
|
|
19
|
+
export declare const gandalfDialogHeaderIconVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
20
|
+
export declare const gandalfDialogTitleVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
21
|
+
export declare const gandalfDialogDescriptionVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
22
|
+
export declare const gandalfDialogBodyVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
23
|
+
export declare const gandalfDialogFooterVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import GDialog_default from "./GDialog.js";
|
|
2
|
+
import GDialogTrigger_default from "./GDialogTrigger.js";
|
|
3
|
+
import GDialogContent_default from "./GDialogContent.js";
|
|
4
|
+
import GDialogClose_default from "./GDialogClose.js";
|
|
5
|
+
import GDialogHeader_default from "./GDialogHeader.js";
|
|
6
|
+
import GDialogBody_default from "./GDialogBody.js";
|
|
7
|
+
import GDialogFooter_default from "./GDialogFooter.js";
|
|
8
|
+
import GDialogTitle_default from "./GDialogTitle.js";
|
|
9
|
+
import GDialogDescription_default from "./GDialogDescription.js";
|
|
10
|
+
import GDialogScrollContent_default from "./GDialogScrollContent.js";
|
|
11
|
+
import GDialogOverlay_default from "./GDialogOverlay.js";
|
|
12
|
+
import { cva } from "class-variance-authority";
|
|
13
|
+
// src/components/gandalf/base/dialog/index.ts
|
|
14
|
+
var gandalfDialogContentVariants = cva("bg-card text-base-foreground flex flex-col gap-0 overflow-clip rounded-3xl border-0 p-0 shadow-lg sm:max-w-[416px]");
|
|
15
|
+
var gandalfDialogHeaderVariants = cva("flex h-18 shrink-0 flex-row items-center gap-3 py-0", {
|
|
16
|
+
variants: { type: {
|
|
17
|
+
left: "pr-4 pl-6 text-left sm:text-left",
|
|
18
|
+
center: "justify-center px-6 text-center sm:text-center"
|
|
19
|
+
} },
|
|
20
|
+
defaultVariants: { type: "left" }
|
|
21
|
+
});
|
|
22
|
+
var gandalfDialogHeaderIconVariants = cva("text-base-foreground flex shrink-0 [&_svg]:size-6 [&_svg]:shrink-0");
|
|
23
|
+
var gandalfDialogTitleVariants = cva("text-base-foreground min-w-0 flex-1 text-2xl leading-[normal] font-semibold");
|
|
24
|
+
var gandalfDialogDescriptionVariants = cva("text-base-foreground text-base leading-normal font-normal");
|
|
25
|
+
var gandalfDialogBodyVariants = cva("flex flex-col gap-5 px-6 py-3");
|
|
26
|
+
var gandalfDialogFooterVariants = cva("flex flex-row items-center justify-end gap-2 p-6 sm:flex-row sm:justify-end");
|
|
27
|
+
export { GDialog_default as GDialog, GDialogBody_default as GDialogBody, GDialogClose_default as GDialogClose, GDialogContent_default as GDialogContent, GDialogDescription_default as GDialogDescription, GDialogFooter_default as GDialogFooter, GDialogHeader_default as GDialogHeader, GDialogOverlay_default as GDialogOverlay, GDialogScrollContent_default as GDialogScrollContent, GDialogTitle_default as GDialogTitle, GDialogTrigger_default as GDialogTrigger, gandalfDialogBodyVariants, gandalfDialogContentVariants, gandalfDialogDescriptionVariants, gandalfDialogFooterVariants, gandalfDialogHeaderIconVariants, gandalfDialogHeaderVariants, gandalfDialogTitleVariants };
|
package/dist/components/gandalf/base/dropdown/GDropdown.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { gandalfMenuContentVariants, gandalfMenuItemVariants, gandalfMenuLabelVariants, gandalfMenuSeparatorVariants } from "../menu/index.js";
|
|
2
1
|
import DropdownMenu_default from "../../../ui/dropdown-menu/DropdownMenu.js";
|
|
3
2
|
import DropdownMenuContent_default from "../../../ui/dropdown-menu/DropdownMenuContent.js";
|
|
4
3
|
import DropdownMenuItem_default from "../../../ui/dropdown-menu/DropdownMenuItem.js";
|
|
5
4
|
import DropdownMenuLabel_default from "../../../ui/dropdown-menu/DropdownMenuLabel.js";
|
|
6
5
|
import DropdownMenuSeparator_default from "../../../ui/dropdown-menu/DropdownMenuSeparator.js";
|
|
7
6
|
import DropdownMenuTrigger_default from "../../../ui/dropdown-menu/DropdownMenuTrigger.js";
|
|
7
|
+
import { gandalfMenuContentVariants, gandalfMenuItemVariants, gandalfMenuLabelVariants, gandalfMenuSeparatorVariants } from "../menu/index.js";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
9
9
|
// src/components/gandalf/base/dropdown/GDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var GDropdown_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -6,10 +6,22 @@ type __VLS_Props = {
|
|
|
6
6
|
modelValue?: string | number;
|
|
7
7
|
size?: GandalfInputSize;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
/** Icon before the text ("Leading icon" in Figma). */
|
|
11
|
+
leading?: () => unknown;
|
|
12
|
+
/** Icon after the text ("Trailing icon" in Figma). */
|
|
13
|
+
trailing?: () => unknown;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
16
|
"update:modelValue": (payload: string | number) => any;
|
|
11
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
18
|
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
13
19
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import Input_default from "../../../ui/input/Input.js";
|
|
3
|
-
import { gandalfInputVariants } from "./index.js";
|
|
4
|
-
import { createBlock, defineComponent, mergeProps, openBlock, unref } from "vue";
|
|
3
|
+
import { gandalfFieldWithinClass, gandalfInputFieldInputClass, gandalfInputFieldVariants, gandalfInputVariants } from "./index.js";
|
|
4
|
+
import { createBlock, createElementBlock, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
5
5
|
import { reactiveOmit } from "@vueuse/core";
|
|
6
6
|
// src/components/gandalf/base/input/GInput.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var GInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
8
9
|
__name: "GInput",
|
|
9
10
|
props: {
|
|
10
11
|
class: { type: [
|
|
@@ -23,11 +24,28 @@ var GInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
23
24
|
const props = __props;
|
|
24
25
|
const delegatedProps = reactiveOmit(props, "class", "size");
|
|
25
26
|
return (_ctx, _cache) => {
|
|
26
|
-
return
|
|
27
|
+
return _ctx.$slots.leading || _ctx.$slots.trailing ? (openBlock(), createElementBlock("div", {
|
|
28
|
+
key: 0,
|
|
29
|
+
"data-slot": "input-field",
|
|
30
|
+
class: normalizeClass(unref(cn)(unref(gandalfFieldWithinClass), unref(gandalfInputFieldVariants)({ size: __props.size }), props.class))
|
|
31
|
+
}, [
|
|
32
|
+
renderSlot(_ctx.$slots, "leading"),
|
|
33
|
+
createVNode(unref(Input_default), mergeProps({
|
|
34
|
+
..._ctx.$attrs,
|
|
35
|
+
...unref(delegatedProps)
|
|
36
|
+
}, {
|
|
37
|
+
class: unref(gandalfInputFieldInputClass),
|
|
38
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
39
|
+
}), null, 16, ["class"]),
|
|
40
|
+
renderSlot(_ctx.$slots, "trailing")
|
|
41
|
+
], 2)) : (openBlock(), createBlock(unref(Input_default), mergeProps({ key: 1 }, {
|
|
42
|
+
..._ctx.$attrs,
|
|
43
|
+
...unref(delegatedProps)
|
|
44
|
+
}, {
|
|
27
45
|
"data-size": __props.size ?? "md",
|
|
28
46
|
class: unref(cn)(unref(gandalfInputVariants)({ size: __props.size }), props.class),
|
|
29
|
-
"onUpdate:modelValue": _cache[
|
|
30
|
-
}), null, 16, ["data-size", "class"]);
|
|
47
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
48
|
+
}), null, 16, ["data-size", "class"]));
|
|
31
49
|
};
|
|
32
50
|
}
|
|
33
51
|
});
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export { default as GInput } from './GInput.vue';
|
|
3
3
|
export declare const gandalfFieldVariants: (props?: ({
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "md" | "sm" | "xs" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare const gandalfInputVariants: (props?: GandalfFieldVariants) => string;
|
|
7
7
|
/** Field look for a wrapper around an <input> (icons inside the field): states follow the input. */
|
|
8
8
|
export declare const gandalfFieldWithinClass = "rounded-lg border border-bni-border-loud bg-bni-background text-base-foreground hover:bg-bni-input focus-within:border-base-foreground-quiet focus-within:bg-bni-input focus-within:ring-1 focus-within:ring-base-foreground-quiet focus-within:ring-inset has-[input:disabled]:border-muted-foreground-quiet has-[input:disabled]:bg-muted has-[input:disabled]:text-muted-foreground-quiet";
|
|
9
|
+
export declare const gandalfInputFieldVariants: (props?: ({
|
|
10
|
+
size?: "md" | "sm" | "xs" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
/** The <input> inside gandalfInputFieldVariants: no field look of its own (the wrapper has it). */
|
|
13
|
+
export declare const gandalfInputFieldInputClass = "h-full min-w-0 flex-1 rounded-none border-0 bg-transparent p-0 text-[length:inherit] shadow-none md:text-[length:inherit] dark:bg-transparent focus-visible:ring-0 aria-invalid:ring-0 disabled:opacity-100 placeholder:text-base-foreground-extra-quiet disabled:placeholder:text-muted-foreground-quiet";
|
|
9
14
|
/** Layout for a <button> that opens a list and looks like a field. */
|
|
10
15
|
export declare const gandalfFieldTriggerClass = "flex w-full cursor-pointer items-center justify-between gap-2 text-left whitespace-nowrap outline-none disabled:pointer-events-none disabled:cursor-not-allowed";
|
|
11
16
|
/** Placeholder text inside a field trigger. */
|
|
@@ -19,8 +19,18 @@ var gandalfFieldVariants = cva([
|
|
|
19
19
|
var gandalfInputVariants = (props) => [gandalfFieldVariants(props), "placeholder:text-base-foreground-extra-quiet disabled:placeholder:text-muted-foreground-quiet"].join(" ");
|
|
20
20
|
/** Field look for a wrapper around an <input> (icons inside the field): states follow the input. */
|
|
21
21
|
var gandalfFieldWithinClass = "rounded-lg border border-bni-border-loud bg-bni-background text-base-foreground hover:bg-bni-input focus-within:border-base-foreground-quiet focus-within:bg-bni-input focus-within:ring-1 focus-within:ring-base-foreground-quiet focus-within:ring-inset has-[input:disabled]:border-muted-foreground-quiet has-[input:disabled]:bg-muted has-[input:disabled]:text-muted-foreground-quiet";
|
|
22
|
+
var gandalfInputFieldVariants = cva(["flex w-full items-center [&_svg]:shrink-0", "has-[input[aria-invalid=true]]:border-destructive has-[input[aria-invalid=true]:focus-visible]:border-destructive has-[input[aria-invalid=true]:focus-visible]:ring-destructive"], {
|
|
23
|
+
variants: { size: {
|
|
24
|
+
xs: "h-6 gap-1.5 px-2 text-xs [&_svg]:size-3",
|
|
25
|
+
sm: "h-8 gap-1.5 px-2.5 text-sm [&_svg]:size-3.5",
|
|
26
|
+
md: "h-10 gap-2 px-3 text-base [&_svg]:size-4"
|
|
27
|
+
} },
|
|
28
|
+
defaultVariants: { size: "md" }
|
|
29
|
+
});
|
|
30
|
+
/** The <input> inside gandalfInputFieldVariants: no field look of its own (the wrapper has it). */
|
|
31
|
+
var gandalfInputFieldInputClass = "h-full min-w-0 flex-1 rounded-none border-0 bg-transparent p-0 text-[length:inherit] shadow-none md:text-[length:inherit] dark:bg-transparent focus-visible:ring-0 aria-invalid:ring-0 disabled:opacity-100 placeholder:text-base-foreground-extra-quiet disabled:placeholder:text-muted-foreground-quiet";
|
|
22
32
|
/** Layout for a <button> that opens a list and looks like a field. */
|
|
23
33
|
var gandalfFieldTriggerClass = "flex w-full cursor-pointer items-center justify-between gap-2 text-left whitespace-nowrap outline-none disabled:pointer-events-none disabled:cursor-not-allowed";
|
|
24
34
|
/** Placeholder text inside a field trigger. */
|
|
25
35
|
var gandalfFieldPlaceholderClass = "text-base-foreground-extra-quiet";
|
|
26
|
-
export { GInput_default as GInput, gandalfFieldPlaceholderClass, gandalfFieldTriggerClass, gandalfFieldVariants, gandalfFieldWithinClass, gandalfInputVariants };
|
|
36
|
+
export { GInput_default as GInput, gandalfFieldPlaceholderClass, gandalfFieldTriggerClass, gandalfFieldVariants, gandalfFieldWithinClass, gandalfInputFieldInputClass, gandalfInputFieldVariants, gandalfInputVariants };
|
|
@@ -11,9 +11,9 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
default?: (props: typeof __VLS_7) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
-
size: "sm" | "
|
|
14
|
+
size: "sm" | "xs" | "icon-sm" | "icon-xs" | null;
|
|
15
15
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
16
|
-
variant: "default" | "link" | "
|
|
16
|
+
variant: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null;
|
|
17
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DropdownMenuRootProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_7: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_7) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<DropdownMenuRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:open": (payload: boolean) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<DropdownMenuRootProps> & Readonly<{
|
|
11
|
+
"onUpdate:open"?: ((payload: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import DropdownMenu_default from "../../../ui/dropdown-menu/DropdownMenu.js";
|
|
2
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
// src/components/gandalf/base/menu/GMenu.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var GMenu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "GMenu",
|
|
7
|
+
props: {
|
|
8
|
+
defaultOpen: { type: Boolean },
|
|
9
|
+
open: { type: Boolean },
|
|
10
|
+
dir: {},
|
|
11
|
+
modal: { type: Boolean }
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:open"],
|
|
14
|
+
setup(__props, { emit: __emit }) {
|
|
15
|
+
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(DropdownMenu_default), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
18
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 16);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export { GMenu_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GMenuContent_vue_vue_type_script_setup_true_lang_default from "./GMenuContent.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/menu/GMenuContent.vue
|
|
3
|
+
var GMenuContent_default = GMenuContent_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GMenuContent_default as default };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DropdownMenuContentProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = DropdownMenuContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_7: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_7) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: import('reka-ui').PointerDownOutsideEvent) => any;
|
|
13
|
+
focusOutside: (event: import('reka-ui').FocusOutsideEvent) => any;
|
|
14
|
+
interactOutside: (event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any;
|
|
15
|
+
openAutoFocus: (event: Event) => any;
|
|
16
|
+
closeAutoFocus: (event: Event) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
|
+
onPointerDownOutside?: ((event: import('reka-ui').PointerDownOutsideEvent) => any) | undefined;
|
|
20
|
+
onFocusOutside?: ((event: import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
21
|
+
onInteractOutside?: ((event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
22
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { cn } from "../../../../lib/utils.js";
|
|
2
|
+
import DropdownMenuContent_default from "../../../ui/dropdown-menu/DropdownMenuContent.js";
|
|
3
|
+
import { gandalfMenuContentVariants } from "./index.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
6
|
+
import { useForwardPropsEmits } from "reka-ui";
|
|
7
|
+
// src/components/gandalf/base/menu/GMenuContent.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var GMenuContent_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "GMenuContent",
|
|
10
|
+
props: {
|
|
11
|
+
forceMount: { type: Boolean },
|
|
12
|
+
loop: { type: Boolean },
|
|
13
|
+
memoDependencies: {},
|
|
14
|
+
side: {},
|
|
15
|
+
sideOffset: {},
|
|
16
|
+
sideFlip: { type: Boolean },
|
|
17
|
+
align: {},
|
|
18
|
+
alignOffset: {},
|
|
19
|
+
alignFlip: { type: Boolean },
|
|
20
|
+
avoidCollisions: { type: Boolean },
|
|
21
|
+
collisionBoundary: {},
|
|
22
|
+
collisionPadding: {},
|
|
23
|
+
arrowPadding: {},
|
|
24
|
+
hideShiftedArrow: { type: Boolean },
|
|
25
|
+
sticky: {},
|
|
26
|
+
hideWhenDetached: { type: Boolean },
|
|
27
|
+
positionStrategy: {},
|
|
28
|
+
updatePositionStrategy: {},
|
|
29
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
30
|
+
prioritizePosition: { type: Boolean },
|
|
31
|
+
reference: {},
|
|
32
|
+
asChild: { type: Boolean },
|
|
33
|
+
as: {},
|
|
34
|
+
class: {
|
|
35
|
+
type: [
|
|
36
|
+
Boolean,
|
|
37
|
+
null,
|
|
38
|
+
String,
|
|
39
|
+
Object,
|
|
40
|
+
Array
|
|
41
|
+
],
|
|
42
|
+
default: void 0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: [
|
|
46
|
+
"escapeKeyDown",
|
|
47
|
+
"pointerDownOutside",
|
|
48
|
+
"focusOutside",
|
|
49
|
+
"interactOutside",
|
|
50
|
+
"openAutoFocus",
|
|
51
|
+
"closeAutoFocus"
|
|
52
|
+
],
|
|
53
|
+
setup(__props, { emit: __emit }) {
|
|
54
|
+
const props = __props;
|
|
55
|
+
const emits = __emit;
|
|
56
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "class"), emits);
|
|
57
|
+
return (_ctx, _cache) => {
|
|
58
|
+
return openBlock(), createBlock(unref(DropdownMenuContent_default), mergeProps(unref(forwarded), { class: unref(cn)(unref(gandalfMenuContentVariants)(), "min-w-50 p-3", props.class) }), {
|
|
59
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["class"]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export { GMenuContent_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GMenuItem_vue_vue_type_script_setup_true_lang_default from "./GMenuItem.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/menu/GMenuItem.vue
|
|
3
|
+
var GMenuItem_default = GMenuItem_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GMenuItem_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DropdownMenuItemProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { GandalfMenuItemVariant } from './index';
|
|
4
|
+
type __VLS_Props = DropdownMenuItemProps & {
|
|
5
|
+
variant?: GandalfMenuItemVariant;
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_7: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_7) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
select: (event: Event) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
18
|
+
variant: GandalfMenuItemVariant;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { cn } from "../../../../lib/utils.js";
|
|
2
|
+
import DropdownMenuItem_default from "../../../ui/dropdown-menu/DropdownMenuItem.js";
|
|
3
|
+
import { gandalfMenuItemVariants } from "./index.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
6
|
+
import { useForwardPropsEmits } from "reka-ui";
|
|
7
|
+
// src/components/gandalf/base/menu/GMenuItem.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var GMenuItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "GMenuItem",
|
|
10
|
+
props: {
|
|
11
|
+
disabled: { type: Boolean },
|
|
12
|
+
textValue: {},
|
|
13
|
+
asChild: { type: Boolean },
|
|
14
|
+
as: {},
|
|
15
|
+
variant: { default: "default" },
|
|
16
|
+
class: {
|
|
17
|
+
type: [
|
|
18
|
+
Boolean,
|
|
19
|
+
null,
|
|
20
|
+
String,
|
|
21
|
+
Object,
|
|
22
|
+
Array
|
|
23
|
+
],
|
|
24
|
+
default: void 0
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
emits: ["select"],
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const emits = __emit;
|
|
31
|
+
const forwarded = useForwardPropsEmits(reactiveOmit(props, "variant", "class"), emits);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(DropdownMenuItem_default), mergeProps(unref(forwarded), {
|
|
34
|
+
"data-menu-variant": __props.variant,
|
|
35
|
+
class: unref(cn)(unref(gandalfMenuItemVariants)({ variant: __props.variant }), props.class)
|
|
36
|
+
}), {
|
|
37
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
38
|
+
_: 3
|
|
39
|
+
}, 16, ["data-menu-variant", "class"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export { GMenuItem_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GMenuLabel_vue_vue_type_script_setup_true_lang_default from "./GMenuLabel.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/menu/GMenuLabel.vue
|
|
3
|
+
var GMenuLabel_default = GMenuLabel_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GMenuLabel_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DropdownMenuLabelProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = DropdownMenuLabelProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_7: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_7) => any;
|
|
9
|
+
};
|
|
10
|
+
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>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cn } from "../../../../lib/utils.js";
|
|
2
|
+
import DropdownMenuLabel_default from "../../../ui/dropdown-menu/DropdownMenuLabel.js";
|
|
3
|
+
import { gandalfMenuLabelVariants } from "./index.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
6
|
+
// src/components/gandalf/base/menu/GMenuLabel.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var GMenuLabel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "GMenuLabel",
|
|
9
|
+
props: {
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {},
|
|
12
|
+
class: { type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
] }
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(DropdownMenuLabel_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfMenuLabelVariants)(), props.class) }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export { GMenuLabel_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GMenuSeparator_vue_vue_type_script_setup_true_lang_default from "./GMenuSeparator.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/menu/GMenuSeparator.vue
|
|
3
|
+
var GMenuSeparator_default = GMenuSeparator_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GMenuSeparator_default as default };
|
package/dist/components/gandalf/base/{sonner/GToastCard.vue.d.ts → menu/GMenuSeparator.vue.d.ts}
RENAMED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description?: string;
|
|
6
|
-
color: GandalfToastColor;
|
|
1
|
+
import { DropdownMenuSeparatorProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = DropdownMenuSeparatorProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
7
5
|
};
|
|
8
6
|
declare const __VLS_export: 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>;
|
|
9
7
|
declare const _default: typeof __VLS_export;
|
package/dist/components/gandalf/base/menu/GMenuSeparator.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cn } from "../../../../lib/utils.js";
|
|
2
|
+
import DropdownMenuSeparator_default from "../../../ui/dropdown-menu/DropdownMenuSeparator.js";
|
|
3
|
+
import { gandalfMenuSeparatorVariants } from "./index.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, unref } from "vue";
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
6
|
+
// src/components/gandalf/base/menu/GMenuSeparator.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var GMenuSeparator_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "GMenuSeparator",
|
|
9
|
+
props: {
|
|
10
|
+
asChild: { type: Boolean },
|
|
11
|
+
as: {},
|
|
12
|
+
class: { type: [
|
|
13
|
+
Boolean,
|
|
14
|
+
null,
|
|
15
|
+
String,
|
|
16
|
+
Object,
|
|
17
|
+
Array
|
|
18
|
+
] }
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(DropdownMenuSeparator_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfMenuSeparatorVariants)(), "mt-[17.5px] mb-[21.5px]", props.class) }), null, 16, ["class"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export { GMenuSeparator_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GMenuTrigger_vue_vue_type_script_setup_true_lang_default from "./GMenuTrigger.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/menu/GMenuTrigger.vue
|
|
3
|
+
var GMenuTrigger_default = GMenuTrigger_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GMenuTrigger_default as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DropdownMenuTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<DropdownMenuTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DropdownMenuTriggerProps> & Readonly<{}>, {
|
|
7
|
+
asChild: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import DropdownMenuTrigger_default from "../../../ui/dropdown-menu/DropdownMenuTrigger.js";
|
|
2
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
// src/components/gandalf/base/menu/GMenuTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var GMenuTrigger_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
|
+
__name: "GMenuTrigger",
|
|
6
|
+
props: {
|
|
7
|
+
disabled: { type: Boolean },
|
|
8
|
+
asChild: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: true
|
|
11
|
+
},
|
|
12
|
+
as: {}
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createBlock(unref(DropdownMenuTrigger_default), normalizeProps(guardReactiveProps(props)), {
|
|
18
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 16);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export { GMenuTrigger_vue_vue_type_script_setup_true_lang_default as default };
|