@bitrise/bitkit 9.7.0-alpha-chakra.2 → 9.7.0
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/package.json +3 -3
- package/src/Components/Link/Link.stories.tsx +14 -4
- package/src/Components/Link/Link.theme.ts +4 -0
- package/src/Components/Link/Link.tsx +2 -0
- package/src/Components/Text/Text.theme.ts +3 -36
- package/src/Components/Text/Text.tsx +3 -1
- package/src/Foundations/Typography/Typography.ts +37 -0
- package/src/Old/Input/Input.css +1 -1
- package/src/Old/Input/InputLabel.tsx +1 -1
- package/src/Old/Modal/Modal.tsx +1 -1
- package/src/Old/Table/TableHeaderCell.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/utils/utils.ts +3 -2
package/src/utils/utils.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export const rem = (input: number | string): string => {
|
|
1
|
+
export const rem = (input: number | string): number | string => {
|
|
2
2
|
const value = typeof input === 'string' ? parseInt(input, 10) : input;
|
|
3
3
|
if (Number.isNaN(value)) {
|
|
4
|
-
|
|
4
|
+
console.error('The input of rem function is not valid!');
|
|
5
|
+
return input;
|
|
5
6
|
}
|
|
6
7
|
return `${value / 16}rem`;
|
|
7
8
|
};
|