@midas-ds/components 17.38.3 → 17.39.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/accordion/index.js +1 -1
  3. package/aria/index.d.ts +3 -1
  4. package/aria/index.js +1 -2
  5. package/button/index.js +1 -1
  6. package/calendar/index.js +1 -1
  7. package/checkbox/index.js +1 -1
  8. package/chunks/{FeedbackStatusIcon-DX5ndhm3.js → FeedbackStatusIcon-UfooOyeI.js} +1 -1
  9. package/chunks/{accordion-DjL3rngW.js → accordion-PJZYLZCe.js} +2 -2
  10. package/chunks/aria-BikUfLIG.js +6 -0
  11. package/chunks/{button-Q51P-Ssk.js → button-Bz66bIrr.js} +2 -2
  12. package/chunks/{calendar-DyILzX_V.js → calendar-D0aiCkAv.js} +3 -3
  13. package/chunks/{checkbox-MN5mhbFU.js → checkbox-SsXhAn-g.js} +2 -2
  14. package/chunks/{clear-button-BYiazZ-1.js → clear-button-DvMuUjDR.js} +1 -1
  15. package/chunks/{color-scheme-switch-BlGoqk4H.js → color-scheme-switch-2oSS52vq.js} +4 -3
  16. package/chunks/{combobox-D2wPjTS5.js → combobox-Ccqxupn2.js} +3 -3
  17. package/chunks/{date-field-Afo_uDbQ.js → date-field-DKmbbOGo.js} +3 -3
  18. package/chunks/{date-picker-jH3-jQoL.js → date-picker-CAtF7M_p.js} +6 -6
  19. package/chunks/{file-list-BvBSJyRQ.js → file-list-Bg8-wkyR.js} +4 -4
  20. package/chunks/{file-picker-C8JWsO9f.js → file-picker-C05TDsQS.js} +1 -1
  21. package/chunks/{info-banner-CkXe0Xd8.js → info-banner-BBpsG8F_.js} +3 -3
  22. package/chunks/{label-DCpy2Iwh.js → label-C-Iks5zm.js} +3 -3
  23. package/chunks/{layout-CYcW4Dsm.js → layout-DGIzTNAu.js} +3 -3
  24. package/chunks/link-CegkRPqz.js +43 -0
  25. package/chunks/link-button-BRV_Hy7v.js +43 -0
  26. package/chunks/{list-box-YaPiKCld.js → list-box-DfpVnLLk.js} +3 -3
  27. package/chunks/{logo-CBGOnROk.js → logo-DUlLYUV2.js} +1 -1
  28. package/chunks/menu-CHZ0d9-S.js +51 -0
  29. package/chunks/{modal-BfWHExGd.js → modal-E4kV_R5n.js} +38 -38
  30. package/chunks/{progress-bar-XMAH7KIq.js → progress-bar-yFa08Xfd.js} +1 -1
  31. package/chunks/{radio-BXjMFwia.js → radio-DbIUs2iU.js} +1 -1
  32. package/chunks/{search-field-mQvQC_fC.js → search-field-D--4cgzH.js} +3 -3
  33. package/chunks/{select-B_o3hWvM.js → select-DLoIzTsv.js} +5 -5
  34. package/chunks/{spinner-V6QnHHAH.js → spinner-D3-NXLkB.js} +1 -1
  35. package/chunks/{table-BZsinvvB.js → table-DuzCUPCX.js} +2 -2
  36. package/chunks/{tag-DO8N54-r.js → tag-BpnVl9_M.js} +1 -1
  37. package/chunks/{textfield-O1kNTcwC.js → textfield-BuJeJV1g.js} +3 -3
  38. package/chunks/{time-field-Dte4G0is.js → time-field-Cr5P1aNn.js} +4 -4
  39. package/chunks/{toast-DhXnpJRF.js → toast-BgrlaMnw.js} +2 -2
  40. package/chunks/{useLocalizedStringFormatter-DU97U9ZX.js → useLocalizedStringFormatter-BFwXcMGl.js} +1 -1
  41. package/clear-button/index.js +1 -1
  42. package/color-scheme-switch/index.js +1 -1
  43. package/combobox/index.js +1 -1
  44. package/date-field/index.js +1 -1
  45. package/date-picker/index.js +1 -1
  46. package/file-list/index.js +1 -1
  47. package/file-picker/index.js +1 -1
  48. package/index.d.ts +1 -1
  49. package/index.js +53 -53
  50. package/info-banner/index.js +1 -1
  51. package/label/index.js +1 -1
  52. package/layout/index.js +1 -1
  53. package/link/Link.d.ts +2 -2
  54. package/link/index.js +3 -1
  55. package/link-button/LinkButton.d.ts +2 -2
  56. package/link-button/index.js +3 -1
  57. package/list-box/index.js +1 -1
  58. package/logo/index.js +1 -1
  59. package/menu/Menu.d.ts +3 -2
  60. package/menu/index.js +3 -1
  61. package/modal/Modal.d.ts +1 -2
  62. package/modal/index.js +3 -1
  63. package/package.json +1 -1
  64. package/progress-bar/index.js +1 -1
  65. package/radio/index.js +1 -1
  66. package/search-field/index.js +1 -1
  67. package/select/index.js +1 -1
  68. package/spinner/index.js +1 -1
  69. package/table/index.js +1 -1
  70. package/tag/index.js +1 -1
  71. package/textfield/index.js +1 -1
  72. package/time-field/index.js +1 -1
  73. package/toast/index.js +1 -1
  74. package/utils/childrenSource.d.ts +19 -0
  75. package/utils/withDisplayName.d.ts +13 -0
  76. package/chunks/link-CyjmtEZP.js +0 -43
  77. package/chunks/link-button-D6t-8zQQ.js +0 -43
  78. package/chunks/menu-DVrvuxQk.js +0 -51
