colibri-ui 0.7.49 → 0.7.50

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.
@@ -21,10 +21,12 @@ var Typography = function Typography(_a) {
21
21
  children = _a.children,
22
22
  variant = _a.variant,
23
23
  size = _a.size,
24
+ style = _a.style,
24
25
  fontWeight = _a.fontWeight,
25
26
  className = _a.className,
26
- props = tslib.__rest(_a, ["tag", "children", "variant", "size", "fontWeight", "className"]);
27
+ props = tslib.__rest(_a, ["tag", "children", "variant", "size", "style", "fontWeight", "className"]);
27
28
  return /*#__PURE__*/React__default.default.createElement(Element, tslib.__assign({}, props, {
29
+ style: style,
28
30
  className: clx((_b = {
29
31
  root: true
30
32
  }, _b["size_".concat(size)] = !!size, _b["fontWeight_".concat(fontWeight)] = !!fontWeight, _b["variant_".concat(variant)] = !!variant, _b), className)
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from "react";
1
2
  export type TypographyVariant = "alert" | "success" | "secondary";
2
3
  export type TypographyFontWeight = "normal" | "medium" | "bold";
3
4
  export type TypographySize = "xs" | "s" | "m" | "l" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
@@ -8,4 +9,5 @@ export type Props = {
8
9
  variant?: TypographyVariant;
9
10
  size?: TypographySize;
10
11
  fontWeight?: TypographyFontWeight;
12
+ style?: CSSProperties;
11
13
  };
@@ -11,10 +11,12 @@ var Typography = function Typography(_a) {
11
11
  children = _a.children,
12
12
  variant = _a.variant,
13
13
  size = _a.size,
14
+ style = _a.style,
14
15
  fontWeight = _a.fontWeight,
15
16
  className = _a.className,
16
- props = __rest(_a, ["tag", "children", "variant", "size", "fontWeight", "className"]);
17
+ props = __rest(_a, ["tag", "children", "variant", "size", "style", "fontWeight", "className"]);
17
18
  return /*#__PURE__*/React.createElement(Element, __assign({}, props, {
19
+ style: style,
18
20
  className: clx((_b = {
19
21
  root: true
20
22
  }, _b["size_".concat(size)] = !!size, _b["fontWeight_".concat(fontWeight)] = !!fontWeight, _b["variant_".concat(variant)] = !!variant, _b), className)
@@ -1,3 +1,4 @@
1
+ import { CSSProperties } from "react";
1
2
  export type TypographyVariant = "alert" | "success" | "secondary";
2
3
  export type TypographyFontWeight = "normal" | "medium" | "bold";
3
4
  export type TypographySize = "xs" | "s" | "m" | "l" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
@@ -8,4 +9,5 @@ export type Props = {
8
9
  variant?: TypographyVariant;
9
10
  size?: TypographySize;
10
11
  fontWeight?: TypographyFontWeight;
12
+ style?: CSSProperties;
11
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.7.49",
3
+ "version": "0.7.50",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},