funuicss 1.9.5 → 1.9.7
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/Alert.jsx +10 -3
- package/component/Input.jsx +36 -28
- package/component/Typography.jsx +4 -2
- package/css/{Maven_Pro → font}/OFL.txt +1 -1
- package/css/font/Poppins-Black.ttf +0 -0
- package/css/font/Poppins-BlackItalic.ttf +0 -0
- package/css/font/Poppins-Bold.ttf +0 -0
- package/css/font/Poppins-BoldItalic.ttf +0 -0
- package/css/font/Poppins-ExtraBold.ttf +0 -0
- package/css/font/Poppins-ExtraBoldItalic.ttf +0 -0
- package/css/font/Poppins-ExtraLight.ttf +0 -0
- package/css/font/Poppins-ExtraLightItalic.ttf +0 -0
- package/css/font/Poppins-Italic.ttf +0 -0
- package/css/font/Poppins-Light.ttf +0 -0
- package/css/font/Poppins-LightItalic.ttf +0 -0
- package/css/font/Poppins-Medium.ttf +0 -0
- package/css/font/Poppins-MediumItalic.ttf +0 -0
- package/css/font/Poppins-Regular.ttf +0 -0
- package/css/font/Poppins-SemiBold.ttf +0 -0
- package/css/font/Poppins-SemiBoldItalic.ttf +0 -0
- package/css/font/Poppins-Thin.ttf +0 -0
- package/css/font/Poppins-ThinItalic.ttf +0 -0
- package/css/fun.css +2615 -2517
- package/package.json +1 -1
- package/css/Maven_Pro/MavenPro.ttf +0 -0
- package/css/Maven_Pro/README.txt +0 -68
- package/css/Maven_Pro/static/MavenPro-Black.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-Bold.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-ExtraBold.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-Medium.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-Regular.ttf +0 -0
- package/css/Maven_Pro/static/MavenPro-SemiBold.ttf +0 -0
package/component/Alert.jsx
CHANGED
|
@@ -63,9 +63,13 @@ function Alert(_ref) {
|
|
|
63
63
|
var message = _ref.message,
|
|
64
64
|
funcss = _ref.funcss,
|
|
65
65
|
type = _ref.type,
|
|
66
|
-
outlined = _ref.outlined
|
|
66
|
+
outlined = _ref.outlined,
|
|
67
|
+
fixed = _ref.fixed;
|
|
67
68
|
return /*#__PURE__*/external_react_default().createElement("div", null, outlined ? /*#__PURE__*/external_react_default().createElement("div", {
|
|
68
|
-
|
|
69
|
+
style: {
|
|
70
|
+
animation: " ".concat(0.3, "s ", "ScaleUp")
|
|
71
|
+
},
|
|
72
|
+
className: "alert ".concat(type, "-outline\n ").concat(fixed == "top-left" ? "top-left" : "", "\n ").concat(fixed == "top-right" ? "top-right" : "", "\n ").concat(fixed == "bottom-left" ? "bottom-left" : "", "\n ").concat(fixed == "bottom-right" ? "bottom-right" : "", " \n \n ")
|
|
69
73
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
70
74
|
className: "alert-icon"
|
|
71
75
|
}, type === "success" && /*#__PURE__*/external_react_default().createElement("i", {
|
|
@@ -79,7 +83,10 @@ function Alert(_ref) {
|
|
|
79
83
|
})), /*#__PURE__*/external_react_default().createElement("div", {
|
|
80
84
|
className: "alert-text"
|
|
81
85
|
}, message)) : "", !outlined ? /*#__PURE__*/external_react_default().createElement("div", {
|
|
82
|
-
|
|
86
|
+
style: {
|
|
87
|
+
animation: " ".concat(0.3, "s ", "ScaleUp")
|
|
88
|
+
},
|
|
89
|
+
className: "alert ".concat(funcss, " ").concat(type, " \n").concat(fixed == "top-left" ? "top-left" : "", "\n ").concat(fixed == "top-right" ? "top-right" : "", "\n ").concat(fixed == "bottom-left" ? "bottom-left" : "", "\n ").concat(fixed == "bottom-right" ? "bottom-right" : "", " ")
|
|
83
90
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
84
91
|
className: "alert-icon"
|
|
85
92
|
}, type === "success" && /*#__PURE__*/external_react_default().createElement("i", {
|
package/component/Input.jsx
CHANGED
|
@@ -59,7 +59,6 @@ const external_react_namespaceObject = require("react");
|
|
|
59
59
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
60
60
|
;// CONCATENATED MODULE: ../Funcss/Components/Input.js
|
|
61
61
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
62
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
63
62
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
64
63
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
65
64
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -85,8 +84,9 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
85
84
|
value: function render() {
|
|
86
85
|
if (this.props.select) {
|
|
87
86
|
if (this.props.bordered) {
|
|
88
|
-
return /*#__PURE__*/external_react_default().createElement("select",
|
|
89
|
-
|
|
87
|
+
return /*#__PURE__*/external_react_default().createElement("select", {
|
|
88
|
+
id: this.props.id,
|
|
89
|
+
className: "\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 "),
|
|
90
90
|
onChange: this.props.onChange,
|
|
91
91
|
defaultValue: this.props.defaultValue,
|
|
92
92
|
type: this.props.type,
|
|
@@ -96,15 +96,16 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
97
97
|
},
|
|
98
98
|
value: this.props.value
|
|
99
|
-
}
|
|
99
|
+
}, this.props.options ? this.props.options.map(function (doc) {
|
|
100
100
|
return /*#__PURE__*/external_react_default().createElement("option", {
|
|
101
101
|
value: doc.value,
|
|
102
102
|
key: doc.value
|
|
103
103
|
}, doc.text);
|
|
104
104
|
}) : "");
|
|
105
105
|
} else if (this.props.bordereless) {
|
|
106
|
-
return /*#__PURE__*/external_react_default().createElement("select",
|
|
107
|
-
|
|
106
|
+
return /*#__PURE__*/external_react_default().createElement("select", {
|
|
107
|
+
id: this.props.id,
|
|
108
|
+
className: "\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 borderless\n "),
|
|
108
109
|
onChange: this.props.onChange,
|
|
109
110
|
defaultValue: this.props.defaultValue,
|
|
110
111
|
type: this.props.type,
|
|
@@ -115,15 +116,16 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
115
116
|
borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
|
|
116
117
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
117
118
|
}
|
|
118
|
-
}
|
|
119
|
+
}, this.props.options ? this.props.options.map(function (doc) {
|
|
119
120
|
return /*#__PURE__*/external_react_default().createElement("option", {
|
|
120
121
|
value: doc.value,
|
|
121
122
|
key: doc.value
|
|
122
123
|
}, doc.text);
|
|
123
124
|
}) : "");
|
|
124
125
|
} else {
|
|
125
|
-
return /*#__PURE__*/external_react_default().createElement("select",
|
|
126
|
-
|
|
126
|
+
return /*#__PURE__*/external_react_default().createElement("select", {
|
|
127
|
+
id: this.props.id,
|
|
128
|
+
className: "\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 "),
|
|
127
129
|
onChange: this.props.onChange,
|
|
128
130
|
defaultValue: this.props.defaultValue,
|
|
129
131
|
type: this.props.type,
|
|
@@ -134,7 +136,7 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
134
136
|
borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
|
|
135
137
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
136
138
|
}
|
|
137
|
-
}
|
|
139
|
+
}, this.props.options ? this.props.options.map(function (doc) {
|
|
138
140
|
return /*#__PURE__*/external_react_default().createElement("option", {
|
|
139
141
|
value: doc.value,
|
|
140
142
|
key: doc.value
|
|
@@ -143,8 +145,9 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
143
145
|
}
|
|
144
146
|
} else if (this.props.multiline) {
|
|
145
147
|
if (this.props.bordered) {
|
|
146
|
-
return /*#__PURE__*/external_react_default().createElement("textarea",
|
|
147
|
-
|
|
148
|
+
return /*#__PURE__*/external_react_default().createElement("textarea", {
|
|
149
|
+
id: this.props.id,
|
|
150
|
+
className: "\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 "),
|
|
148
151
|
onChange: this.props.onChange,
|
|
149
152
|
defaultValue: this.props.defaultValue,
|
|
150
153
|
type: this.props.type,
|
|
@@ -156,10 +159,11 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
156
159
|
},
|
|
157
160
|
value: this.props.value,
|
|
158
161
|
rows: this.props.rows ? this.props.rows : 2
|
|
159
|
-
})
|
|
162
|
+
});
|
|
160
163
|
} else if (this.props.bordereless) {
|
|
161
|
-
return /*#__PURE__*/external_react_default().createElement("textarea",
|
|
162
|
-
|
|
164
|
+
return /*#__PURE__*/external_react_default().createElement("textarea", {
|
|
165
|
+
id: this.props.id,
|
|
166
|
+
className: "\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 borderless\n "),
|
|
163
167
|
onChange: this.props.onChange,
|
|
164
168
|
defaultValue: this.props.defaultValue,
|
|
165
169
|
type: this.props.type,
|
|
@@ -171,10 +175,11 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
171
175
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
172
176
|
},
|
|
173
177
|
rows: this.props.rows ? this.props.rows : 2
|
|
174
|
-
})
|
|
178
|
+
});
|
|
175
179
|
} else {
|
|
176
|
-
return /*#__PURE__*/external_react_default().createElement("textarea",
|
|
177
|
-
|
|
180
|
+
return /*#__PURE__*/external_react_default().createElement("textarea", {
|
|
181
|
+
id: this.props.id,
|
|
182
|
+
className: "\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 "),
|
|
178
183
|
onChange: this.props.onChange,
|
|
179
184
|
defaultValue: this.props.defaultValue,
|
|
180
185
|
type: this.props.type,
|
|
@@ -186,12 +191,13 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
186
191
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
187
192
|
},
|
|
188
193
|
rows: this.props.rows ? this.props.rows : 2
|
|
189
|
-
})
|
|
194
|
+
});
|
|
190
195
|
}
|
|
191
196
|
} else {
|
|
192
197
|
if (this.props.bordered) {
|
|
193
|
-
return /*#__PURE__*/external_react_default().createElement("input",
|
|
194
|
-
|
|
198
|
+
return /*#__PURE__*/external_react_default().createElement("input", {
|
|
199
|
+
id: this.props.id,
|
|
200
|
+
className: "\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 "),
|
|
195
201
|
onChange: this.props.onChange,
|
|
196
202
|
defaultValue: this.props.defaultValue,
|
|
197
203
|
type: this.props.type,
|
|
@@ -202,10 +208,11 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
202
208
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
203
209
|
},
|
|
204
210
|
value: this.props.value
|
|
205
|
-
})
|
|
211
|
+
});
|
|
206
212
|
} else if (this.props.bordereless) {
|
|
207
|
-
return /*#__PURE__*/external_react_default().createElement("input",
|
|
208
|
-
|
|
213
|
+
return /*#__PURE__*/external_react_default().createElement("input", {
|
|
214
|
+
id: this.props.id,
|
|
215
|
+
className: "\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 borderless\n "),
|
|
209
216
|
onChange: this.props.onChange,
|
|
210
217
|
defaultValue: this.props.defaultValue,
|
|
211
218
|
type: this.props.type,
|
|
@@ -216,10 +223,11 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
216
223
|
borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
|
|
217
224
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
218
225
|
}
|
|
219
|
-
})
|
|
226
|
+
});
|
|
220
227
|
} else {
|
|
221
|
-
return /*#__PURE__*/external_react_default().createElement("input",
|
|
222
|
-
|
|
228
|
+
return /*#__PURE__*/external_react_default().createElement("input", {
|
|
229
|
+
id: this.props.id,
|
|
230
|
+
className: "\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 "),
|
|
223
231
|
onChange: this.props.onChange,
|
|
224
232
|
defaultValue: this.props.defaultValue,
|
|
225
233
|
type: this.props.type,
|
|
@@ -230,7 +238,7 @@ var Input = /*#__PURE__*/function (_Component) {
|
|
|
230
238
|
borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
|
|
231
239
|
width: "".concat(this.props.fullWidth ? "100%" : "")
|
|
232
240
|
}
|
|
233
|
-
})
|
|
241
|
+
});
|
|
234
242
|
}
|
|
235
243
|
}
|
|
236
244
|
}
|
package/component/Typography.jsx
CHANGED
|
@@ -71,9 +71,11 @@ function Typography(_ref) {
|
|
|
71
71
|
funcss = _ref.funcss,
|
|
72
72
|
emp = _ref.emp,
|
|
73
73
|
bold = _ref.bold,
|
|
74
|
-
block = _ref.block
|
|
74
|
+
block = _ref.block,
|
|
75
|
+
body = _ref.body,
|
|
76
|
+
article = _ref.article;
|
|
75
77
|
return /*#__PURE__*/external_react_default().createElement("span", {
|
|
76
|
-
className: "\ntext-".concat(size, " \ntext-").concat(color, "\n").concat(bg, "\nhover-text-").concat(hoverText, "\nhover-").concat(hoverBg, "\n").concat(heading, "\n").concat(funcss, "\n").concat(emp ? "emp" : "", "\n").concat(bold ? "bold" : "", "\n"),
|
|
78
|
+
className: "\ntext-".concat(size, " \ntext-").concat(color, "\n").concat(bg, "\nhover-text-").concat(hoverText, "\nhover-").concat(hoverBg, "\n").concat(heading, "\n").concat(body ? "body" : "", "\n").concat(article ? "article" : "", "\n").concat(funcss, "\n").concat(emp ? "emp" : "", "\n").concat(bold ? "bold" : "", "\n"),
|
|
77
79
|
style: {
|
|
78
80
|
display: block ? "block" : "",
|
|
79
81
|
transition: "0.2s linear",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
|
|
2
2
|
|
|
3
3
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
4
|
This license is copied below, and is also available with a FAQ at:
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|