@trackunit/css-tailwind 0.0.69 → 0.0.72
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/package.json +5 -5
- package/src/lib/animations.d.ts +6 -6
- package/src/lib/containers.d.ts +6 -6
- package/src/lib/grids.d.ts +6 -6
- package/src/lib/plugin/layouts.d.ts +4 -4
- package/src/lib/tailwind-base.d.ts +3 -3
- package/src/lib/utilities/designTokensToTailwindConfig.d.ts +73 -73
- package/src/lib/utilities/themeColorsToVariableObjectDefinition.d.ts +231 -231
- package/src/lib/utilities/utilities.d.ts +44 -44
- package/tailwind-base.generated.js +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"type": "commonjs",
|
|
11
11
|
"types": "./src/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@trackunit/css-component-tokens": "0.0.
|
|
14
|
-
"@trackunit/css-core": "0.0.
|
|
15
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.
|
|
16
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
13
|
+
"@trackunit/css-component-tokens": "0.0.31",
|
|
14
|
+
"@trackunit/css-core": "0.0.88",
|
|
15
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.23",
|
|
16
|
+
"@trackunit/ui-design-tokens": "0.0.72"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {}
|
|
19
19
|
}
|
package/src/lib/animations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from "tailwindcss";
|
|
2
|
-
/**
|
|
3
|
-
* A Partial tailwind config object to hold our custom animations.
|
|
4
|
-
* If you want a custom animation that should be available in the Manager as well as Iris Apps add it here.
|
|
5
|
-
*/
|
|
6
|
-
export declare const animations: Config["theme"];
|
|
1
|
+
import { Config } from "tailwindcss";
|
|
2
|
+
/**
|
|
3
|
+
* A Partial tailwind config object to hold our custom animations.
|
|
4
|
+
* If you want a custom animation that should be available in the Manager as well as Iris Apps add it here.
|
|
5
|
+
*/
|
|
6
|
+
export declare const animations: Config["theme"];
|
package/src/lib/containers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from "tailwindcss";
|
|
2
|
-
/**
|
|
3
|
-
* A Partial tailwind config object to hold our custom containers.
|
|
4
|
-
* If you want a custom extension of containers that should be available in the Manager as well as Iris Apps add it here.
|
|
5
|
-
*/
|
|
6
|
-
export declare const containers: Config["theme"];
|
|
1
|
+
import { Config } from "tailwindcss";
|
|
2
|
+
/**
|
|
3
|
+
* A Partial tailwind config object to hold our custom containers.
|
|
4
|
+
* If you want a custom extension of containers that should be available in the Manager as well as Iris Apps add it here.
|
|
5
|
+
*/
|
|
6
|
+
export declare const containers: Config["theme"];
|
package/src/lib/grids.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Config } from "tailwindcss";
|
|
2
|
-
/**
|
|
3
|
-
* A Partial tailwind config object to hold our custom grids.
|
|
4
|
-
* If you want a custom grid that should be available in the Manager as well as Iris Apps add it here.
|
|
5
|
-
*/
|
|
6
|
-
export declare const grids: Config["theme"];
|
|
1
|
+
import { Config } from "tailwindcss";
|
|
2
|
+
/**
|
|
3
|
+
* A Partial tailwind config object to hold our custom grids.
|
|
4
|
+
* If you want a custom grid that should be available in the Manager as well as Iris Apps add it here.
|
|
5
|
+
*/
|
|
6
|
+
export declare const grids: Config["theme"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const LayoutsPlugin: {
|
|
2
|
-
handler: import("tailwindcss/types/config").PluginCreator;
|
|
3
|
-
config?: Partial<import("tailwindcss").Config> | undefined;
|
|
4
|
-
};
|
|
1
|
+
export declare const LayoutsPlugin: {
|
|
2
|
+
handler: import("tailwindcss/types/config").PluginCreator;
|
|
3
|
+
config?: Partial<import("tailwindcss").Config> | undefined;
|
|
4
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Config } from "tailwindcss";
|
|
2
|
-
declare const tailwindBaseConfig: Config;
|
|
3
|
-
export default tailwindBaseConfig;
|
|
1
|
+
import { Config } from "tailwindcss";
|
|
2
|
+
declare const tailwindBaseConfig: Config;
|
|
3
|
+
export default tailwindBaseConfig;
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { fontSizeKeys, themeFontSize } from "@trackunit/ui-design-tokens";
|
|
2
|
-
/**
|
|
3
|
-
* Generates the Tailwind config object for a given Design token object.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* Input: {
|
|
7
|
-
* "1": "0.25rem",
|
|
8
|
-
* "2": "0.5rem",
|
|
9
|
-
* }
|
|
10
|
-
*
|
|
11
|
-
* Output: {
|
|
12
|
-
* "1": "var(--spacing-1)",
|
|
13
|
-
* "2": "var(--spacing-2)"
|
|
14
|
-
* }
|
|
15
|
-
*/
|
|
16
|
-
export declare const designTokensToTailwindConfig: (name: string, designTokens: object) => {
|
|
17
|
-
[key: string]: string;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Converts a string to a css variable.
|
|
21
|
-
*
|
|
22
|
-
* @example valueInVar("--my-var-name") // var(--my-var-name)
|
|
23
|
-
*/
|
|
24
|
-
export declare const valueInVar: <T extends string>(value: T) => `var(${T})`;
|
|
25
|
-
/**
|
|
26
|
-
* If passed value includes "rem" the returned value will include the px value
|
|
27
|
-
*/
|
|
28
|
-
export declare const remToPx: (value: string, fontSize?: number) => string;
|
|
29
|
-
/**
|
|
30
|
-
* Uses the fontSize object to generate a Tailwind font configuration.
|
|
31
|
-
* **ATT: This relies on a set of line-height css variables matching the Font size keys**
|
|
32
|
-
*/
|
|
33
|
-
export declare const designTokensToFontSizeTailwindConfig: (fontSizes: typeof themeFontSize) => {
|
|
34
|
-
xs: [string, {
|
|
35
|
-
lineHeight: string;
|
|
36
|
-
}];
|
|
37
|
-
sm: [string, {
|
|
38
|
-
lineHeight: string;
|
|
39
|
-
}];
|
|
40
|
-
base: [string, {
|
|
41
|
-
lineHeight: string;
|
|
42
|
-
}];
|
|
43
|
-
lg: [string, {
|
|
44
|
-
lineHeight: string;
|
|
45
|
-
}];
|
|
46
|
-
xl: [string, {
|
|
47
|
-
lineHeight: string;
|
|
48
|
-
}];
|
|
49
|
-
"2xl": [string, {
|
|
50
|
-
lineHeight: string;
|
|
51
|
-
}];
|
|
52
|
-
"3xl": [string, {
|
|
53
|
-
lineHeight: string;
|
|
54
|
-
}];
|
|
55
|
-
"4xl": [string, {
|
|
56
|
-
lineHeight: string;
|
|
57
|
-
}];
|
|
58
|
-
"5xl": [string, {
|
|
59
|
-
lineHeight: string;
|
|
60
|
-
}];
|
|
61
|
-
"6xl": [string, {
|
|
62
|
-
lineHeight: string;
|
|
63
|
-
}];
|
|
64
|
-
"7xl": [string, {
|
|
65
|
-
lineHeight: string;
|
|
66
|
-
}];
|
|
67
|
-
"8xl": [string, {
|
|
68
|
-
lineHeight: string;
|
|
69
|
-
}];
|
|
70
|
-
"9xl": [string, {
|
|
71
|
-
lineHeight: string;
|
|
72
|
-
}];
|
|
73
|
-
};
|
|
1
|
+
import { fontSizeKeys, themeFontSize } from "@trackunit/ui-design-tokens";
|
|
2
|
+
/**
|
|
3
|
+
* Generates the Tailwind config object for a given Design token object.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* Input: {
|
|
7
|
+
* "1": "0.25rem",
|
|
8
|
+
* "2": "0.5rem",
|
|
9
|
+
* }
|
|
10
|
+
*
|
|
11
|
+
* Output: {
|
|
12
|
+
* "1": "var(--spacing-1)",
|
|
13
|
+
* "2": "var(--spacing-2)"
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export declare const designTokensToTailwindConfig: (name: string, designTokens: object) => {
|
|
17
|
+
[key: string]: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Converts a string to a css variable.
|
|
21
|
+
*
|
|
22
|
+
* @example valueInVar("--my-var-name") // var(--my-var-name)
|
|
23
|
+
*/
|
|
24
|
+
export declare const valueInVar: <T extends string>(value: T) => `var(${T})`;
|
|
25
|
+
/**
|
|
26
|
+
* If passed value includes "rem" the returned value will include the px value
|
|
27
|
+
*/
|
|
28
|
+
export declare const remToPx: (value: string, fontSize?: number) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Uses the fontSize object to generate a Tailwind font configuration.
|
|
31
|
+
* **ATT: This relies on a set of line-height css variables matching the Font size keys**
|
|
32
|
+
*/
|
|
33
|
+
export declare const designTokensToFontSizeTailwindConfig: (fontSizes: typeof themeFontSize) => {
|
|
34
|
+
xs: [string, {
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
}];
|
|
37
|
+
sm: [string, {
|
|
38
|
+
lineHeight: string;
|
|
39
|
+
}];
|
|
40
|
+
base: [string, {
|
|
41
|
+
lineHeight: string;
|
|
42
|
+
}];
|
|
43
|
+
lg: [string, {
|
|
44
|
+
lineHeight: string;
|
|
45
|
+
}];
|
|
46
|
+
xl: [string, {
|
|
47
|
+
lineHeight: string;
|
|
48
|
+
}];
|
|
49
|
+
"2xl": [string, {
|
|
50
|
+
lineHeight: string;
|
|
51
|
+
}];
|
|
52
|
+
"3xl": [string, {
|
|
53
|
+
lineHeight: string;
|
|
54
|
+
}];
|
|
55
|
+
"4xl": [string, {
|
|
56
|
+
lineHeight: string;
|
|
57
|
+
}];
|
|
58
|
+
"5xl": [string, {
|
|
59
|
+
lineHeight: string;
|
|
60
|
+
}];
|
|
61
|
+
"6xl": [string, {
|
|
62
|
+
lineHeight: string;
|
|
63
|
+
}];
|
|
64
|
+
"7xl": [string, {
|
|
65
|
+
lineHeight: string;
|
|
66
|
+
}];
|
|
67
|
+
"8xl": [string, {
|
|
68
|
+
lineHeight: string;
|
|
69
|
+
}];
|
|
70
|
+
"9xl": [string, {
|
|
71
|
+
lineHeight: string;
|
|
72
|
+
}];
|
|
73
|
+
};
|
|
@@ -1,231 +1,231 @@
|
|
|
1
|
-
import { ThemeColorsObject } from "@trackunit/ui-design-tokens";
|
|
2
|
-
/**
|
|
3
|
-
* Converts the theme colors object to a variable object definition.
|
|
4
|
-
* This is used to generate the css custom properties for the theme colors.
|
|
5
|
-
*
|
|
6
|
-
* Remember to place it in the `variables` and `color` section of the tailwind config.
|
|
7
|
-
*
|
|
8
|
-
* @example ```js
|
|
9
|
-
* variables: {
|
|
10
|
-
* DEFAULT: {
|
|
11
|
-
* color: {
|
|
12
|
-
* ...themeColorsToVariableObjectDefinition(themeColors),
|
|
13
|
-
* },
|
|
14
|
-
* },
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function themeColorsToVariableObjectDefinition(themeColors: ThemeColorsObject): {
|
|
19
|
-
[k: string]: {
|
|
20
|
-
readonly AREA: string;
|
|
21
|
-
readonly CLASSIC_POI: string;
|
|
22
|
-
readonly CLASSIC_ZONE: string;
|
|
23
|
-
readonly DEPOT: string;
|
|
24
|
-
readonly WORK_PLACE: string;
|
|
25
|
-
readonly CONSTRUCTION_SITE: string;
|
|
26
|
-
readonly UNKNOWN: string;
|
|
27
|
-
} | {
|
|
28
|
-
readonly 100: string;
|
|
29
|
-
readonly 600: string;
|
|
30
|
-
} | {
|
|
31
|
-
readonly 100: string;
|
|
32
|
-
readonly 600: string;
|
|
33
|
-
} | {
|
|
34
|
-
readonly 100: string;
|
|
35
|
-
readonly 600: string;
|
|
36
|
-
} | {
|
|
37
|
-
readonly 100: string;
|
|
38
|
-
readonly 600: string;
|
|
39
|
-
} | {
|
|
40
|
-
readonly 100: string;
|
|
41
|
-
readonly 600: string;
|
|
42
|
-
} | {
|
|
43
|
-
readonly 100: string;
|
|
44
|
-
readonly 600: string;
|
|
45
|
-
} | {
|
|
46
|
-
readonly 100: string;
|
|
47
|
-
readonly 600: string;
|
|
48
|
-
} | {
|
|
49
|
-
readonly 300: string;
|
|
50
|
-
readonly 400: string;
|
|
51
|
-
} | {
|
|
52
|
-
readonly 400: string;
|
|
53
|
-
readonly 600: string;
|
|
54
|
-
} | {
|
|
55
|
-
readonly 300: string;
|
|
56
|
-
readonly 500: string;
|
|
57
|
-
} | {
|
|
58
|
-
readonly 50: string;
|
|
59
|
-
readonly 100: string;
|
|
60
|
-
readonly 200: string;
|
|
61
|
-
readonly 300: string;
|
|
62
|
-
readonly 400: string;
|
|
63
|
-
readonly 500: string;
|
|
64
|
-
readonly 600: string;
|
|
65
|
-
readonly 700: string;
|
|
66
|
-
readonly 800: string;
|
|
67
|
-
readonly 900: string;
|
|
68
|
-
} | {
|
|
69
|
-
readonly 50: string;
|
|
70
|
-
readonly 100: string;
|
|
71
|
-
readonly 200: string;
|
|
72
|
-
readonly 300: string;
|
|
73
|
-
readonly 400: string;
|
|
74
|
-
readonly 500: string;
|
|
75
|
-
readonly 600: string;
|
|
76
|
-
readonly 700: string;
|
|
77
|
-
readonly 800: string;
|
|
78
|
-
readonly 900: string;
|
|
79
|
-
} | {
|
|
80
|
-
readonly 50: string;
|
|
81
|
-
readonly 100: string;
|
|
82
|
-
readonly 200: string;
|
|
83
|
-
readonly 300: string;
|
|
84
|
-
readonly 400: string;
|
|
85
|
-
readonly 500: string;
|
|
86
|
-
readonly 600: string;
|
|
87
|
-
readonly 700: string;
|
|
88
|
-
readonly 800: string;
|
|
89
|
-
readonly 900: string;
|
|
90
|
-
} | {
|
|
91
|
-
readonly 50: string;
|
|
92
|
-
readonly 100: string;
|
|
93
|
-
readonly 200: string;
|
|
94
|
-
readonly 300: string;
|
|
95
|
-
readonly 400: string;
|
|
96
|
-
readonly 500: string;
|
|
97
|
-
readonly 600: string;
|
|
98
|
-
readonly 700: string;
|
|
99
|
-
readonly 800: string;
|
|
100
|
-
readonly 900: string;
|
|
101
|
-
} | {
|
|
102
|
-
readonly DEFAULT: string;
|
|
103
|
-
} | {
|
|
104
|
-
readonly DEFAULT: string;
|
|
105
|
-
} | {
|
|
106
|
-
readonly 50: string;
|
|
107
|
-
readonly 100: string;
|
|
108
|
-
readonly 200: string;
|
|
109
|
-
readonly 300: string;
|
|
110
|
-
readonly 400: string;
|
|
111
|
-
readonly 500: string;
|
|
112
|
-
readonly 600: string;
|
|
113
|
-
readonly 700: string;
|
|
114
|
-
readonly 800: string;
|
|
115
|
-
readonly 900: string;
|
|
116
|
-
} | {
|
|
117
|
-
readonly 50: string;
|
|
118
|
-
readonly 100: string;
|
|
119
|
-
readonly 200: string;
|
|
120
|
-
readonly 300: string;
|
|
121
|
-
readonly 400: string;
|
|
122
|
-
readonly 500: string;
|
|
123
|
-
readonly 600: string;
|
|
124
|
-
readonly 700: string;
|
|
125
|
-
readonly 800: string;
|
|
126
|
-
readonly 900: string;
|
|
127
|
-
} | {
|
|
128
|
-
readonly 50: string;
|
|
129
|
-
readonly 100: string;
|
|
130
|
-
readonly 200: string;
|
|
131
|
-
readonly 300: string;
|
|
132
|
-
readonly 400: string;
|
|
133
|
-
readonly 500: string;
|
|
134
|
-
readonly 600: string;
|
|
135
|
-
readonly 700: string;
|
|
136
|
-
readonly 800: string;
|
|
137
|
-
readonly 900: string;
|
|
138
|
-
} | {
|
|
139
|
-
readonly 50: string;
|
|
140
|
-
readonly 100: string;
|
|
141
|
-
readonly 200: string;
|
|
142
|
-
readonly 300: string;
|
|
143
|
-
readonly 400: string;
|
|
144
|
-
readonly 500: string;
|
|
145
|
-
readonly 600: string;
|
|
146
|
-
readonly 700: string;
|
|
147
|
-
readonly 800: string;
|
|
148
|
-
readonly 900: string;
|
|
149
|
-
} | {
|
|
150
|
-
readonly 50: string;
|
|
151
|
-
readonly 100: string;
|
|
152
|
-
readonly 200: string;
|
|
153
|
-
readonly 300: string;
|
|
154
|
-
readonly 400: string;
|
|
155
|
-
readonly 500: string;
|
|
156
|
-
readonly 600: string;
|
|
157
|
-
readonly 700: string;
|
|
158
|
-
readonly 800: string;
|
|
159
|
-
readonly 900: string;
|
|
160
|
-
} | {
|
|
161
|
-
readonly 50: string;
|
|
162
|
-
readonly 100: string;
|
|
163
|
-
readonly 200: string;
|
|
164
|
-
readonly 300: string;
|
|
165
|
-
readonly 400: string;
|
|
166
|
-
readonly 500: string;
|
|
167
|
-
readonly 600: string;
|
|
168
|
-
readonly 700: string;
|
|
169
|
-
readonly 800: string;
|
|
170
|
-
readonly 900: string;
|
|
171
|
-
} | {
|
|
172
|
-
readonly 50: string;
|
|
173
|
-
readonly 100: string;
|
|
174
|
-
readonly 200: string;
|
|
175
|
-
readonly 300: string;
|
|
176
|
-
readonly 400: string;
|
|
177
|
-
readonly 500: string;
|
|
178
|
-
readonly 600: string;
|
|
179
|
-
readonly 700: string;
|
|
180
|
-
readonly 800: string;
|
|
181
|
-
readonly 900: string;
|
|
182
|
-
} | {
|
|
183
|
-
readonly 50: string;
|
|
184
|
-
readonly 100: string;
|
|
185
|
-
readonly 200: string;
|
|
186
|
-
readonly 300: string;
|
|
187
|
-
readonly 400: string;
|
|
188
|
-
readonly 500: string;
|
|
189
|
-
readonly 600: string;
|
|
190
|
-
readonly 700: string;
|
|
191
|
-
readonly 800: string;
|
|
192
|
-
readonly 900: string;
|
|
193
|
-
} | {
|
|
194
|
-
readonly 50: string;
|
|
195
|
-
readonly 100: string;
|
|
196
|
-
readonly 200: string;
|
|
197
|
-
readonly 300: string;
|
|
198
|
-
readonly 400: string;
|
|
199
|
-
readonly 500: string;
|
|
200
|
-
readonly 600: string;
|
|
201
|
-
readonly 700: string;
|
|
202
|
-
readonly 800: string;
|
|
203
|
-
readonly 900: string;
|
|
204
|
-
} | {
|
|
205
|
-
readonly 50: string;
|
|
206
|
-
readonly 100: string;
|
|
207
|
-
readonly 200: string;
|
|
208
|
-
readonly 300: string;
|
|
209
|
-
readonly 400: string;
|
|
210
|
-
readonly 500: string;
|
|
211
|
-
readonly 600: string;
|
|
212
|
-
readonly 700: string;
|
|
213
|
-
readonly 800: string;
|
|
214
|
-
readonly 900: string;
|
|
215
|
-
} | {
|
|
216
|
-
readonly 50: string;
|
|
217
|
-
readonly 100: string;
|
|
218
|
-
readonly 200: string;
|
|
219
|
-
readonly 300: string;
|
|
220
|
-
readonly 400: string;
|
|
221
|
-
readonly 500: string;
|
|
222
|
-
readonly 600: string;
|
|
223
|
-
readonly 700: string;
|
|
224
|
-
readonly 800: string;
|
|
225
|
-
readonly 900: string;
|
|
226
|
-
} | {
|
|
227
|
-
readonly DEFAULT: string;
|
|
228
|
-
} | {
|
|
229
|
-
readonly DEFAULT: string;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
1
|
+
import { ThemeColorsObject } from "@trackunit/ui-design-tokens";
|
|
2
|
+
/**
|
|
3
|
+
* Converts the theme colors object to a variable object definition.
|
|
4
|
+
* This is used to generate the css custom properties for the theme colors.
|
|
5
|
+
*
|
|
6
|
+
* Remember to place it in the `variables` and `color` section of the tailwind config.
|
|
7
|
+
*
|
|
8
|
+
* @example ```js
|
|
9
|
+
* variables: {
|
|
10
|
+
* DEFAULT: {
|
|
11
|
+
* color: {
|
|
12
|
+
* ...themeColorsToVariableObjectDefinition(themeColors),
|
|
13
|
+
* },
|
|
14
|
+
* },
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function themeColorsToVariableObjectDefinition(themeColors: ThemeColorsObject): {
|
|
19
|
+
[k: string]: {
|
|
20
|
+
readonly AREA: string;
|
|
21
|
+
readonly CLASSIC_POI: string;
|
|
22
|
+
readonly CLASSIC_ZONE: string;
|
|
23
|
+
readonly DEPOT: string;
|
|
24
|
+
readonly WORK_PLACE: string;
|
|
25
|
+
readonly CONSTRUCTION_SITE: string;
|
|
26
|
+
readonly UNKNOWN: string;
|
|
27
|
+
} | {
|
|
28
|
+
readonly 100: string;
|
|
29
|
+
readonly 600: string;
|
|
30
|
+
} | {
|
|
31
|
+
readonly 100: string;
|
|
32
|
+
readonly 600: string;
|
|
33
|
+
} | {
|
|
34
|
+
readonly 100: string;
|
|
35
|
+
readonly 600: string;
|
|
36
|
+
} | {
|
|
37
|
+
readonly 100: string;
|
|
38
|
+
readonly 600: string;
|
|
39
|
+
} | {
|
|
40
|
+
readonly 100: string;
|
|
41
|
+
readonly 600: string;
|
|
42
|
+
} | {
|
|
43
|
+
readonly 100: string;
|
|
44
|
+
readonly 600: string;
|
|
45
|
+
} | {
|
|
46
|
+
readonly 100: string;
|
|
47
|
+
readonly 600: string;
|
|
48
|
+
} | {
|
|
49
|
+
readonly 300: string;
|
|
50
|
+
readonly 400: string;
|
|
51
|
+
} | {
|
|
52
|
+
readonly 400: string;
|
|
53
|
+
readonly 600: string;
|
|
54
|
+
} | {
|
|
55
|
+
readonly 300: string;
|
|
56
|
+
readonly 500: string;
|
|
57
|
+
} | {
|
|
58
|
+
readonly 50: string;
|
|
59
|
+
readonly 100: string;
|
|
60
|
+
readonly 200: string;
|
|
61
|
+
readonly 300: string;
|
|
62
|
+
readonly 400: string;
|
|
63
|
+
readonly 500: string;
|
|
64
|
+
readonly 600: string;
|
|
65
|
+
readonly 700: string;
|
|
66
|
+
readonly 800: string;
|
|
67
|
+
readonly 900: string;
|
|
68
|
+
} | {
|
|
69
|
+
readonly 50: string;
|
|
70
|
+
readonly 100: string;
|
|
71
|
+
readonly 200: string;
|
|
72
|
+
readonly 300: string;
|
|
73
|
+
readonly 400: string;
|
|
74
|
+
readonly 500: string;
|
|
75
|
+
readonly 600: string;
|
|
76
|
+
readonly 700: string;
|
|
77
|
+
readonly 800: string;
|
|
78
|
+
readonly 900: string;
|
|
79
|
+
} | {
|
|
80
|
+
readonly 50: string;
|
|
81
|
+
readonly 100: string;
|
|
82
|
+
readonly 200: string;
|
|
83
|
+
readonly 300: string;
|
|
84
|
+
readonly 400: string;
|
|
85
|
+
readonly 500: string;
|
|
86
|
+
readonly 600: string;
|
|
87
|
+
readonly 700: string;
|
|
88
|
+
readonly 800: string;
|
|
89
|
+
readonly 900: string;
|
|
90
|
+
} | {
|
|
91
|
+
readonly 50: string;
|
|
92
|
+
readonly 100: string;
|
|
93
|
+
readonly 200: string;
|
|
94
|
+
readonly 300: string;
|
|
95
|
+
readonly 400: string;
|
|
96
|
+
readonly 500: string;
|
|
97
|
+
readonly 600: string;
|
|
98
|
+
readonly 700: string;
|
|
99
|
+
readonly 800: string;
|
|
100
|
+
readonly 900: string;
|
|
101
|
+
} | {
|
|
102
|
+
readonly DEFAULT: string;
|
|
103
|
+
} | {
|
|
104
|
+
readonly DEFAULT: string;
|
|
105
|
+
} | {
|
|
106
|
+
readonly 50: string;
|
|
107
|
+
readonly 100: string;
|
|
108
|
+
readonly 200: string;
|
|
109
|
+
readonly 300: string;
|
|
110
|
+
readonly 400: string;
|
|
111
|
+
readonly 500: string;
|
|
112
|
+
readonly 600: string;
|
|
113
|
+
readonly 700: string;
|
|
114
|
+
readonly 800: string;
|
|
115
|
+
readonly 900: string;
|
|
116
|
+
} | {
|
|
117
|
+
readonly 50: string;
|
|
118
|
+
readonly 100: string;
|
|
119
|
+
readonly 200: string;
|
|
120
|
+
readonly 300: string;
|
|
121
|
+
readonly 400: string;
|
|
122
|
+
readonly 500: string;
|
|
123
|
+
readonly 600: string;
|
|
124
|
+
readonly 700: string;
|
|
125
|
+
readonly 800: string;
|
|
126
|
+
readonly 900: string;
|
|
127
|
+
} | {
|
|
128
|
+
readonly 50: string;
|
|
129
|
+
readonly 100: string;
|
|
130
|
+
readonly 200: string;
|
|
131
|
+
readonly 300: string;
|
|
132
|
+
readonly 400: string;
|
|
133
|
+
readonly 500: string;
|
|
134
|
+
readonly 600: string;
|
|
135
|
+
readonly 700: string;
|
|
136
|
+
readonly 800: string;
|
|
137
|
+
readonly 900: string;
|
|
138
|
+
} | {
|
|
139
|
+
readonly 50: string;
|
|
140
|
+
readonly 100: string;
|
|
141
|
+
readonly 200: string;
|
|
142
|
+
readonly 300: string;
|
|
143
|
+
readonly 400: string;
|
|
144
|
+
readonly 500: string;
|
|
145
|
+
readonly 600: string;
|
|
146
|
+
readonly 700: string;
|
|
147
|
+
readonly 800: string;
|
|
148
|
+
readonly 900: string;
|
|
149
|
+
} | {
|
|
150
|
+
readonly 50: string;
|
|
151
|
+
readonly 100: string;
|
|
152
|
+
readonly 200: string;
|
|
153
|
+
readonly 300: string;
|
|
154
|
+
readonly 400: string;
|
|
155
|
+
readonly 500: string;
|
|
156
|
+
readonly 600: string;
|
|
157
|
+
readonly 700: string;
|
|
158
|
+
readonly 800: string;
|
|
159
|
+
readonly 900: string;
|
|
160
|
+
} | {
|
|
161
|
+
readonly 50: string;
|
|
162
|
+
readonly 100: string;
|
|
163
|
+
readonly 200: string;
|
|
164
|
+
readonly 300: string;
|
|
165
|
+
readonly 400: string;
|
|
166
|
+
readonly 500: string;
|
|
167
|
+
readonly 600: string;
|
|
168
|
+
readonly 700: string;
|
|
169
|
+
readonly 800: string;
|
|
170
|
+
readonly 900: string;
|
|
171
|
+
} | {
|
|
172
|
+
readonly 50: string;
|
|
173
|
+
readonly 100: string;
|
|
174
|
+
readonly 200: string;
|
|
175
|
+
readonly 300: string;
|
|
176
|
+
readonly 400: string;
|
|
177
|
+
readonly 500: string;
|
|
178
|
+
readonly 600: string;
|
|
179
|
+
readonly 700: string;
|
|
180
|
+
readonly 800: string;
|
|
181
|
+
readonly 900: string;
|
|
182
|
+
} | {
|
|
183
|
+
readonly 50: string;
|
|
184
|
+
readonly 100: string;
|
|
185
|
+
readonly 200: string;
|
|
186
|
+
readonly 300: string;
|
|
187
|
+
readonly 400: string;
|
|
188
|
+
readonly 500: string;
|
|
189
|
+
readonly 600: string;
|
|
190
|
+
readonly 700: string;
|
|
191
|
+
readonly 800: string;
|
|
192
|
+
readonly 900: string;
|
|
193
|
+
} | {
|
|
194
|
+
readonly 50: string;
|
|
195
|
+
readonly 100: string;
|
|
196
|
+
readonly 200: string;
|
|
197
|
+
readonly 300: string;
|
|
198
|
+
readonly 400: string;
|
|
199
|
+
readonly 500: string;
|
|
200
|
+
readonly 600: string;
|
|
201
|
+
readonly 700: string;
|
|
202
|
+
readonly 800: string;
|
|
203
|
+
readonly 900: string;
|
|
204
|
+
} | {
|
|
205
|
+
readonly 50: string;
|
|
206
|
+
readonly 100: string;
|
|
207
|
+
readonly 200: string;
|
|
208
|
+
readonly 300: string;
|
|
209
|
+
readonly 400: string;
|
|
210
|
+
readonly 500: string;
|
|
211
|
+
readonly 600: string;
|
|
212
|
+
readonly 700: string;
|
|
213
|
+
readonly 800: string;
|
|
214
|
+
readonly 900: string;
|
|
215
|
+
} | {
|
|
216
|
+
readonly 50: string;
|
|
217
|
+
readonly 100: string;
|
|
218
|
+
readonly 200: string;
|
|
219
|
+
readonly 300: string;
|
|
220
|
+
readonly 400: string;
|
|
221
|
+
readonly 500: string;
|
|
222
|
+
readonly 600: string;
|
|
223
|
+
readonly 700: string;
|
|
224
|
+
readonly 800: string;
|
|
225
|
+
readonly 900: string;
|
|
226
|
+
} | {
|
|
227
|
+
readonly DEFAULT: string;
|
|
228
|
+
} | {
|
|
229
|
+
readonly DEFAULT: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import "@trackunit/css-core";
|
|
2
|
-
/**
|
|
3
|
-
* Gets the value of a color from the css custom properties TailwindCSS theme.
|
|
4
|
-
* Looks in `theme.css` and `tailwind-custom-properties.css`.
|
|
5
|
-
*
|
|
6
|
-
* @param {string} customProperty The property name
|
|
7
|
-
* @returns {string} The value of the color "RRR GGG BBB" or "unknown value" if the color is not found.
|
|
8
|
-
*/
|
|
9
|
-
export declare function getColorValueFromCSSVariable(customProperty: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* A function to handle the tailwind opacity value for custom colors.
|
|
12
|
-
* Source: https://tailwindcss.com/docs/customizing-colors#using-css-variables
|
|
13
|
-
*
|
|
14
|
-
* @param {string} variable - The name of the css custom property.
|
|
15
|
-
* @returns {string} RGB color value and a comment with the actual value for the TailwindCSS Extension.
|
|
16
|
-
*/
|
|
17
|
-
export declare function withOpacityValue(variable: string): ({ opacityValue }: {
|
|
18
|
-
opacityValue?: string | undefined;
|
|
19
|
-
}) => string;
|
|
20
|
-
/**
|
|
21
|
-
* Returns an object with the color values for the TailwindCSS configuration.
|
|
22
|
-
*
|
|
23
|
-
* @param {string} colorName the name of the color
|
|
24
|
-
* @param {string} keys Default: ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]
|
|
25
|
-
* @returns {*} An object with each of the keys and the corresponding color css custom property.
|
|
26
|
-
*/
|
|
27
|
-
export declare function fullColorSchemeFromColorName(colorName: string, keys?: string[]):
|
|
28
|
-
/**
|
|
29
|
-
* Get the value of a custom property from a css file.
|
|
30
|
-
*
|
|
31
|
-
* @param customProperty - The name of the css custom property.
|
|
32
|
-
* @param file A string representing the file contents of the css file.
|
|
33
|
-
* @returns {string} A string representing the value of the css custom property or "unknown value" if the custom property is not found.
|
|
34
|
-
*/
|
|
35
|
-
export declare function getValueOfCSSCustomProperty(customProperty: string, file: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the css custom property with a comment containing the actual value of the custom property.
|
|
38
|
-
*
|
|
39
|
-
* @param {string} customProperty - The name of the css custom property.
|
|
40
|
-
* @param {string} [append=""] - A string to append to the comment.
|
|
41
|
-
* @param {*} [file=tailwindTheme] Default: tailwind-custom-properties.css
|
|
42
|
-
* @returns {string} A string representing the css custom property with a comment containing the actual value of the custom property.
|
|
43
|
-
*/
|
|
44
|
-
export declare function withCustomPropertyValueAsComment(customProperty: string, append?: string, file?: string): string;
|
|
1
|
+
import "@trackunit/css-core";
|
|
2
|
+
/**
|
|
3
|
+
* Gets the value of a color from the css custom properties TailwindCSS theme.
|
|
4
|
+
* Looks in `theme.css` and `tailwind-custom-properties.css`.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} customProperty The property name
|
|
7
|
+
* @returns {string} The value of the color "RRR GGG BBB" or "unknown value" if the color is not found.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getColorValueFromCSSVariable(customProperty: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* A function to handle the tailwind opacity value for custom colors.
|
|
12
|
+
* Source: https://tailwindcss.com/docs/customizing-colors#using-css-variables
|
|
13
|
+
*
|
|
14
|
+
* @param {string} variable - The name of the css custom property.
|
|
15
|
+
* @returns {string} RGB color value and a comment with the actual value for the TailwindCSS Extension.
|
|
16
|
+
*/
|
|
17
|
+
export declare function withOpacityValue(variable: string): ({ opacityValue }: {
|
|
18
|
+
opacityValue?: string | undefined;
|
|
19
|
+
}) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns an object with the color values for the TailwindCSS configuration.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} colorName the name of the color
|
|
24
|
+
* @param {string} keys Default: ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]
|
|
25
|
+
* @returns {*} An object with each of the keys and the corresponding color css custom property.
|
|
26
|
+
*/
|
|
27
|
+
export declare function fullColorSchemeFromColorName(colorName: string, keys?: string[]): Record<string, Function>;
|
|
28
|
+
/**
|
|
29
|
+
* Get the value of a custom property from a css file.
|
|
30
|
+
*
|
|
31
|
+
* @param customProperty - The name of the css custom property.
|
|
32
|
+
* @param file A string representing the file contents of the css file.
|
|
33
|
+
* @returns {string} A string representing the value of the css custom property or "unknown value" if the custom property is not found.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getValueOfCSSCustomProperty(customProperty: string, file: string): string;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the css custom property with a comment containing the actual value of the custom property.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} customProperty - The name of the css custom property.
|
|
40
|
+
* @param {string} [append=""] - A string to append to the comment.
|
|
41
|
+
* @param {*} [file=tailwindTheme] Default: tailwind-custom-properties.css
|
|
42
|
+
* @returns {string} A string representing the css custom property with a comment containing the actual value of the custom property.
|
|
43
|
+
*/
|
|
44
|
+
export declare function withCustomPropertyValueAsComment(customProperty: string, append?: string, file?: string): string;
|
|
@@ -926,9 +926,17 @@ var animations = {
|
|
|
926
926
|
"slide-in-bottom": "slideInBottom 0.2s ease-in-out forwards",
|
|
927
927
|
"ping-sm": "pingSm 1s cubic-bezier(0, 0, 0.2, 1) infinite",
|
|
928
928
|
"bg-scroll-br": "bgScrollBR 10s ease infinite",
|
|
929
|
+
"modal-fade": "modalFade 0.3s ease-in-out 1 forwards",
|
|
929
930
|
"fade-in-rising": "fadeInRising 0.2s ease-in"
|
|
930
931
|
},
|
|
931
932
|
keyframes: {
|
|
933
|
+
modalFade: {
|
|
934
|
+
from: {
|
|
935
|
+
opacity: "0",
|
|
936
|
+
visibility: "hidden"
|
|
937
|
+
},
|
|
938
|
+
to: { opacity: "1", visibility: "visible" }
|
|
939
|
+
},
|
|
932
940
|
copy: {
|
|
933
941
|
from: {
|
|
934
942
|
color: "green",
|