@unergy-dev/gandalf 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist/components/gandalf/base/accordion/GAccordion.vue.d.ts +10 -6
- package/dist/components/gandalf/base/accordion/GAccordion.vue_vue_type_script_setup_true_lang.js +36 -21
- package/dist/components/gandalf/base/accordion/GAccordionContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/accordion/GAccordionItem.vue.d.ts +9 -1
- package/dist/components/gandalf/base/accordion/GAccordionItem.vue_vue_type_script_setup_true_lang.js +32 -14
- package/dist/components/gandalf/base/accordion/GAccordionTrigger.vue.d.ts +21 -8
- package/dist/components/gandalf/base/accordion/GAccordionTrigger.vue_vue_type_script_setup_true_lang.js +58 -8
- package/dist/components/gandalf/base/accordion/index.d.ts +22 -9
- package/dist/components/gandalf/base/accordion/index.js +89 -24
- package/dist/components/gandalf/base/alert-dialog/GAlertDialog.vue.d.ts +4 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialog.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogAction.vue.d.ts +8 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogAction.vue_vue_type_script_setup_true_lang.js +18 -9
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.js +4 -0
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.vue.d.ts +17 -0
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogBody.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogCancel.vue.d.ts +8 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogCancel.vue_vue_type_script_setup_true_lang.js +18 -9
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogContent.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogDescription.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogFooter.vue_vue_type_script_setup_true_lang.js +4 -5
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogHeader.vue.d.ts +10 -3
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogHeader.vue_vue_type_script_setup_true_lang.js +25 -13
- package/dist/components/gandalf/base/alert-dialog/GAlertDialogTitle.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/alert-dialog/index.d.ts +1 -0
- package/dist/components/gandalf/base/avatar/GAvatar.vue.d.ts +12 -3
- package/dist/components/gandalf/base/avatar/GAvatar.vue_vue_type_script_setup_true_lang.js +32 -15
- package/dist/components/gandalf/base/avatar/GAvatarFallback.vue.d.ts +3 -2
- package/dist/components/gandalf/base/avatar/GAvatarFallback.vue_vue_type_script_setup_true_lang.js +9 -9
- package/dist/components/gandalf/base/avatar/GAvatarImage.vue.d.ts +7 -2
- package/dist/components/gandalf/base/avatar/GAvatarImage.vue_vue_type_script_setup_true_lang.js +11 -6
- package/dist/components/gandalf/base/avatar/index.d.ts +16 -3
- package/dist/components/gandalf/base/avatar/index.js +31 -7
- package/dist/components/gandalf/base/badge/index.d.ts +1 -1
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumb.vue.d.ts +6 -1
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumb.vue_vue_type_script_setup_true_lang.js +21 -10
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbEllipsis.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbItem.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbLink.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbList.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbPage.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/breadcrumb/GBreadcrumbSeparator.vue_vue_type_script_setup_true_lang.js +4 -2
- package/dist/components/gandalf/base/breadcrumb/index.d.ts +21 -0
- package/dist/components/gandalf/base/breadcrumb/index.js +47 -0
- package/dist/components/gandalf/base/button/index.d.ts +1 -1
- package/dist/components/gandalf/base/details-panel/index.js +1 -1
- package/dist/components/gandalf/base/dialog/GDialog.vue.d.ts +5 -1
- package/dist/components/gandalf/base/dialog/GDialog.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/gandalf/base/dialog/GDialogBody.js +4 -0
- package/dist/components/gandalf/base/dialog/GDialogBody.vue.d.ts +17 -0
- package/dist/components/gandalf/base/dialog/GDialogBody.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/dialog/GDialogContent.vue.d.ts +1 -5
- package/dist/components/gandalf/base/dialog/GDialogContent.vue_vue_type_script_setup_true_lang.js +10 -15
- package/dist/components/gandalf/base/dialog/GDialogDescription.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/dialog/GDialogFooter.vue.d.ts +6 -3
- package/dist/components/gandalf/base/dialog/GDialogFooter.vue_vue_type_script_setup_true_lang.js +21 -10
- package/dist/components/gandalf/base/dialog/GDialogHeader.vue.d.ts +15 -3
- package/dist/components/gandalf/base/dialog/GDialogHeader.vue_vue_type_script_setup_true_lang.js +51 -13
- package/dist/components/gandalf/base/dialog/GDialogScrollContent.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/dialog/GDialogTitle.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/dialog/index.d.ts +13 -0
- package/dist/components/gandalf/base/dialog/index.js +27 -0
- package/dist/components/gandalf/base/dropdown/GDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/input/GInput.vue.d.ts +13 -1
- package/dist/components/gandalf/base/input/GInput.vue_vue_type_script_setup_true_lang.js +23 -5
- package/dist/components/gandalf/base/input/index.d.ts +6 -1
- package/dist/components/gandalf/base/input/index.js +11 -1
- package/dist/components/gandalf/base/input-group/GInputGroupButton.vue.d.ts +2 -2
- package/dist/components/gandalf/base/menu/GMenu.js +4 -0
- package/dist/components/gandalf/base/menu/GMenu.vue.d.ts +20 -0
- package/dist/components/gandalf/base/menu/GMenu.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/menu/GMenuContent.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuContent.vue.d.ts +34 -0
- package/dist/components/gandalf/base/menu/GMenuContent.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/gandalf/base/menu/GMenuItem.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuItem.vue.d.ts +27 -0
- package/dist/components/gandalf/base/menu/GMenuItem.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/gandalf/base/menu/GMenuLabel.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuLabel.vue.d.ts +18 -0
- package/dist/components/gandalf/base/menu/GMenuLabel.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/gandalf/base/menu/GMenuSeparator.js +4 -0
- package/dist/components/gandalf/base/{sonner/GToastCard.vue.d.ts → menu/GMenuSeparator.vue.d.ts} +4 -6
- package/dist/components/gandalf/base/menu/GMenuSeparator.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/gandalf/base/menu/GMenuTrigger.js +4 -0
- package/dist/components/gandalf/base/menu/GMenuTrigger.vue.d.ts +16 -0
- package/dist/components/gandalf/base/menu/GMenuTrigger.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/gandalf/base/menu/index.d.ts +16 -2
- package/dist/components/gandalf/base/menu/index.js +19 -3
- package/dist/components/gandalf/base/navigation-button/GNavigationButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/navigation-button/index.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationFirst.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationItem.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationLast.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationNext.vue.d.ts +1 -1
- package/dist/components/gandalf/base/pagination/GPaginationPrevious.vue.d.ts +1 -1
- package/dist/components/gandalf/base/popover/GPopover.vue.d.ts +5 -1
- package/dist/components/gandalf/base/popover/GPopover.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/gandalf/base/segmented-button/index.js +1 -0
- package/dist/components/gandalf/base/select/GSelect.vue.d.ts +7 -1
- package/dist/components/gandalf/base/select/GSelect.vue_vue_type_script_setup_true_lang.js +21 -6
- package/dist/components/gandalf/base/sidebar/GSidebar.vue.d.ts +1 -1
- package/dist/components/gandalf/base/sonner/GToast.js +4 -0
- package/dist/components/gandalf/base/sonner/GToast.vue.d.ts +19 -0
- package/dist/components/gandalf/base/sonner/GToast.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/gandalf/base/sonner/GToaster.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/gandalf/base/sonner/index.d.ts +12 -4
- package/dist/components/gandalf/base/sonner/index.js +26 -14
- package/dist/components/gandalf/base/table/GTable.vue.d.ts +5 -1
- package/dist/components/gandalf/base/table/GTable.vue_vue_type_script_setup_true_lang.js +24 -11
- package/dist/components/gandalf/base/table/GTableCell.vue.d.ts +7 -1
- package/dist/components/gandalf/base/table/GTableCell.vue_vue_type_script_setup_true_lang.js +18 -10
- package/dist/components/gandalf/base/table/GTableFooter.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/gandalf/base/table/GTableHead.vue.d.ts +9 -1
- package/dist/components/gandalf/base/table/GTableHead.vue_vue_type_script_setup_true_lang.js +26 -10
- package/dist/components/gandalf/base/table/index.d.ts +5 -0
- package/dist/components/gandalf/base/table/index.js +12 -6
- package/dist/components/gandalf/base/tabs/GTabsList.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/gandalf/base/tabs/index.d.ts +4 -4
- package/dist/components/gandalf/base/tabs/index.js +32 -24
- package/dist/components/gandalf/base/tooltip/GTooltip.vue.d.ts +10 -3
- package/dist/components/gandalf/base/tooltip/GTooltip.vue_vue_type_script_setup_true_lang.js +30 -10
- package/dist/components/gandalf/base/tooltip/index.js +1 -1
- package/dist/components/gandalf/kit/avatar/Avatar.vue.d.ts +7 -2
- package/dist/components/gandalf/kit/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +12 -3
- package/dist/components/gandalf/kit/avatar/AvatarGroup.vue.d.ts +13 -1
- package/dist/components/gandalf/kit/avatar/AvatarGroup.vue_vue_type_script_setup_true_lang.js +37 -9
- package/dist/components/gandalf/kit/avatar/AvatarRol.js +4 -0
- package/dist/components/gandalf/kit/avatar/AvatarRol.vue.d.ts +23 -0
- package/dist/components/gandalf/kit/avatar/AvatarRol.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/gandalf/kit/avatar/index.d.ts +12 -0
- package/dist/components/gandalf/kit/avatar/index.js +35 -0
- package/dist/components/gandalf/kit/card-toggle/index.d.ts +1 -1
- package/dist/components/gandalf/kit/date-picker/DatePicker.vue.d.ts +1 -1
- package/dist/components/gandalf/kit/files-card/FilesCard.vue.d.ts +3 -3
- package/dist/components/gandalf/kit/files-card/FilesCard.vue_vue_type_script_setup_true_lang.js +5 -8
- package/dist/components/gandalf/kit/header/Header.js +4 -0
- package/dist/components/gandalf/kit/header/Header.vue.d.ts +26 -0
- package/dist/components/gandalf/kit/header/Header.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/gandalf/kit/header/UnergyLogo.js +4 -0
- package/dist/components/gandalf/kit/header/UnergyLogo.vue.d.ts +3 -0
- package/dist/components/gandalf/kit/header/UnergyLogo.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/components/gandalf/kit/header/index.d.ts +8 -0
- package/dist/components/gandalf/kit/header/index.js +11 -0
- package/dist/components/gandalf/kit/input-chat/InputChat.js +4 -0
- package/dist/components/gandalf/kit/input-chat/InputChat.vue.d.ts +52 -0
- package/dist/components/gandalf/kit/input-chat/InputChat.vue_vue_type_script_setup_true_lang.js +121 -0
- package/dist/components/gandalf/kit/input-chat/index.d.ts +2 -0
- package/dist/components/gandalf/kit/input-chat/index.js +5 -0
- package/dist/components/gandalf/kit/layout/Layout.js +4 -0
- package/dist/components/gandalf/kit/layout/Layout.vue.d.ts +49 -0
- package/dist/components/gandalf/kit/layout/Layout.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.js +4 -0
- package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.vue.d.ts +31 -0
- package/dist/components/gandalf/kit/layout/LayoutBreadcrumbs.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/gandalf/kit/layout/LayoutTitle.js +4 -0
- package/dist/components/gandalf/kit/layout/LayoutTitle.vue.d.ts +39 -0
- package/dist/components/gandalf/kit/layout/LayoutTitle.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/components/gandalf/kit/layout/index.d.ts +37 -0
- package/dist/components/gandalf/kit/layout/index.js +45 -0
- package/dist/components/gandalf/kit/message-card/MessageCard.js +4 -0
- package/dist/components/gandalf/kit/message-card/MessageCard.vue.d.ts +52 -0
- package/dist/components/gandalf/kit/message-card/MessageCard.vue_vue_type_script_setup_true_lang.js +97 -0
- package/dist/components/gandalf/kit/message-card/index.d.ts +4 -0
- package/dist/components/gandalf/kit/message-card/index.js +5 -0
- package/dist/components/gandalf/kit/miniatures/Miniatures.js +4 -0
- package/dist/components/gandalf/kit/miniatures/Miniatures.vue.d.ts +42 -0
- package/dist/components/gandalf/kit/miniatures/Miniatures.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/gandalf/kit/miniatures/index.d.ts +7 -0
- package/dist/components/gandalf/kit/miniatures/index.js +11 -0
- package/dist/components/gandalf/kit/report/AvatarReport.js +4 -0
- package/dist/components/gandalf/kit/report/AvatarReport.vue.d.ts +15 -0
- package/dist/components/gandalf/kit/report/AvatarReport.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/gandalf/kit/report/CircleReport.js +4 -0
- package/dist/components/gandalf/kit/report/CircleReport.vue.d.ts +15 -0
- package/dist/components/gandalf/kit/report/CircleReport.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/gandalf/kit/report/Icons.js +4 -0
- package/dist/components/gandalf/kit/report/Icons.vue.d.ts +15 -0
- package/dist/components/gandalf/kit/report/Icons.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/gandalf/kit/report/PickerItem.js +4 -0
- package/dist/components/gandalf/kit/report/PickerItem.vue.d.ts +56 -0
- package/dist/components/gandalf/kit/report/PickerItem.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/components/gandalf/kit/report/Pin.js +4 -0
- package/dist/components/gandalf/kit/report/Pin.vue.d.ts +31 -0
- package/dist/components/gandalf/kit/report/Pin.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/components/gandalf/kit/report/index.d.ts +24 -0
- package/dist/components/gandalf/kit/report/index.js +77 -0
- package/dist/components/gandalf/kit/search-field/index.d.ts +1 -1
- package/dist/components/gandalf/kit/sidebar/Sidebar.js +4 -0
- package/dist/components/gandalf/kit/sidebar/Sidebar.vue.d.ts +53 -0
- package/dist/components/gandalf/kit/sidebar/Sidebar.vue_vue_type_script_setup_true_lang.js +140 -0
- package/dist/components/gandalf/kit/sidebar/index.d.ts +2 -0
- package/dist/components/gandalf/kit/sidebar/types.d.ts +25 -0
- package/dist/components/gandalf/kit/star/Star.vue.d.ts +1 -1
- package/dist/components/gandalf/kit/star/index.d.ts +1 -1
- package/dist/components/gandalf/kit/upload-box/UploadBox.vue.d.ts +3 -3
- package/dist/components/gandalf/kit/upload-box/index.d.ts +1 -1
- package/dist/components/gandalf/kit/upload-card/UploadCard.vue.d.ts +1 -1
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/button/Button.vue.d.ts +2 -2
- package/dist/components/ui/button/index.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +2 -2
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +2 -2
- package/dist/components/ui/chart/ChartLegendContent.vue.d.ts +1 -1
- package/dist/components/ui/combobox/ComboboxList.vue.d.ts +1 -1
- package/dist/components/ui/drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +2 -2
- package/dist/components/ui/input-group/index.d.ts +1 -1
- package/dist/components/ui/menubar/MenubarContent.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationFirst.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationItem.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationLast.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationNext.vue.d.ts +1 -1
- package/dist/components/ui/pagination/PaginationPrevious.vue.d.ts +1 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +1 -1
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +52 -20
- package/dist/nuxt/components.json +1 -1
- package/dist/styles/tokens.css +23 -0
- package/package.json +1 -1
- package/dist/components/gandalf/base/sonner/GToastCard.js +0 -4
- package/dist/components/gandalf/base/sonner/GToastCard.vue_vue_type_script_setup_true_lang.js +0 -43
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
1
2
|
/** Dropdown menu: the floating container. Padding is completed by the list's own viewport. */
|
|
2
3
|
export declare const gandalfMenuContentVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
3
|
-
/**
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Menu Item: 36px rows, 16px text, Figma's alpha overlays for hover and press. `destructive` is the
|
|
6
|
+
* red item of "Dropdown menu" (an exit or a delete): text and icon in `destructive/destructive`,
|
|
7
|
+
* same overlays. Merge with `cn` so its text colors replace the default ones.
|
|
8
|
+
*/
|
|
9
|
+
export declare const gandalfMenuItemVariants: (props?: ({
|
|
10
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
export type GandalfMenuItemVariant = NonNullable<VariantProps<typeof gandalfMenuItemVariants>['variant']>;
|
|
5
13
|
/** Divider, Type=Header: a group title. */
|
|
6
14
|
export declare const gandalfMenuLabelVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
7
15
|
/** Divider, Type=Line. */
|
|
@@ -12,3 +20,9 @@ export declare const gandalfMenuSeparatorVariants: (props?: import('class-varian
|
|
|
12
20
|
* next state. Checked items get the accent fill and border.
|
|
13
21
|
*/
|
|
14
22
|
export declare const gandalfMenuCheckItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
23
|
+
export { default as GMenu } from './GMenu.vue';
|
|
24
|
+
export { default as GMenuTrigger } from './GMenuTrigger.vue';
|
|
25
|
+
export { default as GMenuContent } from './GMenuContent.vue';
|
|
26
|
+
export { default as GMenuItem } from './GMenuItem.vue';
|
|
27
|
+
export { default as GMenuLabel } from './GMenuLabel.vue';
|
|
28
|
+
export { default as GMenuSeparator } from './GMenuSeparator.vue';
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
+
import GMenu_default from "./GMenu.js";
|
|
2
|
+
import GMenuTrigger_default from "./GMenuTrigger.js";
|
|
3
|
+
import GMenuContent_default from "./GMenuContent.js";
|
|
4
|
+
import GMenuItem_default from "./GMenuItem.js";
|
|
5
|
+
import GMenuLabel_default from "./GMenuLabel.js";
|
|
6
|
+
import GMenuSeparator_default from "./GMenuSeparator.js";
|
|
1
7
|
import { cva } from "class-variance-authority";
|
|
2
8
|
// src/components/gandalf/base/menu/index.ts
|
|
3
9
|
/** Dropdown menu: the floating container. Padding is completed by the list's own viewport. */
|
|
4
10
|
var gandalfMenuContentVariants = cva("rounded-xl border border-bni-border-loud bg-card text-base-foreground shadow-sm");
|
|
5
|
-
/**
|
|
6
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Menu Item: 36px rows, 16px text, Figma's alpha overlays for hover and press. `destructive` is the
|
|
13
|
+
* red item of "Dropdown menu" (an exit or a delete): text and icon in `destructive/destructive`,
|
|
14
|
+
* same overlays. Merge with `cn` so its text colors replace the default ones.
|
|
15
|
+
*/
|
|
16
|
+
var gandalfMenuItemVariants = cva("mb-1 min-h-9 gap-2 rounded-lg text-base text-base-foreground last:mb-0 hover:overlay-dark-8 focus:bg-transparent focus:text-base-foreground focus:overlay-dark-8 active:overlay-dark-12 data-[highlighted]:bg-transparent data-[highlighted]:text-base-foreground data-[highlighted]:overlay-dark-8 data-[disabled]:bg-muted data-[disabled]:text-muted-foreground-quiet data-[disabled]:opacity-100 [&_svg:not([class*='text-'])]:text-base-foreground [&_svg:not([class*='size-'])]:size-4 data-[disabled]:[&_svg:not([class*='text-'])]:text-muted-foreground-quiet", {
|
|
17
|
+
variants: { variant: {
|
|
18
|
+
default: "",
|
|
19
|
+
destructive: "text-destructive focus:text-destructive data-[highlighted]:text-destructive [&_svg:not([class*='text-'])]:text-destructive"
|
|
20
|
+
} },
|
|
21
|
+
defaultVariants: { variant: "default" }
|
|
22
|
+
});
|
|
7
23
|
/** Divider, Type=Header: a group title. */
|
|
8
24
|
var gandalfMenuLabelVariants = cva("flex h-9 items-center gap-2 px-3 py-0 text-sm font-normal text-base-foreground-extra-quiet");
|
|
9
25
|
/** Divider, Type=Line. */
|
|
@@ -22,4 +38,4 @@ var gandalfMenuCheckItemVariants = cva([
|
|
|
22
38
|
"data-[state=checked]:focus:bg-accent-primary data-[state=checked]:data-[highlighted]:bg-accent-primary data-[state=checked]:focus:text-accent-primary-foreground data-[state=checked]:data-[highlighted]:text-accent-primary-foreground",
|
|
23
39
|
"data-[disabled]:after:text-muted-foreground-quiet data-[disabled]:data-[state=checked]:border-muted-foreground-quiet data-[disabled]:data-[state=checked]:bg-muted data-[disabled]:data-[state=checked]:text-muted-foreground-quiet"
|
|
24
40
|
]);
|
|
25
|
-
export { gandalfMenuCheckItemVariants, gandalfMenuContentVariants, gandalfMenuItemVariants, gandalfMenuLabelVariants, gandalfMenuSeparatorVariants };
|
|
41
|
+
export { GMenu_default as GMenu, GMenuContent_default as GMenuContent, GMenuItem_default as GMenuItem, GMenuLabel_default as GMenuLabel, GMenuSeparator_default as GMenuSeparator, GMenuTrigger_default as GMenuTrigger, gandalfMenuCheckItemVariants, gandalfMenuContentVariants, gandalfMenuItemVariants, gandalfMenuLabelVariants, gandalfMenuSeparatorVariants };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
|
-
import { gandalfMenuContentVariants, gandalfMenuItemVariants, gandalfMenuSeparatorVariants } from "../menu/index.js";
|
|
3
2
|
import DropdownMenu_default from "../../../ui/dropdown-menu/DropdownMenu.js";
|
|
4
3
|
import DropdownMenuContent_default from "../../../ui/dropdown-menu/DropdownMenuContent.js";
|
|
5
4
|
import DropdownMenuItem_default from "../../../ui/dropdown-menu/DropdownMenuItem.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, gandalfMenuSeparatorVariants } from "../menu/index.js";
|
|
8
8
|
import { gandalfNavigationButtonVariants } from "./index.js";
|
|
9
9
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
10
10
|
import { Check, ChevronDown } from "lucide-vue-next";
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
export { default as GNavigationButton } from './GNavigationButton.vue';
|
|
3
3
|
export type { NavigationOption, NavigationOptionGroup, NavigationOptions } from './types';
|
|
4
4
|
export declare const gandalfNavigationButtonVariants: (props?: ({
|
|
5
|
-
color?: "default" | "
|
|
5
|
+
color?: "default" | "destructive" | "action" | "information" | "success" | "warning" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type GandalfNavigationButtonVariants = VariantProps<typeof gandalfNavigationButtonVariants>;
|
|
8
8
|
export type GandalfNavigationButtonColor = NonNullable<GandalfNavigationButtonVariants['color']>;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_7) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
size: "default" | "
|
|
13
|
+
size: "default" | "sm" | "icon" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
14
14
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -11,7 +11,7 @@ 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: "default" | "
|
|
14
|
+
size: "default" | "sm" | "icon" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
15
15
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_7) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
size: "default" | "
|
|
13
|
+
size: "default" | "sm" | "icon" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
14
14
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_7) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
size: "default" | "
|
|
13
|
+
size: "default" | "sm" | "icon" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
14
14
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_7) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
-
size: "default" | "
|
|
13
|
+
size: "default" | "sm" | "icon" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
14
14
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -10,7 +10,11 @@ declare const __VLS_base: import('vue').DefineComponent<PopoverRootProps, {}, {}
|
|
|
10
10
|
"update:open": (value: boolean) => any;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<PopoverRootProps> & Readonly<{
|
|
12
12
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
|
-
}>, {
|
|
13
|
+
}>, {
|
|
14
|
+
open: boolean;
|
|
15
|
+
defaultOpen: boolean;
|
|
16
|
+
modal: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
19
|
declare const _default: typeof __VLS_export;
|
|
16
20
|
export default _default;
|
package/dist/components/gandalf/base/popover/GPopover.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -4,9 +4,18 @@ import { createBlock, defineComponent, guardReactiveProps, mergeProps, normalize
|
|
|
4
4
|
var GPopover_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
5
|
__name: "GPopover",
|
|
6
6
|
props: {
|
|
7
|
-
defaultOpen: {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
defaultOpen: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: void 0
|
|
10
|
+
},
|
|
11
|
+
open: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
modal: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: void 0
|
|
18
|
+
}
|
|
10
19
|
},
|
|
11
20
|
emits: ["update:open"],
|
|
12
21
|
setup(__props, { emit: __emit }) {
|
|
@@ -6,6 +6,7 @@ var gandalfSegmentedButtonVariants = cva("w-fit overflow-hidden rounded-full bor
|
|
|
6
6
|
var gandalfSegmentVariants = cva([
|
|
7
7
|
"text-base-foreground h-10 min-w-0 cursor-pointer rounded-none px-3 text-base leading-[normal] font-semibold",
|
|
8
8
|
"border-bni-border-extra-loud border-l first:border-l-0",
|
|
9
|
+
"[&:nth-child(2):last-child]:border-l-primary-foreground-loud",
|
|
9
10
|
"data-[spacing=0]:rounded-none data-[spacing=0]:first:rounded-l-none data-[spacing=0]:last:rounded-r-none",
|
|
10
11
|
"hover:text-base-foreground hover:overlay-dark-5 active:overlay-dark-8 hover:bg-transparent",
|
|
11
12
|
"data-[state=on]:bg-accent-primary data-[state=on]:text-accent-primary-foreground",
|
|
@@ -13,7 +13,13 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: import('reka-ui').AcceptableValue) => any) | undefined;
|
|
15
15
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
16
|
-
}>, {
|
|
16
|
+
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
multiple: boolean;
|
|
19
|
+
open: boolean;
|
|
20
|
+
defaultOpen: boolean;
|
|
21
|
+
required: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
24
|
declare const _default: typeof __VLS_export;
|
|
19
25
|
export default _default;
|
|
@@ -4,18 +4,33 @@ import { createBlock, defineComponent, guardReactiveProps, mergeProps, normalize
|
|
|
4
4
|
var GSelect_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
5
|
__name: "GSelect",
|
|
6
6
|
props: {
|
|
7
|
-
open: {
|
|
8
|
-
|
|
7
|
+
open: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
default: void 0
|
|
10
|
+
},
|
|
11
|
+
defaultOpen: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
9
15
|
defaultValue: {},
|
|
10
16
|
modelValue: {},
|
|
11
17
|
nullableValue: {},
|
|
12
|
-
by: {
|
|
18
|
+
by: {},
|
|
13
19
|
dir: {},
|
|
14
|
-
multiple: {
|
|
20
|
+
multiple: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
15
24
|
autocomplete: {},
|
|
16
|
-
disabled: {
|
|
25
|
+
disabled: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: void 0
|
|
28
|
+
},
|
|
17
29
|
name: {},
|
|
18
|
-
required: {
|
|
30
|
+
required: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: void 0
|
|
33
|
+
}
|
|
19
34
|
},
|
|
20
35
|
emits: ["update:modelValue", "update:open"],
|
|
21
36
|
setup(__props, { emit: __emit }) {
|
|
@@ -4,7 +4,7 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_7) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<SidebarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarProps> & Readonly<{}>, {
|
|
7
|
-
collapsible: "
|
|
7
|
+
collapsible: "none" | "icon" | "offcanvas";
|
|
8
8
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
9
9
|
variant: "inset" | "sidebar" | "floating";
|
|
10
10
|
side: "left" | "right";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import GToast_vue_vue_type_script_setup_true_lang_default from "./GToast.vue_vue_type_script_setup_true_lang.js";
|
|
2
|
+
// src/components/gandalf/base/sonner/GToast.vue
|
|
3
|
+
var GToast_default = GToast_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { GToast_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { GandalfToastType } from './index';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** Sonner toast id. When set, the close button dismisses that toast. */
|
|
5
|
+
id?: string | number;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
type?: GandalfToastType;
|
|
9
|
+
class?: HTMLAttributes['class'];
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
type: GandalfToastType;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { cn } from "../../../../lib/utils.js";
|
|
2
|
+
import { gandalfToastCloseVariants, gandalfToastDescriptionVariants, gandalfToastIconVariants, gandalfToastTitleVariants, gandalfToastVariants } from "./index.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref } from "vue";
|
|
4
|
+
import { CheckIcon, ComponentIcon, LoaderCircleIcon, SirenIcon, TriangleAlertIcon, XIcon } from "lucide-vue-next";
|
|
5
|
+
import { toast } from "vue-sonner";
|
|
6
|
+
// src/components/gandalf/base/sonner/GToast.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = { class: "flex min-w-0 flex-1 flex-col self-start" };
|
|
8
|
+
var GToast_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
|
+
__name: "GToast",
|
|
10
|
+
props: {
|
|
11
|
+
id: {},
|
|
12
|
+
title: {},
|
|
13
|
+
description: {},
|
|
14
|
+
type: { default: "default" },
|
|
15
|
+
class: { type: [
|
|
16
|
+
Boolean,
|
|
17
|
+
null,
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Array
|
|
21
|
+
] }
|
|
22
|
+
},
|
|
23
|
+
emits: ["close"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const icons = {
|
|
28
|
+
default: CheckIcon,
|
|
29
|
+
action: LoaderCircleIcon,
|
|
30
|
+
information: ComponentIcon,
|
|
31
|
+
success: CheckIcon,
|
|
32
|
+
warning: TriangleAlertIcon,
|
|
33
|
+
destructive: SirenIcon
|
|
34
|
+
};
|
|
35
|
+
const icon = computed(() => icons[props.type]);
|
|
36
|
+
function close() {
|
|
37
|
+
emit("close");
|
|
38
|
+
if (props.id !== void 0) toast.dismiss(props.id);
|
|
39
|
+
}
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock("div", {
|
|
42
|
+
"data-slot": "toast",
|
|
43
|
+
class: normalizeClass(unref(cn)(unref(gandalfToastVariants)({ type: __props.type }), props.class))
|
|
44
|
+
}, [
|
|
45
|
+
(openBlock(), createBlock(resolveDynamicComponent(icon.value), {
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
class: normalizeClass([unref(gandalfToastIconVariants)({ type: __props.type }), __props.type === "action" && "animate-spin"])
|
|
48
|
+
}, null, 8, ["class"])),
|
|
49
|
+
createElementVNode("div", _hoisted_1, [createElementVNode("p", { class: normalizeClass(unref(gandalfToastTitleVariants)({ type: __props.type })) }, toDisplayString(__props.title), 3), __props.description ? (openBlock(), createElementBlock("p", {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: normalizeClass(unref(gandalfToastDescriptionVariants)())
|
|
52
|
+
}, toDisplayString(__props.description), 3)) : createCommentVNode("", true)]),
|
|
53
|
+
createElementVNode("button", {
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-label": "Close",
|
|
56
|
+
class: normalizeClass(unref(gandalfToastCloseVariants)({ type: __props.type })),
|
|
57
|
+
onClick: close
|
|
58
|
+
}, [createVNode(unref(XIcon))], 2)
|
|
59
|
+
], 2);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export { GToast_vue_vue_type_script_setup_true_lang_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Sonner_default from "../../../ui/sonner/Sonner.js";
|
|
2
|
-
import { createBlock, defineComponent,
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, unref } from "vue";
|
|
3
3
|
// src/components/gandalf/base/sonner/GToaster.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var GToaster_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
5
|
__name: "GToaster",
|
|
@@ -29,7 +29,10 @@ var GToaster_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
29
29
|
setup(__props) {
|
|
30
30
|
const props = __props;
|
|
31
31
|
return (_ctx, _cache) => {
|
|
32
|
-
return openBlock(), createBlock(unref(Sonner_default),
|
|
32
|
+
return openBlock(), createBlock(unref(Sonner_default), mergeProps(props, { style: {
|
|
33
|
+
"--width": "404px",
|
|
34
|
+
...props.style
|
|
35
|
+
} }), null, 16, ["style"]);
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
});
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { ExternalToast } from 'vue-sonner';
|
|
3
|
+
import { default as GToast } from './GToast.vue';
|
|
4
|
+
export { GToast };
|
|
3
5
|
export { default as GToaster } from './GToaster.vue';
|
|
4
6
|
export declare const gandalfToastVariants: (props?: ({
|
|
5
|
-
|
|
7
|
+
type?: "default" | "destructive" | "action" | "information" | "success" | "warning" | null | undefined;
|
|
6
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
9
|
export declare const gandalfToastIconVariants: (props?: ({
|
|
8
|
-
|
|
10
|
+
type?: "default" | "destructive" | "action" | "information" | "success" | "warning" | null | undefined;
|
|
9
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
12
|
export declare const gandalfToastTitleVariants: (props?: ({
|
|
11
|
-
|
|
13
|
+
type?: "default" | "destructive" | "action" | "information" | "success" | "warning" | null | undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
|
+
export declare const gandalfToastDescriptionVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
16
|
+
export declare const gandalfToastCloseVariants: (props?: ({
|
|
17
|
+
type?: "default" | "destructive" | "action" | "information" | "success" | "warning" | null | undefined;
|
|
12
18
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
19
|
export type GandalfToastVariants = VariantProps<typeof gandalfToastVariants>;
|
|
14
|
-
export type
|
|
20
|
+
export type GandalfToastType = NonNullable<GandalfToastVariants['type']>;
|
|
21
|
+
/** @deprecated Use `GandalfToastType`; Figma calls this property Type. */
|
|
22
|
+
export type GandalfToastColor = GandalfToastType;
|
|
15
23
|
export declare const gToast: {
|
|
16
24
|
default: (title: string, description?: string, data?: ExternalToast) => string | number;
|
|
17
25
|
action: (title: string, description?: string, data?: ExternalToast) => string | number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import GToast_default from "./GToast.js";
|
|
2
2
|
import GToaster_default from "./GToaster.js";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { markRaw } from "vue";
|
|
5
5
|
import { toast } from "vue-sonner";
|
|
6
6
|
// src/components/gandalf/base/sonner/index.ts
|
|
7
|
-
var gandalfToastVariants = cva("bg-
|
|
8
|
-
variants: {
|
|
7
|
+
var gandalfToastVariants = cva("bg-base-base text-base-foreground-quiet flex w-[404px] max-w-full gap-4 rounded-2xl border py-3 pr-3 pl-5 shadow-sm", {
|
|
8
|
+
variants: { type: {
|
|
9
9
|
default: "border-default",
|
|
10
10
|
action: "border-action",
|
|
11
11
|
information: "border-information",
|
|
@@ -13,10 +13,10 @@ var gandalfToastVariants = cva("bg-card border rounded-xl shadow-md p-3 flex w-8
|
|
|
13
13
|
warning: "border-warning",
|
|
14
14
|
destructive: "border-destructive"
|
|
15
15
|
} },
|
|
16
|
-
defaultVariants: {
|
|
16
|
+
defaultVariants: { type: "default" }
|
|
17
17
|
});
|
|
18
|
-
var gandalfToastIconVariants = cva("
|
|
19
|
-
variants: {
|
|
18
|
+
var gandalfToastIconVariants = cva("size-[18px] shrink-0 self-center", {
|
|
19
|
+
variants: { type: {
|
|
20
20
|
default: "text-default",
|
|
21
21
|
action: "text-action",
|
|
22
22
|
information: "text-information",
|
|
@@ -24,10 +24,10 @@ var gandalfToastIconVariants = cva("mt-0.5 size-4 shrink-0", {
|
|
|
24
24
|
warning: "text-warning",
|
|
25
25
|
destructive: "text-destructive"
|
|
26
26
|
} },
|
|
27
|
-
defaultVariants: {
|
|
27
|
+
defaultVariants: { type: "default" }
|
|
28
28
|
});
|
|
29
|
-
var gandalfToastTitleVariants = cva("text-
|
|
30
|
-
variants: {
|
|
29
|
+
var gandalfToastTitleVariants = cva("text-body-mdEm truncate", {
|
|
30
|
+
variants: { type: {
|
|
31
31
|
default: "text-default",
|
|
32
32
|
action: "text-action",
|
|
33
33
|
information: "text-information",
|
|
@@ -35,19 +35,31 @@ var gandalfToastTitleVariants = cva("text-sm font-semibold", {
|
|
|
35
35
|
warning: "text-warning",
|
|
36
36
|
destructive: "text-destructive"
|
|
37
37
|
} },
|
|
38
|
-
defaultVariants: {
|
|
38
|
+
defaultVariants: { type: "default" }
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
var gandalfToastDescriptionVariants = cva("text-base-foreground-quiet text-sm leading-[1.3] font-normal");
|
|
41
|
+
var gandalfToastCloseVariants = cva("text-base-foreground-quiet hover:text-base-foreground focus-visible:ring-ring/50 flex shrink-0 cursor-pointer items-start self-start rounded-sm outline-none focus-visible:ring-[3px] [&_svg]:size-4", {
|
|
42
|
+
variants: { type: {
|
|
43
|
+
default: "",
|
|
44
|
+
action: "",
|
|
45
|
+
information: "",
|
|
46
|
+
success: "",
|
|
47
|
+
warning: "",
|
|
48
|
+
destructive: "h-12"
|
|
49
|
+
} },
|
|
50
|
+
defaultVariants: { type: "default" }
|
|
51
|
+
});
|
|
52
|
+
function createToast(type) {
|
|
41
53
|
return (title, description, data) => {
|
|
42
54
|
const id = data?.id ?? crypto.randomUUID();
|
|
43
|
-
return toast.custom(markRaw(
|
|
55
|
+
return toast.custom(markRaw(GToast_default), {
|
|
44
56
|
...data,
|
|
45
57
|
id,
|
|
46
58
|
componentProps: {
|
|
47
59
|
id,
|
|
48
60
|
title,
|
|
49
61
|
description,
|
|
50
|
-
|
|
62
|
+
type
|
|
51
63
|
}
|
|
52
64
|
});
|
|
53
65
|
};
|
|
@@ -60,4 +72,4 @@ var gToast = {
|
|
|
60
72
|
warning: createToast("warning"),
|
|
61
73
|
destructive: createToast("destructive")
|
|
62
74
|
};
|
|
63
|
-
export { GToaster_default as GToaster, gToast, gandalfToastIconVariants, gandalfToastTitleVariants, gandalfToastVariants };
|
|
75
|
+
export { GToast_default as GToast, GToaster_default as GToaster, gToast, gandalfToastCloseVariants, gandalfToastDescriptionVariants, gandalfToastIconVariants, gandalfToastTitleVariants, gandalfToastVariants };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
class?: HTMLAttributes['class'];
|
|
4
|
+
/** Classes for the bordered frame around the table and its footer. */
|
|
5
|
+
containerClass?: HTMLAttributes['class'];
|
|
4
6
|
};
|
|
5
|
-
declare var __VLS_7: {};
|
|
7
|
+
declare var __VLS_7: {}, __VLS_9: {};
|
|
6
8
|
type __VLS_Slots = {} & {
|
|
7
9
|
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
} & {
|
|
11
|
+
footer?: (props: typeof __VLS_9) => any;
|
|
8
12
|
};
|
|
9
13
|
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
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import Table_default from "../../../ui/table/Table.js";
|
|
3
|
-
import { gandalfTableVariants } from "./index.js";
|
|
4
|
-
import { createElementBlock, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { gandalfTableFooterBarVariants, gandalfTableVariants } from "./index.js";
|
|
4
|
+
import { createCommentVNode, createElementBlock, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
5
|
// src/components/gandalf/base/table/GTable.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var GTable_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
7
|
__name: "GTable",
|
|
8
|
-
props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
props: {
|
|
9
|
+
class: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] },
|
|
16
|
+
containerClass: { type: [
|
|
17
|
+
Boolean,
|
|
18
|
+
null,
|
|
19
|
+
String,
|
|
20
|
+
Object,
|
|
21
|
+
Array
|
|
22
|
+
] }
|
|
23
|
+
},
|
|
15
24
|
setup(__props) {
|
|
16
25
|
const props = __props;
|
|
17
26
|
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(gandalfTableVariants)()) }, [createVNode(unref(Table_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
27
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(cn)(unref(gandalfTableVariants)(), props.containerClass)) }, [createVNode(unref(Table_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
19
28
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
20
29
|
_: 3
|
|
21
|
-
}, 8, ["class"])
|
|
30
|
+
}, 8, ["class"]), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
31
|
+
key: 0,
|
|
32
|
+
"data-slot": "table-footer-bar",
|
|
33
|
+
class: normalizeClass(unref(gandalfTableFooterBarVariants)())
|
|
34
|
+
}, [renderSlot(_ctx.$slots, "footer")], 2)) : createCommentVNode("", true)], 2);
|
|
22
35
|
};
|
|
23
36
|
}
|
|
24
37
|
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'vue';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
+
/** Second line (Figma: Text Configuration=Double). */
|
|
4
|
+
description?: string;
|
|
3
5
|
class?: HTMLAttributes['class'];
|
|
4
6
|
};
|
|
5
|
-
declare var __VLS_7: {};
|
|
7
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {};
|
|
6
8
|
type __VLS_Slots = {} & {
|
|
7
9
|
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
} & {
|
|
11
|
+
description?: (props: typeof __VLS_9) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_11) => any;
|
|
8
14
|
};
|
|
9
15
|
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
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
package/dist/components/gandalf/base/table/GTableCell.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import TableCell_default from "../../../ui/table/TableCell.js";
|
|
3
|
-
import { gandalfTableCellVariants } from "./index.js";
|
|
4
|
-
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { gandalfTableCellVariants, gandalfTableDescriptionVariants } from "./index.js";
|
|
4
|
+
import { createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
5
5
|
// src/components/gandalf/base/table/GTableCell.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "flex min-w-0 flex-col"
|
|
9
|
+
};
|
|
10
|
+
var _hoisted_2 = { class: "block truncate" };
|
|
6
11
|
var GTableCell_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
7
12
|
__name: "GTableCell",
|
|
8
|
-
props: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
props: {
|
|
14
|
+
description: {},
|
|
15
|
+
class: { type: [
|
|
16
|
+
Boolean,
|
|
17
|
+
null,
|
|
18
|
+
String,
|
|
19
|
+
Object,
|
|
20
|
+
Array
|
|
21
|
+
] }
|
|
22
|
+
},
|
|
15
23
|
setup(__props) {
|
|
16
24
|
const props = __props;
|
|
17
25
|
return (_ctx, _cache) => {
|
|
18
26
|
return openBlock(), createBlock(unref(TableCell_default), { class: normalizeClass(unref(cn)(unref(gandalfTableCellVariants)(), props.class)) }, {
|
|
19
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
27
|
+
default: withCtx(() => [__props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_1, [createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "default")]), createElementVNode("span", { class: normalizeClass(unref(gandalfTableDescriptionVariants)({ type: "cell" })) }, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 2)])) : renderSlot(_ctx.$slots, "default", { key: 1 })]),
|
|
20
28
|
_: 3
|
|
21
29
|
}, 8, ["class"]);
|
|
22
30
|
};
|
package/dist/components/gandalf/base/table/GTableFooter.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import TableFooter_default from "../../../ui/table/TableFooter.js";
|
|
3
|
+
import { gandalfTableFooterVariants } from "./index.js";
|
|
3
4
|
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
5
|
// src/components/gandalf/base/table/GTableFooter.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var GTableFooter_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -14,7 +15,7 @@ var GTableFooter_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
14
15
|
setup(__props) {
|
|
15
16
|
const props = __props;
|
|
16
17
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(TableFooter_default), { class: normalizeClass(unref(cn)(props.class)) }, {
|
|
18
|
+
return openBlock(), createBlock(unref(TableFooter_default), { class: normalizeClass(unref(cn)(unref(gandalfTableFooterVariants)(), props.class)) }, {
|
|
18
19
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
20
|
_: 3
|
|
20
21
|
}, 8, ["class"]);
|