mogh_ui 0.7.2 → 0.7.4

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 (200) hide show
  1. package/dist/auth/index.d.ts +16 -22
  2. package/dist/auth/index.d.ts.map +1 -0
  3. package/dist/auth/login/header.d.ts +4 -7
  4. package/dist/auth/login/header.d.ts.map +1 -0
  5. package/dist/auth/login/index.d.ts +4 -7
  6. package/dist/auth/login/index.d.ts.map +1 -0
  7. package/dist/auth/profile/index.d.ts +4 -5
  8. package/dist/auth/profile/index.d.ts.map +1 -0
  9. package/dist/auth/profile/linked-logins.d.ts +4 -7
  10. package/dist/auth/profile/linked-logins.d.ts.map +1 -0
  11. package/dist/auth/profile/passkey.d.ts +3 -6
  12. package/dist/auth/profile/passkey.d.ts.map +1 -0
  13. package/dist/auth/profile/totp.d.ts +3 -6
  14. package/dist/auth/profile/totp.d.ts.map +1 -0
  15. package/dist/auth/utils.d.ts +3 -4
  16. package/dist/auth/utils.d.ts.map +1 -0
  17. package/dist/color.d.ts +4 -5
  18. package/dist/color.d.ts.map +1 -0
  19. package/dist/components/back-button.d.ts +4 -7
  20. package/dist/components/back-button.d.ts.map +1 -0
  21. package/dist/components/button-link.d.ts +4 -7
  22. package/dist/components/button-link.d.ts.map +1 -0
  23. package/dist/components/config/confirm.d.ts +4 -8
  24. package/dist/components/config/confirm.d.ts.map +1 -0
  25. package/dist/components/config/group.d.ts +9 -10
  26. package/dist/components/config/group.d.ts.map +1 -0
  27. package/dist/components/config/index.d.ts +12 -25
  28. package/dist/components/config/index.d.ts.map +1 -0
  29. package/dist/components/config/item.d.ts +15 -19
  30. package/dist/components/config/item.d.ts.map +1 -0
  31. package/dist/components/config/layout.d.ts +5 -9
  32. package/dist/components/config/layout.d.ts.map +1 -0
  33. package/dist/components/config/unsaved-changes.d.ts +3 -6
  34. package/dist/components/config/unsaved-changes.d.ts.map +1 -0
  35. package/dist/components/confirm-button.d.ts +8 -12
  36. package/dist/components/confirm-button.d.ts.map +1 -0
  37. package/dist/components/confirm-icon.d.ts +8 -12
  38. package/dist/components/confirm-icon.d.ts.map +1 -0
  39. package/dist/components/confirm-modal.d.ts +5 -8
  40. package/dist/components/confirm-modal.d.ts.map +1 -0
  41. package/dist/components/copy-button.d.ts +6 -9
  42. package/dist/components/copy-button.d.ts.map +1 -0
  43. package/dist/components/copy-text.d.ts +4 -7
  44. package/dist/components/copy-text.d.ts.map +1 -0
  45. package/dist/components/create-modal.d.ts +5 -8
  46. package/dist/components/create-modal.d.ts.map +1 -0
  47. package/dist/components/data-table.cjs +17 -7
  48. package/dist/components/data-table.cjs.map +1 -1
  49. package/dist/components/data-table.d.ts +11 -13
  50. package/dist/components/data-table.d.ts.map +1 -0
  51. package/dist/components/data-table.js +18 -7
  52. package/dist/components/data-table.js.map +1 -1
  53. package/dist/components/divided-children/index.d.ts +6 -10
  54. package/dist/components/divided-children/index.d.ts.map +1 -0
  55. package/dist/components/enable-switch.d.ts +4 -7
  56. package/dist/components/enable-switch.d.ts.map +1 -0
  57. package/dist/components/entity-header.d.ts +5 -8
  58. package/dist/components/entity-header.d.ts.map +1 -0
  59. package/dist/components/entity-page.d.ts +5 -8
  60. package/dist/components/entity-page.d.ts.map +1 -0
  61. package/dist/components/fancy-card/index.d.ts +7 -10
  62. package/dist/components/fancy-card/index.d.ts.map +1 -0
  63. package/dist/components/hover-error.d.ts +3 -6
  64. package/dist/components/hover-error.d.ts.map +1 -0
  65. package/dist/components/info-card.d.ts +8 -12
  66. package/dist/components/info-card.d.ts.map +1 -0
  67. package/dist/components/input-list.d.ts +4 -7
  68. package/dist/components/input-list.d.ts.map +1 -0
  69. package/dist/components/labelled-switch.d.ts +5 -8
  70. package/dist/components/labelled-switch.d.ts.map +1 -0
  71. package/dist/components/labels-group.d.ts +4 -7
  72. package/dist/components/labels-group.d.ts.map +1 -0
  73. package/dist/components/loading-screen.d.ts +4 -7
  74. package/dist/components/loading-screen.d.ts.map +1 -0
  75. package/dist/components/mobile-friendly-tabs.d.ts +12 -15
  76. package/dist/components/mobile-friendly-tabs.d.ts.map +1 -0
  77. package/dist/components/monaco/index.d.ts +9 -11
  78. package/dist/components/monaco/index.d.ts.map +1 -0
  79. package/dist/components/monaco/init.cjs +8 -7
  80. package/dist/components/monaco/init.cjs.map +1 -1
  81. package/dist/components/monaco/init.d.ts +8 -2
  82. package/dist/components/monaco/init.d.ts.map +1 -0
  83. package/dist/components/monaco/syntax/fancy_toml.d.ts +2 -2
  84. package/dist/components/monaco/syntax/fancy_toml.d.ts.map +1 -0
  85. package/dist/components/monaco/syntax/key_value.d.ts +2 -2
  86. package/dist/components/monaco/syntax/key_value.d.ts.map +1 -0
  87. package/dist/components/monaco/syntax/shell.d.ts +2 -2
  88. package/dist/components/monaco/syntax/shell.d.ts.map +1 -0
  89. package/dist/components/monaco/syntax/string_list.d.ts +2 -2
  90. package/dist/components/monaco/syntax/string_list.d.ts.map +1 -0
  91. package/dist/components/monaco/syntax/toml.d.ts +2 -2
  92. package/dist/components/monaco/syntax/toml.d.ts.map +1 -0
  93. package/dist/components/monaco/syntax/yaml.d.ts +2 -2
  94. package/dist/components/monaco/syntax/yaml.d.ts.map +1 -0
  95. package/dist/components/monaco/theme.d.ts +2 -2
  96. package/dist/components/monaco/theme.d.ts.map +1 -0
  97. package/dist/components/page-guard.d.ts +5 -8
  98. package/dist/components/page-guard.d.ts.map +1 -0
  99. package/dist/components/page.d.ts +8 -12
  100. package/dist/components/page.d.ts.map +1 -0
  101. package/dist/components/search-input.d.ts +4 -7
  102. package/dist/components/search-input.d.ts.map +1 -0
  103. package/dist/components/section.d.ts +8 -12
  104. package/dist/components/section.d.ts.map +1 -0
  105. package/dist/components/shared-text-update.d.ts +7 -10
  106. package/dist/components/shared-text-update.d.ts.map +1 -0
  107. package/dist/components/show-hide-button.d.ts +3 -6
  108. package/dist/components/show-hide-button.d.ts.map +1 -0
  109. package/dist/components/stat-bar.d.ts +5 -8
  110. package/dist/components/stat-bar.d.ts.map +1 -0
  111. package/dist/components/stat-cell.cjs +1 -1
  112. package/dist/components/stat-cell.cjs.map +1 -1
  113. package/dist/components/stat-cell.d.ts +6 -9
  114. package/dist/components/stat-cell.d.ts.map +1 -0
  115. package/dist/components/stat-cell.js +1 -1
  116. package/dist/components/stat-cell.js.map +1 -1
  117. package/dist/components/status-badge.d.ts +8 -11
  118. package/dist/components/status-badge.d.ts.map +1 -0
  119. package/dist/components/tabbed-page.d.ts +6 -9
  120. package/dist/components/tabbed-page.d.ts.map +1 -0
  121. package/dist/components/table-skeleton.d.ts +3 -6
  122. package/dist/components/table-skeleton.d.ts.map +1 -0
  123. package/dist/components/text-update-modal.d.ts +6 -9
  124. package/dist/components/text-update-modal.d.ts.map +1 -0
  125. package/dist/components/theme-toggle.d.ts +2 -5
  126. package/dist/components/theme-toggle.d.ts.map +1 -0
  127. package/dist/formatting.d.ts +13 -14
  128. package/dist/formatting.d.ts.map +1 -0
  129. package/dist/hooks.d.ts +10 -14
  130. package/dist/hooks.d.ts.map +1 -0
  131. package/dist/index.d.ts +43 -56
  132. package/dist/index.d.ts.map +1 -0
  133. package/dist/theme.d.ts +11 -14
  134. package/dist/theme.d.ts.map +1 -0
  135. package/dist/utils.d.ts +4 -5
  136. package/dist/utils.d.ts.map +1 -0
  137. package/package.json +6 -6
  138. package/dist/auth/index.d.cts +0 -51
  139. package/dist/auth/login/header.d.cts +0 -8
  140. package/dist/auth/login/index.d.cts +0 -15
  141. package/dist/auth/profile/index.d.cts +0 -5
  142. package/dist/auth/profile/linked-logins.d.cts +0 -13
  143. package/dist/auth/profile/passkey.d.cts +0 -9
  144. package/dist/auth/profile/totp.d.cts +0 -9
  145. package/dist/auth/utils.d.cts +0 -4
  146. package/dist/color.d.cts +0 -5
  147. package/dist/components/back-button.d.cts +0 -9
  148. package/dist/components/button-link.d.cts +0 -9
  149. package/dist/components/config/confirm.d.cts +0 -20
  150. package/dist/components/config/group.d.cts +0 -10
  151. package/dist/components/config/index.d.cts +0 -62
  152. package/dist/components/config/item.d.cts +0 -44
  153. package/dist/components/config/layout.d.cts +0 -11
  154. package/dist/components/config/unsaved-changes.d.cts +0 -7
  155. package/dist/components/confirm-button.d.cts +0 -23
  156. package/dist/components/confirm-icon.d.cts +0 -20
  157. package/dist/components/confirm-modal.d.cts +0 -25
  158. package/dist/components/copy-button.d.cts +0 -15
  159. package/dist/components/copy-text.d.cts +0 -11
  160. package/dist/components/create-modal.d.cts +0 -18
  161. package/dist/components/data-table.d.cts +0 -43
  162. package/dist/components/divided-children/index.d.cts +0 -15
  163. package/dist/components/enable-switch.d.cts +0 -12
  164. package/dist/components/entity-header.d.cts +0 -20
  165. package/dist/components/entity-page.d.cts +0 -11
  166. package/dist/components/fancy-card/index.d.cts +0 -17
  167. package/dist/components/hover-error.d.cts +0 -9
  168. package/dist/components/info-card.d.cts +0 -21
  169. package/dist/components/input-list.d.cts +0 -14
  170. package/dist/components/labelled-switch.d.cts +0 -14
  171. package/dist/components/labels-group.d.cts +0 -10
  172. package/dist/components/loading-screen.d.cts +0 -8
  173. package/dist/components/mobile-friendly-tabs.d.cts +0 -43
  174. package/dist/components/monaco/index.d.cts +0 -32
  175. package/dist/components/monaco/init.d.cts +0 -2
  176. package/dist/components/monaco/syntax/fancy_toml.d.cts +0 -2
  177. package/dist/components/monaco/syntax/key_value.d.cts +0 -2
  178. package/dist/components/monaco/syntax/shell.d.cts +0 -2
  179. package/dist/components/monaco/syntax/string_list.d.cts +0 -2
  180. package/dist/components/monaco/syntax/toml.d.cts +0 -2
  181. package/dist/components/monaco/syntax/yaml.d.cts +0 -2
  182. package/dist/components/monaco/theme.d.cts +0 -2
  183. package/dist/components/page-guard.d.cts +0 -12
  184. package/dist/components/page.d.cts +0 -31
  185. package/dist/components/search-input.d.cts +0 -9
  186. package/dist/components/section.d.cts +0 -33
  187. package/dist/components/shared-text-update.d.cts +0 -20
  188. package/dist/components/show-hide-button.d.cts +0 -8
  189. package/dist/components/stat-bar.d.cts +0 -15
  190. package/dist/components/stat-cell.d.cts +0 -17
  191. package/dist/components/status-badge.d.cts +0 -20
  192. package/dist/components/tabbed-page.d.cts +0 -19
  193. package/dist/components/table-skeleton.d.cts +0 -8
  194. package/dist/components/text-update-modal.d.cts +0 -19
  195. package/dist/components/theme-toggle.d.cts +0 -5
  196. package/dist/formatting.d.cts +0 -14
  197. package/dist/hooks.d.cts +0 -30
  198. package/dist/index.d.cts +0 -56
  199. package/dist/theme.d.cts +0 -18
  200. package/dist/utils.d.cts +0 -17
