@instructure/ui-flex 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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.
Files changed (44) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/Flex/v1/props.js → babel.config.cjs} +12 -7
  4. package/es/Flex/v1/Item/index.js +3 -3
  5. package/es/Flex/v1/index.js +5 -5
  6. package/es/Flex/v2/Item/index.js +3 -3
  7. package/es/Flex/v2/index.js +4 -4
  8. package/es/exports/a.js +2 -1
  9. package/es/exports/b.js +2 -1
  10. package/package.json +11 -16
  11. package/src/Flex/v1/Item/index.tsx +3 -2
  12. package/src/Flex/v1/index.tsx +5 -4
  13. package/src/Flex/v2/Item/index.tsx +3 -2
  14. package/src/Flex/v2/index.tsx +4 -3
  15. package/src/exports/a.ts +1 -1
  16. package/src/exports/b.ts +1 -1
  17. package/tsconfig.build.tsbuildinfo +1 -1
  18. package/types/Flex/v1/Item/index.d.ts +1 -0
  19. package/types/Flex/v1/Item/index.d.ts.map +1 -1
  20. package/types/Flex/v1/index.d.ts +2 -1
  21. package/types/Flex/v1/index.d.ts.map +1 -1
  22. package/types/Flex/v2/Item/index.d.ts +1 -0
  23. package/types/Flex/v2/Item/index.d.ts.map +1 -1
  24. package/types/Flex/v2/index.d.ts +2 -1
  25. package/types/Flex/v2/index.d.ts.map +1 -1
  26. package/types/exports/a.d.ts +1 -1
  27. package/types/exports/a.d.ts.map +1 -1
  28. package/types/exports/b.d.ts +1 -1
  29. package/types/exports/b.d.ts.map +1 -1
  30. package/lib/Flex/v1/Item/index.js +0 -104
  31. package/lib/Flex/v1/Item/props.js +0 -31
  32. package/lib/Flex/v1/Item/styles.js +0 -76
  33. package/lib/Flex/v1/index.js +0 -138
  34. package/lib/Flex/v1/styles.js +0 -105
  35. package/lib/Flex/v1/theme.js +0 -50
  36. package/lib/Flex/v2/Item/index.js +0 -104
  37. package/lib/Flex/v2/Item/props.js +0 -31
  38. package/lib/Flex/v2/Item/styles.js +0 -76
  39. package/lib/Flex/v2/index.js +0 -137
  40. package/lib/Flex/v2/props.js +0 -31
  41. package/lib/Flex/v2/styles.js +0 -109
  42. package/lib/exports/a.js +0 -18
  43. package/lib/exports/b.js +0 -18
  44. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+ ## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-flex
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['children', 'as', 'elementRef', 'height', 'width', 'margin', 'padding', 'display', 'textAlign', 'direction', 'alignItems', 'justifyItems', 'wrap', 'withVisualDebug'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -27,8 +27,8 @@ import { Component } from 'react';
27
27
  import { omitProps } from '@instructure/ui-react-utils';
28
28
  import { View } from '@instructure/ui-view/v11_6';
29
29
  import { withStyle } from '@instructure/emotion';
30
- import generateStyle from "./styles.js";
31
- import { allowedProps } from "./props.js";
30
+ import generateStyle from './styles.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -37,7 +37,7 @@ id: Flex.Item
37
37
  ---
38
38
  **/
39
39
  let Item = (_dec = withStyle(generateStyle, null), _dec(_class = class Item extends Component {
40
- static displayName = "Item";
40
+ static displayName = 'Item';
41
41
  static componentId = 'Flex.Item';
42
42
  componentDidMount() {
43
43
  this.props.makeStyles?.();
@@ -27,10 +27,10 @@ import { Children, Component } from 'react';
27
27
  import { safeCloneElement, passthroughProps, matchComponentTypes, callRenderProp } from '@instructure/ui-react-utils';
28
28
  import { View } from '@instructure/ui-view/v11_6';
29
29
  import { withStyle } from '@instructure/emotion';
30
- import { Item } from "./Item/index.js";
31
- import generateStyle from "./styles.js";
32
- import generateComponentTheme from "./theme.js";
33
- import { allowedProps } from "./props.js";
30
+ import { Item } from './Item/index.js';
31
+ import generateStyle from './styles.js';
32
+ import generateComponentTheme from './theme.js';
33
+ import { allowedProps } from './props.js';
34
34
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
35
35
  /**
36
36
  ---
@@ -39,7 +39,7 @@ category: components
39
39
  @module Flex
40
40
  **/
41
41
  let Flex = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Flex extends Component {
42
- static displayName = "Flex";
42
+ static displayName = 'Flex';
43
43
  static componentId = 'Flex';
44
44
  componentDidMount() {
45
45
  this.props.makeStyles?.();
@@ -27,8 +27,8 @@ import { Component } from 'react';
27
27
  import { omitProps } from '@instructure/ui-react-utils';
28
28
  import { View } from '@instructure/ui-view/latest';
29
29
  import { withStyle } from '@instructure/emotion';
30
- import generateStyle from "./styles.js";
31
- import { allowedProps } from "./props.js";
30
+ import generateStyle from './styles.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -37,7 +37,7 @@ id: Flex.Item
37
37
  ---
38
38
  **/
39
39
  let Item = (_dec = withStyle(generateStyle, null), _dec(_class = class Item extends Component {
40
- static displayName = "Item";
40
+ static displayName = 'Item';
41
41
  static componentId = 'Flex.Item';
42
42
  componentDidMount() {
43
43
  this.props.makeStyles?.();
@@ -27,9 +27,9 @@ import { Children, Component } from 'react';
27
27
  import { safeCloneElement, passthroughProps, matchComponentTypes, callRenderProp } from '@instructure/ui-react-utils';
28
28
  import { View } from '@instructure/ui-view/latest';
29
29
  import { withStyleNew } from '@instructure/emotion';
30
- import { Item } from "./Item/index.js";
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
30
+ import { Item } from './Item/index.js';
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -38,7 +38,7 @@ category: components
38
38
  @module Flex
39
39
  **/
40
40
  let Flex = (_dec = withStyleNew(generateStyle), _dec(_class = class Flex extends Component {
41
- static displayName = "Flex";
41
+ static displayName = 'Flex';
42
42
  static componentId = 'Flex';
43
43
  componentDidMount() {
44
44
  this.props.makeStyles?.();
package/es/exports/a.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Flex, FlexItem } from "../Flex/v1/index.js";
24
+
25
+ export { Flex, FlexItem } from '../Flex/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Flex, FlexItem } from "../Flex/v2/index.js";
24
+
25
+ export { Flex, FlexItem } from '../Flex/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-flex",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A component that makes it easy to align content using flexbox CSS",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -15,19 +15,19 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/console": "11.7.3",
19
- "@instructure/ui-react-utils": "11.7.3",
20
- "@instructure/emotion": "11.7.3",
21
- "@instructure/shared-types": "11.7.3",
22
- "@instructure/ui-themes": "11.7.3",
23
- "@instructure/ui-view": "11.7.3"
18
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@testing-library/jest-dom": "^6.6.3",
27
27
  "@testing-library/react": "15.0.7",
28
28
  "vitest": "^3.2.2",
29
- "@instructure/ui-babel-preset": "11.7.3",
30
- "@instructure/ui-axe-check": "11.7.3"
29
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=18 <=19"
@@ -37,7 +37,6 @@
37
37
  },
38
38
  "sideEffects": false,
39
39
  "exports": {
40
- "./lib/*": "./lib/*",
41
40
  "./es/*": "./es/*",
42
41
  "./types/*": "./types/*",
43
42
  "./package.json": "./package.json",
@@ -46,28 +45,24 @@
46
45
  "src": "./src/exports/a.ts",
47
46
  "types": "./types/exports/a.d.ts",
48
47
  "import": "./es/exports/a.js",
49
- "require": "./lib/exports/a.js",
50
48
  "default": "./es/exports/a.js"
51
49
  },
52
50
  "./v11_6": {
53
51
  "src": "./src/exports/a.ts",
54
52
  "types": "./types/exports/a.d.ts",
55
53
  "import": "./es/exports/a.js",
56
- "require": "./lib/exports/a.js",
57
54
  "default": "./es/exports/a.js"
58
55
  },
59
56
  "./v11_7": {
60
57
  "src": "./src/exports/b.ts",
61
58
  "types": "./types/exports/b.d.ts",
62
59
  "import": "./es/exports/b.js",
63
- "require": "./lib/exports/b.js",
64
60
  "default": "./es/exports/b.js"
65
61
  },
66
62
  "./latest": {
67
63
  "src": "./src/exports/b.ts",
68
64
  "types": "./types/exports/b.d.ts",
69
65
  "import": "./es/exports/b.js",
70
- "require": "./lib/exports/b.js",
71
66
  "default": "./es/exports/b.js"
72
67
  }
73
68
  },
@@ -75,7 +70,7 @@
75
70
  "lint": "ui-scripts lint",
76
71
  "lint:fix": "ui-scripts lint --fix",
77
72
  "clean": "ui-scripts clean",
78
- "build": "ui-scripts build --modules es,cjs",
73
+ "build": "ui-scripts build",
79
74
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
80
75
  "build:types": "tsc -p tsconfig.build.json",
81
76
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -28,9 +28,9 @@ import { omitProps } from '@instructure/ui-react-utils'
28
28
  import { View } from '@instructure/ui-view/v11_6'
29
29
  import { withStyle } from '@instructure/emotion'
30
30
 
31
- import generateStyle from './styles'
31
+ import generateStyle from './styles.js'
32
32
 
33
- import { allowedProps } from './props'
33
+ import { allowedProps } from './props.js'
34
34
  import type { FlexItemProps } from './props'
35
35
 
36
36
  /**
@@ -41,6 +41,7 @@ id: Flex.Item
41
41
  **/
42
42
  @withStyle(generateStyle, null)
43
43
  class Item extends Component<FlexItemProps> {
44
+ static displayName = 'Item'
44
45
  static readonly componentId = 'Flex.Item'
45
46
 
46
47
  componentDidMount() {
@@ -33,13 +33,13 @@ import {
33
33
  import { View } from '@instructure/ui-view/v11_6'
34
34
  import { withStyle } from '@instructure/emotion'
35
35
 
36
- import { Item } from './Item'
36
+ import { Item } from './Item/index.js'
37
37
  import type { FlexItemProps } from './Item/props'
38
38
 
39
- import generateStyle from './styles'
40
- import generateComponentTheme from './theme'
39
+ import generateStyle from './styles.js'
40
+ import generateComponentTheme from './theme.js'
41
41
 
42
- import { allowedProps } from './props'
42
+ import { allowedProps } from './props.js'
43
43
  import type { FlexProps } from './props'
44
44
 
45
45
  /**
@@ -50,6 +50,7 @@ category: components
50
50
  **/
51
51
  @withStyle(generateStyle, generateComponentTheme)
52
52
  class Flex extends Component<FlexProps> {
53
+ static displayName = 'Flex'
53
54
  static readonly componentId = 'Flex'
54
55
 
55
56
  componentDidMount() {
@@ -28,9 +28,9 @@ import { omitProps } from '@instructure/ui-react-utils'
28
28
  import { View } from '@instructure/ui-view/latest'
29
29
  import { withStyle } from '@instructure/emotion'
30
30
 
31
- import generateStyle from './styles'
31
+ import generateStyle from './styles.js'
32
32
 
33
- import { allowedProps } from './props'
33
+ import { allowedProps } from './props.js'
34
34
  import type { FlexItemProps } from './props'
35
35
 
36
36
  /**
@@ -41,6 +41,7 @@ id: Flex.Item
41
41
  **/
42
42
  @withStyle(generateStyle, null)
43
43
  class Item extends Component<FlexItemProps> {
44
+ static displayName = 'Item'
44
45
  static readonly componentId = 'Flex.Item'
45
46
 
46
47
  componentDidMount() {
@@ -33,12 +33,12 @@ import {
33
33
  import { View } from '@instructure/ui-view/latest'
34
34
  import { withStyleNew } from '@instructure/emotion'
35
35
 
36
- import { Item } from './Item'
36
+ import { Item } from './Item/index.js'
37
37
  import type { FlexItemProps } from './Item/props'
38
38
 
39
- import generateStyle from './styles'
39
+ import generateStyle from './styles.js'
40
40
 
41
- import { allowedProps } from './props'
41
+ import { allowedProps } from './props.js'
42
42
  import type { FlexProps } from './props'
43
43
 
44
44
  /**
@@ -49,6 +49,7 @@ category: components
49
49
  **/
50
50
  @withStyleNew(generateStyle)
51
51
  class Flex extends Component<FlexProps> {
52
+ static displayName = 'Flex'
52
53
  static readonly componentId = 'Flex'
53
54
 
54
55
  componentDidMount() {
package/src/exports/a.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { Flex, FlexItem } from '../Flex/v1'
25
+ export { Flex, FlexItem } from '../Flex/v1/index.js'
26
26
 
27
27
  export type { FlexProps } from '../Flex/v1/props'
28
28
  export type { FlexItemProps } from '../Flex/v1/Item/props'
package/src/exports/b.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { Flex, FlexItem } from '../Flex/v2'
25
+ export { Flex, FlexItem } from '../Flex/v2/index.js'
26
26
 
27
27
  export type { FlexProps } from '../Flex/v2/props'
28
28
  export type { FlexItemProps } from '../Flex/v2/Item/props'