@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.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, {
|
|
@@ -2784,6 +2765,7 @@ function registerDialogTrigger(loader, overrides) {
|
|
|
2784
2765
|
displayName: "Aria Dialog Trigger",
|
|
2785
2766
|
importPath: "@plasmicpkgs/react-aria/skinny/registerDialogTrigger",
|
|
2786
2767
|
importName: "BaseDialogTrigger",
|
|
2768
|
+
styleSections: false,
|
|
2787
2769
|
isAttachment: true,
|
|
2788
2770
|
props: {
|
|
2789
2771
|
trigger: {
|
|
@@ -3204,21 +3186,15 @@ function BaseSelect(props) {
|
|
|
3204
3186
|
"aria-label": ariaLabel,
|
|
3205
3187
|
isOpen: _isOpen
|
|
3206
3188
|
}, extractPlasmicDataProps(props)),
|
|
3207
|
-
/* @__PURE__ */ React__default.default.createElement(
|
|
3208
|
-
|
|
3189
|
+
/* @__PURE__ */ React__default.default.createElement(PlasmicPopoverContext.Provider, { value: { isOpen: _isOpen } }, /* @__PURE__ */ React__default.default.createElement(
|
|
3190
|
+
PlasmicListBoxContext.Provider,
|
|
3209
3191
|
{
|
|
3210
|
-
value: {
|
|
3192
|
+
value: {
|
|
3193
|
+
idManager
|
|
3194
|
+
}
|
|
3211
3195
|
},
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
{
|
|
3215
|
-
value: {
|
|
3216
|
-
idManager
|
|
3217
|
-
}
|
|
3218
|
-
},
|
|
3219
|
-
children
|
|
3220
|
-
)
|
|
3221
|
-
)
|
|
3196
|
+
children
|
|
3197
|
+
))
|
|
3222
3198
|
);
|
|
3223
3199
|
}
|
|
3224
3200
|
function registerSelect(loader) {
|
|
@@ -4614,7 +4590,6 @@ function BaseTooltip(props) {
|
|
|
4614
4590
|
crossOffset,
|
|
4615
4591
|
shouldFlip,
|
|
4616
4592
|
arrowBoundaryOffset,
|
|
4617
|
-
className,
|
|
4618
4593
|
onOpenChange,
|
|
4619
4594
|
plasmicUpdateVariant
|
|
4620
4595
|
} = props;
|
|
@@ -4643,7 +4618,7 @@ function BaseTooltip(props) {
|
|
|
4643
4618
|
shouldFlip,
|
|
4644
4619
|
arrowBoundaryOffset,
|
|
4645
4620
|
defaultOpen,
|
|
4646
|
-
className:
|
|
4621
|
+
className: resetClassName,
|
|
4647
4622
|
onOpenChange,
|
|
4648
4623
|
placement
|
|
4649
4624
|
},
|
|
@@ -4670,7 +4645,7 @@ function registerTooltip(loader, overrides) {
|
|
|
4670
4645
|
importPath: "@plasmicpkgs/react-aria/skinny/registerTooltip",
|
|
4671
4646
|
importName: "BaseTooltip",
|
|
4672
4647
|
isAttachment: true,
|
|
4673
|
-
styleSections:
|
|
4648
|
+
styleSections: false,
|
|
4674
4649
|
variants,
|
|
4675
4650
|
props: {
|
|
4676
4651
|
children: {
|