optimized-react-component-library-xyz123 0.1.92 → 0.1.93
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 +89 -1
- package/dist/index.d.ts +89 -1
- package/dist/index.js +166 -76
- package/dist/index.mjs +163 -75
- package/package.json +2 -1
- package/src/css/styles.css +21 -69
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import * as reselect from 'reselect';
|
|
3
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
5
|
+
import * as immer from 'immer';
|
|
2
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
7
|
|
|
4
8
|
interface IApplicationContent {
|
|
@@ -221,6 +225,90 @@ declare function validationCheckAllVisibleQuestions(data: any, formQuestion: any
|
|
|
221
225
|
|
|
222
226
|
declare function groupQuestionsByStepCategoryGroup(questions: IQuestion[], steps: IStepObject[], validationErrorsList: number[]): any[];
|
|
223
227
|
|
|
228
|
+
/** ----- Typer ----- */
|
|
229
|
+
interface LanguageEntry {
|
|
230
|
+
language: string;
|
|
231
|
+
backButton: string;
|
|
232
|
+
forwardButton: string;
|
|
233
|
+
sendButton: string;
|
|
234
|
+
}
|
|
235
|
+
interface LanguageSupportConfig {
|
|
236
|
+
activatedLanguage: string;
|
|
237
|
+
languageSupport: LanguageEntry[];
|
|
238
|
+
}
|
|
239
|
+
interface LanguageState {
|
|
240
|
+
activatedLanguage: string;
|
|
241
|
+
languageSupport: LanguageEntry[];
|
|
242
|
+
languageSupportLoaded: boolean;
|
|
243
|
+
backButton: string;
|
|
244
|
+
forwardButton: string;
|
|
245
|
+
sendButton: string;
|
|
246
|
+
}
|
|
247
|
+
/** ----- Slice-fabrik (ingen app-specifik state/RootState här) ----- */
|
|
248
|
+
declare const createLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
|
|
249
|
+
name?: string;
|
|
250
|
+
}) => _reduxjs_toolkit.Slice<LanguageState, {
|
|
251
|
+
setActivatedLanguage: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<string>) => void;
|
|
252
|
+
setLabelsFromLanguageEntry: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<Pick<LanguageEntry, "backButton" | "forwardButton" | "sendButton">>) => void;
|
|
253
|
+
replaceLanguageSupport: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<LanguageSupportConfig>) => void;
|
|
254
|
+
}, string, string, _reduxjs_toolkit.SliceSelectors<LanguageState>>;
|
|
255
|
+
/** ----- Selector-fabrik (helt generisk, ingen RootState) ----- */
|
|
256
|
+
declare const makeLanguageSelectors: <TState>(selectSlice: (state: TState) => LanguageState) => {
|
|
257
|
+
selectActivatedLanguage: (state: TState) => string;
|
|
258
|
+
selectLanguageSupportLoaded: (state: TState) => boolean;
|
|
259
|
+
selectLanguageSupport: (state: TState) => LanguageEntry[];
|
|
260
|
+
selectOverallContentState: (state: TState) => LanguageState;
|
|
261
|
+
selectOverallContentFromLanguageSupport: ((state: TState, activatedLanguage: string) => {
|
|
262
|
+
activatedLanguage: string;
|
|
263
|
+
languageSupport: LanguageEntry[];
|
|
264
|
+
languageSupportLoaded: boolean;
|
|
265
|
+
backButton: string;
|
|
266
|
+
forwardButton: string;
|
|
267
|
+
sendButton: string;
|
|
268
|
+
}) & {
|
|
269
|
+
clearCache: () => void;
|
|
270
|
+
resultsCount: () => number;
|
|
271
|
+
resetResultsCount: () => void;
|
|
272
|
+
} & {
|
|
273
|
+
resultFunc: (resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
274
|
+
activatedLanguage: string;
|
|
275
|
+
languageSupport: LanguageEntry[];
|
|
276
|
+
languageSupportLoaded: boolean;
|
|
277
|
+
backButton: string;
|
|
278
|
+
forwardButton: string;
|
|
279
|
+
sendButton: string;
|
|
280
|
+
};
|
|
281
|
+
memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
282
|
+
activatedLanguage: string;
|
|
283
|
+
languageSupport: LanguageEntry[];
|
|
284
|
+
languageSupportLoaded: boolean;
|
|
285
|
+
backButton: string;
|
|
286
|
+
forwardButton: string;
|
|
287
|
+
sendButton: string;
|
|
288
|
+
}) & {
|
|
289
|
+
clearCache: () => void;
|
|
290
|
+
resultsCount: () => number;
|
|
291
|
+
resetResultsCount: () => void;
|
|
292
|
+
};
|
|
293
|
+
lastResult: () => {
|
|
294
|
+
activatedLanguage: string;
|
|
295
|
+
languageSupport: LanguageEntry[];
|
|
296
|
+
languageSupportLoaded: boolean;
|
|
297
|
+
backButton: string;
|
|
298
|
+
forwardButton: string;
|
|
299
|
+
sendButton: string;
|
|
300
|
+
};
|
|
301
|
+
dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
|
|
302
|
+
recomputations: () => number;
|
|
303
|
+
resetRecomputations: () => void;
|
|
304
|
+
dependencyRecomputations: () => number;
|
|
305
|
+
resetDependencyRecomputations: () => void;
|
|
306
|
+
} & {
|
|
307
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
308
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
224
312
|
declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPreview, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
225
313
|
|
|
226
314
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -327,4 +415,4 @@ interface CookieBannerProps {
|
|
|
327
415
|
|
|
328
416
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
329
417
|
|
|
330
|
-
export { AddFiles as AddFilesStandard, CookieBanner, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList };
|
|
418
|
+
export { AddFiles as AddFilesStandard, CookieBanner, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createLanguageSlice, makeLanguageSelectors };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import * as reselect from 'reselect';
|
|
3
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
5
|
+
import * as immer from 'immer';
|
|
2
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
7
|
|
|
4
8
|
interface IApplicationContent {
|
|
@@ -221,6 +225,90 @@ declare function validationCheckAllVisibleQuestions(data: any, formQuestion: any
|
|
|
221
225
|
|
|
222
226
|
declare function groupQuestionsByStepCategoryGroup(questions: IQuestion[], steps: IStepObject[], validationErrorsList: number[]): any[];
|
|
223
227
|
|
|
228
|
+
/** ----- Typer ----- */
|
|
229
|
+
interface LanguageEntry {
|
|
230
|
+
language: string;
|
|
231
|
+
backButton: string;
|
|
232
|
+
forwardButton: string;
|
|
233
|
+
sendButton: string;
|
|
234
|
+
}
|
|
235
|
+
interface LanguageSupportConfig {
|
|
236
|
+
activatedLanguage: string;
|
|
237
|
+
languageSupport: LanguageEntry[];
|
|
238
|
+
}
|
|
239
|
+
interface LanguageState {
|
|
240
|
+
activatedLanguage: string;
|
|
241
|
+
languageSupport: LanguageEntry[];
|
|
242
|
+
languageSupportLoaded: boolean;
|
|
243
|
+
backButton: string;
|
|
244
|
+
forwardButton: string;
|
|
245
|
+
sendButton: string;
|
|
246
|
+
}
|
|
247
|
+
/** ----- Slice-fabrik (ingen app-specifik state/RootState här) ----- */
|
|
248
|
+
declare const createLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
|
|
249
|
+
name?: string;
|
|
250
|
+
}) => _reduxjs_toolkit.Slice<LanguageState, {
|
|
251
|
+
setActivatedLanguage: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<string>) => void;
|
|
252
|
+
setLabelsFromLanguageEntry: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<Pick<LanguageEntry, "backButton" | "forwardButton" | "sendButton">>) => void;
|
|
253
|
+
replaceLanguageSupport: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<LanguageSupportConfig>) => void;
|
|
254
|
+
}, string, string, _reduxjs_toolkit.SliceSelectors<LanguageState>>;
|
|
255
|
+
/** ----- Selector-fabrik (helt generisk, ingen RootState) ----- */
|
|
256
|
+
declare const makeLanguageSelectors: <TState>(selectSlice: (state: TState) => LanguageState) => {
|
|
257
|
+
selectActivatedLanguage: (state: TState) => string;
|
|
258
|
+
selectLanguageSupportLoaded: (state: TState) => boolean;
|
|
259
|
+
selectLanguageSupport: (state: TState) => LanguageEntry[];
|
|
260
|
+
selectOverallContentState: (state: TState) => LanguageState;
|
|
261
|
+
selectOverallContentFromLanguageSupport: ((state: TState, activatedLanguage: string) => {
|
|
262
|
+
activatedLanguage: string;
|
|
263
|
+
languageSupport: LanguageEntry[];
|
|
264
|
+
languageSupportLoaded: boolean;
|
|
265
|
+
backButton: string;
|
|
266
|
+
forwardButton: string;
|
|
267
|
+
sendButton: string;
|
|
268
|
+
}) & {
|
|
269
|
+
clearCache: () => void;
|
|
270
|
+
resultsCount: () => number;
|
|
271
|
+
resetResultsCount: () => void;
|
|
272
|
+
} & {
|
|
273
|
+
resultFunc: (resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
274
|
+
activatedLanguage: string;
|
|
275
|
+
languageSupport: LanguageEntry[];
|
|
276
|
+
languageSupportLoaded: boolean;
|
|
277
|
+
backButton: string;
|
|
278
|
+
forwardButton: string;
|
|
279
|
+
sendButton: string;
|
|
280
|
+
};
|
|
281
|
+
memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
282
|
+
activatedLanguage: string;
|
|
283
|
+
languageSupport: LanguageEntry[];
|
|
284
|
+
languageSupportLoaded: boolean;
|
|
285
|
+
backButton: string;
|
|
286
|
+
forwardButton: string;
|
|
287
|
+
sendButton: string;
|
|
288
|
+
}) & {
|
|
289
|
+
clearCache: () => void;
|
|
290
|
+
resultsCount: () => number;
|
|
291
|
+
resetResultsCount: () => void;
|
|
292
|
+
};
|
|
293
|
+
lastResult: () => {
|
|
294
|
+
activatedLanguage: string;
|
|
295
|
+
languageSupport: LanguageEntry[];
|
|
296
|
+
languageSupportLoaded: boolean;
|
|
297
|
+
backButton: string;
|
|
298
|
+
forwardButton: string;
|
|
299
|
+
sendButton: string;
|
|
300
|
+
};
|
|
301
|
+
dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
|
|
302
|
+
recomputations: () => number;
|
|
303
|
+
resetRecomputations: () => void;
|
|
304
|
+
dependencyRecomputations: () => number;
|
|
305
|
+
resetDependencyRecomputations: () => void;
|
|
306
|
+
} & {
|
|
307
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
308
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
224
312
|
declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPreview, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
225
313
|
|
|
226
314
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -327,4 +415,4 @@ interface CookieBannerProps {
|
|
|
327
415
|
|
|
328
416
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
329
417
|
|
|
330
|
-
export { AddFiles as AddFilesStandard, CookieBanner, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList };
|
|
418
|
+
export { AddFiles as AddFilesStandard, CookieBanner, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createLanguageSlice, makeLanguageSelectors };
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,9 @@ __export(index_exports, {
|
|
|
59
59
|
TextFieldStandard: () => TextFieldStandard_default,
|
|
60
60
|
TextHeadlineAndBodyStandard: () => TextHeadlineAndBodyStandard_default,
|
|
61
61
|
ValidationCheckAllVisibleQuestion: () => ValidationCheckAllVisibleQuestion_default,
|
|
62
|
-
ValidationErrorSummaryList: () => ValidationErrorSummaryList_default
|
|
62
|
+
ValidationErrorSummaryList: () => ValidationErrorSummaryList_default,
|
|
63
|
+
createLanguageSlice: () => createLanguageSlice,
|
|
64
|
+
makeLanguageSelectors: () => makeLanguageSelectors
|
|
63
65
|
});
|
|
64
66
|
module.exports = __toCommonJS(index_exports);
|
|
65
67
|
|
|
@@ -758,12 +760,12 @@ var FilesUploadStandard_default = FilesUpload;
|
|
|
758
760
|
|
|
759
761
|
// src/NewInputComponentStandard/AddFilesStandard/AddFilesStandard.tsx
|
|
760
762
|
var import_react7 = require("react");
|
|
761
|
-
var
|
|
763
|
+
var import_clsx5 = __toESM(require("clsx"));
|
|
762
764
|
|
|
763
765
|
// src/NewInputComponentStandard/AddFilesStandard/DropFilesStandard.tsx
|
|
764
766
|
var import_react_dropzone = require("react-dropzone");
|
|
765
767
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
766
|
-
var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h\xE4r"
|
|
768
|
+
var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h\xE4r" }) => {
|
|
767
769
|
const onDrop = FilesSelected;
|
|
768
770
|
const { getRootProps, getInputProps, isDragActive } = (0, import_react_dropzone.useDropzone)({ onDrop, noKeyboard: true });
|
|
769
771
|
const handleFileExplorer = (event) => {
|
|
@@ -784,22 +786,34 @@ var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h
|
|
|
784
786
|
}
|
|
785
787
|
)
|
|
786
788
|
] }),
|
|
787
|
-
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("b", { className: "dropFilesNowText", children:
|
|
788
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.
|
|
789
|
+
isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("b", { className: "dropFilesNowText", children: "Sl\xE4pp filerna, nu ...!" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
790
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
789
791
|
"svg",
|
|
790
792
|
{
|
|
793
|
+
"aria-hidden": "true",
|
|
791
794
|
xmlns: "http://www.w3.org/2000/svg",
|
|
792
|
-
width: "
|
|
793
|
-
height: "
|
|
794
|
-
viewBox: "0 0
|
|
795
|
-
fill: "
|
|
796
|
-
children:
|
|
797
|
-
"
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
795
|
+
width: "72",
|
|
796
|
+
height: "48",
|
|
797
|
+
viewBox: "0 0 72 48",
|
|
798
|
+
fill: "none",
|
|
799
|
+
children: [
|
|
800
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("g", { clipPath: "url(#clip0_247_596)", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
801
|
+
"path",
|
|
802
|
+
{
|
|
803
|
+
d: "M66.6084 23.0844C64.6397 21.6247 62.2209 20.5531 59.6672 19.9752C59.2479 19.8808 58.8641 19.6692 58.5605 19.3649C58.257 19.0606 58.0463 18.6763 57.953 18.2567C56.8561 13.37 54.495 9.1794 51.0244 6.00409C46.9898 2.30706 41.6545 0.273621 36 0.273621C31.0289 0.273621 26.4375 1.83174 22.7292 4.78065C20.216 6.78238 18.193 9.33154 16.8145 12.2338C16.6651 12.5513 16.4434 12.8295 16.1672 13.0461C15.8911 13.2627 15.5681 13.4117 15.2241 13.4811C11.4623 14.2405 8.06625 15.8535 5.47312 18.1386C1.89281 21.3027 0 25.5088 0 30.3111C0 35.1655 2.03766 39.5924 5.73609 42.793C9.26859 45.8431 14.0245 47.5236 19.125 47.5236H33.75V25.956L28.5905 31.1155C28.3751 31.3309 28.1182 31.5003 27.8354 31.6134C27.5525 31.7266 27.2497 31.7811 26.9452 31.7738C26.6406 31.7664 26.3408 31.6973 26.0638 31.5706C25.7867 31.4439 25.5383 31.2623 25.3336 31.0367C24.518 30.141 24.5967 28.7446 25.4531 27.8881L34.4095 18.9331C34.8314 18.5115 35.4035 18.2747 36 18.2747C36.5965 18.2747 37.1686 18.5115 37.5905 18.9331L46.5469 27.8853C47.43 28.7699 47.4806 30.2197 46.6017 31.107C46.3932 31.3176 46.1451 31.485 45.8718 31.5994C45.5984 31.7139 45.3051 31.7732 45.0088 31.774C44.7124 31.7748 44.4188 31.717 44.1449 31.604C43.8709 31.491 43.622 31.325 43.4123 31.1155L38.25 25.956V47.5236H55.6875C60.0947 47.5236 64.1124 46.2861 67.0008 44.0403C70.2717 41.495 72 37.8528 72 33.5174C72 29.3071 70.1353 25.6972 66.6084 23.0844Z",
|
|
804
|
+
fill: "#6E3282"
|
|
805
|
+
}
|
|
806
|
+
) }),
|
|
807
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("clipPath", { id: "clip0_247_596", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
808
|
+
"rect",
|
|
809
|
+
{
|
|
810
|
+
width: "72",
|
|
811
|
+
height: "47.1064",
|
|
812
|
+
fill: "white",
|
|
813
|
+
transform: "translate(0 0.446777)"
|
|
814
|
+
}
|
|
815
|
+
) }) })
|
|
816
|
+
]
|
|
803
817
|
}
|
|
804
818
|
),
|
|
805
819
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "dropFilesText", children: DropFilesText })
|
|
@@ -935,6 +949,7 @@ var Indicator = (filename) => {
|
|
|
935
949
|
var IndicatorStandard_default = Indicator;
|
|
936
950
|
|
|
937
951
|
// src/NewInputComponentStandard/AddFilesStandard/SelectedFilesStandard.tsx
|
|
952
|
+
var import_clsx4 = __toESM(require("clsx"));
|
|
938
953
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
939
954
|
var SelectedFiles = ({
|
|
940
955
|
questionObject,
|
|
@@ -976,57 +991,53 @@ var SelectedFiles = ({
|
|
|
976
991
|
};
|
|
977
992
|
const windowWidth = useWindowWidth();
|
|
978
993
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
979
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.
|
|
980
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
"
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
children: activatedLanguage === "sv" ? "St\xE4ng" : "Close"
|
|
1027
|
-
}
|
|
1028
|
-
) })
|
|
1029
|
-
] }) }),
|
|
994
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
|
|
995
|
+
errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("ul", { "aria-hidden": true, className: "fileListUnorderedList", children: [
|
|
996
|
+
" ",
|
|
997
|
+
errorMessageAddingFile.map((errorObj, index) => {
|
|
998
|
+
const errorFileName = errorObj.FileName;
|
|
999
|
+
let mobileFirstFileName = errorObj.FileName.split(".").shift();
|
|
1000
|
+
mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
|
|
1001
|
+
const fileType = errorObj.FileName.split(".").pop();
|
|
1002
|
+
mobileFirstFileName = mobileFirstFileName + "." + fileType;
|
|
1003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react6.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "fileInListContainer", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fileInList", children: [
|
|
1004
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_bootstrap.Row, { children: [
|
|
1005
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1006
|
+
"span",
|
|
1007
|
+
{
|
|
1008
|
+
"aria-hidden": "true",
|
|
1009
|
+
className: (0, import_clsx4.default)("uploadedDot", "uploadFailed"),
|
|
1010
|
+
children: "!"
|
|
1011
|
+
}
|
|
1012
|
+
) }),
|
|
1013
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { children: windowWidth < 768 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "desktopFileName", children: errorObj.FileName }) }),
|
|
1014
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "lastCol" })
|
|
1015
|
+
] }),
|
|
1016
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1017
|
+
import_react_bootstrap.Col,
|
|
1018
|
+
{
|
|
1019
|
+
style: {
|
|
1020
|
+
width: "100%",
|
|
1021
|
+
color: "#8e0039"
|
|
1022
|
+
},
|
|
1023
|
+
className: "errorMessageAddingFile",
|
|
1024
|
+
...activatedLanguage === "sv" ? {
|
|
1025
|
+
"aria-label": `${errorFileName} ${errorObj.svMessage}`
|
|
1026
|
+
} : {
|
|
1027
|
+
"aria-label": `${errorFileName} ${errorObj.enMessage}`
|
|
1028
|
+
},
|
|
1029
|
+
children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
|
|
1030
|
+
}
|
|
1031
|
+
) }),
|
|
1032
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { className: "makeSpace" }) })
|
|
1033
|
+
] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
|
|
1034
|
+
})
|
|
1035
|
+
] }),
|
|
1036
|
+
errorMessageAddingFile.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("button", { onClick: removeUploadErrors, className: "errorMessageAddingFile", children: [
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": true, className: "errorDot", children: "X" }),
|
|
1038
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: "Ta bort felmeddelande f\xF6r uppladdning av filer" })
|
|
1039
|
+
] })
|
|
1040
|
+
] }),
|
|
1030
1041
|
questionObject.files.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.files.map((file, index) => {
|
|
1031
1042
|
const indicatorfileName = file.FileName;
|
|
1032
1043
|
let mobileFirstFileName = file.FileName.split(".").shift();
|
|
@@ -1034,7 +1045,7 @@ var SelectedFiles = ({
|
|
|
1034
1045
|
const fileType = file.FileName.split(".").pop();
|
|
1035
1046
|
mobileFirstFileName = mobileFirstFileName + "." + fileType;
|
|
1036
1047
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react6.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "fileInListContainer", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "fileInList", children: [
|
|
1037
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_bootstrap.Row, {
|
|
1048
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_bootstrap.Row, { children: [
|
|
1038
1049
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_bootstrap.Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": "true", className: "uploadedDot", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1039
1050
|
"svg",
|
|
1040
1051
|
{
|
|
@@ -1248,13 +1259,10 @@ var AddFiles = ({
|
|
|
1248
1259
|
const removeFileFromNumberOfFiles = (newCount) => {
|
|
1249
1260
|
setNumberOfFiles(newCount);
|
|
1250
1261
|
};
|
|
1251
|
-
const
|
|
1262
|
+
const removeError = (errorIndex) => {
|
|
1252
1263
|
let newErrors = errorMessageAddingFile.filter((e, index) => index !== errorIndex);
|
|
1253
1264
|
setErrorMessageAddingFile(newErrors);
|
|
1254
1265
|
};
|
|
1255
|
-
const removeError = () => {
|
|
1256
|
-
setErrorMessageAddingFile([]);
|
|
1257
|
-
};
|
|
1258
1266
|
const handleRemoveErrors = () => {
|
|
1259
1267
|
setErrorMessageAddingFile([]);
|
|
1260
1268
|
};
|
|
@@ -1264,7 +1272,7 @@ var AddFiles = ({
|
|
|
1264
1272
|
"p",
|
|
1265
1273
|
{
|
|
1266
1274
|
id: aboutId,
|
|
1267
|
-
className: (0,
|
|
1275
|
+
className: (0, import_clsx5.default)(
|
|
1268
1276
|
"addFilesMandatory",
|
|
1269
1277
|
questionObject.hasValidationError ? " error" : ""
|
|
1270
1278
|
),
|
|
@@ -1298,7 +1306,7 @@ var AddFiles = ({
|
|
|
1298
1306
|
removeUploadErrors: handleRemoveErrors
|
|
1299
1307
|
}
|
|
1300
1308
|
),
|
|
1301
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropFilesStandard_default, { FilesSelected: onDrop, DropFilesText: dropFilesText
|
|
1309
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropFilesStandard_default, { FilesSelected: onDrop, DropFilesText: dropFilesText }),
|
|
1302
1310
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1303
1311
|
SelectedFilesStandard_default,
|
|
1304
1312
|
{
|
|
@@ -1548,6 +1556,86 @@ function groupQuestionsByStepCategoryGroup(questions, steps, validationErrorsLis
|
|
|
1548
1556
|
}
|
|
1549
1557
|
var GroupQuestionsByStepCategoryGroup_default = groupQuestionsByStepCategoryGroup;
|
|
1550
1558
|
|
|
1559
|
+
// src/NewHelpMethodsStandard/ApplicationContentSlice/applicationContentSlice.ts
|
|
1560
|
+
var import_toolkit = require("@reduxjs/toolkit");
|
|
1561
|
+
var pickLang = (cfg, lang) => {
|
|
1562
|
+
var _a;
|
|
1563
|
+
return (_a = cfg.languageSupport.find((l) => l.language === lang)) != null ? _a : cfg.languageSupport[0];
|
|
1564
|
+
};
|
|
1565
|
+
var createLanguageSlice = (initialConfig, options) => {
|
|
1566
|
+
var _a;
|
|
1567
|
+
const name = (_a = options == null ? void 0 : options.name) != null ? _a : "applicationContent";
|
|
1568
|
+
const initialLang = pickLang(initialConfig, initialConfig.activatedLanguage);
|
|
1569
|
+
const initialState = {
|
|
1570
|
+
activatedLanguage: initialConfig.activatedLanguage,
|
|
1571
|
+
languageSupport: initialConfig.languageSupport,
|
|
1572
|
+
languageSupportLoaded: true,
|
|
1573
|
+
backButton: initialLang.backButton,
|
|
1574
|
+
forwardButton: initialLang.forwardButton,
|
|
1575
|
+
sendButton: initialLang.sendButton
|
|
1576
|
+
};
|
|
1577
|
+
const slice = (0, import_toolkit.createSlice)({
|
|
1578
|
+
name,
|
|
1579
|
+
initialState,
|
|
1580
|
+
reducers: {
|
|
1581
|
+
setActivatedLanguage: (state, action) => {
|
|
1582
|
+
state.activatedLanguage = action.payload;
|
|
1583
|
+
const lang = pickLang(
|
|
1584
|
+
{ activatedLanguage: state.activatedLanguage, languageSupport: state.languageSupport },
|
|
1585
|
+
action.payload
|
|
1586
|
+
);
|
|
1587
|
+
state.backButton = lang.backButton;
|
|
1588
|
+
state.forwardButton = lang.forwardButton;
|
|
1589
|
+
state.sendButton = lang.sendButton;
|
|
1590
|
+
},
|
|
1591
|
+
setLabelsFromLanguageEntry: (state, action) => {
|
|
1592
|
+
state.backButton = action.payload.backButton;
|
|
1593
|
+
state.forwardButton = action.payload.forwardButton;
|
|
1594
|
+
state.sendButton = action.payload.sendButton;
|
|
1595
|
+
},
|
|
1596
|
+
replaceLanguageSupport: (state, action) => {
|
|
1597
|
+
state.languageSupport = action.payload.languageSupport;
|
|
1598
|
+
state.activatedLanguage = action.payload.activatedLanguage;
|
|
1599
|
+
const lang = pickLang(action.payload, action.payload.activatedLanguage);
|
|
1600
|
+
state.backButton = lang.backButton;
|
|
1601
|
+
state.forwardButton = lang.forwardButton;
|
|
1602
|
+
state.sendButton = lang.sendButton;
|
|
1603
|
+
state.languageSupportLoaded = true;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
});
|
|
1607
|
+
return slice;
|
|
1608
|
+
};
|
|
1609
|
+
var makeLanguageSelectors = (selectSlice) => {
|
|
1610
|
+
const selectState = selectSlice;
|
|
1611
|
+
const selectActivatedLanguage = (state) => selectState(state).activatedLanguage;
|
|
1612
|
+
const selectLanguageSupportLoaded = (state) => selectState(state).languageSupportLoaded;
|
|
1613
|
+
const selectLanguageSupport = (state) => selectState(state).languageSupport;
|
|
1614
|
+
const selectOverallContentState = (state) => selectState(state);
|
|
1615
|
+
const selectOverallContentFromLanguageSupport = (0, import_toolkit.createSelector)(
|
|
1616
|
+
[selectState, (_, activatedLanguage) => activatedLanguage],
|
|
1617
|
+
(applicationContent, activatedLanguage) => {
|
|
1618
|
+
const match = applicationContent.languageSupport.find(
|
|
1619
|
+
(l) => l.language === activatedLanguage
|
|
1620
|
+
);
|
|
1621
|
+
if (!match) return { ...applicationContent };
|
|
1622
|
+
return {
|
|
1623
|
+
...applicationContent,
|
|
1624
|
+
backButton: match.backButton,
|
|
1625
|
+
forwardButton: match.forwardButton,
|
|
1626
|
+
sendButton: match.sendButton
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
);
|
|
1630
|
+
return {
|
|
1631
|
+
selectActivatedLanguage,
|
|
1632
|
+
selectLanguageSupportLoaded,
|
|
1633
|
+
selectLanguageSupport,
|
|
1634
|
+
selectOverallContentState,
|
|
1635
|
+
selectOverallContentFromLanguageSupport
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1551
1639
|
// src/NewRenderFormComponentStandard/RenderQuestion/RenderQuestion.tsx
|
|
1552
1640
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1553
1641
|
var RenderQuestion = ({
|
|
@@ -1643,7 +1731,7 @@ var RenderQuestionGroup = ({
|
|
|
1643
1731
|
"aria-describedby": questionArray[0].hasValidationError ? `${questionArray[0].id}-error` : void 0,
|
|
1644
1732
|
children: [
|
|
1645
1733
|
legend && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("legend", { children: [
|
|
1646
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", {
|
|
1734
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: legend }),
|
|
1647
1735
|
questionArray[0].hasValidationError && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "sr-only", children: [
|
|
1648
1736
|
"Valideringsfel. ",
|
|
1649
1737
|
questionArray[0].validationDefaultMessesege
|
|
@@ -2837,5 +2925,7 @@ var CookieBanner_default = CookieBanner;
|
|
|
2837
2925
|
TextFieldStandard,
|
|
2838
2926
|
TextHeadlineAndBodyStandard,
|
|
2839
2927
|
ValidationCheckAllVisibleQuestion,
|
|
2840
|
-
ValidationErrorSummaryList
|
|
2928
|
+
ValidationErrorSummaryList,
|
|
2929
|
+
createLanguageSlice,
|
|
2930
|
+
makeLanguageSelectors
|
|
2841
2931
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -693,12 +693,12 @@ var FilesUploadStandard_default = FilesUpload;
|
|
|
693
693
|
|
|
694
694
|
// src/NewInputComponentStandard/AddFilesStandard/AddFilesStandard.tsx
|
|
695
695
|
import { useCallback, useEffect as useEffect5, useState as useState5 } from "react";
|
|
696
|
-
import
|
|
696
|
+
import clsx5 from "clsx";
|
|
697
697
|
|
|
698
698
|
// src/NewInputComponentStandard/AddFilesStandard/DropFilesStandard.tsx
|
|
699
699
|
import { useDropzone } from "react-dropzone";
|
|
700
700
|
import { Fragment as Fragment6, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
701
|
-
var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h\xE4r"
|
|
701
|
+
var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h\xE4r" }) => {
|
|
702
702
|
const onDrop = FilesSelected;
|
|
703
703
|
const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop, noKeyboard: true });
|
|
704
704
|
const handleFileExplorer = (event) => {
|
|
@@ -719,22 +719,34 @@ var DropFiles = ({ FilesSelected, DropFilesText = "Dra och sl\xE4pp dina filer h
|
|
|
719
719
|
}
|
|
720
720
|
)
|
|
721
721
|
] }),
|
|
722
|
-
isDragActive ? /* @__PURE__ */ jsx6("b", { className: "dropFilesNowText", children:
|
|
723
|
-
/* @__PURE__ */
|
|
722
|
+
isDragActive ? /* @__PURE__ */ jsx6("b", { className: "dropFilesNowText", children: "Sl\xE4pp filerna, nu ...!" }) : /* @__PURE__ */ jsxs6(Fragment6, { children: [
|
|
723
|
+
/* @__PURE__ */ jsxs6(
|
|
724
724
|
"svg",
|
|
725
725
|
{
|
|
726
|
+
"aria-hidden": "true",
|
|
726
727
|
xmlns: "http://www.w3.org/2000/svg",
|
|
727
|
-
width: "
|
|
728
|
-
height: "
|
|
729
|
-
viewBox: "0 0
|
|
730
|
-
fill: "
|
|
731
|
-
children:
|
|
732
|
-
"
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
728
|
+
width: "72",
|
|
729
|
+
height: "48",
|
|
730
|
+
viewBox: "0 0 72 48",
|
|
731
|
+
fill: "none",
|
|
732
|
+
children: [
|
|
733
|
+
/* @__PURE__ */ jsx6("g", { clipPath: "url(#clip0_247_596)", children: /* @__PURE__ */ jsx6(
|
|
734
|
+
"path",
|
|
735
|
+
{
|
|
736
|
+
d: "M66.6084 23.0844C64.6397 21.6247 62.2209 20.5531 59.6672 19.9752C59.2479 19.8808 58.8641 19.6692 58.5605 19.3649C58.257 19.0606 58.0463 18.6763 57.953 18.2567C56.8561 13.37 54.495 9.1794 51.0244 6.00409C46.9898 2.30706 41.6545 0.273621 36 0.273621C31.0289 0.273621 26.4375 1.83174 22.7292 4.78065C20.216 6.78238 18.193 9.33154 16.8145 12.2338C16.6651 12.5513 16.4434 12.8295 16.1672 13.0461C15.8911 13.2627 15.5681 13.4117 15.2241 13.4811C11.4623 14.2405 8.06625 15.8535 5.47312 18.1386C1.89281 21.3027 0 25.5088 0 30.3111C0 35.1655 2.03766 39.5924 5.73609 42.793C9.26859 45.8431 14.0245 47.5236 19.125 47.5236H33.75V25.956L28.5905 31.1155C28.3751 31.3309 28.1182 31.5003 27.8354 31.6134C27.5525 31.7266 27.2497 31.7811 26.9452 31.7738C26.6406 31.7664 26.3408 31.6973 26.0638 31.5706C25.7867 31.4439 25.5383 31.2623 25.3336 31.0367C24.518 30.141 24.5967 28.7446 25.4531 27.8881L34.4095 18.9331C34.8314 18.5115 35.4035 18.2747 36 18.2747C36.5965 18.2747 37.1686 18.5115 37.5905 18.9331L46.5469 27.8853C47.43 28.7699 47.4806 30.2197 46.6017 31.107C46.3932 31.3176 46.1451 31.485 45.8718 31.5994C45.5984 31.7139 45.3051 31.7732 45.0088 31.774C44.7124 31.7748 44.4188 31.717 44.1449 31.604C43.8709 31.491 43.622 31.325 43.4123 31.1155L38.25 25.956V47.5236H55.6875C60.0947 47.5236 64.1124 46.2861 67.0008 44.0403C70.2717 41.495 72 37.8528 72 33.5174C72 29.3071 70.1353 25.6972 66.6084 23.0844Z",
|
|
737
|
+
fill: "#6E3282"
|
|
738
|
+
}
|
|
739
|
+
) }),
|
|
740
|
+
/* @__PURE__ */ jsx6("defs", { children: /* @__PURE__ */ jsx6("clipPath", { id: "clip0_247_596", children: /* @__PURE__ */ jsx6(
|
|
741
|
+
"rect",
|
|
742
|
+
{
|
|
743
|
+
width: "72",
|
|
744
|
+
height: "47.1064",
|
|
745
|
+
fill: "white",
|
|
746
|
+
transform: "translate(0 0.446777)"
|
|
747
|
+
}
|
|
748
|
+
) }) })
|
|
749
|
+
]
|
|
738
750
|
}
|
|
739
751
|
),
|
|
740
752
|
/* @__PURE__ */ jsx6("p", { className: "dropFilesText", children: DropFilesText })
|
|
@@ -870,6 +882,7 @@ var Indicator = (filename) => {
|
|
|
870
882
|
var IndicatorStandard_default = Indicator;
|
|
871
883
|
|
|
872
884
|
// src/NewInputComponentStandard/AddFilesStandard/SelectedFilesStandard.tsx
|
|
885
|
+
import clsx4 from "clsx";
|
|
873
886
|
import { Fragment as Fragment10, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
874
887
|
var SelectedFiles = ({
|
|
875
888
|
questionObject,
|
|
@@ -911,57 +924,53 @@ var SelectedFiles = ({
|
|
|
911
924
|
};
|
|
912
925
|
const windowWidth = useWindowWidth();
|
|
913
926
|
return /* @__PURE__ */ jsxs8(Fragment10, { children: [
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
"
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
children: activatedLanguage === "sv" ? "St\xE4ng" : "Close"
|
|
962
|
-
}
|
|
963
|
-
) })
|
|
964
|
-
] }) }),
|
|
927
|
+
/* @__PURE__ */ jsxs8("div", { children: [
|
|
928
|
+
errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsxs8("ul", { "aria-hidden": true, className: "fileListUnorderedList", children: [
|
|
929
|
+
" ",
|
|
930
|
+
errorMessageAddingFile.map((errorObj, index) => {
|
|
931
|
+
const errorFileName = errorObj.FileName;
|
|
932
|
+
let mobileFirstFileName = errorObj.FileName.split(".").shift();
|
|
933
|
+
mobileFirstFileName = mobileFirstFileName.length > 8 ? mobileFirstFileName.substring(0, 8) + ".." : mobileFirstFileName;
|
|
934
|
+
const fileType = errorObj.FileName.split(".").pop();
|
|
935
|
+
mobileFirstFileName = mobileFirstFileName + "." + fileType;
|
|
936
|
+
return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(React5.Fragment, { children: /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs8("div", { className: "fileInList", children: [
|
|
937
|
+
/* @__PURE__ */ jsxs8(Row, { children: [
|
|
938
|
+
/* @__PURE__ */ jsx10(Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ jsx10(
|
|
939
|
+
"span",
|
|
940
|
+
{
|
|
941
|
+
"aria-hidden": "true",
|
|
942
|
+
className: clsx4("uploadedDot", "uploadFailed"),
|
|
943
|
+
children: "!"
|
|
944
|
+
}
|
|
945
|
+
) }),
|
|
946
|
+
/* @__PURE__ */ jsx10(Col, { children: windowWidth < 768 ? /* @__PURE__ */ jsx10("span", { className: "mobileFirstFileName", children: mobileFirstFileName }) : /* @__PURE__ */ jsx10("span", { className: "desktopFileName", children: errorObj.FileName }) }),
|
|
947
|
+
/* @__PURE__ */ jsx10(Col, { className: "lastCol" })
|
|
948
|
+
] }),
|
|
949
|
+
/* @__PURE__ */ jsx10(Row, { children: /* @__PURE__ */ jsx10(
|
|
950
|
+
Col,
|
|
951
|
+
{
|
|
952
|
+
style: {
|
|
953
|
+
width: "100%",
|
|
954
|
+
color: "#8e0039"
|
|
955
|
+
},
|
|
956
|
+
className: "errorMessageAddingFile",
|
|
957
|
+
...activatedLanguage === "sv" ? {
|
|
958
|
+
"aria-label": `${errorFileName} ${errorObj.svMessage}`
|
|
959
|
+
} : {
|
|
960
|
+
"aria-label": `${errorFileName} ${errorObj.enMessage}`
|
|
961
|
+
},
|
|
962
|
+
children: activatedLanguage === "sv" ? errorObj.svMessage : errorObj.enMessage
|
|
963
|
+
}
|
|
964
|
+
) }),
|
|
965
|
+
/* @__PURE__ */ jsx10(Row, { style: { marginTop: "12px", marginBottom: "12px" }, children: /* @__PURE__ */ jsx10(Col, { className: "makeSpace" }) })
|
|
966
|
+
] }, index) }) }) }, `error-${errorObj.FileName}-${index}`) });
|
|
967
|
+
})
|
|
968
|
+
] }),
|
|
969
|
+
errorMessageAddingFile.length > 0 && /* @__PURE__ */ jsxs8("button", { onClick: removeUploadErrors, className: "errorMessageAddingFile", children: [
|
|
970
|
+
/* @__PURE__ */ jsx10("span", { "aria-hidden": true, className: "errorDot", children: "X" }),
|
|
971
|
+
/* @__PURE__ */ jsx10("span", { className: "sr-only", children: "Ta bort felmeddelande f\xF6r uppladdning av filer" })
|
|
972
|
+
] })
|
|
973
|
+
] }),
|
|
965
974
|
questionObject.files.length > 0 && /* @__PURE__ */ jsx10("ul", { className: "fileListUnorderedList", "aria-label": "Uppladdade filer", children: questionObject.files.map((file, index) => {
|
|
966
975
|
const indicatorfileName = file.FileName;
|
|
967
976
|
let mobileFirstFileName = file.FileName.split(".").shift();
|
|
@@ -969,7 +978,7 @@ var SelectedFiles = ({
|
|
|
969
978
|
const fileType = file.FileName.split(".").pop();
|
|
970
979
|
mobileFirstFileName = mobileFirstFileName + "." + fileType;
|
|
971
980
|
return /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(React5.Fragment, { children: /* @__PURE__ */ jsx10("div", { children: /* @__PURE__ */ jsx10("div", { className: "fileInListContainer", children: /* @__PURE__ */ jsxs8("div", { className: "fileInList", children: [
|
|
972
|
-
/* @__PURE__ */ jsxs8(Row, {
|
|
981
|
+
/* @__PURE__ */ jsxs8(Row, { children: [
|
|
973
982
|
/* @__PURE__ */ jsx10(Col, { style: { maxWidth: "30px" }, children: /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", className: "uploadedDot", children: /* @__PURE__ */ jsx10(
|
|
974
983
|
"svg",
|
|
975
984
|
{
|
|
@@ -1183,13 +1192,10 @@ var AddFiles = ({
|
|
|
1183
1192
|
const removeFileFromNumberOfFiles = (newCount) => {
|
|
1184
1193
|
setNumberOfFiles(newCount);
|
|
1185
1194
|
};
|
|
1186
|
-
const
|
|
1195
|
+
const removeError = (errorIndex) => {
|
|
1187
1196
|
let newErrors = errorMessageAddingFile.filter((e, index) => index !== errorIndex);
|
|
1188
1197
|
setErrorMessageAddingFile(newErrors);
|
|
1189
1198
|
};
|
|
1190
|
-
const removeError = () => {
|
|
1191
|
-
setErrorMessageAddingFile([]);
|
|
1192
|
-
};
|
|
1193
1199
|
const handleRemoveErrors = () => {
|
|
1194
1200
|
setErrorMessageAddingFile([]);
|
|
1195
1201
|
};
|
|
@@ -1199,7 +1205,7 @@ var AddFiles = ({
|
|
|
1199
1205
|
"p",
|
|
1200
1206
|
{
|
|
1201
1207
|
id: aboutId,
|
|
1202
|
-
className:
|
|
1208
|
+
className: clsx5(
|
|
1203
1209
|
"addFilesMandatory",
|
|
1204
1210
|
questionObject.hasValidationError ? " error" : ""
|
|
1205
1211
|
),
|
|
@@ -1233,7 +1239,7 @@ var AddFiles = ({
|
|
|
1233
1239
|
removeUploadErrors: handleRemoveErrors
|
|
1234
1240
|
}
|
|
1235
1241
|
),
|
|
1236
|
-
/* @__PURE__ */ jsx11(DropFilesStandard_default, { FilesSelected: onDrop, DropFilesText: dropFilesText
|
|
1242
|
+
/* @__PURE__ */ jsx11(DropFilesStandard_default, { FilesSelected: onDrop, DropFilesText: dropFilesText }),
|
|
1237
1243
|
/* @__PURE__ */ jsx11(
|
|
1238
1244
|
SelectedFilesStandard_default,
|
|
1239
1245
|
{
|
|
@@ -1483,6 +1489,86 @@ function groupQuestionsByStepCategoryGroup(questions, steps, validationErrorsLis
|
|
|
1483
1489
|
}
|
|
1484
1490
|
var GroupQuestionsByStepCategoryGroup_default = groupQuestionsByStepCategoryGroup;
|
|
1485
1491
|
|
|
1492
|
+
// src/NewHelpMethodsStandard/ApplicationContentSlice/applicationContentSlice.ts
|
|
1493
|
+
import { createSlice, createSelector } from "@reduxjs/toolkit";
|
|
1494
|
+
var pickLang = (cfg, lang) => {
|
|
1495
|
+
var _a;
|
|
1496
|
+
return (_a = cfg.languageSupport.find((l) => l.language === lang)) != null ? _a : cfg.languageSupport[0];
|
|
1497
|
+
};
|
|
1498
|
+
var createLanguageSlice = (initialConfig, options) => {
|
|
1499
|
+
var _a;
|
|
1500
|
+
const name = (_a = options == null ? void 0 : options.name) != null ? _a : "applicationContent";
|
|
1501
|
+
const initialLang = pickLang(initialConfig, initialConfig.activatedLanguage);
|
|
1502
|
+
const initialState = {
|
|
1503
|
+
activatedLanguage: initialConfig.activatedLanguage,
|
|
1504
|
+
languageSupport: initialConfig.languageSupport,
|
|
1505
|
+
languageSupportLoaded: true,
|
|
1506
|
+
backButton: initialLang.backButton,
|
|
1507
|
+
forwardButton: initialLang.forwardButton,
|
|
1508
|
+
sendButton: initialLang.sendButton
|
|
1509
|
+
};
|
|
1510
|
+
const slice = createSlice({
|
|
1511
|
+
name,
|
|
1512
|
+
initialState,
|
|
1513
|
+
reducers: {
|
|
1514
|
+
setActivatedLanguage: (state, action) => {
|
|
1515
|
+
state.activatedLanguage = action.payload;
|
|
1516
|
+
const lang = pickLang(
|
|
1517
|
+
{ activatedLanguage: state.activatedLanguage, languageSupport: state.languageSupport },
|
|
1518
|
+
action.payload
|
|
1519
|
+
);
|
|
1520
|
+
state.backButton = lang.backButton;
|
|
1521
|
+
state.forwardButton = lang.forwardButton;
|
|
1522
|
+
state.sendButton = lang.sendButton;
|
|
1523
|
+
},
|
|
1524
|
+
setLabelsFromLanguageEntry: (state, action) => {
|
|
1525
|
+
state.backButton = action.payload.backButton;
|
|
1526
|
+
state.forwardButton = action.payload.forwardButton;
|
|
1527
|
+
state.sendButton = action.payload.sendButton;
|
|
1528
|
+
},
|
|
1529
|
+
replaceLanguageSupport: (state, action) => {
|
|
1530
|
+
state.languageSupport = action.payload.languageSupport;
|
|
1531
|
+
state.activatedLanguage = action.payload.activatedLanguage;
|
|
1532
|
+
const lang = pickLang(action.payload, action.payload.activatedLanguage);
|
|
1533
|
+
state.backButton = lang.backButton;
|
|
1534
|
+
state.forwardButton = lang.forwardButton;
|
|
1535
|
+
state.sendButton = lang.sendButton;
|
|
1536
|
+
state.languageSupportLoaded = true;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
});
|
|
1540
|
+
return slice;
|
|
1541
|
+
};
|
|
1542
|
+
var makeLanguageSelectors = (selectSlice) => {
|
|
1543
|
+
const selectState = selectSlice;
|
|
1544
|
+
const selectActivatedLanguage = (state) => selectState(state).activatedLanguage;
|
|
1545
|
+
const selectLanguageSupportLoaded = (state) => selectState(state).languageSupportLoaded;
|
|
1546
|
+
const selectLanguageSupport = (state) => selectState(state).languageSupport;
|
|
1547
|
+
const selectOverallContentState = (state) => selectState(state);
|
|
1548
|
+
const selectOverallContentFromLanguageSupport = createSelector(
|
|
1549
|
+
[selectState, (_, activatedLanguage) => activatedLanguage],
|
|
1550
|
+
(applicationContent, activatedLanguage) => {
|
|
1551
|
+
const match = applicationContent.languageSupport.find(
|
|
1552
|
+
(l) => l.language === activatedLanguage
|
|
1553
|
+
);
|
|
1554
|
+
if (!match) return { ...applicationContent };
|
|
1555
|
+
return {
|
|
1556
|
+
...applicationContent,
|
|
1557
|
+
backButton: match.backButton,
|
|
1558
|
+
forwardButton: match.forwardButton,
|
|
1559
|
+
sendButton: match.sendButton
|
|
1560
|
+
};
|
|
1561
|
+
}
|
|
1562
|
+
);
|
|
1563
|
+
return {
|
|
1564
|
+
selectActivatedLanguage,
|
|
1565
|
+
selectLanguageSupportLoaded,
|
|
1566
|
+
selectLanguageSupport,
|
|
1567
|
+
selectOverallContentState,
|
|
1568
|
+
selectOverallContentFromLanguageSupport
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1486
1572
|
// src/NewRenderFormComponentStandard/RenderQuestion/RenderQuestion.tsx
|
|
1487
1573
|
import { Fragment as Fragment12, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1488
1574
|
var RenderQuestion = ({
|
|
@@ -1578,7 +1664,7 @@ var RenderQuestionGroup = ({
|
|
|
1578
1664
|
"aria-describedby": questionArray[0].hasValidationError ? `${questionArray[0].id}-error` : void 0,
|
|
1579
1665
|
children: [
|
|
1580
1666
|
legend && /* @__PURE__ */ jsxs11("legend", { children: [
|
|
1581
|
-
/* @__PURE__ */ jsx13("span", {
|
|
1667
|
+
/* @__PURE__ */ jsx13("span", { children: legend }),
|
|
1582
1668
|
questionArray[0].hasValidationError && /* @__PURE__ */ jsxs11("span", { className: "sr-only", children: [
|
|
1583
1669
|
"Valideringsfel. ",
|
|
1584
1670
|
questionArray[0].validationDefaultMessesege
|
|
@@ -2771,5 +2857,7 @@ export {
|
|
|
2771
2857
|
TextFieldStandard_default as TextFieldStandard,
|
|
2772
2858
|
TextHeadlineAndBodyStandard_default as TextHeadlineAndBodyStandard,
|
|
2773
2859
|
ValidationCheckAllVisibleQuestion_default as ValidationCheckAllVisibleQuestion,
|
|
2774
|
-
ValidationErrorSummaryList_default as ValidationErrorSummaryList
|
|
2860
|
+
ValidationErrorSummaryList_default as ValidationErrorSummaryList,
|
|
2861
|
+
createLanguageSlice,
|
|
2862
|
+
makeLanguageSelectors
|
|
2775
2863
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "optimized-react-component-library-xyz123",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.93",
|
|
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",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"vitest": "^2.0.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
+
"@reduxjs/toolkit": "^2.10.1",
|
|
69
70
|
"clsx": "^2.1.1",
|
|
70
71
|
"date-fns": "^4.1.0",
|
|
71
72
|
"dompurify": "^3.2.6",
|
package/src/css/styles.css
CHANGED
|
@@ -155,6 +155,15 @@ fieldset {
|
|
|
155
155
|
margin-bottom: 3.6rem;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
.pts-root-question legend {
|
|
159
|
+
font-family: Arial;
|
|
160
|
+
font-size: 1.6rem;
|
|
161
|
+
font-style: normal;
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
line-height: 20px;
|
|
164
|
+
margin-bottom: 0.8rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
158
167
|
.pts-root-question legend,
|
|
159
168
|
.pts-root-question label,
|
|
160
169
|
.pts-radio-option {
|
|
@@ -163,14 +172,6 @@ fieldset {
|
|
|
163
172
|
cursor: pointer;
|
|
164
173
|
margin-bottom: 0.6rem;
|
|
165
174
|
}
|
|
166
|
-
.pts-root-question legend {
|
|
167
|
-
font-family: Arial;
|
|
168
|
-
font-size: 1.6rem;
|
|
169
|
-
font-style: normal;
|
|
170
|
-
font-weight: 400;
|
|
171
|
-
line-height: 20px;
|
|
172
|
-
margin: 0.8rem 0 0.8rem 0;
|
|
173
|
-
}
|
|
174
175
|
|
|
175
176
|
.pts-root-about {
|
|
176
177
|
font-size: 1.4rem;
|
|
@@ -1497,20 +1498,6 @@ dd {
|
|
|
1497
1498
|
opacity: 0.9;
|
|
1498
1499
|
cursor: copy;
|
|
1499
1500
|
}
|
|
1500
|
-
|
|
1501
|
-
.DropZone-label-container{
|
|
1502
|
-
display: flex;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
.DropZone svg {
|
|
1506
|
-
border-radius: 50%;
|
|
1507
|
-
background: var(--purple-purple-900-primary, #6E3282);
|
|
1508
|
-
border: 2px solid #6E3282;
|
|
1509
|
-
margin-top: 17px;
|
|
1510
|
-
margin-right: 16px;
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
1501
|
.ClipboardLink {
|
|
1515
1502
|
display: block;
|
|
1516
1503
|
position: relative;
|
|
@@ -1524,8 +1511,6 @@ dd {
|
|
|
1524
1511
|
cursor: pointer;
|
|
1525
1512
|
}
|
|
1526
1513
|
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
1514
|
/* SelectedFiles.tsx */
|
|
1530
1515
|
|
|
1531
1516
|
.makeTopSpace {
|
|
@@ -1593,7 +1578,7 @@ dd {
|
|
|
1593
1578
|
}
|
|
1594
1579
|
|
|
1595
1580
|
.fileInListContainer {
|
|
1596
|
-
|
|
1581
|
+
max-width: 624px;
|
|
1597
1582
|
}
|
|
1598
1583
|
|
|
1599
1584
|
.fileListUnorderedList {
|
|
@@ -1626,11 +1611,6 @@ dd {
|
|
|
1626
1611
|
justify-content: flex-end;
|
|
1627
1612
|
}
|
|
1628
1613
|
|
|
1629
|
-
.fileItem{
|
|
1630
|
-
display: grid;
|
|
1631
|
-
grid-template-columns: 1fr 90% 1fr;
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
1614
|
.fileInList .makeSpace {
|
|
1635
1615
|
border-bottom: 1px solid #747474;
|
|
1636
1616
|
/* margin-top: 24px; */
|
|
@@ -1727,20 +1707,18 @@ dd {
|
|
|
1727
1707
|
}
|
|
1728
1708
|
|
|
1729
1709
|
.uploadedDot {
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
height: 1rem;
|
|
1710
|
+
border-radius: 17px;
|
|
1711
|
+
background: var(--red-green-green, #008e55);
|
|
1712
|
+
display: flex;
|
|
1713
|
+
width: 16px;
|
|
1714
|
+
height: 16px;
|
|
1715
|
+
padding: 10px;
|
|
1716
|
+
flex-direction: column;
|
|
1717
|
+
justify-content: center;
|
|
1718
|
+
align-items: center;
|
|
1719
|
+
gap: 10px;
|
|
1720
|
+
flex-shrink: 0;
|
|
1742
1721
|
}
|
|
1743
|
-
|
|
1744
1722
|
.uploadedDot.uploadFailed {
|
|
1745
1723
|
background: var(--red-green-red, #8e0039);
|
|
1746
1724
|
|
|
@@ -1962,32 +1940,6 @@ dd {
|
|
|
1962
1940
|
margin-bottom: 0px;
|
|
1963
1941
|
}
|
|
1964
1942
|
|
|
1965
|
-
.pts-addFile-error-container{
|
|
1966
|
-
display: inline-flex;
|
|
1967
|
-
width: 100%;
|
|
1968
|
-
}
|
|
1969
|
-
.pts-addFile-error-container li{
|
|
1970
|
-
display: flex;
|
|
1971
|
-
cursor: none;
|
|
1972
|
-
padding: 0 20px 1.6rem 0;
|
|
1973
|
-
width: 100%;
|
|
1974
|
-
margin-bottom: 1.6rem;
|
|
1975
|
-
}
|
|
1976
|
-
.desktopFileName {
|
|
1977
|
-
display: block;
|
|
1978
|
-
margin-bottom: 0.6rem;
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
.error-close{
|
|
1982
|
-
color: #8E0039;
|
|
1983
|
-
font-weight: 400;
|
|
1984
|
-
line-height: 24px;
|
|
1985
|
-
background: #fff;
|
|
1986
|
-
border: none;
|
|
1987
|
-
cursor: pointer;
|
|
1988
|
-
font-size: 1.6rem;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
1943
|
/* preview */
|
|
1992
1944
|
|
|
1993
1945
|
/* .addFilesPreviewContainer {
|