@kbgarcia8/react-dynamic-form 1.1.26 → 1.1.28
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/components/molecules/NestedEditableOption/NestedEditableOption.d.ts +1 -1
- package/dist/components/molecules/NestedEditableOption/NestedEditableOption.d.ts.map +1 -1
- package/dist/components/organisms/DynamicForm/DynamicForm.d.ts.map +1 -1
- package/dist/react-dynamic-form.cjs.js +32 -32
- package/dist/react-dynamic-form.es.js +209 -206
- package/dist/type/propTypes.d.ts +3 -2
- package/dist/type/propTypes.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NestedEditableOptionProps } from "../../../type/propTypes";
|
|
2
|
-
declare const NestedEditableOption: ({ legend, idx, editableInformation, onChangeOfEditableOption, onClickSaveEdit, onClickCancelEdit, onClickDeleteEntry }: NestedEditableOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const NestedEditableOption: ({ legend, fieldsetIndex, idx, editableInformation, onChangeOfEditableOption, onClickSaveEdit, onClickCancelEdit, onClickDeleteEntry }: NestedEditableOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default NestedEditableOption;
|
|
4
4
|
//# sourceMappingURL=NestedEditableOption.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedEditableOption.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NestedEditableOption/NestedEditableOption.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,QAAA,MAAM,oBAAoB,GAAI,
|
|
1
|
+
{"version":3,"file":"NestedEditableOption.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NestedEditableOption/NestedEditableOption.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,QAAA,MAAM,oBAAoB,GAAI,uIAS5B,yBAAyB,4CA8B1B,CAAA;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/DynamicForm/DynamicForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAgB,gBAAgB,EAA+D,MAAM,yBAAyB,CAAC;AAE3I,QAAA,MAAM,WAAW,GAAI,mTAuBnB,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/DynamicForm/DynamicForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAgB,gBAAgB,EAA+D,MAAM,yBAAyB,CAAC;AAE3I,QAAA,MAAM,WAAW,GAAI,mTAuBnB,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,4CAmJ1C,CAAA;AAGD,eAAe,WAAW,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),F=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),F=require("react"),c=require("styled-components"),t={fonts:{secondary:"Raleway",tertiary:"Lato",fallback:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"},fontWeight:{light:300,medium:500,bold:700,bolder:900},fontSize:{xsmall:"0.75rem"},spacing:{xxxsmall:"0.25rem",xxsmall:"0.375rem",xsmall:"0.5rem",small:"0.75rem",medium:"1.25rem"},borderRadius:{xsmall:"0.125rem",small:"0.25rem",xlarge:"2rem"},borderThickness:{thin:"0.0625rem",light:"0.125rem"}},J=c.button`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
background-color: ${({theme:
|
|
6
|
-
color: ${({theme:
|
|
7
|
-
border: ${t.borderThickness.light} solid ${({theme:
|
|
5
|
+
background-color: ${({theme:a})=>a.colors.blue||"blue"};
|
|
6
|
+
color: ${({theme:a})=>a.colors.bg||"white"};
|
|
7
|
+
border: ${t.borderThickness.light} solid ${({theme:a})=>a.colors.text||"black"};
|
|
8
8
|
border-radius: ${t.borderRadius.xlarge};
|
|
9
9
|
padding: ${t.spacing.xxxsmall} ${t.spacing.small};
|
|
10
10
|
margin: 0.125rem;
|
|
@@ -24,38 +24,38 @@
|
|
|
24
24
|
& .button-icon-text-space svg {
|
|
25
25
|
max-width: 100%;
|
|
26
26
|
}
|
|
27
|
-
`,K=
|
|
27
|
+
`,K=c.div`
|
|
28
28
|
width: 100%;
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: row;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
-
`,Q=
|
|
33
|
+
`,Q=c.img`
|
|
34
34
|
maxwidth: 100%;
|
|
35
|
-
`,V=
|
|
35
|
+
`,V=c.span`
|
|
36
36
|
font-size: ${t.fontSize.xsmall};
|
|
37
37
|
font-weight: ${t.fontWeight.medium};
|
|
38
38
|
font-family: ${t.fonts.tertiary}, ${t.fonts.fallback};
|
|
39
39
|
display: flex;
|
|
40
40
|
align-items: center;
|
|
41
41
|
justify-content: center;
|
|
42
|
-
`,f=({onClick:
|
|
42
|
+
`,f=({onClick:a,id:i,buttonType:s,source:o,svg:m,alt:r="alt-button-icon",text:d="",className:b="",dataAttributes:h={}})=>e.jsx(J,{onClick:a,id:i,type:s,className:b,...h,children:e.jsxs(K,{className:"button-icon-text-space",children:[o?e.jsx(Q,{src:o,alt:r}):m||"",d&&e.jsx(V,{id:i,children:d})]})}),X=c.div`
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
align-items: left;
|
|
46
46
|
width: 100%;
|
|
47
47
|
margin-bottom: ${t.spacing.small};
|
|
48
|
-
`,Y=
|
|
48
|
+
`,Y=c.div`
|
|
49
49
|
display: flex;
|
|
50
50
|
gap: ${t.spacing.xsmall};
|
|
51
51
|
width: auto;
|
|
52
52
|
height: auto;
|
|
53
|
-
`,Z=
|
|
53
|
+
`,Z=c.label`
|
|
54
54
|
display: flex;
|
|
55
55
|
align-items: center;
|
|
56
56
|
justify-content:center;
|
|
57
57
|
height: auto;
|
|
58
|
-
flex-direction: ${
|
|
58
|
+
flex-direction: ${a=>a.$labelFlexDirection||"column"};
|
|
59
59
|
font-family: ${t.fonts.secondary}, ${t.fonts.fallback};
|
|
60
60
|
font-size: ${t.fontSize.xsmall};
|
|
61
61
|
font-weight: ${t.fontWeight.bold};
|
|
@@ -67,21 +67,21 @@
|
|
|
67
67
|
height: auto;
|
|
68
68
|
object-fit: contain;
|
|
69
69
|
}
|
|
70
|
-
`,_=
|
|
70
|
+
`,_=c.div`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
align-items: center;
|
|
74
74
|
justify-content: center;
|
|
75
75
|
gap: ${t.spacing.xxxsmall};
|
|
76
|
-
`,ee=
|
|
76
|
+
`,ee=c.span`
|
|
77
77
|
font-weight: ${t.fontWeight.bolder};
|
|
78
|
-
`,te=
|
|
78
|
+
`,te=c.div`
|
|
79
79
|
max-width: 100%;
|
|
80
80
|
display: flex;
|
|
81
81
|
align-items: center;
|
|
82
|
-
`,
|
|
82
|
+
`,ae=c.span`
|
|
83
83
|
font-weight: ${t.fontWeight.light};
|
|
84
|
-
`,R=({htmlFor:
|
|
84
|
+
`,R=({htmlFor:a,textLabel:i,additionalInfo:s,$labelFlexDirection:o,source:m,svg:r,className:d,children:b})=>e.jsxs(Z,{htmlFor:a,className:d,$labelFlexDirection:o,children:[(m||r)&&e.jsx(te,{className:"label-icon-container",children:m?e.jsx("img",{src:m,alt:`${a}-label-icon`}):r||""}),e.jsxs(_,{className:"label-text-container",children:[e.jsx(ee,{className:"main-label",children:i}),s&&e.jsx(ae,{className:"additional-info",children:s})]}),b]}),B=c.input`
|
|
85
85
|
display: flex;
|
|
86
86
|
place-content: center;
|
|
87
87
|
font-family: ${t.fonts.secondary}, ${t.fonts.fallback};
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
border-radius: ${t.borderRadius.xsmall};
|
|
97
97
|
|
|
98
98
|
&:focus{
|
|
99
|
-
border: ${t.borderThickness.thin} solid ${({theme:
|
|
99
|
+
border: ${t.borderThickness.thin} solid ${({theme:a})=>a.colors.teal};
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,ne=c.textarea`
|
|
102
102
|
display: flex;
|
|
103
103
|
place-content: center;
|
|
104
|
-
border: ${t.borderThickness.light} solid ${({theme:
|
|
104
|
+
border: ${t.borderThickness.light} solid ${({theme:a})=>a.colors.text};
|
|
105
105
|
border-radius: ${t.borderRadius.small};
|
|
106
106
|
outline: none;
|
|
107
107
|
line-height: ${t.spacing.small};
|
|
@@ -111,46 +111,46 @@
|
|
|
111
111
|
max-width: 100%;
|
|
112
112
|
resize: none;
|
|
113
113
|
overflow-y: auto;
|
|
114
|
-
`,A=F.forwardRef((
|
|
114
|
+
`,A=F.forwardRef((a,i)=>{const{type:s,id:o,onChange:m,isRequired:r,dataAttributes:d,disabled:b,className:h}=a;if(s==="textarea"){const{rows:y=5,cols:N=30,value:E,...v}=a;return e.jsx(ne,{id:o,onChange:m,value:E,rows:y,cols:N,...d,className:h,ref:i,disabled:b,required:r})}if(s==="radio"||s==="checkbox"){const{checked:y,...N}=a;return e.jsx(B,{ref:i,type:"checkbox",id:o,checked:y,onChange:m,disabled:b,className:h,...d})}const u=a,{value:j,pattern:$,placeholderText:k,...C}=u;return e.jsx(B,{id:o,name:o,placeholder:k,onChange:m,value:j,type:s,required:r,...d,className:h,ref:i,disabled:b,pattern:$})}),w=a=>{const{className:i,type:s,id:o,textLabel:m,additionalInfo:r,$labelFlexDirection:d,svg:b,labelClass:h,onChange:u,isRequired:j,dataAttributes:$,inputClass:k,ref:C,disabled:y,isEditable:N,editIcon:E,onClickEdit:v,deleteIcon:D,onClickDelete:S,idx:T,children:q}=a;return e.jsxs(X,{className:`${i} ${o.replace("#","")}-label-input-container`,children:[s!=="radio"&&s!=="checkbox"&&e.jsx(R,{htmlFor:o,textLabel:m,additionalInfo:r,$labelFlexDirection:d,svg:b,className:h}),s!=="radio"&&s!=="checkbox"&&s==="textarea"&&(()=>{const{rows:n=5,cols:g=30,value:l,...p}=a;return e.jsx(A,{id:o,name:o,type:"textarea",isRequired:j,onChange:u,value:l,rows:n,cols:g,dataAttributes:$,className:k,ref:C,disabled:y})})(),s!=="radio"&&s!=="checkbox"&&s!=="textarea"&&(()=>{const n=a,{value:g,pattern:l,placeholderText:p,...z}=n;return e.jsx(A,{id:o,name:o,placeholderText:p,onChange:u,value:g,type:s,isRequired:j,dataAttributes:$,className:k,ref:C,disabled:y,pattern:l})})(),(s==="radio"||s==="checkbox")&&(()=>{const{checked:n,...g}=a;return e.jsxs(e.Fragment,{children:[e.jsx(A,{ref:C,type:"checkbox",name:o,id:o,isRequired:j,checked:n,onChange:u,disabled:y,className:k,dataAttributes:$}),e.jsx(R,{htmlFor:o,textLabel:m,additionalInfo:r,$labelFlexDirection:d,svg:b,className:h})]})})(),N&&e.jsxs(Y,{className:"input-edit-buttons",children:[e.jsx(f,{id:`editable-${o}-edit-btn`,svg:E,buttonType:"button",onClick:v,className:`edit-radio-${T}`,dataAttributes:$}),e.jsx(f,{id:`editable-${o}-delete-btn`,svg:D,buttonType:"button",onClick:S,className:`delete-radio-${T}`,dataAttributes:$})]}),q]})},se=c.fieldset`
|
|
115
115
|
padding: 0;
|
|
116
116
|
height: auto;
|
|
117
117
|
width: 100%;
|
|
118
|
-
`,oe=
|
|
118
|
+
`,oe=c.legend`
|
|
119
119
|
font-size: ${t.spacing.medium};
|
|
120
120
|
font-weight: 500;
|
|
121
121
|
margin: 0 auto ${t.spacing.small} auto;
|
|
122
122
|
text-align: center;
|
|
123
123
|
font-family: ${t.fonts.secondary}, ${t.fonts.fallback};
|
|
124
|
-
`,
|
|
124
|
+
`,ie=c.div`
|
|
125
125
|
display: flex;
|
|
126
126
|
flex-direction: column;
|
|
127
127
|
align-items: flex-start;
|
|
128
128
|
width: 100%;
|
|
129
129
|
margin-bottom: ${t.spacing.small};
|
|
130
|
-
`,
|
|
130
|
+
`,le=c.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
justify-content: space-between;
|
|
133
133
|
width: 100%;
|
|
134
|
-
`,P=({legend:
|
|
134
|
+
`,P=({legend:a,fieldsetIndex:i=null,idx:s,editableInformation:o,onChangeOfEditableOption:m,onClickSaveEdit:r,onClickCancelEdit:d,onClickDeleteEntry:b})=>e.jsxs(se,{className:"editable-option-fieldset",children:[e.jsx(oe,{children:`${a} ${s+1}`}),o?.map((h,u)=>e.jsx(ie,{className:"editable-option-container",children:e.jsx(A,{id:`editable-option-${u}`,name:`editable-option-${u}`,placeholderText:h.name.charAt(0).toUpperCase()+h.name.slice(1),onChange:m,value:h.info,type:h.type,isRequired:!0,className:"editable-option",dataAttributes:{"data-index":u,"data-fieldsetidx":i,"data-key":h.info}})},`${h.name}-${u}`)),e.jsxs(le,{className:"editable-option-button-space",children:[e.jsx(f,{id:`editable-option-${s}-submit`,buttonType:"button",text:"Save",onClick:r,className:"editable-option-btn",dataAttributes:{"data-index":s,"data-fieldsetIndex":i}}),e.jsx(f,{id:`editable-option-${s}-cancel`,buttonType:"button",text:"Cancel",onClick:d,className:"editable-option-btn",dataAttributes:{"data-index":s,"data-fieldsetIndex":i}}),e.jsx(f,{id:`editable-option-${s}-delete`,buttonType:"button",text:"Delete",onClick:b,className:"editable-option-btn",dataAttributes:{"data-index":s,"data-fieldsetIndex":i}})]})]}),ce=c.div`
|
|
135
135
|
display: flex;
|
|
136
136
|
justify-content: space-between;
|
|
137
137
|
max-width: 100%;
|
|
138
|
-
`,re=({id:
|
|
138
|
+
`,re=({id:a,hasSubmit:i,submitText:s,handleSubmit:o,hasReset:m,resetText:r,handleReset:d,hasCancel:b,cancelText:h,handleCancel:u})=>e.jsxs(ce,{className:"form-main-button-container",children:[i&&e.jsx(f,{id:`form-${a}-submit`,buttonType:"submit",text:s??"Submit",onClick:o,className:"submit-form-btn"}),m&&e.jsx(f,{id:`form-${a}-edit`,buttonType:"button",text:r??"Reset",onClick:d,className:"reset-form-btn"}),b&&e.jsx(f,{id:`form-${a}-cancel`,buttonType:"button",text:h??"Cancel",onClick:u,className:"cancel-form-btn"})]}),W=c.legend`
|
|
139
139
|
font-size: ${t.spacing.medium};
|
|
140
140
|
font-weight: 500;
|
|
141
141
|
margin-bottom: ${t.spacing.small};
|
|
142
142
|
width: auto;
|
|
143
143
|
text-align: center;
|
|
144
144
|
font-family: ${t.fonts.secondary}, ${t.fonts.fallback};
|
|
145
|
-
`,M=
|
|
145
|
+
`,M=c.fieldset`
|
|
146
146
|
padding: 0;
|
|
147
147
|
height: auto;
|
|
148
148
|
width: 100%;
|
|
149
|
-
`,U=
|
|
149
|
+
`,U=c.div`
|
|
150
150
|
padding: ${t.spacing.small};
|
|
151
151
|
height: auto;
|
|
152
152
|
width: 100%;
|
|
153
|
-
`,O=
|
|
153
|
+
`,O=c.div`
|
|
154
154
|
display: flex;
|
|
155
155
|
justify-content: center;
|
|
156
156
|
align-items: center;
|
|
@@ -159,19 +159,19 @@
|
|
|
159
159
|
font-family: ${t.fonts.tertiary}, ${t.fonts.fallback};
|
|
160
160
|
font-size: ${t.fontSize.xsmall};
|
|
161
161
|
font-weight: ${t.fontWeight.bold};
|
|
162
|
-
`,de=
|
|
162
|
+
`,de=c.form`
|
|
163
163
|
display: flex;
|
|
164
164
|
flex-direction: column;
|
|
165
165
|
align-items: center;
|
|
166
166
|
width: 100%;
|
|
167
|
-
`,H=
|
|
167
|
+
`,H=c.div`
|
|
168
168
|
display: flex;
|
|
169
169
|
justify-content: space-between;
|
|
170
170
|
width: 100%;
|
|
171
|
-
`,me=
|
|
171
|
+
`,me=c.div`
|
|
172
172
|
width: 100%;
|
|
173
173
|
display: flex;
|
|
174
174
|
flex-direction: column;
|
|
175
175
|
align-items: center;
|
|
176
176
|
justify-content: center;
|
|
177
|
-
`,xe=({fieldsets:
|
|
177
|
+
`,xe=({fieldsets:a=null,legendText:i,isExpandable:s,id:o,formInputs:m,labelAndInputContainerClass:r,labelClass:d,inputClass:b,onChangeOfEditableOption:h,handleAddingInputEntry:u,hasSubmit:j=!1,submitText:$,handleSubmit:k,hasReset:C=!1,resetText:y,handleReset:N,hasCancel:E=!1,cancelText:v,handleCancel:D,handleSubmitForm:S,className:T,children:q})=>e.jsxs(de,{id:`${o}-form`,className:T,onSubmit:S,children:[a?a.map((n,g)=>e.jsxs(U,{className:`${o}-fieldset-wrapper`,children:[e.jsxs(M,{id:`${o}-form-fieldset-${g}`,className:`${n.legend}-fieldset`,children:[n.legend&&e.jsx(W,{className:`${n.legend}-legend`,children:n.legend}),n.inputs.length!==0?n.inputs.map((l,p)=>e.jsxs(F.Fragment,{children:[l.type==="textarea"&&e.jsx(w,{...l,id:l.id??`${n.legend}-input`,labelClass:d,inputClass:b,idx:p,className:`${r} ${l?.uniqueClass}`}),l.type!=="textarea"&&l.type!=="radio"&&l.type!=="checkbox"&&e.jsx(w,{...l,id:l.id??`${n.legend}-input`,labelClass:d,inputClass:b,idx:p,className:`${r} ${l?.uniqueClass}`}),(l.type==="radio"||l.type==="checkbox")&&e.jsxs(e.Fragment,{children:[e.jsx(w,{...l,id:l.id??`${n.legend}-input`,labelClass:d,inputClass:b,idx:p,className:`${r} ${l?.uniqueClass}`}),l.editing&&l.isEditable&&e.jsx(P,{legend:`${n.legend}`,fieldsetIndex:g,idx:p,editableInformation:l?.editableInformation||[],onChangeOfEditableOption:h,onClickSaveEdit:l?.onClickSave||(z=>{}),onClickCancelEdit:l?.onClickCancel||(z=>{}),onClickDeleteEntry:l?.onClickDelete||(z=>{})})]})]},`form-${o}-${p}`)):n.isExpandable?e.jsx(O,{children:`No entry yet on ${n.legend}. Click "+" button to add entry.`}):""]}),n.isExpandable&&e.jsx(H,{className:"add-input-button-space",children:e.jsx(f,{id:`expand-${n.legend}-inputs`,buttonType:"button",text:"+",onClick:u,className:"add-input-entry",dataAttributes:{"data-fieldsetidx":g}})})]},`${n.legend}-${g}`)):e.jsxs(U,{className:`${o}-fieldset-wrapper`,children:[e.jsxs(M,{id:`${o}-form-fieldset`,className:`${i}-fieldset`,children:[i&&e.jsx(W,{className:`${i}-legend`,children:i}),!a&&m&&m.length!==0?m.map((n,g)=>e.jsxs(F.Fragment,{children:[n.type==="textarea"&&e.jsx(w,{...n,id:n.id??`${i}-input`,labelClass:d,inputClass:b,idx:g,className:`${r} ${n?.uniqueClass}`}),n.type!=="textarea"&&n.type!=="radio"&&n.type!=="checkbox"&&e.jsx(w,{...n,id:n.id??`${i}-input`,labelClass:d,inputClass:b,idx:g,className:`${r} ${n?.uniqueClass}`}),(n.type==="radio"||n.type==="checkbox")&&e.jsxs(e.Fragment,{children:[e.jsx(w,{...n,id:n.id??`${i}-input`,labelClass:d,inputClass:b,idx:g,className:`${r} ${n?.uniqueClass}`}),n.editing&&n.isEditable&&e.jsx(P,{legend:`${i}`,idx:g,editableInformation:n?.editableInformation,onChangeOfEditableOption:h,onClickSaveEdit:n?.onClickSave||(l=>{}),onClickCancelEdit:n?.onClickCancel||(l=>{}),onClickDeleteEntry:n?.onClickDelete||(l=>{})})]})]},`form-${o}-${g}`)):s?e.jsx(O,{children:`No entry yet on ${i}. Please click "+" button to add`}):""]}),s&&e.jsx(H,{className:"add-input-button-space",children:e.jsx(f,{id:`expand-${i}-inputs`,buttonType:"button",text:"+",onClick:u,className:"add-input-entry"})})]}),e.jsx(re,{id:o,hasSubmit:j,submitText:$,handleSubmit:k,hasReset:C,resetText:y,handleReset:N,hasCancel:E,cancelText:v,handleCancel:D}),e.jsx(me,{className:"children-container",children:q})]}),be=a=>{const i=/^#([0-9A-Fa-f]{3}){1,2}$/,s=/^rgb(a)?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/;return i.test(a)||s.test(a)||CSS.supports("color",a)},x=a=>{if(!be(a))throw new Error(`Invalid color: ${a}`);return a},he={mobile:"320px",tablet:"768px",desktop:"992px",largeDesktop:"1200px",largerDesktop:"1400px"},G={name:"light",colors:{text:x("#333446"),bg:x("#EEEEEE"),blue:x("#7F8CAA"),blue2:x("#80A6FF"),teal:x("#5b8280ff"),teal2:x("#AEEAE7"),gray:x("#AEAEAE"),information:x("#202234"),success:x("#123524"),warning:x("#F2C265"),error:x("#990000")}},I={name:"dark",colors:{bg:x("#333446"),text:x("#EEEEEE"),blue:x("#80A6FF"),blue2:x("#7F8CAA"),teal:x("#AEEAE7"),teal2:x("#5b8280ff"),gray:x("#D0D0DD"),information:x("#C9E6F0"),success:x("#9EDF9C"),warning:x("#FCFFC1"),error:x("#FAD4D4")}},L=F.createContext({}),ue=({children:a,initialTheme:i=G,secondTheme:s=I})=>{const[o,m]=F.useState(i),r=()=>{m(d=>d===i?s:i)};return e.jsx(L.Provider,{value:{currentTheme:o,toggleTheme:r},children:e.jsx(c.ThemeProvider,{theme:o,children:a})})},ge=()=>F.useContext(L);exports.DynamicForm=xe;exports.ThemeContext=L;exports.ThemeContextProvider=ue;exports.breakpoints=he;exports.darkTheme=I;exports.lightTheme=G;exports.useTheme=ge;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as u, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import q, { forwardRef as J, createContext as K, useState as Q, useContext as V } from "react";
|
|
3
|
-
import
|
|
3
|
+
import c, { ThemeProvider as X } from "styled-components";
|
|
4
4
|
const e = {
|
|
5
5
|
fonts: {
|
|
6
6
|
secondary: "Raleway",
|
|
@@ -32,7 +32,7 @@ const e = {
|
|
|
32
32
|
thin: "0.0625rem",
|
|
33
33
|
light: "0.125rem"
|
|
34
34
|
}
|
|
35
|
-
}, Y =
|
|
35
|
+
}, Y = c.button`
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
38
|
justify-content: center;
|
|
@@ -58,15 +58,15 @@ const e = {
|
|
|
58
58
|
& .button-icon-text-space svg {
|
|
59
59
|
max-width: 100%;
|
|
60
60
|
}
|
|
61
|
-
`, Z =
|
|
61
|
+
`, Z = c.div`
|
|
62
62
|
width: 100%;
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: row;
|
|
65
65
|
align-items: center;
|
|
66
66
|
justify-content: center;
|
|
67
|
-
`, _ =
|
|
67
|
+
`, _ = c.img`
|
|
68
68
|
maxwidth: 100%;
|
|
69
|
-
`, ee =
|
|
69
|
+
`, ee = c.span`
|
|
70
70
|
font-size: ${e.fontSize.xsmall};
|
|
71
71
|
font-weight: ${e.fontWeight.medium};
|
|
72
72
|
font-family: ${e.fonts.tertiary}, ${e.fonts.fallback};
|
|
@@ -75,39 +75,39 @@ const e = {
|
|
|
75
75
|
justify-content: center;
|
|
76
76
|
`, x = ({
|
|
77
77
|
onClick: t,
|
|
78
|
-
id:
|
|
79
|
-
buttonType:
|
|
78
|
+
id: i,
|
|
79
|
+
buttonType: o,
|
|
80
80
|
source: l,
|
|
81
|
-
svg:
|
|
82
|
-
alt:
|
|
83
|
-
text:
|
|
84
|
-
className:
|
|
81
|
+
svg: m,
|
|
82
|
+
alt: r = "alt-button-icon",
|
|
83
|
+
text: d = "",
|
|
84
|
+
className: h = "",
|
|
85
85
|
dataAttributes: f = {}
|
|
86
86
|
}) => /* @__PURE__ */ a(
|
|
87
87
|
Y,
|
|
88
88
|
{
|
|
89
89
|
onClick: t,
|
|
90
|
-
id:
|
|
91
|
-
type:
|
|
92
|
-
className:
|
|
90
|
+
id: i,
|
|
91
|
+
type: o,
|
|
92
|
+
className: h,
|
|
93
93
|
...f,
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
-
l ? /* @__PURE__ */ a(_, { src: l, alt:
|
|
96
|
-
|
|
94
|
+
children: /* @__PURE__ */ u(Z, { className: "button-icon-text-space", children: [
|
|
95
|
+
l ? /* @__PURE__ */ a(_, { src: l, alt: r }) : m || "",
|
|
96
|
+
d && /* @__PURE__ */ a(ee, { id: i, children: d })
|
|
97
97
|
] })
|
|
98
98
|
}
|
|
99
|
-
), te =
|
|
99
|
+
), te = c.div`
|
|
100
100
|
display: flex;
|
|
101
101
|
flex-direction: column;
|
|
102
102
|
align-items: left;
|
|
103
103
|
width: 100%;
|
|
104
104
|
margin-bottom: ${e.spacing.small};
|
|
105
|
-
`, ae =
|
|
105
|
+
`, ae = c.div`
|
|
106
106
|
display: flex;
|
|
107
107
|
gap: ${e.spacing.xsmall};
|
|
108
108
|
width: auto;
|
|
109
109
|
height: auto;
|
|
110
|
-
`, ne =
|
|
110
|
+
`, ne = c.label`
|
|
111
111
|
display: flex;
|
|
112
112
|
align-items: center;
|
|
113
113
|
justify-content:center;
|
|
@@ -124,37 +124,37 @@ const e = {
|
|
|
124
124
|
height: auto;
|
|
125
125
|
object-fit: contain;
|
|
126
126
|
}
|
|
127
|
-
`, oe =
|
|
127
|
+
`, oe = c.div`
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
130
130
|
align-items: center;
|
|
131
131
|
justify-content: center;
|
|
132
132
|
gap: ${e.spacing.xxxsmall};
|
|
133
|
-
`, le =
|
|
133
|
+
`, le = c.span`
|
|
134
134
|
font-weight: ${e.fontWeight.bolder};
|
|
135
|
-
`, ie =
|
|
135
|
+
`, ie = c.div`
|
|
136
136
|
max-width: 100%;
|
|
137
137
|
display: flex;
|
|
138
138
|
align-items: center;
|
|
139
|
-
`, se =
|
|
139
|
+
`, se = c.span`
|
|
140
140
|
font-weight: ${e.fontWeight.light};
|
|
141
141
|
`, B = ({
|
|
142
142
|
htmlFor: t,
|
|
143
|
-
textLabel:
|
|
144
|
-
additionalInfo:
|
|
143
|
+
textLabel: i,
|
|
144
|
+
additionalInfo: o,
|
|
145
145
|
$labelFlexDirection: l,
|
|
146
|
-
source:
|
|
147
|
-
svg:
|
|
148
|
-
className:
|
|
149
|
-
children:
|
|
150
|
-
}) => /* @__PURE__ */
|
|
151
|
-
(
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */ a(le, { className: "main-label", children:
|
|
154
|
-
|
|
146
|
+
source: m,
|
|
147
|
+
svg: r,
|
|
148
|
+
className: d,
|
|
149
|
+
children: h
|
|
150
|
+
}) => /* @__PURE__ */ u(ne, { htmlFor: t, className: d, $labelFlexDirection: l, children: [
|
|
151
|
+
(m || r) && /* @__PURE__ */ a(ie, { className: "label-icon-container", children: m ? /* @__PURE__ */ a("img", { src: m, alt: `${t}-label-icon` }) : r || "" }),
|
|
152
|
+
/* @__PURE__ */ u(oe, { className: "label-text-container", children: [
|
|
153
|
+
/* @__PURE__ */ a(le, { className: "main-label", children: i }),
|
|
154
|
+
o && /* @__PURE__ */ a(se, { className: "additional-info", children: o })
|
|
155
155
|
] }),
|
|
156
|
-
|
|
157
|
-
] }), W =
|
|
156
|
+
h
|
|
157
|
+
] }), W = c.input`
|
|
158
158
|
display: flex;
|
|
159
159
|
place-content: center;
|
|
160
160
|
font-family: ${e.fonts.secondary}, ${e.fonts.fallback};
|
|
@@ -171,7 +171,7 @@ const e = {
|
|
|
171
171
|
&:focus{
|
|
172
172
|
border: ${e.borderThickness.thin} solid ${({ theme: t }) => t.colors.teal};
|
|
173
173
|
}
|
|
174
|
-
`, ce =
|
|
174
|
+
`, ce = c.textarea`
|
|
175
175
|
display: flex;
|
|
176
176
|
place-content: center;
|
|
177
177
|
border: ${e.borderThickness.light} solid ${({ theme: t }) => t.colors.text};
|
|
@@ -184,71 +184,71 @@ const e = {
|
|
|
184
184
|
max-width: 100%;
|
|
185
185
|
resize: none;
|
|
186
186
|
overflow-y: auto;
|
|
187
|
-
`, D = J((t,
|
|
188
|
-
const { type:
|
|
189
|
-
if (
|
|
187
|
+
`, D = J((t, i) => {
|
|
188
|
+
const { type: o, id: l, onChange: m, isRequired: r, dataAttributes: d, disabled: h, className: f } = t;
|
|
189
|
+
if (o === "textarea") {
|
|
190
190
|
const { rows: y = 5, cols: F = 30, value: v, ...A } = t;
|
|
191
191
|
return /* @__PURE__ */ a(
|
|
192
192
|
ce,
|
|
193
193
|
{
|
|
194
194
|
id: l,
|
|
195
|
-
onChange:
|
|
195
|
+
onChange: m,
|
|
196
196
|
value: v,
|
|
197
197
|
rows: y,
|
|
198
198
|
cols: F,
|
|
199
|
-
...
|
|
199
|
+
...d,
|
|
200
200
|
className: f,
|
|
201
|
-
ref:
|
|
202
|
-
disabled:
|
|
203
|
-
required:
|
|
201
|
+
ref: i,
|
|
202
|
+
disabled: h,
|
|
203
|
+
required: r
|
|
204
204
|
}
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
|
-
if (
|
|
207
|
+
if (o === "radio" || o === "checkbox") {
|
|
208
208
|
const { checked: y, ...F } = t;
|
|
209
209
|
return /* @__PURE__ */ a(
|
|
210
210
|
W,
|
|
211
211
|
{
|
|
212
|
-
ref:
|
|
212
|
+
ref: i,
|
|
213
213
|
type: "checkbox",
|
|
214
214
|
id: l,
|
|
215
215
|
checked: y,
|
|
216
|
-
onChange:
|
|
217
|
-
disabled:
|
|
216
|
+
onChange: m,
|
|
217
|
+
disabled: h,
|
|
218
218
|
className: f,
|
|
219
|
-
...
|
|
219
|
+
...d
|
|
220
220
|
}
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const g = t, { value: N, pattern: p, placeholderText: C, ...w } = g;
|
|
224
224
|
return /* @__PURE__ */ a(
|
|
225
225
|
W,
|
|
226
226
|
{
|
|
227
227
|
id: l,
|
|
228
228
|
name: l,
|
|
229
229
|
placeholder: C,
|
|
230
|
-
onChange:
|
|
230
|
+
onChange: m,
|
|
231
231
|
value: N,
|
|
232
|
-
type:
|
|
233
|
-
required:
|
|
234
|
-
...
|
|
232
|
+
type: o,
|
|
233
|
+
required: r,
|
|
234
|
+
...d,
|
|
235
235
|
className: f,
|
|
236
|
-
ref:
|
|
237
|
-
disabled:
|
|
236
|
+
ref: i,
|
|
237
|
+
disabled: h,
|
|
238
238
|
pattern: p
|
|
239
239
|
}
|
|
240
240
|
);
|
|
241
241
|
}), E = (t) => {
|
|
242
242
|
const {
|
|
243
|
-
className:
|
|
244
|
-
type:
|
|
243
|
+
className: i,
|
|
244
|
+
type: o,
|
|
245
245
|
id: l,
|
|
246
|
-
textLabel:
|
|
247
|
-
additionalInfo:
|
|
248
|
-
$labelFlexDirection:
|
|
249
|
-
svg:
|
|
246
|
+
textLabel: m,
|
|
247
|
+
additionalInfo: r,
|
|
248
|
+
$labelFlexDirection: d,
|
|
249
|
+
svg: h,
|
|
250
250
|
labelClass: f,
|
|
251
|
-
onChange:
|
|
251
|
+
onChange: g,
|
|
252
252
|
isRequired: N,
|
|
253
253
|
dataAttributes: p,
|
|
254
254
|
inputClass: C,
|
|
@@ -262,10 +262,10 @@ const e = {
|
|
|
262
262
|
idx: T,
|
|
263
263
|
children: j
|
|
264
264
|
} = t;
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
const { rows: n = 5, cols:
|
|
265
|
+
return /* @__PURE__ */ u(te, { className: `${i} ${l.replace("#", "")}-label-input-container`, children: [
|
|
266
|
+
o !== "radio" && o !== "checkbox" && /* @__PURE__ */ a(B, { htmlFor: l, textLabel: m, additionalInfo: r, $labelFlexDirection: d, svg: h, className: f }),
|
|
267
|
+
o !== "radio" && o !== "checkbox" && o === "textarea" && (() => {
|
|
268
|
+
const { rows: n = 5, cols: $ = 30, value: s, ...k } = t;
|
|
269
269
|
return /* @__PURE__ */ a(
|
|
270
270
|
D,
|
|
271
271
|
{
|
|
@@ -273,10 +273,10 @@ const e = {
|
|
|
273
273
|
name: l,
|
|
274
274
|
type: "textarea",
|
|
275
275
|
isRequired: N,
|
|
276
|
-
onChange:
|
|
276
|
+
onChange: g,
|
|
277
277
|
value: s,
|
|
278
278
|
rows: n,
|
|
279
|
-
cols:
|
|
279
|
+
cols: $,
|
|
280
280
|
dataAttributes: p,
|
|
281
281
|
className: C,
|
|
282
282
|
ref: w,
|
|
@@ -284,17 +284,17 @@ const e = {
|
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
286
|
})(),
|
|
287
|
-
|
|
288
|
-
const n = t, { value:
|
|
287
|
+
o !== "radio" && o !== "checkbox" && o !== "textarea" && (() => {
|
|
288
|
+
const n = t, { value: $, pattern: s, placeholderText: k, ...L } = n;
|
|
289
289
|
return /* @__PURE__ */ a(
|
|
290
290
|
D,
|
|
291
291
|
{
|
|
292
292
|
id: l,
|
|
293
293
|
name: l,
|
|
294
294
|
placeholderText: k,
|
|
295
|
-
onChange:
|
|
296
|
-
value:
|
|
297
|
-
type:
|
|
295
|
+
onChange: g,
|
|
296
|
+
value: $,
|
|
297
|
+
type: o,
|
|
298
298
|
isRequired: N,
|
|
299
299
|
dataAttributes: p,
|
|
300
300
|
className: C,
|
|
@@ -304,9 +304,9 @@ const e = {
|
|
|
304
304
|
}
|
|
305
305
|
);
|
|
306
306
|
})(),
|
|
307
|
-
(
|
|
308
|
-
const { checked: n,
|
|
309
|
-
return /* @__PURE__ */
|
|
307
|
+
(o === "radio" || o === "checkbox") && (() => {
|
|
308
|
+
const { checked: n, ...$ } = t;
|
|
309
|
+
return /* @__PURE__ */ u(R, { children: [
|
|
310
310
|
/* @__PURE__ */ a(
|
|
311
311
|
D,
|
|
312
312
|
{
|
|
@@ -316,108 +316,110 @@ const e = {
|
|
|
316
316
|
id: l,
|
|
317
317
|
isRequired: N,
|
|
318
318
|
checked: n,
|
|
319
|
-
onChange:
|
|
319
|
+
onChange: g,
|
|
320
320
|
disabled: y,
|
|
321
321
|
className: C,
|
|
322
322
|
dataAttributes: p
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
/* @__PURE__ */ a(B, { htmlFor: l, textLabel:
|
|
325
|
+
/* @__PURE__ */ a(B, { htmlFor: l, textLabel: m, additionalInfo: r, $labelFlexDirection: d, svg: h, className: f })
|
|
326
326
|
] });
|
|
327
327
|
})(),
|
|
328
|
-
F && /* @__PURE__ */
|
|
328
|
+
F && /* @__PURE__ */ u(ae, { className: "input-edit-buttons", children: [
|
|
329
329
|
/* @__PURE__ */ a(x, { id: `editable-${l}-edit-btn`, svg: v, buttonType: "button", onClick: A, className: `edit-radio-${T}`, dataAttributes: p }),
|
|
330
330
|
/* @__PURE__ */ a(x, { id: `editable-${l}-delete-btn`, svg: S, buttonType: "button", onClick: z, className: `delete-radio-${T}`, dataAttributes: p })
|
|
331
331
|
] }),
|
|
332
332
|
j
|
|
333
333
|
] });
|
|
334
|
-
}, re =
|
|
334
|
+
}, re = c.fieldset`
|
|
335
335
|
padding: 0;
|
|
336
336
|
height: auto;
|
|
337
337
|
width: 100%;
|
|
338
|
-
`, de =
|
|
338
|
+
`, de = c.legend`
|
|
339
339
|
font-size: ${e.spacing.medium};
|
|
340
340
|
font-weight: 500;
|
|
341
341
|
margin: 0 auto ${e.spacing.small} auto;
|
|
342
342
|
text-align: center;
|
|
343
343
|
font-family: ${e.fonts.secondary}, ${e.fonts.fallback};
|
|
344
|
-
`, me =
|
|
344
|
+
`, me = c.div`
|
|
345
345
|
display: flex;
|
|
346
346
|
flex-direction: column;
|
|
347
347
|
align-items: flex-start;
|
|
348
348
|
width: 100%;
|
|
349
349
|
margin-bottom: ${e.spacing.small};
|
|
350
|
-
`, be =
|
|
350
|
+
`, be = c.div`
|
|
351
351
|
display: flex;
|
|
352
352
|
justify-content: space-between;
|
|
353
353
|
width: 100%;
|
|
354
354
|
`, P = ({
|
|
355
355
|
legend: t,
|
|
356
|
+
fieldsetIndex: i = null,
|
|
356
357
|
idx: o,
|
|
357
|
-
editableInformation:
|
|
358
|
-
onChangeOfEditableOption:
|
|
359
|
-
onClickSaveEdit:
|
|
358
|
+
editableInformation: l,
|
|
359
|
+
onChangeOfEditableOption: m,
|
|
360
|
+
onClickSaveEdit: r,
|
|
360
361
|
onClickCancelEdit: d,
|
|
361
|
-
onClickDeleteEntry:
|
|
362
|
-
}) => /* @__PURE__ */
|
|
362
|
+
onClickDeleteEntry: h
|
|
363
|
+
}) => /* @__PURE__ */ u(re, { className: "editable-option-fieldset", children: [
|
|
363
364
|
/* @__PURE__ */ a(de, { children: `${t} ${o + 1}` }),
|
|
364
|
-
|
|
365
|
+
l?.map((f, g) => /* @__PURE__ */ a(me, { className: "editable-option-container", children: /* @__PURE__ */ a(
|
|
365
366
|
D,
|
|
366
367
|
{
|
|
367
|
-
id: `editable-option-${
|
|
368
|
-
name: `editable-option-${
|
|
369
|
-
placeholderText:
|
|
370
|
-
onChange:
|
|
371
|
-
value:
|
|
372
|
-
type:
|
|
368
|
+
id: `editable-option-${g}`,
|
|
369
|
+
name: `editable-option-${g}`,
|
|
370
|
+
placeholderText: f.name.charAt(0).toUpperCase() + f.name.slice(1),
|
|
371
|
+
onChange: m,
|
|
372
|
+
value: f.info,
|
|
373
|
+
type: f.type,
|
|
373
374
|
isRequired: !0,
|
|
374
375
|
className: "editable-option",
|
|
375
376
|
dataAttributes: {
|
|
376
|
-
"data-index":
|
|
377
|
-
"data-
|
|
377
|
+
"data-index": g,
|
|
378
|
+
"data-fieldsetidx": i,
|
|
379
|
+
"data-key": f.info
|
|
378
380
|
}
|
|
379
381
|
}
|
|
380
|
-
) }, `${
|
|
381
|
-
/* @__PURE__ */
|
|
382
|
-
/* @__PURE__ */ a(x, { id: `editable-option-${o}-submit`, buttonType: "button", text: "Save", onClick:
|
|
383
|
-
/* @__PURE__ */ a(x, { id: `editable-option-${o}-cancel`, buttonType: "button", text: "Cancel", onClick: d, className: "editable-option-btn", dataAttributes: { "data-index": o } }),
|
|
384
|
-
/* @__PURE__ */ a(x, { id: `editable-option-${o}-delete`, buttonType: "button", text: "Delete", onClick:
|
|
382
|
+
) }, `${f.name}-${g}`)),
|
|
383
|
+
/* @__PURE__ */ u(be, { className: "editable-option-button-space", children: [
|
|
384
|
+
/* @__PURE__ */ a(x, { id: `editable-option-${o}-submit`, buttonType: "button", text: "Save", onClick: r, className: "editable-option-btn", dataAttributes: { "data-index": o, "data-fieldsetIndex": i } }),
|
|
385
|
+
/* @__PURE__ */ a(x, { id: `editable-option-${o}-cancel`, buttonType: "button", text: "Cancel", onClick: d, className: "editable-option-btn", dataAttributes: { "data-index": o, "data-fieldsetIndex": i } }),
|
|
386
|
+
/* @__PURE__ */ a(x, { id: `editable-option-${o}-delete`, buttonType: "button", text: "Delete", onClick: h, className: "editable-option-btn", dataAttributes: { "data-index": o, "data-fieldsetIndex": i } })
|
|
385
387
|
] })
|
|
386
|
-
] }), he =
|
|
388
|
+
] }), he = c.div`
|
|
387
389
|
display: flex;
|
|
388
390
|
justify-content: space-between;
|
|
389
391
|
max-width: 100%;
|
|
390
392
|
`, fe = ({
|
|
391
393
|
id: t,
|
|
392
|
-
hasSubmit:
|
|
393
|
-
submitText:
|
|
394
|
+
hasSubmit: i,
|
|
395
|
+
submitText: o,
|
|
394
396
|
handleSubmit: l,
|
|
395
|
-
hasReset:
|
|
396
|
-
resetText:
|
|
397
|
-
handleReset:
|
|
398
|
-
hasCancel:
|
|
397
|
+
hasReset: m,
|
|
398
|
+
resetText: r,
|
|
399
|
+
handleReset: d,
|
|
400
|
+
hasCancel: h,
|
|
399
401
|
cancelText: f,
|
|
400
|
-
handleCancel:
|
|
401
|
-
}) => /* @__PURE__ */
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
] }), M =
|
|
402
|
+
handleCancel: g
|
|
403
|
+
}) => /* @__PURE__ */ u(he, { className: "form-main-button-container", children: [
|
|
404
|
+
i && /* @__PURE__ */ a(x, { id: `form-${t}-submit`, buttonType: "submit", text: o ?? "Submit", onClick: l, className: "submit-form-btn" }),
|
|
405
|
+
m && /* @__PURE__ */ a(x, { id: `form-${t}-edit`, buttonType: "button", text: r ?? "Reset", onClick: d, className: "reset-form-btn" }),
|
|
406
|
+
h && /* @__PURE__ */ a(x, { id: `form-${t}-cancel`, buttonType: "button", text: f ?? "Cancel", onClick: g, className: "cancel-form-btn" })
|
|
407
|
+
] }), M = c.legend`
|
|
406
408
|
font-size: ${e.spacing.medium};
|
|
407
409
|
font-weight: 500;
|
|
408
410
|
margin-bottom: ${e.spacing.small};
|
|
409
411
|
width: auto;
|
|
410
412
|
text-align: center;
|
|
411
413
|
font-family: ${e.fonts.secondary}, ${e.fonts.fallback};
|
|
412
|
-
`, U =
|
|
414
|
+
`, U = c.fieldset`
|
|
413
415
|
padding: 0;
|
|
414
416
|
height: auto;
|
|
415
417
|
width: 100%;
|
|
416
|
-
`, H =
|
|
418
|
+
`, H = c.div`
|
|
417
419
|
padding: ${e.spacing.small};
|
|
418
420
|
height: auto;
|
|
419
421
|
width: 100%;
|
|
420
|
-
`,
|
|
422
|
+
`, O = c.div`
|
|
421
423
|
display: flex;
|
|
422
424
|
justify-content: center;
|
|
423
425
|
align-items: center;
|
|
@@ -426,16 +428,16 @@ const e = {
|
|
|
426
428
|
font-family: ${e.fonts.tertiary}, ${e.fonts.fallback};
|
|
427
429
|
font-size: ${e.fontSize.xsmall};
|
|
428
430
|
font-weight: ${e.fontWeight.bold};
|
|
429
|
-
`,
|
|
431
|
+
`, ue = c.form`
|
|
430
432
|
display: flex;
|
|
431
433
|
flex-direction: column;
|
|
432
434
|
align-items: center;
|
|
433
435
|
width: 100%;
|
|
434
|
-
`,
|
|
436
|
+
`, G = c.div`
|
|
435
437
|
display: flex;
|
|
436
438
|
justify-content: space-between;
|
|
437
439
|
width: 100%;
|
|
438
|
-
`,
|
|
440
|
+
`, ge = c.div`
|
|
439
441
|
width: 100%;
|
|
440
442
|
display: flex;
|
|
441
443
|
flex-direction: column;
|
|
@@ -443,15 +445,15 @@ const e = {
|
|
|
443
445
|
justify-content: center;
|
|
444
446
|
`, Ce = ({
|
|
445
447
|
fieldsets: t = null,
|
|
446
|
-
legendText:
|
|
447
|
-
isExpandable:
|
|
448
|
+
legendText: i,
|
|
449
|
+
isExpandable: o,
|
|
448
450
|
id: l,
|
|
449
|
-
formInputs:
|
|
450
|
-
labelAndInputContainerClass:
|
|
451
|
-
labelClass:
|
|
452
|
-
inputClass:
|
|
451
|
+
formInputs: m,
|
|
452
|
+
labelAndInputContainerClass: r,
|
|
453
|
+
labelClass: d,
|
|
454
|
+
inputClass: h,
|
|
453
455
|
onChangeOfEditableOption: f,
|
|
454
|
-
handleAddingInputEntry:
|
|
456
|
+
handleAddingInputEntry: g,
|
|
455
457
|
hasSubmit: N = !1,
|
|
456
458
|
submitText: p,
|
|
457
459
|
handleSubmit: C,
|
|
@@ -464,20 +466,20 @@ const e = {
|
|
|
464
466
|
handleSubmitForm: z,
|
|
465
467
|
className: T,
|
|
466
468
|
children: j
|
|
467
|
-
}) => /* @__PURE__ */
|
|
468
|
-
t ? t.map((n,
|
|
469
|
-
/* @__PURE__ */
|
|
469
|
+
}) => /* @__PURE__ */ u(ue, { id: `${l}-form`, className: T, onSubmit: z, children: [
|
|
470
|
+
t ? t.map((n, $) => /* @__PURE__ */ u(H, { className: `${l}-fieldset-wrapper`, children: [
|
|
471
|
+
/* @__PURE__ */ u(U, { id: `${l}-form-fieldset-${$}`, className: `${n.legend}-fieldset`, children: [
|
|
470
472
|
n.legend && /* @__PURE__ */ a(M, { className: `${n.legend}-legend`, children: n.legend }),
|
|
471
|
-
n.inputs.length !== 0 ? n.inputs.map((s, k) => /* @__PURE__ */
|
|
473
|
+
n.inputs.length !== 0 ? n.inputs.map((s, k) => /* @__PURE__ */ u(q.Fragment, { children: [
|
|
472
474
|
s.type === "textarea" && /* @__PURE__ */ a(
|
|
473
475
|
E,
|
|
474
476
|
{
|
|
475
477
|
...s,
|
|
476
478
|
id: s.id ?? `${n.legend}-input`,
|
|
477
|
-
labelClass:
|
|
478
|
-
inputClass:
|
|
479
|
+
labelClass: d,
|
|
480
|
+
inputClass: h,
|
|
479
481
|
idx: k,
|
|
480
|
-
className: `${
|
|
482
|
+
className: `${r} ${s?.uniqueClass}`
|
|
481
483
|
}
|
|
482
484
|
),
|
|
483
485
|
s.type !== "textarea" && s.type !== "radio" && s.type !== "checkbox" && /* @__PURE__ */ a(
|
|
@@ -485,28 +487,29 @@ const e = {
|
|
|
485
487
|
{
|
|
486
488
|
...s,
|
|
487
489
|
id: s.id ?? `${n.legend}-input`,
|
|
488
|
-
labelClass:
|
|
489
|
-
inputClass:
|
|
490
|
+
labelClass: d,
|
|
491
|
+
inputClass: h,
|
|
490
492
|
idx: k,
|
|
491
|
-
className: `${
|
|
493
|
+
className: `${r} ${s?.uniqueClass}`
|
|
492
494
|
}
|
|
493
495
|
),
|
|
494
|
-
(s.type === "radio" || s.type === "checkbox") && /* @__PURE__ */
|
|
496
|
+
(s.type === "radio" || s.type === "checkbox") && /* @__PURE__ */ u(R, { children: [
|
|
495
497
|
/* @__PURE__ */ a(
|
|
496
498
|
E,
|
|
497
499
|
{
|
|
498
500
|
...s,
|
|
499
501
|
id: s.id ?? `${n.legend}-input`,
|
|
500
|
-
labelClass:
|
|
501
|
-
inputClass:
|
|
502
|
+
labelClass: d,
|
|
503
|
+
inputClass: h,
|
|
502
504
|
idx: k,
|
|
503
|
-
className: `${
|
|
505
|
+
className: `${r} ${s?.uniqueClass}`
|
|
504
506
|
}
|
|
505
507
|
),
|
|
506
508
|
s.editing && s.isEditable && /* @__PURE__ */ a(
|
|
507
509
|
P,
|
|
508
510
|
{
|
|
509
511
|
legend: `${n.legend}`,
|
|
512
|
+
fieldsetIndex: $,
|
|
510
513
|
idx: k,
|
|
511
514
|
editableInformation: s?.editableInformation || [],
|
|
512
515
|
onChangeOfEditableOption: f,
|
|
@@ -519,52 +522,52 @@ const e = {
|
|
|
519
522
|
}
|
|
520
523
|
)
|
|
521
524
|
] })
|
|
522
|
-
] }, `form-${l}-${k}`)) : n.isExpandable ? /* @__PURE__ */ a(
|
|
525
|
+
] }, `form-${l}-${k}`)) : n.isExpandable ? /* @__PURE__ */ a(O, { children: `No entry yet on ${n.legend}. Click "+" button to add entry.` }) : ""
|
|
523
526
|
] }),
|
|
524
|
-
n.isExpandable && /* @__PURE__ */ a(
|
|
525
|
-
] }, `${n.legend}-${
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
|
|
528
|
-
!t &&
|
|
527
|
+
n.isExpandable && /* @__PURE__ */ a(G, { className: "add-input-button-space", children: /* @__PURE__ */ a(x, { id: `expand-${n.legend}-inputs`, buttonType: "button", text: "+", onClick: g, className: "add-input-entry", dataAttributes: { "data-fieldsetidx": $ } }) })
|
|
528
|
+
] }, `${n.legend}-${$}`)) : /* @__PURE__ */ u(H, { className: `${l}-fieldset-wrapper`, children: [
|
|
529
|
+
/* @__PURE__ */ u(U, { id: `${l}-form-fieldset`, className: `${i}-fieldset`, children: [
|
|
530
|
+
i && /* @__PURE__ */ a(M, { className: `${i}-legend`, children: i }),
|
|
531
|
+
!t && m && m.length !== 0 ? m.map((n, $) => /* @__PURE__ */ u(q.Fragment, { children: [
|
|
529
532
|
n.type === "textarea" && /* @__PURE__ */ a(
|
|
530
533
|
E,
|
|
531
534
|
{
|
|
532
535
|
...n,
|
|
533
|
-
id: n.id ?? `${
|
|
534
|
-
labelClass:
|
|
535
|
-
inputClass:
|
|
536
|
-
idx:
|
|
537
|
-
className: `${
|
|
536
|
+
id: n.id ?? `${i}-input`,
|
|
537
|
+
labelClass: d,
|
|
538
|
+
inputClass: h,
|
|
539
|
+
idx: $,
|
|
540
|
+
className: `${r} ${n?.uniqueClass}`
|
|
538
541
|
}
|
|
539
542
|
),
|
|
540
543
|
n.type !== "textarea" && n.type !== "radio" && n.type !== "checkbox" && /* @__PURE__ */ a(
|
|
541
544
|
E,
|
|
542
545
|
{
|
|
543
546
|
...n,
|
|
544
|
-
id: n.id ?? `${
|
|
545
|
-
labelClass:
|
|
546
|
-
inputClass:
|
|
547
|
-
idx:
|
|
548
|
-
className: `${
|
|
547
|
+
id: n.id ?? `${i}-input`,
|
|
548
|
+
labelClass: d,
|
|
549
|
+
inputClass: h,
|
|
550
|
+
idx: $,
|
|
551
|
+
className: `${r} ${n?.uniqueClass}`
|
|
549
552
|
}
|
|
550
553
|
),
|
|
551
|
-
(n.type === "radio" || n.type === "checkbox") && /* @__PURE__ */
|
|
554
|
+
(n.type === "radio" || n.type === "checkbox") && /* @__PURE__ */ u(R, { children: [
|
|
552
555
|
/* @__PURE__ */ a(
|
|
553
556
|
E,
|
|
554
557
|
{
|
|
555
558
|
...n,
|
|
556
|
-
id: n.id ?? `${
|
|
557
|
-
labelClass:
|
|
558
|
-
inputClass:
|
|
559
|
-
idx:
|
|
560
|
-
className: `${
|
|
559
|
+
id: n.id ?? `${i}-input`,
|
|
560
|
+
labelClass: d,
|
|
561
|
+
inputClass: h,
|
|
562
|
+
idx: $,
|
|
563
|
+
className: `${r} ${n?.uniqueClass}`
|
|
561
564
|
}
|
|
562
565
|
),
|
|
563
566
|
n.editing && n.isEditable && /* @__PURE__ */ a(
|
|
564
567
|
P,
|
|
565
568
|
{
|
|
566
|
-
legend: `${
|
|
567
|
-
idx:
|
|
569
|
+
legend: `${i}`,
|
|
570
|
+
idx: $,
|
|
568
571
|
editableInformation: n?.editableInformation,
|
|
569
572
|
onChangeOfEditableOption: f,
|
|
570
573
|
onClickSaveEdit: n?.onClickSave || ((s) => {
|
|
@@ -576,9 +579,9 @@ const e = {
|
|
|
576
579
|
}
|
|
577
580
|
)
|
|
578
581
|
] })
|
|
579
|
-
] }, `form-${l}-${
|
|
582
|
+
] }, `form-${l}-${$}`)) : o ? /* @__PURE__ */ a(O, { children: `No entry yet on ${i}. Please click "+" button to add` }) : ""
|
|
580
583
|
] }),
|
|
581
|
-
|
|
584
|
+
o && /* @__PURE__ */ a(G, { className: "add-input-button-space", children: /* @__PURE__ */ a(x, { id: `expand-${i}-inputs`, buttonType: "button", text: "+", onClick: g, className: "add-input-entry" }) })
|
|
582
585
|
] }),
|
|
583
586
|
/* @__PURE__ */ a(
|
|
584
587
|
fe,
|
|
@@ -595,11 +598,11 @@ const e = {
|
|
|
595
598
|
handleCancel: S
|
|
596
599
|
}
|
|
597
600
|
),
|
|
598
|
-
/* @__PURE__ */ a(
|
|
601
|
+
/* @__PURE__ */ a(ge, { className: "children-container", children: j })
|
|
599
602
|
] }), $e = (t) => {
|
|
600
|
-
const
|
|
601
|
-
return
|
|
602
|
-
},
|
|
603
|
+
const i = /^#([0-9A-Fa-f]{3}){1,2}$/, o = /^rgb(a)?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/;
|
|
604
|
+
return i.test(t) || o.test(t) || CSS.supports("color", t);
|
|
605
|
+
}, b = (t) => {
|
|
603
606
|
if (!$e(t)) throw new Error(`Invalid color: ${t}`);
|
|
604
607
|
return t;
|
|
605
608
|
}, we = {
|
|
@@ -614,46 +617,46 @@ const e = {
|
|
|
614
617
|
}, xe = {
|
|
615
618
|
name: "light",
|
|
616
619
|
colors: {
|
|
617
|
-
text:
|
|
618
|
-
bg:
|
|
619
|
-
blue:
|
|
620
|
-
blue2:
|
|
621
|
-
teal:
|
|
622
|
-
teal2:
|
|
623
|
-
gray:
|
|
624
|
-
information:
|
|
625
|
-
success:
|
|
626
|
-
warning:
|
|
627
|
-
error:
|
|
620
|
+
text: b("#333446"),
|
|
621
|
+
bg: b("#EEEEEE"),
|
|
622
|
+
blue: b("#7F8CAA"),
|
|
623
|
+
blue2: b("#80A6FF"),
|
|
624
|
+
teal: b("#5b8280ff"),
|
|
625
|
+
teal2: b("#AEEAE7"),
|
|
626
|
+
gray: b("#AEAEAE"),
|
|
627
|
+
information: b("#202234"),
|
|
628
|
+
success: b("#123524"),
|
|
629
|
+
warning: b("#F2C265"),
|
|
630
|
+
error: b("#990000")
|
|
628
631
|
}
|
|
629
632
|
}, pe = {
|
|
630
633
|
name: "dark",
|
|
631
634
|
colors: {
|
|
632
|
-
bg:
|
|
633
|
-
text:
|
|
634
|
-
blue:
|
|
635
|
-
blue2:
|
|
636
|
-
teal:
|
|
637
|
-
teal2:
|
|
638
|
-
gray:
|
|
639
|
-
information:
|
|
640
|
-
success:
|
|
641
|
-
warning:
|
|
642
|
-
error:
|
|
635
|
+
bg: b("#333446"),
|
|
636
|
+
text: b("#EEEEEE"),
|
|
637
|
+
blue: b("#80A6FF"),
|
|
638
|
+
blue2: b("#7F8CAA"),
|
|
639
|
+
teal: b("#AEEAE7"),
|
|
640
|
+
teal2: b("#5b8280ff"),
|
|
641
|
+
gray: b("#D0D0DD"),
|
|
642
|
+
information: b("#C9E6F0"),
|
|
643
|
+
success: b("#9EDF9C"),
|
|
644
|
+
warning: b("#FCFFC1"),
|
|
645
|
+
error: b("#FAD4D4")
|
|
643
646
|
}
|
|
644
|
-
},
|
|
647
|
+
}, I = K({}), Fe = ({
|
|
645
648
|
children: t,
|
|
646
|
-
initialTheme:
|
|
647
|
-
secondTheme:
|
|
649
|
+
initialTheme: i = xe,
|
|
650
|
+
secondTheme: o = pe
|
|
648
651
|
}) => {
|
|
649
|
-
const [l,
|
|
650
|
-
|
|
652
|
+
const [l, m] = Q(i), r = () => {
|
|
653
|
+
m((d) => d === i ? o : i);
|
|
651
654
|
};
|
|
652
|
-
return /* @__PURE__ */ a(
|
|
653
|
-
}, Ee = () => V(
|
|
655
|
+
return /* @__PURE__ */ a(I.Provider, { value: { currentTheme: l, toggleTheme: r }, children: /* @__PURE__ */ a(X, { theme: l, children: t }) });
|
|
656
|
+
}, Ee = () => V(I);
|
|
654
657
|
export {
|
|
655
658
|
Ce as DynamicForm,
|
|
656
|
-
|
|
659
|
+
I as ThemeContext,
|
|
657
660
|
Fe as ThemeContextProvider,
|
|
658
661
|
we as breakpoints,
|
|
659
662
|
pe as darkTheme,
|
package/dist/type/propTypes.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type ChildrenProp = {
|
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
};
|
|
10
10
|
type stringType = string | undefined;
|
|
11
|
-
type dataAttributesType = Record<string, string | number | boolean> | undefined;
|
|
11
|
+
type dataAttributesType = Record<string, string | number | boolean | null> | undefined;
|
|
12
12
|
type ButtonType = 'button' | 'submit';
|
|
13
13
|
export interface ButtonProps {
|
|
14
14
|
onClick: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
@@ -56,7 +56,7 @@ export type InputProps = GeneralInput | TextAreaInput | CheckedInput;
|
|
|
56
56
|
export interface LabelProps {
|
|
57
57
|
htmlFor?: string;
|
|
58
58
|
textLabel?: string | undefined;
|
|
59
|
-
additionalInfo
|
|
59
|
+
additionalInfo?: string | undefined;
|
|
60
60
|
$labelFlexDirection?: React.CSSProperties['flexDirection'];
|
|
61
61
|
source?: string;
|
|
62
62
|
svg?: React.ReactNode;
|
|
@@ -94,6 +94,7 @@ export interface EditableInformation {
|
|
|
94
94
|
}
|
|
95
95
|
export interface NestedEditableOptionProps {
|
|
96
96
|
legend?: string;
|
|
97
|
+
fieldsetIndex?: number | null;
|
|
97
98
|
idx: number;
|
|
98
99
|
editableInformation: EditableInformation[];
|
|
99
100
|
onChangeOfEditableOption: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propTypes.d.ts","sourceRoot":"","sources":["../../src/type/propTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,MAAM,WAAW,iBAAiB;IAC9B,YAAY,EAAE,KAAK,CAAC;IACpB,WAAW,EAAE,MAAM,IAAI,CAAC;CAC3B;AACD,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AACF,KAA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