@instructure/ui-flex 8.9.2-snapshot.7 → 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/CHANGELOG.md +4 -0
- package/es/Flex/Item/index.js +1 -1
- package/lib/Flex/Item/index.js +1 -1
- package/package.json +10 -10
- package/src/Flex/Item/index.tsx +1 -1
- package/src/Flex/Item/props.ts +9 -3
- package/src/Flex/Item/styles.ts +2 -2
- package/src/Flex/props.ts +14 -4
- package/src/Flex/styles.ts +6 -3
- package/types/Flex/Item/props.d.ts +4 -3
- package/types/Flex/Item/props.d.ts.map +1 -1
- package/types/Flex/Item/styles.d.ts +2 -12
- package/types/Flex/Item/styles.d.ts.map +1 -1
- package/types/Flex/props.d.ts +5 -4
- package/types/Flex/props.d.ts.map +1 -1
- package/types/Flex/styles.d.ts +3 -13
- package/types/Flex/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-flex
|
|
9
|
+
|
|
6
10
|
## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-flex
|
package/es/Flex/Item/index.js
CHANGED
|
@@ -38,7 +38,7 @@ parent: Flex
|
|
|
38
38
|
id: Flex.Item
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
|
-
let Item = (_dec = withStyle(generateStyle), _dec(_class = (_temp = _class2 = class Item extends Component {
|
|
41
|
+
let Item = (_dec = withStyle(generateStyle, null), _dec(_class = (_temp = _class2 = class Item extends Component {
|
|
42
42
|
componentDidMount() {
|
|
43
43
|
this.props.makeStyles();
|
|
44
44
|
}
|
package/lib/Flex/Item/index.js
CHANGED
|
@@ -27,7 +27,7 @@ parent: Flex
|
|
|
27
27
|
id: Flex.Item
|
|
28
28
|
---
|
|
29
29
|
**/
|
|
30
|
-
let Item = (_dec = (0, _emotion.withStyle)(_styles.default), _dec(_class = (_temp = _class2 = class Item extends _react.Component {
|
|
30
|
+
let Item = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec(_class = (_temp = _class2 = class Item extends _react.Component {
|
|
31
31
|
componentDidMount() {
|
|
32
32
|
this.props.makeStyles();
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-flex",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.1-snapshot.8+21f46f4e3",
|
|
4
4
|
"description": "A component that makes it easy to align content using flexbox CSS",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.
|
|
29
|
-
"@instructure/emotion": "8.
|
|
30
|
-
"@instructure/shared-types": "8.
|
|
31
|
-
"@instructure/ui-react-utils": "8.
|
|
32
|
-
"@instructure/ui-view": "8.
|
|
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
|
+
"@instructure/ui-view": "8.10.1-snapshot.8+21f46f4e3",
|
|
33
33
|
"prop-types": "^15"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@instructure/ui-babel-preset": "8.
|
|
37
|
-
"@instructure/ui-test-utils": "8.
|
|
38
|
-
"@instructure/ui-themes": "8.
|
|
36
|
+
"@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
|
|
37
|
+
"@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
|
|
38
|
+
"@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8 <=17"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"sideEffects": false,
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
|
|
48
48
|
}
|
package/src/Flex/Item/index.tsx
CHANGED
package/src/Flex/Item/props.ts
CHANGED
|
@@ -28,7 +28,11 @@ import PropTypes from 'prop-types'
|
|
|
28
28
|
import { ThemeablePropTypes } from '@instructure/emotion'
|
|
29
29
|
|
|
30
30
|
import type { AsElementType, PropValidators } from '@instructure/shared-types'
|
|
31
|
-
import type {
|
|
31
|
+
import type {
|
|
32
|
+
Spacing,
|
|
33
|
+
WithStyleProps,
|
|
34
|
+
ComponentStyle
|
|
35
|
+
} from '@instructure/emotion'
|
|
32
36
|
|
|
33
37
|
type FlexItemOwnProps = {
|
|
34
38
|
children?: React.ReactNode
|
|
@@ -51,7 +55,9 @@ type PropKeys = keyof FlexItemOwnProps
|
|
|
51
55
|
|
|
52
56
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
53
57
|
|
|
54
|
-
type FlexItemProps = FlexItemOwnProps & WithStyleProps
|
|
58
|
+
type FlexItemProps = FlexItemOwnProps & WithStyleProps<null, FlexItemStyle>
|
|
59
|
+
|
|
60
|
+
type FlexItemStyle = ComponentStyle<'flexItem'>
|
|
55
61
|
|
|
56
62
|
const propTypes: PropValidators<PropKeys> = {
|
|
57
63
|
/**
|
|
@@ -133,5 +139,5 @@ const allowedProps: AllowedPropKeys = [
|
|
|
133
139
|
'withVisualDebug'
|
|
134
140
|
]
|
|
135
141
|
|
|
136
|
-
export type { FlexItemProps }
|
|
142
|
+
export type { FlexItemProps, FlexItemStyle }
|
|
137
143
|
export { propTypes, allowedProps }
|
package/src/Flex/Item/styles.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { FlexItemProps } from './props'
|
|
25
|
+
import type { FlexItemProps, FlexItemStyle } from './props'
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* ---
|
|
@@ -38,7 +38,7 @@ const generateStyle = (
|
|
|
38
38
|
// @ts-expect-error no theme is used here
|
|
39
39
|
componentTheme,
|
|
40
40
|
props: FlexItemProps
|
|
41
|
-
) => {
|
|
41
|
+
): FlexItemStyle => {
|
|
42
42
|
const { shouldGrow, shouldShrink, align, size } = props
|
|
43
43
|
|
|
44
44
|
const alignSelfValues = {
|
package/src/Flex/props.ts
CHANGED
|
@@ -26,8 +26,16 @@ import PropTypes from 'prop-types'
|
|
|
26
26
|
|
|
27
27
|
import { ThemeablePropTypes } from '@instructure/emotion'
|
|
28
28
|
|
|
29
|
-
import type {
|
|
30
|
-
|
|
29
|
+
import type {
|
|
30
|
+
AsElementType,
|
|
31
|
+
PropValidators,
|
|
32
|
+
FlexTheme
|
|
33
|
+
} from '@instructure/shared-types'
|
|
34
|
+
import type {
|
|
35
|
+
Spacing,
|
|
36
|
+
WithStyleProps,
|
|
37
|
+
ComponentStyle
|
|
38
|
+
} from '@instructure/emotion'
|
|
31
39
|
|
|
32
40
|
type FlexOwnProps = {
|
|
33
41
|
children?: React.ReactNode | ((...args: any[]) => React.ReactNode)
|
|
@@ -50,7 +58,9 @@ type PropKeys = keyof FlexOwnProps
|
|
|
50
58
|
|
|
51
59
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
52
60
|
|
|
53
|
-
type FlexProps = FlexOwnProps & WithStyleProps
|
|
61
|
+
type FlexProps = FlexOwnProps & WithStyleProps<FlexTheme, FlexStyle>
|
|
62
|
+
|
|
63
|
+
type FlexStyle = ComponentStyle<'flex'>
|
|
54
64
|
|
|
55
65
|
const propTypes: PropValidators<PropKeys> = {
|
|
56
66
|
/**
|
|
@@ -146,5 +156,5 @@ const allowedProps: AllowedPropKeys = [
|
|
|
146
156
|
'withVisualDebug'
|
|
147
157
|
]
|
|
148
158
|
|
|
149
|
-
export type { FlexProps }
|
|
159
|
+
export type { FlexProps, FlexStyle }
|
|
150
160
|
export { propTypes, allowedProps }
|
package/src/Flex/styles.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { FlexTheme } from '@instructure/shared-types'
|
|
26
|
-
import { FlexProps } from './props'
|
|
25
|
+
import type { FlexTheme } from '@instructure/shared-types'
|
|
26
|
+
import type { FlexProps, FlexStyle } from './props'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* ---
|
|
@@ -40,7 +40,10 @@ import { FlexProps } from './props'
|
|
|
40
40
|
* @return {Object} The final style object, which will be used in the component
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
|
-
const generateStyle = (
|
|
43
|
+
const generateStyle = (
|
|
44
|
+
componentTheme: FlexTheme,
|
|
45
|
+
props: FlexProps
|
|
46
|
+
): FlexStyle => {
|
|
44
47
|
const { justifyItems, wrap, direction } = props
|
|
45
48
|
|
|
46
49
|
// align-items css prop
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AsElementType, PropValidators } from '@instructure/shared-types';
|
|
3
|
-
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
+
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type FlexItemOwnProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
as?: AsElementType;
|
|
@@ -19,9 +19,10 @@ declare type FlexItemOwnProps = {
|
|
|
19
19
|
};
|
|
20
20
|
declare type PropKeys = keyof FlexItemOwnProps;
|
|
21
21
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
22
|
-
declare type FlexItemProps = FlexItemOwnProps & WithStyleProps
|
|
22
|
+
declare type FlexItemProps = FlexItemOwnProps & WithStyleProps<null, FlexItemStyle>;
|
|
23
|
+
declare type FlexItemStyle = ComponentStyle<'flexItem'>;
|
|
23
24
|
declare const propTypes: PropValidators<PropKeys>;
|
|
24
25
|
declare const allowedProps: AllowedPropKeys;
|
|
25
|
-
export type { FlexItemProps };
|
|
26
|
+
export type { FlexItemProps, FlexItemStyle };
|
|
26
27
|
export { propTypes, allowedProps };
|
|
27
28
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Flex/Item/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Flex/Item/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAE7B,aAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;IAC9C,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;IACzC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAA;AAEtC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;AAE3E,aAAK,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAE/C,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA6DvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexItemProps } from './props';
|
|
1
|
+
import type { FlexItemProps, FlexItemStyle } from './props';
|
|
2
2
|
/**
|
|
3
3
|
* ---
|
|
4
4
|
* private: true
|
|
@@ -9,16 +9,6 @@ import { FlexItemProps } from './props';
|
|
|
9
9
|
* @param {Object} state the state of the component, the style is applied to
|
|
10
10
|
* @return {Object} The final style object, which will be used in the component
|
|
11
11
|
*/
|
|
12
|
-
declare const generateStyle: (componentTheme: any, props: FlexItemProps) =>
|
|
13
|
-
flexItem: {
|
|
14
|
-
alignSelf?: string | undefined;
|
|
15
|
-
flexGrow?: number | undefined;
|
|
16
|
-
label: string;
|
|
17
|
-
boxSizing: string;
|
|
18
|
-
minWidth: string;
|
|
19
|
-
flexBasis: string | undefined;
|
|
20
|
-
flexShrink: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
12
|
+
declare const generateStyle: (componentTheme: any, props: FlexItemProps) => FlexItemStyle;
|
|
23
13
|
export default generateStyle;
|
|
24
14
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Flex/Item/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Flex/Item/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3D;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,+BAGV,aAAa,KACnB,aAuBF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
package/types/Flex/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { AsElementType, PropValidators } from '@instructure/shared-types';
|
|
3
|
-
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
2
|
+
import type { AsElementType, PropValidators, FlexTheme } from '@instructure/shared-types';
|
|
3
|
+
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
4
|
declare type FlexOwnProps = {
|
|
5
5
|
children?: React.ReactNode | ((...args: any[]) => React.ReactNode);
|
|
6
6
|
as?: AsElementType;
|
|
@@ -19,9 +19,10 @@ declare type FlexOwnProps = {
|
|
|
19
19
|
};
|
|
20
20
|
declare type PropKeys = keyof FlexOwnProps;
|
|
21
21
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
22
|
-
declare type FlexProps = FlexOwnProps & WithStyleProps
|
|
22
|
+
declare type FlexProps = FlexOwnProps & WithStyleProps<FlexTheme, FlexStyle>;
|
|
23
|
+
declare type FlexStyle = ComponentStyle<'flex'>;
|
|
23
24
|
declare const propTypes: PropValidators<PropKeys>;
|
|
24
25
|
declare const allowedProps: AllowedPropKeys;
|
|
25
|
-
export type { FlexProps };
|
|
26
|
+
export type { FlexProps, FlexStyle };
|
|
26
27
|
export { propTypes, allowedProps };
|
|
27
28
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Flex/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Flex/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,SAAS,EACV,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAE7B,aAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IAClE,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;IAChC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IACtC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAA;IAC/D,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;IACnD,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,cAAc,GAAG,eAAe,CAAA;IAC5E,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,cAAc,CAAA;IAC1C,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,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,CA2EvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAenB,CAAA;AAED,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Flex/styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FlexTheme } from '@instructure/shared-types';
|
|
2
|
-
import { FlexProps } from './props';
|
|
1
|
+
import type { FlexTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { FlexProps, FlexStyle } from './props';
|
|
3
3
|
/**
|
|
4
4
|
* ---
|
|
5
5
|
* private: true
|
|
@@ -14,16 +14,6 @@ import { FlexProps } from './props';
|
|
|
14
14
|
* @param {Object} state the state of the component, the style is applied to
|
|
15
15
|
* @return {Object} The final style object, which will be used in the component
|
|
16
16
|
*/
|
|
17
|
-
declare const generateStyle: (componentTheme: FlexTheme, props: FlexProps) =>
|
|
18
|
-
flex: {
|
|
19
|
-
label: string;
|
|
20
|
-
fontFamily: string;
|
|
21
|
-
boxSizing: string;
|
|
22
|
-
alignItems: string;
|
|
23
|
-
justifyContent: string;
|
|
24
|
-
flexWrap: string | undefined;
|
|
25
|
-
flexDirection: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
17
|
+
declare const generateStyle: (componentTheme: FlexTheme, props: FlexProps) => FlexStyle;
|
|
28
18
|
export default generateStyle;
|
|
29
19
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Flex/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Flex/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;;;;;;;;;;GAaG;AAEH,QAAA,MAAM,aAAa,mBACD,SAAS,SAClB,SAAS,KACf,SAqDF,CAAA;AAED,eAAe,aAAa,CAAA"}
|