@react-spectrum/label 3.6.2-nightly.3362 → 3.6.2-nightly.3373
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 +148 -68
- package/dist/main.js.map +1 -1
- package/dist/module.js +144 -49
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/Field.tsx +8 -8
- package/src/Label.tsx +4 -4
- package/src/index.ts +3 -3
package/dist/main.js
CHANGED
@@ -11,36 +11,18 @@ var $fXO85$reactspectrumprovider = require("@react-spectrum/provider");
|
|
11
11
|
var $fXO85$reactariafocus = require("@react-aria/focus");
|
12
12
|
var $fXO85$reactariainteractions = require("@react-aria/interactions");
|
13
13
|
|
14
|
-
function $parcel$
|
15
|
-
Object.
|
16
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
17
|
-
return;
|
18
|
-
}
|
19
|
-
|
20
|
-
Object.defineProperty(dest, key, {
|
21
|
-
enumerable: true,
|
22
|
-
get: function get() {
|
23
|
-
return source[key];
|
24
|
-
}
|
25
|
-
});
|
26
|
-
});
|
27
|
-
|
28
|
-
return dest;
|
14
|
+
function $parcel$export(e, n, v, s) {
|
15
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
29
16
|
}
|
30
17
|
function $parcel$interopDefault(a) {
|
31
18
|
return a && a.__esModule ? a.default : a;
|
32
19
|
}
|
33
|
-
function $parcel$export(e, n, v, s) {
|
34
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
35
|
-
}
|
36
|
-
var $0e5410371a445d59$exports = {};
|
37
20
|
|
38
|
-
$parcel$export(
|
21
|
+
$parcel$export(module.exports, "Field", () => $0e5410371a445d59$export$a455218a85c89869);
|
22
|
+
$parcel$export(module.exports, "Label", () => $38a9afbd39356629$export$b04be29aa201d4f5);
|
23
|
+
$parcel$export(module.exports, "HelpText", () => $2d1b5114e5b358b6$export$a67c0bc59081311a);
|
39
24
|
|
40
25
|
|
41
|
-
var $2d1b5114e5b358b6$exports = {};
|
42
|
-
|
43
|
-
$parcel$export($2d1b5114e5b358b6$exports, "HelpText", () => $2d1b5114e5b358b6$export$a67c0bc59081311a);
|
44
26
|
|
45
27
|
|
46
28
|
|
@@ -94,139 +76,243 @@ function $2d1b5114e5b358b6$var$HelpText(props, ref) {
|
|
94
76
|
|
95
77
|
var $b41c468199d98654$exports = {};
|
96
78
|
var $be852afcd8987832$exports = {};
|
97
|
-
$be852afcd8987832$exports =
|
79
|
+
$be852afcd8987832$exports = {
|
80
|
+
"(optional)": `(اختياري)`,
|
81
|
+
"(required)": `(مطلوب)`,
|
82
|
+
"(None)": `(None)`
|
83
|
+
};
|
98
84
|
|
99
85
|
|
100
86
|
var $aa4ffc3da65655ef$exports = {};
|
101
|
-
$aa4ffc3da65655ef$exports =
|
87
|
+
$aa4ffc3da65655ef$exports = {
|
88
|
+
"(optional)": `(незадължително)`,
|
89
|
+
"(required)": `(задължително)`
|
90
|
+
};
|
102
91
|
|
103
92
|
|
104
93
|
var $70336543455a8968$exports = {};
|
105
|
-
$70336543455a8968$exports =
|
94
|
+
$70336543455a8968$exports = {
|
95
|
+
"(optional)": `(volitelně)`,
|
96
|
+
"(required)": `(požadováno)`
|
97
|
+
};
|
106
98
|
|
107
99
|
|
108
100
|
var $da721886d3a532d3$exports = {};
|
109
|
-
$da721886d3a532d3$exports =
|
101
|
+
$da721886d3a532d3$exports = {
|
102
|
+
"(optional)": `(valgfrit)`,
|
103
|
+
"(required)": `(obligatorisk)`
|
104
|
+
};
|
110
105
|
|
111
106
|
|
112
107
|
var $8d18e19dccc28394$exports = {};
|
113
|
-
$8d18e19dccc28394$exports =
|
108
|
+
$8d18e19dccc28394$exports = {
|
109
|
+
"(optional)": `(optional)`,
|
110
|
+
"(required)": `(erforderlich)`
|
111
|
+
};
|
114
112
|
|
115
113
|
|
116
114
|
var $c70340f3f366f0c9$exports = {};
|
117
|
-
$c70340f3f366f0c9$exports =
|
115
|
+
$c70340f3f366f0c9$exports = {
|
116
|
+
"(optional)": `(προαιρετικό)`,
|
117
|
+
"(required)": `(απαιτείται)`
|
118
|
+
};
|
118
119
|
|
119
120
|
|
120
121
|
var $100a4f0d92ab2685$exports = {};
|
121
|
-
$100a4f0d92ab2685$exports =
|
122
|
+
$100a4f0d92ab2685$exports = {
|
123
|
+
"(required)": `(required)`,
|
124
|
+
"(optional)": `(optional)`,
|
125
|
+
"(None)": `(None)`
|
126
|
+
};
|
122
127
|
|
123
128
|
|
124
129
|
var $376a75ae5e97584b$exports = {};
|
125
|
-
$376a75ae5e97584b$exports =
|
130
|
+
$376a75ae5e97584b$exports = {
|
131
|
+
"(optional)": `(opcional)`,
|
132
|
+
"(required)": `(necesario)`
|
133
|
+
};
|
126
134
|
|
127
135
|
|
128
136
|
var $ea0a534428756103$exports = {};
|
129
|
-
$ea0a534428756103$exports =
|
137
|
+
$ea0a534428756103$exports = {
|
138
|
+
"(optional)": `(valikuline)`,
|
139
|
+
"(required)": `(nõutav)`
|
140
|
+
};
|
130
141
|
|
131
142
|
|
132
143
|
var $2176594cdf3907b0$exports = {};
|
133
|
-
$2176594cdf3907b0$exports =
|
144
|
+
$2176594cdf3907b0$exports = {
|
145
|
+
"(optional)": `(valinnainen)`,
|
146
|
+
"(required)": `(pakollinen)`
|
147
|
+
};
|
134
148
|
|
135
149
|
|
136
150
|
var $1190b8ce746b4c70$exports = {};
|
137
|
-
$1190b8ce746b4c70$exports =
|
151
|
+
$1190b8ce746b4c70$exports = {
|
152
|
+
"(optional)": `(facultatif)`,
|
153
|
+
"(required)": `(requis)`
|
154
|
+
};
|
138
155
|
|
139
156
|
|
140
157
|
var $b78e8997233e1d53$exports = {};
|
141
|
-
$b78e8997233e1d53$exports =
|
158
|
+
$b78e8997233e1d53$exports = {
|
159
|
+
"(optional)": `(אופציונלי)`,
|
160
|
+
"(required)": `(נדרש)`
|
161
|
+
};
|
142
162
|
|
143
163
|
|
144
164
|
var $1788058e8b1338cf$exports = {};
|
145
|
-
$1788058e8b1338cf$exports =
|
165
|
+
$1788058e8b1338cf$exports = {
|
166
|
+
"(optional)": `(opcionalno)`,
|
167
|
+
"(required)": `(obvezno)`
|
168
|
+
};
|
146
169
|
|
147
170
|
|
148
171
|
var $5e7e524c4d77d357$exports = {};
|
149
|
-
$5e7e524c4d77d357$exports =
|
172
|
+
$5e7e524c4d77d357$exports = {
|
173
|
+
"(optional)": `(opcionális)`,
|
174
|
+
"(required)": `(kötelező)`
|
175
|
+
};
|
150
176
|
|
151
177
|
|
152
178
|
var $8545837977fb83c7$exports = {};
|
153
|
-
$8545837977fb83c7$exports =
|
179
|
+
$8545837977fb83c7$exports = {
|
180
|
+
"(optional)": `(facoltativo)`,
|
181
|
+
"(required)": `(obbligatorio)`
|
182
|
+
};
|
154
183
|
|
155
184
|
|
156
185
|
var $b0b5a068cf5e941f$exports = {};
|
157
|
-
$b0b5a068cf5e941f$exports =
|
186
|
+
$b0b5a068cf5e941f$exports = {
|
187
|
+
"(optional)": `(オプション)`,
|
188
|
+
"(required)": `(必須)`
|
189
|
+
};
|
158
190
|
|
159
191
|
|
160
192
|
var $87a7a70faf1c577f$exports = {};
|
161
|
-
$87a7a70faf1c577f$exports =
|
193
|
+
$87a7a70faf1c577f$exports = {
|
194
|
+
"(optional)": `(선택 사항)`,
|
195
|
+
"(required)": `(필수 사항)`
|
196
|
+
};
|
162
197
|
|
163
198
|
|
164
199
|
var $c3f2142cd0e94e15$exports = {};
|
165
|
-
$c3f2142cd0e94e15$exports =
|
200
|
+
$c3f2142cd0e94e15$exports = {
|
201
|
+
"(optional)": `(pasirenkama)`,
|
202
|
+
"(required)": `(privaloma)`
|
203
|
+
};
|
166
204
|
|
167
205
|
|
168
206
|
var $008ebeb5a8039d3b$exports = {};
|
169
|
-
$008ebeb5a8039d3b$exports =
|
207
|
+
$008ebeb5a8039d3b$exports = {
|
208
|
+
"(optional)": `(neobligāti)`,
|
209
|
+
"(required)": `(obligāti)`
|
210
|
+
};
|
170
211
|
|
171
212
|
|
172
213
|
var $3ba626fbf1933ce1$exports = {};
|
173
|
-
$3ba626fbf1933ce1$exports =
|
214
|
+
$3ba626fbf1933ce1$exports = {
|
215
|
+
"(optional)": `(valgfritt)`,
|
216
|
+
"(required)": `(obligatorisk)`
|
217
|
+
};
|
174
218
|
|
175
219
|
|
176
220
|
var $78ed57b244f3862b$exports = {};
|
177
|
-
$78ed57b244f3862b$exports =
|
221
|
+
$78ed57b244f3862b$exports = {
|
222
|
+
"(optional)": `(optioneel)`,
|
223
|
+
"(required)": `(vereist)`
|
224
|
+
};
|
178
225
|
|
179
226
|
|
180
227
|
var $391247f29fc5b238$exports = {};
|
181
|
-
$391247f29fc5b238$exports =
|
228
|
+
$391247f29fc5b238$exports = {
|
229
|
+
"(optional)": `(opcjonalne)`,
|
230
|
+
"(required)": `(wymagane)`
|
231
|
+
};
|
182
232
|
|
183
233
|
|
184
234
|
var $c03311fdea551db1$exports = {};
|
185
|
-
$c03311fdea551db1$exports =
|
235
|
+
$c03311fdea551db1$exports = {
|
236
|
+
"(optional)": `(opcional)`,
|
237
|
+
"(required)": `(obrigatório)`
|
238
|
+
};
|
186
239
|
|
187
240
|
|
188
241
|
var $82f94bdcbdbace10$exports = {};
|
189
|
-
$82f94bdcbdbace10$exports =
|
242
|
+
$82f94bdcbdbace10$exports = {
|
243
|
+
"(optional)": `(opcional)`,
|
244
|
+
"(required)": `(obrigatório)`
|
245
|
+
};
|
190
246
|
|
191
247
|
|
192
248
|
var $459c5159c6836bf9$exports = {};
|
193
|
-
$459c5159c6836bf9$exports =
|
249
|
+
$459c5159c6836bf9$exports = {
|
250
|
+
"(optional)": `(opţional)`,
|
251
|
+
"(required)": `(obligatoriu)`
|
252
|
+
};
|
194
253
|
|
195
254
|
|
196
255
|
var $e94cc84d0b96cae7$exports = {};
|
197
|
-
$e94cc84d0b96cae7$exports =
|
256
|
+
$e94cc84d0b96cae7$exports = {
|
257
|
+
"(optional)": `(дополнительно)`,
|
258
|
+
"(required)": `(обязательно)`
|
259
|
+
};
|
198
260
|
|
199
261
|
|
200
262
|
var $f9f957260773ddeb$exports = {};
|
201
|
-
$f9f957260773ddeb$exports =
|
263
|
+
$f9f957260773ddeb$exports = {
|
264
|
+
"(optional)": `(nepovinné)`,
|
265
|
+
"(required)": `(povinné)`
|
266
|
+
};
|
202
267
|
|
203
268
|
|
204
269
|
var $9775fc82dcd5cb58$exports = {};
|
205
|
-
$9775fc82dcd5cb58$exports =
|
270
|
+
$9775fc82dcd5cb58$exports = {
|
271
|
+
"(optional)": `(opcijsko)`,
|
272
|
+
"(required)": `(obvezno)`
|
273
|
+
};
|
206
274
|
|
207
275
|
|
208
276
|
var $f735f63121c09841$exports = {};
|
209
|
-
$f735f63121c09841$exports =
|
277
|
+
$f735f63121c09841$exports = {
|
278
|
+
"(optional)": `(opciono)`,
|
279
|
+
"(required)": `(obavezno)`
|
280
|
+
};
|
210
281
|
|
211
282
|
|
212
283
|
var $bbe1e12be1e3dd67$exports = {};
|
213
|
-
$bbe1e12be1e3dd67$exports =
|
284
|
+
$bbe1e12be1e3dd67$exports = {
|
285
|
+
"(optional)": `(valfritt)`,
|
286
|
+
"(required)": `(krävs)`
|
287
|
+
};
|
214
288
|
|
215
289
|
|
216
290
|
var $c8baaffeccc5d05c$exports = {};
|
217
|
-
$c8baaffeccc5d05c$exports =
|
291
|
+
$c8baaffeccc5d05c$exports = {
|
292
|
+
"(optional)": `(isteğe bağlı)`,
|
293
|
+
"(required)": `(gerekli)`
|
294
|
+
};
|
218
295
|
|
219
296
|
|
220
297
|
var $849858b96dfabeac$exports = {};
|
221
|
-
$849858b96dfabeac$exports =
|
298
|
+
$849858b96dfabeac$exports = {
|
299
|
+
"(optional)": `(необов’язково)`,
|
300
|
+
"(required)": `(обов’язково)`
|
301
|
+
};
|
222
302
|
|
223
303
|
|
224
304
|
var $3135581a6ef2f6d9$exports = {};
|
225
|
-
$3135581a6ef2f6d9$exports =
|
305
|
+
$3135581a6ef2f6d9$exports = {
|
306
|
+
"(optional)": `(可选)`,
|
307
|
+
"(required)": `(必填)`
|
308
|
+
};
|
226
309
|
|
227
310
|
|
228
311
|
var $fb217acd414dfdf8$exports = {};
|
229
|
-
$fb217acd414dfdf8$exports =
|
312
|
+
$fb217acd414dfdf8$exports = {
|
313
|
+
"(optional)": `(選填)`,
|
314
|
+
"(required)": `(必填)`
|
315
|
+
};
|
230
316
|
|
231
317
|
|
232
318
|
$b41c468199d98654$exports = {
|
@@ -267,9 +353,6 @@ $b41c468199d98654$exports = {
|
|
267
353
|
};
|
268
354
|
|
269
355
|
|
270
|
-
var $38a9afbd39356629$exports = {};
|
271
|
-
|
272
|
-
$parcel$export($38a9afbd39356629$exports, "Label", () => $38a9afbd39356629$export$b04be29aa201d4f5);
|
273
356
|
|
274
357
|
|
275
358
|
|
@@ -331,11 +414,11 @@ function $38a9afbd39356629$var$Label(props, ref) {
|
|
331
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;
|
332
415
|
let domRef = $fXO85$reactspectrumutils.useDOMRef(ref);
|
333
416
|
let { styleProps: styleProps } = $fXO85$reactspectrumutils.useStyleProps(otherProps);
|
334
|
-
let
|
335
|
-
let necessityLabel = isRequired ?
|
417
|
+
let stringFormatter = $fXO85$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($b41c468199d98654$exports)));
|
418
|
+
let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');
|
336
419
|
let icon = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement(($parcel$interopDefault($fXO85$spectrumiconsuiAsterisk)), {
|
337
420
|
UNSAFE_className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-FieldLabel-requiredIcon'),
|
338
|
-
"aria-label": includeNecessityIndicatorInAccessibilityName ?
|
421
|
+
"aria-label": includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined
|
339
422
|
});
|
340
423
|
let labelClassNames = $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-FieldLabel', {
|
341
424
|
'spectrum-FieldLabel--positionSide': labelPosition === 'side',
|
@@ -476,7 +559,7 @@ function $0e5410371a445d59$var$Field(props, ref) {
|
|
476
559
|
} , elementType: elementType , wrapperClassName: wrapperClassName , ...otherProps } = props;
|
477
560
|
let { styleProps: styleProps } = $fXO85$reactspectrumutils.useStyleProps(otherProps);
|
478
561
|
let hasHelpText = !!description || errorMessage && validationState === 'invalid';
|
479
|
-
let
|
562
|
+
let stringFormatter = $fXO85$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($b41c468199d98654$exports)));
|
480
563
|
let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');
|
481
564
|
if (label || hasHelpText) {
|
482
565
|
let labelWrapperClass = $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field', {
|
@@ -497,7 +580,7 @@ function $0e5410371a445d59$var$Field(props, ref) {
|
|
497
580
|
})
|
498
581
|
;
|
499
582
|
if (displayReadOnly) {
|
500
|
-
if (readOnlyText === '') readOnlyText =
|
583
|
+
if (readOnlyText === '') readOnlyText = stringFormatter.format('(None)');
|
501
584
|
children = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement($3666a670134a3e50$export$18fbc9a75a2c46ae, {
|
502
585
|
...props,
|
503
586
|
readOnlyText: readOnlyText,
|
@@ -535,9 +618,6 @@ let $0e5410371a445d59$export$a455218a85c89869 = /*#__PURE__*/ ($parcel$interopDe
|
|
535
618
|
|
536
619
|
|
537
620
|
|
538
|
-
$parcel$exportWildcard(module.exports, $0e5410371a445d59$exports);
|
539
|
-
$parcel$exportWildcard(module.exports, $38a9afbd39356629$exports);
|
540
|
-
$parcel$exportWildcard(module.exports, $2d1b5114e5b358b6$exports);
|
541
621
|
|
542
622
|
|
543
623
|
//# sourceMappingURL=main.js.map
|
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,UAAU;QACd,SAAS,EAAE,oCAAU,CACnB,gEAAM,EACN,CAAmB,qBAClB,mBAAmB,EAAE,cAAc,GAAG,CAAU,YAAG,CAAS,YAC7D,CAAC;YAAA,CAAa,cAAE,UAAU;QAAA,CAAC,EAC3B,UAAU,CAAC,SAAS;Q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AAU,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 * from './Field';\nexport * from './Label';\nexport * 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,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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W,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 {
|
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";
|
@@ -17,15 +17,9 @@ function $parcel$interopDefault(a) {
|
|
17
17
|
function $parcel$export(e, n, v, s) {
|
18
18
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
19
19
|
}
|
20
|
-
var $b7ca5b4454a2009d$exports = {};
|
21
20
|
|
22
|
-
$parcel$export($b7ca5b4454a2009d$exports, "Field", () => $b7ca5b4454a2009d$export$a455218a85c89869);
|
23
21
|
|
24
22
|
|
25
|
-
var $8e50676506611310$exports = {};
|
26
|
-
|
27
|
-
$parcel$export($8e50676506611310$exports, "HelpText", () => $8e50676506611310$export$a67c0bc59081311a);
|
28
|
-
|
29
23
|
|
30
24
|
|
31
25
|
var $beda4304297005df$exports = {};
|
@@ -78,139 +72,243 @@ function $8e50676506611310$var$HelpText(props, ref) {
|
|
78
72
|
|
79
73
|
var $79b4ff1b6ea94ffc$exports = {};
|
80
74
|
var $dfe96401c0c81db3$exports = {};
|
81
|
-
$dfe96401c0c81db3$exports =
|
75
|
+
$dfe96401c0c81db3$exports = {
|
76
|
+
"(optional)": `(اختياري)`,
|
77
|
+
"(required)": `(مطلوب)`,
|
78
|
+
"(None)": `(None)`
|
79
|
+
};
|
82
80
|
|
83
81
|
|
84
82
|
var $f504605657ece833$exports = {};
|
85
|
-
$f504605657ece833$exports =
|
83
|
+
$f504605657ece833$exports = {
|
84
|
+
"(optional)": `(незадължително)`,
|
85
|
+
"(required)": `(задължително)`
|
86
|
+
};
|
86
87
|
|
87
88
|
|
88
89
|
var $ed0ab9e7c53f9351$exports = {};
|
89
|
-
$ed0ab9e7c53f9351$exports =
|
90
|
+
$ed0ab9e7c53f9351$exports = {
|
91
|
+
"(optional)": `(volitelně)`,
|
92
|
+
"(required)": `(požadováno)`
|
93
|
+
};
|
90
94
|
|
91
95
|
|
92
96
|
var $59d9df99e04ee555$exports = {};
|
93
|
-
$59d9df99e04ee555$exports =
|
97
|
+
$59d9df99e04ee555$exports = {
|
98
|
+
"(optional)": `(valgfrit)`,
|
99
|
+
"(required)": `(obligatorisk)`
|
100
|
+
};
|
94
101
|
|
95
102
|
|
96
103
|
var $c5df0169c370d169$exports = {};
|
97
|
-
$c5df0169c370d169$exports =
|
104
|
+
$c5df0169c370d169$exports = {
|
105
|
+
"(optional)": `(optional)`,
|
106
|
+
"(required)": `(erforderlich)`
|
107
|
+
};
|
98
108
|
|
99
109
|
|
100
110
|
var $3c9af509a01a8d08$exports = {};
|
101
|
-
$3c9af509a01a8d08$exports =
|
111
|
+
$3c9af509a01a8d08$exports = {
|
112
|
+
"(optional)": `(προαιρετικό)`,
|
113
|
+
"(required)": `(απαιτείται)`
|
114
|
+
};
|
102
115
|
|
103
116
|
|
104
117
|
var $aa36476f91664a08$exports = {};
|
105
|
-
$aa36476f91664a08$exports =
|
118
|
+
$aa36476f91664a08$exports = {
|
119
|
+
"(required)": `(required)`,
|
120
|
+
"(optional)": `(optional)`,
|
121
|
+
"(None)": `(None)`
|
122
|
+
};
|
106
123
|
|
107
124
|
|
108
125
|
var $d96f2251ced25e45$exports = {};
|
109
|
-
$d96f2251ced25e45$exports =
|
126
|
+
$d96f2251ced25e45$exports = {
|
127
|
+
"(optional)": `(opcional)`,
|
128
|
+
"(required)": `(necesario)`
|
129
|
+
};
|
110
130
|
|
111
131
|
|
112
132
|
var $16ec4ffbd4b2ca4b$exports = {};
|
113
|
-
$16ec4ffbd4b2ca4b$exports =
|
133
|
+
$16ec4ffbd4b2ca4b$exports = {
|
134
|
+
"(optional)": `(valikuline)`,
|
135
|
+
"(required)": `(nõutav)`
|
136
|
+
};
|
114
137
|
|
115
138
|
|
116
139
|
var $60f372f660e937e4$exports = {};
|
117
|
-
$60f372f660e937e4$exports =
|
140
|
+
$60f372f660e937e4$exports = {
|
141
|
+
"(optional)": `(valinnainen)`,
|
142
|
+
"(required)": `(pakollinen)`
|
143
|
+
};
|
118
144
|
|
119
145
|
|
120
146
|
var $d87c5f1e899f6af1$exports = {};
|
121
|
-
$d87c5f1e899f6af1$exports =
|
147
|
+
$d87c5f1e899f6af1$exports = {
|
148
|
+
"(optional)": `(facultatif)`,
|
149
|
+
"(required)": `(requis)`
|
150
|
+
};
|
122
151
|
|
123
152
|
|
124
153
|
var $6899669fa63c7816$exports = {};
|
125
|
-
$6899669fa63c7816$exports =
|
154
|
+
$6899669fa63c7816$exports = {
|
155
|
+
"(optional)": `(אופציונלי)`,
|
156
|
+
"(required)": `(נדרש)`
|
157
|
+
};
|
126
158
|
|
127
159
|
|
128
160
|
var $3597d722a30a8081$exports = {};
|
129
|
-
$3597d722a30a8081$exports =
|
161
|
+
$3597d722a30a8081$exports = {
|
162
|
+
"(optional)": `(opcionalno)`,
|
163
|
+
"(required)": `(obvezno)`
|
164
|
+
};
|
130
165
|
|
131
166
|
|
132
167
|
var $3ef905a2ce0921cb$exports = {};
|
133
|
-
$3ef905a2ce0921cb$exports =
|
168
|
+
$3ef905a2ce0921cb$exports = {
|
169
|
+
"(optional)": `(opcionális)`,
|
170
|
+
"(required)": `(kötelező)`
|
171
|
+
};
|
134
172
|
|
135
173
|
|
136
174
|
var $e59d2e4af9ff1c28$exports = {};
|
137
|
-
$e59d2e4af9ff1c28$exports =
|
175
|
+
$e59d2e4af9ff1c28$exports = {
|
176
|
+
"(optional)": `(facoltativo)`,
|
177
|
+
"(required)": `(obbligatorio)`
|
178
|
+
};
|
138
179
|
|
139
180
|
|
140
181
|
var $422a7013ab2cb36d$exports = {};
|
141
|
-
$422a7013ab2cb36d$exports =
|
182
|
+
$422a7013ab2cb36d$exports = {
|
183
|
+
"(optional)": `(オプション)`,
|
184
|
+
"(required)": `(必須)`
|
185
|
+
};
|
142
186
|
|
143
187
|
|
144
188
|
var $a58a7ab9570c5a18$exports = {};
|
145
|
-
$a58a7ab9570c5a18$exports =
|
189
|
+
$a58a7ab9570c5a18$exports = {
|
190
|
+
"(optional)": `(선택 사항)`,
|
191
|
+
"(required)": `(필수 사항)`
|
192
|
+
};
|
146
193
|
|
147
194
|
|
148
195
|
var $24e660c5a5be82af$exports = {};
|
149
|
-
$24e660c5a5be82af$exports =
|
196
|
+
$24e660c5a5be82af$exports = {
|
197
|
+
"(optional)": `(pasirenkama)`,
|
198
|
+
"(required)": `(privaloma)`
|
199
|
+
};
|
150
200
|
|
151
201
|
|
152
202
|
var $a222e05de6d8dce8$exports = {};
|
153
|
-
$a222e05de6d8dce8$exports =
|
203
|
+
$a222e05de6d8dce8$exports = {
|
204
|
+
"(optional)": `(neobligāti)`,
|
205
|
+
"(required)": `(obligāti)`
|
206
|
+
};
|
154
207
|
|
155
208
|
|
156
209
|
var $524caea23ab94ad7$exports = {};
|
157
|
-
$524caea23ab94ad7$exports =
|
210
|
+
$524caea23ab94ad7$exports = {
|
211
|
+
"(optional)": `(valgfritt)`,
|
212
|
+
"(required)": `(obligatorisk)`
|
213
|
+
};
|
158
214
|
|
159
215
|
|
160
216
|
var $572079ed86210ca9$exports = {};
|
161
|
-
$572079ed86210ca9$exports =
|
217
|
+
$572079ed86210ca9$exports = {
|
218
|
+
"(optional)": `(optioneel)`,
|
219
|
+
"(required)": `(vereist)`
|
220
|
+
};
|
162
221
|
|
163
222
|
|
164
223
|
var $6a0777ee77a74b18$exports = {};
|
165
|
-
$6a0777ee77a74b18$exports =
|
224
|
+
$6a0777ee77a74b18$exports = {
|
225
|
+
"(optional)": `(opcjonalne)`,
|
226
|
+
"(required)": `(wymagane)`
|
227
|
+
};
|
166
228
|
|
167
229
|
|
168
230
|
var $ea0401974d81b469$exports = {};
|
169
|
-
$ea0401974d81b469$exports =
|
231
|
+
$ea0401974d81b469$exports = {
|
232
|
+
"(optional)": `(opcional)`,
|
233
|
+
"(required)": `(obrigatório)`
|
234
|
+
};
|
170
235
|
|
171
236
|
|
172
237
|
var $701d0854e4f18979$exports = {};
|
173
|
-
$701d0854e4f18979$exports =
|
238
|
+
$701d0854e4f18979$exports = {
|
239
|
+
"(optional)": `(opcional)`,
|
240
|
+
"(required)": `(obrigatório)`
|
241
|
+
};
|
174
242
|
|
175
243
|
|
176
244
|
var $dd9fccd10d0a4be3$exports = {};
|
177
|
-
$dd9fccd10d0a4be3$exports =
|
245
|
+
$dd9fccd10d0a4be3$exports = {
|
246
|
+
"(optional)": `(opţional)`,
|
247
|
+
"(required)": `(obligatoriu)`
|
248
|
+
};
|
178
249
|
|
179
250
|
|
180
251
|
var $3cd1eab3b0ecc980$exports = {};
|
181
|
-
$3cd1eab3b0ecc980$exports =
|
252
|
+
$3cd1eab3b0ecc980$exports = {
|
253
|
+
"(optional)": `(дополнительно)`,
|
254
|
+
"(required)": `(обязательно)`
|
255
|
+
};
|
182
256
|
|
183
257
|
|
184
258
|
var $d109f3d68ba24ffc$exports = {};
|
185
|
-
$d109f3d68ba24ffc$exports =
|
259
|
+
$d109f3d68ba24ffc$exports = {
|
260
|
+
"(optional)": `(nepovinné)`,
|
261
|
+
"(required)": `(povinné)`
|
262
|
+
};
|
186
263
|
|
187
264
|
|
188
265
|
var $6382c2117e9fd1b6$exports = {};
|
189
|
-
$6382c2117e9fd1b6$exports =
|
266
|
+
$6382c2117e9fd1b6$exports = {
|
267
|
+
"(optional)": `(opcijsko)`,
|
268
|
+
"(required)": `(obvezno)`
|
269
|
+
};
|
190
270
|
|
191
271
|
|
192
272
|
var $ba796dd79114e2d4$exports = {};
|
193
|
-
$ba796dd79114e2d4$exports =
|
273
|
+
$ba796dd79114e2d4$exports = {
|
274
|
+
"(optional)": `(opciono)`,
|
275
|
+
"(required)": `(obavezno)`
|
276
|
+
};
|
194
277
|
|
195
278
|
|
196
279
|
var $916521e9800ac46c$exports = {};
|
197
|
-
$916521e9800ac46c$exports =
|
280
|
+
$916521e9800ac46c$exports = {
|
281
|
+
"(optional)": `(valfritt)`,
|
282
|
+
"(required)": `(krävs)`
|
283
|
+
};
|
198
284
|
|
199
285
|
|
200
286
|
var $acd72b88f580fe64$exports = {};
|
201
|
-
$acd72b88f580fe64$exports =
|
287
|
+
$acd72b88f580fe64$exports = {
|
288
|
+
"(optional)": `(isteğe bağlı)`,
|
289
|
+
"(required)": `(gerekli)`
|
290
|
+
};
|
202
291
|
|
203
292
|
|
204
293
|
var $bd065904f1420f31$exports = {};
|
205
|
-
$bd065904f1420f31$exports =
|
294
|
+
$bd065904f1420f31$exports = {
|
295
|
+
"(optional)": `(необов’язково)`,
|
296
|
+
"(required)": `(обов’язково)`
|
297
|
+
};
|
206
298
|
|
207
299
|
|
208
300
|
var $0128cc194bc107bb$exports = {};
|
209
|
-
$0128cc194bc107bb$exports =
|
301
|
+
$0128cc194bc107bb$exports = {
|
302
|
+
"(optional)": `(可选)`,
|
303
|
+
"(required)": `(必填)`
|
304
|
+
};
|
210
305
|
|
211
306
|
|
212
307
|
var $c57738f6094a3d25$exports = {};
|
213
|
-
$c57738f6094a3d25$exports =
|
308
|
+
$c57738f6094a3d25$exports = {
|
309
|
+
"(optional)": `(選填)`,
|
310
|
+
"(required)": `(必填)`
|
311
|
+
};
|
214
312
|
|
215
313
|
|
216
314
|
$79b4ff1b6ea94ffc$exports = {
|
@@ -251,9 +349,6 @@ $79b4ff1b6ea94ffc$exports = {
|
|
251
349
|
};
|
252
350
|
|
253
351
|
|
254
|
-
var $00af9ba397a66f43$exports = {};
|
255
|
-
|
256
|
-
$parcel$export($00af9ba397a66f43$exports, "Label", () => $00af9ba397a66f43$export$b04be29aa201d4f5);
|
257
352
|
|
258
353
|
|
259
354
|
|
@@ -315,11 +410,11 @@ function $00af9ba397a66f43$var$Label(props, ref) {
|
|
315
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;
|
316
411
|
let domRef = $6WzO6$useDOMRef(ref);
|
317
412
|
let { styleProps: styleProps } = $6WzO6$useStyleProps(otherProps);
|
318
|
-
let
|
319
|
-
let necessityLabel = isRequired ?
|
413
|
+
let stringFormatter = $6WzO6$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($79b4ff1b6ea94ffc$exports)));
|
414
|
+
let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');
|
320
415
|
let icon = /*#__PURE__*/ $6WzO6$react.createElement($6WzO6$spectrumiconsuiAsterisk, {
|
321
416
|
UNSAFE_className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-FieldLabel-requiredIcon'),
|
322
|
-
"aria-label": includeNecessityIndicatorInAccessibilityName ?
|
417
|
+
"aria-label": includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined
|
323
418
|
});
|
324
419
|
let labelClassNames = $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-FieldLabel', {
|
325
420
|
'spectrum-FieldLabel--positionSide': labelPosition === 'side',
|
@@ -460,7 +555,7 @@ function $b7ca5b4454a2009d$var$Field(props, ref) {
|
|
460
555
|
} , elementType: elementType , wrapperClassName: wrapperClassName , ...otherProps } = props;
|
461
556
|
let { styleProps: styleProps } = $6WzO6$useStyleProps(otherProps);
|
462
557
|
let hasHelpText = !!description || errorMessage && validationState === 'invalid';
|
463
|
-
let
|
558
|
+
let stringFormatter = $6WzO6$useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($79b4ff1b6ea94ffc$exports)));
|
464
559
|
let displayReadOnly = isReadOnly && (readOnlyText || readOnlyText === '');
|
465
560
|
if (label || hasHelpText) {
|
466
561
|
let labelWrapperClass = $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field', {
|
@@ -481,7 +576,7 @@ function $b7ca5b4454a2009d$var$Field(props, ref) {
|
|
481
576
|
})
|
482
577
|
;
|
483
578
|
if (displayReadOnly) {
|
484
|
-
if (readOnlyText === '') readOnlyText =
|
579
|
+
if (readOnlyText === '') readOnlyText = stringFormatter.format('(None)');
|
485
580
|
children = /*#__PURE__*/ $6WzO6$react.createElement($7eed1d699290e79c$export$18fbc9a75a2c46ae, {
|
486
581
|
...props,
|
487
582
|
readOnlyText: readOnlyText,
|
package/dist/module.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,gBAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,cAAc,GAAG,YAAY,IAAI,eAAe,KAAK,CAAS;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AAK,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 * from './Field';\nexport * from './Label';\nexport * 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,8B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D,QAAQ,4CACL,yCAAa;mBACR,KAAK;gBACT,YAAY,EAAE,YAAY;gBAC1B,UAAU,EAAE,UAAU;gBACtB,GAAG,EAAE,QAAQ;;QAEnB,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 {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/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;AAkBA,uBAAwB,SAAQ,qBAAqB,EAAE,UAAU;IAC/D,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAC;IAC/C,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAA;CAChD;AA2CD;;GAEG;AACH,OAAA,MAAM,yIAAsC,CAAC;ACW7C,OAAA,IAAI,6IAAgC,CAAC;AE2DrC,OAAA,IAAI,6FAAgC,CAAC","sources":["packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/HelpText.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/ReadOnlyField.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/index.ts"],"sourcesContent":[null,null,null,null,null,"/*\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
|
1
|
+
{"mappings":";;;AAkBA,uBAAwB,SAAQ,qBAAqB,EAAE,UAAU;IAC/D,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAC;IAC/C,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAA;CAChD;AA2CD;;GAEG;AACH,OAAA,MAAM,yIAAsC,CAAC;ACW7C,OAAA,IAAI,6IAAgC,CAAC;AE2DrC,OAAA,IAAI,6FAAgC,CAAC","sources":["packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/HelpText.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/ReadOnlyField.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/index.ts"],"sourcesContent":[null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/label",
|
3
|
-
"version": "3.6.2-nightly.
|
3
|
+
"version": "3.6.2-nightly.3373+8defd74c9",
|
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.
|
36
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
37
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
38
|
-
"@react-aria/label": "3.0.0-nightly.
|
39
|
-
"@react-aria/utils": "3.0.0-nightly.
|
40
|
-
"@react-spectrum/form": "3.0.0-nightly.
|
41
|
-
"@react-spectrum/layout": "3.3.2-nightly.
|
42
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
43
|
-
"@react-types/label": "3.0.0-nightly.
|
44
|
-
"@react-types/shared": "3.0.0-nightly.
|
45
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
35
|
+
"@react-aria/focus": "3.0.0-nightly.1673+8defd74c9",
|
36
|
+
"@react-aria/i18n": "3.0.0-nightly.1673+8defd74c9",
|
37
|
+
"@react-aria/interactions": "3.0.0-nightly.1673+8defd74c9",
|
38
|
+
"@react-aria/label": "3.0.0-nightly.1673+8defd74c9",
|
39
|
+
"@react-aria/utils": "3.0.0-nightly.1673+8defd74c9",
|
40
|
+
"@react-spectrum/form": "3.0.0-nightly.1673+8defd74c9",
|
41
|
+
"@react-spectrum/layout": "3.3.2-nightly.3373+8defd74c9",
|
42
|
+
"@react-spectrum/utils": "3.0.0-nightly.1673+8defd74c9",
|
43
|
+
"@react-types/label": "3.0.0-nightly.1673+8defd74c9",
|
44
|
+
"@react-types/shared": "3.0.0-nightly.1673+8defd74c9",
|
45
|
+
"@spectrum-icons/ui": "3.0.0-nightly.1673+8defd74c9"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
48
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.1673+8defd74c9"
|
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": "
|
57
|
+
"gitHead": "8defd74c9698b4dda32fd20bcfc579b123cd98e7"
|
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 {
|
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
|
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 =
|
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 {
|
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
|
45
|
-
let necessityLabel = isRequired ?
|
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 ?
|
49
|
+
aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />
|
50
50
|
);
|
51
51
|
|
52
52
|
let labelClassNames = classNames(
|
package/src/index.ts
CHANGED