@liner-fe/prism 1.12.28 → 1.12.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -7774,10 +7774,11 @@ import { forwardRef as forwardRef10, useEffect as useEffect2, useState as useSta
7774
7774
  import clsx15 from "clsx";
7775
7775
  import { Fragment as Fragment7, jsx as jsx153, jsxs as jsxs107 } from "react/jsx-runtime";
7776
7776
  var SelectContent = forwardRef10((props, ref) => {
7777
- const { isResponsive, popSide, sideOffset, listLabel, children } = props;
7777
+ const { id, isResponsive, popSide, sideOffset, listLabel, children } = props;
7778
7778
  return /* @__PURE__ */ jsx153(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx153(
7779
7779
  SelectPrimitive.Content,
7780
7780
  {
7781
+ id: `select-content-${id}`,
7781
7782
  ref: (instance) => {
7782
7783
  if (typeof ref === "function") {
7783
7784
  ref(instance);
@@ -7822,11 +7823,11 @@ var SelectRoot = forwardRef10((props, ref) => {
7822
7823
  openDirection = "slide-right",
7823
7824
  ...rest
7824
7825
  } = props;
7825
- const contentProps = { isResponsive, popSide, sideOffset, listLabel, children };
7826
+ const contentProps = { id, isResponsive, popSide, sideOffset, listLabel, children };
7826
7827
  const [isOpen, setIsOpen] = useState4(true);
7827
7828
  useEffect2(() => {
7828
7829
  setIsOpen(open);
7829
- }, [open]);
7830
+ });
7830
7831
  return /* @__PURE__ */ jsxs107(Fragment7, { children: [
7831
7832
  /* @__PURE__ */ jsx153(Label, { className: style_module_default13["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, chip: labelChip, children: label }),
7832
7833
  /* @__PURE__ */ jsxs107(