optimized-react-component-library-xyz123 0.3.2 → 0.4.3
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -2
- package/src/css/darkMode.css +52 -69
package/dist/index.d.mts
CHANGED
|
@@ -58,6 +58,7 @@ interface IQuestion {
|
|
|
58
58
|
step?: number;
|
|
59
59
|
categoryLabel?: string;
|
|
60
60
|
categoryDescription?: string;
|
|
61
|
+
legend?: string;
|
|
61
62
|
hideCategory?: boolean;
|
|
62
63
|
questionLabel?: string;
|
|
63
64
|
previewLabel?: string;
|
|
@@ -104,6 +105,7 @@ interface IStepQuestionData {
|
|
|
104
105
|
visible?: boolean;
|
|
105
106
|
isDisplayed?: boolean;
|
|
106
107
|
category: string;
|
|
108
|
+
categoryDescription: string;
|
|
107
109
|
questionGroups: {
|
|
108
110
|
questionGroupId: string;
|
|
109
111
|
questionGroupType: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ interface IQuestion {
|
|
|
58
58
|
step?: number;
|
|
59
59
|
categoryLabel?: string;
|
|
60
60
|
categoryDescription?: string;
|
|
61
|
+
legend?: string;
|
|
61
62
|
hideCategory?: boolean;
|
|
62
63
|
questionLabel?: string;
|
|
63
64
|
previewLabel?: string;
|
|
@@ -104,6 +105,7 @@ interface IStepQuestionData {
|
|
|
104
105
|
visible?: boolean;
|
|
105
106
|
isDisplayed?: boolean;
|
|
106
107
|
category: string;
|
|
108
|
+
categoryDescription: string;
|
|
107
109
|
questionGroups: {
|
|
108
110
|
questionGroupId: string;
|
|
109
111
|
questionGroupType: string;
|
package/dist/index.js
CHANGED
|
@@ -1371,7 +1371,7 @@ function buildStepCategoryGroupQuestionStructure(questions, steps, validationErr
|
|
|
1371
1371
|
questionGroupId: groupId,
|
|
1372
1372
|
questionGroupType: questions2[0].questionGroupType,
|
|
1373
1373
|
questions: questions2,
|
|
1374
|
-
legend: questions2[0].
|
|
1374
|
+
legend: questions2[0].legend
|
|
1375
1375
|
});
|
|
1376
1376
|
}
|
|
1377
1377
|
const isVisible = questionGroups.some(
|
|
@@ -1379,6 +1379,7 @@ function buildStepCategoryGroupQuestionStructure(questions, steps, validationErr
|
|
|
1379
1379
|
);
|
|
1380
1380
|
categories.push({
|
|
1381
1381
|
category,
|
|
1382
|
+
categoryDescription: questionGroups[0].questions[0].categoryDescription || "",
|
|
1382
1383
|
visible: isVisible,
|
|
1383
1384
|
isDisplayed: isVisible,
|
|
1384
1385
|
questionGroups
|
|
@@ -1655,6 +1656,7 @@ var makeFormSelectors = (selectSlice) => {
|
|
|
1655
1656
|
categoryLabel: languageSupport.categoryLabel,
|
|
1656
1657
|
categoryDescription: languageSupport.categoryDescription,
|
|
1657
1658
|
questionLabel: languageSupport.questionLabel,
|
|
1659
|
+
legend: languageSupport.legend,
|
|
1658
1660
|
previewLabel: languageSupport.previewLabel,
|
|
1659
1661
|
aboutText: languageSupport.aboutText,
|
|
1660
1662
|
options: languageSupport.options,
|
|
@@ -2093,7 +2095,15 @@ var CookieBanner = ({
|
|
|
2093
2095
|
]
|
|
2094
2096
|
}
|
|
2095
2097
|
),
|
|
2096
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2098
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2099
|
+
"a",
|
|
2100
|
+
{
|
|
2101
|
+
href: "https://pts.se/om-oss/om-pts.se/kakor-pa-webbplatsen/kakor-pa-pts-e-tjanster/",
|
|
2102
|
+
target: "_blank",
|
|
2103
|
+
rel: "noopener noreferrer",
|
|
2104
|
+
children: "Kakor (cookies) p\xE5 pts.se (\xF6ppnas i nytt f\xF6nster)"
|
|
2105
|
+
}
|
|
2106
|
+
)
|
|
2097
2107
|
] }),
|
|
2098
2108
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "pts-cookieBanner-Buttons", children: [
|
|
2099
2109
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { onClick: () => handleCookieChoice(true), children: "Ja, jag samtycker" }),
|
|
@@ -2344,7 +2354,7 @@ var Logo_sv = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { widt
|
|
|
2344
2354
|
fill: "#F0AA1E"
|
|
2345
2355
|
}
|
|
2346
2356
|
),
|
|
2347
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "
|
|
2357
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "black", strokeWidth: "0.8", strokeMiterlimit: "10" })
|
|
2348
2358
|
] });
|
|
2349
2359
|
var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { width: "189.0", height: "46.67", viewBox: "0 0 189 46.67", fill: "none", xmlns: "http://www.w3.org/2000/svg", role: "img", children: [
|
|
2350
2360
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -2361,7 +2371,7 @@ var Logo_en = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("svg", { widt
|
|
|
2361
2371
|
fill: "#F0AA1E"
|
|
2362
2372
|
}
|
|
2363
2373
|
),
|
|
2364
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "
|
|
2374
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M82.2223 18.3335V37.2224", stroke: "#141414", strokeWidth: "0.8", strokeMiterlimit: "10" }),
|
|
2365
2375
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2366
2376
|
"path",
|
|
2367
2377
|
{
|