@trackunit/css-component-tokens 0.0.9 → 0.0.12
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/index.cjs +195 -1995
- package/package.json +2 -2
- package/src/component-tokens/ComponentTokenVariablesByThemeName.d.ts +40 -2
- package/src/component-tokens/ComponentTokens.d.ts +48 -2
- package/src/component-tokens/components/BaseInput.tokens.d.ts +27 -0
- package/src/component-tokens/components/Button.tokens.d.ts +2 -2
- package/src/component-tokens/components/FormGroup.tokens.d.ts +21 -0
- package/src/component-tokens/pluginUtilityFunctions.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-component-tokens",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"types": "./src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"csstype": "3.1.1",
|
|
11
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.
|
|
11
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.5"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {}
|
|
14
14
|
}
|
|
@@ -75,8 +75,8 @@ export declare const getComponentTokenVariablesByThemeName: (theme: ThemeNames,
|
|
|
75
75
|
readonly height: "55px";
|
|
76
76
|
};
|
|
77
77
|
readonly padding: {
|
|
78
|
-
readonly paddingLeft: "var(--spacing-
|
|
79
|
-
readonly paddingRight: "var(--spacing-
|
|
78
|
+
readonly paddingLeft: "var(--spacing-12)";
|
|
79
|
+
readonly paddingRight: "var(--spacing-12)";
|
|
80
80
|
};
|
|
81
81
|
} | {
|
|
82
82
|
readonly width: {
|
|
@@ -172,5 +172,43 @@ export declare const getComponentTokenVariablesByThemeName: (theme: ThemeNames,
|
|
|
172
172
|
readonly border: {
|
|
173
173
|
readonly borderRadius: "1rem";
|
|
174
174
|
};
|
|
175
|
+
} | {
|
|
176
|
+
readonly border: {
|
|
177
|
+
readonly borderRadius: "var(--border-radius-DEFAULT)";
|
|
178
|
+
readonly borderWidth: "1px";
|
|
179
|
+
};
|
|
180
|
+
readonly shadow: {
|
|
181
|
+
readonly boxShadow: "var(--box-shadow-sm)";
|
|
182
|
+
};
|
|
183
|
+
readonly background: {
|
|
184
|
+
readonly backgroundColor: "white";
|
|
185
|
+
};
|
|
186
|
+
} | {
|
|
187
|
+
readonly border: {
|
|
188
|
+
readonly borderRadius: "70px";
|
|
189
|
+
readonly borderWidth: "0px";
|
|
190
|
+
};
|
|
191
|
+
readonly shadow: {
|
|
192
|
+
readonly boxShadow: "none";
|
|
193
|
+
};
|
|
194
|
+
readonly background: {
|
|
195
|
+
readonly backgroundColor: "rgb(var(--color-stone-50))";
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
198
|
+
readonly gap: {
|
|
199
|
+
readonly display: "auto";
|
|
200
|
+
readonly gap: "auto";
|
|
201
|
+
};
|
|
202
|
+
readonly font: {
|
|
203
|
+
readonly fontWeight: "normal";
|
|
204
|
+
};
|
|
205
|
+
} | {
|
|
206
|
+
readonly gap: {
|
|
207
|
+
readonly display: "grid";
|
|
208
|
+
readonly gap: "var(--spacing-4)";
|
|
209
|
+
};
|
|
210
|
+
readonly font: {
|
|
211
|
+
readonly fontWeight: "700";
|
|
212
|
+
};
|
|
175
213
|
};
|
|
176
214
|
};
|
|
@@ -79,8 +79,8 @@ export declare const componentTokenDefinitions: {
|
|
|
79
79
|
readonly height: "55px";
|
|
80
80
|
};
|
|
81
81
|
readonly padding: {
|
|
82
|
-
readonly paddingLeft: "var(--spacing-
|
|
83
|
-
readonly paddingRight: "var(--spacing-
|
|
82
|
+
readonly paddingLeft: "var(--spacing-12)";
|
|
83
|
+
readonly paddingRight: "var(--spacing-12)";
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
86
|
};
|
|
@@ -190,6 +190,52 @@ export declare const componentTokenDefinitions: {
|
|
|
190
190
|
};
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
|
+
baseInput: {
|
|
194
|
+
readonly DEFAULT: {
|
|
195
|
+
readonly border: {
|
|
196
|
+
readonly borderRadius: "var(--border-radius-DEFAULT)";
|
|
197
|
+
readonly borderWidth: "1px";
|
|
198
|
+
};
|
|
199
|
+
readonly shadow: {
|
|
200
|
+
readonly boxShadow: "var(--box-shadow-sm)";
|
|
201
|
+
};
|
|
202
|
+
readonly background: {
|
|
203
|
+
readonly backgroundColor: "white";
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly "theme-marketing": {
|
|
207
|
+
readonly border: {
|
|
208
|
+
readonly borderRadius: "70px";
|
|
209
|
+
readonly borderWidth: "0px";
|
|
210
|
+
};
|
|
211
|
+
readonly shadow: {
|
|
212
|
+
readonly boxShadow: "none";
|
|
213
|
+
};
|
|
214
|
+
readonly background: {
|
|
215
|
+
readonly backgroundColor: "rgb(var(--color-stone-50))";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
formGroup: {
|
|
220
|
+
readonly DEFAULT: {
|
|
221
|
+
readonly gap: {
|
|
222
|
+
readonly display: "auto";
|
|
223
|
+
readonly gap: "auto";
|
|
224
|
+
};
|
|
225
|
+
readonly font: {
|
|
226
|
+
readonly fontWeight: "normal";
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
readonly "theme-marketing": {
|
|
230
|
+
readonly gap: {
|
|
231
|
+
readonly display: "grid";
|
|
232
|
+
readonly gap: "var(--spacing-4)";
|
|
233
|
+
};
|
|
234
|
+
readonly font: {
|
|
235
|
+
readonly fontWeight: "700";
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
193
239
|
};
|
|
194
240
|
export declare type ComponentTokenDefinitions = typeof componentTokenDefinitions;
|
|
195
241
|
export declare type ComponentNames = keyof typeof componentTokenDefinitions;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const BaseInputTokenDefinition: {
|
|
2
|
+
readonly DEFAULT: {
|
|
3
|
+
readonly border: {
|
|
4
|
+
readonly borderRadius: "var(--border-radius-DEFAULT)";
|
|
5
|
+
readonly borderWidth: "1px";
|
|
6
|
+
};
|
|
7
|
+
readonly shadow: {
|
|
8
|
+
readonly boxShadow: "var(--box-shadow-sm)";
|
|
9
|
+
};
|
|
10
|
+
readonly background: {
|
|
11
|
+
readonly backgroundColor: "white";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
readonly "theme-marketing": {
|
|
15
|
+
readonly border: {
|
|
16
|
+
readonly borderRadius: "70px";
|
|
17
|
+
readonly borderWidth: "0px";
|
|
18
|
+
};
|
|
19
|
+
readonly shadow: {
|
|
20
|
+
readonly boxShadow: "none";
|
|
21
|
+
};
|
|
22
|
+
readonly background: {
|
|
23
|
+
readonly backgroundColor: "rgb(var(--color-stone-50))";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default BaseInputTokenDefinition;
|
|
@@ -27,8 +27,8 @@ export declare const ButtonTokenDefinition: {
|
|
|
27
27
|
readonly height: "55px";
|
|
28
28
|
};
|
|
29
29
|
readonly padding: {
|
|
30
|
-
readonly paddingLeft: "var(--spacing-
|
|
31
|
-
readonly paddingRight: "var(--spacing-
|
|
30
|
+
readonly paddingLeft: "var(--spacing-12)";
|
|
31
|
+
readonly paddingRight: "var(--spacing-12)";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const FormGroupTokenDefinition: {
|
|
2
|
+
readonly DEFAULT: {
|
|
3
|
+
readonly gap: {
|
|
4
|
+
readonly display: "auto";
|
|
5
|
+
readonly gap: "auto";
|
|
6
|
+
};
|
|
7
|
+
readonly font: {
|
|
8
|
+
readonly fontWeight: "normal";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly "theme-marketing": {
|
|
12
|
+
readonly gap: {
|
|
13
|
+
readonly display: "grid";
|
|
14
|
+
readonly gap: "var(--spacing-4)";
|
|
15
|
+
};
|
|
16
|
+
readonly font: {
|
|
17
|
+
readonly fontWeight: "700";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default FormGroupTokenDefinition;
|