@react-spectrum/label 3.16.5-nightly.4555 → 3.16.5-nightly.4560

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 (79) hide show
  1. package/dist/Field.main.js +118 -0
  2. package/dist/Field.main.js.map +1 -0
  3. package/dist/Field.mjs +113 -0
  4. package/dist/Field.module.js +113 -0
  5. package/dist/Field.module.js.map +1 -0
  6. package/dist/HelpText.main.js +57 -0
  7. package/dist/HelpText.main.js.map +1 -0
  8. package/dist/HelpText.mjs +52 -0
  9. package/dist/HelpText.module.js +52 -0
  10. package/dist/HelpText.module.js.map +1 -0
  11. package/dist/Label.main.js +68 -0
  12. package/dist/Label.main.js.map +1 -0
  13. package/dist/Label.mjs +63 -0
  14. package/dist/Label.module.js +63 -0
  15. package/dist/Label.module.js.map +1 -0
  16. package/dist/ar-AE.mjs +1 -1
  17. package/dist/bg-BG.mjs +1 -1
  18. package/dist/cs-CZ.mjs +1 -1
  19. package/dist/da-DK.mjs +1 -1
  20. package/dist/de-DE.mjs +1 -1
  21. package/dist/el-GR.mjs +1 -1
  22. package/dist/en-US.mjs +1 -1
  23. package/dist/es-ES.mjs +1 -1
  24. package/dist/et-EE.mjs +1 -1
  25. package/dist/fi-FI.mjs +1 -1
  26. package/dist/fieldlabel_vars_css.main.js +95 -0
  27. package/dist/fieldlabel_vars_css.main.js.map +1 -0
  28. package/dist/fieldlabel_vars_css.mjs +97 -0
  29. package/dist/fieldlabel_vars_css.module.js +97 -0
  30. package/dist/fieldlabel_vars_css.module.js.map +1 -0
  31. package/dist/fr-FR.mjs +1 -1
  32. package/dist/he-IL.mjs +1 -1
  33. package/dist/helptext_vars_css.main.js +41 -0
  34. package/dist/helptext_vars_css.main.js.map +1 -0
  35. package/dist/helptext_vars_css.mjs +43 -0
  36. package/dist/helptext_vars_css.module.js +43 -0
  37. package/dist/helptext_vars_css.module.js.map +1 -0
  38. package/dist/hr-HR.mjs +1 -1
  39. package/dist/hu-HU.mjs +1 -1
  40. package/dist/import.mjs +3 -431
  41. package/dist/intlStrings.main.js +108 -0
  42. package/dist/intlStrings.main.js.map +1 -0
  43. package/dist/intlStrings.mjs +110 -0
  44. package/dist/intlStrings.module.js +110 -0
  45. package/dist/intlStrings.module.js.map +1 -0
  46. package/dist/it-IT.mjs +1 -1
  47. package/dist/ja-JP.mjs +1 -1
  48. package/dist/ko-KR.mjs +1 -1
  49. package/dist/lt-LT.mjs +1 -1
  50. package/dist/lv-LV.mjs +1 -1
  51. package/dist/main.js +6 -430
  52. package/dist/main.js.map +1 -1
  53. package/dist/module.js +3 -431
  54. package/dist/module.js.map +1 -1
  55. package/dist/nb-NO.mjs +1 -1
  56. package/dist/nl-NL.mjs +1 -1
  57. package/dist/pl-PL.mjs +1 -1
  58. package/dist/pt-BR.mjs +1 -1
  59. package/dist/pt-PT.mjs +1 -1
  60. package/dist/ro-RO.mjs +1 -1
  61. package/dist/ru-RU.mjs +1 -1
  62. package/dist/sk-SK.mjs +1 -1
  63. package/dist/sl-SI.mjs +1 -1
  64. package/dist/sr-SP.mjs +1 -1
  65. package/dist/sv-SE.mjs +1 -1
  66. package/dist/tr-TR.mjs +1 -1
  67. package/dist/types.d.ts +3 -3
  68. package/dist/types.d.ts.map +1 -1
  69. package/dist/uk-UA.mjs +1 -1
  70. package/dist/vars.0af2d804.css +117 -0
  71. package/dist/vars.0af2d804.css.map +1 -0
  72. package/dist/{main.css → vars.d58685ae.css} +1 -118
  73. package/dist/vars.d58685ae.css.map +1 -0
  74. package/dist/zh-CN.mjs +1 -1
  75. package/dist/zh-TW.mjs +1 -1
  76. package/package.json +11 -11
  77. package/dist/main.css.map +0 -1
  78. package/dist/module.css +0 -388
  79. package/dist/module.css.map +0 -1
