@vygruppen/spor-react 12.10.6 → 12.11.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.
package/dist/index.d.cts CHANGED
@@ -893,10 +893,9 @@ declare const DrawerContent: React$1.ForwardRefExoticComponent<Drawer$1.ContentP
893
893
  declare const CloseDrawerLine: React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLButtonElement>>;
894
894
  declare const DrawerCloseTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
895
895
  declare const DrawerBackTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
896
- declare const DrawerFullScreenHeader: React$1.ForwardRefExoticComponent<Drawer$1.HeaderProps & {
896
+ declare const DrawerFullScreenHeader: React$1.ForwardRefExoticComponent<Omit<Drawer$1.HeaderProps, "title"> & {
897
897
  backTrigger?: boolean;
898
898
  closeTrigger?: boolean;
899
- title?: React$1.ReactNode;
900
899
  } & React$1.RefAttributes<HTMLDivElement>>;
901
900
  declare const Drawer: (props: DrawerProps) => react_jsx_runtime.JSX.Element;
902
901
  declare const DrawerTrigger: React$1.ForwardRefExoticComponent<Drawer$1.TriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
package/dist/index.d.ts CHANGED
@@ -893,10 +893,9 @@ declare const DrawerContent: React$1.ForwardRefExoticComponent<Drawer$1.ContentP
893
893
  declare const CloseDrawerLine: React$1.ForwardRefExoticComponent<React$1.RefAttributes<HTMLButtonElement>>;
894
894
  declare const DrawerCloseTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
895
895
  declare const DrawerBackTrigger: React$1.ForwardRefExoticComponent<Drawer$1.CloseTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
896
- declare const DrawerFullScreenHeader: React$1.ForwardRefExoticComponent<Drawer$1.HeaderProps & {
896
+ declare const DrawerFullScreenHeader: React$1.ForwardRefExoticComponent<Omit<Drawer$1.HeaderProps, "title"> & {
897
897
  backTrigger?: boolean;
898
898
  closeTrigger?: boolean;
899
- title?: React$1.ReactNode;
900
899
  } & React$1.RefAttributes<HTMLDivElement>>;
901
900
  declare const Drawer: (props: DrawerProps) => react_jsx_runtime.JSX.Element;
902
901
  declare const DrawerTrigger: React$1.ForwardRefExoticComponent<Drawer$1.TriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
package/dist/index.mjs CHANGED
@@ -2393,10 +2393,10 @@ var DrawerBackTrigger = forwardRef((props, ref) => {
2393
2393
  });
2394
2394
  DrawerBackTrigger.displayName = "DrawerBackTrigger";
2395
2395
  var DrawerFullScreenHeader = forwardRef((props, ref) => {
2396
- const { backTrigger = true, closeTrigger = true, title } = props;
2396
+ const { backTrigger = true, closeTrigger = true, children } = props;
2397
2397
  return /* @__PURE__ */ jsx(Drawer$1.Header, { ...props, ref, asChild: true, children: /* @__PURE__ */ jsxs(Grid, { templateColumns: "1fr auto 1fr", height: "auto", paddingX: "8", children: [
2398
2398
  /* @__PURE__ */ jsx(GridItem, { width: "full", alignSelf: "center", children: backTrigger && /* @__PURE__ */ jsx(DrawerBackTrigger, {}) }),
2399
- /* @__PURE__ */ jsx(GridItem, { width: "full", alignSelf: "end", asChild: true, children: title && /* @__PURE__ */ jsx(DrawerTitle, { children: title }) }),
2399
+ /* @__PURE__ */ jsx(GridItem, { width: "full", alignSelf: "end", asChild: true, children: children && /* @__PURE__ */ jsx(DrawerTitle, { children }) }),
2400
2400
  closeTrigger && /* @__PURE__ */ jsx(GridItem, { width: "full", alignSelf: "end", children: /* @__PURE__ */ jsx(DrawerCloseTrigger, { justifySelf: "end", top: "0" }) })
2401
2401
  ] }) });
2402
2402
  });