@usethrottle/auth 0.11.0 → 0.12.1

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 (68) hide show
  1. package/README.md +52 -0
  2. package/dist/AccountDashboard-V63ghvjY.d.ts +90 -0
  3. package/dist/AccountModal-KA54WUFW.js +13 -0
  4. package/dist/AccountModal-KA54WUFW.js.map +1 -0
  5. package/dist/AccountModal-pIMgledL.d.ts +141 -0
  6. package/dist/AuthModal-T2GYI6ZF.js +13 -0
  7. package/dist/AuthModal-T2GYI6ZF.js.map +1 -0
  8. package/dist/SignUpPage-BJcMUb2V.d.ts +160 -0
  9. package/dist/chunk-3B4DNX5T.js +2 -0
  10. package/dist/chunk-3B4DNX5T.js.map +1 -0
  11. package/dist/chunk-5EUZYJJL.js +29 -0
  12. package/dist/chunk-5EUZYJJL.js.map +1 -0
  13. package/dist/chunk-6WN3J5MM.js +2075 -0
  14. package/dist/chunk-6WN3J5MM.js.map +1 -0
  15. package/dist/chunk-CUNMJ2PH.js +1320 -0
  16. package/dist/chunk-CUNMJ2PH.js.map +1 -0
  17. package/dist/chunk-ETYOOYYV.js +2 -0
  18. package/dist/chunk-ETYOOYYV.js.map +1 -0
  19. package/dist/chunk-JSDZMPCV.js +520 -0
  20. package/dist/chunk-JSDZMPCV.js.map +1 -0
  21. package/dist/chunk-QPVS6JXP.js +39 -0
  22. package/dist/chunk-QPVS6JXP.js.map +1 -0
  23. package/dist/chunk-RCNUWITB.js +747 -0
  24. package/dist/chunk-RCNUWITB.js.map +1 -0
  25. package/dist/{chunk-YY6YATXT.js → chunk-TDQC3LMQ.js} +17 -3
  26. package/dist/chunk-TDQC3LMQ.js.map +1 -0
  27. package/dist/{chunk-EFMKBOTL.js → chunk-UFGW76AZ.js} +2 -2
  28. package/dist/chunk-VDK23T6L.js +230 -0
  29. package/dist/chunk-VDK23T6L.js.map +1 -0
  30. package/dist/chunk-X6D35EAX.js +19 -0
  31. package/dist/chunk-X6D35EAX.js.map +1 -0
  32. package/dist/client-7LVKfuXO.d.ts +319 -0
  33. package/dist/hooks-DkpLrEiC.d.ts +148 -0
  34. package/dist/index.cjs +16 -2
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +34 -3
  37. package/dist/index.d.ts +34 -3
  38. package/dist/index.js +16 -2
  39. package/dist/index.js.map +1 -1
  40. package/dist/localization-SnIAZXJn.d.ts +389 -0
  41. package/dist/react/components/account/index.d.ts +37 -0
  42. package/dist/react/components/account/index.js +44 -0
  43. package/dist/react/components/account/index.js.map +1 -0
  44. package/dist/react/components/auth/index.d.ts +17 -0
  45. package/dist/react/components/auth/index.js +40 -0
  46. package/dist/react/components/auth/index.js.map +1 -0
  47. package/dist/react/components/guards.d.ts +21 -0
  48. package/dist/react/components/guards.js +13 -0
  49. package/dist/react/components/guards.js.map +1 -0
  50. package/dist/react/components/index.cjs +3561 -2805
  51. package/dist/react/components/index.cjs.map +1 -1
  52. package/dist/react/components/index.d.cts +14 -2
  53. package/dist/react/components/index.d.ts +14 -821
  54. package/dist/react/components/index.js +90 -4680
  55. package/dist/react/components/index.js.map +1 -1
  56. package/dist/react/components/provider.d.ts +79 -0
  57. package/dist/react/components/provider.js +18 -0
  58. package/dist/react/components/provider.js.map +1 -0
  59. package/dist/react/forms/index.js +1 -1
  60. package/dist/react/index.cjs +16 -2
  61. package/dist/react/index.cjs.map +1 -1
  62. package/dist/react/index.d.cts +34 -3
  63. package/dist/react/index.d.ts +5 -433
  64. package/dist/react/index.js +3 -2
  65. package/dist/styles.css +7 -4
  66. package/package.json +4 -1
  67. package/dist/chunk-YY6YATXT.js.map +0 -1
  68. /package/dist/{chunk-EFMKBOTL.js.map → chunk-UFGW76AZ.js.map} +0 -0
