@react-spectrum/label 3.6.2-nightly.3363 → 3.6.2-nightly.3375

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.js CHANGED
@@ -76,139 +76,243 @@ function $2d1b5114e5b358b6$var$HelpText(props, ref) {
76
76
 
77
77
  var $b41c468199d98654$exports = {};
78
78
  var $be852afcd8987832$exports = {};
79
- $be852afcd8987832$exports = JSON.parse("{\"(optional)\":\"(اختياري)\",\"(required)\":\"(مطلوب)\",\"(None)\":\"(None)\"}");
79
+ $be852afcd8987832$exports = {
80
+ "(optional)": `(اختياري)`,
81
+ "(required)": `(مطلوب)`,
82
+ "(None)": `(None)`
83
+ };
80
84
 
81
85
 
82
86
  var $aa4ffc3da65655ef$exports = {};
83
- $aa4ffc3da65655ef$exports = JSON.parse("{\"(optional)\":\"(незадължително)\",\"(required)\":\"(задължително)\"}");
87
+ $aa4ffc3da65655ef$exports = {
88
+ "(optional)": `(незадължително)`,
89
+ "(required)": `(задължително)`
90
+ };
84
91
 
85
92
 
86
93
  var $70336543455a8968$exports = {};
87
- $70336543455a8968$exports = JSON.parse("{\"(optional)\":\"(volitelně)\",\"(required)\":\"(požadováno)\"}");
94
+ $70336543455a8968$exports = {
95
+ "(optional)": `(volitelně)`,
96
+ "(required)": `(požadováno)`
97
+ };
88
98
 
89
99
 
90
100
  var $da721886d3a532d3$exports = {};
91
- $da721886d3a532d3$exports = JSON.parse("{\"(optional)\":\"(valgfrit)\",\"(required)\":\"(obligatorisk)\"}");
101
+ $da721886d3a532d3$exports = {
102
+ "(optional)": `(valgfrit)`,
103
+ "(required)": `(obligatorisk)`
104
+ };
92
105
 
93
106
 
94
107
  var $8d18e19dccc28394$exports = {};
95
- $8d18e19dccc28394$exports = JSON.parse("{\"(optional)\":\"(optional)\",\"(required)\":\"(erforderlich)\"}");
108
+ $8d18e19dccc28394$exports = {
109
+ "(optional)": `(optional)`,
110
+ "(required)": `(erforderlich)`
111
+ };
96
112
 
97
113
 
98
114
  var $c70340f3f366f0c9$exports = {};
99
- $c70340f3f366f0c9$exports = JSON.parse("{\"(optional)\":\"(προαιρετικό)\",\"(required)\":\"(απαιτείται)\"}");
115
+ $c70340f3f366f0c9$exports = {
116
+ "(optional)": `(προαιρετικό)`,
117
+ "(required)": `(απαιτείται)`
118
+ };
100
119
 
101
120
 
102
121
  var $100a4f0d92ab2685$exports = {};
103
- $100a4f0d92ab2685$exports = JSON.parse("{\"(required)\":\"(required)\",\"(optional)\":\"(optional)\",\"(None)\":\"(None)\"}");
122
+ $100a4f0d92ab2685$exports = {
123
+ "(required)": `(required)`,
124
+ "(optional)": `(optional)`,
125
+ "(None)": `(None)`
126
+ };
104
127
 
105
128
 
106
129
  var $376a75ae5e97584b$exports = {};
107
- $376a75ae5e97584b$exports = JSON.parse("{\"(optional)\":\"(opcional)\",\"(required)\":\"(necesario)\"}");
130
+ $376a75ae5e97584b$exports = {
131
+ "(optional)": `(opcional)`,
132
+ "(required)": `(necesario)`
133
+ };
108
134
 
109
135
 
110
136
  var $ea0a534428756103$exports = {};
111
- $ea0a534428756103$exports = JSON.parse("{\"(optional)\":\"(valikuline)\",\"(required)\":\"(nõutav)\"}");
137
+ $ea0a534428756103$exports = {
138
+ "(optional)": `(valikuline)`,
139
+ "(required)": `(nõutav)`
140
+ };
112
141
 
113
142
 
114
143
  var $2176594cdf3907b0$exports = {};
115
- $2176594cdf3907b0$exports = JSON.parse("{\"(optional)\":\"(valinnainen)\",\"(required)\":\"(pakollinen)\"}");
144
+ $2176594cdf3907b0$exports = {
145
+ "(optional)": `(valinnainen)`,
146
+ "(required)": `(pakollinen)`
147
+ };
116
148
 
117
149
 
118
150
  var $1190b8ce746b4c70$exports = {};
119
- $1190b8ce746b4c70$exports = JSON.parse("{\"(optional)\":\"(facultatif)\",\"(required)\":\"(requis)\"}");
151
+ $1190b8ce746b4c70$exports = {
152
+ "(optional)": `(facultatif)`,
153
+ "(required)": `(requis)`
154
+ };
120
155
 
121
156
 
122
157
  var $b78e8997233e1d53$exports = {};
123
- $b78e8997233e1d53$exports = JSON.parse("{\"(optional)\":\"(אופציונלי)\",\"(required)\":\"(נדרש)\"}");
158
+ $b78e8997233e1d53$exports = {
159
+ "(optional)": `(אופציונלי)`,
160
+ "(required)": `(נדרש)`
161
+ };
124
162
 
125
163
 
126
164
  var $1788058e8b1338cf$exports = {};
127
- $1788058e8b1338cf$exports = JSON.parse("{\"(optional)\":\"(opcionalno)\",\"(required)\":\"(obvezno)\"}");
165
+ $1788058e8b1338cf$exports = {
166
+ "(optional)": `(opcionalno)`,
167
+ "(required)": `(obvezno)`
168
+ };
128
169
 
129
170
 
130
171
  var $5e7e524c4d77d357$exports = {};
131
- $5e7e524c4d77d357$exports = JSON.parse("{\"(optional)\":\"(opcionális)\",\"(required)\":\"(kötelező)\"}");
172
+ $5e7e524c4d77d357$exports = {
173
+ "(optional)": `(opcionális)`,
174
+ "(required)": `(kötelező)`
175
+ };
132
176
 
133
177
 
134
178
  var $8545837977fb83c7$exports = {};
135
- $8545837977fb83c7$exports = JSON.parse("{\"(optional)\":\"(facoltativo)\",\"(required)\":\"(obbligatorio)\"}");
179
+ $8545837977fb83c7$exports = {
180
+ "(optional)": `(facoltativo)`,
181
+ "(required)": `(obbligatorio)`
182
+ };
136
183
 
137
184
 
138
185
  var $b0b5a068cf5e941f$exports = {};
139
- $b0b5a068cf5e941f$exports = JSON.parse("{\"(optional)\":\"(オプション)\",\"(required)\":\"(必須)\"}");
186
+ $b0b5a068cf5e941f$exports = {
187
+ "(optional)": `(オプション)`,
188
+ "(required)": `(必須)`
189
+ };
140
190
 
141
191
 
142
192
  var $87a7a70faf1c577f$exports = {};
143
- $87a7a70faf1c577f$exports = JSON.parse("{\"(optional)\":\"(선택 사항)\",\"(required)\":\"(필수 사항)\"}");
193
+ $87a7a70faf1c577f$exports = {
194
+ "(optional)": `(선택 사항)`,
195
+ "(required)": `(필수 사항)`
196
+ };
144
197
 
145
198
 
146
199
  var $c3f2142cd0e94e15$exports = {};
147
- $c3f2142cd0e94e15$exports = JSON.parse("{\"(optional)\":\"(pasirenkama)\",\"(required)\":\"(privaloma)\"}");
200
+ $c3f2142cd0e94e15$exports = {
201
+ "(optional)": `(pasirenkama)`,
202
+ "(required)": `(privaloma)`
203
+ };
148
204
 
149
205
 
150
206
  var $008ebeb5a8039d3b$exports = {};
151
- $008ebeb5a8039d3b$exports = JSON.parse("{\"(optional)\":\"(neobligāti)\",\"(required)\":\"(obligāti)\"}");
207
+ $008ebeb5a8039d3b$exports = {
208
+ "(optional)": `(neobligāti)`,
209
+ "(required)": `(obligāti)`
210
+ };
152
211
 
153
212
 
154
213
  var $3ba626fbf1933ce1$exports = {};
155
- $3ba626fbf1933ce1$exports = JSON.parse("{\"(optional)\":\"(valgfritt)\",\"(required)\":\"(obligatorisk)\"}");
214
+ $3ba626fbf1933ce1$exports = {
215
+ "(optional)": `(valgfritt)`,
216
+ "(required)": `(obligatorisk)`
217
+ };
156
218
 
157
219
 
158
220
  var $78ed57b244f3862b$exports = {};
159
- $78ed57b244f3862b$exports = JSON.parse("{\"(optional)\":\"(optioneel)\",\"(required)\":\"(vereist)\"}");
221
+ $78ed57b244f3862b$exports = {
222
+ "(optional)": `(optioneel)`,
223
+ "(required)": `(vereist)`
224
+ };
160
225
 
161
226
 
162
227
  var $391247f29fc5b238$exports = {};
163
- $391247f29fc5b238$exports = JSON.parse("{\"(optional)\":\"(opcjonalne)\",\"(required)\":\"(wymagane)\"}");
228
+ $391247f29fc5b238$exports = {
229
+ "(optional)": `(opcjonalne)`,
230
+ "(required)": `(wymagane)`
231
+ };
164
232
 
165
233
 
166
234
  var $c03311fdea551db1$exports = {};
167
- $c03311fdea551db1$exports = JSON.parse("{\"(optional)\":\"(opcional)\",\"(required)\":\"(obrigatório)\"}");
235
+ $c03311fdea551db1$exports = {
236
+ "(optional)": `(opcional)`,
237
+ "(required)": `(obrigatório)`
238
+ };
168
239
 
169
240
 
170
241
  var $82f94bdcbdbace10$exports = {};
171
- $82f94bdcbdbace10$exports = JSON.parse("{\"(optional)\":\"(opcional)\",\"(required)\":\"(obrigatório)\"}");
242
+ $82f94bdcbdbace10$exports = {
243
+ "(optional)": `(opcional)`,
244
+ "(required)": `(obrigatório)`
245
+ };
172
246
 
173
247
 
174
248
  var $459c5159c6836bf9$exports = {};
175
- $459c5159c6836bf9$exports = JSON.parse("{\"(optional)\":\"(opţional)\",\"(required)\":\"(obligatoriu)\"}");
249
+ $459c5159c6836bf9$exports = {
250
+ "(optional)": `(opţional)`,
251
+ "(required)": `(obligatoriu)`
252
+ };
176
253
 
177
254
 
178
255
  var $e94cc84d0b96cae7$exports = {};
179
- $e94cc84d0b96cae7$exports = JSON.parse("{\"(optional)\":\"(дополнительно)\",\"(required)\":\"(обязательно)\"}");
256
+ $e94cc84d0b96cae7$exports = {
257
+ "(optional)": `(дополнительно)`,
258
+ "(required)": `(обязательно)`
259
+ };
180
260
 
181
261
 
182
262
  var $f9f957260773ddeb$exports = {};
183
- $f9f957260773ddeb$exports = JSON.parse("{\"(optional)\":\"(nepovinné)\",\"(required)\":\"(povinné)\"}");
263
+ $f9f957260773ddeb$exports = {
264
+ "(optional)": `(nepovinné)`,
265
+ "(required)": `(povinné)`
266
+ };
184
267
 
185
268
 
186
269
  var $9775fc82dcd5cb58$exports = {};
187
- $9775fc82dcd5cb58$exports = JSON.parse("{\"(optional)\":\"(opcijsko)\",\"(required)\":\"(obvezno)\"}");
270
+ $9775fc82dcd5cb58$exports = {
271
+ "(optional)": `(opcijsko)`,
272
+ "(required)": `(obvezno)`
273
+ };
188
274
 
189
275
 
190
276
  var $f735f63121c09841$exports = {};
191
- $f735f63121c09841$exports = JSON.parse("{\"(optional)\":\"(opciono)\",\"(required)\":\"(obavezno)\"}");
277
+ $f735f63121c09841$exports = {
278
+ "(optional)": `(opciono)`,
279
+ "(required)": `(obavezno)`
280
+ };
192
281
 
193
282
 
194
283
  var $bbe1e12be1e3dd67$exports = {};
195
- $bbe1e12be1e3dd67$exports = JSON.parse("{\"(optional)\":\"(valfritt)\",\"(required)\":\"(krävs)\"}");
284
+ $bbe1e12be1e3dd67$exports = {
285
+ "(optional)": `(valfritt)`,
286
+ "(required)": `(krävs)`
287
+ };
196
288
 
197
289
 
198
290
  var $c8baaffeccc5d05c$exports = {};
199
- $c8baaffeccc5d05c$exports = JSON.parse("{\"(optional)\":\"(isteğe bağlı)\",\"(required)\":\"(gerekli)\"}");
291
+ $c8baaffeccc5d05c$exports = {
292
+ "(optional)": `(isteğe bağlı)`,
293
+ "(required)": `(gerekli)`
294
+ };
200
295
 
201
296
 
202
297
  var $849858b96dfabeac$exports = {};
203
- $849858b96dfabeac$exports = JSON.parse("{\"(optional)\":\"(необов’язково)\",\"(required)\":\"(обов’язково)\"}");
298
+ $849858b96dfabeac$exports = {
299
+ "(optional)": `(необов’язково)`,
300
+ "(required)": `(обов’язково)`
301
+ };
204
302
 
205
303
 
206
304
  var $3135581a6ef2f6d9$exports = {};
207
- $3135581a6ef2f6d9$exports = JSON.parse("{\"(optional)\":\"(可选)\",\"(required)\":\"(必填)\"}");
305
+ $3135581a6ef2f6d9$exports = {
306
+ "(optional)": `(可选)`,
307
+ "(required)": `(必填)`
308
+ };
208
309
 
209
310
 
210
311
  var $fb217acd414dfdf8$exports = {};
211
- $fb217acd414dfdf8$exports = JSON.parse("{\"(optional)\":\"(選填)\",\"(required)\":\"(必填)\"}");
312
+ $fb217acd414dfdf8$exports = {
313
+ "(optional)": `(選填)`,
314
+ "(required)": `(必填)`
315
+ };
212
316
 
213
317
 
214
318
  $b41c468199d98654$exports = {
@@ -310,11 +414,11 @@ function $38a9afbd39356629$var$Label(props, ref) {
310
414
  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;
311
415
  let domRef = $fXO85$reactspectrumutils.useDOMRef(ref);
312
416
  let { styleProps: styleProps } = $fXO85$reactspectrumutils.useStyleProps(otherProps);
313
- let formatMessage = $fXO85$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($b41c468199d98654$exports)));
314
- let necessityLabel = isRequired ? formatMessage('(required)') : formatMessage('(optional)');
417
+ let stringFormatter = $fXO85$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($b41c468199d98654$exports)));
418
+ let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');
315
419
  let icon = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement(($parcel$interopDefault($fXO85$spectrumiconsuiAsterisk)), {
316
420
  UNSAFE_className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-FieldLabel-requiredIcon'),
317
- "aria-label": includeNecessityIndicatorInAccessibilityName ? formatMessage('(required)') : undefined
421
+ "aria-label": includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined
318
422
  });
