@plusrouter/ui 0.1.7 → 0.1.8
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/dist/{SideNavigation-lxVuUhdx.js → SideNavigation-qz3aib86.js} +1807 -1811
- package/dist/components.js +2 -2
- package/dist/index.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/types/components/Components/Shop/Shop.d.ts +1 -1
- package/dist/types/components/Components/Shop/Shop.types.d.ts +4 -5
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ShopProps } from './Shop.types.js';
|
|
2
|
-
export declare const Shop: ({ title, accounts, categories, models, selectedCategory: controlledCategory, onCategoryChange, searchQuery: controlledQuery, onSearchChange, selectedProvider: controlledProvider, onProviderChange, sortBy: controlledSort, onSortChange, onSubscribe, onManage, onConfigure,
|
|
2
|
+
export declare const Shop: ({ title, accounts, categories, models, selectedCategory: controlledCategory, onCategoryChange, searchQuery: controlledQuery, onSearchChange, selectedProvider: controlledProvider, onProviderChange, sortBy: controlledSort, onSortChange, onSubscribe, onManage, onConfigure, creditsBalance, onTopUp, className, }: ShopProps) => import("react").JSX.Element;
|
|
@@ -19,21 +19,19 @@ export interface ShopAccount {
|
|
|
19
19
|
provider: string;
|
|
20
20
|
providerIcon?: ReactNode;
|
|
21
21
|
category: string;
|
|
22
|
-
|
|
23
|
-
/** Display-ready allowance, e.g. "2,000 credits / month". */
|
|
24
|
-
credits: string;
|
|
25
|
-
/** Display-ready price, e.g. "$12 / month". */
|
|
22
|
+
/** Static position price, e.g. "$12 / month". */
|
|
26
23
|
price: string;
|
|
27
24
|
/** Numeric price used only for sorting; defaults to a parse of `price`. */
|
|
28
25
|
priceValue?: number;
|
|
29
26
|
/** Display-ready billing term, e.g. "Monthly". */
|
|
30
27
|
term?: string;
|
|
31
|
-
features?: readonly string[];
|
|
32
28
|
badge?: string;
|
|
33
29
|
badgeVariant?: ShopBadgeVariant;
|
|
34
30
|
featured?: boolean;
|
|
35
31
|
/** Current subscription: the card offers management instead of purchase. */
|
|
36
32
|
active?: boolean;
|
|
33
|
+
/** Products can be listed but not purchasable yet. Defaults to true. */
|
|
34
|
+
available?: boolean;
|
|
37
35
|
}
|
|
38
36
|
export interface ShopAccountCardProps {
|
|
39
37
|
account: ShopAccount;
|
|
@@ -85,6 +83,7 @@ export interface ShopProps {
|
|
|
85
83
|
onSubscribe?(item: ShopAccount | MarketModel): void;
|
|
86
84
|
/** Opens management for a subscription the customer already has. */
|
|
87
85
|
onManage?(account: ShopAccount): void;
|
|
86
|
+
/** @deprecated Money amounts live in the billing panel, not the storefront. */
|
|
88
87
|
balance?: string;
|
|
89
88
|
creditsBalance?: string | number;
|
|
90
89
|
onTopUp?(): void;
|