@instructure/ui-simple-select 10.2.3-snapshot-14 → 10.2.3-snapshot-16

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,7 +3,7 @@
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.2.3-snapshot-14](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-14) (2024-10-02)
6
+ ## [10.2.3-snapshot-16](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-16) (2024-10-03)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -56,7 +56,7 @@ describe('<SimpleSelect />', () => {
56
56
 
57
57
  it('should have role combobox in different browsers than Safari', async () => {
58
58
  mockUtils.isSafari = vi.fn(() => false);
59
- const _render = render( /*#__PURE__*/React.createElement(SimpleSelect, {
59
+ const _render = render(/*#__PURE__*/React.createElement(SimpleSelect, {
60
60
  renderLabel: "Choose an option"
61
61
  }, getOptions())),
62
62
  container = _render.container;
@@ -72,7 +72,7 @@ describe('<SimpleSelect />', () => {
72
72
  value: opt
73
73
  }, opt));
74
74
  const renderSimpleSelect = options => {
75
- return render( /*#__PURE__*/React.createElement(SimpleSelect, {
75
+ return render(/*#__PURE__*/React.createElement(SimpleSelect, {
76
76
  renderLabel: "Choose an option"
77
77
  }, getOptions(options)));
78
78
  };
@@ -88,7 +88,7 @@ describe('<SimpleSelect />', () => {
88
88
  });
89
89
  fireEvent.click(fooOption);
90
90
  expect(input).toHaveValue('foo');
91
- rerender( /*#__PURE__*/React.createElement(SimpleSelect, {
91
+ rerender(/*#__PURE__*/React.createElement(SimpleSelect, {
92
92
  renderLabel: "Choose an option"
93
93
  }, getOptions(updatedOptions)));
94
94
  expect(input).toHaveValue('');
@@ -105,7 +105,7 @@ describe('<SimpleSelect />', () => {
105
105
  });
106
106
  fireEvent.click(barOption);
107
107
  expect(input).toHaveValue('bar');
108
- rerender( /*#__PURE__*/React.createElement(SimpleSelect, {
108
+ rerender(/*#__PURE__*/React.createElement(SimpleSelect, {
109
109
  renderLabel: "Choose an option"
110
110
  }, getOptions(updatedOptions)));
111
111
  expect(input).toHaveValue('bar');
@@ -178,7 +178,7 @@ let SimpleSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_clas
178
178
  }
179
179
  hasOptionsChanged(prevChildren, currentChildren) {
180
180
  const getValues = children => React.Children.map(children, child => {
181
- if ( /*#__PURE__*/React.isValidElement(child)) {
181
+ if (/*#__PURE__*/React.isValidElement(child)) {
182
182
  return child.props.value;
183
183
  }
184
184
  return null;
@@ -61,7 +61,7 @@ describe('<SimpleSelect />', () => {
61
61
 
62
62
  it('should have role combobox in different browsers than Safari', async () => {
63
63
  mockUtils.isSafari = _vitest.vi.fn(() => false);
64
- const _render = (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.default, {
64
+ const _render = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
65
65
  renderLabel: "Choose an option"
66
66
  }, getOptions())),
67
67
  container = _render.container;
@@ -77,7 +77,7 @@ describe('<SimpleSelect />', () => {
77
77
  value: opt
78
78
  }, opt));
79
79
  const renderSimpleSelect = options => {
80
- return (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.default, {
80
+ return (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
81
81
  renderLabel: "Choose an option"
82
82
  }, getOptions(options)));
83
83
  };
@@ -93,7 +93,7 @@ describe('<SimpleSelect />', () => {
93
93
  });
94
94
  _react2.fireEvent.click(fooOption);
95
95
  expect(input).toHaveValue('foo');
96
- rerender( /*#__PURE__*/_react.default.createElement(_index.default, {
96
+ rerender(/*#__PURE__*/_react.default.createElement(_index.default, {
97
97
  renderLabel: "Choose an option"
98
98
  }, getOptions(updatedOptions)));
99
99
  expect(input).toHaveValue('');
@@ -110,7 +110,7 @@ describe('<SimpleSelect />', () => {
110
110
  });
111
111
  _react2.fireEvent.click(barOption);
112
112
  expect(input).toHaveValue('bar');
113
- rerender( /*#__PURE__*/_react.default.createElement(_index.default, {
113
+ rerender(/*#__PURE__*/_react.default.createElement(_index.default, {
114
114
  renderLabel: "Choose an option"
115
115
  }, getOptions(updatedOptions)));
116
116
  expect(input).toHaveValue('bar');
@@ -189,7 +189,7 @@ let SimpleSelect = exports.SimpleSelect = (_dec = (0, _withDeterministicId.withD
189
189
  }
190
190
  hasOptionsChanged(prevChildren, currentChildren) {
191
191
  const getValues = children => _react.default.Children.map(children, child => {
192
- if ( /*#__PURE__*/_react.default.isValidElement(child)) {
192
+ if (/*#__PURE__*/_react.default.isValidElement(child)) {
193
193
  return child.props.value;
194
194
  }
195
195
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-simple-select",
3
- "version": "10.2.3-snapshot-14",
3
+ "version": "10.2.3-snapshot-16",
4
4
  "description": "A component for standard select element behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,27 +23,27 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.24.5",
27
- "@instructure/console": "10.2.3-snapshot-14",
28
- "@instructure/shared-types": "10.2.3-snapshot-14",
29
- "@instructure/ui-form-field": "10.2.3-snapshot-14",
30
- "@instructure/ui-position": "10.2.3-snapshot-14",
31
- "@instructure/ui-prop-types": "10.2.3-snapshot-14",
32
- "@instructure/ui-react-utils": "10.2.3-snapshot-14",
33
- "@instructure/ui-select": "10.2.3-snapshot-14",
34
- "@instructure/ui-testable": "10.2.3-snapshot-14",
26
+ "@babel/runtime": "^7.25.6",
27
+ "@instructure/console": "10.2.3-snapshot-16",
28
+ "@instructure/shared-types": "10.2.3-snapshot-16",
29
+ "@instructure/ui-form-field": "10.2.3-snapshot-16",
30
+ "@instructure/ui-position": "10.2.3-snapshot-16",
31
+ "@instructure/ui-prop-types": "10.2.3-snapshot-16",
32
+ "@instructure/ui-react-utils": "10.2.3-snapshot-16",
33
+ "@instructure/ui-select": "10.2.3-snapshot-16",
34
+ "@instructure/ui-testable": "10.2.3-snapshot-16",
35
35
  "prop-types": "^15.8.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@instructure/ui-babel-preset": "10.2.3-snapshot-14",
39
- "@instructure/ui-color-utils": "10.2.3-snapshot-14",
40
- "@instructure/ui-icons": "10.2.3-snapshot-14",
41
- "@instructure/ui-test-locator": "10.2.3-snapshot-14",
42
- "@instructure/ui-test-utils": "10.2.3-snapshot-14",
43
- "@instructure/ui-utils": "10.2.3-snapshot-14",
38
+ "@instructure/ui-babel-preset": "10.2.3-snapshot-16",
39
+ "@instructure/ui-color-utils": "10.2.3-snapshot-16",
40
+ "@instructure/ui-icons": "10.2.3-snapshot-16",
41
+ "@instructure/ui-test-locator": "10.2.3-snapshot-16",
42
+ "@instructure/ui-test-utils": "10.2.3-snapshot-16",
43
+ "@instructure/ui-utils": "10.2.3-snapshot-16",
44
44
  "@testing-library/jest-dom": "^6.4.6",
45
- "@testing-library/react": "^15.0.7",
46
- "vitest": "^2.0.2"
45
+ "@testing-library/react": "^16.0.1",
46
+ "vitest": "^2.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=16.8 <=18"