@plasmicpkgs/react-aria 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/contexts.d.ts +1 -0
  3. package/dist/interaction-variant-utils.d.ts +4 -0
  4. package/dist/react-aria.esm.js +902 -362
  5. package/dist/react-aria.esm.js.map +1 -1
  6. package/dist/react-aria.js +899 -359
  7. package/dist/react-aria.js.map +1 -1
  8. package/dist/registerLabel.d.ts +1 -0
  9. package/dist/registerSlider.d.ts +14 -0
  10. package/dist/registerSliderOutput.d.ts +5 -0
  11. package/dist/registerSliderThumb.d.ts +13 -0
  12. package/dist/registerSliderTrack.d.ts +14 -0
  13. package/package.json +2 -2
  14. package/skinny/ErrorBoundary-c6b111d3.esm.js +20 -0
  15. package/skinny/ErrorBoundary-c6b111d3.esm.js.map +1 -0
  16. package/skinny/ErrorBoundary-e9b86248.cjs.js +22 -0
  17. package/skinny/ErrorBoundary-e9b86248.cjs.js.map +1 -0
  18. package/skinny/{contexts-49f6c298.esm.js → contexts-8a2a183b.esm.js} +3 -2
  19. package/skinny/contexts-8a2a183b.esm.js.map +1 -0
  20. package/skinny/{contexts-3e42cdf9.cjs.js → contexts-dd0ce341.cjs.js} +3 -1
  21. package/skinny/contexts-dd0ce341.cjs.js.map +1 -0
  22. package/skinny/contexts.d.ts +1 -0
  23. package/skinny/{interaction-variant-utils-0f05190f.cjs.js → interaction-variant-utils-244b74fb.cjs.js} +5 -1
  24. package/skinny/interaction-variant-utils-244b74fb.cjs.js.map +1 -0
  25. package/skinny/{interaction-variant-utils-909267e5.esm.js → interaction-variant-utils-c44a9d56.esm.js} +5 -1
  26. package/skinny/interaction-variant-utils-c44a9d56.esm.js.map +1 -0
  27. package/skinny/interaction-variant-utils.d.ts +4 -0
  28. package/skinny/registerButton.cjs.js +1 -1
  29. package/skinny/registerButton.esm.js +1 -1
  30. package/skinny/registerCheckbox.cjs.js +1 -1
  31. package/skinny/registerCheckbox.esm.js +1 -1
  32. package/skinny/registerCheckboxGroup.cjs.js +1 -1
  33. package/skinny/registerCheckboxGroup.esm.js +1 -1
  34. package/skinny/registerComboBox.cjs.js +1 -1
  35. package/skinny/registerComboBox.esm.js +1 -1
  36. package/skinny/registerHeader.cjs.js +1 -1
  37. package/skinny/registerHeader.esm.js +1 -1
  38. package/skinny/registerInput.cjs.js +1 -1
  39. package/skinny/registerInput.esm.js +1 -1
  40. package/skinny/registerLabel.cjs.js +6 -1
  41. package/skinny/registerLabel.cjs.js.map +1 -1
  42. package/skinny/registerLabel.d.ts +1 -0
  43. package/skinny/registerLabel.esm.js +7 -3
  44. package/skinny/registerLabel.esm.js.map +1 -1
  45. package/skinny/registerListBox.cjs.js +1 -1
  46. package/skinny/registerListBox.esm.js +1 -1
  47. package/skinny/registerListBoxItem.cjs.js +1 -1
  48. package/skinny/registerListBoxItem.esm.js +1 -1
  49. package/skinny/registerPopover.cjs.js +1 -1
  50. package/skinny/registerPopover.esm.js +1 -1
  51. package/skinny/registerRadio.cjs.js +3 -18
  52. package/skinny/registerRadio.cjs.js.map +1 -1
  53. package/skinny/registerRadio.esm.js +3 -18
  54. package/skinny/registerRadio.esm.js.map +1 -1
  55. package/skinny/registerRadioGroup.cjs.js +2 -1
  56. package/skinny/registerRadioGroup.cjs.js.map +1 -1
  57. package/skinny/registerRadioGroup.esm.js +2 -1
  58. package/skinny/registerRadioGroup.esm.js.map +1 -1
  59. package/skinny/registerSection.cjs.js +1 -1
  60. package/skinny/registerSection.esm.js +1 -1
  61. package/skinny/registerSelect.cjs.js +1 -1
  62. package/skinny/registerSelect.esm.js +1 -1
  63. package/skinny/registerSlider-73e80194.cjs.js +437 -0
  64. package/skinny/registerSlider-73e80194.cjs.js.map +1 -0
  65. package/skinny/registerSlider-efdba013.esm.js +425 -0
  66. package/skinny/registerSlider-efdba013.esm.js.map +1 -0
  67. package/skinny/registerSlider.cjs.js +23 -0
  68. package/skinny/registerSlider.cjs.js.map +1 -0
  69. package/skinny/registerSlider.d.ts +14 -0
  70. package/skinny/registerSlider.esm.js +15 -0
  71. package/skinny/registerSlider.esm.js.map +1 -0
  72. package/skinny/registerSliderOutput.cjs.js +30 -0
  73. package/skinny/registerSliderOutput.cjs.js.map +1 -0
  74. package/skinny/registerSliderOutput.d.ts +5 -0
  75. package/skinny/registerSliderOutput.esm.js +26 -0
  76. package/skinny/registerSliderOutput.esm.js.map +1 -0
  77. package/skinny/registerSliderThumb.cjs.js +119 -0
  78. package/skinny/registerSliderThumb.cjs.js.map +1 -0
  79. package/skinny/registerSliderThumb.d.ts +13 -0
  80. package/skinny/registerSliderThumb.esm.js +111 -0
  81. package/skinny/registerSliderThumb.esm.js.map +1 -0
  82. package/skinny/registerSliderTrack.cjs.js +23 -0
  83. package/skinny/registerSliderTrack.cjs.js.map +1 -0
  84. package/skinny/registerSliderTrack.d.ts +14 -0
  85. package/skinny/registerSliderTrack.esm.js +15 -0
  86. package/skinny/registerSliderTrack.esm.js.map +1 -0
  87. package/skinny/registerSwitch.cjs.js +1 -1
  88. package/skinny/registerSwitch.esm.js +1 -1
  89. package/skinny/registerTextArea.cjs.js +1 -1
  90. package/skinny/registerTextArea.esm.js +1 -1
  91. package/skinny/registerTextField.cjs.js +1 -1
  92. package/skinny/registerTextField.esm.js +1 -1
  93. package/skinny/contexts-3e42cdf9.cjs.js.map +0 -1
  94. package/skinny/contexts-49f6c298.esm.js.map +0 -1
  95. package/skinny/interaction-variant-utils-0f05190f.cjs.js.map +0 -1
  96. package/skinny/interaction-variant-utils-909267e5.esm.js.map +0 -1
@@ -82,6 +82,10 @@ const ARIA_COMPONENTS_INTERACTION_VARIANTS = {
82
82
  focusVisible: {
83
83
  cssSelector: "[data-focus-visible]",
84
84
  displayName: "Focus Visible"
85
+ },
86
+ dragging: {
87
+ cssSelector: "[data-dragging]",
88
+ displayName: "Dragging"
85
89
  }
86
90
  };
