@plasmicpkgs/react-aria 0.0.12 → 0.0.14

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 (116) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/ErrorBoundary.d.ts +14 -0
  3. package/dist/contexts.d.ts +2 -2
  4. package/dist/react-aria.esm.js +1284 -303
  5. package/dist/react-aria.esm.js.map +1 -1
  6. package/dist/react-aria.js +1282 -301
  7. package/dist/react-aria.js.map +1 -1
  8. package/dist/registerCheckbox.d.ts +10 -0
  9. package/dist/registerCheckboxGroup.d.ts +5 -0
  10. package/dist/registerDescription.d.ts +3 -0
  11. package/dist/registerFieldError.d.ts +19 -0
  12. package/dist/registerInput.d.ts +2 -2
  13. package/dist/registerLabel.d.ts +2 -3
  14. package/dist/registerRadio.d.ts +11 -0
  15. package/dist/registerRadioGroup.d.ts +9 -0
  16. package/dist/registerText.d.ts +5 -0
  17. package/dist/registerTextArea.d.ts +5 -0
  18. package/dist/registerTextField.d.ts +14 -0
  19. package/package.json +2 -2
  20. package/skinny/ErrorBoundary.d.ts +14 -0
  21. package/skinny/contexts.d.ts +2 -2
  22. package/skinny/registerButton.cjs.js +2 -2
  23. package/skinny/registerButton.cjs.js.map +1 -1
  24. package/skinny/registerButton.esm.js +2 -2
  25. package/skinny/registerButton.esm.js.map +1 -1
  26. package/skinny/registerCheckbox.cjs.js +158 -0
  27. package/skinny/registerCheckbox.cjs.js.map +1 -0
  28. package/skinny/registerCheckbox.d.ts +10 -0
  29. package/skinny/registerCheckbox.esm.js +151 -0
  30. package/skinny/registerCheckbox.esm.js.map +1 -0
  31. package/skinny/registerCheckboxGroup.cjs.js +113 -0
  32. package/skinny/registerCheckboxGroup.cjs.js.map +1 -0
  33. package/skinny/registerCheckboxGroup.d.ts +5 -0
  34. package/skinny/registerCheckboxGroup.esm.js +110 -0
  35. package/skinny/registerCheckboxGroup.esm.js.map +1 -0
  36. package/skinny/registerComboBox.cjs.js +4 -4
  37. package/skinny/registerComboBox.cjs.js.map +1 -1
  38. package/skinny/registerComboBox.esm.js +4 -4
  39. package/skinny/registerComboBox.esm.js.map +1 -1
  40. package/skinny/registerDescription.cjs.js +38 -0
  41. package/skinny/registerDescription.cjs.js.map +1 -0
  42. package/skinny/registerDescription.d.ts +3 -0
  43. package/skinny/registerDescription.esm.js +36 -0
  44. package/skinny/registerDescription.esm.js.map +1 -0
  45. package/skinny/registerFieldError.cjs.js +2 -2
  46. package/skinny/registerFieldError.cjs.js.map +1 -1
  47. package/skinny/registerFieldError.d.ts +19 -0
  48. package/skinny/registerFieldError.esm.js +2 -2
  49. package/skinny/registerFieldError.esm.js.map +1 -1
  50. package/skinny/registerForm.cjs.js +2 -2
  51. package/skinny/registerForm.cjs.js.map +1 -1
  52. package/skinny/registerForm.esm.js +2 -2
  53. package/skinny/registerForm.esm.js.map +1 -1
  54. package/skinny/registerHeader.cjs.js +2 -2
  55. package/skinny/registerHeader.cjs.js.map +1 -1
  56. package/skinny/registerHeader.esm.js +2 -2
  57. package/skinny/registerHeader.esm.js.map +1 -1
  58. package/skinny/registerInput.cjs.js +10 -35
  59. package/skinny/registerInput.cjs.js.map +1 -1
  60. package/skinny/registerInput.d.ts +2 -2
  61. package/skinny/registerInput.esm.js +7 -32
  62. package/skinny/registerInput.esm.js.map +1 -1
  63. package/skinny/registerLabel.cjs.js +4 -26
  64. package/skinny/registerLabel.cjs.js.map +1 -1
  65. package/skinny/registerLabel.d.ts +2 -3
  66. package/skinny/registerLabel.esm.js +4 -22
  67. package/skinny/registerLabel.esm.js.map +1 -1
  68. package/skinny/registerListBox.cjs.js +2 -2
  69. package/skinny/registerListBox.cjs.js.map +1 -1
  70. package/skinny/registerListBox.esm.js +2 -2
  71. package/skinny/registerListBox.esm.js.map +1 -1
  72. package/skinny/registerListBoxItem.cjs.js +2 -2
  73. package/skinny/registerListBoxItem.cjs.js.map +1 -1
  74. package/skinny/registerListBoxItem.esm.js +2 -2
  75. package/skinny/registerListBoxItem.esm.js.map +1 -1
  76. package/skinny/registerPopover.cjs.js +4 -4
  77. package/skinny/registerPopover.cjs.js.map +1 -1
  78. package/skinny/registerPopover.esm.js +4 -4
  79. package/skinny/registerPopover.esm.js.map +1 -1
  80. package/skinny/registerRadio.cjs.js +158 -0
  81. package/skinny/registerRadio.cjs.js.map +1 -0
  82. package/skinny/registerRadio.d.ts +11 -0
  83. package/skinny/registerRadio.esm.js +151 -0
  84. package/skinny/registerRadio.esm.js.map +1 -0
  85. package/skinny/registerRadioGroup.cjs.js +141 -0
  86. package/skinny/registerRadioGroup.cjs.js.map +1 -0
  87. package/skinny/registerRadioGroup.d.ts +9 -0
  88. package/skinny/registerRadioGroup.esm.js +134 -0
  89. package/skinny/registerRadioGroup.esm.js.map +1 -0
  90. package/skinny/registerSection.cjs.js +2 -2
  91. package/skinny/registerSection.cjs.js.map +1 -1
  92. package/skinny/registerSection.esm.js +2 -2
  93. package/skinny/registerSection.esm.js.map +1 -1
  94. package/skinny/registerSelect.cjs.js +3 -3
  95. package/skinny/registerSelect.cjs.js.map +1 -1
  96. package/skinny/registerSelect.esm.js +3 -3
  97. package/skinny/registerSelect.esm.js.map +1 -1
  98. package/skinny/registerSwitch.cjs.js +2 -2
  99. package/skinny/registerSwitch.cjs.js.map +1 -1
  100. package/skinny/registerSwitch.esm.js +2 -2
  101. package/skinny/registerSwitch.esm.js.map +1 -1
  102. package/skinny/registerText.cjs.js +69 -0
  103. package/skinny/registerText.cjs.js.map +1 -0
  104. package/skinny/registerText.d.ts +5 -0
  105. package/skinny/registerText.esm.js +62 -0
  106. package/skinny/registerText.esm.js.map +1 -0
  107. package/skinny/registerTextArea.cjs.js +53 -0
  108. package/skinny/registerTextArea.cjs.js.map +1 -0
  109. package/skinny/registerTextArea.d.ts +5 -0
  110. package/skinny/registerTextArea.esm.js +46 -0
  111. package/skinny/registerTextArea.esm.js.map +1 -0
  112. package/skinny/registerTextField.cjs.js +263 -0
  113. package/skinny/registerTextField.cjs.js.map +1 -0
  114. package/skinny/registerTextField.d.ts +14 -0
  115. package/skinny/registerTextField.esm.js +256 -0
  116. package/skinny/registerTextField.esm.js.map +1 -0
@@ -1,5 +1,5 @@
1
- import React, { useEffect } from 'react';
2
- import { Button, ComboBox, ComboBoxStateContext, Form, Input, Label, ListBoxItem, ListBox, PopoverContext, Popover, Header, Section, Collection, SelectValue, Select, Switch } from 'react-aria-components';
1
+ import React, { useEffect, Component } from 'react';
2
+ import { Button, Checkbox, Text, FieldError, Label, CheckboxGroup, ComboBox, ComboBoxStateContext, Form, Input, ListBoxItem, ListBox, PopoverContext, Popover, Radio, RadioGroup, Header, Section, Collection, SelectValue, Select, Switch, TextArea, TextField } from 'react-aria-components';
3
3
  import registerComponent from '@plasmicapp/host/registerComponent';
4
4
  import { useFilter } from '@react-aria/i18n';
5
5
  import { mergeProps } from '@react-aria/utils';
@@ -55,25 +55,25 @@ function getCommonInputProps(fieldName, fields) {
55
55
  return filteredProps;
56
56
  }
57
57
 
