funuicss 1.9.21 → 1.9.23
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/CloseModal.jsx +1 -1
- package/component/Input.jsx +26 -0
- package/css/fun.css +56 -79
- package/package.json +1 -1
package/component/CloseModal.jsx
CHANGED
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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* Imports */
|
|
2
2
|
|
|
3
3
|
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");
|
|
4
|
-
|
|
4
|
+
@import url("https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css");
|
|
5
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
5
6
|
:root {
|
|
6
7
|
/* Colors */
|
|
7
8
|
--primaryColor: #0d6dfc;
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
--bd-theme:#fff;
|
|
11
12
|
--dark: #1e1e1e;
|
|
12
13
|
--lightDark: #4e4e4e66;
|
|
13
|
-
--secondaryColor: #
|
|
14
|
+
--secondaryColor: #333333;
|
|
14
15
|
--success: #48c78e;
|
|
15
16
|
--successLight:#edf7ed;
|
|
16
17
|
--warning: #dc8001cc;
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
--fontFamily: 'Poppins', sans-serif;
|
|
33
34
|
--smallFont: 0.8em;
|
|
34
35
|
--smallerFont: 0.7em;
|
|
35
|
-
--navHeight:
|
|
36
|
+
--navHeight: 45px !important ;
|
|
36
37
|
--borderColor:#ddd;
|
|
37
38
|
--border: 0.1rem solid var(--borderColor);
|
|
38
39
|
--inputBorder:0.12rem;
|
|
@@ -51,15 +52,13 @@
|
|
|
51
52
|
--mediumScreen:1000px;
|
|
52
53
|
--largeScreen: calc(var(var(--mediumScreen)) + 1px);
|
|
53
54
|
--shadowMedium:0 0.8rem 2rem 0 rgba(0, 0, 0, 0.1);
|
|
54
|
-
--card:0
|
|
55
|
+
--card:0 1rem 1rem 0 rgba(0, 0, 0, 0.2);
|
|
55
56
|
|
|
56
57
|
/* medium Screen body */
|
|
57
58
|
--midBdFontSize:0.8rem;
|
|
58
59
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
|
|
62
|
-
|
|
63
62
|
/* DarkTheme */
|
|
64
63
|
:root{
|
|
65
64
|
--raiseThemes:#FFFFFF;
|
|
@@ -829,10 +828,11 @@ h6,
|
|
|
829
828
|
/*buttons*/
|
|
830
829
|
.button {
|
|
831
830
|
border: none;
|
|
832
|
-
|
|
833
|
-
padding: 0.5rem;
|
|
831
|
+
padding: 0.35rem 0.5rem;
|
|
834
832
|
background-color: inherit;
|
|
835
833
|
border-radius: 0.2rem;
|
|
834
|
+
transition:filter 0.5s linear;
|
|
835
|
+
|
|
836
836
|
}
|
|
837
837
|
.button:hover {
|
|
838
838
|
cursor: pointer;
|
|
@@ -864,11 +864,11 @@ h6,
|
|
|
864
864
|
filter: var(--hoverable);
|
|
865
865
|
}
|
|
866
866
|
.button.smallBtn {
|
|
867
|
-
padding: 0.256rem !important;
|
|
867
|
+
padding: 0.256rem 0.4rem !important;
|
|
868
868
|
font-size: var(--smallFont) ;
|
|
869
869
|
}
|
|
870
870
|
.button.smallerBtn{
|
|
871
|
-
padding: 0.156rem !important;
|
|
871
|
+
padding: 0.156rem 0.3rem !important;
|
|
872
872
|
font-size: var(--smallerFont) ;
|
|
873
873
|
}
|
|
874
874
|
.button.bigBtn {
|
|
@@ -883,7 +883,7 @@ h6,
|
|
|
883
883
|
|
|
884
884
|
/*cards*/
|
|
885
885
|
.card {
|
|
886
|
-
box-shadow: var(--
|
|
886
|
+
box-shadow: var(--card);
|
|
887
887
|
transition: 0.3s;
|
|
888
888
|
background-color: var(--raiseThemes);
|
|
889
889
|
}
|
|
@@ -962,7 +962,6 @@ h6,
|
|
|
962
962
|
padding: 0.5rem 5%;
|
|
963
963
|
height: var(--navHeight);
|
|
964
964
|
gap: 2rem;
|
|
965
|
-
background-color: var(--raiseThemes);
|
|
966
965
|
}
|
|
967
966
|
#funSideBar{
|
|
968
967
|
position: fixed;
|
|
@@ -1021,11 +1020,11 @@ h6,
|
|
|
1021
1020
|
}
|
|
1022
1021
|
.navbar-link {
|
|
1023
1022
|
cursor: pointer;
|
|
1024
|
-
padding: 0.
|
|
1023
|
+
padding: 0.2rem 0.6rem;
|
|
1025
1024
|
transition: 0.2s linear;
|
|
1026
1025
|
}
|
|
1027
1026
|
.navbar-link.hover:hover {
|
|
1028
|
-
background-color: var(--
|
|
1027
|
+
background-color: var(--lighter);
|
|
1029
1028
|
border-radius: 0.3rem;
|
|
1030
1029
|
}
|
|
1031
1030
|
|
|
@@ -1284,6 +1283,35 @@ h6,
|
|
|
1284
1283
|
background-color: var(--raiseThemes);
|
|
1285
1284
|
color: var(--bd-color);
|
|
1286
1285
|
}
|
|
1286
|
+
.fileInputContainer{
|
|
1287
|
+
border: var(--inputBorder) dashed var(--borderColor);
|
|
1288
|
+
border-radius: 0.5rem;
|
|
1289
|
+
padding: 2rem;
|
|
1290
|
+
display: flex;
|
|
1291
|
+
flex-direction: column;
|
|
1292
|
+
gap: 1em;
|
|
1293
|
+
align-items: stretch;
|
|
1294
|
+
justify-content: center;
|
|
1295
|
+
text-align: center;
|
|
1296
|
+
margin: 1rem 0;
|
|
1297
|
+
transition: 0.1s linear;
|
|
1298
|
+
}
|
|
1299
|
+
.fileInputContainer:hover{
|
|
1300
|
+
outline: 0.2rem solid var(--inputOutline);
|
|
1301
|
+
border: var(--inputBorder) dashed var(--primaryColor);
|
|
1302
|
+
}
|
|
1303
|
+
.fileInput{
|
|
1304
|
+
position: relative;
|
|
1305
|
+
}
|
|
1306
|
+
.filedInput{
|
|
1307
|
+
position: absolute;
|
|
1308
|
+
top: 0;
|
|
1309
|
+
left: 0;
|
|
1310
|
+
width: 100%;
|
|
1311
|
+
height: 100%;
|
|
1312
|
+
opacity: 0;
|
|
1313
|
+
cursor: pointer;
|
|
1314
|
+
}
|
|
1287
1315
|
.input.success-input{
|
|
1288
1316
|
border-bottom:var(--inputBorder) solid var(--success) !important;
|
|
1289
1317
|
}
|
|
@@ -1305,6 +1333,7 @@ input , select{height: var(--inputHeight);}
|
|
|
1305
1333
|
transition: 0.1s linear;
|
|
1306
1334
|
padding: 0.5rem;
|
|
1307
1335
|
}
|
|
1336
|
+
.borderless{border: none !important;outline: none !important;}
|
|
1308
1337
|
.success-input.borderedInput{
|
|
1309
1338
|
border: var(--inputBorder) solid var(--success) !important;
|
|
1310
1339
|
}
|
|
@@ -1344,10 +1373,8 @@ input , select{height: var(--inputHeight);}
|
|
|
1344
1373
|
}
|
|
1345
1374
|
.icon-container {
|
|
1346
1375
|
position: relative;
|
|
1347
|
-
transform: translateX(0.3rem);
|
|
1348
1376
|
}
|
|
1349
|
-
.icon-container .leftIcon
|
|
1350
|
-
.rightIcon {
|
|
1377
|
+
.icon-container .leftIcon,.rightIcon {
|
|
1351
1378
|
height: calc(100%) !important;
|
|
1352
1379
|
width: 2rem;
|
|
1353
1380
|
display: flex;
|
|
@@ -1377,6 +1404,7 @@ input , select{height: var(--inputHeight);}
|
|
|
1377
1404
|
bottom: 0;
|
|
1378
1405
|
overflow: hidden;
|
|
1379
1406
|
min-width: 1.9rem;
|
|
1407
|
+
|
|
1380
1408
|
}
|
|
1381
1409
|
.icon-container.left .input {
|
|
1382
1410
|
padding-left: 2.2rem;
|
|
@@ -2091,9 +2119,10 @@ th {
|
|
|
2091
2119
|
cursor: pointer;
|
|
2092
2120
|
}
|
|
2093
2121
|
.closeModal {
|
|
2094
|
-
width: 2.
|
|
2095
|
-
height: 2.
|
|
2096
|
-
background-color: var(--
|
|
2122
|
+
width: 2.2rem;
|
|
2123
|
+
height: 2.2rem;
|
|
2124
|
+
background-color: var(--dangerLight);
|
|
2125
|
+
color: var(--danger);
|
|
2097
2126
|
display: flex;
|
|
2098
2127
|
align-items: center;
|
|
2099
2128
|
justify-content: center;
|
|
@@ -2102,15 +2131,13 @@ th {
|
|
|
2102
2131
|
top: 0;
|
|
2103
2132
|
right: 0;
|
|
2104
2133
|
transform: translate(1.25rem, -1.25rem);
|
|
2105
|
-
color: var(--white);
|
|
2106
2134
|
transition: 0.3s linear;
|
|
2135
|
+
cursor: pointer;
|
|
2136
|
+
border: 0.1rem solid var(--borderColor);
|
|
2107
2137
|
}
|
|
2108
2138
|
.closeModal:hover {
|
|
2109
|
-
|
|
2110
|
-
background-color: var(--danger);
|
|
2111
|
-
cursor: pointer;
|
|
2139
|
+
filter: brightness(90%);
|
|
2112
2140
|
}
|
|
2113
|
-
|
|
2114
2141
|
.modal-title {
|
|
2115
2142
|
padding: 0.5rem;
|
|
2116
2143
|
border-bottom: 1.5px solid var(--borderColor);
|
|
@@ -2130,6 +2157,7 @@ th {
|
|
|
2130
2157
|
max-height: calc(100vh - 200px) ;
|
|
2131
2158
|
overflow: auto;
|
|
2132
2159
|
}
|
|
2160
|
+
|
|
2133
2161
|
.modal-action {
|
|
2134
2162
|
padding: 0.7rem;
|
|
2135
2163
|
text-align: right;
|
|
@@ -2205,57 +2233,7 @@ th {
|
|
|
2205
2233
|
background-color: black;
|
|
2206
2234
|
opacity: 0.1;
|
|
2207
2235
|
}
|
|
2208
|
-
|
|
2209
|
-
.slide-panel {
|
|
2210
|
-
position: relative;
|
|
2211
|
-
overflow: hidden;
|
|
2212
|
-
}
|
|
2213
|
-
.slide-panel-content {
|
|
2214
|
-
position: absolute;
|
|
2215
|
-
top: 0;
|
|
2216
|
-
left: 0;
|
|
2217
|
-
right: 0;
|
|
2218
|
-
bottom: 0;
|
|
2219
|
-
width: 100%;
|
|
2220
|
-
height: 100%;
|
|
2221
|
-
z-index: 1;
|
|
2222
|
-
transition: transform 0.3s ease;
|
|
2223
|
-
}
|
|
2224
|
-
.slide-panel.slide-top:hover .slide-panel-content {
|
|
2225
|
-
transform: translate(0, 0);
|
|
2226
|
-
}
|
|
2227
|
-
.slide-panel.slide-top .slide-panel-content {
|
|
2228
|
-
transform: translate(0, -100%);
|
|
2229
|
-
}
|
|
2230
|
-
.slide-panel.slide-bottom:hover .slide-panel-content {
|
|
2231
|
-
transform: translate(0, 0);
|
|
2232
|
-
}
|
|
2233
|
-
.slide-panel.slide-bottom .slide-panel-content {
|
|
2234
|
-
transform: translate(0, 100%);
|
|
2235
|
-
}
|
|
2236
|
-
.slide-panel.slide-left:hover .slide-panel-content {
|
|
2237
|
-
transform: translate(0, 0);
|
|
2238
|
-
}
|
|
2239
|
-
.slide-panel.slide-left .slide-panel-content {
|
|
2240
|
-
transform: translate(-100%, 0);
|
|
2241
|
-
}
|
|
2242
|
-
.slide-panel.slide-right:hover .slide-panel-content {
|
|
2243
|
-
transform: translate(0, 0);
|
|
2244
|
-
}
|
|
2245
|
-
.slide-panel.slide-right .slide-panel-content {
|
|
2246
|
-
transform: translate(100%, 0);
|
|
2247
|
-
}
|
|
2248
|
-
.icon-start {
|
|
2249
|
-
display: relative;
|
|
2250
|
-
}
|
|
2251
|
-
.icon-start > i {
|
|
2252
|
-
display: absolute;
|
|
2253
|
-
top: 0;
|
|
2254
|
-
left: 0;
|
|
2255
|
-
}
|
|
2256
|
-
.icon.fit {
|
|
2257
|
-
transform: translateY(20%);
|
|
2258
|
-
}
|
|
2236
|
+
|
|
2259
2237
|
|
|
2260
2238
|
/*hide and show on screen */
|
|
2261
2239
|
@media(max-width: 600px) {
|
|
@@ -2351,7 +2329,7 @@ th {
|
|
|
2351
2329
|
background-color: var(--lighter);
|
|
2352
2330
|
position: relative;
|
|
2353
2331
|
border-radius: 0.2rem;
|
|
2354
|
-
height:
|
|
2332
|
+
height: 0.6rem;
|
|
2355
2333
|
}
|
|
2356
2334
|
.progressInner {
|
|
2357
2335
|
position: absolute;
|
|
@@ -2360,7 +2338,6 @@ th {
|
|
|
2360
2338
|
border-radius: 0.2rem;
|
|
2361
2339
|
height: 100%;
|
|
2362
2340
|
font-size: var(--smallerFont);
|
|
2363
|
-
font-weight: bold;
|
|
2364
2341
|
overflow: hidden;
|
|
2365
2342
|
display: flex;
|
|
2366
2343
|
align-items: center;
|
|
@@ -2495,7 +2472,7 @@ th {
|
|
|
2495
2472
|
max-width: 90%;
|
|
2496
2473
|
width: fit-content;
|
|
2497
2474
|
max-height: 2.5rem;
|
|
2498
|
-
height:
|
|
2475
|
+
height: 100%;
|
|
2499
2476
|
color: var(--white);
|
|
2500
2477
|
box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.5);
|
|
2501
2478
|
z-index: var(--snackBarZindex);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "funuicss",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.23",
|
|
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"],
|