@citygross/components_v2 0.1.4 → 0.1.5

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,16 +1,15 @@
1
1
  import React from 'react';
2
2
  import { TPaletteKeys, TFontWeightKeys } from '@citygross/design-tokens_v2';
3
- import { TBodyTextSizeKeys, TTextDecoration, TTextAlign } from '../../cssUtils/typography.css.js';
3
+ import { TBodyTextSizeKeys, TTextAlign, TTextDecoration } from '../../cssUtils/typography.css.js';
4
4
 
5
5
  declare type TBodyText = {
6
- children: React.ReactNode;
7
- size?: TBodyTextSizeKeys;
6
+ className?: string;
8
7
  color?: TPaletteKeys;
9
- textDecoration?: TTextDecoration;
10
8
  fontWeight?: TFontWeightKeys;
9
+ size?: TBodyTextSizeKeys;
11
10
  textAlign?: TTextAlign;
12
- className?: string;
13
- };
14
- declare const BodyText: ({ children, color, fontWeight, textDecoration, size, textAlign, className }: TBodyText) => JSX.Element;
11
+ textDecoration?: TTextDecoration;
12
+ } & React.ComponentPropsWithoutRef<'p'>;
13
+ declare const BodyText: ({ children, className, color, fontWeight, size, textAlign, textDecoration, ...props }: TBodyText) => JSX.Element;
15
14
 
16
15
  export { BodyText, TBodyText };
@@ -3,12 +3,13 @@ import { bodyText } from './BodyText.css.vanilla.js';
3
3
 
4
4
  const BodyText = ({
5
5
  children,
6
+ className,
6
7
  color,
7
8
  fontWeight,
8
- textDecoration,
9
9
  size,
10
10
  textAlign,
11
- className
11
+ textDecoration,
12
+ ...props
12
13
  }) => {
13
14
  return /* @__PURE__ */ React.createElement(
14
15
  "p",
@@ -19,7 +20,8 @@ const BodyText = ({
19
20
  textDecoration,
20
21
  textAlign,
21
22
  fontWeight
22
- })} ${className}`
23
+ })} ${className}`,
24
+ ...props
23
25
  },
24
26
  children
25
27
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citygross/components_v2",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -77,5 +77,5 @@
77
77
  "react-slick": "^0.30.1",
78
78
  "slick-carousel": "^1.8.1"
79
79
  },
80
- "gitHead": "88620124f147f7b2f0b15279613f3c12b579b69d"
80
+ "gitHead": "55460ca22865ed2947fa166d15a7f36940a28efc"
81
81
  }