@crowdstrike/tailwind-toucan-base 3.2.0 → 3.2.1
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/{src/theme-data.d.ts → index.d.ts} +45 -3
- package/package.json +14 -7
- package/src/types.d.ts +0 -48
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
// Strict type for the themes.json structure
|
2
|
+
interface ThemeData {
|
2
3
|
"themes": {
|
3
4
|
"dark": {
|
4
5
|
"cssSelector": ".theme-dark",
|
@@ -2705,6 +2706,47 @@ declare let ThemeData = {
|
|
2705
2706
|
]
|
2706
2707
|
}
|
2707
2708
|
}
|
2708
|
-
}
|
2709
|
+
}
|
2709
2710
|
|
2710
|
-
|
2711
|
+
// Full Built CSS
|
2712
|
+
declare module '@crowdstrike/tailwind-toucan-base/index.css';
|
2713
|
+
declare module '@crowdstrike/tailwind-toucan-base/toucan.css';
|
2714
|
+
|
2715
|
+
|
2716
|
+
// Raw Theme JSON -- also available as theme-data.js
|
2717
|
+
declare module '@crowdstrike/tailwind-toucan-base/themes' {
|
2718
|
+
export = ThemeData;
|
2719
|
+
}
|
2720
|
+
declare module '@crowdstrike/tailwind-toucan-base/themes.json' {
|
2721
|
+
export = ThemeData;
|
2722
|
+
}
|
2723
|
+
|
2724
|
+
// Tailwind Config
|
2725
|
+
declare module '@crowdstrike/tailwind-toucan-base';
|
2726
|
+
|
2727
|
+
declare module '@crowdstrike/tailwind-toucan-base/theme-data' {
|
2728
|
+
/**
|
2729
|
+
* Utility type which describes the shape and properties of a particular color.
|
2730
|
+
*/
|
2731
|
+
export interface ColorInfo {
|
2732
|
+
category: string[];
|
2733
|
+
hasAlpha: boolean;
|
2734
|
+
rgbFill: string;
|
2735
|
+
fill: {
|
2736
|
+
r: number;
|
2737
|
+
g: number;
|
2738
|
+
b: number;
|
2739
|
+
a: number;
|
2740
|
+
};
|
2741
|
+
name: string;
|
2742
|
+
value: string;
|
2743
|
+
}
|
2744
|
+
|
2745
|
+
const _ThemeData: ThemeData;
|
2746
|
+
|
2747
|
+
/**
|
2748
|
+
* The data from the generated theme.json document containing all of the
|
2749
|
+
* Toucan colors, shadows, etc
|
2750
|
+
*/
|
2751
|
+
export default _ThemeData;
|
2752
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@crowdstrike/tailwind-toucan-base",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "Tailwind preset for CrowdStrike's Toucan design system",
|
6
6
|
"repository": "https://github.com/CrowdStrike/tailwind-toucan-base",
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"main": "src/tailwind.config.js",
|
10
10
|
"files": [
|
11
11
|
"src",
|
12
|
+
"index.d.ts",
|
12
13
|
"index.css",
|
13
14
|
"themes.json",
|
14
15
|
"toucan.css"
|
@@ -21,11 +22,17 @@
|
|
21
22
|
},
|
22
23
|
"typesVersions": {
|
23
24
|
"*": {
|
24
|
-
"
|
25
|
-
"./
|
25
|
+
"*": [
|
26
|
+
"./index.d.ts"
|
27
|
+
],
|
28
|
+
"themes": [
|
29
|
+
"./index.d.ts"
|
30
|
+
],
|
31
|
+
"themes.json": [
|
32
|
+
"./index.d.ts"
|
26
33
|
],
|
27
34
|
"theme-data": [
|
28
|
-
"./
|
35
|
+
"./index.d.ts"
|
29
36
|
]
|
30
37
|
}
|
31
38
|
},
|
@@ -48,7 +55,7 @@
|
|
48
55
|
},
|
49
56
|
"devDependencies": {
|
50
57
|
"@figma-export/cli": "4.4.0",
|
51
|
-
"@nullvoxpopuli/eslint-configs": "2.2.
|
58
|
+
"@nullvoxpopuli/eslint-configs": "2.2.34",
|
52
59
|
"@semantic-release/changelog": "^6.0.1",
|
53
60
|
"@semantic-release/git": "^10.0.1",
|
54
61
|
"@types/fs-extra": "^9.0.13",
|
@@ -64,7 +71,7 @@
|
|
64
71
|
"semantic-release": "^19.0.3",
|
65
72
|
"tailwind-config-viewer": "^1.7.1",
|
66
73
|
"typescript": "^4.7.4",
|
67
|
-
"vitest": "0.
|
74
|
+
"vitest": "0.18.0"
|
68
75
|
},
|
69
76
|
"engines": {
|
70
77
|
"node": ">=14.15.0"
|
@@ -88,7 +95,7 @@
|
|
88
95
|
},
|
89
96
|
"packageManager": "pnpm@7.5.0",
|
90
97
|
"volta": {
|
91
|
-
"node": "16.
|
98
|
+
"node": "16.16.0",
|
92
99
|
"yarn": "1.22.19",
|
93
100
|
"npm": "8.13.2"
|
94
101
|
}
|
package/src/types.d.ts
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Generic loosley typed version of the strict types provided by
|
3
|
-
* ```ts
|
4
|
-
* import type ThemeData from '@crowdstrike/tailwind-toucan-base/theme-data';
|
5
|
-
* ```
|
6
|
-
*/
|
7
|
-
export interface ColorInfo {
|
8
|
-
category: string[];
|
9
|
-
hasAlpha: boolean;
|
10
|
-
rgbFill: string;
|
11
|
-
fill: {
|
12
|
-
r: number;
|
13
|
-
g: number;
|
14
|
-
b: number;
|
15
|
-
a: number;
|
16
|
-
};
|
17
|
-
name: string;
|
18
|
-
value: string;
|
19
|
-
}
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Generic loosley typed version of the strict types provided by
|
23
|
-
* ```ts
|
24
|
-
* import type ThemeData from '@crowdstrike/tailwind-toucan-base/theme-data';
|
25
|
-
* ```
|
26
|
-
*/
|
27
|
-
export interface Theme {
|
28
|
-
colors: ColorInfo[];
|
29
|
-
cssSelector: string;
|
30
|
-
shadows: Array<{
|
31
|
-
name: string;
|
32
|
-
effects: string[];
|
33
|
-
}>;
|
34
|
-
}
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Generic loosley typed version of the strict types provided by
|
38
|
-
* ```ts
|
39
|
-
* import type ThemeData from '@crowdstrike/tailwind-toucan-base/theme-data';
|
40
|
-
* ```
|
41
|
-
*/
|
42
|
-
export interface ThemeData {
|
43
|
-
aliases: { name: string; value: string }[];
|
44
|
-
themes: {
|
45
|
-
dark: Theme;
|
46
|
-
light: Theme;
|
47
|
-
};
|
48
|
-
}
|