@instructure/ui-color-picker 11.7.2-snapshot-17 → 11.7.2-snapshot-18

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,9 +3,12 @@
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.2-snapshot-17](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-17) (2026-04-01)
6
+ ## [11.7.2-snapshot-18](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-18) (2026-04-01)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-color-picker
8
+
9
+ ### Bug Fixes
10
+
11
+ * **many:** small fixes for doc and fix component directory mapping in "dev" script ([39f0c99](https://github.com/instructure/instructure-ui/commit/39f0c991315e39d30e1f24b3142b986d5b9041ee))
9
12
 
10
13
 
11
14
 
@@ -153,7 +153,7 @@ let ColorPicker = (_dec = withStyle(generateStyle), _dec(_class = (_ColorPicker
153
153
  onShowContent: () => {
154
154
  this.setState({
155
155
  openColorPicker: true,
156
- mixedColor: this.state.hexCode,
156
+ mixedColor: this.state.hexCode || '000000',
157
157
  calculatedPopoverMaxHeight: void 0,
158
158
  isHeightCalculated: false
159
159
  });
@@ -160,7 +160,7 @@ let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.
160
160
  onShowContent: () => {
161
161
  this.setState({
162
162
  openColorPicker: true,
163
- mixedColor: this.state.hexCode,
163
+ mixedColor: this.state.hexCode || '000000',
164
164
  calculatedPopoverMaxHeight: void 0,
165
165
  isHeightCalculated: false
166
166
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-color-picker",
3
- "version": "11.7.2-snapshot-17",
3
+ "version": "11.7.2-snapshot-18",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,35 +15,35 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
- "@instructure/console": "11.7.2-snapshot-17",
19
- "@instructure/shared-types": "11.7.2-snapshot-17",
20
- "@instructure/emotion": "11.7.2-snapshot-17",
21
- "@instructure/ui-buttons": "11.7.2-snapshot-17",
22
- "@instructure/ui-a11y-content": "11.7.2-snapshot-17",
23
- "@instructure/ui-color-utils": "11.7.2-snapshot-17",
24
- "@instructure/ui-drilldown": "11.7.2-snapshot-17",
25
- "@instructure/ui-form-field": "11.7.2-snapshot-17",
26
- "@instructure/ui-heading": "11.7.2-snapshot-17",
27
- "@instructure/ui-dom-utils": "11.7.2-snapshot-17",
28
- "@instructure/ui-icons": "11.7.2-snapshot-17",
29
- "@instructure/ui-pill": "11.7.2-snapshot-17",
30
- "@instructure/ui-react-utils": "11.7.2-snapshot-17",
31
- "@instructure/ui-text": "11.7.2-snapshot-17",
32
- "@instructure/ui-popover": "11.7.2-snapshot-17",
33
- "@instructure/ui-themes": "11.7.2-snapshot-17",
34
- "@instructure/ui-text-input": "11.7.2-snapshot-17",
35
- "@instructure/ui-tooltip": "11.7.2-snapshot-17",
36
- "@instructure/ui-utils": "11.7.2-snapshot-17",
37
- "@instructure/ui-view": "11.7.2-snapshot-17"
18
+ "@instructure/console": "11.7.2-snapshot-18",
19
+ "@instructure/emotion": "11.7.2-snapshot-18",
20
+ "@instructure/shared-types": "11.7.2-snapshot-18",
21
+ "@instructure/ui-a11y-content": "11.7.2-snapshot-18",
22
+ "@instructure/ui-buttons": "11.7.2-snapshot-18",
23
+ "@instructure/ui-color-utils": "11.7.2-snapshot-18",
24
+ "@instructure/ui-dom-utils": "11.7.2-snapshot-18",
25
+ "@instructure/ui-drilldown": "11.7.2-snapshot-18",
26
+ "@instructure/ui-heading": "11.7.2-snapshot-18",
27
+ "@instructure/ui-pill": "11.7.2-snapshot-18",
28
+ "@instructure/ui-icons": "11.7.2-snapshot-18",
29
+ "@instructure/ui-form-field": "11.7.2-snapshot-18",
30
+ "@instructure/ui-popover": "11.7.2-snapshot-18",
31
+ "@instructure/ui-react-utils": "11.7.2-snapshot-18",
32
+ "@instructure/ui-text": "11.7.2-snapshot-18",
33
+ "@instructure/ui-text-input": "11.7.2-snapshot-18",
34
+ "@instructure/ui-tooltip": "11.7.2-snapshot-18",
35
+ "@instructure/ui-themes": "11.7.2-snapshot-18",
36
+ "@instructure/ui-view": "11.7.2-snapshot-18",
37
+ "@instructure/ui-utils": "11.7.2-snapshot-18"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@testing-library/jest-dom": "^6.6.3",
41
41
  "@testing-library/react": "15.0.7",
42
42
  "@testing-library/user-event": "^14.6.1",
43
43
  "vitest": "^3.2.2",
44
- "@instructure/ui-babel-preset": "11.7.2-snapshot-17",
45
- "@instructure/ui-axe-check": "11.7.2-snapshot-17",
46
- "@instructure/ui-scripts": "11.7.2-snapshot-17"
44
+ "@instructure/ui-axe-check": "11.7.2-snapshot-18",
45
+ "@instructure/ui-babel-preset": "11.7.2-snapshot-18",
46
+ "@instructure/ui-scripts": "11.7.2-snapshot-18"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=18 <=19"
@@ -24,10 +24,7 @@
24
24
 
25
25
  import { Component } from 'react'
26
26
 
27
- import {
28
- withStyle,
29
- InstUISettingsProvider
30
- } from '@instructure/emotion'
27
+ import { withStyle, InstUISettingsProvider } from '@instructure/emotion'
31
28
  import { warn, error } from '@instructure/console'
32
29
  import { omitProps } from '@instructure/ui-react-utils'
33
30
  import { isValid, contrast as getContrast } from '@instructure/ui-color-utils'
@@ -381,7 +378,11 @@ class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
381
378
  if (minContrast >= contrast) {
382
379
  return (
383
380
  <div css={styles?.errorIcons}>
384
- {checkContrast.isStrict ? <CircleXInstUIIcon color="errorColor" /> : <AlertCircleInstUIIcon color="warningColor" />}
381
+ {checkContrast.isStrict ? (
382
+ <CircleXInstUIIcon color="errorColor" />
383
+ ) : (
384
+ <AlertCircleInstUIIcon color="warningColor" />
385
+ )}
385
386
  </div>
386
387
  )
387
388
  }
@@ -473,7 +474,7 @@ class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
473
474
  size="small"
474
475
  shape="circle"
475
476
  width="auto"
476
- renderIcon={<InfoInstUIIcon size="sm"/>}
477
+ renderIcon={<InfoInstUIIcon size="sm" />}
477
478
  />
478
479
  </Tooltip>
479
480
  </InstUISettingsProvider>
@@ -498,7 +499,7 @@ class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
498
499
  onShowContent={() => {
499
500
  this.setState({
500
501
  openColorPicker: true,
501
- mixedColor: this.state.hexCode,
502
+ mixedColor: this.state.hexCode || '000000',
502
503
  calculatedPopoverMaxHeight: undefined,
503
504
  isHeightCalculated: false
504
505
  })