@trackunit/css-tailwind 0.0.68 → 0.0.69
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
|
@@ -58,9 +58,9 @@ var require_createPlugin = __commonJS({
|
|
|
58
58
|
enumerable: true,
|
|
59
59
|
get: () => _default
|
|
60
60
|
});
|
|
61
|
-
function createPlugin(
|
|
61
|
+
function createPlugin(plugin4, config) {
|
|
62
62
|
return {
|
|
63
|
-
handler:
|
|
63
|
+
handler: plugin4,
|
|
64
64
|
config
|
|
65
65
|
};
|
|
66
66
|
}
|
|
@@ -1007,6 +1007,53 @@ var grids = {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
|
+
// libs/css/tailwind/src/lib/plugin/layouts.ts
|
|
1011
|
+
var import_plugin4 = __toESM(require_plugin());
|
|
1012
|
+
var LayoutsPlugin = (0, import_plugin4.default)(({ addUtilities, addComponents }) => {
|
|
1013
|
+
addUtilities({
|
|
1014
|
+
".layout-row-height-auto": { "--row-height": "auto" },
|
|
1015
|
+
".layout-row-height-1fr": { "--row-height": "1fr" },
|
|
1016
|
+
".layout-occupation-fill": { "--occupation": "auto-fill" },
|
|
1017
|
+
".layout-occupation-fit": { "--occupation": "auto-fit" },
|
|
1018
|
+
".layout-min-col-equal": { "--min-column-width": "minmax(0, 1fr)" },
|
|
1019
|
+
".layout-min-col-xs": { "--min-column-width": "180px" },
|
|
1020
|
+
".layout-min-col-sm": { "--min-column-width": "260px" },
|
|
1021
|
+
".layout-min-col-md": { "--min-column-width": "340px" },
|
|
1022
|
+
".layout-min-col-lg": { "--min-column-width": "420px" },
|
|
1023
|
+
".layout-min-col-xl": { "--min-column-width": "540px" }
|
|
1024
|
+
});
|
|
1025
|
+
addComponents({
|
|
1026
|
+
".layout-area-topbar": {
|
|
1027
|
+
"grid-area": "topbar"
|
|
1028
|
+
},
|
|
1029
|
+
".layout-area-sidebar": {
|
|
1030
|
+
"grid-area": "sidebar"
|
|
1031
|
+
},
|
|
1032
|
+
".layout-area-content": {
|
|
1033
|
+
"grid-area": "content"
|
|
1034
|
+
},
|
|
1035
|
+
".layout-left-sidebar-grid": {
|
|
1036
|
+
display: "grid",
|
|
1037
|
+
"grid-template-rows": "min-content min-content auto",
|
|
1038
|
+
"grid-template-columns": "1fr",
|
|
1039
|
+
"grid-template-areas": "'topbar' 'sidebar' 'content'",
|
|
1040
|
+
"@media (min-width: 1600px)": {
|
|
1041
|
+
"grid-template-rows": "min-content auto",
|
|
1042
|
+
"grid-template-columns": "min-content auto",
|
|
1043
|
+
"grid-template-areas": "'topbar topbar' 'sidebar content'"
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
".layout-intrinsically-responsive-grid": {
|
|
1047
|
+
"--occupation": "auto-fit",
|
|
1048
|
+
"--min-column-width": "minmax(0, 1fr)",
|
|
1049
|
+
"--row-height": "1fr",
|
|
1050
|
+
display: "grid",
|
|
1051
|
+
"min-height": "100%",
|
|
1052
|
+
"grid-template-columns": "repeat(var(--occupation), minmax(min(var(--min-column-width), 100%), 1fr))"
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
});
|
|
1056
|
+
|
|
1010
1057
|
// libs/css/tailwind/src/lib/utilities/designTokensToTailwindConfig.ts
|
|
1011
1058
|
var designTokensToTailwindConfig = (name, designTokens) => {
|
|
1012
1059
|
const entries = Object.entries(designTokens).map(([key, value]) => [
|
|
@@ -1192,6 +1239,6 @@ var tailwindBaseConfig = {
|
|
|
1192
1239
|
}
|
|
1193
1240
|
}
|
|
1194
1241
|
},
|
|
1195
|
-
plugins: [CssTailwindCustomPropertiesPlugin, src_default]
|
|
1242
|
+
plugins: [CssTailwindCustomPropertiesPlugin, src_default, LayoutsPlugin]
|
|
1196
1243
|
};
|
|
1197
1244
|
var tailwind_base_default = tailwindBaseConfig;
|