@instructure/ui-color-picker 8.25.1-snapshot-20
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 +17 -0
- package/README.md +46 -0
- package/es/ColorContrast/ColorContrastLocator.js +54 -0
- package/es/ColorContrast/index.js +174 -0
- package/es/ColorContrast/props.js +40 -0
- package/es/ColorContrast/styles.js +99 -0
- package/es/ColorContrast/theme.js +55 -0
- package/es/ColorIndicator/ColorIndicatorLocator.js +40 -0
- package/es/ColorIndicator/index.js +91 -0
- package/es/ColorIndicator/props.js +31 -0
- package/es/ColorIndicator/styles.js +70 -0
- package/es/ColorIndicator/theme.js +53 -0
- package/es/ColorMixer/ColorMixerLocator.js +27 -0
- package/es/ColorMixer/ColorPalette/index.js +258 -0
- package/es/ColorMixer/ColorPalette/props.js +37 -0
- package/es/ColorMixer/ColorPalette/styles.js +81 -0
- package/es/ColorMixer/ColorPalette/theme.js +48 -0
- package/es/ColorMixer/RGBAInput/index.js +148 -0
- package/es/ColorMixer/RGBAInput/props.js +39 -0
- package/es/ColorMixer/RGBAInput/styles.js +63 -0
- package/es/ColorMixer/RGBAInput/theme.js +43 -0
- package/es/ColorMixer/Slider/index.js +218 -0
- package/es/ColorMixer/Slider/props.js +38 -0
- package/es/ColorMixer/Slider/styles.js +95 -0
- package/es/ColorMixer/Slider/theme.js +53 -0
- package/es/ColorMixer/index.js +232 -0
- package/es/ColorMixer/props.js +40 -0
- package/es/ColorMixer/styles.js +49 -0
- package/es/ColorMixer/utils/shallowCompare.js +32 -0
- package/es/ColorPicker/ColorPickerLocator.js +137 -0
- package/es/ColorPicker/index.js +487 -0
- package/es/ColorPicker/props.js +47 -0
- package/es/ColorPicker/styles.js +119 -0
- package/es/ColorPicker/theme.js +76 -0
- package/es/ColorPreset/ColorPresetLocator.js +27 -0
- package/es/ColorPreset/index.js +268 -0
- package/es/ColorPreset/props.js +36 -0
- package/es/ColorPreset/styles.js +102 -0
- package/es/ColorPreset/theme.js +53 -0
- package/es/index.js +28 -0
- package/lib/ColorContrast/ColorContrastLocator.js +66 -0
- package/lib/ColorContrast/index.js +169 -0
- package/lib/ColorContrast/props.js +51 -0
- package/lib/ColorContrast/styles.js +107 -0
- package/lib/ColorContrast/theme.js +63 -0
- package/lib/ColorIndicator/ColorIndicatorLocator.js +51 -0
- package/lib/ColorIndicator/index.js +82 -0
- package/lib/ColorIndicator/props.js +42 -0
- package/lib/ColorIndicator/styles.js +78 -0
- package/lib/ColorIndicator/theme.js +63 -0
- package/lib/ColorMixer/ColorMixerLocator.js +37 -0
- package/lib/ColorMixer/ColorPalette/index.js +252 -0
- package/lib/ColorMixer/ColorPalette/props.js +48 -0
- package/lib/ColorMixer/ColorPalette/styles.js +90 -0
- package/lib/ColorMixer/ColorPalette/theme.js +57 -0
- package/lib/ColorMixer/RGBAInput/index.js +142 -0
- package/lib/ColorMixer/RGBAInput/props.js +50 -0
- package/lib/ColorMixer/RGBAInput/styles.js +71 -0
- package/lib/ColorMixer/RGBAInput/theme.js +51 -0
- package/lib/ColorMixer/Slider/index.js +211 -0
- package/lib/ColorMixer/Slider/props.js +49 -0
- package/lib/ColorMixer/Slider/styles.js +103 -0
- package/lib/ColorMixer/Slider/theme.js +62 -0
- package/lib/ColorMixer/index.js +226 -0
- package/lib/ColorMixer/props.js +51 -0
- package/lib/ColorMixer/styles.js +57 -0
- package/lib/ColorMixer/utils/shallowCompare.js +40 -0
- package/lib/ColorPicker/ColorPickerLocator.js +151 -0
- package/lib/ColorPicker/index.js +500 -0
- package/lib/ColorPicker/props.js +58 -0
- package/lib/ColorPicker/styles.js +127 -0
- package/lib/ColorPicker/theme.js +85 -0
- package/lib/ColorPreset/ColorPresetLocator.js +37 -0
- package/lib/ColorPreset/index.js +274 -0
- package/lib/ColorPreset/props.js +47 -0
- package/lib/ColorPreset/styles.js +110 -0
- package/lib/ColorPreset/theme.js +61 -0
- package/lib/index.js +45 -0
- package/lib/package.json +1 -0
- package/package.json +62 -0
- package/src/ColorContrast/ColorContrastLocator.ts +51 -0
- package/src/ColorContrast/README.md +111 -0
- package/src/ColorContrast/index.tsx +189 -0
- package/src/ColorContrast/props.ts +140 -0
- package/src/ColorContrast/styles.ts +102 -0
- package/src/ColorContrast/theme.ts +62 -0
- package/src/ColorIndicator/ColorIndicatorLocator.ts +41 -0
- package/src/ColorIndicator/README.md +76 -0
- package/src/ColorIndicator/index.tsx +89 -0
- package/src/ColorIndicator/props.ts +68 -0
- package/src/ColorIndicator/styles.ts +88 -0
- package/src/ColorIndicator/theme.ts +58 -0
- package/src/ColorMixer/ColorMixerLocator.ts +29 -0
- package/src/ColorMixer/ColorPalette/index.tsx +250 -0
- package/src/ColorMixer/ColorPalette/props.ts +87 -0
- package/src/ColorMixer/ColorPalette/styles.ts +94 -0
- package/src/ColorMixer/ColorPalette/theme.ts +52 -0
- package/src/ColorMixer/README.md +98 -0
- package/src/ColorMixer/RGBAInput/index.tsx +172 -0
- package/src/ColorMixer/RGBAInput/props.ts +93 -0
- package/src/ColorMixer/RGBAInput/styles.ts +69 -0
- package/src/ColorMixer/RGBAInput/theme.ts +48 -0
- package/src/ColorMixer/Slider/index.tsx +242 -0
- package/src/ColorMixer/Slider/props.ts +94 -0
- package/src/ColorMixer/Slider/styles.ts +114 -0
- package/src/ColorMixer/Slider/theme.ts +59 -0
- package/src/ColorMixer/index.tsx +221 -0
- package/src/ColorMixer/props.ts +169 -0
- package/src/ColorMixer/styles.ts +51 -0
- package/src/ColorMixer/utils/shallowCompare.ts +35 -0
- package/src/ColorPicker/ColorPickerLocator.ts +124 -0
- package/src/ColorPicker/README.md +420 -0
- package/src/ColorPicker/index.tsx +609 -0
- package/src/ColorPicker/props.ts +293 -0
- package/src/ColorPicker/styles.ts +131 -0
- package/src/ColorPicker/theme.ts +80 -0
- package/src/ColorPreset/ColorPresetLocator.ts +29 -0
- package/src/ColorPreset/README.md +121 -0
- package/src/ColorPreset/index.tsx +328 -0
- package/src/ColorPreset/props.ts +162 -0
- package/src/ColorPreset/styles.ts +107 -0
- package/src/ColorPreset/theme.ts +58 -0
- package/src/index.ts +34 -0
- package/tsconfig.build.json +36 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/types/ColorContrast/ColorContrastLocator.d.ts +592 -0
- package/types/ColorContrast/ColorContrastLocator.d.ts.map +1 -0
- package/types/ColorContrast/index.d.ts +61 -0
- package/types/ColorContrast/index.d.ts.map +1 -0
- package/types/ColorContrast/props.d.ts +62 -0
- package/types/ColorContrast/props.d.ts.map +1 -0
- package/types/ColorContrast/styles.d.ts +76 -0
- package/types/ColorContrast/styles.d.ts.map +1 -0
- package/types/ColorContrast/theme.d.ts +10 -0
- package/types/ColorContrast/theme.d.ts.map +1 -0
- package/types/ColorIndicator/ColorIndicatorLocator.d.ts +577 -0
- package/types/ColorIndicator/ColorIndicatorLocator.d.ts.map +1 -0
- package/types/ColorIndicator/index.d.ts +35 -0
- package/types/ColorIndicator/index.d.ts.map +1 -0
- package/types/ColorIndicator/props.d.ts +25 -0
- package/types/ColorIndicator/props.d.ts.map +1 -0
- package/types/ColorIndicator/styles.d.ts +15 -0
- package/types/ColorIndicator/styles.d.ts.map +1 -0
- package/types/ColorIndicator/theme.d.ts +11 -0
- package/types/ColorIndicator/theme.d.ts.map +1 -0
- package/types/ColorMixer/ColorMixerLocator.d.ts +566 -0
- package/types/ColorMixer/ColorMixerLocator.d.ts.map +1 -0
- package/types/ColorMixer/ColorPalette/index.d.ts +70 -0
- package/types/ColorMixer/ColorPalette/index.d.ts.map +1 -0
- package/types/ColorMixer/ColorPalette/props.d.ts +29 -0
- package/types/ColorMixer/ColorPalette/props.d.ts.map +1 -0
- package/types/ColorMixer/ColorPalette/styles.d.ts +15 -0
- package/types/ColorMixer/ColorPalette/styles.d.ts.map +1 -0
- package/types/ColorMixer/ColorPalette/theme.d.ts +10 -0
- package/types/ColorMixer/ColorPalette/theme.d.ts.map +1 -0
- package/types/ColorMixer/RGBAInput/index.d.ts +51 -0
- package/types/ColorMixer/RGBAInput/index.d.ts.map +1 -0
- package/types/ColorMixer/RGBAInput/props.d.ts +28 -0
- package/types/ColorMixer/RGBAInput/props.d.ts.map +1 -0
- package/types/ColorMixer/RGBAInput/styles.d.ts +15 -0
- package/types/ColorMixer/RGBAInput/styles.d.ts.map +1 -0
- package/types/ColorMixer/RGBAInput/theme.d.ts +10 -0
- package/types/ColorMixer/RGBAInput/theme.d.ts.map +1 -0
- package/types/ColorMixer/Slider/index.d.ts +64 -0
- package/types/ColorMixer/Slider/index.d.ts.map +1 -0
- package/types/ColorMixer/Slider/props.d.ts +26 -0
- package/types/ColorMixer/Slider/props.d.ts.map +1 -0
- package/types/ColorMixer/Slider/styles.d.ts +15 -0
- package/types/ColorMixer/Slider/styles.d.ts.map +1 -0
- package/types/ColorMixer/Slider/theme.d.ts +10 -0
- package/types/ColorMixer/Slider/theme.d.ts.map +1 -0
- package/types/ColorMixer/index.d.ts +59 -0
- package/types/ColorMixer/index.d.ts.map +1 -0
- package/types/ColorMixer/props.d.ts +91 -0
- package/types/ColorMixer/props.d.ts.map +1 -0
- package/types/ColorMixer/styles.d.ts +14 -0
- package/types/ColorMixer/styles.d.ts.map +1 -0
- package/types/ColorMixer/utils/shallowCompare.d.ts +3 -0
- package/types/ColorMixer/utils/shallowCompare.d.ts.map +1 -0
- package/types/ColorPicker/ColorPickerLocator.d.ts +4113 -0
- package/types/ColorPicker/ColorPickerLocator.d.ts.map +1 -0
- package/types/ColorPicker/index.d.ts +158 -0
- package/types/ColorPicker/index.d.ts.map +1 -0
- package/types/ColorPicker/props.d.ts +166 -0
- package/types/ColorPicker/props.d.ts.map +1 -0
- package/types/ColorPicker/styles.d.ts +17 -0
- package/types/ColorPicker/styles.d.ts.map +1 -0
- package/types/ColorPicker/theme.d.ts +10 -0
- package/types/ColorPicker/theme.d.ts.map +1 -0
- package/types/ColorPreset/ColorPresetLocator.d.ts +566 -0
- package/types/ColorPreset/ColorPresetLocator.d.ts.map +1 -0
- package/types/ColorPreset/index.d.ts +100 -0
- package/types/ColorPreset/index.d.ts.map +1 -0
- package/types/ColorPreset/props.d.ts +87 -0
- package/types/ColorPreset/props.d.ts.map +1 -0
- package/types/ColorPreset/styles.d.ts +77 -0
- package/types/ColorPreset/styles.d.ts.map +1 -0
- package/types/ColorPreset/theme.d.ts +10 -0
- package/types/ColorPreset/theme.d.ts.map +1 -0
- package/types/index.d.ts +11 -0
- package/types/index.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPickerLocator.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/ColorPickerLocator.ts"],"names":[],"mappings":";AAwBA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,YAAY,EAEb,MAAM,4BAA4B,CAAA;AA6FnC,eAAO,MAAM,kBAAkB;;iCAxEJ,GAAG,EAAE;sCAGA,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAGL,GAAG,EAAE;oCAGP,GAAG,EAAE;mCAGN,GAAG,EAAE;sCAGF,GAAG,EAAE;kCAGT,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAGD,GAAG,EAAE;kCAUH,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAKM,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uYAoC4B,CAAA"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
/** @jsxFrag React.Fragment */
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { jsx } from '@instructure/emotion';
|
|
5
|
+
import type { ColorPickerProps, ColorPickerState, ContrastStrength, MessageType } from './props';
|
|
6
|
+
/**
|
|
7
|
+
---
|
|
8
|
+
category: components
|
|
9
|
+
---
|
|
10
|
+
@tsProps
|
|
11
|
+
**/
|
|
12
|
+
declare class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
|
|
13
|
+
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
14
|
+
checkContrast?: {
|
|
15
|
+
isStrict: boolean;
|
|
16
|
+
contrastStrength?: ContrastStrength | undefined;
|
|
17
|
+
contrastAgainst?: string | undefined;
|
|
18
|
+
renderContrastSuccessMessage?: ((contrast: number, minContrast: number) => MessageType) | undefined;
|
|
19
|
+
renderContrastErrorMessage?: ((contrast: number, minContrast: number) => MessageType) | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
colorMixerSettings?: {
|
|
22
|
+
popoverAddButtonLabel: string;
|
|
23
|
+
popoverCloseButtonLabel: string;
|
|
24
|
+
colorMixer?: {
|
|
25
|
+
withAlpha: boolean;
|
|
26
|
+
rgbRedInputScreenReaderLabel: string;
|
|
27
|
+
rgbGreenInputScreenReaderLabel: string;
|
|
28
|
+
rgbBlueInputScreenReaderLabel: string;
|
|
29
|
+
rgbAlphaInputScreenReaderLabel: string;
|
|
30
|
+
colorSliderNavigationExplanationScreenReaderLabel: string;
|
|
31
|
+
alphaSliderNavigationExplanationScreenReaderLabel: string;
|
|
32
|
+
colorPaletteNavigationExplanationScreenReaderLabel: string;
|
|
33
|
+
} | undefined;
|
|
34
|
+
colorPreset?: {
|
|
35
|
+
colors: string[];
|
|
36
|
+
label: string;
|
|
37
|
+
} | undefined;
|
|
38
|
+
colorContrast?: {
|
|
39
|
+
firstColor: string;
|
|
40
|
+
label: string;
|
|
41
|
+
successLabel: string;
|
|
42
|
+
failureLabel: string;
|
|
43
|
+
normalTextLabel: string;
|
|
44
|
+
largeTextLabel: string;
|
|
45
|
+
graphicsTextLabel: string;
|
|
46
|
+
firstColorLabel: string;
|
|
47
|
+
secondColorLabel: string;
|
|
48
|
+
} | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
children?: ((value: string, onChange: (hex: string) => void, handleAdd: () => void, handleClose: () => void) => Node) | undefined;
|
|
51
|
+
disabled?: boolean | undefined;
|
|
52
|
+
elementRef: (element: Element | null) => void;
|
|
53
|
+
isRequired?: boolean | undefined;
|
|
54
|
+
label: string;
|
|
55
|
+
onChange?: ((value: string) => void) | undefined;
|
|
56
|
+
placeholderText: string;
|
|
57
|
+
popoverMaxHeight?: string | undefined;
|
|
58
|
+
popoverScreenReaderLabel?: string | undefined;
|
|
59
|
+
popoverButtonScreenReaderLabel?: string | undefined;
|
|
60
|
+
renderInvalidColorMessage?: ((hexCode: string) => MessageType) | undefined;
|
|
61
|
+
renderIsRequiredMessage?: (() => MessageType) | undefined;
|
|
62
|
+
renderMessages?: ((hexCode: string, isValidHex: boolean, minContrast: number, contrast?: number | undefined) => MessageType) | undefined;
|
|
63
|
+
tooltip?: React.ReactNode;
|
|
64
|
+
value?: string | undefined;
|
|
65
|
+
width?: string | undefined;
|
|
66
|
+
withAlpha?: boolean | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
static allowedProps: readonly (keyof {
|
|
69
|
+
checkContrast?: {
|
|
70
|
+
isStrict: boolean;
|
|
71
|
+
contrastStrength?: ContrastStrength | undefined;
|
|
72
|
+
contrastAgainst?: string | undefined;
|
|
73
|
+
renderContrastSuccessMessage?: ((contrast: number, minContrast: number) => MessageType) | undefined;
|
|
74
|
+
renderContrastErrorMessage?: ((contrast: number, minContrast: number) => MessageType) | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
colorMixerSettings?: {
|
|
77
|
+
popoverAddButtonLabel: string;
|
|
78
|
+
popoverCloseButtonLabel: string;
|
|
79
|
+
colorMixer?: {
|
|
80
|
+
withAlpha: boolean;
|
|
81
|
+
rgbRedInputScreenReaderLabel: string;
|
|
82
|
+
rgbGreenInputScreenReaderLabel: string;
|
|
83
|
+
rgbBlueInputScreenReaderLabel: string;
|
|
84
|
+
rgbAlphaInputScreenReaderLabel: string;
|
|
85
|
+
colorSliderNavigationExplanationScreenReaderLabel: string;
|
|
86
|
+
alphaSliderNavigationExplanationScreenReaderLabel: string;
|
|
87
|
+
colorPaletteNavigationExplanationScreenReaderLabel: string;
|
|
88
|
+
} | undefined;
|
|
89
|
+
colorPreset?: {
|
|
90
|
+
colors: string[];
|
|
91
|
+
label: string;
|
|
92
|
+
} | undefined;
|
|
93
|
+
colorContrast?: {
|
|
94
|
+
firstColor: string;
|
|
95
|
+
label: string;
|
|
96
|
+
successLabel: string;
|
|
97
|
+
failureLabel: string;
|
|
98
|
+
normalTextLabel: string;
|
|
99
|
+
largeTextLabel: string;
|
|
100
|
+
graphicsTextLabel: string;
|
|
101
|
+
firstColorLabel: string;
|
|
102
|
+
secondColorLabel: string;
|
|
103
|
+
} | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
children?: ((value: string, onChange: (hex: string) => void, handleAdd: () => void, handleClose: () => void) => Node) | undefined;
|
|
106
|
+
disabled?: boolean | undefined;
|
|
107
|
+
elementRef: (element: Element | null) => void;
|
|
108
|
+
isRequired?: boolean | undefined;
|
|
109
|
+
label: string;
|
|
110
|
+
onChange?: ((value: string) => void) | undefined;
|
|
111
|
+
placeholderText: string;
|
|
112
|
+
popoverMaxHeight?: string | undefined;
|
|
113
|
+
popoverScreenReaderLabel?: string | undefined;
|
|
114
|
+
popoverButtonScreenReaderLabel?: string | undefined;
|
|
115
|
+
renderInvalidColorMessage?: ((hexCode: string) => MessageType) | undefined;
|
|
116
|
+
renderIsRequiredMessage?: (() => MessageType) | undefined;
|
|
117
|
+
renderMessages?: ((hexCode: string, isValidHex: boolean, minContrast: number, contrast?: number | undefined) => MessageType) | undefined;
|
|
118
|
+
tooltip?: React.ReactNode;
|
|
119
|
+
value?: string | undefined;
|
|
120
|
+
width?: string | undefined;
|
|
121
|
+
withAlpha?: boolean | undefined;
|
|
122
|
+
})[];
|
|
123
|
+
static readonly componentId = "ColorPicker";
|
|
124
|
+
static defaultProps: {
|
|
125
|
+
elementRef: () => null;
|
|
126
|
+
disabled: boolean;
|
|
127
|
+
label: string;
|
|
128
|
+
checkContrast: boolean;
|
|
129
|
+
width: string;
|
|
130
|
+
withAlpha: boolean;
|
|
131
|
+
};
|
|
132
|
+
constructor(props: ColorPickerProps);
|
|
133
|
+
ref: Element | null;
|
|
134
|
+
handleRef: (el: Element | null) => void;
|
|
135
|
+
componentDidMount(): void;
|
|
136
|
+
componentDidUpdate(prevProps: ColorPickerProps): void;
|
|
137
|
+
checkSettings: () => void;
|
|
138
|
+
get renderMode(): "customPopover" | "defaultPopover" | "simple";
|
|
139
|
+
get isSimple(): boolean;
|
|
140
|
+
get isDefaultPopover(): boolean;
|
|
141
|
+
get isCustomPopover(): boolean;
|
|
142
|
+
getMinContrast(strength: ContrastStrength): number;
|
|
143
|
+
renderMessages(): import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[];
|
|
144
|
+
renderBeforeInput(): jsx.JSX.Element;
|
|
145
|
+
renderAfterInput(): jsx.JSX.Element | null;
|
|
146
|
+
handleOnChange(_event: React.ChangeEvent<HTMLInputElement>, value: string): void;
|
|
147
|
+
handleOnPaste(event: React.ClipboardEvent<unknown>): void;
|
|
148
|
+
handleOnBlur(): void;
|
|
149
|
+
renderLabel(): string | jsx.JSX.Element;
|
|
150
|
+
stripAlphaIfNeeded: (hex: string) => string;
|
|
151
|
+
renderPopover: () => jsx.JSX.Element;
|
|
152
|
+
renderCustomPopoverContent: () => jsx.JSX.Element;
|
|
153
|
+
renderDefaultPopoverContent: () => jsx.JSX.Element;
|
|
154
|
+
render(): jsx.JSX.Element;
|
|
155
|
+
}
|
|
156
|
+
export { ColorPicker };
|
|
157
|
+
export default ColorPicker;
|
|
158
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,8BAA8B;AAC9B,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AA8BrD,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACZ,MAAM,SAAS,CAAA;AA2BhB;;;;;GAKG;AACH,cAEM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IACrE,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;MAOlB;gBAEW,KAAK,EAAE,gBAAgB;IAWnC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAQ9B;IAED,iBAAiB;IAOjB,kBAAkB,CAAC,SAAS,EAAE,gBAAgB;IAY9C,aAAa,aAQZ;IAED,IAAI,UAAU,kDAQb;IAED,IAAI,QAAQ,YAEX;IACD,IAAI,gBAAgB,YAEnB;IACD,IAAI,eAAe,YAElB;IAED,cAAc,CAAC,QAAQ,EAAE,gBAAgB;IAIzC,cAAc;IA0Ed,iBAAiB;IASjB,gBAAgB;IA8BhB,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,MAAM;IAoBzE,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;IA6BlD,YAAY;IAIZ,WAAW;IAiBX,kBAAkB,QAAS,MAAM,YACoC;IAErE,aAAa,wBA8BZ;IAED,0BAA0B,wBAwBzB;IACD,2BAA2B,wBAyH1B;IACD,MAAM;CAoDP;AAED,OAAO,EAAE,WAAW,EAAE,CAAA;AACtB,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormMessage } from '@instructure/ui-form-field';
|
|
3
|
+
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
|
+
import type { ColorPickerTheme, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
5
|
+
declare type ContrastStrength = 'min' | 'mid' | 'max';
|
|
6
|
+
declare type MessageType = Array<FormMessage>;
|
|
7
|
+
declare type ColorPickerOwnProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Configures the contrast checker. If false, there will be no checking.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* isStrict: if it's true, it will display an error if false, a warning
|
|
13
|
+
*
|
|
14
|
+
* contrastStrength: can be one of ('min','mid','max'), which translates to 3:1, 4.5:1, 7:1 contrast, defalts to 'mid'
|
|
15
|
+
*
|
|
16
|
+
* contrastAgainst: is the color which the component checks the contrast against. Accepts hex, defaults to #ffffff
|
|
17
|
+
*
|
|
18
|
+
* renderContrastSuccessMessage: if set and the contrast is high enough, it will display the message
|
|
19
|
+
*
|
|
20
|
+
* renderContrastErrorMessage: if set and the contrast is not high enough, it will display the message
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* MessageType: Array<{
|
|
24
|
+
* type: 'success' | 'hint' | 'error' | 'screenreader-only'
|
|
25
|
+
* text: string
|
|
26
|
+
* }>
|
|
27
|
+
*/
|
|
28
|
+
checkContrast?: {
|
|
29
|
+
isStrict: boolean;
|
|
30
|
+
contrastStrength?: ContrastStrength;
|
|
31
|
+
contrastAgainst?: string;
|
|
32
|
+
renderContrastSuccessMessage?: (contrast: number, minContrast: number) => MessageType;
|
|
33
|
+
renderContrastErrorMessage?: (contrast: number, minContrast: number) => MessageType;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* If set, the default popover will appear for the picker. Those components whose corresponding keys aren't provided (e.g. `colorMixer`, `colorPreset` or `colorContrast`)
|
|
37
|
+
* will not be rendered.
|
|
38
|
+
*/
|
|
39
|
+
colorMixerSettings?: {
|
|
40
|
+
popoverAddButtonLabel: string;
|
|
41
|
+
popoverCloseButtonLabel: string;
|
|
42
|
+
colorMixer?: {
|
|
43
|
+
withAlpha: boolean;
|
|
44
|
+
rgbRedInputScreenReaderLabel: string;
|
|
45
|
+
rgbGreenInputScreenReaderLabel: string;
|
|
46
|
+
rgbBlueInputScreenReaderLabel: string;
|
|
47
|
+
rgbAlphaInputScreenReaderLabel: string;
|
|
48
|
+
colorSliderNavigationExplanationScreenReaderLabel: string;
|
|
49
|
+
alphaSliderNavigationExplanationScreenReaderLabel: string;
|
|
50
|
+
colorPaletteNavigationExplanationScreenReaderLabel: string;
|
|
51
|
+
};
|
|
52
|
+
colorPreset?: {
|
|
53
|
+
colors: Array<string>;
|
|
54
|
+
label: string;
|
|
55
|
+
};
|
|
56
|
+
colorContrast?: {
|
|
57
|
+
firstColor: string;
|
|
58
|
+
label: string;
|
|
59
|
+
successLabel: string;
|
|
60
|
+
failureLabel: string;
|
|
61
|
+
normalTextLabel: string;
|
|
62
|
+
largeTextLabel: string;
|
|
63
|
+
graphicsTextLabel: string;
|
|
64
|
+
firstColorLabel: string;
|
|
65
|
+
secondColorLabel: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* If a child function is provided, the component will render it to the popover.
|
|
70
|
+
*/
|
|
71
|
+
children?: (value: string, onChange: (hex: string) => void, handleAdd: () => void, handleClose: () => void) => Node;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the input to disabled state
|
|
74
|
+
*/
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* provides a reference to the underlying html root element
|
|
78
|
+
*/
|
|
79
|
+
elementRef: (element: Element | null) => void;
|
|
80
|
+
/**
|
|
81
|
+
* If true, it will display a red error ring or a message after a blur event and remove it after a change event
|
|
82
|
+
*/
|
|
83
|
+
isRequired?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The label of the component
|
|
86
|
+
*/
|
|
87
|
+
label: string;
|
|
88
|
+
/**
|
|
89
|
+
* If 'value' is set, this must be set. It'll be called on every change
|
|
90
|
+
*/
|
|
91
|
+
onChange?: (value: string) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Placeholder for the inputfield
|
|
94
|
+
*/
|
|
95
|
+
placeholderText: string;
|
|
96
|
+
/**
|
|
97
|
+
* If set, it will set the popover's max height. Useful when the popover is too big
|
|
98
|
+
*/
|
|
99
|
+
popoverMaxHeight?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Sets the ScreenReaderLabel for the popover
|
|
102
|
+
*/
|
|
103
|
+
popoverScreenReaderLabel?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Sets the ScreenReaderLabel for the popover Button
|
|
106
|
+
*/
|
|
107
|
+
popoverButtonScreenReaderLabel?: string;
|
|
108
|
+
/**
|
|
109
|
+
* If set and the hex is invalid, it will display the message after a blur event and remove it after a change event
|
|
110
|
+
*
|
|
111
|
+
* MessageType: Array<{
|
|
112
|
+
* type: 'success' | 'hint' | 'error' | 'screenreader-only'
|
|
113
|
+
* text: string
|
|
114
|
+
* }>
|
|
115
|
+
*/
|
|
116
|
+
renderInvalidColorMessage?: (hexCode: string) => MessageType;
|
|
117
|
+
/**
|
|
118
|
+
* If set, isRequired is true and the input is empty, it will display the message after a blur event and remove it after a change event
|
|
119
|
+
*
|
|
120
|
+
* MessageType: Array<{
|
|
121
|
+
* type: 'success' | 'hint' | 'error' | 'screenreader-only'
|
|
122
|
+
* text: string
|
|
123
|
+
* }>
|
|
124
|
+
*/
|
|
125
|
+
renderIsRequiredMessage?: () => MessageType;
|
|
126
|
+
/**
|
|
127
|
+
* If set, it will display the message it returns
|
|
128
|
+
*
|
|
129
|
+
* MessageType: Array<{
|
|
130
|
+
* type: 'success' | 'hint' | 'error' | 'screenreader-only'
|
|
131
|
+
* text: string
|
|
132
|
+
* }>
|
|
133
|
+
*/
|
|
134
|
+
renderMessages?: (hexCode: string, isValidHex: boolean, minContrast: number, contrast?: number) => MessageType;
|
|
135
|
+
/**
|
|
136
|
+
* If set, an info icon with a tooltip will be displayed
|
|
137
|
+
*/
|
|
138
|
+
tooltip?: React.ReactNode;
|
|
139
|
+
/**
|
|
140
|
+
* If set, the component will behave as controlled
|
|
141
|
+
*/
|
|
142
|
+
value?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The width of the input.
|
|
145
|
+
*/
|
|
146
|
+
width?: string;
|
|
147
|
+
/**
|
|
148
|
+
* If true, alpha slider will be rendered. Deafults to false
|
|
149
|
+
*/
|
|
150
|
+
withAlpha?: boolean;
|
|
151
|
+
};
|
|
152
|
+
declare type ColorPickerState = {
|
|
153
|
+
hexCode: string;
|
|
154
|
+
showHelperErrorMessages: boolean;
|
|
155
|
+
openColorPicker: boolean;
|
|
156
|
+
mixedColor: string;
|
|
157
|
+
};
|
|
158
|
+
declare type PropKeys = keyof ColorPickerOwnProps;
|
|
159
|
+
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
160
|
+
declare type ColorPickerProps = ColorPickerOwnProps & WithStyleProps<ColorPickerTheme, ColorPickerStyle> & OtherHTMLAttributes<ColorPickerOwnProps>;
|
|
161
|
+
declare type ColorPickerStyle = ComponentStyle<'colorPicker' | 'simpleColorContainer' | 'hashMarkContainer' | 'errorIcons' | 'successIcon' | 'label' | 'popoverContent' | 'popoverContentBlock' | 'popoverFooter' | 'colorMixerButtonContainer' | 'popoverContentContainer' | 'colorMixerButtonWrapper'>;
|
|
162
|
+
declare const propTypes: PropValidators<PropKeys>;
|
|
163
|
+
declare const allowedProps: AllowedPropKeys;
|
|
164
|
+
export type { ColorPickerProps, ColorPickerStyle, ColorPickerState, ContrastStrength, MessageType };
|
|
165
|
+
export { propTypes, allowedProps };
|
|
166
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/props.ts"],"names":[],"mappings":";AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,gBAAgB,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;AAC7C,aAAK,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,CAAA;AAErC,aAAK,mBAAmB,GAAG;IACzB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,CAAC,EAAE;QACd,QAAQ,EAAE,OAAO,CAAA;QACjB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;QACnC,eAAe,CAAC,EAAE,MAAM,CAAA;QACxB,4BAA4B,CAAC,EAAE,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,KAChB,WAAW,CAAA;QAEhB,0BAA0B,CAAC,EAAE,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,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AmB,CAAC,mBAAmB,CAAC,CAAA;AAE1C,aAAK,gBAAgB,GAAG,cAAc,CAClC,aAAa,GACb,sBAAsB,GACtB,mBAAmB,GACnB,YAAY,GACZ,aAAa,GACb,OAAO,GACP,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,2BAA2B,GAC3B,yBAAyB,GACzB,yBAAyB,CAC5B,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAoBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAoBnB,CAAA;AAED,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACZ,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ColorPickerTheme } from '@instructure/shared-types';
|
|
2
|
+
import type { ColorPickerProps, ColorPickerState, ColorPickerStyle } from './props';
|
|
3
|
+
/**
|
|
4
|
+
* ---
|
|
5
|
+
* private: true
|
|
6
|
+
* ---
|
|
7
|
+
* Generates the style object from the theme and provided additional information
|
|
8
|
+
* @param {Object} componentTheme The theme variable object.
|
|
9
|
+
* @param {Object} props the props of the component, the style is applied to
|
|
10
|
+
* @param {Object} state the state of the component, the style is applied to
|
|
11
|
+
* @return {Object} The final style object, which will be used in the component
|
|
12
|
+
*/
|
|
13
|
+
declare const generateStyle: (componentTheme: ColorPickerTheme, props: ColorPickerProps, state: ColorPickerState & {
|
|
14
|
+
isSimple: boolean;
|
|
15
|
+
}) => ColorPickerStyle;
|
|
16
|
+
export default generateStyle;
|
|
17
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,gBAAgB,SACzB,gBAAgB,SAChB,gBAAgB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KAC9C,gBAkFF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Theme } from '@instructure/ui-themes';
|
|
2
|
+
import type { ColorPickerTheme } from '@instructure/shared-types';
|
|
3
|
+
/**
|
|
4
|
+
* Generates the theme object for the component from the theme and provided additional information
|
|
5
|
+
* @param {Object} theme The actual theme object.
|
|
6
|
+
* @return {Object} The final theme object with the overrides and component variables
|
|
7
|
+
*/
|
|
8
|
+
declare const generateComponentTheme: (theme: Theme) => ColorPickerTheme;
|
|
9
|
+
export default generateComponentTheme;
|
|
10
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/ColorPicker/theme.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE;;;;GAIG;AACH,QAAA,MAAM,sBAAsB,UAAW,KAAK,KAAG,gBA4C9C,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|