@trackunit/ui-design-tokens 0.0.107 → 0.0.109
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 +17 -7
- package/index.esm.js +17 -8
- package/package.json +1 -1
- package/src/tokens/screenSize.d.ts +9 -0
package/index.cjs.js
CHANGED
|
@@ -694,14 +694,23 @@ const elevation = {
|
|
|
694
694
|
/**
|
|
695
695
|
* A collection of all the tokens related to screen size in the theme.
|
|
696
696
|
*/
|
|
697
|
+
const themeScreenSizeAsNumber = {
|
|
698
|
+
xs: 0,
|
|
699
|
+
sm: 480,
|
|
700
|
+
md: 768,
|
|
701
|
+
lg: 1024,
|
|
702
|
+
xl: 1200,
|
|
703
|
+
"2xl": 1600,
|
|
704
|
+
"3xl": 1900,
|
|
705
|
+
};
|
|
697
706
|
const themeScreenSize = {
|
|
698
|
-
xs:
|
|
699
|
-
sm:
|
|
700
|
-
md:
|
|
701
|
-
lg:
|
|
702
|
-
xl:
|
|
703
|
-
"2xl": "
|
|
704
|
-
"3xl": "
|
|
707
|
+
xs: `${themeScreenSizeAsNumber.xs}px`,
|
|
708
|
+
sm: `${themeScreenSizeAsNumber.sm}px`,
|
|
709
|
+
md: `${themeScreenSizeAsNumber.md}px`,
|
|
710
|
+
lg: `${themeScreenSizeAsNumber.lg}px`,
|
|
711
|
+
xl: `${themeScreenSizeAsNumber.xl}px`,
|
|
712
|
+
"2xl": `${themeScreenSizeAsNumber["2xl"]}px`,
|
|
713
|
+
"3xl": `${themeScreenSizeAsNumber["3xl"]}px`,
|
|
705
714
|
};
|
|
706
715
|
|
|
707
716
|
/**
|
|
@@ -867,6 +876,7 @@ exports.themeFontSize = themeFontSize;
|
|
|
867
876
|
exports.themeFontWeight = themeFontWeight;
|
|
868
877
|
exports.themeLineHeight = themeLineHeight;
|
|
869
878
|
exports.themeScreenSize = themeScreenSize;
|
|
879
|
+
exports.themeScreenSizeAsNumber = themeScreenSizeAsNumber;
|
|
870
880
|
exports.themeSpacing = themeSpacing;
|
|
871
881
|
exports.themeZIndex = themeZIndex;
|
|
872
882
|
exports.themedPalette = themedPalette;
|
package/index.esm.js
CHANGED
|
@@ -690,14 +690,23 @@ const elevation = {
|
|
|
690
690
|
/**
|
|
691
691
|
* A collection of all the tokens related to screen size in the theme.
|
|
692
692
|
*/
|
|
693
|
+
const themeScreenSizeAsNumber = {
|
|
694
|
+
xs: 0,
|
|
695
|
+
sm: 480,
|
|
696
|
+
md: 768,
|
|
697
|
+
lg: 1024,
|
|
698
|
+
xl: 1200,
|
|
699
|
+
"2xl": 1600,
|
|
700
|
+
"3xl": 1900,
|
|
701
|
+
};
|
|
693
702
|
const themeScreenSize = {
|
|
694
|
-
xs:
|
|
695
|
-
sm:
|
|
696
|
-
md:
|
|
697
|
-
lg:
|
|
698
|
-
xl:
|
|
699
|
-
"2xl": "
|
|
700
|
-
"3xl": "
|
|
703
|
+
xs: `${themeScreenSizeAsNumber.xs}px`,
|
|
704
|
+
sm: `${themeScreenSizeAsNumber.sm}px`,
|
|
705
|
+
md: `${themeScreenSizeAsNumber.md}px`,
|
|
706
|
+
lg: `${themeScreenSizeAsNumber.lg}px`,
|
|
707
|
+
xl: `${themeScreenSizeAsNumber.xl}px`,
|
|
708
|
+
"2xl": `${themeScreenSizeAsNumber["2xl"]}px`,
|
|
709
|
+
"3xl": `${themeScreenSizeAsNumber["3xl"]}px`,
|
|
701
710
|
};
|
|
702
711
|
|
|
703
712
|
/**
|
|
@@ -838,4 +847,4 @@ const zIndex = {
|
|
|
838
847
|
toast: themeZIndex.toast,
|
|
839
848
|
};
|
|
840
849
|
|
|
841
|
-
export { DEFAULT_CHART_COLORS, activityPalette, color, criticalityPalette, customerDataSourcePalette, customerTypePalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, getReorderedChartColors, groupedPalettes, intentPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeSpacing, themeZIndex, themedPalette, trackunitPalette, utilizationPalette, zIndex };
|
|
850
|
+
export { DEFAULT_CHART_COLORS, activityPalette, color, criticalityPalette, customerDataSourcePalette, customerTypePalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, getReorderedChartColors, groupedPalettes, intentPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeScreenSizeAsNumber, themeSpacing, themeZIndex, themedPalette, trackunitPalette, utilizationPalette, zIndex };
|
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A collection of all the tokens related to screen size in the theme.
|
|
3
3
|
*/
|
|
4
|
+
export declare const themeScreenSizeAsNumber: {
|
|
5
|
+
readonly xs: 0;
|
|
6
|
+
readonly sm: 480;
|
|
7
|
+
readonly md: 768;
|
|
8
|
+
readonly lg: 1024;
|
|
9
|
+
readonly xl: 1200;
|
|
10
|
+
readonly "2xl": 1600;
|
|
11
|
+
readonly "3xl": 1900;
|
|
12
|
+
};
|
|
4
13
|
export declare const themeScreenSize: {
|
|
5
14
|
readonly xs: "0px";
|
|
6
15
|
readonly sm: "480px";
|