@mkbabb/glass-ui 8.0.0 → 10.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/MIGRATION.md +4768 -0
- package/README.md +57 -13
- package/dist/DialogContent-CwIBvou_.js +157 -0
- package/dist/{DropdownMenuTrigger-8UZsBtZ8.js → DropdownMenuTrigger-CKRnhDSQ.js} +1 -1
- package/dist/{Surface-i1tWC-Ga.js → Surface-1nPoabc3.js} +1 -1
- package/dist/{accent-tone-solve-Cw7WkRD9.js → accent-tone-solve-5H6FY2QO.js} +1 -1
- package/dist/aurora.js +386 -355
- package/dist/{badge-owUOaaba.js → badge-BO6BC4G5.js} +1 -1
- package/dist/badge.js +1 -1
- package/dist/blob.js +44 -44
- package/dist/{button-yvGPb0Bx.js → button-BOFTUPyU.js} +1 -1
- package/dist/button.js +1 -1
- package/dist/{card-3HFFpC7_.js → card-ByyqRBvK.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/carousel.js +3 -3
- package/dist/{checkbox-BnXuGgJ3.js → checkbox-B1qn65se.js} +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +8 -3
- package/dist/{class-names-q-UGOkHH.js → class-names-FlXcvRRT.js} +65 -18
- package/dist/{collapsible-B7O6m-Ch.js → collapsible-DFzK29Oh.js} +5 -2
- package/dist/collapsible.js +1 -1
- package/dist/color.glsl-DTJhdekG.js +34 -0
- package/dist/color.js +11 -11
- package/dist/color.wgsl-BTszLY39.js +398 -0
- package/dist/{command-BuBnYpxF.js → command-C-5xSEJ2.js} +8 -8
- package/dist/command.js +1 -1
- package/dist/component-styles.css +1 -0
- package/dist/components/_shared/class-names.d.ts +10 -1
- package/dist/components/_shared/control.d.ts +0 -1
- package/dist/components/_shared/index.d.ts +0 -1
- package/dist/components/_shared/menu/menu.css +1 -1
- package/dist/components/_shared/overlay/index.d.ts +1 -0
- package/dist/components/_shared/overlay/shortcuts.d.ts +12 -0
- package/dist/components/aurora/Aurora.vue.d.ts +1 -0
- package/dist/components/aurora/composables/atoms.d.ts +22 -6
- package/dist/components/aurora/composables/frameLoop.d.ts +6 -5
- package/dist/components/aurora/composables/runtime.d.ts +28 -1
- package/dist/components/aurora/composables/useAurora.d.ts +28 -0
- package/dist/components/aurora/composables/wgpuSetup.d.ts +1 -1
- package/dist/components/aurora/constants/presets.d.ts +62 -5
- package/dist/components/aurora/index.d.ts +1 -1
- package/dist/components/blob/Blob.vue.d.ts +3 -3
- package/dist/components/card/Card.vue.d.ts +8 -2
- package/dist/components/chip/Chip.vue.d.ts +1 -7
- package/dist/components/chip/chipVariants.d.ts +1 -0
- package/dist/components/collapsible/Collapsible.vue.d.ts +1 -0
- package/dist/components/command/CommandDialog.vue.d.ts +1 -1
- package/dist/components/configurator/Configurator.vue.d.ts +25 -2
- package/dist/components/configurator/ConfiguratorRow.vue.d.ts +4 -2
- package/dist/components/configurator/styles.css +1 -1
- package/dist/components/dark-mode-toggle/dark-mode-toggle.css +1 -1
- package/dist/components/deck/styles/capture.css +1 -1
- package/dist/components/dialog/styles.css +1 -1
- package/dist/components/dock/DockSeparator.vue.d.ts +2 -3
- package/dist/components/dock/GlassDock.vue.d.ts +1 -0
- package/dist/components/dock/composables/dockContext.d.ts +1 -8
- package/dist/components/dock/composables/dockCrossfadeContext.d.ts +0 -2
- package/dist/components/dock/composables/index.d.ts +1 -1
- package/dist/components/dock/composables/useDockHold.d.ts +16 -12
- package/dist/components/dock/composables/useDockRun.d.ts +20 -0
- package/dist/components/dock/composables/useDockSearch.d.ts +1 -1
- package/dist/components/dock/composables/useDockShellProps.d.ts +18 -101
- package/dist/components/dock/composables/useDockState.d.ts +2 -9
- package/dist/components/dock/constants.d.ts +15 -0
- package/dist/components/dock/index.d.ts +2 -2
- package/dist/components/dock/styles/controls/icon-button.css +1 -1
- package/dist/components/dock/styles/controls/tab-button.css +1 -1
- package/dist/components/dock/styles/controls/triggers.css +1 -1
- package/dist/components/dock/styles/controls.css +1 -1
- package/dist/components/dock/styles/density.css +1 -1
- package/dist/components/dock/styles/index.css +1 -1
- package/dist/components/dock/styles/layer-group.css +1 -1
- package/dist/components/dock/styles/layers.css +1 -1
- package/dist/components/dock/styles/morph.css +1 -1
- package/dist/components/dock/styles/run.css +1 -0
- package/dist/components/dock/styles/search.css +1 -1
- package/dist/components/dock/styles/shape.css +1 -1
- package/dist/components/dock/styles/shell-regions.css +1 -1
- package/dist/components/dock/styles/shell.css +1 -1
- package/dist/components/fourier-field/FourierField.vue.d.ts +29 -26
- package/dist/components/fourier-field/clock.d.ts +35 -0
- package/dist/components/fourier-field/constants.d.ts +80 -104
- package/dist/components/fourier-field/index.d.ts +3 -28
- package/dist/components/fourier-field/math.d.ts +69 -77
- package/dist/components/fourier-field/renderer/mint.d.ts +50 -0
- package/dist/components/fourier-field/renderer/uniforms.d.ts +84 -0
- package/dist/components/fourier-field/renderer/wgpu.d.ts +28 -0
- package/dist/components/fourier-field/shaders/compute.wgsl.d.ts +1 -0
- package/dist/components/fourier-field/shaders/render.wgsl.d.ts +1 -0
- package/dist/components/fourier-field/useFourierField.d.ts +49 -0
- package/dist/components/handmark/HandMark.vue.d.ts +18 -14
- package/dist/components/handmark/index.d.ts +4 -23
- package/dist/components/handmark/stroke.d.ts +92 -0
- package/dist/components/labeled-field/LabeledSwitch.vue.d.ts +3 -1
- package/dist/components/labeled-field/types.d.ts +1 -1
- package/dist/components/menu/DropdownMenu.vue.d.ts +1 -1
- package/dist/components/metric/coalesce-metric.d.ts +6 -1
- package/dist/components/metric/styles.css +1 -1
- package/dist/components/popover/Popover.vue.d.ts +1 -1
- package/dist/components/scroll-progress-rim/styles.css +1 -1
- package/dist/components/sheet/styles.css +1 -1
- package/dist/components/slider/styles.css +1 -1
- package/dist/components/tabs/SegmentedTabs.vue.d.ts +25 -112
- package/dist/components/tabs/composables/useTabDragMorph.d.ts +1 -1
- package/dist/components/tabs/composables/useTabResponsive.d.ts +11 -11
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/styles/drag.css +1 -1
- package/dist/components/tabs/styles/segmented.css +1 -1
- package/dist/components/tabs/types.d.ts +85 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/toast/Toast.vue.d.ts +2 -2
- package/dist/composables/color/index.d.ts +0 -15
- package/dist/composables/dark/darkModeSyncScript.d.ts +42 -0
- package/dist/composables/dom/useResolveTokenColor.d.ts +1 -1
- package/dist/composables/glass/index.d.ts +2 -0
- package/dist/composables/keyboard/useKeyboardShortcuts.d.ts +47 -1
- package/dist/composables/motion/pointer/pointerFieldMappings.d.ts +0 -41
- package/dist/{components/search/composables → composables/search}/index.d.ts +2 -2
- package/dist/{components/search/composables/fuzzySearchIndex.d.ts → composables/search/match.d.ts} +8 -3
- package/dist/composables/sidebar/types.d.ts +5 -1
- package/dist/configurator-DiwVN573.js +339 -0
- package/dist/configurator.js +1 -1
- package/dist/constellation.js +5 -5
- package/dist/{content-CWO-XL7o.js → content-So3j6SOe.js} +1 -1
- package/dist/control-DJp15L4U.js +7 -0
- package/dist/dark-mode-toggle.js +2 -2
- package/dist/{dark-z_P5QwqI.js → dark-pONY3x93.js} +2 -2
- package/dist/dark.js +1 -1
- package/dist/{data-table-_RrOEdiw.js → data-table-Ba_uTfPc.js} +3 -3
- package/dist/data-table.js +1 -1
- package/dist/{deck-Ci6YjB5e.js → deck-Cm_VmyNL.js} +1 -1
- package/dist/deck.js +1 -1
- package/dist/{dialog-CbRnTRtg.js → dialog-BZoFG0j8.js} +1 -1
- package/dist/dialog.js +2 -2
- package/dist/dock.js +718 -496
- package/dist/dom.js +90 -8
- package/dist/easing.js +5 -5
- package/dist/expandable-container-CZUj9BzY.js +142 -0
- package/dist/expandable-container.js +2 -142
- package/dist/fourier-field.js +638 -855
- package/dist/fourier-math.js +6 -6
- package/dist/glass-ui.css +1 -1
- package/dist/glass-ui.js +88 -75
- package/dist/handmark.js +330 -718
- package/dist/index.d.ts +2 -2
- package/dist/infinite-scroll.js +16 -17
- package/dist/{input-Bls2A4Tt.js → input-eLZ_AU7l.js} +1 -1
- package/dist/input.js +1 -1
- package/dist/keyboard.js +64 -21
- package/dist/{label-BQEZhnK_.js → label-CE03H1KL.js} +2 -2
- package/dist/label.js +1 -1
- package/dist/labeled-field.js +9 -6
- package/dist/{menu-wLu1XGKn.js → menu-BnmCOa3y.js} +93 -90
- package/dist/menu.js +2 -2
- package/dist/metric.js +12 -7
- package/dist/{motion-D4uYE0UM.js → motion-BvV1_24p.js} +1 -1
- package/dist/motion-core.js +35 -35
- package/dist/{number-field-NFAwQ0HK.js → number-field-RP89046a.js} +2 -2
- package/dist/number-field.js +1 -1
- package/dist/pager-dots.js +3 -3
- package/dist/{participation-B0hdsIRo.js → participation-Di4UHbzk.js} +8 -8
- package/dist/{pointerFieldMappings-DP5tla5z.js → pointerFieldMappings-DXwlU5uj.js} +7 -23
- package/dist/popover-DA87hFBx.js +184 -0
- package/dist/popover.js +1 -1
- package/dist/{progress-DF8dWZIX.js → progress-eVa-mc7J.js} +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-Ci8o-pDx.js → radio-group-B58Bz16F.js} +2 -2
- package/dist/radio-group.js +1 -1
- package/dist/{select-CDgwGH_P.js → select-fy3vtArm.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/{separator-CN11t406.js → separator-D4EZM10u.js} +2 -2
- package/dist/separator.js +1 -1
- package/dist/{sheet-BEFvnO_u.js → sheet-BQJyER59.js} +120 -115
- package/dist/sheet.js +2 -2
- package/dist/shortcuts-DGGWNRNe.js +13 -0
- package/dist/sidebar.js +4 -4
- package/dist/{slider-gsc8jDIo.js → slider-5ChjjWSR.js} +1 -1
- package/dist/slider.js +1 -1
- package/dist/{status-dot-BpnqOP5N.js → status-dot-W4LFiJps.js} +2 -2
- package/dist/status-dot.js +1 -1
- package/dist/styles/accessibility.css +1 -1
- package/dist/styles/animations.css +1 -1
- package/dist/styles/components.css +1 -1
- package/dist/styles/glass/a11y-fallback.css +1 -1
- package/dist/styles/glass/dissolve.css +1 -1
- package/dist/styles/glass/focus-veil.css +1 -1
- package/dist/styles/glass/ladder.css +1 -1
- package/dist/styles/glass/material.css +1 -1
- package/dist/styles/glass/overlay-plate.css +1 -1
- package/dist/styles/glass/reveal.css +1 -1
- package/dist/styles/glass-specular-track.css +1 -1
- package/dist/styles/paper.css +1 -1
- package/dist/styles/scroll-choreography.css +1 -1
- package/dist/styles/scroll-chrome.css +1 -1
- package/dist/styles/scroll-driven.css +1 -1
- package/dist/styles/theme/literals.css +1 -1
- package/dist/styles/tokens/color-radius.css +1 -1
- package/dist/styles/tokens/dark-arm-glass.css +1 -1
- package/dist/styles/tokens/light-dark.css +1 -1
- package/dist/styles/tokens/offsets.css +1 -1
- package/dist/styles/tokens/scheme-motion.css +1 -1
- package/dist/styles/tokens/sizing.css +1 -1
- package/dist/styles/typography/semantic.css +1 -1
- package/dist/styles/typography/utilities.css +1 -1
- package/dist/styles/utilities/a11y-overrides.css +1 -1
- package/dist/styles/utilities/responsive.css +1 -1
- package/dist/styles/view-transition.css +1 -1
- package/dist/styles/viz-reveal.css +1 -1
- package/dist/surface.js +1 -1
- package/dist/{switch-DxZzDrmV.js → switch-BYUZ6g9G.js} +2 -2
- package/dist/switch.js +1 -1
- package/dist/{tabs-CYscnq5H.js → tabs-rdRXKXxd.js} +4 -3
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +44 -42
- package/dist/{toast-9c6Kp58L.js → toast-DVOwo6GB.js} +1 -1
- package/dist/toast.js +1 -1
- package/dist/{toggle-group-11aPGMfE.js → toggle-group-CC5b3o1R.js} +2 -2
- package/dist/toggle-group.js +1 -1
- package/dist/{tooltip-DqKMZ4dn.js → tooltip-DhTHhtJN.js} +2 -2
- package/dist/tooltip.js +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{useAccentTone-DFAh1osB.js → useAccentTone-DitmKfGL.js} +1 -1
- package/dist/{resolveCanvasColor-6MCrswTB.js → useCanvas2D-CQRElMyE.js} +1 -11
- package/dist/{usePointerVelocityField-DsIf7yyq.js → usePointerVelocityField-Lx26_Yap.js} +1 -1
- package/dist/useResolveTokenColor-B2FfJnd9.js +24 -0
- package/package.json +5 -21
- package/dist/DialogContent-4hzLiaCQ.js +0 -152
- package/dist/canvas.d.ts +0 -1
- package/dist/canvas.js +0 -2
- package/dist/color.wgsl-B0N3mKMb.js +0 -412
- package/dist/compile-D7VYG3gi.js +0 -19
- package/dist/components/dock/composables/useDockOverflowFit.d.ts +0 -20
- package/dist/components/dock/composables/useDockTouchGate.d.ts +0 -42
- package/dist/components/dock/styles/overflow.css +0 -1
- package/dist/components/fourier-field/composables/fourierFieldGLSetup.d.ts +0 -24
- package/dist/components/fourier-field/composables/fourierFieldWGPUSetup.d.ts +0 -31
- package/dist/components/fourier-field/composables/uniformBridgeWGPU.d.ts +0 -39
- package/dist/components/fourier-field/composables/useFourierField.d.ts +0 -56
- package/dist/components/fourier-field/shaders/fourier-field.compute.wgsl.d.ts +0 -1
- package/dist/components/fourier-field/shaders/fourier-field.glsl.d.ts +0 -4
- package/dist/components/fourier-field/shaders/fourier-field.render.wgsl.d.ts +0 -1
- package/dist/components/fourier-field/shaders/fourier-field.ribbon.d.ts +0 -51
- package/dist/components/handmark/brush.d.ts +0 -269
- package/dist/components/handmark/composables/useHandMark.d.ts +0 -99
- package/dist/components/handmark/constants.d.ts +0 -69
- package/dist/components/handmark/freehand.d.ts +0 -69
- package/dist/components/handmark/geometry.d.ts +0 -62
- package/dist/components/handmark/ink.d.ts +0 -11
- package/dist/components/handmark/noise.d.ts +0 -30
- package/dist/components/handmark/texture.d.ts +0 -39
- package/dist/components/handmark/types.d.ts +0 -70
- package/dist/components/search/SearchBar.vue.d.ts +0 -38
- package/dist/components/search/index.d.ts +0 -8
- package/dist/components/search/searchVariants.d.ts +0 -16
- package/dist/configurator-BoeScnDL.js +0 -311
- package/dist/control-Da4XeT43.js +0 -11
- package/dist/popover-DBMKTPkL.js +0 -181
- package/dist/search.d.ts +0 -1
- package/dist/search.js +0 -61
- package/dist/useFuzzySearch-CUnZknpm.js +0 -177
- package/dist/useResolveTokenColor-CspQv_ik.js +0 -107
- /package/dist/{components/search/composables → composables/search}/types.d.ts +0 -0
- /package/dist/{components/search/composables → composables/search}/useFuzzySearch.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
2
|
-
import { t } from "./button-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
|
+
import { t } from "./button-BOFTUPyU.js";
|
|
3
3
|
import { n, t as r } from "./control.css_vue_type_style_index_0_src_true_lang-BIdufaDG.js";
|
|
4
4
|
import { computed as i, createBlock as a, createVNode as o, defineComponent as s, inject as c, mergeProps as l, normalizeClass as u, openBlock as d, provide as f, renderSlot as p, resolveDynamicComponent as m, unref as h, useAttrs as g, withCtx as _ } from "vue";
|
|
5
5
|
import { NumberFieldDecrement as v, NumberFieldIncrement as y, NumberFieldInput as b, NumberFieldRoot as x, injectNumberFieldRootContext as S, useForwardPropsEmits as C } from "reka-ui";
|
package/dist/number-field.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./number-field-
|
|
1
|
+
import { n as e, r as t, t as n } from "./number-field-RP89046a.js";
|
|
2
2
|
export { t as NumberField, e as NumberFieldInput, n as NumberFieldStep };
|
package/dist/pager-dots.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./useLiquidFlex-TJZmRqyY.js";
|
|
3
3
|
import { t as n } from "./useResizeObserver-CdUlm2QZ.js";
|
|
4
4
|
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
|
-
import { s as i } from "./deck-
|
|
5
|
+
import { s as i } from "./deck-Cm_VmyNL.js";
|
|
6
6
|
import { n as a } from "./useLeadTrail-DQWdpFN1.js";
|
|
7
7
|
import { Fragment as o, computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, defineComponent as d, mergeModels as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onMounted as g, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, useModel as S, watch as C } from "vue";
|
|
8
8
|
//#region src/components/pager-dots/worm.ts
|
|
@@ -357,6 +357,6 @@ var k = [
|
|
|
357
357
|
t.announce ? (_(), l("span", N, b(ie.value), 1)) : c("", !0)
|
|
358
358
|
], 42, k));
|
|
359
359
|
}
|
|
360
|
-
}), [["__scopeId", "data-v-
|
|
360
|
+
}), [["__scopeId", "data-v-592b0f41"]]);
|
|
361
361
|
//#endregion
|
|
362
362
|
export { w as DEFAULT_DOT_PX, E as DEFAULT_MAX_STRETCH, T as DEFAULT_PITCH_PX, P as PagerDots, D as elongationCeil };
|
|
@@ -5,14 +5,14 @@ import { computed as n, onScopeDispose as r, ref as i, toValue as a, watch as o
|
|
|
5
5
|
var s = {
|
|
6
6
|
response: e("dock").response,
|
|
7
7
|
dampingFraction: e("dock").dampingFraction
|
|
8
|
-
}, c = "[data-dismissable-layer]:not([data-state=\"closed\"])", l = "glass-ui:dock-context", u = "glass-ui:dock-layer-group", d = t(l, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY:
|
|
9
|
-
function
|
|
10
|
-
|
|
8
|
+
}, c = "[data-dismissable-layer]:not([data-state=\"closed\"])", l = "glass-ui:dock-context", u = "glass-ui:dock-layer-group", d = 3600, f = t(l, "[glass-ui:dock] useDockContext() called outside <GlassDock>; use useOptionalDockContext() if the primitive may render outside a dock."), { KEY: p } = f;
|
|
9
|
+
function m(e) {
|
|
10
|
+
f.provide(e);
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var h = f.use, g = f.useOptional;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/components/_shared/overlay/participation.ts
|
|
15
|
-
function
|
|
15
|
+
function _(e, t) {
|
|
16
16
|
let n = i(!1);
|
|
17
17
|
function a() {
|
|
18
18
|
n.value || (n.value = !0, e()?.keepOpen(t));
|
|
@@ -26,8 +26,8 @@ function g(e, t) {
|
|
|
26
26
|
release: o
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
let t =
|
|
29
|
+
function v(e) {
|
|
30
|
+
let t = g(), r = _(() => t, e?.kind), i = n(() => t?.id ? {
|
|
31
31
|
"data-glass-dock-portal": "",
|
|
32
32
|
"data-glass-dock-owner": t.id
|
|
33
33
|
} : {});
|
|
@@ -39,4 +39,4 @@ function _(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
export {
|
|
42
|
+
export { h as a, u as c, m as i, s as l, _ as n, g as o, p as r, d as s, v as t, c as u };
|
|
@@ -2,24 +2,8 @@
|
|
|
2
2
|
function e(e, t, n) {
|
|
3
3
|
return e < t ? t : e > n ? n : e;
|
|
4
4
|
}
|
|
5
|
-
var t = .
|
|
6
|
-
function
|
|
7
|
-
let t = Math.hypot(e.x, e.y);
|
|
8
|
-
return t < 1e-6 ? null : {
|
|
9
|
-
x: e.x / t,
|
|
10
|
-
y: e.y / t
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function i(t, n, i = {}) {
|
|
14
|
-
let a = i.lean ?? .15, o = e(i.biasGain ?? .15, 0, .15), s = Math.max(n.scale, 1e-6), c = t.smoothedPosition, l = (c.x * 2 - 1) * a * t.engagement, u = -(c.y * 2 - 1) * a * t.engagement, d = l * n.aspect / s, f = u / s, p = 1, m = n.headTangent ? r(n.headTangent) : null, h = n.headToCursor ? r(n.headToCursor) : null;
|
|
15
|
-
return m && h && (p = 1 + o * e(m.x * h.x + m.y * h.y, -1, 1) * t.engagement), {
|
|
16
|
-
leanX: d,
|
|
17
|
-
leanY: f,
|
|
18
|
-
phaseRateMul: p
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
var a = .09, o = .6, s = .35;
|
|
22
|
-
function c(t, n = {}) {
|
|
5
|
+
var t = .09, n = .6, r = .35;
|
|
6
|
+
function i(t, n = {}) {
|
|
23
7
|
let r = n.leadK ?? .09, i = n.stretchGain ?? .6, a = n.stretchMax ?? .35, o = e((t.attractor.x + t.velocity.x * r) * 2 - 1, -1, 1), s = e((t.attractor.y + t.velocity.y * r) * 2 - 1, -1, 1), c = -(t.acceleration.x * t.velocity.x + t.acceleration.y * t.velocity.y);
|
|
24
8
|
return {
|
|
25
9
|
x: o,
|
|
@@ -27,8 +11,8 @@ function c(t, n = {}) {
|
|
|
27
11
|
stretch: e(Math.max(0, c) * i + t.burst * .1, 0, a)
|
|
28
12
|
};
|
|
29
13
|
}
|
|
30
|
-
var
|
|
31
|
-
function
|
|
14
|
+
var a = .25;
|
|
15
|
+
function o(t, n = {}) {
|
|
32
16
|
let r = e(n.strength ?? .8, 0, 1), i = e(t.engagement * r, 0, 1), a = e(t.burst * (n.amplitude ?? 0), 0, 1);
|
|
33
17
|
return {
|
|
34
18
|
cx: t.attractor.x,
|
|
@@ -37,7 +21,7 @@ function u(t, n = {}) {
|
|
|
37
21
|
radius: n.radius ?? .25
|
|
38
22
|
};
|
|
39
23
|
}
|
|
40
|
-
function
|
|
24
|
+
function s(e) {
|
|
41
25
|
return {
|
|
42
26
|
x: e.attractor.x,
|
|
43
27
|
y: e.attractor.y,
|
|
@@ -47,7 +31,7 @@ function d(e) {
|
|
|
47
31
|
velY: e.velocity.y
|
|
48
32
|
};
|
|
49
33
|
}
|
|
50
|
-
function
|
|
34
|
+
function c(e) {
|
|
51
35
|
return {
|
|
52
36
|
position: e.position.value,
|
|
53
37
|
smoothedPosition: e.smoothedPosition.value,
|
|
@@ -59,4 +43,4 @@ function f(e) {
|
|
|
59
43
|
};
|
|
60
44
|
}
|
|
61
45
|
//#endregion
|
|
62
|
-
export {
|
|
46
|
+
export { o as a, c, r as i, t as n, i as o, n as r, s, a as t };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { t as e } from "./content-So3j6SOe.js";
|
|
2
|
+
import { t } from "./createContext-BhkE9mLH.js";
|
|
3
|
+
import { t as n } from "./participation-Di4UHbzk.js";
|
|
4
|
+
import { t as r } from "./shortcuts-DGGWNRNe.js";
|
|
5
|
+
import { computed as i, createBlock as a, defineComponent as o, mergeProps as s, openBlock as c, ref as l, renderSlot as u, resolveDynamicComponent as d, unref as f, useAttrs as p, watch as m, withCtx as h } from "vue";
|
|
6
|
+
import { HoverCardContent as g, HoverCardPortal as _, HoverCardRoot as v, HoverCardTrigger as y, PopoverContent as b, PopoverPortal as x, PopoverRoot as S, PopoverTrigger as C, injectPopoverRootContext as w } from "reka-ui";
|
|
7
|
+
//#region src/components/popover/popoverContext.ts
|
|
8
|
+
var T = t("glass-ui:popover-union"), E = T.provide, D = T.use, O = /* @__PURE__ */ o({
|
|
9
|
+
name: "Popover",
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "Popover",
|
|
12
|
+
props: {
|
|
13
|
+
open: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: void 0
|
|
16
|
+
},
|
|
17
|
+
defaultOpen: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
trigger: { default: "click" },
|
|
22
|
+
openDelay: { default: 250 },
|
|
23
|
+
closeDelay: { default: 150 },
|
|
24
|
+
keepDockOpen: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
modal: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["update:open"],
|
|
34
|
+
setup(e, { emit: t }) {
|
|
35
|
+
let r = e, o = t, s = l(r.open ?? r.defaultOpen);
|
|
36
|
+
m(() => r.open, (e) => {
|
|
37
|
+
e !== void 0 && (s.value = e);
|
|
38
|
+
});
|
|
39
|
+
let d = i(() => r.open ?? s.value);
|
|
40
|
+
function p(e) {
|
|
41
|
+
r.open === void 0 && (s.value = e), o("update:open", e);
|
|
42
|
+
}
|
|
43
|
+
let g = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(pointer: coarse)").matches, _ = i(() => r.trigger === "hover" && !g);
|
|
44
|
+
return E({
|
|
45
|
+
usesHoverRoot: _,
|
|
46
|
+
modal: i(() => r.modal)
|
|
47
|
+
}), n({ hold: () => d.value && r.keepDockOpen }), (t, n) => _.value ? (c(), a(f(v), {
|
|
48
|
+
key: 0,
|
|
49
|
+
"data-slot": "popover",
|
|
50
|
+
open: d.value,
|
|
51
|
+
"open-delay": e.openDelay,
|
|
52
|
+
"close-delay": e.closeDelay,
|
|
53
|
+
"onUpdate:open": p
|
|
54
|
+
}, {
|
|
55
|
+
default: h(() => [u(t.$slots, "default")]),
|
|
56
|
+
_: 3
|
|
57
|
+
}, 8, [
|
|
58
|
+
"open",
|
|
59
|
+
"open-delay",
|
|
60
|
+
"close-delay"
|
|
61
|
+
])) : (c(), a(f(S), {
|
|
62
|
+
key: 1,
|
|
63
|
+
"data-slot": "popover",
|
|
64
|
+
open: d.value,
|
|
65
|
+
modal: e.modal,
|
|
66
|
+
"onUpdate:open": p
|
|
67
|
+
}, {
|
|
68
|
+
default: h(() => [u(t.$slots, "default")]),
|
|
69
|
+
_: 3
|
|
70
|
+
}, 8, ["open", "modal"]));
|
|
71
|
+
}
|
|
72
|
+
}), k = /* @__PURE__ */ o({
|
|
73
|
+
name: "PopoverTrigger",
|
|
74
|
+
inheritAttrs: !1,
|
|
75
|
+
__name: "PopoverTrigger",
|
|
76
|
+
props: {
|
|
77
|
+
asChild: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
},
|
|
81
|
+
class: { type: [
|
|
82
|
+
Boolean,
|
|
83
|
+
null,
|
|
84
|
+
String,
|
|
85
|
+
Object,
|
|
86
|
+
Array
|
|
87
|
+
] }
|
|
88
|
+
},
|
|
89
|
+
setup(e) {
|
|
90
|
+
let t = e, n = p(), r = i(() => {
|
|
91
|
+
let { as: e, reference: r, ...i } = n;
|
|
92
|
+
return t.asChild ? i : {
|
|
93
|
+
...i,
|
|
94
|
+
type: "button"
|
|
95
|
+
};
|
|
96
|
+
}), o = D(), l = i(() => o?.usesHoverRoot.value ?? !1);
|
|
97
|
+
return (n, i) => l.value ? (c(), a(f(y), s({ key: 0 }, r.value, {
|
|
98
|
+
as: "button",
|
|
99
|
+
"as-child": e.asChild,
|
|
100
|
+
class: t.class
|
|
101
|
+
}), {
|
|
102
|
+
default: h(() => [u(n.$slots, "default")]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["as-child", "class"])) : (c(), a(f(C), s({ key: 1 }, r.value, {
|
|
105
|
+
as: "button",
|
|
106
|
+
"as-child": e.asChild,
|
|
107
|
+
class: t.class
|
|
108
|
+
}), {
|
|
109
|
+
default: h(() => [u(n.$slots, "default")]),
|
|
110
|
+
_: 3
|
|
111
|
+
}, 16, ["as-child", "class"]));
|
|
112
|
+
}
|
|
113
|
+
}), A = /* @__PURE__ */ o({
|
|
114
|
+
name: "PopoverContent",
|
|
115
|
+
inheritAttrs: !1,
|
|
116
|
+
__name: "PopoverContent",
|
|
117
|
+
props: {
|
|
118
|
+
class: { type: [
|
|
119
|
+
Boolean,
|
|
120
|
+
null,
|
|
121
|
+
String,
|
|
122
|
+
Object,
|
|
123
|
+
Array
|
|
124
|
+
] },
|
|
125
|
+
portal: {
|
|
126
|
+
type: Boolean,
|
|
127
|
+
default: !0
|
|
128
|
+
},
|
|
129
|
+
ariaLabel: {},
|
|
130
|
+
side: { default: "bottom" },
|
|
131
|
+
sideOffset: { default: 4 },
|
|
132
|
+
align: { default: "center" },
|
|
133
|
+
alignOffset: { default: 0 }
|
|
134
|
+
},
|
|
135
|
+
emits: [
|
|
136
|
+
"escapeKeyDown",
|
|
137
|
+
"pointerDownOutside",
|
|
138
|
+
"focusOutside",
|
|
139
|
+
"interactOutside",
|
|
140
|
+
"openAutoFocus",
|
|
141
|
+
"closeAutoFocus"
|
|
142
|
+
],
|
|
143
|
+
setup(t, { emit: o }) {
|
|
144
|
+
let l = t, m = o, v = p(), y = i(() => ({
|
|
145
|
+
side: l.side,
|
|
146
|
+
sideOffset: l.sideOffset,
|
|
147
|
+
align: l.align,
|
|
148
|
+
alignOffset: l.alignOffset,
|
|
149
|
+
avoidCollisions: !0
|
|
150
|
+
})), S = (e, { slots: t }) => t.default?.(), C = D(), T = i(() => C?.usesHoverRoot.value ?? !1), E = i(() => l.portal ? T.value ? _ : x : S), O = i(() => T.value ? g : b), k = i(() => (C?.modal.value ?? !1) && !T.value), A = i(() => ({
|
|
151
|
+
"aria-label": l.ariaLabel,
|
|
152
|
+
...T.value ? { role: "group" } : {},
|
|
153
|
+
...k.value ? { "aria-modal": "true" } : {}
|
|
154
|
+
})), j = w(null);
|
|
155
|
+
r(() => k.value && (j?.open.value ?? !1));
|
|
156
|
+
let M = n(), N = i(() => e({
|
|
157
|
+
role: "panel",
|
|
158
|
+
slot: "popover-content",
|
|
159
|
+
dock: M.portalAttrs.value,
|
|
160
|
+
class: ["z-popover", l.class]
|
|
161
|
+
}));
|
|
162
|
+
return (e, t) => (c(), a(d(E.value), null, {
|
|
163
|
+
default: h(() => [(c(), a(d(O.value), s({
|
|
164
|
+
...y.value,
|
|
165
|
+
...f(v),
|
|
166
|
+
...A.value,
|
|
167
|
+
...N.value
|
|
168
|
+
}, {
|
|
169
|
+
onEscapeKeyDown: t[0] ||= (e) => m("escapeKeyDown", e),
|
|
170
|
+
onPointerDownOutside: t[1] ||= (e) => m("pointerDownOutside", e),
|
|
171
|
+
onFocusOutside: t[2] ||= (e) => m("focusOutside", e),
|
|
172
|
+
onInteractOutside: t[3] ||= (e) => m("interactOutside", e),
|
|
173
|
+
onOpenAutoFocus: t[4] ||= (e) => m("openAutoFocus", e),
|
|
174
|
+
onCloseAutoFocus: t[5] ||= (e) => m("closeAutoFocus", e)
|
|
175
|
+
}), {
|
|
176
|
+
default: h(() => [u(e.$slots, "default")]),
|
|
177
|
+
_: 3
|
|
178
|
+
}, 16))]),
|
|
179
|
+
_: 3
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
//#endregion
|
|
184
|
+
export { k as n, O as r, A as t };
|
package/dist/popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./popover-
|
|
1
|
+
import { n as e, r as t, t as n } from "./popover-DA87hFBx.js";
|
|
2
2
|
export { t as Popover, n as PopoverContent, e as PopoverTrigger };
|
package/dist/progress.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./progress-
|
|
1
|
+
import { t as e } from "./progress-eVa-mc7J.js";
|
|
2
2
|
export { e as Progress };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
|
+
import { t } from "./control-DJp15L4U.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, mergeProps as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
|
|
4
4
|
import { RadioGroupIndicator as f, RadioGroupItem as p, RadioGroupRoot as m, useForwardProps as h } from "reka-ui";
|
|
5
5
|
//#endregion
|
package/dist/radio-group.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./radio-group-
|
|
1
|
+
import { n as e, t } from "./radio-group-B58Bz16F.js";
|
|
2
2
|
export { e as RadioGroup, t as RadioGroupItem };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./primitive-B2t2jdqM.js";
|
|
3
3
|
import { t as n } from "./selection-DqIULxRG.js";
|
|
4
|
-
import { t as r } from "./
|
|
5
|
-
import { t as i } from "./
|
|
4
|
+
import { t as r } from "./participation-Di4UHbzk.js";
|
|
5
|
+
import { t as i } from "./rowClass-DYOXwxhO.js";
|
|
6
6
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, mergeProps as m, normalizeClass as h, normalizeProps as g, openBlock as _, renderSlot as v, unref as y, useAttrs as b, withCtx as x } from "vue";
|
|
7
7
|
import { SelectContent as S, SelectGroup as C, SelectIcon as w, SelectItem as T, SelectItemIndicator as E, SelectItemText as D, SelectLabel as O, SelectPortal as k, SelectRoot as A, SelectScrollDownButton as j, SelectScrollUpButton as M, SelectSeparator as N, SelectTrigger as P, SelectValue as F, SelectViewport as I, useForwardProps as L } from "reka-ui";
|
|
8
8
|
import { ChevronDown as R, ChevronUp as z } from "@lucide/vue";
|
|
@@ -141,16 +141,16 @@ var B = /* @__PURE__ */ f({
|
|
|
141
141
|
"pointerDownOutside"
|
|
142
142
|
],
|
|
143
143
|
setup(t, { emit: n }) {
|
|
144
|
-
let
|
|
144
|
+
let i = t, s = n, c = b(), l = a(() => ({
|
|
145
145
|
...c,
|
|
146
146
|
position: "popper",
|
|
147
|
-
side:
|
|
148
|
-
sideOffset:
|
|
149
|
-
align:
|
|
150
|
-
alignOffset:
|
|
147
|
+
side: i.side,
|
|
148
|
+
sideOffset: i.sideOffset,
|
|
149
|
+
align: i.align,
|
|
150
|
+
alignOffset: i.alignOffset,
|
|
151
151
|
avoidCollisions: !0,
|
|
152
152
|
collisionPadding: 16
|
|
153
|
-
})), u =
|
|
153
|
+
})), u = r();
|
|
154
154
|
return (t, n) => (_(), o(y(k), null, {
|
|
155
155
|
default: x(() => [d(y(S), m({
|
|
156
156
|
...l.value,
|
|
@@ -158,7 +158,7 @@ var B = /* @__PURE__ */ f({
|
|
|
158
158
|
}, {
|
|
159
159
|
"data-reveal": "menu",
|
|
160
160
|
"data-slot": "select-content",
|
|
161
|
-
class: y(e)("relative z-popover min-w-(--overlay-min-width) overflow-hidden rounded-card text-popover-foreground glass-reveal", "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", "glass-floating glass-field-portal",
|
|
161
|
+
class: y(e)("relative z-popover min-w-(--overlay-min-width) overflow-hidden rounded-card text-popover-foreground glass-reveal", "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", "glass-floating glass-field-portal", i.class),
|
|
162
162
|
onCloseAutoFocus: n[0] ||= (e) => s("closeAutoFocus", e),
|
|
163
163
|
onEscapeKeyDown: n[1] ||= (e) => s("escapeKeyDown", e),
|
|
164
164
|
onPointerDownOutside: n[2] ||= (e) => s("pointerDownOutside", e)
|
|
@@ -221,8 +221,8 @@ var B = /* @__PURE__ */ f({
|
|
|
221
221
|
hideIndicator: { type: Boolean }
|
|
222
222
|
},
|
|
223
223
|
emits: ["select"],
|
|
224
|
-
setup(n, { emit:
|
|
225
|
-
let u = n, f =
|
|
224
|
+
setup(n, { emit: r }) {
|
|
225
|
+
let u = n, f = r, p = b(), h = a(() => t(p));
|
|
226
226
|
function g(e) {
|
|
227
227
|
f("select", e);
|
|
228
228
|
}
|
|
@@ -231,7 +231,7 @@ var B = /* @__PURE__ */ f({
|
|
|
231
231
|
value: u.value,
|
|
232
232
|
disabled: u.disabled,
|
|
233
233
|
"text-value": u.textValue,
|
|
234
|
-
class: y(e)(y(
|
|
234
|
+
class: y(e)(y(i)(S.value), u.class),
|
|
235
235
|
onSelect: g
|
|
236
236
|
}), {
|
|
237
237
|
default: x(() => [S.value === "none" ? s("", !0) : (_(), c("span", K, [d(y(E), null, {
|
package/dist/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./select-
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./select-fy3vtArm.js";
|
|
2
2
|
export { r as Select, e as SelectContent, n as SelectGroup, o as SelectItem, i as SelectLabel, a as SelectScrollButton, c as SelectSeparator, s as SelectTrigger, t as SelectValue };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./class-names-
|
|
1
|
+
import { t as e } from "./class-names-FlXcvRRT.js";
|
|
2
2
|
import { t } from "./primitive-B2t2jdqM.js";
|
|
3
3
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { computed as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeProps as c, openBlock as l, toDisplayString as u, unref as d, useAttrs as f, useId as p } from "vue";
|
|
@@ -68,6 +68,6 @@ var h = /*#__PURE__*/ n(/* @__PURE__ */ s({
|
|
|
68
68
|
class: d(e)("separator", s.class)
|
|
69
69
|
}), null, 16, ["class"]));
|
|
70
70
|
}
|
|
71
|
-
}), [["__scopeId", "data-v-
|
|
71
|
+
}), [["__scopeId", "data-v-64dda6b9"]]);
|
|
72
72
|
//#endregion
|
|
73
73
|
export { h as t };
|
package/dist/separator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "./separator-
|
|
1
|
+
import { t as e } from "./separator-D4EZM10u.js";
|
|
2
2
|
export { e as Separator };
|