@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
@@ -43,9 +43,10 @@ const useIsomorphicLayoutEffect = isBrowser ? React.useLayoutEffect : React.useE
43
43
  function useIsOpen({
44
44
  triggerSlotName,
45
45
  isOpen,
46
- __plasmic_selection_prop__
46
+ props
47
47
  }) {
48
48
  var _a, _b;
49
+ const { __plasmic_selection_prop__, plasmicNotifyAutoOpenedContent } = props;
49
50
  const canvasContext = usePlasmicCanvasContext();
50
51
  const { isSelected, selectedSlotName } = (_b = (_a = usePlasmicCanvasComponentInfo) == null ? void 0 : _a({ __plasmic_selection_prop__ })) != null ? _b : {};
51
52
  if (!canvasContext) {
@@ -53,6 +54,9 @@ function useIsOpen({
53
54
  }
54
55
  const isTriggerSlotSelected = isDefined(selectedSlotName) && selectedSlotName === triggerSlotName;
55
56
  const isAutoOpenedBySelection = isSelected && !isTriggerSlotSelected;
57
+ if (isAutoOpenedBySelection && !isOpen) {
58
+ plasmicNotifyAutoOpenedContent == null ? void 0 : plasmicNotifyAutoOpenedContent();
59
+ }
56
60
  return Boolean(isAutoOpenedBySelection || isOpen);
57
61
  }
58
62
  function useAutoOpen({
@@ -63,16 +67,18 @@ function useAutoOpen({
63
67
  var _a, _b, _c;
64
68
  const inPlasmicCanvas = !!usePlasmicCanvasContext();
65
69
  const isSelected = (_c = (_b = (_a = usePlasmicCanvasComponentInfo) == null ? void 0 : _a(props)) == null ? void 0 : _b.isSelected) != null ? _c : false;
70
+ const { plasmicNotifyAutoOpenedContent } = props;
66
71
  useEffect(() => {
67
72
  if (!inPlasmicCanvas) {
68
73
  return;
69
74
  }
70
75
  if (isSelected) {
71
76
  open == null ? void 0 : open();
77
+ plasmicNotifyAutoOpenedContent == null ? void 0 : plasmicNotifyAutoOpenedContent();
72
78
  } else {
73
79
  close == null ? void 0 : close();
74
80
  }
75
- }, [isSelected, inPlasmicCanvas]);
81
+ }, [isSelected, inPlasmicCanvas, plasmicNotifyAutoOpenedContent]);
76
82
  }
77
83
  function registerComponentHelper(loader, component, meta, overrides) {
78
84
  if (overrides) {
@@ -688,7 +694,7 @@ const BUTTON_VARIANTS = [
688
694
  "focusVisible",
689
695
  "disabled"
690
696
  ];
691
- const { variants: variants$h, withObservedValues: withObservedValues$e } = pickAriaComponentVariants(BUTTON_VARIANTS);
697
+ const { variants: variants$f, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(BUTTON_VARIANTS);
692
698
  const BaseButton = React.forwardRef(function BaseButtonInner(props, ref) {
693
699
  const { href } = props;
694
700
  if (href) {
@@ -707,7 +713,7 @@ const BaseButton = React.forwardRef(function BaseButtonInner(props, ref) {
707
713
  style: COMMON_STYLES,
708
714
  ref
709
715
  });
710
- return /* @__PURE__ */ React.createElement(Button, __spreadValues$q({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$e(
716
+ return /* @__PURE__ */ React.createElement(Button, __spreadValues$q({}, buttonProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$c(
711
717
  children,
712
718
  {
713
719
  hovered: isHovered,
@@ -744,7 +750,7 @@ function LinkButton({
744
750
  "data-focus-visible": isFocusVisible || void 0,
745
751
  "data-disabled": props.isDisabled || void 0
746
752
  }),
747
- withObservedValues$e(
753
+ withObservedValues$c(
748
754
  children,
749
755
  {
750
756
  hovered: isHovered,
@@ -767,7 +773,7 @@ function registerButton(loader, overrides) {
767
773
  displayName: "Aria Button",
768
774
  importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
769
775
  importName: "BaseButton",
770
- variants: variants$h,
776
+ variants: variants$f,
771
777
  defaultStyles: {
772
778
  // Ensure consistent design across rendered elements (button, anchor tag).
773
779
  backgroundColor: "#EFEFEF",
@@ -990,7 +996,7 @@ const CHECKBOX_VARIANTS = [
990
996
  "selected",
991
997
  "readonly"
992
998
  ];
993
- const { variants: variants$g, withObservedValues: withObservedValues$d } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
999
+ const { variants: variants$e, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
994
1000
  function BaseCheckbox(props) {
995
1001
  const _a = props, {
996
1002
  children,
@@ -1028,7 +1034,7 @@ function BaseCheckbox(props) {
1028
1034
  isIndeterminate,
1029
1035
  isSelected,
1030
1036
  isReadOnly
1031
- }) => withObservedValues$d(
1037
+ }) => withObservedValues$b(
1032
1038
  children,
1033
1039
  {
1034
1040
  hovered: isHovered,
@@ -1100,7 +1106,7 @@ function registerCheckbox(loader, overrides) {
1100
1106
  displayName: "Aria Checkbox",
1101
1107
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
1102
1108
  importName: "BaseCheckbox",
1103
- variants: variants$g,
1109
+ variants: variants$e,
1104
1110
  props: __spreadProps$l(__spreadValues$p({}, getCommonProps("checkbox", [
1105
1111
  "name",
1106
1112
  "isDisabled",
@@ -1388,7 +1394,7 @@ var __objRest$j = (source, exclude) => {
1388
1394
  return target;
1389
1395
  };
1390
1396
  const CHECKBOX_GROUP_VARIANTS = ["disabled", "readonly"];
1391
- const { variants: variants$f, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(
1397
+ const { variants: variants$d, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(
1392
1398
  CHECKBOX_GROUP_VARIANTS
1393
1399
  );
1394
1400
  function BaseCheckboxGroup(props) {
@@ -1404,7 +1410,7 @@ function BaseCheckboxGroup(props) {
1404
1410
  const idManager = useIdManager(updateIds);
1405
1411
  return (
1406
1412
  // PlasmicCheckboxGroupContext is used by BaseCheckbox
1407
- /* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$h(__spreadValues$l({}, rest), { idManager }) }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadProps$h(__spreadValues$l({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$c(
1413
+ /* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: __spreadProps$h(__spreadValues$l({}, rest), { idManager }) }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadProps$h(__spreadValues$l({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$a(
1408
1414
  children,
1409
1415
  {
1410
1416
  disabled: isDisabled,
@@ -1424,7 +1430,7 @@ function registerCheckboxGroup(loader, overrides) {
1424
1430
  displayName: "Aria Checkbox Group",
1425
1431
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
1426
1432
  importName: "BaseCheckboxGroup",
1427
- variants: variants$f,
1433
+ variants: variants$d,
1428
1434
  props: __spreadProps$h(__spreadValues$l({}, getCommonProps("checkbox group", [
1429
1435
  "name",
1430
1436
  "isDisabled",
@@ -1577,7 +1583,7 @@ const INPUT_VARIANTS = [
1577
1583
  "hovered",
1578
1584
  "disabled"
1579
1585
  ];
1580
- const { variants: variants$e } = pickAriaComponentVariants(INPUT_VARIANTS);
1586
+ const { variants: variants$c } = pickAriaComponentVariants(INPUT_VARIANTS);
1581
1587
  const inputHelpers$1 = {
1582
1588
  states: {
1583
1589
  value: {
@@ -1662,7 +1668,7 @@ function registerInput(loader, overrides) {
1662
1668
  displayName: "Aria Input",
1663
1669
  importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
1664
1670
  importName: "BaseInput",
1665
- variants: variants$e,
1671
+ variants: variants$c,
1666
1672
  defaultStyles: {
1667
1673
  width: "300px",
1668
1674
  borderWidth: "1px",
@@ -1757,7 +1763,7 @@ const LIST_BOX_ITEM_VARIANTS = [
1757
1763
  "selected",
1758
1764
  "disabled"
1759
1765
  ];
1760
- const { variants: variants$d, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(
1766
+ const { variants: variants$b, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
1761
1767
  LIST_BOX_ITEM_VARIANTS
1762
1768
  );
1763
1769
  function BaseListBoxItem(props) {
@@ -1786,7 +1792,7 @@ function BaseListBoxItem(props) {
1786
1792
  isFocusVisible,
1787
1793
  isSelected,
1788
1794
  isDisabled
1789
- }) => withObservedValues$b(
1795
+ }) => withObservedValues$9(
1790
1796
  children,
1791
1797
  {
1792
1798
  hovered: isHovered,
@@ -1850,7 +1856,7 @@ function registerListBoxItem(loader, overrides) {
1850
1856
  displayName: "Aria ListBoxItem",
1851
1857
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
1852
1858
  importName: "BaseListBoxItem",
1853
- variants: variants$d,
1859
+ variants: variants$b,
1854
1860
  props: {
1855
1861
  id: {
1856
1862
  type: "string",
@@ -1991,7 +1997,7 @@ var __objRest$f = (source, exclude) => {
1991
1997
  return target;
1992
1998
  };
1993
1999
  const LISTBOX_VARIANTS = ["focused", "focusVisible"];
1994
- const { variants: variants$c } = pickAriaComponentVariants(LISTBOX_VARIANTS);
2000
+ const { variants: variants$a } = pickAriaComponentVariants(LISTBOX_VARIANTS);
1995
2001
  const listboxHelpers = {
1996
2002
  states: {
1997
2003
  selectedValue: {
@@ -2128,7 +2134,7 @@ function registerListBox(loader, overrides) {
2128
2134
  displayName: "Aria ListBox",
2129
2135
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBox",
2130
2136
  importName: "BaseListBox",
2131
- variants: variants$c,
2137
+ variants: variants$a,
2132
2138
  defaultStyles: {
2133
2139
  width: "250px",
2134
2140
  borderWidth: "1px",
@@ -2260,22 +2266,13 @@ var __objRest$e = (source, exclude) => {
2260
2266
  }
2261
2267
  return target;
2262
2268
  };
2263
- const POPOVER_VARIANTS = [
2264
- "placementTop",
2265
- "placementBottom",
2266
- "placementLeft",
2267
- "placementRight"
2268
- ];
2269
- const { variants: variants$b, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(POPOVER_VARIANTS);
2270
2269
  function BasePopover(props) {
2271
2270
  const _a = props, {
2272
2271
  resetClassName,
2273
- plasmicUpdateVariant,
2274
2272
  setControlContextData,
2275
2273
  matchTriggerWidth
2276
2274
  } = _a, restProps = __objRest$e(_a, [
2277
2275
  "resetClassName",
2278
- "plasmicUpdateVariant",
2279
2276
  "setControlContextData",
2280
2277
  "matchTriggerWidth"
2281
2278
  ]);
@@ -2311,16 +2308,7 @@ function BasePopover(props) {
2311
2308
  __spreadValues$g({
2312
2309
  style: __spreadValues$g(__spreadValues$g({}, matchTriggerWidthProp ? { width: `var(--trigger-width)` } : {}), COMMON_STYLES)
2313
2310
  }, mergedProps),
2314
- ({ placement }) => withObservedValues$a(
2315
- children,
2316
- {
2317
- placementTop: placement === "top",
2318
- placementBottom: placement === "bottom",
2319
- placementLeft: placement === "left",
2320
- placementRight: placement === "right"
2321
- },
2322
- plasmicUpdateVariant
2323
- )
2311
+ children
2324
2312
  ));
2325
2313
  }
2326
2314
  const POPOVER_COMPONENT_NAME = makeComponentName("popover");
@@ -2333,7 +2321,6 @@ function registerPopover(loader, overrides) {
2333
2321
  displayName: "Aria Popover",
2334
2322
  importPath: "@plasmicpkgs/react-aria/skinny/registerPopover",
2335
2323
  importName: "BasePopover",
2336
- variants: variants$b,
2337
2324
  defaultStyles: {
2338
2325
  borderWidth: "1px",
2339
2326
  borderStyle: "solid",
@@ -2445,12 +2432,16 @@ function BaseComboBox(props) {
2445
2432
  children,
2446
2433
  setControlContextData,
2447
2434
  plasmicUpdateVariant,
2435
+ __plasmic_selection_prop__,
2436
+ plasmicNotifyAutoOpenedContent,
2448
2437
  className,
2449
2438
  isOpen: _isOpen
2450
2439
  } = _a, rest = __objRest$d(_a, [
2451
2440
  "children",
2452
2441
  "setControlContextData",
2453
2442
  "plasmicUpdateVariant",
2443
+ "__plasmic_selection_prop__",
2444
+ "plasmicNotifyAutoOpenedContent",
2454
2445
  "className",
2455
2446
  "isOpen"
2456
2447
  ]);
@@ -2479,7 +2470,13 @@ function BaseComboBox(props) {
2479
2470
  idManager
2480
2471
  }
2481
2472
  },
2482
- /* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(ComboboxAutoOpen, __spreadValues$f({}, props)), children)
2473
+ /* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(
2474
+ ComboboxAutoOpen,
2475
+ {
2476
+ __plasmic_selection_prop__,
2477
+ plasmicNotifyAutoOpenedContent
2478
+ }
2479
+ ), children)
2483
2480
  )));
2484
2481
  }
2485
2482
  function registerComboBox(loader) {
@@ -2690,8 +2687,7 @@ const BaseModal = forwardRef(
2690
2687
  resetClassName,
2691
2688
  setControlContextData,
2692
2689
  isDismissable,
2693
- defaultOpen,
2694
- __plasmic_selection_prop__
2690
+ defaultOpen
2695
2691
  } = _a, rest = __objRest$c(_a, [
2696
2692
  "children",
2697
2693
  "modalOverlayClass",
@@ -2700,14 +2696,13 @@ const BaseModal = forwardRef(
2700
2696
  "resetClassName",
2701
2697
  "setControlContextData",
2702
2698
  "isDismissable",
2703
- "defaultOpen",
2704
- "__plasmic_selection_prop__"
2699
+ "defaultOpen"
2705
2700
  ]);
2706
2701
  const canvasCtx = usePlasmicCanvasContext();
2707
2702
  const isEditMode = canvasCtx && canvasCtx.interactive === false;
2708
2703
  const contextProps = React.useContext(PlasmicDialogTriggerContext);
2709
2704
  const isStandalone = !contextProps;
2710
- const isOpen2 = useIsOpen({ isOpen, __plasmic_selection_prop__ });
2705
+ const isOpen2 = useIsOpen({ isOpen, props });
2711
2706
  const mergedProps = mergeProps(rest, {
2712
2707
  // Since open/defaultOpen props are hidden when the modal is inside dialogTrigger, we also unset them here.
2713
2708
  isOpen: isStandalone ? isOpen2 : void 0,
@@ -2901,26 +2896,14 @@ function TriggerWrapper$1({ children, className }) {
2901
2896
  return /* @__PURE__ */ React.createElement("div", __spreadValues$d({}, mergedProps), children);
2902
2897
  }
2903
2898
  function BaseDialogTrigger(props) {
2904
- const _a = props, {
2905
- trigger,
2906
- dialog,
2907
- isOpen,
2908
- className,
2909
- __plasmic_selection_prop__
2910
- } = _a, rest = __objRest$b(_a, [
2911
- "trigger",
2912
- "dialog",
2913
- "isOpen",
2914
- "className",
2915
- "__plasmic_selection_prop__"
2916
- ]);
2917
- const isOpen2 = useIsOpen({
2899
+ const _a = props, { trigger, dialog, isOpen, className } = _a, rest = __objRest$b(_a, ["trigger", "dialog", "isOpen", "className"]);
2900
+ const canvasAwareIsOpen = useIsOpen({
2918
2901
  triggerSlotName: "trigger",
2919
2902
  isOpen,
2920
- __plasmic_selection_prop__
2903
+ props
2921
2904
  });
2922
2905
  const mergedProps = __spreadProps$b(__spreadValues$d({}, rest), {
2923
- isOpen: isOpen2
2906
+ isOpen: canvasAwareIsOpen
2924
2907
  });
2925
2908
  return (
2926
2909
  // PlasmicDialogTriggerContext is used by BaseModal
@@ -3088,7 +3071,7 @@ const OVERLAY_ARROW_VARIANTS = [
3088
3071
  "placementLeft",
3089
3072
  "placementRight"
3090
3073
  ];
3091
- const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
3074
+ const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(
3092
3075
  OVERLAY_ARROW_VARIANTS
3093
3076
  );
3094
3077
  function BaseOverlayArrow({
@@ -3105,7 +3088,7 @@ function BaseOverlayArrow({
3105
3088
  className,
3106
3089
  style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES)
3107
3090
  },
3108
- ({ placement }) => withObservedValues$9(
3091
+ ({ placement }) => withObservedValues$8(
3109
3092
  children,
3110
3093
  {
3111
3094
  placementTop: placement === "top",
@@ -3131,7 +3114,7 @@ function registerOverlayArrow(loader, overrides) {
3131
3114
  importPath: "@plasmicpkgs/react-aria/skinny/registerOverlayArrow",
3132
3115
  importName: "BaseOverlayArrow",
3133
3116
  styleSections: false,
3134
- variants: variants$a,
3117
+ variants: variants$9,
3135
3118
  props: {
3136
3119
  children: {
3137
3120
  type: "slot",
@@ -3184,7 +3167,7 @@ const RADIO_VARIANTS = [
3184
3167
  "readonly",
3185
3168
  "selected"
3186
3169
  ];
3187
- const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
3170
+ const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_VARIANTS);
3188
3171
  function BaseRadio(props) {
3189
3172
  const _a = props, {
3190
3173
  children,
@@ -3222,7 +3205,7 @@ function BaseRadio(props) {
3222
3205
  isSelected,
3223
3206
  isDisabled,
3224
3207
  isReadOnly
3225
- }) => withObservedValues$8(
3208
+ }) => withObservedValues$7(
3226
3209
  children,
3227
3210
  {
3228
3211
  hovered: isHovered,
@@ -3282,7 +3265,7 @@ function registerRadio(loader, overrides) {
3282
3265
  displayName: "Aria Radio",
3283
3266
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
3284
3267
  importName: "BaseRadio",
3285
- variants: variants$9,
3268
+ variants: variants$8,
3286
3269
  props: __spreadProps$9(__spreadValues$a({}, getCommonProps("radio", [
3287
3270
  "isDisabled",
3288
3271
  "autoFocus",
@@ -3342,7 +3325,7 @@ var __objRest$8 = (source, exclude) => {
3342
3325
  return target;
3343
3326
  };
3344
3327
  const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
3345
- const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
3328
+ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
3346
3329
  function BaseRadioGroup(props) {
3347
3330
  const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
3348
3331
  const updateIds = useCallback(
@@ -3356,7 +3339,7 @@ function BaseRadioGroup(props) {
3356
3339
  const idManager = useIdManager(updateIds);
3357
3340
  return (
3358
3341
  // PlasmicRadioGroupContext is used by BaseRadio
3359
- /* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$8(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadProps$8(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$7(
3342
+ /* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: __spreadProps$8(__spreadValues$9({}, props), { idManager }) }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadProps$8(__spreadValues$9({}, rest), { style: COMMON_STYLES }), ({ isDisabled, isReadOnly }) => withObservedValues$6(
3360
3343
  children,
3361
3344
  {
3362
3345
  disabled: isDisabled,
@@ -3381,7 +3364,7 @@ function registerRadioGroup(loader, overrides) {
3381
3364
  displayName: "Aria RadioGroup",
3382
3365
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
3383
3366
  importName: "BaseRadioGroup",
3384
- variants: variants$8,
3367
+ variants: variants$7,
3385
3368
  props: __spreadProps$8(__spreadValues$9({}, getCommonProps("radio group", [
3386
3369
  "name",
3387
3370
  "isDisabled",
@@ -3547,6 +3530,8 @@ function BaseSelect(props) {
3547
3530
  name,
3548
3531
  setControlContextData,
3549
3532
  plasmicUpdateVariant,
3533
+ plasmicNotifyAutoOpenedContent,
3534
+ __plasmic_selection_prop__,
3550
3535
  defaultSelectedKey,
3551
3536
  "aria-label": ariaLabel
3552
3537
  } = props;
@@ -3588,7 +3573,13 @@ function BaseSelect(props) {
3588
3573
  disabledKeys,
3589
3574
  "aria-label": ariaLabel
3590
3575
  }, extractPlasmicDataProps(props)),
3591
- /* @__PURE__ */ React.createElement(SelectAutoOpen, __spreadValues$8({}, props)),
3576
+ /* @__PURE__ */ React.createElement(
3577
+ SelectAutoOpen,
3578
+ {
3579
+ __plasmic_selection_prop__,
3580
+ plasmicNotifyAutoOpenedContent
3581
+ }
3582
+ ),
3592
3583
  /* @__PURE__ */ React.createElement(PlasmicPopoverTriggerContext.Provider, { value: true }, /* @__PURE__ */ React.createElement(
3593
3584
  PlasmicListBoxContext.Provider,
3594
3585
  {
@@ -3803,12 +3794,12 @@ var __objRest$7 = (source, exclude) => {
3803
3794
  return target;
3804
3795
  };
3805
3796
  const SLIDER_OUTPUT_VARIANTS = ["disabled"];
3806
- const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(
3797
+ const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3807
3798
  SLIDER_OUTPUT_VARIANTS
3808
3799
  );
3809
3800
  function BaseSliderOutput(props) {
3810
3801
  const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
3811
- return /* @__PURE__ */ React.createElement(SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$6(
3802
+ return /* @__PURE__ */ React.createElement(SliderOutput, __spreadProps$6(__spreadValues$7({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$5(
3812
3803
  children,
3813
3804
  {
3814
3805
  disabled: isDisabled
@@ -3826,7 +3817,7 @@ function registerSliderOutput(loader, overrides) {
3826
3817
  displayName: "Aria Slider Output",
3827
3818
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderOutput",
3828
3819
  importName: "BaseSliderOutput",
3829
- variants: variants$7,
3820
+ variants: variants$6,
3830
3821
  props: {
3831
3822
  children: {
3832
3823
  mergeWithParent: true,
@@ -3893,7 +3884,7 @@ const SLIDER_THUMB_VARIANTS = [
3893
3884
  "focusVisible",
3894
3885
  "disabled"
3895
3886
  ];
3896
- const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3887
+ const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3897
3888
  SLIDER_THUMB_VARIANTS
3898
3889
  );
3899
3890
  function BaseSliderThumb(_a) {
@@ -3906,7 +3897,7 @@ function BaseSliderThumb(_a) {
3906
3897
  "advanced",
3907
3898
  "plasmicUpdateVariant"
3908
3899
  ]);
3909
- const thumb = /* @__PURE__ */ React.createElement(SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$5(
3900
+ const thumb = /* @__PURE__ */ React.createElement(SliderThumb, __spreadProps$5(__spreadValues$6({}, rest), { style: COMMON_STYLES }), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
3910
3901
  /* @__PURE__ */ React.createElement(React.Fragment, null, advanced ? children : void 0),
3911
3902
  {
3912
3903
  dragging: isDragging,
@@ -3944,7 +3935,7 @@ function registerSliderThumb(loader, overrides) {
3944
3935
  borderRadius: "100%",
3945
3936
  cursor: "pointer"
3946
3937
  },
3947
- variants: variants$6,
3938
+ variants: variants$5,
3948
3939
  props: __spreadProps$5(__spreadValues$6({}, getCommonProps("slider thumb", [
3949
3940
  "name",
3950
3941
  "isDisabled",
@@ -3996,7 +3987,7 @@ var __objRest$5 = (source, exclude) => {
3996
3987
  return target;
3997
3988
  };
3998
3989
  const SLIDER_TRACK_VARIANTS = ["hovered"];
3999
- const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3990
+ const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
4000
3991
  SLIDER_TRACK_VARIANTS
4001
3992
  );
4002
3993
  function isMultiValueGuard(value) {
@@ -4040,7 +4031,7 @@ function BaseSliderTrack(props) {
4040
4031
  });
4041
4032
  });
4042
4033
  }, [children, value]);
4043
- const track = /* @__PURE__ */ React.createElement(SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React.createElement(React.Fragment, null, withObservedValues$4(
4034
+ const track = /* @__PURE__ */ React.createElement(SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React.createElement(React.Fragment, null, withObservedValues$3(
4044
4035
  /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
4045
4036
  "div",
4046
4037
  {
@@ -4074,7 +4065,7 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
4074
4065
  displayName: "Aria Slider Track",
4075
4066
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderTrack",
4076
4067
  importName: "BaseSliderTrack",
4077
- variants: variants$5,
4068
+ variants: variants$4,
4078
4069
  defaultStyles: {
4079
4070
  width: "stretch",
4080
4071
  backgroundColor: "#aaa",
@@ -4169,7 +4160,7 @@ var __objRest$4 = (source, exclude) => {
4169
4160
  const SLIDER_COMPONENT_NAME = makeComponentName("slider");
4170
4161
  const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
4171
4162
  const SLIDER_VARIANTS = ["disabled"];
4172
- const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
4163
+ const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SLIDER_VARIANTS);
4173
4164
  function BaseSlider(props) {
4174
4165
  const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
4175
4166
  return (
@@ -4183,7 +4174,7 @@ function BaseSlider(props) {
4183
4174
  onChangeEnd: rest.onChangeEnd
4184
4175
  })
4185
4176
  },
4186
- /* @__PURE__ */ React.createElement(Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$3(
4177
+ /* @__PURE__ */ React.createElement(Slider, __spreadProps$4(__spreadValues$4({}, rest), { style: COMMON_STYLES }), ({ isDisabled }) => withObservedValues$2(
4187
4178
  children,
4188
4179
  {
4189
4180
  disabled: isDisabled
@@ -4236,7 +4227,7 @@ function registerSlider(loader, overrides) {
4236
4227
  displayName: "Aria Range Slider",
4237
4228
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
4238
4229
  importName: "BaseSlider",
4239
- variants: variants$4,
4230
+ variants: variants$3,
4240
4231
  defaultStyles: {
4241
4232
  width: "300px"
4242
4233
  },
@@ -4348,7 +4339,7 @@ function registerSlider(loader, overrides) {
4348
4339
  displayName: "Aria Slider",
4349
4340
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
4350
4341
  importName: "BaseSlider",
4351
- variants: variants$4,
4342
+ variants: variants$3,
4352
4343
  defaultStyles: {
4353
4344
  width: "300px"
4354
4345
  },
@@ -4467,7 +4458,7 @@ const SWITCH_VARIANTS = [
4467
4458
  "disabled",
4468
4459
  "readonly"
4469
4460
  ];
4470
- const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4461
+ const { variants: variants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4471
4462
  function BaseSwitch(props) {
4472
4463
  const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
4473
4464
  return /* @__PURE__ */ React.createElement(Switch, __spreadProps$3(__spreadValues$3({}, rest), { style: COMMON_STYLES }), ({
@@ -4478,7 +4469,7 @@ function BaseSwitch(props) {
4478
4469
  isSelected,
4479
4470
  isDisabled,
4480
4471
  isReadOnly
4481
- }) => withObservedValues$2(
4472
+ }) => withObservedValues$1(
4482
4473
  children,
4483
4474
  {
4484
4475
  hovered: isHovered,
@@ -4501,7 +4492,7 @@ function registerSwitch(loader, overrides) {
4501
4492
  displayName: "Aria Switch",
4502
4493
  importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
4503
4494
  importName: "BaseSwitch",
4504
- variants: variants$3,
4495
+ variants: variants$2,
4505
4496
  defaultStyles: {
4506
4497
  display: "flex",
4507
4498
  flexDirection: "column",
@@ -4656,7 +4647,7 @@ const TEXTAREA_VARIANTS = [
4656
4647
  "hovered",
4657
4648
  "disabled"
4658
4649
  ];
4659
- const { variants: variants$2 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4650
+ const { variants: variants$1 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4660
4651
  const inputHelpers = {
4661
4652
  states: {
4662
4653
  value: {
@@ -4736,7 +4727,7 @@ function registerTextArea(loader, overrides) {
4736
4727
  displayName: "Aria TextArea",
4737
4728
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
4738
4729
  importName: "BaseTextArea",
4739
- variants: variants$2,
4730
+ variants: variants$1,
4740
4731
  props: __spreadValues$2({}, getCommonProps("Text Area", [
4741
4732
  "name",
4742
4733
  "disabled",
@@ -4814,7 +4805,7 @@ var __objRest$1 = (source, exclude) => {
4814
4805
  return target;
4815
4806
  };
4816
4807
  const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
4817
- const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4808
+ const { variants, withObservedValues } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4818
4809
  function BaseTextField(props) {
4819
4810
  const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4820
4811
  const contextValue = React.useMemo(() => {
@@ -4834,7 +4825,7 @@ function BaseTextField(props) {
4834
4825
  }, rest), {
4835
4826
  style: COMMON_STYLES
4836
4827
  }),
4837
- ({ isDisabled, isReadOnly }) => withObservedValues$1(
4828
+ ({ isDisabled, isReadOnly }) => withObservedValues(
4838
4829
  children,
4839
4830
  {
4840
4831
  disabled: isDisabled,
@@ -4855,7 +4846,7 @@ function registerTextField(loader, overrides) {
4855
4846
  displayName: "Aria TextField",
4856
4847
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
4857
4848
  importName: "BaseTextField",
4858
- variants: variants$1,
4849
+ variants,
4859
4850
  // TODO: Support for validate prop
4860
4851
  props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
4861
4852
  "name",
@@ -4989,13 +4980,6 @@ var __objRest = (source, exclude) => {
4989
4980
  }
4990
4981
  return target;
4991
4982
  };
4992
- const TOOLTIP_VARIANTS = [
4993
- "placementTop",
4994
- "placementBottom",
4995
- "placementLeft",
4996
- "placementRight"
4997
- ];
4998
- const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
4999
4983
  function BaseTooltip(props) {
5000
4984
  if (props.isOpen !== void 0) {
5001
4985
  return /* @__PURE__ */ React.createElement(ControlledBaseTooltip, __spreadValues({}, props));
@@ -5038,14 +5022,12 @@ function ControlledBaseTooltip(props) {
5038
5022
  shouldFlip,
5039
5023
  className,
5040
5024
  onOpenChange = () => {
5041
- },
5042
- plasmicUpdateVariant,
5043
- __plasmic_selection_prop__
5025
+ }
5044
5026
  } = props;
5045
5027
  const isCanvasAwareOpen = useIsOpen({
5046
5028
  triggerSlotName: "children",
5047
5029
  isOpen,
5048
- __plasmic_selection_prop__
5030
+ props
5049
5031
  });
5050
5032
  const ref = useRef(null);
5051
5033
  const tooltipId = useId();
@@ -5080,16 +5062,7 @@ function ControlledBaseTooltip(props) {
5080
5062
  onOpenChange,
5081
5063
  placement
5082
5064
  },
5083
- ({ placement: _placement }) => withObservedValues(
5084
- /* @__PURE__ */ React.createElement(React.Fragment, null, tooltipContent),
5085
- {
5086
- placementTop: _placement === "top",
5087
- placementBottom: _placement === "bottom",
5088
- placementLeft: _placement === "left",
5089
- placementRight: _placement === "right"
5090
- },
5091
- plasmicUpdateVariant
5092
- )
5065
+ tooltipContent
5093
5066
  ))
5094
5067
  );
5095
5068
  }
@@ -5136,7 +5109,6 @@ function registerTooltip(loader, overrides) {
5136
5109
  importPath: "@plasmicpkgs/react-aria/skinny/registerTooltip",
5137
5110
  importName: "BaseTooltip",
5138
5111
  isAttachment: true,
5139
- variants,
5140
5112
  props: __spreadProps(__spreadValues({
5141
5113
  children: {
5142
5114
  type: "slot",