@plasmicpkgs/react-aria 0.0.72 → 0.0.74

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)
@@ -2268,6 +2272,8 @@ var __objRest$c = (source, exclude) => {
2268
2272
  return target;
2269
2273
  };
2270
2274
  const COMBOBOX_NAME = makeComponentName("combobox");
2275
+ const COMBOBOX_VARIANTS = ["disabled"];
2276
+ const { variants: COMBOBOX_VARIANTS_DATA } = pickAriaComponentVariants(COMBOBOX_VARIANTS);
2271
2277
  function ComboboxAutoOpen(props) {
2272
2278
  var _a;
2273
2279
  const { open, close } = (_a = React.useContext(ComboBoxStateContext)) != null ? _a : {};
@@ -2278,10 +2284,16 @@ function BaseComboBox(props) {
2278
2284
  const _a = props, {
2279
2285
  children,
2280
2286
  setControlContextData,
2287
+ plasmicUpdateVariant,
2288
+ className,
2289
+ isDisabled,
2281
2290
  isOpen: _isOpen
2282
- } = _a, rest = __objRest$c(_a, [
2291
+ } = _a, rest = __objRest$d(_a, [
2283
2292
  "children",
2284
2293
  "setControlContextData",
2294
+ "plasmicUpdateVariant",
2295
+ "className",
2296
+ "isDisabled",
2285
2297
  "isOpen"
2286
2298
  ]);
2287
2299
  const idManager = useMemo(() => new ListBoxItemIdManager(), []);
@@ -2292,15 +2304,27 @@ function BaseComboBox(props) {
2292
2304
  });
2293
2305
  });
2294
2306
  }, []);
