@plexui/vue 0.42.15 → 0.42.17

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../../src/components/Tip/Tip.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,CAAC,EACD,MAAM,EACN,OAAO,EACP,eAAe,EACf,OAAO,EACP,GAAG,EACH,KAAK,GAMN,MAAM,KAAK,CAAA;AACZ,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,YAAY,IAAI,gBAAgB,EAChC,cAAc,IAAI,kBAAkB,EACpC,aAAa,IAAI,iBAAiB,EAClC,WAAW,IAAI,eAAe,EAC9B,KAAK,GACN,MAAM,SAAS,CAAA;AAChB,OAAO,CAAC,MAAM,8CAA8C,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAA;AACpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAoBvD,0GAA0G;AAC1G,MAAM,UAAU,GAAG,CAAC,OAAoB,EAAE,KAAY,EAAE,EAAE;IACxD,MAAM,KAAK,GAAe,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAA;IACrE,MAAM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xE,kBAAkB,EAAE,YAAY;qCACjC,EACD;wCACE,OAAO,EAAE,GAAG,EAAE,CAAC;4CACb,UAAU,CACR;gDACE,KAAK,EAAE,KAAK,CAAC,KAAK;gDAClB,WAAW,EAAE,KAAK,CAAC,WAAW;gDAC9B,aAAa,EAAE,KAAK,CAAC,aAAa;gDAClC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;gDAC7D,OAAO;gDACP,aAAa;6CACd,EACD,KAAK,CACN;4CACD,CAAC,CAAC,gBAAgB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC;yCAChH;qCACF,CACF;oCACH,CAAC,CAAC,kBAAkB,EAAE;6BACzB;yBACF,CACF;qBACF;iBACF,CAAC;aACH;SACF,CACF,CAAA;IACL,CAAC;CACF,CAAC,CAAA;AAEF,0GAA0G;AAC1G,2FAA2F;AAC3F,MAAM,CAAC,MAAM,GAAG,GAAyD,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;IACnG,OAAO,EAAE,UAAU;CACpB,CAAC,CAAA","sourcesContent":["import clsx from \"clsx\"\nimport {\n computed,\n createCommentVNode,\n defineComponent,\n h,\n inject,\n markRaw,\n onBeforeUnmount,\n provide,\n ref,\n watch,\n type InjectionKey,\n type PropType,\n type Slots,\n type VNodeArrayChildren,\n type VNodeChild,\n} from \"vue\"\nimport {\n PopoverAnchor as RekaPopoverAnchor,\n PopoverArrow as RekaPopoverArrow,\n PopoverContent as RekaPopoverContent,\n PopoverPortal as RekaPopoverPortal,\n PopoverRoot as RekaPopoverRoot,\n useId,\n} from \"reka-ui\"\nimport s from \"@plexui/styles/components/Tip/Tip.module.css\"\nimport { useEscCloseStack } from \"../../composables/useEscCloseStack.js\"\nimport { preventDefaultHandler } from \"../../lib/helpers.js\"\nimport { hasContent } from \"../../lib/slotContent.js\"\nimport { Button } from \"../Button/index.js\"\nimport { X } from \"../Icon/index.js\"\nimport { useDeferredPointerDownOutside } from \"../Popover/deferredPointerDownOutside.js\"\nimport { TransitionGroup } from \"../Transition/index.js\"\nimport { overlayTiming } from \"../Transition/shared.js\"\n\n/** The edge of an inline tip that points at what it explains. */\nexport type TipArrowEdge = \"top\" | \"bottom\" | \"left\" | \"right\"\n\n/** How a tip's actions show on a phone. */\nexport type TipMobileActions = \"rows\" | \"buttons\"\n\ntype BodyOptions = {\n title?: string\n description?: string\n onClose?: () => void\n arrowEdge?: TipArrowEdge\n mobileActions?: TipMobileActions\n className?: unknown\n titleId: string\n descriptionId: string\n role?: string\n}\n\n// The tip itself, the same DOM as React's: the symbol, the title over the description, the actions, Close\nconst renderBody = (options: BodyOptions, slots: Slots) => {\n const title: VNodeChild = slots.title ? slots.title() : options.title\n const description: VNodeChild = slots.description ? slots.description() : options.description\n const icon = slots.icon?.()\n const actions = slots.actions?.()\n const hasDescription = hasContent([description as VNodeArrayChildren])\n return h(\n \"div\",\n {\n \"class\": clsx(s.Tip, options.className as string),\n \"role\": options.role,\n \"aria-labelledby\": options.role ? options.titleId : undefined,\n \"data-arrow-edge\": options.arrowEdge,\n \"data-mobile-actions\": options.mobileActions === \"buttons\" ? options.mobileActions : undefined,\n },\n [\n hasContent(icon) ? h(\"div\", { class: s.Icon }, icon) : null,\n h(\"div\", { class: s.Message }, [\n h(\"div\", { class: s.Title, id: options.titleId }, [title]),\n hasDescription ? h(\"div\", { class: s.Description, id: options.descriptionId }, [description]) : null,\n ]),\n hasContent(actions) ? h(\"div\", { class: s.Actions }, actions) : null,\n options.onClose\n ? h(\n Button,\n { \"type\": \"button\", \"onClick\": options.onClose, \"color\": \"secondary\", \"variant\": \"soft\", \"uniform\": true, \"pill\": true, \"aria-label\": \"Close tip\", \"class\": s.Close },\n { default: () => [h(X)] },\n )\n : null,\n ],\n )\n}\n\n// The ids that name and describe a popover tip\nconst TIP_POPOVER_LABELS: InjectionKey<() => { labelledBy: string, describedBy?: string }> = Symbol(\"TipPopoverLabels\")\n\n// The element Reka's content renders (`as`): Reka names its content after a trigger, and a tip has none, so the\n// tip's title names it (and its description describes it) here. Raw: Reka passes `as` through reactive props.\nconst TipPopoverElement = markRaw(\n defineComponent({\n name: \"TipPopoverElement\",\n inheritAttrs: false,\n setup(_props, { slots, attrs }) {\n const labels = inject(TIP_POPOVER_LABELS)!\n return () => {\n const rest: Record<string, unknown> = { ...attrs }\n delete rest.dir\n delete rest.forceMount\n const { labelledBy, describedBy } = labels()\n return h(\"div\", { ...rest, \"aria-labelledby\": labelledBy, \"aria-describedby\": describedBy }, slots.default?.())\n }\n },\n }),\n)\n\nconst contentProps = {\n /** The tip's title: what the feature is (or the `title` slot). */\n title: String,\n /** One or two sentences on how to use it (or the `description` slot). */\n description: String,\n /**\n * How the actions show at 767px and below: rows of text under a separator, as iOS tips show them, or the buttons\n * as given, each a full-width capsule under the message, as an iOS card that asks for a permission.\n * @default \"rows\"\n */\n mobileActions: String as PropType<TipMobileActions>,\n}\n\nconst TipComponent = defineComponent({\n name: \"Tip\",\n inheritAttrs: false,\n props: {\n ...contentProps,\n /** Shows the Close button; called when it is clicked. */\n onClose: Function as PropType<() => void>,\n /** Draws an arrow at this edge, pointing at what the tip explains (TipKit's annotation). */\n arrowEdge: String as PropType<TipArrowEdge>,\n },\n setup(props, { slots, attrs }) {\n const id = useId(undefined, \"plexui-tip\")\n return () =>\n renderBody(\n {\n ...props,\n className: attrs.class,\n titleId: `${id}-title`,\n descriptionId: `${id}-description`,\n role: \"note\",\n },\n slots,\n )\n },\n})\n\nconst TABBABLE =\n 'a[href], button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]'\n\n// What Tab can reach: no focus guards, nothing hidden (checkVisibility where the browser has it)\nconst tabbables = (root: ParentNode) =>\n [...root.querySelectorAll<HTMLElement>(TABBABLE)].filter(\n (element) =>\n element.tabIndex >= 0 &&\n !element.closest(\"[hidden], [inert], [data-radix-focus-guard], [data-reka-focus-guard]\") &&\n (typeof element.checkVisibility !== \"function\" || element.checkVisibility({ visibilityProperty: true })),\n )\n\n// The first element Tab reaches after the control, outside the tip\nconst nextAfter = (control: HTMLElement, tip: HTMLElement) =>\n tabbables(control.ownerDocument).find(\n (element) =>\n !tip.contains(element) &&\n !control.contains(element) &&\n !!(control.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING),\n )\n\n// Takes the Tab only when the focus moved\nconst focusInstead = (event: KeyboardEvent, element: HTMLElement | undefined) => {\n if (!element) return\n element.focus()\n if (element.ownerDocument.activeElement === element) event.preventDefault()\n}\n\n// A popover tip renders at the end of the page, but Tab reaches it as if it sat right after its control: from the\n// control (or its last control) Tab moves into the tip, and Shift+Tab from what follows the control moves to the\n// tip's last control. Listened for on the document, after the control's own handlers.\nconst tabIntoTip = (event: KeyboardEvent, control: HTMLElement, tip: HTMLElement) => {\n if (event.key !== \"Tab\" || event.defaultPrevented || !(event.target instanceof Node) || tip.contains(event.target)) return\n const items = tabbables(tip)\n if (event.shiftKey) {\n if (event.target === nextAfter(control, tip)) focusInstead(event, items.at(-1))\n } else if (event.target === (tabbables(control).at(-1) ?? control)) {\n focusInstead(event, items[0])\n }\n}\n\n// Shift+Tab from the tip's first control returns to the control; Tab from its last moves on to what follows it\nconst tabOutOfTip = (event: KeyboardEvent, control: HTMLElement, tip: HTMLElement) => {\n if (event.key !== \"Tab\" || event.defaultPrevented) return\n const items = tabbables(tip)\n if (event.shiftKey) {\n if (event.target === items[0]) focusInstead(event, tabbables(control).at(-1) ?? (control.tabIndex >= 0 ? control : undefined))\n } else if (event.target === items.at(-1)) {\n focusInstead(event, nextAfter(control, tip))\n }\n}\n\n/**\n * A tip anchored to a control, after TipKit's popover tip. The default slot is the control; `icon`,\n * `title`, `description` and `actions` slots fill the tip. It does not take the focus. Bind `v-model:open`.\n */\nexport const TipPopover = defineComponent({\n name: \"TipPopover\",\n inheritAttrs: false,\n props: {\n ...contentProps,\n /** Shows the tip (controlled, `v-model:open`). */\n open: { type: Boolean, default: undefined },\n /** Shows the tip at first (uncontrolled). @default false */\n defaultOpen: { type: Boolean, default: false },\n /** The side of the control the tip shows on. Turned when it does not fit. @default \"bottom\" */\n side: { type: String as PropType<\"top\" | \"right\" | \"bottom\" | \"left\">, default: \"bottom\" },\n /** The alignment against the control. @default \"center\" */\n align: { type: String as PropType<\"start\" | \"center\" | \"end\">, default: \"center\" },\n /** The distance from the control to the arrow's point, in pixels. @default 4 */\n sideOffset: { type: Number, default: 4 },\n /** Shows the Close button. @default true */\n closeButton: { type: Boolean, default: true },\n },\n emits: {\n /** Close, Escape or a press outside closes the tip. */\n \"update:open\": (open: boolean) => typeof open === \"boolean\",\n },\n setup(props, { slots, attrs, emit }) {\n const uncontrolledOpen = ref(props.defaultOpen)\n const open = computed(() => props.open ?? uncontrolledOpen.value)\n const setOpen = (next: boolean) => {\n if (props.open === undefined) uncontrolledOpen.value = next\n emit(\"update:open\", next)\n }\n const anchor = ref<{ $el?: Element } | null>(null)\n const tip = ref<{ $el?: Element } | null>(null)\n const id = useId(undefined, \"plexui-tip\")\n const titleId = `${id}-title`\n const descriptionId = `${id}-description`\n const control = () => (anchor.value?.$el instanceof HTMLElement ? anchor.value.$el : undefined)\n const tipElement = () => (tip.value?.$el instanceof HTMLElement ? tip.value.$el : undefined)\n // A press outside closes the tip on the click that completes it, as a Popover does; a press on the control\n // does not close it. The tip never takes the focus, so focus moving elsewhere does not close it either.\n const deferred = useDeferredPointerDownOutside(() => setOpen(false))\n const { reset } = deferred\n const onPointerDownOutside = (event: CustomEvent<{ originalEvent: PointerEvent }>) => {\n const target = event.detail.originalEvent.target\n if (target instanceof Node && control()?.contains(target)) {\n reset()\n event.preventDefault()\n return\n }\n deferred.onPointerDownOutside(event)\n }\n // Tab reaches the tip as if it sat right after the control: on the document, after the control's own handlers\n const onDocumentKeydown = (event: KeyboardEvent) => {\n const element = control()\n const content = tipElement()\n if (element && content) tabIntoTip(event, element, content)\n }\n let listening: Document | undefined\n const stopListening = () => {\n listening?.removeEventListener(\"keydown\", onDocumentKeydown)\n listening = undefined\n }\n watch(open, (isOpen) => {\n stopListening()\n if (!isOpen || typeof document === \"undefined\") return\n listening = control()?.ownerDocument ?? document\n listening.addEventListener(\"keydown\", onDocumentKeydown)\n }, { immediate: true, flush: \"post\" })\n onBeforeUnmount(stopListening)\n const onTipKeydown = (event: KeyboardEvent) => {\n const element = control()\n const content = tipElement()\n if (element && content) tabOutOfTip(event, element, content)\n }\n provide(TIP_POPOVER_LABELS, () => ({\n labelledBy: titleId,\n describedBy: props.description || slots.description ? descriptionId : undefined,\n }))\n watch(open, (isOpen) => { if (!isOpen) reset() })\n useEscCloseStack(open, () => setOpen(false))\n\n return () =>\n h(\n RekaPopoverRoot,\n { \"open\": open.value, \"onUpdate:open\": setOpen, \"modal\": false },\n {\n default: () => [\n h(RekaPopoverAnchor, { asChild: true, ref: anchor }, { default: () => slots.default?.() }),\n h(RekaPopoverPortal, null, {\n default: () => [\n h(\n TransitionGroup,\n { class: s.Transition, ...overlayTiming, overlay: true },\n {\n default: () => [\n open.value\n ? h(\n RekaPopoverContent,\n {\n \"key\": \"tip\",\n \"ref\": tip,\n \"forceMount\": true,\n \"as\": TipPopoverElement,\n \"class\": clsx(s.Popover, attrs.class as string),\n \"side\": props.side,\n \"align\": props.align,\n \"sideOffset\": props.sideOffset,\n // The arrow stays clear of the tip's corners\n \"arrowPadding\": 26,\n \"collisionPadding\": 16,\n \"hideWhenDetached\": true,\n \"onOpenAutoFocus\": preventDefaultHandler,\n \"onCloseAutoFocus\": preventDefaultHandler,\n \"onEscapeKeyDown\": preventDefaultHandler,\n onPointerDownOutside,\n \"onFocusOutside\": preventDefaultHandler,\n // Before Reka's focus scope, which would wrap Tab around inside the tip\n \"onKeydownCapture\": onTipKeydown,\n },\n {\n default: () => [\n renderBody(\n {\n title: props.title,\n description: props.description,\n mobileActions: props.mobileActions,\n onClose: props.closeButton ? () => setOpen(false) : undefined,\n titleId,\n descriptionId,\n },\n slots,\n ),\n h(RekaPopoverArrow, { asChild: true, width: 47, height: 13 }, { default: () => h(\"span\", { class: s.Arrow }) }),\n ],\n },\n )\n : createCommentVNode(),\n ],\n },\n ),\n ],\n }),\n ],\n },\n )\n },\n})\n\n/** A tip inside the page, after TipKit: a title, a description, an optional symbol, actions and Close. */\n// Typed explicitly so the published declaration refers to the part instead of expanding it\nexport const Tip: typeof TipComponent & { Popover: typeof TipPopover } = Object.assign(TipComponent, {\n Popover: TipPopover,\n})\n\nexport type TipProps = InstanceType<typeof TipComponent>[\"$props\"]\nexport type TipPopoverProps = InstanceType<typeof TipPopover>[\"$props\"]\n"]}
1
+ {"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../../src/components/Tip/Tip.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EACL,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,CAAC,EACD,MAAM,EACN,OAAO,EACP,eAAe,EACf,OAAO,EACP,GAAG,EACH,KAAK,GAMN,MAAM,KAAK,CAAA;AACZ,OAAO,EACL,aAAa,IAAI,iBAAiB,EAClC,YAAY,IAAI,gBAAgB,EAChC,cAAc,IAAI,kBAAkB,EACpC,aAAa,IAAI,iBAAiB,EAClC,WAAW,IAAI,eAAe,EAC9B,KAAK,GACN,MAAM,SAAS,CAAA;AAChB,OAAO,CAAC,MAAM,8CAA8C,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM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H;qCACF,CACF;oCACH,CAAC,CAAC,kBAAkB,EAAE;6BACzB;yBACF,CACF;qBACF;iBACF,CAAC;aACH;SACF,CACF,CAAA;IACL,CAAC;CACF,CAAC,CAAA;AAEF,0GAA0G;AAC1G,2FAA2F;AAC3F,MAAM,CAAC,MAAM,GAAG,GAAyD,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;IACnG,OAAO,EAAE,UAAU;CACpB,CAAC,CAAA","sourcesContent":["import clsx from \"clsx\"\nimport {\n computed,\n createCommentVNode,\n defineComponent,\n h,\n inject,\n markRaw,\n onBeforeUnmount,\n provide,\n ref,\n watch,\n type InjectionKey,\n type PropType,\n type Slots,\n type VNodeArrayChildren,\n type VNodeChild,\n} from \"vue\"\nimport {\n PopoverAnchor as RekaPopoverAnchor,\n PopoverArrow as RekaPopoverArrow,\n PopoverContent as RekaPopoverContent,\n PopoverPortal as RekaPopoverPortal,\n PopoverRoot as RekaPopoverRoot,\n useId,\n} from \"reka-ui\"\nimport s from \"@plexui/styles/components/Tip/Tip.module.css\"\nimport { useEscCloseStack } from \"../../composables/useEscCloseStack.js\"\nimport { preventDefaultHandler } from \"../../lib/helpers.js\"\nimport { hasContent } from \"../../lib/slotContent.js\"\nimport { Button } from \"../Button/index.js\"\nimport { X } from \"../Icon/index.js\"\nimport { useDeferredPointerDownOutside } from \"../Popover/deferredPointerDownOutside.js\"\nimport { TransitionGroup } from \"../Transition/index.js\"\nimport { overlayTiming } from \"../Transition/shared.js\"\n\n/** The edge of an inline tip that points at what it explains. */\nexport type TipArrowEdge = \"top\" | \"bottom\" | \"left\" | \"right\"\n\n/** How a tip's actions show on a phone. */\nexport type TipMobileActions = \"rows\" | \"buttons\"\n\ntype BodyOptions = {\n title?: string\n description?: string\n onClose?: () => void\n arrowEdge?: TipArrowEdge\n mobileActions?: TipMobileActions\n className?: unknown\n titleId: string\n descriptionId: string\n role?: string\n}\n\n// The tip itself, the same DOM as React's: the symbol, the title over the description, the actions, Close\nconst renderBody = (options: BodyOptions, slots: Slots) => {\n const title: VNodeChild = slots.title ? slots.title() : options.title\n const description: VNodeChild = slots.description ? slots.description() : options.description\n const icon = slots.icon?.()\n const actions = slots.actions?.()\n const hasDescription = hasContent([description as VNodeArrayChildren])\n return h(\n \"div\",\n {\n \"class\": clsx(s.Tip, options.className as string),\n \"role\": options.role,\n \"aria-labelledby\": options.role ? options.titleId : undefined,\n \"data-arrow-edge\": options.arrowEdge,\n \"data-mobile-actions\": options.mobileActions === \"buttons\" ? options.mobileActions : undefined,\n },\n [\n hasContent(icon) ? h(\"div\", { class: s.Icon }, icon) : null,\n h(\"div\", { class: s.Message }, [\n h(\"div\", { class: s.Title, id: options.titleId }, [title]),\n hasDescription ? h(\"div\", { class: s.Description, id: options.descriptionId }, [description]) : null,\n ]),\n hasContent(actions) ? h(\"div\", { class: s.Actions }, actions) : null,\n options.onClose\n ? h(\n Button,\n { \"type\": \"button\", \"onClick\": options.onClose, \"color\": \"secondary\", \"variant\": \"soft\", \"uniform\": true, \"pill\": true, \"aria-label\": \"Close tip\", \"class\": s.Close },\n { default: () => [h(X)] },\n )\n : null,\n ],\n )\n}\n\n// The ids that name and describe a popover tip\nconst TIP_POPOVER_LABELS: InjectionKey<() => { labelledBy: string, describedBy?: string }> = Symbol(\"TipPopoverLabels\")\n\n// The element Reka's content renders (`as`): Reka names its content after a trigger, and a tip has none, so the\n// tip's title names it (and its description describes it) here. Raw: Reka passes `as` through reactive props.\nconst TipPopoverElement = markRaw(\n defineComponent({\n name: \"TipPopoverElement\",\n inheritAttrs: false,\n setup(_props, { slots, attrs }) {\n const labels = inject(TIP_POPOVER_LABELS)!\n return () => {\n const rest: Record<string, unknown> = { ...attrs }\n delete rest.dir\n delete rest.forceMount\n const { labelledBy, describedBy } = labels()\n return h(\"div\", { ...rest, \"aria-labelledby\": labelledBy, \"aria-describedby\": describedBy }, slots.default?.())\n }\n },\n }),\n)\n\nconst contentProps = {\n /** The tip's title: what the feature is (or the `title` slot). */\n title: String,\n /** One or two sentences on how to use it (or the `description` slot). */\n description: String,\n /**\n * How the actions show at 767px and below: rows of text under a separator, as iOS tips show them, or the buttons\n * as given, each a full-width capsule under the message, as an iOS card that asks for a permission.\n * @default \"rows\"\n */\n mobileActions: String as PropType<TipMobileActions>,\n}\n\nconst TipComponent = defineComponent({\n name: \"Tip\",\n inheritAttrs: false,\n props: {\n ...contentProps,\n /** Shows the Close button; called when it is clicked. */\n onClose: Function as PropType<() => void>,\n /** Draws an arrow at this edge, pointing at what the tip explains (TipKit's annotation). */\n arrowEdge: String as PropType<TipArrowEdge>,\n },\n setup(props, { slots, attrs }) {\n const id = useId(undefined, \"plexui-tip\")\n return () =>\n renderBody(\n {\n ...props,\n className: attrs.class,\n titleId: `${id}-title`,\n descriptionId: `${id}-description`,\n role: \"note\",\n },\n slots,\n )\n },\n})\n\nconst TABBABLE =\n 'a[href], button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"]'\n\n// What Tab can reach: no focus guards, nothing hidden (checkVisibility where the browser has it)\nconst tabbables = (root: ParentNode) =>\n [...root.querySelectorAll<HTMLElement>(TABBABLE)].filter(\n (element) =>\n element.tabIndex >= 0 &&\n !element.closest(\"[hidden], [inert], [data-radix-focus-guard], [data-reka-focus-guard]\") &&\n (typeof element.checkVisibility !== \"function\" || element.checkVisibility({ visibilityProperty: true })),\n )\n\n// The first element Tab reaches after the control, outside the tip\nconst nextAfter = (control: HTMLElement, tip: HTMLElement) =>\n tabbables(control.ownerDocument).find(\n (element) =>\n !tip.contains(element) &&\n !control.contains(element) &&\n !!(control.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING),\n )\n\n// Takes the Tab only when the focus moved\nconst focusInstead = (event: KeyboardEvent, element: HTMLElement | undefined) => {\n if (!element) return\n element.focus()\n if (element.ownerDocument.activeElement === element) event.preventDefault()\n}\n\n// A popover tip renders at the end of the page, but Tab reaches it as if it sat right after its control: from the\n// control (or its last control) Tab moves into the tip, and Shift+Tab from what follows the control moves to the\n// tip's last control. Listened for on the document, after the control's own handlers.\nconst tabIntoTip = (event: KeyboardEvent, control: HTMLElement, tip: HTMLElement) => {\n if (event.key !== \"Tab\" || event.defaultPrevented || !(event.target instanceof Node) || tip.contains(event.target)) return\n const items = tabbables(tip)\n if (event.shiftKey) {\n if (event.target === nextAfter(control, tip)) focusInstead(event, items.at(-1))\n } else if (event.target === (tabbables(control).at(-1) ?? control)) {\n focusInstead(event, items[0])\n }\n}\n\n// Shift+Tab from the tip's first control returns to the control; Tab from its last moves on to what follows it\nconst tabOutOfTip = (event: KeyboardEvent, control: HTMLElement, tip: HTMLElement) => {\n if (event.key !== \"Tab\" || event.defaultPrevented) return\n const items = tabbables(tip)\n if (event.shiftKey) {\n if (event.target === items[0]) focusInstead(event, tabbables(control).at(-1) ?? (control.tabIndex >= 0 ? control : undefined))\n } else if (event.target === items.at(-1)) {\n focusInstead(event, nextAfter(control, tip))\n }\n}\n\n/**\n * A tip anchored to a control, after TipKit's popover tip. The default slot is the control; `icon`,\n * `title`, `description` and `actions` slots fill the tip. It does not take the focus. Bind `v-model:open`.\n */\nexport const TipPopover = defineComponent({\n name: \"TipPopover\",\n inheritAttrs: false,\n props: {\n ...contentProps,\n /** Shows the tip (controlled, `v-model:open`). */\n open: { type: Boolean, default: undefined },\n /** Shows the tip at first (uncontrolled). @default false */\n defaultOpen: { type: Boolean, default: false },\n /** The side of the control the tip shows on. Turned when it does not fit. @default \"bottom\" */\n side: { type: String as PropType<\"top\" | \"right\" | \"bottom\" | \"left\">, default: \"bottom\" },\n /** The alignment against the control. @default \"center\" */\n align: { type: String as PropType<\"start\" | \"center\" | \"end\">, default: \"center\" },\n /** The distance from the control to the arrow's point, in pixels. @default 4 */\n sideOffset: { type: Number, default: 4 },\n /** Shows the Close button. @default true */\n closeButton: { type: Boolean, default: true },\n /**\n * The tip's surface on a phone: `glass`, TipKit's Liquid Glass, or `solid`, the opaque elevated surface iOS draws\n * the tip on with Reduce Transparency (`--tip-popover-background`, the same shape, arrow and shadow), for a tip over\n * a photo or anything busy, where a browser's glass cannot turn its words light or dark to the picture as iOS's does.\n * @default \"glass\"\n */\n material: { type: String as PropType<\"glass\" | \"solid\">, default: \"glass\" },\n },\n emits: {\n /** Close, Escape or a press outside closes the tip. */\n \"update:open\": (open: boolean) => typeof open === \"boolean\",\n },\n setup(props, { slots, attrs, emit }) {\n const uncontrolledOpen = ref(props.defaultOpen)\n const open = computed(() => props.open ?? uncontrolledOpen.value)\n const setOpen = (next: boolean) => {\n if (props.open === undefined) uncontrolledOpen.value = next\n emit(\"update:open\", next)\n }\n const anchor = ref<{ $el?: Element } | null>(null)\n const tip = ref<{ $el?: Element } | null>(null)\n const id = useId(undefined, \"plexui-tip\")\n const titleId = `${id}-title`\n const descriptionId = `${id}-description`\n const control = () => (anchor.value?.$el instanceof HTMLElement ? anchor.value.$el : undefined)\n const tipElement = () => (tip.value?.$el instanceof HTMLElement ? tip.value.$el : undefined)\n // A press outside closes the tip on the click that completes it, as a Popover does; a press on the control\n // does not close it. The tip never takes the focus, so focus moving elsewhere does not close it either.\n const deferred = useDeferredPointerDownOutside(() => setOpen(false))\n const { reset } = deferred\n const onPointerDownOutside = (event: CustomEvent<{ originalEvent: PointerEvent }>) => {\n const target = event.detail.originalEvent.target\n if (target instanceof Node && control()?.contains(target)) {\n reset()\n event.preventDefault()\n return\n }\n deferred.onPointerDownOutside(event)\n }\n // Tab reaches the tip as if it sat right after the control: on the document, after the control's own handlers\n const onDocumentKeydown = (event: KeyboardEvent) => {\n const element = control()\n const content = tipElement()\n if (element && content) tabIntoTip(event, element, content)\n }\n let listening: Document | undefined\n const stopListening = () => {\n listening?.removeEventListener(\"keydown\", onDocumentKeydown)\n listening = undefined\n }\n watch(open, (isOpen) => {\n stopListening()\n if (!isOpen || typeof document === \"undefined\") return\n listening = control()?.ownerDocument ?? document\n listening.addEventListener(\"keydown\", onDocumentKeydown)\n }, { immediate: true, flush: \"post\" })\n onBeforeUnmount(stopListening)\n const onTipKeydown = (event: KeyboardEvent) => {\n const element = control()\n const content = tipElement()\n if (element && content) tabOutOfTip(event, element, content)\n }\n provide(TIP_POPOVER_LABELS, () => ({\n labelledBy: titleId,\n describedBy: props.description || slots.description ? descriptionId : undefined,\n }))\n watch(open, (isOpen) => { if (!isOpen) reset() })\n useEscCloseStack(open, () => setOpen(false))\n\n return () =>\n h(\n RekaPopoverRoot,\n { \"open\": open.value, \"onUpdate:open\": setOpen, \"modal\": false },\n {\n default: () => [\n h(RekaPopoverAnchor, { asChild: true, ref: anchor }, { default: () => slots.default?.() }),\n h(RekaPopoverPortal, null, {\n default: () => [\n h(\n TransitionGroup,\n { class: s.Transition, ...overlayTiming, overlay: true },\n {\n default: () => [\n open.value\n ? h(\n RekaPopoverContent,\n {\n \"key\": \"tip\",\n \"ref\": tip,\n \"forceMount\": true,\n \"as\": TipPopoverElement,\n \"class\": clsx(s.Popover, attrs.class as string),\n \"data-material\": props.material,\n \"side\": props.side,\n \"align\": props.align,\n \"sideOffset\": props.sideOffset,\n // The arrow stays clear of the tip's corners\n \"arrowPadding\": 26,\n \"collisionPadding\": 16,\n \"hideWhenDetached\": true,\n \"onOpenAutoFocus\": preventDefaultHandler,\n \"onCloseAutoFocus\": preventDefaultHandler,\n \"onEscapeKeyDown\": preventDefaultHandler,\n onPointerDownOutside,\n \"onFocusOutside\": preventDefaultHandler,\n // Before Reka's focus scope, which would wrap Tab around inside the tip\n \"onKeydownCapture\": onTipKeydown,\n },\n {\n default: () => [\n renderBody(\n {\n title: props.title,\n description: props.description,\n mobileActions: props.mobileActions,\n onClose: props.closeButton ? () => setOpen(false) : undefined,\n titleId,\n descriptionId,\n },\n slots,\n ),\n h(RekaPopoverArrow, { asChild: true, width: 47, height: 13 }, { default: () => h(\"span\", { class: s.Arrow }) }),\n ],\n },\n )\n : createCommentVNode(),\n ],\n },\n ),\n ],\n }),\n ],\n },\n )\n },\n})\n\n/** A tip inside the page, after TipKit: a title, a description, an optional symbol, actions and Close. */\n// Typed explicitly so the published declaration refers to the part instead of expanding it\nexport const Tip: typeof TipComponent & { Popover: typeof TipPopover } = Object.assign(TipComponent, {\n Popover: TipPopover,\n})\n\nexport type TipProps = InstanceType<typeof TipComponent>[\"$props\"]\nexport type TipPopoverProps = InstanceType<typeof TipPopover>[\"$props\"]\n"]}
@@ -2,7 +2,7 @@ import { Comment, computed, defineComponent, Fragment, h, inject, onBeforeUnmoun
2
2
  import s from "@plexui/styles/components/Toolbar/Toolbar.module.css";
3
3
  import { useEscCloseStack } from "../../composables/useEscCloseStack.js";
4
4
  import { Button, NavigationButton } from "../Button/index.js";
5
- import Search from "../Icon/svg/Search.js";
5
+ import SearchLg from "../Icon/svg/SearchLg.js";
6
6
  /** The background a bar draws, from its current name or an earlier one. */
7
7
  export const barBackground = (background) => background === "edge" ? "soft" : background === "solid" ? "hard" : background;
8
8
  export const TOOLBAR_HOST = Symbol("ToolbarHost");
@@ -527,7 +527,7 @@ export const ToolbarContent = defineComponent({
527
527
  "aria-expanded": open.value ? "true" : "false",
528
528
  "data-toolbar-search-trigger": "",
529
529
  "onClick": openSearch,
530
- }, () => h(Search))]),
530
+ }, () => h(SearchLg))]),
531
531
  // Android closes it with a back arrow before the field, iOS with a close after it: both stand in the layer, the
