@tenerife.music/ui 1.0.7 → 1.0.8

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.
@@ -1,10 +1,31 @@
1
- import { VariantProps } from 'class-variance-authority';
1
+ import { ResponsiveSpacing } from './layout.types';
2
+ /**
3
+ * Container Layout Primitive Component
4
+ *
5
+ * Token-driven container component for constraining content width and centering.
6
+ * Uses CSS-layer class .tm-container with token-based padding and max-width.
7
+ */
2
8
  import * as React from "react";
3
- declare const containerVariants: (props?: ({
4
- size?: "2xl" | "3xl" | "4xl" | "5xl" | "sm" | "md" | "lg" | "xl" | "full" | "6xl" | "7xl" | null | undefined;
5
- padding?: "none" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
- export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof containerVariants> {
9
+ export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ /**
11
+ * Maximum width of the container
12
+ * Supports: spacing tokens, container sizes (sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, full), or CSS values
13
+ */
14
+ maxWidth?: string | ResponsiveSpacing;
15
+ /**
16
+ * Padding (horizontal) - token-based
17
+ * Supports: spacing tokens or container spacing tokens (container-xs, container-sm, container-md, etc.)
18
+ * Default: container-md (24px)
19
+ */
20
+ padding?: ResponsiveSpacing;
21
+ /**
22
+ * Center the container horizontally with auto margins
23
+ * Default: true
24
+ */
25
+ center?: boolean;
8
26
  }
27
+ /**
28
+ * Container component - layout primitive for constraining content width
29
+ */
9
30
  declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
10
- export { Container, containerVariants };
31
+ export { Container };
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * Layout Primitives Exports
3
3
  *
4
- * Token-driven layout primitives: Box, Stack, Row, Column, Flex, Grid, Surface
4
+ * Token-driven layout primitives: Box, Stack, Row, Column, Flex, Grid, Surface, Container
5
5
  */
6
6
  export type { BoxProps } from './Box';
7
7
  export { Box } from './Box';
8
8
  export type { ColumnProps } from './Column';
9
9
  export { Column } from './Column';
10
+ export type { ContainerProps } from './Container';
11
+ export { Container } from './Container';
10
12
  export type { FlexProps } from './Flex';
11
13
  export { Flex } from './Flex';
12
14
  export type { GridProps } from './Grid';