319
423
  let labelClassNames = $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-FieldLabel', {
320
424
  'spectrum-FieldLabel--positionSide': labelPosition === 'side',
@@ -455,7 +559,7 @@ function $0e5410371a445d59$var$Field(props, ref) {
455
559
  } , elementType: elementType , wrapperClassName: wrapperClassName , ...otherProps } = props;
456
560
  let { styleProps: styleProps } = $fXO85$reactspectrumutils.useStyleProps(otherProps);
457
561
  let hasHelpText = !!description || errorMessage && validationState === 'invalid';
458
- let formatMessage = $fXO85$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($b41c468199d98654$exports)));
562
+ let stringFormatter = $fXO85$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($b41c468199d98654$exports)));
459
563
  let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');
460
564
  if (label || hasHelpText) {
461
565
  let labelWrapperClass = $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field', {
@@ -476,7 +580,7 @@ function $0e5410371a445d59$var$Field(props, ref) {
476
580
  })
477
581
  ;
478
582
  if (displayReadOnly) {
479
- if (readOnlyText === '') readOnlyText = formatMessage('(None)');
583
+ if (readOnlyText === '') readOnlyText = stringFormatter.format('(None)');
480
584
  children = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement($3666a670134a3e50$export$18fbc9a75a2c46ae, {
481
585
  ...props,
482
586
  readOnlyText: readOnlyText,
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAmC;AACnC,GAAkD;AAClD,GAAwC;AACxC,GAA4C;AAC5C,GAA6B;AAC7B,GAA6C;AAL7C,yCAAmC,GAAG,CAA0B;AAChE,yCAAkD,GAAG,CAAyC;AAC9F,yCAAwC,GAAG,CAA+B;AAC1E,sCAA4C,GAAG,CAAmC;AAClF,yCAA6B,GAAG,CAAoB;AACpD,yCAA6C,GAAG,CAAoC;;;SDoB3E,8BAAQ,CAAC,KAAoB,EAAE,GAA2B,EAAE,CAAC;IACpE,GAAG,CAAC,CAAC,cACH,WAAW,iBACX,YAAY,oBACZ,eAAe,eACf,UAAU,kBACV,aAAa,qBACb,gBAAgB,sBAChB,iBAAiB,EACnB,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,cAAc,GAAG,YAAY,IAAI,eAAe,KAAK,CAAS;IAClE,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,KAAK;IAEtC,MAAM,oEACH,CAAG;WACE,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;YACtB,kBAAkB,EAAE,kBAAkB;YACtC,4CAA4C,EAAE,4CAA4C;YAC1F,WAAW,EAAE,WAAW;WACvB,KAAK,GAGT,cAAc;IAGrB,CAAC;IAED,MAAM,eAAC,sCAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,gCAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;WAC3D,UAAU;QACb,EAAa,AAAb,WAAa;QACb,GAAG,EAAE,+BAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG;IAClC,CAAC;AACH,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,sCAAK,CAAC,UAAU,CAAC,2BAAK","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/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@react-spectrum/label/src/Label.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css","packages/@react-spectrum/label/src/ReadOnlyField.tsx","packages/@adobe/spectrum-css-temp/components/textfield/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, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, mergeRefs} from '@react-aria/utils';\nimport React, {RefObject} from 'react';\nimport {ReadOnlyField} from './ReadOnlyField';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useMessageFormatter} from '@react-aria/i18n';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n props = useFormProps(props);\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n children,\n labelProps,\n readOnlyText,\n isReadOnly,\n inputProps, \n inputRef, \n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let formatMessage = useMessageFormatter(intlMessages);\n let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');\n\n if (label || hasHelpText) {\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side'\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={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon} />\n );\n\n if (displayReadOnly) {\n if (readOnlyText === '') {\n readOnlyText = formatMessage('(None)');\n }\n children = (\n <ReadOnlyField\n {...props} \n readOnlyText={readOnlyText}\n inputProps={inputProps} \n ref={inputRef as RefObject<HTMLTextAreaElement>} /> \n );\n }\n\n let renderChildren = () => (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && !displayReadOnly && renderHelpText()}\n </Flex>\n );\n\n return (\n <div\n {...styleProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\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 {renderChildren()}\n </div>\n );\n }\n\n return React.cloneElement(children, mergeProps(children.props, {\n ...styleProps,\n // @ts-ignore\n ref: mergeRefs(children.ref, ref)\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, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, 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}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && 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","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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 \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\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 {useMessageFormatter} 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 formatMessage = useMessageFormatter(intlMessages);\n let necessityLabel = isRequired ? formatMessage('(required)') : formatMessage('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? formatMessage('(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","/*\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","/*\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} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus'; \nimport {mergeProps} from '@react-aria/utils';\nimport React, {RefObject, useCallback} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/textfield/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLayoutEffect} from '@react-aria/utils';\n\nfunction ReadOnlyField(props: SpectrumFieldProps, ref: RefObject<HTMLTextAreaElement>) {\n props = useFormProps(props);\n let {\n isDisabled,\n readOnlyText,\n inputProps,\n autoFocus \n } = props;\n delete inputProps.defaultValue;\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let onHeightChange = useCallback(() => {\n let input = ref.current;\n let prevAlignment = input.style.alignSelf;\n input.style.alignSelf = 'start';\n input.style.height = 'auto'; \n input.style.height = `${input.scrollHeight}px`;\n input.style.alignSelf = prevAlignment;\n }, [ref]);\n\n useLayoutEffect(() => {\n if (ref.current) {\n onHeightChange();\n }\n }, [onHeightChange, readOnlyText, ref]);\n\n return (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Textfield',\n {\n 'spectrum-Textfield--quiet': true,\n 'spectrum-Textfield--readonly': true\n }\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} isTextInput autoFocus={autoFocus}> \n <textarea\n {...mergeProps(inputProps, hoverProps)} \n rows={1}\n ref={ref}\n value={readOnlyText}\n className={\n classNames(\n styles,\n 'spectrum-Textfield-input',\n {\n 'is-hovered': isHovered\n }\n )\n } />\n </FocusRing> \n </div>\n );\n}\n\nlet _ReadOnlyField = React.forwardRef(ReadOnlyField);\nexport {_ReadOnlyField as ReadOnlyField};\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAmC;AACnC,GAAkD;AAClD,GAAwC;AACxC,GAA4C;AAC5C,GAA6B;AAC7B,GAA6C;AAL7C,yCAAmC,GAAG,CAA0B;AAChE,yCAAkD,GAAG,CAAyC;AAC9F,yCAAwC,GAAG,CAA+B;AAC1E,sCAA4C,GAAG,CAAmC;AAClF,yCAA6B,GAAG,CAAoB;AACpD,yCAA6C,GAAG,CAAoC;;;SDoB3E,8BAAQ,CAAC,KAAoB,EAAE,GAA2B,EAAE,CAAC;IACpE,GAAG,CAAC,CAAC,cACH,WAAW,iBACX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,UAAU;gBACtB,GAAG,EAAE,QAAQ;;QAEnB,CAAC;QAED,GAAG,CAAC,cAAc,0EACf,+BAAI;gBAAC,SAAS,EAAC,CAAQ;gBAAC,gBAAgB,EAAE,oCAAU,CAAC,gEAAW,EAAE,CAAwB;eACxF,QAAQ,EACR,WAAW,KAAK,eAAe,IAAI,cAAc;;QAItD,MAAM,oEACH,CAAG;eACE,UAAU;YACd,GAAG,EAAE,GAAG;YACR,SAAS,EAAE,iBAAiB;WAC3B,KAAK,uEACH,yCAAK;eACA,UAAU;YACd,aAAa,EAAE,aAAa;YAC5B,UAAU,EAAE,UAAU;YACtB,UAAU,EAAE,UAAU;YACtB,kBAAkB,EAAE,kBAAkB;YACtC,4CAA4C,EAAE,4CAA4C;YAC1F,WAAW,EAAE,WAAW;WACvB,KAAK,GAGT,cAAc;IAGrB,CAAC;IAED,MAAM,eAAC,sCAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,gCAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;WAC3D,UAAU;QACb,EAAa,AAAb,WAAa;QACb,GAAG,EAAE,+BAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG;IAClC,CAAC;AACH,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,sCAAK,CAAC,UAAU,CAAC,2BAAK","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/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@react-spectrum/label/src/Label.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css","packages/@react-spectrum/label/src/ReadOnlyField.tsx","packages/@adobe/spectrum-css-temp/components/textfield/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, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, mergeRefs} from '@react-aria/utils';\nimport React, {RefObject} from 'react';\nimport {ReadOnlyField} from './ReadOnlyField';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n props = useFormProps(props);\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n children,\n labelProps,\n readOnlyText,\n isReadOnly,\n inputProps,\n inputRef,\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');\n\n if (label || hasHelpText) {\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side'\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={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon} />\n );\n\n if (displayReadOnly) {\n if (readOnlyText === '') {\n readOnlyText = stringFormatter.format('(None)');\n }\n children = (\n <ReadOnlyField\n {...props}\n readOnlyText={readOnlyText}\n inputProps={inputProps}\n ref={inputRef as RefObject<HTMLTextAreaElement>} />\n );\n }\n\n let renderChildren = () => (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && !displayReadOnly && renderHelpText()}\n </Flex>\n );\n\n return (\n <div\n {...styleProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\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 {renderChildren()}\n </div>\n );\n }\n\n return React.cloneElement(children, mergeProps(children.props, {\n ...styleProps,\n // @ts-ignore\n ref: mergeRefs(children.ref, ref)\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, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, 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}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && 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","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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 \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\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);\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","/*\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","/*\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} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus'; \nimport {mergeProps} from '@react-aria/utils';\nimport React, {RefObject, useCallback} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/textfield/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLayoutEffect} from '@react-aria/utils';\n\nfunction ReadOnlyField(props: SpectrumFieldProps, ref: RefObject<HTMLTextAreaElement>) {\n props = useFormProps(props);\n let {\n isDisabled,\n readOnlyText,\n inputProps,\n autoFocus \n } = props;\n delete inputProps.defaultValue;\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let onHeightChange = useCallback(() => {\n let input = ref.current;\n let prevAlignment = input.style.alignSelf;\n input.style.alignSelf = 'start';\n input.style.height = 'auto'; \n input.style.height = `${input.scrollHeight}px`;\n input.style.alignSelf = prevAlignment;\n }, [ref]);\n\n useLayoutEffect(() => {\n if (ref.current) {\n onHeightChange();\n }\n }, [onHeightChange, readOnlyText, ref]);\n\n return (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Textfield',\n {\n 'spectrum-Textfield--quiet': true,\n 'spectrum-Textfield--readonly': true\n }\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} isTextInput autoFocus={autoFocus}> \n <textarea\n {...mergeProps(inputProps, hoverProps)} \n rows={1}\n ref={ref}\n value={readOnlyText}\n className={\n classNames(\n styles,\n 'spectrum-Textfield-input',\n {\n 'is-hovered': isHovered\n }\n )\n } />\n </FocusRing> \n </div>\n );\n}\n\nlet _ReadOnlyField = React.forwardRef(ReadOnlyField);\nexport {_ReadOnlyField as ReadOnlyField};\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
@@ -4,7 +4,7 @@ import {Flex as $6WzO6$Flex} from "@react-spectrum/layout";
4
4
  import {mergeProps as $6WzO6$mergeProps, mergeRefs as $6WzO6$mergeRefs, filterDOMProps as $6WzO6$filterDOMProps, useLayoutEffect as $6WzO6$useLayoutEffect} from "@react-aria/utils";
5
5
  import $6WzO6$react, {useCallback as $6WzO6$useCallback} from "react";
6
6
  import {useFormProps as $6WzO6$useFormProps} from "@react-spectrum/form";
7
- import {useMessageFormatter as $6WzO6$useMessageFormatter} from "@react-aria/i18n";
7
+ import {useLocalizedStringFormatter as $6WzO6$useLocalizedStringFormatter} from "@react-aria/i18n";
8
8
  import $6WzO6$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
9
9
  import $6WzO6$spectrumiconsuiAsterisk from "@spectrum-icons/ui/Asterisk";
10
10
  import {useProviderProps as $6WzO6$useProviderProps} from "@react-spectrum/provider";
@@ -72,139 +72,243 @@ function $8e50676506611310$var$HelpText(props, ref) {
72
72
 
73
73
  var $79b4ff1b6ea94ffc$exports = {};
74
74
  var $dfe96401c0c81db3$exports = {};
75
- $dfe96401c0c81db3$exports = JSON.parse("{\"(optional)\":\"(اختياري)\",\"(required)\":\"(مطلوب)\",\"(None)\":\"(None)\"}");
75
+ $dfe96401c0c81db3$exports = {
76
+ "(optional)": `(اختياري)`,
77
+ "(required)": `(مطلوب)`,
78
+ "(None)": `(None)`
79
+ };
76
80
 
77
81
 
78
82
  var $f504605657ece833$exports = {};
79
- $f504605657ece833$exports = JSON.parse("{\"(optional)\":\"(незадължително)\",\"(required)\":\"(задължително)\"}");
83
+ $f504605657ece833$exports = {
84
+ "(optional)": `(незадължително)`,
85
+ "(required)": `(задължително)`
86
+ };
80
87
 
81
88
 
82
89
  var $ed0ab9e7c53f9351$exports = {};
83
- $ed0ab9e7c53f9351$exports = JSON.parse("{\"(optional)\":\"(volitelně)\",\"(required)\":\"(požadováno)\"}");
90
+ $ed0ab9e7c53f9351$exports = {
91
+ "(optional)": `(volitelně)`,
92
+ "(required)": `(požadováno)`
93
+ };
84
94
 
85
95
 
86
96
  var $59d9df99e04ee555$exports = {};
87
- $59d9df99e04ee555$exports = JSON.parse("{\"(optional)\":\"(valgfrit)\",\"(required)\":\"(obligatorisk)\"}");
97
+ $59d9df99e04ee555$exports = {
98
+ "(optional)": `(valgfrit)`,
99
+ "(required)": `(obligatorisk)`
100
+ };
88
101
 
89
102
 
90
103
  var $c5df0169c370d169$exports = {};
91
- $c5df0169c370d169$exports = JSON.parse("{\"(optional)\":\"(optional)\",\"(required)\":\"(erforderlich)\"}");
104
+ $c5df0169c370d169$exports = {
105
+ "(optional)": `(optional)`,
106
+ "(required)": `(erforderlich)`
107
+ };
92
108
 
93
109
 
94
110
  var $3c9af509a01a8d08$exports = {};
95
- $3c9af509a01a8d08$exports = JSON.parse("{\"(optional)\":\"(προαιρετικό)\",\"(required)\":\"(απαιτείται)\"}");
111
+ $3c9af509a01a8d08$exports = {
112
+ "(optional)": `(προαιρετικό)`,
113
+ "(required)": `(απαιτείται)`
114
+ };
96
115
 
97
116
 
98
117
  var $aa36476f91664a08$exports = {};
99
- $aa36476f91664a08$exports = JSON.parse("{\"(required)\":\"(required)\",\"(optional)\":\"(optional)\",\"(None)\":\"(None)\"}");
118
+ $aa36476f91664a08$exports = {
119
+ "(required)": `(required)`,
120
+ "(optional)": `(optional)`,
121
+ "(None)": `(None)`
122
+ };
100
123
 
101
124
 
102
125
  var $d96f2251ced25e45$exports = {};
103
- $d96f2251ced25e45$exports = JSON.parse("{\"(optional)\":\"(opcional)\",\"(required)\":\"(necesario)\"}");
126
+ $d96f2251ced25e45$exports = {
127
+ "(optional)": `(opcional)`,
128
+ "(required)": `(necesario)`
129
+ };
104
130
 
105
131
 
106
132
  var $16ec4ffbd4b2ca4b$exports = {};
107
- $16ec4ffbd4b2ca4b$exports = JSON.parse("{\"(optional)\":\"(valikuline)\",\"(required)\":\"(nõutav)\"}");
133
+ $16ec4ffbd4b2ca4b$exports = {
134
+ "(optional)": `(valikuline)`,
135
+ "(required)": `(nõutav)`
136
+ };
108
137
 
109
138
 
110
139
  var $60f372f660e937e4$exports = {};
111
- $60f372f660e937e4$exports = JSON.parse("{\"(optional)\":\"(valinnainen)\",\"(required)\":\"(pakollinen)\"}");
140
+ $60f372f660e937e4$exports = {
141
+ "(optional)": `(valinnainen)`,
142
+ "(required)": `(pakollinen)`
143
+ };
112
144
 
113
145
 
114
146
  var $d87c5f1e899f6af1$exports = {};
115
- $d87c5f1e899f6af1$exports = JSON.parse("{\"(optional)\":\"(facultatif)\",\"(required)\":\"(requis)\"}");
147
+ $d87c5f1e899f6af1$exports = {
148
+ "(optional)": `(facultatif)`,
149
+ "(required)": `(requis)`
150
+ };
116
151
 
117
152
 
118
153
  var $6899669fa63c7816$exports = {};
119
- $6899669fa63c7816$exports = JSON.parse("{\"(optional)\":\"(אופציונלי)\",\"(required)\":\"(נדרש)\"}");
154
+ $6899669fa63c7816$exports = {
155
+ "(optional)": `(אופציונלי)`,
156
+ "(required)": `(נדרש)`
157
+ };
120
158
 
121
159
 
122
160
  var $3597d722a30a8081$exports = {};
123
- $3597d722a30a8081$exports = JSON.parse("{\"(optional)\":\"(opcionalno)\",\"(required)\":\"(obvezno)\"}");
161
+ $3597d722a30a8081$exports = {
162
+ "(optional)": `(opcionalno)`,
163
+ "(required)": `(obvezno)`
164
+ };
124
165
 
125
166
 
126
167
  var $3ef905a2ce0921cb$exports = {};
127
- $3ef905a2ce0921cb$exports = JSON.parse("{\"(optional)\":\"(opcionális)\",\"(required)\":\"(kötelező)\"}");
168
+ $3ef905a2ce0921cb$exports = {
169
+ "(optional)": `(opcionális)`,
170
+ "(required)": `(kötelező)`
171
+ };
128
172
 
129
173
 
130
174
  var $e59d2e4af9ff1c28$exports = {};
131
- $e59d2e4af9ff1c28$exports = JSON.parse("{\"(optional)\":\"(facoltativo)\",\"(required)\":\"(obbligatorio)\"}");
175
+ $e59d2e4af9ff1c28$exports = {
176
+ "(optional)": `(facoltativo)`,
177
+ "(required)": `(obbligatorio)`
178
+ };
132
179
 
133
180
 
134
181
  var $422a7013ab2cb36d$exports = {};
135
- $422a7013ab2cb36d$exports = JSON.parse("{\"(optional)\":\"(オプション)\",\"(required)\":\"(必須)\"}");
182
+ $422a7013ab2cb36d$exports = {
183
+ "(optional)": `(オプション)`,
184
+ "(required)": `(必須)`
185
+ };
136
186
 
137
187
 
138
188
  var $a58a7ab9570c5a18$exports = {};
139
- $a58a7ab9570c5a18$exports = JSON.parse("{\"(optional)\":\"(선택 사항)\",\"(required)\":\"(필수 사항)\"}");
189
+ $a58a7ab9570c5a18$exports = {
190
+ "(optional)": `(선택 사항)`,
191
+ "(required)": `(필수 사항)`
192
+ };
140
193
 
141
194
 
142
195
  var $24e660c5a5be82af$exports = {};
143
- $24e660c5a5be82af$exports = JSON.parse("{\"(optional)\":\"(pasirenkama)\",\"(required)\":\"(privaloma)\"}");
196
+ $24e660c5a5be82af$exports = {
197
+ "(optional)": `(pasirenkama)`,
198
+ "(required)": `(privaloma)`
199
+ };
144
200
 
145
201
 
146
202
  var $a222e05de6d8dce8$exports = {};
147
- $a222e05de6d8dce8$exports = JSON.parse("{\"(optional)\":\"(neobligāti)\",\"(required)\":\"(obligāti)\"}");
203
+ $a222e05de6d8dce8$exports = {
204
+ "(optional)": `(neobligāti)`,
205
+ "(required)": `(obligāti)`
206
+ };
148
207
 
149
208
 
150
209
  var $524caea23ab94ad7$exports = {};
151
- $524caea23ab94ad7$exports = JSON.parse("{\"(optional)\":\"(valgfritt)\",\"(required)\":\"(obligatorisk)\"}");
210
+ $524caea23ab94ad7$exports = {
211
+ "(optional)": `(valgfritt)`,
212
+ "(required)": `(obligatorisk)`
213
+ };
152
214
 
153
215
 
154
216
  var $572079ed86210ca9$exports = {};
155
- $572079ed86210ca9$exports = JSON.parse("{\"(optional)\":\"(optioneel)\",\"(required)\":\"(vereist)\"}");
217
+ $572079ed86210ca9$exports = {
218
+ "(optional)": `(optioneel)`,
219
+ "(required)": `(vereist)`
220
+ };
156
221
 
157
222
 
158
223
  var $6a0777ee77a74b18$exports = {};
159
- $6a0777ee77a74b18$exports = JSON.parse("{\"(optional)\":\"(opcjonalne)\",\"(required)\":\"(wymagane)\"}");
224
+ $6a0777ee77a74b18$exports = {
225
+ "(optional)": `(opcjonalne)`,
226
+ "(required)": `(wymagane)`
227
+ };
160
228
 
161
229
 
162
230
  var $ea0401974d81b469$exports = {};
163
- $ea0401974d81b469$exports = JSON.parse("{\"(optional)\":\"(opcional)\",\"(required)\":\"(obrigatório)\"}");
231
+ $ea0401974d81b469$exports = {
232
+ "(optional)": `(opcional)`,
233
+ "(required)": `(obrigatório)`
234
+ };
164
235
 
165
236
 
166
237
  var $701d0854e4f18979$exports = {};
167
- $701d0854e4f18979$exports = JSON.parse("{\"(optional)\":\"(opcional)\",\"(required)\":\"(obrigatório)\"}");
238
+ $701d0854e4f18979$exports = {
239
+ "(optional)": `(opcional)`,
240
+ "(required)": `(obrigatório)`
241
+ };
168
242
 
169
243
 
170
244
  var $dd9fccd10d0a4be3$exports = {};
171
- $dd9fccd10d0a4be3$exports = JSON.parse("{\"(optional)\":\"(opţional)\",\"(required)\":\"(obligatoriu)\"}");
245
+ $dd9fccd10d0a4be3$exports = {
246
+ "(optional)": `(opţional)`,
247
+ "(required)": `(obligatoriu)`
248
+ };
172
249
 
173
250
 
174
251
  var $3cd1eab3b0ecc980$exports = {};
175
- $3cd1eab3b0ecc980$exports = JSON.parse("{\"(optional)\":\"(дополнительно)\",\"(required)\":\"(обязательно)\"}");
252
+ $3cd1eab3b0ecc980$exports = {
253
+ "(optional)": `(дополнительно)`,
254
+ "(required)": `(обязательно)`
255
+ };
176
256
 
177
257
 
178
258
  var $d109f3d68ba24ffc$exports = {};
179
- $d109f3d68ba24ffc$exports = JSON.parse("{\"(optional)\":\"(nepovinné)\",\"(required)\":\"(povinné)\"}");
259
+ $d109f3d68ba24ffc$exports = {
260
+ "(optional)": `(nepovinné)`,
261
+ "(required)": `(povinné)`
262
+ };
180
263
 
181
264
 
182
265
  var $6382c2117e9fd1b6$exports = {};
183
- $6382c2117e9fd1b6$exports = JSON.parse("{\"(optional)\":\"(opcijsko)\",\"(required)\":\"(obvezno)\"}");
266
+ $6382c2117e9fd1b6$exports = {
267
+ "(optional)": `(opcijsko)`,
268
+ "(required)": `(obvezno)`
269
+ };
184
270
 
185
271
 
186
272
  var $ba796dd79114e2d4$exports = {};
187
- $ba796dd79114e2d4$exports = JSON.parse("{\"(optional)\":\"(opciono)\",\"(required)\":\"(obavezno)\"}");
273
+ $ba796dd79114e2d4$exports = {
274
+ "(optional)": `(opciono)`,
275
+ "(required)": `(obavezno)`
276
+ };
188
277
 
189
278
 
190
279
  var $916521e9800ac46c$exports = {};
191
- $916521e9800ac46c$exports = JSON.parse("{\"(optional)\":\"(valfritt)\",\"(required)\":\"(krävs)\"}");
280
+ $916521e9800ac46c$exports = {
281
+ "(optional)": `(valfritt)`,
282
+ "(required)": `(krävs)`
283
+ };
192
284
 
193
285
 
194
286
  var $acd72b88f580fe64$exports = {};
195
- $acd72b88f580fe64$exports = JSON.parse("{\"(optional)\":\"(isteğe bağlı)\",\"(required)\":\"(gerekli)\"}");
287
+ $acd72b88f580fe64$exports = {
288
+ "(optional)": `(isteğe bağlı)`,
289
+ "(required)": `(gerekli)`
290
+ };
196
291
 
197
292
 
198
293
  var $bd065904f1420f31$exports = {};
199
- $bd065904f1420f31$exports = JSON.parse("{\"(optional)\":\"(необов’язково)\",\"(required)\":\"(обов’язково)\"}");
294
+ $bd065904f1420f31$exports = {
295
+ "(optional)": `(необов’язково)`,
296
+ "(required)": `(обов’язково)`
297
+ };
200
298
 
201
299
 
202
300
  var $0128cc194bc107bb$exports = {};
203
- $0128cc194bc107bb$exports = JSON.parse("{\"(optional)\":\"(可选)\",\"(required)\":\"(必填)\"}");
301
+ $0128cc194bc107bb$exports = {
302
+ "(optional)": `(可选)`,
303
+ "(required)": `(必填)`
304
+ };
204
305
 
205
306
 
206
307
  var $c57738f6094a3d25$exports = {};
207
- $c57738f6094a3d25$exports = JSON.parse("{\"(optional)\":\"(選填)\",\"(required)\":\"(必填)\"}");
308
+ $c57738f6094a3d25$exports = {
309
+ "(optional)": `(選填)`,
310
+ "(required)": `(必填)`
311
+ };
208
312
 
209
313
 
210
314
  $79b4ff1b6ea94ffc$exports = {
@@ -306,11 +410,11 @@ function $00af9ba397a66f43$var$Label(props, ref) {
306
410
  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;
307
411
  let domRef = $6WzO6$useDOMRef(ref);
308
412
  let { styleProps: styleProps } = $6WzO6$useStyleProps(otherProps);
309
- let formatMessage = $6WzO6$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($79b4ff1b6ea94ffc$exports)));
310
- let necessityLabel = isRequired ? formatMessage('(required)') : formatMessage('(optional)');
413
+ let stringFormatter = $6WzO6$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($79b4ff1b6ea94ffc$exports)));
414
+ let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');
311
415
  let icon = /*#__PURE__*/ $6WzO6$react.createElement($6WzO6$spectrumiconsuiAsterisk, {
312
416
  UNSAFE_className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-FieldLabel-requiredIcon'),
313
- "aria-label": includeNecessityIndicatorInAccessibilityName ? formatMessage('(required)') : undefined
417
+ "aria-label": includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined
314
418
  });
315
419
  let labelClassNames = $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-FieldLabel', {
316
420
  'spectrum-FieldLabel--positionSide': labelPosition === 'side',
@@ -451,7 +555,7 @@ function $b7ca5b4454a2009d$var$Field(props, ref) {
451
555
  } , elementType: elementType , wrapperClassName: wrapperClassName , ...otherProps } = props;
452
556
  let { styleProps: styleProps } = $6WzO6$useStyleProps(otherProps);
453
557
  let hasHelpText = !!description || errorMessage && validationState === 'invalid';
454
- let formatMessage = $6WzO6$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($79b4ff1b6ea94ffc$exports)));
558
+ let stringFormatter = $6WzO6$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($79b4ff1b6ea94ffc$exports)));
455
559
  let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');
