@konstructio/ui 0.0.11 → 0.0.12-alpha.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 (259) hide show
  1. package/dist/{Combination-Cmu9JRkv.js → Combination-BQYb0Gw7.js} +72 -72
  2. package/dist/{Modal-L73dmnHv.js → Modal-W2GbkC_F.js} +238 -246
  3. package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
  4. package/dist/components/AlertDialog/AlertDialog.js +20 -23
  5. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
  6. package/dist/components/AlertDialog/components/index.js +1 -1
  7. package/dist/components/Autocomplete/Autocomplete.js +15 -17
  8. package/dist/components/Autocomplete/components/List/List.js +7 -7
  9. package/dist/components/Breadcrumb/Breadcrumb.js +68 -69
  10. package/dist/components/Breadcrumb/Breadcrumb.variants.js +16 -17
  11. package/dist/components/Breadcrumb/components/Item/Item.js +61 -0
  12. package/dist/components/Breadcrumb/components/Item/Item.variants.js +90 -0
  13. package/dist/components/Breadcrumb/components/index.js +4 -0
  14. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
  15. package/dist/components/Button/Button.js +14 -16
  16. package/dist/components/Card/Card.js +10 -12
  17. package/dist/components/Checkbox/Checkbox.js +13 -15
  18. package/dist/components/Dropdown/Dropdown.js +4 -6
  19. package/dist/components/Dropdown/components/List/List.js +9 -10
  20. package/dist/components/Dropdown/components/ListItem/ListItem.js +20 -21
  21. package/dist/components/Dropdown/components/Wrapper.js +31 -34
  22. package/dist/components/Dropdown/contexts/dropdown.provider.js +4 -4
  23. package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
  24. package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
  25. package/dist/components/Input/Input.js +12 -14
  26. package/dist/components/Modal/Modal.js +3 -3
  27. package/dist/components/Modal/components/Wrapper/Wrapper.js +7 -9
  28. package/dist/components/Modal/components/index.js +1 -1
  29. package/dist/components/Modal/contexts/Modal.provider.js +4 -4
  30. package/dist/components/NumberInput/NumberInput.js +9 -11
  31. package/dist/components/ProgressBar/ProgressBar.js +13 -16
  32. package/dist/components/Radio/Radio.js +55 -37
  33. package/dist/components/Radio/Radio.variants.js +69 -16
  34. package/dist/components/RadioCard/RadioCard.js +41 -0
  35. package/dist/components/RadioCard/RadioCard.variants.js +19 -0
  36. package/dist/components/RadioCardGroup/RadioCardGroup.js +47 -0
  37. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +21 -0
  38. package/dist/components/RadioGroup/RadioGroup.js +37 -27
  39. package/dist/components/RadioGroup/RadioGroup.variants.js +21 -0
  40. package/dist/components/Range/Range.js +20 -22
  41. package/dist/components/Sidebar/Sidebar.js +20 -22
  42. package/dist/components/Sidebar/Sidebar.variants.js +5 -4
  43. package/dist/components/Sidebar/components/Footer/Footer.js +9 -12
  44. package/dist/components/Sidebar/components/Logo/Logo.js +9 -12
  45. package/dist/components/Sidebar/components/Navigation/Navigation.js +12 -15
  46. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +24 -26
  47. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +21 -18
  48. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +25 -12
  49. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +8 -11
  50. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +11 -13
  51. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +40 -37
  52. package/dist/components/Slider/Slider.js +18 -20
  53. package/dist/components/Switch/Switch.js +19 -21
  54. package/dist/components/TagSelect/TagSelect.js +19 -21
  55. package/dist/components/TextArea/TextArea.js +17 -19
  56. package/dist/components/Toast/Toast.js +52 -54
  57. package/dist/components/Tooltip/Tooltip.js +10 -12
  58. package/dist/components/index.js +50 -44
  59. package/dist/contexts/theme.provider.js +84 -14
  60. package/dist/{index-BaNV0qac.js → index-1GLoikpT.js} +6555 -6585
  61. package/dist/{AlertDialogTrigger-D4Tm_9M0.js → index-BVppSRDQ.js} +19 -21
  62. package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
  63. package/dist/{index-z-AJyzdv.js → index-CJsYodgi.js} +10 -10
  64. package/dist/{index-BedjZUuB.js → index-CoqDsznq.js} +1 -1
  65. package/dist/{index-BtibbG81.js → index-KEdwcThH.js} +1 -1
  66. package/dist/index.d.ts +522 -4
  67. package/dist/index.js +59 -53
  68. package/dist/package.json +1 -1
  69. package/dist/plugins/konstruct.js +3 -3
  70. package/dist/styles.css +1 -1
  71. package/dist/styles.js +1 -1
  72. package/dist/useBreadcrumb-CojbXFVD.js +1279 -0
  73. package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
  74. package/package.json +1 -1
  75. package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
  76. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
  77. package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
  78. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
  79. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
  80. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
  81. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
  82. package/dist/components/AlertDialog/components/index.d.ts +0 -1
  83. package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
  84. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
  85. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
  86. package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
  87. package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
  88. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
  89. package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
  90. package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
  91. package/dist/components/Autocomplete/components/List/List.types.js +0 -1
  92. package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
  93. package/dist/components/Autocomplete/components/index.d.ts +0 -1
  94. package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
  95. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
  96. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
  97. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
  98. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
  99. package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
  100. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
  101. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
  102. package/dist/components/Button/Button.d.ts +0 -4
  103. package/dist/components/Button/Button.types.d.ts +0 -7
  104. package/dist/components/Button/Button.types.js +0 -1
  105. package/dist/components/Button/Button.variants.d.ts +0 -7
  106. package/dist/components/Card/Card.d.ts +0 -4
  107. package/dist/components/Card/Card.types.d.ts +0 -8
  108. package/dist/components/Card/Card.types.js +0 -1
  109. package/dist/components/Card/Card.variants.d.ts +0 -10
  110. package/dist/components/Checkbox/Checkbox.d.ts +0 -3
  111. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
  112. package/dist/components/Checkbox/Checkbox.types.js +0 -1
  113. package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
  114. package/dist/components/Dropdown/Dropdown.d.ts +0 -3
  115. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
  116. package/dist/components/Dropdown/Dropdown.types.js +0 -1
  117. package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
  118. package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
  119. package/dist/components/Dropdown/components/List/List.d.ts +0 -3
  120. package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
  121. package/dist/components/Dropdown/components/List/List.types.js +0 -1
  122. package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
  123. package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
  124. package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
  125. package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
  126. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
  127. package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
  128. package/dist/components/Dropdown/components/index.d.ts +0 -3
  129. package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
  130. package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
  131. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
  132. package/dist/components/Dropdown/contexts/index.d.ts +0 -2
  133. package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
  134. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
  135. package/dist/components/Input/Input.d.ts +0 -3
  136. package/dist/components/Input/Input.types.d.ts +0 -9
  137. package/dist/components/Input/Input.types.js +0 -1
  138. package/dist/components/Input/Input.variants.d.ts +0 -4
  139. package/dist/components/Modal/Modal.d.ts +0 -8
  140. package/dist/components/Modal/Modal.types.d.ts +0 -12
  141. package/dist/components/Modal/Modal.types.js +0 -1
  142. package/dist/components/Modal/components/Body/Body.d.ts +0 -3
  143. package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
  144. package/dist/components/Modal/components/Body/Body.types.js +0 -1
  145. package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
  146. package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
  147. package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
  148. package/dist/components/Modal/components/Header/Header.d.ts +0 -3
  149. package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
  150. package/dist/components/Modal/components/Header/Header.types.js +0 -1
  151. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
  152. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
  153. package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
  154. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
  155. package/dist/components/Modal/components/index.d.ts +0 -4
  156. package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
  157. package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
  158. package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
  159. package/dist/components/Modal/contexts/Modal.types.js +0 -1
  160. package/dist/components/Modal/contexts/index.d.ts +0 -1
  161. package/dist/components/Modal/hooks/index.d.ts +0 -1
  162. package/dist/components/Modal/hooks/useModal.d.ts +0 -9
  163. package/dist/components/NumberInput/NumberInput.d.ts +0 -3
  164. package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
  165. package/dist/components/NumberInput/NumberInput.types.js +0 -1
  166. package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
  167. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
  168. package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
  169. package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
  170. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
  171. package/dist/components/Radio/Radio.d.ts +0 -3
  172. package/dist/components/Radio/Radio.types.d.ts +0 -12
  173. package/dist/components/Radio/Radio.types.js +0 -1
  174. package/dist/components/Radio/Radio.variants.d.ts +0 -3
  175. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
  176. package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
  177. package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
  178. package/dist/components/Range/Range.d.ts +0 -3
  179. package/dist/components/Range/Range.types.d.ts +0 -13
  180. package/dist/components/Range/Range.types.js +0 -1
  181. package/dist/components/Range/Range.variants.d.ts +0 -14
  182. package/dist/components/Sidebar/Sidebar.d.ts +0 -5
  183. package/dist/components/Sidebar/Sidebar.types.d.ts +0 -17
  184. package/dist/components/Sidebar/Sidebar.types.js +0 -1
  185. package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
  186. package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
  187. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
  188. package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
  189. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
  190. package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
  191. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
  192. package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
  193. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
  194. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
  195. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
  196. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
  197. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
  198. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  199. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -7
  200. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
  201. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
  202. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
  203. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -15
  204. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
  205. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -3
  206. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
  207. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
  208. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
  209. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
  210. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
  211. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -7
  212. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
  213. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
  214. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
  215. package/dist/components/Sidebar/components/index.d.ts +0 -15
  216. package/dist/components/Slider/Slider.d.ts +0 -3
  217. package/dist/components/Slider/Slider.types.d.ts +0 -13
  218. package/dist/components/Slider/Slider.types.js +0 -1
  219. package/dist/components/Slider/Slider.variants.d.ts +0 -11
  220. package/dist/components/Switch/Switch.d.ts +0 -3
  221. package/dist/components/Switch/Switch.types.d.ts +0 -10
  222. package/dist/components/Switch/Switch.types.js +0 -1
  223. package/dist/components/Switch/Switch.variants.d.ts +0 -6
  224. package/dist/components/Tag/Tag.d.ts +0 -3
  225. package/dist/components/Tag/Tag.types.d.ts +0 -4
  226. package/dist/components/Tag/Tag.types.js +0 -1
  227. package/dist/components/Tag/Tag.variants.d.ts +0 -3
  228. package/dist/components/TagSelect/TagSelect.d.ts +0 -3
  229. package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
  230. package/dist/components/TagSelect/TagSelect.types.js +0 -1
  231. package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
  232. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
  233. package/dist/components/TextArea/TextArea.d.ts +0 -3
  234. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  235. package/dist/components/TextArea/TextArea.types.js +0 -1
  236. package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
  237. package/dist/components/Toast/Toast.d.ts +0 -3
  238. package/dist/components/Toast/Toast.types.d.ts +0 -12
  239. package/dist/components/Toast/Toast.types.js +0 -1
  240. package/dist/components/Toast/Toast.variants.d.ts +0 -9
  241. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  242. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
  243. package/dist/components/Tooltip/Tooltip.types.js +0 -1
  244. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
  245. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  246. package/dist/components/index.d.ts +0 -21
  247. package/dist/contexts/index.d.ts +0 -3
  248. package/dist/contexts/theme.context.d.ts +0 -6
  249. package/dist/contexts/theme.hook.d.ts +0 -7
  250. package/dist/contexts/theme.provider.d.ts +0 -6
  251. package/dist/hooks/index.d.ts +0 -1
  252. package/dist/hooks/useToggle.d.ts +0 -1
  253. package/dist/js.cookie-OLEfuq_g.js +0 -74
  254. package/dist/plugins/index.d.ts +0 -1
  255. package/dist/plugins/konstruct.d.ts +0 -4
  256. package/dist/plugins/utils/colors.d.ts +0 -328
  257. package/dist/styles.d.ts +0 -0
  258. package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
  259. package/dist/utils/index.d.ts +0 -4
