@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
|
@@ -6,29 +6,6 @@ category: components
|
|
|
6
6
|
---
|
|
7
7
|
**/
|
|
8
8
|
declare class ColorContrast extends Component<ColorContrastProps, ColorContrastState> {
|
|
9
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
10
|
-
elementRef?: (element: Element | null) => void;
|
|
11
|
-
failureLabel: string;
|
|
12
|
-
firstColor: string;
|
|
13
|
-
firstColorLabel?: string;
|
|
14
|
-
graphicsTextLabel: string;
|
|
15
|
-
label: string;
|
|
16
|
-
largeTextLabel: string;
|
|
17
|
-
normalTextLabel: string;
|
|
18
|
-
secondColor: string;
|
|
19
|
-
secondColorLabel?: string;
|
|
20
|
-
successLabel: string;
|
|
21
|
-
withoutColorPreview?: boolean;
|
|
22
|
-
onContrastChange?: (conrastData: {
|
|
23
|
-
contrast: number;
|
|
24
|
-
isValidNormalText: boolean;
|
|
25
|
-
isValidLargeText: boolean;
|
|
26
|
-
isValidGraphicsText: boolean;
|
|
27
|
-
firstColor: string;
|
|
28
|
-
secondColor: string;
|
|
29
|
-
}) => null;
|
|
30
|
-
validationLevel?: "AA" | "AAA";
|
|
31
|
-
}>;
|
|
32
9
|
static allowedProps: readonly (keyof {
|
|
33
10
|
elementRef?: (element: Element | null) => void;
|
|
34
11
|
failureLabel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorContrast/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorContrast/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAgBjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAKrE;;;;GAIG;AACH,cACM,aAAc,SAAQ,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAC3E,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,mBAAkB;IAE7C,MAAM,CAAC,YAAY;;;MAGlB;gBAEW,KAAK,EAAE,kBAAkB;IAWrC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAO;IAEjC,SAAS,GAAI,IAAI,cAAc,GAAG,IAAI,UAQrC;IAED,iBAAiB;IAKjB,kBAAkB,CAAC,SAAS,EAAE,kBAAkB;IAoBhD,YAAY,GAAI,MAAM,OAAO,EAAE,aAAa,MAAM,sDAgBjD;IAED,oBAAoB,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,sDAanD;IAED,aAAa;IAmCb,SAAS;;;;;;IAaT,MAAM;CAoCP;AAED,OAAO,EAAE,aAAa,EAAE,CAAA;AACxB,eAAe,aAAa,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes,
|
|
2
|
+
import type { OtherHTMLAttributes, ColorContrastTheme } from '@instructure/shared-types';
|
|
3
3
|
type ColorContrastOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Provides a reference to the component's underlying html element.
|
|
@@ -97,7 +97,6 @@ type PropKeys = keyof ColorContrastOwnProps;
|
|
|
97
97
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
98
98
|
type ColorContrastProps = ColorContrastOwnProps & WithStyleProps<ColorContrastTheme, ColorContrastStyle> & OtherHTMLAttributes<ColorContrastOwnProps>;
|
|
99
99
|
type ColorContrastStyle = ComponentStyle<'colorContrast' | 'successDescription' | 'failureDescription' | 'statusWrapper' | 'colorIndicator' | 'statusIndicatorWrapper' | 'colorIndicatorLabel' | 'pickedColorHex' | 'colorPreview' | 'firstColorPreview' | 'secondColorPreview' | 'label' | 'onContrastChange' | 'validationLevel'>;
|
|
100
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
101
100
|
declare const allowedProps: AllowedPropKeys;
|
|
102
101
|
type ColorContrastState = {
|
|
103
102
|
contrast: number;
|
|
@@ -106,5 +105,5 @@ type ColorContrastState = {
|
|
|
106
105
|
isValidGraphicsText: boolean;
|
|
107
106
|
};
|
|
108
107
|
export type { ColorContrastProps, ColorContrastStyle, ColorContrastState };
|
|
109
|
-
export {
|
|
108
|
+
export { allowedProps };
|
|
110
109
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorContrast/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorContrast/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,2BAA2B,CAAA;AAElC,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,eAAe,E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mBAAmB,EAAE,OAAO,CAAA;CAC7B,CAAA;AACD,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -6,11 +6,6 @@ category: components
|
|
|
6
6
|
---
|
|
7
7
|
**/
|
|
8
8
|
declare class ColorIndicator extends Component<ColorIndicatorProps> {
|
|
9
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
10
|
-
color?: string;
|
|
11
|
-
elementRef?: (element: Element | null) => void;
|
|
12
|
-
shape?: "circle" | "rectangle";
|
|
13
|
-
}>;
|
|
14
9
|
static allowedProps: readonly (keyof {
|
|
15
10
|
color?: string;
|
|
16
11
|
elementRef?: (element: Element | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorIndicator/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorIndicator/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD;;;;GAIG;AACH,cACM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,YAAY;;;;SAAe;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,oBAAmB;IAE9C,MAAM,CAAC,YAAY;;MAElB;IAED,GAAG,EAAE,cAAc,GAAG,IAAI,CAAO;IAEjC,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,GAAI,IAAI,cAAc,GAAG,IAAI,UAQrC;IAED,MAAM;CAYP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes,
|
|
2
|
+
import type { OtherHTMLAttributes, ColorIndicatorTheme } from '@instructure/shared-types';
|
|
3
3
|
type ColorIndicatorOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Valid CSS color string. E.g.: #555, rgba(55,55,55,1). It can accept empty strings
|
|
@@ -18,8 +18,7 @@ type PropKeys = keyof ColorIndicatorOwnProps;
|
|
|
18
18
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
19
19
|
type ColorIndicatorProps = ColorIndicatorOwnProps & WithStyleProps<ColorIndicatorTheme, ColorIndicatorStyle> & OtherHTMLAttributes<ColorIndicatorOwnProps>;
|
|
20
20
|
type ColorIndicatorStyle = ComponentStyle<'colorIndicator'>;
|
|
21
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
22
21
|
declare const allowedProps: AllowedPropKeys;
|
|
23
22
|
export type { ColorIndicatorProps, ColorIndicatorStyle };
|
|
24
|
-
export {
|
|
23
|
+
export { allowedProps };
|
|
25
24
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorIndicator/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorIndicator/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAElC,KAAK,sBAAsB,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAC/B,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,sBAAsB,CAAA;AAE5C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,mBAAmB,GAAG,sBAAsB,GAC/C,cAAc,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GACxD,mBAAmB,CAAC,sBAAsB,CAAC,CAAA;AAE7C,KAAK,mBAAmB,GAAG,cAAc,CAAC,gBAAgB,CAAC,CAAA;AAC3D,QAAA,MAAM,YAAY,EAAE,eAAkD,CAAA;AAEtE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -8,17 +8,6 @@ private: true
|
|
|
8
8
|
---
|
|
9
9
|
**/
|
|
10
10
|
declare class ColorPalette extends Component<ColorPaletteProps, ColorPaletteState> {
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
hue: number;
|
|
14
|
-
color: HSVType;
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
indicatorRadius: number;
|
|
18
|
-
onChange: (rgb: HSVType) => void;
|
|
19
|
-
elementRef?: (element: Element | null) => void;
|
|
20
|
-
navigationExplanationScreenReaderLabel: string;
|
|
21
|
-
}>;
|
|
22
11
|
static allowedProps: readonly (keyof {
|
|
23
12
|
disabled?: boolean;
|
|
24
13
|
hue: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/ColorPalette/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAG1D,OAAO,KAAK,EAAE,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GAAG,EAAE,OAAO;;;;IAOlC,sBAAsB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC;IAuBpE,aAAa,aAEZ;IAED,oBAAoB;IAKpB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;IAMlD,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;;;;IAkBpC,YAAY,GAAI,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,UAgB5D;IAED,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC;IAmClD,MAAM;CAgCP;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes,
|
|
2
|
+
import type { OtherHTMLAttributes, ColorMixerPaletteTheme } from '@instructure/shared-types';
|
|
3
3
|
import type { HSVType } from '@instructure/ui-color-utils';
|
|
4
4
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
5
5
|
type ColorPaletteOwnProps = {
|
|
@@ -23,8 +23,7 @@ type PropKeys = keyof ColorPaletteOwnProps;
|
|
|
23
23
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
24
24
|
type ColorPaletteProps = ColorPaletteOwnProps & WithStyleProps<ColorMixerPaletteTheme, ColorPaletteStyle> & OtherHTMLAttributes<ColorPaletteOwnProps> & WithDeterministicIdProps;
|
|
25
25
|
type ColorPaletteStyle = ComponentStyle<'ColorPalette' | 'indicator' | 'palette' | 'disabledOverlay' | 'paletteOffset'>;
|
|
26
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
27
26
|
declare const allowedProps: AllowedPropKeys;
|
|
28
27
|
export type { ColorPaletteProps, ColorPaletteState, ColorPaletteStyle };
|
|
29
|
-
export {
|
|
28
|
+
export { allowedProps };
|
|
30
29
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/ColorPalette/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/ColorPalette/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAE3E,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,OAAO,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAA;IAChC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,sCAAsC,EAAE,MAAM,CAAA;CAC/C,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACxC,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,oBAAoB,CAAA;AAE1C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,iBAAiB,GAAG,oBAAoB,GAC3C,cAAc,CAAC,sBAAsB,EAAE,iBAAiB,CAAC,GACzD,mBAAmB,CAAC,oBAAoB,CAAC,GACzC,wBAAwB,CAAA;AAE1B,KAAK,iBAAiB,GAAG,cAAc,CACrC,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,iBAAiB,GAAG,eAAe,CAC/E,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAUnB,CAAA;AAED,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;AACvE,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -6,19 +6,6 @@ private: true
|
|
|
6
6
|
---
|
|
7
7
|
**/
|
|
8
8
|
declare class RGBAInput extends Component<RGBAInputProps, RGBAInputState> {
|
|
9
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
label?: string;
|
|
12
|
-
width: number;
|
|
13
|
-
value: import("@instructure/ui-color-utils").RGBAType;
|
|
14
|
-
onChange: (rgba: import("@instructure/ui-color-utils").RGBAType) => void;
|
|
15
|
-
withAlpha?: boolean;
|
|
16
|
-
rgbRedInputScreenReaderLabel: string;
|
|
17
|
-
rgbGreenInputScreenReaderLabel: string;
|
|
18
|
-
rgbBlueInputScreenReaderLabel: string;
|
|
19
|
-
rgbAlphaInputScreenReaderLabel: string;
|
|
20
|
-
elementRef?: (element: Element | null) => void;
|
|
21
|
-
}>;
|
|
22
9
|
static allowedProps: readonly (keyof {
|
|
23
10
|
disabled?: boolean;
|
|
24
11
|
label?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/RGBAInput/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7D;;;;GAIG;AACH,cACM,SAAU,SAAQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAC/D,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/RGBAInput/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAK7D;;;;GAIG;AACH,cACM,SAAU,SAAQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAC/D,MAAM,CAAC,YAAY;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,0BAAyB;IAEpD,MAAM,CAAC,YAAY;;MAElB;gBAEW,KAAK,EAAE,cAAc;IAOjC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAO;IAEjC,SAAS,GAAI,IAAI,cAAc,GAAG,IAAI,UAQrC;IAED,iBAAiB;IAIjB,kBAAkB,CAAC,SAAS,EAAE,cAAc;IAY5C,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC;IAajE,MAAM;CAmEP;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes,
|
|
2
|
+
import type { OtherHTMLAttributes, ColorMixerRGBAInputTheme } from '@instructure/shared-types';
|
|
3
3
|
import type { RGBAType } from '@instructure/ui-color-utils';
|
|
4
4
|
type RGBAInputOwnProps = {
|
|
5
5
|
disabled?: boolean;
|
|
@@ -21,8 +21,7 @@ type PropKeys = keyof RGBAInputOwnProps;
|
|
|
21
21
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
22
22
|
type RGBAInputProps = RGBAInputOwnProps & WithStyleProps<ColorMixerRGBAInputTheme, RGBAInputStyle> & OtherHTMLAttributes<RGBAInputOwnProps>;
|
|
23
23
|
type RGBAInputStyle = ComponentStyle<'RGBAInput' | 'label' | 'inputContainer' | 'rgbInput' | 'aInput'>;
|
|
24
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
25
24
|
declare const allowedProps: AllowedPropKeys;
|
|
26
25
|
export type { RGBAInputProps, RGBAInputState, RGBAInputStyle };
|
|
27
|
-
export {
|
|
26
|
+
export { allowedProps };
|
|
28
27
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/RGBAInput/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/RGBAInput/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAE3D,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,QAAQ,CAAA;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,4BAA4B,EAAE,MAAM,CAAA;IACpC,8BAA8B,EAAE,MAAM,CAAA;IACtC,6BAA6B,EAAE,MAAM,CAAA;IACrC,8BAA8B,EAAE,MAAM,CAAA;IACtC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,QAAQ,CAAA;CAChB,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,iBAAiB,CAAA;AAEvC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,cAAc,GAAG,iBAAiB,GACrC,cAAc,CAAC,wBAAwB,EAAE,cAAc,CAAC,GACxD,mBAAmB,CAAC,iBAAiB,CAAC,CAAA;AAExC,KAAK,cAAc,GAAG,cAAc,CAClC,WAAW,GAAG,OAAO,GAAG,gBAAgB,GAAG,UAAU,GAAG,QAAQ,CACjE,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAYnB,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -7,18 +7,6 @@ private: true
|
|
|
7
7
|
---
|
|
8
8
|
**/
|
|
9
9
|
declare class Slider extends Component<SliderProps> {
|
|
10
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
11
|
-
isColorSlider?: boolean;
|
|
12
|
-
onChange: (position: number) => void;
|
|
13
|
-
width: number;
|
|
14
|
-
value: number;
|
|
15
|
-
minValue: number;
|
|
16
|
-
maxValue: number;
|
|
17
|
-
indicatorRadius: number;
|
|
18
|
-
height: number;
|
|
19
|
-
elementRef?: (element: Element | null) => void;
|
|
20
|
-
navigationExplanationScreenReaderLabel: string;
|
|
21
|
-
}>;
|
|
22
10
|
static allowedProps: readonly (keyof {
|
|
23
11
|
isColorSlider?: boolean;
|
|
24
12
|
onChange: (position: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/Slider/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,WAAW,EAAE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ED,2BAA2B,GAAI,UAAU,MAAM,YAY9C;IAED,aAAa,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC;IAkBlD,MAAM;CAqCP;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes,
|
|
2
|
+
import type { OtherHTMLAttributes, ColorMixerSliderTheme } from '@instructure/shared-types';
|
|
3
3
|
type SliderOwnProps = {
|
|
4
4
|
isColorSlider?: boolean;
|
|
5
5
|
onChange: (position: number) => void;
|
|
@@ -19,8 +19,7 @@ type SliderStyleProps = {
|
|
|
19
19
|
sliderPositionFromValue: number;
|
|
20
20
|
};
|
|
21
21
|
type SliderStyle = ComponentStyle<'colorSlider' | 'indicator' | 'slider' | 'sliderBackground' | 'disabledOverlay'>;
|
|
22
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
23
22
|
declare const allowedProps: AllowedPropKeys;
|
|
24
23
|
export type { SliderProps, SliderStyle, SliderStyleProps };
|
|
25
|
-
export {
|
|
24
|
+
export { allowedProps };
|
|
26
25
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/Slider/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/ColorMixer/Slider/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,2BAA2B,CAAA;AAElC,KAAK,cAAc,GAAG;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,sCAAsC,EAAE,MAAM,CAAA;CAC/C,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,cAAc,CAAA;AAEpC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,WAAW,GAAG,cAAc,GAC/B,cAAc,CAAC,qBAAqB,EAAE,WAAW,CAAC,GAClD,mBAAmB,CAAC,cAAc,CAAC,CAAA;AAErC,KAAK,gBAAgB,GAAG;IACtB,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA;AAED,KAAK,WAAW,GAAG,cAAc,CAC7B,aAAa,GACb,WAAW,GACX,QAAQ,GACR,kBAAkB,GAClB,iBAAiB,CACpB,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAWnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -6,20 +6,6 @@ category: components
|
|
|
6
6
|
---
|
|
7
7
|
**/
|
|
8
8
|
declare class ColorMixer extends Component<ColorMixerProps, ColorMixerState> {
|
|
9
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
elementRef?: (element: Element | null) => void;
|
|
12
|
-
onChange: (hex: string) => void;
|
|
13
|
-
value?: string;
|
|
14
|
-
withAlpha?: boolean;
|
|
15
|
-
rgbRedInputScreenReaderLabel: string;
|
|
16
|
-
rgbGreenInputScreenReaderLabel: string;
|
|
17
|
-
rgbBlueInputScreenReaderLabel: string;
|
|
18
|
-
rgbAlphaInputScreenReaderLabel: string;
|
|
19
|
-
colorSliderNavigationExplanationScreenReaderLabel: string;
|
|
20
|
-
alphaSliderNavigationExplanationScreenReaderLabel: string;
|
|
21
|
-
colorPaletteNavigationExplanationScreenReaderLabel: string;
|
|
22
|
-
}>;
|
|
23
9
|
static allowedProps: readonly (keyof {
|
|
24
10
|
disabled?: boolean;
|
|
25
11
|
elementRef?: (element: Element | null) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorMixer/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorMixer/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYjC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAI/D;;;;GAIG;AACH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAClE,MAAM,CAAC,YAAY;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;MAIlB;gBAEW,KAAK,EAAE,eAAe;IAUlC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAO;IAEjC,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,cAAc,CAAM;IAC5B,OAAO,CAAC,aAAa,CAAI;IACzB,OAAO,CAAC,sBAAsB,CAAI;IAClC,OAAO,CAAC,uBAAuB,CAAI;IAEnC,SAAS,GAAI,IAAI,cAAc,GAAG,IAAI,UAQrC;IAED,iBAAiB;IAWjB,kBAAkB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe;IAqBzE,MAAM;CAkGP;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AACrB,eAAe,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes
|
|
2
|
+
import type { OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
type ColorMixerOwnProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Makes the component uninteractable
|
|
@@ -63,8 +63,7 @@ type PropKeys = keyof ColorMixerOwnProps;
|
|
|
63
63
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
64
64
|
type ColorMixerProps = ColorMixerOwnProps & WithStyleProps<null, ColorMixerStyle> & OtherHTMLAttributes<ColorMixerOwnProps>;
|
|
65
65
|
type ColorMixerStyle = ComponentStyle<'colorMixer' | 'sliderAndPaletteContainer'>;
|
|
66
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
67
66
|
declare const allowedProps: AllowedPropKeys;
|
|
68
67
|
export type { ColorMixerProps, ColorMixerStyle, ColorMixerState };
|
|
69
|
-
export {
|
|
68
|
+
export { allowedProps };
|
|
70
69
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorMixer/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorMixer/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,KAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,4BAA4B,EAAE,MAAM,CAAA;IACpC;;OAEG;IACH,8BAA8B,EAAE,MAAM,CAAA;IACtC;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAA;IACrC;;OAEG;IACH,8BAA8B,EAAE,MAAM,CAAA;IACtC;;;OAGG;IACH,iDAAiD,EAAE,MAAM,CAAA;IACzD;;;OAGG;IACH,iDAAiD,EAAE,MAAM,CAAA;IACzD;;;OAGG;IACH,kDAAkD,EAAE,MAAM,CAAA;CAC3D,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,kBAAkB,CAAA;AAExC,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,eAAe,GAAG,kBAAkB,GACvC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,GACrC,mBAAmB,CAAC,kBAAkB,CAAC,CAAA;AAEzC,KAAK,eAAe,GAAG,cAAc,CACnC,YAAY,GAAG,2BAA2B,CAC3C,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAanB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -7,72 +7,6 @@ category: components
|
|
|
7
7
|
---
|
|
8
8
|
**/
|
|
9
9
|
declare class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
|
|
10
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
11
|
-
checkContrast?: {
|
|
12
|
-
isStrict?: boolean;
|
|
13
|
-
contrastStrength?: ContrastStrength;
|
|
14
|
-
contrastAgainst?: string;
|
|
15
|
-
renderContrastSuccessMessage?: (contrast: number, minContrast: number) => FormMessage[];
|
|
16
|
-
renderContrastErrorMessage?: (contrast: number, minContrast: number) => FormMessage[];
|
|
17
|
-
};
|
|
18
|
-
colorMixerSettings?: {
|
|
19
|
-
popoverAddButtonLabel: string;
|
|
20
|
-
popoverCloseButtonLabel: string;
|
|
21
|
-
colorMixer?: {
|
|
22
|
-
withAlpha?: boolean;
|
|
23
|
-
rgbRedInputScreenReaderLabel: string;
|
|
24
|
-
rgbGreenInputScreenReaderLabel: string;
|
|
25
|
-
rgbBlueInputScreenReaderLabel: string;
|
|
26
|
-
rgbAlphaInputScreenReaderLabel: string;
|
|
27
|
-
colorSliderNavigationExplanationScreenReaderLabel: string;
|
|
28
|
-
alphaSliderNavigationExplanationScreenReaderLabel: string;
|
|
29
|
-
colorPaletteNavigationExplanationScreenReaderLabel: string;
|
|
30
|
-
};
|
|
31
|
-
colorPreset?: {
|
|
32
|
-
colors: Array<string>;
|
|
33
|
-
label: string;
|
|
34
|
-
};
|
|
35
|
-
colorContrast?: {
|
|
36
|
-
firstColor: string;
|
|
37
|
-
label: string;
|
|
38
|
-
successLabel: string;
|
|
39
|
-
failureLabel: string;
|
|
40
|
-
normalTextLabel: string;
|
|
41
|
-
largeTextLabel: string;
|
|
42
|
-
graphicsTextLabel: string;
|
|
43
|
-
firstColorLabel: string;
|
|
44
|
-
secondColorLabel: string;
|
|
45
|
-
onContrastChange?: (conrastData: {
|
|
46
|
-
contrast: number;
|
|
47
|
-
isValidNormalText: boolean;
|
|
48
|
-
isValidLargeText: boolean;
|
|
49
|
-
isValidGraphicsText: boolean;
|
|
50
|
-
firstColor: string;
|
|
51
|
-
secondColor: string;
|
|
52
|
-
}) => null;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
children?: (value: string, onChange: (hex: string) => void, handleAdd: () => void, handleClose: () => void) => React.ReactNode;
|
|
56
|
-
disabled?: boolean;
|
|
57
|
-
elementRef?: (element: Element | null) => void;
|
|
58
|
-
isRequired?: boolean;
|
|
59
|
-
label: string;
|
|
60
|
-
onChange?: (value: string) => void;
|
|
61
|
-
placeholderText: string;
|
|
62
|
-
popoverMaxHeight?: string;
|
|
63
|
-
popoverScreenReaderLabel?: string;
|
|
64
|
-
popoverButtonScreenReaderLabel?: string;
|
|
65
|
-
renderInvalidColorMessage?: (hexCode: string) => FormMessage[];
|
|
66
|
-
renderIsRequiredMessage?: () => FormMessage[];
|
|
67
|
-
renderMessages?: (hexCode: string, isValidHex: boolean, minContrast: number, contrast?: number) => FormMessage[];
|
|
68
|
-
tooltip?: React.ReactNode;
|
|
69
|
-
id?: string;
|
|
70
|
-
value?: string;
|
|
71
|
-
width?: string;
|
|
72
|
-
withAlpha?: boolean;
|
|
73
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
74
|
-
inputRef?: (inputElement: HTMLInputElement | null) => void;
|
|
75
|
-
}>;
|
|
76
10
|
static allowedProps: readonly (keyof {
|
|
77
11
|
checkContrast?: {
|
|
78
12
|
isStrict?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAiBjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAW7D,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AA4BhB;;;;GAIG;AACH,cACM,WAAY,S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AA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FormMessage } from '@instructure/ui-form-field';
|
|
3
3
|
import type { WithStyleProps, ComponentStyle, Spacing } from '@instructure/emotion';
|
|
4
|
-
import type { ColorPickerTheme, OtherHTMLAttributes
|
|
4
|
+
import type { ColorPickerTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
5
5
|
type ContrastStrength = 'min' | 'mid' | 'max';
|
|
6
6
|
type ColorPickerOwnProps = {
|
|
7
7
|
/**
|
|
@@ -179,8 +179,7 @@ type PropKeys = keyof ColorPickerOwnProps;
|
|
|
179
179
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
180
180
|
type ColorPickerProps = ColorPickerOwnProps & WithStyleProps<ColorPickerTheme, ColorPickerStyle> & OtherHTMLAttributes<ColorPickerOwnProps>;
|
|
181
181
|
type ColorPickerStyle = ComponentStyle<'colorPicker' | 'simpleColorContainer' | 'hashMarkContainer' | 'errorIcons' | 'successIcon' | 'label' | 'popoverContent' | 'popoverContentBlock' | 'popoverFooter' | 'colorMixerButtonContainer' | 'popoverContentContainer' | 'colorMixerButtonWrapper'>;
|
|
182
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
183
182
|
declare const allowedProps: AllowedPropKeys;
|
|
184
183
|
export type { ColorPickerProps, ColorPickerStyle, ColorPickerState, ContrastStrength };
|
|
185
|
-
export {
|
|
184
|
+
export { allowedProps };
|
|
186
185
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,WAAW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,sBAAsB,GACtB,mBAAmB,GACnB,YAAY,GACZ,aAAa,GACb,OAAO,GACP,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,2BAA2B,GAC3B,yBAAyB,GACzB,yBAAyB,CAC5B,CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAuBnB,CAAA;AAED,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EACjB,CAAA;AACD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -7,46 +7,6 @@ category: components
|
|
|
7
7
|
---
|
|
8
8
|
**/
|
|
9
9
|
declare class ColorPreset extends Component<ColorPresetProps, ColorPresetState> {
|
|
10
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
11
|
-
colors: Array<string>;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
elementRef?: (element: Element | null) => void;
|
|
14
|
-
label?: string;
|
|
15
|
-
colorMixerSettings?: {
|
|
16
|
-
addNewPresetButtonScreenReaderLabel: string;
|
|
17
|
-
selectColorLabel: string;
|
|
18
|
-
removeColorLabel: string;
|
|
19
|
-
onPresetChange: (colors: string[]) => void;
|
|
20
|
-
popoverAddButtonLabel: string;
|
|
21
|
-
popoverCloseButtonLabel: string;
|
|
22
|
-
maxHeight?: string;
|
|
23
|
-
colorMixer: {
|
|
24
|
-
withAlpha?: boolean;
|
|
25
|
-
rgbRedInputScreenReaderLabel: string;
|
|
26
|
-
rgbGreenInputScreenReaderLabel: string;
|
|
27
|
-
rgbBlueInputScreenReaderLabel: string;
|
|
28
|
-
rgbAlphaInputScreenReaderLabel: string;
|
|
29
|
-
colorSliderNavigationExplanationScreenReaderLabel: string;
|
|
30
|
-
alphaSliderNavigationExplanationScreenReaderLabel: string;
|
|
31
|
-
colorPaletteNavigationExplanationScreenReaderLabel: string;
|
|
32
|
-
};
|
|
33
|
-
colorContrast?: {
|
|
34
|
-
firstColor: string;
|
|
35
|
-
label: string;
|
|
36
|
-
successLabel: string;
|
|
37
|
-
failureLabel: string;
|
|
38
|
-
normalTextLabel: string;
|
|
39
|
-
largeTextLabel: string;
|
|
40
|
-
graphicsTextLabel: string;
|
|
41
|
-
firstColorLabel: string;
|
|
42
|
-
secondColorLabel: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
onSelect: (selected: string) => void;
|
|
46
|
-
popoverScreenReaderLabel?: string;
|
|
47
|
-
selected?: string;
|
|
48
|
-
colorScreenReaderLabel?: (hexCode: string, isSelected: boolean) => string;
|
|
49
|
-
}>;
|
|
50
10
|
static allowedProps: readonly (keyof {
|
|
51
11
|
colors: Array<string>;
|
|
52
12
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorPreset/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorPreset/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAU/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAGjE;;;;GAIG;AACH,cACM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACrE,MAAM,CAAC,YAAY;;;;;;;;;;;;qBAaf,CAAF;;yBACA,CAAH;;;;;;;;;yBAwBgC,CAAC;;;;;;;;;;;;;;;;SAtCE;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;MAElB;gBAEW,KAAK,EAAE,gBAAgB;IAUnC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAO;IAEjC,SAAS,GAAI,IAAI,cAAc,GAAG,IAAI,UAQrC;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,YAAY,YAEf;IAED,eAAe,CAAC,KAAK,EAAE,MAAM;IAQ7B,kBAAkB,GACf,OAAO,MAAM,KAAG,cAAc,CAAC,UAAU,CAAC,CAU1C;IAEH,wBAAwB,yDA0HvB;IAED,oBAAoB,GAAI,OAAO,MAAM,EAAE,gBAAgB,OAAO,sDAK7D;IAED,mBAAmB,GAAI,OAAO,MAAM,EAAE,gBAAgB,OAAO,sDA0C5D;IAED,sBAAsB,GAAI,OAAO,KAAK,CAAC,YAAY,EAAE,OAAO,MAAM,sDAkBjE;IAED,kBAAkB,GAAI,OAAO,MAAM,EAAE,OAAO,MAAM,sDAkBjD;IAED,MAAM;CAoCP;AAED,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,eAAe,WAAW,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
2
|
-
import type { OtherHTMLAttributes,
|
|
2
|
+
import type { OtherHTMLAttributes, ColorPresetTheme } from '@instructure/shared-types';
|
|
3
3
|
import type { RGBAType } from '@instructure/ui-color-utils';
|
|
4
4
|
type ContrastStrength = 'min' | 'mid' | 'max';
|
|
5
5
|
type ColorPresetOwnProps = {
|
|
@@ -92,8 +92,7 @@ type PropKeys = keyof ColorPresetOwnProps;
|
|
|
92
92
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
93
93
|
type ColorPresetProps = ColorPresetOwnProps & WithStyleProps<ColorPresetTheme, ColorPresetStyle> & OtherHTMLAttributes<ColorPresetOwnProps>;
|
|
94
94
|
type ColorPresetStyle = ComponentStyle<'colorPreset' | 'addNewPresetButton' | 'selectedIndicator' | 'popoverContent' | 'popoverDivider' | 'popoverFooter' | 'label' | 'popoverContrastBlock'>;
|
|
95
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
96
95
|
declare const allowedProps: AllowedPropKeys;
|
|
97
96
|
export type { ColorPresetProps, ColorPresetStyle, ColorPresetState, ContrastStrength };
|
|
98
|
-
export {
|
|
97
|
+
export { allowedProps };
|
|
99
98
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorPreset/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorPreset/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAE3D,KAAK,gBAAgB,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;AAE7C,KAAK,mBAAmB,GAAG;IACzB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE;QACnB;;WAEG;QACH,mCAAmC,EAAE,MAAM,CAAA;QAC3C,gBAAgB,EAAE,MAAM,CAAA;QACxB,gBAAgB,EAAE,MAAM,CAAA;QACxB,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAA;QAC/D,qBAAqB,EAAE,MAAM,CAAA;QAC7B,uBAAuB,EAAE,MAAM,CAAA;QAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,UAAU,EAAE;YACV,SAAS,CAAC,EAAE,OAAO,CAAA;YACnB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