@plasmicpkgs/react-aria 0.0.100 → 0.0.101

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.
@@ -3463,8 +3463,7 @@ function SelectAutoOpen(props) {
3463
3463
  return null;
3464
3464
  }
3465
3465
  const BaseSelectValue = (props) => {
3466
- const { children, customize, className } = props;
3467
- const placeholder = customize ? children : "Select an item";
3466
+ const { children: placeholder, className } = props;
3468
3467
  return /* @__PURE__ */ React.createElement(SelectValue, { className, style: COMMON_STYLES }, ({ isPlaceholder, selectedText }) => /* @__PURE__ */ React.createElement(React.Fragment, null, isPlaceholder ? placeholder : selectedText));
3469
3468
  };
3470
3469
  const SELECT_NAME = makeComponentName("select");
@@ -3544,11 +3543,14 @@ function registerSelect(loader) {
3544
3543
  importName: "BaseSelectValue",
3545
3544
  parentComponentName: SELECT_NAME,
3546
3545
  props: {
3546
+ /** @deprecated use children (Placeholder) directly */
3547
3547
  customize: {
3548
3548
  type: "boolean",
3549
3549
  displayName: "Customize placeholder",
3550
3550
  defaultValue: true,
3551
- 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
3552
3554
  },
3553
3555
  children: {
3554
3556
  type: "slot",
@@ -3558,8 +3560,7 @@ function registerSelect(loader) {
3558
3560
  type: "text",
3559
3561
  value: "Select an item"
3560
3562
  }
3561
- ],
3562
- hidden: (props) => !props.customize
3563
+ ]
3563
3564
  }
3564
3565
  },
3565
3566
  trapsFocus: true