@@ -1,21 +1,16 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { UseMutationOptions } from '@tanstack/react-query';
3
- import * as MoghAuth from 'mogh_auth_client';
4
- export { LoginBrandingProps, LoginPage } from './login/index.js';
5
- export { LinkedLogins } from './profile/linked-logins.js';
6
- export { EnrollPasskey } from './profile/passkey.js';
7
- export { EnrollTotp } from './profile/totp.js';
8
- export { sanitizeQuery, sanitizeQueryInner } from './utils.js';
9
- import 'react';
10
-
11
- declare let AUTH_URL: string;
1
+ import { UseMutationOptions } from "@tanstack/react-query";
2
+ import * as MoghAuth from "mogh_auth_client";
3
+ export * from "./login";
4
+ export * from "./profile";
5
+ export * from "./utils";
6
+ export declare let AUTH_URL: string;
12
7
  /**
13
8
  * Set the global auth url.
14
9
  * Make sure to call this before first render.
15
10
  * @param url The global url
16
11
  */
17
- declare function setAuthUrl(url: string): void;
18
- declare function authClient(): {
12
+ export declare function setAuthUrl(url: string): void;
13
+ export declare function authClient(): {
19
14
  login: <T extends MoghAuth.Types.LoginRequest["type"], Req extends Extract<MoghAuth.Types.LoginRequest, {
20
15
  type: T;
21
16
  }>>(type: T, params: Req["params"]) => Promise<MoghAuth.LoginResponses[Req["type"]]>;
@@ -24,28 +19,27 @@ declare function authClient(): {
24
19
  }>>(type: T, params: Req["params"]) => Promise<MoghAuth.ManageResponses[Req["type"]]>;
25
20
  externalLogin: (provider: MoghAuth.Types.ExternalLoginProvider) => void;
26
21
  };
27
- declare function useLoginOptions(): _tanstack_react_query.UseQueryResult<NoInfer<MoghAuth.Types.GetLoginOptionsResponse>, Error>;
28
- declare function useLogin<T extends MoghAuth.Types.LoginRequest["type"], R extends Extract<MoghAuth.Types.LoginRequest, {
22
+ export declare function useLoginOptions(): import("@tanstack/react-query").UseQueryResult<NoInfer<MoghAuth.Types.GetLoginOptionsResponse>, Error>;
23
+ export declare function useLogin<T extends MoghAuth.Types.LoginRequest["type"], R extends Extract<MoghAuth.Types.LoginRequest, {
29
24
  type: T;
30
- }>, P extends R["params"], C extends Omit<UseMutationOptions<MoghAuth.LoginResponses[T], unknown, P, unknown>, "mutationKey" | "mutationFn">>(type: T, config?: C): _tanstack_react_query.UseMutationResult<MoghAuth.LoginResponses[R["type"]], {
25
+ }>, P extends R["params"], C extends Omit<UseMutationOptions<MoghAuth.LoginResponses[T], unknown, P, unknown>, "mutationKey" | "mutationFn">>(type: T, config?: C): import("@tanstack/react-query").UseMutationResult<MoghAuth.LoginResponses[R["type"]], {
31
26
  result: {
32
27
  error?: string;
33
28
  trace?: string[];
34
29
  };
35
30
  }, P, unknown>;
36
- declare function useUserId(): _tanstack_react_query.UseQueryResult<NoInfer<MoghAuth.Types.GetUserIdResponse>, Error>;
37
- declare function useManageAuth<T extends MoghAuth.Types.ManageRequest["type"], R extends Extract<MoghAuth.Types.ManageRequest, {
31
+ export declare function useUserId(): import("@tanstack/react-query").UseQueryResult<NoInfer<MoghAuth.Types.GetUserIdResponse>, Error>;
32
+ export declare function useManageAuth<T extends MoghAuth.Types.ManageRequest["type"], R extends Extract<MoghAuth.Types.ManageRequest, {
38
33
  type: T;
39
- }>, P extends R["params"], C extends Omit<UseMutationOptions<MoghAuth.ManageResponses[T], unknown, P, unknown>, "mutationKey" | "mutationFn">>(type: T, config?: C): _tanstack_react_query.UseMutationResult<MoghAuth.ManageResponses[R["type"]], {
34
+ }>, P extends R["params"], C extends Omit<UseMutationOptions<MoghAuth.ManageResponses[T], unknown, P, unknown>, "mutationKey" | "mutationFn">>(type: T, config?: C): import("@tanstack/react-query").UseMutationResult<MoghAuth.ManageResponses[R["type"]], {
40
35
  result: {
41
36
  error?: string;
42
37
  trace?: string[];
43
38
  };
44
39
  }, P, unknown>;
45
- declare function useAuthState(): {
40
+ export declare function useAuthState(): {
46
41
  jwt_redeem_ready: boolean;
47
42
  passkey_pending: boolean;
48
43
  totp: boolean;
49
44
  };
50
-
51
- export { AUTH_URL, authClient, setAuthUrl, useAuthState, useLogin, useLoginOptions, useManageAuth, useUserId };
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AAExB,eAAO,IAAI,QAAQ,EAAE,MAAM,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,QAErC;AAED,wBAAgB,UAAU;;;;;;;;EAEzB;AAED,wBAAgB,eAAe,2GAK9B;AAED,wBAAgB,QAAQ,CACtB,CAAC,SAAS,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,EAC7C,CAAC,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,EAC3D,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACrB,CAAC,SAAS,IAAI,CACZ,kBAAkB,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,EACnE,aAAa,GAAG,YAAY,CAC7B,EACD,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;YAIM;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE;eAmB9D;AAED,wBAAgB,SAAS,qGAMxB;AAED,wBAAgB,aAAa,CAC3B,CAAC,SAAS,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,EAC9C,CAAC,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,EAC5D,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,EACrB,CAAC,SAAS,IAAI,CACZ,kBAAkB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,CAAC,EACpE,aAAa,GAAG,YAAY,CAC7B,EACD,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;YAIM;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE;eAmB9D;AAMD,wBAAgB,YAAY;;;;EAiD3B"}
@@ -1,8 +1,5 @@
1
- import * as react from 'react';
2
- import { LoginBrandingProps } from './index.js';
3
-
4
- declare function LoginHeader({ secondFactorPending, appName, iconLink, iconLinkAlt, }: {
1
+ import { LoginBrandingProps } from ".";
2
+ export default function LoginHeader({ secondFactorPending, appName, iconLink, iconLinkAlt, }: {
5
3
  secondFactorPending: boolean;
6
- } & LoginBrandingProps): react.JSX.Element;
7
-
8
- export { LoginHeader as default };
4
+ } & LoginBrandingProps): import("react").JSX.Element;
5
+ //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/auth/login/header.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAGvC,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,mBAAmB,EAAE,OAAO,CAAC;CAC9B,GAAG,kBAAkB,+BAwDrB"}
@@ -1,15 +1,12 @@
1
- import * as react from 'react';
2
-
3
- interface LoginBrandingProps {
1
+ export interface LoginBrandingProps {
4
2
  appName: string;
5
3
  iconLink: string;
6
4
  iconLinkAlt: string;
7
5
  }
8
- declare function LoginPage({ passkeyIsPending: _passkeyIsPending, totpIsPending: _totpIsPending, onLogin, exampleConfigLink, ...branding }: {
6
+ export declare function LoginPage({ passkeyIsPending: _passkeyIsPending, totpIsPending: _totpIsPending, onLogin, exampleConfigLink, ...branding }: {
9
7
  passkeyIsPending?: boolean;
10
8
  totpIsPending?: boolean;
11
9
  onLogin?: () => void;
12
10
  exampleConfigLink: string;
13
- } & LoginBrandingProps): react.JSX.Element;
14
-
15
- export { type LoginBrandingProps, LoginPage };
11
+ } & LoginBrandingProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/login/index.tsx"],"names":[],"mappings":"AAyBA,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,SAAS,CAAC,EACxB,gBAAgB,EAAE,iBAAiB,EACnC,aAAa,EAAE,cAAc,EAC7B,OAAO,EACP,iBAAiB,EACjB,GAAG,QAAQ,EACZ,EAAE;IACD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,kBAAkB,+BAoPrB"}
@@ -1,5 +1,4 @@
1
- export { LinkedLogins } from './linked-logins.js';
2
- export { EnrollPasskey } from './passkey.js';
3
- export { EnrollTotp } from './totp.js';
4
- import 'react';
5
- import 'mogh_auth_client';
1
+ export * from "./linked-logins";
2
+ export * from "./passkey";
3
+ export * from "./totp";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/profile/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA"}
@@ -1,13 +1,10 @@
1
- import * as react from 'react';
2
- import * as MoghAuth from 'mogh_auth_client';
3
-
4
- declare function LinkedLogins({ refetchUser, passwordSet, oidcLinkedId, githubLinkedId, googleLinkedId, extraProviderFilter, }: {
1
+ import * as MoghAuth from "mogh_auth_client";
2
+ export declare function LinkedLogins({ refetchUser, passwordSet, oidcLinkedId, githubLinkedId, googleLinkedId, extraProviderFilter, }: {
5
3
  refetchUser: () => void;
6
4
  passwordSet?: boolean;
7
5
  oidcLinkedId?: string;
8
6
  githubLinkedId?: string;
9
7
  googleLinkedId?: string;
10
8
  extraProviderFilter?: (provider: MoghAuth.Types.LoginProvider) => boolean;
11
- }): react.JSX.Element | null;
12
-
13
- export { LinkedLogins };
9
+ }): import("react").JSX.Element | null;
10
+ //# sourceMappingURL=linked-logins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linked-logins.d.ts","sourceRoot":"","sources":["../../../src/auth/profile/linked-logins.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAW7C,wBAAgB,YAAY,CAAC,EAC3B,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,EAAE;IACD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa,KAAK,OAAO,CAAC;CAC3E,sCA+HA"}
@@ -1,9 +1,6 @@
1
- import * as react from 'react';
2
-
3
- declare function EnrollPasskey({ userInvalidate, passkeyEnrolled, totpEnrolled, }: {
1
+ export declare function EnrollPasskey({ userInvalidate, passkeyEnrolled, totpEnrolled, }: {
4
2
  userInvalidate?: () => void;
5
3
  passkeyEnrolled?: boolean;
6
4
  totpEnrolled?: boolean;
7
- }): react.JSX.Element;
8
-
9
- export { EnrollPasskey };
5
+ }): import("react").JSX.Element;
6
+ //# sourceMappingURL=passkey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passkey.d.ts","sourceRoot":"","sources":["../../../src/auth/profile/passkey.tsx"],"names":[],"mappings":"AAMA,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,YAAY,GACb,EAAE;IACD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,+BAoEA"}
@@ -1,9 +1,6 @@
1
- import * as react from 'react';
2
-
3
- declare const EnrollTotp: ({ userInvalidate, passkeyEnrolled, totpEnrolled, }: {
1
+ export declare const EnrollTotp: ({ userInvalidate, passkeyEnrolled, totpEnrolled, }: {
4
2
  userInvalidate?: () => void;
5
3
  passkeyEnrolled?: boolean;
6
4
  totpEnrolled?: boolean;
7
- }) => react.JSX.Element;
8
-
9
- export { EnrollTotp };
5
+ }) => import("react").JSX.Element;
6
+ //# sourceMappingURL=totp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totp.d.ts","sourceRoot":"","sources":["../../../src/auth/profile/totp.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,uDAIpB;IACD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,gCA+HA,CAAC"}
@@ -1,4 +1,3 @@
1
- declare function sanitizeQuery(): void;
2
- declare function sanitizeQueryInner(search: URLSearchParams): void;
3
-
4
- export { sanitizeQuery, sanitizeQueryInner };
1
+ export declare function sanitizeQuery(): void;
2
+ export declare function sanitizeQueryInner(search: URLSearchParams): void;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/auth/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,SAE5B;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,QAQzD"}
package/dist/color.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- type ColorIntention = "Good" | "Neutral" | "Warning" | "Critical" | "Unknown" | "None";
2
- declare function colorByIntention(intention: ColorIntention): "green" | "blue" | "yellow" | "red" | "purple" | undefined;
3
- declare function hexColorByIntention(intention: ColorIntention): "#22C55E" | "#3B82F6" | "#EAB308" | "#EF0044" | "#A855F7" | undefined;
4
-
5
- export { type ColorIntention, colorByIntention, hexColorByIntention };
1
+ export type ColorIntention = "Good" | "Neutral" | "Warning" | "Critical" | "Unknown" | "None";
2
+ export declare function colorByIntention(intention: ColorIntention): "blue" | "green" | "purple" | "red" | "yellow" | undefined;
3
+ export declare function hexColorByIntention(intention: ColorIntention): "#22C55E" | "#3B82F6" | "#A855F7" | "#EAB308" | "#EF0044" | undefined;
4
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../src/color.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,SAAS,GACT,SAAS,GACT,UAAU,GACV,SAAS,GACT,MAAM,CAAC;AAEX,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,cAAc,8DAezD;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,cAAc,yEAe5D"}
@@ -1,9 +1,6 @@
1
- import * as react from 'react';
2
- import { ButtonProps } from '@mantine/core';
3
-
4
- interface BackButtonProps extends ButtonProps {
1
+ import { ButtonProps } from "@mantine/core";
2
+ export interface BackButtonProps extends ButtonProps {
5
3
  to?: string | number;
6
4
  }
7
- declare function BackButton({ to, ...props }: BackButtonProps): react.JSX.Element;
8
-
9
- export { BackButton, type BackButtonProps };
5
+ export declare function BackButton({ to, ...props }: BackButtonProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=back-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"back-button.d.ts","sourceRoot":"","sources":["../../src/components/back-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAIpD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAO,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAUhE"}
@@ -1,9 +1,6 @@
1
- import * as react from 'react';
2
- import { ButtonProps } from '@mantine/core';
3
-
4
- interface ButtonLinkProps extends ButtonProps {
1
+ import { ButtonProps } from "@mantine/core";
2
+ export interface ButtonLinkProps extends ButtonProps {
5
3
  to: string;
6
4
  }
7
- declare function ButtonLink({ to, ...props }: ButtonLinkProps): react.JSX.Element;
8
-
9
- export { ButtonLink, type ButtonLinkProps };
5
+ export declare function ButtonLink({ to, ...props }: ButtonLinkProps): import("react").JSX.Element;
6
+ //# sourceMappingURL=button-link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-link.d.ts","sourceRoot":"","sources":["../../src/components/button-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAW3D"}
@@ -1,8 +1,5 @@
1
- import * as react from 'react';
2
- import { MonacoLanguage } from '../monaco/index.js';
3
- import '@mantine/core';
4
-
5
- interface ConfirmUpdateProps<T> {
1
+ import { MonacoLanguage } from "../monaco";
2
+ export interface ConfirmUpdateProps<T> {
6
3
  original: T;
7
4
  update: Partial<T>;
8
5
  onConfirm: () => Promise<unknown>;
@@ -15,6 +12,5 @@ interface ConfirmUpdateProps<T> {
15
12
  confirmKeyListener?: boolean;
16
13
  enableFancyToml?: boolean;
17
14
  }
18
- declare function ConfirmUpdate<T>({ original, update, onConfirm, loading, disabled, language, fileContentsLanguage, fullWidth, openKeyListener, confirmKeyListener, enableFancyToml, }: ConfirmUpdateProps<T>): react.JSX.Element;
19
-
20
- export { ConfirmUpdate, type ConfirmUpdateProps };
15
+ export declare function ConfirmUpdate<T>({ original, update, onConfirm, loading, disabled, language, fileContentsLanguage, fullWidth, openKeyListener, confirmKeyListener, enableFancyToml, }: ConfirmUpdateProps<T>): import("react").JSX.Element;
16
+ //# sourceMappingURL=confirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm.d.ts","sourceRoot":"","sources":["../../../src/components/config/confirm.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAoB,cAAc,EAAE,MAAM,WAAW,CAAC;AAK7D,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACnB,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,oBAAoB,CAAC,EAAE,cAAc,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,QAAQ,EACR,MAAM,EACN,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,SAAS,EACT,eAAsB,EACtB,kBAAyB,EACzB,eAAe,GAChB,EAAE,kBAAkB,CAAC,CAAC,CAAC,+BA2FvB"}
@@ -1,10 +1,9 @@
1
- import 'react';
2
- export { ConfigGroup } from './index.js';
3
- import '../monaco/index.js';
4
- import '@mantine/core';
5
- import './confirm.js';
6
- import './item.js';
7
- import '../input-list.js';
8
- import './layout.js';
9
- import '../section.js';
10
- import './unsaved-changes.js';
1
+ import { ConfigGroupArgs } from ".";
2
+ export declare function ConfigGroup<T>({ config, update, setUpdate, disabled, fields, }: {
3
+ config: T;
4
+ update: Partial<T>;
5
+ setUpdate: (update: Partial<T>) => void;
6
+ disabled: boolean;
7
+ fields: ConfigGroupArgs<T>["fields"];
8
+ }): import("react").JSX.Element;
9
+ //# sourceMappingURL=group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../src/components/config/group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,eAAe,EAAE,MAAM,GAAG,CAAC;AAKrD,wBAAgB,WAAW,CAAC,CAAC,EAAE,EAC7B,MAAM,EACN,MAAM,EACN,SAAS,EACT,QAAQ,EACR,MAAM,GACP,EAAE;IACD,MAAM,EAAE,CAAC,CAAC;IACV,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACnB,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;CACtC,+BA4EA"}
@@ -1,23 +1,11 @@
1
- import * as react from 'react';
2
- import { SetStateAction, ReactNode } from 'react';
3
- import { MonacoLanguage } from '../monaco/index.js';
4
- export { ConfirmUpdate, ConfirmUpdateProps } from './confirm.js';
5
- export { ConfigInput, ConfigItem, ConfigItemProps, ConfigList, ConfigSwitch } from './item.js';
6
- export { ConfigLayout } from './layout.js';
7
- export { UnsavedChanges } from './unsaved-changes.js';
8
- import '@mantine/core';
9
- import '../input-list.js';
10
- import '../section.js';
11
-
12
- declare function ConfigGroup<T>({ config, update, setUpdate, disabled, fields, }: {
13
- config: T;
14
- update: Partial<T>;
15
- setUpdate: (update: Partial<T>) => void;
16
- disabled: boolean;
17
- fields: ConfigGroupArgs<T>["fields"];
18
- }): react.JSX.Element;
19
-
20
- interface ConfigFieldArgs {
1
+ import { ReactNode, SetStateAction } from "react";
2
+ import { MonacoLanguage } from "../monaco";
3
+ export * from "./confirm";
4
+ export * from "./group";
5
+ export * from "./item";
6
+ export * from "./layout";
7
+ export * from "./unsaved-changes";
8
+ export interface ConfigFieldArgs {
21
9
  label?: string;
22
10
  description?: ReactNode;
23
11
  /** Use a selector instead of input */
@@ -30,7 +18,7 @@ interface ConfigFieldArgs {
30
18
  hidden?: boolean;
31
19
  disabled?: boolean;
32
20
  }
33
- interface ConfigGroupArgs<T> {
21
+ export interface ConfigGroupArgs<T> {
34
22
  label: string;
35
23
  labelExtra?: ReactNode;
36
24
  icon?: ReactNode;
@@ -43,7 +31,7 @@ interface ConfigGroupArgs<T> {
43
31
  [K in keyof Partial<T>]: boolean | ConfigFieldArgs | ((value: T[K], set: (value: Partial<T>) => void) => ReactNode);
44
32
  };
45
33
  }
46
- interface ConfigProps<T> {
34
+ export interface ConfigProps<T> {
47
35
  original: T;
48
36
  update: Partial<T>;
49
37
  setUpdate: React.Dispatch<SetStateAction<Partial<T>>>;
@@ -57,6 +45,5 @@ interface ConfigProps<T> {
57
45
  // Section key
58
46
  ConfigGroupArgs<T>[] | false | undefined>;
59
47
  }
60
- declare function Config<T>({ original, update, setUpdate, disabled, onSave, titleOther, disableSidebar, fileContentsLanguage, enableFancyToml, groups: _groups, }: ConfigProps<T>): react.JSX.Element;
61
-
62
- export { Config, type ConfigFieldArgs, ConfigGroup, type ConfigGroupArgs, type ConfigProps };
48
+ export declare function Config<T>({ original, update, setUpdate, disabled, onSave, titleOther, disableSidebar, fileContentsLanguage, enableFancyToml, groups: _groups, }: ConfigProps<T>): import("react").JSX.Element;
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/config/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,SAAS,EAAE,cAAc,EAAW,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAkB3C,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAElC,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,sCAAsC;IACtC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE;SACL,CAAC,IAAI,MAAM,OAAO,CAAC,CAAC,CAAC,GAClB,OAAO,GACP,eAAe,GACf,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,SAAS,CAAC;KACnE,CAAC;CACH;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oBAAoB,CAAC,EAAE,cAAc,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,MAAM,CACZ,MAAM,EAAE,cAAc;IACtB,AADQ,cAAc;IACtB,eAAe,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,SAAS,CACzC,CAAC;CACH;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,EACxB,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,MAAM,EACN,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,MAAM,EAAE,OAAO,GAChB,EAAE,WAAW,CAAC,CAAC,CAAC,+BAkOhB"}
@@ -1,25 +1,22 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import * as _mantine_core from '@mantine/core';
4
- import { TextInputProps, StackProps, SwitchProps } from '@mantine/core';
5
- import { InputListProps } from '../input-list.js';
6
-
7
- interface ConfigItemProps extends StackProps {
1
+ import { StackProps, SwitchProps, TextInputProps } from "@mantine/core";
2
+ import { ReactNode } from "react";
3
+ import { InputListProps } from "../input-list";
4
+ export interface ConfigItemProps extends StackProps {
8
5
  label?: ReactNode;
9
6
  labelExtra?: ReactNode;
10
7
  description?: ReactNode;
11
8
  children?: ReactNode;
12
9
  }
13
- declare const ConfigItem: (<C = "div">(props: _mantine_core.PolymorphicComponentProps<C, ConfigItemProps>) => React.ReactElement) & Omit<react.FunctionComponent<(ConfigItemProps & {
10
+ export declare const ConfigItem: (<C = "div">(props: import("@mantine/core").PolymorphicComponentProps<C, ConfigItemProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ConfigItemProps & {
11
+ component: React.ElementType;
12
+ renderRoot?: (props: Record<string, any>) => any;
13
+ }) | (ConfigItemProps & {
14
14
  component?: any;
15
15
  } & Omit<any, "component" | keyof ConfigItemProps> & {
16
16
  ref?: any;
17
17
  renderRoot?: (props: any) => any;
18
- }) | (ConfigItemProps & {
19
- component: React.ElementType;
20
- renderRoot?: (props: Record<string, any>) => any;
21
18
  })>, never> & Record<string, never>;
22
- declare function ConfigInput({ value, disabled, placeholder, onChange, onValueChange, onBlur, inputLeft, inputRight, inputProps, email, ...itemProps }: {
19
+ export declare function ConfigInput({ value, disabled, placeholder, onChange, onValueChange, onBlur, inputLeft, inputRight, inputProps, email, ...itemProps }: {
23
20
  value: string | number | undefined;
24
21
  disabled?: boolean;
25
22
  placeholder?: string;
@@ -29,16 +26,15 @@ declare function ConfigInput({ value, disabled, placeholder, onChange, onValueCh
29
26
  inputRight?: ReactNode;
30
27
  inputProps?: TextInputProps;
31
28
  email?: boolean;
32
- } & Omit<ConfigItemProps, "children">): react.JSX.Element;
33
- declare function ConfigSwitch({ value, disabled, onCheckedChange, switchProps, ...itemProps }: {
29
+ } & Omit<ConfigItemProps, "children">): import("react").JSX.Element;
30
+ export declare function ConfigSwitch({ value, disabled, onCheckedChange, switchProps, ...itemProps }: {
34
31
  value: boolean | undefined;
35
32
  disabled: boolean;
36
33
  onCheckedChange: (value: boolean) => void;
37
34
  switchProps?: SwitchProps;
38
- } & Omit<ConfigItemProps, "children">): react.JSX.Element;
39
- declare function ConfigList<T>({ addLabel, label, description, ...inputListProps }: {
35
+ } & Omit<ConfigItemProps, "children">): import("react").JSX.Element;
36
+ export declare function ConfigList<T>({ addLabel, label, description, ...inputListProps }: {
40
37
  label?: string;
41
38
  addLabel?: string;
42
- } & InputListProps<T> & Omit<ConfigItemProps, "children">): react.JSX.Element;
43
-
44
- export { ConfigInput, ConfigItem, type ConfigItemProps, ConfigList, ConfigSwitch };
39
+ } & InputListProps<T> & Omit<ConfigItemProps, "children">): import("react").JSX.Element;
40
+ //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/config/item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,UAAU,EACV,WAAW,EAGX,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAa,cAAc,EAAE,MAAM,eAAe,CAAC;AAK1D,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,UAAU;;;;;;;;mCA2BtB,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,aAAa,EACb,MAAM,EACN,SAAS,EACT,UAAU,EACV,UAAU,EACV,KAAK,EACL,GAAG,SAAS,EACb,EAAE;IACD,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,+BA6BpC;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,eAAe,EACf,WAAW,EACX,GAAG,SAAS,EACb,EAAE;IACD,KAAK,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,+BAWpC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,EAC5B,QAAQ,EACR,KAAK,EACL,WAAW,EACX,GAAG,cAAc,EAClB,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAAC,CAAC,CAAC,GAC1D,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,+BAwBlC"}
@@ -1,11 +1,7 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { SectionProps } from '../section.js';
4
- import '@mantine/core';
5
-
1
+ import { ReactNode } from "react";
2
+ import { SectionProps } from "../section";
6
3
  /** Includes save buttons */
7
- declare function ConfigLayout({ title, icon, titleOther, SaveOrReset, ...sectionProps }: {
4
+ export declare function ConfigLayout({ title, icon, titleOther, SaveOrReset, ...sectionProps }: {
8
5
  SaveOrReset: ReactNode | undefined;
9
- } & SectionProps): react.JSX.Element;
10
-
11
- export { ConfigLayout };
6
+ } & SectionProps): import("react").JSX.Element;
7
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/components/config/layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAGnD,4BAA4B;AAC5B,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,IAAI,EACJ,UAAU,EACV,WAAW,EACX,GAAG,YAAY,EAChB,EAAE;IACD,WAAW,EAAE,SAAS,GAAG,SAAS,CAAC;CACpC,GAAG,YAAY,+BAQf"}
@@ -1,7 +1,4 @@
1
- import * as react from 'react';
2
-
3
- declare function UnsavedChanges({ fullWidth }: {
1
+ export declare function UnsavedChanges({ fullWidth }: {
4
2
  fullWidth?: boolean;
5
- }): react.JSX.Element;
6
-
7
- export { UnsavedChanges };
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=unsaved-changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unsaved-changes.d.ts","sourceRoot":"","sources":["../../../src/components/config/unsaved-changes.tsx"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,+BAapE"}
@@ -1,23 +1,19 @@
1
- import * as react from 'react';
2
- import { ReactNode, MouseEventHandler, FocusEventHandler } from 'react';
3
- import * as _mantine_core from '@mantine/core';
4
- import { ButtonProps } from '@mantine/core';
5
-
6
- interface ConfirmButtonProps extends ButtonProps {
1
+ import { ButtonProps } from "@mantine/core";
2
+ import { FocusEventHandler, MouseEventHandler, ReactNode } from "react";
3
+ export interface ConfirmButtonProps extends ButtonProps {
7
4
  icon?: ReactNode;
8
5
  onClick?: MouseEventHandler<HTMLButtonElement>;
9
6
  onBlur?: FocusEventHandler<HTMLButtonElement>;
10
7
  /** Passed when button is in confirm mode */
11
8
  confirmProps?: ButtonProps;
12
9
  }
13
- declare const ConfirmButton: (<C = "button">(props: _mantine_core.PolymorphicComponentProps<C, ConfirmButtonProps>) => React.ReactElement) & Omit<react.FunctionComponent<(ConfirmButtonProps & {
10
+ export declare const ConfirmButton: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, ConfirmButtonProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ConfirmButtonProps & {
11
+ component: React.ElementType;
12
+ renderRoot?: (props: Record<string, any>) => any;
13
+ }) | (ConfirmButtonProps & {
14
14
  component?: any;
15
15
  } & Omit<any, "component" | keyof ConfirmButtonProps> & {
16
16
  ref?: any;
17
17
  renderRoot?: (props: any) => any;
18
- }) | (ConfirmButtonProps & {
19
- component: React.ElementType;
20
- renderRoot?: (props: Record<string, any>) => any;
21
18
  })>, never> & Record<string, never>;
22
-
23
- export { ConfirmButton, type ConfirmButtonProps };
19
+ //# sourceMappingURL=confirm-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-button.d.ts","sourceRoot":"","sources":["../../src/components/confirm-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAGZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,iBAAiB,EAEjB,iBAAiB,EACjB,SAAS,EAGV,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC9C,4CAA4C;IAC5C,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa;;;;;;;;mCAkEzB,CAAC"}
@@ -1,20 +1,16 @@
1
- import * as react from 'react';
2
- import { MouseEventHandler, FocusEventHandler } from 'react';
3
- import * as _mantine_core from '@mantine/core';
4
- import { ActionIconProps } from '@mantine/core';
5
-
6
- interface ConfirmIconProps extends ActionIconProps {
1
+ import { ActionIconProps } from "@mantine/core";
2
+ import { FocusEventHandler, MouseEventHandler } from "react";
3
+ export interface ConfirmIconProps extends ActionIconProps {
7
4
  onClick?: MouseEventHandler<HTMLButtonElement>;
8
5
  onBlur?: FocusEventHandler<HTMLButtonElement>;
9
6
  }
10
- declare const ConfirmIcon: (<C = "button">(props: _mantine_core.PolymorphicComponentProps<C, ConfirmIconProps>) => React.ReactElement) & Omit<react.FunctionComponent<(ConfirmIconProps & {
7
+ export declare const ConfirmIcon: (<C = "button">(props: import("@mantine/core").PolymorphicComponentProps<C, ConfirmIconProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ConfirmIconProps & {
8
+ component: React.ElementType;
9
+ renderRoot?: (props: Record<string, any>) => any;
10
+ }) | (ConfirmIconProps & {
11
11
  component?: any;
12
12
  } & Omit<any, "component" | keyof ConfirmIconProps> & {
13
13
  ref?: any;
14
14
  renderRoot?: (props: any) => any;
15
- }) | (ConfirmIconProps & {
16
- component: React.ElementType;
17
- renderRoot?: (props: Record<string, any>) => any;
18
15
  })>, never> & Record<string, never>;
19
-
20
- export { ConfirmIcon, type ConfirmIconProps };
16
+ //# sourceMappingURL=confirm-icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-icon.d.ts","sourceRoot":"","sources":["../../src/components/confirm-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAGhB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,iBAAiB,EAEjB,iBAAiB,EAGlB,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,WAAW;;;;;;;;mCA8CvB,CAAC"}
@@ -1,8 +1,6 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { ModalProps, ButtonProps } from '@mantine/core';
4
-
5
- interface ConfirmModalProps extends Omit<Omit<Omit<ModalProps, "opened">, "onClose">, "onClick"> {
1
+ import { ButtonProps, ModalProps } from "@mantine/core";
2
+ import { ReactNode } from "react";
3
+ export interface ConfirmModalProps extends Omit<Omit<Omit<ModalProps, "opened">, "onClose">, "onClick"> {
6
4
  children?: ReactNode;
7
5
  icon?: ReactNode;
8
6
  disabled?: boolean;
@@ -20,6 +18,5 @@ interface ConfirmModalProps extends Omit<Omit<Omit<ModalProps, "opened">, "onClo
20
18
  /** Converts into ConfirmButton */
21
19
  disableModal?: boolean;
22
20
  }
23
- declare function ConfirmModal({ children, icon, disabled, confirmText, title, confirmButtonContent, onConfirm, loading, additional, topAdditonal, targetProps, targetNoIcon, confirmProps, disableModal, ...modalProps }: ConfirmModalProps): react.JSX.Element;
24
-
25
- export { ConfirmModal, type ConfirmModalProps };
21
+ export declare function ConfirmModal({ children, icon, disabled, confirmText, title, confirmButtonContent, onConfirm, loading, additional, topAdditonal, targetProps, targetNoIcon, confirmProps, disableModal, ...modalProps }: ConfirmModalProps): import("react").JSX.Element;
22
+ //# sourceMappingURL=confirm-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-modal.d.ts","sourceRoot":"","sources":["../../src/components/confirm-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAIX,UAAU,EAIX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAC7C,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,SAAS,CAAC,EAC3C,SAAS,CACV;IACC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,kCAAkC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,oBAAoB,EACpB,SAAS,EACT,OAAO,EACP,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,GAAG,UAAU,EACd,EAAE,iBAAiB,+BA6GnB"}
@@ -1,15 +1,12 @@
1
- import * as react from 'react';
2
- import { ReactNode } from 'react';
3
- import { ActionIconProps } from '@mantine/core';
4
-
5
- interface CopyButtonProps {
1
+ import { ActionIconProps } from "@mantine/core";
2
+ import { ReactNode } from "react";
3
+ export interface CopyButtonProps {
6
4
  content: string;
7
5
  icon?: ReactNode;
8
6
  label?: string;
9
7
  size?: string | number;
10
8
  buttonSize?: ActionIconProps["size"];
11
9
  }
12
- declare function CopyButton({ content, icon, label, size, buttonSize, }: CopyButtonProps): react.JSX.Element;
13
- declare function sendCopyNotification(label?: string): void;
14
-
15
- export { CopyButton, type CopyButtonProps, sendCopyNotification };
10
+ export declare function CopyButton({ content, icon, label, size, buttonSize, }: CopyButtonProps): import("react").JSX.Element;
11
+ export declare function sendCopyNotification(label?: string): void;
12
+ //# sourceMappingURL=copy-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../src/components/copy-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAEhB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CACtC;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,IAAI,EACJ,KAAiB,EACjB,IAAe,EACf,UAAiB,GAClB,EAAE,eAAe,+BAkBjB;AAED,wBAAgB,oBAAoB,CAAC,KAAK,SAAY,QAYrD"}