@plasmicpkgs/react-aria 0.0.65 → 0.0.67

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 (70) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/react-aria.esm.js +322 -222
  3. package/dist/react-aria.esm.js.map +1 -1
  4. package/dist/react-aria.js +320 -220
  5. package/dist/react-aria.js.map +1 -1
  6. package/dist/registerButton.d.ts +1 -1
  7. package/dist/registerTooltip.d.ts +4 -1
  8. package/dist/variant-utils.d.ts +16 -0
  9. package/package.json +2 -2
  10. package/skinny/registerButton.cjs.js +18 -17
  11. package/skinny/registerButton.cjs.js.map +1 -1
  12. package/skinny/registerButton.d.ts +1 -1
  13. package/skinny/registerButton.esm.js +19 -17
  14. package/skinny/registerButton.esm.js.map +1 -1
  15. package/skinny/registerCheckbox.cjs.js +1 -1
  16. package/skinny/registerCheckbox.esm.js +1 -1
  17. package/skinny/registerCheckboxGroup.cjs.js +1 -1
  18. package/skinny/registerCheckboxGroup.esm.js +1 -1
  19. package/skinny/registerComboBox.cjs.js +2 -2
  20. package/skinny/registerComboBox.esm.js +2 -2
  21. package/skinny/registerDialogTrigger.cjs.js +1 -1
  22. package/skinny/registerDialogTrigger.esm.js +1 -1
  23. package/skinny/registerInput.cjs.js +1 -1
  24. package/skinny/registerInput.esm.js +1 -1
  25. package/skinny/{registerListBox-8c096263.esm.js → registerListBox-5425b5fe.esm.js} +2 -2
  26. package/skinny/registerListBox-5425b5fe.esm.js.map +1 -0
  27. package/skinny/{registerListBox-4761c48d.cjs.js → registerListBox-62e01fbb.cjs.js} +2 -2
  28. package/skinny/registerListBox-62e01fbb.cjs.js.map +1 -0
  29. package/skinny/registerListBox.cjs.js +2 -2
  30. package/skinny/registerListBox.esm.js +2 -2
  31. package/skinny/registerListBoxItem.cjs.js +1 -1
  32. package/skinny/registerListBoxItem.esm.js +1 -1
  33. package/skinny/registerModal.cjs.js +14 -3
  34. package/skinny/registerModal.cjs.js.map +1 -1
  35. package/skinny/registerModal.esm.js +14 -3
  36. package/skinny/registerModal.esm.js.map +1 -1
  37. package/skinny/registerRadio.cjs.js +1 -1
  38. package/skinny/registerRadio.esm.js +1 -1
  39. package/skinny/registerRadioGroup.cjs.js +1 -1
  40. package/skinny/registerRadioGroup.esm.js +1 -1
  41. package/skinny/registerSelect.cjs.js +2 -2
  42. package/skinny/registerSelect.esm.js +2 -2
  43. package/skinny/registerSlider.cjs.js +1 -1
  44. package/skinny/registerSlider.esm.js +1 -1
  45. package/skinny/registerSliderOutput.cjs.js +1 -1
  46. package/skinny/registerSliderOutput.esm.js +1 -1
  47. package/skinny/registerSliderThumb.cjs.js +1 -1
  48. package/skinny/registerSliderThumb.esm.js +1 -1
  49. package/skinny/registerSliderTrack.cjs.js +1 -1
  50. package/skinny/registerSliderTrack.esm.js +1 -1
  51. package/skinny/registerSwitch.cjs.js +1 -1
  52. package/skinny/registerSwitch.esm.js +1 -1
  53. package/skinny/registerTextArea.cjs.js +1 -1
  54. package/skinny/registerTextArea.esm.js +1 -1
  55. package/skinny/registerTextField.cjs.js +1 -1
  56. package/skinny/registerTextField.esm.js +1 -1
  57. package/skinny/registerTooltip.cjs.js +118 -46
  58. package/skinny/registerTooltip.cjs.js.map +1 -1
  59. package/skinny/registerTooltip.d.ts +4 -1
  60. package/skinny/registerTooltip.esm.js +117 -45
  61. package/skinny/registerTooltip.esm.js.map +1 -1
  62. package/skinny/{variant-utils-23360776.esm.js → variant-utils-5f90385f.esm.js} +17 -1
  63. package/skinny/variant-utils-5f90385f.esm.js.map +1 -0
  64. package/skinny/{variant-utils-db5b9590.cjs.js → variant-utils-6c6ef452.cjs.js} +17 -1
  65. package/skinny/variant-utils-6c6ef452.cjs.js.map +1 -0
  66. package/skinny/variant-utils.d.ts +16 -0
  67. package/skinny/registerListBox-4761c48d.cjs.js.map +0 -1
  68. package/skinny/registerListBox-8c096263.esm.js.map +0 -1
  69. package/skinny/variant-utils-23360776.esm.js.map +0 -1
  70. package/skinny/variant-utils-db5b9590.cjs.js.map +0 -1
@@ -7,7 +7,6 @@ var host = require('@plasmicapp/host');
7
7
  var reactAria = require('react-aria');
8
8
  var utils = require('@react-aria/utils');
9
9
  var flattenChildren = require('react-keyed-flatten-children');
10
- var reactStately = require('react-stately');
11
10
 
12
11
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
13
12
 
@@ -16,8 +15,8 @@ var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent)
16
15
  var flattenChildren__default = /*#__PURE__*/_interopDefault(flattenChildren);
17
16
 
18
17
  var __defProp$r = Object.defineProperty;
19
- var __defProps$g = Object.defineProperties;
20
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
18
+ var __defProps$h = Object.defineProperties;
19
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
21
20
  var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
22
21
  var __hasOwnProp$r = Object.prototype.hasOwnProperty;
23
22
  var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
@@ -33,16 +32,16 @@ var __spreadValues$r = (a, b) => {
33
32
  }
34
33
  return a;
35
34
  };
