@instructure/ui-color-picker 9.8.1 → 9.9.0

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,17 @@
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
+ # [9.9.0](https://github.com/instructure/instructure-ui/compare/v9.8.1...v9.9.0) (2024-11-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **many:** backport new error messages from v10 ([9003d19](https://github.com/instructure/instructure-ui/commit/9003d19cc66022dfdeecc2e2c8c8d9d2a7300e3f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [9.8.1](https://github.com/instructure/instructure-ui/compare/v9.8.0...v9.8.1) (2024-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-color-picker
@@ -299,7 +299,7 @@ let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
299
299
  if (isRequired && showHelperErrorMessages && hexCode === '') {
300
300
  isRequiredMessages = typeof renderIsRequiredMessage === 'function' ? renderIsRequiredMessage() : [{
301
301
  type: 'error',
302
- text: '*'
302
+ text: ''
303
303
  }];
304
304
  }
305
305
  if (typeof renderMessages === 'function') {
@@ -382,7 +382,7 @@ let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
382
382
  label = _this$props9.label,
383
383
  tooltip = _this$props9.tooltip,
384
384
  styles = _this$props9.styles;
385
- return tooltip ? jsx("div", null, jsx("span", {
385
+ return tooltip ? jsx("span", null, jsx("span", {
386
386
  css: styles === null || styles === void 0 ? void 0 : styles.label
387
387
  }, label), jsx("span", null, jsx(Tooltip, {
388
388
  renderTip: tooltip
@@ -311,7 +311,7 @@ let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.
311
311
  if (isRequired && showHelperErrorMessages && hexCode === '') {
312
312
  isRequiredMessages = typeof renderIsRequiredMessage === 'function' ? renderIsRequiredMessage() : [{
313
313
  type: 'error',
314
- text: '*'
314
+ text: ''
315
315
  }];
316
316
  }
317
317
  if (typeof renderMessages === 'function') {
@@ -394,7 +394,7 @@ let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.
394
394
  label = _this$props9.label,
395
395
  tooltip = _this$props9.tooltip,
396
396
  styles = _this$props9.styles;
397
- return tooltip ? (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("span", {
397
+ return tooltip ? (0, _emotion.jsx)("span", null, (0, _emotion.jsx)("span", {
398
398
  css: styles === null || styles === void 0 ? void 0 : styles.label
399
399
  }, label), (0, _emotion.jsx)("span", null, (0, _emotion.jsx)(_Tooltip.Tooltip, {
400
400
  renderTip: tooltip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-color-picker",
3
- "version": "9.8.1",
3
+ "version": "9.9.0",
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",
@@ -24,33 +24,33 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.24.5",
27
- "@instructure/console": "9.8.1",
28
- "@instructure/emotion": "9.8.1",
29
- "@instructure/shared-types": "9.8.1",
30
- "@instructure/ui-a11y-content": "9.8.1",
31
- "@instructure/ui-buttons": "9.8.1",
32
- "@instructure/ui-color-utils": "9.8.1",
33
- "@instructure/ui-dom-utils": "9.8.1",
34
- "@instructure/ui-drilldown": "9.8.1",
35
- "@instructure/ui-form-field": "9.8.1",
36
- "@instructure/ui-icons": "9.8.1",
37
- "@instructure/ui-pill": "9.8.1",
38
- "@instructure/ui-popover": "9.8.1",
39
- "@instructure/ui-react-utils": "9.8.1",
40
- "@instructure/ui-testable": "9.8.1",
41
- "@instructure/ui-text": "9.8.1",
42
- "@instructure/ui-text-input": "9.8.1",
43
- "@instructure/ui-themes": "9.8.1",
44
- "@instructure/ui-tooltip": "9.8.1",
45
- "@instructure/ui-utils": "9.8.1",
46
- "@instructure/ui-view": "9.8.1",
27
+ "@instructure/console": "9.9.0",
28
+ "@instructure/emotion": "9.9.0",
29
+ "@instructure/shared-types": "9.9.0",
30
+ "@instructure/ui-a11y-content": "9.9.0",
31
+ "@instructure/ui-buttons": "9.9.0",
32
+ "@instructure/ui-color-utils": "9.9.0",
33
+ "@instructure/ui-dom-utils": "9.9.0",
34
+ "@instructure/ui-drilldown": "9.9.0",
35
+ "@instructure/ui-form-field": "9.9.0",
36
+ "@instructure/ui-icons": "9.9.0",
37
+ "@instructure/ui-pill": "9.9.0",
38
+ "@instructure/ui-popover": "9.9.0",
39
+ "@instructure/ui-react-utils": "9.9.0",
40
+ "@instructure/ui-testable": "9.9.0",
41
+ "@instructure/ui-text": "9.9.0",
42
+ "@instructure/ui-text-input": "9.9.0",
43
+ "@instructure/ui-themes": "9.9.0",
44
+ "@instructure/ui-tooltip": "9.9.0",
45
+ "@instructure/ui-utils": "9.9.0",
46
+ "@instructure/ui-view": "9.9.0",
47
47
  "prop-types": "^15.8.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@instructure/ui-axe-check": "9.8.1",
51
- "@instructure/ui-babel-preset": "9.8.1",
52
- "@instructure/ui-scripts": "9.8.1",
53
- "@instructure/ui-test-utils": "9.8.1",
50
+ "@instructure/ui-axe-check": "9.9.0",
51
+ "@instructure/ui-babel-preset": "9.9.0",
52
+ "@instructure/ui-scripts": "9.9.0",
53
+ "@instructure/ui-test-utils": "9.9.0",
54
54
  "@testing-library/jest-dom": "^6.4.5",
55
55
  "@testing-library/react": "^15.0.7",
56
56
  "@testing-library/user-event": "^14.5.2",
@@ -268,7 +268,7 @@ class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
268
268
  isRequiredMessages =
269
269
  typeof renderIsRequiredMessage === 'function'
270
270
  ? renderIsRequiredMessage()
271
- : [{ type: 'error', text: '*' }]
271
+ : [{ type: 'error', text: '' }]
272
272
  }
273
273
  if (typeof renderMessages === 'function') {
274
274
  generalMessages = renderMessages(
@@ -386,14 +386,14 @@ class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
386
386
  const { label, tooltip, styles } = this.props
387
387
 
388
388
  return tooltip ? (
389
- <div>
389
+ <span>
390
390
  <span css={styles?.label}>{label}</span>
391
391
  <span>
392
392
  <Tooltip renderTip={tooltip}>
393
393
  <IconInfoLine tabIndex={-1} />
394
394
  </Tooltip>
395
395
  </span>
396
- </div>
396
+ </span>
397
397
  ) : (
398
398
  label
399
399
  )