@tern-secure/nextjs 3.1.45 → 3.1.47
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/cjs/index.cjs +368 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index.d.cts +135 -0
- package/dist/cjs/index.d.ts +135 -0
- package/dist/cjs/index.js +55 -202
- package/dist/cjs/index.js.map +1 -7
- package/dist/esm/index.cjs +368 -0
- package/dist/esm/index.cjs.map +1 -0
- package/dist/esm/index.d.cts +135 -0
- package/dist/esm/index.d.ts +135 -9
- package/dist/esm/index.js +43 -95
- package/dist/esm/index.js.map +1 -7
- package/package.json +4 -14
- package/dist/esm/TernSecureProvider-7KNRQUY2.js +0 -8
- package/dist/esm/TernSecureProvider-7KNRQUY2.js.map +0 -7
- package/dist/esm/app-router/client/TernSecureProvider.d.ts +0 -29
- package/dist/esm/app-router/client/TernSecureProvider.d.ts.map +0 -1
- package/dist/esm/app-router/server/TernSecureServerProvider.d.ts +0 -7
- package/dist/esm/app-router/server/TernSecureServerProvider.d.ts.map +0 -1
- package/dist/esm/app-router/server/auth.d.ts +0 -7
- package/dist/esm/app-router/server/auth.d.ts.map +0 -1
- package/dist/esm/boundary/TernSecureCtx.d.ts +0 -26
- package/dist/esm/boundary/TernSecureCtx.d.ts.map +0 -1
- package/dist/esm/boundary/hooks/useAuth.d.ts +0 -13
- package/dist/esm/boundary/hooks/useAuth.d.ts.map +0 -1
- package/dist/esm/chunk-Q7WUJODD.js +0 -34
- package/dist/esm/chunk-Q7WUJODD.js.map +0 -7
- package/dist/esm/components/sign-in.d.ts +0 -22
- package/dist/esm/components/sign-in.d.ts.map +0 -1
- package/dist/esm/errors.d.ts +0 -9
- package/dist/esm/errors.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/types.d.ts +0 -47
- package/dist/esm/types.d.ts.map +0 -1
- package/dist/esm/utils/client-init.d.ts +0 -4
- package/dist/esm/utils/client-init.d.ts.map +0 -1
- package/dist/esm/utils/config.d.ts +0 -19
- package/dist/esm/utils/config.d.ts.map +0 -1
- package/dist/esm/utils/create-styles.d.ts +0 -99
- package/dist/esm/utils/create-styles.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TernSecureCtx.d.ts","sourceRoot":"","sources":["../../../src/boundary/TernSecureCtx.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B;AAED;;;GAGG;AACH,QAAA,MAAM,oBAAoB,eAAgC,CAAA;AAE1D;;;GAGG;AACH,QAAA,MAAM,iBAAiB,uDAAoD,CAAA;AAE3E;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,cAAe,MAAM,KAAG,qBAW/C,CAAA;AAED,OAAO,EACL,KAAK,qBAAqB,EAC1B,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACrB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface AuthState {
|
|
2
|
-
userId: string | null;
|
|
3
|
-
loading: boolean;
|
|
4
|
-
error: Error | null;
|
|
5
|
-
isSignedIn: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function useAuth(): {
|
|
8
|
-
loading: boolean;
|
|
9
|
-
isSignedIn: boolean;
|
|
10
|
-
userId: string | null;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../src/boundary/hooks/useAuth.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,OAAO;;;;;EAuCtB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// src/app-router/client/TernSecureProvider.tsx
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
// src/boundary/TernSecureCtx.tsx
|
|
5
|
-
import { createContext, useContext } from "react";
|
|
6
|
-
var INTERNAL_CONTEXT_KEY = Symbol("TERN_SECURE_CONTEXT");
|
|
7
|
-
var TernSecureContext = createContext(null);
|
|
8
|
-
var useInternalContext = (hookName) => {
|
|
9
|
-
const context = useContext(TernSecureContext);
|
|
10
|
-
if (!context || context._contextKey !== INTERNAL_CONTEXT_KEY) {
|
|
11
|
-
throw new Error(
|
|
12
|
-
`${hookName || "Hook"} must be used within TernSecureProvider. Please wrap your component with TernSecureProvider.`
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
return context;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// src/app-router/client/TernSecureProvider.tsx
|
|
19
|
-
import { jsx } from "react/jsx-runtime";
|
|
20
|
-
function TernSecureClientProvider({ children }) {
|
|
21
|
-
const contextValue = React.useMemo(
|
|
22
|
-
() => ({ _contextKey: INTERNAL_CONTEXT_KEY }),
|
|
23
|
-
[]
|
|
24
|
-
);
|
|
25
|
-
return /* @__PURE__ */ jsx(TernSecureContext.Provider, { value: contextValue, children });
|
|
26
|
-
}
|
|
27
|
-
TernSecureClientProvider.displayName = "TernSecureClientProvider";
|
|
28
|
-
|
|
29
|
-
export {
|
|
30
|
-
TernSecureContext,
|
|
31
|
-
useInternalContext,
|
|
32
|
-
TernSecureClientProvider
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=chunk-Q7WUJODD.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/app-router/client/TernSecureProvider.tsx", "../../src/boundary/TernSecureCtx.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client'\r\n\r\nimport React from 'react'\r\nimport { INTERNAL_CONTEXT_KEY, TernSecureContext, TernSecureContextType } from '../../boundary/TernSecureCtx'\r\n\r\n/**\r\n * Props for the TernSecureClientProvider component\r\n */\r\ninterface TernSecureClientProviderProps {\r\n /** React child elements to be wrapped by the provider */\r\n children: React.ReactNode\r\n}\r\n\r\n/**\r\n * Provider component for TernSecure authentication\r\n * Must be used to wrap any components that use TernSecure hooks\r\n * \r\n * @example\r\n * ```tsx\r\n * function App() {\r\n * return (\r\n * <TernSecureClientProvider>\r\n * <YourApp />\r\n * </TernSecureClientProvider>\r\n * )\r\n * }\r\n * ```\r\n */\r\nexport function TernSecureClientProvider({ children }: TernSecureClientProviderProps): JSX.Element {\r\n // Memoize the context value to prevent unnecessary re-renders\r\n const contextValue = React.useMemo<TernSecureContextType>(\r\n () => ({ _contextKey: INTERNAL_CONTEXT_KEY }),\r\n []\r\n )\r\n\r\n return (\r\n <TernSecureContext.Provider value={contextValue}>\r\n {children}\r\n </TernSecureContext.Provider>\r\n )\r\n}\r\n\r\n// Add display name for better debugging\r\nTernSecureClientProvider.displayName = 'TernSecureClientProvider'", "'use client'\r\n\r\nimport { createContext, useContext } from 'react'\r\n\r\n/**\r\n * Internal context type for TernSecure authentication\r\n * @internal\r\n */\r\ninterface TernSecureContextType {\r\n readonly _contextKey: symbol\r\n}\r\n\r\n/**\r\n * Internal symbol used for context validation\r\n * @internal\r\n */\r\nconst INTERNAL_CONTEXT_KEY = Symbol('TERN_SECURE_CONTEXT')\r\n\r\n/**\r\n * Context for TernSecure authentication\r\n * @internal\r\n */\r\nconst TernSecureContext = createContext<TernSecureContextType | null>(null)\r\n\r\n/**\r\n * Hook to verify that components are rendered within the TernSecure provider\r\n * @param hookName - Name of the hook being used (for better error messages)\r\n * @throws {Error} When used outside of TernSecureProvider\r\n * @internal\r\n */\r\nconst useInternalContext = (hookName?: string): TernSecureContextType => {\r\n const context = useContext(TernSecureContext)\r\n \r\n if (!context || context._contextKey !== INTERNAL_CONTEXT_KEY) {\r\n throw new Error(\r\n `${hookName || 'Hook'} must be used within TernSecureProvider. ` +\r\n 'Please wrap your component with TernSecureProvider.'\r\n )\r\n }\r\n \r\n return context\r\n}\r\n\r\nexport {\r\n type TernSecureContextType,\r\n TernSecureContext,\r\n useInternalContext,\r\n INTERNAL_CONTEXT_KEY\r\n}"],
|
|
5
|
-
"mappings": ";AAEA,OAAO,WAAW;;;ACAlB,SAAS,eAAe,kBAAkB;AAc1C,IAAM,uBAAuB,OAAO,qBAAqB;AAMzD,IAAM,oBAAoB,cAA4C,IAAI;AAQ1E,IAAM,qBAAqB,CAAC,aAA6C;AACvE,QAAM,UAAU,WAAW,iBAAiB;AAE5C,MAAI,CAAC,WAAW,QAAQ,gBAAgB,sBAAsB;AAC5D,UAAM,IAAI;AAAA,MACR,GAAG,YAAY,MAAM;AAAA,IAEvB;AAAA,EACF;AAEA,SAAO;AACT;;;ADLI;AARG,SAAS,yBAAyB,EAAE,SAAS,GAA+C;AAEjG,QAAM,eAAe,MAAM;AAAA,IACzB,OAAO,EAAE,aAAa,qBAAqB;AAAA,IAC3C,CAAC;AAAA,EACH;AAEA,SACE,oBAAC,kBAAkB,UAAlB,EAA2B,OAAO,cAChC,UACH;AAEJ;AAGA,yBAAyB,cAAc;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface SignInProps {
|
|
3
|
-
onSuccess?: () => void;
|
|
4
|
-
onError?: (error: Error) => void;
|
|
5
|
-
redirectUrl?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
customStyles?: {
|
|
9
|
-
container?: string;
|
|
10
|
-
header?: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
formWrapper?: string;
|
|
13
|
-
formContainer?: string;
|
|
14
|
-
form?: string;
|
|
15
|
-
input?: string;
|
|
16
|
-
button?: string;
|
|
17
|
-
errorText?: string;
|
|
18
|
-
label?: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare function SignIn({ onSuccess, onError, redirectUrl, className, style, customStyles }: SignInProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=sign-in.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in.d.ts","sourceRoot":"","sources":["../../../src/components/sign-in.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,YAAY,CAAC,EAAE;QACb,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AAED,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAc,EACd,KAAK,EACL,YAAiB,EAClB,EAAE,WAAW,2CAmGb"}
|
package/dist/esm/errors.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const ERRORS: {
|
|
2
|
-
readonly SERVER_SIDE_INITIALIZATION: "TernSecure must be initialized on the client side";
|
|
3
|
-
readonly NOT_INITIALIZED: "TernSecure services are not initialized. Call initializeTernSecure() first";
|
|
4
|
-
readonly HOOK_CONTEXT: (hookName: string) => string;
|
|
5
|
-
};
|
|
6
|
-
export declare class TernSecureError extends Error {
|
|
7
|
-
constructor(message: string);
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=errors.d.ts.map
|
package/dist/esm/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;sCAGU,MAAM;CACvB,CAAC;AAEX,qBAAa,eAAgB,SAAQ,KAAK;gBAC5B,OAAO,EAAE,MAAM;CAI5B"}
|
package/dist/esm/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAA;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA"}
|
package/dist/esm/types.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { FirebaseOptions } from 'firebase/app';
|
|
2
|
-
/**
|
|
3
|
-
* TernSecure Firebase configuration interface
|
|
4
|
-
* Extends Firebase's base configuration options
|
|
5
|
-
*/
|
|
6
|
-
export interface TernSecureConfig extends FirebaseOptions {
|
|
7
|
-
apiKey: string;
|
|
8
|
-
authDomain: string;
|
|
9
|
-
projectId: string;
|
|
10
|
-
storageBucket: string;
|
|
11
|
-
messagingSenderId: string;
|
|
12
|
-
appId: string;
|
|
13
|
-
measurementId?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* TernSecure initialization options
|
|
17
|
-
*/
|
|
18
|
-
export interface TernSecureOptions {
|
|
19
|
-
/** Environment setting for different configurations */
|
|
20
|
-
environment?: 'development' | 'production';
|
|
21
|
-
/** Geographic region for data storage */
|
|
22
|
-
region?: string;
|
|
23
|
-
/** Custom error handler */
|
|
24
|
-
onError?: (error: Error) => void;
|
|
25
|
-
/** Debug mode flag */
|
|
26
|
-
debug?: boolean;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Firebase initialization state
|
|
30
|
-
*/
|
|
31
|
-
export interface FirebaseState {
|
|
32
|
-
/** Whether Firebase has been initialized */
|
|
33
|
-
initialized: boolean;
|
|
34
|
-
/** Any initialization errors */
|
|
35
|
-
error: Error | null;
|
|
36
|
-
/** Timestamp of last initialization attempt */
|
|
37
|
-
lastInitAttempt?: number;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Configuration validation result
|
|
41
|
-
*/
|
|
42
|
-
export interface ConfigValidationResult {
|
|
43
|
-
isValid: boolean;
|
|
44
|
-
errors: string[];
|
|
45
|
-
config: TernSecureConfig;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/esm/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,WAAW,CAAC,EAAE,aAAa,GAAG,YAAY,CAAA;IAC1C,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,sBAAsB;IACtB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,WAAW,EAAE,OAAO,CAAA;IACpB,gCAAgC;IAChC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,gBAAgB,CAAA;CACzB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const TernSecureAuth: () => import("@firebase/auth").Auth;
|
|
2
|
-
export declare const TernSecureFirestore: () => import("@firebase/firestore").Firestore;
|
|
3
|
-
export declare const TernSecureStorage: () => import("@firebase/storage").FirebaseStorage;
|
|
4
|
-
//# sourceMappingURL=client-init.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-init.d.ts","sourceRoot":"","sources":["../../../src/utils/client-init.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,qCAAa,CAAC;AACzC,eAAO,MAAM,mBAAmB,+CAAkB,CAAC;AACnD,eAAO,MAAM,iBAAiB,mDAAgB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TernSecureConfig, ConfigValidationResult } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Loads Firebase configuration from environment variables
|
|
4
|
-
* @returns {TernSecureConfig} Firebase configuration object
|
|
5
|
-
*/
|
|
6
|
-
export declare const loadFireConfig: () => TernSecureConfig;
|
|
7
|
-
/**
|
|
8
|
-
* Validates Firebase configuration
|
|
9
|
-
* @param {TernSecureConfig} config - Firebase configuration object
|
|
10
|
-
* @throws {Error} If required configuration values are missing
|
|
11
|
-
* @returns {TernSecureConfig} Validated configuration object
|
|
12
|
-
*/
|
|
13
|
-
export declare const validateConfig: (config: TernSecureConfig) => ConfigValidationResult;
|
|
14
|
-
/**
|
|
15
|
-
* Initializes configuration with validation
|
|
16
|
-
* @throws {Error} If configuration is invalid
|
|
17
|
-
*/
|
|
18
|
-
export declare const initializeConfig: () => TernSecureConfig;
|
|
19
|
-
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/utils/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAEnE;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,gBAQhC,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,WAAY,gBAAgB,KAAG,sBAuBzD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,gBAWnC,CAAA"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
export declare const defaultClassNames: {
|
|
2
|
-
readonly container: "tern-container";
|
|
3
|
-
readonly header: "tern-header";
|
|
4
|
-
readonly title: "tern-title";
|
|
5
|
-
readonly formWrapper: "tern-formWrapper";
|
|
6
|
-
readonly formContainer: "tern-formContainer";
|
|
7
|
-
readonly form: "tern-form";
|
|
8
|
-
readonly label: "tern-label";
|
|
9
|
-
readonly input: "tern-input";
|
|
10
|
-
readonly button: "tern-button";
|
|
11
|
-
readonly error: "tern-error";
|
|
12
|
-
};
|
|
13
|
-
export declare const styleConfig: {
|
|
14
|
-
readonly container: {
|
|
15
|
-
readonly display: "flex";
|
|
16
|
-
readonly minHeight: "100%";
|
|
17
|
-
readonly flex: "1";
|
|
18
|
-
readonly flexDirection: "column";
|
|
19
|
-
readonly justifyContent: "center";
|
|
20
|
-
readonly padding: "3rem 1.5rem";
|
|
21
|
-
};
|
|
22
|
-
readonly header: {
|
|
23
|
-
readonly margin: "0 auto";
|
|
24
|
-
readonly width: "100%";
|
|
25
|
-
readonly maxWidth: "28rem";
|
|
26
|
-
};
|
|
27
|
-
readonly title: {
|
|
28
|
-
readonly marginTop: "1.5rem";
|
|
29
|
-
readonly textAlign: "center";
|
|
30
|
-
readonly fontSize: "1.875rem";
|
|
31
|
-
readonly fontWeight: "700";
|
|
32
|
-
readonly lineHeight: "2.25rem";
|
|
33
|
-
readonly letterSpacing: "-0.025em";
|
|
34
|
-
readonly color: "var(--tern-text-primary, #111827)";
|
|
35
|
-
};
|
|
36
|
-
readonly formWrapper: {
|
|
37
|
-
readonly marginTop: "2.5rem";
|
|
38
|
-
readonly margin: "0 auto";
|
|
39
|
-
readonly width: "100%";
|
|
40
|
-
readonly maxWidth: "30rem";
|
|
41
|
-
};
|
|
42
|
-
readonly formContainer: {
|
|
43
|
-
readonly padding: "3rem 1.5rem";
|
|
44
|
-
readonly boxShadow: "0 1px 3px 0 rgb(0 0 0 / 0.1)";
|
|
45
|
-
readonly borderRadius: "0.5rem";
|
|
46
|
-
readonly backgroundColor: "var(--tern-background, white)";
|
|
47
|
-
};
|
|
48
|
-
readonly form: {
|
|
49
|
-
readonly display: "flex";
|
|
50
|
-
readonly flexDirection: "column";
|
|
51
|
-
readonly gap: "1rem";
|
|
52
|
-
};
|
|
53
|
-
readonly label: {
|
|
54
|
-
readonly display: "block";
|
|
55
|
-
readonly fontSize: "0.875rem";
|
|
56
|
-
readonly fontWeight: "500";
|
|
57
|
-
readonly color: "var(--tern-text-secondary, #374151)";
|
|
58
|
-
};
|
|
59
|
-
readonly input: {
|
|
60
|
-
readonly marginTop: "0.25rem";
|
|
61
|
-
readonly display: "block";
|
|
62
|
-
readonly width: "100%";
|
|
63
|
-
readonly padding: "0.5rem 0.75rem";
|
|
64
|
-
readonly borderRadius: "0.375rem";
|
|
65
|
-
readonly border: "1px solid var(--tern-border, #D1D5DB)";
|
|
66
|
-
readonly backgroundColor: "var(--tern-input-background, white)";
|
|
67
|
-
readonly color: "var(--tern-text-primary, #111827)";
|
|
68
|
-
};
|
|
69
|
-
readonly button: {
|
|
70
|
-
readonly display: "flex";
|
|
71
|
-
readonly width: "100%";
|
|
72
|
-
readonly justifyContent: "center";
|
|
73
|
-
readonly padding: "0.5rem 1rem";
|
|
74
|
-
readonly fontSize: "0.875rem";
|
|
75
|
-
readonly fontWeight: "500";
|
|
76
|
-
readonly color: "white";
|
|
77
|
-
readonly backgroundColor: "var(--tern-primary, #2563EB)";
|
|
78
|
-
readonly border: "none";
|
|
79
|
-
readonly borderRadius: "0.375rem";
|
|
80
|
-
readonly cursor: "pointer";
|
|
81
|
-
};
|
|
82
|
-
readonly error: {
|
|
83
|
-
readonly color: "var(--tern-error, #DC2626)";
|
|
84
|
-
readonly fontSize: "0.875rem";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
export declare const styles: {
|
|
88
|
-
readonly container: "tern-container";
|
|
89
|
-
readonly header: "tern-header";
|
|
90
|
-
readonly title: "tern-title";
|
|
91
|
-
readonly formWrapper: "tern-formWrapper";
|
|
92
|
-
readonly formContainer: "tern-formContainer";
|
|
93
|
-
readonly form: "tern-form";
|
|
94
|
-
readonly label: "tern-label";
|
|
95
|
-
readonly input: "tern-input";
|
|
96
|
-
readonly button: "tern-button";
|
|
97
|
-
readonly error: "tern-error";
|
|
98
|
-
};
|
|
99
|
-
//# sourceMappingURL=create-styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-styles.d.ts","sourceRoot":"","sources":["../../../src/utils/create-styles.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,iBAAiB;;;;;;;;;;;CAWpB,CAAA;AAwCV,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEd,CAAA;AAGV,eAAO,MAAM,MAAM;;;;;;;;;;;CAAgC,CAAA"}
|