@instructure/ui-color-picker 10.26.1 → 11.0.1-snapshot-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 +30 -1
- package/es/ColorContrast/index.js +6 -6
- package/es/ColorContrast/props.js +1 -18
- package/es/ColorIndicator/index.js +7 -7
- package/es/ColorIndicator/props.js +1 -7
- package/es/ColorMixer/ColorPalette/index.js +2 -2
- package/es/ColorMixer/ColorPalette/props.js +1 -13
- package/es/ColorMixer/RGBAInput/index.js +2 -2
- package/es/ColorMixer/RGBAInput/props.js +1 -15
- package/es/ColorMixer/Slider/index.js +2 -2
- package/es/ColorMixer/Slider/props.js +1 -14
- package/es/ColorMixer/index.js +6 -6
- package/es/ColorMixer/props.js +1 -16
- package/es/ColorPicker/index.js +6 -6
- package/es/ColorPicker/props.js +1 -61
- package/es/ColorPreset/index.js +6 -6
- package/es/ColorPreset/props.js +1 -42
- package/lib/ColorContrast/index.js +5 -5
- package/lib/ColorContrast/props.js +1 -19
- package/lib/ColorIndicator/index.js +6 -6
- package/lib/ColorIndicator/props.js +1 -8
- package/lib/ColorMixer/ColorPalette/index.js +1 -1
- package/lib/ColorMixer/ColorPalette/props.js +1 -14
- package/lib/ColorMixer/RGBAInput/index.js +1 -1
- package/lib/ColorMixer/RGBAInput/props.js +1 -16
- package/lib/ColorMixer/Slider/index.js +1 -1
- package/lib/ColorMixer/Slider/props.js +1 -15
- package/lib/ColorMixer/index.js +5 -5
- package/lib/ColorMixer/props.js +1 -17
- package/lib/ColorPicker/index.js +5 -5
- package/lib/ColorPicker/props.js +1 -62
- package/lib/ColorPreset/index.js +5 -5
- package/lib/ColorPreset/props.js +1 -43
- package/package.json +25 -27
- package/src/ColorContrast/index.tsx +2 -4
- package/src/ColorContrast/props.ts +1 -22
- package/src/ColorIndicator/index.tsx +2 -4
- package/src/ColorIndicator/props.ts +1 -11
- package/src/ColorMixer/ColorPalette/index.tsx +1 -2
- package/src/ColorMixer/ColorPalette/props.ts +1 -16
- package/src/ColorMixer/RGBAInput/index.tsx +1 -2
- package/src/ColorMixer/RGBAInput/props.ts +1 -18
- package/src/ColorMixer/Slider/index.tsx +1 -2
- package/src/ColorMixer/Slider/props.ts +1 -18
- package/src/ColorMixer/index.tsx +2 -4
- package/src/ColorMixer/props.ts +2 -26
- package/src/ColorPicker/index.tsx +2 -4
- package/src/ColorPicker/props.ts +2 -69
- package/src/ColorPreset/index.tsx +2 -4
- package/src/ColorPreset/props.ts +1 -48
- package/tsconfig.build.json +0 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/ColorContrast/index.d.ts +0 -23
- package/types/ColorContrast/index.d.ts.map +1 -1
- package/types/ColorContrast/props.d.ts +2 -3
- package/types/ColorContrast/props.d.ts.map +1 -1
- package/types/ColorIndicator/index.d.ts +0 -5
- package/types/ColorIndicator/index.d.ts.map +1 -1
- package/types/ColorIndicator/props.d.ts +2 -3
- package/types/ColorIndicator/props.d.ts.map +1 -1
- package/types/ColorMixer/ColorPalette/index.d.ts +0 -11
- package/types/ColorMixer/ColorPalette/index.d.ts.map +1 -1
- package/types/ColorMixer/ColorPalette/props.d.ts +2 -3
- package/types/ColorMixer/ColorPalette/props.d.ts.map +1 -1
- package/types/ColorMixer/RGBAInput/index.d.ts +0 -13
- package/types/ColorMixer/RGBAInput/index.d.ts.map +1 -1
- package/types/ColorMixer/RGBAInput/props.d.ts +2 -3
- package/types/ColorMixer/RGBAInput/props.d.ts.map +1 -1
- package/types/ColorMixer/Slider/index.d.ts +0 -12
- package/types/ColorMixer/Slider/index.d.ts.map +1 -1
- package/types/ColorMixer/Slider/props.d.ts +2 -3
- package/types/ColorMixer/Slider/props.d.ts.map +1 -1
- package/types/ColorMixer/index.d.ts +0 -14
- package/types/ColorMixer/index.d.ts.map +1 -1
- package/types/ColorMixer/props.d.ts +2 -3
- package/types/ColorMixer/props.d.ts.map +1 -1
- package/types/ColorPicker/index.d.ts +0 -66
- package/types/ColorPicker/index.d.ts.map +1 -1
- package/types/ColorPicker/props.d.ts +2 -3
- package/types/ColorPicker/props.d.ts.map +1 -1
- package/types/ColorPreset/index.d.ts +0 -40
- package/types/ColorPreset/index.d.ts.map +1 -1
- package/types/ColorPreset/props.d.ts +2 -3
- package/types/ColorPreset/props.d.ts.map +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
|
-
## [
|
|
6
|
+
## [11.0.1-snapshot-0](https://github.com/instructure/instructure-ui/compare/v11.0.0...v11.0.1-snapshot-0) (2025-10-07)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-color-picker
|
|
9
9
|
|
|
@@ -11,6 +11,35 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
# [11.0.0](https://github.com/instructure/instructure-ui/compare/v10.26.0...v11.0.0) (2025-10-06)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* **many:** InstUI v11 contains the following breaking changes:
|
|
25
|
+
- React 16 and 17 are no longer supported
|
|
26
|
+
- remove `PropTypes` from all packages
|
|
27
|
+
- remove `CodeEditor` component
|
|
28
|
+
- remove `@instui/theme-registry` package
|
|
29
|
+
- remove `@testable`, `@experimental`, `@hack` decorators
|
|
30
|
+
- InstUISettingsProvider's `as` prop is removed
|
|
31
|
+
- `canvas.use()`, `canvasHighContrast.use()` functions are removed
|
|
32
|
+
- `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
|
|
33
|
+
- `variables` field on theme objects are removed
|
|
34
|
+
- remove deprecated props from Table: Row's `isStacked`, Body's
|
|
35
|
+
`isStacked`, `hover`, and `headers`
|
|
36
|
+
- `Table`'s `caption` prop is now required
|
|
37
|
+
- `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
14
43
|
# [10.26.0](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.26.0) (2025-10-01)
|
|
15
44
|
|
|
16
45
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec,
|
|
1
|
+
var _dec, _class, _ColorContrast;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -25,14 +25,13 @@ var _dec, _dec2, _class, _ColorContrast;
|
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { testable } from '@instructure/ui-testable';
|
|
29
28
|
import { error } from '@instructure/console';
|
|
30
29
|
import { contrastWithAlpha, validateContrast } from '@instructure/ui-color-utils';
|
|
31
30
|
import { withStyle } from '@instructure/emotion';
|
|
32
31
|
import { Text } from '@instructure/ui-text';
|
|
33
32
|
import { Pill } from '@instructure/ui-pill';
|
|
34
33
|
import ColorIndicator from '../ColorIndicator';
|
|
35
|
-
import {
|
|
34
|
+
import { allowedProps } from './props';
|
|
36
35
|
import generateStyle from './styles';
|
|
37
36
|
import generateComponentTheme from './theme';
|
|
38
37
|
|
|
@@ -42,7 +41,7 @@ category: components
|
|
|
42
41
|
---
|
|
43
42
|
**/
|
|
44
43
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
45
|
-
let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
44
|
+
let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ColorContrast = class ColorContrast extends Component {
|
|
46
45
|
constructor(props) {
|
|
47
46
|
super(props);
|
|
48
47
|
this.ref = null;
|
|
@@ -171,6 +170,7 @@ let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
171
170
|
...omitProps(this.props, ColorContrast.allowedProps),
|
|
172
171
|
ref: this.handleRef,
|
|
173
172
|
css: styles === null || styles === void 0 ? void 0 : styles.colorContrast,
|
|
173
|
+
"data-cid": "ColorContrast",
|
|
174
174
|
children: [_jsx("div", {
|
|
175
175
|
css: styles === null || styles === void 0 ? void 0 : styles.label,
|
|
176
176
|
children: _jsx(Text, {
|
|
@@ -184,9 +184,9 @@ let ColorContrast = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
184
184
|
}), this.renderPreview(), this.renderStatus(isValidNormalText, normalTextLabel), this.renderStatus(isValidLargeText, largeTextLabel), this.renderStatus(isValidGraphicsText, graphicsTextLabel)]
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
}, _ColorContrast.displayName = "ColorContrast", _ColorContrast.
|
|
187
|
+
}, _ColorContrast.displayName = "ColorContrast", _ColorContrast.allowedProps = allowedProps, _ColorContrast.componentId = 'ColorContrast', _ColorContrast.defaultProps = {
|
|
188
188
|
withoutColorPreview: false,
|
|
189
189
|
validationLevel: 'AA'
|
|
190
|
-
}, _ColorContrast)) || _class)
|
|
190
|
+
}, _ColorContrast)) || _class);
|
|
191
191
|
export { ColorContrast };
|
|
192
192
|
export default ColorContrast;
|
|
@@ -22,22 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
elementRef: PropTypes.func,
|
|
28
|
-
failureLabel: PropTypes.string.isRequired,
|
|
29
|
-
firstColor: PropTypes.string.isRequired,
|
|
30
|
-
firstColorLabel: PropTypes.string,
|
|
31
|
-
graphicsTextLabel: PropTypes.string.isRequired,
|
|
32
|
-
withoutColorPreview: PropTypes.bool,
|
|
33
|
-
label: PropTypes.string.isRequired,
|
|
34
|
-
largeTextLabel: PropTypes.string.isRequired,
|
|
35
|
-
normalTextLabel: PropTypes.string.isRequired,
|
|
36
|
-
secondColor: PropTypes.string.isRequired,
|
|
37
|
-
secondColorLabel: PropTypes.string,
|
|
38
|
-
successLabel: PropTypes.string.isRequired,
|
|
39
|
-
onContrastChange: PropTypes.func,
|
|
40
|
-
validationLevel: PropTypes.oneOf(['AA', 'AAA'])
|
|
41
|
-
};
|
|
42
25
|
const allowedProps = ['elementRef', 'failureLabel', 'firstColor', 'firstColorLabel', 'graphicsTextLabel', 'withoutColorPreview', 'label', 'largeTextLabel', 'normalTextLabel', 'secondColor', 'secondColorLabel', 'successLabel', 'onContrastChange', 'validationLevel'];
|
|
43
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec,
|
|
1
|
+
var _dec, _class, _ColorIndicator;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -24,12 +24,11 @@ var _dec, _dec2, _class, _ColorIndicator;
|
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
|
-
import { testable } from '@instructure/ui-testable';
|
|
28
27
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
28
|
import { withStyle } from '@instructure/emotion';
|
|
30
29
|
import generateStyle from './styles';
|
|
31
30
|
import generateComponentTheme from './theme';
|
|
32
|
-
import {
|
|
31
|
+
import { allowedProps } from './props';
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
34
|
---
|
|
@@ -37,7 +36,7 @@ category: components
|
|
|
37
36
|
---
|
|
38
37
|
**/
|
|
39
38
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
40
|
-
let ColorIndicator = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
39
|
+
let ColorIndicator = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ColorIndicator = class ColorIndicator extends Component {
|
|
41
40
|
constructor(...args) {
|
|
42
41
|
super(...args);
|
|
43
42
|
this.ref = null;
|
|
@@ -62,11 +61,12 @@ let ColorIndicator = (_dec = withStyle(generateStyle, generateComponentTheme), _
|
|
|
62
61
|
return _jsx("div", {
|
|
63
62
|
...omitProps(this.props, ColorIndicator.allowedProps),
|
|
64
63
|
ref: this.handleRef,
|
|
65
|
-
css: styles === null || styles === void 0 ? void 0 : styles.colorIndicator
|
|
64
|
+
css: styles === null || styles === void 0 ? void 0 : styles.colorIndicator,
|
|
65
|
+
"data-cid": "ColorIndicator"
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
}, _ColorIndicator.displayName = "ColorIndicator", _ColorIndicator.
|
|
68
|
+
}, _ColorIndicator.displayName = "ColorIndicator", _ColorIndicator.allowedProps = allowedProps, _ColorIndicator.componentId = 'ColorIndicator', _ColorIndicator.defaultProps = {
|
|
69
69
|
shape: 'circle'
|
|
70
|
-
}, _ColorIndicator)) || _class)
|
|
70
|
+
}, _ColorIndicator)) || _class);
|
|
71
71
|
export default ColorIndicator;
|
|
72
72
|
export { ColorIndicator };
|
|
@@ -22,11 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
color: PropTypes.string,
|
|
28
|
-
elementRef: PropTypes.func,
|
|
29
|
-
shape: PropTypes.oneOf(['circle', 'rectangle'])
|
|
30
|
-
};
|
|
31
25
|
const allowedProps = ['color', 'elementRef', 'shape'];
|
|
32
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -30,7 +30,7 @@ import { View } from '@instructure/ui-view';
|
|
|
30
30
|
import { px } from '@instructure/ui-utils';
|
|
31
31
|
import { withDeterministicId } from '@instructure/ui-react-utils';
|
|
32
32
|
import shallowCompare from '../utils/shallowCompare';
|
|
33
|
-
import {
|
|
33
|
+
import { allowedProps } from './props';
|
|
34
34
|
import generateStyle from './styles';
|
|
35
35
|
import generateComponentTheme from './theme';
|
|
36
36
|
|
|
@@ -231,5 +231,5 @@ let ColorPalette = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyl
|
|
|
231
231
|
})]
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
}, _ColorPalette.displayName = "ColorPalette", _ColorPalette.
|
|
234
|
+
}, _ColorPalette.displayName = "ColorPalette", _ColorPalette.allowedProps = allowedProps, _ColorPalette.componentId = 'ColorMixer.Palette', _ColorPalette)) || _class) || _class);
|
|
235
235
|
export default ColorPalette;
|
|
@@ -22,17 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
disabled: PropTypes.bool,
|
|
28
|
-
hue: PropTypes.number.isRequired,
|
|
29
|
-
color: PropTypes.object.isRequired,
|
|
30
|
-
width: PropTypes.number.isRequired,
|
|
31
|
-
height: PropTypes.number.isRequired,
|
|
32
|
-
indicatorRadius: PropTypes.number.isRequired,
|
|
33
|
-
onChange: PropTypes.func.isRequired,
|
|
34
|
-
elementRef: PropTypes.func,
|
|
35
|
-
navigationExplanationScreenReaderLabel: PropTypes.string.isRequired
|
|
36
|
-
};
|
|
37
25
|
const allowedProps = ['disabled', 'hue', 'color', 'width', 'height', 'indicatorRadius', 'onChange', 'elementRef', 'navigationExplanationScreenReaderLabel'];
|
|
38
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -28,7 +28,7 @@ import { withStyle } from '@instructure/emotion';
|
|
|
28
28
|
import shallowCompare from '../utils/shallowCompare';
|
|
29
29
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
30
30
|
import { TextInput } from '@instructure/ui-text-input';
|
|
31
|
-
import {
|
|
31
|
+
import { allowedProps } from './props';
|
|
32
32
|
import generateStyle from './styles';
|
|
33
33
|
import generateComponentTheme from './theme';
|
|
34
34
|
|
|
@@ -145,7 +145,7 @@ let RGBAInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
|
|
|
145
145
|
})]
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
}, _RGBAInput.displayName = "RGBAInput", _RGBAInput.
|
|
148
|
+
}, _RGBAInput.displayName = "RGBAInput", _RGBAInput.allowedProps = allowedProps, _RGBAInput.componentId = 'ColorMixer.RGBAInput', _RGBAInput.defaultProps = {
|
|
149
149
|
withAlpha: false
|
|
150
150
|
}, _RGBAInput)) || _class);
|
|
151
151
|
export default RGBAInput;
|
|
@@ -22,19 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
disabled: PropTypes.bool,
|
|
28
|
-
label: PropTypes.string,
|
|
29
|
-
width: PropTypes.number.isRequired,
|
|
30
|
-
value: PropTypes.object.isRequired,
|
|
31
|
-
onChange: PropTypes.func.isRequired,
|
|
32
|
-
withAlpha: PropTypes.bool,
|
|
33
|
-
rgbRedInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
34
|
-
rgbGreenInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
35
|
-
rgbBlueInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
36
|
-
rgbAlphaInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
37
|
-
elementRef: PropTypes.func
|
|
38
|
-
};
|
|
39
25
|
const allowedProps = ['disabled', 'label', 'width', 'value', 'onChange', 'withAlpha', 'rgbRedInputScreenReaderLabel', 'rgbGreenInputScreenReaderLabel', 'rgbBlueInputScreenReaderLabel', 'rgbAlphaInputScreenReaderLabel', 'elementRef'];
|
|
40
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -27,7 +27,7 @@ import { Component } from 'react';
|
|
|
27
27
|
import { addEventListener } from '@instructure/ui-dom-utils';
|
|
28
28
|
import { withStyle } from '@instructure/emotion';
|
|
29
29
|
import { View } from '@instructure/ui-view';
|
|
30
|
-
import {
|
|
30
|
+
import { allowedProps } from './props';
|
|
31
31
|
import generateStyle from './styles';
|
|
32
32
|
import generateComponentTheme from './theme';
|
|
33
33
|
|
|
@@ -189,7 +189,7 @@ let Slider = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_cla
|
|
|
189
189
|
})]
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
}, _Slider.displayName = "Slider", _Slider.
|
|
192
|
+
}, _Slider.displayName = "Slider", _Slider.allowedProps = allowedProps, _Slider.componentId = 'ColorMixer.Slider', _Slider.defaultProps = {
|
|
193
193
|
isColorSlider: false
|
|
194
194
|
}, _Slider)) || _class);
|
|
195
195
|
export default Slider;
|
|
@@ -22,18 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
isColorSlider: PropTypes.bool,
|
|
28
|
-
onChange: PropTypes.func.isRequired,
|
|
29
|
-
width: PropTypes.number.isRequired,
|
|
30
|
-
value: PropTypes.number.isRequired,
|
|
31
|
-
minValue: PropTypes.number.isRequired,
|
|
32
|
-
maxValue: PropTypes.number.isRequired,
|
|
33
|
-
indicatorRadius: PropTypes.number.isRequired,
|
|
34
|
-
height: PropTypes.number.isRequired,
|
|
35
|
-
elementRef: PropTypes.func,
|
|
36
|
-
navigationExplanationScreenReaderLabel: PropTypes.string.isRequired
|
|
37
|
-
};
|
|
38
25
|
const allowedProps = ['isColorSlider', 'onChange', 'width', 'value', 'minValue', 'maxValue', 'indicatorRadius', 'height', 'elementRef', 'navigationExplanationScreenReaderLabel'];
|
|
39
|
-
export {
|
|
26
|
+
export { allowedProps };
|
package/es/ColorMixer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec,
|
|
1
|
+
var _dec, _class, _ColorMixer;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -26,14 +26,13 @@ var _dec, _dec2, _class, _ColorMixer;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyle } from '@instructure/emotion';
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
|
-
import { testable } from '@instructure/ui-testable';
|
|
30
29
|
import { isValid } from '@instructure/ui-color-utils';
|
|
31
30
|
import conversions from '@instructure/ui-color-utils';
|
|
32
31
|
import { logWarn as warn } from '@instructure/console';
|
|
33
32
|
import ColorPalette from './ColorPalette';
|
|
34
33
|
import Slider from './Slider';
|
|
35
34
|
import RGBAInput from './RGBAInput';
|
|
36
|
-
import {
|
|
35
|
+
import { allowedProps } from './props';
|
|
37
36
|
import generateStyle from './styles';
|
|
38
37
|
|
|
39
38
|
/**
|
|
@@ -42,7 +41,7 @@ category: components
|
|
|
42
41
|
---
|
|
43
42
|
**/
|
|
44
43
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
45
|
-
let ColorMixer = (_dec = withStyle(generateStyle, null),
|
|
44
|
+
let ColorMixer = (_dec = withStyle(generateStyle, null), _dec(_class = (_ColorMixer = class ColorMixer extends Component {
|
|
46
45
|
constructor(props) {
|
|
47
46
|
super(props);
|
|
48
47
|
this.ref = null;
|
|
@@ -122,6 +121,7 @@ let ColorMixer = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _de
|
|
|
122
121
|
"aria-disabled": disabled,
|
|
123
122
|
ref: this.handleRef,
|
|
124
123
|
css: styles === null || styles === void 0 ? void 0 : styles.colorMixer,
|
|
124
|
+
"data-cid": "ColorMixer",
|
|
125
125
|
children: [_jsxs("span", {
|
|
126
126
|
css: styles === null || styles === void 0 ? void 0 : styles.sliderAndPaletteContainer,
|
|
127
127
|
"aria-label": `${conversions.colorToHex8({
|
|
@@ -209,10 +209,10 @@ let ColorMixer = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _de
|
|
|
209
209
|
})]
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
}, _ColorMixer.displayName = "ColorMixer", _ColorMixer.
|
|
212
|
+
}, _ColorMixer.displayName = "ColorMixer", _ColorMixer.allowedProps = allowedProps, _ColorMixer.componentId = 'ColorMixer', _ColorMixer.defaultProps = {
|
|
213
213
|
value: '#000',
|
|
214
214
|
withAlpha: false,
|
|
215
215
|
disabled: false
|
|
216
|
-
}, _ColorMixer)) || _class)
|
|
216
|
+
}, _ColorMixer)) || _class);
|
|
217
217
|
export { ColorMixer };
|
|
218
218
|
export default ColorMixer;
|
package/es/ColorMixer/props.js
CHANGED
|
@@ -22,20 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
disabled: PropTypes.bool,
|
|
28
|
-
elementRef: PropTypes.func,
|
|
29
|
-
withAlpha: PropTypes.bool,
|
|
30
|
-
value: PropTypes.string,
|
|
31
|
-
onChange: PropTypes.func.isRequired,
|
|
32
|
-
rgbRedInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
33
|
-
rgbGreenInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
34
|
-
rgbBlueInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
35
|
-
rgbAlphaInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
36
|
-
colorSliderNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired,
|
|
37
|
-
alphaSliderNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired,
|
|
38
|
-
colorPaletteNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired
|
|
39
|
-
};
|
|
40
25
|
const allowedProps = ['disabled', 'elementRef', 'value', 'onChange', 'withAlpha', 'rgbRedInputScreenReaderLabel', 'rgbGreenInputScreenReaderLabel', 'rgbBlueInputScreenReaderLabel', 'rgbAlphaInputScreenReaderLabel', 'colorSliderNavigationExplanationScreenReaderLabel', 'alphaSliderNavigationExplanationScreenReaderLabel', 'colorPaletteNavigationExplanationScreenReaderLabel'];
|
|
41
|
-
export {
|
|
26
|
+
export { allowedProps };
|
package/es/ColorPicker/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec,
|
|
1
|
+
var _dec, _class, _ColorPicker, _IconTroubleLine, _IconWarningLine, _IconCheckDarkLine;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -27,7 +27,6 @@ import { Component } from 'react';
|
|
|
27
27
|
import { withStyle, InstUISettingsProvider } from '@instructure/emotion';
|
|
28
28
|
import { warn, error } from '@instructure/console';
|
|
29
29
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
30
|
-
import { testable } from '@instructure/ui-testable';
|
|
31
30
|
import { isValid, contrast as getContrast } from '@instructure/ui-color-utils';
|
|
32
31
|
import conversions from '@instructure/ui-color-utils';
|
|
33
32
|
import { TextInput } from '@instructure/ui-text-input';
|
|
@@ -41,7 +40,7 @@ import ColorContrast from '../ColorContrast';
|
|
|
41
40
|
import ColorPreset from '../ColorPreset';
|
|
42
41
|
import generateStyle from './styles';
|
|
43
42
|
import generateComponentTheme from './theme';
|
|
44
|
-
import {
|
|
43
|
+
import { allowedProps } from './props';
|
|
45
44
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
46
45
|
const acceptedCharactersForHEX = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', null];
|
|
47
46
|
|
|
@@ -50,7 +49,7 @@ const acceptedCharactersForHEX = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '
|
|
|
50
49
|
category: components
|
|
51
50
|
---
|
|
52
51
|
**/
|
|
53
|
-
let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
52
|
+
let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ColorPicker = class ColorPicker extends Component {
|
|
54
53
|
constructor(props) {
|
|
55
54
|
super(props);
|
|
56
55
|
this.ref = null;
|
|
@@ -444,6 +443,7 @@ let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
444
443
|
...omitProps(this.props, ColorPicker.allowedProps),
|
|
445
444
|
css: (_this$props$styles6 = this.props.styles) === null || _this$props$styles6 === void 0 ? void 0 : _this$props$styles6.colorPicker,
|
|
446
445
|
ref: this.handleRef,
|
|
446
|
+
"data-cid": "ColorPicker",
|
|
447
447
|
children: [_jsx(TextInput, {
|
|
448
448
|
id: id,
|
|
449
449
|
isRequired: isRequired,
|
|
@@ -476,11 +476,11 @@ let ColorPicker = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
476
476
|
})]
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
|
-
}, _ColorPicker.displayName = "ColorPicker", _ColorPicker.
|
|
479
|
+
}, _ColorPicker.displayName = "ColorPicker", _ColorPicker.allowedProps = allowedProps, _ColorPicker.componentId = 'ColorPicker', _ColorPicker.defaultProps = {
|
|
480
480
|
disabled: false,
|
|
481
481
|
withAlpha: false,
|
|
482
482
|
width: '22.5rem',
|
|
483
483
|
popoverMaxHeight: '100vh'
|
|
484
|
-
}, _ColorPicker)) || _class)
|
|
484
|
+
}, _ColorPicker)) || _class);
|
|
485
485
|
export { ColorPicker };
|
|
486
486
|
export default ColorPicker;
|
package/es/ColorPicker/props.js
CHANGED
|
@@ -22,65 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
checkContrast: PropTypes.shape({
|
|
28
|
-
isStrict: PropTypes.bool,
|
|
29
|
-
contrastStrength: PropTypes.oneOf(['min', 'mid', 'max']),
|
|
30
|
-
contrastAgainst: PropTypes.string,
|
|
31
|
-
renderContrastSuccessMessage: PropTypes.func,
|
|
32
|
-
renderContrastErrorMessage: PropTypes.func
|
|
33
|
-
}),
|
|
34
|
-
colorMixerSettings: PropTypes.shape({
|
|
35
|
-
popoverAddButtonLabel: PropTypes.string.isRequired,
|
|
36
|
-
popoverCloseButtonLabel: PropTypes.string.isRequired,
|
|
37
|
-
colorMixer: PropTypes.shape({
|
|
38
|
-
withAlpha: PropTypes.bool,
|
|
39
|
-
rgbRedInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
40
|
-
rgbGreenInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
41
|
-
rgbBlueInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
42
|
-
rgbAlphaInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
43
|
-
colorSliderNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired,
|
|
44
|
-
alphaSliderNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired,
|
|
45
|
-
colorPaletteNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired
|
|
46
|
-
}),
|
|
47
|
-
colorPreset: PropTypes.shape({
|
|
48
|
-
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
49
|
-
label: PropTypes.string.isRequired
|
|
50
|
-
}),
|
|
51
|
-
colorContrast: PropTypes.shape({
|
|
52
|
-
firstColor: PropTypes.string.isRequired,
|
|
53
|
-
label: PropTypes.string.isRequired,
|
|
54
|
-
successLabel: PropTypes.string.isRequired,
|
|
55
|
-
failureLabel: PropTypes.string.isRequired,
|
|
56
|
-
normalTextLabel: PropTypes.string.isRequired,
|
|
57
|
-
largeTextLabel: PropTypes.string.isRequired,
|
|
58
|
-
graphicsTextLabel: PropTypes.string.isRequired,
|
|
59
|
-
firstColorLabel: PropTypes.string.isRequired,
|
|
60
|
-
secondColorLabel: PropTypes.string.isRequired,
|
|
61
|
-
onContrastChange: PropTypes.func
|
|
62
|
-
})
|
|
63
|
-
}),
|
|
64
|
-
children: PropTypes.func,
|
|
65
|
-
disabled: PropTypes.bool,
|
|
66
|
-
elementRef: PropTypes.func,
|
|
67
|
-
isRequired: PropTypes.bool,
|
|
68
|
-
label: PropTypes.node.isRequired,
|
|
69
|
-
onChange: PropTypes.func,
|
|
70
|
-
placeholderText: PropTypes.string,
|
|
71
|
-
popoverScreenReaderLabel: PropTypes.string,
|
|
72
|
-
popoverButtonScreenReaderLabel: PropTypes.string,
|
|
73
|
-
popoverMaxHeight: PropTypes.string,
|
|
74
|
-
renderInvalidColorMessage: PropTypes.func,
|
|
75
|
-
renderIsRequiredMessage: PropTypes.func,
|
|
76
|
-
renderMessages: PropTypes.func,
|
|
77
|
-
tooltip: PropTypes.node,
|
|
78
|
-
id: PropTypes.string,
|
|
79
|
-
value: PropTypes.string,
|
|
80
|
-
width: PropTypes.string,
|
|
81
|
-
withAlpha: PropTypes.bool,
|
|
82
|
-
margin: PropTypes.string,
|
|
83
|
-
inputRef: PropTypes.func
|
|
84
|
-
};
|
|
85
25
|
const allowedProps = ['id', 'checkContrast', 'colorMixerSettings', 'children', 'disabled', 'elementRef', 'isRequired', 'label', 'onChange', 'placeholderText', 'popoverScreenReaderLabel', 'popoverButtonScreenReaderLabel', 'popoverMaxHeight', 'renderInvalidColorMessage', 'renderIsRequiredMessage', 'renderMessages', 'tooltip', 'value', 'width', 'withAlpha', 'margin', 'inputRef'];
|
|
86
|
-
export {
|
|
26
|
+
export { allowedProps };
|
package/es/ColorPreset/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec,
|
|
1
|
+
var _dec, _class, _ColorPreset, _IconAddLine;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -26,7 +26,6 @@ var _dec, _dec2, _class, _ColorPreset, _IconAddLine;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { withStyle } from '@instructure/emotion';
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
|
-
import { testable } from '@instructure/ui-testable';
|
|
30
29
|
import conversions from '@instructure/ui-color-utils';
|
|
31
30
|
import { IconButton, Button } from '@instructure/ui-buttons';
|
|
32
31
|
import { View } from '@instructure/ui-view';
|
|
@@ -40,7 +39,7 @@ import { ColorMixer } from '../ColorMixer';
|
|
|
40
39
|
import { ColorContrast } from '../ColorContrast';
|
|
41
40
|
import generateStyle from './styles';
|
|
42
41
|
import generateComponentTheme from './theme';
|
|
43
|
-
import {
|
|
42
|
+
import { allowedProps } from './props';
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
45
|
---
|
|
@@ -48,7 +47,7 @@ category: components
|
|
|
48
47
|
---
|
|
49
48
|
**/
|
|
50
49
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
51
|
-
let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
50
|
+
let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_ColorPreset = class ColorPreset extends Component {
|
|
52
51
|
constructor(props) {
|
|
53
52
|
super(props);
|
|
54
53
|
this.ref = null;
|
|
@@ -273,6 +272,7 @@ let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
273
272
|
...omitProps(this.props, ColorPreset.allowedProps),
|
|
274
273
|
ref: this.handleRef,
|
|
275
274
|
css: styles === null || styles === void 0 ? void 0 : styles.colorPreset,
|
|
275
|
+
"data-cid": "ColorPreset",
|
|
276
276
|
children: [label && _jsx("div", {
|
|
277
277
|
css: styles === null || styles === void 0 ? void 0 : styles.label,
|
|
278
278
|
children: _jsx(Text, {
|
|
@@ -286,8 +286,8 @@ let ColorPreset = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
|
|
|
286
286
|
})]
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
}, _ColorPreset.displayName = "ColorPreset", _ColorPreset.
|
|
289
|
+
}, _ColorPreset.displayName = "ColorPreset", _ColorPreset.allowedProps = allowedProps, _ColorPreset.componentId = 'ColorPreset', _ColorPreset.defaultProps = {
|
|
290
290
|
disabled: false
|
|
291
|
-
}, _ColorPreset)) || _class)
|
|
291
|
+
}, _ColorPreset)) || _class);
|
|
292
292
|
export { ColorPreset };
|
|
293
293
|
export default ColorPreset;
|
package/es/ColorPreset/props.js
CHANGED
|
@@ -22,46 +22,5 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import PropTypes from 'prop-types';
|
|
26
|
-
const propTypes = {
|
|
27
|
-
colors: PropTypes.array.isRequired,
|
|
28
|
-
onSelect: PropTypes.func.isRequired,
|
|
29
|
-
selected: PropTypes.string,
|
|
30
|
-
disabled: PropTypes.bool,
|
|
31
|
-
elementRef: PropTypes.func,
|
|
32
|
-
label: PropTypes.string,
|
|
33
|
-
popoverScreenReaderLabel: PropTypes.string,
|
|
34
|
-
colorScreenReaderLabel: PropTypes.func,
|
|
35
|
-
colorMixerSettings: PropTypes.shape({
|
|
36
|
-
addNewPresetButtonScreenReaderLabel: PropTypes.string.isRequired,
|
|
37
|
-
selectColorLabel: PropTypes.string.isRequired,
|
|
38
|
-
removeColorLabel: PropTypes.string.isRequired,
|
|
39
|
-
onPresetChange: PropTypes.func,
|
|
40
|
-
popoverAddButtonLabel: PropTypes.string.isRequired,
|
|
41
|
-
popoverCloseButtonLabel: PropTypes.string.isRequired,
|
|
42
|
-
maxHeight: PropTypes.string,
|
|
43
|
-
colorMixer: PropTypes.shape({
|
|
44
|
-
withAlpha: PropTypes.bool,
|
|
45
|
-
rgbRedInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
46
|
-
rgbGreenInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
47
|
-
rgbBlueInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
48
|
-
rgbAlphaInputScreenReaderLabel: PropTypes.string.isRequired,
|
|
49
|
-
colorSliderNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired,
|
|
50
|
-
alphaSliderNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired,
|
|
51
|
-
colorPaletteNavigationExplanationScreenReaderLabel: PropTypes.string.isRequired
|
|
52
|
-
}).isRequired,
|
|
53
|
-
colorContrast: PropTypes.shape({
|
|
54
|
-
firstColor: PropTypes.string.isRequired,
|
|
55
|
-
label: PropTypes.string.isRequired,
|
|
56
|
-
successLabel: PropTypes.string.isRequired,
|
|
57
|
-
failureLabel: PropTypes.string.isRequired,
|
|
58
|
-
normalTextLabel: PropTypes.string.isRequired,
|
|
59
|
-
largeTextLabel: PropTypes.string.isRequired,
|
|
60
|
-
graphicsTextLabel: PropTypes.string.isRequired,
|
|
61
|
-
firstColorLabel: PropTypes.string.isRequired,
|
|
62
|
-
secondColorLabel: PropTypes.string.isRequired
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
|
-
};
|
|
66
25
|
const allowedProps = ['colors', 'disabled', 'elementRef', 'label', 'colorMixerSettings', 'onSelect', 'popoverScreenReaderLabel', 'selected', 'colorScreenReaderLabel'];
|
|
67
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.ColorContrast = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
10
|
-
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
11
10
|
var _console = require("@instructure/console");
|
|
12
11
|
var _contrastWithAlpha = require("@instructure/ui-color-utils/lib/contrastWithAlpha.js");
|
|
13
12
|
var _validateContrast = require("@instructure/ui-color-utils/lib/validateContrast.js");
|
|
@@ -19,7 +18,7 @@ var _props = require("./props");
|
|
|
19
18
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
20
19
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
21
20
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
22
|
-
var _dec,
|
|
21
|
+
var _dec, _class, _ColorContrast;
|
|
23
22
|
/*
|
|
24
23
|
* The MIT License (MIT)
|
|
25
24
|
*
|
|
@@ -48,7 +47,7 @@ var _dec, _dec2, _class, _ColorContrast;
|
|
|
48
47
|
category: components
|
|
49
48
|
---
|
|
50
49
|
**/
|
|
51
|
-
let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
50
|
+
let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_ColorContrast = class ColorContrast extends _react.Component {
|
|
52
51
|
constructor(props) {
|
|
53
52
|
super(props);
|
|
54
53
|
this.ref = null;
|
|
@@ -177,6 +176,7 @@ let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_sty
|
|
|
177
176
|
...(0, _omitProps.omitProps)(this.props, ColorContrast.allowedProps),
|
|
178
177
|
ref: this.handleRef,
|
|
179
178
|
css: styles === null || styles === void 0 ? void 0 : styles.colorContrast,
|
|
179
|
+
"data-cid": "ColorContrast",
|
|
180
180
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
181
181
|
css: styles === null || styles === void 0 ? void 0 : styles.label,
|
|
182
182
|
children: (0, _jsxRuntime.jsx)(_Text.Text, {
|
|
@@ -190,8 +190,8 @@ let ColorContrast = exports.ColorContrast = (_dec = (0, _emotion.withStyle)(_sty
|
|
|
190
190
|
}), this.renderPreview(), this.renderStatus(isValidNormalText, normalTextLabel), this.renderStatus(isValidLargeText, largeTextLabel), this.renderStatus(isValidGraphicsText, graphicsTextLabel)]
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
}, _ColorContrast.displayName = "ColorContrast", _ColorContrast.
|
|
193
|
+
}, _ColorContrast.displayName = "ColorContrast", _ColorContrast.allowedProps = _props.allowedProps, _ColorContrast.componentId = 'ColorContrast', _ColorContrast.defaultProps = {
|
|
194
194
|
withoutColorPreview: false,
|
|
195
195
|
validationLevel: 'AA'
|
|
196
|
-
}, _ColorContrast)) || _class)
|
|
196
|
+
}, _ColorContrast)) || _class);
|
|
197
197
|
var _default = exports.default = ColorContrast;
|