@incodetech/web 0.0.0-dev-20260608-c8c427ca → 0.0.0-dev-20260608-fe5ac64f

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 (206) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -13
  2. package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
  3. package/dist/antifraud/antifraud.es.js +22 -19
  4. package/dist/authentication/authentication.es.js +42 -33
  5. package/dist/autoFocusTitle-DM6PvgcP.js +29 -0
  6. package/dist/{back-horizontal-hint-DsPhKbR4.js → back-horizontal-hint-BXYix0Wj.js} +26 -26
  7. package/dist/back-tutorial-vb1MxlrT.js +14597 -0
  8. package/dist/{back-vertical-hint-BFJbYQrX.js → back-vertical-hint-DNSh6JNH.js} +27 -27
  9. package/dist/backdevicelottie-HypPqBz7.js +16690 -0
  10. package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
  11. package/dist/bottomSheet-BuzqNQtG.js +39 -0
  12. package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
  13. package/dist/button-B-qlr4iI.js +35 -0
  14. package/dist/checkbox-CTPETqo5.js +96 -0
  15. package/dist/consent/consent.es.js +75 -64
  16. package/dist/countrySelector-CzyuaDIs.js +60 -0
  17. package/dist/cpf-ocr/cpf-ocr.es.js +2 -2
  18. package/dist/cpfOcr-7DkO3a4-.js +92 -0
  19. package/dist/cpfOcr-BrpGqevl.js +2 -0
  20. package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -17
  21. package/dist/curp-validation/curp-validation.es.js +246 -211
  22. package/dist/customFields-CJxcEDgu.js +140 -0
  23. package/dist/customWatchlist-BvfsU7r-.js +36 -0
  24. package/dist/dateInputComposed-BsPQHG5o.js +1 -0
  25. package/dist/dateInputComposed-DY97tQVK.js +69 -0
  26. package/dist/defineProperty-mefzVtTv.js +39 -0
  27. package/dist/document-capture/document-capture.es.js +2 -2
  28. package/dist/documentCapture-CQSmWEdd.js +876 -0
  29. package/dist/documentCapture-r1zYPBgS.js +2 -0
  30. package/dist/dropdownComposed-BF4L-7mJ.js +380 -0
  31. package/dist/dropdownComposed-mvHuRFHn.js +1 -0
  32. package/dist/dynamicForms-DranXtuE.js +352 -0
  33. package/dist/ekyb/ekyb.es.js +2 -2
  34. package/dist/ekybModule-DOOUw8h0.js +2 -0
  35. package/dist/ekybModule-DSOvdViS.js +279 -0
  36. package/dist/ekyc/ekyc.es.js +2 -2
  37. package/dist/ekycModule-BYHmHRia.js +2 -0
  38. package/dist/ekycModule-DtzcD2wV.js +257 -0
  39. package/dist/electronic-signature/electronic-signature.es.js +2 -2
  40. package/dist/electronic-signature-B0SDITm5.js +426 -0
  41. package/dist/email/email.es.js +198 -78
  42. package/dist/emailInput-D8qiAdjn.js +39 -0
  43. package/dist/errorIcon-B0rmz3rw.js +26 -0
  44. package/dist/expiredId-Du3HsBaI.js +85 -0
  45. package/dist/extensibility-FK5oOsIJ.js +3070 -0
  46. package/dist/extensibility.es.js +26 -26
  47. package/dist/face-match/face-match.es.js +2 -2
  48. package/dist/faceMatch-C0UL_xA7.js +2 -0
  49. package/dist/faceMatch-DJMba1pt.js +343 -0
  50. package/dist/field-comparison/field-comparison.es.js +2 -2
  51. package/dist/fieldComparison-CcJA6KR5.js +88 -0
  52. package/dist/fieldComparison-CvnNOIWA.js +2 -0
  53. package/dist/{flip-animation-CuQ57qTn.js → flip-animation-BGRvygw9.js} +4221 -4221
  54. package/dist/flow/flow.es.js +597 -493
  55. package/dist/{front-horizontal-hint-CKm7PnmS.js → front-horizontal-hint-CLSU0iVo.js} +70 -70
  56. package/dist/{front-vertical-hint-CLHC2qoH.js → front-vertical-hint-BWq-yWQ8.js} +81 -81
  57. package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
  58. package/dist/geolocation/geolocation.es.js +485 -395
  59. package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
  60. package/dist/governmentValidation/governmentValidation.es.js +67 -59
  61. package/dist/homeScreen-BsEYyiDB.js +264 -0
  62. package/dist/hooks-BtgmGvba.js +149 -0
  63. package/dist/i18n-gTHArCl9.js +2971 -0
  64. package/dist/icons-DKY3xDkf.js +360 -0
  65. package/dist/id/id.es.js +565 -413
  66. package/dist/id-laser-h-DX8UbVNH.js +467 -0
  67. package/dist/id-laser-v-DhnHdjlB.js +490 -0
  68. package/dist/id-tutorial-lj4iKtYT.js +13165 -0
  69. package/dist/id-verification/id-verification.es.js +21 -18
  70. package/dist/idOcr-CfqkKAZH.js +123 -0
  71. package/dist/identity-reuse/identity-reuse.es.js +168 -130
  72. package/dist/incode-logo-57XFniXU.js +4 -0
  73. package/dist/incodeComponent-CDJxFZvS.js +63 -0
  74. package/dist/incodeModule-DkA_yd0X.js +13 -0
  75. package/dist/index.es.js +16 -14
  76. package/dist/inputComposed-5V2nLTqH.js +99 -0
  77. package/dist/inputComposed-BPOYwUBl.js +1 -0
  78. package/dist/loadingIcon-DN62ugKs.js +148 -0
  79. package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
  80. package/dist/mandatoryConsent-DxL7lmfQ.js +107 -0
  81. package/dist/modal-B5QeulDu.js +153 -0
  82. package/dist/modal.hooks-C7K9k_pY.js +202 -0
  83. package/dist/numberedStep-DVAyTPv1.js +13 -0
  84. package/dist/optionAccessibleLabel-Czc2YC8z.js +202 -0
  85. package/dist/otpInput-2IQ-JCK8.js +195 -0
  86. package/dist/page-6bCuq5Q6.js +70 -0
  87. package/dist/{passport-horizontal-hint-C_le0HVU.js → passport-horizontal-hint-DfVsf4Cc.js} +55 -55
  88. package/dist/{passport-tutorial-BYN4T_TE.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
  89. package/dist/{passport-vertical-hint-H-pyICSv.js → passport-vertical-hint-DVxbTyQp.js} +49 -49
  90. package/dist/pdf-BZA70WbM.js +22398 -0
  91. package/dist/pdfViewer-Dr63sJ51.js +114 -0
  92. package/dist/phone/phone.es.js +214 -87
  93. package/dist/phoneInputComposed-D_IabWKJ.js +12142 -0
  94. package/dist/processing-B_u8wUB7.js +8 -0
  95. package/dist/qe-signature/qe-signature.es.js +15 -13
  96. package/dist/radioGroupComposed-DwYW-Ld-.js +215 -0
  97. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2099 -859
  98. package/dist/registerIncodeElement-BJJGzVdq.js +11 -0
  99. package/dist/requiredLabelHint-DEadtiwx.js +17 -0
  100. package/dist/richText-C7GUm0WL.js +3153 -0
  101. package/dist/rolldown-runtime--E5BIlTp.js +33 -0
  102. package/dist/selfie/selfie.es.js +54 -42
  103. package/dist/selfieTutorial-CtruLyO2.js +2689 -0
  104. package/dist/signature/signature.es.js +765 -406
  105. package/dist/snackbar-Dz9crm39.js +16 -0
  106. package/dist/spinner-BfBIZkDQ.js +42 -0
  107. package/dist/spinner-DEDtE7Pz.js +1 -0
  108. package/dist/statusPage-B1Ef7J5K.js +28 -0
  109. package/dist/successIcon-rmzr-pxu.js +30 -0
  110. package/dist/tabs--UMd6eEB.js +103 -0
  111. package/dist/transitionSpinner-CWhGcr7c.js +26 -0
  112. package/dist/{tutorial-QzQ536BL.js → tutorial-y-nq6ZhF.js} +832 -578
  113. package/dist/types/index.d.ts +13 -4
  114. package/dist/typography-BK4AmfKX.js +45 -0
  115. package/dist/uiConfig-sgEkFuuA.js +25 -0
  116. package/dist/useModuleLoader-8LslB-YG.js +670 -0
  117. package/dist/vendor-preact-BH7vOa2r.js +957 -0
  118. package/dist/verificationResult-CbVRf6Kh.js +91 -0
  119. package/dist/verifiedByIncode-8QBn-kgZ.js +103 -0
  120. package/dist/watchlist/watchlist.es.js +31 -26
  121. package/dist/watchlistForBusiness-Dfn1UMow.js +80 -0
  122. package/dist/workflow/workflow.es.js +251 -209
  123. package/package.json +4 -2
  124. package/dist/aligndevicelottie-D8KsO77t.js +0 -12757
  125. package/dist/autoFocusTitle-BpYdaSUM.js +0 -16
  126. package/dist/back-tutorial-DhSE2FJo.js +0 -14585
  127. package/dist/backdevicelottie-CJWGVMdw.js +0 -16678
  128. package/dist/blurdevicelottie-Dxt2deEB.js +0 -15939
  129. package/dist/bottomSheet-QrpyatOD.js +0 -31
  130. package/dist/browser-ponyfill-Crda_c5R.js +0 -299
  131. package/dist/button-DcCUEn2n.js +0 -24
  132. package/dist/checkbox-DCCzBAuF.js +0 -86
  133. package/dist/countrySelector-CJ8egQ4C.js +0 -58
  134. package/dist/cpfOcr-Db06i-Lm.js +0 -2
  135. package/dist/cpfOcr-FixhUeMQ.js +0 -79
  136. package/dist/customFields-C1G9xHNX.js +0 -125
  137. package/dist/customWatchlist-IKEblz7u.js +0 -31
  138. package/dist/dateInputComposed-Cg8BvYSK.js +0 -1
  139. package/dist/dateInputComposed-Ddd7HLyM.js +0 -58
  140. package/dist/defineProperty-xczUyn-m.js +0 -39
  141. package/dist/documentCapture-D9I7FjGe.js +0 -2
  142. package/dist/documentCapture-b61wlala.js +0 -765
  143. package/dist/dropdownComposed-B4U0AIak.js +0 -1
  144. package/dist/dropdownComposed-CS2pyn-g.js +0 -293
  145. package/dist/dynamicForms-tYQog0kw.js +0 -298
  146. package/dist/ekybModule-C33C4JES.js +0 -237
  147. package/dist/ekybModule-LON6G2Bz.js +0 -2
  148. package/dist/ekycModule-BJOgtTAh.js +0 -225
  149. package/dist/ekycModule-BSf_DIG7.js +0 -2
  150. package/dist/electronic-signature-OdgTyso4.js +0 -406
  151. package/dist/emailInput-CU7mLB21.js +0 -37
  152. package/dist/errorIcon-DpHzAoAo.js +0 -24
  153. package/dist/expiredId-nfVAZgTL.js +0 -70
  154. package/dist/extensibility-BbNy3mVG.js +0 -2602
  155. package/dist/faceMatch-BIila4kf.js +0 -2
  156. package/dist/faceMatch-DJ7Mqujx.js +0 -206
  157. package/dist/fieldComparison-D2RSFYl-.js +0 -84
  158. package/dist/fieldComparison-DbUyouFd.js +0 -2
  159. package/dist/frontdevicelottie-65Vyfpff.js +0 -17302
  160. package/dist/glaredevicelottie-BEyaqtc6.js +0 -14466
  161. package/dist/homeScreen-CyPddxWl.js +0 -227
  162. package/dist/hooks-MxHtZWTS.js +0 -112
  163. package/dist/i18n-Kzzvkz94.js +0 -2019
  164. package/dist/icons-9I5g9-_1.js +0 -292
  165. package/dist/id-laser-h-iCPbFixz.js +0 -467
  166. package/dist/id-laser-v-CNzwliP2.js +0 -483
  167. package/dist/id-tutorial-CF4nO4oX.js +0 -13153
  168. package/dist/idOcr-DlMLMDqa.js +0 -97
  169. package/dist/incode-logo-DX016usY.js +0 -4
  170. package/dist/incodeComponent-BoFhgK7G.js +0 -50
  171. package/dist/incodeModule-BiCoAJ5k.js +0 -13
  172. package/dist/inputComposed-DAEey9xm.js +0 -94
  173. package/dist/inputComposed-eS4B0Mkh.js +0 -1
  174. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  175. package/dist/lottie_light-DLqSnziX.js +0 -4419
  176. package/dist/mandatoryConsent-DNz2jZ43.js +0 -98
  177. package/dist/modal-ZqAhwiRF.js +0 -135
  178. package/dist/modal.hooks-LdusROLW.js +0 -126
  179. package/dist/numberedStep-CdLWASwL.js +0 -11
  180. package/dist/optionAccessibleLabel-DcygPaME.js +0 -140
  181. package/dist/otpInput-C4pk4BJU.js +0 -157
  182. package/dist/page-DA3R7q0J.js +0 -69
  183. package/dist/pdf-51QeiFSx.js +0 -14967
  184. package/dist/pdfViewer-rKzTHket.js +0 -64
  185. package/dist/phoneInputComposed-CjAxk2Gj.js +0 -11230
  186. package/dist/processing-DPktVde2.js +0 -6
  187. package/dist/radioGroupComposed-DRRxVk9Z.js +0 -178
  188. package/dist/registerIncodeElement-BHWOwdSS.js +0 -7
  189. package/dist/requiredLabelHint-B6FN3v88.js +0 -13
  190. package/dist/richText-6pIbydcz.js +0 -1973
  191. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  192. package/dist/selfieTutorial-Yo9AlUoT.js +0 -2677
  193. package/dist/snackbar-CQiiWO4p.js +0 -14
  194. package/dist/spinner-B4dcie2T.js +0 -1
  195. package/dist/spinner-CKnjVHxw.js +0 -39
  196. package/dist/statusPage-B8b3Jg6N.js +0 -28
  197. package/dist/successIcon-SlKgTSty.js +0 -28
  198. package/dist/tabs-D7lGst3Q.js +0 -78
  199. package/dist/transitionSpinner-Di3bOyOu.js +0 -17
  200. package/dist/typography-CxjaknHN.js +0 -28
  201. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  202. package/dist/useModuleLoader-Bqs7fglI.js +0 -517
  203. package/dist/vendor-preact-D6SntenC.js +0 -958
  204. package/dist/verificationResult-DhT3hH1b.js +0 -90
  205. package/dist/verifiedByIncode-DpbxzO0y.js +0 -101
  206. package/dist/watchlistForBusiness-CRXVbH4l.js +0 -75
@@ -0,0 +1,16 @@
1
+ import { v as u } from "./vendor-preact-BH7vOa2r.js";
2
+ import { n as cn } from "./loadingIcon-DN62ugKs.js";
3
+ //#region src/shared/snackbar/snackbar.tsx
4
+ var Snackbar = ({ variant = "neutral", children, className, ariaLive = "polite" }) => {
5
+ return /* @__PURE__ */ u("div", {
6
+ role: "status",
7
+ "aria-live": ariaLive,
8
+ class: cn("IncodeSnackbar", `IncodeSnackbar--${variant}`, className),
9
+ children: /* @__PURE__ */ u("span", {
10
+ class: "IncodeSnackbarContent",
11
+ children
12
+ })
13
+ });
14
+ };
15
+ //#endregion
16
+ export { Snackbar as t };
@@ -0,0 +1,42 @@
1
+ import { S as k, _ as y, l as A, v as u } from "./vendor-preact-BH7vOa2r.js";
2
+ import { n as cn, r as Spacer, t as LoadingIcon } from "./loadingIcon-DN62ugKs.js";
3
+ import { t as Title } from "./typography-BK4AmfKX.js";
4
+ //#region src/shared/spinner/spinner.tsx
5
+ var sizeMap = {
6
+ small: 24,
7
+ medium: 48,
8
+ large: 64
9
+ };
10
+ var Spinner = ({ title, subtitle, size = "medium", fullScreen = true, className }) => {
11
+ const iconSize = sizeMap[size];
12
+ const titleRef = A(null);
13
+ y(() => {
14
+ if (title) titleRef.current?.focus();
15
+ }, [title]);
16
+ return /* @__PURE__ */ u("div", {
17
+ class: cn("IncodeSpinner", fullScreen && "IncodeSpinnerFullScreen", className),
18
+ "data-testid": "spinner",
19
+ "data-title": title,
20
+ "data-subtitle": subtitle,
21
+ "data-size": size,
22
+ role: "status",
23
+ "aria-live": "polite",
24
+ children: /* @__PURE__ */ u("div", {
25
+ class: "IncodeSpinnerContent",
26
+ children: [/* @__PURE__ */ u(LoadingIcon, { size: iconSize }), (title || subtitle) && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 16 }), /* @__PURE__ */ u("div", {
27
+ class: "IncodeSpinnerText",
28
+ children: [title && /* @__PURE__ */ u(Title, {
29
+ ref: titleRef,
30
+ tabIndex: -1,
31
+ className: "IncodeSpinnerTitle",
32
+ children: title
33
+ }), subtitle && /* @__PURE__ */ u(k, { children: [title && /* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
34
+ class: "IncodeSpinnerSubtitle",
35
+ children: subtitle
36
+ })] })]
37
+ })] })]
38
+ })
39
+ });
40
+ };
41
+ //#endregion
42
+ export { Spinner as t };
@@ -0,0 +1 @@
1
+ import "./spinner-BfBIZkDQ.js";
@@ -0,0 +1,28 @@
1
+ import { v as u } from "./vendor-preact-BH7vOa2r.js";
2
+ import { r as Spacer } from "./loadingIcon-DN62ugKs.js";
3
+ import { t as Page } from "./page-6bCuq5Q6.js";
4
+ import { t as AutoFocusTitle } from "./autoFocusTitle-DM6PvgcP.js";
5
+ //#region src/shared/statusPage/statusPage.tsx
6
+ var StatusPage = ({ variant, icon, title, subtitle, hideFooterBranding }) => /* @__PURE__ */ u(Page, {
7
+ className: `IncodeStatusPage IncodeStatusPage--${variant}`,
8
+ hideFooterBranding,
9
+ children: /* @__PURE__ */ u("div", {
10
+ class: "IncodeStatusPageContainer",
11
+ role: variant === "loading" ? "status" : void 0,
12
+ "aria-live": variant === "loading" ? "polite" : void 0,
13
+ children: [
14
+ icon,
15
+ /* @__PURE__ */ u(Spacer, { size: 16 }),
16
+ /* @__PURE__ */ u(AutoFocusTitle, {
17
+ className: "IncodeStatusPageTitle",
18
+ children: title
19
+ }, variant),
20
+ subtitle && /* @__PURE__ */ u("p", {
21
+ class: "IncodeStatusPageSubtitle",
22
+ children: subtitle
23
+ })
24
+ ]
25
+ })
26
+ });
27
+ //#endregion
28
+ export { StatusPage as t };
@@ -0,0 +1,30 @@
1
+ import { v as u } from "./vendor-preact-BH7vOa2r.js";
2
+ //#region src/shared/icons/successIcon.tsx
3
+ var SuccessIcon = ({ size = 64 }) => {
4
+ return /* @__PURE__ */ u("svg", {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ width: size,
7
+ height: size,
8
+ viewBox: "0 0 64 64",
9
+ fill: "none",
10
+ class: "IncodeSuccessIcon",
11
+ "aria-hidden": "true",
12
+ children: [
13
+ /* @__PURE__ */ u("title", { children: "status" }),
14
+ /* @__PURE__ */ u("path", {
15
+ "fill-rule": "evenodd",
16
+ "clip-rule": "evenodd",
17
+ d: "M32 6.66669C18.032 6.66669 6.66663 18.032 6.66663 32C6.66663 45.9707 18.032 57.3334 32 57.3334C45.968 57.3334 57.3333 45.9707 57.3333 32C57.3333 18.032 45.968 6.66669 32 6.66669Z",
18
+ fill: "var(--icon-status-positive)"
19
+ }),
20
+ /* @__PURE__ */ u("path", {
21
+ "fill-rule": "evenodd",
22
+ "clip-rule": "evenodd",
23
+ d: "M42.648 27.2587L30.3333 39.5733C29.9413 39.9653 29.432 40.16 28.92 40.16C28.4053 40.16 27.896 39.9653 27.504 39.5733L21.3466 33.416C20.5653 32.6347 20.5653 31.368 21.3466 30.5867C22.128 29.8053 23.392 29.8053 24.1733 30.5867L28.92 35.3307L39.8186 24.4293C40.6 23.648 41.8666 23.648 42.648 24.4293C43.4293 25.2107 43.4293 26.4773 42.648 27.2587Z",
24
+ fill: "var(--icon-neutral-0)"
25
+ })
26
+ ]
27
+ });
28
+ };
29
+ //#endregion
30
+ export { SuccessIcon as t };
@@ -0,0 +1,103 @@
1
+ import { g as x, m as g, p as d, v as u, x as Q } from "./vendor-preact-BH7vOa2r.js";
2
+ import { n as cn } from "./loadingIcon-DN62ugKs.js";
3
+ //#region src/shared/tabs/tabs.tsx
4
+ var TabsContext = Q(null);
5
+ var useTabsContext = () => {
6
+ const ctx = x(TabsContext);
7
+ if (!ctx) throw new Error("Tabs compound components must be used within <Tabs>");
8
+ return ctx;
9
+ };
10
+ var tabId = (baseId, value) => `${baseId}-tab-${value}`;
11
+ var panelId = (baseId, value) => `${baseId}-panel-${value}`;
12
+ var TabsRoot = ({ defaultValue, value, onValueChange, orientation = "horizontal", activation = "manual", listClassName, triggerClassName, activeTriggerClassName, children }) => {
13
+ const baseId = g();
14
+ const [internalValue, setInternalValue] = d(defaultValue ?? value ?? "");
15
+ const activeValue = value ?? internalValue;
16
+ const setActiveValue = (next) => {
17
+ if (value === void 0) setInternalValue(next);
18
+ onValueChange?.(next);
19
+ };
20
+ return /* @__PURE__ */ u(TabsContext.Provider, {
21
+ value: {
22
+ baseId,
23
+ activeValue,
24
+ setActiveValue,
25
+ orientation,
26
+ activation,
27
+ listClassName,
28
+ triggerClassName,
29
+ activeTriggerClassName
30
+ },
31
+ children
32
+ });
33
+ };
34
+ var TabsList = ({ label, labelledBy, children }) => {
35
+ const { listClassName, orientation } = useTabsContext();
36
+ return /* @__PURE__ */ u("div", {
37
+ role: "tablist",
38
+ "aria-orientation": orientation,
39
+ "aria-label": label,
40
+ "aria-labelledby": labelledBy,
41
+ class: listClassName,
42
+ children
43
+ });
44
+ };
45
+ var TabsTrigger = ({ value, disabled, children }) => {
46
+ const { baseId, activeValue, setActiveValue, orientation, activation, triggerClassName, activeTriggerClassName } = useTabsContext();
47
+ const selected = activeValue === value;
48
+ const handleKeyDown = (event) => {
49
+ const horizontal = orientation === "horizontal";
50
+ const nextKey = horizontal ? "ArrowRight" : "ArrowDown";
51
+ const prevKey = horizontal ? "ArrowLeft" : "ArrowUp";
52
+ if (event.key !== nextKey && event.key !== prevKey && event.key !== "Home" && event.key !== "End") return;
53
+ const list = event.currentTarget.closest("[role=\"tablist\"]");
54
+ if (!list) return;
55
+ const tabs = Array.from(list.querySelectorAll("[role=\"tab\"]:not([disabled])"));
56
+ const currentIndex = tabs.indexOf(event.currentTarget);
57
+ if (currentIndex === -1) return;
58
+ let target;
59
+ if (event.key === nextKey) target = tabs[(currentIndex + 1) % tabs.length];
60
+ else if (event.key === prevKey) target = tabs[(currentIndex - 1 + tabs.length) % tabs.length];
61
+ else if (event.key === "Home") target = tabs[0];
62
+ else if (event.key === "End") target = tabs[tabs.length - 1];
63
+ if (!target) return;
64
+ event.preventDefault();
65
+ target.focus();
66
+ if (activation === "automatic") {
67
+ const nextValue = target.dataset.value;
68
+ if (nextValue !== void 0) setActiveValue(nextValue);
69
+ }
70
+ };
71
+ return /* @__PURE__ */ u("button", {
72
+ type: "button",
73
+ role: "tab",
74
+ id: tabId(baseId, value),
75
+ "aria-selected": selected,
76
+ "aria-controls": panelId(baseId, value),
77
+ tabIndex: selected ? 0 : -1,
78
+ disabled,
79
+ "data-value": value,
80
+ class: cn(triggerClassName, selected && activeTriggerClassName),
81
+ onClick: () => setActiveValue(value),
82
+ onKeyDown: handleKeyDown,
83
+ children
84
+ });
85
+ };
86
+ var TabsContent = ({ value, className, children }) => {
87
+ const { baseId, activeValue } = useTabsContext();
88
+ if (activeValue !== value) return null;
89
+ return /* @__PURE__ */ u("div", {
90
+ role: "tabpanel",
91
+ id: panelId(baseId, value),
92
+ "aria-labelledby": tabId(baseId, value),
93
+ class: className,
94
+ children
95
+ });
96
+ };
97
+ var Tabs = Object.assign(TabsRoot, {
98
+ List: TabsList,
99
+ Trigger: TabsTrigger,
100
+ Content: TabsContent
101
+ });
102
+ //#endregion
103
+ export { Tabs as t };
@@ -0,0 +1,26 @@
1
+ import { n as useTranslation } from "./i18n-gTHArCl9.js";
2
+ import { v as u } from "./vendor-preact-BH7vOa2r.js";
3
+ import { t as Spinner } from "./spinner-BfBIZkDQ.js";
4
+ import "./spinner-DEDtE7Pz.js";
5
+ //#region src/shared/processing/transitionSpinner.tsx
6
+ /**
7
+ * Canonical "we're getting ready / processing" loader.
8
+ *
9
+ * Renders a container-filling `Spinner` with the unified `loadingCircle.hangOn`
10
+ * / `loadingCircle.validating` copy at `size="large"` so every cross-module
11
+ * transition looks identical to the user. Optional `spinnerConfig` overrides
12
+ * any of `title`, `subtitle`, or `size` for consumers that already exposed
13
+ * those. Pass `hideText` to render the spinner icon on its own.
14
+ */
15
+ var TransitionSpinner = ({ spinnerConfig, className, hideText = false }) => {
16
+ const { t } = useTranslation();
17
+ return /* @__PURE__ */ u(Spinner, {
18
+ title: hideText ? void 0 : spinnerConfig?.title ?? t("loadingCircle.hangOn"),
19
+ subtitle: hideText ? void 0 : spinnerConfig?.subtitle ?? t("loadingCircle.validating"),
20
+ size: spinnerConfig?.size ?? "large",
21
+ fullScreen: true,
22
+ className
23
+ });
24
+ };
25
+ //#endregion
26
+ export { TransitionSpinner as t };