package/dist/main.js CHANGED
@@ -1,60 +1,15 @@
1
- var $be852afcd8987832$exports = require("./ar-AE.main.js");
2
- var $aa4ffc3da65655ef$exports = require("./bg-BG.main.js");
3
- var $70336543455a8968$exports = require("./cs-CZ.main.js");
4
- var $da721886d3a532d3$exports = require("./da-DK.main.js");
5
- var $8d18e19dccc28394$exports = require("./de-DE.main.js");
6
- var $c70340f3f366f0c9$exports = require("./el-GR.main.js");
7
- var $100a4f0d92ab2685$exports = require("./en-US.main.js");
8
- var $376a75ae5e97584b$exports = require("./es-ES.main.js");
9
- var $ea0a534428756103$exports = require("./et-EE.main.js");
10
- var $2176594cdf3907b0$exports = require("./fi-FI.main.js");
11
- var $1190b8ce746b4c70$exports = require("./fr-FR.main.js");
12
- var $b78e8997233e1d53$exports = require("./he-IL.main.js");
13
- var $1788058e8b1338cf$exports = require("./hr-HR.main.js");
14
- var $5e7e524c4d77d357$exports = require("./hu-HU.main.js");
15
- var $8545837977fb83c7$exports = require("./it-IT.main.js");
16
- var $b0b5a068cf5e941f$exports = require("./ja-JP.main.js");
17
- var $87a7a70faf1c577f$exports = require("./ko-KR.main.js");
18
- var $c3f2142cd0e94e15$exports = require("./lt-LT.main.js");
19
- var $008ebeb5a8039d3b$exports = require("./lv-LV.main.js");
20
- var $3ba626fbf1933ce1$exports = require("./nb-NO.main.js");
21
- var $78ed57b244f3862b$exports = require("./nl-NL.main.js");
22
- var $391247f29fc5b238$exports = require("./pl-PL.main.js");
23
- var $c03311fdea551db1$exports = require("./pt-BR.main.js");
24
- var $82f94bdcbdbace10$exports = require("./pt-PT.main.js");
25
- var $459c5159c6836bf9$exports = require("./ro-RO.main.js");
26
- var $e94cc84d0b96cae7$exports = require("./ru-RU.main.js");
27
- var $f9f957260773ddeb$exports = require("./sk-SK.main.js");
28
- var $9775fc82dcd5cb58$exports = require("./sl-SI.main.js");
29
- var $f735f63121c09841$exports = require("./sr-SP.main.js");
30
- var $bbe1e12be1e3dd67$exports = require("./sv-SE.main.js");
31
- var $c8baaffeccc5d05c$exports = require("./tr-TR.main.js");
32
- var $849858b96dfabeac$exports = require("./uk-UA.main.js");
33
- var $3135581a6ef2f6d9$exports = require("./zh-CN.main.js");
34
- var $fb217acd414dfdf8$exports = require("./zh-TW.main.js");
35
- require("./main.css");
36
- var $fXO85$reactspectrumutils = require("@react-spectrum/utils");
37
- var $fXO85$reactspectrumlayout = require("@react-spectrum/layout");
38
- var $fXO85$reactariautils = require("@react-aria/utils");
39
- var $fXO85$react = require("react");
40
- var $fXO85$reactspectrumform = require("@react-spectrum/form");
41
- var $fXO85$spectrumiconsuiAlertMedium = require("@spectrum-icons/ui/AlertMedium");
42
- var $fXO85$spectrumiconsuiAsterisk = require("@spectrum-icons/ui/Asterisk");
43
- var $fXO85$reactariai18n = require("@react-aria/i18n");
44
- var $fXO85$reactspectrumprovider = require("@react-spectrum/provider");
1
+ var $0e5410371a445d59$exports = require("./Field.main.js");
2
+ var $38a9afbd39356629$exports = require("./Label.main.js");
3
+ var $2d1b5114e5b358b6$exports = require("./HelpText.main.js");
45
4
 
46
5
 
47
6
  function $parcel$export(e, n, v, s) {
48
7
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
49
8
  }
50
9
 
51
- function $parcel$interopDefault(a) {
52
- return a && a.__esModule ? a.default : a;
53
- }
54
-
55
- $parcel$export(module.exports, "Field", () => $0e5410371a445d59$export$a455218a85c89869);
56
- $parcel$export(module.exports, "Label", () => $38a9afbd39356629$export$b04be29aa201d4f5);
57
- $parcel$export(module.exports, "HelpText", () => $2d1b5114e5b358b6$export$a67c0bc59081311a);
10
+ $parcel$export(module.exports, "Field", () => $0e5410371a445d59$exports.Field);
11
+ $parcel$export(module.exports, "Label", () => $38a9afbd39356629$exports.Label);
12
+ $parcel$export(module.exports, "HelpText", () => $2d1b5114e5b358b6$exports.HelpText);
58
13
  /*
59
14
  * Copyright 2020 Adobe. All rights reserved.
60
15
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -66,385 +21,6 @@ $parcel$export(module.exports, "HelpText", () => $2d1b5114e5b358b6$export$a67c0b
66
21
  * OF ANY KIND, either express or implied. See the License for the specific language
67
22
  * governing permissions and limitations under the License.
68
23
  */ /// <reference types="css-module-types" />