@@ -1,20 +1,18 @@
1
- import { jsx as _, jsxs as Q } from "react/jsx-runtime";
2
- import { r as Mr } from "./index-BaNV0qac.js";
3
- import { Body as kr } from "./components/Modal/components/Body/Body.js";
4
- import { Footer as Lr } from "./components/Modal/components/Footer/Footer.js";
5
- import { Header as Rr } from "./components/Modal/components/Header/Header.js";
6
- import { R as Wr } from "./index-BtibbG81.js";
7
- import N, { createContext as Br, forwardRef as We, useState as Z, useRef as ee, useCallback as R, useEffect as Ur, useMemo as Gr, Fragment as Hr, PureComponent as jr, Children as q, isValidElement as $ } from "react";
8
- import { P as Be, p as l } from "./index-D68N8v8R.js";
9
- import { c as se, a as Vr, u as qr, R as $r } from "./Combination-Cmu9JRkv.js";
10
- import "./contexts/theme.context.js";
11
- import { useTheme as Kr } from "./contexts/theme.hook.js";
12
- import "./js.cookie-OLEfuq_g.js";
1
+ import { Body as Cr } from "./components/Modal/components/Body/Body.js";
2
+ import { Footer as Mr } from "./components/Modal/components/Footer/Footer.js";
3
+ import { Header as _r } from "./components/Modal/components/Header/Header.js";
4
+ import { jsx as M, jsxs as Q } from "react/jsx-runtime";
5
+ import { r as kr } from "./index-1GLoikpT.js";
6
+ import { R as Lr } from "./index-KEdwcThH.js";
7
+ import I, { createContext as Rr, forwardRef as We, useState as Z, useRef as ee, useCallback as R, useEffect as Wr, useMemo as Br, Fragment as Ur, PureComponent as Gr, Children as q, isValidElement as $ } from "react";
8
+ import { p as l } from "./index-C5psggHV.js";
9
+ import { c as se, a as Hr, u as jr, R as Vr } from "./Combination-BQYb0Gw7.js";
13
10
  import { cn as Ae } from "./utils/index.js";
