@delightui/components 0.1.26 → 0.1.27
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/molecules/DatePicker/DatePicker.types.d.ts +6 -8
- package/dist/cjs/components/molecules/DatePicker/Plugins/customTimeSelector.d.ts +4 -0
- package/dist/cjs/components/molecules/DatePicker/Plugins/utils.d.ts +3 -1
- package/dist/cjs/components/molecules/Popover/Popover.types.d.ts +5 -0
- package/dist/cjs/library.css +27 -2
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/DatePicker/DatePicker.types.d.ts +6 -8
- package/dist/esm/components/molecules/DatePicker/Plugins/customTimeSelector.d.ts +4 -0
- package/dist/esm/components/molecules/DatePicker/Plugins/utils.d.ts +3 -1
- package/dist/esm/components/molecules/Popover/Popover.types.d.ts +5 -0
- package/dist/esm/library.css +27 -2
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +11 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -635,6 +635,11 @@ type PopoverProps = {
|
|
|
635
635
|
* Additional class for overlay container styling.
|
|
636
636
|
*/
|
|
637
637
|
overlayClassName?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Position of the Popover.
|
|
640
|
+
* @default 'absolute'
|
|
641
|
+
*/
|
|
642
|
+
contentPosition?: 'absolute' | 'fixed';
|
|
638
643
|
};
|
|
639
644
|
type PopoverHandle = {
|
|
640
645
|
close: () => void;
|
|
@@ -820,10 +825,6 @@ type DatePickerProps = {
|
|
|
820
825
|
* @default false
|
|
821
826
|
*/
|
|
822
827
|
allowInput?: boolean;
|
|
823
|
-
/**
|
|
824
|
-
* Container element for the calendar when used inside a Popover
|
|
825
|
-
*/
|
|
826
|
-
container?: HTMLElement | null;
|
|
827
828
|
/**
|
|
828
829
|
* Custom time picker plugin
|
|
829
830
|
*/
|
|
@@ -832,13 +833,15 @@ type DatePickerProps = {
|
|
|
832
833
|
* Custom time picker plugin
|
|
833
834
|
*/
|
|
834
835
|
customDateTimePickerPlugin?: (config: CustomTimePickerConfig) => Plugin;
|
|
836
|
+
/**
|
|
837
|
+
* Use custom time input same as date picker input
|
|
838
|
+
* This is useful when the datepicker is inline and is re-added to the DOM after closing
|
|
839
|
+
* For example using this inside a Popover as content
|
|
840
|
+
*/
|
|
841
|
+
useCustomTimeInputForTimePicker?: boolean;
|
|
835
842
|
};
|
|
836
843
|
type CustomTimePickerConfig = {
|
|
837
844
|
minuteStep: number;
|
|
838
|
-
/**
|
|
839
|
-
* Container element for the calendar when used inside a Popover
|
|
840
|
-
*/
|
|
841
|
-
container?: HTMLElement | null;
|
|
842
845
|
};
|
|
843
846
|
|
|
844
847
|
declare const DatePicker: (props: DatePickerProps) => React$1.JSX.Element;
|