@plasmicpkgs/react-aria 0.0.128 → 0.0.130

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.
Files changed (110) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/react-aria.esm.js +86 -114
  3. package/dist/react-aria.esm.js.map +1 -1
  4. package/dist/react-aria.js +86 -114
  5. package/dist/react-aria.js.map +1 -1
  6. package/dist/registerComboBox.d.ts +2 -2
  7. package/dist/registerDialogTrigger.d.ts +2 -2
  8. package/dist/registerModal.d.ts +2 -2
  9. package/dist/registerPopover.d.ts +2 -5
  10. package/dist/registerSelect.d.ts +2 -2
  11. package/dist/registerTooltip.d.ts +2 -5
  12. package/dist/utils.d.ts +5 -4
  13. package/package.json +2 -2
  14. package/skinny/{OptionsItemIdManager-34faf3b6.cjs.js → OptionsItemIdManager-3dae926c.cjs.js} +2 -2
  15. package/skinny/{OptionsItemIdManager-34faf3b6.cjs.js.map → OptionsItemIdManager-3dae926c.cjs.js.map} +1 -1
  16. package/skinny/{OptionsItemIdManager-165c0c68.esm.js → OptionsItemIdManager-87cb9fe8.esm.js} +2 -2
  17. package/skinny/{OptionsItemIdManager-165c0c68.esm.js.map → OptionsItemIdManager-87cb9fe8.esm.js.map} +1 -1
  18. package/skinny/{common-e24b7213.cjs.js → common-97d00c54.cjs.js} +2 -2
  19. package/skinny/{common-e24b7213.cjs.js.map → common-97d00c54.cjs.js.map} +1 -1
  20. package/skinny/{common-59834505.esm.js → common-a6882f23.esm.js} +2 -2
  21. package/skinny/{common-59834505.esm.js.map → common-a6882f23.esm.js.map} +1 -1
  22. package/skinny/registerButton.cjs.js +2 -2
  23. package/skinny/registerButton.esm.js +2 -2
  24. package/skinny/registerCheckbox.cjs.js +3 -3
  25. package/skinny/registerCheckbox.esm.js +3 -3
  26. package/skinny/registerCheckboxGroup.cjs.js +3 -3
  27. package/skinny/registerCheckboxGroup.esm.js +3 -3
  28. package/skinny/registerComboBox.cjs.js +15 -5
  29. package/skinny/registerComboBox.cjs.js.map +1 -1
  30. package/skinny/registerComboBox.d.ts +2 -2
  31. package/skinny/registerComboBox.esm.js +15 -5
  32. package/skinny/registerComboBox.esm.js.map +1 -1
  33. package/skinny/registerDescription.cjs.js +2 -2
  34. package/skinny/registerDescription.esm.js +2 -2
  35. package/skinny/registerDialog.cjs.js +2 -2
  36. package/skinny/registerDialog.esm.js +2 -2
  37. package/skinny/registerDialogTrigger.cjs.js +6 -18
  38. package/skinny/registerDialogTrigger.cjs.js.map +1 -1
  39. package/skinny/registerDialogTrigger.d.ts +2 -2
  40. package/skinny/registerDialogTrigger.esm.js +6 -18
  41. package/skinny/registerDialogTrigger.esm.js.map +1 -1
  42. package/skinny/registerFieldError.cjs.js +1 -1
  43. package/skinny/registerFieldError.esm.js +1 -1
  44. package/skinny/registerForm.cjs.js +1 -1
  45. package/skinny/registerForm.esm.js +1 -1
  46. package/skinny/registerHeading.cjs.js +2 -2
  47. package/skinny/registerHeading.esm.js +2 -2
  48. package/skinny/registerInput.cjs.js +2 -2
  49. package/skinny/registerInput.esm.js +2 -2
  50. package/skinny/registerLabel.cjs.js +2 -2
  51. package/skinny/registerLabel.esm.js +2 -2
  52. package/skinny/{registerListBox-a4d16b2c.esm.js → registerListBox-7bc52037.esm.js} +4 -4
  53. package/skinny/{registerListBox-a4d16b2c.esm.js.map → registerListBox-7bc52037.esm.js.map} +1 -1
  54. package/skinny/{registerListBox-193a68f7.cjs.js → registerListBox-fefaf99a.cjs.js} +4 -4
  55. package/skinny/{registerListBox-193a68f7.cjs.js.map → registerListBox-fefaf99a.cjs.js.map} +1 -1
  56. package/skinny/registerListBox.cjs.js +4 -4
  57. package/skinny/registerListBox.esm.js +4 -4
  58. package/skinny/registerListBoxItem.cjs.js +3 -3
  59. package/skinny/registerListBoxItem.esm.js +3 -3
  60. package/skinny/registerModal.cjs.js +5 -7
  61. package/skinny/registerModal.cjs.js.map +1 -1
  62. package/skinny/registerModal.d.ts +2 -2
  63. package/skinny/registerModal.esm.js +5 -7
  64. package/skinny/registerModal.esm.js.map +1 -1
  65. package/skinny/registerOverlayArrow.cjs.js +2 -2
  66. package/skinny/registerOverlayArrow.esm.js +2 -2
  67. package/skinny/registerPopover.cjs.js +3 -23
  68. package/skinny/registerPopover.cjs.js.map +1 -1
  69. package/skinny/registerPopover.d.ts +2 -5
  70. package/skinny/registerPopover.esm.js +3 -23
  71. package/skinny/registerPopover.esm.js.map +1 -1
  72. package/skinny/registerRadio.cjs.js +3 -3
  73. package/skinny/registerRadio.esm.js +3 -3
  74. package/skinny/registerRadioGroup.cjs.js +3 -3
  75. package/skinny/registerRadioGroup.esm.js +3 -3
  76. package/skinny/registerSection.cjs.js +4 -4
  77. package/skinny/registerSection.esm.js +4 -4
  78. package/skinny/registerSelect.cjs.js +13 -5
  79. package/skinny/registerSelect.cjs.js.map +1 -1
  80. package/skinny/registerSelect.d.ts +2 -2
  81. package/skinny/registerSelect.esm.js +13 -5
  82. package/skinny/registerSelect.esm.js.map +1 -1
  83. package/skinny/registerSlider.cjs.js +2 -2
  84. package/skinny/registerSlider.esm.js +2 -2
  85. package/skinny/registerSliderOutput.cjs.js +2 -2
  86. package/skinny/registerSliderOutput.esm.js +2 -2
  87. package/skinny/registerSliderThumb.cjs.js +2 -2
  88. package/skinny/registerSliderThumb.esm.js +2 -2
  89. package/skinny/registerSliderTrack.cjs.js +2 -2
  90. package/skinny/registerSliderTrack.esm.js +2 -2
  91. package/skinny/registerSwitch.cjs.js +2 -2
  92. package/skinny/registerSwitch.esm.js +2 -2
  93. package/skinny/registerText.cjs.js +2 -2
  94. package/skinny/registerText.esm.js +2 -2
  95. package/skinny/registerTextArea.cjs.js +2 -2
  96. package/skinny/registerTextArea.esm.js +2 -2
  97. package/skinny/registerTextField.cjs.js +2 -2
  98. package/skinny/registerTextField.esm.js +2 -2
  99. package/skinny/registerTooltip.cjs.js +5 -25
  100. package/skinny/registerTooltip.cjs.js.map +1 -1
  101. package/skinny/registerTooltip.d.ts +2 -5
  102. package/skinny/registerTooltip.esm.js +5 -25
  103. package/skinny/registerTooltip.esm.js.map +1 -1
  104. package/skinny/{utils-0ef9e9d1.cjs.js → utils-85ca5354.cjs.js} +9 -3
  105. package/skinny/utils-85ca5354.cjs.js.map +1 -0
  106. package/skinny/{utils-81ea3961.esm.js → utils-edf40001.esm.js} +9 -3
  107. package/skinny/utils-edf40001.esm.js.map +1 -0
  108. package/skinny/utils.d.ts +5 -4
  109. package/skinny/utils-0ef9e9d1.cjs.js.map +0 -1
  110. package/skinny/utils-81ea3961.esm.js.map +0 -1
