@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.
- package/CHANGELOG.md +1 -1
- package/lib/ColorContrast/ColorContrastLocator.js +2 -3
- package/lib/ColorContrast/index.js +2 -4
- package/lib/ColorContrast/props.js +2 -4
- package/lib/ColorContrast/styles.js +1 -2
- package/lib/ColorContrast/theme.js +1 -2
- package/lib/ColorIndicator/ColorIndicatorLocator.js +2 -3
- package/lib/ColorIndicator/index.js +2 -4
- package/lib/ColorIndicator/props.js +2 -4
- package/lib/ColorIndicator/styles.js +1 -2
- package/lib/ColorIndicator/theme.js +2 -4
- package/lib/ColorMixer/ColorMixerLocator.js +1 -2
- package/lib/ColorMixer/ColorPalette/index.js +1 -2
- package/lib/ColorMixer/ColorPalette/props.js +2 -4
- package/lib/ColorMixer/ColorPalette/styles.js +1 -2
- package/lib/ColorMixer/ColorPalette/theme.js +1 -2
- package/lib/ColorMixer/RGBAInput/index.js +1 -2
- package/lib/ColorMixer/RGBAInput/props.js +2 -4
- package/lib/ColorMixer/RGBAInput/styles.js +1 -2
- package/lib/ColorMixer/RGBAInput/theme.js +1 -2
- package/lib/ColorMixer/Slider/index.js +1 -2
- package/lib/ColorMixer/Slider/props.js +2 -4
- package/lib/ColorMixer/Slider/styles.js +1 -2
- package/lib/ColorMixer/Slider/theme.js +1 -2
- package/lib/ColorMixer/index.js +2 -4
- package/lib/ColorMixer/props.js +2 -4
- package/lib/ColorMixer/styles.js +1 -2
- package/lib/ColorMixer/utils/shallowCompare.js +1 -2
- package/lib/ColorPicker/ColorPickerLocator.js +1 -2
- package/lib/ColorPicker/index.js +2 -4
- package/lib/ColorPicker/props.js +2 -4
- package/lib/ColorPicker/styles.js +1 -2
- package/lib/ColorPicker/theme.js +1 -2
- package/lib/ColorPreset/ColorPresetLocator.js +2 -3
- package/lib/ColorPreset/index.js +2 -4
- package/lib/ColorPreset/props.js +2 -4
- package/lib/ColorPreset/styles.js +1 -2
- package/lib/ColorPreset/theme.js +1 -2
- package/package.json +26 -26
- 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-
|
|
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.
|
|
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.
|
|
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'];
|
|
@@ -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.
|
|
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.
|
|
39
|
-
const allowedProps = ['color', 'elementRef', 'shape'];
|
|
40
|
-
exports.allowedProps = allowedProps;
|
|
38
|
+
const allowedProps = exports.allowedProps = ['color', 'elementRef', 'shape'];
|
|
@@ -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.
|
|
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'];
|
|
@@ -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.
|
|
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'];
|
|
@@ -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.
|
|
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'];
|
package/lib/ColorMixer/index.js
CHANGED
|
@@ -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.
|
|
220
|
-
var _default = ColorMixer;
|
|
221
|
-
exports.default = _default;
|
|
219
|
+
var _default = exports.default = ColorMixer;
|
package/lib/ColorMixer/props.js
CHANGED
|
@@ -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.
|
|
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'];
|
package/lib/ColorMixer/styles.js
CHANGED
|
@@ -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);
|
package/lib/ColorPicker/index.js
CHANGED
|
@@ -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.
|
|
451
|
-
var _default = ColorPicker;
|
|
452
|
-
exports.default = _default;
|
|
450
|
+
var _default = exports.default = ColorPicker;
|
package/lib/ColorPicker/props.js
CHANGED
|
@@ -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.
|
|
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'];
|
package/lib/ColorPicker/theme.js
CHANGED
|
@@ -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
|
+
});
|
package/lib/ColorPreset/index.js
CHANGED
|
@@ -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.
|
|
260
|
-
var _default = ColorPreset;
|
|
261
|
-
exports.default = _default;
|
|
259
|
+
var _default = exports.default = ColorPreset;
|
package/lib/ColorPreset/props.js
CHANGED
|
@@ -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.
|
|
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'];
|
package/lib/ColorPreset/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-color-picker",
|
|
3
|
-
"version": "8.46.2-snapshot-
|
|
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.
|
|
27
|
-
"@instructure/console": "8.46.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "8.46.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "8.46.2-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-content": "8.46.2-snapshot-
|
|
31
|
-
"@instructure/ui-buttons": "8.46.2-snapshot-
|
|
32
|
-
"@instructure/ui-color-utils": "8.46.2-snapshot-
|
|
33
|
-
"@instructure/ui-dom-utils": "8.46.2-snapshot-
|
|
34
|
-
"@instructure/ui-drilldown": "8.46.2-snapshot-
|
|
35
|
-
"@instructure/ui-form-field": "8.46.2-snapshot-
|
|
36
|
-
"@instructure/ui-icons": "8.46.2-snapshot-
|
|
37
|
-
"@instructure/ui-pill": "8.46.2-snapshot-
|
|
38
|
-
"@instructure/ui-popover": "8.46.2-snapshot-
|
|
39
|
-
"@instructure/ui-react-utils": "8.46.2-snapshot-
|
|
40
|
-
"@instructure/ui-testable": "8.46.2-snapshot-
|
|
41
|
-
"@instructure/ui-text": "8.46.2-snapshot-
|
|
42
|
-
"@instructure/ui-text-input": "8.46.2-snapshot-
|
|
43
|
-
"@instructure/ui-themes": "8.46.2-snapshot-
|
|
44
|
-
"@instructure/ui-tooltip": "8.46.2-snapshot-
|
|
45
|
-
"@instructure/ui-utils": "8.46.2-snapshot-
|
|
46
|
-
"@instructure/ui-view": "8.46.2-snapshot-
|
|
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-
|
|
51
|
-
"@instructure/ui-test-locator": "8.46.2-snapshot-
|
|
52
|
-
"@instructure/ui-test-queries": "8.46.2-snapshot-
|
|
53
|
-
"@instructure/ui-test-utils": "8.46.2-snapshot-
|
|
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"
|