@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/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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",