@ultraviolet/plus 0.21.7 → 0.21.8
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/components/ContentCard/index.cjs +9 -9
- package/dist/components/ContentCard/index.js +8 -8
- package/dist/components/ContentCardGroup/Card.cjs +6 -6
- package/dist/components/ContentCardGroup/Card.js +5 -5
- package/dist/components/FAQ/index.cjs +35 -14
- package/dist/components/FAQ/index.d.ts +3 -3
- package/dist/components/FAQ/index.js +17 -14
- package/dist/components/Navigation/Navigation.d.ts +2 -2
- package/dist/components/Navigation/components/Item.cjs +42 -22
- package/dist/components/Navigation/components/Item.d.ts +4 -3
- package/dist/components/Navigation/components/Item.js +22 -19
- package/dist/types.d.ts +7 -0
- package/package.json +6 -6
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type PascalToCamelCase<S extends string> = S extends `${infer P1}${infer P2}` ? `${Lowercase<P1>}${P2}` : S;
|
|
2
|
+
export type RemoveSuffix<S extends string, Suffix extends string> = S extends `${infer Prefix}${Suffix}` ? Prefix : S;
|
|
3
|
+
/**
|
|
4
|
+
* This type removes the suffix from a PascalCase string and converts it to camelCase. Pretty useful for Icon, CategoryIcon and ProductIcon components.
|
|
5
|
+
* Their names being `AddressIcon` but we might need to have `address` as the prop name.
|
|
6
|
+
*/
|
|
7
|
+
export type PascalToCamelCaseWithoutSuffix<T extends string, Suffix extends string> = T extends `${infer Prefix}${Suffix}` ? `${PascalToCamelCase<Prefix extends `${infer First}${infer Rest}` ? `${First}${Rest}` : never>}` : never;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/plus",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.8",
|
|
4
4
|
"description": "Ultraviolet Plus",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/scaleway/ultraviolet",
|
|
8
|
+
"url": "git+https://github.com/scaleway/ultraviolet.git",
|
|
9
9
|
"directory": "packages/plus"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -64,17 +64,17 @@
|
|
|
64
64
|
"@types/react-dom": "18.3.0",
|
|
65
65
|
"react": "18.3.1",
|
|
66
66
|
"react-dom": "18.3.1",
|
|
67
|
-
"@ultraviolet/illustrations": "3.
|
|
67
|
+
"@ultraviolet/illustrations": "3.3.0",
|
|
68
68
|
"@utils/test": "0.0.1"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@uiw/codemirror-extensions-langs": "4.23.0",
|
|
72
72
|
"@uiw/codemirror-theme-material": "4.23.0",
|
|
73
73
|
"@uiw/react-codemirror": "4.23.0",
|
|
74
|
-
"react-intersection-observer": "9.13.
|
|
75
|
-
"@ultraviolet/icons": "
|
|
74
|
+
"react-intersection-observer": "9.13.1",
|
|
75
|
+
"@ultraviolet/icons": "3.0.0",
|
|
76
76
|
"@ultraviolet/themes": "1.13.0",
|
|
77
|
-
"@ultraviolet/ui": "1.
|
|
77
|
+
"@ultraviolet/ui": "1.69.0"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"prebuild": "shx rm -rf dist",
|