532
532
  // other platform's hidden, so the field never moves (its text and its focus stay) as the platform changes
533
533
  h(Teleport, { to: place.layer }, [
@@ -1 +1 @@
1
- {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/Toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,CAAC,EACD,MAAM,EACN,eAAe,EACf,SAAS,EACT,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,QAAQ,EACR,KAAK,GAON,MAAM,KAAK,CAAA;AACZ,OAAO,CAAC,MAAM,sDAAsD,CAAA;AACpE,OAAO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\n shallowRef,\n Teleport,\n watch,\n type ComputedRef,\n type HTMLAttributes,\n type InjectionKey,\n type PropType,\n type Ref,\n type VNode,\n} from \"vue\"\nimport s from \"@plexui/styles/components/Toolbar/Toolbar.module.css\"\nimport { useEscCloseStack } from \"../../composables/useEscCloseStack.js\"\nimport { Button, NavigationButton } from \"../Button/index.js\"\nimport Search from \"../Icon/svg/Search.js\"\n\n// Vue port of packages/ui/src/components/Toolbar/Toolbar.tsx. Exports are flat\n// (`ToolbarLeading` for `Toolbar.Leading`, ...).\n\nexport type ToolbarPlacement = \"top\" | \"bottom\"\n/**\n * Where a screen's search field stands (`ToolbarContent search`):\n * - `\"bottom\"`: the field itself, in the bar it is written in: in a bottom bar, in reach of the thumb, as iOS 26 places a\n * screen's search\n * - `\"top\"`: a search button first among the top bar's trailing actions; pressed, it grows into the field over the bar,\n * which a glass close after it closes on iOS (iOS 26 Podcasts, Files), and in the Plex Android look the bar's leading\n * action turning into a back arrow, a Sheet going full screen\n * - `\"auto\"`: the platform's place, the bottom on iOS and the top in the Plex Android look (`data-platform=\"android\"`)\n */\nexport type ToolbarSearchPlacement = \"auto\" | \"top\" | \"bottom\"\n/** Title layouts of the phone top bar. */\nexport type ToolbarTitleStyle = \"inline\" | \"large\" | \"compact-large\" | \"compact-medium\"\nexport type ToolbarTitleAlign = \"center\" | \"start\"\n/**\n * How a bar meets the content scrolled under it, after the scroll edge effect of iOS 26:\n * - `\"soft\"` (the default of a bottom bar): at the top, once content is under the bar, a blur that grows toward the top under a\n * thin veil of the canvas color, with no line, which lets go past the bar; at the bottom of a page the content stays clear\n * under and around the controls, as on native iOS 26, and a Sheet's bottom bar fades its content into the panel\n * - `\"hard\"`: an opaque bar of the canvas color with a hairline once content is under it\n * - `\"glass\"` (the default of a top bar): a translucent, blurred bar with a hairline, shown once content is under it\n * - `\"blur\"`: no fill and no line, once content is under the bar: the content blurred a little over the bar and past it,\n * and heavily toward the screen's edge\n *\n * iOS 27.2 has two scroll edges, soft and hard; glass is the bar of earlier iOS and blur an app's own.\n */\nexport type BarBackground = \"soft\" | \"hard\" | \"glass\" | \"blur\"\n/**\n * `\"solid\"` is the earlier name of `\"hard\"`: iOS has no opaque bar without a line, and it draws the line of a hard edge\n * only once content is under the bar, so at rest the two look the same.\n */\nexport type BarBackgroundAlias = \"solid\"\n/** `\"edge\"` is the earlier name of `\"soft\"`, `\"solid\"` of `\"hard\"`. */\nexport type ToolbarBackground = BarBackground | BarBackgroundAlias | \"edge\"\n\n/** The background a bar draws, from its current name or an earlier one. */\nexport const barBackground = (background: ToolbarBackground | undefined): BarBackground | undefined =>\n background === \"edge\" ? \"soft\" : background === \"solid\" ? \"hard\" : background\n\n/**\n * A surface that places phone toolbars: `Page` puts the top bar over its content\n * and reserves the space; `Dialog` puts it 16px under the Sheet's top edge.\n */\nexport type ToolbarHost = {\n kind: \"page\" | \"dialog\"\n setHeight?: (placement: ToolbarPlacement, height: number | undefined) => void\n /** Content has scrolled under the top bar, so its glass casts a shadow and a hard or glass bar shows its line. */\n scrolled?: Ref<boolean>\n /** Content continues under the bottom bar, so a hard or glass bar shows its line. */\n contentBelow?: Ref<boolean>\n /** Calls the listener with the content's scroll offset on every scroll; returns the unsubscribe. A TabBar minimizes with it. */\n subscribeScroll?: (listener: (scrollTop: number) => void) => () => void\n /** A large title asks for a place in the content; returns the release. */\n requestLargeTitleSlot?: () => () => void\n /** The place at the top of the content where a large title scrolls with it, once the content has made one. */\n largeTitleSlot?: Ref<HTMLElement | null>\n /** The place under a large title where the bar's rows stand, pinned under the bar once scrolled up to it. */\n largeTitleRowSlot?: Ref<HTMLElement | null>\n /** The rows under a large title are pinned under the bar, so its background reaches under them. */\n rowsPinned?: Ref<boolean>\n /**\n * `false` while the host has no content to keep a large title in (a Dialog without DialogBody): the title and its\n * rows stay in the bar. Otherwise the rows wait for their place, so they mount once, there.\n */\n holdsLargeTitle?: Ref<boolean>\n}\n\nexport const TOOLBAR_HOST: InjectionKey<ToolbarHost> = Symbol(\"ToolbarHost\")\n\n// The title style of the top bar, which a large title on a page needs to show itself inline once scrolled.\nconst TOOLBAR_TITLE_STYLE: InjectionKey<ComputedRef<ToolbarTitleStyle | undefined>> = Symbol(\"ToolbarTitleStyle\")\n// The bar itself, which a large title in the content marks once it has gone under the bar.\nconst TOOLBAR_ELEMENT: InjectionKey<Ref<HTMLElement | null>> = Symbol(\"ToolbarElement\")\n// The bar a part is written in: its placement, and the count of its searches that stand in the other bar\ntype ToolbarBar = { placement: () => ToolbarPlacement; searchAway: () => () => void }\nconst TOOLBAR_BAR: InjectionKey<ToolbarBar> = Symbol(\"ToolbarBar\")\n\n// The tokens of a large title a bar can set for itself, which the title in the content no longer inherits from it.\nconst LARGE_TITLE_TOKENS = [\n \"--toolbar-padding-bottom\",\n \"--toolbar-large-title-gap\",\n \"--toolbar-large-title-font-size\",\n \"--toolbar-large-title-line-height\",\n \"--toolbar-large-title-descent\",\n \"--toolbar-large-subtitle-font-size\",\n \"--toolbar-large-subtitle-line-height\",\n \"--toolbar-large-subtitle-descent\",\n]\n\n/**\n * Follows a large title in the content: it takes the large title tokens the bar sets for itself, and once its last line\n * is at the bar's bottom the bar shows it inline. Scrolling moves it; a change of layout (a wide window turning into a\n * phone's, which shows the bar and the title) or of a class or style on the bar, the content or around them measures it\n * again. A token the bar shares with the content stays inherited, so it follows the page's changes. A hidden title has\n * not gone under anything.\n */\nfunction followLargeTitle(bar: HTMLElement, heading: HTMLElement, subscribeScroll: (listener: () => void) => () => void) {\n const collapse = () => {\n const box = heading.getBoundingClientRect()\n bar.toggleAttribute(\"data-title-collapsed\", box.height > 0 && box.bottom <= bar.getBoundingClientRect().bottom)\n }\n const layout = () => {\n const own = getComputedStyle(bar)\n const place = heading.parentElement ? getComputedStyle(heading.parentElement) : undefined\n for (const token of LARGE_TITLE_TOKENS) {\n const value = own.getPropertyValue(token).trim()\n if (value && value !== place?.getPropertyValue(token).trim()) heading.style.setProperty(token, value)\n else heading.style.removeProperty(token)\n }\n collapse()\n }\n layout()\n const unsubscribe = subscribeScroll(collapse)\n const observer = typeof ResizeObserver !== \"undefined\" ? new ResizeObserver(layout) : undefined\n observer?.observe(bar)\n observer?.observe(heading)\n const mutations = typeof MutationObserver !== \"undefined\" ? new MutationObserver(layout) : undefined\n // A token reaches the bar or the content from the class or style of either or of anything around them.\n for (const start of [bar, heading.parentElement]) {\n for (let node = start; node; node = node.parentElement) mutations?.observe(node, { attributes: true, attributeFilter: [\"class\", \"style\"] })\n }\n return () => {\n unsubscribe()\n observer?.disconnect()\n mutations?.disconnect()\n bar.removeAttribute(\"data-title-collapsed\")\n for (const token of LARGE_TITLE_TOKENS) heading.style.removeProperty(token)\n }\n}\n\nconst ToolbarComponent = defineComponent({\n name: \"Toolbar\",\n props: {\n /** @default \"top\" */\n placement: { type: String as PropType<ToolbarPlacement>, default: \"top\" },\n /** Layout of `ToolbarTitle` in a top bar. @default \"inline\" */\n titleStyle: { type: String as PropType<ToolbarTitleStyle>, default: \"inline\" },\n /** Alignment of an inline title. Compact and large titles always start at the leading edge. @default \"center\" */\n titleAlign: { type: String as PropType<ToolbarTitleAlign>, default: \"center\" },\n /** How the bar meets the content scrolled under it on a phone. @default \"glass\" at the top, \"soft\" at the bottom */\n background: { type: String as PropType<ToolbarBackground>, default: undefined },\n },\n setup(props, { slots }) {\n const host = inject(TOOLBAR_HOST, null)\n provide(TOOLBAR_TITLE_STYLE, computed(() => (props.placement === \"top\" ? props.titleStyle : undefined)))\n const element = ref<HTMLElement | null>(null)\n provide(TOOLBAR_ELEMENT, element)\n // A bar that holds nothing but a search standing in the other bar (a bottom bar's field that the Plex Android look\n // puts at the top) leaves its place: it draws nothing and takes no height, and the search still renders from it.\n const searchesAway = ref(0)\n provide(TOOLBAR_BAR, {\n placement: () => props.placement,\n searchAway: () => {\n searchesAway.value += 1\n let released = false\n return () => {\n if (released) return\n released = true\n searchesAway.value -= 1\n }\n },\n })\n let observer: ResizeObserver | undefined\n let reported: ToolbarPlacement | undefined\n onMounted(() => {\n const bar = element.value\n const setHeight = host?.setHeight\n if (!bar || !setHeight) return\n // A desktop layout hides the bar; its height then leaves the host's own header in charge.\n const update = (height: number) => {\n if (reported && reported !== props.placement) setHeight(reported, undefined)\n reported = props.placement\n setHeight(props.placement, height || undefined)\n }\n if (typeof ResizeObserver === \"undefined\") {\n update(bar.offsetHeight)\n return\n }\n // The observer reports the first height too, after the layout of the frame and before its paint: a read of\n // offsetHeight on mount forced a layout while a sheet that holds the bar was being built\n observer = new ResizeObserver((entries?: ResizeObserverEntry[]) => {\n const entry = entries?.[entries.length - 1]\n const box = entry?.borderBoxSize?.[0]\n update(box ? box.blockSize : bar.offsetHeight)\n })\n observer.observe(bar, { box: \"border-box\" })\n })\n onBeforeUnmount(() => {\n observer?.disconnect()\n if (reported) host?.setHeight?.(reported, undefined)\n })\n return () => {\n const children = slots.default?.()\n // The same element, so the parts keep their state as the bar leaves and comes back; hidden, it reports no height\n if (searchesAway.value > 0 && children?.every(isSearchContent)) return h(\"div\", { \"ref\": element, \"hidden\": true, \"data-toolbar-vacant\": \"\" }, children)\n return h(\"div\", {\n \"ref\": element,\n \"class\": s.Toolbar,\n \"data-toolbar\": \"\",\n \"data-placement\": props.placement,\n \"data-title-style\": props.placement === \"top\" ? props.titleStyle : undefined,\n \"data-title-align\": props.placement === \"top\" ? props.titleAlign : undefined,\n \"data-background\": barBackground(props.background) ?? (props.placement === \"bottom\" ? \"soft\" : \"glass\"),\n \"data-host\": host?.kind,\n \"data-scrolled\": props.placement === \"top\" && host?.scrolled?.value ? \"\" : undefined,\n \"data-content-below\": props.placement === \"bottom\" && host?.contentBelow?.value ? \"\" : undefined,\n \"data-rows-pinned\": props.placement === \"top\" && host?.rowsPinned?.value ? \"\" : undefined,\n }, children)\n }\n },\n})\n\n/** Props of `Toolbar`. */\nexport type ToolbarProps = {\n placement?: ToolbarPlacement\n titleStyle?: ToolbarTitleStyle\n titleAlign?: ToolbarTitleAlign\n /** How the bar meets the content scrolled under it on a phone. @default \"glass\" at the top, \"soft\" at the bottom */\n background?: ToolbarBackground\n} & HTMLAttributes\n\n/** A phone toolbar, top or bottom. It never renders at the desktop breakpoint. */\nexport const Toolbar = ToolbarComponent as typeof ToolbarComponent & { new (): { $props: ToolbarProps } }\n\nfunction part(name: string, className: string, role?: string) {\n return defineComponent({\n name,\n setup(_, { slots }) {\n return () => h(\"div\", { class: className, role }, slots.default?.())\n },\n })\n}\n\n/** Items at the leading edge (React `Toolbar.Leading`). */\nexport const ToolbarLeading = part(\"ToolbarLeading\", s.Leading)\n/** Items at the trailing edge (React `Toolbar.Trailing`). */\nexport const ToolbarTrailing = part(\"ToolbarTrailing\", s.Trailing)\n/** Buttons that share one capsule (React `Toolbar.Group`). */\nexport const ToolbarGroup = part(\"ToolbarGroup\", s.Group, \"group\")\nconst rowOfAnchor = new WeakMap<Element, HTMLElement>()\n\n/**\n * Under a large title each row is portaled into the rows' place as it mounts, so a row that comes later (a search field\n * shown over a segmented control already there) would stand last. An empty anchor in the bar keeps the row's place among\n * the bar's rows, and the rows are moved into that order in the content, so the keyboard and a screen reader meet them\n * as they stand (Codex #7); a row added or removed in the bar orders them again.\n * (React's twin)\n */\nfunction followRowOrder(anchor: HTMLElement, row: HTMLElement) {\n const bar = anchor.closest(\"[data-toolbar]\") ?? anchor.parentElement\n if (!bar) return () => {}\n rowOfAnchor.set(anchor, row)\n const place = () => {\n const slot = row.parentElement\n if (!slot) return\n const rows = Array.from(bar.querySelectorAll(\"[data-toolbar-row-anchor]\"), (mark) => rowOfAnchor.get(mark))\n .filter((each): each is HTMLElement => each?.parentElement === slot)\n // From the last row back, a row that does not stand before the next one goes right before it: only a row out of\n // place moves (the one that came later), so a field focused in another row keeps its focus (Codex #8); moveBefore,\n // where the browser has it, keeps it even in the row that moves.\n const move = (slot as HTMLElement & { moveBefore?: (node: Node, child: Node | null) => void }).moveBefore\n for (let index = rows.length - 2; index >= 0; index--) {\n const each = rows[index]\n const next = rows[index + 1]\n if (each.compareDocumentPosition(next) & Node.DOCUMENT_POSITION_FOLLOWING) continue\n try {\n if (move) {\n move.call(slot, each, next)\n continue\n }\n } catch {\n // falls back to a plain move\n }\n slot.insertBefore(each, next)\n }\n }\n place()\n const observer = typeof MutationObserver !== \"undefined\" ? new MutationObserver(place) : undefined\n observer?.observe(bar, { childList: true, subtree: true })\n return () => {\n observer?.disconnect()\n rowOfAnchor.delete(anchor)\n }\n}\n\n/**\n * A row under the controls, part of the bar: a segmented control that switches the screen's views (a chat list's\n * folders under its bar), or a search field. It spans the bar, and a control in it fills the row; several rows stand in\n * their order (a search field over a segmented control). Under a large title on a page the rows stand under the title,\n * at the top of the content, and once scrolled up to the bar they stay pinned under its controls, as iOS 27.2 pins a\n * safeAreaBar under a large title's bar (React `Toolbar.Row`).\n */\nexport const ToolbarRow = defineComponent({\n name: \"ToolbarRow\",\n inheritAttrs: false,\n setup(_, { slots, attrs }) {\n const host = inject(TOOLBAR_HOST, null)\n const titleStyle = inject(TOOLBAR_TITLE_STYLE, null)\n // The rows go with the title: under it at the top of a page's content or a Sheet's body\n const large = computed(() => titleStyle?.value === \"large\" && !!host?.requestLargeTitleSlot)\n const slot = computed(() => (large.value ? host?.largeTitleRowSlot?.value ?? null : null))\n let release: (() => void) | undefined\n watch(large, (value) => {\n release?.()\n release = value ? host?.requestLargeTitleSlot?.() : undefined\n })\n // A watch that ran first has asked already (Codex #68)\n onMounted(() => { if (large.value && !release) release = host?.requestLargeTitleSlot?.() })\n onBeforeUnmount(() => release?.())\n const element = ref<HTMLElement | null>(null)\n const anchor = ref<HTMLElement | null>(null)\n let stopOrder: (() => void) | undefined\n watch([slot, element, anchor], ([place, row, mark]) => {\n stopOrder?.()\n stopOrder = place && row && mark ? followRowOrder(mark, row) : undefined\n }, { flush: \"post\" })\n onBeforeUnmount(() => { stopOrder?.(); stopOrder = undefined })\n return () => {\n const place = slot.value\n const row = h(\"div\", { ...attrs, \"ref\": element, \"class\": [s.Row, attrs.class], \"data-toolbar-row\": \"\", \"data-in-content\": place ? \"\" : undefined }, slots.default?.())\n // Under a large title the row waits for its place in the content, as React's does; a host with no content to\n // keep the title in (a Sheet without a body) keeps it in the bar.\n if (large.value && place) return [h(Teleport, { to: place }, [row]), h(\"span\", { \"ref\": anchor, \"data-toolbar-row-anchor\": \"\", \"hidden\": true })]\n if (large.value && host?.holdsLargeTitle?.value !== false) return null\n return row\n }\n },\n})\n\nconst ANDROID = '[data-platform=\"android\"]'\nconst TOP_BAR = '[data-toolbar][data-placement=\"top\"]'\n\n/** The places of a search at the top: its button's capsule among the bar's trailing actions, and the layer its field opens in. */\ntype SearchPlaces = { bar: HTMLElement; button: HTMLElement; layer: HTMLElement }\n\n/**\n * The top bar a search at the top stands in: the bar it is written in, or the top bar beside it (a Page's, a Sheet's),\n * looked up no further than its dialog. (React's twin)\n */\nfunction findTopBar(anchor: HTMLElement): HTMLElement | null {\n const home = anchor.parentElement\n if (home?.matches(TOP_BAR)) return home\n for (let node = home?.parentElement; node; node = node.parentElement) {\n const bar = node.querySelector<HTMLElement>(`:scope > ${TOP_BAR}`)\n if (bar) return bar\n if (node.hasAttribute(\"data-plex-dialog\")) return null\n }\n return null\n}\n\n/**\n * Makes the places of a search in the top bar and keeps them there: its button's capsule first among the bar's trailing\n * actions (in a trailing place of its own while the bar has none) and the layer over the bar its field opens in. The\n * bar's parts come and go and a page or a sheet can replace its bar: the places follow, and `onPlaces` hears of each\n * new bar. Returns the release. (React's twin)\n */\nfunction placeSearch(anchor: HTMLElement, onPlaces: (places: SearchPlaces | null) => void) {\n const doc = anchor.ownerDocument\n const make = (className: string, mark: string) => {\n const element = doc.createElement(\"div\")\n element.className = className\n element.setAttribute(mark, \"\")\n return element\n }\n const button = make(s.Group, \"data-toolbar-search-button\")\n const layer = make(s.SearchLayer, \"data-toolbar-search-layer\")\n const ownTrailing = make(s.Trailing, \"data-toolbar-search-trailing\")\n let bar: HTMLElement | null = null\n let reported: HTMLElement | null | undefined\n const leave = () => {\n bar?.removeAttribute(\"data-search\")\n bar?.removeAttribute(\"data-search-open\")\n button.remove()\n layer.remove()\n ownTrailing.remove()\n }\n const observer = typeof MutationObserver !== \"undefined\" ? new MutationObserver(() => place()) : undefined\n const place = () => {\n const next = findTopBar(anchor)\n if (next !== bar) {\n leave()\n observer?.disconnect()\n bar = next\n // The bar's own parts, and the bars beside it (a bar replaced, or one that comes later)\n for (const scope of [bar, bar?.parentElement, anchor.parentElement?.parentElement]) if (scope) observer?.observe(scope, { childList: true })\n }\n if (bar) {\n const trailing = Array.from(bar.children).find((child) => child.classList.contains(s.Trailing) && child !== ownTrailing)\n const home = trailing ?? ownTrailing\n if (home.firstElementChild !== button) home.prepend(button)\n if (trailing) ownTrailing.remove()\n else if (ownTrailing.parentElement !== bar) bar.append(ownTrailing)\n if (layer.parentElement !== bar) bar.append(layer)\n bar.setAttribute(\"data-search\", \"\")\n }\n if (bar !== reported) {\n reported = bar\n onPlaces(bar ? { bar, button, layer } : null)\n }\n }\n place()\n return () => {\n observer?.disconnect()\n leave()\n }\n}\n\n/**\n * The field grows out of its button and shrinks back into it: the button's capsule in the bar, by its layout box. Its\n * distance from the end of the bar's content is kept, not from the bar's edge, so it holds as the bar's gutter changes\n * (a Sheet's at the full screen). Set at once, with no transition. (React's twin)\n */\nfunction followSearchButton({ bar, button, layer }: SearchPlaces, field: HTMLElement | null) {\n let left = 0\n for (let node: HTMLElement | null = button; node && node !== bar; node = node.offsetParent as HTMLElement | null) left += node.offsetLeft\n const style = getComputedStyle(bar)\n const end = style.direction === \"rtl\"\n ? left - (Number.parseFloat(style.paddingLeft) || 0)\n : bar.clientWidth - (Number.parseFloat(style.paddingRight) || 0) - left - button.offsetWidth\n layer.style.setProperty(\"--toolbar-search-from-end\", `${end}px`)\n layer.style.setProperty(\"--toolbar-search-from-size\", `${button.offsetWidth}px`)\n // The leading actions an open field on iOS stands after (a Back, a Cancel, more than one): how far they reach in from\n // the bar's content start\n const leading = Array.from(bar.children).find((child): child is HTMLElement => child.classList.contains(s.Leading) && child.childElementCount > 0)\n if (leading) {\n let start = 0\n for (let node: HTMLElement | null = leading; node && node !== bar; node = node.offsetParent as HTMLElement | null) start += node.offsetLeft\n const reach = style.direction === \"rtl\"\n ? bar.clientWidth - (Number.parseFloat(style.paddingRight) || 0) - start\n : start + leading.offsetWidth - (Number.parseFloat(style.paddingLeft) || 0)\n layer.style.setProperty(\"--toolbar-search-leading\", `${reach}px`)\n } else {\n layer.style.removeProperty(\"--toolbar-search-leading\")\n }\n if (!field) return\n field.style.transition = \"none\"\n void field.offsetWidth\n field.style.transition = \"\"\n}\n\n/**\n * While a search at the top is open the bar's leading actions may change (a Back turning into a Cancel, one more): the\n * open field on iOS keeps standing after them. Returns the release.\n */\nfunction followLeading(places: SearchPlaces) {\n const measure = () => followSearchButton(places, null)\n const sizes = typeof ResizeObserver !== \"undefined\" ? new ResizeObserver(measure) : undefined\n const follow = () => {\n sizes?.disconnect()\n for (const child of Array.from(places.bar.children)) if (child.classList.contains(s.Leading)) sizes?.observe(child)\n measure()\n }\n const parts = typeof MutationObserver !== \"undefined\" ? new MutationObserver(follow) : undefined\n parts?.observe(places.bar, { childList: true })\n follow()\n return () => {\n sizes?.disconnect()\n parts?.disconnect()\n }\n}\n\n/** Closing the search clears its field, as a search closed on Android or canceled on iOS does: the field's own input event. */\nfunction clearSearchField(field: HTMLElement | null) {\n const input = field?.querySelector(\"input\")\n if (!input || input.value === \"\") return\n Object.getOwnPropertyDescriptor(Object.getPrototypeOf(input), \"value\")?.set?.call(input, \"\")\n input.dispatchEvent(new Event(\"input\", { bubbles: true }))\n}\n\n/**\n * Custom middle content: a search field, a segmented control or a single centered action (React `Toolbar.Content`).\n * With `search` it is the screen's search field, where its placement puts it. At the bottom it is the field in its bar.\n * At the top a search button stands first among the top bar's trailing actions, in the capsule of the icon buttons next\n * to it; pressed, it grows into the field over the bar as the title and the actions fade. On iOS the field stands before\n * a glass close, a leading action staying beside it (iOS 26 Files); in the Plex Android look it runs\n * from after a back circle to the bar's end, the leading action becoming the back arrow. The close, the back arrow or\n * Escape closes it, clears the field and gives the button its focus back; a Sheet on Android stands at the full screen\n * while it is open (Dialog.module.css).\n */\nexport const ToolbarContent = defineComponent({\n name: \"ToolbarContent\",\n inheritAttrs: false,\n props: {\n /** Stretch between the leading and trailing items, as a search field does. */\n fill: { type: Boolean, default: false },\n /**\n * Marks the content as the screen's search field (an `Input`) and sets where it stands (`ToolbarSearchPlacement`):\n * write it in the bottom bar, and at the top it becomes a search button of the top bar beside it, a Page's or a\n * Sheet's, that opens the field over that bar. `true` is `\"auto\"`: the bottom on iOS, the top on Android.\n */\n search: { type: [Boolean, String] as PropType<boolean | ToolbarSearchPlacement>, default: undefined },\n },\n setup(props, { slots, attrs }) {\n const bar = inject(TOOLBAR_BAR, null)\n const placement = computed<ToolbarSearchPlacement | undefined>(() => (props.search === true ? \"auto\" : props.search || undefined))\n const anchor = ref<HTMLElement | null>(null)\n // Whether it stands in the Plex Android look: `data-platform=\"android\"` on it or around it (PlexUIProvider)\n const android = ref(false)\n watch([placement, anchor], ([value, mark], _, onCleanup) => {\n if (!value || !mark) return\n const read = () => { android.value = !!mark.closest(ANDROID) }\n read()\n if (typeof MutationObserver === \"undefined\") return\n const observer = new MutationObserver(read)\n observer.observe(mark.ownerDocument.documentElement, { attributes: true, attributeFilter: [\"data-platform\"], subtree: true })\n onCleanup(() => observer.disconnect())\n }, { flush: \"post\", immediate: true })\n const top = computed(() => !!placement.value && (placement.value === \"auto\" ? (android.value ? \"top\" : \"bottom\") : placement.value) === \"top\")\n const places = shallowRef<SearchPlaces | null>(null)\n watch([top, anchor], ([value, mark], _, onCleanup) => {\n if (!value || !mark) return\n const release = placeSearch(mark, (next) => { places.value = next })\n onCleanup(() => { release(); places.value = null })\n }, { flush: \"post\", immediate: true })\n // Written in the bottom bar, it leaves that bar to the top one\n watch(() => !!places.value && bar?.placement() !== \"top\", (away, _, onCleanup) => {\n if (away && bar) onCleanup(bar.searchAway())\n }, { immediate: true })\n\n const open = ref(false)\n const field = ref<HTMLElement | null>(null)\n watch(places, (value) => {\n if (value) followSearchButton(value, field.value)\n else open.value = false\n }, { flush: \"post\" })\n // Open, the field follows the bar's leading actions as they change\n watch([places, open], ([value, isOpen], _, onCleanup) => {\n if (value && isOpen) onCleanup(followLeading(value))\n }, { flush: \"post\" })\n watch([places, open], ([value, isOpen]) => {\n if (!value) return\n value.bar.toggleAttribute(\"data-search-open\", isOpen)\n if (isOpen) field.value?.querySelector(\"input\")?.focus({ preventScroll: true })\n }, { flush: \"post\" })\n // The button takes the field's name: \"Search materials\"\n const name = ref(\"Search\")\n const readName = () => {\n const input = field.value?.querySelector(\"input\")\n name.value = input?.getAttribute(\"aria-label\") || input?.placeholder || \"Search\"\n }\n onMounted(readName)\n onUpdated(readName)\n watch(places, readName, { flush: \"post\" })\n const openSearch = () => {\n if (places.value) followSearchButton(places.value, field.value)\n open.value = true\n }\n const closeSearch = () => {\n if (places.value) {\n followSearchButton(places.value, null)\n // Closed at once, so the button is there to take the focus back\n places.value.bar.removeAttribute(\"data-search-open\")\n }\n clearSearchField(field.value)\n open.value = false\n places.value?.button.querySelector<HTMLElement>(\"[data-toolbar-search-trigger]\")?.focus({ preventScroll: true })\n }\n useEscCloseStack(open, closeSearch)\n\n return () => {\n const children = slots.default?.()\n const content = { ...attrs, \"class\": [s.Content, attrs.class], \"data-fill\": props.fill ? \"\" : undefined }\n if (!placement.value) return h(\"div\", content, children)\n const mark = h(\"span\", { \"ref\": anchor, \"hidden\": true, \"data-toolbar-search-anchor\": \"\" })\n const place = places.value\n if (!place) return [mark, h(\"div\", { ...content, ref: field }, children)]\n return [\n mark,\n h(Teleport, { to: place.button }, [h(Button, {\n \"color\": \"secondary\",\n \"variant\": \"soft\",\n \"uniform\": true,\n \"pill\": true,\n \"aria-label\": name.value,\n \"aria-expanded\": open.value ? \"true\" : \"false\",\n \"data-toolbar-search-trigger\": \"\",\n \"onClick\": openSearch,\n }, () => h(Search))]),\n // Android closes it with a back arrow before the field, iOS with a close after it: both stand in the layer, the\n // other platform's hidden, so the field never moves (its text and its focus stay) as the platform changes\n h(Teleport, { to: place.layer }, [\n h(\"div\", { key: \"back\", class: [s.Leading, s.SearchBack], hidden: !android.value }, [h(NavigationButton, {\n \"action\": \"back\",\n \"aria-label\": \"Close search\",\n \"tabindex\": open.value ? undefined : -1,\n \"onClick\": closeSearch,\n })]),\n h(\"div\", { ...attrs, \"key\": \"field\", \"ref\": field, \"class\": [s.Content, s.SearchField, attrs.class], \"data-fill\": \"\" }, children),\n h(\"div\", { key: \"close\", class: [s.Trailing, s.SearchClose], hidden: android.value }, [h(NavigationButton, {\n \"action\": \"close\",\n \"aria-label\": \"Close search\",\n \"tabindex\": open.value ? undefined : -1,\n \"onClick\": closeSearch,\n })]),\n ]),\n ]\n }\n },\n})\n\n/** Whether a part of a bar is a search (`ToolbarContent search`), or renders nothing. */\nfunction isSearchContent(node: VNode): boolean {\n if (node.type === Comment) return true\n if (node.type === Fragment && Array.isArray(node.children)) return (node.children as VNode[]).every(isSearchContent)\n const search = (node.props as Record<string, unknown> | null)?.search\n return node.type === ToolbarContent && search != null && search !== false\n}\n\n/** The bar title, with an optional second line (React `Toolbar.Title`). */\nexport const ToolbarTitle = defineComponent({\n name: \"ToolbarTitle\",\n inheritAttrs: false,\n props: {\n /** A second, smaller line below the title. The `subtitle` slot takes precedence. */\n subtitle: { type: String, default: undefined },\n /**\n * Heading level. In a Dialog the dialog's own title names the Sheet, so the bar title is hidden\n * from assistive technology there.\n * @default \"h1\"\n */\n as: { type: String as PropType<\"h1\" | \"h2\" | \"h3\">, default: \"h1\" },\n },\n setup(props, { slots, attrs }) {\n const host = inject(TOOLBAR_HOST, null)\n const titleStyle = inject(TOOLBAR_TITLE_STYLE, null)\n const bar = inject(TOOLBAR_ELEMENT, null)\n const heading = ref<HTMLElement | null>(null)\n // A page, and a Dialog with its body, keep the title at the top of their content\n const large = computed(() => titleStyle?.value === \"large\" && !!host?.requestLargeTitleSlot)\n const slot = computed(() => (large.value ? host?.largeTitleSlot?.value ?? null : null))\n let release: (() => void) | undefined\n // A watch that ran first has asked already (Codex #68)\n onMounted(() => { if (large.value && !release) release = host?.requestLargeTitleSlot?.() })\n watch(large, (value) => {\n release?.()\n release = value ? host?.requestLargeTitleSlot?.() : undefined\n })\n // In the content the title scrolls with it, on the compositor and through the overscroll, as on iOS 26. Once it has\n // gone under the bar (its last line at the bar's bottom), the bar shows it inline and a hard or glass bar its line.\n // It starts once mounted too: a bar replaced under a page that keeps its content finds the place already there.\n let stopFollowing: (() => void) | undefined\n const follow = () => {\n stopFollowing?.()\n stopFollowing = undefined\n const element = bar?.value\n const title = heading.value\n if (!slot.value || !element || !title || !host?.subscribeScroll) return\n stopFollowing = followLargeTitle(element, title, host.subscribeScroll)\n }\n onMounted(follow)\n watch([slot, () => bar?.value], follow, { flush: \"post\" })\n onBeforeUnmount(() => { stopFollowing?.(); release?.() })\n return () => {\n // An empty subtitle, from the prop or a slot that renders nothing, leaves the title on one line, as in React.\n const present = (value: unknown) => (Array.isArray(value) ? value.length > 0 : value != null && value !== \"\")\n const subtitle = slots.subtitle?.() ?? props.subtitle\n const place = slot.value\n const title = h(\"div\", { \"ref\": heading, \"class\": s.Heading, \"aria-hidden\": host?.kind === \"dialog\" ? \"true\" : undefined, \"data-in-content\": place ? \"\" : undefined }, [\n h(props.as, { ...attrs, class: [s.Title, attrs.class] }, slots.default?.()),\n present(subtitle) ? h(\"p\", { class: s.Subtitle }, subtitle) : null,\n ])\n if (!large.value) return title\n // Until the content has made its place (a server-rendered page before it hydrates), the title stands in the bar\n // where it will stand in the content. The inline copy the row of controls shows once the large title has gone\n // under it keeps a subtitle as a second line, as in the inline title (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line).\n const copySubtitle = slots.subtitle?.() ?? props.subtitle\n const copy = present(copySubtitle)\n ? [h(\"span\", { class: s.CollapsedLine }, slots.default?.()), h(\"span\", { class: s.CollapsedSubtitle }, copySubtitle)]\n : slots.default?.()\n return [h(Teleport, { to: place ?? \"body\", disabled: !place }, [title]), h(\"span\", { \"class\": s.CollapsedTitle, \"aria-hidden\": \"true\" }, copy)]\n }\n },\n})\n"]}
1
+ {"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/Toolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,eAAe,EACf,QAAQ,EACR,CAAC,EACD,MAAM,EACN,eAAe,EACf,SAAS,EACT,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,QAAQ,EACR,KAAK,GAON,MAAM,KAAK,CAAA;AACZ,OAAO,CAAC,MAAM,sDAAsD,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,QAAQ,MAAM,yBAAyB,CAAA;AAwC9C,2EAA2E;AAC3E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAAyC,EAA6B,EAAE,CACpG,UAAU,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAA;AA8B/E,MAAM,CAAC,MAAM,YAAY,GAA8B,MAAM,CAAC,aAAa,CAAC,CAAA;AAE5E,2GAA2G;AAC3G,MAAM,mBAAmB,GAA6D,MAAM,CAAC,mBAAmB,CAAC,CAAA;AACjH,2FAA2F;AAC3F,MAAM,eAAe,GAA0C,MAAM,CAAC,gBAAgB,CAAC,CAAA;AAGvF,MAAM,WAAW,GAA6B,MAAM,CAAC,YAAY,CAAC,CAAA;AAElE,mHAAmH;AACnH,MAAM,kBAAkB,GAAG;IACzB,0BAA0B;IAC1B,2BAA2B;IAC3B,iCAAiC;IACjC,mCAAmC;IACnC,+BAA+B;IAC/B,oCAAoC;IACpC,sCAAsC;IACtC,kCAAkC;CACnC,CAAA;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YACrB,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE,KAAK,IAAI,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,CAAC,CAAA;QACjJ,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA","sourcesContent":["import {\n Comment,\n computed,\n defineComponent,\n Fragment,\n h,\n inject,\n onBeforeUnmount,\n onMounted,\n onUpdated,\n provide,\n ref,\n shallowRef,\n Teleport,\n watch,\n type ComputedRef,\n type HTMLAttributes,\n type InjectionKey,\n type PropType,\n type Ref,\n type VNode,\n} from \"vue\"\nimport s from \"@plexui/styles/components/Toolbar/Toolbar.module.css\"\nimport { useEscCloseStack } from \"../../composables/useEscCloseStack.js\"\nimport { Button, NavigationButton } from \"../Button/index.js\"\nimport SearchLg from \"../Icon/svg/SearchLg.js\"\n\n// Vue port of packages/ui/src/components/Toolbar/Toolbar.tsx. Exports are flat\n// (`ToolbarLeading` for `Toolbar.Leading`, ...).\n\nexport type ToolbarPlacement = \"top\" | \"bottom\"\n/**\n * Where a screen's search field stands (`ToolbarContent search`):\n * - `\"bottom\"`: the field itself, in the bar it is written in: in a bottom bar, in reach of the thumb, as iOS 26 places a\n * screen's search\n * - `\"top\"`: a search button first among the top bar's trailing actions; pressed, it grows into the field over the bar,\n * which a glass close after it closes on iOS (iOS 26 Podcasts, Files), and in the Plex Android look the bar's leading\n * action turning into a back arrow, a Sheet going full screen\n * - `\"auto\"`: the platform's place, the bottom on iOS and the top in the Plex Android look (`data-platform=\"android\"`)\n */\nexport type ToolbarSearchPlacement = \"auto\" | \"top\" | \"bottom\"\n/** Title layouts of the phone top bar. */\nexport type ToolbarTitleStyle = \"inline\" | \"large\" | \"compact-large\" | \"compact-medium\"\nexport type ToolbarTitleAlign = \"center\" | \"start\"\n/**\n * How a bar meets the content scrolled under it, after the scroll edge effect of iOS 26:\n * - `\"soft\"` (the default of a bottom bar): at the top, once content is under the bar, a blur that grows toward the top under a\n * thin veil of the canvas color, with no line, which lets go past the bar; at the bottom of a page the content stays clear\n * under and around the controls, as on native iOS 26, and a Sheet's bottom bar fades its content into the panel\n * - `\"hard\"`: an opaque bar of the canvas color with a hairline once content is under it\n * - `\"glass\"` (the default of a top bar): a translucent, blurred bar with a hairline, shown once content is under it\n * - `\"blur\"`: no fill and no line, once content is under the bar: the content blurred a little over the bar and past it,\n * and heavily toward the screen's edge\n *\n * iOS 27.2 has two scroll edges, soft and hard; glass is the bar of earlier iOS and blur an app's own.\n */\nexport type BarBackground = \"soft\" | \"hard\" | \"glass\" | \"blur\"\n/**\n * `\"solid\"` is the earlier name of `\"hard\"`: iOS has no opaque bar without a line, and it draws the line of a hard edge\n * only once content is under the bar, so at rest the two look the same.\n */\nexport type BarBackgroundAlias = \"solid\"\n/** `\"edge\"` is the earlier name of `\"soft\"`, `\"solid\"` of `\"hard\"`. */\nexport type ToolbarBackground = BarBackground | BarBackgroundAlias | \"edge\"\n\n/** The background a bar draws, from its current name or an earlier one. */\nexport const barBackground = (background: ToolbarBackground | undefined): BarBackground | undefined =>\n background === \"edge\" ? \"soft\" : background === \"solid\" ? \"hard\" : background\n\n/**\n * A surface that places phone toolbars: `Page` puts the top bar over its content\n * and reserves the space; `Dialog` puts it 16px under the Sheet's top edge.\n */\nexport type ToolbarHost = {\n kind: \"page\" | \"dialog\"\n setHeight?: (placement: ToolbarPlacement, height: number | undefined) => void\n /** Content has scrolled under the top bar, so its glass casts a shadow and a hard or glass bar shows its line. */\n scrolled?: Ref<boolean>\n /** Content continues under the bottom bar, so a hard or glass bar shows its line. */\n contentBelow?: Ref<boolean>\n /** Calls the listener with the content's scroll offset on every scroll; returns the unsubscribe. A TabBar minimizes with it. */\n subscribeScroll?: (listener: (scrollTop: number) => void) => () => void\n /** A large title asks for a place in the content; returns the release. */\n requestLargeTitleSlot?: () => () => void\n /** The place at the top of the content where a large title scrolls with it, once the content has made one. */\n largeTitleSlot?: Ref<HTMLElement | null>\n /** The place under a large title where the bar's rows stand, pinned under the bar once scrolled up to it. */\n largeTitleRowSlot?: Ref<HTMLElement | null>\n /** The rows under a large title are pinned under the bar, so its background reaches under them. */\n rowsPinned?: Ref<boolean>\n /**\n * `false` while the host has no content to keep a large title in (a Dialog without DialogBody): the title and its\n * rows stay in the bar. Otherwise the rows wait for their place, so they mount once, there.\n */\n holdsLargeTitle?: Ref<boolean>\n}\n\nexport const TOOLBAR_HOST: InjectionKey<ToolbarHost> = Symbol(\"ToolbarHost\")\n\n// The title style of the top bar, which a large title on a page needs to show itself inline once scrolled.\nconst TOOLBAR_TITLE_STYLE: InjectionKey<ComputedRef<ToolbarTitleStyle | undefined>> = Symbol(\"ToolbarTitleStyle\")\n// The bar itself, which a large title in the content marks once it has gone under the bar.\nconst TOOLBAR_ELEMENT: InjectionKey<Ref<HTMLElement | null>> = Symbol(\"ToolbarElement\")\n// The bar a part is written in: its placement, and the count of its searches that stand in the other bar\ntype ToolbarBar = { placement: () => ToolbarPlacement; searchAway: () => () => void }\nconst TOOLBAR_BAR: InjectionKey<ToolbarBar> = Symbol(\"ToolbarBar\")\n\n// The tokens of a large title a bar can set for itself, which the title in the content no longer inherits from it.\nconst LARGE_TITLE_TOKENS = [\n \"--toolbar-padding-bottom\",\n \"--toolbar-large-title-gap\",\n \"--toolbar-large-title-font-size\",\n \"--toolbar-large-title-line-height\",\n \"--toolbar-large-title-descent\",\n \"--toolbar-large-subtitle-font-size\",\n \"--toolbar-large-subtitle-line-height\",\n \"--toolbar-large-subtitle-descent\",\n]\n\n/**\n * Follows a large title in the content: it takes the large title tokens the bar sets for itself, and once its last line\n * is at the bar's bottom the bar shows it inline. Scrolling moves it; a change of layout (a wide window turning into a\n * phone's, which shows the bar and the title) or of a class or style on the bar, the content or around them measures it\n * again. A token the bar shares with the content stays inherited, so it follows the page's changes. A hidden title has\n * not gone under anything.\n */\nfunction followLargeTitle(bar: HTMLElement, heading: HTMLElement, subscribeScroll: (listener: () => void) => () => void) {\n const collapse = () => {\n const box = heading.getBoundingClientRect()\n bar.toggleAttribute(\"data-title-collapsed\", box.height > 0 && box.bottom <= bar.getBoundingClientRect().bottom)\n }\n const layout = () => {\n const own = getComputedStyle(bar)\n const place = heading.parentElement ? getComputedStyle(heading.parentElement) : undefined\n for (const token of LARGE_TITLE_TOKENS) {\n const value = own.getPropertyValue(token).trim()\n if (value && value !== place?.getPropertyValue(token).trim()) heading.style.setProperty(token, value)\n else heading.style.removeProperty(token)\n }\n collapse()\n }\n layout()\n const unsubscribe = subscribeScroll(collapse)\n const observer = typeof ResizeObserver !== \"undefined\" ? new ResizeObserver(layout) : undefined\n observer?.observe(bar)\n observer?.observe(heading)\n const mutations = typeof MutationObserver !== \"undefined\" ? new MutationObserver(layout) : undefined\n // A token reaches the bar or the content from the class or style of either or of anything around them.\n for (const start of [bar, heading.parentElement]) {\n for (let node = start; node; node = node.parentElement) mutations?.observe(node, { attributes: true, attributeFilter: [\"class\", \"style\"] })\n }\n return () => {\n unsubscribe()\n observer?.disconnect()\n mutations?.disconnect()\n bar.removeAttribute(\"data-title-collapsed\")\n for (const token of LARGE_TITLE_TOKENS) heading.style.removeProperty(token)\n }\n}\n\nconst ToolbarComponent = defineComponent({\n name: \"Toolbar\",\n props: {\n /** @default \"top\" */\n placement: { type: String as PropType<ToolbarPlacement>, default: \"top\" },\n /** Layout of `ToolbarTitle` in a top bar. @default \"inline\" */\n titleStyle: { type: String as PropType<ToolbarTitleStyle>, default: \"inline\" },\n /** Alignment of an inline title. Compact and large titles always start at the leading edge. @default \"center\" */\n titleAlign: { type: String as PropType<ToolbarTitleAlign>, default: \"center\" },\n /** How the bar meets the content scrolled under it on a phone. @default \"glass\" at the top, \"soft\" at the bottom */\n background: { type: String as PropType<ToolbarBackground>, default: undefined },\n },\n setup(props, { slots }) {\n const host = inject(TOOLBAR_HOST, null)\n provide(TOOLBAR_TITLE_STYLE, computed(() => (props.placement === \"top\" ? props.titleStyle : undefined)))\n const element = ref<HTMLElement | null>(null)\n provide(TOOLBAR_ELEMENT, element)\n // A bar that holds nothing but a search standing in the other bar (a bottom bar's field that the Plex Android look\n // puts at the top) leaves its place: it draws nothing and takes no height, and the search still renders from it.\n const searchesAway = ref(0)\n provide(TOOLBAR_BAR, {\n placement: () => props.placement,\n searchAway: () => {\n searchesAway.value += 1\n let released = false\n return () => {\n if (released) return\n released = true\n searchesAway.value -= 1\n }\n },\n })\n let observer: ResizeObserver | undefined\n let reported: ToolbarPlacement | undefined\n onMounted(() => {\n const bar = element.value\n const setHeight = host?.setHeight\n if (!bar || !setHeight) return\n // A desktop layout hides the bar; its height then leaves the host's own header in charge.\n const update = (height: number) => {\n if (reported && reported !== props.placement) setHeight(reported, undefined)\n reported = props.placement\n setHeight(props.placement, height || undefined)\n }\n if (typeof ResizeObserver === \"undefined\") {\n update(bar.offsetHeight)\n return\n }\n // The observer reports the first height too, after the layout of the frame and before its paint: a read of\n // offsetHeight on mount forced a layout while a sheet that holds the bar was being built\n observer = new ResizeObserver((entries?: ResizeObserverEntry[]) => {\n const entry = entries?.[entries.length - 1]\n const box = entry?.borderBoxSize?.[0]\n update(box ? box.blockSize : bar.offsetHeight)\n })\n observer.observe(bar, { box: \"border-box\" })\n })\n onBeforeUnmount(() => {\n observer?.disconnect()\n if (reported) host?.setHeight?.(reported, undefined)\n })\n return () => {\n const children = slots.default?.()\n // The same element, so the parts keep their state as the bar leaves and comes back; hidden, it reports no height\n if (searchesAway.value > 0 && children?.every(isSearchContent)) return h(\"div\", { \"ref\": element, \"hidden\": true, \"data-toolbar-vacant\": \"\" }, children)\n return h(\"div\", {\n \"ref\": element,\n \"class\": s.Toolbar,\n \"data-toolbar\": \"\",\n \"data-placement\": props.placement,\n \"data-title-style\": props.placement === \"top\" ? props.titleStyle : undefined,\n \"data-title-align\": props.placement === \"top\" ? props.titleAlign : undefined,\n \"data-background\": barBackground(props.background) ?? (props.placement === \"bottom\" ? \"soft\" : \"glass\"),\n \"data-host\": host?.kind,\n \"data-scrolled\": props.placement === \"top\" && host?.scrolled?.value ? \"\" : undefined,\n \"data-content-below\": props.placement === \"bottom\" && host?.contentBelow?.value ? \"\" : undefined,\n \"data-rows-pinned\": props.placement === \"top\" && host?.rowsPinned?.value ? \"\" : undefined,\n }, children)\n }\n },\n})\n\n/** Props of `Toolbar`. */\nexport type ToolbarProps = {\n placement?: ToolbarPlacement\n titleStyle?: ToolbarTitleStyle\n titleAlign?: ToolbarTitleAlign\n /** How the bar meets the content scrolled under it on a phone. @default \"glass\" at the top, \"soft\" at the bottom */\n background?: ToolbarBackground\n} & HTMLAttributes\n\n/** A phone toolbar, top or bottom. It never renders at the desktop breakpoint. */\nexport const Toolbar = ToolbarComponent as typeof ToolbarComponent & { new (): { $props: ToolbarProps } }\n\nfunction part(name: string, className: string, role?: string) {\n return defineComponent({\n name,\n setup(_, { slots }) {\n return () => h(\"div\", { class: className, role }, slots.default?.())\n },\n })\n}\n\n/** Items at the leading edge (React `Toolbar.Leading`). */\nexport const ToolbarLeading = part(\"ToolbarLeading\", s.Leading)\n/** Items at the trailing edge (React `Toolbar.Trailing`). */\nexport const ToolbarTrailing = part(\"ToolbarTrailing\", s.Trailing)\n/** Buttons that share one capsule (React `Toolbar.Group`). */\nexport const ToolbarGroup = part(\"ToolbarGroup\", s.Group, \"group\")\nconst rowOfAnchor = new WeakMap<Element, HTMLElement>()\n\n/**\n * Under a large title each row is portaled into the rows' place as it mounts, so a row that comes later (a search field\n * shown over a segmented control already there) would stand last. An empty anchor in the bar keeps the row's place among\n * the bar's rows, and the rows are moved into that order in the content, so the keyboard and a screen reader meet them\n * as they stand (Codex #7); a row added or removed in the bar orders them again.\n * (React's twin)\n */\nfunction followRowOrder(anchor: HTMLElement, row: HTMLElement) {\n const bar = anchor.closest(\"[data-toolbar]\") ?? anchor.parentElement\n if (!bar) return () => {}\n rowOfAnchor.set(anchor, row)\n const place = () => {\n const slot = row.parentElement\n if (!slot) return\n const rows = Array.from(bar.querySelectorAll(\"[data-toolbar-row-anchor]\"), (mark) => rowOfAnchor.get(mark))\n .filter((each): each is HTMLElement => each?.parentElement === slot)\n // From the last row back, a row that does not stand before the next one goes right before it: only a row out of\n // place moves (the one that came later), so a field focused in another row keeps its focus (Codex #8); moveBefore,\n // where the browser has it, keeps it even in the row that moves.\n const move = (slot as HTMLElement & { moveBefore?: (node: Node, child: Node | null) => void }).moveBefore\n for (let index = rows.length - 2; index >= 0; index--) {\n const each = rows[index]\n const next = rows[index + 1]\n if (each.compareDocumentPosition(next) & Node.DOCUMENT_POSITION_FOLLOWING) continue\n try {\n if (move) {\n move.call(slot, each, next)\n continue\n }\n } catch {\n // falls back to a plain move\n }\n slot.insertBefore(each, next)\n }\n }\n place()\n const observer = typeof MutationObserver !== \"undefined\" ? new MutationObserver(place) : undefined\n observer?.observe(bar, { childList: true, subtree: true })\n return () => {\n observer?.disconnect()\n rowOfAnchor.delete(anchor)\n }\n}\n\n/**\n * A row under the controls, part of the bar: a segmented control that switches the screen's views (a chat list's\n * folders under its bar), or a search field. It spans the bar, and a control in it fills the row; several rows stand in\n * their order (a search field over a segmented control). Under a large title on a page the rows stand under the title,\n * at the top of the content, and once scrolled up to the bar they stay pinned under its controls, as iOS 27.2 pins a\n * safeAreaBar under a large title's bar (React `Toolbar.Row`).\n */\nexport const ToolbarRow = defineComponent({\n name: \"ToolbarRow\",\n inheritAttrs: false,\n setup(_, { slots, attrs }) {\n const host = inject(TOOLBAR_HOST, null)\n const titleStyle = inject(TOOLBAR_TITLE_STYLE, null)\n // The rows go with the title: under it at the top of a page's content or a Sheet's body\n const large = computed(() => titleStyle?.value === \"large\" && !!host?.requestLargeTitleSlot)\n const slot = computed(() => (large.value ? host?.largeTitleRowSlot?.value ?? null : null))\n let release: (() => void) | undefined\n watch(large, (value) => {\n release?.()\n release = value ? host?.requestLargeTitleSlot?.() : undefined\n })\n // A watch that ran first has asked already (Codex #68)\n onMounted(() => { if (large.value && !release) release = host?.requestLargeTitleSlot?.() })\n onBeforeUnmount(() => release?.())\n const element = ref<HTMLElement | null>(null)\n const anchor = ref<HTMLElement | null>(null)\n let stopOrder: (() => void) | undefined\n watch([slot, element, anchor], ([place, row, mark]) => {\n stopOrder?.()\n stopOrder = place && row && mark ? followRowOrder(mark, row) : undefined\n }, { flush: \"post\" })\n onBeforeUnmount(() => { stopOrder?.(); stopOrder = undefined })\n return () => {\n const place = slot.value\n const row = h(\"div\", { ...attrs, \"ref\": element, \"class\": [s.Row, attrs.class], \"data-toolbar-row\": \"\", \"data-in-content\": place ? \"\" : undefined }, slots.default?.())\n // Under a large title the row waits for its place in the content, as React's does; a host with no content to\n // keep the title in (a Sheet without a body) keeps it in the bar.\n if (large.value && place) return [h(Teleport, { to: place }, [row]), h(\"span\", { \"ref\": anchor, \"data-toolbar-row-anchor\": \"\", \"hidden\": true })]\n if (large.value && host?.holdsLargeTitle?.value !== false) return null\n return row\n }\n },\n})\n\nconst ANDROID = '[data-platform=\"android\"]'\nconst TOP_BAR = '[data-toolbar][data-placement=\"top\"]'\n\n/** The places of a search at the top: its button's capsule among the bar's trailing actions, and the layer its field opens in. */\ntype SearchPlaces = { bar: HTMLElement; button: HTMLElement; layer: HTMLElement }\n\n/**\n * The top bar a search at the top stands in: the bar it is written in, or the top bar beside it (a Page's, a Sheet's),\n * looked up no further than its dialog. (React's twin)\n */\nfunction findTopBar(anchor: HTMLElement): HTMLElement | null {\n const home = anchor.parentElement\n if (home?.matches(TOP_BAR)) return home\n for (let node = home?.parentElement; node; node = node.parentElement) {\n const bar = node.querySelector<HTMLElement>(`:scope > ${TOP_BAR}`)\n if (bar) return bar\n if (node.hasAttribute(\"data-plex-dialog\")) return null\n }\n return null\n}\n\n/**\n * Makes the places of a search in the top bar and keeps them there: its button's capsule first among the bar's trailing\n * actions (in a trailing place of its own while the bar has none) and the layer over the bar its field opens in. The\n * bar's parts come and go and a page or a sheet can replace its bar: the places follow, and `onPlaces` hears of each\n * new bar. Returns the release. (React's twin)\n */\nfunction placeSearch(anchor: HTMLElement, onPlaces: (places: SearchPlaces | null) => void) {\n const doc = anchor.ownerDocument\n const make = (className: string, mark: string) => {\n const element = doc.createElement(\"div\")\n element.className = className\n element.setAttribute(mark, \"\")\n return element\n }\n const button = make(s.Group, \"data-toolbar-search-button\")\n const layer = make(s.SearchLayer, \"data-toolbar-search-layer\")\n const ownTrailing = make(s.Trailing, \"data-toolbar-search-trailing\")\n let bar: HTMLElement | null = null\n let reported: HTMLElement | null | undefined\n const leave = () => {\n bar?.removeAttribute(\"data-search\")\n bar?.removeAttribute(\"data-search-open\")\n button.remove()\n layer.remove()\n ownTrailing.remove()\n }\n const observer = typeof MutationObserver !== \"undefined\" ? new MutationObserver(() => place()) : undefined\n const place = () => {\n const next = findTopBar(anchor)\n if (next !== bar) {\n leave()\n observer?.disconnect()\n bar = next\n // The bar's own parts, and the bars beside it (a bar replaced, or one that comes later)\n for (const scope of [bar, bar?.parentElement, anchor.parentElement?.parentElement]) if (scope) observer?.observe(scope, { childList: true })\n }\n if (bar) {\n const trailing = Array.from(bar.children).find((child) => child.classList.contains(s.Trailing) && child !== ownTrailing)\n const home = trailing ?? ownTrailing\n if (home.firstElementChild !== button) home.prepend(button)\n if (trailing) ownTrailing.remove()\n else if (ownTrailing.parentElement !== bar) bar.append(ownTrailing)\n if (layer.parentElement !== bar) bar.append(layer)\n bar.setAttribute(\"data-search\", \"\")\n }\n if (bar !== reported) {\n reported = bar\n onPlaces(bar ? { bar, button, layer } : null)\n }\n }\n place()\n return () => {\n observer?.disconnect()\n leave()\n }\n}\n\n/**\n * The field grows out of its button and shrinks back into it: the button's capsule in the bar, by its layout box. Its\n * distance from the end of the bar's content is kept, not from the bar's edge, so it holds as the bar's gutter changes\n * (a Sheet's at the full screen). Set at once, with no transition. (React's twin)\n */\nfunction followSearchButton({ bar, button, layer }: SearchPlaces, field: HTMLElement | null) {\n let left = 0\n for (let node: HTMLElement | null = button; node && node !== bar; node = node.offsetParent as HTMLElement | null) left += node.offsetLeft\n const style = getComputedStyle(bar)\n const end = style.direction === \"rtl\"\n ? left - (Number.parseFloat(style.paddingLeft) || 0)\n : bar.clientWidth - (Number.parseFloat(style.paddingRight) || 0) - left - button.offsetWidth\n layer.style.setProperty(\"--toolbar-search-from-end\", `${end}px`)\n layer.style.setProperty(\"--toolbar-search-from-size\", `${button.offsetWidth}px`)\n // The leading actions an open field on iOS stands after (a Back, a Cancel, more than one): how far they reach in from\n // the bar's content start\n const leading = Array.from(bar.children).find((child): child is HTMLElement => child.classList.contains(s.Leading) && child.childElementCount > 0)\n if (leading) {\n let start = 0\n for (let node: HTMLElement | null = leading; node && node !== bar; node = node.offsetParent as HTMLElement | null) start += node.offsetLeft\n const reach = style.direction === \"rtl\"\n ? bar.clientWidth - (Number.parseFloat(style.paddingRight) || 0) - start\n : start + leading.offsetWidth - (Number.parseFloat(style.paddingLeft) || 0)\n layer.style.setProperty(\"--toolbar-search-leading\", `${reach}px`)\n } else {\n layer.style.removeProperty(\"--toolbar-search-leading\")\n }\n if (!field) return\n field.style.transition = \"none\"\n void field.offsetWidth\n field.style.transition = \"\"\n}\n\n/**\n * While a search at the top is open the bar's leading actions may change (a Back turning into a Cancel, one more): the\n * open field on iOS keeps standing after them. Returns the release.\n */\nfunction followLeading(places: SearchPlaces) {\n const measure = () => followSearchButton(places, null)\n const sizes = typeof ResizeObserver !== \"undefined\" ? new ResizeObserver(measure) : undefined\n const follow = () => {\n sizes?.disconnect()\n for (const child of Array.from(places.bar.children)) if (child.classList.contains(s.Leading)) sizes?.observe(child)\n measure()\n }\n const parts = typeof MutationObserver !== \"undefined\" ? new MutationObserver(follow) : undefined\n parts?.observe(places.bar, { childList: true })\n follow()\n return () => {\n sizes?.disconnect()\n parts?.disconnect()\n }\n}\n\n/** Closing the search clears its field, as a search closed on Android or canceled on iOS does: the field's own input event. */\nfunction clearSearchField(field: HTMLElement | null) {\n const input = field?.querySelector(\"input\")\n if (!input || input.value === \"\") return\n Object.getOwnPropertyDescriptor(Object.getPrototypeOf(input), \"value\")?.set?.call(input, \"\")\n input.dispatchEvent(new Event(\"input\", { bubbles: true }))\n}\n\n/**\n * Custom middle content: a search field, a segmented control or a single centered action (React `Toolbar.Content`).\n * With `search` it is the screen's search field, where its placement puts it. At the bottom it is the field in its bar.\n * At the top a search button stands first among the top bar's trailing actions, in the capsule of the icon buttons next\n * to it; pressed, it grows into the field over the bar as the title and the actions fade. On iOS the field stands before\n * a glass close, a leading action staying beside it (iOS 26 Files); in the Plex Android look it runs\n * from after a back circle to the bar's end, the leading action becoming the back arrow. The close, the back arrow or\n * Escape closes it, clears the field and gives the button its focus back; a Sheet on Android stands at the full screen\n * while it is open (Dialog.module.css).\n */\nexport const ToolbarContent = defineComponent({\n name: \"ToolbarContent\",\n inheritAttrs: false,\n props: {\n /** Stretch between the leading and trailing items, as a search field does. */\n fill: { type: Boolean, default: false },\n /**\n * Marks the content as the screen's search field (an `Input`) and sets where it stands (`ToolbarSearchPlacement`):\n * write it in the bottom bar, and at the top it becomes a search button of the top bar beside it, a Page's or a\n * Sheet's, that opens the field over that bar. `true` is `\"auto\"`: the bottom on iOS, the top on Android.\n */\n search: { type: [Boolean, String] as PropType<boolean | ToolbarSearchPlacement>, default: undefined },\n },\n setup(props, { slots, attrs }) {\n const bar = inject(TOOLBAR_BAR, null)\n const placement = computed<ToolbarSearchPlacement | undefined>(() => (props.search === true ? \"auto\" : props.search || undefined))\n const anchor = ref<HTMLElement | null>(null)\n // Whether it stands in the Plex Android look: `data-platform=\"android\"` on it or around it (PlexUIProvider)\n const android = ref(false)\n watch([placement, anchor], ([value, mark], _, onCleanup) => {\n if (!value || !mark) return\n const read = () => { android.value = !!mark.closest(ANDROID) }\n read()\n if (typeof MutationObserver === \"undefined\") return\n const observer = new MutationObserver(read)\n observer.observe(mark.ownerDocument.documentElement, { attributes: true, attributeFilter: [\"data-platform\"], subtree: true })\n onCleanup(() => observer.disconnect())\n }, { flush: \"post\", immediate: true })\n const top = computed(() => !!placement.value && (placement.value === \"auto\" ? (android.value ? \"top\" : \"bottom\") : placement.value) === \"top\")\n const places = shallowRef<SearchPlaces | null>(null)\n watch([top, anchor], ([value, mark], _, onCleanup) => {\n if (!value || !mark) return\n const release = placeSearch(mark, (next) => { places.value = next })\n onCleanup(() => { release(); places.value = null })\n }, { flush: \"post\", immediate: true })\n // Written in the bottom bar, it leaves that bar to the top one\n watch(() => !!places.value && bar?.placement() !== \"top\", (away, _, onCleanup) => {\n if (away && bar) onCleanup(bar.searchAway())\n }, { immediate: true })\n\n const open = ref(false)\n const field = ref<HTMLElement | null>(null)\n watch(places, (value) => {\n if (value) followSearchButton(value, field.value)\n else open.value = false\n }, { flush: \"post\" })\n // Open, the field follows the bar's leading actions as they change\n watch([places, open], ([value, isOpen], _, onCleanup) => {\n if (value && isOpen) onCleanup(followLeading(value))\n }, { flush: \"post\" })\n watch([places, open], ([value, isOpen]) => {\n if (!value) return\n value.bar.toggleAttribute(\"data-search-open\", isOpen)\n if (isOpen) field.value?.querySelector(\"input\")?.focus({ preventScroll: true })\n }, { flush: \"post\" })\n // The button takes the field's name: \"Search materials\"\n const name = ref(\"Search\")\n const readName = () => {\n const input = field.value?.querySelector(\"input\")\n name.value = input?.getAttribute(\"aria-label\") || input?.placeholder || \"Search\"\n }\n onMounted(readName)\n onUpdated(readName)\n watch(places, readName, { flush: \"post\" })\n const openSearch = () => {\n if (places.value) followSearchButton(places.value, field.value)\n open.value = true\n }\n const closeSearch = () => {\n if (places.value) {\n followSearchButton(places.value, null)\n // Closed at once, so the button is there to take the focus back\n places.value.bar.removeAttribute(\"data-search-open\")\n }\n clearSearchField(field.value)\n open.value = false\n places.value?.button.querySelector<HTMLElement>(\"[data-toolbar-search-trigger]\")?.focus({ preventScroll: true })\n }\n useEscCloseStack(open, closeSearch)\n\n return () => {\n const children = slots.default?.()\n const content = { ...attrs, \"class\": [s.Content, attrs.class], \"data-fill\": props.fill ? \"\" : undefined }\n if (!placement.value) return h(\"div\", content, children)\n const mark = h(\"span\", { \"ref\": anchor, \"hidden\": true, \"data-toolbar-search-anchor\": \"\" })\n const place = places.value\n if (!place) return [mark, h(\"div\", { ...content, ref: field }, children)]\n return [\n mark,\n h(Teleport, { to: place.button }, [h(Button, {\n \"color\": \"secondary\",\n \"variant\": \"soft\",\n \"uniform\": true,\n \"pill\": true,\n \"aria-label\": name.value,\n \"aria-expanded\": open.value ? \"true\" : \"false\",\n \"data-toolbar-search-trigger\": \"\",\n \"onClick\": openSearch,\n }, () => h(SearchLg))]),\n // Android closes it with a back arrow before the field, iOS with a close after it: both stand in the layer, the\n // other platform's hidden, so the field never moves (its text and its focus stay) as the platform changes\n h(Teleport, { to: place.layer }, [\n h(\"div\", { key: \"back\", class: [s.Leading, s.SearchBack], hidden: !android.value }, [h(NavigationButton, {\n \"action\": \"back\",\n \"aria-label\": \"Close search\",\n \"tabindex\": open.value ? undefined : -1,\n \"onClick\": closeSearch,\n })]),\n h(\"div\", { ...attrs, \"key\": \"field\", \"ref\": field, \"class\": [s.Content, s.SearchField, attrs.class], \"data-fill\": \"\" }, children),\n h(\"div\", { key: \"close\", class: [s.Trailing, s.SearchClose], hidden: android.value }, [h(NavigationButton, {\n \"action\": \"close\",\n \"aria-label\": \"Close search\",\n \"tabindex\": open.value ? undefined : -1,\n \"onClick\": closeSearch,\n })]),\n ]),\n ]\n }\n },\n})\n\n/** Whether a part of a bar is a search (`ToolbarContent search`), or renders nothing. */\nfunction isSearchContent(node: VNode): boolean {\n if (node.type === Comment) return true\n if (node.type === Fragment && Array.isArray(node.children)) return (node.children as VNode[]).every(isSearchContent)\n const search = (node.props as Record<string, unknown> | null)?.search\n return node.type === ToolbarContent && search != null && search !== false\n}\n\n/** The bar title, with an optional second line (React `Toolbar.Title`). */\nexport const ToolbarTitle = defineComponent({\n name: \"ToolbarTitle\",\n inheritAttrs: false,\n props: {\n /** A second, smaller line below the title. The `subtitle` slot takes precedence. */\n subtitle: { type: String, default: undefined },\n /**\n * Heading level. In a Dialog the dialog's own title names the Sheet, so the bar title is hidden\n * from assistive technology there.\n * @default \"h1\"\n */\n as: { type: String as PropType<\"h1\" | \"h2\" | \"h3\">, default: \"h1\" },\n },\n setup(props, { slots, attrs }) {\n const host = inject(TOOLBAR_HOST, null)\n const titleStyle = inject(TOOLBAR_TITLE_STYLE, null)\n const bar = inject(TOOLBAR_ELEMENT, null)\n const heading = ref<HTMLElement | null>(null)\n // A page, and a Dialog with its body, keep the title at the top of their content\n const large = computed(() => titleStyle?.value === \"large\" && !!host?.requestLargeTitleSlot)\n const slot = computed(() => (large.value ? host?.largeTitleSlot?.value ?? null : null))\n let release: (() => void) | undefined\n // A watch that ran first has asked already (Codex #68)\n onMounted(() => { if (large.value && !release) release = host?.requestLargeTitleSlot?.() })\n watch(large, (value) => {\n release?.()\n release = value ? host?.requestLargeTitleSlot?.() : undefined\n })\n // In the content the title scrolls with it, on the compositor and through the overscroll, as on iOS 26. Once it has\n // gone under the bar (its last line at the bar's bottom), the bar shows it inline and a hard or glass bar its line.\n // It starts once mounted too: a bar replaced under a page that keeps its content finds the place already there.\n let stopFollowing: (() => void) | undefined\n const follow = () => {\n stopFollowing?.()\n stopFollowing = undefined\n const element = bar?.value\n const title = heading.value\n if (!slot.value || !element || !title || !host?.subscribeScroll) return\n stopFollowing = followLargeTitle(element, title, host.subscribeScroll)\n }\n onMounted(follow)\n watch([slot, () => bar?.value], follow, { flush: \"post\" })\n onBeforeUnmount(() => { stopFollowing?.(); release?.() })\n return () => {\n // An empty subtitle, from the prop or a slot that renders nothing, leaves the title on one line, as in React.\n const present = (value: unknown) => (Array.isArray(value) ? value.length > 0 : value != null && value !== \"\")\n const subtitle = slots.subtitle?.() ?? props.subtitle\n const place = slot.value\n const title = h(\"div\", { \"ref\": heading, \"class\": s.Heading, \"aria-hidden\": host?.kind === \"dialog\" ? \"true\" : undefined, \"data-in-content\": place ? \"\" : undefined }, [\n h(props.as, { ...attrs, class: [s.Title, attrs.class] }, slots.default?.()),\n present(subtitle) ? h(\"p\", { class: s.Subtitle }, subtitle) : null,\n ])\n if (!large.value) return title\n // Until the content has made its place (a server-rendered page before it hydrates), the title stands in the bar\n // where it will stand in the content. The inline copy the row of controls shows once the large title has gone\n // under it keeps a subtitle as a second line, as in the inline title (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line).\n const copySubtitle = slots.subtitle?.() ?? props.subtitle\n const copy = present(copySubtitle)\n ? [h(\"span\", { class: s.CollapsedLine }, slots.default?.()), h(\"span\", { class: s.CollapsedSubtitle }, copySubtitle)]\n : slots.default?.()\n return [h(Teleport, { to: place ?? \"body\", disabled: !place }, [title]), h(\"span\", { \"class\": s.CollapsedTitle, \"aria-hidden\": \"true\" }, copy)]\n }\n },\n})\n"]}
@@ -474,6 +474,7 @@ export { default as Scissor } from "./svg/Scissor.js";
474
474
  export { default as ScreenPosition } from "./svg/ScreenPosition.js";
