@mkbabb/glass-ui 3.13.0 → 4.0.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-XH4YBVEK.js +158 -0
- package/dist/{CommandShortcut-RowNEO6i.js → CommandShortcut-DdtWXxOK.js} +57 -52
- package/dist/{ContextMenuSubContent-BQmxTAdw.js → ContextMenuSubContent-B0Vs6atR.js} +1 -1
- package/dist/{DataTable-BCddn3T3.js → DataTable-C464Zbqd.js} +99 -97
- package/dist/DialogContent-DDE6pQBU.js +103 -0
- package/dist/{DialogFooter-Blu4t7tJ.js → DialogFooter-8eZbdmPc.js} +1 -1
- package/dist/FadingScroll-DwNnvKMs.js +76 -0
- package/dist/{HoverPopover-CISOJQuZ.js → HoverPopover-Dpzwvc4t.js} +1 -1
- package/dist/IconChip-BDw1j5mu.js +54 -0
- package/dist/{MetricBadge-C9QMz1KT.js → MetricBadge-BpC0R_Ec.js} +1 -1
- package/dist/{Notification-DdwNxIrI.js → Notification-DKjKsQq8.js} +8 -8
- package/dist/{NumberFieldContent-CqaN-SvN.js → NumberFieldContent-1VtwDSgf.js} +1 -1
- package/dist/PopoverContent-BTorlp--.js +127 -0
- package/dist/{Progress-DwlUKGbr.js → Progress-hAT4gqGH.js} +97 -77
- package/dist/{ScrollingText-DfFrwSph.js → ScrollingText-CUVFTWk2.js} +2 -2
- package/dist/{SelectScrollDownButton-CiDUxfEj.js → SelectScrollDownButton-C1jb3b3K.js} +22 -6
- package/dist/{Switch-CsIuYP_e.js → Switch-Dr--uLGH.js} +1 -1
- package/dist/{Toaster-D6q4HtXu.js → Toaster-Bm_HQSpc.js} +6 -6
- package/dist/{ToggleGroupItem-D_AHlRw9.js → ToggleGroupItem-Dzk9hWsF.js} +1 -1
- package/dist/animated-digit.js +2 -2
- package/dist/api/index.d.ts +8 -5
- package/dist/api.js +2 -2
- package/dist/aurora.js +132 -117
- package/dist/{button-ChXMfsud.js → button-BNDWhAZb.js} +2 -2
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +1 -1
- package/dist/carousel.js +97 -141
- package/dist/collapsible.js +1 -1
- package/dist/color-swatch.d.ts +1 -0
- package/dist/color-swatch.js +47 -0
- package/dist/color.js +1 -1
- package/dist/command.js +1 -1
- package/dist/components/custom/aurora/constants/presets.d.ts +28 -0
- package/dist/components/custom/aurora/constants/renderMode.d.ts +2 -0
- package/dist/components/custom/aurora/index.d.ts +1 -1
- package/dist/components/custom/color-swatch/ColorSwatch.vue.d.ts +22 -0
- package/dist/components/custom/color-swatch/index.d.ts +1 -0
- package/dist/components/custom/configurator/Configurator.vue.d.ts +19 -8
- package/dist/components/custom/constellation/Constellation.vue.d.ts +18 -206
- package/dist/components/custom/constellation/composables/useConstellation.d.ts +26 -0
- package/dist/components/custom/constellation/constellationField.d.ts +2 -369
- package/dist/components/custom/constellation/constellationTypes.d.ts +369 -0
- package/dist/components/custom/constellation/index.d.ts +1 -1
- package/dist/components/custom/dock/DockRail.vue.d.ts +17 -16
- package/dist/components/custom/dock/DockSection.vue.d.ts +69 -0
- package/dist/components/custom/dock/DockSeparator.vue.d.ts +49 -1
- package/dist/components/custom/dock/DockTabButton.vue.d.ts +5 -5
- package/dist/components/custom/dock/constants.d.ts +35 -0
- package/dist/components/custom/dock/index.d.ts +2 -0
- package/dist/components/custom/expandable-container/ExpandableContainer.vue.d.ts +10 -0
- package/dist/components/custom/fading-scroll/FadingScroll.vue.d.ts +25 -0
- package/dist/components/custom/fading-scroll/composables/useFadingScroll.d.ts +31 -0
- package/dist/components/custom/fading-scroll/constants.d.ts +19 -0
- package/dist/components/custom/fading-scroll/index.d.ts +2 -0
- package/dist/components/custom/fourier-field/FourierField.vue.d.ts +7 -0
- package/dist/components/custom/fourier-field/index.d.ts +1 -1
- package/dist/components/custom/fourier-field/math.d.ts +17 -0
- package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +8 -0
- package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +11 -1
- package/dist/components/custom/goo-blob/constants.d.ts +6 -1
- package/dist/components/custom/handmark/HandMark.vue.d.ts +29 -0
- package/dist/components/custom/handmark/brush.d.ts +269 -0
- package/dist/components/custom/handmark/composables/useHandMark.d.ts +89 -0
- package/dist/components/custom/handmark/constants.d.ts +39 -0
- package/dist/components/custom/handmark/freehand.d.ts +69 -0
- package/dist/components/custom/handmark/geometry.d.ts +52 -0
- package/dist/components/custom/handmark/index.d.ts +27 -0
- package/dist/components/custom/handmark/ink.d.ts +11 -0
- package/dist/components/custom/handmark/texture.d.ts +39 -0
- package/dist/components/custom/handmark/types.d.ts +62 -0
- package/dist/components/custom/icon-chip/IconChip.vue.d.ts +4 -0
- package/dist/components/custom/icon-chip/index.d.ts +2 -0
- package/dist/components/custom/icon-chip/types.d.ts +72 -0
- package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +15 -2
- package/dist/components/custom/pager-dots/PagerDots.vue.d.ts +39 -0
- package/dist/components/custom/pager-dots/index.d.ts +2 -0
- package/dist/components/custom/tabs/SegmentedTabs.vue.d.ts +20 -25
- package/dist/components/custom/tabs/composables/useTabIndicator.d.ts +30 -21
- package/dist/components/custom/tabs/constants.d.ts +9 -3
- package/dist/components/custom/tabs/index.d.ts +1 -1
- package/dist/components/custom/watercolor-dot/WatercolorDot.vue.d.ts +14 -0
- package/dist/components/ui/_shared/index.d.ts +2 -0
- package/dist/components/ui/_shared/menuItemVariants.d.ts +19 -0
- package/dist/components/ui/_shared/useSurfaceAxis.d.ts +41 -0
- package/dist/components/ui/card/Card.vue.d.ts +1 -1
- package/dist/components/ui/carousel/index.d.ts +0 -1
- package/dist/components/ui/command/Command.vue.d.ts +3 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +8 -3
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +5 -0
- package/dist/components/ui/index.d.ts +0 -1
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +3 -0
- package/dist/components/ui/progress/ProgressSectioned.vue.d.ts +14 -3
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +27 -4
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +6 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +3 -0
- package/dist/composables/dark/index.d.ts +1 -1
- package/dist/composables/dark/useGlobalDark.d.ts +23 -1
- package/dist/composables/motion/useViewTransition.d.ts +36 -1
- package/dist/configurator.js +1 -1
- package/dist/confirm-dialog.js +2 -2
- package/dist/constellation.js +92 -94
- package/dist/context-menu.js +2 -2
- package/dist/controls.js +10 -4
- package/dist/dark.d.ts +1 -1
- package/dist/dark.js +1 -1
- package/dist/data-table.js +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +510 -321
- package/dist/{dockContext-BegmJVmx.js → dockContext-Bu1Avy-a.js} +1 -1
- package/dist/dom.js +5 -5
- package/dist/{dropdown-menu-DzkkyBwX.js → dropdown-menu-BJ7E9js_.js} +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/expandable-container.js +42 -38
- package/dist/fading-scroll.d.ts +1 -0
- package/dist/fading-scroll.js +2 -0
- package/dist/forms.js +3 -3
- package/dist/fourier-field.js +38 -37
- package/dist/fourier-math.js +2 -2
- package/dist/glass-panel.js +39 -36
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +129 -145
- package/dist/goo-blob.js +86 -81
- package/dist/handmark.d.ts +1 -0
- package/dist/handmark.js +707 -0
- package/dist/header-ribbon.js +1 -1
- package/dist/hover-card.js +1 -1
- package/dist/hover-popover.js +1 -1
- package/dist/icon-chip.d.ts +1 -0
- package/dist/icon-chip.js +2 -0
- package/dist/icon-tooltip.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/keyboard.js +1 -1
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +6 -6
- package/dist/{math-U6-RrLmV.js → math-DeuJwLFx.js} +11 -3
- package/dist/{menuItemVariants-DPiEarb0.js → menuItemVariants-DWRQXBxJ.js} +10 -4
- package/dist/metric-badge.js +1 -1
- package/dist/metric-cell.js +25 -22
- package/dist/metric-stack.js +1 -1
- package/dist/motion-core.js +33 -32
- package/dist/motion-curves.js +1 -1
- package/dist/motion.js +4 -4
- package/dist/notification.js +1 -1
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.d.ts +1 -0
- package/dist/pager-dots.js +91 -0
- package/dist/paper-backdrop.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/{presets-BKVyQfbt.js → presets-BW2b-fr1.js} +14 -1
- package/dist/progress.js +1 -1
- package/dist/pulse.js +1 -1
- package/dist/reactive.js +2 -2
- package/dist/scrolling-text.js +1 -1
- package/dist/search.js +5 -5
- package/dist/select.js +3 -3
- package/dist/separator.js +1 -1
- package/dist/{sheet-1fChZjtw.js → sheet-CquRYOAw.js} +59 -55
- package/dist/sheet.js +1 -1
- package/dist/{slider-B-JP2JlI.js → slider-DQ95MET2.js} +7 -7
- package/dist/slider.js +1 -1
- package/dist/sortable-list.js +3 -3
- package/dist/styles/animations.css +11 -26
- package/dist/styles/components.css +1 -1
- package/dist/styles/configurator.css +35 -0
- package/dist/styles/dock/density.css +19 -0
- package/dist/styles/dock/overflow.css +15 -0
- package/dist/styles/dock/rail-extend.css +168 -71
- package/dist/styles/dock/section.css +59 -0
- package/dist/styles/dock/shell.css +34 -5
- package/dist/styles/dock-controls/icon-button.css +11 -1
- package/dist/styles/dock-controls/tab-button.css +24 -83
- package/dist/styles/dock-controls/triggers.css +7 -0
- package/dist/styles/dock.css +6 -3
- package/dist/styles/drawer.css +46 -0
- package/dist/styles/feedback-tone.css +104 -0
- package/dist/styles/glass/ladder.css +68 -22
- package/dist/styles/glass/surface-axis.css +113 -0
- package/dist/styles/glass/surfaces.css +88 -12
- package/dist/styles/glass.css +5 -2
- package/dist/styles/icon-chip.css +149 -0
- package/dist/styles/index.css +67 -5
- package/dist/styles/instrument-chassis.css +42 -0
- package/dist/styles/menu.css +127 -0
- package/dist/styles/segmented-tabs.css +160 -89
- package/dist/styles/select.css +50 -0
- package/dist/styles/theme/bridges.css +11 -1
- package/dist/styles/tokens/color-radius.css +40 -13
- package/dist/styles/tokens/dark-arm.css +124 -16
- package/dist/styles/tokens/glass.css +83 -23
- package/dist/styles/tokens/light-dark.css +48 -19
- package/dist/styles/tokens/offsets-sizing.css +62 -0
- package/dist/styles/tokens/property-regs.css +3 -10
- package/dist/styles/tokens/scale-paper.css +45 -2
- package/dist/styles/tokens/scheme-motion.css +32 -14
- package/dist/styles/transitions.css +7 -7
- package/dist/styles/typography/scale.css +153 -0
- package/dist/styles/typography/semantic.css +220 -0
- package/dist/styles/typography/utilities.css +159 -0
- package/dist/styles/typography.css +23 -507
- package/dist/styles/utilities/a11y-overrides.css +33 -4
- package/dist/styles/utilities/base.css +177 -1
- package/dist/styles/utilities/btn.css +18 -201
- package/dist/styles/view-transition.css +4 -1
- package/dist/switch.js +1 -1
- package/dist/tabs.js +154 -183
- package/dist/timeline.js +2 -2
- package/dist/toast.js +1 -1
- package/dist/toggle-chip.js +3 -1
- package/dist/toggle-group.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-C_3wZLx4.js} +1 -1
- package/dist/useConfiguratorState-kiIlun8I.js +303 -0
- package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-C28t0VWJ.js} +22 -3
- package/dist/{useRAFLoop-Bxv0o6L5.js → useRAFLoop-CdwJ7284.js} +1 -1
- package/dist/{useSpringMount-CI2jOstM.js → useSpringMount-CvopqiFr.js} +1 -1
- package/dist/useSurfaceAxis-CMnF2zHb.js +7 -0
- package/dist/{useTouchGate-Dg7MQI1G.js → useTouchGate-28Tk2-t2.js} +1 -1
- package/dist/{vReveal-CqaCz_mC.js → useViewTransition-COsPjQVZ.js} +15 -12
- package/dist/vReveal-D9k0jADx.js +10 -0
- package/dist/watercolor-dot.js +12 -5
- package/package.json +71 -7
- package/src/styles/animations.css +11 -26
- package/src/styles/configurator.css +35 -0
- package/src/styles/dock/density.css +19 -0
- package/src/styles/dock/overflow.css +15 -0
- package/src/styles/dock/rail-extend.css +168 -71
- package/src/styles/dock/section.css +59 -0
- package/src/styles/dock/shell.css +34 -5
- package/src/styles/dock-controls/icon-button.css +11 -1
- package/src/styles/dock-controls/tab-button.css +24 -83
- package/src/styles/dock-controls/triggers.css +7 -0
- package/src/styles/dock.css +6 -3
- package/src/styles/drawer.css +42 -0
- package/src/styles/feedback-tone.css +104 -0
- package/src/styles/glass/ladder.css +68 -22
- package/src/styles/glass/surface-axis.css +113 -0
- package/src/styles/glass/surfaces.css +88 -12
- package/src/styles/glass.css +5 -2
- package/src/styles/icon-chip.css +149 -0
- package/src/styles/index.css +66 -4
- package/src/styles/instrument-chassis.css +42 -0
- package/src/styles/menu.css +127 -0
- package/src/styles/segmented-tabs.css +156 -87
- package/src/styles/select.css +50 -0
- package/src/styles/theme/bridges.css +11 -1
- package/src/styles/tokens/color-radius.css +40 -13
- package/src/styles/tokens/dark-arm.css +124 -16
- package/src/styles/tokens/glass.css +83 -23
- package/src/styles/tokens/light-dark.css +48 -19
- package/src/styles/tokens/offsets-sizing.css +62 -0
- package/src/styles/tokens/property-regs.css +3 -10
- package/src/styles/tokens/scale-paper.css +45 -2
- package/src/styles/tokens/scheme-motion.css +32 -14
- package/src/styles/transitions.css +7 -7
- package/src/styles/typography/scale.css +153 -0
- package/src/styles/typography/semantic.css +220 -0
- package/src/styles/typography/utilities.css +159 -0
- package/src/styles/typography.css +23 -507
- package/src/styles/utilities/a11y-overrides.css +33 -4
- package/src/styles/utilities/base.css +177 -1
- package/src/styles/utilities/btn.css +18 -201
- package/src/styles/view-transition.css +4 -1
- package/dist/CardAction-Cj2eycQ2.js +0 -157
- package/dist/DialogContent-Dl9WkAoS.js +0 -100
- package/dist/PopoverContent-BYwt2-4x.js +0 -121
- package/dist/TabsList-Dttss653.js +0 -105
- package/dist/components/custom/underline/GlassUnderline.vue.d.ts +0 -84
- package/dist/components/custom/underline/index.d.ts +0 -2
- package/dist/components/custom/underline/types.d.ts +0 -56
- package/dist/components/ui/carousel/CarouselDots.vue.d.ts +0 -4
- package/dist/underline.d.ts +0 -1
- package/dist/underline.js +0 -85
- package/dist/useConfiguratorState-DAoeHVue.js +0 -287
- /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-C_s6fG7r.js} +0 -0
- /package/dist/{ContextMenuContent-CT3AS1WX.js → ContextMenuContent-ON3x7cuk.js} +0 -0
- /package/dist/{HoverCardContent-Csywg3YF.js → HoverCardContent-DkMaQzH5.js} +0 -0
- /package/dist/{IconTooltip-DPzE09X9.js → IconTooltip-DSjasZIt.js} +0 -0
- /package/dist/{Input-DWQQIOC4.js → Input-DVG_J0ne.js} +0 -0
- /package/dist/{Label-r3WzWrsj.js → Label-Ck9SWEKM.js} +0 -0
- /package/dist/{ModalOverlay-DVLI2VRr.js → ModalOverlay-CkPRRgl_.js} +0 -0
- /package/dist/{PaperBackdrop-DIXTtVq6.js → PaperBackdrop-nBKe0vkB.js} +0 -0
- /package/dist/{SelectGroup-aumMgWLs.js → SelectGroup-Dcczq44n.js} +0 -0
- /package/dist/{SelectSeparator-BQ_1Fcbp.js → SelectSeparator-DK2y1Bun.js} +0 -0
- /package/dist/{Separator-0JE6LtNu.js → Separator-BArl4OaB.js} +0 -0
- /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-CBt_VvXa.js} +0 -0
- /package/dist/{color-CUYeFbgd.js → color-DweYl7pE.js} +0 -0
- /package/dist/{compile-B7NGOBcP.js → compile-EXXzEr1q.js} +0 -0
- /package/dist/{constants-CS75AWHG.js → constants-BPOqYJAm.js} +0 -0
- /package/dist/{createContext-BM46COQ-.js → createContext-B2RaZ-b8.js} +0 -0
- /package/dist/{prng-D27-B3tK.js → prng-Cg22zv8g.js} +0 -0
- /package/dist/{springPresets--YdWTHtm.js → springPresets-WXaLbu8u.js} +0 -0
- /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-Bj4sPkMh.js} +0 -0
- /package/dist/{useInterval-iHludrxk.js → useInterval-CNdua40W.js} +0 -0
- /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-BXWXOZ-9.js} +0 -0
- /package/dist/{useLiquidFlex-BL0lLLN2.js → useLiquidFlex-C12hXwOZ.js} +0 -0
- /package/dist/{useResizeObserver-BhgdhOIj.js → useResizeObserver-V6nq5gJb.js} +0 -0
- /package/dist/{useResolveTokenColor-Dvn2RZJW.js → useResolveTokenColor-NUG2zYAW.js} +0 -0
- /package/dist/{useScrollProgress-Dlvx-L3v.js → useScrollProgress-D7bYU2RK.js} +0 -0
- /package/dist/{useSortable-muI29agz.js → useSortable-BVqlJRBR.js} +0 -0
- /package/dist/{useTextHighlight-DmRYkOBx.js → useTextHighlight-NmBM5V_4.js} +0 -0
- /package/dist/{useTimer-Dzarvzuk.js → useTimer-B_PAasDL.js} +0 -0
- /package/dist/{useUserInvalidAria-B2h6jAM_.js → useUserInvalidAria-CDfJuakL.js} +0 -0
- /package/dist/{useViewportReady-B40FK4Pa.js → useViewportReady-CvBcCYDf.js} +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
|
+
import { t } from "./useSpecularTracking-Bo5su68i.js";
|
|
3
|
+
import { t as n } from "./useSurfaceAxis-CMnF2zHb.js";
|
|
4
|
+
import { t as r } from "./_plugin-vue_export-helper-CBt_VvXa.js";
|
|
5
|
+
import { computed as i, createBlock as a, createElementBlock as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
|
|
6
|
+
import { Primitive as m } from "reka-ui";
|
|
7
|
+
var h = /* @__PURE__ */ s({
|
|
8
|
+
__name: "Card",
|
|
9
|
+
props: {
|
|
10
|
+
tier: { default: "resting" },
|
|
11
|
+
surface: { default: "glass" },
|
|
12
|
+
shadow: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !0
|
|
15
|
+
},
|
|
16
|
+
grain: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
specular: { default: "off" },
|
|
21
|
+
class: { type: [
|
|
22
|
+
Boolean,
|
|
23
|
+
null,
|
|
24
|
+
String,
|
|
25
|
+
Object,
|
|
26
|
+
Array
|
|
27
|
+
] },
|
|
28
|
+
asChild: { type: Boolean },
|
|
29
|
+
as: { default: "div" }
|
|
30
|
+
},
|
|
31
|
+
setup(r) {
|
|
32
|
+
let o = r, { specularStyle: s, onPointerMove: h } = t(), g = i(() => o.surface === "glass" && o.specular !== "off"), _ = i(() => o.specular === "full" ? {
|
|
33
|
+
"--glass-specular-intensity-rest": "0.04",
|
|
34
|
+
"--glass-specular-intensity-hover": "0.18",
|
|
35
|
+
"--glass-specular-intensity-active": "0.26"
|
|
36
|
+
} : {}), v = i(() => g.value ? {
|
|
37
|
+
..._.value,
|
|
38
|
+
...s.value
|
|
39
|
+
} : void 0);
|
|
40
|
+
return (t, i) => (u(), a(f(m), {
|
|
41
|
+
"data-slot": "card",
|
|
42
|
+
"data-tier": r.tier,
|
|
43
|
+
"data-surface": r.surface,
|
|
44
|
+
"data-grain": r.grain,
|
|
45
|
+
as: r.as,
|
|
46
|
+
"as-child": r.asChild,
|
|
47
|
+
style: l(v.value),
|
|
48
|
+
onPointermove: i[0] ||= (e) => g.value && f(h)(e),
|
|
49
|
+
class: c(f(e)("rounded-card text-card-foreground scrollbar-hidden", "[--card-spacing:--spacing(6)] data-[size=sm]:[--card-spacing:--spacing(4)]", r.tier === "opaque" ? "glass-resting glass-opaque" : `glass-${r.tier}`, g.value && "glass-specular-track", r.surface === "cartoon" && "cartoon-surface", r.surface === "veil" && f(n)("veil").replace(/^glass-\w+\s+/, ""), r.shadow && r.surface === "glass" && "shadow-card", !r.grain && "[&::after]:hidden", o.class))
|
|
50
|
+
}, {
|
|
51
|
+
default: p(() => [d(t.$slots, "default")]),
|
|
52
|
+
_: 3
|
|
53
|
+
}, 8, [
|
|
54
|
+
"data-tier",
|
|
55
|
+
"data-surface",
|
|
56
|
+
"data-grain",
|
|
57
|
+
"as",
|
|
58
|
+
"as-child",
|
|
59
|
+
"style",
|
|
60
|
+
"class"
|
|
61
|
+
]));
|
|
62
|
+
}
|
|
63
|
+
}), g = /* @__PURE__ */ r(/* @__PURE__ */ s({
|
|
64
|
+
__name: "CardHeader",
|
|
65
|
+
props: {
|
|
66
|
+
shrink: { type: Boolean },
|
|
67
|
+
class: { type: [
|
|
68
|
+
Boolean,
|
|
69
|
+
null,
|
|
70
|
+
String,
|
|
71
|
+
Object,
|
|
72
|
+
Array
|
|
73
|
+
] }
|
|
74
|
+
},
|
|
75
|
+
setup(t) {
|
|
76
|
+
let n = t;
|
|
77
|
+
return (r, i) => (u(), o("div", {
|
|
78
|
+
"data-slot": "card-header",
|
|
79
|
+
class: c(f(e)("@container/card-header flex flex-col gap-y-1.5 p-(--card-spacing)", "has-data-[slot=card-action]:grid has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-action]:items-start", t.shrink && "card-header--shrink", n.class))
|
|
80
|
+
}, [d(r.$slots, "default", {}, void 0, !0)], 2));
|
|
81
|
+
}
|
|
82
|
+
}), [["__scopeId", "data-v-835e5cc0"]]), _ = /* @__PURE__ */ s({
|
|
83
|
+
__name: "CardTitle",
|
|
84
|
+
props: { class: { type: [
|
|
85
|
+
Boolean,
|
|
86
|
+
null,
|
|
87
|
+
String,
|
|
88
|
+
Object,
|
|
89
|
+
Array
|
|
90
|
+
] } },
|
|
91
|
+
setup(t) {
|
|
92
|
+
let n = t;
|
|
93
|
+
return (t, r) => (u(), o("h3", {
|
|
94
|
+
"data-slot": "card-title",
|
|
95
|
+
class: c(f(e)("text-heading leading-none tracking-tight", n.class))
|
|
96
|
+
}, [d(t.$slots, "default")], 2));
|
|
97
|
+
}
|
|
98
|
+
}), v = /* @__PURE__ */ s({
|
|
99
|
+
__name: "CardDescription",
|
|
100
|
+
props: { class: { type: [
|
|
101
|
+
Boolean,
|
|
102
|
+
null,
|
|
103
|
+
String,
|
|
104
|
+
Object,
|
|
105
|
+
Array
|
|
106
|
+
] } },
|
|
107
|
+
setup(t) {
|
|
108
|
+
let n = t;
|
|
109
|
+
return (t, r) => (u(), o("p", {
|
|
110
|
+
"data-slot": "card-description",
|
|
111
|
+
class: c(f(e)("text-sm text-muted-foreground-strong", n.class))
|
|
112
|
+
}, [d(t.$slots, "default")], 2));
|
|
113
|
+
}
|
|
114
|
+
}), y = /* @__PURE__ */ s({
|
|
115
|
+
__name: "CardContent",
|
|
116
|
+
props: { class: { type: [
|
|
117
|
+
Boolean,
|
|
118
|
+
null,
|
|
119
|
+
String,
|
|
120
|
+
Object,
|
|
121
|
+
Array
|
|
122
|
+
] } },
|
|
123
|
+
setup(t) {
|
|
124
|
+
let n = t;
|
|
125
|
+
return (t, r) => (u(), o("div", { class: c(f(e)("p-(--card-spacing)", n.class)) }, [d(t.$slots, "default")], 2));
|
|
126
|
+
}
|
|
127
|
+
}), b = /* @__PURE__ */ s({
|
|
128
|
+
__name: "CardFooter",
|
|
129
|
+
props: { class: { type: [
|
|
130
|
+
Boolean,
|
|
131
|
+
null,
|
|
132
|
+
String,
|
|
133
|
+
Object,
|
|
134
|
+
Array
|
|
135
|
+
] } },
|
|
136
|
+
setup(t) {
|
|
137
|
+
let n = t;
|
|
138
|
+
return (t, r) => (u(), o("div", { class: c(f(e)("flex items-center p-(--card-spacing) pt-0", n.class)) }, [d(t.$slots, "default")], 2));
|
|
139
|
+
}
|
|
140
|
+
}), x = /* @__PURE__ */ s({
|
|
141
|
+
__name: "CardAction",
|
|
142
|
+
props: { class: { type: [
|
|
143
|
+
Boolean,
|
|
144
|
+
null,
|
|
145
|
+
String,
|
|
146
|
+
Object,
|
|
147
|
+
Array
|
|
148
|
+
] } },
|
|
149
|
+
setup(t) {
|
|
150
|
+
let n = t;
|
|
151
|
+
return (t, r) => (u(), o("div", {
|
|
152
|
+
"data-slot": "card-action",
|
|
153
|
+
class: c(f(e)("col-start-2 row-span-2 row-start-1 self-start justify-self-end", n.class))
|
|
154
|
+
}, [d(t.$slots, "default")], 2));
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
//#endregion
|
|
158
|
+
export { _ as a, v as i, b as n, g as o, y as r, h as s, x as t };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./cn-DJXf4yaB.js";
|
|
2
2
|
import { t } from "./search-BSGrf2Sk.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { t as n } from "./useSurfaceAxis-CMnF2zHb.js";
|
|
4
|
+
import { n as r, t as i } from "./DialogContent-DDE6pQBU.js";
|
|
5
|
+
import { t as a } from "./menuItemVariants-DWRQXBxJ.js";
|
|
6
|
+
import { computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, guardReactiveProps as m, mergeProps as h, normalizeClass as g, normalizeProps as _, openBlock as v, renderSlot as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
|
|
7
|
+
import { ComboboxContent as C, ComboboxEmpty as w, ComboboxGroup as T, ComboboxInput as E, ComboboxItem as D, ComboboxLabel as O, ComboboxRoot as k, ComboboxSeparator as A, useForwardProps as j, useForwardPropsEmits as M } from "reka-ui";
|
|
7
8
|
//#endregion
|
|
8
9
|
//#region src/components/ui/command/Command.vue
|
|
9
|
-
var
|
|
10
|
+
var N = /* @__PURE__ */ p({
|
|
10
11
|
__name: "Command",
|
|
11
12
|
props: {
|
|
12
13
|
open: {
|
|
@@ -37,24 +38,28 @@ var M = /* @__PURE__ */ f({
|
|
|
37
38
|
String,
|
|
38
39
|
Object,
|
|
39
40
|
Array
|
|
40
|
-
] }
|
|
41
|
+
] },
|
|
42
|
+
surface: { default: "glass" }
|
|
41
43
|
},
|
|
42
44
|
emits: [
|
|
43
45
|
"update:modelValue",
|
|
44
46
|
"highlight",
|
|
45
47
|
"update:open"
|
|
46
48
|
],
|
|
47
|
-
setup(t, { emit:
|
|
48
|
-
let
|
|
49
|
-
let { class: e,
|
|
50
|
-
return
|
|
51
|
-
}), i);
|
|
52
|
-
return (t, n) => (
|
|
53
|
-
|
|
49
|
+
setup(t, { emit: r }) {
|
|
50
|
+
let i = t, a = r, c = M(o(() => {
|
|
51
|
+
let { class: e, surface: t, ...n } = i;
|
|
52
|
+
return n;
|
|
53
|
+
}), a), l = o(() => n(i.surface).replace(/^glass-\w+\s*/, ""));
|
|
54
|
+
return (t, n) => (v(), s(x(k), h({ "data-slot": "command" }, x(c), {
|
|
55
|
+
"data-surface": i.surface,
|
|
56
|
+
class: x(e)("glass-floating flex h-full w-full flex-col overflow-hidden rounded-panel text-popover-foreground", l.value, i.class)
|
|
57
|
+
}), {
|
|
58
|
+
default: S(() => [y(t.$slots, "default")]),
|
|
54
59
|
_: 3
|
|
55
|
-
}, 16, ["class"]));
|
|
60
|
+
}, 16, ["data-surface", "class"]));
|
|
56
61
|
}
|
|
57
|
-
}),
|
|
62
|
+
}), P = /* @__PURE__ */ p({
|
|
58
63
|
__name: "CommandDialog",
|
|
59
64
|
props: {
|
|
60
65
|
open: { type: Boolean },
|
|
@@ -63,11 +68,11 @@ var M = /* @__PURE__ */ f({
|
|
|
63
68
|
},
|
|
64
69
|
emits: ["update:open"],
|
|
65
70
|
setup(e, { emit: t }) {
|
|
66
|
-
let
|
|
67
|
-
return (e, t) => (
|
|
68
|
-
default:
|
|
69
|
-
default:
|
|
70
|
-
default:
|
|
71
|
+
let n = M(e, t);
|
|
72
|
+
return (e, t) => (v(), s(x(r), _(m(x(n))), {
|
|
73
|
+
default: S(() => [f(x(i), { class: "overflow-hidden p-0" }, {
|
|
74
|
+
default: S(() => [f(N, { class: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[data-cmdk-input-wrapper]_svg]:h-5 [&_[data-cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5" }, {
|
|
75
|
+
default: S(() => [y(e.$slots, "default")]),
|
|
71
76
|
_: 3
|
|
72
77
|
})]),
|
|
73
78
|
_: 3
|
|
@@ -75,7 +80,7 @@ var M = /* @__PURE__ */ f({
|
|
|
75
80
|
_: 3
|
|
76
81
|
}, 16));
|
|
77
82
|
}
|
|
78
|
-
}),
|
|
83
|
+
}), F = /* @__PURE__ */ p({
|
|
79
84
|
__name: "CommandEmpty",
|
|
80
85
|
props: {
|
|
81
86
|
asChild: { type: Boolean },
|
|
@@ -89,16 +94,16 @@ var M = /* @__PURE__ */ f({
|
|
|
89
94
|
] }
|
|
90
95
|
},
|
|
91
96
|
setup(t) {
|
|
92
|
-
let n = t, r =
|
|
97
|
+
let n = t, r = o(() => {
|
|
93
98
|
let { class: e, ...t } = n;
|
|
94
99
|
return t;
|
|
95
100
|
});
|
|
96
|
-
return (t, i) => (
|
|
97
|
-
default:
|
|
101
|
+
return (t, i) => (v(), s(x(w), h(r.value, { class: x(e)("py-6 text-center text-dropdown", n.class) }), {
|
|
102
|
+
default: S(() => [y(t.$slots, "default")]),
|
|
98
103
|
_: 3
|
|
99
104
|
}, 16, ["class"]));
|
|
100
105
|
}
|
|
101
|
-
}),
|
|
106
|
+
}), I = /* @__PURE__ */ p({
|
|
102
107
|
__name: "CommandGroup",
|
|
103
108
|
props: {
|
|
104
109
|
asChild: { type: Boolean },
|
|
@@ -113,25 +118,25 @@ var M = /* @__PURE__ */ f({
|
|
|
113
118
|
heading: {}
|
|
114
119
|
},
|
|
115
120
|
setup(t) {
|
|
116
|
-
let n = t, r =
|
|
121
|
+
let n = t, r = o(() => {
|
|
117
122
|
let { class: e, ...t } = n;
|
|
118
123
|
return t;
|
|
119
124
|
});
|
|
120
|
-
return (i, a) => (
|
|
121
|
-
default:
|
|
125
|
+
return (i, a) => (v(), s(x(T), h(r.value, { class: x(e)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-dropdown-secondary [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", n.class) }), {
|
|
126
|
+
default: S(() => [t.heading ? (v(), s(x(O), {
|
|
122
127
|
key: 0,
|
|
123
128
|
class: "px-2 py-1.5 text-dropdown-secondary font-medium text-muted-foreground"
|
|
124
129
|
}, {
|
|
125
|
-
default:
|
|
130
|
+
default: S(() => [d(b(t.heading), 1)]),
|
|
126
131
|
_: 1
|
|
127
|
-
})) :
|
|
132
|
+
})) : c("", !0), y(i.$slots, "default")]),
|
|
128
133
|
_: 3
|
|
129
134
|
}, 16, ["class"]));
|
|
130
135
|
}
|
|
131
|
-
}),
|
|
136
|
+
}), L = {
|
|
132
137
|
class: "flex items-center border-b px-3",
|
|
133
138
|
"data-cmdk-input-wrapper": ""
|
|
134
|
-
},
|
|
139
|
+
}, R = /* @__PURE__ */ p({
|
|
135
140
|
inheritAttrs: !1,
|
|
136
141
|
__name: "CommandInput",
|
|
137
142
|
props: {
|
|
@@ -151,19 +156,19 @@ var M = /* @__PURE__ */ f({
|
|
|
151
156
|
placeholder: {}
|
|
152
157
|
},
|
|
153
158
|
setup(n) {
|
|
154
|
-
let r = n, i =
|
|
159
|
+
let r = n, i = j(o(() => {
|
|
155
160
|
let { class: e, ...t } = r;
|
|
156
161
|
return t;
|
|
157
162
|
}));
|
|
158
|
-
return (n, a) => (
|
|
159
|
-
...
|
|
163
|
+
return (n, a) => (v(), l("div", L, [f(x(t), { class: "mr-2 h-4 w-4 shrink-0 opacity-50" }), f(x(E), h({
|
|
164
|
+
...x(i),
|
|
160
165
|
...n.$attrs
|
|
161
166
|
}, {
|
|
162
167
|
"auto-focus": "",
|
|
163
|
-
class:
|
|
168
|
+
class: x(e)("flex h-(--dropdown-input-height) w-full rounded-input bg-transparent py-3 text-dropdown outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-disabled", r.class)
|
|
164
169
|
}), null, 16, ["class"])]));
|
|
165
170
|
}
|
|
166
|
-
}),
|
|
171
|
+
}), z = /* @__PURE__ */ p({
|
|
167
172
|
__name: "CommandItem",
|
|
168
173
|
props: {
|
|
169
174
|
textValue: {},
|
|
@@ -181,16 +186,16 @@ var M = /* @__PURE__ */ f({
|
|
|
181
186
|
},
|
|
182
187
|
emits: ["select"],
|
|
183
188
|
setup(t, { emit: n }) {
|
|
184
|
-
let r = t,
|
|
189
|
+
let r = t, i = n, c = M(o(() => {
|
|
185
190
|
let { class: e, ...t } = r;
|
|
186
191
|
return t;
|
|
187
|
-
}),
|
|
188
|
-
return (t, n) => (
|
|
189
|
-
default:
|
|
192
|
+
}), i);
|
|
193
|
+
return (t, n) => (v(), s(x(D), h(x(c), { class: x(e)(x(a)({ indicator: "none" }), r.class) }), {
|
|
194
|
+
default: S(() => [y(t.$slots, "default")]),
|
|
190
195
|
_: 3
|
|
191
196
|
}, 16, ["class"]));
|
|
192
197
|
}
|
|
193
|
-
}),
|
|
198
|
+
}), B = { role: "presentation" }, V = /* @__PURE__ */ p({
|
|
194
199
|
__name: "CommandList",
|
|
195
200
|
props: {
|
|
196
201
|
forceMount: { type: Boolean },
|
|
@@ -236,16 +241,16 @@ var M = /* @__PURE__ */ f({
|
|
|
236
241
|
"interactOutside"
|
|
237
242
|
],
|
|
238
243
|
setup(t, { emit: n }) {
|
|
239
|
-
let r = t, i = n,
|
|
244
|
+
let r = t, i = n, a = M(o(() => {
|
|
240
245
|
let { class: e, ...t } = r;
|
|
241
246
|
return t;
|
|
242
247
|
}), i);
|
|
243
|
-
return (t, n) => (
|
|
244
|
-
default:
|
|
248
|
+
return (t, n) => (v(), s(x(C), h(x(a), { class: x(e)("max-h-[300px] overflow-y-auto overflow-x-hidden", r.class) }), {
|
|
249
|
+
default: S(() => [u("div", B, [y(t.$slots, "default")])]),
|
|
245
250
|
_: 3
|
|
246
251
|
}, 16, ["class"]));
|
|
247
252
|
}
|
|
248
|
-
}),
|
|
253
|
+
}), H = /* @__PURE__ */ p({
|
|
249
254
|
__name: "CommandSeparator",
|
|
250
255
|
props: {
|
|
251
256
|
asChild: { type: Boolean },
|
|
@@ -259,16 +264,16 @@ var M = /* @__PURE__ */ f({
|
|
|
259
264
|
] }
|
|
260
265
|
},
|
|
261
266
|
setup(t) {
|
|
262
|
-
let n = t, r =
|
|
267
|
+
let n = t, r = o(() => {
|
|
263
268
|
let { class: e, ...t } = n;
|
|
264
269
|
return t;
|
|
265
270
|
});
|
|
266
|
-
return (t, i) => (
|
|
267
|
-
default:
|
|
271
|
+
return (t, i) => (v(), s(x(A), h(r.value, { class: x(e)("-mx-1 h-px bg-border", n.class) }), {
|
|
272
|
+
default: S(() => [y(t.$slots, "default")]),
|
|
268
273
|
_: 3
|
|
269
274
|
}, 16, ["class"]));
|
|
270
275
|
}
|
|
271
|
-
}),
|
|
276
|
+
}), U = /* @__PURE__ */ p({
|
|
272
277
|
__name: "CommandShortcut",
|
|
273
278
|
props: { class: { type: [
|
|
274
279
|
Boolean,
|
|
@@ -279,8 +284,8 @@ var M = /* @__PURE__ */ f({
|
|
|
279
284
|
] } },
|
|
280
285
|
setup(t) {
|
|
281
286
|
let n = t;
|
|
282
|
-
return (t, r) => (
|
|
287
|
+
return (t, r) => (v(), l("span", { class: g(x(e)("ml-auto text-dropdown-secondary tracking-widest text-muted-foreground", n.class)) }, [y(t.$slots, "default")], 2));
|
|
283
288
|
}
|
|
284
289
|
});
|
|
285
290
|
//#endregion
|
|
286
|
-
export {
|
|
291
|
+
export { R as a, P as c, z as i, N as l, H as n, I as o, V as r, F as s, U as t };
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./cn-DJXf4yaB.js";
|
|
|
2
2
|
import { t } from "./createLucideIcon-DydS2qgk.js";
|
|
3
3
|
import { t as n } from "./check-njhk-vfu.js";
|
|
4
4
|
import { t as r } from "./chevron-right-CPXbqQQz.js";
|
|
5
|
-
import { t as i } from "./menuItemVariants-
|
|
5
|
+
import { t as i } from "./menuItemVariants-DWRQXBxJ.js";
|
|
6
6
|
import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, mergeProps as f, normalizeClass as p, normalizeProps as m, openBlock as h, renderSlot as g, unref as _, withCtx as v } from "vue";
|
|
7
7
|
import { ContextMenuCheckboxItem as y, ContextMenuItem as b, ContextMenuItemIndicator as x, ContextMenuLabel as S, ContextMenuRadioGroup as C, ContextMenuRadioItem as w, ContextMenuSeparator as T, ContextMenuSubContent as E, ContextMenuSubTrigger as D, useForwardProps as O, useForwardPropsEmits as k } from "reka-ui";
|
|
8
8
|
var A = t("circle", [["circle", {
|