@instructure/ui-flex 8.9.2-snapshot.1 → 8.9.2-snapshot.12

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.
@@ -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
  }
@@ -48,7 +48,7 @@ let Item = (_dec = withStyle(generateStyle), _dec(_class = (_temp = _class2 = cl
48
48
  }
49
49
 
50
50
  render() {
51
- const props = omitProps(this.props, Item.propTypes);
51
+ const props = omitProps(this.props, Item.allowedProps);
52
52
  const _this$props = this.props,
53
53
  as = _this$props.as,
54
54
  elementRef = _this$props.elementRef,
@@ -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
  }
@@ -37,7 +37,7 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default), _dec(_class = (_tem
37
37
  }
38
38
 
39
39
  render() {
40
- const props = (0, _omitProps.omitProps)(this.props, Item.propTypes);
40
+ const props = (0, _omitProps.omitProps)(this.props, Item.allowedProps);
41
41
  const _this$props = this.props,
42
42
  as = _this$props.as,
43
43
  elementRef = _this$props.elementRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-flex",
3
- "version": "8.9.2-snapshot.1+11d97b23e",
3
+ "version": "8.9.2-snapshot.12+6231ada93",
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.9.2-snapshot.1+11d97b23e",
29
- "@instructure/emotion": "8.9.2-snapshot.1+11d97b23e",
30
- "@instructure/shared-types": "8.9.2-snapshot.1+11d97b23e",
31
- "@instructure/ui-react-utils": "8.9.2-snapshot.1+11d97b23e",
32
- "@instructure/ui-view": "8.9.2-snapshot.1+11d97b23e",
28
+ "@instructure/console": "8.9.2-snapshot.12+6231ada93",
29
+ "@instructure/emotion": "8.9.2-snapshot.12+6231ada93",
30
+ "@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
31
+ "@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
32
+ "@instructure/ui-view": "8.9.2-snapshot.12+6231ada93",
33
33
  "prop-types": "^15"
34
34
  },
35
35
  "devDependencies": {
36
- "@instructure/ui-babel-preset": "8.9.2-snapshot.1+11d97b23e",
37
- "@instructure/ui-test-utils": "8.9.2-snapshot.1+11d97b23e",
38
- "@instructure/ui-themes": "8.9.2-snapshot.1+11d97b23e"
36
+ "@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
37
+ "@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93",
38
+ "@instructure/ui-themes": "8.9.2-snapshot.12+6231ada93"
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": "11d97b23ea6f8360db54acd61c9caf51d787354b"
47
+ "gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
48
48
  }
@@ -40,7 +40,7 @@ parent: Flex
40
40
  id: Flex.Item
41
41
  ---
42
42
  **/
43
- @withStyle(generateStyle)
43
+ @withStyle(generateStyle, null)
44
44
  class Item extends Component<FlexItemProps> {
45
45
  static readonly componentId = 'Flex.Item'
46
46
 
@@ -65,7 +65,7 @@ class Item extends Component<FlexItemProps> {
65
65
  }
66
66
 
67
67
  render() {
68
- const props = omitProps(this.props, Item.propTypes)
68
+ const props = omitProps(this.props, Item.allowedProps)
69
69
 
70
70
  const {
71
71
  as,
@@ -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 { Spacing, WithStyleProps } from '@instructure/emotion'
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 }
@@ -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 { AsElementType, PropValidators } from '@instructure/shared-types'
30
- import type { Spacing, WithStyleProps } from '@instructure/emotion'
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 }
@@ -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 = (componentTheme: FlexTheme, props: FlexProps) => {
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,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEnE,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,GA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AAM,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;AAEvC;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,+BAGV,aAAa;;;;;;;;;;CAwBrB,CAAA;AAED,eAAe,aAAa,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"}
@@ -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,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEnE,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,CAA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,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"}
@@ -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;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC;;;;;;;;;;;;;GAaG;AAEH,QAAA,MAAM,aAAa,mBAAoB,SAAS,SAAS,SAAS;;;;;;;;;;CAqDjE,CAAA;AAED,eAAe,aAAa,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"}