@midas-ds/components 12.1.0 → 13.0.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 (202) hide show
  1. package/AccordionItem-Bq8nUKg4.cjs +1 -0
  2. package/{AccordionItem-C9dBt-tQ.js → AccordionItem-D2Y0gJZB.js} +109 -109
  3. package/{Breadcrumbs-DUcHHI_2.cjs → Breadcrumbs-BQLxFZVm.cjs} +1 -1
  4. package/{Breadcrumbs-BAHJMPsu.js → Breadcrumbs-C6B4fyk3.js} +1 -1
  5. package/{Button-DYcmg49Z.js → Button-CUMHt7MG.js} +1 -1
  6. package/{Button-DrL5Jv-s.cjs → Button-D_tRdPW9.cjs} +1 -1
  7. package/Button.module-BT9wZenr.cjs +1 -0
  8. package/Button.module-CGIVvzVm.js +14 -0
  9. package/{ButtonGroup-WZZDPu9Z.js → ButtonGroup-DC8925jD.js} +1 -1
  10. package/{ButtonGroup-ClYTgaRc.cjs → ButtonGroup-zx-9mxbJ.cjs} +1 -1
  11. package/CHANGELOG.md +59 -0
  12. package/Card-D2UbrhDW.js +131 -0
  13. package/Card-UolcSL5O.cjs +1 -0
  14. package/{Checkbox-BtM2rFh9.js → Checkbox-DTuryJdM.js} +14 -14
  15. package/{Checkbox-CvdIG43J.cjs → Checkbox-dtZfsSfx.cjs} +1 -1
  16. package/{CheckboxGroup-CjcDYBRk.js → CheckboxGroup-BmCK0XG9.js} +2 -2
  17. package/{CheckboxGroup-C94as9Xt.cjs → CheckboxGroup-DbmYdQEv.cjs} +1 -1
  18. package/{ColorSchemeSwitch-C4PMYeD5.js → ColorSchemeSwitch-CgZfgCG4.js} +1 -1
  19. package/{ColorSchemeSwitch-CKcoGZM1.cjs → ColorSchemeSwitch-D5juAHPc.cjs} +1 -1
  20. package/{ComboBox-BWXJZyOR.js → ComboBox-Cl6jBB-8.js} +85 -85
  21. package/{ComboBox-B2EmfOyr.cjs → ComboBox-CvD0t2T2.cjs} +1 -1
  22. package/{DateField-CcQJYDLD.js → DateField-D2IqGDL5.js} +2 -2
  23. package/{DateField-IpCiF81R.cjs → DateField-DJAQH95Q.cjs} +1 -1
  24. package/{DateInputDivider-Cf5GZHlM.cjs → DateInputDivider-BnSo_Aox.cjs} +1 -1
  25. package/{DateInputDivider-CXkUdlzc.js → DateInputDivider-LxS0Kw1H.js} +2 -2
  26. package/{DateRangePicker-B2BJO1KC.js → DateRangePicker-CNPXbRqx.js} +4 -4
  27. package/{DateRangePicker-Dfwe9RhJ.cjs → DateRangePicker-CljQy8oD.cjs} +2 -2
  28. package/{Dialog-P3frHOdq.js → Dialog-COpVrq8B.js} +21 -21
  29. package/{Dialog-DgJobm71.cjs → Dialog-doGnVsJJ.cjs} +1 -1
  30. package/{Dropdown-DJ2vWAqk.cjs → Dropdown-C_W6Sizy.cjs} +1 -1
  31. package/{Dropdown-CIvWpN3v.js → Dropdown-DbeUiGYo.js} +1 -1
  32. package/{Grid-s8ovKDi8.js → Grid-BmX6arAO.js} +1 -1
  33. package/{Grid-WbEkSCGh.cjs → Grid-Bn1bCTH8.cjs} +1 -1
  34. package/GridItem-BtO9kCX9.js +237 -0
  35. package/GridItem-luVsL9lu.cjs +1 -0
  36. package/InfoBanner-C82hcpzj.cjs +1 -0
  37. package/InfoBanner-Dz_0wVSa.js +83 -0
  38. package/{Label-BG7G0iyG.js → Label-C5TNJ0Ku.js} +1 -1
  39. package/{Label-C00qz3kQ.cjs → Label-Dp85Vue3.cjs} +1 -1
  40. package/{Layout-CG-Qxr_1.js → Layout-B-A-s7B0.js} +156 -156
  41. package/Layout-DlE30BHE.cjs +16 -0
  42. package/Link-ePZ3nrAW.cjs +6 -0
  43. package/{Link-BtxKZ0h3.js → Link-lO-Ke97K.js} +20 -20
  44. package/{LinkButton-D3EnZ65v.js → LinkButton-CJyZh3BS.js} +26 -26
  45. package/LinkButton-Cw73pOM2.cjs +6 -0
  46. package/{ListBoxLoadMoreItem-Ceo73a2q.cjs → ListBoxLoadMoreItem-3jGpi90m.cjs} +1 -1
  47. package/{ListBoxLoadMoreItem-W11V-Lef.js → ListBoxLoadMoreItem-CIFJ3liN.js} +2 -2
  48. package/{ListBoxSection-BCPv9H50.js → ListBoxSection-BBY8-t3_.js} +11 -11
  49. package/{ListBoxSection-Dx75ZinL.cjs → ListBoxSection-BeDwnVZx.cjs} +1 -1
  50. package/{ProgressBar-CdXHEJh6.js → ProgressBar-BYb9d2kC.js} +1 -1
  51. package/{ProgressBar-CjuHokVZ.cjs → ProgressBar-CgbE08QT.cjs} +1 -1
  52. package/{Radio-Bll-7H8O.cjs → Radio-BagVPvJX.cjs} +1 -1
  53. package/{Radio-DoWx2AE1.js → Radio-C98ly9yx.js} +14 -14
  54. package/{RangeCalendar-D7eFVAPP.js → RangeCalendar-Bi9jc61A.js} +61 -61
  55. package/{RangeCalendar-A4WQIG7P.cjs → RangeCalendar-KcJooXYf.cjs} +2 -2
  56. package/{SearchField-BbrUZpQm.cjs → SearchField-BA-X9dzb.cjs} +2 -2
  57. package/{SearchField-F2FKgYds.js → SearchField-BevjTbcW.js} +46 -46
  58. package/{Select-Dpi3LhbI.js → Select-BECa8IyZ.js} +112 -112
  59. package/Select-xBp51JSl.cjs +1 -0
  60. package/Skeleton-Iovq135_.js +35 -0
  61. package/Skeleton-MaBUPqhT.cjs +1 -0
  62. package/{Spinner-DTKb_LAA.js → Spinner-BZ7i01Kt.js} +13 -13
  63. package/Spinner-DxWDMW6e.cjs +6 -0
  64. package/TabList-3fErCDyP.cjs +1 -0
  65. package/{TabList-D9tl2s85.js → TabList-CXaxruLg.js} +54 -54
  66. package/{Table-CkN3y69S.js → Table-BzJktg2G.js} +2 -2
  67. package/{Table-C6k3PiiC.cjs → Table-Dyqa6_rE.cjs} +2 -2
  68. package/{Tag-BUJ20HHw.js → Tag-BYUPXbhG.js} +1 -1
  69. package/{Tag-7dHEMQum.cjs → Tag-BweDKw1v.cjs} +1 -1
  70. package/{TextArea-BCikUXaD.cjs → TextArea-BTmzOUZd.cjs} +1 -1
  71. package/{TextArea-h5_oBQH1.js → TextArea-CSNrZCEO.js} +22 -23
  72. package/TextField.module-CH39P8ZE.js +13 -0
  73. package/TextField.module-gJ-ruFra.cjs +1 -0
  74. package/{Toast-BBkWczCk.js → Toast-B74PMVL9.js} +170 -172
  75. package/{Toast-DclaxvZM.cjs → Toast-Cs0CEbRr.cjs} +1 -1
  76. package/{ToggleButtonGroup-BGG64PK1.js → ToggleButtonGroup-CwHPu7w5.js} +1 -1
  77. package/{ToggleButtonGroup-Da330GRT.cjs → ToggleButtonGroup-DY9S3USc.cjs} +1 -1
  78. package/accordion/index.cjs +1 -1
  79. package/accordion/index.js +1 -1
  80. package/assets/AccordionItem.css +1 -1
  81. package/assets/Button.css +1 -1
  82. package/assets/ButtonGroup.css +1 -1
  83. package/assets/Card.css +1 -1
  84. package/assets/Checkbox.css +1 -1
  85. package/assets/ComboBox.css +1 -1
  86. package/assets/DateInputDivider.css +1 -1
  87. package/assets/DateRangePicker.css +1 -1
  88. package/assets/Dialog.css +1 -1
  89. package/assets/GridItem.css +1 -1
  90. package/assets/InfoBanner.css +1 -1
  91. package/assets/Layout.css +1 -1
  92. package/assets/Link.css +1 -1
  93. package/assets/LinkButton.css +1 -1
  94. package/assets/ListBoxSection.css +1 -1
  95. package/assets/Radio.css +1 -1
  96. package/assets/RangeCalendar.css +1 -1
  97. package/assets/SearchField.css +1 -1
  98. package/assets/Select.css +1 -1
  99. package/assets/Skeleton.css +1 -1
  100. package/assets/Spinner.css +1 -1
  101. package/assets/TabList.css +1 -1
  102. package/assets/Table.css +1 -1
  103. package/assets/TextField.css +1 -1
  104. package/assets/Toast.css +1 -1
  105. package/assets/default.css +1 -0
  106. package/breadcrumbs/index.cjs +1 -1
  107. package/breadcrumbs/index.js +1 -1
  108. package/button/index.cjs +1 -1
  109. package/button/index.js +2 -2
  110. package/calendar/index.cjs +1 -1
  111. package/calendar/index.js +1 -1
  112. package/card/index.cjs +1 -1
  113. package/card/index.js +1 -1
  114. package/checkbox/index.cjs +1 -1
  115. package/checkbox/index.js +2 -2
  116. package/color-scheme-switch/index.cjs +1 -1
  117. package/color-scheme-switch/index.js +1 -1
  118. package/combobox/index.cjs +1 -1
  119. package/combobox/index.js +1 -1
  120. package/date-field/index.cjs +1 -1
  121. package/date-field/index.js +2 -2
  122. package/date-picker/index.cjs +1 -1
  123. package/date-picker/index.js +1 -1
  124. package/dropdown/index.cjs +1 -1
  125. package/dropdown/index.js +1 -1
  126. package/grid/index.cjs +1 -1
  127. package/grid/index.js +2 -2
  128. package/index.cjs +1 -1
  129. package/index.js +143 -144
  130. package/info-banner/index.cjs +1 -1
  131. package/info-banner/index.js +1 -1
  132. package/label/index.cjs +1 -1
  133. package/label/index.js +1 -1
  134. package/layout/index.cjs +1 -1
  135. package/layout/index.js +1 -1
  136. package/link/index.cjs +1 -1
  137. package/link/index.js +1 -1
  138. package/link-button/index.cjs +1 -1
  139. package/link-button/index.js +1 -1
  140. package/list-box/index.cjs +1 -1
  141. package/list-box/index.js +2 -2
  142. package/modal/index.cjs +1 -1
  143. package/modal/index.js +1 -1
  144. package/package.json +4 -14
  145. package/progress-bar/index.cjs +1 -1
  146. package/progress-bar/index.js +1 -1
  147. package/radio/index.cjs +1 -1
  148. package/radio/index.js +1 -1
  149. package/search-field/index.cjs +1 -1
  150. package/search-field/index.js +1 -1
  151. package/select/index.cjs +1 -1
  152. package/select/index.js +1 -1
  153. package/skeleton/index.cjs +1 -1
  154. package/skeleton/index.js +1 -1
  155. package/spinner/index.cjs +1 -1
  156. package/spinner/index.js +1 -1
  157. package/table/index.cjs +1 -1
  158. package/table/index.js +1 -1
  159. package/tabs/index.cjs +1 -1
  160. package/tabs/index.js +1 -1
  161. package/tag/index.cjs +1 -1
  162. package/tag/index.js +1 -1
  163. package/textfield/TextArea.d.ts +2 -7
  164. package/textfield/TextField.d.ts +2 -6
  165. package/textfield/index.cjs +1 -1
  166. package/textfield/index.js +1 -1
  167. package/toast/index.cjs +1 -1
  168. package/toast/index.js +1 -1
  169. package/toggle-button/index.cjs +1 -1
  170. package/toggle-button/index.js +1 -1
  171. package/variables-B3KEYyhW.cjs +1 -0
  172. package/variables-DzXcMW2k.js +5 -0
  173. package/AccordionItem-SOfjXh3V.cjs +0 -1
  174. package/Button.module-BNLcvARn.cjs +0 -1
  175. package/Button.module-Bax2YU6N.js +0 -14
  176. package/Card-BDDyGAMA.js +0 -131
  177. package/Card-mj5lCIR4.cjs +0 -1
  178. package/GridItem-CIVF1fRW.cjs +0 -1
  179. package/GridItem-D3FZyyO-.js +0 -243
  180. package/InfoBanner-CqjnTYaa.cjs +0 -1
  181. package/InfoBanner-CrA8MS3v.js +0 -83
  182. package/Layout-Bta_Cpq_.cjs +0 -16
  183. package/Link-Bx6avHVl.cjs +0 -6
  184. package/LinkButton-BvXu6vAH.cjs +0 -6
  185. package/Select-BnbDXwgD.cjs +0 -1
  186. package/Skeleton-BpYj25p8.js +0 -37
  187. package/Skeleton-DMOxEwnd.cjs +0 -1
  188. package/Spinner-D1UBuLy4.cjs +0 -6
  189. package/TabList-D4WwgQY3.cjs +0 -1
  190. package/TextField.module-C9Zm9unF.js +0 -13
  191. package/TextField.module-GTQtNO0r.cjs +0 -1
  192. package/assets/global.css +0 -1
  193. package/assets/theme.css +0 -1
  194. package/assets/variables.css +0 -1
  195. package/theme/generated-object.d.ts +0 -384
  196. package/theme/generated-tokens.d.ts +0 -334
  197. package/theme/index.cjs +0 -1
  198. package/theme/index.d.ts +0 -267
  199. package/theme/index.js +0 -4039
  200. package/theme/tokens.d.ts +0 -290
  201. package/tokens-B3FfJ-rY.cjs +0 -1
  202. package/tokens-B9ooUP4g.js +0 -327