475
475
  export { default as Search } from "./svg/Search.js";
476
476
  export { default as SearchConnector } from "./svg/SearchConnector.js";
477
+ export { default as SearchLg } from "./svg/SearchLg.js";
477
478
  export { default as SearchSm } from "./svg/SearchSm.js";
478
479
  export { default as SelectText } from "./svg/SelectText.js";
479
480
  export { default as SettingsCircle } from "./svg/SettingsCircle.js";
@@ -0,0 +1,3 @@
1
+ import { type FunctionalComponent, type SVGAttributes } from "vue";
2
+ declare const SearchLg: FunctionalComponent<SVGAttributes>;
3
+ export default SearchLg;
@@ -42,8 +42,22 @@ declare const SliderComponent: import("vue").DefineComponent<import("vue").Extra
42
42
  ariaLabel: StringConstructor;
43
43
  /** Id of an element that names the slider; takes precedence over `label` */
44
44
  ariaLabelledby: StringConstructor;
45
- /** List of marks to display below the slider track (horizontal only) */
45
+ /**
46
+ * Labels of points of the scale, each at the knob's place at its value: under the track, or over it on an iOS
47
+ * phone (touch.css), as Settings' Balance writes L, its value and R (15/20, the baseline 31px over the track's
48
+ * middle, a mark at either end of the range 5px in from that end of the track). Horizontal only.
49
+ */
46
50
  marks: PropType<SliderMark[]>;
