colibri-ui 0.7.49 → 0.7.51
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/Input/index.js +4 -3
- package/Typography/index.js +3 -1
- package/Typography/index.props.d.ts +2 -0
- package/base/BaseInput/index.js +1 -2
- package/esm/Input/index.js +5 -4
- package/esm/Typography/index.js +3 -1
- package/esm/Typography/index.props.d.ts +2 -0
- package/esm/base/BaseInput/index.js +1 -2
- package/package.json +1 -1
package/Input/index.js
CHANGED
|
@@ -40,9 +40,10 @@ var Input = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
40
40
|
size: size,
|
|
41
41
|
disabled: !!props.disabled,
|
|
42
42
|
error: error
|
|
43
|
-
}, /*#__PURE__*/React__default.default.createElement(index$2.default, {
|
|
44
|
-
onChange: onChange
|
|
45
|
-
|
|
43
|
+
}, /*#__PURE__*/React__default.default.createElement(index$2.default, tslib.__assign({
|
|
44
|
+
onChange: onChange,
|
|
45
|
+
type: "text"
|
|
46
|
+
}, props))));
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
exports.default = Input;
|
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/base/BaseInput/index.js
CHANGED
|
@@ -23,8 +23,7 @@ var BaseInput = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
23
23
|
return /*#__PURE__*/React__default.default.createElement("input", tslib.__assign({
|
|
24
24
|
className: classNames__default.default(styles__default.default.baseInput, className),
|
|
25
25
|
onChange: onChangeHandler,
|
|
26
|
-
ref: ref
|
|
27
|
-
type: "text"
|
|
26
|
+
ref: ref
|
|
28
27
|
}, props));
|
|
29
28
|
});
|
|
30
29
|
|
package/esm/Input/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import FormField from '../base/FormField/index.js';
|
|
@@ -31,9 +31,10 @@ var Input = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
31
31
|
size: size,
|
|
32
32
|
disabled: !!props.disabled,
|
|
33
33
|
error: error
|
|
34
|
-
}, /*#__PURE__*/React.createElement(BaseInput, {
|
|
35
|
-
onChange: onChange
|
|
36
|
-
|
|
34
|
+
}, /*#__PURE__*/React.createElement(BaseInput, __assign({
|
|
35
|
+
onChange: onChange,
|
|
36
|
+
type: "text"
|
|
37
|
+
}, props))));
|
|
37
38
|
});
|
|
38
39
|
|
|
39
40
|
export { Input as default };
|
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
|
};
|
|
@@ -13,8 +13,7 @@ var BaseInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
13
13
|
return /*#__PURE__*/React.createElement("input", __assign({
|
|
14
14
|
className: classNames(styles.baseInput, className),
|
|
15
15
|
onChange: onChangeHandler,
|
|
16
|
-
ref: ref
|
|
17
|
-
type: "text"
|
|
16
|
+
ref: ref
|
|
18
17
|
}, props));
|
|
19
18
|
});
|
|
20
19
|
|