36
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
35
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
37
36
  function registerComponentHelper(loader, component, meta, overrides) {
38
37
  var _a;
39
- meta = __spreadProps$g(__spreadValues$r({}, meta), {
38
+ meta = __spreadProps$h(__spreadValues$r({}, meta), {
40
39
  defaultStyles: __spreadValues$r({
41
40
  boxSizing: "border-box"
42
41
  }, (_a = meta.defaultStyles) != null ? _a : {})
43
42
  });
44
43
  if (overrides) {
45
- meta = __spreadProps$g(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
44
+ meta = __spreadProps$h(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
46
45
  props: __spreadValues$r(__spreadValues$r({}, meta.props), overrides.props)
47
46
  });
48
47
  if (overrides.parentComponentName) {
@@ -458,6 +457,22 @@ const ARIA_COMPONENTS_VARIANTS = {
458
457
  indeterminate: {
459
458
  cssSelector: "[data-indeterminate]",
460
459
  displayName: "Indeterminate"
460
+ },
461
+ placementLeft: {
462
+ cssSelector: "[data-placement]=left",
463
+ displayName: "Placement (Left)"
464
+ },
465
+ placementRight: {
466
+ cssSelector: "[data-placement]=right",
467
+ displayName: "Placement (Right)"
468
+ },
469
+ placementTop: {
470
+ cssSelector: "[data-placement]=top",
471
+ displayName: "Placement (Top)"
472
+ },
473
+ placementBottom: {
474
+ cssSelector: "[data-placement]=bottom",
475
+ displayName: "Placement (Bottom)"
461
476
  }
462
477
  };
463
478
  function ChangesObserver({
@@ -485,8 +500,8 @@ function pickAriaComponentVariants(keys) {
485
500
  }
486
501
 
487
502
  var __defProp$q = Object.defineProperty;
488
- var __defProps$f = Object.defineProperties;
489
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
503
+ var __defProps$g = Object.defineProperties;
504
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
490
505
  var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
491
506
  var __hasOwnProp$q = Object.prototype.hasOwnProperty;
492
507
  var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
@@ -502,8 +517,8 @@ var __spreadValues$q = (a, b) => {
502
517
  }
503
518
  return a;
504
519
  };
505
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
506
- var __objRest$o = (source, exclude) => {
520
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
521
+ var __objRest$n = (source, exclude) => {
507
522
  var target = {};
508
523
  for (var prop in source)
509
524
  if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -522,22 +537,24 @@ const BUTTON_VARIANTS = [
522
537
  "focusVisible",
523
538
  "disabled"
524
539
  ];
525
- const { variants: variants$d, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(BUTTON_VARIANTS);
526
- function BaseButton(props) {
527
- const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$o(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
528
- const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
529
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({ type }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$b(
530
- children,
531
- {
532
- hovered: isHovered,
533
- pressed: isPressed,
534
- focused: isFocused,
535
- focusVisible: isFocusVisible,
536
- disabled: isDisabled
537
- },
538
- plasmicUpdateVariant
539
- ));
540
- }
540
+ const { variants: variants$e, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(BUTTON_VARIANTS);
541
+ const BaseButton = React__default.default.forwardRef(
542
+ (props, ref) => {
543
+ const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$n(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
544
+ const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
545
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({ type, ref }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$c(
546
+ children,
547
+ {
548
+ hovered: isHovered,
549
+ pressed: isPressed,
550
+ focused: isFocused,
551
+ focusVisible: isFocusVisible,
552
+ disabled: isDisabled
553
+ },
554
+ plasmicUpdateVariant
555
+ ));
556
+ }
557
+ );
541
558
  const BUTTON_COMPONENT_NAME = makeComponentName("button");
542
559
  function registerButton(loader, overrides) {
543
560
  registerComponentHelper(
@@ -548,7 +565,7 @@ function registerButton(loader, overrides) {
548
565
  displayName: "Aria Button",
549
566
  importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
550
567
  importName: "BaseButton",
551
- variants: variants$d,
568
+ variants: variants$e,
552
569
  defaultStyles: {
553
570
  borderWidth: "1px",
554
571
  borderStyle: "solid",
@@ -556,7 +573,7 @@ function registerButton(loader, overrides) {
556
573
  padding: "2px 10px",
557
574
  cursor: "pointer"
558
575
  },
559
- props: __spreadProps$f(__spreadValues$q({}, getCommonProps("button", [
576
+ props: __spreadProps$g(__spreadValues$q({}, getCommonProps("button", [
560
577
  "autoFocus",
561
578
  "isDisabled",
562
579
  "aria-label"
@@ -608,8 +625,8 @@ React__default.default.createContext(void 0);
608
625
  const PlasmicInputContext = React__default.default.createContext(void 0);
609
626
 
610
627
  var __defProp$p = Object.defineProperty;
611
- var __defProps$e = Object.defineProperties;
612
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
628
+ var __defProps$f = Object.defineProperties;
629
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
613
630
  var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
614
631
  var __hasOwnProp$p = Object.prototype.hasOwnProperty;
615
632
  var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
@@ -625,8 +642,8 @@ var __spreadValues$p = (a, b) => {
625
642
  }
626
643
  return a;
627
644
  };
628
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
629
- var __objRest$n = (source, exclude) => {
645
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
646
+ var __objRest$m = (source, exclude) => {
630
647
  var target = {};
631
648
  for (var prop in source)
632
649
  if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -649,9 +666,9 @@ const CHECKBOX_VARIANTS = [
649
666
  "readonly",
650
667
  "selected"
651
668
  ];
652
- const { variants: variants$c, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
669
+ const { variants: variants$d, withObservedValues: withObservedValues$b } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
653
670
  function BaseCheckbox(props) {
654
- const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$n(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
671
+ const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$m(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
655
672
  const contextProps = React__default.default.useContext(PlasmicCheckboxGroupContext);
656
673
  setControlContextData == null ? void 0 : setControlContextData({
657
674
  parent: contextProps
@@ -665,7 +682,7 @@ function BaseCheckbox(props) {
665
682
  isIndeterminate,
666
683
  isSelected,
667
684
  isReadOnly
668
- }) => withObservedValues$a(
685
+ }) => withObservedValues$b(
669
686
  children,
670
687
  {
671
688
  hovered: isHovered,
@@ -735,8 +752,8 @@ function registerCheckbox(loader, overrides) {
735
752
  displayName: "Aria Checkbox",
736
753
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
737
754
  importName: "BaseCheckbox",
738
- variants: variants$c,
739
- props: __spreadProps$e(__spreadValues$p({}, getCommonProps("checkbox", [
755
+ variants: variants$d,
756
+ props: __spreadProps$f(__spreadValues$p({}, getCommonProps("checkbox", [
740
757
  "name",
741
758
  "isDisabled",
742
759
  "isReadOnly",
@@ -805,8 +822,8 @@ function registerCheckbox(loader, overrides) {
805
822
  }
806
823
 
807
824
  var __defProp$o = Object.defineProperty;
808
- var __defProps$d = Object.defineProperties;
809
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
825
+ var __defProps$e = Object.defineProperties;
826
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
810
827
  var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
811
828
  var __hasOwnProp$o = Object.prototype.hasOwnProperty;
812
829
  var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
@@ -822,8 +839,8 @@ var __spreadValues$o = (a, b) => {
822
839
  }
823
840
  return a;
824
841
  };
825
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
826
- var __objRest$m = (source, exclude) => {
842
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
843
+ var __objRest$l = (source, exclude) => {
827
844
  var target = {};
828
845
  for (var prop in source)
829
846
  if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -836,8 +853,8 @@ var __objRest$m = (source, exclude) => {
836
853
  return target;
837
854
  };
838
855
  function BaseText(_a) {
839
- var _b = _a, { children, slot, className } = _b, rest = __objRest$m(_b, ["children", "slot", "className"]);
840
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadProps$d(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
856
+ var _b = _a, { children, slot, className } = _b, rest = __objRest$l(_b, ["children", "slot", "className"]);
857
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadProps$e(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
841
858
  }
842
859
  const TEXT_COMPONENT_NAME = makeComponentName("text");
843
860
  function registerText(loader, overrides) {
@@ -872,8 +889,8 @@ function registerText(loader, overrides) {
872
889
  }
873
890
 
874
891
  var __defProp$n = Object.defineProperty;
875
- var __defProps$c = Object.defineProperties;
876
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
892
+ var __defProps$d = Object.defineProperties;
893
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
877
894
  var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
878
895
  var __hasOwnProp$n = Object.prototype.hasOwnProperty;
879
896
  var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
@@ -889,10 +906,10 @@ var __spreadValues$n = (a, b) => {
889
906
  }
890
907
  return a;
891
908
  };
892
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
909
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
893
910
  const DESCRIPTION_COMPONENT_NAME = makeComponentName("description");
894
911
  function registerDescription(loader, overrides) {
895
- return registerText(loader, __spreadProps$c(__spreadValues$n({}, overrides), {
912
+ return registerText(loader, __spreadProps$d(__spreadValues$n({}, overrides), {
896
913
  name: DESCRIPTION_COMPONENT_NAME,
897
914
  displayName: "Aria Description",
898
915
  props: {
@@ -921,7 +938,7 @@ var __spreadValues$m = (a, b) => {
921
938
  }
922
939
  return a;
923
940
  };
924
- var __objRest$l = (source, exclude) => {
941
+ var __objRest$k = (source, exclude) => {
925
942
  var target = {};
926
943
  for (var prop in source)
927
944
  if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -945,7 +962,7 @@ function BaseFieldError(_a) {
945
962
  tooShort,
946
963
  typeMismatch,
947
964
  valueMissing
948
- } = _b, rest = __objRest$l(_b, [
965
+ } = _b, rest = __objRest$k(_b, [
949
966
  "badInput",
950
967
  "customError",
951
968
  "patternMismatch",
@@ -1065,8 +1082,8 @@ function registerFieldError(loader, overrides) {
1065
1082
  }
1066
1083
 
1067
1084
  var __defProp$l = Object.defineProperty;
1068
- var __defProps$b = Object.defineProperties;
1069
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1085
+ var __defProps$c = Object.defineProperties;
1086
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1070
1087
  var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1071
1088
  var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1072
1089
  var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
@@ -1082,8 +1099,8 @@ var __spreadValues$l = (a, b) => {
1082
1099
  }
1083
1100
  return a;
1084
1101
  };
1085
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1086
- var __objRest$k = (source, exclude) => {
1102
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1103
+ var __objRest$j = (source, exclude) => {
1087
1104
  var target = {};
1088
1105
  for (var prop in source)
1089
1106
  if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1096,8 +1113,8 @@ var __objRest$k = (source, exclude) => {
1096
1113
  return target;
1097
1114
  };
1098
1115
  function BaseLabel(_a) {
1099
- var _b = _a, { children, className } = _b, rest = __objRest$k(_b, ["children", "className"]);
1100
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Label, __spreadProps$b(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
1116
+ var _b = _a, { children, className } = _b, rest = __objRest$j(_b, ["children", "className"]);
1117
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Label, __spreadProps$c(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
1101
1118
  }
1102
1119
  const LABEL_COMPONENT_NAME = makeComponentName("label");
1103
1120
  function registerLabel(loader, overrides) {
@@ -1129,8 +1146,8 @@ function registerLabel(loader, overrides) {
1129
1146
  }
1130
1147
 
1131
1148
  var __defProp$k = Object.defineProperty;
1132
- var __defProps$a = Object.defineProperties;
1133
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1149
+ var __defProps$b = Object.defineProperties;
1150
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1134
1151
  var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1135
1152
  var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1136
1153
  var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
@@ -1146,8 +1163,8 @@ var __spreadValues$k = (a, b) => {
1146
1163
  }
1147
1164
  return a;
1148
1165
  };
1149
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1150
- var __objRest$j = (source, exclude) => {
1166
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1167
+ var __objRest$i = (source, exclude) => {
1151
1168
  var target = {};
1152
1169
  for (var prop in source)
1153
1170
  if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1160,12 +1177,12 @@ var __objRest$j = (source, exclude) => {
1160
1177
  return target;
1161
1178
  };
1162
1179
  const CHECKBOX_GROUP_VARIANTS = ["disabled", "readonly"];
1163
- const { variants: variants$b, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
1180
+ const { variants: variants$c, withObservedValues: withObservedValues$a } = pickAriaComponentVariants(
1164
1181
  CHECKBOX_GROUP_VARIANTS
1165
1182
  );
1166
1183
  function BaseCheckboxGroup(props) {
1167
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$j(_a, ["children", "plasmicUpdateVariant"]);
1168
- return /* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadValues$k({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$9(
1184
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$i(_a, ["children", "plasmicUpdateVariant"]);
1185
+ return /* @__PURE__ */ React__default.default.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.CheckboxGroup, __spreadValues$k({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$a(
1169
1186
  children,
1170
1187
  {
1171
1188
  disabled: isDisabled,
@@ -1193,8 +1210,8 @@ function registerCheckboxGroup(loader, overrides) {
1193
1210
  displayName: "Aria Checkbox Group",
1194
1211
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
1195
1212
  importName: "BaseCheckboxGroup",
1196
- variants: variants$b,
1197
- props: __spreadProps$a(__spreadValues$k({}, getCommonProps("checkbox group", [
1213
+ variants: variants$c,
1214
+ props: __spreadProps$b(__spreadValues$k({}, getCommonProps("checkbox group", [
1198
1215
  "name",
1199
1216
  "isDisabled",
1200
1217
  "isReadOnly",
@@ -1348,6 +1365,7 @@ class ListBoxItemIdManager {
1348
1365
  }
1349
1366
  subscribe(observer) {
1350
1367
  this._observers.add(observer);
1368
+ observer(this.ids);
1351
1369
  }
1352
1370
  // Notify all observers about an event.
1353
1371
  notify() {
@@ -1374,7 +1392,7 @@ var __spreadValues$j = (a, b) => {
1374
1392
  }
1375
1393
  return a;
1376
1394
  };
1377
- var __objRest$i = (source, exclude) => {
1395
+ var __objRest$h = (source, exclude) => {
1378
1396
  var target = {};
1379
1397
  for (var prop in source)
1380
1398
  if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1391,7 +1409,7 @@ const INPUT_VARIANTS = [
1391
1409
  "hovered",
1392
1410
  "disabled"
1393
1411
  ];
1394
- const { variants: variants$a } = pickAriaComponentVariants(INPUT_VARIANTS);
1412
+ const { variants: variants$b } = pickAriaComponentVariants(INPUT_VARIANTS);
1395
1413
  const inputHelpers$1 = {
1396
1414
  states: {
1397
1415
  value: {
@@ -1409,7 +1427,7 @@ function BaseInput(props) {
1409
1427
  disabled,
1410
1428
  autoComplete,
1411
1429
  value
1412
- } = _a, rest = __objRest$i(_a, [
1430
+ } = _a, rest = __objRest$h(_a, [
1413
1431
  "plasmicUpdateVariant",
1414
1432
  "setControlContextData",
1415
1433
  "disabled",
@@ -1472,7 +1490,7 @@ function registerInput(loader, overrides) {
1472
1490
  displayName: "Aria Input",
1473
1491
  importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
1474
1492
  importName: "BaseInput",
1475
- variants: variants$a,
1493
+ variants: variants$b,
1476
1494
  defaultStyles: {
1477
1495
  width: "300px",
1478
1496
  borderWidth: "1px",
@@ -1544,7 +1562,7 @@ var __spreadValues$i = (a, b) => {
1544
1562
  }
1545
1563
  return a;
1546
1564
  };
1547
- var __objRest$h = (source, exclude) => {
1565
+ var __objRest$g = (source, exclude) => {
1548
1566
  var target = {};
1549
1567
  for (var prop in source)
1550
1568
  if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1564,11 +1582,11 @@ const LIST_BOX_ITEM_VARIANTS = [
1564
1582
  "selected",
1565
1583
  "disabled"
1566
1584
  ];
1567
- const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(
1585
+ const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
1568
1586
  LIST_BOX_ITEM_VARIANTS
1569
1587
  );
1570
1588
  function BaseListBoxItem(props) {
1571
- const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$h(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
1589
+ const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$g(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
1572
1590
  const listboxContext = React__default.default.useContext(PlasmicListBoxContext);
1573
1591
  const isStandalone = !listboxContext;
1574
1592
  const [registeredId, setRegisteredId] = React.useState();
@@ -1607,7 +1625,7 @@ function BaseListBoxItem(props) {
1607
1625
  isFocusVisible,
1608
1626
  isSelected,
1609
1627
  isDisabled
1610
- }) => withObservedValues$8(
1628
+ }) => withObservedValues$9(
1611
1629
  children,
1612
1630
  {
1613
1631
  hovered: isHovered,
@@ -1670,7 +1688,7 @@ function registerListBoxItem(loader, overrides) {
1670
1688
  displayName: "Aria ListBoxItem",
1671
1689
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
1672
1690
  importName: "BaseListBoxItem",
1673
- variants: variants$9,
1691
+ variants: variants$a,
1674
1692
  props: {
1675
1693
  id: {
1676
1694
  type: "string",
@@ -1717,7 +1735,7 @@ var __spreadValues$h = (a, b) => {
1717
1735
  }
1718
1736
  return a;
1719
1737
  };
1720
- var __objRest$g = (source, exclude) => {
1738
+ var __objRest$f = (source, exclude) => {
1721
1739
  var target = {};
1722
1740
  for (var prop in source)
1723
1741
  if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1730,7 +1748,7 @@ var __objRest$g = (source, exclude) => {
1730
1748
  return target;
1731
1749
  };
1732
1750
  function BaseSection(props) {
1733
- const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
1751
+ const _a = props, { header, items } = _a, rest = __objRest$f(_a, ["header", "items"]);
1734
1752
  const contextProps = React__default.default.useContext(PlasmicListBoxContext);
1735
1753
  const mergedProps = utils.mergeProps(contextProps, rest);
1736
1754
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, null, header), items);
@@ -1786,7 +1804,7 @@ var __spreadValues$g = (a, b) => {
1786
1804
  }
1787
1805
  return a;
1788
1806
  };
1789
- var __objRest$f = (source, exclude) => {
1807
+ var __objRest$e = (source, exclude) => {
1790
1808
  var target = {};
1791
1809
  for (var prop in source)
1792
1810
  if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1816,7 +1834,7 @@ function BaseListBox(props) {
1816
1834
  children,
1817
1835
  selectedKeys,
1818
1836
  defaultSelectedKeys
1819
- } = _a, rest = __objRest$f(_a, [
1837
+ } = _a, rest = __objRest$e(_a, [
1820
1838
  "setControlContextData",
1821
1839
  "children",
1822
1840
  "selectedKeys",
@@ -1833,7 +1851,6 @@ function BaseListBox(props) {
1833
1851
  []
1834
1852
  );
1835
1853
  React.useEffect(() => {
1836
- console.log("sarah useEffect", { setControlContextData, ids });
1837
1854
  setControlContextData == null ? void 0 : setControlContextData({
1838
1855
  itemIds: ids,
1839
1856
  isStandalone
@@ -2049,7 +2066,7 @@ var __spreadValues$f = (a, b) => {
2049
2066
  }
2050
2067
  return a;
2051
2068
  };
2052
- var __objRest$e = (source, exclude) => {
2069
+ var __objRest$d = (source, exclude) => {
2053
2070
  var target = {};
2054
2071
  for (var prop in source)
2055
2072
  if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2063,7 +2080,7 @@ var __objRest$e = (source, exclude) => {
2063
2080
  };
2064
2081
  function BasePopover(props) {
2065
2082
  var _b;
2066
- const _a = props, { resetClassName, setControlContextData } = _a, restProps = __objRest$e(_a, ["resetClassName", "setControlContextData"]);
2083
+ const _a = props, { resetClassName, setControlContextData } = _a, restProps = __objRest$d(_a, ["resetClassName", "setControlContextData"]);
2067
2084
  const isStandalone = !React__default.default.useContext(reactAriaComponents.PopoverContext);
2068
2085
  const context = React__default.default.useContext(PlasmicPopoverContext);
2069
2086
  const triggerRef = React__default.default.useRef(null);
@@ -2197,8 +2214,8 @@ function registerPopover(loader, overrides) {
2197
2214
  }
2198
2215
 
2199
2216
  var __defProp$e = Object.defineProperty;
2200
- var __defProps$9 = Object.defineProperties;
2201
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2217
+ var __defProps$a = Object.defineProperties;
2218
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2202
2219
  var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2203
2220
  var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2204
2221
  var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
@@ -2214,8 +2231,8 @@ var __spreadValues$e = (a, b) => {
2214
2231
  }
2215
2232
  return a;
2216
2233
  };
2217
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2218
- var __objRest$d = (source, exclude) => {
2234
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2235
+ var __objRest$c = (source, exclude) => {
2219
2236
  var target = {};
2220
2237
  for (var prop in source)
2221
2238
  if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2246,7 +2263,7 @@ function ComboboxAutoOpen(props) {
2246
2263
  return null;
2247
2264
  }
2248
2265
  function BaseComboBox(props) {
2249
- const _a = props, { children, setControlContextData, isOpen } = _a, rest = __objRest$d(_a, ["children", "setControlContextData", "isOpen"]);
2266
+ const _a = props, { children, setControlContextData, isOpen } = _a, rest = __objRest$c(_a, ["children", "setControlContextData", "isOpen"]);
2250
2267
  const idManager = React.useMemo(() => new ListBoxItemIdManager(), []);
2251
2268
  React.useEffect(() => {
2252
2269
  idManager.subscribe((ids) => {
@@ -2277,7 +2294,7 @@ function registerComboBox(loader) {
2277
2294
  displayName: "Aria ComboBox",
2278
2295
  importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
2279
2296
  importName: "BaseComboBox",
2280
- props: __spreadProps$9(__spreadValues$e({}, getCommonProps("ComboBox", [
2297
+ props: __spreadProps$a(__spreadValues$e({}, getCommonProps("ComboBox", [
2281
2298
  "name",
2282
2299
  "aria-label",
2283
2300
  "placeholder",
@@ -2427,7 +2444,7 @@ var __spreadValues$d = (a, b) => {
2427
2444
  }
2428
2445
  return a;
2429
2446
  };
2430
- var __objRest$c = (source, exclude) => {
2447
+ var __objRest$b = (source, exclude) => {
2431
2448
  var target = {};
2432
2449
  for (var prop in source)
2433
2450
  if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2440,7 +2457,7 @@ var __objRest$c = (source, exclude) => {
2440
2457
  return target;
2441
2458
  };
2442
2459
  function BaseHeading(_a) {
2443
- var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
2460
+ var _b = _a, { children } = _b, rest = __objRest$b(_b, ["children"]);
2444
2461
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Heading, __spreadValues$d({}, rest), children);
2445
2462
  }
2446
2463
  const HEADING_COMPONENT_NAME = makeComponentName("heading");
@@ -2480,8 +2497,8 @@ function registerHeading(loader, overrides) {
2480
2497
  }
2481
2498
 
2482
2499
  var __defProp$c = Object.defineProperty;
2483
- var __defProps$8 = Object.defineProperties;
2484
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2500
+ var __defProps$9 = Object.defineProperties;
2501
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2485
2502
  var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2486
2503
  var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2487
2504
  var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
@@ -2497,8 +2514,8 @@ var __spreadValues$c = (a, b) => {
2497
2514
  }
2498
2515
  return a;
2499
2516
  };
2500
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2501
- var __objRest$b = (source, exclude) => {
2517
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2518
+ var __objRest$a = (source, exclude) => {
2502
2519
  var target = {};
2503
2520
  for (var prop in source)
2504
2521
  if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2522,20 +2539,31 @@ const BaseModal = React.forwardRef(
2522
2539
  className,
2523
2540
  isOpen,
2524
2541
  resetClassName,
2525
- setControlContextData
2526
- } = _a, rest = __objRest$b(_a, [
2542
+ setControlContextData,
2543
+ isDismissable
2544
+ } = _a, rest = __objRest$a(_a, [
2527
2545
  "children",
2528
2546
  "modalOverlayClass",
2529
2547
  "className",
2530
2548
  "isOpen",
2531
2549
  "resetClassName",
2532
- "setControlContextData"
2550
+ "setControlContextData",
2551
+ "isDismissable"
2533
2552
  ]);
2534
2553
  const { isSelected } = (_b = host.usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
2535
2554
  const contextProps = React__default.default.useContext(PlasmicDialogTriggerContext);
2536
2555
  const isStandalone = !contextProps;
2537
2556
  const mergedProps = reactAria.mergeProps(contextProps, rest, {
2538
- isOpen: isStandalone ? isSelected || isOpen : contextProps.isOpen
2557
+ isOpen: isStandalone ? isSelected || isOpen : contextProps.isOpen,
2558
+ /*
2559
+ isDismissable on canvas (non-interactive mode) causes the following two issues:
2560
+ 1. Clicking anywhere inside the modal dismisses it
2561
+ 2. If the modal is auto-opened due to selection in outline tab, the modal stays open despite issue #1, but the text elements inside the modal are no longer selectable, and therefore the text or headings inside the modal are not editable.
2562
+
2563
+ To fix the above issue, we set an interim isDismissable state to false while the modal is auto-open (`isSelected` is true).
2564
+ Also note that `isSelected` can only be true in canvas (non-interactive mode), so we can safely (temporarily) set `isDismissable` to false in this case, because it only matters in interactive mode.
2565
+ */
2566
+ isDismissable: isSelected ? false : isDismissable
2539
2567
  });
2540
2568
  setControlContextData == null ? void 0 : setControlContextData({
2541
2569
  parent: isStandalone ? void 0 : {}
@@ -2555,7 +2583,7 @@ const BaseModal = React.forwardRef(
2555
2583
  const bodyInPreview = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Dialog, { style: INLINE_STYLES }, children);
2556
2584
  return /* @__PURE__ */ React__default.default.createElement(
2557
2585
  reactAriaComponents.ModalOverlay,
2558
- __spreadProps$8(__spreadValues$c({}, mergedProps), {
2586
+ __spreadProps$9(__spreadValues$c({}, mergedProps), {
2559
2587
  className: `${resetClassName} ${modalOverlayClass}`
2560
2588
  }),
2561
2589
  /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Modal, { className }, isCanvas ? bodyInCanvas : bodyInPreview)
@@ -2677,8 +2705,8 @@ function registerModal(loader, overrides) {
2677
2705
  }
2678
2706
 
2679
2707
  var __defProp$b = Object.defineProperty;
2680
- var __defProps$7 = Object.defineProperties;
2681
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2708
+ var __defProps$8 = Object.defineProperties;
2709
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2682
2710
  var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2683
2711
  var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2684
2712
  var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
@@ -2694,8 +2722,8 @@ var __spreadValues$b = (a, b) => {
2694
2722
  }
2695
2723
  return a;
2696
2724
  };
2697
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2698
- var __objRest$a = (source, exclude) => {
2725
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2726
+ var __objRest$9 = (source, exclude) => {
2699
2727
  var target = {};
2700
2728
  for (var prop in source)
2701
2729
  if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2709,10 +2737,10 @@ var __objRest$a = (source, exclude) => {
2709
2737
  };
2710
2738
  function BaseDialogTrigger(props) {
2711
2739
  var _b, _c;
2712
- const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$a(_a, ["trigger", "dialog", "isOpen"]);
2740
+ const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$9(_a, ["trigger", "dialog", "isOpen"]);
2713
2741
  const { isSelected, selectedSlotName } = (_b = host.usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
2714
2742
  const isAutoOpen = selectedSlotName !== "trigger" && isSelected;
2715
- const mergedProps = __spreadProps$7(__spreadValues$b({}, rest), {
2743
+ const mergedProps = __spreadProps$8(__spreadValues$b({}, rest), {
2716
2744
  isOpen: (_c = isAutoOpen || isOpen) != null ? _c : false
2717
2745
  });
2718
2746
  return /* @__PURE__ */ React__default.default.createElement(PlasmicDialogTriggerContext.Provider, { value: mergedProps }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.DialogTrigger, __spreadValues$b({}, mergedProps), trigger, dialog));
@@ -2776,8 +2804,8 @@ function registerDialogTrigger(loader, overrides) {
2776
2804
  }
2777
2805
 
2778
2806
  var __defProp$a = Object.defineProperty;
2779
- var __defProps$6 = Object.defineProperties;
2780
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2807
+ var __defProps$7 = Object.defineProperties;
2808
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2781
2809
  var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2782
2810
  var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2783
2811
  var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
@@ -2793,8 +2821,8 @@ var __spreadValues$a = (a, b) => {
2793
2821
  }
2794
2822
  return a;
2795
2823
  };
2796
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2797
- var __objRest$9 = (source, exclude) => {
2824
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2825
+ var __objRest$8 = (source, exclude) => {
2798
2826
  var target = {};
2799
2827
  for (var prop in source)
2800
2828
  if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2816,9 +2844,9 @@ const RADIO_VARIANTS = [
2816
2844
  "readonly",
2817
2845
  "selected"
2818
2846
  ];
2819
- const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_VARIANTS);
2847
+ const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
2820
2848
  function BaseRadio(props) {
2821
- const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$9(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
2849
+ const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
2822
2850
  const contextProps = React__default.default.useContext(PlasmicRadioGroupContext);
2823
2851
  const isStandalone = !contextProps;
2824
2852
  setControlContextData == null ? void 0 : setControlContextData({
@@ -2832,7 +2860,7 @@ function BaseRadio(props) {
2832
2860
  isSelected,
2833
2861
  isDisabled,
2834
2862
  isReadOnly
2835
- }) => withObservedValues$7(
2863
+ }) => withObservedValues$8(
2836
2864
  children,
2837
2865
  {
2838
2866
  hovered: isHovered,
@@ -2891,8 +2919,8 @@ function registerRadio(loader, overrides) {
2891
2919
  displayName: "Aria Radio",
2892
2920
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
2893
2921
  importName: "BaseRadio",
2894
- variants: variants$8,
2895
- props: __spreadProps$6(__spreadValues$a({}, getCommonProps("radio", [
2922
+ variants: variants$9,
2923
+ props: __spreadProps$7(__spreadValues$a({}, getCommonProps("radio", [
2896
2924
  "isDisabled",
2897
2925
  "autoFocus",
2898
2926
  "aria-label"
@@ -2914,8 +2942,8 @@ function registerRadio(loader, overrides) {
2914
2942
  }
2915
2943
 
2916
2944
  var __defProp$9 = Object.defineProperty;
2917
- var __defProps$5 = Object.defineProperties;
2918
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2945
+ var __defProps$6 = Object.defineProperties;
2946
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2919
2947
  var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2920
2948
  var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2921
2949
  var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
@@ -2931,8 +2959,8 @@ var __spreadValues$9 = (a, b) => {
2931
2959
  }
2932
2960
  return a;
2933
2961
  };
2934
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2935
- var __objRest$8 = (source, exclude) => {
2962
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2963
+ var __objRest$7 = (source, exclude) => {
2936
2964
  var target = {};
2937
2965
  for (var prop in source)
2938
2966
  if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2945,10 +2973,10 @@ var __objRest$8 = (source, exclude) => {
2945
2973
  return target;
2946
2974
  };
2947
2975
  const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
2948
- const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
2976
+ const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
2949
2977
  function BaseRadioGroup(props) {
2950
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant"]);
2951
- return /* @__PURE__ */ React__default.default.createElement(PlasmicRadioGroupContext.Provider, { value: props }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.RadioGroup, __spreadValues$9({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$6(
2978
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$7(_a, ["children", "plasmicUpdateVariant"]);
2979
+ return /* @__PURE__ */ React__default.default.createElement(PlasmicRadioGroupContext.Provider, { value: props }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.RadioGroup, __spreadValues$9({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$7(
2952
2980
  children,
2953
2981
  {
2954
2982
  disabled: isDisabled,
@@ -2974,8 +3002,8 @@ function registerRadioGroup(loader, overrides) {
2974
3002
  displayName: "Aria RadioGroup",
2975
3003
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
2976
3004
  importName: "BaseRadioGroup",
2977
- variants: variants$7,
2978
- props: __spreadProps$5(__spreadValues$9({}, getCommonProps("radio group", [
3005
+ variants: variants$8,
3006
+ props: __spreadProps$6(__spreadValues$9({}, getCommonProps("radio group", [
2979
3007
  "name",
2980
3008
  "isDisabled",
2981
3009
  "isReadOnly",
@@ -3081,8 +3109,8 @@ function registerRadioGroup(loader, overrides) {
3081
3109
  }
3082
3110
 
3083
3111
  var __defProp$8 = Object.defineProperty;
3084
- var __defProps$4 = Object.defineProperties;
3085
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3112
+ var __defProps$5 = Object.defineProperties;
3113
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
3086
3114
  var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3087
3115
  var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3088
3116
  var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
@@ -3098,7 +3126,7 @@ var __spreadValues$8 = (a, b) => {
3098
3126
  }
3099
3127
  return a;
3100
3128
  };
3101
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3129
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
3102
3130
  const BaseSelectValue = (props) => {
3103
3131
  const { children, customize } = props;
3104
3132
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SelectValue, null, ({ isPlaceholder, selectedText }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isPlaceholder ? /* @__PURE__ */ React__default.default.createElement("span", null, "Select an item") : /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement("span", null, customize ? children : selectedText))));
@@ -3202,7 +3230,7 @@ function registerSelect(loader) {
3202
3230
  displayName: "Aria Select",
3203
3231
  importPath: "@plasmicpkgs/react-aria/skinny/registerSelect",
3204
3232
  importName: "BaseSelect",
3205
- props: __spreadProps$4(__spreadValues$8({}, getCommonProps("Select", [
3233
+ props: __spreadProps$5(__spreadValues$8({}, getCommonProps("Select", [
3206
3234
  "name",
3207
3235
  "aria-label",
3208
3236
  "placeholder",
@@ -3359,7 +3387,7 @@ var __spreadValues$7 = (a, b) => {
3359
3387
  }
3360
3388
  return a;
3361
3389
  };
3362
- var __objRest$7 = (source, exclude) => {
3390
+ var __objRest$6 = (source, exclude) => {
3363
3391
  var target = {};
3364
3392
  for (var prop in source)
3365
3393
  if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3372,12 +3400,12 @@ var __objRest$7 = (source, exclude) => {
3372
3400
  return target;
3373
3401
  };
3374
3402
  const SLIDER_OUTPUT_VARIANTS = ["disabled"];
3375
- const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3403
+ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(
3376
3404
  SLIDER_OUTPUT_VARIANTS
3377
3405
  );
3378
3406
  function BaseSliderOutput(props) {
3379
- const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
3380
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderOutput, __spreadValues$7({}, rest), ({ isDisabled }) => withObservedValues$5(
3407
+ const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$6(_a, ["plasmicUpdateVariant", "children"]);
3408
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderOutput, __spreadValues$7({}, rest), ({ isDisabled }) => withObservedValues$6(
3381
3409
  children,
3382
3410
  {
3383
3411
  disabled: isDisabled
@@ -3395,7 +3423,7 @@ function registerSliderOutput(loader, overrides) {
3395
3423
  displayName: "Aria Slider Output",
3396
3424
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderOutput",
3397
3425
  importName: "BaseSliderOutput",
3398
- variants: variants$6,
3426
+ variants: variants$7,
3399
3427
  props: {
3400
3428
  children: {
3401
3429
  mergeWithParent: true,
@@ -3425,8 +3453,8 @@ class ErrorBoundary extends React.Component {
3425
3453
  }
3426
3454
 
3427
3455
  var __defProp$6 = Object.defineProperty;
3428
- var __defProps$3 = Object.defineProperties;
3429
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3456
+ var __defProps$4 = Object.defineProperties;
3457
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3430
3458
  var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3431
3459
  var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3432
3460
  var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
@@ -3442,8 +3470,8 @@ var __spreadValues$6 = (a, b) => {
3442
3470
  }
3443
3471
  return a;
3444
3472
  };
3445
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3446
- var __objRest$6 = (source, exclude) => {
3473
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3474
+ var __objRest$5 = (source, exclude) => {
3447
3475
  var target = {};
3448
3476
  for (var prop in source)
3449
3477
  if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3462,7 +3490,7 @@ const SLIDER_THUMB_VARIANTS = [
3462
3490
  "focusVisible",
3463
3491
  "disabled"
3464
3492
  ];
3465
- const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3493
+ const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3466
3494
  SLIDER_THUMB_VARIANTS
3467
3495
  );
3468
3496
  function BaseSliderThumb(_a) {
@@ -3470,14 +3498,14 @@ function BaseSliderThumb(_a) {
3470
3498
  children,
3471
3499
  advanced,
3472
3500
  plasmicUpdateVariant
3473
- } = _b, rest = __objRest$6(_b, [
3501
+ } = _b, rest = __objRest$5(_b, [
3474
3502
  "children",
3475
3503
  "advanced",
3476
3504
  "plasmicUpdateVariant"
3477
3505
  ]);
3478
3506
  const context = React__default.default.useContext(PlasmicSliderContext);
3479
3507
  const mergedProps = reactAria.mergeProps(context, rest);
3480
- const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadValues$6({}, mergedProps), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$4(
3508
+ const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadValues$6({}, mergedProps), ({ isDragging, isHovered, isFocused, isFocusVisible, isDisabled }) => withObservedValues$5(
3481
3509
  /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, advanced ? children : void 0),
3482
3510
  {
3483
3511
  dragging: isDragging,
@@ -3515,8 +3543,8 @@ function registerSliderThumb(loader, overrides) {
3515
3543
  borderRadius: "100%",
3516
3544
  cursor: "pointer"
3517
3545
  },
3518
- variants: variants$5,
3519
- props: __spreadProps$3(__spreadValues$6({}, getCommonProps("slider thumb", [
3546
+ variants: variants$6,
3547
+ props: __spreadProps$4(__spreadValues$6({}, getCommonProps("slider thumb", [
3520
3548
  "name",
3521
3549
  "isDisabled",
3522
3550
  "autoFocus"
@@ -3554,7 +3582,7 @@ var __spreadValues$5 = (a, b) => {
3554
3582
  }
3555
3583
  return a;
3556
3584
  };
3557
- var __objRest$5 = (source, exclude) => {
3585
+ var __objRest$4 = (source, exclude) => {
3558
3586
  var target = {};
3559
3587
  for (var prop in source)
3560
3588
  if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3567,7 +3595,7 @@ var __objRest$5 = (source, exclude) => {
3567
3595
  return target;
3568
3596
  };
3569
3597
  const SLIDER_TRACK_VARIANTS = ["hovered"];
3570
- const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
3598
+ const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3571
3599
  SLIDER_TRACK_VARIANTS
3572
3600
  );
3573
3601
  function findMinMaxIndices(values) {
@@ -3592,7 +3620,7 @@ function BaseSliderTrack(props) {
3592
3620
  const context = React__default.default.useContext(PlasmicSliderContext);
3593
3621
  const isStandalone = !context;
3594
3622
  const mergedProps = reactAria.mergeProps(context, props);
3595
- const _a = mergedProps, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$5(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
3623
+ const _a = mergedProps, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
3596
3624
  const isMultiValue = isMultiValueGuard(mergedProps.value);
3597
3625
  const { minIndex, maxIndex } = React.useMemo(() => {
3598
3626
  if (!context || !Array.isArray(context.value) || context.value.length <= 1) {
@@ -3624,7 +3652,7 @@ function BaseSliderTrack(props) {
3624
3652
  });
3625
3653
  });
3626
3654
  }, [children, context == null ? void 0 : context.value]);
3627
- 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(
3655
+ 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(
3628
3656
  /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
3629
3657
  "div",
3630
3658
  {
@@ -3658,7 +3686,7 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
3658
3686
  displayName: "Aria Slider Track",
3659
3687
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderTrack",
3660
3688
  importName: "BaseSliderTrack",
3661
- variants: variants$4,
3689
+ variants: variants$5,
3662
3690
  defaultStyles: {
3663
3691
  width: "stretch",
3664
3692
  backgroundColor: "#aaa",
@@ -3720,8 +3748,8 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
3720
3748
  }
3721
3749
 
3722
3750
  var __defProp$4 = Object.defineProperty;
3723
- var __defProps$2 = Object.defineProperties;
3724
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3751
+ var __defProps$3 = Object.defineProperties;
3752
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3725
3753
  var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3726
3754
  var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3727
3755
  var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
@@ -3737,8 +3765,8 @@ var __spreadValues$4 = (a, b) => {
3737
3765
  }
3738
3766
  return a;
3739
3767
  };
3740
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3741
- var __objRest$4 = (source, exclude) => {
3768
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3769
+ var __objRest$3 = (source, exclude) => {
3742
3770
  var target = {};
3743
3771
  for (var prop in source)
3744
3772
  if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3753,19 +3781,19 @@ var __objRest$4 = (source, exclude) => {
3753
3781
  const SLIDER_COMPONENT_NAME = makeComponentName("slider");
3754
3782
  const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
3755
3783
  const SLIDER_VARIANTS = ["disabled"];
3756
- const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SLIDER_VARIANTS);
3784
+ const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
3757
3785
  function BaseSlider(props) {
3758
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
3786
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
3759
3787
  return /* @__PURE__ */ React__default.default.createElement(
3760
3788
  PlasmicSliderContext.Provider,
3761
3789
  {
3762
- value: __spreadProps$2(__spreadValues$4({}, rest), {
3790
+ value: __spreadProps$3(__spreadValues$4({}, rest), {
3763
3791
  // Here's why the type casting is needed here: https://github.com/Microsoft/TypeScript/issues/3410
3764
3792
  onChange: rest.onChange,
3765
3793
  onChangeEnd: rest.onChangeEnd
3766
3794
  })
3767
3795
  },
3768
- /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, __spreadValues$4({}, rest), ({ isDisabled }) => withObservedValues$2(
3796
+ /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, __spreadValues$4({}, rest), ({ isDisabled }) => withObservedValues$3(
3769
3797
  children,
3770
3798
  {
3771
3799
  disabled: isDisabled
@@ -3817,11 +3845,11 @@ function registerSlider(loader, overrides) {
3817
3845
  displayName: "Aria Range Slider",
3818
3846
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
3819
3847
  importName: "BaseSlider",
3820
- variants: variants$3,
3848
+ variants: variants$4,
3821
3849
  defaultStyles: {
3822
3850
  width: "300px"
3823
3851
  },
3824
- props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3852
+ props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3825
3853
  "isDisabled",
3826
3854
  "aria-label"
3827
3855
  ])), getCommonSliderProps()), {
@@ -3929,11 +3957,11 @@ function registerSlider(loader, overrides) {
3929
3957
  displayName: "Aria Slider",
3930
3958
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
3931
3959
  importName: "BaseSlider",
3932
- variants: variants$3,
3960
+ variants: variants$4,
3933
3961
  defaultStyles: {
3934
3962
  width: "300px"
3935
3963
  },
3936
- props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3964
+ props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3937
3965
  "isDisabled",
3938
3966
  "aria-label"
3939
3967
  ])), getCommonSliderProps()), {
@@ -4009,8 +4037,8 @@ function registerSlider(loader, overrides) {
4009
4037
  }
4010
4038
 
4011
4039
  var __defProp$3 = Object.defineProperty;
4012
- var __defProps$1 = Object.defineProperties;
4013
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4040
+ var __defProps$2 = Object.defineProperties;
4041
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4014
4042
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4015
4043
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4016
4044
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
@@ -4026,8 +4054,8 @@ var __spreadValues$3 = (a, b) => {
4026
4054
  }
4027
4055
  return a;
4028
4056
  };
4029
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4030
- var __objRest$3 = (source, exclude) => {
4057
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4058
+ var __objRest$2 = (source, exclude) => {
4031
4059
  var target = {};
4032
4060
  for (var prop in source)
4033
4061
  if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4048,9 +4076,9 @@ const SWITCH_VARIANTS = [
4048
4076
  "disabled",
4049
4077
  "readonly"
4050
4078
  ];
4051
- const { variants: variants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4079
+ const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4052
4080
  function BaseSwitch(props) {
4053
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
4081
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$2(_a, ["children", "plasmicUpdateVariant"]);
4054
4082
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Switch, __spreadValues$3({}, rest), ({
4055
4083
  isHovered,
4056
4084
  isPressed,
@@ -4059,7 +4087,7 @@ function BaseSwitch(props) {
4059
4087
  isSelected,
4060
4088
  isDisabled,
4061
4089
  isReadOnly
4062
- }) => withObservedValues$1(
4090
+ }) => withObservedValues$2(
4063
4091
  children,
4064
4092
  {
4065
4093
  hovered: isHovered,
@@ -4082,7 +4110,7 @@ function registerSwitch(loader, overrides) {
4082
4110
  displayName: "Aria Switch",
4083
4111
  importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
4084
4112
  importName: "BaseSwitch",
4085
- variants: variants$2,
4113
+ variants: variants$3,
4086
4114
  defaultStyles: {
4087
4115
  display: "flex",
4088
4116
  flexDirection: "column",
@@ -4090,7 +4118,7 @@ function registerSwitch(loader, overrides) {
4090
4118
  justifyContent: "flex-start",
4091
4119
  padding: 0
4092
4120
  },
4093
- props: __spreadProps$1(__spreadValues$3({}, getCommonProps("switch", [
4121
+ props: __spreadProps$2(__spreadValues$3({}, getCommonProps("switch", [
4094
4122
  "name",
4095
4123
  "isDisabled",
4096
4124
  "isReadOnly",
@@ -4216,7 +4244,7 @@ var __spreadValues$2 = (a, b) => {
4216
4244
  }
4217
4245
  return a;
4218
4246
  };
4219
- var __objRest$2 = (source, exclude) => {
4247
+ var __objRest$1 = (source, exclude) => {
4220
4248
  var target = {};
4221
4249
  for (var prop in source)
4222
4250
  if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4233,7 +4261,7 @@ const TEXTAREA_VARIANTS = [
4233
4261
  "hovered",
4234
4262
  "disabled"
4235
4263
  ];
4236
- const { variants: variants$1 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4264
+ const { variants: variants$2 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4237
4265
  const inputHelpers = {
4238
4266
  states: {
4239
4267
  value: {
@@ -4245,7 +4273,7 @@ const inputHelpers = {
4245
4273
  };
4246
4274
  function BaseTextArea(props) {
4247
4275
  var _b;
4248
- const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$2(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
4276
+ const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$1(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
4249
4277
  const textFieldContext = React__default.default.useContext(PlasmicTextFieldContext);
4250
4278
  const mergedProps = reactAria.mergeProps(rest, {
4251
4279
  disabled: (_b = textFieldContext == null ? void 0 : textFieldContext.isDisabled) != null ? _b : disabled
@@ -4288,7 +4316,7 @@ function registerTextArea(loader, overrides) {
4288
4316
  displayName: "Aria TextArea",
4289
4317
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
4290
4318
  importName: "BaseTextArea",
4291
- variants: variants$1,
4319
+ variants: variants$2,
4292
4320
  props: __spreadValues$2({}, getCommonProps("Text Area", [
4293
4321
  "name",
4294
4322
  "disabled",
@@ -4335,8 +4363,8 @@ function registerTextArea(loader, overrides) {
4335
4363
  }
4336
4364
 
4337
4365
  var __defProp$1 = Object.defineProperty;
4338
- var __defProps = Object.defineProperties;
4339
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4366
+ var __defProps$1 = Object.defineProperties;
4367
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4340
4368
  var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
4341
4369
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
4342
4370
  var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
@@ -4352,8 +4380,8 @@ var __spreadValues$1 = (a, b) => {
4352
4380
  }
4353
4381
  return a;
4354
4382
  };
4355
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4356
- var __objRest$1 = (source, exclude) => {
4383
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4384
+ var __objRest = (source, exclude) => {
4357
4385
  var target = {};
4358
4386
  for (var prop in source)
4359
4387
  if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4366,10 +4394,10 @@ var __objRest$1 = (source, exclude) => {
4366
4394
  return target;
4367
4395
  };
4368
4396
  const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
4369
- const { variants, withObservedValues } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4397
+ const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4370
4398
  function BaseTextField(props) {
4371
- const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4372
- return /* @__PURE__ */ React__default.default.createElement(PlasmicTextFieldContext.Provider, { value: props }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.TextField, __spreadValues$1({ autoComplete: resolveAutoComplete(autoComplete) }, rest), ({ isDisabled, isReadOnly }) => withObservedValues(
4399
+ const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4400
+ return /* @__PURE__ */ React__default.default.createElement(PlasmicTextFieldContext.Provider, { value: props }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.TextField, __spreadValues$1({ autoComplete: resolveAutoComplete(autoComplete) }, rest), ({ isDisabled, isReadOnly }) => withObservedValues$1(
4373
4401
  children,
4374
4402
  {
4375
4403
  disabled: isDisabled,
@@ -4388,9 +4416,9 @@ function registerTextField(loader, overrides) {
4388
4416
  displayName: "Aria TextField",
4389
4417
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
4390
4418
  importName: "BaseTextField",
4391
- variants,
4419
+ variants: variants$1,
4392
4420
  // TODO: Support for validate prop
4393
- props: __spreadProps(__spreadValues$1({}, getCommonProps("Text Field", [
4421
+ props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
4394
4422
  "name",
4395
4423
  "isDisabled",
4396
4424
  "isReadOnly",
@@ -4499,6 +4527,8 @@ function registerTextField(loader, overrides) {
4499
4527
  }
4500
4528
 
4501
4529
  var __defProp = Object.defineProperty;
4530
+ var __defProps = Object.defineProperties;
4531
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4502
4532
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4503
4533
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4504
4534
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -4514,48 +4544,90 @@ var __spreadValues = (a, b) => {
4514
4544
  }
4515
4545
  return a;
4516
4546
  };
4517
- var __objRest = (source, exclude) => {
4518
- var target = {};
4519
- for (var prop in source)
4520
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
4521
- target[prop] = source[prop];
4522
- if (source != null && __getOwnPropSymbols)
4523
- for (var prop of __getOwnPropSymbols(source)) {
4524
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
4525
- target[prop] = source[prop];
4526
- }
4527
- return target;
4528
- };
4529
- function BaseTooltip(props) {
4530
- var _b;
4531
- const _a = props, { children, tooltipContent, className, resetClassName } = _a, restProps = __objRest(_a, ["children", "tooltipContent", "className", "resetClassName"]);
4532
- const { isSelected, selectedSlotName } = (_b = host.usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
4533
- const isAutoOpen = selectedSlotName !== "children" && isSelected;
4534
- const state = reactStately.useTooltipTriggerState(restProps);
4547
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4548
+ function isForwardRefComponent(element) {
4549
+ var _a;
4550
+ return ((_a = element == null ? void 0 : element.type) == null ? void 0 : _a.$$typeof) === Symbol.for("react.forward_ref");
4551
+ }
4552
+ const TOOLTIP_VARIANTS = [
4553
+ "placementTop",
4554
+ "placementBottom",
4555
+ "placementLeft",
4556
+ "placementRight"
4557
+ ];
4558
+ const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
4559
+ function TooltipButton(props) {
4535
4560
  const ref = React__default.default.useRef(null);
4536
- const { triggerProps, tooltipProps } = reactAria.useTooltipTrigger(
4537
- restProps,
4538
- state,
4561
+ const { buttonProps } = reactAria.useButton(props, ref);
4562
+ const { children } = props;
4563
+ if (!isForwardRefComponent(children)) {
4564
+ return children;
4565
+ }
4566
+ return React__default.default.cloneElement(children, __spreadProps(__spreadValues({}, buttonProps), {
4539
4567
  ref
4540
- );
4541
- const hasContent = tooltipContent && tooltipContent.type.name !== "CanvasSlotPlaceholder";
4568
+ }));
4569
+ }
4570
+ function BaseTooltip(props) {
4571
+ var _a;
4572
+ const {
4573
+ children,
4574
+ isDisabled,
4575
+ delay,
4576
+ closeDelay,
4577
+ trigger,
4578
+ isOpen,
4579
+ defaultOpen,
4580
+ tooltipContent,
4581
+ resetClassName,
4582
+ placement,
4583
+ offset,
4584
+ crossOffset,
4585
+ shouldFlip,
4586
+ arrowBoundaryOffset,
4587
+ className,
4588
+ onOpenChange,
4589
+ plasmicUpdateVariant
4590
+ } = props;
4591
+ const { isSelected, selectedSlotName } = (_a = host.usePlasmicCanvasComponentInfo(props)) != null ? _a : {};
4592
+ const isAutoOpen = selectedSlotName !== "children" && isSelected;
4542
4593
  const focusableChild = flattenChildren__default.default(children)[0];
4594
+ const _isOpen = isAutoOpen || isOpen;
4543
4595
  return /* @__PURE__ */ React__default.default.createElement(
4544
- "div",
4596
+ reactAriaComponents.TooltipTrigger,
4545
4597
  {
4546
- style: { position: "relative" },
4547
- className: resetClassName
4598
+ isDisabled,
4599
+ delay,
4600
+ closeDelay,
4601
+ trigger,
4602
+ isOpen: _isOpen,
4603
+ defaultOpen,
4604
+ onOpenChange
4548
4605
  },
4549
- React__default.default.isValidElement(focusableChild) ? React__default.default.cloneElement(focusableChild, __spreadValues({
4550
- ref
4551
- }, utils.mergeProps(
4552
- focusableChild.props,
4553
- triggerProps
4554
- ))) : null,
4555
- (isAutoOpen || state.isOpen) && /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, React__default.default.cloneElement(
4556
- hasContent ? tooltipContent : /* @__PURE__ */ React__default.default.createElement("p", null, "Add some content to the tooltip..."),
4557
- utils.mergeProps(tooltipProps, tooltipContent == null ? void 0 : tooltipContent.props.attrs, { className })
4558
- ))
4606
+ /* @__PURE__ */ React__default.default.createElement(TooltipButton, null, focusableChild),
4607
+ /* @__PURE__ */ React__default.default.createElement(
4608
+ reactAriaComponents.Tooltip,
4609
+ {
4610
+ isOpen: _isOpen,
4611
+ offset,
4612
+ crossOffset,
4613
+ shouldFlip,
4614
+ arrowBoundaryOffset,
4615
+ defaultOpen,
4616
+ className: `${className} ${resetClassName}`,
4617
+ onOpenChange,
4618
+ placement
4619
+ },
4620
+ ({ placement: _placement }) => withObservedValues(
4621
+ tooltipContent,
4622
+ {
4623
+ placementTop: _placement === "top",
4624
+ placementBottom: _placement === "bottom",
4625
+ placementLeft: _placement === "left",
4626
+ placementRight: _placement === "right"
4627
+ },
4628
+ plasmicUpdateVariant
4629
+ )
4630
+ )
4559
4631
  );
4560
4632
  }
4561
4633
  function registerTooltip(loader, overrides) {
@@ -4569,14 +4641,18 @@ function registerTooltip(loader, overrides) {
4569
4641
  importName: "BaseTooltip",
4570
4642
  isAttachment: true,
4571
4643
  styleSections: true,
4644
+ variants,
4572
4645
  props: {
4573
4646
  children: {
4574
4647
  type: "slot",
4575
- displayName: "Trigger",
4576
4648
  mergeWithParent: true,
4649
+ displayName: "Trigger",
4577
4650
  defaultValue: {
4578
4651
  type: "text",
4579
- value: "Hover me!"
4652
+ value: "Hover me!",
4653
+ styles: {
4654
+ width: "hug"
4655
+ }
4580
4656
  }
4581
4657
  },
4582
4658
  tooltipContent: {
@@ -4586,7 +4662,11 @@ function registerTooltip(loader, overrides) {
4586
4662
  // NOTE: This is not applied in attachment
4587
4663
  defaultValue: {
4588
4664
  type: "text",
4589
- value: "Hello from Tooltip!"
4665
+ value: "Hello from Tooltip!",
4666
+ styles: {
4667
+ // So the text does not overlap with existing content
4668
+ backgroundColor: "white"
4669
+ }
4590
4670
  }
4591
4671
  },
4592
4672
  resetClassName: {
@@ -4597,12 +4677,16 @@ function registerTooltip(loader, overrides) {
4597
4677
  },
4598
4678
  delay: {
4599
4679
  type: "number",
4600
- defaultValueHint: 1500,
4680
+ // Default value is explicitly set to 0 to prevent users from mistakenly thinking the tooltip isn’t opening due to a delay.
4681
+ defaultValue: 0,
4682
+ defaultValueHint: 0,
4601
4683
  description: "The delay (in milliseconds) for the tooltip to show up."
4602
4684
  },
4603
4685
  closeDelay: {
4604
4686
  type: "number",
4605
- defaultValueHint: 500,
4687
+ // Default value is explicitly set to 0 to prevent users from mistakenly thinking the tooltip isn’t closing due to a delay.
4688
+ defaultValue: 0,
4689
+ defaultValueHint: 0,
4606
4690
  description: "The delay (in milliseconds) for the tooltip to close."
4607
4691
  },
4608
4692
  trigger: {
@@ -4610,6 +4694,21 @@ function registerTooltip(loader, overrides) {
4610
4694
  options: ["focus", "focus and hover"],
4611
4695
  defaultValueHint: "focus and hover"
4612
4696
  },
4697
+ placement: {
4698
+ type: "choice",
4699
+ description: "Default placement of the popover relative to the trigger, if there is enough space",
4700
+ defaultValueHint: "top",
4701
+ // Not providing more options because https://github.com/adobe/react-spectrum/issues/6517
4702
+ options: ["top", "bottom", "left", "right"]
4703
+ },
4704
+ isOpen: {
4705
+ type: "boolean",
4706
+ editOnly: true,
4707
+ uncontrolledProp: "defaultOpen",
4708
+ description: "Whether the overlay is open by default",
4709
+ defaultValueHint: false,
4710
+ hidden: () => true
4711
+ },
4613
4712
  onOpenChange: {
4614
4713
  type: "eventHandler",
4615
4714
  argTypes: [{ name: "isOpen", type: "boolean" }]
@@ -4617,7 +4716,8 @@ function registerTooltip(loader, overrides) {
4617
4716
  },
4618
4717
  states: {
4619
4718
  isOpen: {
4620
- type: "readonly",
4719
+ type: "writable",
4720
+ valueProp: "isOpen",
4621
4721
  onChangeProp: "onOpenChange",
4622
4722
  variableType: "boolean"
4623
4723
  }