@trackunit/css-tailwind 0.0.1-alpha-59a0a75488.0
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/README.md +20 -0
- package/index.cjs +2 -0
- package/index.d.ts +0 -0
- package/lib/animations.d.ts +6 -0
- package/lib/grids.d.ts +6 -0
- package/lib/tailwind-base.d.ts +3 -0
- package/lib/utilities.d.ts +44 -0
- package/package.json +13 -0
- package/tailwind-base.generated.css +819 -0
- package/tailwind-base.generated.js +636 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
> **⚠️ Beta**
|
|
2
|
+
>
|
|
3
|
+
> This is a beta version and subject to change without notice.
|
|
4
|
+
|
|
5
|
+
# Trackunit CSS Tailwind
|
|
6
|
+
|
|
7
|
+
This package exposes the Trackunit Tailwind configuration.
|
|
8
|
+
The Tailwind configuration from this package is used by the Trackunit Manager as well as the Iris App SDK.
|
|
9
|
+
|
|
10
|
+
Our custom Theme is defined by the Tailwind configuration tailwind-base.generated.js.
|
|
11
|
+
|
|
12
|
+
Trackunit Iris Apps are used by external developers to integrate custom functionality into [the Trackunit Manager platform](https://www.trackunit.com/services/manager/).
|
|
13
|
+
|
|
14
|
+
For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
|
|
15
|
+
|
|
16
|
+
## Trackunit
|
|
17
|
+
This package was developed by Trackunit ApS.
|
|
18
|
+
Trackunit is the leading SaaS-based IoT solution for the construction industry, offering an ecosystem of hardware, fleet management software & telematics.
|
|
19
|
+
|
|
20
|
+

|
package/index.cjs
ADDED
package/index.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +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"];
|
package/lib/grids.d.ts
ADDED
|
@@ -0,0 +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;
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@trackunit/css-tailwind",
|
|
3
|
+
"version": "0.0.1-alpha-59a0a75488.0",
|
|
4
|
+
"main": "./index.cjs",
|
|
5
|
+
"repository": "https://github.com/Trackunit/manager",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@trackunit/ui-design-tokens": "0.0.47"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {}
|
|
13
|
+
}
|