@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/breadcrumb/GBreadcrumb.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import Breadcrumb_default from "../../../ui/breadcrumb/Breadcrumb.js";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbSizeKey } from "./index.js";
|
|
4
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, provide, renderSlot, toRef, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/breadcrumb/GBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GBreadcrumb_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
7
|
__name: "GBreadcrumb",
|
|
7
|
-
props: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
props: {
|
|
9
|
+
size: { default: "md" },
|
|
10
|
+
class: {
|
|
11
|
+
type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
],
|
|
18
|
+
default: void 0
|
|
19
|
+
}
|
|
20
|
+
},
|
|
14
21
|
setup(__props) {
|
|
15
22
|
const props = __props;
|
|
23
|
+
provide(breadcrumbSizeKey, toRef(() => props.size));
|
|
16
24
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(Breadcrumb_default), {
|
|
25
|
+
return openBlock(), createBlock(unref(Breadcrumb_default), {
|
|
26
|
+
"data-size": __props.size,
|
|
27
|
+
class: normalizeClass(unref(cn)(props.class))
|
|
28
|
+
}, {
|
|
18
29
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
30
|
_: 3
|
|
20
|
-
}, 8, ["class"]);
|
|
31
|
+
}, 8, ["data-size", "class"]);
|
|
21
32
|
};
|
|
22
33
|
}
|
|
23
34
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import BreadcrumbEllipsis_default from "../../../ui/breadcrumb/BreadcrumbEllipsis.js";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbSizeKey, gandalfBreadcrumbEllipsisVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, inject, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/breadcrumb/GBreadcrumbEllipsis.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GBreadcrumbEllipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
7
|
__name: "GBreadcrumbEllipsis",
|
|
@@ -13,8 +14,9 @@ var GBreadcrumbEllipsis_vue_vue_type_script_setup_true_lang_default = /*@__PURE_
|
|
|
13
14
|
] } },
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
17
|
+
const size = inject(breadcrumbSizeKey, computed(() => "md"));
|
|
16
18
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(BreadcrumbEllipsis_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
19
|
+
return openBlock(), createBlock(unref(BreadcrumbEllipsis_default), { class: normalizeClass(unref(cn)(unref(gandalfBreadcrumbEllipsisVariants)({ size: unref(size) }), props.class)) }, {
|
|
18
20
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
21
|
_: 3
|
|
20
22
|
}, 8, ["class"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import BreadcrumbItem_default from "../../../ui/breadcrumb/BreadcrumbItem.js";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbSizeKey, gandalfBreadcrumbItemVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, inject, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/breadcrumb/GBreadcrumbItem.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GBreadcrumbItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
7
|
__name: "GBreadcrumbItem",
|
|
@@ -13,8 +14,9 @@ var GBreadcrumbItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
13
14
|
] } },
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
17
|
+
const size = inject(breadcrumbSizeKey, computed(() => "md"));
|
|
16
18
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(BreadcrumbItem_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
19
|
+
return openBlock(), createBlock(unref(BreadcrumbItem_default), { class: normalizeClass(unref(cn)(unref(gandalfBreadcrumbItemVariants)({ size: unref(size) }), props.class)) }, {
|
|
18
20
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
21
|
_: 3
|
|
20
22
|
}, 8, ["class"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import BreadcrumbLink_default from "../../../ui/breadcrumb/BreadcrumbLink.js";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbSizeKey, gandalfBreadcrumbLinkVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, inject, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
import { reactiveOmit } from "@vueuse/core";
|
|
5
6
|
// src/components/gandalf/base/breadcrumb/GBreadcrumbLink.vue?vue&type=script&setup=true&lang.ts
|
|
6
7
|
var GBreadcrumbLink_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -22,8 +23,9 @@ var GBreadcrumbLink_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
22
23
|
setup(__props) {
|
|
23
24
|
const props = __props;
|
|
24
25
|
const delegatedProps = reactiveOmit(props, "class");
|
|
26
|
+
const size = inject(breadcrumbSizeKey, computed(() => "md"));
|
|
25
27
|
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(), createBlock(unref(BreadcrumbLink_default), mergeProps(unref(delegatedProps), { class: unref(cn)(props.class) }), {
|
|
28
|
+
return openBlock(), createBlock(unref(BreadcrumbLink_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfBreadcrumbLinkVariants)({ size: unref(size) }), props.class) }), {
|
|
27
29
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
30
|
_: 3
|
|
29
31
|
}, 16, ["class"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import BreadcrumbList_default from "../../../ui/breadcrumb/BreadcrumbList.js";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbSizeKey, gandalfBreadcrumbListVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, inject, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/breadcrumb/GBreadcrumbList.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GBreadcrumbList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
7
|
__name: "GBreadcrumbList",
|
|
@@ -13,8 +14,9 @@ var GBreadcrumbList_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
13
14
|
] } },
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
17
|
+
const size = inject(breadcrumbSizeKey, computed(() => "md"));
|
|
16
18
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(BreadcrumbList_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
19
|
+
return openBlock(), createBlock(unref(BreadcrumbList_default), { class: normalizeClass(unref(cn)(unref(gandalfBreadcrumbListVariants)({ size: unref(size) }), props.class)) }, {
|
|
18
20
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
21
|
_: 3
|
|
20
22
|
}, 8, ["class"]);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import BreadcrumbPage_default from "../../../ui/breadcrumb/BreadcrumbPage.js";
|
|
3
|
+
import { gandalfBreadcrumbPageVariants } from "./index.js";
|
|
3
4
|
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/breadcrumb/GBreadcrumbPage.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GBreadcrumbPage_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -14,7 +15,7 @@ var GBreadcrumbPage_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
|
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
16
17
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(BreadcrumbPage_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
18
|
+
return openBlock(), createBlock(unref(BreadcrumbPage_default), { class: normalizeClass(unref(cn)(unref(gandalfBreadcrumbPageVariants)(), props.class)) }, {
|
|
18
19
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
20
|
_: 3
|
|
20
21
|
}, 8, ["class"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import BreadcrumbSeparator_default from "../../../ui/breadcrumb/BreadcrumbSeparator.js";
|
|
3
|
-
import {
|
|
3
|
+
import { breadcrumbSizeKey, gandalfBreadcrumbSeparatorVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, inject, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/breadcrumb/GBreadcrumbSeparator.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GBreadcrumbSeparator_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
7
|
__name: "GBreadcrumbSeparator",
|
|
@@ -13,8 +14,9 @@ var GBreadcrumbSeparator_vue_vue_type_script_setup_true_lang_default = /*@__PURE
|
|
|
13
14
|
] } },
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
17
|
+
const size = inject(breadcrumbSizeKey, computed(() => "md"));
|
|
16
18
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(BreadcrumbSeparator_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
19
|
+
return openBlock(), createBlock(unref(BreadcrumbSeparator_default), { class: normalizeClass(unref(cn)(unref(gandalfBreadcrumbSeparatorVariants)({ size: unref(size) }), props.class)) }, {
|
|
18
20
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
21
|
_: 3
|
|
20
22
|
}, 8, ["class"]);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { InjectionKey, Ref } from 'vue';
|
|
1
3
|
export { default as GBreadcrumb } from './GBreadcrumb.vue';
|
|
2
4
|
export { default as GBreadcrumbEllipsis } from './GBreadcrumbEllipsis.vue';
|
|
3
5
|
export { default as GBreadcrumbItem } from './GBreadcrumbItem.vue';
|
|
@@ -5,3 +7,22 @@ export { default as GBreadcrumbLink } from './GBreadcrumbLink.vue';
|
|
|
5
7
|
export { default as GBreadcrumbList } from './GBreadcrumbList.vue';
|
|
6
8
|
export { default as GBreadcrumbPage } from './GBreadcrumbPage.vue';
|
|
7
9
|
export { default as GBreadcrumbSeparator } from './GBreadcrumbSeparator.vue';
|
|
10
|
+
export declare const breadcrumbSizeKey: InjectionKey<Ref<GandalfBreadcrumbSize>>;
|
|
11
|
+
export declare const gandalfBreadcrumbListVariants: (props?: ({
|
|
12
|
+
size?: "md" | "xs" | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
+
export declare const gandalfBreadcrumbItemVariants: (props?: ({
|
|
15
|
+
size?: "md" | "xs" | null | undefined;
|
|
16
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
|
+
export declare const gandalfBreadcrumbLinkVariants: (props?: ({
|
|
18
|
+
size?: "md" | "xs" | null | undefined;
|
|
19
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
20
|
+
export declare const gandalfBreadcrumbPageVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
21
|
+
export declare const gandalfBreadcrumbSeparatorVariants: (props?: ({
|
|
22
|
+
size?: "md" | "xs" | null | undefined;
|
|
23
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
24
|
+
export declare const gandalfBreadcrumbEllipsisVariants: (props?: ({
|
|
25
|
+
size?: "md" | "xs" | null | undefined;
|
|
26
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
27
|
+
export type GandalfBreadcrumbVariants = VariantProps<typeof gandalfBreadcrumbListVariants>;
|
|
28
|
+
export type GandalfBreadcrumbSize = NonNullable<GandalfBreadcrumbVariants['size']>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import GBreadcrumb_default from "./GBreadcrumb.js";
|
|
2
|
+
import GBreadcrumbEllipsis_default from "./GBreadcrumbEllipsis.js";
|
|
3
|
+
import GBreadcrumbItem_default from "./GBreadcrumbItem.js";
|
|
4
|
+
import GBreadcrumbLink_default from "./GBreadcrumbLink.js";
|
|
5
|
+
import GBreadcrumbList_default from "./GBreadcrumbList.js";
|
|
6
|
+
import GBreadcrumbPage_default from "./GBreadcrumbPage.js";
|
|
7
|
+
import GBreadcrumbSeparator_default from "./GBreadcrumbSeparator.js";
|
|
8
|
+
import { cva } from "class-variance-authority";
|
|
9
|
+
// src/components/gandalf/base/breadcrumb/index.ts
|
|
10
|
+
var breadcrumbSizeKey = Symbol("breadcrumb-size");
|
|
11
|
+
var gandalfBreadcrumbListVariants = cva("text-base-foreground-extra-quiet gap-0 break-words sm:gap-0", {
|
|
12
|
+
variants: { size: {
|
|
13
|
+
md: "text-sm",
|
|
14
|
+
xs: "text-xs"
|
|
15
|
+
} },
|
|
16
|
+
defaultVariants: { size: "md" }
|
|
17
|
+
});
|
|
18
|
+
var gandalfBreadcrumbItemVariants = cva("gap-0", {
|
|
19
|
+
variants: { size: {
|
|
20
|
+
md: "h-6 px-1",
|
|
21
|
+
xs: "pl-1"
|
|
22
|
+
} },
|
|
23
|
+
defaultVariants: { size: "md" }
|
|
24
|
+
});
|
|
25
|
+
var gandalfBreadcrumbLinkVariants = cva("hover:text-base-foreground focus-visible:ring-ring rounded-sm outline-none focus-visible:ring-2", {
|
|
26
|
+
variants: { size: {
|
|
27
|
+
md: "leading-6",
|
|
28
|
+
xs: "leading-[normal]"
|
|
29
|
+
} },
|
|
30
|
+
defaultVariants: { size: "md" }
|
|
31
|
+
});
|
|
32
|
+
var gandalfBreadcrumbPageVariants = cva("text-base-foreground leading-[normal] font-semibold");
|
|
33
|
+
var gandalfBreadcrumbSeparatorVariants = cva("flex items-center [[data-slot=breadcrumb-item]:has([data-slot=breadcrumb-link]:hover)+&]:text-base-foreground", {
|
|
34
|
+
variants: { size: {
|
|
35
|
+
md: "h-6 px-1 [&>svg]:size-3.5",
|
|
36
|
+
xs: "[&>svg]:size-3"
|
|
37
|
+
} },
|
|
38
|
+
defaultVariants: { size: "md" }
|
|
39
|
+
});
|
|
40
|
+
var gandalfBreadcrumbEllipsisVariants = cva("", {
|
|
41
|
+
variants: { size: {
|
|
42
|
+
md: "size-6 [&>svg]:size-3.5",
|
|
43
|
+
xs: "size-4 [&>svg]:size-3"
|
|
44
|
+
} },
|
|
45
|
+
defaultVariants: { size: "md" }
|
|
46
|
+
});
|
|
47
|
+
export { GBreadcrumb_default as GBreadcrumb, GBreadcrumbEllipsis_default as GBreadcrumbEllipsis, GBreadcrumbItem_default as GBreadcrumbItem, GBreadcrumbLink_default as GBreadcrumbLink, GBreadcrumbList_default as GBreadcrumbList, GBreadcrumbPage_default as GBreadcrumbPage, GBreadcrumbSeparator_default as GBreadcrumbSeparator, breadcrumbSizeKey, gandalfBreadcrumbEllipsisVariants, gandalfBreadcrumbItemVariants, gandalfBreadcrumbLinkVariants, gandalfBreadcrumbListVariants, gandalfBreadcrumbPageVariants, gandalfBreadcrumbSeparatorVariants };
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
export { default as GButton } from './GButton.vue';
|
|
3
3
|
export declare const gandalfButtonVariants: (props?: ({
|
|
4
4
|
variant?: "tonal-primary" | "tonal-action" | "tonal-destructive" | "outline-primary" | "outline-destructive" | "ghost-primary" | "ghost-action" | "ghost-danger" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "sm" | "xs" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type GandalfButtonVariants = VariantProps<typeof gandalfButtonVariants>;
|
|
8
8
|
export type GandalfButtonVariant = NonNullable<GandalfButtonVariants['variant']>;
|
|
@@ -9,7 +9,7 @@ import GDetailsPanelBody_default from "./GDetailsPanelBody.js";
|
|
|
9
9
|
import GDetailsPanelFooter_default from "./GDetailsPanelFooter.js";
|
|
10
10
|
import { cva } from "class-variance-authority";
|
|
11
11
|
// src/components/gandalf/base/details-panel/index.ts
|
|
12
|
-
var gandalfDetailsPanelContentVariants = cva("bg-card flex w-full max-w-[416px] flex-col gap-0 p-0 sm:max-w-[416px] [&>button:last-child]:hidden", {
|
|
12
|
+
var gandalfDetailsPanelContentVariants = cva("bg-card flex w-full max-w-[416px] flex-col gap-0 p-0 shadow-none sm:max-w-[416px] [&>button:last-child]:hidden", {
|
|
13
13
|
variants: { side: {
|
|
14
14
|
right: "border-l-0",
|
|
15
15
|
left: "border-r-0"
|
|
@@ -7,7 +7,11 @@ declare const __VLS_base: import('vue').DefineComponent<DialogRootProps, {}, {},
|
|
|
7
7
|
"update:open": (value: boolean) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<DialogRootProps> & Readonly<{
|
|
9
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
-
}>, {
|
|
10
|
+
}>, {
|
|
11
|
+
open: boolean;
|
|
12
|
+
defaultOpen: boolean;
|
|
13
|
+
modal: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
16
|
declare const _default: typeof __VLS_export;
|
|
13
17
|
export default _default;
|
|
@@ -4,9 +4,18 @@ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref,
|
|
|
4
4
|
var GDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
5
|
__name: "GDialog",
|
|
6
6
|
props: {
|
|
7
|
-
open: {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
open: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: void 0
|
|
10
|
+
},
|
|
11
|
+
defaultOpen: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
modal: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
10
19
|
unmountOnHide: { type: Boolean }
|
|
11
20
|
},
|
|
12
21
|
emits: ["update:open"],
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GDialogBody_vue_vue_type_script_setup_true_lang_default from "./GDialogBody.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/dialog/GDialogBody.vue
|
|
3
|
+
var GDialogBody_default = GDialogBody_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GDialogBody_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/dist/components/gandalf/base/dialog/GDialogBody.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { cn } from "../../../../lib/utils.js";
|
|
2
|
+
import { gandalfDialogBodyVariants } from "./index.js";
|
|
3
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
4
|
+
// src/components/gandalf/base/dialog/GDialogBody.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var GDialogBody_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
6
|
+
__name: "GDialogBody",
|
|
7
|
+
props: { class: { type: [
|
|
8
|
+
Boolean,
|
|
9
|
+
null,
|
|
10
|
+
String,
|
|
11
|
+
Object,
|
|
12
|
+
Array
|
|
13
|
+
] } },
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
return openBlock(), createElementBlock("div", {
|
|
18
|
+
"data-slot": "dialog-body",
|
|
19
|
+
class: normalizeClass(unref(cn)(unref(gandalfDialogBodyVariants)(), props.class))
|
|
20
|
+
}, [renderSlot(_ctx.$slots, "default")], 2);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export { GDialogBody_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -2,7 +2,6 @@ import { DialogContentProps } from 'reka-ui';
|
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
3
|
type __VLS_Props = DialogContentProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
|
-
showCloseButton?: boolean;
|
|
6
5
|
};
|
|
7
6
|
declare var __VLS_14: {};
|
|
8
7
|
type __VLS_Slots = {} & {
|
|
@@ -22,10 +21,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
22
21
|
onInteractOutside?: ((event: import('reka-ui').PointerDownOutsideEvent | import('reka-ui').FocusOutsideEvent) => any) | undefined;
|
|
23
22
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
23
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
27
|
-
showCloseButton: boolean;
|
|
28
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
29
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
26
|
declare const _default: typeof __VLS_export;
|
|
31
27
|
export default _default;
|
package/dist/components/gandalf/base/dialog/GDialogContent.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import DialogContent_default from "../../../ui/dialog/DialogContent.js";
|
|
3
|
+
import { gandalfDialogContentVariants } 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/GDialogContent.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -11,20 +12,13 @@ var GDialogContent_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
11
12
|
disableOutsidePointerEvents: { type: Boolean },
|
|
12
13
|
asChild: { type: Boolean },
|
|
13
14
|
as: {},
|
|
14
|
-
class: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
],
|
|
22
|
-
default: void 0
|
|
23
|
-
},
|
|
24
|
-
showCloseButton: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: true
|
|
27
|
-
}
|
|
15
|
+
class: { type: [
|
|
16
|
+
Boolean,
|
|
17
|
+
null,
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Array
|
|
21
|
+
] }
|
|
28
22
|
},
|
|
29
23
|
emits: [
|
|
30
24
|
"escapeKeyDown",
|
|
@@ -42,7 +36,8 @@ var GDialogContent_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
42
36
|
..._ctx.$attrs,
|
|
43
37
|
...unref(reactiveOmit)(props, "class")
|
|
44
38
|
}, {
|
|
45
|
-
|
|
39
|
+
"show-close-button": false,
|
|
40
|
+
class: unref(cn)(unref(gandalfDialogContentVariants)(), props.class),
|
|
46
41
|
onCloseAutoFocus: _cache[0] || (_cache[0] = ($event) => emits("closeAutoFocus", $event)),
|
|
47
42
|
onEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => emits("escapeKeyDown", $event)),
|
|
48
43
|
onFocusOutside: _cache[2] || (_cache[2] = ($event) => emits("focusOutside", $event)),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import DialogDescription_default from "../../../ui/dialog/DialogDescription.js";
|
|
3
|
+
import { gandalfDialogDescriptionVariants } 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/GDialogDescription.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -20,7 +21,7 @@ var GDialogDescription_vue_vue_type_script_setup_true_lang_default = /*@__PURE__
|
|
|
20
21
|
const props = __props;
|
|
21
22
|
const delegatedProps = reactiveOmit(props, "class");
|
|
22
23
|
return (_ctx, _cache) => {
|
|
23
|
-
return openBlock(), createBlock(unref(DialogDescription_default), mergeProps(unref(delegatedProps), { class: unref(cn)(props.class) }), {
|
|
24
|
+
return openBlock(), createBlock(unref(DialogDescription_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfDialogDescriptionVariants)(), props.class) }), {
|
|
24
25
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
26
|
_: 3
|
|
26
27
|
}, 16, ["class"]);
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
3
|
+
/** Adds an Outline primary button that closes the dialog. */
|
|
4
4
|
showCloseButton?: boolean;
|
|
5
|
+
closeLabel?: string;
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
5
7
|
};
|
|
6
|
-
declare var
|
|
8
|
+
declare var __VLS_19: {};
|
|
7
9
|
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
11
|
};
|
|
10
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
13
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
12
14
|
showCloseButton: boolean;
|
|
15
|
+
closeLabel: string;
|
|
13
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
18
|
declare const _default: typeof __VLS_export;
|
package/dist/components/gandalf/base/dialog/GDialogFooter.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import DialogFooter_default from "../../../ui/dialog/DialogFooter.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import GButton_default from "../button/GButton.js";
|
|
4
|
+
import GDialogClose_default from "./GDialogClose.js";
|
|
5
|
+
import { gandalfDialogFooterVariants } from "./index.js";
|
|
6
|
+
import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
5
7
|
// src/components/gandalf/base/dialog/GDialogFooter.vue?vue&type=script&setup=true&lang.ts
|
|
6
8
|
var GDialogFooter_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
9
|
__name: "GDialogFooter",
|
|
8
10
|
props: {
|
|
11
|
+
showCloseButton: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: false
|
|
14
|
+
},
|
|
15
|
+
closeLabel: { default: "Close" },
|
|
9
16
|
class: {
|
|
10
17
|
type: [
|
|
11
18
|
Boolean,
|
|
@@ -15,20 +22,24 @@ var GDialogFooter_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
15
22
|
Array
|
|
16
23
|
],
|
|
17
24
|
default: void 0
|
|
18
|
-
},
|
|
19
|
-
showCloseButton: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: false
|
|
22
25
|
}
|
|
23
26
|
},
|
|
24
27
|
setup(__props) {
|
|
25
28
|
const props = __props;
|
|
26
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
27
29
|
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createBlock(unref(DialogFooter_default),
|
|
29
|
-
default: withCtx(() => [
|
|
30
|
+
return openBlock(), createBlock(unref(DialogFooter_default), { class: normalizeClass(unref(cn)(unref(gandalfDialogFooterVariants)(), props.class)) }, {
|
|
31
|
+
default: withCtx(() => [__props.showCloseButton ? (openBlock(), createBlock(GDialogClose_default, {
|
|
32
|
+
key: 0,
|
|
33
|
+
"as-child": ""
|
|
34
|
+
}, {
|
|
35
|
+
default: withCtx(() => [createVNode(unref(GButton_default), { variant: "outline-primary" }, {
|
|
36
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.closeLabel), 1)]),
|
|
37
|
+
_: 1
|
|
38
|
+
})]),
|
|
39
|
+
_: 1
|
|
40
|
+
})) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]),
|
|
30
41
|
_: 3
|
|
31
|
-
},
|
|
42
|
+
}, 8, ["class"]);
|
|
32
43
|
};
|
|
33
44
|
}
|
|
34
45
|
});
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { GandalfDialogHeaderType } from './index';
|
|
2
3
|
type __VLS_Props = {
|
|
4
|
+
type?: GandalfDialogHeaderType;
|
|
5
|
+
/** Figma's "Show Button". Only drawn with `type="left"`. */
|
|
6
|
+
showCloseButton?: boolean;
|
|
7
|
+
closeLabel?: string;
|
|
3
8
|
class?: HTMLAttributes['class'];
|
|
4
9
|
};
|
|
5
|
-
declare var __VLS_7: {};
|
|
10
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
6
11
|
type __VLS_Slots = {} & {
|
|
7
|
-
|
|
12
|
+
icon?: (props: typeof __VLS_7) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_9) => 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: GandalfDialogHeaderType;
|
|
18
|
+
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
19
|
+
showCloseButton: boolean;
|
|
20
|
+
closeLabel: string;
|
|
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/base/dialog/GDialogHeader.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,25 +1,63 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import DialogHeader_default from "../../../ui/dialog/DialogHeader.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import GButton_default from "../button/GButton.js";
|
|
4
|
+
import GDialogClose_default from "./GDialogClose.js";
|
|
5
|
+
import { gandalfDialogHeaderIconVariants, gandalfDialogHeaderVariants } from "./index.js";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
|
+
import { X } from "lucide-vue-next";
|
|
5
8
|
// src/components/gandalf/base/dialog/GDialogHeader.vue?vue&type=script&setup=true&lang.ts
|
|
6
9
|
var GDialogHeader_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
10
|
__name: "GDialogHeader",
|
|
8
|
-
props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
props: {
|
|
12
|
+
type: { default: "left" },
|
|
13
|
+
showCloseButton: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: true
|
|
16
|
+
},
|
|
17
|
+
closeLabel: { default: "Close" },
|
|
18
|
+
class: {
|
|
19
|
+
type: [
|
|
20
|
+
Boolean,
|
|
21
|
+
null,
|
|
22
|
+
String,
|
|
23
|
+
Object,
|
|
24
|
+
Array
|
|
25
|
+
],
|
|
26
|
+
default: void 0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
15
29
|
setup(__props) {
|
|
16
30
|
const props = __props;
|
|
17
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
18
31
|
return (_ctx, _cache) => {
|
|
19
|
-
return openBlock(), createBlock(unref(DialogHeader_default),
|
|
20
|
-
|
|
32
|
+
return openBlock(), createBlock(unref(DialogHeader_default), {
|
|
33
|
+
"data-type": __props.type,
|
|
34
|
+
class: normalizeClass(unref(cn)(unref(gandalfDialogHeaderVariants)({ type: __props.type }), props.class))
|
|
35
|
+
}, {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
__props.type === "left" && _ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
38
|
+
key: 0,
|
|
39
|
+
"data-slot": "dialog-header-icon",
|
|
40
|
+
class: normalizeClass(unref(gandalfDialogHeaderIconVariants)())
|
|
41
|
+
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("", true),
|
|
42
|
+
renderSlot(_ctx.$slots, "default"),
|
|
43
|
+
__props.type === "left" && __props.showCloseButton ? (openBlock(), createBlock(GDialogClose_default, {
|
|
44
|
+
key: 1,
|
|
45
|
+
"as-child": ""
|
|
46
|
+
}, {
|
|
47
|
+
default: withCtx(() => [createVNode(unref(GButton_default), {
|
|
48
|
+
variant: "ghost-primary",
|
|
49
|
+
size: "md",
|
|
50
|
+
class: "shrink-0",
|
|
51
|
+
"aria-label": __props.closeLabel
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [createVNode(unref(X))]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["aria-label"])]),
|
|
56
|
+
_: 1
|
|
57
|
+
})) : createCommentVNode("", true)
|
|
58
|
+
]),
|
|
21
59
|
_: 3
|
|
22
|
-
},
|
|
60
|
+
}, 8, ["data-type", "class"]);
|
|
23
61
|
};
|
|
24
62
|
}
|
|
25
63
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import DialogScrollContent_default from "../../../ui/dialog/DialogScrollContent.js";
|
|
3
|
+
import { gandalfDialogContentVariants } 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/GDialogScrollContent.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -35,7 +36,7 @@ var GDialogScrollContent_vue_vue_type_script_setup_true_lang_default = /*@__PURE
|
|
|
35
36
|
..._ctx.$attrs,
|
|
36
37
|
...unref(reactiveOmit)(props, "class")
|
|
37
38
|
}, {
|
|
38
|
-
class: unref(cn)(props.class),
|
|
39
|
+
class: unref(cn)(unref(gandalfDialogContentVariants)(), "max-w-[416px] sm:rounded-3xl [&>button:last-child]:hidden", props.class),
|
|
39
40
|
onCloseAutoFocus: _cache[0] || (_cache[0] = ($event) => emits("closeAutoFocus", $event)),
|
|
40
41
|
onEscapeKeyDown: _cache[1] || (_cache[1] = ($event) => emits("escapeKeyDown", $event)),
|
|
41
42
|
onFocusOutside: _cache[2] || (_cache[2] = ($event) => emits("focusOutside", $event)),
|