optimized-react-component-library-xyz123 0.1.40 → 0.1.41

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
@@ -209,7 +209,7 @@ declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPre
209
209
  declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
210
210
 
211
211
  interface EditPreviewLinkProps {
212
- step: number;
212
+ step: IStepObject;
213
213
  changeStepHandler: any;
214
214
  activatedLanguage?: string;
215
215
  }
package/dist/index.d.ts CHANGED
@@ -209,7 +209,7 @@ declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPre
209
209
  declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
210
210
 
211
211
  interface EditPreviewLinkProps {
212
- step: number;
212
+ step: IStepObject;
213
213
  changeStepHandler: any;
214
214
  activatedLanguage?: string;
215
215
  }
package/dist/index.js CHANGED
@@ -1180,30 +1180,39 @@ var EditPreviewLink = ({
1180
1180
  changeStepHandler,
1181
1181
  activatedLanguage = "sv"
1182
1182
  }) => {
1183
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("button", { type: "button", onClick: () => changeStepHandler(step), role: "link", children: [
1184
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1185
- "svg",
1186
- {
1187
- "aria-hidden": "true",
1188
- focusable: "false",
1189
- xmlns: "http://www.w3.org/2000/svg",
1190
- width: "16",
1191
- height: "16",
1192
- viewBox: "0 0 16 16",
1193
- fill: "none",
1194
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1195
- "path",
1183
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1184
+ "button",
1185
+ {
1186
+ type: "button",
1187
+ onClick: () => changeStepHandler(step),
1188
+ role: "link",
1189
+ "aria-label": `G\xE5 tillbaka till steg ${step.step} och redigera ${step.stepHeadline} `,
1190
+ children: [
1191
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1192
+ "svg",
1196
1193
  {
1197
- d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1198
- stroke: "#6E3282",
1199
- strokeLinecap: "round",
1200
- strokeLinejoin: "round"
1194
+ "aria-hidden": "true",
1195
+ focusable: "false",
1196
+ xmlns: "http://www.w3.org/2000/svg",
1197
+ width: "16",
1198
+ height: "16",
1199
+ viewBox: "0 0 16 16",
1200
+ fill: "none",
1201
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1202
+ "path",
1203
+ {
1204
+ d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1205
+ stroke: "#6E3282",
1206
+ strokeLinecap: "round",
1207
+ strokeLinejoin: "round"
1208
+ }
1209
+ )
1201
1210
  }
1202
- )
1203
- }
1204
- ),
1205
- activatedLanguage === "en" ? `Edit step ${step}` : `Redigera steg ${step}`
1206
- ] }) });
1211
+ ),
1212
+ activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
1213
+ ]
1214
+ }
1215
+ ) });
1207
1216
  };
1208
1217
  var EditPreviewLinkStandard_default = EditPreviewLink;
1209
1218
 
package/dist/index.mjs CHANGED
@@ -1116,30 +1116,39 @@ var EditPreviewLink = ({
1116
1116
  changeStepHandler,
1117
1117
  activatedLanguage = "sv"
1118
1118
  }) => {
1119
- return /* @__PURE__ */ jsx8("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs8("button", { type: "button", onClick: () => changeStepHandler(step), role: "link", children: [
1120
- /* @__PURE__ */ jsx8(
1121
- "svg",
1122
- {
1123
- "aria-hidden": "true",
1124
- focusable: "false",
1125
- xmlns: "http://www.w3.org/2000/svg",
1126
- width: "16",
1127
- height: "16",
1128
- viewBox: "0 0 16 16",
1129
- fill: "none",
1130
- children: /* @__PURE__ */ jsx8(
1131
- "path",
1119
+ return /* @__PURE__ */ jsx8("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs8(
1120
+ "button",
1121
+ {
1122
+ type: "button",
1123
+ onClick: () => changeStepHandler(step),
1124
+ role: "link",
1125
+ "aria-label": `G\xE5 tillbaka till steg ${step.step} och redigera ${step.stepHeadline} `,
1126
+ children: [
1127
+ /* @__PURE__ */ jsx8(
1128
+ "svg",
1132
1129
  {
1133
- d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1134
- stroke: "#6E3282",
1135
- strokeLinecap: "round",
1136
- strokeLinejoin: "round"
1130
+ "aria-hidden": "true",
1131
+ focusable: "false",
1132
+ xmlns: "http://www.w3.org/2000/svg",
1133
+ width: "16",
1134
+ height: "16",
1135
+ viewBox: "0 0 16 16",
1136
+ fill: "none",
1137
+ children: /* @__PURE__ */ jsx8(
1138
+ "path",
1139
+ {
1140
+ d: "M10.0001 3.99996L12.0001 5.99996M8.66675 13.3333H14.0001M3.33341 10.6666L2.66675 13.3333L5.33341 12.6666L13.0574 4.94263C13.3074 4.69259 13.4478 4.35351 13.4478 3.99996C13.4478 3.64641 13.3074 3.30733 13.0574 3.05729L12.9427 2.94263C12.6927 2.69267 12.3536 2.55225 12.0001 2.55225C11.6465 2.55225 11.3075 2.69267 11.0574 2.94263L3.33341 10.6666Z",
1141
+ stroke: "#6E3282",
1142
+ strokeLinecap: "round",
1143
+ strokeLinejoin: "round"
1144
+ }
1145
+ )
1137
1146
  }
1138
- )
1139
- }
1140
- ),
1141
- activatedLanguage === "en" ? `Edit step ${step}` : `Redigera steg ${step}`
1142
- ] }) });
1147
+ ),
1148
+ activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
1149
+ ]
1150
+ }
1151
+ ) });
1143
1152
  };
1144
1153
  var EditPreviewLinkStandard_default = EditPreviewLink;
1145
1154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optimized-react-component-library-xyz123",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
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",