@shophost/react 2.0.27 → 2.0.29

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.
@@ -0,0 +1,7 @@
1
+ import { Member } from '../../../../../client/src/index.ts';
2
+ import { default as React } from 'react';
3
+ interface AccessFormProps {
4
+ initialData?: Member;
5
+ }
6
+ declare const AccessForm: React.FC<AccessFormProps>;
7
+ export { AccessForm };
@@ -0,0 +1,2 @@
1
+ declare const PendingInvitations: () => import("react/jsx-runtime").JSX.Element;
2
+ export { PendingInvitations };
@@ -0,0 +1,2 @@
1
+ declare const MembersList: () => import("react/jsx-runtime").JSX.Element;
2
+ export { MembersList };
@@ -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.27",
3
+ "version": "2.0.29",
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.27",
75
- "@shophost/rest-api": "^2.0.27",
74
+ "@shophost/client": "^2.0.29",
75
+ "@shophost/rest-api": "^2.0.29",
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",