@wix/zero-config-implementation 1.27.0 → 1.29.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.
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Formats any string format to Title Case display name
|
|
6
6
|
* Handles: kebab-case, camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, and mixed formats
|
|
7
7
|
*
|
|
8
|
+
* If the result exceeds 50 characters, leading words are dropped (end words are more specific).
|
|
9
|
+
*
|
|
8
10
|
* Examples:
|
|
9
11
|
* "input-field-weight" -> "Input Field Weight"
|
|
10
12
|
* "camelCaseExample" -> "Camel Case Example"
|
|
@@ -13,5 +15,6 @@
|
|
|
13
15
|
* "SCREAMING_SNAKE_CASE" -> "Screaming Snake Case"
|
|
14
16
|
* "mixed-format_example" -> "Mixed Format Example"
|
|
15
17
|
* "a11y" -> "Accessibility"
|
|
18
|
+
* "myVeryLongComponentWithAnExtremelyLongDisplayName" -> "With An Extremely Long Display Name"
|
|
16
19
|
*/
|
|
17
20
|
export declare function formatDisplayName(input: string): string;
|