@@ -1,12 +1,12 @@
1
- import { jsx as m, jsxs as v } from "react/jsx-runtime";
1
+ import { jsx as m, jsxs as p } from "react/jsx-runtime";
2
2
  import { e as j, f as U, g as A, h as V, i as g, j as K, k, l as F } from "./Dialog-B8swxl24.js";
3
3
  import { $ as W, b as y, h as X, a as w, f as q } from "./utils-Cpcjg55U.js";
4
- import { a as x } from "./mergeProps-BSsN7Bgk.js";
4
+ import { a as h } from "./mergeProps-BSsN7Bgk.js";
5
5
  import { $ as C } from "./filterDOMProps-wsa9OcNI.js";
6
6
  import c, { useState as G, useEffect as _, forwardRef as R, useContext as u, createContext as D, useRef as J, useMemo as Q } from "react";
7
7
  import { $ as S } from "./SSRProvider-40TXmsUG.js";
8
- import { a as Y, b as E, c as P } from "./OverlayArrow-CvNuu3e3.js";
9
- import { B as Z } from "./Button-DYcmg49Z.js";
8
+ import { a as Y, b as v, c as P } from "./OverlayArrow-CvNuu3e3.js";
9
+ import { B as Z } from "./Button-CUMHt7MG.js";
10
10
  import { H as ee } from "./Heading-BQlmb5Tm.js";
11
11
  import { u as te } from "./useLocalizedStringFormatter-N0AyjzbM.js";
12
12
  import { X as ie } from "./x-C2xUHAEl.js";
@@ -15,11 +15,11 @@ function ae() {
15
15
  let t = S(), [e, i] = G(() => t ? {
16
16
  width: 0,
17
17
  height: 0
18
- } : O());
18
+ } : E());
19
19
  return _(() => {
20
20
  let a = () => {
21
21
  i((n) => {
22
- let d = O();
22
+ let d = E();
23
23
  return d.width === n.width && d.height === n.height ? n : d;
24
24
  });
25
25
  };
@@ -28,7 +28,7 @@ function ae() {
28
28
  };
29
29
  }, []), e;
30
30
  }
