@idealyst/components 1.1.5 → 1.1.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Shared component library for React and React Native",
|
|
5
5
|
"documentation": "https://github.com/IdealystIO/idealyst-framework/tree/main/packages/components#readme",
|
|
6
6
|
"readme": "README.md",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"publish:npm": "npm publish"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@idealyst/theme": "^1.1.
|
|
54
|
+
"@idealyst/theme": "^1.1.6",
|
|
55
55
|
"@mdi/js": ">=7.0.0",
|
|
56
56
|
"@mdi/react": ">=1.0.0",
|
|
57
57
|
"@react-native-vector-icons/common": ">=12.0.0",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@idealyst/theme": "^1.1.
|
|
104
|
+
"@idealyst/theme": "^1.1.6",
|
|
105
105
|
"@mdi/react": "^1.6.1",
|
|
106
106
|
"@types/react": "^19.1.0",
|
|
107
107
|
"react": "^19.1.0",
|
|
@@ -155,16 +155,16 @@ export function resetAccessibilityIdCounter(): void {
|
|
|
155
155
|
* Combine multiple accessibility IDs into a space-separated string.
|
|
156
156
|
* Filters out undefined/null values.
|
|
157
157
|
*
|
|
158
|
-
* @param ids -
|
|
158
|
+
* @param ids - IDs to combine (can include undefined/null)
|
|
159
159
|
* @returns Space-separated string of IDs, or undefined if all are empty
|
|
160
160
|
*
|
|
161
161
|
* @example
|
|
162
162
|
* ```tsx
|
|
163
|
-
* const describedBy = combineIds(
|
|
163
|
+
* const describedBy = combineIds(helperId, hasError ? errorId : undefined);
|
|
164
164
|
* // Returns: "helper-1 error-2" or "helper-1" depending on hasError
|
|
165
165
|
* ```
|
|
166
166
|
*/
|
|
167
|
-
export function combineIds(ids: (string | undefined | null)[]): string | undefined {
|
|
167
|
+
export function combineIds(...ids: (string | undefined | null)[]): string | undefined {
|
|
168
168
|
const filtered = ids.filter((id): id is string => Boolean(id));
|
|
169
169
|
return filtered.length > 0 ? filtered.join(' ') : undefined;
|
|
170
170
|
}
|