@instructure/ui-flex 10.13.0 → 10.13.1-pr-snapshot-1741357986437

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 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
+ ## [10.13.1-pr-snapshot-1741357986437](https://github.com/instructure/instructure-ui/compare/v10.13.0...v10.13.1-pr-snapshot-1741357986437) (2025-03-07)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-flex
9
+
10
+
11
+
12
+
13
+
6
14
  # [10.13.0](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.13.0) (2025-03-06)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-flex
@@ -5,7 +5,7 @@ var _react = _interopRequireDefault(require("react"));
5
5
  var _react2 = require("@testing-library/react");
6
6
  var _vitest = require("vitest");
7
7
  require("@testing-library/jest-dom");
8
- var _runAxeCheck = require("@instructure/ui-axe-check/lib/runAxeCheck.js");
8
+ var _uiAxeCheck = require("@instructure/ui-axe-check");
9
9
  var _index = require("../index");
10
10
  var _Item, _Item2;
11
11
  /*
@@ -53,7 +53,7 @@ describe('<Item />', () => {
53
53
  it('should meet a11y standards', async () => {
54
54
  const _render3 = (0, _react2.render)(_Item2 || (_Item2 = /*#__PURE__*/_react.default.createElement(_index.Item, null, "Flex item 3"))),
55
55
  container = _render3.container;
56
- const axeCheck = await (0, _runAxeCheck.runAxeCheck)(container);
56
+ const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
57
57
  expect(axeCheck).toBe(true);
58
58
  });
59
59
  });
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = exports.Item = void 0;
8
8
  var _react = require("react");
9
- var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
- var _View = require("@instructure/ui-view/lib/View");
9
+ var _uiReactUtils = require("@instructure/ui-react-utils");
10
+ var _uiView = require("@instructure/ui-view");
11
11
  var _emotion = require("@instructure/emotion");
12
12
  var _styles = _interopRequireDefault(require("./styles"));
13
13
  var _props = require("./props");
