@thunderid/react 0.0.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 (462) hide show
  1. package/LICENSE +201 -0
  2. package/dist/ThunderIDReactClient.d.ts +87 -0
  3. package/dist/ThunderIDReactClient.d.ts.map +1 -0
  4. package/dist/__temp__/api.d.ts +258 -0
  5. package/dist/__temp__/api.d.ts.map +1 -0
  6. package/dist/__temp__/models.d.ts +98 -0
  7. package/dist/__temp__/models.d.ts.map +1 -0
  8. package/dist/api/createOrganization.d.ts +86 -0
  9. package/dist/api/createOrganization.d.ts.map +1 -0
  10. package/dist/api/getAllOrganizations.d.ts +78 -0
  11. package/dist/api/getAllOrganizations.d.ts.map +1 -0
  12. package/dist/api/getMeOrganizations.d.ts +82 -0
  13. package/dist/api/getMeOrganizations.d.ts.map +1 -0
  14. package/dist/api/getOrganization.d.ts +74 -0
  15. package/dist/api/getOrganization.d.ts.map +1 -0
  16. package/dist/api/getSchemas.d.ts +72 -0
  17. package/dist/api/getSchemas.d.ts.map +1 -0
  18. package/dist/api/getScim2Me.d.ts +72 -0
  19. package/dist/api/getScim2Me.d.ts.map +1 -0
  20. package/dist/api/updateMeProfile.d.ts +60 -0
  21. package/dist/api/updateMeProfile.d.ts.map +1 -0
  22. package/dist/api/updateOrganization.d.ts +81 -0
  23. package/dist/api/updateOrganization.d.ts.map +1 -0
  24. package/dist/cjs/index.js +20320 -0
  25. package/dist/cjs/index.js.map +1 -0
  26. package/dist/components/actions/SignInButton/BaseSignInButton.d.ts +71 -0
  27. package/dist/components/actions/SignInButton/BaseSignInButton.d.ts.map +1 -0
  28. package/dist/components/actions/SignInButton/SignInButton.d.ts +71 -0
  29. package/dist/components/actions/SignInButton/SignInButton.d.ts.map +1 -0
  30. package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts +71 -0
  31. package/dist/components/actions/SignOutButton/BaseSignOutButton.d.ts.map +1 -0
  32. package/dist/components/actions/SignOutButton/SignOutButton.d.ts +66 -0
  33. package/dist/components/actions/SignOutButton/SignOutButton.d.ts.map +1 -0
  34. package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts +71 -0
  35. package/dist/components/actions/SignUpButton/BaseSignUpButton.d.ts.map +1 -0
  36. package/dist/components/actions/SignUpButton/SignUpButton.d.ts +67 -0
  37. package/dist/components/actions/SignUpButton/SignUpButton.d.ts.map +1 -0
  38. package/dist/components/adapters/CheckboxInput.d.ts +25 -0
  39. package/dist/components/adapters/CheckboxInput.d.ts.map +1 -0
  40. package/dist/components/adapters/Consent.d.ts +80 -0
  41. package/dist/components/adapters/Consent.d.ts.map +1 -0
  42. package/dist/components/adapters/ConsentCheckboxList.d.ts +95 -0
  43. package/dist/components/adapters/ConsentCheckboxList.d.ts.map +1 -0
  44. package/dist/components/adapters/ConsentCheckboxList.styles.d.ts +21 -0
  45. package/dist/components/adapters/ConsentCheckboxList.styles.d.ts.map +1 -0
  46. package/dist/components/adapters/DateInput.d.ts +25 -0
  47. package/dist/components/adapters/DateInput.d.ts.map +1 -0
  48. package/dist/components/adapters/DividerComponent.d.ts +25 -0
  49. package/dist/components/adapters/DividerComponent.d.ts.map +1 -0
  50. package/dist/components/adapters/EmailInput.d.ts +25 -0
  51. package/dist/components/adapters/EmailInput.d.ts.map +1 -0
  52. package/dist/components/adapters/FacebookButton.d.ts +32 -0
  53. package/dist/components/adapters/FacebookButton.d.ts.map +1 -0
  54. package/dist/components/adapters/FlowTimer.d.ts +63 -0
  55. package/dist/components/adapters/FlowTimer.d.ts.map +1 -0
  56. package/dist/components/adapters/FormContainer.d.ts +25 -0
  57. package/dist/components/adapters/FormContainer.d.ts.map +1 -0
  58. package/dist/components/adapters/GitHubButton.d.ts +32 -0
  59. package/dist/components/adapters/GitHubButton.d.ts.map +1 -0
  60. package/dist/components/adapters/GoogleButton.d.ts +32 -0
  61. package/dist/components/adapters/GoogleButton.d.ts.map +1 -0
  62. package/dist/components/adapters/ImageComponent.d.ts +25 -0
  63. package/dist/components/adapters/ImageComponent.d.ts.map +1 -0
  64. package/dist/components/adapters/LinkedInButton.d.ts +32 -0
  65. package/dist/components/adapters/LinkedInButton.d.ts.map +1 -0
  66. package/dist/components/adapters/MicrosoftButton.d.ts +32 -0
  67. package/dist/components/adapters/MicrosoftButton.d.ts.map +1 -0
  68. package/dist/components/adapters/NumberInput.d.ts +25 -0
  69. package/dist/components/adapters/NumberInput.d.ts.map +1 -0
  70. package/dist/components/adapters/PasswordInput.d.ts +25 -0
  71. package/dist/components/adapters/PasswordInput.d.ts.map +1 -0
  72. package/dist/components/adapters/SelectInput.d.ts +25 -0
  73. package/dist/components/adapters/SelectInput.d.ts.map +1 -0
  74. package/dist/components/adapters/SignInWithEthereumButton.d.ts +32 -0
  75. package/dist/components/adapters/SignInWithEthereumButton.d.ts.map +1 -0
  76. package/dist/components/adapters/SmsOtpButton.d.ts +32 -0
  77. package/dist/components/adapters/SmsOtpButton.d.ts.map +1 -0
  78. package/dist/components/adapters/SocialButton.d.ts +25 -0
  79. package/dist/components/adapters/SocialButton.d.ts.map +1 -0
  80. package/dist/components/adapters/SubmitButton.d.ts +25 -0
  81. package/dist/components/adapters/SubmitButton.d.ts.map +1 -0
  82. package/dist/components/adapters/TelephoneInput.d.ts +25 -0
  83. package/dist/components/adapters/TelephoneInput.d.ts.map +1 -0
  84. package/dist/components/adapters/TextInput.d.ts +25 -0
  85. package/dist/components/adapters/TextInput.d.ts.map +1 -0
  86. package/dist/components/adapters/Typography.d.ts +25 -0
  87. package/dist/components/adapters/Typography.d.ts.map +1 -0
  88. package/dist/components/auth/Callback/Callback.d.ts +52 -0
  89. package/dist/components/auth/Callback/Callback.d.ts.map +1 -0
  90. package/dist/components/control/Loading.d.ts +48 -0
  91. package/dist/components/control/Loading.d.ts.map +1 -0
  92. package/dist/components/control/OrganizationContext/OrganizationContext.d.ts +40 -0
  93. package/dist/components/control/OrganizationContext/OrganizationContext.d.ts.map +1 -0
  94. package/dist/components/control/OrganizationContext/OrganizationContextController.d.ts +35 -0
  95. package/dist/components/control/OrganizationContext/OrganizationContextController.d.ts.map +1 -0
  96. package/dist/components/control/SignedIn.d.ts +48 -0
  97. package/dist/components/control/SignedIn.d.ts.map +1 -0
  98. package/dist/components/control/SignedOut.d.ts +48 -0
  99. package/dist/components/control/SignedOut.d.ts.map +1 -0
  100. package/dist/components/factories/FieldFactory.d.ts +107 -0
  101. package/dist/components/factories/FieldFactory.d.ts.map +1 -0
  102. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts +60 -0
  103. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.d.ts.map +1 -0
  104. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts +27 -0
  105. package/dist/components/presentation/CreateOrganization/BaseCreateOrganization.styles.d.ts.map +1 -0
  106. package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts +68 -0
  107. package/dist/components/presentation/CreateOrganization/CreateOrganization.d.ts.map +1 -0
  108. package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.d.ts +80 -0
  109. package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.d.ts.map +1 -0
  110. package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.styles.d.ts +21 -0
  111. package/dist/components/presentation/LanguageSwitcher/BaseLanguageSwitcher.styles.d.ts.map +1 -0
  112. package/dist/components/presentation/LanguageSwitcher/LanguageSwitcher.d.ts +78 -0
  113. package/dist/components/presentation/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -0
  114. package/dist/components/presentation/Organization/BaseOrganization.d.ts +67 -0
  115. package/dist/components/presentation/Organization/BaseOrganization.d.ts.map +1 -0
  116. package/dist/components/presentation/Organization/Organization.d.ts +67 -0
  117. package/dist/components/presentation/Organization/Organization.d.ts.map +1 -0
  118. package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts +135 -0
  119. package/dist/components/presentation/OrganizationList/BaseOrganizationList.d.ts.map +1 -0
  120. package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts +27 -0
  121. package/dist/components/presentation/OrganizationList/BaseOrganizationList.styles.d.ts.map +1 -0
  122. package/dist/components/presentation/OrganizationList/OrganizationList.d.ts +93 -0
  123. package/dist/components/presentation/OrganizationList/OrganizationList.d.ts.map +1 -0
  124. package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts +27 -0
  125. package/dist/components/presentation/OrganizationList/OrganizationList.styles.d.ts.map +1 -0
  126. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts +160 -0
  127. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.d.ts.map +1 -0
  128. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts +27 -0
  129. package/dist/components/presentation/OrganizationProfile/BaseOrganizationProfile.styles.d.ts.map +1 -0
  130. package/dist/components/presentation/OrganizationProfile/OrganizationProfile.d.ts +120 -0
  131. package/dist/components/presentation/OrganizationProfile/OrganizationProfile.d.ts.map +1 -0
  132. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts +149 -0
  133. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.d.ts.map +1 -0
  134. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts +27 -0
  135. package/dist/components/presentation/OrganizationSwitcher/BaseOrganizationSwitcher.styles.d.ts.map +1 -0
  136. package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts +71 -0
  137. package/dist/components/presentation/OrganizationSwitcher/OrganizationSwitcher.d.ts.map +1 -0
  138. package/dist/components/presentation/User/BaseUser.d.ts +67 -0
  139. package/dist/components/presentation/User/BaseUser.d.ts.map +1 -0
  140. package/dist/components/presentation/User/User.d.ts +63 -0
  141. package/dist/components/presentation/User/User.d.ts.map +1 -0
  142. package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts +89 -0
  143. package/dist/components/presentation/UserDropdown/BaseUserDropdown.d.ts.map +1 -0
  144. package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts +27 -0
  145. package/dist/components/presentation/UserDropdown/BaseUserDropdown.styles.d.ts.map +1 -0
  146. package/dist/components/presentation/UserDropdown/UserDropdown.d.ts +109 -0
  147. package/dist/components/presentation/UserDropdown/UserDropdown.d.ts.map +1 -0
  148. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts +73 -0
  149. package/dist/components/presentation/UserProfile/BaseUserProfile.d.ts.map +1 -0
  150. package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts +27 -0
  151. package/dist/components/presentation/UserProfile/BaseUserProfile.styles.d.ts.map +1 -0
  152. package/dist/components/presentation/UserProfile/UserProfile.d.ts +60 -0
  153. package/dist/components/presentation/UserProfile/UserProfile.d.ts.map +1 -0
  154. package/dist/components/presentation/auth/AcceptInvite/index.d.ts +22 -0
  155. package/dist/components/presentation/auth/AcceptInvite/index.d.ts.map +1 -0
  156. package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts +125 -0
  157. package/dist/components/presentation/auth/AcceptInvite/v2/AcceptInvite.d.ts.map +1 -0
  158. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts +202 -0
  159. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.d.ts.map +1 -0
  160. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts +27 -0
  161. package/dist/components/presentation/auth/AcceptInvite/v2/BaseAcceptInvite.styles.d.ts.map +1 -0
  162. package/dist/components/presentation/auth/AuthOptionFactory.d.ts +114 -0
  163. package/dist/components/presentation/auth/AuthOptionFactory.d.ts.map +1 -0
  164. package/dist/components/presentation/auth/InviteUser/index.d.ts +22 -0
  165. package/dist/components/presentation/auth/InviteUser/index.d.ts.map +1 -0
  166. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts +191 -0
  167. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.d.ts.map +1 -0
  168. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts +27 -0
  169. package/dist/components/presentation/auth/InviteUser/v2/BaseInviteUser.styles.d.ts.map +1 -0
  170. package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts +104 -0
  171. package/dist/components/presentation/auth/InviteUser/v2/InviteUser.d.ts.map +1 -0
  172. package/dist/components/presentation/auth/OrganizationUnitPicker/index.d.ts +20 -0
  173. package/dist/components/presentation/auth/OrganizationUnitPicker/index.d.ts.map +1 -0
  174. package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.d.ts +30 -0
  175. package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.d.ts.map +1 -0
  176. package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.styles.d.ts +21 -0
  177. package/dist/components/presentation/auth/OrganizationUnitPicker/v2/OrganizationUnitPicker.styles.d.ts.map +1 -0
  178. package/dist/components/presentation/auth/Recovery/BaseRecovery.d.ts +24 -0
  179. package/dist/components/presentation/auth/Recovery/BaseRecovery.d.ts.map +1 -0
  180. package/dist/components/presentation/auth/Recovery/Recovery.d.ts +57 -0
  181. package/dist/components/presentation/auth/Recovery/Recovery.d.ts.map +1 -0
  182. package/dist/components/presentation/auth/Recovery/v1/BaseRecovery.d.ts +74 -0
  183. package/dist/components/presentation/auth/Recovery/v1/BaseRecovery.d.ts.map +1 -0
  184. package/dist/components/presentation/auth/Recovery/v1/Recovery.d.ts +26 -0
  185. package/dist/components/presentation/auth/Recovery/v1/Recovery.d.ts.map +1 -0
  186. package/dist/components/presentation/auth/Recovery/v1/RecoveryOptionFactory.d.ts +46 -0
  187. package/dist/components/presentation/auth/Recovery/v1/RecoveryOptionFactory.d.ts.map +1 -0
  188. package/dist/components/presentation/auth/Recovery/v2/BaseRecovery.d.ts +83 -0
  189. package/dist/components/presentation/auth/Recovery/v2/BaseRecovery.d.ts.map +1 -0
  190. package/dist/components/presentation/auth/Recovery/v2/Recovery.d.ts +56 -0
  191. package/dist/components/presentation/auth/Recovery/v2/Recovery.d.ts.map +1 -0
  192. package/dist/components/presentation/auth/SignIn/BaseSignIn.d.ts +28 -0
  193. package/dist/components/presentation/auth/SignIn/BaseSignIn.d.ts.map +1 -0
  194. package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts +27 -0
  195. package/dist/components/presentation/auth/SignIn/BaseSignIn.styles.d.ts.map +1 -0
  196. package/dist/components/presentation/auth/SignIn/SignIn.d.ts +63 -0
  197. package/dist/components/presentation/auth/SignIn/SignIn.d.ts.map +1 -0
  198. package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts +131 -0
  199. package/dist/components/presentation/auth/SignIn/v1/BaseSignIn.d.ts.map +1 -0
  200. package/dist/components/presentation/auth/SignIn/v1/options/EmailOtp.d.ts +26 -0
  201. package/dist/components/presentation/auth/SignIn/v1/options/EmailOtp.d.ts.map +1 -0
  202. package/dist/components/presentation/auth/SignIn/v1/options/IdentifierFirst.d.ts +26 -0
  203. package/dist/components/presentation/auth/SignIn/v1/options/IdentifierFirst.d.ts.map +1 -0
  204. package/dist/components/presentation/auth/SignIn/v1/options/MultiOptionButton.d.ts +27 -0
  205. package/dist/components/presentation/auth/SignIn/v1/options/MultiOptionButton.d.ts.map +1 -0
  206. package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts +77 -0
  207. package/dist/components/presentation/auth/SignIn/v1/options/SignInOptionFactory.d.ts.map +1 -0
  208. package/dist/components/presentation/auth/SignIn/v1/options/SmsOtp.d.ts +26 -0
  209. package/dist/components/presentation/auth/SignIn/v1/options/SmsOtp.d.ts.map +1 -0
  210. package/dist/components/presentation/auth/SignIn/v1/options/SocialButton.d.ts +26 -0
  211. package/dist/components/presentation/auth/SignIn/v1/options/SocialButton.d.ts.map +1 -0
  212. package/dist/components/presentation/auth/SignIn/v1/options/Totp.d.ts +26 -0
  213. package/dist/components/presentation/auth/SignIn/v1/options/Totp.d.ts.map +1 -0
  214. package/dist/components/presentation/auth/SignIn/v1/options/UsernamePassword.d.ts +26 -0
  215. package/dist/components/presentation/auth/SignIn/v1/options/UsernamePassword.d.ts.map +1 -0
  216. package/dist/components/presentation/auth/SignIn/v1/types.d.ts +125 -0
  217. package/dist/components/presentation/auth/SignIn/v1/types.d.ts.map +1 -0
  218. package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts +222 -0
  219. package/dist/components/presentation/auth/SignIn/v2/BaseSignIn.d.ts.map +1 -0
  220. package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts +165 -0
  221. package/dist/components/presentation/auth/SignIn/v2/SignIn.d.ts.map +1 -0
  222. package/dist/components/presentation/auth/SignUp/BaseSignUp.d.ts +28 -0
  223. package/dist/components/presentation/auth/SignUp/BaseSignUp.d.ts.map +1 -0
  224. package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts +27 -0
  225. package/dist/components/presentation/auth/SignUp/BaseSignUp.styles.d.ts.map +1 -0
  226. package/dist/components/presentation/auth/SignUp/SignUp.d.ts +98 -0
  227. package/dist/components/presentation/auth/SignUp/SignUp.d.ts.map +1 -0
  228. package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts +174 -0
  229. package/dist/components/presentation/auth/SignUp/v1/BaseSignUp.d.ts.map +1 -0
  230. package/dist/components/presentation/auth/SignUp/v1/SignUp.d.ts +39 -0
  231. package/dist/components/presentation/auth/SignUp/v1/SignUp.d.ts.map +1 -0
  232. package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts +46 -0
  233. package/dist/components/presentation/auth/SignUp/v1/SignUpOptionFactory.d.ts.map +1 -0
  234. package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts +186 -0
  235. package/dist/components/presentation/auth/SignUp/v2/BaseSignUp.d.ts.map +1 -0
  236. package/dist/components/presentation/auth/SignUp/v2/SignUp.d.ts +39 -0
  237. package/dist/components/presentation/auth/SignUp/v2/SignUp.d.ts.map +1 -0
  238. package/dist/components/primitives/Alert/Alert.d.ts +76 -0
  239. package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
  240. package/dist/components/primitives/Alert/Alert.styles.d.ts +29 -0
  241. package/dist/components/primitives/Alert/Alert.styles.d.ts.map +1 -0
  242. package/dist/components/primitives/Avatar/Avatar.d.ts +60 -0
  243. package/dist/components/primitives/Avatar/Avatar.d.ts.map +1 -0
  244. package/dist/components/primitives/Avatar/Avatar.styles.d.ts +31 -0
  245. package/dist/components/primitives/Avatar/Avatar.styles.d.ts.map +1 -0
  246. package/dist/components/primitives/Button/Button.d.ts +88 -0
  247. package/dist/components/primitives/Button/Button.d.ts.map +1 -0
  248. package/dist/components/primitives/Button/Button.styles.d.ts +36 -0
  249. package/dist/components/primitives/Button/Button.styles.d.ts.map +1 -0
  250. package/dist/components/primitives/Card/Card.d.ts +133 -0
  251. package/dist/components/primitives/Card/Card.d.ts.map +1 -0
  252. package/dist/components/primitives/Card/Card.styles.d.ts +30 -0
  253. package/dist/components/primitives/Card/Card.styles.d.ts.map +1 -0
  254. package/dist/components/primitives/Checkbox/Checkbox.d.ts +43 -0
  255. package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
  256. package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts +29 -0
  257. package/dist/components/primitives/Checkbox/Checkbox.styles.d.ts.map +1 -0
  258. package/dist/components/primitives/CopyableText/CopyableText.d.ts +37 -0
  259. package/dist/components/primitives/CopyableText/CopyableText.d.ts.map +1 -0
  260. package/dist/components/primitives/CopyableText/CopyableText.styles.d.ts +21 -0
  261. package/dist/components/primitives/CopyableText/CopyableText.styles.d.ts.map +1 -0
  262. package/dist/components/primitives/CopyableText/index.d.ts +20 -0
  263. package/dist/components/primitives/CopyableText/index.d.ts.map +1 -0
  264. package/dist/components/primitives/DatePicker/DatePicker.d.ts +51 -0
  265. package/dist/components/primitives/DatePicker/DatePicker.d.ts.map +1 -0
  266. package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts +29 -0
  267. package/dist/components/primitives/DatePicker/DatePicker.styles.d.ts.map +1 -0
  268. package/dist/components/primitives/Dialog/Dialog.d.ts +62 -0
  269. package/dist/components/primitives/Dialog/Dialog.d.ts.map +1 -0
  270. package/dist/components/primitives/Dialog/Dialog.styles.d.ts +27 -0
  271. package/dist/components/primitives/Dialog/Dialog.styles.d.ts.map +1 -0
  272. package/dist/components/primitives/Divider/Divider.d.ts +59 -0
  273. package/dist/components/primitives/Divider/Divider.d.ts.map +1 -0
  274. package/dist/components/primitives/Divider/Divider.styles.d.ts +33 -0
  275. package/dist/components/primitives/Divider/Divider.styles.d.ts.map +1 -0
  276. package/dist/components/primitives/FormControl/FormControl.d.ts +52 -0
  277. package/dist/components/primitives/FormControl/FormControl.d.ts.map +1 -0
  278. package/dist/components/primitives/FormControl/FormControl.styles.d.ts +31 -0
  279. package/dist/components/primitives/FormControl/FormControl.styles.d.ts.map +1 -0
  280. package/dist/components/primitives/Icons/ArrowLeftRight.d.ts +30 -0
  281. package/dist/components/primitives/Icons/ArrowLeftRight.d.ts.map +1 -0
  282. package/dist/components/primitives/Icons/ArrowRightLeft.d.ts +30 -0
  283. package/dist/components/primitives/Icons/ArrowRightLeft.d.ts.map +1 -0
  284. package/dist/components/primitives/Icons/Building.d.ts +41 -0
  285. package/dist/components/primitives/Icons/Building.d.ts.map +1 -0
  286. package/dist/components/primitives/Icons/BuildingAlt.d.ts +41 -0
  287. package/dist/components/primitives/Icons/BuildingAlt.d.ts.map +1 -0
  288. package/dist/components/primitives/Icons/Check.d.ts +41 -0
  289. package/dist/components/primitives/Icons/Check.d.ts.map +1 -0
  290. package/dist/components/primitives/Icons/ChevronDown.d.ts +41 -0
  291. package/dist/components/primitives/Icons/ChevronDown.d.ts.map +1 -0
  292. package/dist/components/primitives/Icons/CircleAlert.d.ts +24 -0
  293. package/dist/components/primitives/Icons/CircleAlert.d.ts.map +1 -0
  294. package/dist/components/primitives/Icons/CircleCheck.d.ts +24 -0
  295. package/dist/components/primitives/Icons/CircleCheck.d.ts.map +1 -0
  296. package/dist/components/primitives/Icons/Eye.d.ts +24 -0
  297. package/dist/components/primitives/Icons/Eye.d.ts.map +1 -0
  298. package/dist/components/primitives/Icons/EyeOff.d.ts +24 -0
  299. package/dist/components/primitives/Icons/EyeOff.d.ts.map +1 -0
  300. package/dist/components/primitives/Icons/Info.d.ts +24 -0
  301. package/dist/components/primitives/Icons/Info.d.ts.map +1 -0
  302. package/dist/components/primitives/Icons/LogOut.d.ts +24 -0
  303. package/dist/components/primitives/Icons/LogOut.d.ts.map +1 -0
  304. package/dist/components/primitives/Icons/Plus.d.ts +24 -0
  305. package/dist/components/primitives/Icons/Plus.d.ts.map +1 -0
  306. package/dist/components/primitives/Icons/Settings.d.ts +1 -0
  307. package/dist/components/primitives/Icons/Settings.d.ts.map +1 -0
  308. package/dist/components/primitives/Icons/TriangleAlert.d.ts +24 -0
  309. package/dist/components/primitives/Icons/TriangleAlert.d.ts.map +1 -0
  310. package/dist/components/primitives/Icons/User.d.ts +24 -0
  311. package/dist/components/primitives/Icons/User.d.ts.map +1 -0
  312. package/dist/components/primitives/Icons/X.d.ts +24 -0
  313. package/dist/components/primitives/Icons/X.d.ts.map +1 -0
  314. package/dist/components/primitives/Icons/flowIconRegistry.d.ts +29 -0
  315. package/dist/components/primitives/Icons/flowIconRegistry.d.ts.map +1 -0
  316. package/dist/components/primitives/Icons/index.d.ts +29 -0
  317. package/dist/components/primitives/Icons/index.d.ts.map +1 -0
  318. package/dist/components/primitives/InputLabel/InputLabel.d.ts +52 -0
  319. package/dist/components/primitives/InputLabel/InputLabel.d.ts.map +1 -0
  320. package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts +31 -0
  321. package/dist/components/primitives/InputLabel/InputLabel.styles.d.ts.map +1 -0
  322. package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts +124 -0
  323. package/dist/components/primitives/KeyValueInput/KeyValueInput.d.ts.map +1 -0
  324. package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts +30 -0
  325. package/dist/components/primitives/KeyValueInput/KeyValueInput.styles.d.ts.map +1 -0
  326. package/dist/components/primitives/Logo/Logo.d.ts +53 -0
  327. package/dist/components/primitives/Logo/Logo.d.ts.map +1 -0
  328. package/dist/components/primitives/Logo/Logo.styles.d.ts +29 -0
  329. package/dist/components/primitives/Logo/Logo.styles.d.ts.map +1 -0
  330. package/dist/components/primitives/MultiInput/MultiInput.d.ts +89 -0
  331. package/dist/components/primitives/MultiInput/MultiInput.d.ts.map +1 -0
  332. package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts +33 -0
  333. package/dist/components/primitives/MultiInput/MultiInput.styles.d.ts.map +1 -0
  334. package/dist/components/primitives/OtpField/OtpField.d.ts +88 -0
  335. package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -0
  336. package/dist/components/primitives/OtpField/OtpField.styles.d.ts +31 -0
  337. package/dist/components/primitives/OtpField/OtpField.styles.d.ts.map +1 -0
  338. package/dist/components/primitives/PasswordField/PasswordField.d.ts +32 -0
  339. package/dist/components/primitives/PasswordField/PasswordField.d.ts.map +1 -0
  340. package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts +30 -0
  341. package/dist/components/primitives/PasswordField/PasswordField.styles.d.ts.map +1 -0
  342. package/dist/components/primitives/Select/Select.d.ts +65 -0
  343. package/dist/components/primitives/Select/Select.d.ts.map +1 -0
  344. package/dist/components/primitives/Select/Select.styles.d.ts +29 -0
  345. package/dist/components/primitives/Select/Select.styles.d.ts.map +1 -0
  346. package/dist/components/primitives/Spinner/Spinner.d.ts +55 -0
  347. package/dist/components/primitives/Spinner/Spinner.d.ts.map +1 -0
  348. package/dist/components/primitives/Spinner/Spinner.styles.d.ts +30 -0
  349. package/dist/components/primitives/Spinner/Spinner.styles.d.ts.map +1 -0
  350. package/dist/components/primitives/TextField/TextField.d.ts +63 -0
  351. package/dist/components/primitives/TextField/TextField.d.ts.map +1 -0
  352. package/dist/components/primitives/TextField/TextField.styles.d.ts +31 -0
  353. package/dist/components/primitives/TextField/TextField.styles.d.ts.map +1 -0
  354. package/dist/components/primitives/Toggle/Toggle.d.ts +41 -0
  355. package/dist/components/primitives/Toggle/Toggle.d.ts.map +1 -0
  356. package/dist/components/primitives/Toggle/Toggle.styles.d.ts +21 -0
  357. package/dist/components/primitives/Toggle/Toggle.styles.d.ts.map +1 -0
  358. package/dist/components/primitives/Typography/Typography.d.ts +80 -0
  359. package/dist/components/primitives/Typography/Typography.d.ts.map +1 -0
  360. package/dist/components/primitives/Typography/Typography.styles.d.ts +39 -0
  361. package/dist/components/primitives/Typography/Typography.styles.d.ts.map +1 -0
  362. package/dist/contexts/Branding/BrandingContext.d.ts +53 -0
  363. package/dist/contexts/Branding/BrandingContext.d.ts.map +1 -0
  364. package/dist/contexts/Branding/BrandingProvider.d.ts +89 -0
  365. package/dist/contexts/Branding/BrandingProvider.d.ts.map +1 -0
  366. package/dist/contexts/Branding/useBrandingContext.d.ts +45 -0
  367. package/dist/contexts/Branding/useBrandingContext.d.ts.map +1 -0
  368. package/dist/contexts/ComponentRenderer/ComponentRendererContext.d.ts +37 -0
  369. package/dist/contexts/ComponentRenderer/ComponentRendererContext.d.ts.map +1 -0
  370. package/dist/contexts/ComponentRenderer/ComponentRendererProvider.d.ts +25 -0
  371. package/dist/contexts/ComponentRenderer/ComponentRendererProvider.d.ts.map +1 -0
  372. package/dist/contexts/Flow/FlowContext.d.ts +75 -0
  373. package/dist/contexts/Flow/FlowContext.d.ts.map +1 -0
  374. package/dist/contexts/Flow/FlowProvider.d.ts +47 -0
  375. package/dist/contexts/Flow/FlowProvider.d.ts.map +1 -0
  376. package/dist/contexts/Flow/useFlow.d.ts +49 -0
  377. package/dist/contexts/Flow/useFlow.d.ts.map +1 -0
  378. package/dist/contexts/FlowMeta/FlowMetaContext.d.ts +45 -0
  379. package/dist/contexts/FlowMeta/FlowMetaContext.d.ts.map +1 -0
  380. package/dist/contexts/FlowMeta/FlowMetaProvider.d.ts +51 -0
  381. package/dist/contexts/FlowMeta/FlowMetaProvider.d.ts.map +1 -0
  382. package/dist/contexts/FlowMeta/useFlowMeta.d.ts +21 -0
  383. package/dist/contexts/FlowMeta/useFlowMeta.d.ts.map +1 -0
  384. package/dist/contexts/I18n/ComponentPreferencesContext.d.ts +27 -0
  385. package/dist/contexts/I18n/ComponentPreferencesContext.d.ts.map +1 -0
  386. package/dist/contexts/I18n/I18nContext.d.ts +49 -0
  387. package/dist/contexts/I18n/I18nContext.d.ts.map +1 -0
  388. package/dist/contexts/I18n/I18nProvider.d.ts +32 -0
  389. package/dist/contexts/I18n/I18nProvider.d.ts.map +1 -0
  390. package/dist/contexts/I18n/useI18n.d.ts +28 -0
  391. package/dist/contexts/I18n/useI18n.d.ts.map +1 -0
  392. package/dist/contexts/Organization/OrganizationContext.d.ts +41 -0
  393. package/dist/contexts/Organization/OrganizationContext.d.ts.map +1 -0
  394. package/dist/contexts/Organization/OrganizationProvider.d.ts +94 -0
  395. package/dist/contexts/Organization/OrganizationProvider.d.ts.map +1 -0
  396. package/dist/contexts/Organization/useOrganization.d.ts +105 -0
  397. package/dist/contexts/Organization/useOrganization.d.ts.map +1 -0
  398. package/dist/contexts/Theme/ThemeContext.d.ts +43 -0
  399. package/dist/contexts/Theme/ThemeContext.d.ts.map +1 -0
  400. package/dist/contexts/Theme/ThemeProvider.d.ts +86 -0
  401. package/dist/contexts/Theme/ThemeProvider.d.ts.map +1 -0
  402. package/dist/contexts/Theme/types.d.ts +131 -0
  403. package/dist/contexts/Theme/types.d.ts.map +1 -0
  404. package/dist/contexts/Theme/useTheme.d.ts +21 -0
  405. package/dist/contexts/Theme/useTheme.d.ts.map +1 -0
  406. package/dist/contexts/Theme/v1/ThemeProvider.d.ts +89 -0
  407. package/dist/contexts/Theme/v1/ThemeProvider.d.ts.map +1 -0
  408. package/dist/contexts/Theme/v2/ThemeProvider.d.ts +58 -0
  409. package/dist/contexts/Theme/v2/ThemeProvider.d.ts.map +1 -0
  410. package/dist/contexts/ThunderID/ThunderIDContext.d.ts +184 -0
  411. package/dist/contexts/ThunderID/ThunderIDContext.d.ts.map +1 -0
  412. package/dist/contexts/ThunderID/ThunderIDProvider.d.ts +26 -0
  413. package/dist/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -0
  414. package/dist/contexts/ThunderID/useThunderID.d.ts +21 -0
  415. package/dist/contexts/ThunderID/useThunderID.d.ts.map +1 -0
  416. package/dist/contexts/User/UserContext.d.ts +42 -0
  417. package/dist/contexts/User/UserContext.d.ts.map +1 -0
  418. package/dist/contexts/User/UserProvider.d.ts +65 -0
  419. package/dist/contexts/User/UserProvider.d.ts.map +1 -0
  420. package/dist/contexts/User/useUser.d.ts +95 -0
  421. package/dist/contexts/User/useUser.d.ts.map +1 -0
  422. package/dist/hooks/useBranding.d.ts +128 -0
  423. package/dist/hooks/useBranding.d.ts.map +1 -0
  424. package/dist/hooks/useBrowserUrl.d.ts +56 -0
  425. package/dist/hooks/useBrowserUrl.d.ts.map +1 -0
  426. package/dist/hooks/useForm.d.ts +194 -0
  427. package/dist/hooks/useForm.d.ts.map +1 -0
  428. package/dist/hooks/useTranslation.d.ts +53 -0
  429. package/dist/hooks/useTranslation.d.ts.map +1 -0
  430. package/dist/hooks/v2/useOAuthCallback.d.ts +83 -0
  431. package/dist/hooks/v2/useOAuthCallback.d.ts.map +1 -0
  432. package/dist/index.d.ts +206 -0
  433. package/dist/index.d.ts.map +1 -0
  434. package/dist/index.js +20044 -0
  435. package/dist/index.js.map +1 -0
  436. package/dist/models/adapters.d.ts +69 -0
  437. package/dist/models/adapters.d.ts.map +1 -0
  438. package/dist/models/config.d.ts +20 -0
  439. package/dist/models/config.d.ts.map +1 -0
  440. package/dist/utils/applyThemeToDOM.d.ts +25 -0
  441. package/dist/utils/applyThemeToDOM.d.ts.map +1 -0
  442. package/dist/utils/getDisplayName.d.ts +44 -0
  443. package/dist/utils/getDisplayName.d.ts.map +1 -0
  444. package/dist/utils/getMappedUserProfileValue.d.ts +52 -0
  445. package/dist/utils/getMappedUserProfileValue.d.ts.map +1 -0
  446. package/dist/utils/normalizeThemeConfig.d.ts +31 -0
  447. package/dist/utils/normalizeThemeConfig.d.ts.map +1 -0
  448. package/dist/utils/oauth.d.ts +25 -0
  449. package/dist/utils/oauth.d.ts.map +1 -0
  450. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +34 -0
  451. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
  452. package/dist/utils/v2/flowTransformer.d.ts +121 -0
  453. package/dist/utils/v2/flowTransformer.d.ts.map +1 -0
  454. package/dist/utils/v2/getAuthComponentHeadings.d.ts +70 -0
  455. package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +1 -0
  456. package/dist/utils/v2/passkey.d.ts +32 -0
  457. package/dist/utils/v2/passkey.d.ts.map +1 -0
  458. package/dist/utils/v2/resolveTranslationsInArray.d.ts +30 -0
  459. package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +1 -0
  460. package/dist/utils/v2/resolveTranslationsInObject.d.ts +30 -0
  461. package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +1 -0
  462. package/package.json +75 -0
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { FC, InputHTMLAttributes, ReactNode } from 'react';
19
+ export interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className'> {
20
+ /**
21
+ * Additional CSS class names
22
+ */
23
+ className?: string;
24
+ /**
25
+ * Whether the field is disabled
26
+ */
27
+ disabled?: boolean;
28
+ /**
29
+ * Icon to display at the end (right) of the input
30
+ */
31
+ endIcon?: ReactNode;
32
+ /**
33
+ * Error message to display below the input
34
+ */
35
+ error?: string;
36
+ /**
37
+ * Helper text to display below the input
38
+ */
39
+ helperText?: string;
40
+ /**
41
+ * Label text to display above the input
42
+ */
43
+ label?: string;
44
+ /**
45
+ * Click handler for the end icon
46
+ */
47
+ onEndIconClick?: () => void;
48
+ /**
49
+ * Click handler for the start icon
50
+ */
51
+ onStartIconClick?: () => void;
52
+ /**
53
+ * Whether the field is required
54
+ */
55
+ required?: boolean;
56
+ /**
57
+ * Icon to display at the start (left) of the input
58
+ */
59
+ startIcon?: ReactNode;
60
+ }
61
+ declare const TextField: FC<TextFieldProps>;
62
+ export default TextField;
63
+ //# sourceMappingURL=TextField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/TextField/TextField.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,EAAE,EAAE,mBAAmB,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAMzD,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC9F;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAmFjC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Theme } from '@thunderid/browser';
19
+ /**
20
+ * Creates styles for the TextField component using BEM methodology
21
+ * @param theme - The theme object containing design tokens
22
+ * @param colorScheme - The current color scheme (used for memoization)
23
+ * @param disabled - Whether the component is disabled
24
+ * @param hasError - Whether the component has an error
25
+ * @param hasStartIcon - Whether the component has a start icon
26
+ * @param hasEndIcon - Whether the component has an end icon
27
+ * @returns Object containing CSS class names for component styling
28
+ */
29
+ declare const useStyles: (theme: Theme, colorScheme: string, disabled: boolean, hasError: boolean, hasStartIcon: boolean, hasEndIcon: boolean) => Record<string, string>;
30
+ export default useStyles;
31
+ //# sourceMappingURL=TextField.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/TextField/TextField.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAGzC;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS,GACb,OAAO,KAAK,EACZ,aAAa,MAAM,EACnB,UAAU,OAAO,EACjB,UAAU,OAAO,EACjB,cAAc,OAAO,EACrB,YAAY,OAAO,KAClB,MAAM,CAAC,MAAM,EAAE,MAAM,CAoHgD,CAAC;AAEzE,eAAe,SAAS,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { FC, InputHTMLAttributes } from 'react';
19
+ /**
20
+ * Props for the Toggle component.
21
+ */
22
+ export interface ToggleProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'type'> {
23
+ className?: string;
24
+ error?: string;
25
+ helperText?: string;
26
+ label?: string;
27
+ required?: boolean;
28
+ }
29
+ /**
30
+ * A Toggle component that represents a boolean input. It is built on top of a hidden checkbox input
31
+ * and styled to look like a switch.
32
+ *
33
+ * The component is wrapped in a FormControl to display error messages and helper text.
34
+ * The label is associated with the input for accessibility.
35
+ *
36
+ * @param props - Props for the Toggle component
37
+ * @returns A JSX element representing the Toggle
38
+ */
39
+ declare const Toggle: FC<ToggleProps>;
40
+ export default Toggle;
41
+ //# sourceMappingURL=Toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,EAAE,EAAE,mBAAmB,EAAC,MAAM,OAAO,CAAC;AAM9C;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACpG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAuC3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Theme } from '@thunderid/browser';
19
+ declare const useStyles: (theme: Theme, colorScheme: string, hasError: boolean, required: boolean) => Record<string, string>;
20
+ export default useStyles;
21
+ //# sourceMappingURL=Toggle.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Toggle.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Toggle/Toggle.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAGzC,QAAA,MAAM,SAAS,GAAI,OAAO,KAAK,EAAE,aAAa,MAAM,EAAE,UAAU,OAAO,EAAE,UAAU,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CA0FpE,CAAC;AAE/C,eAAe,SAAS,CAAC"}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { CSSProperties, FC, ReactNode, ElementType } from 'react';
19
+ import { TypographyVariant, TypographyAlign, TypographyColor } from './Typography.styles';
20
+ export interface TypographyProps {
21
+ /**
22
+ * Text alignment
23
+ */
24
+ align?: TypographyAlign;
25
+ /**
26
+ * The content to be rendered
27
+ */
28
+ children: ReactNode;
29
+ /**
30
+ * Additional CSS class names
31
+ */
32
+ className?: string;
33
+ /**
34
+ * Color variant
35
+ */
36
+ color?: TypographyColor;
37
+ /**
38
+ * The HTML element or React component to render
39
+ */
40
+ component?: ElementType;
41
+ /**
42
+ * Custom font size (overrides variant sizing)
43
+ */
44
+ fontSize?: string | number;
45
+ /**
46
+ * Custom font weight
47
+ */
48
+ fontWeight?: 'normal' | 'medium' | 'semibold' | 'bold' | number;
49
+ /**
50
+ * Whether to disable gutters (margin bottom)
51
+ */
52
+ gutterBottom?: boolean;
53
+ /**
54
+ * Whether the text should be displayed inline
55
+ */
56
+ inline?: boolean;
57
+ /**
58
+ * Line height
59
+ */
60
+ lineHeight?: string | number;
61
+ /**
62
+ * Whether the text should be clipped with ellipsis when it overflows
63
+ */
64
+ noWrap?: boolean;
65
+ /**
66
+ * Custom styles
67
+ */
68
+ style?: CSSProperties;
69
+ /**
70
+ * The typography variant to apply
71
+ */
72
+ variant?: TypographyVariant;
73
+ }
74
+ /**
75
+ * Typography component for consistent text rendering throughout the application.
76
+ * Integrates with the theme system and provides semantic HTML elements.
77
+ */
78
+ declare const Typography: FC<TypographyProps>;
79
+ export default Typography;
80
+ //# sourceMappingURL=Typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Typography/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAC,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAChE,OAAkB,EAAC,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAC,MAAM,qBAAqB,CAAC;AAGnG,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IAChE;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAmBD;;;GAGG;AACH,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAkFnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Theme } from '@thunderid/browser';
19
+ export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline' | 'button';
20
+ export type TypographyAlign = 'left' | 'center' | 'right' | 'justify';
21
+ export type TypographyColor = 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | 'textPrimary' | 'textSecondary' | 'inherit';
22
+ /**
23
+ * Creates styles for the Typography component using BEM methodology
24
+ * @param theme - The theme object containing design tokens
25
+ * @param colorScheme - The current color scheme (used for memoization)
26
+ * @param variant - The typography variant
27
+ * @param align - Text alignment
28
+ * @param color - Color variant
29
+ * @param noWrap - Whether text should be truncated with ellipsis
30
+ * @param inline - Whether text should be displayed inline
31
+ * @param gutterBottom - Whether to add bottom margin
32
+ * @param fontWeight - Custom font weight
33
+ * @param fontSize - Custom font size
34
+ * @param lineHeight - Custom line height
35
+ * @returns Object containing CSS class names for component styling
36
+ */
37
+ declare const useStyles: (theme: Theme, colorScheme: string, variant: TypographyVariant, align: TypographyAlign, color: TypographyColor, noWrap: boolean, inline: boolean, gutterBottom: boolean, fontWeight?: "normal" | "medium" | "semibold" | "bold" | number, fontSize?: string | number, lineHeight?: string | number) => Record<string, string>;
38
+ export default useStyles;
39
+ //# sourceMappingURL=Typography.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/Typography/Typography.styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAGzC,MAAM,MAAM,iBAAiB,GACzB,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,WAAW,GACX,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,GACV,QAAQ,CAAC;AAEb,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtE,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,aAAa,GACb,eAAe,GACf,SAAS,CAAC;AAEd;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,SAAS,GACb,OAAO,KAAK,EACZ,aAAa,MAAM,EACnB,SAAS,iBAAiB,EAC1B,OAAO,eAAe,EACtB,OAAO,eAAe,EACtB,QAAQ,OAAO,EACf,QAAQ,OAAO,EACf,cAAc,OAAO,EACrB,aAAa,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,EAC/D,WAAW,MAAM,GAAG,MAAM,EAC1B,aAAa,MAAM,GAAG,MAAM,KAC3B,MAAM,CAAC,MAAM,EAAE,MAAM,CA2RyF,CAAC;AAElH,eAAe,SAAS,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { BrandingPreference, Theme } from '@thunderid/browser';
19
+ import { Context } from 'react';
20
+ export interface BrandingContextValue {
21
+ /**
22
+ * The active theme mode from branding preference ('light' | 'dark')
23
+ */
24
+ activeTheme: 'light' | 'dark' | null;
25
+ /**
26
+ * The raw branding preference data
27
+ */
28
+ brandingPreference: BrandingPreference | null;
29
+ /**
30
+ * Error state
31
+ */
32
+ error: Error | null;
33
+ /**
34
+ * Function to manually fetch branding preference
35
+ */
36
+ fetchBranding: () => Promise<void>;
37
+ /**
38
+ * Loading state
39
+ */
40
+ isLoading: boolean;
41
+ /**
42
+ * Function to refetch branding preference
43
+ * This bypasses the single-call restriction and forces a new API call
44
+ */
45
+ refetch: () => Promise<void>;
46
+ /**
47
+ * The transformed theme object
48
+ */
49
+ theme: Theme | null;
50
+ }
51
+ declare const BrandingContext: Context<BrandingContextValue | null>;
52
+ export default BrandingContext;
53
+ //# sourceMappingURL=BrandingContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrandingContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/Branding/BrandingContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,kBAAkB,EAAE,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAC,OAAO,EAAgB,MAAM,OAAO,CAAC;AAE7C,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;IACrC;;OAEG;IACH,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC9C;;OAEG;IACH,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAoD,CAAC;AAI/G,eAAe,eAAe,CAAC"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { BrandingPreference } from '@thunderid/browser';
19
+ import { FC, PropsWithChildren } from 'react';
20
+ /**
21
+ * Configuration options for the BrandingProvider
22
+ */
23
+ export interface BrandingProviderProps {
24
+ /**
25
+ * The branding preference data passed from parent (typically ThunderIDProvider)
26
+ */
27
+ brandingPreference?: BrandingPreference | null;
28
+ /**
29
+ * Whether the branding provider is enabled
30
+ * @default true
31
+ */
32
+ enabled?: boolean;
33
+ /**
34
+ * Error state passed from parent
35
+ */
36
+ error?: Error | null;
37
+ /**
38
+ * Force a specific theme ('light' or 'dark')
39
+ * If not provided, will use the activeTheme from branding preference
40
+ */
41
+ forceTheme?: 'light' | 'dark';
42
+ /**
43
+ * Loading state passed from parent
44
+ */
45
+ isLoading?: boolean;
46
+ /**
47
+ * Function to refetch branding preference passed from parent
48
+ */
49
+ refetch?: () => Promise<void>;
50
+ }
51
+ /**
52
+ * BrandingProvider component that manages branding state and provides branding context to child components.
53
+ *
54
+ * This provider receives branding preferences from a parent component (typically ThunderIDProvider)
55
+ * and transforms them into theme objects, making them available to all child components.
56
+ *
57
+ * Features:
58
+ * - Receives branding preferences as props
59
+ * - Theme transformation from branding preferences
60
+ * - Loading and error states
61
+ * - Support for custom theme forcing
62
+ *
63
+ * @example
64
+ * Basic usage (typically used within ThunderIDProvider):
65
+ * ```tsx
66
+ * <BrandingProvider
67
+ * brandingPreference={brandingData}
68
+ * isLoading={isFetching}
69
+ * error={fetchError}
70
+ * >
71
+ * <App />
72
+ * </BrandingProvider>
73
+ * ```
74
+ *
75
+ * @example
76
+ * With custom theme forcing:
77
+ * ```tsx
78
+ * <BrandingProvider
79
+ * brandingPreference={brandingData}
80
+ * forceTheme="dark"
81
+ * enabled={true}
82
+ * >
83
+ * <App />
84
+ * </BrandingProvider>
85
+ * ```
86
+ */
87
+ declare const BrandingProvider: FC<PropsWithChildren<BrandingProviderProps>>;
88
+ export default BrandingProvider;
89
+ //# sourceMappingURL=BrandingProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BrandingProvider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Branding/BrandingProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,kBAAkB,EAA4C,MAAM,oBAAoB,CAAC;AACjG,OAAO,EAAC,EAAE,EAAE,iBAAiB,EAAiD,MAAM,OAAO,CAAC;AAG5F;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC/C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,QAAA,MAAM,gBAAgB,EAAE,EAAE,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAiElE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { BrandingContextValue } from './BrandingContext';
19
+ /**
20
+ * Hook to access the branding context.
21
+ * This hook provides access to branding preferences, theme data, and loading states.
22
+ *
23
+ * @returns The branding context value containing branding preference data, theme, and control functions
24
+ * @throws Error if used outside of a BrandingProvider
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * function MyComponent() {
29
+ * const { theme, activeTheme, isLoading, error } = useBrandingContext();
30
+ *
31
+ * if (isLoading) return <div>Loading branding...</div>;
32
+ * if (error) return <div>Error: {error.message}</div>;
33
+ *
34
+ * return (
35
+ * <div style={{ color: theme?.colors?.primary?.main }}>
36
+ * <p>Active theme mode: {activeTheme}</p>
37
+ * <p>Styled with ThunderID branding</p>
38
+ * </div>
39
+ * );
40
+ * }
41
+ * ```
42
+ */
43
+ declare const useBrandingContext: () => BrandingContextValue;
44
+ export default useBrandingContext;
45
+ //# sourceMappingURL=useBrandingContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBrandingContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/Branding/useBrandingContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAwB,EAAC,oBAAoB,EAAC,MAAM,mBAAmB,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAA,MAAM,kBAAkB,QAAO,oBAM9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { EmbeddedFlowComponentV2 as EmbeddedFlowComponent, FlowMetadataResponse } from '@thunderid/browser';
19
+ import { Context, ReactElement } from 'react';
20
+ export interface ComponentRenderContext {
21
+ additionalData?: Record<string, any>;
22
+ authType: 'signin' | 'signup' | 'recovery';
23
+ formErrors: Record<string, string>;
24
+ formValues: Record<string, string>;
25
+ isFormValid: boolean;
26
+ isLoading: boolean;
27
+ meta?: FlowMetadataResponse | null;
28
+ onInputBlur?: (name: string) => void;
29
+ onInputChange: (name: string, value: string) => void;
30
+ onSubmit?: (component: EmbeddedFlowComponent, data?: Record<string, any>, skipValidation?: boolean) => void;
31
+ touchedFields: Record<string, boolean>;
32
+ }
33
+ export type ComponentRenderer = (component: EmbeddedFlowComponent, context: ComponentRenderContext) => ReactElement | null;
34
+ export type ComponentRendererMap = Record<string, ComponentRenderer>;
35
+ declare const ComponentRendererContext: Context<ComponentRendererMap>;
36
+ export default ComponentRendererContext;
37
+ //# sourceMappingURL=ComponentRendererContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComponentRendererContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ComponentRenderer/ComponentRendererContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAC1G,OAAO,EAAC,OAAO,EAAiB,YAAY,EAAC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,sBAAsB;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5G,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,MAAM,iBAAiB,GAAG,CAC9B,SAAS,EAAE,qBAAqB,EAChC,OAAO,EAAE,sBAAsB,KAC5B,YAAY,GAAG,IAAI,CAAC;AAEzB,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAErE,QAAA,MAAM,wBAAwB,EAAE,OAAO,CAAC,oBAAoB,CAA2C,CAAC;AAExG,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { FC, PropsWithChildren } from 'react';
19
+ import { ComponentRendererMap } from './ComponentRendererContext';
20
+ interface ComponentRendererProviderProps {
21
+ renderers: ComponentRendererMap;
22
+ }
23
+ declare const ComponentRendererProvider: FC<PropsWithChildren<ComponentRendererProviderProps>>;
24
+ export default ComponentRendererProvider;
25
+ //# sourceMappingURL=ComponentRendererProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ComponentRendererProvider.d.ts","sourceRoot":"","sources":["../../../src/contexts/ComponentRenderer/ComponentRendererProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,EAAE,EAAE,iBAAiB,EAAe,MAAM,OAAO,CAAC;AAC1D,OAAiC,EAAC,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AAE1F,UAAU,8BAA8B;IACtC,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED,QAAA,MAAM,yBAAyB,EAAE,EAAE,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAKpF,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { Context } from 'react';
19
+ /**
20
+ * Types of authentication flows/steps that can be displayed.
21
+ */
22
+ export type FlowStep = {
23
+ canGoBack?: boolean;
24
+ id: string;
25
+ metadata?: Record<string, any>;
26
+ subtitle?: string;
27
+ title: string;
28
+ type: 'signin' | 'signup' | 'organization-signin' | 'forgot-password' | 'reset-password' | 'verify-email' | 'mfa';
29
+ } | null;
30
+ /**
31
+ * Message types for displaying in authentication flows.
32
+ */
33
+ export interface FlowMessage {
34
+ dismissible?: boolean;
35
+ id?: string;
36
+ message: string;
37
+ type: 'success' | 'error' | 'warning' | 'info';
38
+ }
39
+ /**
40
+ * Context value for managing authentication flow UI state.
41
+ */
42
+ export interface FlowContextValue {
43
+ addMessage: (message: FlowMessage) => void;
44
+ clearMessages: () => void;
45
+ currentStep: FlowStep;
46
+ error: string | null;
47
+ isLoading: boolean;
48
+ messages: FlowMessage[];
49
+ navigateToFlow: (flowType: NonNullable<FlowStep>['type'], options?: {
50
+ metadata?: Record<string, any>;
51
+ subtitle?: string;
52
+ title?: string;
53
+ }) => void;
54
+ onGoBack?: () => void;
55
+ removeMessage: (messageId: string) => void;
56
+ reset: () => void;
57
+ setCurrentStep: (step: FlowStep) => void;
58
+ setError: (error: string | null) => void;
59
+ setIsLoading: (loading: boolean) => void;
60
+ setOnGoBack: (callback?: () => void) => void;
61
+ setShowBackButton: (show: boolean) => void;
62
+ setSubtitle: (subtitle?: string) => void;
63
+ setTitle: (title: string) => void;
64
+ showBackButton: boolean;
65
+ subtitle?: string;
66
+ title: string;
67
+ }
68
+ /**
69
+ * Context for managing authentication flow UI state.
70
+ * This context handles titles, messages, navigation, and loading states
71
+ * for authentication flows like SignIn, SignUp, organization signin, etc.
72
+ */
73
+ declare const FlowContext: Context<FlowContextValue | undefined>;
74
+ export default FlowContext;
75
+ //# sourceMappingURL=FlowContext.d.ts.map