@pontive/pontkit-core 1.43.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/catalog.json +1 -1
- package/dist/core/format.d.ts +30 -0
- package/dist/core/messages.d.ts +115 -0
- package/dist/custom-elements.json +4829 -300
- package/dist/index.mjs +6006 -3783
- package/dist/index.mjs.map +1 -1
- package/dist/kit/billing-portal/billing-portal.d.ts +192 -0
- package/dist/kit/billing-portal/rules.d.ts +36 -0
- package/dist/kit/checkout/billing-story-fakes.d.ts +78 -0
- package/dist/kit/checkout/checkout.d.ts +147 -0
- package/dist/kit/checkout/display.d.ts +30 -0
- package/dist/kit/checkout/errors.d.ts +28 -0
- package/dist/kit/checkout/packages.d.ts +13 -0
- package/dist/kit/checkout/payment.d.ts +158 -0
- package/dist/kit/checkout/stripe.d.ts +98 -0
- package/dist/kit/index.d.ts +2 -0
- package/dist/kit/provider/account-billing.d.ts +384 -0
- package/dist/kit/provider/account-client.d.ts +37 -3
- package/dist/kit/provider/provider.d.ts +1 -0
- package/dist/styles.css +505 -7
- package/dist/theme/types.d.ts +2 -0
- package/dist/theme-golden.json +151 -63
- package/dist/theme.mjs +82 -76
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +77 -5
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AccountBillingApi } from './account-billing';
|
|
1
2
|
import { SessionChange } from './sdk';
|
|
2
3
|
/**
|
|
3
4
|
* # `AccountClient`: what the account widgets talk to (migration decision D9, tracker W-12)
|
|
@@ -235,8 +236,11 @@ export interface AccountMembersApi {
|
|
|
235
236
|
*/
|
|
236
237
|
requestedScopes?(): string[];
|
|
237
238
|
}
|
|
238
|
-
/**
|
|
239
|
-
|
|
239
|
+
/**
|
|
240
|
+
* The account widgets' client: the session part, plus the parts the settings, members and billing
|
|
241
|
+
* widgets need. The billing part is `account-billing.ts` (billing-svc docs/m17-design.md, Part 3).
|
|
242
|
+
*/
|
|
243
|
+
export interface AccountClient extends AccountSessionApi, Partial<AccountProfileApi>, Partial<AccountMembersApi>, Partial<AccountBillingApi> {
|
|
240
244
|
}
|
|
241
245
|
/**
|
|
242
246
|
* `pont:account-client`: the account widgets' client. Undefined until the provider has configured
|
|
@@ -313,7 +317,7 @@ export declare function managementBase(apiBaseUrl: string | undefined): string |
|
|
|
313
317
|
* (`getManagementToken`, cached and coalesced by the SDK; carry-over §5). What the legacy
|
|
314
318
|
* `src/service/http` did, as one object.
|
|
315
319
|
*/
|
|
316
|
-
export declare class SdkAccountClient implements AccountSessionApi, AccountProfileApi, AccountMembersApi {
|
|
320
|
+
export declare class SdkAccountClient implements AccountSessionApi, AccountProfileApi, AccountMembersApi, AccountBillingApi {
|
|
317
321
|
readonly sdk: AccountSdk;
|
|
318
322
|
readonly apiBaseUrl: string;
|
|
319
323
|
readonly appId: string | undefined;
|
|
@@ -321,6 +325,34 @@ export declare class SdkAccountClient implements AccountSessionApi, AccountProfi
|
|
|
321
325
|
readonly scope: string | string[] | undefined;
|
|
322
326
|
private readonly fetchImpl;
|
|
323
327
|
constructor(options: AccountClientOptions);
|
|
328
|
+
readonly listBillingAccounts: AccountBillingApi["listBillingAccounts"];
|
|
329
|
+
readonly listMyContracts: AccountBillingApi["listMyContracts"];
|
|
330
|
+
readonly previewMyContractChange: AccountBillingApi["previewMyContractChange"];
|
|
331
|
+
readonly changeMyContract: AccountBillingApi["changeMyContract"];
|
|
332
|
+
readonly cancelMyContract: AccountBillingApi["cancelMyContract"];
|
|
333
|
+
readonly revokeMyContractCancellation: AccountBillingApi["revokeMyContractCancellation"];
|
|
334
|
+
readonly createMyCheckoutSession: AccountBillingApi["createMyCheckoutSession"];
|
|
335
|
+
readonly getMyCheckoutSession: AccountBillingApi["getMyCheckoutSession"];
|
|
336
|
+
readonly previewMyCheckout: AccountBillingApi["previewMyCheckout"];
|
|
337
|
+
readonly confirmMyCheckout: AccountBillingApi["confirmMyCheckout"];
|
|
338
|
+
readonly listMyInvoices: AccountBillingApi["listMyInvoices"];
|
|
339
|
+
readonly getMyInvoice: AccountBillingApi["getMyInvoice"];
|
|
340
|
+
readonly getMyInvoicePdf: AccountBillingApi["getMyInvoicePdf"];
|
|
341
|
+
readonly getMyUpcomingInvoice: AccountBillingApi["getMyUpcomingInvoice"];
|
|
342
|
+
readonly listMyCreditNotes: AccountBillingApi["listMyCreditNotes"];
|
|
343
|
+
readonly payMyInvoice: AccountBillingApi["payMyInvoice"];
|
|
344
|
+
readonly listMyPaymentMethods: AccountBillingApi["listMyPaymentMethods"];
|
|
345
|
+
readonly createMyPaymentMethodSession: AccountBillingApi["createMyPaymentMethodSession"];
|
|
346
|
+
readonly setMyDefaultPaymentMethod: AccountBillingApi["setMyDefaultPaymentMethod"];
|
|
347
|
+
readonly removeMyPaymentMethod: AccountBillingApi["removeMyPaymentMethod"];
|
|
348
|
+
readonly listMyPayments: AccountBillingApi["listMyPayments"];
|
|
349
|
+
readonly listMyBalances: AccountBillingApi["listMyBalances"];
|
|
350
|
+
readonly listMyLedgerEntries: AccountBillingApi["listMyLedgerEntries"];
|
|
351
|
+
readonly getMyUsage: AccountBillingApi["getMyUsage"];
|
|
352
|
+
readonly listMyEntitlements: AccountBillingApi["listMyEntitlements"];
|
|
353
|
+
readonly checkMyEntitlement: AccountBillingApi["checkMyEntitlement"];
|
|
354
|
+
/** One billing route with a management token (the billing scopes are only on it). */
|
|
355
|
+
private billingRequest;
|
|
324
356
|
getUser(): SessionUser | null;
|
|
325
357
|
getOrganization(): SessionOrganization | null;
|
|
326
358
|
listMyOrganizations(): Promise<MyOrganization[]>;
|
|
@@ -351,5 +383,7 @@ export declare class SdkAccountClient implements AccountSessionApi, AccountProfi
|
|
|
351
383
|
*/
|
|
352
384
|
private request;
|
|
353
385
|
}
|
|
386
|
+
/** A fresh key for one create or mutate call (pontive-api-design-spec.md, Idempotency). */
|
|
387
|
+
export declare function idempotencyKey(): string;
|
|
354
388
|
/** The default account client over `sdk`. */
|
|
355
389
|
export declare function createAccountClient(options: AccountClientOptions): SdkAccountClient;
|
|
@@ -4,6 +4,7 @@ import { AccountClient } from './account-client';
|
|
|
4
4
|
import { AuthState } from './contexts';
|
|
5
5
|
import { AppSdkConfig, ProviderSdk } from './sdk';
|
|
6
6
|
export * from './account-client';
|
|
7
|
+
export * from './account-billing';
|
|
7
8
|
export * from './account-controller';
|
|
8
9
|
export * from './account-user';
|
|
9
10
|
export * from './contexts';
|
package/dist/styles.css
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* (11 §4, §5).
|
|
38
38
|
*
|
|
39
39
|
* border.css border width unit and styles (ref), the border width, style and outline roles and
|
|
40
|
-
* the `sem-border` / `sem-border-outline` shorthands (sem)
|
|
40
|
+
* the `sem-border` / `sem-border-outline` shorthands and `sem-border-outline-none` (sem)
|
|
41
41
|
* color/ index.css imports ref-color/ and sem-color/ (the colour roles:
|
|
42
42
|
* light-mode.css, dark-mode.css, and the mode-independent shadow and chart colours in
|
|
43
43
|
* sem-color/index.css); ref-color/index.css declares the ref colour
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
* cursor.css cursor keywords (ref) and the cursor roles (sem)
|
|
47
47
|
* dimension.css the dimension unit, size scale and keywords, space keywords, size/inset defaults
|
|
48
48
|
* filter.css the blur unit (--pont-ref-filter-blur) and the blur scale derived from it
|
|
49
|
-
* layout.css aspect ratios, box-sizing, align-items and justify-content keywords
|
|
50
|
-
* items and justify roles (sem)
|
|
49
|
+
* layout.css aspect ratios, box-sizing, align-items, align-content and justify-content keywords
|
|
50
|
+
* (ref) and the items, content and justify roles (sem)
|
|
51
51
|
* motion.css durations, easings, transition properties (ref) and the transition/animation roles (sem)
|
|
52
52
|
* opacity.css the opacity unit (--pont-ref-opacity), none/full, and the disabled role
|
|
53
53
|
* radius.css the radius knob (--pont-ref-radius) and the ref scale derived from it
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
--pont-sem-border-outline: var(--pont-sem-border-outline-width)
|
|
113
113
|
var(--pont-sem-border-outline-style) var(--pont-sem-color-outline);
|
|
114
|
+
--pont-sem-border-outline-none: var(--pont-ref-border-style-none);
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
|
|
@@ -1433,8 +1434,8 @@
|
|
|
1433
1434
|
* ===========================================================================
|
|
1434
1435
|
* LAYOUT TOKENS
|
|
1435
1436
|
* ---------------------------------------------------------------------------
|
|
1436
|
-
* Aspect ratios and box sizing (ref); align-items
|
|
1437
|
-
* keywords (ref, fixed) and their roles (sem, themable)
|
|
1437
|
+
* Aspect ratios and box sizing (ref); align-items, align-content and
|
|
1438
|
+
* justify-content keywords (ref, fixed) and their roles (sem, themable)
|
|
1438
1439
|
* ===========================================================================
|
|
1439
1440
|
*/
|
|
1440
1441
|
|
|
@@ -1517,7 +1518,47 @@
|
|
|
1517
1518
|
|
|
1518
1519
|
@layer pont.tokens {
|
|
1519
1520
|
:root {
|
|
1520
|
-
--pont-sem-layout-items: var(--pont-ref-layout-items-
|
|
1521
|
+
--pont-sem-layout-items: var(--pont-ref-layout-items-stretch);
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
/*
|
|
1526
|
+
* ---------------------------------------------------------------------------
|
|
1527
|
+
* LAYOUT CONTENT TOKENS
|
|
1528
|
+
* ---------------------------------------------------------------------------
|
|
1529
|
+
* `align-content`
|
|
1530
|
+
* ---------------------------------------------------------------------------
|
|
1531
|
+
*/
|
|
1532
|
+
|
|
1533
|
+
/*
|
|
1534
|
+
* --------------------------------------------------
|
|
1535
|
+
* LAYOUT CONTENT REFERENCE TOKENS
|
|
1536
|
+
* --------------------------------------------------
|
|
1537
|
+
*/
|
|
1538
|
+
|
|
1539
|
+
@layer pont.tokens {
|
|
1540
|
+
:root {
|
|
1541
|
+
--pont-ref-layout-content-normal: normal;
|
|
1542
|
+
--pont-ref-layout-content-center: center;
|
|
1543
|
+
--pont-ref-layout-content-start: flex-start;
|
|
1544
|
+
--pont-ref-layout-content-end: flex-end;
|
|
1545
|
+
--pont-ref-layout-content-between: space-between;
|
|
1546
|
+
--pont-ref-layout-content-around: space-around;
|
|
1547
|
+
--pont-ref-layout-content-evenly: space-evenly;
|
|
1548
|
+
--pont-ref-layout-content-baseline: baseline;
|
|
1549
|
+
--pont-ref-layout-content-stretch: stretch;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
/*
|
|
1554
|
+
* --------------------------------------------------
|
|
1555
|
+
* LAYOUT CONTENT SEMANTIC TOKENS
|
|
1556
|
+
* --------------------------------------------------
|
|
1557
|
+
*/
|
|
1558
|
+
|
|
1559
|
+
@layer pont.tokens {
|
|
1560
|
+
:root {
|
|
1561
|
+
--pont-sem-layout-content: var(--pont-ref-layout-content-normal);
|
|
1521
1562
|
}
|
|
1522
1563
|
}
|
|
1523
1564
|
|
|
@@ -1558,7 +1599,7 @@
|
|
|
1558
1599
|
|
|
1559
1600
|
@layer pont.tokens {
|
|
1560
1601
|
:root {
|
|
1561
|
-
--pont-sem-layout-justify: var(--pont-ref-layout-justify-
|
|
1602
|
+
--pont-sem-layout-justify: var(--pont-ref-layout-justify-normal);
|
|
1562
1603
|
}
|
|
1563
1604
|
}
|
|
1564
1605
|
|
|
@@ -9735,3 +9776,460 @@
|
|
|
9735
9776
|
justify-content: flex-end;
|
|
9736
9777
|
}
|
|
9737
9778
|
}
|
|
9779
|
+
|
|
9780
|
+
/* ../kit/checkout/checkout.css */
|
|
9781
|
+
/*
|
|
9782
|
+
* <pont-checkout>: a header, the package and frequency choice, the address, the first invoice
|
|
9783
|
+
* and the payment step. The recipes style the radio group, fields, inputs, buttons, badges,
|
|
9784
|
+
* alerts and spinner; here: the layout, the option cards, and the invoice summary that
|
|
9785
|
+
* <pont-billing-portal> shares (the [data-pont-billing-*] hooks). The Payment Element is Stripe's
|
|
9786
|
+
* iframe; its colours come from the tokens through Stripe's Appearance API, not from this file.
|
|
9787
|
+
*/
|
|
9788
|
+
@layer pont.kit {
|
|
9789
|
+
pont-checkout {
|
|
9790
|
+
display: block;
|
|
9791
|
+
}
|
|
9792
|
+
|
|
9793
|
+
[data-pont-checkout-page] {
|
|
9794
|
+
display: flex;
|
|
9795
|
+
flex-direction: column;
|
|
9796
|
+
gap: 1.5rem;
|
|
9797
|
+
inline-size: var(--pont-ref-dimension-size-full);
|
|
9798
|
+
}
|
|
9799
|
+
|
|
9800
|
+
[data-pont-checkout-title] {
|
|
9801
|
+
margin: 0;
|
|
9802
|
+
font-size: var(--pont-ref-typography-size-xl);
|
|
9803
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
9804
|
+
line-height: 1.3;
|
|
9805
|
+
}
|
|
9806
|
+
|
|
9807
|
+
[data-pont-checkout-subtitle] {
|
|
9808
|
+
margin: 0 0 0.75rem;
|
|
9809
|
+
font-size: var(--pont-ref-typography-size-base);
|
|
9810
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
9811
|
+
}
|
|
9812
|
+
|
|
9813
|
+
[data-pont-checkout-form],
|
|
9814
|
+
[data-pont-checkout-address] {
|
|
9815
|
+
display: grid;
|
|
9816
|
+
gap: 1.25rem;
|
|
9817
|
+
}
|
|
9818
|
+
|
|
9819
|
+
[data-pont-checkout-legend] {
|
|
9820
|
+
margin-block-end: 0.75rem;
|
|
9821
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
9822
|
+
font-weight: var(--pont-ref-typography-weight-medium);
|
|
9823
|
+
}
|
|
9824
|
+
|
|
9825
|
+
[data-pont-checkout-packages] {
|
|
9826
|
+
display: grid;
|
|
9827
|
+
gap: 0.75rem;
|
|
9828
|
+
}
|
|
9829
|
+
|
|
9830
|
+
[data-pont-checkout-option] {
|
|
9831
|
+
display: flex;
|
|
9832
|
+
align-items: flex-start;
|
|
9833
|
+
gap: 0.75rem;
|
|
9834
|
+
padding: 1rem;
|
|
9835
|
+
border: 1px solid var(--pont-sem-color-border);
|
|
9836
|
+
border-radius: var(--pont-ref-radius-lg);
|
|
9837
|
+
}
|
|
9838
|
+
|
|
9839
|
+
[data-pont-checkout-option][data-selected] {
|
|
9840
|
+
border-color: var(--pont-sem-color-primary);
|
|
9841
|
+
}
|
|
9842
|
+
|
|
9843
|
+
[data-pont-checkout-option-label] {
|
|
9844
|
+
display: grid;
|
|
9845
|
+
gap: 0.25rem;
|
|
9846
|
+
flex: 1 1 auto;
|
|
9847
|
+
min-inline-size: 0;
|
|
9848
|
+
cursor: pointer;
|
|
9849
|
+
}
|
|
9850
|
+
|
|
9851
|
+
[data-pont-checkout-option-name] {
|
|
9852
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
9853
|
+
}
|
|
9854
|
+
|
|
9855
|
+
[data-pont-checkout-option-tagline],
|
|
9856
|
+
[data-pont-checkout-period],
|
|
9857
|
+
[data-pont-checkout-trial],
|
|
9858
|
+
[data-pont-checkout-trial-note] {
|
|
9859
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
9860
|
+
color: var(--pont-sem-color-muted-fg);
|
|
9861
|
+
}
|
|
9862
|
+
|
|
9863
|
+
[data-pont-checkout-frequencies] {
|
|
9864
|
+
display: flex;
|
|
9865
|
+
flex-wrap: wrap;
|
|
9866
|
+
gap: 1rem;
|
|
9867
|
+
}
|
|
9868
|
+
|
|
9869
|
+
[data-pont-checkout-frequency] {
|
|
9870
|
+
display: inline-flex;
|
|
9871
|
+
align-items: center;
|
|
9872
|
+
gap: 0.5rem;
|
|
9873
|
+
}
|
|
9874
|
+
|
|
9875
|
+
[data-pont-checkout-review] {
|
|
9876
|
+
display: grid;
|
|
9877
|
+
gap: 1.5rem;
|
|
9878
|
+
}
|
|
9879
|
+
|
|
9880
|
+
[data-pont-checkout-chosen] {
|
|
9881
|
+
display: flex;
|
|
9882
|
+
flex-wrap: wrap;
|
|
9883
|
+
align-items: baseline;
|
|
9884
|
+
gap: 0.5rem;
|
|
9885
|
+
margin: 0 0 0.75rem;
|
|
9886
|
+
}
|
|
9887
|
+
|
|
9888
|
+
/* Stripe's iframe goes in here: no padding or border of ours, so it lays out as Stripe expects. */
|
|
9889
|
+
[data-pont-checkout-payment-element] {
|
|
9890
|
+
min-block-size: 3rem;
|
|
9891
|
+
margin-block-end: 1rem;
|
|
9892
|
+
}
|
|
9893
|
+
|
|
9894
|
+
[data-pont-checkout-actions] {
|
|
9895
|
+
display: flex;
|
|
9896
|
+
flex-wrap: wrap;
|
|
9897
|
+
justify-content: flex-end;
|
|
9898
|
+
gap: 0.5rem;
|
|
9899
|
+
}
|
|
9900
|
+
|
|
9901
|
+
[data-pont-checkout-problem] {
|
|
9902
|
+
display: flex;
|
|
9903
|
+
flex-direction: column;
|
|
9904
|
+
align-items: flex-start;
|
|
9905
|
+
gap: 1rem;
|
|
9906
|
+
}
|
|
9907
|
+
|
|
9908
|
+
[data-pont-checkout-loading],
|
|
9909
|
+
[data-pont-checkout-confirming],
|
|
9910
|
+
[data-pont-checkout-done] {
|
|
9911
|
+
display: flex;
|
|
9912
|
+
flex-direction: column;
|
|
9913
|
+
align-items: center;
|
|
9914
|
+
gap: 0.75rem;
|
|
9915
|
+
padding-block: 2.5rem;
|
|
9916
|
+
text-align: center;
|
|
9917
|
+
}
|
|
9918
|
+
|
|
9919
|
+
[data-pont-checkout-loading] > :is(pont-prim-spinner, [data-pont-spinner]),
|
|
9920
|
+
[data-pont-checkout-confirming] > :is(pont-prim-spinner, [data-pont-spinner]) {
|
|
9921
|
+
inline-size: 1.5rem;
|
|
9922
|
+
block-size: 1.5rem;
|
|
9923
|
+
}
|
|
9924
|
+
|
|
9925
|
+
[data-pont-checkout-confirming] p,
|
|
9926
|
+
[data-pont-checkout-done] p {
|
|
9927
|
+
margin: 0;
|
|
9928
|
+
}
|
|
9929
|
+
|
|
9930
|
+
[data-pont-checkout-done] svg {
|
|
9931
|
+
inline-size: 2rem;
|
|
9932
|
+
block-size: 2rem;
|
|
9933
|
+
color: var(--pont-sem-color-success);
|
|
9934
|
+
}
|
|
9935
|
+
|
|
9936
|
+
[data-pont-checkout-footer] {
|
|
9937
|
+
display: flex;
|
|
9938
|
+
justify-content: flex-end;
|
|
9939
|
+
}
|
|
9940
|
+
|
|
9941
|
+
/* Shared with <pont-billing-portal>: an invoice's lines and totals, amounts in tabular figures. */
|
|
9942
|
+
[data-pont-billing-amount] {
|
|
9943
|
+
font-variant-numeric: tabular-nums;
|
|
9944
|
+
white-space: nowrap;
|
|
9945
|
+
}
|
|
9946
|
+
|
|
9947
|
+
[data-pont-billing-invoice] {
|
|
9948
|
+
display: grid;
|
|
9949
|
+
gap: 0.75rem;
|
|
9950
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
9951
|
+
}
|
|
9952
|
+
|
|
9953
|
+
[data-pont-billing-lines] {
|
|
9954
|
+
display: grid;
|
|
9955
|
+
gap: 0.5rem;
|
|
9956
|
+
margin: 0;
|
|
9957
|
+
padding: 0;
|
|
9958
|
+
list-style: none;
|
|
9959
|
+
}
|
|
9960
|
+
|
|
9961
|
+
[data-pont-billing-line],
|
|
9962
|
+
[data-pont-billing-totals] > div {
|
|
9963
|
+
display: flex;
|
|
9964
|
+
justify-content: space-between;
|
|
9965
|
+
gap: 1rem;
|
|
9966
|
+
}
|
|
9967
|
+
|
|
9968
|
+
[data-pont-billing-line-description] {
|
|
9969
|
+
min-inline-size: 0;
|
|
9970
|
+
overflow-wrap: anywhere;
|
|
9971
|
+
}
|
|
9972
|
+
|
|
9973
|
+
[data-pont-billing-totals] {
|
|
9974
|
+
display: grid;
|
|
9975
|
+
gap: 0.375rem;
|
|
9976
|
+
margin: 0;
|
|
9977
|
+
padding-block-start: 0.75rem;
|
|
9978
|
+
border-block-start: 1px solid var(--pont-sem-color-border);
|
|
9979
|
+
}
|
|
9980
|
+
|
|
9981
|
+
[data-pont-billing-totals] dt {
|
|
9982
|
+
color: var(--pont-sem-color-muted-fg);
|
|
9983
|
+
}
|
|
9984
|
+
|
|
9985
|
+
[data-pont-billing-totals] dd {
|
|
9986
|
+
margin: 0;
|
|
9987
|
+
}
|
|
9988
|
+
|
|
9989
|
+
[data-pont-billing-due] {
|
|
9990
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
9991
|
+
}
|
|
9992
|
+
|
|
9993
|
+
[data-pont-billing-due] dt {
|
|
9994
|
+
color: var(--pont-sem-color-fg);
|
|
9995
|
+
}
|
|
9996
|
+
}
|
|
9997
|
+
|
|
9998
|
+
/* ../kit/billing-portal/billing-portal.css */
|
|
9999
|
+
/*
|
|
10000
|
+
* <pont-billing-portal>: a header, the account picker, the recovery notice, and the Plan,
|
|
10001
|
+
* Invoices, Credit notes and Payment methods sections, each with its inline panel. The recipes
|
|
10002
|
+
* style the table, badges, buttons, radio group, fields, alerts and spinner; the invoice summary is
|
|
10003
|
+
* checkout.css's [data-pont-billing-*]. The Payment Element is Stripe's iframe, styled through
|
|
10004
|
+
* Stripe's Appearance API from the tokens.
|
|
10005
|
+
*/
|
|
10006
|
+
@layer pont.kit {
|
|
10007
|
+
pont-billing-portal {
|
|
10008
|
+
display: block;
|
|
10009
|
+
}
|
|
10010
|
+
|
|
10011
|
+
[data-pont-billing-portal-page] {
|
|
10012
|
+
display: flex;
|
|
10013
|
+
flex-direction: column;
|
|
10014
|
+
gap: 1.5rem;
|
|
10015
|
+
inline-size: var(--pont-ref-dimension-size-full);
|
|
10016
|
+
}
|
|
10017
|
+
|
|
10018
|
+
[data-pont-billing-portal-header] {
|
|
10019
|
+
display: grid;
|
|
10020
|
+
gap: 0.25rem;
|
|
10021
|
+
}
|
|
10022
|
+
|
|
10023
|
+
[data-pont-billing-portal-title] {
|
|
10024
|
+
margin: 0;
|
|
10025
|
+
font-size: var(--pont-ref-typography-size-xl);
|
|
10026
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
10027
|
+
line-height: 1.3;
|
|
10028
|
+
}
|
|
10029
|
+
|
|
10030
|
+
[data-pont-billing-portal-subtitle],
|
|
10031
|
+
[data-pont-billing-portal-muted] {
|
|
10032
|
+
margin: 0;
|
|
10033
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
10034
|
+
color: var(--pont-sem-color-muted-fg);
|
|
10035
|
+
}
|
|
10036
|
+
|
|
10037
|
+
[data-pont-billing-portal-account] {
|
|
10038
|
+
display: flex;
|
|
10039
|
+
flex-wrap: wrap;
|
|
10040
|
+
align-items: center;
|
|
10041
|
+
gap: 0.5rem;
|
|
10042
|
+
}
|
|
10043
|
+
|
|
10044
|
+
[data-pont-billing-portal-section] {
|
|
10045
|
+
display: grid;
|
|
10046
|
+
gap: 1rem;
|
|
10047
|
+
padding: 1.25rem;
|
|
10048
|
+
border: 1px solid var(--pont-sem-color-border);
|
|
10049
|
+
border-radius: var(--pont-ref-radius-lg);
|
|
10050
|
+
min-inline-size: 0;
|
|
10051
|
+
}
|
|
10052
|
+
|
|
10053
|
+
[data-pont-billing-portal-section-header] {
|
|
10054
|
+
display: flex;
|
|
10055
|
+
flex-wrap: wrap;
|
|
10056
|
+
align-items: center;
|
|
10057
|
+
justify-content: space-between;
|
|
10058
|
+
gap: 0.75rem;
|
|
10059
|
+
}
|
|
10060
|
+
|
|
10061
|
+
[data-pont-billing-portal-section-title] {
|
|
10062
|
+
margin: 0;
|
|
10063
|
+
font-size: var(--pont-ref-typography-size-base);
|
|
10064
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
10065
|
+
}
|
|
10066
|
+
|
|
10067
|
+
[data-pont-billing-portal-section-actions],
|
|
10068
|
+
[data-pont-billing-portal-row-actions],
|
|
10069
|
+
[data-pont-billing-portal-panel-actions] {
|
|
10070
|
+
display: flex;
|
|
10071
|
+
flex-wrap: wrap;
|
|
10072
|
+
align-items: center;
|
|
10073
|
+
gap: 0.5rem;
|
|
10074
|
+
}
|
|
10075
|
+
|
|
10076
|
+
[data-pont-billing-portal-panel-actions] {
|
|
10077
|
+
justify-content: flex-end;
|
|
10078
|
+
}
|
|
10079
|
+
|
|
10080
|
+
[data-pont-billing-portal-plan] {
|
|
10081
|
+
display: grid;
|
|
10082
|
+
gap: 0.75rem;
|
|
10083
|
+
}
|
|
10084
|
+
|
|
10085
|
+
[data-pont-billing-portal-plan-name] {
|
|
10086
|
+
display: flex;
|
|
10087
|
+
flex-wrap: wrap;
|
|
10088
|
+
align-items: center;
|
|
10089
|
+
gap: 0.5rem;
|
|
10090
|
+
margin: 0;
|
|
10091
|
+
font-size: var(--pont-ref-typography-size-lg);
|
|
10092
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
10093
|
+
}
|
|
10094
|
+
|
|
10095
|
+
[data-pont-billing-portal-facts] {
|
|
10096
|
+
display: grid;
|
|
10097
|
+
grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
|
|
10098
|
+
gap: 0.75rem 1.5rem;
|
|
10099
|
+
margin: 0;
|
|
10100
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
10101
|
+
}
|
|
10102
|
+
|
|
10103
|
+
[data-pont-billing-portal-facts] dt {
|
|
10104
|
+
color: var(--pont-sem-color-muted-fg);
|
|
10105
|
+
}
|
|
10106
|
+
|
|
10107
|
+
[data-pont-billing-portal-facts] dd {
|
|
10108
|
+
margin: 0;
|
|
10109
|
+
}
|
|
10110
|
+
|
|
10111
|
+
[data-pont-billing-portal-panel] {
|
|
10112
|
+
display: grid;
|
|
10113
|
+
gap: 1rem;
|
|
10114
|
+
padding: 1rem;
|
|
10115
|
+
border-radius: var(--pont-ref-radius-md);
|
|
10116
|
+
background: var(--pont-sem-color-muted);
|
|
10117
|
+
}
|
|
10118
|
+
|
|
10119
|
+
[data-pont-billing-portal-panel] p {
|
|
10120
|
+
margin: 0;
|
|
10121
|
+
}
|
|
10122
|
+
|
|
10123
|
+
[data-pont-billing-portal-panel-title] {
|
|
10124
|
+
margin: 0;
|
|
10125
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
10126
|
+
font-weight: var(--pont-ref-typography-weight-semibold);
|
|
10127
|
+
}
|
|
10128
|
+
|
|
10129
|
+
[data-pont-billing-portal-legend] {
|
|
10130
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
10131
|
+
font-weight: var(--pont-ref-typography-weight-medium);
|
|
10132
|
+
}
|
|
10133
|
+
|
|
10134
|
+
[data-pont-billing-portal-options] {
|
|
10135
|
+
display: grid;
|
|
10136
|
+
gap: 0.5rem;
|
|
10137
|
+
}
|
|
10138
|
+
|
|
10139
|
+
[data-pont-billing-portal-frequencies] {
|
|
10140
|
+
display: flex;
|
|
10141
|
+
flex-wrap: wrap;
|
|
10142
|
+
align-items: center;
|
|
10143
|
+
gap: 1rem;
|
|
10144
|
+
}
|
|
10145
|
+
|
|
10146
|
+
[data-pont-billing-portal-option],
|
|
10147
|
+
[data-pont-billing-portal-frequency] {
|
|
10148
|
+
display: flex;
|
|
10149
|
+
align-items: center;
|
|
10150
|
+
gap: 0.5rem;
|
|
10151
|
+
}
|
|
10152
|
+
|
|
10153
|
+
[data-pont-billing-portal-option] label {
|
|
10154
|
+
display: flex;
|
|
10155
|
+
flex-wrap: wrap;
|
|
10156
|
+
gap: 0.5rem;
|
|
10157
|
+
cursor: pointer;
|
|
10158
|
+
}
|
|
10159
|
+
|
|
10160
|
+
[data-pont-billing-portal-option-name],
|
|
10161
|
+
[data-pont-billing-portal-method-name] {
|
|
10162
|
+
font-weight: var(--pont-ref-typography-weight-medium);
|
|
10163
|
+
}
|
|
10164
|
+
|
|
10165
|
+
/* Stripe's iframe goes in here, with no box of ours. */
|
|
10166
|
+
[data-pont-billing-portal-payment-element] {
|
|
10167
|
+
min-block-size: 3rem;
|
|
10168
|
+
}
|
|
10169
|
+
|
|
10170
|
+
[data-pont-billing-portal-methods] {
|
|
10171
|
+
display: grid;
|
|
10172
|
+
gap: 0.5rem;
|
|
10173
|
+
margin: 0;
|
|
10174
|
+
padding: 0;
|
|
10175
|
+
list-style: none;
|
|
10176
|
+
}
|
|
10177
|
+
|
|
10178
|
+
[data-pont-billing-portal-methods] > li {
|
|
10179
|
+
display: flex;
|
|
10180
|
+
flex-wrap: wrap;
|
|
10181
|
+
align-items: center;
|
|
10182
|
+
justify-content: space-between;
|
|
10183
|
+
gap: 0.5rem;
|
|
10184
|
+
}
|
|
10185
|
+
|
|
10186
|
+
[data-pont-billing-portal-methods] > li > [data-pont-billing-portal-panel] {
|
|
10187
|
+
flex: 1 1 100%;
|
|
10188
|
+
}
|
|
10189
|
+
|
|
10190
|
+
[data-pont-billing-portal-method] {
|
|
10191
|
+
display: flex;
|
|
10192
|
+
flex-wrap: wrap;
|
|
10193
|
+
align-items: center;
|
|
10194
|
+
gap: 0.5rem;
|
|
10195
|
+
}
|
|
10196
|
+
|
|
10197
|
+
[data-pont-billing-portal-confirming] {
|
|
10198
|
+
display: flex;
|
|
10199
|
+
align-items: center;
|
|
10200
|
+
gap: 0.5rem;
|
|
10201
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
10202
|
+
}
|
|
10203
|
+
|
|
10204
|
+
[data-pont-billing-portal-sr] {
|
|
10205
|
+
position: absolute;
|
|
10206
|
+
inline-size: 1px;
|
|
10207
|
+
block-size: 1px;
|
|
10208
|
+
overflow: hidden;
|
|
10209
|
+
clip-path: inset(50%);
|
|
10210
|
+
white-space: nowrap;
|
|
10211
|
+
}
|
|
10212
|
+
|
|
10213
|
+
[data-pont-billing-portal-problem] {
|
|
10214
|
+
display: flex;
|
|
10215
|
+
flex-direction: column;
|
|
10216
|
+
align-items: flex-start;
|
|
10217
|
+
gap: 1rem;
|
|
10218
|
+
}
|
|
10219
|
+
|
|
10220
|
+
[data-pont-billing-portal-loading] {
|
|
10221
|
+
display: flex;
|
|
10222
|
+
justify-content: center;
|
|
10223
|
+
padding-block: 2.5rem;
|
|
10224
|
+
}
|
|
10225
|
+
|
|
10226
|
+
[data-pont-billing-portal-loading] > :is(pont-prim-spinner, [data-pont-spinner]) {
|
|
10227
|
+
inline-size: 1.5rem;
|
|
10228
|
+
block-size: 1.5rem;
|
|
10229
|
+
}
|
|
10230
|
+
|
|
10231
|
+
[data-pont-billing-portal-footer] {
|
|
10232
|
+
display: flex;
|
|
10233
|
+
justify-content: flex-end;
|
|
10234
|
+
}
|
|
10235
|
+
}
|
package/dist/theme/types.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type TokenType = "color" | "dimension" | "number" | "fontFamily" | "fontW
|
|
|
9
9
|
| "borderStyle"
|
|
10
10
|
/** Flex/grid cross-axis alignment (`sem-layout-items`; the `ref-layout-items-*` keywords are fixed): a CSS align-items value. */
|
|
11
11
|
| "alignItems"
|
|
12
|
+
/** Multi-line flex/grid cross-axis distribution (`sem-layout-content`; the `ref-layout-content-*` keywords are fixed): a CSS align-content value. */
|
|
13
|
+
| "alignContent"
|
|
12
14
|
/** Flex/grid main-axis distribution (`sem-layout-justify`; the `ref-layout-justify-*` keywords are fixed): a CSS justify-content value. */
|
|
13
15
|
| "justifyContent"
|
|
14
16
|
/** A fixed value (CSS keywords and viewport units: `ref-dimension-size-full`, `-dvh` …, `ref-layout-box-*`, the `sem-dimension-*` defaults; shorthands of other tokens: `sem-border`): read, never themed. */
|