@inera/ids-react 9.4.0 → 9.4.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,11 +1,9 @@
1
- import { HTMLAttributes, ReactNode } from "react";
1
+ import { HTMLAttributes } from "react";
2
2
  interface IDSHeader1177NavBaseProps extends HTMLAttributes<HTMLElement> {
3
3
  hideOnTablet?: boolean;
4
- mobileLeft?: ReactNode;
5
- mobileRight?: ReactNode;
6
4
  unresponsive?: boolean;
7
5
  }
8
- export declare function IDSHeader1177NavBase({ hideOnTablet, mobileLeft, mobileRight, children, unresponsive, ...props }: IDSHeader1177NavBaseProps): import("react").JSX.Element;
6
+ export declare function IDSHeader1177NavBase({ hideOnTablet, children, unresponsive, ...props }: IDSHeader1177NavBaseProps): import("react").JSX.Element;
9
7
  export declare namespace IDSHeader1177NavBase {
10
8
  var displayName: string;
11
9
  }
@@ -1,12 +1,12 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
 
4
- function IDSHeader1177NavBase({ hideOnTablet = false, mobileLeft, mobileRight, children, unresponsive, ...props }) {
4
+ function IDSHeader1177NavBase({ hideOnTablet = false, children, unresponsive, ...props }) {
5
5
  const navClass = clsx("ids-header-1177-nav", {
6
6
  "ids-header-1177-nav--unresponsive": unresponsive,
7
7
  "ids-header-1177-nav--hide-on-tablet": hideOnTablet
8
8
  });
9
- return (jsxs("nav", { className: navClass, "aria-label": "Huvudmeny", ...props, children: [jsx("div", { className: "ids-header-1177-nav__inner", children: children }), jsxs("div", { className: "ids-header-1177-nav__inner-mobile", children: [jsx("div", { className: "ids-header-1177-nav__inner-mobile-left", children: mobileLeft }), jsx("div", { className: "ids-header-1177-nav__inner-mobile-right", children: mobileRight })] })] }));
9
+ return (jsx("nav", { className: navClass, "aria-label": "Huvudmeny", ...props, children: jsx("div", { className: "ids-header-1177-nav__inner", children: children }) }));
10
10
  }
11
11
  IDSHeader1177NavBase.displayName = "IDSHeader1177NavBase";
12
12
 
@@ -1,10 +1,8 @@
1
- import { HTMLAttributes, ReactNode } from "react";
1
+ import { HTMLAttributes } from "react";
2
2
  interface IDSHeader1177NavProps extends HTMLAttributes<HTMLElement> {
3
3
  hideOnTablet?: boolean;
4
- mobileLeft?: ReactNode;
5
- mobileRight?: ReactNode;
6
4
  }
7
- export declare function IDSHeader1177Nav({ hideOnTablet, mobileLeft, mobileRight, children, ...props }: IDSHeader1177NavProps): import("react").JSX.Element;
5
+ export declare function IDSHeader1177Nav({ hideOnTablet, children, ...props }: IDSHeader1177NavProps): import("react").JSX.Element;
8
6
  export declare namespace IDSHeader1177Nav {
9
7
  var displayName: string;
10
8
  }
@@ -3,9 +3,9 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { useHeaderContext } from '../utils/contexts/HeaderContext.js';
4
4
  import { IDSHeader1177NavBase } from './header-1177-nav-base.js';
5
5
 
6
- function IDSHeader1177Nav({ hideOnTablet = false, mobileLeft, mobileRight, children, ...props }) {
6
+ function IDSHeader1177Nav({ hideOnTablet = false, children, ...props }) {
7
7
  const headerContext = useHeaderContext();
8
- return (jsx(IDSHeader1177NavBase, { ...props, hideOnTablet: hideOnTablet || !headerContext?.unresponsive, mobileLeft: mobileLeft, mobileRight: mobileRight, unresponsive: headerContext?.unresponsive ?? false, children: children }));
8
+ return (jsx(IDSHeader1177NavBase, { ...props, hideOnTablet: hideOnTablet && !headerContext?.unresponsive, unresponsive: headerContext?.unresponsive ?? false, children: children }));
9
9
  }
10
10
  IDSHeader1177Nav.displayName = "IDSHeader1177Nav";
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inera/ids-react",
3
- "version": "9.4.0",
3
+ "version": "9.4.1",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
6
  "react": "*",