@midas-ds/layout 0.2.40 → 0.2.41

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/chunks/{clsx-CbxlCXZ3.js → clsx-Bok9rGJm.js} +6 -4
  3. package/chunks/{header-BltmIBxL.js → header-CKgqPF7j.js} +2 -2
  4. package/chunks/{layout-4Fc6PGCm.js → layout-D1po9FHB.js} +1 -1
  5. package/chunks/{main-C-aHrwYe.js → main-fC0vGdZw.js} +1 -1
  6. package/chunks/{navbar-DWupsHC1.js → navbar-DwUBXEZn.js} +1 -1
  7. package/chunks/{navigation-3ushsAQf.js → navigation-DBKcWjzG.js} +4 -4
  8. package/chunks/{panel-C16S0Sww.js → panel-MI09-Qe_.js} +1 -1
  9. package/chunks/{sidebar-HGfteIDk.js → sidebar-BYqoekwF.js} +3 -3
  10. package/chunks/{utils-In-o3O3t.js → utils-CjjqyX25.js} +3 -3
  11. package/header/Header.d.ts +1 -1
  12. package/header/Header.stories.d.ts +1 -1
  13. package/header/header-action/HeaderAction.d.ts +1 -1
  14. package/header/header-actions/HeaderActions.d.ts +1 -1
  15. package/header/header-actions/HeaderActions.stories.d.ts +1 -1
  16. package/header/header-logo/HeaderLogo.d.ts +1 -1
  17. package/header/header-title/HeaderTitle.d.ts +1 -1
  18. package/header/index.js +1 -1
  19. package/header/mobile-menu/MobileMenu.d.ts +2 -2
  20. package/header/mobile-menu/MobileMenu.stories.d.ts +2 -2
  21. package/index.js +7 -7
  22. package/layout/Layout.d.ts +1 -1
  23. package/layout/Layout.stories.d.ts +1 -1
  24. package/layout/index.js +1 -1
  25. package/layout/layout-content/LayoutContent.d.ts +1 -1
  26. package/layout/skip-to-content/SkipToContent.d.ts +1 -1
  27. package/main/Main.d.ts +1 -1
  28. package/main/index.js +1 -1
  29. package/navbar/Navbar.d.ts +1 -1
  30. package/navbar/Navbar.stories.d.ts +2 -2
  31. package/navbar/index.js +1 -1
  32. package/navigation/Navigation.d.ts +1 -1
  33. package/navigation/Navigation.stories.d.ts +1 -1
  34. package/navigation/index.js +1 -1
  35. package/navigation/navigation-header/NavigationHeader.d.ts +2 -2
  36. package/navigation/navigation-item/NavigationItem.d.ts +1 -1
  37. package/navigation/navigation-link/NavigationLink.d.ts +1 -1
  38. package/navigation/navigation-link/NavigationLink.stories.d.ts +2 -2
  39. package/navigation/navigation-section/NavigationSection.d.ts +1 -1
  40. package/navigation/navigation-sub-menu/NavigationSubMenu.d.ts +1 -1
  41. package/package.json +5 -5
  42. package/panel/Panel.d.ts +1 -1
  43. package/panel/Panel.stories.d.ts +2 -2
  44. package/panel/PanelProvider.d.ts +1 -1
  45. package/panel/PanelRegion.d.ts +1 -1
  46. package/panel/index.js +1 -1
  47. package/panel/panel-header/PanelHeader.d.ts +1 -1
  48. package/panel/panel-title/PanelTitle.d.ts +2 -2
  49. package/sidebar/Sidebar.d.ts +2 -2
  50. package/sidebar/Sidebar.stories.d.ts +2 -2
  51. package/sidebar/index.js +1 -1
  52. package/utils/index.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## 0.2.41 (2026-09-28)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **components,layout:** keep @midas-ds imports in published types ([6229b621a3d](https://github.com/migrationsverket/midas/commit/6229b621a3d))
