@plexui/vue 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,CAAC,EACD,MAAM,EACN,OAAO,EACP,eAAe,EACf,SAAS,EACT,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,KAAK,GAQN,MAAM,KAAK,CAAA;AACZ,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC7G,OAAO,EACL,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,GACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,OAAO,MAAM,wBAAwB,CAAA;AAC5C,OAAO,aAAa,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,CAAC,MAAM,gDAAgD,CAAA;AA2C9D,MAAM,cAAc,GAAmC,MAAM,CAAC,YAAY,CAAC,CAAA;AAM3E,+DAA+D;AAC/D,MAAM,WAAW,GAAG,CAAC,KAA0B,EAAE,GAAmB,EAAE,QAAoC,EAAE,EAAE;IAC5G,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAA0D,CAAA;IACnF,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,IAAI,GAAG,KAAK,gBAA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CAChC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;oCAC5B,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;oCAChC,OAAO,CAAC,CACN,aAAa,EACb;wCACE,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;wCAC5B,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;wCAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;qCAC9C,EACD;wCACE,OAAO,EAAE,GAAG,EAAE,CAAC;4CACb,OAAO,CAAC,IAAI,CAAC;4CACb,MAAM,CAAC,KAAK,CAAC;gDACX,CAAC,CAAC,KAAK;gDACP,CAAC,CAAC,CAAE,SAAS,CAAC,YAAY,CAAwB,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;4CAChF,4CAA4C;4CAC5C,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;yCACnE;qCACF,CACF,CAAA;gCACH,CAAC,CAAC;6BACL,CAAC;yBACL,CAAC;qBACH;iBACF,CAAC;aACH,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA;AAOF,MAAM,CAAC,MAAM,IAAI,GAAG,UAAmE,CAAA","sourcesContent":["import {\n Comment,\n Fragment,\n Text,\n computed,\n defineComponent,\n h,\n inject,\n isVNode,\n onBeforeUnmount,\n onMounted,\n onUpdated,\n provide,\n ref,\n shallowRef,\n watch,\n type Component,\n type ComputedRef,\n type HTMLAttributes,\n type InjectionKey,\n type PropType,\n type VNode,\n type VNodeArrayChildren,\n} from \"vue\"\nimport { RovingFocusGroup, RovingFocusItem } from \"reka-ui\"\nimport type { ControlSize, SemanticColors, Sizes, Variants } from \"@plexui/styles/types\"\nimport { handlePressableMouseEnter, prefersReducedMotion, waitForAnimationFrame } from \"../../lib/helpers.js\"\nimport {\n GROUP_COMPOSED,\n ITEM_COMPOSED,\n RovingElement,\n focusFirst,\n splitListeners,\n} from \"../../lib/rovingFocus.js\"\nimport CheckMd from \"../Icon/svg/CheckMd.js\"\nimport ChevronDownMd from \"../Icon/svg/ChevronDownMd.js\"\nimport { LoadingIndicator } from \"../Indicator/index.js\"\nimport { Menu, MenuContent, MenuRadioGroup, MenuRadioItem, MenuTrigger } from \"../Menu/index.js\"\nimport { visibleTabCount } from \"./overflow.js\"\nimport s from \"@plexui/styles/components/Tabs/Tabs.module.css\"\n\n// Vue port of packages/ui/src/components/Tabs/Tabs.tsx. Props, defaults,\n// rendered DOM and behaviour match React (checked by the parity tests).\n//\n// React builds on Radix ToggleGroup (type=\"single\"). Reka's ToggleGroupItem\n// renders Toggle semantics (`aria-pressed`, `data-active`, no `role=\"radio\"`)\n// and runs its click toggle before handlers the caller passes, so the\n// single-select part of Radix ToggleGroup/Toggle (about twenty lines) is\n// inlined here, and keyboard focus comes from Reka's RovingFocusGroup and\n// RovingFocusItem, the same roving tabindex Radix ToggleGroup uses.\n\nexport type SizeVariant = \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"\nexport type TabsVariant = \"segmented\" | \"underline\"\nexport type TabsOrientation = \"horizontal\" | \"vertical\"\n\n/** Content React accepts as a ReactNode, in Vue terms */\ntype TabsContent = string | number | VNode | VNodeArrayChildren\n\n/** Badge configuration for TabsTab: a plain value, or an object with content and styling */\nexport type TabsBadgeProp =\n | string\n | number\n | VNode\n | {\n content: TabsContent\n color?: SemanticColors<\"secondary\" | \"success\" | \"danger\" | \"warning\" | \"info\" | \"discovery\" | \"caution\">\n variant?: Variants<\"soft\" | \"solid\">\n pill?: boolean\n loading?: boolean\n }\n\n/** Icon for TabsTab: a component (e.g. an icon from @plexui/vue), a vnode, or text */\nexport type TabsIconProp = string | VNode | Component\n\ntype TabsContextValue = {\n value: ComputedRef<string>\n disabled: ComputedRef<boolean>\n /** Vertical tabs are a list on a phone, where the selected row shows a checkmark */\n vertical: ComputedRef<boolean>\n setValue: (nextValue: string) => void\n}\n\nconst TabsContextKey: InjectionKey<TabsContextValue> = Symbol(\"PlexUITabs\")\n\ntype ExposedRovingFocusGroup = { getItems: () => { ref: HTMLElement }[] }\n\ntype ResizeEntryBox = \"contentBoxSize\" | \"borderBoxSize\" | \"devicePixelContentBoxSize\"\n\n// Same reading as usehooks-ts' useResizeObserver (content-box)\nconst extractSize = (entry: ResizeObserverEntry, box: ResizeEntryBox, sizeType: \"inlineSize\" | \"blockSize\") => {\n const boxSize = entry[box] as ResizeObserverSize[] | ResizeObserverSize | undefined\n if (!boxSize) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"]\n }\n return undefined\n }\n return Array.isArray(boxSize) ? boxSize[0][sizeType] : boxSize[sizeType]\n}\n\n\nconst tabsProps = {\n /** Controlled value for the group. Bind with `v-model:value`; leave unset for an uncontrolled group. */\n value: String,\n /**\n * Visual variant of the tab group\n * - `\"segmented\"`: background container with sliding highlight (default)\n * - `\"underline\"`: no background, animated line indicator under active tab\n * @default \"segmented\"\n */\n variant: { type: String as PropType<TabsVariant>, default: \"segmented\" },\n /** Orientation of the tab layout. @default \"horizontal\" */\n orientation: { type: String as PropType<TabsOrientation>, default: \"horizontal\" },\n /**\n * Controls the size of the tabs, `3xs` (22px) to `3xl` (48px). On a phone horizontal tabs take the two sizes of\n * the iOS 27 segmented control: `sm` and smaller the small 32px one, `md` and larger the large 48px one (49px with\n * `mobileMaterial=\"flat\"`). @default \"md\"\n */\n size: { type: String as PropType<ControlSize>, default: \"md\" },\n /** Controls gutter on the edges of the tabs, defaults to value from `size`. */\n gutterSize: String as PropType<Sizes<\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\">>,\n /** Disable the entire group. @default false */\n disabled: { type: Boolean, default: false },\n /** Display the control as a block element with equal width segments. @default false */\n block: { type: Boolean, default: false },\n /** Fully rounded pill shape. Only applies to the `\"segmented\"` variant. @default true */\n pill: { type: Boolean, default: true },\n /**\n * Flush underline style: no tab padding, so the indicator matches the text\n * width, gap spacing and no bottom border. Only applies to the `\"underline\"` variant.\n * @default false\n */\n flush: { type: Boolean, default: false },\n /**\n * Phone surface of horizontal tabs. On a phone the large control (`md` and larger) is the glass capsule of iOS 27\n * apps and the small one (`sm` and smaller) the plain capsule of SwiftUI's segmented Picker; `flat` gives the large\n * one the plain look of SwiftUI's `.controlSize(.large)`, and `glass` gives the small one `.glassEffect()`, like the\n * Button prop of the same name. Inside a phone Toolbar the control is the large glass one anyway. Desktop keeps the\n * chosen variant. @default \"glass\" at md and larger, \"flat\" at sm and smaller\n */\n mobileMaterial: { type: String as PropType<\"glass\" | \"flat\">, default: undefined },\n}\n\nconst tabsEmits = {\n /** A new value was selected (`v-model:value`) */\n \"update:value\": (value: string) => typeof value === \"string\",\n /** Same payload as `update:value`, named after React's `onChange` */\n \"change\": (value: string) => typeof value === \"string\",\n /** Any click on the control, even if a new value was not selected */\n \"click\": (event: MouseEvent) => event.type === \"click\",\n}\n\n// The group itself. `Tabs` renders it as it is, or measures and splits it\n// for `overflow=\"menu\"`\n/** On a phone the large control's selection travels as a lens of glass, as iOS 27.2 draws it. Recorded frame by frame\n * 11.11 (ref-app segmented-bar-text4, a toolbar Picker of Day, Week, Month and Year switched Day to Year and back,\n * after the owner's «анимация не правильная и стиль» and «day<->year пробуй переключать»; segmented-bar-symbols, a\n * segment away, before it): the gray selection clears into a lens within 45ms, taller than the capsule (11pt) and\n * wider the faster it goes (36pt at 200ms), and carries across; it lands as the gray selection again by 300ms,\n * pressed against its segment's far side (7pt narrower, 6pt taller and its centre 2.5% of the way past at 430ms), and\n * springs back by 750ms while the label under it dims to 76% and comes back. The centre's path is a share of the\n * distance and the growth is in points, as both recordings show: as much growth a segment away as three. touch.css\n * names the lens's growth on the large control only, so everywhere else the selection just slides with its\n * transition. CSS has no refraction, so the lens is its rim, its tint and the capsule's edge seen through it. */\nlet lensRun = 0\nconst LENS_ID = \"segmented-control-lens\"\nconst LENS_DURATION = 750\n// At each measured frame: [ms, the centre's share of the distance, share of the growth's width, share of its height]\nconst LENS_PATH = [\n [0, 0, 0, 0],\n [10, 0.014, 0.036, 0.065],\n [32, 0.077, 0.13, 0.19],\n [47, 0.169, 0.22, 0.44],\n [70, 0.378, 0.44, 0.87],\n [92, 0.478, 0.52, 1],\n [125, 0.647, 0.7, 0.93],\n [150, 0.773, 0.85, 0.87],\n [182, 0.856, 0.96, 0.93],\n [205, 0.9, 1, 1],\n [227, 0.932, 0.96, 0.93],\n [245, 0.951, 0.8, 0.44],\n [262, 0.964, 0.67, 0.31],\n [295, 0.989, 0.37, 0.31],\n [330, 1.005, 0.13, 0.31],\n [363, 1.016, -0.02, 0.37],\n [395, 1.023, -0.13, 0.5],\n [430, 1.025, -0.19, 0.56],\n [497, 1.022, -0.19, 0.56],\n [545, 1.018, -0.17, 0.37],\n [597, 1.014, -0.11, 0.25],\n [647, 1.007, -0.075, 0.12],\n [697, 1.004, -0.036, 0],\n [750, 1, 0, 0],\n] as const\n// The selected label's opacity as the lens lands: [ms, opacity]\nconst LENS_LABEL = [\n [0, 1],\n [380, 1],\n [428, 0.77],\n [460, 0.76],\n [515, 0.85],\n [580, 0.93],\n [650, 0.98],\n [713, 1],\n [750, 1],\n] as const\ntype ThumbBox = { x: number; width: number }\ntype LensRun = { from: ThumbBox; to: ThumbBox; move: Animation; label?: Animation }\nconst lensRuns = new WeakMap<HTMLElement, LensRun>()\nconst round = (value: number) => Math.round(value * 100) / 100\n// The box the lens draws at a time of its run\nconst lensBox = ({ from, to }: LensRun, ms: number, growth: number): ThumbBox => {\n const next = LENS_PATH.findIndex(([time]) => time >= ms)\n const at = next < 0 ? LENS_PATH.length - 1 : Math.max(1, next)\n const [t0, share0, wide0] = LENS_PATH[at - 1]\n const [t1, share1, wide1] = LENS_PATH[Math.min(at, LENS_PATH.length - 1)]\n const k = t1 > t0 ? Math.min(1, Math.max(0, (ms - t0) / (t1 - t0))) : 1\n const share = share0 + (share1 - share0) * k\n const width = from.width + (to.width - from.width) * Math.min(share, 1) + growth * (wide0 + (wide1 - wide0) * k)\n return { x: from.x + from.width / 2 + (to.x + to.width / 2 - from.x - from.width / 2) * share - width / 2, width }\n}\n/** Where a horizontal thumb is drawn, from its control's left edge: where the script set it, or where a lens still\n * on its way has it, so a switch mid-flight sets off from there */\nconst thumbBox = (thumb: HTMLElement): ThumbBox | null => {\n const offset = /^translateX\\((-?[\\d.]+)px\\)$/.exec(thumb.style.transform)\n const width = parseFloat(thumb.style.width)\n if (!offset || !(width > 0)) return null\n const run = lensRuns.get(thumb)\n const ms = Number(run?.move.currentTime)\n if (run && (run.move.playState === \"running\" || run.move.playState === \"paused\") && ms >= 0) {\n const growth = lensGrowth(getComputedStyle(thumb))\n if (growth) return lensBox(run, ms, growth[0])\n }\n return { x: parseFloat(offset[1]), width }\n}\n// The lens's growth at its widest and tallest, which touch.css names on the large control only\nconst lensGrowth = (style: CSSStyleDeclaration) => {\n const [wide = Number.NaN, tall = wide] = style.getPropertyValue(\"--segmented-control-thumb-lens-outset\").trim().split(/\\s+/).map(parseFloat)\n return wide >= 0 && tall >= 0 ? ([wide, tall] as const) : null\n}\nconst playThumbLens = (thumb: HTMLElement, from: ThumbBox | null) => {\n if (typeof thumb.animate !== \"function\") return\n // A lens still on its way ends first, so the thumb's own fill and edge are read below (and none outlives a switch\n // to reduced motion)\n thumb.getAnimations().forEach((animation) => {\n if (animation.id === LENS_ID) animation.cancel()\n })\n lensRuns.get(thumb)?.label?.cancel()\n lensRuns.delete(thumb)\n if (!from || prefersReducedMotion()) return\n const style = getComputedStyle(thumb)\n const growth = lensGrowth(style)\n const to = thumbBox(thumb)\n const top = parseFloat(style.top)\n const bottom = parseFloat(style.bottom)\n if (!growth || !to || !Number.isFinite(top) || !Number.isFinite(bottom)) return\n const [wide, tall] = growth\n const timing = { id: LENS_ID, duration: LENS_DURATION }\n const run: LensRun = { from, to, move: undefined as unknown as Animation }\n // The thumb's box at each frame replaces its own while the lens runs (its transition is overridden); the height\n // grows about the middle\n run.move = thumb.animate(\n LENS_PATH.map(([ms, , , high]) => {\n const box = lensBox(run, ms, wide)\n const grown = (tall * high) / 2\n return {\n offset: ms / LENS_DURATION,\n transform: `translateX(${round(box.x)}px)`,\n width: `${round(Math.max(1, box.width))}px`,\n top: `${round(top - grown)}px`,\n bottom: `${round(bottom - grown)}px`,\n }\n }),\n timing,\n )\n const lens = {\n backgroundColor: style.getPropertyValue(\"--segmented-control-thumb-lens-background\").trim(),\n boxShadow: style.getPropertyValue(\"--segmented-control-thumb-lens-shadow\").trim(),\n }\n const rest = { backgroundColor: style.backgroundColor, boxShadow: style.boxShadow }\n // The gray clears as the lens lifts (45ms) and comes back as it lands (250 to 300ms)\n const fill = thumb.animate(\n [\n { offset: 0, ...rest },\n { offset: 45 / LENS_DURATION, ...lens },\n { offset: 250 / LENS_DURATION, ...lens },\n { offset: 300 / LENS_DURATION, ...rest },\n { offset: 1, ...rest },\n ],\n timing,\n )\n const root = thumb.parentElement\n const selected = root?.querySelector<HTMLElement>('[data-state=\"on\"]')\n if (selected && typeof selected.animate === \"function\") {\n run.label = selected.animate(\n LENS_LABEL.map(([ms, opacity]) => ({ offset: ms / LENS_DURATION, opacity })),\n timing,\n )\n }\n lensRuns.set(thumb, run)\n // The frame a switch is drawn in also lays out whatever the switch changes around the control, which can take a\n // few frames' time; the lens holds its first frame until then and sets off from the next, so none of its way is\n // skipped (a tap's first 45ms were, recorded in Safari 11.11)\n if (typeof requestAnimationFrame === \"function\") {\n const held = [run.move, fill, run.label].filter((animation): animation is Animation => typeof animation?.pause === \"function\")\n held.forEach((animation) => animation.pause())\n requestAnimationFrame(() => {\n held.forEach((animation) => {\n if (animation.playState === \"paused\") animation.play()\n })\n })\n }\n // The lens reaches past the capsule, which clips what scrolls in it: a control whose segments all fit lets it out\n // for the switch\n if (!root || root.scrollWidth > root.clientWidth + 1) return\n const id = String(++lensRun)\n root.setAttribute(\"data-lens\", id)\n const done = () => {\n if (root.getAttribute(\"data-lens\") === id) root.removeAttribute(\"data-lens\")\n }\n if (run.move?.finished) run.move.finished.then(done, done)\n else done()\n}\n\nconst TabsComponent = defineComponent({\n name: \"TabsRoot\",\n inheritAttrs: false,\n props: tabsProps,\n emits: tabsEmits,\n setup(props, { slots, attrs, emit }) {\n const rootRef = ref<HTMLDivElement | null>(null)\n const thumbRef = ref<HTMLDivElement | null>(null)\n const groupRef = ref<ExposedRovingFocusGroup | null>(null)\n let prevSize = props.size\n let prevValue = props.value\n\n // Radix useControllableState: `value` undefined means uncontrolled, starting empty\n const uncontrolledValue = ref(\"\")\n const currentValue = computed(() => (props.value !== undefined ? props.value : uncontrolledValue.value))\n\n const handleValueChange = (nextValue: string) => {\n // Only trigger onChange when a value exists\n // Disallow toggling off enabled items\n if (nextValue) {\n emit(\"update:value\", nextValue)\n emit(\"change\", nextValue)\n }\n }\n\n const setValue = (nextValue: string) => {\n if (props.value !== undefined) {\n if (nextValue !== props.value) handleValueChange(nextValue)\n } else {\n uncontrolledValue.value = nextValue\n }\n }\n\n // Radix reports uncontrolled changes from an effect, after the click has\n // finished bubbling (so the group's `click` comes first)\n watch(uncontrolledValue, handleValueChange, { flush: \"post\" })\n\n provide(TabsContextKey, {\n value: currentValue,\n disabled: computed(() => props.disabled),\n vertical: computed(() => props.orientation === \"vertical\"),\n setValue,\n })\n\n const applyThumbSizing = (isVertical: boolean, attemptScroll: boolean) => {\n const root = rootRef.value\n const thumb = thumbRef.value\n\n if (!root || !thumb) {\n return\n }\n\n // Get selected node\n const activeNode = root.querySelector<HTMLDivElement>('[data-state=\"on\"]')\n\n // Impossible\n if (!activeNode) {\n return\n }\n\n if (isVertical) {\n const rootHeight = root.clientHeight\n let targetHeight = Math.floor(activeNode.clientHeight)\n const targetOffset = activeNode.offsetTop\n\n // Detect subpixel edge case\n if (rootHeight - (targetHeight + targetOffset) < 2) {\n targetHeight = targetHeight - 1\n }\n\n thumb.style.height = `${Math.floor(targetHeight)}px`\n thumb.style.width = \"\"\n thumb.style.transform = `translateY(${targetOffset}px)`\n\n // Scroll into view if needed\n if (root.scrollHeight > rootHeight) {\n const buffer = rootHeight * 0.15\n const scrollTop = root.scrollTop\n const top = activeNode.offsetTop\n const bottom = top + targetHeight\n if (top < scrollTop + buffer || bottom > scrollTop + rootHeight - buffer) {\n if (attemptScroll) {\n // Scroll the control only: scrollIntoView also scrolls the page to it (a switch to Phone\n // re-rendered a control far down the page and slid the page to it, owner 08.11)\n root.scrollTo({ top: top - (rootHeight - targetHeight) / 2, behavior: prefersReducedMotion() ? \"auto\" : \"smooth\" })\n }\n }\n }\n } else {\n const rootWidth = root.clientWidth\n let targetWidth = Math.floor(activeNode.clientWidth)\n const targetOffset = activeNode.offsetLeft\n\n // Detect if the thumb is moving too far to the edge of the container.\n // This would most commonly be due to subpixel widths adding up to excessive distance.\n if (rootWidth - (targetWidth + targetOffset) < 2) {\n targetWidth = targetWidth - 1\n }\n\n thumb.style.width = `${Math.floor(targetWidth)}px`\n thumb.style.height = \"\"\n thumb.style.transform = `translateX(${targetOffset}px)`\n\n // If the control is scrollable, ensure the active option is visible\n if (root.scrollWidth > rootWidth) {\n // Only scroll items near the edge, but not the inner 2/3.\n const buffer = rootWidth * 0.15\n const scrollLeft = root.scrollLeft\n const left = activeNode.offsetLeft\n const right = left + targetWidth\n if (left < scrollLeft + buffer || right > scrollLeft + rootWidth - buffer) {\n // Cheap trick to avoid unintentional scroll on mount - transition is set after mounting\n if (attemptScroll) {\n // Scroll the control only: scrollIntoView also scrolls the page to it (a switch to Phone\n // re-rendered a control far down the page and slid the page to it, owner 08.11)\n root.scrollTo({ left: left - (rootWidth - targetWidth) / 2, behavior: prefersReducedMotion() ? \"auto\" : \"smooth\" })\n }\n }\n }\n }\n }\n\n // React's useLayoutEffect on [value, size, gutterSize, pill, flush, isVertical].\n // `value` is the prop, so an uncontrolled selection does not move the thumb\n // until the next resize, exactly as in React.\n const syncThumb = () => {\n const root = rootRef.value\n const thumb = thumbRef.value\n\n if (!root || !thumb) {\n return\n }\n\n const isVertical = props.orientation === \"vertical\"\n const transitionProperty = isVertical\n ? \"height var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter)), transform var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter))\"\n : \"width var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter)), transform var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter))\"\n\n const sizeChanged = prevSize !== props.size\n prevSize = props.size\n const valueChanged = prevValue !== props.value\n prevValue = props.value\n\n if (sizeChanged) {\n // Size changed - disable transition, wait for CSS, then apply sizing\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n\n waitForAnimationFrame(() => {\n applyThumbSizing(isVertical, false)\n waitForAnimationFrame(() => {\n thumb.style.transition = currentTransition\n })\n })\n } else if (thumb.style.transition) {\n // Normal update (value change, etc.): the thumb leaves with the label's colour\n const from = valueChanged ? thumbBox(thumb) : null\n applyThumbSizing(isVertical, true)\n if (valueChanged) playThumbLens(thumb, from)\n } else {\n // First measure: apply transition after initial calculation is set\n waitForAnimationFrame(() => {\n applyThumbSizing(isVertical, false)\n waitForAnimationFrame(() => {\n thumb.style.transition = transitionProperty\n })\n })\n }\n }\n\n watch(\n [\n () => props.value,\n () => props.size,\n () => props.gutterSize,\n () => props.pill,\n () => props.flush,\n () => props.orientation === \"vertical\",\n ],\n syncThumb,\n { flush: \"post\" },\n )\n\n let observer: ResizeObserver | undefined\n\n onMounted(() => {\n syncThumb()\n\n // usehooks-ts useResizeObserver: only fires when the content box changed\n const root = rootRef.value\n if (!root || typeof window === \"undefined\" || !(\"ResizeObserver\" in window)) {\n return\n }\n const previousSize: { width?: number; height?: number } = { width: undefined, height: undefined }\n observer = new ResizeObserver(([entry]) => {\n const width = extractSize(entry, \"contentBoxSize\", \"inlineSize\")\n const height = extractSize(entry, \"contentBoxSize\", \"blockSize\")\n if (previousSize.width === width && previousSize.height === height) {\n return\n }\n previousSize.width = width\n previousSize.height = height\n\n const thumb = thumbRef.value\n if (!thumb) {\n return\n }\n\n // Perform the size update instantly\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n applyThumbSizing(props.orientation === \"vertical\", false)\n thumb.style.transition = currentTransition\n })\n observer.observe(root, { box: \"content-box\" })\n })\n\n // Tabs added, removed, reordered or relabelled move the active tab without\n // resizing the group: measure again, instantly, like a resize\n let mutationObserver: MutationObserver | undefined\n onMounted(() => {\n const root = rootRef.value\n if (!root || typeof MutationObserver === \"undefined\") return\n mutationObserver = new MutationObserver(() => {\n const thumb = thumbRef.value\n if (!thumb) return\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n applyThumbSizing(props.orientation === \"vertical\", false)\n thumb.style.transition = currentTransition\n })\n mutationObserver.observe(root, { childList: true, characterData: true, subtree: true })\n })\n\n onBeforeUnmount(() => {\n observer?.disconnect()\n mutationObserver?.disconnect()\n })\n\n // Radix moves focus into the group onto the selected tab, then the last\n // focused one, then the first. Reka looks for a `data-active` attribute\n // that Radix does not render, so its entry focus is replaced here.\n const handleEntryFocus = (event: Event) => {\n event.preventDefault()\n const items = (groupRef.value?.getItems() ?? []).map((item) => item.ref)\n const activeItem = items.find((item) => item.getAttribute(\"data-state\") === \"on\")\n const currentItem = items.find((item) => item.getAttribute(\"tabindex\") === \"0\")\n focusFirst([activeItem, currentItem, ...items].filter((item): item is HTMLElement => !!item))\n }\n\n return () => {\n const { class: className, dir, ...otherAttrs } = attrs\n const { listeners, rest: restAttrs } = splitListeners(otherAttrs, GROUP_COMPOSED)\n // Only apply pill for segmented variant\n const isPill = props.variant === \"segmented\" && props.pill\n // Only apply flush for underline variant\n const isFlush = props.variant === \"underline\" && props.flush\n\n return h(\n RovingFocusGroup,\n {\n ref: groupRef,\n asChild: true,\n loop: false,\n dir: dir as \"ltr\" | \"rtl\" | undefined,\n onEntryFocus: handleEntryFocus,\n },\n {\n default: () =>\n h(\n RovingElement,\n {\n \"as\": \"div\",\n \"elementRef\": rootRef,\n \"composed\": GROUP_COMPOSED,\n \"listeners\": listeners,\n \"class\": [s.Tabs, className],\n // `dir` comes from RovingFocusGroup (\"ltr\" unless set), like Radix\n // Radix ToggleGroup type=\"single\" (radix-ui 1.8) is a radiogroup\n \"role\": \"radiogroup\",\n \"onClick\": (event: MouseEvent) => emit(\"click\", event),\n \"data-variant\": props.variant,\n \"data-orientation\": props.orientation,\n \"data-block\": props.block ? \"\" : undefined,\n \"data-pill\": isPill ? \"\" : undefined,\n \"data-flush\": isFlush ? \"\" : undefined,\n \"data-size\": props.size,\n \"data-gutter-size\": props.gutterSize,\n \"data-mobile-material\": props.mobileMaterial,\n \"data-disabled\": props.disabled ? \"\" : undefined,\n ...restAttrs,\n },\n { default: () => [h(\"div\", { class: s.TabsThumb, ref: thumbRef }), slots.default?.()] },\n ),\n },\n )\n }\n },\n})\n\n\nconst useTabsContext = () => {\n const context = inject(TabsContextKey, null)\n\n if (!context) {\n throw new Error(\"`TabsTab` must be used within `Tabs`\")\n }\n\n return context\n}\n\nconst hasContent = (nodes: VNode[] | undefined): nodes is VNode[] =>\n !!nodes?.some((node) => {\n if (!isVNode(node)) return node != null && typeof node !== \"boolean\" && String(node) !== \"\"\n if (node.type === Comment) return false\n if (node.type === Text) return String(node.children ?? \"\") !== \"\"\n if (Array.isArray(node.children) && typeof node.type === \"symbol\") return hasContent(node.children as VNode[])\n return true\n })\n\nconst isBadgeObject = (badge: TabsBadgeProp | undefined): badge is Extract<TabsBadgeProp, { content: unknown }> =>\n badge != null && typeof badge === \"object\" && \"content\" in badge\n\n// A text icon (\"☀\") stands in an element, as an icon component does, so a phone can hide it beside a label\nconst renderIcon = (icon: TabsIconProp | undefined) => {\n if (icon == null) return icon\n if (isVNode(icon)) return wrapTextIcon([icon])\n if (typeof icon === \"string\") return icon === \"\" ? null : h(\"span\", icon)\n return h(icon)\n}\n\n/** True when the slot draws text of its own, also inside a fragment (`<template v-if>`) */\nconst hasTextIcon = (nodes: VNodeArrayChildren): boolean =>\n nodes.some((node) => {\n if (typeof node === \"string\") return node.trim() !== \"\"\n if (typeof node === \"number\") return true\n if (Array.isArray(node)) return hasTextIcon(node)\n if (!isVNode(node)) return false\n if (node.type === Text) return String(node.children).trim() !== \"\"\n return node.type === Fragment && Array.isArray(node.children) && hasTextIcon(node.children)\n })\n\n/** The slot's text stands in a span, as the React icon's does; a fragment holding text keeps its key, and every\n * other node, a fragment of icons too, stays as it is. */\nconst wrapTextIcon = (nodes: VNodeArrayChildren): VNodeArrayChildren =>\n nodes.map((node) => {\n if (typeof node === \"string\" || typeof node === \"number\") return hasTextIcon([node]) ? h(\"span\", String(node)) : node\n if (Array.isArray(node)) return hasTextIcon(node) ? wrapTextIcon(node) : node\n if (!isVNode(node)) return node\n if (node.type === Text) return hasTextIcon([node]) ? h(\"span\", String(node.children)) : node\n if (node.type === Fragment && Array.isArray(node.children) && hasTextIcon(node.children)) {\n return h(Fragment, { key: node.key ?? undefined }, wrapTextIcon(node.children))\n }\n return node\n })\n\nconst TabComponent = defineComponent({\n name: \"TabsTab\",\n inheritAttrs: false,\n props: {\n /** Tab value */\n value: { type: String, required: true },\n /** Icon before the text content: a component, a vnode or text. The `icon` slot takes precedence. */\n icon: [String, Object, Function] as PropType<TabsIconProp>,\n /**\n * Badge after the text content: a plain value, or an object with\n * `content`, `color`, `variant`, `pill` and `loading`. The `badge` slot\n * replaces the content and keeps the object's styling.\n */\n badge: { type: [String, Number, Object] as PropType<TabsBadgeProp>, default: undefined },\n /** Disable the individual tab */\n disabled: { type: Boolean, default: undefined },\n },\n emits: {\n /** A click, before the tab is selected; `event.preventDefault()` keeps the selection */\n click: (event: MouseEvent) => {\n void event\n return true\n },\n },\n setup(props, { slots, attrs, emit }) {\n const context = useTabsContext()\n\n return () => {\n const disabled = context.disabled.value || !!props.disabled\n const selected = context.value.value\n const pressed = !!selected && selected === props.value\n const { listeners, rest: restAttrs } = splitListeners(attrs, ITEM_COMPOSED)\n\n // Normalize badge prop; the slot replaces its content\n const badgeSlot = slots.badge?.()\n const badgeObject = isBadgeObject(props.badge) ? props.badge : undefined\n const badgeProps = hasContent(badgeSlot)\n ? { ...badgeObject, content: badgeSlot }\n : props.badge != null\n ? (badgeObject ?? { content: props.badge as TabsContent })\n : null\n\n const children = slots.default?.()\n const iconSlot = slots.icon?.()\n\n // Radix Toggle: the caller's click handler runs first and can cancel the toggle\n const handleClick = (event: MouseEvent) => {\n // React does not dispatch mouse handlers on a disabled button\n if (disabled) return\n // An emitted event, so a `.once` listener runs before the selection too\n emit(\"click\", event)\n if (event.defaultPrevented) return\n context.setValue(pressed ? \"\" : props.value)\n }\n\n return h(\n RovingFocusItem,\n { asChild: true, focusable: !disabled, active: pressed },\n {\n default: () =>\n h(\n RovingElement,\n {\n \"as\": \"button\",\n \"composed\": ITEM_COMPOSED,\n \"listeners\": listeners,\n // Radix Toggle defaults, then the single-select radio semantics\n \"type\": \"button\",\n \"data-state\": pressed ? \"on\" : \"off\",\n \"data-disabled\": disabled ? \"\" : undefined,\n \"role\": \"radio\",\n \"aria-checked\": pressed,\n // Reka's RovingFocusItem marks the active item; Radix does not\n \"data-active\": undefined,\n // Caller attributes win, as React spreads them after `className`\n \"class\": s.Tab,\n ...restAttrs,\n \"disabled\": disabled,\n \"onPointerenter\": handlePressableMouseEnter,\n \"onClick\": handleClick,\n },\n {\n default: () => [\n h(\"span\", { class: s.TabContent }, [\n hasContent(iconSlot) ? wrapTextIcon(iconSlot) : renderIcon(props.icon),\n hasContent(children) ? h(\"span\", { class: s.TabLabel }, children) : null,\n badgeProps\n ? h(\n \"span\",\n {\n \"class\": s.TabBadge,\n \"data-color\": badgeProps.color ?? \"secondary\",\n \"data-variant\": badgeProps.variant ?? \"soft\",\n \"data-pill\": badgeProps.pill ? \"\" : undefined,\n },\n badgeProps.loading ? [h(LoadingIndicator)] : [badgeProps.content as VNodeArrayChildren[number]],\n )\n : null,\n ]),\n context.vertical.value ? h(CheckMd, { \"class\": s.TabCheckmark, \"aria-hidden\": \"true\" }) : null,\n ],\n },\n ),\n },\n )\n }\n },\n})\n\ntype TabOwnProps = InstanceType<typeof TabComponent>[\"$props\"]\n\n/** TabsTab props; other attributes (`aria-label`, ...) fall through to the button. */\nexport type TabProps = TabOwnProps & { \"aria-label\"?: string }\n\nexport const TabsTab = TabComponent as typeof TabComponent & { new (): { $props: TabProps } }\n\n/** Backward-compat alias of `TabsTab`, like React's `Tabs.Option` */\nexport const TabsOption: typeof TabsTab = TabsTab\n\n// ---------------------------------------------------------------------------\n// overflow=\"menu\" (React's OverflowTabs)\n\n/** Value of the menu button; no real tab has it */\nconst MORE_VALUE = \"__plexui_tabs_more__\"\n\ntype Slots = Record<string, ((...args: unknown[]) => VNodeArrayChildren) | undefined>\n\n/** The TabsTab vnodes of a default slot, through fragments (`v-for`, `<template>`) */\nconst tabVNodes = (nodes: VNodeArrayChildren | undefined): VNode[] =>\n (nodes ?? []).flatMap((node) => {\n if (!isVNode(node)) return []\n if (node.type === Fragment && Array.isArray(node.children)) return tabVNodes(node.children as VNodeArrayChildren)\n return node.type === TabComponent ? [node] : []\n })\n\nconst slotsOf = (node: VNode) => (node.children && typeof node.children === \"object\" && !Array.isArray(node.children) ? (node.children as Slots) : {})\n\n/** A tab's slot content; a vnode's raw slot may return a string or nothing */\nconst slotContent = (node: VNode, name: string): VNodeArrayChildren => {\n const content = slotsOf(node)[name]?.() as VNodeArrayChildren | VNodeArrayChildren[number] | undefined\n if (content == null) return []\n return Array.isArray(content) ? content : [content]\n}\n\nconst labelContent = (node: VNode) => slotContent(node, \"default\")\n\nconst plainText = (node: unknown): string => {\n if (typeof node === \"string\" || typeof node === \"number\") return String(node)\n if (Array.isArray(node)) return node.map(plainText).join(\"\")\n if (isVNode(node)) {\n if (node.type === Comment) return \"\"\n if (typeof node.children === \"string\") return node.children\n if (Array.isArray(node.children)) return plainText(node.children)\n return plainText(labelContent(node))\n }\n return \"\"\n}\n\nconst tabProps = (node: VNode) => (node.props ?? {}) as Record<string, unknown>\n\n/** Slot content that renders something: text, or a vnode other than a comment */\nconst filled = (nodes: VNodeArrayChildren) =>\n plainText(nodes) !== \"\" || nodes.some((node) => isVNode(node) && node.type !== Comment)\n\nconst badgeText = (badge: unknown) => (isBadgeObject(badge as TabsBadgeProp) ? plainText((badge as { content: unknown }).content) : plainText(badge))\n\n/** A tab's icon: the `icon` slot, else the prop */\nconst tabIcon = (node: VNode) => {\n const iconSlot = slotContent(node, \"icon\")\n return filled(iconSlot) ? iconSlot : renderIcon(tabProps(node).icon as TabsIconProp | undefined)\n}\n\n/** A tab's count as text: the `badge` slot, else the prop */\nconst tabCount = (node: VNode) => plainText(slotContent(node, \"badge\")) || badgeText(tabProps(node).badge)\n\n/** A raw vnode prop holds a boolean attribute as written: `<TabsTab disabled>` is \"\" */\nconst tabDisabled = (node: VNode) => {\n const disabled = tabProps(node).disabled\n return disabled != null && disabled !== false\n}\n\n/** A tab's name: its text, else its accessible name, else its value */\nconst tabLabel = (node: VNode) =>\n plainText(labelContent(node)) || (tabProps(node)[\"aria-label\"] as string | undefined) || String(tabProps(node).value)\n\n/** What a tab's width depends on: the strip measures again when it changes */\nconst tabsSignature = (nodes: VNode[]) =>\n nodes\n .map((node) =>\n [\n tabProps(node).value,\n plainText(labelContent(node)),\n tabCount(node),\n tabProps(node).icon != null || slotsOf(node).icon != null,\n ].join(\"\\u0000\"),\n )\n .join(\"\\u0001\")\n\n/**\n * MenuTrigger sets `data-state` (open or closed) on its child, while a tab\n * keeps `on` or `off` in the same attribute and the thumb finds the active tab\n * by it. The menu's value does not reach the tab; its handlers and\n * `aria-haspopup` / `aria-expanded` do.\n */\nconst MoreTab = defineComponent({\n name: \"TabsMoreTab\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const rest = { ...attrs }\n delete rest[\"data-state\"]\n return h(TabComponent, rest as TabProps, slots)\n }\n },\n})\n\nconst TabsPublic = defineComponent({\n name: \"Tabs\",\n inheritAttrs: false,\n props: {\n ...tabsProps,\n /**\n * What happens to tabs that do not fit in one row: the strip scrolls\n * sideways (`scroll`), or they move into a menu at its end (`menu`). The\n * menu button shows the active tab's name when it is a hidden one.\n * Horizontal tabs without `block` only.\n * @default \"scroll\"\n */\n overflow: { type: String as PropType<\"scroll\" | \"menu\">, default: \"scroll\" },\n /** Text of the menu button with `overflow=\"menu\"`. @default \"More\" */\n overflowLabel: { type: String, default: \"More\" },\n },\n emits: tabsEmits,\n setup(props, { slots, attrs, emit }) {\n const hostRef = ref<HTMLDivElement | null>(null)\n // Uncontrolled like the group: `value` unset starts empty\n const uncontrolledValue = ref(\"\")\n const current = computed(() => (props.value !== undefined ? props.value : uncontrolledValue.value))\n const select = (next: string) => {\n if (props.value === undefined) uncontrolledValue.value = next\n emit(\"update:value\", next)\n emit(\"change\", next)\n }\n\n // { count: null } while the measuring pass renders every tab and the\n // menu button; a new object each time, so an unchanged count still renders\n const measured = shallowRef<{ count: number | null }>({ count: null })\n let measuredSignature = \"\"\n let measuredActive = -1\n let lastRender = { measuring: true, signature: \"\", activeIndex: -1, length: 0 }\n let boxWidth = -1\n\n const measure = () => {\n if (!lastRender.measuring) return\n const root = hostRef.value?.firstElementChild\n if (!(root instanceof HTMLElement)) return\n\n const buttons = Array.from(root.querySelectorAll<HTMLElement>(\":scope > button\"))\n if (buttons.length !== lastRender.length + 1) return\n\n const widths = buttons.map((button) => button.getBoundingClientRect().width)\n const moreButton = buttons[buttons.length - 1]\n const moreWidth = widths.pop() ?? 0\n const style = getComputedStyle(root)\n const available =\n root.getBoundingClientRect().width -\n (Number.parseFloat(style.paddingLeft) || 0) -\n (Number.parseFloat(style.paddingRight) || 0)\n const gap = Number.parseFloat(style.columnGap) || 0\n boxWidth = hostRef.value?.parentElement?.clientWidth ?? -1\n measuredSignature = lastRender.signature\n measuredActive = lastRender.activeIndex\n\n if (available <= 0) {\n measured.value = { count: lastRender.length }\n return\n }\n\n const { activeIndex } = lastRender\n const chevron = moreButton?.querySelector(\"svg\")\n const chevronWidth = chevron?.getBoundingClientRect().width ?? 0\n const labelGap = chevron?.parentElement ? Number.parseFloat(getComputedStyle(chevron.parentElement).columnGap) || 0 : 0\n const activeWidth = activeIndex < 0 ? 0 : (widths[activeIndex] ?? 0) + chevronWidth + labelGap\n measured.value = { count: visibleTabCount(widths, moreWidth, activeWidth, activeIndex, gap, available) }\n }\n\n // The width to fit is the container's; reports during a measuring pass\n // are skipped. The menu strip may appear or go after mount, with `overflow`\n let observer: ResizeObserver | undefined\n let observed: HTMLElement | null = null\n const observeBox = () => {\n const box = hostRef.value?.parentElement ?? null\n if (box === observed) return\n observer?.disconnect()\n observer = undefined\n observed = box\n if (!box || typeof ResizeObserver === \"undefined\") return\n observer = new ResizeObserver(() => {\n if (lastRender.measuring) return\n const width = box.clientWidth\n if (width === boxWidth) return\n boxWidth = width\n measured.value = { count: null }\n })\n observer.observe(box)\n }\n onMounted(() => {\n measure()\n observeBox()\n })\n onUpdated(() => {\n measure()\n observeBox()\n })\n onBeforeUnmount(() => observer?.disconnect())\n\n const forward = {\n \"onUpdate:value\": (value: string) => emit(\"update:value\", value),\n \"onChange\": (value: string) => emit(\"change\", value),\n \"onClick\": (event: MouseEvent) => emit(\"click\", event),\n }\n\n return () => {\n const { overflow, overflowLabel, ...rootProps } = props\n if (overflow !== \"menu\" || props.block || props.orientation === \"vertical\") {\n return h(TabsComponent, { ...rootProps, ...attrs, ...forward }, slots)\n }\n\n const items = tabVNodes(slots.default?.() as VNodeArrayChildren | undefined)\n // The strip's own props size the tabs and the menu button too\n const signature = [overflowLabel, props.size, props.variant, props.gutterSize, props.pill, props.flush, props.mobileMaterial, tabsSignature(items)].join(\n \"\\u0002\",\n )\n const activeIndex = items.findIndex((item) => tabProps(item).value === current.value)\n const { count } = measured.value\n // New tabs measure again; so does an active tab that moves under the\n // menu button or back out, since the button carries the hidden one's name\n const stale =\n count !== null &&\n (signature !== measuredSignature ||\n (activeIndex !== measuredActive && (measuredActive >= count || activeIndex >= count)))\n const measuring = count === null || stale\n lastRender = { measuring, signature, activeIndex, length: items.length }\n\n const shown = measuring ? items : items.slice(0, count)\n const hidden = measuring ? [] : items.slice(count)\n const hiddenActive = hidden.find((item) => tabProps(item).value === current.value) ?? null\n\n const strip = h(\n TabsComponent,\n {\n ...rootProps,\n ...attrs,\n \"data-overflow\": \"menu\",\n \"value\": hiddenActive ? MORE_VALUE : current.value,\n // Pressing the menu button opens the menu; it is not a tab\n \"onUpdate:value\": (next: string) => {\n if (next !== MORE_VALUE) select(next)\n },\n \"onClick\": forward.onClick,\n },\n {\n default: () => [\n ...shown,\n measuring || hidden.length > 0\n ? h(MenuTrigger, null, {\n default: () =>\n h(MoreTab, { value: MORE_VALUE }, {\n default: () => [\n h(\"span\", { class: s.OverflowLabel }, [hiddenActive ? tabLabel(hiddenActive) : overflowLabel, h(ChevronDownMd)]),\n ],\n }),\n })\n : null,\n ],\n },\n )\n\n return h(\"div\", { ref: hostRef, class: s.OverflowHost }, [\n h(Menu, null, {\n default: () => [\n strip,\n h(MenuContent, { align: \"end\", minWidth: \"auto\" }, {\n default: () =>\n h(MenuRadioGroup, { \"value\": current.value, \"onUpdate:value\": select }, {\n default: () =>\n hidden.map((item) => {\n const itemProps = tabProps(item)\n const count = tabCount(item)\n const label = labelContent(item)\n return h(\n MenuRadioItem,\n {\n key: String(itemProps.value),\n value: String(itemProps.value),\n disabled: props.disabled || tabDisabled(item),\n },\n {\n default: () => [\n tabIcon(item),\n filled(label)\n ? label\n : ((itemProps[\"aria-label\"] as string | undefined) ?? String(itemProps.value)),\n // A tab's count moves into the menu with it\n count !== \"\" ? h(\"span\", { class: s.OverflowBadge }, count) : null,\n ],\n },\n )\n }),\n }),\n }),\n ],\n }),\n ])\n }\n },\n})\n\ntype TabsOwnProps = InstanceType<typeof TabsPublic>[\"$props\"]\n\n/** Tabs props plus the attributes that fall through to the group element, as in React. */\nexport type TabsProps = TabsOwnProps & Omit<HTMLAttributes, keyof TabsOwnProps> & { \"aria-label\"?: string }\n\nexport const Tabs = TabsPublic as typeof TabsPublic & { new (): { $props: TabsProps } }\n"]}
1
+ {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,CAAC,EACD,MAAM,EACN,OAAO,EACP,eAAe,EACf,SAAS,EACT,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,KAAK,GAQN,MAAM,KAAK,CAAA;AACZ,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC7G,OAAO,EACL,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,GACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,OAAO,MAAM,wBAAwB,CAAA;AAC5C,OAAO,aAAa,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,CAAC,MAAM,gDAAgD,CAAA;AA2C9D,MAAM,cAAc,GAAmC,MAAM,CAAC,YAAY,CAAC,CAAA;AAM3E,+DAA+D;AAC/D,MAAM,WAAW,GAAG,CAAC,KAA0B,EAAE,GAAmB,EAAE,Q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CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oCAClB,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;oCAChC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;oCAC5B,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAA;oCAChC,OAAO,CAAC,CACN,aAAa,EACb;wCACE,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;wCAC5B,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;wCAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;qCAC9C,EACD;wCACE,OAAO,EAAE,GAAG,EAAE,CAAC;4CACb,OAAO,CAAC,IAAI,CAAC;4CACb,MAAM,CAAC,KAAK,CAAC;gDACX,CAAC,CAAC,KAAK;gDACP,CAAC,CAAC,CAAE,SAAS,CAAC,YAAY,CAAwB,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;4CAChF,4CAA4C;4CAC5C,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,aAAa,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;yCACnE;qCACF,CACF,CAAA;gCACH,CAAC,CAAC;6BACL,CAAC;yBACL,CAAC;qBACH;iBACF,CAAC;aACH,CAAC,CAAA;QACJ,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA;AAOF,MAAM,CAAC,MAAM,IAAI,GAAG,UAAmE,CAAA","sourcesContent":["import {\n Comment,\n Fragment,\n Text,\n computed,\n defineComponent,\n h,\n inject,\n isVNode,\n onBeforeUnmount,\n onMounted,\n onUpdated,\n provide,\n ref,\n shallowRef,\n watch,\n type Component,\n type ComputedRef,\n type HTMLAttributes,\n type InjectionKey,\n type PropType,\n type VNode,\n type VNodeArrayChildren,\n} from \"vue\"\nimport { RovingFocusGroup, RovingFocusItem } from \"reka-ui\"\nimport type { ControlSize, SemanticColors, Sizes, Variants } from \"@plexui/styles/types\"\nimport { handlePressableMouseEnter, prefersReducedMotion, waitForAnimationFrame } from \"../../lib/helpers.js\"\nimport {\n GROUP_COMPOSED,\n ITEM_COMPOSED,\n RovingElement,\n focusFirst,\n splitListeners,\n} from \"../../lib/rovingFocus.js\"\nimport CheckMd from \"../Icon/svg/CheckMd.js\"\nimport ChevronDownMd from \"../Icon/svg/ChevronDownMd.js\"\nimport { LoadingIndicator } from \"../Indicator/index.js\"\nimport { Menu, MenuContent, MenuRadioGroup, MenuRadioItem, MenuTrigger } from \"../Menu/index.js\"\nimport { visibleTabCount } from \"./overflow.js\"\nimport { equalizeSegments, watchSegments } from \"./segments.js\"\nimport s from \"@plexui/styles/components/Tabs/Tabs.module.css\"\n\n// Vue port of packages/ui/src/components/Tabs/Tabs.tsx. Props, defaults,\n// rendered DOM and behaviour match React (checked by the parity tests).\n//\n// React builds on Radix ToggleGroup (type=\"single\"). Reka's ToggleGroupItem\n// renders Toggle semantics (`aria-pressed`, `data-active`, no `role=\"radio\"`)\n// and runs its click toggle before handlers the caller passes, so the\n// single-select part of Radix ToggleGroup/Toggle (about twenty lines) is\n// inlined here, and keyboard focus comes from Reka's RovingFocusGroup and\n// RovingFocusItem, the same roving tabindex Radix ToggleGroup uses.\n\nexport type SizeVariant = \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\"\nexport type TabsVariant = \"segmented\" | \"underline\"\nexport type TabsOrientation = \"horizontal\" | \"vertical\"\n\n/** Content React accepts as a ReactNode, in Vue terms */\ntype TabsContent = string | number | VNode | VNodeArrayChildren\n\n/** Badge configuration for TabsTab: a plain value, or an object with content and styling */\nexport type TabsBadgeProp =\n | string\n | number\n | VNode\n | {\n content: TabsContent\n color?: SemanticColors<\"secondary\" | \"success\" | \"danger\" | \"warning\" | \"info\" | \"discovery\" | \"caution\">\n variant?: Variants<\"soft\" | \"solid\">\n pill?: boolean\n loading?: boolean\n }\n\n/** Icon for TabsTab: a component (e.g. an icon from @plexui/vue), a vnode, or text */\nexport type TabsIconProp = string | VNode | Component\n\ntype TabsContextValue = {\n value: ComputedRef<string>\n disabled: ComputedRef<boolean>\n /** Vertical tabs are a list on a phone, where the selected row shows a checkmark */\n vertical: ComputedRef<boolean>\n setValue: (nextValue: string) => void\n}\n\nconst TabsContextKey: InjectionKey<TabsContextValue> = Symbol(\"PlexUITabs\")\n\ntype ExposedRovingFocusGroup = { getItems: () => { ref: HTMLElement }[] }\n\ntype ResizeEntryBox = \"contentBoxSize\" | \"borderBoxSize\" | \"devicePixelContentBoxSize\"\n\n// Same reading as usehooks-ts' useResizeObserver (content-box)\nconst extractSize = (entry: ResizeObserverEntry, box: ResizeEntryBox, sizeType: \"inlineSize\" | \"blockSize\") => {\n const boxSize = entry[box] as ResizeObserverSize[] | ResizeObserverSize | undefined\n if (!boxSize) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"]\n }\n return undefined\n }\n return Array.isArray(boxSize) ? boxSize[0][sizeType] : boxSize[sizeType]\n}\n\n\nconst tabsProps = {\n /** Controlled value for the group. Bind with `v-model:value`; leave unset for an uncontrolled group. */\n value: String,\n /**\n * Visual variant of the tab group\n * - `\"segmented\"`: background container with sliding highlight (default)\n * - `\"underline\"`: no background, animated line indicator under active tab\n * @default \"segmented\"\n */\n variant: { type: String as PropType<TabsVariant>, default: \"segmented\" },\n /** Orientation of the tab layout. @default \"horizontal\" */\n orientation: { type: String as PropType<TabsOrientation>, default: \"horizontal\" },\n /**\n * Controls the size of the tabs, `3xs` (22px) to `3xl` (48px). On a phone horizontal tabs take the two sizes of\n * the iOS 27 segmented control: `sm` and smaller the small 32px one, `md` and larger the large 48px one (49px with\n * `mobileMaterial=\"flat\"`). @default \"md\"\n */\n size: { type: String as PropType<ControlSize>, default: \"md\" },\n /** Controls gutter on the edges of the tabs, defaults to value from `size`. */\n gutterSize: String as PropType<Sizes<\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\">>,\n /** Disable the entire group. @default false */\n disabled: { type: Boolean, default: false },\n /** Display the control as a block element with equal width segments. @default false */\n block: { type: Boolean, default: false },\n /** Fully rounded pill shape. Only applies to the `\"segmented\"` variant. @default true */\n pill: { type: Boolean, default: true },\n /**\n * Flush underline style: no tab padding, so the indicator matches the text\n * width, gap spacing and no bottom border. Only applies to the `\"underline\"` variant.\n * @default false\n */\n flush: { type: Boolean, default: false },\n /**\n * Phone surface of horizontal tabs. On a phone the large control (`md` and larger) is the glass capsule of iOS 27\n * apps and the small one (`sm` and smaller) the plain capsule of SwiftUI's segmented Picker; `flat` gives the large\n * one the plain look of SwiftUI's `.controlSize(.large)`, and `glass` gives the small one `.glassEffect()`, like the\n * Button prop of the same name. Inside a phone Toolbar the control is the large glass one anyway. Desktop keeps the\n * chosen variant. @default \"glass\" at md and larger, \"flat\" at sm and smaller\n */\n mobileMaterial: { type: String as PropType<\"glass\" | \"flat\">, default: undefined },\n /**\n * Widths of the segments of horizontal tabs on a phone, as UISegmentedControl sets them. `equal` gives every\n * segment the widest one's width, its default; `content` gives each its label and the same air around it, as\n * `apportionsSegmentWidthsByContent` does, for a compact control. Equal segments that do not fit take their labels'\n * widths anyway; where those still do not fit, the air beside each label narrows, to 4px, and what still does not\n * fit scrolls. A `block` control fills its row either way. Desktop tabs always take their labels' widths. @default \"equal\"\n */\n mobileSegmentWidth: { type: String as PropType<\"equal\" | \"content\">, default: undefined },\n}\n\nconst tabsEmits = {\n /** A new value was selected (`v-model:value`) */\n \"update:value\": (value: string) => typeof value === \"string\",\n /** Same payload as `update:value`, named after React's `onChange` */\n \"change\": (value: string) => typeof value === \"string\",\n /** Any click on the control, even if a new value was not selected */\n \"click\": (event: MouseEvent) => event.type === \"click\",\n}\n\n// The group itself. `Tabs` renders it as it is, or measures and splits it\n// for `overflow=\"menu\"`\n/** On a phone the large control's selection travels as a lens of glass, as iOS 27.2 draws it. Recorded frame by frame\n * 11.11 (ref-app segmented-bar-text4, a toolbar Picker of Day, Week, Month and Year switched Day to Year and back,\n * after the owner's «анимация не правильная и стиль» and «day<->year пробуй переключать»; segmented-bar-symbols, a\n * segment away, before it): the gray selection clears into a lens within 45ms, taller than the capsule (11pt) and\n * wider the faster it goes (36pt at 200ms), and carries across; it lands as the gray selection again by 300ms,\n * pressed against its segment's far side (7pt narrower, 6pt taller and its centre 2.5% of the way past at 430ms), and\n * springs back by 750ms while the label under it dims to 76% and comes back. The centre's path is a share of the\n * distance and the growth is in points, as both recordings show: as much growth a segment away as three. touch.css\n * names the lens's growth on the large control only, so everywhere else the selection just slides with its\n * transition. CSS has no refraction, so the lens is its rim, its tint and the capsule's edge seen through it. */\nlet lensRun = 0\nconst LENS_ID = \"segmented-control-lens\"\nconst LENS_DURATION = 750\n// At each measured frame: [ms, the centre's share of the distance, share of the growth's width, share of its height]\nconst LENS_PATH = [\n [0, 0, 0, 0],\n [10, 0.014, 0.036, 0.065],\n [32, 0.077, 0.13, 0.19],\n [47, 0.169, 0.22, 0.44],\n [70, 0.378, 0.44, 0.87],\n [92, 0.478, 0.52, 1],\n [125, 0.647, 0.7, 0.93],\n [150, 0.773, 0.85, 0.87],\n [182, 0.856, 0.96, 0.93],\n [205, 0.9, 1, 1],\n [227, 0.932, 0.96, 0.93],\n [245, 0.951, 0.8, 0.44],\n [262, 0.964, 0.67, 0.31],\n [295, 0.989, 0.37, 0.31],\n [330, 1.005, 0.13, 0.31],\n [363, 1.016, -0.02, 0.37],\n [395, 1.023, -0.13, 0.5],\n [430, 1.025, -0.19, 0.56],\n [497, 1.022, -0.19, 0.56],\n [545, 1.018, -0.17, 0.37],\n [597, 1.014, -0.11, 0.25],\n [647, 1.007, -0.075, 0.12],\n [697, 1.004, -0.036, 0],\n [750, 1, 0, 0],\n] as const\n// The selected label's opacity as the lens lands: [ms, opacity]\nconst LENS_LABEL = [\n [0, 1],\n [380, 1],\n [428, 0.77],\n [460, 0.76],\n [515, 0.85],\n [580, 0.93],\n [650, 0.98],\n [713, 1],\n [750, 1],\n] as const\ntype ThumbBox = { x: number; width: number }\ntype LensRun = { from: ThumbBox; to: ThumbBox; move: Animation; label?: Animation }\nconst lensRuns = new WeakMap<HTMLElement, LensRun>()\nconst round = (value: number) => Math.round(value * 100) / 100\n// The box the lens draws at a time of its run\nconst lensBox = ({ from, to }: LensRun, ms: number, growth: number): ThumbBox => {\n const next = LENS_PATH.findIndex(([time]) => time >= ms)\n const at = next < 0 ? LENS_PATH.length - 1 : Math.max(1, next)\n const [t0, share0, wide0] = LENS_PATH[at - 1]\n const [t1, share1, wide1] = LENS_PATH[Math.min(at, LENS_PATH.length - 1)]\n const k = t1 > t0 ? Math.min(1, Math.max(0, (ms - t0) / (t1 - t0))) : 1\n const share = share0 + (share1 - share0) * k\n const width = from.width + (to.width - from.width) * Math.min(share, 1) + growth * (wide0 + (wide1 - wide0) * k)\n return { x: from.x + from.width / 2 + (to.x + to.width / 2 - from.x - from.width / 2) * share - width / 2, width }\n}\n/** Where a horizontal thumb is drawn, from its control's left edge: where the script set it, or where a lens still\n * on its way has it, so a switch mid-flight sets off from there */\nconst thumbBox = (thumb: HTMLElement): ThumbBox | null => {\n const offset = /^translateX\\((-?[\\d.]+)px\\)$/.exec(thumb.style.transform)\n const width = parseFloat(thumb.style.width)\n if (!offset || !(width > 0)) return null\n const run = lensRuns.get(thumb)\n const ms = Number(run?.move.currentTime)\n if (run && (run.move.playState === \"running\" || run.move.playState === \"paused\") && ms >= 0) {\n const growth = lensGrowth(getComputedStyle(thumb))\n if (growth) return lensBox(run, ms, growth[0])\n }\n return { x: parseFloat(offset[1]), width }\n}\n// The lens's growth at its widest and tallest, which touch.css names on the large control only\nconst lensGrowth = (style: CSSStyleDeclaration) => {\n const [wide = Number.NaN, tall = wide] = style.getPropertyValue(\"--segmented-control-thumb-lens-outset\").trim().split(/\\s+/).map(parseFloat)\n return wide >= 0 && tall >= 0 ? ([wide, tall] as const) : null\n}\nconst playThumbLens = (thumb: HTMLElement, from: ThumbBox | null) => {\n if (typeof thumb.animate !== \"function\") return\n // A lens still on its way ends first, so the thumb's own fill and edge are read below (and none outlives a switch\n // to reduced motion)\n thumb.getAnimations().forEach((animation) => {\n if (animation.id === LENS_ID) animation.cancel()\n })\n lensRuns.get(thumb)?.label?.cancel()\n lensRuns.delete(thumb)\n if (!from || prefersReducedMotion()) return\n const style = getComputedStyle(thumb)\n const growth = lensGrowth(style)\n const to = thumbBox(thumb)\n const top = parseFloat(style.top)\n const bottom = parseFloat(style.bottom)\n if (!growth || !to || !Number.isFinite(top) || !Number.isFinite(bottom)) return\n const [wide, tall] = growth\n const timing = { id: LENS_ID, duration: LENS_DURATION }\n const run: LensRun = { from, to, move: undefined as unknown as Animation }\n // The thumb's box at each frame replaces its own while the lens runs (its transition is overridden); the height\n // grows about the middle\n run.move = thumb.animate(\n LENS_PATH.map(([ms, , , high]) => {\n const box = lensBox(run, ms, wide)\n const grown = (tall * high) / 2\n return {\n offset: ms / LENS_DURATION,\n transform: `translateX(${round(box.x)}px)`,\n width: `${round(Math.max(1, box.width))}px`,\n top: `${round(top - grown)}px`,\n bottom: `${round(bottom - grown)}px`,\n }\n }),\n timing,\n )\n const lens = {\n backgroundColor: style.getPropertyValue(\"--segmented-control-thumb-lens-background\").trim(),\n boxShadow: style.getPropertyValue(\"--segmented-control-thumb-lens-shadow\").trim(),\n }\n const rest = { backgroundColor: style.backgroundColor, boxShadow: style.boxShadow }\n // The gray clears as the lens lifts (45ms) and comes back as it lands (250 to 300ms)\n const fill = thumb.animate(\n [\n { offset: 0, ...rest },\n { offset: 45 / LENS_DURATION, ...lens },\n { offset: 250 / LENS_DURATION, ...lens },\n { offset: 300 / LENS_DURATION, ...rest },\n { offset: 1, ...rest },\n ],\n timing,\n )\n const root = thumb.parentElement\n const selected = root?.querySelector<HTMLElement>('[data-state=\"on\"]')\n if (selected && typeof selected.animate === \"function\") {\n run.label = selected.animate(\n LENS_LABEL.map(([ms, opacity]) => ({ offset: ms / LENS_DURATION, opacity })),\n timing,\n )\n }\n lensRuns.set(thumb, run)\n // The frame a switch is drawn in also lays out whatever the switch changes around the control, which can take a\n // few frames' time; the lens holds its first frame until then and sets off from the next, so none of its way is\n // skipped (a tap's first 45ms were, recorded in Safari 11.11)\n if (typeof requestAnimationFrame === \"function\") {\n const held = [run.move, fill, run.label].filter((animation): animation is Animation => typeof animation?.pause === \"function\")\n held.forEach((animation) => animation.pause())\n requestAnimationFrame(() => {\n held.forEach((animation) => {\n if (animation.playState === \"paused\") animation.play()\n })\n })\n }\n // The lens reaches past the capsule, which clips what scrolls in it: a control whose segments all fit lets it out\n // for the switch\n if (!root || root.scrollWidth > root.clientWidth + 1) return\n const id = String(++lensRun)\n root.setAttribute(\"data-lens\", id)\n const done = () => {\n if (root.getAttribute(\"data-lens\") === id) root.removeAttribute(\"data-lens\")\n }\n if (run.move?.finished) run.move.finished.then(done, done)\n else done()\n}\n\nconst TabsComponent = defineComponent({\n name: \"TabsRoot\",\n inheritAttrs: false,\n props: tabsProps,\n emits: tabsEmits,\n setup(props, { slots, attrs, emit }) {\n const rootRef = ref<HTMLDivElement | null>(null)\n const thumbRef = ref<HTMLDivElement | null>(null)\n const groupRef = ref<ExposedRovingFocusGroup | null>(null)\n let prevSize = props.size\n let prevValue = props.value\n\n // Radix useControllableState: `value` undefined means uncontrolled, starting empty\n const uncontrolledValue = ref(\"\")\n const currentValue = computed(() => (props.value !== undefined ? props.value : uncontrolledValue.value))\n\n const handleValueChange = (nextValue: string) => {\n // Only trigger onChange when a value exists\n // Disallow toggling off enabled items\n if (nextValue) {\n emit(\"update:value\", nextValue)\n emit(\"change\", nextValue)\n }\n }\n\n const setValue = (nextValue: string) => {\n if (props.value !== undefined) {\n if (nextValue !== props.value) handleValueChange(nextValue)\n } else {\n uncontrolledValue.value = nextValue\n }\n }\n\n // Radix reports uncontrolled changes from an effect, after the click has\n // finished bubbling (so the group's `click` comes first)\n watch(uncontrolledValue, handleValueChange, { flush: \"post\" })\n\n provide(TabsContextKey, {\n value: currentValue,\n disabled: computed(() => props.disabled),\n vertical: computed(() => props.orientation === \"vertical\"),\n setValue,\n })\n\n const applyThumbSizing = (isVertical: boolean, attemptScroll: boolean) => {\n const root = rootRef.value\n const thumb = thumbRef.value\n\n if (!root || !thumb) {\n return\n }\n\n // Get selected node\n const activeNode = root.querySelector<HTMLDivElement>('[data-state=\"on\"]')\n\n // Impossible\n if (!activeNode) {\n return\n }\n\n if (isVertical) {\n const rootHeight = root.clientHeight\n let targetHeight = Math.floor(activeNode.clientHeight)\n const targetOffset = activeNode.offsetTop\n\n // Detect subpixel edge case\n if (rootHeight - (targetHeight + targetOffset) < 2) {\n targetHeight = targetHeight - 1\n }\n\n thumb.style.height = `${Math.floor(targetHeight)}px`\n thumb.style.width = \"\"\n thumb.style.transform = `translateY(${targetOffset}px)`\n\n // Scroll into view if needed\n if (root.scrollHeight > rootHeight) {\n const buffer = rootHeight * 0.15\n const scrollTop = root.scrollTop\n const top = activeNode.offsetTop\n const bottom = top + targetHeight\n if (top < scrollTop + buffer || bottom > scrollTop + rootHeight - buffer) {\n if (attemptScroll) {\n // Scroll the control only: scrollIntoView also scrolls the page to it (a switch to Phone\n // re-rendered a control far down the page and slid the page to it, owner 08.11)\n root.scrollTo({ top: top - (rootHeight - targetHeight) / 2, behavior: prefersReducedMotion() ? \"auto\" : \"smooth\" })\n }\n }\n }\n } else {\n const rootWidth = root.clientWidth\n let targetWidth = Math.floor(activeNode.clientWidth)\n const targetOffset = activeNode.offsetLeft\n\n // Detect if the thumb is moving too far to the edge of the container.\n // This would most commonly be due to subpixel widths adding up to excessive distance.\n if (rootWidth - (targetWidth + targetOffset) < 2) {\n targetWidth = targetWidth - 1\n }\n\n thumb.style.width = `${Math.floor(targetWidth)}px`\n thumb.style.height = \"\"\n thumb.style.transform = `translateX(${targetOffset}px)`\n\n // If the control is scrollable, ensure the active option is visible\n if (root.scrollWidth > rootWidth) {\n // Only scroll items near the edge, but not the inner 2/3.\n const buffer = rootWidth * 0.15\n const scrollLeft = root.scrollLeft\n const left = activeNode.offsetLeft\n const right = left + targetWidth\n if (left < scrollLeft + buffer || right > scrollLeft + rootWidth - buffer) {\n // Cheap trick to avoid unintentional scroll on mount - transition is set after mounting\n if (attemptScroll) {\n // Scroll the control only: scrollIntoView also scrolls the page to it (a switch to Phone\n // re-rendered a control far down the page and slid the page to it, owner 08.11)\n root.scrollTo({ left: left - (rootWidth - targetWidth) / 2, behavior: prefersReducedMotion() ? \"auto\" : \"smooth\" })\n }\n }\n }\n }\n }\n\n // React's useLayoutEffect on [value, size, gutterSize, pill, flush, isVertical, mobileSegmentWidth].\n // `value` is the prop, so an uncontrolled selection does not move the thumb\n // until the next resize, exactly as in React.\n const syncThumb = () => {\n const root = rootRef.value\n const thumb = thumbRef.value\n\n if (!root || !thumb) {\n return\n }\n\n // The segments take their width before the thumb measures (React's layout effect declared first)\n equalizeSegments(root, thumb)\n\n const isVertical = props.orientation === \"vertical\"\n const transitionProperty = isVertical\n ? \"height var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter)), transform var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter))\"\n : \"width var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter)), transform var(--tabs-thumb-transition-duration, 200ms) var(--tabs-thumb-transition-easing, var(--cubic-enter))\"\n\n const sizeChanged = prevSize !== props.size\n prevSize = props.size\n const valueChanged = prevValue !== props.value\n prevValue = props.value\n\n if (sizeChanged) {\n // Size changed - disable transition, wait for CSS, then apply sizing\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n\n waitForAnimationFrame(() => {\n applyThumbSizing(isVertical, false)\n waitForAnimationFrame(() => {\n thumb.style.transition = currentTransition\n })\n })\n } else if (thumb.style.transition) {\n // Normal update (value change, etc.): the thumb leaves with the label's colour\n const from = valueChanged ? thumbBox(thumb) : null\n applyThumbSizing(isVertical, true)\n if (valueChanged) playThumbLens(thumb, from)\n } else {\n // First measure: apply transition after initial calculation is set\n waitForAnimationFrame(() => {\n applyThumbSizing(isVertical, false)\n waitForAnimationFrame(() => {\n thumb.style.transition = transitionProperty\n })\n })\n }\n }\n\n watch(\n [\n () => props.value,\n () => props.size,\n () => props.gutterSize,\n () => props.pill,\n () => props.flush,\n () => props.orientation === \"vertical\",\n // mobileSegmentWidth moves the segments with nothing else changing: the thumb follows them\n () => props.mobileSegmentWidth,\n ],\n syncThumb,\n { flush: \"post\" },\n )\n\n let observer: ResizeObserver | undefined\n\n onMounted(() => {\n syncThumb()\n\n // usehooks-ts useResizeObserver: only fires when the content box changed\n const root = rootRef.value\n if (!root || typeof window === \"undefined\" || !(\"ResizeObserver\" in window)) {\n return\n }\n const previousSize: { width?: number; height?: number } = { width: undefined, height: undefined }\n observer = new ResizeObserver(([entry]) => {\n const width = extractSize(entry, \"contentBoxSize\", \"inlineSize\")\n const height = extractSize(entry, \"contentBoxSize\", \"blockSize\")\n if (previousSize.width === width && previousSize.height === height) {\n return\n }\n previousSize.width = width\n previousSize.height = height\n\n const thumb = thumbRef.value\n if (!thumb) {\n return\n }\n\n // Perform the size update instantly\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n applyThumbSizing(props.orientation === \"vertical\", false)\n thumb.style.transition = currentTransition\n })\n observer.observe(root, { box: \"content-box\" })\n })\n\n // A phone's segmented control at its own width gives every segment the widest one's width, as UISegmentedControl\n // does in iOS 27.2; where that does not fit, each segment takes its label and the same air around it, as\n // apportionsSegmentWidthsByContent does (segments.ts). Measured after every render, when the room changes (the\n // segments may fit one width now) and when the font loads and the labels widen.\n onUpdated(() => equalizeSegments(rootRef.value, thumbRef.value))\n let stopWatchingSegments: (() => void) | undefined\n onMounted(() => {\n const root = rootRef.value\n if (!root) return\n // The room, the breakpoint or the font changes. The segments can change without the control changing size, so\n // the thumb follows them here, instantly\n stopWatchingSegments = watchSegments(root, () => thumbRef.value, () => {\n const thumb = thumbRef.value\n if (!thumb) return\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n applyThumbSizing(props.orientation === \"vertical\", false)\n thumb.style.transition = currentTransition\n })\n })\n onBeforeUnmount(() => stopWatchingSegments?.())\n\n // Tabs added, removed, reordered or relabelled move the active tab without\n // resizing the group: measure again, instantly, like a resize\n let mutationObserver: MutationObserver | undefined\n onMounted(() => {\n const root = rootRef.value\n if (!root || typeof MutationObserver === \"undefined\") return\n mutationObserver = new MutationObserver(() => {\n const thumb = thumbRef.value\n if (!thumb) return\n const currentTransition = thumb.style.transition\n thumb.style.transition = \"\"\n applyThumbSizing(props.orientation === \"vertical\", false)\n thumb.style.transition = currentTransition\n })\n mutationObserver.observe(root, { childList: true, characterData: true, subtree: true })\n })\n\n onBeforeUnmount(() => {\n observer?.disconnect()\n mutationObserver?.disconnect()\n })\n\n // Radix moves focus into the group onto the selected tab, then the last\n // focused one, then the first. Reka looks for a `data-active` attribute\n // that Radix does not render, so its entry focus is replaced here.\n const handleEntryFocus = (event: Event) => {\n event.preventDefault()\n const items = (groupRef.value?.getItems() ?? []).map((item) => item.ref)\n const activeItem = items.find((item) => item.getAttribute(\"data-state\") === \"on\")\n const currentItem = items.find((item) => item.getAttribute(\"tabindex\") === \"0\")\n focusFirst([activeItem, currentItem, ...items].filter((item): item is HTMLElement => !!item))\n }\n\n return () => {\n const { class: className, dir, ...otherAttrs } = attrs\n const { listeners, rest: restAttrs } = splitListeners(otherAttrs, GROUP_COMPOSED)\n // Only apply pill for segmented variant\n const isPill = props.variant === \"segmented\" && props.pill\n // Only apply flush for underline variant\n const isFlush = props.variant === \"underline\" && props.flush\n\n return h(\n RovingFocusGroup,\n {\n ref: groupRef,\n asChild: true,\n loop: false,\n dir: dir as \"ltr\" | \"rtl\" | undefined,\n onEntryFocus: handleEntryFocus,\n },\n {\n default: () =>\n h(\n RovingElement,\n {\n \"as\": \"div\",\n \"elementRef\": rootRef,\n \"composed\": GROUP_COMPOSED,\n \"listeners\": listeners,\n \"class\": [s.Tabs, className],\n // `dir` comes from RovingFocusGroup (\"ltr\" unless set), like Radix\n // Radix ToggleGroup type=\"single\" (radix-ui 1.8) is a radiogroup\n \"role\": \"radiogroup\",\n \"onClick\": (event: MouseEvent) => emit(\"click\", event),\n \"data-variant\": props.variant,\n \"data-orientation\": props.orientation,\n \"data-block\": props.block ? \"\" : undefined,\n \"data-pill\": isPill ? \"\" : undefined,\n \"data-flush\": isFlush ? \"\" : undefined,\n \"data-size\": props.size,\n \"data-gutter-size\": props.gutterSize,\n \"data-mobile-material\": props.mobileMaterial,\n \"data-mobile-segment-width\": props.mobileSegmentWidth,\n \"data-disabled\": props.disabled ? \"\" : undefined,\n ...restAttrs,\n },\n { default: () => [h(\"div\", { class: s.TabsThumb, ref: thumbRef }), slots.default?.()] },\n ),\n },\n )\n }\n },\n})\n\n\nconst useTabsContext = () => {\n const context = inject(TabsContextKey, null)\n\n if (!context) {\n throw new Error(\"`TabsTab` must be used within `Tabs`\")\n }\n\n return context\n}\n\nconst hasContent = (nodes: VNode[] | undefined): nodes is VNode[] =>\n !!nodes?.some((node) => {\n if (!isVNode(node)) return node != null && typeof node !== \"boolean\" && String(node) !== \"\"\n if (node.type === Comment) return false\n if (node.type === Text) return String(node.children ?? \"\") !== \"\"\n if (Array.isArray(node.children) && typeof node.type === \"symbol\") return hasContent(node.children as VNode[])\n return true\n })\n\nconst isBadgeObject = (badge: TabsBadgeProp | undefined): badge is Extract<TabsBadgeProp, { content: unknown }> =>\n badge != null && typeof badge === \"object\" && \"content\" in badge\n\n// A text icon (\"☀\") stands in an element, as an icon component does, so a phone can hide it beside a label\nconst renderIcon = (icon: TabsIconProp | undefined) => {\n if (icon == null) return icon\n if (isVNode(icon)) return wrapTextIcon([icon])\n if (typeof icon === \"string\") return icon === \"\" ? null : h(\"span\", icon)\n return h(icon)\n}\n\n/** True when the slot draws text of its own, also inside a fragment (`<template v-if>`) */\nconst hasTextIcon = (nodes: VNodeArrayChildren): boolean =>\n nodes.some((node) => {\n if (typeof node === \"string\") return node.trim() !== \"\"\n if (typeof node === \"number\") return true\n if (Array.isArray(node)) return hasTextIcon(node)\n if (!isVNode(node)) return false\n if (node.type === Text) return String(node.children).trim() !== \"\"\n return node.type === Fragment && Array.isArray(node.children) && hasTextIcon(node.children)\n })\n\n/** The slot's text stands in a span, as the React icon's does; a fragment holding text keeps its key, and every\n * other node, a fragment of icons too, stays as it is. */\nconst wrapTextIcon = (nodes: VNodeArrayChildren): VNodeArrayChildren =>\n nodes.map((node) => {\n if (typeof node === \"string\" || typeof node === \"number\") return hasTextIcon([node]) ? h(\"span\", String(node)) : node\n if (Array.isArray(node)) return hasTextIcon(node) ? wrapTextIcon(node) : node\n if (!isVNode(node)) return node\n if (node.type === Text) return hasTextIcon([node]) ? h(\"span\", String(node.children)) : node\n if (node.type === Fragment && Array.isArray(node.children) && hasTextIcon(node.children)) {\n return h(Fragment, { key: node.key ?? undefined }, wrapTextIcon(node.children))\n }\n return node\n })\n\nconst TabComponent = defineComponent({\n name: \"TabsTab\",\n inheritAttrs: false,\n props: {\n /** Tab value */\n value: { type: String, required: true },\n /** Icon before the text content: a component, a vnode or text. The `icon` slot takes precedence. */\n icon: [String, Object, Function] as PropType<TabsIconProp>,\n /**\n * Badge after the text content: a plain value, or an object with\n * `content`, `color`, `variant`, `pill` and `loading`. The `badge` slot\n * replaces the content and keeps the object's styling.\n */\n badge: { type: [String, Number, Object] as PropType<TabsBadgeProp>, default: undefined },\n /** Disable the individual tab */\n disabled: { type: Boolean, default: undefined },\n },\n emits: {\n /** A click, before the tab is selected; `event.preventDefault()` keeps the selection */\n click: (event: MouseEvent) => {\n void event\n return true\n },\n },\n setup(props, { slots, attrs, emit }) {\n const context = useTabsContext()\n\n return () => {\n const disabled = context.disabled.value || !!props.disabled\n const selected = context.value.value\n const pressed = !!selected && selected === props.value\n const { listeners, rest: restAttrs } = splitListeners(attrs, ITEM_COMPOSED)\n\n // Normalize badge prop; the slot replaces its content\n const badgeSlot = slots.badge?.()\n const badgeObject = isBadgeObject(props.badge) ? props.badge : undefined\n const badgeProps = hasContent(badgeSlot)\n ? { ...badgeObject, content: badgeSlot }\n : props.badge != null\n ? (badgeObject ?? { content: props.badge as TabsContent })\n : null\n\n const children = slots.default?.()\n const iconSlot = slots.icon?.()\n\n // Radix Toggle: the caller's click handler runs first and can cancel the toggle\n const handleClick = (event: MouseEvent) => {\n // React does not dispatch mouse handlers on a disabled button\n if (disabled) return\n // An emitted event, so a `.once` listener runs before the selection too\n emit(\"click\", event)\n if (event.defaultPrevented) return\n context.setValue(pressed ? \"\" : props.value)\n }\n\n return h(\n RovingFocusItem,\n { asChild: true, focusable: !disabled, active: pressed },\n {\n default: () =>\n h(\n RovingElement,\n {\n \"as\": \"button\",\n \"composed\": ITEM_COMPOSED,\n \"listeners\": listeners,\n // Radix Toggle defaults, then the single-select radio semantics\n \"type\": \"button\",\n \"data-state\": pressed ? \"on\" : \"off\",\n \"data-disabled\": disabled ? \"\" : undefined,\n \"role\": \"radio\",\n \"aria-checked\": pressed,\n // Reka's RovingFocusItem marks the active item; Radix does not\n \"data-active\": undefined,\n // Caller attributes win, as React spreads them after `className`\n \"class\": s.Tab,\n ...restAttrs,\n \"disabled\": disabled,\n \"onPointerenter\": handlePressableMouseEnter,\n \"onClick\": handleClick,\n },\n {\n default: () => [\n h(\"span\", { class: s.TabContent }, [\n hasContent(iconSlot) ? wrapTextIcon(iconSlot) : renderIcon(props.icon),\n hasContent(children) ? h(\"span\", { class: s.TabLabel }, children) : null,\n badgeProps\n ? h(\n \"span\",\n {\n \"class\": s.TabBadge,\n \"data-color\": badgeProps.color ?? \"secondary\",\n \"data-variant\": badgeProps.variant ?? \"soft\",\n \"data-pill\": badgeProps.pill ? \"\" : undefined,\n },\n badgeProps.loading ? [h(LoadingIndicator)] : [badgeProps.content as VNodeArrayChildren[number]],\n )\n : null,\n ]),\n context.vertical.value ? h(CheckMd, { \"class\": s.TabCheckmark, \"aria-hidden\": \"true\" }) : null,\n ],\n },\n ),\n },\n )\n }\n },\n})\n\ntype TabOwnProps = InstanceType<typeof TabComponent>[\"$props\"]\n\n/** TabsTab props; other attributes (`aria-label`, ...) fall through to the button. */\nexport type TabProps = TabOwnProps & { \"aria-label\"?: string }\n\nexport const TabsTab = TabComponent as typeof TabComponent & { new (): { $props: TabProps } }\n\n/** Backward-compat alias of `TabsTab`, like React's `Tabs.Option` */\nexport const TabsOption: typeof TabsTab = TabsTab\n\n// ---------------------------------------------------------------------------\n// overflow=\"menu\" (React's OverflowTabs)\n\n/** Value of the menu button; no real tab has it */\nconst MORE_VALUE = \"__plexui_tabs_more__\"\n\ntype Slots = Record<string, ((...args: unknown[]) => VNodeArrayChildren) | undefined>\n\n/** The TabsTab vnodes of a default slot, through fragments (`v-for`, `<template>`) */\nconst tabVNodes = (nodes: VNodeArrayChildren | undefined): VNode[] =>\n (nodes ?? []).flatMap((node) => {\n if (!isVNode(node)) return []\n if (node.type === Fragment && Array.isArray(node.children)) return tabVNodes(node.children as VNodeArrayChildren)\n return node.type === TabComponent ? [node] : []\n })\n\nconst slotsOf = (node: VNode) => (node.children && typeof node.children === \"object\" && !Array.isArray(node.children) ? (node.children as Slots) : {})\n\n/** A tab's slot content; a vnode's raw slot may return a string or nothing */\nconst slotContent = (node: VNode, name: string): VNodeArrayChildren => {\n const content = slotsOf(node)[name]?.() as VNodeArrayChildren | VNodeArrayChildren[number] | undefined\n if (content == null) return []\n return Array.isArray(content) ? content : [content]\n}\n\nconst labelContent = (node: VNode) => slotContent(node, \"default\")\n\nconst plainText = (node: unknown): string => {\n if (typeof node === \"string\" || typeof node === \"number\") return String(node)\n if (Array.isArray(node)) return node.map(plainText).join(\"\")\n if (isVNode(node)) {\n if (node.type === Comment) return \"\"\n if (typeof node.children === \"string\") return node.children\n if (Array.isArray(node.children)) return plainText(node.children)\n return plainText(labelContent(node))\n }\n return \"\"\n}\n\nconst tabProps = (node: VNode) => (node.props ?? {}) as Record<string, unknown>\n\n/** Slot content that renders something: text, or a vnode other than a comment */\nconst filled = (nodes: VNodeArrayChildren) =>\n plainText(nodes) !== \"\" || nodes.some((node) => isVNode(node) && node.type !== Comment)\n\nconst badgeText = (badge: unknown) => (isBadgeObject(badge as TabsBadgeProp) ? plainText((badge as { content: unknown }).content) : plainText(badge))\n\n/** A tab's icon: the `icon` slot, else the prop */\nconst tabIcon = (node: VNode) => {\n const iconSlot = slotContent(node, \"icon\")\n return filled(iconSlot) ? iconSlot : renderIcon(tabProps(node).icon as TabsIconProp | undefined)\n}\n\n/** A tab's count as text: the `badge` slot, else the prop */\nconst tabCount = (node: VNode) => plainText(slotContent(node, \"badge\")) || badgeText(tabProps(node).badge)\n\n/** A raw vnode prop holds a boolean attribute as written: `<TabsTab disabled>` is \"\" */\nconst tabDisabled = (node: VNode) => {\n const disabled = tabProps(node).disabled\n return disabled != null && disabled !== false\n}\n\n/** A tab's name: its text, else its accessible name, else its value */\nconst tabLabel = (node: VNode) =>\n plainText(labelContent(node)) || (tabProps(node)[\"aria-label\"] as string | undefined) || String(tabProps(node).value)\n\n/** What a tab's width depends on: the strip measures again when it changes */\nconst tabsSignature = (nodes: VNode[]) =>\n nodes\n .map((node) =>\n [\n tabProps(node).value,\n plainText(labelContent(node)),\n tabCount(node),\n tabProps(node).icon != null || slotsOf(node).icon != null,\n ].join(\"\\u0000\"),\n )\n .join(\"\\u0001\")\n\n/**\n * MenuTrigger sets `data-state` (open or closed) on its child, while a tab\n * keeps `on` or `off` in the same attribute and the thumb finds the active tab\n * by it. The menu's value does not reach the tab; its handlers and\n * `aria-haspopup` / `aria-expanded` do.\n */\nconst MoreTab = defineComponent({\n name: \"TabsMoreTab\",\n inheritAttrs: false,\n setup(_props, { attrs, slots }) {\n return () => {\n const rest = { ...attrs }\n delete rest[\"data-state\"]\n return h(TabComponent, rest as TabProps, slots)\n }\n },\n})\n\nconst TabsPublic = defineComponent({\n name: \"Tabs\",\n inheritAttrs: false,\n props: {\n ...tabsProps,\n /**\n * What happens to tabs that do not fit in one row: the strip scrolls\n * sideways (`scroll`), or they move into a menu at its end (`menu`). The\n * menu button shows the active tab's name when it is a hidden one.\n * Horizontal tabs without `block` only.\n * @default \"scroll\"\n */\n overflow: { type: String as PropType<\"scroll\" | \"menu\">, default: \"scroll\" },\n /** Text of the menu button with `overflow=\"menu\"`. @default \"More\" */\n overflowLabel: { type: String, default: \"More\" },\n },\n emits: tabsEmits,\n setup(props, { slots, attrs, emit }) {\n const hostRef = ref<HTMLDivElement | null>(null)\n // Uncontrolled like the group: `value` unset starts empty\n const uncontrolledValue = ref(\"\")\n const current = computed(() => (props.value !== undefined ? props.value : uncontrolledValue.value))\n const select = (next: string) => {\n if (props.value === undefined) uncontrolledValue.value = next\n emit(\"update:value\", next)\n emit(\"change\", next)\n }\n\n // { count: null } while the measuring pass renders every tab and the\n // menu button; a new object each time, so an unchanged count still renders\n const measured = shallowRef<{ count: number | null }>({ count: null })\n let measuredSignature = \"\"\n let measuredActive = -1\n let lastRender = { measuring: true, signature: \"\", activeIndex: -1, length: 0 }\n let boxWidth = -1\n\n const measure = () => {\n if (!lastRender.measuring) return\n const root = hostRef.value?.firstElementChild\n if (!(root instanceof HTMLElement)) return\n\n const buttons = Array.from(root.querySelectorAll<HTMLElement>(\":scope > button\"))\n if (buttons.length !== lastRender.length + 1) return\n\n const widths = buttons.map((button) => button.getBoundingClientRect().width)\n const moreButton = buttons[buttons.length - 1]\n const moreWidth = widths.pop() ?? 0\n const style = getComputedStyle(root)\n const available =\n root.getBoundingClientRect().width -\n (Number.parseFloat(style.paddingLeft) || 0) -\n (Number.parseFloat(style.paddingRight) || 0)\n const gap = Number.parseFloat(style.columnGap) || 0\n boxWidth = hostRef.value?.parentElement?.clientWidth ?? -1\n measuredSignature = lastRender.signature\n measuredActive = lastRender.activeIndex\n\n if (available <= 0) {\n measured.value = { count: lastRender.length }\n return\n }\n\n const { activeIndex } = lastRender\n const chevron = moreButton?.querySelector(\"svg\")\n const chevronWidth = chevron?.getBoundingClientRect().width ?? 0\n const labelGap = chevron?.parentElement ? Number.parseFloat(getComputedStyle(chevron.parentElement).columnGap) || 0 : 0\n const activeWidth = activeIndex < 0 ? 0 : (widths[activeIndex] ?? 0) + chevronWidth + labelGap\n measured.value = { count: visibleTabCount(widths, moreWidth, activeWidth, activeIndex, gap, available) }\n }\n\n // The width to fit is the container's; reports during a measuring pass\n // are skipped. The menu strip may appear or go after mount, with `overflow`\n let observer: ResizeObserver | undefined\n let observed: HTMLElement | null = null\n const observeBox = () => {\n const box = hostRef.value?.parentElement ?? null\n if (box === observed) return\n observer?.disconnect()\n observer = undefined\n observed = box\n if (!box || typeof ResizeObserver === \"undefined\") return\n observer = new ResizeObserver(() => {\n if (lastRender.measuring) return\n const width = box.clientWidth\n if (width === boxWidth) return\n boxWidth = width\n measured.value = { count: null }\n })\n observer.observe(box)\n }\n onMounted(() => {\n measure()\n observeBox()\n })\n onUpdated(() => {\n measure()\n observeBox()\n })\n onBeforeUnmount(() => observer?.disconnect())\n\n const forward = {\n \"onUpdate:value\": (value: string) => emit(\"update:value\", value),\n \"onChange\": (value: string) => emit(\"change\", value),\n \"onClick\": (event: MouseEvent) => emit(\"click\", event),\n }\n\n return () => {\n const { overflow, overflowLabel, ...rootProps } = props\n if (overflow !== \"menu\" || props.block || props.orientation === \"vertical\") {\n return h(TabsComponent, { ...rootProps, ...attrs, ...forward }, slots)\n }\n\n const items = tabVNodes(slots.default?.() as VNodeArrayChildren | undefined)\n // The strip's own props size the tabs and the menu button too\n const signature = [overflowLabel, props.size, props.variant, props.gutterSize, props.pill, props.flush, props.mobileMaterial, props.mobileSegmentWidth, tabsSignature(items)].join(\n \"\\u0002\",\n )\n const activeIndex = items.findIndex((item) => tabProps(item).value === current.value)\n const { count } = measured.value\n // New tabs measure again; so does an active tab that moves under the\n // menu button or back out, since the button carries the hidden one's name\n const stale =\n count !== null &&\n (signature !== measuredSignature ||\n (activeIndex !== measuredActive && (measuredActive >= count || activeIndex >= count)))\n const measuring = count === null || stale\n lastRender = { measuring, signature, activeIndex, length: items.length }\n\n const shown = measuring ? items : items.slice(0, count)\n const hidden = measuring ? [] : items.slice(count)\n const hiddenActive = hidden.find((item) => tabProps(item).value === current.value) ?? null\n\n const strip = h(\n TabsComponent,\n {\n ...rootProps,\n ...attrs,\n \"data-overflow\": \"menu\",\n \"value\": hiddenActive ? MORE_VALUE : current.value,\n // Pressing the menu button opens the menu; it is not a tab\n \"onUpdate:value\": (next: string) => {\n if (next !== MORE_VALUE) select(next)\n },\n \"onClick\": forward.onClick,\n },\n {\n default: () => [\n ...shown,\n measuring || hidden.length > 0\n ? h(MenuTrigger, null, {\n default: () =>\n h(MoreTab, { value: MORE_VALUE }, {\n default: () => [\n h(\"span\", { class: s.OverflowLabel }, [hiddenActive ? tabLabel(hiddenActive) : overflowLabel, h(ChevronDownMd)]),\n ],\n }),\n })\n : null,\n ],\n },\n )\n\n return h(\"div\", { ref: hostRef, class: s.OverflowHost }, [\n h(Menu, null, {\n default: () => [\n strip,\n h(MenuContent, { align: \"end\", minWidth: \"auto\" }, {\n default: () =>\n h(MenuRadioGroup, { \"value\": current.value, \"onUpdate:value\": select }, {\n default: () =>\n hidden.map((item) => {\n const itemProps = tabProps(item)\n const count = tabCount(item)\n const label = labelContent(item)\n return h(\n MenuRadioItem,\n {\n key: String(itemProps.value),\n value: String(itemProps.value),\n disabled: props.disabled || tabDisabled(item),\n },\n {\n default: () => [\n tabIcon(item),\n filled(label)\n ? label\n : ((itemProps[\"aria-label\"] as string | undefined) ?? String(itemProps.value)),\n // A tab's count moves into the menu with it\n count !== \"\" ? h(\"span\", { class: s.OverflowBadge }, count) : null,\n ],\n },\n )\n }),\n }),\n }),\n ],\n }),\n ])\n }\n },\n})\n\ntype TabsOwnProps = InstanceType<typeof TabsPublic>[\"$props\"]\n\n/** Tabs props plus the attributes that fall through to the group element, as in React. */\nexport type TabsProps = TabsOwnProps & Omit<HTMLAttributes, keyof TabsOwnProps> & { \"aria-label\"?: string }\n\nexport const Tabs = TabsPublic as typeof TabsPublic & { new (): { $props: TabsProps } }\n"]}
@@ -0,0 +1,133 @@
1
+ /**
2
+ * The widths of a phone's segmented control. Shared by the React and Vue packages (the Vue copy must match).
3
+ *
4
+ * UISegmentedControl at its own width gives every segment the widest one's width (iOS 27.2); where that does not fit,
5
+ * each segment takes its label and the same air around it, as apportionsSegmentWidthsByContent does (ref-app
6
+ * segmented-hug, 13.11), and where even that does not fit, the air beside each label narrows, to 4px, before the
7
+ * segments scroll, as UIKit narrows a squeezed control's (Calendar's Напоминание stands 4pt inside its segment). A grid
8
+ * that hugs its content cannot size its tracks to the widest one by itself (the browser sizes it by the sum of its
9
+ * labels), so the widest is measured here and set as the track. Tabs.module.css asks for one width with
10
+ * `--tabs-equal-segments: 1` and for the narrowing with `--tabs-fit-segments: 1`, on a phone's horizontal control that
11
+ * is not `block`; elsewhere nothing is set.
12
+ */
13
+ const TRACK = "--tabs-segment-track";
14
+ const GUTTER = "--tabs-segment-gutter";
15
+ /** The least air beside a label of a squeezed control: the large control's widest label, 4pt in Calendar */
16
+ const MIN_GUTTER_PX = 4;
17
+ /** The phone block of Tabs.module.css, where a control starts or stops asking for one width */
18
+ const PHONE_QUERY = "(max-width: 767px)";
19
+ /** Slack for the rounding of clientWidth */
20
+ const FIT_TOLERANCE_PX = 1;
21
+ const px = (style, name) => Number.parseFloat(style.getPropertyValue(name)) || 0;
22
+ /** The control's border box as laid out, unscaled and unrounded (offsetWidth rounds to whole pixels) */
23
+ const laidOutWidth = (root, style) => {
24
+ const width = px(style, "width");
25
+ if (!width)
26
+ return root.offsetWidth;
27
+ if (style.getPropertyValue("box-sizing") === "border-box")
28
+ return width;
29
+ const sides = ["padding-left", "padding-right", "border-left-width", "border-right-width"];
30
+ return sides.reduce((sum, side) => sum + px(style, side), width);
31
+ };
32
+ const sizing = (root) => `${root.style.getPropertyValue(TRACK)}|${root.style.getPropertyValue(GUTTER)}`;
33
+ /** Sets the track and the air of the segments and says whether they changed, so a thumb on a segment that moved can
34
+ * follow. */
35
+ export function equalizeSegments(root, thumb) {
36
+ if (!root)
37
+ return false;
38
+ const before = sizing(root);
39
+ const style = getComputedStyle(root);
40
+ const equal = style.getPropertyValue("--tabs-equal-segments").trim() === "1";
41
+ const fit = style.getPropertyValue("--tabs-fit-segments").trim() === "1";
42
+ // The segments of the row: a tab that is not drawn takes no track
43
+ const segments = Array.from(root.children).filter((child) => child instanceof HTMLElement && child !== thumb && getComputedStyle(child).getPropertyValue("display") !== "none");
44
+ root.style.removeProperty(GUTTER);
45
+ if ((!equal && !fit) || root.getAttribute("data-orientation") !== "horizontal" || segments.length < 2 || !root.offsetWidth) {
46
+ root.style.removeProperty(TRACK);
47
+ return sizing(root) !== before;
48
+ }
49
+ // Each segment at its label's width and full air, unscaled while the control is held (it grows under the finger)
50
+ root.style.setProperty(TRACK, "max-content");
51
+ const width = laidOutWidth(root, style);
52
+ const scale = width / (root.getBoundingClientRect().width || width);
53
+ const widths = segments.map((segment) => segment.getBoundingClientRect().width * scale);
54
+ const widest = Math.max(...widths);
55
+ const gaps = px(style, "column-gap") * (segments.length - 1);
56
+ // Equal segments as wide as the control may grow: they fit, or the control stops at its room. Counted, not read
57
+ // from scrollWidth, which a thumb still standing where its segment was would widen.
58
+ root.style.setProperty(TRACK, `minmax(${widest}px, 1fr)`);
59
+ const room = root.clientWidth - px(style, "padding-left") - px(style, "padding-right");
60
+ const fitsEqual = widest * segments.length + gaps <= room + FIT_TOLERANCE_PX;
61
+ if (equal && fitsEqual)
62
+ return sizing(root) !== before;
63
+ root.style.removeProperty(TRACK);
64
+ const over = widths.reduce((sum, segment) => sum + segment, gaps) - room;
65
+ if (fit && !fitsEqual && over > FIT_TOLERANCE_PX) {
66
+ // Labels by their widths still overflow: the air beside each narrows by its share, to the least. The air is read
67
+ // laid out, in pixels: the token may be set in rem (0.75rem without touch.css)
68
+ const gutter = px(getComputedStyle(segments[0]), "padding-left");
69
+ const floors = segments.map((segment) => px(getComputedStyle(segment), "min-width"));
70
+ const narrowed = Math.max(MIN_GUTTER_PX, airThatFits(widths, floors, gutter, room - gaps));
71
+ if (narrowed < gutter)
72
+ root.style.setProperty(GUTTER, `${narrowed}px`);
73
+ }
74
+ return sizing(root) !== before;
75
+ }
76
+ /**
77
+ * The air beside each label that brings the segments into the room: each narrows by the same amount on both sides,
78
+ * except a segment held at its least width (a short label in a pill segment), which gives up no more, so the others
79
+ * narrow further. -Infinity where nothing can narrow.
80
+ */
81
+ function airThatFits(widths, floors, gutter, room) {
82
+ const held = new Set();
83
+ for (;;) {
84
+ const free = widths.filter((_, index) => !held.has(index));
85
+ if (!free.length)
86
+ return Number.NEGATIVE_INFINITY;
87
+ const fixed = [...held].reduce((sum, index) => sum + floors[index], 0);
88
+ const air = gutter - (free.reduce((sum, width) => sum + width, fixed) - room) / (2 * free.length);
89
+ const reached = widths.map((_, index) => index).filter((index) => !held.has(index) && widths[index] - 2 * (gutter - air) < floors[index]);
90
+ if (!reached.length)
91
+ return air;
92
+ for (const index of reached)
93
+ held.add(index);
94
+ }
95
+ }
96
+ /**
97
+ * Measures again when the room changes (the segments may fit one width now), when the screen crosses into or out of
98
+ * the phone block (the control starts or stops asking, its room unchanged) and when the font loads and the labels
99
+ * widen. `moved` runs when the track changed, so the thumb can follow its segment, and always once the font has
100
+ * loaded: segments sized by their labels move then with no track and no size changing. Returns the cleanup.
101
+ */
102
+ export function watchSegments(root, thumb, moved) {
103
+ const refit = () => {
104
+ if (equalizeSegments(root, thumb()))
105
+ moved();
106
+ };
107
+ const box = root.parentElement;
108
+ const observer = box && typeof ResizeObserver !== "undefined" ? new ResizeObserver(refit) : undefined;
109
+ if (box)
110
+ observer?.observe(box);
111
+ const phone = typeof window.matchMedia === "function" ? window.matchMedia(PHONE_QUERY) : undefined;
112
+ // Browsers before 2020 offer only addListener
113
+ if (phone?.addEventListener)
114
+ phone.addEventListener("change", refit);
115
+ else
116
+ phone?.addListener?.(refit);
117
+ let live = true;
118
+ document.fonts?.ready.then(() => {
119
+ if (!live)
120
+ return;
121
+ equalizeSegments(root, thumb());
122
+ moved();
123
+ });
124
+ return () => {
125
+ live = false;
126
+ observer?.disconnect();
127
+ if (phone?.removeEventListener)
128
+ phone.removeEventListener("change", refit);
129
+ else
130
+ phone?.removeListener?.(refit);
131
+ };
132
+ }
133
+ //# sourceMappingURL=segments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segments.js","sourceRoot":"","sources":["../../../../src/components/Tabs/segments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,KAAK,GAAG,sBAAsB,CAAA;AACpC,MAAM,MAAM,GAAG,uBAAuB,CAAA;AAEtC,4GAA4G;AAC5G,MAAM,aAAa,GAAG,CAAC,CAAA;AAEvB,+FAA+F;AAC/F,MAAM,WAAW,GAAG,oBAAoB,CAAA;AAExC,4CAA4C;AAC5C,MAAM,gBAAgB,GAAG,CAAC,CAAA;AAE1B,MAAM,EAAE,GAAG,CAAC,KAA0B,EAAE,IAAY,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAA;AAE7G,wGAAwG;AACxG,MAAM,YAAY,GAAG,CAAC,IAAiB,EAAE,KAA0B,EAAE,EAAE;IACrE,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IAChC,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC,WAAW,CAAA;IACnC,IAAI,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,YAAY;QAAE,OAAO,KAAK,CAAA;IACvE,MAAM,KAAK,GAAG,CAAC,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,CAAC,CAAA;IAC1F,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAA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Q,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;IAC/B,MAAM,KAAK,GAAG,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAClG,8CAA8C;IAC9C,IAAI,KAAK,EAAE,gBAAgB;QAAE,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;;QAC/D,KAAK,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,CAAA;IAChC,IAAI,IAAI,GAAG,IAAI,CAAA;IACf,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;QAC9B,IAAI,CAAC,IAAI;YAAE,OAAM;QACjB,gBAAgB,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAA;QAC/B,KAAK,EAAE,CAAA;IACT,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,EAAE;QACV,IAAI,GAAG,KAAK,CAAA;QACZ,QAAQ,EAAE,UAAU,EAAE,CAAA;QACtB,IAAI,KAAK,EAAE,mBAAmB;YAAE,KAAK,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;;YACrE,KAAK,EAAE,cAAc,EAAE,CAAC,KAAK,CAAC,CAAA;IACrC,CAAC,CAAA;AACH,CAAC","sourcesContent":["/**\n * The widths of a phone's segmented control. Shared by the React and Vue packages (the Vue copy must match).\n *\n * UISegmentedControl at its own width gives every segment the widest one's width (iOS 27.2); where that does not fit,\n * each segment takes its label and the same air around it, as apportionsSegmentWidthsByContent does (ref-app\n * segmented-hug, 13.11), and where even that does not fit, the air beside each label narrows, to 4px, before the\n * segments scroll, as UIKit narrows a squeezed control's (Calendar's Напоминание stands 4pt inside its segment). A grid\n * that hugs its content cannot size its tracks to the widest one by itself (the browser sizes it by the sum of its\n * labels), so the widest is measured here and set as the track. Tabs.module.css asks for one width with\n * `--tabs-equal-segments: 1` and for the narrowing with `--tabs-fit-segments: 1`, on a phone's horizontal control that\n * is not `block`; elsewhere nothing is set.\n */\n\nconst TRACK = \"--tabs-segment-track\"\nconst GUTTER = \"--tabs-segment-gutter\"\n\n/** The least air beside a label of a squeezed control: the large control's widest label, 4pt in Calendar */\nconst MIN_GUTTER_PX = 4\n\n/** The phone block of Tabs.module.css, where a control starts or stops asking for one width */\nconst PHONE_QUERY = \"(max-width: 767px)\"\n\n/** Slack for the rounding of clientWidth */\nconst FIT_TOLERANCE_PX = 1\n\nconst px = (style: CSSStyleDeclaration, name: string) => Number.parseFloat(style.getPropertyValue(name)) || 0\n\n/** The control's border box as laid out, unscaled and unrounded (offsetWidth rounds to whole pixels) */\nconst laidOutWidth = (root: HTMLElement, style: CSSStyleDeclaration) => {\n const width = px(style, \"width\")\n if (!width) return root.offsetWidth\n if (style.getPropertyValue(\"box-sizing\") === \"border-box\") return width\n const sides = [\"padding-left\", \"padding-right\", \"border-left-width\", \"border-right-width\"]\n return sides.reduce((sum, side) => sum + px(style, side), width)\n}\n\nconst sizing = (root: HTMLElement) => `${root.style.getPropertyValue(TRACK)}|${root.style.getPropertyValue(GUTTER)}`\n\n/** Sets the track and the air of the segments and says whether they changed, so a thumb on a segment that moved can\n * follow. */\nexport function equalizeSegments(root: HTMLElement | null, thumb: HTMLElement | null): boolean {\n if (!root) return false\n const before = sizing(root)\n const style = getComputedStyle(root)\n const equal = style.getPropertyValue(\"--tabs-equal-segments\").trim() === \"1\"\n const fit = style.getPropertyValue(\"--tabs-fit-segments\").trim() === \"1\"\n // The segments of the row: a tab that is not drawn takes no track\n const segments = Array.from(root.children).filter(\n (child): child is HTMLElement =>\n child instanceof HTMLElement && child !== thumb && getComputedStyle(child).getPropertyValue(\"display\") !== \"none\",\n )\n root.style.removeProperty(GUTTER)\n if ((!equal && !fit) || root.getAttribute(\"data-orientation\") !== \"horizontal\" || segments.length < 2 || !root.offsetWidth) {\n root.style.removeProperty(TRACK)\n return sizing(root) !== before\n }\n // Each segment at its label's width and full air, unscaled while the control is held (it grows under the finger)\n root.style.setProperty(TRACK, \"max-content\")\n const width = laidOutWidth(root, style)\n const scale = width / (root.getBoundingClientRect().width || width)\n const widths = segments.map((segment) => segment.getBoundingClientRect().width * scale)\n const widest = Math.max(...widths)\n const gaps = px(style, \"column-gap\") * (segments.length - 1)\n // Equal segments as wide as the control may grow: they fit, or the control stops at its room. Counted, not read\n // from scrollWidth, which a thumb still standing where its segment was would widen.\n root.style.setProperty(TRACK, `minmax(${widest}px, 1fr)`)\n const room = root.clientWidth - px(style, \"padding-left\") - px(style, \"padding-right\")\n const fitsEqual = widest * segments.length + gaps <= room + FIT_TOLERANCE_PX\n if (equal && fitsEqual) return sizing(root) !== before\n root.style.removeProperty(TRACK)\n const over = widths.reduce((sum, segment) => sum + segment, gaps) - room\n if (fit && !fitsEqual && over > FIT_TOLERANCE_PX) {\n // Labels by their widths still overflow: the air beside each narrows by its share, to the least. The air is read\n // laid out, in pixels: the token may be set in rem (0.75rem without touch.css)\n const gutter = px(getComputedStyle(segments[0]), \"padding-left\")\n const floors = segments.map((segment) => px(getComputedStyle(segment), \"min-width\"))\n const narrowed = Math.max(MIN_GUTTER_PX, airThatFits(widths, floors, gutter, room - gaps))\n if (narrowed < gutter) root.style.setProperty(GUTTER, `${narrowed}px`)\n }\n return sizing(root) !== before\n}\n\n/**\n * The air beside each label that brings the segments into the room: each narrows by the same amount on both sides,\n * except a segment held at its least width (a short label in a pill segment), which gives up no more, so the others\n * narrow further. -Infinity where nothing can narrow.\n */\nfunction airThatFits(widths: number[], floors: number[], gutter: number, room: number): number {\n const held = new Set<number>()\n for (;;) {\n const free = widths.filter((_, index) => !held.has(index))\n if (!free.length) return Number.NEGATIVE_INFINITY\n const fixed = [...held].reduce((sum, index) => sum + floors[index], 0)\n const air = gutter - (free.reduce((sum, width) => sum + width, fixed) - room) / (2 * free.length)\n const reached = widths.map((_, index) => index).filter(\n (index) => !held.has(index) && widths[index] - 2 * (gutter - air) < floors[index],\n )\n if (!reached.length) return air\n for (const index of reached) held.add(index)\n }\n}\n\n/**\n * Measures again when the room changes (the segments may fit one width now), when the screen crosses into or out of\n * the phone block (the control starts or stops asking, its room unchanged) and when the font loads and the labels\n * widen. `moved` runs when the track changed, so the thumb can follow its segment, and always once the font has\n * loaded: segments sized by their labels move then with no track and no size changing. Returns the cleanup.\n */\nexport function watchSegments(root: HTMLElement, thumb: () => HTMLElement | null, moved: () => void): () => void {\n const refit = () => {\n if (equalizeSegments(root, thumb())) moved()\n }\n const box = root.parentElement\n const observer = box && typeof ResizeObserver !== \"undefined\" ? new ResizeObserver(refit) : undefined\n if (box) observer?.observe(box)\n const phone = typeof window.matchMedia === \"function\" ? window.matchMedia(PHONE_QUERY) : undefined\n // Browsers before 2020 offer only addListener\n if (phone?.addEventListener) phone.addEventListener(\"change\", refit)\n else phone?.addListener?.(refit)\n let live = true\n document.fonts?.ready.then(() => {\n if (!live) return\n equalizeSegments(root, thumb())\n moved()\n })\n return () => {\n live = false\n observer?.disconnect()\n if (phone?.removeEventListener) phone.removeEventListener(\"change\", refit)\n else phone?.removeListener?.(refit)\n }\n}\n"]}
@@ -362,6 +362,7 @@ export { default as MinimizeTop } from "./svg/MinimizeTop.js";
362
362
  export { default as Minus } from "./svg/Minus.js";
363
363
  export { default as MinusCircle } from "./svg/MinusCircle.js";
364
364
  export { default as MinusCircleFilled } from "./svg/MinusCircleFilled.js";
365
+ export { default as MinusLg } from "./svg/MinusLg.js";
365
366
  export { default as Mobile } from "./svg/Mobile.js";
366
367
  export { default as Moon } from "./svg/Moon.js";
367
368
  export { default as MoonSun } from "./svg/MoonSun.js";
@@ -0,0 +1,3 @@
1
+ import { type FunctionalComponent, type SVGAttributes } from "vue";
2
+ declare const MinusLg: FunctionalComponent<SVGAttributes>;
3
+ export default MinusLg;