69
- /*
70
- * Copyright 2020 Adobe. All rights reserved.
71
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
72
- * you may not use this file except in compliance with the License. You may obtain a copy
73
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
74
- *
75
- * Unless required by applicable law or agreed to in writing, software distributed under
76
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
77
- * OF ANY KIND, either express or implied. See the License for the specific language
78
- * governing permissions and limitations under the License.
79
- */
80
-
81
- /*
82
- * Copyright 2021 Adobe. All rights reserved.
83
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
84
- * you may not use this file except in compliance with the License. You may obtain a copy
85
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
86
- *
87
- * Unless required by applicable law or agreed to in writing, software distributed under
88
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
89
- * OF ANY KIND, either express or implied. See the License for the specific language
90
- * governing permissions and limitations under the License.
91
- */
92
-
93
-
94
- var $680ab92507bf49aa$exports = {};
95
-
96
- $parcel$export($680ab92507bf49aa$exports, "focus-ring", () => $680ab92507bf49aa$export$f39a09f249340e2a, (v) => $680ab92507bf49aa$export$f39a09f249340e2a = v);
97
- $parcel$export($680ab92507bf49aa$exports, "i18nFontFamily", () => $680ab92507bf49aa$export$8c4ee2c50c22c514, (v) => $680ab92507bf49aa$export$8c4ee2c50c22c514 = v);
98
- $parcel$export($680ab92507bf49aa$exports, "is-disabled", () => $680ab92507bf49aa$export$d35bc1e505d1ebbf, (v) => $680ab92507bf49aa$export$d35bc1e505d1ebbf = v);
99
- $parcel$export($680ab92507bf49aa$exports, "spectrum-FocusRing-ring", () => $680ab92507bf49aa$export$4109102f950813a6, (v) => $680ab92507bf49aa$export$4109102f950813a6 = v);
100
- $parcel$export($680ab92507bf49aa$exports, "spectrum-FocusRing", () => $680ab92507bf49aa$export$24c7f46a6e3605dd, (v) => $680ab92507bf49aa$export$24c7f46a6e3605dd = v);
101
- $parcel$export($680ab92507bf49aa$exports, "spectrum-FocusRing--quiet", () => $680ab92507bf49aa$export$2927016961429360, (v) => $680ab92507bf49aa$export$2927016961429360 = v);
102
- $parcel$export($680ab92507bf49aa$exports, "spectrum-HelpText", () => $680ab92507bf49aa$export$c0875e83c57c7736, (v) => $680ab92507bf49aa$export$c0875e83c57c7736 = v);
103
- $parcel$export($680ab92507bf49aa$exports, "spectrum-HelpText--negative", () => $680ab92507bf49aa$export$d31dd875d69daee0, (v) => $680ab92507bf49aa$export$d31dd875d69daee0 = v);
104
- $parcel$export($680ab92507bf49aa$exports, "spectrum-HelpText--neutral", () => $680ab92507bf49aa$export$6e9351b1ad13c, (v) => $680ab92507bf49aa$export$6e9351b1ad13c = v);
105
- $parcel$export($680ab92507bf49aa$exports, "spectrum-HelpText-text", () => $680ab92507bf49aa$export$a512452beb4231bf, (v) => $680ab92507bf49aa$export$a512452beb4231bf = v);
106
- $parcel$export($680ab92507bf49aa$exports, "spectrum-HelpText-validationIcon", () => $680ab92507bf49aa$export$527776642b333691, (v) => $680ab92507bf49aa$export$527776642b333691 = v);
107
- var $680ab92507bf49aa$export$f39a09f249340e2a;
108
- var $680ab92507bf49aa$export$8c4ee2c50c22c514;
109
- var $680ab92507bf49aa$export$d35bc1e505d1ebbf;
110
- var $680ab92507bf49aa$export$4109102f950813a6;
111
- var $680ab92507bf49aa$export$24c7f46a6e3605dd;
112
- var $680ab92507bf49aa$export$2927016961429360;
113
- var $680ab92507bf49aa$export$c0875e83c57c7736;
114
- var $680ab92507bf49aa$export$d31dd875d69daee0;
115
- var $680ab92507bf49aa$export$6e9351b1ad13c;
116
- var $680ab92507bf49aa$export$a512452beb4231bf;
117
- var $680ab92507bf49aa$export$527776642b333691;
118
- $680ab92507bf49aa$export$f39a09f249340e2a = `a1Qy2q_focus-ring`;
119
- $680ab92507bf49aa$export$8c4ee2c50c22c514 = `a1Qy2q_i18nFontFamily`;
120
- $680ab92507bf49aa$export$d35bc1e505d1ebbf = `a1Qy2q_is-disabled`;
121
- $680ab92507bf49aa$export$4109102f950813a6 = `a1Qy2q_spectrum-FocusRing-ring`;
122
- $680ab92507bf49aa$export$24c7f46a6e3605dd = `a1Qy2q_spectrum-FocusRing ${$680ab92507bf49aa$export$4109102f950813a6}`;
123
- $680ab92507bf49aa$export$2927016961429360 = `a1Qy2q_spectrum-FocusRing--quiet`;
124
- $680ab92507bf49aa$export$c0875e83c57c7736 = `a1Qy2q_spectrum-HelpText`;
125
- $680ab92507bf49aa$export$d31dd875d69daee0 = `a1Qy2q_spectrum-HelpText--negative`;
126
- $680ab92507bf49aa$export$6e9351b1ad13c = `a1Qy2q_spectrum-HelpText--neutral`;
127
- $680ab92507bf49aa$export$a512452beb4231bf = `a1Qy2q_spectrum-HelpText-text`;
128
- $680ab92507bf49aa$export$527776642b333691 = `a1Qy2q_spectrum-HelpText-validationIcon`;
129
-
130
-
131
- function $2d1b5114e5b358b6$var$HelpText(props, ref) {
132
- let { description: description, errorMessage: errorMessage, validationState: validationState, isInvalid: isInvalid, isDisabled: isDisabled, showErrorIcon: showErrorIcon, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = props;
133
- let domRef = (0, $fXO85$reactspectrumutils.useDOMRef)(ref);
134
- let isErrorMessage = errorMessage && (isInvalid || validationState === "invalid");
135
- let { styleProps: styleProps } = (0, $fXO85$reactspectrumutils.useStyleProps)(props);
136
- return /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("div", {
137
- ...styleProps,
138
- className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($680ab92507bf49aa$exports))), "spectrum-HelpText", `spectrum-HelpText--${isErrorMessage ? "negative" : "neutral"}`, {
139
- "is-disabled": isDisabled
140
- }, styleProps.className),
141
- ref: domRef
142
- }, isErrorMessage ? /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, ($parcel$interopDefault($fXO85$react))).Fragment, null, showErrorIcon && /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, ($parcel$interopDefault($fXO85$spectrumiconsuiAlertMedium))), {
143
- UNSAFE_className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($680ab92507bf49aa$exports))), "spectrum-HelpText-validationIcon")
144
- }), /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("div", {
145
- ...errorMessageProps,
146
- className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($680ab92507bf49aa$exports))), "spectrum-HelpText-text")
147
- }, errorMessage)) : /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("div", {
148
- ...descriptionProps,
149
- className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($680ab92507bf49aa$exports))), "spectrum-HelpText-text")
150
- }, description));
151
- }
152
- /**
153
- * Help text provides either an informative description or an error message that gives more context about what a user needs to input. It's commonly used in forms.
154
- */ const $2d1b5114e5b358b6$export$a67c0bc59081311a = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).forwardRef($2d1b5114e5b358b6$var$HelpText);
155
-
156
-
157
- /*
158
- * Copyright 2020 Adobe. All rights reserved.
159
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
160
- * you may not use this file except in compliance with the License. You may obtain a copy
161
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
162
- *
163
- * Unless required by applicable law or agreed to in writing, software distributed under
164
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
165
- * OF ANY KIND, either express or implied. See the License for the specific language
166
- * governing permissions and limitations under the License.
167
- */
168
-
169
-
170
- var $503911526ad50850$exports = {};
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- $503911526ad50850$exports = {
206
- "ar-AE": $be852afcd8987832$exports,
207
- "bg-BG": $aa4ffc3da65655ef$exports,
208
- "cs-CZ": $70336543455a8968$exports,
209
- "da-DK": $da721886d3a532d3$exports,
210
- "de-DE": $8d18e19dccc28394$exports,
211
- "el-GR": $c70340f3f366f0c9$exports,
212
- "en-US": $100a4f0d92ab2685$exports,
213
- "es-ES": $376a75ae5e97584b$exports,
214
- "et-EE": $ea0a534428756103$exports,
215
- "fi-FI": $2176594cdf3907b0$exports,
216
- "fr-FR": $1190b8ce746b4c70$exports,
217
- "he-IL": $b78e8997233e1d53$exports,
218
- "hr-HR": $1788058e8b1338cf$exports,
219
- "hu-HU": $5e7e524c4d77d357$exports,
220
- "it-IT": $8545837977fb83c7$exports,
221
- "ja-JP": $b0b5a068cf5e941f$exports,
222
- "ko-KR": $87a7a70faf1c577f$exports,
223
- "lt-LT": $c3f2142cd0e94e15$exports,
224
- "lv-LV": $008ebeb5a8039d3b$exports,
225
- "nb-NO": $3ba626fbf1933ce1$exports,
226
- "nl-NL": $78ed57b244f3862b$exports,
227
- "pl-PL": $391247f29fc5b238$exports,
228
- "pt-BR": $c03311fdea551db1$exports,
229
- "pt-PT": $82f94bdcbdbace10$exports,
230
- "ro-RO": $459c5159c6836bf9$exports,
231
- "ru-RU": $e94cc84d0b96cae7$exports,
232
- "sk-SK": $f9f957260773ddeb$exports,
233
- "sl-SI": $9775fc82dcd5cb58$exports,
234
- "sr-SP": $f735f63121c09841$exports,
235
- "sv-SE": $bbe1e12be1e3dd67$exports,
236
- "tr-TR": $c8baaffeccc5d05c$exports,
237
- "uk-UA": $849858b96dfabeac$exports,
238
- "zh-CN": $3135581a6ef2f6d9$exports,
239
- "zh-TW": $fb217acd414dfdf8$exports
240
- };
241
-
242
-
243
-
244
- var $eb2fc0ee655eff6b$exports = {};
245
-
246
- $parcel$export($eb2fc0ee655eff6b$exports, "contextualHelp", () => $eb2fc0ee655eff6b$export$4ba534aba1836d, (v) => $eb2fc0ee655eff6b$export$4ba534aba1836d = v);
247
- $parcel$export($eb2fc0ee655eff6b$exports, "field", () => $eb2fc0ee655eff6b$export$e0f35d825088c098, (v) => $eb2fc0ee655eff6b$export$e0f35d825088c098 = v);
248
- $parcel$export($eb2fc0ee655eff6b$exports, "focus-ring", () => $eb2fc0ee655eff6b$export$f39a09f249340e2a, (v) => $eb2fc0ee655eff6b$export$f39a09f249340e2a = v);
249
- $parcel$export($eb2fc0ee655eff6b$exports, "helpText", () => $eb2fc0ee655eff6b$export$431a3b688422af44, (v) => $eb2fc0ee655eff6b$export$431a3b688422af44 = v);
250
- $parcel$export($eb2fc0ee655eff6b$exports, "i18nFontFamily", () => $eb2fc0ee655eff6b$export$8c4ee2c50c22c514, (v) => $eb2fc0ee655eff6b$export$8c4ee2c50c22c514 = v);
251
- $parcel$export($eb2fc0ee655eff6b$exports, "is-disabled", () => $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf, (v) => $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf = v);
252
- $parcel$export($eb2fc0ee655eff6b$exports, "label", () => $eb2fc0ee655eff6b$export$1237798dc640739a, (v) => $eb2fc0ee655eff6b$export$1237798dc640739a = v);
253
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field", () => $eb2fc0ee655eff6b$export$f6d480ae1e56eba0, (v) => $eb2fc0ee655eff6b$export$f6d480ae1e56eba0 = v);
254
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field--alignEnd", () => $eb2fc0ee655eff6b$export$5354c9be7ada5f83, (v) => $eb2fc0ee655eff6b$export$5354c9be7ada5f83 = v);
255
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field--hasContextualHelp", () => $eb2fc0ee655eff6b$export$9ba23707a252cdd4, (v) => $eb2fc0ee655eff6b$export$9ba23707a252cdd4 = v);
256
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field--positionSide", () => $eb2fc0ee655eff6b$export$2963225c91179589, (v) => $eb2fc0ee655eff6b$export$2963225c91179589 = v);
257
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field--positionTop", () => $eb2fc0ee655eff6b$export$a4ea780a9064d7f9, (v) => $eb2fc0ee655eff6b$export$a4ea780a9064d7f9 = v);
258
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-contextualHelp", () => $eb2fc0ee655eff6b$export$24fb860d16dd2d3f, (v) => $eb2fc0ee655eff6b$export$24fb860d16dd2d3f = v);
259
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-field", () => $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d, (v) => $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d = v);
260
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-labelCell", () => $eb2fc0ee655eff6b$export$9cde5aecff012641, (v) => $eb2fc0ee655eff6b$export$9cde5aecff012641 = v);
261
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-labelWrapper", () => $eb2fc0ee655eff6b$export$a872a8c78b26c9e0, (v) => $eb2fc0ee655eff6b$export$a872a8c78b26c9e0 = v);
262
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Field-wrapper", () => $eb2fc0ee655eff6b$export$127df0b7290eb8ef, (v) => $eb2fc0ee655eff6b$export$127df0b7290eb8ef = v);
263
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel", () => $eb2fc0ee655eff6b$export$493d18e796ae054, (v) => $eb2fc0ee655eff6b$export$493d18e796ae054 = v);
264
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel--alignEnd", () => $eb2fc0ee655eff6b$export$885efcc08143a987, (v) => $eb2fc0ee655eff6b$export$885efcc08143a987 = v);
265
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel--positionSide", () => $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e, (v) => $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e = v);
266
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FieldLabel-requiredIcon", () => $eb2fc0ee655eff6b$export$7c47642c7d46f3c9, (v) => $eb2fc0ee655eff6b$export$7c47642c7d46f3c9 = v);
267
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FocusRing-ring", () => $eb2fc0ee655eff6b$export$4109102f950813a6, (v) => $eb2fc0ee655eff6b$export$4109102f950813a6 = v);
268
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FocusRing", () => $eb2fc0ee655eff6b$export$24c7f46a6e3605dd, (v) => $eb2fc0ee655eff6b$export$24c7f46a6e3605dd = v);
269
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-FocusRing--quiet", () => $eb2fc0ee655eff6b$export$2927016961429360, (v) => $eb2fc0ee655eff6b$export$2927016961429360 = v);
270
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form", () => $eb2fc0ee655eff6b$export$94d2bcc94afabd89, (v) => $eb2fc0ee655eff6b$export$94d2bcc94afabd89 = v);
271
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form--positionSide", () => $eb2fc0ee655eff6b$export$7f44db659563c8f4, (v) => $eb2fc0ee655eff6b$export$7f44db659563c8f4 = v);
272
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form--positionTop", () => $eb2fc0ee655eff6b$export$11b8bc81fe551057, (v) => $eb2fc0ee655eff6b$export$11b8bc81fe551057 = v);
273
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-Form-itemLabel", () => $eb2fc0ee655eff6b$export$51ec27881a1e3928, (v) => $eb2fc0ee655eff6b$export$51ec27881a1e3928 = v);
274
- $parcel$export($eb2fc0ee655eff6b$exports, "spectrum-LabeledValue", () => $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d, (v) => $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d = v);
275
- var $eb2fc0ee655eff6b$export$4ba534aba1836d;
276
- var $eb2fc0ee655eff6b$export$e0f35d825088c098;
277
- var $eb2fc0ee655eff6b$export$f39a09f249340e2a;
278
- var $eb2fc0ee655eff6b$export$431a3b688422af44;
279
- var $eb2fc0ee655eff6b$export$8c4ee2c50c22c514;
280
- var $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf;
281
- var $eb2fc0ee655eff6b$export$1237798dc640739a;
282
- var $eb2fc0ee655eff6b$export$f6d480ae1e56eba0;
283
- var $eb2fc0ee655eff6b$export$5354c9be7ada5f83;
284
- var $eb2fc0ee655eff6b$export$9ba23707a252cdd4;
285
- var $eb2fc0ee655eff6b$export$2963225c91179589;
286
- var $eb2fc0ee655eff6b$export$a4ea780a9064d7f9;
287
- var $eb2fc0ee655eff6b$export$24fb860d16dd2d3f;
288
- var $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d;
289
- var $eb2fc0ee655eff6b$export$9cde5aecff012641;
290
- var $eb2fc0ee655eff6b$export$a872a8c78b26c9e0;
291
- var $eb2fc0ee655eff6b$export$127df0b7290eb8ef;
292
- var $eb2fc0ee655eff6b$export$493d18e796ae054;
293
- var $eb2fc0ee655eff6b$export$885efcc08143a987;
294
- var $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e;
295
- var $eb2fc0ee655eff6b$export$7c47642c7d46f3c9;
296
- var $eb2fc0ee655eff6b$export$4109102f950813a6;
297
- var $eb2fc0ee655eff6b$export$24c7f46a6e3605dd;
298
- var $eb2fc0ee655eff6b$export$2927016961429360;
299
- var $eb2fc0ee655eff6b$export$94d2bcc94afabd89;
300
- var $eb2fc0ee655eff6b$export$7f44db659563c8f4;
301
- var $eb2fc0ee655eff6b$export$11b8bc81fe551057;
302
- var $eb2fc0ee655eff6b$export$51ec27881a1e3928;
303
- var $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d;
304
- $eb2fc0ee655eff6b$export$4ba534aba1836d = `A-HlBa_contextualHelp`;
305
- $eb2fc0ee655eff6b$export$e0f35d825088c098 = `A-HlBa_field`;
306
- $eb2fc0ee655eff6b$export$f39a09f249340e2a = `A-HlBa_focus-ring`;
307
- $eb2fc0ee655eff6b$export$431a3b688422af44 = `A-HlBa_helpText`;
308
- $eb2fc0ee655eff6b$export$8c4ee2c50c22c514 = `A-HlBa_i18nFontFamily`;
309
- $eb2fc0ee655eff6b$export$d35bc1e505d1ebbf = `A-HlBa_is-disabled`;
310
- $eb2fc0ee655eff6b$export$1237798dc640739a = `A-HlBa_label`;
311
- $eb2fc0ee655eff6b$export$f6d480ae1e56eba0 = `A-HlBa_spectrum-Field`;
312
- $eb2fc0ee655eff6b$export$5354c9be7ada5f83 = `A-HlBa_spectrum-Field--alignEnd`;
313
- $eb2fc0ee655eff6b$export$9ba23707a252cdd4 = `A-HlBa_spectrum-Field--hasContextualHelp`;
314
- $eb2fc0ee655eff6b$export$2963225c91179589 = `A-HlBa_spectrum-Field--positionSide`;
315
- $eb2fc0ee655eff6b$export$a4ea780a9064d7f9 = `A-HlBa_spectrum-Field--positionTop`;
316
- $eb2fc0ee655eff6b$export$24fb860d16dd2d3f = `A-HlBa_spectrum-Field-contextualHelp`;
317
- $eb2fc0ee655eff6b$export$3ab8a3dc7f0563d = `A-HlBa_spectrum-Field-field`;
318
- $eb2fc0ee655eff6b$export$9cde5aecff012641 = `A-HlBa_spectrum-Field-labelCell`;
319
- $eb2fc0ee655eff6b$export$a872a8c78b26c9e0 = `A-HlBa_spectrum-Field-labelWrapper`;
320
- $eb2fc0ee655eff6b$export$127df0b7290eb8ef = `A-HlBa_spectrum-Field-wrapper`;
321
- $eb2fc0ee655eff6b$export$493d18e796ae054 = `A-HlBa_spectrum-FieldLabel`;
322
- $eb2fc0ee655eff6b$export$885efcc08143a987 = `A-HlBa_spectrum-FieldLabel--alignEnd`;
323
- $eb2fc0ee655eff6b$export$9e6f19dc21f22f2e = `A-HlBa_spectrum-FieldLabel--positionSide`;
324
- $eb2fc0ee655eff6b$export$7c47642c7d46f3c9 = `A-HlBa_spectrum-FieldLabel-requiredIcon`;
325
- $eb2fc0ee655eff6b$export$4109102f950813a6 = `A-HlBa_spectrum-FocusRing-ring`;
326
- $eb2fc0ee655eff6b$export$24c7f46a6e3605dd = `A-HlBa_spectrum-FocusRing ${$eb2fc0ee655eff6b$export$4109102f950813a6}`;
327
- $eb2fc0ee655eff6b$export$2927016961429360 = `A-HlBa_spectrum-FocusRing--quiet`;
328
- $eb2fc0ee655eff6b$export$94d2bcc94afabd89 = `A-HlBa_spectrum-Form`;
329
- $eb2fc0ee655eff6b$export$7f44db659563c8f4 = `A-HlBa_spectrum-Form--positionSide`;
330
- $eb2fc0ee655eff6b$export$11b8bc81fe551057 = `A-HlBa_spectrum-Form--positionTop`;
331
- $eb2fc0ee655eff6b$export$51ec27881a1e3928 = `A-HlBa_spectrum-Form-itemLabel`;
332
- $eb2fc0ee655eff6b$export$79f9a5e9dd010c8d = `A-HlBa_spectrum-LabeledValue`;
333
-
334
-
335
-
336
-
337
- function $38a9afbd39356629$var$Label(props, ref) {
338
- props = (0, $fXO85$reactspectrumprovider.useProviderProps)(props);
339
- let { children: children, labelPosition: labelPosition = "top", labelAlign: labelAlign = labelPosition === "side" ? "start" : null, isRequired: isRequired, necessityIndicator: necessityIndicator = isRequired != null ? "icon" : null, includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName = false, htmlFor: htmlFor, for: labelFor, elementType: ElementType = "label", onClick: onClick, ...otherProps } = props;
340
- let domRef = (0, $fXO85$reactspectrumutils.useDOMRef)(ref);
341
- let { styleProps: styleProps } = (0, $fXO85$reactspectrumutils.useStyleProps)(otherProps);
342
- let stringFormatter = (0, $fXO85$reactariai18n.useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($503911526ad50850$exports))), "@react-spectrum/label");
343
- let necessityLabel = isRequired ? stringFormatter.format("(required)") : stringFormatter.format("(optional)");
344
- let icon = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, ($parcel$interopDefault($fXO85$spectrumiconsuiAsterisk))), {
345
- UNSAFE_className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-FieldLabel-requiredIcon"),
346
- "aria-label": includeNecessityIndicatorInAccessibilityName ? stringFormatter.format("(required)") : undefined
347
- });
348
- let labelClassNames = (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-FieldLabel", {
349
- "spectrum-FieldLabel--positionSide": labelPosition === "side",
350
- "spectrum-FieldLabel--alignEnd": labelAlign === "end"
351
- }, styleProps.className);
352
- return /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement(ElementType, {
353
- ...(0, $fXO85$reactariautils.filterDOMProps)(otherProps),
354
- ...styleProps,
355
- onClick: onClick,
356
- ref: domRef,
357
- className: labelClassNames,
358
- htmlFor: ElementType === "label" ? labelFor || htmlFor : undefined
359
- }, children, (necessityIndicator === "label" || necessityIndicator === "icon" && isRequired) && " \u200B", necessityIndicator === "label" && /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("span", {
360
- "aria-hidden": !includeNecessityIndicatorInAccessibilityName ? isRequired : undefined
361
- }, necessityLabel), necessityIndicator === "icon" && isRequired && icon);
362
- }
363
- let $38a9afbd39356629$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).forwardRef($38a9afbd39356629$var$Label);
364
-
365
-
366
-
367
-
368
-
369
-
370
- function $0e5410371a445d59$var$Field(props, ref) {
371
- let formProps = (0, $fXO85$reactspectrumform.useFormProps)(props);
372
- let isInForm = formProps !== props;
373
- props = formProps;
374
- let { label: label, labelPosition: labelPosition = "top", labelAlign: labelAlign, isRequired: isRequired, necessityIndicator: necessityIndicator, includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName, validationState: validationState, isInvalid: isInvalid, description: description, errorMessage: errorMessage = (e)=>e.validationErrors.join(" "), validationErrors: validationErrors, validationDetails: validationDetails, isDisabled: isDisabled, showErrorIcon: showErrorIcon, contextualHelp: contextualHelp, children: children, labelProps: labelProps = {}, descriptionProps: // Not every component that uses <Field> supports help text.
375
- descriptionProps = {}, errorMessageProps: errorMessageProps = {}, elementType: elementType, wrapperClassName: wrapperClassName, wrapperProps: wrapperProps = {}, ...otherProps } = props;
376
- let { styleProps: styleProps } = (0, $fXO85$reactspectrumutils.useStyleProps)(otherProps);
377
- let errorMessageString = null;
378
- if (typeof errorMessage === "function") errorMessageString = isInvalid != null && validationErrors != null && validationDetails != null ? errorMessage({
379
- isInvalid: isInvalid,
380
- validationErrors: validationErrors,
381
- validationDetails: validationDetails
382
- }) : null;
383
- else errorMessageString = errorMessage;
384
- let hasHelpText = !!description || errorMessageString && (isInvalid || validationState === "invalid");
385
- let contextualHelpId = (0, $fXO85$reactariautils.useId)();
386
- let fallbackLabelPropsId = (0, $fXO85$reactariautils.useId)();
387
- if (label && contextualHelp && !labelProps.id) labelProps.id = fallbackLabelPropsId;
388
- let labelWrapperClass = (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-Field", {
389
- "spectrum-Field--positionTop": labelPosition === "top",
390
- "spectrum-Field--positionSide": labelPosition === "side",
391
- "spectrum-Field--alignEnd": labelAlign === "end",
392
- "spectrum-Field--hasContextualHelp": !!props.contextualHelp
393
- }, styleProps.className, wrapperClassName);
394
- children = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).cloneElement(children, (0, $fXO85$reactariautils.mergeProps)(children.props, {
395
- className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-Field-field")
396
- }));
397
- let renderHelpText = ()=>/*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, $2d1b5114e5b358b6$export$a67c0bc59081311a), {
398
- descriptionProps: descriptionProps,
399
- errorMessageProps: errorMessageProps,
400
- description: description,
401
- errorMessage: errorMessageString,
402
- validationState: validationState,
403
- isInvalid: isInvalid,
404
- isDisabled: isDisabled,
405
- showErrorIcon: showErrorIcon,
406
- gridArea: (0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))).helpText
407
- });
408
- let renderChildren = ()=>{
409
- if (labelPosition === "side") return /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, $fXO85$reactspectrumlayout.Flex), {
410
- direction: "column",
411
- UNSAFE_className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-Field-wrapper")
412
- }, children, hasHelpText && renderHelpText());
413
- return /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, ($parcel$interopDefault($fXO85$react))).Fragment, null, children, hasHelpText && renderHelpText());
414
- };
415
- let labelAndContextualHelp = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, ($parcel$interopDefault($fXO85$react))).Fragment, null, label && /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, $38a9afbd39356629$export$b04be29aa201d4f5), {
416
- ...labelProps,
417
- labelPosition: labelPosition,
418
- labelAlign: labelAlign,
419
- isRequired: isRequired,
420
- necessityIndicator: necessityIndicator,
421
- includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName,
422
- elementType: elementType
423
- }, label), label && contextualHelp && /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement((0, $fXO85$reactspectrumutils.SlotProvider), {
424
- slots: {
425
- actionButton: {
426
- UNSAFE_className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-Field-contextualHelp"),
427
- id: contextualHelpId,
428
- "aria-labelledby": (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) ? `${labelProps.id} ${contextualHelpId}` : undefined
429
- }
430
- }
431
- }, contextualHelp));
432
- // Need to add an extra wrapper for the label and contextual help if labelPosition is side,
433
- // so that the table layout works inside forms.
434
- if (isInForm && labelPosition === "side" && label && contextualHelp) labelAndContextualHelp = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("div", {
435
- className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-Field-labelCell")
436
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("div", {
437
- className: (0, $fXO85$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports))), "spectrum-Field-labelWrapper")
438
- }, labelAndContextualHelp));
439
- return /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).createElement("div", {
440
- ...styleProps,
441
- ...wrapperProps,
442
- ref: ref,
443
- className: labelWrapperClass
444
- }, labelAndContextualHelp, renderChildren());
445
- }
446
- let $0e5410371a445d59$export$a455218a85c89869 = /*#__PURE__*/ (0, ($parcel$interopDefault($fXO85$react))).forwardRef($0e5410371a445d59$var$Field);
447
-
448
24
 
