@@ -122,15 +122,15 @@ const WidgetNameModal = (props) => {
122
122
props . widgetName === textInputWidget
123
123
? "pt-0"
124
124
: ""
125
- } p-[20px]`}
125
+ } p-[20px] text-base-content `}
126
126
>
127
- < div className = "form-section " >
128
- < label htmlFor = "name" style = { { fontSize : 13 } } >
127
+ < div className = "mb-[0.75rem] text-[13px] " >
128
+ < label htmlFor = "name" >
129
129
Name
130
- < span className = "text-[red] text-[13px] " > *</ span >
130
+ < span className = "text-[red]" > *</ span >
131
131
</ label >
132
132
< input
133
- className = "addUserInput "
133
+ className = "op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs "
134
134
name = "name"
135
135
value = { formdata . name }
136
136
onChange = { ( e ) => handleChange ( e ) }
@@ -140,14 +140,15 @@ const WidgetNameModal = (props) => {
140
140
{ ( props . defaultdata ?. type === textInputWidget ||
141
141
props . widgetName === textInputWidget ) && (
142
142
< >
143
- < div className = "form-section " >
143
+ < div className = "mb-[0.75rem] " >
144
144
< div className = "flex items-center gap-1" >
145
145
< label
146
146
htmlFor = "textvalidate"
147
- className = {
148
- ! props . isSubscribe && isEnableSubscription && "disabled"
149
- }
150
- style = { { fontSize : 13 } }
147
+ className = { `${
148
+ ! props . isSubscribe && isEnableSubscription
149
+ ? "bg-opacity-50 pointer-events-none"
150
+ : ""
151
+ } text-[13px]`}
151
152
>
152
153
Validation
153
154
</ label >
@@ -157,45 +158,37 @@ const WidgetNameModal = (props) => {
157
158
{ ! props . isSubscribe && isEnableSubscription && < Upgrade /> }
158
159
</ div >
159
160
< div
160
- className = {
161
- ! props . isSubscribe && isEnableSubscription && "disabled"
162
- }
163
- style = { {
164
- display : "flex" ,
165
- flexDirection : "row" ,
166
- gap : 10 ,
167
- marginBottom : "0.5rem"
168
- } }
161
+ className = { `${
162
+ ! props . isSubscribe && isEnableSubscription
163
+ ? "bg-opacity-50 pointer-events-none"
164
+ : ""
165
+ } flex flex-row gap-[10px] mb-[0.5rem]`}
169
166
>
170
- < div style = { { width : "100%" , position : " relative" } } >
167
+ < div className = "w-full relative group" >
171
168
< input
172
- className = "relative z-20 w-[87%] md:w-[92%] p-2.5 border-[1px] border-[#d1d5db] rounded-l-md outline-none text-xs"
169
+ className = "z-20 relative op-input op-input-bordered rounded-r-none op-input-sm focus:outline-none group-hover: border-base-content w-[87%] md:w-[92%] text-xs"
173
170
name = "textvalidate"
174
171
placeholder = "Enter custom regular expression"
175
172
value = { formdata . textvalidate }
176
173
onChange = { ( e ) => handleChange ( e ) }
177
174
// onBlur={() => handleBlurRegex()}
178
175
/>
179
176
< select
180
- className = "validationlist addUserInput "
177
+ className = "validationlist op-input op-input-bordered op-input-sm focus:outline-none group-hover:border-base-content w-full text-xs "
181
178
name = "textvalidate"
182
179
value = { formdata . textvalidate }
183
180
onChange = { ( e ) => handleChange ( e ) }
184
181
onBlur = { ( ) => handleBlurRegex ( ) }
185
182
>
186
183
< option
187
184
disabled = { formdata ?. textvalidate }
188
- style = { { fontSize : " 13px" } }
185
+ className = "text-[ 13px]"
189
186
>
190
187
Select...
191
188
</ option >
192
189
{ inputOpt . map ( ( data , ind ) => {
193
190
return (
194
- < option
195
- style = { { fontSize : "13px" } }
196
- key = { ind }
197
- value = { data }
198
- >
191
+ < option className = "text-[13px]" key = { ind } value = { data } >
199
192
{ data }
200
193
</ option >
201
194
) ;
@@ -205,12 +198,12 @@ const WidgetNameModal = (props) => {
205
198
</ div >
206
199
</ div >
207
200
208
- < div className = "form-section " >
209
- < label htmlFor = "name" style = { { fontSize : 13 } } >
201
+ < div className = "mb-[0.75rem] " >
202
+ < label htmlFor = "name" className = "text-[13px]" >
210
203
Default value
211
204
</ label >
212
205
< input
213
- className = "addUserInput "
206
+ className = "op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs "
214
207
name = "defaultValue"
215
208
value = { formdata . defaultValue }
216
209
onChange = { ( e ) => handledefaultChange ( e ) }
@@ -228,37 +221,22 @@ const WidgetNameModal = (props) => {
228
221
style = { { fontSize : 12 } }
229
222
>
230
223
< i
231
- className = "fas fa-exclamation-circle"
232
- style = { { color : "#fab005" , fontSize : 15 } }
233
- > </ i > { " " }
224
+ className = "fas fa-exclamation-circle text-[15px] "
225
+ style = { { color : "#fab005" } }
226
+ > </ i >
234
227
invalid default value
235
228
</ div >
236
229
) }
237
230
</ div >
238
231
</ >
239
232
) }
240
- < div className = "form-section" >
241
- < div
242
- style = { {
243
- display : "flex" ,
244
- flexDirection : "row" ,
245
- gap : 10 ,
246
- marginBottom : "0.5rem"
247
- } }
248
- >
233
+ < div className = "mb-[0.75rem]" >
234
+ < div className = "flex flex-row gap-[10px] mb-[0.5rem]" >
249
235
{ statusArr . map ( ( data , ind ) => {
250
236
return (
251
- < div
252
- key = { ind }
253
- style = { {
254
- display : "flex" ,
255
- flexDirection : "row" ,
256
- gap : 5 ,
257
- alignItems : "center"
258
- } }
259
- >
237
+ < div key = { ind } className = "flex flex-row gap-[5px] items-center" >
260
238
< input
261
- style = { { accentColor : " red" , marginRight : "10px" } }
239
+ className = "mr-[3px] accent-[ red]"
262
240
type = "radio"
263
241
name = "status"
264
242
onChange = { ( ) =>
@@ -268,45 +246,28 @@ const WidgetNameModal = (props) => {
268
246
formdata . status . toLowerCase ( ) === data . toLowerCase ( )
269
247
}
270
248
/>
271
- < div style = { { fontSize : "13px" , fontWeight : "500" } } >
272
- { data }
273
- </ div >
249
+ < div className = "text-[13px] font-medium" > { data } </ div >
274
250
</ div >
275
251
) ;
276
252
} ) }
277
253
</ div >
278
254
</ div >
279
255
{ ( props . defaultdata ?. type === textInputWidget ||
280
256
props ?. widgetName === textInputWidget ) && (
281
- < div className = "form-section " >
282
- < label htmlFor = "hint" style = { { fontSize : 13 } } >
257
+ < div className = "mb-[0.75rem] " >
258
+ < label htmlFor = "hint" className = "text-[13px]" >
283
259
Hint
284
260
</ label >
285
261
< input
286
- className = "addUserInput "
262
+ className = "op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs "
287
263
name = "hint"
288
264
value = { formdata . hint }
289
265
onChange = { ( e ) => handleChange ( e ) }
290
266
/>
291
267
</ div >
292
268
) }
293
- < div
294
- style = { {
295
- height : 1 ,
296
- backgroundColor : "#b7b3b3" ,
297
- width : "100%" ,
298
- marginBottom : "16px"
299
- } }
300
- > </ div >
301
- < button
302
- style = { {
303
- color : "white" ,
304
- padding : "5px 20px" ,
305
- backgroundColor : "#32a3ac"
306
- } }
307
- type = "submit"
308
- className = "finishBtn"
309
- >
269
+ < div className = "h-[1px] w-full mb-[16px] bg-[#b7b3b3]" > </ div >
270
+ < button type = "submit" className = "op-btn op-btn-primary" >
310
271
Save
311
272
</ button >
312
273
</ form >
0 commit comments