@midas-ds/components 12.1.0 → 12.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/{AccordionItem-SOfjXh3V.cjs → AccordionItem-CV9Hrare.cjs} +1 -1
  2. package/{AccordionItem-C9dBt-tQ.js → AccordionItem-Dd9VLdsb.js} +1 -1
  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 +17 -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-CrA8MS3v.js → InfoBanner-CgmPdsH8.js} +1 -1
  37. package/{InfoBanner-CqjnTYaa.cjs → InfoBanner-Y-f3hKVR.cjs} +1 -1
  38. package/{Label-BG7G0iyG.js → Label-C5TNJ0Ku.js} +1 -1
  39. package/{Label-C00qz3kQ.cjs → Label-Dp85Vue3.cjs} +1 -1
  40. package/{Layout-Bta_Cpq_.cjs → Layout-Bxd0-ao3.cjs} +2 -2
  41. package/{Layout-CG-Qxr_1.js → Layout-CcXu63hP.js} +133 -133
  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-D4WwgQY3.cjs → TabList-BMyKYLlY.cjs} +1 -1
  65. package/{TabList-D9tl2s85.js → TabList-C0mZgIzV.js} +45 -45
  66. package/{Table-C6k3PiiC.cjs → Table-BHY1uCZ0.cjs} +1 -1
  67. package/{Table-CkN3y69S.js → Table-DzbfeVO7.js} +1 -1
  68. package/{Tag-BUJ20HHw.js → Tag-BYUPXbhG.js} +1 -1
  69. package/{Tag-7dHEMQum.cjs → Tag-BweDKw1v.cjs} +1 -1
  70. package/{TextArea-h5_oBQH1.js → TextArea-CDoLq124.js} +3 -3
  71. package/{TextArea-BCikUXaD.cjs → TextArea-DJCtwrqV.cjs} +1 -1
  72. package/TextField.module-CH39P8ZE.js +13 -0
  73. package/TextField.module-gJ-ruFra.cjs +1 -0
  74. package/{Toast-DclaxvZM.cjs → Toast-BN3vRCsH.cjs} +1 -1
  75. package/{Toast-BBkWczCk.js → Toast-DZnQTLDr.js} +172 -174
  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/Button.css +1 -1
  81. package/assets/ButtonGroup.css +1 -1
  82. package/assets/Card.css +1 -1
  83. package/assets/Checkbox.css +1 -1
  84. package/assets/ComboBox.css +1 -1
  85. package/assets/DateInputDivider.css +1 -1
  86. package/assets/DateRangePicker.css +1 -1
  87. package/assets/Dialog.css +1 -1
  88. package/assets/GridItem.css +1 -1
  89. package/assets/Layout.css +1 -1
  90. package/assets/Link.css +1 -1
  91. package/assets/LinkButton.css +1 -1
  92. package/assets/ListBoxSection.css +1 -1
  93. package/assets/Radio.css +1 -1
  94. package/assets/RangeCalendar.css +1 -1
  95. package/assets/SearchField.css +1 -1
  96. package/assets/Select.css +1 -1
  97. package/assets/Skeleton.css +1 -1
  98. package/assets/Spinner.css +1 -1
  99. package/assets/TabList.css +1 -1
  100. package/assets/TextField.css +1 -1
  101. package/assets/Toast.css +1 -1
  102. package/assets/variables.css +1 -1
  103. package/breadcrumbs/index.cjs +1 -1
  104. package/breadcrumbs/index.js +1 -1
  105. package/button/index.cjs +1 -1
  106. package/button/index.js +2 -2
  107. package/calendar/index.cjs +1 -1
  108. package/calendar/index.js +1 -1
  109. package/card/index.cjs +1 -1
  110. package/card/index.js +1 -1
  111. package/checkbox/index.cjs +1 -1
  112. package/checkbox/index.js +2 -2
  113. package/color-scheme-switch/index.cjs +1 -1
  114. package/color-scheme-switch/index.js +1 -1
  115. package/combobox/index.cjs +1 -1
  116. package/combobox/index.js +1 -1
  117. package/date-field/index.cjs +1 -1
  118. package/date-field/index.js +2 -2
  119. package/date-picker/index.cjs +1 -1
  120. package/date-picker/index.js +1 -1
  121. package/dropdown/index.cjs +1 -1
  122. package/dropdown/index.js +1 -1
  123. package/grid/index.cjs +1 -1
  124. package/grid/index.js +2 -2
  125. package/index.cjs +1 -1
  126. package/index.js +36 -36
  127. package/info-banner/index.cjs +1 -1
  128. package/info-banner/index.js +1 -1
  129. package/label/index.cjs +1 -1
  130. package/label/index.js +1 -1
  131. package/layout/index.cjs +1 -1
  132. package/layout/index.js +1 -1
  133. package/link/index.cjs +1 -1
  134. package/link/index.js +1 -1
  135. package/link-button/index.cjs +1 -1
  136. package/link-button/index.js +1 -1
  137. package/list-box/index.cjs +1 -1
  138. package/list-box/index.js +2 -2
  139. package/modal/index.cjs +1 -1
  140. package/modal/index.js +1 -1
  141. package/package.json +1 -1
  142. package/progress-bar/index.cjs +1 -1
  143. package/progress-bar/index.js +1 -1
  144. package/radio/index.cjs +1 -1
  145. package/radio/index.js +1 -1
  146. package/search-field/index.cjs +1 -1
  147. package/search-field/index.js +1 -1
  148. package/select/index.cjs +1 -1
  149. package/select/index.js +1 -1
  150. package/skeleton/index.cjs +1 -1
  151. package/skeleton/index.js +1 -1
  152. package/spinner/index.cjs +1 -1
  153. package/spinner/index.js +1 -1
  154. package/table/index.cjs +1 -1
  155. package/table/index.js +1 -1
  156. package/tabs/index.cjs +1 -1
  157. package/tabs/index.js +1 -1
  158. package/tag/index.cjs +1 -1
  159. package/tag/index.js +1 -1
  160. package/textfield/index.cjs +1 -1
  161. package/textfield/index.js +1 -1
  162. package/theme/generated-object.d.ts +0 -3
  163. package/theme/generated-tokens.d.ts +0 -3
  164. package/theme/index.cjs +1 -1
  165. package/theme/index.js +249 -297
  166. package/toast/index.cjs +1 -1
  167. package/toast/index.js +1 -1
  168. package/toggle-button/index.cjs +1 -1
  169. package/toggle-button/index.js +1 -1
  170. package/Button.module-BNLcvARn.cjs +0 -1
  171. package/Button.module-Bax2YU6N.js +0 -14
  172. package/Card-BDDyGAMA.js +0 -131
  173. package/Card-mj5lCIR4.cjs +0 -1
  174. package/GridItem-CIVF1fRW.cjs +0 -1
  175. package/GridItem-D3FZyyO-.js +0 -243
  176. package/Link-Bx6avHVl.cjs +0 -6
  177. package/LinkButton-BvXu6vAH.cjs +0 -6
  178. package/Select-BnbDXwgD.cjs +0 -1
  179. package/Skeleton-BpYj25p8.js +0 -37
  180. package/Skeleton-DMOxEwnd.cjs +0 -1
  181. package/Spinner-D1UBuLy4.cjs +0 -6
  182. package/TextField.module-C9Zm9unF.js +0 -13
  183. package/TextField.module-GTQtNO0r.cjs +0 -1
