@hybridcore/ui 1.6.3 → 1.6.4

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/dist/main.d.ts CHANGED
@@ -248,6 +248,12 @@ export declare interface ChartProps {
248
248
  initDelay?: number;
249
249
  interval?: string;
250
250
  baseInterval?: BaseInterval;
251
+ /**
252
+ * When `true`, the chart is still waiting on its async config/data. The wrapper
253
+ * holds back rendering (and the "missing config" validation error) until this
254
+ * clears, so a misconfiguration only surfaces once the data has settled.
255
+ */
256
+ loading?: boolean;
251
257
  /**
252
258
  * Color palette used for series. Defaults to the lib's built-in viridis-cool
253
259
  * palette. Pass `theme.palette.viridisCool` (or any sequential palette) from
@@ -337,13 +343,13 @@ declare interface ConditionalWrapperProps {
337
343
  */
338
344
  condition: boolean;
339
345
  /**
340
- * @param children React.ReactElement
346
+ * @param children React.ReactNode
341
347
  */
342
- wrapper(children: default_2.ReactElement): default_2.ReactElement;
348
+ wrapper(children: default_2.ReactNode): default_2.ReactNode;
343
349
  /**
344
350
  * Child components to wrap
345
351
  */
346
- children: default_2.ReactElement;
352
+ children: default_2.ReactNode;
347
353
  }
348
354
 
349
355
  declare function confirm_2(title: string, description: string, options?: OptionsType): Promise<unknown>;
@@ -1124,6 +1130,15 @@ export declare interface MetricCardProps {
1124
1130
  variant?: MetricVariant;
1125
1131
  loading?: boolean;
1126
1132
 
1133
+ // "overlay" (default) = chart bleeds behind the value; "panel" = value/badge on the
1134
+ // left, chart inset on the right, wrapped in a nested card.
1135
+ layout?: MetricLayout;
1136
+
1137
+ // Rendered verbatim around the formatted number, e.g. valuePrefix "€ " → "€ 1,577",
1138
+ // valueSuffix " kg" → "1,577 kg". Include any spacing in the string itself.
1139
+ valuePrefix?: string;
1140
+ valueSuffix?: string;
1141
+
1127
1142
  showChange?: boolean;
1128
1143
  changeType?: MetricChangeType;
1129
1144
 
@@ -1158,6 +1173,8 @@ export declare type MetricIconPosition =
1158
1173
  | "bottom-left"
1159
1174
  | "bottom-right";
1160
1175
 
1176
+ declare type MetricLayout = "overlay" | "panel";
1177
+
1161
1178
  export declare type MetricTrend = "up" | "down" | "neutral";
1162
1179
 
1163
1180
  export declare type MetricVariant =
@@ -3190,11 +3207,12 @@ declare module "@mui/material/styles" {
3190
3207
  | "label"
3191
3208
  | "value"
3192
3209
  | "trendContainer"
3193
- | "trendValue"
3194
3210
  | "description"
3195
3211
  | "icon"
3196
3212
  | "cornerIcon"
3197
- | "chart";
3213
+ | "chart"
3214
+ | "panel"
3215
+ | "sideChart";
3198
3216
  }
3199
3217
 
3200
3218
  interface ComponentsPropsList {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.6.3",
4
+ "version": "1.6.4",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",
@@ -55,7 +55,8 @@
55
55
  "react-number-format": "^5.3.4",
56
56
  "react-phone-number-input": "^3.3.7",
57
57
  "react-select": "^5.8.0",
58
- "react-sortablejs": "^6.1.4"
58
+ "react-sortablejs": "^6.1.4",
59
+ "sortablejs": "^1"
59
60
  },
60
61
  "dependencies": {
61
62
  "@amcharts/amcharts5": "^5.14.4",
@@ -98,6 +99,7 @@
98
99
  "@types/react": "^18.3.10",
99
100
  "@types/react-color": "^3.0.12",
100
101
  "@types/react-dom": "^18.3.0",
102
+ "@types/sortablejs": "^1",
101
103
  "@types/terraformer__wkt": "^2",
102
104
  "@vitejs/plugin-react": "^4.3.2",
103
105
  "@wojtekmaj/react-daterange-picker": "^5.5.0",
@@ -123,6 +125,7 @@
123
125
  "react-phone-number-input": "^3.3.7",
124
126
  "react-select": "^5.8.0",
125
127
  "react-sortablejs": "^6.1.4",
128
+ "sortablejs": "^1",
126
129
  "storybook": "^8.3.5",
127
130
  "typescript": "^5.5.3",
128
131
  "typescript-eslint": "^8.7.0",