optimized-react-component-library-xyz123 0.10.6 → 0.10.8
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.css +33 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +256 -184
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +256 -185
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/questions.css +1 -5
- package/src/css/styles.css +2 -20
package/dist/index.css
CHANGED
|
@@ -1,2 +1,35 @@
|
|
|
1
1
|
/* src/components/input-components/AddFilesStandard/AddFilesStandard.css */
|
|
2
|
+
/* src/components/input-components/DropdownStandard/DropdownStandard.css */
|
|
3
|
+
.pts-dropdown-container {
|
|
4
|
+
margin-bottom: 1.5rem;
|
|
5
|
+
}
|
|
6
|
+
.pts-dropdown-container label {
|
|
7
|
+
display: block;
|
|
8
|
+
margin-bottom: 0.5rem;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
}
|
|
11
|
+
.pts-dropdown-container select {
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
padding-right: 2.4em;
|
|
15
|
+
padding-left: 0.6em;
|
|
16
|
+
border: #747474 1px solid;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
margin: 0;
|
|
19
|
+
height: 42px;
|
|
20
|
+
word-wrap: normal;
|
|
21
|
+
text-transform: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
border-radius: 6px;
|
|
24
|
+
font-family: Arial;
|
|
25
|
+
font-size: 16px;
|
|
26
|
+
background-image: url(https://dsa.pts.se/images/arrow.svg);
|
|
27
|
+
background-repeat: no-repeat;
|
|
28
|
+
background-position: right 14px center;
|
|
29
|
+
background-size: 1em;
|
|
30
|
+
-webkit-appearance: none;
|
|
31
|
+
-moz-appearance: none;
|
|
32
|
+
appearance: none;
|
|
33
|
+
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
34
|
+
}
|
|
2
35
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/components/input-components/DropdownStandard/DropdownStandard.css"],"sourcesContent":["/* För inspiration */\r\n\r\n.pts-dropdown-container {\r\n margin-bottom: 1.5rem;\r\n}\r\n\r\n.pts-dropdown-container label {\r\n display: block;\r\n margin-bottom: 0.5rem;\r\n font-weight: 500;\r\n}\r\n\r\n.pts-dropdown-container select {\r\n display: block;\r\n width: 100%;\r\n padding-right: 2.4em;\r\n padding-left: 0.6em;\r\n\r\n border: #747474 1px solid;\r\n box-shadow: none;\r\n margin: 0;\r\n height: 42px;\r\n\r\n word-wrap: normal;\r\n\r\n text-transform: none;\r\n\r\n cursor: pointer;\r\n\r\n border-radius: 6px;\r\n\r\n font-family: Arial;\r\n font-size: 16px;\r\n\r\n background-image: url(https://dsa.pts.se/images/arrow.svg);\r\n background-repeat: no-repeat;\r\n background-position: right 14px center;\r\n background-size: 1em;\r\n\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n appearance: none;\r\n\r\n transition:\r\n border-color 0.15s ease-in-out,\r\n box-shadow 0.15s ease-in-out;\r\n}\r\n"],"mappings":";;AAEA,CAAC;AACC,iBAAe;AACjB;AAEA,CAJC,uBAIuB;AACtB,WAAS;AACT,iBAAe;AACf,eAAa;AACf;AAEA,CAVC,uBAUuB;AACtB,WAAS;AACT,SAAO;AACP,iBAAe;AACf,gBAAc;AAEd,UAAQ,QAAQ,IAAI;AACpB,cAAY;AACZ,UAAQ;AACR,UAAQ;AAER,aAAW;AAEX,kBAAgB;AAEhB,UAAQ;AAER,iBAAe;AAEf,eAAa;AACb,aAAW;AAEX,oBAAkB;AAClB,qBAAmB;AACnB,uBAAqB,MAAM,KAAK;AAChC,mBAAiB;AAEjB,sBAAoB;AACpB,mBAAiB;AACjB,cAAY;AAEZ,cACE,aAAa,MAAM,WAAW,EAC9B,WAAW,MAAM;AACrB;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -180,6 +180,14 @@ interface SingleCheckboxProps {
|
|
|
180
180
|
|
|
181
181
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
182
182
|
|
|
183
|
+
interface DropdownProps {
|
|
184
|
+
question: IQuestion;
|
|
185
|
+
handleQuestionInputChange: any;
|
|
186
|
+
showPreview?: boolean;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare const CustomDropdownStandard: FC<DropdownProps>;
|
|
190
|
+
|
|
183
191
|
/**
|
|
184
192
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
185
193
|
*
|
|
@@ -855,4 +863,4 @@ interface FormStatusMessagesProps {
|
|
|
855
863
|
*/
|
|
856
864
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
857
865
|
|
|
858
|
-
export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
866
|
+
export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, CustomDropdownStandard as DropdownStandard, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,14 @@ interface SingleCheckboxProps {
|
|
|
180
180
|
|
|
181
181
|
declare const SingleCheckbox: FC<SingleCheckboxProps>;
|
|
182
182
|
|
|
183
|
+
interface DropdownProps {
|
|
184
|
+
question: IQuestion;
|
|
185
|
+
handleQuestionInputChange: any;
|
|
186
|
+
showPreview?: boolean;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare const CustomDropdownStandard: FC<DropdownProps>;
|
|
190
|
+
|
|
183
191
|
/**
|
|
184
192
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
185
193
|
*
|
|
@@ -855,4 +863,4 @@ interface FormStatusMessagesProps {
|
|
|
855
863
|
*/
|
|
856
864
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
857
865
|
|
|
858
|
-
export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
866
|
+
export { AddFiles as AddFilesStandard, CheckboxGroup as CheckboxGroupStandard, CookieBanner, type CookieConsentConfig, CustomDropdownStandard as DropdownStandard, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|