@oliasoft-open-source/react-ui-library 8.0.0-beta-4 → 8.0.0-beta-5

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.
@@ -7,6 +7,7 @@ export interface IMenuPopoverProps {
7
7
  isNested?: boolean;
8
8
  className?: string;
9
9
  offset?: number;
10
+ testId?: string;
10
11
  }
11
- export declare const MenuPopover: ({ children, placement, triggerRef, portalTriggerRef, isNested, className, offset, }: IMenuPopoverProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const MenuPopover: ({ children, placement, triggerRef, portalTriggerRef, isNested, className, offset, testId, }: IMenuPopoverProps) => import("react/jsx-runtime").JSX.Element;
12
13
  //# sourceMappingURL=menu-popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu-popover.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu-popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,qFAQzB,iBAAiB,4CAsBnB,CAAC"}
1
+ {"version":3,"file":"menu-popover.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu-popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUpD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,6FASzB,iBAAiB,4CAuBnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEzF,eAAO,MAAM,IAAI,GAAI,uMAmBlB,UAAU,4CA6FZ,CAAC"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEzF,eAAO,MAAM,IAAI,GAAI,uMAmBlB,UAAU,4CAkGZ,CAAC"}
package/dist/index.js CHANGED
@@ -876,14 +876,15 @@ var pa = {
876
876
  modalContainer: "_modalContainer_uahkz_236",
877
877
  menuItem: "_menuItem_uahkz_239",
878
878
  customSections: "_customSections_uahkz_254"
879
- }, Aa = ({ children: e, placement: t = "bottom-start", triggerRef: n, portalTriggerRef: r, isNested: i = !1, className: a, offset: o = 0 }) => {
880
- let s = i ? void 0 : _a((r == null ? n : r).current);
879
+ }, Aa = ({ children: e, placement: t = "bottom-start", triggerRef: n, portalTriggerRef: r, isNested: i = !1, className: a, offset: o = 0, testId: s }) => {
880
+ let c = i ? void 0 : _a((r == null ? n : r).current);
881
881
  return /* @__PURE__ */ x(On, {
882
882
  className: y(q.menuPopover, i && q.menuPopoverNested, a),
883
883
  placement: ha(t),
884
884
  offset: i ? 0 : o,
885
- UNSTABLE_portalContainer: s,
885
+ UNSTABLE_portalContainer: c,
886
886
  "data-overlay-layer": !0,
887
+ "data-testid": s,
887
888
  children: i ? e : /* @__PURE__ */ S("div", {
888
889
  id: Ui,
889
890
  className: q.modalContainer,
@@ -1278,7 +1279,7 @@ var pa = {
1278
1279
  triggerRef: E,
1279
1280
  close: te
1280
1281
  });
1281
- let ne = Va(I).placement, re = c ? `${c}-layer` : e.testId;
1282
+ let ne = Va(I).placement, re = c ? `${c}-layer` : void 0;
1282
1283
  return /* @__PURE__ */ S(Dn, {
1283
1284
  isOpen: z,
1284
1285
  onOpenChange: ee,
@@ -1318,6 +1319,7 @@ var pa = {
1318
1319
  placement: ne,
1319
1320
  triggerRef: E,
1320
1321
  offset: w,
1322
+ testId: e.testId,
1321
1323
  children: /* @__PURE__ */ x(Ba, {
1322
1324
  sections: P,
1323
1325
  width: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "8.0.0-beta-4",
3
+ "version": "8.0.0-beta-5",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {