@plasmicpkgs/react-aria 0.0.69 → 0.0.71
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 +20 -45
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +20 -45
- package/dist/react-aria.js.map +1 -1
- package/dist/registerPopover.d.ts +2 -6
- package/package.json +2 -2
- package/skinny/registerComboBox.cjs.js +7 -13
- package/skinny/registerComboBox.cjs.js.map +1 -1
- package/skinny/registerComboBox.esm.js +7 -13
- package/skinny/registerComboBox.esm.js.map +1 -1
- package/skinny/registerDialogTrigger.cjs.js +1 -0
- package/skinny/registerDialogTrigger.cjs.js.map +1 -1
- package/skinny/registerDialogTrigger.esm.js +1 -0
- package/skinny/registerDialogTrigger.esm.js.map +1 -1
- package/skinny/registerPopover.cjs.js +3 -16
- package/skinny/registerPopover.cjs.js.map +1 -1
- package/skinny/registerPopover.d.ts +2 -6
- package/skinny/registerPopover.esm.js +3 -16
- package/skinny/registerPopover.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +7 -13
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.esm.js +7 -13
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerTooltip.cjs.js +2 -3
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.esm.js +2 -3
- package/skinny/registerTooltip.esm.js.map +1 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -2084,24 +2084,14 @@ const POPOVER_VARIANTS = [
|
|
|
2084
2084
|
];
|
|
2085
2085
|
const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(POPOVER_VARIANTS);
|
|
2086
2086
|
function BasePopover(props) {
|
|
2087
|
-
|
|
2088
|
-
const _a = props, {
|
|
2089
|
-
resetClassName,
|
|
2090
|
-
setControlContextData,
|
|
2091
|
-
plasmicUpdateVariant
|
|
2092
|
-
} = _a, restProps = __objRest$d(_a, [
|
|
2093
|
-
"resetClassName",
|
|
2094
|
-
"setControlContextData",
|
|
2095
|
-
"plasmicUpdateVariant"
|
|
2096
|
-
]);
|
|
2087
|
+
const _a = props, { resetClassName, plasmicUpdateVariant } = _a, restProps = __objRest$d(_a, ["resetClassName", "plasmicUpdateVariant"]);
|
|
2097
2088
|
const isStandalone = !React.useContext(PopoverContext);
|
|
2098
2089
|
const context = React.useContext(PlasmicPopoverContext);
|
|
2099
2090
|
const triggerRef = React.useRef(null);
|
|
2100
2091
|
const isEditMode = !!usePlasmicCanvasContext();
|
|
2101
2092
|
const _b = mergeProps$1(
|
|
2102
2093
|
{
|
|
2103
|
-
isOpen: context == null ? void 0 : context.isOpen
|
|
2104
|
-
shouldFlip: context == null ? void 0 : context.defaultShouldFlip
|
|
2094
|
+
isOpen: context == null ? void 0 : context.isOpen
|
|
2105
2095
|
},
|
|
2106
2096
|
/**
|
|
2107
2097
|
* isNonModal: Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies. *
|
|
@@ -2122,9 +2112,6 @@ function BasePopover(props) {
|
|
|
2122
2112
|
isOpen: true
|
|
2123
2113
|
} : null
|
|
2124
2114
|
), { children } = _b, mergedProps = __objRest$d(_b, ["children"]);
|
|
2125
|
-
setControlContextData == null ? void 0 : setControlContextData({
|
|
2126
|
-
defaultShouldFlip: (_c = context == null ? void 0 : context.defaultShouldFlip) != null ? _c : true
|
|
2127
|
-
});
|
|
2128
2115
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, isStandalone && /* @__PURE__ */ React.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React.createElement(Popover, __spreadValues$f({}, mergedProps), ({ placement }) => withObservedValues$9(
|
|
2129
2116
|
children,
|
|
2130
2117
|
{
|
|
@@ -2209,7 +2196,7 @@ function registerPopover(loader, overrides) {
|
|
|
2209
2196
|
shouldFlip: {
|
|
2210
2197
|
type: "boolean",
|
|
2211
2198
|
description: "Whether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.",
|
|
2212
|
-
defaultValueHint:
|
|
2199
|
+
defaultValueHint: true
|
|
2213
2200
|
},
|
|
2214
2201
|
placement: {
|
|
2215
2202
|
type: "choice",
|
|
@@ -2294,21 +2281,15 @@ function BaseComboBox(props) {
|
|
|
2294
2281
|
});
|
|
2295
2282
|
});
|
|
2296
2283
|
}, []);
|
|
2297
|
-
return /* @__PURE__ */ React.createElement(ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React.createElement(
|
|
2298
|
-
|
|
2284
|
+
return /* @__PURE__ */ React.createElement(ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React.createElement(PlasmicPopoverContext.Provider, { value: { isOpen } }, /* @__PURE__ */ React.createElement(
|
|
2285
|
+
PlasmicListBoxContext.Provider,
|
|
2299
2286
|
{
|
|
2300
|
-
value: {
|
|
2287
|
+
value: {
|
|
2288
|
+
idManager
|
|
2289
|
+
}
|
|
2301
2290
|
},
|
|
2302
|
-
/* @__PURE__ */ React.createElement(
|
|
2303
|
-
|
|
2304
|
-
{
|
|
2305
|
-
value: {
|
|
2306
|
-
idManager
|
|
2307
|
-
}
|
|
2308
|
-
},
|
|
2309
|
-
/* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(ComboboxAutoOpen, __spreadValues$e({}, props)), children)
|
|
2310
|
-
)
|
|
2311
|
-
));
|
|
2291
|
+
/* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(ComboboxAutoOpen, __spreadValues$e({}, props)), children)
|
|
2292
|
+
)));
|
|
2312
2293
|
}
|
|
2313
2294
|
function registerComboBox(loader) {
|
|
2314
2295
|
registerComponentHelper(loader, BaseComboBox, {
|
|
@@ -2776,6 +2757,7 @@ function registerDialogTrigger(loader, overrides) {
|
|
|
2776
2757
|
displayName: "Aria Dialog Trigger",
|
|
2777
2758
|
importPath: "@plasmicpkgs/react-aria/skinny/registerDialogTrigger",
|
|
2778
2759
|
importName: "BaseDialogTrigger",
|
|
2760
|
+
styleSections: false,
|
|
2779
2761
|
isAttachment: true,
|
|
2780
2762
|
props: {
|
|
2781
2763
|
trigger: {
|
|
@@ -3196,21 +3178,15 @@ function BaseSelect(props) {
|
|
|
3196
3178
|
"aria-label": ariaLabel,
|
|
3197
3179
|
isOpen: _isOpen
|
|
3198
3180
|
}, extractPlasmicDataProps(props)),
|
|
3199
|
-
/* @__PURE__ */ React.createElement(
|
|
3200
|
-
|
|
3181
|
+
/* @__PURE__ */ React.createElement(PlasmicPopoverContext.Provider, { value: { isOpen: _isOpen } }, /* @__PURE__ */ React.createElement(
|
|
3182
|
+
PlasmicListBoxContext.Provider,
|
|
3201
3183
|
{
|
|
3202
|
-
value: {
|
|
3184
|
+
value: {
|
|
3185
|
+
idManager
|
|
3186
|
+
}
|
|
3203
3187
|
},
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
{
|
|
3207
|
-
value: {
|
|
3208
|
-
idManager
|
|
3209
|
-
}
|
|
3210
|
-
},
|
|
3211
|
-
children
|
|
3212
|
-
)
|
|
3213
|
-
)
|
|
3188
|
+
children
|
|
3189
|
+
))
|
|
3214
3190
|
);
|
|
3215
3191
|
}
|
|
3216
3192
|
function registerSelect(loader) {
|
|
@@ -4606,7 +4582,6 @@ function BaseTooltip(props) {
|
|
|
4606
4582
|
crossOffset,
|
|
4607
4583
|
shouldFlip,
|
|
4608
4584
|
arrowBoundaryOffset,
|
|
4609
|
-
className,
|
|
4610
4585
|
onOpenChange,
|
|
4611
4586
|
plasmicUpdateVariant
|
|
4612
4587
|
} = props;
|
|
@@ -4635,7 +4610,7 @@ function BaseTooltip(props) {
|
|
|
4635
4610
|
shouldFlip,
|
|
4636
4611
|
arrowBoundaryOffset,
|
|
4637
4612
|
defaultOpen,
|
|
4638
|
-
className:
|
|
4613
|
+
className: resetClassName,
|
|
4639
4614
|
onOpenChange,
|
|
4640
4615
|
placement
|
|
4641
4616
|
},
|
|
@@ -4662,7 +4637,7 @@ function registerTooltip(loader, overrides) {
|
|
|
4662
4637
|
importPath: "@plasmicpkgs/react-aria/skinny/registerTooltip",
|
|
4663
4638
|
importName: "BaseTooltip",
|
|
4664
4639
|
isAttachment: true,
|
|
4665
|
-
styleSections:
|
|
4640
|
+
styleSections: false,
|
|
4666
4641
|
variants,
|
|
4667
4642
|
props: {
|
|
4668
4643
|
children: {
|