@marigold/components 3.0.3 → 3.0.4

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/dist/index.d.ts CHANGED
@@ -167,8 +167,10 @@ interface HeadlineThemeExtension extends ThemeExtension<'Headline'> {
167
167
  interface HeadlineProps extends ThemeComponentProps, ComponentProps<'h1'> {
168
168
  children?: ReactNode;
169
169
  level?: '1' | '2' | '3' | '4' | '5' | '6';
170
+ align?: CSSObject['textAlign'];
171
+ color?: string;
170
172
  }
171
- declare const Headline: ({ children, variant, size, level, ...props }: HeadlineProps) => JSX.Element;
173
+ declare const Headline: ({ children, variant, size, align, color, level, ...props }: HeadlineProps) => JSX.Element;
172
174
 
173
175
  interface HelpTextThemeExtension extends ThemeExtensionsWithParts<'HelpText', ['container', 'icon']> {
174
176
  }
@@ -640,6 +642,7 @@ interface TilesProps {
640
642
  children: ReactNode;
641
643
  space?: ResponsiveStyleValue<string>;
642
644
  itemMinWidth?: ResponsiveStyleValue<string>;
645
+ gridAutoRows?: boolean;
643
646
  }
644
647
  declare const Tiles: React.ForwardRefExoticComponent<TilesProps & React.RefAttributes<HTMLDivElement>>;
645
648
 
package/dist/index.js CHANGED
@@ -644,6 +644,8 @@ var Headline = ({
644
644
  children,
645
645
  variant,
646
646
  size,
647
+ align,
648
+ color,
647
649
  level = "1",
648
650
  ...props
649
651
  }) => {
@@ -654,7 +656,7 @@ var Headline = ({
654
656
  return /* @__PURE__ */ import_react15.default.createElement(import_system10.Box, {
655
657
  as: `h${level}`,
656
658
  ...props,
657
- css: styles
659
+ css: [styles, { color, textAlign: align }]
658
660
  }, children);
659
661
  };
660
662
 
@@ -2673,12 +2675,19 @@ var TextField = (0, import_react67.forwardRef)(
2673
2675
  // src/Tiles/Tiles.tsx
2674
2676
  var import_react68 = __toESM(require("react"));
2675
2677
  var Tiles = import_react68.default.forwardRef(
2676
- ({ space = "none", itemMinWidth = "250px", children, ...props }, ref) => /* @__PURE__ */ import_react68.default.createElement(import_system.Box, {
2678
+ ({
2679
+ space = "none",
2680
+ itemMinWidth = "250px",
2681
+ gridAutoRows,
2682
+ children,
2683
+ ...props
2684
+ }, ref) => /* @__PURE__ */ import_react68.default.createElement(import_system.Box, {
2677
2685
  ref,
2678
2686
  display: "grid",
2679
2687
  __baseCSS: {
2680
2688
  gap: space,
2681
- gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`
2689
+ gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`,
2690
+ gridAutoRows: gridAutoRows ? "1fr" : "none"
2682
2691
  },
2683
2692
  ...props
2684
2693
  }, children)
package/dist/index.mjs CHANGED
@@ -592,6 +592,8 @@ var Headline = ({
592
592
  children,
593
593
  variant,
594
594
  size,
595
+ align,
596
+ color,
595
597
  level = "1",
596
598
  ...props
597
599
  }) => {
@@ -602,7 +604,7 @@ var Headline = ({
602
604
  return /* @__PURE__ */ React15.createElement(Box8, {
603
605
  as: `h${level}`,
604
606
  ...props,
605
- css: styles
607
+ css: [styles, { color, textAlign: align }]
606
608
  }, children);
607
609
  };
608
610
 
@@ -2682,12 +2684,19 @@ var TextField = forwardRef14(
2682
2684
  // src/Tiles/Tiles.tsx
2683
2685
  import React62 from "react";
2684
2686
  var Tiles = React62.forwardRef(
2685
- ({ space = "none", itemMinWidth = "250px", children, ...props }, ref) => /* @__PURE__ */ React62.createElement(Box, {
2687
+ ({
2688
+ space = "none",
2689
+ itemMinWidth = "250px",
2690
+ gridAutoRows,
2691
+ children,
2692
+ ...props
2693
+ }, ref) => /* @__PURE__ */ React62.createElement(Box, {
2686
2694
  ref,
2687
2695
  display: "grid",
2688
2696
  __baseCSS: {
2689
2697
  gap: space,
2690
- gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`
2698
+ gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`,
2699
+ gridAutoRows: gridAutoRows ? "1fr" : "none"
2691
2700
  },
2692
2701
  ...props
2693
2702
  }, children)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Components for the Marigold Design System",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,8 +23,8 @@
23
23
  "directory": "packages/components"
24
24
  },
25
25
  "dependencies": {
26
- "@marigold/icons": "1.1.3",
27
- "@marigold/system": "3.0.3",
26
+ "@marigold/icons": "1.1.4",
27
+ "@marigold/system": "3.0.4",
28
28
  "@marigold/tokens": "3.1.0",
29
29
  "@marigold/types": "0.5.4",
30
30
  "@react-aria/button": "3.6.2",