@plasmicpkgs/react-aria 0.0.64 → 0.0.66

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 (66) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/react-aria.esm.js +325 -223
  3. package/dist/react-aria.esm.js.map +1 -1
  4. package/dist/react-aria.js +323 -221
  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 +1 -1
  20. package/skinny/registerComboBox.esm.js +1 -1
  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.cjs.js +1 -1
  26. package/skinny/registerListBox.esm.js +1 -1
  27. package/skinny/registerListBoxItem.cjs.js +5 -3
  28. package/skinny/registerListBoxItem.cjs.js.map +1 -1
  29. package/skinny/registerListBoxItem.esm.js +5 -3
  30. package/skinny/registerListBoxItem.esm.js.map +1 -1
  31. package/skinny/registerModal.cjs.js +14 -3
  32. package/skinny/registerModal.cjs.js.map +1 -1
  33. package/skinny/registerModal.esm.js +14 -3
  34. package/skinny/registerModal.esm.js.map +1 -1
  35. package/skinny/registerRadio.cjs.js +1 -1
  36. package/skinny/registerRadio.esm.js +1 -1
  37. package/skinny/registerRadioGroup.cjs.js +1 -1
  38. package/skinny/registerRadioGroup.esm.js +1 -1
  39. package/skinny/registerSelect.cjs.js +1 -1
  40. package/skinny/registerSelect.esm.js +1 -1
  41. package/skinny/registerSlider.cjs.js +1 -1
  42. package/skinny/registerSlider.esm.js +1 -1
  43. package/skinny/registerSliderOutput.cjs.js +1 -1
  44. package/skinny/registerSliderOutput.esm.js +1 -1
  45. package/skinny/registerSliderThumb.cjs.js +1 -1
  46. package/skinny/registerSliderThumb.esm.js +1 -1
  47. package/skinny/registerSliderTrack.cjs.js +1 -1
  48. package/skinny/registerSliderTrack.esm.js +1 -1
  49. package/skinny/registerSwitch.cjs.js +1 -1
  50. package/skinny/registerSwitch.esm.js +1 -1
  51. package/skinny/registerTextArea.cjs.js +1 -1
  52. package/skinny/registerTextArea.esm.js +1 -1
  53. package/skinny/registerTextField.cjs.js +1 -1
  54. package/skinny/registerTextField.esm.js +1 -1
  55. package/skinny/registerTooltip.cjs.js +118 -46
  56. package/skinny/registerTooltip.cjs.js.map +1 -1
  57. package/skinny/registerTooltip.d.ts +4 -1
  58. package/skinny/registerTooltip.esm.js +117 -45
  59. package/skinny/registerTooltip.esm.js.map +1 -1
  60. package/skinny/{variant-utils-23360776.esm.js → variant-utils-5f90385f.esm.js} +17 -1
  61. package/skinny/variant-utils-5f90385f.esm.js.map +1 -0
  62. package/skinny/{variant-utils-db5b9590.cjs.js → variant-utils-6c6ef452.cjs.js} +17 -1
  63. package/skinny/variant-utils-6c6ef452.cjs.js.map +1 -0
  64. package/skinny/variant-utils.d.ts +16 -0
  65. package/skinny/variant-utils-23360776.esm.js.map +0 -1
  66. 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",
@@ -1374,7 +1391,7 @@ var __spreadValues$j = (a, b) => {
1374
1391
  }
1375
1392
  return a;
1376
1393
  };
