lapikit 0.5.3 → 0.5.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/framework.js CHANGED
@@ -6,7 +6,8 @@ import { lapikitImportsRef, lapikitImportsLabsRef, lapikitComponents, lapikitLab
6
6
  * @returns The component name with "Kit" prefix and the first letter capitalized
7
7
  */
8
8
  export function componentName(shortName) {
9
- return 'Kit' + shortName.charAt(0).toUpperCase() + shortName.slice(1);
9
+ const pascal = shortName.replace(/(^|-)([a-z])/g, (_, __, letter) => letter.toUpperCase());
10
+ return 'Kit' + pascal;
10
11
  }
11
12
  export function liliCore(options) {
12
13
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapikit",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"