@plasmicpkgs/react-aria 0.0.72 → 0.0.73

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.
@@ -2,13 +2,13 @@ import React, { useEffect, useState, useMemo, forwardRef, useImperativeHandle, C
2
2
  import { Button, Checkbox, Text, FieldError, Label, CheckboxGroup, Input, ListBoxItem, ListBox, Section, Header, PopoverContext, Popover, ComboBox, ComboBoxStateContext, Heading, ModalOverlay, Modal, Dialog, DialogTrigger, Radio, RadioGroup, Select, SelectStateContext, SelectValue, SliderOutput, SliderThumb, Slider, SliderTrack, Switch, TextArea, TextField, TooltipTrigger, Tooltip } from 'react-aria-components';
3
3
  import { usePlasmicCanvasContext, usePlasmicCanvasComponentInfo } from '@plasmicapp/host';
4
4
  import registerComponent from '@plasmicapp/host/registerComponent';
5
- import { mergeProps, useButton } from 'react-aria';
5
+ import { mergeProps, useFocusable } from 'react-aria';
6
6
  import { mergeProps as mergeProps$1 } from '@react-aria/utils';
7
7
  import flattenChildren from 'react-keyed-flatten-children';
8
8
 
9
9
  var __defProp$r = Object.defineProperty;
10
- var __defProps$h = Object.defineProperties;
11
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
10
+ var __defProps$g = Object.defineProperties;
11
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
12
12
  var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
13
13
  var __hasOwnProp$r = Object.prototype.hasOwnProperty;
14
14
  var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
@@ -24,7 +24,7 @@ var __spreadValues$r = (a, b) => {
24
24
  }
25
25
  return a;
26
26
  };
