optimized-react-component-library-xyz123 0.39.2 → 0.40.1
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/styles.css +4 -1
package/dist/index.d.mts
CHANGED
|
@@ -99,7 +99,6 @@ interface IQuestionExtraAttribute {
|
|
|
99
99
|
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
100
100
|
spellCheck?: boolean;
|
|
101
101
|
autoCapitalize?: string;
|
|
102
|
-
inputName?: string;
|
|
103
102
|
}
|
|
104
103
|
interface IStepQuestionData {
|
|
105
104
|
step: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,6 @@ interface IQuestionExtraAttribute {
|
|
|
99
99
|
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
100
100
|
spellCheck?: boolean;
|
|
101
101
|
autoCapitalize?: string;
|
|
102
|
-
inputName?: string;
|
|
103
102
|
}
|
|
104
103
|
interface IStepQuestionData {
|
|
105
104
|
step: number;
|
package/dist/index.js
CHANGED
|
@@ -458,7 +458,7 @@ var TextFieldStandard = ({
|
|
|
458
458
|
showPreview = false,
|
|
459
459
|
activatedLanguage
|
|
460
460
|
}) => {
|
|
461
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o
|
|
461
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
462
462
|
const questionId = `question-${question.id}`;
|
|
463
463
|
const inputId = `textField-${question.id}`;
|
|
464
464
|
const aboutId = `about-${question.id}`;
|
|
@@ -495,18 +495,18 @@ var TextFieldStandard = ({
|
|
|
495
495
|
type: (_e = (_d = question.questionExtraAttribute) == null ? void 0 : _d.inputType) != null ? _e : "text",
|
|
496
496
|
autoComplete: (_g = (_f = question.questionExtraAttribute) == null ? void 0 : _f.autoComplete) != null ? _g : void 0,
|
|
497
497
|
inputMode: (_i = (_h = question.questionExtraAttribute) == null ? void 0 : _h.inputMode) != null ? _i : void 0,
|
|
498
|
-
name:
|
|
498
|
+
name: `question-name-${question.id}`,
|
|
499
499
|
className: question.hasValidationError ? "pts-root-question-input-error-border" : void 0,
|
|
500
500
|
onChange: (e) => handleQuestionInputChange(e, question),
|
|
501
501
|
value: question.answer,
|
|
502
502
|
id: inputId,
|
|
503
|
-
disabled: (
|
|
503
|
+
disabled: (_j = question.questionExtraAttribute) == null ? void 0 : _j.disabled,
|
|
504
504
|
required: question.isQuestionMandatory,
|
|
505
505
|
"aria-required": question.isQuestionMandatory,
|
|
506
506
|
"aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
|
|
507
507
|
"aria-invalid": question.hasValidationError,
|
|
508
|
-
spellCheck: (
|
|
509
|
-
autoCapitalize: (
|
|
508
|
+
spellCheck: (_l = (_k = question.questionExtraAttribute) == null ? void 0 : _k.spellCheck) != null ? _l : void 0,
|
|
509
|
+
autoCapitalize: (_n = (_m = question.questionExtraAttribute) == null ? void 0 : _m.autoCapitalize) != null ? _n : void 0
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
512
|
!isTooLong && question.hasValidationError && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -514,7 +514,7 @@ var TextFieldStandard = ({
|
|
|
514
514
|
{
|
|
515
515
|
showValidationMessage: true,
|
|
516
516
|
validationId: errorId,
|
|
517
|
-
validationMessesege: (
|
|
517
|
+
validationMessesege: (_o = question.validationDefaultMessesege) != null ? _o : "",
|
|
518
518
|
activatedLanguage: activatedLanguage != null ? activatedLanguage : "sv"
|
|
519
519
|
}
|
|
520
520
|
),
|