@slotted/react 0.1.0-beta.2 → 0.1.0-beta.3

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 (252) hide show
  1. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  6. package/dist/app-shell.js +1 -1
  7. package/dist/button-Db9f3Bxn.js +99 -0
  8. package/dist/button.js +2 -2
  9. package/dist/cascader-D1AhTyBL.js +1097 -0
  10. package/dist/cascader.js +1 -1
  11. package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
  12. package/dist/chart.js +1 -1
  13. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  14. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  15. package/dist/checkbox-group.js +1 -1
  16. package/dist/checkbox.js +1 -1
  17. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  18. package/dist/color-picker.js +1 -1
  19. package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
  20. package/dist/column-manager.js +1 -1
  21. package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
  22. package/dist/combobox.js +1 -1
  23. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  24. package/dist/command-palette.js +1 -1
  25. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  26. package/dist/context-menu.js +1 -1
  27. package/dist/currency-field-DD9A5U3D.js +455 -0
  28. package/dist/currency-field.js +1 -1
  29. package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
  30. package/dist/dashboard-grid.js +1 -1
  31. package/dist/{data-grid-rWMDNl-6.js → data-grid-BKaGMqIm.js} +19 -19
  32. package/dist/data-grid.js +1 -1
  33. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  34. package/dist/data-list.js +1 -1
  35. package/dist/{date-field-D_kLLTfL.js → date-field-CYcN6diW.js} +1 -1
  36. package/dist/date-field.js +1 -1
  37. package/dist/date-picker-4X-_2ltN.js +264 -0
  38. package/dist/date-picker.js +1 -1
  39. package/dist/date-range-picker-CNOAtHwU.js +471 -0
  40. package/dist/date-range-picker.js +1 -1
  41. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  42. package/dist/datetime-field.js +1 -1
  43. package/dist/datetime-picker-HDVlUhzy.js +629 -0
  44. package/dist/datetime-picker.js +1 -1
  45. package/dist/datetime-range-picker-IqOFJtdW.js +994 -0
  46. package/dist/datetime-range-picker.js +1 -1
  47. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  48. package/dist/dialog.js +1 -1
  49. package/dist/docs/app-shell.json +1 -1
  50. package/dist/docs/button-group.json +1 -0
  51. package/dist/docs/button-group.md +1 -1
  52. package/dist/docs/button.json +45 -11
  53. package/dist/docs/button.md +10 -6
  54. package/dist/docs/chart.json +7 -0
  55. package/dist/docs/chart.md +1 -0
  56. package/dist/docs/currency-field.json +32 -1
  57. package/dist/docs/currency-field.md +4 -1
  58. package/dist/docs/dialog.examples.md +26 -0
  59. package/dist/docs/dialog.json +14 -2
  60. package/dist/docs/dialog.md +1 -1
  61. package/dist/docs/list.json +26 -1
  62. package/dist/docs/list.md +4 -1
  63. package/dist/docs/popover.json +1 -1
  64. package/dist/docs/segmented-control.json +29 -1
  65. package/dist/docs/segmented-control.md +17 -1
  66. package/dist/docs/side-navigation.json +2 -2
  67. package/dist/docs/side-navigation.md +19 -4
  68. package/dist/docs/skills/theme-app/SKILL.md +5 -0
  69. package/dist/docs/split-button.json +1 -0
  70. package/dist/docs/split-button.md +1 -1
  71. package/dist/docs/stat-card.json +1 -0
  72. package/dist/docs/stat-card.md +1 -1
  73. package/dist/docs/table.examples.md +1 -1
  74. package/dist/docs/table.json +78 -2
  75. package/dist/docs/table.md +12 -1
  76. package/dist/docs/tabs.examples.md +1 -1
  77. package/dist/docs/tabs.json +1 -1
  78. package/dist/docs/toggle-group.json +14 -3
  79. package/dist/docs/toggle-group.md +3 -3
  80. package/dist/docs/toggle.json +12 -3
  81. package/dist/docs/toggle.md +3 -3
  82. package/dist/docs/tokens.md +25 -1
  83. package/dist/docs/top-navigation.examples.md +23 -5
  84. package/dist/docs/top-navigation.json +2 -2
  85. package/dist/docs/tour.json +1 -1
  86. package/dist/drawer-LXM44eso.js +757 -0
  87. package/dist/drawer.js +1 -1
  88. package/dist/entity-picker-CPDd73JR.js +1110 -0
  89. package/dist/entity-picker.js +1 -1
  90. package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
  91. package/dist/event-calendar.js +1 -1
  92. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  93. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  94. package/dist/field-group.js +1 -1
  95. package/dist/field.js +1 -1
  96. package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-D_xDcAp2.js} +20 -20
  97. package/dist/filter-bar.js +1 -1
  98. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  99. package/dist/hover-card.js +1 -1
  100. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  101. package/dist/import-export-center-DpY2DGBZ.js +813 -0
  102. package/dist/import-export-center.js +1 -1
  103. package/dist/index.js +85 -84
  104. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  105. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  106. package/dist/list-item.js +1 -1
  107. package/dist/list.js +1 -1
  108. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  109. package/dist/listbox.js +1 -1
  110. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  111. package/dist/loading-overlay.js +1 -1
  112. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  113. package/dist/markdown.js +1 -1
  114. package/dist/menu-parts-W58pVNUt.js +786 -0
  115. package/dist/menu.js +1 -1
  116. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  117. package/dist/menubar.js +1 -1
  118. package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
  119. package/dist/multi-select.js +1 -1
  120. package/dist/{notification-center-C4pEHJ3h.js → notification-center-Sz54IziY.js} +2 -2
  121. package/dist/notification-center.js +1 -1
  122. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  123. package/dist/number-field.js +1 -1
  124. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  125. package/dist/otp-input.js +1 -1
  126. package/dist/popover-Be7JWbGJ.js +475 -0
  127. package/dist/popover.js +1 -1
  128. package/dist/press-selection-DjOllE2B.js +29 -0
  129. package/dist/press-selection.js +2 -0
  130. package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
  131. package/dist/prompt-composer.js +1 -1
  132. package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
  133. package/dist/radio-group.js +1 -1
  134. package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
  135. package/dist/rating.js +1 -1
  136. package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
  137. package/dist/saved-views.js +1 -1
  138. package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
  139. package/dist/segmented-control.js +1 -1
  140. package/dist/{select-hRFp8nCj.js → select-DOFqPy26.js} +273 -273
  141. package/dist/select.js +1 -1
  142. package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
  143. package/dist/side-navigation.js +1 -1
  144. package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
  145. package/dist/slider.js +1 -1
  146. package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
  147. package/dist/split-button.js +1 -1
  148. package/dist/styles.css +1 -1
  149. package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
  150. package/dist/switch.js +1 -1
  151. package/dist/{table-Bd79IwDC.js → table-Cipi2c5X.js} +206 -173
  152. package/dist/table.js +2 -2
  153. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  154. package/dist/tags-input.js +1 -1
  155. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  156. package/dist/text-field.js +1 -1
  157. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  158. package/dist/textarea.js +1 -1
  159. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  160. package/dist/time-field.js +1 -1
  161. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  162. package/dist/time-picker.js +1 -1
  163. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  164. package/dist/time-range-picker.js +1 -1
  165. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  166. package/dist/toast.js +1 -1
  167. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  168. package/dist/toggle-group.js +1 -1
  169. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  170. package/dist/toolbar.js +1 -1
  171. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  172. package/dist/tooltip.js +1 -1
  173. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  174. package/dist/top-navigation.js +1 -1
  175. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  176. package/dist/tour.js +1 -1
  177. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  178. package/dist/transfer.js +1 -1
  179. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  180. package/dist/types/button/button-link.d.ts +1 -1
  181. package/dist/types/button/button-link.d.ts.map +1 -1
  182. package/dist/types/button/button-root.d.ts +5 -3
  183. package/dist/types/button/button-root.d.ts.map +1 -1
  184. package/dist/types/button/button.constants.d.ts +2 -1
  185. package/dist/types/button/button.constants.d.ts.map +1 -1
  186. package/dist/types/button/button.d.ts +1 -1
  187. package/dist/types/button/button.d.ts.map +1 -1
  188. package/dist/types/button/button.types.d.ts +9 -2
  189. package/dist/types/button/button.types.d.ts.map +1 -1
  190. package/dist/types/button/index.d.ts +1 -1
  191. package/dist/types/button/index.d.ts.map +1 -1
  192. package/dist/types/button/toggle-button.d.ts +1 -1
  193. package/dist/types/button/toggle-button.d.ts.map +1 -1
  194. package/dist/types/chart/chart.d.ts.map +1 -1
  195. package/dist/types/currency-field/currency-field.d.ts +1 -1
  196. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  197. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  198. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  199. package/dist/types/currency-field/index.d.ts +1 -1
  200. package/dist/types/currency-field/index.d.ts.map +1 -1
  201. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  202. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  203. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  204. package/dist/types/index.d.ts +1 -0
  205. package/dist/types/index.d.ts.map +1 -1
  206. package/dist/types/list/index.d.ts +1 -1
  207. package/dist/types/list/index.d.ts.map +1 -1
  208. package/dist/types/list/list-parts.d.ts +1 -1
  209. package/dist/types/list/list-parts.d.ts.map +1 -1
  210. package/dist/types/list/list.types.d.ts +12 -0
  211. package/dist/types/list/list.types.d.ts.map +1 -1
  212. package/dist/types/press-selection/index.d.ts +3 -0
  213. package/dist/types/press-selection/index.d.ts.map +1 -0
  214. package/dist/types/press-selection/press-selection.d.ts +23 -0
  215. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  216. package/dist/types/segmented-control/index.d.ts +1 -1
  217. package/dist/types/segmented-control/index.d.ts.map +1 -1
  218. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  219. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  220. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  221. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  222. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  223. package/dist/types/table/index.d.ts +2 -2
  224. package/dist/types/table/index.d.ts.map +1 -1
  225. package/dist/types/table/table-parts.d.ts +8 -2
  226. package/dist/types/table/table-parts.d.ts.map +1 -1
  227. package/dist/types/table/table.types.d.ts +28 -1
  228. package/dist/types/table/table.types.d.ts.map +1 -1
  229. package/dist/types/toggle/toggle.types.d.ts +1 -1
  230. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  231. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  232. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  233. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  234. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  235. package/dist/upload.js +1 -1
  236. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  237. package/dist/wizard.js +1 -1
  238. package/package.json +12 -7
  239. package/dist/button-DakQ-7Tm.js +0 -97
  240. package/dist/cascader-CARCYdHh.js +0 -1097
  241. package/dist/currency-field-B7OZ0hk7.js +0 -436
  242. package/dist/date-picker-DQ5SIhdA.js +0 -264
  243. package/dist/date-range-picker-lpB08hK_.js +0 -471
  244. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  245. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  246. package/dist/drawer-Dtospdqk.js +0 -758
  247. package/dist/entity-picker-Dm-y0RNE.js +0 -1111
  248. package/dist/import-export-center-CkZ_Ar9w.js +0 -813
  249. package/dist/menu-parts-BQej6eU9.js +0 -787
  250. package/dist/popover-DE22lSpV.js +0 -476
  251. package/dist/react-dom-DzrKNxo6.js +0 -273
  252. package/dist/toggle-group-DQBlI1TV.js +0 -140
