@plasmicpkgs/react-aria 0.0.22 → 0.0.23

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.
@@ -4,6 +4,9 @@ import registerComponent from '@plasmicapp/host/registerComponent';
4
4
  import { useFilter } from '@react-aria/i18n';
5
5
  import { mergeProps } from '@react-aria/utils';
6
6
  import { usePlasmicCanvasContext } from '@plasmicapp/host';
7
+ import { useTooltipTrigger } from 'react-aria';
8
+ import flattenChildren from 'react-keyed-flatten-children';
9
+ import { useTooltipTriggerState } from 'react-stately';
7
10
 
8
11
  function getCommonInputProps(fieldName, fields) {
9
12
  const commonInputProps = {
@@ -55,25 +58,25 @@ function getCommonInputProps(fieldName, fields) {
55
58
  return filteredProps;
56
59
  }
57
60
 
58
- var __defProp$l = Object.defineProperty;
59
- var __defProps$c = Object.defineProperties;
60
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
61
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
62
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
63
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
64
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
65
- var __spreadValues$l = (a, b) => {
61
+ var __defProp$m = Object.defineProperty;
62
+ var __defProps$d = Object.defineProperties;
63
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
64
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
65
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
66
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
67
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
68
+ var __spreadValues$m = (a, b) => {
66
69
  for (var prop in b || (b = {}))
67
- if (__hasOwnProp$l.call(b, prop))
68
- __defNormalProp$l(a, prop, b[prop]);
69
- if (__getOwnPropSymbols$l)
70
- for (var prop of __getOwnPropSymbols$l(b)) {
71
- if (__propIsEnum$l.call(b, prop))
72
- __defNormalProp$l(a, prop, b[prop]);
70
+ if (__hasOwnProp$m.call(b, prop))
71
+ __defNormalProp$m(a, prop, b[prop]);
72
+ if (__getOwnPropSymbols$m)
73
+ for (var prop of __getOwnPropSymbols$m(b)) {
74
+ if (__propIsEnum$m.call(b, prop))
75
+ __defNormalProp$m(a, prop, b[prop]);
73
76
  }
74
77
  return a;
75
78
  };
76
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
79
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
77
80
  function ValueObserver({ value, onChange }) {
78
81
  useEffect(() => {
79
82
  onChange(value);
@@ -82,8 +85,8 @@ function ValueObserver({ value, onChange }) {
82
85
  }
83
86
  function registerComponentHelper(loader, component, meta, overrides) {
84
87
  if (overrides) {
85
- meta = __spreadProps$c(__spreadValues$l(__spreadValues$l({}, meta), overrides), {
86
- props: __spreadValues$l(__spreadValues$l({}, meta.props), overrides.props)
88
+ meta = __spreadProps$d(__spreadValues$m(__spreadValues$m({}, meta), overrides), {
89
+ props: __spreadValues$m(__spreadValues$m({}, meta.props), overrides.props)
87
90
  });
88
91
  if (overrides.parentComponentName) {
89
92
  meta.name = makeChildComponentName(
@@ -121,41 +124,41 @@ function withoutNils(array) {
121
124
  return array.filter((x) => x != null);
122
125
  }
123
126
 
124
- var __defProp$k = Object.defineProperty;
125
- var __defProps$b = Object.defineProperties;
126
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
127
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
128
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
129
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
130
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
131
- var __spreadValues$k = (a, b) => {
127
+ var __defProp$l = Object.defineProperty;
128
+ var __defProps$c = Object.defineProperties;
129
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
130
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
131
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
132
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
133
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
134
+ var __spreadValues$l = (a, b) => {
132
135
  for (var prop in b || (b = {}))
133
- if (__hasOwnProp$k.call(b, prop))
134
- __defNormalProp$k(a, prop, b[prop]);
135
- if (__getOwnPropSymbols$k)
136
- for (var prop of __getOwnPropSymbols$k(b)) {
137
- if (__propIsEnum$k.call(b, prop))
138
- __defNormalProp$k(a, prop, b[prop]);
136
+ if (__hasOwnProp$l.call(b, prop))
137
+ __defNormalProp$l(a, prop, b[prop]);
138
+ if (__getOwnPropSymbols$l)
139
+ for (var prop of __getOwnPropSymbols$l(b)) {
140
+ if (__propIsEnum$l.call(b, prop))
141
+ __defNormalProp$l(a, prop, b[prop]);
139
142
  }
140
143
  return a;
141
144
  };
142
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
143
- var __objRest$b = (source, exclude) => {
145
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
146
+ var __objRest$c = (source, exclude) => {
144
147
  var target = {};
145
148
  for (var prop in source)
146
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
149
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
147
150
  target[prop] = source[prop];
148
- if (source != null && __getOwnPropSymbols$k)
149
- for (var prop of __getOwnPropSymbols$k(source)) {
150
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
151
+ if (source != null && __getOwnPropSymbols$l)
152
+ for (var prop of __getOwnPropSymbols$l(source)) {
153
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
151
154
  target[prop] = source[prop];
152
155
  }
153
156
  return target;
154
157
  };
155
158
  function BaseButton(props) {
156
- const _a = props, { submitsForm, onFocusVisibleChange, resetsForm, children } = _a, rest = __objRest$b(_a, ["submitsForm", "onFocusVisibleChange", "resetsForm", "children"]);
159
+ const _a = props, { submitsForm, onFocusVisibleChange, resetsForm, children } = _a, rest = __objRest$c(_a, ["submitsForm", "onFocusVisibleChange", "resetsForm", "children"]);
157
160
  const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
158
- return /* @__PURE__ */ React.createElement(Button, __spreadValues$k({ type }, rest), ({ isFocusVisible }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
161
+ return /* @__PURE__ */ React.createElement(Button, __spreadValues$l({ type }, rest), ({ isFocusVisible }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
159
162
  ValueObserver,
160
163
  {
161
164
  value: isFocusVisible,
@@ -172,7 +175,7 @@ function registerButton(loader, overrides) {
172
175
  displayName: "Aria Button",
173
176
  importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
174
177
  importName: "BaseButton",
175
- props: __spreadProps$b(__spreadValues$k({}, getCommonInputProps("button", [
178
+ props: __spreadProps$c(__spreadValues$l({}, getCommonInputProps("button", [
176
179
  "isDisabled",
177
180
  "aria-label",
178
181
  "children"
@@ -242,40 +245,40 @@ function registerButton(loader, overrides) {
242
245
  );
243
246
  }
244
247
 
245
- var __defProp$j = Object.defineProperty;
246
- var __defProps$a = Object.defineProperties;
247
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
248
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
249
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
250
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
251
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
252
- var __spreadValues$j = (a, b) => {
248
+ var __defProp$k = Object.defineProperty;
249
+ var __defProps$b = Object.defineProperties;
250
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
251
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
252
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
253
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
254
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
255
+ var __spreadValues$k = (a, b) => {
253
256
  for (var prop in b || (b = {}))
254
- if (__hasOwnProp$j.call(b, prop))
255
- __defNormalProp$j(a, prop, b[prop]);
256
- if (__getOwnPropSymbols$j)
257
- for (var prop of __getOwnPropSymbols$j(b)) {
258
- if (__propIsEnum$j.call(b, prop))
259
- __defNormalProp$j(a, prop, b[prop]);
257
+ if (__hasOwnProp$k.call(b, prop))
258
+ __defNormalProp$k(a, prop, b[prop]);
259
+ if (__getOwnPropSymbols$k)
260
+ for (var prop of __getOwnPropSymbols$k(b)) {
261
+ if (__propIsEnum$k.call(b, prop))
262
+ __defNormalProp$k(a, prop, b[prop]);
260
263
  }
261
264
  return a;
262
265
  };
263
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
264
- var __objRest$a = (source, exclude) => {
266
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
267
+ var __objRest$b = (source, exclude) => {
265
268
  var target = {};
266
269
  for (var prop in source)
267
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
270
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
268
271
  target[prop] = source[prop];
269
- if (source != null && __getOwnPropSymbols$j)
270
- for (var prop of __getOwnPropSymbols$j(source)) {
271
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
272
+ if (source != null && __getOwnPropSymbols$k)
273
+ for (var prop of __getOwnPropSymbols$k(source)) {
274
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
272
275
  target[prop] = source[prop];
273
276
  }
274
277
  return target;
275
278
  };
276
279
  function BaseCheckbox(props) {
277
- const _a = props, { children, onPressChange, onFocusVisibleChange } = _a, rest = __objRest$a(_a, ["children", "onPressChange", "onFocusVisibleChange"]);
278
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Checkbox, __spreadValues$j({}, rest), ({ isFocusVisible, isPressed }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
280
+ const _a = props, { children, onPressChange, onFocusVisibleChange } = _a, rest = __objRest$b(_a, ["children", "onPressChange", "onFocusVisibleChange"]);
281
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Checkbox, __spreadValues$k({}, rest), ({ isFocusVisible, isPressed }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
279
282
  ValueObserver,
280
283
  {
281
284
  value: isFocusVisible,
@@ -292,7 +295,7 @@ function registerCheckbox(loader, overrides) {
292
295
  displayName: "Aria Checkbox",
293
296
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
294
297
  importName: "BaseCheckbox",
295
- props: __spreadProps$a(__spreadValues$j({}, getCommonInputProps("checkbox", [
298
+ props: __spreadProps$b(__spreadValues$k({}, getCommonInputProps("checkbox", [
296
299
  "name",
297
300
  "isDisabled",
298
301
  "isReadOnly",
@@ -385,37 +388,37 @@ function registerCheckbox(loader, overrides) {
385
388
  );
386
389
  }
387
390
 
388
- var __defProp$i = Object.defineProperty;
389
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
390
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
391
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
392
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
393
- var __spreadValues$i = (a, b) => {
391
+ var __defProp$j = Object.defineProperty;
392
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
393
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
394
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
395
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
396
+ var __spreadValues$j = (a, b) => {
394
397
  for (var prop in b || (b = {}))
395
- if (__hasOwnProp$i.call(b, prop))
396
- __defNormalProp$i(a, prop, b[prop]);
397
- if (__getOwnPropSymbols$i)
398
- for (var prop of __getOwnPropSymbols$i(b)) {
399
- if (__propIsEnum$i.call(b, prop))
400
- __defNormalProp$i(a, prop, b[prop]);
398
+ if (__hasOwnProp$j.call(b, prop))
399
+ __defNormalProp$j(a, prop, b[prop]);
400
+ if (__getOwnPropSymbols$j)
401
+ for (var prop of __getOwnPropSymbols$j(b)) {
402
+ if (__propIsEnum$j.call(b, prop))
403
+ __defNormalProp$j(a, prop, b[prop]);
401
404
  }
402
405
  return a;
403
406
  };
404
- var __objRest$9 = (source, exclude) => {
407
+ var __objRest$a = (source, exclude) => {
405
408
  var target = {};
406
409
  for (var prop in source)
407
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
410
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
408
411
  target[prop] = source[prop];
409
- if (source != null && __getOwnPropSymbols$i)
410
- for (var prop of __getOwnPropSymbols$i(source)) {
411
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
412
+ if (source != null && __getOwnPropSymbols$j)
413
+ for (var prop of __getOwnPropSymbols$j(source)) {
414
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
412
415
  target[prop] = source[prop];
413
416
  }
414
417
  return target;
415
418
  };
416
419
  function BaseText(_a) {
417
- var _b = _a, { children } = _b, rest = __objRest$9(_b, ["children"]);
418
- return /* @__PURE__ */ React.createElement(Text, __spreadValues$i({}, rest), children);
420
+ var _b = _a, { children } = _b, rest = __objRest$a(_b, ["children"]);
421
+ return /* @__PURE__ */ React.createElement(Text, __spreadValues$j({}, rest), children);
419
422
  }
420
423
  function registerText(loader, overrides) {
421
424
  registerComponentHelper(
@@ -440,27 +443,27 @@ function registerText(loader, overrides) {
440
443
  );
441
444
  }
442
445
 
443
- var __defProp$h = Object.defineProperty;
444
- var __defProps$9 = Object.defineProperties;
445
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
446
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
447
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
448
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
449
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
450
- var __spreadValues$h = (a, b) => {
446
+ var __defProp$i = Object.defineProperty;
447
+ var __defProps$a = Object.defineProperties;
448
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
449
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
450
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
451
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
452
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
453
+ var __spreadValues$i = (a, b) => {
451
454
  for (var prop in b || (b = {}))
452
- if (__hasOwnProp$h.call(b, prop))
453
- __defNormalProp$h(a, prop, b[prop]);
454
- if (__getOwnPropSymbols$h)
455
- for (var prop of __getOwnPropSymbols$h(b)) {
456
- if (__propIsEnum$h.call(b, prop))
457
- __defNormalProp$h(a, prop, b[prop]);
455
+ if (__hasOwnProp$i.call(b, prop))
456
+ __defNormalProp$i(a, prop, b[prop]);
457
+ if (__getOwnPropSymbols$i)
458
+ for (var prop of __getOwnPropSymbols$i(b)) {
459
+ if (__propIsEnum$i.call(b, prop))
460
+ __defNormalProp$i(a, prop, b[prop]);
458
461
  }
459
462
  return a;
460
463
  };
461
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
464
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
462
465
  function registerDescription(loader, overrides) {
463
- registerText(loader, __spreadProps$9(__spreadValues$h({}, overrides), {
466
+ registerText(loader, __spreadProps$a(__spreadValues$i({}, overrides), {
464
467
  displayName: "Aria Description",
465
468
  props: {
466
469
  slot: { type: "string", hidden: () => true, defaultValue: "description" }
@@ -468,30 +471,30 @@ function registerDescription(loader, overrides) {
468
471
  }));
469
472
  }
470
473
 
471
- var __defProp$g = Object.defineProperty;
472
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
473
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
474
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
475
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
476
- var __spreadValues$g = (a, b) => {
474
+ var __defProp$h = Object.defineProperty;
475
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
476
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
477
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
478
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
479
+ var __spreadValues$h = (a, b) => {
477
480
  for (var prop in b || (b = {}))
478
- if (__hasOwnProp$g.call(b, prop))
479
- __defNormalProp$g(a, prop, b[prop]);
480
- if (__getOwnPropSymbols$g)
481
- for (var prop of __getOwnPropSymbols$g(b)) {
482
- if (__propIsEnum$g.call(b, prop))
483
- __defNormalProp$g(a, prop, b[prop]);
481
+ if (__hasOwnProp$h.call(b, prop))
482
+ __defNormalProp$h(a, prop, b[prop]);
483
+ if (__getOwnPropSymbols$h)
484
+ for (var prop of __getOwnPropSymbols$h(b)) {
485
+ if (__propIsEnum$h.call(b, prop))
486
+ __defNormalProp$h(a, prop, b[prop]);
484
487
  }
485
488
  return a;
486
489
  };
487
- var __objRest$8 = (source, exclude) => {
490
+ var __objRest$9 = (source, exclude) => {
488
491
  var target = {};
489
492
  for (var prop in source)
490
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
493
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
491
494
  target[prop] = source[prop];
492
- if (source != null && __getOwnPropSymbols$g)
493
- for (var prop of __getOwnPropSymbols$g(source)) {
494
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
495
+ if (source != null && __getOwnPropSymbols$h)
496
+ for (var prop of __getOwnPropSymbols$h(source)) {
497
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
495
498
  target[prop] = source[prop];
496
499
  }
497
500
  return target;
@@ -508,7 +511,7 @@ function BaseFieldError(_a) {
508
511
  tooShort,
509
512
  typeMismatch,
510
513
  valueMissing
511
- } = _b, rest = __objRest$8(_b, [
514
+ } = _b, rest = __objRest$9(_b, [
512
515
  "badInput",
513
516
  "customError",
514
517
  "patternMismatch",
@@ -520,7 +523,7 @@ function BaseFieldError(_a) {
520
523
  "typeMismatch",
521
524
  "valueMissing"
522
525
  ]);
523
- return /* @__PURE__ */ React.createElement(FieldError, __spreadValues$g({}, rest), ({ validationDetails, validationErrors }) => {
526
+ return /* @__PURE__ */ React.createElement(FieldError, __spreadValues$h({}, rest), ({ validationDetails, validationErrors }) => {
524
527
  if (validationDetails.badInput && badInput)
525
528
  return badInput;
526
529
  if (validationDetails.customError && customError)
@@ -638,25 +641,25 @@ function registerLabel(loader, overrides) {
638
641
  );
639
642
  }
640
643
 
641
- var __defProp$f = Object.defineProperty;
642
- var __defProps$8 = Object.defineProperties;
643
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
644
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
645
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
646
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
647
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
648
- var __spreadValues$f = (a, b) => {
644
+ var __defProp$g = Object.defineProperty;
645
+ var __defProps$9 = Object.defineProperties;
646
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
647
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
648
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
649
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
650
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
651
+ var __spreadValues$g = (a, b) => {
649
652
  for (var prop in b || (b = {}))
650
- if (__hasOwnProp$f.call(b, prop))
651
- __defNormalProp$f(a, prop, b[prop]);
652
- if (__getOwnPropSymbols$f)
653
- for (var prop of __getOwnPropSymbols$f(b)) {
654
- if (__propIsEnum$f.call(b, prop))
655
- __defNormalProp$f(a, prop, b[prop]);
653
+ if (__hasOwnProp$g.call(b, prop))
654
+ __defNormalProp$g(a, prop, b[prop]);
655
+ if (__getOwnPropSymbols$g)
656
+ for (var prop of __getOwnPropSymbols$g(b)) {
657
+ if (__propIsEnum$g.call(b, prop))
658
+ __defNormalProp$g(a, prop, b[prop]);
656
659
  }
657
660
  return a;
658
661
  };
659
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
662
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
660
663
  const BaseCheckboxGroup = CheckboxGroup;
661
664
  const componentName$2 = makeComponentName("checkboxGroup");
662
665
  function registerCheckboxGroup(loader, overrides) {
@@ -668,7 +671,7 @@ function registerCheckboxGroup(loader, overrides) {
668
671
  displayName: "Aria Checkbox Group",
669
672
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
670
673
  importName: "BaseCheckboxGroup",
671
- props: __spreadProps$8(__spreadValues$f({}, getCommonInputProps("checkbox group", [
674
+ props: __spreadProps$9(__spreadValues$g({}, getCommonInputProps("checkbox group", [
672
675
  "name",
673
676
  "isDisabled",
674
677
  "isReadOnly",
@@ -880,25 +883,25 @@ function makeValuePropType() {
880
883
  return type;
881
884
  }
882
885
 
883
- var __defProp$e = Object.defineProperty;
884
- var __defProps$7 = Object.defineProperties;
885
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
886
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
887
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
888
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
889
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
890
- var __spreadValues$e = (a, b) => {
886
+ var __defProp$f = Object.defineProperty;
887
+ var __defProps$8 = Object.defineProperties;
888
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
889
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
890
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
891
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
892
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
893
+ var __spreadValues$f = (a, b) => {
891
894
  for (var prop in b || (b = {}))
892
- if (__hasOwnProp$e.call(b, prop))
893
- __defNormalProp$e(a, prop, b[prop]);
894
- if (__getOwnPropSymbols$e)
895
- for (var prop of __getOwnPropSymbols$e(b)) {
896
- if (__propIsEnum$e.call(b, prop))
897
- __defNormalProp$e(a, prop, b[prop]);
895
+ if (__hasOwnProp$f.call(b, prop))
896
+ __defNormalProp$f(a, prop, b[prop]);
897
+ if (__getOwnPropSymbols$f)
898
+ for (var prop of __getOwnPropSymbols$f(b)) {
899
+ if (__propIsEnum$f.call(b, prop))
900
+ __defNormalProp$f(a, prop, b[prop]);
898
901
  }
899
902
  return a;
900
903
  };
901
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
904
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
902
905
  function BaseComboBox(props) {
903
906
  const {
904
907
  value,
@@ -931,7 +934,7 @@ function BaseComboBox(props) {
931
934
  return withoutNils(
932
935
  opts.map((op) => {
933
936
  if (op.type === "section") {
934
- return __spreadProps$7(__spreadValues$e({}, op), {
937
+ return __spreadProps$8(__spreadValues$f({}, op), {
935
938
  items: op.items ? filterOptions(op.items) : void 0
936
939
  });
937
940
  } else {
@@ -1018,7 +1021,7 @@ function BaseComboBox(props) {
1018
1021
  ]);
1019
1022
  return /* @__PURE__ */ React.createElement(
1020
1023
  ComboBox,
1021
- __spreadValues$e({
1024
+ __spreadValues$f({
1022
1025
  selectedKey: value,
1023
1026
  onSelectionChange,
1024
1027
  isDisabled,
@@ -1157,39 +1160,39 @@ function registerComboBox(loader) {
1157
1160
  });
1158
1161
  }
1159
1162
 
1160
- var __defProp$d = Object.defineProperty;
1161
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1162
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1163
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1164
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1165
- var __spreadValues$d = (a, b) => {
1163
+ var __defProp$e = Object.defineProperty;
1164
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1165
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1166
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1167
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1168
+ var __spreadValues$e = (a, b) => {
1166
1169
  for (var prop in b || (b = {}))
1167
- if (__hasOwnProp$d.call(b, prop))
1168
- __defNormalProp$d(a, prop, b[prop]);
1169
- if (__getOwnPropSymbols$d)
1170
- for (var prop of __getOwnPropSymbols$d(b)) {
1171
- if (__propIsEnum$d.call(b, prop))
1172
- __defNormalProp$d(a, prop, b[prop]);
1173
- }
1170
+ if (__hasOwnProp$e.call(b, prop))
1171
+ __defNormalProp$e(a, prop, b[prop]);
1172
+ if (__getOwnPropSymbols$e)
1173
+ for (var prop of __getOwnPropSymbols$e(b)) {
1174
+ if (__propIsEnum$e.call(b, prop))
1175
+ __defNormalProp$e(a, prop, b[prop]);
1176
+ }
1174
1177
  return a;
1175
1178
  };
1176
- var __objRest$7 = (source, exclude) => {
1179
+ var __objRest$8 = (source, exclude) => {
1177
1180
  var target = {};
1178
1181
  for (var prop in source)
1179
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
1182
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
1180
1183
  target[prop] = source[prop];
1181
- if (source != null && __getOwnPropSymbols$d)
1182
- for (var prop of __getOwnPropSymbols$d(source)) {
1183
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
1184
+ if (source != null && __getOwnPropSymbols$e)
1185
+ for (var prop of __getOwnPropSymbols$e(source)) {
1186
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
1184
1187
  target[prop] = source[prop];
1185
1188
  }
1186
1189
  return target;
1187
1190
  };
1188
1191
  function BaseForm(props) {
1189
- const _a = props, { onSubmit, children } = _a, rest = __objRest$7(_a, ["onSubmit", "children"]);
1192
+ const _a = props, { onSubmit, children } = _a, rest = __objRest$8(_a, ["onSubmit", "children"]);
1190
1193
  return /* @__PURE__ */ React.createElement(
1191
1194
  Form,
1192
- __spreadValues$d({
1195
+ __spreadValues$e({
1193
1196
  onSubmit: (e) => {
1194
1197
  e.preventDefault();
1195
1198
  const formData = new FormData(e.currentTarget);
@@ -1239,24 +1242,24 @@ function registerForm(loader, overrides) {
1239
1242
  );
1240
1243
  }
1241
1244
 
1242
- var __defProp$c = Object.defineProperty;
1243
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1244
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1245
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1246
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1247
- var __spreadValues$c = (a, b) => {
1245
+ var __defProp$d = Object.defineProperty;
1246
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1247
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1248
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1249
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1250
+ var __spreadValues$d = (a, b) => {
1248
1251
  for (var prop in b || (b = {}))
1249
- if (__hasOwnProp$c.call(b, prop))
1250
- __defNormalProp$c(a, prop, b[prop]);
1251
- if (__getOwnPropSymbols$c)
1252
- for (var prop of __getOwnPropSymbols$c(b)) {
1253
- if (__propIsEnum$c.call(b, prop))
1254
- __defNormalProp$c(a, prop, b[prop]);
1252
+ if (__hasOwnProp$d.call(b, prop))
1253
+ __defNormalProp$d(a, prop, b[prop]);
1254
+ if (__getOwnPropSymbols$d)
1255
+ for (var prop of __getOwnPropSymbols$d(b)) {
1256
+ if (__propIsEnum$d.call(b, prop))
1257
+ __defNormalProp$d(a, prop, b[prop]);
1255
1258
  }
1256
1259
  return a;
1257
1260
  };
1258
1261
  function BaseInput(props) {
1259
- return /* @__PURE__ */ React.createElement(Input, __spreadValues$c({}, props));
1262
+ return /* @__PURE__ */ React.createElement(Input, __spreadValues$d({}, props));
1260
1263
  }
1261
1264
  function registerInput(loader, overrides) {
1262
1265
  registerComponentHelper(
@@ -1278,19 +1281,19 @@ function registerInput(loader, overrides) {
1278
1281
  );
1279
1282
  }
1280
1283
 
1281
- var __defProp$b = Object.defineProperty;
1282
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1283
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1284
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1285
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1286
- var __spreadValues$b = (a, b) => {
1284
+ var __defProp$c = Object.defineProperty;
1285
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1286
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1287
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1288
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1289
+ var __spreadValues$c = (a, b) => {
1287
1290
  for (var prop in b || (b = {}))
1288
- if (__hasOwnProp$b.call(b, prop))
1289
- __defNormalProp$b(a, prop, b[prop]);
1290
- if (__getOwnPropSymbols$b)
1291
- for (var prop of __getOwnPropSymbols$b(b)) {
1292
- if (__propIsEnum$b.call(b, prop))
1293
- __defNormalProp$b(a, prop, b[prop]);
1291
+ if (__hasOwnProp$c.call(b, prop))
1292
+ __defNormalProp$c(a, prop, b[prop]);
1293
+ if (__getOwnPropSymbols$c)
1294
+ for (var prop of __getOwnPropSymbols$c(b)) {
1295
+ if (__propIsEnum$c.call(b, prop))
1296
+ __defNormalProp$c(a, prop, b[prop]);
1294
1297
  }
1295
1298
  return a;
1296
1299
  };
@@ -1298,7 +1301,7 @@ function BaseListBoxItem(props) {
1298
1301
  var _a;
1299
1302
  const contextProps = React.useContext(PlasmicItemContext);
1300
1303
  const mergedProps = mergeProps(contextProps, props);
1301
- return /* @__PURE__ */ React.createElement(ListBoxItem, __spreadValues$b({ id: (_a = mergedProps.key) != null ? _a : void 0 }, mergedProps));
1304
+ return /* @__PURE__ */ React.createElement(ListBoxItem, __spreadValues$c({ id: (_a = mergedProps.key) != null ? _a : void 0 }, mergedProps));
1302
1305
  }
1303
1306
  function registerListBoxItem(loader, overrides) {
1304
1307
  registerComponentHelper(
@@ -1334,33 +1337,33 @@ function registerListBoxItem(loader, overrides) {
1334
1337
  );
1335
1338
  }
1336
1339
 
1337
- var __defProp$a = Object.defineProperty;
1338
- var __defProps$6 = Object.defineProperties;
1339
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
1340
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
1341
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
1342
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
1343
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1344
- var __spreadValues$a = (a, b) => {
1340
+ var __defProp$b = Object.defineProperty;
1341
+ var __defProps$7 = Object.defineProperties;
1342
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
1343
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1344
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1345
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1346
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1347
+ var __spreadValues$b = (a, b) => {
1345
1348
  for (var prop in b || (b = {}))
1346
- if (__hasOwnProp$a.call(b, prop))
1347
- __defNormalProp$a(a, prop, b[prop]);
1348
- if (__getOwnPropSymbols$a)
1349
- for (var prop of __getOwnPropSymbols$a(b)) {
1350
- if (__propIsEnum$a.call(b, prop))
1351
- __defNormalProp$a(a, prop, b[prop]);
1349
+ if (__hasOwnProp$b.call(b, prop))
1350
+ __defNormalProp$b(a, prop, b[prop]);
1351
+ if (__getOwnPropSymbols$b)
1352
+ for (var prop of __getOwnPropSymbols$b(b)) {
1353
+ if (__propIsEnum$b.call(b, prop))
1354
+ __defNormalProp$b(a, prop, b[prop]);
1352
1355
  }
1353
1356
  return a;
1354
1357
  };
1355
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
1356
- var __objRest$6 = (source, exclude) => {
1358
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
1359
+ var __objRest$7 = (source, exclude) => {
1357
1360
  var target = {};
1358
1361
  for (var prop in source)
1359
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
1362
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
1360
1363
  target[prop] = source[prop];
1361
- if (source != null && __getOwnPropSymbols$a)
1362
- for (var prop of __getOwnPropSymbols$a(source)) {
1363
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
1364
+ if (source != null && __getOwnPropSymbols$b)
1365
+ for (var prop of __getOwnPropSymbols$b(source)) {
1366
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
1364
1367
  target[prop] = source[prop];
1365
1368
  }
1366
1369
  return target;
@@ -1409,21 +1412,21 @@ function BaseListBox(props) {
1409
1412
  renderItem,
1410
1413
  renderSection,
1411
1414
  getItemType
1412
- } = _a, rest = __objRest$6(_a, [
1415
+ } = _a, rest = __objRest$7(_a, [
1413
1416
  "makeItemProps",
1414
1417
  "makeSectionProps",
1415
1418
  "renderItem",
1416
1419
  "renderSection",
1417
1420
  "getItemType"
1418
1421
  ]);
1419
- return /* @__PURE__ */ React.createElement(ListBox, __spreadValues$a({}, mergeProps(contextProps, rest)), (item) => {
1422
+ return /* @__PURE__ */ React.createElement(ListBox, __spreadValues$b({}, mergeProps(contextProps, rest)), (item) => {
1420
1423
  if ((getItemType == null ? void 0 : getItemType(item)) === "section") {
1421
1424
  const sectionProps = makeSectionProps == null ? void 0 : makeSectionProps(item);
1422
1425
  return /* @__PURE__ */ React.createElement(
1423
1426
  PlasmicSectionContext.Provider,
1424
1427
  {
1425
1428
  key: sectionProps == null ? void 0 : sectionProps.key,
1426
- value: __spreadProps$6(__spreadValues$a({}, sectionProps), { makeItemProps, renderItem })
1429
+ value: __spreadProps$7(__spreadValues$b({}, sectionProps), { makeItemProps, renderItem })
1427
1430
  },
1428
1431
  renderSection == null ? void 0 : renderSection(item)
1429
1432
  );
@@ -1476,33 +1479,33 @@ function registerListBox(loader, overrides) {
1476
1479
  });
1477
1480
  }
1478
1481
 
1479
- var __defProp$9 = Object.defineProperty;
1480
- var __defProps$5 = Object.defineProperties;
1481
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
1482
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
1483
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
1484
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
1485
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1486
- var __spreadValues$9 = (a, b) => {
1482
+ var __defProp$a = Object.defineProperty;
1483
+ var __defProps$6 = Object.defineProperties;
1484
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
1485
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
1486
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
1487
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
1488
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1489
+ var __spreadValues$a = (a, b) => {
1487
1490
  for (var prop in b || (b = {}))
1488
- if (__hasOwnProp$9.call(b, prop))
1489
- __defNormalProp$9(a, prop, b[prop]);
1490
- if (__getOwnPropSymbols$9)
1491
- for (var prop of __getOwnPropSymbols$9(b)) {
1492
- if (__propIsEnum$9.call(b, prop))
1493
- __defNormalProp$9(a, prop, b[prop]);
1491
+ if (__hasOwnProp$a.call(b, prop))
1492
+ __defNormalProp$a(a, prop, b[prop]);
1493
+ if (__getOwnPropSymbols$a)
1494
+ for (var prop of __getOwnPropSymbols$a(b)) {
1495
+ if (__propIsEnum$a.call(b, prop))
1496
+ __defNormalProp$a(a, prop, b[prop]);
1494
1497
  }
1495
1498
  return a;
1496
1499
  };
1497
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
1498
- var __objRest$5 = (source, exclude) => {
1500
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
1501
+ var __objRest$6 = (source, exclude) => {
1499
1502
  var target = {};
1500
1503
  for (var prop in source)
1501
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
1504
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
1502
1505
  target[prop] = source[prop];
1503
- if (source != null && __getOwnPropSymbols$9)
1504
- for (var prop of __getOwnPropSymbols$9(source)) {
1505
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
1506
+ if (source != null && __getOwnPropSymbols$a)
1507
+ for (var prop of __getOwnPropSymbols$a(source)) {
1508
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
1506
1509
  target[prop] = source[prop];
1507
1510
  }
1508
1511
  return target;
@@ -1515,7 +1518,7 @@ const BaseModal = forwardRef(
1515
1518
  modalOverlayClass,
1516
1519
  onOpenChange,
1517
1520
  className
1518
- } = _a, rest = __objRest$5(_a, [
1521
+ } = _a, rest = __objRest$6(_a, [
1519
1522
  "children",
1520
1523
  "heading",
1521
1524
  "modalOverlayClass",
@@ -1534,7 +1537,7 @@ const BaseModal = forwardRef(
1534
1537
  const body = /* @__PURE__ */ React.createElement(React.Fragment, null, heading && /* @__PURE__ */ React.createElement(Heading, { slot: "title" }, heading), children);
1535
1538
  return /* @__PURE__ */ React.createElement(
1536
1539
  ModalOverlay,
1537
- __spreadProps$5(__spreadValues$9({}, rest), {
1540
+ __spreadProps$6(__spreadValues$a({}, rest), {
1538
1541
  className: modalOverlayClass,
1539
1542
  onOpenChange
1540
1543
  }),
@@ -1606,39 +1609,39 @@ function registerModal(loader, overrides) {
1606
1609
  );
1607
1610
  }
1608
1611
 
1609
- var __defProp$8 = Object.defineProperty;
1610
- var __defProps$4 = Object.defineProperties;
1611
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
1612
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
1613
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
1614
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
1615
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1616
- var __spreadValues$8 = (a, b) => {
1612
+ var __defProp$9 = Object.defineProperty;
1613
+ var __defProps$5 = Object.defineProperties;
1614
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
1615
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
1616
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
1617
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
1618
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1619
+ var __spreadValues$9 = (a, b) => {
1617
1620
  for (var prop in b || (b = {}))
1618
- if (__hasOwnProp$8.call(b, prop))
1619
- __defNormalProp$8(a, prop, b[prop]);
1620
- if (__getOwnPropSymbols$8)
1621
- for (var prop of __getOwnPropSymbols$8(b)) {
1622
- if (__propIsEnum$8.call(b, prop))
1623
- __defNormalProp$8(a, prop, b[prop]);
1621
+ if (__hasOwnProp$9.call(b, prop))
1622
+ __defNormalProp$9(a, prop, b[prop]);
1623
+ if (__getOwnPropSymbols$9)
1624
+ for (var prop of __getOwnPropSymbols$9(b)) {
1625
+ if (__propIsEnum$9.call(b, prop))
1626
+ __defNormalProp$9(a, prop, b[prop]);
1624
1627
  }
1625
1628
  return a;
1626
1629
  };
1627
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
1628
- var __objRest$4 = (source, exclude) => {
1630
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
1631
+ var __objRest$5 = (source, exclude) => {
1629
1632
  var target = {};
1630
1633
  for (var prop in source)
1631
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
1634
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
1632
1635
  target[prop] = source[prop];
1633
- if (source != null && __getOwnPropSymbols$8)
1634
- for (var prop of __getOwnPropSymbols$8(source)) {
1635
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
1636
+ if (source != null && __getOwnPropSymbols$9)
1637
+ for (var prop of __getOwnPropSymbols$9(source)) {
1638
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
1636
1639
  target[prop] = source[prop];
1637
1640
  }
1638
1641
  return target;
1639
1642
  };
1640
1643
  function BasePopover(props) {
1641
- const _a = props, { resetClassName } = _a, restProps = __objRest$4(_a, ["resetClassName"]);
1644
+ const _a = props, { resetClassName } = _a, restProps = __objRest$5(_a, ["resetClassName"]);
1642
1645
  const isStandalone = !React.useContext(PopoverContext);
1643
1646
  const contextProps = React.useContext(PlasmicPopoverContext);
1644
1647
  const canvas = usePlasmicCanvasContext();
@@ -1649,14 +1652,14 @@ function BasePopover(props) {
1649
1652
  const triggerRef = React.useRef(null);
1650
1653
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React.createElement(
1651
1654
  Popover,
1652
- __spreadProps$4(__spreadValues$8({}, mergedProps), {
1655
+ __spreadProps$5(__spreadValues$9({}, mergedProps), {
1653
1656
  triggerRef,
1654
1657
  isNonModal: true,
1655
1658
  isOpen: true
1656
1659
  })
1657
1660
  ));
1658
1661
  } else {
1659
- return /* @__PURE__ */ React.createElement(Popover, __spreadProps$4(__spreadValues$8({}, mergedProps), { isNonModal: !!canvas }));
1662
+ return /* @__PURE__ */ React.createElement(Popover, __spreadProps$5(__spreadValues$9({}, mergedProps), { isNonModal: !!canvas }));
1660
1663
  }
1661
1664
  }
1662
1665
  function registerPopover(loader, overrides) {
@@ -1730,33 +1733,33 @@ class ErrorBoundary extends Component {
1730
1733
  }
1731
1734
  }
1732
1735
 
1733
- var __defProp$7 = Object.defineProperty;
1734
- var __defProps$3 = Object.defineProperties;
1735
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
1736
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
1737
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
1738
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
1739
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1740
- var __spreadValues$7 = (a, b) => {
1736
+ var __defProp$8 = Object.defineProperty;
1737
+ var __defProps$4 = Object.defineProperties;
1738
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
1739
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
1740
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
1741
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
1742
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1743
+ var __spreadValues$8 = (a, b) => {
1741
1744
  for (var prop in b || (b = {}))
1742
- if (__hasOwnProp$7.call(b, prop))
1743
- __defNormalProp$7(a, prop, b[prop]);
1744
- if (__getOwnPropSymbols$7)
1745
- for (var prop of __getOwnPropSymbols$7(b)) {
1746
- if (__propIsEnum$7.call(b, prop))
1747
- __defNormalProp$7(a, prop, b[prop]);
1745
+ if (__hasOwnProp$8.call(b, prop))
1746
+ __defNormalProp$8(a, prop, b[prop]);
1747
+ if (__getOwnPropSymbols$8)
1748
+ for (var prop of __getOwnPropSymbols$8(b)) {
1749
+ if (__propIsEnum$8.call(b, prop))
1750
+ __defNormalProp$8(a, prop, b[prop]);
1748
1751
  }
1749
1752
  return a;
1750
1753
  };
1751
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1752
- var __objRest$3 = (source, exclude) => {
1754
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
1755
+ var __objRest$4 = (source, exclude) => {
1753
1756
  var target = {};
1754
1757
  for (var prop in source)
1755
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
1758
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
1756
1759
  target[prop] = source[prop];
1757
- if (source != null && __getOwnPropSymbols$7)
1758
- for (var prop of __getOwnPropSymbols$7(source)) {
1759
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
1760
+ if (source != null && __getOwnPropSymbols$8)
1761
+ for (var prop of __getOwnPropSymbols$8(source)) {
1762
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
1760
1763
  target[prop] = source[prop];
1761
1764
  }
1762
1765
  return target;
@@ -1768,14 +1771,14 @@ function BaseRadio(props) {
1768
1771
  onFocusVisibleChange,
1769
1772
  onHoverChange,
1770
1773
  onSelectionChange
1771
- } = _a, rest = __objRest$3(_a, [
1774
+ } = _a, rest = __objRest$4(_a, [
1772
1775
  "children",
1773
1776
  "onPressChange",
1774
1777
  "onFocusVisibleChange",
1775
1778
  "onHoverChange",
1776
1779
  "onSelectionChange"
1777
1780
  ]);
1778
- const radio = /* @__PURE__ */ React.createElement(Radio, __spreadValues$7({}, rest), ({ isFocusVisible, isPressed, isHovered, isSelected }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1781
+ const radio = /* @__PURE__ */ React.createElement(Radio, __spreadValues$8({}, rest), ({ isFocusVisible, isPressed, isHovered, isSelected }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1779
1782
  ValueObserver,
1780
1783
  {
1781
1784
  value: isFocusVisible,
@@ -1793,7 +1796,7 @@ function registerRadio(loader, overrides) {
1793
1796
  displayName: "Aria Radio",
1794
1797
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
1795
1798
  importName: "BaseRadio",
1796
- props: __spreadProps$3(__spreadValues$7({}, getCommonInputProps("radio", [
1799
+ props: __spreadProps$4(__spreadValues$8({}, getCommonInputProps("radio", [
1797
1800
  "isDisabled",
1798
1801
  "autoFocus",
1799
1802
  "aria-label",
@@ -1857,40 +1860,40 @@ function registerRadio(loader, overrides) {
1857
1860
  );
1858
1861
  }
1859
1862
 
1860
- var __defProp$6 = Object.defineProperty;
1861
- var __defProps$2 = Object.defineProperties;
1862
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
1863
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
1864
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
1865
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
1866
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1867
- var __spreadValues$6 = (a, b) => {
1863
+ var __defProp$7 = Object.defineProperty;
1864
+ var __defProps$3 = Object.defineProperties;
1865
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
1866
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
1867
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
1868
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
1869
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1870
+ var __spreadValues$7 = (a, b) => {
1868
1871
  for (var prop in b || (b = {}))
1869
- if (__hasOwnProp$6.call(b, prop))
1870
- __defNormalProp$6(a, prop, b[prop]);
1871
- if (__getOwnPropSymbols$6)
1872
- for (var prop of __getOwnPropSymbols$6(b)) {
1873
- if (__propIsEnum$6.call(b, prop))
1874
- __defNormalProp$6(a, prop, b[prop]);
1872
+ if (__hasOwnProp$7.call(b, prop))
1873
+ __defNormalProp$7(a, prop, b[prop]);
1874
+ if (__getOwnPropSymbols$7)
1875
+ for (var prop of __getOwnPropSymbols$7(b)) {
1876
+ if (__propIsEnum$7.call(b, prop))
1877
+ __defNormalProp$7(a, prop, b[prop]);
1875
1878
  }
1876
1879
  return a;
1877
1880
  };
1878
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
1879
- var __objRest$2 = (source, exclude) => {
1881
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1882
+ var __objRest$3 = (source, exclude) => {
1880
1883
  var target = {};
1881
1884
  for (var prop in source)
1882
- if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
1885
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
1883
1886
  target[prop] = source[prop];
1884
- if (source != null && __getOwnPropSymbols$6)
1885
- for (var prop of __getOwnPropSymbols$6(source)) {
1886
- if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
1887
+ if (source != null && __getOwnPropSymbols$7)
1888
+ for (var prop of __getOwnPropSymbols$7(source)) {
1889
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
1887
1890
  target[prop] = source[prop];
1888
1891
  }
1889
1892
  return target;
1890
1893
  };
1891
1894
  function BaseRadioGroup(props) {
1892
- const _a = props, { children } = _a, rest = __objRest$2(_a, ["children"]);
1893
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(RadioGroup, __spreadValues$6({}, rest), children));
1895
+ const _a = props, { children } = _a, rest = __objRest$3(_a, ["children"]);
1896
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(RadioGroup, __spreadValues$7({}, rest), children));
1894
1897
  }
1895
1898
  const componentName$1 = makeComponentName("radioGroup");
1896
1899
  function registerRadioGroup(loader, overrides) {
@@ -1902,7 +1905,7 @@ function registerRadioGroup(loader, overrides) {
1902
1905
  displayName: "Aria RadioGroup",
1903
1906
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
1904
1907
  importName: "BaseRadioGroup",
1905
- props: __spreadProps$2(__spreadValues$6({}, getCommonInputProps("radio group", [
1908
+ props: __spreadProps$3(__spreadValues$7({}, getCommonInputProps("radio group", [
1906
1909
  "name",
1907
1910
  "isDisabled",
1908
1911
  "isReadOnly",
@@ -1966,25 +1969,25 @@ function registerRadioGroup(loader, overrides) {
1966
1969
  });
1967
1970
  }
1968
1971
 
1969
- var __defProp$5 = Object.defineProperty;
1970
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
1971
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
1972
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
1973
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1974
- var __spreadValues$5 = (a, b) => {
1972
+ var __defProp$6 = Object.defineProperty;
1973
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
1974
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
1975
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
1976
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1977
+ var __spreadValues$6 = (a, b) => {
1975
1978
  for (var prop in b || (b = {}))
1976
- if (__hasOwnProp$5.call(b, prop))
1977
- __defNormalProp$5(a, prop, b[prop]);
1978
- if (__getOwnPropSymbols$5)
1979
- for (var prop of __getOwnPropSymbols$5(b)) {
1980
- if (__propIsEnum$5.call(b, prop))
1981
- __defNormalProp$5(a, prop, b[prop]);
1979
+ if (__hasOwnProp$6.call(b, prop))
1980
+ __defNormalProp$6(a, prop, b[prop]);
1981
+ if (__getOwnPropSymbols$6)
1982
+ for (var prop of __getOwnPropSymbols$6(b)) {
1983
+ if (__propIsEnum$6.call(b, prop))
1984
+ __defNormalProp$6(a, prop, b[prop]);
1982
1985
  }
1983
1986
  return a;
1984
1987
  };
1985
1988
  function BaseHeader(props) {
1986
1989
  const contextProps = React.useContext(PlasmicHeaderContext);
1987
- return /* @__PURE__ */ React.createElement(Header, __spreadValues$5({}, mergeProps(contextProps, props)));
1990
+ return /* @__PURE__ */ React.createElement(Header, __spreadValues$6({}, mergeProps(contextProps, props)));
1988
1991
  }
1989
1992
  function registerHeader(loader, overrides) {
1990
1993
  registerComponentHelper(
@@ -2001,30 +2004,30 @@ function registerHeader(loader, overrides) {
2001
2004
  );
2002
2005
  }
2003
2006
 
2004
- var __defProp$4 = Object.defineProperty;
2005
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
2006
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
2007
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
2008
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2009
- var __spreadValues$4 = (a, b) => {
2007
+ var __defProp$5 = Object.defineProperty;
2008
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
2009
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
2010
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
2011
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2012
+ var __spreadValues$5 = (a, b) => {
2010
2013
  for (var prop in b || (b = {}))
2011
- if (__hasOwnProp$4.call(b, prop))
2012
- __defNormalProp$4(a, prop, b[prop]);
2013
- if (__getOwnPropSymbols$4)
2014
- for (var prop of __getOwnPropSymbols$4(b)) {
2015
- if (__propIsEnum$4.call(b, prop))
2016
- __defNormalProp$4(a, prop, b[prop]);
2014
+ if (__hasOwnProp$5.call(b, prop))
2015
+ __defNormalProp$5(a, prop, b[prop]);
2016
+ if (__getOwnPropSymbols$5)
2017
+ for (var prop of __getOwnPropSymbols$5(b)) {
2018
+ if (__propIsEnum$5.call(b, prop))
2019
+ __defNormalProp$5(a, prop, b[prop]);
2017
2020
  }
2018
2021
  return a;
2019
2022
  };
2020
- var __objRest$1 = (source, exclude) => {
2023
+ var __objRest$2 = (source, exclude) => {
2021
2024
  var target = {};
2022
2025
  for (var prop in source)
2023
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
2026
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
2024
2027
  target[prop] = source[prop];
2025
- if (source != null && __getOwnPropSymbols$4)
2026
- for (var prop of __getOwnPropSymbols$4(source)) {
2027
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
2028
+ if (source != null && __getOwnPropSymbols$5)
2029
+ for (var prop of __getOwnPropSymbols$5(source)) {
2030
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
2028
2031
  target[prop] = source[prop];
2029
2032
  }
2030
2033
  return target;
@@ -2032,8 +2035,8 @@ var __objRest$1 = (source, exclude) => {
2032
2035
  function BaseSection(props) {
2033
2036
  const contextProps = React.useContext(PlasmicSectionContext);
2034
2037
  const mergedProps = mergeProps(contextProps, props);
2035
- const _a = mergedProps, { section, renderHeader, key, makeItemProps, renderItem } = _a, rest = __objRest$1(_a, ["section", "renderHeader", "key", "makeItemProps", "renderItem"]);
2036
- return /* @__PURE__ */ React.createElement(Section, __spreadValues$4({ id: key != null ? key : void 0 }, rest), /* @__PURE__ */ React.createElement(PlasmicHeaderContext.Provider, { value: { children: section == null ? void 0 : section.label } }, renderHeader == null ? void 0 : renderHeader(section)), /* @__PURE__ */ React.createElement(Collection, { items: section == null ? void 0 : section.items }, (item) => {
2038
+ const _a = mergedProps, { section, renderHeader, key, makeItemProps, renderItem } = _a, rest = __objRest$2(_a, ["section", "renderHeader", "key", "makeItemProps", "renderItem"]);
2039
+ return /* @__PURE__ */ React.createElement(Section, __spreadValues$5({ id: key != null ? key : void 0 }, rest), /* @__PURE__ */ React.createElement(PlasmicHeaderContext.Provider, { value: { children: section == null ? void 0 : section.label } }, renderHeader == null ? void 0 : renderHeader(section)), /* @__PURE__ */ React.createElement(Collection, { items: section == null ? void 0 : section.items }, (item) => {
2037
2040
  const itemProps = makeItemProps == null ? void 0 : makeItemProps(item);
2038
2041
  return /* @__PURE__ */ React.createElement(PlasmicItemContext.Provider, { key: itemProps == null ? void 0 : itemProps.key, value: itemProps }, renderItem == null ? void 0 : renderItem(item));
2039
2042
  }));
@@ -2066,19 +2069,19 @@ function registerSection(loader, overrides) {
2066
2069
  });
2067
2070
  }
2068
2071
 
2069
- var __defProp$3 = Object.defineProperty;
2070
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
2071
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
2072
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
2073
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2074
- var __spreadValues$3 = (a, b) => {
2072
+ var __defProp$4 = Object.defineProperty;
2073
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
2074
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
2075
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
2076
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2077
+ var __spreadValues$4 = (a, b) => {
2075
2078
  for (var prop in b || (b = {}))
2076
- if (__hasOwnProp$3.call(b, prop))
2077
- __defNormalProp$3(a, prop, b[prop]);
2078
- if (__getOwnPropSymbols$3)
2079
- for (var prop of __getOwnPropSymbols$3(b)) {
2080
- if (__propIsEnum$3.call(b, prop))
2081
- __defNormalProp$3(a, prop, b[prop]);
2079
+ if (__hasOwnProp$4.call(b, prop))
2080
+ __defNormalProp$4(a, prop, b[prop]);
2081
+ if (__getOwnPropSymbols$4)
2082
+ for (var prop of __getOwnPropSymbols$4(b)) {
2083
+ if (__propIsEnum$4.call(b, prop))
2084
+ __defNormalProp$4(a, prop, b[prop]);
2082
2085
  }
2083
2086
  return a;
2084
2087
  };
@@ -2103,7 +2106,7 @@ function BaseSelect(props) {
2103
2106
  const disabledKeys = flattenOptions(options).filter((op) => op.isDisabled).map((op) => op.value);
2104
2107
  return /* @__PURE__ */ React.createElement(
2105
2108
  Select,
2106
- __spreadValues$3(__spreadValues$3({
2109
+ __spreadValues$4(__spreadValues$4({
2107
2110
  placeholder,
2108
2111
  selectedKey: value,
2109
2112
  onSelectionChange: onChange,
@@ -2254,25 +2257,25 @@ function registerSelect(loader) {
2254
2257
  });
2255
2258
  }
2256
2259
 
2257
- var __defProp$2 = Object.defineProperty;
2258
- var __defProps$1 = Object.defineProperties;
2259
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
2260
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
2261
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
2262
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
2263
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2264
- var __spreadValues$2 = (a, b) => {
2260
+ var __defProp$3 = Object.defineProperty;
2261
+ var __defProps$2 = Object.defineProperties;
2262
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
2263
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
2264
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
2265
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
2266
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2267
+ var __spreadValues$3 = (a, b) => {
2265
2268
  for (var prop in b || (b = {}))
2266
- if (__hasOwnProp$2.call(b, prop))
2267
- __defNormalProp$2(a, prop, b[prop]);
2268
- if (__getOwnPropSymbols$2)
2269
- for (var prop of __getOwnPropSymbols$2(b)) {
2270
- if (__propIsEnum$2.call(b, prop))
2271
- __defNormalProp$2(a, prop, b[prop]);
2269
+ if (__hasOwnProp$3.call(b, prop))
2270
+ __defNormalProp$3(a, prop, b[prop]);
2271
+ if (__getOwnPropSymbols$3)
2272
+ for (var prop of __getOwnPropSymbols$3(b)) {
2273
+ if (__propIsEnum$3.call(b, prop))
2274
+ __defNormalProp$3(a, prop, b[prop]);
2272
2275
  }
2273
2276
  return a;
2274
2277
  };
2275
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
2278
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
2276
2279
  const BaseSwitch = Switch;
2277
2280
  function registerSwitch(loader, overrides) {
2278
2281
  registerComponentHelper(
@@ -2283,7 +2286,7 @@ function registerSwitch(loader, overrides) {
2283
2286
  displayName: "Aria Switch",
2284
2287
  importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
2285
2288
  importName: "BaseSwitch",
2286
- props: __spreadProps$1(__spreadValues$2({}, getCommonInputProps("switch", [
2289
+ props: __spreadProps$2(__spreadValues$3({}, getCommonInputProps("switch", [
2287
2290
  "name",
2288
2291
  "isDisabled",
2289
2292
  "isReadOnly",
@@ -2326,24 +2329,24 @@ function registerSwitch(loader, overrides) {
2326
2329
  );
2327
2330
  }
2328
2331
 
2329
- var __defProp$1 = Object.defineProperty;
2330
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2331
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2332
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2333
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2334
- var __spreadValues$1 = (a, b) => {
2332
+ var __defProp$2 = Object.defineProperty;
2333
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
2334
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
2335
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
2336
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2337
+ var __spreadValues$2 = (a, b) => {
2335
2338
  for (var prop in b || (b = {}))
2336
- if (__hasOwnProp$1.call(b, prop))
2337
- __defNormalProp$1(a, prop, b[prop]);
2338
- if (__getOwnPropSymbols$1)
2339
- for (var prop of __getOwnPropSymbols$1(b)) {
2340
- if (__propIsEnum$1.call(b, prop))
2341
- __defNormalProp$1(a, prop, b[prop]);
2339
+ if (__hasOwnProp$2.call(b, prop))
2340
+ __defNormalProp$2(a, prop, b[prop]);
2341
+ if (__getOwnPropSymbols$2)
2342
+ for (var prop of __getOwnPropSymbols$2(b)) {
2343
+ if (__propIsEnum$2.call(b, prop))
2344
+ __defNormalProp$2(a, prop, b[prop]);
2342
2345
  }
2343
2346
  return a;
2344
2347
  };
2345
2348
  function BaseTextArea(props) {
2346
- return /* @__PURE__ */ React.createElement(TextArea, __spreadValues$1({}, props));
2349
+ return /* @__PURE__ */ React.createElement(TextArea, __spreadValues$2({}, props));
2347
2350
  }
2348
2351
  function registerTextArea(loader, overrides) {
2349
2352
  registerComponentHelper(
@@ -2365,42 +2368,42 @@ function registerTextArea(loader, overrides) {
2365
2368
  );
2366
2369
  }
2367
2370
 
2368
- var __defProp = Object.defineProperty;
2369
- var __defProps = Object.defineProperties;
2370
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2371
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2372
- var __hasOwnProp = Object.prototype.hasOwnProperty;
2373
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
2374
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2375
- var __spreadValues = (a, b) => {
2371
+ var __defProp$1 = Object.defineProperty;
2372
+ var __defProps$1 = Object.defineProperties;
2373
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
2374
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2375
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2376
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2377
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2378
+ var __spreadValues$1 = (a, b) => {
2376
2379
  for (var prop in b || (b = {}))
2377
- if (__hasOwnProp.call(b, prop))
2378
- __defNormalProp(a, prop, b[prop]);
2379
- if (__getOwnPropSymbols)
2380
- for (var prop of __getOwnPropSymbols(b)) {
2381
- if (__propIsEnum.call(b, prop))
2382
- __defNormalProp(a, prop, b[prop]);
2380
+ if (__hasOwnProp$1.call(b, prop))
2381
+ __defNormalProp$1(a, prop, b[prop]);
2382
+ if (__getOwnPropSymbols$1)
2383
+ for (var prop of __getOwnPropSymbols$1(b)) {
2384
+ if (__propIsEnum$1.call(b, prop))
2385
+ __defNormalProp$1(a, prop, b[prop]);
2383
2386
  }
2384
2387
  return a;
2385
2388
  };
2386
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2387
- var __objRest = (source, exclude) => {
2389
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
2390
+ var __objRest$1 = (source, exclude) => {
2388
2391
  var target = {};
2389
2392
  for (var prop in source)
2390
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2393
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
2391
2394
  target[prop] = source[prop];
2392
- if (source != null && __getOwnPropSymbols)
2393
- for (var prop of __getOwnPropSymbols(source)) {
2394
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2395
+ if (source != null && __getOwnPropSymbols$1)
2396
+ for (var prop of __getOwnPropSymbols$1(source)) {
2397
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
2395
2398
  target[prop] = source[prop];
2396
2399
  }
2397
2400
  return target;
2398
2401
  };
2399
2402
  function BaseTextField(props) {
2400
- const _a = props, { enableAutoComplete, autoComplete, children } = _a, rest = __objRest(_a, ["enableAutoComplete", "autoComplete", "children"]);
2403
+ const _a = props, { enableAutoComplete, autoComplete, children } = _a, rest = __objRest$1(_a, ["enableAutoComplete", "autoComplete", "children"]);
2401
2404
  return /* @__PURE__ */ React.createElement(
2402
2405
  TextField,
2403
- __spreadValues({
2406
+ __spreadValues$1({
2404
2407
  autoComplete: enableAutoComplete ? autoComplete : void 0
2405
2408
  }, rest),
2406
2409
  children
@@ -2417,7 +2420,7 @@ function registerTextField(loader, overrides) {
2417
2420
  importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
2418
2421
  importName: "BaseTextField",
2419
2422
  // TODO: Support for validate prop
2420
- props: __spreadProps(__spreadValues({}, getCommonInputProps("input", [
2423
+ props: __spreadProps$1(__spreadValues$1({}, getCommonInputProps("input", [
2421
2424
  "name",
2422
2425
  "isDisabled",
2423
2426
  "isReadOnly",
@@ -2603,6 +2606,128 @@ function registerTextField(loader, overrides) {
2603
2606
  registerTextArea(loader, { parentComponentName: thisName });
2604
2607
  }
2605
2608
 
2609
+ var __defProp = Object.defineProperty;
2610
+ var __defProps = Object.defineProperties;
2611
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2612
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2613
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2614
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2615
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2616
+ var __spreadValues = (a, b) => {
2617
+ for (var prop in b || (b = {}))
2618
+ if (__hasOwnProp.call(b, prop))
2619
+ __defNormalProp(a, prop, b[prop]);
2620
+ if (__getOwnPropSymbols)
2621
+ for (var prop of __getOwnPropSymbols(b)) {
2622
+ if (__propIsEnum.call(b, prop))
2623
+ __defNormalProp(a, prop, b[prop]);
2624
+ }
2625
+ return a;
2626
+ };
2627
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2628
+ var __objRest = (source, exclude) => {
2629
+ var target = {};
2630
+ for (var prop in source)
2631
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2632
+ target[prop] = source[prop];
2633
+ if (source != null && __getOwnPropSymbols)
2634
+ for (var prop of __getOwnPropSymbols(source)) {
2635
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2636
+ target[prop] = source[prop];
2637
+ }
2638
+ return target;
2639
+ };
2640
+ function BaseTooltip(props) {
2641
+ const _a = props, { children, tooltipContent, className, resetClassName } = _a, restProps = __objRest(_a, ["children", "tooltipContent", "className", "resetClassName"]);
2642
+ const state = useTooltipTriggerState(restProps);
2643
+ const ref = React.useRef(null);
2644
+ const { triggerProps, tooltipProps } = useTooltipTrigger(
2645
+ restProps,
2646
+ state,
2647
+ ref
2648
+ );
2649
+ const focusableChild = flattenChildren(children)[0];
2650
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, React.isValidElement(focusableChild) ? React.cloneElement(focusableChild, __spreadValues({
2651
+ ref
2652
+ }, mergeProps(
2653
+ focusableChild.props,
2654
+ triggerProps
2655
+ ))) : null, state.isOpen && /* @__PURE__ */ React.createElement("span", __spreadProps(__spreadValues({}, tooltipProps), { className: `${className} ${resetClassName}` }), tooltipContent));
2656
+ }
2657
+ function registerTooltip(loader, overrides) {
2658
+ registerComponentHelper(
2659
+ loader,
2660
+ BaseTooltip,
2661
+ {
2662
+ name: "plasmic-react-aria-tooltip",
2663
+ displayName: "Aria Tooltip",
2664
+ importPath: "@plasmicpkgs/react-aria/skinny/registerTooltip",
2665
+ importName: "BaseTooltip",
2666
+ isAttachment: true,
2667
+ styleSections: true,
2668
+ props: {
2669
+ children: {
2670
+ type: "slot",
2671
+ defaultValue: {
2672
+ type: "text",
2673
+ value: "Hover me!"
2674
+ }
2675
+ },
2676
+ tooltipContent: {
2677
+ type: "slot",
2678
+ displayName: "Tooltip Content",
2679
+ // NOTE: This is not applied in attachment
2680
+ defaultValue: {
2681
+ type: "text",
2682
+ value: "Hello from Tooltip!"
2683
+ }
2684
+ },
2685
+ resetClassName: {
2686
+ type: "themeResetClass"
2687
+ },
2688
+ isDisabled: {
2689
+ type: "boolean"
2690
+ },
2691
+ delay: {
2692
+ type: "number",
2693
+ defaultValueHint: 1500,
2694
+ description: "The delay (in milliseconds) for the tooltip to show up."
2695
+ },
2696
+ closeDelay: {
2697
+ type: "number",
2698
+ defaultValueHint: 500,
2699
+ description: "The delay (in milliseconds) for the tooltip to close."
2700
+ },
2701
+ trigger: {
2702
+ type: "choice",
2703
+ options: ["focus", "focus and hover"],
2704
+ defaultValueHint: "focus and hover"
2705
+ },
2706
+ isOpen: {
2707
+ type: "boolean",
2708
+ editOnly: true,
2709
+ uncontrolledProp: "defaultOpen",
2710
+ description: "Whether the overlay is open by default",
2711
+ defaultValueHint: false
2712
+ },
2713
+ onOpenChange: {
2714
+ type: "eventHandler",
2715
+ argTypes: [{ name: "isOpen", type: "boolean" }]
2716
+ }
2717
+ },
2718
+ states: {
2719
+ isOpen: {
2720
+ type: "writable",
2721
+ valueProp: "isOpen",
2722
+ onChangeProp: "onOpenChange",
2723
+ variableType: "boolean"
2724
+ }
2725
+ }
2726
+ },
2727
+ overrides
2728
+ );
2729
+ }
2730
+
2606
2731
  function registerAll(loader) {
2607
2732
  registerSelect(loader);
2608
2733
  registerComboBox(loader);
@@ -2619,6 +2744,7 @@ function registerAll(loader) {
2619
2744
  registerRadioGroup(loader);
2620
2745
  registerTextField(loader);
2621
2746
  registerModal(loader);
2747
+ registerTooltip(loader);
2622
2748
  }
2623
2749
 
2624
2750
  export { registerAll };