@brumaombra/ui-vintage 0.3.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/{BackgroundGrid-Cxvbtefm.js → BackgroundGrid-BJDDcLzF.js} +1 -1
- package/dist/{Busy-1BeD2TRH.js → Busy-BaCc_Jo8.js} +2 -1
- package/dist/{CalendarPrevButton.vue_vue_type_script_setup_true_lang-BklOxtD-.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-DDtZ0Em0.js → DialogClose-DxCTEp0d.js} +2 -2
- 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-BMXrxvBF.js → DialogTitle.vue_vue_type_script_setup_true_lang-CycrzAMT.js} +23 -14
- package/dist/{DialogTrigger-CjJ8QNL_.js → DialogTrigger-Cb3rLcid.js} +3 -3
- 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-uKrMyOZf.js +79 -0
- package/dist/{NativeSelectOption.vue_vue_type_script_setup_true_lang-Ce5VmA0n.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-Csr3nKnG.js → SheetTitle.vue_vue_type_script_setup_true_lang-Ja7-gmXd.js} +6 -18
- 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 -7
- package/dist/alert.js +8 -18
- package/dist/background-grid.js +1 -1
- 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/index.d.ts +6 -0
- package/dist/components/landing/landing-content/LandingContent.vue.d.ts +21 -0
- package/dist/components/landing/landing-content/index.d.ts +2 -0
- package/dist/components/landing/landing-footer/LandingFooter.vue.d.ts +39 -0
- package/dist/components/landing/landing-footer/index.d.ts +3 -0
- package/dist/components/landing/landing-navbar/LandingNavbar.vue.d.ts +32 -0
- package/dist/components/landing/landing-navbar/index.d.ts +2 -0
- package/dist/components/landing/landing-shell/LandingShell.vue.d.ts +31 -0
- package/dist/components/landing/landing-shell/index.d.ts +2 -0
- 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/MessageToast.vue.d.ts +2 -0
- package/dist/components/message-toast/index.d.ts +2 -0
- package/dist/components/message-toast/message-toast-state.d.ts +18 -0
- 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/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 +89 -39
- 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 +32 -37
- package/dist/empty-state-card.js +5 -0
- package/dist/error-page.js +9 -7
- 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 +11 -0
- 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 +103 -0
- 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 -3
- 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 +1012 -175
- 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 +119 -2
- package/dist/HugeiconsIcon.vue-BJ-_Wtmk.js +0 -124
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as useForwardExpose } from "./useForwardExpose-BiRQH8eO.js";
|
|
1
|
+
import { i as isNullish } from "./nullish-D3tMkl6i.js";
|
|
2
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
3
|
+
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
4
|
+
import { ref, watchEffect, toValue, nextTick, defineComponent, computed, openBlock, createBlock, unref, normalizeStyle, withCtx, renderSlot, reactive, Teleport, createCommentVNode } from "vue";
|
|
5
|
+
import { i as isClient } from "./index-DDJjWaIl.js";
|
|
6
|
+
import { o as onKeyStroke, b as useMounted } from "./index-Dw56kNV0.js";
|
|
8
7
|
function handleAndDispatchCustomEvent(name, handler, detail) {
|
|
9
8
|
const target = detail.originalEvent.target;
|
|
10
9
|
const event = new CustomEvent(name, {
|
|
@@ -15,9 +14,6 @@ function handleAndDispatchCustomEvent(name, handler, detail) {
|
|
|
15
14
|
if (handler) target.addEventListener(name, handler, { once: true });
|
|
16
15
|
target.dispatchEvent(event);
|
|
17
16
|
}
|
|
18
|
-
function isNullish(value) {
|
|
19
|
-
return value === null || value === void 0;
|
|
20
|
-
}
|
|
21
17
|
function isPlainObject(value) {
|
|
22
18
|
if (value === null || typeof value !== "object") {
|
|
23
19
|
return false;
|
|
@@ -72,177 +68,6 @@ function createDefu(merger) {
|
|
|
72
68
|
);
|
|
73
69
|
}
|
|
74
70
|
const defu = createDefu();
|
|
75
|
-
let count = 0;
|
|
76
|
-
function useId(deterministicId, prefix = "reka") {
|
|
77
|
-
var _a, _b;
|
|
78
|
-
let id;
|
|
79
|
-
if ("useId" in vue) id = (_a = vue.useId) == null ? void 0 : _a.call(vue);
|
|
80
|
-
else {
|
|
81
|
-
const configProviderContext = injectConfigProviderContext({ useId: void 0 });
|
|
82
|
-
id = ((_b = configProviderContext.useId) == null ? void 0 : _b.call(configProviderContext)) ?? `${++count}`;
|
|
83
|
-
}
|
|
84
|
-
return prefix ? `${prefix}-${id}` : id;
|
|
85
|
-
}
|
|
86
|
-
function useStateMachine(initialState, machine) {
|
|
87
|
-
const state = ref(initialState);
|
|
88
|
-
function reducer(event) {
|
|
89
|
-
const nextState = machine[state.value][event];
|
|
90
|
-
return nextState ?? state.value;
|
|
91
|
-
}
|
|
92
|
-
const dispatch = (event) => {
|
|
93
|
-
state.value = reducer(event);
|
|
94
|
-
};
|
|
95
|
-
return {
|
|
96
|
-
state,
|
|
97
|
-
dispatch
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function usePresence(present, node) {
|
|
101
|
-
var _a;
|
|
102
|
-
const stylesRef = ref({});
|
|
103
|
-
const prevAnimationNameRef = ref("none");
|
|
104
|
-
const prevPresentRef = ref(present);
|
|
105
|
-
const initialState = present.value ? "mounted" : "unmounted";
|
|
106
|
-
let timeoutId;
|
|
107
|
-
const ownerWindow = ((_a = node.value) == null ? void 0 : _a.ownerDocument.defaultView) ?? defaultWindow;
|
|
108
|
-
const { state, dispatch } = useStateMachine(initialState, {
|
|
109
|
-
mounted: {
|
|
110
|
-
UNMOUNT: "unmounted",
|
|
111
|
-
ANIMATION_OUT: "unmountSuspended"
|
|
112
|
-
},
|
|
113
|
-
unmountSuspended: {
|
|
114
|
-
MOUNT: "mounted",
|
|
115
|
-
ANIMATION_END: "unmounted"
|
|
116
|
-
},
|
|
117
|
-
unmounted: { MOUNT: "mounted" }
|
|
118
|
-
});
|
|
119
|
-
const dispatchCustomEvent = (name) => {
|
|
120
|
-
var _a2;
|
|
121
|
-
if (isClient) {
|
|
122
|
-
const customEvent = new CustomEvent(name, {
|
|
123
|
-
bubbles: false,
|
|
124
|
-
cancelable: false
|
|
125
|
-
});
|
|
126
|
-
(_a2 = node.value) == null ? void 0 : _a2.dispatchEvent(customEvent);
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
watch(present, async (currentPresent, prevPresent) => {
|
|
130
|
-
var _a2;
|
|
131
|
-
const hasPresentChanged = prevPresent !== currentPresent;
|
|
132
|
-
await nextTick();
|
|
133
|
-
if (hasPresentChanged) {
|
|
134
|
-
const prevAnimationName = prevAnimationNameRef.value;
|
|
135
|
-
const currentAnimationName = getAnimationName(node.value);
|
|
136
|
-
if (currentPresent) {
|
|
137
|
-
dispatch("MOUNT");
|
|
138
|
-
dispatchCustomEvent("enter");
|
|
139
|
-
if (currentAnimationName === "none") dispatchCustomEvent("after-enter");
|
|
140
|
-
} else if (currentAnimationName === "none" || currentAnimationName === "undefined" || ((_a2 = stylesRef.value) == null ? void 0 : _a2.display) === "none") {
|
|
141
|
-
dispatch("UNMOUNT");
|
|
142
|
-
dispatchCustomEvent("leave");
|
|
143
|
-
dispatchCustomEvent("after-leave");
|
|
144
|
-
} else {
|
|
145
|
-
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
146
|
-
if (prevPresent && isAnimating) {
|
|
147
|
-
dispatch("ANIMATION_OUT");
|
|
148
|
-
dispatchCustomEvent("leave");
|
|
149
|
-
} else {
|
|
150
|
-
dispatch("UNMOUNT");
|
|
151
|
-
dispatchCustomEvent("after-leave");
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}, { immediate: true });
|
|
156
|
-
const handleAnimationEnd = (event) => {
|
|
157
|
-
const currentAnimationName = getAnimationName(node.value);
|
|
158
|
-
const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));
|
|
159
|
-
const directionName = state.value === "mounted" ? "enter" : "leave";
|
|
160
|
-
if (event.target === node.value && isCurrentAnimation) {
|
|
161
|
-
dispatchCustomEvent(`after-${directionName}`);
|
|
162
|
-
dispatch("ANIMATION_END");
|
|
163
|
-
if (!prevPresentRef.value) {
|
|
164
|
-
const currentFillMode = node.value.style.animationFillMode;
|
|
165
|
-
node.value.style.animationFillMode = "forwards";
|
|
166
|
-
timeoutId = ownerWindow == null ? void 0 : ownerWindow.setTimeout(() => {
|
|
167
|
-
var _a2;
|
|
168
|
-
if (((_a2 = node.value) == null ? void 0 : _a2.style.animationFillMode) === "forwards") node.value.style.animationFillMode = currentFillMode;
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
if (event.target === node.value && currentAnimationName === "none") dispatch("ANIMATION_END");
|
|
173
|
-
};
|
|
174
|
-
const handleAnimationStart = (event) => {
|
|
175
|
-
if (event.target === node.value) prevAnimationNameRef.value = getAnimationName(node.value);
|
|
176
|
-
};
|
|
177
|
-
const watcher = watch(node, (newNode, oldNode) => {
|
|
178
|
-
if (newNode) {
|
|
179
|
-
stylesRef.value = getComputedStyle(newNode);
|
|
180
|
-
newNode.addEventListener("animationstart", handleAnimationStart);
|
|
181
|
-
newNode.addEventListener("animationcancel", handleAnimationEnd);
|
|
182
|
-
newNode.addEventListener("animationend", handleAnimationEnd);
|
|
183
|
-
} else {
|
|
184
|
-
dispatch("ANIMATION_END");
|
|
185
|
-
if (timeoutId !== void 0) ownerWindow == null ? void 0 : ownerWindow.clearTimeout(timeoutId);
|
|
186
|
-
oldNode == null ? void 0 : oldNode.removeEventListener("animationstart", handleAnimationStart);
|
|
187
|
-
oldNode == null ? void 0 : oldNode.removeEventListener("animationcancel", handleAnimationEnd);
|
|
188
|
-
oldNode == null ? void 0 : oldNode.removeEventListener("animationend", handleAnimationEnd);
|
|
189
|
-
}
|
|
190
|
-
}, { immediate: true });
|
|
191
|
-
const stateWatcher = watch(state, () => {
|
|
192
|
-
const currentAnimationName = getAnimationName(node.value);
|
|
193
|
-
prevAnimationNameRef.value = state.value === "mounted" ? currentAnimationName : "none";
|
|
194
|
-
});
|
|
195
|
-
onUnmounted(() => {
|
|
196
|
-
watcher();
|
|
197
|
-
stateWatcher();
|
|
198
|
-
});
|
|
199
|
-
const isPresent = computed(() => ["mounted", "unmountSuspended"].includes(state.value));
|
|
200
|
-
return { isPresent };
|
|
201
|
-
}
|
|
202
|
-
function getAnimationName(node) {
|
|
203
|
-
return node ? getComputedStyle(node).animationName || "none" : "none";
|
|
204
|
-
}
|
|
205
|
-
var Presence_default = defineComponent({
|
|
206
|
-
name: "Presence",
|
|
207
|
-
props: {
|
|
208
|
-
present: {
|
|
209
|
-
type: Boolean,
|
|
210
|
-
required: true
|
|
211
|
-
},
|
|
212
|
-
forceMount: { type: Boolean }
|
|
213
|
-
},
|
|
214
|
-
slots: {},
|
|
215
|
-
setup(props, { slots, expose }) {
|
|
216
|
-
var _a;
|
|
217
|
-
const { present, forceMount } = toRefs(props);
|
|
218
|
-
const node = ref();
|
|
219
|
-
const { isPresent } = usePresence(present, node);
|
|
220
|
-
expose({ present: isPresent });
|
|
221
|
-
let children = slots.default({ present: isPresent.value });
|
|
222
|
-
children = renderSlotFragments(children || []);
|
|
223
|
-
const instance = getCurrentInstance();
|
|
224
|
-
if (children && (children == null ? void 0 : children.length) > 1) {
|
|
225
|
-
const componentName = ((_a = instance == null ? void 0 : instance.parent) == null ? void 0 : _a.type.name) ? `<${instance.parent.type.name} />` : "component";
|
|
226
|
-
throw new Error([
|
|
227
|
-
`Detected an invalid children for \`${componentName}\` for \`Presence\` component.`,
|
|
228
|
-
"",
|
|
229
|
-
"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
|
|
230
|
-
"You can apply a few solutions:",
|
|
231
|
-
["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((line) => ` - ${line}`).join("\n")
|
|
232
|
-
].join("\n"));
|
|
233
|
-
}
|
|
234
|
-
return () => {
|
|
235
|
-
if (forceMount.value || present.value || isPresent.value) return h(slots.default({ present: isPresent.value })[0], { ref: (v) => {
|
|
236
|
-
const el = unrefElement(v);
|
|
237
|
-
if (typeof (el == null ? void 0 : el.hasAttribute) === "undefined") return el;
|
|
238
|
-
if (el == null ? void 0 : el.hasAttribute("data-reka-popper-content-wrapper")) node.value = el.firstElementChild;
|
|
239
|
-
else node.value = el;
|
|
240
|
-
return el;
|
|
241
|
-
} });
|
|
242
|
-
else return null;
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
71
|
const POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
247
72
|
const FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
248
73
|
function isLayerExist(layerElement, targetElement) {
|
|
@@ -484,10 +309,7 @@ var Teleport_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
|
|
|
484
309
|
var Teleport_default = Teleport_vue_vue_type_script_setup_true_lang_default;
|
|
485
310
|
export {
|
|
486
311
|
DismissableLayer_default as D,
|
|
487
|
-
Presence_default as P,
|
|
488
312
|
Teleport_default as T,
|
|
489
313
|
defu as d,
|
|
490
|
-
handleAndDispatchCustomEvent as h
|
|
491
|
-
isNullish as i,
|
|
492
|
-
useId as u
|
|
314
|
+
handleAndDispatchCustomEvent as h
|
|
493
315
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
|
|
2
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./Input.vue_vue_type_script_setup_true_lang-BdjbS5s7.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "TimePicker",
|
|
6
|
+
props: {
|
|
7
|
+
defaultValue: { default: "" },
|
|
8
|
+
modelValue: {},
|
|
9
|
+
step: { default: 1 },
|
|
10
|
+
min: {},
|
|
11
|
+
max: {},
|
|
12
|
+
disabled: { type: Boolean, default: false },
|
|
13
|
+
class: {},
|
|
14
|
+
inputClass: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:modelValue"],
|
|
17
|
+
setup(__props, { emit: __emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const emits = __emit;
|
|
20
|
+
const internalValue = ref(props.defaultValue);
|
|
21
|
+
const isControlled = computed(() => props.modelValue !== void 0);
|
|
22
|
+
const time = computed({
|
|
23
|
+
get: () => (isControlled.value ? props.modelValue : internalValue.value) ?? "",
|
|
24
|
+
set: (value) => {
|
|
25
|
+
const nextValue = String(value);
|
|
26
|
+
if (!isControlled.value)
|
|
27
|
+
internalValue.value = nextValue;
|
|
28
|
+
emits("update:modelValue", nextValue);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createBlock(unref(_sfc_main$1), {
|
|
33
|
+
modelValue: time.value,
|
|
34
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => time.value = $event),
|
|
35
|
+
type: "time",
|
|
36
|
+
step: props.step,
|
|
37
|
+
min: props.min,
|
|
38
|
+
max: props.max,
|
|
39
|
+
disabled: props.disabled,
|
|
40
|
+
class: normalizeClass(unref(cn)(
|
|
41
|
+
"cursor-pointer font-normal hover:border-(--border-hover-light) hover:bg-(--bg-selected-light) dark:hover:border-(--border-hover-dark) dark:hover:bg-(--bg-selected-dark) [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:opacity-70 hover:[&::-webkit-calendar-picker-indicator]:opacity-100",
|
|
42
|
+
props.inputClass,
|
|
43
|
+
props.class
|
|
44
|
+
))
|
|
45
|
+
}, null, 8, ["modelValue", "step", "min", "max", "disabled", "class"]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
_sfc_main as _
|
|
51
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { ref, watchEffect, defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, computed, normalizeStyle, createVNode, normalizeProps, guardReactiveProps, toRefs, watch, onMounted, withModifiers, createTextVNode, toDisplayString, resolveDynamicComponent, toHandlers } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as useForwardExpose } from "./useForwardExpose-
|
|
2
|
+
import { a as useForwardProps, u as useForwardPropsEmits } from "./useForwardPropsEmits-GlUGKcIz.js";
|
|
3
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
4
4
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
5
|
-
import { i as injectPopperContentContext, a as PopperRoot_default, b as PopperContent_default, P as PopperAnchor_default } from "./PopperContent-
|
|
6
|
-
import {
|
|
5
|
+
import { i as injectPopperContentContext, a as PopperRoot_default, b as PopperContent_default, P as PopperAnchor_default } from "./PopperContent-DUJ8a4i0.js";
|
|
6
|
+
import { P as Presence_default } from "./Presence-CTmUEdMR.js";
|
|
7
|
+
import { d as defu, D as DismissableLayer_default, T as Teleport_default } from "./Teleport-DTOwRCqx.js";
|
|
7
8
|
import { V as VisuallyHidden_default } from "./VisuallyHidden-udQT2Fmo.js";
|
|
8
|
-
import {
|
|
9
|
-
import { g as refAutoReset, e as tryOnScopeDispose, o as createEventHook, u as useTimeoutFn, r as reactiveOmit } from "./index-
|
|
9
|
+
import { a as useVModel, c as useEventListener } from "./index-Dw56kNV0.js";
|
|
10
|
+
import { g as refAutoReset, e as tryOnScopeDispose, o as createEventHook, u as useTimeoutFn, r as reactiveOmit } from "./index-DDJjWaIl.js";
|
|
10
11
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
12
|
+
import { u as useId } from "./useId-CF6wz41D.js";
|
|
13
|
+
import { c as createContext } from "./createContext-BabAT1K8.js";
|
|
11
14
|
function useGraceArea(triggerElement, containerElement) {
|
|
12
15
|
const isPointerInTransit = refAutoReset(false, 300);
|
|
13
16
|
tryOnScopeDispose(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as usePrimitiveElement } from "./usePrimitiveElement-
|
|
1
|
+
import { u as usePrimitiveElement } from "./usePrimitiveElement-BCpwlakH.js";
|
|
2
2
|
import { V as VisuallyHidden_default } from "./VisuallyHidden-udQT2Fmo.js";
|
|
3
3
|
import { defineComponent, computed, watch, openBlock, createBlock, mergeProps, createElementBlock, Fragment, createCommentVNode, renderList } from "vue";
|
|
4
4
|
var VisuallyHiddenInputBubble_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
package/dist/alert-dialog.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as injectAlertDialogContentContext } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _, a, d, e, b, c } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { i as injectAlertDialogContentContext } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-_UW48pv7.js";
|
|
2
|
+
import { _, a, d, e, b, c } from "./AlertDialogTitle.vue_vue_type_script_setup_true_lang-_UW48pv7.js";
|
|
3
3
|
import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps, withCtx, renderSlot, onMounted, mergeProps } from "vue";
|
|
4
|
-
import { u as useForwardExpose } from "./useForwardExpose-
|
|
5
|
-
import { D as DialogClose_default } from "./DialogClose-
|
|
4
|
+
import { u as useForwardExpose } from "./useForwardExpose-BcX3VRdS.js";
|
|
5
|
+
import { D as DialogClose_default } from "./DialogClose-DxCTEp0d.js";
|
|
6
6
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
7
7
|
import { buttonVariants } from "./button.js";
|
|
8
|
-
import { r as reactiveOmit } from "./index-
|
|
9
|
-
import { D as DialogTrigger_default } from "./DialogTrigger-
|
|
8
|
+
import { r as reactiveOmit } from "./index-DDJjWaIl.js";
|
|
9
|
+
import { D as DialogTrigger_default } from "./DialogTrigger-Cb3rLcid.js";
|
|
10
10
|
var AlertDialogAction_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "AlertDialogAction",
|
|
12
12
|
props: {
|
|
@@ -121,7 +121,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
return (_ctx, _cache) => {
|
|
122
122
|
return openBlock(), createBlock(unref(AlertDialogCancel_default), mergeProps(unref(delegatedProps), {
|
|
123
123
|
class: unref(cn)(
|
|
124
|
-
unref(buttonVariants)({ variant: "
|
|
124
|
+
unref(buttonVariants)({ variant: "secondary" }),
|
|
125
125
|
"mt-2 sm:mt-0",
|
|
126
126
|
props.class
|
|
127
127
|
)
|
package/dist/alert.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { c as cva } from "./index-FpH8cK6B.js";
|
|
2
2
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
3
|
+
import { g as getSurfaceToneClasses } from "./color-tokens-D9BviGPK.js";
|
|
3
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
4
5
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "Alert",
|
|
6
7
|
props: {
|
|
7
8
|
class: {},
|
|
8
|
-
|
|
9
|
+
color: {}
|
|
9
10
|
},
|
|
10
11
|
setup(__props) {
|
|
11
12
|
const props = __props;
|
|
12
13
|
return (_ctx, _cache) => {
|
|
13
14
|
return openBlock(), createElementBlock("div", {
|
|
14
15
|
"data-slot": "alert",
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
role: "alert",
|
|
17
|
+
class: normalizeClass(unref(cn)(unref(alertClasses)(), unref(getSurfaceToneClasses)(props.color ?? "gray"), props.class))
|
|
17
18
|
}, [
|
|
18
19
|
renderSlot(_ctx.$slots, "default")
|
|
19
20
|
], 2);
|
|
@@ -47,30 +48,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
48
|
return (_ctx, _cache) => {
|
|
48
49
|
return openBlock(), createElementBlock("div", {
|
|
49
50
|
"data-slot": "alert-title",
|
|
50
|
-
class: normalizeClass(unref(cn)("col-start-2 line-clamp-1 min-h-4 font-
|
|
51
|
+
class: normalizeClass(unref(cn)("col-start-2 line-clamp-1 min-h-4 font-bold tracking-tight text-current", props.class))
|
|
51
52
|
}, [
|
|
52
53
|
renderSlot(_ctx.$slots, "default")
|
|
53
54
|
], 2);
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
});
|
|
57
|
-
const
|
|
58
|
-
"relative w-full rounded
|
|
59
|
-
{
|
|
60
|
-
variants: {
|
|
61
|
-
variant: {
|
|
62
|
-
default: "",
|
|
63
|
-
destructive: "text-destructive [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
defaultVariants: {
|
|
67
|
-
variant: "default"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
58
|
+
const alertClasses = cva(
|
|
59
|
+
"relative w-full rounded px-3 py-2 text-xs transition-colors duration-300 ease-in-out grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current sm:px-4 sm:py-3 sm:text-sm"
|
|
70
60
|
);
|
|
71
61
|
export {
|
|
72
62
|
_sfc_main$2 as Alert,
|
|
73
63
|
_sfc_main$1 as AlertDescription,
|
|
74
64
|
_sfc_main as AlertTitle,
|
|
75
|
-
|
|
65
|
+
alertClasses
|
|
76
66
|
};
|
package/dist/background-grid.js
CHANGED
package/dist/badge.js
CHANGED
|
@@ -1,50 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, toDisplayString } from "vue";
|
|
2
|
+
import { g as getSurfaceToneClasses } from "./color-tokens-D9BviGPK.js";
|
|
4
3
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
5
|
__name: "Badge",
|
|
7
6
|
props: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
as: {}
|
|
7
|
+
text: {},
|
|
8
|
+
color: { default: "gray" },
|
|
9
|
+
class: {}
|
|
12
10
|
},
|
|
13
11
|
setup(__props) {
|
|
14
12
|
const props = __props;
|
|
15
13
|
return (_ctx, _cache) => {
|
|
16
|
-
return openBlock(),
|
|
14
|
+
return openBlock(), createElementBlock("span", {
|
|
17
15
|
"data-slot": "badge",
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"as-child": _ctx.asChild,
|
|
21
|
-
class: normalizeClass(unref(cn)(unref(badgeVariants)({ variant: _ctx.variant }), props.class))
|
|
22
|
-
}, {
|
|
23
|
-
default: withCtx(() => [
|
|
24
|
-
renderSlot(_ctx.$slots, "default")
|
|
25
|
-
]),
|
|
26
|
-
_: 3
|
|
27
|
-
}, 8, ["data-variant", "as", "as-child", "class"]);
|
|
16
|
+
class: normalizeClass(unref(cn)("inline-flex w-fit items-center justify-center whitespace-nowrap rounded border px-2 py-0.5 text-xs font-semibold transition-colors duration-300 ease-in-out", unref(getSurfaceToneClasses)(props.color), props.class))
|
|
17
|
+
}, toDisplayString(props.text), 3);
|
|
28
18
|
};
|
|
29
19
|
}
|
|
30
20
|
});
|
|
31
|
-
const badgeVariants = cva(
|
|
32
|
-
"inline-flex items-center justify-center rounded border px-2 py-1 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
33
|
-
{
|
|
34
|
-
variants: {
|
|
35
|
-
variant: {
|
|
36
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
37
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
38
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
39
|
-
outline: "border-border text-muted-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
variant: "default"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
21
|
export {
|
|
48
|
-
_sfc_main as Badge
|
|
49
|
-
badgeVariants
|
|
22
|
+
_sfc_main as Badge
|
|
50
23
|
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, unref, createVNode, createElementVNode, createBlock, withCtx } from "vue";
|
|
2
|
+
import { K as K1, N as Nn } from "./index.min-CZ9FIOXr.js";
|
|
3
|
+
import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
4
|
+
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
|
+
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
6
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "Breadcrumb",
|
|
8
|
+
props: {
|
|
9
|
+
class: {}
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
return openBlock(), createElementBlock("nav", {
|
|
15
|
+
"aria-label": "breadcrumb",
|
|
16
|
+
"data-slot": "breadcrumb",
|
|
17
|
+
class: normalizeClass(props.class)
|
|
18
|
+
}, [
|
|
19
|
+
renderSlot(_ctx.$slots, "default")
|
|
20
|
+
], 2);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "BreadcrumbEllipsis",
|
|
26
|
+
props: {
|
|
27
|
+
class: {}
|
|
28
|
+
},
|
|
29
|
+
setup(__props) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return openBlock(), createElementBlock("span", {
|
|
33
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
34
|
+
role: "presentation",
|
|
35
|
+
"aria-hidden": "true",
|
|
36
|
+
class: normalizeClass(unref(cn)("flex size-9 items-center justify-center", props.class))
|
|
37
|
+
}, [
|
|
38
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
39
|
+
createVNode(unref(HugeiconsIcon), {
|
|
40
|
+
icon: unref(K1),
|
|
41
|
+
class: "size-4"
|
|
42
|
+
}, null, 8, ["icon"])
|
|
43
|
+
]),
|
|
44
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "More", -1))
|
|
45
|
+
], 2);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
50
|
+
__name: "BreadcrumbItem",
|
|
51
|
+
props: {
|
|
52
|
+
class: {}
|
|
53
|
+
},
|
|
54
|
+
setup(__props) {
|
|
55
|
+
const props = __props;
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return openBlock(), createElementBlock("li", {
|
|
58
|
+
"data-slot": "breadcrumb-item",
|
|
59
|
+
class: normalizeClass(unref(cn)("inline-flex items-center gap-1.5", props.class))
|
|
60
|
+
}, [
|
|
61
|
+
renderSlot(_ctx.$slots, "default")
|
|
62
|
+
], 2);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
67
|
+
__name: "BreadcrumbLink",
|
|
68
|
+
props: {
|
|
69
|
+
asChild: { type: Boolean },
|
|
70
|
+
as: { default: "a" },
|
|
71
|
+
class: {}
|
|
72
|
+
},
|
|
73
|
+
setup(__props) {
|
|
74
|
+
const props = __props;
|
|
75
|
+
return (_ctx, _cache) => {
|
|
76
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
77
|
+
"data-slot": "breadcrumb-link",
|
|
78
|
+
as: _ctx.as,
|
|
79
|
+
"as-child": _ctx.asChild,
|
|
80
|
+
class: normalizeClass(unref(cn)("hover:text-foreground transition-colors", props.class))
|
|
81
|
+
}, {
|
|
82
|
+
default: withCtx(() => [
|
|
83
|
+
renderSlot(_ctx.$slots, "default")
|
|
84
|
+
]),
|
|
85
|
+
_: 3
|
|
86
|
+
}, 8, ["as", "as-child", "class"]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
91
|
+
__name: "BreadcrumbList",
|
|
92
|
+
props: {
|
|
93
|
+
class: {}
|
|
94
|
+
},
|
|
95
|
+
setup(__props) {
|
|
96
|
+
const props = __props;
|
|
97
|
+
return (_ctx, _cache) => {
|
|
98
|
+
return openBlock(), createElementBlock("ol", {
|
|
99
|
+
"data-slot": "breadcrumb-list",
|
|
100
|
+
class: normalizeClass(unref(cn)("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", props.class))
|
|
101
|
+
}, [
|
|
102
|
+
renderSlot(_ctx.$slots, "default")
|
|
103
|
+
], 2);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
108
|
+
__name: "BreadcrumbPage",
|
|
109
|
+
props: {
|
|
110
|
+
class: {}
|
|
111
|
+
},
|
|
112
|
+
setup(__props) {
|
|
113
|
+
const props = __props;
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return openBlock(), createElementBlock("span", {
|
|
116
|
+
"data-slot": "breadcrumb-page",
|
|
117
|
+
role: "link",
|
|
118
|
+
"aria-disabled": "true",
|
|
119
|
+
"aria-current": "page",
|
|
120
|
+
class: normalizeClass(unref(cn)("text-foreground font-normal", props.class))
|
|
121
|
+
}, [
|
|
122
|
+
renderSlot(_ctx.$slots, "default")
|
|
123
|
+
], 2);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
128
|
+
__name: "BreadcrumbSeparator",
|
|
129
|
+
props: {
|
|
130
|
+
class: {}
|
|
131
|
+
},
|
|
132
|
+
setup(__props) {
|
|
133
|
+
const props = __props;
|
|
134
|
+
return (_ctx, _cache) => {
|
|
135
|
+
return openBlock(), createElementBlock("li", {
|
|
136
|
+
"data-slot": "breadcrumb-separator",
|
|
137
|
+
role: "presentation",
|
|
138
|
+
"aria-hidden": "true",
|
|
139
|
+
class: normalizeClass(unref(cn)("[&>svg]:size-3.5", props.class))
|
|
140
|
+
}, [
|
|
141
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
142
|
+
createVNode(unref(HugeiconsIcon), {
|
|
143
|
+
icon: unref(Nn),
|
|
144
|
+
class: "size-3.5"
|
|
145
|
+
}, null, 8, ["icon"])
|
|
146
|
+
])
|
|
147
|
+
], 2);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
export {
|
|
152
|
+
_sfc_main$6 as Breadcrumb,
|
|
153
|
+
_sfc_main$5 as BreadcrumbEllipsis,
|
|
154
|
+
_sfc_main$4 as BreadcrumbItem,
|
|
155
|
+
_sfc_main$3 as BreadcrumbLink,
|
|
156
|
+
_sfc_main$2 as BreadcrumbList,
|
|
157
|
+
_sfc_main$1 as BreadcrumbPage,
|
|
158
|
+
_sfc_main as BreadcrumbSeparator
|
|
159
|
+
};
|
package/dist/busy-indicator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, render, h, defineComponent, openBlock, createBlock, unref, normalizeClass } from "vue";
|
|
2
|
-
import { B as Busy } from "./Busy-
|
|
2
|
+
import { B as Busy } from "./Busy-BaCc_Jo8.js";
|
|
3
3
|
const BUSY_INDICATOR_ROOT_ID = "ui-vintage-busy-indicator-root";
|
|
4
4
|
let busyIndicatorMountPromise = null;
|
|
5
5
|
const busyIndicatorState = reactive({
|
package/dist/busy.js
CHANGED