14
- import { useModal as Ue } from "./components/Modal/hooks/useModal.js";
15
- import { modalVariants as Xr, buttonCloseVariants as Yr } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
16
- import { X as zr } from "./x-CRBgmX1Q.js";
17
- function Jr(e, r) {
11
+ import { useModal as Be } from "./components/Modal/hooks/useModal.js";
12
+ import { modalVariants as qr, buttonCloseVariants as $r } from "./components/Modal/components/Wrapper/Wrapper.variants.js";
13
+ import { X as Kr } from "./x-DU-Zw-L_.js";
14
+ import { useTheme as Xr } from "./contexts/theme.hook.js";
15
+ function Yr(e, r) {
18
16
  if (e == null) return {};
19
17
  var n = {};
20
18
  for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
@@ -32,7 +30,7 @@ function B() {
32
30
  return e;
33
31
  }, B.apply(null, arguments);
34
32
  }
35
- var ue = "data-focus-lock", Ge = "data-focus-lock-disabled", Qr = "data-no-focus-lock", Zr = "data-autofocus-inside", en = "data-no-autofocus", re = {
33
+ var ue = "data-focus-lock", Ue = "data-focus-lock-disabled", zr = "data-no-focus-lock", Jr = "data-autofocus-inside", Qr = "data-no-autofocus", re = {
36
34
  width: "1px",
37
35
  height: "0px",
38
36
  padding: 0,
@@ -40,28 +38,26 @@ var ue = "data-focus-lock", Ge = "data-focus-lock-disabled", Qr = "data-no-focus
40
38
  position: "fixed",
41
39
  top: "1px",
42
40
  left: "1px"
43
- };
44
- process.env.NODE_ENV !== "production" && Be.node;
45
- var He = se({}, function(e) {
41
+ }, Ge = se({}, function(e) {
46
42
  var r = e.target, n = e.currentTarget;
47
43
  return {
48
44
  target: r,
49
45
  currentTarget: n
50
46
  };
51
- }), je = se(), rn = se(), nn = Vr({
47
+ }), He = se(), Zr = se(), en = Hr({
52
48
  async: !0,
53
49
  ssr: typeof document < "u"
54
- }), tn = /* @__PURE__ */ Br(void 0), on = [], de = /* @__PURE__ */ We(function(r, n) {
55
- var t, o = Z(), u = o[0], i = o[1], c = ee(), v = ee(!1), f = ee(null), b = Z({}), s = b[1], a = r.children, m = r.disabled, d = m === void 0 ? !1 : m, p = r.noFocusGuards, F = p === void 0 ? !1 : p, E = r.persistentFocus, y = E === void 0 ? !1 : E, h = r.crossFrame, x = h === void 0 ? !0 : h, S = r.autoFocus, X = S === void 0 ? !0 : S, mr = r.allowTextSelection, pr = r.group, br = r.className, yr = r.whiteList, hr = r.hasPositiveIndices, xe = r.shards, Y = xe === void 0 ? on : xe, we = r.as, Ne = we === void 0 ? "div" : we, Ie = r.lockProps, gr = Ie === void 0 ? {} : Ie, Fr = r.sideCar, Se = r.returnFocus, V = Se === void 0 ? !1 : Se, Er = r.focusOptions, z = r.onActivation, J = r.onDeactivation, Or = Z({}), xr = Or[0], wr = R(function(w) {
50
+ }), rn = /* @__PURE__ */ Rr(void 0), nn = [], de = /* @__PURE__ */ We(function(r, n) {
51
+ var t, o = Z(), u = o[0], i = o[1], c = ee(), v = ee(!1), f = ee(null), b = Z({}), s = b[1], a = r.children, m = r.disabled, d = m === void 0 ? !1 : m, p = r.noFocusGuards, F = p === void 0 ? !1 : p, E = r.persistentFocus, y = E === void 0 ? !1 : E, h = r.crossFrame, x = h === void 0 ? !0 : h, S = r.autoFocus, X = S === void 0 ? !0 : S, lr = r.allowTextSelection, vr = r.group, mr = r.className, pr = r.whiteList, br = r.hasPositiveIndices, xe = r.shards, Y = xe === void 0 ? nn : xe, we = r.as, Ie = we === void 0 ? "div" : we, Ne = r.lockProps, yr = Ne === void 0 ? {} : Ne, hr = r.sideCar, Se = r.returnFocus, V = Se === void 0 ? !1 : Se, gr = r.focusOptions, z = r.onActivation, J = r.onDeactivation, Fr = Z({}), Er = Fr[0], Or = R(function(w) {
56
52
  var D = w.captureFocusRestore;
57
53
  if (!f.current) {
58
54
  var C, P = (C = document) == null ? void 0 : C.activeElement;
59
55
  f.current = P, P !== document.body && (f.current = D(P));
60
56
  }
61
57
  c.current && z && z(c.current), v.current = !0, s();
62
- }, [z]), Nr = R(function() {
58
+ }, [z]), xr = R(function() {
63
59
  v.current = !1, J && J(c.current), s();
64
- }, [J]), Ir = R(function(w) {
60
+ }, [J]), wr = R(function(w) {
65
61
  var D = f.current;
66
62
  if (D) {
67
63
  var C = (typeof D == "function" ? D() : D) || document.body, P = typeof V == "function" ? V(C) : V;
@@ -72,15 +68,15 @@ var He = se({}, function(e) {
72
68
  }) : C.focus(Te);
73
69
  }
74
70
  }
75
- }, [V]), Sr = R(function(w) {
76
- v.current && He.useMedium(w);
77
- }, []), Pr = je.useMedium, Tr = R(function(w) {
71
+ }, [V]), Ir = R(function(w) {
72
+ v.current && Ge.useMedium(w);
73
+ }, []), Nr = He.useMedium, Sr = R(function(w) {
78
74
  c.current !== w && (c.current = w, i(w));
79
75
  }, []);
80
- process.env.NODE_ENV !== "production" && (typeof mr < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), Ur(function() {
81
- !c.current && typeof Ne != "string" && console.error("FocusLock: could not obtain ref to internal node");
76
+ process.env.NODE_ENV !== "production" && (typeof lr < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), Wr(function() {
77
+ !c.current && typeof Ie != "string" && console.error("FocusLock: could not obtain ref to internal node");
82
78
  }, []));
83
- var Ar = B((t = {}, t[Ge] = d && "disabled", t[ue] = pr, t), gr), Pe = F !== !0, Dr = Pe && F !== "tail", Cr = qr([n, Tr]), _r = Gr(function() {
79
+ var Pr = B((t = {}, t[Ue] = d && "disabled", t[ue] = vr, t), yr), Pe = F !== !0, Tr = Pe && F !== "tail", Ar = jr([n, Sr]), Dr = Br(function() {
84
80
  return {
85
81
  observed: c,
86
82
  shards: Y,
@@ -88,43 +84,43 @@ var He = se({}, function(e) {
88
84
  active: v.current
89
85
  };
90
86
  }, [d, v.current, Y, u]);
91
- return /* @__PURE__ */ N.createElement(Hr, null, Pe && [
92
- /* @__PURE__ */ N.createElement("div", {
87
+ return /* @__PURE__ */ I.createElement(Ur, null, Pe && [
88
+ /* @__PURE__ */ I.createElement("div", {
93
89
  key: "guard-first",
94
90
  "data-focus-guard": !0,
95
91
  tabIndex: d ? -1 : 0,
96
92
  style: re
97
93
  }),
98
- hr ? /* @__PURE__ */ N.createElement("div", {
94
+ br ? /* @__PURE__ */ I.createElement("div", {
99
95
  key: "guard-nearest",
100
96
  "data-focus-guard": !0,
101
97
  tabIndex: d ? -1 : 1,
102
98
  style: re
103
99
  }) : null
104
- ], !d && /* @__PURE__ */ N.createElement(Fr, {
105
- id: xr,
106
- sideCar: nn,
100
+ ], !d && /* @__PURE__ */ I.createElement(hr, {
101
+ id: Er,
102
+ sideCar: en,
107
103
  observed: u,
108
104
  disabled: d,
109
105
  persistentFocus: y,
110
106
  crossFrame: x,
111
107
  autoFocus: X,
112
- whiteList: yr,
108
+ whiteList: pr,
113
109
  shards: Y,
114
- onActivation: wr,
115
- onDeactivation: Nr,
116
- returnFocus: Ir,
117
- focusOptions: Er,
110
+ onActivation: Or,
111
+ onDeactivation: xr,
112
+ returnFocus: wr,
113
+ focusOptions: gr,
118
114
  noFocusGuards: F
119
- }), /* @__PURE__ */ N.createElement(Ne, B({
120
- ref: Cr
121
- }, Ar, {
122
- className: br,
123
- onBlur: Pr,
124
- onFocus: Sr
125
- }), /* @__PURE__ */ N.createElement(tn.Provider, {
126
- value: _r
127
- }, a)), Dr && /* @__PURE__ */ N.createElement("div", {
115
+ }), /* @__PURE__ */ I.createElement(Ie, B({
116
+ ref: Ar
117
+ }, Pr, {
118
+ className: mr,
119
+ onBlur: Nr,
120
+ onFocus: Ir
121
+ }), /* @__PURE__ */ I.createElement(rn.Provider, {
122
+ value: Dr
123
+ }, a)), Tr && /* @__PURE__ */ I.createElement("div", {
128
124
  "data-focus-guard": !0,
129
125
  tabIndex: d ? -1 : 0,
130
126
  style: re
@@ -156,7 +152,7 @@ function ae(e, r) {
156
152
  return n.__proto__ = t, n;
157
153
  }, ae(e, r);
158
154
  }
159
- function un(e, r) {
155
+ function tn(e, r) {
160
156
  e.prototype = Object.create(r.prototype), e.prototype.constructor = e, ae(e, r);
161
157
  }
162
158
  function U(e) {
@@ -167,7 +163,7 @@ function U(e) {
167
163
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
168
164
  }, U(e);
169
165
  }
170
- function an(e, r) {
166
+ function on(e, r) {
171
167
  if (U(e) != "object" || !e) return e;
172
168
  var n = e[Symbol.toPrimitive];
173
169
  if (n !== void 0) {
@@ -177,19 +173,19 @@ function an(e, r) {
177
173
  }
178
174
  return (r === "string" ? String : Number)(e);
179
175
  }
180
- function cn(e) {
181
- var r = an(e, "string");
176
+ function un(e) {
177
+ var r = on(e, "string");
182
178
  return U(r) == "symbol" ? r : r + "";
183
179
  }
184
- function fn(e, r, n) {
185
- return (r = cn(r)) in e ? Object.defineProperty(e, r, {
180
+ function an(e, r, n) {
181
+ return (r = un(r)) in e ? Object.defineProperty(e, r, {
186
182
  value: n,
187
183
  enumerable: !0,
188
184
  configurable: !0,
189
185
  writable: !0
190
186
  }) : e[r] = n, e;
191
187
  }
192
- function sn(e, r) {
188
+ function cn(e, r) {
193
189
  if (process.env.NODE_ENV !== "production") {
194
190
  if (typeof e != "function")
195
191
  throw new Error("Expected reducePropsToState to be a function.");
@@ -209,7 +205,7 @@ function sn(e, r) {
209
205
  })), r(i);
210
206
  }
211
207
  var v = /* @__PURE__ */ function(f) {
212
- un(b, f);
208
+ tn(b, f);
213
209
  function b() {
214
210
  return f.apply(this, arguments) || this;
215
211
  }
@@ -225,10 +221,10 @@ function sn(e, r) {
225
221
  var m = u.indexOf(this);
226
222
  u.splice(m, 1), c();
227
223
  }, s.render = function() {
228
- return /* @__PURE__ */ N.createElement(o, this.props);
224
+ return /* @__PURE__ */ I.createElement(o, this.props);
229
225
  }, b;
230
- }(jr);
231
- return fn(v, "displayName", "SideEffect(" + n(o) + ")"), v;
226
+ }(Gr);
227
+ return an(v, "displayName", "SideEffect(" + n(o) + ")"), v;
232
228
  };
233
229
  }
234
230
  var O = function(e) {
@@ -237,59 +233,59 @@ var O = function(e) {
237
233
  return r;
238
234
  }, A = function(e) {
239
235
  return Array.isArray(e) ? e : [e];
240
- }, Ve = function(e) {
236
+ }, je = function(e) {
241
237
  return Array.isArray(e) ? e[0] : e;
242
- }, dn = function(e) {
238
+ }, fn = function(e) {
243
239
  if (e.nodeType !== Node.ELEMENT_NODE)
244
240
  return !1;
245
241
  var r = window.getComputedStyle(e, null);
246
242
  return !r || !r.getPropertyValue ? !1 : r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
247
- }, qe = function(e) {
243
+ }, Ve = function(e) {
248
244
  return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
249
245
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
250
246
  e.parentNode.host
251
247
  ) : e.parentNode;
252
- }, $e = function(e) {
248
+ }, qe = function(e) {
253
249
  return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
254
- }, ln = function(e) {
250
+ }, sn = function(e) {
255
251
  return e.hasAttribute("inert");
256
- }, vn = function(e, r) {
257
- return !e || $e(e) || !dn(e) && !ln(e) && r(qe(e));
258
- }, Ke = function(e, r) {
252
+ }, dn = function(e, r) {
253
+ return !e || qe(e) || !fn(e) && !sn(e) && r(Ve(e));
254
+ }, $e = function(e, r) {
259
255
  var n = e.get(r);
260
256
  if (n !== void 0)
261
257
  return n;
262
- var t = vn(r, Ke.bind(void 0, e));
258
+ var t = dn(r, $e.bind(void 0, e));
263
259
  return e.set(r, t), t;
264
- }, mn = function(e, r) {
265
- return e && !$e(e) ? yn(e) ? r(qe(e)) : !1 : !0;
266
- }, Xe = function(e, r) {
260
+ }, ln = function(e, r) {
261
+ return e && !qe(e) ? pn(e) ? r(Ve(e)) : !1 : !0;
262
+ }, Ke = function(e, r) {
267
263
  var n = e.get(r);
268
264
  if (n !== void 0)
269
265
  return n;
270
- var t = mn(r, Xe.bind(void 0, e));
266
+ var t = ln(r, Ke.bind(void 0, e));
271
267
  return e.set(r, t), t;
272
- }, Ye = function(e) {
268
+ }, Xe = function(e) {
273
269
  return e.dataset;
274
- }, pn = function(e) {
270
+ }, vn = function(e) {
275
271
  return e.tagName === "BUTTON";
276
- }, ze = function(e) {
272
+ }, Ye = function(e) {
277
273
  return e.tagName === "INPUT";
278
- }, Je = function(e) {
279
- return ze(e) && e.type === "radio";
280
- }, bn = function(e) {
281
- return !((ze(e) || pn(e)) && (e.type === "hidden" || e.disabled));
282
- }, yn = function(e) {
283
- var r = e.getAttribute(en);
274
+ }, ze = function(e) {
275
+ return Ye(e) && e.type === "radio";
276
+ }, mn = function(e) {
277
+ return !((Ye(e) || vn(e)) && (e.type === "hidden" || e.disabled));
278
+ }, pn = function(e) {
279
+ var r = e.getAttribute(Qr);
284
280
  return ![!0, "true", ""].includes(r);
285
281
  }, le = function(e) {
286
282
  var r;
287
- return !!(e && (!((r = Ye(e)) === null || r === void 0) && r.focusGuard));
283
+ return !!(e && (!((r = Xe(e)) === null || r === void 0) && r.focusGuard));
288
284
  }, ie = function(e) {
289
285
  return !le(e);
290
- }, hn = function(e) {
286
+ }, bn = function(e) {
291
287
  return !!e;
292
- }, gn = function(e, r) {
288
+ }, yn = function(e, r) {
293
289
  var n = Math.max(0, e.tabIndex), t = Math.max(0, r.tabIndex), o = n - t, u = e.index - r.index;
294
290
  if (o) {
295
291
  if (!n)
@@ -298,11 +294,11 @@ var O = function(e) {
298
294
  return -1;
299
295
  }
300
296
  return o || u;
301
- }, Fn = function(e) {
297
+ }, hn = function(e) {
302
298
  return e.tabIndex < 0 && !e.hasAttribute("tabindex") ? 0 : e.tabIndex;
303
299
  }, ve = function(e, r, n) {
304
300
  return O(e).map(function(t, o) {
305
- var u = Fn(t);
301
+ var u = hn(t);
306
302
  return {
307
303
  node: t,
308
304
  index: o,
@@ -310,8 +306,8 @@ var O = function(e) {
310
306
  };
311
307
  }).filter(function(t) {
312
308
  return !r || t.tabIndex >= 0;
313
- }).sort(gn);
314
- }, En = [
309
+ }).sort(yn);
310
+ }, gn = [
315
311
  "button:enabled",
316
312
  "select:enabled",
317
313
  "textarea:enabled",
@@ -329,17 +325,17 @@ var O = function(e) {
329
325
  "[tabindex]",
330
326
  "[contenteditable]",
331
327
  "[autofocus]"
332
- ], me = En.join(","), On = "".concat(me, ", [data-focus-guard]"), Qe = function(e, r) {
328
+ ], me = gn.join(","), Fn = "".concat(me, ", [data-focus-guard]"), Je = function(e, r) {
333
329
  return O((e.shadowRoot || e).children).reduce(function(n, t) {
334
- return n.concat(t.matches(r ? On : me) ? [t] : [], Qe(t));
330
+ return n.concat(t.matches(r ? Fn : me) ? [t] : [], Je(t));
335
331
  }, []);
336
- }, xn = function(e, r) {
332
+ }, En = function(e, r) {
337
333
  var n;
338
334
  return e instanceof HTMLIFrameElement && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? L([e.contentDocument.body], r) : [e];
339
335
  }, L = function(e, r) {
340
336
  return e.reduce(function(n, t) {
341
- var o, u = Qe(t, r), i = (o = []).concat.apply(o, u.map(function(c) {
342
- return xn(c, r);
337
+ var o, u = Je(t, r), i = (o = []).concat.apply(o, u.map(function(c) {
338
+ return En(c, r);
343
339
  }));
344
340
  return n.concat(
345
341
  // add all tabbables inside and within shadow DOMs in DOM order
@@ -350,8 +346,8 @@ var O = function(e) {
350
346
  }) : []
351
347
  );
352
348
  }, []);
353
- }, wn = function(e) {
354
- var r = e.querySelectorAll("[".concat(Zr, "]"));
349
+ }, On = function(e) {
350
+ var r = e.querySelectorAll("[".concat(Jr, "]"));
355
351
  return O(r).map(function(n) {
356
352
  return L([n]);
357
353
  }).reduce(function(n, t) {
@@ -359,20 +355,20 @@ var O = function(e) {
359
355
  }, []);
360
356
  }, pe = function(e, r) {
361
357
  return O(e).filter(function(n) {
362
- return Ke(r, n);
358
+ return $e(r, n);
363
359
  }).filter(function(n) {
364
- return bn(n);
360
+ return mn(n);
365
361
  });
366
362
  }, De = function(e, r) {
367
363
  return r === void 0 && (r = /* @__PURE__ */ new Map()), O(e).filter(function(n) {
368
- return Xe(r, n);
364
+ return Ke(r, n);
369
365
  });
370
366
  }, be = function(e, r, n) {
371
367
  return ve(pe(L(e, n), r), !0, n);
372
368
  }, G = function(e, r) {
373
369
  return ve(pe(L(e), r), !1);
374
- }, Nn = function(e, r) {
375
- return pe(wn(e), r);
370
+ }, xn = function(e, r) {
371
+ return pe(On(e), r);
376
372
  }, T = function(e, r) {
377
373
  return e.shadowRoot ? T(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : O(e.children).some(function(n) {
378
374
  var t;
@@ -382,7 +378,7 @@ var O = function(e) {
382
378
  }
383
379
  return T(n, r);
384
380
  });
385
- }, In = function(e) {
381
+ }, wn = function(e) {
386
382
  for (var r = /* @__PURE__ */ new Set(), n = e.length, t = 0; t < n; t += 1)
387
383
  for (var o = t + 1; o < n; o += 1) {
388
384
  var u = e[t].compareDocumentPosition(e[o]);
@@ -391,15 +387,15 @@ var O = function(e) {
391
387
  return e.filter(function(i, c) {
392
388
  return !r.has(c);
393
389
  });
394
- }, Ze = function(e) {
395
- return e.parentNode ? Ze(e.parentNode) : e;
390
+ }, Qe = function(e) {
391
+ return e.parentNode ? Qe(e.parentNode) : e;
396
392
  }, ye = function(e) {
397
393
  var r = A(e);
398
394
  return r.filter(Boolean).reduce(function(n, t) {
399
395
  var o = t.getAttribute(ue);
400
- return n.push.apply(n, o ? In(O(Ze(t).querySelectorAll("[".concat(ue, '="').concat(o, '"]:not([').concat(Ge, '="disabled"])')))) : [t]), n;
396
+ return n.push.apply(n, o ? wn(O(Qe(t).querySelectorAll("[".concat(ue, '="').concat(o, '"]:not([').concat(Ue, '="disabled"])')))) : [t]), n;
401
397
  }, []);
402
- }, Sn = function(e) {
398
+ }, In = function(e) {
403
399
  try {
404
400
  return e();
405
401
  } catch {
@@ -408,35 +404,35 @@ var O = function(e) {
408
404
  }, H = function(e) {
409
405
  if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
410
406
  var r = e.activeElement;
411
- return r.shadowRoot ? H(r.shadowRoot) : r instanceof HTMLIFrameElement && Sn(function() {
407
+ return r.shadowRoot ? H(r.shadowRoot) : r instanceof HTMLIFrameElement && In(function() {
412
408
  return r.contentWindow.document;
413
409
  }) ? H(r.contentWindow.document) : r;
414
410
  }
415
- }, Pn = function(e, r) {
411
+ }, Nn = function(e, r) {
416
412
  return e === r;
417
- }, Tn = function(e, r) {
413
+ }, Sn = function(e, r) {
418
414
  return !!O(e.querySelectorAll("iframe")).some(function(n) {
419
- return Pn(n, r);
415
+ return Nn(n, r);
420
416
  });
421
- }, er = function(e, r) {
422
- return r === void 0 && (r = H(Ve(e).ownerDocument)), !r || r.dataset && r.dataset.focusGuard ? !1 : ye(e).some(function(n) {
423
- return T(n, r) || Tn(n, r);
417
+ }, Ze = function(e, r) {
418
+ return r === void 0 && (r = H(je(e).ownerDocument)), !r || r.dataset && r.dataset.focusGuard ? !1 : ye(e).some(function(n) {
419
+ return T(n, r) || Sn(n, r);
424
420
  });
425
- }, An = function(e) {
421
+ }, Pn = function(e) {
426
422
  e === void 0 && (e = document);
427
423
  var r = H(e);
428
- return r ? O(e.querySelectorAll("[".concat(Qr, "]"))).some(function(n) {
424
+ return r ? O(e.querySelectorAll("[".concat(zr, "]"))).some(function(n) {
429
425
  return T(n, r);
430
426
  }) : !1;
431
- }, Dn = function(e, r) {
432
- return r.filter(Je).filter(function(n) {
427
+ }, Tn = function(e, r) {
428
+ return r.filter(ze).filter(function(n) {
433
429
  return n.name === e.name;
434
430
  }).filter(function(n) {
435
431
  return n.checked;
436
432
  })[0] || e;
437
433
  }, he = function(e, r) {
438
- return Je(e) && e.name ? Dn(e, r) : e;
439
- }, Cn = function(e) {
434
+ return ze(e) && e.name ? Tn(e, r) : e;
435
+ }, An = function(e) {
440
436
  var r = /* @__PURE__ */ new Set();
441
437
  return e.forEach(function(n) {
442
438
  return r.add(he(n, e));
@@ -445,9 +441,9 @@ var O = function(e) {
445
441
  });
446
442
  }, Ce = function(e) {
447
443
  return e[0] && e.length > 1 ? he(e[0], e) : e[0];
448
- }, _e = function(e, r) {
444
+ }, Me = function(e, r) {
449
445
  return e.indexOf(he(r, e));
450
- }, ce = "NEW_FOCUS", _n = function(e, r, n, t, o) {
446
+ }, ce = "NEW_FOCUS", Dn = function(e, r, n, t, o) {
451
447
  var u = e.length, i = e[0], c = e[u - 1], v = le(t);
452
448
  if (!(t && e.indexOf(t) >= 0)) {
453
449
  var f = t !== void 0 ? n.indexOf(t) : -1, b = o ? n.indexOf(o) : f, s = o ? e.indexOf(o) : -1;
@@ -455,10 +451,10 @@ var O = function(e) {
455
451
  return s !== -1 ? s : ce;
456
452
  if (s === -1)
457
453
  return ce;
458
- var a = f - b, m = n.indexOf(i), d = n.indexOf(c), p = Cn(n), F = t !== void 0 ? p.indexOf(t) : -1, E = F - (o ? p.indexOf(o) : f);
454
+ var a = f - b, m = n.indexOf(i), d = n.indexOf(c), p = An(n), F = t !== void 0 ? p.indexOf(t) : -1, E = F - (o ? p.indexOf(o) : f);
459
455
  if (!a && s >= 0 || r.length === 0)
460
456
  return s;
461
- var y = _e(e, r[0]), h = _e(e, r[r.length - 1]);
457
+ var y = Me(e, r[0]), h = Me(e, r[r.length - 1]);
462
458
  if (f <= m && v && Math.abs(a) > 1)
463
459
  return h;
464
460
  if (f >= d && v && Math.abs(a) > 1)
@@ -472,9 +468,9 @@ var O = function(e) {
472
468
  if (a)
473
469
  return Math.abs(a) > 1 ? s : (u + s + a) % u;
474
470
  }
475
- }, Mn = function(e) {
471
+ }, Cn = function(e) {
476
472
  return function(r) {
477
- var n, t = (n = Ye(r)) === null || n === void 0 ? void 0 : n.autofocus;
473
+ var n, t = (n = Xe(r)) === null || n === void 0 ? void 0 : n.autofocus;
478
474
  return (
479
475
  // @ts-expect-error
480
476
  r.autofocus || //
@@ -482,11 +478,11 @@ var O = function(e) {
482
478
  e.indexOf(r) >= 0
483
479
  );
484
480
  };
485
- }, Me = function(e, r, n) {
481
+ }, _e = function(e, r, n) {
486
482
  var t = e.map(function(u) {
487
483
  var i = u.node;
488
484
  return i;
489
- }), o = De(t.filter(Mn(n)));
485
+ }), o = De(t.filter(Cn(n)));
490
486
  return o && o.length ? Ce(o) : Ce(De(r));
491
487
  }, fe = function(e, r) {
492
488
  return r === void 0 && (r = []), r.push(e), e.parentNode && fe(e.parentNode.host || e.parentNode, r), r;
@@ -497,7 +493,7 @@ var O = function(e) {
497
493
  return u;
498
494
  }
499
495
  return !1;
500
- }, rr = function(e, r, n) {
496
+ }, er = function(e, r, n) {
501
497
  var t = A(e), o = A(r), u = t[0], i = !1;
502
498
  return o.filter(Boolean).forEach(function(c) {
503
499
  i = ne(i || c, c) || i, n.filter(Boolean).forEach(function(v) {
@@ -507,17 +503,17 @@ var O = function(e) {
507
503
  }), i;
508
504
  }, ke = function(e, r) {
509
505
  return e.reduce(function(n, t) {
510
- return n.concat(Nn(t, r));
506
+ return n.concat(xn(t, r));
511
507
  }, []);
512
- }, kn = function(e, r) {
508
+ }, Mn = function(e, r) {
513
509
  var n = /* @__PURE__ */ new Map();
514
510
  return r.forEach(function(t) {
515
511
  return n.set(t.node, t);
516
512
  }), e.map(function(t) {
517
513
  return n.get(t);
518
- }).filter(hn);
519
- }, Ln = function(e, r) {
520
- var n = H(A(e).length > 0 ? document : Ve(e).ownerDocument), t = ye(e).filter(ie), o = rr(n || e, e, t), u = /* @__PURE__ */ new Map(), i = G(t, u), c = i.filter(function(d) {
514
+ }).filter(bn);
515
+ }, _n = function(e, r) {
516
+ var n = H(A(e).length > 0 ? document : je(e).ownerDocument), t = ye(e).filter(ie), o = er(n || e, e, t), u = /* @__PURE__ */ new Map(), i = G(t, u), c = i.filter(function(d) {
521
517
  var p = d.node;
522
518
  return ie(p);
523
519
  });
@@ -525,7 +521,7 @@ var O = function(e) {
525
521
  var v = G([o], u).map(function(d) {
526
522
  var p = d.node;
527
523
  return p;
528
- }), f = kn(v, c), b = f.map(function(d) {
524
+ }), f = Mn(v, c), b = f.map(function(d) {
529
525
  var p = d.node;
530
526
  return p;
531
527
  }), s = f.filter(function(d) {
@@ -534,11 +530,11 @@ var O = function(e) {
534
530
  }).map(function(d) {
535
531
  var p = d.node;
536
532
  return p;
537
- }), a = _n(b, s, v, n, r);
533
+ }), a = Dn(b, s, v, n, r);
538
534
  if (a === ce) {
539
535
  var m = (
540
536
  // first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
541
- Me(i, s, ke(t, u)) || Me(i, b, ke(t, u))
537
+ _e(i, s, ke(t, u)) || _e(i, b, ke(t, u))
542
538
  );
543
539
  if (m)
544
540
  return { node: m };
@@ -547,8 +543,8 @@ var O = function(e) {
547
543
  }
548
544
  return a === void 0 ? a : f[a];
549
545
  }
550
- }, Rn = function(e) {
551
- var r = ye(e).filter(ie), n = rr(e, e, r), t = ve(L([n], !0), !0, !0), o = L(r, !1);
546
+ }, kn = function(e) {
547
+ var r = ye(e).filter(ie), n = er(e, e, r), t = ve(L([n], !0), !0, !0), o = L(r, !1);
552
548
  return t.map(function(u) {
553
549
  var i = u.node, c = u.index;
554
550
  return {
@@ -560,9 +556,9 @@ var O = function(e) {
560
556
  });
561
557
  }, ge = function(e, r) {
562
558
  e && ("focus" in e && e.focus(r), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
563
- }, te = 0, oe = !1, nr = function(e, r, n) {
559
+ }, te = 0, oe = !1, rr = function(e, r, n) {
564
560
  n === void 0 && (n = {});
565
- var t = Ln(e, r);
561
+ var t = _n(e, r);
566
562
  if (!oe && t) {
567
563
  if (te > 2) {
568
564
  console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), oe = !0, setTimeout(function() {
@@ -585,7 +581,7 @@ function W(e) {
585
581
  return (r == null ? void 0 : r.deref()) || null;
586
582
  };
587
583
  }
588
- var Wn = function(e) {
584
+ var Ln = function(e) {
589
585
  if (!e)
590
586
  return null;
591
587
  for (var r = [], n = e; n && n !== document.body; )
@@ -600,7 +596,7 @@ var Wn = function(e) {
600
596
  stack: r,
601
597
  ownerDocument: e.ownerDocument
602
598
  };
603
- }, Bn = function(e) {
599
+ }, Rn = function(e) {
604
600
  var r, n, t, o, u;
605
601
  if (e)
606
602
  for (var i = e.stack, c = e.ownerDocument, v = /* @__PURE__ */ new Map(), f = 0, b = i; f < b.length; f++) {
@@ -628,12 +624,12 @@ var Wn = function(e) {
628
624
  return E[0].node;
629
625
  }
630
626
  }
631
- }, tr = function(e) {
632
- var r = Wn(e);
627
+ }, nr = function(e) {
628
+ var r = Ln(e);
633
629
  return function() {
634
- return Bn(r);
630
+ return Rn(r);
635
631
  };
636
- }, Un = function(e, r, n) {
632
+ }, Wn = function(e, r, n) {
637
633
  if (!e || !r)
638
634
  return console.error("no element or scope given"), {};
639
635
  var t = A(r);
@@ -652,64 +648,64 @@ var Wn = function(e) {
652
648
  first: o[0],
653
649
  last: o[o.length - 1]
654
650
  };
655
- }, Gn = function(e, r) {
651
+ }, Bn = function(e, r) {
656
652
  var n = r ? be(A(e), /* @__PURE__ */ new Map()) : G(A(e), /* @__PURE__ */ new Map());
657
653
  return {
658
654
  first: n[0],
659
655
  last: n[n.length - 1]
660
656
  };
661
- }, Hn = function(e) {
657
+ }, Un = function(e) {
662
658
  return Object.assign({
663
659
  scope: document.body,
664
660
  cycle: !0,
665
661
  onlyTabbable: !0
666
662
  }, e);
667
- }, or = function(e, r, n) {
663
+ }, tr = function(e, r, n) {
668
664
  r === void 0 && (r = {});
669
- var t = Hn(r), o = Un(e, t.scope, t.onlyTabbable);
665
+ var t = Un(r), o = Wn(e, t.scope, t.onlyTabbable);
670
666
  if (o) {
671
667
  var u = n(o, t.cycle);
672
668
  u && ge(u.node, t.focusOptions);
673
669
  }
674
- }, jn = function(e, r) {
675
- r === void 0 && (r = {}), or(e, r, function(n, t) {
670
+ }, Gn = function(e, r) {
671
+ r === void 0 && (r = {}), tr(e, r, function(n, t) {
676
672
  var o = n.next, u = n.first;
677
673
  return o || t && u;
678
674
  });
679
- }, Vn = function(e, r) {
680
- r === void 0 && (r = {}), or(e, r, function(n, t) {
675
+ }, Hn = function(e, r) {
676
+ r === void 0 && (r = {}), tr(e, r, function(n, t) {
681
677
  var o = n.prev, u = n.last;
682
678
  return o || t && u;
683
679
  });
684
- }, ur = function(e, r, n) {
685
- var t, o = Gn(e, (t = r.onlyTabbable) !== null && t !== void 0 ? t : !0), u = o[n];
680
+ }, or = function(e, r, n) {
681
+ var t, o = Bn(e, (t = r.onlyTabbable) !== null && t !== void 0 ? t : !0), u = o[n];
686
682
  u && ge(u.node, r.focusOptions);
687
- }, qn = function(e, r) {
688
- r === void 0 && (r = {}), ur(e, r, "first");
689
- }, $n = function(e, r) {
690
- r === void 0 && (r = {}), ur(e, r, "last");
683
+ }, jn = function(e, r) {
684
+ r === void 0 && (r = {}), or(e, r, "first");
685
+ }, Vn = function(e, r) {
686
+ r === void 0 && (r = {}), or(e, r, "last");
691
687
  };
692
688
  function Fe(e) {
693
689
  setTimeout(e, 1);
694
690
  }
695
- var Kn = function(r) {
691
+ var qn = function(r) {
696
692
  return r && "current" in r ? r.current : r;
697
- }, ar = function() {
693
+ }, ur = function() {
698
694
  return document && document.activeElement === document.body;
699
- }, Xn = function() {
700
- return ar() || An();
701
- }, M = null, g = null, Le = function() {
695
+ }, $n = function() {
696
+ return ur() || Pn();
697
+ }, _ = null, g = null, Le = function() {
702
698
  return null;
703
- }, k = null, j = !1, Ee = !1, Yn = function() {
699
+ }, k = null, j = !1, Ee = !1, Kn = function() {
704
700
  return !0;
705
- }, zn = function(r) {
706
- return (M.whiteList || Yn)(r);
707
- }, Jn = function(r, n) {
701
+ }, Xn = function(r) {
702
+ return (_.whiteList || Kn)(r);
703
+ }, Yn = function(r, n) {
708
704
  k = {
709
705
  observerNode: r,
710
706
  portaledElement: n
711
707
  };
712
- }, Qn = function(r) {
708
+ }, zn = function(r) {
713
709
  return k && k.portaledElement === r;
714
710
  };
715
711
  function Re(e, r, n, t) {
@@ -727,43 +723,43 @@ function Re(e, r, n, t) {
727
723
  } while ((u += n) !== r);
728
724
  o && (o.node.tabIndex = 0);
729
725
  }
730
- var Zn = function(r) {
726
+ var Jn = function(r) {
731
727
  return r ? !!j : j === "meanwhile";
732
- }, et = function e(r, n, t) {
728
+ }, Qn = function e(r, n, t) {
733
729
  return n && (n.host === r && (!n.activeElement || t.contains(n.activeElement)) || n.parentNode && e(r, n.parentNode, t));
734
- }, rt = function(r, n) {
730
+ }, Zn = function(r, n) {
735
731
  return n.some(function(t) {
736
- return et(r, t, t);
732
+ return Qn(r, t, t);
737
733
  });
738
- }, ir = function(r) {
734
+ }, ar = function(r) {
739
735
  return G(r, /* @__PURE__ */ new Map());
740
- }, nt = function(r) {
741
- return !ir([r.parentNode]).some(function(n) {
736
+ }, et = function(r) {
737
+ return !ar([r.parentNode]).some(function(n) {
742
738
  return n.node === r;
743
739
  });
744
740
  }, K = function() {
745
741
  var r = !1;
746
- if (M) {
747
- var n = M, t = n.observed, o = n.persistentFocus, u = n.autoFocus, i = n.shards, c = n.crossFrame, v = n.focusOptions, f = n.noFocusGuards, b = t || k && k.portaledElement;
748
- if (ar() && g && g !== document.body && (!document.body.contains(g) || nt(g))) {
742
+ if (_) {
743
+ var n = _, t = n.observed, o = n.persistentFocus, u = n.autoFocus, i = n.shards, c = n.crossFrame, v = n.focusOptions, f = n.noFocusGuards, b = t || k && k.portaledElement;
744
+ if (ur() && g && g !== document.body && (!document.body.contains(g) || et(g))) {
749
745
  var s = Le();
750
746
  s && s.focus();
751
747
  }
752
748
  var a = document && document.activeElement;
753
749
  if (b) {
754
- var m = [b].concat(i.map(Kn).filter(Boolean)), d = function() {
755
- if (!Zn(c) || !f || !g || Ee)
750
+ var m = [b].concat(i.map(qn).filter(Boolean)), d = function() {
751
+ if (!Jn(c) || !f || !g || Ee)
756
752
  return !1;
757
- var h = ir(m), x = h.findIndex(function(S) {
753
+ var h = ar(m), x = h.findIndex(function(S) {
758
754
  var X = S.node;
759
755
  return X === g;
760
756
  });
761
757
  return x === 0 || x === h.length - 1;
762
758
  };
763
- if ((!a || zn(a)) && (o || d() || !Xn() || !g && u) && (b && !(er(m) || a && rt(a, m) || Qn(a)) && (document && !g && a && !u ? (a.blur && a.blur(), document.body.focus()) : (r = nr(m, g, {
759
+ if ((!a || Xn(a)) && (o || d() || !$n() || !g && u) && (b && !(Ze(m) || a && Zn(a, m) || zn(a)) && (document && !g && a && !u ? (a.blur && a.blur(), document.body.focus()) : (r = rr(m, g, {
764
760
  focusOptions: v
765
- }), k = {})), g = document && document.activeElement, g !== document.body && (Le = tr(g)), j = !1), document && a !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
766
- var p = document && document.activeElement, F = Rn(m), E = F.map(function(y) {
761
+ }), k = {})), g = document && document.activeElement, g !== document.body && (Le = nr(g)), j = !1), document && a !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
762
+ var p = document && document.activeElement, F = kn(m), E = F.map(function(y) {
767
763
  var h = y.node;
768
764
  return h;
769
765
  }).indexOf(p);
@@ -778,86 +774,82 @@ var Zn = function(r) {
778
774
  }
779
775
  }
780
776
  return r;
781
- }, cr = function(r) {
777
+ }, ir = function(r) {
782
778
  K() && r && (r.stopPropagation(), r.preventDefault());
783
779
  }, Oe = function() {
784
780
  return Fe(K);
785
- }, tt = function(r) {
781
+ }, rt = function(r) {
786
782
  var n = r.target, t = r.currentTarget;
787
- t.contains(n) || Jn(t, n);
788
- }, ot = function() {
783
+ t.contains(n) || Yn(t, n);
784
+ }, nt = function() {
789
785
  return null;
790
- };
791
- process.env.NODE_ENV !== "production" && Be.node.isRequired;
792
- var fr = function() {
786
+ }, cr = function() {
793
787
  Ee = !0;
794
- }, sr = function() {
788
+ }, fr = function() {
795
789
  Ee = !1, j = "just", Fe(function() {
796
790
  j = "meanwhile";
797
791
  });
798
- }, ut = function() {
799
- document.addEventListener("focusin", cr), document.addEventListener("focusout", Oe), window.addEventListener("focus", fr), window.addEventListener("blur", sr);
800
- }, at = function() {
801
- document.removeEventListener("focusin", cr), document.removeEventListener("focusout", Oe), window.removeEventListener("focus", fr), window.removeEventListener("blur", sr);
792
+ }, tt = function() {
793
+ document.addEventListener("focusin", ir), document.addEventListener("focusout", Oe), window.addEventListener("focus", cr), window.addEventListener("blur", fr);
794
+ }, ot = function() {
795
+ document.removeEventListener("focusin", ir), document.removeEventListener("focusout", Oe), window.removeEventListener("focus", cr), window.removeEventListener("blur", fr);
802
796
  };
803
- function it(e) {
797
+ function ut(e) {
804
798
  return e.filter(function(r) {
805
799
  var n = r.disabled;
806
800
  return !n;
807
801
  });
808
802
  }
809
- var dr = {
810
- moveFocusInside: nr,
811
- focusInside: er,
812
- focusNextElement: jn,
813
- focusPrevElement: Vn,
814
- focusFirstElement: qn,
815
- focusLastElement: $n,
816
- captureFocusRestore: tr
803
+ var sr = {
804
+ moveFocusInside: rr,
805
+ focusInside: Ze,
806
+ focusNextElement: Gn,
807
+ focusPrevElement: Hn,
808
+ focusFirstElement: jn,
809
+ focusLastElement: Vn,
810
+ captureFocusRestore: nr
817
811
  };
818
- function ct(e) {
812
+ function at(e) {
819
813
  var r = e.slice(-1)[0];
820
- r && !M && ut();
821
- var n = M, t = n && r && r.id === n.id;
822
- M = r, n && !t && (n.onDeactivation(), e.filter(function(o) {
814
+ r && !_ && tt();
815
+ var n = _, t = n && r && r.id === n.id;
816
+ _ = r, n && !t && (n.onDeactivation(), e.filter(function(o) {
823
817
  var u = o.id;
824
818
  return u === n.id;
825
- }).length || n.returnFocus(!r)), r ? (g = null, (!t || n.observed !== r.observed) && r.onActivation(dr), K(), Fe(K)) : (at(), g = null);
819
+ }).length || n.returnFocus(!r)), r ? (g = null, (!t || n.observed !== r.observed) && r.onActivation(sr), K(), Fe(K)) : (ot(), g = null);
826
820
  }
827
- He.assignSyncMedium(tt);
828
- je.assignMedium(Oe);
829
- rn.assignMedium(function(e) {
830
- return e(dr);
821
+ Ge.assignSyncMedium(rt);
822
+ He.assignMedium(Oe);
823
+ Zr.assignMedium(function(e) {
824
+ return e(sr);
831
825
  });
832
- const ft = sn(it, ct)(ot);
833
- var lr = /* @__PURE__ */ We(function(r, n) {
834
- return /* @__PURE__ */ N.createElement(de, B({
835
- sideCar: ft,
826
+ const it = cn(ut, at)(nt);
827
+ var dr = /* @__PURE__ */ We(function(r, n) {
828
+ return /* @__PURE__ */ I.createElement(de, B({
829
+ sideCar: it,
836
830
  ref: n
837
831
  }, r));
838
- }), vr = de.propTypes || {};
839
- vr.sideCar;
840
- var st = Jr(vr, ["sideCar"]);
841
- lr.propTypes = process.env.NODE_ENV !== "production" ? st : {};
842
- const dt = ({
832
+ }), ct = de.propTypes || {}, ft = Yr(ct, ["sideCar"]);
833
+ dr.propTypes = process.env.NODE_ENV !== "production" ? ft : {};
834
+ const st = ({
843
835
  children: e,
844
836
  theme: r,
845
837
  className: n,
846
838
  buttonCloseClassName: t
847
839
  }) => {
848
- const { content: o, onClose: u, closeBtnRef: i } = Ue(), { theme: c } = Kr(), v = q.toArray(e).find(
849
- (a) => $(a) && a.type === I.Header
840
+ const { content: o, onClose: u, closeBtnRef: i } = Be(), { theme: c } = Xr(), v = q.toArray(e).find(
841
+ (a) => $(a) && a.type === N.Header
850
842
  ), f = q.toArray(e).find(
851
- (a) => $(a) && a.type === I.Body
843
+ (a) => $(a) && a.type === N.Body
852
844
  ), b = q.toArray(e).find(
853
- (a) => $(a) && a.type === I.Footer
845
+ (a) => $(a) && a.type === N.Footer
854
846
  ), s = q.toArray(e).filter(
855
- (a) => !$(a) || ![I.Header, I.Body, I.Footer].includes(
847
+ (a) => !$(a) || ![N.Header, N.Body, N.Footer].includes(
856
848
  a.type
857
849
  )
858
850
  );
859
- return /* @__PURE__ */ _(lr, { returnFocus: !0, children: /* @__PURE__ */ _($r, { children: /* @__PURE__ */ Q("div", { className: "fixed inset-0 grid place-content-center", children: [
860
- /* @__PURE__ */ _(
851
+ return /* @__PURE__ */ M(dr, { returnFocus: !0, children: /* @__PURE__ */ M(Vr, { children: /* @__PURE__ */ Q("div", { className: "fixed inset-0 grid place-content-center", children: [
852
+ /* @__PURE__ */ M(
861
853
  "div",
862
854
  {
863
855
  className: "absolute inset-0 bg-black opacity-75",
@@ -869,7 +861,7 @@ const dt = ({
869
861
  "div",
870
862
  {
871
863
  className: Ae(
872
- Xr({
864
+ qr({
873
865
  className: n,
874
866
  theme: r ?? c
875
867
  })
@@ -883,15 +875,15 @@ const dt = ({
883
875
  {
884
876
  ref: i,
885
877
  className: Ae(
886
- Yr({
878
+ $r({
887
879
  className: t,
888
880
  theme: r ?? c
889
881
  })
890
882
  ),
891
883
  onClick: u,
892
884
  children: [
893
- /* @__PURE__ */ _(zr, {}),
894
- /* @__PURE__ */ _(Wr, { children: "Dismiss modal" })
885
+ /* @__PURE__ */ M(Kr, {}),
886
+ /* @__PURE__ */ M(Lr, { children: "Dismiss modal" })
895
887
  ]
896
888
  }
897
889
  ),
@@ -901,14 +893,14 @@ const dt = ({
901
893
  }
902
894
  )
903
895
  ] }) }) });
904
- }, I = ({ ...e }) => {
905
- const { isOpen: r } = Ue();
906
- return r ? Mr.createPortal(/* @__PURE__ */ _(dt, { ...e }), document.body) : null;
896
+ }, N = ({ ...e }) => {
897
+ const { isOpen: r } = Be();
898
+ return r ? kr.createPortal(/* @__PURE__ */ M(st, { ...e }), document.body) : null;
907
899
  };
908
- I.Header = Rr;
909
- I.Body = kr;
910
- I.Footer = Lr;
900
+ N.Header = _r;
901
+ N.Body = Cr;
902
+ N.Footer = Mr;
911
903
  export {
912
- I as M,
913
- dt as W
904
+ N as M,
905
+ st as W
914
906
  };