@midas-ds/components 1.0.3 → 1.1.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 (145) hide show
  1. package/{Button-B4vMZbC6.js → Button-DL6nqUco.js} +22 -22
  2. package/CHANGELOG.md +6 -1
  3. package/{Checkbox-DnKWanep.js → Checkbox-q0dugR2t.js} +8 -8
  4. package/{Collection-COLWgm24.js → Collection-KMFfVuzU.js} +2 -2
  5. package/{Dialog-Cb6toyXO.js → Dialog-D6Bqrpn-.js} +170 -169
  6. package/Disclosure-dAZYXyTH.js +225 -0
  7. package/Disclosure.css +1 -0
  8. package/{FocusScope-C8i7CH6y.js → FocusScope-B7CkxXNC.js} +1 -1
  9. package/{Form-BQQs3jUk.js → Form-BWBjJC6v.js} +42 -42
  10. package/{Group-CdwXhx8Q.js → Group-D7_8007y.js} +10 -10
  11. package/Heading-RCRHv6hd.js +15 -0
  12. package/{Hidden-DngIphiL.js → Hidden-CVlUgUJM.js} +1 -1
  13. package/{Link-iAZLB3RI.js → Link-BnQvB-hH.js} +8 -8
  14. package/{ListBox-BKWkIIm6.js → ListBox-DBBiqvcR.js} +72 -72
  15. package/{ListKeyboardDelegate-BH-K5hyq.js → ListKeyboardDelegate-gCXy-Xnn.js} +2 -2
  16. package/{PressResponder-Cz-TRBHO.js → PressResponder-B4g56kDz.js} +5 -5
  17. package/{RSPContexts-EOiWkKOf.js → RSPContexts-BW2SEIqe.js} +2 -2
  18. package/{SelectionManager-8o40f7mx.js → SelectionManager-BfXUE1qg.js} +113 -129
  19. package/{Separator-BlvmQjwz.js → Separator-BBX9m2O2.js} +2 -2
  20. package/{Tag--W5TgxmK.js → Tag-DWt0koFj.js} +74 -74
  21. package/Text-BCF0xvqL.js +15 -0
  22. package/{TextField-DeK_yiK-.js → TextField-CX4eOQf6.js} +33 -33
  23. package/{TextField.module-0-u4LVPp.js → TextField.module-DdICj682.js} +7 -7
  24. package/{VisuallyHidden-CFx06Bae.js → VisuallyHidden-Dhr5caPC.js} +1 -1
  25. package/accordion/Accordion.d.ts +8 -8
  26. package/accordion/AccordionItem.d.ts +11 -3
  27. package/accordion/index.d.ts +0 -3
  28. package/{context-Bnqknrce.js → context-BpJLnOuu.js} +11 -11
  29. package/global.css +1 -0
  30. package/index.d.ts +1 -0
  31. package/index.js +105 -110
  32. package/index10.js +1 -1
  33. package/index11.js +1 -1
  34. package/index12.js +1 -1
  35. package/index13.js +1 -1
  36. package/index14.js +1 -1
  37. package/index15.js +2 -2
  38. package/index16.js +2 -2
  39. package/index17.js +1 -1
  40. package/index18.js +1 -1
  41. package/index19.js +2 -2
  42. package/index2.js +1 -1
  43. package/index20.js +2 -2
  44. package/index21.js +1 -1
  45. package/index22.js +1 -1
  46. package/index23.js +1 -1
  47. package/index24.js +1 -1
  48. package/index25.js +2 -2
  49. package/index26.js +2 -2
  50. package/index27.js +2 -2
  51. package/index28.js +1 -1
  52. package/index29.js +2 -8
  53. package/index3.js +1 -1
  54. package/index30.js +17 -16
  55. package/index31.js +1 -1
  56. package/index32.js +1 -1
  57. package/index33.js +1 -1
  58. package/index34.js +2 -2
  59. package/index36.js +1 -1
  60. package/index37.js +1 -1
  61. package/index38.js +1 -1
  62. package/index39.js +1 -1
  63. package/index4.js +1 -1
  64. package/index40.js +19 -12
  65. package/index41.js +61 -14
  66. package/index42.js +44 -22
  67. package/index43.js +13 -11
  68. package/index44.js +25 -4
  69. package/index45.js +16 -51
  70. package/index46.js +19 -16
  71. package/index47.js +49 -27
  72. package/index48.js +5 -18
  73. package/index49.js +25 -21
  74. package/index5.js +1 -1
  75. package/index50.js +16 -47
  76. package/index51.js +7 -3
  77. package/index52.js +18 -18
  78. package/index53.js +16 -16
  79. package/index54.js +5 -3
  80. package/index55.js +7 -20
  81. package/index56.js +13 -16
  82. package/index57.js +6 -8
  83. package/index58.js +5 -8
  84. package/index59.js +17 -13
  85. package/index6.js +1 -1
  86. package/index60.js +20 -7
  87. package/index61.js +59 -7
  88. package/index62.js +13 -17
  89. package/index63.js +9 -20
  90. package/index64.js +38 -46
  91. package/index65.js +85 -15
  92. package/index66.js +74 -11
  93. package/index67.js +23 -62
  94. package/index68.js +64 -80
  95. package/index69.js +68 -62
  96. package/index7.js +1 -1
  97. package/index70.js +138 -22
  98. package/index71.js +66 -65
  99. package/index72.js +40 -78
  100. package/index73.js +75 -133
  101. package/index74.js +69 -68
  102. package/index75.js +96 -34
  103. package/index76.js +258 -65
  104. package/index77.js +715 -63
  105. package/index78.js +478 -93
  106. package/index79.js +303 -263
  107. package/index8.js +1 -1
  108. package/index80.js +343 -677
  109. package/index81.js +242 -479
  110. package/index82.js +1332 -282
  111. package/index83.js +966 -346
  112. package/index84.js +344 -210
  113. package/index85.js +2024 -1286
  114. package/index86.js +2314 -955
  115. package/index87.js +6785 -340
  116. package/index88.js +15 -2099
  117. package/index89.js +12 -2367
  118. package/index9.js +1 -1
  119. package/index90.js +4 -6834
  120. package/index91.js +7 -15
  121. package/package.json +1 -1
  122. package/useControlledState-Kv9K2AYu.js +30 -0
  123. package/{useDescription-BPs7eRff.js → useDescription-B7stiK3j.js} +1 -1
  124. package/useEvent-Xk5kn5Ns.js +21 -0
  125. package/{useField-Dz62UHCP.js → useField-DMzJIIN4.js} +5 -5
  126. package/{useFilter-ViwzkzZe.js → useFilter-Bt9dbV1U.js} +1 -1
  127. package/{useFocusRing-BKGhL91C.js → useFocusRing-9PXyKy2A.js} +26 -26
  128. package/{useFocusable-CRSmYEQc.js → useFocusable-CcEBZe40.js} +1 -1
  129. package/{useGridSelectionCheckbox-CVEvUCJL.js → useGridSelectionCheckbox-DYgEnElE.js} +3 -3
  130. package/{useHasTabbableChild-C8y4fwiY.js → useHasTabbableChild-D6DwR81L.js} +5 -5
  131. package/{useHighlightSelectionDescription-CD74uzLh.js → useHighlightSelectionDescription-WYAbP4No.js} +4 -4
  132. package/useLabels-9zaZ9oa0.js +17 -0
  133. package/{useListState-DKnP5TB5.js → useListState-BfTeKTk5.js} +1 -1
  134. package/{useLocalizedStringFormatter-DsZ-ZWSk.js → useLocalizedStringFormatter-BlCbn-hX.js} +1 -1
  135. package/{useSingleSelectListState-BHTLh8Ob.js → useSingleSelectListState-DPkaL0la.js} +2 -2
  136. package/Text-CQPW6xs7.js +0 -15
  137. package/accordion/AccordionContent.d.ts +0 -3
  138. package/accordion/AccordionTagContext.d.ts +0 -3
  139. package/accordion/AccordionTrigger.d.ts +0 -3
  140. package/index-DK9ZACEc.js +0 -642
  141. package/index.css +0 -1
  142. package/index92.js +0 -14
  143. package/index93.js +0 -6
  144. package/index94.js +0 -9
  145. package/useControlledState-DrAoodI6.js +0 -45
