@instructure/ui-select 11.7.3-snapshot-29 → 11.7.3-snapshot-30

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
- ## [11.7.3-snapshot-29](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-29) (2026-05-06)
6
+ ## [11.7.3-snapshot-30](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-30) (2026-05-07)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -11,6 +11,32 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
  * **many:** update dependencies, remove lots of Babel plugins, remove Webpack 4 support ([f916fca](https://github.com/instructure/instructure-ui/commit/f916fcafdddcb2d7de401f93e8ff92cfdfa47bba))
12
12
 
13
13
 
14
+ ### Features
15
+
16
+ * **ui-select,ui-date-time-input:** rework DateTimeInput and replace DateInput v1 with DateInput v2 in DateTimeInput ([5a9405c](https://github.com/instructure/instructure-ui/commit/5a9405c0a19ea9fc6a34b2f34c60c582f96ec2af))
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * **ui-select,ui-date-time-input:** prevMonthLabel prop removed (use screenReaderLabels.prevMonthButton instead)
22
+
23
+ nextMonthLabel prop removed (use screenReaderLabels.nextMonthButton instead)
24
+
25
+ renderWeekdayLabels prop removed
26
+
27
+ dateFormat type changed: string → string
28
+
29
+ { parser: (input: string) => Date
30
+
31
+ null, formatter: (date: Date) => string }
32
+
33
+ screenReaderLabels is a new required prop
34
+
35
+ dateFormat default changed: Moment's 'LL' (long month name) → locale's default date format
36
+
37
+ INSTUI-4791
38
+
39
+
14
40
 
15
41
 
16
42
 
@@ -33,7 +33,7 @@ import { Selectable } from '@instructure/ui-selectable';
33
33
  import { Popover } from '@instructure/ui-popover/latest';
34
34
  import { TextInput } from '@instructure/ui-text-input/latest';
35
35
  import { Options } from '@instructure/ui-options/latest';
36
- import { ChevronDownInstUIIcon, ChevronUpInstUIIcon, CheckInstUIIcon } from '@instructure/ui-icons';
36
+ import { ChevronDownInstUIIcon, ChevronUpInstUIIcon } from '@instructure/ui-icons';
37
37
  import { withStyle } from '@instructure/emotion';
38
38
  import generateStyle from "./styles.js";
39
39
  import { Group } from "./Group/index.js";
@@ -323,16 +323,6 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle), _d
323
323
  children
324
324
  }) : renderOptionLabel;
325
325
  };
326
- const {
327
- isOptionContentAppliedToInput,
328
- size = 'medium'
329
- } = this.props;
330
- const iconSize = selectSizeToIconSize[size];
331
- const checkIcon = isSelected && !isOptionContentAppliedToInput ? _jsx(CheckInstUIIcon, {
332
- inline: false,
333
- size: iconSize,
334
- color: "inverseColor"
335
- }) : null;
336
326
  let optionProps = {
337
327
  // passthrough props
338
328
  ...omitProps(option.props, [...Option.allowedProps, ...Options.Item.allowedProps]),
@@ -342,7 +332,7 @@ let Select = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle), _d
342
332
  }),
343
333
  // Options.Item props
344
334
  renderBeforeLabel: getRenderOptionLabel(renderBeforeLabel),
345
- renderAfterLabel: checkIcon ?? getRenderOptionLabel(renderAfterLabel)
335
+ renderAfterLabel: getRenderOptionLabel(renderAfterLabel)
346
336
  };
347
337
  // should option be treated as highlighted or selected
348
338
  if (isSelected && isHighlighted) {
@@ -334,16 +334,6 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
334
334
  children
335
335
  }) : renderOptionLabel;
336
336
  };
337
- const {
338
- isOptionContentAppliedToInput,
339
- size = 'medium'
340
- } = this.props;
341
- const iconSize = selectSizeToIconSize[size];
342
- const checkIcon = isSelected && !isOptionContentAppliedToInput ? (0, _jsxRuntime.jsx)(_uiIcons.CheckInstUIIcon, {
343
- inline: false,
344
- size: iconSize,
345
- color: "inverseColor"
346
- }) : null;
347
337
  let optionProps = {
348
338
  // passthrough props
349
339
  ...(0, _omitProps.omitProps)(option.props, [..._Option.Option.allowedProps, ..._latest4.Options.Item.allowedProps]),
@@ -353,7 +343,7 @@ let Select = exports.Select = (_dec = (0, _withDeterministicId.withDeterministic
353
343
  }),
354
344
  // Options.Item props
355
345
  renderBeforeLabel: getRenderOptionLabel(renderBeforeLabel),
356
- renderAfterLabel: checkIcon ?? getRenderOptionLabel(renderAfterLabel)
346
+ renderAfterLabel: getRenderOptionLabel(renderAfterLabel)
357
347
  };
358
348
  // should option be treated as highlighted or selected
