@kbgarcia8/react-dynamic-form 1.1.26 → 1.1.27

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.
@@ -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,wHAQ5B,yBAAyB,4CA6B1B,CAAA;AAED,eAAe,oBAAoB,CAAC"}
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,4CA6B1B,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,4CAkJ1C,CAAA;AAGD,eAAe,WAAW,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"),r=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=r.button`
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:n})=>n.colors.blue||"blue"};
6
- color: ${({theme:n})=>n.colors.bg||"white"};
7
- border: ${t.borderThickness.light} solid ${({theme:n})=>n.colors.text||"black"};
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=r.div`
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=r.img`
33
+ `,Q=c.img`
34
34
  maxwidth: 100%;
35
- `,V=r.span`
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:n,id:s,buttonType:l,source:o,svg:x,alt:d="alt-button-icon",text:m="",className:c="",dataAttributes:h={}})=>e.jsx(J,{onClick:n,id:s,type:l,className:c,...h,children:e.jsxs(K,{className:"button-icon-text-space",children:[o?e.jsx(Q,{src:o,alt:d}):x||"",m&&e.jsx(V,{id:s,children:m})]})}),X=r.div`
42
+ `,f=({onClick:a,id:l,buttonType:s,source:o,svg:m,alt:r="alt-button-icon",text:d="",className:b="",dataAttributes:h={}})=>e.jsx(J,{onClick:a,id:l,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:l,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=r.div`
48
+ `,Y=c.div`
49
49
  display: flex;
50
50
  gap: ${t.spacing.xsmall};
51
51
  width: auto;
52
52
  height: auto;
53
- `,Z=r.label`
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: ${n=>n.$labelFlexDirection||"column"};
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
- `,_=r.div`
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=r.span`
76
+ `,ee=c.span`
77
77
  font-weight: ${t.fontWeight.bolder};
78
- `,te=r.div`
78
+ `,te=c.div`
79
79
  max-width: 100%;
80
80
  display: flex;
81
81
  align-items: center;
82
- `,ne=r.span`
82
+ `,ae=c.span`
83
83
  font-weight: ${t.fontWeight.light};
84
- `,R=({htmlFor:n,textLabel:s,additionalInfo:l,$labelFlexDirection:o,source:x,svg:d,className:m,children:c})=>e.jsxs(Z,{htmlFor:n,className:m,$labelFlexDirection:o,children:[(x||d)&&e.jsx(te,{className:"label-icon-container",children:x?e.jsx("img",{src:x,alt:`${n}-label-icon`}):d||""}),e.jsxs(_,{className:"label-text-container",children:[e.jsx(ee,{className:"main-label",children:s}),l&&e.jsx(ne,{className:"additional-info",children:l})]}),c]}),B=r.input`
84
+ `,R=({htmlFor:a,textLabel:l,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:l}),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:n})=>n.colors.teal};
99
+ border: ${t.borderThickness.thin} solid ${({theme:a})=>a.colors.teal};
100
100
  }
101
- `,ae=r.textarea`
101
+ `,ne=c.textarea`
102
102
  display: flex;
103
103
  place-content: center;
104
- border: ${t.borderThickness.light} solid ${({theme:n})=>n.colors.text};
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((n,s)=>{const{type:l,id:o,onChange:x,isRequired:d,dataAttributes:m,disabled:c,className:h}=n;if(l==="textarea"){const{rows:y=5,cols:N=30,value:E,...v}=n;return e.jsx(ae,{id:o,onChange:x,value:E,rows:y,cols:N,...m,className:h,ref:s,disabled:c,required:d})}if(l==="radio"||l==="checkbox"){const{checked:y,...N}=n;return e.jsx(B,{ref:s,type:"checkbox",id:o,checked:y,onChange:x,disabled:c,className:h,...m})}const g=n,{value:j,pattern:$,placeholderText:k,...C}=g;return e.jsx(B,{id:o,name:o,placeholder:k,onChange:x,value:j,type:l,required:d,...m,className:h,ref:s,disabled:c,pattern:$})}),w=n=>{const{className:s,type:l,id:o,textLabel:x,additionalInfo:d,$labelFlexDirection:m,svg:c,labelClass:h,onChange:g,isRequired:j,dataAttributes:$,inputClass:k,ref:C,disabled:y,isEditable:N,editIcon:E,onClickEdit:v,deleteIcon:D,onClickDelete:S,idx:T,children:q}=n;return e.jsxs(X,{className:`${s} ${o.replace("#","")}-label-input-container`,children:[l!=="radio"&&l!=="checkbox"&&e.jsx(R,{htmlFor:o,textLabel:x,additionalInfo:d,$labelFlexDirection:m,svg:c,className:h}),l!=="radio"&&l!=="checkbox"&&l==="textarea"&&(()=>{const{rows:a=5,cols:u=30,value:i,...p}=n;return e.jsx(A,{id:o,name:o,type:"textarea",isRequired:j,onChange:g,value:i,rows:a,cols:u,dataAttributes:$,className:k,ref:C,disabled:y})})(),l!=="radio"&&l!=="checkbox"&&l!=="textarea"&&(()=>{const a=n,{value:u,pattern:i,placeholderText:p,...z}=a;return e.jsx(A,{id:o,name:o,placeholderText:p,onChange:g,value:u,type:l,isRequired:j,dataAttributes:$,className:k,ref:C,disabled:y,pattern:i})})(),(l==="radio"||l==="checkbox")&&(()=>{const{checked:a,...u}=n;return e.jsxs(e.Fragment,{children:[e.jsx(A,{ref:C,type:"checkbox",name:o,id:o,isRequired:j,checked:a,onChange:g,disabled:y,className:k,dataAttributes:$}),e.jsx(R,{htmlFor:o,textLabel:x,additionalInfo:d,$labelFlexDirection:m,svg:c,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=r.fieldset`
114
+ `,A=F.forwardRef((a,l)=>{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:l,disabled:b,required:r})}if(s==="radio"||s==="checkbox"){const{checked:y,...N}=a;return e.jsx(B,{ref:l,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:l,disabled:b,pattern:$})}),w=a=>{const{className:l,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:`${l} ${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:i,...p}=a;return e.jsx(A,{id:o,name:o,type:"textarea",isRequired:j,onChange:u,value:i,rows:n,cols:g,dataAttributes:$,className:k,ref:C,disabled:y})})(),s!=="radio"&&s!=="checkbox"&&s!=="textarea"&&(()=>{const n=a,{value:g,pattern:i,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:i})})(),(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=r.legend`
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
- `,le=r.div`
124
+ `,le=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
- `,ie=r.div`
130
+ `,ie=c.div`
131
131
  display: flex;
132
132
  justify-content: space-between;
133
133
  width: 100%;
134
- `,P=({legend:n,idx:s,editableInformation:l,onChangeOfEditableOption:o,onClickSaveEdit:x,onClickCancelEdit:d,onClickDeleteEntry:m})=>e.jsxs(se,{className:"editable-option-fieldset",children:[e.jsx(oe,{children:`${n} ${s+1}`}),l?.map((c,h)=>e.jsx(le,{className:"editable-option-container",children:e.jsx(A,{id:`editable-option-${h}`,name:`editable-option-${h}`,placeholderText:c.name.charAt(0).toUpperCase()+c.name.slice(1),onChange:o,value:c.info,type:c.type,isRequired:!0,className:"editable-option",dataAttributes:{"data-index":h,"data-key":c.info}})},`${c.name}-${h}`)),e.jsxs(ie,{className:"editable-option-button-space",children:[e.jsx(f,{id:`editable-option-${s}-submit`,buttonType:"button",text:"Save",onClick:x,className:"editable-option-btn",dataAttributes:{"data-index":s}}),e.jsx(f,{id:`editable-option-${s}-cancel`,buttonType:"button",text:"Cancel",onClick:d,className:"editable-option-btn",dataAttributes:{"data-index":s}}),e.jsx(f,{id:`editable-option-${s}-delete`,buttonType:"button",text:"Delete",onClick:m,className:"editable-option-btn",dataAttributes:{"data-index":s}})]})]}),ce=r.div`
134
+ `,P=({legend:a,fieldsetIndex:l=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(le,{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-key":h.info}})},`${h.name}-${u}`)),e.jsxs(ie,{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":l}}),e.jsx(f,{id:`editable-option-${s}-cancel`,buttonType:"button",text:"Cancel",onClick:d,className:"editable-option-btn",dataAttributes:{"data-index":s,"data-fieldsetIndex":l}}),e.jsx(f,{id:`editable-option-${s}-delete`,buttonType:"button",text:"Delete",onClick:b,className:"editable-option-btn",dataAttributes:{"data-index":s,"data-fieldsetIndex":l}})]})]}),ce=c.div`
135
135
  display: flex;
136
136
  justify-content: space-between;
137
137
  max-width: 100%;
138
- `,re=({id:n,hasSubmit:s,submitText:l,handleSubmit:o,hasReset:x,resetText:d,handleReset:m,hasCancel:c,cancelText:h,handleCancel:g})=>e.jsxs(ce,{className:"form-main-button-container",children:[s&&e.jsx(f,{id:`form-${n}-submit`,buttonType:"submit",text:l??"Submit",onClick:o,className:"submit-form-btn"}),x&&e.jsx(f,{id:`form-${n}-edit`,buttonType:"button",text:d??"Reset",onClick:m,className:"reset-form-btn"}),c&&e.jsx(f,{id:`form-${n}-cancel`,buttonType:"button",text:h??"Cancel",onClick:g,className:"cancel-form-btn"})]}),W=r.legend`
138
+ `,re=({id:a,hasSubmit:l,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:[l&&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=r.fieldset`
145
+ `,M=c.fieldset`
146
146
  padding: 0;
147
147
  height: auto;
148
148
  width: 100%;
149
- `,U=r.div`
149
+ `,U=c.div`
150
150
  padding: ${t.spacing.small};
151
151
  height: auto;
152
152
  width: 100%;
153
- `,O=r.div`
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=r.form`
162
+ `,de=c.form`
163
163
  display: flex;
164
164
  flex-direction: column;
165
165
  align-items: center;
166
166
  width: 100%;
167
- `,H=r.div`
167
+ `,H=c.div`
168
168
  display: flex;
169
169
  justify-content: space-between;
170
170
  width: 100%;
171
- `,me=r.div`
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:n=null,legendText:s,isExpandable:l,id:o,formInputs:x,labelAndInputContainerClass:d,labelClass:m,inputClass:c,onChangeOfEditableOption:h,handleAddingInputEntry:g,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:[n?n.map((a,u)=>e.jsxs(U,{className:`${o}-fieldset-wrapper`,children:[e.jsxs(M,{id:`${o}-form-fieldset-${u}`,className:`${a.legend}-fieldset`,children:[a.legend&&e.jsx(W,{className:`${a.legend}-legend`,children:a.legend}),a.inputs.length!==0?a.inputs.map((i,p)=>e.jsxs(F.Fragment,{children:[i.type==="textarea"&&e.jsx(w,{...i,id:i.id??`${a.legend}-input`,labelClass:m,inputClass:c,idx:p,className:`${d} ${i?.uniqueClass}`}),i.type!=="textarea"&&i.type!=="radio"&&i.type!=="checkbox"&&e.jsx(w,{...i,id:i.id??`${a.legend}-input`,labelClass:m,inputClass:c,idx:p,className:`${d} ${i?.uniqueClass}`}),(i.type==="radio"||i.type==="checkbox")&&e.jsxs(e.Fragment,{children:[e.jsx(w,{...i,id:i.id??`${a.legend}-input`,labelClass:m,inputClass:c,idx:p,className:`${d} ${i?.uniqueClass}`}),i.editing&&i.isEditable&&e.jsx(P,{legend:`${a.legend}`,idx:p,editableInformation:i?.editableInformation||[],onChangeOfEditableOption:h,onClickSaveEdit:i?.onClickSave||(z=>{}),onClickCancelEdit:i?.onClickCancel||(z=>{}),onClickDeleteEntry:i?.onClickDelete||(z=>{})})]})]},`form-${o}-${p}`)):a.isExpandable?e.jsx(O,{children:`No entry yet on ${a.legend}. Click "+" button to add entry.`}):""]}),a.isExpandable&&e.jsx(H,{className:"add-input-button-space",children:e.jsx(f,{id:`expand-${a.legend}-inputs`,buttonType:"button",text:"+",onClick:g,className:"add-input-entry"})})]},`${a.legend}-${u}`)):e.jsxs(U,{className:`${o}-fieldset-wrapper`,children:[e.jsxs(M,{id:`${o}-form-fieldset`,className:`${s}-fieldset`,children:[s&&e.jsx(W,{className:`${s}-legend`,children:s}),!n&&x&&x.length!==0?x.map((a,u)=>e.jsxs(F.Fragment,{children:[a.type==="textarea"&&e.jsx(w,{...a,id:a.id??`${s}-input`,labelClass:m,inputClass:c,idx:u,className:`${d} ${a?.uniqueClass}`}),a.type!=="textarea"&&a.type!=="radio"&&a.type!=="checkbox"&&e.jsx(w,{...a,id:a.id??`${s}-input`,labelClass:m,inputClass:c,idx:u,className:`${d} ${a?.uniqueClass}`}),(a.type==="radio"||a.type==="checkbox")&&e.jsxs(e.Fragment,{children:[e.jsx(w,{...a,id:a.id??`${s}-input`,labelClass:m,inputClass:c,idx:u,className:`${d} ${a?.uniqueClass}`}),a.editing&&a.isEditable&&e.jsx(P,{legend:`${s}`,idx:u,editableInformation:a?.editableInformation,onChangeOfEditableOption:h,onClickSaveEdit:a?.onClickSave||(i=>{}),onClickCancelEdit:a?.onClickCancel||(i=>{}),onClickDeleteEntry:a?.onClickDelete||(i=>{})})]})]},`form-${o}-${u}`)):l?e.jsx(O,{children:`No entry yet on ${s}. Please click "+" button to add`}):""]}),l&&e.jsx(H,{className:"add-input-button-space",children:e.jsx(f,{id:`expand-${s}-inputs`,buttonType:"button",text:"+",onClick:g,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=n=>{const s=/^#([0-9A-Fa-f]{3}){1,2}$/,l=/^rgb(a)?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/;return s.test(n)||l.test(n)||CSS.supports("color",n)},b=n=>{if(!be(n))throw new Error(`Invalid color: ${n}`);return n},he={mobile:"320px",tablet:"768px",desktop:"992px",largeDesktop:"1200px",largerDesktop:"1400px"},I={name:"light",colors:{text:b("#333446"),bg:b("#EEEEEE"),blue:b("#7F8CAA"),blue2:b("#80A6FF"),teal:b("#5b8280ff"),teal2:b("#AEEAE7"),gray:b("#AEAEAE"),information:b("#202234"),success:b("#123524"),warning:b("#F2C265"),error:b("#990000")}},G={name:"dark",colors:{bg:b("#333446"),text:b("#EEEEEE"),blue:b("#80A6FF"),blue2:b("#7F8CAA"),teal:b("#AEEAE7"),teal2:b("#5b8280ff"),gray:b("#D0D0DD"),information:b("#C9E6F0"),success:b("#9EDF9C"),warning:b("#FCFFC1"),error:b("#FAD4D4")}},L=F.createContext({}),ue=({children:n,initialTheme:s=I,secondTheme:l=G})=>{const[o,x]=F.useState(s),d=()=>{x(m=>m===s?l:s)};return e.jsx(L.Provider,{value:{currentTheme:o,toggleTheme:d},children:e.jsx(r.ThemeProvider,{theme:o,children:n})})},ge=()=>F.useContext(L);exports.DynamicForm=xe;exports.ThemeContext=L;exports.ThemeContextProvider=ue;exports.breakpoints=he;exports.darkTheme=G;exports.lightTheme=I;exports.useTheme=ge;
177
+ `,xe=({fieldsets:a=null,legendText:l,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((i,p)=>e.jsxs(F.Fragment,{children:[i.type==="textarea"&&e.jsx(w,{...i,id:i.id??`${n.legend}-input`,labelClass:d,inputClass:b,idx:p,className:`${r} ${i?.uniqueClass}`}),i.type!=="textarea"&&i.type!=="radio"&&i.type!=="checkbox"&&e.jsx(w,{...i,id:i.id??`${n.legend}-input`,labelClass:d,inputClass:b,idx:p,className:`${r} ${i?.uniqueClass}`}),(i.type==="radio"||i.type==="checkbox")&&e.jsxs(e.Fragment,{children:[e.jsx(w,{...i,id:i.id??`${n.legend}-input`,labelClass:d,inputClass:b,idx:p,className:`${r} ${i?.uniqueClass}`}),i.editing&&i.isEditable&&e.jsx(P,{legend:`${n.legend}`,fieldsetIndex:g,idx:p,editableInformation:i?.editableInformation||[],onChangeOfEditableOption:h,onClickSaveEdit:i?.onClickSave||(z=>{}),onClickCancelEdit:i?.onClickCancel||(z=>{}),onClickDeleteEntry:i?.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:`${l}-fieldset`,children:[l&&e.jsx(W,{className:`${l}-legend`,children:l}),!a&&m&&m.length!==0?m.map((n,g)=>e.jsxs(F.Fragment,{children:[n.type==="textarea"&&e.jsx(w,{...n,id:n.id??`${l}-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??`${l}-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??`${l}-input`,labelClass:d,inputClass:b,idx:g,className:`${r} ${n?.uniqueClass}`}),n.editing&&n.isEditable&&e.jsx(P,{legend:`${l}`,idx:g,editableInformation:n?.editableInformation,onChangeOfEditableOption:h,onClickSaveEdit:n?.onClickSave||(i=>{}),onClickCancelEdit:n?.onClickCancel||(i=>{}),onClickDeleteEntry:n?.onClickDelete||(i=>{})})]})]},`form-${o}-${g}`)):s?e.jsx(O,{children:`No entry yet on ${l}. Please click "+" button to add`}):""]}),s&&e.jsx(H,{className:"add-input-button-space",children:e.jsx(f,{id:`expand-${l}-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 l=/^#([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 l.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"},I={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")}},G={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:l=I,secondTheme:s=G})=>{const[o,m]=F.useState(l),r=()=>{m(d=>d===l?s:l)};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=G;exports.lightTheme=I;exports.useTheme=ge;
@@ -1,6 +1,6 @@
1
- import { jsx as a, jsxs as g, Fragment as R } from "react/jsx-runtime";
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 r, { ThemeProvider as X } from "styled-components";
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 = r.button`
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 = r.div`
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
- `, _ = r.img`
67
+ `, _ = c.img`
68
68
  maxwidth: 100%;
69
- `, ee = r.span`
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: o,
79
- buttonType: i,
78
+ id: i,
79
+ buttonType: o,
80
80
  source: l,
81
- svg: b,
82
- alt: d = "alt-button-icon",
83
- text: m = "",
84
- className: c = "",
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: o,
91
- type: i,
92
- className: c,
90
+ id: i,
91
+ type: o,
92
+ className: h,
93
93
  ...f,
94
- children: /* @__PURE__ */ g(Z, { className: "button-icon-text-space", children: [
95
- l ? /* @__PURE__ */ a(_, { src: l, alt: d }) : b || "",
96
- m && /* @__PURE__ */ a(ee, { id: o, children: m })
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 = r.div`
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 = r.div`
105
+ `, ae = c.div`
106
106
  display: flex;
107
107
  gap: ${e.spacing.xsmall};
108
108
  width: auto;
109
109
  height: auto;
110
- `, ne = r.label`
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 = r.div`
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 = r.span`
133
+ `, le = c.span`
134
134
  font-weight: ${e.fontWeight.bolder};
135
- `, ie = r.div`
135
+ `, ie = c.div`
136
136
  max-width: 100%;
137
137
  display: flex;
138
138
  align-items: center;
139
- `, se = r.span`
139
+ `, se = c.span`
140
140
  font-weight: ${e.fontWeight.light};
141
141
  `, B = ({
142
142
  htmlFor: t,
143
- textLabel: o,
144
- additionalInfo: i,
143
+ textLabel: i,
144
+ additionalInfo: o,
145
145
  $labelFlexDirection: l,
146
- source: b,
147
- svg: d,
148
- className: m,
149
- children: c
150
- }) => /* @__PURE__ */ g(ne, { htmlFor: t, className: m, $labelFlexDirection: l, children: [
151
- (b || d) && /* @__PURE__ */ a(ie, { className: "label-icon-container", children: b ? /* @__PURE__ */ a("img", { src: b, alt: `${t}-label-icon` }) : d || "" }),
152
- /* @__PURE__ */ g(oe, { className: "label-text-container", children: [
153
- /* @__PURE__ */ a(le, { className: "main-label", children: o }),
154
- i && /* @__PURE__ */ a(se, { className: "additional-info", children: i })
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
- c
157
- ] }), W = r.input`
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 = r.textarea`
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, o) => {
188
- const { type: i, id: l, onChange: b, isRequired: d, dataAttributes: m, disabled: c, className: f } = t;
189
- if (i === "textarea") {
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: b,
195
+ onChange: m,
196
196
  value: v,
197
197
  rows: y,
198
198
  cols: F,
199
- ...m,
199
+ ...d,
200
200
  className: f,
201
- ref: o,
202
- disabled: c,
203
- required: d
201
+ ref: i,
202
+ disabled: h,
203
+ required: r
204
204
  }
205
205
  );
206
206
  }
207
- if (i === "radio" || i === "checkbox") {
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: o,
212
+ ref: i,
213
213
  type: "checkbox",
214
214
  id: l,
215
215
  checked: y,
216
- onChange: b,
217
- disabled: c,
216
+ onChange: m,
217
+ disabled: h,
218
218
  className: f,
219
- ...m
219
+ ...d
220
220
  }
221
221
  );
222
222
  }
223
- const $ = t, { value: N, pattern: p, placeholderText: C, ...w } = $;
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: b,
230
+ onChange: m,
231
231
  value: N,
232
- type: i,
233
- required: d,
234
- ...m,
232
+ type: o,
233
+ required: r,
234
+ ...d,
235
235
  className: f,
236
- ref: o,
237
- disabled: c,
236
+ ref: i,
237
+ disabled: h,
238
238
  pattern: p
239
239
  }
240
240
  );
241
241
  }), E = (t) => {
242
242
  const {
243
- className: o,
244
- type: i,
243
+ className: i,
244
+ type: o,
245
245
  id: l,
246
- textLabel: b,
247
- additionalInfo: d,
248
- $labelFlexDirection: m,
249
- svg: c,
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__ */ g(te, { className: `${o} ${l.replace("#", "")}-label-input-container`, children: [
266
- i !== "radio" && i !== "checkbox" && /* @__PURE__ */ a(B, { htmlFor: l, textLabel: b, additionalInfo: d, $labelFlexDirection: m, svg: c, className: f }),
267
- i !== "radio" && i !== "checkbox" && i === "textarea" && (() => {
268
- const { rows: n = 5, cols: u = 30, value: s, ...k } = t;
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: u,
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
- i !== "radio" && i !== "checkbox" && i !== "textarea" && (() => {
288
- const n = t, { value: u, pattern: s, placeholderText: k, ...L } = n;
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: u,
297
- type: i,
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
- (i === "radio" || i === "checkbox") && (() => {
308
- const { checked: n, ...u } = t;
309
- return /* @__PURE__ */ g(R, { children: [
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,109 @@ 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: b, additionalInfo: d, $labelFlexDirection: m, svg: c, className: f })
325
+ /* @__PURE__ */ a(B, { htmlFor: l, textLabel: m, additionalInfo: r, $labelFlexDirection: d, svg: h, className: f })
326
326
  ] });
327
327
  })(),
328
- F && /* @__PURE__ */ g(ae, { className: "input-edit-buttons", children: [
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 = r.fieldset`
334
+ }, re = c.fieldset`
335
335
  padding: 0;
336
336
  height: auto;
337
337
  width: 100%;
338
- `, de = r.legend`
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 = r.div`
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 = r.div`
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: i,
358
- onChangeOfEditableOption: l,
359
- onClickSaveEdit: b,
358
+ editableInformation: l,
359
+ onChangeOfEditableOption: m,
360
+ onClickSaveEdit: r,
360
361
  onClickCancelEdit: d,
361
- onClickDeleteEntry: m
362
- }) => /* @__PURE__ */ g(re, { className: "editable-option-fieldset", children: [
362
+ onClickDeleteEntry: h
363
+ }) => /* @__PURE__ */ u(re, { className: "editable-option-fieldset", children: [
363
364
  /* @__PURE__ */ a(de, { children: `${t} ${o + 1}` }),
364
- i?.map((c, f) => /* @__PURE__ */ a(me, { className: "editable-option-container", children: /* @__PURE__ */ a(
365
+ l?.map((f, g) => /* @__PURE__ */ a(me, { className: "editable-option-container", children: /* @__PURE__ */ a(
365
366
  D,
366
367
  {
367
- id: `editable-option-${f}`,
368
- name: `editable-option-${f}`,
369
- placeholderText: c.name.charAt(0).toUpperCase() + c.name.slice(1),
370
- onChange: l,
371
- value: c.info,
372
- type: c.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": f,
377
- "data-key": c.info
377
+ "data-index": g,
378
+ "data-key": f.info
378
379
  }
379
380
  }
380
- ) }, `${c.name}-${f}`)),
381
- /* @__PURE__ */ g(be, { className: "editable-option-button-space", children: [
382
- /* @__PURE__ */ a(x, { id: `editable-option-${o}-submit`, buttonType: "button", text: "Save", onClick: b, className: "editable-option-btn", dataAttributes: { "data-index": o } }),
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: m, className: "editable-option-btn", dataAttributes: { "data-index": o } })
381
+ ) }, `${f.name}-${g}`)),
382
+ /* @__PURE__ */ u(be, { className: "editable-option-button-space", children: [
383
+ /* @__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 } }),
384
+ /* @__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 } }),
385
+ /* @__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
386
  ] })
386
- ] }), he = r.div`
387
+ ] }), he = c.div`
387
388
  display: flex;
388
389
  justify-content: space-between;
389
390
  max-width: 100%;
390
391
  `, fe = ({
391
392
  id: t,
392
- hasSubmit: o,
393
- submitText: i,
393
+ hasSubmit: i,
394
+ submitText: o,
394
395
  handleSubmit: l,
395
- hasReset: b,
396
- resetText: d,
397
- handleReset: m,
398
- hasCancel: c,
396
+ hasReset: m,
397
+ resetText: r,
398
+ handleReset: d,
399
+ hasCancel: h,
399
400
  cancelText: f,
400
- handleCancel: $
401
- }) => /* @__PURE__ */ g(he, { className: "form-main-button-container", children: [
402
- o && /* @__PURE__ */ a(x, { id: `form-${t}-submit`, buttonType: "submit", text: i ?? "Submit", onClick: l, className: "submit-form-btn" }),
403
- b && /* @__PURE__ */ a(x, { id: `form-${t}-edit`, buttonType: "button", text: d ?? "Reset", onClick: m, className: "reset-form-btn" }),
404
- c && /* @__PURE__ */ a(x, { id: `form-${t}-cancel`, buttonType: "button", text: f ?? "Cancel", onClick: $, className: "cancel-form-btn" })
405
- ] }), M = r.legend`
401
+ handleCancel: g
402
+ }) => /* @__PURE__ */ u(he, { className: "form-main-button-container", children: [
403
+ i && /* @__PURE__ */ a(x, { id: `form-${t}-submit`, buttonType: "submit", text: o ?? "Submit", onClick: l, className: "submit-form-btn" }),
404
+ m && /* @__PURE__ */ a(x, { id: `form-${t}-edit`, buttonType: "button", text: r ?? "Reset", onClick: d, className: "reset-form-btn" }),
405
+ h && /* @__PURE__ */ a(x, { id: `form-${t}-cancel`, buttonType: "button", text: f ?? "Cancel", onClick: g, className: "cancel-form-btn" })
406
+ ] }), M = c.legend`
406
407
  font-size: ${e.spacing.medium};
407
408
  font-weight: 500;
408
409
  margin-bottom: ${e.spacing.small};
409
410
  width: auto;
410
411
  text-align: center;
411
412
  font-family: ${e.fonts.secondary}, ${e.fonts.fallback};
412
- `, U = r.fieldset`
413
+ `, U = c.fieldset`
413
414
  padding: 0;
414
415
  height: auto;
415
416
  width: 100%;
416
- `, H = r.div`
417
+ `, H = c.div`
417
418
  padding: ${e.spacing.small};
418
419
  height: auto;
419
420
  width: 100%;
420
- `, I = r.div`
421
+ `, I = c.div`
421
422
  display: flex;
422
423
  justify-content: center;
423
424
  align-items: center;
@@ -426,16 +427,16 @@ const e = {
426
427
  font-family: ${e.fonts.tertiary}, ${e.fonts.fallback};
427
428
  font-size: ${e.fontSize.xsmall};
428
429
  font-weight: ${e.fontWeight.bold};
429
- `, ge = r.form`
430
+ `, ue = c.form`
430
431
  display: flex;
431
432
  flex-direction: column;
432
433
  align-items: center;
433
434
  width: 100%;
434
- `, O = r.div`
435
+ `, O = c.div`
435
436
  display: flex;
436
437
  justify-content: space-between;
437
438
  width: 100%;
438
- `, ue = r.div`
439
+ `, ge = c.div`
439
440
  width: 100%;
440
441
  display: flex;
441
442
  flex-direction: column;
@@ -443,15 +444,15 @@ const e = {
443
444
  justify-content: center;
444
445
  `, Ce = ({
445
446
  fieldsets: t = null,
446
- legendText: o,
447
- isExpandable: i,
447
+ legendText: i,
448
+ isExpandable: o,
448
449
  id: l,
449
- formInputs: b,
450
- labelAndInputContainerClass: d,
451
- labelClass: m,
452
- inputClass: c,
450
+ formInputs: m,
451
+ labelAndInputContainerClass: r,
452
+ labelClass: d,
453
+ inputClass: h,
453
454
  onChangeOfEditableOption: f,
454
- handleAddingInputEntry: $,
455
+ handleAddingInputEntry: g,
455
456
  hasSubmit: N = !1,
456
457
  submitText: p,
457
458
  handleSubmit: C,
@@ -464,20 +465,20 @@ const e = {
464
465
  handleSubmitForm: z,
465
466
  className: T,
466
467
  children: j
467
- }) => /* @__PURE__ */ g(ge, { id: `${l}-form`, className: T, onSubmit: z, children: [
468
- t ? t.map((n, u) => /* @__PURE__ */ g(H, { className: `${l}-fieldset-wrapper`, children: [
469
- /* @__PURE__ */ g(U, { id: `${l}-form-fieldset-${u}`, className: `${n.legend}-fieldset`, children: [
468
+ }) => /* @__PURE__ */ u(ue, { id: `${l}-form`, className: T, onSubmit: z, children: [
469
+ t ? t.map((n, $) => /* @__PURE__ */ u(H, { className: `${l}-fieldset-wrapper`, children: [
470
+ /* @__PURE__ */ u(U, { id: `${l}-form-fieldset-${$}`, className: `${n.legend}-fieldset`, children: [
470
471
  n.legend && /* @__PURE__ */ a(M, { className: `${n.legend}-legend`, children: n.legend }),
471
- n.inputs.length !== 0 ? n.inputs.map((s, k) => /* @__PURE__ */ g(q.Fragment, { children: [
472
+ n.inputs.length !== 0 ? n.inputs.map((s, k) => /* @__PURE__ */ u(q.Fragment, { children: [
472
473
  s.type === "textarea" && /* @__PURE__ */ a(
473
474
  E,
474
475
  {
475
476
  ...s,
476
477
  id: s.id ?? `${n.legend}-input`,
477
- labelClass: m,
478
- inputClass: c,
478
+ labelClass: d,
479
+ inputClass: h,
479
480
  idx: k,
480
- className: `${d} ${s?.uniqueClass}`
481
+ className: `${r} ${s?.uniqueClass}`
481
482
  }
482
483
  ),
483
484
  s.type !== "textarea" && s.type !== "radio" && s.type !== "checkbox" && /* @__PURE__ */ a(
@@ -485,28 +486,29 @@ const e = {
485
486
  {
486
487
  ...s,
487
488
  id: s.id ?? `${n.legend}-input`,
488
- labelClass: m,
489
- inputClass: c,
489
+ labelClass: d,
490
+ inputClass: h,
490
491
  idx: k,
491
- className: `${d} ${s?.uniqueClass}`
492
+ className: `${r} ${s?.uniqueClass}`
492
493
  }
493
494
  ),
494
- (s.type === "radio" || s.type === "checkbox") && /* @__PURE__ */ g(R, { children: [
495
+ (s.type === "radio" || s.type === "checkbox") && /* @__PURE__ */ u(R, { children: [
495
496
  /* @__PURE__ */ a(
496
497
  E,
497
498
  {
498
499
  ...s,
499
500
  id: s.id ?? `${n.legend}-input`,
500
- labelClass: m,
501
- inputClass: c,
501
+ labelClass: d,
502
+ inputClass: h,
502
503
  idx: k,
503
- className: `${d} ${s?.uniqueClass}`
504
+ className: `${r} ${s?.uniqueClass}`
504
505
  }
505
506
  ),
506
507
  s.editing && s.isEditable && /* @__PURE__ */ a(
507
508
  P,
508
509
  {
509
510
  legend: `${n.legend}`,
511
+ fieldsetIndex: $,
510
512
  idx: k,
511
513
  editableInformation: s?.editableInformation || [],
512
514
  onChangeOfEditableOption: f,
@@ -521,50 +523,50 @@ const e = {
521
523
  ] })
522
524
  ] }, `form-${l}-${k}`)) : n.isExpandable ? /* @__PURE__ */ a(I, { children: `No entry yet on ${n.legend}. Click "+" button to add entry.` }) : ""
523
525
  ] }),
524
- n.isExpandable && /* @__PURE__ */ a(O, { className: "add-input-button-space", children: /* @__PURE__ */ a(x, { id: `expand-${n.legend}-inputs`, buttonType: "button", text: "+", onClick: $, className: "add-input-entry" }) })
525
- ] }, `${n.legend}-${u}`)) : /* @__PURE__ */ g(H, { className: `${l}-fieldset-wrapper`, children: [
526
- /* @__PURE__ */ g(U, { id: `${l}-form-fieldset`, className: `${o}-fieldset`, children: [
527
- o && /* @__PURE__ */ a(M, { className: `${o}-legend`, children: o }),
528
- !t && b && b.length !== 0 ? b.map((n, u) => /* @__PURE__ */ g(q.Fragment, { children: [
526
+ n.isExpandable && /* @__PURE__ */ a(O, { 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": $ } }) })
527
+ ] }, `${n.legend}-${$}`)) : /* @__PURE__ */ u(H, { className: `${l}-fieldset-wrapper`, children: [
528
+ /* @__PURE__ */ u(U, { id: `${l}-form-fieldset`, className: `${i}-fieldset`, children: [
529
+ i && /* @__PURE__ */ a(M, { className: `${i}-legend`, children: i }),
530
+ !t && m && m.length !== 0 ? m.map((n, $) => /* @__PURE__ */ u(q.Fragment, { children: [
529
531
  n.type === "textarea" && /* @__PURE__ */ a(
530
532
  E,
531
533
  {
532
534
  ...n,
533
- id: n.id ?? `${o}-input`,
534
- labelClass: m,
535
- inputClass: c,
536
- idx: u,
537
- className: `${d} ${n?.uniqueClass}`
535
+ id: n.id ?? `${i}-input`,
536
+ labelClass: d,
537
+ inputClass: h,
538
+ idx: $,
539
+ className: `${r} ${n?.uniqueClass}`
538
540
  }
539
541
  ),
540
542
  n.type !== "textarea" && n.type !== "radio" && n.type !== "checkbox" && /* @__PURE__ */ a(
541
543
  E,
542
544
  {
543
545
  ...n,
544
- id: n.id ?? `${o}-input`,
545
- labelClass: m,
546
- inputClass: c,
547
- idx: u,
548
- className: `${d} ${n?.uniqueClass}`
546
+ id: n.id ?? `${i}-input`,
547
+ labelClass: d,
548
+ inputClass: h,
549
+ idx: $,
550
+ className: `${r} ${n?.uniqueClass}`
549
551
  }
550
552
  ),
551
- (n.type === "radio" || n.type === "checkbox") && /* @__PURE__ */ g(R, { children: [
553
+ (n.type === "radio" || n.type === "checkbox") && /* @__PURE__ */ u(R, { children: [
552
554
  /* @__PURE__ */ a(
553
555
  E,
554
556
  {
555
557
  ...n,
556
- id: n.id ?? `${o}-input`,
557
- labelClass: m,
558
- inputClass: c,
559
- idx: u,
560
- className: `${d} ${n?.uniqueClass}`
558
+ id: n.id ?? `${i}-input`,
559
+ labelClass: d,
560
+ inputClass: h,
561
+ idx: $,
562
+ className: `${r} ${n?.uniqueClass}`
561
563
  }
562
564
  ),
563
565
  n.editing && n.isEditable && /* @__PURE__ */ a(
564
566
  P,
565
567
  {
566
- legend: `${o}`,
567
- idx: u,
568
+ legend: `${i}`,
569
+ idx: $,
568
570
  editableInformation: n?.editableInformation,
569
571
  onChangeOfEditableOption: f,
570
572
  onClickSaveEdit: n?.onClickSave || ((s) => {
@@ -576,9 +578,9 @@ const e = {
576
578
  }
577
579
  )
578
580
  ] })
579
- ] }, `form-${l}-${u}`)) : i ? /* @__PURE__ */ a(I, { children: `No entry yet on ${o}. Please click "+" button to add` }) : ""
581
+ ] }, `form-${l}-${$}`)) : o ? /* @__PURE__ */ a(I, { children: `No entry yet on ${i}. Please click "+" button to add` }) : ""
580
582
  ] }),
581
- i && /* @__PURE__ */ a(O, { className: "add-input-button-space", children: /* @__PURE__ */ a(x, { id: `expand-${o}-inputs`, buttonType: "button", text: "+", onClick: $, className: "add-input-entry" }) })
583
+ o && /* @__PURE__ */ a(O, { className: "add-input-button-space", children: /* @__PURE__ */ a(x, { id: `expand-${i}-inputs`, buttonType: "button", text: "+", onClick: g, className: "add-input-entry" }) })
582
584
  ] }),
583
585
  /* @__PURE__ */ a(
584
586
  fe,
@@ -595,11 +597,11 @@ const e = {
595
597
  handleCancel: S
596
598
  }
597
599
  ),
598
- /* @__PURE__ */ a(ue, { className: "children-container", children: j })
600
+ /* @__PURE__ */ a(ge, { className: "children-container", children: j })
599
601
  ] }), $e = (t) => {
600
- const o = /^#([0-9A-Fa-f]{3}){1,2}$/, i = /^rgb(a)?\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(?:\s*,\s*(0|1|0?\.\d+))?\s*\)$/;
601
- return o.test(t) || i.test(t) || CSS.supports("color", t);
602
- }, h = (t) => {
602
+ 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*\)$/;
603
+ return i.test(t) || o.test(t) || CSS.supports("color", t);
604
+ }, b = (t) => {
603
605
  if (!$e(t)) throw new Error(`Invalid color: ${t}`);
604
606
  return t;
605
607
  }, we = {
@@ -614,42 +616,42 @@ const e = {
614
616
  }, xe = {
615
617
  name: "light",
616
618
  colors: {
617
- text: h("#333446"),
618
- bg: h("#EEEEEE"),
619
- blue: h("#7F8CAA"),
620
- blue2: h("#80A6FF"),
621
- teal: h("#5b8280ff"),
622
- teal2: h("#AEEAE7"),
623
- gray: h("#AEAEAE"),
624
- information: h("#202234"),
625
- success: h("#123524"),
626
- warning: h("#F2C265"),
627
- error: h("#990000")
619
+ text: b("#333446"),
620
+ bg: b("#EEEEEE"),
621
+ blue: b("#7F8CAA"),
622
+ blue2: b("#80A6FF"),
623
+ teal: b("#5b8280ff"),
624
+ teal2: b("#AEEAE7"),
625
+ gray: b("#AEAEAE"),
626
+ information: b("#202234"),
627
+ success: b("#123524"),
628
+ warning: b("#F2C265"),
629
+ error: b("#990000")
628
630
  }
629
631
  }, pe = {
630
632
  name: "dark",
631
633
  colors: {
632
- bg: h("#333446"),
633
- text: h("#EEEEEE"),
634
- blue: h("#80A6FF"),
635
- blue2: h("#7F8CAA"),
636
- teal: h("#AEEAE7"),
637
- teal2: h("#5b8280ff"),
638
- gray: h("#D0D0DD"),
639
- information: h("#C9E6F0"),
640
- success: h("#9EDF9C"),
641
- warning: h("#FCFFC1"),
642
- error: h("#FAD4D4")
634
+ bg: b("#333446"),
635
+ text: b("#EEEEEE"),
636
+ blue: b("#80A6FF"),
637
+ blue2: b("#7F8CAA"),
638
+ teal: b("#AEEAE7"),
639
+ teal2: b("#5b8280ff"),
640
+ gray: b("#D0D0DD"),
641
+ information: b("#C9E6F0"),
642
+ success: b("#9EDF9C"),
643
+ warning: b("#FCFFC1"),
644
+ error: b("#FAD4D4")
643
645
  }
644
646
  }, G = K({}), Fe = ({
645
647
  children: t,
646
- initialTheme: o = xe,
647
- secondTheme: i = pe
648
+ initialTheme: i = xe,
649
+ secondTheme: o = pe
648
650
  }) => {
649
- const [l, b] = Q(o), d = () => {
650
- b((m) => m === o ? i : o);
651
+ const [l, m] = Q(i), r = () => {
652
+ m((d) => d === i ? o : i);
651
653
  };
652
- return /* @__PURE__ */ a(G.Provider, { value: { currentTheme: l, toggleTheme: d }, children: /* @__PURE__ */ a(X, { theme: l, children: t }) });
654
+ return /* @__PURE__ */ a(G.Provider, { value: { currentTheme: l, toggleTheme: r }, children: /* @__PURE__ */ a(X, { theme: l, children: t }) });
653
655
  }, Ee = () => V(G);
654
656
  export {
655
657
  Ce as DynamicForm,
@@ -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: string;
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;A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BAA2B,CAAC,EAAE,MAAM,CAAC;CACxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kbgarcia8/react-dynamic-form",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "A form that can be nested with editable, expandable and flexible input-forms",
5
5
  "keywords": [
6
6
  "form",