@almadar/ui 4.22.2 → 4.22.3
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.
|
@@ -6,8 +6,10 @@ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
6
6
|
size?: BadgeSize;
|
|
7
7
|
/** Numeric count or amount to display in badge */
|
|
8
8
|
amount?: number;
|
|
9
|
-
/** Badge label text (alternative to children for schema-driven rendering)
|
|
10
|
-
|
|
9
|
+
/** Badge label text (alternative to children for schema-driven rendering).
|
|
10
|
+
* Numeric values are auto-coerced to string for rendering — common case
|
|
11
|
+
* is unread counts, error counts, status codes, etc. */
|
|
12
|
+
label?: string | number;
|
|
11
13
|
/** Icon name (Lucide icon string) or React node */
|
|
12
14
|
icon?: React.ReactNode;
|
|
13
15
|
}
|
|
@@ -195,8 +195,10 @@ interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
195
195
|
size?: BadgeSize;
|
|
196
196
|
/** Numeric count or amount to display in badge */
|
|
197
197
|
amount?: number;
|
|
198
|
-
/** Badge label text (alternative to children for schema-driven rendering)
|
|
199
|
-
|
|
198
|
+
/** Badge label text (alternative to children for schema-driven rendering).
|
|
199
|
+
* Numeric values are auto-coerced to string for rendering — common case
|
|
200
|
+
* is unread counts, error counts, status codes, etc. */
|
|
201
|
+
label?: string | number;
|
|
200
202
|
/** Icon name (Lucide icon string) or React node */
|
|
201
203
|
icon?: React.ReactNode;
|
|
202
204
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.3",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"dependencies": {
|
|
121
121
|
"@almadar/core": "^7.10.0",
|
|
122
122
|
"@almadar/evaluator": ">=2.9.2",
|
|
123
|
-
"@almadar/patterns": "^2.20.
|
|
123
|
+
"@almadar/patterns": "^2.20.2",
|
|
124
124
|
"@almadar/runtime": "^6.0.0",
|
|
125
125
|
"@almadar/std": ">=6.4.1",
|
|
126
126
|
"@almadar/syntax": ">=1.3.1",
|