@instructure/ui-select 10.20.2-snapshot-10 → 10.20.2-snapshot-9

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.20.2-snapshot-10](https://github.com/instructure/instructure-ui/compare/v10.20.1...v10.20.2-snapshot-10) (2025-06-24)
6
+ ## [10.20.2-snapshot-9](https://github.com/instructure/instructure-ui/compare/v10.20.1...v10.20.2-snapshot-9) (2025-06-24)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -11,11 +11,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
  * **ui-select:** prevent scrolling when last item is hovered in Chrome ([51cd81a](https://github.com/instructure/instructure-ui/commit/51cd81a5360bbbc78d30e7e2489bb0c02b67a470))
12
12
 
13
13
 
14
- ### Features
15
-
16
- * **ui-simple-select,ui-select:** add layout prop to Select and SimpleSelect ([94f0a6f](https://github.com/instructure/instructure-ui/commit/94f0a6f99f9e813fe44e6c3111fdb4e5f3708b76))
17
-
18
-
19
14
 
20
15
 
21
16
 
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["id", "renderLabel", "children"],
3
- _excluded2 = ["renderLabel", "inputValue", "placeholder", "isRequired", "shouldNotWrap", "size", "isInline", "width", "htmlSize", "messages", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onInputChange", "onRequestHideOptions", "layout"],
3
+ _excluded2 = ["renderLabel", "inputValue", "placeholder", "isRequired", "shouldNotWrap", "size", "isInline", "width", "htmlSize", "messages", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onInputChange", "onRequestHideOptions"],
4
4
  _excluded3 = ["ref"];
5
5
  var _dec, _dec2, _dec3, _class, _Select, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
6
6
  /*
@@ -528,7 +528,6 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
528
528
  onBlur = _this$props0.onBlur,
529
529
  onInputChange = _this$props0.onInputChange,
530
530
  onRequestHideOptions = _this$props0.onRequestHideOptions,
531
- layout = _this$props0.layout,
532
531
  rest = _objectWithoutProperties(_this$props0, _excluded2);
533
532
  const interaction = this.interaction;
534
533
  const passthroughProps = omitProps(rest, Select.allowedProps);
@@ -576,7 +575,6 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, gen
576
575
  : interaction,
577
576
  isRequired,
578
577
  shouldNotWrap,
579
- layout,
580
578
  display: isInline ? 'inline-block' : 'block',
581
579
  renderBeforeInput: this.handleRenderBeforeInput(),
582
580
  // On iOS VoiceOver, if there is a custom element instead of the changing up and down arrow button
@@ -72,8 +72,7 @@ const propTypes = {
72
72
  renderAfterInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
73
73
  children: ChildrenPropTypes.oneOf([Group, Option]),
74
74
  shouldNotWrap: PropTypes.bool,
75
- scrollToHighlightedOption: PropTypes.bool,
76
- layout: PropTypes.oneOf(['stacked', 'inline'])
75
+ scrollToHighlightedOption: PropTypes.bool
77
76
  };
78
- const allowedProps = ['renderLabel', 'inputValue', 'isShowingOptions', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'htmlSize', 'visibleOptionsCount', 'isOptionContentAppliedToInput', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onFocus', 'onBlur', 'onInputChange', 'onRequestShowOptions', 'onRequestHideOptions', 'onRequestHighlightOption', 'onRequestSelectOption', 'inputRef', 'listRef', 'renderBeforeInput', 'renderAfterInput', 'children', 'shouldNotWrap', 'scrollToHighlightedOption', 'layout'];
77
+ const allowedProps = ['renderLabel', 'inputValue', 'isShowingOptions', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'htmlSize', 'visibleOptionsCount', 'isOptionContentAppliedToInput', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onFocus', 'onBlur', 'onInputChange', 'onRequestShowOptions', 'onRequestHideOptions', 'onRequestHighlightOption', 'onRequestSelectOption', 'inputRef', 'listRef', 'renderBeforeInput', 'renderAfterInput', 'children', 'shouldNotWrap', 'scrollToHighlightedOption'];
79
78
  export { propTypes, allowedProps };
@@ -31,7 +31,7 @@ var _Option = require("./Option");
31
31
  var _props = require("./props");
32
32
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
33
33
  const _excluded = ["id", "renderLabel", "children"],
34
- _excluded2 = ["renderLabel", "inputValue", "placeholder", "isRequired", "shouldNotWrap", "size", "isInline", "width", "htmlSize", "messages", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onInputChange", "onRequestHideOptions", "layout"],
34
+ _excluded2 = ["renderLabel", "inputValue", "placeholder", "isRequired", "shouldNotWrap", "size", "isInline", "width", "htmlSize", "messages", "renderBeforeInput", "renderAfterInput", "onFocus", "onBlur", "onInputChange", "onRequestHideOptions"],
35
35
  _excluded3 = ["ref"];
36
36
  var _dec, _dec2, _dec3, _class, _Select, _Options$Separator, _Options$Separator2, _IconArrowOpenUpLine, _IconArrowOpenDownLin;
37
37
  /*
@@ -540,7 +540,6 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
540
540
  onBlur = _this$props0.onBlur,
541
541
  onInputChange = _this$props0.onInputChange,
542
542
  onRequestHideOptions = _this$props0.onRequestHideOptions,
543
- layout = _this$props0.layout,
544
543
  rest = (0, _objectWithoutProperties2.default)(_this$props0, _excluded2);
545
544
  const interaction = this.interaction;
546
545
  const passthroughProps = (0, _omitProps.omitProps)(rest, Select.allowedProps);
@@ -588,7 +587,6 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
588
587
  : interaction,
589
588
  isRequired,
590
589
  shouldNotWrap,
591
- layout,
592
590
  display: isInline ? 'inline-block' : 'block',
593
591
  renderBeforeInput: this.handleRenderBeforeInput(),
594
592
  // On iOS VoiceOver, if there is a custom element instead of the changing up and down arrow button
@@ -78,7 +78,6 @@ const propTypes = exports.propTypes = {
78
78
  renderAfterInput: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
79
79
  children: _Children.Children.oneOf([_Group.Group, _Option.Option]),
80
80
  shouldNotWrap: _propTypes.default.bool,
81
- scrollToHighlightedOption: _propTypes.default.bool,
82
- layout: _propTypes.default.oneOf(['stacked', 'inline'])
81
+ scrollToHighlightedOption: _propTypes.default.bool
83
82
  };
84
- const allowedProps = exports.allowedProps = ['renderLabel', 'inputValue', 'isShowingOptions', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'htmlSize', 'visibleOptionsCount', 'isOptionContentAppliedToInput', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onFocus', 'onBlur', 'onInputChange', 'onRequestShowOptions', 'onRequestHideOptions', 'onRequestHighlightOption', 'onRequestSelectOption', 'inputRef', 'listRef', 'renderBeforeInput', 'renderAfterInput', 'children', 'shouldNotWrap', 'scrollToHighlightedOption', 'layout'];
83
+ const allowedProps = exports.allowedProps = ['renderLabel', 'inputValue', 'isShowingOptions', 'id', 'size', 'assistiveText', 'placeholder', 'interaction', 'isRequired', 'isInline', 'width', 'htmlSize', 'visibleOptionsCount', 'isOptionContentAppliedToInput', 'optionsMaxHeight', 'optionsMaxWidth', 'messages', 'placement', 'constrain', 'mountNode', 'onFocus', 'onBlur', 'onInputChange', 'onRequestShowOptions', 'onRequestHideOptions', 'onRequestHighlightOption', 'onRequestSelectOption', 'inputRef', 'listRef', 'renderBeforeInput', 'renderAfterInput', 'children', 'shouldNotWrap', 'scrollToHighlightedOption'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "10.20.2-snapshot-10",
3
+ "version": "10.20.2-snapshot-9",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "10.20.2-snapshot-10",
27
- "@instructure/ui-color-utils": "10.20.2-snapshot-10",
28
- "@instructure/ui-scripts": "10.20.2-snapshot-10",
29
- "@instructure/ui-test-utils": "10.20.2-snapshot-10",
30
- "@instructure/ui-themes": "10.20.2-snapshot-10",
26
+ "@instructure/ui-babel-preset": "10.20.2-snapshot-9",
27
+ "@instructure/ui-color-utils": "10.20.2-snapshot-9",
28
+ "@instructure/ui-scripts": "10.20.2-snapshot-9",
29
+ "@instructure/ui-test-utils": "10.20.2-snapshot-9",
30
+ "@instructure/ui-themes": "10.20.2-snapshot-9",
31
31
  "@testing-library/jest-dom": "^6.6.3",
32
32
  "@testing-library/react": "^16.0.1",
33
33
  "@testing-library/user-event": "^14.6.1",
@@ -35,22 +35,22 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.27.6",
38
- "@instructure/emotion": "10.20.2-snapshot-10",
39
- "@instructure/shared-types": "10.20.2-snapshot-10",
40
- "@instructure/ui-dom-utils": "10.20.2-snapshot-10",
41
- "@instructure/ui-form-field": "10.20.2-snapshot-10",
42
- "@instructure/ui-icons": "10.20.2-snapshot-10",
43
- "@instructure/ui-options": "10.20.2-snapshot-10",
44
- "@instructure/ui-popover": "10.20.2-snapshot-10",
45
- "@instructure/ui-position": "10.20.2-snapshot-10",
46
- "@instructure/ui-prop-types": "10.20.2-snapshot-10",
47
- "@instructure/ui-react-utils": "10.20.2-snapshot-10",
48
- "@instructure/ui-selectable": "10.20.2-snapshot-10",
49
- "@instructure/ui-testable": "10.20.2-snapshot-10",
50
- "@instructure/ui-text-input": "10.20.2-snapshot-10",
51
- "@instructure/ui-utils": "10.20.2-snapshot-10",
52
- "@instructure/ui-view": "10.20.2-snapshot-10",
53
- "@instructure/uid": "10.20.2-snapshot-10",
38
+ "@instructure/emotion": "10.20.2-snapshot-9",
39
+ "@instructure/shared-types": "10.20.2-snapshot-9",
40
+ "@instructure/ui-dom-utils": "10.20.2-snapshot-9",
41
+ "@instructure/ui-form-field": "10.20.2-snapshot-9",
42
+ "@instructure/ui-icons": "10.20.2-snapshot-9",
43
+ "@instructure/ui-options": "10.20.2-snapshot-9",
44
+ "@instructure/ui-popover": "10.20.2-snapshot-9",
45
+ "@instructure/ui-position": "10.20.2-snapshot-9",
46
+ "@instructure/ui-prop-types": "10.20.2-snapshot-9",
47
+ "@instructure/ui-react-utils": "10.20.2-snapshot-9",
48
+ "@instructure/ui-selectable": "10.20.2-snapshot-9",
49
+ "@instructure/ui-testable": "10.20.2-snapshot-9",
50
+ "@instructure/ui-text-input": "10.20.2-snapshot-9",
51
+ "@instructure/ui-utils": "10.20.2-snapshot-9",
52
+ "@instructure/ui-view": "10.20.2-snapshot-9",
53
+ "@instructure/uid": "10.20.2-snapshot-9",
54
54
  "prop-types": "^15.8.1"
55
55
  },
56
56
  "peerDependencies": {
@@ -694,7 +694,6 @@ class Select extends Component<SelectProps> {
694
694
  onBlur,
695
695
  onInputChange,
696
696
  onRequestHideOptions,
697
- layout,
698
697
  ...rest
699
698
  } = this.props
700
699
 
@@ -750,7 +749,6 @@ class Select extends Component<SelectProps> {
750
749
  : interaction,
751
750
  isRequired,
752
751
  shouldNotWrap,
753
- layout,
754
752
  display: isInline ? 'inline-block' : 'block',
755
753
  renderBeforeInput: this.handleRenderBeforeInput(),
756
754
  // On iOS VoiceOver, if there is a custom element instead of the changing up and down arrow button
@@ -256,14 +256,6 @@ type PropsFromTextInput = {
256
256
  * when available space is exceeded.
257
257
  */
258
258
  shouldNotWrap?: boolean
259
-
260
- /**
261
- * In `stacked` mode the input is below the label.
262
- *
263
- * In `inline` mode the input is to the right/left (depending on text direction) of the label,
264
- * and the layout will look like `stacked` for small screens.
265
- */
266
- layout?: 'stacked' | 'inline'
267
259
  }
268
260
 
269
261
  // These props are directly passed to Popover
@@ -336,8 +328,7 @@ const propTypes: PropValidators<PropKeys> = {
336
328
  renderAfterInput: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
337
329
  children: ChildrenPropTypes.oneOf([Group, Option]),
338
330
  shouldNotWrap: PropTypes.bool,
339
- scrollToHighlightedOption: PropTypes.bool,
340
- layout: PropTypes.oneOf(['stacked', 'inline'])
331
+ scrollToHighlightedOption: PropTypes.bool
341
332
  }
342
333
 
343
334
  const allowedProps: AllowedPropKeys = [
@@ -374,8 +365,7 @@ const allowedProps: AllowedPropKeys = [
374
365
  'renderAfterInput',
375
366
  'children',
376
367
  'shouldNotWrap',
377
- 'scrollToHighlightedOption',
378
- 'layout'
368
+ 'scrollToHighlightedOption'
379
369
  ]
380
370
 
381
371
  export type { SelectProps, SelectOwnProps, SelectStyle }