@haatlabs-core/ui 0.19.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +14 -3
  2. package/dist/client/LoginPage.d.ts +8 -2
  3. package/dist/client/LoginPage.js +24 -4
  4. package/dist/client/LoginPage.js.map +1 -1
  5. package/dist/client/UsagePage.d.ts +10 -1
  6. package/dist/client/UsagePage.js +44 -14
  7. package/dist/client/UsagePage.js.map +1 -1
  8. package/dist/client/index.d.ts +13 -1
  9. package/dist/client/index.js +11 -0
  10. package/dist/client/index.js.map +1 -1
  11. package/dist/client/sign-in-styles.d.ts +1 -1
  12. package/dist/client/sign-in-styles.js +6 -0
  13. package/dist/client/sign-in-styles.js.map +1 -1
  14. package/dist/client/usage-css.d.ts +1 -1
  15. package/dist/client/usage-css.js +5 -0
  16. package/dist/client/usage-css.js.map +1 -1
  17. package/dist/index.d.ts +9 -3
  18. package/dist/index.js +8 -3
  19. package/dist/index.js.map +1 -1
  20. package/dist/notifications/NotificationBell.d.ts +12 -0
  21. package/dist/notifications/NotificationBell.js +94 -0
  22. package/dist/notifications/NotificationBell.js.map +1 -0
  23. package/dist/notifications/NotificationInbox.d.ts +23 -0
  24. package/dist/notifications/NotificationInbox.js +92 -0
  25. package/dist/notifications/NotificationInbox.js.map +1 -0
  26. package/dist/notifications/NotificationPreferences.d.ts +10 -0
  27. package/dist/notifications/NotificationPreferences.js +135 -0
  28. package/dist/notifications/NotificationPreferences.js.map +1 -0
  29. package/dist/notifications/notifications-css.d.ts +6 -0
  30. package/dist/notifications/notifications-css.js +62 -0
  31. package/dist/notifications/notifications-css.js.map +1 -0
  32. package/dist/notifications/types.d.ts +80 -0
  33. package/dist/notifications/types.js +12 -0
  34. package/dist/notifications/types.js.map +1 -0
  35. package/dist/notifications/use-notification-stream.d.ts +15 -0
  36. package/dist/notifications/use-notification-stream.js +123 -0
  37. package/dist/notifications/use-notification-stream.js.map +1 -0
  38. package/dist/shell/Account.d.ts +24 -0
  39. package/dist/shell/Account.js +48 -0
  40. package/dist/shell/Account.js.map +1 -0
  41. package/dist/shell/AppShell.d.ts +13 -7
  42. package/dist/shell/AppShell.js +139 -65
  43. package/dist/shell/AppShell.js.map +1 -1
  44. package/dist/shell/BottomNav.d.ts +34 -0
  45. package/dist/shell/BottomNav.js +40 -0
  46. package/dist/shell/BottomNav.js.map +1 -0
  47. package/dist/shell/MoreSheet.d.ts +21 -0
  48. package/dist/shell/MoreSheet.js +46 -0
  49. package/dist/shell/MoreSheet.js.map +1 -0
  50. package/dist/shell/ShellSearch.d.ts +6 -2
  51. package/dist/shell/ShellSearch.js +3 -3
  52. package/dist/shell/ShellSearch.js.map +1 -1
  53. package/dist/shell/ShortcutsDialog.d.ts +11 -0
  54. package/dist/shell/ShortcutsDialog.js +26 -0
  55. package/dist/shell/ShortcutsDialog.js.map +1 -0
  56. package/dist/shell/bottom-nav-css.d.ts +6 -0
  57. package/dist/shell/bottom-nav-css.js +40 -0
  58. package/dist/shell/bottom-nav-css.js.map +1 -0
  59. package/dist/shell/breakpoint.d.ts +12 -0
  60. package/dist/shell/breakpoint.js +29 -0
  61. package/dist/shell/breakpoint.js.map +1 -0
  62. package/dist/shell/focus-trap.d.ts +9 -0
  63. package/dist/shell/focus-trap.js +35 -0
  64. package/dist/shell/focus-trap.js.map +1 -0
  65. package/dist/shell/icons.d.ts +23 -0
  66. package/dist/shell/icons.js +21 -0
  67. package/dist/shell/icons.js.map +1 -0
  68. package/dist/shell/nav.d.ts +22 -0
  69. package/dist/shell/nav.js +22 -0
  70. package/dist/shell/nav.js.map +1 -1
  71. package/dist/shell/shell-css.d.ts +1 -1
  72. package/dist/shell/shell-css.js +67 -16
  73. package/dist/shell/shell-css.js.map +1 -1
  74. package/dist/shell/shortcuts.d.ts +22 -0
  75. package/dist/shell/shortcuts.js +48 -0
  76. package/dist/shell/shortcuts.js.map +1 -0
  77. package/dist/shell/sidebar-state.d.ts +5 -0
  78. package/dist/shell/sidebar-state.js +38 -0
  79. package/dist/shell/sidebar-state.js.map +1 -0
  80. package/dist/theme/ThemeStyles.js +2 -1
  81. package/dist/theme/ThemeStyles.js.map +1 -1
  82. package/dist/theme/ThemeSwitch.d.ts +12 -2
  83. package/dist/theme/ThemeSwitch.js +19 -3
  84. package/dist/theme/ThemeSwitch.js.map +1 -1
  85. package/dist/theme/tokens.d.ts +7 -2
  86. package/dist/theme/tokens.js +24 -1
  87. package/dist/theme/tokens.js.map +1 -1
  88. package/package.json +4 -4
package/README.md CHANGED
@@ -48,8 +48,17 @@ import { AppShell, ThemeStyles } from '@haatlabs-core/ui';
48
48
  pages' CSP forbids inline scripts, and without it a dark page flashes light.
49
49
  - **Tokens:** `--hl-*` CSS variables (`--hl-surface`, `--hl-text`, `--hl-accent`, …), every
50
50
  accent tested for 4.5:1 contrast in both themes.
51
- - **Pieces:** `PageHeader`, `Card`, `Callout`, `Checklist`, `StatusChip`, `ShellSearch`.
51
+ - **Pieces:** `PageHeader`, `Card`, `Callout`, `Checklist`, `StatusChip`, `ShellSearch`,
52
+ `NavIcon` (page icons for `NavItem.icon`: `icon: <NavIcon name="home" />`).
52
53
  - The shell leaves `<main>` to the pages; its content area is `#main`, the skip link's target.
54
+ - **Phones and tablets (below 1024px, `NARROW_QUERY`):** no sidebar; a bottom bar has the pages
55
+ marked `bottom: true` (at most 4; with none marked, the first 4) and More, a sheet with the
56
+ rest, the theme switch and the account with Sign out. The top bar is one row: the brand mark,
57
+ a search button that opens the search over the page, `notifications` and `statusChip`. An
58
+ app's own frame (the embedded Shopify app) renders `<MobileNav nav={…} search={search} />` and
59
+ `<style>{BOTTOM_NAV_CSS}</style>` itself.
60
+ - **Links** have no underline, a pointer and the accent on hover; drop the app's own
61
+ `text-decoration: underline` rules.
53
62
  - Adopting it in an app: drop `LoginPage`'s `accent`/`glow` props (the theme's accent and link
54
63
  colour apply), and point the app's own colour variables at the theme
55
64
  (`--surface: var(--hl-surface, #fff)`), so its pages follow the dark theme.
@@ -65,7 +74,9 @@ What an app's pages use to talk to its API, and the sign-in pages:
65
74
  `<appName>_csrf`. Inside Shopify admin, pass `{ kind: 'bearer', getToken }`.
66
75
  - `createQueryClient()`: reads and writes that fail on the network or with a 5xx are tried
67
76
  again, twice at most; a 401 asks for `me` again.