51
+ /**
52
+ * A dot at each step under the track, where the knob's centre stands on it, the knob covering its own: iOS
53
+ * 27.2's ticks on a phone (3px, 8.5px under the track's middle, `--slider-tick-*`), drawn where the steps stand
54
+ * 9px or more apart. Horizontal only; the Plex Android phone draws none. An array of values puts the dots at those
55
+ * values only, as Settings' Balance marks its ends and its middle under a slider of fine steps. @default false
56
+ */
57
+ ticks: {
58
+ type: PropType<boolean | number[]>;
59
+ default: boolean;
60
+ };
47
61
  /** Color of the slider track */
48
62
  trackColor: StringConstructor;
49
63
  /** Color of the slider progress along the track */
@@ -114,8 +128,22 @@ declare const SliderComponent: import("vue").DefineComponent<import("vue").Extra
114
128
  ariaLabel: StringConstructor;
115
129
  /** Id of an element that names the slider; takes precedence over `label` */
116
130
  ariaLabelledby: StringConstructor;
117
- /** List of marks to display below the slider track (horizontal only) */
131
+ /**
132
+ * Labels of points of the scale, each at the knob's place at its value: under the track, or over it on an iOS
133
+ * phone (touch.css), as Settings' Balance writes L, its value and R (15/20, the baseline 31px over the track's
134
+ * middle, a mark at either end of the range 5px in from that end of the track). Horizontal only.
135
+ */
118
136
  marks: PropType<SliderMark[]>;
