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 +1 -1
- package/Theme/breakpoints.js +3 -3
- package/Typography/index.js +3 -1
- package/Typography/index.props.d.ts +2 -0
- package/esm/Modal/index.js +1 -1
- package/esm/Theme/breakpoints.js +3 -3
- package/esm/Typography/index.js +3 -1
- package/esm/Typography/index.props.d.ts +2 -0
- package/package.json +1 -1
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("
|
|
30
|
+
return bp.up("md");
|
|
31
31
|
});
|
|
32
32
|
var onCloseHandler = React.useMemo(function () {
|
|
33
33
|
return onClose || function () {
|
package/Theme/breakpoints.js
CHANGED
package/Typography/index.js
CHANGED
|
@@ -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
|
};
|
package/esm/Modal/index.js
CHANGED
|
@@ -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("
|
|
20
|
+
return bp.up("md");
|
|
21
21
|
});
|
|
22
22
|
var onCloseHandler = useMemo(function () {
|
|
23
23
|
return onClose || function () {
|
package/esm/Theme/breakpoints.js
CHANGED
package/esm/Typography/index.js
CHANGED
|
@@ -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
|
};
|