2295
- return /* @__PURE__ */ React.createElement(ComboBox, __spreadValues$e({}, rest), /* @__PURE__ */ React.createElement(PlasmicPopoverContext.Provider, { value: {} }, /* @__PURE__ */ React.createElement(
2296
- PlasmicListBoxContext.Provider,
2297
- {
2298
- value: {
2299
- idManager
2300
- }
2301
- },
2302
- /* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(ComboboxAutoOpen, __spreadValues$e({}, props)), children)
2303
- )));
2307
+ useEffect(() => {
2308
+ plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
2309
+ disabled: isDisabled
2310
+ });
2311
+ }, [isDisabled, plasmicUpdateVariant]);
2312
+ return /* @__PURE__ */ React.createElement(
2313
+ ComboBox,
2314
+ __spreadValues$e({
2315
+ isDisabled,
2316
+ className
2317
+ }, rest),
2318
+ /* @__PURE__ */ React.createElement(PlasmicPopoverContext.Provider, { value: {} }, /* @__PURE__ */ React.createElement(
2319
+ PlasmicListBoxContext.Provider,
2320
+ {
2321
+ value: {
2322
+ idManager
2323
+ }
2324
+ },
2325
+ /* @__PURE__ */ React.createElement(PlasmicInputContext.Provider, { value: { isUncontrolled: true } }, /* @__PURE__ */ React.createElement(ComboboxAutoOpen, __spreadValues$e({}, props)), children)
2326
+ ))
2327
+ );
2304
2328
  }
2305
2329
  function registerComboBox(loader) {
2306
2330
  registerComponentHelper(loader, BaseComboBox, {
@@ -2308,7 +2332,8 @@ function registerComboBox(loader) {
2308
2332
  displayName: "Aria ComboBox",
2309
2333
  importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
2310
2334
  importName: "BaseComboBox",
2311
- props: __spreadProps$a(__spreadValues$e({}, getCommonProps("ComboBox", [
2335
+ variants: COMBOBOX_VARIANTS_DATA,
2336
+ props: __spreadProps$9(__spreadValues$e({}, getCommonProps("ComboBox", [
2312
2337
  "name",
2313
2338
  "aria-label",
2314
2339
  "placeholder",
@@ -2458,7 +2483,7 @@ var __spreadValues$d = (a, b) => {
2458
2483
  }
2459
2484
  return a;
2460
2485
  };
2461
- var __objRest$b = (source, exclude) => {
2486
+ var __objRest$c = (source, exclude) => {
2462
2487
  var target = {};
2463
2488
  for (var prop in source)
2464
2489
  if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2471,7 +2496,7 @@ var __objRest$b = (source, exclude) => {
2471
2496
  return target;
2472
2497
  };
2473
2498
  function BaseHeading(_a) {
2474
- var _b = _a, { children } = _b, rest = __objRest$b(_b, ["children"]);
2499
+ var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
2475
2500
  return /* @__PURE__ */ React.createElement(Heading, __spreadValues$d({}, rest), children);
2476
2501
  }
2477
2502
  const HEADING_COMPONENT_NAME = makeComponentName("heading");
@@ -2511,8 +2536,8 @@ function registerHeading(loader, overrides) {
2511
2536
  }
2512
2537
 
2513
2538
  var __defProp$c = Object.defineProperty;
2514
- var __defProps$9 = Object.defineProperties;
2515
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
2539
+ var __defProps$8 = Object.defineProperties;
2540
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2516
2541
  var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
2517
2542
  var __hasOwnProp$c = Object.prototype.hasOwnProperty;
2518
2543
  var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
@@ -2528,8 +2553,8 @@ var __spreadValues$c = (a, b) => {
2528
2553
  }
2529
2554
  return a;
2530
2555
  };
2531
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
2532
- var __objRest$a = (source, exclude) => {
2556
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2557
+ var __objRest$b = (source, exclude) => {
2533
2558
  var target = {};
2534
2559
  for (var prop in source)
2535
2560
  if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2555,7 +2580,7 @@ const BaseModal = forwardRef(
2555
2580
  resetClassName,
2556
2581
  setControlContextData,
2557
2582
  isDismissable
2558
- } = _a, rest = __objRest$a(_a, [
2583
+ } = _a, rest = __objRest$b(_a, [
2559
2584
  "children",
2560
2585
  "modalOverlayClass",
2561
2586
  "className",
@@ -2597,7 +2622,7 @@ const BaseModal = forwardRef(
2597
2622
  const bodyInPreview = /* @__PURE__ */ React.createElement(Dialog, { style: INLINE_STYLES }, children);
2598
2623
  return /* @__PURE__ */ React.createElement(
2599
2624
  ModalOverlay,
2600
- __spreadProps$9(__spreadValues$c({}, mergedProps), {
2625
+ __spreadProps$8(__spreadValues$c({}, mergedProps), {
2601
2626
  className: `${resetClassName} ${modalOverlayClass}`
2602
2627
  }),
2603
2628
  /* @__PURE__ */ React.createElement(Modal, { className }, isCanvas ? bodyInCanvas : bodyInPreview)
@@ -2719,8 +2744,8 @@ function registerModal(loader, overrides) {
2719
2744
  }
2720
2745
 
2721
2746
  var __defProp$b = Object.defineProperty;
2722
- var __defProps$8 = Object.defineProperties;
2723
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
2747
+ var __defProps$7 = Object.defineProperties;
2748
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2724
2749
  var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
2725
2750
  var __hasOwnProp$b = Object.prototype.hasOwnProperty;
2726
2751
  var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
@@ -2736,8 +2761,8 @@ var __spreadValues$b = (a, b) => {
2736
2761
  }
2737
2762
  return a;
2738
2763
  };
2739
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
2740
- var __objRest$9 = (source, exclude) => {
2764
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2765
+ var __objRest$a = (source, exclude) => {
2741
2766
  var target = {};
2742
2767
  for (var prop in source)
2743
2768
  if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2751,10 +2776,10 @@ var __objRest$9 = (source, exclude) => {
2751
2776
  };
2752
2777
  function BaseDialogTrigger(props) {
2753
2778
  var _b, _c;
2754
- const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$9(_a, ["trigger", "dialog", "isOpen"]);
2779
+ const _a = props, { trigger, dialog, isOpen } = _a, rest = __objRest$a(_a, ["trigger", "dialog", "isOpen"]);
2755
2780
  const { isSelected, selectedSlotName } = (_b = usePlasmicCanvasComponentInfo(props)) != null ? _b : {};
2756
2781
  const isAutoOpen = selectedSlotName !== "trigger" && isSelected;
2757
- const mergedProps = __spreadProps$8(__spreadValues$b({}, rest), {
2782
+ const mergedProps = __spreadProps$7(__spreadValues$b({}, rest), {
2758
2783
  isOpen: (_c = isAutoOpen || isOpen) != null ? _c : false
2759
2784
  });
2760
2785
  return /* @__PURE__ */ React.createElement(PlasmicDialogTriggerContext.Provider, { value: mergedProps }, /* @__PURE__ */ React.createElement(DialogTrigger, __spreadValues$b({}, mergedProps), trigger, dialog));
@@ -2819,8 +2844,8 @@ function registerDialogTrigger(loader, overrides) {
2819
2844
  }
2820
2845
 
2821
2846
  var __defProp$a = Object.defineProperty;
2822
- var __defProps$7 = Object.defineProperties;
2823
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
2847
+ var __defProps$6 = Object.defineProperties;
2848
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2824
2849
  var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
2825
2850
  var __hasOwnProp$a = Object.prototype.hasOwnProperty;
2826
2851
  var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
@@ -2836,8 +2861,8 @@ var __spreadValues$a = (a, b) => {
2836
2861
  }
2837
2862
  return a;
2838
2863
  };
2839
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
2840
- var __objRest$8 = (source, exclude) => {
2864
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2865
+ var __objRest$9 = (source, exclude) => {
2841
2866
  var target = {};
2842
2867
  for (var prop in source)
2843
2868
  if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2861,7 +2886,7 @@ const RADIO_VARIANTS = [
2861
2886
  ];
2862
2887
  const { variants: variants$9, withObservedValues: withObservedValues$8 } = pickAriaComponentVariants(RADIO_VARIANTS);
2863
2888
  function BaseRadio(props) {
2864
- const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
2889
+ const _a = props, { children, setControlContextData, plasmicUpdateVariant } = _a, rest = __objRest$9(_a, ["children", "setControlContextData", "plasmicUpdateVariant"]);
2865
2890
  const contextProps = React.useContext(PlasmicRadioGroupContext);
2866
2891
  const isStandalone = !contextProps;
2867
2892
  setControlContextData == null ? void 0 : setControlContextData({
@@ -2935,7 +2960,7 @@ function registerRadio(loader, overrides) {
2935
2960
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
2936
2961
  importName: "BaseRadio",
2937
2962
  variants: variants$9,
2938
- props: __spreadProps$7(__spreadValues$a({}, getCommonProps("radio", [
2963
+ props: __spreadProps$6(__spreadValues$a({}, getCommonProps("radio", [
2939
2964
  "isDisabled",
2940
2965
  "autoFocus",
2941
2966
  "aria-label"
@@ -2957,8 +2982,8 @@ function registerRadio(loader, overrides) {
2957
2982
  }
2958
2983
 
2959
2984
  var __defProp$9 = Object.defineProperty;
2960
- var __defProps$6 = Object.defineProperties;
2961
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
2985
+ var __defProps$5 = Object.defineProperties;
2986
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
2962
2987
  var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
2963
2988
  var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
2964
2989
  var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
@@ -2974,8 +2999,8 @@ var __spreadValues$9 = (a, b) => {
2974
2999
  }
2975
3000
  return a;
2976
3001
  };
2977
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
2978
- var __objRest$7 = (source, exclude) => {
3002
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
3003
+ var __objRest$8 = (source, exclude) => {
2979
3004
  var target = {};
2980
3005
  for (var prop in source)
2981
3006
  if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -2990,7 +3015,7 @@ var __objRest$7 = (source, exclude) => {
2990
3015
  const RADIO_GROUP_VARIANTS = ["disabled", "readonly"];
2991
3016
  const { variants: variants$8, withObservedValues: withObservedValues$7 } = pickAriaComponentVariants(RADIO_GROUP_VARIANTS);
2992
3017
  function BaseRadioGroup(props) {
2993
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$7(_a, ["children", "plasmicUpdateVariant"]);
3018
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$8(_a, ["children", "plasmicUpdateVariant"]);
2994
3019
  return /* @__PURE__ */ React.createElement(PlasmicRadioGroupContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(RadioGroup, __spreadValues$9({}, rest), ({ isDisabled, isReadOnly }) => withObservedValues$7(
2995
3020
  children,
2996
3021
  {
@@ -3018,7 +3043,7 @@ function registerRadioGroup(loader, overrides) {
3018
3043
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
3019
3044
  importName: "BaseRadioGroup",
3020
3045
  variants: variants$8,
3021
- props: __spreadProps$6(__spreadValues$9({}, getCommonProps("radio group", [
3046
+ props: __spreadProps$5(__spreadValues$9({}, getCommonProps("radio group", [
3022
3047
  "name",
3023
3048
  "isDisabled",
3024
3049
  "isReadOnly",
@@ -3124,8 +3149,8 @@ function registerRadioGroup(loader, overrides) {
3124
3149
  }
3125
3150
 
3126
3151
  var __defProp$8 = Object.defineProperty;
3127
- var __defProps$5 = Object.defineProperties;
3128
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
3152
+ var __defProps$4 = Object.defineProperties;
3153
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3129
3154
  var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3130
3155
  var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3131
3156
  var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
@@ -3141,7 +3166,7 @@ var __spreadValues$8 = (a, b) => {
3141
3166
  }
3142
3167
  return a;
3143
3168
  };
3144
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
3169
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3145
3170
  function SelectAutoOpen(props) {
3146
3171
  var _a;
3147
3172
  const { open, close } = (_a = React.useContext(SelectStateContext)) != null ? _a : {};
@@ -3154,6 +3179,8 @@ const BaseSelectValue = (props) => {
3154
3179
  return /* @__PURE__ */ React.createElement(SelectValue, { className }, ({ isPlaceholder, selectedText }) => /* @__PURE__ */ React.createElement(React.Fragment, null, isPlaceholder ? placeholder : selectedText));
3155
3180
  };
3156
3181
  const SELECT_NAME = makeComponentName("select");
3182
+ const SELECT_VARIANTS = ["disabled"];
3183
+ const { variants: SELECT_VARIANTS_DATA } = pickAriaComponentVariants(SELECT_VARIANTS);
3157
3184
  function BaseSelect(props) {
3158
3185
  const {
3159
3186
  selectedKey,
@@ -3167,9 +3194,10 @@ function BaseSelect(props) {
3167
3194
  disabledKeys,
3168
3195
  name,
3169
3196
  setControlContextData,
3197
+ plasmicUpdateVariant,
3170
3198
  "aria-label": ariaLabel
3171
3199
  } = props;
3172
- let idManager = useMemo(() => new ListBoxItemIdManager(), []);
3200
+ const idManager = useMemo(() => new ListBoxItemIdManager(), []);
3173
3201
  useEffect(() => {
3174
3202
  idManager.subscribe((ids) => {
3175
3203
  setControlContextData == null ? void 0 : setControlContextData({
@@ -3177,6 +3205,11 @@ function BaseSelect(props) {
3177
3205
  });
3178
3206
  });
3179
3207
  }, []);
3208
+ useEffect(() => {
3209
+ plasmicUpdateVariant == null ? void 0 : plasmicUpdateVariant({
3210
+ disabled: isDisabled
3211
+ });
3212
+ }, [isDisabled, plasmicUpdateVariant]);
3180
3213
  return /* @__PURE__ */ React.createElement(
3181
3214
  Select,
3182
3215
  __spreadValues$8({
@@ -3233,7 +3266,8 @@ function registerSelect(loader) {
3233
3266
  displayName: "Aria Select",
3234
3267
  importPath: "@plasmicpkgs/react-aria/skinny/registerSelect",
3235
3268
  importName: "BaseSelect",
3236
- props: __spreadProps$5(__spreadValues$8({}, getCommonProps("Select", [
3269
+ variants: SELECT_VARIANTS_DATA,
3270
+ props: __spreadProps$4(__spreadValues$8({}, getCommonProps("Select", [
3237
3271
  "name",
3238
3272
  "aria-label",
3239
3273
  "placeholder",
@@ -3390,7 +3424,7 @@ var __spreadValues$7 = (a, b) => {
3390
3424
  }
3391
3425
  return a;
3392
3426
  };
3393
- var __objRest$6 = (source, exclude) => {
3427
+ var __objRest$7 = (source, exclude) => {
3394
3428
  var target = {};
3395
3429
  for (var prop in source)
3396
3430
  if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3407,7 +3441,7 @@ const { variants: variants$7, withObservedValues: withObservedValues$6 } = pickA
3407
3441
  SLIDER_OUTPUT_VARIANTS
3408
3442
  );
3409
3443
  function BaseSliderOutput(props) {
3410
- const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$6(_a, ["plasmicUpdateVariant", "children"]);
3444
+ const _a = props, { plasmicUpdateVariant, children } = _a, rest = __objRest$7(_a, ["plasmicUpdateVariant", "children"]);
3411
3445
  return /* @__PURE__ */ React.createElement(SliderOutput, __spreadValues$7({}, rest), ({ isDisabled }) => withObservedValues$6(
3412
3446
  children,
3413
3447
  {
@@ -3456,8 +3490,8 @@ class ErrorBoundary extends Component {
3456
3490
  }
3457
3491
 
3458
3492
  var __defProp$6 = Object.defineProperty;
3459
- var __defProps$4 = Object.defineProperties;
3460
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
3493
+ var __defProps$3 = Object.defineProperties;
3494
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3461
3495
  var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
3462
3496
  var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
3463
3497
  var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
@@ -3473,8 +3507,8 @@ var __spreadValues$6 = (a, b) => {
3473
3507
  }
3474
3508
  return a;
3475
3509
  };
3476
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
3477
- var __objRest$5 = (source, exclude) => {
3510
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3511
+ var __objRest$6 = (source, exclude) => {
3478
3512
  var target = {};
3479
3513
  for (var prop in source)
3480
3514
  if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3501,7 +3535,7 @@ function BaseSliderThumb(_a) {
3501
3535
  children,
3502
3536
  advanced,
3503
3537
  plasmicUpdateVariant
3504
- } = _b, rest = __objRest$5(_b, [
3538
+ } = _b, rest = __objRest$6(_b, [
3505
3539
  "children",
3506
3540
  "advanced",
3507
3541
  "plasmicUpdateVariant"
@@ -3547,7 +3581,7 @@ function registerSliderThumb(loader, overrides) {
3547
3581
  cursor: "pointer"
3548
3582
  },
3549
3583
  variants: variants$6,
3550
- props: __spreadProps$4(__spreadValues$6({}, getCommonProps("slider thumb", [
3584
+ props: __spreadProps$3(__spreadValues$6({}, getCommonProps("slider thumb", [
3551
3585
  "name",
3552
3586
  "isDisabled",
3553
3587
  "autoFocus"
@@ -3585,7 +3619,7 @@ var __spreadValues$5 = (a, b) => {
3585
3619
  }
3586
3620
  return a;
3587
3621
  };
3588
- var __objRest$4 = (source, exclude) => {
3622
+ var __objRest$5 = (source, exclude) => {
3589
3623
  var target = {};
3590
3624
  for (var prop in source)
3591
3625
  if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3623,7 +3657,7 @@ function BaseSliderTrack(props) {
3623
3657
  const context = React.useContext(PlasmicSliderContext);
3624
3658
  const isStandalone = !context;
3625
3659
  const mergedProps = mergeProps(context, props);
3626
- const _a = mergedProps, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
3660
+ const _a = mergedProps, { children, progressBar, plasmicUpdateVariant } = _a, rest = __objRest$5(_a, ["children", "progressBar", "plasmicUpdateVariant"]);
3627
3661
  const isMultiValue = isMultiValueGuard(mergedProps.value);
3628
3662
  const { minIndex, maxIndex } = useMemo(() => {
3629
3663
  if (!context || !Array.isArray(context.value) || context.value.length <= 1) {
@@ -3751,8 +3785,8 @@ function registerSliderTrack(sliderThumbMeta, loader, overrides) {
3751
3785
  }
3752
3786
 
3753
3787
  var __defProp$4 = Object.defineProperty;
3754
- var __defProps$3 = Object.defineProperties;
3755
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
3788
+ var __defProps$2 = Object.defineProperties;
3789
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
3756
3790
  var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
3757
3791
  var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
3758
3792
  var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
@@ -3768,8 +3802,8 @@ var __spreadValues$4 = (a, b) => {
3768
3802
  }
3769
3803
  return a;
3770
3804
  };
3771
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
3772
- var __objRest$3 = (source, exclude) => {
3805
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
3806
+ var __objRest$4 = (source, exclude) => {
3773
3807
  var target = {};
3774
3808
  for (var prop in source)
3775
3809
  if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -3786,11 +3820,11 @@ const RANGE_SLIDER_COMPONENT_NAME = makeComponentName("range-slider");
3786
3820
  const SLIDER_VARIANTS = ["disabled"];
3787
3821
  const { variants: variants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(SLIDER_VARIANTS);
3788
3822
  function BaseSlider(props) {
3789
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
3823
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$4(_a, ["children", "plasmicUpdateVariant"]);
3790
3824
  return /* @__PURE__ */ React.createElement(
3791
3825
  PlasmicSliderContext.Provider,
3792
3826
  {
3793
- value: __spreadProps$3(__spreadValues$4({}, rest), {
3827
+ value: __spreadProps$2(__spreadValues$4({}, rest), {
3794
3828
  // Here's why the type casting is needed here: https://github.com/Microsoft/TypeScript/issues/3410
3795
3829
  onChange: rest.onChange,
3796
3830
  onChangeEnd: rest.onChangeEnd
@@ -3852,7 +3886,7 @@ function registerSlider(loader, overrides) {
3852
3886
  defaultStyles: {
3853
3887
  width: "300px"
3854
3888
  },
3855
- props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3889
+ props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3856
3890
  "isDisabled",
3857
3891
  "aria-label"
3858
3892
  ])), getCommonSliderProps()), {
@@ -3964,7 +3998,7 @@ function registerSlider(loader, overrides) {
3964
3998
  defaultStyles: {
3965
3999
  width: "300px"
3966
4000
  },
3967
- props: __spreadProps$3(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
4001
+ props: __spreadProps$2(__spreadValues$4(__spreadValues$4({}, getCommonProps("slider", [
3968
4002
  "isDisabled",
3969
4003
  "aria-label"
3970
4004
  ])), getCommonSliderProps()), {
@@ -4040,8 +4074,8 @@ function registerSlider(loader, overrides) {
4040
4074
  }
4041
4075
 
4042
4076
  var __defProp$3 = Object.defineProperty;
4043
- var __defProps$2 = Object.defineProperties;
4044
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
4077
+ var __defProps$1 = Object.defineProperties;
4078
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4045
4079
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4046
4080
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4047
4081
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
@@ -4057,8 +4091,8 @@ var __spreadValues$3 = (a, b) => {
4057
4091
  }
4058
4092
  return a;
4059
4093
  };
4060
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
4061
- var __objRest$2 = (source, exclude) => {
4094
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4095
+ var __objRest$3 = (source, exclude) => {
4062
4096
  var target = {};
4063
4097
  for (var prop in source)
4064
4098
  if (__hasOwnProp$3.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4081,7 +4115,7 @@ const SWITCH_VARIANTS = [
4081
4115
  ];
4082
4116
  const { variants: variants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(SWITCH_VARIANTS);
4083
4117
  function BaseSwitch(props) {
4084
- const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$2(_a, ["children", "plasmicUpdateVariant"]);
4118
+ const _a = props, { children, plasmicUpdateVariant } = _a, rest = __objRest$3(_a, ["children", "plasmicUpdateVariant"]);
4085
4119
  return /* @__PURE__ */ React.createElement(Switch, __spreadValues$3({}, rest), ({
4086
4120
  isHovered,
4087
4121
  isPressed,
@@ -4121,7 +4155,7 @@ function registerSwitch(loader, overrides) {
4121
4155
  justifyContent: "flex-start",
4122
4156
  padding: 0
4123
4157
  },
4124
- props: __spreadProps$2(__spreadValues$3({}, getCommonProps("switch", [
4158
+ props: __spreadProps$1(__spreadValues$3({}, getCommonProps("switch", [
4125
4159
  "name",
4126
4160
  "isDisabled",
4127
4161
  "isReadOnly",
@@ -4247,7 +4281,7 @@ var __spreadValues$2 = (a, b) => {
4247
4281
  }
4248
4282
  return a;
4249
4283
  };
4250
- var __objRest$1 = (source, exclude) => {
4284
+ var __objRest$2 = (source, exclude) => {
4251
4285
  var target = {};
4252
4286
  for (var prop in source)
4253
4287
  if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4276,7 +4310,7 @@ const inputHelpers = {
4276
4310
  };
4277
4311
  function BaseTextArea(props) {
4278
4312
  var _b;
4279
- const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$1(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
4313
+ const _a = props, { disabled, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$2(_a, ["disabled", "plasmicUpdateVariant", "setControlContextData"]);
4280
4314
  const textFieldContext = React.useContext(PlasmicTextFieldContext);
4281
4315
  const mergedProps = mergeProps(rest, {
4282
4316
  disabled: (_b = textFieldContext == null ? void 0 : textFieldContext.isDisabled) != null ? _b : disabled
@@ -4366,8 +4400,8 @@ function registerTextArea(loader, overrides) {
4366
4400
  }
4367
4401
 
4368
4402
  var __defProp$1 = Object.defineProperty;
4369
- var __defProps$1 = Object.defineProperties;
4370
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
4403
+ var __defProps = Object.defineProperties;
4404
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4371
4405
  var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
4372
4406
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
4373
4407
  var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
@@ -4383,8 +4417,8 @@ var __spreadValues$1 = (a, b) => {
4383
4417
  }
4384
4418
  return a;
4385
4419
  };
4386
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
4387
- var __objRest = (source, exclude) => {
4420
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
4421
+ var __objRest$1 = (source, exclude) => {
4388
4422
  var target = {};
4389
4423
  for (var prop in source)
4390
4424
  if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
@@ -4399,7 +4433,7 @@ var __objRest = (source, exclude) => {
4399
4433
  const TEXT_FIELD_VARIANTS = ["disabled", "readonly"];
4400
4434
  const { variants: variants$1, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(TEXT_FIELD_VARIANTS);
4401
4435
  function BaseTextField(props) {
4402
- const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4436
+ const _a = props, { children, plasmicUpdateVariant, autoComplete } = _a, rest = __objRest$1(_a, ["children", "plasmicUpdateVariant", "autoComplete"]);
4403
4437
  return /* @__PURE__ */ React.createElement(PlasmicTextFieldContext.Provider, { value: props }, /* @__PURE__ */ React.createElement(TextField, __spreadValues$1({ autoComplete: resolveAutoComplete(autoComplete) }, rest), ({ isDisabled, isReadOnly }) => withObservedValues$1(
4404
4438
  children,
4405
4439
  {
@@ -4421,7 +4455,7 @@ function registerTextField(loader, overrides) {
4421
4455
  importName: "BaseTextField",
4422
4456
  variants: variants$1,
4423
4457
  // TODO: Support for validate prop
4424
- props: __spreadProps$1(__spreadValues$1({}, getCommonProps("Text Field", [
4458
+ props: __spreadProps(__spreadValues$1({}, getCommonProps("Text Field", [
4425
4459
  "name",
4426
4460
  "isDisabled",
4427
4461
  "isReadOnly",
@@ -4530,8 +4564,6 @@ function registerTextField(loader, overrides) {
4530
4564
  }
4531
4565
 
4532
4566
  var __defProp = Object.defineProperty;
4533
- var __defProps = Object.defineProperties;
4534
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4535
4567
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
4536
4568
  var __hasOwnProp = Object.prototype.hasOwnProperty;
4537
4569
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
@@ -4547,11 +4579,18 @@ var __spreadValues = (a, b) => {
4547
4579
  }
4548
4580
  return a;
4549
4581
  };
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
- }
4582
+ var __objRest = (source, exclude) => {
4583
+ var target = {};
4584
+ for (var prop in source)
4585
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
4586
+ target[prop] = source[prop];
4587
+ if (source != null && __getOwnPropSymbols)
4588
+ for (var prop of __getOwnPropSymbols(source)) {
4589
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
4590
+ target[prop] = source[prop];
4591
+ }
4592
+ return target;
4593
+ };
4555
4594
  const TOOLTIP_VARIANTS = [
4556
4595
  "placementTop",
4557
4596
  "placementBottom",
@@ -4559,16 +4598,15 @@ const TOOLTIP_VARIANTS = [
4559
4598
  "placementRight"
4560
4599
  ];
4561
4600
  const { variants, withObservedValues } = pickAriaComponentVariants(TOOLTIP_VARIANTS);
4562
- function TooltipButton(props) {
4601
+ function TriggerWrapper(_a) {
4602
+ var _b = _a, {
4603
+ children
4604
+ } = _b, rest = __objRest(_b, [
4605
+ "children"
4606
+ ]);
4563
4607
  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
- }));
4608
+ const { focusableProps } = useFocusable(rest, ref);
4609
+ return /* @__PURE__ */ React.createElement("div", __spreadValues({ ref }, focusableProps), children);
4572
4610
  }
4573
4611
  function BaseTooltip(props) {
4574
4612
  var _a;
@@ -4592,7 +4630,6 @@ function BaseTooltip(props) {
4592
4630
  } = props;
4593
4631
  const { isSelected, selectedSlotName } = (_a = usePlasmicCanvasComponentInfo(props)) != null ? _a : {};
4594
4632
  const isAutoOpen = selectedSlotName !== "children" && isSelected;
4595
- const focusableChild = flattenChildren(children)[0];
4596
4633
  const _isOpen = isAutoOpen || isOpen;
4597
4634
  return /* @__PURE__ */ React.createElement(
4598
4635
  TooltipTrigger,
@@ -4605,7 +4642,7 @@ function BaseTooltip(props) {
4605
4642
  defaultOpen,
4606
4643
  onOpenChange
4607
4644
  },
4608
- /* @__PURE__ */ React.createElement(TooltipButton, null, focusableChild),
4645
+ /* @__PURE__ */ React.createElement(TriggerWrapper, null, children),
4609
4646
  /* @__PURE__ */ React.createElement(
4610
4647
  Tooltip,
4611
4648
  {