27
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
27
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
28
28
  function useAutoOpen({
29
29
  props,
30
30
  open,
@@ -46,13 +46,13 @@ function useAutoOpen({
46
46
  }
47
47
  function registerComponentHelper(loader, component, meta, overrides) {
48
48
  var _a;
49
- meta = __spreadProps$h(__spreadValues$r({}, meta), {
49
+ meta = __spreadProps$g(__spreadValues$r({}, meta), {
50
50
  defaultStyles: __spreadValues$r({
51
51
  boxSizing: "border-box"
52
52
  }, (_a = meta.defaultStyles) != null ? _a : {})
53
53
  });
54
54
  if (overrides) {
55
- meta = __spreadProps$h(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
55
+ meta = __spreadProps$g(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
56
56
  props: __spreadValues$r(__spreadValues$r({}, meta.props), overrides.props)
57
57
  });
58
58
  if (overrides.parentComponentName) {
@@ -517,8 +517,8 @@ function pickAriaComponentVariants(keys) {
517
517
  }
518
518
 
519
519
  var __defProp$q = Object.defineProperty;
520
- var __defProps$g = Object.defineProperties;
521
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
520
+ var __defProps$f = Object.defineProperties;
521
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
522
522
  var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
523
523
  var __hasOwnProp$q = Object.prototype.hasOwnProperty;
524
524
  var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
@@ -534,8 +534,8 @@ var __spreadValues$q = (a, b) => {
534
534
  }
535
535
  return a;
536
536
  };
537
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
538
- var __objRest$n = (source, exclude) => {
537
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
538
+ var __objRest$o = (source, exclude) => {
539
539
  var target = {};
540
540
  for (var prop in source)
541
541
  if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -557,7 +557,7 @@ const BUTTON_VARIANTS = [
557
557
  const { variants: variants$f, withObservedValues: withObservedValues$d } = pickAriaComponentVariants(BUTTON_VARIANTS);
558
558
  const BaseButton = React.forwardRef(
559
559
  (props, ref) => {
560
- const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$n(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
560
+ const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$o(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
561
561
  const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
562
562
  return /* @__PURE__ */ React.createElement(Button, __spreadValues$q({ type, ref }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$d(
563
563
  children,
@@ -590,7 +590,7 @@ function registerButton(loader, overrides) {
590
590
  padding: "2px 10px",
591
591
  cursor: "pointer"
592
592
  },
593
- props: __spreadProps$g(__spreadValues$q({}, getCommonProps("button", [
593
+ props: __spreadProps$f(__spreadValues$q({}, getCommonProps("button", [
594
594
  "autoFocus",
595
595
  "isDisabled",
596
596
  "aria-label"
@@ -622,6 +622,10 @@ function registerButton(loader, overrides) {
622
622
  onPress: {
623
623
  type: "eventHandler",
624
624
  argTypes: [{ name: "event", type: "object" }]
625
+ },
626
+ onFocus: {
627
+ type: "eventHandler",
628
+ argTypes: [{ name: "event", type: "object" }]
625
629
  }
626
630
  }),
627
631
  trapsFocus: true
@@ -642,8 +646,8 @@ React.createContext(void 0);
642
646
  const PlasmicInputContext = React.createContext(void 0);
643
647
 
644
648
  var __defProp$p = Object.defineProperty;
645
- var __defProps$f = Object.defineProperties;
646
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
649
+ var __defProps$e = Object.defineProperties;
650
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
647
651
  var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
648
652
  var __hasOwnProp$p = Object.prototype.hasOwnProperty;
649
653
  var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
@@ -659,8 +663,8 @@ var __spreadValues$p = (a, b) => {
659
663
  }
660
664
  return a;
661
665
  };
662
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
663
- var __objRest$m = (source, exclude) => {
666
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
667
+ var __objRest$n = (source, exclude) => {
664
668
  var target = {};
665
669
  for (var prop in source)
666
670
  if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -685,7 +689,7 @@ const CHECKBOX_VARIANTS = [
685
689
  ];
686
690
  const { variants: variants$e, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
687
691
  function BaseCheckbox(props) {
688
- const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$m(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
692
+ const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$n(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
689
693
  const contextProps = React.useContext(PlasmicCheckboxGroupContext);
690
694
  setControlContextData == null ? void 0 : setControlContextData({
691
695
  parent: contextProps
@@ -770,7 +774,7 @@ function registerCheckbox(loader, overrides) {
770
774
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
771
775
  importName: "BaseCheckbox",
772
776
  variants: variants$e,
773
- props: __spreadProps$f(__spreadValues$p({}, getCommonProps("checkbox", [
777
+ props: __spreadProps$e(__spreadValues$p({}, getCommonProps("checkbox", [
774
778
  "name",
775
779
  "isDisabled",
776
780
  "isReadOnly",
@@ -839,8 +843,8 @@ function registerCheckbox(loader, overrides) {
839
843
  }
840
844
 
841
845
  var __defProp$o = Object.defineProperty;
842
- var __defProps$e = Object.defineProperties;
843
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
846
+ var __defProps$d = Object.defineProperties;
847
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
844
848
  var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
845
849
  var __hasOwnProp$o = Object.prototype.hasOwnProperty;
846
850
  var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
@@ -856,8 +860,8 @@ var __spreadValues$o = (a, b) => {
856
860
  }
857
861
  return a;
858
862
  };
859
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
860
- var __objRest$l = (source, exclude) => {
863
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
864
+ var __objRest$m = (source, exclude) => {
861
865
  var target = {};
862
866
  for (var prop in source)
863
867
  if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -870,8 +874,8 @@ var __objRest$l = (source, exclude) => {
870
874
  return target;
871
875
  };
872
876
  function BaseText(_a) {
873
- var _b = _a, { children, slot, className } = _b, rest = __objRest$l(_b, ["children", "slot", "className"]);
874
- return /* @__PURE__ */ React.createElement(Text, __spreadProps$e(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
877
+ var _b = _a, { children, slot, className } = _b, rest = __objRest$m(_b, ["children", "slot", "className"]);
878
+ return /* @__PURE__ */ React.createElement(Text, __spreadProps$d(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
875
879
  }
876
880
  const TEXT_COMPONENT_NAME = makeComponentName("text");
877
881
  function registerText(loader, overrides) {
@@ -906,8 +910,8 @@ function registerText(loader, overrides) {
906
910
  }
907
911
 
908
912
  var __defProp$n = Object.defineProperty;
909
- var __defProps$d = Object.defineProperties;
910
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
913
+ var __defProps$c = Object.defineProperties;
914
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
911
915
  var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
912
916
  var __hasOwnProp$n = Object.prototype.hasOwnProperty;
913
917
  var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
@@ -923,10 +927,10 @@ var __spreadValues$n = (a, b) => {
923
927
  }
924
928
  return a;
925
929
  };
926
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
930
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
927
931
  const DESCRIPTION_COMPONENT_NAME = makeComponentName("description");
928
932
  function registerDescription(loader, overrides) {
929
- return registerText(loader, __spreadProps$d(__spreadValues$n({}, overrides), {
933
+ return registerText(loader, __spreadProps$c(__spreadValues$n({}, overrides), {
930
934
  name: DESCRIPTION_COMPONENT_NAME,
931
935
  displayName: "Aria Description",
932
936
  props: {
@@ -955,7 +959,7 @@ var __spreadValues$m = (a, b) => {
955
959
  }
956
960
  return a;
957
961
  };
958
- var __objRest$k = (source, exclude) => {
962
+ var __objRest$l = (source, exclude) => {
959
963
  var target = {};
960
964
  for (var prop in source)
961
965
  if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -979,7 +983,7 @@ function BaseFieldError(_a) {
979
983
  tooShort,
980
984
  typeMismatch,
981
985
  valueMissing
982
- } = _b, rest = __objRest$k(_b, [
986
+ } = _b, rest = __objRest$l(_b, [
983
987
  "badInput",
984
988
  "customError",
985
989
  "patternMismatch",
@@ -1099,8 +1103,8 @@ function registerFieldError(loader, overrides) {
1099
1103
  }
1100
1104
 
1101
1105
  var __defProp$l = Object.defineProperty;
1102
- var __defProps$c = Object.defineProperties;
1103
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1106
+ var __defProps$b = Object.defineProperties;
1107
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1104
1108
  var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
1105
1109
  var __hasOwnProp$l = Object.prototype.hasOwnProperty;
1106
1110
  var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
@@ -1116,8 +1120,8 @@ var __spreadValues$l = (a, b) => {
1116
1120
  }
1117
1121
  return a;
1118
1122
  };
1119
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1120
- var __objRest$j = (source, exclude) => {
1123
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1124
+ var __objRest$k = (source, exclude) => {
1121
1125
  var target = {};
1122
1126
  for (var prop in source)
1123
1127
  if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1130,8 +1134,8 @@ var __objRest$j = (source, exclude) => {
1130
1134
  return target;
1131
1135
  };
1132
1136
  function BaseLabel(_a) {
1133
- var _b = _a, { children, className } = _b, rest = __objRest$j(_b, ["children", "className"]);
1134
- return /* @__PURE__ */ React.createElement(Label, __spreadProps$c(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
1137
+ var _b = _a, { children, className } = _b, rest = __objRest$k(_b, ["children", "className"]);
1138
+ return /* @__PURE__ */ React.createElement(Label, __spreadProps$b(__spreadValues$l({}, extractPlasmicDataProps(rest)), { className }), children);
1135
1139
  }
1136
1140
  const LABEL_COMPONENT_NAME = makeComponentName("label");
1137
1141
  function registerLabel(loader, overrides) {
@@ -1163,8 +1167,8 @@ function registerLabel(loader, overrides) {
1163
1167
  }
1164
1168
 
1165
1169
  var __defProp$k = Object.defineProperty;
1166
- var __defProps$b = Object.defineProperties;
1167
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1170
+ var __defProps$a = Object.defineProperties;
1171
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
1168
1172
  var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
1169
1173
  var __hasOwnProp$k = Object.prototype.hasOwnProperty;
1170
1174
  var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
@@ -1180,8 +1184,8 @@ var __spreadValues$k = (a, b) => {
1180
1184
  }
1181
1185
  return a;
1182
1186
  };
1183
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1184
- var __objRest$i = (source, exclude) => {
1187
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
1188
+ var __objRest$j = (source, exclude) => {
1185
1189
  var target = {};
1186
1190
  for (var prop in source)
1187
1191
  if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1198,7 +1202,7 @@ const { variants: variants$d, withObservedValues: withObservedValues$b } = pickA
1198
1202
  CHECKBOX_GROUP_VARIANTS
1199
1203
  );
1200
1204
  function BaseCheckboxGroup(props) {
1201
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$i(_a, ["children", "plasmicUpdateVariant"]);
1205
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$j(_a, ["children", "plasmicUpdateVariant"]);
1202
1206
  return /* @__PURE__ */ React.createElement(PlasmicCheckboxGroupContext.Provider, { value: rest }, /* @__PURE__ */ React.createElement(CheckboxGroup, __spreadValues$k({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$b(
1203
1207
  children,
1204
1208
  {
@@ -1228,7 +1232,7 @@ function registerCheckboxGroup(loader, overrides) {
1228
1232
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
1229
1233
  importName: "BaseCheckboxGroup",
1230
1234
  variants: variants$d,
1231
- props: __spreadProps$b(__spreadValues$k({}, getCommonProps("checkbox group", [
1235
+ props: __spreadProps$a(__spreadValues$k({}, getCommonProps("checkbox group", [
1232
1236
  "name",
1233
1237
  "isDisabled",
1234
1238
  "isReadOnly",
@@ -1409,7 +1413,7 @@ var __spreadValues$j = (a, b) => {
1409
1413
  }
1410
1414
  return a;
1411
1415
  };
1412
- var __objRest$h = (source, exclude) => {
1416
+ var __objRest$i = (source, exclude) => {
1413
1417
  var target = {};
1414
1418
  for (var prop in source)
1415
1419
  if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1444,7 +1448,7 @@ function BaseInput(props) {
1444
1448
  disabled,
1445
1449
  autoComplete,
1446
1450
  value
1447
- } = _a, rest = __objRest$h(_a, [
1451
+ } = _a, rest = __objRest$i(_a, [
1448
1452
  "plasmicUpdateVariant",
1449
1453
  "setControlContextData",
1450
1454
  "disabled",
@@ -1579,7 +1583,7 @@ var __spreadValues$i = (a, b) => {
1579
1583
  }
1580
1584
  return a;
1581
1585
  };
1582
- var __objRest$g = (source, exclude) => {
1586
+ var __objRest$h = (source, exclude) => {
1583
1587
  var target = {};
1584
1588
  for (var prop in source)
1585
1589
  if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1603,7 +1607,7 @@ const { variants: variants$b, withObservedValues: withObservedValues$a } = pickA
1603
1607
  LIST_BOX_ITEM_VARIANTS
1604
1608
  );
1605
1609
  function BaseListBoxItem(props) {
1606
- const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$g(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
1610
+ const _a = props, { children, setControlContextData, plasmicUpdateVariant, id } = _a, rest = __objRest$h(_a, ["children", "setControlContextData", "plasmicUpdateVariant", "id"]);
1607
1611
  const listboxContext = React.useContext(PlasmicListBoxContext);
1608
1612
  const isStandalone = !listboxContext;
1609
1613
  const [registeredId, setRegisteredId] = useState();
@@ -1752,7 +1756,7 @@ var __spreadValues$h = (a, b) => {
1752
1756
  }
1753
1757
  return a;
1754
1758
  };
1755
- var __objRest$f = (source, exclude) => {
1759
+ var __objRest$g = (source, exclude) => {
1756
1760
  var target = {};
1757
1761
  for (var prop in source)
1758
1762
  if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1765,7 +1769,7 @@ var __objRest$f = (source, exclude) => {
1765
1769
  return target;
1766
1770
  };
1767
1771
  function BaseSection(props) {
1768
- const _a = props, { header, items } = _a, rest = __objRest$f(_a, ["header", "items"]);
1772
+ const _a = props, { header, items } = _a, rest = __objRest$g(_a, ["header", "items"]);
1769
1773
  const contextProps = React.useContext(PlasmicListBoxContext);
1770
1774
  const mergedProps = mergeProps$1(contextProps, rest);
1771
1775
  return /* @__PURE__ */ React.createElement(Section, __spreadValues$h({}, mergedProps), /* @__PURE__ */ React.createElement(Header, null, header), items);
@@ -1821,7 +1825,7 @@ var __spreadValues$g = (a, b) => {
1821
1825
  }
1822
1826
  return a;
1823
1827
  };
1824
- var __objRest$e = (source, exclude) => {
1828
+ var __objRest$f = (source, exclude) => {
1825
1829
  var target = {};
1826
1830
  for (var prop in source)
1827
1831
  if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -1851,7 +1855,7 @@ function BaseListBox(props) {
1851
1855
  children,
1852
1856
  selectedKeys,
1853
1857
  defaultSelectedKeys
1854
- } = _a, rest = __objRest$e(_a, [
1858
+ } = _a, rest = __objRest$f(_a, [
1855
1859
  "setControlContextData",
1856
1860
  "children",
1857
1861
  "selectedKeys",
@@ -2083,7 +2087,7 @@ var __spreadValues$f = (a, b) => {
2083
2087
  }
2084
2088
  return a;
2085
2089
  };
2086
- var __objRest$d = (source, exclude) => {
2090
+ var __objRest$e = (source, exclude) => {
2087
2091
  var target = {};
2088
2092
  for (var prop in source)
2089
2093
  if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2103,7 +2107,7 @@ const POPOVER_VARIANTS = [
2103
2107
  ];
2104
2108
  const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickAriaComponentVariants(POPOVER_VARIANTS);
2105
2109
  function BasePopover(props) {
2106
- const _a = props, { resetClassName, plasmicUpdateVariant } = _a, restProps = __objRest$d(_a, ["resetClassName", "plasmicUpdateVariant"]);
2110
+ const _a = props, { resetClassName, plasmicUpdateVariant } = _a, restProps = __objRest$e(_a, ["resetClassName", "plasmicUpdateVariant"]);
2107
2111
  const isStandalone = !React.useContext(PopoverContext);
2108
2112
  const context = React.useContext(PlasmicPopoverContext);
2109
2113
  const triggerRef = React.useRef(null);
@@ -2125,7 +2129,7 @@ function BasePopover(props) {
2125
2129
  // In component view, we never want to start with an empty artboard, so isOpen has to be true
2126
2130
  isOpen: true
2127
2131
  } : null
2128
- ), { children } = _b, mergedProps = __objRest$d(_b, ["children"]);
2132
+ ), { children } = _b, mergedProps = __objRest$e(_b, ["children"]);
2129
2133
  return /* @__PURE__ */ React.createElement(React.Fragment, null, isStandalone && /* @__PURE__ */ React.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React.createElement(Popover, __spreadValues$f({}, mergedProps), ({ placement }) => withObservedValues$9(
2130
2134
  children,
2131
2135
  {
@@ -2237,8 +2241,8 @@ function registerPopover(loader, overrides) {
2237
2241
  }
2238
2242
 
2239
2243
  var __defProp$e = Object.defineProperty;
2240
- var __defProps$a = Object.defineProperties;
2241
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
2244
+ var __defProps$9 = Object.defineProperties;
2245
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2242
2246
  var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
2243
2247
  var __hasOwnProp$e = Object.prototype.hasOwnProperty;
2244
2248
  var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
@@ -2254,8 +2258,8 @@ var __spreadValues$e = (a, b) => {
2254
2258
  }
2255
2259
  return a;
2256
2260
  };
2257
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
2258
- var __objRest$c = (source, exclude) => {
2261
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2262
+ var __objRest$d = (source, exclude) => {
2259
2263
  var target = {};
2260
2264
  for (var prop in source)
2261
2265
  if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2279,7 +2283,7 @@ function BaseComboBox(props) {
2279
2283
  children,
2280
2284
  setControlContextData,
2281
2285
  isOpen: _isOpen
2282
- } = _a, rest = __objRest$c(_a, [
2286
+ } = _a, rest = __objRest$d(_a, [
2283
2287
  "children",
2284
2288
  "setControlContextData",
2285
2289
  "isOpen"
@@ -2308,7 +2312,7 @@ function registerComboBox(loader) {
2308
2312
  displayName: "Aria ComboBox",
2309
2313
  importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
2310
2314
  importName: "BaseComboBox",
2311
- props: __spreadProps$a(__spreadValues$e({}, getCommonProps("ComboBox", [
2315
+ props: __spreadProps$9(__spreadValues$e({}, getCommonProps("ComboBox", [
2312
2316
  "name",
2313
2317
  "aria-label",
2314
2318
  "placeholder",
@@ -2458,7 +2462,7 @@ var __spreadValues$d = (a, b) => {
2458
2462
  }
2459
2463
  return a;
2460
2464
  };
2461
- var __objRest$b = (source, exclude) => {
2465
+ var __objRest$c = (source, exclude) => {
2462
2466
  var target = {};
2463
2467
  for (var prop in source)
2464
2468
  if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2471,7 +2475,7 @@ var __objRest$b = (source, exclude) => {
2471
2475
  return target;
2472
2476
  };
2473
2477
  function BaseHeading(_a) {
2474
- var _b = _a, { children } = _b, rest = __objRest$b(_b, ["children"]);
2478
+ var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
2475
2479
  return /* @__PURE__ */ React.createElement(Heading, __spreadValues$d({}, rest), children);
2476
2480
  }
2477
2481
  const HEADING_COMPONENT_NAME = makeComponentName("heading");
@@ -2511,8 +2515,8 @@ function registerHeading(loader, overrides) {
2511
2515
  }
2512
2516
 
2513
2517
  var __defProp$c = Object.defineProperty;
2514
- var __defProps$9 = Object.defineProperties;
2515
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2518
+ var __defProps$8 = Object.defineProperties;
2519
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2516
2520
  var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2517
2521
  var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2518
2522
  var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
@@ -2528,8 +2532,8 @@ var __spreadValues$c = (a, b) => {
2528
2532
  }
2529
2533
  return a;
2530
2534
  };
2531
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2532
- var __objRest$a = (source, exclude) => {
2535
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2536
+ var __objRest$b = (source, exclude) => {
2533
2537
  var target = {};
2534
2538
  for (var prop in source)
2535
2539
  if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2555,7 +2559,7 @@ const BaseModal = forwardRef(
2555
2559
  resetClassName,
2556
2560
  setControlContextData,
2557
2561
  isDismissable
2558
- } = _a, rest = __objRest$a(_a, [
2562
+ } = _a, rest = __objRest$b(_a, [
2559
2563
  "children",
2560
2564
  "modalOverlayClass",
2561
2565
  "className",
@@ -2597,7 +2601,7 @@ const BaseModal = forwardRef(
2597
2601
  const bodyInPreview = /* @__PURE__ */ React.createElement(Dialog, { style: INLINE_STYLES }, children);
2598
2602
  return /* @__PURE__ */ React.createElement(
2599
2603
  ModalOverlay,
2600
- __spreadProps$9(__spreadValues$c({}, mergedProps), {
2604
+ __spreadProps$8(__spreadValues$c({}, mergedProps), {
2601
2605
  className: `${resetClassName} ${modalOverlayClass}`
2602
2606
  }),
2603
2607
  /* @__PURE__ */ React.createElement(Modal, { className }, isCanvas ? bodyInCanvas : bodyInPreview)
@@ -2719,8 +2723,8 @@ function registerModal(loader, overrides) {
2719
2723
  }
2720
2724
 
2721
2725
  var __defProp$b = Object.defineProperty;
2722
- var __defProps$8 = Object.defineProperties;
2723
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2726
+ var __defProps$7 = Object.defineProperties;
2727
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2724
2728
  var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2725
2729
  var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2726
2730
  var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
@@ -2736,8 +2740,8 @@ var __spreadValues$b = (a, b) => {
2736
2740
  }
2737
2741
  return a;
2738
2742
  };
2739
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2740
- var __objRest$9 = (source, exclude) => {
2743
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2744
+ var __objRest$a = (source, exclude) => {
2741
2745
  var target = {};
2742
2746
  for (var prop in source)
2743
2747
  if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2751,10 +2755,10 @@ var __objRest$9 = (source, exclude) => {
2751
2755
  };
2752
2756
  function BaseDialogTrigger(props) {
2753
2757
  var _b, _c;
2754
- const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$9(_a, ["trigger", "dialog", "isOpen"]);
2758
+ const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$a(_a, ["trigger", "dialog", "isOpen"]);
2755
2759
  const { isSelected, selectedSlotName } = (_b = usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
2756
2760
  const isAutoOpen = selectedSlotName !== "trigger" && isSelected;
2757
- const mergedProps = __spreadProps$8(__spreadValues$b({}, rest), {
2761
+ const mergedProps = __spreadProps$7(__spreadValues$b({}, rest), {
2758
2762
  isOpen: (_c = isAutoOpen || isOpen) != null ? _c : false
2759
2763
  });
2760
2764
  return /* @__PURE__ */ React.createElement(PlasmicDialogTriggerContext.Provider, { value: mergedProps }, /* @__PURE__ */ React.createElement(DialogTrigger, __spreadValues$b({}, mergedProps), trigger, dialog));
@@ -2819,8 +2823,8 @@ function registerDialogTrigger(loader, overrides) {
2819
2823
  }
2820
2824
 
2821
2825
  var __defProp$a = Object.defineProperty;
2822
- var __defProps$7 = Object.defineProperties;
2823
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2826
+ var __defProps$6 = Object.defineProperties;
2827
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2824
2828
  var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2825
2829
  var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2826
2830
  var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
@@ -2836,8 +2840,8 @@ var __spreadValues$a = (a, b) => {
2836
2840
  }
2837
2841
  return a;
2838
2842
  };
2839
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2840
- var __objRest$8 = (source, exclude) => {
2843
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2844
+ var __objRest$9 = (source, exclude) => {
2841
2845
  var target = {};
2842
2846
  for (var prop in source)
2843
2847
  if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2861,7 +2865,7 @@ const RADIO_VARIANTS = [
2861
2865
  ];
2862
2866
  const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
2863
2867
  function BaseRadio(props) {
2864
- const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
2868
+ const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$9(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
2865
2869
  const contextProps = React.useContext(PlasmicRadioGroupContext);
2866
2870
  const isStandalone = !contextProps;
2867
2871
  setControlContextData == null ? void 0 : setControlContextData({
@@ -2935,7 +2939,7 @@ function registerRadio(loader, overrides) {
2935
2939
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
2936
2940
  importName: "BaseRadio",
2937
2941
  variants: variants$9,
2938
- props: __spreadProps$7(__spreadValues$a({}, getCommonProps("radio", [
2942
+ props: __spreadProps$6(__spreadValues$a({}, getCommonProps("radio", [
2939
2943
  "isDisabled",
2940
2944
  "autoFocus",
2941
2945
  "aria-label"
@@ -2957,8 +2961,8 @@ function registerRadio(loader, overrides) {
2957
2961
  }
2958
2962
 
2959
2963
  var __defProp$9 = Object.defineProperty;
2960
- var __defProps$6 = Object.defineProperties;
2961
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2964
+ var __defProps$5 = Object.defineProperties;
2965
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2962
2966
  var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2963
2967
  var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2964
2968
  var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
@@ -2974,8 +2978,8 @@ var __spreadValues$9 = (a, b) => {
2974
2978
  }
2975
2979
  return a;
2976
2980
  };
2977
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2978
- var __objRest$7 = (source, exclude) => {
2981
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
2982
+ var __objRest$8 = (source, exclude) => {
2979
2983
  var target = {};
2980
2984
  for (var prop in source)
2981
2985
  if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2990,7 +2994,7 @@ var __objRest$7 = (source, exclude) => {
2990
2994
  const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
2991
2995
  const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
2992
2996
  function BaseRadioGroup(props) {
2993
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$7(_a, ["children", "plasmicUpdateVariant"]);
2997
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant"]);
2994
2998
  return /* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadValues$9({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$7(
2995
2999
  children,
2996
3000
  {
@@ -3018,7 +3022,7 @@ function registerRadioGroup(loader, overrides) {
3018
3022
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
3019
3023
  importName: "BaseRadioGroup",
3020
3024
  variants: variants$8,
3021
- props: __spreadProps$6(__spreadValues$9({}, getCommonProps("radio group", [
3025
+ props: __spreadProps$5(__spreadValues$9({}, getCommonProps("radio group", [
3022
3026
  "name",
3023
3027
  "isDisabled",
3024
3028
  "isReadOnly",
@@ -3124,8 +3128,8 @@ function registerRadioGroup(loader, overrides) {
3124
3128
  }
3125
3129
 
3126
3130
  var __defProp$8 = Object.defineProperty;
3127
- var __defProps$5 = Object.defineProperties;
3128
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
3131
+ var __defProps$4 = Object.defineProperties;
3132
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3129
3133
  var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3130
3134
  var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3131
3135
  var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
@@ -3141,7 +3145,7 @@ var __spreadValues$8 = (a, b) => {
3141
3145
  }
3142
3146
  return a;
3143
3147
  };
3144
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
3148
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3145
3149
  function SelectAutoOpen(props) {
3146
3150
  var _a;
3147
3151
  const { open, close } = (_a = React.useContext(SelectStateContext)) != null ? _a : {};
@@ -3233,7 +3237,7 @@ function registerSelect(loader) {
3233
3237
  displayName: "Aria Select",
3234
3238
  importPath: "@plasmicpkgs/react-aria/skinny/registerSelect",
3235
3239
  importName: "BaseSelect",
3236
- props: __spreadProps$5(__spreadValues$8({}, getCommonProps("Select", [
3240
+ props: __spreadProps$4(__spreadValues$8({}, getCommonProps("Select", [
3237
3241
  "name",
3238
3242
  "aria-label",
3239
3243
  "placeholder",
@@ -3390,7 +3394,7 @@ var __spreadValues$7 = (a, b) => {
3390
3394
  }
3391
3395
  return a;
3392
3396
  };
3393
- var __objRest$6 = (source, exclude) => {
3397
+ var __objRest$7 = (source, exclude) => {
3394
3398
  var target = {};
3395
3399
  for (var prop in source)
3396
3400
  if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3407,7 +3411,7 @@ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickA
3407
3411
  SLIDER_OUTPUT_VARIANTS
3408
3412
  );
3409
3413
  function BaseSliderOutput(props) {
3410
- const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$6(_a, ["plasmicUpdateVariant", "children"]);
3414
+ const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
3411
3415
  return /* @__PURE__ */ React.createElement(SliderOutput, __spreadValues$7({}, rest), ({ isDisabled }) => withObservedValues$6(
3412
3416
  children,
3413
3417
  {
@@ -3456,8 +3460,8 @@ class ErrorBoundary extends Component {
3456
3460
  }
3457
3461
 
3458
3462
  var __defProp$6 = Object.defineProperty;
3459
- var __defProps$4 = Object.defineProperties;
3460
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3463
+ var __defProps$3 = Object.defineProperties;
3464
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3461
3465
  var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3462
3466
  var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3463
3467
  var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
@@ -3473,8 +3477,8 @@ var __spreadValues$6 = (a, b) => {
3473
3477
  }
3474
3478
  return a;
3475
3479
  };
3476
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3477
- var __objRest$5 = (source, exclude) => {
3480
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3481
+ var __objRest$6 = (source, exclude) => {
3478
3482
  var target = {};
3479
3483
  for (var prop in source)
3480
3484
  if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3501,7 +3505,7 @@ function BaseSliderThumb(_a) {
3501
3505
  children,
3502
3506
  advanced,
3503
3507
  plasmicUpdateVariant
3504
- } = _b, rest = __objRest$5(_b, [
3508
+ } = _b, rest = __objRest$6(_b, [
3505
3509
  "children",
3506
3510
  "advanced",
3507
3511
  "plasmicUpdateVariant"
@@ -3547,7 +3551,7 @@ function registerSliderThumb(loader, overrides) {
3547
3551
  cursor: "pointer"
3548
3552
  },
3549
3553
  variants: variants$6,
3550
- props: __spreadProps$4(__spreadValues$6({}, getCommonProps("slider thumb", [
3554
+ props: __spreadProps$3(__spreadValues$6({}, getCommonProps("slider thumb", [
3551
3555
  "name",
3552
3556
  "isDisabled",
3553
3557
  "autoFocus"
@@ -3585,7 +3589,7 @@ var __spreadValues$5 = (a, b) => {
3585
3589
  }
3586
3590
  return a;
3587
3591
  };
3588
- var __objRest$4 = (source, exclude) => {
3592
+ var __objRest$5 = (source, exclude) => {
3589
3593
  var target = {};
3590
3594
  for (var prop in source)
3591
3595
  if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3623,7 +3627,7 @@ function BaseSliderTrack(props) {
3623
3627
  const context = React.useContext(PlasmicSliderContext);
3624
3628
  const isStandalone = !context;
3625
3629
  const mergedProps = mergeProps(context, props);
3626
- const _a = mergedProps, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
3630
+ const _a = mergedProps, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$5(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
3627
3631
  const isMultiValue = isMultiValueGuard(mergedProps.value);
3628
3632
  const { minIndex, maxIndex } = useMemo(() => {
3629
3633
  if (!context || !Array.isArray(context.value) || context.value.length <= 1) {
@@ -3751,8 +3755,8 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
3751
3755
  }
3752
3756
 
3753
3757
  var __defProp$4 = Object.defineProperty;
3754
- var __defProps$3 = Object.defineProperties;
3755
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3758
+ var __defProps$2 = Object.defineProperties;
3759
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3756
3760
  var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3757
3761
  var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3758
3762
  var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
@@ -3768,8 +3772,8 @@ var __spreadValues$4 = (a, b) => {
3768
3772
  }
3769
3773
  return a;
3770
3774
  };
3771
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3772
- var __objRest$3 = (source, exclude) => {
3775
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3776
+ var __objRest$4 = (source, exclude) => {
3773
3777
  var target = {};
3774
3778
  for (var prop in source)
3775
3779
  if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3786,11 +3790,11 @@ const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
3786
3790
  const SLIDER_VARIANTS = ["disabled"];
3787
3791
  const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
3788
3792
  function BaseSlider(props) {
3789
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
3793
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
3790
3794
  return /* @__PURE__ */ React.createElement(
3791
3795
  PlasmicSliderContext.Provider,
3792
3796
  {
3793
- value: __spreadProps$3(__spreadValues$4({}, rest), {
3797
+ value: __spreadProps$2(__spreadValues$4({}, rest), {
3794
3798
  // Here's why the type casting is needed here: https://github.com/Microsoft/TypeScript/issues/3410
3795
3799
  onChange: rest.onChange,
3796
3800
  onChangeEnd: rest.onChangeEnd
@@ -3852,7 +3856,7 @@ function registerSlider(loader, overrides) {
3852
3856
  defaultStyles: {
3853
3857
  width: "300px"
3854
3858
  },
3855
- props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3859
+ props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3856
3860
  "isDisabled",
3857
3861
  "aria-label"
3858
3862
  ])), getCommonSliderProps()), {
@@ -3964,7 +3968,7 @@ function registerSlider(loader, overrides) {
3964
3968
  defaultStyles: {
3965
3969
  width: "300px"
3966
3970
  },
3967
- props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3971
+ props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3968
3972
  "isDisabled",
3969
3973
  "aria-label"
3970
3974
  ])), getCommonSliderProps()), {
@@ -4040,8 +4044,8 @@ function registerSlider(loader, overrides) {
4040
4044
  }
4041
4045
 
4042
4046
  var __defProp$3 = Object.defineProperty;
4043
- var __defProps$2 = Object.defineProperties;
4044
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4047
+ var __defProps$1 = Object.defineProperties;
4048
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4045
4049
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4046
4050
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4047
4051
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
@@ -4057,8 +4061,8 @@ var __spreadValues$3 = (a, b) => {
4057
4061
  }
4058
4062
  return a;
4059
4063
  };
4060
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4061
- var __objRest$2 = (source, exclude) => {
4064
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4065
+ var __objRest$3 = (source, exclude) => {
4062
4066
  var target = {};
4063
4067
  for (var prop in source)
4064
4068
  if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4081,7 +4085,7 @@ const SWITCH_VARIANTS = [
4081
4085
  ];
4082
4086
  const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4083
4087
  function BaseSwitch(props) {
4084
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$2(_a, ["children", "plasmicUpdateVariant"]);
4088
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
4085
4089
  return /* @__PURE__ */ React.createElement(Switch, __spreadValues$3({}, rest), ({
4086
4090
  isHovered,
4087
4091
  isPressed,
@@ -4121,7 +4125,7 @@ function registerSwitch(loader, overrides) {
4121
4125
  justifyContent: "flex-start",
4122
4126
  padding: 0
4123
4127
  },
4124
- props: __spreadProps$2(__spreadValues$3({}, getCommonProps("switch", [
4128
+ props: __spreadProps$1(__spreadValues$3({}, getCommonProps("switch", [
4125
4129
  "name",
4126
4130
  "isDisabled",
4127
4131
  "isReadOnly",
@@ -4247,7 +4251,7 @@ var __spreadValues$2 = (a, b) => {
4247
4251
  }
4248
4252
  return a;
4249
4253
  };
4250
- var __objRest$1 = (source, exclude) => {
4254
+ var __objRest$2 = (source, exclude) => {
4251
4255
  var target = {};
4252
4256
  for (var prop in source)
4253
4257
  if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4276,7 +4280,7 @@ const inputHelpers = {
4276
4280
  };
4277
4281
  function BaseTextArea(props) {
4278
4282
  var _b;
4279
- const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$1(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
4283
+ const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$2(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
4280
4284
  const textFieldContext = React.useContext(PlasmicTextFieldContext);
4281
4285
  const mergedProps = mergeProps(rest, {
4282
4286
  disabled: (_b = textFieldContext == null ? void 0 : textFieldContext.isDisabled) != null ? _b : disabled
@@ -4366,8 +4370,8 @@ function registerTextArea(loader, overrides) {
4366
4370
  }
4367
4371
 
4368
4372
  var __defProp$1 = Object.defineProperty;
4369
- var __defProps$1 = Object.defineProperties;
4370
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4373
+ var __defProps = Object.defineProperties;
4374
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4371
4375
  var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
4372
4376
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
4373
4377
  var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
@@ -4383,8 +4387,8 @@ var __spreadValues$1 = (a, b) => {
4383
4387
  }
4384
4388
  return a;
4385
4389
  };
4386
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4387
- var __objRest = (source, exclude) => {
4390
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4391
+ var __objRest$1 = (source, exclude) => {
4388
4392
  var target = {};
4389
4393
  for (var prop in source)
4390
4394
  if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4399,7 +4403,7 @@ var __objRest = (source, exclude) => {
4399
4403
  const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
4400
4404
  const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4401
4405
  function BaseTextField(props) {
4402
- const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4406
+ const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4403
4407
  return /* @__PURE__ */ React.createElement(PlasmicTextFieldContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(TextField, __spreadValues$1({ autoComplete: resolveAutoComplete(autoComplete) }, rest), ({ isDisabled, isReadOnly }) => withObservedValues$1(
4404
4408
  children,
4405
4409
  {
@@ -4421,7 +4425,7 @@ function registerTextField(loader, overrides) {
4421
4425
  importName: "BaseTextField",
4422
4426
  variants: variants$1,
4423
4427
  // TODO: Support for validate prop
4424
- props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
4428
+ props: __spreadProps(__spreadValues$1({}, getCommonProps("Text Field", [
4425
4429
  "name",
4426
4430
  "isDisabled",
4427
4431
  "isReadOnly",
@@ -4530,8 +4534,6 @@ function registerTextField(loader, overrides) {
4530
4534
  }
4531
4535
 
4532
4536
  var __defProp = Object.defineProperty;
4533
- var __defProps = Object.defineProperties;
4534
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4535
4537
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4536
4538
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4537
4539
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -4547,11 +4549,18 @@ var __spreadValues = (a, b) => {
4547
4549
  }
4548
4550
  return a;
4549
4551
  };
4550
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4551
- function isForwardRefComponent(element) {
4552
- var _a;
4553
- return ((_a = element == null ? void 0 : element.type) == null ? void 0 : _a.$$typeof) === Symbol.for("react.forward_ref");
4554
- }
4552
+ var __objRest = (source, exclude) => {
4553
+ var target = {};
4554
+ for (var prop in source)
4555
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
4556
+ target[prop] = source[prop];
4557
+ if (source != null && __getOwnPropSymbols)
4558
+ for (var prop of __getOwnPropSymbols(source)) {
4559
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
4560
+ target[prop] = source[prop];
4561
+ }
4562
+ return target;
4563
+ };
4555
4564
  const TOOLTIP_VARIANTS = [
4556
4565
  "placementTop",
4557
4566
  "placementBottom",
@@ -4559,16 +4568,15 @@ const TOOLTIP_VARIANTS = [
4559
4568
  "placementRight"
4560
4569
  ];
4561
4570
  const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
4562
- function TooltipButton(props) {
4571
+ function TriggerWrapper(_a) {
4572
+ var _b = _a, {
4573
+ children
4574
+ } = _b, rest = __objRest(_b, [
4575
+ "children"
4576
+ ]);
4563
4577
  const ref = React.useRef(null);
4564
- const { buttonProps } = useButton(props, ref);
4565
- const { children } = props;
4566
- if (!isForwardRefComponent(children)) {
4567
- return children;
4568
- }
4569
- return React.cloneElement(children, __spreadProps(__spreadValues({}, buttonProps), {
4570
- ref
4571
- }));
4578
+ const { focusableProps } = useFocusable(rest, ref);
4579
+ return /* @__PURE__ */ React.createElement("div", __spreadValues({ ref }, focusableProps), children);
4572
4580
  }
4573
4581
  function BaseTooltip(props) {
4574
4582
  var _a;
@@ -4592,7 +4600,6 @@ function BaseTooltip(props) {
4592
4600
  } = props;
4593
4601
  const { isSelected, selectedSlotName } = (_a = usePlasmicCanvasComponentInfo(props)) != null ? _a : {};
4594
4602
  const isAutoOpen = selectedSlotName !== "children" && isSelected;
4595
- const focusableChild = flattenChildren(children)[0];
4596
4603
  const _isOpen = isAutoOpen || isOpen;
4597
4604
  return /* @__PURE__ */ React.createElement(
4598
4605
  TooltipTrigger,
@@ -4605,7 +4612,7 @@ function BaseTooltip(props) {
4605
4612
  defaultOpen,
4606
4613
  onOpenChange
4607
4614
  },
4608
- /* @__PURE__ */ React.createElement(TooltipButton, null, focusableChild),
4615
+ /* @__PURE__ */ React.createElement(TriggerWrapper, null, children),
4609
4616
  /* @__PURE__ */ React.createElement(
4610
4617
  Tooltip,
4611
4618
  {