@instructure/ui-color-picker 8.46.2-snapshot-4 → 8.46.2-snapshot-6

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/lib/ColorContrast/ColorContrastLocator.js +2 -3
  3. package/lib/ColorContrast/index.js +2 -4
  4. package/lib/ColorContrast/props.js +2 -4
  5. package/lib/ColorContrast/styles.js +1 -2
  6. package/lib/ColorContrast/theme.js +1 -2
  7. package/lib/ColorIndicator/ColorIndicatorLocator.js +2 -3
  8. package/lib/ColorIndicator/index.js +2 -4
  9. package/lib/ColorIndicator/props.js +2 -4
  10. package/lib/ColorIndicator/styles.js +1 -2
  11. package/lib/ColorIndicator/theme.js +2 -4
  12. package/lib/ColorMixer/ColorMixerLocator.js +1 -2
  13. package/lib/ColorMixer/ColorPalette/index.js +1 -2
  14. package/lib/ColorMixer/ColorPalette/props.js +2 -4
  15. package/lib/ColorMixer/ColorPalette/styles.js +1 -2
  16. package/lib/ColorMixer/ColorPalette/theme.js +1 -2
  17. package/lib/ColorMixer/RGBAInput/index.js +1 -2
  18. package/lib/ColorMixer/RGBAInput/props.js +2 -4
  19. package/lib/ColorMixer/RGBAInput/styles.js +1 -2
  20. package/lib/ColorMixer/RGBAInput/theme.js +1 -2
  21. package/lib/ColorMixer/Slider/index.js +1 -2
  22. package/lib/ColorMixer/Slider/props.js +2 -4
  23. package/lib/ColorMixer/Slider/styles.js +1 -2
  24. package/lib/ColorMixer/Slider/theme.js +1 -2
  25. package/lib/ColorMixer/index.js +2 -4
  26. package/lib/ColorMixer/props.js +2 -4
  27. package/lib/ColorMixer/styles.js +1 -2
  28. package/lib/ColorMixer/utils/shallowCompare.js +1 -2
  29. package/lib/ColorPicker/ColorPickerLocator.js +1 -2
  30. package/lib/ColorPicker/index.js +2 -4
  31. package/lib/ColorPicker/props.js +2 -4
  32. package/lib/ColorPicker/styles.js +1 -2
  33. package/lib/ColorPicker/theme.js +1 -2
  34. package/lib/ColorPreset/ColorPresetLocator.js +2 -3
  35. package/lib/ColorPreset/index.js +2 -4
  36. package/lib/ColorPreset/props.js +2 -4
  37. package/lib/ColorPreset/styles.js +1 -2
  38. package/lib/ColorPreset/theme.js +1 -2
  39. package/package.json +26 -26
  40. package/tsconfig.build.tsbuildinfo +1 -1
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
- ## [8.46.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-4) (2023-10-18)
6
+ ## [8.46.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-6) (2023-10-19)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-color-picker
9
9
 
@@ -38,7 +38,7 @@ var _index = require("./index");
38
38
  /* eslint-enable no-restricted-imports */
39
39
 
40
40
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
41
- const ColorContrastLocator = (0, _locator.locator)(_index.ColorContrast.selector, {
41
+ const ColorContrastLocator = exports.ColorContrastLocator = (0, _locator.locator)(_index.ColorContrast.selector, {
42
42
  findPreview: (...args) => {
43
43
  return (0, _uiTestQueries.find)('[class$=-colorContrast__colorPreview]', ...args);
44
44
  },
@@ -54,5 +54,4 @@ const ColorContrastLocator = (0, _locator.locator)(_index.ColorContrast.selector
54
54
  const pills = await _PillLocator.PillLocator.findAll();
55
55
  return pills[2];
56
56
  }
57
- });
58
- exports.ColorContrastLocator = ColorContrastLocator;
57
+ });
@@ -50,7 +50,7 @@ category: components
50
50
  ---
51
51
  @tsProps
52
52
  **/
