@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @unergy-dev/gandalf
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d72d7d2: **Breaking:** `GAccordion` follows the Accordeon page in Figma. `variant` is now `main` (default, Accordeon Main) or `blended` (Accordeon Blended); `default`, `layout` and `blended-main` are gone. `GAccordion` takes `category` (`main` / `default`) for Blended, and `GAccordionItem` takes `type` (`visualization` / `table`) for Main. `GAccordionTrigger` draws Figma's 48px header: uppercase 12px semibold title, a `label` badge (Tonal, Outlined in Blended Default; `label` and `label-icon` slots), a `count` (Main), and the "Mostrar" / "Ocultar" action (`expandText`, `collapseText`), with the alpha hover / pressed overlays and muted disabled colors. `indicatorColor`, `indicatorPosition` and the `indicator-label` slot are removed: Figma fixes the chevron's place and color for each variant. `GAccordionContent` adds no padding. The CVAs are exported as `gandalfAccordionVariants`, `gandalfAccordionItemVariants` and `gandalfAccordionTriggerVariants`; `gandalfAccordionIndicatorVariants` and `ACCORDION_VARIANT_KEY` are removed.
|
|
8
|
+
- f1c1159: **Breaking:** `GAvatar` and `GKitAvatar` follow the Avatar page in Figma. `variant="rounded" | "square"` becomes `type="circle" | "square"` (square is now 8px, `corner/lg`). New props `size` (`xs` 24px, `sm` 32px by default, `md` 40px, `lg` 48px, with bold 12 / 14 / 16 / 18px text) and `semantic` (`default`, `action`, `information`, `success`, `warning`, `destructive`). `GKitAvatarGroup` overlaps by half the avatar size, without ring, and takes `type`, `size` and `more` (a last "+N" avatar). New `GAvatarRol` (Avatar Rol: legal, ambiental, forestal, civil, electrico).
|
|
9
|
+
- 7952388: `GBreadcrumb` follows the Breadcrumbs page in Figma: new `size` prop (`md` / `xs`), links in `base/foreground-extra-quiet` that turn `base/foreground` on hover together with their chevron, current page in semibold `base/foreground`, and Figma's spacing (8px between text and chevron in md, none in xs). The CVAs (`gandalfBreadcrumb*Variants`) and `GandalfBreadcrumbSize` are exported.
|
|
10
|
+
- 7e14810: New components from the Figma Chat page: `GInputChat` (the field to write a message, with attachments, attach buttons, send button and an editing state), `GMessageCard` (a chat message with avatar, ⋮ menu, comment, images, attachments and date) and `GMiniatures` (an attachment chip, as a file or an image thumbnail).
|
|
11
|
+
- 903fcfe: **Breaking:** `GDialog` and `GAlertDialog` follow the Figma page Dialogs. The card is `card/card` with a 24px radius, the `LG` elevation and no padding, 416px wide by default. `GDialogHeader` is Figma's Dialog Header (72px, 24px semibold title) with `type` `left` (default; `#icon` slot and a Ghost primary close button) or `center`. The close button moved from the corner of `GDialogContent` to `GDialogHeader`: `GDialogContent` no longer takes `showCloseButton` (use it on `GDialogHeader`). New `GDialogBody` and `GAlertDialogBody` for the content bands; put the description inside one. `GDialogFooter` is Figma's Group Button (24px padding, buttons in a row on the right) and its `showCloseButton` now renders an Outline primary `GButton` (`closeLabel`). `GAlertDialogHeader` is centred by default, with no close button; `GAlertDialogAction` and `GAlertDialogCancel` take `variant` and `size` like `GButton` (Tonal primary and Outline primary by default). The dialog CVAs are exported as `gandalfDialog*Variants`.
|
|
12
|
+
- 97489e1: New components from the Figma **Layouts** page: `GHeader` (the app bar with the Unergy logo, sidebar toggle and actions), `GLayout` (the app shell: header, `GKitSidebar` below it and the scrolling page), `GLayoutTitle` (First and Second Level titles) and `GLayoutBreadcrumbs` (back button, breadcrumbs and tools of a Second Level screen).
|
|
13
|
+
- 5221210: New components from the Figma **Reports** page: `GCircleReport` and `GAvatarReport` (report type badges), `GPin` (map pin with a layer name), `GIcons` (illustrated map markers) and `GPickerItem` (icon or label item of the layer style picker, with `v-model`).
|
|
14
|
+
- ba1b6ae: Table aligned with Figma: 12px-rounded frame with `bni/border`, header cells 12px semibold in `base/foreground-extra-quiet` without forced uppercase, body cells 14px in `base/inverse`, `accent` row hover, `description` prop/slot for two-line headers and cells (Text Configuration=Double), `action` slot shown on header hover, `footer` slot on `GTable` for the footer bar and `containerClass` for the frame.
|
|
15
|
+
- da9fa52: **Breaking:** `GTabsList` follows the Figma **Tabs** page. `variant` is now `'toggle-primary'` (default, was `'base'`), `'toggle-secondary'` (new) or `'tab'` (was `'outline'`). Hover and press use Figma's alpha overlays, the `tab` variant draws a 1px `bni/border` line, 16px spacing, a 3px `primary` underline and `primary/primary-quiet` on hover, and the toggle items use 16px semibold labels.
|
|
16
|
+
- c916ba2: Toast matches the Figma page: 404px card on `base/base`, 16px radius, elevation SM, padding 12/12/12/20 and 16px gaps. Title in Body/mdEm (16px semibold) truncated, description 14px with a 1.3 line height in `base/foreground-quiet`, 18px icons (`check`, `loader-circle`, `component`, `triangle-alert`, `siren`) and a 16px close icon pinned to the top. The toast card is now exported as `GToast` (prop `type`, as in Figma), and `GToaster` sets sonner's `--width` to 404px. `GandalfToastColor` is deprecated in favor of `GandalfToastType`, and the toast CVAs (`gandalfToastVariants`, `gandalfToastIconVariants`, `gandalfToastTitleVariants`) take `type` instead of `color`.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 95e0527: Fix `GDialog`, `GAlertDialog` and `GPopover` casting absent boolean props to `false`: without `v-model:open` they never opened from their trigger, and `GDialog` was not modal (no overlay). They are now uncontrolled unless `open` is passed, and `GDialog` is modal by default.
|
|
21
|
+
- b489978: Fix `GSelect` never opening when used without `v-model:open`: an absent `open` was cast to `false`, so the select stayed closed. It is now uncontrolled unless `open` is passed.
|
|
22
|
+
|
|
23
|
+
## 0.5.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- 61a6314: Add `GKitSidebar`, a navigation rail built from `GSidebar`: pass `groups` of items (`value`, `title`, `icon`, `to` / `href`, `disabled`) and the active `value` with `v-model`. It hides group titles without an icon in the collapsed rail, shows a tooltip per item, renders `to` items with the `linkAs` component (`NuxtLink`, `RouterLink`…) and has `header`, `footer` and `item` slots. New types: `SidebarNavGroup`, `SidebarNavItem`.
|
|
28
|
+
|
|
29
|
+
## 0.4.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- 3130e9a: `GInput` has `leading` and `trailing` slots for the icons of Figma's Input Field. Native attributes now always go to the `<input>`.
|
|
34
|
+
- e22386e: `GMenu`, `GMenuTrigger`, `GMenuContent`, `GMenuItem`, `GMenuLabel` and `GMenuSeparator`: Figma's Dropdown menu with free content (icons, group titles, separators and a `destructive` item). `gandalfMenuItemVariants` takes a `variant`.
|
|
35
|
+
- 14a53a0: The `text-display-*`, `text-heading-*`, `text-body-*` and `text-action-*` utilities set the line height of their Figma style: `normal` (Figma's "Auto") for all of them, and 1.5 for `text-body-md` and `text-body-mdEm`. Before, they inherited Tailwind's line height for each size.
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- 7c4cea0: `GDetailsPanel` has no shadow, as in Figma.
|
|
40
|
+
- b3d5396: `GFilesCard` of type `file` shows a file icon before its title on hover, and its preview icon is quiet at rest, as in Figma.
|
|
41
|
+
- 855b793: `GSegmentedButton` with two segments draws its divider in `primary/foreground-loud`, as Type=Two in Figma.
|
|
42
|
+
- 54fd18e: `GTooltipContent` draws Figma's arrow: a 12×8px triangle with a sharp tip, instead of shadcn's rotated square.
|
|
43
|
+
- 54fd18e: Fix `GTooltip` ignoring its props and events: `open`, `v-model:open`, `delayDuration` and the rest now reach the tooltip.
|
|
44
|
+
|
|
3
45
|
## 0.3.0
|
|
4
46
|
|
|
5
47
|
### Minor Changes
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { AccordionRootProps } from 'reka-ui';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
-
import { GandalfAccordionVariant } from './index';
|
|
3
|
+
import { GandalfAccordionCategory, GandalfAccordionVariant } from './index';
|
|
4
4
|
type __VLS_Props = AccordionRootProps & {
|
|
5
5
|
class?: HTMLAttributes['class'];
|
|
6
6
|
variant?: GandalfAccordionVariant;
|
|
7
|
+
category?: GandalfAccordionCategory;
|
|
7
8
|
};
|
|
8
9
|
declare var __VLS_9: {
|
|
9
10
|
modelValue: import('reka-ui').AcceptableValue | import('reka-ui').AcceptableValue[] | undefined;
|
|
10
|
-
}, __VLS_11: {
|
|
11
|
-
modelValue: import('reka-ui').AcceptableValue | import('reka-ui').AcceptableValue[] | undefined;
|
|
12
11
|
};
|
|
13
12
|
type __VLS_Slots = {} & {
|
|
14
13
|
default?: (props: typeof __VLS_9) => any;
|
|
15
|
-
} & {
|
|
16
|
-
default?: (props: typeof __VLS_11) => any;
|
|
17
14
|
};
|
|
18
15
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
16
|
"update:modelValue": (value: string | string[] | undefined) => any;
|
|
20
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
18
|
"onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
|
|
22
|
-
}>, {
|
|
19
|
+
}>, {
|
|
20
|
+
collapsible: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
unmountOnHide: boolean;
|
|
23
|
+
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
24
|
+
variant: GandalfAccordionVariant;
|
|
25
|
+
category: GandalfAccordionCategory;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
28
|
declare const _default: typeof __VLS_export;
|
|
25
29
|
export default _default;
|
package/dist/components/gandalf/base/accordion/GAccordion.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,47 +1,62 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import Accordion_default from "../../../ui/accordion/Accordion.js";
|
|
3
|
-
import {
|
|
4
|
-
import { computed, createBlock,
|
|
3
|
+
import { ACCORDION_KEY, gandalfAccordionVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, provide, renderSlot, unref, withCtx } from "vue";
|
|
5
5
|
import { reactiveOmit } from "@vueuse/core";
|
|
6
6
|
// src/components/gandalf/base/accordion/GAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var GAccordion_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
8
|
__name: "GAccordion",
|
|
9
9
|
props: {
|
|
10
|
-
collapsible: {
|
|
11
|
-
|
|
10
|
+
collapsible: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: void 0
|
|
17
|
+
},
|
|
12
18
|
dir: {},
|
|
13
19
|
orientation: {},
|
|
14
|
-
unmountOnHide: {
|
|
20
|
+
unmountOnHide: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
15
24
|
asChild: { type: Boolean },
|
|
16
25
|
as: {},
|
|
17
26
|
type: {},
|
|
18
27
|
modelValue: {},
|
|
19
28
|
defaultValue: {},
|
|
20
|
-
class: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
class: {
|
|
30
|
+
type: [
|
|
31
|
+
Boolean,
|
|
32
|
+
null,
|
|
33
|
+
String,
|
|
34
|
+
Object,
|
|
35
|
+
Array
|
|
36
|
+
],
|
|
37
|
+
default: void 0
|
|
38
|
+
},
|
|
39
|
+
variant: { default: "main" },
|
|
40
|
+
category: { default: "main" }
|
|
28
41
|
},
|
|
29
42
|
emits: ["update:modelValue"],
|
|
30
43
|
setup(__props, { emit: __emit }) {
|
|
31
44
|
const props = __props;
|
|
32
45
|
const emits = __emit;
|
|
33
|
-
const delegatedProps = reactiveOmit(props, "class", "variant");
|
|
34
|
-
provide(
|
|
35
|
-
|
|
46
|
+
const delegatedProps = reactiveOmit(props, "class", "variant", "category");
|
|
47
|
+
provide(ACCORDION_KEY, computed(() => ({
|
|
48
|
+
variant: props.variant,
|
|
49
|
+
category: props.category
|
|
50
|
+
})));
|
|
36
51
|
return (_ctx, _cache) => {
|
|
37
52
|
return openBlock(), createBlock(unref(Accordion_default), mergeProps(unref(delegatedProps), {
|
|
38
|
-
class: unref(cn)(unref(gandalfAccordionVariants)({
|
|
53
|
+
class: unref(cn)(unref(gandalfAccordionVariants)({
|
|
54
|
+
variant: __props.variant,
|
|
55
|
+
category: __props.category
|
|
56
|
+
}), props.class),
|
|
39
57
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event))
|
|
40
58
|
}), {
|
|
41
|
-
default: withCtx((slotProps) => [
|
|
42
|
-
key: 0,
|
|
43
|
-
class: normalizeClass(unref(cn)("overflow-hidden rounded-xl border border-transparent", props.class))
|
|
44
|
-
}, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))], 2)) : renderSlot(_ctx.$slots, "default", normalizeProps(mergeProps({ key: 1 }, slotProps)))]),
|
|
59
|
+
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
45
60
|
_: 3
|
|
46
61
|
}, 16, ["class"]);
|
|
47
62
|
};
|
|
@@ -21,7 +21,7 @@ var GAccordionContent_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const delegatedProps = reactiveOmit(props, "class");
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createBlock(unref(AccordionContent_default), mergeProps(unref(delegatedProps), { class: unref(cn)(
|
|
24
|
+
return openBlock(), createBlock(unref(AccordionContent_default), mergeProps(unref(delegatedProps), { class: unref(cn)("pb-0", props.class) }), {
|
|
25
25
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
26
|
_: 3
|
|
27
27
|
}, 16, ["class"]);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { AccordionItemProps } from 'reka-ui';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { GandalfAccordionType } from './index';
|
|
3
4
|
type __VLS_Props = AccordionItemProps & {
|
|
4
5
|
class?: HTMLAttributes['class'];
|
|
6
|
+
/** Figma "Accordeon Main" Type. Only used by `variant="main"`. */
|
|
7
|
+
type?: GandalfAccordionType;
|
|
5
8
|
};
|
|
6
9
|
declare var __VLS_7: {
|
|
7
10
|
open: boolean;
|
|
@@ -9,7 +12,12 @@ declare var __VLS_7: {
|
|
|
9
12
|
type __VLS_Slots = {} & {
|
|
10
13
|
default?: (props: typeof __VLS_7) => any;
|
|
11
14
|
};
|
|
12
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
unmountOnHide: boolean;
|
|
18
|
+
type: GandalfAccordionType;
|
|
19
|
+
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
22
|
declare const _default: typeof __VLS_export;
|
|
15
23
|
export default _default;
|
package/dist/components/gandalf/base/accordion/GAccordionItem.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,31 +1,49 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import AccordionItem_default from "../../../ui/accordion/AccordionItem.js";
|
|
3
|
-
import {
|
|
4
|
-
import { computed, createBlock, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { ACCORDION_ITEM_KEY, ACCORDION_KEY, gandalfAccordionItemVariants } from "./index.js";
|
|
4
|
+
import { computed, createBlock, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, openBlock, provide, renderSlot, unref, withCtx } from "vue";
|
|
5
5
|
import { reactiveOmit } from "@vueuse/core";
|
|
6
6
|
// src/components/gandalf/base/accordion/GAccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var GAccordionItem_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
8
8
|
__name: "GAccordionItem",
|
|
9
9
|
props: {
|
|
10
|
-
disabled: {
|
|
10
|
+
disabled: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: void 0
|
|
13
|
+
},
|
|
11
14
|
value: {},
|
|
12
|
-
unmountOnHide: {
|
|
15
|
+
unmountOnHide: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: void 0
|
|
18
|
+
},
|
|
13
19
|
asChild: { type: Boolean },
|
|
14
20
|
as: {},
|
|
15
|
-
class: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
class: {
|
|
22
|
+
type: [
|
|
23
|
+
Boolean,
|
|
24
|
+
null,
|
|
25
|
+
String,
|
|
26
|
+
Object,
|
|
27
|
+
Array
|
|
28
|
+
],
|
|
29
|
+
default: void 0
|
|
30
|
+
},
|
|
31
|
+
type: { default: "visualization" }
|
|
22
32
|
},
|
|
23
33
|
setup(__props) {
|
|
24
34
|
const props = __props;
|
|
25
|
-
const delegatedProps = reactiveOmit(props, "class");
|
|
26
|
-
const
|
|
35
|
+
const delegatedProps = reactiveOmit(props, "class", "type");
|
|
36
|
+
const accordion = inject(ACCORDION_KEY, computed(() => ({
|
|
37
|
+
variant: "main",
|
|
38
|
+
category: "main"
|
|
39
|
+
})));
|
|
40
|
+
const context = computed(() => ({
|
|
41
|
+
...accordion.value,
|
|
42
|
+
type: props.type
|
|
43
|
+
}));
|
|
44
|
+
provide(ACCORDION_ITEM_KEY, context);
|
|
27
45
|
return (_ctx, _cache) => {
|
|
28
|
-
return openBlock(), createBlock(unref(AccordionItem_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfAccordionItemVariants)(
|
|
46
|
+
return openBlock(), createBlock(unref(AccordionItem_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfAccordionItemVariants)(context.value), props.class) }), {
|
|
29
47
|
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
30
48
|
_: 3
|
|
31
49
|
}, 16, ["class"]);
|
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
import { AccordionTriggerProps } from 'reka-ui';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
-
import { GandalfAccordionIndicatorColor, GandalfAccordionIndicatorPosition } from './index';
|
|
4
3
|
type __VLS_Props = AccordionTriggerProps & {
|
|
5
4
|
class?: HTMLAttributes['class'];
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
/** Text of the badge ("Label" in Figma). The `label` slot replaces the whole badge. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Text after the badge ("Count#" in Figma). Main only. */
|
|
8
|
+
count?: string | number;
|
|
9
|
+
/** Action text of a closed Table item. */
|
|
10
|
+
expandText?: string;
|
|
11
|
+
/** Action text of an open Main item. */
|
|
12
|
+
collapseText?: string;
|
|
8
13
|
};
|
|
9
|
-
declare var __VLS_7: {},
|
|
14
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_17: {}, __VLS_29: {}, __VLS_31: {}, __VLS_39: {};
|
|
10
15
|
type __VLS_Slots = {} & {
|
|
11
16
|
default?: (props: typeof __VLS_7) => any;
|
|
12
17
|
} & {
|
|
13
|
-
|
|
18
|
+
label?: (props: typeof __VLS_9) => any;
|
|
14
19
|
} & {
|
|
15
|
-
|
|
20
|
+
count?: (props: typeof __VLS_17) => any;
|
|
21
|
+
} & {
|
|
22
|
+
default?: (props: typeof __VLS_29) => any;
|
|
23
|
+
} & {
|
|
24
|
+
label?: (props: typeof __VLS_31) => any;
|
|
25
|
+
} & {
|
|
26
|
+
'label-icon'?: (props: typeof __VLS_39) => any;
|
|
16
27
|
};
|
|
17
28
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
|
+
label: string;
|
|
18
30
|
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
count: string | number;
|
|
32
|
+
expandText: string;
|
|
33
|
+
collapseText: string;
|
|
21
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
35
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
36
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { cn } from "../../../../lib/utils.js";
|
|
2
2
|
import AccordionTrigger_default from "../../../ui/accordion/AccordionTrigger.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import GBadge_default from "../badge/GBadge.js";
|
|
4
|
+
import { ACCORDION_ITEM_KEY, gandalfAccordionTriggerVariants } from "./index.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
5
6
|
import { reactiveOmit } from "@vueuse/core";
|
|
6
7
|
import { ChevronDown } from "lucide-vue-next";
|
|
7
8
|
// src/components/gandalf/base/accordion/GAccordionTrigger.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var _hoisted_1 = { class: "flex min-w-0 flex-1 items-center gap-2" };
|
|
10
|
+
var _hoisted_2 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "text-base-foreground-quiet group-data-[disabled]:text-muted-foreground-quiet truncate text-base leading-normal"
|
|
13
|
+
};
|
|
14
|
+
var _hoisted_3 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "group-data-[state=open]:hidden"
|
|
17
|
+
};
|
|
18
|
+
var _hoisted_4 = { class: "hidden group-data-[state=open]:inline" };
|
|
19
|
+
var _hoisted_5 = { class: "flex min-w-0 flex-1 items-center gap-2" };
|
|
20
|
+
var chevronClass = "size-4 shrink-0 transition-transform duration-200 group-data-[state=open]:rotate-180";
|
|
8
21
|
var GAccordionTrigger_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
9
22
|
__name: "GAccordionTrigger",
|
|
10
23
|
props: {
|
|
@@ -20,16 +33,53 @@ var GAccordionTrigger_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
|
|
|
20
33
|
],
|
|
21
34
|
default: void 0
|
|
22
35
|
},
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
label: { default: void 0 },
|
|
37
|
+
count: { default: void 0 },
|
|
38
|
+
expandText: { default: "Mostrar" },
|
|
39
|
+
collapseText: { default: "Ocultar" }
|
|
25
40
|
},
|
|
26
41
|
setup(__props) {
|
|
27
42
|
const props = __props;
|
|
28
|
-
const delegatedProps = reactiveOmit(props, "class", "
|
|
43
|
+
const delegatedProps = reactiveOmit(props, "class", "label", "count", "expandText", "collapseText");
|
|
44
|
+
const slots = useSlots();
|
|
45
|
+
const item = inject(ACCORDION_ITEM_KEY, computed(() => ({
|
|
46
|
+
variant: "main",
|
|
47
|
+
category: "main",
|
|
48
|
+
type: "visualization"
|
|
49
|
+
})));
|
|
50
|
+
const isMain = computed(() => item.value.variant === "main");
|
|
51
|
+
const isTable = computed(() => item.value.type === "table");
|
|
52
|
+
const isDefault = computed(() => item.value.category === "default");
|
|
53
|
+
const hasLabel = computed(() => props.label !== void 0 || !!slots.label);
|
|
54
|
+
const hasCount = computed(() => props.count !== void 0 || !!slots.count);
|
|
55
|
+
const titleClass = computed(() => cn("text-base-foreground-quiet group-data-[disabled]:text-muted-foreground-quiet truncate text-xs leading-[normal] font-semibold uppercase", !isMain.value && isDefault.value && "group-data-[state=open]:text-action group-data-[disabled]:group-data-[state=open]:text-muted-foreground-quiet"));
|
|
56
|
+
const badgeClass = computed(() => cn("group-data-[disabled]:bg-muted group-data-[disabled]:text-muted-foreground-quiet shrink-0", !isMain.value && isDefault.value && "group-data-[disabled]:border-muted-foreground-quiet"));
|
|
57
|
+
const actionClass = computed(() => cn("text-base-foreground group-data-[state=open]:text-action flex shrink-0 items-center gap-2 text-sm leading-[normal] font-semibold", isTable.value && "group-data-[disabled]:text-muted-foreground-quiet group-data-[disabled]:group-data-[state=open]:text-muted-foreground-quiet"));
|
|
29
58
|
return (_ctx, _cache) => {
|
|
30
|
-
return openBlock(), createBlock(unref(AccordionTrigger_default), mergeProps(unref(delegatedProps), { class: unref(cn)(
|
|
31
|
-
icon: withCtx(() => [
|
|
32
|
-
default: withCtx(() => [
|
|
59
|
+
return openBlock(), createBlock(unref(AccordionTrigger_default), mergeProps(unref(delegatedProps), { class: unref(cn)(unref(gandalfAccordionTriggerVariants)(unref(item)), props.class) }), {
|
|
60
|
+
icon: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("span", { class: "hidden" }, null, -1)])]),
|
|
61
|
+
default: withCtx(() => [isMain.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_1, [
|
|
62
|
+
createElementVNode("span", { class: normalizeClass(titleClass.value) }, [renderSlot(_ctx.$slots, "default")], 2),
|
|
63
|
+
renderSlot(_ctx.$slots, "label", {}, () => [hasLabel.value ? (openBlock(), createBlock(unref(GBadge_default), {
|
|
64
|
+
key: 0,
|
|
65
|
+
class: normalizeClass(badgeClass.value)
|
|
66
|
+
}, {
|
|
67
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.label), 1)]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 8, ["class"])) : createCommentVNode("", true)]),
|
|
70
|
+
hasCount.value ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "count", {}, () => [createTextVNode(toDisplayString(__props.count), 1)])])) : createCommentVNode("", true)
|
|
71
|
+
]), createElementVNode("span", { class: normalizeClass(actionClass.value) }, [
|
|
72
|
+
isTable.value ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.expandText), 1)) : createCommentVNode("", true),
|
|
73
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.collapseText), 1),
|
|
74
|
+
createVNode(unref(ChevronDown), { class: normalizeClass(chevronClass) })
|
|
75
|
+
], 2)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("span", _hoisted_5, [createVNode(unref(ChevronDown), { class: normalizeClass(unref(cn)(chevronClass, "text-base-foreground group-data-[state=open]:text-action group-data-[disabled]:text-muted-foreground-quiet group-data-[disabled]:group-data-[state=open]:text-muted-foreground-quiet")) }, null, 8, ["class"]), createElementVNode("span", { class: normalizeClass(titleClass.value) }, [renderSlot(_ctx.$slots, "default")], 2)]), renderSlot(_ctx.$slots, "label", {}, () => [hasLabel.value ? (openBlock(), createBlock(unref(GBadge_default), {
|
|
76
|
+
key: 0,
|
|
77
|
+
variant: isDefault.value ? "outlined" : "tonal",
|
|
78
|
+
class: normalizeClass(badgeClass.value)
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "label-icon"), createTextVNode(" " + toDisplayString(__props.label), 1)]),
|
|
81
|
+
_: 3
|
|
82
|
+
}, 8, ["variant", "class"])) : createCommentVNode("", true)])], 64))]),
|
|
33
83
|
_: 3
|
|
34
84
|
}, 16, ["class"]);
|
|
35
85
|
};
|
|
@@ -5,16 +5,29 @@ export { default as GAccordionItem } from './GAccordionItem.vue';
|
|
|
5
5
|
export { default as GAccordionTrigger } from './GAccordionTrigger.vue';
|
|
6
6
|
export { default as GAccordionContent } from './GAccordionContent.vue';
|
|
7
7
|
export declare const gandalfAccordionVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "main" | "blended" | null | undefined;
|
|
9
|
+
category?: "default" | "main" | null | undefined;
|
|
9
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
11
|
export declare const gandalfAccordionItemVariants: (props?: ({
|
|
11
|
-
variant?: "
|
|
12
|
+
variant?: "main" | "blended" | null | undefined;
|
|
13
|
+
category?: "default" | "main" | null | undefined;
|
|
14
|
+
type?: "table" | "visualization" | null | undefined;
|
|
12
15
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
color?: "default" | "action" | null | undefined;
|
|
16
|
+
export declare const gandalfAccordionTriggerVariants: (props?: ({
|
|
17
|
+
variant?: "main" | "blended" | null | undefined;
|
|
18
|
+
type?: "table" | "visualization" | null | undefined;
|
|
17
19
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
|
-
export type
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
20
|
+
export type GandalfAccordionVariants = VariantProps<typeof gandalfAccordionVariants>;
|
|
21
|
+
export type GandalfAccordionVariant = NonNullable<GandalfAccordionVariants['variant']>;
|
|
22
|
+
export type GandalfAccordionCategory = NonNullable<GandalfAccordionVariants['category']>;
|
|
23
|
+
export type GandalfAccordionItemVariants = VariantProps<typeof gandalfAccordionItemVariants>;
|
|
24
|
+
export type GandalfAccordionType = NonNullable<GandalfAccordionItemVariants['type']>;
|
|
25
|
+
export interface GandalfAccordionContext {
|
|
26
|
+
variant: GandalfAccordionVariant;
|
|
27
|
+
category: GandalfAccordionCategory;
|
|
28
|
+
}
|
|
29
|
+
export interface GandalfAccordionItemContext extends GandalfAccordionContext {
|
|
30
|
+
type: GandalfAccordionType;
|
|
31
|
+
}
|
|
32
|
+
export declare const ACCORDION_KEY: InjectionKey<ComputedRef<GandalfAccordionContext>>;
|
|
33
|
+
export declare const ACCORDION_ITEM_KEY: InjectionKey<ComputedRef<GandalfAccordionItemContext>>;
|
|
@@ -4,30 +4,95 @@ import GAccordionTrigger_default from "./GAccordionTrigger.js";
|
|
|
4
4
|
import GAccordionContent_default from "./GAccordionContent.js";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
// src/components/gandalf/base/accordion/index.ts
|
|
7
|
-
var gandalfAccordionVariants = cva("w-full", {
|
|
8
|
-
variants: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
var gandalfAccordionVariants = cva("flex w-full flex-col", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
main: "gap-3",
|
|
11
|
+
blended: ""
|
|
12
|
+
},
|
|
13
|
+
category: {
|
|
14
|
+
main: "",
|
|
15
|
+
default: ""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
compoundVariants: [{
|
|
19
|
+
variant: "blended",
|
|
20
|
+
category: "main",
|
|
21
|
+
class: "gap-3"
|
|
22
|
+
}, {
|
|
23
|
+
variant: "blended",
|
|
24
|
+
category: "default",
|
|
25
|
+
class: "gap-0"
|
|
26
|
+
}],
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "main",
|
|
29
|
+
category: "main"
|
|
30
|
+
}
|
|
15
31
|
});
|
|
16
|
-
var gandalfAccordionItemVariants = cva("", {
|
|
17
|
-
variants: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
var gandalfAccordionItemVariants = cva("overflow-hidden", {
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
main: "bg-card rounded-xl border-0",
|
|
36
|
+
blended: ""
|
|
37
|
+
},
|
|
38
|
+
category: {
|
|
39
|
+
main: "",
|
|
40
|
+
default: ""
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
visualization: "",
|
|
44
|
+
table: ""
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
compoundVariants: [
|
|
48
|
+
{
|
|
49
|
+
variant: "main",
|
|
50
|
+
type: "table",
|
|
51
|
+
class: "data-[state=open]:border-bni-border border border-transparent last:border-b"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
variant: "blended",
|
|
55
|
+
category: "main",
|
|
56
|
+
class: "data-[state=open]:border-bni-border-extra-loud bg-card rounded-xl border border-transparent last:border-b"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
variant: "blended",
|
|
60
|
+
category: "default",
|
|
61
|
+
class: "bg-base-base border-bni-border data-[disabled]:bg-base-loud border-b last:border-b-0"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
variant: "main",
|
|
66
|
+
category: "main",
|
|
67
|
+
type: "visualization"
|
|
68
|
+
}
|
|
24
69
|
});
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
70
|
+
var gandalfAccordionTriggerVariants = cva([
|
|
71
|
+
"group h-12 items-center gap-4 rounded-none px-4 py-0 text-xs font-normal",
|
|
72
|
+
"hover:overlay-dark-8 active:overlay-dark-12 hover:no-underline",
|
|
73
|
+
"disabled:cursor-not-allowed disabled:opacity-100",
|
|
74
|
+
"focus-visible:ring-ring focus-visible:border-bni-border focus-visible:ring-2 focus-visible:ring-inset"
|
|
75
|
+
].join(" "), {
|
|
76
|
+
variants: {
|
|
77
|
+
variant: {
|
|
78
|
+
main: "",
|
|
79
|
+
blended: "data-[state=open]:border-bni-border data-[state=open]:border-b"
|
|
80
|
+
},
|
|
81
|
+
type: {
|
|
82
|
+
visualization: "",
|
|
83
|
+
table: ""
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
compoundVariants: [{
|
|
87
|
+
variant: "main",
|
|
88
|
+
type: "table",
|
|
89
|
+
class: "data-[state=open]:border-bni-border data-[state=open]:border-b"
|
|
90
|
+
}],
|
|
91
|
+
defaultVariants: {
|
|
92
|
+
variant: "main",
|
|
93
|
+
type: "visualization"
|
|
94
|
+
}
|
|
32
95
|
});
|
|
33
|
-
|
|
96
|
+
var ACCORDION_KEY = Symbol("gandalf-accordion");
|
|
97
|
+
var ACCORDION_ITEM_KEY = Symbol("gandalf-accordion-item");
|
|
98
|
+
export { ACCORDION_ITEM_KEY, ACCORDION_KEY, GAccordion_default as GAccordion, GAccordionContent_default as GAccordionContent, GAccordionItem_default as GAccordionItem, GAccordionTrigger_default as GAccordionTrigger, gandalfAccordionItemVariants, gandalfAccordionTriggerVariants, gandalfAccordionVariants };
|
|
@@ -7,7 +7,10 @@ declare const __VLS_base: import('vue').DefineComponent<AlertDialogProps, {}, {}
|
|
|
7
7
|
"update:open": (value: boolean) => any;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<AlertDialogProps> & Readonly<{
|
|
9
9
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
-
}>, {
|
|
10
|
+
}>, {
|
|
11
|
+
open: boolean;
|
|
12
|
+
defaultOpen: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
15
|
declare const _default: typeof __VLS_export;
|
|
13
16
|
export default _default;
|
|
@@ -4,8 +4,14 @@ import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref,
|
|
|
4
4
|
var GAlertDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
5
5
|
__name: "GAlertDialog",
|
|
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
|
unmountOnHide: { type: Boolean }
|
|
10
16
|
},
|
|
11
17
|
emits: ["update:open"],
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { AlertDialogActionProps } from 'reka-ui';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { GandalfButtonSize, GandalfButtonVariant } from '../button';
|
|
3
4
|
type __VLS_Props = AlertDialogActionProps & {
|
|
5
|
+
variant?: GandalfButtonVariant;
|
|
6
|
+
size?: GandalfButtonSize;
|
|
4
7
|
class?: HTMLAttributes['class'];
|
|
5
8
|
};
|
|
6
9
|
declare var __VLS_7: {};
|
|
7
10
|
type __VLS_Slots = {} & {
|
|
8
11
|
default?: (props: typeof __VLS_7) => any;
|
|
9
12
|
};
|
|
10
|
-
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
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: GandalfButtonSize;
|
|
15
|
+
class: string | false | Record<string, any> | import('vue').ClassValue[] | null;
|
|
16
|
+
variant: GandalfButtonVariant;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
19
|
declare const _default: typeof __VLS_export;
|
|
13
20
|
export default _default;
|