456
560
  if (label || hasHelpText) {
457
561
  let labelWrapperClass = $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field', {
@@ -472,7 +576,7 @@ function $b7ca5b4454a2009d$var$Field(props, ref) {
472
576
  })
473
577
  ;
474
578
  if (displayReadOnly) {
475
- if (readOnlyText === '') readOnlyText = formatMessage('(None)');
579
+ if (readOnlyText === '') readOnlyText = stringFormatter.format('(None)');
476
580
  children = /*#__PURE__*/ $6WzO6$react.createElement($7eed1d699290e79c$export$18fbc9a75a2c46ae, {
477
581
  ...props,
478
582
  readOnlyText: readOnlyText,
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAmC;AACnC,GAAkD;AAClD,GAAwC;AACxC,GAA4C;AAC5C,GAA6B;AAC7B,GAA6C;AAL7C,yCAAmC,GAAG,CAA0B;AAChE,yCAAkD,GAAG,CAAyC;AAC9F,yCAAwC,GAAG,CAA+B;AAC1E,sCAA4C,GAAG,CAAmC;AAClF,yCAA6B,GAAG,CAAoB;AACpD,yCAA6C,GAAG,CAAoC;;;SDoB3E,8BAAQ,CAAC,KAAoB,EA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B,CAAC;QAED,GAAG,CAAC,cAAc,gDACf,WAAI;gBAAC,SAAS,EAAC,CAAQ;gBAAC,gBAAgB,EAAE,iBAAU,CAAC,gEAAW,EAAE,CAAwB;eACxF,QAAQ,EACR,WAAW,KAAK,eAAe,IAAI,cAAc;;QAItD,MAAM,0CACH,CAAG;eACE,UAAU;YACd,GAAG,EAAE,GAAG;YACR,SAAS,EAAE,iBAAiB;WAC3B,KAAK,6CACH,yCAAK;eACA,UAAU;YACd,aAAa,EAAE,aAAa;YAC5B,UAAU,EAAE,UAAU;YACtB,UAAU,EAAE,UAAU;YACtB,kBAAkB,EAAE,kBAAkB;YACtC,4CAA4C,EAAE,4CAA4C;YAC1F,WAAW,EAAE,WAAW;WACvB,KAAK,GAGT,cAAc;IAGrB,CAAC;IAED,MAAM,eAAC,YAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,iBAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;WAC3D,UAAU;QACb,EAAa,AAAb,WAAa;QACb,GAAG,EAAE,gBAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG;IAClC,CAAC;AACH,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,YAAK,CAAC,UAAU,CAAC,2BAAK","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/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@react-spectrum/label/src/Label.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css","packages/@react-spectrum/label/src/ReadOnlyField.tsx","packages/@adobe/spectrum-css-temp/components/textfield/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, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, mergeRefs} from '@react-aria/utils';\nimport React, {RefObject} from 'react';\nimport {ReadOnlyField} from './ReadOnlyField';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useMessageFormatter} from '@react-aria/i18n';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n props = useFormProps(props);\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n children,\n labelProps,\n readOnlyText,\n isReadOnly,\n inputProps, \n inputRef, \n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let formatMessage = useMessageFormatter(intlMessages);\n let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');\n\n if (label || hasHelpText) {\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side'\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={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon} />\n );\n\n if (displayReadOnly) {\n if (readOnlyText === '') {\n readOnlyText = formatMessage('(None)');\n }\n children = (\n <ReadOnlyField\n {...props} \n readOnlyText={readOnlyText}\n inputProps={inputProps} \n ref={inputRef as RefObject<HTMLTextAreaElement>} /> \n );\n }\n\n let renderChildren = () => (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && !displayReadOnly && renderHelpText()}\n </Flex>\n );\n\n return (\n <div\n {...styleProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\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 {renderChildren()}\n </div>\n );\n }\n\n return React.cloneElement(children, mergeProps(children.props, {\n ...styleProps,\n // @ts-ignore\n ref: mergeRefs(children.ref, ref)\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, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, 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}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && 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","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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 \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\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 {useMessageFormatter} 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 formatMessage = useMessageFormatter(intlMessages);\n let necessityLabel = isRequired ? formatMessage('(required)') : formatMessage('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? formatMessage('(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","/*\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","/*\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} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus'; \nimport {mergeProps} from '@react-aria/utils';\nimport React, {RefObject, useCallback} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/textfield/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLayoutEffect} from '@react-aria/utils';\n\nfunction ReadOnlyField(props: SpectrumFieldProps, ref: RefObject<HTMLTextAreaElement>) {\n props = useFormProps(props);\n let {\n isDisabled,\n readOnlyText,\n inputProps,\n autoFocus \n } = props;\n delete inputProps.defaultValue;\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let onHeightChange = useCallback(() => {\n let input = ref.current;\n let prevAlignment = input.style.alignSelf;\n input.style.alignSelf = 'start';\n input.style.height = 'auto'; \n input.style.height = `${input.scrollHeight}px`;\n input.style.alignSelf = prevAlignment;\n }, [ref]);\n\n useLayoutEffect(() => {\n if (ref.current) {\n onHeightChange();\n }\n }, [onHeightChange, readOnlyText, ref]);\n\n return (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Textfield',\n {\n 'spectrum-Textfield--quiet': true,\n 'spectrum-Textfield--readonly': true\n }\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} isTextInput autoFocus={autoFocus}> \n <textarea\n {...mergeProps(inputProps, hoverProps)} \n rows={1}\n ref={ref}\n value={readOnlyText}\n className={\n classNames(\n styles,\n 'spectrum-Textfield-input',\n {\n 'is-hovered': isHovered\n }\n )\n } />\n </FocusRing> \n </div>\n );\n}\n\nlet _ReadOnlyField = React.forwardRef(ReadOnlyField);\nexport {_ReadOnlyField as ReadOnlyField};\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":";;;;;;;;;;;;;;;;;;;;;;;;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src/HelpText.tsx","packages/@adobe/spectrum-css-temp/components/helptext/vars.css","packages/@react-spectrum/label/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@react-spectrum/label/src/Label.tsx","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css","packages/@react-spectrum/label/src/ReadOnlyField.tsx","packages/@adobe/spectrum-css-temp/components/textfield/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, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, mergeRefs} from '@react-aria/utils';\nimport React, {RefObject} from 'react';\nimport {ReadOnlyField} from './ReadOnlyField';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n props = useFormProps(props);\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n children,\n labelProps,\n readOnlyText,\n isReadOnly,\n inputProps,\n inputRef,\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');\n\n if (label || hasHelpText) {\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side'\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={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon} />\n );\n\n if (displayReadOnly) {\n if (readOnlyText === '') {\n readOnlyText = stringFormatter.format('(None)');\n }\n children = (\n <ReadOnlyField\n {...props}\n readOnlyText={readOnlyText}\n inputProps={inputProps}\n ref={inputRef as RefObject<HTMLTextAreaElement>} />\n );\n }\n\n let renderChildren = () => (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && !displayReadOnly && renderHelpText()}\n </Flex>\n );\n\n return (\n <div\n {...styleProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\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 {renderChildren()}\n </div>\n );\n }\n\n return React.cloneElement(children, mergeProps(children.props, {\n ...styleProps,\n // @ts-ignore\n ref: mergeRefs(children.ref, ref)\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, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, 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}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && 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","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./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 \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\",\n \"(None)\": \"(None)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\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);\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","/*\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","/*\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} from '@react-spectrum/utils';\nimport {FocusRing} from '@react-aria/focus'; \nimport {mergeProps} from '@react-aria/utils';\nimport React, {RefObject, useCallback} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/textfield/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useHover} from '@react-aria/interactions';\nimport {useLayoutEffect} from '@react-aria/utils';\n\nfunction ReadOnlyField(props: SpectrumFieldProps, ref: RefObject<HTMLTextAreaElement>) {\n props = useFormProps(props);\n let {\n isDisabled,\n readOnlyText,\n inputProps,\n autoFocus \n } = props;\n delete inputProps.defaultValue;\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let onHeightChange = useCallback(() => {\n let input = ref.current;\n let prevAlignment = input.style.alignSelf;\n input.style.alignSelf = 'start';\n input.style.height = 'auto'; \n input.style.height = `${input.scrollHeight}px`;\n input.style.alignSelf = prevAlignment;\n }, [ref]);\n\n useLayoutEffect(() => {\n if (ref.current) {\n onHeightChange();\n }\n }, [onHeightChange, readOnlyText, ref]);\n\n return (\n <div\n className={\n classNames(\n styles,\n 'spectrum-Textfield',\n {\n 'spectrum-Textfield--quiet': true,\n 'spectrum-Textfield--readonly': true\n }\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} isTextInput autoFocus={autoFocus}> \n <textarea\n {...mergeProps(inputProps, hoverProps)} \n rows={1}\n ref={ref}\n value={readOnlyText}\n className={\n classNames(\n styles,\n 'spectrum-Textfield-input',\n {\n 'is-hovered': isHovered\n }\n )\n } />\n </FocusRing> \n </div>\n );\n}\n\nlet _ReadOnlyField = React.forwardRef(ReadOnlyField);\nexport {_ReadOnlyField as ReadOnlyField};\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/label",
3
- "version": "3.6.2-nightly.3363+2a6c48eb0",
3
+ "version": "3.6.2-nightly.3375+7cebb4eea",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,20 +32,20 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/focus": "3.0.0-nightly.1663+2a6c48eb0",
36
- "@react-aria/i18n": "3.0.0-nightly.1663+2a6c48eb0",
37
- "@react-aria/interactions": "3.0.0-nightly.1663+2a6c48eb0",
38
- "@react-aria/label": "3.0.0-nightly.1663+2a6c48eb0",
39
- "@react-aria/utils": "3.0.0-nightly.1663+2a6c48eb0",
40
- "@react-spectrum/form": "3.0.0-nightly.1663+2a6c48eb0",
41
- "@react-spectrum/layout": "3.3.2-nightly.3363+2a6c48eb0",
42
- "@react-spectrum/utils": "3.0.0-nightly.1663+2a6c48eb0",
43
- "@react-types/label": "3.0.0-nightly.1663+2a6c48eb0",
44
- "@react-types/shared": "3.0.0-nightly.1663+2a6c48eb0",
45
- "@spectrum-icons/ui": "3.0.0-nightly.1663+2a6c48eb0"
35
+ "@react-aria/focus": "3.0.0-nightly.1675+7cebb4eea",
36
+ "@react-aria/i18n": "3.0.0-nightly.1675+7cebb4eea",
37
+ "@react-aria/interactions": "3.0.0-nightly.1675+7cebb4eea",
38
+ "@react-aria/label": "3.0.0-nightly.1675+7cebb4eea",
39
+ "@react-aria/utils": "3.0.0-nightly.1675+7cebb4eea",
40
+ "@react-spectrum/form": "3.0.0-nightly.1675+7cebb4eea",
41
+ "@react-spectrum/layout": "3.3.2-nightly.3375+7cebb4eea",
42
+ "@react-spectrum/utils": "3.0.0-nightly.1675+7cebb4eea",
43
+ "@react-types/label": "3.0.0-nightly.1675+7cebb4eea",
44
+ "@react-types/shared": "3.0.0-nightly.1675+7cebb4eea",
45
+ "@spectrum-icons/ui": "3.0.0-nightly.1675+7cebb4eea"
46
46
  },
47
47
  "devDependencies": {
48
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1663+2a6c48eb0"
48
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1675+7cebb4eea"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@react-spectrum/provider": "^3.0.0",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "2a6c48eb0099671cf9b530ec3d75882c549e9cb5"
57
+ "gitHead": "7cebb4eea31f383f1eec06cc53a7909f8736f66a"
58
58
  }
package/src/Field.tsx CHANGED
@@ -23,7 +23,7 @@ import React, {RefObject} from 'react';
23
23
  import {ReadOnlyField} from './ReadOnlyField';
24
24
  import {SpectrumFieldProps} from '@react-types/label';
25
25
  import {useFormProps} from '@react-spectrum/form';
26
- import {useMessageFormatter} from '@react-aria/i18n';
26
+ import {useLocalizedStringFormatter} from '@react-aria/i18n';
27
27
 
28
28
  function Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {
29
29
  props = useFormProps(props);
@@ -43,8 +43,8 @@ function Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {
43
43
  labelProps,
44
44
  readOnlyText,
45
45
  isReadOnly,
46
- inputProps,
47
- inputRef,
46
+ inputProps,
47
+ inputRef,
48
48
  // Not every component that uses <Field> supports help text.
49
49
  descriptionProps = {},
50
50
  errorMessageProps = {},
@@ -55,7 +55,7 @@ function Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {
55
55
  } = props;
56
56
  let {styleProps} = useStyleProps(otherProps);
57
57
  let hasHelpText = !!description || errorMessage && validationState === 'invalid';
58
- let formatMessage = useMessageFormatter(intlMessages);
58
+ let stringFormatter = useLocalizedStringFormatter(intlMessages);
59
59
  let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');
60
60
 
61
61
  if (label || hasHelpText) {
@@ -90,14 +90,14 @@ function Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {
90
90
 
91
91
  if (displayReadOnly) {
92
92
  if (readOnlyText === '') {
93
- readOnlyText = formatMessage('(None)');
93
+ readOnlyText = stringFormatter.format('(None)');
94
94
  }
95
95
  children = (
96
96
  <ReadOnlyField
97
- {...props}
97
+ {...props}
98
98
  readOnlyText={readOnlyText}
99
- inputProps={inputProps}
100
- ref={inputRef as RefObject<HTMLTextAreaElement>} />
99
+ inputProps={inputProps}
100
+ ref={inputRef as RefObject<HTMLTextAreaElement>} />
101
101
  );
102
102
  }
103
103
 
package/src/Label.tsx CHANGED
@@ -19,7 +19,7 @@ import intlMessages from '../intl/*.json';
19
19
  import React from 'react';
20
20
  import {SpectrumLabelProps} from '@react-types/label';
21
21
  import styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';
22
- import {useMessageFormatter} from '@react-aria/i18n';
22
+ import {useLocalizedStringFormatter} from '@react-aria/i18n';
23
23
  import {useProviderProps} from '@react-spectrum/provider';
24
24
 
25
25
  function Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {
@@ -41,12 +41,12 @@ function Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {
41
41
  let domRef = useDOMRef(ref);
42
42
  let {styleProps} = useStyleProps(otherProps);
43
43
 
44
- let formatMessage = useMessageFormatter(intlMessages);
45
- let necessityLabel = isRequired ? formatMessage('(required)') : formatMessage('(optional)');
44
+ let stringFormatter = useLocalizedStringFormatter(intlMessages);
45
+ let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');
46
46
  let icon = (
47
47
  <Asterisk
48
48
  UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}
49
- aria-label={includeNecessityIndicatorInAccessibilityName ? formatMessage('(required)') : undefined} />
49
+ aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />
50
50
  );
51
51
 
52
52
  let labelClassNames = classNames(