@trackunit/css-tailwind 0.0.93 → 0.0.94
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 +7 -7
- package/tailwind-base.generated.css +7 -7
- package/tailwind-base.generated.js +96 -106
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"main": "./index.cjs.js",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.x"
|
|
9
9
|
},
|
|
10
|
-
"type": "commonjs",
|
|
11
10
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"@trackunit/css-
|
|
14
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "
|
|
15
|
-
"@trackunit/ui-design-tokens": "
|
|
11
|
+
"tailwindcss": "3.2.4",
|
|
12
|
+
"@trackunit/css-component-tokens": "*",
|
|
13
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "*",
|
|
14
|
+
"@trackunit/ui-design-tokens": "*",
|
|
15
|
+
"@trackunit/css-core": "*"
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"type": "commonjs"
|
|
18
18
|
}
|
|
@@ -260,11 +260,11 @@
|
|
|
260
260
|
.rdp-day_selected:focus:not([disabled]) {
|
|
261
261
|
border: var(--rdp-outline-selected);
|
|
262
262
|
}
|
|
263
|
-
.rdp:not([dir=
|
|
263
|
+
.rdp:not([dir=rtl]) .rdp-day_range_start:not(.rdp-day_range_end) {
|
|
264
264
|
border-top-right-radius: 0;
|
|
265
265
|
border-bottom-right-radius: 0;
|
|
266
266
|
}
|
|
267
|
-
.rdp:not([dir=
|
|
267
|
+
.rdp:not([dir=rtl]) .rdp-day_range_end:not(.rdp-day_range_start) {
|
|
268
268
|
border-top-left-radius: 0;
|
|
269
269
|
border-bottom-left-radius: 0;
|
|
270
270
|
}
|
|
@@ -335,28 +335,28 @@
|
|
|
335
335
|
/* libs/css/core/src/lib/fonts.css */
|
|
336
336
|
@font-face {
|
|
337
337
|
font-family: "GT Walsheim";
|
|
338
|
-
src: url(./GT-Walsheim-Light-VL62J6E3.woff2) format("woff2");
|
|
338
|
+
src: url("./GT-Walsheim-Light-VL62J6E3.woff2") format("woff2");
|
|
339
339
|
font-weight: 300;
|
|
340
340
|
}
|
|
341
341
|
@font-face {
|
|
342
342
|
font-family: "GT Walsheim";
|
|
343
|
-
src: url(./GT-Walsheim-Regular-GNMGHH5F.woff2) format("woff2");
|
|
343
|
+
src: url("./GT-Walsheim-Regular-GNMGHH5F.woff2") format("woff2");
|
|
344
344
|
font-weight: 400;
|
|
345
345
|
}
|
|
346
346
|
@font-face {
|
|
347
347
|
font-family: "GT Walsheim";
|
|
348
|
-
src: url(./GT-Walsheim-Regular-Oblique-2OUASC3S.woff2) format("woff2");
|
|
348
|
+
src: url("./GT-Walsheim-Regular-Oblique-2OUASC3S.woff2") format("woff2");
|
|
349
349
|
font-weight: 400;
|
|
350
350
|
font-style: italic;
|
|
351
351
|
}
|
|
352
352
|
@font-face {
|
|
353
353
|
font-family: "GT Walsheim";
|
|
354
|
-
src: url(./GT-Walsheim-Medium-3CTRSVVD.woff2) format("woff2");
|
|
354
|
+
src: url("./GT-Walsheim-Medium-3CTRSVVD.woff2") format("woff2");
|
|
355
355
|
font-weight: 500;
|
|
356
356
|
}
|
|
357
357
|
@font-face {
|
|
358
358
|
font-family: "GT Walsheim";
|
|
359
|
-
src: url(./GT-Walsheim-Bold-DGVXLJI5.woff2) format("woff2");
|
|
359
|
+
src: url("./GT-Walsheim-Bold-DGVXLJI5.woff2") format("woff2");
|
|
360
360
|
font-weight: 700;
|
|
361
361
|
}
|
|
362
362
|
:root {
|
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __defProps = Object.defineProperties;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
10
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
-
var __defNormalProp = (obj, key, value) =>
|
|
13
|
-
key in obj
|
|
14
|
-
? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value })
|
|
15
|
-
: (obj[key] = value);
|
|
16
|
-
var __spreadValues = (a, b) => {
|
|
17
|
-
for (var prop in (b ||= {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
18
|
-
if (__getOwnPropSymbols)
|
|
19
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
20
|
-
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
21
|
-
}
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
8
|
var __commonJS = (cb, mod) =>
|
|
26
9
|
function __require() {
|
|
27
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -113,6 +96,7 @@ var require_create_plugin = __commonJS({
|
|
|
113
96
|
// node_modules/tailwindcss/plugin.js
|
|
114
97
|
var require_plugin = __commonJS({
|
|
115
98
|
"node_modules/tailwindcss/plugin.js"(exports, module2) {
|
|
99
|
+
"use strict";
|
|
116
100
|
var createPlugin = require_create_plugin();
|
|
117
101
|
module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
118
102
|
},
|
|
@@ -138,7 +122,7 @@ var flattenVariablesDeclerationValues = (values, output = {}, keys = []) => {
|
|
|
138
122
|
} else {
|
|
139
123
|
flattend[keysToCssVariableName([...keys, key])] = value;
|
|
140
124
|
}
|
|
141
|
-
output =
|
|
125
|
+
output = { ...flattend, ...output };
|
|
142
126
|
}
|
|
143
127
|
return output;
|
|
144
128
|
};
|
|
@@ -719,19 +703,22 @@ var sitesPalette = {
|
|
|
719
703
|
UNKNOWN: tailwindPalette.neutral["500"],
|
|
720
704
|
},
|
|
721
705
|
};
|
|
722
|
-
var trackunitPalette =
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
706
|
+
var trackunitPalette = {
|
|
707
|
+
// General
|
|
708
|
+
...generalPalette,
|
|
709
|
+
// UI Intent
|
|
710
|
+
...intentPalette,
|
|
711
|
+
// Asset Criticality
|
|
712
|
+
...criticalityPalette,
|
|
713
|
+
// Activity
|
|
714
|
+
...activityPalette,
|
|
715
|
+
// Utilization
|
|
716
|
+
...utilizationPalette,
|
|
717
|
+
// Rental
|
|
718
|
+
...rentalStatusPalette,
|
|
719
|
+
// Sites
|
|
720
|
+
...sitesPalette,
|
|
721
|
+
};
|
|
735
722
|
|
|
736
723
|
// libs/ui/design-tokens/src/tokens/colors/colors.ts
|
|
737
724
|
var themeColors = {
|
|
@@ -1189,7 +1176,7 @@ var remToPx = (value, fontSize2 = 16) => {
|
|
|
1189
1176
|
} else {
|
|
1190
1177
|
return value;
|
|
1191
1178
|
}
|
|
1192
|
-
} catch
|
|
1179
|
+
} catch {
|
|
1193
1180
|
return value;
|
|
1194
1181
|
}
|
|
1195
1182
|
};
|
|
@@ -1249,10 +1236,9 @@ function fullColorSchemeFromColorName(
|
|
|
1249
1236
|
return colors;
|
|
1250
1237
|
}
|
|
1251
1238
|
function getValueOfCSSCustomProperty(customProperty, file) {
|
|
1252
|
-
var _a;
|
|
1253
1239
|
const regex = new RegExp(`${customProperty}:\\s*(.*?);`, "g");
|
|
1254
1240
|
const match = regex.exec(file);
|
|
1255
|
-
return
|
|
1241
|
+
return match?.[1] ?? "unknown value";
|
|
1256
1242
|
}
|
|
1257
1243
|
function withCustomPropertyValueAsComment(customProperty, append = "", file) {
|
|
1258
1244
|
file = file || getCssDesignTokens();
|
|
@@ -1279,91 +1265,95 @@ var tailwindBaseConfig = {
|
|
|
1279
1265
|
fullColorSchemeFromColorName(key, Object.keys(value)),
|
|
1280
1266
|
])
|
|
1281
1267
|
);
|
|
1282
|
-
return
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
customColors
|
|
1295
|
-
);
|
|
1268
|
+
return {
|
|
1269
|
+
e2e: {
|
|
1270
|
+
DEFAULT: "rgb(255, 20, 147)",
|
|
1271
|
+
},
|
|
1272
|
+
inherit: colors.inherit,
|
|
1273
|
+
current: colors.current,
|
|
1274
|
+
transparent: colors.transparent,
|
|
1275
|
+
// Tailwind Defaults
|
|
1276
|
+
...tailwindDefaults,
|
|
1277
|
+
// Custom Colors
|
|
1278
|
+
...customColors,
|
|
1279
|
+
};
|
|
1296
1280
|
},
|
|
1297
|
-
spacing:
|
|
1281
|
+
spacing: {
|
|
1282
|
+
...designTokensToTailwindConfig("spacing", themeSpacing),
|
|
1298
1283
|
"responsive-space": withCustomPropertyValueAsComment("--spacing-responsive-space"),
|
|
1299
1284
|
"table-spacing": withCustomPropertyValueAsComment("--table-spacing"),
|
|
1300
|
-
}
|
|
1285
|
+
},
|
|
1301
1286
|
borderRadius: designTokensToTailwindConfig("border-radius", themeBorderRadius),
|
|
1302
1287
|
boxShadow: designTokensToTailwindConfig("box-shadow", themeBoxShadow),
|
|
1303
1288
|
fontSize: designTokensToFontSizeTailwindConfig(themeFontSize),
|
|
1304
|
-
extend:
|
|
1289
|
+
extend: {
|
|
1290
|
+
...animations,
|
|
1291
|
+
...grids,
|
|
1292
|
+
...containers,
|
|
1305
1293
|
zIndex: designTokensToTailwindConfig("z", themeZIndex),
|
|
1306
|
-
}
|
|
1294
|
+
},
|
|
1307
1295
|
variables: {
|
|
1308
1296
|
"theme-marketing": {
|
|
1309
|
-
color:
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
),
|
|
1297
|
+
color: {
|
|
1298
|
+
...tailwindPalette,
|
|
1299
|
+
...themeColorsToVariableObjectDefinition(themeColors),
|
|
1300
|
+
stone: {
|
|
1301
|
+
50: "251 249 249",
|
|
1302
|
+
100: "243 237 237",
|
|
1303
|
+
200: "234 222 222",
|
|
1304
|
+
300: "219 198 198",
|
|
1305
|
+
400: "196 165 165",
|
|
1306
|
+
500: "173 134 134",
|
|
1307
|
+
600: "150 108 108",
|
|
1308
|
+
700: "125 88 88",
|
|
1309
|
+
800: "105 75 75",
|
|
1310
|
+
900: "89 67 67",
|
|
1311
|
+
},
|
|
1312
|
+
primary: {
|
|
1313
|
+
50: "254 236 235",
|
|
1314
|
+
100: "254 236 235",
|
|
1315
|
+
200: "254 217 215",
|
|
1316
|
+
300: "253 180 176",
|
|
1317
|
+
400: "251 142 136",
|
|
1318
|
+
500: "250 104 97",
|
|
1319
|
+
600: "249 66 58",
|
|
1320
|
+
700: "238 19 7",
|
|
1321
|
+
800: "178 14 5",
|
|
1322
|
+
900: "119 9 4",
|
|
1323
|
+
},
|
|
1324
|
+
secondary: {
|
|
1325
|
+
50: "238 243 246",
|
|
1326
|
+
100: "238 243 246",
|
|
1327
|
+
200: "222 231 237",
|
|
1328
|
+
300: "189 208 219",
|
|
1329
|
+
400: "155 184 202",
|
|
1330
|
+
500: "122 160 184",
|
|
1331
|
+
600: "89 137 166",
|
|
1332
|
+
700: "71 109 133",
|
|
1333
|
+
800: "53 82 100",
|
|
1334
|
+
900: "36 55 66",
|
|
1335
|
+
},
|
|
1336
|
+
accent: {
|
|
1337
|
+
50: "255 246 240",
|
|
1338
|
+
100: "255 246 240",
|
|
1339
|
+
200: "255 238 224",
|
|
1340
|
+
300: "255 223 199",
|
|
1341
|
+
400: "255 206 168",
|
|
1342
|
+
500: "255 191 143",
|
|
1343
|
+
600: "255 173 112",
|
|
1344
|
+
700: "255 134 41",
|
|
1345
|
+
800: "219 95 0",
|
|
1346
|
+
900: "148 64 0",
|
|
1347
|
+
},
|
|
1348
|
+
},
|
|
1362
1349
|
},
|
|
1363
1350
|
DEFAULT: {
|
|
1364
1351
|
"border-radius": themeBorderRadius,
|
|
1365
1352
|
"box-shadow": themeBoxShadow,
|
|
1366
|
-
color:
|
|
1353
|
+
color: {
|
|
1354
|
+
...tailwindPalette,
|
|
1355
|
+
...themeColorsToVariableObjectDefinition(themeColors),
|
|
1356
|
+
},
|
|
1367
1357
|
"font-size": themeFontSize,
|
|
1368
1358
|
"line-height": themeLineHeight,
|
|
1369
1359
|
spacing: themeSpacing,
|