53
- let ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorContrast extends _react.Component {
53
+ let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorContrast extends _react.Component {
54
54
  constructor(props) {
55
55
  super(props);
56
56
  this.ref = null;
@@ -165,6 +165,4 @@ let ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defa
165
165
  }, _class2.displayName = "ColorContrast", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorContrast', _class2.defaultProps = {
166
166
  withoutColorPreview: false
167
167
  }, _class2)) || _class) || _class);
168
- exports.ColorContrast = ColorContrast;
169
- var _default = ColorContrast;
170
- exports.default = _default;
168
+ var _default = exports.default = ColorContrast;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  elementRef: _propTypes.default.func,
35
35
  failureLabel: _propTypes.default.string.isRequired,
36
36
  firstColor: _propTypes.default.string.isRequired,
@@ -44,6 +44,4 @@ const propTypes = {
44
44
  secondColorLabel: _propTypes.default.string,
45
45
  successLabel: _propTypes.default.string.isRequired
46
46
  };
47
- exports.propTypes = propTypes;
48
- const allowedProps = ['elementRef', 'failureLabel', 'firstColor', 'firstColorLabel', 'graphicsTextLabel', 'withoutColorPreview', 'label', 'largeTextLabel', 'normalTextLabel', 'secondColor', 'secondColorLabel', 'successLabel'];
49
- exports.allowedProps = allowedProps;
47
+ const allowedProps = exports.allowedProps = ['elementRef', 'failureLabel', 'firstColor', 'firstColorLabel', 'graphicsTextLabel', 'withoutColorPreview', 'label', 'largeTextLabel', 'normalTextLabel', 'secondColor', 'secondColorLabel', 'successLabel'];
@@ -100,5 +100,4 @@ const generateStyle = componentTheme => {
100
100
  }
101
101
  };
102
102
  };
103
- var _default = generateStyle;
104
- exports.default = _default;
103
+ var _default = exports.default = generateStyle;
@@ -58,5 +58,4 @@ const generateComponentTheme = theme => {
58
58
  ...componentVariables
59
59
  };
60
60
  };
61
- var _default = generateComponentTheme;
62
- exports.default = _default;
61
+ var _default = exports.default = generateComponentTheme;
@@ -32,7 +32,7 @@ var _uiColorUtils = require("@instructure/ui-color-utils");
32
32
  */
33
33
 
34
34
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
35
- const ColorIndicatorLocator = (0, _locator.locator)(_index.ColorIndicator.selector, {
35
+ const ColorIndicatorLocator = exports.ColorIndicatorLocator = (0, _locator.locator)(_index.ColorIndicator.selector, {
36
36
  getColorRGBA: element => {
37
37
  const _getComputedStyle = getComputedStyle(element),
38
38
  boxShadow = _getComputedStyle.boxShadow;
@@ -42,5 +42,4 @@ const ColorIndicatorLocator = (0, _locator.locator)(_index.ColorIndicator.select
42
42
  const shadowColor = /rgba?\(\d+,\s\d+,\s\d+(,\s.+)?\)/.exec(boxShadow)[0];
43
43
  return (0, _uiColorUtils.colorToRGB)(shadowColor);
44
44
  }
45
- });
46
- exports.ColorIndicatorLocator = ColorIndicatorLocator;
45
+ });
@@ -43,7 +43,7 @@ category: components
43
43
  ---
44
44
  @tsProps
45
45
  **/
46
- let ColorIndicator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorIndicator extends _react.Component {
46
+ let ColorIndicator = exports.ColorIndicator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorIndicator extends _react.Component {
47
47
  constructor(...args) {
48
48
  super(...args);
49
49
  this.ref = null;
@@ -73,6 +73,4 @@ let ColorIndicator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
73
73
  }, _class2.displayName = "ColorIndicator", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorIndicator', _class2.defaultProps = {
74
74
  shape: 'circle'
75
75
  }, _class2)) || _class) || _class);
76
- exports.ColorIndicator = ColorIndicator;
77
- var _default = ColorIndicator;
78
- exports.default = _default;
76
+ var _default = exports.default = ColorIndicator;
@@ -30,11 +30,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  color: _propTypes.default.string,
35
35
  elementRef: _propTypes.default.func,
36
36
  shape: _propTypes.default.oneOf(['circle', 'rectangle'])
37
37
  };
