@medialane/ui 0.5.2 → 0.5.3

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.
@@ -39,7 +39,10 @@ function PageContainer({
39
39
  {
40
40
  className: (0, import_cn.cn)(
41
41
  variantClass[variant],
42
- "px-4 pt-10 pb-16",
42
+ // Horizontal padding matches the fixed NavTrigger logo offset
43
+ // (left-4 sm:left-6 lg:left-8) so page content aligns with the
44
+ // logo at every breakpoint. Keep this responsive, not a flat px.
45
+ "px-4 sm:px-6 lg:px-8 pt-10 pb-16",
43
46
  className
44
47
  ),
45
48
  ...props,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/page-container.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface PageContainerProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * Controls the page width contract.\n * - app: full available canvas for sidebar/dashboard shells.\n * - content: standard editorial max width.\n * - narrow: focused forms and legal/content pages.\n */\n variant?: \"app\" | \"content\" | \"narrow\";\n}\n\nconst variantClass = {\n app: \"w-full max-w-none\",\n content: \"mx-auto w-full max-w-[1400px]\",\n narrow: \"mx-auto w-full max-w-5xl\",\n};\n\nexport function PageContainer({\n variant = \"app\",\n className,\n children,\n ...props\n}: PageContainerProps) {\n return (\n <div\n className={cn(\n variantClass[variant],\n \"px-4 pt-10 pb-16\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BI;AAzBJ,gBAAmB;AAYnB,MAAM,eAAe;AAAA,EACnB,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAAS,cAAc;AAAA,EAC5B,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAuB;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT,aAAa,OAAO;AAAA,QACpB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/page-container.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface PageContainerProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * Controls the page width contract.\n * - app: full available canvas for sidebar/dashboard shells.\n * - content: standard editorial max width.\n * - narrow: focused forms and legal/content pages.\n */\n variant?: \"app\" | \"content\" | \"narrow\";\n}\n\nconst variantClass = {\n app: \"w-full max-w-none\",\n content: \"mx-auto w-full max-w-[1400px]\",\n narrow: \"mx-auto w-full max-w-5xl\",\n};\n\nexport function PageContainer({\n variant = \"app\",\n className,\n children,\n ...props\n}: PageContainerProps) {\n return (\n <div\n className={cn(\n variantClass[variant],\n // Horizontal padding matches the fixed NavTrigger logo offset\n // (left-4 sm:left-6 lg:left-8) so page content aligns with the\n // logo at every breakpoint. Keep this responsive, not a flat px.\n \"px-4 sm:px-6 lg:px-8 pt-10 pb-16\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BI;AAzBJ,gBAAmB;AAYnB,MAAM,eAAe;AAAA,EACnB,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAAS,cAAc;AAAA,EAC5B,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAuB;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT,aAAa,OAAO;AAAA;AAAA;AAAA;AAAA,QAIpB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
@@ -16,7 +16,10 @@ function PageContainer({
16
16
  {
17
17
  className: cn(
18
18
  variantClass[variant],
19
- "px-4 pt-10 pb-16",
19
+ // Horizontal padding matches the fixed NavTrigger logo offset
20
+ // (left-4 sm:left-6 lg:left-8) so page content aligns with the
21
+ // logo at every breakpoint. Keep this responsive, not a flat px.
22
+ "px-4 sm:px-6 lg:px-8 pt-10 pb-16",
20
23
  className
21
24
  ),
22
25
  ...props,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/page-container.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface PageContainerProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * Controls the page width contract.\n * - app: full available canvas for sidebar/dashboard shells.\n * - content: standard editorial max width.\n * - narrow: focused forms and legal/content pages.\n */\n variant?: \"app\" | \"content\" | \"narrow\";\n}\n\nconst variantClass = {\n app: \"w-full max-w-none\",\n content: \"mx-auto w-full max-w-[1400px]\",\n narrow: \"mx-auto w-full max-w-5xl\",\n};\n\nexport function PageContainer({\n variant = \"app\",\n className,\n children,\n ...props\n}: PageContainerProps) {\n return (\n <div\n className={cn(\n variantClass[variant],\n \"px-4 pt-10 pb-16\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n"],"mappings":"AA0BI;AAzBJ,SAAS,UAAU;AAYnB,MAAM,eAAe;AAAA,EACnB,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAAS,cAAc;AAAA,EAC5B,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAuB;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,aAAa,OAAO;AAAA,QACpB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/components/page-container.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface PageContainerProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * Controls the page width contract.\n * - app: full available canvas for sidebar/dashboard shells.\n * - content: standard editorial max width.\n * - narrow: focused forms and legal/content pages.\n */\n variant?: \"app\" | \"content\" | \"narrow\";\n}\n\nconst variantClass = {\n app: \"w-full max-w-none\",\n content: \"mx-auto w-full max-w-[1400px]\",\n narrow: \"mx-auto w-full max-w-5xl\",\n};\n\nexport function PageContainer({\n variant = \"app\",\n className,\n children,\n ...props\n}: PageContainerProps) {\n return (\n <div\n className={cn(\n variantClass[variant],\n // Horizontal padding matches the fixed NavTrigger logo offset\n // (left-4 sm:left-6 lg:left-8) so page content aligns with the\n // logo at every breakpoint. Keep this responsive, not a flat px.\n \"px-4 sm:px-6 lg:px-8 pt-10 pb-16\",\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n"],"mappings":"AA0BI;AAzBJ,SAAS,UAAU;AAYnB,MAAM,eAAe;AAAA,EACnB,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAAS,cAAc;AAAA,EAC5B,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAuB;AACrB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT,aAAa,OAAO;AAAA;AAAA;AAAA;AAAA,QAIpB;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medialane/ui",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Shared UI components for Medialane apps",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",