@shophost/react 2.0.26 → 2.0.28
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/admin-client.cjs +1 -1
- package/admin-client.js +3769 -3134
- package/components/admin/forms/access-form.d.ts +7 -0
- package/components/admin/partials/members-list/PendingInvitations.d.ts +2 -0
- package/components/admin/partials/members-list/columns.d.ts +3 -0
- package/components/admin/partials/members-list/index.d.ts +2 -0
- package/components/ui/data-table/DataTable.d.ts +1 -1
- package/components/ui/input/text-input.d.ts +8 -0
- package/package.json +3 -3
- package/react.css +1 -1
- package/router/resolve.d.ts +10 -0
- package/router/routes.d.ts +3 -0
- package/storefront/lib/better-auth.d.ts +28 -28
- package/views/settings/access/AccessInviteView.d.ts +1 -0
- package/views/settings/access/AccessListView.d.ts +1 -0
- package/views/settings/access/AccessMemberEditView.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnDef } from '@tanstack/react-table';
|
|
2
2
|
import { PaginationMeta } from '../../../../../client/src/index.ts';
|
|
3
3
|
interface DataTableProps<TData> {
|
|
4
|
-
meta?: PaginationMeta
|
|
4
|
+
meta?: PaginationMeta & Record<string, unknown>;
|
|
5
5
|
columns: ColumnDef<TData>[];
|
|
6
6
|
data: TData[];
|
|
7
7
|
error?: boolean;
|
|
@@ -42,6 +42,10 @@ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & React.TextareaHT
|
|
|
42
42
|
prefix?: React.ReactNode;
|
|
43
43
|
/** Optional suffix element (e.g. a currency code) */
|
|
44
44
|
suffix?: React.ReactNode;
|
|
45
|
+
/** Optional value to copy. When provided, a copy button is shown inside the input. */
|
|
46
|
+
copyValue?: string;
|
|
47
|
+
copySuccessMessage?: string;
|
|
48
|
+
copyErrorMessage?: string;
|
|
45
49
|
};
|
|
46
50
|
declare const TextInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & React.TextareaHTMLAttributes<HTMLTextAreaElement> & VariantProps<import('tailwind-variants').TVReturnType<{
|
|
47
51
|
hasError: {
|
|
@@ -83,5 +87,9 @@ declare const TextInput: React.ForwardRefExoticComponent<React.InputHTMLAttribut
|
|
|
83
87
|
prefix?: React.ReactNode;
|
|
84
88
|
/** Optional suffix element (e.g. a currency code) */
|
|
85
89
|
suffix?: React.ReactNode;
|
|
90
|
+
/** Optional value to copy. When provided, a copy button is shown inside the input. */
|
|
91
|
+
copyValue?: string;
|
|
92
|
+
copySuccessMessage?: string;
|
|
93
|
+
copyErrorMessage?: string;
|
|
86
94
|
} & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
87
95
|
export { TextInput, inputStyles, type InputProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shophost/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"@hookform/resolvers": "^3.9.0",
|
|
72
72
|
"@react-aria/datepicker": "^3.16.1",
|
|
73
73
|
"@react-stately/datepicker": "^3.16.1",
|
|
74
|
-
"@shophost/client": "^2.0.
|
|
75
|
-
"@shophost/rest-api": "^2.0.
|
|
74
|
+
"@shophost/client": "^2.0.28",
|
|
75
|
+
"@shophost/rest-api": "^2.0.28",
|
|
76
76
|
"@internationalized/date": "^3.12.0",
|
|
77
77
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
78
78
|
"@radix-ui/react-dialog": "^1.1.6",
|