@plasmicpkgs/react-aria 0.0.79 → 0.0.80

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.
@@ -14,21 +14,21 @@ var React__default = /*#__PURE__*/_interopDefault(React);
14
14
  var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
15
15
  var flattenChildren__default = /*#__PURE__*/_interopDefault(flattenChildren);
16
16
 
17
- var __defProp$r = Object.defineProperty;
17
+ var __defProp$q = Object.defineProperty;
18
18
  var __defProps$g = Object.defineProperties;
19
19
  var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
20
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
21
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
22
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
23
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24
- var __spreadValues$r = (a, b) => {
20
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
21
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
22
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
23
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24
+ var __spreadValues$q = (a, b) => {
25
25
  for (var prop in b || (b = {}))
26
- if (__hasOwnProp$r.call(b, prop))
27
- __defNormalProp$r(a, prop, b[prop]);
28
- if (__getOwnPropSymbols$r)
29
- for (var prop of __getOwnPropSymbols$r(b)) {
30
- if (__propIsEnum$r.call(b, prop))
31
- __defNormalProp$r(a, prop, b[prop]);
26
+ if (__hasOwnProp$q.call(b, prop))
27
+ __defNormalProp$q(a, prop, b[prop]);
28
+ if (__getOwnPropSymbols$q)
29
+ for (var prop of __getOwnPropSymbols$q(b)) {
30
+ if (__propIsEnum$q.call(b, prop))
31
+ __defNormalProp$q(a, prop, b[prop]);
32
32
  }
33
33
  return a;
34
34
  };
@@ -54,14 +54,14 @@ function useAutoOpen({
54
54
  }
55
55
  function registerComponentHelper(loader, component, meta, overrides) {
56
56
  var _a;
57
- meta = __spreadProps$g(__spreadValues$r({}, meta), {
58
- defaultStyles: __spreadValues$r({
57
+ meta = __spreadProps$g(__spreadValues$q({}, meta), {
58
+ defaultStyles: __spreadValues$q({
59
59
  boxSizing: "border-box"
60
60
  }, (_a = meta.defaultStyles) != null ? _a : {})
61
61
  });
62
62
  if (overrides) {
63
- meta = __spreadProps$g(__spreadValues$r(__spreadValues$r({}, meta), overrides), {
64
- props: __spreadValues$r(__spreadValues$r({}, meta.props), overrides.props)
63
+ meta = __spreadProps$g(__spreadValues$q(__spreadValues$q({}, meta), overrides), {
64
+ props: __spreadValues$q(__spreadValues$q({}, meta.props), overrides.props)
65
65
  });
66
66
  if (overrides.parentComponentName) {
67
67
  meta.name = makeChildComponentName(
@@ -524,33 +524,33 @@ function pickAriaComponentVariants(keys) {
524
524
  };
525
525
  }
526
526
 
527
- var __defProp$q = Object.defineProperty;
527
+ var __defProp$p = Object.defineProperty;
528
528
  var __defProps$f = Object.defineProperties;
529
529
  var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
530
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
531
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
532
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
533
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
534
- var __spreadValues$q = (a, b) => {
530
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
531
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
532
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
533
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
534
+ var __spreadValues$p = (a, b) => {
535
535
  for (var prop in b || (b = {}))
536
- if (__hasOwnProp$q.call(b, prop))
537
- __defNormalProp$q(a, prop, b[prop]);
538
- if (__getOwnPropSymbols$q)
539
- for (var prop of __getOwnPropSymbols$q(b)) {
540
- if (__propIsEnum$q.call(b, prop))
541
- __defNormalProp$q(a, prop, b[prop]);
536
+ if (__hasOwnProp$p.call(b, prop))
537
+ __defNormalProp$p(a, prop, b[prop]);
538
+ if (__getOwnPropSymbols$p)
539
+ for (var prop of __getOwnPropSymbols$p(b)) {
540
+ if (__propIsEnum$p.call(b, prop))
541
+ __defNormalProp$p(a, prop, b[prop]);
542
542
  }
543
543
  return a;
544
544
  };
545
545
  var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
546
- var __objRest$o = (source, exclude) => {
546
+ var __objRest$n = (source, exclude) => {
547
547
  var target = {};
548
548
  for (var prop in source)
549
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
549
+ if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
550
550
  target[prop] = source[prop];
551
- if (source != null && __getOwnPropSymbols$q)
552
- for (var prop of __getOwnPropSymbols$q(source)) {
553
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
551
+ if (source != null && __getOwnPropSymbols$p)
552
+ for (var prop of __getOwnPropSymbols$p(source)) {
553
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
554
554
  target[prop] = source[prop];
555
555
  }
556
556
  return target;
@@ -566,7 +566,7 @@ const { variants: variants$f, withObservedValues: withObservedValues$d } = pickA
566
566
  const BaseButton = React__default.default.forwardRef(
567
567
  (props, ref) => {
568
568
  var _b;
569
- const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$o(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
569
+ const _a = props, { submitsForm, resetsForm, children, plasmicUpdateVariant } = _a, rest = __objRest$n(_a, ["submitsForm", "resetsForm", "children", "plasmicUpdateVariant"]);
570
570
  const canvasContext = (_b = host.usePlasmicCanvasContext) == null ? void 0 : _b();
571
571
  const isEditMode = canvasContext && canvasContext.interactive === false;
572
572
  const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
@@ -577,7 +577,7 @@ const BaseButton = React__default.default.forwardRef(
577
577
  // When pressing space key, the button's "pressed" state is triggered, and the rich text editor loses focus as a result.
578
578
  preventFocusOnPress: isEditMode
579
579
  });
580
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$q({}, mergedProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$d(
580
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$p({}, mergedProps), ({ isHovered, isPressed, isFocused, isFocusVisible, isDisabled }) => withObservedValues$d(
581
581
  children,
582
582
  {
583
583
  hovered: isHovered,
@@ -608,7 +608,7 @@ function registerButton(loader, overrides) {
608
608
  padding: "2px 10px",
609
609
  cursor: "pointer"
610
610
  },
611
- props: __spreadProps$f(__spreadValues$q({}, getCommonProps("button", [
611
+ props: __spreadProps$f(__spreadValues$p({}, getCommonProps("button", [
612
612
  "autoFocus",
613
613
  "isDisabled",
614
614
  "aria-label"
@@ -663,33 +663,33 @@ const PlasmicListBoxContext = React__default.default.createContext(void 0);
663
663
  React__default.default.createContext(void 0);
664
664
  const PlasmicInputContext = React__default.default.createContext(void 0);
665
665
 
666
- var __defProp$p = Object.defineProperty;
666
+ var __defProp$o = Object.defineProperty;
667
667
  var __defProps$e = Object.defineProperties;
668
668
  var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
669
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
670
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
671
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
672
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
673
- var __spreadValues$p = (a, b) => {
669
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
670
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
671
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
672
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
673
+ var __spreadValues$o = (a, b) => {
674
674
  for (var prop in b || (b = {}))
675
- if (__hasOwnProp$p.call(b, prop))
676
- __defNormalProp$p(a, prop, b[prop]);
677
- if (__getOwnPropSymbols$p)
678
- for (var prop of __getOwnPropSymbols$p(b)) {
679
- if (__propIsEnum$p.call(b, prop))
680
- __defNormalProp$p(a, prop, b[prop]);
675
+ if (__hasOwnProp$o.call(b, prop))
676
+ __defNormalProp$o(a, prop, b[prop]);
677
+ if (__getOwnPropSymbols$o)
678
+ for (var prop of __getOwnPropSymbols$o(b)) {
679
+ if (__propIsEnum$o.call(b, prop))
680
+ __defNormalProp$o(a, prop, b[prop]);
681
681
  }
682
682
  return a;
683
683
  };
684
684
  var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
685
- var __objRest$n = (source, exclude) => {
685
+ var __objRest$m = (source, exclude) => {
686
686
  var target = {};
687
687
  for (var prop in source)
688
- if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0)
688
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
689
689
  target[prop] = source[prop];
690
- if (source != null && __getOwnPropSymbols$p)
691
- for (var prop of __getOwnPropSymbols$p(source)) {
692
- if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop))
690
+ if (source != null && __getOwnPropSymbols$o)
691
+ for (var prop of __getOwnPropSymbols$o(source)) {
692
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
693
693
  target[prop] = source[prop];
694
694
  }
695
695
  return target;
@@ -707,12 +707,12 @@ const CHECKBOX_VARIANTS = [
707
707
  ];
708
708
  const { variants: variants$e, withObservedValues: withObservedValues$c } = pickAriaComponentVariants(CHECKBOX_VARIANTS);
709
709
  function BaseCheckbox(props) {
710
- const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$n(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
710
+ const _a = props, { children, plasmicUpdateVariant, setControlContextData } = _a, rest = __objRest$m(_a, ["children", "plasmicUpdateVariant", "setControlContextData"]);
711
711
  const contextProps = React__default.default.useContext(PlasmicCheckboxGroupContext);
712
712
  setControlContextData == null ? void 0 : setControlContextData({
713
713
  parent: contextProps
714
714
  });
715
- return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Checkbox, __spreadValues$p({}, rest), ({
715
+ return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Checkbox, __spreadValues$o({}, rest), ({
716
716
  isHovered,
717
717
  isPressed,
718
718
  isFocused,
@@ -782,17 +782,18 @@ const makeDefaultCheckboxChildren = ({
782
782
  ] : []
783
783
  ]
784
784
  });
785
+ const CHECKBOX_COMPONENT_NAME = makeComponentName("checkbox");
785
786
  function registerCheckbox(loader, overrides) {
786
787
  return registerComponentHelper(
787
788
  loader,
788
789
  BaseCheckbox,
789
790
  {
790
- name: makeComponentName("checkbox"),
791
+ name: CHECKBOX_COMPONENT_NAME,
791
792
  displayName: "Aria Checkbox",
792
793
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
793
794
  importName: "BaseCheckbox",
794
795
  variants: variants$e,
795
- props: __spreadProps$e(__spreadValues$p({}, getCommonProps("checkbox", [
796
+ props: __spreadProps$e(__spreadValues$o({}, getCommonProps("checkbox", [
796
797
  "name",
797
798
  "isDisabled",
798
799
  "isReadOnly",
@@ -860,40 +861,40 @@ function registerCheckbox(loader, overrides) {
860
861
  );
861
862
  }
862
863
 
863
- var __defProp$o = Object.defineProperty;
864
+ var __defProp$n = Object.defineProperty;
864
865
  var __defProps$d = Object.defineProperties;
865
866
  var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
866
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
867
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
868
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
869
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
870
- var __spreadValues$o = (a, b) => {
867
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
868
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
869
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
870
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
871
+ var __spreadValues$n = (a, b) => {
871
872
  for (var prop in b || (b = {}))
872
- if (__hasOwnProp$o.call(b, prop))
873
- __defNormalProp$o(a, prop, b[prop]);
874
- if (__getOwnPropSymbols$o)
875
- for (var prop of __getOwnPropSymbols$o(b)) {
876
- if (__propIsEnum$o.call(b, prop))
877
- __defNormalProp$o(a, prop, b[prop]);
873
+ if (__hasOwnProp$n.call(b, prop))
874
+ __defNormalProp$n(a, prop, b[prop]);
875
+ if (__getOwnPropSymbols$n)
876
+ for (var prop of __getOwnPropSymbols$n(b)) {
877
+ if (__propIsEnum$n.call(b, prop))
878
+ __defNormalProp$n(a, prop, b[prop]);
878
879
  }
879
880
  return a;
880
881
  };
881
882
  var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
882
- var __objRest$m = (source, exclude) => {
883
+ var __objRest$l = (source, exclude) => {
883
884
  var target = {};
884
885
  for (var prop in source)
885
- if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
886
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
886
887
  target[prop] = source[prop];
887
- if (source != null && __getOwnPropSymbols$o)
888
- for (var prop of __getOwnPropSymbols$o(source)) {
889
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
888
+ if (source != null && __getOwnPropSymbols$n)
889
+ for (var prop of __getOwnPropSymbols$n(source)) {
890
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
890
891
  target[prop] = source[prop];
891
892
  }
892
893
  return target;
893
894
  };
894
895
  function BaseText(_a) {
895
- var _b = _a, { children, slot, className } = _b, rest = __objRest$m(_b, ["children", "slot", "className"]);
896
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadProps$d(__spreadValues$o({}, extractPlasmicDataProps(rest)), { slot, className }), children);
896
+ var _b = _a, { children, slot, className } = _b, rest = __objRest$l(_b, ["children", "slot", "className"]);
897
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadProps$d(__spreadValues$n({}, extractPlasmicDataProps(rest)), { slot, className }), children);
897
898
  }
898
899
  const TEXT_COMPONENT_NAME = makeComponentName("text");
899
900
  function registerText(loader, overrides) {
@@ -927,28 +928,28 @@ function registerText(loader, overrides) {
927
928
  );
928
929
  }
929
930
 
930
- var __defProp$n = Object.defineProperty;
931
+ var __defProp$m = Object.defineProperty;
931
932
  var __defProps$c = Object.defineProperties;
932
933
  var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
933
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
934
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
935
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
936
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
937
- var __spreadValues$n = (a, b) => {
934
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
935
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
936
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
937
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
938
+ var __spreadValues$m = (a, b) => {
938
939
  for (var prop in b || (b = {}))
939
- if (__hasOwnProp$n.call(b, prop))
940
- __defNormalProp$n(a, prop, b[prop]);
941
- if (__getOwnPropSymbols$n)
942
- for (var prop of __getOwnPropSymbols$n(b)) {
943
- if (__propIsEnum$n.call(b, prop))
944
- __defNormalProp$n(a, prop, b[prop]);
940
+ if (__hasOwnProp$m.call(b, prop))
941
+ __defNormalProp$m(a, prop, b[prop]);
942
+ if (__getOwnPropSymbols$m)
943
+ for (var prop of __getOwnPropSymbols$m(b)) {
944
+ if (__propIsEnum$m.call(b, prop))
945
+ __defNormalProp$m(a, prop, b[prop]);
945
946
  }
946
947
  return a;
947
948
  };
948
949
  var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
949
950
  const DESCRIPTION_COMPONENT_NAME = makeComponentName("description");
950
951
  function registerDescription(loader, overrides) {
951
- return registerText(loader, __spreadProps$c(__spreadValues$n({}, overrides), {
952
+ return registerText(loader, __spreadProps$c(__spreadValues$m({}, overrides), {
952
953
  name: DESCRIPTION_COMPONENT_NAME,
953
954
  displayName: "Aria Description",
954
955
  props: {
@@ -961,165 +962,6 @@ function registerDescription(loader, overrides) {
961
962
  }));
962
963
  }
963
964
 
964
- var __defProp$m = Object.defineProperty;
965
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
966
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
967
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
968
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
969
- var __spreadValues$m = (a, b) => {
970
- for (var prop in b || (b = {}))
971
- if (__hasOwnProp$m.call(b, prop))
972
- __defNormalProp$m(a, prop, b[prop]);
973
- if (__getOwnPropSymbols$m)
974
- for (var prop of __getOwnPropSymbols$m(b)) {
975
- if (__propIsEnum$m.call(b, prop))
976
- __defNormalProp$m(a, prop, b[prop]);
977
- }
978
- return a;
979
- };
980
- var __objRest$l = (source, exclude) => {
981
- var target = {};
982
- for (var prop in source)
983
- if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
984
- target[prop] = source[prop];
985
- if (source != null && __getOwnPropSymbols$m)
986
- for (var prop of __getOwnPropSymbols$m(source)) {
987
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
988
- target[prop] = source[prop];
989
- }
990
- return target;
991
- };
992
- function BaseFieldError(_a) {
993
- var _b = _a, {
994
- badInput,
995
- customError,
996
- patternMismatch,
997
- rangeOverflow,
998
- rangeUnderflow,
999
- stepMismatch,
1000
- tooLong,
1001
- tooShort,
1002
- typeMismatch,
1003
- valueMissing
1004
- } = _b, rest = __objRest$l(_b, [
1005
- "badInput",
1006
- "customError",
1007
- "patternMismatch",
1008
- "rangeOverflow",
1009
- "rangeUnderflow",
1010
- "stepMismatch",
1011
- "tooLong",
1012
- "tooShort",
1013
- "typeMismatch",
1014
- "valueMissing"
1015
- ]);
1016
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.FieldError, __spreadValues$m({}, rest), ({ validationDetails, validationErrors }) => {
1017
- if (validationDetails.badInput && badInput) {
1018
- return badInput;
1019
- }
1020
- if (validationDetails.customError && customError) {
1021
- return customError;
1022
- }
1023
- if (validationDetails.patternMismatch && patternMismatch) {
1024
- return patternMismatch;
1025
- }
1026
- if (validationDetails.rangeOverflow && rangeOverflow) {
1027
- return rangeOverflow;
1028
- }
1029
- if (validationDetails.rangeUnderflow && rangeUnderflow) {
1030
- return rangeUnderflow;
1031
- }
1032
- if (validationDetails.stepMismatch && stepMismatch) {
1033
- return stepMismatch;
1034
- }
1035
- if (validationDetails.tooLong && tooLong) {
1036
- return tooLong;
1037
- }
1038
- if (validationDetails.tooShort && tooShort) {
1039
- return tooShort;
1040
- }
1041
- if (validationDetails.typeMismatch && typeMismatch) {
1042
- return typeMismatch;
1043
- }
1044
- if (validationDetails.valueMissing && valueMissing) {
1045
- return valueMissing;
1046
- }
1047
- return validationErrors;
1048
- });
1049
- }
1050
- function PropsDescription() {
1051
- return /* @__PURE__ */ React__default.default.createElement("div", { style: { marginBottom: 20 } }, /* @__PURE__ */ React__default.default.createElement("p", null, "You can customize the error messages for built-in validations by utilizing the props below."), /* @__PURE__ */ React__default.default.createElement("p", null, "For further information on the specific conditions triggering each error, please refer to the", " ", /* @__PURE__ */ React__default.default.createElement(
1052
- "a",
1053
- {
1054
- target: "_blank",
1055
- href: "https://developer.mozilla.org/en-US/docs/Web/API/ValidityState#instance_properties"
1056
- },
1057
- "MDN Docs"
1058
- ), "."));
1059
- }
1060
- function registerFieldError(loader, overrides) {
1061
- registerComponentHelper(
1062
- loader,
1063
- BaseFieldError,
1064
- {
1065
- name: makeComponentName("fielderror"),
1066
- displayName: "Aria Field Error",
1067
- importPath: "@plasmicpkgs/react-aria/skinny/registerFieldError",
1068
- importName: "BaseFieldError",
1069
- actions: [
1070
- {
1071
- type: "custom-action",
1072
- control: PropsDescription
1073
- }
1074
- ],
1075
- props: {
1076
- badInput: {
1077
- type: "string",
1078
- description: "Error message if the user has provided input that the browser is unable to convert"
1079
- },
1080
- customError: {
1081
- type: "string",
1082
- description: "Error message for custom validations"
1083
- },
1084
- patternMismatch: {
1085
- type: "string",
1086
- description: "Error message if the value does not match the specified pattern"
1087
- },
1088
- rangeOverflow: {
1089
- type: "string",
1090
- description: "Error message if the value is greater than the maximum specified"
1091
- },
1092
- rangeUnderflow: {
1093
- type: "string",
1094
- description: "Error message if the value is less than the minimum specified"
1095
- },
1096
- stepMismatch: {
1097
- type: "string",
1098
- description: "Error message if the value is not evenly divisible by the step value"
1099
- },
1100
- tooLong: {
1101
- type: "string",
1102
- description: "Error message if the value exceeds the specified maximum number of characters"
1103
- },
1104
- tooShort: {
1105
- type: "string",
1106
- description: "Error message if the value fails to meet the specified minimum number of characters"
1107
- },
1108
- typeMismatch: {
1109
- type: "string",
1110
- description: "Error message if the value is not in the required syntax (when type is email or url)"
1111
- },
1112
- valueMissing: {
1113
- type: "string",
1114
- description: "Error message if a required field has no value"
1115
- }
1116
- },
1117
- trapsFocus: true
1118
- },
1119
- overrides
1120
- );
1121
- }
1122
-
1123
965
  var __defProp$l = Object.defineProperty;
1124
966
  var __defProps$b = Object.defineProperties;
1125
967
  var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
@@ -1232,15 +1074,10 @@ function BaseCheckboxGroup(props) {
1232
1074
  }
1233
1075
  const componentName = makeComponentName("checkboxGroup");
1234
1076
  function registerCheckboxGroup(loader, overrides) {
1235
- const thisName = makeChildComponentName(
1077
+ makeChildComponentName(
1236
1078
  overrides == null ? void 0 : overrides.parentComponentName,
1237
1079
  componentName
1238
1080
  );
1239
- registerFieldError(loader, { parentComponentName: thisName });
1240
- const checkboxMeta = registerCheckbox(loader, {
1241
- parentComponentName: thisName
1242
- });
1243
- registerLabel(loader, { parentComponentName: thisName });
1244
1081
  registerComponentHelper(
1245
1082
  loader,
1246
1083
  BaseCheckboxGroup,
@@ -1281,7 +1118,7 @@ function registerCheckboxGroup(loader, overrides) {
1281
1118
  },
1282
1119
  {
1283
1120
  type: "component",
1284
- name: checkboxMeta.name,
1121
+ name: CHECKBOX_COMPONENT_NAME,
1285
1122
  props: {
1286
1123
  children: makeDefaultCheckboxChildren({
1287
1124
  label: "Checkbox 1",
@@ -1292,7 +1129,7 @@ function registerCheckboxGroup(loader, overrides) {
1292
1129
  },
1293
1130
  {
1294
1131
  type: "component",
1295
- name: checkboxMeta.name,
1132
+ name: CHECKBOX_COMPONENT_NAME,
1296
1133
  props: {
1297
1134
  children: makeDefaultCheckboxChildren({
1298
1135
  label: "Checkbox 2",
@@ -1303,7 +1140,7 @@ function registerCheckboxGroup(loader, overrides) {
1303
1140
  },
1304
1141
  {
1305
1142
  type: "component",
1306
- name: checkboxMeta.name,
1143
+ name: CHECKBOX_COMPONENT_NAME,
1307
1144
  props: {
1308
1145
  children: makeDefaultCheckboxChildren({
1309
1146
  label: "Checkbox 3",
@@ -3084,9 +2921,7 @@ function registerRadioGroup(loader, overrides) {
3084
2921
  overrides == null ? void 0 : overrides.parentComponentName,
3085
2922
  RADIO_GROUP_COMPONENT_NAME
3086
2923
  );
3087
- registerFieldError(loader, { parentComponentName: thisName });
3088
2924
  const radioMeta = registerRadio(loader, { parentComponentName: thisName });
3089
- registerLabel(loader, { parentComponentName: thisName });
3090
2925
  registerComponentHelper(
3091
2926
  loader,
3092
2927
  BaseRadioGroup,
@@ -4605,14 +4440,6 @@ function registerTextField(loader, overrides) {
4605
4440
  },
4606
4441
  overrides
4607
4442
  );
4608
- const thisName = makeChildComponentName(
4609
- overrides == null ? void 0 : overrides.parentComponentName,
4610
- TEXT_FIELD_COMPONENT_NAME
4611
- );
4612
- registerFieldError(loader, { parentComponentName: thisName });
4613
- registerInput(loader, { parentComponentName: thisName });
4614
- registerLabel(loader, { parentComponentName: thisName });
4615
- registerTextArea(loader, { parentComponentName: thisName });
4616
4443
  }
4617
4444
 
4618
4445
  var __defProp = Object.defineProperty;
@@ -4829,6 +4656,7 @@ function registerAll(loader) {
4829
4656
  registerLabel(loader);
4830
4657
  registerListBox(loader);
4831
4658
  registerPopover(loader);
4659
+ registerTextArea(loader);
4832
4660
  registerInput(loader);
4833
4661
  registerSwitch(loader);
4834
4662
  registerCheckbox(loader);