optimized-react-component-library-xyz123 0.1.22 → 0.1.23
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -336,7 +336,7 @@ var TextFieldStandard = ({
|
|
|
336
336
|
showPreview = false,
|
|
337
337
|
activatedLanguage
|
|
338
338
|
}) => {
|
|
339
|
-
var _a, _b, _c, _d, _e, _f;
|
|
339
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
340
340
|
const questionId = `question-${question.id}`;
|
|
341
341
|
const inputId = `textField-${question.id}`;
|
|
342
342
|
const aboutId = `about-${question.id}`;
|
|
@@ -368,14 +368,14 @@ var TextFieldStandard = ({
|
|
|
368
368
|
"input",
|
|
369
369
|
{
|
|
370
370
|
type: (_c = (_b = question.questionExtraAttribute) == null ? void 0 : _b.inputType) != null ? _c : "text",
|
|
371
|
-
autoComplete: ((_d = question.questionExtraAttribute) == null ? void 0 : _d.autoComplete) ?
|
|
371
|
+
autoComplete: (_e = (_d = question.questionExtraAttribute) == null ? void 0 : _d.autoComplete) != null ? _e : void 0,
|
|
372
372
|
name: `question-name-${question.id}`,
|
|
373
373
|
className: question.hasValidationError ? "pts-root-question-input-error-border" : void 0,
|
|
374
374
|
onChange: (e) => isTouched(e, question),
|
|
375
375
|
value: question.answer,
|
|
376
|
-
maxLength: ((
|
|
376
|
+
maxLength: ((_f = question.questionExtraAttribute) == null ? void 0 : _f.answerMaxLength) || defaultMaxLength,
|
|
377
377
|
id: inputId,
|
|
378
|
-
disabled: (
|
|
378
|
+
disabled: (_g = question.questionExtraAttribute) == null ? void 0 : _g.disabled,
|
|
379
379
|
required: question.isQuestionMandatory,
|
|
380
380
|
"aria-required": question.isQuestionMandatory,
|
|
381
381
|
"aria-describedby": `${question.aboutText ? aboutId : ""} ${question.hasValidationError ? errorId : ""}`.trim(),
|
package/dist/index.mjs
CHANGED
|
@@ -272,7 +272,7 @@ var TextFieldStandard = ({
|
|
|
272
272
|
showPreview = false,
|
|
273
273
|
activatedLanguage
|
|
274
274
|
}) => {
|
|
275
|
-
var _a, _b, _c, _d, _e, _f;
|
|
275
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
276
276
|
const questionId = `question-${question.id}`;
|
|
277
277
|
const inputId = `textField-${question.id}`;
|
|
278
278
|
const aboutId = `about-${question.id}`;
|
|
@@ -304,14 +304,14 @@ var TextFieldStandard = ({
|
|
|
304
304
|
"input",
|
|
305
305
|
{
|
|
306
306
|
type: (_c = (_b = question.questionExtraAttribute) == null ? void 0 : _b.inputType) != null ? _c : "text",
|
|
307
|
-
autoComplete: ((_d = question.questionExtraAttribute) == null ? void 0 : _d.autoComplete) ?
|
|
307
|
+
autoComplete: (_e = (_d = question.questionExtraAttribute) == null ? void 0 : _d.autoComplete) != null ? _e : void 0,
|
|
308
308
|
name: `question-name-${question.id}`,
|
|
309
309
|
className: question.hasValidationError ? "pts-root-question-input-error-border" : void 0,
|
|
310
310
|
onChange: (e) => isTouched(e, question),
|
|
311
311
|
value: question.answer,
|
|
312
|
-
maxLength: ((
|
|
312
|
+
maxLength: ((_f = question.questionExtraAttribute) == null ? void 0 : _f.answerMaxLength) || defaultMaxLength,
|
|
313
313
|
id: inputId,
|
|
314
|
-
disabled: (
|
|
314
|
+
disabled: (_g = question.questionExtraAttribute) == null ? void 0 : _g.disabled,
|
|
315
315
|
required: question.isQuestionMandatory,
|
|
316
316
|
"aria-required": question.isQuestionMandatory,
|
|
317
317
|
"aria-describedby": `${question.aboutText ? aboutId : ""} ${question.hasValidationError ? errorId : ""}`.trim(),
|
package/package.json
CHANGED