diff --git a/packages/tailwind-config-custom/tailwind.config.js b/packages/tailwind-config-custom/tailwind.config.js
index 4f032e0f8..a708a6221 100644
--- a/packages/tailwind-config-custom/tailwind.config.js
+++ b/packages/tailwind-config-custom/tailwind.config.js
@@ -333,6 +333,8 @@ module.exports = {
72: "16.2rem",
80: "18rem",
96: "21.6rem",
+ "page-x": "1.35rem",
+ "page-y": "1.35rem"
},
margin: {
0: "0",
@@ -434,5 +436,23 @@ module.exports = {
custom: ["Inter", "sans-serif"],
},
},
- plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],
+ plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography"), function({ addUtilities }) {
+ const newUtilities = {
+ // Mobile screens
+ '.px-page-x': {
+ paddingLeft: '0.675rem',
+ paddingRight: '0.675rem',
+ },
+ // Medium screens (768px and up)
+ '@media (min-width: 768px)': {
+ '.px-page-x': {
+ paddingLeft: '1.35rem',
+ paddingRight: '1.35rem',
+ },
+ }
+ };
+
+ addUtilities(newUtilities, ['responsive']);
+ },
+],
};
diff --git a/packages/ui/src/header/header.tsx b/packages/ui/src/header/header.tsx
new file mode 100644
index 000000000..97b7ed2eb
--- /dev/null
+++ b/packages/ui/src/header/header.tsx
@@ -0,0 +1,39 @@
+import * as React from "react";
+import { cn } from "../../helpers";
+import { EHeaderVariant, getHeaderStyle, THeaderVariant } from "./helper";
+import { ERowVariant, CustomRow } from "../row";
+
+export interface CustomHeaderProps {
+ variant?: THeaderVariant;
+ setHeight?: boolean;
+ className?: string;
+ children: React.ReactNode;
+}
+
+const CustomHeader = (props: CustomHeaderProps) => {
+ const { variant = EHeaderVariant.PRIMARY, className = "", setHeight = true, children, ...rest } = props;
+
+ const style = getHeaderStyle(variant, setHeight);
+ return (
+
{moduleDetails?.name && moduleDetails.name}
- {issuesCount && issuesCount > 0 ? ( -{moduleDetails?.name && moduleDetails.name}
+ {issuesCount && issuesCount > 0 ? ( +