@plasmicpkgs/react-aria 0.0.129 → 0.0.131
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/.tsbuildinfo +1 -1
- package/dist/react-aria.esm.js +50 -54
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +48 -52
- package/dist/react-aria.js.map +1 -1
- package/dist/registerComboBox.d.ts +2 -2
- package/dist/registerDialogTrigger.d.ts +2 -2
- package/dist/registerModal.d.ts +2 -2
- package/dist/registerPopover.d.ts +2 -2
- package/dist/registerSelect.d.ts +2 -2
- package/dist/registerTooltip.d.ts +2 -2
- package/dist/utils.d.ts +5 -4
- package/package.json +2 -2
- package/skinny/{OptionsItemIdManager-34faf3b6.cjs.js → OptionsItemIdManager-3dae926c.cjs.js} +2 -2
- package/skinny/{OptionsItemIdManager-34faf3b6.cjs.js.map → OptionsItemIdManager-3dae926c.cjs.js.map} +1 -1
- package/skinny/{OptionsItemIdManager-165c0c68.esm.js → OptionsItemIdManager-87cb9fe8.esm.js} +2 -2
- package/skinny/{OptionsItemIdManager-165c0c68.esm.js.map → OptionsItemIdManager-87cb9fe8.esm.js.map} +1 -1
- package/skinny/{common-e24b7213.cjs.js → common-97d00c54.cjs.js} +2 -2
- package/skinny/{common-e24b7213.cjs.js.map → common-97d00c54.cjs.js.map} +1 -1
- package/skinny/{common-59834505.esm.js → common-a6882f23.esm.js} +2 -2
- package/skinny/{common-59834505.esm.js.map → common-a6882f23.esm.js.map} +1 -1
- package/skinny/registerButton.cjs.js +2 -2
- package/skinny/registerButton.esm.js +2 -2
- package/skinny/registerCheckbox.cjs.js +3 -3
- package/skinny/registerCheckbox.esm.js +3 -3
- package/skinny/registerCheckboxGroup.cjs.js +3 -3
- package/skinny/registerCheckboxGroup.esm.js +3 -3
- package/skinny/registerComboBox.cjs.js +15 -5
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.d.ts +2 -2
- package/skinny/registerComboBox.esm.js +15 -5
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerDescription.cjs.js +2 -2
- package/skinny/registerDescription.esm.js +2 -2
- package/skinny/registerDialog.cjs.js +2 -2
- package/skinny/registerDialog.esm.js +2 -2
- package/skinny/registerDialogTrigger.cjs.js +6 -18
- package/skinny/registerDialogTrigger.cjs.js.map +1 -1
- package/skinny/registerDialogTrigger.d.ts +2 -2
- package/skinny/registerDialogTrigger.esm.js +6 -18
- package/skinny/registerDialogTrigger.esm.js.map +1 -1
- package/skinny/registerFieldError.cjs.js +1 -1
- package/skinny/registerFieldError.esm.js +1 -1
- package/skinny/registerForm.cjs.js +1 -1
- package/skinny/registerForm.esm.js +1 -1
- package/skinny/registerHeading.cjs.js +2 -2
- package/skinny/registerHeading.esm.js +2 -2
- package/skinny/registerInput.cjs.js +2 -2
- package/skinny/registerInput.esm.js +2 -2
- package/skinny/registerLabel.cjs.js +2 -2
- package/skinny/registerLabel.esm.js +2 -2
- package/skinny/{registerListBox-a4d16b2c.esm.js → registerListBox-7bc52037.esm.js} +4 -4
- package/skinny/{registerListBox-a4d16b2c.esm.js.map → registerListBox-7bc52037.esm.js.map} +1 -1
- package/skinny/{registerListBox-193a68f7.cjs.js → registerListBox-fefaf99a.cjs.js} +4 -4
- package/skinny/{registerListBox-193a68f7.cjs.js.map → registerListBox-fefaf99a.cjs.js.map} +1 -1
- package/skinny/registerListBox.cjs.js +4 -4
- package/skinny/registerListBox.esm.js +4 -4
- package/skinny/registerListBoxItem.cjs.js +3 -3
- package/skinny/registerListBoxItem.esm.js +3 -3
- package/skinny/registerModal.cjs.js +5 -7
- package/skinny/registerModal.cjs.js.map +1 -1
- package/skinny/registerModal.d.ts +2 -2
- package/skinny/registerModal.esm.js +5 -7
- package/skinny/registerModal.esm.js.map +1 -1
- package/skinny/registerOverlayArrow.cjs.js +2 -2
- package/skinny/registerOverlayArrow.esm.js +2 -2
- package/skinny/registerPopover.cjs.js +2 -2
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.d.ts +2 -2
- package/skinny/registerPopover.esm.js +2 -2
- package/skinny/registerPopover.esm.js.map +1 -1
- package/skinny/registerRadio.cjs.js +3 -3
- package/skinny/registerRadio.esm.js +3 -3
- package/skinny/registerRadioGroup.cjs.js +3 -3
- package/skinny/registerRadioGroup.esm.js +3 -3
- package/skinny/registerSection.cjs.js +4 -4
- package/skinny/registerSection.esm.js +4 -4
- package/skinny/registerSelect.cjs.js +13 -5
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.d.ts +2 -2
- package/skinny/registerSelect.esm.js +13 -5
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerSlider.cjs.js +2 -2
- package/skinny/registerSlider.esm.js +2 -2
- package/skinny/registerSliderOutput.cjs.js +9 -3
- package/skinny/registerSliderOutput.cjs.js.map +1 -1
- package/skinny/registerSliderOutput.esm.js +10 -4
- package/skinny/registerSliderOutput.esm.js.map +1 -1
- package/skinny/registerSliderThumb.cjs.js +7 -25
- package/skinny/registerSliderThumb.cjs.js.map +1 -1
- package/skinny/registerSliderThumb.esm.js +9 -27
- package/skinny/registerSliderThumb.esm.js.map +1 -1
- package/skinny/registerSliderTrack.cjs.js +2 -2
- package/skinny/registerSliderTrack.esm.js +2 -2
- package/skinny/registerSwitch.cjs.js +2 -2
- package/skinny/registerSwitch.esm.js +2 -2
- package/skinny/registerText.cjs.js +2 -2
- package/skinny/registerText.esm.js +2 -2
- package/skinny/registerTextArea.cjs.js +2 -2
- package/skinny/registerTextArea.esm.js +2 -2
- package/skinny/registerTextField.cjs.js +2 -2
- package/skinny/registerTextField.esm.js +2 -2
- package/skinny/registerTooltip.cjs.js +4 -5
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.d.ts +2 -2
- package/skinny/registerTooltip.esm.js +4 -5
- package/skinny/registerTooltip.esm.js.map +1 -1
- package/skinny/{utils-0ef9e9d1.cjs.js → utils-85ca5354.cjs.js} +9 -3
- package/skinny/utils-85ca5354.cjs.js.map +1 -0
- package/skinny/{utils-81ea3961.esm.js → utils-edf40001.esm.js} +9 -3
- package/skinny/utils-edf40001.esm.js.map +1 -0
- package/skinny/utils.d.ts +5 -4
- package/dist/ErrorBoundary.d.ts +0 -14
- package/skinny/ErrorBoundary.d.ts +0 -14
- package/skinny/utils-0ef9e9d1.cjs.js.map +0 -1
- package/skinny/utils-81ea3961.esm.js.map +0 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePlasmicCanvasContext, usePlasmicCanvasComponentInfo, usePlasmicLink } from '@plasmicapp/host';
|
|
2
|
-
import React, { useEffect, useState, useMemo, useCallback, forwardRef, useImperativeHandle,
|
|
2
|
+
import React, { useEffect, useState, useMemo, useCallback, forwardRef, useImperativeHandle, useRef, useId } from 'react';
|
|
3
3
|
import { mergeProps, useLink, useHover, useFocusRing, useButton, useFocusWithin } from 'react-aria';
|
|
4
|
-
import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Dialog, ModalOverlay, Modal, DialogTrigger, Heading, TooltipTriggerStateContext, OverlayArrow, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput,
|
|
4
|
+
import { Button, Checkbox, Text, Label, CheckboxGroup, useContextProps, InputContext, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Dialog, ModalOverlay, Modal, DialogTrigger, Heading, TooltipTriggerStateContext, OverlayArrow, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput, Slider, SliderTrackContext, SliderThumb, SliderTrack, Switch, TextAreaContext, TextField, Provider, Tooltip } from 'react-aria-components';
|
|
5
5
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
6
6
|
import { mergeProps as mergeProps$1 } from '@react-aria/utils';
|
|
7
7
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
@@ -43,9 +43,10 @@ const useIsomorphicLayoutEffect = isBrowser ? React.useLayoutEffect : React.useE
|
|
|
43
43
|
function useIsOpen({
|
|
44
44
|
triggerSlotName,
|
|
45
45
|
isOpen,
|
|
46
|
-
|
|
46
|
+
props
|
|
47
47
|
}) {
|
|
48
48
|
var _a, _b;
|
|
49
|
+
const { __plasmic_selection_prop__, plasmicNotifyAutoOpenedContent } = props;
|
|
49
50
|
const canvasContext = usePlasmicCanvasContext();
|
|
50
51
|
const { isSelected, selectedSlotName } = (_b = (_a = usePlasmicCanvasComponentInfo) == null ? void 0 : _a({ __plasmic_selection_prop__ })) != null ? _b : {};
|
|
51
52
|
if (!canvasContext) {
|
|
@@ -53,6 +54,9 @@ function useIsOpen({
|
|
|
53
54
|
}
|
|
54
55
|
const isTriggerSlotSelected = isDefined(selectedSlotName) && selectedSlotName === triggerSlotName;
|
|
55
56
|
const isAutoOpenedBySelection = isSelected && !isTriggerSlotSelected;
|
|
57
|
+
if (isAutoOpenedBySelection && !isOpen) {
|
|
58
|
+
plasmicNotifyAutoOpenedContent == null ? void 0 : plasmicNotifyAutoOpenedContent();
|
|
59
|
+
}
|
|
56
60
|
return Boolean(isAutoOpenedBySelection || isOpen);
|
|
57
61
|
}
|
|
58
62
|
function useAutoOpen({
|
|
@@ -63,16 +67,18 @@ function useAutoOpen({
|
|
|
63
67
|
var _a, _b, _c;
|
|
64
68
|
const inPlasmicCanvas = !!usePlasmicCanvasContext();
|
|
65
69
|
const isSelected = (_c = (_b = (_a = usePlasmicCanvasComponentInfo) == null ? void 0 : _a(props)) == null ? void 0 : _b.isSelected) != null ? _c : false;
|
|
70
|
+
const { plasmicNotifyAutoOpenedContent } = props;
|
|
66
71
|
useEffect(() => {
|
|
67
72
|
if (!inPlasmicCanvas) {
|
|
68
73
|
return;
|
|
69
74
|
}
|
|
70
75
|
if (isSelected) {
|
|
71
76
|
open == null ? void 0 : open();
|
|
77
|
+
plasmicNotifyAutoOpenedContent == null ? void 0 : plasmicNotifyAutoOpenedContent();
|
|
72
78
|
} else {
|
|
73
79
|
close == null ? void 0 : close();
|
|
74
80
|
}
|
|
75
|
-
}, [isSelected, inPlasmicCanvas]);
|
|
81
|
+
}, [isSelected, inPlasmicCanvas, plasmicNotifyAutoOpenedContent]);
|
|
76
82
|
}
|
|
77
83
|
function registerComponentHelper(loader, component, meta, overrides) {
|
|
78
84
|
if (overrides) {
|
|
@@ -2426,12 +2432,16 @@ function BaseComboBox(props) {
|
|
|
2426
2432
|
children,
|
|
2427
2433
|
setControlContextData,
|
|
2428
2434
|
plasmicUpdateVariant,
|
|
2435
|
+
__plasmic_selection_prop__,
|
|
2436
|
+
plasmicNotifyAutoOpenedContent,
|
|
2429
2437
|
className,
|
|
2430
2438
|
isOpen: _isOpen
|
|
2431
2439
|
} = _a, rest = __objRest$d(_a, [
|
|
2432
2440
|
"children",
|
|
2433
2441
|
"setControlContextData",
|
|
2434
2442
|
"plasmicUpdateVariant",
|
|
2443
|
+
"__plasmic_selection_prop__",
|
|
2444
|
+
"plasmicNotifyAutoOpenedContent",
|
|
2435
2445
|
"className",
|
|
2436
2446
|
"isOpen"
|
|
2437
2447
|
]);
|
|
@@ -2460,7 +2470,13 @@ function BaseComboBox(props) {
|
|
|
2460
2470
|
idManager
|
|
2461
2471
|
}
|
|
2462
2472
|
},
|
|
2463
|
-
/* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(
|
|
2473
|
+
/* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(
|
|
2474
|
+
ComboboxAutoOpen,
|
|
2475
|
+
{
|
|
2476
|
+
__plasmic_selection_prop__,
|
|
2477
|
+
plasmicNotifyAutoOpenedContent
|
|
2478
|
+
}
|
|
2479
|
+
), children)
|
|
2464
2480
|
)));
|
|
2465
2481
|
}
|
|
2466
2482
|
function registerComboBox(loader) {
|
|
@@ -2671,8 +2687,7 @@ const BaseModal = forwardRef(
|
|
|
2671
2687
|
resetClassName,
|
|
2672
2688
|
setControlContextData,
|
|
2673
2689
|
isDismissable,
|
|
2674
|
-
defaultOpen
|
|
2675
|
-
__plasmic_selection_prop__
|
|
2690
|
+
defaultOpen
|
|
2676
2691
|
} = _a, rest = __objRest$c(_a, [
|
|
2677
2692
|
"children",
|
|
2678
2693
|
"modalOverlayClass",
|
|
@@ -2681,14 +2696,13 @@ const BaseModal = forwardRef(
|
|
|
2681
2696
|
"resetClassName",
|
|
2682
2697
|
"setControlContextData",
|
|
2683
2698
|
"isDismissable",
|
|
2684
|
-
"defaultOpen"
|
|
2685
|
-
"__plasmic_selection_prop__"
|
|
2699
|
+
"defaultOpen"
|
|
2686
2700
|
]);
|
|
2687
2701
|
const canvasCtx = usePlasmicCanvasContext();
|
|
2688
2702
|
const isEditMode = canvasCtx && canvasCtx.interactive === false;
|
|
2689
2703
|
const contextProps = React.useContext(PlasmicDialogTriggerContext);
|
|
2690
2704
|
const isStandalone = !contextProps;
|
|
2691
|
-
const isOpen2 = useIsOpen({ isOpen,
|
|
2705
|
+
const isOpen2 = useIsOpen({ isOpen, props });
|
|
2692
2706
|
const mergedProps = mergeProps(rest, {
|
|
2693
2707
|
// Since open/defaultOpen props are hidden when the modal is inside dialogTrigger, we also unset them here.
|
|
2694
2708
|
isOpen: isStandalone ? isOpen2 : void 0,
|
|
@@ -2882,26 +2896,14 @@ function TriggerWrapper$1({ children, className }) {
|
|
|
2882
2896
|
return /* @__PURE__ */ React.createElement("div", __spreadValues$d({}, mergedProps), children);
|
|
2883
2897
|
}
|
|
2884
2898
|
function BaseDialogTrigger(props) {
|
|
2885
|
-
const _a = props, {
|
|
2886
|
-
|
|
2887
|
-
dialog,
|
|
2888
|
-
isOpen,
|
|
2889
|
-
className,
|
|
2890
|
-
__plasmic_selection_prop__
|
|
2891
|
-
} = _a, rest = __objRest$b(_a, [
|
|
2892
|
-
"trigger",
|
|
2893
|
-
"dialog",
|
|
2894
|
-
"isOpen",
|
|
2895
|
-
"className",
|
|
2896
|
-
"__plasmic_selection_prop__"
|
|
2897
|
-
]);
|
|
2898
|
-
const isOpen2 = useIsOpen({
|
|
2899
|
+
const _a = props, { trigger, dialog, isOpen, className } = _a, rest = __objRest$b(_a, ["trigger", "dialog", "isOpen", "className"]);
|
|
2900
|
+
const canvasAwareIsOpen = useIsOpen({
|
|
2899
2901
|
triggerSlotName: "trigger",
|
|
2900
2902
|
isOpen,
|
|
2901
|
-
|
|
2903
|
+
props
|
|
2902
2904
|
});
|
|
2903
2905
|
const mergedProps = __spreadProps$b(__spreadValues$d({}, rest), {
|
|
2904
|
-
isOpen:
|
|
2906
|
+
isOpen: canvasAwareIsOpen
|
|
2905
2907
|
});
|
|
2906
2908
|
return (
|
|
2907
2909
|
// PlasmicDialogTriggerContext is used by BaseModal
|
|
@@ -3528,6 +3530,8 @@ function BaseSelect(props) {
|
|
|
3528
3530
|
name,
|
|
3529
3531
|
setControlContextData,
|
|
3530
3532
|
plasmicUpdateVariant,
|
|
3533
|
+
plasmicNotifyAutoOpenedContent,
|
|
3534
|
+
__plasmic_selection_prop__,
|
|
3531
3535
|
defaultSelectedKey,
|
|
3532
3536
|
"aria-label": ariaLabel
|
|
3533
3537
|
} = props;
|
|
@@ -3569,7 +3573,13 @@ function BaseSelect(props) {
|
|
|
3569
3573
|
disabledKeys,
|
|
3570
3574
|
"aria-label": ariaLabel
|
|
3571
3575
|
}, extractPlasmicDataProps(props)),
|
|
3572
|
-
/* @__PURE__ */ React.createElement(
|
|
3576
|
+
/* @__PURE__ */ React.createElement(
|
|
3577
|
+
SelectAutoOpen,
|
|
3578
|
+
{
|
|
3579
|
+
__plasmic_selection_prop__,
|
|
3580
|
+
plasmicNotifyAutoOpenedContent
|
|
3581
|
+
}
|
|
3582
|
+
),
|
|
3573
3583
|
/* @__PURE__ */ React.createElement(PlasmicPopoverTriggerContext.Provider, { value: true }, /* @__PURE__ */ React.createElement(
|
|
3574
3584
|
PlasmicListBoxContext.Provider,
|
|
3575
3585
|
{
|
|
@@ -3789,13 +3799,18 @@ const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickA
|
|
|
3789
3799
|
);
|
|
3790
3800
|
function BaseSliderOutput(props) {
|
|
3791
3801
|
const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
|
|
3792
|
-
|
|
3802
|
+
const isStandalone = !React.useContext(PlasmicSliderContext);
|
|
3803
|
+
const sliderOutput = /* @__PURE__ */ React.createElement(SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$5(
|
|
3793
3804
|
children,
|
|
3794
3805
|
{
|
|
3795
3806
|
disabled: isDisabled
|
|
3796
3807
|
},
|
|
3797
3808
|
plasmicUpdateVariant
|
|
3798
3809
|
));
|
|
3810
|
+
if (isStandalone) {
|
|
3811
|
+
return /* @__PURE__ */ React.createElement(Slider, { style: { height: "100%", width: "100%" } }, sliderOutput);
|
|
3812
|
+
}
|
|
3813
|
+
return sliderOutput;
|
|
3799
3814
|
}
|
|
3800
3815
|
const SLIDER_OUTPUT_COMPONENT_NAME = makeComponentName("sliderOutput");
|
|
3801
3816
|
function registerSliderOutput(loader, overrides) {
|
|
@@ -3820,22 +3835,6 @@ function registerSliderOutput(loader, overrides) {
|
|
|
3820
3835
|
);
|
|
3821
3836
|
}
|
|
3822
3837
|
|
|
3823
|
-
class ErrorBoundary extends Component {
|
|
3824
|
-
constructor(props) {
|
|
3825
|
-
super(props);
|
|
3826
|
-
this.state = { hasError: false };
|
|
3827
|
-
}
|
|
3828
|
-
static getDerivedStateFromError(_) {
|
|
3829
|
-
return { hasError: true };
|
|
3830
|
-
}
|
|
3831
|
-
render() {
|
|
3832
|
-
if (this.state.hasError) {
|
|
3833
|
-
return this.props.fallback;
|
|
3834
|
-
}
|
|
3835
|
-
return this.props.children;
|
|
3836
|
-
}
|
|
3837
|
-
}
|
|
3838
|
-
|
|
3839
3838
|
var __defProp$6 = Object.defineProperty;
|
|
3840
3839
|
var __defProps$5 = Object.defineProperties;
|
|
3841
3840
|
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
@@ -3887,6 +3886,7 @@ function BaseSliderThumb(_a) {
|
|
|
3887
3886
|
"advanced",
|
|
3888
3887
|
"plasmicUpdateVariant"
|
|
3889
3888
|
]);
|
|
3889
|
+
const isStandalone = !React.useContext(SliderTrackContext);
|
|
3890
3890
|
const thumb = /* @__PURE__ */ React.createElement(SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
|
|
3891
3891
|
/* @__PURE__ */ React.createElement(React.Fragment, null, advanced ? children : void 0),
|
|
3892
3892
|
{
|
|
@@ -3898,13 +3898,10 @@ function BaseSliderThumb(_a) {
|
|
|
3898
3898
|
},
|
|
3899
3899
|
plasmicUpdateVariant
|
|
3900
3900
|
));
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
},
|
|
3906
|
-
thumb
|
|
3907
|
-
);
|
|
3901
|
+
if (isStandalone) {
|
|
3902
|
+
return /* @__PURE__ */ React.createElement(Slider, { style: { height: "100%", width: "100%" } }, /* @__PURE__ */ React.createElement(SliderTrack, null, thumb));
|
|
3903
|
+
}
|
|
3904
|
+
return thumb;
|
|
3908
3905
|
}
|
|
3909
3906
|
const SLIDER_THUMB_COMPONENT_NAME = makeComponentName("sliderThumb");
|
|
3910
3907
|
function registerSliderThumb(loader, overrides) {
|
|
@@ -5012,13 +5009,12 @@ function ControlledBaseTooltip(props) {
|
|
|
5012
5009
|
shouldFlip,
|
|
5013
5010
|
className,
|
|
5014
5011
|
onOpenChange = () => {
|
|
5015
|
-
}
|
|
5016
|
-
__plasmic_selection_prop__
|
|
5012
|
+
}
|
|
5017
5013
|
} = props;
|
|
5018
5014
|
const isCanvasAwareOpen = useIsOpen({
|
|
5019
5015
|
triggerSlotName: "children",
|
|
5020
5016
|
isOpen,
|
|
5021
|
-
|
|
5017
|
+
props
|
|
5022
5018
|
});
|
|
5023
5019
|
const ref = useRef(null);
|
|
5024
5020
|
const tooltipId = useId();
|