@elementor/editor-controls 3.33.0-211 → 3.33.0-213
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.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +105 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +95 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -17
- package/src/controls/date-time-control.tsx +108 -0
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -362,6 +362,10 @@ declare const transitionsItemsList: {
|
|
|
362
362
|
items: string[];
|
|
363
363
|
}[];
|
|
364
364
|
|
|
365
|
+
declare const DateTimeControl: ControlComponent<({ inputDisabled }: {
|
|
366
|
+
inputDisabled?: boolean;
|
|
367
|
+
}) => React$1.JSX.Element>;
|
|
368
|
+
|
|
365
369
|
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
366
370
|
|
|
367
371
|
type ClearIconButtonProps = {
|
|
@@ -569,4 +573,4 @@ type UseInternalStateOptions<TValue> = {
|
|
|
569
573
|
};
|
|
570
574
|
declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
|
|
571
575
|
|
|
572
|
-
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
|
576
|
+
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
package/dist/index.d.ts
CHANGED
|
@@ -362,6 +362,10 @@ declare const transitionsItemsList: {
|
|
|
362
362
|
items: string[];
|
|
363
363
|
}[];
|
|
364
364
|
|
|
365
|
+
declare const DateTimeControl: ControlComponent<({ inputDisabled }: {
|
|
366
|
+
inputDisabled?: boolean;
|
|
367
|
+
}) => React$1.JSX.Element>;
|
|
368
|
+
|
|
365
369
|
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
366
370
|
|
|
367
371
|
type ClearIconButtonProps = {
|
|
@@ -569,4 +573,4 @@ type UseInternalStateOptions<TValue> = {
|
|
|
569
573
|
};
|
|
570
574
|
declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
|
|
571
575
|
|
|
572
|
-
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
|
576
|
+
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
package/dist/index.js
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
ControlFormLabel: () => ControlFormLabel,
|
|
42
42
|
ControlReplacementsProvider: () => ControlReplacementsProvider,
|
|
43
43
|
ControlToggleButtonGroup: () => ControlToggleButtonGroup,
|
|
44
|
+
DateTimeControl: () => DateTimeControl,
|
|
44
45
|
EqualUnequalSizesControl: () => EqualUnequalSizesControl,
|
|
45
46
|
FilterRepeaterControl: () => FilterRepeaterControl,
|
|
46
47
|
FloatingActionsBar: () => FloatingActionsBar,
|
|
@@ -5694,21 +5695,97 @@ var TransitionRepeaterControl = createControl(
|
|
|
5694
5695
|
}
|
|
5695
5696
|
);
|
|
5696
5697
|
|
|
5697
|
-
// src/
|
|
5698
|
+
// src/controls/date-time-control.tsx
|
|
5698
5699
|
var React96 = __toESM(require("react"));
|
|
5699
|
-
var
|
|
5700
|
+
var dayjs = __toESM(require("dayjs"));
|
|
5701
|
+
var import_editor_props50 = require("@elementor/editor-props");
|
|
5702
|
+
var import_editor_props51 = require("@elementor/editor-props");
|
|
5700
5703
|
var import_ui82 = require("@elementor/ui");
|
|
5701
|
-
var
|
|
5704
|
+
var DATE_FORMAT = "YYYY-MM-DD";
|
|
5705
|
+
var TIME_FORMAT = "HH:mm";
|
|
5706
|
+
var DateTimeControl = createControl(({ inputDisabled }) => {
|
|
5707
|
+
const { value, setValue, ...propContext } = useBoundProp(import_editor_props51.DateTimePropTypeUtil);
|
|
5708
|
+
const handleChange = (newValue, meta) => {
|
|
5709
|
+
const field = meta.bind;
|
|
5710
|
+
const fieldValue = newValue[field];
|
|
5711
|
+
if ((0, import_editor_props50.isTransformable)(fieldValue)) {
|
|
5712
|
+
return setValue({ ...value, [field]: fieldValue });
|
|
5713
|
+
}
|
|
5714
|
+
let formattedValue = "";
|
|
5715
|
+
if (fieldValue) {
|
|
5716
|
+
const dayjsValue = fieldValue;
|
|
5717
|
+
formattedValue = field === "date" ? dayjsValue.format(DATE_FORMAT) : dayjsValue.format(TIME_FORMAT);
|
|
5718
|
+
}
|
|
5719
|
+
setValue({
|
|
5720
|
+
...value,
|
|
5721
|
+
[field]: {
|
|
5722
|
+
$$type: "string",
|
|
5723
|
+
value: formattedValue
|
|
5724
|
+
}
|
|
5725
|
+
});
|
|
5726
|
+
};
|
|
5727
|
+
const parseDateValue = (dateStr) => {
|
|
5728
|
+
if (!dateStr) {
|
|
5729
|
+
return null;
|
|
5730
|
+
}
|
|
5731
|
+
const d = dayjs.default(dateStr);
|
|
5732
|
+
return d && typeof d.isValid === "function" && d.isValid() ? d : null;
|
|
5733
|
+
};
|
|
5734
|
+
const parseTimeValue = (timeStr) => {
|
|
5735
|
+
if (!timeStr) {
|
|
5736
|
+
return null;
|
|
5737
|
+
}
|
|
5738
|
+
const [hours, minutes] = timeStr.split(":");
|
|
5739
|
+
const h = Number.parseInt(hours ?? "", 10);
|
|
5740
|
+
const m = Number.parseInt(minutes ?? "", 10);
|
|
5741
|
+
if (Number.isNaN(h) || Number.isNaN(m)) {
|
|
5742
|
+
return null;
|
|
5743
|
+
}
|
|
5744
|
+
const base = dayjs.default();
|
|
5745
|
+
return base.hour(h).minute(m).second(0).millisecond(0);
|
|
5746
|
+
};
|
|
5747
|
+
return /* @__PURE__ */ React96.createElement(PropProvider, { ...propContext, value, setValue }, /* @__PURE__ */ React96.createElement(ControlActions, null, /* @__PURE__ */ React96.createElement(import_ui82.LocalizationProvider, null, /* @__PURE__ */ React96.createElement(import_ui82.Box, { display: "flex", gap: 1, alignItems: "center" }, /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "date" }, /* @__PURE__ */ React96.createElement(
|
|
5748
|
+
import_ui82.DatePicker,
|
|
5749
|
+
{
|
|
5750
|
+
value: parseDateValue(import_editor_props50.stringPropTypeUtil.extract(value?.date)),
|
|
5751
|
+
onChange: (v) => handleChange({ date: v }, { bind: "date" }),
|
|
5752
|
+
disabled: inputDisabled,
|
|
5753
|
+
slotProps: {
|
|
5754
|
+
textField: { size: "tiny" },
|
|
5755
|
+
openPickerButton: { size: "tiny" },
|
|
5756
|
+
openPickerIcon: { fontSize: "tiny" }
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5759
|
+
)), /* @__PURE__ */ React96.createElement(PropKeyProvider, { bind: "time" }, /* @__PURE__ */ React96.createElement(
|
|
5760
|
+
import_ui82.TimePicker,
|
|
5761
|
+
{
|
|
5762
|
+
value: parseTimeValue(import_editor_props50.stringPropTypeUtil.extract(value?.time)),
|
|
5763
|
+
onChange: (v) => handleChange({ time: v }, { bind: "time" }),
|
|
5764
|
+
disabled: inputDisabled,
|
|
5765
|
+
slotProps: {
|
|
5766
|
+
textField: { size: "tiny" },
|
|
5767
|
+
openPickerButton: { size: "tiny" },
|
|
5768
|
+
openPickerIcon: { fontSize: "tiny" }
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
))))));
|
|
5772
|
+
});
|
|
5773
|
+
|
|
5774
|
+
// src/components/icon-buttons/clear-icon-button.tsx
|
|
5775
|
+
var React97 = __toESM(require("react"));
|
|
5776
|
+
var import_icons33 = require("@elementor/icons");
|
|
5777
|
+
var import_ui83 = require("@elementor/ui");
|
|
5778
|
+
var CustomIconButton = (0, import_ui83.styled)(import_ui83.IconButton)(({ theme }) => ({
|
|
5702
5779
|
width: theme.spacing(2.5),
|
|
5703
5780
|
height: theme.spacing(2.5)
|
|
5704
5781
|
}));
|
|
5705
|
-
var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */
|
|
5782
|
+
var ClearIconButton = ({ tooltipText, onClick, disabled, size = "tiny" }) => /* @__PURE__ */ React97.createElement(import_ui83.Tooltip, { title: tooltipText, placement: "top", disableInteractive: true }, /* @__PURE__ */ React97.createElement(CustomIconButton, { "aria-label": tooltipText, size, onClick, disabled }, /* @__PURE__ */ React97.createElement(import_icons33.BrushBigIcon, { fontSize: size })));
|
|
5706
5783
|
|
|
5707
5784
|
// src/components/repeater.tsx
|
|
5708
|
-
var
|
|
5785
|
+
var React98 = __toESM(require("react"));
|
|
5709
5786
|
var import_react50 = require("react");
|
|
5710
5787
|
var import_icons34 = require("@elementor/icons");
|
|
5711
|
-
var
|
|
5788
|
+
var import_ui84 = require("@elementor/ui");
|
|
5712
5789
|
var import_i18n50 = require("@wordpress/i18n");
|
|
5713
5790
|
var SIZE9 = "tiny";
|
|
5714
5791
|
var EMPTY_OPEN_ITEM2 = -1;
|
|
@@ -5804,8 +5881,8 @@ var Repeater3 = ({
|
|
|
5804
5881
|
{ action: { type: "reorder", payload: { ...meta } } }
|
|
5805
5882
|
);
|
|
5806
5883
|
};
|
|
5807
|
-
return /* @__PURE__ */
|
|
5808
|
-
|
|
5884
|
+
return /* @__PURE__ */ React98.createElement(SectionContent, { gap: 2 }, /* @__PURE__ */ React98.createElement(
|
|
5885
|
+
import_ui84.Stack,
|
|
5809
5886
|
{
|
|
5810
5887
|
direction: "row",
|
|
5811
5888
|
justifyContent: "start",
|
|
@@ -5813,10 +5890,10 @@ var Repeater3 = ({
|
|
|
5813
5890
|
gap: 1,
|
|
5814
5891
|
sx: { marginInlineEnd: -0.75 }
|
|
5815
5892
|
},
|
|
5816
|
-
/* @__PURE__ */
|
|
5817
|
-
/* @__PURE__ */
|
|
5818
|
-
/* @__PURE__ */
|
|
5819
|
-
|
|
5893
|
+
/* @__PURE__ */ React98.createElement(import_ui84.Typography, { component: "label", variant: "caption", color: "text.secondary" }, label),
|
|
5894
|
+
/* @__PURE__ */ React98.createElement(ControlAdornments, null),
|
|
5895
|
+
/* @__PURE__ */ React98.createElement(
|
|
5896
|
+
import_ui84.IconButton,
|
|
5820
5897
|
{
|
|
5821
5898
|
size: SIZE9,
|
|
5822
5899
|
sx: { ml: "auto" },
|
|
@@ -5824,20 +5901,20 @@ var Repeater3 = ({
|
|
|
5824
5901
|
onClick: addRepeaterItem,
|
|
5825
5902
|
"aria-label": (0, import_i18n50.__)("Add item", "elementor")
|
|
5826
5903
|
},
|
|
5827
|
-
/* @__PURE__ */
|
|
5904
|
+
/* @__PURE__ */ React98.createElement(import_icons34.PlusIcon, { fontSize: SIZE9 })
|
|
5828
5905
|
)
|
|
5829
|
-
), 0 < uniqueKeys.length && /* @__PURE__ */
|
|
5906
|
+
), 0 < uniqueKeys.length && /* @__PURE__ */ React98.createElement(SortableProvider, { value: uniqueKeys, onChange: onChangeOrder }, uniqueKeys.map((key, index) => {
|
|
5830
5907
|
const value = items2[index];
|
|
5831
5908
|
if (!value) {
|
|
5832
5909
|
return null;
|
|
5833
5910
|
}
|
|
5834
|
-
return /* @__PURE__ */
|
|
5911
|
+
return /* @__PURE__ */ React98.createElement(SortableItem, { id: key, key: `sortable-${key}`, disabled: !isSortable }, /* @__PURE__ */ React98.createElement(
|
|
5835
5912
|
RepeaterItem,
|
|
5836
5913
|
{
|
|
5837
5914
|
disabled,
|
|
5838
5915
|
propDisabled: value?.disabled,
|
|
5839
|
-
label: /* @__PURE__ */
|
|
5840
|
-
startIcon: /* @__PURE__ */
|
|
5916
|
+
label: /* @__PURE__ */ React98.createElement(RepeaterItemLabelSlot, { value }, /* @__PURE__ */ React98.createElement(itemSettings.Label, { value })),
|
|
5917
|
+
startIcon: /* @__PURE__ */ React98.createElement(RepeaterItemIconSlot, { value }, /* @__PURE__ */ React98.createElement(itemSettings.Icon, { value })),
|
|
5841
5918
|
removeItem: () => removeRepeaterItem(index),
|
|
5842
5919
|
duplicateItem: () => duplicateRepeaterItem(index),
|
|
5843
5920
|
toggleDisableItem: () => toggleDisableRepeaterItem(index),
|
|
@@ -5847,7 +5924,7 @@ var Repeater3 = ({
|
|
|
5847
5924
|
showToggle,
|
|
5848
5925
|
collectionPropUtil
|
|
5849
5926
|
},
|
|
5850
|
-
(props) => /* @__PURE__ */
|
|
5927
|
+
(props) => /* @__PURE__ */ React98.createElement(itemSettings.Content, { ...props, value, bind: String(index) })
|
|
5851
5928
|
));
|
|
5852
5929
|
})));
|
|
5853
5930
|
};
|
|
@@ -5871,8 +5948,8 @@ var RepeaterItem = ({
|
|
|
5871
5948
|
const duplicateLabel = (0, import_i18n50.__)("Duplicate", "elementor");
|
|
5872
5949
|
const toggleLabel = propDisabled ? (0, import_i18n50.__)("Show", "elementor") : (0, import_i18n50.__)("Hide", "elementor");
|
|
5873
5950
|
const removeLabel = (0, import_i18n50.__)("Remove", "elementor");
|
|
5874
|
-
return /* @__PURE__ */
|
|
5875
|
-
|
|
5951
|
+
return /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(
|
|
5952
|
+
import_ui84.UnstableTag,
|
|
5876
5953
|
{
|
|
5877
5954
|
disabled,
|
|
5878
5955
|
label,
|
|
@@ -5881,12 +5958,12 @@ var RepeaterItem = ({
|
|
|
5881
5958
|
ref: setRef,
|
|
5882
5959
|
variant: "outlined",
|
|
5883
5960
|
"aria-label": (0, import_i18n50.__)("Open item", "elementor"),
|
|
5884
|
-
...(0,
|
|
5961
|
+
...(0, import_ui84.bindTrigger)(popoverState),
|
|
5885
5962
|
startIcon,
|
|
5886
|
-
actions: /* @__PURE__ */
|
|
5963
|
+
actions: /* @__PURE__ */ React98.createElement(React98.Fragment, null, showDuplicate && /* @__PURE__ */ React98.createElement(import_ui84.Tooltip, { title: duplicateLabel, placement: "top" }, /* @__PURE__ */ React98.createElement(import_ui84.IconButton, { size: SIZE9, onClick: duplicateItem, "aria-label": duplicateLabel }, /* @__PURE__ */ React98.createElement(import_icons34.CopyIcon, { fontSize: SIZE9 }))), showToggle && /* @__PURE__ */ React98.createElement(import_ui84.Tooltip, { title: toggleLabel, placement: "top" }, /* @__PURE__ */ React98.createElement(import_ui84.IconButton, { size: SIZE9, onClick: toggleDisableItem, "aria-label": toggleLabel }, propDisabled ? /* @__PURE__ */ React98.createElement(import_icons34.EyeOffIcon, { fontSize: SIZE9 }) : /* @__PURE__ */ React98.createElement(import_icons34.EyeIcon, { fontSize: SIZE9 }))), /* @__PURE__ */ React98.createElement(import_ui84.Tooltip, { title: removeLabel, placement: "top" }, /* @__PURE__ */ React98.createElement(import_ui84.IconButton, { size: SIZE9, onClick: removeItem, "aria-label": removeLabel }, /* @__PURE__ */ React98.createElement(import_icons34.XIcon, { fontSize: SIZE9 }))))
|
|
5887
5964
|
}
|
|
5888
|
-
), /* @__PURE__ */
|
|
5889
|
-
|
|
5965
|
+
), /* @__PURE__ */ React98.createElement(
|
|
5966
|
+
import_ui84.Popover,
|
|
5890
5967
|
{
|
|
5891
5968
|
disablePortal: true,
|
|
5892
5969
|
slotProps: {
|
|
@@ -5899,13 +5976,13 @@ var RepeaterItem = ({
|
|
|
5899
5976
|
...popoverProps,
|
|
5900
5977
|
anchorEl: ref
|
|
5901
5978
|
},
|
|
5902
|
-
/* @__PURE__ */
|
|
5979
|
+
/* @__PURE__ */ React98.createElement(import_ui84.Box, null, children({ anchorEl, collectionPropUtil }))
|
|
5903
5980
|
));
|
|
5904
5981
|
};
|
|
5905
5982
|
var usePopover = (openOnMount, onOpen) => {
|
|
5906
5983
|
const [ref, setRef] = (0, import_react50.useState)(null);
|
|
5907
|
-
const popoverState = (0,
|
|
5908
|
-
const popoverProps = (0,
|
|
5984
|
+
const popoverState = (0, import_ui84.usePopupState)({ variant: "popover" });
|
|
5985
|
+
const popoverProps = (0, import_ui84.bindPopover)(popoverState);
|
|
5909
5986
|
(0, import_react50.useEffect)(() => {
|
|
5910
5987
|
if (openOnMount && ref) {
|
|
5911
5988
|
popoverState.open(ref);
|
|
@@ -5932,6 +6009,7 @@ var usePopover = (openOnMount, onOpen) => {
|
|
|
5932
6009
|
ControlFormLabel,
|
|
5933
6010
|
ControlReplacementsProvider,
|
|
5934
6011
|
ControlToggleButtonGroup,
|
|
6012
|
+
DateTimeControl,
|
|
5935
6013
|
EqualUnequalSizesControl,
|
|
5936
6014
|
FilterRepeaterControl,
|
|
5937
6015
|
FloatingActionsBar,
|