@marigold/components 3.0.2 → 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
 
@@ -1797,9 +1799,8 @@ var messages = {
1797
1799
  // src/Select/Select.tsx
1798
1800
  var Chevron = ({ css }) => /* @__PURE__ */ import_react49.default.createElement(import_system35.Box, {
1799
1801
  as: "svg",
1800
- __baseCSS: { width: 16, height: 16 },
1802
+ __baseCSS: { width: 16, height: 16, fill: "none" },
1801
1803
  css,
1802
- fill: "none",
1803
1804
  viewBox: "0 0 24 24",
1804
1805
  stroke: "currentColor",
1805
1806
  strokeWidth: 2
@@ -2475,11 +2476,11 @@ var Table = ({
2475
2476
  as: "table",
2476
2477
  ref: tableRef,
2477
2478
  __baseCSS: {
2478
- display: "block",
2479
+ display: stretch ? "table" : "block",
2480
+ width: stretch ? "100%" : void 0,
2479
2481
  borderCollapse: "collapse",
2480
2482
  overflow: "auto",
2481
- whiteSpace: "nowrap",
2482
- width: stretch ? "100%" : void 0
2483
+ whiteSpace: "nowrap"
2483
2484
  },
2484
2485
  css: styles.table,
2485
2486
  ...gridProps
@@ -2674,12 +2675,19 @@ var TextField = (0, import_react67.forwardRef)(
2674
2675
  // src/Tiles/Tiles.tsx
2675
2676
  var import_react68 = __toESM(require("react"));
2676
2677
  var Tiles = import_react68.default.forwardRef(
2677
- ({ 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, {
2678
2685
  ref,
2679
2686
  display: "grid",
2680
2687
  __baseCSS: {
2681
2688
  gap: space,
2682
- gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`
2689
+ gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`,
2690
+ gridAutoRows: gridAutoRows ? "1fr" : "none"
2683
2691
  },
2684
2692
  ...props
2685
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
 
@@ -1784,9 +1786,8 @@ var messages = {
1784
1786
  // src/Select/Select.tsx
1785
1787
  var Chevron = ({ css }) => /* @__PURE__ */ React44.createElement(Box27, {
1786
1788
  as: "svg",
1787
- __baseCSS: { width: 16, height: 16 },
1789
+ __baseCSS: { width: 16, height: 16, fill: "none" },
1788
1790
  css,
1789
- fill: "none",
1790
1791
  viewBox: "0 0 24 24",
1791
1792
  stroke: "currentColor",
1792
1793
  strokeWidth: 2
@@ -2478,11 +2479,11 @@ var Table = ({
2478
2479
  as: "table",
2479
2480
  ref: tableRef,
2480
2481
  __baseCSS: {
2481
- display: "block",
2482
+ display: stretch ? "table" : "block",
2483
+ width: stretch ? "100%" : void 0,
2482
2484
  borderCollapse: "collapse",
2483
2485
  overflow: "auto",
2484
- whiteSpace: "nowrap",
2485
- width: stretch ? "100%" : void 0
2486
+ whiteSpace: "nowrap"
2486
2487
  },
2487
2488
  css: styles.table,
2488
2489
  ...gridProps
@@ -2683,12 +2684,19 @@ var TextField = forwardRef14(
2683
2684
  // src/Tiles/Tiles.tsx
2684
2685
  import React62 from "react";
2685
2686
  var Tiles = React62.forwardRef(
2686
- ({ 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, {
2687
2694
  ref,
2688
2695
  display: "grid",
2689
2696
  __baseCSS: {
2690
2697
  gap: space,
2691
- gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`
2698
+ gridTemplateColumns: `repeat(auto-fit, minmax(min(${itemMinWidth}, 100%), 1fr))`,
2699
+ gridAutoRows: gridAutoRows ? "1fr" : "none"
2692
2700
  },
2693
2701
  ...props
2694
2702
  }, children)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/components",
3
- "version": "3.0.2",
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.2",
27
- "@marigold/system": "3.0.2",
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",