38
- exports.propTypes = propTypes;
39
- const allowedProps = ['color', 'elementRef', 'shape'];
40
- exports.allowedProps = allowedProps;
38
+ const allowedProps = exports.allowedProps = ['color', 'elementRef', 'shape'];
@@ -71,5 +71,4 @@ const generateStyle = (componentTheme, props) => {
71
71
  }
72
72
  };
73
73
  };
74
- var _default = generateStyle;
75
- exports.default = _default;
74
+ var _default = exports.default = generateStyle;
@@ -28,14 +28,13 @@ exports.default = exports.colorIndicatorBorderColor = void 0;
28
28
  * SOFTWARE.
29
29
  */
30
30
 
31
- const colorIndicatorBorderColor = '#384A5899';
31
+ const colorIndicatorBorderColor = exports.colorIndicatorBorderColor = '#384A5899';
32
32
 
33
33
  /**
34
34
  * Generates the theme object for the component from the theme and provided additional information
35
35
  * @param {Object} theme The actual theme object.
36
36
  * @return {Object} The final theme object with the overrides and component variables
37
37
  */
38
- exports.colorIndicatorBorderColor = colorIndicatorBorderColor;
39
38
  const generateComponentTheme = theme => {
40
39
  const colors = theme.colors,
41
40
  borders = theme.borders,
@@ -58,5 +57,4 @@ const generateComponentTheme = theme => {
58
57
  ...componentVariables
59
58
  };
60
59
  };
61
- var _default = generateComponentTheme;
62
- exports.default = _default;
60
+ var _default = exports.default = generateComponentTheme;
@@ -49,5 +49,4 @@ const customMethos = {
49
49
  }
50
50
  };
51
51
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
52
- const ColorMixerLocator = (0, _locator.locator)(_index.ColorMixer.selector, customMethos);
53
- exports.ColorMixerLocator = ColorMixerLocator;
52
+ const ColorMixerLocator = exports.ColorMixerLocator = (0, _locator.locator)(_index.ColorMixer.selector, customMethos);
@@ -231,5 +231,4 @@ let ColorPalette = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec
231
231
  }));
232
232
  }
233
233
  }, _class2.displayName = "ColorPalette", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorMixer.Palette', _class2)) || _class) || _class);
234
- var _default = ColorPalette;
235
- exports.default = _default;
234
+ var _default = exports.default = ColorPalette;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  disabled: _propTypes.default.bool,
35
35
  hue: _propTypes.default.number.isRequired,
36
36
  color: _propTypes.default.object.isRequired,
@@ -41,6 +41,4 @@ const propTypes = {
41
41
  elementRef: _propTypes.default.func,
42
42
  navigationExplanationScreenReaderLabel: _propTypes.default.string.isRequired
43
43
  };
44
- exports.propTypes = propTypes;
45
- const allowedProps = ['disabled', 'hue', 'color', 'width', 'height', 'indicatorRadius', 'onChange', 'elementRef', 'navigationExplanationScreenReaderLabel'];
46
- exports.allowedProps = allowedProps;
44
+ const allowedProps = exports.allowedProps = ['disabled', 'hue', 'color', 'width', 'height', 'indicatorRadius', 'onChange', 'elementRef', 'navigationExplanationScreenReaderLabel'];
@@ -83,5 +83,4 @@ const generateStyle = (componentTheme, props, state) => {
83
83
  paletteOffset: componentTheme.paletteOffset
84
84
  };
85
85
  };
86
- var _default = generateStyle;
87
- exports.default = _default;
86
+ var _default = exports.default = generateStyle;
@@ -52,5 +52,4 @@ const generateComponentTheme = theme => {
52
52
  ...componentVariables
53
53
  };
54
54
  };
55
- var _default = generateComponentTheme;
56
- exports.default = _default;
55
+ var _default = exports.default = generateComponentTheme;
@@ -139,5 +139,4 @@ let RGBAInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
139
139
  }, _class2.displayName = "RGBAInput", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorMixer.RGBAInput', _class2.defaultProps = {
140
140
  withAlpha: false
141
141
  }, _class2)) || _class);
142
- var _default = RGBAInput;
143
- exports.default = _default;
142
+ var _default = exports.default = RGBAInput;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  disabled: _propTypes.default.bool,
35
35
  label: _propTypes.default.string,