@@ -0,0 +1,389 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+
3
+ type ThrottleThemeName = 'light' | 'dark' | 'auto';
4
+ declare const VARIABLE_PROPERTY: {
5
+ readonly colorPrimary: "--throttle-color-primary";
6
+ readonly colorPrimaryForeground: "--throttle-color-primary-foreground";
7
+ readonly colorBackground: "--throttle-color-background";
8
+ readonly colorSurface: "--throttle-color-surface";
9
+ readonly colorForeground: "--throttle-color-foreground";
10
+ readonly colorMuted: "--throttle-color-muted";
11
+ readonly colorMutedForeground: "--throttle-color-muted-foreground";
12
+ readonly colorBorder: "--throttle-color-border";
13
+ readonly colorBorderControl: "--throttle-color-border-control";
14
+ readonly colorDanger: "--throttle-color-danger";
15
+ readonly colorDangerSurface: "--throttle-color-danger-surface";
16
+ readonly colorDangerBorder: "--throttle-color-danger-border";
17
+ readonly colorSuccess: "--throttle-color-success";
18
+ readonly colorSuccessSurface: "--throttle-color-success-surface";
19
+ readonly colorSuccessBorder: "--throttle-color-success-border";
20
+ readonly colorWarning: "--throttle-color-warning";
21
+ readonly colorWarningSurface: "--throttle-color-warning-surface";
22
+ readonly colorWarningBorder: "--throttle-color-warning-border";
23
+ readonly fontFamily: "--throttle-font-family";
24
+ readonly fontSize: "--throttle-font-size";
25
+ readonly borderRadius: "--throttle-radius";
26
+ readonly borderWidth: "--throttle-border-width";
27
+ readonly spacing: "--throttle-spacing";
28
+ readonly cardWidth: "--throttle-card-width";
29
+ readonly accountSurface: "--throttle-color-account-surface";
30
+ readonly accountPadding: "--throttle-account-padding";
31
+ readonly shadowCard: "--throttle-shadow-card";
32
+ readonly shadowPopover: "--throttle-shadow-popover";
33
+ readonly transition: "--throttle-transition";
34
+ readonly zModal: "--throttle-z-modal";
35
+ readonly zPopover: "--throttle-z-popover";
36
+ };
37
+ type ThrottleVariables = Partial<Record<keyof typeof VARIABLE_PROPERTY, string>>;
38
+ /**
39
+ * Every addressable part of every component. A merchant maps any of these to a
40
+ * className through `appearance.elements`. The list is the API: adding a
41
+ * rendered element without adding its key here ships something a merchant
42
+ * cannot restyle, which the drift test in Task 15 catches.
43
+ */
44
+ declare const THROTTLE_ELEMENT_KEYS: readonly ["card", "card.header", "card.title", "card.description", "card.body", "card.footer", "card.logo", "field", "field.label", "field.input", "field.hint", "field.error", "field.group", "button", "alert", "spinner", "skeleton", "avatar", "badge", "emptyState", "emptyState.title", "emptyState.description", "modal.overlay", "modal.container", "modal.closeButton", "dropdown.trigger", "dropdown.menu", "dropdown.item", "dropdown.separator", "tabs.list", "tabs.tab", "table", "table.head", "table.row", "table.cell", "signIn.root", "signIn.title", "signIn.logo", "signIn.emailField", "signIn.passwordField", "signIn.submitButton", "signIn.forgotLink", "signIn.switchLink", "signUp.root", "signUp.title", "signUp.logo", "signUp.emailField", "signUp.passwordField", "signUp.submitButton", "signUp.switchLink", "forgotPassword.root", "forgotPassword.title", "forgotPassword.logo", "forgotPassword.emailField", "forgotPassword.submitButton", "forgotPassword.backLink", "resetPassword.root", "resetPassword.title", "resetPassword.logo", "resetPassword.passwordField", "resetPassword.submitButton", "verifyEmail.root", "verifyEmail.title", "verifyEmail.logo", "verifyEmail.resendButton", "authFlow.root", "authModal.overlay", "authModal.container", "signInButton.root", "signUpButton.root", "signOutButton.root", "stepUp.root", "stepUp.title", "stepUp.passwordField", "stepUp.submitButton", "stepUp.cancelButton", "signInPage.root", "signInPage.logo", "signInPage.footer", "signUpPage.root", "signUpPage.logo", "signUpPage.footer", "userButton.root", "userButton.trigger", "userButton.menu", "userButton.identity", "userButton.email", "userButton.badge", "userButton.item", "userButton.manageButton", "userButton.signOutButton", "userButton.signOutAllButton", "accountDashboard.root", "accountDashboard.tabs", "accountDashboard.sidebar", "accountDashboard.panel", "accountModal.overlay", "accountModal.container", "accountModal.header", "accountModal.title", "accountModal.body", "verifyBanner.root", "verifyBanner.message", "verifyBanner.resendButton", "verifyBanner.dismissButton", "profilePanel.root", "profilePanel.form", "profilePanel.submitButton", "addressesPanel.root", "addressesPanel.list", "addressesPanel.item", "addressesPanel.addButton", "addressesPanel.form", "addressesPanel.defaultButton", "addressesPanel.editButton", "addressesPanel.deleteButton", "addressesPanel.table", "addressesPanel.row", "paymentMethodsPanel.root", "paymentMethodsPanel.list", "paymentMethodsPanel.item", "paymentMethodsPanel.defaultButton", "paymentMethodsPanel.deleteButton", "paymentMethodsPanel.addButton", "paymentMethodsPanel.addDialog", "orderDetail.addresses", "orderDetail.shippingAddress", "orderDetail.billingAddress", "orderDetail.timeline", "orderDetail.payButton", "orderDetail.trackButton", "orderDetail.reorderButton", "orderDetail.layout", "orderDetail.main", "orderDetail.rail", "orderDetail.cancelButton", "orderDetail.returnButton", "orderDetail.invoiceButton", "orderDetail.subscriptionButton", "orderDetail.actions", "invoiceDetail.layout", "invoiceDetail.main", "invoiceDetail.rail", "invoiceDetail.lineItems", "invoiceDetail.lineItem", "invoiceDetail.orderLink", "invoiceDetail.subscriptionLink", "invoiceDetail.payButton", "invoiceDetail.actions", "fieldRow", "confirm.header", "confirm.title", "confirm.body", "confirm.confirmButton", "confirm.cancelButton", "paymentMethodsPanel.table", "paymentMethodsPanel.row", "ordersPanel.root", "ordersPanel.table", "ordersPanel.row", "ordersPanel.list", "ordersPanel.item", "ordersPanel.viewButton", "orderDetail.root", "orderDetail.backButton", "orderDetail.lineItems", "orderDetail.lineItem", "orderDetail.totals", "invoicesPanel.root", "invoicesPanel.table", "invoicesPanel.row", "invoicesPanel.list", "invoicesPanel.item", "invoicesPanel.viewButton", "invoiceDetail.root", "invoiceDetail.backButton", "invoiceDetail.downloadButton", "invoiceDetail.totals", "subscriptionsPanel.root", "subscriptionsPanel.list", "subscriptionsPanel.item", "subscriptionsPanel.cancelButton", "subscriptionsPanel.cancelNowButton", "subscriptionsPanel.pauseButton", "subscriptionsPanel.resumeButton", "subscriptionsPanel.changeAddressButton", "subscriptionsPanel.addressForm", "subscriptionsPanel.table", "subscriptionsPanel.row", "securityPanel.root", "securityPanel.passwordForm", "securityPanel.passwordButton", "securityPanel.sessionList", "securityPanel.sessionItem", "securityPanel.revokeButton", "securityPanel.revokeAllButton", "securityPanel.table", "securityPanel.row"];
45
+ type ThrottleElementKey = (typeof THROTTLE_ELEMENT_KEYS)[number];
46
+ interface ThrottleSlots {
47
+ Spinner?: ComponentType<{
48
+ className?: string;
49
+ }>;
50
+ Avatar?: ComponentType<{
51
+ name: string;
52
+ email: string;
53
+ className?: string;
54
+ }>;
55
+ Alert?: ComponentType<{
56
+ tone: 'error' | 'success' | 'info';
57
+ children: ReactNode;
58
+ className?: string;
59
+ }>;
60
+ EmptyState?: ComponentType<{
61
+ title: string;
62
+ description?: string;
63
+ className?: string;
64
+ }>;
65
+ Button?: ComponentType<any>;
66
+ }
67
+ interface ThrottleAppearance {
68
+ theme?: ThrottleThemeName;
69
+ variables?: ThrottleVariables;
70
+ elements?: Partial<Record<ThrottleElementKey, string>>;
71
+ components?: ThrottleSlots;
72
+ }
73
+
74
+ declare const enUS: {
75
+ locale: string;
76
+ common: {
77
+ save: string;
78
+ cancel: string;
79
+ delete: string;
80
+ edit: string;
81
+ back: string;
82
+ retry: string;
83
+ loading: string;
84
+ close: string;
85
+ confirm: string;
86
+ keepIt: string;
87
+ somethingWentWrong: string;
88
+ actions: string;
89
+ view: string;
90
+ };
91
+ signIn: {
92
+ title: string;
93
+ description: string;
94
+ email: string;
95
+ password: string;
96
+ submitButton: string;
97
+ forgotLink: string;
98
+ switchPrompt: string;
99
+ switchLink: string;
100
+ };
101
+ signUp: {
102
+ title: string;
103
+ description: string;
104
+ email: string;
105
+ password: string;
106
+ submitButton: string;
107
+ switchPrompt: string;
108
+ switchLink: string;
109
+ pendingNotice: string;
110
+ };
111
+ forgotPassword: {
112
+ title: string;
113
+ description: string;
114
+ email: string;
115
+ submitButton: string;
116
+ sentNotice: string;
117
+ backLink: string;
118
+ };
119
+ resetPassword: {
120
+ title: string;
121
+ password: string;
122
+ submitButton: string;
123
+ doneNotice: string;
124
+ missingToken: string;
125
+ };
126
+ verifyEmail: {
127
+ title: string;
128
+ verifying: string;
129
+ success: string;
130
+ resendButton: string;
131
+ resentNotice: string;
132
+ instructions: string;
133
+ };
134
+ stepUp: {
135
+ title: string;
136
+ description: string;
137
+ password: string;
138
+ submitButton: string;
139
+ cancelButton: string;
140
+ };
141
+ userButton: {
142
+ manage: string;
143
+ signOut: string;
144
+ signOutAll: string;
145
+ verified: string;
146
+ unverified: string;
147
+ openMenu: string;
148
+ };
149
+ verifyBanner: {
150
+ message: string;
151
+ resendButton: string;
152
+ dismissButton: string;
153
+ };
154
+ account: {
155
+ title: string;
156
+ tabs: {
157
+ profile: string;
158
+ addresses: string;
159
+ paymentMethods: string;
160
+ orders: string;
161
+ invoices: string;
162
+ subscriptions: string;
163
+ security: string;
164
+ };
165
+ };
166
+ profile: {
167
+ firstName: string;
168
+ lastName: string;
169
+ phone: string;
170
+ company: string;
171
+ acceptsMarketing: string;
172
+ email: string;
173
+ emailReadOnly: string;
174
+ saveButton: string;
175
+ savedNotice: string;
176
+ };
177
+ addresses: {
178
+ addButton: string;
179
+ defaultBadge: string;
180
+ makeDefault: string;
181
+ deleteConfirmAction: string;
182
+ empty: string;
183
+ emptyDescription: string;
184
+ label: string;
185
+ firstName: string;
186
+ lastName: string;
187
+ company: string;
188
+ addressLine1: string;
189
+ addressLine2: string;
190
+ city: string;
191
+ stateProvince: string;
192
+ postalCode: string;
193
+ countryCode: string;
194
+ phone: string;
195
+ deleteConfirm: string;
196
+ columnAddress: string;
197
+ };
198
+ paymentMethods: {
199
+ empty: string;
200
+ emptyDescription: string;
201
+ addButton: string;
202
+ addTitle: string;
203
+ gatedDescription: string;
204
+ defaultBadge: string;
205
+ makeDefault: string;
206
+ expires: string;
207
+ deleteConfirm: string;
208
+ deleteConfirmAction: string;
209
+ columnCard: string;
210
+ };
211
+ orders: {
212
+ shipTo: string;
213
+ billTo: string;
214
+ history: string;
215
+ placed: string;
216
+ completed: string;
217
+ cancelledAt: string;
218
+ closedAt: string;
219
+ payNow: string;
220
+ track: string;
221
+ reorder: string;
222
+ cancelOrder: string;
223
+ cancelOrderConfirm: string;
224
+ cancelOrderBody: string;
225
+ cancelOrderAction: string;
226
+ requestReturn: string;
227
+ requestReturnConfirm: string;
228
+ requestReturnBody: string;
229
+ requestReturnAction: string;
230
+ returnRequested: string;
231
+ downloadInvoice: string;
232
+ summary: string;
233
+ empty: string;
234
+ emptyDescription: string;
235
+ gatedDescription: string;
236
+ number: string;
237
+ date: string;
238
+ status: string;
239
+ total: string;
240
+ /**
241
+ * Display copy for `order.status`. Mirrors ORDER_STATUS_META in
242
+ * `@commerce/orders`, which is the server's single source of status copy —
243
+ * copied rather than imported because this package ships with no runtime
244
+ * dependencies and is a client for the wire API, not for server packages.
245
+ * If a status is added there, add it here.
246
+ */
247
+ statusLabels: {
248
+ draft: string;
249
+ pending: string;
250
+ processing: string;
251
+ partiallyFulfilled: string;
252
+ fulfilled: string;
253
+ cancelled: string;
254
+ closed: string;
255
+ };
256
+ /**
257
+ * The money half of the label, shown as a second badge beside the
258
+ * lifecycle one. `captured` is deliberately empty: paid in full is the
259
+ * assumed happy path, and announcing it on every settled order is noise.
260
+ */
261
+ paymentLabels: {
262
+ pending: string;
263
+ authorized: string;
264
+ captured: string;
265
+ partiallyPaid: string;
266
+ partiallyRefunded: string;
267
+ refunded: string;
268
+ failed: string;
269
+ voided: string;
270
+ processing: string;
271
+ disputed: string;
272
+ expired: string;
273
+ };
274
+ items: string;
275
+ subtotal: string;
276
+ discount: string;
277
+ shipping: string;
278
+ tax: string;
279
+ quantity: string;
280
+ shippingAddress: string;
281
+ billingAddress: string;
282
+ viewSubscription: string;
283
+ viewSubscriptionFor: string;
284
+ };
285
+ invoices: {
286
+ empty: string;
287
+ emptyDescription: string;
288
+ gatedDescription: string;
289
+ number: string;
290
+ issued: string;
291
+ due: string;
292
+ status: string;
293
+ total: string;
294
+ refunded: string;
295
+ period: string;
296
+ downloadButton: string;
297
+ items: string;
298
+ summary: string;
299
+ viewOrder: string;
300
+ viewSubscription: string;
301
+ payButton: string;
302
+ billedTo: string;
303
+ /** Shown when an invoice bills less than the order, matching the PDF. */
304
+ orderTotal: string;
305
+ amountPaid: string;
306
+ waived: string;
307
+ amountDue: string;
308
+ balanceDue: string;
309
+ /** Display copy for `invoice.status` — the wire values are paid|open|void. */
310
+ statusLabels: {
311
+ paid: string;
312
+ open: string;
313
+ void: string;
314
+ };
315
+ downloadUnavailable: string;
316
+ };
317
+ subscriptions: {
318
+ cancelConfirmAction: string;
319
+ pauseConfirm: string;
320
+ resumeConfirm: string;
321
+ cancelNowConfirm: string;
322
+ empty: string;
323
+ emptyDescription: string;
324
+ gatedDescription: string;
325
+ renewsOn: string;
326
+ endsOn: string;
327
+ cancelledOn: string;
328
+ trialEnds: string;
329
+ installmentProgress: string;
330
+ installmentTotal: string;
331
+ installmentNext: string;
332
+ /** Spec §5: a varied schedule's dated list; dates are estimates, hence "~". */
333
+ upcomingPayments: string;
334
+ upcomingPayment: string;
335
+ cancelButton: string;
336
+ cancelAtPeriodEnd: string;
337
+ cancelNow: string;
338
+ pauseButton: string;
339
+ resumeButton: string;
340
+ /** A physical subscription's ship-to, and the control that changes it. */
341
+ shipsTo: string;
342
+ changeAddress: string;
343
+ changeAddressTitle: string;
344
+ changeAddressHint: string;
345
+ cancelConfirm: string;
346
+ cancelScheduled: string;
347
+ columnPlan: string;
348
+ columnPrice: string;
349
+ columnRenews: string;
350
+ columnStatus: string;
351
+ /**
352
+ * Display copy for `subscription.status`. Mirrors SubscriptionStatus in
353
+ * `@commerce/subscriptions`; copied rather than imported because this
354
+ * package has no runtime dependencies. Without it a buyer in dunning saw
355
+ * the literal pill `past_due`. `completed` is an installment plan that
356
+ * has taken its last payment.
357
+ */
358
+ statusLabels: {
359
+ active: string;
360
+ paused: string;
361
+ cancelled: string;
362
+ pastDue: string;
363
+ trialing: string;
364
+ unpaid: string;
365
+ completed: string;
366
+ };
367
+ };
368
+ security: {
369
+ passwordTitle: string;
370
+ newPassword: string;
371
+ changeButton: string;
372
+ changedNotice: string;
373
+ sessionsTitle: string;
374
+ thisDevice: string;
375
+ lastActive: string;
376
+ revokeButton: string;
377
+ revokeAllButton: string;
378
+ sessionsEmpty: string;
379
+ columnDevice: string;
380
+ };
381
+ errors: Record<string, string>;
382
+ };
383
+ /** Every field optional, at every depth — a merchant overrides one string. */
384
+ type ThrottleLocalization = DeepPartial<typeof enUS>;
385
+ type DeepPartial<T> = {
386
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
387
+ };
388
+
389
+ export { THROTTLE_ELEMENT_KEYS as T, type ThrottleAppearance as a, type ThrottleElementKey as b, type ThrottleLocalization as c, type ThrottleSlots as d, type ThrottleThemeName as e, type ThrottleVariables as f, enUS as g };
@@ -0,0 +1,37 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+ import { R as Resource } from '../../../hooks-DkpLrEiC.js';
4
+ export { A as AccountModal, a as AccountModalProps, b as AddCardDialog, I as InvoiceDetail, c as InvoicesPanel, O as OrderDetail, P as PaymentMethodsPanel, d as ProfilePanel, S as SecurityPanel, e as SubscriptionsPanel, V as VerifyEmailBanner } from '../../../AccountModal-pIMgledL.js';
5
+ export { A as ACCOUNT_TABS, a as AccountDashboard, b as AccountDashboardProps, c as AccountPanelVariant, d as AccountTab, e as AddressesPanel, f as OrdersPanel } from '../../../AccountDashboard-V63ghvjY.js';
6
+ import { A as Address, a as AddressInput } from '../../../client-7LVKfuXO.js';
7
+ import '../../../localization-SnIAZXJn.js';
8
+
9
+ interface PanelStateProps<T> {
10
+ resource: Resource<T>;
11
+ /**
12
+ * True when the buyer is unverified AND this resource is behind the claim
13
+ * cutoff. An empty list then means "withheld", not "none" — see spec §10.
14
+ */
15
+ gated?: boolean;
16
+ gatedDescription?: string;
17
+ isEmpty(data: T): boolean;
18
+ emptyTitle: string;
19
+ emptyDescription?: string;
20
+ skeletonRows?: number;
21
+ children(data: T): ReactNode;
22
+ }
23
+ declare function PanelState<T>(props: PanelStateProps<T>): react_jsx_runtime.JSX.Element | null;
24
+
25
+ declare function AddressForm(props: {
26
+ initial?: Address;
27
+ submitting: boolean;
28
+ error: string | null;
29
+ onSubmit(input: AddressInput): void;
30
+ onCancel(): void;
31
+ /** Hides the saved-address label, for an address that is not saved to the book. */
32
+ hideLabel?: boolean;
33
+ /** Overrides the root element key (defaults to the addresses panel's form). */
34
+ elementKey?: 'addressesPanel.form' | 'subscriptionsPanel.addressForm';
35
+ }): react_jsx_runtime.JSX.Element;
36
+
37
+ export { AddressForm, PanelState, type PanelStateProps };
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import "../../../chunk-3B4DNX5T.js";
3
+ import {
4
+ ACCOUNT_TABS,
5
+ AccountDashboard,
6
+ AccountModal,
7
+ AddCardDialog,
8
+ AddressForm,
9
+ AddressesPanel,
10
+ InvoiceDetail,
11
+ InvoicesPanel,
12
+ OrderDetail,
13
+ OrdersPanel,
14
+ PanelState,
15
+ PaymentMethodsPanel,
16
+ ProfilePanel,
17
+ SecurityPanel,
18
+ SubscriptionsPanel,
19
+ VerifyEmailBanner
20
+ } from "../../../chunk-6WN3J5MM.js";
21
+ import "../../../chunk-UFGW76AZ.js";
22
+ import "../../../chunk-QPVS6JXP.js";
23
+ import "../../../chunk-CUNMJ2PH.js";
24
+ import "../../../chunk-K7RCWADI.js";
25
+ import "../../../chunk-TDQC3LMQ.js";
26
+ export {
27
+ ACCOUNT_TABS,
28
+ AccountDashboard,
29
+ AccountModal,
30
+ AddCardDialog,
31
+ AddressForm,
32
+ AddressesPanel,
33
+ InvoiceDetail,
34
+ InvoicesPanel,
35
+ OrderDetail,
36
+ OrdersPanel,
37
+ PanelState,
38
+ PaymentMethodsPanel,
39
+ ProfilePanel,
40
+ SecurityPanel,
41
+ SubscriptionsPanel,
42
+ VerifyEmailBanner
43
+ };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,17 @@
1
+ export { A as AuthCardVariant, a as AuthFlow, b as AuthFlowProps, c as AuthModal, d as AuthModalProps, e as AuthView, F as ForgotPassword, f as ForgotPasswordProps, R as ResetPassword, g as ResetPasswordProps, S as SignIn, h as SignInButton, i as SignInButtonProps, j as SignInPage, k as SignInPageProps, l as SignInProps, m as SignOutButton, n as SignOutButtonProps, o as SignUp, p as SignUpButton, q as SignUpButtonProps, r as SignUpPage, s as SignUpPageProps, t as SignUpProps, V as VerifyEmail, u as VerifyEmailProps } from '../../../SignUpPage-BJcMUb2V.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import 'react';
4
+ import '../../../localization-SnIAZXJn.js';
5
+
6
+ /**
7
+ * The dialog behind the core's `onStepUpRequired`. It resolves that promise
8
+ * with a password or with null; the core does the retrying. Nothing here
9
+ * knows which request triggered it, which is exactly why one dialog serves
10
+ * every sensitive action in the app.
11
+ */
12
+ declare function StepUpDialog(props: {
13
+ open: boolean;
14
+ onResolve(password: string | null): void;
15
+ }): react_jsx_runtime.JSX.Element;
16
+
17
+ export { StepUpDialog };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import {
3
+ SignInButton,
4
+ SignInPage,
5
+ SignOutButton,
6
+ SignUpButton,
7
+ SignUpPage,
8
+ StepUpDialog
9
+ } from "../../../chunk-VDK23T6L.js";
10
+ import "../../../chunk-RCNUWITB.js";
11
+ import {
12
+ AuthFlow,
13
+ AuthModal,
14
+ ForgotPassword,
15
+ ResetPassword,
16
+ SignIn,
17
+ SignUp,
18
+ VerifyEmail
19
+ } from "../../../chunk-JSDZMPCV.js";
20
+ import "../../../chunk-X6D35EAX.js";
21
+ import "../../../chunk-QPVS6JXP.js";
22
+ import "../../../chunk-CUNMJ2PH.js";
23
+ import "../../../chunk-K7RCWADI.js";
24
+ import "../../../chunk-TDQC3LMQ.js";
25
+ export {
26
+ AuthFlow,
27
+ AuthModal,
28
+ ForgotPassword,
29
+ ResetPassword,
30
+ SignIn,
31
+ SignInButton,
32
+ SignInPage,
33
+ SignOutButton,
34
+ SignUp,
35
+ SignUpButton,
36
+ SignUpPage,
37
+ StepUpDialog,
38
+ VerifyEmail
39
+ };
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ /**
5
+ * All three render nothing while `status === 'loading'`. A guard that treated
6
+ * loading as signed-out would flash a "Sign in" button at a buyer whose
7
+ * session is a few milliseconds from being restored.
8
+ */
9
+ declare function SignedIn(props: {
10
+ children: ReactNode;
11
+ }): react_jsx_runtime.JSX.Element | null;
12
+ declare function SignedOut(props: {
13
+ children: ReactNode;
14
+ }): react_jsx_runtime.JSX.Element | null;
15
+ declare function Protect(props: {
16
+ requireVerified?: boolean;
17
+ fallback?: ReactNode;
18
+ children: ReactNode;
19
+ }): react_jsx_runtime.JSX.Element | null;
20
+
21
+ export { Protect, SignedIn, SignedOut };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ Protect,
4
+ SignedIn,
5
+ SignedOut
6
+ } from "../../chunk-5EUZYJJL.js";
7
+ import "../../chunk-TDQC3LMQ.js";
8
+ export {
9
+ Protect,
10
+ SignedIn,
11
+ SignedOut
12
+ };
13
+ //# sourceMappingURL=guards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}