@plasmicpkgs/react-aria 0.0.100 → 0.0.102
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 +14 -21
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +14 -21
- package/dist/react-aria.js.map +1 -1
- package/dist/registerOverlayArrow.d.ts +1 -1
- package/dist/registerSelect.d.ts +1 -1
- package/dist/registerTooltip.d.ts +0 -1
- package/package.json +2 -2
- package/skinny/registerOverlayArrow.cjs.js +8 -16
- package/skinny/registerOverlayArrow.cjs.js.map +1 -1
- package/skinny/registerOverlayArrow.d.ts +1 -1
- package/skinny/registerOverlayArrow.esm.js +8 -16
- package/skinny/registerOverlayArrow.esm.js.map +1 -1
- package/skinny/registerSelect.cjs.js +7 -6
- package/skinny/registerSelect.cjs.js.map +1 -1
- package/skinny/registerSelect.d.ts +1 -1
- package/skinny/registerSelect.esm.js +7 -6
- package/skinny/registerSelect.esm.js.map +1 -1
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.d.ts +0 -1
- package/skinny/registerTooltip.esm.js.map +1 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -3009,28 +3009,20 @@ const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickA
|
|
|
3009
3009
|
);
|
|
3010
3010
|
function BaseOverlayArrow({
|
|
3011
3011
|
children,
|
|
3012
|
-
plasmicUpdateVariant
|
|
3013
|
-
className
|
|
3012
|
+
plasmicUpdateVariant
|
|
3014
3013
|
}) {
|
|
3015
3014
|
const popoverContext = React.useContext(PopoverContext);
|
|
3016
3015
|
const tooltipContext = React.useContext(TooltipContext);
|
|
3017
3016
|
const isStandalone = !popoverContext && !tooltipContext;
|
|
3018
|
-
const overlayArrow = /* @__PURE__ */ React.createElement(
|
|
3019
|
-
|
|
3017
|
+
const overlayArrow = /* @__PURE__ */ React.createElement(OverlayArrow, { style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES) }, ({ placement }) => withObservedValues$9(
|
|
3018
|
+
children,
|
|
3020
3019
|
{
|
|
3021
|
-
|
|
3022
|
-
|
|
3020
|
+
placementTop: placement === "top",
|
|
3021
|
+
placementLeft: placement === "left",
|
|
3022
|
+
placementRight: placement === "right"
|
|
3023
3023
|
},
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
{
|
|
3027
|
-
placementTop: placement === "top",
|
|
3028
|
-
placementLeft: placement === "left",
|
|
3029
|
-
placementRight: placement === "right"
|
|
3030
|
-
},
|
|
3031
|
-
plasmicUpdateVariant
|
|
3032
|
-
)
|
|
3033
|
-
);
|
|
3024
|
+
plasmicUpdateVariant
|
|
3025
|
+
));
|
|
3034
3026
|
if (isStandalone) {
|
|
3035
3027
|
return /* @__PURE__ */ React.createElement("div", { style: { position: "relative" } }, overlayArrow);
|
|
3036
3028
|
}
|
|
@@ -3463,8 +3455,7 @@ function SelectAutoOpen(props) {
|
|
|
3463
3455
|
return null;
|
|
3464
3456
|
}
|
|
3465
3457
|
const BaseSelectValue = (props) => {
|
|
3466
|
-
const { children
|
|
3467
|
-
const placeholder = customize ? children : "Select an item";
|
|
3458
|
+
const { children: placeholder, className } = props;
|
|
3468
3459
|
return /* @__PURE__ */ React.createElement(SelectValue, { className, style: COMMON_STYLES }, ({ isPlaceholder, selectedText }) => /* @__PURE__ */ React.createElement(React.Fragment, null, isPlaceholder ? placeholder : selectedText));
|
|
3469
3460
|
};
|
|
3470
3461
|
const SELECT_NAME = makeComponentName("select");
|
|
@@ -3544,11 +3535,14 @@ function registerSelect(loader) {
|
|
|
3544
3535
|
importName: "BaseSelectValue",
|
|
3545
3536
|
parentComponentName: SELECT_NAME,
|
|
3546
3537
|
props: {
|
|
3538
|
+
/** @deprecated use children (Placeholder) directly */
|
|
3547
3539
|
customize: {
|
|
3548
3540
|
type: "boolean",
|
|
3549
3541
|
displayName: "Customize placeholder",
|
|
3550
3542
|
defaultValue: true,
|
|
3551
|
-
description: "Customize the placeholder text and styles"
|
|
3543
|
+
description: "Customize the placeholder text and styles",
|
|
3544
|
+
/** Obsolete, but retained (permanently hidden) for backward compatibility. */
|
|
3545
|
+
hidden: () => true
|
|
3552
3546
|
},
|
|
3553
3547
|
children: {
|
|
3554
3548
|
type: "slot",
|
|
@@ -3558,8 +3552,7 @@ function registerSelect(loader) {
|
|
|
3558
3552
|
type: "text",
|
|
3559
3553
|
value: "Select an item"
|
|
3560
3554
|
}
|
|
3561
|
-
]
|
|
3562
|
-
hidden: (props) => !props.customize
|
|
3555
|
+
]
|
|
3563
3556
|
}
|
|
3564
3557
|
},
|
|
3565
3558
|
trapsFocus: true
|