@@ -1,7 +1,7 @@
1
- import { jsx as p, jsxs as _, Fragment as Te } from "react/jsx-runtime";
2
- import { B as Le } from "./Button-DYcmg49Z.js";
3
- import A, { useState as g, useCallback as w, useEffect as T, useRef as v, useMemo as _e } from "react";
4
- import { createPortal as we, flushSync as Be } from "react-dom";
1
+ import { jsx as p, jsxs as L, Fragment as Te } from "react/jsx-runtime";
2
+ import { B as we } from "./Button-CUMHt7MG.js";
3
+ import A, { useState as g, useCallback as _, useEffect as T, useRef as v, useMemo as Le } from "react";
4
+ import { createPortal as _e, flushSync as Be } from "react-dom";
5
5
  import { c as I } from "./clsx-OuTLNxxd.js";
6
6
  import { i as ye } from "./icon-map-uS87FT_Q.js";
7
7
  import { s as N } from "./index-BLPblar-.js";
@@ -19,12 +19,12 @@ function Se(t) {
19
19
  function P() {
20
20
  if (typeof document > "u") return null;
21
21
  let t = document[y];
22
- return t && t.version >= S ? t : (document[y] = new ze(), document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")), document[y]);
22
+ return t && t.version >= S ? t : (document[y] = new Me(), document.dispatchEvent(new CustomEvent("react-aria-landmark-manager-change")), document[y]);
23
23
  }
24
24
  function Re() {
25
25
  return N.useSyncExternalStore(Se, P, P);
26
26
  }
27
- class ze {
27
+ class Me {
28
28
  setupIfNeeded() {
29
29
  this.isListening || (document.addEventListener("keydown", this.f6Handler, {
30
30
  capture: !0
@@ -44,8 +44,8 @@ class ze {
44
44
  }), this.isListening = !1);
45
45
  }
46
46
  focusLandmark(e, n) {
47
- var u, i;
48
- (i = this.landmarks.find((o) => o.ref.current === e)) === null || i === void 0 || (u = i.focus) === null || u === void 0 || u.call(i, n);
47
+ var i, o;
48
+ (o = this.landmarks.find((u) => u.ref.current === e)) === null || o === void 0 || (i = o.focus) === null || i === void 0 || i.call(o, n);
49
49
  }
50
50
  /**
51
51
  * Return set of landmarks with a specific role.
@@ -60,22 +60,22 @@ class ze {
60
60
  return this.landmarks.find((n) => n.role === e);
61
61
  }
62
62
  addLandmark(e) {
63
- if (this.setupIfNeeded(), this.landmarks.find((i) => i.ref === e.ref) || !e.ref.current) return;
64
- if (this.landmarks.filter((i) => i.role === "main").length > 1 && process.env.NODE_ENV !== "production" && console.error('Page can contain no more than one landmark with the role "main".'), this.landmarks.length === 0) {
63
+ if (this.setupIfNeeded(), this.landmarks.find((o) => o.ref === e.ref) || !e.ref.current) return;
64
+ if (this.landmarks.filter((o) => o.role === "main").length > 1 && process.env.NODE_ENV !== "production" && console.error('Page can contain no more than one landmark with the role "main".'), this.landmarks.length === 0) {
65
65
  this.landmarks = [
66
66
  e
67
67
  ], this.checkLabels(e.role);
68
68
  return;
69
69
  }
70
- let n = 0, u = this.landmarks.length - 1;
71
- for (; n <= u; ) {
72
- let i = Math.floor((n + u) / 2), o = e.ref.current.compareDocumentPosition(this.landmarks[i].ref.current);
73
- !!(o & Node.DOCUMENT_POSITION_PRECEDING || o & Node.DOCUMENT_POSITION_CONTAINS) ? n = i + 1 : u = i - 1;
70
+ let n = 0, i = this.landmarks.length - 1;
71
+ for (; n <= i; ) {
72
+ let o = Math.floor((n + i) / 2), u = e.ref.current.compareDocumentPosition(this.landmarks[o].ref.current);
73
+ !!(u & Node.DOCUMENT_POSITION_PRECEDING || u & Node.DOCUMENT_POSITION_CONTAINS) ? n = o + 1 : i = o - 1;
74
74
  }
75
75
  this.landmarks.splice(n, 0, e), this.checkLabels(e.role);
76
76
  }
77
77
  updateLandmark(e) {
78
- let n = this.landmarks.findIndex((u) => u.ref === e.ref);
78
+ let n = this.landmarks.findIndex((i) => i.ref === e.ref);
79
79
  n >= 0 && (this.landmarks[n] = {
80
80
  ...this.landmarks[n],
81
81
  ...e
@@ -93,15 +93,15 @@ class ze {
93
93
  checkLabels(e) {
94
94
  let n = this.getLandmarksByRole(e);
95
95
  if (n.size > 1) {
96
- let u = [
96
+ let i = [
97
97
  ...n
98
- ].filter((i) => !i.label);
99
- if (u.length > 0 && process.env.NODE_ENV !== "production") console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `, u.map((i) => i.ref.current));
98
+ ].filter((o) => !o.label);
99
+ if (i.length > 0 && process.env.NODE_ENV !== "production") console.warn(`Page contains more than one landmark with the '${e}' role. If two or more landmarks on a page share the same role, all must be labeled with an aria-label or aria-labelledby attribute: `, i.map((o) => o.ref.current));
100
100
  else if (process.env.NODE_ENV !== "production") {
101
- let i = [
101
+ let o = [
102
102
  ...n
103
103
  ].map((r) => r.label);
104
- i.filter((r, a) => i.indexOf(r) !== a).forEach((r) => {
104
+ o.filter((r, a) => o.indexOf(r) !== a).forEach((r) => {
105
105
  console.warn(`Page contains more than one landmark with the '${e}' role and '${r}' label. If two or more landmarks on a page share the same role, they must have unique labels: `, [
106
106
  ...n
107
107
  ].filter((a) => a.label === r).map((a) => a.ref.current));
@@ -114,12 +114,12 @@ class ze {
114
114
  * Returns undefined if no parent is a landmark.
115
115
  */
116
116
  closestLandmark(e) {
117
- let n = new Map(this.landmarks.map((i) => [
118
- i.ref.current,
119
- i
120
- ])), u = e;
121
- for (; u && !n.has(u) && u !== document.body && u.parentElement; ) u = u.parentElement;
122
- return n.get(u);
117
+ let n = new Map(this.landmarks.map((o) => [
118
+ o.ref.current,
119
+ o
120
+ ])), i = e;
121
+ for (; i && !n.has(i) && i !== document.body && i.parentElement; ) i = i.parentElement;
122
+ return n.get(i);
123
123
  }
124
124
  /**
125
125
  * Gets the next landmark, in DOM focus order, or previous if backwards is specified.
@@ -128,11 +128,11 @@ class ze {
128
128
  * Returns undefined if there are no landmarks.
129
129
  */
130
130
  getNextLandmark(e, { backward: n }) {
131
- var u;
132
- let i = this.closestLandmark(e), o = n ? this.landmarks.length - 1 : 0;
133
- i && (o = this.landmarks.indexOf(i) + (n ? -1 : 1));
131
+ var i;
132
+ let o = this.closestLandmark(e), u = n ? this.landmarks.length - 1 : 0;
133
+ o && (u = this.landmarks.indexOf(o) + (n ? -1 : 1));
134
134
  let r = () => {
135
- if (o < 0) {
135
+ if (u < 0) {
136
136
  if (!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
137
137
  detail: {
138
138
  direction: "backward"
@@ -140,8 +140,8 @@ class ze {
140
140
  bubbles: !0,
141
141
  cancelable: !0
142
142
  }))) return !0;
143
- o = this.landmarks.length - 1;
144
- } else if (o >= this.landmarks.length) {
143
+ u = this.landmarks.length - 1;
144
+ } else if (u >= this.landmarks.length) {
145
145
  if (!e.dispatchEvent(new CustomEvent("react-aria-landmark-navigation", {
146
146
  detail: {
147
147
  direction: "forward"
@@ -149,17 +149,17 @@ class ze {
149
149
  bubbles: !0,
150
150
  cancelable: !0
151
151
  }))) return !0;
152
- o = 0;
152
+ u = 0;
153
153
  }
154
- return o < 0 || o >= this.landmarks.length;
154
+ return u < 0 || u >= this.landmarks.length;
155
155
  };
156
156
  if (r()) return;
157
- let a = o;
158
- for (; !((u = this.landmarks[o].ref.current) === null || u === void 0) && u.closest("[aria-hidden=true]"); ) {
159
- if (o += n ? -1 : 1, r()) return;
160
- if (o === a) break;
157
+ let a = u;
158
+ for (; !((i = this.landmarks[u].ref.current) === null || i === void 0) && i.closest("[aria-hidden=true]"); ) {
159
+ if (u += n ? -1 : 1, r()) return;
160
+ if (u === a) break;
161
161
  }
162
- return this.landmarks[o];
162
+ return this.landmarks[u];
163
163
  }
164
164
  /**
165
165
  * Look at next landmark. If an element was previously focused inside, restore focus there.
@@ -174,16 +174,16 @@ class ze {
174
174
  return e && e.ref.current && document.contains(e.ref.current) ? (this.focusLandmark(e.ref.current, "forward"), !0) : !1;
175
175
  }
176
176
  navigate(e, n) {
177
- let u = this.getNextLandmark(e, {
177
+ let i = this.getNextLandmark(e, {
178
178
  backward: n
179
179
  });
180
- if (!u) return !1;
181
- if (u.lastFocused) {
182
- let i = u.lastFocused;
183
- if (document.body.contains(i))
184
- return i.focus(), !0;
180
+ if (!i) return !1;
181
+ if (i.lastFocused) {
182
+ let o = i.lastFocused;
183
+ if (document.body.contains(o))
184
+ return o.focus(), !0;
185
185
  }
186
- return u.ref.current && document.contains(u.ref.current) ? (this.focusLandmark(u.ref.current, n ? "backward" : "forward"), !0) : !1;
186
+ return i.ref.current && document.contains(i.ref.current) ? (this.focusLandmark(i.ref.current, n ? "backward" : "forward"), !0) : !1;
187
187
  }
188
188
  /**
189
189
  * Sets lastFocused for a landmark, if focus is moved within that landmark.
@@ -195,36 +195,36 @@ class ze {
195
195
  ref: n.ref,
196
196
  lastFocused: e.target
197
197
  });
198
- let u = e.relatedTarget;
199
- if (u) {
200
- let i = this.closestLandmark(u);
201
- i && i.ref.current === u && i.blur();
198
+ let i = e.relatedTarget;
199
+ if (i) {
200
+ let o = this.closestLandmark(i);
201
+ o && o.ref.current === i && o.blur();
202
202
  }
203
203
  }
204
204
  /**
205
205
  * Track if the focus is lost to the body. If it is, do cleanup on the landmark that last had focus.
206
206
  */
207
207
  focusoutHandler(e) {
208
- let n = e.target, u = e.relatedTarget;
209
- if (!u || u === document) {
210
- let i = this.closestLandmark(n);
211
- i && i.ref.current === n && i.blur();
208
+ let n = e.target, i = e.relatedTarget;
209
+ if (!i || i === document) {
210
+ let o = this.closestLandmark(n);
211
+ o && o.ref.current === n && o.blur();
212
212
  }
213
213
  }
214
214
  createLandmarkController() {
215
215
  let e = this;
216
216
  return e.refCount++, e.setupIfNeeded(), {
217
- navigate(n, u) {
218
- let i = (u == null ? void 0 : u.from) || document.activeElement;
219
- return e.navigate(i, n === "backward");
217
+ navigate(n, i) {
218
+ let o = (i == null ? void 0 : i.from) || document.activeElement;
219
+ return e.navigate(o, n === "backward");
220
220
  },
221
221
  focusNext(n) {
222
- let u = (n == null ? void 0 : n.from) || document.activeElement;
223
- return e.navigate(u, !1);
222
+ let i = (n == null ? void 0 : n.from) || document.activeElement;
223
+ return e.navigate(i, !1);
224
224
  },
225
225
  focusPrevious(n) {
226
- let u = (n == null ? void 0 : n.from) || document.activeElement;
227
- return e.navigate(u, !0);
226
+ let i = (n == null ? void 0 : n.from) || document.activeElement;
227
+ return e.navigate(i, !0);
228
228
  },
229
229
  focusMain() {
230
230
  return e.focusMain();
@@ -241,13 +241,13 @@ class ze {
241
241
  this.landmarks = [], this.isListening = !1, this.refCount = 0, this.version = S, this.f6Handler = this.f6Handler.bind(this), this.focusinHandler = this.focusinHandler.bind(this), this.focusoutHandler = this.focusoutHandler.bind(this);
242
242
  }
243
243
  }
244
- function Me(t, e) {
245
- const { role: n, "aria-label": u, "aria-labelledby": i, focus: o } = t;
246
- let r = Re(), a = u || i, [b, d] = g(!1), f = w(() => {
244
+ function Oe(t, e) {
245
+ const { role: n, "aria-label": i, "aria-labelledby": o, focus: u } = t;
246
+ let r = Re(), a = i || o, [b, d] = g(!1), f = _(() => {
247
247
  d(!0);
248
248
  }, [
249
249
  d
250
- ]), $ = w(() => {
250
+ ]), $ = _(() => {
251
251
  d(!1);
252
252
  }, [
253
253
  d
@@ -257,7 +257,7 @@ function Me(t, e) {
257
257
  ref: e,
258
258
  label: a,
259
259
  role: n,
260
- focus: o || f,
260
+ focus: u || f,
261
261
  blur: $
262
262
  });
263
263
  }, [
@@ -265,7 +265,7 @@ function Me(t, e) {
265
265
  a,
266
266
  e,
267
267
  n,
268
- o,
268
+ u,
269
269
  f,
270
270
  $
271
271
  ]), T(() => {
@@ -278,8 +278,8 @@ function Me(t, e) {
278
278
  landmarkProps: {
279
279
  role: n,
280
280
  tabIndex: b ? -1 : void 0,
281
- "aria-label": u,
282
- "aria-labelledby": i
281
+ "aria-label": i,
282
+ "aria-labelledby": o
283
283
  }
284
284
  };
285
285
  }
@@ -291,48 +291,48 @@ R = {
291
291
  other: () => `${e.number(t.count)} إشعارات`
292
292
  })}.`
293
293
  };
294
- var z = {};
295
- z = {
294
+ var M = {};
295
+ M = {
296
296
  close: "Затвори",
297
297
  notifications: (t, e) => `${e.plural(t.count, {
298
298
  one: () => `${e.number(t.count)} известие`,
299
299
  other: () => `${e.number(t.count)} известия`
300
300
  })}.`
301
301
  };
302
- var M = {};
303
- M = {
302
+ var O = {};
303
+ O = {
304
304
  close: "Zavřít",
305
305
  notifications: (t, e) => `${e.plural(t.count, {
306
306
  one: () => `${e.number(t.count)} oznámení`,
307
307
  other: () => `${e.number(t.count)} oznámení`
308
308
  })}.`
309
309
  };
310
- var O = {};
311
- O = {
310
+ var H = {};
311
+ H = {
312
312
  close: "Luk",
313
313
  notifications: (t, e) => `${e.plural(t.count, {
314
314
  one: () => `${e.number(t.count)} besked`,
315
315
  other: () => `${e.number(t.count)} beskeder`
316
316
  })}.`
317
317
  };
318
- var H = {};
319
- H = {
318
+ var V = {};
319
+ V = {
320
320
  close: "Schließen",
321
321
  notifications: (t, e) => `${e.plural(t.count, {
322
322
  one: () => `${e.number(t.count)} Benachrichtigung`,
323
323
  other: () => `${e.number(t.count)} Benachrichtigungen`
324
324
  })}.`
325
325
  };
326
- var V = {};
327
- V = {
326
+ var U = {};
327
+ U = {
328
328
  close: "Κλείσιμο",
329
329
  notifications: (t, e) => `${e.plural(t.count, {
330
330
  one: () => `${e.number(t.count)} ειδοποίηση`,
331
331
  other: () => `${e.number(t.count)} ειδοποιήσεις`
332
332
  })}.`
333
333
  };
334
- var U = {};
335
- U = {
334
+ var z = {};
335
+ z = {
336
336
  close: "Close",
337
337
  notifications: (t, e) => `${e.plural(t.count, {
338
338
  one: () => `${e.number(t.count)} notification`,
@@ -443,16 +443,16 @@ ne = {
443
443
  other: () => `${e.number(t.count)} varsler`
444
444
  })}.`
445
445
  };
446
- var ue = {};
447
- ue = {
446
+ var ie = {};
447
+ ie = {
448
448
  close: "Sluiten",
449
449
  notifications: (t, e) => `${e.plural(t.count, {
450
450
  one: () => `${e.number(t.count)} melding`,
451
451
  other: () => `${e.number(t.count)} meldingen`
452
452
  })}.`
453
453
  };
454
- var ie = {};
455
- ie = {
454
+ var oe = {};
455
+ oe = {
456
456
  close: "Zamknij",
457
457
  notifications: (t, e) => `${e.plural(t.count, {
458
458
  one: () => `${e.number(t.count)} powiadomienie`,
@@ -461,8 +461,8 @@ ie = {
461
461
  other: () => `${e.number(t.count)} powiadomienia`
462
462
  })}.`
463
463
  };
464
- var oe = {};
465
- oe = {
464
+ var ue = {};
465
+ ue = {
466
466
  close: "Fechar",
467
467
  notifications: (t, e) => `${e.plural(t.count, {
468
468
  one: () => `${e.number(t.count)} notificação`,
@@ -563,12 +563,12 @@ he = {
563
563
  var C = {};
564
564
  C = {
565
565
  "ar-AE": R,
566
- "bg-BG": z,
567
- "cs-CZ": M,
568
- "da-DK": O,
569
- "de-DE": H,
570
- "el-GR": V,
571
- "en-US": U,
566
+ "bg-BG": M,
567
+ "cs-CZ": O,
568
+ "da-DK": H,
569
+ "de-DE": V,
570
+ "el-GR": U,
571
+ "en-US": z,
572
572
  "es-ES": j,
573
573
  "et-EE": W,
574
574
  "fi-FI": K,
@@ -582,9 +582,9 @@ C = {
582
582
  "lt-LT": ee,
583
583
  "lv-LV": te,
584
584
  "nb-NO": ne,
585
- "nl-NL": ue,
586
- "pl-PL": ie,
587
- "pt-BR": oe,
585
+ "nl-NL": ie,
586
+ "pl-PL": oe,
587
+ "pt-BR": ue,
588
588
  "pt-PT": re,
589
589
  "ro-RO": ae,
590
590
  "ru-RU": se,
@@ -597,21 +597,21 @@ C = {
597
597
  "zh-CN": $e,
598
598
  "zh-TW": he
599
599
  };
600
- function Oe(t) {
600
+ function He(t) {
601
601
  return t && t.__esModule ? t.default : t;
602
602
  }
603
- function He(t, e, n) {
604
- let { key: u, timer: i, timeout: o } = t.toast;
603
+ function Ve(t, e, n) {
604
+ let { key: i, timer: o, timeout: u } = t.toast;
605
605
  T(() => {
606
- if (!(i == null || o == null))
607
- return i.reset(o), () => {
608
- i.pause();
606
+ if (!(o == null || u == null))
607
+ return o.reset(u), () => {
608
+ o.pause();
609
609
  };
610
610
  }, [
611
- i,
612
- o
611
+ o,
612
+ u
613
613
  ]);
614
- let r = Ie(), a = Ce(), b = D(Oe(C), "@react-aria/toast"), [d, f] = g(!1);
614
+ let r = Ie(), a = Ce(), b = D(He(C), "@react-aria/toast"), [d, f] = g(!1);
615
615
  return T(() => {
616
616
  f(!0);
617
617
  }, []), {
@@ -638,27 +638,27 @@ function He(t, e, n) {
638
638
  },
639
639
  closeButtonProps: {
640
640
  "aria-label": b.format("close"),
641
- onPress: () => e.close(u)
641
+ onPress: () => e.close(i)
642
642
  }
643
643
  };
644
644
  }
645
- function Ve(t) {
645
+ function Ue(t) {
646
646
  return t && t.__esModule ? t.default : t;
647
647
  }
648
- function Ue(t, e, n) {
649
- let u = D(Ve(C), "@react-aria/toast"), { landmarkProps: i } = Me({
648
+ function ze(t, e, n) {
649
+ let i = D(Ue(C), "@react-aria/toast"), { landmarkProps: o } = Oe({
650
650
  role: "region",
651
- "aria-label": t["aria-label"] || u.format("notifications", {
651
+ "aria-label": t["aria-label"] || i.format("notifications", {
652
652
  count: e.visibleToasts.length
653
653
  })
654
- }, n), o = v(!1), r = v(!1), a = Pe(() => {
655
- o.current || r.current ? e.pauseAll() : e.resumeAll();
654
+ }, n), u = v(!1), r = v(!1), a = Pe(() => {
655
+ u.current || r.current ? e.pauseAll() : e.resumeAll();
656
656
  }), { hoverProps: b } = ge({
657
657
  onHoverStart: () => {
658
- o.current = !0, a();
658
+ u.current = !0, a();
659
659
  },
660
660
  onHoverEnd: () => {
661
- o.current = !1, a();
661
+ u.current = !1, a();
662
662
  }
663
663
  }), d = v([]), f = v(e.visibleToasts), $ = v(null);
664
664
  F(() => {
@@ -676,13 +676,13 @@ function Ue(t, e, n) {
676
676
  ...c,
677
677
  i: m,
678
678
  isRemoved: !e.visibleToasts.some((h) => c.key === h.key)
679
- })), L = l.findIndex((c) => c.i === $.current && c.isRemoved);
680
- if (L > -1) {
679
+ })), w = l.findIndex((c) => c.i === $.current && c.isRemoved);
680
+ if (w > -1) {
681
681
  var k;
682
682
  if (B() === "pointer" && (!((k = s.current) === null || k === void 0) && k.isConnected)) E(s.current);
683
683
  else {
684
684
  let c = 0, m, h;
685
- for (; c <= L; )
685
+ for (; c <= w; )
686
686
  l[c].isRemoved || (h = Math.max(0, c - 1)), c++;
687
687
  for (; c < l.length; ) {
688
688
  if (!l[c].isRemoved) {
@@ -720,7 +720,7 @@ function Ue(t, e, n) {
720
720
  }, [
721
721
  n
722
722
  ]), {
723
- regionProps: Ae(i, b, Ee, {
723
+ regionProps: Ae(o, b, Ee, {
724
724
  tabIndex: -1,
725
725
  // Mark the toast region as a "top layer", so that it:
726
726
  // - is not aria-hidden when opening an overlay
@@ -731,8 +731,8 @@ function Ue(t, e, n) {
731
731
  // listen to focus events separate from focuswithin because that will only fire once
732
732
  // and we need to follow all focus changes
733
733
  onFocus: (l) => {
734
- let L = l.target.closest('[role="alertdialog"]');
735
- $.current = d.current.findIndex((k) => k === L);
734
+ let w = l.target.closest('[role="alertdialog"]');
735
+ $.current = d.current.findIndex((k) => k === w);
736
736
  },
737
737
  onBlur: () => {
738
738
  $.current = -1;
@@ -741,15 +741,15 @@ function Ue(t, e, n) {
741
741
  };
742
742
  }
743
743
  function pe(t) {
744
- let e = w((i) => t.subscribe(i), [
744
+ let e = _((o) => t.subscribe(o), [
745
745
  t
746
- ]), n = w(() => t.visibleToasts, [
746
+ ]), n = _(() => t.visibleToasts, [
747
747
  t
748
748
  ]);
749
749
  return {
750
750
  visibleToasts: N.useSyncExternalStore(e, n, n),
751
- add: (i, o) => t.add(i, o),
752
- close: (i) => t.close(i),
751
+ add: (o, u) => t.add(o, u),
752
+ close: (o) => t.close(o),
753
753
  pauseAll: () => t.pauseAll(),
754
754
  resumeAll: () => t.resumeAll()
755
755
  };
@@ -764,22 +764,22 @@ class ve {
764
764
  }
765
765
  /** Adds a new toast to the queue. */
766
766
  add(e, n = {}) {
767
- let u = "_" + Math.random().toString(36).slice(2), i = {
767
+ let i = "_" + Math.random().toString(36).slice(2), o = {
768
768
  ...n,
769
769
  content: e,
770
- key: u,
771
- timer: n.timeout ? new je(() => this.close(u), n.timeout) : void 0
770
+ key: i,
771
+ timer: n.timeout ? new je(() => this.close(i), n.timeout) : void 0
772
772
  };
773
- return this.queue.unshift(i), this.updateVisibleToasts("add"), u;
773
+ return this.queue.unshift(o), this.updateVisibleToasts("add"), i;
774
774
  }
775
775
  /**
776
776
  * Closes a toast.
777
777
  */
778
778
  close(e) {
779
- let n = this.queue.findIndex((o) => o.key === e);
779
+ let n = this.queue.findIndex((u) => u.key === e);
780
780
  if (n >= 0) {
781
- var u, i;
782
- (u = (i = this.queue[n]).onClose) === null || u === void 0 || u.call(i), this.queue.splice(n, 1);
781
+ var i, o;
782
+ (i = (o = this.queue[n]).onClose) === null || i === void 0 || i.call(o), this.queue.splice(n, 1);
783
783
  }
784
784
  this.updateVisibleToasts("remove");
785
785
  }
@@ -821,21 +821,19 @@ class je {
821
821
  this.startTime = null, this.remaining = n, this.callback = e;
822
822
  }
823
823
  }
824
- const We = '"../theme/breakpoints.css"', Ke = "_toastRegion_1uufz_52", Ze = "_toast_1uufz_52", Ge = "_success_1uufz_95", Je = "_info_1uufz_103", Qe = "_important_1uufz_111", Xe = "_warning_1uufz_119", qe = "_icon_1uufz_127", Ye = "_toastContent_1uufz_137", et = "_toastMessage_1uufz_144", tt = "_slideInTop_1uufz_1", nt = "_slideInEnd_1uufz_1", ut = "_slideOutTop_1uufz_1", it = "_slideOutEnd_1uufz_1", x = {
825
- breakpoints: We,
826
- "--midas-breakpoints-md": "(min-width: 768px)",
827
- toastRegion: Ke,
828
- toast: Ze,
829
- success: Ge,
830
- info: Je,
831
- important: Qe,
832
- warning: Xe,
833
- icon: qe,
834
- toastContent: Ye,
835
- toastMessage: et,
836
- slideInTop: tt,
837
- slideInEnd: nt,
838
- slideOutTop: ut,
824
+ const We = "_toastRegion_xhwdf_49", Ke = "_toast_xhwdf_49", Ze = "_success_xhwdf_92", Ge = "_info_xhwdf_100", Je = "_important_xhwdf_108", Qe = "_warning_xhwdf_116", Xe = "_icon_xhwdf_124", qe = "_toastContent_xhwdf_134", Ye = "_toastMessage_xhwdf_141", et = "_slideInTop_xhwdf_1", tt = "_slideInEnd_xhwdf_1", nt = "_slideOutTop_xhwdf_1", it = "_slideOutEnd_xhwdf_1", x = {
825
+ toastRegion: We,
826
+ toast: Ke,
827
+ success: Ze,
828
+ info: Ge,
829
+ important: Je,
830
+ warning: Qe,
831
+ icon: Xe,
832
+ toastContent: qe,
833
+ toastMessage: Ye,
834
+ slideInTop: et,
835
+ slideInEnd: tt,
836
+ slideOutTop: nt,
839
837
  slideOutEnd: it
840
838
  }, xe = {
841
839
  wrapUpdate(t) {
@@ -846,15 +844,15 @@ const We = '"../theme/breakpoints.css"', Ke = "_toastRegion_1uufz_52", Ze = "_to
846
844
  maxVisibleToasts: 5
847
845
  };
848
846
  function ot(t = {}) {
849
- const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, u = _e(
847
+ const { maxVisibleToasts: e = 1, wrapUpdate: n } = t, i = Le(
850
848
  () => new ve({ maxVisibleToasts: e, wrapUpdate: n }),
851
849
  [e, n]
852
850
  );
853
- return pe(u);
851
+ return pe(i);
854
852
  }
855
- const rt = new ve(xe), Tt = (t) => {
856
- const e = pe(rt);
857
- return e.visibleToasts.length > 0 ? we(
853
+ const ut = new ve(xe), Et = (t) => {
854
+ const e = pe(ut);
855
+ return e.visibleToasts.length > 0 ? _e(
858
856
  /* @__PURE__ */ p(
859
857
  ke,
860
858
  {
@@ -864,9 +862,9 @@ const rt = new ve(xe), Tt = (t) => {
864
862
  ),
865
863
  document.body
866
864
  ) : null;
867
- }, Lt = ({ children: t, ...e }) => {
865
+ }, Tt = ({ children: t, ...e }) => {
868
866
  const n = ot(xe);
869
- return /* @__PURE__ */ _(Te, { children: [
867
+ return /* @__PURE__ */ L(Te, { children: [
870
868
  typeof t == "function" ? t(n) : t,
871
869
  n.visibleToasts.length > 0 && /* @__PURE__ */ p(
872
870
  ke,
@@ -882,38 +880,38 @@ function ke({
882
880
  className: e,
883
881
  ...n
884
882
  }) {
885
- const u = A.useRef(null), { regionProps: i } = Ue(n, t, u);
883
+ const i = A.useRef(null), { regionProps: o } = ze(n, t, i);
886
884
  return /* @__PURE__ */ p(
887
885
  "div",
888
886
  {
889
- ...i,
890
- ref: u,
887
+ ...o,
888
+ ref: i,
891
889
  className: I(x.toastRegion, e),
892
- children: t.visibleToasts.map((o) => /* @__PURE__ */ p(
893
- at,
890
+ children: t.visibleToasts.map((u) => /* @__PURE__ */ p(
891
+ rt,
894
892
  {
895
- toast: o,
893
+ toast: u,
896
894
  state: t
897
895
  },
898
- o.key
896
+ u.key
899
897
  ))
900
898
  }
901
899
  );
902
900
  }
903
- function at({
901
+ function rt({
904
902
  state: t,
905
903
  className: e,
906
904
  ...n
907
905
  }) {
908
- const u = A.useRef(null), { toastProps: i, contentProps: o, titleProps: r, closeButtonProps: a } = He(
906
+ const i = A.useRef(null), { toastProps: o, contentProps: u, titleProps: r, closeButtonProps: a } = Ve(
909
907
  n,
910
908
  t
911
909
  ), b = ye[n.toast.content.type];
912
- return /* @__PURE__ */ _(
910
+ return /* @__PURE__ */ L(
913
911
  "div",
914
912
  {
915
- ...i,
916
- ref: u,
913
+ ...o,
914
+ ref: i,
917
915
  className: I(
918
916
  x.toast,
919
917
  x[n.toast.content.type],
@@ -921,11 +919,11 @@ function at({
921
919
  ),
922
920
  style: { viewTransitionName: n.toast.key },
923
921
  children: [
924
- /* @__PURE__ */ _(
922
+ /* @__PURE__ */ L(
925
923
  "div",
926
924
  {
927
- ...o,
928
- className: I(x.toastContent, o.className),
925
+ ...u,
926
+ className: I(x.toastContent, u.className),
929
927
  children: [
930
928
  /* @__PURE__ */ p(
931
929
  b,
@@ -935,7 +933,7 @@ function at({
935
933
  "aria-hidden": !0
936
934
  }
937
935
  ),
938
- /* @__PURE__ */ _("div", { children: [
936
+ /* @__PURE__ */ L("div", { children: [
939
937
  /* @__PURE__ */ p(
940
938
  "p",
941
939
  {
@@ -950,7 +948,7 @@ function at({
950
948
  }
951
949
  ),
952
950
  /* @__PURE__ */ p(
953
- Le,
951
+ we,
954
952
  {
955
953
  variant: "icon",
956
954
  ...a,
@@ -968,10 +966,10 @@ function at({
968
966
  );
969
967
  }
970
968
  export {
971
- Tt as G,
972
- Lt as T,
969
+ Et as G,
970
+ Tt as T,
973
971
  ke as a,
974
- at as b,
975
- rt as t,
972
+ rt as b,
973
+ ut as t,
976
974
  ot as u
977
975
  };