36
36
  width: _propTypes.default.number.isRequired,
@@ -43,6 +43,4 @@ const propTypes = {
43
43
  rgbAlphaInputScreenReaderLabel: _propTypes.default.string.isRequired,
44
44
  elementRef: _propTypes.default.func
45
45
  };
46
- exports.propTypes = propTypes;
47
- const allowedProps = ['disabled', 'label', 'width', 'value', 'onChange', 'withAlpha', 'rgbRedInputScreenReaderLabel', 'rgbGreenInputScreenReaderLabel', 'rgbBlueInputScreenReaderLabel', 'rgbAlphaInputScreenReaderLabel', 'elementRef'];
48
- exports.allowedProps = allowedProps;
46
+ const allowedProps = exports.allowedProps = ['disabled', 'label', 'width', 'value', 'onChange', 'withAlpha', 'rgbRedInputScreenReaderLabel', 'rgbGreenInputScreenReaderLabel', 'rgbBlueInputScreenReaderLabel', 'rgbAlphaInputScreenReaderLabel', 'elementRef'];
@@ -65,5 +65,4 @@ const generateStyle = (componentTheme, props) => {
65
65
  }
66
66
  };
67
67
  };
68
- var _default = generateStyle;
69
- exports.default = _default;
68
+ var _default = exports.default = generateStyle;
@@ -46,5 +46,4 @@ const generateComponentTheme = theme => {
46
46
  ...componentVariables
47
47
  };
48
48
  };
49
- var _default = generateComponentTheme;
50
- exports.default = _default;
49
+ var _default = exports.default = generateComponentTheme;
@@ -190,5 +190,4 @@ let Slider = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
190
190
  }, _class2.displayName = "Slider", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorMixer.Slider', _class2.defaultProps = {
191
191
  isColorSlider: false
192
192
  }, _class2)) || _class);
193
- var _default = Slider;
194
- exports.default = _default;
193
+ var _default = exports.default = Slider;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  isColorSlider: _propTypes.default.bool,
35
35
  onChange: _propTypes.default.func.isRequired,
36
36
  width: _propTypes.default.number.isRequired,
@@ -42,6 +42,4 @@ const propTypes = {
42
42
  elementRef: _propTypes.default.func,
43
43
  navigationExplanationScreenReaderLabel: _propTypes.default.string.isRequired
44
44
  };
45
- exports.propTypes = propTypes;
46
- const allowedProps = ['isColorSlider', 'onChange', 'width', 'value', 'minValue', 'maxValue', 'indicatorRadius', 'height', 'elementRef', 'navigationExplanationScreenReaderLabel'];
47
- exports.allowedProps = allowedProps;
45
+ const allowedProps = exports.allowedProps = ['isColorSlider', 'onChange', 'width', 'value', 'minValue', 'maxValue', 'indicatorRadius', 'height', 'elementRef', 'navigationExplanationScreenReaderLabel'];
@@ -96,5 +96,4 @@ const generateStyle = (componentTheme, props, state) => {
96
96
  }
97
97
  };
98
98
  };
99
- var _default = generateStyle;
100
- exports.default = _default;
99
+ var _default = exports.default = generateStyle;
@@ -56,5 +56,4 @@ const generateComponentTheme = theme => {
56
56
  ...componentVariables
57
57
  };
58
58
  };
59
- var _default = generateComponentTheme;
60
- exports.default = _default;
59
+ var _default = exports.default = generateComponentTheme;
@@ -47,7 +47,7 @@ category: components
47
47
  ---
48
48
  @tsProps
49
49
  **/
50
- let ColorMixer = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorMixer extends _react.Component {
50
+ let ColorMixer = exports.ColorMixer = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorMixer extends _react.Component {
51
51
  constructor(props) {
52
52
  super(props);
53
53
  this.ref = null;
@@ -216,6 +216,4 @@ let ColorMixer = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 =
216
216
  withAlpha: false,
217
217
  disabled: false
218
218
  }, _class2)) || _class) || _class);
