colibri-ui 0.7.48 → 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.
package/Modal/index.js CHANGED
@@ -27,7 +27,7 @@ var Modal = function Modal(_a) {
27
27
  title = _a.title;
28
28
  var modalRef = React.useRef(null);
29
29
  var isDesktop = index.default(function (bp) {
30
- return bp.up("lg");
30
+ return bp.up("md");
31
31
  });
32
32
  var onCloseHandler = React.useMemo(function () {
33
33
  return onClose || function () {
@@ -6,9 +6,9 @@ var Breakpoints = {
6
6
  values: {
7
7
  hd: 2560,
8
8
  xl: 1920,
9
- lg: 1200,
10
- md: 1024,
11
- sm: 640,
9
+ lg: 1450,
10
+ md: 1075,
11
+ sm: 680,
12
12
  xs: 320
13
13
  },
14
14
  up: function up(breakpoint, isMedia) {
@@ -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
  };
@@ -17,7 +17,7 @@ var Modal = function Modal(_a) {
17
17
  title = _a.title;
18
18
  var modalRef = useRef(null);
19
19
  var isDesktop = useMediaSizes(function (bp) {
20
- return bp.up("lg");
20
+ return bp.up("md");
21
21
  });
22
22
  var onCloseHandler = useMemo(function () {
23
23
  return onClose || function () {
@@ -2,9 +2,9 @@ var Breakpoints = {
2
2
  values: {
3
3
  hd: 2560,
4
4
  xl: 1920,
5
- lg: 1200,
6
- md: 1024,
7
- sm: 640,
5
+ lg: 1450,
6
+ md: 1075,
7
+ sm: 680,
8
8
  xs: 320
9
9
  },
10
10
  up: function up(breakpoint, isMedia) {
@@ -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.48",
3
+ "version": "0.7.50",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},