package/index68.js CHANGED
@@ -1,85 +1,69 @@
1
- import { jsx as n, jsxs as l } from "react/jsx-runtime";
2
- import { $ as y, I as k, a as _ } from "./TextField-DeK_yiK-.js";
3
- import { T as $ } from "./TextField.module-0-u4LVPp.js";
4
- import * as E from "react";
5
- import { c as A } from "./clsx-OuTLNxxd.js";
6
- import './TextArea.css';const R = '"../theme/tokens.css"', T = '"Inter", sans-serif', W = "#ffdfdf", F = "(max-width: 767px)", I = "#f2f2f2", N = "#e6e6e6", V = "#bfbfbf", j = "#000000", w = "#e62323", B = "#2e7ca5", S = "500", v = "400", D = "#1f1f1f", q = "0 0 0 2px #ffffff, 0 0 0 4px #000000", z = "_textArea_1tbo6_4", G = "_count_1tbo6_40", H = "_countExceeded_1tbo6_48", o = {
7
- tokens: R,
8
- display: T,
9
- signalRed10: W,
10
- smBreakpoint: F,
11
- gray10: I,
12
- gray20: N,
13
- gray50: V,
14
- black: j,
15
- signalRed100: w,
16
- blue100: B,
17
- mediumWeight: S,
18
- regularWeight: v,
19
- inputText: D,
20
- focus: q,
21
- textArea: z,
22
- count: G,
23
- countExceeded: H
24
- }, O = ({
25
- label: u,
26
- description: i,
27
- rows: f,
28
- maxCharacters: t,
29
- errorMessage: d,
30
- showCounter: g,
31
- validate: r,
32
- ...p
33
- }) => {
34
- const [s, m] = E.useState(""), a = (e) => {
35
- const c = e.target.value;
36
- m(c);
37
- }, x = () => t ? /* @__PURE__ */ l(
38
- "span",
39
- {
40
- className: A(
41
- o.count,
42
- s.length > t && o.countExceeded
43
- ),
44
- children: [
45
- s.length,
46
- " / ",
47
- t
48
- ]
49
- }
50
- ) : g ? /* @__PURE__ */ n("span", { className: o.count, children: s.length }) : null, h = (e) => {
51
- const c = t && e.length > t ? `Du har angett ${e.length - t} tecken för mycket. Fältet är begränsat till ${t} tecken.` : null, b = r ? r(e) : null;
52
- return c || b || !0;
53
- };
54
- return /* @__PURE__ */ n(
55
- y,
56
- {
57
- className: $.inputField,
58
- validate: h,
59
- ...p,
60
- children: /* @__PURE__ */ l(
61
- k,
1
+ import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
+ import { Link as _ } from "./index74.js";
3
+ import { c as m } from "./clsx-OuTLNxxd.js";
4
+ import { $ as B } from "./useFocusRing-9PXyKy2A.js";
5
+ import './Card.css';const g = '"../theme/tokens.css"', h = '"Inter", sans-serif', b = "#ffffff", u = "#e6e6e6", k = "#f2f2f2", p = "#1f1f1f", v = "#d5e5ed", x = "#000000", y = "500", j = "250ms", N = "_card_vbecj_4", T = "_content_vbecj_33", w = "_heading_vbecj_39", L = "_image_vbecj_47", W = "_background_vbecj_56", C = "_text_vbecj_60", t = {
6
+ tokens: g,
7
+ display: h,
8
+ white: b,
9
+ gray20: u,
10
+ gray10: k,
11
+ gray150: p,
12
+ blue20: v,
13
+ black: x,
14
+ mediumWeight: y,
15
+ fastTransition: j,
16
+ card: N,
17
+ content: T,
18
+ heading: w,
19
+ image: L,
20
+ background: W,
21
+ text: C
22
+ }, q = ({
23
+ image: e,
24
+ background: a,
25
+ title: r,
26
+ content: i,
27
+ link: d,
28
+ headingTag: l = "h1",
29
+ customImageComponent: c,
30
+ customLinkComponent: f,
31
+ ...n
32
+ }) => /* @__PURE__ */ o(
33
+ "div",
34
+ {
35
+ className: m(
36
+ t.card,
37
+ a && t.background,
38
+ n.className
39
+ ),
40
+ ...n,
41
+ children: [
42
+ /* @__PURE__ */ o("div", { className: t.content, children: [
43
+ c || (e == null ? void 0 : e.source) && /* @__PURE__ */ s(
44
+ "img",
45
+ {
46
+ src: e.source,
47
+ alt: e.description,
48
+ className: t.image
49
+ }
50
+ ),
51
+ /* @__PURE__ */ s(l, { className: t.heading, children: r }),
52
+ /* @__PURE__ */ s("p", { className: t.text, children: i })
53
+ ] }),
54
+ /* @__PURE__ */ s(
55
+ _,
62
56
  {
63
- label: u,
64
- description: i,
65
- errorMessage: d,
66
- children: [
67
- /* @__PURE__ */ n(x, {}),
68
- /* @__PURE__ */ n(
69
- _,
70
- {
71
- className: o.textArea,
72
- rows: f,
73
- onFocus: a,
74
- onChange: a
75
- }
76
- )
77
- ]
57
+ ...d,
58
+ standalone: !0,
59
+ stretched: !0,
60
+ as: f
78
61
  }
79
62
  )
80
- }
81
- );
82
- };
63
+ ]
64
+ }
65
+ );
83
66
  export {
84
- O as TextArea
67
+ q as Card,
68
+ B as RouterProvider
85
69
  };
package/index69.js CHANGED
@@ -1,74 +1,80 @@
1
- import { jsx as c, jsxs as f, Fragment as m } from "react/jsx-runtime";
2
- import { $ as _ } from "./Button-B4vMZbC6.js";
3
- import { c as g } from "./clsx-OuTLNxxd.js";
4
- import './Button.css';const y = '"../theme/tokens.css"', u = "#143c50", b = "#25607f", h = "#4289ad", p = '"Inter", sans-serif', R = "1rem", k = "500", x = "#ffffff", w = "#bfbfbf", B = "#f2f2f2", v = "#e6e6e6", $ = "#000000", z = "undefined", S = "(max-width: 767px)", j = "0 0 0 2px #ffffff, 0 0 0 4px #000000", W = "#e62323", F = "#b31b1b", I = "#801313", N = "_button_1tedv_4", q = "_primary_1tedv_36", A = "_secondary_1tedv_42", D = "_tertiary_1tedv_66", E = "_iconBtn_1tedv_88", G = "_danger_1tedv_109", H = "_iconRight_1tedv_131", J = "_fullwidth_1tedv_135", K = "_small_1tedv_139", t = {
5
- tokens: y,
6
- blue150: u,
7
- blue130: b,
8
- blue90: h,
9
- display: p,
10
- desktopSize: R,
11
- mediumWeight: k,
12
- white: x,
13
- gray50: w,
14
- gray10: B,
15
- gray20: v,
16
- black: $,
17
- medium: z,
18
- smBreakpoint: S,
19
- focus: j,
20
- signalRed100: W,
21
- signalRed130: F,
22
- signalRed150: I,
23
- button: N,
24
- primary: q,
25
- secondary: A,
26
- tertiary: D,
27
- iconBtn: E,
28
- danger: G,
29
- iconRight: H,
30
- fullwidth: J,
31
- small: K
32
- }, P = ({
33
- variant: e = "primary",
34
- fullwidth: i,
35
- className: r,
36
- iconPlacement: d,
37
- size: n,
38
- icon: s,
39
- iconSize: a,
1
+ import { jsxs as e, jsx as s } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { c as _ } from "./clsx-OuTLNxxd.js";
4
+ import { Button as g } from "./index66.js";
5
+ import { X as h } from "./x-JK7i-TQC.js";
6
+ import { C as u, I as p, a as B, T as w } from "./triangle-alert-1OYl9KWz.js";
7
+ import './InfoBanner.css';const b = '"../theme/tokens.css"', x = '"Inter", sans-serif', N = "#d5f2d9", k = "#008d3c", v = "#eaf2f6", I = "#0066cc", R = "#fff8e1", C = "#f1c21b", G = "#ffdfdf", S = "#e62323", Y = "#000000", j = "600", y = "_infoBanner_cn873_4", z = "_success_cn873_12", A = "_info_cn873_4", T = "_important_cn873_22", W = "_warning_cn873_27", $ = "_content_cn873_36", M = "_heading_cn873_42", P = "_text_cn873_47", X = "_icon_cn873_52", q = "_dismissable_cn873_57", n = {
8
+ tokens: b,
9
+ display: x,
10
+ signalGreen10: N,
11
+ signalGreen100: k,
12
+ signalBlue10: v,
13
+ signalBlue100: I,
14
+ signalYellow10: R,
15
+ signalYellow100: C,
16
+ signalRed10: G,
17
+ signalRed100: S,
18
+ black: Y,
19
+ semiBoldWeight: j,
20
+ infoBanner: y,
21
+ success: z,
22
+ info: A,
23
+ important: T,
24
+ warning: W,
25
+ content: $,
26
+ heading: M,
27
+ text: P,
28
+ icon: X,
29
+ dismissable: q
30
+ }, D = {
31
+ success: u,
32
+ info: p,
33
+ important: B,
34
+ warning: w
35
+ }, L = ({
36
+ title: c,
37
+ message: a,
38
+ type: i,
39
+ children: t,
40
+ dismissable: l = !1,
40
41
  ...o
41
42
  }) => {
42
- const l = n === "small" ? 14 : a || 20;
43
- return /* @__PURE__ */ c(
44
- _,
43
+ const r = D[i], [d, f] = m.useState(!0);
44
+ return d ? /* @__PURE__ */ e(
45
+ "div",
45
46
  {
46
- className: g(
47
- t.button,
48
- e === "primary" && t.primary,
49
- e === "secondary" && t.secondary,
50
- e === "tertiary" && t.tertiary,
51
- e === "danger" && t.danger,
52
- e === "icon" && t.iconBtn,
53
- i && t.fullwidth,
54
- n === "small" && t.small,
55
- d === "right" && t.iconRight,
56
- r
57
- ),
47
+ className: _(n.infoBanner, n[i], o.className),
58
48
  ...o,
59
- children: /* @__PURE__ */ f(m, { children: [
60
- s && /* @__PURE__ */ c(
61
- s,
49
+ children: [
50
+ /* @__PURE__ */ s(
51
+ r,
62
52
  {
53
+ size: 20,
63
54
  "aria-hidden": !0,
64
- size: l
55
+ className: n.icon
65
56
  }
66
57
  ),
67
- o.children
68
- ] })
58
+ /* @__PURE__ */ e("div", { className: n.content, children: [
59
+ c && /* @__PURE__ */ s("strong", { className: n.heading, children: c }),
60
+ /* @__PURE__ */ e("div", { className: n.text, children: [
61
+ a,
62
+ t
63
+ ] })
64
+ ] }),
65
+ l && /* @__PURE__ */ s("div", { className: n.dismissable, children: /* @__PURE__ */ s(
66
+ g,
67
+ {
68
+ variant: "icon",
69
+ "aria-label": "Stäng",
70
+ onPress: () => f(!1),
71
+ children: /* @__PURE__ */ s(h, { size: 20 })
72
+ }
73
+ ) })
74
+ ]
69
75
  }
70
- );
76
+ ) : null;
71
77
  };
72
78
  export {
73
- P as Button
79
+ L as InfoBanner
74
80
  };
package/index7.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Cell as o, Column as a, Row as b, Table as r, TableBody as T, TableHeader as d } from "./index89.js";
1
+ import { Cell as o, Column as a, Row as b, Table as r, TableBody as T, TableHeader as d } from "./index86.js";
2
2
  export {
3
3
  o as Cell,
4
4
  a as Column,
package/index70.js CHANGED
@@ -1,24 +1,140 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { c as e } from "./clsx-OuTLNxxd.js";
3
- import './ButtonGroup.css';const p = '"../theme/tokens.css"', a = "(max-width: 767px)", u = "_buttonGroup_5pd8y_4", c = {
4
- tokens: p,
5
- smBreakpoint: a,
6
- buttonGroup: u
7
- }, l = ({
8
- children: o,
9
- className: t,
10
- "aria-label": s,
11
- ...r
12
- }) => /* @__PURE__ */ n(
13
- "div",
14
- {
15
- role: "group",
16
- "aria-label": s,
17
- className: e(c.buttonGroup, t),
18
- ...r,
19
- children: o
20
- }
21
- );
1
+ import { jsx as c, jsxs as t } from "react/jsx-runtime";
2
+ import { c as o } from "./clsx-OuTLNxxd.js";
3
+ import './Logo.css';const v = '"../theme/tokens.css"', i = "#b90835", m = "#000000", g = "#5d5d5d", _ = "#ffffff", p = "_container_1c334_4", M = "_noPadding_1c334_9", u = "_logo_1c334_13", Z = "_primary_1c334_18", f = "_dark_1c334_22", k = "_xSmall_1c334_26", b = "_small_1c334_30", x = "_large_1c334_34", w = "_backgroundPrimary_1c334_38", y = "_backgroundDark_1c334_46", l = {
4
+ tokens: v,
5
+ red100: i,
6
+ black: m,
7
+ gray130: g,
8
+ white: _,
9
+ container: p,
10
+ noPadding: M,
11
+ logo: u,
12
+ primary: Z,
13
+ dark: f,
14
+ xSmall: k,
15
+ small: b,
16
+ large: x,
17
+ backgroundPrimary: w,
18
+ backgroundDark: y
19
+ }, S = ({
20
+ primary: h = !0,
21
+ size: a = "medium",
22
+ background: d = !1,
23
+ padding: r = !0,
24
+ ...s
25
+ }) => {
26
+ const e = o(
27
+ l.logo,
28
+ h ? l.primary : l.dark,
29
+ a === "x-small" && l.xSmall,
30
+ a === "small" && l.small,
31
+ a === "medium" && l.medium,
32
+ a === "large" && l.large
33
+ ), n = () => a === "x-small" ? /* @__PURE__ */ c(
34
+ "svg",
35
+ {
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ viewBox: "0 0 100 92",
38
+ className: e,
39
+ role: "img",
40
+ "aria-hidden": "false",
41
+ focusable: "false",
42
+ "aria-label": "Migrationsverkets logotyp",
43
+ children: /* @__PURE__ */ c("path", { d: "M99.99,91.69c-1.84-1.11-4.05-4.55-4.05-9.46V9.15c0-4.79,1.96-7.25,3.81-8.85h-14.75l-33.91,65.47L12.41.3H0c1.6,1.59,3.93,3.07,3.93,8.23v75.55c0,3.56-2.21,6.51-3.81,7.61h16.34c-1.72-1.22-3.93-4.18-3.93-7.98V25.97l36.24,61.42,33.04-63.26v58.96c0,5.53-2.21,7.61-3.81,8.6h21.99Z" })
44
+ }
45
+ ) : /* @__PURE__ */ t(
46
+ "svg",
47
+ {
48
+ role: "img",
49
+ xmlns: "http://www.w3.org/2000/svg",
50
+ viewBox: "0 0 112 40",
51
+ className: e,
52
+ "aria-hidden": "false",
53
+ focusable: "false",
54
+ "aria-label": "Migrationsverkets logotyp",
55
+ children: [
56
+ /* @__PURE__ */ c("path", { d: "M97.78,21.61c-7.48-9.73-20.06-16.03-34.32-16.03-13.07,0-24.86,5.27-32.46,13.65,6.56-5.83,15.64-9.44,25.66-9.44,11.37,0,21.52,4.56,28.18,11.83h12.94Z" }),
57
+ /* @__PURE__ */ c("path", { d: "M90.45,12.58C70.67-1.51,41.26,2.77,27.49,21.61h-12.23C30.56-2.89,68.29-7.47,90.45,12.58h0Z" }),
58
+ /* @__PURE__ */ c("path", { d: "M11.89,37.13c-.22-.13-.48-.53-.48-1.11v-8.58c0-.56.23-.85.45-1.04h-1.73l-3.98,7.69-4.54-7.69H.15c.19.19.46.36.46.97v8.87c0,.42-.26.76-.45.89h1.92c-.2-.14-.46-.49-.46-.94v-6.78l4.25,7.21,3.88-7.43v6.92c0,.65-.26.89-.45,1.01h2.58Z" }),
59
+ /* @__PURE__ */ c(
60
+ "path",
61
+ {
62
+ d: "M15.81,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM16.22,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",
63
+ fillRule: "evenodd"
64
+ }
65
+ ),
66
+ /* @__PURE__ */ c(
67
+ "path",
68
+ {
69
+ d: "M24.52,30.97c-.04-.33-.17-.68-.37-.95h-1.36c-.29-.26-.87-.58-1.96-.58-1.53,0-2.8.92-2.8,2.58,0,1.02.52,1.86,1.31,2.26-.43.37-1.38.98-1.38,1.61,0,.71.79.99,1.38,1.1-.88.26-1.67.82-1.67,1.59,0,1.14,1.73,1.41,2.64,1.41,1.54,0,3.91-.78,3.91-2.64,0-1.21-1.23-1.49-2.22-1.5-2.42-.06-2.51-.2-2.51-.56,0-.2.42-.68.55-.81.23.03.48.06.71.06,1.76,0,2.93-.94,2.93-2.7,0-.48-.14-.91-.29-1.11.12-.04.25-.04.37-.04.27,0,.55.12.76.27h0ZM22.27,32.21c0,.79-.37,1.61-1.36,1.61-1.07,0-1.47-1.21-1.47-2.09,0-.95.5-1.57,1.31-1.57,1.2,0,1.51,1.25,1.51,2.05h0ZM22.89,37.92c0,.76-.82,1.31-1.93,1.31-.59,0-1.7-.3-1.69-1.15,0-.45.26-.74.59-.99l1.96.04c.5.01,1.07.1,1.07.79h0Z",
70
+ fillRule: "evenodd"
71
+ }
72
+ ),
73
+ /* @__PURE__ */ c("path", { d: "M30.11,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z" }),
74
+ /* @__PURE__ */ c(
75
+ "path",
76
+ {
77
+ d: "M36.87,37.13c-.37-.33-.43-.59-.43-1.25v-3.89c0-2.21-1.43-2.55-2.8-2.55-.61,0-1.67.22-2.03.42-.2.4-.3,1.24-.4,1.67.46-.56,1.27-1.37,2.39-1.37,1.18,0,1.36.82,1.36,1.7v.39l-2.21.76c-1.04.36-1.87,1.08-1.87,2.26,0,1.31.88,2.08,2.15,2.08.87,0,1.46-.43,1.93-.94v.72h1.92ZM34.95,35.62c-.26.32-.74.85-1.37.85-.75,0-1.18-.79-1.18-1.54,0-.71.35-1.15.89-1.37l1.66-.63v2.7h0Z",
78
+ fillRule: "evenodd"
79
+ }
80
+ ),
81
+ /* @__PURE__ */ c("path", { d: "M42.58,36.15c-.29.27-.71.46-1.11.46-.87,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z" }),
82
+ /* @__PURE__ */ c(
83
+ "path",
84
+ {
85
+ d: "M45.63,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM46.04,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",
86
+ fillRule: "evenodd"
87
+ }
88
+ ),
89
+ /* @__PURE__ */ c(
90
+ "path",
91
+ {
92
+ d: "M54.96,33.37c0-2.06-1.3-3.95-3.5-3.95s-3.84,1.76-3.84,4.01c0,2.06,1.28,3.95,3.49,3.95s3.85-1.76,3.85-4.01h0ZM53.43,34.04c0,1.27-.52,2.57-1.86,2.57-1.79,0-2.42-2.44-2.42-3.86,0-1.21.48-2.57,1.87-2.57,1.79,0,2.41,2.44,2.41,3.86h0Z",
93
+ fillRule: "evenodd"
94
+ }
95
+ ),
96
+ /* @__PURE__ */ c("path", { d: "M63.37,37.13c-.27-.22-.45-.42-.45-1.11v-3.94c0-1.63-.39-2.64-2.18-2.64-1.01,0-1.79.56-2.38,1.12v-.91h-1.98c.3.17.49.46.49,1.05v5.33c0,.59-.14.88-.48,1.08h2.39c-.23-.23-.43-.37-.43-1.17v-4.4c.32-.45,1.07-1.24,1.85-1.24,1.01,0,1.23,1.01,1.23,1.8v3.95c0,.74-.26.87-.46,1.05h2.39Z" }),
97
+ /* @__PURE__ */ c(
98
+ "path",
99
+ {
100
+ d: "M69.79,35.2c0-2.21-3.42-2.71-3.42-4.07,0-.75.71-.98,1.34-.98s1.33.29,1.74.81l-.07-1.18c-.46-.17-1.11-.35-1.69-.35-1.44,0-2.68.63-2.68,1.89,0,2.36,3.46,2.68,3.46,4.25,0,.79-.62,1.05-1.31,1.05-1.01,0-1.86-.46-2.52-1.21v.1c0,.4-.03.99.3,1.27.53.43,1.53.56,2.18.56,1.36,0,2.67-.62,2.67-2.15h0Z",
101
+ fillRule: "evenodd"
102
+ }
103
+ ),
104
+ /* @__PURE__ */ c("path", { d: "M77.98,29.66h-1.43c.13.1.11.56-.19,1.33l-1.86,4.72-1.87-4.7c-.26-.65-.32-1.15-.16-1.34h-2.06c.19.1.49.85.82,1.67l2.31,5.8h1.31l2.35-5.97c.32-.81.56-1.36.78-1.5h0Z" }),
105
+ /* @__PURE__ */ c(
106
+ "path",
107
+ {
108
+ d: "M84.91,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM83.34,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",
109
+ fillRule: "evenodd"
110
+ }
111
+ ),
112
+ /* @__PURE__ */ c("path", { d: "M90.95,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z" }),
113
+ /* @__PURE__ */ c("path", { d: "M99.79,37.16c-2.26-.37-2.49-4.04-4.7-4.04l2.62-2.8c.22-.23.5-.48.75-.66h-1.77c.14.14.13.39-.13.66l-2.65,2.83v-7.07h-1.98c.33.2.49.56.49,1.01v9.01c0,.58-.22.81-.46,1.02h2.35c-.26-.25-.4-.49-.4-1.02v-2.57c.27,0,.62.13.82.26,1.28.82,1.95,3.11,2.67,3.45.14.07.94.1,1.14.1.45,0,.84-.03,1.25-.19h0Z" }),
114
+ /* @__PURE__ */ c(
115
+ "path",
116
+ {
117
+ d: "M106.3,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM104.73,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",
118
+ fillRule: "evenodd"
119
+ }
120
+ ),
121
+ /* @__PURE__ */ c("path", { d: "M111.85,36.15c-.29.27-.71.46-1.11.46-.86,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z" })
122
+ ]
123
+ }
124
+ );
125
+ return /* @__PURE__ */ c(
126
+ "div",
127
+ {
128
+ className: o(
129
+ l.container,
130
+ r === !1 && l.noPadding,
131
+ d ? h ? l.backgroundPrimary : l.backgroundDark : null
132
+ ),
133
+ ...s,
134
+ children: /* @__PURE__ */ c(n, {})
135
+ }
136
+ );
137
+ };
22
138
  export {
23
- l as ButtonGroup
139
+ S as Logo
24
140
  };
package/index71.js CHANGED
@@ -1,69 +1,70 @@
1
- import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
- import { Link as _ } from "./index77.js";
3
- import { c as m } from "./clsx-OuTLNxxd.js";
4
- import { $ as B } from "./useFocusRing-BKGhL91C.js";
5
- import './Card.css';const g = '"../theme/tokens.css"', h = '"Inter", sans-serif', b = "#ffffff", u = "#e6e6e6", k = "#f2f2f2", p = "#1f1f1f", v = "#d5e5ed", x = "#000000", y = "500", j = "250ms", N = "_card_vbecj_4", T = "_content_vbecj_33", w = "_heading_vbecj_39", L = "_image_vbecj_47", W = "_background_vbecj_56", C = "_text_vbecj_60", t = {
6
- tokens: g,
7
- display: h,
8
- white: b,
9
- gray20: u,
10
- gray10: k,
11
- gray150: p,
12
- blue20: v,
13
- black: x,
14
- mediumWeight: y,
15
- fastTransition: j,
16
- card: N,
17
- content: T,
18
- heading: w,
19
- image: L,
20
- background: W,
21
- text: C
22
- }, q = ({
23
- image: e,
24
- background: a,
25
- title: r,
26
- content: i,
27
- link: d,
28
- headingTag: l = "h1",
29
- customImageComponent: c,
30
- customLinkComponent: f,
31
- ...n
32
- }) => /* @__PURE__ */ o(
33
- "div",
34
- {
35
- className: m(
36
- t.card,
37
- a && t.background,
38
- n.className
39
- ),
40
- ...n,
41
- children: [
42
- /* @__PURE__ */ o("div", { className: t.content, children: [
43
- c || (e == null ? void 0 : e.source) && /* @__PURE__ */ s(
44
- "img",
1
+ import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
+ import * as m from "react";
3
+ import { Button as g } from "./index66.js";
4
+ import { c as u } from "./clsx-OuTLNxxd.js";
5
+ import { X as H } from "./x-JK7i-TQC.js";
6
+ import './Modal.css';const w = '"../theme/tokens.css"', p = '"Inter", sans-serif', B = "#ffffff", q = "#f2f2f2", x = "_modal_1wq00_4", N = "_modalHeader_1wq00_30", b = "_modalBody_1wq00_39", k = "_modalHeading_1wq00_45", e = {
7
+ tokens: w,
8
+ display: p,
9
+ white: B,
10
+ gray10: q,
11
+ modal: x,
12
+ modalHeader: N,
13
+ modalBody: b,
14
+ modalHeading: k
15
+ }, P = ({
16
+ id: d,
17
+ isOpen: l,
18
+ onOpenChange: t,
19
+ children: i,
20
+ title: f,
21
+ className: h,
22
+ ..._
23
+ }) => {
24
+ const a = m.useRef(null);
25
+ m.useEffect(() => {
26
+ var o, r;
27
+ l ? (o = a.current) == null || o.showModal() : (r = a.current) == null || r.close();
28
+ }, [l]);
29
+ const y = () => {
30
+ var o;
31
+ (o = a.current) == null || o.close(), t(!1);
32
+ }, n = d + "_heading";
33
+ return /* @__PURE__ */ c(
34
+ "dialog",
35
+ {
36
+ id: d,
37
+ ref: a,
38
+ onCancel: () => t(!1),
39
+ className: u(e.modal, h),
40
+ "aria-labelledby": n,
41
+ ..._,
42
+ children: [
43
+ /* @__PURE__ */ s("div", { className: e.modalHeader, children: /* @__PURE__ */ s(
44
+ g,
45
45
  {
46
- src: e.source,
47
- alt: e.description,
48
- className: t.image
46
+ onPress: () => y(),
47
+ variant: "tertiary",
48
+ icon: H,
49
+ iconPlacement: "right",
50
+ children: "Stäng"
49
51
  }
50
- ),
51
- /* @__PURE__ */ s(l, { className: t.heading, children: r }),
52
- /* @__PURE__ */ s("p", { className: t.text, children: i })
53
- ] }),
54
- /* @__PURE__ */ s(
55
- _,
56
- {
57
- ...d,
58
- standalone: !0,
59
- stretched: !0,
60
- as: f
61
- }
62
- )
63
- ]
64
- }
65
- );
52
+ ) }),
53
+ /* @__PURE__ */ c("div", { className: e.modalBody, children: [
54
+ /* @__PURE__ */ s(
55
+ "h2",
56
+ {
57
+ className: e.modalHeading,
58
+ id: n,
59
+ children: f
60
+ }
61
+ ),
62
+ i
63
+ ] })
64
+ ]
65
+ }
66
+ );
67
+ };
66
68
  export {
67
- q as Card,
68
- B as RouterProvider
69
+ P as Modal
69
70
  };