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