@stackframe/stack 2.2.1 → 2.2.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 (168) hide show
  1. package/dist/components/card-frame.d.ts +1 -0
  2. package/dist/components/card-frame.js +2 -2
  3. package/dist/components/credential-sign-in.d.ts +1 -0
  4. package/dist/components/credential-sign-up.d.ts +1 -0
  5. package/dist/components/forgot-password.d.ts +1 -0
  6. package/dist/components/form-warning.d.ts +1 -0
  7. package/dist/components/message-card.d.ts +1 -0
  8. package/dist/components/oauth-button.d.ts +1 -0
  9. package/dist/components/oauth-group.d.ts +1 -0
  10. package/dist/components/password-field.d.ts +1 -0
  11. package/dist/components/password-reset-inner.d.ts +1 -0
  12. package/dist/components/redirect-message-card.d.ts +1 -0
  13. package/dist/components/separator-with-text.d.ts +1 -0
  14. package/dist/components/user-avatar.d.ts +1 -0
  15. package/dist/components/user-button.d.ts +1 -0
  16. package/dist/components/user-button.d.ts.map +1 -1
  17. package/dist/components/user-button.js +3 -1
  18. package/dist/components-core/avatar.d.ts +1 -0
  19. package/dist/components-core/button.d.ts +1 -0
  20. package/dist/components-core/card.d.ts +1 -0
  21. package/dist/components-core/collapsible.d.ts +1 -0
  22. package/dist/components-core/container.d.ts +1 -0
  23. package/dist/components-core/dropdown.d.ts +1 -0
  24. package/dist/components-core/index.d.ts +1 -0
  25. package/dist/components-core/input.d.ts +1 -0
  26. package/dist/components-core/label.d.ts +1 -0
  27. package/dist/components-core/link.d.ts +1 -0
  28. package/dist/components-core/loading-indicator.d.ts +1 -0
  29. package/dist/components-core/popover.d.ts +1 -0
  30. package/dist/components-core/separator.d.ts +1 -0
  31. package/dist/components-core/text.d.ts +1 -0
  32. package/dist/components-core-joy/button.d.ts +1 -0
  33. package/dist/components-core-joy/input.d.ts +1 -0
  34. package/dist/components-core-joy/separator.d.ts +1 -0
  35. package/dist/components-core-joy/text.d.ts +1 -0
  36. package/dist/components-page/account-settings.d.ts +1 -0
  37. package/dist/components-page/account-settings.js +3 -3
  38. package/dist/components-page/email-verification.d.ts +1 -0
  39. package/dist/components-page/forgot-password.d.ts +1 -0
  40. package/dist/components-page/oauth-callback.d.ts +1 -0
  41. package/dist/components-page/password-reset.d.ts +1 -0
  42. package/dist/components-page/sign-in.d.ts +1 -0
  43. package/dist/components-page/sign-out.d.ts +1 -0
  44. package/dist/components-page/sign-up.d.ts +1 -0
  45. package/dist/components-page/stack-handler.d.ts +1 -0
  46. package/dist/index.d.ts +2 -1
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +0 -1
  49. package/dist/joy.d.ts +2 -0
  50. package/dist/joy.d.ts.map +1 -0
  51. package/dist/joy.js +1 -0
  52. package/dist/lib/auth.d.ts +1 -0
  53. package/dist/lib/cookie.d.ts +1 -0
  54. package/dist/lib/hooks.d.ts +1 -0
  55. package/dist/lib/stack-app.d.ts +1 -0
  56. package/dist/providers/component-provider.d.ts +1 -0
  57. package/dist/providers/design-provider.d.ts +1 -0
  58. package/dist/providers/joy-provider.d.ts +1 -0
  59. package/dist/providers/stack-provider-client.d.ts +1 -0
  60. package/dist/providers/stack-provider.d.ts +1 -0
  61. package/dist/providers/styled-components-registry.d.ts +1 -0
  62. package/dist/providers/theme-provider.d.ts +1 -0
  63. package/dist/utils/constants.d.ts +1 -0
  64. package/dist/utils/email.d.ts +1 -0
  65. package/dist/utils/next.d.ts +1 -0
  66. package/dist/utils/url.d.ts +1 -0
  67. package/package.json +13 -5
  68. package/dist/components/avatar.d.ts +0 -1
  69. package/dist/components/avatar.d.ts.map +0 -1
  70. package/dist/components/avatar.js +0 -1
  71. package/dist/components/card-header.d.ts +0 -6
  72. package/dist/components/card-header.d.ts.map +0 -1
  73. package/dist/components/card-header.js +0 -5
  74. package/dist/components/centered-card-header.d.ts +0 -6
  75. package/dist/components/centered-card-header.d.ts.map +0 -1
  76. package/dist/components/centered-card-header.js +0 -5
  77. package/dist/components/dashboard-frame.d.ts +0 -23
  78. package/dist/components/dashboard-frame.d.ts.map +0 -1
  79. package/dist/components/dashboard-frame.js +0 -20
  80. package/dist/components/divider-with-text.d.ts +0 -4
  81. package/dist/components/divider-with-text.d.ts.map +0 -1
  82. package/dist/components/divider-with-text.js +0 -6
  83. package/dist/components/email-verification.d.ts +0 -5
  84. package/dist/components/email-verification.d.ts.map +0 -1
  85. package/dist/components/email-verification.js +0 -29
  86. package/dist/components/logo.d.ts +0 -7
  87. package/dist/components/logo.d.ts.map +0 -1
  88. package/dist/components/logo.js +0 -7
  89. package/dist/components/oauth-callback.d.ts +0 -2
  90. package/dist/components/oauth-callback.d.ts.map +0 -1
  91. package/dist/components/oauth-callback.js +0 -17
  92. package/dist/components/password-reset.d.ts +0 -5
  93. package/dist/components/password-reset.d.ts.map +0 -1
  94. package/dist/components/password-reset.js +0 -37
  95. package/dist/components/sign-in.d.ts +0 -4
  96. package/dist/components/sign-in.d.ts.map +0 -1
  97. package/dist/components/sign-in.js +0 -20
  98. package/dist/components/sign-out.d.ts +0 -2
  99. package/dist/components/sign-out.d.ts.map +0 -1
  100. package/dist/components/sign-out.js +0 -13
  101. package/dist/components/sign-up.d.ts +0 -4
  102. package/dist/components/sign-up.d.ts.map +0 -1
  103. package/dist/components/sign-up.js +0 -20
  104. package/dist/components/stack-handler.d.ts +0 -9
  105. package/dist/components/stack-handler.d.ts.map +0 -1
  106. package/dist/components/stack-handler.js +0 -58
  107. package/dist/components-core/collapsble.d.ts +0 -5
  108. package/dist/components-core/collapsble.d.ts.map +0 -1
  109. package/dist/components-core/collapsble.js +0 -6
  110. package/dist/components-core/divider.d.ts +0 -5
  111. package/dist/components-core/divider.d.ts.map +0 -1
  112. package/dist/components-core/divider.js +0 -20
  113. package/dist/components-core-joy/card.d.ts +0 -3
  114. package/dist/components-core-joy/card.d.ts.map +0 -1
  115. package/dist/components-core-joy/card.js +0 -7
  116. package/dist/components-core-joy/divider.d.ts +0 -3
  117. package/dist/components-core-joy/divider.d.ts.map +0 -1
  118. package/dist/components-core-joy/divider.js +0 -7
  119. package/dist/elements/card-frame.d.ts +0 -7
  120. package/dist/elements/card-frame.d.ts.map +0 -1
  121. package/dist/elements/card-frame.js +0 -24
  122. package/dist/elements/card-header.d.ts +0 -6
  123. package/dist/elements/card-header.d.ts.map +0 -1
  124. package/dist/elements/card-header.js +0 -5
  125. package/dist/elements/credential-sign-in.d.ts +0 -2
  126. package/dist/elements/credential-sign-in.d.ts.map +0 -1
  127. package/dist/elements/credential-sign-in.js +0 -56
  128. package/dist/elements/credential-sign-up.d.ts +0 -2
  129. package/dist/elements/credential-sign-up.d.ts.map +0 -1
  130. package/dist/elements/credential-sign-up.js +0 -73
  131. package/dist/elements/divider-with-text.d.ts +0 -4
  132. package/dist/elements/divider-with-text.d.ts.map +0 -1
  133. package/dist/elements/divider-with-text.js +0 -6
  134. package/dist/elements/forgot-password.d.ts +0 -4
  135. package/dist/elements/forgot-password.d.ts.map +0 -1
  136. package/dist/elements/forgot-password.js +0 -32
  137. package/dist/elements/form-warning.d.ts +0 -4
  138. package/dist/elements/form-warning.d.ts.map +0 -1
  139. package/dist/elements/form-warning.js +0 -8
  140. package/dist/elements/message-card.d.ts +0 -7
  141. package/dist/elements/message-card.d.ts.map +0 -1
  142. package/dist/elements/message-card.js +0 -7
  143. package/dist/elements/oauth-button.d.ts +0 -5
  144. package/dist/elements/oauth-button.d.ts.map +0 -1
  145. package/dist/elements/oauth-button.js +0 -65
  146. package/dist/elements/oauth-group.d.ts +0 -4
  147. package/dist/elements/oauth-group.d.ts.map +0 -1
  148. package/dist/elements/oauth-group.js +0 -8
  149. package/dist/elements/password-field.d.ts +0 -3
  150. package/dist/elements/password-field.d.ts.map +0 -1
  151. package/dist/elements/password-field.js +0 -38
  152. package/dist/elements/password-reset-inner.d.ts +0 -5
  153. package/dist/elements/password-reset-inner.d.ts.map +0 -1
  154. package/dist/elements/password-reset-inner.js +0 -63
  155. package/dist/elements/redirect-message-card.d.ts +0 -5
  156. package/dist/elements/redirect-message-card.d.ts.map +0 -1
  157. package/dist/elements/redirect-message-card.js +0 -54
  158. package/dist/icons/logo.d.ts +0 -3
  159. package/dist/icons/logo.d.ts.map +0 -1
  160. package/dist/icons/logo.js +0 -7
  161. package/dist/providers/ui-provider.d.ts +0 -10
  162. package/dist/providers/ui-provider.js +0 -20
  163. package/dist/utils/react.d.ts +0 -2
  164. package/dist/utils/react.d.ts.map +0 -1
  165. package/dist/utils/react.js +0 -6
  166. package/dist/utils/results.d.ts +0 -25
  167. package/dist/utils/results.d.ts.map +0 -1
  168. package/dist/utils/results.js +0 -46
