@delightui/components 0.1.0 → 0.1.1

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.ts CHANGED
@@ -216,13 +216,16 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
216
216
  * Icon to be displayed after the input.
217
217
  */
218
218
  trailingIcon?: React.ReactNode;
219
- /**
220
- * Reference to the input element.
221
- */
222
- inputRef?: (node: HTMLInputElement | null) => void;
223
219
  };
224
220
 
225
- declare const Input: (props: InputProps) => React$1.JSX.Element;
221
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> & {
222
+ inputType?: InputTypeEnum;
223
+ value?: string;
224
+ onValueChanged?: (value: string) => void;
225
+ invalid?: boolean;
226
+ leadingIcon?: React$1.ReactNode;
227
+ trailingIcon?: React$1.ReactNode;
228
+ } & React$1.RefAttributes<HTMLInputElement>>;
226
229
 
227
230
  /**
228
231
  * Enum for the alignment of the list.
@@ -361,7 +364,12 @@ type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'>
361
364
  className?: string;
362
365
  };
363
366
 
364
- declare const TextArea: (props: TextAreaProps) => React$1.JSX.Element;
367
+ declare const TextArea: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> & {
368
+ value?: string;
369
+ onValueChanged?: (value: string) => void;
370
+ invalid?: boolean;
371
+ className?: string;
372
+ } & React$1.RefAttributes<HTMLTextAreaElement>>;
365
373
 
366
374
  /**
367
375
  * Enum for the action type of the Popover.
@@ -409,7 +417,7 @@ type PopoverProps = {
409
417
  direction?: OverlayDirectionEnum;
410
418
  /**
411
419
  * Indicates if Popover should hide on click away.
412
- * @default false
420
+ * @default true
413
421
  */
414
422
  hideOnClickAway?: boolean;
415
423
  /**
@@ -494,7 +502,7 @@ type ContextMenuProps = HTMLAttributes<HTMLUListElement> & {
494
502
  action?: ActionType;
495
503
  /**
496
504
  * Determines whether the context menu should be hidden when clicking away from it.
497
- * @default false
505
+ * @default true
498
506
  */
499
507
  hideOnClickAway?: boolean;
500
508
  /**
@@ -595,6 +603,10 @@ type DatePickerProps = {
595
603
  * @param dateStr - String representation of the selected date(s). Will match the date format.
596
604
  */
597
605
  onClose?: (dates: Date[], dateStr: string) => void;
606
+ /**
607
+ * render date picker inline
608
+ */
609
+ inline?: boolean;
598
610
  };
599
611
 
600
612
  declare const DatePicker: (props: DatePickerProps) => React$1.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",