219
- exports.ColorMixer = ColorMixer;
220
- var _default = ColorMixer;
221
- exports.default = _default;
219
+ var _default = exports.default = ColorMixer;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  disabled: _propTypes.default.bool,
35
35
  elementRef: _propTypes.default.func,
36
36
  withAlpha: _propTypes.default.bool,
@@ -44,6 +44,4 @@ const propTypes = {
44
44
  alphaSliderNavigationExplanationScreenReaderLabel: _propTypes.default.string.isRequired,
45
45
  colorPaletteNavigationExplanationScreenReaderLabel: _propTypes.default.string.isRequired
46
46
  };
47
- exports.propTypes = propTypes;
48
- const allowedProps = ['disabled', 'elementRef', 'value', 'onChange', 'withAlpha', 'rgbRedInputScreenReaderLabel', 'rgbGreenInputScreenReaderLabel', 'rgbBlueInputScreenReaderLabel', 'rgbAlphaInputScreenReaderLabel', 'colorSliderNavigationExplanationScreenReaderLabel', 'alphaSliderNavigationExplanationScreenReaderLabel', 'colorPaletteNavigationExplanationScreenReaderLabel'];
49
- exports.allowedProps = allowedProps;
47
+ const allowedProps = exports.allowedProps = ['disabled', 'elementRef', 'value', 'onChange', 'withAlpha', 'rgbRedInputScreenReaderLabel', 'rgbGreenInputScreenReaderLabel', 'rgbBlueInputScreenReaderLabel', 'rgbAlphaInputScreenReaderLabel', 'colorSliderNavigationExplanationScreenReaderLabel', 'alphaSliderNavigationExplanationScreenReaderLabel', 'colorPaletteNavigationExplanationScreenReaderLabel'];
@@ -51,5 +51,4 @@ const generateStyle = () => {
51
51
  }
52
52
  };
53
53
  };
54
- var _default = generateStyle;
55
- exports.default = _default;
54
+ var _default = exports.default = generateStyle;
@@ -34,5 +34,4 @@ const shallowCompare = (newObj, prevObj) => {
34
34
  }
35
35
  return false;
36
36
  };
37
- var _default = shallowCompare;
38
- exports.default = _default;
37
+ var _default = exports.default = shallowCompare;
@@ -113,5 +113,4 @@ const customMethods = {
113
113
  };
114
114
 
115
115
  //@ts-expect-error no selector on class
116
- const ColorPickerLocator = (0, _locator.locator)(_.ColorPicker.selector, customMethods);
117
- exports.ColorPickerLocator = ColorPickerLocator;
116
+ const ColorPickerLocator = exports.ColorPickerLocator = (0, _locator.locator)(_.ColorPicker.selector, customMethods);
@@ -63,7 +63,7 @@ category: components
63
63
  ---
64
64
  @tsProps
65
65
  **/
66
- let ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorPicker extends _react.Component {
66
+ let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorPicker extends _react.Component {
67
67
  constructor(props) {
68
68
  super(props);
69
69
  this.ref = null;
@@ -447,6 +447,4 @@ let ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
447
447
  width: '22.5rem',
448
448
  popoverMaxHeight: '100vh'
449
449
  }, _class2)) || _class) || _class);
450
- exports.ColorPicker = ColorPicker;
451
- var _default = ColorPicker;
452
- exports.default = _default;
450
+ var _default = exports.default = ColorPicker;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  checkContrast: _propTypes.default.shape({
35
35
  isStrict: _propTypes.default.bool,
36
36
  contrastStrength: _propTypes.default.oneOf(['min', 'mid', 'max']),
@@ -86,6 +86,4 @@ const propTypes = {
86
86
  width: _propTypes.default.string,
87
87
  withAlpha: _propTypes.default.bool
88
88
  };
89
- exports.propTypes = propTypes;
90
- const allowedProps = ['id', 'checkContrast', 'colorMixerSettings', 'children', 'disabled', 'elementRef', 'isRequired', 'label', 'onChange', 'placeholderText', 'popoverScreenReaderLabel', 'popoverButtonScreenReaderLabel', 'popoverMaxHeight', 'renderInvalidColorMessage', 'renderIsRequiredMessage', 'renderMessages', 'tooltip', 'value', 'width', 'withAlpha'];
91
- exports.allowedProps = allowedProps;
89
+ const allowedProps = exports.allowedProps = ['id', 'checkContrast', 'colorMixerSettings', 'children', 'disabled', 'elementRef', 'isRequired', 'label', 'onChange', 'placeholderText', 'popoverScreenReaderLabel', 'popoverButtonScreenReaderLabel', 'popoverMaxHeight', 'renderInvalidColorMessage', 'renderIsRequiredMessage', 'renderMessages', 'tooltip', 'value', 'width', 'withAlpha'];
@@ -122,5 +122,4 @@ const generateStyle = (componentTheme, props, state) => {
122
122
  }
123
123
  };
124
124
  };
