@delightui/components 0.1.0 → 0.1.2
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/cjs/components/atoms/Input/Input.d.ts +8 -2
- package/dist/cjs/components/atoms/Input/Input.types.d.ts +0 -4
- package/dist/cjs/components/atoms/TextArea/TextArea.d.ts +6 -2
- package/dist/cjs/components/molecules/ContextMenu/ContextMenu.types.d.ts +1 -1
- package/dist/cjs/components/molecules/DatePicker/DatePicker.types.d.ts +4 -0
- package/dist/cjs/components/molecules/Popover/Popover.types.d.ts +1 -1
- package/dist/cjs/library.css +3 -1
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.d.ts +8 -2
- package/dist/esm/components/atoms/Input/Input.types.d.ts +0 -4
- package/dist/esm/components/atoms/TextArea/TextArea.d.ts +6 -2
- package/dist/esm/components/molecules/ContextMenu/ContextMenu.types.d.ts +1 -1
- package/dist/esm/components/molecules/DatePicker/DatePicker.types.d.ts +4 -0
- package/dist/esm/components/molecules/Popover/Popover.types.d.ts +1 -1
- package/dist/esm/library.css +3 -1
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +20 -8
- package/package.json +1 -1
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:
|
|
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:
|
|
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
|
|
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
|
|
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;
|