@@ -51,9 +51,10 @@ const useIsomorphicLayoutEffect = isBrowser ? React__default.default.useLayoutEf
51
51
  function useIsOpen({
52
52
  triggerSlotName,
53
53
  isOpen,
54
- __plasmic_selection_prop__
54
+ props
55
55
  }) {
56
56
  var _a, _b;
57
+ const { __plasmic_selection_prop__, plasmicNotifyAutoOpenedContent } = props;
57
58
  const canvasContext = host.usePlasmicCanvasContext();
58
59
  const { isSelected, selectedSlotName } = (_b = (_a = host.usePlasmicCanvasComponentInfo) == null ? void 0 : _a({ __plasmic_selection_prop__ })) != null ? _b : {};
59
60
  if (!canvasContext) {
@@ -61,6 +62,9 @@ function useIsOpen({
61
62
  }
62
63
  const isTriggerSlotSelected = isDefined(selectedSlotName) && selectedSlotName === triggerSlotName;
63
64
  const isAutoOpenedBySelection = isSelected && !isTriggerSlotSelected;
65
+ if (isAutoOpenedBySelection && !isOpen) {
66
+ plasmicNotifyAutoOpenedContent == null ? void 0 : plasmicNotifyAutoOpenedContent();
67
+ }
64
68
  return Boolean(isAutoOpenedBySelection || isOpen);
65
69
  }
66
70
  function useAutoOpen({
@@ -71,16 +75,18 @@ function useAutoOpen({
71
75
  var _a, _b, _c;
72
76
  const inPlasmicCanvas = !!host.usePlasmicCanvasContext();
73
77
  const isSelected = (_c = (_b = (_a = host.usePlasmicCanvasComponentInfo) == null ? void 0 : _a(props)) == null ? void 0 : _b.isSelected) != null ? _c : false;
78
+ const { plasmicNotifyAutoOpenedContent } = props;
74
79
  React.useEffect(() => {
75
80
  if (!inPlasmicCanvas) {
76
81
  return;
77
82
  }
78
83
  if (isSelected) {
79
84
  open == null ? void 0 : open();
85
+ plasmicNotifyAutoOpenedContent == null ? void 0 : plasmicNotifyAutoOpenedContent();
80
86
  } else {
81
87
  close == null ? void 0 : close();
82
88
  }
83
- }, [isSelected, inPlasmicCanvas]);
89
+ }, [isSelected, inPlasmicCanvas, plasmicNotifyAutoOpenedContent]);
84
90
  }
85
91
  function registerComponentHelper(loader, component, meta, overrides) {
86
92
  if (overrides) {
@@ -696,7 +702,7 @@ const BUTTON_VARIANTS = [
696
702
  "focusVisible",
697
703
  "disabled"
698
704
  ];
699
- const { variants: variants$h, withObservedValues: withObservedValues$e } = pickAriaComponentVariants(BUTTON_VARIANTS);
705
+ const { variants: variants$f, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(BUTTON_VARIANTS);
700
706
  const BaseButton = React__default.default.forwardRef(function BaseButtonInner(props, ref) {
701
707
  const { href } = props;
702
708
  if (href) {
@@ -715,7 +721,7 @@ const BaseButton = React__default.default.forwardRef(function BaseButtonInner(pr
715
721
  style: COMMON_STYLES,
716
722
  ref
717
723
  });
718
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$e(
724
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$c(
719
725
  children,
720
726
  {
721
727
  hovered: isHovered,
@@ -752,7 +758,7 @@ function LinkButton({
752
758
  "data-focus-visible": isFocusVisible || void 0,
753
759
  "data-disabled": props.isDisabled || void 0
754
760
  }),
755
- withObservedValues$e(
761
+ withObservedValues$c(
756
762
  children,
757
763
  {
758
764
  hovered: isHovered,
@@ -775,7 +781,7 @@ function registerButton(loader, overrides) {
775
781
  displayName: "Aria Button",
776
782
  importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
777
783
  importName: "BaseButton",
778
- variants: variants$h,
784
+ variants: variants$f,
779
785
  defaultStyles: {
780
786
  // Ensure consistent design across rendered elements (button, anchor tag).
781
787
  backgroundColor: "#EFEFEF",
@@ -998,7 +1004,7 @@ const CHECKBOX_VARIANTS = [
998
1004
  "selected",
999
1005
  "readonly"
1000
1006
  ];
1001
- const { variants: variants$g, withObservedValues: withObservedValues$d } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
1007
+ const { variants: variants$e, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
1002
1008
  function BaseCheckbox(props) {
1003
1009
  const _a = props, {
1004
1010
  children,
@@ -1036,7 +1042,7 @@ function BaseCheckbox(props) {
1036
1042
  isIndeterminate,
1037
1043
  isSelected,
1038
1044
  isReadOnly
1039
- }) => withObservedValues$d(
1045
+ }) => withObservedValues$b(
1040
1046
  children,
1041
1047
  {
1042
1048
  hovered: isHovered,
@@ -1108,7 +1114,7 @@ function registerCheckbox(loader, overrides) {
1108
1114
  displayName: "Aria Checkbox",
1109
1115
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
1110
1116
  importName: "BaseCheckbox",
1111
- variants: variants$g,
1117
+ variants: variants$e,
1112
1118
  props: __spreadProps$l(__spreadValues$p({}, getCommonProps("checkbox", [
1113
1119
  "name",
1114
1120
  "isDisabled",
@@ -1396,7 +1402,7 @@ var __objRest$j = (source, exclude) => {
1396
1402
  return target;
1397
1403
  };
1398
1404
  const CHECKBOX_GROUP_VARIANTS = ["disabled", "readonly"];
1399
- const { variants: variants$f, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(
1405
+ const { variants: variants$d, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(
1400
1406
  CHECKBOX_GROUP_VARIANTS
1401
1407
  );
1402
1408
  function BaseCheckboxGroup(props) {
@@ -1412,7 +1418,7 @@ function BaseCheckboxGroup(props) {
1412
1418
  const idManager = useIdManager(updateIds);
1413
1419
  return (
1414
1420
  // PlasmicCheckboxGroupContext is used by BaseCheckbox
1415
- /* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$h(__spreadValues$l({}, rest), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadProps$h(__spreadValues$l({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$c(
1421
+ /* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$h(__spreadValues$l({}, rest), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadProps$h(__spreadValues$l({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$a(
1416
1422
  children,
1417
1423
  {
1418
1424
  disabled: isDisabled,
@@ -1432,7 +1438,7 @@ function registerCheckboxGroup(loader, overrides) {
1432
1438
  displayName: "Aria Checkbox Group",
1433
1439
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
1434
1440
  importName: "BaseCheckboxGroup",
1435
- variants: variants$f,
1441
+ variants: variants$d,
1436
1442
  props: __spreadProps$h(__spreadValues$l({}, getCommonProps("checkbox group", [
1437
1443
  "name",
1438
1444
  "isDisabled",
@@ -1585,7 +1591,7 @@ const INPUT_VARIANTS = [
1585
1591
  "hovered",
1586
1592
  "disabled"
1587
1593
  ];
1588
- const { variants: variants$e } = pickAriaComponentVariants(INPUT_VARIANTS);
1594
+ const { variants: variants$c } = pickAriaComponentVariants(INPUT_VARIANTS);
1589
1595
  const inputHelpers$1 = {
1590
1596
  states: {
1591
1597
  value: {
@@ -1670,7 +1676,7 @@ function registerInput(loader, overrides) {
1670
1676
  displayName: "Aria Input",
1671
1677
  importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
1672
1678
  importName: "BaseInput",
1673
- variants: variants$e,
1679
+ variants: variants$c,
1674
1680
  defaultStyles: {
1675
1681
  width: "300px",
1676
1682
  borderWidth: "1px",
@@ -1765,7 +1771,7 @@ const LIST_BOX_ITEM_VARIANTS = [
1765
1771
  "selected",
1766
1772
  "disabled"
1767
1773
  ];
1768
- const { variants: variants$d, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(
1774
+ const { variants: variants$b, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
1769
1775
  LIST_BOX_ITEM_VARIANTS
1770
1776
  );
1771
1777
  function BaseListBoxItem(props) {
@@ -1794,7 +1800,7 @@ function BaseListBoxItem(props) {
1794
1800
  isFocusVisible,
1795
1801
  isSelected,
1796
1802
  isDisabled
1797
- }) => withObservedValues$b(
1803
+ }) => withObservedValues$9(
1798
1804
  children,
1799
1805
  {
1800
1806
  hovered: isHovered,
@@ -1858,7 +1864,7 @@ function registerListBoxItem(loader, overrides) {
1858
1864
  displayName: "Aria ListBoxItem",
1859
1865
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
1860
1866
  importName: "BaseListBoxItem",
1861
- variants: variants$d,
1867
+ variants: variants$b,
1862
1868
  props: {
1863
1869
  id: {
1864
1870
  type: "string",
@@ -1999,7 +2005,7 @@ var __objRest$f = (source, exclude) => {
1999
2005
  return target;
2000
2006
  };
2001
2007
  const LISTBOX_VARIANTS = ["focused", "focusVisible"];
2002
- const { variants: variants$c } = pickAriaComponentVariants(LISTBOX_VARIANTS);
2008
+ const { variants: variants$a } = pickAriaComponentVariants(LISTBOX_VARIANTS);
2003
2009
  const listboxHelpers = {
2004
2010
  states: {
2005
2011
  selectedValue: {
@@ -2136,7 +2142,7 @@ function registerListBox(loader, overrides) {
2136
2142
  displayName: "Aria ListBox",
2137
2143
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBox",
2138
2144
  importName: "BaseListBox",
2139
- variants: variants$c,
2145
+ variants: variants$a,
2140
2146
  defaultStyles: {
2141
2147
  width: "250px",
2142
2148
  borderWidth: "1px",
@@ -2268,22 +2274,13 @@ var __objRest$e = (source, exclude) => {
2268
2274
  }
2269
2275
  return target;
2270
2276
  };
2271
- const POPOVER_VARIANTS = [
2272
- "placementTop",
2273
- "placementBottom",
2274
- "placementLeft",
2275
- "placementRight"
2276
- ];
2277
- const { variants: variants$b, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(POPOVER_VARIANTS);
2278
2277
  function BasePopover(props) {
2279
2278
  const _a = props, {
2280
2279
  resetClassName,
2281
- plasmicUpdateVariant,
2282
2280
  setControlContextData,
2283
2281
  matchTriggerWidth
2284
2282
  } = _a, restProps = __objRest$e(_a, [
2285
2283
  "resetClassName",
2286
- "plasmicUpdateVariant",
2287
2284
  "setControlContextData",
2288
2285
  "matchTriggerWidth"
2289
2286
  ]);
@@ -2319,16 +2316,7 @@ function BasePopover(props) {
2319
2316
  __spreadValues$g({
2320
2317
  style: __spreadValues$g(__spreadValues$g({}, matchTriggerWidthProp ? { width: `var(--trigger-width)` } : {}), COMMON_STYLES)
2321
2318
  }, mergedProps),
2322
- ({ placement }) => withObservedValues$a(
2323
- children,
2324
- {
2325
- placementTop: placement === "top",
2326
- placementBottom: placement === "bottom",
2327
- placementLeft: placement === "left",
2328
- placementRight: placement === "right"
2329
- },
2330
- plasmicUpdateVariant
2331
- )
2319
+ children
2332
2320
  ));
2333
2321
  }
2334
2322
  const POPOVER_COMPONENT_NAME = makeComponentName("popover");
@@ -2341,7 +2329,6 @@ function registerPopover(loader, overrides) {
2341
2329
  displayName: "Aria Popover",
2342
2330
  importPath: "@plasmicpkgs/react-aria/skinny/registerPopover",
2343
2331
  importName: "BasePopover",
2344
- variants: variants$b,
2345
2332
  defaultStyles: {
2346
2333
  borderWidth: "1px",
2347
2334
  borderStyle: "solid",
@@ -2453,12 +2440,16 @@ function BaseComboBox(props) {
2453
2440
  children,
2454
2441
  setControlContextData,
2455
2442
  plasmicUpdateVariant,
2443
+ __plasmic_selection_prop__,
2444
+ plasmicNotifyAutoOpenedContent,
2456
2445
  className,
2457
2446
  isOpen: _isOpen
2458
2447
  } = _a, rest = __objRest$d(_a, [
2459
2448
  "children",
2460
2449
  "setControlContextData",
2461
2450
  "plasmicUpdateVariant",
2451
+ "__plasmic_selection_prop__",
2452
+ "plasmicNotifyAutoOpenedContent",
2462
2453
  "className",
2463
2454
  "isOpen"
2464
2455
  ]);
@@ -2487,7 +2478,13 @@ function BaseComboBox(props) {
2487
2478
  idManager
2488
2479
  }
2489
2480
  },
2490
- /* @__PURE__ */ React__default.default.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React__default.default.createElement(ComboboxAutoOpen, __spreadValues$f({}, props)), children)
2481
+ /* @__PURE__ */ React__default.default.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React__default.default.createElement(
2482
+ ComboboxAutoOpen,
2483
+ {
2484
+ __plasmic_selection_prop__,
2485
+ plasmicNotifyAutoOpenedContent
2486
+ }
2487
+ ), children)
2491
2488
  )));
2492
2489
  }
2493
2490
  function registerComboBox(loader) {
@@ -2698,8 +2695,7 @@ const BaseModal = React.forwardRef(
2698
2695
  resetClassName,
2699
2696
  setControlContextData,
2700
2697
  isDismissable,
2701
- defaultOpen,
2702
- __plasmic_selection_prop__
2698
+ defaultOpen
2703
2699
  } = _a, rest = __objRest$c(_a, [
2704
2700
  "children",
2705
2701
  "modalOverlayClass",
@@ -2708,14 +2704,13 @@ const BaseModal = React.forwardRef(
2708
2704
  "resetClassName",
2709
2705
  "setControlContextData",
2710
2706
  "isDismissable",
2711
- "defaultOpen",
2712
- "__plasmic_selection_prop__"
2707
+ "defaultOpen"
2713
2708
  ]);
2714
2709
  const canvasCtx = host.usePlasmicCanvasContext();
2715
2710
  const isEditMode = canvasCtx && canvasCtx.interactive === false;
2716
2711
  const contextProps = React__default.default.useContext(PlasmicDialogTriggerContext);
2717
2712
  const isStandalone = !contextProps;
2718
- const isOpen2 = useIsOpen({ isOpen, __plasmic_selection_prop__ });
2713
+ const isOpen2 = useIsOpen({ isOpen, props });
2719
2714
  const mergedProps = reactAria.mergeProps(rest, {
2720
2715
  // Since open/defaultOpen props are hidden when the modal is inside dialogTrigger, we also unset them here.
2721
2716
  isOpen: isStandalone ? isOpen2 : void 0,
@@ -2909,26 +2904,14 @@ function TriggerWrapper$1({ children, className }) {
2909
2904
  return /* @__PURE__ */ React__default.default.createElement("div", __spreadValues$d({}, mergedProps), children);
2910
2905
  }
2911
2906
  function BaseDialogTrigger(props) {
2912
- const _a = props, {
2913
- trigger,
2914
- dialog,
2915
- isOpen,
2916
- className,
2917
- __plasmic_selection_prop__
2918
- } = _a, rest = __objRest$b(_a, [
2919
- "trigger",
2920
- "dialog",
2921
- "isOpen",
2922
- "className",
2923
- "__plasmic_selection_prop__"
2924
- ]);
2925
- const isOpen2 = useIsOpen({
2907
+ const _a = props, { trigger, dialog, isOpen, className } = _a, rest = __objRest$b(_a, ["trigger", "dialog", "isOpen", "className"]);
2908
+ const canvasAwareIsOpen = useIsOpen({
2926
2909
  triggerSlotName: "trigger",
2927
2910
  isOpen,
2928
- __plasmic_selection_prop__
2911
+ props
2929
2912
  });
2930
2913
  const mergedProps = __spreadProps$b(__spreadValues$d({}, rest), {
2931
- isOpen: isOpen2
2914
+ isOpen: canvasAwareIsOpen
2932
2915
  });
2933
2916
  return (
2934
2917
  // PlasmicDialogTriggerContext is used by BaseModal
@@ -3096,7 +3079,7 @@ const OVERLAY_ARROW_VARIANTS = [
3096
3079
  "placementLeft",
3097
3080
  "placementRight"
3098
3081
  ];
3099
- const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
3082
+ const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(
3100
3083
  OVERLAY_ARROW_VARIANTS
3101
3084
  );
3102
3085
  function BaseOverlayArrow({
@@ -3113,7 +3096,7 @@ function BaseOverlayArrow({
3113
3096
  className,
3114
3097
  style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES)
3115
3098
  },
3116
- ({ placement }) => withObservedValues$9(
3099
+ ({ placement }) => withObservedValues$8(
3117
3100
  children,
3118
3101
  {
3119
3102
  placementTop: placement === "top",
@@ -3139,7 +3122,7 @@ function registerOverlayArrow(loader, overrides) {
3139
3122
  importPath: "@plasmicpkgs/react-aria/skinny/registerOverlayArrow",
3140
3123
  importName: "BaseOverlayArrow",
3141
3124
  styleSections: false,
3142
- variants: variants$a,
3125
+ variants: variants$9,
3143
3126
  props: {
3144
3127
  children: {
3145
3128
  type: "slot",
@@ -3192,7 +3175,7 @@ const RADIO_VARIANTS = [
3192
3175
  "readonly",
3193
3176
  "selected"
3194
3177
  ];
3195
- const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
3178
+ const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_VARIANTS);
3196
3179
  function BaseRadio(props) {
3197
3180
  const _a = props, {
3198
3181
  children,
@@ -3230,7 +3213,7 @@ function BaseRadio(props) {
3230
3213
  isSelected,
3231
3214
  isDisabled,
3232
3215
  isReadOnly
3233
- }) => withObservedValues$8(
3216
+ }) => withObservedValues$7(
3234
3217
  children,
3235
3218
  {
3236
3219
  hovered: isHovered,
@@ -3290,7 +3273,7 @@ function registerRadio(loader, overrides) {
3290
3273
  displayName: "Aria Radio",
3291
3274
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
3292
3275
  importName: "BaseRadio",
3293
- variants: variants$9,
3276
+ variants: variants$8,
3294
3277
  props: __spreadProps$9(__spreadValues$a({}, getCommonProps("radio", [
3295
3278
  "isDisabled",
3296
3279
  "autoFocus",
@@ -3350,7 +3333,7 @@ var __objRest$8 = (source, exclude) => {
3350
3333
  return target;
3351
3334
  };
3352
3335
  const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
3353
- const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
3336
+ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
3354
3337
  function BaseRadioGroup(props) {
3355
3338
  const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
3356
3339
  const updateIds = React.useCallback(
@@ -3364,7 +3347,7 @@ function BaseRadioGroup(props) {
3364
3347
  const idManager = useIdManager(updateIds);
3365
3348
  return (
3366
3349
  // PlasmicRadioGroupContext is used by BaseRadio
3367
- /* @__PURE__ */ React__default.default.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$8(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.RadioGroup, __spreadProps$8(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$7(
3350
+ /* @__PURE__ */ React__default.default.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$8(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.RadioGroup, __spreadProps$8(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$6(
3368
3351
  children,
3369
3352
  {
3370
3353
  disabled: isDisabled,
@@ -3389,7 +3372,7 @@ function registerRadioGroup(loader, overrides) {
3389
3372
  displayName: "Aria RadioGroup",
3390
3373
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
3391
3374
  importName: "BaseRadioGroup",
3392
- variants: variants$8,
3375
+ variants: variants$7,
3393
3376
  props: __spreadProps$8(__spreadValues$9({}, getCommonProps("radio group", [
3394
3377
  "name",
3395
3378
  "isDisabled",
@@ -3555,6 +3538,8 @@ function BaseSelect(props) {
3555
3538
  name,
3556
3539
  setControlContextData,
3557
3540
  plasmicUpdateVariant,
3541
+ plasmicNotifyAutoOpenedContent,
3542
+ __plasmic_selection_prop__,
3558
3543
  defaultSelectedKey,
3559
3544
  "aria-label": ariaLabel
3560
3545
  } = props;
@@ -3596,7 +3581,13 @@ function BaseSelect(props) {
3596
3581
  disabledKeys,
3597
3582
  "aria-label": ariaLabel
3598
3583
  }, extractPlasmicDataProps(props)),
3599
- /* @__PURE__ */ React__default.default.createElement(SelectAutoOpen, __spreadValues$8({}, props)),
3584
+ /* @__PURE__ */ React__default.default.createElement(
3585
+ SelectAutoOpen,
3586
+ {
3587
+ __plasmic_selection_prop__,
3588
+ plasmicNotifyAutoOpenedContent
3589
+ }
3590
+ ),
3600
3591
  /* @__PURE__ */ React__default.default.createElement(PlasmicPopoverTriggerContext.Provider, { value: true }, /* @__PURE__ */ React__default.default.createElement(
3601
3592
  PlasmicListBoxContext.Provider,
3602
3593
  {
@@ -3811,12 +3802,12 @@ var __objRest$7 = (source, exclude) => {
3811
3802
  return target;
3812
3803
  };
3813
3804
  const SLIDER_OUTPUT_VARIANTS = ["disabled"];
3814
- const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(
3805
+ const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3815
3806
  SLIDER_OUTPUT_VARIANTS
3816
3807
  );
3817
3808
  function BaseSliderOutput(props) {
3818
3809
  const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
3819
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$6(
3810
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$5(
3820
3811
  children,
3821
3812
  {
3822
3813
  disabled: isDisabled
@@ -3834,7 +3825,7 @@ function registerSliderOutput(loader, overrides) {
3834
3825
  displayName: "Aria Slider Output",
3835
3826
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderOutput",
3836
3827
  importName: "BaseSliderOutput",
3837
- variants: variants$7,
3828
+ variants: variants$6,
3838
3829
  props: {
3839
3830
  children: {
3840
3831
  mergeWithParent: true,
@@ -3901,7 +3892,7 @@ const SLIDER_THUMB_VARIANTS = [
3901
3892
  "focusVisible",
3902
3893
  "disabled"
3903
3894
  ];
3904
- const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3895
+ const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3905
3896
  SLIDER_THUMB_VARIANTS
3906
3897
  );
3907
3898
  function BaseSliderThumb(_a) {
@@ -3914,7 +3905,7 @@ function BaseSliderThumb(_a) {
3914
3905
  "advanced",
3915
3906
  "plasmicUpdateVariant"
3916
3907
  ]);
3917
- const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$5(
3908
+ const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
3918
3909
  /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, advanced ? children : void 0),
3919
3910
  {
3920
3911
  dragging: isDragging,
@@ -3952,7 +3943,7 @@ function registerSliderThumb(loader, overrides) {
3952
3943
  borderRadius: "100%",
3953
3944
  cursor: "pointer"
3954
3945
  },
3955
- variants: variants$6,
3946
+ variants: variants$5,
3956
3947
  props: __spreadProps$5(__spreadValues$6({}, getCommonProps("slider thumb", [
3957
3948
  "name",
3958
3949
  "isDisabled",
@@ -4004,7 +3995,7 @@ var __objRest$5 = (source, exclude) => {
4004
3995
  return target;
4005
3996
  };
4006
3997
  const SLIDER_TRACK_VARIANTS = ["hovered"];
4007
- const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3998
+ const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
4008
3999
  SLIDER_TRACK_VARIANTS
4009
4000
  );
4010
4001
  function isMultiValueGuard(value) {
@@ -4048,7 +4039,7 @@ function BaseSliderTrack(props) {
4048
4039
  });
4049
4040
  });
4050
4041
  }, [children, value]);
4051
- const track = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, withObservedValues$4(
4042
+ const track = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, withObservedValues$3(
4052
4043
  /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
4053
4044
  "div",
4054
4045
  {
@@ -4082,7 +4073,7 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
4082
4073
  displayName: "Aria Slider Track",
4083
4074
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderTrack",
4084
4075
  importName: "BaseSliderTrack",
4085
- variants: variants$5,
4076
+ variants: variants$4,
4086
4077
  defaultStyles: {
4087
4078
  width: "stretch",
4088
4079
  backgroundColor: "#aaa",
@@ -4177,7 +4168,7 @@ var __objRest$4 = (source, exclude) => {
4177
4168
  const SLIDER_COMPONENT_NAME = makeComponentName("slider");
4178
4169
  const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
4179
4170
  const SLIDER_VARIANTS = ["disabled"];
4180
- const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
4171
+ const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SLIDER_VARIANTS);
4181
4172
  function BaseSlider(props) {
4182
4173
  const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
4183
4174
  return (
@@ -4191,7 +4182,7 @@ function BaseSlider(props) {
4191
4182
  onChangeEnd: rest.onChangeEnd
4192
4183
  })
4193
4184
  },
4194
- /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$3(
4185
+ /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$2(
4195
4186
  children,
4196
4187
  {
4197
4188
  disabled: isDisabled
@@ -4244,7 +4235,7 @@ function registerSlider(loader, overrides) {
4244
4235
  displayName: "Aria Range Slider",
4245
4236
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
4246
4237
  importName: "BaseSlider",
4247
- variants: variants$4,
4238
+ variants: variants$3,
4248
4239
  defaultStyles: {
4249
4240
  width: "300px"
4250
4241
  },
@@ -4356,7 +4347,7 @@ function registerSlider(loader, overrides) {
4356
4347
  displayName: "Aria Slider",
4357
4348
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
4358
4349
  importName: "BaseSlider",
4359
- variants: variants$4,
4350
+ variants: variants$3,
4360
4351
  defaultStyles: {
4361
4352
  width: "300px"
4362
4353
  },
@@ -4475,7 +4466,7 @@ const SWITCH_VARIANTS = [
4475
4466
  "disabled",
4476
4467
  "readonly"
4477
4468
  ];
4478
- const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4469
+ const { variants: variants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4479
4470
  function BaseSwitch(props) {
4480
4471
  const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
4481
4472
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Switch, __spreadProps$3(__spreadValues$3({}, rest), { style: COMMON_STYLES }), ({
@@ -4486,7 +4477,7 @@ function BaseSwitch(props) {
4486
4477
  isSelected,
4487
4478
  isDisabled,
4488
4479
  isReadOnly
4489
- }) => withObservedValues$2(
4480
+ }) => withObservedValues$1(
4490
4481
  children,
4491
4482
  {
4492
4483
  hovered: isHovered,
@@ -4509,7 +4500,7 @@ function registerSwitch(loader, overrides) {
4509
4500
  displayName: "Aria Switch",
4510
4501
  importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
4511
4502
  importName: "BaseSwitch",
4512
- variants: variants$3,
4503
+ variants: variants$2,
4513
4504
  defaultStyles: {
4514
4505
  display: "flex",
4515
4506
  flexDirection: "column",
@@ -4664,7 +4655,7 @@ const TEXTAREA_VARIANTS = [
4664
4655
  "hovered",
4665
4656
  "disabled"
4666
4657
  ];
4667
- const { variants: variants$2 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4658
+ const { variants: variants$1 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4668
4659
  const inputHelpers = {
4669
4660
  states: {
4670
4661
  value: {
@@ -4744,7 +4735,7 @@ function registerTextArea(loader, overrides) {
4744
4735
  displayName: "Aria TextArea",
4745
4736
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
4746
4737
  importName: "BaseTextArea",
4747
- variants: variants$2,
4738
+ variants: variants$1,
4748
4739
  props: __spreadValues$2({}, getCommonProps("Text Area", [
4749
4740
  "name",
4750
4741
  "disabled",
@@ -4822,7 +4813,7 @@ var __objRest$1 = (source, exclude) => {
4822
4813
  return target;
4823
4814
  };
4824
4815
  const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
4825
- const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4816
+ const { variants, withObservedValues } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4826
4817
  function BaseTextField(props) {
4827
4818
  const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4828
4819
  const contextValue = React__default.default.useMemo(() => {
@@ -4842,7 +4833,7 @@ function BaseTextField(props) {
4842
4833
  }, rest), {
4843
4834
  style: COMMON_STYLES
4844
4835
  }),
4845
- ({ isDisabled, isReadOnly }) => withObservedValues$1(
4836
+ ({ isDisabled, isReadOnly }) => withObservedValues(
4846
4837
  children,
4847
4838
  {
4848
4839
  disabled: isDisabled,
@@ -4863,7 +4854,7 @@ function registerTextField(loader, overrides) {
4863
4854
  displayName: "Aria TextField",
4864
4855
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
4865
4856
  importName: "BaseTextField",
4866
- variants: variants$1,
4857
+ variants,
4867
4858
  // TODO: Support for validate prop
4868
4859
  props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
4869
4860
  "name",
@@ -4997,13 +4988,6 @@ var __objRest = (source, exclude) => {
4997
4988
  }
4998
4989
  return target;
4999
4990
  };
5000
- const TOOLTIP_VARIANTS = [
5001
- "placementTop",
5002
- "placementBottom",
5003
- "placementLeft",
5004
- "placementRight"
5005
- ];
5006
- const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
5007
4991
  function BaseTooltip(props) {
5008
4992
  if (props.isOpen !== void 0) {
5009
4993
  return /* @__PURE__ */ React__default.default.createElement(ControlledBaseTooltip, __spreadValues({}, props));
@@ -5046,14 +5030,12 @@ function ControlledBaseTooltip(props) {
5046
5030
  shouldFlip,
5047
5031
  className,
5048
5032
  onOpenChange = () => {
5049
- },
5050
- plasmicUpdateVariant,
5051
- __plasmic_selection_prop__
5033
+ }
5052
5034
  } = props;
5053
5035
  const isCanvasAwareOpen = useIsOpen({
5054
5036
  triggerSlotName: "children",
5055
5037
  isOpen,
5056
- __plasmic_selection_prop__
5038
+ props
5057
5039
  });
5058
5040
  const ref = React.useRef(null);
5059
5041
  const tooltipId = React.useId();
@@ -5088,16 +5070,7 @@ function ControlledBaseTooltip(props) {
5088
5070
  onOpenChange,
5089
5071
  placement
5090
5072
  },
5091
- ({ placement: _placement }) => withObservedValues(
5092
- /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, tooltipContent),
5093
- {
5094
- placementTop: _placement === "top",
5095
- placementBottom: _placement === "bottom",
5096
- placementLeft: _placement === "left",
5097
- placementRight: _placement === "right"
5098
- },
5099
- plasmicUpdateVariant
5100
- )
5073
+ tooltipContent
5101
5074
  ))
5102
5075
  );
5103
5076
  }
@@ -5144,7 +5117,6 @@ function registerTooltip(loader, overrides) {
5144
5117
  importPath: "@plasmicpkgs/react-aria/skinny/registerTooltip",
5145
5118
  importName: "BaseTooltip",
5146
5119
  isAttachment: true,
5147
- variants,
5148
5120
  props: __spreadProps(__spreadValues({
5149
5121
  children: {
5150
5122
  type: "slot",