125
- var _default = generateStyle;
126
- exports.default = _default;
125
+ var _default = exports.default = generateStyle;
@@ -80,5 +80,4 @@ const generateComponentTheme = theme => {
80
80
  ...componentVariables
81
81
  };
82
82
  };
83
- var _default = generateComponentTheme;
84
- exports.default = _default;
83
+ var _default = exports.default = generateComponentTheme;
@@ -45,7 +45,7 @@ var _index = require("./index");
45
45
  /* eslint-enable no-restricted-imports */
46
46
 
47
47
  // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
48
- const ColorPresetLocator = (0, _locator.locator)(_index.ColorPreset.selector, {
48
+ const ColorPresetLocator = exports.ColorPresetLocator = (0, _locator.locator)(_index.ColorPreset.selector, {
49
49
  findAllColorIndicators: (...args) => {
50
50
  return _ColorIndicatorLocator.ColorIndicatorLocator.findAll(...args);
51
51
  },
@@ -75,5 +75,4 @@ const ColorPresetLocator = (0, _locator.locator)(_index.ColorPreset.selector, {
75
75
  await indicators[index].click();
76
76
  return await menus[index].findPopoverContent();
77
77
  }
78
- });
79
- exports.ColorPresetLocator = ColorPresetLocator;
78
+ });
@@ -56,7 +56,7 @@ category: components
56
56
  ---
57
57
  @tsProps
58
58
  **/
59
- let ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorPreset extends _react.Component {
59
+ let ColorPreset = exports.ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorPreset extends _react.Component {
60
60
  constructor(props) {
61
61
  super(props);
62
62
  this.ref = null;
@@ -256,6 +256,4 @@ let ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
256
256
  }, _class2.displayName = "ColorPreset", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorPreset', _class2.defaultProps = {
257
257
  disabled: false
258
258
  }, _class2)) || _class) || _class);
259
- exports.ColorPreset = ColorPreset;
260
- var _default = ColorPreset;
261
- exports.default = _default;
259
+ var _default = exports.default = ColorPreset;
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
30
30
  * SOFTWARE.
31
31
  */
32
32
 
33
- const propTypes = {
33
+ const propTypes = exports.propTypes = {
34
34
  colors: _propTypes.default.array.isRequired,
35
35
  onSelect: _propTypes.default.func.isRequired,
36
36
  selected: _propTypes.default.string,
@@ -69,6 +69,4 @@ const propTypes = {
69
69
  })
70
70
  })
71
71
  };
72
- exports.propTypes = propTypes;
73
- const allowedProps = ['colors', 'disabled', 'elementRef', 'label', 'colorMixerSettings', 'onSelect', 'popoverScreenReaderLabel', 'selected'];
74
- exports.allowedProps = allowedProps;
72
+ const allowedProps = exports.allowedProps = ['colors', 'disabled', 'elementRef', 'label', 'colorMixerSettings', 'onSelect', 'popoverScreenReaderLabel', 'selected'];
@@ -106,5 +106,4 @@ const generateStyle = (componentTheme, props) => {
106
106
  }
107
107
  };
108
108
  };
109
- var _default = generateStyle;
110
- exports.default = _default;
109
+ var _default = exports.default = generateStyle;
@@ -59,5 +59,4 @@ const generateComponentTheme = theme => {
59
59
  ...componentVariables
60
60
  };
61
61
  };