58
- var __defProp$c = Object.defineProperty;
59
- var __defProps$5 = Object.defineProperties;
60
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
61
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
62
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
63
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
64
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
65
- var __spreadValues$c = (a, b) => {
58
+ var __defProp$k = Object.defineProperty;
59
+ var __defProps$b = Object.defineProperties;
60
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
61
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
62
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
63
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
64
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
65
+ var __spreadValues$k = (a, b) => {
66
66
  for (var prop in b || (b = {}))
67
- if (__hasOwnProp$c.call(b, prop))
68
- __defNormalProp$c(a, prop, b[prop]);
69
- if (__getOwnPropSymbols$c)
70
- for (var prop of __getOwnPropSymbols$c(b)) {
71
- if (__propIsEnum$c.call(b, prop))
72
- __defNormalProp$c(a, prop, b[prop]);
67
+ if (__hasOwnProp$k.call(b, prop))
68
+ __defNormalProp$k(a, prop, b[prop]);
69
+ if (__getOwnPropSymbols$k)
70
+ for (var prop of __getOwnPropSymbols$k(b)) {
71
+ if (__propIsEnum$k.call(b, prop))
72
+ __defNormalProp$k(a, prop, b[prop]);
73
73
  }
74
74
  return a;
75
75
  };
76
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
76
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
77
77
  function ValueObserver({ value, onChange }) {
78
78
  useEffect(() => {
79
79
  onChange(value);
@@ -82,8 +82,8 @@ function ValueObserver({ value, onChange }) {
82
82
  }
83
83
  function registerComponentHelper(loader, component, meta, overrides) {
84
84
  if (overrides) {
85
- meta = __spreadProps$5(__spreadValues$c(__spreadValues$c({}, meta), overrides), {
86
- props: __spreadValues$c(__spreadValues$c({}, meta.props), overrides.props)
85
+ meta = __spreadProps$b(__spreadValues$k(__spreadValues$k({}, meta), overrides), {
86
+ props: __spreadValues$k(__spreadValues$k({}, meta.props), overrides.props)
87
87
  });
88
88
  if (overrides.parentComponentName) {
89
89
  meta.name = makeChildComponentName(
@@ -121,41 +121,41 @@ function withoutNils(array) {
121
121
  return array.filter((x) => x != null);
122
122
  }
123
123
 
124
- var __defProp$b = Object.defineProperty;
125
- var __defProps$4 = Object.defineProperties;
126
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
127
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
128
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
129
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
130
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
131
- var __spreadValues$b = (a, b) => {
124
+ var __defProp$j = Object.defineProperty;
125
+ var __defProps$a = Object.defineProperties;
126
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
127
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
128
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
129
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
130
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
131
+ var __spreadValues$j = (a, b) => {
132
132
  for (var prop in b || (b = {}))
133
- if (__hasOwnProp$b.call(b, prop))
134
- __defNormalProp$b(a, prop, b[prop]);
135
- if (__getOwnPropSymbols$b)
136
- for (var prop of __getOwnPropSymbols$b(b)) {
137
- if (__propIsEnum$b.call(b, prop))
138
- __defNormalProp$b(a, prop, b[prop]);
133
+ if (__hasOwnProp$j.call(b, prop))
134
+ __defNormalProp$j(a, prop, b[prop]);
135
+ if (__getOwnPropSymbols$j)
136
+ for (var prop of __getOwnPropSymbols$j(b)) {
137
+ if (__propIsEnum$j.call(b, prop))
138
+ __defNormalProp$j(a, prop, b[prop]);
139
139
  }
140
140
  return a;
141
141
  };
142
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
143
- var __objRest$4 = (source, exclude) => {
142
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
143
+ var __objRest$a = (source, exclude) => {
144
144
  var target = {};
145
145
  for (var prop in source)
146
- if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
146
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
147
147
  target[prop] = source[prop];
148
- if (source != null && __getOwnPropSymbols$b)
149
- for (var prop of __getOwnPropSymbols$b(source)) {
150
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
148
+ if (source != null && __getOwnPropSymbols$j)
149
+ for (var prop of __getOwnPropSymbols$j(source)) {
150
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
151
151
  target[prop] = source[prop];
152
152
  }
153
153
  return target;
154
154
  };
155
155
  function BaseButton(props) {
156
- const _a = props, { submitsForm, onFocusVisibleChange, resetsForm, children } = _a, rest = __objRest$4(_a, ["submitsForm", "onFocusVisibleChange", "resetsForm", "children"]);
156
+ const _a = props, { submitsForm, onFocusVisibleChange, resetsForm, children } = _a, rest = __objRest$a(_a, ["submitsForm", "onFocusVisibleChange", "resetsForm", "children"]);
157
157
  const type = submitsForm ? "submit" : resetsForm ? "reset" : "button";
158
- return /* @__PURE__ */ React.createElement(Button, __spreadValues$b({ type }, rest), ({ isFocusVisible }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
158
+ return /* @__PURE__ */ React.createElement(Button, __spreadValues$j({ type }, rest), ({ isFocusVisible }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
159
159
  ValueObserver,
160
160
  {
161
161
  value: isFocusVisible,
@@ -169,10 +169,10 @@ function registerButton(loader, overrides) {
169
169
  BaseButton,
170
170
  {
171
171
  name: makeComponentName("button"),
172
- displayName: "BaseButton",
173
- importPath: "@plasmicpkgs/react-aria/registerButton",
172
+ displayName: "Aria Button",
173
+ importPath: "@plasmicpkgs/react-aria/skinny/registerButton",
174
174
  importName: "BaseButton",
175
- props: __spreadProps$4(__spreadValues$b({}, getCommonInputProps("button", [
175
+ props: __spreadProps$a(__spreadValues$j({}, getCommonInputProps("button", [
176
176
  "isDisabled",
177
177
  "aria-label",
178
178
  "children"
@@ -242,6 +242,499 @@ function registerButton(loader, overrides) {
242
242
  );
243
243
  }
244
244
 
245
+ var __defProp$i = Object.defineProperty;
246
+ var __defProps$9 = Object.defineProperties;
247
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
248
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
249
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
250
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
251
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
252
+ var __spreadValues$i = (a, b) => {
253
+ for (var prop in b || (b = {}))
254
+ if (__hasOwnProp$i.call(b, prop))
255
+ __defNormalProp$i(a, prop, b[prop]);
256
+ if (__getOwnPropSymbols$i)
257
+ for (var prop of __getOwnPropSymbols$i(b)) {
258
+ if (__propIsEnum$i.call(b, prop))
259
+ __defNormalProp$i(a, prop, b[prop]);
260
+ }
261
+ return a;
262
+ };
263
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
264
+ var __objRest$9 = (source, exclude) => {
265
+ var target = {};
266
+ for (var prop in source)
267
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
268
+ target[prop] = source[prop];
269
+ if (source != null && __getOwnPropSymbols$i)
270
+ for (var prop of __getOwnPropSymbols$i(source)) {
271
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
272
+ target[prop] = source[prop];
273
+ }
274
+ return target;
275
+ };
276
+ function BaseCheckbox(props) {
277
+ const _a = props, { children, onPressChange, onFocusVisibleChange } = _a, rest = __objRest$9(_a, ["children", "onPressChange", "onFocusVisibleChange"]);
278
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Checkbox, __spreadValues$i({}, rest), ({ isFocusVisible, isPressed }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
279
+ ValueObserver,
280
+ {
281
+ value: isFocusVisible,
282
+ onChange: onFocusVisibleChange
283
+ }
284
+ ), /* @__PURE__ */ React.createElement(ValueObserver, { value: isPressed, onChange: onPressChange }), children)));
285
+ }
286
+ function registerCheckbox(loader, overrides) {
287
+ registerComponentHelper(
288
+ loader,
289
+ BaseCheckbox,
290
+ {
291
+ name: makeComponentName("checkbox"),
292
+ displayName: "Aria Checkbox",
293
+ importPath: "@plasmicpkgs/react-aria/skinny/registerCheckbox",
294
+ importName: "BaseCheckbox",
295
+ props: __spreadProps$9(__spreadValues$i({}, getCommonInputProps("checkbox", [
296
+ "name",
297
+ "isDisabled",
298
+ "isReadOnly",
299
+ "aria-label",
300
+ "children",
301
+ "isRequired",
302
+ "autoFocus"
303
+ ])), {
304
+ value: {
305
+ type: "string",
306
+ description: "The value of the input element, used when submitting an HTML form."
307
+ },
308
+ isSelected: {
309
+ type: "boolean",
310
+ editOnly: true,
311
+ uncontrolledProp: "defaultSelected",
312
+ description: "Whether the checkbox is toggled on",
313
+ defaultValueHint: false
314
+ },
315
+ isIndeterminate: {
316
+ displayName: "Indeterminate",
317
+ type: "boolean",
318
+ description: "This state indicates that the checkbox is neither fully checked nor unchecked. It typically represents a partial selection when dealing with groups of options. Some but not all items in the group are selected, resulting in an indeterminate state for the checkbox.",
319
+ defaultValueHint: false
320
+ },
321
+ isInvalid: {
322
+ displayName: "Invalid",
323
+ type: "boolean",
324
+ description: "Whether the input value is invalid",
325
+ defaultValueHint: false
326
+ },
327
+ validationBehavior: {
328
+ type: "choice",
329
+ options: ["native", "aria"],
330
+ description: "Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.",
331
+ defaultValueHint: "native"
332
+ },
333
+ onChange: {
334
+ type: "eventHandler",
335
+ argTypes: [{ name: "isSelected", type: "boolean" }]
336
+ },
337
+ onHoverChange: {
338
+ type: "eventHandler",
339
+ argTypes: [{ name: "isHovered", type: "boolean" }]
340
+ },
341
+ onFocusChange: {
342
+ type: "eventHandler",
343
+ argTypes: [{ name: "isFocused", type: "boolean" }]
344
+ },
345
+ onPressChange: {
346
+ type: "eventHandler",
347
+ argTypes: [{ name: "isPressed", type: "boolean" }]
348
+ },
349
+ onFocusVisibleChange: {
350
+ type: "eventHandler",
351
+ argTypes: [{ name: "isFocusVisible", type: "boolean" }]
352
+ }
353
+ }),
354
+ states: {
355
+ isSelected: {
356
+ type: "writable",
357
+ valueProp: "isSelected",
358
+ onChangeProp: "onChange",
359
+ variableType: "boolean"
360
+ },
361
+ isHovered: {
362
+ type: "readonly",
363
+ onChangeProp: "onHoverChange",
364
+ variableType: "boolean"
365
+ },
366
+ isPressed: {
367
+ type: "readonly",
368
+ onChangeProp: "onPressChange",
369
+ variableType: "boolean"
370
+ },
371
+ isFocused: {
372
+ type: "readonly",
373
+ onChangeProp: "onFocusChange",
374
+ variableType: "boolean"
375
+ },
376
+ isFocusVisible: {
377
+ type: "readonly",
378
+ onChangeProp: "onFocusVisibleChange",
379
+ variableType: "boolean"
380
+ }
381
+ },
382
+ trapsFocus: true
383
+ },
384
+ overrides
385
+ );
386
+ }
387
+
388
+ var __defProp$h = Object.defineProperty;
389
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
390
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
391
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
392
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
393
+ var __spreadValues$h = (a, b) => {
394
+ for (var prop in b || (b = {}))
395
+ if (__hasOwnProp$h.call(b, prop))
396
+ __defNormalProp$h(a, prop, b[prop]);
397
+ if (__getOwnPropSymbols$h)
398
+ for (var prop of __getOwnPropSymbols$h(b)) {
399
+ if (__propIsEnum$h.call(b, prop))
400
+ __defNormalProp$h(a, prop, b[prop]);
401
+ }
402
+ return a;
403
+ };
404
+ var __objRest$8 = (source, exclude) => {
405
+ var target = {};
406
+ for (var prop in source)
407
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
408
+ target[prop] = source[prop];
409
+ if (source != null && __getOwnPropSymbols$h)
410
+ for (var prop of __getOwnPropSymbols$h(source)) {
411
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
412
+ target[prop] = source[prop];
413
+ }
414
+ return target;
415
+ };
416
+ function BaseText(_a) {
417
+ var _b = _a, { children } = _b, rest = __objRest$8(_b, ["children"]);
418
+ return /* @__PURE__ */ React.createElement(Text, __spreadValues$h({}, rest), children);
419
+ }
420
+ function registerText(loader, overrides) {
421
+ registerComponentHelper(
422
+ loader,
423
+ BaseText,
424
+ {
425
+ name: makeComponentName("text"),
426
+ displayName: "Aria Text",
427
+ importPath: "@plasmicpkgs/react-aria/skinny/registerText",
428
+ importName: "BaseText",
429
+ props: {
430
+ children: {
431
+ type: "slot"
432
+ },
433
+ slot: {
434
+ type: "string"
435
+ }
436
+ },
437
+ trapsFocus: true
438
+ },
439
+ overrides
440
+ );
441
+ }
442
+
443
+ var __defProp$g = Object.defineProperty;
444
+ var __defProps$8 = Object.defineProperties;
445
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
446
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
447
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
448
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
449
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
450
+ var __spreadValues$g = (a, b) => {
451
+ for (var prop in b || (b = {}))
452
+ if (__hasOwnProp$g.call(b, prop))
453
+ __defNormalProp$g(a, prop, b[prop]);
454
+ if (__getOwnPropSymbols$g)
455
+ for (var prop of __getOwnPropSymbols$g(b)) {
456
+ if (__propIsEnum$g.call(b, prop))
457
+ __defNormalProp$g(a, prop, b[prop]);
458
+ }
459
+ return a;
460
+ };
461
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
462
+ function registerDescription(loader, overrides) {
463
+ registerText(loader, __spreadProps$8(__spreadValues$g({}, overrides), {
464
+ displayName: "Aria Description",
465
+ props: {
466
+ slot: { type: "string", hidden: () => true, defaultValue: "description" }
467
+ }
468
+ }));
469
+ }
470
+
471
+ var __defProp$f = Object.defineProperty;
472
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
473
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
474
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
475
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
476
+ var __spreadValues$f = (a, b) => {
477
+ for (var prop in b || (b = {}))
478
+ if (__hasOwnProp$f.call(b, prop))
479
+ __defNormalProp$f(a, prop, b[prop]);
480
+ if (__getOwnPropSymbols$f)
481
+ for (var prop of __getOwnPropSymbols$f(b)) {
482
+ if (__propIsEnum$f.call(b, prop))
483
+ __defNormalProp$f(a, prop, b[prop]);
484
+ }
485
+ return a;
486
+ };
487
+ var __objRest$7 = (source, exclude) => {
488
+ var target = {};
489
+ for (var prop in source)
490
+ if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0)
491
+ target[prop] = source[prop];
492
+ if (source != null && __getOwnPropSymbols$f)
493
+ for (var prop of __getOwnPropSymbols$f(source)) {
494
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop))
495
+ target[prop] = source[prop];
496
+ }
497
+ return target;
498
+ };
499
+ function BaseFieldError(_a) {
500
+ var _b = _a, {
501
+ badInput,
502
+ customError,
503
+ patternMismatch,
504
+ rangeOverflow,
505
+ rangeUnderflow,
506
+ stepMismatch,
507
+ tooLong,
508
+ tooShort,
509
+ typeMismatch,
510
+ valueMissing
511
+ } = _b, rest = __objRest$7(_b, [
512
+ "badInput",
513
+ "customError",
514
+ "patternMismatch",
515
+ "rangeOverflow",
516
+ "rangeUnderflow",
517
+ "stepMismatch",
518
+ "tooLong",
519
+ "tooShort",
520
+ "typeMismatch",
521
+ "valueMissing"
522
+ ]);
523
+ return /* @__PURE__ */ React.createElement(FieldError, __spreadValues$f({}, rest), ({ validationDetails, validationErrors }) => {
524
+ if (validationDetails.badInput && badInput)
525
+ return badInput;
526
+ if (validationDetails.customError && customError)
527
+ return customError;
528
+ if (validationDetails.patternMismatch && patternMismatch)
529
+ return patternMismatch;
530
+ if (validationDetails.rangeOverflow && rangeOverflow)
531
+ return rangeOverflow;
532
+ if (validationDetails.rangeUnderflow && rangeUnderflow)
533
+ return rangeUnderflow;
534
+ if (validationDetails.stepMismatch && stepMismatch)
535
+ return stepMismatch;
536
+ if (validationDetails.tooLong && tooLong)
537
+ return tooLong;
538
+ if (validationDetails.tooShort && tooShort)
539
+ return tooShort;
540
+ if (validationDetails.typeMismatch && typeMismatch)
541
+ return typeMismatch;
542
+ if (validationDetails.valueMissing && valueMissing)
543
+ return valueMissing;
544
+ return validationErrors;
545
+ });
546
+ }
547
+ function PropsDescription() {
548
+ return /* @__PURE__ */ React.createElement("div", { style: { marginBottom: 20 } }, /* @__PURE__ */ React.createElement("p", null, "You can customize the error messages for built-in validations by utilizing the props below."), /* @__PURE__ */ React.createElement("p", null, "For further information on the specific conditions triggering each error, please refer to the", " ", /* @__PURE__ */ React.createElement(
549
+ "a",
550
+ {
551
+ target: "_blank",
552
+ href: "https://developer.mozilla.org/en-US/docs/Web/API/ValidityState#instance_properties"
553
+ },
554
+ "MDN Docs"
555
+ ), "."));
556
+ }
557
+ function registerFieldError(loader, overrides) {
558
+ registerComponentHelper(
559
+ loader,
560
+ BaseFieldError,
561
+ {
562
+ name: makeComponentName("fielderror"),
563
+ displayName: "Aria Field Error",
564
+ importPath: "@plasmicpkgs/react-aria/skinny/registerFieldError",
565
+ importName: "BaseFieldError",
566
+ actions: [
567
+ {
568
+ type: "custom-action",
569
+ control: PropsDescription
570
+ }
571
+ ],
572
+ props: {
573
+ badInput: {
574
+ type: "string",
575
+ description: "Error message if the user has provided input that the browser is unable to convert"
576
+ },
577
+ customError: {
578
+ type: "string",
579
+ description: "Error message for custom validations"
580
+ },
581
+ patternMismatch: {
582
+ type: "string",
583
+ description: "Error message if the value does not match the specified pattern"
584
+ },
585
+ rangeOverflow: {
586
+ type: "string",
587
+ description: "Error message if the value is greater than the maximum specified"
588
+ },
589
+ rangeUnderflow: {
590
+ type: "string",
591
+ description: "Error message if the value is less than the minimum specified"
592
+ },
593
+ stepMismatch: {
594
+ type: "string",
595
+ description: "Error message if the value is not evenly divisible by the step value"
596
+ },
597
+ tooLong: {
598
+ type: "string",
599
+ description: "Error message if the value exceeds the specified maximum number of characters"
600
+ },
601
+ tooShort: {
602
+ type: "string",
603
+ description: "Error message if the value fails to meet the specified minimum number of characters"
604
+ },
605
+ typeMismatch: {
606
+ type: "string",
607
+ description: "Error message if the value is not in the required syntax (when type is email or url)"
608
+ },
609
+ valueMissing: {
610
+ type: "string",
611
+ description: "Error message if a required field has no value"
612
+ }
613
+ },
614
+ trapsFocus: true
615
+ },
616
+ overrides
617
+ );
618
+ }
619
+
620
+ const BaseLabel = Label;
621
+ function registerLabel(loader, overrides) {
622
+ registerComponentHelper(
623
+ loader,
624
+ BaseLabel,
625
+ {
626
+ name: makeComponentName("label"),
627
+ displayName: "Aria Label",
628
+ importPath: "@plasmicpkgs/react-aria/skinny/registerLabel",
629
+ importName: "BaseLabel",
630
+ props: {
631
+ children: {
632
+ type: "slot"
633
+ }
634
+ },
635
+ trapsFocus: true
636
+ },
637
+ overrides
638
+ );
639
+ }
640
+
641
+ var __defProp$e = Object.defineProperty;
642
+ var __defProps$7 = Object.defineProperties;
643
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
644
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
645
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
646
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
647
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
648
+ var __spreadValues$e = (a, b) => {
649
+ for (var prop in b || (b = {}))
650
+ if (__hasOwnProp$e.call(b, prop))
651
+ __defNormalProp$e(a, prop, b[prop]);
652
+ if (__getOwnPropSymbols$e)
653
+ for (var prop of __getOwnPropSymbols$e(b)) {
654
+ if (__propIsEnum$e.call(b, prop))
655
+ __defNormalProp$e(a, prop, b[prop]);
656
+ }
657
+ return a;
658
+ };
659
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
660
+ const BaseCheckboxGroup = CheckboxGroup;
661
+ const componentName$2 = makeComponentName("checkboxGroup");
662
+ function registerCheckboxGroup(loader, overrides) {
663
+ registerComponentHelper(
664
+ loader,
665
+ BaseCheckboxGroup,
666
+ {
667
+ name: componentName$2,
668
+ displayName: "Aria Checkbox Group",
669
+ importPath: "@plasmicpkgs/react-aria/skinny/registerCheckboxGroup",
670
+ importName: "BaseCheckboxGroup",
671
+ props: __spreadProps$7(__spreadValues$e({}, getCommonInputProps("checkbox group", [
672
+ "name",
673
+ "isDisabled",
674
+ "isReadOnly",
675
+ "aria-label",
676
+ "children",
677
+ "isRequired"
678
+ ])), {
679
+ value: {
680
+ type: "array",
681
+ editOnly: true,
682
+ uncontrolledProp: "defaultValue",
683
+ description: "The current value"
684
+ },
685
+ options: {
686
+ type: "array",
687
+ description: "The options in the radio group",
688
+ itemType: {
689
+ type: "object",
690
+ nameFunc: (item) => item.label,
691
+ fields: {
692
+ label: "string",
693
+ value: "string"
694
+ }
695
+ }
696
+ },
697
+ isInvalid: {
698
+ displayName: "Invalid",
699
+ type: "boolean",
700
+ description: "Whether the input value is invalid",
701
+ defaultValueHint: false
702
+ },
703
+ validationBehavior: {
704
+ type: "choice",
705
+ options: ["native", "aria"],
706
+ description: "Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.",
707
+ defaultValueHint: "native"
708
+ },
709
+ onChange: {
710
+ type: "eventHandler",
711
+ argTypes: [{ name: "value", type: "object" }]
712
+ }
713
+ }),
714
+ states: {
715
+ value: {
716
+ type: "writable",
717
+ valueProp: "value",
718
+ onChangeProp: "onChange",
719
+ variableType: "array"
720
+ }
721
+ },
722
+ trapsFocus: true
723
+ },
724
+ overrides
725
+ );
726
+ const thisName = makeChildComponentName(
727
+ overrides == null ? void 0 : overrides.parentComponentName,
728
+ componentName$2
729
+ );
730
+ registerFieldError(loader, { parentComponentName: thisName });
731
+ registerCheckbox(loader, { parentComponentName: thisName });
732
+ registerLabel(loader, { parentComponentName: thisName });
733
+ registerDescription(loader, {
734
+ parentComponentName: thisName
735
+ });
736
+ }
737
+
245
738
  React.createContext(void 0);
246
739
  const PlasmicListBoxContext = React.createContext(void 0);
247
740
  const PlasmicPopoverContext = React.createContext(void 0);
@@ -399,25 +892,25 @@ function makeValuePropType() {
399
892
  return type;
400
893
  }
401
894
 
402
- var __defProp$a = Object.defineProperty;
403
- var __defProps$3 = Object.defineProperties;
404
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
405
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
406
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
407
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
408
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
409
- var __spreadValues$a = (a, b) => {
895
+ var __defProp$d = Object.defineProperty;
896
+ var __defProps$6 = Object.defineProperties;
897
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
898
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
899
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
900
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
901
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
902
+ var __spreadValues$d = (a, b) => {
410
903
  for (var prop in b || (b = {}))
411
- if (__hasOwnProp$a.call(b, prop))
412
- __defNormalProp$a(a, prop, b[prop]);
413
- if (__getOwnPropSymbols$a)
414
- for (var prop of __getOwnPropSymbols$a(b)) {
415
- if (__propIsEnum$a.call(b, prop))
416
- __defNormalProp$a(a, prop, b[prop]);
904
+ if (__hasOwnProp$d.call(b, prop))
905
+ __defNormalProp$d(a, prop, b[prop]);
906
+ if (__getOwnPropSymbols$d)
907
+ for (var prop of __getOwnPropSymbols$d(b)) {
908
+ if (__propIsEnum$d.call(b, prop))
909
+ __defNormalProp$d(a, prop, b[prop]);
417
910
  }
418
911
  return a;
419
912
  };
420
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
913
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
421
914
  function BaseComboBox(props) {
422
915
  const {
423
916
  value,
@@ -446,11 +939,11 @@ function BaseComboBox(props) {
446
939
  if (!options) {
447
940
  return options;
448
941
  }
449
- const filterOptions = (options2) => {
942
+ const filterOptions = (opts) => {
450
943
  return withoutNils(
451
- options2.map((op) => {
944
+ opts.map((op) => {
452
945
  if (op.type === "section") {
453
- return __spreadProps$3(__spreadValues$a({}, op), {
946
+ return __spreadProps$6(__spreadValues$d({}, op), {
454
947
  items: op.items ? filterOptions(op.items) : void 0
455
948
  });
456
949
  } else {
@@ -534,7 +1027,7 @@ function BaseComboBox(props) {
534
1027
  ]);
535
1028
  return /* @__PURE__ */ React.createElement(
536
1029
  ComboBox,
537
- __spreadValues$a({
1030
+ __spreadValues$d({
538
1031
  selectedKey: value,
539
1032
  onSelectionChange,
540
1033
  isDisabled,
@@ -599,8 +1092,8 @@ function registerComboBox(loader) {
599
1092
  const rootName = makeComponentName("combobox");
600
1093
  registerComponentHelper(loader, BaseComboBox, {
601
1094
  name: rootName,
602
- displayName: "BaseComboBox",
603
- importPath: "@plasmicpkgs/react-aria/registerComboBox",
1095
+ displayName: "Aria ComboBox",
1096
+ importPath: "@plasmicpkgs/react-aria/skinny/registerComboBox",
604
1097
  importName: "BaseComboBox",
605
1098
  props: {
606
1099
  options: makeOptionsPropType(),
@@ -673,39 +1166,39 @@ function registerComboBox(loader) {
673
1166
  });
674
1167
  }
675
1168
 
676
- var __defProp$9 = Object.defineProperty;
677
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
678
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
679
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
680
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
681
- var __spreadValues$9 = (a, b) => {
1169
+ var __defProp$c = Object.defineProperty;
1170
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
1171
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
1172
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
1173
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1174
+ var __spreadValues$c = (a, b) => {
682
1175
  for (var prop in b || (b = {}))
683
- if (__hasOwnProp$9.call(b, prop))
684
- __defNormalProp$9(a, prop, b[prop]);
685
- if (__getOwnPropSymbols$9)
686
- for (var prop of __getOwnPropSymbols$9(b)) {
687
- if (__propIsEnum$9.call(b, prop))
688
- __defNormalProp$9(a, prop, b[prop]);
1176
+ if (__hasOwnProp$c.call(b, prop))
1177
+ __defNormalProp$c(a, prop, b[prop]);
1178
+ if (__getOwnPropSymbols$c)
1179
+ for (var prop of __getOwnPropSymbols$c(b)) {
1180
+ if (__propIsEnum$c.call(b, prop))
1181
+ __defNormalProp$c(a, prop, b[prop]);
689
1182
  }
690
1183
  return a;
691
1184
  };
692
- var __objRest$3 = (source, exclude) => {
1185
+ var __objRest$6 = (source, exclude) => {
693
1186
  var target = {};
694
1187
  for (var prop in source)
695
- if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
1188
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
696
1189
  target[prop] = source[prop];
697
- if (source != null && __getOwnPropSymbols$9)
698
- for (var prop of __getOwnPropSymbols$9(source)) {
699
- if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
1190
+ if (source != null && __getOwnPropSymbols$c)
1191
+ for (var prop of __getOwnPropSymbols$c(source)) {
1192
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
700
1193
  target[prop] = source[prop];
701
1194
  }
702
1195
  return target;
703
1196
  };
704
1197
  function BaseForm(props) {
705
- const _a = props, { onSubmit, children } = _a, rest = __objRest$3(_a, ["onSubmit", "children"]);
1198
+ const _a = props, { onSubmit, children } = _a, rest = __objRest$6(_a, ["onSubmit", "children"]);
706
1199
  return /* @__PURE__ */ React.createElement(
707
1200
  Form,
708
- __spreadValues$9({
1201
+ __spreadValues$c({
709
1202
  onSubmit: (e) => {
710
1203
  e.preventDefault();
711
1204
  const formData = new FormData(e.currentTarget);
@@ -733,8 +1226,8 @@ function registerForm(loader, overrides) {
733
1226
  BaseForm,
734
1227
  {
735
1228
  name: makeComponentName("form"),
736
- displayName: "BaseForm",
737
- importPath: "@plasmicpkgs/react-aria/registerForm",
1229
+ displayName: "Aria Form",
1230
+ importPath: "@plasmicpkgs/react-aria/skinny/registerForm",
738
1231
  importName: "BaseForm",
739
1232
  props: {
740
1233
  children: {
@@ -755,25 +1248,24 @@ function registerForm(loader, overrides) {
755
1248
  );
756
1249
  }
757
1250
 
758
- var __defProp$8 = Object.defineProperty;
759
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
760
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
761
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
762
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
763
- var __spreadValues$8 = (a, b) => {
1251
+ var __defProp$b = Object.defineProperty;
1252
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
1253
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
1254
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
1255
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1256
+ var __spreadValues$b = (a, b) => {
764
1257
  for (var prop in b || (b = {}))
765
- if (__hasOwnProp$8.call(b, prop))
766
- __defNormalProp$8(a, prop, b[prop]);
767
- if (__getOwnPropSymbols$8)
768
- for (var prop of __getOwnPropSymbols$8(b)) {
769
- if (__propIsEnum$8.call(b, prop))
770
- __defNormalProp$8(a, prop, b[prop]);
1258
+ if (__hasOwnProp$b.call(b, prop))
1259
+ __defNormalProp$b(a, prop, b[prop]);
1260
+ if (__getOwnPropSymbols$b)
1261
+ for (var prop of __getOwnPropSymbols$b(b)) {
1262
+ if (__propIsEnum$b.call(b, prop))
1263
+ __defNormalProp$b(a, prop, b[prop]);
771
1264
  }
772
1265
  return a;
773
1266
  };
774
1267
  function BaseInput(props) {
775
- const contextProps = React.useContext(PlasmicInputContext);
776
- return /* @__PURE__ */ React.createElement(Input, __spreadValues$8({}, mergeProps(contextProps, props)));
1268
+ return /* @__PURE__ */ React.createElement(Input, __spreadValues$b({}, props));
777
1269
  }
778
1270
  function registerInput(loader, overrides) {
779
1271
  registerComponentHelper(
@@ -781,73 +1273,12 @@ function registerInput(loader, overrides) {
781
1273
  BaseInput,
782
1274
  {
783
1275
  name: makeComponentName("input"),
784
- displayName: "BaseInput",
785
- importPath: "@plasmicpkgs/react-aria/registerInput",
1276
+ displayName: "Aria Input",
1277
+ importPath: "@plasmicpkgs/react-aria/skinny/registerInput",
786
1278
  importName: "BaseInput",
787
1279
  props: {
788
- className: {
789
- type: "class",
790
- displayName: "Additional states",
791
- selectors: [
792
- {
793
- selector: ":self[data-hovered]",
794
- label: "Hovered"
795
- },
796
- {
797
- selector: ":self[data-focused]",
798
- label: "Focused"
799
- },
800
- {
801
- selector: ":self[data-focus-visible]",
802
- label: "Focused by keyboard"
803
- },
804
- {
805
- selector: ":self[data-disabled]",
806
- label: "Disabled"
807
- },
808
- {
809
- selector: ":self::placeholder",
810
- label: "Placeholder"
811
- }
812
- ]
813
- }
814
- }
815
- },
816
- overrides
817
- );
818
- }
819
-
820
- var __defProp$7 = Object.defineProperty;
821
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
822
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
823
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
824
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
825
- var __spreadValues$7 = (a, b) => {
826
- for (var prop in b || (b = {}))
827
- if (__hasOwnProp$7.call(b, prop))
828
- __defNormalProp$7(a, prop, b[prop]);
829
- if (__getOwnPropSymbols$7)
830
- for (var prop of __getOwnPropSymbols$7(b)) {
831
- if (__propIsEnum$7.call(b, prop))
832
- __defNormalProp$7(a, prop, b[prop]);
833
- }
834
- return a;
835
- };
836
- function BaseLabel(props) {
837
- return /* @__PURE__ */ React.createElement(Label, __spreadValues$7({}, props));
838
- }
839
- function registerLabel(loader, overrides) {
840
- registerComponentHelper(
841
- loader,
842
- BaseLabel,
843
- {
844
- name: makeComponentName("label"),
845
- displayName: "BaseLabel",
846
- importPath: "@plasmicpkgs/react-aria/registerLabel",
847
- importName: "BaseLabel",
848
- props: {
849
- children: {
850
- type: "slot"
1280
+ placeholder: {
1281
+ type: "string"
851
1282
  }
852
1283
  },
853
1284
  trapsFocus: true
@@ -856,19 +1287,19 @@ function registerLabel(loader, overrides) {
856
1287
  );
857
1288
  }
858
1289
 
859
- var __defProp$6 = Object.defineProperty;
860
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
861
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
862
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
863
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
864
- var __spreadValues$6 = (a, b) => {
865
- for (var prop in b || (b = {}))
866
- if (__hasOwnProp$6.call(b, prop))
867
- __defNormalProp$6(a, prop, b[prop]);
868
- if (__getOwnPropSymbols$6)
869
- for (var prop of __getOwnPropSymbols$6(b)) {
870
- if (__propIsEnum$6.call(b, prop))
871
- __defNormalProp$6(a, prop, b[prop]);
1290
+ var __defProp$a = Object.defineProperty;
1291
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
1292
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
1293
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
1294
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1295
+ var __spreadValues$a = (a, b) => {
1296
+ for (var prop in b || (b = {}))
1297
+ if (__hasOwnProp$a.call(b, prop))
1298
+ __defNormalProp$a(a, prop, b[prop]);
1299
+ if (__getOwnPropSymbols$a)
1300
+ for (var prop of __getOwnPropSymbols$a(b)) {
1301
+ if (__propIsEnum$a.call(b, prop))
1302
+ __defNormalProp$a(a, prop, b[prop]);
872
1303
  }
873
1304
  return a;
874
1305
  };
@@ -876,7 +1307,7 @@ function BaseListBoxItem(props) {
876
1307
  var _a;
877
1308
  const contextProps = React.useContext(PlasmicItemContext);
878
1309
  const mergedProps = mergeProps(contextProps, props);
879
- return /* @__PURE__ */ React.createElement(ListBoxItem, __spreadValues$6({ id: (_a = mergedProps.key) != null ? _a : void 0 }, mergedProps));
1310
+ return /* @__PURE__ */ React.createElement(ListBoxItem, __spreadValues$a({ id: (_a = mergedProps.key) != null ? _a : void 0 }, mergedProps));
880
1311
  }
881
1312
  function registerListBoxItem(loader, overrides) {
882
1313
  registerComponentHelper(
@@ -884,8 +1315,8 @@ function registerListBoxItem(loader, overrides) {
884
1315
  BaseListBoxItem,
885
1316
  {
886
1317
  name: makeComponentName("item"),
887
- displayName: "BaseListBoxItem",
888
- importPath: "@plasmicpkgs/react-aria/registerListBoxItem",
1318
+ displayName: "Aria ListBoxItem",
1319
+ importPath: "@plasmicpkgs/react-aria/skinny/registerListBoxItem",
889
1320
  importName: "BaseListBoxItem",
890
1321
  props: {
891
1322
  className: {
@@ -912,33 +1343,33 @@ function registerListBoxItem(loader, overrides) {
912
1343
  );
913
1344
  }
914
1345
 
915
- var __defProp$5 = Object.defineProperty;
916
- var __defProps$2 = Object.defineProperties;
917
- var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
918
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
919
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
920
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
921
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
922
- var __spreadValues$5 = (a, b) => {
1346
+ var __defProp$9 = Object.defineProperty;
1347
+ var __defProps$5 = Object.defineProperties;
1348
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
1349
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
1350
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
1351
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
1352
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1353
+ var __spreadValues$9 = (a, b) => {
923
1354
  for (var prop in b || (b = {}))
924
- if (__hasOwnProp$5.call(b, prop))
925
- __defNormalProp$5(a, prop, b[prop]);
926
- if (__getOwnPropSymbols$5)
927
- for (var prop of __getOwnPropSymbols$5(b)) {
928
- if (__propIsEnum$5.call(b, prop))
929
- __defNormalProp$5(a, prop, b[prop]);
1355
+ if (__hasOwnProp$9.call(b, prop))
1356
+ __defNormalProp$9(a, prop, b[prop]);
1357
+ if (__getOwnPropSymbols$9)
1358
+ for (var prop of __getOwnPropSymbols$9(b)) {
1359
+ if (__propIsEnum$9.call(b, prop))
1360
+ __defNormalProp$9(a, prop, b[prop]);
930
1361
  }
931
1362
  return a;
932
1363
  };
933
- var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
934
- var __objRest$2 = (source, exclude) => {
1364
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
1365
+ var __objRest$5 = (source, exclude) => {
935
1366
  var target = {};
936
1367
  for (var prop in source)
937
- if (__hasOwnProp$5.call(source, prop) && exclude.indexOf(prop) < 0)
1368
+ if (__hasOwnProp$9.call(source, prop) && exclude.indexOf(prop) < 0)
938
1369
  target[prop] = source[prop];
939
- if (source != null && __getOwnPropSymbols$5)
940
- for (var prop of __getOwnPropSymbols$5(source)) {
941
- if (exclude.indexOf(prop) < 0 && __propIsEnum$5.call(source, prop))
1370
+ if (source != null && __getOwnPropSymbols$9)
1371
+ for (var prop of __getOwnPropSymbols$9(source)) {
1372
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$9.call(source, prop))
942
1373
  target[prop] = source[prop];
943
1374
  }
944
1375
  return target;
@@ -987,21 +1418,21 @@ function BaseListBox(props) {
987
1418
  renderItem,
988
1419
  renderSection,
989
1420
  getItemType
990
- } = _a, rest = __objRest$2(_a, [
1421
+ } = _a, rest = __objRest$5(_a, [
991
1422
  "makeItemProps",
992
1423
  "makeSectionProps",
993
1424
  "renderItem",
994
1425
  "renderSection",
995
1426
  "getItemType"
996
1427
  ]);
997
- return /* @__PURE__ */ React.createElement(ListBox, __spreadValues$5({}, mergeProps(contextProps, rest)), (item) => {
1428
+ return /* @__PURE__ */ React.createElement(ListBox, __spreadValues$9({}, mergeProps(contextProps, rest)), (item) => {
998
1429
  if ((getItemType == null ? void 0 : getItemType(item)) === "section") {
999
1430
  const sectionProps = makeSectionProps == null ? void 0 : makeSectionProps(item);
1000
1431
  return /* @__PURE__ */ React.createElement(
1001
1432
  PlasmicSectionContext.Provider,
1002
1433
  {
1003
1434
  key: sectionProps == null ? void 0 : sectionProps.key,
1004
- value: __spreadProps$2(__spreadValues$5({}, sectionProps), { makeItemProps, renderItem })
1435
+ value: __spreadProps$5(__spreadValues$9({}, sectionProps), { makeItemProps, renderItem })
1005
1436
  },
1006
1437
  renderSection == null ? void 0 : renderSection(item)
1007
1438
  );
@@ -1017,8 +1448,8 @@ function registerListBox(loader, overrides) {
1017
1448
  BaseListBox,
1018
1449
  {
1019
1450
  name: makeComponentName("listbox"),
1020
- displayName: "BaseListBox",
1021
- importPath: "@plasmicpkgs/react-aria/registerListBox",
1451
+ displayName: "Aria ListBox",
1452
+ importPath: "@plasmicpkgs/react-aria/skinny/registerListBox",
1022
1453
  importName: "BaseListBox",
1023
1454
  props: {
1024
1455
  renderItem: {
@@ -1054,57 +1485,57 @@ function registerListBox(loader, overrides) {
1054
1485
  });
1055
1486
  }
1056
1487
 
1057
- var __defProp$4 = Object.defineProperty;
1058
- var __defProps$1 = Object.defineProperties;
1059
- var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
1060
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
1061
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
1062
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
1063
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1064
- var __spreadValues$4 = (a, b) => {
1488
+ var __defProp$8 = Object.defineProperty;
1489
+ var __defProps$4 = Object.defineProperties;
1490
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
1491
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
1492
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
1493
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
1494
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1495
+ var __spreadValues$8 = (a, b) => {
1065
1496
  for (var prop in b || (b = {}))
1066
- if (__hasOwnProp$4.call(b, prop))
1067
- __defNormalProp$4(a, prop, b[prop]);
1068
- if (__getOwnPropSymbols$4)
1069
- for (var prop of __getOwnPropSymbols$4(b)) {
1070
- if (__propIsEnum$4.call(b, prop))
1071
- __defNormalProp$4(a, prop, b[prop]);
1497
+ if (__hasOwnProp$8.call(b, prop))
1498
+ __defNormalProp$8(a, prop, b[prop]);
1499
+ if (__getOwnPropSymbols$8)
1500
+ for (var prop of __getOwnPropSymbols$8(b)) {
1501
+ if (__propIsEnum$8.call(b, prop))
1502
+ __defNormalProp$8(a, prop, b[prop]);
1072
1503
  }
1073
1504
  return a;
1074
1505
  };
1075
- var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1076
- var __objRest$1 = (source, exclude) => {
1506
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
1507
+ var __objRest$4 = (source, exclude) => {
1077
1508
  var target = {};
1078
1509
  for (var prop in source)
1079
- if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
1510
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
1080
1511
  target[prop] = source[prop];
1081
- if (source != null && __getOwnPropSymbols$4)
1082
- for (var prop of __getOwnPropSymbols$4(source)) {
1083
- if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
1512
+ if (source != null && __getOwnPropSymbols$8)
1513
+ for (var prop of __getOwnPropSymbols$8(source)) {
1514
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
1084
1515
  target[prop] = source[prop];
1085
1516
  }
1086
1517
  return target;
1087
1518
  };
1088
1519
  function BasePopover(props) {
1089
- const _a = props, restProps = __objRest$1(_a, ["resetClassName"]);
1520
+ const _a = props, { resetClassName } = _a, restProps = __objRest$4(_a, ["resetClassName"]);
1090
1521
  const isStandalone = !React.useContext(PopoverContext);
1091
1522
  const contextProps = React.useContext(PlasmicPopoverContext);
1092
1523
  const canvas = usePlasmicCanvasContext();
1093
1524
  const mergedProps = mergeProps(contextProps, restProps, {
1094
- className: `${props.resetClassName}`
1525
+ className: `${resetClassName}`
1095
1526
  });
1096
1527
  if (isStandalone) {
1097
1528
  const triggerRef = React.useRef(null);
1098
1529
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { ref: triggerRef }), /* @__PURE__ */ React.createElement(
1099
1530
  Popover,
1100
- __spreadProps$1(__spreadValues$4({}, mergedProps), {
1531
+ __spreadProps$4(__spreadValues$8({}, mergedProps), {
1101
1532
  triggerRef,
1102
1533
  isNonModal: true,
1103
1534
  isOpen: true
1104
1535
  })
1105
1536
  ));
1106
1537
  } else {
1107
- return /* @__PURE__ */ React.createElement(Popover, __spreadProps$1(__spreadValues$4({}, mergedProps), { isNonModal: !!canvas }));
1538
+ return /* @__PURE__ */ React.createElement(Popover, __spreadProps$4(__spreadValues$8({}, mergedProps), { isNonModal: !!canvas }));
1108
1539
  }
1109
1540
  }
1110
1541
  function registerPopover(loader, overrides) {
@@ -1113,8 +1544,8 @@ function registerPopover(loader, overrides) {
1113
1544
  BasePopover,
1114
1545
  {
1115
1546
  name: "plasmic-react-aria-popover",
1116
- displayName: "BasePopover",
1117
- importPath: "@plasmicpkgs/react-aria/registerPopover",
1547
+ displayName: "Aria Popover",
1548
+ importPath: "@plasmicpkgs/react-aria/skinny/registerPopover",
1118
1549
  importName: "BasePopover",
1119
1550
  props: {
1120
1551
  children: {
@@ -1156,31 +1587,295 @@ function registerPopover(loader, overrides) {
1156
1587
  // ],
1157
1588
  // },
1158
1589
  },
1159
- styleSections: true
1590
+ styleSections: true
1591
+ },
1592
+ overrides
1593
+ );
1594
+ }
1595
+
1596
+ class ErrorBoundary extends Component {
1597
+ constructor(props) {
1598
+ super(props);
1599
+ this.state = { hasError: false };
1600
+ }
1601
+ static getDerivedStateFromError(_) {
1602
+ return { hasError: true };
1603
+ }
1604
+ render() {
1605
+ if (this.state.hasError) {
1606
+ return this.props.fallback;
1607
+ }
1608
+ return this.props.children;
1609
+ }
1610
+ }
1611
+
1612
+ var __defProp$7 = Object.defineProperty;
1613
+ var __defProps$3 = Object.defineProperties;
1614
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
1615
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
1616
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
1617
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
1618
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1619
+ var __spreadValues$7 = (a, b) => {
1620
+ for (var prop in b || (b = {}))
1621
+ if (__hasOwnProp$7.call(b, prop))
1622
+ __defNormalProp$7(a, prop, b[prop]);
1623
+ if (__getOwnPropSymbols$7)
1624
+ for (var prop of __getOwnPropSymbols$7(b)) {
1625
+ if (__propIsEnum$7.call(b, prop))
1626
+ __defNormalProp$7(a, prop, b[prop]);
1627
+ }
1628
+ return a;
1629
+ };
1630
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1631
+ var __objRest$3 = (source, exclude) => {
1632
+ var target = {};
1633
+ for (var prop in source)
1634
+ if (__hasOwnProp$7.call(source, prop) && exclude.indexOf(prop) < 0)
1635
+ target[prop] = source[prop];
1636
+ if (source != null && __getOwnPropSymbols$7)
1637
+ for (var prop of __getOwnPropSymbols$7(source)) {
1638
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$7.call(source, prop))
1639
+ target[prop] = source[prop];
1640
+ }
1641
+ return target;
1642
+ };
1643
+ function BaseRadio(props) {
1644
+ const _a = props, {
1645
+ children,
1646
+ onPressChange,
1647
+ onFocusVisibleChange,
1648
+ onHoverChange,
1649
+ onSelectionChange
1650
+ } = _a, rest = __objRest$3(_a, [
1651
+ "children",
1652
+ "onPressChange",
1653
+ "onFocusVisibleChange",
1654
+ "onHoverChange",
1655
+ "onSelectionChange"
1656
+ ]);
1657
+ const radio = /* @__PURE__ */ React.createElement(Radio, __spreadValues$7({}, rest), ({ isFocusVisible, isPressed, isHovered, isSelected }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
1658
+ ValueObserver,
1659
+ {
1660
+ value: isFocusVisible,
1661
+ onChange: onFocusVisibleChange
1662
+ }
1663
+ ), /* @__PURE__ */ React.createElement(ValueObserver, { value: isSelected, onChange: onSelectionChange }), /* @__PURE__ */ React.createElement(ValueObserver, { value: isPressed, onChange: onPressChange }), /* @__PURE__ */ React.createElement(ValueObserver, { value: isHovered, onChange: onHoverChange }), children));
1664
+ return /* @__PURE__ */ React.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React.createElement(RadioGroup, null, radio) }, radio);
1665
+ }
1666
+ function registerRadio(loader, overrides) {
1667
+ registerComponentHelper(
1668
+ loader,
1669
+ BaseRadio,
1670
+ {
1671
+ name: makeComponentName("radio"),
1672
+ displayName: "Aria Radio",
1673
+ importPath: "@plasmicpkgs/react-aria/skinny/registerRadio",
1674
+ importName: "BaseRadio",
1675
+ props: __spreadProps$3(__spreadValues$7({}, getCommonInputProps("radio", [
1676
+ "isDisabled",
1677
+ "autoFocus",
1678
+ "aria-label",
1679
+ "children"
1680
+ ])), {
1681
+ value: {
1682
+ type: "string",
1683
+ description: "The value of the input element, used when submitting an HTML form."
1684
+ },
1685
+ onHoverChange: {
1686
+ type: "eventHandler",
1687
+ argTypes: [{ name: "isHovered", type: "boolean" }]
1688
+ },
1689
+ onFocusChange: {
1690
+ type: "eventHandler",
1691
+ argTypes: [{ name: "isFocused", type: "boolean" }]
1692
+ },
1693
+ onPressChange: {
1694
+ type: "eventHandler",
1695
+ argTypes: [{ name: "isPressed", type: "boolean" }]
1696
+ },
1697
+ onFocusVisibleChange: {
1698
+ type: "eventHandler",
1699
+ argTypes: [{ name: "isFocusVisible", type: "boolean" }]
1700
+ },
1701
+ onSelectionChange: {
1702
+ type: "eventHandler",
1703
+ argTypes: [{ name: "isSelected", type: "boolean" }]
1704
+ }
1705
+ }),
1706
+ states: {
1707
+ isHovered: {
1708
+ type: "readonly",
1709
+ onChangeProp: "onHoverChange",
1710
+ variableType: "boolean"
1711
+ },
1712
+ isPressed: {
1713
+ type: "readonly",
1714
+ onChangeProp: "onPressChange",
1715
+ variableType: "boolean"
1716
+ },
1717
+ isFocused: {
1718
+ type: "readonly",
1719
+ onChangeProp: "onFocusChange",
1720
+ variableType: "boolean"
1721
+ },
1722
+ isFocusVisible: {
1723
+ type: "readonly",
1724
+ onChangeProp: "onFocusVisibleChange",
1725
+ variableType: "boolean"
1726
+ },
1727
+ isSelected: {
1728
+ type: "readonly",
1729
+ onChangeProp: "onSelectionChange",
1730
+ variableType: "boolean"
1731
+ }
1732
+ },
1733
+ trapsFocus: true
1734
+ },
1735
+ overrides
1736
+ );
1737
+ }
1738
+
1739
+ var __defProp$6 = Object.defineProperty;
1740
+ var __defProps$2 = Object.defineProperties;
1741
+ var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
1742
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
1743
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
1744
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
1745
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1746
+ var __spreadValues$6 = (a, b) => {
1747
+ for (var prop in b || (b = {}))
1748
+ if (__hasOwnProp$6.call(b, prop))
1749
+ __defNormalProp$6(a, prop, b[prop]);
1750
+ if (__getOwnPropSymbols$6)
1751
+ for (var prop of __getOwnPropSymbols$6(b)) {
1752
+ if (__propIsEnum$6.call(b, prop))
1753
+ __defNormalProp$6(a, prop, b[prop]);
1754
+ }
1755
+ return a;
1756
+ };
1757
+ var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
1758
+ var __objRest$2 = (source, exclude) => {
1759
+ var target = {};
1760
+ for (var prop in source)
1761
+ if (__hasOwnProp$6.call(source, prop) && exclude.indexOf(prop) < 0)
1762
+ target[prop] = source[prop];
1763
+ if (source != null && __getOwnPropSymbols$6)
1764
+ for (var prop of __getOwnPropSymbols$6(source)) {
1765
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$6.call(source, prop))
1766
+ target[prop] = source[prop];
1767
+ }
1768
+ return target;
1769
+ };
1770
+ function BaseRadioGroup(props) {
1771
+ const _a = props, { children } = _a, rest = __objRest$2(_a, ["children"]);
1772
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(RadioGroup, __spreadValues$6({}, rest), children));
1773
+ }
1774
+ const componentName$1 = makeComponentName("radioGroup");
1775
+ function registerRadioGroup(loader, overrides) {
1776
+ registerComponentHelper(
1777
+ loader,
1778
+ BaseRadioGroup,
1779
+ {
1780
+ name: componentName$1,
1781
+ displayName: "Aria RadioGroup",
1782
+ importPath: "@plasmicpkgs/react-aria/skinny/registerRadioGroup",
1783
+ importName: "BaseRadioGroup",
1784
+ props: __spreadProps$2(__spreadValues$6({}, getCommonInputProps("radio group", [
1785
+ "name",
1786
+ "isDisabled",
1787
+ "isReadOnly",
1788
+ "aria-label",
1789
+ "children",
1790
+ "isRequired"
1791
+ ])), {
1792
+ value: {
1793
+ type: "string",
1794
+ editOnly: true,
1795
+ uncontrolledProp: "defaultValue",
1796
+ description: "The current value"
1797
+ },
1798
+ options: {
1799
+ type: "array",
1800
+ description: "The options in the radio group",
1801
+ itemType: {
1802
+ type: "object",
1803
+ nameFunc: (item) => item.label,
1804
+ fields: {
1805
+ label: "string",
1806
+ value: "string"
1807
+ }
1808
+ }
1809
+ },
1810
+ isInvalid: {
1811
+ displayName: "Invalid",
1812
+ type: "boolean",
1813
+ description: "Whether the input value is invalid",
1814
+ defaultValueHint: false
1815
+ },
1816
+ validationBehavior: {
1817
+ type: "choice",
1818
+ options: ["native", "aria"],
1819
+ description: "Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.",
1820
+ defaultValueHint: "native"
1821
+ },
1822
+ onChange: {
1823
+ type: "eventHandler",
1824
+ argTypes: [{ name: "value", type: "string" }]
1825
+ },
1826
+ onFocusChange: {
1827
+ type: "eventHandler",
1828
+ argTypes: [{ name: "isFocused", type: "boolean" }]
1829
+ }
1830
+ }),
1831
+ states: {
1832
+ value: {
1833
+ type: "writable",
1834
+ valueProp: "value",
1835
+ onChangeProp: "onChange",
1836
+ variableType: "array"
1837
+ },
1838
+ isFocused: {
1839
+ type: "readonly",
1840
+ onChangeProp: "onFocusChange",
1841
+ variableType: "boolean"
1842
+ }
1843
+ },
1844
+ trapsFocus: true
1160
1845
  },
1161
1846
  overrides
1162
1847
  );
1848
+ const thisName = makeChildComponentName(
1849
+ overrides == null ? void 0 : overrides.parentComponentName,
1850
+ componentName$1
1851
+ );
1852
+ registerFieldError(loader, { parentComponentName: thisName });
1853
+ registerRadio(loader, { parentComponentName: thisName });
1854
+ registerLabel(loader, { parentComponentName: thisName });
1855
+ registerDescription(loader, {
1856
+ parentComponentName: thisName
1857
+ });
1163
1858
  }
1164
1859
 
1165
- var __defProp$3 = Object.defineProperty;
1166
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
1167
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
1168
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
1169
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1170
- var __spreadValues$3 = (a, b) => {
1860
+ var __defProp$5 = Object.defineProperty;
1861
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
1862
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
1863
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
1864
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1865
+ var __spreadValues$5 = (a, b) => {
1171
1866
  for (var prop in b || (b = {}))
1172
- if (__hasOwnProp$3.call(b, prop))
1173
- __defNormalProp$3(a, prop, b[prop]);
1174
- if (__getOwnPropSymbols$3)
1175
- for (var prop of __getOwnPropSymbols$3(b)) {
1176
- if (__propIsEnum$3.call(b, prop))
1177
- __defNormalProp$3(a, prop, b[prop]);
1867
+ if (__hasOwnProp$5.call(b, prop))
1868
+ __defNormalProp$5(a, prop, b[prop]);
1869
+ if (__getOwnPropSymbols$5)
1870
+ for (var prop of __getOwnPropSymbols$5(b)) {
1871
+ if (__propIsEnum$5.call(b, prop))
1872
+ __defNormalProp$5(a, prop, b[prop]);
1178
1873
  }
1179
1874
  return a;
1180
1875
  };
1181
1876
  function BaseHeader(props) {
1182
1877
  const contextProps = React.useContext(PlasmicHeaderContext);
1183
- return /* @__PURE__ */ React.createElement(Header, __spreadValues$3({}, mergeProps(contextProps, props)));
1878
+ return /* @__PURE__ */ React.createElement(Header, __spreadValues$5({}, mergeProps(contextProps, props)));
1184
1879
  }
1185
1880
  function registerHeader(loader, overrides) {
1186
1881
  registerComponentHelper(
@@ -1188,8 +1883,8 @@ function registerHeader(loader, overrides) {
1188
1883
  BaseHeader,
1189
1884
  {
1190
1885
  name: makeComponentName("header"),
1191
- displayName: "BaseHeader",
1192
- importPath: "@plasmicpkgs/react-aria/registerHeader",
1886
+ displayName: "Aria Header",
1887
+ importPath: "@plasmicpkgs/react-aria/skinny/registerHeader",
1193
1888
  importName: "BaseHeader",
1194
1889
  props: {}
1195
1890
  },
@@ -1197,30 +1892,30 @@ function registerHeader(loader, overrides) {
1197
1892
  );
1198
1893
  }
1199
1894
 
1200
- var __defProp$2 = Object.defineProperty;
1201
- var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
1202
- var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
1203
- var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
1204
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1205
- var __spreadValues$2 = (a, b) => {
1895
+ var __defProp$4 = Object.defineProperty;
1896
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
1897
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
1898
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
1899
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1900
+ var __spreadValues$4 = (a, b) => {
1206
1901
  for (var prop in b || (b = {}))
1207
- if (__hasOwnProp$2.call(b, prop))
1208
- __defNormalProp$2(a, prop, b[prop]);
1209
- if (__getOwnPropSymbols$2)
1210
- for (var prop of __getOwnPropSymbols$2(b)) {
1211
- if (__propIsEnum$2.call(b, prop))
1212
- __defNormalProp$2(a, prop, b[prop]);
1902
+ if (__hasOwnProp$4.call(b, prop))
1903
+ __defNormalProp$4(a, prop, b[prop]);
1904
+ if (__getOwnPropSymbols$4)
1905
+ for (var prop of __getOwnPropSymbols$4(b)) {
1906
+ if (__propIsEnum$4.call(b, prop))
1907
+ __defNormalProp$4(a, prop, b[prop]);
1213
1908
  }
1214
1909
  return a;
1215
1910
  };
1216
- var __objRest = (source, exclude) => {
1911
+ var __objRest$1 = (source, exclude) => {
1217
1912
  var target = {};
1218
1913
  for (var prop in source)
1219
- if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
1914
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
1220
1915
  target[prop] = source[prop];
1221
- if (source != null && __getOwnPropSymbols$2)
1222
- for (var prop of __getOwnPropSymbols$2(source)) {
1223
- if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
1916
+ if (source != null && __getOwnPropSymbols$4)
1917
+ for (var prop of __getOwnPropSymbols$4(source)) {
1918
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
1224
1919
  target[prop] = source[prop];
1225
1920
  }
1226
1921
  return target;
@@ -1228,8 +1923,8 @@ var __objRest = (source, exclude) => {
1228
1923
  function BaseSection(props) {
1229
1924
  const contextProps = React.useContext(PlasmicSectionContext);
1230
1925
  const mergedProps = mergeProps(contextProps, props);
1231
- const _a = mergedProps, { section, renderHeader, key, makeItemProps, renderItem } = _a, rest = __objRest(_a, ["section", "renderHeader", "key", "makeItemProps", "renderItem"]);
1232
- return /* @__PURE__ */ React.createElement(Section, __spreadValues$2({ 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) => {
1926
+ const _a = mergedProps, { section, renderHeader, key, makeItemProps, renderItem } = _a, rest = __objRest$1(_a, ["section", "renderHeader", "key", "makeItemProps", "renderItem"]);
1927
+ 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) => {
1233
1928
  const itemProps = makeItemProps == null ? void 0 : makeItemProps(item);
1234
1929
  return /* @__PURE__ */ React.createElement(PlasmicItemContext.Provider, { key: itemProps == null ? void 0 : itemProps.key, value: itemProps }, renderItem == null ? void 0 : renderItem(item));
1235
1930
  }));
@@ -1240,8 +1935,8 @@ function registerSection(loader, overrides) {
1240
1935
  BaseSection,
1241
1936
  {
1242
1937
  name: makeComponentName("section"),
1243
- displayName: "BaseSection",
1244
- importPath: "@plasmicpkgs/react-aria/registerSection",
1938
+ displayName: "Aria Section",
1939
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSection",
1245
1940
  importName: "BaseSection",
1246
1941
  props: {
1247
1942
  renderHeader: {
@@ -1262,19 +1957,19 @@ function registerSection(loader, overrides) {
1262
1957
  });
1263
1958
  }
1264
1959
 
1265
- var __defProp$1 = Object.defineProperty;
1266
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
1267
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
1268
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
1269
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1270
- var __spreadValues$1 = (a, b) => {
1960
+ var __defProp$3 = Object.defineProperty;
1961
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
1962
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
1963
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
1964
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1965
+ var __spreadValues$3 = (a, b) => {
1271
1966
  for (var prop in b || (b = {}))
1272
- if (__hasOwnProp$1.call(b, prop))
1273
- __defNormalProp$1(a, prop, b[prop]);
1274
- if (__getOwnPropSymbols$1)
1275
- for (var prop of __getOwnPropSymbols$1(b)) {
1276
- if (__propIsEnum$1.call(b, prop))
1277
- __defNormalProp$1(a, prop, b[prop]);
1967
+ if (__hasOwnProp$3.call(b, prop))
1968
+ __defNormalProp$3(a, prop, b[prop]);
1969
+ if (__getOwnPropSymbols$3)
1970
+ for (var prop of __getOwnPropSymbols$3(b)) {
1971
+ if (__propIsEnum$3.call(b, prop))
1972
+ __defNormalProp$3(a, prop, b[prop]);
1278
1973
  }
1279
1974
  return a;
1280
1975
  };
@@ -1299,7 +1994,7 @@ function BaseSelect(props) {
1299
1994
  const disabledKeys = flattenOptions(options).filter((op) => op.isDisabled).map((op) => op.value);
1300
1995
  return /* @__PURE__ */ React.createElement(
1301
1996
  Select,
1302
- __spreadValues$1(__spreadValues$1({
1997
+ __spreadValues$3(__spreadValues$3({
1303
1998
  placeholder,
1304
1999
  selectedKey: value,
1305
2000
  onSelectionChange: onChange,
@@ -1335,8 +2030,8 @@ function BaseSelect(props) {
1335
2030
  function registerSelect(loader) {
1336
2031
  registerComponentHelper(loader, BaseSelect, {
1337
2032
  name: SELECT_NAME,
1338
- displayName: "BaseSelect",
1339
- importPath: "@plasmicpkgs/react-aria/registerSelect",
2033
+ displayName: "Aria Select",
2034
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSelect",
1340
2035
  importName: "BaseSelect",
1341
2036
  props: {
1342
2037
  options: makeOptionsPropType(),
@@ -1432,7 +2127,7 @@ function registerSelect(loader) {
1432
2127
  });
1433
2128
  registerComponentHelper(loader, SelectValue, {
1434
2129
  name: makeComponentName("select-value"),
1435
- displayName: "Base Selected Value",
2130
+ displayName: "Aria Selected Value",
1436
2131
  importPath: "@plasmicpkgs/react-aria/registerSelect",
1437
2132
  importName: "SelectValue",
1438
2133
  parentComponentName: SELECT_NAME,
@@ -1450,25 +2145,25 @@ function registerSelect(loader) {
1450
2145
  });
1451
2146
  }
1452
2147
 
1453
- var __defProp = Object.defineProperty;
1454
- var __defProps = Object.defineProperties;
1455
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1456
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1457
- var __hasOwnProp = Object.prototype.hasOwnProperty;
1458
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
1459
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1460
- var __spreadValues = (a, b) => {
2148
+ var __defProp$2 = Object.defineProperty;
2149
+ var __defProps$1 = Object.defineProperties;
2150
+ var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
2151
+ var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
2152
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
2153
+ var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
2154
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2155
+ var __spreadValues$2 = (a, b) => {
1461
2156
  for (var prop in b || (b = {}))
1462
- if (__hasOwnProp.call(b, prop))
1463
- __defNormalProp(a, prop, b[prop]);
1464
- if (__getOwnPropSymbols)
1465
- for (var prop of __getOwnPropSymbols(b)) {
1466
- if (__propIsEnum.call(b, prop))
1467
- __defNormalProp(a, prop, b[prop]);
2157
+ if (__hasOwnProp$2.call(b, prop))
2158
+ __defNormalProp$2(a, prop, b[prop]);
2159
+ if (__getOwnPropSymbols$2)
2160
+ for (var prop of __getOwnPropSymbols$2(b)) {
2161
+ if (__propIsEnum$2.call(b, prop))
2162
+ __defNormalProp$2(a, prop, b[prop]);
1468
2163
  }
1469
2164
  return a;
1470
2165
  };
1471
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2166
+ var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1472
2167
  const BaseSwitch = Switch;
1473
2168
  function registerSwitch(loader, overrides) {
1474
2169
  registerComponentHelper(
@@ -1476,10 +2171,10 @@ function registerSwitch(loader, overrides) {
1476
2171
  BaseSwitch,
1477
2172
  {
1478
2173
  name: makeComponentName("switch"),
1479
- displayName: "BaseSwitch",
1480
- importPath: "@plasmicpkgs/react-aria/registerSwitch",
2174
+ displayName: "Aria Switch",
2175
+ importPath: "@plasmicpkgs/react-aria/skinny/registerSwitch",
1481
2176
  importName: "BaseSwitch",
1482
- props: __spreadProps(__spreadValues({}, getCommonInputProps("switch", [
2177
+ props: __spreadProps$1(__spreadValues$2({}, getCommonInputProps("switch", [
1483
2178
  "name",
1484
2179
  "isDisabled",
1485
2180
  "isReadOnly",
@@ -1522,6 +2217,288 @@ function registerSwitch(loader, overrides) {
1522
2217
  );
1523
2218
  }
1524
2219
 
2220
+ var __defProp$1 = Object.defineProperty;
2221
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2222
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2223
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2224
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2225
+ var __spreadValues$1 = (a, b) => {
2226
+ for (var prop in b || (b = {}))
2227
+ if (__hasOwnProp$1.call(b, prop))
2228
+ __defNormalProp$1(a, prop, b[prop]);
2229
+ if (__getOwnPropSymbols$1)
2230
+ for (var prop of __getOwnPropSymbols$1(b)) {
2231
+ if (__propIsEnum$1.call(b, prop))
2232
+ __defNormalProp$1(a, prop, b[prop]);
2233
+ }
2234
+ return a;
2235
+ };
2236
+ function BaseTextArea(props) {
2237
+ return /* @__PURE__ */ React.createElement(TextArea, __spreadValues$1({}, props));
2238
+ }
2239
+ function registerTextArea(loader, overrides) {
2240
+ registerComponentHelper(
2241
+ loader,
2242
+ BaseTextArea,
2243
+ {
2244
+ name: makeComponentName("textarea"),
2245
+ displayName: "Aria TextArea",
2246
+ importPath: "@plasmicpkgs/react-aria/skinny/registerTextArea",
2247
+ importName: "BaseTextArea",
2248
+ props: {
2249
+ placeholder: {
2250
+ type: "string"
2251
+ }
2252
+ },
2253
+ trapsFocus: true
2254
+ },
2255
+ overrides
2256
+ );
2257
+ }
2258
+
2259
+ var __defProp = Object.defineProperty;
2260
+ var __defProps = Object.defineProperties;
2261
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2262
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2263
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2264
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
2265
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2266
+ var __spreadValues = (a, b) => {
2267
+ for (var prop in b || (b = {}))
2268
+ if (__hasOwnProp.call(b, prop))
2269
+ __defNormalProp(a, prop, b[prop]);
2270
+ if (__getOwnPropSymbols)
2271
+ for (var prop of __getOwnPropSymbols(b)) {
2272
+ if (__propIsEnum.call(b, prop))
2273
+ __defNormalProp(a, prop, b[prop]);
2274
+ }
2275
+ return a;
2276
+ };
2277
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2278
+ var __objRest = (source, exclude) => {
2279
+ var target = {};
2280
+ for (var prop in source)
2281
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
2282
+ target[prop] = source[prop];
2283
+ if (source != null && __getOwnPropSymbols)
2284
+ for (var prop of __getOwnPropSymbols(source)) {
2285
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
2286
+ target[prop] = source[prop];
2287
+ }
2288
+ return target;
2289
+ };
2290
+ function BaseTextField(props) {
2291
+ const _a = props, { enableAutoComplete, autoComplete, children } = _a, rest = __objRest(_a, ["enableAutoComplete", "autoComplete", "children"]);
2292
+ return /* @__PURE__ */ React.createElement(
2293
+ TextField,
2294
+ __spreadValues({
2295
+ autoComplete: enableAutoComplete ? autoComplete : void 0
2296
+ }, rest),
2297
+ children
2298
+ );
2299
+ }
2300
+ const componentName = makeComponentName("textField");
2301
+ function registerTextField(loader, overrides) {
2302
+ registerComponentHelper(
2303
+ loader,
2304
+ BaseTextField,
2305
+ {
2306
+ name: componentName,
2307
+ displayName: "Aria TextField",
2308
+ importPath: "@plasmicpkgs/react-aria/skinny/registerTextField",
2309
+ importName: "BaseTextField",
2310
+ // TODO: Support for validate prop
2311
+ props: __spreadProps(__spreadValues({}, getCommonInputProps("input", [
2312
+ "name",
2313
+ "isDisabled",
2314
+ "isReadOnly",
2315
+ "autoFocus",
2316
+ "aria-label",
2317
+ "children",
2318
+ "isRequired"
2319
+ ])), {
2320
+ value: {
2321
+ type: "string",
2322
+ editOnly: true,
2323
+ uncontrolledProp: "defaultValue",
2324
+ description: "The current value"
2325
+ },
2326
+ isInvalid: {
2327
+ // TODO: Not sure if needed
2328
+ displayName: "Invalid",
2329
+ type: "boolean",
2330
+ description: "Whether the input value is invalid",
2331
+ defaultValueHint: false
2332
+ },
2333
+ customValidationErrors: {
2334
+ // TODO: Not sure if needed
2335
+ type: "array",
2336
+ description: "Errors for custom validation"
2337
+ },
2338
+ // validate: {
2339
+ // type: "function" as const,
2340
+ // argNames: ["value"],
2341
+ // argValues: (_ps: any, ctx: any) => [ctx.data[0]],
2342
+ // },
2343
+ enableAutoComplete: {
2344
+ type: "boolean",
2345
+ description: "Whether the browser is allowed to automatically complete the input",
2346
+ defaultValueHint: false
2347
+ },
2348
+ autoComplete: {
2349
+ type: "choice",
2350
+ hidden: ({ enableAutoComplete }) => !enableAutoComplete,
2351
+ description: "Guidance as to the type of data expected in the field",
2352
+ helpText: "For explanations on what each of the values mean, check https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values",
2353
+ options: [
2354
+ "name",
2355
+ "honorific-prefix",
2356
+ "given-name",
2357
+ "additional-name",
2358
+ "family-name",
2359
+ "honorific-suffix",
2360
+ "nickname",
2361
+ "email",
2362
+ "username",
2363
+ "new-password",
2364
+ "current-password",
2365
+ "one-time-code",
2366
+ "organization-title",
2367
+ "organization",
2368
+ "street-address",
2369
+ "shipping",
2370
+ "billing",
2371
+ "address-line1",
2372
+ "address-line2",
2373
+ "address-line3",
2374
+ "address-level4",
2375
+ "address-level3",
2376
+ "address-level2",
2377
+ "address-level1",
2378
+ "country",
2379
+ "country-name",
2380
+ "postal-code",
2381
+ "cc-name",
2382
+ "cc-given-name",
2383
+ "cc-additional-name",
2384
+ "cc-family-name",
2385
+ "cc-number",
2386
+ "cc-exp",
2387
+ "cc-exp-month",
2388
+ "cc-exp-year",
2389
+ "cc-csc",
2390
+ "cc-type",
2391
+ "transaction-currency",
2392
+ "transaction-amount",
2393
+ "language",
2394
+ "bday",
2395
+ "bday-day",
2396
+ "bday-month",
2397
+ "bday-year",
2398
+ "sex",
2399
+ "tel",
2400
+ "tel-country-code",
2401
+ "tel-national",
2402
+ "tel-area-code",
2403
+ "tel-local",
2404
+ "tel-local-suffix",
2405
+ "tel-local-prefix",
2406
+ "tel-extension",
2407
+ "impp",
2408
+ "url",
2409
+ "photo",
2410
+ "webauthn"
2411
+ ]
2412
+ },
2413
+ maxLength: {
2414
+ type: "number",
2415
+ description: "The maximum number of characters supported by the input"
2416
+ },
2417
+ minLength: {
2418
+ type: "number",
2419
+ description: "The minimum number of characters supported by the input"
2420
+ },
2421
+ pattern: {
2422
+ type: "string",
2423
+ description: "Regex pattern that the value of the input must match to be valid",
2424
+ helpText: "For more information about writing Regular Expressions (regex), check out https://regexr.com/",
2425
+ validator: (value) => {
2426
+ try {
2427
+ new RegExp(value);
2428
+ return true;
2429
+ } catch (error) {
2430
+ return "Invalid Regex";
2431
+ }
2432
+ }
2433
+ },
2434
+ type: {
2435
+ type: "choice",
2436
+ defaultValueHint: "text",
2437
+ options: ["text", "search", "url", "tel", "email", "password"]
2438
+ },
2439
+ inputMode: {
2440
+ type: "choice",
2441
+ description: "hint to browsers as to the type of virtual keyboard configuration to use when editing this element or its contents.",
2442
+ options: [
2443
+ "none",
2444
+ "text",
2445
+ "tel",
2446
+ "url",
2447
+ "email",
2448
+ "numeric",
2449
+ "decimal",
2450
+ "search"
2451
+ ]
2452
+ },
2453
+ validationBehavior: {
2454
+ type: "choice",
2455
+ options: ["native", "aria"],
2456
+ description: "Whether to use native HTML form validation to prevent form submission when the value is missing or invalid, or mark the field as required or invalid via ARIA.",
2457
+ defaultValueHint: "native"
2458
+ },
2459
+ onChange: {
2460
+ type: "eventHandler",
2461
+ argTypes: [{ name: "value", type: "string" }]
2462
+ },
2463
+ onFocusChange: {
2464
+ type: "eventHandler",
2465
+ argTypes: [{ name: "isFocused", type: "boolean" }]
2466
+ }
2467
+ }),
2468
+ // NOTE: React-Aria does not support render props for <Input> and <Textarea>, so focusVisible and inputHovered states are not implemented
2469
+ states: {
2470
+ value: {
2471
+ type: "writable",
2472
+ valueProp: "value",
2473
+ onChangeProp: "onChange",
2474
+ variableType: "text"
2475
+ },
2476
+ isFocused: {
2477
+ type: "readonly",
2478
+ onChangeProp: "onFocusChange",
2479
+ variableType: "boolean"
2480
+ }
2481
+ },
2482
+ trapsFocus: true
2483
+ },
2484
+ overrides
2485
+ );
2486
+ const thisName = makeChildComponentName(
2487
+ overrides == null ? void 0 : overrides.parentComponentName,
2488
+ componentName
2489
+ );
2490
+ registerFieldError(loader, { parentComponentName: thisName });
2491
+ registerInput(loader, { parentComponentName: thisName });
2492
+ registerLabel(loader, { parentComponentName: thisName });
2493
+ registerText(loader, {
2494
+ parentComponentName: thisName,
2495
+ props: {
2496
+ slot: { type: "string", readOnly: true, defaultValue: "description" }
2497
+ }
2498
+ });
2499
+ registerTextArea(loader, { parentComponentName: thisName });
2500
+ }
2501
+
1525
2502
  function registerAll(loader) {
1526
2503
  registerSelect(loader);
1527
2504
  registerComboBox(loader);
@@ -1533,6 +2510,10 @@ function registerAll(loader) {
1533
2510
  registerSection(loader);
1534
2511
  registerSwitch(loader);
1535
2512
  registerForm(loader);
2513
+ registerCheckbox(loader);
2514
+ registerCheckboxGroup(loader);
2515
+ registerRadioGroup(loader);
2516
+ registerTextField(loader);
1536
2517
  }
1537
2518
 
1538
2519
  export { registerAll };