@jobber/components 6.29.0 → 6.30.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/dist/Text/Text.d.ts +14 -1
- package/dist/Text-cjs.js +2 -2
- package/dist/Text-es.js +2 -2
- package/package.json +2 -2
package/dist/Text/Text.d.ts
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
|
+
import { TypographyProps } from "../Typography";
|
|
2
3
|
export interface TextProps {
|
|
3
4
|
readonly maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
|
|
4
5
|
readonly variation?: "default" | "subdued" | "success" | "error" | "warn" | "info" | "disabled";
|
|
5
6
|
readonly align?: "start" | "center" | "end";
|
|
6
7
|
readonly size?: "small" | "base" | "large";
|
|
8
|
+
/**
|
|
9
|
+
* **Use at your own risk:** Custom classNames for specific elements. This should only be used as a
|
|
10
|
+
* **last resort**. Using this may result in unexpected side effects.
|
|
11
|
+
* More information in the [Customizing components Guide](https://atlantis.getjobber.com/guides/customizing-components).
|
|
12
|
+
*/
|
|
13
|
+
readonly UNSAFE_className?: TypographyProps["UNSAFE_className"];
|
|
14
|
+
/**
|
|
15
|
+
* **Use at your own risk:** Custom style for specific elements. This should only be used as a
|
|
16
|
+
* **last resort**. Using this may result in unexpected side effects.
|
|
17
|
+
* More information in the [Customizing components Guide](https://atlantis.getjobber.com/guides/customizing-components).
|
|
18
|
+
*/
|
|
19
|
+
readonly UNSAFE_style?: TypographyProps["UNSAFE_style"];
|
|
7
20
|
}
|
|
8
|
-
export declare function Text({ variation, size, align, children, maxLines, }: PropsWithChildren<TextProps>): JSX.Element;
|
|
21
|
+
export declare function Text({ variation, size, align, children, maxLines, UNSAFE_className, UNSAFE_style, }: PropsWithChildren<TextProps>): JSX.Element;
|
package/dist/Text-cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var Typography = require('./Typography-cjs.js');
|
|
5
5
|
|
|
6
|
-
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", }) {
|
|
6
|
+
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", UNSAFE_className, UNSAFE_style, }) {
|
|
7
7
|
const textColors = {
|
|
8
8
|
default: "text",
|
|
9
9
|
subdued: "textSecondary",
|
|
@@ -21,7 +21,7 @@ function Text({ variation = "default", size = "base", align = "start", children,
|
|
|
21
21
|
larger: 16,
|
|
22
22
|
unlimited: undefined,
|
|
23
23
|
};
|
|
24
|
-
return (React.createElement(Typography.Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align }, children));
|
|
24
|
+
return (React.createElement(Typography.Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align, UNSAFE_className: UNSAFE_className, UNSAFE_style: UNSAFE_style }, children));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
exports.Text = Text;
|
package/dist/Text-es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { T as Typography } from './Typography-es.js';
|
|
3
3
|
|
|
4
|
-
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", }) {
|
|
4
|
+
function Text({ variation = "default", size = "base", align = "start", children, maxLines = "unlimited", UNSAFE_className, UNSAFE_style, }) {
|
|
5
5
|
const textColors = {
|
|
6
6
|
default: "text",
|
|
7
7
|
subdued: "textSecondary",
|
|
@@ -19,7 +19,7 @@ function Text({ variation = "default", size = "base", align = "start", children,
|
|
|
19
19
|
larger: 16,
|
|
20
20
|
unlimited: undefined,
|
|
21
21
|
};
|
|
22
|
-
return (React__default.createElement(Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align }, children));
|
|
22
|
+
return (React__default.createElement(Typography, { textColor: textColors[variation], size: size, numberOfLines: maxLineToNumber[maxLines], align: align, UNSAFE_className: UNSAFE_className, UNSAFE_style: UNSAFE_style }, children));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { Text as T };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.30.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -490,5 +490,5 @@
|
|
|
490
490
|
"> 1%",
|
|
491
491
|
"IE 10"
|
|
492
492
|
],
|
|
493
|
-
"gitHead": "
|
|
493
|
+
"gitHead": "b3f75928b5f78ae0991ee6660e1759acfc7065cc"
|
|
494
494
|
}
|