137
+ /**
138
+ * A dot at each step under the track, where the knob's centre stands on it, the knob covering its own: iOS
139
+ * 27.2's ticks on a phone (3px, 8.5px under the track's middle, `--slider-tick-*`), drawn where the steps stand
140
+ * 9px or more apart. Horizontal only; the Plex Android phone draws none. An array of values puts the dots at those
141
+ * values only, as Settings' Balance marks its ends and its middle under a slider of fine steps. @default false
142
+ */
143
+ ticks: {
144
+ type: PropType<boolean | number[]>;
145
+ default: boolean;
146
+ };
119
147
  /** Color of the slider track */
120
148
  trackColor: StringConstructor;
121
149
  /** Color of the slider progress along the track */
@@ -145,6 +173,7 @@ declare const SliderComponent: import("vue").DefineComponent<import("vue").Extra
145
173
  disabled: boolean;
146
174
  orientation: "vertical" | "horizontal";
147
175
  range: boolean;
176
+ ticks: boolean | number[];
148
177
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
149
178
  type SliderOwnProps = InstanceType<typeof SliderComponent>["$props"];
150
179
  type SliderBaseProps = Omit<SliderOwnProps, "range" | "value" | "resetValue" | "resetTooltip" | "minStepsBetweenThumbs" | "onUpdate:value" | "onChange"> & {
@@ -71,6 +71,16 @@ export declare const TipPopover: import("vue").DefineComponent<import("vue").Ext
71
71
  type: BooleanConstructor;
72
72
  default: boolean;
73
73
  };