31
- function O() {
31
+ function E() {
32
32
  return {
33
33
  width: l && (l == null ? void 0 : l.width) || window.innerWidth,
34
34
  height: l && (l == null ? void 0 : l.height) || window.innerHeight
@@ -52,12 +52,12 @@ function ne(t, e, i) {
52
52
  e.isOpen,
53
53
  i
54
54
  ]), {
55
- modalProps: x(a),
55
+ modalProps: h(a),
56
56
  underlayProps: n
57
57
  };
58
58
  }
59
- const de = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), le = /* @__PURE__ */ R(function(e, i) {
60
- if (u(h)) {
59
+ const de = /* @__PURE__ */ D(null), x = /* @__PURE__ */ D(null), le = /* @__PURE__ */ R(function(e, i) {
60
+ if (u(x)) {
61
61
  if (process.env.NODE_ENV !== "production" && (e.onOpenChange || e.defaultOpen !== void 0 || e.isOpen !== void 0)) {
62
62
  const z = /* @__PURE__ */ new Set([
63
63
  "isDismissable",
@@ -72,7 +72,7 @@ const de = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), le = /* @__PURE
72
72
  ]), I = Object.keys(e).filter((H) => z.has(H));
73
73
  console.warn(`This modal is already wrapped in a ModalOverlay, props [${I.join(", ")}] should be placed on the ModalOverlay instead.`);
74
74
  }
75
- return /* @__PURE__ */ c.createElement(p, {
75
+ return /* @__PURE__ */ c.createElement(O, {
76
76
  ...e,
77
77
  modalRef: i
78
78
  }, e.children);
@@ -88,7 +88,7 @@ const de = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), le = /* @__PURE
88
88
  isExiting: M,
89
89
  UNSTABLE_portalContainer: T,
90
90
  shouldCloseOnInteractOutside: B
91
- }, /* @__PURE__ */ c.createElement(p, {
91
+ }, /* @__PURE__ */ c.createElement(O, {
92
92
  ...L,
93
93
  modalRef: i
94
94
  }, r));
@@ -97,7 +97,7 @@ function se(t, e) {
97
97
  [t, e] = W(t, e, de);
98
98
  let i = u(g), a = Y(t), n = t.isOpen != null || t.defaultOpen != null || !i ? a : i;
99
99
  n === i && process.env.NODE_ENV !== "production" && (t.onOpenChange || t.defaultOpen !== void 0 || t.isOpen !== void 0) && console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");
100
- let d = y(e), o = J(null), s = E(d, n.isOpen), f = E(o, n.isOpen), r = s || f || t.isExiting || !1, b = S();
100
+ let d = y(e), o = J(null), s = v(d, n.isOpen), f = v(o, n.isOpen), r = s || f || t.isExiting || !1, b = S();
101
101
  return !n.isOpen && !r || b ? null : /* @__PURE__ */ c.createElement(oe, {
102
102
  ...t,
103
103
  state: n,
@@ -124,7 +124,7 @@ function oe({ UNSTABLE_portalContainer: t, ...e }) {
124
124
  isExiting: e.isExiting,
125
125
  portalContainer: t
126
126
  }, /* @__PURE__ */ c.createElement("div", {
127
- ...x(C(e, {
127
+ ...h(C(e, {
128
128
  global: !0
129
129
  }), d),
130
130
  ...s,
@@ -135,7 +135,7 @@ function oe({ UNSTABLE_portalContainer: t, ...e }) {
135
135
  }, /* @__PURE__ */ c.createElement(q, {
136
136
  values: [
137
137
  [
138
- h,
138
+ x,
139
139
  {
140
140
  modalProps: n,
141
141
  modalRef: i,
@@ -150,8 +150,8 @@ function oe({ UNSTABLE_portalContainer: t, ...e }) {
150
150
  ]
151
151
  }, s.children)));
152
152
  }
153
- function p(t) {
154
- let { modalProps: e, modalRef: i, isExiting: a, isDismissable: n } = u(h), d = u(g), o = Q(() => X(t.modalRef, i), [
153
+ function O(t) {
154
+ let { modalProps: e, modalRef: i, isExiting: a, isDismissable: n } = u(x), d = u(g), o = Q(() => X(t.modalRef, i), [
155
155
  t.modalRef,
156
156
  i
157
157
  ]), s = y(o), f = P(s), r = w({
@@ -164,7 +164,7 @@ function p(t) {
164
164
  }
165
165
  });
166
166
  return /* @__PURE__ */ c.createElement("div", {
167
- ...x(C(t, {
167
+ ...h(C(t, {
168
168
  global: !0
169
169
  }), e),
170
170
  ...r,
@@ -175,7 +175,7 @@ function p(t) {
175
175
  onDismiss: d.close
176
176
  }), r.children);
177
177
  }
178
- const re = "_modal_153x5_4", ce = "_overlay_153x5_26", fe = "_modalHeader_153x5_50", me = "_modalTitle_153x5_60", $e = "_modalBody_153x5_66", $ = {
178
+ const re = "_modal_1ptpb_1", ce = "_overlay_1ptpb_24", fe = "_modalHeader_1ptpb_48", me = "_modalTitle_1ptpb_58", $e = "_modalBody_1ptpb_64", $ = {
179
179
  modal: re,
180
180
  overlay: ce,
181
181
  modalHeader: fe,
@@ -200,8 +200,8 @@ const re = "_modal_153x5_4", ce = "_overlay_153x5_26", fe = "_modalHeader_153x5_
200
200
  {
201
201
  ...i,
202
202
  className: $.modal,
203
- children: /* @__PURE__ */ v(F, { ...i, children: [
204
- /* @__PURE__ */ v("div", { className: $.modalHeader, children: [
203
+ children: /* @__PURE__ */ p(F, { ...i, children: [
204
+ /* @__PURE__ */ p("div", { className: $.modalHeader, children: [
205
205
  /* @__PURE__ */ m("div", { className: $.modalTitle, children: e && /* @__PURE__ */ m(
206
206
  ee,
207
207
  {
@@ -1 +1 @@
1
- "use strict";require('./assets/Dialog.css');const u=require("react/jsx-runtime"),o=require("./Dialog-DR6nEqMT.cjs"),b=require("./utils-CMHKYKlz.cjs"),h=require("./mergeProps-JhcJ7uJL.cjs"),p=require("./filterDOMProps-RRlKPKX0.cjs"),i=require("react"),y=require("./SSRProvider-Bc-sMhsT.cjs"),m=require("./OverlayArrow-ByH6lM-H.cjs"),M=require("./Button-DrL5Jv-s.cjs"),j=require("./Heading-D3FR_KXb.cjs"),q=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),T=require("./x-rV-nu490.cjs");let r=typeof document<"u"&&window.visualViewport;function B(){let t=y.$b5e257d569688ac6$export$535bd6ca7f90a273(),[e,n]=i.useState(()=>t?{width:0,height:0}:E());return i.useEffect(()=>{let a=()=>{n(d=>{let l=E();return l.width===d.width&&l.height===d.height?d:l})};return r?r.addEventListener("resize",a):window.addEventListener("resize",a),()=>{r?r.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),e}function E(){return{width:r&&(r==null?void 0:r.width)||window.innerWidth,height:r&&(r==null?void 0:r.height)||window.innerHeight}}function L(t,e,n){let{overlayProps:a,underlayProps:d}=o.$a11501f3d1d39e6c$export$ea8f71083e90600f({...t,isOpen:e.isOpen,onClose:e.close},n);return o.$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({isDisabled:!e.isOpen}),o.$337b884510726a0d$export$14c98a7594375490(),i.useEffect(()=>{if(e.isOpen&&n.current)return o.$5e3802645cc19319$export$1c3ebcada18427bf([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(a),underlayProps:d}}const z=i.createContext(null),v=i.createContext(null),I=i.forwardRef(function(e,n){if(i.useContext(v)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const _=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),P=Object.keys(e).filter(N=>_.has(N));console.warn(`This modal is already wrapped in a ModalOverlay, props [${P.join(", ")}] should be placed on the ModalOverlay instead.`)}return i.createElement(O,{...e,modalRef:n},e.children)}let{isDismissable:d,isKeyboardDismissDisabled:l,isOpen:c,defaultOpen:s,onOpenChange:$,children:f,isEntering:g,isExiting:C,UNSTABLE_portalContainer:R,shouldCloseOnInteractOutside:D,...S}=e;return i.createElement(w,{isDismissable:d,isKeyboardDismissDisabled:l,isOpen:c,defaultOpen:s,onOpenChange:$,isEntering:g,isExiting:C,UNSTABLE_portalContainer:R,shouldCloseOnInteractOutside:D},i.createElement(O,{...S,modalRef:n},f))});function H(t,e){[t,e]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(t,e,z);let n=i.useContext(o.$de32f1b87079253c$export$d2f961adcb0afbe),a=m.$fc909762b330b746$export$61c6a8c84e605fb6(t),d=t.isOpen!=null||t.defaultOpen!=null||!n?a:n;d===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let l=b.$df56164dff5785e2$export$4338b53315abf666(e),c=i.useRef(null),s=m.$d3f049242431219c$export$45fda7c47f93fd48(l,d.isOpen),$=m.$d3f049242431219c$export$45fda7c47f93fd48(c,d.isOpen),f=s||$||t.isExiting||!1,g=y.$b5e257d569688ac6$export$535bd6ca7f90a273();return!d.isOpen&&!f||g?null:i.createElement(A,{...t,state:d,isExiting:f,overlayRef:l,modalRef:c})}const w=i.forwardRef(H);function A({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:a}=e,{modalProps:d,underlayProps:l}=L(e,a,n),c=m.$d3f049242431219c$export$6d3443f2c48bfc20(e.overlayRef)||e.isEntering||!1,s=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:c,isExiting:e.isExiting,state:a}}),$=B(),f={...s.style,"--visual-viewport-height":$.height+"px"};return i.createElement(o.$337b884510726a0d$export$c6fdb837b070b4ff,{isExiting:e.isExiting,portalContainer:t},i.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(p.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),l),...s,style:f,ref:e.overlayRef,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},i.createElement(b.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v,{modalProps:d,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[o.$de32f1b87079253c$export$d2f961adcb0afbe,a]]},s.children)))}function O(t){let{modalProps:e,modalRef:n,isExiting:a,isDismissable:d}=i.useContext(v),l=i.useContext(o.$de32f1b87079253c$export$d2f961adcb0afbe),c=i.useMemo(()=>b.$5dc95899b306f630$export$c9058316764c140e(t.modalRef,n),[t.modalRef,n]),s=b.$df56164dff5785e2$export$4338b53315abf666(c),$=m.$d3f049242431219c$export$6d3443f2c48bfc20(s),f=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultClassName:"react-aria-Modal",values:{isEntering:$,isExiting:a,state:l}});return i.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(p.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0}),e),...f,ref:s,"data-entering":$||void 0,"data-exiting":a||void 0},d&&i.createElement(o.$86ea4cb521eb2e37$export$2317d149ed6f78c4,{onDismiss:l.close}),f.children)}const U="_modal_153x5_4",V="_overlay_153x5_26",K="_modalHeader_153x5_50",F="_modalTitle_153x5_60",W="_modalBody_153x5_66",x={modal:U,overlay:V,modalHeader:K,modalTitle:F,modalBody:W},k={close:"Close"},X={close:"Stäng"},G={en:k,sv:X},J=({children:t,title:e,...n})=>{const a=q.useLocalizedStringFormatter(G);return u.jsx(w,{...n,className:x.overlay,children:u.jsx(I,{...n,className:x.modal,children:u.jsxs(o.$de32f1b87079253c$export$3ddf2d174ce01153,{...n,children:[u.jsxs("div",{className:x.modalHeader,children:[u.jsx("div",{className:x.modalTitle,children:e&&u.jsx(j.Heading,{level:3,elementType:"h2",children:e})}),u.jsx(M.Button,{slot:"close",variant:"tertiary",icon:T.X,iconPlacement:"right",children:a.format("close")})]}),u.jsx("div",{className:x.modalBody,tabIndex:-1,children:t})]})})})};exports.Modal=J;
1
+ "use strict";require('./assets/Dialog.css');const u=require("react/jsx-runtime"),o=require("./Dialog-DR6nEqMT.cjs"),b=require("./utils-CMHKYKlz.cjs"),h=require("./mergeProps-JhcJ7uJL.cjs"),O=require("./filterDOMProps-RRlKPKX0.cjs"),i=require("react"),y=require("./SSRProvider-Bc-sMhsT.cjs"),x=require("./OverlayArrow-ByH6lM-H.cjs"),M=require("./Button-D_tRdPW9.cjs"),j=require("./Heading-D3FR_KXb.cjs"),q=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),T=require("./x-rV-nu490.cjs");let r=typeof document<"u"&&window.visualViewport;function B(){let t=y.$b5e257d569688ac6$export$535bd6ca7f90a273(),[e,n]=i.useState(()=>t?{width:0,height:0}:p());return i.useEffect(()=>{let a=()=>{n(d=>{let l=p();return l.width===d.width&&l.height===d.height?d:l})};return r?r.addEventListener("resize",a):window.addEventListener("resize",a),()=>{r?r.removeEventListener("resize",a):window.removeEventListener("resize",a)}},[]),e}function p(){return{width:r&&(r==null?void 0:r.width)||window.innerWidth,height:r&&(r==null?void 0:r.height)||window.innerHeight}}function L(t,e,n){let{overlayProps:a,underlayProps:d}=o.$a11501f3d1d39e6c$export$ea8f71083e90600f({...t,isOpen:e.isOpen,onClose:e.close},n);return o.$49c51c25361d4cd2$export$ee0f7cc6afcd1c18({isDisabled:!e.isOpen}),o.$337b884510726a0d$export$14c98a7594375490(),i.useEffect(()=>{if(e.isOpen&&n.current)return o.$5e3802645cc19319$export$1c3ebcada18427bf([n.current],{shouldUseInert:!0})},[e.isOpen,n]),{modalProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(a),underlayProps:d}}const z=i.createContext(null),v=i.createContext(null),I=i.forwardRef(function(e,n){if(i.useContext(v)){if(process.env.NODE_ENV!=="production"&&(e.onOpenChange||e.defaultOpen!==void 0||e.isOpen!==void 0)){const _=new Set(["isDismissable","isKeyboardDismissDisabled","isOpen","defaultOpen","onOpenChange","isEntering","isExiting","UNSTABLE_portalContainer","shouldCloseOnInteractOutside"]),P=Object.keys(e).filter(N=>_.has(N));console.warn(`This modal is already wrapped in a ModalOverlay, props [${P.join(", ")}] should be placed on the ModalOverlay instead.`)}return i.createElement(E,{...e,modalRef:n},e.children)}let{isDismissable:d,isKeyboardDismissDisabled:l,isOpen:c,defaultOpen:s,onOpenChange:$,children:f,isEntering:g,isExiting:C,UNSTABLE_portalContainer:R,shouldCloseOnInteractOutside:D,...S}=e;return i.createElement(w,{isDismissable:d,isKeyboardDismissDisabled:l,isOpen:c,defaultOpen:s,onOpenChange:$,isEntering:g,isExiting:C,UNSTABLE_portalContainer:R,shouldCloseOnInteractOutside:D},i.createElement(E,{...S,modalRef:n},f))});function H(t,e){[t,e]=b.$64fa3d84918910a7$export$29f1550f4b0d4415(t,e,z);let n=i.useContext(o.$de32f1b87079253c$export$d2f961adcb0afbe),a=x.$fc909762b330b746$export$61c6a8c84e605fb6(t),d=t.isOpen!=null||t.defaultOpen!=null||!n?a:n;d===n&&process.env.NODE_ENV!=="production"&&(t.onOpenChange||t.defaultOpen!==void 0||t.isOpen!==void 0)&&console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");let l=b.$df56164dff5785e2$export$4338b53315abf666(e),c=i.useRef(null),s=x.$d3f049242431219c$export$45fda7c47f93fd48(l,d.isOpen),$=x.$d3f049242431219c$export$45fda7c47f93fd48(c,d.isOpen),f=s||$||t.isExiting||!1,g=y.$b5e257d569688ac6$export$535bd6ca7f90a273();return!d.isOpen&&!f||g?null:i.createElement(A,{...t,state:d,isExiting:f,overlayRef:l,modalRef:c})}const w=i.forwardRef(H);function A({UNSTABLE_portalContainer:t,...e}){let n=e.modalRef,{state:a}=e,{modalProps:d,underlayProps:l}=L(e,a,n),c=x.$d3f049242431219c$export$6d3443f2c48bfc20(e.overlayRef)||e.isEntering||!1,s=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:c,isExiting:e.isExiting,state:a}}),$=B(),f={...s.style,"--visual-viewport-height":$.height+"px"};return i.createElement(o.$337b884510726a0d$export$c6fdb837b070b4ff,{isExiting:e.isExiting,portalContainer:t},i.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0}),l),...s,style:f,ref:e.overlayRef,"data-entering":c||void 0,"data-exiting":e.isExiting||void 0},i.createElement(b.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[v,{modalProps:d,modalRef:n,isExiting:e.isExiting,isDismissable:e.isDismissable}],[o.$de32f1b87079253c$export$d2f961adcb0afbe,a]]},s.children)))}function E(t){let{modalProps:e,modalRef:n,isExiting:a,isDismissable:d}=i.useContext(v),l=i.useContext(o.$de32f1b87079253c$export$d2f961adcb0afbe),c=i.useMemo(()=>b.$5dc95899b306f630$export$c9058316764c140e(t.modalRef,n),[t.modalRef,n]),s=b.$df56164dff5785e2$export$4338b53315abf666(c),$=x.$d3f049242431219c$export$6d3443f2c48bfc20(s),f=b.$64fa3d84918910a7$export$4d86445c2cf5e3({...t,defaultClassName:"react-aria-Modal",values:{isEntering:$,isExiting:a,state:l}});return i.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(t,{global:!0}),e),...f,ref:s,"data-entering":$||void 0,"data-exiting":a||void 0},d&&i.createElement(o.$86ea4cb521eb2e37$export$2317d149ed6f78c4,{onDismiss:l.close}),f.children)}const U="_modal_1ptpb_1",V="_overlay_1ptpb_24",K="_modalHeader_1ptpb_48",F="_modalTitle_1ptpb_58",W="_modalBody_1ptpb_64",m={modal:U,overlay:V,modalHeader:K,modalTitle:F,modalBody:W},k={close:"Close"},X={close:"Stäng"},G={en:k,sv:X},J=({children:t,title:e,...n})=>{const a=q.useLocalizedStringFormatter(G);return u.jsx(w,{...n,className:m.overlay,children:u.jsx(I,{...n,className:m.modal,children:u.jsxs(o.$de32f1b87079253c$export$3ddf2d174ce01153,{...n,children:[u.jsxs("div",{className:m.modalHeader,children:[u.jsx("div",{className:m.modalTitle,children:e&&u.jsx(j.Heading,{level:3,elementType:"h2",children:e})}),u.jsx(M.Button,{slot:"close",variant:"tertiary",icon:T.X,iconPlacement:"right",children:a.format("close")})]}),u.jsx("div",{className:m.modalBody,tabIndex:-1,children:t})]})})})};exports.Modal=J;
@@ -1,4 +1,4 @@
1
- "use strict";require('./assets/Dropdown.css');const e=require("react/jsx-runtime"),r=require("./Dialog-DR6nEqMT.cjs"),l=require("./Button-DrL5Jv-s.cjs"),d=require("./clsx-C11secjj.cjs"),a=require("./createLucideIcon-CTVXwe6i.cjs");/**
1
+ "use strict";require('./assets/Dropdown.css');const e=require("react/jsx-runtime"),r=require("./Dialog-DR6nEqMT.cjs"),l=require("./Button-D_tRdPW9.cjs"),d=require("./clsx-C11secjj.cjs"),a=require("./createLucideIcon-CTVXwe6i.cjs");/**
2
2
  * @license lucide-react v0.525.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as c, Fragment as l } from "react/jsx-runtime";
2
2
  import { b as s, a as d, c as m, d as u } from "./Dialog-B8swxl24.js";
3
- import { B as x } from "./Button-DYcmg49Z.js";
3
+ import { B as x } from "./Button-CUMHt7MG.js";
4
4
  import { c as b } from "./clsx-OuTLNxxd.js";
5
5
  import { c as f } from "./createLucideIcon-XRdN60yz.js";
6
6
  import './assets/Dropdown.css';/**
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { s } from "./GridItem-D3FZyyO-.js";
2
+ import { s } from "./GridItem-BtO9kCX9.js";
3
3
  import { c as m } from "./clsx-OuTLNxxd.js";
4
4
  const t = ({
5
5
  children: r,
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),s=require("./GridItem-CIVF1fRW.cjs"),l=require("./clsx-C11secjj.cjs"),n=({children:i,isContained:t=!1,removeMargins:c=!1,...e})=>r.jsx("div",{...e,className:l.clsx(s.styles.container,t&&s.styles.contained,c&&s.styles.removeMargins,e.className),children:r.jsx("div",{className:s.styles.flex,children:i})});exports.Grid=n;
1
+ "use strict";const r=require("react/jsx-runtime"),s=require("./GridItem-luVsL9lu.cjs"),l=require("./clsx-C11secjj.cjs"),n=({children:i,isContained:t=!1,removeMargins:c=!1,...e})=>r.jsx("div",{...e,className:l.clsx(s.styles.container,t&&s.styles.contained,c&&s.styles.removeMargins,e.className),children:r.jsx("div",{className:s.styles.flex,children:i})});exports.Grid=n;
@@ -0,0 +1,237 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { c as x } from "./clsx-OuTLNxxd.js";
3
+ import './assets/GridItem.css';const r = "_container_1q01q_1", d = "_removeMargins_1q01q_13", a = "_contained_1q01q_17", g = "_flex_1q01q_23", u = "_fluid_1q01q_52", h = "_col_1q01q_58", l = {
4
+ container: r,
5
+ removeMargins: d,
6
+ contained: a,
7
+ flex: g,
8
+ fluid: u,
9
+ col: h,
10
+ "col-1": "_col-1_1q01q_66",
11
+ "col-2": "_col-2_1q01q_70",
12
+ "col-3": "_col-3_1q01q_76",
13
+ "col-quarter": "_col-quarter_1q01q_77",
14
+ "col-4": "_col-4_1q01q_83",
15
+ "col-third": "_col-third_1q01q_84",
16
+ "col-5": "_col-5_1q01q_90",
17
+ "col-6": "_col-6_1q01q_96",
18
+ "col-half": "_col-half_1q01q_97",
19
+ "col-7": "_col-7_1q01q_103",
20
+ "col-8": "_col-8_1q01q_109",
21
+ "col-9": "_col-9_1q01q_115",
22
+ "col-10": "_col-10_1q01q_121",
23
+ "col-11": "_col-11_1q01q_127",
24
+ "col-12": "_col-12_1q01q_133",
25
+ "col-full": "_col-full_1q01q_134",
26
+ "col-auto": "_col-auto_1q01q_140",
27
+ "col-grow": "_col-grow_1q01q_144",
28
+ "col-xs-1": "_col-xs-1_1q01q_149",
29
+ "col-xs-2": "_col-xs-2_1q01q_155",
30
+ "col-xs-3": "_col-xs-3_1q01q_161",
31
+ "col-xs-quarter": "_col-xs-quarter_1q01q_162",
32
+ "col-xs-4": "_col-xs-4_1q01q_168",
33
+ "col-xs-third": "_col-xs-third_1q01q_169",
34
+ "col-xs-5": "_col-xs-5_1q01q_175",
35
+ "col-xs-6": "_col-xs-6_1q01q_181",
36
+ "col-xs-half": "_col-xs-half_1q01q_182",
37
+ "col-xs-7": "_col-xs-7_1q01q_188",
38
+ "col-xs-8": "_col-xs-8_1q01q_194",
39
+ "col-xs-9": "_col-xs-9_1q01q_200",
40
+ "col-xs-10": "_col-xs-10_1q01q_206",
41
+ "col-xs-11": "_col-xs-11_1q01q_212",
42
+ "col-xs-12": "_col-xs-12_1q01q_218",
43
+ "col-xs-full": "_col-xs-full_1q01q_219",
44
+ "col-xs-auto": "_col-xs-auto_1q01q_225",
45
+ "col-xs-grow": "_col-xs-grow_1q01q_230",
46
+ "col-sm-1": "_col-sm-1_1q01q_236",
47
+ "col-sm-2": "_col-sm-2_1q01q_242",
48
+ "col-sm-3": "_col-sm-3_1q01q_248",
49
+ "col-sm-quarter": "_col-sm-quarter_1q01q_249",
50
+ "col-sm-4": "_col-sm-4_1q01q_255",
51
+ "col-sm-third": "_col-sm-third_1q01q_256",
52
+ "col-sm-5": "_col-sm-5_1q01q_262",
53
+ "col-sm-6": "_col-sm-6_1q01q_268",
54
+ "col-sm-half": "_col-sm-half_1q01q_269",
55
+ "col-sm-7": "_col-sm-7_1q01q_275",
56
+ "col-sm-8": "_col-sm-8_1q01q_281",
57
+ "col-sm-9": "_col-sm-9_1q01q_287",
58
+ "col-sm-10": "_col-sm-10_1q01q_293",
59
+ "col-sm-11": "_col-sm-11_1q01q_299",
60
+ "col-sm-12": "_col-sm-12_1q01q_305",
61
+ "col-sm-full": "_col-sm-full_1q01q_306",
62
+ "col-sm-auto": "_col-sm-auto_1q01q_312",
63
+ "col-sm-grow": "_col-sm-grow_1q01q_317",
64
+ "col-md-1": "_col-md-1_1q01q_323",
65
+ "col-md-2": "_col-md-2_1q01q_329",
66
+ "col-md-3": "_col-md-3_1q01q_335",
67
+ "col-md-quarter": "_col-md-quarter_1q01q_336",
68
+ "col-md-4": "_col-md-4_1q01q_342",
69
+ "col-md-third": "_col-md-third_1q01q_343",
70
+ "col-md-5": "_col-md-5_1q01q_349",
71
+ "col-md-6": "_col-md-6_1q01q_355",
72
+ "col-md-half": "_col-md-half_1q01q_356",
73
+ "col-md-7": "_col-md-7_1q01q_362",
74
+ "col-md-8": "_col-md-8_1q01q_368",
75
+ "col-md-9": "_col-md-9_1q01q_374",
76
+ "col-md-10": "_col-md-10_1q01q_380",
77
+ "col-md-11": "_col-md-11_1q01q_386",
78
+ "col-md-12": "_col-md-12_1q01q_392",
79
+ "col-md-full": "_col-md-full_1q01q_393",
80
+ "col-md-auto": "_col-md-auto_1q01q_399",
81
+ "col-md-grow": "_col-md-grow_1q01q_403",
82
+ "col-lg-1": "_col-lg-1_1q01q_409",
83
+ "col-lg-2": "_col-lg-2_1q01q_415",
84
+ "col-lg-3": "_col-lg-3_1q01q_421",
85
+ "col-lg-quarter": "_col-lg-quarter_1q01q_422",
86
+ "col-lg-4": "_col-lg-4_1q01q_428",
87
+ "col-lg-third": "_col-lg-third_1q01q_429",
88
+ "col-lg-5": "_col-lg-5_1q01q_435",
89
+ "col-lg-6": "_col-lg-6_1q01q_441",
90
+ "col-lg-half": "_col-lg-half_1q01q_442",
91
+ "col-lg-7": "_col-lg-7_1q01q_448",
92
+ "col-lg-8": "_col-lg-8_1q01q_454",
93
+ "col-lg-9": "_col-lg-9_1q01q_460",
94
+ "col-lg-10": "_col-lg-10_1q01q_466",
95
+ "col-lg-11": "_col-lg-11_1q01q_472",
96
+ "col-lg-12": "_col-lg-12_1q01q_478",
97
+ "col-lg-full": "_col-lg-full_1q01q_479",
98
+ "col-lg-auto": "_col-lg-auto_1q01q_485",
99
+ "col-lg-grow": "_col-lg-grow_1q01q_489",
100
+ "col-xl-1": "_col-xl-1_1q01q_495",
101
+ "col-xl-2": "_col-xl-2_1q01q_501",
102
+ "col-xl-3": "_col-xl-3_1q01q_507",
103
+ "col-xl-quarter": "_col-xl-quarter_1q01q_508",
104
+ "col-xl-4": "_col-xl-4_1q01q_514",
105
+ "col-xl-third": "_col-xl-third_1q01q_515",
106
+ "col-xl-5": "_col-xl-5_1q01q_521",
107
+ "col-xl-6": "_col-xl-6_1q01q_527",
108
+ "col-xl-half": "_col-xl-half_1q01q_528",
109
+ "col-xl-7": "_col-xl-7_1q01q_534",
110
+ "col-xl-8": "_col-xl-8_1q01q_540",
111
+ "col-xl-9": "_col-xl-9_1q01q_546",
112
+ "col-xl-10": "_col-xl-10_1q01q_552",
113
+ "col-xl-11": "_col-xl-11_1q01q_558",
114
+ "col-xl-12": "_col-xl-12_1q01q_564",
115
+ "col-xl-full": "_col-xl-full_1q01q_565",
116
+ "col-xl-auto": "_col-xl-auto_1q01q_571",
117
+ "col-xl-grow": "_col-xl-grow_1q01q_575",
118
+ "offset-1": "_offset-1_1q01q_580",
119
+ "offset-2": "_offset-2_1q01q_584",
120
+ "offset-3": "_offset-3_1q01q_590",
121
+ "offset-quarter": "_offset-quarter_1q01q_591",
122
+ "offset-4": "_offset-4_1q01q_597",
123
+ "offset-third": "_offset-third_1q01q_598",
124
+ "offset-5": "_offset-5_1q01q_604",
125
+ "offset-6": "_offset-6_1q01q_610",
126
+ "offset-half": "_offset-half_1q01q_611",
127
+ "offset-7": "_offset-7_1q01q_617",
128
+ "offset-8": "_offset-8_1q01q_623",
129
+ "offset-9": "_offset-9_1q01q_629",
130
+ "offset-10": "_offset-10_1q01q_635",
131
+ "offset-11": "_offset-11_1q01q_641",
132
+ "offset-auto": "_offset-auto_1q01q_647",
133
+ "offset-xs-1": "_offset-xs-1_1q01q_652",
134
+ "offset-xs-2": "_offset-xs-2_1q01q_658",
135
+ "offset-xs-3": "_offset-xs-3_1q01q_664",
136
+ "offset-xs-quarter": "_offset-xs-quarter_1q01q_665",
137
+ "offset-xs-4": "_offset-xs-4_1q01q_671",
138
+ "offset-xs-third": "_offset-xs-third_1q01q_672",
139
+ "offset-xs-5": "_offset-xs-5_1q01q_678",
140
+ "offset-xs-6": "_offset-xs-6_1q01q_684",
141
+ "offset-xs-half": "_offset-xs-half_1q01q_685",
142
+ "offset-xs-7": "_offset-xs-7_1q01q_691",
143
+ "offset-xs-8": "_offset-xs-8_1q01q_697",
144
+ "offset-xs-9": "_offset-xs-9_1q01q_703",
145
+ "offset-xs-10": "_offset-xs-10_1q01q_709",
146
+ "offset-xs-11": "_offset-xs-11_1q01q_715",
147
+ "offset-xs-auto": "_offset-xs-auto_1q01q_721",
148
+ "offset-sm-1": "_offset-sm-1_1q01q_727",
149
+ "offset-sm-2": "_offset-sm-2_1q01q_733",
150
+ "offset-sm-3": "_offset-sm-3_1q01q_739",
151
+ "offset-sm-quarter": "_offset-sm-quarter_1q01q_740",
152
+ "offset-sm-4": "_offset-sm-4_1q01q_746",
153
+ "offset-sm-third": "_offset-sm-third_1q01q_747",
154
+ "offset-sm-5": "_offset-sm-5_1q01q_753",
155
+ "offset-sm-6": "_offset-sm-6_1q01q_759",
156
+ "offset-sm-half": "_offset-sm-half_1q01q_760",
157
+ "offset-sm-7": "_offset-sm-7_1q01q_766",
158
+ "offset-sm-8": "_offset-sm-8_1q01q_772",
159
+ "offset-sm-9": "_offset-sm-9_1q01q_778",
160
+ "offset-sm-10": "_offset-sm-10_1q01q_784",
161
+ "offset-sm-11": "_offset-sm-11_1q01q_790",
162
+ "offset-sm-auto": "_offset-sm-auto_1q01q_796",
163
+ "offset-md-1": "_offset-md-1_1q01q_802",
164
+ "offset-md-2": "_offset-md-2_1q01q_808",
165
+ "offset-md-3": "_offset-md-3_1q01q_814",
166
+ "offset-md-quarter": "_offset-md-quarter_1q01q_815",
167
+ "offset-md-4": "_offset-md-4_1q01q_821",
168
+ "offset-md-third": "_offset-md-third_1q01q_822",
169
+ "offset-md-5": "_offset-md-5_1q01q_828",
170
+ "offset-md-6": "_offset-md-6_1q01q_834",
171
+ "offset-md-half": "_offset-md-half_1q01q_835",
172
+ "offset-md-7": "_offset-md-7_1q01q_841",
173
+ "offset-md-8": "_offset-md-8_1q01q_847",
174
+ "offset-md-9": "_offset-md-9_1q01q_853",
175
+ "offset-md-10": "_offset-md-10_1q01q_859",
176
+ "offset-md-11": "_offset-md-11_1q01q_865",
177
+ "offset-md-auto": "_offset-md-auto_1q01q_871",
178
+ "offset-lg-1": "_offset-lg-1_1q01q_877",
179
+ "offset-lg-2": "_offset-lg-2_1q01q_883",
180
+ "offset-lg-3": "_offset-lg-3_1q01q_889",
181
+ "offset-lg-quarter": "_offset-lg-quarter_1q01q_890",
182
+ "offset-lg-4": "_offset-lg-4_1q01q_896",
183
+ "offset-lg-third": "_offset-lg-third_1q01q_897",
184
+ "offset-lg-5": "_offset-lg-5_1q01q_903",
185
+ "offset-lg-6": "_offset-lg-6_1q01q_909",
186
+ "offset-lg-half": "_offset-lg-half_1q01q_910",
187
+ "offset-lg-7": "_offset-lg-7_1q01q_916",
188
+ "offset-lg-8": "_offset-lg-8_1q01q_922",
189
+ "offset-lg-9": "_offset-lg-9_1q01q_928",
190
+ "offset-lg-10": "_offset-lg-10_1q01q_934",
191
+ "offset-lg-11": "_offset-lg-11_1q01q_940",
192
+ "offset-lg-auto": "_offset-lg-auto_1q01q_946",
193
+ "offset-xl-1": "_offset-xl-1_1q01q_952",
194
+ "offset-xl-2": "_offset-xl-2_1q01q_958",
195
+ "offset-xl-3": "_offset-xl-3_1q01q_964",
196
+ "offset-xl-quarter": "_offset-xl-quarter_1q01q_965",
197
+ "offset-xl-4": "_offset-xl-4_1q01q_971",
198
+ "offset-xl-third": "_offset-xl-third_1q01q_972",
199
+ "offset-xl-5": "_offset-xl-5_1q01q_978",
200
+ "offset-xl-6": "_offset-xl-6_1q01q_984",
201
+ "offset-xl-half": "_offset-xl-half_1q01q_985",
202
+ "offset-xl-7": "_offset-xl-7_1q01q_991",
203
+ "offset-xl-8": "_offset-xl-8_1q01q_997",
204
+ "offset-xl-9": "_offset-xl-9_1q01q_1003",
205
+ "offset-xl-10": "_offset-xl-10_1q01q_1009",
206
+ "offset-xl-11": "_offset-xl-11_1q01q_1015",
207
+ "offset-xl-auto": "_offset-xl-auto_1q01q_1021"
208
+ }, j = ({
209
+ children: _,
210
+ size: q,
211
+ offset: o,
212
+ ...s
213
+ }) => {
214
+ const t = o ? `offset-${o}` : "", c = i(q), e = n(o);
215
+ return /* @__PURE__ */ m(
216
+ "div",
217
+ {
218
+ ...s,
219
+ className: x(
220
+ l.col,
221
+ l[t],
222
+ c.map((f) => l[f]),
223
+ e.map((f) => l[f]),
224
+ s.className
225
+ ),
226
+ children: _
227
+ }
228
+ );
229
+ }, i = (_) => _ ? typeof _ == "object" ? Object.entries(_).map(
230
+ ([q, o]) => q === "xs" ? `col-${o}` : `col-${q}-${o}`
231
+ ) : [`col-${_}`] : [], n = (_) => _ ? typeof _ == "object" ? Object.entries(_).map(
232
+ ([q, o]) => q === "xs" ? `offset-${o}` : `offset-${q}-${o}`
233
+ ) : [`offset-${_}`] : [];
234
+ export {
235
+ j as G,
236
+ l as s
237
+ };
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/GridItem.css');const m=require("react/jsx-runtime"),x=require("./clsx-C11secjj.cjs"),r="_container_1q01q_1",d="_removeMargins_1q01q_13",a="_contained_1q01q_17",g="_flex_1q01q_23",u="_fluid_1q01q_52",h="_col_1q01q_58",l={container:r,removeMargins:d,contained:a,flex:g,fluid:u,col:h,"col-1":"_col-1_1q01q_66","col-2":"_col-2_1q01q_70","col-3":"_col-3_1q01q_76","col-quarter":"_col-quarter_1q01q_77","col-4":"_col-4_1q01q_83","col-third":"_col-third_1q01q_84","col-5":"_col-5_1q01q_90","col-6":"_col-6_1q01q_96","col-half":"_col-half_1q01q_97","col-7":"_col-7_1q01q_103","col-8":"_col-8_1q01q_109","col-9":"_col-9_1q01q_115","col-10":"_col-10_1q01q_121","col-11":"_col-11_1q01q_127","col-12":"_col-12_1q01q_133","col-full":"_col-full_1q01q_134","col-auto":"_col-auto_1q01q_140","col-grow":"_col-grow_1q01q_144","col-xs-1":"_col-xs-1_1q01q_149","col-xs-2":"_col-xs-2_1q01q_155","col-xs-3":"_col-xs-3_1q01q_161","col-xs-quarter":"_col-xs-quarter_1q01q_162","col-xs-4":"_col-xs-4_1q01q_168","col-xs-third":"_col-xs-third_1q01q_169","col-xs-5":"_col-xs-5_1q01q_175","col-xs-6":"_col-xs-6_1q01q_181","col-xs-half":"_col-xs-half_1q01q_182","col-xs-7":"_col-xs-7_1q01q_188","col-xs-8":"_col-xs-8_1q01q_194","col-xs-9":"_col-xs-9_1q01q_200","col-xs-10":"_col-xs-10_1q01q_206","col-xs-11":"_col-xs-11_1q01q_212","col-xs-12":"_col-xs-12_1q01q_218","col-xs-full":"_col-xs-full_1q01q_219","col-xs-auto":"_col-xs-auto_1q01q_225","col-xs-grow":"_col-xs-grow_1q01q_230","col-sm-1":"_col-sm-1_1q01q_236","col-sm-2":"_col-sm-2_1q01q_242","col-sm-3":"_col-sm-3_1q01q_248","col-sm-quarter":"_col-sm-quarter_1q01q_249","col-sm-4":"_col-sm-4_1q01q_255","col-sm-third":"_col-sm-third_1q01q_256","col-sm-5":"_col-sm-5_1q01q_262","col-sm-6":"_col-sm-6_1q01q_268","col-sm-half":"_col-sm-half_1q01q_269","col-sm-7":"_col-sm-7_1q01q_275","col-sm-8":"_col-sm-8_1q01q_281","col-sm-9":"_col-sm-9_1q01q_287","col-sm-10":"_col-sm-10_1q01q_293","col-sm-11":"_col-sm-11_1q01q_299","col-sm-12":"_col-sm-12_1q01q_305","col-sm-full":"_col-sm-full_1q01q_306","col-sm-auto":"_col-sm-auto_1q01q_312","col-sm-grow":"_col-sm-grow_1q01q_317","col-md-1":"_col-md-1_1q01q_323","col-md-2":"_col-md-2_1q01q_329","col-md-3":"_col-md-3_1q01q_335","col-md-quarter":"_col-md-quarter_1q01q_336","col-md-4":"_col-md-4_1q01q_342","col-md-third":"_col-md-third_1q01q_343","col-md-5":"_col-md-5_1q01q_349","col-md-6":"_col-md-6_1q01q_355","col-md-half":"_col-md-half_1q01q_356","col-md-7":"_col-md-7_1q01q_362","col-md-8":"_col-md-8_1q01q_368","col-md-9":"_col-md-9_1q01q_374","col-md-10":"_col-md-10_1q01q_380","col-md-11":"_col-md-11_1q01q_386","col-md-12":"_col-md-12_1q01q_392","col-md-full":"_col-md-full_1q01q_393","col-md-auto":"_col-md-auto_1q01q_399","col-md-grow":"_col-md-grow_1q01q_403","col-lg-1":"_col-lg-1_1q01q_409","col-lg-2":"_col-lg-2_1q01q_415","col-lg-3":"_col-lg-3_1q01q_421","col-lg-quarter":"_col-lg-quarter_1q01q_422","col-lg-4":"_col-lg-4_1q01q_428","col-lg-third":"_col-lg-third_1q01q_429","col-lg-5":"_col-lg-5_1q01q_435","col-lg-6":"_col-lg-6_1q01q_441","col-lg-half":"_col-lg-half_1q01q_442","col-lg-7":"_col-lg-7_1q01q_448","col-lg-8":"_col-lg-8_1q01q_454","col-lg-9":"_col-lg-9_1q01q_460","col-lg-10":"_col-lg-10_1q01q_466","col-lg-11":"_col-lg-11_1q01q_472","col-lg-12":"_col-lg-12_1q01q_478","col-lg-full":"_col-lg-full_1q01q_479","col-lg-auto":"_col-lg-auto_1q01q_485","col-lg-grow":"_col-lg-grow_1q01q_489","col-xl-1":"_col-xl-1_1q01q_495","col-xl-2":"_col-xl-2_1q01q_501","col-xl-3":"_col-xl-3_1q01q_507","col-xl-quarter":"_col-xl-quarter_1q01q_508","col-xl-4":"_col-xl-4_1q01q_514","col-xl-third":"_col-xl-third_1q01q_515","col-xl-5":"_col-xl-5_1q01q_521","col-xl-6":"_col-xl-6_1q01q_527","col-xl-half":"_col-xl-half_1q01q_528","col-xl-7":"_col-xl-7_1q01q_534","col-xl-8":"_col-xl-8_1q01q_540","col-xl-9":"_col-xl-9_1q01q_546","col-xl-10":"_col-xl-10_1q01q_552","col-xl-11":"_col-xl-11_1q01q_558","col-xl-12":"_col-xl-12_1q01q_564","col-xl-full":"_col-xl-full_1q01q_565","col-xl-auto":"_col-xl-auto_1q01q_571","col-xl-grow":"_col-xl-grow_1q01q_575","offset-1":"_offset-1_1q01q_580","offset-2":"_offset-2_1q01q_584","offset-3":"_offset-3_1q01q_590","offset-quarter":"_offset-quarter_1q01q_591","offset-4":"_offset-4_1q01q_597","offset-third":"_offset-third_1q01q_598","offset-5":"_offset-5_1q01q_604","offset-6":"_offset-6_1q01q_610","offset-half":"_offset-half_1q01q_611","offset-7":"_offset-7_1q01q_617","offset-8":"_offset-8_1q01q_623","offset-9":"_offset-9_1q01q_629","offset-10":"_offset-10_1q01q_635","offset-11":"_offset-11_1q01q_641","offset-auto":"_offset-auto_1q01q_647","offset-xs-1":"_offset-xs-1_1q01q_652","offset-xs-2":"_offset-xs-2_1q01q_658","offset-xs-3":"_offset-xs-3_1q01q_664","offset-xs-quarter":"_offset-xs-quarter_1q01q_665","offset-xs-4":"_offset-xs-4_1q01q_671","offset-xs-third":"_offset-xs-third_1q01q_672","offset-xs-5":"_offset-xs-5_1q01q_678","offset-xs-6":"_offset-xs-6_1q01q_684","offset-xs-half":"_offset-xs-half_1q01q_685","offset-xs-7":"_offset-xs-7_1q01q_691","offset-xs-8":"_offset-xs-8_1q01q_697","offset-xs-9":"_offset-xs-9_1q01q_703","offset-xs-10":"_offset-xs-10_1q01q_709","offset-xs-11":"_offset-xs-11_1q01q_715","offset-xs-auto":"_offset-xs-auto_1q01q_721","offset-sm-1":"_offset-sm-1_1q01q_727","offset-sm-2":"_offset-sm-2_1q01q_733","offset-sm-3":"_offset-sm-3_1q01q_739","offset-sm-quarter":"_offset-sm-quarter_1q01q_740","offset-sm-4":"_offset-sm-4_1q01q_746","offset-sm-third":"_offset-sm-third_1q01q_747","offset-sm-5":"_offset-sm-5_1q01q_753","offset-sm-6":"_offset-sm-6_1q01q_759","offset-sm-half":"_offset-sm-half_1q01q_760","offset-sm-7":"_offset-sm-7_1q01q_766","offset-sm-8":"_offset-sm-8_1q01q_772","offset-sm-9":"_offset-sm-9_1q01q_778","offset-sm-10":"_offset-sm-10_1q01q_784","offset-sm-11":"_offset-sm-11_1q01q_790","offset-sm-auto":"_offset-sm-auto_1q01q_796","offset-md-1":"_offset-md-1_1q01q_802","offset-md-2":"_offset-md-2_1q01q_808","offset-md-3":"_offset-md-3_1q01q_814","offset-md-quarter":"_offset-md-quarter_1q01q_815","offset-md-4":"_offset-md-4_1q01q_821","offset-md-third":"_offset-md-third_1q01q_822","offset-md-5":"_offset-md-5_1q01q_828","offset-md-6":"_offset-md-6_1q01q_834","offset-md-half":"_offset-md-half_1q01q_835","offset-md-7":"_offset-md-7_1q01q_841","offset-md-8":"_offset-md-8_1q01q_847","offset-md-9":"_offset-md-9_1q01q_853","offset-md-10":"_offset-md-10_1q01q_859","offset-md-11":"_offset-md-11_1q01q_865","offset-md-auto":"_offset-md-auto_1q01q_871","offset-lg-1":"_offset-lg-1_1q01q_877","offset-lg-2":"_offset-lg-2_1q01q_883","offset-lg-3":"_offset-lg-3_1q01q_889","offset-lg-quarter":"_offset-lg-quarter_1q01q_890","offset-lg-4":"_offset-lg-4_1q01q_896","offset-lg-third":"_offset-lg-third_1q01q_897","offset-lg-5":"_offset-lg-5_1q01q_903","offset-lg-6":"_offset-lg-6_1q01q_909","offset-lg-half":"_offset-lg-half_1q01q_910","offset-lg-7":"_offset-lg-7_1q01q_916","offset-lg-8":"_offset-lg-8_1q01q_922","offset-lg-9":"_offset-lg-9_1q01q_928","offset-lg-10":"_offset-lg-10_1q01q_934","offset-lg-11":"_offset-lg-11_1q01q_940","offset-lg-auto":"_offset-lg-auto_1q01q_946","offset-xl-1":"_offset-xl-1_1q01q_952","offset-xl-2":"_offset-xl-2_1q01q_958","offset-xl-3":"_offset-xl-3_1q01q_964","offset-xl-quarter":"_offset-xl-quarter_1q01q_965","offset-xl-4":"_offset-xl-4_1q01q_971","offset-xl-third":"_offset-xl-third_1q01q_972","offset-xl-5":"_offset-xl-5_1q01q_978","offset-xl-6":"_offset-xl-6_1q01q_984","offset-xl-half":"_offset-xl-half_1q01q_985","offset-xl-7":"_offset-xl-7_1q01q_991","offset-xl-8":"_offset-xl-8_1q01q_997","offset-xl-9":"_offset-xl-9_1q01q_1003","offset-xl-10":"_offset-xl-10_1q01q_1009","offset-xl-11":"_offset-xl-11_1q01q_1015","offset-xl-auto":"_offset-xl-auto_1q01q_1021"},i=({children:_,size:q,offset:o,...s})=>{const t=o?`offset-${o}`:"",c=n(q),e=w(o);return m.jsx("div",{...s,className:x.clsx(l.col,l[t],c.map(f=>l[f]),e.map(f=>l[f]),s.className),children:_})},n=_=>_?typeof _=="object"?Object.entries(_).map(([q,o])=>q==="xs"?`col-${o}`:`col-${q}-${o}`):[`col-${_}`]:[],w=_=>_?typeof _=="object"?Object.entries(_).map(([q,o])=>q==="xs"?`offset-${o}`:`offset-${q}-${o}`):[`offset-${_}`]:[];exports.GridItem=i;exports.styles=l;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/InfoBanner.css');const e=require("react/jsx-runtime"),q=require("./icon-map-9XcghDra.cjs"),v=require("react"),S=require("./clsx-C11secjj.cjs"),z=require("./Button-D_tRdPW9.cjs"),R=require("./x-rV-nu490.cjs"),w=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function y(s){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return r.default=s,Object.freeze(r)}const f=y(v),M="_infoBanner_1firo_1",P="_success_1firo_11",h="_info_1firo_1",p="_important_1firo_21",D="_warning_1firo_26",F="_content_1firo_35",I="_heading_1firo_41",L="_text_1firo_46",k="_icon_1firo_52",E="_dismissable_1firo_57",i={infoBanner:M,success:P,info:h,important:p,warning:D,content:F,heading:I,text:L,icon:k,dismissable:E},T={close:"Close"},X={close:"Stäng"},A={en:T,sv:X},G=({title:s,message:r,type:t,children:o,isDismissable:m=!1,defaultOpen:x=!0,isOpen:a,onOpenChange:n,...l})=>{const u=f.useRef(!0),c=typeof a<"u",[j,_]=f.useState(c?a:x),b=q.iconMap[t],g=w.useLocalizedStringFormatter(A),B=()=>{n==null||n(!1),c||_(!1)};return f.useEffect(()=>{if(u.current){u.current=!1;return}_(N=>{const d=c&&a||!c&&!N;return d&&(n==null||n(!0)),d})},[a,c,n]),j?e.jsxs("div",{...l,className:S.clsx(i.infoBanner,i[t],l.className),children:[e.jsx(b,{size:20,"aria-hidden":!0,className:i.icon}),e.jsxs("div",{className:i.content,children:[s&&e.jsx("strong",{className:i.heading,children:s}),e.jsxs("div",{className:i.text,children:[r,o]})]}),m&&e.jsx("div",{className:i.dismissable,children:e.jsx(z.Button,{variant:"icon","aria-label":g.format("close"),onPress:B,children:e.jsx(R.X,{size:20})})})]}):null};exports.InfoBanner=G;
@@ -0,0 +1,83 @@
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import { i as w } from "./icon-map-uS87FT_Q.js";
3
+ import * as c from "react";
4
+ import { c as z } from "./clsx-OuTLNxxd.js";
5
+ import { B as R } from "./Button-CUMHt7MG.js";
6
+ import { X as S } from "./x-C2xUHAEl.js";
7
+ import { u as h } from "./useLocalizedStringFormatter-N0AyjzbM.js";
8
+ import './assets/InfoBanner.css';const j = "_infoBanner_1firo_1", I = "_success_1firo_11", y = "_info_1firo_1", E = "_important_1firo_21", F = "_warning_1firo_26", L = "_content_1firo_35", M = "_heading_1firo_41", P = "_text_1firo_46", X = "_icon_1firo_52", k = "_dismissable_1firo_57", i = {
9
+ infoBanner: j,
10
+ success: I,
11
+ info: y,
12
+ important: E,
13
+ warning: F,
14
+ content: L,
15
+ heading: M,
16
+ text: P,
17
+ icon: X,
18
+ dismissable: k
19
+ }, q = { close: "Close" }, A = { close: "Stäng" }, D = {
20
+ en: q,
21
+ sv: A
22
+ }, U = ({
23
+ title: e,
24
+ message: d,
25
+ type: a,
26
+ children: u,
27
+ isDismissable: x = !1,
28
+ defaultOpen: B = !0,
29
+ isOpen: r,
30
+ onOpenChange: s,
31
+ ...f
32
+ }) => {
33
+ const m = c.useRef(!0), t = typeof r < "u", [N, l] = c.useState(
34
+ t ? r : B
35
+ ), v = w[a], b = h(D), g = () => {
36
+ s == null || s(!1), t || l(!1);
37
+ };
38
+ return c.useEffect(() => {
39
+ if (m.current) {
40
+ m.current = !1;
41
+ return;
42
+ }
43
+ l((p) => {
44
+ const _ = t && r || !t && !p;
45
+ return _ && (s == null || s(!0)), _;
46
+ });
47
+ }, [r, t, s]), N ? /* @__PURE__ */ n(
48
+ "div",
49
+ {
50
+ ...f,
51
+ className: z(i.infoBanner, i[a], f.className),
52
+ children: [
53
+ /* @__PURE__ */ o(
54
+ v,
55
+ {
56
+ size: 20,
57
+ "aria-hidden": !0,
58
+ className: i.icon
59
+ }
60
+ ),
61
+ /* @__PURE__ */ n("div", { className: i.content, children: [
62
+ e && /* @__PURE__ */ o("strong", { className: i.heading, children: e }),
63
+ /* @__PURE__ */ n("div", { className: i.text, children: [
64
+ d,
65
+ u
66
+ ] })
67
+ ] }),
68
+ x && /* @__PURE__ */ o("div", { className: i.dismissable, children: /* @__PURE__ */ o(
69
+ R,
70
+ {
71
+ variant: "icon",
72
+ "aria-label": b.format("close"),
73
+ onPress: g,
74
+ children: /* @__PURE__ */ o(S, { size: 20 })
75
+ }
76
+ ) })
77
+ ]
78
+ }
79
+ ) : null;
80
+ };
81
+ export {
82
+ U as I
83
+ };
@@ -4,7 +4,7 @@ import l from "react";
4
4
  import { c as b } from "./clsx-OuTLNxxd.js";
5
5
  import { d } from "./Button-DD5_S-tD.js";
6
6
  import { P as v } from "./Popover-CyEVqpJ6.js";
7
- import { B as u } from "./Button-DYcmg49Z.js";
7
+ import { B as u } from "./Button-CUMHt7MG.js";
8
8
  import { $ as P } from "./Dialog-B8swxl24.js";
9
9
  import { I as g } from "./info-CPK1vbOJ.js";
10
10
  import { u as _ } from "./useLocalizedStringFormatter-N0AyjzbM.js";
@@ -1 +1 @@
1
- "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),b=require("./clsx-C11secjj.cjs"),p=require("./Button-CMIbSc4-.cjs"),f=require("./Popover-Bi5yJEoE.cjs"),d=require("./Button-DrL5Jv-s.cjs"),v=require("./Dialog-DR6nEqMT.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_vjive_1",_={labelBase:j},I="_labelPopover_1iatl_1",q="_labelPopoverTrigger_1iatl_7",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:b.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
1
+ "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),b=require("./clsx-C11secjj.cjs"),p=require("./Button-CMIbSc4-.cjs"),f=require("./Popover-Bi5yJEoE.cjs"),d=require("./Button-D_tRdPW9.cjs"),v=require("./Dialog-DR6nEqMT.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_vjive_1",_={labelBase:j},I="_labelPopover_1iatl_1",q="_labelPopoverTrigger_1iatl_7",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:b.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(p.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;