@instructure/ui-color-picker 9.0.2-snapshot-2 → 9.0.2-snapshot-4
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/es/ColorContrast/ColorContrastLocator.js +1 -1
- package/es/ColorContrast/index.js +4 -4
- package/es/ColorIndicator/index.js +4 -4
- package/es/ColorMixer/ColorPalette/index.js +3 -3
- package/es/ColorMixer/RGBAInput/index.js +4 -4
- package/es/ColorMixer/Slider/index.js +4 -4
- package/es/ColorMixer/index.js +4 -4
- package/es/ColorPicker/ColorPickerLocator.js +1 -1
- package/es/ColorPicker/index.js +4 -4
- package/es/ColorPreset/ColorPresetLocator.js +4 -4
- package/es/ColorPreset/index.js +4 -4
- package/lib/ColorContrast/ColorContrastLocator.js +1 -1
- package/lib/ColorContrast/index.js +4 -4
- package/lib/ColorIndicator/index.js +4 -4
- package/lib/ColorMixer/ColorPalette/index.js +3 -3
- package/lib/ColorMixer/RGBAInput/index.js +4 -4
- package/lib/ColorMixer/Slider/index.js +4 -4
- package/lib/ColorMixer/index.js +4 -4
- package/lib/ColorPicker/ColorPickerLocator.js +4 -1
- package/lib/ColorPicker/index.js +4 -4
- package/lib/ColorPreset/ColorPresetLocator.js +4 -4
- package/lib/ColorPreset/index.js +4 -4
- package/package.json +26 -26
- package/src/ColorContrast/ColorContrastLocator.ts +1 -1
- package/src/ColorPicker/ColorPickerLocator.ts +1 -1
- package/src/ColorPreset/ColorPresetLocator.ts +5 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/ColorContrast/ColorContrastLocator.d.ts +2147 -47
- package/types/ColorContrast/ColorContrastLocator.d.ts.map +1 -1
- package/types/ColorContrast/index.d.ts +1 -1
- package/types/ColorIndicator/ColorIndicatorLocator.d.ts +36 -36
- package/types/ColorIndicator/index.d.ts +1 -1
- package/types/ColorMixer/ColorMixerLocator.d.ts +32 -32
- package/types/ColorMixer/ColorPalette/index.d.ts +1 -1
- package/types/ColorMixer/RGBAInput/index.d.ts +5 -5
- package/types/ColorMixer/Slider/index.d.ts +1 -1
- package/types/ColorMixer/index.d.ts +1 -1
- package/types/ColorPicker/ColorPickerLocator.d.ts +1647 -247
- package/types/ColorPicker/ColorPickerLocator.d.ts.map +1 -1
- package/types/ColorPicker/index.d.ts +1 -1
- package/types/ColorPreset/ColorPresetLocator.d.ts +1 -2007
- package/types/ColorPreset/ColorPresetLocator.d.ts.map +1 -1
- package/types/ColorPreset/index.d.ts +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
|
-
## [9.0.2-snapshot-
|
|
6
|
+
## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-color-picker
|
|
9
9
|
|
|
@@ -25,7 +25,7 @@ import { locator } from '@instructure/ui-test-locator';
|
|
|
25
25
|
import { find } from '@instructure/ui-test-queries';
|
|
26
26
|
|
|
27
27
|
/* eslint-disable no-restricted-imports */
|
|
28
|
-
// @ts-
|
|
28
|
+
// @ts-ignore: Cannot find module
|
|
29
29
|
import { PillLocator } from '@instructure/ui-pill/es/Pill/PillLocator';
|
|
30
30
|
/* eslint-enable no-restricted-imports */
|
|
31
31
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _ColorContrast;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -43,7 +43,7 @@ import generateComponentTheme from './theme';
|
|
|
43
43
|
category: components
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
|
-
let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
46
|
+
let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_ColorContrast = class ColorContrast extends Component {
|
|
47
47
|
constructor(props) {
|
|
48
48
|
super(props);
|
|
49
49
|
this.ref = null;
|
|
@@ -155,8 +155,8 @@ let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
155
155
|
size: "x-large"
|
|
156
156
|
}, contrast, ":1"), this.renderPreview(), this.renderStatus(contrast >= 4.5, normalTextLabel), this.renderStatus(contrast >= 3, largeTextLabel), this.renderStatus(contrast >= 3, graphicsTextLabel));
|
|
157
157
|
}
|
|
158
|
-
},
|
|
158
|
+
}, _ColorContrast.displayName = "ColorContrast", _ColorContrast.propTypes = propTypes, _ColorContrast.allowedProps = allowedProps, _ColorContrast.componentId = 'ColorContrast', _ColorContrast.defaultProps = {
|
|
159
159
|
withoutColorPreview: false
|
|
160
|
-
},
|
|
160
|
+
}, _ColorContrast)) || _class) || _class);
|
|
161
161
|
export { ColorContrast };
|
|
162
162
|
export default ColorContrast;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _ColorIndicator;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -37,7 +37,7 @@ import { propTypes, allowedProps } from './props';
|
|
|
37
37
|
category: components
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
|
-
let ColorIndicator = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
40
|
+
let ColorIndicator = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_ColorIndicator = class ColorIndicator extends Component {
|
|
41
41
|
constructor(...args) {
|
|
42
42
|
super(...args);
|
|
43
43
|
this.ref = null;
|
|
@@ -64,8 +64,8 @@ let ColorIndicator = (_dec = withStyle(generateStyle, generateComponentTheme), _
|
|
|
64
64
|
css: styles === null || styles === void 0 ? void 0 : styles.colorIndicator
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, _ColorIndicator.displayName = "ColorIndicator", _ColorIndicator.propTypes = propTypes, _ColorIndicator.allowedProps = allowedProps, _ColorIndicator.componentId = 'ColorIndicator', _ColorIndicator.defaultProps = {
|
|
68
68
|
shape: 'circle'
|
|
69
|
-
},
|
|
69
|
+
}, _ColorIndicator)) || _class) || _class);
|
|
70
70
|
export default ColorIndicator;
|
|
71
71
|
export { ColorIndicator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _ColorPalette;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -40,7 +40,7 @@ import generateComponentTheme from './theme';
|
|
|
40
40
|
private: true
|
|
41
41
|
---
|
|
42
42
|
**/
|
|
43
|
-
let ColorPalette = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = (
|
|
43
|
+
let ColorPalette = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = (_ColorPalette = class ColorPalette extends Component {
|
|
44
44
|
constructor(props) {
|
|
45
45
|
var _this$props$styles;
|
|
46
46
|
super(props);
|
|
@@ -223,5 +223,5 @@ let ColorPalette = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyl
|
|
|
223
223
|
}
|
|
224
224
|
}));
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, _ColorPalette.displayName = "ColorPalette", _ColorPalette.propTypes = propTypes, _ColorPalette.allowedProps = allowedProps, _ColorPalette.componentId = 'ColorMixer.Palette', _ColorPalette)) || _class) || _class);
|
|
227
227
|
export default ColorPalette;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _class,
|
|
1
|
+
var _dec, _class, _RGBAInput, _span;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -38,7 +38,7 @@ import generateComponentTheme from './theme';
|
|
|
38
38
|
private: true
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
|
-
let RGBAInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (
|
|
41
|
+
let RGBAInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_RGBAInput = class RGBAInput extends Component {
|
|
42
42
|
constructor(props) {
|
|
43
43
|
super(props);
|
|
44
44
|
this.ref = null;
|
|
@@ -129,7 +129,7 @@ let RGBAInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
129
129
|
renderLabel: jsx(ScreenReaderContent, null, this.props.rgbAlphaInputScreenReaderLabel)
|
|
130
130
|
}))));
|
|
131
131
|
}
|
|
132
|
-
},
|
|
132
|
+
}, _RGBAInput.displayName = "RGBAInput", _RGBAInput.propTypes = propTypes, _RGBAInput.allowedProps = allowedProps, _RGBAInput.componentId = 'ColorMixer.RGBAInput', _RGBAInput.defaultProps = {
|
|
133
133
|
withAlpha: false
|
|
134
|
-
},
|
|
134
|
+
}, _RGBAInput)) || _class);
|
|
135
135
|
export default RGBAInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _class,
|
|
1
|
+
var _dec, _class, _Slider;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -37,7 +37,7 @@ import generateComponentTheme from './theme';
|
|
|
37
37
|
private: true
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
|
-
let Slider = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (
|
|
40
|
+
let Slider = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_Slider = class Slider extends Component {
|
|
41
41
|
constructor(...args) {
|
|
42
42
|
super(...args);
|
|
43
43
|
this.ref = null;
|
|
@@ -180,7 +180,7 @@ let Slider = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cla
|
|
|
180
180
|
css: (_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.slider
|
|
181
181
|
})));
|
|
182
182
|
}
|
|
183
|
-
},
|
|
183
|
+
}, _Slider.displayName = "Slider", _Slider.propTypes = propTypes, _Slider.allowedProps = allowedProps, _Slider.componentId = 'ColorMixer.Slider', _Slider.defaultProps = {
|
|
184
184
|
isColorSlider: false
|
|
185
|
-
},
|
|
185
|
+
}, _Slider)) || _class);
|
|
186
186
|
export default Slider;
|
package/es/ColorMixer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _ColorMixer;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -41,7 +41,7 @@ import generateStyle from './styles';
|
|
|
41
41
|
category: components
|
|
42
42
|
---
|
|
43
43
|
**/
|
|
44
|
-
let ColorMixer = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
44
|
+
let ColorMixer = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec(_class = _dec2(_class = (_ColorMixer = class ColorMixer extends Component {
|
|
45
45
|
constructor(props) {
|
|
46
46
|
super(props);
|
|
47
47
|
this.ref = null;
|
|
@@ -205,10 +205,10 @@ let ColorMixer = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _de
|
|
|
205
205
|
rgbAlphaInputScreenReaderLabel: rgbAlphaInputScreenReaderLabel
|
|
206
206
|
}));
|
|
207
207
|
}
|
|
208
|
-
},
|
|
208
|
+
}, _ColorMixer.displayName = "ColorMixer", _ColorMixer.propTypes = propTypes, _ColorMixer.allowedProps = allowedProps, _ColorMixer.componentId = 'ColorMixer', _ColorMixer.defaultProps = {
|
|
209
209
|
value: '#000',
|
|
210
210
|
withAlpha: false,
|
|
211
211
|
disabled: false
|
|
212
|
-
},
|
|
212
|
+
}, _ColorMixer)) || _class) || _class);
|
|
213
213
|
export { ColorMixer };
|
|
214
214
|
export default ColorMixer;
|
|
@@ -26,7 +26,7 @@ import { find, findAll, parseQueryArguments, findWithText, within } from '@instr
|
|
|
26
26
|
import { ColorPicker } from '.';
|
|
27
27
|
|
|
28
28
|
/* eslint-disable no-restricted-imports */
|
|
29
|
-
// @ts-
|
|
29
|
+
// @ts-ignore: Cannot find module
|
|
30
30
|
import { PopoverLocator } from '@instructure/ui-popover/es/Popover/PopoverLocator';
|
|
31
31
|
/* eslint-enable no-restricted-imports */
|
|
32
32
|
|
package/es/ColorPicker/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _ColorPicker, _IconTroubleLine, _IconWarningLine, _IconCheckDarkLine, _IconInfoLine;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -50,7 +50,7 @@ const acceptedCharactersForHEX = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '
|
|
|
50
50
|
category: components
|
|
51
51
|
---
|
|
52
52
|
**/
|
|
53
|
-
let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
53
|
+
let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_ColorPicker = class ColorPicker extends Component {
|
|
54
54
|
constructor(props) {
|
|
55
55
|
super(props);
|
|
56
56
|
this.ref = null;
|
|
@@ -428,11 +428,11 @@ let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
428
428
|
css: (_this$props$styles8 = this.props.styles) === null || _this$props$styles8 === void 0 ? void 0 : _this$props$styles8.colorMixerButtonWrapper
|
|
429
429
|
}, this.renderPopover())));
|
|
430
430
|
}
|
|
431
|
-
},
|
|
431
|
+
}, _ColorPicker.displayName = "ColorPicker", _ColorPicker.propTypes = propTypes, _ColorPicker.allowedProps = allowedProps, _ColorPicker.componentId = 'ColorPicker', _ColorPicker.defaultProps = {
|
|
432
432
|
disabled: false,
|
|
433
433
|
withAlpha: false,
|
|
434
434
|
width: '22.5rem',
|
|
435
435
|
popoverMaxHeight: '100vh'
|
|
436
|
-
},
|
|
436
|
+
}, _ColorPicker)) || _class) || _class);
|
|
437
437
|
export { ColorPicker };
|
|
438
438
|
export default ColorPicker;
|
|
@@ -25,18 +25,18 @@ import { locator } from '@instructure/ui-test-locator';
|
|
|
25
25
|
import { find } from '@instructure/ui-test-queries';
|
|
26
26
|
|
|
27
27
|
/* eslint-disable no-restricted-imports */
|
|
28
|
-
// @ts-
|
|
28
|
+
// @ts-ignore: Cannot find module
|
|
29
29
|
import { DrilldownLocator } from '@instructure/ui-drilldown/es/Drilldown/DrilldownLocator';
|
|
30
|
-
// @ts-
|
|
30
|
+
// @ts-ignore: Cannot find module
|
|
31
31
|
import { TooltipLocator } from '@instructure/ui-tooltip/es/Tooltip/TooltipLocator';
|
|
32
|
-
// @ts-
|
|
32
|
+
// @ts-ignore: Cannot find module
|
|
33
33
|
import { PopoverLocator } from '@instructure/ui-popover/es/Popover/PopoverLocator';
|
|
34
34
|
/* eslint-enable no-restricted-imports */
|
|
35
35
|
|
|
36
36
|
import { ColorIndicatorLocator } from '../ColorIndicator/ColorIndicatorLocator';
|
|
37
37
|
import { ColorPreset } from './index';
|
|
38
38
|
|
|
39
|
-
// @ts-
|
|
39
|
+
// @ts-ignore: The inferred type exceeds the maximum the compiler will serialize
|
|
40
40
|
export const ColorPresetLocator = locator(ColorPreset.selector, {
|
|
41
41
|
findAllColorIndicators: (...args) => {
|
|
42
42
|
return ColorIndicatorLocator.findAll(...args);
|
package/es/ColorPreset/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class,
|
|
1
|
+
var _dec, _dec2, _class, _ColorPreset, _IconAddLine;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -48,7 +48,7 @@ import { propTypes, allowedProps } from './props';
|
|
|
48
48
|
category: components
|
|
49
49
|
---
|
|
50
50
|
**/
|
|
51
|
-
let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
51
|
+
let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_ColorPreset = class ColorPreset extends Component {
|
|
52
52
|
constructor(props) {
|
|
53
53
|
super(props);
|
|
54
54
|
this.ref = null;
|
|
@@ -245,8 +245,8 @@ let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
245
245
|
}, this.renderColorIndicator(color, true));
|
|
246
246
|
}));
|
|
247
247
|
}
|
|
248
|
-
},
|
|
248
|
+
}, _ColorPreset.displayName = "ColorPreset", _ColorPreset.propTypes = propTypes, _ColorPreset.allowedProps = allowedProps, _ColorPreset.componentId = 'ColorPreset', _ColorPreset.defaultProps = {
|
|
249
249
|
disabled: false
|
|
250
|
-
},
|
|
250
|
+
}, _ColorPreset)) || _class) || _class);
|
|
251
251
|
export { ColorPreset };
|
|
252
252
|
export default ColorPreset;
|
|
@@ -18,7 +18,7 @@ var _ColorIndicator = _interopRequireDefault(require("../ColorIndicator"));
|
|
|
18
18
|
var _props = require("./props");
|
|
19
19
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
20
20
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
21
|
-
var _dec, _dec2, _class,
|
|
21
|
+
var _dec, _dec2, _class, _ColorContrast;
|
|
22
22
|
/*
|
|
23
23
|
* The MIT License (MIT)
|
|
24
24
|
*
|
|
@@ -49,7 +49,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
49
49
|
category: components
|
|
50
50
|
---
|
|
51
51
|
**/
|
|
52
|
-
let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
52
|
+
let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_ColorContrast = class ColorContrast extends _react.Component {
|
|
53
53
|
constructor(props) {
|
|
54
54
|
super(props);
|
|
55
55
|
this.ref = null;
|
|
@@ -161,7 +161,7 @@ let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_sty
|
|
|
161
161
|
size: "x-large"
|
|
162
162
|
}, contrast, ":1"), this.renderPreview(), this.renderStatus(contrast >= 4.5, normalTextLabel), this.renderStatus(contrast >= 3, largeTextLabel), this.renderStatus(contrast >= 3, graphicsTextLabel));
|
|
163
163
|
}
|
|
164
|
-
},
|
|
164
|
+
}, _ColorContrast.displayName = "ColorContrast", _ColorContrast.propTypes = _props.propTypes, _ColorContrast.allowedProps = _props.allowedProps, _ColorContrast.componentId = 'ColorContrast', _ColorContrast.defaultProps = {
|
|
165
165
|
withoutColorPreview: false
|
|
166
|
-
},
|
|
166
|
+
}, _ColorContrast)) || _class) || _class);
|
|
167
167
|
var _default = exports.default = ColorContrast;
|
|
@@ -12,7 +12,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
12
12
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
13
13
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
14
14
|
var _props = require("./props");
|
|
15
|
-
var _dec, _dec2, _class,
|
|
15
|
+
var _dec, _dec2, _class, _ColorIndicator;
|
|
16
16
|
/*
|
|
17
17
|
* The MIT License (MIT)
|
|
18
18
|
*
|
|
@@ -42,7 +42,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
42
42
|
category: components
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
|
-
let ColorIndicator = exports.ColorIndicator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
45
|
+
let ColorIndicator = exports.ColorIndicator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_ColorIndicator = class ColorIndicator extends _react.Component {
|
|
46
46
|
constructor(...args) {
|
|
47
47
|
super(...args);
|
|
48
48
|
this.ref = null;
|
|
@@ -69,7 +69,7 @@ let ColorIndicator = exports.ColorIndicator = (_dec = (0, _emotion.withStyle)(_s
|
|
|
69
69
|
css: styles === null || styles === void 0 ? void 0 : styles.colorIndicator
|
|
70
70
|
}));
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, _ColorIndicator.displayName = "ColorIndicator", _ColorIndicator.propTypes = _props.propTypes, _ColorIndicator.allowedProps = _props.allowedProps, _ColorIndicator.componentId = 'ColorIndicator', _ColorIndicator.defaultProps = {
|
|
73
73
|
shape: 'circle'
|
|
74
|
-
},
|
|
74
|
+
}, _ColorIndicator)) || _class) || _class);
|
|
75
75
|
var _default = exports.default = ColorIndicator;
|
|
@@ -16,7 +16,7 @@ var _shallowCompare = _interopRequireDefault(require("../utils/shallowCompare"))
|
|
|
16
16
|
var _props = require("./props");
|
|
17
17
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
18
18
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
19
|
-
var _dec, _dec2, _class,
|
|
19
|
+
var _dec, _dec2, _class, _ColorPalette;
|
|
20
20
|
/*
|
|
21
21
|
* The MIT License (MIT)
|
|
22
22
|
*
|
|
@@ -46,7 +46,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
46
46
|
private: true
|
|
47
47
|
---
|
|
48
48
|
**/
|
|
49
|
-
let ColorPalette = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (
|
|
49
|
+
let ColorPalette = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_ColorPalette = class ColorPalette extends _react.Component {
|
|
50
50
|
constructor(props) {
|
|
51
51
|
var _this$props$styles;
|
|
52
52
|
super(props);
|
|
@@ -229,5 +229,5 @@ let ColorPalette = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec
|
|
|
229
229
|
}
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
232
|
-
},
|
|
232
|
+
}, _ColorPalette.displayName = "ColorPalette", _ColorPalette.propTypes = _props.propTypes, _ColorPalette.allowedProps = _props.allowedProps, _ColorPalette.componentId = 'ColorMixer.Palette', _ColorPalette)) || _class) || _class);
|
|
233
233
|
var _default = exports.default = ColorPalette;
|
|
@@ -14,7 +14,7 @@ var _TextInput = require("@instructure/ui-text-input/lib/TextInput");
|
|
|
14
14
|
var _props = require("./props");
|
|
15
15
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
16
16
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
17
|
-
var _dec, _class,
|
|
17
|
+
var _dec, _class, _RGBAInput, _span;
|
|
18
18
|
/*
|
|
19
19
|
* The MIT License (MIT)
|
|
20
20
|
*
|
|
@@ -44,7 +44,7 @@ var _dec, _class, _class2, _span;
|
|
|
44
44
|
private: true
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
|
-
let RGBAInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (
|
|
47
|
+
let RGBAInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_RGBAInput = class RGBAInput extends _react.Component {
|
|
48
48
|
constructor(props) {
|
|
49
49
|
super(props);
|
|
50
50
|
this.ref = null;
|
|
@@ -135,7 +135,7 @@ let RGBAInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
135
135
|
renderLabel: (0, _emotion.jsx)(_ScreenReaderContent.ScreenReaderContent, null, this.props.rgbAlphaInputScreenReaderLabel)
|
|
136
136
|
}))));
|
|
137
137
|
}
|
|
138
|
-
},
|
|
138
|
+
}, _RGBAInput.displayName = "RGBAInput", _RGBAInput.propTypes = _props.propTypes, _RGBAInput.allowedProps = _props.allowedProps, _RGBAInput.componentId = 'ColorMixer.RGBAInput', _RGBAInput.defaultProps = {
|
|
139
139
|
withAlpha: false
|
|
140
|
-
},
|
|
140
|
+
}, _RGBAInput)) || _class);
|
|
141
141
|
var _default = exports.default = RGBAInput;
|
|
@@ -13,7 +13,7 @@ var _View = require("@instructure/ui-view/lib/View");
|
|
|
13
13
|
var _props = require("./props");
|
|
14
14
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
15
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
16
|
-
var _dec, _class,
|
|
16
|
+
var _dec, _class, _Slider;
|
|
17
17
|
/*
|
|
18
18
|
* The MIT License (MIT)
|
|
19
19
|
*
|
|
@@ -43,7 +43,7 @@ var _dec, _class, _class2;
|
|
|
43
43
|
private: true
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
|
-
let Slider = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (
|
|
46
|
+
let Slider = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_Slider = class Slider extends _react.Component {
|
|
47
47
|
constructor(...args) {
|
|
48
48
|
super(...args);
|
|
49
49
|
this.ref = null;
|
|
@@ -186,7 +186,7 @@ let Slider = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
|
|
|
186
186
|
css: (_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.slider
|
|
187
187
|
})));
|
|
188
188
|
}
|
|
189
|
-
},
|
|
189
|
+
}, _Slider.displayName = "Slider", _Slider.propTypes = _props.propTypes, _Slider.allowedProps = _props.allowedProps, _Slider.componentId = 'ColorMixer.Slider', _Slider.defaultProps = {
|
|
190
190
|
isColorSlider: false
|
|
191
|
-
},
|
|
191
|
+
}, _Slider)) || _class);
|
|
192
192
|
var _default = exports.default = Slider;
|
package/lib/ColorMixer/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var _Slider = _interopRequireDefault(require("./Slider"));
|
|
|
16
16
|
var _RGBAInput = _interopRequireDefault(require("./RGBAInput"));
|
|
17
17
|
var _props = require("./props");
|
|
18
18
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
19
|
-
var _dec, _dec2, _class,
|
|
19
|
+
var _dec, _dec2, _class, _ColorMixer;
|
|
20
20
|
/*
|
|
21
21
|
* The MIT License (MIT)
|
|
22
22
|
*
|
|
@@ -46,7 +46,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
46
46
|
category: components
|
|
47
47
|
---
|
|
48
48
|
**/
|
|
49
|
-
let ColorMixer = exports.ColorMixer = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
49
|
+
let ColorMixer = exports.ColorMixer = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_ColorMixer = class ColorMixer extends _react.Component {
|
|
50
50
|
constructor(props) {
|
|
51
51
|
super(props);
|
|
52
52
|
this.ref = null;
|
|
@@ -210,9 +210,9 @@ let ColorMixer = exports.ColorMixer = (_dec = (0, _emotion.withStyle)(_styles.de
|
|
|
210
210
|
rgbAlphaInputScreenReaderLabel: rgbAlphaInputScreenReaderLabel
|
|
211
211
|
}));
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, _ColorMixer.displayName = "ColorMixer", _ColorMixer.propTypes = _props.propTypes, _ColorMixer.allowedProps = _props.allowedProps, _ColorMixer.componentId = 'ColorMixer', _ColorMixer.defaultProps = {
|
|
214
214
|
value: '#000',
|
|
215
215
|
withAlpha: false,
|
|
216
216
|
disabled: false
|
|
217
|
-
},
|
|
217
|
+
}, _ColorMixer)) || _class) || _class);
|
|
218
218
|
var _default = exports.default = ColorMixer;
|
|
@@ -35,8 +35,11 @@ var _ColorPresetLocator = require("../ColorPreset/ColorPresetLocator");
|
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
-
/* eslint-disable no-restricted-imports */
|
|
38
|
+
/* eslint-disable no-restricted-imports */
|
|
39
|
+
// @ts-ignore: Cannot find module
|
|
40
|
+
|
|
39
41
|
/* eslint-enable no-restricted-imports */
|
|
42
|
+
|
|
40
43
|
async function _findColorPreset(...args) {
|
|
41
44
|
const popoverContent = await _PopoverLocator.PopoverLocator.findContent(...args);
|
|
42
45
|
const colorPreset = await _ColorPresetLocator.ColorPresetLocator.find(popoverContent.getDOMNode());
|
package/lib/ColorPicker/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var _ColorPreset = _interopRequireDefault(require("../ColorPreset"));
|
|
|
29
29
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
30
30
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
31
31
|
var _props = require("./props");
|
|
32
|
-
var _dec, _dec2, _class,
|
|
32
|
+
var _dec, _dec2, _class, _ColorPicker, _IconTroubleLine, _IconWarningLine, _IconCheckDarkLine, _IconInfoLine;
|
|
33
33
|
/*
|
|
34
34
|
* The MIT License (MIT)
|
|
35
35
|
*
|
|
@@ -62,7 +62,7 @@ const acceptedCharactersForHEX = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '
|
|
|
62
62
|
category: components
|
|
63
63
|
---
|
|
64
64
|
**/
|
|
65
|
-
let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
65
|
+
let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_ColorPicker = class ColorPicker extends _react.Component {
|
|
66
66
|
constructor(props) {
|
|
67
67
|
super(props);
|
|
68
68
|
this.ref = null;
|
|
@@ -440,10 +440,10 @@ let ColorPicker = exports.ColorPicker = (_dec = (0, _emotion.withStyle)(_styles.
|
|
|
440
440
|
css: (_this$props$styles8 = this.props.styles) === null || _this$props$styles8 === void 0 ? void 0 : _this$props$styles8.colorMixerButtonWrapper
|
|
441
441
|
}, this.renderPopover())));
|
|
442
442
|
}
|
|
443
|
-
},
|
|
443
|
+
}, _ColorPicker.displayName = "ColorPicker", _ColorPicker.propTypes = _props.propTypes, _ColorPicker.allowedProps = _props.allowedProps, _ColorPicker.componentId = 'ColorPicker', _ColorPicker.defaultProps = {
|
|
444
444
|
disabled: false,
|
|
445
445
|
withAlpha: false,
|
|
446
446
|
width: '22.5rem',
|
|
447
447
|
popoverMaxHeight: '100vh'
|
|
448
|
-
},
|
|
448
|
+
}, _ColorPicker)) || _class) || _class);
|
|
449
449
|
var _default = exports.default = ColorPicker;
|
|
@@ -36,15 +36,15 @@ var _index = require("./index");
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
/* eslint-disable no-restricted-imports */
|
|
39
|
-
// @ts-
|
|
39
|
+
// @ts-ignore: Cannot find module
|
|
40
40
|
|
|
41
|
-
// @ts-
|
|
41
|
+
// @ts-ignore: Cannot find module
|
|
42
42
|
|
|
43
|
-
// @ts-
|
|
43
|
+
// @ts-ignore: Cannot find module
|
|
44
44
|
|
|
45
45
|
/* eslint-enable no-restricted-imports */
|
|
46
46
|
|
|
47
|
-
// @ts-
|
|
47
|
+
// @ts-ignore: The inferred type exceeds the maximum the compiler will serialize
|
|
48
48
|
const ColorPresetLocator = exports.ColorPresetLocator = (0, _locator.locator)(_index.ColorPreset.selector, {
|
|
49
49
|
findAllColorIndicators: (...args) => {
|
|
50
50
|
return _ColorIndicatorLocator.ColorIndicatorLocator.findAll(...args);
|
package/lib/ColorPreset/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var _ColorContrast = require("../ColorContrast");
|
|
|
25
25
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
26
26
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
27
27
|
var _props = require("./props");
|
|
28
|
-
var _dec, _dec2, _class,
|
|
28
|
+
var _dec, _dec2, _class, _ColorPreset, _IconAddLine;
|
|
29
29
|
/*
|
|
30
30
|
* The MIT License (MIT)
|
|
31
31
|
*
|
|
@@ -55,7 +55,7 @@ var _dec, _dec2, _class, _class2, _IconAddLine;
|
|
|
55
55
|
category: components
|
|
56
56
|
---
|
|
57
57
|
**/
|
|
58
|
-
let ColorPreset = exports.ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
58
|
+
let ColorPreset = exports.ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_ColorPreset = class ColorPreset extends _react.Component {
|
|
59
59
|
constructor(props) {
|
|
60
60
|
super(props);
|
|
61
61
|
this.ref = null;
|
|
@@ -252,7 +252,7 @@ let ColorPreset = exports.ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.
|
|
|
252
252
|
}, this.renderColorIndicator(color, true));
|
|
253
253
|
}));
|
|
254
254
|
}
|
|
255
|
-
},
|
|
255
|
+
}, _ColorPreset.displayName = "ColorPreset", _ColorPreset.propTypes = _props.propTypes, _ColorPreset.allowedProps = _props.allowedProps, _ColorPreset.componentId = 'ColorPreset', _ColorPreset.defaultProps = {
|
|
256
256
|
disabled: false
|
|
257
|
-
},
|
|
257
|
+
}, _ColorPreset)) || _class) || _class);
|
|
258
258
|
var _default = exports.default = ColorPreset;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-color-picker",
|
|
3
|
-
"version": "9.0.2-snapshot-
|
|
3
|
+
"version": "9.0.2-snapshot-4",
|
|
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": "9.0.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "9.0.2-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-content": "9.0.2-snapshot-
|
|
31
|
-
"@instructure/ui-buttons": "9.0.2-snapshot-
|
|
32
|
-
"@instructure/ui-color-utils": "9.0.2-snapshot-
|
|
33
|
-
"@instructure/ui-dom-utils": "9.0.2-snapshot-
|
|
34
|
-
"@instructure/ui-drilldown": "9.0.2-snapshot-
|
|
35
|
-
"@instructure/ui-form-field": "9.0.2-snapshot-
|
|
36
|
-
"@instructure/ui-icons": "9.0.2-snapshot-
|
|
37
|
-
"@instructure/ui-pill": "9.0.2-snapshot-
|
|
38
|
-
"@instructure/ui-popover": "9.0.2-snapshot-
|
|
39
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
40
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
41
|
-
"@instructure/ui-text": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-text-input": "9.0.2-snapshot-
|
|
43
|
-
"@instructure/ui-themes": "9.0.2-snapshot-
|
|
44
|
-
"@instructure/ui-tooltip": "9.0.2-snapshot-
|
|
45
|
-
"@instructure/ui-utils": "9.0.2-snapshot-
|
|
46
|
-
"@instructure/ui-view": "9.0.2-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.24.5",
|
|
27
|
+
"@instructure/console": "9.0.2-snapshot-4",
|
|
28
|
+
"@instructure/emotion": "9.0.2-snapshot-4",
|
|
29
|
+
"@instructure/shared-types": "9.0.2-snapshot-4",
|
|
30
|
+
"@instructure/ui-a11y-content": "9.0.2-snapshot-4",
|
|
31
|
+
"@instructure/ui-buttons": "9.0.2-snapshot-4",
|
|
32
|
+
"@instructure/ui-color-utils": "9.0.2-snapshot-4",
|
|
33
|
+
"@instructure/ui-dom-utils": "9.0.2-snapshot-4",
|
|
34
|
+
"@instructure/ui-drilldown": "9.0.2-snapshot-4",
|
|
35
|
+
"@instructure/ui-form-field": "9.0.2-snapshot-4",
|
|
36
|
+
"@instructure/ui-icons": "9.0.2-snapshot-4",
|
|
37
|
+
"@instructure/ui-pill": "9.0.2-snapshot-4",
|
|
38
|
+
"@instructure/ui-popover": "9.0.2-snapshot-4",
|
|
39
|
+
"@instructure/ui-react-utils": "9.0.2-snapshot-4",
|
|
40
|
+
"@instructure/ui-testable": "9.0.2-snapshot-4",
|
|
41
|
+
"@instructure/ui-text": "9.0.2-snapshot-4",
|
|
42
|
+
"@instructure/ui-text-input": "9.0.2-snapshot-4",
|
|
43
|
+
"@instructure/ui-themes": "9.0.2-snapshot-4",
|
|
44
|
+
"@instructure/ui-tooltip": "9.0.2-snapshot-4",
|
|
45
|
+
"@instructure/ui-utils": "9.0.2-snapshot-4",
|
|
46
|
+
"@instructure/ui-view": "9.0.2-snapshot-4",
|
|
47
47
|
"prop-types": "^15.8.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@instructure/ui-babel-preset": "9.0.2-snapshot-
|
|
51
|
-
"@instructure/ui-test-locator": "9.0.2-snapshot-
|
|
52
|
-
"@instructure/ui-test-queries": "9.0.2-snapshot-
|
|
53
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
50
|
+
"@instructure/ui-babel-preset": "9.0.2-snapshot-4",
|
|
51
|
+
"@instructure/ui-test-locator": "9.0.2-snapshot-4",
|
|
52
|
+
"@instructure/ui-test-queries": "9.0.2-snapshot-4",
|
|
53
|
+
"@instructure/ui-test-utils": "9.0.2-snapshot-4"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": ">=16.8 <=18"
|
|
@@ -25,7 +25,7 @@ import { locator } from '@instructure/ui-test-locator'
|
|
|
25
25
|
import { find } from '@instructure/ui-test-queries'
|
|
26
26
|
|
|
27
27
|
/* eslint-disable no-restricted-imports */
|
|
28
|
-
// @ts-
|
|
28
|
+
// @ts-ignore: Cannot find module
|
|
29
29
|
import { PillLocator } from '@instructure/ui-pill/es/Pill/PillLocator'
|
|
30
30
|
/* eslint-enable no-restricted-imports */
|
|
31
31
|
|