funuicss 1.9.21 → 1.9.22
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/component/Input.jsx +26 -0
- package/css/fun.css +38 -9
- package/package.json +1 -1
package/component/Input.jsx
CHANGED
|
@@ -193,6 +193,32 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
193
193
|
rows: this.props.rows ? this.props.rows : 2
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
+
} else if (this.props.file) {
|
|
197
|
+
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
198
|
+
className: "fileInputContainer ".concat(this.props.noBorder ? 'borderless' : '')
|
|
199
|
+
}, /*#__PURE__*/external_react_default().createElement("div", null, this.props.icon ? this.props.icon : /*#__PURE__*/external_react_default().createElement("i", {
|
|
200
|
+
className: "fas icon size-big text-secondary fa-upload"
|
|
201
|
+
}), /*#__PURE__*/external_react_default().createElement("br", null), /*#__PURE__*/external_react_default().createElement("div", {
|
|
202
|
+
className: "text-secondary",
|
|
203
|
+
style: {
|
|
204
|
+
margin: "0.3rem 0"
|
|
205
|
+
}
|
|
206
|
+
}, this.props.label)), /*#__PURE__*/external_react_default().createElement("div", {
|
|
207
|
+
className: "fileInput"
|
|
208
|
+
}, this.props.button ? this.props.button : /*#__PURE__*/external_react_default().createElement("button", {
|
|
209
|
+
className: "primary button full-width"
|
|
210
|
+
}, " Upload File"), /*#__PURE__*/external_react_default().createElement("input", {
|
|
211
|
+
id: this.props.id,
|
|
212
|
+
className: "\n \n ".concat(this.props.status === "success" ? "success-input" : "", "\n ").concat(this.props.status === "warning" ? "warning-input" : "", "\n ").concat(this.props.status === "danger" ? "danger-input" : "", "\n input\n ").concat(this.props.funcss, " ").concat(this.props.flat ? "flat" : "", "\n ").concat(this.props.leftRounded ? "leftRounded" : this.props.rightRounded ? "rightRounded" : "", "\n borderedInput\n filedInput\n "),
|
|
213
|
+
onChange: this.props.onChange,
|
|
214
|
+
type: "file",
|
|
215
|
+
name: this.props.name,
|
|
216
|
+
style: {
|
|
217
|
+
borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
|
|
218
|
+
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
219
|
+
},
|
|
220
|
+
value: this.props.value
|
|
221
|
+
})));
|
|
196
222
|
} else {
|
|
197
223
|
if (this.props.bordered) {
|
|
198
224
|
return /*#__PURE__*/external_react_default().createElement("input", {
|
package/css/fun.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
--fontFamily: 'Poppins', sans-serif;
|
|
33
33
|
--smallFont: 0.8em;
|
|
34
34
|
--smallerFont: 0.7em;
|
|
35
|
-
--navHeight:
|
|
35
|
+
--navHeight: 45px !important ;
|
|
36
36
|
--borderColor:#ddd;
|
|
37
37
|
--border: 0.1rem solid var(--borderColor);
|
|
38
38
|
--inputBorder:0.12rem;
|
|
@@ -829,10 +829,11 @@ h6,
|
|
|
829
829
|
/*buttons*/
|
|
830
830
|
.button {
|
|
831
831
|
border: none;
|
|
832
|
-
|
|
833
|
-
padding: 0.5rem;
|
|
832
|
+
padding: 0.35rem;
|
|
834
833
|
background-color: inherit;
|
|
835
834
|
border-radius: 0.2rem;
|
|
835
|
+
transition: filter 0.5s linear;
|
|
836
|
+
|
|
836
837
|
}
|
|
837
838
|
.button:hover {
|
|
838
839
|
cursor: pointer;
|
|
@@ -962,7 +963,6 @@ h6,
|
|
|
962
963
|
padding: 0.5rem 5%;
|
|
963
964
|
height: var(--navHeight);
|
|
964
965
|
gap: 2rem;
|
|
965
|
-
background-color: var(--raiseThemes);
|
|
966
966
|
}
|
|
967
967
|
#funSideBar{
|
|
968
968
|
position: fixed;
|
|
@@ -1021,11 +1021,11 @@ h6,
|
|
|
1021
1021
|
}
|
|
1022
1022
|
.navbar-link {
|
|
1023
1023
|
cursor: pointer;
|
|
1024
|
-
padding: 0.
|
|
1024
|
+
padding: 0.2rem 0.6rem;
|
|
1025
1025
|
transition: 0.2s linear;
|
|
1026
1026
|
}
|
|
1027
1027
|
.navbar-link.hover:hover {
|
|
1028
|
-
background-color: var(--
|
|
1028
|
+
background-color: var(--lighter);
|
|
1029
1029
|
border-radius: 0.3rem;
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
@@ -1284,6 +1284,35 @@ h6,
|
|
|
1284
1284
|
background-color: var(--raiseThemes);
|
|
1285
1285
|
color: var(--bd-color);
|
|
1286
1286
|
}
|
|
1287
|
+
.fileInputContainer{
|
|
1288
|
+
border: var(--inputBorder) dashed var(--borderColor);
|
|
1289
|
+
border-radius: 0.5rem;
|
|
1290
|
+
padding: 2rem;
|
|
1291
|
+
display: flex;
|
|
1292
|
+
flex-direction: column;
|
|
1293
|
+
gap: 1em;
|
|
1294
|
+
align-items: stretch;
|
|
1295
|
+
justify-content: center;
|
|
1296
|
+
text-align: center;
|
|
1297
|
+
margin: 1rem 0;
|
|
1298
|
+
transition: 0.1s linear;
|
|
1299
|
+
}
|
|
1300
|
+
.fileInputContainer:hover{
|
|
1301
|
+
outline: 0.2rem solid var(--inputOutline);
|
|
1302
|
+
border: var(--inputBorder) dashed var(--primaryColor);
|
|
1303
|
+
}
|
|
1304
|
+
.fileInput{
|
|
1305
|
+
position: relative;
|
|
1306
|
+
}
|
|
1307
|
+
.filedInput{
|
|
1308
|
+
position: absolute;
|
|
1309
|
+
top: 0;
|
|
1310
|
+
left: 0;
|
|
1311
|
+
width: 100%;
|
|
1312
|
+
height: 100%;
|
|
1313
|
+
opacity: 0;
|
|
1314
|
+
cursor: pointer;
|
|
1315
|
+
}
|
|
1287
1316
|
.input.success-input{
|
|
1288
1317
|
border-bottom:var(--inputBorder) solid var(--success) !important;
|
|
1289
1318
|
}
|
|
@@ -1305,6 +1334,7 @@ input , select{height: var(--inputHeight);}
|
|
|
1305
1334
|
transition: 0.1s linear;
|
|
1306
1335
|
padding: 0.5rem;
|
|
1307
1336
|
}
|
|
1337
|
+
.borderless{border: none !important;outline: none !important;}
|
|
1308
1338
|
.success-input.borderedInput{
|
|
1309
1339
|
border: var(--inputBorder) solid var(--success) !important;
|
|
1310
1340
|
}
|
|
@@ -1344,10 +1374,8 @@ input , select{height: var(--inputHeight);}
|
|
|
1344
1374
|
}
|
|
1345
1375
|
.icon-container {
|
|
1346
1376
|
position: relative;
|
|
1347
|
-
transform: translateX(0.3rem);
|
|
1348
1377
|
}
|
|
1349
|
-
.icon-container .leftIcon
|
|
1350
|
-
.rightIcon {
|
|
1378
|
+
.icon-container .leftIcon,.rightIcon {
|
|
1351
1379
|
height: calc(100%) !important;
|
|
1352
1380
|
width: 2rem;
|
|
1353
1381
|
display: flex;
|
|
@@ -1377,6 +1405,7 @@ input , select{height: var(--inputHeight);}
|
|
|
1377
1405
|
bottom: 0;
|
|
1378
1406
|
overflow: hidden;
|
|
1379
1407
|
min-width: 1.9rem;
|
|
1408
|
+
|
|
1380
1409
|
}
|
|
1381
1410
|
.icon-container.left .input {
|
|
1382
1411
|
padding-left: 2.2rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "funuicss",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.22",
|
|
4
4
|
"description": "React/Next.js component UI Library for creating Easy and good looking websites with fewer lines of code.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": ["funui" , "React Component", "Next Component", "react" , "react and next component Library"],
|