@stevederico/skateboard-ui 2.17.0 → 2.18.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ 2.18.0
4
+
5
+ Fix DynamicIcon single-word icon name resolution
6
+
3
7
  2.17.0
4
8
 
5
9
  Fix DynamicIcon forwardRef detection
@@ -41,7 +41,7 @@ function toIconName(name) {
41
41
  if (stripped.startsWith("Icon") && stripped.length > 4 && stripped[4] === stripped[4].toUpperCase()) {
42
42
  stripped = stripped.slice(4);
43
43
  }
44
- const pascal = /[-_\s]/.test(stripped) ? toPascalCase(stripped) : stripped;
44
+ const pascal = /[-_\s]/.test(stripped) ? toPascalCase(stripped) : stripped.charAt(0).toUpperCase() + stripped.slice(1);
45
45
  const kebab = toKebabCase(pascal);
46
46
  return { pascal, kebab };
47
47
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stevederico/skateboard-ui",
3
3
  "private": false,
4
- "version": "2.17.0",
4
+ "version": "2.18.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./Sidebar": {