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 CHANGED
@@ -83,7 +83,7 @@ interface IQuestion {
83
83
  interface IQuestionExtraAttribute {
84
84
  answerMaxLength?: number;
85
85
  disabled?: boolean;
86
- autoComplete?: boolean;
86
+ autoComplete?: string;
87
87
  inputType?: string;
88
88
  showTextAreaCounter?: boolean;
89
89
  hideValidationMessage?: boolean;
package/dist/index.d.ts CHANGED
@@ -83,7 +83,7 @@ interface IQuestion {
83
83
  interface IQuestionExtraAttribute {
84
84
  answerMaxLength?: number;
85
85
  disabled?: boolean;
86
- autoComplete?: boolean;
86
+ autoComplete?: string;
87
87
  inputType?: string;
88
88
  showTextAreaCounter?: boolean;
89
89
  hideValidationMessage?: boolean;
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) ? "on" : "off",
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: ((_e = question.questionExtraAttribute) == null ? void 0 : _e.answerMaxLength) || defaultMaxLength,
376
+ maxLength: ((_f = question.questionExtraAttribute) == null ? void 0 : _f.answerMaxLength) || defaultMaxLength,
377
377
  id: inputId,
378
- disabled: (_f = question.questionExtraAttribute) == null ? void 0 : _f.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) ? "on" : "off",
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: ((_e = question.questionExtraAttribute) == null ? void 0 : _e.answerMaxLength) || defaultMaxLength,
312
+ maxLength: ((_f = question.questionExtraAttribute) == null ? void 0 : _f.answerMaxLength) || defaultMaxLength,
313
313
  id: inputId,
314
- disabled: (_f = question.questionExtraAttribute) == null ? void 0 : _f.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "A modern React component library using TypeScript with React 19 support.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",