opus-react 0.6.8 → 0.6.10
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/index.cjs +5327 -3855
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +561 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +25 -12
- package/dist/index.d.ts +25 -12
- package/dist/index.js +5312 -3807
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -201,9 +201,12 @@ type DateRangeValue = {
|
|
|
201
201
|
declare function formatDateRangeDisplay(value: DateRangeValue): string;
|
|
202
202
|
|
|
203
203
|
type DatePickerPanelBaseProps = {
|
|
204
|
+
closeOnSelect?: boolean;
|
|
205
|
+
extra?: ReactNode;
|
|
204
206
|
max?: string;
|
|
205
207
|
min?: string;
|
|
206
208
|
onClose?: () => void;
|
|
209
|
+
showFooter?: boolean;
|
|
207
210
|
};
|
|
208
211
|
type DatePickerPanelSingleProps = DatePickerPanelBaseProps & {
|
|
209
212
|
selectionMode?: "single";
|
|
@@ -1191,6 +1194,7 @@ type CrmWorkspaceLabProps = {
|
|
|
1191
1194
|
declare function CrmWorkspaceLab({ variant, onAction }: CrmWorkspaceLabProps): react.JSX.Element;
|
|
1192
1195
|
|
|
1193
1196
|
type OtpFieldProps = {
|
|
1197
|
+
autoFocus?: boolean;
|
|
1194
1198
|
error?: string;
|
|
1195
1199
|
help?: string;
|
|
1196
1200
|
id: string;
|
|
@@ -1203,7 +1207,26 @@ type OtpFieldProps = {
|
|
|
1203
1207
|
onChange: (value: string) => void;
|
|
1204
1208
|
onComplete?: (value: string) => void;
|
|
1205
1209
|
};
|
|
1206
|
-
declare function OtpField({ error, help, id, label, labelPosition, length, mode, required, value, onChange, onComplete }: OtpFieldProps): react.JSX.Element;
|
|
1210
|
+
declare function OtpField({ autoFocus, error, help, id, label, labelPosition, length, mode, required, value, onChange, onComplete, }: OtpFieldProps): react.JSX.Element;
|
|
1211
|
+
|
|
1212
|
+
type ComboboxOption = {
|
|
1213
|
+
label: string;
|
|
1214
|
+
value: string;
|
|
1215
|
+
};
|
|
1216
|
+
type ComboboxFieldProps = {
|
|
1217
|
+
error?: string;
|
|
1218
|
+
help?: string;
|
|
1219
|
+
id: string;
|
|
1220
|
+
label: string;
|
|
1221
|
+
labelPosition?: LabelPosition;
|
|
1222
|
+
mode?: FieldMode;
|
|
1223
|
+
options: ComboboxOption[];
|
|
1224
|
+
placeholder?: string;
|
|
1225
|
+
required?: boolean;
|
|
1226
|
+
value: string;
|
|
1227
|
+
onChange: (value: string) => void;
|
|
1228
|
+
};
|
|
1229
|
+
declare function ComboboxField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange, }: ComboboxFieldProps): react.JSX.Element;
|
|
1207
1230
|
|
|
1208
1231
|
type ShellProps = {
|
|
1209
1232
|
error?: string;
|
|
@@ -1222,17 +1245,7 @@ type DateRangeFieldProps = ShellProps & {
|
|
|
1222
1245
|
onChange: (value: DateRangeValue) => void;
|
|
1223
1246
|
};
|
|
1224
1247
|
declare function DateRangeField({ error, help, id, label, labelPosition, max, min, mode, required, value, onChange }: DateRangeFieldProps): react.JSX.Element;
|
|
1225
|
-
|
|
1226
|
-
label: string;
|
|
1227
|
-
value: string;
|
|
1228
|
-
};
|
|
1229
|
-
type ComboboxFieldProps = ShellProps & {
|
|
1230
|
-
options: ComboboxOption[];
|
|
1231
|
-
placeholder?: string;
|
|
1232
|
-
value: string;
|
|
1233
|
-
onChange: (value: string) => void;
|
|
1234
|
-
};
|
|
1235
|
-
declare function ComboboxField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange }: ComboboxFieldProps): react.JSX.Element;
|
|
1248
|
+
|
|
1236
1249
|
type CurrencyFieldProps = ShellProps & {
|
|
1237
1250
|
currency?: string;
|
|
1238
1251
|
locale?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -201,9 +201,12 @@ type DateRangeValue = {
|
|
|
201
201
|
declare function formatDateRangeDisplay(value: DateRangeValue): string;
|
|
202
202
|
|
|
203
203
|
type DatePickerPanelBaseProps = {
|
|
204
|
+
closeOnSelect?: boolean;
|
|
205
|
+
extra?: ReactNode;
|
|
204
206
|
max?: string;
|
|
205
207
|
min?: string;
|
|
206
208
|
onClose?: () => void;
|
|
209
|
+
showFooter?: boolean;
|
|
207
210
|
};
|
|
208
211
|
type DatePickerPanelSingleProps = DatePickerPanelBaseProps & {
|
|
209
212
|
selectionMode?: "single";
|
|
@@ -1191,6 +1194,7 @@ type CrmWorkspaceLabProps = {
|
|
|
1191
1194
|
declare function CrmWorkspaceLab({ variant, onAction }: CrmWorkspaceLabProps): react.JSX.Element;
|
|
1192
1195
|
|
|
1193
1196
|
type OtpFieldProps = {
|
|
1197
|
+
autoFocus?: boolean;
|
|
1194
1198
|
error?: string;
|
|
1195
1199
|
help?: string;
|
|
1196
1200
|
id: string;
|
|
@@ -1203,7 +1207,26 @@ type OtpFieldProps = {
|
|
|
1203
1207
|
onChange: (value: string) => void;
|
|
1204
1208
|
onComplete?: (value: string) => void;
|
|
1205
1209
|
};
|
|
1206
|
-
declare function OtpField({ error, help, id, label, labelPosition, length, mode, required, value, onChange, onComplete }: OtpFieldProps): react.JSX.Element;
|
|
1210
|
+
declare function OtpField({ autoFocus, error, help, id, label, labelPosition, length, mode, required, value, onChange, onComplete, }: OtpFieldProps): react.JSX.Element;
|
|
1211
|
+
|
|
1212
|
+
type ComboboxOption = {
|
|
1213
|
+
label: string;
|
|
1214
|
+
value: string;
|
|
1215
|
+
};
|
|
1216
|
+
type ComboboxFieldProps = {
|
|
1217
|
+
error?: string;
|
|
1218
|
+
help?: string;
|
|
1219
|
+
id: string;
|
|
1220
|
+
label: string;
|
|
1221
|
+
labelPosition?: LabelPosition;
|
|
1222
|
+
mode?: FieldMode;
|
|
1223
|
+
options: ComboboxOption[];
|
|
1224
|
+
placeholder?: string;
|
|
1225
|
+
required?: boolean;
|
|
1226
|
+
value: string;
|
|
1227
|
+
onChange: (value: string) => void;
|
|
1228
|
+
};
|
|
1229
|
+
declare function ComboboxField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange, }: ComboboxFieldProps): react.JSX.Element;
|
|
1207
1230
|
|
|
1208
1231
|
type ShellProps = {
|
|
1209
1232
|
error?: string;
|
|
@@ -1222,17 +1245,7 @@ type DateRangeFieldProps = ShellProps & {
|
|
|
1222
1245
|
onChange: (value: DateRangeValue) => void;
|
|
1223
1246
|
};
|
|
1224
1247
|
declare function DateRangeField({ error, help, id, label, labelPosition, max, min, mode, required, value, onChange }: DateRangeFieldProps): react.JSX.Element;
|
|
1225
|
-
|
|
1226
|
-
label: string;
|
|
1227
|
-
value: string;
|
|
1228
|
-
};
|
|
1229
|
-
type ComboboxFieldProps = ShellProps & {
|
|
1230
|
-
options: ComboboxOption[];
|
|
1231
|
-
placeholder?: string;
|
|
1232
|
-
value: string;
|
|
1233
|
-
onChange: (value: string) => void;
|
|
1234
|
-
};
|
|
1235
|
-
declare function ComboboxField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange }: ComboboxFieldProps): react.JSX.Element;
|
|
1248
|
+
|
|
1236
1249
|
type CurrencyFieldProps = ShellProps & {
|
|
1237
1250
|
currency?: string;
|
|
1238
1251
|
locale?: string;
|