opus-react 0.6.9 → 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.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";
@@ -1206,6 +1209,25 @@ type OtpFieldProps = {
1206
1209
  };
1207
1210
  declare function OtpField({ autoFocus, error, help, id, label, labelPosition, length, mode, required, value, onChange, onComplete, }: OtpFieldProps): react.JSX.Element;
1208
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;
1230
+
1209
1231
  type ShellProps = {
1210
1232
  error?: string;
1211
1233
  help?: string;
@@ -1223,17 +1245,7 @@ type DateRangeFieldProps = ShellProps & {
1223
1245
  onChange: (value: DateRangeValue) => void;
1224
1246
  };
1225
1247
  declare function DateRangeField({ error, help, id, label, labelPosition, max, min, mode, required, value, onChange }: DateRangeFieldProps): react.JSX.Element;
1226
- type ComboboxOption = {
1227
- label: string;
1228
- value: string;
1229
- };
1230
- type ComboboxFieldProps = ShellProps & {
1231
- options: ComboboxOption[];
1232
- placeholder?: string;
1233
- value: string;
1234
- onChange: (value: string) => void;
1235
- };
1236
- declare function ComboboxField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange }: ComboboxFieldProps): react.JSX.Element;
1248
+
1237
1249
  type CurrencyFieldProps = ShellProps & {
1238
1250
  currency?: string;
1239
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";
@@ -1206,6 +1209,25 @@ type OtpFieldProps = {
1206
1209
  };
1207
1210
  declare function OtpField({ autoFocus, error, help, id, label, labelPosition, length, mode, required, value, onChange, onComplete, }: OtpFieldProps): react.JSX.Element;
1208
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;
1230
+
1209
1231
  type ShellProps = {
1210
1232
  error?: string;
1211
1233
  help?: string;
@@ -1223,17 +1245,7 @@ type DateRangeFieldProps = ShellProps & {
1223
1245
  onChange: (value: DateRangeValue) => void;
1224
1246
  };
1225
1247
  declare function DateRangeField({ error, help, id, label, labelPosition, max, min, mode, required, value, onChange }: DateRangeFieldProps): react.JSX.Element;
1226
- type ComboboxOption = {
1227
- label: string;
1228
- value: string;
1229
- };
1230
- type ComboboxFieldProps = ShellProps & {
1231
- options: ComboboxOption[];
1232
- placeholder?: string;
1233
- value: string;
1234
- onChange: (value: string) => void;
1235
- };
1236
- declare function ComboboxField({ error, help, id, label, labelPosition, mode, options, placeholder, required, value, onChange }: ComboboxFieldProps): react.JSX.Element;
1248
+
1237
1249
  type CurrencyFieldProps = ShellProps & {
1238
1250
  currency?: string;
1239
1251
  locale?: string;