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.
@@ -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;
@@ -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;