@@ -1,20 +1,20 @@
1
- import { t as e } from "./react-dom-DzrKNxo6.js";
2
- import { n as t, t as n } from "./icon-T9Yt4tnm.js";
3
- import { r } from "./i18n-DpW8lqJ1.js";
4
- import { n as i } from "./icon-button-TnvMhK4o.js";
5
- import { createFocusScope as a, tabbables as o } from "@slotted/core/focus";
6
- import { createControllable as s } from "@slotted/core/state";
7
- import { createContext as c, useCallback as l, useContext as u, useEffect as d, useId as ee, useImperativeHandle as te, useLayoutEffect as ne, useMemo as re, useRef as f, useState as p } from "react";
8
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
1
+ import { n as e, t } from "./icon-T9Yt4tnm.js";
2
+ import { r as n } from "./i18n-DpW8lqJ1.js";
3
+ import { n as r } from "./icon-button-CCWkCDMs.js";
4
+ import { createFocusScope as i, tabbables as a } from "@slotted/core/focus";
5
+ import { createControllable as o } from "@slotted/core/state";
6
+ import { createContext as s, useCallback as c, useContext as l, useEffect as u, useId as ee, useImperativeHandle as te, useLayoutEffect as ne, useMemo as re, useRef as d, useState as f } from "react";
7
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
9
8
  import { createPresence as ie } from "@slotted/core/presence";
10
9
  import { createPortalRoot as ae, setPortalContainer as oe } from "@slotted/core/portal";
11
10
  import { createDismissableLayer as se } from "@slotted/core/dismissable-layer";
12
11
  import { createPositioner as ce } from "@slotted/core/positioner";
