@trackunit/ui-design-tokens 1.9.17 → 1.9.19
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.js +29 -0
- package/index.esm.js +28 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -0
- package/src/tokens/containerSize.d.ts +25 -0
package/index.cjs.js
CHANGED
|
@@ -778,6 +778,33 @@ const CHART_STATUS_COLORS = {
|
|
|
778
778
|
EXCESSIVE_USAGE: rgbStringToHex(EXCESSIVE_USAGE.variants[500]),
|
|
779
779
|
};
|
|
780
780
|
|
|
781
|
+
/**
|
|
782
|
+
* Container query breakpoints - Tailwind CSS defaults.
|
|
783
|
+
* Used by @container queries (@xs, @sm, @md, etc.)
|
|
784
|
+
*
|
|
785
|
+
* Note: These are different from screen breakpoints (media queries).
|
|
786
|
+
* Container queries respond to container size, not viewport size.
|
|
787
|
+
*/
|
|
788
|
+
const themeContainerSize = {
|
|
789
|
+
xs: "20rem",
|
|
790
|
+
sm: "24rem",
|
|
791
|
+
md: "28rem",
|
|
792
|
+
lg: "32rem",
|
|
793
|
+
xl: "36rem",
|
|
794
|
+
"2xl": "42rem",
|
|
795
|
+
"3xl": "48rem",
|
|
796
|
+
"4xl": "56rem",
|
|
797
|
+
"5xl": "64rem",
|
|
798
|
+
"6xl": "72rem",
|
|
799
|
+
"7xl": "80rem",
|
|
800
|
+
};
|
|
801
|
+
// Custom smaller breakpoints (Trackunit additions)
|
|
802
|
+
const themeContainerSizeCustom = {
|
|
803
|
+
"2xs": "16rem",
|
|
804
|
+
"3xs": "12rem",
|
|
805
|
+
"4xs": "8rem",
|
|
806
|
+
};
|
|
807
|
+
|
|
781
808
|
/**
|
|
782
809
|
* A collection of all the tokens related to elevation in the theme.
|
|
783
810
|
*/
|
|
@@ -992,6 +1019,8 @@ exports.tailwindPalette = tailwindPalette;
|
|
|
992
1019
|
exports.themeBorderRadius = themeBorderRadius;
|
|
993
1020
|
exports.themeBoxShadow = themeBoxShadow;
|
|
994
1021
|
exports.themeColors = themeColors;
|
|
1022
|
+
exports.themeContainerSize = themeContainerSize;
|
|
1023
|
+
exports.themeContainerSizeCustom = themeContainerSizeCustom;
|
|
995
1024
|
exports.themeFontSize = themeFontSize;
|
|
996
1025
|
exports.themeFontWeight = themeFontWeight;
|
|
997
1026
|
exports.themeLineHeight = themeLineHeight;
|
package/index.esm.js
CHANGED
|
@@ -776,6 +776,33 @@ const CHART_STATUS_COLORS = {
|
|
|
776
776
|
EXCESSIVE_USAGE: rgbStringToHex(EXCESSIVE_USAGE.variants[500]),
|
|
777
777
|
};
|
|
778
778
|
|
|
779
|
+
/**
|
|
780
|
+
* Container query breakpoints - Tailwind CSS defaults.
|
|
781
|
+
* Used by @container queries (@xs, @sm, @md, etc.)
|
|
782
|
+
*
|
|
783
|
+
* Note: These are different from screen breakpoints (media queries).
|
|
784
|
+
* Container queries respond to container size, not viewport size.
|
|
785
|
+
*/
|
|
786
|
+
const themeContainerSize = {
|
|
787
|
+
xs: "20rem",
|
|
788
|
+
sm: "24rem",
|
|
789
|
+
md: "28rem",
|
|
790
|
+
lg: "32rem",
|
|
791
|
+
xl: "36rem",
|
|
792
|
+
"2xl": "42rem",
|
|
793
|
+
"3xl": "48rem",
|
|
794
|
+
"4xl": "56rem",
|
|
795
|
+
"5xl": "64rem",
|
|
796
|
+
"6xl": "72rem",
|
|
797
|
+
"7xl": "80rem",
|
|
798
|
+
};
|
|
799
|
+
// Custom smaller breakpoints (Trackunit additions)
|
|
800
|
+
const themeContainerSizeCustom = {
|
|
801
|
+
"2xs": "16rem",
|
|
802
|
+
"3xs": "12rem",
|
|
803
|
+
"4xs": "8rem",
|
|
804
|
+
};
|
|
805
|
+
|
|
779
806
|
/**
|
|
780
807
|
* A collection of all the tokens related to elevation in the theme.
|
|
781
808
|
*/
|
|
@@ -968,4 +995,4 @@ const zIndex = {
|
|
|
968
995
|
toast: themeZIndex.toast,
|
|
969
996
|
};
|
|
970
997
|
|
|
971
|
-
export { CHART_STATUS_COLORS, DEFAULT_CHART_COLORS, DEFAULT_CHART_OTHER, accessManagementModePalette, activityPalette, color, criticalityPalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, groupedPalettes, intentPalette, otherPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeScreenSizeAsNumber, themeSpacing, themeZIndex, themedPalette, trackunitPalette, utilizationPalette, zIndex };
|
|
998
|
+
export { CHART_STATUS_COLORS, DEFAULT_CHART_COLORS, DEFAULT_CHART_OTHER, accessManagementModePalette, activityPalette, color, criticalityPalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, groupedPalettes, intentPalette, otherPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeContainerSize, themeContainerSizeCustom, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeScreenSizeAsNumber, themeSpacing, themeZIndex, themedPalette, trackunitPalette, utilizationPalette, zIndex };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./tokens/borderRadius";
|
|
|
2
2
|
export * from "./tokens/chartColorsDefault";
|
|
3
3
|
export * from "./tokens/colors/index";
|
|
4
4
|
export * from "./tokens/colors/trackunitPalette";
|
|
5
|
+
export * from "./tokens/containerSize";
|
|
5
6
|
export * from "./tokens/elevation";
|
|
6
7
|
export * from "./tokens/screenSize";
|
|
7
8
|
export * from "./tokens/size";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Container query breakpoints - Tailwind CSS defaults.
|
|
3
|
+
* Used by @container queries (@xs, @sm, @md, etc.)
|
|
4
|
+
*
|
|
5
|
+
* Note: These are different from screen breakpoints (media queries).
|
|
6
|
+
* Container queries respond to container size, not viewport size.
|
|
7
|
+
*/
|
|
8
|
+
export declare const themeContainerSize: {
|
|
9
|
+
readonly xs: "20rem";
|
|
10
|
+
readonly sm: "24rem";
|
|
11
|
+
readonly md: "28rem";
|
|
12
|
+
readonly lg: "32rem";
|
|
13
|
+
readonly xl: "36rem";
|
|
14
|
+
readonly "2xl": "42rem";
|
|
15
|
+
readonly "3xl": "48rem";
|
|
16
|
+
readonly "4xl": "56rem";
|
|
17
|
+
readonly "5xl": "64rem";
|
|
18
|
+
readonly "6xl": "72rem";
|
|
19
|
+
readonly "7xl": "80rem";
|
|
20
|
+
};
|
|
21
|
+
export declare const themeContainerSizeCustom: {
|
|
22
|
+
readonly "2xs": "16rem";
|
|
23
|
+
readonly "3xs": "12rem";
|
|
24
|
+
readonly "4xs": "8rem";
|
|
25
|
+
};
|