@react-spectrum/form 3.0.0-nightly.1394 → 3.0.0-nightly.1395

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.
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- [dir=ltr] ._spectrum-FieldLabel_d2db1f{text-align:left}[dir=rtl] ._spectrum-FieldLabel_d2db1f{text-align:right}._spectrum-FieldLabel_d2db1f{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;box-sizing:border-box;cursor:default;display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;font-size:var(--spectrum-fieldlabel-text-size,var(--spectrum-global-dimension-font-size-75));font-weight:var(--spectrum-fieldlabel-text-font-weight,var(--spectrum-global-font-weight-regular));line-height:var(--spectrum-fieldlabel-text-line-height,var(--spectrum-global-font-line-height-small));padding:var(--spectrum-fieldlabel-padding-top,var(--spectrum-global-dimension-size-50)) 0 var(--spectrum-fieldlabel-padding-bottom,var(--spectrum-global-dimension-size-65));vertical-align:top}[dir=ltr] ._spectrum-FieldLabel--positionSide_d2db1f{padding-right:var(--spectrum-fieldlabel-side-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] ._spectrum-FieldLabel--positionSide_d2db1f{padding-left:var(--spectrum-fieldlabel-side-padding-x,var(--spectrum-global-dimension-size-100))}._spectrum-FieldLabel--positionSide_d2db1f{display:-ms-inline-flexbox;display:inline-flex;padding-top:var(--spectrum-fieldlabel-side-padding-top,var(--spectrum-global-dimension-size-100))}[dir=ltr] ._spectrum-FieldLabel-requiredIcon_d2db1f{margin-right:0}[dir=rtl] ._spectrum-FieldLabel-requiredIcon_d2db1f{margin-left:0}[dir=ltr] ._spectrum-FieldLabel-requiredIcon_d2db1f{margin-left:var(--spectrum-fieldlabel-asterisk-gap,var(--spectrum-global-dimension-size-25))}[dir=rtl] ._spectrum-FieldLabel-requiredIcon_d2db1f{margin-right:var(--spectrum-fieldlabel-asterisk-gap,var(--spectrum-global-dimension-size-25))}._spectrum-FieldLabel-requiredIcon_d2db1f{margin-bottom:0;margin-top:var(--spectrum-fieldlabel-asterisk-margin-y,var(--spectrum-global-dimension-size-50))}[dir=ltr] ._spectrum-FieldLabel--alignEnd_d2db1f{text-align:right}[dir=rtl] ._spectrum-FieldLabel--alignEnd_d2db1f{text-align:left}._spectrum-FieldLabel--alignEnd_d2db1f{-ms-flex-pack:end;justify-content:flex-end}._spectrum-Field_d2db1f{--spectrum-field-default-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400))}._spectrum-Field_d2db1f._spectrum-Field--positionTop_d2db1f{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;width:var(--spectrum-field-default-width)}._spectrum-Field_d2db1f._spectrum-Field--positionTop_d2db1f ._spectrum-Field-field_d2db1f{width:100%}._spectrum-Field_d2db1f._spectrum-Field--positionTop_d2db1f ._spectrum-Field-field--multiline_d2db1f{-ms-flex:1 1 auto;flex:1 1 auto}._spectrum-Field_d2db1f._spectrum-Field--positionSide_d2db1f{-ms-flex-align:start;align-items:flex-start;display:-ms-inline-flexbox;display:inline-flex}._spectrum-Field_d2db1f._spectrum-Field--positionSide_d2db1f ._spectrum-Field-wrapper_d2db1f{-ms-flex:1;flex:1;min-width:0;width:var(--spectrum-field-default-width)}._spectrum-Field_d2db1f._spectrum-Field--positionSide_d2db1f ._spectrum-Field-wrapper_d2db1f ._spectrum-Field-field_d2db1f{width:100%}._spectrum-Field_d2db1f._spectrum-Field--positionSide_d2db1f ._spectrum-Field-field_d2db1f{-ms-flex:1;flex:1;min-width:0}._spectrum-Field_d2db1f._spectrum-Field--positionSide_d2db1f ._spectrum-Field-field--multiline_d2db1f{height:100%}[dir=ltr] ._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f{text-align:left}[dir=rtl] ._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f{text-align:right}._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f{border-collapse:initial;border-spacing:0 var(--spectrum-global-dimension-size-300);display:table;margin:calc(var(--spectrum-global-dimension-size-250) * -1) 0}._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f ._spectrum-Field_d2db1f{display:table-row;width:100%}._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f ._spectrum-FieldLabel_d2db1f{display:table-cell}._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f ._spectrum-Field-wrapper_d2db1f{width:100%}._spectrum-Form_d2db1f._spectrum-Form--positionSide_d2db1f ._spectrum-Field-field_d2db1f{display:table-cell;min-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400));width:auto}._spectrum-Form_d2db1f._spectrum-Form--positionTop_d2db1f{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0;min-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400))}._spectrum-Form_d2db1f._spectrum-Form--positionTop_d2db1f>*{margin-top:var(--spectrum-global-dimension-size-100);width:100%}._spectrum-FieldLabel_d2db1f,._spectrum-Form-itemLabel_d2db1f{color:var(--spectrum-fieldlabel-text-color,var(--spectrum-alias-label-text-color))}._spectrum-FieldLabel_d2db1f._is-disabled_d2db1f,._spectrum-Form-itemLabel_d2db1f._is-disabled_d2db1f{color:var(--spectrum-fieldlabel-text-color-disabled,var(--spectrum-alias-text-color-disabled))}._spectrum-FieldLabel_d2db1f._is-disabled_d2db1f ._spectrum-FieldLabel-requiredIcon_d2db1f,._spectrum-Form-itemLabel_d2db1f._is-disabled_d2db1f ._spectrum-FieldLabel-requiredIcon_d2db1f{color:var(--spectrum-fieldlabel-asterisk-color-disabled,var(--spectrum-alias-text-color-disabled))}._spectrum-FieldLabel-requiredIcon_d2db1f{color:var(--spectrum-fieldlabel-asterisk-color,var(--spectrum-global-color-gray-600))}
1
+ [dir=ltr] .spectrum-FieldLabel_d2db1f{text-align:left}[dir=rtl] .spectrum-FieldLabel_d2db1f{text-align:right}.spectrum-FieldLabel_d2db1f{box-sizing:border-box;padding:var(--spectrum-fieldlabel-padding-top,var(--spectrum-global-dimension-size-50))0 var(--spectrum-fieldlabel-padding-bottom,var(--spectrum-global-dimension-size-65));font-size:var(--spectrum-fieldlabel-text-size,var(--spectrum-global-dimension-font-size-75));font-weight:var(--spectrum-fieldlabel-text-font-weight,var(--spectrum-global-font-weight-regular));line-height:var(--spectrum-fieldlabel-text-line-height,var(--spectrum-global-font-line-height-small));vertical-align:top;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased;cursor:default;flex:none;display:flex}[dir=ltr] .spectrum-FieldLabel--positionSide_d2db1f{padding-right:var(--spectrum-fieldlabel-side-padding-x,var(--spectrum-global-dimension-size-100))}[dir=rtl] .spectrum-FieldLabel--positionSide_d2db1f{padding-left:var(--spectrum-fieldlabel-side-padding-x,var(--spectrum-global-dimension-size-100))}.spectrum-FieldLabel--positionSide_d2db1f{padding-top:var(--spectrum-fieldlabel-side-padding-top,var(--spectrum-global-dimension-size-100));display:inline-flex}[dir=ltr] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-right:0}[dir=rtl] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-left:0}[dir=ltr] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-left:var(--spectrum-fieldlabel-asterisk-gap,var(--spectrum-global-dimension-size-25))}[dir=rtl] .spectrum-FieldLabel-requiredIcon_d2db1f{margin-right:var(--spectrum-fieldlabel-asterisk-gap,var(--spectrum-global-dimension-size-25))}.spectrum-FieldLabel-requiredIcon_d2db1f{margin-top:var(--spectrum-fieldlabel-asterisk-margin-y,var(--spectrum-global-dimension-size-50));margin-bottom:0}[dir=ltr] .spectrum-FieldLabel--alignEnd_d2db1f{text-align:right}[dir=rtl] .spectrum-FieldLabel--alignEnd_d2db1f{text-align:left}.spectrum-FieldLabel--alignEnd_d2db1f{justify-content:flex-end}.spectrum-Field_d2db1f{--spectrum-field-default-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400))}.spectrum-Field_d2db1f.spectrum-Field--positionTop_d2db1f{width:var(--spectrum-field-default-width);flex-direction:column;display:inline-flex}.spectrum-Field_d2db1f.spectrum-Field--positionTop_d2db1f .spectrum-Field-field_d2db1f{width:100%}.spectrum-Field_d2db1f.spectrum-Field--positionTop_d2db1f .spectrum-Field-field--multiline_d2db1f{flex:auto}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f{align-items:flex-start;display:inline-flex}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-wrapper_d2db1f{min-width:0;width:var(--spectrum-field-default-width);flex:1}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-wrapper_d2db1f .spectrum-Field-field_d2db1f{width:100%}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-field_d2db1f{min-width:0;flex:1}.spectrum-Field_d2db1f.spectrum-Field--positionSide_d2db1f .spectrum-Field-field--multiline_d2db1f{height:100%}[dir=ltr] .spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f{text-align:left}[dir=rtl] .spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f{text-align:right}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f{border-collapse:separate;border-spacing:0 var(--spectrum-global-dimension-size-300);margin:calc(var(--spectrum-global-dimension-size-250)*-1)0;display:table}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-Field_d2db1f{width:100%;display:table-row}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-FieldLabel_d2db1f{display:table-cell}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-Field-wrapper_d2db1f{width:100%}.spectrum-Form_d2db1f.spectrum-Form--positionSide_d2db1f .spectrum-Field-field_d2db1f{width:auto;min-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400));display:table-cell}.spectrum-Form_d2db1f.spectrum-Form--positionTop_d2db1f{min-width:var(--spectrum-alias-single-line-width,var(--spectrum-global-dimension-size-2400));flex-direction:column;margin:0;display:flex}.spectrum-Form_d2db1f.spectrum-Form--positionTop_d2db1f>*{margin-top:var(--spectrum-global-dimension-size-100);width:100%}.spectrum-FieldLabel_d2db1f,.spectrum-Form-itemLabel_d2db1f{color:var(--spectrum-fieldlabel-text-color,var(--spectrum-alias-label-text-color))}.spectrum-FieldLabel_d2db1f.is-disabled_d2db1f,.spectrum-Form-itemLabel_d2db1f.is-disabled_d2db1f{color:var(--spectrum-fieldlabel-text-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-FieldLabel_d2db1f.is-disabled_d2db1f .spectrum-FieldLabel-requiredIcon_d2db1f,.spectrum-Form-itemLabel_d2db1f.is-disabled_d2db1f .spectrum-FieldLabel-requiredIcon_d2db1f{color:var(--spectrum-fieldlabel-asterisk-color-disabled,var(--spectrum-alias-text-color-disabled))}.spectrum-FieldLabel-requiredIcon_d2db1f{color:var(--spectrum-fieldlabel-asterisk-color,var(--spectrum-global-color-gray-600))}
package/dist/main.js CHANGED
@@ -1,8 +1,8 @@
1
1
  require("./main.css");
2
- var $eUeuK$reactspectrumutils = require("@react-spectrum/utils");
3
- var $eUeuK$reactariautils = require("@react-aria/utils");
4
- var $eUeuK$reactspectrumprovider = require("@react-spectrum/provider");
5
- var $eUeuK$react = require("react");
2
+ var $j1tlT$reactspectrumutils = require("@react-spectrum/utils");
3
+ var $j1tlT$reactariautils = require("@react-aria/utils");
4
+ var $j1tlT$reactspectrumprovider = require("@react-spectrum/provider");
5
+ var $j1tlT$react = require("react");
6
6
 
7
7
  function $parcel$exportWildcard(dest, source) {
8
8
  Object.keys(source).forEach(function(key) {
@@ -26,73 +26,73 @@ function $parcel$interopDefault(a) {
26
26
  function $parcel$export(e, n, v, s) {
27
27
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28
28
  }
29
- var $0bd3da21be266b71$exports = {};
29
+ var $a5aa4b4f0ab635b5$exports = {};
30
30
 
31
- $parcel$export($0bd3da21be266b71$exports, "useFormProps", () => $0bd3da21be266b71$export$a6b5be5c6b451665);
32
- $parcel$export($0bd3da21be266b71$exports, "Form", () => $0bd3da21be266b71$export$a7fed597f4b8afd8);
31
+ $parcel$export($a5aa4b4f0ab635b5$exports, "useFormProps", () => $a5aa4b4f0ab635b5$export$a6b5be5c6b451665);
32
+ $parcel$export($a5aa4b4f0ab635b5$exports, "Form", () => $a5aa4b4f0ab635b5$export$a7fed597f4b8afd8);
33
33
 
34
34
 
35
35
 
36
36
 
37
- var $6cac92f0e3226af5$exports = {};
37
+ var $dba55fd5e831a7b6$exports = {};
38
38
 
39
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-FieldLabel", () => $6cac92f0e3226af5$export$493d18e796ae054, (v) => $6cac92f0e3226af5$export$493d18e796ae054 = v);
40
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-FieldLabel--positionSide", () => $6cac92f0e3226af5$export$9e6f19dc21f22f2e, (v) => $6cac92f0e3226af5$export$9e6f19dc21f22f2e = v);
41
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-FieldLabel-requiredIcon", () => $6cac92f0e3226af5$export$7c47642c7d46f3c9, (v) => $6cac92f0e3226af5$export$7c47642c7d46f3c9 = v);
42
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-FieldLabel--alignEnd", () => $6cac92f0e3226af5$export$885efcc08143a987, (v) => $6cac92f0e3226af5$export$885efcc08143a987 = v);
43
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Field", () => $6cac92f0e3226af5$export$f6d480ae1e56eba0, (v) => $6cac92f0e3226af5$export$f6d480ae1e56eba0 = v);
44
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Field--positionTop", () => $6cac92f0e3226af5$export$a4ea780a9064d7f9, (v) => $6cac92f0e3226af5$export$a4ea780a9064d7f9 = v);
45
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Field-field", () => $6cac92f0e3226af5$export$3ab8a3dc7f0563d, (v) => $6cac92f0e3226af5$export$3ab8a3dc7f0563d = v);
46
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Field-field--multiline", () => $6cac92f0e3226af5$export$f58a1e966a92ba5e, (v) => $6cac92f0e3226af5$export$f58a1e966a92ba5e = v);
47
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Field--positionSide", () => $6cac92f0e3226af5$export$2963225c91179589, (v) => $6cac92f0e3226af5$export$2963225c91179589 = v);
48
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Field-wrapper", () => $6cac92f0e3226af5$export$127df0b7290eb8ef, (v) => $6cac92f0e3226af5$export$127df0b7290eb8ef = v);
49
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Form", () => $6cac92f0e3226af5$export$94d2bcc94afabd89, (v) => $6cac92f0e3226af5$export$94d2bcc94afabd89 = v);
50
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Form--positionSide", () => $6cac92f0e3226af5$export$7f44db659563c8f4, (v) => $6cac92f0e3226af5$export$7f44db659563c8f4 = v);
51
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Form--positionTop", () => $6cac92f0e3226af5$export$11b8bc81fe551057, (v) => $6cac92f0e3226af5$export$11b8bc81fe551057 = v);
52
- $parcel$export($6cac92f0e3226af5$exports, "spectrum-Form-itemLabel", () => $6cac92f0e3226af5$export$51ec27881a1e3928, (v) => $6cac92f0e3226af5$export$51ec27881a1e3928 = v);
53
- $parcel$export($6cac92f0e3226af5$exports, "is-disabled", () => $6cac92f0e3226af5$export$d35bc1e505d1ebbf, (v) => $6cac92f0e3226af5$export$d35bc1e505d1ebbf = v);
54
- var $6cac92f0e3226af5$export$493d18e796ae054;
55
- var $6cac92f0e3226af5$export$9e6f19dc21f22f2e;
56
- var $6cac92f0e3226af5$export$7c47642c7d46f3c9;
57
- var $6cac92f0e3226af5$export$885efcc08143a987;
58
- var $6cac92f0e3226af5$export$f6d480ae1e56eba0;
59
- var $6cac92f0e3226af5$export$a4ea780a9064d7f9;
60
- var $6cac92f0e3226af5$export$3ab8a3dc7f0563d;
61
- var $6cac92f0e3226af5$export$f58a1e966a92ba5e;
62
- var $6cac92f0e3226af5$export$2963225c91179589;
63
- var $6cac92f0e3226af5$export$127df0b7290eb8ef;
64
- var $6cac92f0e3226af5$export$94d2bcc94afabd89;
65
- var $6cac92f0e3226af5$export$7f44db659563c8f4;
66
- var $6cac92f0e3226af5$export$11b8bc81fe551057;
67
- var $6cac92f0e3226af5$export$51ec27881a1e3928;
68
- var $6cac92f0e3226af5$export$d35bc1e505d1ebbf;
69
- $6cac92f0e3226af5$export$493d18e796ae054 = "_spectrum-FieldLabel_d2db1f";
70
- $6cac92f0e3226af5$export$9e6f19dc21f22f2e = "_spectrum-FieldLabel--positionSide_d2db1f";
71
- $6cac92f0e3226af5$export$7c47642c7d46f3c9 = "_spectrum-FieldLabel-requiredIcon_d2db1f";
72
- $6cac92f0e3226af5$export$885efcc08143a987 = "_spectrum-FieldLabel--alignEnd_d2db1f";
73
- $6cac92f0e3226af5$export$f6d480ae1e56eba0 = "_spectrum-Field_d2db1f";
74
- $6cac92f0e3226af5$export$a4ea780a9064d7f9 = "_spectrum-Field--positionTop_d2db1f";
75
- $6cac92f0e3226af5$export$3ab8a3dc7f0563d = "_spectrum-Field-field_d2db1f";
76
- $6cac92f0e3226af5$export$f58a1e966a92ba5e = "_spectrum-Field-field--multiline_d2db1f";
77
- $6cac92f0e3226af5$export$2963225c91179589 = "_spectrum-Field--positionSide_d2db1f";
78
- $6cac92f0e3226af5$export$127df0b7290eb8ef = "_spectrum-Field-wrapper_d2db1f";
79
- $6cac92f0e3226af5$export$94d2bcc94afabd89 = "_spectrum-Form_d2db1f";
80
- $6cac92f0e3226af5$export$7f44db659563c8f4 = "_spectrum-Form--positionSide_d2db1f";
81
- $6cac92f0e3226af5$export$11b8bc81fe551057 = "_spectrum-Form--positionTop_d2db1f";
82
- $6cac92f0e3226af5$export$51ec27881a1e3928 = "_spectrum-Form-itemLabel_d2db1f";
83
- $6cac92f0e3226af5$export$d35bc1e505d1ebbf = "_is-disabled_d2db1f";
39
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-FieldLabel", () => $dba55fd5e831a7b6$export$493d18e796ae054, (v) => $dba55fd5e831a7b6$export$493d18e796ae054 = v);
40
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-FieldLabel--positionSide", () => $dba55fd5e831a7b6$export$9e6f19dc21f22f2e, (v) => $dba55fd5e831a7b6$export$9e6f19dc21f22f2e = v);
41
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-FieldLabel-requiredIcon", () => $dba55fd5e831a7b6$export$7c47642c7d46f3c9, (v) => $dba55fd5e831a7b6$export$7c47642c7d46f3c9 = v);
42
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-FieldLabel--alignEnd", () => $dba55fd5e831a7b6$export$885efcc08143a987, (v) => $dba55fd5e831a7b6$export$885efcc08143a987 = v);
43
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Field", () => $dba55fd5e831a7b6$export$f6d480ae1e56eba0, (v) => $dba55fd5e831a7b6$export$f6d480ae1e56eba0 = v);
44
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Field--positionTop", () => $dba55fd5e831a7b6$export$a4ea780a9064d7f9, (v) => $dba55fd5e831a7b6$export$a4ea780a9064d7f9 = v);
45
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Field-field", () => $dba55fd5e831a7b6$export$3ab8a3dc7f0563d, (v) => $dba55fd5e831a7b6$export$3ab8a3dc7f0563d = v);
46
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Field-field--multiline", () => $dba55fd5e831a7b6$export$f58a1e966a92ba5e, (v) => $dba55fd5e831a7b6$export$f58a1e966a92ba5e = v);
47
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Field--positionSide", () => $dba55fd5e831a7b6$export$2963225c91179589, (v) => $dba55fd5e831a7b6$export$2963225c91179589 = v);
48
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Field-wrapper", () => $dba55fd5e831a7b6$export$127df0b7290eb8ef, (v) => $dba55fd5e831a7b6$export$127df0b7290eb8ef = v);
49
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Form", () => $dba55fd5e831a7b6$export$94d2bcc94afabd89, (v) => $dba55fd5e831a7b6$export$94d2bcc94afabd89 = v);
50
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Form--positionSide", () => $dba55fd5e831a7b6$export$7f44db659563c8f4, (v) => $dba55fd5e831a7b6$export$7f44db659563c8f4 = v);
51
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Form--positionTop", () => $dba55fd5e831a7b6$export$11b8bc81fe551057, (v) => $dba55fd5e831a7b6$export$11b8bc81fe551057 = v);
52
+ $parcel$export($dba55fd5e831a7b6$exports, "spectrum-Form-itemLabel", () => $dba55fd5e831a7b6$export$51ec27881a1e3928, (v) => $dba55fd5e831a7b6$export$51ec27881a1e3928 = v);
53
+ $parcel$export($dba55fd5e831a7b6$exports, "is-disabled", () => $dba55fd5e831a7b6$export$d35bc1e505d1ebbf, (v) => $dba55fd5e831a7b6$export$d35bc1e505d1ebbf = v);
54
+ var $dba55fd5e831a7b6$export$493d18e796ae054;
55
+ var $dba55fd5e831a7b6$export$9e6f19dc21f22f2e;
56
+ var $dba55fd5e831a7b6$export$7c47642c7d46f3c9;
57
+ var $dba55fd5e831a7b6$export$885efcc08143a987;
58
+ var $dba55fd5e831a7b6$export$f6d480ae1e56eba0;
59
+ var $dba55fd5e831a7b6$export$a4ea780a9064d7f9;
60
+ var $dba55fd5e831a7b6$export$3ab8a3dc7f0563d;
61
+ var $dba55fd5e831a7b6$export$f58a1e966a92ba5e;
62
+ var $dba55fd5e831a7b6$export$2963225c91179589;
63
+ var $dba55fd5e831a7b6$export$127df0b7290eb8ef;
64
+ var $dba55fd5e831a7b6$export$94d2bcc94afabd89;
65
+ var $dba55fd5e831a7b6$export$7f44db659563c8f4;
66
+ var $dba55fd5e831a7b6$export$11b8bc81fe551057;
67
+ var $dba55fd5e831a7b6$export$51ec27881a1e3928;
68
+ var $dba55fd5e831a7b6$export$d35bc1e505d1ebbf;
69
+ $dba55fd5e831a7b6$export$493d18e796ae054 = "spectrum-FieldLabel_d2db1f";
70
+ $dba55fd5e831a7b6$export$9e6f19dc21f22f2e = "spectrum-FieldLabel--positionSide_d2db1f";
71
+ $dba55fd5e831a7b6$export$7c47642c7d46f3c9 = "spectrum-FieldLabel-requiredIcon_d2db1f";
72
+ $dba55fd5e831a7b6$export$885efcc08143a987 = "spectrum-FieldLabel--alignEnd_d2db1f";
73
+ $dba55fd5e831a7b6$export$f6d480ae1e56eba0 = "spectrum-Field_d2db1f";
74
+ $dba55fd5e831a7b6$export$a4ea780a9064d7f9 = "spectrum-Field--positionTop_d2db1f";
75
+ $dba55fd5e831a7b6$export$3ab8a3dc7f0563d = "spectrum-Field-field_d2db1f";
76
+ $dba55fd5e831a7b6$export$f58a1e966a92ba5e = "spectrum-Field-field--multiline_d2db1f";
77
+ $dba55fd5e831a7b6$export$2963225c91179589 = "spectrum-Field--positionSide_d2db1f";
78
+ $dba55fd5e831a7b6$export$127df0b7290eb8ef = "spectrum-Field-wrapper_d2db1f";
79
+ $dba55fd5e831a7b6$export$94d2bcc94afabd89 = "spectrum-Form_d2db1f";
80
+ $dba55fd5e831a7b6$export$7f44db659563c8f4 = "spectrum-Form--positionSide_d2db1f";
81
+ $dba55fd5e831a7b6$export$11b8bc81fe551057 = "spectrum-Form--positionTop_d2db1f";
82
+ $dba55fd5e831a7b6$export$51ec27881a1e3928 = "spectrum-Form-itemLabel_d2db1f";
83
+ $dba55fd5e831a7b6$export$d35bc1e505d1ebbf = "is-disabled_d2db1f";
84
84
 
85
85
 
86
- let $0bd3da21be266b71$var$FormContext = /*#__PURE__*/ ($parcel$interopDefault($eUeuK$react)).createContext({
86
+ let $a5aa4b4f0ab635b5$var$FormContext = /*#__PURE__*/ ($parcel$interopDefault($j1tlT$react)).createContext({
87
87
  });
88
- function $0bd3da21be266b71$export$a6b5be5c6b451665(props) {
89
- let ctx = $eUeuK$react.useContext($0bd3da21be266b71$var$FormContext);
88
+ function $a5aa4b4f0ab635b5$export$a6b5be5c6b451665(props) {
89
+ let ctx = $j1tlT$react.useContext($a5aa4b4f0ab635b5$var$FormContext);
90
90
  return {
91
91
  ...ctx,
92
92
  ...props
93
93
  };
94
94
  }
95
- const $0bd3da21be266b71$var$formPropNames = new Set([
95
+ const $a5aa4b4f0ab635b5$var$formPropNames = new Set([
96
96
  'action',
97
97
  'autoComplete',
98
98
  'encType',
@@ -100,31 +100,31 @@ const $0bd3da21be266b71$var$formPropNames = new Set([
100
100
  'target',
101
101
  'onSubmit'
102
102
  ]);
103
- function $0bd3da21be266b71$var$Form(props, ref) {
104
- props = $eUeuK$reactspectrumprovider.useProviderProps(props);
103
+ function $a5aa4b4f0ab635b5$var$Form(props, ref) {
104
+ props = $j1tlT$reactspectrumprovider.useProviderProps(props);
105
105
  let { children: children , labelPosition: labelPosition = 'top' , labelAlign: labelAlign = 'start' , isRequired: isRequired , necessityIndicator: necessityIndicator , isQuiet: isQuiet , isEmphasized: isEmphasized , isDisabled: isDisabled , isReadOnly: isReadOnly , validationState: validationState , ...otherProps } = props;
106
- let { styleProps: styleProps } = $eUeuK$reactspectrumutils.useStyleProps(otherProps);
107
- let domRef = $eUeuK$reactspectrumutils.useDOMRef(ref);
106
+ let { styleProps: styleProps } = $j1tlT$reactspectrumutils.useStyleProps(otherProps);
107
+ let domRef = $j1tlT$reactspectrumutils.useDOMRef(ref);
108
108
  let ctx = {
109
109
  labelPosition: labelPosition,
110
110
  labelAlign: labelAlign,
111
111
  necessityIndicator: necessityIndicator
112
112
  };
113
- return(/*#__PURE__*/ ($parcel$interopDefault($eUeuK$react)).createElement("form", {
114
- ...$eUeuK$reactariautils.filterDOMProps(otherProps, {
113
+ return(/*#__PURE__*/ ($parcel$interopDefault($j1tlT$react)).createElement("form", {
114
+ ...$j1tlT$reactariautils.filterDOMProps(otherProps, {
115
115
  labelable: true,
116
- propNames: $0bd3da21be266b71$var$formPropNames
116
+ propNames: $a5aa4b4f0ab635b5$var$formPropNames
117
117
  }),
118
118
  ...styleProps,
119
119
  noValidate: true,
120
120
  ref: domRef,
121
- className: $eUeuK$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($6cac92f0e3226af5$exports)), 'spectrum-Form', {
121
+ className: $j1tlT$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($dba55fd5e831a7b6$exports)), 'spectrum-Form', {
122
122
  'spectrum-Form--positionSide': labelPosition === 'side',
123
123
  'spectrum-Form--positionTop': labelPosition === 'top'
124
124
  }, styleProps.className)
125
- }, /*#__PURE__*/ ($parcel$interopDefault($eUeuK$react)).createElement($0bd3da21be266b71$var$FormContext.Provider, {
125
+ }, /*#__PURE__*/ ($parcel$interopDefault($j1tlT$react)).createElement($a5aa4b4f0ab635b5$var$FormContext.Provider, {
126
126
  value: ctx
127
- }, /*#__PURE__*/ ($parcel$interopDefault($eUeuK$react)).createElement($eUeuK$reactspectrumprovider.Provider, {
127
+ }, /*#__PURE__*/ ($parcel$interopDefault($j1tlT$react)).createElement($j1tlT$reactspectrumprovider.Provider, {
128
128
  isQuiet: isQuiet,
129
129
  isEmphasized: isEmphasized,
130
130
  isDisabled: isDisabled,
@@ -135,10 +135,10 @@ function $0bd3da21be266b71$var$Form(props, ref) {
135
135
  }
136
136
  /**
137
137
  * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
138
- */ const $0bd3da21be266b71$export$a7fed597f4b8afd8 = /*#__PURE__*/ ($parcel$interopDefault($eUeuK$react)).forwardRef($0bd3da21be266b71$var$Form);
138
+ */ const $a5aa4b4f0ab635b5$export$a7fed597f4b8afd8 = /*#__PURE__*/ ($parcel$interopDefault($j1tlT$react)).forwardRef($a5aa4b4f0ab635b5$var$Form);
139
139
 
140
140
 
141
- $parcel$exportWildcard(module.exports, $0bd3da21be266b71$exports);
141
+ $parcel$exportWildcard(module.exports, $a5aa4b4f0ab635b5$exports);
142
142
 
143
143
 
144
144
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAqC;AACrC,GAAmD;AACnD,GAAkD;AAClD,GAA+C;AAC/C,GAAgC;AAChC,GAA6C;AAC7C,GAAsC;AACtC,GAAiD;AACjD,GAA8C;AAC9C,GAAwC;AACxC,GAA+B;AAC/B,GAA6C;AAC7C,GAA4C;AAC5C,GAAyC;AACzC,GAA6B;AAd7B,wCAAqC,GAAG,CAA6B;AACrE,yCAAmD,GAAG,CAA2C;AACjG,yCAAkD,GAAG,CAA0C;AAC/F,yCAA+C,GAAG,CAAuC;AACzF,yCAAgC,GAAG,CAAwB;AAC3D,yCAA6C,GAAG,CAAqC;AACrF,wCAAsC,GAAG,CAA8B;AACvE,yCAAiD,GAAG,CAAyC;AAC7F,yCAA8C,GAAG,CAAsC;AACvF,yCAAwC,GAAG,CAAgC;AAC3E,yCAA+B,GAAG,CAAuB;AACzD,yCAA6C,GAAG,CAAqC;AACrF,yCAA4C,GAAG,CAAoC;AACnF,yCAAyC,GAAG,CAAiC;AAC7E,yCAA6B,GAAG,CAAqB;;;ADMrD,GAAG,CAAC,iCAAW,iBAAG,sCAAK,CAAC,aAAa,CAAyB,CAAC;AAAA,CAAC;SAChD,yCAAY,CAAmC,KAAQ,EAAK,CAAC;IAC3E,GAAG,CAAC,GAAG,GAAG,uBAAU,CAAC,iCAAW;IAChC,MAAM,CAAC,CAAC;WAAG,GAAG;WAAK,KAAK;IAAA,CAAC;AAC3B,CAAC;AAED,KAAK,CAAC,mCAAa,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAQ;IACR,CAAc;IACd,CA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AU,CAAC,0BAAI","sources":["packages/@react-spectrum/form/src/index.ts","packages/@react-spectrum/form/src/Form.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport * from './Form';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Alignment, DOMRef, LabelPosition, SpectrumLabelableProps} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Provider, useProviderProps} from '@react-spectrum/provider';\nimport React, {useContext} from 'react';\nimport {SpectrumFormProps} from '@react-types/form';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\n\nlet FormContext = React.createContext<SpectrumLabelableProps>({});\nexport function useFormProps<T extends SpectrumLabelableProps>(props: T): T {\n let ctx = useContext(FormContext);\n return {...ctx, ...props};\n}\n\nconst formPropNames = new Set([\n 'action',\n 'autoComplete',\n 'encType',\n 'method',\n 'target',\n 'onSubmit'\n]);\n\nfunction Form(props: SpectrumFormProps, ref: DOMRef<HTMLFormElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top' as LabelPosition,\n labelAlign = 'start' as Alignment,\n isRequired,\n necessityIndicator,\n isQuiet,\n isEmphasized,\n isDisabled,\n isReadOnly,\n validationState,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let ctx = {\n labelPosition,\n labelAlign,\n necessityIndicator\n };\n\n return (\n <form\n {...filterDOMProps(otherProps, {labelable: true, propNames: formPropNames})}\n {...styleProps}\n noValidate\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Form',\n {\n 'spectrum-Form--positionSide': labelPosition === 'side',\n 'spectrum-Form--positionTop': labelPosition === 'top'\n },\n styleProps.className\n )\n }>\n <FormContext.Provider value={ctx}>\n <Provider\n isQuiet={isQuiet}\n isEmphasized={isEmphasized}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isRequired={isRequired}\n validationState={validationState}>\n {children}\n </Provider>\n </FormContext.Provider>\n </form>\n );\n}\n\n/**\n * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.\n */\nconst _Form = React.forwardRef(Form);\nexport {_Form as Form};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAqC;AACrC,GAAmD;AACnD,GAAkD;AAClD,GAA+C;AAC/C,GAAgC;AAChC,GAA6C;AAC7C,GAAsC;AAC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AC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAE1B,GAAG,CAAC,GAAG,GAAG,CAAC;uBACT,aAAa;oBACb,UAAU;4BACV,kBAAkB;IACpB,CAAC;IAED,MAAM,oEACH,CAAI;WACC,oCAAc,CAAC,UAAU,EAAE,CAAC;YAAA,SAAS,EAAE,IAAI;YAAE,SAAS,EAAE,mCAAa;QAAA,CAAC;WACtE,UAAU;QACd,UAAU,EAAV,IAAU;QACV,GAAG,EAAE,MAAM;QACX,SAAS,EACP,oCAAU,CACR,gEAAM,EACN,CAAe,gBACf,CAAC;YACC,CAA6B,8BAAE,aAAa,KAAK,CAAM;YACvD,CAA4B,6BAAE,aAAa,KAAK,CAAK;QACvD,CAAC,EACD,UAAU,CAAC,SAAS;0EAGvB,iCAAW,CAAC,QAAQ;QAAC,KAAK,EAAE,GAAG;0EAC7B,qCAAQ;QACP,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,eAAe;OAC/B,QAAQ;AAKnB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAK,iBAAG,sCAAK,CAAC,UAAU,CAAC,0BAAI","sources":["packages/@react-spectrum/form/src/index.ts","packages/@react-spectrum/form/src/Form.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport * from './Form';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Alignment, DOMRef, LabelPosition, SpectrumLabelableProps} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Provider, useProviderProps} from '@react-spectrum/provider';\nimport React, {useContext} from 'react';\nimport {SpectrumFormProps} from '@react-types/form';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\n\nlet FormContext = React.createContext<SpectrumLabelableProps>({});\nexport function useFormProps<T extends SpectrumLabelableProps>(props: T): T {\n let ctx = useContext(FormContext);\n return {...ctx, ...props};\n}\n\nconst formPropNames = new Set([\n 'action',\n 'autoComplete',\n 'encType',\n 'method',\n 'target',\n 'onSubmit'\n]);\n\nfunction Form(props: SpectrumFormProps, ref: DOMRef<HTMLFormElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top' as LabelPosition,\n labelAlign = 'start' as Alignment,\n isRequired,\n necessityIndicator,\n isQuiet,\n isEmphasized,\n isDisabled,\n isReadOnly,\n validationState,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let ctx = {\n labelPosition,\n labelAlign,\n necessityIndicator\n };\n\n return (\n <form\n {...filterDOMProps(otherProps, {labelable: true, propNames: formPropNames})}\n {...styleProps}\n noValidate\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Form',\n {\n 'spectrum-Form--positionSide': labelPosition === 'side',\n 'spectrum-Form--positionTop': labelPosition === 'top'\n },\n styleProps.className\n )\n }>\n <FormContext.Provider value={ctx}>\n <Provider\n isQuiet={isQuiet}\n isEmphasized={isEmphasized}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isRequired={isRequired}\n validationState={validationState}>\n {children}\n </Provider>\n </FormContext.Provider>\n </form>\n );\n}\n\n/**\n * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.\n */\nconst _Form = React.forwardRef(Form);\nexport {_Form as Form};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./main.css";
2
- import {useStyleProps as $1hmRW$useStyleProps, useDOMRef as $1hmRW$useDOMRef, classNames as $1hmRW$classNames} from "@react-spectrum/utils";
3
- import {filterDOMProps as $1hmRW$filterDOMProps} from "@react-aria/utils";
4
- import {useProviderProps as $1hmRW$useProviderProps, Provider as $1hmRW$Provider} from "@react-spectrum/provider";
5
- import $1hmRW$react, {useContext as $1hmRW$useContext} from "react";
2
+ import {useStyleProps as $gDbYp$useStyleProps, useDOMRef as $gDbYp$useDOMRef, classNames as $gDbYp$classNames} from "@react-spectrum/utils";
3
+ import {filterDOMProps as $gDbYp$filterDOMProps} from "@react-aria/utils";
4
+ import {useProviderProps as $gDbYp$useProviderProps, Provider as $gDbYp$Provider} from "@react-spectrum/provider";
5
+ import $gDbYp$react, {useContext as $gDbYp$useContext} from "react";
6
6
 
7
7
  function $parcel$interopDefault(a) {
8
8
  return a && a.__esModule ? a.default : a;
@@ -10,73 +10,73 @@ function $parcel$interopDefault(a) {
10
10
  function $parcel$export(e, n, v, s) {
11
11
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
12
  }
13
- var $f5eab7886530f808$exports = {};
13
+ var $d2b6dffb3c91fe3f$exports = {};
14
14
 
15
- $parcel$export($f5eab7886530f808$exports, "useFormProps", () => $f5eab7886530f808$export$a6b5be5c6b451665);
16
- $parcel$export($f5eab7886530f808$exports, "Form", () => $f5eab7886530f808$export$a7fed597f4b8afd8);
15
+ $parcel$export($d2b6dffb3c91fe3f$exports, "useFormProps", () => $d2b6dffb3c91fe3f$export$a6b5be5c6b451665);
16
+ $parcel$export($d2b6dffb3c91fe3f$exports, "Form", () => $d2b6dffb3c91fe3f$export$a7fed597f4b8afd8);
17
17
 
18
18
 
19
19
 
20
20
 
21
- var $29047d5b2695cedc$exports = {};
21
+ var $b1735ab7eff257c3$exports = {};
22
22
 
23
- $parcel$export($29047d5b2695cedc$exports, "spectrum-FieldLabel", () => $29047d5b2695cedc$export$493d18e796ae054, (v) => $29047d5b2695cedc$export$493d18e796ae054 = v);
24
- $parcel$export($29047d5b2695cedc$exports, "spectrum-FieldLabel--positionSide", () => $29047d5b2695cedc$export$9e6f19dc21f22f2e, (v) => $29047d5b2695cedc$export$9e6f19dc21f22f2e = v);
25
- $parcel$export($29047d5b2695cedc$exports, "spectrum-FieldLabel-requiredIcon", () => $29047d5b2695cedc$export$7c47642c7d46f3c9, (v) => $29047d5b2695cedc$export$7c47642c7d46f3c9 = v);
26
- $parcel$export($29047d5b2695cedc$exports, "spectrum-FieldLabel--alignEnd", () => $29047d5b2695cedc$export$885efcc08143a987, (v) => $29047d5b2695cedc$export$885efcc08143a987 = v);
27
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Field", () => $29047d5b2695cedc$export$f6d480ae1e56eba0, (v) => $29047d5b2695cedc$export$f6d480ae1e56eba0 = v);
28
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Field--positionTop", () => $29047d5b2695cedc$export$a4ea780a9064d7f9, (v) => $29047d5b2695cedc$export$a4ea780a9064d7f9 = v);
29
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Field-field", () => $29047d5b2695cedc$export$3ab8a3dc7f0563d, (v) => $29047d5b2695cedc$export$3ab8a3dc7f0563d = v);
30
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Field-field--multiline", () => $29047d5b2695cedc$export$f58a1e966a92ba5e, (v) => $29047d5b2695cedc$export$f58a1e966a92ba5e = v);
31
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Field--positionSide", () => $29047d5b2695cedc$export$2963225c91179589, (v) => $29047d5b2695cedc$export$2963225c91179589 = v);
32
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Field-wrapper", () => $29047d5b2695cedc$export$127df0b7290eb8ef, (v) => $29047d5b2695cedc$export$127df0b7290eb8ef = v);
33
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Form", () => $29047d5b2695cedc$export$94d2bcc94afabd89, (v) => $29047d5b2695cedc$export$94d2bcc94afabd89 = v);
34
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Form--positionSide", () => $29047d5b2695cedc$export$7f44db659563c8f4, (v) => $29047d5b2695cedc$export$7f44db659563c8f4 = v);
35
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Form--positionTop", () => $29047d5b2695cedc$export$11b8bc81fe551057, (v) => $29047d5b2695cedc$export$11b8bc81fe551057 = v);
36
- $parcel$export($29047d5b2695cedc$exports, "spectrum-Form-itemLabel", () => $29047d5b2695cedc$export$51ec27881a1e3928, (v) => $29047d5b2695cedc$export$51ec27881a1e3928 = v);
37
- $parcel$export($29047d5b2695cedc$exports, "is-disabled", () => $29047d5b2695cedc$export$d35bc1e505d1ebbf, (v) => $29047d5b2695cedc$export$d35bc1e505d1ebbf = v);
38
- var $29047d5b2695cedc$export$493d18e796ae054;
39
- var $29047d5b2695cedc$export$9e6f19dc21f22f2e;
40
- var $29047d5b2695cedc$export$7c47642c7d46f3c9;
41
- var $29047d5b2695cedc$export$885efcc08143a987;
42
- var $29047d5b2695cedc$export$f6d480ae1e56eba0;
43
- var $29047d5b2695cedc$export$a4ea780a9064d7f9;
44
- var $29047d5b2695cedc$export$3ab8a3dc7f0563d;
45
- var $29047d5b2695cedc$export$f58a1e966a92ba5e;
46
- var $29047d5b2695cedc$export$2963225c91179589;
47
- var $29047d5b2695cedc$export$127df0b7290eb8ef;
48
- var $29047d5b2695cedc$export$94d2bcc94afabd89;
49
- var $29047d5b2695cedc$export$7f44db659563c8f4;
50
- var $29047d5b2695cedc$export$11b8bc81fe551057;
51
- var $29047d5b2695cedc$export$51ec27881a1e3928;
52
- var $29047d5b2695cedc$export$d35bc1e505d1ebbf;
53
- $29047d5b2695cedc$export$493d18e796ae054 = "_spectrum-FieldLabel_d2db1f";
54
- $29047d5b2695cedc$export$9e6f19dc21f22f2e = "_spectrum-FieldLabel--positionSide_d2db1f";
55
- $29047d5b2695cedc$export$7c47642c7d46f3c9 = "_spectrum-FieldLabel-requiredIcon_d2db1f";
56
- $29047d5b2695cedc$export$885efcc08143a987 = "_spectrum-FieldLabel--alignEnd_d2db1f";
57
- $29047d5b2695cedc$export$f6d480ae1e56eba0 = "_spectrum-Field_d2db1f";
58
- $29047d5b2695cedc$export$a4ea780a9064d7f9 = "_spectrum-Field--positionTop_d2db1f";
59
- $29047d5b2695cedc$export$3ab8a3dc7f0563d = "_spectrum-Field-field_d2db1f";
60
- $29047d5b2695cedc$export$f58a1e966a92ba5e = "_spectrum-Field-field--multiline_d2db1f";
61
- $29047d5b2695cedc$export$2963225c91179589 = "_spectrum-Field--positionSide_d2db1f";
62
- $29047d5b2695cedc$export$127df0b7290eb8ef = "_spectrum-Field-wrapper_d2db1f";
63
- $29047d5b2695cedc$export$94d2bcc94afabd89 = "_spectrum-Form_d2db1f";
64
- $29047d5b2695cedc$export$7f44db659563c8f4 = "_spectrum-Form--positionSide_d2db1f";
65
- $29047d5b2695cedc$export$11b8bc81fe551057 = "_spectrum-Form--positionTop_d2db1f";
66
- $29047d5b2695cedc$export$51ec27881a1e3928 = "_spectrum-Form-itemLabel_d2db1f";
67
- $29047d5b2695cedc$export$d35bc1e505d1ebbf = "_is-disabled_d2db1f";
23
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-FieldLabel", () => $b1735ab7eff257c3$export$493d18e796ae054, (v) => $b1735ab7eff257c3$export$493d18e796ae054 = v);
24
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-FieldLabel--positionSide", () => $b1735ab7eff257c3$export$9e6f19dc21f22f2e, (v) => $b1735ab7eff257c3$export$9e6f19dc21f22f2e = v);
25
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-FieldLabel-requiredIcon", () => $b1735ab7eff257c3$export$7c47642c7d46f3c9, (v) => $b1735ab7eff257c3$export$7c47642c7d46f3c9 = v);
26
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-FieldLabel--alignEnd", () => $b1735ab7eff257c3$export$885efcc08143a987, (v) => $b1735ab7eff257c3$export$885efcc08143a987 = v);
27
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Field", () => $b1735ab7eff257c3$export$f6d480ae1e56eba0, (v) => $b1735ab7eff257c3$export$f6d480ae1e56eba0 = v);
28
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Field--positionTop", () => $b1735ab7eff257c3$export$a4ea780a9064d7f9, (v) => $b1735ab7eff257c3$export$a4ea780a9064d7f9 = v);
29
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Field-field", () => $b1735ab7eff257c3$export$3ab8a3dc7f0563d, (v) => $b1735ab7eff257c3$export$3ab8a3dc7f0563d = v);
30
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Field-field--multiline", () => $b1735ab7eff257c3$export$f58a1e966a92ba5e, (v) => $b1735ab7eff257c3$export$f58a1e966a92ba5e = v);
31
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Field--positionSide", () => $b1735ab7eff257c3$export$2963225c91179589, (v) => $b1735ab7eff257c3$export$2963225c91179589 = v);
32
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Field-wrapper", () => $b1735ab7eff257c3$export$127df0b7290eb8ef, (v) => $b1735ab7eff257c3$export$127df0b7290eb8ef = v);
33
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Form", () => $b1735ab7eff257c3$export$94d2bcc94afabd89, (v) => $b1735ab7eff257c3$export$94d2bcc94afabd89 = v);
34
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Form--positionSide", () => $b1735ab7eff257c3$export$7f44db659563c8f4, (v) => $b1735ab7eff257c3$export$7f44db659563c8f4 = v);
35
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Form--positionTop", () => $b1735ab7eff257c3$export$11b8bc81fe551057, (v) => $b1735ab7eff257c3$export$11b8bc81fe551057 = v);
36
+ $parcel$export($b1735ab7eff257c3$exports, "spectrum-Form-itemLabel", () => $b1735ab7eff257c3$export$51ec27881a1e3928, (v) => $b1735ab7eff257c3$export$51ec27881a1e3928 = v);
37
+ $parcel$export($b1735ab7eff257c3$exports, "is-disabled", () => $b1735ab7eff257c3$export$d35bc1e505d1ebbf, (v) => $b1735ab7eff257c3$export$d35bc1e505d1ebbf = v);
38
+ var $b1735ab7eff257c3$export$493d18e796ae054;
39
+ var $b1735ab7eff257c3$export$9e6f19dc21f22f2e;
40
+ var $b1735ab7eff257c3$export$7c47642c7d46f3c9;
41
+ var $b1735ab7eff257c3$export$885efcc08143a987;
42
+ var $b1735ab7eff257c3$export$f6d480ae1e56eba0;
43
+ var $b1735ab7eff257c3$export$a4ea780a9064d7f9;
44
+ var $b1735ab7eff257c3$export$3ab8a3dc7f0563d;
45
+ var $b1735ab7eff257c3$export$f58a1e966a92ba5e;
46
+ var $b1735ab7eff257c3$export$2963225c91179589;
47
+ var $b1735ab7eff257c3$export$127df0b7290eb8ef;
48
+ var $b1735ab7eff257c3$export$94d2bcc94afabd89;
49
+ var $b1735ab7eff257c3$export$7f44db659563c8f4;
50
+ var $b1735ab7eff257c3$export$11b8bc81fe551057;
51
+ var $b1735ab7eff257c3$export$51ec27881a1e3928;
52
+ var $b1735ab7eff257c3$export$d35bc1e505d1ebbf;
53
+ $b1735ab7eff257c3$export$493d18e796ae054 = "spectrum-FieldLabel_d2db1f";
54
+ $b1735ab7eff257c3$export$9e6f19dc21f22f2e = "spectrum-FieldLabel--positionSide_d2db1f";
55
+ $b1735ab7eff257c3$export$7c47642c7d46f3c9 = "spectrum-FieldLabel-requiredIcon_d2db1f";
56
+ $b1735ab7eff257c3$export$885efcc08143a987 = "spectrum-FieldLabel--alignEnd_d2db1f";
57
+ $b1735ab7eff257c3$export$f6d480ae1e56eba0 = "spectrum-Field_d2db1f";
58
+ $b1735ab7eff257c3$export$a4ea780a9064d7f9 = "spectrum-Field--positionTop_d2db1f";
59
+ $b1735ab7eff257c3$export$3ab8a3dc7f0563d = "spectrum-Field-field_d2db1f";
60
+ $b1735ab7eff257c3$export$f58a1e966a92ba5e = "spectrum-Field-field--multiline_d2db1f";
61
+ $b1735ab7eff257c3$export$2963225c91179589 = "spectrum-Field--positionSide_d2db1f";
62
+ $b1735ab7eff257c3$export$127df0b7290eb8ef = "spectrum-Field-wrapper_d2db1f";
63
+ $b1735ab7eff257c3$export$94d2bcc94afabd89 = "spectrum-Form_d2db1f";
64
+ $b1735ab7eff257c3$export$7f44db659563c8f4 = "spectrum-Form--positionSide_d2db1f";
65
+ $b1735ab7eff257c3$export$11b8bc81fe551057 = "spectrum-Form--positionTop_d2db1f";
66
+ $b1735ab7eff257c3$export$51ec27881a1e3928 = "spectrum-Form-itemLabel_d2db1f";
67
+ $b1735ab7eff257c3$export$d35bc1e505d1ebbf = "is-disabled_d2db1f";
68
68
 
69
69
 
70
- let $f5eab7886530f808$var$FormContext = /*#__PURE__*/ $1hmRW$react.createContext({
70
+ let $d2b6dffb3c91fe3f$var$FormContext = /*#__PURE__*/ $gDbYp$react.createContext({
71
71
  });
72
- function $f5eab7886530f808$export$a6b5be5c6b451665(props) {
73
- let ctx = $1hmRW$useContext($f5eab7886530f808$var$FormContext);
72
+ function $d2b6dffb3c91fe3f$export$a6b5be5c6b451665(props) {
73
+ let ctx = $gDbYp$useContext($d2b6dffb3c91fe3f$var$FormContext);
74
74
  return {
75
75
  ...ctx,
76
76
  ...props
77
77
  };
78
78
  }
79
- const $f5eab7886530f808$var$formPropNames = new Set([
79
+ const $d2b6dffb3c91fe3f$var$formPropNames = new Set([
80
80
  'action',
81
81
  'autoComplete',
82
82
  'encType',
@@ -84,31 +84,31 @@ const $f5eab7886530f808$var$formPropNames = new Set([
84
84
  'target',
85
85
  'onSubmit'
86
86
  ]);
87
- function $f5eab7886530f808$var$Form(props, ref) {
88
- props = $1hmRW$useProviderProps(props);
87
+ function $d2b6dffb3c91fe3f$var$Form(props, ref) {
88
+ props = $gDbYp$useProviderProps(props);
89
89
  let { children: children , labelPosition: labelPosition = 'top' , labelAlign: labelAlign = 'start' , isRequired: isRequired , necessityIndicator: necessityIndicator , isQuiet: isQuiet , isEmphasized: isEmphasized , isDisabled: isDisabled , isReadOnly: isReadOnly , validationState: validationState , ...otherProps } = props;
90
- let { styleProps: styleProps } = $1hmRW$useStyleProps(otherProps);
91
- let domRef = $1hmRW$useDOMRef(ref);
90
+ let { styleProps: styleProps } = $gDbYp$useStyleProps(otherProps);
91
+ let domRef = $gDbYp$useDOMRef(ref);
92
92
  let ctx = {
93
93
  labelPosition: labelPosition,
94
94
  labelAlign: labelAlign,
95
95
  necessityIndicator: necessityIndicator
96
96
  };
97
- return(/*#__PURE__*/ $1hmRW$react.createElement("form", {
98
- ...$1hmRW$filterDOMProps(otherProps, {
97
+ return(/*#__PURE__*/ $gDbYp$react.createElement("form", {
98
+ ...$gDbYp$filterDOMProps(otherProps, {
99
99
  labelable: true,
100
- propNames: $f5eab7886530f808$var$formPropNames
100
+ propNames: $d2b6dffb3c91fe3f$var$formPropNames
101
101
  }),
102
102
  ...styleProps,
103
103
  noValidate: true,
104
104
  ref: domRef,
105
- className: $1hmRW$classNames((/*@__PURE__*/$parcel$interopDefault($29047d5b2695cedc$exports)), 'spectrum-Form', {
105
+ className: $gDbYp$classNames((/*@__PURE__*/$parcel$interopDefault($b1735ab7eff257c3$exports)), 'spectrum-Form', {
106
106
  'spectrum-Form--positionSide': labelPosition === 'side',
107
107
  'spectrum-Form--positionTop': labelPosition === 'top'
108
108
  }, styleProps.className)
109
- }, /*#__PURE__*/ $1hmRW$react.createElement($f5eab7886530f808$var$FormContext.Provider, {
109
+ }, /*#__PURE__*/ $gDbYp$react.createElement($d2b6dffb3c91fe3f$var$FormContext.Provider, {
110
110
  value: ctx
111
- }, /*#__PURE__*/ $1hmRW$react.createElement($1hmRW$Provider, {
111
+ }, /*#__PURE__*/ $gDbYp$react.createElement($gDbYp$Provider, {
112
112
  isQuiet: isQuiet,
113
113
  isEmphasized: isEmphasized,
114
114
  isDisabled: isDisabled,
@@ -119,10 +119,10 @@ function $f5eab7886530f808$var$Form(props, ref) {
119
119
  }
120
120
  /**
121
121
  * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
122
- */ const $f5eab7886530f808$export$a7fed597f4b8afd8 = /*#__PURE__*/ $1hmRW$react.forwardRef($f5eab7886530f808$var$Form);
122
+ */ const $d2b6dffb3c91fe3f$export$a7fed597f4b8afd8 = /*#__PURE__*/ $gDbYp$react.forwardRef($d2b6dffb3c91fe3f$var$Form);
123
123
 
124
124
 
125
125
 
126
126
 
127
- export {$f5eab7886530f808$export$a6b5be5c6b451665 as useFormProps, $f5eab7886530f808$export$a7fed597f4b8afd8 as Form};
127
+ export {$d2b6dffb3c91fe3f$export$a6b5be5c6b451665 as useFormProps, $d2b6dffb3c91fe3f$export$a7fed597f4b8afd8 as Form};
128
128
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;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AU,uBACV,kBAAkB,YAClB,OAAO,iBACP,YAAY,eACZ,UAAU,eACV,UAAU,oBACV,eAAe,MACZ,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAE1B,GAAG,CAAC,GAAG,GAAG,CAAC;uBACT,aAAa;oBACb,UAAU;4BACV,kBAAkB;IACpB,CAAC;IAED,MAAM,0CACH,CAAI;WACC,qBAAc,CAAC,UAAU,EAAE,CAAC;YAAA,SAAS,EAAE,IAAI;YAAE,SAAS,EAAE,mCAAa;QAAA,CAAC;WACtE,UAAU;QACd,UAAU,EAAV,IAAU;QACV,GAAG,EAAE,MAAM;QACX,SAAS,EACP,iBAAU,CACR,gEAAM,EACN,CAAe,gBACf,CAAC;YACC,CAA6B,8BAAE,aAAa,KAAK,CAAM;YACvD,CAA4B,6BAAE,aAAa,KAAK,CAAK;QACvD,CAAC,EACD,UAAU,CAAC,SAAS;gDAGvB,iCAAW,CAAC,QAAQ;QAAC,KAAK,EAAE,GAAG;gDAC7B,eAAQ;QACP,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,eAAe;OAC/B,QAAQ;AAKnB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAK,iBAAG,YAAK,CAAC,UAAU,CAAC,0BAAI","sources":["packages/@react-spectrum/form/src/index.ts","packages/@react-spectrum/form/src/Form.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport * from './Form';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Alignment, DOMRef, LabelPosition, SpectrumLabelableProps} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Provider, useProviderProps} from '@react-spectrum/provider';\nimport React, {useContext} from 'react';\nimport {SpectrumFormProps} from '@react-types/form';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\n\nlet FormContext = React.createContext<SpectrumLabelableProps>({});\nexport function useFormProps<T extends SpectrumLabelableProps>(props: T): T {\n let ctx = useContext(FormContext);\n return {...ctx, ...props};\n}\n\nconst formPropNames = new Set([\n 'action',\n 'autoComplete',\n 'encType',\n 'method',\n 'target',\n 'onSubmit'\n]);\n\nfunction Form(props: SpectrumFormProps, ref: DOMRef<HTMLFormElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top' as LabelPosition,\n labelAlign = 'start' as Alignment,\n isRequired,\n necessityIndicator,\n isQuiet,\n isEmphasized,\n isDisabled,\n isReadOnly,\n validationState,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let ctx = {\n labelPosition,\n labelAlign,\n necessityIndicator\n };\n\n return (\n <form\n {...filterDOMProps(otherProps, {labelable: true, propNames: formPropNames})}\n {...styleProps}\n noValidate\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Form',\n {\n 'spectrum-Form--positionSide': labelPosition === 'side',\n 'spectrum-Form--positionTop': labelPosition === 'top'\n },\n styleProps.className\n )\n }>\n <FormContext.Provider value={ctx}>\n <Provider\n isQuiet={isQuiet}\n isEmphasized={isEmphasized}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isRequired={isRequired}\n validationState={validationState}>\n {children}\n </Provider>\n </FormContext.Provider>\n </form>\n );\n}\n\n/**\n * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.\n */\nconst _Form = React.forwardRef(Form);\nexport {_Form as Form};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAqC;AACrC,GAAmD;AACnD,GAAkD;AAClD,GAA+C;AAC/C,GAAgC;AAChC,GAA6C;AAC7C,GAAsC;AACtC,GAAiD;AACjD,GAA8C;AAC9C,GAAwC;AACxC,GAA+B;AAC/B,GAA6C;AAC7C,GAA4C;AAC5C,GAAyC;AACzC,GAA6B;AAd7B,wCAAqC,GAAG,CAA4B;AACpE,yCAAmD,GAAG,CAA0C;AAChG,yCAAkD,GAAG,CAAyC;AAC9F,yCAA+C,GAAG,CAAsC;AACxF,yCAAgC,GAAG,CAAuB;AAC1D,yCA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,SAAS,EAAE,IAAI;YAAE,SAAS,EAAE,mCAAa;QAAA,CAAC;WACtE,UAAU;QACd,UAAU,EAAV,IAAU;QACV,GAAG,EAAE,MAAM;QACX,SAAS,EACP,iBAAU,CACR,gEAAM,EACN,CAAe,gBACf,CAAC;YACC,CAA6B,8BAAE,aAAa,KAAK,CAAM;YACvD,CAA4B,6BAAE,aAAa,KAAK,CAAK;QACvD,CAAC,EACD,UAAU,CAAC,SAAS;gDAGvB,iCAAW,CAAC,QAAQ;QAAC,KAAK,EAAE,GAAG;gDAC7B,eAAQ;QACP,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,YAAY;QAC1B,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAAU;QACtB,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,eAAe;OAC/B,QAAQ;AAKnB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAK,iBAAG,YAAK,CAAC,UAAU,CAAC,0BAAI","sources":["packages/@react-spectrum/form/src/index.ts","packages/@react-spectrum/form/src/Form.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport * from './Form';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Alignment, DOMRef, LabelPosition, SpectrumLabelableProps} from '@react-types/shared';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Provider, useProviderProps} from '@react-spectrum/provider';\nimport React, {useContext} from 'react';\nimport {SpectrumFormProps} from '@react-types/form';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\n\nlet FormContext = React.createContext<SpectrumLabelableProps>({});\nexport function useFormProps<T extends SpectrumLabelableProps>(props: T): T {\n let ctx = useContext(FormContext);\n return {...ctx, ...props};\n}\n\nconst formPropNames = new Set([\n 'action',\n 'autoComplete',\n 'encType',\n 'method',\n 'target',\n 'onSubmit'\n]);\n\nfunction Form(props: SpectrumFormProps, ref: DOMRef<HTMLFormElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top' as LabelPosition,\n labelAlign = 'start' as Alignment,\n isRequired,\n necessityIndicator,\n isQuiet,\n isEmphasized,\n isDisabled,\n isReadOnly,\n validationState,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n let ctx = {\n labelPosition,\n labelAlign,\n necessityIndicator\n };\n\n return (\n <form\n {...filterDOMProps(otherProps, {labelable: true, propNames: formPropNames})}\n {...styleProps}\n noValidate\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Form',\n {\n 'spectrum-Form--positionSide': labelPosition === 'side',\n 'spectrum-Form--positionTop': labelPosition === 'top'\n },\n styleProps.className\n )\n }>\n <FormContext.Provider value={ctx}>\n <Provider\n isQuiet={isQuiet}\n isEmphasized={isEmphasized}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isRequired={isRequired}\n validationState={validationState}>\n {children}\n </Provider>\n </FormContext.Provider>\n </form>\n );\n}\n\n/**\n * Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.\n */\nconst _Form = React.forwardRef(Form);\nexport {_Form as Form};\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/form",
3
- "version": "3.0.0-nightly.1394+dfe72ee07",
3
+ "version": "3.0.0-nightly.1395+b2abc5d94",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/utils": "3.0.0-nightly.1394+dfe72ee07",
36
- "@react-spectrum/utils": "3.0.0-nightly.1394+dfe72ee07",
37
- "@react-types/form": "3.2.3-nightly.3085+dfe72ee07",
38
- "@react-types/shared": "3.0.0-nightly.1394+dfe72ee07"
35
+ "@react-aria/utils": "3.0.0-nightly.1395+b2abc5d94",
36
+ "@react-spectrum/utils": "3.0.0-nightly.1395+b2abc5d94",
37
+ "@react-types/form": "3.2.3-nightly.3086+b2abc5d94",
38
+ "@react-types/shared": "3.0.0-nightly.1395+b2abc5d94"
39
39
  },
40
40
  "devDependencies": {
41
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1394+dfe72ee07"
41
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1395+b2abc5d94"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@react-spectrum/provider": "^3.0.0",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "dfe72ee076f7ca27728d0b6b4c1ef86e11191ece"
50
+ "gitHead": "b2abc5d94162a7bd614fffcdf11e3d3754dc7d9f"
51
51
  }