@brumaombra/ui-vintage 0.4.0 → 0.5.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/dist/{AlertDialogTitle.vue_vue_type_script_setup_true_lang-Ca0g2mVz.js → AlertDialogTitle.vue_vue_type_script_setup_true_lang-_UW48pv7.js} +6 -5
- package/dist/{Busy-D1u_LUYu.js → Busy-BaCc_Jo8.js} +2 -1
- package/dist/{CalendarPrevButton.vue_vue_type_script_setup_true_lang-BA4Aw_Sl.js → CalendarPrevButton.vue_vue_type_script_setup_true_lang-DdzS6YGM.js} +18 -11
- package/dist/Card.vue_vue_type_script_setup_true_lang-D0pFVflK.js +30 -0
- package/dist/{Card.vue_vue_type_script_setup_true_lang-6ol3rxy1.js → CardContent.vue_vue_type_script_setup_true_lang-dBzO0q1t.js} +3 -8
- package/dist/{CardFooter.vue_vue_type_script_setup_true_lang-B1eS9wge.js → CardFooter.vue_vue_type_script_setup_true_lang-B5EqgrgN.js} +1 -19
- package/dist/CardText.vue_vue_type_script_setup_true_lang-DbDhSd3h.js +22 -0
- package/dist/{Collection-Coi6nyvb.js → Collection-4P3HQ4uU.js} +1 -1
- package/dist/{ConfigProvider-D2O0Jles.js → ConfigProvider-DYO65bNW.js} +1 -1
- package/dist/DatePicker.vue_vue_type_script_setup_true_lang-C2Ug81pX.js +88 -0
- package/dist/DialogClose-DxCTEp0d.js +36 -0
- package/dist/{DialogPortal-D81oXsCY.js → DialogPortal-BiMJAKLg.js} +1 -1
- package/dist/{DialogTitle-CLuntLBB.js → DialogTitle-jKgSCoXM.js} +10 -6
- package/dist/{DialogTitle.vue_vue_type_script_setup_true_lang-BG4dvMRo.js → DialogTitle.vue_vue_type_script_setup_true_lang-CycrzAMT.js} +33 -10
- package/dist/{DialogTrigger-BQbSAHMb.js → DialogTrigger-Cb3rLcid.js} +5 -35
- package/dist/EmptyStateCard.vue_vue_type_script_setup_true_lang-BYKX6WRQ.js +59 -0
- package/dist/{FocusScope-DYbCtSNc.js → FocusScope-mzbqk6Y_.js} +8 -14
- package/dist/HugeiconsIcon.vue-By2RXWWz.js +111 -0
- package/dist/{Input.vue_vue_type_script_setup_true_lang-6SfPeT8d.js → Input.vue_vue_type_script_setup_true_lang-BdjbS5s7.js} +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-pMIzCHzV.js → Label.vue_vue_type_script_setup_true_lang-CdLIMAdF.js} +2 -2
- package/dist/LandingContent.vue_vue_type_script_setup_true_lang-Wgtl_yeD.js +21 -0
- package/dist/LandingFooter.vue_vue_type_script_setup_true_lang-CDy30mYg.js +159 -0
- package/dist/LandingNavbar.vue_vue_type_script_setup_true_lang-0jX2tmdb.js +59 -0
- package/dist/LandingShell.vue_vue_type_script_setup_true_lang-BXwdQR24.js +49 -0
- package/dist/LanguageFlag.vue_vue_type_script_setup_true_lang-CgszKeNv.js +68 -0
- package/dist/LoadMoreButton.vue_vue_type_script_setup_true_lang-CGhFcsF-.js +61 -0
- package/dist/LoadingStateCard.vue_vue_type_script_setup_true_lang-DwyQjtZ3.js +53 -0
- package/dist/{MessageToast-C1L25W2l.js → MessageToast-uKrMyOZf.js} +15 -12
- package/dist/{NativeSelectOption.vue_vue_type_script_setup_true_lang-COnFRt8g.js → NativeSelectOption.vue_vue_type_script_setup_true_lang-CNcUI9Yh.js} +4 -3
- package/dist/{PopoverTrigger.vue_vue_type_script_setup_true_lang-DFZJvU_P.js → PopoverTrigger.vue_vue_type_script_setup_true_lang-Cf33q_yT.js} +11 -8
- package/dist/{PopperContent-h-thLTz8.js → PopperContent-DUJ8a4i0.js} +4 -4
- package/dist/Presence-CTmUEdMR.js +168 -0
- package/dist/Progress.vue_vue_type_script_setup_true_lang-BDJfyW-d.js +188 -0
- package/dist/{Separator.vue_vue_type_script_setup_true_lang-CMRkdntA.js → Separator.vue_vue_type_script_setup_true_lang-D9BozdWD.js} +1 -1
- package/dist/{SheetTitle.vue_vue_type_script_setup_true_lang-BQbpsE2c.js → SheetTitle.vue_vue_type_script_setup_true_lang-Ja7-gmXd.js} +4 -4
- package/dist/{Slider.vue_vue_type_script_setup_true_lang-C_CsSGAt.js → Slider.vue_vue_type_script_setup_true_lang-CSOSwGGr.js} +10 -9
- package/dist/{Switch.vue_vue_type_script_setup_true_lang-BG6nkPSO.js → Switch.vue_vue_type_script_setup_true_lang-C8mqOepU.js} +7 -6
- package/dist/{Teleport-CV0tKbq5.js → Teleport-DTOwRCqx.js} +7 -185
- package/dist/TimePicker.vue_vue_type_script_setup_true_lang-tbOoMfZu.js +51 -0
- package/dist/{TooltipTrigger.vue_vue_type_script_setup_true_lang-DEPKysA_.js → TooltipTrigger.vue_vue_type_script_setup_true_lang-BMdZRPa3.js} +9 -6
- package/dist/{VisuallyHiddenInput-1G1IEkBL.js → VisuallyHiddenInput-D5eipDQU.js} +1 -1
- package/dist/alert-dialog.js +7 -6
- package/dist/alert.js +8 -18
- package/dist/badge.js +9 -36
- package/dist/breadcrumb.js +159 -0
- package/dist/busy-indicator.js +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.js +11 -7
- package/dist/calendar.js +1 -1
- package/dist/card-grid.js +58 -0
- package/dist/card.js +9 -6
- package/dist/chip.js +47 -0
- package/dist/color-tokens-D9BviGPK.js +40 -0
- package/dist/command.js +17 -33
- package/dist/components/card-grid/CardGrid.vue.d.ts +88 -0
- package/dist/components/card-grid/index.d.ts +2 -0
- package/dist/components/chip/Chip.vue.d.ts +17 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/confirm-dialog/confirm-dialog-state.d.ts +11 -8
- package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +12 -2
- package/dist/components/data-list/DataList.vue.d.ts +21 -0
- package/dist/components/data-list/DataListItem.vue.d.ts +21 -0
- package/dist/components/data-list/DataListLabel.vue.d.ts +21 -0
- package/dist/components/data-list/DataListText.vue.d.ts +21 -0
- package/dist/components/data-list/DataListValue.vue.d.ts +21 -0
- package/dist/components/data-list/index.d.ts +5 -0
- package/dist/components/empty-state-card/EmptyStateCard.vue.d.ts +73 -0
- package/dist/components/empty-state-card/index.d.ts +2 -0
- package/dist/components/info-card/InfoCard.vue.d.ts +46 -0
- package/dist/components/info-card/index.d.ts +2 -0
- package/dist/components/landing/landing-content/LandingContent.vue.d.ts +2 -3
- package/dist/components/landing/landing-footer/LandingFooter.vue.d.ts +5 -10
- package/dist/components/landing/landing-navbar/LandingNavbar.vue.d.ts +8 -1
- package/dist/components/landing/landing-shell/LandingShell.vue.d.ts +0 -1
- package/dist/components/language-flag/LanguageFlag.vue.d.ts +14 -0
- package/dist/components/language-flag/flags/EnglishFlag.vue.d.ts +2 -0
- package/dist/components/language-flag/flags/ItalianFlag.vue.d.ts +2 -0
- package/dist/components/language-flag/index.d.ts +4 -0
- package/dist/components/language-selector/LanguageSelector.vue.d.ts +35 -0
- package/dist/components/language-selector/index.d.ts +3 -0
- package/dist/components/load-more-button/LoadMoreButton.vue.d.ts +36 -0
- package/dist/components/load-more-button/index.d.ts +2 -0
- package/dist/components/loading-state-card/LoadingStateCard.vue.d.ts +55 -0
- package/dist/components/loading-state-card/index.d.ts +2 -0
- package/dist/components/message-dialog/message-dialog-state.d.ts +9 -7
- package/dist/components/message-toast/index.d.ts +1 -1
- package/dist/components/message-toast/message-toast-state.d.ts +3 -3
- package/dist/components/page-header/PageHeader.vue.d.ts +48 -0
- package/dist/components/page-header/index.d.ts +2 -0
- package/dist/components/progress-component/ProgressComponent.vue.d.ts +47 -0
- package/dist/components/progress-component/index.d.ts +2 -0
- package/dist/components/single-value-card/SingleValueCard.vue.d.ts +40 -0
- package/dist/components/single-value-card/index.d.ts +2 -0
- package/dist/components/slider-form-component/SliderFormComponent.vue.d.ts +2 -2
- package/dist/components/text-link/TextLink.vue.d.ts +35 -0
- package/dist/components/text-link/index.d.ts +2 -0
- package/dist/components/theme-selector/ThemeSelector.vue.d.ts +2 -0
- package/dist/components/theme-selector/index.d.ts +2 -0
- package/dist/components/ui/alert/Alert.vue.d.ts +2 -2
- package/dist/components/ui/alert/index.d.ts +6 -5
- package/dist/components/ui/badge/Badge.vue.d.ts +7 -20
- package/dist/components/ui/badge/index.d.ts +0 -5
- package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +24 -0
- package/dist/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/components/ui/button/index.d.ts +6 -6
- package/dist/components/ui/card/Card.vue.d.ts +3 -0
- package/dist/components/ui/card/CardText.vue.d.ts +21 -0
- package/dist/components/ui/card/index.d.ts +1 -0
- package/dist/components/ui/date-picker/DatePicker.vue.d.ts +2 -0
- package/dist/components/ui/date-time-picker/DateTimePicker.vue.d.ts +27 -0
- package/dist/components/ui/date-time-picker/index.d.ts +2 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +4 -1
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +1 -4
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +4 -1
- package/dist/components/ui/field/index.d.ts +4 -4
- package/dist/components/ui/progress/Progress.vue.d.ts +9 -0
- package/dist/components/ui/progress/index.d.ts +1 -0
- package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
- package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
- package/dist/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/components/ui/select/SelectItemContent.vue.d.ts +15 -0
- package/dist/components/ui/select/SelectValueContent.vue.d.ts +16 -0
- package/dist/components/ui/select/index.d.ts +2 -0
- package/dist/components/ui/sidebar/index.d.ts +4 -4
- package/dist/components/ui/table/Table.vue.d.ts +21 -0
- package/dist/components/ui/table/TableBody.vue.d.ts +21 -0
- package/dist/components/ui/table/TableCaption.vue.d.ts +21 -0
- package/dist/components/ui/table/TableCell.vue.d.ts +21 -0
- package/dist/components/ui/table/TableEmpty.vue.d.ts +24 -0
- package/dist/components/ui/table/TableFooter.vue.d.ts +21 -0
- package/dist/components/ui/table/TableHead.vue.d.ts +21 -0
- package/dist/components/ui/table/TableHeader.vue.d.ts +21 -0
- package/dist/components/ui/table/TableRow.vue.d.ts +21 -0
- package/dist/components/ui/table/index.d.ts +9 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts +28 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +22 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +22 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +22 -0
- package/dist/components/ui/tabs/index.d.ts +4 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +12 -0
- package/dist/components/ui/textarea/index.d.ts +1 -0
- package/dist/components/ui/time-picker/TimePicker.vue.d.ts +21 -0
- package/dist/components/ui/time-picker/index.d.ts +2 -0
- package/dist/confirm-dialog.js +15 -11
- package/dist/createContext-BabAT1K8.js +19 -0
- package/dist/dashboard-shell.js +88 -38
- package/dist/data-list.js +97 -0
- package/dist/date-picker.js +3 -82
- package/dist/date-time-picker.js +140 -0
- package/dist/dialog.js +36 -29
- package/dist/empty-state-card.js +5 -0
- package/dist/error-page.js +8 -6
- package/dist/field.js +2 -2
- package/dist/getActiveElement-Bmy6QsUb.js +9 -0
- package/dist/i18n/en.json.d.ts +57 -0
- package/dist/i18n/it.json.d.ts +57 -0
- package/dist/i18n.js +148 -0
- package/dist/{index-qGMU40e1.js → index-DDJjWaIl.js} +64 -0
- package/dist/{index-Cq9Ekgtb.js → index-Dw56kNV0.js} +10 -10
- package/dist/index.min-CZ9FIOXr.js +23 -0
- package/dist/info-card.js +65 -0
- package/dist/input.js +1 -1
- package/dist/label.js +1 -1
- package/dist/landing-content.js +5 -0
- package/dist/landing-footer.js +5 -0
- package/dist/landing-navbar.js +5 -0
- package/dist/landing-shell.js +5 -0
- package/dist/landing.js +9 -237
- package/dist/language-flag.js +7 -0
- package/dist/language-selector.js +123 -0
- package/dist/lib/color-tokens.d.ts +6 -0
- package/dist/lib/i18n.d.ts +222 -0
- package/dist/load-more-button.js +5 -0
- package/dist/loading-state-card.js +5 -0
- package/dist/message-dialog.js +34 -18
- package/dist/message-toast.js +2 -2
- package/dist/native-select.js +1 -1
- package/dist/nullish-D3tMkl6i.js +6 -0
- package/dist/page-header.js +57 -0
- package/dist/popover.js +4 -4
- package/dist/progress-component.js +51 -0
- package/dist/progress.js +4 -0
- package/dist/scroll-area.js +1080 -0
- package/dist/select.js +149 -53
- package/dist/separator.js +1 -1
- package/dist/sheet.js +3 -2
- package/dist/sidebar.js +10 -9
- package/dist/single-value-card.js +64 -0
- package/dist/slider-form-component.js +2 -2
- package/dist/slider.js +1 -1
- package/dist/style.css +822 -144
- package/dist/switch-form-component.js +2 -2
- package/dist/switch.js +1 -1
- package/dist/table.js +193 -0
- package/dist/tabs.js +658 -0
- package/dist/text-link.js +39 -0
- package/dist/textarea.js +37 -0
- package/dist/theme-selector.js +159 -0
- package/dist/time-picker.js +5 -0
- package/dist/tooltip.js +2 -2
- package/dist/{useDirection-SIyEYNxv.js → useDirection-B2bMgzzV.js} +1 -1
- package/dist/{useFocusGuards-WYWvpJy2.js → useFocusGuards-2C1jyYW5.js} +1 -1
- package/dist/{useFormControl-CyoJwp9r.js → useFormControl-DZ4LnB9F.js} +1 -1
- package/dist/{useForwardExpose-BiRQH8eO.js → useForwardExpose-BcX3VRdS.js} +1 -1
- package/dist/{useForwardPropsEmits-DmumnZO5.js → useForwardPropsEmits-GlUGKcIz.js} +1 -17
- package/dist/useId-CF6wz41D.js +16 -0
- package/dist/useNonce-CWj1JlPB.js +12 -0
- package/dist/{usePrimitiveElement-Bk3ZOslv.js → usePrimitiveElement-BCpwlakH.js} +1 -1
- package/dist/{useSize-BLYTFgnQ.js → useSize-DUgGY9t1.js} +1 -1
- package/dist/{useTypeahead-KTl4-oeq.js → useTypeahead-4RK0Emcv.js} +2 -2
- package/dist/{utils-BXBXPGDA.js → utils-DbR1EZn-.js} +1 -1
- package/dist/utils-hdwtyAF3.js +44 -0
- package/package.json +111 -2
- package/dist/HugeiconsIcon.vue-CurGbgrJ.js +0 -125
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, openBlock, createBlock, unref, mergeProps, nextTick, withModifiers, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode, createElementBlock, normalizeClass } from "vue";
|
|
2
|
-
import { b as useEmitAsProps,
|
|
3
|
-
import { u as useForwardExpose } from "./useForwardExpose-
|
|
4
|
-
import { a as DialogContent_default, c as DialogDescription_default, D as DialogOverlay_default, b as DialogRoot_default, d as DialogTitle_default } from "./DialogTitle-
|
|
5
|
-
import {
|
|
2
|
+
import { b as useEmitAsProps, u as useForwardPropsEmits } from "./useForwardPropsEmits-GlUGKcIz.js";
|
|
3
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
4
|
+
import { a as DialogContent_default, c as DialogDescription_default, D as DialogOverlay_default, b as DialogRoot_default, d as DialogTitle_default } from "./DialogTitle-jKgSCoXM.js";
|
|
5
|
+
import { c as createContext } from "./createContext-BabAT1K8.js";
|
|
6
|
+
import { T as Teleport_default } from "./Teleport-DTOwRCqx.js";
|
|
6
7
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
7
|
-
import { r as reactiveOmit } from "./index-
|
|
8
|
+
import { r as reactiveOmit } from "./index-DDJjWaIl.js";
|
|
8
9
|
const [injectAlertDialogContentContext, provideAlertDialogContentContext] = createContext("AlertDialogContent");
|
|
9
10
|
var AlertDialogContent_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10
11
|
__name: "AlertDialogContent",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, Transition, withCtx, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b as SK } from "./index.min-CZ9FIOXr.js";
|
|
3
|
+
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
3
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
4
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
5
6
|
const _hoisted_1 = {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { ref, computed, watch, defineComponent, toRefs, onMounted, openBlock, createBlock, unref, withCtx, renderSlot, createElementVNode, toDisplayString, withKeys, withModifiers, createTextVNode, nextTick, mergeProps, normalizeProps, guardReactiveProps, toRaw, createElementBlock, Fragment, createVNode, renderList, isRef } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { a as useVModel, i as createReusableTemplate } from "./index-Dw56kNV0.js";
|
|
3
|
+
import { u as useForwardPropsEmits, a as useForwardProps } from "./useForwardPropsEmits-GlUGKcIz.js";
|
|
4
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
|
-
import { _ as _sfc_main$c, a as _sfc_main$d } from "./NativeSelectOption.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { r as reactiveOmit } from "./index-
|
|
5
|
+
import { _ as _sfc_main$c, a as _sfc_main$d } from "./NativeSelectOption.vue_vue_type_script_setup_true_lang-CNcUI9Yh.js";
|
|
6
|
+
import { r as reactiveOmit } from "./index-DDJjWaIl.js";
|
|
7
7
|
import { buttonVariants } from "./button.js";
|
|
8
|
-
import {
|
|
8
|
+
import { N as Nn, m as mn } from "./index.min-CZ9FIOXr.js";
|
|
9
|
+
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
9
10
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
10
11
|
import { u as useKbd } from "./useKbd-JjFOu4f7.js";
|
|
11
|
-
import { u as usePrimitiveElement } from "./usePrimitiveElement-
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { u as usePrimitiveElement } from "./usePrimitiveElement-BCpwlakH.js";
|
|
13
|
+
import { c as createContext } from "./createContext-BabAT1K8.js";
|
|
14
|
+
import { u as useDirection } from "./useDirection-B2bMgzzV.js";
|
|
15
|
+
import { i as injectConfigProviderContext } from "./ConfigProvider-DYO65bNW.js";
|
|
14
16
|
function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {
|
|
15
17
|
return amount - numerator * Math.floor(amount / numerator);
|
|
16
18
|
}
|
|
@@ -472,6 +474,9 @@ function $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {
|
|
|
472
474
|
let millisecond = date.getUTCMilliseconds();
|
|
473
475
|
return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(year < 1 ? "BC" : "AD", year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);
|
|
474
476
|
}
|
|
477
|
+
function $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) {
|
|
478
|
+
return $11d87f3f76e88657$export$1b96692a1ba042ac(date.getTime(), timeZone);
|
|
479
|
+
}
|
|
475
480
|
function $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {
|
|
476
481
|
return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);
|
|
477
482
|
}
|
|
@@ -3722,7 +3727,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
3722
3727
|
return openBlock(), createBlock(unref(CalendarNext_default), mergeProps({
|
|
3723
3728
|
"data-slot": "calendar-next-button",
|
|
3724
3729
|
class: unref(cn)(
|
|
3725
|
-
unref(buttonVariants)({ variant: "
|
|
3730
|
+
unref(buttonVariants)({ variant: "secondary" }),
|
|
3726
3731
|
"size-7 min-h-10 bg-transparent p-0 text-(--text-secondary-light) hover:text-(--text-primary-light) dark:text-(--text-secondary-dark) dark:hover:text-(--text-primary-dark)",
|
|
3727
3732
|
props.class
|
|
3728
3733
|
)
|
|
@@ -3756,7 +3761,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3756
3761
|
return openBlock(), createBlock(unref(CalendarPrev_default), mergeProps({
|
|
3757
3762
|
"data-slot": "calendar-prev-button",
|
|
3758
3763
|
class: unref(cn)(
|
|
3759
|
-
unref(buttonVariants)({ variant: "
|
|
3764
|
+
unref(buttonVariants)({ variant: "secondary" }),
|
|
3760
3765
|
"size-7 min-h-10 bg-transparent p-0 text-(--text-secondary-light) hover:text-(--text-primary-light) dark:text-(--text-secondary-dark) dark:hover:text-(--text-primary-dark)",
|
|
3761
3766
|
props.class
|
|
3762
3767
|
)
|
|
@@ -3789,5 +3794,7 @@ export {
|
|
|
3789
3794
|
_sfc_main$1 as j,
|
|
3790
3795
|
_sfc_main as k,
|
|
3791
3796
|
$14e0f24ef4ac5c92$export$aa8b41735afcabd2 as l,
|
|
3792
|
-
$fb18d541ea1ad717$export$ad991b66133851cf as m
|
|
3797
|
+
$fb18d541ea1ad717$export$ad991b66133851cf as m,
|
|
3798
|
+
$11d87f3f76e88657$export$93522d1a439f3617 as n,
|
|
3799
|
+
$11d87f3f76e88657$export$e57ff100d91bd4b9 as o
|
|
3793
3800
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { g as getSurfaceToneClasses } from "./color-tokens-D9BviGPK.js";
|
|
3
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "Card",
|
|
6
|
+
props: {
|
|
7
|
+
color: {},
|
|
8
|
+
class: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const props = __props;
|
|
12
|
+
const colorClasses = computed(() => {
|
|
13
|
+
if (!props.color || props.color === "default") {
|
|
14
|
+
return "border border-border bg-card text-card-foreground";
|
|
15
|
+
}
|
|
16
|
+
return getSurfaceToneClasses(props.color);
|
|
17
|
+
});
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return openBlock(), createElementBlock("div", {
|
|
20
|
+
"data-slot": "card",
|
|
21
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-6 rounded py-6 transition-colors duration-300 ease-in-out", colorClasses.value, props.class))
|
|
22
|
+
}, [
|
|
23
|
+
renderSlot(_ctx.$slots, "default")
|
|
24
|
+
], 2);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
_sfc_main as _
|
|
30
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "
|
|
4
|
+
__name: "CardContent",
|
|
5
5
|
props: {
|
|
6
6
|
class: {}
|
|
7
7
|
},
|
|
@@ -9,13 +9,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
9
|
const props = __props;
|
|
10
10
|
return (_ctx, _cache) => {
|
|
11
11
|
return openBlock(), createElementBlock("div", {
|
|
12
|
-
"data-slot": "card",
|
|
13
|
-
class: normalizeClass(
|
|
14
|
-
unref(cn)(
|
|
15
|
-
"bg-card text-card-foreground flex flex-col gap-6 rounded border border-border py-6 transition-colors duration-300 ease-in-out",
|
|
16
|
-
props.class
|
|
17
|
-
)
|
|
18
|
-
)
|
|
12
|
+
"data-slot": "card-content",
|
|
13
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-4 px-6", props.class))
|
|
19
14
|
}, [
|
|
20
15
|
renderSlot(_ctx.$slots, "default")
|
|
21
16
|
], 2);
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
3
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "CardContent",
|
|
5
|
-
props: {
|
|
6
|
-
class: {}
|
|
7
|
-
},
|
|
8
|
-
setup(__props) {
|
|
9
|
-
const props = __props;
|
|
10
|
-
return (_ctx, _cache) => {
|
|
11
|
-
return openBlock(), createElementBlock("div", {
|
|
12
|
-
"data-slot": "card-content",
|
|
13
|
-
class: normalizeClass(unref(cn)("flex flex-col gap-4 px-6", props.class))
|
|
14
|
-
}, [
|
|
15
|
-
renderSlot(_ctx.$slots, "default")
|
|
16
|
-
], 2);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
4
|
__name: "CardFooter",
|
|
22
5
|
props: {
|
|
@@ -35,6 +18,5 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
18
|
}
|
|
36
19
|
});
|
|
37
20
|
export {
|
|
38
|
-
_sfc_main
|
|
39
|
-
_sfc_main as a
|
|
21
|
+
_sfc_main as _
|
|
40
22
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "CardText",
|
|
5
|
+
props: {
|
|
6
|
+
class: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const props = __props;
|
|
10
|
+
return (_ctx, _cache) => {
|
|
11
|
+
return openBlock(), createElementBlock("p", {
|
|
12
|
+
"data-slot": "card-text",
|
|
13
|
+
class: normalizeClass(unref(cn)("text-sm text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]", props.class))
|
|
14
|
+
}, [
|
|
15
|
+
renderSlot(_ctx.$slots, "default")
|
|
16
|
+
], 2);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as _
|
|
22
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as Slot } from "./Primitive-D3IcFg81.js";
|
|
2
|
-
import { u as usePrimitiveElement } from "./usePrimitiveElement-
|
|
2
|
+
import { u as usePrimitiveElement } from "./usePrimitiveElement-BCpwlakH.js";
|
|
3
3
|
import { ref, provide, inject, defineComponent, watch, h, watchEffect, markRaw, computed } from "vue";
|
|
4
4
|
const ITEM_DATA_ATTR = "data-reka-collection-item";
|
|
5
5
|
function useCollection(options = {}) {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, unref, withCtx, createVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { $ as $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3, l as $14e0f24ef4ac5c92$export$aa8b41735afcabd2, m as $fb18d541ea1ad717$export$ad991b66133851cf, _ as _sfc_main$5 } from "./CalendarPrevButton.vue_vue_type_script_setup_true_lang-DdzS6YGM.js";
|
|
3
|
+
import { f as cL } from "./index.min-CZ9FIOXr.js";
|
|
4
|
+
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
5
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
6
|
+
import { Button as _sfc_main$3 } from "./button.js";
|
|
7
|
+
import { _ as _sfc_main$1, a as _sfc_main$2, b as _sfc_main$4 } from "./PopoverTrigger.vue_vue_type_script_setup_true_lang-Cf33q_yT.js";
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "DatePicker",
|
|
10
|
+
props: {
|
|
11
|
+
defaultValue: {},
|
|
12
|
+
modelValue: {},
|
|
13
|
+
minValue: {},
|
|
14
|
+
maxValue: {},
|
|
15
|
+
placeholder: { default: "Pick a date" },
|
|
16
|
+
disabled: { type: Boolean, default: false },
|
|
17
|
+
class: {},
|
|
18
|
+
contentClass: {}
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emits = __emit;
|
|
24
|
+
const internalDate = ref(props.defaultValue);
|
|
25
|
+
const isControlled = computed(() => props.modelValue !== void 0);
|
|
26
|
+
const date = computed({
|
|
27
|
+
get: () => isControlled.value ? props.modelValue : internalDate.value,
|
|
28
|
+
set: (value) => {
|
|
29
|
+
if (!isControlled.value)
|
|
30
|
+
internalDate.value = value;
|
|
31
|
+
emits("update:modelValue", value);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
const defaultPlaceholder = computed(() => date.value ?? $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($14e0f24ef4ac5c92$export$aa8b41735afcabd2()));
|
|
35
|
+
const formatter = new $fb18d541ea1ad717$export$ad991b66133851cf("en-US", {
|
|
36
|
+
dateStyle: "long"
|
|
37
|
+
});
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
return openBlock(), createBlock(unref(_sfc_main$1), null, {
|
|
40
|
+
default: withCtx(({ close }) => [
|
|
41
|
+
createVNode(unref(_sfc_main$2), { "as-child": "" }, {
|
|
42
|
+
default: withCtx(() => [
|
|
43
|
+
createVNode(unref(_sfc_main$3), {
|
|
44
|
+
variant: "secondary",
|
|
45
|
+
disabled: _ctx.disabled,
|
|
46
|
+
class: normalizeClass(unref(cn)("h-[52px] w-[240px] justify-start text-left font-normal enabled:active:scale-100", !date.value && "text-muted-foreground", props.class))
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [
|
|
49
|
+
createVNode(unref(HugeiconsIcon), {
|
|
50
|
+
icon: unref(cL),
|
|
51
|
+
class: "size-4"
|
|
52
|
+
}, null, 8, ["icon"]),
|
|
53
|
+
createTextVNode(" " + toDisplayString(date.value ? unref(formatter).format(date.value.toDate(unref($14e0f24ef4ac5c92$export$aa8b41735afcabd2)())) : _ctx.placeholder), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["disabled", "class"])
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}),
|
|
60
|
+
createVNode(unref(_sfc_main$4), {
|
|
61
|
+
class: normalizeClass(unref(cn)("w-auto p-0", props.contentClass)),
|
|
62
|
+
align: "start"
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createVNode(unref(_sfc_main$5), {
|
|
66
|
+
modelValue: date.value,
|
|
67
|
+
"onUpdate:modelValue": [
|
|
68
|
+
_cache[0] || (_cache[0] = ($event) => date.value = $event),
|
|
69
|
+
close
|
|
70
|
+
],
|
|
71
|
+
"default-placeholder": defaultPlaceholder.value,
|
|
72
|
+
"min-value": props.minValue,
|
|
73
|
+
"max-value": props.maxValue,
|
|
74
|
+
layout: "month-and-year",
|
|
75
|
+
"initial-focus": ""
|
|
76
|
+
}, null, 8, ["modelValue", "default-placeholder", "min-value", "max-value", "onUpdate:modelValue"])
|
|
77
|
+
]),
|
|
78
|
+
_: 2
|
|
79
|
+
}, 1032, ["class"])
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
export {
|
|
87
|
+
_sfc_main as _
|
|
88
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
2
|
+
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
3
|
+
import { i as injectDialogRootContext } from "./DialogTitle-jKgSCoXM.js";
|
|
4
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
5
|
+
var DialogClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "DialogClose",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
required: false
|
|
11
|
+
},
|
|
12
|
+
as: {
|
|
13
|
+
type: null,
|
|
14
|
+
required: false,
|
|
15
|
+
default: "button"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
useForwardExpose();
|
|
21
|
+
const rootContext = injectDialogRootContext();
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
24
|
+
type: _ctx.as === "button" ? "button" : void 0,
|
|
25
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false))
|
|
26
|
+
}), {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 16, ["type"]);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var DialogClose_default = DialogClose_vue_vue_type_script_setup_true_lang_default;
|
|
34
|
+
export {
|
|
35
|
+
DialogClose_default as D
|
|
36
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Teleport_default } from "./Teleport-
|
|
1
|
+
import { T as Teleport_default } from "./Teleport-DTOwRCqx.js";
|
|
2
2
|
import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot } from "vue";
|
|
3
3
|
var DialogPortal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "DialogPortal",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as useForwardExpose } from "./useForwardExpose-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { g as
|
|
1
|
+
import { b as useEmitAsProps } from "./useForwardPropsEmits-GlUGKcIz.js";
|
|
2
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
3
|
+
import { P as Presence_default } from "./Presence-CTmUEdMR.js";
|
|
4
|
+
import { F as FocusScope_default, u as useHideOthers, a as useBodyScrollLock } from "./FocusScope-mzbqk6Y_.js";
|
|
5
|
+
import { g as getActiveElement } from "./getActiveElement-Bmy6QsUb.js";
|
|
6
|
+
import { u as useId } from "./useId-CF6wz41D.js";
|
|
7
|
+
import { D as DismissableLayer_default } from "./Teleport-DTOwRCqx.js";
|
|
8
|
+
import { g as getOpenState } from "./utils-DbR1EZn-.js";
|
|
6
9
|
import { defineComponent, ref, toRefs, renderSlot, unref, onMounted, openBlock, createBlock, withCtx, createVNode, mergeProps, createCommentVNode } from "vue";
|
|
7
10
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
8
|
-
import {
|
|
11
|
+
import { c as createContext } from "./createContext-BabAT1K8.js";
|
|
12
|
+
import { a as useVModel } from "./index-Dw56kNV0.js";
|
|
9
13
|
const [injectDialogRootContext, provideDialogRootContext] = createContext("DialogRoot");
|
|
10
14
|
var DialogRoot_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
11
15
|
inheritAttrs: false,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode, createElementBlock, normalizeClass } from "vue";
|
|
2
|
-
import { u as useForwardPropsEmits, a as useForwardProps } from "./useForwardPropsEmits-
|
|
3
|
-
import { b as DialogRoot_default, D as DialogOverlay_default, a as DialogContent_default, c as DialogDescription_default, d as DialogTitle_default } from "./DialogTitle-
|
|
4
|
-
import { D as
|
|
1
|
+
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode, createElementVNode, createCommentVNode, createElementBlock, normalizeClass } from "vue";
|
|
2
|
+
import { u as useForwardPropsEmits, a as useForwardProps } from "./useForwardPropsEmits-GlUGKcIz.js";
|
|
3
|
+
import { b as DialogRoot_default, D as DialogOverlay_default, a as DialogContent_default, c as DialogDescription_default, d as DialogTitle_default } from "./DialogTitle-jKgSCoXM.js";
|
|
4
|
+
import { D as DialogClose_default } from "./DialogClose-DxCTEp0d.js";
|
|
5
|
+
import { D as DialogPortal_default } from "./DialogPortal-BiMJAKLg.js";
|
|
5
6
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
6
|
-
import {
|
|
7
|
+
import { Button as _sfc_main$6 } from "./button.js";
|
|
8
|
+
import { r as reactiveOmit } from "./index-DDJjWaIl.js";
|
|
7
9
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
8
10
|
__name: "Dialog",
|
|
9
11
|
props: {
|
|
@@ -39,7 +41,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
39
41
|
const delegatedProps = reactiveOmit(props, "class");
|
|
40
42
|
return (_ctx, _cache) => {
|
|
41
43
|
return openBlock(), createBlock(unref(DialogOverlay_default), mergeProps({ "data-slot": "dialog-overlay" }, unref(delegatedProps), {
|
|
42
|
-
class: unref(cn)("fixed inset-0 z-50 bg-black/45 backdrop-blur-[2px] transition-[opacity,backdrop-filter] ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", props.class)
|
|
44
|
+
class: unref(cn)("fixed inset-0 isolate z-50 bg-black/45 backdrop-blur-[2px] transition-[opacity,backdrop-filter] ease-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", props.class)
|
|
43
45
|
}), {
|
|
44
46
|
default: withCtx(() => [
|
|
45
47
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -59,7 +61,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
59
61
|
disableOutsidePointerEvents: { type: Boolean },
|
|
60
62
|
asChild: { type: Boolean },
|
|
61
63
|
as: {},
|
|
62
|
-
class: {}
|
|
64
|
+
class: {},
|
|
65
|
+
showCloseButton: { type: Boolean, default: false }
|
|
63
66
|
},
|
|
64
67
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
65
68
|
setup(__props, { emit: __emit }) {
|
|
@@ -73,12 +76,32 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
73
76
|
createVNode(_sfc_main$4),
|
|
74
77
|
createVNode(unref(DialogContent_default), mergeProps({ "data-slot": "dialog-content" }, { ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
75
78
|
class: unref(cn)(
|
|
76
|
-
"bg-card text-card-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-
|
|
79
|
+
"bg-card text-card-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded border border-border p-6 outline-none duration-200 sm:max-w-[425px]",
|
|
77
80
|
props.class
|
|
78
81
|
)
|
|
79
82
|
}), {
|
|
80
83
|
default: withCtx(() => [
|
|
81
|
-
renderSlot(_ctx.$slots, "default")
|
|
84
|
+
renderSlot(_ctx.$slots, "default"),
|
|
85
|
+
props.showCloseButton ? (openBlock(), createBlock(unref(DialogClose_default), {
|
|
86
|
+
key: 0,
|
|
87
|
+
"data-slot": "dialog-close",
|
|
88
|
+
"as-child": ""
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createVNode(unref(_sfc_main$6), {
|
|
92
|
+
variant: "ghost",
|
|
93
|
+
size: "icon-sm",
|
|
94
|
+
class: "absolute top-4 right-4 p-0.5"
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
97
|
+
createElementVNode("span", { "aria-hidden": "true" }, "X", -1),
|
|
98
|
+
createElementVNode("span", { class: "sr-only" }, "Close", -1)
|
|
99
|
+
])),
|
|
100
|
+
_: 1
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
})) : createCommentVNode("", true)
|
|
82
105
|
]),
|
|
83
106
|
_: 3
|
|
84
107
|
}, 16, ["class"])
|
|
@@ -121,7 +144,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
121
144
|
return (_ctx, _cache) => {
|
|
122
145
|
return openBlock(), createElementBlock("div", {
|
|
123
146
|
"data-slot": "dialog-header",
|
|
124
|
-
class: normalizeClass(unref(cn)("flex flex-col gap-1.5
|
|
147
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-1.5", props.class))
|
|
125
148
|
}, [
|
|
126
149
|
renderSlot(_ctx.$slots, "default")
|
|
127
150
|
], 2);
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import { u as useForwardExpose } from "./useForwardExpose-
|
|
1
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
2
|
+
import { u as useId } from "./useId-CF6wz41D.js";
|
|
2
3
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
3
|
-
import { i as injectDialogRootContext } from "./DialogTitle-
|
|
4
|
-
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot
|
|
5
|
-
import { u as useId } from "./Teleport-CV0tKbq5.js";
|
|
6
|
-
var DialogClose_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "DialogClose",
|
|
8
|
-
props: {
|
|
9
|
-
asChild: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
required: false
|
|
12
|
-
},
|
|
13
|
-
as: {
|
|
14
|
-
type: null,
|
|
15
|
-
required: false,
|
|
16
|
-
default: "button"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(__props) {
|
|
20
|
-
const props = __props;
|
|
21
|
-
useForwardExpose();
|
|
22
|
-
const rootContext = injectDialogRootContext();
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
25
|
-
type: _ctx.as === "button" ? "button" : void 0,
|
|
26
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false))
|
|
27
|
-
}), {
|
|
28
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
29
|
-
_: 3
|
|
30
|
-
}, 16, ["type"]);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
var DialogClose_default = DialogClose_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
import { i as injectDialogRootContext } from "./DialogTitle-jKgSCoXM.js";
|
|
5
|
+
import { defineComponent, onMounted, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
|
|
35
6
|
var DialogTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
36
7
|
__name: "DialogTrigger",
|
|
37
8
|
props: {
|
|
@@ -77,6 +48,5 @@ var DialogTrigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
77
48
|
});
|
|
78
49
|
var DialogTrigger_default = DialogTrigger_vue_vue_type_script_setup_true_lang_default;
|
|
79
50
|
export {
|
|
80
|
-
|
|
81
|
-
DialogTrigger_default as a
|
|
51
|
+
DialogTrigger_default as D
|
|
82
52
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from "vue";
|
|
2
|
+
import { useI18n } from "vue-i18n";
|
|
3
|
+
import { u as u7 } from "./index.min-CZ9FIOXr.js";
|
|
4
|
+
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./Card.vue_vue_type_script_setup_true_lang-D0pFVflK.js";
|
|
6
|
+
import { _ as _sfc_main$2 } from "./CardContent.vue_vue_type_script_setup_true_lang-dBzO0q1t.js";
|
|
7
|
+
const _hoisted_1 = { class: "flex items-center justify-center text-4xl text-[var(--text-secondary-light)] opacity-40 dark:text-[var(--text-secondary-dark)]" };
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "text-sm font-bold text-[var(--text-primary-light)] dark:text-[var(--text-primary-dark)] md:text-lg"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "max-w-md text-xs text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)] md:text-sm"
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_4 = { key: 2 };
|
|
17
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
18
|
+
__name: "EmptyStateCard",
|
|
19
|
+
props: {
|
|
20
|
+
icon: { type: [Object, Array], default: () => u7 },
|
|
21
|
+
title: { type: String, default: "" },
|
|
22
|
+
description: { type: String, default: "" },
|
|
23
|
+
titleKey: { type: String, default: "" },
|
|
24
|
+
descriptionKey: { type: String, default: "" }
|
|
25
|
+
},
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const props = __props;
|
|
28
|
+
const { t } = useI18n();
|
|
29
|
+
const hasCustomCopy = computed(() => Boolean(props.title || props.description || props.titleKey || props.descriptionKey));
|
|
30
|
+
const resolvedTitle = computed(() => props.title || (props.titleKey ? t(props.titleKey) : "") || (!hasCustomCopy.value ? t("ui.common.empty.title") : "") || (!hasCustomCopy.value ? "Nothing here yet" : ""));
|
|
31
|
+
const resolvedDescription = computed(() => props.description || (props.descriptionKey ? t(props.descriptionKey) : "") || (!hasCustomCopy.value ? t("ui.common.empty.description") : "") || (!hasCustomCopy.value ? "There is no content to show right now." : ""));
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(_sfc_main$1), { class: "flex flex-col items-center justify-center px-4 py-8 text-center md:py-12" }, {
|
|
34
|
+
default: withCtx(() => [
|
|
35
|
+
createVNode(unref(_sfc_main$2), { class: "flex flex-col items-center justify-center !p-0 text-center" }, {
|
|
36
|
+
default: withCtx(() => [
|
|
37
|
+
createElementVNode("div", _hoisted_1, [
|
|
38
|
+
createVNode(unref(HugeiconsIcon), {
|
|
39
|
+
icon: props.icon,
|
|
40
|
+
class: "size-10"
|
|
41
|
+
}, null, 8, ["icon"])
|
|
42
|
+
]),
|
|
43
|
+
resolvedTitle.value ? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString(resolvedTitle.value), 1)) : createCommentVNode("", true),
|
|
44
|
+
resolvedDescription.value ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(resolvedDescription.value), 1)) : createCommentVNode("", true),
|
|
45
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
46
|
+
renderSlot(_ctx.$slots, "action")
|
|
47
|
+
])) : createCommentVNode("", true)
|
|
48
|
+
]),
|
|
49
|
+
_: 3
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 3
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
_sfc_main as _
|
|
59
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { i as injectConfigProviderContext } from "./ConfigProvider-
|
|
1
|
+
import { i as injectConfigProviderContext } from "./ConfigProvider-DYO65bNW.js";
|
|
2
2
|
import { computed, ref, watch, nextTick, onUnmounted, defineComponent, reactive, watchEffect, openBlock, createBlock, unref, withCtx, renderSlot } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import { h as tryOnBeforeUnmount, j as createSharedComposable, i as isClient, k as isIOS, l as createGlobalState } from "./index-
|
|
5
|
-
import { d as defu } from "./Teleport-
|
|
6
|
-
import {
|
|
3
|
+
import { c as useEventListener, u as unrefElement } from "./index-Dw56kNV0.js";
|
|
4
|
+
import { h as tryOnBeforeUnmount, j as createSharedComposable, i as isClient, k as isIOS, l as createGlobalState } from "./index-DDJjWaIl.js";
|
|
5
|
+
import { d as defu } from "./Teleport-DTOwRCqx.js";
|
|
6
|
+
import { g as getActiveElement } from "./getActiveElement-Bmy6QsUb.js";
|
|
7
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
7
8
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
8
|
-
function getActiveElement() {
|
|
9
|
-
let activeElement = document.activeElement;
|
|
10
|
-
if (activeElement == null) return null;
|
|
11
|
-
while (activeElement != null && activeElement.shadowRoot != null && activeElement.shadowRoot.activeElement != null) activeElement = activeElement.shadowRoot.activeElement;
|
|
12
|
-
return activeElement;
|
|
13
|
-
}
|
|
14
9
|
const useBodyLockStackCount = createSharedComposable(() => {
|
|
15
10
|
const map = ref(/* @__PURE__ */ new Map());
|
|
16
11
|
const initialOverflow = ref();
|
|
@@ -448,7 +443,6 @@ var FocusScope_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ def
|
|
|
448
443
|
var FocusScope_default = FocusScope_vue_vue_type_script_setup_true_lang_default;
|
|
449
444
|
export {
|
|
450
445
|
FocusScope_default as F,
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
useBodyScrollLock as u
|
|
446
|
+
useBodyScrollLock as a,
|
|
447
|
+
useHideOthers as u
|
|
454
448
|
};
|