@plasmicpkgs/react-aria 0.0.69 → 0.0.70
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 +17 -42
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +17 -42
- 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/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/dist/react-aria.js
CHANGED
|
@@ -2092,24 +2092,14 @@ const POPOVER_VARIANTS = [
|
|
|
2092
2092
|
];
|
|
2093
2093
|
const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(POPOVER_VARIANTS);
|
|
2094
2094
|
function BasePopover(props) {
|
|
2095
|
-
|
|
2096
|
-
const _a = props, {
|
|
2097
|
-
resetClassName,
|
|
2098
|
-
setControlContextData,
|
|
2099
|
-
plasmicUpdateVariant
|
|
2100
|
-
} = _a, restProps = __objRest$d(_a, [
|
|
2101
|
-
"resetClassName",
|
|
2102
|
-
"setControlContextData",
|
|
2103
|
-
"plasmicUpdateVariant"
|
|
2104
|
-
]);
|
|
2095
|
+
const _a = props, { resetClassName, plasmicUpdateVariant } = _a, restProps = __objRest$d(_a, ["resetClassName", "plasmicUpdateVariant"]);
|
|
2105
2096
|
const isStandalone = !React__default.default.useContext(reactAriaComponents.PopoverContext);
|
|
2106
2097
|
const context = React__default.default.useContext(PlasmicPopoverContext);
|
|
2107
2098
|
const triggerRef = React__default.default.useRef(null);
|
|
2108
2099
|
const isEditMode = !!host.usePlasmicCanvasContext();
|
|
2109
2100
|
const _b = utils.mergeProps(
|
|
2110
2101
|
{
|
|
2111
|
-
isOpen: context == null ? void 0 : context.isOpen
|
|
2112
|
-
shouldFlip: context == null ? void 0 : context.defaultShouldFlip
|
|
2102
|
+
isOpen: context == null ? void 0 : context.isOpen
|
|
2113
2103
|
},
|
|
2114
2104
|
/**
|
|
2115
2105
|
* isNonModal: Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies. *
|
|
@@ -2130,9 +2120,6 @@ function BasePopover(props) {
|
|
|
2130
2120
|
isOpen: true
|
|
2131
2121
|
} : null
|
|
2132
2122
|
), { children } = _b, mergedProps = __objRest$d(_b, ["children"]);
|
|
2133
|
-
setControlContextData == null ? void 0 : setControlContextData({
|
|
2134
|
-
defaultShouldFlip: (_c = context == null ? void 0 : context.defaultShouldFlip) != null ? _c : true
|
|
2135
|
-
});
|
|
2136
2123
|
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isStandalone && /* @__PURE__ */ React__default.default.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Popover, __spreadValues$f({}, mergedProps), ({ placement }) => withObservedValues$9(
|
|
2137
2124
|
children,
|
|
2138
2125
|
{
|
|
@@ -2217,7 +2204,7 @@ function registerPopover(loader, overrides) {
|
|
|
2217
2204
|
shouldFlip: {
|
|
2218
2205
|
type: "boolean",
|
|
2219
2206
|
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.",
|
|
2220
|
-
defaultValueHint:
|
|
2207
|
+
defaultValueHint: true
|
|
2221
2208
|
},
|
|
2222
2209
|
placement: {
|
|
2223
2210
|
type: "choice",
|
|
@@ -2302,21 +2289,15 @@ function BaseComboBox(props) {
|
|
|
2302
2289
|
});
|
|
2303
2290
|
});
|
|
2304
2291
|
}, []);
|
|
2305
|
-
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React__default.default.createElement(
|
|
2306
|
-
|
|
2292
|
+
return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React__default.default.createElement(PlasmicPopoverContext.Provider, { value: { isOpen } }, /* @__PURE__ */ React__default.default.createElement(
|
|
2293
|
+
PlasmicListBoxContext.Provider,
|
|
2307
2294
|
{
|
|
2308
|
-
value: {
|
|
2295
|
+
value: {
|
|
2296
|
+
idManager
|
|
2297
|
+
}
|
|
2309
2298
|
},
|
|
2310
|
-
/* @__PURE__ */ React__default.default.createElement(
|
|
2311
|
-
|
|
2312
|
-
{
|
|
2313
|
-
value: {
|
|
2314
|
-
idManager
|
|
2315
|
-
}
|
|
2316
|
-
},
|
|
2317
|
-
/* @__PURE__ */ React__default.default.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React__default.default.createElement(ComboboxAutoOpen, __spreadValues$e({}, props)), children)
|
|
2318
|
-
)
|
|
2319
|
-
));
|
|
2299
|
+
/* @__PURE__ */ React__default.default.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React__default.default.createElement(ComboboxAutoOpen, __spreadValues$e({}, props)), children)
|
|
2300
|
+
)));
|
|
2320
2301
|
}
|
|
2321
2302
|
function registerComboBox(loader) {
|
|
2322
2303
|
registerComponentHelper(loader, BaseComboBox, {
|
|
@@ -3204,21 +3185,15 @@ function BaseSelect(props) {
|
|
|
3204
3185
|
"aria-label": ariaLabel,
|
|
3205
3186
|
isOpen: _isOpen
|
|
3206
3187
|
}, extractPlasmicDataProps(props)),
|
|
3207
|
-
/* @__PURE__ */ React__default.default.createElement(
|
|
3208
|
-
|
|
3188
|
+
/* @__PURE__ */ React__default.default.createElement(PlasmicPopoverContext.Provider, { value: { isOpen: _isOpen } }, /* @__PURE__ */ React__default.default.createElement(
|
|
3189
|
+
PlasmicListBoxContext.Provider,
|
|
3209
3190
|
{
|
|
3210
|
-
value: {
|
|
3191
|
+
value: {
|
|
3192
|
+
idManager
|
|
3193
|
+
}
|
|
3211
3194
|
},
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
{
|
|
3215
|
-
value: {
|
|
3216
|
-
idManager
|
|
3217
|
-
}
|
|
3218
|
-
},
|
|
3219
|
-
children
|
|
3220
|
-
)
|
|
3221
|
-
)
|
|
3195
|
+
children
|
|
3196
|
+
))
|
|
3222
3197
|
);
|
|
3223
3198
|
}
|
|
3224
3199
|
function registerSelect(loader) {
|