@slyxup/ui 2.5.1 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +25 -1
  2. package/dist/components/BillingPortal/BillingPortal.d.ts.map +1 -1
  3. package/dist/components/BillingPortal/BillingPortal.js +1 -1
  4. package/dist/components/BillingPortal/BillingPortal.js.map +1 -1
  5. package/dist/components/CheckoutButton/CheckoutButton.d.ts +26 -0
  6. package/dist/components/CheckoutButton/CheckoutButton.d.ts.map +1 -0
  7. package/dist/components/CheckoutButton/CheckoutButton.js +24 -0
  8. package/dist/components/CheckoutButton/CheckoutButton.js.map +1 -0
  9. package/dist/components/CurrentPlanCard/CurrentPlanCard.d.ts.map +1 -1
  10. package/dist/components/CurrentPlanCard/CurrentPlanCard.js +2 -4
  11. package/dist/components/CurrentPlanCard/CurrentPlanCard.js.map +1 -1
  12. package/dist/components/InvoicesTable/InvoicesTable.d.ts.map +1 -1
  13. package/dist/components/InvoicesTable/InvoicesTable.js +2 -2
  14. package/dist/components/InvoicesTable/InvoicesTable.js.map +1 -1
  15. package/dist/components/PlanCard/PlanCard.d.ts.map +1 -1
  16. package/dist/components/PlanCard/PlanCard.js +4 -20
  17. package/dist/components/PlanCard/PlanCard.js.map +1 -1
  18. package/dist/components/PricingTable/PricingTable.d.ts.map +1 -1
  19. package/dist/components/PricingTable/PricingTable.js +4 -4
  20. package/dist/components/PricingTable/PricingTable.js.map +1 -1
  21. package/dist/components/SignIn/SignIn.js +1 -1
  22. package/dist/components/SignIn/SignIn.js.map +1 -1
  23. package/dist/components/SignUp/SignUp.js +1 -1
  24. package/dist/components/SignUp/SignUp.js.map +1 -1
  25. package/dist/components/SubscriptionStatus/SubscriptionStatus.d.ts +1 -1
  26. package/dist/components/SubscriptionStatus/SubscriptionStatus.d.ts.map +1 -1
  27. package/dist/components/SubscriptionStatus/SubscriptionStatus.js +20 -8
  28. package/dist/components/SubscriptionStatus/SubscriptionStatus.js.map +1 -1
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -1
  32. package/dist/index.js.map +1 -1
  33. package/dist/lib/scoped-theme.d.ts.map +1 -1
  34. package/dist/lib/scoped-theme.js.map +1 -1
  35. package/dist/react/hooks/useBilling.d.ts +11 -0
  36. package/dist/react/hooks/useBilling.d.ts.map +1 -1
  37. package/dist/react/hooks/useBilling.js +28 -0
  38. package/dist/react/hooks/useBilling.js.map +1 -1
  39. package/dist/react/provider/SlyxUpProvider.js +1 -1
  40. package/dist/react/provider/SlyxUpProvider.js.map +1 -1
  41. package/dist/styles.d.ts +1 -1
  42. package/dist/styles.d.ts.map +1 -1
  43. package/dist/styles.js +87 -0
  44. package/dist/styles.js.map +1 -1
  45. package/package.json +2 -2
package/README.md CHANGED
@@ -220,6 +220,13 @@ Three levels, weakest first:
220
220
  />
221
221
  ```
222
222
 
223
+ Shared utility classes (auto-injected stylesheet, theme-aware):
224
+ `slx-card-hover` (lift on hover) · `slx-card-featured` (accent ring glow) ·
225
+ `slx-badge-float` / `slx-badge-current` (floating pills) · `slx-skeleton`
226
+ (shimmer loading block) · `slx-dot` + `slx-dot-live` (pulsing status dot) ·
227
+ `slx-spinner` · `slx-rise-1/2/3` (staggered entrances) · `slx-row-hover` ·
228
+ `slx-price` (gradient display price). Honor `prefers-reduced-motion`.
229
+
223
230
  ### Headless billing hooks — real data for custom designs
224
231
 
225
232
  Build your own UI on live data (no components required):
@@ -228,6 +235,7 @@ Build your own UI on live data (no components required):
228
235
  import {
229
236
  usePlans, // plans for a project
230
237
  useSubscription, // active subscription (pass YOUR projectId!)
238
+ useSubscriptions, // all subscriptions when projectId is unknown
231
239
  useInvoices, // invoice history
232
240
  useCheckout, // checkout(planId, { origin }) → opens Paddle
233
241
  useTransaction, // verify a transaction: { paid, status }
@@ -240,7 +248,23 @@ await checkout(plan.id, { origin: 'https://your-app.com/billing/done' });
240
248
  ```
241
249
 
242
250
  > Always pass your own `projectId` to `useSubscription` — subscriptions are
243
- > scoped per project, and omitting it returns `null`.
251
+ > scoped per project, and omitting it returns `null`. No single projectId?
252
+ > Use `useSubscriptions()` and pick the active one.
253
+
254
+ ### `<CheckoutButton />` — one-line subscribe
255
+
256
+ ```tsx
257
+ import { CheckoutButton } from '@slyxup/ui';
258
+
259
+ <CheckoutButton
260
+ planId={plan.id}
261
+ origin="https://your-app.com/billing/done"
262
+ theme={{ accent: '#7c3aed' }}
263
+ onSuccess={({ transactionId }) => verify(transactionId)}
264
+ >
265
+ Upgrade to Pro
266
+ </CheckoutButton>
267
+ ```
244
268
 
245
269
  ### `<AdminPanel />` — admin dashboard with sk key
246
270
 
