@marigold/components 11.0.1 → 11.0.2

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/dist/index.d.mts CHANGED
@@ -873,10 +873,11 @@ type RemovedProps$b = 'style' | 'className';
873
873
  interface MenuItemProps extends Omit<RAC.MenuItemProps, RemovedProps$b> {
874
874
  }
875
875
 
876
- interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className'> {
876
+ interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
877
877
  keyboardDismissDisabled?: boolean;
878
878
  open?: boolean;
879
879
  container?: Element;
880
+ children: ReactNode;
880
881
  }
881
882
  declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
882
883
 
package/dist/index.d.ts CHANGED
@@ -873,10 +873,11 @@ type RemovedProps$b = 'style' | 'className';
873
873
  interface MenuItemProps extends Omit<RAC.MenuItemProps, RemovedProps$b> {
874
874
  }
875
875
 
876
- interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className'> {
876
+ interface PopoverProps extends Omit<RAC.PopoverProps, 'isOpen' | 'isKeyboardDismissDisabled' | 'style' | 'className' | 'children'> {
877
877
  keyboardDismissDisabled?: boolean;
878
878
  open?: boolean;
879
879
  container?: Element;
880
+ children: ReactNode;
880
881
  }
881
882
  declare const _Popover: react.ForwardRefExoticComponent<PopoverProps & react.RefAttributes<HTMLDivElement>>;
882
883
 
package/dist/index.js CHANGED
@@ -804,21 +804,22 @@ var _Popover = (0, import_react13.forwardRef)(
804
804
  });
805
805
  const isSmallScreen = (0, import_system18.useSmallScreen)();
806
806
  const portal = usePortalContainer();
807
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
808
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Underlay, { open, variant: "modal" }),
809
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
810
- import_react_aria_components15.Popover,
811
- {
812
- ref,
813
- ...props,
814
- className: (0, import_system18.cn)(
815
- "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full"
816
- ),
817
- UNSTABLE_portalContainer: portal,
818
- children
819
- }
820
- )
821
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
807
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: isSmallScreen ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
808
+ import_react_aria_components15.Popover,
809
+ {
810
+ ref,
811
+ ...props,
812
+ className: (0, import_system18.cn)(
813
+ "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full",
814
+ classNames2
815
+ ),
816
+ UNSTABLE_portalContainer: portal,
817
+ children: [
818
+ children,
819
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Underlay, { open, variant: "modal" })
820
+ ]
821
+ }
822
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
822
823
  import_react_aria_components15.Popover,
823
824
  {
824
825
  ref,
package/dist/index.mjs CHANGED
@@ -694,21 +694,22 @@ var _Popover = forwardRef7(
694
694
  });
695
695
  const isSmallScreen = useSmallScreen();
696
696
  const portal = usePortalContainer();
697
- return /* @__PURE__ */ jsx21(Fragment2, { children: isSmallScreen ? /* @__PURE__ */ jsxs10(Fragment2, { children: [
698
- /* @__PURE__ */ jsx21(Underlay, { open, variant: "modal" }),
699
- /* @__PURE__ */ jsx21(
700
- Popover,
701
- {
702
- ref,
703
- ...props,
704
- className: cn13(
705
- "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full"
706
- ),
707
- UNSTABLE_portalContainer: portal,
708
- children
709
- }
710
- )
711
- ] }) : /* @__PURE__ */ jsx21(
697
+ return /* @__PURE__ */ jsx21(Fragment2, { children: isSmallScreen ? /* @__PURE__ */ jsx21(Fragment2, { children: /* @__PURE__ */ jsxs10(
698
+ Popover,
699
+ {
700
+ ref,
701
+ ...props,
702
+ className: cn13(
703
+ "fixed! top-auto! bottom-0! left-0! max-h-fit! w-full",
704
+ classNames2
705
+ ),
706
+ UNSTABLE_portalContainer: portal,
707
+ children: [
708
+ children,
709
+ /* @__PURE__ */ jsx21(Underlay, { open, variant: "modal" })
710
+ ]
711
+ }
712
+ ) }) : /* @__PURE__ */ jsx21(
712
713
  Popover,
713
714
  {
714
715
  ref,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "11.0.1",
3
+ "version": "11.0.2",
4
4
  "description": "Components for the Marigold Design System",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -43,7 +43,7 @@
43
43
  "@react-types/shared": "3.27.0",
44
44
  "@react-types/table": "3.10.4",
45
45
  "react-aria-components": "1.6.0",
46
- "@marigold/system": "11.0.1",
46
+ "@marigold/system": "11.0.2",
47
47
  "@marigold/types": "1.2.1"
48
48
  },
49
49
  "peerDependencies": {
@@ -55,7 +55,7 @@
55
55
  "react": "19.0.0",
56
56
  "react-dom": "19.0.0",
57
57
  "tsup": "8.3.5",
58
- "@marigold/icons": "1.2.66",
58
+ "@marigold/icons": "1.2.67",
59
59
  "@marigold/tsconfig": "0.4.0"
60
60
  },
61
61
  "scripts": {