@wow-two-beta/fe 0.0.25 → 0.0.27
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/README.md +19 -0
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js → MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js} +19 -4
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js.map +1 -0
- package/dist/chunks/UseScrollActivity-D8MC5xgH.js +37 -0
- package/dist/chunks/UseScrollActivity-D8MC5xgH.js.map +1 -0
- package/dist/chunks/{index-rh4HVTr5.js → index-COgbQxBT.js} +5 -1
- package/dist/chunks/{index-rh4HVTr5.js.map → index-COgbQxBT.js.map} +1 -1
- package/dist/chunks/{index-CuiXILXc.js → index-Dp6L9sX7.js} +6 -2
- package/dist/chunks/index-Dp6L9sX7.js.map +1 -0
- package/dist/foundation/dom/hooks/UseScrollActivity.d.ts +15 -0
- package/dist/foundation/dom/index.d.ts +1 -0
- package/dist/foundation/dom/index.js +7 -3
- package/dist/foundation/dom/index.js.map +1 -1
- package/dist/foundation/primitives/index.js +1 -1
- package/dist/foundation/primitives/scrollViewport/ScrollViewport.vue.d.ts +9 -0
- package/dist/index.css +105 -0
- package/dist/index.js +3 -3
- package/dist/presentation/layout/appShell/AppShellMain.vue.d.ts +14 -5
- package/dist/presentation/layout/index.js +1 -1
- package/dist/presentation/layout/scrollArea/ScrollArea.vue.d.ts +7 -0
- package/dist/presentation/layout/virtualScrollArea/VirtualScrollArea.vue.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map +0 -1
- package/dist/chunks/index-CuiXILXc.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { toValue, watch, onScopeDispose } from "vue";
|
|
2
|
+
import { u as useEventListener } from "./UseEventListener-C1WgWGoT.js";
|
|
3
|
+
const ScrollingAttribute = "data-scrolling";
|
|
4
|
+
const ScrollIdleDelay = 800;
|
|
5
|
+
function useScrollActivity(target, isEnabled = true) {
|
|
6
|
+
let timer;
|
|
7
|
+
function clear() {
|
|
8
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
9
|
+
timer = void 0;
|
|
10
|
+
toValue(target)?.removeAttribute(ScrollingAttribute);
|
|
11
|
+
}
|
|
12
|
+
useEventListener(
|
|
13
|
+
"scroll",
|
|
14
|
+
() => {
|
|
15
|
+
const element = toValue(target);
|
|
16
|
+
if (!element || !toValue(isEnabled)) return;
|
|
17
|
+
element.setAttribute(ScrollingAttribute, "");
|
|
18
|
+
if (timer !== void 0) clearTimeout(timer);
|
|
19
|
+
timer = setTimeout(clear, ScrollIdleDelay);
|
|
20
|
+
},
|
|
21
|
+
target,
|
|
22
|
+
{ passive: true }
|
|
23
|
+
);
|
|
24
|
+
watch(
|
|
25
|
+
() => toValue(isEnabled),
|
|
26
|
+
(enabled) => {
|
|
27
|
+
if (!enabled) clear();
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
onScopeDispose(clear);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
ScrollIdleDelay as S,
|
|
34
|
+
ScrollingAttribute as a,
|
|
35
|
+
useScrollActivity as u
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=UseScrollActivity-D8MC5xgH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseScrollActivity-D8MC5xgH.js","sources":["../../src/foundation/dom/hooks/UseScrollActivity.ts"],"sourcesContent":["import { onScopeDispose, toValue, watch, type MaybeRefOrGetter } from 'vue';\nimport { useEventListener } from './UseEventListener';\n\n/** The attribute that marks an element while its content scrolls; the `scrollbar-auto-hide` styles read it. */\nexport const ScrollingAttribute = 'data-scrolling';\n\n/** The pause after the last scroll event before an element counts as idle again, in milliseconds. */\nexport const ScrollIdleDelay = 800;\n\ntype Target = HTMLElement | null | undefined;\n\n/**\n * Marks `target` with `data-scrolling` while it scrolls and removes the mark `ScrollIdleDelay` after the last\n * scroll event — the signal a `scrollbar-auto-hide` element needs to show its thumb on touch devices, where no\n * pointer hovers it. The attribute is written on the element itself, so a scroll never re-renders the component\n * that owns it. `isEnabled` gates the whole behaviour: while it is `false` nothing is marked, and turning it off\n * clears a mark already set.\n */\nexport function useScrollActivity(target: MaybeRefOrGetter<Target>, isEnabled: MaybeRefOrGetter<boolean> = true): void {\n let timer: ReturnType<typeof setTimeout> | undefined;\n\n function clear(): void {\n if (timer !== undefined) clearTimeout(timer);\n timer = undefined;\n toValue(target)?.removeAttribute(ScrollingAttribute);\n }\n\n useEventListener(\n 'scroll',\n () => {\n const element = toValue(target);\n if (!element || !toValue(isEnabled)) return;\n element.setAttribute(ScrollingAttribute, '');\n if (timer !== undefined) clearTimeout(timer);\n timer = setTimeout(clear, ScrollIdleDelay);\n },\n target,\n { passive: true },\n );\n\n watch(\n () => toValue(isEnabled),\n (enabled) => {\n if (!enabled) clear();\n },\n );\n\n onScopeDispose(clear);\n}\n"],"names":[],"mappings":";;AAIO,MAAM,qBAAqB;AAG3B,MAAM,kBAAkB;AAWxB,SAAS,kBAAkB,QAAkC,YAAuC,MAAY;AACrH,MAAI;AAEJ,WAAS,QAAc;AACrB,QAAI,UAAU,OAAW,cAAa,KAAK;AAC3C,YAAQ;AACR,YAAQ,MAAM,GAAG,gBAAgB,kBAAkB;AAAA,EACrD;AAEA;AAAA,IACE;AAAA,IACA,MAAM;AACJ,YAAM,UAAU,QAAQ,MAAM;AAC9B,UAAI,CAAC,WAAW,CAAC,QAAQ,SAAS,EAAG;AACrC,cAAQ,aAAa,oBAAoB,EAAE;AAC3C,UAAI,UAAU,OAAW,cAAa,KAAK;AAC3C,cAAQ,WAAW,OAAO,eAAe;AAAA,IAC3C;AAAA,IACA;AAAA,IACA,EAAE,SAAS,KAAA;AAAA,EAAK;AAGlB;AAAA,IACE,MAAM,QAAQ,SAAS;AAAA,IACvB,CAAC,YAAY;AACX,UAAI,CAAC,QAAS,OAAA;AAAA,IAChB;AAAA,EAAA;AAGF,iBAAe,KAAK;AACtB;"}
|
|
@@ -9,6 +9,7 @@ import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
|
|
|
9
9
|
import { u as useEventListener } from "./UseEventListener-C1WgWGoT.js";
|
|
10
10
|
import { watchPostEffect, toValue } from "vue";
|
|
11
11
|
import { u as useScrollLock } from "./UseScrollLock-BAu79cm4.js";
|
|
12
|
+
import { S as ScrollIdleDelay, a as ScrollingAttribute, u as useScrollActivity } from "./UseScrollActivity-D8MC5xgH.js";
|
|
12
13
|
import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
|
|
13
14
|
import { r as resolveElement } from "./ResolveElement-CyRfM82x.js";
|
|
14
15
|
import { S as ScrollRegionAttribute, f as findScrollRegions } from "./ScrollRegion-CO8KnKUY.js";
|
|
@@ -104,7 +105,9 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
104
105
|
HtmlElement,
|
|
105
106
|
Key,
|
|
106
107
|
PressExtensions,
|
|
108
|
+
ScrollIdleDelay,
|
|
107
109
|
ScrollRegionAttribute,
|
|
110
|
+
ScrollingAttribute,
|
|
108
111
|
UrlExtensions,
|
|
109
112
|
composeEventHandlers,
|
|
110
113
|
dataAttr,
|
|
@@ -113,6 +116,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
113
116
|
useEventListener,
|
|
114
117
|
useFocusTrap,
|
|
115
118
|
useOutsideClick,
|
|
119
|
+
useScrollActivity,
|
|
116
120
|
useScrollLock
|
|
117
121
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
118
122
|
export {
|
|
@@ -120,4 +124,4 @@ export {
|
|
|
120
124
|
index as i,
|
|
121
125
|
useFocusTrap as u
|
|
122
126
|
};
|
|
123
|
-
//# sourceMappingURL=index-
|
|
127
|
+
//# sourceMappingURL=index-COgbQxBT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-COgbQxBT.js","sources":["../../src/foundation/dom/enums/ElementTag.ts","../../src/foundation/dom/hooks/UseFocusTrap.ts"],"sourcesContent":["/* Shared polymorphic-element vocabulary for the `as` prop\n * (countUp / typewriter / animatedNumber / tilt / gradientText / scrollReveal). */\n\n/** Defines the HTML tag a polymorphic component renders as. */\nexport const ElementTag = {\n /** Refers to a `<span>`. */\n Span: 'span',\n /** Refers to a `<div>`. */\n Div: 'div',\n /** Refers to a `<p>`. */\n P: 'p',\n /** Refers to an `<h1>`. */\n H1: 'h1',\n /** Refers to an `<h2>`. */\n H2: 'h2',\n /** Refers to an `<h3>`. */\n H3: 'h3',\n /** Refers to an `<h4>`. */\n H4: 'h4',\n /** Refers to an `<h5>`. */\n H5: 'h5',\n /** Refers to an `<h6>`. */\n H6: 'h6',\n /** Refers to a `<section>`. */\n Section: 'section',\n /** Refers to an `<article>`. */\n Article: 'article',\n /** Refers to an `<li>`. */\n Li: 'li',\n} as const;\n\nexport type ElementTag = (typeof ElementTag)[keyof typeof ElementTag];\n","import { toValue, watchPostEffect, type MaybeRefOrGetter } from 'vue';\n\nconst FocusableSelector = 'a[href],button,input,select,textarea,[tabindex],[contenteditable=\"true\"]';\n\nfunction isVisible(el: HTMLElement): boolean {\n // checkVisibility covers display/visibility/content-visibility; the\n // getClientRects fallback (older engines) still includes position:fixed\n // elements, which `offsetParent !== null` would wrongly exclude.\n return (\n el.checkVisibility?.({ visibilityProperty: true, contentVisibilityAuto: true }) ?? el.getClientRects().length > 0\n );\n}\n\nfunction getFocusable(container: HTMLElement): ReadonlyArray<HTMLElement> {\n return Array.from(container.querySelectorAll<HTMLElement>(FocusableSelector)).filter(\n (el) =>\n (!el.hasAttribute('tabindex') || el.tabIndex >= 0) &&\n !el.matches(':disabled,input[type=\"hidden\"]') &&\n !el.closest('[hidden],[inert],[aria-hidden=\"true\"]') &&\n isVisible(el),\n );\n}\n\n/**\n * Trap Tab / Shift+Tab focus inside the referenced element. Once the element\n * exists, focuses the first focusable child (unless already focused inside).\n * When the trap tears down — the element unmounts, `enabled` flips, or the\n * scope is disposed — focus returns to the element that had it beforehand.\n *\n * Takes the element as a ref or getter rather than handing one back, so the\n * caller keeps ownership of its `useTemplateRef`. The effect is post-flush,\n * so the element is in the DOM by the time the trap arms.\n *\n * For richer behavior (sentinels, nested traps), wrap `FocusScope` instead —\n * this composable is the lower primitive.\n */\nexport function useFocusTrap(\n target: MaybeRefOrGetter<HTMLElement | null | undefined>,\n enabled: MaybeRefOrGetter<boolean> = true,\n): void {\n watchPostEffect((onCleanup) => {\n const container = toValue(target);\n if (!toValue(enabled) || !container) return;\n const document = container.ownerDocument;\n const previouslyFocused = document.activeElement as HTMLElement | null;\n\n const previousTabIndex = container.getAttribute('tabindex');\n let tabIndexMutated = false;\n\n const focusables = getFocusable(container);\n if (focusables.length > 0 && !container.contains(document.activeElement)) {\n focusables[0]?.focus();\n } else if (focusables.length === 0) {\n container.tabIndex = -1;\n tabIndexMutated = true;\n container.focus();\n }\n\n const onKeyDown = (e: KeyboardEvent): void => {\n if (e.key !== 'Tab' || e.defaultPrevented) return;\n const items = getFocusable(container);\n if (items.length === 0) {\n e.preventDefault();\n return;\n }\n const first = items[0];\n const last = items[items.length - 1];\n if (!first || !last) return;\n const active = document.activeElement;\n if (e.shiftKey && active === first) {\n e.preventDefault();\n last.focus();\n } else if (!e.shiftKey && active === last) {\n e.preventDefault();\n first.focus();\n }\n };\n\n container.addEventListener('keydown', onKeyDown);\n onCleanup(() => {\n container.removeEventListener('keydown', onKeyDown);\n if (tabIndexMutated) {\n if (previousTabIndex === null) container.removeAttribute('tabindex');\n else container.setAttribute('tabindex', previousTabIndex);\n }\n if (previouslyFocused?.isConnected && !previouslyFocused.closest('[inert]')) previouslyFocused.focus?.();\n });\n });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIO,MAAM,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AC5C,UAAI,EAAE,QAAQ,SAAS,EAAE,iBAAkB;AAC3C,YAAM,QAAQ,aAAa,SAAS;AACpC,UAAI,MAAM,WAAW,GAAG;AACtB,UAAE,eAAA;AACF;AAAA,MACF;AACA,YAAM,QAAQ,MAAM,CAAC;AACrB,YAAM,OAAO,MAAM,MAAM,SAAS,CAAC;AACnC,UAAI,CAAC,SAAS,CAAC,KAAM;AACrB,YAAM,SAAS,SAAS;AACxB,UAAI,EAAE,YAAY,WAAW,OAAO;AAClC,UAAE,eAAA;AACF,aAAK,MAAA;AAAA,MACP,WAAW,CAAC,EAAE,YAAY,WAAW,MAAM;AACzC,UAAE,eAAA;AACF,cAAM,MAAA;AAAA,MACR;AAAA,IACF;AAEA,cAAU,iBAAiB,WAAW,SAAS;AAC/C,cAAU,MAAM;AACd,gBAAU,oBAAoB,WAAW,SAAS;AAClD,UAAI,iBAAiB;AACnB,YAAI,qBAAqB,KAAM,WAAU,gBAAgB,UAAU;AAAA,YAC9D,WAAU,aAAa,YAAY,gBAAgB;AAAA,MAC1D;AACA,UAAI,mBAAmB,eAAe,CAAC,kBAAkB,QAAQ,SAAS,qBAAqB,QAAA;AAAA,IACjG,CAAC;AAAA,EACH,CAAC;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -11,6 +11,7 @@ import { _ as _sfc_main$9 } from "./OverlayArrow.vue_vue_type_script_setup_true_
|
|
|
11
11
|
import { _ as _sfc_main$a } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
|
|
12
12
|
import { _ as _sfc_main$c } from "./ScrollLockProvider.vue_vue_type_script_setup_true_lang-C6WDtqT0.js";
|
|
13
13
|
import { c as cn } from "./Cn-C7De6POU.js";
|
|
14
|
+
import { u as useScrollActivity } from "./UseScrollActivity-D8MC5xgH.js";
|
|
14
15
|
import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
|
|
15
16
|
import { r as renderableChildren, S as Slottable, m as mergeProps$1, a as renderSlotClone } from "./Slot-BGJ_Mr_j.js";
|
|
16
17
|
import { F as FormControlKey, u as useFormControl, a as useFormControlChrome } from "./FormControlContext-B71MFW26.js";
|
|
@@ -106,13 +107,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
106
107
|
height: {},
|
|
107
108
|
maxHeight: {},
|
|
108
109
|
isAnimated: { type: Boolean, default: void 0 },
|
|
109
|
-
animate: { type: Boolean, default: void 0 }
|
|
110
|
+
animate: { type: Boolean, default: void 0 },
|
|
111
|
+
hasAutoHideScrollbar: { type: Boolean, default: false }
|
|
110
112
|
},
|
|
111
113
|
setup(__props, { expose: __expose }) {
|
|
112
114
|
const props = __props;
|
|
113
115
|
const attrs = useAttrs();
|
|
114
116
|
const el = useTemplateRef("el");
|
|
115
117
|
const reducedMotion = useReducedMotion();
|
|
118
|
+
useScrollActivity(el, () => props.hasAutoHideScrollbar);
|
|
116
119
|
const transitionsOn = computed(() => (props.isAnimated ?? props.animate ?? false) && !reducedMotion.value);
|
|
117
120
|
const sizeStyle = computed(
|
|
118
121
|
() => normalizeStyle([
|
|
@@ -127,6 +130,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
127
130
|
const classes = computed(
|
|
128
131
|
() => cn(
|
|
129
132
|
"overflow-y-auto overflow-x-hidden",
|
|
133
|
+
props.hasAutoHideScrollbar && "scrollbar-auto-hide",
|
|
130
134
|
transitionsOn.value && "transition-[height,opacity] duration-200 ease-out",
|
|
131
135
|
attrs.class
|
|
132
136
|
)
|
|
@@ -318,4 +322,4 @@ export {
|
|
|
318
322
|
createCollection as e,
|
|
319
323
|
index as i
|
|
320
324
|
};
|
|
321
|
-
//# sourceMappingURL=index-
|
|
325
|
+
//# sourceMappingURL=index-Dp6L9sX7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Dp6L9sX7.js","sources":["../../src/foundation/primitives/visuallyHidden/VisuallyHidden.vue","../../src/foundation/primitives/directionProvider/DirectionProvider.vue","../../src/foundation/primitives/accessibleIcon/AccessibleIcon.ts","../../src/foundation/primitives/collection/Collection.ts","../../src/foundation/primitives/scrollViewport/ScrollViewport.vue","../../src/foundation/primitives/colorModeProvider/ColorModeScript.ts","../../src/foundation/primitives/colorModeProvider/ColorModeProvider.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport type VisuallyHiddenProps = HTMLAttributes;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { cn } from '../../styles/Cn';\n\n/**\n * Renders the slot in a visually hidden span — content removed from the visual\n * layout but still announced to screen readers. Use for accessible labels on\n * icon-only affordances and live-region announcements.\n *\n * `inheritAttrs: false` so a caller's `class` goes through `cn` (tailwind-merge\n * resolves the conflict) instead of being blindly concatenated by Vue's\n * automatic class fallthrough — a caller's `p-2` must be able to beat `p-0`.\n */\ndefineOptions({ name: 'VisuallyHidden', inheritAttrs: false });\n\ndefineSlots<{\n /** The content announced to screen readers but hidden from view. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst classes = computed(() =>\n cn(\n 'absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0',\n 'm-[-1px] [clip:rect(0_0_0_0)] [clip-path:inset(50%)]',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n</script>\n\n<template>\n <span v-bind=\"rest\" :class=\"classes\"><slot /></span>\n</template>\n","<script lang=\"ts\">\nimport type { Direction } from './DirectionContext';\n\nexport interface DirectionProviderProps {\n readonly dir: Direction;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { provideDirection } from './DirectionContext';\n\n/**\n * Renders no element of its own — the slot passes straight through — while providing reading direction to\n * descendants. Components that mirror in RTL (Tabs arrow keys, Slider, Carousel, etc.) read this via\n * `useDirection()`.\n */\ndefineOptions({ name: 'DirectionProvider' });\n\nconst props = defineProps<DirectionProviderProps>();\n\ndefineSlots<{\n /** The subtree that reads the provided reading direction. */\n default(): unknown;\n}>();\n\nprovideDirection(() => props.dir);\n</script>\n\n<template>\n <slot />\n</template>\n","import { Fragment, cloneVNode, defineComponent, h } from 'vue';\nimport { AriaAttribute } from '../../dom/enums/AriaAttribute';\nimport { renderableChildren } from '../slot/Slot';\nimport VisuallyHidden from '../visuallyHidden/VisuallyHidden.vue';\n\nexport interface AccessibleIconProps {\n /** The accessible label for the icon. */\n readonly label: string;\n}\n\n/**\n * Wrap an icon-only element with an accessible label. The icon is hidden\n * from assistive tech and a `VisuallyHidden` sibling provides the label.\n *\n * A render function rather than an SFC: the `aria-hidden` / `focusable` pair\n * has to land on the *consumer's* icon vnode, and only a render function can\n * rebuild someone else's vnode. `cloneVNode`'s prop merge is safe here — these\n * two attributes collide with neither class, style, nor a handler.\n */\nexport const AccessibleIcon = defineComponent({\n name: 'AccessibleIcon',\n props: {\n label: { type: String, required: true },\n },\n setup(props, { slots }) {\n return () => {\n const children = renderableChildren(slots.default?.());\n const target = children[0];\n const icon = target ? cloneVNode(target, { [AriaAttribute.Hidden]: 'true', focusable: 'false' }) : children;\n return h(Fragment, [icon, h(VisuallyHidden, null, { default: () => props.label })]);\n };\n },\n});\n","import { defineComponent, inject, provide, shallowRef, type Component, type InjectionKey } from 'vue';\n\nexport interface CollectionContextValue<T> {\n /** The registered items, in registration order. A live getter — read it, never destructure it. */\n readonly items: ReadonlyArray<T>;\n register: (item: T) => void;\n unregister: (item: T) => void;\n}\n\n/**\n * Factory for a typed children-registry context. Compound components\n * (Menu, Tabs, Listbox) use this so the parent can iterate ordered children\n * without prop-drilling.\n *\n * The registration model is unchanged from React — items call `register()` on\n * mount and `unregister()` on unmount. That already matched what Vue needs:\n * slots are functions, so there is no children array to walk.\n *\n * `Context` becomes `injectionKey` — Vue's `provide`/`inject` are keyed by\n * symbol rather than by a context object.\n */\nexport function createCollection<T>(): {\n Provider: Component;\n useCollection: () => CollectionContextValue<T>;\n injectionKey: InjectionKey<CollectionContextValue<T>>;\n} {\n const injectionKey: InjectionKey<CollectionContextValue<T>> = Symbol('wow-two.collection');\n\n const Provider = defineComponent({\n name: 'CollectionProvider',\n setup(_props, { slots }) {\n const items = shallowRef<ReadonlyArray<T>>([]);\n\n // Replaced wholesale rather than mutated: a `shallowRef` only notifies on\n // identity change, which is also what kept React's `useState` updates cheap.\n const register = (item: T): void => {\n if (!items.value.includes(item)) items.value = [...items.value, item];\n };\n const unregister = (item: T): void => {\n items.value = items.value.filter((existing) => existing !== item);\n };\n\n // A getter rather than `reactive()` — it keeps `T` intact (reactive would\n // deep-unwrap it) while still tracking as a dependency on read.\n const context: CollectionContextValue<T> = {\n get items() {\n return items.value;\n },\n register,\n unregister,\n };\n provide(injectionKey, context);\n\n return () => slots.default?.() ?? null;\n },\n });\n\n function useCollection(): CollectionContextValue<T> {\n const context = inject(injectionKey, null);\n if (!context) {\n throw new Error('useCollection must be used inside its Provider');\n }\n return context;\n }\n\n return { Provider, useCollection, injectionKey };\n}\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport interface ScrollViewportProps extends /* @vue-ignore */ HTMLAttributes {\n /**\n * The fixed viewport height. Number → pixels; string → any CSS length\n * (`'20rem'`, `'50vh'`). Content beyond this scrolls; the box does not grow.\n * Omit to let the container size to its context (still clips + scrolls via `maxHeight`).\n */\n readonly height?: number | string;\n\n /**\n * The height ceiling — grows with content up to this cap without pinning it,\n * then scrolls. Number → pixels; string → any CSS length.\n */\n readonly maxHeight?: number | string;\n\n /**\n * The height/opacity transition flag (a content swap, an expand). Respects\n * `prefers-reduced-motion` — the transition is dropped when the user opts out.\n * @default false\n */\n readonly isAnimated?: boolean;\n /** @deprecated Use `isAnimated`; this alias is removed next release. */\n readonly animate?: boolean;\n\n /**\n * Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track\n * keeps its space, so the layout never shifts.\n * @default false\n */\n readonly hasAutoHideScrollbar?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../styles/Cn';\nimport { useReducedMotion } from '../../device/hooks/UseReducedMotion';\nimport { useScrollActivity } from '../../dom/hooks/UseScrollActivity';\n\n/**\n * Renders the slot inside a headless fixed-height scroll container. A drop-in for\n * inline `h-[…] overflow-y-auto` viewport styling with two stability guarantees:\n *\n * - `scrollbar-gutter: stable` — reserves the scrollbar's track so content\n * doesn't shift horizontally when the bar appears/disappears (an overflow-y\n * toggle that would otherwise reflow the row).\n * - optional height/opacity transition (`isAnimated`) that short-circuits under\n * `prefers-reduced-motion`, so motion-sensitive users get an instant swap.\n *\n * No visual styling beyond layout — border/padding/rounding stay with the\n * consumer. The scrollable node is exposed as `el` so callers can drive\n * `scrollTop` (scroll-to-top on filter, virtualization measurements, etc.) —\n * the Vue stand-in for the original's `forwardRef`.\n */\ndefineOptions({ name: 'ScrollViewport', inheritAttrs: false });\n\nconst props = withDefaults(\n defineProps<{\n height?: number | string;\n maxHeight?: number | string;\n isAnimated?: boolean;\n animate?: boolean;\n hasAutoHideScrollbar?: boolean;\n }>(),\n { isAnimated: undefined, animate: undefined, hasAutoHideScrollbar: false },\n);\n\ndefineSlots<{\n /** The scrollable content inside the viewport. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\nconst reducedMotion = useReducedMotion();\nuseScrollActivity(el, () => props.hasAutoHideScrollbar);\n\nconst transitionsOn = computed(() => (props.isAnimated ?? props.animate ?? false) && !reducedMotion.value);\n\nconst sizeStyle = computed(() =>\n normalizeStyle([\n {\n height: typeof props.height === 'number' ? `${props.height}px` : props.height,\n maxHeight: typeof props.maxHeight === 'number' ? `${props.maxHeight}px` : props.maxHeight,\n scrollbarGutter: 'stable',\n },\n attrs.style,\n ]),\n);\n\nconst classes = computed(() =>\n cn(\n 'overflow-y-auto overflow-x-hidden',\n props.hasAutoHideScrollbar && 'scrollbar-auto-hide',\n transitionsOn.value && 'transition-[height,opacity] duration-200 ease-out',\n attrs.class as string | undefined,\n ),\n);\n\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\" :style=\"sizeStyle\"><slot /></div>\n</template>\n","import type { ColorMode } from './ColorModeContext';\n\n/** The `localStorage` key `ColorModeProvider` persists to by default. */\nexport const ColorModeStorageKey = 'wow-color-mode';\n\n/** Options for `colorModeScript` — pass the same values the app gives `ColorModeProvider`. */\nexport interface ColorModeScriptOptions {\n /** The provider's `storageKey`. Default `ColorModeStorageKey`. */\n readonly storageKey?: string;\n\n /** The provider's `defaultMode`. Default `'system'`. */\n readonly defaultMode?: ColorMode | 'system';\n}\n\n/* JSON is valid JavaScript; escaping `<` keeps a value from closing an inline `<script>` element. */\nfunction literal(value: string): string {\n return JSON.stringify(value).replace(/</g, '\\\\u003c');\n}\n\n/**\n * Returns the source of a pre-paint script that applies the remembered colour mode before the first frame, so a\n * dark app never flashes light. It reads the provider's storage key with the provider's rules: a stored `light` or\n * `dark` wins; a stored `system`, or nothing with a `system` default, follows the OS; otherwise the default mode.\n * It toggles `dark` and sets `color-scheme` on `<html>`, exactly as the provider will on mount.\n *\n * Inline it as a classic `<script>` in `index.html`'s `<head>` (a strict CSP needs its hash), or write it to a static\n * file served from the same origin. Storage failures leave the page to the provider.\n */\nexport function colorModeScript(options: ColorModeScriptOptions = {}): string {\n const key = literal(options.storageKey ?? ColorModeStorageKey);\n const fallback = literal(options.defaultMode ?? 'system');\n return (\n '(function(){try{' +\n `var s=localStorage.getItem(${key}),d=${fallback},m;` +\n \"if(s==='light'||s==='dark')m=s;\" +\n \"else if(s==='system'||d==='system')m=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';\" +\n 'else m=d;' +\n \"var r=document.documentElement;r.classList.toggle('dark',m==='dark');r.style.colorScheme=m;\" +\n '}catch(e){}})();'\n );\n}\n","<script lang=\"ts\">\nimport type { InjectionKey } from 'vue';\n\ninterface ColorModeOwner {\n readonly parent: ColorModeOwner | null;\n readonly mode: () => ColorMode;\n}\ninterface RootColorModes {\n readonly owners: ColorModeOwner[];\n readonly dark: boolean;\n readonly colorScheme: string;\n readonly priority: string;\n}\nconst ColorModeOwnerKey: InjectionKey<ColorModeOwner> = Symbol('wow-two.colorModeOwner');\nconst RootOwners = new WeakMap<HTMLElement, RootColorModes>();\n\nfunction isDescendant(owner: ColorModeOwner, ancestor: ColorModeOwner): boolean {\n for (let entry: ColorModeOwner | null = owner; entry; entry = entry.parent) {\n if (entry === ancestor) return true;\n }\n return false;\n}\n\nfunction applyRootMode(root: HTMLElement): void {\n const state = RootOwners.get(root);\n if (!state) return;\n const owner = state.owners.at(-1);\n if (owner) {\n const mode = owner.mode();\n root.classList.toggle('dark', mode === 'dark');\n root.style.setProperty('color-scheme', mode);\n } else {\n root.classList.toggle('dark', state.dark);\n if (state.colorScheme) root.style.setProperty('color-scheme', state.colorScheme, state.priority);\n else root.style.removeProperty('color-scheme');\n RootOwners.delete(root);\n }\n}\n// `ColorMode` is imported as a value by `<script setup>` below; both blocks\n// share one module scope, so re-importing the type here would duplicate it.\nexport interface ColorModeProviderProps {\n /** The mode used when nothing is persisted. `'system'` follows the OS preference. Default `'system'`. */\n readonly defaultMode?: ColorMode | 'system';\n\n /** The `localStorage` key for persistence; pass `null` to disable. Default `'wow-color-mode'`. */\n readonly storageKey?: string | null;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { inject, onMounted, onScopeDispose, provide, shallowRef, watch } from 'vue';\nimport { useMediaQuery } from '../../device';\nimport { ColorMode, ColorModeKey, ColorModeSystemValue, type ColorModeContextValue } from './ColorModeContext';\nimport { ColorModeStorageKey } from './ColorModeScript';\n\n/**\n * Renders no element of its own — the slot passes straight through — while owning the app's light/dark mode:\n * toggles the `dark` class on `<html>` (which flips every semantic token) + sets `color-scheme`, persists the\n * choice, and falls back to the OS preference. Wrap the app once; read via `useColorMode()`. This is the\n * canonical `.dark` mechanism for the design tokens.\n */\ndefineOptions({ name: 'ColorModeProvider' });\n\nconst props = withDefaults(defineProps<ColorModeProviderProps>(), {\n defaultMode: 'system',\n storageKey: ColorModeStorageKey,\n});\n\ndefineSlots<{\n /** The subtree that reads the active color mode. */\n default(): unknown;\n}>();\n\n/** Explicit defaults are shared by SSR and the first client render. */\nconst mode = shallowRef<ColorMode>(props.defaultMode === 'system' ? ColorMode.Light : props.defaultMode);\nlet root: HTMLElement | undefined;\nconst owner: ColorModeOwner = { parent: inject(ColorModeOwnerKey, null), mode: () => mode.value };\nprovide(ColorModeOwnerKey, owner);\nconst followsSystem = shallowRef(false);\nconst prefersDark = useMediaQuery('(prefers-color-scheme: dark)');\n\nonMounted(() => {\n let stored: string | null = null;\n try {\n stored = props.storageKey ? window.localStorage.getItem(props.storageKey) : null;\n } catch {\n // Storage denial must not disable the in-memory theme control.\n }\n // A stored `system` choice follows the OS even when the default names a fixed mode.\n followsSystem.value =\n stored === ColorModeSystemValue ||\n (stored !== ColorMode.Light && stored !== ColorMode.Dark && props.defaultMode === 'system');\n mode.value =\n stored === ColorMode.Light || stored === ColorMode.Dark\n ? stored\n : followsSystem.value\n ? prefersDark.value\n ? ColorMode.Dark\n : ColorMode.Light\n : mode.value;\n root = document.documentElement;\n const state: RootColorModes = RootOwners.get(root) ?? {\n owners: [],\n dark: root.classList.contains('dark'),\n colorScheme: root.style.getPropertyValue('color-scheme'),\n priority: root.style.getPropertyPriority('color-scheme'),\n };\n RootOwners.set(root, state);\n const descendant = state.owners.findIndex((candidate) => isDescendant(candidate, owner));\n if (descendant < 0) state.owners.push(owner);\n else state.owners.splice(descendant, 0, owner);\n applyRootMode(root);\n});\n\nonScopeDispose(() => {\n if (!root) return;\n const state = RootOwners.get(root);\n const index = state?.owners.indexOf(owner) ?? -1;\n if (state && index >= 0) state.owners.splice(index, 1);\n applyRootMode(root);\n root = undefined;\n});\n\nwatch(prefersDark, (dark) => {\n if (followsSystem.value) mode.value = dark ? ColorMode.Dark : ColorMode.Light;\n});\n\nwatch(mode, () => {\n if (root) applyRootMode(root);\n});\n\nfunction setMode(next: ColorMode): void {\n followsSystem.value = false;\n mode.value = next;\n if (!props.storageKey || typeof window === 'undefined') return;\n try {\n window.localStorage.setItem(props.storageKey, next);\n } catch {\n // Storage may be disabled or full; the chosen mode remains active.\n }\n}\n\nfunction followSystem(): void {\n followsSystem.value = true;\n mode.value = prefersDark.value ? ColorMode.Dark : ColorMode.Light;\n if (!props.storageKey || typeof window === 'undefined') return;\n try {\n window.localStorage.setItem(props.storageKey, ColorModeSystemValue);\n } catch {\n // Storage may be disabled or full; following the OS stays active for this session.\n }\n}\n\n// A getter, so consumers read `ctx.mode` as a plain value exactly like the\n// React context object — and tracking still happens on access.\nconst context: ColorModeContextValue = {\n get mode() {\n return mode.value;\n },\n get followsSystem() {\n return followsSystem.value;\n },\n setMode,\n followSystem,\n toggle: () => setMode(mode.value === ColorMode.Dark ? ColorMode.Light : ColorMode.Dark),\n};\n\nprovide(ColorModeKey, context);\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","VisuallyHidden","index"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,QAAQ,SAAA;AAEd,UAAM,UAAU;AAAA,MAAS,MACvB;AAAA,QACE;AAAA,QACA;AAAA,QACA,MAAM;AAAA,MAAA;AAAA,IACR;AAIF,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACrC,aAAO;AAAA,IACT,CAAC;;AAIC,aAAAA,UAAA,GAAAC,mBAAoD,QAApDC,WAAoD,YAAlC,EAAG,OAAO,QAAA,MAAA,CAAO,GAAA;AAAA,QAAEC,WAAQ,KAAA,QAAA,SAAA;AAAA,MAAA;;;;;;;;;;;AC1B/C,UAAM,QAAQ;AAOd,qBAAiB,MAAM,M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Ac,OAAO,WAAW,YAAa;AACxD,UAAI;AACF,eAAO,aAAa,QAAQ,MAAM,YAAY,IAAI;AAAA,MACpD,QAAQ;AAAA,MAER;AAAA,IACF;AAEA,aAAS,eAAqB;AAC5B,oBAAc,QAAQ;AACtB,WAAK,QAAQ,YAAY,QAAQ,UAAU,OAAO,UAAU;AAC5D,UAAI,CAAC,MAAM,cAAc,OAAO,WAAW,YAAa;AACxD,UAAI;AACF,eAAO,aAAa,QAAQ,MAAM,YAAY,oBAAoB;AAAA,MACpE,QAAQ;AAAA,MAER;AAAA,IACF;AAIA,UAAM,UAAiC;AAAA,MACrC,IAAI,OAAO;AACT,eAAO,KAAK;AAAA,MACd;AAAA,MACA,IAAI,gBAAgB;AAClB,eAAO,cAAc;AAAA,MACvB;AAAA,MACA;AAAA,MACA;AAAA,MACA,QAAQ,MAAM,QAAQ,KAAK,UAAU,UAAU,OAAO,UAAU,QAAQ,UAAU,IAAI;AAAA,IAAA;AAGxF,YAAQ,cAAc,OAAO;;aAI3BF,WAAQ,KAAA,QAAA,SAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
/** The attribute that marks an element while its content scrolls; the `scrollbar-auto-hide` styles read it. */
|
|
3
|
+
export declare const ScrollingAttribute = "data-scrolling";
|
|
4
|
+
/** The pause after the last scroll event before an element counts as idle again, in milliseconds. */
|
|
5
|
+
export declare const ScrollIdleDelay = 800;
|
|
6
|
+
type Target = HTMLElement | null | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Marks `target` with `data-scrolling` while it scrolls and removes the mark `ScrollIdleDelay` after the last
|
|
9
|
+
* scroll event — the signal a `scrollbar-auto-hide` element needs to show its thumb on touch devices, where no
|
|
10
|
+
* pointer hovers it. The attribute is written on the element itself, so a scroll never re-renders the component
|
|
11
|
+
* that owns it. `isEnabled` gates the whole behaviour: while it is `false` nothing is marked, and turning it off
|
|
12
|
+
* clears a mark already set.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useScrollActivity(target: MaybeRefOrGetter<Target>, isEnabled?: MaybeRefOrGetter<boolean>): void;
|
|
15
|
+
export {};
|
|
@@ -13,6 +13,7 @@ export * from './hooks/UseEventListener';
|
|
|
13
13
|
export * from './hooks/UseOutsideClick';
|
|
14
14
|
export * from './hooks/UseFocusTrap';
|
|
15
15
|
export * from './hooks/UseScrollLock';
|
|
16
|
+
export * from './hooks/UseScrollActivity';
|
|
16
17
|
export { DomOrderExtensions } from './DomOrderExtensions';
|
|
17
18
|
export { resolveElement } from './ResolveElement';
|
|
18
19
|
export { ScrollRegionAttribute, findScrollRegions } from './ScrollRegion';
|
|
@@ -3,15 +3,16 @@ import { d } from "../../chunks/DataAttr-7BR67dTj.js";
|
|
|
3
3
|
import { P } from "../../chunks/PressExtensions-DXqhjlR2.js";
|
|
4
4
|
import { B, H } from "../../chunks/HtmlValues-jlKY5f9C.js";
|
|
5
5
|
import { K } from "../../chunks/Key-CQlkK53D.js";
|
|
6
|
-
import { E, u } from "../../chunks/index-
|
|
6
|
+
import { E, u } from "../../chunks/index-COgbQxBT.js";
|
|
7
7
|
import { A } from "../../chunks/AriaAttribute-CmUjjXjp.js";
|
|
8
8
|
import { A as A2, D, u as u2 } from "../../chunks/UseOutsideClick-8TTSb9x6.js";
|
|
9
9
|
import { U } from "../../chunks/UrlExtensions-DqgLm0KY.js";
|
|
10
10
|
import { u as u3 } from "../../chunks/UseEventListener-C1WgWGoT.js";
|
|
11
11
|
import { u as u4 } from "../../chunks/UseScrollLock-BAu79cm4.js";
|
|
12
|
+
import { S, a, u as u5 } from "../../chunks/UseScrollActivity-D8MC5xgH.js";
|
|
12
13
|
import { D as D2 } from "../../chunks/DomOrderExtensions-Czsyvn6e.js";
|
|
13
14
|
import { r } from "../../chunks/ResolveElement-CyRfM82x.js";
|
|
14
|
-
import { S, f } from "../../chunks/ScrollRegion-CO8KnKUY.js";
|
|
15
|
+
import { S as S2, f } from "../../chunks/ScrollRegion-CO8KnKUY.js";
|
|
15
16
|
export {
|
|
16
17
|
A as AriaAttribute,
|
|
17
18
|
A2 as AttributeValue,
|
|
@@ -22,7 +23,9 @@ export {
|
|
|
22
23
|
H as HtmlElement,
|
|
23
24
|
K as Key,
|
|
24
25
|
P as PressExtensions,
|
|
25
|
-
S as
|
|
26
|
+
S as ScrollIdleDelay,
|
|
27
|
+
S2 as ScrollRegionAttribute,
|
|
28
|
+
a as ScrollingAttribute,
|
|
26
29
|
U as UrlExtensions,
|
|
27
30
|
c as composeEventHandlers,
|
|
28
31
|
d as dataAttr,
|
|
@@ -31,6 +34,7 @@ export {
|
|
|
31
34
|
u3 as useEventListener,
|
|
32
35
|
u as useFocusTrap,
|
|
33
36
|
u2 as useOutsideClick,
|
|
37
|
+
u5 as useScrollActivity,
|
|
34
38
|
u4 as useScrollLock
|
|
35
39
|
};
|
|
36
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ } from "../../chunks/AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
|
|
2
2
|
import { _ as _2, P } from "../../chunks/Announce.vue_vue_type_script_setup_true_lang-DbqODft3.js";
|
|
3
|
-
import { A, _ as _3, C, a, b, c, d, e } from "../../chunks/index-
|
|
3
|
+
import { A, _ as _3, C, a, b, c, d, e } from "../../chunks/index-Dp6L9sX7.js";
|
|
4
4
|
import { _ as _4 } from "../../chunks/DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
|
|
5
5
|
import { _ as _5 } from "../../chunks/FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
|
|
6
6
|
import { _ as _6 } from "../../chunks/FormControlProvider.vue_vue_type_script_setup_true_lang-D_yikT2o.js";
|
|
@@ -19,12 +19,19 @@ export interface ScrollViewportProps extends /* @vue-ignore */ HTMLAttributes {
|
|
|
19
19
|
readonly isAnimated?: boolean;
|
|
20
20
|
/** @deprecated Use `isAnimated`; this alias is removed next release. */
|
|
21
21
|
readonly animate?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track
|
|
24
|
+
* keeps its space, so the layout never shifts.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
readonly hasAutoHideScrollbar?: boolean;
|
|
22
28
|
}
|
|
23
29
|
declare const _default: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
24
30
|
height?: number | string;
|
|
25
31
|
maxHeight?: number | string;
|
|
26
32
|
isAnimated?: boolean;
|
|
27
33
|
animate?: boolean;
|
|
34
|
+
hasAutoHideScrollbar?: boolean;
|
|
28
35
|
}, {
|
|
29
36
|
el: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
30
37
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -32,9 +39,11 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<{
|
|
|
32
39
|
maxHeight?: number | string;
|
|
33
40
|
isAnimated?: boolean;
|
|
34
41
|
animate?: boolean;
|
|
42
|
+
hasAutoHideScrollbar?: boolean;
|
|
35
43
|
}> & Readonly<{}>, {
|
|
36
44
|
animate: boolean;
|
|
37
45
|
isAnimated: boolean;
|
|
46
|
+
hasAutoHideScrollbar: boolean;
|
|
38
47
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
39
48
|
/** The scrollable content inside the viewport. */
|
|
40
49
|
default(): unknown;
|
package/dist/index.css
CHANGED
|
@@ -286,6 +286,111 @@ body {
|
|
|
286
286
|
color: var(--color-foreground);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
/* ---------------------------------------------------------------------------
|
|
290
|
+
* Scrollbars — a slim themed track and a pill-shaped thumb on every scroll container, always visible.
|
|
291
|
+
*
|
|
292
|
+
* Chromium and Safari take `::-webkit-scrollbar*`: the thumb is a fully rounded pill, inset from the track by a
|
|
293
|
+
* transparent border so both ends read as round. A styled bar is a classic one: the track takes its own space
|
|
294
|
+
* beside the content, so nothing ever sits under it, on phones as on desktops. Firefox draws no scrollbar
|
|
295
|
+
* pseudo-elements, so it takes the standard properties — a thin bar in the same colours, with the system's own
|
|
296
|
+
* ends. Those are deliberately kept out of Chromium and Safari, which would stop drawing the
|
|
297
|
+
* `::-webkit-scrollbar*` styles on any element that sets them. Firefox also parses `::-webkit-scrollbar` (and
|
|
298
|
+
* never draws it), so the gate is a Firefox-only property rather than `selector(::-webkit-scrollbar)`.
|
|
299
|
+
*
|
|
300
|
+
* Every pointer type gets the same bar. A platform that draws its scrollbar as a system overlay and offers no
|
|
301
|
+
* styling hook (iOS Safari, Firefox for Android) keeps that overlay; CSS cannot change it.
|
|
302
|
+
*
|
|
303
|
+
* Scope and escape hatches:
|
|
304
|
+
* - `@layer base` plus `:where()` keep every rule below an app's own CSS and below utilities; a component's
|
|
305
|
+
* `scrollbar-width: none` or `[&::-webkit-scrollbar]:hidden` still hides its bar.
|
|
306
|
+
* - Opt out of one element with `class="scrollbar-native"` (it draws the platform's own scrollbar).
|
|
307
|
+
* - Opt in to fading the thumb while idle with `class="scrollbar-auto-hide"`. The track keeps its space, so the
|
|
308
|
+
* layout never shifts; the thumb returns while the pointer is over the element and while it carries
|
|
309
|
+
* `data-scrolling` (the scroll-region components set it while their content scrolls). Off by default.
|
|
310
|
+
* - Tune any subtree by setting custom properties on it: `--scrollbar-size` (the bar's thickness, default
|
|
311
|
+
* 0.625rem), `--scrollbar-inset` (the thumb's inset on each side, default 2px), `--scrollbar-track`,
|
|
312
|
+
* `--scrollbar-thumb` and `--scrollbar-thumb-hover`. The default colours follow the theme tokens, so they
|
|
313
|
+
* flip with `.dark` and any generated theme.
|
|
314
|
+
* ------------------------------------------------------------------------- */
|
|
315
|
+
|
|
316
|
+
/* The thumb's opacity while an element opted in to auto-hide is idle. Registered so the fade animates. */
|
|
317
|
+
@property --scrollbar-fade {
|
|
318
|
+
syntax: '<percentage>';
|
|
319
|
+
inherits: true;
|
|
320
|
+
initial-value: 100%;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@layer base {
|
|
324
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar {
|
|
325
|
+
width: var(--scrollbar-size, 0.625rem);
|
|
326
|
+
height: var(--scrollbar-size, 0.625rem);
|
|
327
|
+
background-color: var(--scrollbar-track, transparent);
|
|
328
|
+
}
|
|
329
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar-track,
|
|
330
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar-corner {
|
|
331
|
+
background-color: transparent;
|
|
332
|
+
}
|
|
333
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar-button {
|
|
334
|
+
display: none;
|
|
335
|
+
}
|
|
336
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar-thumb {
|
|
337
|
+
background-color: var(--scrollbar-thumb, var(--color-border-strong));
|
|
338
|
+
background-clip: padding-box;
|
|
339
|
+
border: var(--scrollbar-inset, 2px) solid transparent;
|
|
340
|
+
border-radius: 9999px;
|
|
341
|
+
}
|
|
342
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar-thumb:hover,
|
|
343
|
+
:where(*:not(.scrollbar-native))::-webkit-scrollbar-thumb:active {
|
|
344
|
+
background-color: var(--scrollbar-thumb-hover, var(--color-muted-foreground));
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/* Auto-hide (opt-in). The fade is a registered property on the element: Chromium and Safari do not transition
|
|
348
|
+
the scrollbar pseudo-elements themselves, but they resolve the thumb's colour from this property each frame. */
|
|
349
|
+
:where(.scrollbar-auto-hide:not(.scrollbar-native)) {
|
|
350
|
+
--scrollbar-fade: 0%;
|
|
351
|
+
transition: --scrollbar-fade 200ms ease;
|
|
352
|
+
}
|
|
353
|
+
:where(.scrollbar-auto-hide:not(.scrollbar-native)[data-scrolling]) {
|
|
354
|
+
--scrollbar-fade: 100%;
|
|
355
|
+
}
|
|
356
|
+
@media (hover: hover) {
|
|
357
|
+
:where(.scrollbar-auto-hide:not(.scrollbar-native):hover) {
|
|
358
|
+
--scrollbar-fade: 100%;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
@media (prefers-reduced-motion: reduce) {
|
|
362
|
+
:where(.scrollbar-auto-hide:not(.scrollbar-native)) {
|
|
363
|
+
transition: none;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
:where(.scrollbar-auto-hide:not(.scrollbar-native))::-webkit-scrollbar-thumb {
|
|
367
|
+
background-color: color-mix(
|
|
368
|
+
in srgb,
|
|
369
|
+
var(--scrollbar-thumb, var(--color-border-strong)) var(--scrollbar-fade),
|
|
370
|
+
transparent
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@supports ((-moz-appearance: none) or (-moz-orient: vertical)) {
|
|
375
|
+
:where(*:not(.scrollbar-native)) {
|
|
376
|
+
scrollbar-width: thin;
|
|
377
|
+
scrollbar-color: var(--scrollbar-thumb, var(--color-border-strong)) var(--scrollbar-track, transparent);
|
|
378
|
+
}
|
|
379
|
+
:where(.scrollbar-auto-hide:not(.scrollbar-native)) {
|
|
380
|
+
scrollbar-color: color-mix(
|
|
381
|
+
in srgb,
|
|
382
|
+
var(--scrollbar-thumb, var(--color-border-strong)) var(--scrollbar-fade),
|
|
383
|
+
transparent
|
|
384
|
+
)
|
|
385
|
+
var(--scrollbar-track, transparent);
|
|
386
|
+
}
|
|
387
|
+
/* `scrollbar-color` inherits, so an opted-out element must reset it rather than only skip the rule above. */
|
|
388
|
+
.scrollbar-native {
|
|
389
|
+
scrollbar-color: auto;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
289
394
|
/* Ambient surface treatments — opt-in via Card `ambient`. */
|
|
290
395
|
.surface-sheen {
|
|
291
396
|
background-image: linear-gradient(180deg, rgb(255 255 255 / 0.05), transparent 55%);
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i } from "./chunks/index-C-r59Hob.js";
|
|
2
|
-
import { i as i2 } from "./chunks/index-
|
|
2
|
+
import { i as i2 } from "./chunks/index-COgbQxBT.js";
|
|
3
3
|
import { i as i3 } from "./chunks/index-ClXOmDLK.js";
|
|
4
4
|
import { i as i4 } from "./chunks/index-DQ01kvk7.js";
|
|
5
5
|
import { i as i5 } from "./chunks/index-DOC7DwST.js";
|
|
6
6
|
import { i as i6 } from "./chunks/index-MaHUsR-O.js";
|
|
7
7
|
import { i as i7 } from "./chunks/index-Ba7VG4pV.js";
|
|
8
|
-
import { i as i8 } from "./chunks/index-
|
|
8
|
+
import { i as i8 } from "./chunks/index-Dp6L9sX7.js";
|
|
9
9
|
import { i as i9 } from "./chunks/index-DA17sNzP.js";
|
|
10
10
|
import { i as i10 } from "./chunks/index-KL15HQew.js";
|
|
11
11
|
import { i as i11 } from "./chunks/index-DvwkyLSw.js";
|
|
@@ -17,7 +17,7 @@ import { P as P2, _ as _5 } from "./chunks/TourPopover.vue_vue_type_script_setup
|
|
|
17
17
|
import { _ as _6, a as a10, b as b10, c as c3, A as A2, d as d3, e as e3, f as f3, g as g3, h as h3, i as i14, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, p as p3, q as q2, r as r2, s as s2, B as B2, t as t3, u as u4, v as v2, w as w2, x as x2, y as y2, z as z2, C as C2, D as D3, E as E2, F as F3, G as G2, H as H2, I as I2, J as J2, K as K2, L as L2, M as M2, N as N2, O as O2, P as P3, Q as Q2, R as R2, S as S3, T as T4, U as U2, V as V2, W as W2, X as X2, Y as Y2, Z as Z2, $ as $2, a0 as a02, a1 as a12, a2 as a23, a3 as a33, a4 as a42, a5 as a52, a6 as a62, a7 as a73, a8 as a82, a9 as a92, aa as aa2, ab as ab2, ac as ac2, ad as ad2, ae as ae2, af as af2, ag as ag2, ah as ah2, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, an as an2, ao as ao2, ap as ap2, aq as aq2, ar as ar2, as as as2, at as at2, au as au2, av as av2, aw as aw2, ax as ax2, ay as ay2, az as az2, aA as aA2, aB as aB2, aC as aC2, aD as aD2, aE as aE2, aF as aF2, aG as aG2, aH as aH2, aI as aI2, aJ as aJ2, aK as aK2, aL as aL2, aM as aM2, aN as aN2, aO as aO2, aP as aP2, aQ as aQ2, aR as aR2, aS as aS2, aT as aT2, aU as aU2, aV as aV2, aW as aW2, aX as aX2, aY as aY2, aZ as aZ2, a_ as a_2, a$ as a$2, b0 as b02, b1 as b12, b2 as b23, b3 as b33, b4 as b42, b5 as b52, b6 as b62, b7 as b72, b8 as b82, b9 as b92, ba as ba2, bb as bb2, bc as bc2, bd as bd2, be as be2, bf as bf2, bg as bg2, bh as bh2, bi as bi2, bj as bj2, bk as bk2, bl as bl2, bm as bm2, bn as bn2, bo as bo2, bp as bp2, bq as bq2, br as br2, bs as bs2, bt as bt2, bu as bu2, bv as bv2, bw as bw2, bx as bx2, by as by2, bz as bz2, bA as bA2, bB as bB2, bC as bC2, bD as bD2, bE as bE2, bF as bF2, bG as bG2, bH as bH2, bI as bI2, bJ as bJ2, bK as bK2, bL as bL2, bM as bM2, bN as bN2, bO as bO2, bP as bP2, bQ as bQ2, bR as bR2, bS as bS2, bT as bT2 } from "./chunks/KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js";
|
|
18
18
|
import { _ as _7, a as a11, b as b11, c as c4, d as d4, e as e4, f as f4, c as c5, d as d5, e as e5, f as f5, g as g4, h as h4, i as i15, j as j4, k as k4, l as l4, m as m4, n as n4, o as o4, p as p4, q as q3, r as r3, h as h5, s as s3, t as t4, u as u5, r as r4, h as h6, s as s4, t as t5, v as v3, w as w3, x as x3, y as y3, z as z3, A as A3, r as r5, h as h7, s as s5, t as t6, u as u6, B as B3, C as C3, D as D4, E as E3, F as F4 } from "./chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js";
|
|
19
19
|
import { _ as _8, a as a13, b as b13, c as c6, d as d6, e as e6, f as f6, D as D5, g as g5, h as h8, i as i16, j as j5, k as k5, l as l5, m as m5, n as n5, o as o5, P as P4, p as p5, q as q4, r as r6, s as s6, t as t7, u as u7, v as v4, w as w4, x as x4, y as y4, z as z4, T as T5, A as A4, B as B4, C as C4, E as E4, F as F5, G as G3, H as H3 } from "./chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js";
|
|
20
|
-
import { _ as _9, A as A5, a as a14, b as b14, c as c7, d as d7, e as e7, f as f7, g as g6, h as h9, i as i17, j as j6, k as k6, l as l6, m as m6, n as n6, o as o6, B as B5, p as p6, C as C5, q as q5, r as r7, s as s7, t as t8, u as u8, v as v5, w as w5, x as x5, F as F6, y as y5, G as G4, z as z5, D as D6, E as E5, H as H4, I as I3, J as J3, N as N3, K as K3, L as L3, M as M3, O as O3, P as P5, Q as Q3, R as R3, S as S4, T as T6, U as U3, V as V3, W as W3, X as X3, Y as Y3, Z as Z3, $ as $3, a0 as a03, a1 as a15, a2 as a24, a3 as a34, a4 as a43, a5 as a53, a6 as a63, a7 as a74, a8 as a83, a9 as a93, aa as aa3, ab as ab3, ac as ac3, ad as ad3, ae as ae3 } from "./chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-
|
|
20
|
+
import { _ as _9, A as A5, a as a14, b as b14, c as c7, d as d7, e as e7, f as f7, g as g6, h as h9, i as i17, j as j6, k as k6, l as l6, m as m6, n as n6, o as o6, B as B5, p as p6, C as C5, q as q5, r as r7, s as s7, t as t8, u as u8, v as v5, w as w5, x as x5, F as F6, y as y5, G as G4, z as z5, D as D6, E as E5, H as H4, I as I3, J as J3, N as N3, K as K3, L as L3, M as M3, O as O3, P as P5, Q as Q3, R as R3, S as S4, T as T6, U as U3, V as V3, W as W3, X as X3, Y as Y3, Z as Z3, $ as $3, a0 as a03, a1 as a15, a2 as a24, a3 as a34, a4 as a43, a5 as a53, a6 as a63, a7 as a74, a8 as a83, a9 as a93, aa as aa3, ab as ab3, ac as ac3, ad as ad3, ae as ae3 } from "./chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js";
|
|
21
21
|
import { A as A6, _ as _10, a as a16, b as b15, c as c8, d as d8, e as e8, f as f8, g as g7, h as h10, i as i18, j as j7, L as L4, k as k7, l as l7, m as m7, n as n7, o as o7, M as M4, p as p7, q as q6, r as r8, s as s8, t as t9, u as u9, v as v6, w as w6, x as x6, y as y6, z as z6, B as B6, C as C6, D as D7, E as E6, F as F7, G as G5, H as H5, I as I4, J as J4, K as K4, N as N4, O as O4, P as P6, Q as Q4, R as R4, S as S5, T as T7, U as U4, V as V4, W as W4, X as X4, Y as Y4, Z as Z4, $ as $4, a0 as a04, a1 as a17, a2 as a25, a3 as a35, a4 as a44, a5 as a54, a6 as a64, a7 as a75, a8 as a84, a9 as a94, aa as aa4, ab as ab4, ac as ac4, ad as ad4, ae as ae4, af as af3, ag as ag3, ah as ah3, ai as ai3 } from "./chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js";
|
|
22
22
|
import { _ as _11, B as B7 } from "./chunks/BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
|
|
23
23
|
import { _ as _12, a as a18, b as b16, c as c9, _ as _13, b as b17, _ as _14, a as a19, b as b18, c as c10, M as M5, d as d9, e as e9, _ as _15 } from "./chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js";
|
|
@@ -2,13 +2,22 @@
|
|
|
2
2
|
* The prop surface of `AppShellMain`.
|
|
3
3
|
*
|
|
4
4
|
* React declared `HTMLAttributes<HTMLElement>`; attributes reach the root
|
|
5
|
-
* through `useAttrs` here and `children` is the default slot
|
|
6
|
-
* declared prop.
|
|
5
|
+
* through `useAttrs` here and `children` is the default slot.
|
|
7
6
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
7
|
+
export interface AppShellMainProps {
|
|
8
|
+
/**
|
|
9
|
+
* Fades the scrollbar thumb while the region is idle and brings it back on hover and while it scrolls. The
|
|
10
|
+
* track keeps its space, so the layout never shifts. Only a region shell's main scrolls, so it has no effect
|
|
11
|
+
* in a `document` shell.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
readonly hasAutoHideScrollbar?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: __VLS_WithSlots<import('vue').DefineComponent<AppShellMainProps, {
|
|
10
17
|
el: Readonly<import('vue').ShallowRef<HTMLElement | null>>;
|
|
11
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppShellMainProps> & Readonly<{}>, {
|
|
19
|
+
readonly hasAutoHideScrollbar: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
12
21
|
default?(): unknown;
|
|
13
22
|
}>;
|
|
14
23
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, B, p, C, q, r, s, t, u, v, w, x, F, y, G, z, D, E, H, I, J, N, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae } from "../../chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _, A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, B, p, C, q, r, s, t, u, v, w, x, F, y, G, z, D, E, H, I, J, N, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae } from "../../chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-2CWeHWdV.js";
|
|
2
2
|
import { _ as _2, a as a10, S as S2, b as b2, c as c2, d as d2, s as s2 } from "../../chunks/StackLayout.vue_vue_type_script_setup_true_lang-DuAFfjSc.js";
|
|
3
3
|
import { _ as _3, I as I2 } from "../../chunks/InlineLayout.vue_vue_type_script_setup_true_lang-c_IaJYJj.js";
|
|
4
4
|
import { _ as _4 } from "../../chunks/PageHeader.vue_vue_type_script_setup_true_lang-DdwVPgFR.js";
|
|
@@ -14,10 +14,17 @@ export type ScrollAxis = (typeof ScrollAxis)[keyof typeof ScrollAxis];
|
|
|
14
14
|
export interface ScrollAreaProps {
|
|
15
15
|
/** The scroll axis. Default `vertical`. */
|
|
16
16
|
readonly axis?: ScrollAxis;
|
|
17
|
+
/**
|
|
18
|
+
* Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track
|
|
19
|
+
* keeps its space, so the layout never shifts.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
readonly hasAutoHideScrollbar?: boolean;
|
|
17
23
|
}
|
|
18
24
|
declare const _default: __VLS_WithSlots<import('vue').DefineComponent<ScrollAreaProps, {
|
|
19
25
|
el: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
20
26
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScrollAreaProps> & Readonly<{}>, {
|
|
27
|
+
readonly hasAutoHideScrollbar: boolean;
|
|
21
28
|
readonly axis: ScrollAxis;
|
|
22
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
23
30
|
/** The scrollable content. */
|
|
@@ -14,6 +14,12 @@ export interface VirtualScrollAreaProps<T> {
|
|
|
14
14
|
readonly getKey?: (item: T, index: number) => string | number;
|
|
15
15
|
/** How many items before the end the rendered window must reach to report `end-reached`. Default 5. */
|
|
16
16
|
readonly endThreshold?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track
|
|
19
|
+
* keeps its space, so the layout never shifts.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
readonly hasAutoHideScrollbar?: boolean;
|
|
17
23
|
}
|
|
18
24
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
19
25
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
package/package.json
CHANGED