@plexui/vue 0.38.0 → 0.39.1

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":"NavigationRow.js","sourceRoot":"","sources":["../../../../src/components/NavigationRow/NavigationRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsF,eAAe,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAiB,GAAG,EAAmB,KAAK,EAAE,MAAM,KAAK,CAAA;AACzN,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,OAAO,CAAC,MAAM,kEAAkE,CAAA;AAIhF,MAAM,KAAK,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,EAAE,CAAA;AAE1G,wHAAwH;AACxH,MAAM,eAAe,GAAG,CAAC,GAAgB,EAAE,EAAE;IAC3C,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAc,+BAA+B,CAAC,CAAA;IAC/E,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAA;IACzB,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAA;IAClD,GAAG,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAA;IACvC,GAAG,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAA;IACtC,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAc,4BAA4B,CAAC,CAAC,CAAC,KAAK,CAClG,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,I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E,EAAE,KAAK,CAAC,EAAE,EAAE,EAC9G,EAAE,OAAO,EAAE,OAAO,EAAE,CACrB;oBACH,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;aACtG,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA;AAYF,MAAM,CAAC,MAAM,aAAa,GAAG,sBAE5B,CAAA","sourcesContent":["import { type AnchorHTMLAttributes, type ButtonHTMLAttributes, type ComponentPublicInstance, defineComponent, h, nextTick, onBeforeUnmount, onMounted, onUpdated, type PropType, ref, type VNodeChild, watch } from \"vue\"\nimport { Button, ButtonLink } from \"../Button/index.js\"\nimport { Disclosure } from \"../Icon/index.js\"\nimport { useFieldColumns } from \"../../lib/fieldRow.js\"\nimport type { LinkComponent } from \"../PlexUIProvider/index.js\"\nimport s from \"@plexui/styles/components/NavigationRow/NavigationRow.module.css\"\n\ntype RouteTarget = string | Record<string, unknown>\n\nconst shown = (value: unknown) => value !== null && value !== undefined && value !== false && value !== \"\"\n\n/** Whether the label and the value of a row fit beside each other on one line: measured in the end layout, unwrapped */\nconst valueFitsBeside = (row: HTMLElement) => {\n const content = row.querySelector<HTMLElement>(\"[data-navigation-row-content]\")\n if (!content) return true\n const below = row.hasAttribute(\"data-value-below\")\n row.removeAttribute(\"data-value-below\")\n row.setAttribute(\"data-measuring\", \"\")\n const fits = [content, ...content.querySelectorAll<HTMLElement>(\"[data-navigation-row-part]\")].every(\n (element) => element.scrollWidth <= element.clientWidth + 0.5,\n )\n row.removeAttribute(\"data-measuring\")\n if (below) row.setAttribute(\"data-value-below\", \"\")\n return fits\n}\n\n/**\n * Vue port of `NavigationRow` from packages/ui/src/components/NavigationRow/NavigationRow.tsx: a FieldGroup row\n * that opens what it holds, as an iOS Settings drill-in. Attributes (id, class, ARIA, data, listeners) fall through\n * to the pressable. The `label`, `value` and `description` slots take the place of their props.\n */\nconst NavigationRowComponent = defineComponent({\n name: \"NavigationRow\",\n inheritAttrs: false,\n props: {\n /** The row's name, where a row's label starts */\n label: [String, Number] as PropType<string | number>,\n /** The current value, at the end of the row in the secondary label. `0` shows; `null`, `undefined` and `\"\"` do not. */\n value: [String, Number] as PropType<string | number | null>,\n /** A line under the label; the row grows from 52 to hold it */\n description: [String, Number] as PropType<string | number>,\n /** Where the row goes. With it the row is a link (through `PlexUIProvider`'s `linkComponent`, or `as`). */\n href: String,\n /** A router target; with it the row is a link through the provider's link component */\n to: [String, Object] as PropType<RouteTarget>,\n /** Force external-link behavior */\n external: { type: Boolean, default: undefined },\n /** Link component override (e.g. a router link). */\n as: [String, Object, Function] as PropType<LinkComponent>,\n /** The row can't be pressed. A disabled link renders as a disabled button, so it never navigates. */\n disabled: { type: Boolean, default: undefined },\n /**\n * Where the value stands: at the `end` of the row, `below` the label at the full width, or `auto`: at the end while\n * it fits beside the label on one line, otherwise below (as Calendar sets a long value).\n */\n valuePlacement: { type: String as PropType<\"end\" | \"below\" | \"auto\">, default: \"end\" },\n },\n setup(props, { attrs, slots, expose }) {\n const pressable = ref<ComponentPublicInstance | null>(null)\n const element = () => (pressable.value?.$el ?? null) as HTMLElement | null\n // A ref reaches the pressable, as in React: its element and focus()\n expose({ focus: (options?: FocusOptions) => element()?.focus(options), get element() { return element() } })\n\n // \"auto\": measure after each render and when the row's width changes\n const row = ref<HTMLElement | null>(null)\n const fits = ref(true)\n const hasValueNow = () => !!slots.value || shown(props.value)\n const check = () => {\n if (props.valuePlacement !== \"auto\" || !hasValueNow() || !row.value) return\n const next = valueFitsBeside(row.value)\n if (next !== fits.value) fits.value = next\n }\n let observer: ResizeObserver | undefined\n let width = -1\n // A web font that arrives late (font-display: swap) changes the words' widths, not the row's\n const fonts = typeof document !== \"undefined\" ? document.fonts : undefined\n let live = true\n const onFonts = () => {\n if (live) check()\n }\n onMounted(() => {\n check()\n fonts?.ready.then(onFonts)\n fonts?.addEventListener?.(\"loadingdone\", onFonts)\n if (typeof ResizeObserver === \"undefined\" || !row.value) return\n width = row.value.getBoundingClientRect().width\n observer = new ResizeObserver(() => {\n const next = row.value?.getBoundingClientRect().width ?? width\n if (next === width) return\n width = next\n check()\n })\n observer.observe(row.value)\n })\n onUpdated(check)\n // FieldGroup columns give the label a column of its own: a change of them measures again, after the group renders\n const columns = useFieldColumns()\n watch(columns, () => nextTick(check), { flush: \"post\" })\n onBeforeUnmount(() => {\n live = false\n fonts?.removeEventListener?.(\"loadingdone\", onFonts)\n observer?.disconnect()\n })\n\n return () => {\n const label: VNodeChild = slots.label ? slots.label() : props.label\n const value: VNodeChild = slots.value ? slots.value() : shown(props.value) ? props.value : undefined\n const description: VNodeChild = slots.description ? slots.description() : props.description\n const hasValue = slots.value ? true : shown(props.value)\n const hasDescription = slots.description ? true : shown(props.description)\n const below = hasValue && (props.valuePlacement === \"below\" || (props.valuePlacement === \"auto\" && !fits.value))\n\n const content = () =>\n h(\"span\", { \"class\": s.Content, \"data-navigation-row-content\": \"\" }, [\n h(\"span\", { class: s.Text }, [\n h(\"span\", { \"class\": s.Label, \"data-navigation-row-part\": \"\" }, [label as never]),\n hasDescription ? h(\"span\", { class: s.Description }, [description as never]) : null,\n ]),\n hasValue ? h(\"span\", { \"class\": s.Value, \"data-navigation-row-part\": \"\" }, [value as never]) : null,\n h(Disclosure, { \"class\": s.Disclosure, \"aria-hidden\": \"true\", \"data-no-autosize\": \"\" }),\n ])\n\n const { class: className, ...rest } = attrs\n const shared = {\n \"class\": [s.Pressable, className],\n \"block\": true,\n \"color\": \"secondary\",\n \"variant\": \"ghost\",\n \"data-navigation-row\": \"\",\n } as const\n const link = (props.href !== undefined || props.to !== undefined) && !props.disabled\n\n return h(\n \"div\",\n {\n \"ref\": row,\n \"class\": s.NavigationRow,\n \"data-row\": \"\",\n \"data-value-below\": below ? \"\" : undefined,\n \"data-value\": hasValue ? \"\" : undefined,\n \"data-description\": hasDescription ? \"\" : undefined,\n },\n [\n link\n ? h(\n ButtonLink,\n { ...rest, ...shared, ref: pressable, href: props.href, to: props.to, external: props.external, as: props.as },\n { default: content },\n )\n : h(Button, { ...rest, ...shared, ref: pressable, disabled: props.disabled }, { default: content }),\n ],\n )\n }\n },\n})\n\ntype NavigationRowOwnProps = InstanceType<typeof NavigationRowComponent>[\"$props\"]\n\n/** NavigationRow props plus the native button and link attributes and the click listener that fall through to the\n * pressable, as in React. */\nexport type NavigationRowProps = NavigationRowOwnProps &\n Omit<ButtonHTMLAttributes, keyof NavigationRowOwnProps | \"value\" | \"type\"> &\n Pick<AnchorHTMLAttributes, \"target\" | \"rel\" | \"download\" | \"hreflang\" | \"ping\" | \"referrerpolicy\"> & {\n onClick?: (event: MouseEvent) => void\n }\n\nexport const NavigationRow = NavigationRowComponent as typeof NavigationRowComponent & {\n new (): { $props: NavigationRowProps; focus: (options?: FocusOptions) => void; element: HTMLElement | null }\n}\n"]}
1
+ {"version":3,"file":"NavigationRow.js","sourceRoot":"","sources":["../../../../src/components/NavigationRow/NavigationRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsF,eAAe,EAAE,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAiB,GAAG,EAAmB,KAAK,EAAE,MAAM,KAAK,CAAA;AACzN,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,OAAO,CAAC,MAAM,kEAAkE,CAAA;AAIhF,MAAM,KAAK,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,EAAE,CAAA;AAE1G,wHAAw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EAAE;aACjB,CAAA;YACV,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,EAAE,KAAK,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAA;YAEpF,OAAO,CAAC,CACN,KAAK,EACL;gBACE,KAAK,EAAE,GAAG;gBACV,OAAO,EAAE,CAAC,CAAC,aAAa;gBACxB,UAAU,EAAE,EAAE;gBACd,kBAAkB,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;gBAC1C,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;gBACvC,kBAAkB,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;aACpD,EACD;gBACE,IAAI;oBACF,CAAC,CAAC,CAAC,CACC,UAAU,EACV,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,EAC9G,EAAE,OAAO,EAAE,OAAO,EAAE,CACrB;oBACH,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;aACtG,CACF,CAAA;QACH,CAAC,CAAA;IACH,CAAC;CACF,CAAC,CAAA;AAYF,MAAM,CAAC,MAAM,aAAa,GAAG,sBAE5B,CAAA","sourcesContent":["import { type AnchorHTMLAttributes, type ButtonHTMLAttributes, type ComponentPublicInstance, defineComponent, h, nextTick, onBeforeUnmount, onMounted, onUpdated, type PropType, ref, type VNodeChild, watch } from \"vue\"\nimport { Button, ButtonLink } from \"../Button/index.js\"\nimport { Disclosure } from \"../Icon/index.js\"\nimport { useFieldColumns } from \"../../lib/fieldRow.js\"\nimport type { LinkComponent } from \"../PlexUIProvider/index.js\"\nimport s from \"@plexui/styles/components/NavigationRow/NavigationRow.module.css\"\n\ntype RouteTarget = string | Record<string, unknown>\n\nconst shown = (value: unknown) => value !== null && value !== undefined && value !== false && value !== \"\"\n\n/** Whether the label and the value of a row fit beside each other on one line: measured in the end layout, unwrapped */\nconst valueFitsBeside = (row: HTMLElement) => {\n const content = row.querySelector<HTMLElement>(\"[data-navigation-row-content]\")\n if (!content) return true\n const below = row.hasAttribute(\"data-value-below\")\n row.removeAttribute(\"data-value-below\")\n row.setAttribute(\"data-measuring\", \"\")\n const fits = [content, ...content.querySelectorAll<HTMLElement>(\"[data-navigation-row-part]\")].every(\n (element) => element.scrollWidth <= element.clientWidth + 0.5,\n )\n row.removeAttribute(\"data-measuring\")\n if (below) row.setAttribute(\"data-value-below\", \"\")\n return fits\n}\n\n/**\n * Vue port of `NavigationRow` from packages/ui/src/components/NavigationRow/NavigationRow.tsx: a FieldGroup row\n * that opens what it holds, as an iOS Settings drill-in. Attributes (id, class, ARIA, data, listeners) fall through\n * to the pressable. The `label`, `value` and `description` slots take the place of their props.\n */\nconst NavigationRowComponent = defineComponent({\n name: \"NavigationRow\",\n inheritAttrs: false,\n props: {\n /** The row's name, where a row's label starts */\n label: [String, Number] as PropType<string | number>,\n /** The current value, at the end of the row in the secondary label. `0` shows; `null`, `undefined` and `\"\"` do not. */\n value: [String, Number] as PropType<string | number | null>,\n /** A line under the label; the row grows from 52 to hold it */\n description: [String, Number] as PropType<string | number>,\n /** Where the row goes. With it the row is a link (through `PlexUIProvider`'s `linkComponent`, or `as`). */\n href: String,\n /** A router target; with it the row is a link through the provider's link component */\n to: [String, Object] as PropType<RouteTarget>,\n /** Force external-link behavior */\n external: { type: Boolean, default: undefined },\n /** Link component override (e.g. a router link). */\n as: [String, Object, Function] as PropType<LinkComponent>,\n /** The row can't be pressed. A disabled link renders as a disabled button, so it never navigates. */\n disabled: { type: Boolean, default: undefined },\n /**\n * Where the value stands: at the `end` of the row, `below` the label at the full width, or `auto`: at the end while\n * it fits beside the label on one line, otherwise below (as Calendar sets a long value).\n */\n valuePlacement: { type: String as PropType<\"end\" | \"below\" | \"auto\">, default: \"end\" },\n },\n setup(props, { attrs, slots, expose }) {\n const pressable = ref<ComponentPublicInstance | null>(null)\n const element = () => (pressable.value?.$el ?? null) as HTMLElement | null\n // A ref reaches the pressable, as in React: its element and focus()\n expose({ focus: (options?: FocusOptions) => element()?.focus(options), get element() { return element() } })\n\n // \"auto\": measure after each render and when the row's width changes\n const row = ref<HTMLElement | null>(null)\n const fits = ref(true)\n const hasValueNow = () => !!slots.value || shown(props.value)\n const check = () => {\n if (props.valuePlacement !== \"auto\" || !hasValueNow() || !row.value) return\n const next = valueFitsBeside(row.value)\n if (next !== fits.value) fits.value = next\n }\n let observer: ResizeObserver | undefined\n let width = -1\n // A web font that arrives late (font-display: swap) changes the words' widths, not the row's\n const fonts = typeof document !== \"undefined\" ? document.fonts : undefined\n let live = true\n const onFonts = () => {\n if (live) check()\n }\n onMounted(() => {\n fonts?.addEventListener?.(\"loadingdone\", onFonts)\n if (typeof ResizeObserver === \"undefined\" || !row.value) {\n check()\n fonts?.ready.then(onFonts)\n return\n }\n // The first measure waits for the observer's first report, after the frame's layout and before its paint: a\n // measure on mount forced a layout for every row while a sheet of rows was being built. Fonts that finish\n // loading after that report measure again; before it, the report itself measures with them.\n fonts?.ready.then(() => {\n if (width !== -1) onFonts()\n })\n observer = new ResizeObserver((entries?: ResizeObserverEntry[]) => {\n const next = entries?.[entries.length - 1]?.contentRect.width ?? row.value?.getBoundingClientRect().width ?? width\n if (next === width) return\n width = next\n check()\n })\n observer.observe(row.value)\n })\n onUpdated(check)\n // FieldGroup columns give the label a column of its own: a change of them measures again, after the group renders\n const columns = useFieldColumns()\n watch(columns, () => nextTick(check), { flush: \"post\" })\n onBeforeUnmount(() => {\n live = false\n fonts?.removeEventListener?.(\"loadingdone\", onFonts)\n observer?.disconnect()\n })\n\n return () => {\n const label: VNodeChild = slots.label ? slots.label() : props.label\n const value: VNodeChild = slots.value ? slots.value() : shown(props.value) ? props.value : undefined\n const description: VNodeChild = slots.description ? slots.description() : props.description\n const hasValue = slots.value ? true : shown(props.value)\n const hasDescription = slots.description ? true : shown(props.description)\n const below = hasValue && (props.valuePlacement === \"below\" || (props.valuePlacement === \"auto\" && !fits.value))\n\n const content = () =>\n h(\"span\", { \"class\": s.Content, \"data-navigation-row-content\": \"\" }, [\n h(\"span\", { class: s.Text }, [\n h(\"span\", { \"class\": s.Label, \"data-navigation-row-part\": \"\" }, [label as never]),\n hasDescription ? h(\"span\", { class: s.Description }, [description as never]) : null,\n ]),\n hasValue ? h(\"span\", { \"class\": s.Value, \"data-navigation-row-part\": \"\" }, [value as never]) : null,\n h(Disclosure, { \"class\": s.Disclosure, \"aria-hidden\": \"true\", \"data-no-autosize\": \"\" }),\n ])\n\n const { class: className, ...rest } = attrs\n const shared = {\n \"class\": [s.Pressable, className],\n \"block\": true,\n \"color\": \"secondary\",\n \"variant\": \"ghost\",\n \"data-navigation-row\": \"\",\n } as const\n const link = (props.href !== undefined || props.to !== undefined) && !props.disabled\n\n return h(\n \"div\",\n {\n \"ref\": row,\n \"class\": s.NavigationRow,\n \"data-row\": \"\",\n \"data-value-below\": below ? \"\" : undefined,\n \"data-value\": hasValue ? \"\" : undefined,\n \"data-description\": hasDescription ? \"\" : undefined,\n },\n [\n link\n ? h(\n ButtonLink,\n { ...rest, ...shared, ref: pressable, href: props.href, to: props.to, external: props.external, as: props.as },\n { default: content },\n )\n : h(Button, { ...rest, ...shared, ref: pressable, disabled: props.disabled }, { default: content }),\n ],\n )\n }\n },\n})\n\ntype NavigationRowOwnProps = InstanceType<typeof NavigationRowComponent>[\"$props\"]\n\n/** NavigationRow props plus the native button and link attributes and the click listener that fall through to the\n * pressable, as in React. */\nexport type NavigationRowProps = NavigationRowOwnProps &\n Omit<ButtonHTMLAttributes, keyof NavigationRowOwnProps | \"value\" | \"type\"> &\n Pick<AnchorHTMLAttributes, \"target\" | \"rel\" | \"download\" | \"hreflang\" | \"ping\" | \"referrerpolicy\"> & {\n onClick?: (event: MouseEvent) => void\n }\n\nexport const NavigationRow = NavigationRowComponent as typeof NavigationRowComponent & {\n new (): { $props: NavigationRowProps; focus: (options?: FocusOptions) => void; element: HTMLElement | null }\n}\n"]}
@@ -48,6 +48,11 @@ const selectProps = {
48
48
  variant: { type: String, default: "outline" },
49
49
  /** Fully rounded pill shape for the trigger. @default false, or true at the end of a `Field row` */
50
50
  pill: { type: Boolean, default: undefined },
51
+ /**
52
+ * The list in the rounder shape of a pill menu (as `MenuContent pill`), whatever the trigger: a `#trigger` of its own or
53
+ * a rounded field can open the same list as a pill one. @default the trigger's `pill`
54
+ */
55
+ listPill: { type: Boolean, default: undefined },
51
56
  /** Size of the trigger: `3xs` 22px up to `3xl` 48px. @default "md" */
52
57
  size: { type: String, default: "md" },
53
58
  /** Icon displayed in the far right of the select trigger. @default "dropdown" */
@@ -153,6 +158,7 @@ const SelectComponent = defineComponent({
153
158
  setup(rawProps, { emit, slots }) {
154
159
  const props = rawProps;
155
160
  const pill = useFieldRowPill(() => props.pill);
161
+ const listPill = computed(() => props.listPill ?? pill.value);
156
162
  // At the end of a Field row the menu opens from the row's end and fits its options: on a phone
157
163
  // the trigger there is only as wide as its value, so a menu of the trigger's width breaks every word.
158
164
  // In a `FieldGroup columns` the value starts at the column, and so does its menu.
@@ -239,6 +245,7 @@ const SelectComponent = defineComponent({
239
245
  triggerEl: shallowRef(null),
240
246
  block,
241
247
  pill,
248
+ listPill,
242
249
  align,
243
250
  alignOffset,
244
251
  listWidth,
@@ -589,7 +596,7 @@ const SelectContentElement = markRaw(defineComponent({
589
596
  const SelectPopoverContent = defineComponent({
590
597
  name: "SelectPopoverContent",
591
598
  setup() {
592
- const { props, align, alignOffset, listWidth, listMaxWidth, pill } = useSelectContext();
599
+ const { props, align, alignOffset, listWidth, listMaxWidth, listPill } = useSelectContext();
593
600
  const { handleRootOpenChange, popoverTriggerEl, open, selectContentRef } = inject(CustomSelectContextKey);
594
601
  const floatingBoundary = useFloatingBoundary(() => open.value && props.avoidCollisions, { bottom: 30, top: 30 });
595
602
  // On a phone the list opens over its trigger, as the pop-up menu of an iOS picker does (ref-app pickers, block 8:
@@ -622,7 +629,7 @@ const SelectPopoverContent = defineComponent({
622
629
  forceMount: true,
623
630
  as: SelectContentElement,
624
631
  class: s.MenuList,
625
- "data-pill": pill.value ? "" : undefined,
632
+ "data-pill": listPill.value ? "" : undefined,
626
633
  // A list that fits its options is the 250pt of an iOS menu on a phone (Select.module.css)
627
634
  "data-list-width": listWidth.value === "auto" ? "auto" : undefined,
628
635
  // A list given its own width keeps it on a phone too, below the 250pt