@@ -63,7 +63,7 @@ let Item = exports.Item = (_dec = (0, _emotion.withStyle)(_styles.default, null)
63
63
  (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
64
64
  }
65
65
  render() {
66
- const props = (0, _omitProps.omitProps)(this.props, Item.allowedProps);
66
+ const props = (0, _uiReactUtils.omitProps)(this.props, Item.allowedProps);
67
67
  const _this$props3 = this.props,
68
68
  as = _this$props3.as,
69
69
  children = _this$props3.children,
@@ -78,7 +78,7 @@ let Item = exports.Item = (_dec = (0, _emotion.withStyle)(_styles.default, null)
78
78
  styles = _this$props3.styles;
79
79
  const dirColumn = direction === 'column';
80
80
  const dirRow = direction === 'row';
81
- return (0, _emotion.jsx)(_View.View, Object.assign({}, props, {
81
+ return (0, _emotion.jsx)(_uiView.View, Object.assign({}, props, {
82
82
  css: styles === null || styles === void 0 ? void 0 : styles.flexItem,
83
83
  elementRef: this.handleRef,
84
84
  as: as,
@@ -5,7 +5,7 @@ var _react = _interopRequireDefault(require("react"));
5
5
  var _react2 = require("@testing-library/react");
6
6
  var _vitest = require("vitest");
7
7
  require("@testing-library/jest-dom");
8
- var _runAxeCheck = require("@instructure/ui-axe-check/lib/runAxeCheck.js");
8
+ var _uiAxeCheck = require("@instructure/ui-axe-check");
9
9
  var _index = require("../index");
10
10
  var _Flex, _Flex2, _div, _Flex3, _Flex4, _Flex5, _Flex6, _Flex7, _Flex8, _Flex9, _Flex10, _Flex11, _Flex12, _Flex13, _Flex$Item, _Flex14;
11
11
  /*
@@ -176,7 +176,7 @@ describe('<Flex />', () => {
176
176
  it('should meet a11y standards', async () => {
177
177
  const _render12 = (0, _react2.render)(_Flex14 || (_Flex14 = /*#__PURE__*/_react.default.createElement(_index.Flex, null, /*#__PURE__*/_react.default.createElement(_index.Flex.Item, null, "Flex item 1"), /*#__PURE__*/_react.default.createElement(_index.Flex.Item, null, "Flex item 2")))),
178
178
  container = _render12.container;
179
- const axeCheck = await (0, _runAxeCheck.runAxeCheck)(container);
179
+ const axeCheck = await (0, _uiAxeCheck.runAxeCheck)(container);
180
180
  expect(axeCheck).toBe(true);
181
181
  });
182
182
  });
package/lib/Flex/index.js CHANGED
@@ -14,11 +14,8 @@ Object.defineProperty(exports, "FlexItem", {
14
14
  });
15
15
  exports.default = void 0;
16
16
  var _react = _interopRequireWildcard(require("react"));
17
- var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
18
- var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
19
- var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
20
- var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
21
- var _View = require("@instructure/ui-view/lib/View");
17
+ var _uiReactUtils = require("@instructure/ui-react-utils");
18
+ var _uiView = require("@instructure/ui-view");
22
19
  var _emotion = require("@instructure/emotion");
23
20
  var _Item = require("./Item");
24
21
  var _styles = _interopRequireDefault(require("./styles"));
@@ -81,7 +78,7 @@ let Flex = exports.Flex = (_dec = (0, _emotion.withStyle)(_styles.default, _them
81
78
  if (!child) {
82
79
  return null;
83
80
  }
84
- return (0, _matchComponentTypes.matchComponentTypes)(child, ['Item']) ? (0, _safeCloneElement.safeCloneElement)(child, {
81
+ return (0, _uiReactUtils.matchComponentTypes)(child, ['Item']) ? (0, _uiReactUtils.safeCloneElement)(child, {
85
82
  // child withVisualDebug prop should override parent
86
83
  withVisualDebug: this.props.withVisualDebug,
87
84
  ...child.props,
@@ -102,11 +99,11 @@ let Flex = exports.Flex = (_dec = (0, _emotion.withStyle)(_styles.default, _them
102
99
  styles = _this$props3.styles,
103
100
  gap = _this$props3.gap,
104
101
  wrap = _this$props3.wrap;
105
- const children = (0, _callRenderProp.callRenderProp)(this.props.children);
102
+ const children = (0, _uiReactUtils.callRenderProp)(this.props.children);
106
103
  const gapValuesArray = gap === null || gap === void 0 ? void 0 : gap.split(' ');
107
104
  if (gapValuesArray.length > 1 && wrap === 'no-wrap') {}
108
105
  if (children && _react.Children.count(children) > 0) {
109
- return (0, _emotion.jsx)(_View.View, Object.assign({}, (0, _passthroughProps.passthroughProps)(this.props), {
106
+ return (0, _emotion.jsx)(_uiView.View, Object.assign({}, (0, _uiReactUtils.passthroughProps)(this.props), {
110
107
  css: styles === null || styles === void 0 ? void 0 : styles.flex,
111
108
  elementRef: this.handleRef,
112
109
  as: as,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-flex",
3
- "version": "10.13.0",
3
+ "version": "10.13.1-pr-snapshot-1741357986437",
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
  "module": "./es/index.js",
@@ -24,18 +24,18 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.26.0",
27
- "@instructure/console": "10.13.0",
28
- "@instructure/emotion": "10.13.0",
29
- "@instructure/shared-types": "10.13.0",
30
- "@instructure/ui-react-utils": "10.13.0",
31
- "@instructure/ui-view": "10.13.0",
27
+ "@instructure/console": "10.13.1-pr-snapshot-1741357986437",
28
+ "@instructure/emotion": "10.13.1-pr-snapshot-1741357986437",
29
+ "@instructure/shared-types": "10.13.1-pr-snapshot-1741357986437",
30
+ "@instructure/ui-react-utils": "10.13.1-pr-snapshot-1741357986437",
31
+ "@instructure/ui-view": "10.13.1-pr-snapshot-1741357986437",
32
32
  "prop-types": "^15.8.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@instructure/ui-axe-check": "10.13.0",
36
- "@instructure/ui-babel-preset": "10.13.0",
37
- "@instructure/ui-test-utils": "10.13.0",
38
- "@instructure/ui-themes": "10.13.0",
35
+ "@instructure/ui-axe-check": "10.13.1-pr-snapshot-1741357986437",
36
+ "@instructure/ui-babel-preset": "10.13.1-pr-snapshot-1741357986437",
37
+ "@instructure/ui-test-utils": "10.13.1-pr-snapshot-1741357986437",
38
+ "@instructure/ui-themes": "10.13.1-pr-snapshot-1741357986437",
39
39
  "@testing-library/jest-dom": "^6.6.3",
40
40
  "@testing-library/react": "^16.0.1",
41
41
  "vitest": "^2.1.8"