62
- var _default = generateComponentTheme;
63
- exports.default = _default;
62
+ var _default = exports.default = generateComponentTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-color-picker",
3
- "version": "8.46.2-snapshot-4",
3
+ "version": "8.46.2-snapshot-6",
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",
@@ -23,34 +23,34 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.22.15",
27
- "@instructure/console": "8.46.2-snapshot-4",
28
- "@instructure/emotion": "8.46.2-snapshot-4",
29
- "@instructure/shared-types": "8.46.2-snapshot-4",
30
- "@instructure/ui-a11y-content": "8.46.2-snapshot-4",
31
- "@instructure/ui-buttons": "8.46.2-snapshot-4",
32
- "@instructure/ui-color-utils": "8.46.2-snapshot-4",
33
- "@instructure/ui-dom-utils": "8.46.2-snapshot-4",
34
- "@instructure/ui-drilldown": "8.46.2-snapshot-4",
35
- "@instructure/ui-form-field": "8.46.2-snapshot-4",
36
- "@instructure/ui-icons": "8.46.2-snapshot-4",
37
- "@instructure/ui-pill": "8.46.2-snapshot-4",
38
- "@instructure/ui-popover": "8.46.2-snapshot-4",
39
- "@instructure/ui-react-utils": "8.46.2-snapshot-4",
40
- "@instructure/ui-testable": "8.46.2-snapshot-4",
41
- "@instructure/ui-text": "8.46.2-snapshot-4",
42
- "@instructure/ui-text-input": "8.46.2-snapshot-4",
43
- "@instructure/ui-themes": "8.46.2-snapshot-4",
44
- "@instructure/ui-tooltip": "8.46.2-snapshot-4",
45
- "@instructure/ui-utils": "8.46.2-snapshot-4",
46
- "@instructure/ui-view": "8.46.2-snapshot-4",
26
+ "@babel/runtime": "^7.23.2",
27
+ "@instructure/console": "8.46.2-snapshot-6",
28
+ "@instructure/emotion": "8.46.2-snapshot-6",
29
+ "@instructure/shared-types": "8.46.2-snapshot-6",
30
+ "@instructure/ui-a11y-content": "8.46.2-snapshot-6",
31
+ "@instructure/ui-buttons": "8.46.2-snapshot-6",
32
+ "@instructure/ui-color-utils": "8.46.2-snapshot-6",
33
+ "@instructure/ui-dom-utils": "8.46.2-snapshot-6",
34
+ "@instructure/ui-drilldown": "8.46.2-snapshot-6",
35
+ "@instructure/ui-form-field": "8.46.2-snapshot-6",
36
+ "@instructure/ui-icons": "8.46.2-snapshot-6",
37
+ "@instructure/ui-pill": "8.46.2-snapshot-6",
38
+ "@instructure/ui-popover": "8.46.2-snapshot-6",
39
+ "@instructure/ui-react-utils": "8.46.2-snapshot-6",
40
+ "@instructure/ui-testable": "8.46.2-snapshot-6",
41
+ "@instructure/ui-text": "8.46.2-snapshot-6",
42
+ "@instructure/ui-text-input": "8.46.2-snapshot-6",
43
+ "@instructure/ui-themes": "8.46.2-snapshot-6",
44
+ "@instructure/ui-tooltip": "8.46.2-snapshot-6",
45
+ "@instructure/ui-utils": "8.46.2-snapshot-6",
46
+ "@instructure/ui-view": "8.46.2-snapshot-6",
47
47
  "prop-types": "^15.8.1"
48
48
  },
49
49
  "devDependencies": {
50
- "@instructure/ui-babel-preset": "8.46.2-snapshot-4",
51
- "@instructure/ui-test-locator": "8.46.2-snapshot-4",
52
- "@instructure/ui-test-queries": "8.46.2-snapshot-4",
53
- "@instructure/ui-test-utils": "8.46.2-snapshot-4"
50
+ "@instructure/ui-babel-preset": "8.46.2-snapshot-6",
51
+ "@instructure/ui-test-locator": "8.46.2-snapshot-6",
52
+ "@instructure/ui-test-queries": "8.46.2-snapshot-6",
53
+ "@instructure/ui-test-utils": "8.46.2-snapshot-6"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "react": ">=16.8 <=18"