@kittycad/react-shared 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +35 -2
- package/dist/index.esm.js +19306 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19325 -20
- package/dist/index.js.map +1 -1
- package/package.json +12 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { Models } from '@kittycad/lib';
|
|
2
4
|
import { ClassValue } from 'clsx';
|
|
3
5
|
|
|
4
6
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -8,7 +10,38 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
8
10
|
}
|
|
9
11
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
12
|
|
|
13
|
+
interface SignInPageContentProps {
|
|
14
|
+
shouldTrackConversions?: boolean;
|
|
15
|
+
trackingClasses?: (provider?: string) => string;
|
|
16
|
+
buttonClasses?: (provider?: string) => string;
|
|
17
|
+
callbackUrl?: string;
|
|
18
|
+
onOAuthClick?: (provider: Models['AccountProvider_type']) => void;
|
|
19
|
+
onEmailSubmit?: () => void;
|
|
20
|
+
baseUrl?: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
titleColor?: string;
|
|
23
|
+
getAPIBase?: () => string;
|
|
24
|
+
}
|
|
25
|
+
declare function SignInPageContent({ shouldTrackConversions, trackingClasses, buttonClasses, callbackUrl, onOAuthClick, onEmailSubmit, baseUrl, className, titleColor, getAPIBase, }: SignInPageContentProps): react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
type BrandTheme = 'default' | 'yellow' | 'blue' | 'green' | 'magenta' | 'hue-shift' | 'hue-shift-on-white';
|
|
28
|
+
interface EmailLoginFormProps extends React.HTMLProps<HTMLFormElement> {
|
|
29
|
+
theme?: BrandTheme;
|
|
30
|
+
buttonClassName?: string;
|
|
31
|
+
idSuffix?: string;
|
|
32
|
+
onSubmit?: () => void;
|
|
33
|
+
callbackUrl?: string;
|
|
34
|
+
baseUrl?: string;
|
|
35
|
+
getAPIBase?: () => string;
|
|
36
|
+
}
|
|
37
|
+
declare function EmailLoginForm({ theme, buttonClassName, className, idSuffix, onSubmit, callbackUrl, baseUrl, getAPIBase, ...props }: EmailLoginFormProps): react_jsx_runtime.JSX.Element;
|
|
38
|
+
|
|
39
|
+
interface LoginTitleProps {
|
|
40
|
+
color?: string;
|
|
41
|
+
}
|
|
42
|
+
declare function LoginTitle({ color }: LoginTitleProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
11
44
|
declare function cn(...inputs: ClassValue[]): string;
|
|
12
45
|
|
|
13
|
-
export { Button, cn };
|
|
14
|
-
export type { ButtonProps };
|
|
46
|
+
export { Button, EmailLoginForm, LoginTitle, SignInPageContent, cn };
|
|
47
|
+
export type { BrandTheme, ButtonProps, EmailLoginFormProps, LoginTitleProps, SignInPageContentProps };
|