@wow-two-beta/fe 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/AuthSession.d.ts +25 -1
- package/dist/auth/AuthSession.js.map +1 -1
- package/dist/auth/BffSession.d.ts +55 -0
- package/dist/auth/BffSession.js +73 -0
- package/dist/auth/BffSession.js.map +1 -0
- package/dist/auth/BffSessionSync.d.ts +57 -0
- package/dist/auth/BffSessionSync.js +160 -0
- package/dist/auth/BffSessionSync.js.map +1 -0
- package/dist/auth/BffStrategy.d.ts +53 -0
- package/dist/auth/BffStrategy.js +95 -0
- package/dist/auth/BffStrategy.js.map +1 -0
- package/dist/auth/RedirectStrategy.js +3 -6
- package/dist/auth/RedirectStrategy.js.map +1 -1
- package/dist/auth/ReturnUrlExtensions.d.ts +7 -0
- package/dist/auth/ReturnUrlExtensions.js +15 -0
- package/dist/auth/ReturnUrlExtensions.js.map +1 -0
- package/dist/auth/UseBffAuth.d.ts +31 -0
- package/dist/auth/UseBffAuth.js +39 -0
- package/dist/auth/UseBffAuth.js.map +1 -0
- package/dist/auth/index.d.ts +5 -1
- package/dist/auth/index.js +11 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/providers/AuthProvider.vue.js +74 -5
- package/dist/auth/providers/AuthProvider.vue.js.map +1 -1
- package/dist/foundation/http/Antiforgery.d.ts +5 -0
- package/dist/foundation/http/Antiforgery.js.map +1 -1
- package/dist/foundation/http/CreateApiClient.js +1 -1
- package/dist/foundation/http/CreateApiClient.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/presentation/overlays/alertModal/AlertModalContent.vue.js +1 -0
- package/dist/presentation/overlays/alertModal/AlertModalContent.vue.js.map +1 -1
- package/dist/presentation/overlays/index.js +2 -1
- package/dist/presentation/overlays/modal/ModalContent.vue.d.ts +17 -0
- package/dist/presentation/overlays/modal/ModalContent.vue.js +23 -2
- package/dist/presentation/overlays/modal/ModalContent.vue.js.map +1 -1
- package/dist/presentation/overlays/modal/ModalContent2.vue.js +2 -1
- package/dist/presentation/overlays/modal/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ import { default as default142, DescriptionGroupDensity, DescriptionGroupLayout
|
|
|
146
146
|
import { default as default143, default as default144, ModalRole } from "./presentation/overlays/modal/Modal.vue.js";
|
|
147
147
|
import { default as default145, default as default146, default as default147 } from "./presentation/overlays/OverlayBody.vue.js";
|
|
148
148
|
import { default as default148, default as default149, default as default150 } from "./presentation/overlays/OverlayCloseButton.vue.js";
|
|
149
|
-
import { default as default151, default as default152, ModalPhoneLayout, ModalSize } from "./presentation/overlays/modal/ModalContent.vue.js";
|
|
149
|
+
import { default as default151, default as default152, ModalHeight, ModalPhoneLayout, ModalSize } from "./presentation/overlays/modal/ModalContent.vue.js";
|
|
150
150
|
import { default as default153, default as default154, default as default155 } from "./presentation/overlays/OverlayFooter.vue.js";
|
|
151
151
|
import { default as default156, default as default157, default as default158 } from "./presentation/overlays/OverlayHeader.vue.js";
|
|
152
152
|
import { default as default159, default as default160 } from "./presentation/overlays/modal/ModalTrigger.vue.js";
|
|
@@ -868,6 +868,7 @@ export {
|
|
|
868
868
|
default54 as ModalDescription,
|
|
869
869
|
default155 as ModalFooter,
|
|
870
870
|
default158 as ModalHeader,
|
|
871
|
+
ModalHeight,
|
|
871
872
|
ModalPhoneLayout,
|
|
872
873
|
ModalRole,
|
|
873
874
|
ModalSize,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertModalContent.vue.js","sources":["../../../../src/presentation/overlays/alertModal/AlertModalContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ModalContentProps } from '../modal';\n\n/** The prop surface of `AlertModalContent` — `ModalContent`'s, with `phoneLayout` defaulting to `sheet`. */\nexport type AlertModalContentProps = ModalContentProps;\n</script>\n\n<script setup lang=\"ts\">\nimport { resolveElement } from '../../../foundation/dom';\nimport { computed, useAttrs, useTemplateRef, type ComponentPublicInstance } from 'vue';\nimport ModalContent, { ModalPhoneLayout } from '../modal/ModalContent.vue';\n\n/**\n * Renders the alert dialog's panel — `ModalContent`, opening as a bottom sheet on phones; the alert semantics live\n * on the root.\n */\ndefineOptions({ name: 'AlertModalContent', inheritAttrs: false });\n\n/** The panel content — chrome subcomponents and the dialog body. React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\n/* Absent booleans stay `undefined`: a cast `false` would forward `showBackdrop: false` and drop the scrim. */\nconst props = withDefaults(defineProps<AlertModalContentProps>(), {\n showBackdrop: undefined,\n hideBackdrop: undefined,\n isBlurred: undefined,\n phoneLayout: ModalPhoneLayout.Sheet,\n showHandle: undefined,\n});\n\nconst attrs = useAttrs();\nconst inner = useTemplateRef<ComponentPublicInstance & { el?: unknown }>('inner');\n\n/** Declared props first, attrs (including `class`) after, so a caller's attribute wins — React's spread order. */\nconst forwarded = computed(() => ({ ...props, ...attrs }));\n\nconst el = computed(() => resolveElement(inner.value));\n\ndefineExpose({ el });\n</script>\n\n<template>\n <ModalContent ref=\"inner\" v-bind=\"forwarded\"><slot /></ModalContent>\n</template>\n"],"names":["_openBlock","_createBlock","ModalContent","_mergeProps","_renderSlot"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AlertModalContent.vue.js","sources":["../../../../src/presentation/overlays/alertModal/AlertModalContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ModalContentProps } from '../modal';\n\n/** The prop surface of `AlertModalContent` — `ModalContent`'s, with `phoneLayout` defaulting to `sheet`. */\nexport type AlertModalContentProps = ModalContentProps;\n</script>\n\n<script setup lang=\"ts\">\nimport { resolveElement } from '../../../foundation/dom';\nimport { computed, useAttrs, useTemplateRef, type ComponentPublicInstance } from 'vue';\nimport ModalContent, { ModalPhoneLayout } from '../modal/ModalContent.vue';\n\n/**\n * Renders the alert dialog's panel — `ModalContent`, opening as a bottom sheet on phones; the alert semantics live\n * on the root.\n */\ndefineOptions({ name: 'AlertModalContent', inheritAttrs: false });\n\n/** The panel content — chrome subcomponents and the dialog body. React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\n/* Absent booleans stay `undefined`: a cast `false` would forward `showBackdrop: false` and drop the scrim. */\nconst props = withDefaults(defineProps<AlertModalContentProps>(), {\n showBackdrop: undefined,\n hideBackdrop: undefined,\n isBlurred: undefined,\n phoneLayout: ModalPhoneLayout.Sheet,\n showHandle: undefined,\n});\n\nconst attrs = useAttrs();\nconst inner = useTemplateRef<ComponentPublicInstance & { el?: unknown }>('inner');\n\n/** Declared props first, attrs (including `class`) after, so a caller's attribute wins — React's spread order. */\nconst forwarded = computed(() => ({ ...props, ...attrs }));\n\nconst el = computed(() => resolveElement(inner.value));\n\ndefineExpose({ el });\n</script>\n\n<template>\n <ModalContent ref=\"inner\" v-bind=\"forwarded\"><slot /></ModalContent>\n</template>\n"],"names":["_openBlock","_createBlock","ModalContent","_mergeProps","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,UAAM,QAAQ;AAQd,UAAM,QAAQ,SAAA;AACd,UAAM,QAAQ,eAA2D,OAAO;AAGhF,UAAM,YAAY,SAAS,OAAO,EAAE,GAAG,OAAO,GAAG,QAAQ;AAEzD,UAAM,KAAK,SAAS,MAAM,eAAe,MAAM,KAAK,CAAC;AAErD,aAAa,EAAE,IAAI;;AAIjB,aAAAA,UAAA,GAAAC,YAAoEC,aAApEC,WAAoE;AAAA,iBAAlD;AAAA,QAAJ,KAAI;AAAA,MAAA,GAAgB,UAAA,KAAS,GAAA;AAAA,yBAAE,MAAQ;AAAA,UAARC,WAAQ,KAAA,QAAA,SAAA;AAAA,QAAA;;;;;;"}
|
|
@@ -22,7 +22,7 @@ import { default as default32 } from "./confirmPopover/ConfirmPopover.vue.js";
|
|
|
22
22
|
import { default as default33, default as default34, ModalRole } from "./modal/Modal.vue.js";
|
|
23
23
|
import { default as default35, default as default36, default as default37 } from "./OverlayBody.vue.js";
|
|
24
24
|
import { default as default38, default as default39, default as default40 } from "./OverlayCloseButton.vue.js";
|
|
25
|
-
import { default as default41, default as default42, ModalPhoneLayout, ModalSize } from "./modal/ModalContent.vue.js";
|
|
25
|
+
import { default as default41, default as default42, ModalHeight, ModalPhoneLayout, ModalSize } from "./modal/ModalContent.vue.js";
|
|
26
26
|
import { default as default43, default as default44, default as default45 } from "./OverlayFooter.vue.js";
|
|
27
27
|
import { default as default46, default as default47, default as default48 } from "./OverlayHeader.vue.js";
|
|
28
28
|
import { default as default49, default as default50 } from "./modal/ModalTrigger.vue.js";
|
|
@@ -98,6 +98,7 @@ export {
|
|
|
98
98
|
default19 as ModalDescription,
|
|
99
99
|
default45 as ModalFooter,
|
|
100
100
|
default48 as ModalHeader,
|
|
101
|
+
ModalHeight,
|
|
101
102
|
ModalPhoneLayout,
|
|
102
103
|
ModalRole,
|
|
103
104
|
ModalSize,
|
|
@@ -13,6 +13,17 @@ export declare const ModalSize: {
|
|
|
13
13
|
readonly Full: "full";
|
|
14
14
|
};
|
|
15
15
|
export type ModalSize = (typeof ModalSize)[keyof typeof ModalSize];
|
|
16
|
+
/** Defines how tall a `ModalContent` panel is; either way it never outgrows the window. */
|
|
17
|
+
export declare const ModalHeight: {
|
|
18
|
+
/** Refers to a panel that fits its content — a confirm, an alert, a short prompt settled when it opens. */
|
|
19
|
+
readonly Auto: "auto";
|
|
20
|
+
/**
|
|
21
|
+
* Refers to a panel held at the height paired with its `size` step, whatever its content: a streamed progress, a
|
|
22
|
+
* list that loads, a multi-step flow. The body scrolls; the frame never moves.
|
|
23
|
+
*/
|
|
24
|
+
readonly Fixed: "fixed";
|
|
25
|
+
};
|
|
26
|
+
export type ModalHeight = (typeof ModalHeight)[keyof typeof ModalHeight];
|
|
16
27
|
/** Defines how a `ModalContent` panel lays out below the `sm` breakpoint; from `sm` up it is the centred card. */
|
|
17
28
|
export declare const ModalPhoneLayout: {
|
|
18
29
|
/** Refers to a panel that fills the screen — header on top, a scrolling body, the footer pinned to the bottom. */
|
|
@@ -41,6 +52,11 @@ export interface ModalContentProps {
|
|
|
41
52
|
readonly isBlurred?: boolean;
|
|
42
53
|
/** The panel's max-width step; a `max-w-*` class still overrides it. Default `md`. */
|
|
43
54
|
readonly size?: ModalSize;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the panel fits its content or holds the height paired with `size`: `sm` 24rem · `md` 32rem · `lg` 40rem ·
|
|
57
|
+
* `xl` 48rem · `full` the window. Either way it caps at the window and its body scrolls. Default `auto`.
|
|
58
|
+
*/
|
|
59
|
+
readonly height?: ModalHeight;
|
|
44
60
|
/** The visual recipe. Default `elevated`. */
|
|
45
61
|
readonly variant?: SurfaceVariant;
|
|
46
62
|
/** The color tone the recipe is tinted with. */
|
|
@@ -63,6 +79,7 @@ declare const _default: __VLS_WithSlots<import('vue').DefineComponent<ModalConte
|
|
|
63
79
|
el: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
64
80
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ModalContentProps> & Readonly<{}>, {
|
|
65
81
|
readonly size: ModalSize;
|
|
82
|
+
readonly height: ModalHeight;
|
|
66
83
|
readonly phoneLayout: ModalPhoneLayout;
|
|
67
84
|
readonly showBackdrop: boolean;
|
|
68
85
|
readonly hideBackdrop: boolean;
|
|
@@ -10,7 +10,7 @@ import { Presence } from "../../../foundation/primitives/presence/Presence.js";
|
|
|
10
10
|
import _sfc_main$4 from "../../../foundation/primitives/focusScope/FocusScope.vue.js";
|
|
11
11
|
import _sfc_main$5 from "../../../foundation/primitives/dismissableLayer/DismissableLayer.vue.js";
|
|
12
12
|
const _hoisted_1 = ["data-phone-layout"];
|
|
13
|
-
const _hoisted_2 = ["role", "aria-labelledby", "aria-describedby", "data-phone-layout"];
|
|
13
|
+
const _hoisted_2 = ["role", "aria-labelledby", "aria-describedby", "data-phone-layout", "data-height"];
|
|
14
14
|
const _hoisted_3 = {
|
|
15
15
|
key: 1,
|
|
16
16
|
"aria-hidden": "true",
|
|
@@ -33,6 +33,15 @@ const ModalSize = {
|
|
|
33
33
|
/** Refers to a panel that spans the window, inside its gutter. */
|
|
34
34
|
Full: "full"
|
|
35
35
|
};
|
|
36
|
+
const ModalHeight = {
|
|
37
|
+
/** Refers to a panel that fits its content — a confirm, an alert, a short prompt settled when it opens. */
|
|
38
|
+
Auto: "auto",
|
|
39
|
+
/**
|
|
40
|
+
* Refers to a panel held at the height paired with its `size` step, whatever its content: a streamed progress, a
|
|
41
|
+
* list that loads, a multi-step flow. The body scrolls; the frame never moves.
|
|
42
|
+
*/
|
|
43
|
+
Fixed: "fixed"
|
|
44
|
+
};
|
|
36
45
|
const ModalPhoneLayout = {
|
|
37
46
|
/** Refers to a panel that fills the screen — header on top, a scrolling body, the footer pinned to the bottom. */
|
|
38
47
|
Fullscreen: "fullscreen",
|
|
@@ -48,6 +57,13 @@ const ModalSizeClass = {
|
|
|
48
57
|
xl: "max-w-4xl",
|
|
49
58
|
full: "max-w-none"
|
|
50
59
|
};
|
|
60
|
+
const ModalFixedHeightClass = {
|
|
61
|
+
sm: "h-[min(24rem,calc(100dvh-2rem))]",
|
|
62
|
+
md: "h-[min(32rem,calc(100dvh-2rem))]",
|
|
63
|
+
lg: "h-[min(40rem,calc(100dvh-2rem))]",
|
|
64
|
+
xl: "h-[min(48rem,calc(100dvh-2rem))]",
|
|
65
|
+
full: "h-[calc(100dvh-2rem)]"
|
|
66
|
+
};
|
|
51
67
|
const LayerPhoneClass = {
|
|
52
68
|
fullscreen: "max-sm:place-items-stretch max-sm:p-0",
|
|
53
69
|
sheet: "max-sm:items-end max-sm:justify-items-stretch max-sm:p-0",
|
|
@@ -94,6 +110,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
110
|
hideBackdrop: { type: Boolean, default: void 0 },
|
|
95
111
|
isBlurred: { type: Boolean },
|
|
96
112
|
size: { default: "md" },
|
|
113
|
+
height: { default: ModalHeight.Auto },
|
|
97
114
|
variant: {},
|
|
98
115
|
tone: {},
|
|
99
116
|
radius: {},
|
|
@@ -140,6 +157,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
157
|
/* The panel never outgrows the window: it caps at the viewport and its body scrolls under a fixed header and
|
|
141
158
|
footer. A panel without a body part scrolls whole. */
|
|
142
159
|
"flex max-h-[calc(100dvh-2rem)] flex-col overflow-y-auto overscroll-contain",
|
|
160
|
+
/* A fixed panel keeps its height while its content streams in or changes step; the body takes the free height. */
|
|
161
|
+
props.height === ModalHeight.Fixed && ModalFixedHeightClass[props.size],
|
|
143
162
|
PanelMotionClass[props.phoneLayout],
|
|
144
163
|
surfaceVariants({
|
|
145
164
|
variant: props.variant ?? "elevated",
|
|
@@ -240,7 +259,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
240
259
|
"aria-modal": "true",
|
|
241
260
|
"aria-labelledby": unref(context).titleId,
|
|
242
261
|
"aria-describedby": unref(context).descriptionId,
|
|
243
|
-
"data-phone-layout": props.phoneLayout
|
|
262
|
+
"data-phone-layout": props.phoneLayout,
|
|
263
|
+
"data-height": props.height
|
|
244
264
|
}, rest.value, {
|
|
245
265
|
class: classes.value,
|
|
246
266
|
style: dragStyle.value
|
|
@@ -281,6 +301,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
281
301
|
}
|
|
282
302
|
});
|
|
283
303
|
export {
|
|
304
|
+
ModalHeight,
|
|
284
305
|
ModalPhoneLayout,
|
|
285
306
|
ModalSize,
|
|
286
307
|
_sfc_main as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalContent.vue.js","sources":["../../../../src/presentation/overlays/modal/ModalContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport {\n cn,\n type SurfaceElevation,\n type SurfacePadding,\n type SurfaceRadius,\n type SurfaceTone,\n type SurfaceVariant,\n} from '../../../foundation/styles';\n\n/** Defines the max-width step of a `ModalContent` panel. */\nexport const ModalSize = {\n /** Refers to a narrow panel (24rem) — confirmations and short prompts. */\n Sm: 'sm',\n /** Refers to the default panel (32rem). */\n Md: 'md',\n /** Refers to a wide panel (42rem) — forms with paired fields. */\n Lg: 'lg',\n /** Refers to an extra-wide panel (56rem) — tables and multi-column forms. */\n Xl: 'xl',\n /** Refers to a panel that spans the window, inside its gutter. */\n Full: 'full',\n} as const;\n\nexport type ModalSize = (typeof ModalSize)[keyof typeof ModalSize];\n\n/** Defines how a `ModalContent` panel lays out below the `sm` breakpoint; from `sm` up it is the centred card. */\nexport const ModalPhoneLayout = {\n /** Refers to a panel that fills the screen — header on top, a scrolling body, the footer pinned to the bottom. */\n Fullscreen: 'fullscreen',\n /** Refers to a sheet docked to the bottom edge, rounded on top, that slides up. */\n Sheet: 'sheet',\n /** Refers to the centred card, as on wider screens. */\n Card: 'card',\n} as const;\n\nexport type ModalPhoneLayout = (typeof ModalPhoneLayout)[keyof typeof ModalPhoneLayout];\n\nconst ModalSizeClass: Record<ModalSize, string> = {\n sm: 'max-w-sm',\n md: 'max-w-lg',\n lg: 'max-w-2xl',\n xl: 'max-w-4xl',\n full: 'max-w-none',\n};\n\n/* The layer, frame and panel classes per phone layout. Each is prefixed `max-sm:`, so wider screens keep the card. */\nconst LayerPhoneClass: Record<ModalPhoneLayout, string> = {\n fullscreen: 'max-sm:place-items-stretch max-sm:p-0',\n sheet: 'max-sm:items-end max-sm:justify-items-stretch max-sm:p-0',\n card: '',\n};\n\nconst FramePhoneClass: Record<ModalPhoneLayout, string> = {\n fullscreen: 'max-sm:justify-items-stretch',\n sheet: 'max-sm:justify-items-stretch',\n card: '',\n};\n\n/* A wrapping `<form>` joins the fullscreen column, so its `ModalBody` takes the free height and the footer pins. */\nconst PanelPhoneClass: Record<ModalPhoneLayout, string> = {\n fullscreen: cn(\n 'max-sm:h-dvh max-sm:max-h-dvh max-sm:w-full max-sm:max-w-none max-sm:rounded-none',\n 'max-sm:[--ui-overlay-inset-top:env(safe-area-inset-top)]',\n 'max-sm:[&>form]:flex max-sm:[&>form]:min-h-0 max-sm:[&>form]:flex-1 max-sm:[&>form]:flex-col',\n ),\n sheet: 'max-sm:w-full max-sm:max-w-none max-sm:rounded-t-2xl max-sm:rounded-b-none',\n card: '',\n};\n\n/* Phones rise from the bottom edge; the card keeps its pop wherever it shows. */\nconst PanelMotionClass: Record<ModalPhoneLayout, string> = {\n fullscreen: cn(\n 'sm:motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'sm:motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'max-sm:motion-safe:group-data-[state=open]:animate-(--animate-sheet-in)',\n 'max-sm:motion-safe:group-data-[state=closed]:animate-(--animate-sheet-out)',\n ),\n sheet: cn(\n 'sm:motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'sm:motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'max-sm:motion-safe:group-data-[state=open]:animate-(--animate-sheet-in)',\n 'max-sm:motion-safe:group-data-[state=closed]:animate-(--animate-sheet-out)',\n ),\n card: cn(\n 'motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n ),\n};\n\n/** The drag past which a released sheet handle dismisses: this many pixels, or a third of the sheet if shorter. */\nconst HandleDismissDistance = 96;\n\n/**\n * Represents the prop surface of `ModalContent`.\n *\n * React declared the surface axes by `extends SurfaceLayoutVariants`; they are\n * spelled out here because the SFC compiler's type resolver cannot follow a\n * `VariantProps<typeof …>` base and fails the build on it. The aliases below\n * are the canonical ones from `foundation/styles`, already locked against the\n * `surfaceVariants` config there, so the two cannot drift.\n */\nexport interface ModalContentProps {\n /** Shows the default backdrop behind the panel. Default `true`. */\n readonly showBackdrop?: boolean;\n /** @deprecated Use `showBackdrop` (inverted); this alias is removed next release. */\n readonly hideBackdrop?: boolean;\n\n /** The backdrop-blur toggle. */\n readonly isBlurred?: boolean;\n\n /** The panel's max-width step; a `max-w-*` class still overrides it. Default `md`. */\n readonly size?: ModalSize;\n\n /** The visual recipe. Default `elevated`. */\n readonly variant?: SurfaceVariant;\n\n /** The color tone the recipe is tinted with. */\n readonly tone?: SurfaceTone;\n\n /** The corner rounding. Default `lg`. */\n readonly radius?: SurfaceRadius;\n\n /** The inner spacing step. Default `xl`. */\n readonly padding?: SurfacePadding;\n\n /** The shadow depth. */\n readonly elevation?: SurfaceElevation;\n\n /** The layout below the `sm` breakpoint; wider screens always get the centred card. Default `fullscreen`. */\n readonly phoneLayout?: ModalPhoneLayout;\n\n /**\n * Shows a grab handle on a phone `sheet`. Dragging it down dismisses the dialog where outside clicks may, and\n * springs back where they may not. Default `false`.\n */\n readonly showHandle?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, shallowRef, useAttrs, useTemplateRef, watch } from 'vue';\nimport { surfaceVariants } from '../../../foundation/styles';\nimport { DismissableLayer, FocusScope, Portal, Presence, ScrollLockProvider } from '../../../foundation/primitives';\nimport BackdropOverlay from '../backdropOverlay/BackdropOverlay.vue';\nimport { overlayChromeContextKey } from '../OverlayChrome';\nimport { useModalContext } from './Modal.vue';\n\n/** Renders the portalled dialog surface — scrim, focus trap, scroll lock, and the a11y panel. */\ndefineOptions({ name: 'ModalContent', inheritAttrs: false });\n\n/** The panel content — chrome subcomponents and the dialog body. React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<ModalContentProps>(), {\n size: 'md',\n showBackdrop: undefined,\n hideBackdrop: undefined,\n phoneLayout: ModalPhoneLayout.Fullscreen,\n showHandle: false,\n});\n\n/** `showBackdrop` first, then the inverted deprecated `hideBackdrop`. */\nconst hasBackdrop = computed(() => props.showBackdrop ?? !(props.hideBackdrop ?? false));\n\nconst attrs = useAttrs();\nconst context = useModalContext();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/* Refs lifted to setup consts so the template auto-unwraps them (a plain injected object does not). */\nconst isOpen = context.open;\nconst role = context.role;\nconst dismissOnEscape = context.dismissOnEscape;\n\nfunction close(): void {\n context.setOpen(false);\n}\n\nprovide(overlayChromeContextKey, {\n titleId: context.titleId,\n descriptionId: context.descriptionId,\n close,\n});\n\n/* Safe-area spacers keep content clear of the notch and the home indicator; they collapse from `sm` up. */\nconst hasBottomInset = computed(() => props.phoneLayout !== ModalPhoneLayout.Card);\nconst hasTopInset = computed(() => props.phoneLayout === ModalPhoneLayout.Fullscreen);\nconst hasHandle = computed(() => props.showHandle && props.phoneLayout === ModalPhoneLayout.Sheet);\n\nconst layerClasses = computed(() =>\n cn(\n 'ui-modal-layer group fixed inset-0 z-modal grid place-items-center overflow-y-auto p-4',\n 'motion-safe:data-[state=open]:animate-(--animate-fade-in)',\n 'motion-safe:data-[state=closed]:animate-(--animate-fade-out)',\n LayerPhoneClass[props.phoneLayout],\n ),\n);\n\nconst frameClasses = computed(() =>\n cn('ui-modal-frame grid w-full justify-items-center', FramePhoneClass[props.phoneLayout]),\n);\n\nconst classes = computed(() =>\n cn(\n 'ui-modal-content relative w-full',\n ModalSizeClass[props.size],\n /* The panel never outgrows the window: it caps at the viewport and its body scrolls under a fixed header and\n footer. A panel without a body part scrolls whole. */\n 'flex max-h-[calc(100dvh-2rem)] flex-col overflow-y-auto overscroll-contain',\n PanelMotionClass[props.phoneLayout],\n surfaceVariants({\n variant: props.variant ?? 'elevated',\n tone: props.tone,\n radius: props.radius ?? 'lg',\n padding: props.padding ?? 'xl',\n elevation: props.elevation,\n }),\n attrs.class as string | undefined,\n /* Last, so a caller's width, height or radius serves the card and the phone layout still fills the screen. */\n PanelPhoneClass[props.phoneLayout],\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\n/* The sheet handle drag. The offset rides on the panel's transform; a release past the distance closes the dialog,\n and the exit keyframe leaves from that offset. Anything shorter springs back. */\nconst dragOffset = shallowRef(0);\nconst isDragging = shallowRef(false);\nlet dragPointer: { readonly id: number; readonly startY: number } | null = null;\n\nwatch(isOpen, (open) => {\n if (open) dragOffset.value = 0;\n});\n\nconst dragStyle = computed(() =>\n hasHandle.value\n ? {\n transform: dragOffset.value > 0 ? `translateY(${dragOffset.value}px)` : undefined,\n transition: isDragging.value ? 'none' : 'transform var(--duration-base) var(--ease-out)',\n }\n : undefined,\n);\n\nfunction handlePointerDown(event: PointerEvent): void {\n if (event.button !== 0) return;\n dragPointer = { id: event.pointerId, startY: event.clientY };\n isDragging.value = true;\n try {\n (event.currentTarget as HTMLElement).setPointerCapture(event.pointerId);\n } catch {\n /* A synthetic or already-released pointer has nothing to capture; the drag still tracks moves on the handle. */\n }\n}\n\nfunction handlePointerMove(event: PointerEvent): void {\n if (dragPointer?.id !== event.pointerId) return;\n dragOffset.value = Math.max(0, event.clientY - dragPointer.startY);\n}\n\nfunction handlePointerEnd(event: PointerEvent): void {\n if (dragPointer?.id !== event.pointerId) return;\n dragPointer = null;\n isDragging.value = false;\n const height = el.value?.offsetHeight ?? 0;\n const distance = Math.min(HandleDismissDistance, height / 3);\n if (event.type === 'pointerup' && dragOffset.value > distance && context.dismissOnOutsideClick.value) {\n context.setOpen(false);\n return;\n }\n dragOffset.value = 0;\n}\n\n/** Outside-click dismissal — `.self` is React's `e.target !== e.currentTarget` guard. */\nfunction handleOutsideClick(): void {\n if (context.dismissOnOutsideClick.value) context.setOpen(false);\n}\n\nfunction handleEscape(): void {\n context.setOpen(false);\n}\n\ndefineExpose({ el });\n</script>\n\n<template>\n <Portal>\n <!-- Lock follows open state, not mount — Content can mount closed. -->\n <ScrollLockProvider :is-enabled=\"isOpen\">\n <!-- The scrim runs on `BackdropOverlay`'s own `Presence` (its `isOpen` prop) so the\n fade-out plays before it unmounts. React wrapped it in a second, outer\n `Presence`, whose injected `data-state` the inner one then overwrote —\n passing the state straight in is the same intent without the masking. -->\n <BackdropOverlay v-if=\"hasBackdrop\" is-inline :is-open=\"isOpen\" :is-blurred=\"props.isBlurred\" />\n <!-- Outside-click dismissal lives on the centering wrapper (it covers the\n backdrop): a click on the padding (`.self`) = outside. The wrapper is the\n Presence-animated node — `Presence` injects `data-state` + `ref` onto it and\n watches *its own* animations (no subtree walk), so the wrapper carries a\n (transparent) fade and the visible pop lands on the panel via\n `group-data-[state=*]`. Both share the same token timing, so the wrapper fade\n gates unmount correctly. -->\n <Presence :is-present=\"isOpen\">\n <div :class=\"layerClasses\" :data-phone-layout=\"props.phoneLayout\" @click.self=\"handleOutsideClick\">\n <!-- The layer is the grid item, so it spans the window's width: a shrink-wrapped layer would hold the\n panel's `w-full` to its content width. It centers the panel in turn. -->\n <FocusScope as-child is-trapped can-loop is-modal>\n <DismissableLayer\n :class=\"frameClasses\"\n :is-escape-disabled=\"!dismissOnEscape\"\n is-outside-click-disabled\n :on-escape=\"handleEscape\"\n >\n <div\n ref=\"el\"\n :role=\"role\"\n aria-modal=\"true\"\n :aria-labelledby=\"context.titleId\"\n :aria-describedby=\"context.descriptionId\"\n :data-phone-layout=\"props.phoneLayout\"\n v-bind=\"rest\"\n :class=\"classes\"\n :style=\"dragStyle\"\n >\n <div\n v-if=\"hasHandle\"\n data-modal-handle\n aria-hidden=\"true\"\n class=\"absolute inset-x-0 top-0 z-raised flex h-6 cursor-grab touch-none justify-center pt-2 sm:hidden\"\n @pointerdown=\"handlePointerDown\"\n @pointermove=\"handlePointerMove\"\n @pointerup=\"handlePointerEnd\"\n @pointercancel=\"handlePointerEnd\"\n >\n <span class=\"h-1 w-10 rounded-full bg-border-strong forced-colors:bg-[CanvasText]\" />\n </div>\n <span\n v-if=\"hasTopInset\"\n aria-hidden=\"true\"\n class=\"block h-[env(safe-area-inset-top)] shrink-0 sm:hidden\"\n />\n <slot />\n <span\n v-if=\"hasBottomInset\"\n aria-hidden=\"true\"\n class=\"block h-[env(safe-area-inset-bottom)] shrink-0 sm:hidden\"\n />\n </div>\n </DismissableLayer>\n </FocusScope>\n </div>\n </Presence>\n </ScrollLockProvider>\n </Portal>\n</template>\n"],"names":["_createBlock","_unref","Portal","_createVNode","ScrollLockProvider","BackdropOverlay","_createElementVNode","FocusScope","DismissableLayer","_mergeProps","_createElementBlock","_openBlock","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,YAAY;AAAA;AAAA,EAEvB,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,MAAM;AACR;AAKO,MAAM,mBAAmB;AAAA;AAAA,EAE9B,YAAY;AAAA;AAAA,EAEZ,OAAO;AAAA;AAAA,EAEP,MAAM;AACR;AAIA,MAAM,iBAA4C;AAAA,EAChD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AACR;AAGA,MAAM,kBAAoD;AAAA,EACxD,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR;AAEA,MAAM,kBAAoD;AAAA,EACxD,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR;AAGA,MAAM,kBAAoD;AAAA,EACxD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA,EACP,MAAM;AACR;AAGA,MAAM,mBAAqD;AAAA,EACzD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,EAAA;AAEJ;AAGA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;AA+D9B,UAAM,QAAQ;AASd,UAAM,cAAc,SAAS,MAAM,MAAM,gBAAgB,EAAE,MAAM,gBAAgB,MAAM;AAEvF,UAAM,QAAQ,SAAA;AACd,UAAM,UAAU,gBAAA;AAChB,UAAM,KAAK,eAA+B,IAAI;AAG9C,UAAM,SAAS,QAAQ;AACvB,UAA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AqF,QAAA,EAA/E,OAAM,uEAAA,GAAsE,MAAA,EAAA;AAAA,8BAAA;8BAG5E,YAAA,SADRK,UAAA,GAAAD,mBAIE,QAJF,UAIE;8BACFE,WAAQ,KAAA,QAAA,SAAA;AAAA,8BAEA,eAAA,SADRD,UAAA,GAAAD,mBAIE,QAJF,UAIE;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ModalContent.vue.js","sources":["../../../../src/presentation/overlays/modal/ModalContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport {\n cn,\n type SurfaceElevation,\n type SurfacePadding,\n type SurfaceRadius,\n type SurfaceTone,\n type SurfaceVariant,\n} from '../../../foundation/styles';\n\n/** Defines the max-width step of a `ModalContent` panel. */\nexport const ModalSize = {\n /** Refers to a narrow panel (24rem) — confirmations and short prompts. */\n Sm: 'sm',\n /** Refers to the default panel (32rem). */\n Md: 'md',\n /** Refers to a wide panel (42rem) — forms with paired fields. */\n Lg: 'lg',\n /** Refers to an extra-wide panel (56rem) — tables and multi-column forms. */\n Xl: 'xl',\n /** Refers to a panel that spans the window, inside its gutter. */\n Full: 'full',\n} as const;\n\nexport type ModalSize = (typeof ModalSize)[keyof typeof ModalSize];\n\n/** Defines how tall a `ModalContent` panel is; either way it never outgrows the window. */\nexport const ModalHeight = {\n /** Refers to a panel that fits its content — a confirm, an alert, a short prompt settled when it opens. */\n Auto: 'auto',\n /**\n * Refers to a panel held at the height paired with its `size` step, whatever its content: a streamed progress, a\n * list that loads, a multi-step flow. The body scrolls; the frame never moves.\n */\n Fixed: 'fixed',\n} as const;\n\nexport type ModalHeight = (typeof ModalHeight)[keyof typeof ModalHeight];\n\n/** Defines how a `ModalContent` panel lays out below the `sm` breakpoint; from `sm` up it is the centred card. */\nexport const ModalPhoneLayout = {\n /** Refers to a panel that fills the screen — header on top, a scrolling body, the footer pinned to the bottom. */\n Fullscreen: 'fullscreen',\n /** Refers to a sheet docked to the bottom edge, rounded on top, that slides up. */\n Sheet: 'sheet',\n /** Refers to the centred card, as on wider screens. */\n Card: 'card',\n} as const;\n\nexport type ModalPhoneLayout = (typeof ModalPhoneLayout)[keyof typeof ModalPhoneLayout];\n\nconst ModalSizeClass: Record<ModalSize, string> = {\n sm: 'max-w-sm',\n md: 'max-w-lg',\n lg: 'max-w-2xl',\n xl: 'max-w-4xl',\n full: 'max-w-none',\n};\n\n/* The fixed height paired with each width step, capped at the window like the panel itself. */\nconst ModalFixedHeightClass: Record<ModalSize, string> = {\n sm: 'h-[min(24rem,calc(100dvh-2rem))]',\n md: 'h-[min(32rem,calc(100dvh-2rem))]',\n lg: 'h-[min(40rem,calc(100dvh-2rem))]',\n xl: 'h-[min(48rem,calc(100dvh-2rem))]',\n full: 'h-[calc(100dvh-2rem)]',\n};\n\n/* The layer, frame and panel classes per phone layout. Each is prefixed `max-sm:`, so wider screens keep the card. */\nconst LayerPhoneClass: Record<ModalPhoneLayout, string> = {\n fullscreen: 'max-sm:place-items-stretch max-sm:p-0',\n sheet: 'max-sm:items-end max-sm:justify-items-stretch max-sm:p-0',\n card: '',\n};\n\nconst FramePhoneClass: Record<ModalPhoneLayout, string> = {\n fullscreen: 'max-sm:justify-items-stretch',\n sheet: 'max-sm:justify-items-stretch',\n card: '',\n};\n\n/* A wrapping `<form>` joins the fullscreen column, so its `ModalBody` takes the free height and the footer pins. */\nconst PanelPhoneClass: Record<ModalPhoneLayout, string> = {\n fullscreen: cn(\n 'max-sm:h-dvh max-sm:max-h-dvh max-sm:w-full max-sm:max-w-none max-sm:rounded-none',\n 'max-sm:[--ui-overlay-inset-top:env(safe-area-inset-top)]',\n 'max-sm:[&>form]:flex max-sm:[&>form]:min-h-0 max-sm:[&>form]:flex-1 max-sm:[&>form]:flex-col',\n ),\n sheet: 'max-sm:w-full max-sm:max-w-none max-sm:rounded-t-2xl max-sm:rounded-b-none',\n card: '',\n};\n\n/* Phones rise from the bottom edge; the card keeps its pop wherever it shows. */\nconst PanelMotionClass: Record<ModalPhoneLayout, string> = {\n fullscreen: cn(\n 'sm:motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'sm:motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'max-sm:motion-safe:group-data-[state=open]:animate-(--animate-sheet-in)',\n 'max-sm:motion-safe:group-data-[state=closed]:animate-(--animate-sheet-out)',\n ),\n sheet: cn(\n 'sm:motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'sm:motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'max-sm:motion-safe:group-data-[state=open]:animate-(--animate-sheet-in)',\n 'max-sm:motion-safe:group-data-[state=closed]:animate-(--animate-sheet-out)',\n ),\n card: cn(\n 'motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n ),\n};\n\n/** The drag past which a released sheet handle dismisses: this many pixels, or a third of the sheet if shorter. */\nconst HandleDismissDistance = 96;\n\n/**\n * Represents the prop surface of `ModalContent`.\n *\n * React declared the surface axes by `extends SurfaceLayoutVariants`; they are\n * spelled out here because the SFC compiler's type resolver cannot follow a\n * `VariantProps<typeof …>` base and fails the build on it. The aliases below\n * are the canonical ones from `foundation/styles`, already locked against the\n * `surfaceVariants` config there, so the two cannot drift.\n */\nexport interface ModalContentProps {\n /** Shows the default backdrop behind the panel. Default `true`. */\n readonly showBackdrop?: boolean;\n /** @deprecated Use `showBackdrop` (inverted); this alias is removed next release. */\n readonly hideBackdrop?: boolean;\n\n /** The backdrop-blur toggle. */\n readonly isBlurred?: boolean;\n\n /** The panel's max-width step; a `max-w-*` class still overrides it. Default `md`. */\n readonly size?: ModalSize;\n\n /**\n * Whether the panel fits its content or holds the height paired with `size`: `sm` 24rem · `md` 32rem · `lg` 40rem ·\n * `xl` 48rem · `full` the window. Either way it caps at the window and its body scrolls. Default `auto`.\n */\n readonly height?: ModalHeight;\n\n /** The visual recipe. Default `elevated`. */\n readonly variant?: SurfaceVariant;\n\n /** The color tone the recipe is tinted with. */\n readonly tone?: SurfaceTone;\n\n /** The corner rounding. Default `lg`. */\n readonly radius?: SurfaceRadius;\n\n /** The inner spacing step. Default `xl`. */\n readonly padding?: SurfacePadding;\n\n /** The shadow depth. */\n readonly elevation?: SurfaceElevation;\n\n /** The layout below the `sm` breakpoint; wider screens always get the centred card. Default `fullscreen`. */\n readonly phoneLayout?: ModalPhoneLayout;\n\n /**\n * Shows a grab handle on a phone `sheet`. Dragging it down dismisses the dialog where outside clicks may, and\n * springs back where they may not. Default `false`.\n */\n readonly showHandle?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, shallowRef, useAttrs, useTemplateRef, watch } from 'vue';\nimport { surfaceVariants } from '../../../foundation/styles';\nimport { DismissableLayer, FocusScope, Portal, Presence, ScrollLockProvider } from '../../../foundation/primitives';\nimport BackdropOverlay from '../backdropOverlay/BackdropOverlay.vue';\nimport { overlayChromeContextKey } from '../OverlayChrome';\nimport { useModalContext } from './Modal.vue';\n\n/** Renders the portalled dialog surface — scrim, focus trap, scroll lock, and the a11y panel. */\ndefineOptions({ name: 'ModalContent', inheritAttrs: false });\n\n/** The panel content — chrome subcomponents and the dialog body. React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<ModalContentProps>(), {\n size: 'md',\n height: ModalHeight.Auto,\n showBackdrop: undefined,\n hideBackdrop: undefined,\n phoneLayout: ModalPhoneLayout.Fullscreen,\n showHandle: false,\n});\n\n/** `showBackdrop` first, then the inverted deprecated `hideBackdrop`. */\nconst hasBackdrop = computed(() => props.showBackdrop ?? !(props.hideBackdrop ?? false));\n\nconst attrs = useAttrs();\nconst context = useModalContext();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/* Refs lifted to setup consts so the template auto-unwraps them (a plain injected object does not). */\nconst isOpen = context.open;\nconst role = context.role;\nconst dismissOnEscape = context.dismissOnEscape;\n\nfunction close(): void {\n context.setOpen(false);\n}\n\nprovide(overlayChromeContextKey, {\n titleId: context.titleId,\n descriptionId: context.descriptionId,\n close,\n});\n\n/* Safe-area spacers keep content clear of the notch and the home indicator; they collapse from `sm` up. */\nconst hasBottomInset = computed(() => props.phoneLayout !== ModalPhoneLayout.Card);\nconst hasTopInset = computed(() => props.phoneLayout === ModalPhoneLayout.Fullscreen);\nconst hasHandle = computed(() => props.showHandle && props.phoneLayout === ModalPhoneLayout.Sheet);\n\nconst layerClasses = computed(() =>\n cn(\n 'ui-modal-layer group fixed inset-0 z-modal grid place-items-center overflow-y-auto p-4',\n 'motion-safe:data-[state=open]:animate-(--animate-fade-in)',\n 'motion-safe:data-[state=closed]:animate-(--animate-fade-out)',\n LayerPhoneClass[props.phoneLayout],\n ),\n);\n\nconst frameClasses = computed(() =>\n cn('ui-modal-frame grid w-full justify-items-center', FramePhoneClass[props.phoneLayout]),\n);\n\nconst classes = computed(() =>\n cn(\n 'ui-modal-content relative w-full',\n ModalSizeClass[props.size],\n /* The panel never outgrows the window: it caps at the viewport and its body scrolls under a fixed header and\n footer. A panel without a body part scrolls whole. */\n 'flex max-h-[calc(100dvh-2rem)] flex-col overflow-y-auto overscroll-contain',\n /* A fixed panel keeps its height while its content streams in or changes step; the body takes the free height. */\n props.height === ModalHeight.Fixed && ModalFixedHeightClass[props.size],\n PanelMotionClass[props.phoneLayout],\n surfaceVariants({\n variant: props.variant ?? 'elevated',\n tone: props.tone,\n radius: props.radius ?? 'lg',\n padding: props.padding ?? 'xl',\n elevation: props.elevation,\n }),\n attrs.class as string | undefined,\n /* Last, so a caller's width, height or radius serves the card and the phone layout still fills the screen. */\n PanelPhoneClass[props.phoneLayout],\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\n/* The sheet handle drag. The offset rides on the panel's transform; a release past the distance closes the dialog,\n and the exit keyframe leaves from that offset. Anything shorter springs back. */\nconst dragOffset = shallowRef(0);\nconst isDragging = shallowRef(false);\nlet dragPointer: { readonly id: number; readonly startY: number } | null = null;\n\nwatch(isOpen, (open) => {\n if (open) dragOffset.value = 0;\n});\n\nconst dragStyle = computed(() =>\n hasHandle.value\n ? {\n transform: dragOffset.value > 0 ? `translateY(${dragOffset.value}px)` : undefined,\n transition: isDragging.value ? 'none' : 'transform var(--duration-base) var(--ease-out)',\n }\n : undefined,\n);\n\nfunction handlePointerDown(event: PointerEvent): void {\n if (event.button !== 0) return;\n dragPointer = { id: event.pointerId, startY: event.clientY };\n isDragging.value = true;\n try {\n (event.currentTarget as HTMLElement).setPointerCapture(event.pointerId);\n } catch {\n /* A synthetic or already-released pointer has nothing to capture; the drag still tracks moves on the handle. */\n }\n}\n\nfunction handlePointerMove(event: PointerEvent): void {\n if (dragPointer?.id !== event.pointerId) return;\n dragOffset.value = Math.max(0, event.clientY - dragPointer.startY);\n}\n\nfunction handlePointerEnd(event: PointerEvent): void {\n if (dragPointer?.id !== event.pointerId) return;\n dragPointer = null;\n isDragging.value = false;\n const height = el.value?.offsetHeight ?? 0;\n const distance = Math.min(HandleDismissDistance, height / 3);\n if (event.type === 'pointerup' && dragOffset.value > distance && context.dismissOnOutsideClick.value) {\n context.setOpen(false);\n return;\n }\n dragOffset.value = 0;\n}\n\n/** Outside-click dismissal — `.self` is React's `e.target !== e.currentTarget` guard. */\nfunction handleOutsideClick(): void {\n if (context.dismissOnOutsideClick.value) context.setOpen(false);\n}\n\nfunction handleEscape(): void {\n context.setOpen(false);\n}\n\ndefineExpose({ el });\n</script>\n\n<template>\n <Portal>\n <!-- Lock follows open state, not mount — Content can mount closed. -->\n <ScrollLockProvider :is-enabled=\"isOpen\">\n <!-- The scrim runs on `BackdropOverlay`'s own `Presence` (its `isOpen` prop) so the\n fade-out plays before it unmounts. React wrapped it in a second, outer\n `Presence`, whose injected `data-state` the inner one then overwrote —\n passing the state straight in is the same intent without the masking. -->\n <BackdropOverlay v-if=\"hasBackdrop\" is-inline :is-open=\"isOpen\" :is-blurred=\"props.isBlurred\" />\n <!-- Outside-click dismissal lives on the centering wrapper (it covers the\n backdrop): a click on the padding (`.self`) = outside. The wrapper is the\n Presence-animated node — `Presence` injects `data-state` + `ref` onto it and\n watches *its own* animations (no subtree walk), so the wrapper carries a\n (transparent) fade and the visible pop lands on the panel via\n `group-data-[state=*]`. Both share the same token timing, so the wrapper fade\n gates unmount correctly. -->\n <Presence :is-present=\"isOpen\">\n <div :class=\"layerClasses\" :data-phone-layout=\"props.phoneLayout\" @click.self=\"handleOutsideClick\">\n <!-- The layer is the grid item, so it spans the window's width: a shrink-wrapped layer would hold the\n panel's `w-full` to its content width. It centers the panel in turn. -->\n <FocusScope as-child is-trapped can-loop is-modal>\n <DismissableLayer\n :class=\"frameClasses\"\n :is-escape-disabled=\"!dismissOnEscape\"\n is-outside-click-disabled\n :on-escape=\"handleEscape\"\n >\n <div\n ref=\"el\"\n :role=\"role\"\n aria-modal=\"true\"\n :aria-labelledby=\"context.titleId\"\n :aria-describedby=\"context.descriptionId\"\n :data-phone-layout=\"props.phoneLayout\"\n :data-height=\"props.height\"\n v-bind=\"rest\"\n :class=\"classes\"\n :style=\"dragStyle\"\n >\n <div\n v-if=\"hasHandle\"\n data-modal-handle\n aria-hidden=\"true\"\n class=\"absolute inset-x-0 top-0 z-raised flex h-6 cursor-grab touch-none justify-center pt-2 sm:hidden\"\n @pointerdown=\"handlePointerDown\"\n @pointermove=\"handlePointerMove\"\n @pointerup=\"handlePointerEnd\"\n @pointercancel=\"handlePointerEnd\"\n >\n <span class=\"h-1 w-10 rounded-full bg-border-strong forced-colors:bg-[CanvasText]\" />\n </div>\n <span\n v-if=\"hasTopInset\"\n aria-hidden=\"true\"\n class=\"block h-[env(safe-area-inset-top)] shrink-0 sm:hidden\"\n />\n <slot />\n <span\n v-if=\"hasBottomInset\"\n aria-hidden=\"true\"\n class=\"block h-[env(safe-area-inset-bottom)] shrink-0 sm:hidden\"\n />\n </div>\n </DismissableLayer>\n </FocusScope>\n </div>\n </Presence>\n </ScrollLockProvider>\n </Portal>\n</template>\n"],"names":["_createBlock","_unref","Portal","_createVNode","ScrollLockProvider","BackdropOverlay","_createElementVNode","FocusScope","DismissableLayer","_mergeProps","_createElementBlock","_openBlock","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,YAAY;AAAA;AAAA,EAEvB,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,MAAM;AACR;AAKO,MAAM,cAAc;AAAA;AAAA,EAEzB,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,EAKN,OAAO;AACT;AAKO,MAAM,mBAAmB;AAAA;AAAA,EAE9B,YAAY;AAAA;AAAA,EAEZ,OAAO;AAAA;AAAA,EAEP,MAAM;AACR;AAIA,MAAM,iBAA4C;AAAA,EAChD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AACR;AAGA,MAAM,wBAAmD;AAAA,EACvD,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,MAAM;AACR;AAGA,MAAM,kBAAoD;AAAA,EACxD,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR;AAEA,MAAM,kBAAoD;AAAA,EACxD,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,MAAM;AACR;AAGA,MAAM,kBAAoD;AAAA,EACxD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA,EACP,MAAM;AACR;AAGA,MAAM,mBAAqD;AAAA,EACzD,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,OAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,EAAA;AAEJ;AA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AAA,8BAC1B,qBAAmB,MAAM;AAAA,8BACzB,eAAa,MAAM;AAAA,4BAAA,GACZ,KAAA,OAAI;AAAA,8BACX,OAAO,QAAA;AAAA,8BACP,OAAO,UAAA;AAAA,4BAAA;8BAGA,UAAA,sBADRS,mBAWM,OAAA;AAAA;gCATJ,qBAAA;AAAA,gCACA,eAAY;AAAA,gCACZ,OAAM;AAAA,gCACL,eAAa;AAAA,gCACb,eAAa;AAAA,gCACb,aAAW;AAAA,gCACX,iBAAe;AAAA,8BAAA;gCAEhBJ,mBAAqF,QAAA,EAA/E,OAAM,uEAAA,GAAsE,MAAA,EAAA;AAAA,8BAAA;8BAG5E,YAAA,SADRK,UAAA,GAAAD,mBAIE,QAJF,UAIE;8BACFE,WAAQ,KAAA,QAAA,SAAA;AAAA,8BAEA,eAAA,SADRD,UAAA,GAAAD,mBAIE,QAJF,UAIE;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ModalContent.vue.js";
|
|
2
|
-
import { ModalPhoneLayout, ModalSize } from "./ModalContent.vue.js";
|
|
2
|
+
import { ModalHeight, ModalPhoneLayout, ModalSize } from "./ModalContent.vue.js";
|
|
3
3
|
export {
|
|
4
|
+
ModalHeight,
|
|
4
5
|
ModalPhoneLayout,
|
|
5
6
|
ModalSize,
|
|
6
7
|
_sfc_main as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as Modal, ModalRole, type ModalProps } from './Modal.vue';
|
|
2
2
|
export { default as ModalTrigger, type ModalTriggerProps } from './ModalTrigger.vue';
|
|
3
|
-
export { default as ModalContent, ModalPhoneLayout, ModalSize, type ModalContentProps } from './ModalContent.vue';
|
|
3
|
+
export { default as ModalContent, ModalHeight, ModalPhoneLayout, ModalSize, type ModalContentProps, } from './ModalContent.vue';
|
|
4
4
|
export { default as ModalHeader } from '../OverlayHeader.vue';
|
|
5
5
|
export { default as ModalTitle } from '../OverlayTitle.vue';
|
|
6
6
|
export { default as ModalDescription } from '../OverlayDescription.vue';
|
package/package.json
CHANGED