@instructure/ui-text 8.10.1-snapshot.4 → 8.10.1-snapshot.8
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/es/Text/__examples__/Text.examples.js +1 -1
- package/es/Text/index.js +9 -5
- package/es/Text/props.js +0 -7
- package/lib/Text/__examples__/Text.examples.js +1 -1
- package/lib/Text/index.js +9 -5
- package/lib/Text/props.js +0 -7
- package/package.json +9 -9
- package/src/Text/__examples__/Text.examples.ts +9 -9
- package/src/Text/index.tsx +4 -3
- package/src/Text/props.ts +10 -7
- package/types/Text/__examples__/Text.examples.d.ts +4 -3
- package/types/Text/__examples__/Text.examples.d.ts.map +1 -1
- package/types/Text/index.d.ts +4 -3
- package/types/Text/index.d.ts.map +1 -1
- package/types/Text/props.d.ts +10 -1
- package/types/Text/props.d.ts.map +1 -1
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
maxExamples: 1000,
|
|
28
28
|
getComponentProps: props => {
|
|
29
29
|
return {
|
|
30
|
-
children: ['x-small', 'small', 'medium', 'large'].includes(props.size) ? 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ullamco' : 'Lorem ipsum dolor sit amet, consectetur'
|
|
30
|
+
children: props.size && ['x-small', 'small', 'medium', 'large'].includes(props.size) ? 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ullamco' : 'Lorem ipsum dolor sit amet, consectetur'
|
|
31
31
|
};
|
|
32
32
|
},
|
|
33
33
|
getExampleProps: props => {
|
package/es/Text/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import { allowedProps, propTypes } from './props';
|
|
|
35
35
|
---
|
|
36
36
|
category: components
|
|
37
37
|
---
|
|
38
|
+
@tsProps
|
|
38
39
|
**/
|
|
39
40
|
|
|
40
41
|
let Text = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_temp = _class2 = class Text extends Component {
|
|
@@ -44,7 +45,7 @@ let Text = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
|
|
|
44
45
|
(_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
componentDidUpdate(
|
|
48
|
+
componentDidUpdate() {
|
|
48
49
|
var _this$props$makeStyle2, _this$props2;
|
|
49
50
|
|
|
50
51
|
(_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
|
|
@@ -55,10 +56,13 @@ let Text = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
|
|
|
55
56
|
|
|
56
57
|
const children = this.props.children;
|
|
57
58
|
const ElementType = getElementType(Text, this.props);
|
|
58
|
-
return
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
return (// @ts-expect-error TODO: AsElementType is not compatible for ref
|
|
60
|
+
jsx(ElementType // @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
61
|
+
, Object.assign({}, passthroughProps(this.props), {
|
|
62
|
+
css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.text,
|
|
63
|
+
ref: this.props.elementRef
|
|
64
|
+
}), children)
|
|
65
|
+
);
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
}, _class2.displayName = "Text", _class2.componentId = 'Text', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
|
package/es/Text/props.js
CHANGED
|
@@ -23,15 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
25
|
const propTypes = {
|
|
26
|
-
/**
|
|
27
|
-
* the element type to render as
|
|
28
|
-
*/
|
|
29
26
|
as: PropTypes.elementType,
|
|
30
27
|
children: PropTypes.node,
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Color of the text
|
|
34
|
-
*/
|
|
35
28
|
color: PropTypes.oneOf(['primary', 'secondary', 'brand', 'success', 'warning', 'danger', 'alert', 'primary-inverse', 'secondary-inverse']),
|
|
36
29
|
elementRef: PropTypes.func,
|
|
37
30
|
fontStyle: PropTypes.oneOf(['italic', 'normal']),
|
|
@@ -34,7 +34,7 @@ var _default = {
|
|
|
34
34
|
maxExamples: 1000,
|
|
35
35
|
getComponentProps: props => {
|
|
36
36
|
return {
|
|
37
|
-
children: ['x-small', 'small', 'medium', 'large'].includes(props.size) ? 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ullamco' : 'Lorem ipsum dolor sit amet, consectetur'
|
|
37
|
+
children: props.size && ['x-small', 'small', 'medium', 'large'].includes(props.size) ? 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ullamco' : 'Lorem ipsum dolor sit amet, consectetur'
|
|
38
38
|
};
|
|
39
39
|
},
|
|
40
40
|
getExampleProps: props => {
|
package/lib/Text/index.js
CHANGED
|
@@ -27,6 +27,7 @@ var _dec, _class, _class2, _temp;
|
|
|
27
27
|
---
|
|
28
28
|
category: components
|
|
29
29
|
---
|
|
30
|
+
@tsProps
|
|
30
31
|
**/
|
|
31
32
|
let Text = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = class Text extends _react.Component {
|
|
32
33
|
componentDidMount() {
|
|
@@ -35,7 +36,7 @@ let Text = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
35
36
|
(_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
componentDidUpdate(
|
|
39
|
+
componentDidUpdate() {
|
|
39
40
|
var _this$props$makeStyle2, _this$props2;
|
|
40
41
|
|
|
41
42
|
(_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
|
|
@@ -46,10 +47,13 @@ let Text = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
46
47
|
|
|
47
48
|
const children = this.props.children;
|
|
48
49
|
const ElementType = (0, _getElementType.getElementType)(Text, this.props);
|
|
49
|
-
return (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
return (// @ts-expect-error TODO: AsElementType is not compatible for ref
|
|
51
|
+
(0, _emotion.jsx)(ElementType // @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
52
|
+
, Object.assign({}, (0, _passthroughProps.passthroughProps)(this.props), {
|
|
53
|
+
css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.text,
|
|
54
|
+
ref: this.props.elementRef
|
|
55
|
+
}), children)
|
|
56
|
+
);
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
}, _class2.displayName = "Text", _class2.componentId = 'Text', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
|
package/lib/Text/props.js
CHANGED
|
@@ -33,15 +33,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
33
33
|
* SOFTWARE.
|
|
34
34
|
*/
|
|
35
35
|
const propTypes = {
|
|
36
|
-
/**
|
|
37
|
-
* the element type to render as
|
|
38
|
-
*/
|
|
39
36
|
as: _propTypes.default.elementType,
|
|
40
37
|
children: _propTypes.default.node,
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Color of the text
|
|
44
|
-
*/
|
|
45
38
|
color: _propTypes.default.oneOf(['primary', 'secondary', 'brand', 'success', 'warning', 'danger', 'alert', 'primary-inverse', 'secondary-inverse']),
|
|
46
39
|
elementRef: _propTypes.default.func,
|
|
47
40
|
fontStyle: _propTypes.default.oneOf(['italic', 'normal']),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-text",
|
|
3
|
-
"version": "8.10.1-snapshot.
|
|
3
|
+
"version": "8.10.1-snapshot.8+21f46f4e3",
|
|
4
4
|
"description": "A component for styling textual content",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.10.1-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.10.1-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.10.1-snapshot.
|
|
31
|
-
"@instructure/ui-react-utils": "8.10.1-snapshot.
|
|
28
|
+
"@instructure/console": "8.10.1-snapshot.8+21f46f4e3",
|
|
29
|
+
"@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
|
|
30
|
+
"@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
|
|
31
|
+
"@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
|
|
32
32
|
"prop-types": "^15"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@instructure/ui-babel-preset": "8.10.1-snapshot.
|
|
36
|
-
"@instructure/ui-test-utils": "8.10.1-snapshot.
|
|
37
|
-
"@instructure/ui-themes": "8.10.1-snapshot.
|
|
35
|
+
"@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
|
|
36
|
+
"@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
|
|
37
|
+
"@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=16.8 <=17"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
|
|
47
47
|
}
|
|
@@ -21,21 +21,22 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
+
import { TextProps } from '../props'
|
|
24
25
|
|
|
25
26
|
export default {
|
|
26
27
|
sectionProp: 'weight',
|
|
27
28
|
maxExamplesPerPage: 50,
|
|
28
29
|
maxExamples: 1000,
|
|
29
|
-
|
|
30
|
-
getComponentProps: (props) => {
|
|
30
|
+
getComponentProps: (props: TextProps) => {
|
|
31
31
|
return {
|
|
32
|
-
children:
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
children:
|
|
33
|
+
props.size &&
|
|
34
|
+
['x-small', 'small', 'medium', 'large'].includes(props.size)
|
|
35
|
+
? 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor ullamco'
|
|
36
|
+
: 'Lorem ipsum dolor sit amet, consectetur'
|
|
35
37
|
}
|
|
36
38
|
},
|
|
37
|
-
|
|
38
|
-
getExampleProps: (props) => {
|
|
39
|
+
getExampleProps: (props: TextProps) => {
|
|
39
40
|
return {
|
|
40
41
|
background: props?.color?.includes('inverse')
|
|
41
42
|
? 'primary-inverse'
|
|
@@ -43,8 +44,7 @@ export default {
|
|
|
43
44
|
maxWidth: '25rem'
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
|
-
|
|
47
|
-
filter: (props) => {
|
|
47
|
+
filter: (props: TextProps) => {
|
|
48
48
|
return (
|
|
49
49
|
// Only generate a 1 variation for non-'primary' color
|
|
50
50
|
(props.color !== 'primary' &&
|
package/src/Text/index.tsx
CHANGED
|
@@ -37,6 +37,7 @@ import { allowedProps, propTypes } from './props'
|
|
|
37
37
|
---
|
|
38
38
|
category: components
|
|
39
39
|
---
|
|
40
|
+
@tsProps
|
|
40
41
|
**/
|
|
41
42
|
@withStyle(generateStyle, generateComponentTheme)
|
|
42
43
|
class Text extends Component<TextProps> {
|
|
@@ -57,8 +58,7 @@ class Text extends Component<TextProps> {
|
|
|
57
58
|
this.props.makeStyles?.()
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
componentDidUpdate(prevProps, prevState, snapshot) {
|
|
61
|
+
componentDidUpdate() {
|
|
62
62
|
this.props.makeStyles?.()
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -68,8 +68,9 @@ class Text extends Component<TextProps> {
|
|
|
68
68
|
const ElementType = getElementType(Text, this.props)
|
|
69
69
|
|
|
70
70
|
return (
|
|
71
|
+
// @ts-expect-error TODO: AsElementType is not compatible for ref
|
|
71
72
|
<ElementType
|
|
72
|
-
|
|
73
|
+
// @ts-expect-error TODO: `ref` prop causes: "Expression produces a union type that is too complex to represent.ts(2590)"
|
|
73
74
|
{...passthroughProps(this.props)}
|
|
74
75
|
css={this.props.styles?.text}
|
|
75
76
|
ref={this.props.elementRef}
|
package/src/Text/props.ts
CHANGED
|
@@ -33,7 +33,13 @@ import type {
|
|
|
33
33
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
34
34
|
|
|
35
35
|
type TextOwnProps = {
|
|
36
|
+
/**
|
|
37
|
+
* the element type to render as
|
|
38
|
+
*/
|
|
36
39
|
as?: AsElementType
|
|
40
|
+
/**
|
|
41
|
+
* Color of the text
|
|
42
|
+
*/
|
|
37
43
|
color?:
|
|
38
44
|
| 'primary'
|
|
39
45
|
| 'secondary'
|
|
@@ -44,7 +50,10 @@ type TextOwnProps = {
|
|
|
44
50
|
| 'alert'
|
|
45
51
|
| 'primary-inverse'
|
|
46
52
|
| 'secondary-inverse'
|
|
47
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Provides a reference to the underlying HTML element
|
|
55
|
+
*/
|
|
56
|
+
elementRef?: (element: HTMLElement | null) => void
|
|
48
57
|
fontStyle?: 'italic' | 'normal'
|
|
49
58
|
letterSpacing?: 'normal' | 'condensed' | 'expanded'
|
|
50
59
|
lineHeight?: 'default' | 'fit' | 'condensed' | 'double'
|
|
@@ -64,14 +73,8 @@ type TextProps = TextOwnProps & WithStyleProps<TextTheme, TextStyle>
|
|
|
64
73
|
type TextStyle = ComponentStyle<'text'>
|
|
65
74
|
|
|
66
75
|
const propTypes: PropValidators<PropKeys> = {
|
|
67
|
-
/**
|
|
68
|
-
* the element type to render as
|
|
69
|
-
*/
|
|
70
76
|
as: PropTypes.elementType,
|
|
71
77
|
children: PropTypes.node,
|
|
72
|
-
/**
|
|
73
|
-
* Color of the text
|
|
74
|
-
*/
|
|
75
78
|
color: PropTypes.oneOf([
|
|
76
79
|
'primary',
|
|
77
80
|
'secondary',
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { TextProps } from '../props';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
sectionProp: string;
|
|
3
4
|
maxExamplesPerPage: number;
|
|
4
5
|
maxExamples: number;
|
|
5
|
-
getComponentProps: (props:
|
|
6
|
+
getComponentProps: (props: TextProps) => {
|
|
6
7
|
children: string;
|
|
7
8
|
};
|
|
8
|
-
getExampleProps: (props:
|
|
9
|
+
getExampleProps: (props: TextProps) => {
|
|
9
10
|
background: string;
|
|
10
11
|
maxWidth: string;
|
|
11
12
|
};
|
|
12
|
-
filter: (props:
|
|
13
|
+
filter: (props: TextProps) => boolean;
|
|
13
14
|
};
|
|
14
15
|
export default _default;
|
|
15
16
|
//# sourceMappingURL=Text.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.examples.d.ts","sourceRoot":"","sources":["../../../src/Text/__examples__/Text.examples.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.examples.d.ts","sourceRoot":"","sources":["../../../src/Text/__examples__/Text.examples.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;;;;;+BAMP,SAAS;;;6BASX,SAAS;;;;oBAQlB,SAAS;;AArB3B,wBA0CC"}
|
package/types/Text/index.d.ts
CHANGED
|
@@ -6,13 +6,14 @@ import type { TextProps } from './props';
|
|
|
6
6
|
---
|
|
7
7
|
category: components
|
|
8
8
|
---
|
|
9
|
+
@tsProps
|
|
9
10
|
**/
|
|
10
11
|
declare class Text extends Component<TextProps> {
|
|
11
12
|
static readonly componentId = "Text";
|
|
12
13
|
static allowedProps: readonly (keyof {
|
|
13
14
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
14
15
|
color?: "primary" | "secondary" | "brand" | "success" | "warning" | "danger" | "alert" | "primary-inverse" | "secondary-inverse" | undefined;
|
|
15
|
-
elementRef?: ((
|
|
16
|
+
elementRef?: ((element: HTMLElement | null) => void) | undefined;
|
|
16
17
|
fontStyle?: "italic" | "normal" | undefined;
|
|
17
18
|
letterSpacing?: "normal" | "condensed" | "expanded" | undefined;
|
|
18
19
|
lineHeight?: "condensed" | "default" | "fit" | "double" | undefined;
|
|
@@ -25,7 +26,7 @@ declare class Text extends Component<TextProps> {
|
|
|
25
26
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
26
27
|
as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
|
|
27
28
|
color?: "primary" | "secondary" | "brand" | "success" | "warning" | "danger" | "alert" | "primary-inverse" | "secondary-inverse" | undefined;
|
|
28
|
-
elementRef?: ((
|
|
29
|
+
elementRef?: ((element: HTMLElement | null) => void) | undefined;
|
|
29
30
|
fontStyle?: "italic" | "normal" | undefined;
|
|
30
31
|
letterSpacing?: "normal" | "condensed" | "expanded" | undefined;
|
|
31
32
|
lineHeight?: "condensed" | "default" | "fit" | "double" | undefined;
|
|
@@ -43,7 +44,7 @@ declare class Text extends Component<TextProps> {
|
|
|
43
44
|
readonly children: null;
|
|
44
45
|
};
|
|
45
46
|
componentDidMount(): void;
|
|
46
|
-
componentDidUpdate(
|
|
47
|
+
componentDidUpdate(): void;
|
|
47
48
|
render(): jsx.JSX.Element;
|
|
48
49
|
}
|
|
49
50
|
export default Text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Text/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Text/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAGrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAGxC;;;;;GAKG;AACH,cACM,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IACrC,MAAM,CAAC,QAAQ,CAAC,WAAW,UAAS;IAEpC,MAAM,CAAC,YAAY;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAMT;IAEV,iBAAiB;IAIjB,kBAAkB;IAIlB,MAAM;CAiBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
package/types/Text/props.d.ts
CHANGED
|
@@ -2,9 +2,18 @@ import React from 'react';
|
|
|
2
2
|
import type { PropValidators, AsElementType, TextTheme } from '@instructure/shared-types';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type TextOwnProps = {
|
|
5
|
+
/**
|
|
6
|
+
* the element type to render as
|
|
7
|
+
*/
|
|
5
8
|
as?: AsElementType;
|
|
9
|
+
/**
|
|
10
|
+
* Color of the text
|
|
11
|
+
*/
|
|
6
12
|
color?: 'primary' | 'secondary' | 'brand' | 'success' | 'warning' | 'danger' | 'alert' | 'primary-inverse' | 'secondary-inverse';
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Provides a reference to the underlying HTML element
|
|
15
|
+
*/
|
|
16
|
+
elementRef?: (element: HTMLElement | null) => void;
|
|
8
17
|
fontStyle?: 'italic' | 'normal';
|
|
9
18
|
letterSpacing?: 'normal' | 'condensed' | 'expanded';
|
|
10
19
|
lineHeight?: 'default' | 'fit' | 'condensed' | 'double';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Text/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,SAAS,EACV,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,YAAY,GAAG;IAClB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,KAAK,CAAC,EACF,SAAS,GACT,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,OAAO,GACP,iBAAiB,GACjB,mBAAmB,CAAA;IACvB,UAAU,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Text/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,SAAS,EACV,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,YAAY,GAAG;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB;;OAEG;IACH,KAAK,CAAC,EACF,SAAS,GACT,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,GACT,QAAQ,GACR,OAAO,GACP,iBAAiB,GACjB,mBAAmB,CAAA;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IAClD,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC/B,aAAa,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAA;IACnD,UAAU,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,CAAA;IACvD,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;IACxE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,CAAA;IAC7D,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;IACpC,IAAI,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,YAAY,CAAA;AAElC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,SAAS,GAAG,YAAY,GAAG,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;AAEpE,aAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAEvC,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6BvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|