@versaur/react 1.0.18 → 1.0.19

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 (3) hide show
  1. package/dist/forms.d.ts +36 -25
  2. package/dist/forms.js +495 -531
  3. package/package.json +1 -1
package/dist/forms.d.ts CHANGED
@@ -2,6 +2,7 @@ import { ButtonHTMLAttributes } from 'react';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { HTMLAttributes } from 'react';
4
4
  import { InputHTMLAttributes } from 'react';
5
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
5
6
  import { LabelHTMLAttributes } from 'react';
6
7
  import { OptgroupHTMLAttributes } from 'react';
7
8
  import { OptionHTMLAttributes } from 'react';
@@ -216,11 +217,13 @@ declare interface ChipInputSingleProps extends ChipInputBaseProps {
216
217
 
217
218
  export declare const ComboboxInput: ForwardRefExoticComponent<ComboboxInputRootProps & RefAttributes<HTMLDivElement>> & {
218
219
  Button: ForwardRefExoticComponent<ComboboxInputButtonProps & RefAttributes<HTMLButtonElement>>;
219
- Listbox: ForwardRefExoticComponent<ComboboxInputListboxProps & RefAttributes<HTMLUListElement>>;
220
- Drawer: ForwardRefExoticComponent<ComboboxInputListboxProps & RefAttributes<HTMLUListElement>>;
221
220
  Option: ForwardRefExoticComponent<ComboboxInputOptionProps & RefAttributes<HTMLLIElement>>;
222
221
  SelectionChips: ForwardRefExoticComponent<ComboboxInputSelectionChipsProps & RefAttributes<HTMLDivElement>>;
223
- ListboxSearch: ForwardRefExoticComponent<ComboboxInputListboxSearchProps & RefAttributes<HTMLInputElement>>;
222
+ Search: ForwardRefExoticComponent<ComboboxInputSearchProps & RefAttributes<HTMLInputElement>>;
223
+ Container: {
224
+ ({ search, children, variant }: ComboboxInputContainerProps): JSX_2.Element;
225
+ displayName: string;
226
+ };
224
227
  };
225
228
 
226
229
  /**
@@ -242,35 +245,25 @@ export declare interface ComboboxInputButtonProps extends Omit<ButtonHTMLAttribu
242
245
  }
243
246
 
244
247
  /**
245
- * Props for ComboboxInput.Listbox subcomponent
248
+ * Props for ComboboxInput.Container subcomponent
246
249
  */
247
- export declare interface ComboboxInputListboxProps extends Omit<HTMLAttributes<HTMLUListElement>, "role"> {
250
+ export declare interface ComboboxInputContainerProps {
248
251
  /**
249
- * Search input element (required, typically ComboboxInput.ListboxSearch)
252
+ * Search input element (optional)
250
253
  */
251
- search: ReactNode;
254
+ search?: ReactNode;
252
255
  /**
253
- * List items (Option elements)
256
+ * Display variant - controls how container is rendered
257
+ * "list": popup with optional search
258
+ * "drawer": drawer variant with optional search
259
+ * "none": plain container without wrapper styling
260
+ * @default "list"
254
261
  */
255
- children?: ReactNode;
256
- }
257
-
258
- /**
259
- * Props for ComboboxInput.ListboxSearch subcomponent
260
- */
261
- declare interface ComboboxInputListboxSearchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
262
- /**
263
- * Search input name attribute
264
- */
265
- name: string;
266
- /**
267
- * Current search value
268
- */
269
- value: string;
262
+ variant?: "list" | "drawer" | "none";
270
263
  /**
271
- * Change handler for search value
264
+ * Arbitrary content to render in the container
272
265
  */
273
- onChange: React.ChangeEventHandler<HTMLInputElement>;
266
+ children?: React.ReactNode;
274
267
  }
275
268
 
276
269
  /**
@@ -370,6 +363,24 @@ declare type ComboboxInputRootPropsBase = Omit<HTMLAttributes<HTMLDivElement>, "
370
363
  iconRight?: ReactNode;
371
364
  };
372
365
 
366
+ /**
367
+ * Props for ComboboxInput.Search subcomponent
368
+ */
369
+ export declare interface ComboboxInputSearchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
370
+ /**
371
+ * Search input name attribute
372
+ */
373
+ name: string;
374
+ /**
375
+ * Current search value
376
+ */
377
+ value: string;
378
+ /**
379
+ * Change handler for search value
380
+ */
381
+ onChange: React.ChangeEventHandler<HTMLInputElement>;
382
+ }
383
+
373
384
  /**
374
385
  * Props for ComboboxInput.SelectionChips subcomponent
375
386
  */