6
+ - **components,layout,table-styles:** update adobe dependencies ([bb54f8b7f4d](https://github.com/migrationsverket/midas/commit/bb54f8b7f4d))
7
+
8
+ ### 🔧 Maintenance
9
+
10
+ - **deps:** run npm update ([c349591751e](https://github.com/migrationsverket/midas/commit/c349591751e))
11
+ - **deps:** update vite related dependencies ([b484d858e76](https://github.com/migrationsverket/midas/commit/b484d858e76))
12
+
13
+ ### 🧱 Updated Dependencies
14
+
15
+ - Updated components to 17.27.1
16
+
1
17
  ## 0.2.40 (2026-09-28)
2
18
 
3
19
  ### 🧱 Updated Dependencies
@@ -2,10 +2,12 @@
2
2
  function e(t) {
3
3
  var n, r, i = "";
4
4
  if (typeof t == "string" || typeof t == "number") i += t;
5
- else if (typeof t == "object") if (Array.isArray(t)) {
6
- var a = t.length;
7
- for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
8
- } else for (r in t) t[r] && (i && (i += " "), i += r);
5
+ else if (typeof t == "object") {
6
+ if (Array.isArray(t)) {
7
+ var a = t.length;
8
+ for (n = 0; n < a; n++) t[n] && (r = e(t[n])) && (i && (i += " "), i += r);
9
+ } else for (r in t) t[r] && (i && (i += " "), i += r);
10
+ }
9
11
  return i;
10
12
  }
11
13
  function t() {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-CbxlCXZ3.js";
2
+ import { t as e } from "./clsx-Bok9rGJm.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
- import { t as n } from "./utils-In-o3O3t.js";
4
+ import { t as n } from "./utils-CjjqyX25.js";
5
5
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import { createContext as o, forwardRef as s } from "react";
7
7
  import { Dialog as c, Modal as l, composeRenderProps as u } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-CbxlCXZ3.js";
2
+ import { t as e } from "./clsx-Bok9rGJm.js";
3
3
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
4
  import { Button as r, useLocalizedStringFormatter as i } from "@midas-ds/components";
5
5
  import '../assets/layout.css';var a = { layout: "_layout_4r2tn_1" }, o = {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-CbxlCXZ3.js";
1
+ import { t as e } from "./clsx-Bok9rGJm.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import '../assets/main.css';var n = { main: "_main_1cmhi_1" }, r = ({ className: r, ...i }) => /* @__PURE__ */ t("main", {
4
4
  className: e(r, n.main),
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-CbxlCXZ3.js";
2
+ import { t as e } from "./clsx-Bok9rGJm.js";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { createContext as n } from "react";
5
5
  import '../assets/navbar.css';//#region src/navbar/NavbarContext.tsx
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-CbxlCXZ3.js";
3
- import { r as t } from "./header-BltmIBxL.js";
4
- import { n } from "./sidebar-HGfteIDk.js";
5
- import { n as r } from "./navbar-DWupsHC1.js";
2
+ import { t as e } from "./clsx-Bok9rGJm.js";
3
+ import { r as t } from "./header-CKgqPF7j.js";
4
+ import { n } from "./sidebar-BYqoekwF.js";
5
+ import { n as r } from "./navbar-DwUBXEZn.js";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { useContext as o } from "react";
8
8
  import { Collection as s, Focusable as c, Link as l, OverlayTriggerStateContext as u } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-CbxlCXZ3.js";
2
+ import { t as e } from "./clsx-Bok9rGJm.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  import { createContext as i, forwardRef as a, useContext as o, useEffect as s, useRef as c, useState as l } from "react";
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-CbxlCXZ3.js";
2
+ import { t as e } from "./clsx-Bok9rGJm.js";
3
3
  import { t } from "./createLucideIcon-BgluSHFG.js";
4
- import { c as n, l as r, s as i, u as a } from "./panel-C16S0Sww.js";
5
- import { t as o } from "./utils-In-o3O3t.js";
4
+ import { c as n, l as r, s as i, u as a } from "./panel-MI09-Qe_.js";
5
+ import { t as o } from "./utils-CjjqyX25.js";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
7
  import l, { createContext as u } from "react";
8
8
  import { Button as d, useLocalizedStringFormatter as f } from "@midas-ds/components";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import e, { useContext as t, useEffect as n, useState as r } from "react";
3
3
  String(Math.round(Math.random() * 1e10));
4
- //#region ../../node_modules/@react-aria/ssr/dist/SSRProvider.mjs
4
+ //#region ../../node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
5
5
  var i = /*#__PURE__*/ e.createContext(!1);
6
6
  typeof window < "u" && window.document && window.document.createElement, e.useId;
7
7
  function a() {
@@ -17,7 +17,7 @@ function c() {
17
17
  return typeof e.useSyncExternalStore == "function" ? e.useSyncExternalStore(s, a, o) : t(i);
18
18
  }
19
19
  //#endregion
20
- //#region ../../node_modules/@react-spectrum/utils/dist/useMediaQuery.mjs
20
+ //#region ../../node_modules/@adobe/react-spectrum/dist/private/utils/useMediaQuery.mjs
21
21
  function l(e) {
22
22
  let t = typeof window < "u" && typeof window.matchMedia == "function", [i, a] = r(() => t ? window.matchMedia(e).matches : !1);
23
23
  return n(() => {
@@ -28,7 +28,7 @@ function l(e) {
28
28
  return n.addListener(r), () => {
29
29
  n.removeListener(r);
30
30
  };
31
- }, [t, e]), c() ? !1 : i;
31
+ }, [t, e]), !c() && i;
32
32
  }
33
33
  //#endregion
34
34
  //#region src/utils/useIsMobileDevice.ts
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type HeaderProps = DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
3
- export declare const Header: ({ className, ...rest }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Header: ({ className, ...rest }: HeaderProps) => import('react').JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Header } from './Header';
3
3
  type Story = StoryObj<typeof Header>;
4
4
  declare const _default: {
5
- component: ({ className, ...rest }: import('./Header').HeaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ className, ...rest }: import('./Header').HeaderProps) => import('react').JSX.Element;
6
6
  title: string;
7
7
  tags: string[];
8
8
  parameters: {
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { ButtonProps } from '../../../../components/src/index.ts';
2
+ import { ButtonProps } from '@midas-ds/components';
3
3
  export interface HeaderActionProps extends Omit<ButtonProps, 'icon'> {
4
4
  icon?: ReactNode;
5
5
  }
@@ -3,4 +3,4 @@ export interface HeaderActionsProps {
3
3
  children?: ReactNode;
4
4
  className?: string;
5
5
  }
6
- export declare const HeaderActions: ({ children, className }: HeaderActionsProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const HeaderActions: ({ children, className }: HeaderActionsProps) => import('react').JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { HeaderActions } from './HeaderActions';
3
3
  type Story = StoryObj<typeof HeaderActions>;
4
4
  declare const _default: {
5
- component: ({ children, className }: import('./HeaderActions').HeaderActionsProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ children, className }: import('./HeaderActions').HeaderActionsProps) => import('react').JSX.Element;
6
6
  title: string;
7
7
  tags: string[];
8
8
  parameters: {
@@ -1,4 +1,4 @@
1
1
  export interface HeaderLogoProps {
2
2
  primary?: boolean;
3
3
  }
4
- export declare const HeaderLogo: ({ primary }: HeaderLogoProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const HeaderLogo: ({ primary }: HeaderLogoProps) => import('react').JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type HeaderTitleProps = HTMLAttributes<HTMLSpanElement>;
3
- export declare const HeaderTitle: ({ className, ...rest }: HeaderTitleProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const HeaderTitle: ({ className, ...rest }: HeaderTitleProps) => import('react').JSX.Element;
package/header/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/header-BltmIBxL.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "../chunks/header-CKgqPF7j.js";
2
2
  export { o as Header, r as HeaderAction, a as HeaderActions, e as HeaderLogo, t as HeaderTitle, n as MobileMenu, i as MobileMenuContext };
@@ -1,5 +1,5 @@
1
1
  import { DialogTriggerProps } from 'react-aria-components';
2
- import { ModalOverlayProps } from '../../../../components/src/index.ts';
2
+ import { ModalOverlayProps } from '@midas-ds/components';
3
3
  type StateValues = 'isOpen' | 'defaultOpen' | 'onOpenChange';
4
4
  export interface MobileMenuProps extends Omit<ModalOverlayProps, StateValues>, Pick<DialogTriggerProps, StateValues> {
5
5
  /**
@@ -7,5 +7,5 @@ export interface MobileMenuProps extends Omit<ModalOverlayProps, StateValues>, P
7
7
  */
8
8
  title?: string;
9
9
  }
10
- export declare const MobileMenu: ({ children, className, defaultOpen, isOpen, onOpenChange, title, ...rest }: MobileMenuProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ export declare const MobileMenu: ({ children, className, defaultOpen, isOpen, onOpenChange, title, ...rest }: MobileMenuProps) => import('react').JSX.Element | null;
11
11
  export {};
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { MobileMenu } from '.';
3
3
  type Story = StoryObj<typeof MobileMenu>;
4
4
  declare const _default: {
5
- component: ({ children, className, defaultOpen, isOpen, onOpenChange, title, ...rest }: import('./MobileMenu').MobileMenuProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ component: ({ children, className, defaultOpen, isOpen, onOpenChange, title, ...rest }: import('./MobileMenu').MobileMenuProps) => import('react').JSX.Element | null;
6
6
  title: string;
7
7
  tags: string[];
8
8
  globals: {
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  };
12
12
  };
13
13
  args: {
14
- children: import("react/jsx-runtime").JSX.Element;
14
+ children: import('react').JSX.Element;
15
15
  };
16
16
  };
17
17
  export default _default;
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./chunks/header-BltmIBxL.js";
2
- import { n as s, t as c } from "./chunks/sidebar-HGfteIDk.js";
3
- import { a as l, c as u, i as d, l as f, n as p, o as m, r as h, s as g, t as _, u as v } from "./chunks/panel-C16S0Sww.js";
4
- import { n as y, t as b } from "./chunks/layout-4Fc6PGCm.js";
5
- import { t as x } from "./chunks/main-C-aHrwYe.js";
6
- import { a as S, i as C, n as w, o as T, r as E, t as D } from "./chunks/navigation-3ushsAQf.js";
7
- import { n as O, t as k } from "./chunks/navbar-DWupsHC1.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./chunks/header-CKgqPF7j.js";
2
+ import { n as s, t as c } from "./chunks/sidebar-BYqoekwF.js";
3
+ import { a as l, c as u, i as d, l as f, n as p, o as m, r as h, s as g, t as _, u as v } from "./chunks/panel-MI09-Qe_.js";
4
+ import { n as y, t as b } from "./chunks/layout-D1po9FHB.js";
5
+ import { t as x } from "./chunks/main-fC0vGdZw.js";
6
+ import { a as S, i as C, n as w, o as T, r as E, t as D } from "./chunks/navigation-DBKcWjzG.js";
7
+ import { n as O, t as k } from "./chunks/navbar-DwUBXEZn.js";
8
8
  export { o as Header, r as HeaderAction, a as HeaderActions, e as HeaderLogo, t as HeaderTitle, y as Layout, b as LayoutContent, x as Main, n as MobileMenu, i as MobileMenuContext, k as Navbar, O as NavbarContext, T as Navigation, S as NavigationHeader, C as NavigationItem, E as NavigationLink, w as NavigationSection, D as NavigationSubMenu, m as Panel, v as PanelBody, f as PanelContent, d as PanelContext, u as PanelHeader, h as PanelProvider, _ as PanelRegion, g as PanelTitle, c as Sidebar, s as SidebarContext, l as UsePanels, p as usePanels };
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type LayoutProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
- export declare const Layout: ({ children, className, ...rest }: LayoutProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Layout: ({ children, className, ...rest }: LayoutProps) => import('react').JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Layout } from '.';
3
3
  type Story = StoryObj<typeof Layout>;
4
4
  declare const _default: {
5
- component: ({ children, className, ...rest }: import('./Layout').LayoutProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ children, className, ...rest }: import('./Layout').LayoutProps) => import('react').JSX.Element;
6
6
  title: string;
7
7
  tags: string[];
8
8
  args: {
package/layout/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/layout-4Fc6PGCm.js";
1
+ import { n as e, t } from "../chunks/layout-D1po9FHB.js";
2
2
  export { e as Layout, t as LayoutContent };
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type LayoutContentProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
- export declare const LayoutContent: ({ className, ...rest }: LayoutContentProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const LayoutContent: ({ className, ...rest }: LayoutContentProps) => import('react').JSX.Element;
@@ -5,4 +5,4 @@ export interface SkipToContentProps {
5
5
  */
6
6
  selector?: string;
7
7
  }
8
- export declare const SkipToContent: ({ selector, }: SkipToContentProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const SkipToContent: ({ selector, }: SkipToContentProps) => import('react').JSX.Element;
package/main/Main.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type MainProps = DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
3
- export declare const Main: ({ className, ...rest }: MainProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Main: ({ className, ...rest }: MainProps) => import('react').JSX.Element;
package/main/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/main-C-aHrwYe.js";
1
+ import { t as e } from "../chunks/main-fC0vGdZw.js";
2
2
  export { e as Main };
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type NavbarProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
- export declare const Navbar: ({ className, children, ...rest }: NavbarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const Navbar: ({ className, children, ...rest }: NavbarProps) => import('react').JSX.Element;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Navbar } from './Navbar';
3
3
  type Story = StoryObj<typeof Navbar>;
4
4
  declare const _default: {
5
- component: ({ className, children, ...rest }: import('./Navbar').NavbarProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ className, children, ...rest }: import('./Navbar').NavbarProps) => import('react').JSX.Element;
6
6
  title: string;
7
7
  tags: string[];
8
8
  parameters: {
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  };
16
16
  };
17
17
  args: {
18
- children: import("react/jsx-runtime").JSX.Element;
18
+ children: import('react').JSX.Element;
19
19
  };
20
20
  };
21
21
  export default _default;
package/navbar/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/navbar-DWupsHC1.js";
1
+ import { n as e, t } from "../chunks/navbar-DwUBXEZn.js";
2
2
  export { t as Navbar, e as NavbarContext };
@@ -1,4 +1,4 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  import { CollectionProps } from 'react-aria-components';
3
3
  export type NavigationProps<T extends object> = CollectionProps<T> & Omit<DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>, 'children'>;
4
- export declare const Navigation: <T extends object>({ className, items, children, dependencies, idScope, addIdAndValue, ...rest }: NavigationProps<T>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Navigation: <T extends object>({ className, items, children, dependencies, idScope, addIdAndValue, ...rest }: NavigationProps<T>) => import('react').JSX.Element;
@@ -16,7 +16,7 @@ type Item = {
16
16
  children?: Item[];
17
17
  };
18
18
  declare const _default: {
19
- component: <T extends object>({ className, items, children, dependencies, idScope, addIdAndValue, ...rest }: import('./Navigation').NavigationProps<T>) => import("react/jsx-runtime").JSX.Element;
19
+ component: <T extends object>({ className, items, children, dependencies, idScope, addIdAndValue, ...rest }: import('./Navigation').NavigationProps<T>) => import('react').JSX.Element;
20
20
  title: string;
21
21
  tags: string[];
22
22
  };
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/navigation-3ushsAQf.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/navigation-DBKcWjzG.js";
2
2
  export { r as Navigation, e as NavigationHeader, t as NavigationItem, i as NavigationLink, n as NavigationSection, a as NavigationSubMenu };
@@ -1,2 +1,2 @@
1
- import { TextProps } from '../../../../components/src/index.ts';
2
- export declare const NavigationHeader: ({ className, ...rest }: TextProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { TextProps } from '@midas-ds/components';
2
+ export declare const NavigationHeader: ({ className, ...rest }: TextProps) => import('react').JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type NavigationItemProps = DetailedHTMLProps<HTMLAttributes<HTMLLIElement>, HTMLLIElement>;
3
- export declare const NavigationItem: ({ className, ...rest }: NavigationItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const NavigationItem: ({ className, ...rest }: NavigationItemProps) => import('react').JSX.Element;
@@ -14,4 +14,4 @@ export interface NavigationLinkComponentProps<C extends ElementType> {
14
14
  as?: C;
15
15
  }
16
16
  export type NavigationLinkProps<C extends ElementType> = NavigationLinkComponentProps<C> & Omit<ComponentProps<C>, keyof NavigationLinkComponentProps<C>>;
17
- export declare const NavigationLink: <C extends ElementType = typeof Link>({ as, children, className, isActive, isDisabled, icon, "aria-label": ariaLabel, ...rest }: NavigationLinkProps<C>) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const NavigationLink: <C extends ElementType = typeof Link>({ as, children, className, isActive, isDisabled, icon, "aria-label": ariaLabel, ...rest }: NavigationLinkProps<C>) => import('react').JSX.Element;
@@ -2,13 +2,13 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { NavigationLink } from '.';
3
3
  type Story = StoryObj<typeof NavigationLink>;
4
4
  declare const _default: {
5
- component: <C extends import('react').ElementType = (props: import('react-aria-components').LinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null>({ as, children, className, isActive, isDisabled, icon, "aria-label": ariaLabel, ...rest }: import('./NavigationLink').NavigationLinkProps<C>) => import("react/jsx-runtime").JSX.Element;
5
+ component: <C extends import('react').ElementType = (props: import('react-aria-components').LinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement | null>({ as, children, className, isActive, isDisabled, icon, "aria-label": ariaLabel, ...rest }: import('./NavigationLink').NavigationLinkProps<C>) => import('react').JSX.Element;
6
6
  title: string;
7
7
  tags: string[];
8
8
  args: {
9
9
  children: string;
10
10
  href: string;
11
- icon: import("react/jsx-runtime").JSX.Element;
11
+ icon: import('react').JSX.Element;
12
12
  };
13
13
  parameters: {
14
14
  layout: string;
@@ -3,4 +3,4 @@ export type NavigationSectionProps<T extends object> = CollectionProps<T> & {
3
3
  title?: string;
4
4
  className?: string;
5
5
  };
6
- export declare const NavigationSection: <T extends object>({ className, title, ...rest }: NavigationSectionProps<T>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const NavigationSection: <T extends object>({ className, title, ...rest }: NavigationSectionProps<T>) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { CollectionProps } from 'react-aria-components';
2
2
  export type NavigationSubMenuProps<T extends object> = CollectionProps<T> & {
3
3
  className?: string;
4
4
  };
5
- export declare const NavigationSubMenu: <T extends object>({ className, children, items, ...rest }: NavigationSubMenuProps<T>) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const NavigationSubMenu: <T extends object>({ className, children, items, ...rest }: NavigationSubMenuProps<T>) => import('react').JSX.Element | null;
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Layout components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "0.2.40",
17
+ "version": "0.2.41",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -41,9 +41,9 @@
41
41
  "react-dom": "^18.3.1 || ^19.0.0"
42
42
  },
43
43
  "dependencies": {
44
- "@midas-ds/components": "17.27.0",
45
- "@react-aria/utils": "^3.33.1",
46
- "@react-stately/utils": "^3.12.1",
47
- "react-aria-components": "1.20.0"
44
+ "@midas-ds/components": "17.27.1",
45
+ "@react-aria/utils": "3.34.1",
46
+ "@react-stately/utils": "3.12.1",
47
+ "react-aria-components": "1.21.1"
48
48
  }
49
49
  }
package/panel/Panel.d.ts CHANGED
@@ -18,4 +18,4 @@ export interface PanelProps extends PanelBodyProps {
18
18
  /** Custom actions rendered in the panel header, to the right of the title. */
19
19
  actions?: ReactNode;
20
20
  }
21
- export declare const Panel: (props: PanelProps) => import("react/jsx-runtime").JSX.Element | null;
21
+ export declare const Panel: (props: PanelProps) => import('react').JSX.Element | null;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Panel } from '.';
3
3
  type Story = StoryObj<typeof Panel>;
4
4
  declare const _default: {
5
- component: (props: import('./Panel').PanelProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ component: (props: import('./Panel').PanelProps) => import('react').JSX.Element | null;
6
6
  title: string;
7
7
  tags: string[];
8
8
  parameters: {
@@ -302,7 +302,7 @@ declare const _default: {
302
302
  onTransitionRunCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
303
303
  onTransitionStart?: import('react').TransitionEventHandler<HTMLElement> | undefined;
304
304
  onTransitionStartCapture?: import('react').TransitionEventHandler<HTMLElement> | undefined;
305
- }>) => import("react/jsx-runtime").JSX.Element)[];
305
+ }>) => import('react').JSX.Element)[];
306
306
  };
307
307
  export default _default;
308
308
  export declare const Primary: Story;
@@ -29,4 +29,4 @@ export interface PanelProviderProps {
29
29
  */
30
30
  panelVariant?: PanelVariant;
31
31
  }
32
- export declare const PanelProvider: ({ children, defaultPanels, panelBehavior, panelVariant, }: PanelProviderProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const PanelProvider: ({ children, defaultPanels, panelBehavior, panelVariant, }: PanelProviderProps) => import('react').JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type PanelRegionProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
- export declare const PanelRegion: ({ children, className, ...rest }: PanelRegionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const PanelRegion: ({ children, className, ...rest }: PanelRegionProps) => import('react').JSX.Element;
package/panel/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../chunks/panel-C16S0Sww.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "../chunks/panel-MI09-Qe_.js";
2
2
  export { a as Panel, l as PanelBody, r as PanelContent, n as PanelContext, t as PanelHeader, o as PanelProvider, c as PanelRegion, s as PanelTitle, e as UsePanels, i as usePanels };
@@ -1,3 +1,3 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes } from 'react';
2
2
  export type PanelHeaderProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
3
- export declare const PanelHeader: ({ className, ...rest }: PanelHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const PanelHeader: ({ className, ...rest }: PanelHeaderProps) => import('react').JSX.Element;
@@ -1,5 +1,5 @@
1
- import { TextProps } from '../../../../components/src/index.ts';
1
+ import { TextProps } from '@midas-ds/components';
2
2
  export interface PanelTitleProps extends TextProps {
3
3
  title?: string;
4
4
  }
5
- export declare const PanelTitle: ({ className, title, ...rest }: PanelTitleProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const PanelTitle: ({ className, title, ...rest }: PanelTitleProps) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'react';
1
+ import { default as React, CSSProperties } from 'react';
2
2
  import { PanelBodyProps } from '../panel';
3
3
  type CSSPropertiesWithCustomProperties = CSSProperties & {
4
4
  [key: `--${string}`]: string | number | undefined;
@@ -10,5 +10,5 @@ export interface SidebarProps extends Omit<PanelBodyProps, 'style'> {
10
10
  onCollapseChange?: (isCollapsed: boolean) => void;
11
11
  style?: CSSPropertiesWithCustomProperties;
12
12
  }
13
- export declare const Sidebar: ({ children, className, title, ...props }: SidebarProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ export declare const Sidebar: ({ children, className, title, ...props }: SidebarProps) => React.JSX.Element | null;
14
14
  export {};
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Sidebar } from './Sidebar';
3
3
  type Story = StoryObj<typeof Sidebar>;
4
4
  declare const _default: {
5
- component: ({ children, className, title, ...props }: import('./Sidebar').SidebarProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ component: ({ children, className, title, ...props }: import('./Sidebar').SidebarProps) => import('react').JSX.Element | null;
6
6
  title: string;
7
7
  tags: string[];
8
8
  parameters: {
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  };
12
12
  args: {
13
13
  title: string;
14
- children: import("react/jsx-runtime").JSX.Element;
14
+ children: import('react').JSX.Element;
15
15
  };
16
16
  };
17
17
  export default _default;
package/sidebar/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/sidebar-HGfteIDk.js";
1
+ import { n as e, t } from "../chunks/sidebar-BYqoekwF.js";
2
2
  export { t as Sidebar, e as SidebarContext };
package/utils/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/utils-In-o3O3t.js";
1
+ import { t as e } from "../chunks/utils-CjjqyX25.js";
2
2
  export { e as useIsMobileDevice };