74
+ /**
75
+ * The tip's surface on a phone: `glass`, TipKit's Liquid Glass, or `solid`, the opaque elevated surface iOS draws
76
+ * the tip on with Reduce Transparency (`--tip-popover-background`, the same shape, arrow and shadow), for a tip over
77
+ * a photo or anything busy, where a browser's glass cannot turn its words light or dark to the picture as iOS's does.
78
+ * @default "glass"
79
+ */
80
+ material: {
81
+ type: PropType<"glass" | "solid">;
82
+ default: string;
83
+ };
74
84
  /** The tip's title: what the feature is (or the `title` slot). */
75
85
  title: StringConstructor;
76
86
  /** One or two sentences on how to use it (or the `description` slot). */
@@ -117,6 +127,16 @@ export declare const TipPopover: import("vue").DefineComponent<import("vue").Ext
117
127
  type: BooleanConstructor;
118
128
  default: boolean;
119
129
  };
130
+ /**
131
+ * The tip's surface on a phone: `glass`, TipKit's Liquid Glass, or `solid`, the opaque elevated surface iOS draws
132
+ * the tip on with Reduce Transparency (`--tip-popover-background`, the same shape, arrow and shadow), for a tip over
133
+ * a photo or anything busy, where a browser's glass cannot turn its words light or dark to the picture as iOS's does.
134
+ * @default "glass"
135
+ */
136
+ material: {
137
+ type: PropType<"glass" | "solid">;
138
+ default: string;
139
+ };
120
140
  /** The tip's title: what the feature is (or the `title` slot). */
121
141
  title: StringConstructor;
122
142
  /** One or two sentences on how to use it (or the `description` slot). */
@@ -136,6 +156,7 @@ export declare const TipPopover: import("vue").DefineComponent<import("vue").Ext
136
156
  side: "left" | "right" | "bottom" | "top";
137
157
  align: "center" | "end" | "start";
138
158
  closeButton: boolean;
159
+ material: "solid" | "glass";
139
160
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
140
161
  /** A tip inside the page, after TipKit: a title, a description, an optional symbol, actions and Close. */
141
162
  export declare const Tip: typeof TipComponent & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/vue",
3
- "version": "0.42.15",
3
+ "version": "0.42.17",
4
4
  "description": "Plex UI components for Vue 3, built on Reka UI and the shared @plexui/styles CSS",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -77,7 +77,7 @@
77
77
  "@maskito/core": "5.2.2",
78
78
  "@maskito/kit": "5.2.2",
79
79
  "@maskito/vue": "5.2.2",
80
- "@plexui/styles": "^0.17.14",
80
+ "@plexui/styles": "^0.17.16",
81
81
  "@tanstack/table-core": "8.21.3",
82
82
  "@tanstack/vue-table": "8.21.3",
83
83
  "@tiptap/core": "3.21.0",