package/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## 17.39.0 (2026-11-30)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **components:** re-export SubmenuTrigger and Keyboard ([d37fcbdb222](https://github.com/migrationsverket/midas/commit/d37fcbdb222))
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **components:** keep React Aria's docs on the named re-exports ([43b0abdfcef](https://github.com/migrationsverket/midas/commit/43b0abdfcef))
10
+ - **components:** name the components re-exported from React Aria ([4026b8f9708](https://github.com/migrationsverket/midas/commit/4026b8f9708))
11
+
12
+ ### 🏭 Refactoring
13
+
14
+ - **components:** gather the React Aria pass-through components in the aria module ([85aaa4a11c6](https://github.com/migrationsverket/midas/commit/85aaa4a11c6))
15
+
16
+ ### 📖 Documentation changes
17
+
18
+ - **components,menu,select,list-box,breadcrumbs,popover:** show runnable code in the Storybook snippets ([d2cba1ef567](https://github.com/migrationsverket/midas/commit/d2cba1ef567))
19
+
20
+ ### 🧪 Tests updated
21
+
22
+ - update visual regression screenshots ([e0a3ac00cf3](https://github.com/migrationsverket/midas/commit/e0a3ac00cf3))
23
+
1
24
  ## 17.38.3 (2026-11-27)
2
25
 
3
26
  ### 🩹 Fixes
@@ -1 +1 @@
1
- export { n as Accordion, t as AccordionItem } from "../chunks/accordion-DjL3rngW.js";
1
+ export { n as Accordion, t as AccordionItem } from "../chunks/accordion-PJZYLZCe.js";
package/aria/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
- export { Focusable, Pressable, I18nProvider, useLocale, ButtonContext, Form, Collection, Virtualizer, TableLayout, } from 'react-aria-components';
1
+ import { Focusable, Pressable, I18nProvider, Form, Collection, Virtualizer, RouterProvider, MenuTrigger, DialogTrigger, SubmenuTrigger, Keyboard } from 'react-aria-components';
2
+ export { Focusable, Pressable, I18nProvider, Form, Collection, Virtualizer, RouterProvider, MenuTrigger, DialogTrigger, SubmenuTrigger, Keyboard, };
3
+ export { useLocale, ButtonContext, TableLayout } from 'react-aria-components';
2
4
  export type { Key, Selection, SortDescriptor, DateValue, } from 'react-aria-components';
3
5
  export type { DropEvent } from 'react-aria';
package/aria/index.js CHANGED
@@ -1,3 +1,2 @@
1
- 'use client';
2
1
  "use client";
3
- export { ButtonContext, Collection, Focusable, Form, I18nProvider, Pressable, TableLayout, Virtualizer, useLocale } from "react-aria-components";
2
+ export { t as ButtonContext, n as Collection, r as DialogTrigger, i as Focusable, a as Form, o as I18nProvider, s as Keyboard, c as MenuTrigger, l as Pressable, u as RouterProvider, d as SubmenuTrigger, f as TableLayout, p as Virtualizer, m as useLocale } from "../chunks/aria-BikUfLIG.js";
package/button/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Button, t as ButtonGroup } from "../chunks/button-Q51P-Ssk.js";
1
+ export { n as Button, t as ButtonGroup } from "../chunks/button-Bz66bIrr.js";
package/calendar/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-DyILzX_V.js";
1
+ export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-D0aiCkAv.js";
package/checkbox/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-MN5mhbFU.js";
1
+ export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-SsXhAn-g.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./useLocalizedStringFormatter-DU97U9ZX.js";
1
+ import { t as e } from "./useLocalizedStringFormatter-BFwXcMGl.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { Check as n, Flag as r, Info as i, TriangleAlert as a } from "lucide-react";
4
4
  var o = {
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t } from "./button-Q51P-Ssk.js";
3
+ import { n as t } from "./button-Bz66bIrr.js";
4
4
  import { t as n } from "./heading-0P5rm7xK.js";
5
- import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
5
+ import { t as r } from "./FeedbackStatusIcon-UfooOyeI.js";
6
6
  import { createContext as i, useContext as a, useEffect as o } from "react";
7
7
  import { Disclosure as s, DisclosureGroup as c, DisclosurePanel as l, composeRenderProps as u } from "react-aria-components";
8
8
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+ import { ButtonContext as e, Collection as t, DialogTrigger as n, Focusable as r, Form as i, I18nProvider as a, Keyboard as o, MenuTrigger as s, Pressable as c, RouterProvider as l, SubmenuTrigger as u, TableLayout as d, Virtualizer as f, useLocale as p } from "react-aria-components";
3
+ // src/utils/withDisplayName.ts
4
+ var m = (e, t) => Object.assign(e, { displayName: t });
5
+ m(r, "Focusable"), m(c, "Pressable"), m(a, "I18nProvider"), m(i, "Form"), m(t, "Collection"), m(f, "Virtualizer"), m(l, "RouterProvider"), m(s, "MenuTrigger"), m(n, "DialogTrigger"), m(u, "SubmenuTrigger"), m(o, "Keyboard");
6
+ export { i as a, s as c, u as d, d as f, r as i, c as l, p as m, t as n, a as o, f as p, n as r, o as s, e as t, l as u };
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { ButtonContext as e } from "../aria/index.js";
2
+ import { t as e } from "./aria-BikUfLIG.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
- import { t as n } from "./spinner-V6QnHHAH.js";
4
+ import { t as n } from "./spinner-D3-NXLkB.js";
5
5
  import { t as r } from "./Button.module-u2pNZ_Cs.js";
6
6
  import { forwardRef as i } from "react";
7
7
  import { Button as a, composeRenderProps as o, useContextProps as s } from "react-aria-components";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Q51P-Ssk.js";
2
+ import { n as t } from "./button-Bz66bIrr.js";
3
3
  import { t as n } from "./heading-0P5rm7xK.js";
4
- import { n as r } from "./select-B_o3hWvM.js";
5
- import { a as i, c as a, o } from "./list-box-YaPiKCld.js";
4
+ import { n as r } from "./select-DLoIzTsv.js";
5
+ import { a as i, c as a, o } from "./list-box-DfpVnLLk.js";
6
6
  import { t as s } from "./field-error-DmG_1v1a.js";
7
7
  import * as c from "react";
8
8
  import { clsx as l } from "clsx";
@@ -3,8 +3,8 @@ import { t as e } from "./field-error-DmG_1v1a.js";
3
3
  import { t } from "./text-CtvUKU-v.js";
4
4
  import { t as n } from "./clsx-BtGY0yFD.js";
5
5
  import { t as r } from "./splitDataAttributes-ChyO_Kvc.js";
6
- import { n as i, t as a } from "./label-DCpy2Iwh.js";
7
- import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
6
+ import { n as i, t as a } from "./label-C-Iks5zm.js";
7
+ import { t as o } from "./useLocalizedStringFormatter-BFwXcMGl.js";
8
8
  import * as s from "react";
9
9
  import { forwardRef as c, useContext as l } from "react";
10
10
  import { CheckboxButton as u, CheckboxField as d, CheckboxGroup as f, CheckboxGroupStateContext as p, composeRenderProps as m } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { n as e } from "./button-Q51P-Ssk.js";
2
+ import { n as e } from "./button-Bz66bIrr.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import { X as n } from "lucide-react";
@@ -1,9 +1,10 @@
1
1
  'use client';
2
2
  import { t as e } from "./icons-a0WawN46.js";
3
3
  import { n as t, t as n } from "./toggle-button--nCm-94u.js";
4
- import { t as r } from "./useLocalizedStringFormatter-DU97U9ZX.js";
5
- import { n as i } from "./button-Q51P-Ssk.js";
6
- import { o as a, r as o, s } from "./menu-DVrvuxQk.js";
4
+ import { t as r } from "./useLocalizedStringFormatter-BFwXcMGl.js";
5
+ import { n as i } from "./button-Bz66bIrr.js";
6
+ import { o as a, r as o } from "./menu-CHZ0d9-S.js";
7
+ import { c as s } from "./aria-BikUfLIG.js";
7
8
  import { t as c } from "./clsx-BtGY0yFD.js";
8
9
  import * as l from "react";
9
10
  import { useEffect as u, useState as d } from "react";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t, t as n } from "./label-DCpy2Iwh.js";
3
+ import { n as t, t as n } from "./label-C-Iks5zm.js";
4
4
  import { t as r } from "./text-CtvUKU-v.js";
5
5
  import { t as i } from "./field-error-DmG_1v1a.js";
6
- import { a, c as o, t as s } from "./list-box-YaPiKCld.js";
7
- import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
6
+ import { a, c as o, t as s } from "./list-box-DfpVnLLk.js";
7
+ import { t as c } from "./useLocalizedStringFormatter-BFwXcMGl.js";
8
8
  import { useRef as l } from "react";
9
9
  import { Button as u, ComboBox as d, Input as f } from "react-aria-components";
10
10
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { t } from "./field-error-DmG_1v1a.js";
3
- import { n, t as r } from "./label-DCpy2Iwh.js";
3
+ import { n, t as r } from "./label-C-Iks5zm.js";
4
4
  import { t as i } from "./text-CtvUKU-v.js";
5
- import { t as a } from "./clear-button-BYiazZ-1.js";
6
- import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
5
+ import { t as a } from "./clear-button-DvMuUjDR.js";
6
+ import { t as o } from "./useLocalizedStringFormatter-BFwXcMGl.js";
7
7
  import * as s from "react";
8
8
  import { DateField as c, DateFieldStateContext as l, DateInput as u, DateSegment as d } from "react-aria-components";
9
9
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { t as e } from "./clear-button-BYiazZ-1.js";
3
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
- import { a as n, n as r, r as i, t as a } from "./date-field-Afo_uDbQ.js";
5
- import { n as o } from "./button-Q51P-Ssk.js";
6
- import { n as s, t as c } from "./calendar-DyILzX_V.js";
2
+ import { t as e } from "./clear-button-DvMuUjDR.js";
3
+ import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
4
+ import { a as n, n as r, r as i, t as a } from "./date-field-DKmbbOGo.js";
5
+ import { n as o } from "./button-Bz66bIrr.js";
6
+ import { n as s, t as c } from "./calendar-D0aiCkAv.js";
7
7
  import { t as l } from "./field-error-DmG_1v1a.js";
8
- import { n as u, t as d } from "./label-DCpy2Iwh.js";
8
+ import { n as u, t as d } from "./label-C-Iks5zm.js";
9
9
  import { t as f } from "./text-CtvUKU-v.js";
10
10
  import * as p from "react";
11
11
  import { clsx as m } from "clsx";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t } from "./button-Q51P-Ssk.js";
4
- import { t as n } from "./progress-bar-XMAH7KIq.js";
5
- import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
3
+ import { n as t } from "./button-Bz66bIrr.js";
4
+ import { t as n } from "./progress-bar-yFa08Xfd.js";
5
+ import { t as r } from "./FeedbackStatusIcon-UfooOyeI.js";
6
6
  import { t as i } from "./field-error-DmG_1v1a.js";
7
- import { t as a } from "./useLocalizedStringFormatter-DU97U9ZX.js";
7
+ import { t as a } from "./useLocalizedStringFormatter-BFwXcMGl.js";
8
8
  import { useEffect as o, useId as s, useLayoutEffect as c, useRef as l } from "react";
9
9
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
10
10
  import { Eye as p, Trash2 as m, X as h } from "lucide-react";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { t as e } from "./clsx-BtGY0yFD.js";
3
- import { n as t, t as n } from "./label-DCpy2Iwh.js";
3
+ import { n as t, t as n } from "./label-C-Iks5zm.js";
4
4
  import { t as r } from "./text-CtvUKU-v.js";
5
5
  import { t as i } from "./field-error-DmG_1v1a.js";
6
6
  import { t as a } from "./FilePickerContext-srh1PxjD.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t } from "./button-Q51P-Ssk.js";
3
- import { t as n } from "./useLocalizedStringFormatter-DU97U9ZX.js";
4
- import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
2
+ import { n as t } from "./button-Bz66bIrr.js";
3
+ import { t as n } from "./useLocalizedStringFormatter-BFwXcMGl.js";
4
+ import { t as r } from "./FeedbackStatusIcon-UfooOyeI.js";
5
5
  import "react";
6
6
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
7
  import { X as o } from "lucide-react";
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { t } from "./popover-C7Ain5Qz.js";
3
- import { n } from "./button-Q51P-Ssk.js";
4
- import { t as r } from "./modal-BfWHExGd.js";
5
- import { t as i } from "./useLocalizedStringFormatter-DU97U9ZX.js";
3
+ import { n } from "./button-Bz66bIrr.js";
4
+ import { r } from "./aria-BikUfLIG.js";
5
+ import { t as i } from "./useLocalizedStringFormatter-BFwXcMGl.js";
6
6
  import * as a from "react";
7
7
  import o, { useContext as s } from "react";
8
8
  import { Label as c } from "react-aria-components";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { t as e } from "./grid-CFn_pqQX.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
- import { n } from "./button-Q51P-Ssk.js";
4
+ import { n } from "./button-Bz66bIrr.js";
5
5
  import { n as r, t as i } from "./tooltip-CR1uxtPd.js";
6
6
  import { n as a, t as o } from "./badge-C5Sdu_uw.js";
7
- import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
8
- import { t as c } from "./logo-CBGOnROk.js";
7
+ import { t as s } from "./useLocalizedStringFormatter-BFwXcMGl.js";
8
+ import { t as c } from "./logo-DUlLYUV2.js";
9
9
  import * as l from "react";
10
10
  import { useEffect as u, useState as d } from "react";
11
11
  import { Link as f, RouterProvider as p } from "react-aria-components";
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
4
+ import { Link as n } from "react-aria-components";
5
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { ArrowDownToLine as o, ArrowRight as s, SquareArrowOutUpRight as c } from "lucide-react";
7
+ import { VisuallyHidden as l } from "react-aria";
8
+ import '../assets/link.css';var u = {
9
+ link: "_link_duep2_1",
10
+ icon: "_icon_duep2_53",
11
+ standalone: "_standalone_duep2_57",
12
+ stretched: "_stretched_duep2_76"
13
+ }, d = {
14
+ en: {
15
+ opensInNewTab: "Opens in new tab",
16
+ downloadsFile: "Downloads file"
17
+ },
18
+ sv: {
19
+ opensInNewTab: "Öppnas i ny flik",
20
+ downloadsFile: "Hämtar fil"
21
+ }
22
+ }, f = ({ children: f, standalone: m, target: h, stretched: g, download: _, icon: v, className: y, as: b, ...x }) => {
23
+ let S = b || n, C = t(d), w = v ? { icon: v } : _ ? {
24
+ icon: o,
25
+ label: C.format("downloadsFile")
26
+ } : h === "_blank" ? {
27
+ icon: c,
28
+ label: C.format("opensInNewTab")
29
+ } : m ? { icon: s } : null;
30
+ return /* @__PURE__ */ a(S, {
31
+ className: e(u.link, m && u.standalone, g && u.stretched, y),
32
+ ...x,
33
+ target: h,
34
+ download: _,
35
+ children: [f, w ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(p, {
36
+ className: u.icon,
37
+ icon: w.icon,
38
+ size: 16,
39
+ "aria-hidden": !0
40
+ }), w.label && /* @__PURE__ */ i(l, { children: w.label })] }) : null]
41
+ });
42
+ }, p = ({ icon: e, ...t }) => /* @__PURE__ */ i(e, { ...t });
43
+ export { f as t };
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
4
+ import "react";
5
+ import { Link as n } from "react-aria-components";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
+ import { ArrowLeft as a, ArrowRight as o, SquareArrowOutUpRight as s } from "lucide-react";
8
+ import { VisuallyHidden as c } from "react-aria";
9
+ import '../assets/link-button.css';var l = {
10
+ linkButton: "_linkButton_1k5w6_1",
11
+ secondary: "_secondary_1k5w6_58",
12
+ icon: "_icon_1k5w6_63",
13
+ tertiary: "_tertiary_1k5w6_102",
14
+ danger: "_danger_1k5w6_130",
15
+ iconBtn: "_iconBtn_1k5w6_149",
16
+ medium: "_medium_1k5w6_173",
17
+ iconLeft: "_iconLeft_1k5w6_178",
18
+ fullwidth: "_fullwidth_1k5w6_182",
19
+ button: "_button_1k5w6_192"
20
+ }, u = {
21
+ en: { opensInNewTab: "Opens in new tab" },
22
+ sv: { opensInNewTab: "Öppnas i ny flik" }
23
+ }, d = ({ children: d, variant: p, fullwidth: m, icon: h, iconPlacement: g, className: _, as: v, size: y = "large", ...b }) => {
24
+ let x = v || n, S = t(u), C = h ? { icon: h } : b.target === "_blank" ? {
25
+ icon: s,
26
+ label: S.format("opensInNewTab")
27
+ } : g === "left" ? { icon: a } : { icon: o };
28
+ return /* @__PURE__ */ i(x, {
29
+ className: e(l.linkButton, p === "primary" && l.primary, p === "secondary" && l.secondary, p === "tertiary" && l.tertiary, p === "danger" && l.danger, p === "icon" && l.iconBtn, y === "medium" && l.medium, m && l.fullwidth, g === "left" && l.iconLeft, _),
30
+ ...b,
31
+ children: [
32
+ d,
33
+ /* @__PURE__ */ r(f, {
34
+ className: l.icon,
35
+ icon: C.icon,
36
+ size: 20,
37
+ "aria-hidden": !0
38
+ }),
39
+ C.label && /* @__PURE__ */ r(c, { children: C.label })
40
+ ]
41
+ });
42
+ }, f = ({ icon: e, ...t }) => /* @__PURE__ */ r(e, { ...t });
43
+ export { d as t };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { Virtualizer as t } from "../aria/index.js";
3
- import { t as n } from "./spinner-V6QnHHAH.js";
4
- import { t as r } from "./useLocalizedStringFormatter-DU97U9ZX.js";
2
+ import { p as t } from "./aria-BikUfLIG.js";
3
+ import { t as n } from "./spinner-D3-NXLkB.js";
4
+ import { t as r } from "./useLocalizedStringFormatter-BFwXcMGl.js";
5
5
  import { t as i } from "./text-CtvUKU-v.js";
6
6
  import "react";
7
7
  import { Header as a, ListBox as o, ListBoxItem as s, ListBoxLoadMoreItem as c, ListBoxSection as l, ListLayout as u, Popover as d, composeRenderProps as f } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
2
+ import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
3
3
  import { createContext as n, useContext as r } from "react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import '../assets/logo.css';var o = {
@@ -0,0 +1,51 @@
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { Header as t, Menu as n, MenuItem as r, MenuSection as i, Popover as a, Separator as o } from "react-aria-components";
3
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { Check as u, ChevronRight as d } from "lucide-react";
5
+ import '../assets/menu.css';var f = {
6
+ menu: "_menu_hfwrp_1",
7
+ menuSectionHeader: "_menuSectionHeader_hfwrp_18",
8
+ menuSection: "_menuSection_hfwrp_18",
9
+ medium: "_medium_hfwrp_29",
10
+ menuItem: "_menuItem_hfwrp_35",
11
+ mainContent: "_mainContent_hfwrp_104",
12
+ checkMark: "_checkMark_hfwrp_115",
13
+ separator: "_separator_hfwrp_125",
14
+ menuPopover: "_menuPopover_hfwrp_148 _dropdownAnimation_1ljkv_4"
15
+ }, p = ({ className: t, size: r = "large", ...i }) => /* @__PURE__ */ c(n, {
16
+ className: e(t, f.menu, r === "medium" && f.medium),
17
+ ...i
18
+ }), m = ({ className: n, ...r }) => /* @__PURE__ */ c(t, {
19
+ className: e(n, f.menuSectionHeader),
20
+ ...r
21
+ }), h = (t) => /* @__PURE__ */ c(r, {
22
+ ...t,
23
+ textValue: t.textValue || (typeof t.children == "string" ? t.children : void 0),
24
+ className: e(f.menuItem, t.className),
25
+ children: (e) => {
26
+ let { children: n } = t, { selectionMode: r, isSelected: i, hasSubmenu: a } = e;
27
+ return /* @__PURE__ */ l(s, { children: [
28
+ r !== "none" && /* @__PURE__ */ c(u, {
29
+ size: 16,
30
+ className: f.checkMark,
31
+ "data-selected": i || void 0
32
+ }),
33
+ /* @__PURE__ */ c("div", {
34
+ className: f.mainContent,
35
+ children: typeof n == "function" ? n(e) : n
36
+ }),
37
+ a && /* @__PURE__ */ c(d, { size: 20 })
38
+ ] });
39
+ }
40
+ }), g = ({ className: t, ...n }) => /* @__PURE__ */ c(a, {
41
+ className: e(t, f.menuPopover),
42
+ offset: 4,
43
+ ...n
44
+ }), _ = ({ className: t, ...n }) => /* @__PURE__ */ c(i, {
45
+ className: e(t, f.menuSection),
46
+ ...n
47
+ }), v = ({ className: t, ...n }) => /* @__PURE__ */ c(o, {
48
+ className: e(t, f.separator),
49
+ ...n
50
+ });
51
+ export { m as a, h as i, _ as n, p as o, g as r, v as t };
@@ -1,12 +1,12 @@
1
- import { n as e } from "./button-Q51P-Ssk.js";
1
+ import { n as e } from "./button-Bz66bIrr.js";
2
2
  import { t } from "./heading-0P5rm7xK.js";
3
- import { t as n } from "./useLocalizedStringFormatter-DU97U9ZX.js";
3
+ import { t as n } from "./useLocalizedStringFormatter-BFwXcMGl.js";
4
4
  import { t as r } from "./clsx-BtGY0yFD.js";
5
5
  import { forwardRef as i, useCallback as a, useRef as o } from "react";
6
- import { Dialog as s, DialogTrigger as c, Modal as l, ModalOverlay as u, composeRenderProps as d } from "react-aria-components";
7
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
- import { X as m } from "lucide-react";
9
- import '../assets/modal.css';var h = {
6
+ import { Dialog as s, Modal as c, ModalOverlay as l, composeRenderProps as u } from "react-aria-components";
7
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
+ import { X as p } from "lucide-react";
9
+ import '../assets/modal.css';var m = {
10
10
  modal: "_modal_7r16o_1",
11
11
  dialog: "_dialog_7r16o_10",
12
12
  modalHeader: "_modalHeader_7r16o_45",
@@ -14,20 +14,20 @@ import '../assets/modal.css';var h = {
14
14
  closeButton: "_closeButton_7r16o_63",
15
15
  modalBody: "_modalBody_7r16o_70",
16
16
  modalFooter: "_modalFooter_7r16o_79"
17
- }, g = {
17
+ }, h = {
18
18
  en: { close: "Close" },
19
19
  sv: { close: "Stäng" }
20
- }, _ = {
20
+ }, g = {
21
21
  modalOverlay: "_modalOverlay_gwg3f_1",
22
22
  "modal-fade": "_modal-fade_gwg3f_1"
23
- }, v = i(({ className: e, ...t }, n) => /* @__PURE__ */ f(u, {
24
- className: r(e, _.modalOverlay),
23
+ }, _ = i(({ className: e, ...t }, n) => /* @__PURE__ */ d(l, {
24
+ className: r(e, g.modalOverlay),
25
25
  ref: n,
26
26
  ...t
27
27
  }));
28
- v.displayName = "ModalOverlay";
28
+ _.displayName = "ModalOverlay";
29
29
  // src/modal/useStickyHeight.ts
30
- var y = (e) => {
30
+ var v = (e) => {
31
31
  let t = o(void 0);
32
32
  return a((n) => {
33
33
  t.current?.(), t.current = void 0;
@@ -40,54 +40,54 @@ var y = (e) => {
40
40
  i.disconnect(), r.style.removeProperty(e);
41
41
  };
42
42
  }, [e]);
43
- }, b = () => {
43
+ }, y = () => {
44
44
  let e = o(void 0);
45
45
  return a((t) => {
46
46
  if (e.current?.(), e.current = void 0, !t) return;
47
47
  let n = ({ target: e }) => {
48
- if (!(e instanceof Element) || e === t || !e.matches(":focus-visible") || e.closest(`.${h.modalHeader}, .${h.modalFooter}`)) return;
48
+ if (!(e instanceof Element) || e === t || !e.matches(":focus-visible") || e.closest(`.${m.modalHeader}, .${m.modalFooter}`)) return;
49
49
  let n = getComputedStyle(t), r = t.getBoundingClientRect(), i = r.top + (parseFloat(n.scrollPaddingTop) || 0), a = r.bottom - (parseFloat(n.scrollPaddingBottom) || 0), { top: o, bottom: s } = e.getBoundingClientRect();
50
50
  o < i ? t.scrollTop -= i - o : s > a && (t.scrollTop += Math.min(s - a, o - i));
51
51
  };
52
52
  t.addEventListener("focusin", n), e.current = () => t.removeEventListener("focusin", n);
53
53
  }, []);
54
- }, x = i(({ children: r, title: i, hideCloseButton: a = !1, footer: o, ...c }, u) => {
55
- let _ = n(g), x = y("--modal-header-height"), S = y("--modal-footer-height"), C = b();
56
- return /* @__PURE__ */ f(v, {
57
- ...c,
58
- children: d(r, (n) => /* @__PURE__ */ f(l, {
59
- className: h.modal,
60
- ref: u,
61
- children: /* @__PURE__ */ p(s, {
62
- className: h.dialog,
54
+ }, b = i(({ children: r, title: i, hideCloseButton: a = !1, footer: o, ...l }, g) => {
55
+ let b = n(h), x = v("--modal-header-height"), S = v("--modal-footer-height"), C = y();
56
+ return /* @__PURE__ */ d(_, {
57
+ ...l,
58
+ children: u(r, (n) => /* @__PURE__ */ d(c, {
59
+ className: m.modal,
60
+ ref: g,
61
+ children: /* @__PURE__ */ f(s, {
62
+ className: m.dialog,
63
63
  ref: C,
64
64
  children: [
65
- /* @__PURE__ */ p("div", {
66
- className: h.modalHeader,
65
+ /* @__PURE__ */ f("div", {
66
+ className: m.modalHeader,
67
67
  ref: x,
68
- children: [/* @__PURE__ */ f("div", {
69
- className: h.modalTitle,
70
- children: i && /* @__PURE__ */ f(t, {
68
+ children: [/* @__PURE__ */ d("div", {
69
+ className: m.modalTitle,
70
+ children: i && /* @__PURE__ */ d(t, {
71
71
  level: 3,
72
72
  elementType: "h2",
73
73
  slot: "title",
74
74
  children: i
75
75
  })
76
- }), !a && /* @__PURE__ */ f(e, {
77
- "aria-label": _.format("close"),
78
- className: h.closeButton,
79
- icon: m,
76
+ }), !a && /* @__PURE__ */ d(e, {
77
+ "aria-label": b.format("close"),
78
+ className: m.closeButton,
79
+ icon: p,
80
80
  slot: "close",
81
81
  variant: "icon"
82
82
  })]
83
83
  }),
84
- /* @__PURE__ */ f("div", {
85
- className: h.modalBody,
84
+ /* @__PURE__ */ d("div", {
85
+ className: m.modalBody,
86
86
  tabIndex: -1,
87
87
  children: n
88
88
  }),
89
- o && /* @__PURE__ */ f("div", {
90
- className: h.modalFooter,
89
+ o && /* @__PURE__ */ d("div", {
90
+ className: m.modalFooter,
91
91
  ref: S,
92
92
  children: o
93
93
  })
@@ -96,5 +96,5 @@ var y = (e) => {
96
96
  }))
97
97
  });
98
98
  });
99
- x.displayName = "Modal";
100
- export { x as n, v as r, c as t };
99
+ b.displayName = "Modal";
100
+ export { _ as n, b as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./label-DCpy2Iwh.js";
1
+ import { t as e } from "./label-C-Iks5zm.js";
2
2
  import { t } from "./clsx-BtGY0yFD.js";
3
3
  import "react";
4
4
  import { ProgressBar as n } from "react-aria-components";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { t } from "./splitDataAttributes-ChyO_Kvc.js";
3
- import { n, t as r } from "./label-DCpy2Iwh.js";
3
+ import { n, t as r } from "./label-C-Iks5zm.js";
4
4
  import { t as i } from "./text-CtvUKU-v.js";
5
5
  import { t as a } from "./field-error-DmG_1v1a.js";
6
6
  import { Group as o, RadioButton as s, RadioField as c, RadioGroup as l, composeRenderProps as u } from "react-aria-components";
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import { t as e } from "./TextField.module-DQfRPRIT.js";
3
- import { n as t } from "./button-Q51P-Ssk.js";
3
+ import { n as t } from "./button-Bz66bIrr.js";
4
4
  import { t as n } from "./clsx-BtGY0yFD.js";
5
5
  import { t as r } from "./field-error-DmG_1v1a.js";
6
6
  import { t as i } from "./text-CtvUKU-v.js";
7
- import { n as a, t as o } from "./label-DCpy2Iwh.js";
8
- import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
7
+ import { n as a, t as o } from "./label-C-Iks5zm.js";
8
+ import { t as s } from "./useLocalizedStringFormatter-BFwXcMGl.js";
9
9
  import { FormContext as c, Input as l, SearchField as u, useSlottedContext as d } from "react-aria-components";
10
10
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
11
11
  import { Search as h, X as g } from "lucide-react";
@@ -1,12 +1,12 @@
1
- import { n as e, t } from "./label-DCpy2Iwh.js";
1
+ import { n as e, t } from "./label-C-Iks5zm.js";
2
2
  import { t as n } from "./clsx-BtGY0yFD.js";
3
3
  import { t as r } from "./text-CtvUKU-v.js";
4
4
  import { t as i } from "./field-error-DmG_1v1a.js";
5
- import { n as a } from "./checkbox-MN5mhbFU.js";
6
- import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
7
- import { c as s } from "./list-box-YaPiKCld.js";
5
+ import { n as a } from "./checkbox-SsXhAn-g.js";
6
+ import { t as o } from "./useLocalizedStringFormatter-BFwXcMGl.js";
7
+ import { c as s } from "./list-box-DfpVnLLk.js";
8
8
  import { t as c } from "./popover-C7Ain5Qz.js";
9
- import { n as l, r as u, t as d } from "./tag-DO8N54-r.js";
9
+ import { n as l, r as u, t as d } from "./tag-BpnVl9_M.js";
10
10
  import f, { useContext as p } from "react";
11
11
  import m from "clsx";
12
12
  import { Button as h, Select as g, SelectStateContext as _, SelectValue as v } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
2
+ import { t } from "./useLocalizedStringFormatter-BFwXcMGl.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { LoaderCircle as i } from "lucide-react";
5
5
  import { VisuallyHidden as a } from "react-aria";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { Collection as e } from "../aria/index.js";
3
- import { n as t } from "./checkbox-MN5mhbFU.js";
2
+ import { n as e } from "./aria-BikUfLIG.js";
3
+ import { n as t } from "./checkbox-SsXhAn-g.js";
4
4
  import { t as n } from "./clsx-BtGY0yFD.js";
5
5
  import { Button as r, Cell as i, Column as a, Row as o, Table as s, TableBody as c, TableHeader as l, useTableOptions as u } from "react-aria-components";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";