1377
- var __objRest$i = (source, exclude) => {
1394
+ var __objRest$h = (source, exclude) => {
1378
1395
  var target = {};
1379
1396
  for (var prop in source)
1380
1397
  if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1391,7 +1408,7 @@ const INPUT_VARIANTS = [
1391
1408
  "hovered",
1392
1409
  "disabled"
1393
1410
  ];
1394
- const { variants: variants$a } = pickAriaComponentVariants(INPUT_VARIANTS);
1411
+ const { variants: variants$b } = pickAriaComponentVariants(INPUT_VARIANTS);
1395
1412
  const inputHelpers$1 = {
1396
1413
  states: {
1397
1414
  value: {
@@ -1409,7 +1426,7 @@ function BaseInput(props) {
1409
1426
  disabled,
1410
1427
  autoComplete,
1411
1428
  value
1412
- } = _a, rest = __objRest$i(_a, [
1429
+ } = _a, rest = __objRest$h(_a, [
1413
1430
  "plasmicUpdateVariant",
1414
1431
  "setControlContextData",
1415
1432
  "disabled",
@@ -1472,7 +1489,7 @@ function registerInput(loader, overrides) {
1472
1489
  displayName: "Aria Input",
1473
1490
  importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
1474
1491
  importName: "BaseInput",
1475
- variants: variants$a,
1492
+ variants: variants$b,
1476
1493
  defaultStyles: {
1477
1494
  width: "300px",
1478
1495
  borderWidth: "1px",
@@ -1544,7 +1561,7 @@ var __spreadValues$i = (a, b) => {
1544
1561
  }
1545
1562
  return a;
1546
1563
  };
1547
- var __objRest$h = (source, exclude) => {
1564
+ var __objRest$g = (source, exclude) => {
1548
1565
  var target = {};
1549
1566
  for (var prop in source)
1550
1567
  if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1564,11 +1581,11 @@ const LIST_BOX_ITEM_VARIANTS = [
1564
1581
  "selected",
1565
1582
  "disabled"
1566
1583
  ];
1567
- const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(
1584
+ const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(
1568
1585
  LIST_BOX_ITEM_VARIANTS
1569
1586
  );
1570
1587
  function BaseListBoxItem(props) {
1571
- const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$h(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
1588
+ const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$g(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
1572
1589
  const listboxContext = React__default.default.useContext(PlasmicListBoxContext);
1573
1590
  const isStandalone = !listboxContext;
1574
1591
  const [registeredId, setRegisteredId] = React.useState();
@@ -1607,7 +1624,7 @@ function BaseListBoxItem(props) {
1607
1624
  isFocusVisible,
1608
1625
  isSelected,
1609
1626
  isDisabled
1610
- }) => withObservedValues$8(
1627
+ }) => withObservedValues$9(
1611
1628
  children,
1612
1629
  {
1613
1630
  hovered: isHovered,
@@ -1670,12 +1687,13 @@ function registerListBoxItem(loader, overrides) {
1670
1687
  displayName: "Aria ListBoxItem",
1671
1688
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
1672
1689
  importName: "BaseListBoxItem",
1673
- variants: variants$9,
1690
+ variants: variants$a,
1674
1691
  props: {
1675
1692
  id: {
1676
1693
  type: "string",
1677
- description: "The ID of the item",
1694
+ description: "A unique key for tracking the selected item in state",
1678
1695
  required: true,
1696
+ displayName: "Value",
1679
1697
  validator: (_value, _props, ctx) => {
1680
1698
  if (ctx == null ? void 0 : ctx.idError) {
1681
1699
  return ctx.idError;
@@ -1685,7 +1703,8 @@ function registerListBoxItem(loader, overrides) {
1685
1703
  },
1686
1704
  textValue: {
1687
1705
  type: "string",
1688
- description: "A text representation of the item's contents, used for features like typeahead."
1706
+ displayName: "Label",
1707
+ description: "A user-friendly text representation of the item's contents, used for features like typeahead."
1689
1708
  },
1690
1709
  children: {
1691
1710
  type: "slot",
@@ -1715,7 +1734,7 @@ var __spreadValues$h = (a, b) => {
1715
1734
  }
1716
1735
  return a;
1717
1736
  };
1718
- var __objRest$g = (source, exclude) => {
1737
+ var __objRest$f = (source, exclude) => {
1719
1738
  var target = {};
1720
1739
  for (var prop in source)
1721
1740
  if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1728,7 +1747,7 @@ var __objRest$g = (source, exclude) => {
1728
1747
  return target;
1729
1748
  };
1730
1749
  function BaseSection(props) {
1731
- const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
1750
+ const _a = props, { header, items } = _a, rest = __objRest$f(_a, ["header", "items"]);
1732
1751
  const contextProps = React__default.default.useContext(PlasmicListBoxContext);
1733
1752
  const mergedProps = utils.mergeProps(contextProps, rest);
1734
1753
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, null, header), items);
@@ -1784,7 +1803,7 @@ var __spreadValues$g = (a, b) => {
1784
1803
  }
1785
1804
  return a;
1786
1805
  };
1787
- var __objRest$f = (source, exclude) => {
1806
+ var __objRest$e = (source, exclude) => {
1788
1807
  var target = {};
1789
1808
  for (var prop in source)
1790
1809
  if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1814,7 +1833,7 @@ function BaseListBox(props) {
1814
1833
  children,
1815
1834
  selectedKeys,
1816
1835
  defaultSelectedKeys
1817
- } = _a, rest = __objRest$f(_a, [
1836
+ } = _a, rest = __objRest$e(_a, [
1818
1837
  "setControlContextData",
1819
1838
  "children",
1820
1839
  "selectedKeys",
@@ -2047,7 +2066,7 @@ var __spreadValues$f = (a, b) => {
2047
2066
  }
2048
2067
  return a;
2049
2068
  };
2050
- var __objRest$e = (source, exclude) => {
2069
+ var __objRest$d = (source, exclude) => {
2051
2070
  var target = {};
2052
2071
  for (var prop in source)
2053
2072
  if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2061,7 +2080,7 @@ var __objRest$e = (source, exclude) => {
2061
2080
  };
2062
2081
  function BasePopover(props) {
2063
2082
  var _b;
2064
- 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"]);
2065
2084
  const isStandalone = !React__default.default.useContext(reactAriaComponents.PopoverContext);
2066
2085
  const context = React__default.default.useContext(PlasmicPopoverContext);
2067
2086
  const triggerRef = React__default.default.useRef(null);
@@ -2195,8 +2214,8 @@ function registerPopover(loader, overrides) {
2195
2214
  }
2196
2215
 
2197
2216
  var __defProp$e = Object.defineProperty;
2198
- var __defProps$9 = Object.defineProperties;
2199
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2217
+ var __defProps$a = Object.defineProperties;
2218
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2200
2219
  var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2201
2220
  var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2202
2221
  var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
@@ -2212,8 +2231,8 @@ var __spreadValues$e = (a, b) => {
2212
2231
  }
2213
2232
  return a;
2214
2233
  };
2215
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2216
- var __objRest$d = (source, exclude) => {
2234
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2235
+ var __objRest$c = (source, exclude) => {
2217
2236
  var target = {};
2218
2237
  for (var prop in source)
2219
2238
  if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2244,7 +2263,7 @@ function ComboboxAutoOpen(props) {
2244
2263
  return null;
2245
2264
  }
2246
2265
  function BaseComboBox(props) {
2247
- 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"]);
2248
2267
  const idManager = React.useMemo(() => new ListBoxItemIdManager(), []);
2249
2268
  React.useEffect(() => {
2250
2269
  idManager.subscribe((ids) => {
@@ -2275,7 +2294,7 @@ function registerComboBox(loader) {
2275
2294
  displayName: "Aria ComboBox",
2276
2295
  importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
2277
2296
  importName: "BaseComboBox",
2278
- props: __spreadProps$9(__spreadValues$e({}, getCommonProps("ComboBox", [
2297
+ props: __spreadProps$a(__spreadValues$e({}, getCommonProps("ComboBox", [
2279
2298
  "name",
2280
2299
  "aria-label",
2281
2300
  "placeholder",
@@ -2425,7 +2444,7 @@ var __spreadValues$d = (a, b) => {
2425
2444
  }
2426
2445
  return a;
2427
2446
  };
2428
- var __objRest$c = (source, exclude) => {
2447
+ var __objRest$b = (source, exclude) => {
2429
2448
  var target = {};
2430
2449
  for (var prop in source)
2431
2450
  if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2438,7 +2457,7 @@ var __objRest$c = (source, exclude) => {
2438
2457
  return target;
2439
2458
  };
2440
2459
  function BaseHeading(_a) {
2441
- var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
2460
+ var _b = _a, { children } = _b, rest = __objRest$b(_b, ["children"]);
2442
2461
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Heading, __spreadValues$d({}, rest), children);
2443
2462
  }
2444
2463
  const HEADING_COMPONENT_NAME = makeComponentName("heading");
@@ -2478,8 +2497,8 @@ function registerHeading(loader, overrides) {
2478
2497
  }
2479
2498
 
2480
2499
  var __defProp$c = Object.defineProperty;
2481
- var __defProps$8 = Object.defineProperties;
2482
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2500
+ var __defProps$9 = Object.defineProperties;
2501
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2483
2502
  var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2484
2503
  var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2485
2504
  var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
@@ -2495,8 +2514,8 @@ var __spreadValues$c = (a, b) => {
2495
2514
  }
2496
2515
  return a;
2497
2516
  };
2498
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2499
- var __objRest$b = (source, exclude) => {
2517
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2518
+ var __objRest$a = (source, exclude) => {
2500
2519
  var target = {};
2501
2520
  for (var prop in source)
2502
2521
  if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2520,20 +2539,31 @@ const BaseModal = React.forwardRef(
2520
2539
  className,
2521
2540
  isOpen,
2522
2541
  resetClassName,
2523
- setControlContextData
2524
- } = _a, rest = __objRest$b(_a, [
2542
+ setControlContextData,
2543
+ isDismissable
2544
+ } = _a, rest = __objRest$a(_a, [
2525
2545
  "children",
2526
2546
  "modalOverlayClass",
2527
2547
  "className",
2528
2548
  "isOpen",
2529
2549
  "resetClassName",
2530
- "setControlContextData"
2550
+ "setControlContextData",
2551
+ "isDismissable"
2531
2552
  ]);
2532
2553
  const { isSelected } = (_b = host.usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
2533
2554
  const contextProps = React__default.default.useContext(PlasmicDialogTriggerContext);
2534
2555
  const isStandalone = !contextProps;
2535
2556
  const mergedProps = reactAria.mergeProps(contextProps, rest, {
2536
- 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
2537
2567
  });
2538
2568
  setControlContextData == null ? void 0 : setControlContextData({
2539
2569
  parent: isStandalone ? void 0 : {}
@@ -2553,7 +2583,7 @@ const BaseModal = React.forwardRef(
2553
2583
  const bodyInPreview = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Dialog, { style: INLINE_STYLES }, children);
2554
2584
  return /* @__PURE__ */ React__default.default.createElement(
2555
2585
  reactAriaComponents.ModalOverlay,
2556
- __spreadProps$8(__spreadValues$c({}, mergedProps), {
2586
+ __spreadProps$9(__spreadValues$c({}, mergedProps), {
2557
2587
  className: `${resetClassName} ${modalOverlayClass}`
2558
2588
  }),
2559
2589
  /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Modal, { className }, isCanvas ? bodyInCanvas : bodyInPreview)
@@ -2675,8 +2705,8 @@ function registerModal(loader, overrides) {
2675
2705
  }
2676
2706
 
2677
2707
  var __defProp$b = Object.defineProperty;
2678
- var __defProps$7 = Object.defineProperties;
2679
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2708
+ var __defProps$8 = Object.defineProperties;
2709
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2680
2710
  var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2681
2711
  var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2682
2712
  var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
@@ -2692,8 +2722,8 @@ var __spreadValues$b = (a, b) => {
2692
2722
  }
2693
2723
  return a;
2694
2724
  };
2695
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2696
- var __objRest$a = (source, exclude) => {
2725
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2726
+ var __objRest$9 = (source, exclude) => {
2697
2727
  var target = {};
2698
2728
  for (var prop in source)
2699
2729
  if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2707,10 +2737,10 @@ var __objRest$a = (source, exclude) => {
2707
2737
  };
2708
2738
  function BaseDialogTrigger(props) {
2709
2739
  var _b, _c;
2710
- 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"]);
2711
2741
  const { isSelected, selectedSlotName } = (_b = host.usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
2712
2742
  const isAutoOpen = selectedSlotName !== "trigger" && isSelected;
2713
- const mergedProps = __spreadProps$7(__spreadValues$b({}, rest), {
2743
+ const mergedProps = __spreadProps$8(__spreadValues$b({}, rest), {
2714
2744
  isOpen: (_c = isAutoOpen || isOpen) != null ? _c : false
2715
2745
  });
2716
2746
  return /* @__PURE__ */ React__default.default.createElement(PlasmicDialogTriggerContext.Provider, { value: mergedProps }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.DialogTrigger, __spreadValues$b({}, mergedProps), trigger, dialog));
@@ -2774,8 +2804,8 @@ function registerDialogTrigger(loader, overrides) {
2774
2804
  }
2775
2805
 
2776
2806
  var __defProp$a = Object.defineProperty;
2777
- var __defProps$6 = Object.defineProperties;
2778
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2807
+ var __defProps$7 = Object.defineProperties;
2808
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2779
2809
  var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2780
2810
  var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2781
2811
  var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
@@ -2791,8 +2821,8 @@ var __spreadValues$a = (a, b) => {
2791
2821
  }
2792
2822
  return a;
2793
2823
  };
2794
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2795
- var __objRest$9 = (source, exclude) => {
2824
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2825
+ var __objRest$8 = (source, exclude) => {
2796
2826
  var target = {};
2797
2827
  for (var prop in source)
2798
2828
  if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2814,9 +2844,9 @@ const RADIO_VARIANTS = [
2814
2844
  "readonly",
2815
2845
  "selected"
2816
2846
  ];
2817
- const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_VARIANTS);
2847
+ const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
2818
2848
  function BaseRadio(props) {
2819
- 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"]);
2820
2850
  const contextProps = React__default.default.useContext(PlasmicRadioGroupContext);
2821
2851
  const isStandalone = !contextProps;
2822
2852
  setControlContextData == null ? void 0 : setControlContextData({
@@ -2830,7 +2860,7 @@ function BaseRadio(props) {
2830
2860
  isSelected,
2831
2861
  isDisabled,
2832
2862
  isReadOnly
2833
- }) => withObservedValues$7(
2863
+ }) => withObservedValues$8(
2834
2864
  children,
2835
2865
  {
2836
2866
  hovered: isHovered,
@@ -2889,8 +2919,8 @@ function registerRadio(loader, overrides) {
2889
2919
  displayName: "Aria Radio",
2890
2920
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
2891
2921
  importName: "BaseRadio",
2892
- variants: variants$8,
2893
- props: __spreadProps$6(__spreadValues$a({}, getCommonProps("radio", [
2922
+ variants: variants$9,
2923
+ props: __spreadProps$7(__spreadValues$a({}, getCommonProps("radio", [
2894
2924
  "isDisabled",
2895
2925
  "autoFocus",
2896
2926
  "aria-label"
@@ -2912,8 +2942,8 @@ function registerRadio(loader, overrides) {
2912
2942
  }
2913
2943
 
2914
2944
  var __defProp$9 = Object.defineProperty;
2915
- var __defProps$5 = Object.defineProperties;
2916
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2945
+ var __defProps$6 = Object.defineProperties;
2946
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2917
2947
  var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2918
2948
  var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2919
2949
  var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
@@ -2929,8 +2959,8 @@ var __spreadValues$9 = (a, b) => {
2929
2959
  }
2930
2960
  return a;
2931
2961
  };
2932
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2933
- var __objRest$8 = (source, exclude) => {
2962
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2963
+ var __objRest$7 = (source, exclude) => {
2934
2964
  var target = {};
2935
2965
  for (var prop in source)
2936
2966
  if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2943,10 +2973,10 @@ var __objRest$8 = (source, exclude) => {
2943
2973
  return target;
2944
2974
  };
2945
2975
  const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
2946
- const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
2976
+ const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
2947
2977
  function BaseRadioGroup(props) {
2948
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant"]);
2949
- 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(
2950
2980
  children,
2951
2981
  {
2952
2982
  disabled: isDisabled,
@@ -2972,8 +3002,8 @@ function registerRadioGroup(loader, overrides) {
2972
3002
  displayName: "Aria RadioGroup",
2973
3003
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
2974
3004
  importName: "BaseRadioGroup",
2975
- variants: variants$7,
2976
- props: __spreadProps$5(__spreadValues$9({}, getCommonProps("radio group", [
3005
+ variants: variants$8,
3006
+ props: __spreadProps$6(__spreadValues$9({}, getCommonProps("radio group", [
2977
3007
  "name",
2978
3008
  "isDisabled",
2979
3009
  "isReadOnly",
@@ -3079,8 +3109,8 @@ function registerRadioGroup(loader, overrides) {
3079
3109
  }
3080
3110
 
3081
3111
  var __defProp$8 = Object.defineProperty;
3082
- var __defProps$4 = Object.defineProperties;
3083
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3112
+ var __defProps$5 = Object.defineProperties;
3113
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
3084
3114
  var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3085
3115
  var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3086
3116
  var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
@@ -3096,7 +3126,7 @@ var __spreadValues$8 = (a, b) => {
3096
3126
  }
3097
3127
  return a;
3098
3128
  };
3099
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3129
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
3100
3130
  const BaseSelectValue = (props) => {
3101
3131
  const { children, customize } = props;
3102
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))));
@@ -3200,7 +3230,7 @@ function registerSelect(loader) {
3200
3230
  displayName: "Aria Select",
3201
3231
  importPath: "@plasmicpkgs/react-aria/skinny/registerSelect",
3202
3232
  importName: "BaseSelect",
3203
- props: __spreadProps$4(__spreadValues$8({}, getCommonProps("Select", [
3233
+ props: __spreadProps$5(__spreadValues$8({}, getCommonProps("Select", [
3204
3234
  "name",
3205
3235
  "aria-label",
3206
3236
  "placeholder",
@@ -3357,7 +3387,7 @@ var __spreadValues$7 = (a, b) => {
3357
3387
  }
3358
3388
  return a;
3359
3389
  };
3360
- var __objRest$7 = (source, exclude) => {
3390
+ var __objRest$6 = (source, exclude) => {
3361
3391
  var target = {};
3362
3392
  for (var prop in source)
3363
3393
  if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3370,12 +3400,12 @@ var __objRest$7 = (source, exclude) => {
3370
3400
  return target;
3371
3401
  };
3372
3402
  const SLIDER_OUTPUT_VARIANTS = ["disabled"];
3373
- const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3403
+ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickAriaComponentVariants(
3374
3404
  SLIDER_OUTPUT_VARIANTS
3375
3405
  );
3376
3406
  function BaseSliderOutput(props) {
3377
- const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
3378
- 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(
3379
3409
  children,
3380
3410
  {
3381
3411
  disabled: isDisabled
@@ -3393,7 +3423,7 @@ function registerSliderOutput(loader, overrides) {
3393
3423
  displayName: "Aria Slider Output",
3394
3424
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderOutput",
3395
3425
  importName: "BaseSliderOutput",
3396
- variants: variants$6,
3426
+ variants: variants$7,
3397
3427
  props: {
3398
3428
  children: {
3399
3429
  mergeWithParent: true,
@@ -3423,8 +3453,8 @@ class ErrorBoundary extends React.Component {
3423
3453
  }
3424
3454
 
3425
3455
  var __defProp$6 = Object.defineProperty;
3426
- var __defProps$3 = Object.defineProperties;
3427
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3456
+ var __defProps$4 = Object.defineProperties;
3457
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3428
3458
  var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3429
3459
  var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3430
3460
  var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
@@ -3440,8 +3470,8 @@ var __spreadValues$6 = (a, b) => {
3440
3470
  }
3441
3471
  return a;
3442
3472
  };
3443
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3444
- var __objRest$6 = (source, exclude) => {
3473
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3474
+ var __objRest$5 = (source, exclude) => {
3445
3475
  var target = {};
3446
3476
  for (var prop in source)
3447
3477
  if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3460,7 +3490,7 @@ const SLIDER_THUMB_VARIANTS = [
3460
3490
  "focusVisible",
3461
3491
  "disabled"
3462
3492
  ];
3463
- const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3493
+ const { variants: variants$6, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
3464
3494
  SLIDER_THUMB_VARIANTS
3465
3495
  );
3466
3496
  function BaseSliderThumb(_a) {
@@ -3468,14 +3498,14 @@ function BaseSliderThumb(_a) {
3468
3498
  children,
3469
3499
  advanced,
3470
3500
  plasmicUpdateVariant
3471
- } = _b, rest = __objRest$6(_b, [
3501
+ } = _b, rest = __objRest$5(_b, [
3472
3502
  "children",
3473
3503
  "advanced",
3474
3504
  "plasmicUpdateVariant"
3475
3505
  ]);
3476
3506
  const context = React__default.default.useContext(PlasmicSliderContext);
3477
3507
  const mergedProps = reactAria.mergeProps(context, rest);
3478
- 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(
3479
3509
  /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, advanced ? children : void 0),
3480
3510
  {
3481
3511
  dragging: isDragging,
@@ -3513,8 +3543,8 @@ function registerSliderThumb(loader, overrides) {
3513
3543
  borderRadius: "100%",
3514
3544
  cursor: "pointer"
3515
3545
  },
3516
- variants: variants$5,
3517
- props: __spreadProps$3(__spreadValues$6({}, getCommonProps("slider thumb", [
3546
+ variants: variants$6,
3547
+ props: __spreadProps$4(__spreadValues$6({}, getCommonProps("slider thumb", [
3518
3548
  "name",
3519
3549
  "isDisabled",
3520
3550
  "autoFocus"
@@ -3552,7 +3582,7 @@ var __spreadValues$5 = (a, b) => {
3552
3582
  }
3553
3583
  return a;
3554
3584
  };
3555
- var __objRest$5 = (source, exclude) => {
3585
+ var __objRest$4 = (source, exclude) => {
3556
3586
  var target = {};
3557
3587
  for (var prop in source)
3558
3588
  if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3565,7 +3595,7 @@ var __objRest$5 = (source, exclude) => {
3565
3595
  return target;
3566
3596
  };
3567
3597
  const SLIDER_TRACK_VARIANTS = ["hovered"];
3568
- const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
3598
+ const { variants: variants$5, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
3569
3599
  SLIDER_TRACK_VARIANTS
3570
3600
  );
3571
3601
  function findMinMaxIndices(values) {
@@ -3590,7 +3620,7 @@ function BaseSliderTrack(props) {
3590
3620
  const context = React__default.default.useContext(PlasmicSliderContext);
3591
3621
  const isStandalone = !context;
3592
3622
  const mergedProps = reactAria.mergeProps(context, props);
3593
- 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"]);
3594
3624
  const isMultiValue = isMultiValueGuard(mergedProps.value);
3595
3625
  const { minIndex, maxIndex } = React.useMemo(() => {
3596
3626
  if (!context || !Array.isArray(context.value) || context.value.length <= 1) {
@@ -3622,7 +3652,7 @@ function BaseSliderTrack(props) {
3622
3652
  });
3623
3653
  });
3624
3654
  }, [children, context == null ? void 0 : context.value]);
3625
- 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(
3626
3656
  /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
3627
3657
  "div",
3628
3658
  {
@@ -3656,7 +3686,7 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
3656
3686
  displayName: "Aria Slider Track",
3657
3687
  importPath: "@plasmicpkgs/react-aria/skinny/registerSliderTrack",
3658
3688
  importName: "BaseSliderTrack",
3659
- variants: variants$4,
3689
+ variants: variants$5,
3660
3690
  defaultStyles: {
3661
3691
  width: "stretch",
3662
3692
  backgroundColor: "#aaa",
@@ -3718,8 +3748,8 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
3718
3748
  }
3719
3749
 
3720
3750
  var __defProp$4 = Object.defineProperty;
3721
- var __defProps$2 = Object.defineProperties;
3722
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3751
+ var __defProps$3 = Object.defineProperties;
3752
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3723
3753
  var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3724
3754
  var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3725
3755
  var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
@@ -3735,8 +3765,8 @@ var __spreadValues$4 = (a, b) => {
3735
3765
  }
3736
3766
  return a;
3737
3767
  };
3738
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3739
- var __objRest$4 = (source, exclude) => {
3768
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3769
+ var __objRest$3 = (source, exclude) => {
3740
3770
  var target = {};
3741
3771
  for (var prop in source)
3742
3772
  if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3751,19 +3781,19 @@ var __objRest$4 = (source, exclude) => {
3751
3781
  const SLIDER_COMPONENT_NAME = makeComponentName("slider");
3752
3782
  const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
3753
3783
  const SLIDER_VARIANTS = ["disabled"];
3754
- const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SLIDER_VARIANTS);
3784
+ const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
3755
3785
  function BaseSlider(props) {
3756
- 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"]);
3757
3787
  return /* @__PURE__ */ React__default.default.createElement(
3758
3788
  PlasmicSliderContext.Provider,
3759
3789
  {
3760
- value: __spreadProps$2(__spreadValues$4({}, rest), {
3790
+ value: __spreadProps$3(__spreadValues$4({}, rest), {
3761
3791
  // Here's why the type casting is needed here: https://github.com/Microsoft/TypeScript/issues/3410
3762
3792
  onChange: rest.onChange,
3763
3793
  onChangeEnd: rest.onChangeEnd
3764
3794
  })
3765
3795
  },
3766
- /* @__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(
3767
3797
  children,
3768
3798
  {
3769
3799
  disabled: isDisabled
@@ -3815,11 +3845,11 @@ function registerSlider(loader, overrides) {
3815
3845
  displayName: "Aria Range Slider",
3816
3846
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
3817
3847
  importName: "BaseSlider",
3818
- variants: variants$3,
3848
+ variants: variants$4,
3819
3849
  defaultStyles: {
3820
3850
  width: "300px"
3821
3851
  },
3822
- props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3852
+ props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3823
3853
  "isDisabled",
3824
3854
  "aria-label"
3825
3855
  ])), getCommonSliderProps()), {
@@ -3927,11 +3957,11 @@ function registerSlider(loader, overrides) {
3927
3957
  displayName: "Aria Slider",
3928
3958
  importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
3929
3959
  importName: "BaseSlider",
3930
- variants: variants$3,
3960
+ variants: variants$4,
3931
3961
  defaultStyles: {
3932
3962
  width: "300px"
3933
3963
  },
3934
- props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3964
+ props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3935
3965
  "isDisabled",
3936
3966
  "aria-label"
3937
3967
  ])), getCommonSliderProps()), {
@@ -4007,8 +4037,8 @@ function registerSlider(loader, overrides) {
4007
4037
  }
4008
4038
 
4009
4039
  var __defProp$3 = Object.defineProperty;
4010
- var __defProps$1 = Object.defineProperties;
4011
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4040
+ var __defProps$2 = Object.defineProperties;
4041
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4012
4042
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4013
4043
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4014
4044
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
@@ -4024,8 +4054,8 @@ var __spreadValues$3 = (a, b) => {
4024
4054
  }
4025
4055
  return a;
4026
4056
  };
4027
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4028
- var __objRest$3 = (source, exclude) => {
4057
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4058
+ var __objRest$2 = (source, exclude) => {
4029
4059
  var target = {};
4030
4060
  for (var prop in source)
4031
4061
  if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4046,9 +4076,9 @@ const SWITCH_VARIANTS = [
4046
4076
  "disabled",
4047
4077
  "readonly"
4048
4078
  ];
4049
- const { variants: variants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4079
+ const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4050
4080
  function BaseSwitch(props) {
4051
- 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"]);
4052
4082
  return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Switch, __spreadValues$3({}, rest), ({
4053
4083
  isHovered,
4054
4084
  isPressed,
@@ -4057,7 +4087,7 @@ function BaseSwitch(props) {
4057
4087
  isSelected,
4058
4088
  isDisabled,
4059
4089
  isReadOnly
4060
- }) => withObservedValues$1(
4090
+ }) => withObservedValues$2(
4061
4091
  children,
4062
4092
  {
4063
4093
  hovered: isHovered,
@@ -4080,7 +4110,7 @@ function registerSwitch(loader, overrides) {
4080
4110
  displayName: "Aria Switch",
4081
4111
  importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
4082
4112
  importName: "BaseSwitch",
4083
- variants: variants$2,
4113
+ variants: variants$3,
4084
4114
  defaultStyles: {
4085
4115
  display: "flex",
4086
4116
  flexDirection: "column",
@@ -4088,7 +4118,7 @@ function registerSwitch(loader, overrides) {
4088
4118
  justifyContent: "flex-start",
4089
4119
  padding: 0
4090
4120
  },
4091
- props: __spreadProps$1(__spreadValues$3({}, getCommonProps("switch", [
4121
+ props: __spreadProps$2(__spreadValues$3({}, getCommonProps("switch", [
4092
4122
  "name",
4093
4123
  "isDisabled",
4094
4124
  "isReadOnly",
@@ -4214,7 +4244,7 @@ var __spreadValues$2 = (a, b) => {
4214
4244
  }
4215
4245
  return a;
4216
4246
  };
4217
- var __objRest$2 = (source, exclude) => {
4247
+ var __objRest$1 = (source, exclude) => {
4218
4248
  var target = {};
4219
4249
  for (var prop in source)
4220
4250
  if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4231,7 +4261,7 @@ const TEXTAREA_VARIANTS = [
4231
4261
  "hovered",
4232
4262
  "disabled"
4233
4263
  ];
4234
- const { variants: variants$1 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4264
+ const { variants: variants$2 } = pickAriaComponentVariants(TEXTAREA_VARIANTS);
4235
4265
  const inputHelpers = {
4236
4266
  states: {
4237
4267
  value: {
@@ -4243,7 +4273,7 @@ const inputHelpers = {
4243
4273
  };
4244
4274
  function BaseTextArea(props) {
4245
4275
  var _b;
4246
- 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"]);
4247
4277
  const textFieldContext = React__default.default.useContext(PlasmicTextFieldContext);
4248
4278
  const mergedProps = reactAria.mergeProps(rest, {
4249
4279
  disabled: (_b = textFieldContext == null ? void 0 : textFieldContext.isDisabled) != null ? _b : disabled
@@ -4286,7 +4316,7 @@ function registerTextArea(loader, overrides) {
4286
4316
  displayName: "Aria TextArea",
4287
4317
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
4288
4318
  importName: "BaseTextArea",
4289
- variants: variants$1,
4319
+ variants: variants$2,
4290
4320
  props: __spreadValues$2({}, getCommonProps("Text Area", [
4291
4321
  "name",
4292
4322
  "disabled",
@@ -4333,8 +4363,8 @@ function registerTextArea(loader, overrides) {
4333
4363
  }
4334
4364
 
4335
4365
  var __defProp$1 = Object.defineProperty;
4336
- var __defProps = Object.defineProperties;
4337
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4366
+ var __defProps$1 = Object.defineProperties;
4367
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4338
4368
  var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
4339
4369
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
4340
4370
  var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
@@ -4350,8 +4380,8 @@ var __spreadValues$1 = (a, b) => {
4350
4380
  }
4351
4381
  return a;
4352
4382
  };
4353
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4354
- var __objRest$1 = (source, exclude) => {
4383
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4384
+ var __objRest = (source, exclude) => {
4355
4385
  var target = {};
4356
4386
  for (var prop in source)
4357
4387
  if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4364,10 +4394,10 @@ var __objRest$1 = (source, exclude) => {
4364
4394
  return target;
4365
4395
  };
4366
4396
  const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
4367
- const { variants, withObservedValues } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4397
+ const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4368
4398
  function BaseTextField(props) {
4369
- const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4370
- 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(
4371
4401
  children,
4372
4402
  {
4373
4403
  disabled: isDisabled,
@@ -4386,9 +4416,9 @@ function registerTextField(loader, overrides) {
4386
4416
  displayName: "Aria TextField",
4387
4417
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
4388
4418
  importName: "BaseTextField",
4389
- variants,
4419
+ variants: variants$1,
4390
4420
  // TODO: Support for validate prop
4391
- props: __spreadProps(__spreadValues$1({}, getCommonProps("Text Field", [
4421
+ props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
4392
4422
  "name",
4393
4423
  "isDisabled",
4394
4424
  "isReadOnly",
@@ -4497,6 +4527,8 @@ function registerTextField(loader, overrides) {
4497
4527
  }
4498
4528
 
4499
4529
  var __defProp = Object.defineProperty;
4530
+ var __defProps = Object.defineProperties;
4531
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4500
4532
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4501
4533
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4502
4534
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -4512,48 +4544,90 @@ var __spreadValues = (a, b) => {
4512
4544
  }
4513
4545
  return a;
4514
4546
  };
4515
- var __objRest = (source, exclude) => {
4516
- var target = {};
4517
- for (var prop in source)
4518
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
4519
- target[prop] = source[prop];
4520
- if (source != null && __getOwnPropSymbols)
4521
- for (var prop of __getOwnPropSymbols(source)) {
4522
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
4523
- target[prop] = source[prop];
4524
- }
4525
- return target;
4526
- };
4527
- function BaseTooltip(props) {
4528
- var _b;
4529
- const _a = props, { children, tooltipContent, className, resetClassName } = _a, restProps = __objRest(_a, ["children", "tooltipContent", "className", "resetClassName"]);
4530
- const { isSelected, selectedSlotName } = (_b = host.usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
4531
- const isAutoOpen = selectedSlotName !== "children" && isSelected;
4532
- 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) {
4533
4560
  const ref = React__default.default.useRef(null);
4534
- const { triggerProps, tooltipProps } = reactAria.useTooltipTrigger(
4535
- restProps,
4536
- 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), {
4537
4567
  ref
4538
- );
4539
- 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;
4540
4593
  const focusableChild = flattenChildren__default.default(children)[0];
4594
+ const _isOpen = isAutoOpen || isOpen;
4541
4595
  return /* @__PURE__ */ React__default.default.createElement(
4542
- "div",
4596
+ reactAriaComponents.TooltipTrigger,
4543
4597
  {
4544
- style: { position: "relative" },
4545
- className: resetClassName
4598
+ isDisabled,
4599
+ delay,
4600
+ closeDelay,
4601
+ trigger,
4602
+ isOpen: _isOpen,
4603
+ defaultOpen,
4604
+ onOpenChange
4546
4605
  },
4547
- React__default.default.isValidElement(focusableChild) ? React__default.default.cloneElement(focusableChild, __spreadValues({
4548
- ref
4549
- }, utils.mergeProps(
4550
- focusableChild.props,
4551
- triggerProps
4552
- ))) : null,
4553
- (isAutoOpen || state.isOpen) && /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, React__default.default.cloneElement(
4554
- hasContent ? tooltipContent : /* @__PURE__ */ React__default.default.createElement("p", null, "Add some content to the tooltip..."),
4555
- utils.mergeProps(tooltipProps, tooltipContent == null ? void 0 : tooltipContent.props.attrs, { className })
4556
- ))
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
+ )
4557
4631
  );
4558
4632
  }
4559
4633
  function registerTooltip(loader, overrides) {
@@ -4567,14 +4641,18 @@ function registerTooltip(loader, overrides) {
4567
4641
  importName: "BaseTooltip",
4568
4642
  isAttachment: true,
4569
4643
  styleSections: true,
4644
+ variants,
4570
4645
  props: {
4571
4646
  children: {
4572
4647
  type: "slot",
4573
- displayName: "Trigger",
4574
4648
  mergeWithParent: true,
4649
+ displayName: "Trigger",
4575
4650
  defaultValue: {
4576
4651
  type: "text",
4577
- value: "Hover me!"
4652
+ value: "Hover me!",
4653
+ styles: {
4654
+ width: "hug"
4655
+ }
4578
4656
  }
4579
4657
  },
4580
4658
  tooltipContent: {
@@ -4584,7 +4662,11 @@ function registerTooltip(loader, overrides) {
4584
4662
  // NOTE: This is not applied in attachment
4585
4663
  defaultValue: {
4586
4664
  type: "text",
4587
- 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
+ }
4588
4670
  }
4589
4671
  },
4590
4672
  resetClassName: {
@@ -4595,12 +4677,16 @@ function registerTooltip(loader, overrides) {
4595
4677
  },
4596
4678
  delay: {
4597
4679
  type: "number",
4598
- 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,
4599
4683
  description: "The delay (in milliseconds) for the tooltip to show up."
4600
4684
  },
4601
4685
  closeDelay: {
4602
4686
  type: "number",
4603
- 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,
4604
4690
  description: "The delay (in milliseconds) for the tooltip to close."
4605
4691
  },
4606
4692
  trigger: {
@@ -4608,6 +4694,21 @@ function registerTooltip(loader, overrides) {
4608
4694
  options: ["focus", "focus and hover"],
4609
4695
  defaultValueHint: "focus and hover"
4610
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
+ },
4611
4712
  onOpenChange: {
4612
4713
  type: "eventHandler",
4613
4714
  argTypes: [{ name: "isOpen", type: "boolean" }]
@@ -4615,7 +4716,8 @@ function registerTooltip(loader, overrides) {
4615
4716
  },
4616
4717
  states: {
4617
4718
  isOpen: {
4618
- type: "readonly",
4719
+ type: "writable",
4720
+ valueProp: "isOpen",
4619
4721
  onChangeProp: "onOpenChange",
4620
4722
  variableType: "boolean"
4621
4723
  }