@b3dotfun/sdk 0.0.44-alpha.1 → 0.0.44-alpha.2

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 (24) hide show
  1. package/dist/cjs/anyspend/react/components/AnySpend.js +12 -13
  2. package/dist/cjs/anyspend/react/components/AnyspendDepositHype.js +13 -14
  3. package/dist/cjs/anyspend/react/components/common/OrderHistory.js +2 -2
  4. package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +6 -3
  5. package/dist/cjs/anyspend/types/api.d.ts +176 -0
  6. package/dist/esm/anyspend/react/components/AnySpend.js +13 -14
  7. package/dist/esm/anyspend/react/components/AnyspendDepositHype.js +14 -15
  8. package/dist/esm/anyspend/react/components/common/OrderHistory.js +2 -2
  9. package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +8 -5
  10. package/dist/esm/anyspend/types/api.d.ts +176 -0
  11. package/dist/styles/index.css +1 -1
  12. package/dist/types/anyspend/types/api.d.ts +176 -0
  13. package/package.json +2 -1
  14. package/src/anyspend/react/components/AnySpend.tsx +20 -18
  15. package/src/anyspend/react/components/AnyspendDepositHype.tsx +21 -20
  16. package/src/anyspend/react/components/common/OrderHistory.tsx +11 -11
  17. package/src/anyspend/react/components/common/OrderHistoryItem.tsx +104 -130
  18. package/src/anyspend/types/api.ts +176 -0
  19. package/dist/cjs/anyspend/react/components/common/ErrorSection.d.ts +0 -6
  20. package/dist/cjs/anyspend/react/components/common/ErrorSection.js +0 -12
  21. package/dist/esm/anyspend/react/components/common/ErrorSection.d.ts +0 -6
  22. package/dist/esm/anyspend/react/components/common/ErrorSection.js +0 -9
  23. package/dist/types/anyspend/react/components/common/ErrorSection.d.ts +0 -6
  24. package/src/anyspend/react/components/common/ErrorSection.tsx +0 -21
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorSection = ErrorSection;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const lucide_react_1 = require("lucide-react");
6
- function ErrorSection({ error, message }) {
7
- if (!error && !message) {
8
- return null;
9
- }
10
- const errorMessage = message || error?.message || "An error occurred";
11
- return ((0, jsx_runtime_1.jsxs)("div", { className: "error-section bg-as-on-surface-1 flex w-full max-w-[460px] items-center gap-2 rounded-2xl px-4 py-2", children: [(0, jsx_runtime_1.jsx)(lucide_react_1.CircleAlert, { className: "bg-as-red h-4 min-h-4 w-4 min-w-4 rounded-full p-0 text-sm font-medium text-white" }), (0, jsx_runtime_1.jsx)("div", { className: "text-as-red text-sm", children: errorMessage })] }));
12
- }
@@ -1,6 +0,0 @@
1
- interface ErrorSectionProps {
2
- error?: Error | null;
3
- message?: string;
4
- }
5
- export declare function ErrorSection({ error, message }: ErrorSectionProps): import("react/jsx-runtime").JSX.Element | null;
6
- export {};
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CircleAlert } from "lucide-react";
3
- export function ErrorSection({ error, message }) {
4
- if (!error && !message) {
5
- return null;
6
- }
7
- const errorMessage = message || error?.message || "An error occurred";
8
- return (_jsxs("div", { className: "error-section bg-as-on-surface-1 flex w-full max-w-[460px] items-center gap-2 rounded-2xl px-4 py-2", children: [_jsx(CircleAlert, { className: "bg-as-red h-4 min-h-4 w-4 min-w-4 rounded-full p-0 text-sm font-medium text-white" }), _jsx("div", { className: "text-as-red text-sm", children: errorMessage })] }));
9
- }
@@ -1,6 +0,0 @@
1
- interface ErrorSectionProps {
2
- error?: Error | null;
3
- message?: string;
4
- }
5
- export declare function ErrorSection({ error, message }: ErrorSectionProps): import("react/jsx-runtime").JSX.Element | null;
6
- export {};
@@ -1,21 +0,0 @@
1
- import { CircleAlert } from "lucide-react";
2
-
3
- interface ErrorSectionProps {
4
- error?: Error | null;
5
- message?: string;
6
- }
7
-
8
- export function ErrorSection({ error, message }: ErrorSectionProps) {
9
- if (!error && !message) {
10
- return null;
11
- }
12
-
13
- const errorMessage = message || error?.message || "An error occurred";
14
-
15
- return (
16
- <div className="error-section bg-as-on-surface-1 flex w-full max-w-[460px] items-center gap-2 rounded-2xl px-4 py-2">
17
- <CircleAlert className="bg-as-red h-4 min-h-4 w-4 min-w-4 rounded-full p-0 text-sm font-medium text-white" />
18
- <div className="text-as-red text-sm">{errorMessage}</div>
19
- </div>
20
- );
21
- }