@@ -4,3 +4,4 @@ export default function CardFrame({ children, fullPage }: {
4
4
  children: React.ReactNode;
5
5
  fullPage?: boolean;
6
6
  }): string | number | boolean | Iterable<React.ReactNode> | Promise<React.AwaitedReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
7
+ //# sourceMappingURL=card-frame.d.ts.map
@@ -15,8 +15,8 @@ export default function CardFrame({ children, fullPage = true }) {
15
15
  height: hasNoParent ? '100vh' : '100%',
16
16
  display: 'flex',
17
17
  alignItems: 'center',
18
- justifyContent: 'center'
19
- }, children: _jsx(Container, { size: 350, children: children }) }));
18
+ justifyContent: 'center',
19
+ }, children: _jsx(Container, { size: 380, style: { padding: '1rem 1rem' }, children: children }) }));
20
20
  }
21
21
  else {
22
22
  return children;
@@ -1 +1,2 @@
1
1
  export default function CredentialSignIn(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=credential-sign-in.d.ts.map
@@ -1 +1,2 @@
1
1
  export default function CredentialSignUp(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=credential-sign-up.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function ForgotPassword({ onSent }: {
2
2
  onSent?: () => void;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=forgot-password.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function FormWarningText({ text }: {
2
2
  text?: string;
3
3
  }): import("react/jsx-runtime").JSX.Element | null;
4
+ //# sourceMappingURL=form-warning.d.ts.map
@@ -4,3 +4,4 @@ export default function MessageCard({ children, title, fullPage }: {
4
4
  title: string;
5
5
  fullPage?: boolean;
6
6
  }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=message-card.d.ts.map
@@ -2,3 +2,4 @@ export default function OAuthButton({ provider, type, }: {
2
2
  provider: string;
3
3
  type: 'signin' | 'signup';
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=oauth-button.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function OAuthGroup({ type, }: {
2
2
  type: 'signin' | 'signup';
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=oauth-group.d.ts.map
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  declare const PasswordField: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
3
3
  export default PasswordField;
4
+ //# sourceMappingURL=password-field.d.ts.map
@@ -2,3 +2,4 @@ export default function PasswordResetInner({ code, fullPage }: {
2
2
  code: string;
3
3
  fullPage?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=password-reset-inner.d.ts.map
@@ -2,3 +2,4 @@ export default function RedirectMessageCard({ type, fullPage, }: {
2
2
  type: 'signedIn' | 'signedOut' | 'emailSent' | 'passwordReset' | 'emailVerified';
3
3
  fullPage?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=redirect-message-card.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function SeparatorWithText({ text }: {
2
2
  text: string;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=separator-with-text.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function UserAvatar(props: {
2
2
  size?: number;
3
3
  }): import("react/jsx-runtime").JSX.Element | null;
4
+ //# sourceMappingURL=user-avatar.d.ts.map
@@ -2,3 +2,4 @@ export default function UserButton({ showUserInfo, showColorMode, }: {
2
2
  showUserInfo?: boolean;
3
3
  showColorMode?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element | null;
5
+ //# sourceMappingURL=user-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-button.d.ts","sourceRoot":"","sources":["../../src/components/user-button.tsx"],"names":[],"mappings":"AAoBA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,YAAoB,EACpB,aAAoB,GACrB,EAAE;IACD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,kDAyDA"}
1
+ {"version":3,"file":"user-button.d.ts","sourceRoot":"","sources":["../../src/components/user-button.tsx"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,YAAoB,EACpB,aAAoB,GACrB,EAAE;IACD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,kDA0DA"}
@@ -5,6 +5,7 @@ import { RxPerson, RxEnter, RxSun, RxShadow } from "react-icons/rx";
5
5
  import { runAsynchronously } from "@stackframe/stack-shared/dist/utils/promises";
6
6
  import { SECONDARY_FONT_COLORS } from "../utils/constants";
7
7
  import UserAvatar from "./user-avatar";
8
+ import { useRouter } from "next/navigation";
8
9
  function Item(props) {
9
10
  return (_jsxs(DropdownMenuItem, { onClick: () => runAsynchronously(props.onClick), style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [props.icon, _jsx(Text, { children: props.text })] }));
10
11
  }
@@ -12,6 +13,7 @@ export default function UserButton({ showUserInfo = false, showColorMode = true,
12
13
  const { colorMode, setColorMode } = useDesign();
13
14
  const user = useUser();
14
15
  const app = useStackApp();
16
+ const router = useRouter();
15
17
  const textStyles = {
16
18
  textOverflow: 'ellipsis',
17
19
  whiteSpace: 'nowrap',
@@ -19,7 +21,7 @@ export default function UserButton({ showUserInfo = false, showColorMode = true,
19
21
  };
20
22
  if (!user)
21
23
  return null;
22
- return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), showUserInfo && _jsxs("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'center' }, children: [_jsx(Text, { style: textStyles, children: user.displayName }), _jsx(Text, { style: { ...textStyles, fontWeight: 400 }, variant: "secondary", size: "sm", children: user.primaryEmail })] })] }) }), _jsxs(DropdownMenuContent, { children: [_jsx(DropdownMenuLabel, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), _jsxs("div", { children: [_jsx(Text, { children: user.displayName }), _jsx(Text, { variant: "secondary", size: "sm", style: { fontWeight: 400 }, children: user.primaryEmail })] })] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(Item, { text: "Account settings", onClick: () => app.redirectToAccountSettings(), icon: _jsx(RxPerson, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) }), showColorMode && _jsx(Item, { text: colorMode === 'dark' ? 'Light theme' : 'Dark theme', onClick: () => setColorMode(colorMode === 'dark' ? 'light' : 'dark'), icon: colorMode === 'dark' ?
24
+ return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), showUserInfo && _jsxs("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'center' }, children: [_jsx(Text, { style: textStyles, children: user.displayName }), _jsx(Text, { style: { ...textStyles, fontWeight: 400 }, variant: "secondary", size: "sm", children: user.primaryEmail })] })] }) }), _jsxs(DropdownMenuContent, { children: [_jsx(DropdownMenuLabel, { children: _jsxs("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(UserAvatar, {}), _jsxs("div", { children: [_jsx(Text, { children: user.displayName }), _jsx(Text, { variant: "secondary", size: "sm", style: { fontWeight: 400 }, children: user.primaryEmail })] })] }) }), _jsx(DropdownMenuSeparator, {}), _jsx(Item, { text: "Account settings", onClick: () => runAsynchronously(router.push(app.urls.accountSettings)), icon: _jsx(RxPerson, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) }), showColorMode && _jsx(Item, { text: colorMode === 'dark' ? 'Light theme' : 'Dark theme', onClick: () => setColorMode(colorMode === 'dark' ? 'light' : 'dark'), icon: colorMode === 'dark' ?
23
25
  _jsx(RxSun, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) :
24
26
  _jsx(RxShadow, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) }), _jsx(Item, { text: "Sign out", onClick: () => user.signOut(), icon: _jsx(RxEnter, { size: 22, color: SECONDARY_FONT_COLORS[colorMode] }) })] })] }));
25
27
  }
@@ -4,3 +4,4 @@ declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.Avata
4
4
  declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
5
5
  declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
6
6
  export { Avatar, AvatarImage, AvatarFallback };
7
+ //# sourceMappingURL=avatar.d.ts.map
@@ -8,3 +8,4 @@ export type ButtonProps = {
8
8
  } & Omit<React.HTMLProps<HTMLButtonElement>, 'size' | 'type' | 'onClick'>;
9
9
  declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
10
  export { Button, };
11
+ //# sourceMappingURL=button.d.ts.map
@@ -4,3 +4,4 @@ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<H
4
4
  declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
5
5
  declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
6
6
  export { Card, CardHeader, CardFooter, CardContent, };
7
+ //# sourceMappingURL=card.d.ts.map
@@ -4,3 +4,4 @@ declare const Collapsible: import("react").ForwardRefExoticComponent<Collapsible
4
4
  declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
5
  declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
6
6
  export { Collapsible, CollapsibleTrigger, CollapsibleContent };
7
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -4,3 +4,4 @@ type ContainerProps = {
4
4
  } & Omit<React.HTMLProps<HTMLDivElement>, 'size'>;
5
5
  export declare function Container({ size, ...props }: ContainerProps): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
7
+ //# sourceMappingURL=container.d.ts.map
@@ -11,3 +11,4 @@ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMe
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
12
  declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, };
14
+ //# sourceMappingURL=dropdown.d.ts.map
@@ -39,3 +39,4 @@ export declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<im
39
39
  export declare const CardHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
40
40
  export declare const CardContent: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
41
  export declare const CardFooter: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
+ //# sourceMappingURL=index.d.ts.map
@@ -2,3 +2,4 @@ import React from "react";
2
2
  type InputProps = React.InputHTMLAttributes<HTMLInputElement> & Pick<React.HTMLProps<HTMLInputElement>, 'ref'>;
3
3
  declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
4
4
  export { Input };
5
+ //# sourceMappingURL=input.d.ts.map
@@ -2,3 +2,4 @@ import React from "react";
2
2
  import * as LabelPrimitive from "@radix-ui/react-label";
3
3
  declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
4
4
  export { Label };
5
+ //# sourceMappingURL=label.d.ts.map
@@ -7,3 +7,4 @@ type LinkProps = {
7
7
  } & Omit<React.HTMLProps<HTMLLinkElement>, 'size' | 'href'>;
8
8
  export declare function Link({ size, href, style, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
10
+ //# sourceMappingURL=link.d.ts.map
@@ -4,3 +4,4 @@ declare const LoadingIndicator: import("styled-components").IStyledComponent<"we
4
4
  size?: number | undefined;
5
5
  }>>;
6
6
  export default LoadingIndicator;
7
+ //# sourceMappingURL=loading-indicator.d.ts.map
@@ -4,3 +4,4 @@ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
4
  declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
5
  declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
6
  export { Popover, PopoverTrigger, PopoverContent };
7
+ //# sourceMappingURL=popover.d.ts.map
@@ -2,3 +2,4 @@ import React from 'react';
2
2
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
3
  declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
4
  export { Separator };
5
+ //# sourceMappingURL=separator.d.ts.map
@@ -6,3 +6,4 @@ type TextProps = {
6
6
  } & Omit<React.HTMLProps<HTMLParagraphElement>, 'size'>;
7
7
  declare const Text: React.ForwardRefExoticComponent<Omit<TextProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
8
8
  export { Text };
9
+ //# sourceMappingURL=text.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import React from "react";
2
2
  export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("../components-core/button").ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ //# sourceMappingURL=button.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import React from 'react';
2
2
  export declare const Input: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.InputHTMLAttributes<HTMLInputElement> & Pick<React.HTMLProps<HTMLInputElement>, "ref">, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
3
+ //# sourceMappingURL=input.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import React from "react";
2
2
  export declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<Omit<import("@radix-ui/react-separator").SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLHRElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ //# sourceMappingURL=separator.d.ts.map
@@ -4,3 +4,4 @@ export declare const Text: React.ForwardRefExoticComponent<Omit<Omit<Omit<{
4
4
  as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | undefined;
5
5
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
6
6
  } & Omit<React.HTMLProps<HTMLParagraphElement>, "size">, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
7
+ //# sourceMappingURL=text.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function AccountSettings({ fullPage }: {
2
2
  fullPage?: boolean;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=account-settings.d.ts.map
@@ -25,7 +25,7 @@ function ProfileSection() {
25
25
  function EmailVerificationSection() {
26
26
  const user = useUser();
27
27
  const [emailSent, setEmailSent] = useState(false);
28
- return (_jsx(SettingSection, { title: 'Email Verification', desc: 'We want to make sure that you own the email address', buttonDisabled: emailSent, buttonText: !user?.primaryEmailVerified ?
28
+ return (_jsx(SettingSection, { title: 'Email Verification', desc: 'We want to make sure that you own the email address.', buttonDisabled: emailSent, buttonText: !user?.primaryEmailVerified ?
29
29
  emailSent ?
30
30
  'Email sent!' :
31
31
  'Send Email'
@@ -45,7 +45,7 @@ function PasswordSection() {
45
45
  if (user?.authMethod !== 'credential') {
46
46
  return null;
47
47
  }
48
- return (_jsxs(SettingSection, { title: 'Password', desc: 'Change your password', buttonDisabled: !oldPassword || !newPassword, buttonText: 'Save', onButtonClick: async () => {
48
+ return (_jsxs(SettingSection, { title: 'Password', desc: 'Change your password here.', buttonDisabled: !oldPassword || !newPassword, buttonText: 'Save', onButtonClick: async () => {
49
49
  if (oldPassword && newPassword) {
50
50
  const errorMessage = getPasswordError(newPassword);
51
51
  if (errorMessage) {
@@ -78,7 +78,7 @@ function PasswordSection() {
78
78
  }
79
79
  function SignOutSection() {
80
80
  const user = useUser();
81
- return (_jsx(SettingSection, { title: 'Sign out', desc: 'Sign out of your account on this device', buttonVariant: 'secondary', buttonText: 'Sign Out', onButtonClick: () => user?.signOut() }));
81
+ return (_jsx(SettingSection, { title: 'Sign out', desc: 'Sign out of your account on this device.', buttonVariant: 'secondary', buttonText: 'Sign Out', onButtonClick: () => user?.signOut() }));
82
82
  }
83
83
  export default function AccountSettings({ fullPage = false }) {
84
84
  const user = useUser();
@@ -2,3 +2,4 @@ export default function EmailVerification({ searchParams: { code, }, fullPage, }
2
2
  searchParams?: Record<string, string>;
3
3
  fullPage?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=email-verification.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function ForgotPassword({ fullPage }: {
2
2
  fullPage?: boolean;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=forgot-password.d.ts.map
@@ -1 +1,2 @@
1
1
  export default function OAuthCallback(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=oauth-callback.d.ts.map
@@ -2,3 +2,4 @@ export default function PasswordReset({ searchParams, fullPage, }: {
2
2
  searchParams?: Record<string, string>;
3
3
  fullPage?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=password-reset.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function SignIn({ fullPage }: {
2
2
  fullPage?: boolean;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=sign-in.d.ts.map
@@ -1 +1,2 @@
1
1
  export default function Signout(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=sign-out.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export default function SignUp({ fullPage }: {
2
2
  fullPage?: boolean;
3
3
  }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=sign-up.d.ts.map
@@ -6,3 +6,4 @@ export default function StackHandler<HasTokenStore extends boolean>({ app, param
6
6
  };
7
7
  searchParams?: Record<string, string>;
8
8
  }): Promise<import("react/jsx-runtime").JSX.Element>;
9
+ //# sourceMappingURL=stack-handler.d.ts.map
package/dist/index.d.ts CHANGED
@@ -18,5 +18,6 @@ export { default as AccountSettings } from "./components-page/account-settings";
18
18
  export { useDesign } from './providers/design-provider';
19
19
  export { useComponents } from './providers/component-provider';
20
20
  export { StackTheme, ThemeConfig } from './providers/theme-provider';
21
- export { StackJoyTheme } from './providers/joy-provider';
21
+ export { CurrentUser, Project, ServerUser, ApiKeySetFirstView, ApiKeySet } from './lib/stack-app';
22
22
  export * from './components-core';
23
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAElG,cAAc,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -18,5 +18,4 @@ export { default as AccountSettings } from "./components-page/account-settings";
18
18
  export { useDesign } from './providers/design-provider';
19
19
  export { useComponents } from './providers/component-provider';
20
20
  export { StackTheme } from './providers/theme-provider';
21
- export { StackJoyTheme } from './providers/joy-provider';
22
21
  export * from './components-core';
package/dist/joy.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { StackJoyTheme } from './providers/joy-provider';
2
+ //# sourceMappingURL=joy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joy.d.ts","sourceRoot":"","sources":["../src/joy.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/joy.js ADDED
@@ -0,0 +1 @@
1
+ export { StackJoyTheme } from './providers/joy-provider';
@@ -5,3 +5,4 @@ export declare function signInWithOAuth(iface: StackClientInterface, { provider,
5
5
  redirectUrl?: string;
6
6
  }): Promise<void>;
7
7
  export declare function callOAuthCallback(iface: StackClientInterface, tokenStore: TokenStore, redirectUrl: string): Promise<import("oauth4webapi").OAuth2TokenEndpointResponse | null>;
8
+ //# sourceMappingURL=auth.d.ts.map
@@ -10,3 +10,4 @@ export declare function getVerifierAndState(): {
10
10
  codeVerifier: string | null;
11
11
  state: string | null;
12
12
  };
13
+ //# sourceMappingURL=cookie.d.ts.map
@@ -19,3 +19,4 @@ export declare function useUser(options?: GetUserOptions): CurrentUser | null;
19
19
  export declare function useStackApp<ProjectId extends string>(options?: {
20
20
  projectIdMustMatch?: ProjectId;
21
21
  }): StackClientApp<true, ProjectId>;
22
+ //# sourceMappingURL=hooks.d.ts.map
@@ -210,3 +210,4 @@ type StackAdminAppConstructor = {
210
210
  };
211
211
  export declare const StackAdminApp: StackAdminAppConstructor;
212
212
  export {};
213
+ //# sourceMappingURL=stack-app.d.ts.map
@@ -79,3 +79,4 @@ export declare function useComponents(): {
79
79
  export declare function StackComponentProvider(props: {
80
80
  children?: React.ReactNode;
81
81
  } & ComponentConfig): import("react/jsx-runtime").JSX.Element;
82
+ //# sourceMappingURL=component-provider.d.ts.map
@@ -37,3 +37,4 @@ export declare function StackDesignProvider(props: {
37
37
  } & DesignConfig): import("react/jsx-runtime").JSX.Element | null;
38
38
  export declare function useDesign(): DesignContextValue;
39
39
  export {};
40
+ //# sourceMappingURL=design-provider.d.ts.map
@@ -14,3 +14,4 @@ export declare function StackJoyTheme(props: {
14
14
  theme?: ThemeConfig;
15
15
  children?: React.ReactNode;
16
16
  }): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=joy-provider.d.ts.map
@@ -7,3 +7,4 @@ export declare function StackProviderClient(props: {
7
7
  appJsonPromise: Promise<StackClientAppJson<true, string>>;
8
8
  children?: React.ReactNode;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=stack-provider-client.d.ts.map
@@ -4,3 +4,4 @@ export default function StackProvider({ children, app, }: {
4
4
  children: React.ReactNode;
5
5
  app: StackClientApp<true>;
6
6
  }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=stack-provider.d.ts.map
@@ -2,3 +2,4 @@ import React from 'react';
2
2
  export default function StyledComponentsRegistry({ children, }: {
3
3
  children: React.ReactNode;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=styled-components-registry.d.ts.map
@@ -8,3 +8,4 @@ export declare function StackTheme({ theme, children, colorModeConfig, }: {
8
8
  theme?: DesignConfig & ComponentConfig;
9
9
  colorModeConfig?: Omit<ComponentProps<typeof NextThemeProvider>, "themes" | "children">;
10
10
  }): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=theme-provider.d.ts.map
@@ -44,3 +44,4 @@ export declare const DEFAULT_COLORS: {
44
44
  readonly neutralColor: "#e4e4e7";
45
45
  };
46
46
  };
47
+ //# sourceMappingURL=constants.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function validateEmail(email: string): RegExpMatchArray | null;
2
+ //# sourceMappingURL=email.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare function isClient(): boolean;
2
+ //# sourceMappingURL=next.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare function autoRedirect(): void;
2
2
  export declare function constructRedirectUrl(redirectUrl: URL | string | undefined): string;
3
+ //# sourceMappingURL=url.d.ts.map
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@stackframe/stack",
3
- "version": "2.2.1",
3
+ "version": "2.2.4",
4
4
  "type": "module",
5
- "types": "./dist/index.d.ts",
6
- "main": "./dist/index.js",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ },
10
+ "./joy": {
11
+ "types": "./dist/joy.d.ts",
12
+ "default": "./dist/joy.js"
13
+ }
14
+ },
7
15
  "files": [
8
16
  "dist"
9
17
  ],
@@ -22,8 +30,8 @@
22
30
  "server-only": "^0.0.1",
23
31
  "styled-components": "^6.1.8",
24
32
  "tailwindcss-scoped-preflight": "^2.1.0",
25
- "@stackframe/stack-sc": "1.3.0",
26
- "@stackframe/stack-shared": "2.2.0"
33
+ "@stackframe/stack-sc": "1.3.1",
34
+ "@stackframe/stack-shared": "2.2.1"
27
35
  },
28
36
  "peerDependencies": {
29
37
  "@mui/joy": "^5.0.0-beta.30",
@@ -1 +0,0 @@
1
- //# sourceMappingURL=avatar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../src/components/avatar.tsx"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export default function CardHeader({ children, title }: {
3
- children?: React.ReactNode;
4
- title: string;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=card-header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-header.d.ts","sourceRoot":"","sources":["../../src/components/card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text } from "../components-core";
3
- export default function CardHeader({ children, title }) {
4
- return (_jsxs("div", { style: { textAlign: 'center', marginBottom: '24px' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
5
- }
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export default function CenteredCardHeader({ children, title }: {
3
- children?: React.ReactNode;
4
- title: string;
5
- }): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=centered-card-header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"centered-card-header.d.ts","sourceRoot":"","sources":["../../src/components/centered-card-header.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,EAAE,QAAQ,EAAE,KAAK,EAAE,EACnB;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAQ9C"}
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CardHeader, Text } from "../components-core";
3
- export default function CenteredCardHeader({ children, title }) {
4
- return (_jsxs(CardHeader, { style: { textAlign: 'center' }, children: [_jsx(Text, { size: "xl", as: 'h2', style: { marginBottom: '5px' }, children: title }), children] }));
5
- }
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- type SidebarItem = {
3
- type: 'label' | 'link' | 'divider' | undefined;
4
- } & ({
5
- type: 'label';
6
- text: string;
7
- } | {
8
- type: 'link';
9
- text: string;
10
- href: string;
11
- } | {
12
- type: 'divider';
13
- });
14
- export default function DashboardFrame(props: {
15
- logoUrl?: string | {
16
- dark: string;
17
- light: string;
18
- };
19
- sidebarContent: SidebarItem[];
20
- children?: React.ReactNode;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- export {};
23
- //# sourceMappingURL=dashboard-frame.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dashboard-frame.d.ts","sourceRoot":"","sources":["../../src/components/dashboard-frame.tsx"],"names":[],"mappings":";AAOA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;CAChD,GAAG,CACF;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAmCA"}
@@ -1,20 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useMemo } from "react";
4
- import { useDesign } from "../providers/design-provider";
5
- import { LogoBright, LogoDark } from "./logo";
6
- export default function DashboardFrame(props) {
7
- const { colors, colorMode } = useDesign();
8
- const logoSrc = useMemo(() => {
9
- if (!props.logoUrl) {
10
- return colorMode === 'dark' ? _jsx(LogoDark, {}) : _jsx(LogoBright, {});
11
- }
12
- else if (typeof props.logoUrl === 'string') {
13
- return props.logoUrl;
14
- }
15
- else {
16
- return colorMode === 'dark' ? props.logoUrl?.dark : props.logoUrl?.light;
17
- }
18
- }, [props.logoUrl, colorMode]);
19
- return (_jsxs("div", { style: { position: 'absolute', top: 0, left: 0, width: '100%', height: '100vh', display: 'flex', flexDirection: 'row' }, children: [_jsx("nav", { style: { width: '280px', height: '100%', borderRight: 1, borderRightStyle: 'solid', borderRightColor: colors.neutralColor }, children: _jsx("div", { style: { height: '50px', borderBottom: 1, borderBottomStyle: 'solid', borderBottomColor: colors.neutralColor, display: 'flex', alignItems: 'center', padding: '0 15px' }, children: _jsx(LogoBright, { height: 28 }) }) }), _jsxs("div", { style: { display: 'flex', flexDirection: 'column', width: '100%' }, children: [_jsx("nav", { style: { height: '50px', borderBottom: 1, borderBottomStyle: 'solid', borderBottomColor: colors.neutralColor } }), _jsx("div", { style: { height: 'calc(100% - 50px)', overflowY: 'auto' }, children: props.children })] })] }));
20
- }
@@ -1,4 +0,0 @@
1
- export default function SeparatorWithText({ text }: {
2
- text: string;
3
- }): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=divider-with-text.d.ts.map