@@ -1 +1 @@
1
- {"version":3,"file":"BillingPortal.d.ts","sourceRoot":"","sources":["../../../src/components/BillingPortal/BillingPortal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,UAAU,EAChB,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,kBAAkB,+BAepB"}
1
+ {"version":3,"file":"BillingPortal.d.ts","sourceRoot":"","sources":["../../../src/components/BillingPortal/BillingPortal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,UAAU,EAAiB,MAAM,gCAAgC,CAAC;AAEhF,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,kBAAkB,+BAepB"}
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { injectStyles } from '../../styles';
4
4
  import { CurrentPlanCard, } from '../CurrentPlanCard/CurrentPlanCard';
5
- import { InvoicesTable, } from '../InvoicesTable/InvoicesTable';
5
+ import { InvoicesTable } from '../InvoicesTable/InvoicesTable';
6
6
  /**
7
7
  * Billing section without a full profile: current plan + invoices.
8
8
  * Composes CurrentPlanCard + InvoicesTable — use those directly for
@@ -1 +1 @@
1
- {"version":3,"file":"BillingPortal.js","sourceRoot":"","sources":["../../../src/components/BillingPortal/BillingPortal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EACL,eAAe,GAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,aAAa,GAEd,MAAM,gCAAgC,CAAC;AAiBxC;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,GACU;IACnB,YAAY,EAAE,CAAC;IACf,OAAO,CACL,eACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,aAEtE,KAAC,eAAe,IACd,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,GACZ,EACF,KAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAI,IAC/C,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"BillingPortal.js","sourceRoot":"","sources":["../../../src/components/BillingPortal/BillingPortal.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EACL,eAAe,GAEhB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAmB,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAiBhF;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,EAC5B,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,KAAK,EACL,SAAS,GACU;IACnB,YAAY,EAAE,CAAC;IACf,OAAO,CACL,eACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,aAEtE,KAAC,eAAe,IACd,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,GACZ,EACF,KAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAI,IAC/C,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { CheckoutResult } from '@slyxup/core';
2
+ import type { CSSProperties, ReactNode } from 'react';
3
+ import type { SlyxUpTheme } from '../../theme';
4
+ export interface CheckoutButtonProps {
5
+ planId: string;
6
+ /** Return target carried through payment → success page. Without it the
7
+ * buyer lands on the SlyxUp dashboard after paying. */
8
+ origin?: string;
9
+ openIn?: '_blank' | '_self';
10
+ apiUrl?: string;
11
+ disabled?: boolean;
12
+ onSuccess?: (result: CheckoutResult) => void;
13
+ onError?: (error: Error) => void;
14
+ /** Per-component theme (accent, mode, radius…) — scoped, never global. */
15
+ theme?: SlyxUpTheme;
16
+ style?: CSSProperties;
17
+ className?: string;
18
+ children?: ReactNode;
19
+ }
20
+ /**
21
+ * One-line subscribe button: loading + error states, Paddle overlay/hosted
22
+ * checkout, and return-to-platform — wired. For full control use
23
+ * useCheckout() + your own button.
24
+ */
25
+ export declare function CheckoutButton({ planId, origin, openIn, apiUrl, disabled, onSuccess, onError, theme, style, className, children, }: CheckoutButtonProps): import("react").JSX.Element;
26
+ //# sourceMappingURL=CheckoutButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckoutButton.d.ts","sourceRoot":"","sources":["../../../src/components/CheckoutButton/CheckoutButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf;4DACwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,+BA8CrB"}
@@ -0,0 +1,24 @@
1
+ 'use client';
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useScopedTheme } from '../../lib/scoped-theme';
4
+ import { useCheckout, } from '../../react/hooks/useBilling';
5
+ import { injectStyles } from '../../styles';
6
+ /**
7
+ * One-line subscribe button: loading + error states, Paddle overlay/hosted
8
+ * checkout, and return-to-platform — wired. For full control use
9
+ * useCheckout() + your own button.
10
+ */
11
+ export function CheckoutButton({ planId, origin, openIn, apiUrl, disabled, onSuccess, onError, theme, style, className, children, }) {
12
+ injectStyles();
13
+ const ref = useScopedTheme(theme);
14
+ const { checkout, loading, error } = useCheckout(apiUrl);
15
+ const opts = origin || openIn ? { origin, openIn } : undefined;
16
+ return (_jsxs(_Fragment, { children: [_jsx("button", { ref: ref, type: "button", className: `slx-btn ${className ?? ''}`, style: style, disabled: disabled || loading, onClick: () => {
17
+ void checkout(planId, opts).then((result) => onSuccess?.(result), (e) => onError?.(e instanceof Error ? e : new Error(String(e))));
18
+ }, children: loading ? (_jsxs(_Fragment, { children: [_jsx("span", { className: "slx-spinner", "aria-hidden": "true" }), "Opening checkout\u2026"] })) : ((children ?? 'Subscribe')) }), error && !loading && (_jsx("p", { style: {
19
+ fontSize: 12.5,
20
+ color: 'var(--slx-danger)',
21
+ marginTop: 8,
22
+ }, children: error }))] }));
23
+ }
24
+ //# sourceMappingURL=CheckoutButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckoutButton.js","sourceRoot":"","sources":["../../../src/components/CheckoutButton/CheckoutButton.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEL,WAAW,GACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAoB5C;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,EAC7B,MAAM,EACN,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAS,EACT,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,GACY;IACpB,YAAY,EAAE,CAAC;IACf,MAAM,GAAG,GAAG,cAAc,CAAoB,KAAK,CAAC,CAAC;IACrD,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAEzD,MAAM,IAAI,GACR,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAEpD,OAAO,CACL,8BACE,iBACE,GAAG,EAAE,GAAG,EACR,IAAI,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E,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,YAAY,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,oBAAoB,+BA4EtB"}
1
+ {"version":3,"file":"CurrentPlanCard.d.ts","sourceRoot":"","sources":["../../../src/components/CurrentPlanCard/CurrentPlanCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,oEAAoE;IACpE,YAAY,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,oBAAoB,+BAwEtB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { injectStyles } from '../../styles';
4
3
  import { useScopedTheme } from '../../lib/scoped-theme';
4
+ import { injectStyles } from '../../styles';
5
5
  import { SubscriptionStatus } from '../SubscriptionStatus/SubscriptionStatus';
6
6
  /**
7
7
  * Standalone "your plan" card — drop it anywhere without mounting a full
@@ -22,9 +22,7 @@ export function CurrentPlanCard({ subscription, onCancel, labels, theme, style,
22
22
  fontSize: 12.5,
23
23
  color: 'var(--slx-muted)',
24
24
  marginTop: 4,
25
- }, children: ["Renews", ' ', new Date(subscription.currentPeriodEnd).toLocaleDateString(), subscription.cancelAtPeriodEnd
26
- ? ' (cancels at period end)'
27
- : ''] }))] }), subscription.status !== 'canceled' &&
25
+ }, children: ["Renews", ' ', new Date(subscription.currentPeriodEnd).toLocaleDateString(), subscription.cancelAtPeriodEnd ? ' (cancels at period end)' : ''] }))] }), subscription.status !== 'canceled' &&
28
26
  !subscription.cancelAtPeriodEnd &&
29
27
  onCancel && (_jsx("button", { type: "button", onClick: onCancel, style: {
30
28
  fontSize: 13,
@@ -1 +1 @@
1
- {"version":3,"file":"CurrentPlanCard.js","sourceRoot":"","sources":["../../../src/components/CurrentPlanCard/CurrentPlanCard.tsx"],"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AAE,yBACzD,KAAC,kBAAkB,IAAC,MAAM,EAAE,YAAY,CAAC,MAAM,GAAI,IACzD,EACH,YAAY,CAAC,gBAAgB,IAAI,CAChC,aACE,KAAK,EAAE;gCACL,QAAQ,EAAE,IAAI;gCACd,KAAK,EAAE,kBAAkB;gCACzB,SAAS,EAAE,CAAC;6BACb,uBAEM,GAAG,EACT,IAAI,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,EAAE,EAC5D,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,IAC/D,CACL,IACG,EACL,YAAY,CAAC,MAAM,KAAK,UAAU;oBACjC,CAAC,YAAY,CAAC,iBAAiB;oBAC/B,QAAQ,IAAI,CACV,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE;wBACL,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,UAAU,EAAE,aAAa;wBACzB,MAAM,EAAE,6BAA6B;wBACrC,YAAY,EAAE,mBAAmB;wBACjC,OAAO,EAAE,UAAU;wBACnB,MAAM,EAAE,SAAS;wBACjB,KAAK,EAAE,mBAAmB;qBAC3B,YAEA,MAAM,EAAE,MAAM,IAAI,QAAQ,GACpB,CACV,IACC,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"InvoicesTable.d.ts","sourceRoot":"","sources":["../../../src/components/InvoicesTable/InvoicesTable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IACpD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAkB,EAClB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,kBAAkB,sCAoEpB"}
1
+ {"version":3,"file":"InvoicesTable.d.ts","sourceRoot":"","sources":["../../../src/components/InvoicesTable/InvoicesTable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IACpD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAkB,EAClB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,kBAAkB,sCAqEpB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { injectStyles } from '../../styles';
4
3
  import { useScopedTheme } from '../../lib/scoped-theme';
4
+ import { injectStyles } from '../../styles';
5
5
  /** Invoice history table. Renders nothing when there are no invoices. */
6
6
  export function InvoicesTable({ invoices, title = 'Invoices', theme, style, className, }) {
7
7
  injectStyles();
@@ -11,7 +11,7 @@ export function InvoicesTable({ invoices, title = 'Invoices', theme, style, clas
11
11
  return (_jsxs("div", { ref: ref, className: `slx-card ${className ?? ''}`, style: style, children: [_jsx("h3", { style: { fontSize: 15, fontWeight: 600, marginBottom: 12 }, children: title }), _jsxs("table", { style: { width: '100%', fontSize: 13, borderCollapse: 'collapse' }, children: [_jsx("thead", { children: _jsxs("tr", { style: {
12
12
  borderBottom: '1px solid var(--slx-border)',
13
13
  textAlign: 'left',
14
- }, children: [_jsx("th", { style: { padding: '6px 0', fontWeight: 550 }, children: "Date" }), _jsx("th", { style: { padding: '6px 0', fontWeight: 550 }, children: "Amount" }), _jsx("th", { style: { padding: '6px 0', fontWeight: 550 }, children: "Status" })] }) }), _jsx("tbody", { children: invoices.map((inv) => (_jsxs("tr", { style: { borderBottom: '1px solid var(--slx-border)' }, children: [_jsx("td", { style: { padding: '8px 0' }, children: inv.billedAt
14
+ }, children: [_jsx("th", { style: { padding: '6px 0', fontWeight: 550 }, children: "Date" }), _jsx("th", { style: { padding: '6px 0', fontWeight: 550 }, children: "Amount" }), _jsx("th", { style: { padding: '6px 0', fontWeight: 550 }, children: "Status" })] }) }), _jsx("tbody", { children: invoices.map((inv) => (_jsxs("tr", { className: "slx-row-hover", style: { borderBottom: '1px solid var(--slx-border)' }, children: [_jsx("td", { style: { padding: '8px 0' }, children: inv.billedAt
15
15
  ? new Date(inv.billedAt).toLocaleDateString()
16
16
  : '—' }), _jsxs("td", { style: { padding: '8px 0' }, children: ["$", (inv.amount / 100).toFixed(2), " ", inv.currency] }), _jsx("td", { style: { padding: '8px 0' }, children: _jsx("span", { style: {
17
17
  fontSize: 11.5,
@@ -1 +1 @@
1
- {"version":3,"file":"InvoicesTable.js","sourceRoot":"","sources":["../../../src/components/InvoicesTable/InvoicesTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAmBxD,yEAAyE;AACzE,MAAM,UAAU,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,GAAG,UAAU,EAClB,KAAK,EACL,KAAK,EACL,SAAS,GACU;IACnB,YAAY,EAAE,CAAC;IACf,MAAM,GAAG,GAAG,cAAc,CAAiB,KAAK,CAAC,CAAC;IAClD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACvC,OAAO,CACL,eAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,aACnE,aAAI,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE,EAAE,YAC3D,KAAK,GACH,EACL,iBACE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,aAElE,0BACE,cACE,KAAK,EAAE;gCACL,YAAY,EAAE,6BAA6B;gCAC3C,SAAS,EAAE,MAAM;6BAClB,aAED,aAAI,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,qBAAW,EAC3D,aAAI,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,uBAAa,EAC7D,aAAI,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,uBAAa,IAC1D,GAC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EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,OAAe,EACf,YAA6B,EAC7B,QAAwB,EACxB,gBAA4B,EAC5B,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,aAAa,+BA8Ef"}
@@ -1,33 +1,17 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { injectStyles } from '../../styles';
4
3
  import { useScopedTheme } from '../../lib/scoped-theme';
4
+ import { injectStyles } from '../../styles';
5
5
  /** Single pricing card — use standalone or inside PricingTable. */
6
6
  export function PlanCard({ plan, current = false, currentLabel = 'Current plan', ctaLabel = 'Get started', popularBadgeText = 'POPULAR', onSelect, loading, theme, style, className, }) {
7
7
  injectStyles();
8
8
  const ref = useScopedTheme(theme);
9
- return (_jsxs("div", { ref: ref, className: `slx-card${plan.isPopular ? ' slx-card-popular' : ''} ${className ?? ''}`, style: {
10
- position: plan.isPopular ? 'relative' : undefined,
11
- borderColor: plan.isPopular ? 'var(--slx-accent)' : undefined,
9
+ return (_jsxs("div", { ref: ref, className: `slx-card slx-card-hover${plan.isPopular && !current ? ' slx-card-featured' : ''} ${className ?? ''}`, style: {
10
+ position: 'relative',
12
11
  display: 'flex',
13
12
  flexDirection: 'column',
14
13
  ...style,
15
- }, children: [plan.isPopular && (_jsx("span", { style: {
16
- position: 'absolute',
17
- top: -11,
18
- right: 20,
19
- fontSize: 10.5,
20
- fontFamily: 'var(--slx-mono)',
21
- background: 'linear-gradient(135deg, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12))',
22
- color: '#fff',
23
- padding: '3px 10px',
24
- borderRadius: 999,
25
- }, children: popularBadgeText })), _jsx("h3", { style: { fontSize: 15, fontWeight: 550, color: 'var(--slx-muted)' }, children: plan.name }), _jsxs("div", { style: { margin: '8px 0 2px' }, children: [_jsxs("span", { style: {
26
- fontSize: 38,
27
- fontWeight: 750,
28
- letterSpacing: '-0.03em',
29
- fontFamily: 'var(--slx-display)',
30
- }, children: ["$", (plan.amount / 100).toFixed(0)] }), _jsxs("span", { style: { fontSize: 14, color: 'var(--slx-muted)' }, children: ["/", plan.interval] })] }), plan.trialDays ? (_jsxs("p", { style: {
14
+ }, children: [plan.isPopular && !current && (_jsx("span", { className: "slx-badge-float", children: popularBadgeText })), current && _jsx("span", { className: "slx-badge-current", children: currentLabel }), _jsx("h3", { style: { fontSize: 15, fontWeight: 550, color: 'var(--slx-muted)' }, children: plan.name }), _jsxs("div", { style: { margin: '8px 0 2px' }, children: [_jsxs("span", { className: "slx-price", children: ["$", (plan.amount / 100).toFixed(0)] }), _jsxs("span", { style: { fontSize: 14, color: 'var(--slx-muted)' }, children: ["/", plan.interval] })] }), plan.trialDays ? (_jsxs("p", { style: {
31
15
  fontSize: 12,
32
16
  color: 'var(--slx-accent)',
33
17
  marginBottom: 4,
@@ -1 +1 @@
1
- {"version":3,"file":"PlanCard.js","sourceRoot":"","sources":["../../../src/components/PlanCard/PlanCard.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AA4BxD,mEAAmE;AACnE,MAAM,UAAU,QAAQ,CAAC,EACvB,IAAI,EACJ,OAAO,GAAG,KAAK,EACf,YAAY,GAAG,cAAc,EAC7B,QAAQ,GAAG,aAAa,EACxB,gBAAgB,GAAG,SAAS,EAC5B,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,GACK;IACd,YAAY,EAAE,CAAC;IACf,MAAM,GAAG,GAAG,cAAc,CAAiB,KAAK,CAAC,CAAC;IAClD,OAAO,CACL,eACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,WAAW,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI,SAAS,IAAI,EAAE,EAAE,EACpF,KAAK,EAAE;YACL,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;YACjD,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS;YAC7D,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,GAAG,KAAK;SACT,aAEA,IAAI,CAAC,SAAS,IAAI,CACjB,eACE,KAAK,EAAE;oBACL,QAAQ,EAAE,UAAU;oBACpB,GAAG,EAAE,CAAC,EAAE;oBACR,KAAK,EAAE,EAAE;oBACT,QAAQ,EAAE,IAAI;oBACd,UAAU,EAAE,iBAAiB;oBAC7B,UAAU,EACR,mIAAmI;oBACrI,KAAK,EA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,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,aAAoB,EACpB,YAA6B,EAC7B,QAAwB,EACxB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,iBAAiB,+BA+DnB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { injectStyles } from '../../styles';
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
4
3
  import { useScopedTheme } from '../../lib/scoped-theme';
4
+ import { injectStyles } from '../../styles';
5
5
  import { PlanCard } from '../PlanCard/PlanCard';
6
6
  const PRICING_GRID_CSS = [
7
7
  '.slx-pricing-grid{display:grid;gap:16px;grid-template-columns:1fr}',
@@ -16,8 +16,8 @@ export function PricingTable({ plans, onSelect, loading, currentPlanId = null, c
16
16
  const cols = Math.min(Math.max(plans.length, 1), 3);
17
17
  const gridClass = `slx-pricing-grid slx-pricing-grid--${cols} ${className ?? ''}`;
18
18
  if (loading) {
19
- return (_jsxs(_Fragment, { children: [_jsx("style", { children: PRICING_GRID_CSS }), _jsx("div", { ref: ref, className: gridClass, style: style, children: [1, 2, 3].map((i) => (_jsx("div", { className: "slx-card", style: { minHeight: 320 }, "aria-busy": "true" }, i))) })] }));
19
+ return (_jsxs(_Fragment, { children: [_jsx("style", { children: PRICING_GRID_CSS }), _jsx("div", { ref: ref, className: gridClass, style: style, "aria-busy": "true", children: [1, 2, 3].map((i) => (_jsxs("div", { className: "slx-card", style: { minHeight: 320 }, children: [_jsx("div", { className: "slx-skeleton", style: { height: 18, width: '45%' } }), _jsx("div", { className: "slx-skeleton", style: { height: 40, width: '60%', marginTop: 14 } }), _jsx("div", { className: "slx-skeleton", style: { height: 12, width: '80%', marginTop: 18 } }), _jsx("div", { className: "slx-skeleton", style: { height: 12, width: '70%', marginTop: 10 } }), _jsx("div", { className: "slx-skeleton", style: { height: 12, width: '75%', marginTop: 10 } }), _jsx("div", { className: "slx-skeleton", style: { height: 40, marginTop: 26 } })] }, i))) })] }));
20
20
  }
21
- return (_jsxs(_Fragment, { children: [_jsx("style", { children: PRICING_GRID_CSS }), _jsx("div", { ref: ref, className: gridClass, style: style, children: plans.map((plan) => (_jsx(PlanCard, { plan: plan, current: currentPlanId != null && plan.id === currentPlanId, currentLabel: currentLabel, ctaLabel: ctaLabel, onSelect: onSelect, loading: loading }, plan.id))) })] }));
21
+ return (_jsxs(_Fragment, { children: [_jsx("style", { children: PRICING_GRID_CSS }), _jsx("div", { ref: ref, className: gridClass, style: style, children: plans.map((plan, i) => (_jsx(PlanCard, { plan: plan, current: currentPlanId != null && plan.id === currentPlanId, currentLabel: currentLabel, ctaLabel: ctaLabel, onSelect: onSelect, loading: loading, className: i < 3 ? `slx-rise-${i + 1}` : undefined }, plan.id))) })] }));
22
22
  }
23
23
  //# sourceMappingURL=PricingTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PricingTable.js","sourceRoot":"","sources":["../../../src/components/PricingTable/PricingTable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAqB,MAAM,sBAAsB,CAAC;AAInE,MAAM,gBAAgB,GAAG;IACvB,oEAAoE;IACpE,qJAAqJ;IACrJ,gHAAgH;CACjH,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAkBX,yEAAyE;AACzE,MAAM,UAAU,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,OAAO,EACP,aAAa,GAAG,IAAI,EACpB,YAAY,GAAG,cAAc,EAC7B,QAAQ,GAAG,aAAa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,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,IAP7C,IAAI,CAAC,EAAE,CAQZ,CACH,CAAC,GACE,IACL,CACJ,CAAC;AACJ,CAAC"}
@@ -67,7 +67,7 @@ export function SignIn({ social = true, onSuccess, onSignUpClick, onForgotPasswo
67
67
  const missingKey = !client.publishableKey ||
68
68
  client.publishableKey === 'pk_test_missing' ||
69
69
  client.publishableKey.includes('REPLACE');
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" })] })), _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
+ 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: () => {
71
71
  setChallengeToken(null);
72
72
  setTfaCode('');
73
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" })] }))] })] }));
@@ -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;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,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,EAAE,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EACrB,SAAS,EAAC,WAAW,EACrB,IAAI,EAAC,MAAM,EACX,YAAY,EAAC,UAAU,EACvB,WAAW,EAAC,6BAA6B,EACzC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,QAAQ,SACR,IACE,EACN,eAAK,SAAS,EAAC,WAAW,aACxB,eAAK,SAAS,EAAC,SAAS,aACtB,gBAAO,SAAS,EAAC,WAAW,EAAC,OAAO,EAAC,qBAAqB,yBAElD,EACP,qBAAqB,IAAI,CACxB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,qBAAqB,EAC/B,OAAO,EAAE,qBAAqB,iCAGvB,CACV,IACG,EACN,KAAC,aAAa,IACZ,EAAE,EAAC,qBAAqB,EACxB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAC,kBAAkB,EAC/B,WAAW,EAAC,kDAAU,EACtB,QAAQ,SACR,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,aAAa,CAAC,CAAC,CAAC,SAAS,IAC1B,IACJ,CACR,EAEA,aAAa,IAAI,CAChB,aAAG,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"}
@@ -53,6 +53,6 @@ export function SignUp({ social = true, onSuccess, onSignInClick, layout = 'cent
53
53
  const missingKey = !client.publishableKey ||
54
54
  client.publishableKey === 'pk_test_missing' ||
55
55
  client.publishableKey.includes('REPLACE');
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: ".env.local" })] })), _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
+ 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" })] }))] })] }));
57
57
  }
58
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;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAgBjD,2CAA2C;AAC3C,MAAM,UAAU,MAAM,CAAC,EACrB,MAAM,GAAG,IAAI,EACb,SAAS,EACT,aAAa,EACb,MAAM,GAAG,UAAU,EACnB,QAAQ,EAAE,YAAY,GAAG,IAAI,EAC7B,UAAU,GAAG,qBAAqB,EAClC,aAAa,GAAG,4CAA4C,EAC5D,WAAW,GAAG,CAAC,8BAA8B,EAAE,uCA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EAAC,OAAO,EAAC,qBAAqB,yBAElD,EACR,KAAC,aAAa,IACZ,EAAE,EAAC,qBAAqB,EACxB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,WAAW,EACrB,YAAY,EAAC,cAAc,EAC3B,WAAW,EAAC,uBAAuB,EACnC,QAAQ,QACR,SAAS,EAAE,CAAC,GACZ,EACF,YAAG,SAAS,EAAC,UAAU,qEAEnB,IACA,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,mBAAmB,CAAC,CAAC,CAAC,gBAAgB,IACvC,IACJ,EAEN,aAAa,IAAI,CAChB,aAAG,SAAS,EAAC,YAAY,yCACE,GAAG,EAC5B,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,UAAU,EAAC,OAAO,EAAE,aAAa,wBAExD,IACP,CACL,IACK,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -7,6 +7,6 @@ export interface SubscriptionStatusProps {
7
7
  style?: CSSProperties;
8
8
  className?: string;
9
9
  }
10
- /** Tiny status pill use anywhere you show plan state. */
10
+ /** Tiny status pill with a (pulsing, when live) dot. */
11
11
  export declare function SubscriptionStatus({ status, theme, style, className, }: SubscriptionStatusProps): import("react").JSX.Element;
12
12
  //# sourceMappingURL=SubscriptionStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubscriptionStatus.d.ts","sourceRoot":"","sources":["../../../src/components/SubscriptionStatus/SubscriptionStatus.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD,2DAA2D;AAC3D,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,uBAAuB,+BAqBzB"}
1
+ {"version":3,"file":"SubscriptionStatus.d.ts","sourceRoot":"","sources":["../../../src/components/SubscriptionStatus/SubscriptionStatus.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA8BD,wDAAwD;AACxD,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,uBAAuB,+BAsBzB"}
@@ -1,24 +1,36 @@
1
1
  'use client';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { injectStyles } from '../../styles';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
3
  import { useScopedTheme } from '../../lib/scoped-theme';
4
+ import { injectStyles } from '../../styles';
5
5
  function toneFor(status) {
6
6
  switch (status) {
7
7
  case 'active':
8
8
  case 'trialing':
9
- return { background: 'rgba(52,211,153,.12)', color: '#34d399' };
9
+ return {
10
+ background: 'rgba(52,211,153,.12)',
11
+ color: '#34d399',
12
+ live: true,
13
+ };
10
14
  case 'past_due':
11
- return { background: 'rgba(214,69,80,.1)', color: 'var(--slx-danger)' };
15
+ return {
16
+ background: 'rgba(214,69,80,.1)',
17
+ color: 'var(--slx-danger)',
18
+ live: false,
19
+ };
12
20
  default:
13
- return { background: 'var(--slx-accent-soft)', color: 'var(--slx-muted)' };
21
+ return {
22
+ background: 'var(--slx-accent-soft)',
23
+ color: 'var(--slx-muted)',
24
+ live: false,
25
+ };
14
26
  }
15
27
  }
16
- /** Tiny status pill use anywhere you show plan state. */
28
+ /** Tiny status pill with a (pulsing, when live) dot. */
17
29
  export function SubscriptionStatus({ status, theme, style, className, }) {
18
30
  injectStyles();
19
31
  const ref = useScopedTheme(theme);
20
32
  const tone = toneFor(status);
21
- return (_jsx("span", { ref: ref, className: className, style: {
33
+ return (_jsxs("span", { ref: ref, className: className, style: {
22
34
  fontSize: 11.5,
23
35
  fontWeight: 600,
24
36
  padding: '2px 10px',
@@ -26,6 +38,6 @@ export function SubscriptionStatus({ status, theme, style, className, }) {
26
38
  background: tone.background,
27
39
  color: tone.color,
28
40
  ...style,
29
- }, children: status }));
41
+ }, children: [_jsx("span", { className: `slx-dot${tone.live ? ' slx-dot-live' : ''}` }), status] }));
30
42
  }
31
43
  //# sourceMappingURL=SubscriptionStatus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SubscriptionStatus.js","sourceRoot":"","sources":["../../../src/components/SubscriptionStatus/SubscriptionStatus.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAUxD,SAAS,OAAO,CAAC,MAAc;IAI7B,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,UAAU;YACb,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAClE,KAAK,UAAU;YACb,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;QAC1E;YACE,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC/E,CAAC;AACH,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,GACe;IACxB,YAAY,EAAE,CAAC;IACf,MAAM,GAAG,GAAG,cAAc,CAAkB,KAAK,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO,CACL,eACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;YACL,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,UAAU;YACnB,YAAY,EAAE,GAAG;YACjB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,GAAG,KAAK;SACT,YAEA,MAAM,GACF,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"SubscriptionStatus.js","sourceRoot":"","sources":["../../../src/components/SubscriptionStatus/SubscriptionStatus.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAW5C,SAAS,OAAO,CAAC,MAAc;IAK7B,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ,CAAC;QACd,KAAK,UAAU;YACb,OAAO;gBACL,UAAU,EAAE,sBAAsB;gBAClC,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,IAAI;aACX,CAAC;QACJ,KAAK,UAAU;YACb,OAAO;gBACL,UAAU,EAAE,oBAAoB;gBAChC,KAAK,EAAE,mBAAmB;gBAC1B,IAAI,EAAE,KAAK;aACZ,CAAC;QACJ;YACE,OAAO;gBACL,UAAU,EAAE,wBAAwB;gBACpC,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,KAAK;aACZ,CAAC;IACN,CAAC;AACH,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,kBAAkB,CAAC,EACjC,MAAM,EACN,KAAK,EACL,KAAK,EACL,SAAS,GACe;IACxB,YAAY,EAAE,CAAC;IACf,MAAM,GAAG,GAAG,cAAc,CAAkB,KAAK,CAAC,CAAC;IACnD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO,CACL,gBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;YACL,QAAQ,EAAE,IAAI;YACd,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,UAAU;YACnB,YAAY,EAAE,GAAG;YACjB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,GAAG,KAAK;SACT,aAED,eAAM,SAAS,EAAE,UAAU,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,GAAI,EAChE,MAAM,IACF,CACR,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export { useSession } from './react/hooks/useSession';
9
9
  export { useTwoFactor } from './react/hooks/useTwoFactor';
10
10
  export { useConnectedAccounts } from './react/hooks/useConnectedAccounts';
11
11
  export { useTheme, type ThemePreference } from './react/hooks/useTheme';
12
- export { useBilling, usePlans, useSubscription, useInvoices, useCheckout, useTransaction, type CheckoutHookOptions, type TransactionStatus, } from './react/hooks/useBilling';
12
+ export { useBilling, usePlans, useSubscription, useSubscriptions, useInvoices, useCheckout, useTransaction, type CheckoutHookOptions, type TransactionStatus, } from './react/hooks/useBilling';
13
13
  export { SignIn, type SignInProps } from './components/SignIn/SignIn';
14
14
  export { PasswordField, type PasswordFieldProps, } from './components/PasswordField';
15
15
  export { OtpInput, type OtpInputProps } from './components/OtpInput';
@@ -29,6 +29,7 @@ export { PlanCard, type PlanCardProps, type PlanCardPlan, } from './components/P
29
29
  export { CurrentPlanCard, type CurrentPlanCardProps, type CurrentPlanSubscription, type CurrentPlanCardLabels, } from './components/CurrentPlanCard/CurrentPlanCard';
30
30
  export { InvoicesTable, type InvoicesTableProps, type InvoiceRow, } from './components/InvoicesTable/InvoicesTable';
31
31
  export { SubscriptionStatus, type SubscriptionStatusProps, } from './components/SubscriptionStatus/SubscriptionStatus';
32
+ export { CheckoutButton, type CheckoutButtonProps, } from './components/CheckoutButton/CheckoutButton';
32
33
  export { AdminPanel, type AdminPanelProps, } from './components/AdminPanel/AdminPanel';
33
34
  export { initPaddle, openPaddleCheckout } from './lib/paddle';
34
35
  /**
@@ -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,EACjB,KAAK,OAAO,GACb,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,GACX,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,WAAW,EACX,cAAc,EACd,KAAK,gBAAgB,GACtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;A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,EACd,KAAK,mBAAmB,GACzB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,YAAY,GAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,GAC3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,UAAU,GAChB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAK9D;;;GAGG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAKnC"}
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ export { useSession } from './react/hooks/useSession';
10
10
  export { useTwoFactor } from './react/hooks/useTwoFactor';
11
11
  export { useConnectedAccounts } from './react/hooks/useConnectedAccounts';
12
12
  export { useTheme } from './react/hooks/useTheme';
13
- export { useBilling, usePlans, useSubscription, useInvoices, useCheckout, useTransaction, } from './react/hooks/useBilling';
13
+ export { useBilling, usePlans, useSubscription, useSubscriptions, useInvoices, useCheckout, useTransaction, } from './react/hooks/useBilling';
14
14
  export { SignIn } from './components/SignIn/SignIn';
15
15
  export { PasswordField, } from './components/PasswordField';
16
16
  export { OtpInput } from './components/OtpInput';
@@ -31,6 +31,7 @@ export { PlanCard, } from './components/PlanCard/PlanCard';
31
31
  export { CurrentPlanCard, } from './components/CurrentPlanCard/CurrentPlanCard';
32
32
  export { InvoicesTable, } from './components/InvoicesTable/InvoicesTable';
33
33
  export { SubscriptionStatus, } from './components/SubscriptionStatus/SubscriptionStatus';
34
+ export { CheckoutButton, } from './components/CheckoutButton/CheckoutButton';
34
35
  export { AdminPanel, } from './components/AdminPanel/AdminPanel';
35
36
  export { initPaddle, openPaddleCheckout } from './lib/paddle';
36
37
  import { useEffect } from 'react';
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,GAUN,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,WAAW,EACX,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,GACX,MAAM,SAAS,CAAC;AACjB,qEAAqE;AACrE,OAAO,EACL,cAAc,GAEf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,WAAW,EACX,cAAc,GAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC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C;;;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"scoped-theme.d.ts","sourceRoot":"","sources":["../../src/lib/scoped-theme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,cAAc,EACnE,KAAK,CAAC,EAAE,WAAW,8CAQpB"}
1
+ {"version":3,"file":"scoped-theme.d.ts","sourceRoot":"","sources":["../../src/lib/scoped-theme.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAc,MAAM,UAAU,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,cAAc,EACnE,KAAK,CAAC,EAAE,WAAW,8CAQpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"scoped-theme.js","sourceRoot":"","sources":["../../src/lib/scoped-theme.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAoB,MAAM,UAAU,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,KAAmB;IAEnB,MAAM,GAAG,GAAG,MAAM,CAAW,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO;YAAE,OAAO;QACnC,OAAO,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACZ,OAAO,GAAG,CAAC;AACb,CAAC"}
1
+ {"version":3,"file":"scoped-theme.js","sourceRoot":"","sources":["../../src/lib/scoped-theme.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAoB,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAC5B,KAAmB;IAEnB,MAAM,GAAG,GAAG,MAAM,CAAW,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO;YAAE,OAAO;QACnC,OAAO,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACZ,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -34,6 +34,17 @@ export interface TransactionStatus {
34
34
  paid: boolean;
35
35
  checkoutUrl: string | null;
36
36
  }
37
+ /**
38
+ * All non-canceled subscriptions for the session user, across projects.
39
+ * Prefer this over useSubscription when the UI doesn't know a single
40
+ * projectId upfront (multi-project platforms).
41
+ */
42
+ export declare function useSubscriptions(apiUrl?: string): {
43
+ subscriptions: Subscription[];
44
+ loading: boolean;
45
+ error: string | null;
46
+ reload: () => Promise<void>;
47
+ };
37
48
  /**
38
49
  * Verify a checkout transaction with Paddle — headless building block for
39
50
  * custom success screens. `paid` is true only for completed transactions.
@@ -1 +1 @@
1
- {"version":3,"file":"useBilling.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/useBilling.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,YAAY,EAClB,MAAM,cAAc,CAAC;AAKtB,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM;;EAMzC;AAED,wBAAgB,QAAQ,CAAC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C,MAAM,CAAC,EAAE,MAAM;;;EAc1C;AAED,MAAM,WAAW,mBAAmB;IAClC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM;uBAMxB,MAAM,SAAS,mBAAmB;;;EAgBpD;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM;;;;;EAuB/C;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,MAAM,CAAC,EAAE,MAAM;;;;;EA8BhB"}
@@ -86,6 +86,34 @@ export function useCheckout(apiUrl) {
86
86
  }, [client]);
87
87
  return { checkout, loading, error };
88
88
  }
89
+ /**
90
+ * All non-canceled subscriptions for the session user, across projects.
91
+ * Prefer this over useSubscription when the UI doesn't know a single
92
+ * projectId upfront (multi-project platforms).
93
+ */
94
+ export function useSubscriptions(apiUrl) {
95
+ const { client } = useBilling(apiUrl);
96
+ const [subscriptions, setSubscriptions] = useState([]);
97
+ const [loading, setLoading] = useState(true);
98
+ const [error, setError] = useState(null);
99
+ const reload = useCallback(async () => {
100
+ try {
101
+ const list = await client.listSubscriptions();
102
+ setSubscriptions(list);
103
+ setError(null);
104
+ }
105
+ catch (e) {
106
+ setError(e instanceof Error ? e.message : 'Failed');
107
+ }
108
+ finally {
109
+ setLoading(false);
110
+ }
111
+ }, [client]);
112
+ useEffect(() => {
113
+ void reload();
114
+ }, [reload]);
115
+ return { subscriptions, loading, error, reload };
116
+ }
89
117
  /**
90
118
  * Verify a checkout transaction with Paddle — headless building block for
91
119
  * custom success screens. `paid` is true only for completed transactions.
@@ -1 +1 @@
1
- {"version":3,"file":"useBilling.js","sourceRoot":"","sources":["../../../src/react/hooks/useBilling.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EACL,aAAa,GAId,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAElE,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC;AAE1C,MAAM,UAAU,UAAU,CAAC,MAAe;IACxC,MAAM,MAAM,GAAG,OAAO,CACpB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,EAC9D,CAAC,MAAM,CAAC,CACT,CAAC;IACF,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,SAA6B,EAAE,MAAe;IACrE,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,EAAE,CAAC,CAAC;IAC/C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,UAAU,CAAC,KAAK,CAAC,CAAC;YAClB,OAAO;QACT,CAAC;QACD,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,MAAM;aACH,SAAS,CAAC,SAAS,CAAC;aACpB,IAAI,CAAC,QAAQ,CAAC;aAC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I,EAAE;QACpC,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,CAAC,IAAI,CAAC,CAAC;YACd,UAAU,CAAC,KAAK,CAAC,CAAC;YAClB,OAAO;QACT,CAAC;QACD,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CAAC,CAAC;YACb,QAAQ,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,QAAQ,CAAC,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QACtD,CAAC;gBAAS,CAAC;YACT,UAAU,CAAC,KAAK,CAAC,CAAC;QACpB,CAAC;IACH,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAE5B,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,MAAM,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AACvD,CAAC"}
@@ -39,7 +39,7 @@ export function SlyxUpProvider({ publishableKey, apiUrl, children, }) {
39
39
  const resolvedApiUrl = apiUrl ?? resolveEnvApiUrl();
40
40
  const client = useMemo(() => {
41
41
  if (!resolvedKey && typeof window !== 'undefined') {
42
- console.warn('[SlyxUp] No publishableKey provided. Tried NEXT_PUBLIC_SLYXUP_PUBLISHABLE_KEY, VITE_SLYXUP_PUBLISHABLE_KEY, REACT_APP_SLYXUP_PUBLISHABLE_KEY, EXPO_PUBLIC_SLYXUP_PUBLISHABLE_KEY, SLYXUP_PUBLISHABLE_KEY. Set one in .env.local or pass publishableKey prop.');
42
+ console.warn('[SlyxUp] No publishableKey provided. Tried NEXT_PUBLIC_SLYXUP_PUBLISHABLE_KEY, VITE_SLYXUP_PUBLISHABLE_KEY, REACT_APP_SLYXUP_PUBLISHABLE_KEY, EXPO_PUBLIC_SLYXUP_PUBLISHABLE_KEY, SLYXUP_PUBLISHABLE_KEY. Set one in .env.local or pass publishableKey prop. Get your key: `npx @slyxup/cli keys create --project-id <id> --type publishable`');
43
43
  }
44
44
  return new SlyxupClient({
45
45
  publishableKey: resolvedKey ?? 'pk_test_missing',
@@ -1 +1 @@
1
- {"version":3,"file":"SlyxUpProvider.js","sourceRoot":"","sources":["../../../src/react/provider/SlyxUpProvider.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAEL,WAAW,EACX,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAyB,MAAM,yBAAyB,CAAC;AAQ7E,SAAS,aAAa;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,GACP,UAGD,EAAE,OAAO,EAAE,GAAG,CAAC;QAChB,IAAI,GAAG,EAAE,CAAC;YACR,OAAO,CACL,GAAG,CAAC,kCAAkC;gBACtC,GAAG,CAAC,2BAA2B;gBAC/B,GAAG,CAAC,gCAAgC;gBACpC,GAAG,CAAC,kCAAkC;gBACtC,GAAG,CAAC,sBAAsB;gBAC1B,GAAG,CAAC,oCAAoC;gBACxC,SAAS,CACV,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,MAAM,CAAC,CAAA,CAAC;IACV,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,gBAAgB;IACvB,IAAI,CAAC;QACH,MAAM,GAAG,GACP,UAGD,EAAE,OAAO,EAAE,GAAG,CAAC;QAChB,IAAI,GAAG,EAAE,CAAC;YACR,OAAO,CACL,GAAG,CAAC,0BAA0B;gBAC9B,GAAG,CAAC,mBAAmB;gBACvB,GAAG,CA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CAAC,GAAG,EAAE;QACb,MAAM,CAAC,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QAC1D,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,MAAM,KAAK,GAAqB;QAC9B,MAAM;QACN,GAAG,KAAK;QACR,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,IAAI,IAAI;QAC9B,YAAY,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,IAAI;QACvC,MAAM;KACP,CAAC;IAEF,OAAO,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAwB,CAAC;AAC/E,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: #cc333f;\n --slx-success: #177245;\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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\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: #cc333f;\n --slx-success: #177245;\n}\n\n/* \u2500\u2500 Accent presets (applyTheme or data-slyxup-accent) \u2500\u2500 */\n.slyxup-root[data-slyxup-accent='mono'] {\n --slx-accent: #101014;\n --slx-accent-hover: #000000;\n --slx-accent-soft: rgba(16, 16, 20, 0.08);\n --slx-accent-2: #3f3f48;\n}\n@media (prefers-color-scheme: dark) {\n .slyxup-root[data-slyxup-accent='mono']:not([data-slyxup-theme='light']) {\n --slx-accent: #fafafa;\n --slx-accent-hover: #ffffff;\n --slx-accent-soft: rgba(250, 250, 250, 0.14);\n --slx-accent-2: #a1a1aa;\n }\n}\n.slyxup-root[data-slyxup-theme='dark'][data-slyxup-accent='mono'] {\n --slx-accent: #fafafa;\n --slx-accent-hover: #ffffff;\n --slx-accent-soft: rgba(250, 250, 250, 0.14);\n --slx-accent-2: #a1a1aa;\n}\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, color-mix(in srgb, var(--slx-accent-hover) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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, color-mix(in srgb, var(--slx-accent-hover) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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 New primitives: OTP / meter / copy / empty \u2500\u2500 */\n.slx-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n.slx-otp-wrap { margin: 4px 0 15px; }\n.slx-otp {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n border: none;\n margin: 0;\n padding: 0;\n min-width: 0;\n}\n.slx-otp-box.slx-input {\n width: 100%;\n max-width: 52px;\n aspect-ratio: 0.86;\n padding: 0;\n text-align: center;\n font-size: 20px;\n font-weight: 700;\n font-family: var(--slx-display);\n}\n.slx-meter-wrap { display: flex; align-items: center; gap: 10px; margin: 8px 0 15px; min-height: 12px; }\n.slx-meter { display: flex; gap: 4px; flex: 1; }\n.slx-meter i {\n height: 4px;\n flex: 1;\n border-radius: 99px;\n background: var(--slx-border-strong);\n transition: background 0.2s;\n}\n.slx-meter-label { font-size: 12px; font-weight: 600; white-space: nowrap; }\n.slx-copyfield-wrap { margin-bottom: 15px; }\n.slx-copyfield {\n display: flex;\n align-items: center;\n gap: 8px;\n background: var(--slx-bg-subtle);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 6px 6px 6px 13px;\n min-width: 0;\n}\n.slx-copyfield-value {\n flex: 1;\n min-width: 0;\n font-family: var(--slx-mono);\n font-size: 12.5px;\n color: var(--slx-ink);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.slx-copyfield-btn { flex-shrink: 0; }\n.slx-copyfield-btn svg { width: 14px; height: 14px; }\n.slx-empty {\n border: 1px dashed var(--slx-border-strong);\n border-radius: var(--slx-radius-lg);\n padding: 32px 24px;\n text-align: center;\n}\n.slx-empty-icon {\n width: 44px;\n height: 44px;\n border-radius: 12px;\n margin: 0 auto 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--slx-accent-soft);\n color: var(--slx-accent);\n}\n.slx-empty-title { font-size: 14px; font-weight: 650; color: var(--slx-ink-strong); margin: 0 0 4px; }\n.slx-empty-desc { font-size: 13px; color: var(--slx-muted); line-height: 1.55; margin: 0; }\n.slx-empty-action { margin-top: 16px; display: flex; justify-content: center; }\n@media (max-width: 460px) {\n .slx-otp { gap: 6px; }\n .slx-otp-box.slx-input { font-size: 17px; }\n .slx-empty { padding: 24px 18px; }\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: #cc333f;\n --slx-success: #177245;\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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\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: #cc333f;\n --slx-success: #177245;\n}\n\n/* \u2500\u2500 Accent presets (applyTheme or data-slyxup-accent) \u2500\u2500 */\n.slyxup-root[data-slyxup-accent='mono'] {\n --slx-accent: #101014;\n --slx-accent-hover: #000000;\n --slx-accent-soft: rgba(16, 16, 20, 0.08);\n --slx-accent-2: #3f3f48;\n}\n@media (prefers-color-scheme: dark) {\n .slyxup-root[data-slyxup-accent='mono']:not([data-slyxup-theme='light']) {\n --slx-accent: #fafafa;\n --slx-accent-hover: #ffffff;\n --slx-accent-soft: rgba(250, 250, 250, 0.14);\n --slx-accent-2: #a1a1aa;\n }\n}\n.slyxup-root[data-slyxup-theme='dark'][data-slyxup-accent='mono'] {\n --slx-accent: #fafafa;\n --slx-accent-hover: #ffffff;\n --slx-accent-soft: rgba(250, 250, 250, 0.14);\n --slx-accent-2: #a1a1aa;\n}\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, color-mix(in srgb, var(--slx-accent-hover) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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, color-mix(in srgb, var(--slx-accent-hover) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12) 0%, color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12) 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 New primitives: OTP / meter / copy / empty \u2500\u2500 */\n.slx-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n.slx-otp-wrap { margin: 4px 0 15px; }\n.slx-otp {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n border: none;\n margin: 0;\n padding: 0;\n min-width: 0;\n}\n.slx-otp-box.slx-input {\n width: 100%;\n max-width: 52px;\n aspect-ratio: 0.86;\n padding: 0;\n text-align: center;\n font-size: 20px;\n font-weight: 700;\n font-family: var(--slx-display);\n}\n.slx-meter-wrap { display: flex; align-items: center; gap: 10px; margin: 8px 0 15px; min-height: 12px; }\n.slx-meter { display: flex; gap: 4px; flex: 1; }\n.slx-meter i {\n height: 4px;\n flex: 1;\n border-radius: 99px;\n background: var(--slx-border-strong);\n transition: background 0.2s;\n}\n.slx-meter-label { font-size: 12px; font-weight: 600; white-space: nowrap; }\n.slx-copyfield-wrap { margin-bottom: 15px; }\n.slx-copyfield {\n display: flex;\n align-items: center;\n gap: 8px;\n background: var(--slx-bg-subtle);\n border: 1px solid var(--slx-border);\n border-radius: var(--slx-radius);\n padding: 6px 6px 6px 13px;\n min-width: 0;\n}\n.slx-copyfield-value {\n flex: 1;\n min-width: 0;\n font-family: var(--slx-mono);\n font-size: 12.5px;\n color: var(--slx-ink);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.slx-copyfield-btn { flex-shrink: 0; }\n.slx-copyfield-btn svg { width: 14px; height: 14px; }\n.slx-empty {\n border: 1px dashed var(--slx-border-strong);\n border-radius: var(--slx-radius-lg);\n padding: 32px 24px;\n text-align: center;\n}\n.slx-empty-icon {\n width: 44px;\n height: 44px;\n border-radius: 12px;\n margin: 0 auto 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: var(--slx-accent-soft);\n color: var(--slx-accent);\n}\n.slx-empty-title { font-size: 14px; font-weight: 650; color: var(--slx-ink-strong); margin: 0 0 4px; }\n.slx-empty-desc { font-size: 13px; color: var(--slx-muted); line-height: 1.55; margin: 0; }\n.slx-empty-action { margin-top: 16px; display: flex; justify-content: center; }\n@media (max-width: 460px) {\n .slx-otp { gap: 6px; }\n .slx-otp-box.slx-input { font-size: 17px; }\n .slx-empty { padding: 24px 18px; }\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\n/* \u2500\u2500 Modern richness layer: motion, shimmer, glow, status \u2500\u2500 */\n@keyframes slx-shimmer {\n 0% { background-position: -400px 0; }\n 100% { background-position: 400px 0; }\n}\n@keyframes slx-pulse-dot {\n 0%, 100% { opacity: 1; transform: scale(1); }\n 50% { opacity: .55; transform: scale(.82); }\n}\n@keyframes slx-pop-in {\n from { opacity: 0; transform: scale(.92) translateY(4px); }\n to { opacity: 1; transform: scale(1) translateY(0); }\n}\n/* Shimmer skeleton block \u2014 loading states that feel alive. */\n.slx-skeleton {\n border-radius: var(--slx-radius);\n background: linear-gradient(\n 90deg,\n color-mix(in srgb, var(--slx-ink) 7%, transparent) 25%,\n color-mix(in srgb, var(--slx-ink) 13%, transparent) 37%,\n color-mix(in srgb, var(--slx-ink) 7%, transparent) 63%\n );\n background-size: 800px 100%;\n animation: slx-shimmer 1.4s ease-in-out infinite;\n}\n/* Lift-on-hover for interactive cards (pricing, plans). */\n.slx-card-hover {\n transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;\n}\n.slx-card-hover:hover {\n transform: translateY(-3px);\n box-shadow: var(--slx-shadow-pop);\n}\n/* Accent ring glow for featured/popular cards. */\n.slx-card-featured {\n border: 1.5px solid var(--slx-accent);\n box-shadow:\n 0 0 0 3px var(--slx-accent-soft),\n var(--slx-shadow-card);\n}\n/* Floating badge (popular / current-plan). */\n.slx-badge-float {\n position: absolute; top: -11px; right: 20px;\n font-size: 10.5px; font-weight: 700; letter-spacing: .06em;\n font-family: var(--slx-mono);\n background: linear-gradient(135deg, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));\n color: #fff; padding: 3px 10px; border-radius: 999px;\n box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--slx-accent) 55%, transparent);\n animation: slx-pop-in .3s cubic-bezier(.22,.9,.32,1.2) both;\n}\n/* Current-plan badge (success tint). */\n.slx-badge-current {\n position: absolute; top: -11px; right: 20px;\n font-size: 10.5px; font-weight: 700; letter-spacing: .06em;\n font-family: var(--slx-mono);\n background: linear-gradient(135deg, #059669, #34d399);\n color: #fff; padding: 3px 10px; border-radius: 999px;\n box-shadow: 0 4px 12px -2px rgba(5,150,105,.5);\n animation: slx-pop-in .3s cubic-bezier(.22,.9,.32,1.2) both;\n}\n/* Pulsing status dot. */\n.slx-dot {\n display: inline-block; width: 7px; height: 7px; border-radius: 50%;\n background: currentColor; margin-right: 6px; vertical-align: 1px;\n}\n.slx-dot-live { animation: slx-pulse-dot 1.8s ease-in-out infinite; }\n/* Inline spinner for buttons. */\n.slx-spinner {\n width: 14px; height: 14px; border-radius: 50%;\n border: 2px solid currentColor; border-top-color: transparent;\n animation: slx-spin .7s linear infinite; flex-shrink: 0;\n}\n/* Staggered entrances for grids. */\n.slx-rise-1 { animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both; animation-delay: .04s; }\n.slx-rise-2 { animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both; animation-delay: .1s; }\n.slx-rise-3 { animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both; animation-delay: .16s; }\n/* Table row hover. */\n.slx-row-hover { transition: background .12s ease; }\n.slx-row-hover:hover { background: var(--slx-bg-subtle); }\n/* Gradient display price. */\n.slx-price {\n font-size: 38px; font-weight: 750; letter-spacing: -0.03em;\n font-family: var(--slx-display);\n background: linear-gradient(180deg, var(--slx-ink-strong), var(--slx-ink));\n -webkit-background-clip: text; background-clip: text; color: transparent;\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. */
@@ -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,w7pCAm5Bf,CAAC;AAIF,qFAAqF;AACrF,wBAAgB,YAAY,IAAI,IAAI,CAqBnC;AAED,8CAA8C;AAC9C,wBAAgB,cAAc,IAAI,OAAO,CAExC"}
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,0/wCA0+Bf,CAAC;AAIF,qFAAqF;AACrF,wBAAgB,YAAY,IAAI,IAAI,CAqBnC;AAED,8CAA8C;AAC9C,wBAAgB,cAAc,IAAI,OAAO,CAExC"}
package/dist/styles.js CHANGED
@@ -919,6 +919,93 @@ export const CSS = `
919
919
  .slx-profile-head { padding: 12px 12px 10px; }
920
920
  .slx-profile-title { font-size: 16px; }
921
921
  }
922
+
923
+ /* ── Modern richness layer: motion, shimmer, glow, status ── */
924
+ @keyframes slx-shimmer {
925
+ 0% { background-position: -400px 0; }
926
+ 100% { background-position: 400px 0; }
927
+ }
928
+ @keyframes slx-pulse-dot {
929
+ 0%, 100% { opacity: 1; transform: scale(1); }
930
+ 50% { opacity: .55; transform: scale(.82); }
931
+ }
932
+ @keyframes slx-pop-in {
933
+ from { opacity: 0; transform: scale(.92) translateY(4px); }
934
+ to { opacity: 1; transform: scale(1) translateY(0); }
935
+ }
936
+ /* Shimmer skeleton block — loading states that feel alive. */
937
+ .slx-skeleton {
938
+ border-radius: var(--slx-radius);
939
+ background: linear-gradient(
940
+ 90deg,
941
+ color-mix(in srgb, var(--slx-ink) 7%, transparent) 25%,
942
+ color-mix(in srgb, var(--slx-ink) 13%, transparent) 37%,
943
+ color-mix(in srgb, var(--slx-ink) 7%, transparent) 63%
944
+ );
945
+ background-size: 800px 100%;
946
+ animation: slx-shimmer 1.4s ease-in-out infinite;
947
+ }
948
+ /* Lift-on-hover for interactive cards (pricing, plans). */
949
+ .slx-card-hover {
950
+ transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
951
+ }
952
+ .slx-card-hover:hover {
953
+ transform: translateY(-3px);
954
+ box-shadow: var(--slx-shadow-pop);
955
+ }
956
+ /* Accent ring glow for featured/popular cards. */
957
+ .slx-card-featured {
958
+ border: 1.5px solid var(--slx-accent);
959
+ box-shadow:
960
+ 0 0 0 3px var(--slx-accent-soft),
961
+ var(--slx-shadow-card);
962
+ }
963
+ /* Floating badge (popular / current-plan). */
964
+ .slx-badge-float {
965
+ position: absolute; top: -11px; right: 20px;
966
+ font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
967
+ font-family: var(--slx-mono);
968
+ background: linear-gradient(135deg, color-mix(in srgb, var(--slx-accent) 78%, #0c0c12), color-mix(in srgb, var(--slx-accent-2) 55%, #0c0c12));
969
+ color: #fff; padding: 3px 10px; border-radius: 999px;
970
+ box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--slx-accent) 55%, transparent);
971
+ animation: slx-pop-in .3s cubic-bezier(.22,.9,.32,1.2) both;
972
+ }
973
+ /* Current-plan badge (success tint). */
974
+ .slx-badge-current {
975
+ position: absolute; top: -11px; right: 20px;
976
+ font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
977
+ font-family: var(--slx-mono);
978
+ background: linear-gradient(135deg, #059669, #34d399);
979
+ color: #fff; padding: 3px 10px; border-radius: 999px;
980
+ box-shadow: 0 4px 12px -2px rgba(5,150,105,.5);
981
+ animation: slx-pop-in .3s cubic-bezier(.22,.9,.32,1.2) both;
982
+ }
983
+ /* Pulsing status dot. */
984
+ .slx-dot {
985
+ display: inline-block; width: 7px; height: 7px; border-radius: 50%;
986
+ background: currentColor; margin-right: 6px; vertical-align: 1px;
987
+ }
988
+ .slx-dot-live { animation: slx-pulse-dot 1.8s ease-in-out infinite; }
989
+ /* Inline spinner for buttons. */
990
+ .slx-spinner {
991
+ width: 14px; height: 14px; border-radius: 50%;
992
+ border: 2px solid currentColor; border-top-color: transparent;
993
+ animation: slx-spin .7s linear infinite; flex-shrink: 0;
994
+ }
995
+ /* Staggered entrances for grids. */
996
+ .slx-rise-1 { animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both; animation-delay: .04s; }
997
+ .slx-rise-2 { animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both; animation-delay: .1s; }
998
+ .slx-rise-3 { animation: slx-rise .38s cubic-bezier(.22,.9,.32,1) both; animation-delay: .16s; }
999
+ /* Table row hover. */
1000
+ .slx-row-hover { transition: background .12s ease; }
1001
+ .slx-row-hover:hover { background: var(--slx-bg-subtle); }
1002
+ /* Gradient display price. */
1003
+ .slx-price {
1004
+ font-size: 38px; font-weight: 750; letter-spacing: -0.03em;
1005
+ font-family: var(--slx-display);
1006
+ background: linear-gradient(180deg, var(--slx-ink-strong), var(--slx-ink));
1007
+ -webkit-background-clip: text; background-clip: text; color: transparent;
1008
+ }
922
1009
  `;
923
1010
  let injected = false;
924
1011
  /** Inject the SlyxUp stylesheet + fonts once per document. Idempotent + SSR-safe. */
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAE5B,MAAM,CAAC,MAAM,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
2
2
  "name": "@slyxup/ui",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "SlyxUp UI components — auth, billing, Paddle checkout",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "react": "^18 || ^19"
27
27
  },
28
28
  "dependencies": {
29
- "@slyxup/core": "2.0.1"
29
+ "@slyxup/core": "2.0.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@testing-library/dom": "^10.4.0",