optimized-react-component-library-xyz123 0.1.48 → 0.1.49
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 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2797,8 +2797,9 @@ var ValidationErrorSummaryList = ({
|
|
|
2797
2797
|
const count = filteredIds.length;
|
|
2798
2798
|
const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
|
|
2799
2799
|
function getQuestionLabelById(id) {
|
|
2800
|
+
var _a;
|
|
2800
2801
|
const found = formQuestions.find((item) => item.id === id);
|
|
2801
|
-
return found == null ? void 0 : found.questionLabel;
|
|
2802
|
+
return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
|
|
2802
2803
|
}
|
|
2803
2804
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2804
2805
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
package/dist/index.mjs
CHANGED
|
@@ -2732,8 +2732,9 @@ var ValidationErrorSummaryList = ({
|
|
|
2732
2732
|
const count = filteredIds.length;
|
|
2733
2733
|
const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
|
|
2734
2734
|
function getQuestionLabelById(id) {
|
|
2735
|
+
var _a;
|
|
2735
2736
|
const found = formQuestions.find((item) => item.id === id);
|
|
2736
|
-
return found == null ? void 0 : found.questionLabel;
|
|
2737
|
+
return (_a = found == null ? void 0 : found.validationSummaryLabel) != null ? _a : found == null ? void 0 : found.questionLabel;
|
|
2737
2738
|
}
|
|
2738
2739
|
return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2739
2740
|
/* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
package/package.json
CHANGED