449
25
 
450
26
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C;ACZ1C;;;;;;;;;;CAUC;;ACVD;;;;;;;;;;CAUC;;;;;;;;;;;;;;;;ACVD,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAVA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EA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ACpB,8CAA8C;QAC9C,aAAa;OACZ,QAGJ,SAAS,gCACR,0DAAC,CAAA,GAAA,sCAAW;QACV,OAAO;YACL,cAAc;gBACZ,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAU,GAAG;gBAC1C,IAAI;gBACJ,mBAAmB,CAAA,uBAAA,iCAAA,WAAY,EAAE,IAAG,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,iBAAiB,CAAC,GAAG;YAC/E;QACF;OACC;IAMP,2FAA2F;IAC3F,+CAA+C;IACjD,IAAI,YAAY,kBAAkB,UAAU,SAAS,gBACnD,uCACE,0DAAC;QAAI,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAU,GAAG;qBACtC,0DAAC;QAAI,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,gEAAU,GAAG;OACrC;IAMT,qBACE,0DAAC;QACE,GAAG,UAAU;QACb,GAAG,YAAY;QAChB,KAAK;QACL,WAAW;OACV,wBACA;AAGP;AAEA,IAAI,0DAAS,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC;","sources":["packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/HelpText.tsx","packages/@adobe/spectrum-css-temp/components/helptext/vars.css","packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/src/*.js","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 {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\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 {classNames, SlotProvider, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport React, {ReactNode, Ref, RefObject} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\n\nfunction Field(props: SpectrumFieldProps, ref: Ref<HTMLElement>) {\n let formProps = useFormProps(props);\n let isInForm = formProps !== props;\n props = formProps;\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n isInvalid,\n description,\n errorMessage = e => e.validationErrors.join(' '),\n validationErrors,\n validationDetails,\n isDisabled,\n showErrorIcon,\n contextualHelp,\n children,\n labelProps = {},\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n wrapperProps = {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let errorMessageString: ReactNode = null;\n if (typeof errorMessage === 'function') {\n errorMessageString = isInvalid != null && validationErrors != null && validationDetails != null\n ? errorMessage({\n isInvalid,\n validationErrors,\n validationDetails\n })\n : null;\n } else {\n errorMessageString = errorMessage;\n }\n let hasHelpText = !!description || errorMessageString && (isInvalid || validationState === 'invalid');\n let contextualHelpId = useId();\n\n let fallbackLabelPropsId = useId();\n if (label && contextualHelp && !labelProps.id) {\n labelProps.id = fallbackLabelPropsId;\n }\n\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side',\n 'spectrum-Field--alignEnd': labelAlign === 'end',\n 'spectrum-Field--hasContextualHelp': !!props.contextualHelp\n },\n styleProps.className,\n wrapperClassName\n );\n\n children = React.cloneElement(children, mergeProps(children.props, {\n className: classNames(\n labelStyles,\n 'spectrum-Field-field'\n )\n }));\n\n let renderHelpText = () => (\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessageString}\n validationState={validationState}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon}\n gridArea={labelStyles.helpText} />\n );\n\n let renderChildren = () => {\n if (labelPosition === 'side') {\n return (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && renderHelpText()}\n </Flex>\n );\n }\n\n return (\n <>\n {children}\n {hasHelpText && renderHelpText()}\n </>\n );\n };\n\n let labelAndContextualHelp = (\n <>\n {label && (\n <Label\n {...labelProps}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}\n includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}\n elementType={elementType}>\n {label}\n </Label>\n )}\n {label && contextualHelp &&\n <SlotProvider\n slots={{\n actionButton: {\n UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),\n id: contextualHelpId,\n 'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined\n }\n }}>\n {contextualHelp}\n </SlotProvider>\n }\n </>\n );\n\n // Need to add an extra wrapper for the label and contextual help if labelPosition is side,\n // so that the table layout works inside forms.\n if (isInForm && labelPosition === 'side' && label && contextualHelp) {\n labelAndContextualHelp = (\n <div className={classNames(labelStyles, 'spectrum-Field-labelCell')}>\n <div className={classNames(labelStyles, 'spectrum-Field-labelWrapper')}>\n {labelAndContextualHelp}\n </div>\n </div>\n );\n }\n\n return (\n <div\n {...styleProps}\n {...wrapperProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\n {labelAndContextualHelp}\n {renderChildren()}\n </div>\n );\n}\n\nlet _Field = React.forwardRef(Field);\nexport {_Field as Field};\n","/*\n * Copyright 2021 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 AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, SpectrumFieldValidation, SpectrumHelpTextProps, StyleProps, Validation} from '@react-types/shared';\nimport React, {HTMLAttributes, ReactNode} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends Omit<SpectrumHelpTextProps, 'errorMessage'>, Omit<Validation<any>, 'validationState'>, SpectrumFieldValidation<any>, StyleProps {\n /** Props for the help text description element. */\n descriptionProps?: HTMLAttributes<HTMLElement>,\n /** Props for the help text error message element. */\n errorMessageProps?: HTMLAttributes<HTMLElement>,\n /** An error message for the field. */\n errorMessage?: ReactNode\n}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isInvalid,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && (isInvalid || validationState === 'invalid');\n let {styleProps} = useStyleProps(props);\n\n return (\n <div\n {...styleProps}\n className={classNames(\n styles,\n 'spectrum-HelpText',\n `spectrum-HelpText--${isErrorMessage ? 'negative' : 'neutral'}`,\n {'is-disabled': isDisabled},\n styleProps.className\n )}\n ref={domRef}>\n {isErrorMessage ? (\n <>\n {showErrorIcon && <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-HelpText-validationIcon')} />}\n <div {...errorMessageProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {errorMessage}\n </div>\n </>\n ) : (\n <div {...descriptionProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {description}\n </div>\n )}\n </div>\n );\n}\n\n/**\n * Help text provides either an informative description or an error message that gives more context about what a user needs to input. It's commonly used in forms.\n */\nconst _HelpText = React.forwardRef(HelpText);\nexport {_HelpText as HelpText};\n","/*\n * Copyright 2021 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","/*\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 Asterisk from '@spectrum-icons/ui/Asterisk';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React from 'react';\nimport {SpectrumLabelProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top',\n labelAlign = labelPosition === 'side' ? 'start' : null,\n isRequired,\n necessityIndicator = isRequired != null ? 'icon' : null,\n includeNecessityIndicatorInAccessibilityName = false,\n htmlFor,\n for: labelFor,\n elementType: ElementType = 'label',\n onClick,\n ...otherProps\n } = props;\n\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/label');\n let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />\n );\n\n let labelClassNames = classNames(\n styles,\n 'spectrum-FieldLabel',\n {\n 'spectrum-FieldLabel--positionSide': labelPosition === 'side',\n 'spectrum-FieldLabel--alignEnd': labelAlign === 'end'\n },\n styleProps.className\n );\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n onClick={onClick}\n ref={domRef}\n className={labelClassNames}\n htmlFor={ElementType === 'label' ? labelFor || htmlFor : undefined}>\n {children}\n {(necessityIndicator === 'label' || (necessityIndicator === 'icon' && isRequired)) && ' \\u200b'}\n {/* necessityLabel is hidden to screen readers if the field is required because\n * aria-required is set on the field in that case. That will already be announced,\n * so no need to duplicate it here. If optional, we do want it to be announced here. */}\n {necessityIndicator === 'label' && <span aria-hidden={!includeNecessityIndicatorInAccessibilityName ? isRequired : undefined}>{necessityLabel}</span>}\n {necessityIndicator === 'icon' && isRequired && icon}\n </ElementType>\n );\n}\n\nlet _Label = React.forwardRef(Label);\nexport {_Label as Label};\n","const _temp0 = require(\"../intl/ar-AE.json\");\nconst _temp1 = require(\"../intl/bg-BG.json\");\nconst _temp2 = require(\"../intl/cs-CZ.json\");\nconst _temp3 = require(\"../intl/da-DK.json\");\nconst _temp4 = require(\"../intl/de-DE.json\");\nconst _temp5 = require(\"../intl/el-GR.json\");\nconst _temp6 = require(\"../intl/en-US.json\");\nconst _temp7 = require(\"../intl/es-ES.json\");\nconst _temp8 = require(\"../intl/et-EE.json\");\nconst _temp9 = require(\"../intl/fi-FI.json\");\nconst _temp10 = require(\"../intl/fr-FR.json\");\nconst _temp11 = require(\"../intl/he-IL.json\");\nconst _temp12 = require(\"../intl/hr-HR.json\");\nconst _temp13 = require(\"../intl/hu-HU.json\");\nconst _temp14 = require(\"../intl/it-IT.json\");\nconst _temp15 = require(\"../intl/ja-JP.json\");\nconst _temp16 = require(\"../intl/ko-KR.json\");\nconst _temp17 = require(\"../intl/lt-LT.json\");\nconst _temp18 = require(\"../intl/lv-LV.json\");\nconst _temp19 = require(\"../intl/nb-NO.json\");\nconst _temp20 = require(\"../intl/nl-NL.json\");\nconst _temp21 = require(\"../intl/pl-PL.json\");\nconst _temp22 = require(\"../intl/pt-BR.json\");\nconst _temp23 = require(\"../intl/pt-PT.json\");\nconst _temp24 = require(\"../intl/ro-RO.json\");\nconst _temp25 = require(\"../intl/ru-RU.json\");\nconst _temp26 = require(\"../intl/sk-SK.json\");\nconst _temp27 = require(\"../intl/sl-SI.json\");\nconst _temp28 = require(\"../intl/sr-SP.json\");\nconst _temp29 = require(\"../intl/sv-SE.json\");\nconst _temp30 = require(\"../intl/tr-TR.json\");\nconst _temp31 = require(\"../intl/uk-UA.json\");\nconst _temp32 = require(\"../intl/zh-CN.json\");\nconst _temp33 = require(\"../intl/zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\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":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/label/src/index.ts"],"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 {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n"],"names":[],"version":3,"file":"main.js.map"}