hplx-react-elements-dev 1.1.66 → 1.1.68
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/esm/types.d.ts
CHANGED
|
@@ -223,6 +223,14 @@ export interface TooltipProps extends React.DetailedHTMLProps<React.HTMLAttribut
|
|
|
223
223
|
supportingText?: string;
|
|
224
224
|
children: ReactNode;
|
|
225
225
|
}
|
|
226
|
+
export interface PopoverProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
227
|
+
variant?: tooltipPosition;
|
|
228
|
+
children: ReactNode;
|
|
229
|
+
content: ReactNode;
|
|
230
|
+
isOpen: boolean;
|
|
231
|
+
onClickOutside: () => void;
|
|
232
|
+
backgroundClassname?: string;
|
|
233
|
+
}
|
|
226
234
|
type statusIcon = "online" | "company" | "offline" | "none";
|
|
227
235
|
type AvatarSize = "Display xs" | "Text xl" | "Text lg" | "Text md" | "Text sm" | "Text xs" | "Text xxs";
|
|
228
236
|
type AvatarShape = "hplxt-rounded" | "hplxt-rounded-md" | "hplxt-rounded-lg" | "hplxt-rounded-full";
|
|
@@ -273,6 +281,7 @@ export interface DropdownFieldProps<IsMulti extends boolean> {
|
|
|
273
281
|
className?: string;
|
|
274
282
|
showSelectAllOption?: IsMulti extends true ? boolean : never;
|
|
275
283
|
selectAllLabel?: IsMulti extends true ? string : never;
|
|
284
|
+
prefixLabel?: string;
|
|
276
285
|
}
|
|
277
286
|
export type Select = <IsMulti extends boolean = false>(props: DropdownFieldProps<IsMulti>) => ReactElement;
|
|
278
287
|
export interface CardType {
|
|
@@ -512,4 +521,26 @@ export interface NotificationProps {
|
|
|
512
521
|
children?: ReactNode;
|
|
513
522
|
handleCloseClick?: () => void;
|
|
514
523
|
}
|
|
524
|
+
interface staticDateRanges {
|
|
525
|
+
label: string;
|
|
526
|
+
range: any;
|
|
527
|
+
isSelected: any;
|
|
528
|
+
}
|
|
529
|
+
export interface DateRange {
|
|
530
|
+
startDate: Date;
|
|
531
|
+
endDate: Date;
|
|
532
|
+
}
|
|
533
|
+
export interface MultiDateRangePickerProps {
|
|
534
|
+
minDate?: Date;
|
|
535
|
+
maxDate?: Date;
|
|
536
|
+
dateFormat?: string;
|
|
537
|
+
disabledDates?: Date[];
|
|
538
|
+
disabledDay?: (date: Date) => boolean;
|
|
539
|
+
staticDateRanges?: staticDateRanges[];
|
|
540
|
+
selectedDate: DateRange;
|
|
541
|
+
onChange: (date: DateRange) => void;
|
|
542
|
+
showFooterActions?: boolean;
|
|
543
|
+
onApply?: (date: DateRange) => void;
|
|
544
|
+
onCancel?: (date: DateRange) => void;
|
|
545
|
+
}
|
|
515
546
|
export {};
|