@alikhalilll/ui 1.2.1 → 1.2.2
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 +68 -45
- package/dist/assets/styles.css +2 -74
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-BrBsDiHc.mjs +113 -0
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-BrBsDiHc.mjs.map +1 -0
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-D4odgAna.mjs +1606 -0
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-D4odgAna.mjs.map +1 -0
- package/dist/chunks/useEventScrollLock-BcP8fg-L.mjs +241 -0
- package/dist/chunks/useEventScrollLock-BcP8fg-L.mjs.map +1 -0
- package/dist/entries/drawer/components/ADrawer.vue.d.ts +31 -0
- package/dist/entries/drawer/components/ADrawer.vue.d.ts.map +1 -0
- package/dist/entries/drawer/components/ADrawerContent.vue.d.ts +33 -0
- package/dist/entries/drawer/components/ADrawerContent.vue.d.ts.map +1 -0
- package/dist/entries/drawer/components/ADrawerOverlay.vue.d.ts +9 -0
- package/dist/entries/drawer/components/ADrawerOverlay.vue.d.ts.map +1 -0
- package/dist/entries/drawer/components/ADrawerTrigger.vue.d.ts +15 -0
- package/dist/entries/drawer/components/ADrawerTrigger.vue.d.ts.map +1 -0
- package/dist/entries/drawer/index.d.ts +5 -0
- package/dist/entries/drawer/index.d.ts.map +1 -0
- package/dist/entries/input/components/AInput.vue.d.ts +36 -0
- package/dist/entries/input/components/AInput.vue.d.ts.map +1 -0
- package/dist/entries/input/index.d.ts +2 -0
- package/dist/entries/input/index.d.ts.map +1 -0
- package/dist/entries/popover/components/APopover.vue.d.ts +24 -0
- package/dist/entries/popover/components/APopover.vue.d.ts.map +1 -0
- package/dist/entries/popover/components/APopoverContent.vue.d.ts +48 -0
- package/dist/entries/popover/components/APopoverContent.vue.d.ts.map +1 -0
- package/dist/entries/popover/components/APopoverOverlay.vue.d.ts +17 -0
- package/dist/entries/popover/components/APopoverOverlay.vue.d.ts.map +1 -0
- package/dist/entries/popover/components/APopoverTrigger.vue.d.ts +15 -0
- package/dist/entries/popover/components/APopoverTrigger.vue.d.ts.map +1 -0
- package/dist/entries/popover/composables/useEventScrollLock.d.ts +21 -0
- package/dist/entries/popover/composables/useEventScrollLock.d.ts.map +1 -0
- package/dist/entries/popover/index.d.ts +6 -0
- package/dist/entries/popover/index.d.ts.map +1 -0
- package/dist/entries/responsive-popover/components/AResponsivePopover.vue.d.ts +50 -0
- package/dist/entries/responsive-popover/components/AResponsivePopover.vue.d.ts.map +1 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverContent.vue.d.ts +39 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverContent.vue.d.ts.map +1 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverTrigger.vue.d.ts +20 -0
- package/dist/entries/responsive-popover/components/AResponsivePopoverTrigger.vue.d.ts.map +1 -0
- package/dist/entries/responsive-popover/composables/useResponsivePopoverContext.d.ts +10 -0
- package/dist/entries/responsive-popover/composables/useResponsivePopoverContext.d.ts.map +1 -0
- package/dist/entries/responsive-popover/index.d.ts +4 -0
- package/dist/entries/responsive-popover/index.d.ts.map +1 -0
- package/dist/entries/tell-input/components/ACountryFlag.vue.d.ts +30 -0
- package/dist/entries/tell-input/components/ACountryFlag.vue.d.ts.map +1 -0
- package/dist/entries/tell-input/components/ACountrySelect.vue.d.ts +140 -0
- package/dist/entries/tell-input/components/ACountrySelect.vue.d.ts.map +1 -0
- package/dist/entries/tell-input/components/ATellInput.vue.d.ts +145 -0
- package/dist/entries/tell-input/components/ATellInput.vue.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useCountryDetection.d.ts +44 -0
- package/dist/entries/tell-input/composables/useCountryDetection.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useCountryMatching.d.ts +44 -0
- package/dist/entries/tell-input/composables/useCountryMatching.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/usePhoneValidation.d.ts +110 -0
- package/dist/entries/tell-input/composables/usePhoneValidation.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useTellInputValidation.d.ts +67 -0
- package/dist/entries/tell-input/composables/useTellInputValidation.d.ts.map +1 -0
- package/dist/entries/tell-input/composables/useTypingPhase.d.ts +50 -0
- package/dist/entries/tell-input/composables/useTypingPhase.d.ts.map +1 -0
- package/dist/entries/tell-input/index.d.ts +12 -0
- package/dist/entries/tell-input/index.d.ts.map +1 -0
- package/dist/entries/tell-input/utils/digits.d.ts +22 -0
- package/dist/entries/tell-input/utils/digits.d.ts.map +1 -0
- package/dist/entries/tell-input/utils/flag-url.d.ts +8 -0
- package/dist/entries/tell-input/utils/flag-url.d.ts.map +1 -0
- package/dist/entries/tell-input/utils/types.d.ts +120 -0
- package/dist/entries/tell-input/utils/types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -1139
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +39 -33
- package/dist/popover.mjs +5 -4
- package/dist/responsive-popover.mjs +1 -1
- package/dist/tell-input.mjs +14 -9
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/{utils.d.ts → utils/sizes.d.ts} +18 -29
- package/dist/utils/sizes.d.ts.map +1 -0
- package/package.json +14 -10
- package/dist/chunks/APopoverContent.vue_vue_type_script_setup_true_lang-CjiJ12DR.mjs +0 -132
- package/dist/chunks/APopoverContent.vue_vue_type_script_setup_true_lang-CjiJ12DR.mjs.map +0 -1
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-5YbO6FdM.mjs +0 -92
- package/dist/chunks/AResponsivePopoverContent.vue_vue_type_script_setup_true_lang-5YbO6FdM.mjs.map +0 -1
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-D7hPj1g1.mjs +0 -1489
- package/dist/chunks/ATellInput.vue_vue_type_script_setup_true_lang-D7hPj1g1.mjs.map +0 -1
- package/dist/drawer.d.ts +0 -116
- package/dist/input.d.ts +0 -65
- package/dist/popover.d.ts +0 -117
- package/dist/responsive-popover.d.ts +0 -124
- package/dist/tell-input.d.ts +0 -740
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEventScrollLock-BcP8fg-L.mjs","sources":["../../entries/popover/components/APopover.vue","../../entries/popover/components/APopoverTrigger.vue","../../entries/popover/components/APopoverOverlay.vue","../../entries/popover/components/APopoverContent.vue","../../entries/popover/composables/useEventScrollLock.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { PopoverRootEmits, PopoverRootProps } from 'reka-ui';\nimport { PopoverRoot, useForwardPropsEmits } from 'reka-ui';\n\n/**\n * Defaults `modal` to `true` so the popover locks page scroll, traps focus, and an overlay\n * (rendered by APopoverContent when `overlay` is set) actually dims the page.\n * Pass `:modal=\"false\"` for tooltip-style non-modal popovers.\n */\nconst props = withDefaults(defineProps<PopoverRootProps>(), { modal: true });\nconst emits = defineEmits<PopoverRootEmits>();\nconst forwarded = useForwardPropsEmits(props, emits);\n</script>\n\n<template>\n <PopoverRoot v-slot=\"slotProps\" data-slot=\"popover\" v-bind=\"forwarded\">\n <slot v-bind=\"slotProps\" />\n </PopoverRoot>\n</template>\n","<script setup lang=\"ts\">\nimport type { PopoverTriggerProps } from 'reka-ui';\nimport { PopoverTrigger, useForwardProps } from 'reka-ui';\n\nconst props = defineProps<PopoverTriggerProps>();\nconst forwarded = useForwardProps(props);\n</script>\n\n<template>\n <PopoverTrigger data-slot=\"popover-trigger\" v-bind=\"forwarded\">\n <slot />\n </PopoverTrigger>\n</template>\n","<script setup lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport { onBeforeUnmount, onMounted } from 'vue';\nimport { cn } from '@/utils';\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(\n defineProps<{\n class?: HTMLAttributes['class'];\n /**\n * When true, set `body { overflow: hidden; touchAction: none }` for the lifetime of\n * the overlay. Off by default because it breaks `position: sticky` on the host page.\n * Prefer the event-based lock (see `AResponsivePopover`'s `scrollLock` prop) which\n * keeps the page scrollbar in place.\n */\n lockScroll?: boolean;\n }>(),\n { lockScroll: false }\n);\n\nlet prevBodyOverflow = '';\nlet prevBodyTouchAction = '';\nlet prevPaddingRight = '';\n\nfunction getScrollbarWidth() {\n if (typeof window === 'undefined') return 0;\n return window.innerWidth - document.documentElement.clientWidth;\n}\n\nonMounted(() => {\n if (!props.lockScroll) return;\n if (typeof document === 'undefined') return;\n const body = document.body;\n const sbw = getScrollbarWidth();\n prevBodyOverflow = body.style.overflow;\n prevBodyTouchAction = body.style.touchAction;\n prevPaddingRight = body.style.paddingRight;\n body.style.overflow = 'hidden';\n body.style.touchAction = 'none';\n // Compensate for the missing scrollbar so the layout doesn't jump.\n if (sbw > 0) body.style.paddingRight = `${sbw}px`;\n});\n\nonBeforeUnmount(() => {\n if (!props.lockScroll) return;\n if (typeof document === 'undefined') return;\n const body = document.body;\n body.style.overflow = prevBodyOverflow;\n body.style.touchAction = prevBodyTouchAction;\n body.style.paddingRight = prevPaddingRight;\n});\n</script>\n\n<template>\n <div\n data-slot=\"popover-overlay\"\n aria-hidden=\"true\"\n :class=\"\n cn(\n // `fixed inset-0` covers the entire viewport; `pointer-events-auto` captures every\n // click so it can never reach the page underneath. `z-50` keeps us above any normal\n // page chrome; the popover content sits at `z-[60]`.\n 'fixed inset-0 z-50 bg-black/70 pointer-events-auto data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',\n props.class\n )\n \"\n />\n</template>\n","<script setup lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport { reactiveOmit } from '@vueuse/core';\nimport {\n PopoverContent,\n type PopoverContentEmits,\n type PopoverContentProps,\n PopoverPortal,\n useForwardPropsEmits,\n} from 'reka-ui';\nimport { cn } from '@/utils';\nimport APopoverOverlay from './APopoverOverlay.vue';\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(\n defineProps<\n PopoverContentProps & {\n class?: HTMLAttributes['class'];\n /** Dim the entire viewport behind the popover and block all interaction with the\n * page (clicks are captured by the overlay). Pair with `<APopover :modal=\"true\">`\n * (the default) for the full modal behaviour. */\n overlay?: boolean;\n overlayClass?: HTMLAttributes['class'];\n /**\n * When true, the overlay also locks page scroll via `body { overflow: hidden }`.\n * Off by default — `AResponsivePopover` opts in to this when `scrollLock=\"body\"`.\n */\n overlayLockScroll?: boolean;\n }\n >(),\n { align: 'center', sideOffset: 4, overlay: false, overlayLockScroll: false }\n);\nconst emits = defineEmits<PopoverContentEmits>();\nconst delegated = reactiveOmit(props, 'class', 'overlay', 'overlayClass', 'overlayLockScroll');\nconst forwarded = useForwardPropsEmits(delegated, emits);\n</script>\n\n<template>\n <PopoverPortal>\n <!--\n Overlay is a sibling of PopoverContent inside the same portal. Reka-ui's\n DismissableLayer treats any pointer-down outside the content as a dismiss,\n so clicking the overlay closes the popover for free. The overlay component\n locks body scroll on mount and restores it on unmount.\n -->\n <APopoverOverlay\n v-if=\"props.overlay\"\n :class=\"props.overlayClass\"\n :lock-scroll=\"props.overlayLockScroll\"\n />\n <PopoverContent\n data-slot=\"popover-content\"\n v-bind=\"{ ...$attrs, ...forwarded }\"\n :class=\"\n cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[60] w-72 rounded-md border border-border/70 p-4 shadow-xl shadow-black/15 outline-none',\n props.class\n )\n \"\n >\n <slot />\n </PopoverContent>\n </PopoverPortal>\n</template>\n","import { onBeforeUnmount, toValue, watch, type MaybeRefOrGetter, type Ref } from 'vue';\n\nexport interface UseEventScrollLockOptions {\n /**\n * Element(s) inside the popover whose internal scroll should be preserved.\n * Events whose target is inside one of these are allowed to scroll the\n * element (subject to boundary clamping); everything else is preventDefault'd.\n */\n allowedScrollContainer: MaybeRefOrGetter<HTMLElement | HTMLElement[] | null | undefined>;\n /** Lock activates when this becomes true and tears down when false. */\n active: Ref<boolean> | (() => boolean);\n}\n\n// Module-level so multiple popovers stacking share one listener set.\nlet refCount = 0;\nconst allowedContainers = new Set<HTMLElement>();\n\nconst SCROLL_KEYS = new Set([\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight',\n 'PageUp',\n 'PageDown',\n 'Home',\n 'End',\n 'Space',\n ' ',\n]);\n\nfunction insideAllowed(target: EventTarget | null): boolean {\n if (!(target instanceof Node)) return false;\n for (const el of allowedContainers) if (el.contains(target)) return true;\n return false;\n}\n\n// Walk up from the event target; if any ancestor (up to and including the\n// allowed container) is a scroller that can absorb the delta in this direction\n// without overshooting its boundary, allow the event.\nfunction canConsume(el: HTMLElement, dx: number, dy: number): boolean {\n let node: HTMLElement | null = el;\n while (node) {\n const s = getComputedStyle(node);\n const scrollsY =\n (s.overflowY === 'auto' || s.overflowY === 'scroll') && node.scrollHeight > node.clientHeight;\n if (scrollsY && dy !== 0) {\n const atTop = node.scrollTop <= 0;\n const atBottom = node.scrollTop + node.clientHeight >= node.scrollHeight - 1;\n if (!(dy < 0 && atTop) && !(dy > 0 && atBottom)) return true;\n }\n const scrollsX =\n (s.overflowX === 'auto' || s.overflowX === 'scroll') && node.scrollWidth > node.clientWidth;\n if (scrollsX && dx !== 0) {\n const atLeft = node.scrollLeft <= 0;\n const atRight = node.scrollLeft + node.clientWidth >= node.scrollWidth - 1;\n if (!(dx < 0 && atLeft) && !(dx > 0 && atRight)) return true;\n }\n if (allowedContainers.has(node)) break;\n node = node.parentElement;\n }\n return false;\n}\n\nfunction onWheel(e: WheelEvent) {\n const t = (e.composedPath()[0] ?? e.target) as HTMLElement | null;\n if (!t || !insideAllowed(t)) {\n e.preventDefault();\n return;\n }\n if (!canConsume(t, e.deltaX, e.deltaY)) e.preventDefault();\n}\n\nlet touchStartY = 0;\nlet touchStartX = 0;\nfunction onTouchStart(e: TouchEvent) {\n if (e.touches.length === 1) {\n touchStartY = e.touches[0]!.clientY;\n touchStartX = e.touches[0]!.clientX;\n }\n}\nfunction onTouchMove(e: TouchEvent) {\n const t = (e.composedPath()[0] ?? e.target) as HTMLElement | null;\n if (!t || !insideAllowed(t)) {\n e.preventDefault();\n return;\n }\n if (e.touches.length !== 1) {\n e.preventDefault();\n return;\n }\n const dy = touchStartY - e.touches[0]!.clientY;\n const dx = touchStartX - e.touches[0]!.clientX;\n if (!canConsume(t, dx, dy)) e.preventDefault();\n}\n\nfunction onKeyDown(e: KeyboardEvent) {\n if (!SCROLL_KEYS.has(e.key)) return;\n // Popover owns its own keyboard model (search input, list navigation).\n if (insideAllowed(e.target)) return;\n e.preventDefault();\n}\n\nfunction activate() {\n if (refCount === 0) {\n document.addEventListener('wheel', onWheel, {\n passive: false,\n capture: true,\n });\n document.addEventListener('touchstart', onTouchStart, {\n passive: true,\n capture: true,\n });\n document.addEventListener('touchmove', onTouchMove, {\n passive: false,\n capture: true,\n });\n document.addEventListener('keydown', onKeyDown, { capture: true });\n }\n refCount++;\n}\n\nfunction deactivate() {\n refCount = Math.max(0, refCount - 1);\n if (refCount === 0) {\n document.removeEventListener('wheel', onWheel, { capture: true });\n document.removeEventListener('touchstart', onTouchStart, { capture: true });\n document.removeEventListener('touchmove', onTouchMove, { capture: true });\n document.removeEventListener('keydown', onKeyDown, { capture: true });\n }\n}\n\n/**\n * Sticky-safe scroll lock: prevents page scroll by intercepting wheel/touch/key\n * events at `document` capture phase, instead of mutating `body { overflow }`.\n * The page scrollbar stays visible and `position: sticky` keeps working.\n *\n * Pass the element(s) whose own scroll should still work (e.g. a popover's\n * inner search list) as `allowedScrollContainer`.\n */\nexport function useEventScrollLock(opts: UseEventScrollLockOptions): void {\n if (typeof document === 'undefined') return;\n\n let registered: HTMLElement[] = [];\n let activeNow = false;\n\n const register = () => {\n const raw = toValue(opts.allowedScrollContainer);\n const list = Array.isArray(raw) ? (raw.filter(Boolean) as HTMLElement[]) : raw ? [raw] : [];\n for (const el of list) allowedContainers.add(el);\n registered = list;\n };\n const unregister = () => {\n for (const el of registered) allowedContainers.delete(el);\n registered = [];\n };\n\n const stopActive = watch(\n () => (typeof opts.active === 'function' ? opts.active() : opts.active.value),\n (v) => {\n if (v && !activeNow) {\n register();\n activate();\n activeNow = true;\n } else if (!v && activeNow) {\n deactivate();\n unregister();\n activeNow = false;\n }\n },\n { immediate: true, flush: 'post' }\n );\n\n const stopContainer = watch(\n () => toValue(opts.allowedScrollContainer),\n () => {\n if (activeNow) {\n unregister();\n register();\n }\n },\n { flush: 'post' }\n );\n\n onBeforeUnmount(() => {\n stopActive();\n stopContainer();\n if (activeNow) {\n deactivate();\n unregister();\n activeNow = false;\n }\n });\n}\n"],"names":["forwarded","useForwardPropsEmits","__props","__emit","_openBlock","_createBlock","_unref","_mergeProps","_withCtx","slotProps","_renderSlot","_ctx","useForwardProps","props","prevBodyOverflow","prevBodyTouchAction","prevPaddingRight","getScrollbarWidth","onMounted","body","sbw","onBeforeUnmount","_createElementBlock","_normalizeClass","cn","emits","delegated","reactiveOmit","PopoverPortal","APopoverOverlay","_createVNode","PopoverContent","$attrs","refCount","allowedContainers","SCROLL_KEYS","insideAllowed","target","el","canConsume","dx","dy","node","s","atTop","atBottom","atLeft","atRight","onWheel","t","touchStartY","touchStartX","onTouchStart","onTouchMove","onKeyDown","activate","deactivate","useEventScrollLock","opts","registered","activeNow","register","raw","toValue","list","unregister","stopActive","watch","v","stopContainer"],"mappings":";;;;;;;;;;;;;AAWA,UAAMA,IAAYC,EAFJC,GACAC,CACqC;sBAIjDC,EAAA,GAAAC,EAEcC,MAFdC,EAEc,EAFkB,aAAU,UAAA,GAAkBD,EAAAN,CAAA,CAAS,G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AAA,EACf,GAEMO,IAAaC;AAAA,IACjB,MAAO,OAAOT,EAAK,UAAW,aAAaA,EAAK,OAAA,IAAWA,EAAK,OAAO;AAAA,IACvE,CAACU,MAAM;AACL,MAAIA,KAAK,CAACR,KACRC,EAAA,GACAN,EAAA,GACAK,IAAY,MACH,CAACQ,KAAKR,MACfJ,EAAA,GACAS,EAAA,GACAL,IAAY;AAAA,IAEhB;AAAA,IACA,EAAE,WAAW,IAAM,OAAO,OAAA;AAAA,EAAO,GAG7BS,IAAgBF;AAAA,IACpB,MAAMJ,EAAQL,EAAK,sBAAsB;AAAA,IACzC,MAAM;AACJ,MAAIE,MACFK,EAAA,GACAJ,EAAA;AAAA,IAEJ;AAAA,IACA,EAAE,OAAO,OAAA;AAAA,EAAO;AAGlB,EAAAxC,EAAgB,MAAM;AACpB,IAAA6C,EAAA,GACAG,EAAA,GACIT,MACFJ,EAAA,GACAS,EAAA,GACAL,IAAY;AAAA,EAEhB,CAAC;AACH;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type DrawerRootProps } from 'vaul-vue';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DrawerRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:open": (open: boolean) => any;
|
|
8
|
+
close: () => any;
|
|
9
|
+
drag: (percentageDragged: number) => any;
|
|
10
|
+
animationEnd: (open: boolean) => any;
|
|
11
|
+
release: (open: boolean) => any;
|
|
12
|
+
"update:activeSnapPoint": (val: string | number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<DrawerRootProps> & Readonly<{
|
|
14
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onDrag?: ((percentageDragged: number) => any) | undefined;
|
|
17
|
+
onAnimationEnd?: ((open: boolean) => any) | undefined;
|
|
18
|
+
onRelease?: ((open: boolean) => any) | undefined;
|
|
19
|
+
"onUpdate:activeSnapPoint"?: ((val: string | number) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
shouldScaleBackground: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=ADrawer.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ADrawer.vue.d.ts","sourceRoot":"","sources":["../../../../entries/drawer/components/ADrawer.vue"],"names":[],"mappings":"AAmBA,OAAO,EAAoC,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAsDlF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import type { DialogContentProps } from 'reka-ui';
|
|
3
|
+
type __VLS_Props = DialogContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_19: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_19) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
13
|
+
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
14
|
+
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
15
|
+
openAutoFocus: (event: Event) => any;
|
|
16
|
+
closeAutoFocus: (event: Event) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
20
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
21
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
22
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=ADrawerContent.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ADrawerContent.vue.d.ts","sourceRoot":"","sources":["../../../../entries/drawer/components/ADrawerContent.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,KAAK,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQtE,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAwF5E,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import type { DialogOverlayProps } from 'reka-ui';
|
|
3
|
+
type __VLS_Props = DialogOverlayProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=ADrawerOverlay.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ADrawerOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../entries/drawer/components/ADrawerOverlay.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAKlD,KAAK,WAAW,GAAG,kBAAkB,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AAsD5E,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type DrawerTriggerProps } from 'vaul-vue';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<DrawerTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DrawerTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=ADrawerTrigger.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ADrawerTrigger.vue.d.ts","sourceRoot":"","sources":["../../../../entries/drawer/components/ADrawerTrigger.vue"],"names":[],"mappings":"AAgBA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AA6ClE,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,gTAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ADrawer } from './components/ADrawer.vue';
|
|
2
|
+
export { default as ADrawerTrigger } from './components/ADrawerTrigger.vue';
|
|
3
|
+
export { default as ADrawerContent } from './components/ADrawerContent.vue';
|
|
4
|
+
export { default as ADrawerOverlay } from './components/ADrawerOverlay.vue';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entries/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import { type Size } from '../../../utils';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
defaultValue?: string | number;
|
|
5
|
+
modelValue?: string | number;
|
|
6
|
+
class?: HTMLAttributes['class'];
|
|
7
|
+
/** Classes for the inner <input> element (useful when prefix/suffix are present). */
|
|
8
|
+
inputClass?: HTMLAttributes['class'];
|
|
9
|
+
/** Classes for the prefix wrapper. */
|
|
10
|
+
prefixClass?: HTMLAttributes['class'];
|
|
11
|
+
/** Classes for the suffix wrapper. */
|
|
12
|
+
suffixClass?: HTMLAttributes['class'];
|
|
13
|
+
size?: Size;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {
|
|
16
|
+
/** Content rendered inside the input's border, left of the field. */
|
|
17
|
+
prefix?: () => unknown;
|
|
18
|
+
/** Content rendered inside the input's border, right of the field. */
|
|
19
|
+
suffix?: () => unknown;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
+
"update:modelValue": (payload: string | number) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
size: Size;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=AInput.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AInput.vue.d.ts","sourceRoot":"","sources":["../../../../entries/input/components/AInput.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAiE,KAAK,IAAI,EAAE,MAAM,SAAS,CAAC;AAEnG,KAAK,WAAW,GAAG;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,2FAA2F;IAC3F,UAAU,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACrC,sCAAsC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACtC,sCAAsC;IACtC,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAWJ,KAAK,WAAW,GAAG;IACjB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IACvB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;CACxB,CAAC;AAuGF,QAAA,MAAM,UAAU;;;;;UAxHL,IAAI;6EA4Hb,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entries/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { PopoverRootProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
close: () => void;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<PopoverRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:open": (value: boolean) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<PopoverRootProps> & Readonly<{
|
|
12
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
modal: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=APopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"APopover.vue.d.ts","sourceRoot":"","sources":["../../../../entries/popover/components/APopover.vue"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA4DlE,QAAA,IAAI,OAAO;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import { type PopoverContentProps } from 'reka-ui';
|
|
3
|
+
type __VLS_Props = PopoverContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
/** Dim the entire viewport behind the popover and block all interaction with the
|
|
6
|
+
* page (clicks are captured by the overlay). Pair with `<APopover :modal="true">`
|
|
7
|
+
* (the default) for the full modal behaviour. */
|
|
8
|
+
overlay?: boolean;
|
|
9
|
+
overlayClass?: HTMLAttributes['class'];
|
|
10
|
+
/**
|
|
11
|
+
* When true, the overlay also locks page scroll via `body { overflow: hidden }`.
|
|
12
|
+
* Off by default — `AResponsivePopover` opts in to this when `scrollLock="body"`.
|
|
13
|
+
*/
|
|
14
|
+
overlayLockScroll?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_19: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_19) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
22
|
+
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
23
|
+
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
24
|
+
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
25
|
+
openAutoFocus: (event: Event) => any;
|
|
26
|
+
closeAutoFocus: (event: Event) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
29
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
30
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
31
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
32
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
33
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
sideOffset: number;
|
|
36
|
+
align: "start" | "center" | "end";
|
|
37
|
+
overlay: boolean;
|
|
38
|
+
overlayLockScroll: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=APopoverContent.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"APopoverContent.vue.d.ts","sourceRoot":"","sources":["../../../../entries/popover/components/APopoverContent.vue"],"names":[],"mappings":"AAoEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,OAAO,EAGL,KAAK,mBAAmB,EAGzB,MAAM,SAAS,CAAC;AAMjB,KAAK,WAAW,GAAG,mBAAmB,GAAG;IACnC,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC;;sDAEkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACvC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AA2FN,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;aAzGA,OAAO;uBAMG,OAAO;6EAuG/B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes['class'];
|
|
4
|
+
/**
|
|
5
|
+
* When true, set `body { overflow: hidden; touchAction: none }` for the lifetime of
|
|
6
|
+
* the overlay. Off by default because it breaks `position: sticky` on the host page.
|
|
7
|
+
* Prefer the event-based lock (see `AResponsivePopover`'s `scrollLock` prop) which
|
|
8
|
+
* keeps the page scrollbar in place.
|
|
9
|
+
*/
|
|
10
|
+
lockScroll?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
lockScroll: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=APopoverOverlay.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"APopoverOverlay.vue.d.ts","sourceRoot":"","sources":["../../../../entries/popover/components/APopoverOverlay.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAM1C,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAyEJ,QAAA,MAAM,YAAY;gBA1ED,OAAO;6EA6EtB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PopoverTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<PopoverTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=APopoverTrigger.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"APopoverTrigger.vue.d.ts","sourceRoot":"","sources":["../../../../entries/popover/components/APopoverTrigger.vue"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA6CnD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kTAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter, type Ref } from 'vue';
|
|
2
|
+
export interface UseEventScrollLockOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Element(s) inside the popover whose internal scroll should be preserved.
|
|
5
|
+
* Events whose target is inside one of these are allowed to scroll the
|
|
6
|
+
* element (subject to boundary clamping); everything else is preventDefault'd.
|
|
7
|
+
*/
|
|
8
|
+
allowedScrollContainer: MaybeRefOrGetter<HTMLElement | HTMLElement[] | null | undefined>;
|
|
9
|
+
/** Lock activates when this becomes true and tears down when false. */
|
|
10
|
+
active: Ref<boolean> | (() => boolean);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Sticky-safe scroll lock: prevents page scroll by intercepting wheel/touch/key
|
|
14
|
+
* events at `document` capture phase, instead of mutating `body { overflow }`.
|
|
15
|
+
* The page scrollbar stays visible and `position: sticky` keeps working.
|
|
16
|
+
*
|
|
17
|
+
* Pass the element(s) whose own scroll should still work (e.g. a popover's
|
|
18
|
+
* inner search list) as `allowedScrollContainer`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useEventScrollLock(opts: UseEventScrollLockOptions): void;
|
|
21
|
+
//# sourceMappingURL=useEventScrollLock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEventScrollLock.d.ts","sourceRoot":"","sources":["../../../../entries/popover/composables/useEventScrollLock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,gBAAgB,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAEvF,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,sBAAsB,EAAE,gBAAgB,CAAC,WAAW,GAAG,WAAW,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACzF,uEAAuE;IACvE,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,OAAO,CAAC,CAAC;CACxC;AAwHD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAqDxE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as APopover } from './components/APopover.vue';
|
|
2
|
+
export { default as APopoverTrigger } from './components/APopoverTrigger.vue';
|
|
3
|
+
export { default as APopoverContent } from './components/APopoverContent.vue';
|
|
4
|
+
export { default as APopoverOverlay } from './components/APopoverOverlay.vue';
|
|
5
|
+
export { useEventScrollLock, type UseEventScrollLockOptions, } from './composables/useEventScrollLock';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entries/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,GAC/B,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type ScrollLockMode = 'events' | 'body' | 'none';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** CSS media query for the desktop break. Below this width we render a vaul drawer. */
|
|
4
|
+
breakpoint?: string;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated prefer `scrollLock`. Kept for back-compat: `modal=false` is a shorthand
|
|
7
|
+
* for `scrollLock="none"` (tooltip-style popover). `modal=true` (default) defers to
|
|
8
|
+
* `scrollLock`, which controls how page scroll is blocked.
|
|
9
|
+
*/
|
|
10
|
+
modal?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* How desktop page scroll is blocked while the popover is open:
|
|
13
|
+
* - `'events'` (default) — wheel/touch/keyboard intercepted at document level.
|
|
14
|
+
* Page scrollbar stays visible; `position: sticky` keeps working.
|
|
15
|
+
* - `'body'` — legacy `document.body.style.overflow='hidden'` lock. Use when the
|
|
16
|
+
* page must reflow as the scrollbar goes away.
|
|
17
|
+
* - `'none'` — no page-scroll lock at all.
|
|
18
|
+
*
|
|
19
|
+
* Drawer (mobile) branch is unaffected — vaul-vue owns its own lock.
|
|
20
|
+
*/
|
|
21
|
+
scrollLock?: ScrollLockMode;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_ModelProps = {
|
|
24
|
+
'open'?: boolean;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
27
|
+
declare var __VLS_8: {
|
|
28
|
+
isDesktop: boolean;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_Slots = {} & {
|
|
31
|
+
default?: (props: typeof __VLS_8) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:open": (value: boolean | undefined) => any;
|
|
35
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
modal: boolean;
|
|
39
|
+
breakpoint: string;
|
|
40
|
+
scrollLock: ScrollLockMode;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
43
|
+
declare const _default: typeof __VLS_export;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=AResponsivePopover.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AResponsivePopover.vue.d.ts","sourceRoot":"","sources":["../../../../entries/responsive-popover/components/AResponsivePopover.vue"],"names":[],"mappings":"AA4EA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAExD,KAAK,WAAW,GAAG;IACf,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B,CAAC;AAkCJ,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA0CxD,QAAA,IAAI,OAAO;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;;;;;WAvGJ,OAAO;gBANF,MAAM;gBAiBN,cAAc;6EAgG7B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
breakpoint?: string;
|
|
4
|
+
/** Classes applied on both branches. Avoid width / inset classes here. */
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
/** Classes applied only when the popover (desktop) branch is rendered. */
|
|
7
|
+
popoverClass?: HTMLAttributes['class'];
|
|
8
|
+
/** Classes applied only when the drawer (mobile) branch is rendered. */
|
|
9
|
+
drawerClass?: HTMLAttributes['class'];
|
|
10
|
+
/**
|
|
11
|
+
* Render the dimmed overlay on the desktop popover branch. Defaults to `false` — popovers
|
|
12
|
+
* on desktop are non-modal-looking by convention. The mobile drawer always has its own
|
|
13
|
+
* overlay (vaul-vue's `DrawerOverlay`) regardless of this prop.
|
|
14
|
+
*/
|
|
15
|
+
overlay?: boolean;
|
|
16
|
+
align?: 'start' | 'center' | 'end';
|
|
17
|
+
sideOffset?: number;
|
|
18
|
+
};
|
|
19
|
+
declare var __VLS_8: {}, __VLS_17: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
default?: (props: typeof __VLS_8) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_17) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
|
+
sideOffset: number;
|
|
27
|
+
align: "start" | "center" | "end";
|
|
28
|
+
overlay: boolean;
|
|
29
|
+
breakpoint: string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=AResponsivePopoverContent.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AResponsivePopoverContent.vue.d.ts","sourceRoot":"","sources":["../../../../entries/responsive-popover/components/AResponsivePopoverContent.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAO1C,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,0EAA0E;IAC1E,YAAY,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACvC,wEAAwE;IACxE,WAAW,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAuHJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAMhD,QAAA,MAAM,UAAU;gBAjIC,MAAM;WADX,OAAO,GAAG,QAAQ,GAAG,KAAK;aADxB,OAAO;gBAZJ,MAAM;6EAkJrB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
breakpoint?: string;
|
|
3
|
+
asChild?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
breakpoint: string;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=AResponsivePopoverTrigger.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AResponsivePopoverTrigger.vue.d.ts","sourceRoot":"","sources":["../../../../entries/responsive-popover/components/AResponsivePopoverTrigger.vue"],"names":[],"mappings":"AA+BA,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AA6CJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU;gBAtDC,MAAM;6EAyDrB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { ScrollLockMode } from '../components/AResponsivePopover.vue';
|
|
3
|
+
export interface ResponsivePopoverContext {
|
|
4
|
+
open: ComputedRef<boolean>;
|
|
5
|
+
isDesktop: ComputedRef<boolean>;
|
|
6
|
+
scrollLock: ComputedRef<ScrollLockMode>;
|
|
7
|
+
}
|
|
8
|
+
export declare function provideResponsivePopoverContext(ctx: ResponsivePopoverContext): void;
|
|
9
|
+
export declare function useResponsivePopoverContext(): ResponsivePopoverContext | null;
|
|
10
|
+
//# sourceMappingURL=useResponsivePopoverContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResponsivePopoverContext.d.ts","sourceRoot":"","sources":["../../../../entries/responsive-popover/composables/useResponsivePopoverContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,WAAW,EAAqB,MAAM,KAAK,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC,UAAU,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;CACzC;AAMD,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,wBAAwB,QAE5E;AAED,wBAAgB,2BAA2B,IAAI,wBAAwB,GAAG,IAAI,CAE7E"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as AResponsivePopover } from './components/AResponsivePopover.vue';
|
|
2
|
+
export { default as AResponsivePopoverTrigger } from './components/AResponsivePopoverTrigger.vue';
|
|
3
|
+
export { default as AResponsivePopoverContent } from './components/AResponsivePopoverContent.vue';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entries/responsive-popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
import { type FlagUrlBuilder } from '../utils/flag-url';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
/** ISO 3166-1 alpha-2 country code, case-insensitive. */
|
|
5
|
+
iso2: string;
|
|
6
|
+
/** Pixel width served by flagcdn. 40 is crisp at retina up to ~24px wide. */
|
|
7
|
+
width?: number;
|
|
8
|
+
/** Optional explicit URL override. When set, `iso2` / `width` / `flagUrl` are ignored. */
|
|
9
|
+
src?: string | null;
|
|
10
|
+
/** Function `(iso2, width) => string` — fully replace the URL builder. */
|
|
11
|
+
flagUrl?: FlagUrlBuilder;
|
|
12
|
+
alt?: string;
|
|
13
|
+
class?: HTMLAttributes['class'];
|
|
14
|
+
};
|
|
15
|
+
declare var __VLS_1: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
empty?: (props: typeof __VLS_1) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
width: number;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ACountryFlag.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ACountryFlag.vue.d.ts","sourceRoot":"","sources":["../../../../entries/tell-input/components/ACountryFlag.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAG1C,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExE,KAAK,WAAW,GAAG;IACf,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACjC,CAAC;AA+EJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAM7C,QAAA,MAAM,UAAU;WA9FJ,MAAM;6EAiGhB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|