@trackunit/css-tailwind 0.0.73 → 0.0.75

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/css-tailwind",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "main": "./index.cjs",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -10,9 +10,9 @@
10
10
  "type": "commonjs",
11
11
  "types": "./src/index.d.ts",
12
12
  "dependencies": {
13
- "@trackunit/css-component-tokens": "0.0.32",
13
+ "@trackunit/css-component-tokens": "0.0.33",
14
14
  "@trackunit/css-core": "0.0.89",
15
- "@trackunit/css-tailwind-custom-properties-plugin": "0.0.24",
15
+ "@trackunit/css-tailwind-custom-properties-plugin": "0.0.25",
16
16
  "@trackunit/ui-design-tokens": "0.0.73"
17
17
  },
18
18
  "peerDependencies": {}
@@ -1017,7 +1017,7 @@ var grids = {
1017
1017
 
1018
1018
  // libs/css/tailwind/src/lib/plugin/layouts.ts
1019
1019
  var import_plugin4 = __toESM(require_plugin());
1020
- var LayoutsPlugin = (0, import_plugin4.default)(({ addUtilities, addComponents }) => {
1020
+ var LayoutsPlugin = (0, import_plugin4.default)(({ addUtilities, addComponents, addVariant }) => {
1021
1021
  addUtilities({
1022
1022
  ".layout-row-height-auto": { "--row-height": "auto" },
1023
1023
  ".layout-row-height-1fr": { "--row-height": "1fr" },
@@ -1028,7 +1028,9 @@ var LayoutsPlugin = (0, import_plugin4.default)(({ addUtilities, addComponents }
1028
1028
  ".layout-min-col-sm": { "--min-column-width": "260px" },
1029
1029
  ".layout-min-col-md": { "--min-column-width": "340px" },
1030
1030
  ".layout-min-col-lg": { "--min-column-width": "420px" },
1031
- ".layout-min-col-xl": { "--min-column-width": "540px" }
1031
+ ".layout-min-col-xl": { "--min-column-width": "540px" },
1032
+ ":root": { "--table-spacing": "0.75rem" },
1033
+ ".table-compact": { "--table-spacing": "0.25rem" }
1032
1034
  });
1033
1035
  addComponents({
1034
1036
  ".layout-area-topbar": {
@@ -1051,13 +1053,44 @@ var LayoutsPlugin = (0, import_plugin4.default)(({ addUtilities, addComponents }
1051
1053
  "grid-template-areas": "'topbar topbar' 'sidebar content'"
1052
1054
  }
1053
1055
  },
1054
- ".layout-intrinsically-responsive-grid": {
1056
+ ".layout-left-sidebar-page": {
1057
+ display: "grid",
1058
+ width: "100%",
1059
+ "grid-template-rows": "min-content min-content 1fr",
1060
+ "grid-template-columns": "repeat(1, minmax(0, 1fr))",
1061
+ gap: "var(--spacing-4)",
1062
+ "overflow-y": "auto",
1063
+ "grid-template-areas": "'topbar' 'sidebar' 'content'",
1064
+ ".layout-area-sidebar": {
1065
+ "padding-left": "var(--spacing-4)",
1066
+ "padding-right": "var(--spacing-4)"
1067
+ },
1068
+ ".layout-area-content": {
1069
+ "padding-left": "var(--spacing-4)",
1070
+ "padding-right": "var(--spacing-4)"
1071
+ },
1072
+ "@media (min-width: 1024px)": {
1073
+ "grid-template-rows": "min-content 1fr",
1074
+ "grid-template-columns": "260px 1fr",
1075
+ "grid-template-areas": "'topbar topbar' 'sidebar content'",
1076
+ gap: "var(--spacing-6)",
1077
+ ".layout-area-sidebar": {
1078
+ "padding-left": "var(--spacing-6)",
1079
+ "padding-right": "var(--spacing-0)"
1080
+ },
1081
+ ".layout-area-content": {
1082
+ "padding-left": "var(--spacing-0)",
1083
+ "padding-right": "var(--spacing-6)"
1084
+ }
1085
+ }
1086
+ },
1087
+ ".layout-responsive-grid": {
1055
1088
  "--occupation": "auto-fit",
1056
1089
  "--min-column-width": "minmax(0, 1fr)",
1057
1090
  "--row-height": "1fr",
1058
1091
  display: "grid",
1059
- "min-height": "100%",
1060
- "grid-template-columns": "repeat(var(--occupation), minmax(min(var(--min-column-width), 100%), 1fr))"
1092
+ "grid-template-columns": "repeat(var(--occupation), minmax(min(var(--min-column-width), 100%), 1fr))",
1093
+ gap: "var(--spacing-responsive-space)"
1061
1094
  }
1062
1095
  });
1063
1096
  });
@@ -1175,7 +1208,8 @@ var tailwindBaseConfig = {
1175
1208
  }, tailwindDefaults), customColors);
1176
1209
  },
1177
1210
  spacing: __spreadProps(__spreadValues({}, designTokensToTailwindConfig("spacing", themeSpacing)), {
1178
- "responsive-space": withCustomPropertyValueAsComment("--spacing-responsive-space")
1211
+ "responsive-space": withCustomPropertyValueAsComment("--spacing-responsive-space"),
1212
+ "table-spacing": withCustomPropertyValueAsComment("--table-spacing")
1179
1213
  }),
1180
1214
  borderRadius: designTokensToTailwindConfig("border-radius", themeBorderRadius),
1181
1215
  boxShadow: designTokensToTailwindConfig("box-shadow", themeBoxShadow),