68
- - `LoginPage({ client, aside })` and `EmailSignInPanel({ client })`: signing in with a code,
69
- and giving a store installed from Shopify an email to sign in with.
77
+ - `LoginPage({ client, aside, brand })` and `EmailSignInPanel({ client })`: signing in with a
78
+ code, and giving a store installed from Shopify an email to sign in with. Below 1024px the
79
+ `aside` panel is left out and `brand` (the product's mark and name, drawn for the panel's
80
+ dark ground; by default a `SignInAside`'s `logo`) sits in a slim row above the card.
70
81
 
71
82
  `@tanstack/react-query` and `zod` are peers.
@@ -21,11 +21,17 @@ export type SocialProvider = 'google' | 'github';
21
21
  * Signing in has no password: a code is sent to the email, and giving it back signs the
22
22
  * person in. An email that has no account gets one the first time, so there is no
23
23
  * separate registration. `aside` is the app's own panel beside the form: its logo and what
24
- * it does.
24
+ * it does. Below 1024px (phones and tablets) the panel is left out: a slim row with `brand`
25
+ * (the product's mark and name; by default a SignInAside's name) sits above the card.
25
26
  */
26
- export declare function LoginPage({ client, aside, meKey, accent, glow, legal, }: {
27
+ export declare function LoginPage({ client, aside, brand, meKey, accent, glow, legal, }: {
27
28
  client: SignInClient;
28
29
  aside: ReactNode;
30
+ /**
31
+ * The product's mark and name for the slim row on phones and tablets, which is the panel's
32
+ * dark ground (`--hl-panel`): the logo the panel itself shows. By default a SignInAside's.
33
+ */
34
+ brand?: ReactNode;
29
35
  meKey?: QueryKey;
30
36
  /** The app's colour: the button, links and focus ring. */
31
37
  accent?: string;
@@ -2,8 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
3
3
  import { resendLabel, useResendWait } from './resend-wait.js';
4
4
  import { SIGN_IN_CODE_DIGITS, SIGN_IN_CODE_MINUTES } from '@haatlabs-core/auth-contracts';
5
- import { useEffect, useState } from 'react';
5
+ import { isValidElement, useEffect, useState } from 'react';
6
+ import { useNarrow } from '../shell/breakpoint.js';
6
7
  import { GitHubMark, GoogleMark } from './provider-marks.js';
8
+ import { SignInAside } from './SignInAside.js';
7
9
  import { SIGN_IN_CSS } from './sign-in-styles.js';
8
10
  import { ApiError } from './transport.js';
9
11
  const SOCIAL = {
@@ -25,6 +27,21 @@ function socialFailure(search) {
25
27
  }
26
28
  }
27
29
  const CODE_LENGTH = SIGN_IN_CODE_DIGITS;
30
+ /**
31
+ * The phones' slim row: the app's own `brand`, else what its SignInAside panel shows (the
32
+ * logo, drawn for the panel's dark ground like the row, or the name when it has none).
33
+ */
34
+ function brandOf(brand, aside) {
35
+ if (brand !== undefined)
36
+ return brand;
37
+ if (isValidElement(aside) && aside.type === SignInAside) {
38
+ const { logo, name } = aside.props;
39
+ if (logo !== undefined && logo !== null)
40
+ return logo;
41
+ return typeof name === 'string' ? name : null;
42
+ }
43
+ return null;
44
+ }
28
45
  /**
29
46
  * A social sign-in's start, told to come back to the page it began on (an extension's connect
30
47
  * page, say), without a failed sign-in's own notes. The start page needs no return.
@@ -42,10 +59,13 @@ function withReturn(start) {
42
59
  * Signing in has no password: a code is sent to the email, and giving it back signs the
43
60
  * person in. An email that has no account gets one the first time, so there is no
44
61
  * separate registration. `aside` is the app's own panel beside the form: its logo and what
45
- * it does.
62
+ * it does. Below 1024px (phones and tablets) the panel is left out: a slim row with `brand`
63
+ * (the product's mark and name; by default a SignInAside's name) sits above the card.
46
64
  */
47
- export function LoginPage({ client, aside, meKey = ['me'], accent = 'var(--hl-accent, #2447d6)', glow, legal = { terms: 'https://haatlabs.shop/terms/', privacy: 'https://haatlabs.shop/privacy/' }, }) {
65
+ export function LoginPage({ client, aside, brand, meKey = ['me'], accent = 'var(--hl-accent, #2447d6)', glow, legal = { terms: 'https://haatlabs.shop/terms/', privacy: 'https://haatlabs.shop/privacy/' }, }) {
48
66
  const queryClient = useQueryClient();
67
+ const narrow = useNarrow();
68
+ const slimBrand = narrow ? brandOf(brand, aside) : null;
49
69
  const [email, setEmail] = useState('');
50
70
  const [code, setCode] = useState('');
51
71
  /** The email a code was sent to; null while the email is still being typed. */
@@ -98,7 +118,7 @@ export function LoginPage({ client, aside, meKey = ['me'], accent = 'var(--hl-ac
98
118
  event.preventDefault();
99
119
  signIn.mutate();
100
120
  };
101
- return (_jsxs("div", { className: "auth hl-auth", style: { '--auth-accent': accent, '--auth-glow': glow ?? accent }, children: [_jsx("style", { children: SIGN_IN_CSS }), aside, _jsx("main", { className: "hl-auth__main", children: _jsxs("div", { className: "hl-auth__card", children: [_jsx("h1", { children: "Sign in" }), socialError && sentTo === null && _jsx("p", { role: "alert", children: socialError }), sentTo === null && startUrl && providers.length > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { className: "hl-auth__social", children: providers.map((provider) => {
121
+ return (_jsxs("div", { className: "auth hl-auth", style: { '--auth-accent': accent, '--auth-glow': glow ?? accent }, children: [_jsx("style", { children: SIGN_IN_CSS }), !narrow && aside, slimBrand !== null && slimBrand !== undefined && (_jsx("div", { className: "hl-auth__brand", children: slimBrand })), _jsx("main", { className: "hl-auth__main", children: _jsxs("div", { className: "hl-auth__card", children: [_jsx("h1", { children: "Sign in" }), socialError && sentTo === null && _jsx("p", { role: "alert", children: socialError }), sentTo === null && startUrl && providers.length > 0 && (_jsxs(_Fragment, { children: [_jsx("div", { className: "hl-auth__social", children: providers.map((provider) => {
102
122
  const { label, mark: Mark } = SOCIAL[provider];
103
123
  return (_jsxs("a", { className: "hl-auth__provider", href: withReturn(startUrl(provider)), children: [_jsx(Mark, {}), label] }, provider));
104
124
  }) }), _jsx("p", { className: "hl-auth__or", children: _jsx("span", { children: "or" }) })] })), sentTo === null ? (_jsxs("form", { onSubmit: onEmail, children: [_jsxs("label", { children: ["Email", _jsx("input", { type: "email", autoComplete: "email", required: true, value: email, onChange: (e) => setEmail(e.target.value) })] }), _jsx("button", { type: "submit", disabled: send.isPending, children: "Send me a code" }), send.error && _jsx("p", { role: "alert", children: send.error.message }), send.error instanceof ApiError && send.error.code === 'RATE_LIMITED' && (_jsx("button", { type: "button", className: "link", disabled: email.trim() === '', onClick: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"LoginPage.js","sourceRoot":"","sources":["../../src/client/LoginPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAc1C,MAAM,MAAM,GAAwE;IAClF,MAAM,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,UAAU,EAAE;IAC3D,MAAM,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,UAAU,EAAE;CAC5D,CAAC;AAEF,2FAA2F;AAC3F,SAAS,aAAa,CAAC,MAAc;IACnC,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;IAC3C,IAAI,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACnD,QAAQ,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7B,KAAK,kBAAkB;YACrB,OAAO,kEAAkE,CAAC;QAC5E,KAAK,kBAAkB;Y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AAO,GAAK,EAC1D,IAAI,CAAC,KAAK,IAAI,YAAG,IAAI,EAAC,OAAO,YAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAK,EACvD,aAAG,SAAS,EAAC,KAAK,aAChB,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,MAAM,EAChB,QAAQ,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,EACzC,OAAO,EAAE,GAAG,EAAE;gDACZ,MAAM,CAAC,KAAK,EAAE,CAAC;gDACf,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;4CACtB,CAAC,YAEA,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAChB,EACT,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,GAAG,EAAE;gDACZ,MAAM,CAAC,KAAK,EAAE,CAAC;gDACf,IAAI,CAAC,KAAK,EAAE,CAAC;gDACb,SAAS,CAAC,IAAI,CAAC,CAAC;4CAClB,CAAC,kCAGM,IACP,IACC,CACR,EACD,aAAG,SAAS,EAAC,eAAe,gDACK,YAAG,IAAI,EAAE,KAAK,CAAC,KAAK,sBAAW,UAAK,GAAG,EACtE,YAAG,IAAI,EAAE,KAAK,CAAC,OAAO,+BAAoB,SACxC,IACA,GACD,IACH,CACP,CAAC;AACJ,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
2
  /** The gateways a plan is bought through. */
3
3
  export type PaymentProvider = 'stripe' | 'razorpay' | 'shopify';
4
+ /** How often a price charges. A yearly plan's limits are still for each month. */
5
+ export type PriceInterval = 'MONTH' | 'YEAR';
4
6
  /** `GET usage`, as nest-billing answers it. */
5
7
  export interface UsageData {
6
8
  plan: {
@@ -17,6 +19,8 @@ export interface UsageData {
17
19
  limit: number | null;
18
20
  }[];
19
21
  managedBy: PaymentProvider | null;
22
+ /** How often the plan held is charged for; monthly when left out. */
23
+ interval?: PriceInterval;
20
24
  }
21
25
  export interface PlanData {
22
26
  code: string;
@@ -28,10 +32,12 @@ export interface PlanData {
28
32
  }[];
29
33
  includes?: Record<string, boolean | undefined>;
30
34
  caps?: Record<string, number | null | undefined>;
35
+ /** A price without an interval is monthly. */
31
36
  prices: {
32
37
  provider: PaymentProvider;
33
38
  currency: string;
34
39
  amountMinor: number;
40
+ interval?: PriceInterval;
35
41
  }[];
36
42
  }
37
43
  /** `GET plans`. */
@@ -47,12 +53,15 @@ export interface BillingClient {
47
53
  planCode: string;
48
54
  provider: PaymentProvider;
49
55
  currency: string;
56
+ /** Sent only for a yearly price: monthly when left out. */
57
+ interval?: 'YEAR';
50
58
  }): Promise<{
51
59
  url: string;
52
60
  }>;
53
61
  cancelRenewal(): Promise<unknown>;
54
62
  /** Shopify billing, for an app with an embedded Shopify app; used only with `shopifyBilling`. */
55
- startShopifyCheckout?(planCode: string): Promise<{
63
+ /** `interval` is given only for a yearly price. */
64
+ startShopifyCheckout?(planCode: string, interval?: 'YEAR'): Promise<{
56
65
  url: string;
57
66
  }>;
58
67
  confirmShopifyPlan?(): Promise<{
@@ -27,6 +27,11 @@ const DECIMAL = 10;
27
27
  const count = new Intl.NumberFormat('en-GB');
28
28
  const date = new Intl.DateTimeFormat('en-GB', { dateStyle: 'long', timeZone: 'UTC' });
29
29
  const startOf = (day) => Date.parse(`${day}T00:00:00Z`);
30
+ const PER = {
31
+ MONTH: { per: 'per month', a: 'a month' },
32
+ YEAR: { per: 'per year', a: 'a year' },
33
+ };
34
+ const intervalOf = (price) => price.interval ?? 'MONTH';
30
35
  /** An amount in a currency's smallest unit, as money: 4900 USD is $49.00. */
31
36
  function money(amountMinor, currency) {
32
37
  try {
@@ -51,6 +56,8 @@ export function UsagePage(props) {
51
56
  const queryClient = useQueryClient();
52
57
  const [params, setParams] = useSearchParams();
53
58
  const [confirmingStop, setConfirmingStop] = useState(false);
59
+ // Until one is chosen, the interval shown is the plan held's.
60
+ const [chosenInterval, setChosenInterval] = useState(null);
54
61
  const usage = useQuery({ queryKey: ['usage'], queryFn: () => client.getUsage() });
55
62
  const plans = useQuery({ queryKey: ['plans'], queryFn: () => client.listPlans() });
56
63
  const buy = useMutation({
@@ -63,7 +70,11 @@ export function UsagePage(props) {
63
70
  onSuccess: () => queryClient.invalidateQueries({ queryKey: ['usage'] }),
64
71
  });
65
72
  const upgrade = useMutation({
66
- mutationFn: (planCode) => shopifyMethod(client, 'startShopifyCheckout')(planCode),
73
+ mutationFn: ({ planCode, interval }) => {
74
+ const start = shopifyMethod(client, 'startShopifyCheckout');
75
+ // A monthly purchase is asked for as it always was.
76
+ return interval === 'YEAR' ? start(planCode, 'YEAR') : start(planCode);
77
+ },
67
78
  // Shopify's approval page cannot open inside the app's frame: the whole window goes there.
68
79
  onSuccess: ({ url }) => {
69
80
  window.open(url, '_top');
@@ -108,6 +119,7 @@ export function UsagePage(props) {
108
119
  if (usage.error)
109
120
  return _jsx("p", { role: "alert", children: usage.error.message });
110
121
  const { plan, period, metrics, managedBy } = usage.data;
122
+ const heldInterval = usage.data.interval ?? 'MONTH';
111
123
  const providers = plans.data?.providers ?? [];
112
124
  const allPlans = plans.data?.plans ?? [];
113
125
  // A limit of zero means the plan does not include the feature: nothing to count.
@@ -149,38 +161,56 @@ export function UsagePage(props) {
149
161
  : [];
150
162
  const columnClass = (entry) => entry.code === plan.code ? 'current' : undefined;
151
163
  // Going to a plan listed before the one held is not an upgrade, and neither is changing
152
- // a plan Shopify already bills: both are a switch.
164
+ // a plan Shopify already bills, nor the plan held at its other interval: all are a switch.
153
165
  const position = (code) => allPlans.findIndex((entry) => entry.code === code);
154
- const changeTo = (entry) => managedBy === 'shopify' || position(entry.code) < position(plan.code) ? 'Switch' : 'Upgrade';
155
- /** A plan can be bought when it has a price here and is not the one already held. */
156
- const canBuy = (entry) => entry.code !== plan.code && entry.prices.length > 0;
166
+ const changeTo = (entry) => managedBy === 'shopify' || position(entry.code) <= position(plan.code) ? 'Switch' : 'Upgrade';
167
+ // The switch shows only when some plan is sold yearly; until then every price is monthly.
168
+ const yearlySold = allPlans.some((entry) => entry.prices.some((price) => intervalOf(price) === 'YEAR'));
169
+ const interval = yearlySold ? (chosenInterval ?? heldInterval) : 'MONTH';
170
+ /** A plan's prices at the interval shown. */
171
+ const shownPrices = (entry) => entry.prices.filter((price) => intervalOf(price) === interval);
172
+ /**
173
+ * A plan can be bought when it has a price here and is not the one already held: the plan
174
+ * held, at its other interval, can be.
175
+ */
176
+ // A plan Stripe or Razorpay charges for is changed once it ends, not bought over.
177
+ const heldByGateway = managedBy === 'stripe' || managedBy === 'razorpay';
178
+ const gatewayBuys = canManagePlan && !heldByGateway;
179
+ const canBuy = (entry) => (entry.code !== plan.code || interval !== heldInterval) && shownPrices(entry).length > 0;
180
+ // Paid or shown yearly, the limits are still for each month.
181
+ const limitsPer = interval === 'YEAR' || heldInterval === 'YEAR'
182
+ ? 'Limits are for each month.'
183
+ : shopifyBilling && providers.includes('shopify')
184
+ ? 'Limits are for each 30-day billing period.'
185
+ : 'Limits are for each billing period.';
157
186
  /** A plan's prices on the dashboard's gateways: Shopify's are bought inside Shopify. */
158
- const gatewayPrices = (entry) => entry.prices.filter((price) => price.provider !== 'shopify');
187
+ const gatewayPrices = (entry) => shownPrices(entry).filter((price) => price.provider !== 'shopify');
159
188
  return (_jsxs("main", { className: "wide hl-usage", children: [props.heading ?? _jsx("h1", { children: "Plan and usage" }), params.get('checkout') === 'done' && (_jsx("p", { role: "status", children: "Thank you. Your plan updates here as soon as the payment is confirmed, usually within a minute." })), confirmed.isSuccess && !cancelShopify.isSuccess && (_jsx("p", { role: "status", children: confirmed.data.plan
160
189
  ? `Your plan is now ${confirmed.data.plan.name}.`
161
190
  : 'Your plan was not changed.' })), confirmed.error && _jsx("p", { role: "alert", children: confirmed.error.message }), cancelShopify.isSuccess && (_jsx("p", { role: "status", children: "Plan cancelled. You are on the free plan now." })), _jsxs("section", { className: "plan-card", "aria-label": "Your plan", children: [_jsxs("div", { children: [_jsx("p", { className: "eyebrow", children: "Your plan" }), _jsx("strong", { children: plan.name })] }), _jsxs("p", { children: ["This period runs from ", date.format(startOf(period.start)), " to", ' ', date.format(startOf(period.end) - MS_PER_DAY), ". Usage starts again from zero after that."] })] }), _jsx("div", { className: "table-box", children: _jsxs("table", { "aria-label": "Usage this period", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { scope: "col", children: "What is counted" }), _jsx("th", { scope: "col", children: "Used this period" }), _jsx("th", { scope: "col" })] }) }), _jsx("tbody", { children: included.map(({ metric, used, limit }) => (_jsxs("tr", { children: [_jsx("th", { scope: "row", children: labelOf(metric) }), _jsxs("td", { children: [_jsx("span", { className: "mono", children: limit === null
162
191
  ? sold && metric !== soldMetric
163
192
  ? count.format(used)
164
193
  : `${count.format(used)} (no limit)`
165
- : `${count.format(used)} of ${count.format(limit)}` }), limit !== null && limit > 0 && (_jsx("span", { className: used >= limit ? 'meter full' : 'meter', "aria-hidden": "true", children: _jsx("span", { style: { width: `${Math.min(FULL, (used / limit) * FULL)}%` } }) }))] }), _jsx("td", { children: limit !== null && used >= limit ? (_jsx("span", { className: "pill failed", children: "Limit reached" })) : null })] }, metric))) })] }) }), managedBy === 'shopify' && (_jsxs("section", { className: "panel", "aria-label": "Billing", children: [_jsx("p", { children: "Billed through Shopify, on your Shopify invoice, every 30 days." }), cancelShopify.error && _jsx("p", { role: "alert", children: cancelShopify.error.message }), shopifyBilling && !cancelShopify.isSuccess && !confirmingStop && (_jsx("p", { children: _jsx("button", { type: "button", onClick: () => setConfirmingStop(true), children: "Cancel plan" }) })), shopifyBilling && !cancelShopify.isSuccess && confirmingStop && (_jsxs("p", { className: "row", children: ["Shopify ends the plan straight away: you return to the free plan now, not at the end of the period you have paid for.", _jsx("button", { type: "button", className: "strong", disabled: cancelShopify.isPending, onClick: () => {
194
+ : `${count.format(used)} of ${count.format(limit)}` }), limit !== null && limit > 0 && (_jsx("span", { className: used >= limit ? 'meter full' : 'meter', "aria-hidden": "true", children: _jsx("span", { style: { width: `${Math.min(FULL, (used / limit) * FULL)}%` } }) }))] }), _jsx("td", { children: limit !== null && used >= limit ? (_jsx("span", { className: "pill failed", children: "Limit reached" })) : null })] }, metric))) })] }) }), managedBy === 'shopify' && (_jsxs("section", { className: "panel", "aria-label": "Billing", children: [_jsxs("p", { children: ["Billed through Shopify, on your Shopify invoice,", ' ', heldInterval === 'YEAR' ? 'once a year' : 'every 30 days', "."] }), cancelShopify.error && _jsx("p", { role: "alert", children: cancelShopify.error.message }), shopifyBilling && !cancelShopify.isSuccess && !confirmingStop && (_jsx("p", { children: _jsx("button", { type: "button", onClick: () => setConfirmingStop(true), children: "Cancel plan" }) })), shopifyBilling && !cancelShopify.isSuccess && confirmingStop && (_jsxs("p", { className: "row", children: ["Shopify ends the plan straight away: you return to the free plan now, not at the end of the period you have paid for.", _jsx("button", { type: "button", className: "strong", disabled: cancelShopify.isPending, onClick: () => {
166
195
  setConfirmingStop(false);
167
196
  cancelShopify.mutate();
168
197
  }, children: "Yes, cancel now" }), _jsx("button", { type: "button", onClick: () => setConfirmingStop(false), children: "Keep the plan" })] }))] })), managedBy && managedBy !== 'shopify' && (_jsxs("section", { className: "panel", "aria-label": "Billing", children: [_jsxs("p", { children: ["Billed through ", PROVIDER_LABELS[managedBy], ". The plan renews at the end of each period until renewal is stopped.", shopifyBilling && ` Change or stop it from the ${displayName} dashboard.`] }), stop.isSuccess && (_jsx("p", { role: "status", children: "Renewal stopped. Your plan stays until this period ends." })), stop.error && _jsx("p", { role: "alert", children: stop.error.message }), canManagePlan && !stop.isSuccess && !confirmingStop && (_jsx("p", { children: _jsx("button", { type: "button", onClick: () => setConfirmingStop(true), children: "Stop renewal" }) })), canManagePlan && !stop.isSuccess && confirmingStop && (_jsxs("p", { className: "row", children: ["You keep the plan until this period ends, then return to the free plan.", _jsx("button", { type: "button", className: "strong", disabled: stop.isPending, onClick: () => {
169
198
  setConfirmingStop(false);
170
199
  stop.mutate();
171
- }, children: "Yes, stop renewal" }), _jsx("button", { type: "button", onClick: () => setConfirmingStop(false), children: "Keep renewing" })] }))] })), allPlans.length > 0 && _jsx("h2", { children: "Plans" }), upgrade.isSuccess && (_jsxs("p", { className: "notice row", children: ["Shopify needs your approval for this plan. Nothing is charged until you approve.", _jsx("a", { className: "button", href: upgrade.data.url, target: "_top", rel: "noreferrer", children: "Continue to Shopify to approve" })] })), (buy.error ?? upgrade.error) && _jsx("p", { role: "alert", children: (buy.error ?? upgrade.error)?.message }), providers.length > 0 && !canManagePlan && !shopifyBilling && (_jsx("p", { className: "muted", children: "Only the organization's owner can change the plan." })), allPlans.length > 0 && (_jsx("div", { className: "table-box", children: _jsxs("table", { className: "compare", "aria-label": "Compare plans",
200
+ }, children: "Yes, stop renewal" }), _jsx("button", { type: "button", onClick: () => setConfirmingStop(false), children: "Keep renewing" })] }))] })), allPlans.length > 0 && _jsx("h2", { children: "Plans" }), yearlySold && (_jsx("div", { className: "segmented", role: "radiogroup", "aria-label": "Billing", children: ['MONTH', 'YEAR'].map((each) => (_jsxs("label", { className: interval === each ? 'on' : undefined, children: [_jsx("input", { type: "radio", name: "hl-billing-interval", value: each, checked: interval === each, onChange: () => setChosenInterval(each) }), each === 'MONTH' ? 'Monthly' : 'Yearly — 2 months free'] }, each))) })), upgrade.isSuccess && (_jsxs("p", { className: "notice row", children: ["Shopify needs your approval for this plan. Nothing is charged until you approve.", _jsx("a", { className: "button", href: upgrade.data.url, target: "_top", rel: "noreferrer", children: "Continue to Shopify to approve" })] })), (buy.error ?? upgrade.error) && _jsx("p", { role: "alert", children: (buy.error ?? upgrade.error)?.message }), heldByGateway && canManagePlan && allPlans.length > 0 && (_jsx("p", { className: "muted", children: "Your plan is paid through the payment provider. Stop renewal, and choose a new plan when it ends." })), providers.length > 0 && !canManagePlan && !shopifyBilling && (_jsx("p", { className: "muted", children: "Only the organization's owner can change the plan." })), allPlans.length > 0 && (_jsx("div", { className: "table-box", children: _jsxs("table", { className: "compare", "aria-label": "Compare plans",
172
201
  // Room for every plan's column; the box scrolls sideways when the page is narrower.
173
- style: { minWidth: COMPARE_LABEL_PX + allPlans.length * COMPARE_COLUMN_PX }, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("td", { className: "corner", children: detailed ? 'What each plan gives you' : 'Allowed in each billing period' }), allPlans.map((entry) => (_jsxs("th", { scope: "col", className: columnClass(entry), children: [_jsx("span", { className: "plan-name", children: entry.name }), entry.code === plan.code && _jsx("span", { className: "pill done", children: "Current plan" }), entry.prices.map((price) => (_jsxs("span", { className: "price", children: [money(price.amountMinor, price.currency), " per month"] }, `${price.provider}:${price.currency}`)))] }, entry.code)))] }) }), _jsxs("tbody", { children: [comparedMetrics.map((metric) => (_jsxs("tr", { children: [_jsx("th", { scope: "row", children: labelOf(metric) }), allPlans.map((entry) => {
202
+ style: { minWidth: COMPARE_LABEL_PX + allPlans.length * COMPARE_COLUMN_PX }, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("td", { className: "corner", children: detailed ? 'What each plan gives you' : 'Allowed in each billing period' }), allPlans.map((entry) => (_jsxs("th", { scope: "col", className: columnClass(entry), children: [_jsx("span", { className: "plan-name", children: entry.name }), entry.code === plan.code && _jsx("span", { className: "pill done", children: "Current plan" }), shownPrices(entry).map((price) => (_jsxs("span", { className: "price", children: [money(price.amountMinor, price.currency), " ", PER[interval].per] }, `${price.provider}:${price.currency}`)))] }, entry.code)))] }) }), _jsxs("tbody", { children: [comparedMetrics.map((metric) => (_jsxs("tr", { children: [_jsx("th", { scope: "row", children: labelOf(metric) }), allPlans.map((entry) => {
174
203
  const limit = entry.limits.find((item) => item.metric === metric)?.limit;
175
204
  return (_jsx("td", { className: columnClass(entry), children: detailed && limit === undefined ? '—' : allowance(limit) }, entry.code));
176
- })] }, metric))), extras.map((extra) => (_jsxs("tr", { children: [_jsx("th", { scope: "row", children: extra.label }), allPlans.map((entry) => (_jsx("td", { className: columnClass(entry), children: extra.of(entry) }, entry.code)))] }, extra.key)))] }), (canManagePlan || shopifyBilling) && allPlans.some(canBuy) && (_jsx("tfoot", { children: _jsxs("tr", { children: [_jsx("td", {}), allPlans.map((entry) => (_jsxs("td", { className: columnClass(entry), children: [canBuy(entry) &&
205
+ })] }, metric))), extras.map((extra) => (_jsxs("tr", { children: [_jsx("th", { scope: "row", children: extra.label }), allPlans.map((entry) => (_jsx("td", { className: columnClass(entry), children: extra.of(entry) }, entry.code)))] }, extra.key)))] }), (gatewayBuys || shopifyBilling) && allPlans.some(canBuy) && (_jsx("tfoot", { children: _jsxs("tr", { children: [_jsx("td", {}), allPlans.map((entry) => (_jsxs("td", { className: columnClass(entry), children: [canBuy(entry) &&
177
206
  shopifyBilling &&
178
- entry.prices.some((price) => price.provider === 'shopify') && (_jsx("button", { type: "button", className: "primary", "aria-label": `${changeTo(entry)} to ${entry.name}`, disabled: upgrade.isPending, onClick: () => upgrade.mutate(entry.code), children: changeTo(entry) })), canBuy(entry) &&
179
- canManagePlan &&
180
- gatewayPrices(entry).map((price, _index, all) => (_jsxs("button", { type: "button", className: "primary", "aria-label": `${changeTo(entry)} to ${entry.name}: ${money(price.amountMinor, price.currency)} a month`, disabled: buy.isPending || buy.isSuccess, onClick: () => buy.mutate({
207
+ shownPrices(entry).some((price) => price.provider === 'shopify') && (_jsx("button", { type: "button", className: "primary", "aria-label": `${changeTo(entry)} to ${entry.name}`, disabled: upgrade.isPending, onClick: () => upgrade.mutate({ planCode: entry.code, interval }), children: changeTo(entry) })), canBuy(entry) &&
208
+ gatewayBuys &&
209
+ gatewayPrices(entry).map((price, _index, all) => (_jsxs("button", { type: "button", className: "primary", "aria-label": `${changeTo(entry)} to ${entry.name}: ${money(price.amountMinor, price.currency)} ${PER[interval].a}`, disabled: buy.isPending || buy.isSuccess, onClick: () => buy.mutate({
181
210
  planCode: entry.code,
182
211
  provider: price.provider,
183
212
  currency: price.currency,
184
- }), children: [changeTo(entry), all.length > 1 ? ` · ${price.currency}` : ''] }, `${price.provider}:${price.currency}`)))] }, entry.code)))] }) }))] }) })), shopifyBilling && providers.includes('shopify') ? (_jsx("p", { className: "muted", children: "Limits are for each 30-day billing period. You approve the charge in Shopify, and it appears on your Shopify invoice." })) : providers.length === 0 ? (_jsx("p", { className: "muted", children: "Limits are for each billing period. Contact support to change your plan. It cannot be changed from this page." })) : (_jsx("p", { className: "muted", children: "Limits are for each billing period. You pay on the payment provider's own page; no card details are entered or kept here." }))] }));
213
+ ...(interval === 'YEAR' ? { interval: 'YEAR' } : {}),
214
+ }), children: [changeTo(entry), all.length > 1 ? ` · ${price.currency}` : ''] }, `${price.provider}:${price.currency}`)))] }, entry.code)))] }) }))] }) })), shopifyBilling && providers.includes('shopify') ? (_jsxs("p", { className: "muted", children: [limitsPer, " You approve the charge in Shopify, and it appears on your Shopify invoice."] })) : providers.length === 0 ? (_jsxs("p", { className: "muted", children: [limitsPer, " Contact support to change your plan. It cannot be changed from this page."] })) : (_jsxs("p", { className: "muted", children: [limitsPer, " You pay on the payment provider's own page; no card details are entered or kept here."] }))] }));
185
215
  }
186
216
  //# sourceMappingURL=UsagePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UsagePage.js","sourceRoot":"","sources":["../../src/client/UsagePage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AA6CxC,yEAAyE;AACzE,SAAS,aAAa,CAEpB,MAAqB,EAAE,IAAO;IAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,qCAAqC,IAAI,EAAE,CAAC,CAAC;IAC1E,OAAO,MAAM,CAAC,IAAI,CAAC,MAA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CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC3B,aAAG,SAAS,EAAC,OAAO,aACjB,SAAS,kFACR,CACL,CAAC,CAAC,CAAC,CACF,aAAG,SAAS,EAAC,OAAO,aACjB,SAAS,8FAER,CACL,IACI,CACR,CAAC;AACJ,CAAC"}
@@ -4,8 +4,20 @@ export { LoginPage } from './LoginPage.js';
4
4
  export type { SignInClient, SocialProvider } from './LoginPage.js';
5
5
  export { SignInAside } from './SignInAside.js';
6
6
  export { SIGN_IN_CSS } from './sign-in-styles.js';
7
+ export { BottomNav, MobileNav } from '../shell/BottomNav.js';
8
+ export { MoreSheet } from '../shell/MoreSheet.js';
9
+ export { BOTTOM_NAV_CSS } from '../shell/bottom-nav-css.js';
10
+ export { NARROW_QUERY, useNarrow } from '../shell/breakpoint.js';
7
11
  export { createQueryClient, isUnauthorized, shouldRetry } from './query-client.js';
8
12
  export { ApiError, OkSchema, cookieCredentials, createTransport, readCookie } from './transport.js';
9
13
  export type { CredentialStrategy, Method, Transport } from './transport.js';
10
14
  export { UsagePage } from './UsagePage.js';
11
- export type { BillingClient, PaymentProvider, PlanData, PlanListData, UsageData, } from './UsagePage.js';
15
+ export type { BillingClient, PaymentProvider, PlanData, PlanListData, PriceInterval, UsageData, } from './UsagePage.js';
16
+ export { NotificationBell } from '../notifications/NotificationBell.js';
17
+ export { NotificationInbox } from '../notifications/NotificationInbox.js';
18
+ export { NotificationPreferences } from '../notifications/NotificationPreferences.js';
19
+ export { NOTIFICATIONS_CSS } from '../notifications/notifications-css.js';
20
+ export { useNotificationStream } from '../notifications/use-notification-stream.js';
21
+ export type { NotificationStreamState } from '../notifications/use-notification-stream.js';
22
+ export { isAppPath } from '../notifications/types.js';
23
+ export type { NotificationChannel, NotificationChannelState, NotificationItemData, NotificationPreferenceChange, NotificationPreferenceData, NotificationStreamEvent, NotificationsClient, PreferencesData, } from '../notifications/types.js';
@@ -2,7 +2,18 @@ export { EmailSignInPanel } from './EmailSignInPanel.js';
2
2
  export { LoginPage } from './LoginPage.js';
3
3
  export { SignInAside } from './SignInAside.js';
4
4
  export { SIGN_IN_CSS } from './sign-in-styles.js';
5
+ // The phone and tablet bar, for an app's own frame (the embedded Shopify app's); also in '.'.
6
+ export { BottomNav, MobileNav } from '../shell/BottomNav.js';
7
+ export { MoreSheet } from '../shell/MoreSheet.js';
8
+ export { BOTTOM_NAV_CSS } from '../shell/bottom-nav-css.js';
9
+ export { NARROW_QUERY, useNarrow } from '../shell/breakpoint.js';
5
10
  export { createQueryClient, isUnauthorized, shouldRetry } from './query-client.js';
6
11
  export { ApiError, OkSchema, cookieCredentials, createTransport, readCookie } from './transport.js';
7
12
  export { UsagePage } from './UsagePage.js';
13
+ export { NotificationBell } from '../notifications/NotificationBell.js';
14
+ export { NotificationInbox } from '../notifications/NotificationInbox.js';
15
+ export { NotificationPreferences } from '../notifications/NotificationPreferences.js';
16
+ export { NOTIFICATIONS_CSS } from '../notifications/notifications-css.js';
17
+ export { useNotificationStream } from '../notifications/use-notification-stream.js';
18
+ export { isAppPath } from '../notifications/types.js';
8
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEpG,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,8FAA8F;AAC9F,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEpG,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAS3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC"}
@@ -3,4 +3,4 @@
3
3
  * a <style> element by LoginPage; everything is scoped under `.hl-auth`. An app sets its
4
4
  * colour with LoginPage's `accent` (and optional `glow`).
5
5
  */
6
- export declare const SIGN_IN_CSS = "\n.hl-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin: 0; }\n.hl-auth__panel { position: relative; overflow: hidden; background: var(--hl-panel, #0d1020); color: var(--hl-panel-text, #fff); padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }\n.hl-auth__panel::before { content: ''; position: absolute; top: -30%; right: -40%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--auth-glow) 45%, transparent), transparent); pointer-events: none; }\n.hl-auth__panel > * { position: relative; }\n.hl-auth__kind { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-panel-soft, #c7d0ff); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; }\n.hl-auth__panel h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 0; max-width: 460px; color: var(--hl-panel-text, #fff); }\n.hl-auth__points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; max-width: 460px; color: var(--hl-panel-soft, #d9ddf2); font-size: 15.5px; line-height: 1.5; }\n.hl-auth__points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0; }\n.hl-auth__points li::before { content: '\u2713'; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--auth-glow) 30%, transparent); color: var(--hl-panel-text, #fff); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }\n.hl-auth__preview { margin-top: 26px; max-width: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); padding: 14px 16px; }\n.hl-auth__preview p { margin: 0 0 6px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--hl-panel-muted, #9aa3c7); }\n.hl-auth__preview dl { margin: 0; }\n.hl-auth__preview dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }\n.hl-auth__preview dt { color: var(--hl-panel-muted, #9aa3c7); }\n.hl-auth__preview dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }\n.hl-auth__preview small { display: block; text-align: right; color: var(--hl-panel-muted, #7d86ab); font-size: 11px; margin-top: 6px; }\n.hl-auth__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }\n.hl-auth__chips span { font-size: 12.5px; color: var(--hl-panel-soft, #d9ddf2); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 11px; }\n.hl-auth__note { color: var(--hl-panel-muted, #8e96b8); font-size: 13px; max-width: 460px; margin: 0; }\n.hl-auth__main { background: var(--hl-ground, #f5f6fa); display: grid; place-items: center; padding: 48px 24px; margin: 0; max-width: none; }\n.hl-auth__card { width: 100%; max-width: 420px; background: var(--hl-surface, #fff); border: 1px solid var(--hl-border, #e6e8f0); border-radius: 18px; box-shadow: 0 20px 50px rgba(20,24,60,.08); padding: 36px; color: var(--hl-text, #15171c); }\n.hl-auth__card h1 { margin: 0 0 24px; font-size: 30px; letter-spacing: -.02em; text-align: center; }\n.hl-auth__card form { display: flex; flex-direction: column; gap: 16px; background: transparent; border: 0; padding: 0; margin: 0; }\n.hl-auth__card form > p { margin: 0; color: var(--hl-text, #30343f); font-size: 15px; }\n.hl-auth__card label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hl-text, #30343f); }\n.hl-auth__card input { height: 50px; border: 1.5px solid var(--hl-border, #d7dbe7); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--hl-surface, #fff); color: var(--hl-text, #15171c); }\n.hl-auth__card input:focus { outline: none; border-color: var(--auth-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 18%, transparent); }\n.hl-auth__card button[type='submit'] { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--auth-accent); color: var(--hl-on-accent, #fff); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }\n.hl-auth__card button[type='submit']:disabled { opacity: .6; cursor: default; }\n.hl-auth__card button:focus-visible, .hl-auth__card a:focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 2px; }\n.hl-auth__social { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }\n.hl-auth__provider { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1px solid var(--hl-border, #d5d8e3); border-radius: 12px; background: var(--hl-surface, #fff); color: var(--hl-text, #1b1e2b); font-size: 15px; font-weight: 600; text-decoration: none; }\n.hl-auth__provider:hover { background: var(--hl-ground, #f5f6fa); }\n.hl-auth__provider:focus-visible { outline: 3px solid color-mix(in srgb, var(--auth-accent) 35%, transparent); outline-offset: 2px; }\n.hl-auth__or { display: flex; align-items: center; gap: 12px; color: var(--hl-muted, #8a90a6); font-size: 13px; margin: 14px 0; }\n.hl-auth__or::before, .hl-auth__or::after { content: ''; flex: 1; height: 1px; background: var(--hl-border, #e3e5ee); }\n.hl-auth__card button.link { border: 0; background: transparent; padding: 0; color: var(--hl-accent-text, var(--auth-accent)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }\n.hl-auth__card button.link:disabled { color: var(--hl-muted, #8a90a6); cursor: default; }\n.hl-auth__card .row { display: flex; flex-wrap: wrap; gap: 4px 20px; }\n.hl-auth__card [role='alert'] { margin: 0; color: var(--hl-danger, #b42318); font-size: 14px; }\n.hl-auth__fine { margin: 18px 0 0; color: var(--hl-muted, #6b7186); font-size: 13px; line-height: 1.5; }\n.hl-auth__fine a { color: var(--hl-accent-text, var(--auth-accent)); font-weight: 600; }\n@media (max-width: 860px) {\n .hl-auth { grid-template-columns: minmax(0, 1fr); }\n .hl-auth__panel { padding: 32px 24px; gap: 24px; }\n .hl-auth__panel h2 { font-size: 26px; }\n .hl-auth__preview, .hl-auth__note { display: none; }\n .hl-auth__card { padding: 24px; }\n}\n";
6
+ export declare const SIGN_IN_CSS = "\n.hl-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin: 0; }\n.hl-auth__panel { position: relative; overflow: hidden; background: var(--hl-panel, #0d1020); color: var(--hl-panel-text, #fff); padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }\n.hl-auth__panel::before { content: ''; position: absolute; top: -30%; right: -40%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--auth-glow) 45%, transparent), transparent); pointer-events: none; }\n.hl-auth__panel > * { position: relative; }\n.hl-auth__kind { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-panel-soft, #c7d0ff); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; }\n.hl-auth__panel h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 0; max-width: 460px; color: var(--hl-panel-text, #fff); }\n.hl-auth__points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; max-width: 460px; color: var(--hl-panel-soft, #d9ddf2); font-size: 15.5px; line-height: 1.5; }\n.hl-auth__points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 0; }\n.hl-auth__points li::before { content: '\u2713'; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--auth-glow) 30%, transparent); color: var(--hl-panel-text, #fff); font-size: 12px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }\n.hl-auth__preview { margin-top: 26px; max-width: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); padding: 14px 16px; }\n.hl-auth__preview p { margin: 0 0 6px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--hl-panel-muted, #9aa3c7); }\n.hl-auth__preview dl { margin: 0; }\n.hl-auth__preview dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }\n.hl-auth__preview dt { color: var(--hl-panel-muted, #9aa3c7); }\n.hl-auth__preview dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }\n.hl-auth__preview small { display: block; text-align: right; color: var(--hl-panel-muted, #7d86ab); font-size: 11px; margin-top: 6px; }\n.hl-auth__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }\n.hl-auth__chips span { font-size: 12.5px; color: var(--hl-panel-soft, #d9ddf2); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 11px; }\n.hl-auth__note { color: var(--hl-panel-muted, #8e96b8); font-size: 13px; max-width: 460px; margin: 0; }\n.hl-auth__main { background: var(--hl-ground, #f5f6fa); display: grid; place-items: center; padding: 48px 24px; margin: 0; max-width: none; }\n.hl-auth__card { width: 100%; max-width: 420px; background: var(--hl-surface, #fff); border: 1px solid var(--hl-border, #e6e8f0); border-radius: 18px; box-shadow: 0 20px 50px rgba(20,24,60,.08); padding: 36px; color: var(--hl-text, #15171c); }\n.hl-auth__card h1 { margin: 0 0 24px; font-size: 30px; letter-spacing: -.02em; text-align: center; }\n.hl-auth__card form { display: flex; flex-direction: column; gap: 16px; background: transparent; border: 0; padding: 0; margin: 0; }\n.hl-auth__card form > p { margin: 0; color: var(--hl-text, #30343f); font-size: 15px; }\n.hl-auth__card label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hl-text, #30343f); }\n.hl-auth__card input { height: 50px; border: 1.5px solid var(--hl-border, #d7dbe7); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: var(--hl-surface, #fff); color: var(--hl-text, #15171c); }\n.hl-auth__card input:focus { outline: none; border-color: var(--auth-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 18%, transparent); }\n.hl-auth__card button[type='submit'] { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--auth-accent); color: var(--hl-on-accent, #fff); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }\n.hl-auth__card button[type='submit']:disabled { opacity: .6; cursor: default; }\n.hl-auth__card button:focus-visible, .hl-auth__card a:focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 2px; }\n.hl-auth__social { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }\n.hl-auth__provider { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1px solid var(--hl-border, #d5d8e3); border-radius: 12px; background: var(--hl-surface, #fff); color: var(--hl-text, #1b1e2b); font-size: 15px; font-weight: 600; text-decoration: none; }\n.hl-auth__provider:hover { background: var(--hl-ground, #f5f6fa); }\n.hl-auth__provider:focus-visible { outline: 3px solid color-mix(in srgb, var(--auth-accent) 35%, transparent); outline-offset: 2px; }\n.hl-auth__or { display: flex; align-items: center; gap: 12px; color: var(--hl-muted, #8a90a6); font-size: 13px; margin: 14px 0; }\n.hl-auth__or::before, .hl-auth__or::after { content: ''; flex: 1; height: 1px; background: var(--hl-border, #e3e5ee); }\n.hl-auth__card button.link { border: 0; background: transparent; padding: 0; color: var(--hl-accent-text, var(--auth-accent)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }\n.hl-auth__card button.link:disabled { color: var(--hl-muted, #8a90a6); cursor: default; }\n.hl-auth__card .row { display: flex; flex-wrap: wrap; gap: 4px 20px; }\n.hl-auth__card [role='alert'] { margin: 0; color: var(--hl-danger, #b42318); font-size: 14px; }\n.hl-auth__fine { margin: 18px 0 0; color: var(--hl-muted, #6b7186); font-size: 13px; line-height: 1.5; }\n.hl-auth__fine a { color: var(--hl-accent-text, var(--auth-accent)); font-weight: 600; }\n.hl-auth__brand { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px; box-sizing: border-box; padding-top: max(8px, env(safe-area-inset-top)); background: var(--hl-panel, #0d1020); color: var(--hl-panel-text, #fff); font-size: 15px; font-weight: 800; letter-spacing: -.01em; }\n@media (max-width: 1023px) {\n .hl-auth__panel { display: none; }\n .hl-auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }\n .hl-auth > .hl-auth__main { align-items: start; align-content: start; place-items: start center; padding: 16px 16px 32px; }\n}\n@media (max-width: 860px) {\n .hl-auth { grid-template-columns: minmax(0, 1fr); }\n .hl-auth__panel { padding: 32px 24px; gap: 24px; }\n .hl-auth__panel h2 { font-size: 26px; }\n .hl-auth__preview, .hl-auth__note { display: none; }\n .hl-auth__card { padding: 24px; }\n}\n";
@@ -46,6 +46,12 @@ export const SIGN_IN_CSS = `
46
46
  .hl-auth__card [role='alert'] { margin: 0; color: var(--hl-danger, #b42318); font-size: 14px; }
47
47
  .hl-auth__fine { margin: 18px 0 0; color: var(--hl-muted, #6b7186); font-size: 13px; line-height: 1.5; }
48
48
  .hl-auth__fine a { color: var(--hl-accent-text, var(--auth-accent)); font-weight: 600; }
49
+ .hl-auth__brand { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px; box-sizing: border-box; padding-top: max(8px, env(safe-area-inset-top)); background: var(--hl-panel, #0d1020); color: var(--hl-panel-text, #fff); font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
50
+ @media (max-width: 1023px) {
51
+ .hl-auth__panel { display: none; }
52
+ .hl-auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
53
+ .hl-auth > .hl-auth__main { align-items: start; align-content: start; place-items: start center; padding: 16px 16px 32px; }
54
+ }
49
55
  @media (max-width: 860px) {
50
56
  .hl-auth { grid-template-columns: minmax(0, 1fr); }
51
57
  .hl-auth__panel { padding: 32px 24px; gap: 24px; }
@@ -1 +1 @@
1
- {"version":3,"file":"sign-in-styles.js","sourceRoot":"","sources":["../../src/client/sign-in-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD1B,CAAC"}
1
+ {"version":3,"file":"sign-in-styles.js","sourceRoot":"","sources":["../../src/client/sign-in-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD1B,CAAC"}
@@ -2,4 +2,4 @@
2
2
  * The plans-and-usage page (UsagePage), on the theme tokens. Scoped to `.hl-usage` so it
3
3
  * never restyles an app's own pages, whose class names it shares.
4
4
  */
5
- export declare const USAGE_CSS = "\n.hl-usage h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }\n.hl-usage h2 { margin: 0; font-size: 14px; font-weight: 700; }\n.hl-usage .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }\n.hl-usage .row.spread { justify-content: space-between; align-items: flex-end; }\n.hl-usage .muted { color: var(--hl-muted); font-size: 13px; }\n.hl-usage .mono { font-family: var(--hl-mono); font-size: 13px; }\n.hl-usage .eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hl-muted); }\n.hl-usage .panel { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }\n.hl-usage .notice { padding: 12px 16px; border-radius: var(--hl-radius-control); background: var(--hl-amber-bg); border: 1px solid var(--hl-amber-border); color: var(--hl-amber-text); font-size: 14px; }\n.hl-usage button, .hl-usage .button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }\n.hl-usage button:hover:not(:disabled) { border-color: var(--hl-accent); }\n.hl-usage button.primary { background: var(--hl-accent); border-color: var(--hl-accent); color: var(--hl-on-accent); }\n.hl-usage button.strong { border-color: var(--hl-text); }\n.hl-usage button:disabled { opacity: .55; cursor: not-allowed; }\n.hl-usage .pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--hl-faint); color: var(--hl-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }\n.hl-usage .pill.done { background: var(--hl-accent-soft); color: var(--hl-accent-text); }\n.hl-usage .pill.failed { background: var(--hl-faint); color: var(--hl-danger); }\n.hl-usage .plan-card { background: var(--hl-panel); color: var(--hl-panel-text); border-radius: var(--hl-radius-card); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }\n.hl-usage .plan-card .eyebrow { color: var(--hl-panel-muted); }\n.hl-usage .plan-card strong { font-size: 20px; letter-spacing: -0.02em; }\n.hl-usage .plan-card p { max-width: 380px; color: var(--hl-panel-soft); font-size: 14px; }\n.hl-usage .meter { display: block; height: 8px; min-width: 160px; margin-top: 8px; background: var(--hl-faint); border-radius: 999px; overflow: hidden; }\n.hl-usage .meter > span { display: block; height: 100%; background: var(--hl-accent); border-radius: 999px; }\n.hl-usage .meter.full > span { background: var(--hl-danger); }\n.hl-usage .table-box { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow-x: auto; }\n.hl-usage table { width: 100%; min-width: 640px; border-collapse: collapse; color: var(--hl-text); }\n.hl-usage th, .hl-usage td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--hl-border); vertical-align: middle; }\n.hl-usage table.compare { min-width: 780px; table-layout: fixed; }\n.hl-usage table.compare td, .hl-usage table.compare th { text-align: center; padding-left: 8px; padding-right: 8px; }\n.hl-usage table.compare tr > :first-child { width: 170px; text-align: left; padding-left: 16px; }\n.hl-usage table.compare tbody th { color: var(--hl-muted); font-weight: 500; }\n.hl-usage table.compare thead th { padding: 14px 10px 12px; font-size: 14px; font-weight: 400; vertical-align: top; }\n.hl-usage table.compare thead th > span { display: block; }\n.hl-usage table.compare thead th > .pill { display: inline-flex; margin-top: 8px; }\n.hl-usage table.compare .plan-name { font-size: 16px; font-weight: 700; }\n.hl-usage table.compare .price { margin-top: 6px; font-size: 13px; color: var(--hl-muted); }\n.hl-usage table.compare .corner { color: var(--hl-muted); font-size: 13px; vertical-align: bottom; }\n.hl-usage table.compare tbody td { font-family: var(--hl-mono); font-size: 13px; overflow-wrap: anywhere; }\n.hl-usage table.compare .current { background: var(--hl-accent-soft); }\n.hl-usage table.compare thead .current { box-shadow: inset 0 3px 0 var(--hl-accent); }\n.hl-usage table.compare tfoot td { padding: 12px 8px 16px; border-bottom: 0; vertical-align: top; }\n.hl-usage table.compare tfoot button { width: 100%; padding: 0 8px; font-size: 14px; white-space: nowrap; }\n.hl-usage table.compare tfoot button + button { margin-top: 8px; }\n";
5
+ export declare const USAGE_CSS = "\n.hl-usage h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }\n.hl-usage h2 { margin: 0; font-size: 14px; font-weight: 700; }\n.hl-usage .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }\n.hl-usage .row.spread { justify-content: space-between; align-items: flex-end; }\n.hl-usage .muted { color: var(--hl-muted); font-size: 13px; }\n.hl-usage .mono { font-family: var(--hl-mono); font-size: 13px; }\n.hl-usage .eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hl-muted); }\n.hl-usage .panel { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }\n.hl-usage .notice { padding: 12px 16px; border-radius: var(--hl-radius-control); background: var(--hl-amber-bg); border: 1px solid var(--hl-amber-border); color: var(--hl-amber-text); font-size: 14px; }\n.hl-usage button, .hl-usage .button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }\n.hl-usage button:hover:not(:disabled) { border-color: var(--hl-accent); }\n.hl-usage button.primary { background: var(--hl-accent); border-color: var(--hl-accent); color: var(--hl-on-accent); }\n.hl-usage button.strong { border-color: var(--hl-text); }\n.hl-usage button:disabled { opacity: .55; cursor: not-allowed; }\n.hl-usage .pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--hl-faint); color: var(--hl-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }\n.hl-usage .pill.done { background: var(--hl-accent-soft); color: var(--hl-accent-text); }\n.hl-usage .pill.failed { background: var(--hl-faint); color: var(--hl-danger); }\n.hl-usage .plan-card { background: var(--hl-panel); color: var(--hl-panel-text); border-radius: var(--hl-radius-card); padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }\n.hl-usage .plan-card .eyebrow { color: var(--hl-panel-muted); }\n.hl-usage .plan-card strong { font-size: 20px; letter-spacing: -0.02em; }\n.hl-usage .plan-card p { max-width: 380px; color: var(--hl-panel-soft); font-size: 14px; }\n.hl-usage .meter { display: block; height: 8px; min-width: 160px; margin-top: 8px; background: var(--hl-faint); border-radius: 999px; overflow: hidden; }\n.hl-usage .meter > span { display: block; height: 100%; background: var(--hl-accent); border-radius: 999px; }\n.hl-usage .meter.full > span { background: var(--hl-danger); }\n.hl-usage .table-box { background: var(--hl-surface); border: 1px solid var(--hl-border); border-radius: var(--hl-radius-card); overflow-x: auto; }\n.hl-usage table { width: 100%; min-width: 640px; border-collapse: collapse; color: var(--hl-text); }\n.hl-usage th, .hl-usage td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--hl-border); vertical-align: middle; }\n.hl-usage table.compare { min-width: 780px; table-layout: fixed; }\n.hl-usage table.compare td, .hl-usage table.compare th { text-align: center; padding-left: 8px; padding-right: 8px; }\n.hl-usage table.compare tr > :first-child { width: 170px; text-align: left; padding-left: 16px; }\n.hl-usage table.compare tbody th { color: var(--hl-muted); font-weight: 500; }\n.hl-usage table.compare thead th { padding: 14px 10px 12px; font-size: 14px; font-weight: 400; vertical-align: top; }\n.hl-usage table.compare thead th > span { display: block; }\n.hl-usage table.compare thead th > .pill { display: inline-flex; margin-top: 8px; }\n.hl-usage table.compare .plan-name { font-size: 16px; font-weight: 700; }\n.hl-usage table.compare .price { margin-top: 6px; font-size: 13px; color: var(--hl-muted); }\n.hl-usage table.compare .corner { color: var(--hl-muted); font-size: 13px; vertical-align: bottom; }\n.hl-usage table.compare tbody td { font-family: var(--hl-mono); font-size: 13px; overflow-wrap: anywhere; }\n.hl-usage table.compare .current { background: var(--hl-accent-soft); }\n.hl-usage table.compare thead .current { box-shadow: inset 0 3px 0 var(--hl-accent); }\n.hl-usage table.compare tfoot td { padding: 12px 8px 16px; border-bottom: 0; vertical-align: top; }\n.hl-usage table.compare tfoot button { width: 100%; padding: 0 8px; font-size: 14px; white-space: nowrap; }\n.hl-usage table.compare tfoot button + button { margin-top: 8px; }\n.hl-usage .segmented { display: inline-flex; align-self: flex-start; padding: 3px; gap: 3px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-control); background: var(--hl-faint); }\n.hl-usage .segmented label { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--hl-radius-control); font-size: 13px; font-weight: 700; color: var(--hl-muted); cursor: pointer; }\n.hl-usage .segmented label.on { background: var(--hl-surface); color: var(--hl-text); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }\n.hl-usage .segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }\n.hl-usage .segmented label:has(input:focus-visible) { outline: 2px solid var(--hl-accent); outline-offset: 1px; }\n";
@@ -46,5 +46,10 @@ export const USAGE_CSS = `
46
46
  .hl-usage table.compare tfoot td { padding: 12px 8px 16px; border-bottom: 0; vertical-align: top; }
47
47
  .hl-usage table.compare tfoot button { width: 100%; padding: 0 8px; font-size: 14px; white-space: nowrap; }
48
48
  .hl-usage table.compare tfoot button + button { margin-top: 8px; }
49
+ .hl-usage .segmented { display: inline-flex; align-self: flex-start; padding: 3px; gap: 3px; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-control); background: var(--hl-faint); }
50
+ .hl-usage .segmented label { position: relative; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--hl-radius-control); font-size: 13px; font-weight: 700; color: var(--hl-muted); cursor: pointer; }
51
+ .hl-usage .segmented label.on { background: var(--hl-surface); color: var(--hl-text); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); }
52
+ .hl-usage .segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
53
+ .hl-usage .segmented label:has(input:focus-visible) { outline: 2px solid var(--hl-accent); outline-offset: 1px; }
49
54
  `;
50
55
  //# sourceMappingURL=usage-css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usage-css.js","sourceRoot":"","sources":["../../src/client/usage-css.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CxB,CAAC"}
1
+ {"version":3,"file":"usage-css.js","sourceRoot":"","sources":["../../src/client/usage-css.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDxB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,16 +3,22 @@ export { EmptyState } from './EmptyState.js';
3
3
  export { FullScreen } from './FullScreen.js';
4
4
  export { Loading } from './Loading.js';
5
5
  export { SearchBox } from './SearchBox.js';
6
- export { ACCENTS, NEUTRALS, themeCss } from './theme/tokens.js';
6
+ export { ACCENTS, NEUTRALS, accentHover, themeCss } from './theme/tokens.js';
7
7
  export type { AccentColors, AccentPreset, Neutrals } from './theme/tokens.js';
8
8
  export { ThemeStyles } from './theme/ThemeStyles.js';
9
9
  export { contrastRatio } from './theme/contrast.js';
10
10
  export { THEME_BOOT_SCRIPT, THEME_STORAGE_KEY, applyThemeChoice, readThemeChoice, useTheme, } from './theme/theme-choice.js';
11
11
  export type { ThemeChoice } from './theme/theme-choice.js';
12
- export { ThemeSwitch } from './theme/ThemeSwitch.js';
12
+ export { ThemeCycle, ThemeSwitch } from './theme/ThemeSwitch.js';
13
13
  export { AppShell } from './shell/AppShell.js';
14
14
  export type { ShellAccount } from './shell/AppShell.js';
15
- export { flattenNav } from './shell/nav.js';
15
+ export { bottomItems, flattenNav } from './shell/nav.js';
16
+ export { BottomNav, MobileNav } from './shell/BottomNav.js';
17
+ export { MoreSheet } from './shell/MoreSheet.js';
18
+ export { NAV_ICON_NAMES, NavIcon } from './shell/icons.js';
19
+ export type { NavIconName } from './shell/icons.js';
20
+ export { BOTTOM_NAV_CSS } from './shell/bottom-nav-css.js';
21
+ export { NARROW_BREAKPOINT, NARROW_QUERY, useNarrow } from './shell/breakpoint.js';
16
22
  export type { NavGroup, NavItem } from './shell/nav.js';
17
23
  export { ShellSearch } from './shell/ShellSearch.js';
18
24
  export type { SearchEntry } from './shell/ShellSearch.js';