13
- import { tourMessages as le } from "@slotted/core/i18n";
14
- import { getLiveAnnouncer as ue } from "@slotted/core/live-announcer";
15
- import { cardFits as de, compactSide as fe, createTourController as pe, isCompactViewport as me, isTextEntry as he, keepOverTarget as ge, resolveTarget as _e, stageStep as ve, tourKey as ye, tourProgress as be, watchTarget as xe, writeTargetRect as Se } from "@slotted/core/tour";
12
+ import { createPortal as le } from "react-dom";
13
+ import { tourMessages as ue } from "@slotted/core/i18n";
14
+ import { getLiveAnnouncer as de } from "@slotted/core/live-announcer";
15
+ import { cardFits as fe, compactSide as pe, createTourController as me, isCompactViewport as he, isTextEntry as ge, keepOverTarget as _e, resolveTarget as ve, stageStep as ye, tourKey as be, tourProgress as xe, watchTarget as Se, writeTargetRect as Ce } from "@slotted/core/tour";
16
16
  //#region src/tour/tour-defaults.tsx
17
- var Ce = e(), we = {
17
+ var we = {
18
18
  align: "center",
19
19
  alignOffset: 0,
20
20
  arrow: !0,
@@ -33,18 +33,18 @@ var Ce = e(), we = {
33
33
  size: "md",
34
34
  spotlight: !0,
35
35
  targetTimeout: 0
36
- }, Te = c(we);
36
+ }, Te = s(we);
37
37
  function Ee() {
38
- return u(Te);
38
+ return l(Te);
39
39
  }
40
40
  function De({ children: e, container: t, ...n }) {
41
41
  let r = {
42
42
  ...Ee(),
43
43
  ...Oe(n)
44
44
  };
45
- return d(() => {
45
+ return u(() => {
46
46
  if (t !== void 0) return oe(t), () => oe(null);
47
- }, [t]), /* @__PURE__ */ m(Te.Provider, {
47
+ }, [t]), /* @__PURE__ */ p(Te.Provider, {
48
48
  value: r,
49
49
  children: e
50
50
  });
@@ -55,17 +55,17 @@ function Oe(e) {
55
55
  }
56
56
  //#endregion
57
57
  //#region src/tour/tour-parts.tsx
58
- function g(e, t) {
58
+ function h(e, t) {
59
59
  return (n) => {
60
60
  e?.(n), n.defaultPrevented || t(n);
61
61
  };
62
62
  }
63
- function _(e, ...t) {
63
+ function g(e, ...t) {
64
64
  for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
65
65
  }
66
66
  function ke({ children: e, ref: t, render: n, ...r }) {
67
- let i = T(), a = l((e) => {
68
- i.setContentNode(e), _(e, t);
67
+ let i = w(), a = c((e) => {
68
+ i.setContentNode(e), g(e, t);
69
69
  }, [t, i.setContentNode]), o = {
70
70
  ...r,
71
71
  children: e,
@@ -73,11 +73,11 @@ function ke({ children: e, ref: t, render: n, ...r }) {
73
73
  ...i.hasDescription ? { "aria-describedby": i.descriptionId } : {},
74
74
  ...i.modal ? { "aria-modal": !0 } : {},
75
75
  "data-part": "content",
76
- onKeyDown: g(r.onKeyDown, (e) => i.onKeyDown(e.nativeEvent)),
76
+ onKeyDown: h(r.onKeyDown, (e) => i.onKeyDown(e.nativeEvent)),
77
77
  role: r.role ?? "dialog",
78
78
  tabIndex: -1
79
79
  };
80
- return n === void 0 ? /* @__PURE__ */ m("div", {
80
+ return n === void 0 ? /* @__PURE__ */ p("div", {
81
81
  ...o,
82
82
  ref: a
83
83
  }) : n({
@@ -85,38 +85,38 @@ function ke({ children: e, ref: t, render: n, ...r }) {
85
85
  ref: a
86
86
  });
87
87
  }
88
- function v({ children: e, ref: t, render: n, ...r }) {
89
- let i = T(), a = e ?? i.step.media;
88
+ function Ae({ children: e, ref: t, render: n, ...r }) {
89
+ let i = w(), a = e ?? i.step.media;
90
90
  if (a == null) return null;
91
91
  let o = {
92
92
  ...r,
93
93
  children: a,
94
94
  "data-part": "media"
95
95
  };
96
- return n === void 0 ? /* @__PURE__ */ m("div", {
96
+ return n === void 0 ? /* @__PURE__ */ p("div", {
97
97
  ...o,
98
98
  ref: t
99
99
  }) : n({
100
100
  ...o,
101
- ref: (e) => _(e, t)
101
+ ref: (e) => g(e, t)
102
102
  });
103
103
  }
104
- function Ae({ children: e, ref: t, render: n, ...r }) {
104
+ function _({ children: e, ref: t, render: n, ...r }) {
105
105
  let i = {
106
106
  ...r,
107
107
  children: e,
108
108
  "data-part": "header"
109
109
  };
110
- return n === void 0 ? /* @__PURE__ */ m("div", {
110
+ return n === void 0 ? /* @__PURE__ */ p("div", {
111
111
  ...i,
112
112
  ref: t
113
113
  }) : n({
114
114
  ...i,
115
- ref: (e) => _(e, t)
115
+ ref: (e) => g(e, t)
116
116
  });
117
117
  }
118
- function y({ children: e, ref: t, render: n, ...r }) {
119
- let i = T();
118
+ function je({ children: e, ref: t, render: n, ...r }) {
119
+ let i = w();
120
120
  if (e === void 0 && i.total <= 1) return null;
121
121
  let a = {
122
122
  ...r,
@@ -126,122 +126,122 @@ function y({ children: e, ref: t, render: n, ...r }) {
126
126
  }),
127
127
  "data-part": "progress"
128
128
  };
129
- return n === void 0 ? /* @__PURE__ */ m("p", {
129
+ return n === void 0 ? /* @__PURE__ */ p("p", {
130
130
  ...a,
131
131
  ref: t
132
132
  }) : n({
133
133
  ...a,
134
- ref: (e) => _(e, t)
134
+ ref: (e) => g(e, t)
135
135
  });
136
136
  }
137
- function b({ children: e, onClick: r, ref: i, render: a, ...o }) {
138
- let s = T();
137
+ function v({ children: n, onClick: r, ref: i, render: a, ...o }) {
138
+ let s = w();
139
139
  if (s.step.actions?.close === !1) return null;
140
140
  let c = {
141
141
  "aria-label": s.t("close"),
142
142
  ...o,
143
- children: e ?? /* @__PURE__ */ m(n, {
143
+ children: n ?? /* @__PURE__ */ p(t, {
144
144
  size: "sm",
145
- children: /* @__PURE__ */ m(t, { name: "x" })
145
+ children: /* @__PURE__ */ p(e, { name: "x" })
146
146
  }),
147
147
  "data-part": "close",
148
- onClick: g(r, (e) => s.close("close", {
148
+ onClick: h(r, (e) => s.close("close", {
149
149
  detail: e.detail,
150
150
  dismiss: !0
151
151
  })),
152
152
  type: "button"
153
153
  };
154
- return a === void 0 ? /* @__PURE__ */ m("button", {
154
+ return a === void 0 ? /* @__PURE__ */ p("button", {
155
155
  ...c,
156
156
  ref: i
157
157
  }) : a({
158
158
  ...c,
159
- ref: (e) => _(e, i)
159
+ ref: (e) => g(e, i)
160
160
  });
161
161
  }
162
- function x({ children: e, ref: t, render: n, ...r }) {
163
- let i = T(), a = e ?? i.step.title, o = a != null && a !== !1;
164
- d(() => (i.setHasTitle(o), () => i.setHasTitle(!1)), [o, i.setHasTitle]);
165
- let s = l((e) => {
166
- i.setTitleNode(e), _(e, t);
162
+ function y({ children: e, ref: t, render: n, ...r }) {
163
+ let i = w(), a = e ?? i.step.title, o = a != null && a !== !1;
164
+ u(() => (i.setHasTitle(o), () => i.setHasTitle(!1)), [o, i.setHasTitle]);
165
+ let s = c((e) => {
166
+ i.setTitleNode(e), g(e, t);
167
167
  }, [t, i.setTitleNode]);
168
168
  if (!o) return null;
169
- let c = {
169
+ let l = {
170
170
  ...r,
171
171
  children: a,
172
172
  "data-part": "title",
173
173
  id: i.titleId
174
174
  };
175
- return n === void 0 ? /* @__PURE__ */ m("h2", {
176
- ...c,
175
+ return n === void 0 ? /* @__PURE__ */ p("h2", {
176
+ ...l,
177
177
  ref: s
178
178
  }) : n({
179
- ...c,
179
+ ...l,
180
180
  ref: s
181
181
  });
182
182
  }
183
- function S({ children: e, ref: t, render: n, ...r }) {
184
- let i = T(), a = e ?? i.step.description, o = a != null && a !== !1;
185
- if (d(() => (i.setHasDescription(o), () => i.setHasDescription(!1)), [o, i.setHasDescription]), !o) return null;
183
+ function b({ children: e, ref: t, render: n, ...r }) {
184
+ let i = w(), a = e ?? i.step.description, o = a != null && a !== !1;
185
+ if (u(() => (i.setHasDescription(o), () => i.setHasDescription(!1)), [o, i.setHasDescription]), !o) return null;
186
186
  let s = {
187
187
  ...r,
188
188
  children: a,
189
189
  "data-part": "description",
190
190
  id: i.descriptionId
191
191
  };
192
- return n === void 0 ? /* @__PURE__ */ m("p", {
192
+ return n === void 0 ? /* @__PURE__ */ p("p", {
193
193
  ...s,
194
194
  ref: t
195
195
  }) : n({
196
196
  ...s,
197
- ref: (e) => _(e, t)
197
+ ref: (e) => g(e, t)
198
198
  });
199
199
  }
200
- function C({ children: e, ref: t, render: n, ...r }) {
201
- let i = T(), a = e ?? i.step.content;
200
+ function x({ children: e, ref: t, render: n, ...r }) {
201
+ let i = w(), a = e ?? i.step.content;
202
202
  if (a == null || a === !1) return null;
203
203
  let o = {
204
204
  ...r,
205
205
  children: a,
206
206
  "data-part": "body"
207
207
  };
208
- return n === void 0 ? /* @__PURE__ */ m("div", {
208
+ return n === void 0 ? /* @__PURE__ */ p("div", {
209
209
  ...o,
210
210
  ref: t
211
211
  }) : n({
212
212
  ...o,
213
- ref: (e) => _(e, t)
213
+ ref: (e) => g(e, t)
214
214
  });
215
215
  }
216
- function je({ children: e, ref: t, render: n, ...r }) {
216
+ function S({ children: e, ref: t, render: n, ...r }) {
217
217
  let i = {
218
218
  ...r,
219
219
  children: e,
220
220
  "data-part": "footer"
221
221
  };
222
- return n === void 0 ? /* @__PURE__ */ m("div", {
222
+ return n === void 0 ? /* @__PURE__ */ p("div", {
223
223
  ...i,
224
224
  ref: t
225
225
  }) : n({
226
226
  ...i,
227
- ref: (e) => _(e, t)
227
+ ref: (e) => g(e, t)
228
228
  });
229
229
  }
230
- function w(e, t, n, r, a, o = {}) {
230
+ function C(e, t, n, i, a, o = {}) {
231
231
  let { children: s, onClick: c, render: l, ...u } = n;
232
- return /* @__PURE__ */ m(i, {
232
+ return /* @__PURE__ */ p(r, {
233
233
  ...u,
234
234
  ...o.loading === void 0 ? {} : { loading: o.loading },
235
235
  ...o.loadingMessage === void 0 ? {} : { messages: { loading: o.loadingMessage } },
236
- onClick: g(c, r),
236
+ onClick: h(c, i),
237
237
  render: ({ ref: t, ...n }) => {
238
238
  let r = {
239
239
  ...n,
240
240
  "data-part": e,
241
241
  ...o.last ? { "data-last": "" } : {},
242
- ref: (e) => _(e, t)
242
+ ref: (e) => g(e, t)
243
243
  };
244
- return l === void 0 ? /* @__PURE__ */ m("button", { ...r }) : l(r);
244
+ return l === void 0 ? /* @__PURE__ */ p("button", { ...r }) : l(r);
245
245
  },
246
246
  size: "sm",
247
247
  tone: a.tone,
@@ -250,22 +250,22 @@ function w(e, t, n, r, a, o = {}) {
250
250
  });
251
251
  }
252
252
  function Me(e) {
253
- let t = T();
254
- return t.step.actions?.skip ?? (!t.last && t.total > 1) ? w("skip", t.t("skip"), e, (e) => t.close("skip", { detail: e.detail }), {
253
+ let t = w();
254
+ return t.step.actions?.skip ?? (!t.last && t.total > 1) ? C("skip", t.t("skip"), e, (e) => t.close("skip", { detail: e.detail }), {
255
255
  tone: "secondary",
256
256
  variant: "ghost"
257
257
  }) : null;
258
258
  }
259
259
  function Ne(e) {
260
- let t = T();
261
- return t.step.actions?.prev ?? !t.first ? w("prev", t.t("prev"), e, (e) => t.prev({ detail: e.detail }), {
260
+ let t = w();
261
+ return t.step.actions?.prev ?? !t.first ? C("prev", t.t("prev"), e, (e) => t.prev({ detail: e.detail }), {
262
262
  tone: "secondary",
263
263
  variant: "outline"
264
264
  }) : null;
265
265
  }
266
266
  function Pe(e) {
267
- let t = T();
268
- return t.step.actions?.next ?? t.step.advanceOn === void 0 ? w("next", t.t(t.last ? "done" : "next"), e, (e) => t.next({ detail: e.detail }), {
267
+ let t = w();
268
+ return t.step.actions?.next ?? t.step.advanceOn === void 0 ? C("next", t.t(t.last ? "done" : "next"), e, (e) => t.next({ detail: e.detail }), {
269
269
  tone: "accent",
270
270
  variant: "solid"
271
271
  }, {
@@ -276,14 +276,14 @@ function Pe(e) {
276
276
  }
277
277
  //#endregion
278
278
  //#region src/tour/tour.tsx
279
- var Fe = c(void 0);
280
- function T() {
281
- let e = u(Fe);
279
+ var Fe = s(void 0);
280
+ function w() {
281
+ let e = l(Fe);
282
282
  if (e === void 0) throw Error("Every Tour part has to be inside a Tour.");
283
283
  return e;
284
284
  }
285
- function E() {
286
- return T();
285
+ function T() {
286
+ return w();
287
287
  }
288
288
  function Ie(e, t) {
289
289
  return e === void 0 ? null : typeof e == "string" ? t.querySelector(e) : e instanceof Element ? e : e.current ?? null;
@@ -305,34 +305,34 @@ var Be = {
305
305
  outsidePress: "outsidePress",
306
306
  programmatic: "programmatic"
307
307
  };
308
- function Ve(e) {
309
- let { align: t, alignOffset: n, arrow: i, arrowPadding: c, autoFocus: u, children: oe, closeOnEscape: we, closeOnOutsidePress: Te, collisionPadding: De, defaultOpen: Oe, defaultStep: g, keyboardNavigation: _, layout: ke, messages: v, missing: Ae, modal: y, onOpenChange: b, onStepChange: x, open: S, ref: C, scrollIntoView: je, side: w, sideOffset: Me, size: Ne, spotlight: Pe, step: T, steps: E, targetTimeout: Ve } = e, D = Ee(), We = ee(), [Ge, Ke] = p(Oe ?? !1), [qe, Je] = p(g ?? null), O = S ?? Ge, k = T === void 0 ? qe : T, [A, Ye] = p(null), [j, Xe] = p(null), [M, Ze] = p({
308
+ function E(e) {
309
+ let { align: t, alignOffset: r, arrow: s, arrowPadding: l, autoFocus: oe, children: we, closeOnEscape: Te, closeOnOutsidePress: De, collisionPadding: Oe, defaultOpen: h, defaultStep: g, keyboardNavigation: ke, layout: Ae, messages: _, missing: je, modal: v, onOpenChange: y, onStepChange: b, open: x, ref: S, scrollIntoView: C, side: Me, sideOffset: Ne, size: Pe, spotlight: w, step: T, steps: E, targetTimeout: Ue } = e, D = Ee(), We = ee(), [Ge, Ke] = f(h ?? !1), [qe, Je] = f(g ?? null), O = x ?? Ge, k = T === void 0 ? qe : T, [A, Ye] = f(null), [j, Xe] = f(null), [M, Ze] = f({
310
310
  target: null,
311
311
  move: "rest"
312
- }), [Qe, $e] = p(!1), [et, tt] = p(!1), [nt, rt] = p(!1), [it, at] = p("unmounted"), [ot, st] = p(null), [N, ct] = p(null), [P, lt] = p(null), [ut, dt] = p(null), [F, ft] = p(null), [pt, mt] = p(null), [ht, gt] = p(!1), [_t, vt] = p(!1), [yt, bt] = p(!1), xt = ke ?? D.layout, St = xt === "compact" || xt === "auto" && yt, [Ct, wt] = p(!0), I = {
312
+ }), [Qe, $e] = f(!1), [et, tt] = f(!1), [nt, rt] = f(!1), [it, at] = f("unmounted"), [ot, st] = f(null), [N, ct] = f(null), [P, lt] = f(null), [ut, dt] = f(null), [F, ft] = f(null), [pt, mt] = f(null), [ht, gt] = f(!1), [_t, vt] = f(!1), [yt, bt] = f(!1), xt = Ae ?? D.layout, St = xt === "compact" || xt === "auto" && yt, [Ct, wt] = f(!0), I = {
313
313
  align: j?.step.align ?? t ?? D.align,
314
- alignOffset: n ?? D.alignOffset,
315
- arrow: i ?? D.arrow,
316
- arrowPadding: c ?? D.arrowPadding,
317
- autoFocus: u ?? D.autoFocus,
318
- closeOnEscape: we ?? D.closeOnEscape,
319
- closeOnOutsidePress: Te ?? D.closeOnOutsidePress,
320
- collisionPadding: De ?? D.collisionPadding,
321
- keyboardNavigation: _ ?? D.keyboardNavigation,
322
- missing: Ae ?? D.missing,
323
- modal: (y ?? D.modal) && j?.step.interactive !== !0,
324
- scrollIntoView: je ?? D.scrollIntoView,
325
- side: fe(j?.step.side ?? w ?? D.side, St),
326
- sideOffset: Me ?? D.sideOffset,
327
- size: Ne ?? D.size,
328
- spotlight: j?.step.spotlight ?? Pe ?? D.spotlight,
329
- targetTimeout: Ve ?? D.targetTimeout
330
- }, L = f({
314
+ alignOffset: r ?? D.alignOffset,
315
+ arrow: s ?? D.arrow,
316
+ arrowPadding: l ?? D.arrowPadding,
317
+ autoFocus: oe ?? D.autoFocus,
318
+ closeOnEscape: Te ?? D.closeOnEscape,
319
+ closeOnOutsidePress: De ?? D.closeOnOutsidePress,
320
+ collisionPadding: Oe ?? D.collisionPadding,
321
+ keyboardNavigation: ke ?? D.keyboardNavigation,
322
+ missing: je ?? D.missing,
323
+ modal: (v ?? D.modal) && j?.step.interactive !== !0,
324
+ scrollIntoView: C ?? D.scrollIntoView,
325
+ side: pe(j?.step.side ?? Me ?? D.side, St),
326
+ sideOffset: Ne ?? D.sideOffset,
327
+ size: Pe ?? D.size,
328
+ spotlight: j?.step.spotlight ?? w ?? D.spotlight,
329
+ targetTimeout: Ue ?? D.targetTimeout
330
+ }, L = d({
331
331
  currentId: k,
332
332
  isOpen: O,
333
- onOpenChange: b,
334
- onStepChange: x,
335
- open: S,
333
+ onOpenChange: y,
334
+ onStepChange: b,
335
+ open: x,
336
336
  props: e,
337
337
  settings: I,
338
338
  step: T,
@@ -341,18 +341,18 @@ function Ve(e) {
341
341
  L.current = {
342
342
  currentId: k,
343
343
  isOpen: O,
344
- onOpenChange: b,
345
- onStepChange: x,
346
- open: S,
344
+ onOpenChange: y,
345
+ onStepChange: b,
346
+ open: x,
347
347
  props: e,
348
348
  settings: I,
349
349
  step: T,
350
350
  steps: E
351
351
  };
352
- let Tt = f(void 0), R = l((e, t, n, r) => {
352
+ let Tt = d(void 0), R = c((e, t, n, r) => {
353
353
  let i = L.current;
354
354
  if (e === i.isOpen) return;
355
- let a = !1, o = s({
355
+ let a = !1, s = o({
356
356
  controlled: i.open,
357
357
  initial: i.isOpen,
358
358
  onRequest: (e) => {
@@ -369,14 +369,14 @@ function Ve(e) {
369
369
  }), a = e.cancelled;
370
370
  }
371
371
  }).request(e, t, r);
372
- a || (e || (Tt.current = n), o && Ke(e));
373
- }, []), Et = l((e, t, n) => {
372
+ a || (e || (Tt.current = n), s && Ke(e));
373
+ }, []), Et = c((e, t, n) => {
374
374
  let r = L.current;
375
375
  if (e === r.currentId) {
376
376
  z.sync(e);
377
377
  return;
378
378
  }
379
- let i = !1, a = s({
379
+ let i = !1, a = o({
380
380
  controlled: r.step,
381
381
  initial: r.currentId,
382
382
  onRequest: (e) => {
@@ -393,7 +393,7 @@ function Ve(e) {
393
393
  }
394
394
  }).request(e, t, n);
395
395
  !i && a && Je(e);
396
- }, []), [z] = p(() => pe({
396
+ }, []), [z] = f(() => me({
397
397
  steps: () => L.current.steps,
398
398
  settings: () => ({
399
399
  missing: L.current.settings.missing,
@@ -410,7 +410,7 @@ function Ve(e) {
410
410
  requestStep: (e, t, n) => Et(e, t, n),
411
411
  requestClose: (e, t, n) => R(!1, t, e, n)
412
412
  }));
413
- d(() => () => z.destroy(), [z]), d(() => {
413
+ u(() => () => z.destroy(), [z]), u(() => {
414
414
  if (O) {
415
415
  z.sync(k);
416
416
  return;
@@ -420,25 +420,25 @@ function Ve(e) {
420
420
  z,
421
421
  k,
422
422
  O
423
- ]), d(() => {
423
+ ]), u(() => {
424
424
  if (O) return;
425
425
  let e = Tt.current;
426
426
  Tt.current = void 0, e !== void 0 && e !== "close" && Je(null);
427
- }, [O]), d(() => {
427
+ }, [O]), u(() => {
428
428
  L.current.isOpen && A !== null && (E.some((e) => e.id === A.step.id) || z.sync(null));
429
429
  }, [
430
430
  z,
431
431
  A,
432
432
  E
433
433
  ]);
434
- let Dt = f(null);
434
+ let Dt = d(null);
435
435
  Dt.current = N;
436
- let Ot = f(null);
436
+ let Ot = d(null);
437
437
  Ot.current = j;
438
- let kt = f(null);
438
+ let kt = d(null);
439
439
  kt.current = M.target;
440
- let B = f(null);
441
- d(() => {
440
+ let B = d(null);
441
+ u(() => {
442
442
  if (A === null) {
443
443
  B.current?.abort(), B.current = null, L.current.isOpen || (Xe(null), $e(!1));
444
444
  return;
@@ -447,7 +447,7 @@ function Ve(e) {
447
447
  let e = new AbortController();
448
448
  B.current = e;
449
449
  let t = Ot.current === null;
450
- ve({
450
+ ye({
451
451
  root: Dt.current ?? A.target ?? H.current,
452
452
  from: t ? void 0 : kt.current,
453
453
  to: A.target,
@@ -464,7 +464,7 @@ function Ve(e) {
464
464
  }
465
465
  tt(!1);
466
466
  let t = A.target?.getBoundingClientRect();
467
- wt(t === void 0 || de({
467
+ wt(t === void 0 || fe({
468
468
  x: t.left,
469
469
  y: t.top,
470
470
  width: t.width,
@@ -475,9 +475,9 @@ function Ve(e) {
475
475
  })), Xe(A), $e(!1);
476
476
  }
477
477
  });
478
- }, [A]), d(() => () => B.current?.abort(), []);
479
- let V = f(null), H = f(null), At = f(null), jt = f(null), [Mt, Nt] = p(null), Pt = f(!1);
480
- d(() => {
478
+ }, [A]), u(() => () => B.current?.abort(), []);
479
+ let V = d(null), H = d(null), At = d(null), jt = d(null), [Mt, Nt] = f(null), Pt = d(!1);
480
+ u(() => {
481
481
  let e = ie({
482
482
  present: !1,
483
483
  onStatusChange: at
@@ -486,12 +486,12 @@ function Ve(e) {
486
486
  e.destroy(), V.current = null;
487
487
  };
488
488
  }, []);
489
- let U = O && j !== null, [Ft, It] = p(!1);
490
- d(() => {
489
+ let U = O && j !== null, [Ft, It] = f(!1);
490
+ u(() => {
491
491
  V.current?.sync(U);
492
- }, [U]), d(() => {
492
+ }, [U]), u(() => {
493
493
  V.current?.setNode(N);
494
- }, [N]), d(() => {
494
+ }, [N]), u(() => {
495
495
  if (N === null || !U) {
496
496
  It(!1);
497
497
  return;
@@ -499,38 +499,38 @@ function Ve(e) {
499
499
  let e = requestAnimationFrame(() => It(!0));
500
500
  return () => cancelAnimationFrame(e);
501
501
  }, [N, U]);
502
- let Lt = f(null);
502
+ let Lt = d(null);
503
503
  j !== null && (Lt.current = j);
504
- let W = j ?? Lt.current, G = W !== null && (U || it !== "unmounted"), Rt = W?.step.messages, zt = re(() => Rt === void 0 ? v : {
505
- ...v,
504
+ let W = j ?? Lt.current, G = W !== null && (U || it !== "unmounted"), Rt = W?.step.messages, zt = re(() => Rt === void 0 ? _ : {
505
+ ..._,
506
506
  ...Rt
507
- }, [v, Rt]), Bt = r(le, zt);
508
- d(() => {
507
+ }, [_, Rt]), Bt = n(ue, zt);
508
+ u(() => {
509
509
  if (!G) {
510
510
  st(null);
511
511
  return;
512
512
  }
513
- let e = Lt.current?.target ?? H.current ?? L.current.steps.map((e) => _e(e.target, document)).find((e) => e !== null) ?? null, t = ae({ origin: e });
513
+ let e = Lt.current?.target ?? H.current ?? L.current.steps.map((e) => ve(e.target, document)).find((e) => e !== null) ?? null, t = ae({ origin: e });
514
514
  return At.current = t, st(t.container), () => {
515
515
  At.current = null, t.release();
516
516
  };
517
517
  }, [G]);
518
518
  let K = W?.target ?? null, q = K !== null && Ct, Vt = I.spotlight && M.target !== null;
519
- d(() => {
519
+ u(() => {
520
520
  if (!G) return;
521
- let e = () => bt(me(window));
521
+ let e = () => bt(he(window));
522
522
  return e(), window.addEventListener("resize", e, { passive: !0 }), () => window.removeEventListener("resize", e);
523
523
  }, [G]);
524
- let J = f(() => {}), Y = M.target;
525
- d(() => {
524
+ let J = d(() => {}), Y = M.target;
525
+ u(() => {
526
526
  if (N !== null) {
527
527
  if (Y === null) {
528
- Se(N, null);
528
+ Ce(N, null);
529
529
  return;
530
530
  }
531
- return xe(Y, {
531
+ return Se(Y, {
532
532
  onRect: (e) => {
533
- Se(N, e), Y === Ot.current?.target && wt(de(e, {
533
+ Ce(N, e), Y === Ot.current?.target && wt(fe(e, {
534
534
  width: window.innerWidth,
535
535
  height: window.innerHeight
536
536
  }));
@@ -584,7 +584,7 @@ function Ve(e) {
584
584
  K
585
585
  ]);
586
586
  let X = I.modal, Yt = I.closeOnEscape, Xt = I.closeOnOutsidePress, Zt = W?.step.interactive === !0 ? K : null;
587
- d(() => {
587
+ u(() => {
588
588
  if (N === null || P === null || !U) return;
589
589
  let e = se(N, {
590
590
  back: X,
@@ -608,20 +608,20 @@ function Ve(e) {
608
608
  N,
609
609
  P,
610
610
  U
611
- ]), d(() => {
611
+ ]), u(() => {
612
612
  if (Mt !== null && Zt !== null) return Mt.addBranch(Zt);
613
613
  }, [Zt, Mt]), ne(() => {
614
614
  let e = N?.parentElement ?? null;
615
- if (U && Y !== null && e !== null) return ge(e, Y, () => {
615
+ if (U && Y !== null && e !== null) return _e(e, Y, () => {
616
616
  At.current?.raise(), jt.current?.raise();
617
617
  });
618
618
  }, [
619
619
  N,
620
620
  Y,
621
621
  U
622
- ]), d(() => {
622
+ ]), u(() => {
623
623
  if (N === null || !U || !X) return;
624
- let e = a(N, {
624
+ let e = i(N, {
625
625
  contain: !0,
626
626
  initial: !1,
627
627
  restore: !1
@@ -632,13 +632,13 @@ function Ve(e) {
632
632
  N,
633
633
  U
634
634
  ]);
635
- let Z = f(null);
635
+ let Z = d(null);
636
636
  ne(() => {
637
637
  if (O && H.current === null) {
638
638
  let e = document.activeElement;
639
639
  H.current = e instanceof HTMLElement && e !== document.body ? e : null;
640
640
  }
641
- }, [O]), d(() => {
641
+ }, [O]), u(() => {
642
642
  if (!U || !Ft || F === null || j === null) return;
643
643
  let e = j.step.id;
644
644
  if (Z.current === e) return;
@@ -651,7 +651,7 @@ function Ve(e) {
651
651
  }
652
652
  if (!t) {
653
653
  let e = j.step.announcement ?? pt?.textContent ?? "";
654
- e !== "" && ue(document).announce(e);
654
+ e !== "" && de(document).announce(e);
655
655
  }
656
656
  }, [
657
657
  Ft,
@@ -660,7 +660,7 @@ function Ve(e) {
660
660
  j,
661
661
  pt,
662
662
  U
663
- ]), d(() => {
663
+ ]), u(() => {
664
664
  if (O) return;
665
665
  let e = Z.current !== null;
666
666
  Z.current = null;
@@ -672,7 +672,7 @@ function Ve(e) {
672
672
  r?.isConnected && r.focus();
673
673
  }, [O, N]);
674
674
  let Q = W?.step.advanceOn;
675
- d(() => {
675
+ u(() => {
676
676
  if (!U || K === null || Q === void 0) return;
677
677
  let e = (e) => z.next(ze(e), e);
678
678
  return K.addEventListener(Q, e), () => K.removeEventListener(Q, e);
@@ -681,7 +681,7 @@ function Ve(e) {
681
681
  z,
682
682
  K,
683
683
  U
684
- ]), te(C, () => ({
684
+ ]), te(S, () => ({
685
685
  close: (e = "close") => R(!1, "programmatic", e, void 0),
686
686
  goTo: (e) => z.goTo(e, "programmatic"),
687
687
  next: () => z.next("programmatic"),
@@ -695,18 +695,18 @@ function Ve(e) {
695
695
  R,
696
696
  Et
697
697
  ]);
698
- let Qt = l((e) => {
698
+ let Qt = c((e) => {
699
699
  if (!L.current.settings.keyboardNavigation || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
700
700
  let t = e.target instanceof Element ? e.target : null;
701
- if (he(t)) return;
702
- let n = ye(e.key, t === null ? "ltr" : Le(t));
701
+ if (ge(t)) return;
702
+ let n = be(e.key, t === null ? "ltr" : Le(t));
703
703
  n !== null && (e.preventDefault(), n === "next" ? z.next("keyboard", e) : z.prev("keyboard", e));
704
704
  }, [z]);
705
705
  if (!G || W === null || ot === null) return null;
706
- let $ = be(E, W.step.id), $t = {
706
+ let $ = xe(E, W.step.id), $t = {
707
707
  close: (e, t) => {
708
708
  let n = typeof t == "object" && !!t && "dismiss" in t;
709
- R(!1, n ? "dismiss" : He(t), e, t);
709
+ R(!1, n ? "dismiss" : Ve(t), e, t);
710
710
  },
711
711
  descriptionId: `${We}description`,
712
712
  first: $.first,
@@ -716,12 +716,12 @@ function Ve(e) {
716
716
  last: $.last,
717
717
  missing: W.missing,
718
718
  modal: I.modal,
719
- next: (e) => z.next(He(e), e),
719
+ next: (e) => z.next(Ve(e), e),
720
720
  onKeyDown: Qt,
721
721
  pending: nt,
722
722
  position: $.position,
723
723
  press: (e) => Re(e),
724
- prev: (e) => z.prev(He(e), e),
724
+ prev: (e) => z.prev(Ve(e), e),
725
725
  setContentNode: ft,
726
726
  setHasDescription: vt,
727
727
  setHasTitle: gt,
@@ -731,15 +731,15 @@ function Ve(e) {
731
731
  target: W.target,
732
732
  titleId: `${We}title`,
733
733
  total: $.total
734
- }, en = !I.modal && /* @__PURE__ */ m("span", {
734
+ }, en = !I.modal && /* @__PURE__ */ p("span", {
735
735
  "aria-hidden": "true",
736
736
  "data-part": "focus-guard",
737
737
  onFocus: () => {
738
738
  let e = null;
739
- K instanceof HTMLElement && (e = o(K)[0] ?? (K.tabIndex >= 0 ? K : null)), (e ?? F)?.focus();
739
+ K instanceof HTMLElement && (e = a(K)[0] ?? (K.tabIndex >= 0 ? K : null)), (e ?? F)?.focus();
740
740
  },
741
741
  tabIndex: 0
742
- }), tn = /* @__PURE__ */ h("div", {
742
+ }), tn = /* @__PURE__ */ m("div", {
743
743
  "data-align": q ? I.align : void 0,
744
744
  "data-compact": St ? "" : void 0,
745
745
  "data-missing": W.missing ? "" : void 0,
@@ -752,11 +752,11 @@ function Ve(e) {
752
752
  "data-spotlight": Vt ? "" : void 0,
753
753
  "data-ui": "tour",
754
754
  ref: ct,
755
- children: [(I.modal || Vt) && /* @__PURE__ */ m("div", {
755
+ children: [(I.modal || Vt) && /* @__PURE__ */ p("div", {
756
756
  "aria-hidden": "true",
757
757
  "data-part": "backdrop",
758
- children: Vt && /* @__PURE__ */ m("div", { "data-part": "spotlight" })
759
- }), /* @__PURE__ */ h("div", {
758
+ children: Vt && /* @__PURE__ */ p("div", { "data-part": "spotlight" })
759
+ }), /* @__PURE__ */ m("div", {
760
760
  "data-leaving": Qe ? "" : void 0,
761
761
  "data-part": "surface",
762
762
  "data-placement": q ? "anchored" : "centered",
@@ -764,36 +764,36 @@ function Ve(e) {
764
764
  ref: lt,
765
765
  children: [
766
766
  en,
767
- q && I.arrow && /* @__PURE__ */ m("div", {
767
+ q && I.arrow && /* @__PURE__ */ p("div", {
768
768
  "data-part": "arrow",
769
769
  ref: dt
770
770
  }),
771
- oe ?? /* @__PURE__ */ m(Ue, {}),
771
+ we ?? /* @__PURE__ */ p(He, {}),
772
772
  en
773
773
  ]
774
774
  })]
775
775
  });
776
- return /* @__PURE__ */ m(Fe.Provider, {
776
+ return /* @__PURE__ */ p(Fe.Provider, {
777
777
  value: $t,
778
- children: (0, Ce.createPortal)(tn, ot)
778
+ children: le(tn, ot)
779
779
  });
780
780
  }
781
- function He(e) {
781
+ function Ve(e) {
782
782
  return e instanceof Event ? ze(e) : typeof e == "object" && e && "detail" in e ? Re(e) : "programmatic";
783
783
  }
784
- function Ue() {
785
- return /* @__PURE__ */ h(ke, { children: [
786
- /* @__PURE__ */ m(v, {}),
787
- /* @__PURE__ */ h(Ae, { children: [/* @__PURE__ */ m(y, {}), /* @__PURE__ */ m(b, {})] }),
788
- /* @__PURE__ */ m(x, {}),
789
- /* @__PURE__ */ m(S, {}),
790
- /* @__PURE__ */ m(C, {}),
791
- /* @__PURE__ */ h(je, { children: [
792
- /* @__PURE__ */ m(Me, {}),
793
- /* @__PURE__ */ m(Ne, {}),
794
- /* @__PURE__ */ m(Pe, {})
784
+ function He() {
785
+ return /* @__PURE__ */ m(ke, { children: [
786
+ /* @__PURE__ */ p(Ae, {}),
787
+ /* @__PURE__ */ m(_, { children: [/* @__PURE__ */ p(je, {}), /* @__PURE__ */ p(v, {})] }),
788
+ /* @__PURE__ */ p(y, {}),
789
+ /* @__PURE__ */ p(b, {}),
790
+ /* @__PURE__ */ p(x, {}),
791
+ /* @__PURE__ */ m(S, { children: [
792
+ /* @__PURE__ */ p(Me, {}),
793
+ /* @__PURE__ */ p(Ne, {}),
794
+ /* @__PURE__ */ p(Pe, {})
795
795
  ] })
796
796
  ] });
797
797
  }
798
798
  //#endregion
799
- export { Ee as _, ke as a, Ae as c, Ne as d, y as f, De as g, we as h, b as i, v as l, x as m, E as n, S as o, Me as p, C as r, je as s, Ve as t, Pe as u };
799
+ export { Ee as _, ke as a, _ as c, Ne as d, je as f, De as g, we as h, v as i, Ae as l, y as m, T as n, b as o, Me as p, x as r, S as s, E as t, Pe as u };