87
91
  function ChangesObserver({
@@ -115,29 +119,29 @@ function pickAriaComponentVariants(keys) {
115
119
  };
116
120
  }
117
121
 
118
- var __defProp$m = Object.defineProperty;
119
- var __defProps$c = Object.defineProperties;
120
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
121
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
122
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
123
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
124
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
125
- var __spreadValues$m = (a, b) => {
122
+ var __defProp$p = Object.defineProperty;
123
+ var __defProps$d = Object.defineProperties;
124
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
125
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
126
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
127
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
128
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
129
+ var __spreadValues$p = (a, b) => {
126
130
  for (var prop in b || (b = {}))
127
- if (__hasOwnProp$m.call(b, prop))
128
- __defNormalProp$m(a, prop, b[prop]);
129
- if (__getOwnPropSymbols$m)
130
- for (var prop of __getOwnPropSymbols$m(b)) {
131
- if (__propIsEnum$m.call(b, prop))
132
- __defNormalProp$m(a, prop, b[prop]);
131
+ if (__hasOwnProp$p.call(b, prop))
132
+ __defNormalProp$p(a, prop, b[prop]);
133
+ if (__getOwnPropSymbols$p)
134
+ for (var prop of __getOwnPropSymbols$p(b)) {
135
+ if (__propIsEnum$p.call(b, prop))
136
+ __defNormalProp$p(a, prop, b[prop]);
133
137
  }
134
138
  return a;
135
139
  };
136
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
140
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
137
141
  function registerComponentHelper(loader, component, meta, overrides) {
138
142
  if (overrides) {
139
- meta = __spreadProps$c(__spreadValues$m(__spreadValues$m({}, meta), overrides), {
140
- props: __spreadValues$m(__spreadValues$m({}, meta.props), overrides.props)
143
+ meta = __spreadProps$d(__spreadValues$p(__spreadValues$p({}, meta), overrides), {
144
+ props: __spreadValues$p(__spreadValues$p({}, meta.props), overrides.props)
141
145
  });
142
146
  if (overrides.parentComponentName) {
143
147
  meta.name = makeChildComponentName(
@@ -173,33 +177,33 @@ function withoutNils(array) {
173
177
  return array.filter((x) => x != null);
174
178
  }
175
179
 
176
- var __defProp$l = Object.defineProperty;
177
- var __defProps$b = Object.defineProperties;
178
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
179
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
180
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
181
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
182
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
183
- var __spreadValues$l = (a, b) => {
180
+ var __defProp$o = Object.defineProperty;
181
+ var __defProps$c = Object.defineProperties;
182
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
183
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
184
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
185
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
186
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
187
+ var __spreadValues$o = (a, b) => {
184
188
  for (var prop in b || (b = {}))
185
- if (__hasOwnProp$l.call(b, prop))
186
- __defNormalProp$l(a, prop, b[prop]);
187
- if (__getOwnPropSymbols$l)
188
- for (var prop of __getOwnPropSymbols$l(b)) {
189
- if (__propIsEnum$l.call(b, prop))
190
- __defNormalProp$l(a, prop, b[prop]);
189
+ if (__hasOwnProp$o.call(b, prop))
190
+ __defNormalProp$o(a, prop, b[prop]);
191
+ if (__getOwnPropSymbols$o)
192
+ for (var prop of __getOwnPropSymbols$o(b)) {
193
+ if (__propIsEnum$o.call(b, prop))
194
+ __defNormalProp$o(a, prop, b[prop]);
191
195
  }
192
196
  return a;
193
197
  };
194
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
195
- var __objRest$e = (source, exclude) => {
198
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
199
+ var __objRest$h = (source, exclude) => {
196
200
  var target = {};
197
201
  for (var prop in source)
198
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
202
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
199
203
  target[prop] = source[prop];
200
- if (source != null && __getOwnPropSymbols$l)
201
- for (var prop of __getOwnPropSymbols$l(source)) {
202
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
204
+ if (source != null && __getOwnPropSymbols$o)
205
+ for (var prop of __getOwnPropSymbols$o(source)) {
206
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
203
207
  target[prop] = source[prop];
204
208
  }
205
209
  return target;
@@ -210,7 +214,7 @@ const BUTTON_INTERACTION_VARIANTS = [
210
214
  "focused",
211
215
  "focusVisible"
212
216
  ];
213
- const { interactionVariants: interactionVariants$5, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
217
+ const { interactionVariants: interactionVariants$7, withObservedValues: withObservedValues$5 } = pickAriaComponentVariants(
214
218
  BUTTON_INTERACTION_VARIANTS
215
219
  );
216
220
  function BaseButton(props) {
@@ -219,14 +223,14 @@ function BaseButton(props) {
219
223
  resetsForm,
220
224
  children,
221
225
  updateInteractionVariant
222
- } = _a, rest = __objRest$e(_a, [
226
+ } = _a, rest = __objRest$h(_a, [
223
227
  "submitsForm",
224
228
  "resetsForm",
225
229
  "children",
226
230
  "updateInteractionVariant"
227
231
  ]);
228
232
  const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
229
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$l({ type }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible }) => withObservedValues$3(
233
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Button, __spreadValues$o({ type }, rest), ({ isHovered, isPressed, isFocused, isFocusVisible }) => withObservedValues$5(
230
234
  children,
231
235
  {
232
236
  hovered: isHovered,
@@ -246,8 +250,8 @@ function registerButton(loader, overrides) {
246
250
  displayName: "Aria Button",
247
251
  importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
248
252
  importName: "BaseButton",
249
- interactionVariants: interactionVariants$5,
250
- props: __spreadProps$b(__spreadValues$l({}, getCommonInputProps("button", [
253
+ interactionVariants: interactionVariants$7,
254
+ props: __spreadProps$c(__spreadValues$o({}, getCommonInputProps("button", [
251
255
  "isDisabled",
252
256
  "aria-label",
253
257
  "children"
@@ -279,33 +283,33 @@ function registerButton(loader, overrides) {
279
283
  );
280
284
  }
281
285
 
282
- var __defProp$k = Object.defineProperty;
283
- var __defProps$a = Object.defineProperties;
284
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
285
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
286
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
287
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
288
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
289
- var __spreadValues$k = (a, b) => {
286
+ var __defProp$n = Object.defineProperty;
287
+ var __defProps$b = Object.defineProperties;
288
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
289
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
290
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
291
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
292
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
293
+ var __spreadValues$n = (a, b) => {
290
294
  for (var prop in b || (b = {}))
291
- if (__hasOwnProp$k.call(b, prop))
292
- __defNormalProp$k(a, prop, b[prop]);
293
- if (__getOwnPropSymbols$k)
294
- for (var prop of __getOwnPropSymbols$k(b)) {
295
- if (__propIsEnum$k.call(b, prop))
296
- __defNormalProp$k(a, prop, b[prop]);
295
+ if (__hasOwnProp$n.call(b, prop))
296
+ __defNormalProp$n(a, prop, b[prop]);
297
+ if (__getOwnPropSymbols$n)
298
+ for (var prop of __getOwnPropSymbols$n(b)) {
299
+ if (__propIsEnum$n.call(b, prop))
300
+ __defNormalProp$n(a, prop, b[prop]);
297
301
  }
298
302
  return a;
299
303
  };
300
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
301
- var __objRest$d = (source, exclude) => {
304
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
305
+ var __objRest$g = (source, exclude) => {
302
306
  var target = {};
303
307
  for (var prop in source)
304
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
308
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
305
309
  target[prop] = source[prop];
306
- if (source != null && __getOwnPropSymbols$k)
307
- for (var prop of __getOwnPropSymbols$k(source)) {
308
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
310
+ if (source != null && __getOwnPropSymbols$n)
311
+ for (var prop of __getOwnPropSymbols$n(source)) {
312
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
309
313
  target[prop] = source[prop];
310
314
  }
311
315
  return target;
@@ -316,12 +320,12 @@ const CHECKBOX_INTERACTION_VARIANTS = [
316
320
  "focused",
317
321
  "focusVisible"
318
322
  ];
319
- const { interactionVariants: interactionVariants$4, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(
323
+ const { interactionVariants: interactionVariants$6, withObservedValues: withObservedValues$4 } = pickAriaComponentVariants(
320
324
  CHECKBOX_INTERACTION_VARIANTS
321
325
  );
322
326
  function BaseCheckbox(props) {
323
- const _a = props, { children, updateInteractionVariant } = _a, rest = __objRest$d(_a, ["children", "updateInteractionVariant"]);
324
- return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Checkbox, __spreadValues$k({}, rest), ({ isHovered, isPressed, isFocused, isFocusVisible }) => withObservedValues$2(
327
+ const _a = props, { children, updateInteractionVariant } = _a, rest = __objRest$g(_a, ["children", "updateInteractionVariant"]);
328
+ return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Checkbox, __spreadValues$n({}, rest), ({ isHovered, isPressed, isFocused, isFocusVisible }) => withObservedValues$4(
325
329
  children,
326
330
  {
327
331
  hovered: isHovered,
@@ -341,8 +345,8 @@ function registerCheckbox(loader, overrides) {
341
345
  displayName: "Aria Checkbox",
342
346
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
343
347
  importName: "BaseCheckbox",
344
- interactionVariants: interactionVariants$4,
345
- props: __spreadProps$a(__spreadValues$k({}, getCommonInputProps("checkbox", [
348
+ interactionVariants: interactionVariants$6,
349
+ props: __spreadProps$b(__spreadValues$n({}, getCommonInputProps("checkbox", [
346
350
  "name",
347
351
  "isDisabled",
348
352
  "isReadOnly",
@@ -399,37 +403,37 @@ function registerCheckbox(loader, overrides) {
399
403
  );
400
404
  }
401
405
 
402
- var __defProp$j = Object.defineProperty;
403
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
404
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
405
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
406
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
407
- var __spreadValues$j = (a, b) => {
406
+ var __defProp$m = Object.defineProperty;
407
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
408
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
409
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
410
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
411
+ var __spreadValues$m = (a, b) => {
408
412
  for (var prop in b || (b = {}))
409
- if (__hasOwnProp$j.call(b, prop))
410
- __defNormalProp$j(a, prop, b[prop]);
411
- if (__getOwnPropSymbols$j)
412
- for (var prop of __getOwnPropSymbols$j(b)) {
413
- if (__propIsEnum$j.call(b, prop))
414
- __defNormalProp$j(a, prop, b[prop]);
413
+ if (__hasOwnProp$m.call(b, prop))
414
+ __defNormalProp$m(a, prop, b[prop]);
415
+ if (__getOwnPropSymbols$m)
416
+ for (var prop of __getOwnPropSymbols$m(b)) {
417
+ if (__propIsEnum$m.call(b, prop))
418
+ __defNormalProp$m(a, prop, b[prop]);
415
419
  }
416
420
  return a;
417
421
  };
418
- var __objRest$c = (source, exclude) => {
422
+ var __objRest$f = (source, exclude) => {
419
423
  var target = {};
420
424
  for (var prop in source)
421
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
425
+ if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0)
422
426
  target[prop] = source[prop];
423
- if (source != null && __getOwnPropSymbols$j)
424
- for (var prop of __getOwnPropSymbols$j(source)) {
425
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
427
+ if (source != null && __getOwnPropSymbols$m)
428
+ for (var prop of __getOwnPropSymbols$m(source)) {
429
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop))
426
430
  target[prop] = source[prop];
427
431
  }
428
432
  return target;
429
433
  };
430
434
  function BaseText(_a) {
431
- var _b = _a, { children } = _b, rest = __objRest$c(_b, ["children"]);
432
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadValues$j({}, rest), children);
435
+ var _b = _a, { children } = _b, rest = __objRest$f(_b, ["children"]);
436
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Text, __spreadValues$m({}, rest), children);
433
437
  }
434
438
  function registerText(loader, overrides) {
435
439
  registerComponentHelper(
@@ -454,27 +458,27 @@ function registerText(loader, overrides) {
454
458
  );
455
459
  }
456
460
 
457
- var __defProp$i = Object.defineProperty;
458
- var __defProps$9 = Object.defineProperties;
459
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
460
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
461
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
462
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
463
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
464
- var __spreadValues$i = (a, b) => {
461
+ var __defProp$l = Object.defineProperty;
462
+ var __defProps$a = Object.defineProperties;
463
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
464
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
465
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
466
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
467
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
468
+ var __spreadValues$l = (a, b) => {
465
469
  for (var prop in b || (b = {}))
466
- if (__hasOwnProp$i.call(b, prop))
467
- __defNormalProp$i(a, prop, b[prop]);
468
- if (__getOwnPropSymbols$i)
469
- for (var prop of __getOwnPropSymbols$i(b)) {
470
- if (__propIsEnum$i.call(b, prop))
471
- __defNormalProp$i(a, prop, b[prop]);
470
+ if (__hasOwnProp$l.call(b, prop))
471
+ __defNormalProp$l(a, prop, b[prop]);
472
+ if (__getOwnPropSymbols$l)
473
+ for (var prop of __getOwnPropSymbols$l(b)) {
474
+ if (__propIsEnum$l.call(b, prop))
475
+ __defNormalProp$l(a, prop, b[prop]);
472
476
  }
473
477
  return a;
474
478
  };
475
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
479
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
476
480
  function registerDescription(loader, overrides) {
477
- registerText(loader, __spreadProps$9(__spreadValues$i({}, overrides), {
481
+ registerText(loader, __spreadProps$a(__spreadValues$l({}, overrides), {
478
482
  displayName: "Aria Description",
479
483
  props: {
480
484
  slot: { type: "string", hidden: () => true, defaultValue: "description" }
@@ -482,30 +486,30 @@ function registerDescription(loader, overrides) {
482
486
  }));
483
487
  }
484
488
 
485
- var __defProp$h = Object.defineProperty;
486
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
487
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
488
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
489
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
490
- var __spreadValues$h = (a, b) => {
489
+ var __defProp$k = Object.defineProperty;
490
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
491
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
492
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
493
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
494
+ var __spreadValues$k = (a, b) => {
491
495
  for (var prop in b || (b = {}))
492
- if (__hasOwnProp$h.call(b, prop))
493
- __defNormalProp$h(a, prop, b[prop]);
494
- if (__getOwnPropSymbols$h)
495
- for (var prop of __getOwnPropSymbols$h(b)) {
496
- if (__propIsEnum$h.call(b, prop))
497
- __defNormalProp$h(a, prop, b[prop]);
496
+ if (__hasOwnProp$k.call(b, prop))
497
+ __defNormalProp$k(a, prop, b[prop]);
498
+ if (__getOwnPropSymbols$k)
499
+ for (var prop of __getOwnPropSymbols$k(b)) {
500
+ if (__propIsEnum$k.call(b, prop))
501
+ __defNormalProp$k(a, prop, b[prop]);
498
502
  }
499
503
  return a;
500
504
  };
501
- var __objRest$b = (source, exclude) => {
505
+ var __objRest$e = (source, exclude) => {
502
506
  var target = {};
503
507
  for (var prop in source)
504
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
508
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
505
509
  target[prop] = source[prop];
506
- if (source != null && __getOwnPropSymbols$h)
507
- for (var prop of __getOwnPropSymbols$h(source)) {
508
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
510
+ if (source != null && __getOwnPropSymbols$k)
511
+ for (var prop of __getOwnPropSymbols$k(source)) {
512
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
509
513
  target[prop] = source[prop];
510
514
  }
511
515
  return target;
@@ -522,7 +526,7 @@ function BaseFieldError(_a) {
522
526
  tooShort,
523
527
  typeMismatch,
524
528
  valueMissing
525
- } = _b, rest = __objRest$b(_b, [
529
+ } = _b, rest = __objRest$e(_b, [
526
530
  "badInput",
527
531
  "customError",
528
532
  "patternMismatch",
@@ -534,7 +538,7 @@ function BaseFieldError(_a) {
534
538
  "typeMismatch",
535
539
  "valueMissing"
536
540
  ]);
537
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.FieldError, __spreadValues$h({}, rest), ({ validationDetails, validationErrors }) => {
541
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.FieldError, __spreadValues$k({}, rest), ({ validationDetails, validationErrors }) => {
538
542
  if (validationDetails.badInput && badInput)
539
543
  return badInput;
540
544
  if (validationDetails.customError && customError)
@@ -632,15 +636,19 @@ function registerFieldError(loader, overrides) {
632
636
  }
633
637
 
634
638
  const BaseLabel = reactAriaComponents.Label;
639
+ const LABEL_COMPONENT_NAME = makeComponentName("label");
635
640
  function registerLabel(loader, overrides) {
636
641
  registerComponentHelper(
637
642
  loader,
638
643
  BaseLabel,
639
644
  {
640
- name: makeComponentName("label"),
645
+ name: LABEL_COMPONENT_NAME,
641
646
  displayName: "Aria Label",
642
647
  importPath: "@plasmicpkgs/react-aria/skinny/registerLabel",
643
648
  importName: "BaseLabel",
649
+ defaultStyles: {
650
+ cursor: "pointer"
651
+ },
644
652
  props: {
645
653
  children: {
646
654
  type: "slot"
@@ -652,25 +660,25 @@ function registerLabel(loader, overrides) {
652
660
  );
653
661
  }
654
662
 
655
- var __defProp$g = Object.defineProperty;
656
- var __defProps$8 = Object.defineProperties;
657
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
658
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
659
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
660
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
661
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
662
- var __spreadValues$g = (a, b) => {
663
+ var __defProp$j = Object.defineProperty;
664
+ var __defProps$9 = Object.defineProperties;
665
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
666
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
667
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
668
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
669
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
670
+ var __spreadValues$j = (a, b) => {
663
671
  for (var prop in b || (b = {}))
664
- if (__hasOwnProp$g.call(b, prop))
665
- __defNormalProp$g(a, prop, b[prop]);
666
- if (__getOwnPropSymbols$g)
667
- for (var prop of __getOwnPropSymbols$g(b)) {
668
- if (__propIsEnum$g.call(b, prop))
669
- __defNormalProp$g(a, prop, b[prop]);
672
+ if (__hasOwnProp$j.call(b, prop))
673
+ __defNormalProp$j(a, prop, b[prop]);
674
+ if (__getOwnPropSymbols$j)
675
+ for (var prop of __getOwnPropSymbols$j(b)) {
676
+ if (__propIsEnum$j.call(b, prop))
677
+ __defNormalProp$j(a, prop, b[prop]);
670
678
  }
671
679
  return a;
672
680
  };
673
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
681
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
674
682
  const BaseCheckboxGroup = reactAriaComponents.CheckboxGroup;
675
683
  const componentName$2 = makeComponentName("checkboxGroup");
676
684
  function registerCheckboxGroup(loader, overrides) {
@@ -682,7 +690,7 @@ function registerCheckboxGroup(loader, overrides) {
682
690
  displayName: "Aria Checkbox Group",
683
691
  importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
684
692
  importName: "BaseCheckboxGroup",
685
- props: __spreadProps$8(__spreadValues$g({}, getCommonInputProps("checkbox group", [
693
+ props: __spreadProps$9(__spreadValues$j({}, getCommonInputProps("checkbox group", [
686
694
  "name",
687
695
  "isDisabled",
688
696
  "isReadOnly",
@@ -737,6 +745,7 @@ function registerCheckboxGroup(loader, overrides) {
737
745
  });
738
746
  }
739
747
 
748
+ const PlasmicSliderContext = React__default.default.createContext(void 0);
740
749
  React__default.default.createContext(void 0);
741
750
  const PlasmicListBoxContext = React__default.default.createContext(void 0);
742
751
  const PlasmicPopoverContext = React__default.default.createContext(void 0);
@@ -894,25 +903,25 @@ function makeValuePropType() {
894
903
  return type;
895
904
  }
896
905
 
897
- var __defProp$f = Object.defineProperty;
898
- var __defProps$7 = Object.defineProperties;
899
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
900
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
901
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
902
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
903
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
904
- var __spreadValues$f = (a, b) => {
906
+ var __defProp$i = Object.defineProperty;
907
+ var __defProps$8 = Object.defineProperties;
908
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
909
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
910
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
911
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
912
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
913
+ var __spreadValues$i = (a, b) => {
905
914
  for (var prop in b || (b = {}))
906
- if (__hasOwnProp$f.call(b, prop))
907
- __defNormalProp$f(a, prop, b[prop]);
908
- if (__getOwnPropSymbols$f)
909
- for (var prop of __getOwnPropSymbols$f(b)) {
910
- if (__propIsEnum$f.call(b, prop))
911
- __defNormalProp$f(a, prop, b[prop]);
915
+ if (__hasOwnProp$i.call(b, prop))
916
+ __defNormalProp$i(a, prop, b[prop]);
917
+ if (__getOwnPropSymbols$i)
918
+ for (var prop of __getOwnPropSymbols$i(b)) {
919
+ if (__propIsEnum$i.call(b, prop))
920
+ __defNormalProp$i(a, prop, b[prop]);
912
921
  }
913
922
  return a;
914
923
  };
915
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
924
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
916
925
  function BaseComboBox(props) {
917
926
  const {
918
927
  value,
@@ -945,7 +954,7 @@ function BaseComboBox(props) {
945
954
  return withoutNils(
946
955
  opts.map((op) => {
947
956
  if (op.type === "option-group") {
948
- return __spreadProps$7(__spreadValues$f({}, op), {
957
+ return __spreadProps$8(__spreadValues$i({}, op), {
949
958
  items: op.items ? filterOptions(op.items) : void 0
950
959
  });
951
960
  } else {
@@ -1033,7 +1042,7 @@ function BaseComboBox(props) {
1033
1042
  ]);
1034
1043
  return /* @__PURE__ */ React__default.default.createElement(
1035
1044
  reactAriaComponents.ComboBox,
1036
- __spreadValues$f({
1045
+ __spreadValues$i({
1037
1046
  selectedKey: value,
1038
1047
  onSelectionChange,
1039
1048
  isDisabled,
@@ -1163,37 +1172,37 @@ function registerComboBox(loader) {
1163
1172
  });
1164
1173
  }
1165
1174
 
1166
- var __defProp$e = Object.defineProperty;
1167
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1168
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1169
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1170
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1171
- var __spreadValues$e = (a, b) => {
1175
+ var __defProp$h = Object.defineProperty;
1176
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1177
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1178
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1179
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1180
+ var __spreadValues$h = (a, b) => {
1172
1181
  for (var prop in b || (b = {}))
1173
- if (__hasOwnProp$e.call(b, prop))
1174
- __defNormalProp$e(a, prop, b[prop]);
1175
- if (__getOwnPropSymbols$e)
1176
- for (var prop of __getOwnPropSymbols$e(b)) {
1177
- if (__propIsEnum$e.call(b, prop))
1178
- __defNormalProp$e(a, prop, b[prop]);
1182
+ if (__hasOwnProp$h.call(b, prop))
1183
+ __defNormalProp$h(a, prop, b[prop]);
1184
+ if (__getOwnPropSymbols$h)
1185
+ for (var prop of __getOwnPropSymbols$h(b)) {
1186
+ if (__propIsEnum$h.call(b, prop))
1187
+ __defNormalProp$h(a, prop, b[prop]);
1179
1188
  }
1180
1189
  return a;
1181
1190
  };
1182
- var __objRest$a = (source, exclude) => {
1191
+ var __objRest$d = (source, exclude) => {
1183
1192
  var target = {};
1184
1193
  for (var prop in source)
1185
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
1194
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
1186
1195
  target[prop] = source[prop];
1187
- if (source != null && __getOwnPropSymbols$e)
1188
- for (var prop of __getOwnPropSymbols$e(source)) {
1189
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
1196
+ if (source != null && __getOwnPropSymbols$h)
1197
+ for (var prop of __getOwnPropSymbols$h(source)) {
1198
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
1190
1199
  target[prop] = source[prop];
1191
1200
  }
1192
1201
  return target;
1193
1202
  };
1194
1203
  function BaseDialogTrigger(props) {
1195
- const _a = props, { trigger, dialog } = _a, rest = __objRest$a(_a, ["trigger", "dialog"]);
1196
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.DialogTrigger, __spreadValues$e({}, rest), trigger, dialog);
1204
+ const _a = props, { trigger, dialog } = _a, rest = __objRest$d(_a, ["trigger", "dialog"]);
1205
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.DialogTrigger, __spreadValues$h({}, rest), trigger, dialog);
1197
1206
  }
1198
1207
  function registerDialogTrigger(loader, overrides) {
1199
1208
  registerComponentHelper(
@@ -1237,39 +1246,39 @@ function registerDialogTrigger(loader, overrides) {
1237
1246
  );
1238
1247
  }
1239
1248
 
1240
- var __defProp$d = Object.defineProperty;
1241
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1242
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1243
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1244
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1245
- var __spreadValues$d = (a, b) => {
1249
+ var __defProp$g = Object.defineProperty;
1250
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1251
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1252
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1253
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1254
+ var __spreadValues$g = (a, b) => {
1246
1255
  for (var prop in b || (b = {}))
1247
- if (__hasOwnProp$d.call(b, prop))
1248
- __defNormalProp$d(a, prop, b[prop]);
1249
- if (__getOwnPropSymbols$d)
1250
- for (var prop of __getOwnPropSymbols$d(b)) {
1251
- if (__propIsEnum$d.call(b, prop))
1252
- __defNormalProp$d(a, prop, b[prop]);
1256
+ if (__hasOwnProp$g.call(b, prop))
1257
+ __defNormalProp$g(a, prop, b[prop]);
1258
+ if (__getOwnPropSymbols$g)
1259
+ for (var prop of __getOwnPropSymbols$g(b)) {
1260
+ if (__propIsEnum$g.call(b, prop))
1261
+ __defNormalProp$g(a, prop, b[prop]);
1253
1262
  }
1254
1263
  return a;
1255
1264
  };
1256
- var __objRest$9 = (source, exclude) => {
1265
+ var __objRest$c = (source, exclude) => {
1257
1266
  var target = {};
1258
1267
  for (var prop in source)
1259
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
1268
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
1260
1269
  target[prop] = source[prop];
1261
- if (source != null && __getOwnPropSymbols$d)
1262
- for (var prop of __getOwnPropSymbols$d(source)) {
1263
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
1270
+ if (source != null && __getOwnPropSymbols$g)
1271
+ for (var prop of __getOwnPropSymbols$g(source)) {
1272
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
1264
1273
  target[prop] = source[prop];
1265
1274
  }
1266
1275
  return target;
1267
1276
  };
1268
1277
  function BaseForm(props) {
1269
- const _a = props, { onSubmit, children } = _a, rest = __objRest$9(_a, ["onSubmit", "children"]);
1278
+ const _a = props, { onSubmit, children } = _a, rest = __objRest$c(_a, ["onSubmit", "children"]);
1270
1279
  return /* @__PURE__ */ React__default.default.createElement(
1271
1280
  reactAriaComponents.Form,
1272
- __spreadValues$d({
1281
+ __spreadValues$g({
1273
1282
  onSubmit: (e) => {
1274
1283
  e.preventDefault();
1275
1284
  const formData = new FormData(e.currentTarget);
@@ -1319,43 +1328,43 @@ function registerForm(loader, overrides) {
1319
1328
  );
1320
1329
  }
1321
1330
 
1322
- var __defProp$c = Object.defineProperty;
1323
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1324
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1325
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1326
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1327
- var __spreadValues$c = (a, b) => {
1331
+ var __defProp$f = Object.defineProperty;
1332
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1333
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1334
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1335
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1336
+ var __spreadValues$f = (a, b) => {
1328
1337
  for (var prop in b || (b = {}))
1329
- if (__hasOwnProp$c.call(b, prop))
1330
- __defNormalProp$c(a, prop, b[prop]);
1331
- if (__getOwnPropSymbols$c)
1332
- for (var prop of __getOwnPropSymbols$c(b)) {
1333
- if (__propIsEnum$c.call(b, prop))
1334
- __defNormalProp$c(a, prop, b[prop]);
1338
+ if (__hasOwnProp$f.call(b, prop))
1339
+ __defNormalProp$f(a, prop, b[prop]);
1340
+ if (__getOwnPropSymbols$f)
1341
+ for (var prop of __getOwnPropSymbols$f(b)) {
1342
+ if (__propIsEnum$f.call(b, prop))
1343
+ __defNormalProp$f(a, prop, b[prop]);
1335
1344
  }
1336
1345
  return a;
1337
1346
  };
1338
- var __objRest$8 = (source, exclude) => {
1347
+ var __objRest$b = (source, exclude) => {
1339
1348
  var target = {};
1340
1349
  for (var prop in source)
1341
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
1350
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
1342
1351
  target[prop] = source[prop];
1343
- if (source != null && __getOwnPropSymbols$c)
1344
- for (var prop of __getOwnPropSymbols$c(source)) {
1345
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
1352
+ if (source != null && __getOwnPropSymbols$f)
1353
+ for (var prop of __getOwnPropSymbols$f(source)) {
1354
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
1346
1355
  target[prop] = source[prop];
1347
1356
  }
1348
1357
  return target;
1349
1358
  };
1350
1359
  const INPUT_INTERACTION_VARIANTS = ["focused", "hovered"];
1351
- const { interactionVariants: interactionVariants$3 } = pickAriaComponentVariants(
1360
+ const { interactionVariants: interactionVariants$5 } = pickAriaComponentVariants(
1352
1361
  INPUT_INTERACTION_VARIANTS
1353
1362
  );
1354
1363
  function BaseInput(props) {
1355
- const _a = props, { updateInteractionVariant } = _a, rest = __objRest$8(_a, ["updateInteractionVariant"]);
1364
+ const _a = props, { updateInteractionVariant } = _a, rest = __objRest$b(_a, ["updateInteractionVariant"]);
1356
1365
  return /* @__PURE__ */ React__default.default.createElement(
1357
1366
  reactAriaComponents.Input,
1358
- __spreadValues$c({
1367
+ __spreadValues$f({
1359
1368
  onHoverChange: (isHovered) => {
1360
1369
  updateInteractionVariant == null ? void 0 : updateInteractionVariant({
1361
1370
  hovered: isHovered
@@ -1383,7 +1392,7 @@ function registerInput(loader, overrides) {
1383
1392
  displayName: "Aria Input",
1384
1393
  importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
1385
1394
  importName: "BaseInput",
1386
- interactionVariants: interactionVariants$3,
1395
+ interactionVariants: interactionVariants$5,
1387
1396
  props: {
1388
1397
  placeholder: {
1389
1398
  type: "string"
@@ -1395,26 +1404,26 @@ function registerInput(loader, overrides) {
1395
1404
  );
1396
1405
  }
1397
1406
 
1398
- var __defProp$b = Object.defineProperty;
1399
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1400
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1401
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1402
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1403
- var __spreadValues$b = (a, b) => {
1407
+ var __defProp$e = Object.defineProperty;
1408
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1409
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1410
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1411
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1412
+ var __spreadValues$e = (a, b) => {
1404
1413
  for (var prop in b || (b = {}))
1405
- if (__hasOwnProp$b.call(b, prop))
1406
- __defNormalProp$b(a, prop, b[prop]);
1407
- if (__getOwnPropSymbols$b)
1408
- for (var prop of __getOwnPropSymbols$b(b)) {
1409
- if (__propIsEnum$b.call(b, prop))
1410
- __defNormalProp$b(a, prop, b[prop]);
1414
+ if (__hasOwnProp$e.call(b, prop))
1415
+ __defNormalProp$e(a, prop, b[prop]);
1416
+ if (__getOwnPropSymbols$e)
1417
+ for (var prop of __getOwnPropSymbols$e(b)) {
1418
+ if (__propIsEnum$e.call(b, prop))
1419
+ __defNormalProp$e(a, prop, b[prop]);
1411
1420
  }
1412
1421
  return a;
1413
1422
  };
1414
1423
  function BaseListBoxItem(props) {
1415
1424
  const contextProps = React__default.default.useContext(PlasmicItemContext);
1416
1425
  const mergedProps = utils.mergeProps(contextProps, props);
1417
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ListBoxItem, __spreadValues$b({}, mergedProps), mergedProps.children);
1426
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ListBoxItem, __spreadValues$e({}, mergedProps), mergedProps.children);
1418
1427
  }
1419
1428
  function registerListBoxItem(loader, overrides) {
1420
1429
  registerComponentHelper(
@@ -1435,33 +1444,33 @@ function registerListBoxItem(loader, overrides) {
1435
1444
  );
1436
1445
  }
1437
1446
 
1438
- var __defProp$a = Object.defineProperty;
1439
- var __defProps$6 = Object.defineProperties;
1440
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
1441
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
1442
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
1443
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
1444
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1445
- var __spreadValues$a = (a, b) => {
1447
+ var __defProp$d = Object.defineProperty;
1448
+ var __defProps$7 = Object.defineProperties;
1449
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
1450
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
1451
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
1452
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
1453
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1454
+ var __spreadValues$d = (a, b) => {
1446
1455
  for (var prop in b || (b = {}))
1447
- if (__hasOwnProp$a.call(b, prop))
1448
- __defNormalProp$a(a, prop, b[prop]);
1449
- if (__getOwnPropSymbols$a)
1450
- for (var prop of __getOwnPropSymbols$a(b)) {
1451
- if (__propIsEnum$a.call(b, prop))
1452
- __defNormalProp$a(a, prop, b[prop]);
1456
+ if (__hasOwnProp$d.call(b, prop))
1457
+ __defNormalProp$d(a, prop, b[prop]);
1458
+ if (__getOwnPropSymbols$d)
1459
+ for (var prop of __getOwnPropSymbols$d(b)) {
1460
+ if (__propIsEnum$d.call(b, prop))
1461
+ __defNormalProp$d(a, prop, b[prop]);
1453
1462
  }
1454
1463
  return a;
1455
1464
  };
1456
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
1457
- var __objRest$7 = (source, exclude) => {
1465
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
1466
+ var __objRest$a = (source, exclude) => {
1458
1467
  var target = {};
1459
1468
  for (var prop in source)
1460
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
1469
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
1461
1470
  target[prop] = source[prop];
1462
- if (source != null && __getOwnPropSymbols$a)
1463
- for (var prop of __getOwnPropSymbols$a(source)) {
1464
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
1471
+ if (source != null && __getOwnPropSymbols$d)
1472
+ for (var prop of __getOwnPropSymbols$d(source)) {
1473
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
1465
1474
  target[prop] = source[prop];
1466
1475
  }
1467
1476
  return target;
@@ -1470,17 +1479,17 @@ function BaseListBox(props) {
1470
1479
  var _c;
1471
1480
  const contextProps = React__default.default.useContext(PlasmicListBoxContext);
1472
1481
  const isStandalone = !contextProps;
1473
- const _a = props, rest = __objRest$7(_a, ["options"]);
1482
+ const _a = props, rest = __objRest$a(_a, ["options"]);
1474
1483
  const { options } = useStrictOptions(props);
1475
1484
  const _b = utils.mergeProps(
1476
1485
  contextProps,
1477
1486
  rest,
1478
1487
  isStandalone ? { items: options } : {}
1479
- ), { renderItem, renderSection } = _b, mergedProps = __objRest$7(_b, ["renderItem", "renderSection"]);
1488
+ ), { renderItem, renderSection } = _b, mergedProps = __objRest$a(_b, ["renderItem", "renderSection"]);
1480
1489
  (_c = props.setControlContextData) == null ? void 0 : _c.call(props, {
1481
1490
  isStandalone
1482
1491
  });
1483
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ListBox, __spreadValues$a({}, mergedProps), (item) => {
1492
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.ListBox, __spreadValues$d({}, mergedProps), (item) => {
1484
1493
  var _a2;
1485
1494
  if (item.type === "option-group") {
1486
1495
  return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
@@ -1509,7 +1518,7 @@ function registerListBox(loader, overrides) {
1509
1518
  importPath: "@plasmicpkgs/react-aria/skinny/registerListBox",
1510
1519
  importName: "BaseListBox",
1511
1520
  props: {
1512
- options: __spreadProps$6(__spreadValues$a({}, makeOptionsPropType()), {
1521
+ options: __spreadProps$7(__spreadValues$d({}, makeOptionsPropType()), {
1513
1522
  displayName: "Items",
1514
1523
  hidden: (_ps, ctx) => !(ctx == null ? void 0 : ctx.isStandalone)
1515
1524
  }),
@@ -1532,33 +1541,33 @@ function registerListBox(loader, overrides) {
1532
1541
  });
1533
1542
  }
1534
1543
 
1535
- var __defProp$9 = Object.defineProperty;
1536
- var __defProps$5 = Object.defineProperties;
1537
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
1538
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
1539
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
1540
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
1541
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1542
- var __spreadValues$9 = (a, b) => {
1544
+ var __defProp$c = Object.defineProperty;
1545
+ var __defProps$6 = Object.defineProperties;
1546
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
1547
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1548
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1549
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1550
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1551
+ var __spreadValues$c = (a, b) => {
1543
1552
  for (var prop in b || (b = {}))
1544
- if (__hasOwnProp$9.call(b, prop))
1545
- __defNormalProp$9(a, prop, b[prop]);
1546
- if (__getOwnPropSymbols$9)
1547
- for (var prop of __getOwnPropSymbols$9(b)) {
1548
- if (__propIsEnum$9.call(b, prop))
1549
- __defNormalProp$9(a, prop, b[prop]);
1553
+ if (__hasOwnProp$c.call(b, prop))
1554
+ __defNormalProp$c(a, prop, b[prop]);
1555
+ if (__getOwnPropSymbols$c)
1556
+ for (var prop of __getOwnPropSymbols$c(b)) {
1557
+ if (__propIsEnum$c.call(b, prop))
1558
+ __defNormalProp$c(a, prop, b[prop]);
1550
1559
  }
1551
1560
  return a;
1552
1561
  };
1553
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
1554
- var __objRest$6 = (source, exclude) => {
1562
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
1563
+ var __objRest$9 = (source, exclude) => {
1555
1564
  var target = {};
1556
1565
  for (var prop in source)
1557
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
1566
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
1558
1567
  target[prop] = source[prop];
1559
- if (source != null && __getOwnPropSymbols$9)
1560
- for (var prop of __getOwnPropSymbols$9(source)) {
1561
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
1568
+ if (source != null && __getOwnPropSymbols$c)
1569
+ for (var prop of __getOwnPropSymbols$c(source)) {
1570
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
1562
1571
  target[prop] = source[prop];
1563
1572
  }
1564
1573
  return target;
@@ -1571,7 +1580,7 @@ const BaseModal = React.forwardRef(
1571
1580
  modalOverlayClass,
1572
1581
  onOpenChange,
1573
1582
  className
1574
- } = _a, rest = __objRest$6(_a, [
1583
+ } = _a, rest = __objRest$9(_a, [
1575
1584
  "children",
1576
1585
  "heading",
1577
1586
  "modalOverlayClass",
@@ -1590,7 +1599,7 @@ const BaseModal = React.forwardRef(
1590
1599
  const body = /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, heading && /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Heading, { slot: "title" }, heading), children);
1591
1600
  return /* @__PURE__ */ React__default.default.createElement(
1592
1601
  reactAriaComponents.ModalOverlay,
1593
- __spreadProps$5(__spreadValues$9({}, rest), {
1602
+ __spreadProps$6(__spreadValues$c({}, rest), {
1594
1603
  className: modalOverlayClass,
1595
1604
  onOpenChange
1596
1605
  }),
@@ -1662,36 +1671,36 @@ function registerModal(loader, overrides) {
1662
1671
  );
1663
1672
  }
1664
1673
 
1665
- var __defProp$8 = Object.defineProperty;
1666
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
1667
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
1668
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
1669
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1670
- var __spreadValues$8 = (a, b) => {
1674
+ var __defProp$b = Object.defineProperty;
1675
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1676
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1677
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1678
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1679
+ var __spreadValues$b = (a, b) => {
1671
1680
  for (var prop in b || (b = {}))
1672
- if (__hasOwnProp$8.call(b, prop))
1673
- __defNormalProp$8(a, prop, b[prop]);
1674
- if (__getOwnPropSymbols$8)
1675
- for (var prop of __getOwnPropSymbols$8(b)) {
1676
- if (__propIsEnum$8.call(b, prop))
1677
- __defNormalProp$8(a, prop, b[prop]);
1681
+ if (__hasOwnProp$b.call(b, prop))
1682
+ __defNormalProp$b(a, prop, b[prop]);
1683
+ if (__getOwnPropSymbols$b)
1684
+ for (var prop of __getOwnPropSymbols$b(b)) {
1685
+ if (__propIsEnum$b.call(b, prop))
1686
+ __defNormalProp$b(a, prop, b[prop]);
1678
1687
  }
1679
1688
  return a;
1680
1689
  };
1681
- var __objRest$5 = (source, exclude) => {
1690
+ var __objRest$8 = (source, exclude) => {
1682
1691
  var target = {};
1683
1692
  for (var prop in source)
1684
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
1693
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
1685
1694
  target[prop] = source[prop];
1686
- if (source != null && __getOwnPropSymbols$8)
1687
- for (var prop of __getOwnPropSymbols$8(source)) {
1688
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
1695
+ if (source != null && __getOwnPropSymbols$b)
1696
+ for (var prop of __getOwnPropSymbols$b(source)) {
1697
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
1689
1698
  target[prop] = source[prop];
1690
1699
  }
1691
1700
  return target;
1692
1701
  };
1693
1702
  function BasePopover(props) {
1694
- const _a = props, { resetClassName } = _a, restProps = __objRest$5(_a, ["resetClassName"]);
1703
+ const _a = props, { resetClassName } = _a, restProps = __objRest$8(_a, ["resetClassName"]);
1695
1704
  const isStandalone = !React__default.default.useContext(reactAriaComponents.PopoverContext);
1696
1705
  const contextProps = React__default.default.useContext(PlasmicPopoverContext);
1697
1706
  const mergedProps = utils.mergeProps(contextProps, restProps, {
@@ -1703,7 +1712,7 @@ function BasePopover(props) {
1703
1712
  isNonModal: true,
1704
1713
  isOpen: true
1705
1714
  } : {};
1706
- return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isStandalone && /* @__PURE__ */ React__default.default.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Popover, __spreadValues$8(__spreadValues$8({}, mergedProps), standaloneProps)));
1715
+ return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, isStandalone && /* @__PURE__ */ React__default.default.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Popover, __spreadValues$b(__spreadValues$b({}, mergedProps), standaloneProps)));
1707
1716
  }
1708
1717
  function registerPopover(loader, overrides) {
1709
1718
  registerComponentHelper(
@@ -1762,33 +1771,33 @@ class ErrorBoundary extends React.Component {
1762
1771
  }
1763
1772
  }
1764
1773
 
1765
- var __defProp$7 = Object.defineProperty;
1766
- var __defProps$4 = Object.defineProperties;
1767
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
1768
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
1769
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
1770
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
1771
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1772
- var __spreadValues$7 = (a, b) => {
1774
+ var __defProp$a = Object.defineProperty;
1775
+ var __defProps$5 = Object.defineProperties;
1776
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
1777
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
1778
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
1779
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
1780
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1781
+ var __spreadValues$a = (a, b) => {
1773
1782
  for (var prop in b || (b = {}))
1774
- if (__hasOwnProp$7.call(b, prop))
1775
- __defNormalProp$7(a, prop, b[prop]);
1776
- if (__getOwnPropSymbols$7)
1777
- for (var prop of __getOwnPropSymbols$7(b)) {
1778
- if (__propIsEnum$7.call(b, prop))
1779
- __defNormalProp$7(a, prop, b[prop]);
1783
+ if (__hasOwnProp$a.call(b, prop))
1784
+ __defNormalProp$a(a, prop, b[prop]);
1785
+ if (__getOwnPropSymbols$a)
1786
+ for (var prop of __getOwnPropSymbols$a(b)) {
1787
+ if (__propIsEnum$a.call(b, prop))
1788
+ __defNormalProp$a(a, prop, b[prop]);
1780
1789
  }
1781
1790
  return a;
1782
1791
  };
1783
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
1784
- var __objRest$4 = (source, exclude) => {
1792
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
1793
+ var __objRest$7 = (source, exclude) => {
1785
1794
  var target = {};
1786
1795
  for (var prop in source)
1787
- if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
1796
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
1788
1797
  target[prop] = source[prop];
1789
- if (source != null && __getOwnPropSymbols$7)
1790
- for (var prop of __getOwnPropSymbols$7(source)) {
1791
- if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
1798
+ if (source != null && __getOwnPropSymbols$a)
1799
+ for (var prop of __getOwnPropSymbols$a(source)) {
1800
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
1792
1801
  target[prop] = source[prop];
1793
1802
  }
1794
1803
  return target;
@@ -1799,12 +1808,12 @@ const RADIO_INTERACTION_VARIANTS = [
1799
1808
  "focused",
1800
1809
  "focusVisible"
1801
1810
  ];
1802
- const { interactionVariants: interactionVariants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(
1811
+ const { interactionVariants: interactionVariants$4, withObservedValues: withObservedValues$3 } = pickAriaComponentVariants(
1803
1812
  RADIO_INTERACTION_VARIANTS
1804
1813
  );
1805
1814
  function BaseRadio(props) {
1806
- const _a = props, { children, updateInteractionVariant } = _a, rest = __objRest$4(_a, ["children", "updateInteractionVariant"]);
1807
- const radio = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Radio, __spreadValues$7({}, rest), ({ isHovered, isPressed, isFocused, isFocusVisible }) => withObservedValues$1(
1815
+ const _a = props, { children, updateInteractionVariant } = _a, rest = __objRest$7(_a, ["children", "updateInteractionVariant"]);
1816
+ const radio = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Radio, __spreadValues$a({}, rest), ({ isHovered, isPressed, isFocused, isFocusVisible }) => withObservedValues$3(
1808
1817
  children,
1809
1818
  {
1810
1819
  hovered: isHovered,
@@ -1825,8 +1834,8 @@ function registerRadio(loader, overrides) {
1825
1834
  displayName: "Aria Radio",
1826
1835
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
1827
1836
  importName: "BaseRadio",
1828
- interactionVariants: interactionVariants$2,
1829
- props: __spreadProps$4(__spreadValues$7({}, getCommonInputProps("radio", [
1837
+ interactionVariants: interactionVariants$4,
1838
+ props: __spreadProps$5(__spreadValues$a({}, getCommonInputProps("radio", [
1830
1839
  "isDisabled",
1831
1840
  "autoFocus",
1832
1841
  "aria-label",
@@ -1854,25 +1863,25 @@ function registerRadio(loader, overrides) {
1854
1863
  );
1855
1864
  }
1856
1865
 
1857
- var __defProp$6 = Object.defineProperty;
1858
- var __defProps$3 = Object.defineProperties;
1859
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
1860
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
1861
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
1862
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
1863
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1864
- var __spreadValues$6 = (a, b) => {
1866
+ var __defProp$9 = Object.defineProperty;
1867
+ var __defProps$4 = Object.defineProperties;
1868
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
1869
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
1870
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
1871
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
1872
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1873
+ var __spreadValues$9 = (a, b) => {
1865
1874
  for (var prop in b || (b = {}))
1866
- if (__hasOwnProp$6.call(b, prop))
1867
- __defNormalProp$6(a, prop, b[prop]);
1868
- if (__getOwnPropSymbols$6)
1869
- for (var prop of __getOwnPropSymbols$6(b)) {
1870
- if (__propIsEnum$6.call(b, prop))
1871
- __defNormalProp$6(a, prop, b[prop]);
1875
+ if (__hasOwnProp$9.call(b, prop))
1876
+ __defNormalProp$9(a, prop, b[prop]);
1877
+ if (__getOwnPropSymbols$9)
1878
+ for (var prop of __getOwnPropSymbols$9(b)) {
1879
+ if (__propIsEnum$9.call(b, prop))
1880
+ __defNormalProp$9(a, prop, b[prop]);
1872
1881
  }
1873
1882
  return a;
1874
1883
  };
1875
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1884
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
1876
1885
  const BaseRadioGroup = reactAriaComponents.RadioGroup;
1877
1886
  const componentName$1 = makeComponentName("radioGroup");
1878
1887
  function registerRadioGroup(loader, overrides) {
@@ -1884,7 +1893,7 @@ function registerRadioGroup(loader, overrides) {
1884
1893
  displayName: "Aria RadioGroup",
1885
1894
  importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
1886
1895
  importName: "BaseRadioGroup",
1887
- props: __spreadProps$3(__spreadValues$6({}, getCommonInputProps("radio group", [
1896
+ props: __spreadProps$4(__spreadValues$9({}, getCommonInputProps("radio group", [
1888
1897
  "name",
1889
1898
  "isDisabled",
1890
1899
  "isReadOnly",
@@ -1939,25 +1948,25 @@ function registerRadioGroup(loader, overrides) {
1939
1948
  });
1940
1949
  }
1941
1950
 
1942
- var __defProp$5 = Object.defineProperty;
1943
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
1944
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
1945
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
1946
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1947
- var __spreadValues$5 = (a, b) => {
1951
+ var __defProp$8 = Object.defineProperty;
1952
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
1953
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
1954
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
1955
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1956
+ var __spreadValues$8 = (a, b) => {
1948
1957
  for (var prop in b || (b = {}))
1949
- if (__hasOwnProp$5.call(b, prop))
1950
- __defNormalProp$5(a, prop, b[prop]);
1951
- if (__getOwnPropSymbols$5)
1952
- for (var prop of __getOwnPropSymbols$5(b)) {
1953
- if (__propIsEnum$5.call(b, prop))
1954
- __defNormalProp$5(a, prop, b[prop]);
1958
+ if (__hasOwnProp$8.call(b, prop))
1959
+ __defNormalProp$8(a, prop, b[prop]);
1960
+ if (__getOwnPropSymbols$8)
1961
+ for (var prop of __getOwnPropSymbols$8(b)) {
1962
+ if (__propIsEnum$8.call(b, prop))
1963
+ __defNormalProp$8(a, prop, b[prop]);
1955
1964
  }
1956
1965
  return a;
1957
1966
  };
1958
1967
  function BaseHeader(props) {
1959
1968
  const contextProps = React__default.default.useContext(PlasmicHeaderContext);
1960
- return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, __spreadValues$5({}, utils.mergeProps(contextProps, props)));
1969
+ return /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Header, __spreadValues$8({}, utils.mergeProps(contextProps, props)));
1961
1970
  }
1962
1971
  function registerHeader(loader, overrides) {
1963
1972
  registerComponentHelper(
@@ -2010,19 +2019,19 @@ function registerSection(loader, overrides) {
2010
2019
  });
2011
2020
  }
2012
2021
 
2013
- var __defProp$4 = Object.defineProperty;
2014
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
2015
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
2016
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
2017
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2018
- var __spreadValues$4 = (a, b) => {
2022
+ var __defProp$7 = Object.defineProperty;
2023
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
2024
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
2025
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
2026
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2027
+ var __spreadValues$7 = (a, b) => {
2019
2028
  for (var prop in b || (b = {}))
2020
- if (__hasOwnProp$4.call(b, prop))
2021
- __defNormalProp$4(a, prop, b[prop]);
2022
- if (__getOwnPropSymbols$4)
2023
- for (var prop of __getOwnPropSymbols$4(b)) {
2024
- if (__propIsEnum$4.call(b, prop))
2025
- __defNormalProp$4(a, prop, b[prop]);
2029
+ if (__hasOwnProp$7.call(b, prop))
2030
+ __defNormalProp$7(a, prop, b[prop]);
2031
+ if (__getOwnPropSymbols$7)
2032
+ for (var prop of __getOwnPropSymbols$7(b)) {
2033
+ if (__propIsEnum$7.call(b, prop))
2034
+ __defNormalProp$7(a, prop, b[prop]);
2026
2035
  }
2027
2036
  return a;
2028
2037
  };
@@ -2046,7 +2055,7 @@ function BaseSelect(props) {
2046
2055
  const disabledKeys = flattenOptions(options).filter((op) => op.isDisabled).map((op) => op.id);
2047
2056
  return /* @__PURE__ */ React__default.default.createElement(
2048
2057
  reactAriaComponents.Select,
2049
- __spreadValues$4(__spreadValues$4({
2058
+ __spreadValues$7(__spreadValues$7({
2050
2059
  placeholder,
2051
2060
  selectedKey: value,
2052
2061
  onSelectionChange: onChange,
@@ -2187,6 +2196,536 @@ function registerSelect(loader) {
2187
2196
  });
2188
2197
  }
2189
2198
 
2199
+ const BaseSliderOutput = reactAriaComponents.SliderOutput;
2200
+ const SLIDER_OUTPUT_COMPONENT_NAME = makeComponentName("sliderOutput");
2201
+ function registerSliderOutput(loader, overrides) {
2202
+ registerComponentHelper(
2203
+ loader,
2204
+ BaseSliderOutput,
2205
+ {
2206
+ name: SLIDER_OUTPUT_COMPONENT_NAME,
2207
+ displayName: "Aria Slider Output",
2208
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSliderOutput",
2209
+ importName: "BaseSliderOutput",
2210
+ props: {
2211
+ children: { type: "slot" }
2212
+ },
2213
+ trapsFocus: true
2214
+ },
2215
+ overrides
2216
+ );
2217
+ }
2218
+
2219
+ var __defProp$6 = Object.defineProperty;
2220
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
2221
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
2222
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
2223
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2224
+ var __spreadValues$6 = (a, b) => {
2225
+ for (var prop in b || (b = {}))
2226
+ if (__hasOwnProp$6.call(b, prop))
2227
+ __defNormalProp$6(a, prop, b[prop]);
2228
+ if (__getOwnPropSymbols$6)
2229
+ for (var prop of __getOwnPropSymbols$6(b)) {
2230
+ if (__propIsEnum$6.call(b, prop))
2231
+ __defNormalProp$6(a, prop, b[prop]);
2232
+ }
2233
+ return a;
2234
+ };
2235
+ var __objRest$6 = (source, exclude) => {
2236
+ var target = {};
2237
+ for (var prop in source)
2238
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
2239
+ target[prop] = source[prop];
2240
+ if (source != null && __getOwnPropSymbols$6)
2241
+ for (var prop of __getOwnPropSymbols$6(source)) {
2242
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
2243
+ target[prop] = source[prop];
2244
+ }
2245
+ return target;
2246
+ };
2247
+ const SLIDER_THUMB_INTERACTION_VARIANTS = [
2248
+ "dragging",
2249
+ "hovered",
2250
+ "focused",
2251
+ "focusVisible"
2252
+ ];
2253
+ const { interactionVariants: interactionVariants$3, withObservedValues: withObservedValues$2 } = pickAriaComponentVariants(
2254
+ SLIDER_THUMB_INTERACTION_VARIANTS
2255
+ );
2256
+ function BaseSliderThumb(_a) {
2257
+ var _b = _a, {
2258
+ children,
2259
+ advanced,
2260
+ updateInteractionVariant
2261
+ } = _b, rest = __objRest$6(_b, [
2262
+ "children",
2263
+ "advanced",
2264
+ "updateInteractionVariant"
2265
+ ]);
2266
+ const context = React__default.default.useContext(PlasmicSliderContext);
2267
+ const mergedProps = reactAria.mergeProps(context, rest);
2268
+ const thumb = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderThumb, __spreadValues$6({}, mergedProps), ({ isDragging, isHovered, isFocused, isFocusVisible }) => withObservedValues$2(
2269
+ /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, advanced ? children : void 0),
2270
+ {
2271
+ dragging: isDragging,
2272
+ hovered: isHovered,
2273
+ focused: isFocused,
2274
+ focusVisible: isFocusVisible
2275
+ },
2276
+ updateInteractionVariant
2277
+ ));
2278
+ return /* @__PURE__ */ React__default.default.createElement(
2279
+ ErrorBoundary,
2280
+ {
2281
+ fallback: /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, { style: { height: "100%", width: "100%" } }, /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderTrack, null, thumb))
2282
+ },
2283
+ thumb
2284
+ );
2285
+ }
2286
+ const SLIDER_THUMB_COMPONENT_NAME = makeComponentName("sliderThumb");
2287
+ function registerSliderThumb(loader, overrides) {
2288
+ registerComponentHelper(
2289
+ loader,
2290
+ BaseSliderThumb,
2291
+ {
2292
+ name: SLIDER_THUMB_COMPONENT_NAME,
2293
+ displayName: "Aria Slider Thumb",
2294
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSliderThumb",
2295
+ importName: "BaseSliderThumb",
2296
+ defaultStyles: {
2297
+ position: "absolute",
2298
+ top: "5px",
2299
+ width: "20px",
2300
+ height: "20px",
2301
+ backgroundColor: "#C80101",
2302
+ borderRadius: "100%",
2303
+ cursor: "pointer"
2304
+ },
2305
+ interactionVariants: interactionVariants$3,
2306
+ props: {
2307
+ advanced: "boolean",
2308
+ children: {
2309
+ type: "slot",
2310
+ hidden: (ps) => !ps.advanced
2311
+ }
2312
+ },
2313
+ trapsFocus: true
2314
+ },
2315
+ overrides
2316
+ );
2317
+ }
2318
+
2319
+ var __defProp$5 = Object.defineProperty;
2320
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
2321
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
2322
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
2323
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2324
+ var __spreadValues$5 = (a, b) => {
2325
+ for (var prop in b || (b = {}))
2326
+ if (__hasOwnProp$5.call(b, prop))
2327
+ __defNormalProp$5(a, prop, b[prop]);
2328
+ if (__getOwnPropSymbols$5)
2329
+ for (var prop of __getOwnPropSymbols$5(b)) {
2330
+ if (__propIsEnum$5.call(b, prop))
2331
+ __defNormalProp$5(a, prop, b[prop]);
2332
+ }
2333
+ return a;
2334
+ };
2335
+ var __objRest$5 = (source, exclude) => {
2336
+ var target = {};
2337
+ for (var prop in source)
2338
+ if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
2339
+ target[prop] = source[prop];
2340
+ if (source != null && __getOwnPropSymbols$5)
2341
+ for (var prop of __getOwnPropSymbols$5(source)) {
2342
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
2343
+ target[prop] = source[prop];
2344
+ }
2345
+ return target;
2346
+ };
2347
+ const SLIDER_TRACK_INTERACTION_VARIANTS = ["hovered"];
2348
+ const { interactionVariants: interactionVariants$2, withObservedValues: withObservedValues$1 } = pickAriaComponentVariants(
2349
+ SLIDER_TRACK_INTERACTION_VARIANTS
2350
+ );
2351
+ function findMinMaxIndices(values) {
2352
+ if (typeof values === "number" || (values == null ? void 0 : values.length) === 0 || !Array.isArray(values)) {
2353
+ return { minIndex: 0, maxIndex: 0 };
2354
+ }
2355
+ let minIndex = 0;
2356
+ let maxIndex = 0;
2357
+ for (let i = 1; i < values.length; i++) {
2358
+ if (values[i] < values[minIndex]) {
2359
+ minIndex = i;
2360
+ }
2361
+ if (values[i] > values[maxIndex]) {
2362
+ maxIndex = i;
2363
+ }
2364
+ }
2365
+ return { minIndex, maxIndex };
2366
+ }
2367
+ function BaseSliderTrack(props) {
2368
+ const context = React__default.default.useContext(PlasmicSliderContext);
2369
+ const mergedProps = reactAria.mergeProps(context, props);
2370
+ const _a = mergedProps, {
2371
+ children,
2372
+ progressBar,
2373
+ updateInteractionVariant,
2374
+ isMultiValue
2375
+ } = _a, rest = __objRest$5(_a, [
2376
+ "children",
2377
+ "progressBar",
2378
+ "updateInteractionVariant",
2379
+ "isMultiValue"
2380
+ ]);
2381
+ const { minIndex, maxIndex } = React.useMemo(
2382
+ () => findMinMaxIndices(mergedProps.value),
2383
+ [mergedProps.value]
2384
+ );
2385
+ const thumbs = React.useMemo(() => {
2386
+ const rawThumbs = flattenChildren__default.default(children);
2387
+ if (mergedProps.value === void 0) {
2388
+ return [];
2389
+ }
2390
+ if (!Array.isArray(mergedProps == null ? void 0 : mergedProps.value)) {
2391
+ return rawThumbs;
2392
+ }
2393
+ const difference = mergedProps.value.length - rawThumbs.length;
2394
+ if (!difference) {
2395
+ return rawThumbs;
2396
+ }
2397
+ if (difference < 0) {
2398
+ return rawThumbs.slice(0, mergedProps.value.length);
2399
+ }
2400
+ const lastThumb = rawThumbs[rawThumbs.length - 1];
2401
+ return rawThumbs.concat(new Array(difference).fill(lastThumb));
2402
+ }, [children, mergedProps.value]);
2403
+ const track = /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.SliderTrack, __spreadValues$5({ style: { position: "relative" } }, rest), ({ state, isHovered }) => /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, withObservedValues$1(
2404
+ /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(
2405
+ "div",
2406
+ {
2407
+ style: {
2408
+ width: `${(!isMultiValue ? state.getThumbPercent(minIndex) : state.getThumbPercent(maxIndex) - state.getThumbPercent(minIndex)) * 100}%`,
2409
+ height: "100%",
2410
+ position: "absolute",
2411
+ top: 0,
2412
+ left: !isMultiValue ? 0 : state.getThumbPercent(minIndex) * 100 + "%"
2413
+ }
2414
+ },
2415
+ progressBar
2416
+ ), thumbs.map(
2417
+ (thumb, i) => React__default.default.isValidElement(thumb) && React__default.default.cloneElement(thumb, {
2418
+ // sets the index of the thumb, so that each thumb reflects the correct value
2419
+ index: i
2420
+ })
2421
+ )),
2422
+ {
2423
+ hovered: isHovered
2424
+ },
2425
+ updateInteractionVariant
2426
+ )));
2427
+ return /* @__PURE__ */ React__default.default.createElement(
2428
+ ErrorBoundary,
2429
+ {
2430
+ fallback: /* @__PURE__ */ React__default.default.createElement(reactAriaComponents.Slider, { style: { height: "100%", width: "100%" } }, track)
2431
+ },
2432
+ track
2433
+ );
2434
+ }
2435
+ const SLIDER_TRACK_COMPONENT_NAME = makeComponentName("sliderTrack");
2436
+ function registerSliderTrack(loader, overrides) {
2437
+ registerComponentHelper(
2438
+ loader,
2439
+ BaseSliderTrack,
2440
+ {
2441
+ name: SLIDER_TRACK_COMPONENT_NAME,
2442
+ displayName: "Aria Slider Track",
2443
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSliderTrack",
2444
+ importName: "BaseSliderTrack",
2445
+ defaultStyles: {
2446
+ width: "stretch",
2447
+ backgroundColor: "#aaa",
2448
+ position: "relative",
2449
+ height: "10px",
2450
+ padding: 0
2451
+ },
2452
+ interactionVariants: interactionVariants$2,
2453
+ props: {
2454
+ children: {
2455
+ type: "slot",
2456
+ description: "The thumbs of the slider",
2457
+ defaultValue: [
2458
+ {
2459
+ type: "component",
2460
+ name: makeChildComponentName(
2461
+ SLIDER_COMPONENT_NAME,
2462
+ SLIDER_THUMB_COMPONENT_NAME
2463
+ )
2464
+ }
2465
+ ]
2466
+ },
2467
+ progressBar: {
2468
+ type: "slot",
2469
+ displayName: "Progress Bar",
2470
+ defaultValue: [
2471
+ {
2472
+ type: "box",
2473
+ styles: {
2474
+ height: "100%",
2475
+ width: "100%",
2476
+ backgroundColor: "#ffa6a6",
2477
+ padding: 0
2478
+ }
2479
+ }
2480
+ ]
2481
+ }
2482
+ },
2483
+ trapsFocus: true
2484
+ },
2485
+ overrides
2486
+ );
2487
+ }
2488
+
2489
+ var __defProp$4 = Object.defineProperty;
2490
+ var __defProps$3 = Object.defineProperties;
2491
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
2492
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
2493
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
2494
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
2495
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2496
+ var __spreadValues$4 = (a, b) => {
2497
+ for (var prop in b || (b = {}))
2498
+ if (__hasOwnProp$4.call(b, prop))
2499
+ __defNormalProp$4(a, prop, b[prop]);
2500
+ if (__getOwnPropSymbols$4)
2501
+ for (var prop of __getOwnPropSymbols$4(b)) {
2502
+ if (__propIsEnum$4.call(b, prop))
2503
+ __defNormalProp$4(a, prop, b[prop]);
2504
+ }
2505
+ return a;
2506
+ };
2507
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
2508
+ var __objRest$4 = (source, exclude) => {
2509
+ var target = {};
2510
+ for (var prop in source)
2511
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
2512
+ target[prop] = source[prop];
2513
+ if (source != null && __getOwnPropSymbols$4)
2514
+ for (var prop of __getOwnPropSymbols$4(source)) {
2515
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
2516
+ target[prop] = source[prop];
2517
+ }
2518
+ return target;
2519
+ };
2520
+ const SLIDER_COMPONENT_NAME = makeComponentName("slider");
2521
+ const sliderHelpers = {
2522
+ states: {
2523
+ range: {
2524
+ onChangeArgsToValue: (value, isMultiValue) => {
2525
+ if (isMultiValue) {
2526
+ return Array.isArray(value) ? value : [value, value + 10];
2527
+ }
2528
+ return void 0;
2529
+ }
2530
+ },
2531
+ value: {
2532
+ onChangeArgsToValue: (value, isMultiValue) => {
2533
+ if (isMultiValue) {
2534
+ return void 0;
2535
+ }
2536
+ return Array.isArray(value) ? value[0] : value;
2537
+ }
2538
+ }
2539
+ }
2540
+ };
2541
+ function BaseSlider(props) {
2542
+ const _a = props, { range, value, defaultRange, defaultValue, onChange } = _a, rest = __objRest$4(_a, ["range", "value", "defaultRange", "defaultValue", "onChange"]);
2543
+ const isFirstRender = React.useRef(true);
2544
+ React.useEffect(() => {
2545
+ var _a2, _b, _c;
2546
+ if (isFirstRender.current) {
2547
+ isFirstRender.current = false;
2548
+ return;
2549
+ }
2550
+ if (props.isMultiValue) {
2551
+ const minValue = (_a2 = props.minValue) != null ? _a2 : 0;
2552
+ (_b = props.onChange) == null ? void 0 : _b.call(
2553
+ props,
2554
+ Array.isArray(range) && range.length > 1 ? range : [minValue, minValue + 10],
2555
+ true
2556
+ );
2557
+ return;
2558
+ }
2559
+ (_c = props.onChange) == null ? void 0 : _c.call(props, Array.isArray(value) ? 0 : value != null ? value : 0, false);
2560
+ }, [props.isMultiValue]);
2561
+ const mergedProps = reactAria.mergeProps(rest, {
2562
+ value: props.isMultiValue ? range : value,
2563
+ defaultValue: props.isMultiValue ? defaultRange : defaultValue
2564
+ });
2565
+ return /* @__PURE__ */ React__default.default.createElement(PlasmicSliderContext.Provider, { value: mergedProps }, /* @__PURE__ */ React__default.default.createElement(
2566
+ reactAriaComponents.Slider,
2567
+ __spreadValues$4({
2568
+ key: props.isMultiValue ? "multi" : "single",
2569
+ onChange: (newValue) => {
2570
+ onChange == null ? void 0 : onChange(newValue, props.isMultiValue);
2571
+ }
2572
+ }, mergedProps)
2573
+ ));
2574
+ }
2575
+ function registerSlider(loader, overrides) {
2576
+ registerComponentHelper(
2577
+ loader,
2578
+ BaseSlider,
2579
+ {
2580
+ name: SLIDER_COMPONENT_NAME,
2581
+ displayName: "Aria Slider",
2582
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSlider",
2583
+ importName: "BaseSlider",
2584
+ defaultStyles: {
2585
+ width: "300px"
2586
+ },
2587
+ props: __spreadProps$3(__spreadValues$4({}, getCommonInputProps("slider", [
2588
+ "isDisabled",
2589
+ "name",
2590
+ "autoFocus",
2591
+ "aria-label"
2592
+ ])), {
2593
+ children: {
2594
+ type: "slot",
2595
+ defaultValue: [
2596
+ {
2597
+ type: "hbox",
2598
+ styles: {
2599
+ width: "stretch",
2600
+ justifyContent: "space-between",
2601
+ padding: "8px 0px"
2602
+ },
2603
+ children: [
2604
+ {
2605
+ type: "component",
2606
+ name: LABEL_COMPONENT_NAME,
2607
+ props: {
2608
+ children: {
2609
+ type: "text",
2610
+ value: "Label"
2611
+ }
2612
+ }
2613
+ },
2614
+ {
2615
+ type: "component",
2616
+ name: makeChildComponentName(
2617
+ SLIDER_COMPONENT_NAME,
2618
+ SLIDER_OUTPUT_COMPONENT_NAME
2619
+ ),
2620
+ props: {
2621
+ children: {
2622
+ type: "text",
2623
+ value: "Output"
2624
+ }
2625
+ }
2626
+ }
2627
+ ]
2628
+ },
2629
+ {
2630
+ type: "component",
2631
+ name: makeChildComponentName(
2632
+ SLIDER_COMPONENT_NAME,
2633
+ SLIDER_TRACK_COMPONENT_NAME
2634
+ )
2635
+ }
2636
+ ]
2637
+ },
2638
+ orientation: {
2639
+ type: "choice",
2640
+ options: ["horizontal", "vertical"],
2641
+ defaultValueHint: "horizontal",
2642
+ defaultValue: "horizontal"
2643
+ },
2644
+ minValue: {
2645
+ type: "number",
2646
+ description: "The minimum value of the slider",
2647
+ defaultValueHint: 0
2648
+ },
2649
+ maxValue: {
2650
+ type: "number",
2651
+ description: "The maximum value of the slider",
2652
+ defaultValueHint: 100
2653
+ },
2654
+ step: {
2655
+ type: "number",
2656
+ description: "The step value of the slider",
2657
+ defaultValueHint: 1
2658
+ },
2659
+ isMultiValue: {
2660
+ type: "boolean",
2661
+ displayName: "Multi-valued",
2662
+ description: "Whether the slider supports range (multiple thumbs)",
2663
+ defaultValue: false,
2664
+ defaultValueHint: false
2665
+ },
2666
+ range: {
2667
+ type: "array",
2668
+ editOnly: true,
2669
+ uncontrolledProp: "defaultRange",
2670
+ description: "The default range of the slider",
2671
+ defaultValueHint: [10, 20],
2672
+ defaultValue: [10, 20],
2673
+ hidden: (ps) => !ps.isMultiValue
2674
+ },
2675
+ value: {
2676
+ type: "number",
2677
+ editOnly: true,
2678
+ uncontrolledProp: "defaultValue",
2679
+ description: "The default value of the slider",
2680
+ defaultValueHint: 0,
2681
+ defaultValue: 0,
2682
+ hidden: (ps) => Boolean(ps.isMultiValue)
2683
+ },
2684
+ onChange: {
2685
+ type: "eventHandler",
2686
+ argTypes: [{ name: "value", type: "object" }]
2687
+ },
2688
+ onChangeEnd: {
2689
+ type: "eventHandler",
2690
+ argTypes: [{ name: "value", type: "object" }]
2691
+ }
2692
+ }),
2693
+ states: {
2694
+ range: __spreadValues$4({
2695
+ type: "writable",
2696
+ valueProp: "range",
2697
+ onChangeProp: "onChange",
2698
+ variableType: "array",
2699
+ hidden: (ps) => !ps.isMultiValue
2700
+ }, sliderHelpers.states.range),
2701
+ value: __spreadValues$4({
2702
+ type: "writable",
2703
+ valueProp: "value",
2704
+ onChangeProp: "onChange",
2705
+ variableType: "number",
2706
+ hidden: (ps) => Boolean(ps.isMultiValue)
2707
+ }, sliderHelpers.states.value)
2708
+ },
2709
+ componentHelpers: {
2710
+ helpers: sliderHelpers,
2711
+ importName: "sliderHelpers",
2712
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSlider"
2713
+ },
2714
+ trapsFocus: true
2715
+ },
2716
+ overrides
2717
+ );
2718
+ registerSliderOutput(loader, {
2719
+ parentComponentName: SLIDER_COMPONENT_NAME
2720
+ });
2721
+ registerSliderThumb(loader, {
2722
+ parentComponentName: SLIDER_COMPONENT_NAME
2723
+ });
2724
+ registerSliderTrack(loader, {
2725
+ parentComponentName: SLIDER_COMPONENT_NAME
2726
+ });
2727
+ }
2728
+
2190
2729
  var __defProp$3 = Object.defineProperty;
2191
2730
  var __defProps$2 = Object.defineProperties;
2192
2731
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
@@ -2813,6 +3352,7 @@ function registerAll(loader) {
2813
3352
  registerModal(loader);
2814
3353
  registerTooltip(loader);
2815
3354
  registerDialogTrigger(loader);
3355
+ registerSlider(loader);
2816
3356
  }
2817
3357
 
2818
3358
  exports.registerAll = registerAll;