funuicss 3.8.7 → 3.8.8
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/css/fun.css +393 -89
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +1 -1
- package/ui/button/Button.d.ts +2 -1
- package/ui/button/Button.js +8 -7
- package/ui/div/Div.d.ts +3 -1
- package/ui/div/Div.js +2 -2
- package/ui/form/Form.d.ts +68 -0
- package/ui/form/Form.js +658 -0
- package/ui/input/FileUpload.js +370 -21
- package/ui/input/Input.d.ts +35 -1
- package/ui/input/Input.js +1041 -41
- package/ui/products/CartModal.d.ts +0 -2
- package/ui/products/CartModal.js +59 -39
- package/ui/products/ProductCard.js +9 -22
- package/ui/products/ProductDetail.js +111 -80
- package/ui/products/ProductLoader.d.ts +3 -0
- package/ui/products/ProductLoader.js +22 -0
- package/ui/products/Store.d.ts +32 -7
- package/ui/products/Store.js +393 -94
- package/ui/progress/Bar.js +2 -2
- package/ui/theme/theme.d.ts +4 -0
- package/ui/theme/theme.js +336 -133
package/ui/progress/Bar.js
CHANGED
|
@@ -41,7 +41,7 @@ function ProgressBar(_a) {
|
|
|
41
41
|
var funcss = _a.funcss, progress = _a.progress, _b = _a.height, height = _b === void 0 ? 16 : _b, children = _a.children, content = _a.content, raised = _a.raised, rounded = _a.rounded, _c = _a.bg, bg = _c === void 0 ? 'primary' : _c, // default CSS class name
|
|
42
42
|
_d = _a.type, // default CSS class name
|
|
43
43
|
type = _d === void 0 ? 'linear' : _d, _e = _a.size, size = _e === void 0 ? 60 : _e, fontSize = _a.fontSize, _f = _a.strokeWidth, strokeWidth = _f === void 0 ? 6 : _f;
|
|
44
|
-
var clampedProgress = Math.min(100, Math.max(0, progress));
|
|
44
|
+
var clampedProgress = Math.min(100, Math.max(0, Number(progress)));
|
|
45
45
|
var isComplete = clampedProgress >= 100;
|
|
46
46
|
var effectiveBg = isComplete ? 'success' : bg;
|
|
47
47
|
var renderContent = function () {
|
|
@@ -51,7 +51,7 @@ function ProgressBar(_a) {
|
|
|
51
51
|
return content(clampedProgress);
|
|
52
52
|
if (typeof content === 'string')
|
|
53
53
|
return content;
|
|
54
|
-
return "".concat(clampedProgress, "%");
|
|
54
|
+
return "".concat(clampedProgress.toFixed(), "%");
|
|
55
55
|
};
|
|
56
56
|
if (type === 'circle') {
|
|
57
57
|
var radius = (size - strokeWidth) / 2;
|
package/ui/theme/theme.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ interface ThemeProviderProps {
|
|
|
94
94
|
minHeight?: string;
|
|
95
95
|
children: ReactNode;
|
|
96
96
|
project?: ProjectData | null;
|
|
97
|
+
projectFile?: File | null;
|
|
97
98
|
}
|
|
98
99
|
interface ThemeContextType {
|
|
99
100
|
variant: ThemeVariant;
|
|
@@ -110,6 +111,9 @@ export declare const useVariant: () => {
|
|
|
110
111
|
variant: ThemeVariant;
|
|
111
112
|
setVariant: React.Dispatch<React.SetStateAction<ThemeVariant>>;
|
|
112
113
|
};
|
|
114
|
+
export declare const setGlobalProjectId: (id: string) => void;
|
|
115
|
+
export declare const getGlobalProjectId: () => string | null;
|
|
116
|
+
export declare const clearGlobalProjectId: () => void;
|
|
113
117
|
export declare const getVariable: (name: string) => {
|
|
114
118
|
name: string;
|
|
115
119
|
value: any;
|