@slyxup/ui 2.2.0 → 2.3.0
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/README.md +10 -0
- package/dist/components/PasswordField.d.ts +14 -0
- package/dist/components/PasswordField.d.ts.map +1 -0
- package/dist/components/PasswordField.js +9 -0
- package/dist/components/PasswordField.js.map +1 -0
- package/dist/components/ResetPassword/ResetPassword.d.ts.map +1 -1
- package/dist/components/ResetPassword/ResetPassword.js +2 -1
- package/dist/components/ResetPassword/ResetPassword.js.map +1 -1
- package/dist/components/SignIn/SignIn.d.ts.map +1 -1
- package/dist/components/SignIn/SignIn.js +2 -1
- package/dist/components/SignIn/SignIn.js.map +1 -1
- package/dist/components/SignUp/SignUp.d.ts.map +1 -1
- package/dist/components/SignUp/SignUp.js +2 -1
- package/dist/components/SignUp/SignUp.js.map +1 -1
- package/dist/icons.d.ts +2 -0
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +6 -0
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +35 -0
- package/dist/styles.js.map +1 -1
- package/dist/theme.d.ts +4 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +14 -0
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -235,6 +235,16 @@ Feature flags on both:
|
|
|
235
235
|
|
|
236
236
|
Primary buttons follow the theme: `applyTheme({ primary: "accent" })` renders them in your brand gradient instead of ink.
|
|
237
237
|
|
|
238
|
+
Density for tight spaces: `applyTheme({ density: "compact" })` shrinks card padding, fields and buttons — ideal for modals and sidebars.
|
|
239
|
+
|
|
240
|
+
Every password field has a reveal toggle built in (hide it per-field with `showToggle={false}`). The standalone `<PasswordField />` is exported for custom forms:
|
|
241
|
+
|
|
242
|
+
```tsx
|
|
243
|
+
import { PasswordField } from "@slyxup/ui"
|
|
244
|
+
|
|
245
|
+
<PasswordField id="pw" value={pw} onChange={setPw} required minLength={8} />
|
|
246
|
+
```
|
|
247
|
+
|
|
238
248
|
## Theming
|
|
239
249
|
|
|
240
250
|
Three ways to theme, in order of precedence: `applyTheme()` → data attributes → raw CSS variables (always win).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PasswordFieldProps {
|
|
2
|
+
id: string;
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
autoComplete?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
minLength?: number;
|
|
9
|
+
/** Show the reveal button (default true). */
|
|
10
|
+
showToggle?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Password input with a reveal toggle. Drops into any `slx-field`. */
|
|
13
|
+
export declare function PasswordField({ id, value, onChange, autoComplete, placeholder, required, minLength, showToggle, }: PasswordFieldProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=PasswordField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordField.d.ts","sourceRoot":"","sources":["../../src/components/PasswordField.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,EAC5B,EAAE,EACF,KAAK,EACL,QAAQ,EACR,YAAiC,EACjC,WAAwB,EACxB,QAAQ,EACR,SAAS,EACT,UAAiB,GAClB,EAAE,kBAAkB,+BA6BpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { EyeIcon, EyeOffIcon } from '../icons';
|
|
4
|
+
/** Password input with a reveal toggle. Drops into any `slx-field`. */
|
|
5
|
+
export function PasswordField({ id, value, onChange, autoComplete = 'current-password', placeholder = '••••••••', required, minLength, showToggle = true, }) {
|
|
6
|
+
const [show, setShow] = useState(false);
|
|
7
|
+
return (_jsxs("div", { className: "slx-input-wrap", children: [_jsx("input", { id: id, className: "slx-input", type: show ? 'text' : 'password', autoComplete: autoComplete, placeholder: placeholder, value: value, onChange: (e) => onChange(e.target.value), required: required, minLength: minLength }), showToggle && (_jsx("button", { type: "button", className: "slx-pw-toggle", onClick: () => setShow((s) => !s), "aria-label": show ? 'Hide password' : 'Show password', "aria-pressed": show, tabIndex: 0, children: show ? _jsx(EyeOffIcon, {}) : _jsx(EyeIcon, {}) }))] }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=PasswordField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PasswordField.js","sourceRoot":"","sources":["../../src/components/PasswordField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAc/C,uEAAuE;AACvE,MAAM,UAAU,aAAa,CAAC,EAC5B,EAAE,EACF,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,kBAAkB,EACjC,WAAW,GAAG,UAAU,EACxB,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,IAAI,GACE;IACnB,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,CACL,eAAK,SAAS,EAAC,gBAAgB,aAC7B,gBACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAC,WAAW,EACrB,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,EAChC,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,GACpB,EACD,UAAU,IAAI,CACb,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,eAAe,EACzB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,gBACrB,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,kBACtC,IAAI,EAClB,QAAQ,EAAE,CAAC,YAEV,IAAI,CAAC,CAAC,CAAC,KAAC,UAAU,KAAG,CAAC,CAAC,CAAC,KAAC,OAAO,KAAG,GAC7B,CACV,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../src/components/ResetPassword/ResetPassword.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../src/components/ResetPassword/ResetPassword.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,wDAAwD;AACxD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,+BAuGpB"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { CheckIcon, KeyholeMark } from '../../icons';
|
|
4
4
|
import { injectStyles } from '../../styles';
|
|
5
|
+
import { PasswordField } from '../PasswordField';
|
|
5
6
|
/** Set a new password using the emailed reset token. */
|
|
6
7
|
export function ResetPassword({ token, apiUrl, onSuccess, }) {
|
|
7
8
|
injectStyles();
|
|
@@ -47,6 +48,6 @@ export function ResetPassword({ token, apiUrl, onSuccess, }) {
|
|
|
47
48
|
if (done) {
|
|
48
49
|
return (_jsxs("div", { className: "slx-card", children: [_jsx("div", { className: "slx-success-icon", children: _jsx(CheckIcon, {}) }), _jsx("h1", { className: "slx-title", style: { textAlign: 'center' }, children: "Password updated" }), _jsx("p", { className: "slx-subtitle", style: { textAlign: 'center' }, children: "Your password has been changed. Use it to sign in." }), onSuccess && (_jsx("button", { type: "button", className: "slx-btn", onClick: onSuccess, children: "Continue to sign in" }))] }));
|
|
49
50
|
}
|
|
50
|
-
return (_jsxs("div", { className: `slx-card${error ? ' slx-card-error' : ''}`, children: [_jsx("div", { className: "slx-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h1", { className: "slx-title", children: "Choose a new password" }), _jsx("p", { className: "slx-subtitle", children: "Pick something strong you haven't used before." }), error && (_jsx("p", { className: "slx-error-text", role: "alert", children: error })), _jsxs("form", { onSubmit: onSubmit, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-reset-password", children: "New password" }), _jsx(
|
|
51
|
+
return (_jsxs("div", { className: `slx-card${error ? ' slx-card-error' : ''}`, children: [_jsx("div", { className: "slx-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h1", { className: "slx-title", children: "Choose a new password" }), _jsx("p", { className: "slx-subtitle", children: "Pick something strong you haven't used before." }), error && (_jsx("p", { className: "slx-error-text", role: "alert", children: error })), _jsxs("form", { onSubmit: onSubmit, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-reset-password", children: "New password" }), _jsx(PasswordField, { id: "slx-reset-password", value: password, onChange: setPassword, autoComplete: "new-password", placeholder: "At least 8 characters", required: true, minLength: 8 })] }), _jsxs("button", { className: "slx-btn", type: "submit", disabled: busy, children: [busy && _jsx("span", { className: "slx-spinner", "aria-hidden": "true" }), busy ? 'Updating…' : 'Update password'] })] })] }));
|
|
51
52
|
}
|
|
52
53
|
//# sourceMappingURL=ResetPassword.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPassword.js","sourceRoot":"","sources":["../../../src/components/ResetPassword/ResetPassword.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ResetPassword.js","sourceRoot":"","sources":["../../../src/components/ResetPassword/ResetPassword.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,wDAAwD;AACxD,MAAM,UAAU,aAAa,CAAC,EAC5B,KAAK,EACL,MAAM,EACN,SAAS,GACU;IACnB,YAAY,EAAE,CAAC;IACf,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,G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AAO,SAAS,EAAC,WAAW,EAAC,OAAO,EAAC,oBAAoB,6BAEjD,EACR,KAAC,aAAa,IACZ,EAAE,EAAC,oBAAoB,EACvB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAC,cAAc,EAC3B,WAAW,EAAC,uBAAuB,EACnC,QAAQ,QACR,SAAS,EAAE,CAAC,GACZ,IACE,EACN,kBAAQ,SAAS,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,IAAI,aACrD,IAAI,IAAI,eAAM,SAAS,EAAC,aAAa,iBAAa,MAAM,GAAG,EAC3D,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iBAAiB,IAChC,IACJ,IACH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../src/components/SignIn/SignIn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../src/components/SignIn/SignIn.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB;IACxB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,4DAA4D;IAC5D,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,oGAAoG;IACpG,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,2CAA2C;AAC3C,wBAAgB,MAAM,CAAC,EACrB,MAAa,EACb,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,MAAmB,EACnB,QAAgB,EAChB,UAAmC,EACnC,aAA6E,EAC7E,WAAqH,GACtH,EAAE,WAAW,+BA8Ob"}
|
|
@@ -4,6 +4,7 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
4
4
|
import { GitHubIcon, GoogleIcon, KeyholeMark } from '../../icons';
|
|
5
5
|
import { useAuth } from '../../react/hooks/useAuth';
|
|
6
6
|
import { injectStyles } from '../../styles';
|
|
7
|
+
import { PasswordField } from '../PasswordField';
|
|
7
8
|
/** Email/password + OAuth sign-in card. */
|
|
8
9
|
export function SignIn({ social = true, onSuccess, onSignUpClick, onForgotPasswordClick, layout = 'centered', username = false, brandTitle = 'Ship auth in minutes', brandSubtitle = 'Email, OAuth and 2FA — one integration, secured by default.', brandPoints = ['Email + OAuth out of the box', 'HttpOnly sessions, secured by default', 'Billing ready when you are'], }) {
|
|
9
10
|
injectStyles();
|
|
@@ -69,6 +70,6 @@ export function SignIn({ social = true, onSuccess, onSignUpClick, onForgotPasswo
|
|
|
69
70
|
return (_jsxs("div", { ref: cardRef, className: `slx-card${error ? ' slx-card-error' : ''}${layout === 'centered' ? '' : ` slx-layout-${layout}`}`, children: [layout === 'split' && (_jsxs("div", { className: "slx-split-brand", children: [_jsx("div", { className: "slx-split-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h2", { className: "slx-split-title", children: brandTitle }), _jsx("p", { className: "slx-split-sub", children: brandSubtitle }), _jsx("ul", { className: "slx-split-points", children: brandPoints.map((pt) => (_jsx("li", { children: pt }, pt))) })] })), _jsxs("div", { className: layout === 'split' ? 'slx-split-form' : 'slx-form-full', children: [missingKey && (_jsxs("p", { className: "slx-setup-note", children: [_jsx("strong", { children: "Setup:" }), " Add", ' ', _jsx("code", { children: "NEXT_PUBLIC_SLYXUP_PUBLISHABLE_KEY" }), " to", ' ', _jsx("code", { children: ".env.local" }), " \u2014 run ", _jsx("code", { children: "npx @slyxup/cli keys create" })] })), _jsx("div", { className: "slx-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h1", { className: "slx-title", children: "Sign in" }), _jsx("p", { className: "slx-subtitle", children: "Welcome back. Enter your details to continue." }), social && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "slx-social", children: [_jsxs("button", { type: "button", className: "slx-social-btn", onClick: () => oauth('google'), children: [_jsx(GoogleIcon, {}), " Continue with Google"] }), _jsxs("button", { type: "button", className: "slx-social-btn", onClick: () => oauth('github'), children: [_jsx(GitHubIcon, {}), " Continue with GitHub"] })] }), _jsx("div", { className: "slx-divider", children: "or" })] })), error && (_jsx("p", { className: "slx-error-text", role: "alert", children: error })), challengeToken ? (_jsxs("form", { onSubmit: onSubmit2FA, noValidate: false, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signin-2fa", children: "Authenticator code" }), _jsx("input", { id: "slx-signin-2fa", className: "slx-input", type: "text", inputMode: "numeric", autoComplete: "off", maxLength: 6, pattern: "[0-9]*", placeholder: "000000", value: tfaCode, onChange: (e) => setTfaCode(e.target.value.replace(/\D/g, '')), required: true }), _jsx("p", { className: "slx-hint", children: "Enter the 6-digit code from your authenticator app." })] }), _jsxs("button", { className: "slx-btn", type: "submit", disabled: busy, children: [busy && _jsx("span", { className: "slx-spinner", "aria-hidden": "true" }), busy ? 'Verifying…' : 'Verify code'] }), _jsx("button", { type: "button", className: "slx-link", style: { marginTop: 8 }, onClick: () => {
|
|
70
71
|
setChallengeToken(null);
|
|
71
72
|
setTfaCode('');
|
|
72
|
-
}, children: "\u2190 Back to sign in" })] })) : (_jsxs("form", { onSubmit: onSubmit, noValidate: false, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signin-email", children: username ? (_jsxs(_Fragment, { children: ["Username ", _jsx("span", { className: "slx-hint", children: "or email" })] })) : ('Email') }), _jsx("input", { id: "slx-signin-email", className: "slx-input", type: "text", autoComplete: "username", placeholder: "you@example.com or yourname", value: email, onChange: (e) => setEmail(e.target.value), required: true })] }), _jsxs("div", { className: "slx-field", children: [_jsxs("div", { className: "slx-row", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signin-password", children: "Password" }), onForgotPasswordClick && (_jsx("button", { type: "button", className: "slx-link slx-forgot", onClick: onForgotPasswordClick, children: "Forgot password?" }))] }), _jsx(
|
|
73
|
+
}, children: "\u2190 Back to sign in" })] })) : (_jsxs("form", { onSubmit: onSubmit, noValidate: false, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signin-email", children: username ? (_jsxs(_Fragment, { children: ["Username ", _jsx("span", { className: "slx-hint", children: "or email" })] })) : ('Email') }), _jsx("input", { id: "slx-signin-email", className: "slx-input", type: "text", autoComplete: "username", placeholder: "you@example.com or yourname", value: email, onChange: (e) => setEmail(e.target.value), required: true })] }), _jsxs("div", { className: "slx-field", children: [_jsxs("div", { className: "slx-row", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signin-password", children: "Password" }), onForgotPasswordClick && (_jsx("button", { type: "button", className: "slx-link slx-forgot", onClick: onForgotPasswordClick, children: "Forgot password?" }))] }), _jsx(PasswordField, { id: "slx-signin-password", value: password, onChange: setPassword, autoComplete: "current-password", placeholder: "\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022", required: true })] }), _jsxs("button", { className: "slx-btn", type: "submit", disabled: busy, children: [busy && _jsx("span", { className: "slx-spinner", "aria-hidden": "true" }), busy ? 'Signing in…' : 'Sign in'] })] })), onSignUpClick && (_jsxs("p", { className: "slx-footer", children: ["Don't have an account?", ' ', _jsx("button", { type: "button", className: "slx-link", onClick: onSignUpClick, children: "Sign up" })] }))] })] }));
|
|
73
74
|
}
|
|
74
75
|
//# sourceMappingURL=SignIn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.js","sourceRoot":"","sources":["../../../src/components/SignIn/SignIn.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAkB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SignIn.js","sourceRoot":"","sources":["../../../src/components/SignIn/SignIn.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAkB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAqBjD,2CAA2C;AAC3C,MAAM,UAAU,MAAM,CAAC,EACrB,MAAM,GAAG,IAAI,EACb,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,MAAM,GAAG,UAAU,EACnB,QAAQ,GAAG,KAAK,EAChB,UAAU,GAAG,sBAAsB,EACnC,aAAa,GAAG,6DAA6D,EAC7E,WAAW,GAAG,CAAC,8BAA8B,EAAE,uCAAuC,EAAE,4BAA4B,CAAC,GACzG;IACZ,YAAY,EAAE,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,OAAO,EAIjD,CAAC;IACF,MA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SAAS,EAAC,YAAY,uCACK,GAAG,EAC/B,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,aAAa,wBAExD,IACP,CACL,IACK,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../src/components/SignUp/SignUp.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../src/components/SignUp/SignUp.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oGAAoG;IACpG,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,2CAA2C;AAC3C,wBAAgB,MAAM,CAAC,EACrB,MAAa,EACb,SAAS,EACT,aAAa,EACb,MAAmB,EACnB,QAAQ,EAAE,YAAmB,EAC7B,UAAkC,EAClC,aAA4D,EAC5D,WAAqH,GACtH,EAAE,WAAW,+BAoNb"}
|
|
@@ -4,6 +4,7 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
4
4
|
import { GitHubIcon, GoogleIcon, KeyholeMark } from '../../icons';
|
|
5
5
|
import { useAuth } from '../../react/hooks/useAuth';
|
|
6
6
|
import { injectStyles } from '../../styles';
|
|
7
|
+
import { PasswordField } from '../PasswordField';
|
|
7
8
|
/** Email/password + OAuth sign-up card. */
|
|
8
9
|
export function SignUp({ social = true, onSuccess, onSignInClick, layout = 'centered', username: showUsername = true, brandTitle = 'Create your account', brandSubtitle = 'A minute to set up. Sign in forever after.', brandPoints = ['Email + OAuth out of the box', 'HttpOnly sessions, secured by default', 'Billing ready when you are'], }) {
|
|
9
10
|
injectStyles();
|
|
@@ -52,6 +53,6 @@ export function SignUp({ social = true, onSuccess, onSignInClick, layout = 'cent
|
|
|
52
53
|
const missingKey = !client.publishableKey ||
|
|
53
54
|
client.publishableKey === 'pk_test_missing' ||
|
|
54
55
|
client.publishableKey.includes('REPLACE');
|
|
55
|
-
return (_jsxs("div", { ref: cardRef, className: `slx-card${error ? ' slx-card-error' : ''}${layout === 'centered' ? '' : ` slx-layout-${layout}`}`, children: [layout === 'split' && (_jsxs("div", { className: "slx-split-brand", children: [_jsx("div", { className: "slx-split-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h2", { className: "slx-split-title", children: brandTitle }), _jsx("p", { className: "slx-split-sub", children: brandSubtitle }), _jsx("ul", { className: "slx-split-points", children: brandPoints.map((pt) => (_jsx("li", { children: pt }, pt))) })] })), _jsxs("div", { className: layout === 'split' ? 'slx-split-form' : 'slx-form-full', children: [missingKey && (_jsxs("p", { className: "slx-setup-note", children: [_jsx("strong", { children: "Setup:" }), " Add", ' ', _jsx("code", { children: "NEXT_PUBLIC_SLYXUP_PUBLISHABLE_KEY" }), " \u2014 run", ' ', _jsx("code", { children: "npx @slyxup/cli keys create" })] })), _jsx("div", { className: "slx-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h1", { className: "slx-title", children: "Create your account" }), _jsx("p", { className: "slx-subtitle", children: "A minute to set up. Sign in forever after." }), social && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "slx-social", children: [_jsxs("button", { type: "button", className: "slx-social-btn", onClick: () => oauth('google'), children: [_jsx(GoogleIcon, {}), " Continue with Google"] }), _jsxs("button", { type: "button", className: "slx-social-btn", onClick: () => oauth('github'), children: [_jsx(GitHubIcon, {}), " Continue with GitHub"] })] }), _jsx("div", { className: "slx-divider", children: "or" })] })), error && (_jsx("p", { className: "slx-error-text", role: "alert", children: error })), successEmail && (_jsxs("p", { className: "slx-success-text", "aria-live": "polite", style: { color: 'var(--slx-success)' }, children: ["Account created! We sent a verification link to", ' ', _jsx("strong", { children: successEmail }), ". Check your inbox to verify and sign in."] })), _jsxs("form", { onSubmit: onSubmit, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-name", children: "First name" }), _jsx("input", { id: "slx-signup-name", className: "slx-input", type: "text", autoComplete: "given-name", placeholder: "Ada", value: firstName, onChange: (e) => setFirstName(e.target.value) })] }), showUsername && (_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-username", children: "Username" }), _jsx("input", { id: "slx-signup-username", className: "slx-input", type: "text", autoComplete: "username", placeholder: "ada", value: username, onChange: (e) => setUsername(e.target.value) }), _jsx("p", { className: "slx-hint", children: "Optional \u2014 lets you sign in with a username instead of your email." })] })), _jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-email", children: "Email" }), _jsx("input", { id: "slx-signup-email", className: "slx-input", type: "email", autoComplete: "email", placeholder: "you@example.com", value: email, onChange: (e) => setEmail(e.target.value), required: true })] }), _jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-password", children: "Password" }), _jsx(
|
|
56
|
+
return (_jsxs("div", { ref: cardRef, className: `slx-card${error ? ' slx-card-error' : ''}${layout === 'centered' ? '' : ` slx-layout-${layout}`}`, children: [layout === 'split' && (_jsxs("div", { className: "slx-split-brand", children: [_jsx("div", { className: "slx-split-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h2", { className: "slx-split-title", children: brandTitle }), _jsx("p", { className: "slx-split-sub", children: brandSubtitle }), _jsx("ul", { className: "slx-split-points", children: brandPoints.map((pt) => (_jsx("li", { children: pt }, pt))) })] })), _jsxs("div", { className: layout === 'split' ? 'slx-split-form' : 'slx-form-full', children: [missingKey && (_jsxs("p", { className: "slx-setup-note", children: [_jsx("strong", { children: "Setup:" }), " Add", ' ', _jsx("code", { children: "NEXT_PUBLIC_SLYXUP_PUBLISHABLE_KEY" }), " \u2014 run", ' ', _jsx("code", { children: "npx @slyxup/cli keys create" })] })), _jsx("div", { className: "slx-mark", children: _jsx(KeyholeMark, {}) }), _jsx("h1", { className: "slx-title", children: "Create your account" }), _jsx("p", { className: "slx-subtitle", children: "A minute to set up. Sign in forever after." }), social && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "slx-social", children: [_jsxs("button", { type: "button", className: "slx-social-btn", onClick: () => oauth('google'), children: [_jsx(GoogleIcon, {}), " Continue with Google"] }), _jsxs("button", { type: "button", className: "slx-social-btn", onClick: () => oauth('github'), children: [_jsx(GitHubIcon, {}), " Continue with GitHub"] })] }), _jsx("div", { className: "slx-divider", children: "or" })] })), error && (_jsx("p", { className: "slx-error-text", role: "alert", children: error })), successEmail && (_jsxs("p", { className: "slx-success-text", "aria-live": "polite", style: { color: 'var(--slx-success)' }, children: ["Account created! We sent a verification link to", ' ', _jsx("strong", { children: successEmail }), ". Check your inbox to verify and sign in."] })), _jsxs("form", { onSubmit: onSubmit, children: [_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-name", children: "First name" }), _jsx("input", { id: "slx-signup-name", className: "slx-input", type: "text", autoComplete: "given-name", placeholder: "Ada", value: firstName, onChange: (e) => setFirstName(e.target.value) })] }), showUsername && (_jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-username", children: "Username" }), _jsx("input", { id: "slx-signup-username", className: "slx-input", type: "text", autoComplete: "username", placeholder: "ada", value: username, onChange: (e) => setUsername(e.target.value) }), _jsx("p", { className: "slx-hint", children: "Optional \u2014 lets you sign in with a username instead of your email." })] })), _jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-email", children: "Email" }), _jsx("input", { id: "slx-signup-email", className: "slx-input", type: "email", autoComplete: "email", placeholder: "you@example.com", value: email, onChange: (e) => setEmail(e.target.value), required: true })] }), _jsxs("div", { className: "slx-field", children: [_jsx("label", { className: "slx-label", htmlFor: "slx-signup-password", children: "Password" }), _jsx(PasswordField, { id: "slx-signup-password", value: password, onChange: setPassword, autoComplete: "new-password", placeholder: "At least 8 characters", required: true, minLength: 8 }), _jsx("p", { className: "slx-hint", children: "Use 8+ characters with a mix of letters and numbers." })] }), _jsxs("button", { className: "slx-btn", type: "submit", disabled: busy, children: [busy && _jsx("span", { className: "slx-spinner", "aria-hidden": "true" }), busy ? 'Creating account…' : 'Create account'] })] }), onSignInClick && (_jsxs("p", { className: "slx-footer", children: ["Already have an account?", ' ', _jsx("button", { type: "button", className: "slx-link", onClick: onSignInClick, children: "Sign in" })] }))] })] }));
|
|
56
57
|
}
|
|
57
58
|
//# sourceMappingURL=SignUp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUp.js","sourceRoot":"","sources":["../../../src/components/SignUp/SignUp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAkB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SignUp.js","sourceRoot":"","sources":["../../../src/components/SignUp/SignUp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAkB,SAAS,EAA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GoogleIcon(): import("react").JSX.Element;
|
|
4
4
|
export declare function GitHubIcon(): import("react").JSX.Element;
|
|
5
5
|
export declare function CheckIcon(): import("react").JSX.Element;
|
|
6
|
+
export declare function EyeIcon(): import("react").JSX.Element;
|
|
7
|
+
export declare function EyeOffIcon(): import("react").JSX.Element;
|
|
6
8
|
//# sourceMappingURL=icons.d.ts.map
|
package/dist/icons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA,2CAA2C;AAE3C,wBAAgB,WAAW,gCAa1B;AAED,wBAAgB,UAAU,gCAqBzB;AAED,wBAAgB,UAAU,gCAYzB;AAED,wBAAgB,SAAS,gCAgBxB"}
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":"AAAA,2CAA2C;AAE3C,wBAAgB,WAAW,gCAa1B;AAED,wBAAgB,UAAU,gCAqBzB;AAED,wBAAgB,UAAU,gCAYzB;AAED,wBAAgB,SAAS,gCAgBxB;AAED,wBAAgB,OAAO,gCAiBtB;AAED,wBAAgB,UAAU,gCAmBzB"}
|
package/dist/icons.js
CHANGED
|
@@ -12,4 +12,10 @@ export function GitHubIcon() {
|
|
|
12
12
|
export function CheckIcon() {
|
|
13
13
|
return (_jsx("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.4", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: "M20 6L9 17l-5-5" }) }));
|
|
14
14
|
}
|
|
15
|
+
export function EyeIcon() {
|
|
16
|
+
return (_jsxs("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z" }), _jsx("circle", { cx: "12", cy: "12", r: "3" })] }));
|
|
17
|
+
}
|
|
18
|
+
export function EyeOffIcon() {
|
|
19
|
+
return (_jsxs("svg", { width: "17", height: "17", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { d: "M17.94 17.94A10.6 10.6 0 0 1 12 19c-6.5 0-10-7-10-7a17.6 17.6 0 0 1 4.06-4.94" }), _jsx("path", { d: "M9.9 4.24A10.6 10.6 0 0 1 12 5c6.5 0 10 7 10 7a17.7 17.7 0 0 1-2.16 3.19" }), _jsx("path", { d: "M14.12 14.12A3 3 0 1 1 9.88 9.88" }), _jsx("path", { d: "M2 2l20 20" })] }));
|
|
20
|
+
}
|
|
15
21
|
//# sourceMappingURL=icons.js.map
|
package/dist/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../src/icons.tsx"],"names":[],"mappings":";AAAA,2CAA2C;AAE3C,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,iBACC,MAAM,aAElB,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,KAAK,EAAC,IAAI,EAAC,OAAO,GAAG,EAC9C,eAAM,CAAC,EAAC,gCAAgC,EAAC,IAAI,EAAC,OAAO,GAAG,IACpD,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,eAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,iBAAa,MAAM,aAChE,eACE,IAAI,EAAC,SAAS,EACd,CAAC,EAAC,8GAA8G,GAChH,EACF,eACE,IAAI,EAAC,SAAS,EACd,CAAC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B,OAAO,CACL,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,aAElB,eAAM,CAAC,EAAC,+EAA+E,GAAG,EAC1F,eAAM,CAAC,EAAC,0EAA0E,GAAG,EACrF,eAAM,CAAC,EAAC,kCAAkC,GAAG,EAC7C,eAAM,CAAC,EAAC,YAAY,GAAG,IACnB,CACP,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { injectStyles, CSS } from './styles';
|
|
2
|
-
export { applyTheme, getTheme, ACCENTS, FONTS, type SlyxUpTheme, type ThemeMode, type AccentName, type AccentDef, type FontDef, type CustomFont, type AuthLayout, type PrimaryStyle, } from './theme';
|
|
3
|
-
export { KeyholeMark, GoogleIcon, GitHubIcon, CheckIcon } from './icons';
|
|
2
|
+
export { applyTheme, getTheme, ACCENTS, FONTS, type SlyxUpTheme, type ThemeMode, type AccentName, type AccentDef, type FontDef, type CustomFont, type AuthLayout, type PrimaryStyle, type Density, } from './theme';
|
|
3
|
+
export { KeyholeMark, GoogleIcon, GitHubIcon, CheckIcon, EyeIcon, EyeOffIcon } from './icons';
|
|
4
4
|
export { SlyxUpProvider, type SlyxUpProviderProps, } from './react/provider/SlyxUpProvider';
|
|
5
5
|
export { AuthContext, useAuthContext, type AuthContextValue, } from './react/context/auth-context';
|
|
6
6
|
export { useAuth } from './react/hooks/useAuth';
|
|
@@ -11,6 +11,7 @@ export { useConnectedAccounts } from './react/hooks/useConnectedAccounts';
|
|
|
11
11
|
export { useTheme, type ThemePreference } from './react/hooks/useTheme';
|
|
12
12
|
export { useBilling, usePlans, useSubscription, useInvoices, useCheckout, } from './react/hooks/useBilling';
|
|
13
13
|
export { SignIn, type SignInProps } from './components/SignIn/SignIn';
|
|
14
|
+
export { PasswordField, type PasswordFieldProps } from './components/PasswordField';
|
|
14
15
|
export { SignUp, type SignUpProps } from './components/SignUp/SignUp';
|
|
15
16
|
export { UserButton, type UserButtonProps, } from './components/UserButton/UserButton';
|
|
16
17
|
export { UserProfile, type UserProfileProps, } from './components/UserProfile/UserProfile';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,OAAO,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE9F,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,WAAW,EACX,cAAc,EACd,KAAK,gBAAgB,GACtB,MAAM,8BAA8B,CAAC;AACtC,O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AAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAK9D;;;GAGG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAKnC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { injectStyles, CSS } from './styles';
|
|
2
2
|
export { applyTheme, getTheme, ACCENTS, FONTS, } from './theme';
|
|
3
|
-
export { KeyholeMark, GoogleIcon, GitHubIcon, CheckIcon } from './icons';
|
|
3
|
+
export { KeyholeMark, GoogleIcon, GitHubIcon, CheckIcon, EyeIcon, EyeOffIcon } from './icons';
|
|
4
4
|
// All React lives here now (2-SDK model) — provider, context, hooks.
|
|
5
5
|
export { SlyxUpProvider, } from './react/provider/SlyxUpProvider';
|
|
6
6
|
export { AuthContext, useAuthContext, } from './react/context/auth-context';
|
|
@@ -12,6 +12,7 @@ export { useConnectedAccounts } from './react/hooks/useConnectedAccounts';
|
|
|
12
12
|
export { useTheme } from './react/hooks/useTheme';
|
|
13
13
|
export { useBilling, usePlans, useSubscription, useInvoices, useCheckout, } from './react/hooks/useBilling';
|
|
14
14
|
export { SignIn } from './components/SignIn/SignIn';
|
|
15
|
+
export { PasswordField } from './components/PasswordField';
|
|
15
16
|
export { SignUp } from './components/SignUp/SignUp';
|
|
16
17
|
export { UserButton, } from './components/UserButton/UserButton';
|
|
17
18
|
export { UserProfile, } from './components/UserProfile/UserProfile';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,UAAU,EACV,QAAQ,EACR,OAAO,EACP,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,GAAG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MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,YAAY,GAEb,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,UAAU,GAEX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;GAGG;AACH,MAAM,UAAU,YAAY;IAC1B,SAAS,CAAC,GAAG,EAAE;QACb,YAAY,EAAE,CAAC;IACjB,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/styles.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* CSS variables on :root or .slyxup-scope.
|
|
5
5
|
*/
|
|
6
6
|
export declare const FONT_LINK = "";
|
|
7
|
-
export declare const CSS = "\n.slyxup-root {\n /* \u2500\u2500 Tokens \u2500\u2500 */\n --slx-accent: #5b5bd6;\n --slx-accent-hover: #4c4cc4;\n --slx-accent-soft: rgba(91, 91, 214, 0.12);\n --slx-accent-2: #8b5cf6;\n --slx-bg: #ffffff;\n --slx-bg-subtle: #f7f7fb;\n --slx-bg-page: #e9eaf6;\n --slx-ink: #16161d;\n --slx-ink-strong: #0c0c12;\n --slx-muted: #6f6f7b;\n --slx-border: #e3e3ee;\n --slx-border-strong: #d3d3e2;\n --slx-danger: #d64550;\n --slx-success: #1f9d55;\n --slx-radius-sm: 8px;\n --slx-radius: 10px;\n --slx-radius-lg: 14px;\n --slx-font: inherit;\n --slx-display: inherit;\n --slx-mono: ui-monospace, SFMono-Regular, Menlo, monospace;\n --slx-shadow-card:\n 0 1px 2px rgba(18,18,28,.05),\n 0 8px 24px -6px rgba(18,18,28,.09),\n 0 24px 64px -16px rgba(18,18,28,.13);\n --slx-shadow-pop:\n 0 2px 6px rgba(18,18,28,.08),\n 0 16px 48px -12px rgba(18,18,28,.18);\n\n font-family: var(--slx-font);\n color: var(--slx-ink);\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"cv11\", \"ss01\";\n}\n@media (prefers-color-scheme: dark) {\n .slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']):not([data-slyxup-theme='light']) {\n --slx-accent: #8484f2;\n --slx-accent-hover: #9696f5;\n --slx-accent-soft: rgba(132, 132, 242, 0.16);\n --slx-bg: #17171f;\n --slx-bg-subtle: #1e1e28;\n --slx-bg-page: #101016;\n --slx-ink: #f0f0f4;\n --slx-ink-strong: #ffffff;\n --slx-muted: #9a9aa6;\n --slx-border: #292935;\n --slx-border-strong: #343442;\n --slx-danger: #f0737d;\n --slx-success: #4ade80;\n --slx-shadow-card:\n 0 1px 2px rgba(0,0,0,.25),\n 0 12px 32px -8px rgba(0,0,0,.5),\n 0 32px 72px -20px rgba(0,0,0,.55);\n --slx-shadow-pop:\n 0 4px 12px rgba(0,0,0,.4),\n 0 24px 56px -12px rgba(0,0,0,.6);\n }\n}\n\n@keyframes slx-shake {\n 10%, 90% { transform: translateX(-1px); }\n 20%, 80% { transform: translateX(2px); }\n 30%, 50%, 70% { transform: translateX(-4px); }\n 40%, 60% { transform: translateX(4px); }\n}\n@keyframes slx-spin { to { transform: rotate(360deg); } }\n@keyframes slx-rise {\n from { opacity: 0; transform: translateY(8px) scale(.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n}\n@keyframes slx-pop {\n 0% { transform: scale(.5); opacity: 0; }\n 60% { transform: scale(1.08); opacity: 1; }\n 100% { transform: scale(1); }\n}\n@media (prefers-reduced-motion: reduce) {\n .slyxup-root * { animation: none !important; transition: none !important; }\n}\n\n/* \u2500\u2500 Card \u2500\u2500 */\n.slx-card {\n width: 100%;\n max-width: 400px;\n background: var(--slx-bg);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius-lg);\n padding: 34px 34px 30px;\n box-shadow: var(--slx-shadow-card);\n box-sizing: border-box;\n animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-card,\n.slx-card { color: var(--slx-ink); }\n.slx-card-error { animation: slx-shake .45s cubic-bezier(.36,.07,.19,.97) both; }\n\n/* \u2500\u2500 Header / keyhole mark \u2500\u2500 */\n.slx-mark {\n width: 46px; height: 46px; border-radius: 13px;\n display: flex; align-items: center; justify-content: center;\n background: linear-gradient(140deg, var(--slx-accent) 0%, var(--slx-accent-2) 100%);\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,.28),\n 0 6px 16px -6px rgba(91,91,214,.55);\n margin-bottom: 20px;\n}\n.slx-mark svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }\n.slx-title {\n font-family: var(--slx-display);\n font-size: 21px; font-weight: 650; letter-spacing: -0.022em;\n color: var(--slx-ink-strong);\n margin: 0 0 6px;\n}\n.slx-subtitle { font-size: 13.5px; color: var(--slx-muted); margin: 0 0 24px; line-height: 1.55; }\n\n/* \u2500\u2500 Fields \u2500\u2500 */\n.slx-field { margin-bottom: 15px; }\n.slx-row {\n display: flex; align-items: baseline; justify-content: space-between;\n margin-bottom: 6px;\n}\n.slx-label {\n display: inline-block;\n font-size: 12.5px; font-weight: 550; letter-spacing: 0.01em;\n color: var(--slx-ink);\n}\n.slx-input {\n width: 100%; box-sizing: border-box;\n font: inherit; font-size: 14px; line-height: 1.4; color: var(--slx-ink);\n background: var(--slx-bg-subtle);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 10px 13px;\n outline: none;\n transition: border-color .15s, box-shadow .15s, background .15s;\n}\n.slx-input::placeholder { color: var(--slx-muted); opacity: .7; }\n.slx-input:hover { border-color: var(--slx-border-strong); }\n.slx-input:focus-visible {\n background: var(--slx-bg);\n border-color: var(--slx-accent);\n box-shadow: 0 0 0 3.5px var(--slx-accent-soft);\n}\n.slx-hint { font-size: 12px; color: var(--slx-muted); margin-top: 5px; }\n.slx-error-text {\n font-size: 13px; color: var(--slx-danger);\n background: color-mix(in srgb, var(--slx-danger) 8%, transparent);\n border: 1px solid color-mix(in srgb, var(--slx-danger) 26%, transparent);\n border-left: 3px solid var(--slx-danger);\n border-radius: var(--slx-radius-sm);\n padding: 10px 12px; margin: 0 0 16px; line-height: 1.45;\n}\n.slx-setup-note {\n font-size: 12px; line-height: 1.45;\n color: #7a5c00;\n background: #fff7dc;\n border: 1px solid #f3e3a0;\n border-radius: var(--slx-radius-sm);\n padding: 9px 11px; margin: 0 0 16px;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-setup-note {\n color: #f5d878; background: rgba(250,204,21,.07); border-color: rgba(250,204,21,.25);\n}\n.slx-setup-note code {\n font-family: var(--slx-mono); font-size: 11px;\n background: rgba(0,0,0,.05); border-radius: 4px; padding: 1px 4px;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-setup-note code { background: rgba(255,255,255,.08); }\n\n/* \u2500\u2500 Primary button \u2500\u2500 */\n.slx-btn {\n width: 100%; box-sizing: border-box;\n font-family: var(--slx-font); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;\n color: #fff; background: linear-gradient(180deg, #23232e 0%, #0a0a0f 100%);\n border: 1px solid #0a0a0f; border-radius: var(--slx-radius);\n padding: 11px 14px; cursor: pointer;\n box-shadow: 0 1px 2px rgba(10,10,15,.35), inset 0 1px 0 rgba(255,255,255,.08);\n display: inline-flex; align-items: center; justify-content: center; gap: 8px;\n transition: filter .15s, transform .06s, box-shadow .15s;\n}\n.slx-btn:hover { filter: brightness(1.22); }\n.slx-btn:active { transform: scale(.985); filter: brightness(.92); }\n.slx-btn:focus-visible { outline: none; box-shadow: 0 0 0 3.5px rgba(10,10,15,.16), 0 0 0 1.5px #0a0a0f; }\n.slx-btn[disabled] { opacity: .55; cursor: not-allowed; }\n@media (prefers-color-scheme: dark) {\n .slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-btn {\n background: linear-gradient(180deg, #ffffff 0%, #ececf1 100%);\n color: #0a0a0f; border-color: #ececf1;\n box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.9);\n }\n .slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-btn:hover { filter: brightness(.94); }\n}\n.slx-spinner {\n width: 15px; height: 15px; flex: none;\n border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;\n border-radius: 50%; animation: slx-spin .7s linear infinite;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-spinner { border-color: rgba(10,10,15,.25); border-top-color: #0a0a0f; }\n\n/* \u2500\u2500 Social \u2500\u2500 */\n.slx-social { display: grid; gap: 9px; margin-bottom: 4px; }\n.slx-social-btn {\n width: 100%; box-sizing: border-box;\n font: inherit; font-size: 13.5px; font-weight: 550;\n color: var(--slx-ink); background: var(--slx-bg);\n border: 1px solid var(--slx-border-strong); border-radius: var(--slx-radius);\n padding: 10px 14px; cursor: pointer;\n display: inline-flex; align-items: center; justify-content: center; gap: 10px;\n transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;\n}\n.slx-social-btn:hover {\n background: var(--slx-bg-subtle);\n border-color: var(--slx-border-strong);\n box-shadow: 0 2px 8px -2px rgba(18,18,28,.12);\n}\n.slx-social-btn:active { transform: scale(.985); }\n.slx-social-btn:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--slx-accent-soft); }\n.slx-social-btn svg { flex: none; }\n\n/* \u2500\u2500 Divider & footer \u2500\u2500 */\n.slx-divider {\n display: flex; align-items: center; gap: 14px;\n color: var(--slx-muted); font-size: 11.5px;\n letter-spacing: .04em; text-transform: uppercase;\n margin: 18px 0;\n}\n.slx-divider::before, .slx-divider::after {\n content: \"\"; height: 1px; flex: 1;\n background: linear-gradient(90deg, transparent, var(--slx-border-strong));\n}\n.slx-divider::after { background: linear-gradient(90deg, var(--slx-border-strong), transparent); }\n.slx-footer { font-size: 13px; color: var(--slx-muted); margin-top: 22px; text-align: center; }\n.slx-link {\n color: var(--slx-accent); font-weight: 600; text-decoration: none; cursor: pointer;\n background: none; border: none; font: inherit; font-size: inherit;\n padding: 0; margin: 0;\n}\n.slx-link:hover { text-decoration: underline; color: var(--slx-accent-hover); }\n.slx-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); border-radius: 4px; }\n.slx-forgot { font-size: 12px; }\n\n/* \u2500\u2500 Success state \u2500\u2500 */\n.slx-success-icon {\n width: 48px; height: 48px; border-radius: 50%;\n display: flex; align-items: center; justify-content: center;\n background: color-mix(in srgb, var(--slx-success) 12%, transparent);\n color: var(--slx-success); margin: 4px auto 18px;\n animation: slx-pop .45s cubic-bezier(.22,.9,.32,1) both;\n box-shadow: 0 0 0 6px color-mix(in srgb, var(--slx-success) 6%, transparent);\n}\n\n/* \u2500\u2500 User button \u2500\u2500 */\n.slx-userbtn-wrap { position: relative; display: inline-block; }\n.slx-userbtn-avatar {\n width: 36px; height: 36px; border-radius: 50%;\n border: 1px solid var(--slx-border); cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n font-size: 14px; font-weight: 650; color: #fff;\n background: linear-gradient(135deg, var(--slx-accent), var(--slx-accent-2));\n padding: 0; overflow: hidden;\n transition: box-shadow .15s, transform .06s;\n}\n.slx-userbtn-avatar:hover { box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n.slx-userbtn-avatar:active { transform: scale(.96); }\n.slx-userbtn-avatar img { width: 100%; height: 100%; object-fit: cover; }\n.slx-userbtn-avatar:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--slx-accent-soft); }\n.slx-menu {\n position: absolute; right: 0; top: calc(100% + 8px);\n min-width: 240px;\n background: var(--slx-bg);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius-lg);\n box-shadow: var(--slx-shadow-pop);\n overflow: hidden; z-index: 1000;\n animation: slx-rise .22s cubic-bezier(.22,.9,.32,1) both;\n}\n.slx-menu-header { padding: 14px 16px; border-bottom: 1px solid var(--slx-border); background: var(--slx-bg-subtle); }\n.slx-menu-name { font-size: 14px; font-weight: 600; margin: 0 0 2px; color: var(--slx-ink-strong); }\n.slx-menu-email { font-size: 12.5px; color: var(--slx-muted); margin: 0; word-break: break-all; }\n.slx-menu-item {\n display: block; width: 100%; text-align: left; box-sizing: border-box;\n font: inherit; font-size: 13.5px; color: var(--slx-ink);\n background: none; border: none; padding: 10px 16px; cursor: pointer;\n transition: background .12s;\n}\n.slx-menu-item:hover { background: color-mix(in srgb, var(--slx-ink) 4%, transparent); }\n.slx-menu-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--slx-accent-soft); }\n.slx-menu-item-danger { color: var(--slx-danger); }\n.slx-menu-item-danger:hover { background: color-mix(in srgb, var(--slx-danger) 7%, transparent); }\n\n/* \u2500\u2500 Badge (verified etc.) \u2500\u2500 */\n.slx-badge {\n display: inline-flex; align-items: center; gap: 5px;\n font-size: 11px; font-weight: 600; letter-spacing: .02em;\n padding: 2.5px 9px; border-radius: 999px;\n color: var(--slx-success);\n background: color-mix(in srgb, var(--slx-success) 9%, transparent);\n border: 1px solid color-mix(in srgb, var(--slx-success) 30%, transparent);\n}\n.slx-badge-ok { color: var(--slx-success); background: color-mix(in srgb, var(--slx-success) 9%, transparent); border-color: color-mix(in srgb, var(--slx-success) 30%, transparent); }\n.slx-badge-warn { color: #b45309; background: color-mix(in srgb, #f59e0b 10%, transparent); border-color: color-mix(in srgb, #f59e0b 30%, transparent); }\n.slx-badge-accent { color: var(--slx-accent); background: var(--slx-accent-soft); border-color: color-mix(in srgb, var(--slx-accent) 30%, transparent); }\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-badge-warn { color: #fbbf24; }\n\n/* \u2500\u2500 Modal overlay \u2500\u2500 */\n.slx-overlay {\n position: fixed; inset: 0; z-index: 9999;\n display: flex; align-items: center; justify-content: center;\n background: rgba(12, 12, 18, 0.55);\n backdrop-filter: blur(6px);\n animation: slx-rise .2s cubic-bezier(.22,.9,.32,1) both;\n padding: 16px;\n overflow-y: auto;\n box-sizing: border-box;\n}\n\n/* \u2500\u2500 UserProfile \u2500\u2500 */\n.slx-profile-modal {\n display: flex; flex-direction: column;\n width: 720px; max-width: calc(100vw - 32px);\n max-height: min(85vh, 720px);\n background: var(--slx-bg);\n border-radius: var(--slx-radius-lg);\n box-shadow: var(--slx-shadow-pop);\n overflow: hidden;\n animation: slx-rise .28s cubic-bezier(.22,.9,.32,1) both;\n box-sizing: border-box;\n}\n.slx-profile-head {\n display: flex; align-items: center; justify-content: space-between;\n padding: 22px 28px 18px;\n border-bottom: 1px solid var(--slx-border);\n flex-shrink: 0;\n background: var(--slx-bg);\n position: relative;\n z-index: 1;\n}\n.slx-profile-title {\n font-family: var(--slx-display);\n font-size: 18px; font-weight: 650; letter-spacing: -0.02em;\n color: var(--slx-ink-strong);\n margin: 0;\n}\n.slx-profile-close {\n width: 32px; height: 32px; border-radius: 8px;\n display: flex; align-items: center; justify-content: center;\n background: none; border: 1px solid var(--slx-border);\n color: var(--slx-muted); cursor: pointer; font-size: 16px;\n transition: background .12s, color .12s, border-color .12s;\n position: relative;\n z-index: 2;\n pointer-events: auto;\n flex-shrink: 0;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n}\n.slx-profile-close:hover { background: var(--slx-bg-subtle); color: var(--slx-ink); border-color: var(--slx-border-strong); }\n.slx-profile-close:active { transform: scale(.95); }\n.slx-profile-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n\n.slx-profile-body {\n display: flex; flex: 1; min-height: 380px;\n overflow: hidden;\n min-width: 0;\n}\n\n/* \u2500\u2500 Left nav \u2500\u2500 */\n.slx-profile-nav {\n width: 200px; flex-shrink: 0;\n display: flex; flex-direction: column; gap: 2px;\n padding: 12px 8px;\n border-right: 1px solid var(--slx-border);\n background: var(--slx-bg-subtle);\n}\n.slx-profile-nav-btn {\n display: flex; align-items: center; gap: 9px;\n font: inherit; font-size: 13.5px; font-weight: 500;\n color: var(--slx-muted); background: none; border: none;\n border-radius: var(--slx-radius-sm);\n padding: 9px 12px; cursor: pointer; text-align: left;\n transition: background .12s, color .12s;\n}\n.slx-profile-nav-btn:hover { background: color-mix(in srgb, var(--slx-ink) 5%, transparent); color: var(--slx-ink); }\n.slx-profile-nav-btn.on { background: var(--slx-bg); color: var(--slx-ink-strong); font-weight: 600; box-shadow: 0 1px 3px rgba(18,18,28,.06); }\n.slx-profile-nav-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--slx-accent-soft); }\n\n/* \u2500\u2500 Content area \u2500\u2500 */\n.slx-profile-content {\n flex: 1; overflow-y: auto; padding: 24px 28px 28px;\n}\n.slx-profile-sec { margin-bottom: 28px; }\n.slx-profile-sec:last-child { margin-bottom: 0; }\n.slx-sec-title {\n font-family: var(--slx-display);\n font-size: 14px; font-weight: 600; letter-spacing: -0.01em;\n color: var(--slx-ink-strong);\n margin: 0 0 14px; padding-bottom: 10px;\n border-bottom: 1px solid var(--slx-border);\n}\n\n/* \u2500\u2500 Avatar \u2500\u2500 */\n.slx-avatar-row {\n display: flex; align-items: center; gap: 16px;\n margin-bottom: 20px;\n}\n.slx-avatar-lg {\n width: 64px; height: 64px; border-radius: 50%;\n flex-shrink: 0;\n display: flex; align-items: center; justify-content: center;\n font-size: 24px; font-weight: 700; color: #fff;\n background: linear-gradient(135deg, var(--slx-accent), var(--slx-accent-2));\n overflow: hidden;\n box-shadow: 0 2px 8px rgba(91,91,214,.3);\n}\n.slx-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }\n\n/* \u2500\u2500 Row (email etc.) \u2500\u2500 */\n.slx-row-value { font-size: 14px; font-weight: 500; color: var(--slx-ink-strong); margin: 0; }\n.slx-row-label { font-size: 12px; color: var(--slx-muted); margin: 2px 0 0; }\n\n/* \u2500\u2500 Sessions \u2500\u2500 */\n.slx-session {\n display: flex; align-items: center; justify-content: space-between;\n padding: 12px 14px; border-radius: var(--slx-radius-sm);\n border: 1px solid var(--slx-border);\n background: var(--slx-bg-subtle);\n margin-bottom: 8px;\n transition: border-color .12s;\n}\n.slx-session:hover { border-color: var(--slx-border-strong); }\n.slx-session-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }\n.slx-session-device { font-size: 13.5px; font-weight: 550; color: var(--slx-ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.slx-session-sub { font-size: 12px; color: var(--slx-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n\n/* \u2500\u2500 Pagination \u2500\u2500 */\n.slx-pagination {\n display: flex; align-items: center; justify-content: center; gap: 10px;\n margin-top: 14px; padding-top: 14px;\n border-top: 1px solid var(--slx-border);\n}\n.slx-pagination-info { font-size: 12.5px; color: var(--slx-muted); white-space: nowrap; }\n\n/* \u2500\u2500 Danger zone \u2500\u2500 */\n.slx-danger-zone {\n border: 1px solid color-mix(in srgb, var(--slx-danger) 30%, transparent);\n border-radius: var(--slx-radius);\n padding: 18px 20px;\n background: color-mix(in srgb, var(--slx-danger) 4%, transparent);\n}\n.slx-danger-title {\n font-size: 14px; font-weight: 650; color: var(--slx-danger);\n margin: 0 0 6px;\n}\n.slx-danger-desc {\n font-size: 13px; color: var(--slx-muted); line-height: 1.5;\n margin: 0 0 16px;\n}\n.slx-btn-danger-outline {\n font: inherit; font-size: 13px; font-weight: 550;\n color: var(--slx-danger); background: none;\n border: 1px solid color-mix(in srgb, var(--slx-danger) 35%, transparent);\n border-radius: var(--slx-radius-sm);\n padding: 7px 14px; cursor: pointer;\n transition: background .12s, border-color .12s;\n}\n.slx-btn-danger-outline:hover { background: color-mix(in srgb, var(--slx-danger) 8%, transparent); border-color: var(--slx-danger); }\n.slx-btn-danger-outline:active { transform: scale(.98); }\n.slx-btn-danger-outline:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--slx-danger) 20%, transparent); }\n.slx-btn-danger-outline[disabled] { opacity: .5; cursor: not-allowed; }\n\n/* \u2500\u2500 Billing (inside UserProfile) \u2500\u2500 */\n.slx-billing-card {\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 18px 20px;\n background: var(--slx-bg-subtle);\n margin-bottom: 16px;\n}\n.slx-billing-plan { font-size: 15px; font-weight: 650; color: var(--slx-ink-strong); margin: 0 0 4px; }\n.slx-billing-detail { font-size: 13px; color: var(--slx-muted); margin: 2px 0; }\n.slx-billing-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }\n.slx-billing-status-active { color: var(--slx-success); }\n.slx-billing-status-trialing { color: var(--slx-accent); }\n.slx-billing-status-canceled { color: var(--slx-danger); }\n.slx-invoice-row {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 0; border-bottom: 1px solid var(--slx-border);\n font-size: 13px;\n gap: 8px;\n flex-wrap: wrap;\n}\n.slx-invoice-row:last-child { border-bottom: none; }\n.slx-invoice-date { color: var(--slx-muted); }\n.slx-invoice-amount { font-weight: 600; color: var(--slx-ink-strong); }\n\n/* \u2500\u2500 Billing plans grid (responsive) \u2500\u2500 */\n.slx-billing-plans {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));\n gap: 12px;\n margin-top: 12px;\n}\n.slx-plan-card {\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 16px;\n background: var(--slx-bg);\n display: flex;\n flex-direction: column;\n position: relative;\n transition: border-color .15s, box-shadow .15s;\n}\n.slx-plan-card:hover { border-color: var(--slx-border-strong); box-shadow: 0 2px 8px rgba(0,0,0,.06); }\n.slx-plan-card.popular { border-color: var(--slx-accent); box-shadow: 0 0 0 1px var(--slx-accent-soft); }\n.slx-plan-badge {\n position: absolute; top: -10px; right: 12px;\n font-size: 10px; font-weight: 700; letter-spacing: .05em;\n color: #fff; background: linear-gradient(135deg, var(--slx-accent), var(--slx-accent-2));\n padding: 3px 8px; border-radius: 999px;\n}\n.slx-plan-name { font-size: 14px; font-weight: 600; color: var(--slx-ink-strong); margin: 0 0 6px; }\n.slx-plan-price { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--slx-ink-strong); }\n.slx-plan-interval { font-size: 13px; color: var(--slx-muted); font-weight: 400; }\n.slx-plan-features { list-style: none; margin: 12px 0 16px; padding: 0; flex: 1; }\n.slx-plan-features li { font-size: 13px; color: var(--slx-ink); padding: 4px 0 4px 20px; position: relative; line-height: 1.45; }\n.slx-plan-features li::before { content: \"\u2713\"; position: absolute; left: 0; color: var(--slx-success); font-weight: 700; font-size: 12px; }\n.slx-plan-cta { width: 100%; margin-top: auto; }\n.slx-billing-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }\n.slx-btn-secondary {\n font: inherit; font-size: 13px; font-weight: 550;\n color: var(--slx-ink); background: var(--slx-bg);\n border: 1px solid var(--slx-border-strong); border-radius: var(--slx-radius-sm);\n padding: 8px 14px; cursor: pointer;\n transition: background .12s, border-color .12s;\n display: inline-flex; align-items: center; justify-content: center; gap: 6px;\n}\n.slx-btn-secondary:hover { background: var(--slx-bg-subtle); }\n.slx-btn-secondary:active { transform: scale(.98); }\n.slx-btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n.slx-btn-secondary[disabled] { opacity: .55; cursor: not-allowed; }\n.slx-billing-empty { text-align: center; padding: 24px 16px; color: var(--slx-muted); font-size: 13px; line-height: 1.5; }\n\n/* \u2500\u2500 Mobile friendliness for UserProfile \u2500\u2500 */\n@media (max-width: 680px) {\n .slx-overlay { align-items: flex-start; padding: 12px; }\n .slx-profile-modal {\n width: 100%; max-width: 100%;\n max-height: calc(100vh - 24px);\n max-height: calc(100dvh - 24px);\n margin: auto;\n border-radius: var(--slx-radius-lg);\n }\n .slx-profile-body { flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; }\n .slx-profile-nav {\n width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden;\n border-right: none; border-bottom: 1px solid var(--slx-border);\n padding: 8px; gap: 6px; scrollbar-width: none; -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n flex-shrink: 0;\n }\n .slx-profile-nav::-webkit-scrollbar { display: none; }\n .slx-profile-nav-btn { white-space: nowrap; flex-shrink: 0; font-size: 13px; padding: 8px 12px; }\n .slx-profile-content { padding: 16px; overflow: visible; }\n .slx-profile-head { padding: 16px 16px 12px; }\n .slx-profile-close { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 18px; border-radius: 10px; }\n .slx-avatar-row { gap: 12px; flex-wrap: wrap; }\n .slx-billing-plans { grid-template-columns: 1fr; }\n .slx-session { flex-direction: column; align-items: flex-start; gap: 10px; }\n .slx-session .slx-btn-danger-outline { align-self: stretch; text-align: center; justify-content: center; }\n .slx-pagination { flex-wrap: wrap; gap: 6px; }\n .slx-pagination .slx-btn-secondary { font-size: 12px; padding: 4px 10px; }\n .slx-invoice-row { flex-wrap: wrap; gap: 6px; }\n}\n/* \u2500\u2500 Explicit theme mode (wins over OS preference) \u2500\u2500 */\n.slyxup-root[data-slyxup-theme='dark'] {\n --slx-accent: #8484f2;\n --slx-accent-hover: #9696f5;\n --slx-accent-soft: rgba(132, 132, 242, 0.16);\n --slx-bg: #17171f;\n --slx-bg-subtle: #1e1e28;\n --slx-bg-page: #101016;\n --slx-ink: #f0f0f4;\n --slx-ink-strong: #ffffff;\n --slx-muted: #9a9aa6;\n --slx-border: #292935;\n --slx-border-strong: #343442;\n --slx-danger: #f0737d;\n --slx-success: #4ade80;\n --slx-shadow-card:\n 0 1px 2px rgba(0,0,0,.25),\n 0 12px 32px -8px rgba(0,0,0,.5),\n 0 32px 72px -20px rgba(0,0,0,.55);\n --slx-shadow-pop:\n 0 4px 12px rgba(0,0,0,.4),\n 0 24px 56px -12px rgba(0,0,0,.6);\n}\n.slyxup-root[data-slyxup-theme='dark'] .slx-btn {\n background: linear-gradient(180deg, #ffffff 0%, #ececf1 100%);\n color: #0a0a0f; border-color: #ececf1;\n box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.9);\n}\n.slyxup-root[data-slyxup-theme='dark'] .slx-btn:hover { filter: brightness(.94); }\n.slyxup-root[data-slyxup-theme='dark'] .slx-spinner { border-color: rgba(10,10,15,.25); border-top-color: #0a0a0f; }\n.slyxup-root[data-slyxup-theme='dark'] .slx-setup-note {\n color: #f5d878; background: rgba(250,204,21,.07); border-color: rgba(250,204,21,.25);\n}\n.slyxup-root[data-slyxup-theme='dark'] .slx-setup-note code { background: rgba(255,255,255,.08); }\n.slyxup-root[data-slyxup-theme='dark'] .slx-badge-warn { color: #fbbf24; }\n.slyxup-root[data-slyxup-theme='light'] {\n --slx-bg: #ffffff;\n --slx-bg-subtle: #f7f7fb;\n --slx-bg-page: #e9eaf6;\n --slx-ink: #16161d;\n --slx-ink-strong: #0c0c12;\n --slx-muted: #6f6f7b;\n --slx-border: #e3e3ee;\n --slx-border-strong: #d3d3e2;\n --slx-danger: #d64550;\n --slx-success: #1f9d55;\n}\n\n/* \u2500\u2500 Accent presets (applyTheme or data-slyxup-accent) \u2500\u2500 */\n.slyxup-root[data-slyxup-accent='violet'] { --slx-accent: #5b5bd6; --slx-accent-hover: #4c4cc4; --slx-accent-soft: rgba(91,91,214,.12); --slx-accent-2: #8b5cf6; }\n.slyxup-root[data-slyxup-accent='blue'] { --slx-accent: #2563eb; --slx-accent-hover: #1d4ed8; --slx-accent-soft: rgba(37,99,235,.12); --slx-accent-2: #60a5fa; }\n.slyxup-root[data-slyxup-accent='emerald'] { --slx-accent: #059669; --slx-accent-hover: #047857; --slx-accent-soft: rgba(5,150,105,.12); --slx-accent-2: #34d399; }\n.slyxup-root[data-slyxup-accent='amber'] { --slx-accent: #d97706; --slx-accent-hover: #b45309; --slx-accent-soft: rgba(217,119,6,.14); --slx-accent-2: #fbbf24; }\n.slyxup-root[data-slyxup-accent='rose'] { --slx-accent: #e11d48; --slx-accent-hover: #be123c; --slx-accent-soft: rgba(225,29,72,.12); --slx-accent-2: #fb7185; }\n.slyxup-root[data-slyxup-accent='cyan'] { --slx-accent: #0891b2; --slx-accent-hover: #0e7490; --slx-accent-soft: rgba(8,145,178,.12); --slx-accent-2: #22d3ee; }\n\n/* \u2500\u2500 Accent primary button (alternative to the default ink button) \u2500\u2500 */\n.slx-btn-accent {\n background: linear-gradient(180deg, var(--slx-accent-hover) 0%, var(--slx-accent) 100%);\n border-color: var(--slx-accent);\n color: #fff;\n box-shadow: 0 1px 2px rgba(18,18,28,.3), inset 0 1px 0 rgba(255,255,255,.18);\n}\n.slx-btn-accent:hover { filter: brightness(1.07); }\n.slx-btn-accent:active { transform: scale(.985); filter: brightness(.95); }\n.slx-btn-accent:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--slx-accent-soft); }\n.slx-btn-accent .slx-spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }\n\n/* \u2500\u2500 Primary buttons in brand accent (opt-in via data-slyxup-primary='accent') \u2500\u2500 */\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn {\n background: linear-gradient(180deg, var(--slx-accent-hover) 0%, var(--slx-accent) 100%);\n border-color: var(--slx-accent);\n color: #fff;\n box-shadow: 0 1px 2px rgba(18, 18, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);\n}\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn:hover { filter: brightness(1.07); }\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn:active { filter: brightness(0.95); }\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3.5px var(--slx-accent-soft);\n}\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn .slx-spinner {\n border-color: rgba(255, 255, 255, 0.35);\n border-top-color: #fff;\n}\n\n/* \u2500\u2500 Auth layouts: centered (default) / split / minimal \u2500\u2500 */\n.slx-form-full { display: contents; }\n.slx-card.slx-layout-split {\n max-width: 780px;\n padding: 0;\n display: grid;\n grid-template-columns: 1fr 1.05fr;\n overflow: hidden;\n}\n.slx-split-brand {\n background: linear-gradient(150deg, var(--slx-accent) 0%, var(--slx-accent-2) 130%);\n color: #fff;\n padding: 40px 36px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 0;\n position: relative;\n overflow: hidden;\n}\n.slx-split-brand::after {\n content: '';\n position: absolute;\n width: 280px;\n height: 280px;\n right: -90px;\n bottom: -90px;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.09);\n pointer-events: none;\n}\n.slx-split-mark {\n width: 44px;\n height: 44px;\n border-radius: 12px;\n background: rgba(255, 255, 255, 0.16);\n border: 1px solid rgba(255, 255, 255, 0.25);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 22px;\n}\n.slx-split-title {\n font-family: var(--slx-display);\n font-size: 26px;\n font-weight: 700;\n letter-spacing: -0.025em;\n line-height: 1.15;\n margin: 0 0 10px;\n}\n.slx-split-sub { font-size: 14px; line-height: 1.6; opacity: 0.85; margin: 0 0 24px; }\n.slx-split-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }\n.slx-split-points li {\n font-size: 13.5px;\n font-weight: 500;\n padding-left: 28px;\n position: relative;\n line-height: 1.45;\n}\n.slx-split-points li::before {\n content: '\u2713';\n position: absolute;\n left: 0;\n top: 0;\n width: 19px;\n height: 19px;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.18);\n font-size: 11px;\n font-weight: 800;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.slx-split-form { padding: 36px 36px 32px; min-width: 0; }\n.slx-card.slx-layout-minimal {\n background: transparent;\n border: none;\n box-shadow: none;\n padding: 10px 6px;\n max-width: 380px;\n animation: none;\n}\n.slx-card.slx-layout-minimal .slx-mark { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px; }\n.slx-card.slx-layout-minimal .slx-subtitle { margin-bottom: 20px; }\n.slx-card.slx-layout-minimal .slx-input { background: var(--slx-bg); }\n@media (max-width: 680px) {\n .slx-card.slx-layout-split { grid-template-columns: 1fr; max-width: 440px; }\n .slx-split-brand { padding: 26px 24px; }\n .slx-split-brand::after { display: none; }\n .slx-split-title { font-size: 21px; }\n .slx-split-sub { margin-bottom: 0; }\n .slx-split-points { display: none; }\n .slx-split-form { padding: 26px 22px 24px; }\n}\n\n/* \u2500\u2500 Small-screen polish for auth cards & menus \u2500\u2500 */\n@media (max-width: 460px) {\n .slx-card { padding: 26px 22px 24px; border-radius: var(--slx-radius-lg); }\n .slx-title { font-size: 19px; }\n .slx-menu { min-width: 210px; max-width: calc(100vw - 32px); }\n .slx-social-btn { font-size: 13px; padding: 11px 12px; }\n}\n@media (max-width: 380px) {\n .slx-profile-content { padding: 12px; }\n .slx-profile-head { padding: 12px 12px 10px; }\n .slx-profile-title { font-size: 16px; }\n}\n";
|
|
7
|
+
export declare const CSS = "\n.slyxup-root {\n /* \u2500\u2500 Tokens \u2500\u2500 */\n --slx-accent: #5b5bd6;\n --slx-accent-hover: #4c4cc4;\n --slx-accent-soft: rgba(91, 91, 214, 0.12);\n --slx-accent-2: #8b5cf6;\n --slx-bg: #ffffff;\n --slx-bg-subtle: #f7f7fb;\n --slx-bg-page: #e9eaf6;\n --slx-ink: #16161d;\n --slx-ink-strong: #0c0c12;\n --slx-muted: #6f6f7b;\n --slx-border: #e3e3ee;\n --slx-border-strong: #d3d3e2;\n --slx-danger: #d64550;\n --slx-success: #1f9d55;\n --slx-radius-sm: 8px;\n --slx-radius: 10px;\n --slx-radius-lg: 14px;\n --slx-font: inherit;\n --slx-display: inherit;\n --slx-mono: ui-monospace, SFMono-Regular, Menlo, monospace;\n --slx-shadow-card:\n 0 1px 2px rgba(18,18,28,.05),\n 0 8px 24px -6px rgba(18,18,28,.09),\n 0 24px 64px -16px rgba(18,18,28,.13);\n --slx-shadow-pop:\n 0 2px 6px rgba(18,18,28,.08),\n 0 16px 48px -12px rgba(18,18,28,.18);\n\n font-family: var(--slx-font);\n color: var(--slx-ink);\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"cv11\", \"ss01\";\n}\n@media (prefers-color-scheme: dark) {\n .slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']):not([data-slyxup-theme='light']) {\n --slx-accent: #8484f2;\n --slx-accent-hover: #9696f5;\n --slx-accent-soft: rgba(132, 132, 242, 0.16);\n --slx-bg: #17171f;\n --slx-bg-subtle: #1e1e28;\n --slx-bg-page: #101016;\n --slx-ink: #f0f0f4;\n --slx-ink-strong: #ffffff;\n --slx-muted: #9a9aa6;\n --slx-border: #292935;\n --slx-border-strong: #343442;\n --slx-danger: #f0737d;\n --slx-success: #4ade80;\n --slx-shadow-card:\n 0 1px 2px rgba(0,0,0,.25),\n 0 12px 32px -8px rgba(0,0,0,.5),\n 0 32px 72px -20px rgba(0,0,0,.55);\n --slx-shadow-pop:\n 0 4px 12px rgba(0,0,0,.4),\n 0 24px 56px -12px rgba(0,0,0,.6);\n }\n}\n\n@keyframes slx-shake {\n 10%, 90% { transform: translateX(-1px); }\n 20%, 80% { transform: translateX(2px); }\n 30%, 50%, 70% { transform: translateX(-4px); }\n 40%, 60% { transform: translateX(4px); }\n}\n@keyframes slx-spin { to { transform: rotate(360deg); } }\n@keyframes slx-rise {\n from { opacity: 0; transform: translateY(8px) scale(.985); }\n to { opacity: 1; transform: translateY(0) scale(1); }\n}\n@keyframes slx-pop {\n 0% { transform: scale(.5); opacity: 0; }\n 60% { transform: scale(1.08); opacity: 1; }\n 100% { transform: scale(1); }\n}\n@media (prefers-reduced-motion: reduce) {\n .slyxup-root * { animation: none !important; transition: none !important; }\n}\n\n/* \u2500\u2500 Card \u2500\u2500 */\n.slx-card {\n width: 100%;\n max-width: 400px;\n background: var(--slx-bg);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius-lg);\n padding: 34px 34px 30px;\n box-shadow: var(--slx-shadow-card);\n box-sizing: border-box;\n animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-card,\n.slx-card { color: var(--slx-ink); }\n.slx-card-error { animation: slx-shake .45s cubic-bezier(.36,.07,.19,.97) both; }\n\n/* \u2500\u2500 Header / keyhole mark \u2500\u2500 */\n.slx-mark {\n width: 46px; height: 46px; border-radius: 13px;\n display: flex; align-items: center; justify-content: center;\n background: linear-gradient(140deg, var(--slx-accent) 0%, var(--slx-accent-2) 100%);\n box-shadow:\n inset 0 1px 0 rgba(255,255,255,.28),\n 0 6px 16px -6px rgba(91,91,214,.55);\n margin-bottom: 20px;\n}\n.slx-mark svg { display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }\n.slx-title {\n font-family: var(--slx-display);\n font-size: 21px; font-weight: 650; letter-spacing: -0.022em;\n color: var(--slx-ink-strong);\n margin: 0 0 6px;\n}\n.slx-subtitle { font-size: 13.5px; color: var(--slx-muted); margin: 0 0 24px; line-height: 1.55; }\n\n/* \u2500\u2500 Fields \u2500\u2500 */\n.slx-field { margin-bottom: 15px; }\n.slx-row {\n display: flex; align-items: baseline; justify-content: space-between;\n margin-bottom: 6px;\n}\n.slx-label {\n display: inline-block;\n font-size: 12.5px; font-weight: 550; letter-spacing: 0.01em;\n color: var(--slx-ink);\n}\n.slx-input {\n width: 100%; box-sizing: border-box;\n font: inherit; font-size: 14px; line-height: 1.4; color: var(--slx-ink);\n background: var(--slx-bg-subtle);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 10px 13px;\n outline: none;\n transition: border-color .15s, box-shadow .15s, background .15s;\n}\n.slx-input::placeholder { color: var(--slx-muted); opacity: .7; }\n.slx-input:hover { border-color: var(--slx-border-strong); }\n.slx-input:focus-visible {\n background: var(--slx-bg);\n border-color: var(--slx-accent);\n box-shadow: 0 0 0 3.5px var(--slx-accent-soft);\n}\n.slx-hint { font-size: 12px; color: var(--slx-muted); margin-top: 5px; }\n.slx-error-text {\n font-size: 13px; color: var(--slx-danger);\n background: color-mix(in srgb, var(--slx-danger) 8%, transparent);\n border: 1px solid color-mix(in srgb, var(--slx-danger) 26%, transparent);\n border-left: 3px solid var(--slx-danger);\n border-radius: var(--slx-radius-sm);\n padding: 10px 12px; margin: 0 0 16px; line-height: 1.45;\n}\n.slx-setup-note {\n font-size: 12px; line-height: 1.45;\n color: #7a5c00;\n background: #fff7dc;\n border: 1px solid #f3e3a0;\n border-radius: var(--slx-radius-sm);\n padding: 9px 11px; margin: 0 0 16px;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-setup-note {\n color: #f5d878; background: rgba(250,204,21,.07); border-color: rgba(250,204,21,.25);\n}\n.slx-setup-note code {\n font-family: var(--slx-mono); font-size: 11px;\n background: rgba(0,0,0,.05); border-radius: 4px; padding: 1px 4px;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-setup-note code { background: rgba(255,255,255,.08); }\n\n/* \u2500\u2500 Primary button \u2500\u2500 */\n.slx-btn {\n width: 100%; box-sizing: border-box;\n font-family: var(--slx-font); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;\n color: #fff; background: linear-gradient(180deg, #23232e 0%, #0a0a0f 100%);\n border: 1px solid #0a0a0f; border-radius: var(--slx-radius);\n padding: 11px 14px; cursor: pointer;\n box-shadow: 0 1px 2px rgba(10,10,15,.35), inset 0 1px 0 rgba(255,255,255,.08);\n display: inline-flex; align-items: center; justify-content: center; gap: 8px;\n transition: filter .15s, transform .06s, box-shadow .15s;\n}\n.slx-btn:hover { filter: brightness(1.22); }\n.slx-btn:active { transform: scale(.985); filter: brightness(.92); }\n.slx-btn:focus-visible { outline: none; box-shadow: 0 0 0 3.5px rgba(10,10,15,.16), 0 0 0 1.5px #0a0a0f; }\n.slx-btn[disabled] { opacity: .55; cursor: not-allowed; }\n@media (prefers-color-scheme: dark) {\n .slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-btn {\n background: linear-gradient(180deg, #ffffff 0%, #ececf1 100%);\n color: #0a0a0f; border-color: #ececf1;\n box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.9);\n }\n .slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-btn:hover { filter: brightness(.94); }\n}\n.slx-spinner {\n width: 15px; height: 15px; flex: none;\n border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;\n border-radius: 50%; animation: slx-spin .7s linear infinite;\n}\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-spinner { border-color: rgba(10,10,15,.25); border-top-color: #0a0a0f; }\n\n/* \u2500\u2500 Social \u2500\u2500 */\n.slx-social { display: grid; gap: 9px; margin-bottom: 4px; }\n.slx-social-btn {\n width: 100%; box-sizing: border-box;\n font: inherit; font-size: 13.5px; font-weight: 550;\n color: var(--slx-ink); background: var(--slx-bg);\n border: 1px solid var(--slx-border-strong); border-radius: var(--slx-radius);\n padding: 10px 14px; cursor: pointer;\n display: inline-flex; align-items: center; justify-content: center; gap: 10px;\n transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;\n}\n.slx-social-btn:hover {\n background: var(--slx-bg-subtle);\n border-color: var(--slx-border-strong);\n box-shadow: 0 2px 8px -2px rgba(18,18,28,.12);\n}\n.slx-social-btn:active { transform: scale(.985); }\n.slx-social-btn:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--slx-accent-soft); }\n.slx-social-btn svg { flex: none; }\n\n/* \u2500\u2500 Divider & footer \u2500\u2500 */\n.slx-divider {\n display: flex; align-items: center; gap: 14px;\n color: var(--slx-muted); font-size: 11.5px;\n letter-spacing: .04em; text-transform: uppercase;\n margin: 18px 0;\n}\n.slx-divider::before, .slx-divider::after {\n content: \"\"; height: 1px; flex: 1;\n background: linear-gradient(90deg, transparent, var(--slx-border-strong));\n}\n.slx-divider::after { background: linear-gradient(90deg, var(--slx-border-strong), transparent); }\n.slx-footer { font-size: 13px; color: var(--slx-muted); margin-top: 22px; text-align: center; }\n.slx-link {\n color: var(--slx-accent); font-weight: 600; text-decoration: none; cursor: pointer;\n background: none; border: none; font: inherit; font-size: inherit;\n padding: 0; margin: 0;\n}\n.slx-link:hover { text-decoration: underline; color: var(--slx-accent-hover); }\n.slx-link:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); border-radius: 4px; }\n.slx-forgot { font-size: 12px; }\n\n/* \u2500\u2500 Success state \u2500\u2500 */\n.slx-success-icon {\n width: 48px; height: 48px; border-radius: 50%;\n display: flex; align-items: center; justify-content: center;\n background: color-mix(in srgb, var(--slx-success) 12%, transparent);\n color: var(--slx-success); margin: 4px auto 18px;\n animation: slx-pop .45s cubic-bezier(.22,.9,.32,1) both;\n box-shadow: 0 0 0 6px color-mix(in srgb, var(--slx-success) 6%, transparent);\n}\n\n/* \u2500\u2500 User button \u2500\u2500 */\n.slx-userbtn-wrap { position: relative; display: inline-block; }\n.slx-userbtn-avatar {\n width: 36px; height: 36px; border-radius: 50%;\n border: 1px solid var(--slx-border); cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n font-size: 14px; font-weight: 650; color: #fff;\n background: linear-gradient(135deg, var(--slx-accent), var(--slx-accent-2));\n padding: 0; overflow: hidden;\n transition: box-shadow .15s, transform .06s;\n}\n.slx-userbtn-avatar:hover { box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n.slx-userbtn-avatar:active { transform: scale(.96); }\n.slx-userbtn-avatar img { width: 100%; height: 100%; object-fit: cover; }\n.slx-userbtn-avatar:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--slx-accent-soft); }\n.slx-menu {\n position: absolute; right: 0; top: calc(100% + 8px);\n min-width: 240px;\n background: var(--slx-bg);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius-lg);\n box-shadow: var(--slx-shadow-pop);\n overflow: hidden; z-index: 1000;\n animation: slx-rise .22s cubic-bezier(.22,.9,.32,1) both;\n}\n.slx-menu-header { padding: 14px 16px; border-bottom: 1px solid var(--slx-border); background: var(--slx-bg-subtle); }\n.slx-menu-name { font-size: 14px; font-weight: 600; margin: 0 0 2px; color: var(--slx-ink-strong); }\n.slx-menu-email { font-size: 12.5px; color: var(--slx-muted); margin: 0; word-break: break-all; }\n.slx-menu-item {\n display: block; width: 100%; text-align: left; box-sizing: border-box;\n font: inherit; font-size: 13.5px; color: var(--slx-ink);\n background: none; border: none; padding: 10px 16px; cursor: pointer;\n transition: background .12s;\n}\n.slx-menu-item:hover { background: color-mix(in srgb, var(--slx-ink) 4%, transparent); }\n.slx-menu-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--slx-accent-soft); }\n.slx-menu-item-danger { color: var(--slx-danger); }\n.slx-menu-item-danger:hover { background: color-mix(in srgb, var(--slx-danger) 7%, transparent); }\n\n/* \u2500\u2500 Badge (verified etc.) \u2500\u2500 */\n.slx-badge {\n display: inline-flex; align-items: center; gap: 5px;\n font-size: 11px; font-weight: 600; letter-spacing: .02em;\n padding: 2.5px 9px; border-radius: 999px;\n color: var(--slx-success);\n background: color-mix(in srgb, var(--slx-success) 9%, transparent);\n border: 1px solid color-mix(in srgb, var(--slx-success) 30%, transparent);\n}\n.slx-badge-ok { color: var(--slx-success); background: color-mix(in srgb, var(--slx-success) 9%, transparent); border-color: color-mix(in srgb, var(--slx-success) 30%, transparent); }\n.slx-badge-warn { color: #b45309; background: color-mix(in srgb, #f59e0b 10%, transparent); border-color: color-mix(in srgb, #f59e0b 30%, transparent); }\n.slx-badge-accent { color: var(--slx-accent); background: var(--slx-accent-soft); border-color: color-mix(in srgb, var(--slx-accent) 30%, transparent); }\n.slyxup-root:not(.slyxup-light):not([data-slyxup-theme='light']) .slx-badge-warn { color: #fbbf24; }\n\n/* \u2500\u2500 Modal overlay \u2500\u2500 */\n.slx-overlay {\n position: fixed; inset: 0; z-index: 9999;\n display: flex; align-items: center; justify-content: center;\n background: rgba(12, 12, 18, 0.55);\n backdrop-filter: blur(6px);\n animation: slx-rise .2s cubic-bezier(.22,.9,.32,1) both;\n padding: 16px;\n overflow-y: auto;\n box-sizing: border-box;\n}\n\n/* \u2500\u2500 UserProfile \u2500\u2500 */\n.slx-profile-modal {\n display: flex; flex-direction: column;\n width: 720px; max-width: calc(100vw - 32px);\n max-height: min(85vh, 720px);\n background: var(--slx-bg);\n border-radius: var(--slx-radius-lg);\n box-shadow: var(--slx-shadow-pop);\n overflow: hidden;\n animation: slx-rise .28s cubic-bezier(.22,.9,.32,1) both;\n box-sizing: border-box;\n}\n.slx-profile-head {\n display: flex; align-items: center; justify-content: space-between;\n padding: 22px 28px 18px;\n border-bottom: 1px solid var(--slx-border);\n flex-shrink: 0;\n background: var(--slx-bg);\n position: relative;\n z-index: 1;\n}\n.slx-profile-title {\n font-family: var(--slx-display);\n font-size: 18px; font-weight: 650; letter-spacing: -0.02em;\n color: var(--slx-ink-strong);\n margin: 0;\n}\n.slx-profile-close {\n width: 32px; height: 32px; border-radius: 8px;\n display: flex; align-items: center; justify-content: center;\n background: none; border: 1px solid var(--slx-border);\n color: var(--slx-muted); cursor: pointer; font-size: 16px;\n transition: background .12s, color .12s, border-color .12s;\n position: relative;\n z-index: 2;\n pointer-events: auto;\n flex-shrink: 0;\n -webkit-tap-highlight-color: transparent;\n touch-action: manipulation;\n}\n.slx-profile-close:hover { background: var(--slx-bg-subtle); color: var(--slx-ink); border-color: var(--slx-border-strong); }\n.slx-profile-close:active { transform: scale(.95); }\n.slx-profile-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n\n.slx-profile-body {\n display: flex; flex: 1; min-height: 380px;\n overflow: hidden;\n min-width: 0;\n}\n\n/* \u2500\u2500 Left nav \u2500\u2500 */\n.slx-profile-nav {\n width: 200px; flex-shrink: 0;\n display: flex; flex-direction: column; gap: 2px;\n padding: 12px 8px;\n border-right: 1px solid var(--slx-border);\n background: var(--slx-bg-subtle);\n}\n.slx-profile-nav-btn {\n display: flex; align-items: center; gap: 9px;\n font: inherit; font-size: 13.5px; font-weight: 500;\n color: var(--slx-muted); background: none; border: none;\n border-radius: var(--slx-radius-sm);\n padding: 9px 12px; cursor: pointer; text-align: left;\n transition: background .12s, color .12s;\n}\n.slx-profile-nav-btn:hover { background: color-mix(in srgb, var(--slx-ink) 5%, transparent); color: var(--slx-ink); }\n.slx-profile-nav-btn.on { background: var(--slx-bg); color: var(--slx-ink-strong); font-weight: 600; box-shadow: 0 1px 3px rgba(18,18,28,.06); }\n.slx-profile-nav-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--slx-accent-soft); }\n\n/* \u2500\u2500 Content area \u2500\u2500 */\n.slx-profile-content {\n flex: 1; overflow-y: auto; padding: 24px 28px 28px;\n}\n.slx-profile-sec { margin-bottom: 28px; }\n.slx-profile-sec:last-child { margin-bottom: 0; }\n.slx-sec-title {\n font-family: var(--slx-display);\n font-size: 14px; font-weight: 600; letter-spacing: -0.01em;\n color: var(--slx-ink-strong);\n margin: 0 0 14px; padding-bottom: 10px;\n border-bottom: 1px solid var(--slx-border);\n}\n\n/* \u2500\u2500 Avatar \u2500\u2500 */\n.slx-avatar-row {\n display: flex; align-items: center; gap: 16px;\n margin-bottom: 20px;\n}\n.slx-avatar-lg {\n width: 64px; height: 64px; border-radius: 50%;\n flex-shrink: 0;\n display: flex; align-items: center; justify-content: center;\n font-size: 24px; font-weight: 700; color: #fff;\n background: linear-gradient(135deg, var(--slx-accent), var(--slx-accent-2));\n overflow: hidden;\n box-shadow: 0 2px 8px rgba(91,91,214,.3);\n}\n.slx-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }\n\n/* \u2500\u2500 Row (email etc.) \u2500\u2500 */\n.slx-row-value { font-size: 14px; font-weight: 500; color: var(--slx-ink-strong); margin: 0; }\n.slx-row-label { font-size: 12px; color: var(--slx-muted); margin: 2px 0 0; }\n\n/* \u2500\u2500 Sessions \u2500\u2500 */\n.slx-session {\n display: flex; align-items: center; justify-content: space-between;\n padding: 12px 14px; border-radius: var(--slx-radius-sm);\n border: 1px solid var(--slx-border);\n background: var(--slx-bg-subtle);\n margin-bottom: 8px;\n transition: border-color .12s;\n}\n.slx-session:hover { border-color: var(--slx-border-strong); }\n.slx-session-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }\n.slx-session-device { font-size: 13.5px; font-weight: 550; color: var(--slx-ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }\n.slx-session-sub { font-size: 12px; color: var(--slx-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n\n/* \u2500\u2500 Pagination \u2500\u2500 */\n.slx-pagination {\n display: flex; align-items: center; justify-content: center; gap: 10px;\n margin-top: 14px; padding-top: 14px;\n border-top: 1px solid var(--slx-border);\n}\n.slx-pagination-info { font-size: 12.5px; color: var(--slx-muted); white-space: nowrap; }\n\n/* \u2500\u2500 Danger zone \u2500\u2500 */\n.slx-danger-zone {\n border: 1px solid color-mix(in srgb, var(--slx-danger) 30%, transparent);\n border-radius: var(--slx-radius);\n padding: 18px 20px;\n background: color-mix(in srgb, var(--slx-danger) 4%, transparent);\n}\n.slx-danger-title {\n font-size: 14px; font-weight: 650; color: var(--slx-danger);\n margin: 0 0 6px;\n}\n.slx-danger-desc {\n font-size: 13px; color: var(--slx-muted); line-height: 1.5;\n margin: 0 0 16px;\n}\n.slx-btn-danger-outline {\n font: inherit; font-size: 13px; font-weight: 550;\n color: var(--slx-danger); background: none;\n border: 1px solid color-mix(in srgb, var(--slx-danger) 35%, transparent);\n border-radius: var(--slx-radius-sm);\n padding: 7px 14px; cursor: pointer;\n transition: background .12s, border-color .12s;\n}\n.slx-btn-danger-outline:hover { background: color-mix(in srgb, var(--slx-danger) 8%, transparent); border-color: var(--slx-danger); }\n.slx-btn-danger-outline:active { transform: scale(.98); }\n.slx-btn-danger-outline:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--slx-danger) 20%, transparent); }\n.slx-btn-danger-outline[disabled] { opacity: .5; cursor: not-allowed; }\n\n/* \u2500\u2500 Billing (inside UserProfile) \u2500\u2500 */\n.slx-billing-card {\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 18px 20px;\n background: var(--slx-bg-subtle);\n margin-bottom: 16px;\n}\n.slx-billing-plan { font-size: 15px; font-weight: 650; color: var(--slx-ink-strong); margin: 0 0 4px; }\n.slx-billing-detail { font-size: 13px; color: var(--slx-muted); margin: 2px 0; }\n.slx-billing-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }\n.slx-billing-status-active { color: var(--slx-success); }\n.slx-billing-status-trialing { color: var(--slx-accent); }\n.slx-billing-status-canceled { color: var(--slx-danger); }\n.slx-invoice-row {\n display: flex; align-items: center; justify-content: space-between;\n padding: 10px 0; border-bottom: 1px solid var(--slx-border);\n font-size: 13px;\n gap: 8px;\n flex-wrap: wrap;\n}\n.slx-invoice-row:last-child { border-bottom: none; }\n.slx-invoice-date { color: var(--slx-muted); }\n.slx-invoice-amount { font-weight: 600; color: var(--slx-ink-strong); }\n\n/* \u2500\u2500 Billing plans grid (responsive) \u2500\u2500 */\n.slx-billing-plans {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));\n gap: 12px;\n margin-top: 12px;\n}\n.slx-plan-card {\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 16px;\n background: var(--slx-bg);\n display: flex;\n flex-direction: column;\n position: relative;\n transition: border-color .15s, box-shadow .15s;\n}\n.slx-plan-card:hover { border-color: var(--slx-border-strong); box-shadow: 0 2px 8px rgba(0,0,0,.06); }\n.slx-plan-card.popular { border-color: var(--slx-accent); box-shadow: 0 0 0 1px var(--slx-accent-soft); }\n.slx-plan-badge {\n position: absolute; top: -10px; right: 12px;\n font-size: 10px; font-weight: 700; letter-spacing: .05em;\n color: #fff; background: linear-gradient(135deg, var(--slx-accent), var(--slx-accent-2));\n padding: 3px 8px; border-radius: 999px;\n}\n.slx-plan-name { font-size: 14px; font-weight: 600; color: var(--slx-ink-strong); margin: 0 0 6px; }\n.slx-plan-price { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--slx-ink-strong); }\n.slx-plan-interval { font-size: 13px; color: var(--slx-muted); font-weight: 400; }\n.slx-plan-features { list-style: none; margin: 12px 0 16px; padding: 0; flex: 1; }\n.slx-plan-features li { font-size: 13px; color: var(--slx-ink); padding: 4px 0 4px 20px; position: relative; line-height: 1.45; }\n.slx-plan-features li::before { content: \"\u2713\"; position: absolute; left: 0; color: var(--slx-success); font-weight: 700; font-size: 12px; }\n.slx-plan-cta { width: 100%; margin-top: auto; }\n.slx-billing-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }\n.slx-btn-secondary {\n font: inherit; font-size: 13px; font-weight: 550;\n color: var(--slx-ink); background: var(--slx-bg);\n border: 1px solid var(--slx-border-strong); border-radius: var(--slx-radius-sm);\n padding: 8px 14px; cursor: pointer;\n transition: background .12s, border-color .12s;\n display: inline-flex; align-items: center; justify-content: center; gap: 6px;\n}\n.slx-btn-secondary:hover { background: var(--slx-bg-subtle); }\n.slx-btn-secondary:active { transform: scale(.98); }\n.slx-btn-secondary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n.slx-btn-secondary[disabled] { opacity: .55; cursor: not-allowed; }\n.slx-billing-empty { text-align: center; padding: 24px 16px; color: var(--slx-muted); font-size: 13px; line-height: 1.5; }\n\n/* \u2500\u2500 Mobile friendliness for UserProfile \u2500\u2500 */\n@media (max-width: 680px) {\n .slx-overlay { align-items: flex-start; padding: 12px; }\n .slx-profile-modal {\n width: 100%; max-width: 100%;\n max-height: calc(100vh - 24px);\n max-height: calc(100dvh - 24px);\n margin: auto;\n border-radius: var(--slx-radius-lg);\n }\n .slx-profile-body { flex-direction: column; min-height: 0; overflow-y: auto; overflow-x: hidden; }\n .slx-profile-nav {\n width: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden;\n border-right: none; border-bottom: 1px solid var(--slx-border);\n padding: 8px; gap: 6px; scrollbar-width: none; -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n flex-shrink: 0;\n }\n .slx-profile-nav::-webkit-scrollbar { display: none; }\n .slx-profile-nav-btn { white-space: nowrap; flex-shrink: 0; font-size: 13px; padding: 8px 12px; }\n .slx-profile-content { padding: 16px; overflow: visible; }\n .slx-profile-head { padding: 16px 16px 12px; }\n .slx-profile-close { width: 40px; height: 40px; min-width: 40px; min-height: 40px; font-size: 18px; border-radius: 10px; }\n .slx-avatar-row { gap: 12px; flex-wrap: wrap; }\n .slx-billing-plans { grid-template-columns: 1fr; }\n .slx-session { flex-direction: column; align-items: flex-start; gap: 10px; }\n .slx-session .slx-btn-danger-outline { align-self: stretch; text-align: center; justify-content: center; }\n .slx-pagination { flex-wrap: wrap; gap: 6px; }\n .slx-pagination .slx-btn-secondary { font-size: 12px; padding: 4px 10px; }\n .slx-invoice-row { flex-wrap: wrap; gap: 6px; }\n}\n/* \u2500\u2500 Explicit theme mode (wins over OS preference) \u2500\u2500 */\n.slyxup-root[data-slyxup-theme='dark'] {\n --slx-accent: #8484f2;\n --slx-accent-hover: #9696f5;\n --slx-accent-soft: rgba(132, 132, 242, 0.16);\n --slx-bg: #17171f;\n --slx-bg-subtle: #1e1e28;\n --slx-bg-page: #101016;\n --slx-ink: #f0f0f4;\n --slx-ink-strong: #ffffff;\n --slx-muted: #9a9aa6;\n --slx-border: #292935;\n --slx-border-strong: #343442;\n --slx-danger: #f0737d;\n --slx-success: #4ade80;\n --slx-shadow-card:\n 0 1px 2px rgba(0,0,0,.25),\n 0 12px 32px -8px rgba(0,0,0,.5),\n 0 32px 72px -20px rgba(0,0,0,.55);\n --slx-shadow-pop:\n 0 4px 12px rgba(0,0,0,.4),\n 0 24px 56px -12px rgba(0,0,0,.6);\n}\n.slyxup-root[data-slyxup-theme='dark'] .slx-btn {\n background: linear-gradient(180deg, #ffffff 0%, #ececf1 100%);\n color: #0a0a0f; border-color: #ececf1;\n box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.9);\n}\n.slyxup-root[data-slyxup-theme='dark'] .slx-btn:hover { filter: brightness(.94); }\n.slyxup-root[data-slyxup-theme='dark'] .slx-spinner { border-color: rgba(10,10,15,.25); border-top-color: #0a0a0f; }\n.slyxup-root[data-slyxup-theme='dark'] .slx-setup-note {\n color: #f5d878; background: rgba(250,204,21,.07); border-color: rgba(250,204,21,.25);\n}\n.slyxup-root[data-slyxup-theme='dark'] .slx-setup-note code { background: rgba(255,255,255,.08); }\n.slyxup-root[data-slyxup-theme='dark'] .slx-badge-warn { color: #fbbf24; }\n.slyxup-root[data-slyxup-theme='light'] {\n --slx-bg: #ffffff;\n --slx-bg-subtle: #f7f7fb;\n --slx-bg-page: #e9eaf6;\n --slx-ink: #16161d;\n --slx-ink-strong: #0c0c12;\n --slx-muted: #6f6f7b;\n --slx-border: #e3e3ee;\n --slx-border-strong: #d3d3e2;\n --slx-danger: #d64550;\n --slx-success: #1f9d55;\n}\n\n/* \u2500\u2500 Accent presets (applyTheme or data-slyxup-accent) \u2500\u2500 */\n.slyxup-root[data-slyxup-accent='violet'] { --slx-accent: #5b5bd6; --slx-accent-hover: #4c4cc4; --slx-accent-soft: rgba(91,91,214,.12); --slx-accent-2: #8b5cf6; }\n.slyxup-root[data-slyxup-accent='blue'] { --slx-accent: #2563eb; --slx-accent-hover: #1d4ed8; --slx-accent-soft: rgba(37,99,235,.12); --slx-accent-2: #60a5fa; }\n.slyxup-root[data-slyxup-accent='emerald'] { --slx-accent: #059669; --slx-accent-hover: #047857; --slx-accent-soft: rgba(5,150,105,.12); --slx-accent-2: #34d399; }\n.slyxup-root[data-slyxup-accent='amber'] { --slx-accent: #d97706; --slx-accent-hover: #b45309; --slx-accent-soft: rgba(217,119,6,.14); --slx-accent-2: #fbbf24; }\n.slyxup-root[data-slyxup-accent='rose'] { --slx-accent: #e11d48; --slx-accent-hover: #be123c; --slx-accent-soft: rgba(225,29,72,.12); --slx-accent-2: #fb7185; }\n.slyxup-root[data-slyxup-accent='cyan'] { --slx-accent: #0891b2; --slx-accent-hover: #0e7490; --slx-accent-soft: rgba(8,145,178,.12); --slx-accent-2: #22d3ee; }\n\n/* \u2500\u2500 Accent primary button (alternative to the default ink button) \u2500\u2500 */\n.slx-btn-accent {\n background: linear-gradient(180deg, var(--slx-accent-hover) 0%, var(--slx-accent) 100%);\n border-color: var(--slx-accent);\n color: #fff;\n box-shadow: 0 1px 2px rgba(18,18,28,.3), inset 0 1px 0 rgba(255,255,255,.18);\n}\n.slx-btn-accent:hover { filter: brightness(1.07); }\n.slx-btn-accent:active { transform: scale(.985); filter: brightness(.95); }\n.slx-btn-accent:focus-visible { outline: none; box-shadow: 0 0 0 3.5px var(--slx-accent-soft); }\n.slx-btn-accent .slx-spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }\n\n/* \u2500\u2500 Primary buttons in brand accent (opt-in via data-slyxup-primary='accent') \u2500\u2500 */\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn {\n background: linear-gradient(180deg, var(--slx-accent-hover) 0%, var(--slx-accent) 100%);\n border-color: var(--slx-accent);\n color: #fff;\n box-shadow: 0 1px 2px rgba(18, 18, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);\n}\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn:hover { filter: brightness(1.07); }\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn:active { filter: brightness(0.95); }\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3.5px var(--slx-accent-soft);\n}\n.slyxup-root[data-slyxup-primary='accent'] .slx-btn .slx-spinner {\n border-color: rgba(255, 255, 255, 0.35);\n border-top-color: #fff;\n}\n\n/* \u2500\u2500 Auth layouts: centered (default) / split / minimal \u2500\u2500 */\n.slx-form-full { display: contents; }\n.slx-card.slx-layout-split {\n max-width: 780px;\n padding: 0;\n display: grid;\n grid-template-columns: 1fr 1.05fr;\n overflow: hidden;\n}\n.slx-split-brand {\n background: linear-gradient(150deg, var(--slx-accent) 0%, var(--slx-accent-2) 130%);\n color: #fff;\n padding: 40px 36px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 0;\n position: relative;\n overflow: hidden;\n}\n.slx-split-brand::after {\n content: '';\n position: absolute;\n width: 280px;\n height: 280px;\n right: -90px;\n bottom: -90px;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.09);\n pointer-events: none;\n}\n.slx-split-mark {\n width: 44px;\n height: 44px;\n border-radius: 12px;\n background: rgba(255, 255, 255, 0.16);\n border: 1px solid rgba(255, 255, 255, 0.25);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 22px;\n}\n.slx-split-title {\n font-family: var(--slx-display);\n font-size: 26px;\n font-weight: 700;\n letter-spacing: -0.025em;\n line-height: 1.15;\n margin: 0 0 10px;\n}\n.slx-split-sub { font-size: 14px; line-height: 1.6; opacity: 0.85; margin: 0 0 24px; }\n.slx-split-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }\n.slx-split-points li {\n font-size: 13.5px;\n font-weight: 500;\n padding-left: 28px;\n position: relative;\n line-height: 1.45;\n}\n.slx-split-points li::before {\n content: '\u2713';\n position: absolute;\n left: 0;\n top: 0;\n width: 19px;\n height: 19px;\n border-radius: 50%;\n background: rgba(255, 255, 255, 0.18);\n font-size: 11px;\n font-weight: 800;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.slx-split-form { padding: 36px 36px 32px; min-width: 0; }\n.slx-card.slx-layout-minimal {\n background: transparent;\n border: none;\n box-shadow: none;\n padding: 10px 6px;\n max-width: 380px;\n animation: none;\n}\n.slx-card.slx-layout-minimal .slx-mark { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px; }\n.slx-card.slx-layout-minimal .slx-subtitle { margin-bottom: 20px; }\n.slx-card.slx-layout-minimal .slx-input { background: var(--slx-bg); }\n@media (max-width: 680px) {\n .slx-card.slx-layout-split { grid-template-columns: 1fr; max-width: 440px; }\n .slx-split-brand { padding: 26px 24px; }\n .slx-split-brand::after { display: none; }\n .slx-split-title { font-size: 21px; }\n .slx-split-sub { margin-bottom: 0; }\n .slx-split-points { display: none; }\n .slx-split-form { padding: 26px 22px 24px; }\n}\n\n/* \u2500\u2500 Password field with reveal toggle \u2500\u2500 */\n.slx-input-wrap { position: relative; }\n.slx-input-wrap .slx-input { padding-right: 42px; }\n.slx-pw-toggle {\n position: absolute;\n right: 6px;\n top: 50%;\n transform: translateY(-50%);\n width: 30px;\n height: 30px;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: none;\n border: none;\n color: var(--slx-muted);\n cursor: pointer;\n transition: background 0.12s, color 0.12s;\n}\n.slx-pw-toggle:hover { color: var(--slx-ink); background: color-mix(in srgb, var(--slx-ink) 5%, transparent); }\n.slx-pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }\n\n/* \u2500\u2500 Compact density (opt-in via data-slyxup-density='compact') \u2500\u2500 */\n.slyxup-root[data-slyxup-density='compact'] .slx-card { padding: 24px 24px 20px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-mark { width: 38px; height: 38px; margin-bottom: 14px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-title { font-size: 19px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-subtitle { margin-bottom: 16px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-field { margin-bottom: 10px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-input { padding: 8px 11px; font-size: 13.5px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-btn { padding: 9px 14px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-divider { margin: 14px 0; }\n.slyxup-root[data-slyxup-density='compact'] .slx-footer { margin-top: 16px; }\n.slyxup-root[data-slyxup-density='compact'] .slx-split-form { padding: 24px; }\n\n/* \u2500\u2500 Small-screen polish for auth cards & menus \u2500\u2500 */\n@media (max-width: 460px) {\n .slx-card { padding: 26px 22px 24px; border-radius: var(--slx-radius-lg); }\n .slx-title { font-size: 19px; }\n .slx-menu { min-width: 210px; max-width: calc(100vw - 32px); }\n .slx-social-btn { font-size: 13px; padding: 11px 12px; }\n}\n@media (max-width: 380px) {\n .slx-profile-content { padding: 12px; }\n .slx-profile-head { padding: 12px 12px 10px; }\n .slx-profile-title { font-size: 16px; }\n}\n";
|
|
8
8
|
/** Inject the SlyxUp stylesheet + fonts once per document. Idempotent + SSR-safe. */
|
|
9
9
|
export declare function injectStyles(): void;
|
|
10
10
|
/** Test hook — whether styles are present. */
|
package/dist/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,eAAO,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,SAAS,KAAK,CAAC;AAE5B,eAAO,MAAM,GAAG,u9iCAoyBf,CAAC;AAIF,qFAAqF;AACrF,wBAAgB,YAAY,IAAI,IAAI,CAqBnC;AAED,8CAA8C;AAC9C,wBAAgB,cAAc,IAAI,OAAO,CAExC"}
|
package/dist/styles.js
CHANGED
|
@@ -761,6 +761,41 @@ export const CSS = `
|
|
|
761
761
|
.slx-split-form { padding: 26px 22px 24px; }
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
+
/* ── Password field with reveal toggle ── */
|
|
765
|
+
.slx-input-wrap { position: relative; }
|
|
766
|
+
.slx-input-wrap .slx-input { padding-right: 42px; }
|
|
767
|
+
.slx-pw-toggle {
|
|
768
|
+
position: absolute;
|
|
769
|
+
right: 6px;
|
|
770
|
+
top: 50%;
|
|
771
|
+
transform: translateY(-50%);
|
|
772
|
+
width: 30px;
|
|
773
|
+
height: 30px;
|
|
774
|
+
border-radius: 8px;
|
|
775
|
+
display: flex;
|
|
776
|
+
align-items: center;
|
|
777
|
+
justify-content: center;
|
|
778
|
+
background: none;
|
|
779
|
+
border: none;
|
|
780
|
+
color: var(--slx-muted);
|
|
781
|
+
cursor: pointer;
|
|
782
|
+
transition: background 0.12s, color 0.12s;
|
|
783
|
+
}
|
|
784
|
+
.slx-pw-toggle:hover { color: var(--slx-ink); background: color-mix(in srgb, var(--slx-ink) 5%, transparent); }
|
|
785
|
+
.slx-pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--slx-accent-soft); }
|
|
786
|
+
|
|
787
|
+
/* ── Compact density (opt-in via data-slyxup-density='compact') ── */
|
|
788
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-card { padding: 24px 24px 20px; }
|
|
789
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-mark { width: 38px; height: 38px; margin-bottom: 14px; }
|
|
790
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-title { font-size: 19px; }
|
|
791
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-subtitle { margin-bottom: 16px; }
|
|
792
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-field { margin-bottom: 10px; }
|
|
793
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-input { padding: 8px 11px; font-size: 13.5px; }
|
|
794
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-btn { padding: 9px 14px; }
|
|
795
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-divider { margin: 14px 0; }
|
|
796
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-footer { margin-top: 16px; }
|
|
797
|
+
.slyxup-root[data-slyxup-density='compact'] .slx-split-form { padding: 24px; }
|
|
798
|
+
|
|
764
799
|
/* ── Small-screen polish for auth cards & menus ── */
|
|
765
800
|
@media (max-width: 460px) {
|
|
766
801
|
.slx-card { padding: 26px 22px 24px; border-radius: var(--slx-radius-lg); }
|
package/dist/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[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;;;;;;;;;;;;;CAoyBlB,CAAC;AAEF,IAAI,QAAQ,GAAG,KAAK,CAAC;AAErB,qFAAqF;AACrF,MAAM,UAAU,YAAY;IAC1B,IAAI,OAAO,QAAQ,KAAK,WAAW;QAAE,OAAO;IAC5C,oEAAoE;IACpE,6DAA6D;IAC7D,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACtD,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,6BAA6B,CAAC,EAAE,CAAC;QAC3D,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,CAAC;YACrD,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAChD,QAAQ,CAAC,GAAG,GAAG,YAAY,CAAC;YAC5B,QAAQ,CAAC,IAAI;gBACX,+KAA+K,CAAC;YAClL,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9C,KAAK,CAAC,YAAY,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC5C,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;QACxB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACjC,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,IAAI,CAAC;IAClB,CAAC;AACH,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,cAAc;IAC5B,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/theme.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export type ThemeMode = 'light' | 'dark' | 'auto';
|
|
|
15
15
|
export type AuthLayout = 'centered' | 'split' | 'minimal';
|
|
16
16
|
/** Primary button treatment. 'ink' (default) = near-black/white button, 'accent' = brand gradient. */
|
|
17
17
|
export type PrimaryStyle = 'ink' | 'accent';
|
|
18
|
+
/** Spacing density. 'comfortable' (default) or 'compact' for dense dialogs. */
|
|
19
|
+
export type Density = 'comfortable' | 'compact';
|
|
18
20
|
export type AccentName = 'violet' | 'blue' | 'emerald' | 'amber' | 'rose' | 'cyan';
|
|
19
21
|
export interface AccentDef {
|
|
20
22
|
label: string;
|
|
@@ -55,6 +57,8 @@ export interface SlyxUpTheme {
|
|
|
55
57
|
radius?: number;
|
|
56
58
|
/** Primary buttons: 'ink' (default, near-black/white) or 'accent' (brand gradient). */
|
|
57
59
|
primary?: PrimaryStyle;
|
|
60
|
+
/** Spacing density: 'comfortable' (default) or 'compact'. */
|
|
61
|
+
density?: Density;
|
|
58
62
|
}
|
|
59
63
|
/**
|
|
60
64
|
* Apply a theme. Targets `document.documentElement` by default — pass a
|
package/dist/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,0EAA0E;AAC1E,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAE1D,sGAAsG;AACtG,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE5C,MAAM,MAAM,UAAU,GAClB,QAAQ,GACR,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,MAAM,CAAC;AAEX,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;CACp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YAAY,CAAC;IACvB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAwBD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,IAAI,CAmG7E;AAED,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,GAAG,QAAQ,CACpD,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAC,CACrC,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAwBA"}
|
package/dist/theme.js
CHANGED
|
@@ -111,6 +111,7 @@ export function applyTheme(theme, root) {
|
|
|
111
111
|
mode: el.getAttribute('data-slyxup-theme'),
|
|
112
112
|
accent: el.getAttribute('data-slyxup-accent'),
|
|
113
113
|
primary: el.getAttribute('data-slyxup-primary'),
|
|
114
|
+
density: el.getAttribute('data-slyxup-density'),
|
|
114
115
|
vars: [
|
|
115
116
|
VAR_ACCENT,
|
|
116
117
|
VAR_ACCENT_HOVER,
|
|
@@ -156,6 +157,13 @@ export function applyTheme(theme, root) {
|
|
|
156
157
|
else
|
|
157
158
|
el.removeAttribute('data-slyxup-primary');
|
|
158
159
|
}
|
|
160
|
+
// ── Density ──
|
|
161
|
+
if (theme.density !== undefined) {
|
|
162
|
+
if (theme.density === 'compact')
|
|
163
|
+
el.setAttribute('data-slyxup-density', 'compact');
|
|
164
|
+
else
|
|
165
|
+
el.removeAttribute('data-slyxup-density');
|
|
166
|
+
}
|
|
159
167
|
// ── Font ──
|
|
160
168
|
if (theme.font !== undefined) {
|
|
161
169
|
const def = typeof theme.font === 'string'
|
|
@@ -190,6 +198,10 @@ export function applyTheme(theme, root) {
|
|
|
190
198
|
el.removeAttribute('data-slyxup-primary');
|
|
191
199
|
else
|
|
192
200
|
el.setAttribute('data-slyxup-primary', prev.primary);
|
|
201
|
+
if (prev.density === null)
|
|
202
|
+
el.removeAttribute('data-slyxup-density');
|
|
203
|
+
else
|
|
204
|
+
el.setAttribute('data-slyxup-density', prev.density);
|
|
193
205
|
for (const [v, val] of prev.vars) {
|
|
194
206
|
if (!val)
|
|
195
207
|
el.style.removeProperty(v);
|
|
@@ -204,6 +216,7 @@ export function getTheme(root) {
|
|
|
204
216
|
mode: 'auto',
|
|
205
217
|
accent: 'violet',
|
|
206
218
|
primary: 'ink',
|
|
219
|
+
density: 'comfortable',
|
|
207
220
|
font: '',
|
|
208
221
|
radius: '',
|
|
209
222
|
};
|
|
@@ -217,6 +230,7 @@ export function getTheme(root) {
|
|
|
217
230
|
cs.getPropertyValue(VAR_ACCENT).trim() ||
|
|
218
231
|
'violet',
|
|
219
232
|
primary: el.getAttribute('data-slyxup-primary') || 'ink',
|
|
233
|
+
density: el.getAttribute('data-slyxup-density') || 'comfortable',
|
|
220
234
|
font: cs.getPropertyValue('--slx-font').trim(),
|
|
221
235
|
radius: cs.getPropertyValue('--slx-radius').trim(),
|
|
222
236
|
};
|
package/dist/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiCxC,MAAM,CAAC,MAAM,OAAO,GAAkC;IACpD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,SAAS;QACjB,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,yBAAyB;QACrC,UAAU,EAAE,SAAS;KACtB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,SAAS;QACjB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