@sudobility/consumables_pages 0.0.38 → 0.0.40
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/CreditBalanceBadge.d.ts +1 -1
- package/dist/CreditStorePage.d.ts +1 -1
- package/dist/CreditStorePage.js +1 -1
- package/dist/PurchaseHistoryPage.d.ts +1 -1
- package/dist/PurchaseHistoryPage.js +1 -1
- package/dist/UsageHistoryPage.d.ts +1 -1
- package/dist/UsageHistoryPage.js +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Displays a pill-shaped badge with a coin icon and the current balance.
|
|
4
4
|
* Renders as a button when onClick is provided, otherwise as a span.
|
|
5
5
|
*/
|
|
6
|
-
import type { CreditBalanceBadgeProps } from './types';
|
|
6
|
+
import type { CreditBalanceBadgeProps } from './types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Renders a small inline badge showing the user's credit balance.
|
|
9
9
|
* Blue when balance > 0, red when balance is 0. Returns null when balance is null.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* a responsive grid of purchasable credit packages. Purely presentational --
|
|
4
4
|
* all data and callbacks are passed via props.
|
|
5
5
|
*/
|
|
6
|
-
import type { CreditStorePageProps } from './types';
|
|
6
|
+
import type { CreditStorePageProps } from './types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Renders a credit store with balance display, purchase packages grid,
|
|
9
9
|
* loading/error states, and a login prompt for unauthenticated users.
|
package/dist/CreditStorePage.js
CHANGED
|
@@ -5,7 +5,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* all data and callbacks are passed via props.
|
|
6
6
|
*/
|
|
7
7
|
import { colors, ui } from '@sudobility/design';
|
|
8
|
-
import { LoadingSpinner } from './LoadingSpinner';
|
|
8
|
+
import { LoadingSpinner } from './LoadingSpinner.js';
|
|
9
9
|
/**
|
|
10
10
|
* Renders a credit store with balance display, purchase packages grid,
|
|
11
11
|
* loading/error states, and a login prompt for unauthenticated users.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Purchase history page component with responsive table (desktop)
|
|
3
3
|
* and card (mobile) layouts. Supports load-more pagination.
|
|
4
4
|
*/
|
|
5
|
-
import type { PurchaseHistoryPageProps } from './types';
|
|
5
|
+
import type { PurchaseHistoryPageProps } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Renders a paginated list of purchase records.
|
|
8
8
|
* Desktop: table with date, credits, source, and amount columns.
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* and card (mobile) layouts. Supports load-more pagination.
|
|
5
5
|
*/
|
|
6
6
|
import { colors, ui } from '@sudobility/design';
|
|
7
|
-
import { LoadingSpinner } from './LoadingSpinner';
|
|
7
|
+
import { LoadingSpinner } from './LoadingSpinner.js';
|
|
8
8
|
/**
|
|
9
9
|
* Renders a paginated list of purchase records.
|
|
10
10
|
* Desktop: table with date, credits, source, and amount columns.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @fileoverview Usage history page component with responsive table (desktop)
|
|
3
3
|
* and card (mobile) layouts. Supports load-more pagination.
|
|
4
4
|
*/
|
|
5
|
-
import type { UsageHistoryPageProps } from './types';
|
|
5
|
+
import type { UsageHistoryPageProps } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Renders a paginated list of usage records.
|
|
8
8
|
* Desktop: table with date and filename columns.
|
package/dist/UsageHistoryPage.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
4
4
|
* and card (mobile) layouts. Supports load-more pagination.
|
|
5
5
|
*/
|
|
6
6
|
import { colors, ui } from '@sudobility/design';
|
|
7
|
-
import { LoadingSpinner } from './LoadingSpinner';
|
|
7
|
+
import { LoadingSpinner } from './LoadingSpinner.js';
|
|
8
8
|
/**
|
|
9
9
|
* Renders a paginated list of usage records.
|
|
10
10
|
* Desktop: table with date and filename columns.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CreditStorePage } from './CreditStorePage';
|
|
2
|
-
export { PurchaseHistoryPage } from './PurchaseHistoryPage';
|
|
3
|
-
export { UsageHistoryPage } from './UsageHistoryPage';
|
|
4
|
-
export { CreditBalanceBadge } from './CreditBalanceBadge';
|
|
5
|
-
export type { CreditStorePageProps, CreditStorePageLabels, CreditStorePageFormatters, PurchaseHistoryPageProps, PurchaseHistoryPageLabels, PurchaseHistoryPageFormatters, UsageHistoryPageProps, UsageHistoryPageLabels, UsageHistoryPageFormatters, CreditBalanceBadgeProps, } from './types';
|
|
1
|
+
export { CreditStorePage } from './CreditStorePage.js';
|
|
2
|
+
export { PurchaseHistoryPage } from './PurchaseHistoryPage.js';
|
|
3
|
+
export { UsageHistoryPage } from './UsageHistoryPage.js';
|
|
4
|
+
export { CreditBalanceBadge } from './CreditBalanceBadge.js';
|
|
5
|
+
export type { CreditStorePageProps, CreditStorePageLabels, CreditStorePageFormatters, PurchaseHistoryPageProps, PurchaseHistoryPageLabels, PurchaseHistoryPageFormatters, UsageHistoryPageProps, UsageHistoryPageLabels, UsageHistoryPageFormatters, CreditBalanceBadgeProps, } from './types.js';
|
|
6
6
|
export type { ConsumableSource } from '@sudobility/types';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CreditStorePage } from './CreditStorePage';
|
|
2
|
-
export { PurchaseHistoryPage } from './PurchaseHistoryPage';
|
|
3
|
-
export { UsageHistoryPage } from './UsageHistoryPage';
|
|
4
|
-
export { CreditBalanceBadge } from './CreditBalanceBadge';
|
|
1
|
+
export { CreditStorePage } from './CreditStorePage.js';
|
|
2
|
+
export { PurchaseHistoryPage } from './PurchaseHistoryPage.js';
|
|
3
|
+
export { UsageHistoryPage } from './UsageHistoryPage.js';
|
|
4
|
+
export { CreditBalanceBadge } from './CreditBalanceBadge.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/consumables_pages",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "Web UI components for consumable credits (credit store, purchase history, usage history)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"url": "https://github.com/johnqh/consumables_pages.git"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@sudobility/design": "^1.1.
|
|
72
|
+
"@sudobility/design": "^1.1.47"
|
|
73
73
|
}
|
|
74
74
|
}
|