@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.
@@ -3017,28 +3017,20 @@ const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickA
3017
3017
  );
3018
3018
  function BaseOverlayArrow({
3019
3019
  children,
3020
- plasmicUpdateVariant,
3021
- className
3020
+ plasmicUpdateVariant
3022
3021
  }) {
3023
3022
  const popoverContext = React__default.default.useContext(reactAriaComponents.PopoverContext);
3024
3023
  const tooltipContext = React__default.default.useContext(reactAriaComponents.TooltipContext);
3025
3024
  const isStandalone = !popoverContext && !tooltipContext;
3026
- const overlayArrow = /* @__PURE__ */ React__default.default.createElement(
3027
- reactAriaComponents.OverlayArrow,
3025
+ const overlayArrow = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.OverlayArrow, { style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES) }, ({ placement }) => withObservedValues$9(
3026
+ children,
3028
3027
  {
3029
- style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES),
3030
- className
3028
+ placementTop: placement === "top",
3029
+ placementLeft: placement === "left",
3030
+ placementRight: placement === "right"
3031
3031
  },
3032
- ({ placement }) => withObservedValues$9(
3033
- children,
3034
- {
3035
- placementTop: placement === "top",
3036
- placementLeft: placement === "left",
3037
- placementRight: placement === "right"
3038
- },
3039
- plasmicUpdateVariant
3040
- )
3041
- );
3032
+ plasmicUpdateVariant
3033
+ ));
3042
3034
  if (isStandalone) {
3043
3035
  return /* @__PURE__ */ React__default.default.createElement("div", { style: { position: "relative" } }, overlayArrow);
3044
3036
  }
@@ -3471,8 +3463,7 @@ function SelectAutoOpen(props) {
3471
3463
  return null;
3472
3464
  }
3473
3465
  const BaseSelectValue = (props) => {
3474
- const { children, customize, className } = props;
3475
- const placeholder = customize ? children : "Select an item";
3466
+ const { children: placeholder, className } = props;
3476
3467
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SelectValue, { className, style: COMMON_STYLES }, ({ isPlaceholder, selectedText }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isPlaceholder ? placeholder : selectedText));
3477
3468
  };
3478
3469
  const SELECT_NAME = makeComponentName("select");
@@ -3552,11 +3543,14 @@ function registerSelect(loader) {
3552
3543
  importName: "BaseSelectValue",
3553
3544
  parentComponentName: SELECT_NAME,
3554
3545
  props: {
3546
+ /** @deprecated use children (Placeholder) directly */
3555
3547
  customize: {
3556
3548
  type: "boolean",
3557
3549
  displayName: "Customize placeholder",
3558
3550
  defaultValue: true,
3559
- description: "Customize the placeholder text and styles"
3551
+ description: "Customize the placeholder text and styles",
3552
+ /** Obsolete, but retained (permanently hidden) for backward compatibility. */
3553
+ hidden: () => true
3560
3554
  },
3561
3555
  children: {
3562
3556
  type: "slot",
@@ -3566,8 +3560,7 @@ function registerSelect(loader) {
3566
3560
  type: "text",
3567
3561
  value: "Select an item"
3568
3562
  }
3569
- ],
3570
- hidden: (props) => !props.customize
3563
+ ]
3571
3564
  }
3572
3565
  },
3573
3566
  trapsFocus: true