359
349
  if (isSelected && isHighlighted) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "11.7.3-snapshot-29",
3
+ "version": "11.7.3-snapshot-30",
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",
@@ -15,30 +15,30 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.3-snapshot-29",
19
- "@instructure/ui-dom-utils": "11.7.3-snapshot-29",
20
- "@instructure/shared-types": "11.7.3-snapshot-29",
21
- "@instructure/ui-icons": "11.7.3-snapshot-29",
22
- "@instructure/ui-form-field": "11.7.3-snapshot-29",
23
- "@instructure/ui-options": "11.7.3-snapshot-29",
24
- "@instructure/ui-popover": "11.7.3-snapshot-29",
25
- "@instructure/ui-react-utils": "11.7.3-snapshot-29",
26
- "@instructure/ui-selectable": "11.7.3-snapshot-29",
27
- "@instructure/ui-themes": "11.7.3-snapshot-29",
28
- "@instructure/ui-position": "11.7.3-snapshot-29",
29
- "@instructure/ui-utils": "11.7.3-snapshot-29",
30
- "@instructure/ui-view": "11.7.3-snapshot-29",
31
- "@instructure/ui-text-input": "11.7.3-snapshot-29",
32
- "@instructure/uid": "11.7.3-snapshot-29"
18
+ "@instructure/emotion": "11.7.3-snapshot-30",
19
+ "@instructure/ui-form-field": "11.7.3-snapshot-30",
20
+ "@instructure/ui-dom-utils": "11.7.3-snapshot-30",
21
+ "@instructure/shared-types": "11.7.3-snapshot-30",
22
+ "@instructure/ui-icons": "11.7.3-snapshot-30",
23
+ "@instructure/ui-options": "11.7.3-snapshot-30",
24
+ "@instructure/ui-position": "11.7.3-snapshot-30",
25
+ "@instructure/ui-text-input": "11.7.3-snapshot-30",
26
+ "@instructure/ui-themes": "11.7.3-snapshot-30",
27
+ "@instructure/ui-selectable": "11.7.3-snapshot-30",
28
+ "@instructure/ui-popover": "11.7.3-snapshot-30",
29
+ "@instructure/ui-view": "11.7.3-snapshot-30",
30
+ "@instructure/uid": "11.7.3-snapshot-30",
31
+ "@instructure/ui-utils": "11.7.3-snapshot-30",
32
+ "@instructure/ui-react-utils": "11.7.3-snapshot-30"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@testing-library/jest-dom": "^6.6.3",
36
36
  "@testing-library/react": "15.0.7",
37
37
  "@testing-library/user-event": "^14.6.1",
38
38
  "vitest": "^3.2.2",
39
- "@instructure/ui-babel-preset": "11.7.3-snapshot-29",
40
- "@instructure/ui-scripts": "11.7.3-snapshot-29",
41
- "@instructure/ui-color-utils": "11.7.3-snapshot-29"
39
+ "@instructure/ui-babel-preset": "11.7.3-snapshot-30",
40
+ "@instructure/ui-color-utils": "11.7.3-snapshot-30",
41
+ "@instructure/ui-scripts": "11.7.3-snapshot-30"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=18 <=19"
@@ -44,8 +44,7 @@ import { TextInput } from '@instructure/ui-text-input/latest'
44
44
  import { Options } from '@instructure/ui-options/latest'
45
45
  import {
46
46
  ChevronDownInstUIIcon,
47
- ChevronUpInstUIIcon,
48
- CheckInstUIIcon
47
+ ChevronUpInstUIIcon
49
48
  } from '@instructure/ui-icons'
50
49
 
51
50
  import type { ViewProps } from '@instructure/ui-view/latest'
@@ -422,13 +421,6 @@ class Select extends Component<SelectProps> {
422
421
  : (renderOptionLabel as React.ReactNode)
423
422
  }
424
423
 
425
- const { isOptionContentAppliedToInput, size = 'medium' } = this.props
426
- const iconSize = selectSizeToIconSize[size]
427
- const checkIcon =
428
- isSelected && !isOptionContentAppliedToInput ? (
429
- <CheckInstUIIcon inline={false} size={iconSize} color="inverseColor" />
430
- ) : null
431
-
432
424
  let optionProps: Partial<OptionsItemProps> = {
433
425
  // passthrough props
434
426
  ...omitProps(option.props, [
@@ -439,7 +431,7 @@ class Select extends Component<SelectProps> {
439
431
  ...getOptionProps({ id }),
440
432
  // Options.Item props
441
433
  renderBeforeLabel: getRenderOptionLabel(renderBeforeLabel),
442
- renderAfterLabel: checkIcon ?? getRenderOptionLabel(renderAfterLabel)
434
+ renderAfterLabel: getRenderOptionLabel(renderAfterLabel)
443
435
  }
444
436
  // should option be treated as highlighted or selected
445
437
  if (isSelected && isHighlighted) {