@mkbabb/glass-ui 3.6.0 → 3.8.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/CardAction-q2qHCJFG.js +157 -0
- package/dist/CollapsibleContent-CP9qF1v4.js +63 -0
- package/dist/{CommandShortcut-BiVyqipe.js → CommandShortcut-SzWRhROC.js} +4 -4
- package/dist/{ContextMenuContent-De01_83g.js → ContextMenuContent-DDa0v27s.js} +1 -1
- package/dist/{ContextMenuSubContent-DrWkXKQP.js → ContextMenuSubContent-Do977Cbf.js} +4 -4
- package/dist/{DataTable-BGVXx0Ww.js → DataTable-CvlWXz65.js} +14 -7
- package/dist/DeckProgress-AVgbIULY.js +23 -0
- package/dist/{DialogContent-IQ8_BRrC.js → DialogContent-DjZWT3lK.js} +24 -24
- package/dist/{DialogFooter-Er0wA3K6.js → DialogFooter-Gprw8H_A.js} +2 -2
- package/dist/{DiscoGlyph-BaZ8OawK.js → DiscoGlyph-CG0F410s.js} +1 -1
- package/dist/{GlyphFace-B_7vOmYn.js → GlyphFace-DRjDkB0s.js} +1 -1
- package/dist/{HoverCardContent-ICfIMZX1.js → HoverCardContent-B6CcQ8He.js} +1 -1
- package/dist/{HoverPopover-DTSYkJtw.js → HoverPopover-D56O6Ylp.js} +1 -1
- package/dist/{IconTooltip-DZlCkU-0.js → IconTooltip-D2T5nYOM.js} +1 -1
- package/dist/{Input-CRJ2owjN.js → Input-DVG_J0ne.js} +4 -1
- package/dist/{Label-CZk-3nTc.js → Label-zRfbQdCn.js} +1 -1
- package/dist/{MetricBadge-BlrdbOGN.js → MetricBadge-lTc002u2.js} +1 -1
- package/dist/{Notification-DP_ApJLo.js → Notification-BxK8LZMw.js} +5 -4
- package/dist/{NumberFieldContent-Bhhmk95p.js → NumberFieldContent-CLNVR1iY.js} +5 -5
- package/dist/{PopoverContent-B8WtJECb.js → PopoverContent-BId6ggf_.js} +2 -2
- package/dist/{Progress-DjM86vfb.js → Progress-iEuD9pxG.js} +7 -7
- package/dist/{ScrollingText-P9o_DuMn.js → ScrollingText-CVyqxvfv.js} +2 -2
- package/dist/{SelectScrollDownButton-BGn3rjs9.js → SelectScrollDownButton-C7TRe-ep.js} +8 -7
- package/dist/{Separator-C2XtAXRp.js → Separator-D7sD7RKj.js} +1 -1
- package/dist/{Switch-x8n6husW.js → Switch-LDKLmmgx.js} +8 -2
- package/dist/TabsList-qyHZ2lKY.js +101 -0
- package/dist/{Toaster-DdhMKfus.js → Toaster-CabYEEF_.js} +54 -60
- package/dist/{ToggleGroupItem-gyXj998A.js → ToggleGroupItem-CkXUcBlt.js} +13 -5
- package/dist/{TooltipProvider-D-JrSqDu.js → TooltipProvider-CmZzCuaG.js} +1 -1
- package/dist/{UnderlineTabs-CuIK16JI.js → UnderlineTabs-Uxn-R3MT.js} +2 -2
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +4 -2
- package/dist/api.js +1 -1
- package/dist/aurora.js +753 -359
- package/dist/{badge-Cl6JZ1B7.js → badge-DHQrc_GQ.js} +13 -9
- package/dist/badge.js +1 -1
- package/dist/{button-BcMzVrqs.js → button-CAywcrhO.js} +6 -3
- package/dist/button.js +1 -1
- package/dist/canvas.d.ts +1 -0
- package/dist/canvas.js +3 -0
- package/dist/card.js +2 -2
- package/dist/carousel.js +110 -109
- package/dist/{check-CdkxGxXJ.js → check-BBKKKSTf.js} +1 -1
- package/dist/{chevron-down-pBY8sYfV.js → chevron-down-BSkTP2aL.js} +1 -1
- package/dist/{chevron-right-BjeKC22V.js → chevron-right-sDM0Yvrf.js} +1 -1
- package/dist/{chevron-up-DBeNHUm1.js → chevron-up-CCOD_FTz.js} +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/color-DMLTunJK.js +84 -0
- package/dist/color.js +2 -2
- package/dist/command.js +1 -1
- package/dist/compile-BBTRjvQS.js +158 -0
- package/dist/components/custom/aurora/Aurora.vue.d.ts +1 -0
- package/dist/components/custom/aurora/composables/atoms.d.ts +125 -0
- package/dist/components/custom/aurora/composables/color.d.ts +7 -25
- package/dist/components/custom/aurora/composables/cursorModel.d.ts +35 -2
- package/dist/components/custom/aurora/composables/glSetup.d.ts +1 -1
- package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +16 -0
- package/dist/components/custom/aurora/composables/runtime.d.ts +18 -0
- package/dist/components/custom/aurora/composables/uniformBridge.d.ts +46 -12
- package/dist/components/custom/aurora/composables/useAurora.d.ts +6 -0
- package/dist/components/custom/aurora/composables/useCursorInteraction.d.ts +8 -0
- package/dist/components/custom/aurora/constants/presets.d.ts +60 -4
- package/dist/components/custom/aurora/constants/renderMode.d.ts +32 -0
- package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +7 -0
- package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/composition.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/flow.glsl.d.ts +1 -1
- package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
- package/dist/components/custom/aurora/constants/shaders/painterly.wgsl.d.ts +7 -0
- package/dist/components/custom/aurora/constants/shaders/wake.wgsl.d.ts +4 -0
- package/dist/components/custom/aurora/index.d.ts +4 -3
- package/dist/components/custom/constellation/Constellation.vue.d.ts +40 -5
- package/dist/components/custom/constellation/constellationField.d.ts +110 -5
- package/dist/components/custom/constellation/index.d.ts +2 -2
- package/dist/components/custom/dock/GlassDock.vue.d.ts +12 -4
- package/dist/components/custom/dock/composables/dockMorphContext.d.ts +57 -0
- package/dist/components/custom/dock/composables/index.d.ts +3 -0
- package/dist/components/custom/dock/composables/useDockHold.d.ts +61 -0
- package/dist/components/custom/dock/composables/useLayerTransition.d.ts +13 -59
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +38 -0
- package/dist/components/custom/fourier-field/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/math.d.ts +57 -0
- package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +15 -0
- package/dist/components/custom/goo-blob/composables/useBlobMood.d.ts +18 -2
- package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +47 -4
- package/dist/components/custom/goo-blob/composables/useBlobSatellites.d.ts +2 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +19 -4
- package/dist/components/custom/goo-blob/index.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/sdf-body.glsl.d.ts +1 -1
- package/dist/components/custom/goo-blob/shaders/watercolor-edges.glsl.d.ts +2 -2
- package/dist/components/custom/goo-blob/types.d.ts +48 -0
- package/dist/components/custom/metric-cell/MetricCell.vue.d.ts +1 -1
- package/dist/components/custom/metric-stack/MetricStack.vue.d.ts +1 -1
- package/dist/components/ui/_shared/ModalOverlay.vue.d.ts +1 -1
- package/dist/components/ui/alert/index.d.ts +1 -1
- package/dist/components/ui/card/Card.vue.d.ts +26 -3
- package/dist/components/ui/card/CardAction.vue.d.ts +24 -0
- package/dist/components/ui/card/index.d.ts +2 -1
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +5 -1
- package/dist/components/ui/progress/ProgressDefault.vue.d.ts +14 -4
- package/dist/components/ui/slider/Slider.vue.d.ts +3 -1
- package/dist/components/ui/tabs/TabsList.vue.d.ts +13 -3
- package/dist/components/ui/toast/Toast.vue.d.ts +5 -5
- package/dist/components/ui/toast/use-toast.d.ts +1 -1
- package/dist/composables/color/index.d.ts +69 -0
- package/dist/composables/dom/index.d.ts +1 -1
- package/dist/composables/dom/useResolveTokenColor.d.ts +27 -0
- package/dist/composables/glass/canvas2d/index.d.ts +2 -1
- package/dist/composables/glass/canvas2d/resolveCanvasColor.d.ts +20 -0
- package/dist/composables/glass/canvas2d/useCanvas2D.d.ts +15 -1
- package/dist/composables/glass/createGPUCanvas.d.ts +40 -0
- package/dist/composables/glass/index.d.ts +3 -1
- package/dist/composables/glass/useSpecularTracking.d.ts +33 -0
- package/dist/composables/glass/webgl/createCanvasLifecycle.d.ts +45 -0
- package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +7 -0
- package/dist/composables/glass/webgl/useWebGLCanvas.d.ts +5 -5
- package/dist/composables/motion/core/index.d.ts +1 -0
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +3 -3
- package/dist/constellation.js +144 -75
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +2 -2
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/deck-progress.d.ts +1 -0
- package/dist/deck-progress.js +2 -0
- package/dist/dialog.js +2 -2
- package/dist/disco-glyph.js +1 -1
- package/dist/dock.js +388 -287
- package/dist/{dockContext-spUj_-E5.js → dockContext-BKeIMmNk.js} +1 -1
- package/dist/dom.js +6 -6
- package/dist/{dropdown-menu-EFjl5iKo.js → dropdown-menu-B_4bWyyG.js} +5 -5
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +2 -2
- package/dist/fonts/README.md +26 -18
- package/dist/forms.js +10 -7
- package/dist/fourier-field.d.ts +1 -0
- package/dist/fourier-field.js +166 -0
- package/dist/glass-carousel.js +12 -7
- package/dist/glass-panel.js +7 -7
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +209 -206
- package/dist/glyph-face.js +2 -2
- package/dist/goo-blob.js +485 -300
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/instrument-chassis.js +1 -1
- package/dist/instrument-rail.js +1 -1
- package/dist/keyboard.js +1 -1
- package/dist/{keys-BFoma9vm.js → keys-BsYjEFOW.js} +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/metric-badge.js +1 -1
- package/dist/metric-stack.js +1 -1
- package/dist/{minimize-2-BP27-qBY.js → minimize-2-lcXOuc6V.js} +1 -1
- package/dist/motion-core.js +68 -98
- package/dist/motion.js +3 -3
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/resolveCanvasColor-BBiYfp8g.js +11 -0
- package/dist/responsive-tabs.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/{search-DBG8qaRs.js → search-nbkvr2dC.js} +1 -1
- package/dist/search.js +12 -12
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-CQYYrkr9.js → sheet-VZEtNFvO.js} +4 -4
- package/dist/sheet.js +1 -1
- package/dist/slider-D9puf-Ko.js +142 -0
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/components.css +1 -1
- package/dist/styles/dock-controls.css +21 -18
- package/dist/styles/dock.css +415 -224
- package/dist/styles/fonts.css +0 -25
- package/dist/styles/glass.css +100 -41
- package/dist/styles/theme.css +58 -2
- package/dist/styles/tokens.css +139 -32
- package/dist/styles/typography.css +55 -72
- package/dist/styles/utilities.css +19 -14
- package/dist/styles/view-transition.css +12 -40
- package/dist/supportsCssTimeline-C5oe0lnD.js +12 -0
- package/dist/switch.js +1 -1
- package/dist/tabs.js +5 -5
- package/dist/timeline.js +3 -3
- package/dist/toast.js +1 -1
- package/dist/toggle-group.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-DfVgP4te.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/{useCanvas2D-BeNJqqIS.js → useCanvas2D-ClrQuZtp.js} +2 -1
- package/dist/{useConfiguratorState-DUtC1jxr.js → useConfiguratorState-CMff4GzH.js} +5 -5
- package/dist/useResolveTokenColor-r9pnNjqK.js +24 -0
- package/dist/useScrollProgress-C9ysDic5.js +35 -0
- package/dist/useSpecularTracking-BVRZsRHA.js +26 -0
- package/dist/{useTextHighlight-Dmtofpk2.js → useTextHighlight-9nMW23Qb.js} +1 -1
- package/dist/{useTouchGate-CS5Csc2h.js → useTouchGate-WFyJYsth.js} +1 -1
- package/dist/vReveal-CqaCz_mC.js +44 -0
- package/dist/watercolor-dot.js +2 -2
- package/dist/{x-C4pz9nbD.js → x-Dfsegz9Y.js} +1 -1
- package/package.json +64 -4
- package/src/fonts/README.md +26 -18
- package/src/styles/dock-controls.css +21 -18
- package/src/styles/dock.css +415 -224
- package/src/styles/fonts.css +0 -25
- package/src/styles/glass.css +100 -41
- package/src/styles/theme.css +58 -2
- package/src/styles/tokens.css +139 -32
- package/src/styles/typography.css +55 -72
- package/src/styles/utilities.css +19 -14
- package/src/styles/view-transition.css +12 -40
- package/dist/CardFooter-C390imy7.js +0 -129
- package/dist/CollapsibleContent-cauTbZEM.js +0 -52
- package/dist/TabsIndicator-DA0x9gPr.js +0 -97
- package/dist/color-DS-iLRVM.js +0 -33
- package/dist/compile-C62K_FpC.js +0 -106
- package/dist/fonts/fraunces/fraunces-latin.woff2 +0 -0
- package/dist/slider-CgNzRSh6.js +0 -129
- package/dist/useViewTransition-DI0Rs2rV.js +0 -21
- package/dist/vReveal-u2wSG2El.js +0 -35
- package/src/fonts/fraunces/fraunces-latin.woff2 +0 -0
- /package/dist/{InstrumentChassis-DaHIZCqy.js → InstrumentChassis-C2f6cBaQ.js} +0 -0
- /package/dist/{InstrumentRail-B0qqLFN0.js → InstrumentRail-CUJ05YVG.js} +0 -0
- /package/dist/{ModalOverlay-B_CBtqcE.js → ModalOverlay-B1GkAjNb.js} +0 -0
- /package/dist/{PaperBackdrop-D_YZW47j.js → PaperBackdrop-CqwjnfLv.js} +0 -0
- /package/dist/{SelectGroup-CMdoCjRE.js → SelectGroup-BFiod7X2.js} +0 -0
- /package/dist/{SelectSeparator-CaJnPF3_.js → SelectSeparator-L8pPEn4L.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-C1je1s0u.js → _plugin-vue_export-helper-ok8pgSl5.js} +0 -0
- /package/dist/composables/{dom → motion}/useTextHighlight.d.ts +0 -0
- /package/dist/{constants-C8NMonuo.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-DBMGRlx4.js → createContext-B44Sah_H.js} +0 -0
- /package/dist/{createLucideIcon-DuDoe_ra.js → createLucideIcon-B6uNAU9G.js} +0 -0
- /package/dist/{menuItemVariants-C2QlXqT3.js → menuItemVariants-DKM85SNE.js} +0 -0
- /package/dist/{presets-Dyv9Zl7W.js → presets-D1XPuTj-.js} +0 -0
- /package/dist/{prng-CjVgzjQT.js → prng-COGhh02-.js} +0 -0
- /package/dist/{useGlassRenderer-Dn3WpfG-.js → useGlassRenderer-5I0YkI4t.js} +0 -0
- /package/dist/{useGlobalDark-D7R9OypB.js → useGlobalDark-D3EBWzXK.js} +0 -0
- /package/dist/{useIntersectionPause-DsQYGc8V.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-CHVYFpXV.js → useInterval-CcLfq2WU.js} +0 -0
- /package/dist/{useKeyboardShortcuts-i8tHd5WO.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useResizeObserver-DX-STszm.js → useResizeObserver-CWCbk5Px.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-MGAbCGVJ.js} +0 -0
- /package/dist/{useSpringMount-CnizvZGm.js → useSpringMount-BJSHcLl3.js} +0 -0
- /package/dist/{useTimer-DGgoxTXL.js → useTimer-3xqf_54b.js} +0 -0
- /package/dist/{useUserInvalidAria-DmvZ_6Dx.js → useUserInvalidAria-DoJKMZ3s.js} +0 -0
- /package/dist/{useViewportReady-Dcvf0c4p.js → useViewportReady-RIr5Wgkh.js} +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { createElementBlock as t, defineComponent as n, normalizeClass as r, openBlock as i, renderSlot as a, unref as o } from "vue";
|
|
3
3
|
import { cva as s } from "class-variance-authority";
|
|
4
|
-
//#
|
|
5
|
-
|
|
6
|
-
var c = /* @__PURE__ */ n({
|
|
4
|
+
//#region src/components/ui/badge/Badge.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var c = ["data-variant", "data-size"], l = /* @__PURE__ */ n({
|
|
7
6
|
__name: "Badge",
|
|
8
7
|
props: {
|
|
9
8
|
variant: {},
|
|
@@ -18,12 +17,17 @@ var c = /* @__PURE__ */ n({
|
|
|
18
17
|
},
|
|
19
18
|
setup(n) {
|
|
20
19
|
let s = n;
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
return (l, d) => (i(), t("div", {
|
|
21
|
+
"data-slot": "badge",
|
|
22
|
+
"data-variant": n.variant,
|
|
23
|
+
"data-size": n.size,
|
|
24
|
+
class: r(o(e)(o(u)({
|
|
25
|
+
variant: n.variant,
|
|
26
|
+
size: n.size
|
|
27
|
+
}), s.class))
|
|
28
|
+
}, [a(l.$slots, "default")], 10, c));
|
|
25
29
|
}
|
|
26
|
-
}),
|
|
30
|
+
}), u = s("focus-ring inline-flex items-center gap-1.5 rounded-badge border font-semibold transition-control wrap-anywhere [&_svg:not([class*=size-])]:size-3.5 [&_svg]:shrink-0 [&_svg]:pointer-events-none", {
|
|
27
31
|
variants: {
|
|
28
32
|
variant: {
|
|
29
33
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -46,4 +50,4 @@ var c = /* @__PURE__ */ n({
|
|
|
46
50
|
}
|
|
47
51
|
});
|
|
48
52
|
//#endregion
|
|
49
|
-
export {
|
|
53
|
+
export { l as n, u as t };
|
package/dist/badge.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./badge-
|
|
1
|
+
import { n as e, t } from "./badge-DHQrc_GQ.js";
|
|
2
2
|
export { e as Badge, t as badgeVariants };
|
|
@@ -29,6 +29,8 @@ var d = /* @__PURE__ */ r({
|
|
|
29
29
|
return (t, p) => (a(), n(s(l), i({
|
|
30
30
|
as: r.as,
|
|
31
31
|
"as-child": r.asChild,
|
|
32
|
+
"data-slot": "button",
|
|
33
|
+
"data-variant": r.variant,
|
|
32
34
|
"data-size": r.size
|
|
33
35
|
}, d.value, { class: s(e)(s(f)({
|
|
34
36
|
variant: r.variant,
|
|
@@ -39,11 +41,12 @@ var d = /* @__PURE__ */ r({
|
|
|
39
41
|
}, 16, [
|
|
40
42
|
"as",
|
|
41
43
|
"as-child",
|
|
44
|
+
"data-variant",
|
|
42
45
|
"data-size",
|
|
43
46
|
"class"
|
|
44
47
|
]));
|
|
45
48
|
}
|
|
46
|
-
}), f = u("btn-pill focus-ring whitespace-nowrap text-sm font-medium cursor-pointer active:scale-[var(--scale-press-btn)] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-disabled", {
|
|
49
|
+
}), f = u("btn-pill tap-squish focus-ring whitespace-nowrap text-sm font-medium cursor-pointer active:scale-[var(--scale-press-btn)] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-disabled [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0 [&_svg]:pointer-events-none", {
|
|
47
50
|
variants: {
|
|
48
51
|
variant: {
|
|
49
52
|
default: "bg-primary text-primary-foreground hover:bg-primary/90 active:bg-primary/80 aria-pressed:bg-primary/85",
|
|
@@ -60,10 +63,10 @@ var d = /* @__PURE__ */ r({
|
|
|
60
63
|
link: "text-primary underline-offset-4 hover:underline active:opacity-80 active:scale-100"
|
|
61
64
|
},
|
|
62
65
|
size: {
|
|
63
|
-
default: "h-10 px-4 py-2",
|
|
66
|
+
default: "h-10 px-4 py-2 has-[>svg]:px-3",
|
|
64
67
|
xs: "h-7 rounded-pill px-2 text-xs",
|
|
65
68
|
sm: "h-9 rounded-pill px-3",
|
|
66
|
-
lg: "h-11 rounded-pill px-8",
|
|
69
|
+
lg: "h-11 rounded-pill px-8 has-[>svg]:px-5",
|
|
67
70
|
icon: "h-10 w-10 p-0",
|
|
68
71
|
"icon-sm": "h-7 w-7 p-0"
|
|
69
72
|
}
|
package/dist/button.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./button-
|
|
1
|
+
import { n as e, t } from "./button-CAywcrhO.js";
|
|
2
2
|
export { e as Button, t as buttonVariants };
|
package/dist/canvas.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./composables/glass/canvas2d";
|
package/dist/canvas.js
ADDED
package/dist/card.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i,
|
|
2
|
-
export {
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./CardAction-q2qHCJFG.js";
|
|
2
|
+
export { a as Card, o as CardAction, i as CardContent, t as CardDescription, n as CardFooter, r as CardHeader, e as CardTitle };
|
package/dist/carousel.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
-
import { t } from "./createLucideIcon-
|
|
3
|
-
import { t as n } from "./chevron-down-
|
|
4
|
-
import { t as r } from "./chevron-right-
|
|
5
|
-
import { t as i } from "./chevron-up-
|
|
6
|
-
import { n as a } from "./button-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import D from "
|
|
10
|
-
|
|
2
|
+
import { t } from "./createLucideIcon-B6uNAU9G.js";
|
|
3
|
+
import { t as n } from "./chevron-down-BSkTP2aL.js";
|
|
4
|
+
import { t as r } from "./chevron-right-sDM0Yvrf.js";
|
|
5
|
+
import { t as i } from "./chevron-up-CCOD_FTz.js";
|
|
6
|
+
import { n as a } from "./button-CAywcrhO.js";
|
|
7
|
+
import { t as o } from "./_plugin-vue_export-helper-ok8pgSl5.js";
|
|
8
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, mergeProps as h, normalizeClass as g, onMounted as _, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as S, toDisplayString as C, unref as w, watch as T, withCtx as E } from "vue";
|
|
9
|
+
import { createInjectionState as D } from "@vueuse/core";
|
|
10
|
+
import O from "embla-carousel-vue";
|
|
11
|
+
var k = t("arrow-left", [["path", {
|
|
11
12
|
d: "m12 19-7-7 7-7",
|
|
12
13
|
key: "1l729n"
|
|
13
14
|
}], ["path", {
|
|
14
15
|
d: "M19 12H5",
|
|
15
16
|
key: "x3x0zl"
|
|
16
|
-
}]]),
|
|
17
|
+
}]]), A = t("arrow-right", [["path", {
|
|
17
18
|
d: "M5 12h14",
|
|
18
19
|
key: "1ays0h"
|
|
19
20
|
}], ["path", {
|
|
20
21
|
d: "m12 5 7 7-7 7",
|
|
21
22
|
key: "xquz4c"
|
|
22
|
-
}]]),
|
|
23
|
+
}]]), j = t("chevron-left", [["path", {
|
|
23
24
|
d: "m15 18-6-6 6-6",
|
|
24
25
|
key: "1wnfg3"
|
|
25
|
-
}]]), [
|
|
26
|
-
let [i, a] =
|
|
26
|
+
}]]), [M, N] = D(({ opts: e, orientation: t, plugins: n }, r) => {
|
|
27
|
+
let [i, a] = O({
|
|
27
28
|
...e,
|
|
28
29
|
axis: t === "horizontal" ? "x" : "y"
|
|
29
30
|
}, n);
|
|
@@ -33,11 +34,11 @@ var O = t("arrow-left", [["path", {
|
|
|
33
34
|
function s() {
|
|
34
35
|
a.value?.scrollNext();
|
|
35
36
|
}
|
|
36
|
-
let c =
|
|
37
|
+
let c = y(!1), l = y(!1);
|
|
37
38
|
function u(e) {
|
|
38
39
|
c.value = e?.canScrollNext() || !1, l.value = e?.canScrollPrev() || !1;
|
|
39
40
|
}
|
|
40
|
-
return
|
|
41
|
+
return _(() => {
|
|
41
42
|
a.value && (a.value?.on("init", u), a.value?.on("reInit", u), a.value?.on("select", u), r("init-api", a.value));
|
|
42
43
|
}), {
|
|
43
44
|
carouselRef: i,
|
|
@@ -49,14 +50,14 @@ var O = t("arrow-left", [["path", {
|
|
|
49
50
|
orientation: t
|
|
50
51
|
};
|
|
51
52
|
});
|
|
52
|
-
function
|
|
53
|
-
let e =
|
|
53
|
+
function P() {
|
|
54
|
+
let e = N();
|
|
54
55
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
55
56
|
return e;
|
|
56
57
|
}
|
|
57
58
|
//#endregion
|
|
58
59
|
//#region src/components/ui/carousel/Carousel.vue
|
|
59
|
-
var
|
|
60
|
+
var F = /* @__PURE__ */ m({
|
|
60
61
|
__name: "Carousel",
|
|
61
62
|
props: {
|
|
62
63
|
opts: {},
|
|
@@ -72,14 +73,14 @@ var P = /* @__PURE__ */ p({
|
|
|
72
73
|
},
|
|
73
74
|
emits: ["init-api"],
|
|
74
75
|
setup(t, { expose: n, emit: r }) {
|
|
75
|
-
let i = t, { canScrollNext: a, canScrollPrev: o, carouselApi: s, carouselRef: c, orientation: l, scrollNext:
|
|
76
|
+
let i = t, { canScrollNext: a, canScrollPrev: o, carouselApi: s, carouselRef: c, orientation: l, scrollNext: u, scrollPrev: f } = M(i, r);
|
|
76
77
|
n({
|
|
77
78
|
canScrollNext: a,
|
|
78
79
|
canScrollPrev: o,
|
|
79
80
|
carouselApi: s,
|
|
80
81
|
carouselRef: c,
|
|
81
82
|
orientation: l,
|
|
82
|
-
scrollNext:
|
|
83
|
+
scrollNext: u,
|
|
83
84
|
scrollPrev: f
|
|
84
85
|
});
|
|
85
86
|
function p(e) {
|
|
@@ -88,26 +89,26 @@ var P = /* @__PURE__ */ p({
|
|
|
88
89
|
e.preventDefault(), f();
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
|
-
e.key === n && (e.preventDefault(),
|
|
92
|
+
e.key === n && (e.preventDefault(), u());
|
|
92
93
|
}
|
|
93
|
-
return (t, n) => (
|
|
94
|
+
return (t, n) => (v(), d("div", {
|
|
94
95
|
"data-slot": "carousel",
|
|
95
|
-
class:
|
|
96
|
+
class: g(w(e)("relative", i.class)),
|
|
96
97
|
role: "region",
|
|
97
98
|
"aria-roledescription": "carousel",
|
|
98
99
|
tabindex: "0",
|
|
99
100
|
onKeydown: p
|
|
100
|
-
}, [
|
|
101
|
-
canScrollNext:
|
|
102
|
-
canScrollPrev:
|
|
103
|
-
carouselApi:
|
|
104
|
-
carouselRef:
|
|
105
|
-
orientation:
|
|
106
|
-
scrollNext:
|
|
107
|
-
scrollPrev:
|
|
101
|
+
}, [x(t.$slots, "default", {
|
|
102
|
+
canScrollNext: w(a),
|
|
103
|
+
canScrollPrev: w(o),
|
|
104
|
+
carouselApi: w(s),
|
|
105
|
+
carouselRef: w(c),
|
|
106
|
+
orientation: w(l),
|
|
107
|
+
scrollNext: w(u),
|
|
108
|
+
scrollPrev: w(f)
|
|
108
109
|
})], 34));
|
|
109
110
|
}
|
|
110
|
-
}),
|
|
111
|
+
}), I = /* @__PURE__ */ m({
|
|
111
112
|
inheritAttrs: !1,
|
|
112
113
|
__name: "CarouselContent",
|
|
113
114
|
props: { class: { type: [
|
|
@@ -118,20 +119,20 @@ var P = /* @__PURE__ */ p({
|
|
|
118
119
|
Array
|
|
119
120
|
] } },
|
|
120
121
|
setup(t, { expose: n }) {
|
|
121
|
-
let r = t, { carouselRef: i, orientation: a } =
|
|
122
|
-
return n({ carouselRef: i }), (t, n) => (
|
|
122
|
+
let r = t, { carouselRef: i, orientation: a } = P();
|
|
123
|
+
return n({ carouselRef: i }), (t, n) => (v(), d("div", {
|
|
123
124
|
ref_key: "carouselRef",
|
|
124
125
|
ref: i,
|
|
125
126
|
"data-slot": "carousel-content",
|
|
126
127
|
class: "overflow-hidden"
|
|
127
|
-
}, [
|
|
128
|
+
}, [f("div", h({ class: w(e)("flex", w(a) === "horizontal" ? "-ml-4" : "-mt-4 flex-col", r.class) }, t.$attrs), [x(t.$slots, "default")], 16)], 512));
|
|
128
129
|
}
|
|
129
|
-
}),
|
|
130
|
+
}), L = ["aria-orientation"], R = [
|
|
130
131
|
"aria-selected",
|
|
131
132
|
"aria-label",
|
|
132
133
|
"data-active",
|
|
133
134
|
"onClick"
|
|
134
|
-
],
|
|
135
|
+
], z = /* @__PURE__ */ o(/* @__PURE__ */ m({
|
|
135
136
|
__name: "CarouselDots",
|
|
136
137
|
props: { class: { type: [
|
|
137
138
|
Boolean,
|
|
@@ -141,35 +142,35 @@ var P = /* @__PURE__ */ p({
|
|
|
141
142
|
Array
|
|
142
143
|
] } },
|
|
143
144
|
setup(t) {
|
|
144
|
-
let n = t, { carouselApi: r, orientation: i } =
|
|
145
|
+
let n = t, { carouselApi: r, orientation: i } = P(), a = y(0), o = y(0);
|
|
145
146
|
function c() {
|
|
146
147
|
let e = r.value;
|
|
147
|
-
e && (a.value = e.selectedScrollSnap(),
|
|
148
|
+
e && (a.value = e.selectedScrollSnap(), o.value = e.scrollSnapList().length);
|
|
148
149
|
}
|
|
149
|
-
function
|
|
150
|
+
function l(e) {
|
|
150
151
|
r.value?.scrollTo(e);
|
|
151
152
|
}
|
|
152
|
-
return
|
|
153
|
+
return T(r, (e) => {
|
|
153
154
|
e && (c(), e.on("select", c), e.on("reInit", c));
|
|
154
|
-
}, { immediate: !0 }),
|
|
155
|
+
}, { immediate: !0 }), _(c), (t, r) => o.value > 0 ? (v(), d("div", {
|
|
155
156
|
key: 0,
|
|
156
157
|
"data-slot": "carousel-dots",
|
|
157
158
|
role: "tablist",
|
|
158
|
-
"aria-orientation":
|
|
159
|
-
class:
|
|
160
|
-
}, [(
|
|
161
|
-
key:
|
|
159
|
+
"aria-orientation": w(i),
|
|
160
|
+
class: g(w(e)("carousel-dots inline-flex items-center justify-center gap-1.5", w(i) === "vertical" && "flex-col", n.class))
|
|
161
|
+
}, [(v(!0), d(s, null, b(o.value, (e) => (v(), d("button", {
|
|
162
|
+
key: e - 1,
|
|
162
163
|
type: "button",
|
|
163
164
|
role: "tab",
|
|
164
|
-
"aria-selected":
|
|
165
|
-
"aria-label": `Go to slide ${
|
|
166
|
-
"data-active":
|
|
165
|
+
"aria-selected": e - 1 === a.value,
|
|
166
|
+
"aria-label": `Go to slide ${e}`,
|
|
167
|
+
"data-active": e - 1 === a.value ? "" : void 0,
|
|
167
168
|
"data-slot": "carousel-dot",
|
|
168
|
-
class:
|
|
169
|
-
onClick: (
|
|
170
|
-
}, null,
|
|
169
|
+
class: "carousel-dot focus-ring tap-squish",
|
|
170
|
+
onClick: (t) => l(e - 1)
|
|
171
|
+
}, null, 8, R))), 128))], 10, L)) : u("", !0);
|
|
171
172
|
}
|
|
172
|
-
}),
|
|
173
|
+
}), [["__scopeId", "data-v-18c34cd8"]]), B = /* @__PURE__ */ m({
|
|
173
174
|
__name: "CarouselItem",
|
|
174
175
|
props: { class: { type: [
|
|
175
176
|
Boolean,
|
|
@@ -179,15 +180,15 @@ var P = /* @__PURE__ */ p({
|
|
|
179
180
|
Array
|
|
180
181
|
] } },
|
|
181
182
|
setup(t) {
|
|
182
|
-
let n = t, { orientation: r } =
|
|
183
|
-
return (t, i) => (
|
|
183
|
+
let n = t, { orientation: r } = P();
|
|
184
|
+
return (t, i) => (v(), d("div", {
|
|
184
185
|
"data-slot": "carousel-item",
|
|
185
186
|
role: "group",
|
|
186
187
|
"aria-roledescription": "slide",
|
|
187
|
-
class:
|
|
188
|
-
}, [
|
|
188
|
+
class: g(w(e)("min-w-0 shrink-0 grow-0 basis-full", w(r) === "horizontal" ? "pl-4" : "pt-4", n.class))
|
|
189
|
+
}, [x(t.$slots, "default")], 2));
|
|
189
190
|
}
|
|
190
|
-
}),
|
|
191
|
+
}), V = /* @__PURE__ */ m({
|
|
191
192
|
__name: "CarouselNext",
|
|
192
193
|
props: {
|
|
193
194
|
variant: { default: "outline" },
|
|
@@ -201,16 +202,16 @@ var P = /* @__PURE__ */ p({
|
|
|
201
202
|
] }
|
|
202
203
|
},
|
|
203
204
|
setup(t) {
|
|
204
|
-
let n = t, { orientation: r, canScrollNext: i, scrollNext: o } =
|
|
205
|
-
return (s,
|
|
205
|
+
let n = t, { orientation: r, canScrollNext: i, scrollNext: o } = P();
|
|
206
|
+
return (s, c) => (v(), l(w(a), {
|
|
206
207
|
"data-slot": "carousel-next",
|
|
207
|
-
disabled: !
|
|
208
|
-
class:
|
|
208
|
+
disabled: !w(i),
|
|
209
|
+
class: g(w(e)("absolute h-[var(--carousel-nav-size)] w-[var(--carousel-nav-size)] rounded-pill", w(r) === "horizontal" ? "top-1/2 -translate-y-1/2 right-[calc(-1*var(--carousel-nav-offset))]" : "left-1/2 -translate-x-1/2 rotate-90 bottom-[calc(-1*var(--carousel-nav-offset))]", n.class)),
|
|
209
210
|
variant: t.variant,
|
|
210
211
|
size: t.size,
|
|
211
|
-
onClick:
|
|
212
|
+
onClick: w(o)
|
|
212
213
|
}, {
|
|
213
|
-
default:
|
|
214
|
+
default: E(() => [x(s.$slots, "default", {}, () => [p(w(A)), c[0] ||= f("span", { class: "sr-only" }, "Next Slide", -1)])]),
|
|
214
215
|
_: 3
|
|
215
216
|
}, 8, [
|
|
216
217
|
"disabled",
|
|
@@ -220,11 +221,11 @@ var P = /* @__PURE__ */ p({
|
|
|
220
221
|
"onClick"
|
|
221
222
|
]));
|
|
222
223
|
}
|
|
223
|
-
}),
|
|
224
|
+
}), H = {
|
|
224
225
|
key: 0,
|
|
225
226
|
"data-slot": "carousel-pager-counter",
|
|
226
227
|
class: "rounded-pill border border-border bg-card px-3 py-1 text-mono-caption tabular-nums"
|
|
227
|
-
},
|
|
228
|
+
}, U = /* @__PURE__ */ m({
|
|
228
229
|
__name: "CarouselPager",
|
|
229
230
|
props: {
|
|
230
231
|
showCounter: {
|
|
@@ -240,44 +241,44 @@ var P = /* @__PURE__ */ p({
|
|
|
240
241
|
] }
|
|
241
242
|
},
|
|
242
243
|
setup(t) {
|
|
243
|
-
let o = t, { carouselApi:
|
|
244
|
+
let o = t, { carouselApi: s, canScrollNext: f, canScrollPrev: m, orientation: h, scrollNext: b, scrollPrev: x } = P(), D = y(0), O = y(0);
|
|
244
245
|
function k() {
|
|
245
|
-
let e =
|
|
246
|
+
let e = s.value;
|
|
246
247
|
e && (D.value = e.selectedScrollSnap(), O.value = e.scrollSnapList().length);
|
|
247
248
|
}
|
|
248
|
-
|
|
249
|
+
T(s, (e) => {
|
|
249
250
|
e && (k(), e.on("select", k), e.on("reInit", k));
|
|
250
|
-
}, { immediate: !0 }),
|
|
251
|
-
let
|
|
252
|
-
return (n, r) => (
|
|
251
|
+
}, { immediate: !0 }), _(k);
|
|
252
|
+
let A = c(() => h === "vertical" ? i : j), M = c(() => h === "vertical" ? n : r);
|
|
253
|
+
return (n, r) => (v(), d("div", {
|
|
253
254
|
"data-slot": "carousel-pager",
|
|
254
|
-
class:
|
|
255
|
+
class: g(w(e)("inline-flex items-center gap-2", w(h) === "vertical" && "flex-col", o.class))
|
|
255
256
|
}, [
|
|
256
|
-
|
|
257
|
+
p(w(a), {
|
|
257
258
|
variant: "ghost",
|
|
258
259
|
size: "icon",
|
|
259
|
-
disabled: !
|
|
260
|
-
"aria-label":
|
|
260
|
+
disabled: !w(m),
|
|
261
|
+
"aria-label": w(h) === "vertical" ? "Previous slide (up)" : "Previous slide",
|
|
261
262
|
"data-slot": "carousel-pager-prev",
|
|
262
|
-
onClick:
|
|
263
|
+
onClick: w(x)
|
|
263
264
|
}, {
|
|
264
|
-
default:
|
|
265
|
+
default: E(() => [(v(), l(S(A.value), { class: "size-4" }))]),
|
|
265
266
|
_: 1
|
|
266
267
|
}, 8, [
|
|
267
268
|
"disabled",
|
|
268
269
|
"aria-label",
|
|
269
270
|
"onClick"
|
|
270
271
|
]),
|
|
271
|
-
t.showCounter && O.value > 0 ? (
|
|
272
|
-
|
|
272
|
+
t.showCounter && O.value > 0 ? (v(), d("span", H, C(D.value + 1) + " / " + C(O.value), 1)) : u("", !0),
|
|
273
|
+
p(w(a), {
|
|
273
274
|
variant: "ghost",
|
|
274
275
|
size: "icon",
|
|
275
|
-
disabled: !
|
|
276
|
-
"aria-label":
|
|
276
|
+
disabled: !w(f),
|
|
277
|
+
"aria-label": w(h) === "vertical" ? "Next slide (down)" : "Next slide",
|
|
277
278
|
"data-slot": "carousel-pager-next",
|
|
278
|
-
onClick:
|
|
279
|
+
onClick: w(b)
|
|
279
280
|
}, {
|
|
280
|
-
default:
|
|
281
|
+
default: E(() => [(v(), l(S(M.value), { class: "size-4" }))]),
|
|
281
282
|
_: 1
|
|
282
283
|
}, 8, [
|
|
283
284
|
"disabled",
|
|
@@ -286,7 +287,7 @@ var P = /* @__PURE__ */ p({
|
|
|
286
287
|
])
|
|
287
288
|
], 2));
|
|
288
289
|
}
|
|
289
|
-
}),
|
|
290
|
+
}), W = /* @__PURE__ */ m({
|
|
290
291
|
__name: "CarouselPrevious",
|
|
291
292
|
props: {
|
|
292
293
|
variant: { default: "outline" },
|
|
@@ -300,16 +301,16 @@ var P = /* @__PURE__ */ p({
|
|
|
300
301
|
] }
|
|
301
302
|
},
|
|
302
303
|
setup(t) {
|
|
303
|
-
let n = t, { orientation: r, canScrollPrev: i, scrollPrev: o } =
|
|
304
|
-
return (s,
|
|
304
|
+
let n = t, { orientation: r, canScrollPrev: i, scrollPrev: o } = P();
|
|
305
|
+
return (s, c) => (v(), l(w(a), {
|
|
305
306
|
"data-slot": "carousel-previous",
|
|
306
|
-
disabled: !
|
|
307
|
-
class:
|
|
307
|
+
disabled: !w(i),
|
|
308
|
+
class: g(w(e)("absolute h-[var(--carousel-nav-size)] w-[var(--carousel-nav-size)] rounded-pill", w(r) === "horizontal" ? "top-1/2 -translate-y-1/2 left-[calc(-1*var(--carousel-nav-offset))]" : "left-1/2 -translate-x-1/2 rotate-90 top-[calc(-1*var(--carousel-nav-offset))]", n.class)),
|
|
308
309
|
variant: t.variant,
|
|
309
310
|
size: t.size,
|
|
310
|
-
onClick:
|
|
311
|
+
onClick: w(o)
|
|
311
312
|
}, {
|
|
312
|
-
default:
|
|
313
|
+
default: E(() => [x(s.$slots, "default", {}, () => [p(w(k)), c[0] ||= f("span", { class: "sr-only" }, "Previous Slide", -1)])]),
|
|
313
314
|
_: 3
|
|
314
315
|
}, 8, [
|
|
315
316
|
"disabled",
|
|
@@ -319,11 +320,11 @@ var P = /* @__PURE__ */ p({
|
|
|
319
320
|
"onClick"
|
|
320
321
|
]));
|
|
321
322
|
}
|
|
322
|
-
}),
|
|
323
|
+
}), G = {
|
|
323
324
|
key: 0,
|
|
324
325
|
"data-slot": "glass-carousel-pager-counter",
|
|
325
326
|
class: "rounded-pill border border-border bg-card px-3 py-1 text-mono-caption tabular-nums shadow-cartoon-sm"
|
|
326
|
-
},
|
|
327
|
+
}, K = /* @__PURE__ */ m({
|
|
327
328
|
__name: "GlassCarouselPager",
|
|
328
329
|
props: {
|
|
329
330
|
index: {},
|
|
@@ -351,44 +352,44 @@ var P = /* @__PURE__ */ p({
|
|
|
351
352
|
"select"
|
|
352
353
|
],
|
|
353
354
|
setup(t, { emit: o }) {
|
|
354
|
-
let
|
|
355
|
-
function
|
|
356
|
-
m.value && (
|
|
355
|
+
let s = t, f = o, m = c(() => s.loop ? s.total > 1 : s.index > 0), h = c(() => s.loop ? s.total > 1 : s.index < s.total - 1);
|
|
356
|
+
function _() {
|
|
357
|
+
m.value && (s.loop ? f("select", (s.index - 1 + s.total) % s.total) : (f("prev"), f("select", Math.max(0, s.index - 1))));
|
|
357
358
|
}
|
|
358
359
|
function y() {
|
|
359
|
-
|
|
360
|
+
h.value && (s.loop ? f("select", (s.index + 1) % s.total) : (f("next"), f("select", Math.min(s.total - 1, s.index + 1))));
|
|
360
361
|
}
|
|
361
|
-
let
|
|
362
|
-
return (n, r) => (
|
|
362
|
+
let b = c(() => s.orientation === "vertical" ? i : j), T = c(() => s.orientation === "vertical" ? n : r);
|
|
363
|
+
return (n, r) => (v(), d("div", {
|
|
363
364
|
"data-slot": "glass-carousel-pager",
|
|
364
|
-
class:
|
|
365
|
+
class: g(w(e)("inline-flex items-center gap-2", t.orientation === "vertical" && "flex-col", "max-md:flex-wrap max-md:justify-center max-md:gap-2", s.class))
|
|
365
366
|
}, [
|
|
366
|
-
|
|
367
|
+
p(w(a), {
|
|
367
368
|
variant: "outline",
|
|
368
369
|
size: "icon",
|
|
369
370
|
disabled: !m.value,
|
|
370
371
|
"aria-label": t.orientation === "vertical" ? "Previous slide (up)" : "Previous slide",
|
|
371
372
|
"data-slot": "glass-carousel-pager-prev",
|
|
372
|
-
onClick:
|
|
373
|
+
onClick: _
|
|
373
374
|
}, {
|
|
374
|
-
default:
|
|
375
|
+
default: E(() => [(v(), l(S(b.value), { class: "size-4" }))]),
|
|
375
376
|
_: 1
|
|
376
377
|
}, 8, ["disabled", "aria-label"]),
|
|
377
|
-
t.showCounter && t.total > 0 ? (
|
|
378
|
-
|
|
378
|
+
t.showCounter && t.total > 0 ? (v(), d("span", G, C(t.index + 1) + " / " + C(t.total), 1)) : u("", !0),
|
|
379
|
+
p(w(a), {
|
|
379
380
|
variant: "outline",
|
|
380
381
|
size: "icon",
|
|
381
|
-
disabled: !
|
|
382
|
+
disabled: !h.value,
|
|
382
383
|
"aria-label": t.orientation === "vertical" ? "Next slide (down)" : "Next slide",
|
|
383
384
|
"data-slot": "glass-carousel-pager-next",
|
|
384
385
|
onClick: y
|
|
385
386
|
}, {
|
|
386
|
-
default:
|
|
387
|
+
default: E(() => [(v(), l(S(T.value), { class: "size-4" }))]),
|
|
387
388
|
_: 1
|
|
388
389
|
}, 8, ["disabled", "aria-label"]),
|
|
389
|
-
|
|
390
|
+
x(n.$slots, "trailing")
|
|
390
391
|
], 2));
|
|
391
392
|
}
|
|
392
393
|
});
|
|
393
394
|
//#endregion
|
|
394
|
-
export {
|
|
395
|
+
export { F as Carousel, I as CarouselContent, z as CarouselDots, B as CarouselItem, V as CarouselNext, U as CarouselPager, W as CarouselPrevious, K as GlassCarouselPager, P as useCarousel };
|
package/dist/collapsible.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./CollapsibleContent-
|
|
1
|
+
import { n as e, r as t, t as n } from "./CollapsibleContent-CP9qF1v4.js";
|
|
2
2
|
export { t as Collapsible, n as CollapsibleContent, e as CollapsibleTrigger };
|