@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.
Files changed (201) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +46 -0
  3. package/es/ColorContrast/ColorContrastLocator.js +54 -0
  4. package/es/ColorContrast/index.js +174 -0
  5. package/es/ColorContrast/props.js +40 -0
  6. package/es/ColorContrast/styles.js +99 -0
  7. package/es/ColorContrast/theme.js +55 -0
  8. package/es/ColorIndicator/ColorIndicatorLocator.js +40 -0
  9. package/es/ColorIndicator/index.js +91 -0
  10. package/es/ColorIndicator/props.js +31 -0
  11. package/es/ColorIndicator/styles.js +70 -0
  12. package/es/ColorIndicator/theme.js +53 -0
  13. package/es/ColorMixer/ColorMixerLocator.js +27 -0
  14. package/es/ColorMixer/ColorPalette/index.js +258 -0
  15. package/es/ColorMixer/ColorPalette/props.js +37 -0
  16. package/es/ColorMixer/ColorPalette/styles.js +81 -0
  17. package/es/ColorMixer/ColorPalette/theme.js +48 -0
  18. package/es/ColorMixer/RGBAInput/index.js +148 -0
  19. package/es/ColorMixer/RGBAInput/props.js +39 -0
  20. package/es/ColorMixer/RGBAInput/styles.js +63 -0
  21. package/es/ColorMixer/RGBAInput/theme.js +43 -0
  22. package/es/ColorMixer/Slider/index.js +218 -0
  23. package/es/ColorMixer/Slider/props.js +38 -0
  24. package/es/ColorMixer/Slider/styles.js +95 -0
  25. package/es/ColorMixer/Slider/theme.js +53 -0
  26. package/es/ColorMixer/index.js +232 -0
  27. package/es/ColorMixer/props.js +40 -0
  28. package/es/ColorMixer/styles.js +49 -0
  29. package/es/ColorMixer/utils/shallowCompare.js +32 -0
  30. package/es/ColorPicker/ColorPickerLocator.js +137 -0
  31. package/es/ColorPicker/index.js +487 -0
  32. package/es/ColorPicker/props.js +47 -0
  33. package/es/ColorPicker/styles.js +119 -0
  34. package/es/ColorPicker/theme.js +76 -0
  35. package/es/ColorPreset/ColorPresetLocator.js +27 -0
  36. package/es/ColorPreset/index.js +268 -0
  37. package/es/ColorPreset/props.js +36 -0
  38. package/es/ColorPreset/styles.js +102 -0
  39. package/es/ColorPreset/theme.js +53 -0
  40. package/es/index.js +28 -0
  41. package/lib/ColorContrast/ColorContrastLocator.js +66 -0
  42. package/lib/ColorContrast/index.js +169 -0
  43. package/lib/ColorContrast/props.js +51 -0
  44. package/lib/ColorContrast/styles.js +107 -0
  45. package/lib/ColorContrast/theme.js +63 -0
  46. package/lib/ColorIndicator/ColorIndicatorLocator.js +51 -0
  47. package/lib/ColorIndicator/index.js +82 -0
  48. package/lib/ColorIndicator/props.js +42 -0
  49. package/lib/ColorIndicator/styles.js +78 -0
  50. package/lib/ColorIndicator/theme.js +63 -0
  51. package/lib/ColorMixer/ColorMixerLocator.js +37 -0
  52. package/lib/ColorMixer/ColorPalette/index.js +252 -0
  53. package/lib/ColorMixer/ColorPalette/props.js +48 -0
  54. package/lib/ColorMixer/ColorPalette/styles.js +90 -0
  55. package/lib/ColorMixer/ColorPalette/theme.js +57 -0
  56. package/lib/ColorMixer/RGBAInput/index.js +142 -0
  57. package/lib/ColorMixer/RGBAInput/props.js +50 -0
  58. package/lib/ColorMixer/RGBAInput/styles.js +71 -0
  59. package/lib/ColorMixer/RGBAInput/theme.js +51 -0
  60. package/lib/ColorMixer/Slider/index.js +211 -0
  61. package/lib/ColorMixer/Slider/props.js +49 -0
  62. package/lib/ColorMixer/Slider/styles.js +103 -0
  63. package/lib/ColorMixer/Slider/theme.js +62 -0
  64. package/lib/ColorMixer/index.js +226 -0
  65. package/lib/ColorMixer/props.js +51 -0
  66. package/lib/ColorMixer/styles.js +57 -0
  67. package/lib/ColorMixer/utils/shallowCompare.js +40 -0
  68. package/lib/ColorPicker/ColorPickerLocator.js +151 -0
  69. package/lib/ColorPicker/index.js +500 -0
  70. package/lib/ColorPicker/props.js +58 -0
  71. package/lib/ColorPicker/styles.js +127 -0
  72. package/lib/ColorPicker/theme.js +85 -0
  73. package/lib/ColorPreset/ColorPresetLocator.js +37 -0
  74. package/lib/ColorPreset/index.js +274 -0
  75. package/lib/ColorPreset/props.js +47 -0
  76. package/lib/ColorPreset/styles.js +110 -0
  77. package/lib/ColorPreset/theme.js +61 -0
  78. package/lib/index.js +45 -0
  79. package/lib/package.json +1 -0
  80. package/package.json +62 -0
  81. package/src/ColorContrast/ColorContrastLocator.ts +51 -0
  82. package/src/ColorContrast/README.md +111 -0
  83. package/src/ColorContrast/index.tsx +189 -0
  84. package/src/ColorContrast/props.ts +140 -0
  85. package/src/ColorContrast/styles.ts +102 -0
  86. package/src/ColorContrast/theme.ts +62 -0
  87. package/src/ColorIndicator/ColorIndicatorLocator.ts +41 -0
  88. package/src/ColorIndicator/README.md +76 -0
  89. package/src/ColorIndicator/index.tsx +89 -0
  90. package/src/ColorIndicator/props.ts +68 -0
  91. package/src/ColorIndicator/styles.ts +88 -0
  92. package/src/ColorIndicator/theme.ts +58 -0
  93. package/src/ColorMixer/ColorMixerLocator.ts +29 -0
  94. package/src/ColorMixer/ColorPalette/index.tsx +250 -0
  95. package/src/ColorMixer/ColorPalette/props.ts +87 -0
  96. package/src/ColorMixer/ColorPalette/styles.ts +94 -0
  97. package/src/ColorMixer/ColorPalette/theme.ts +52 -0
  98. package/src/ColorMixer/README.md +98 -0
  99. package/src/ColorMixer/RGBAInput/index.tsx +172 -0
  100. package/src/ColorMixer/RGBAInput/props.ts +93 -0
  101. package/src/ColorMixer/RGBAInput/styles.ts +69 -0
  102. package/src/ColorMixer/RGBAInput/theme.ts +48 -0
  103. package/src/ColorMixer/Slider/index.tsx +242 -0
  104. package/src/ColorMixer/Slider/props.ts +94 -0
  105. package/src/ColorMixer/Slider/styles.ts +114 -0
  106. package/src/ColorMixer/Slider/theme.ts +59 -0
  107. package/src/ColorMixer/index.tsx +221 -0
  108. package/src/ColorMixer/props.ts +169 -0
  109. package/src/ColorMixer/styles.ts +51 -0
  110. package/src/ColorMixer/utils/shallowCompare.ts +35 -0
  111. package/src/ColorPicker/ColorPickerLocator.ts +124 -0
  112. package/src/ColorPicker/README.md +420 -0
  113. package/src/ColorPicker/index.tsx +609 -0
  114. package/src/ColorPicker/props.ts +293 -0
  115. package/src/ColorPicker/styles.ts +131 -0
  116. package/src/ColorPicker/theme.ts +80 -0
  117. package/src/ColorPreset/ColorPresetLocator.ts +29 -0
  118. package/src/ColorPreset/README.md +121 -0
  119. package/src/ColorPreset/index.tsx +328 -0
  120. package/src/ColorPreset/props.ts +162 -0
  121. package/src/ColorPreset/styles.ts +107 -0
  122. package/src/ColorPreset/theme.ts +58 -0
  123. package/src/index.ts +34 -0
  124. package/tsconfig.build.json +36 -0
  125. package/tsconfig.build.tsbuildinfo +1 -0
  126. package/types/ColorContrast/ColorContrastLocator.d.ts +592 -0
  127. package/types/ColorContrast/ColorContrastLocator.d.ts.map +1 -0
  128. package/types/ColorContrast/index.d.ts +61 -0
  129. package/types/ColorContrast/index.d.ts.map +1 -0
  130. package/types/ColorContrast/props.d.ts +62 -0
  131. package/types/ColorContrast/props.d.ts.map +1 -0
  132. package/types/ColorContrast/styles.d.ts +76 -0
  133. package/types/ColorContrast/styles.d.ts.map +1 -0
  134. package/types/ColorContrast/theme.d.ts +10 -0
  135. package/types/ColorContrast/theme.d.ts.map +1 -0
  136. package/types/ColorIndicator/ColorIndicatorLocator.d.ts +577 -0
  137. package/types/ColorIndicator/ColorIndicatorLocator.d.ts.map +1 -0
  138. package/types/ColorIndicator/index.d.ts +35 -0
  139. package/types/ColorIndicator/index.d.ts.map +1 -0
  140. package/types/ColorIndicator/props.d.ts +25 -0
  141. package/types/ColorIndicator/props.d.ts.map +1 -0
  142. package/types/ColorIndicator/styles.d.ts +15 -0
  143. package/types/ColorIndicator/styles.d.ts.map +1 -0
  144. package/types/ColorIndicator/theme.d.ts +11 -0
  145. package/types/ColorIndicator/theme.d.ts.map +1 -0
  146. package/types/ColorMixer/ColorMixerLocator.d.ts +566 -0
  147. package/types/ColorMixer/ColorMixerLocator.d.ts.map +1 -0
  148. package/types/ColorMixer/ColorPalette/index.d.ts +70 -0
  149. package/types/ColorMixer/ColorPalette/index.d.ts.map +1 -0
  150. package/types/ColorMixer/ColorPalette/props.d.ts +29 -0
  151. package/types/ColorMixer/ColorPalette/props.d.ts.map +1 -0
  152. package/types/ColorMixer/ColorPalette/styles.d.ts +15 -0
  153. package/types/ColorMixer/ColorPalette/styles.d.ts.map +1 -0
  154. package/types/ColorMixer/ColorPalette/theme.d.ts +10 -0
  155. package/types/ColorMixer/ColorPalette/theme.d.ts.map +1 -0
  156. package/types/ColorMixer/RGBAInput/index.d.ts +51 -0
  157. package/types/ColorMixer/RGBAInput/index.d.ts.map +1 -0
  158. package/types/ColorMixer/RGBAInput/props.d.ts +28 -0
  159. package/types/ColorMixer/RGBAInput/props.d.ts.map +1 -0
  160. package/types/ColorMixer/RGBAInput/styles.d.ts +15 -0
  161. package/types/ColorMixer/RGBAInput/styles.d.ts.map +1 -0
  162. package/types/ColorMixer/RGBAInput/theme.d.ts +10 -0
  163. package/types/ColorMixer/RGBAInput/theme.d.ts.map +1 -0
  164. package/types/ColorMixer/Slider/index.d.ts +64 -0
  165. package/types/ColorMixer/Slider/index.d.ts.map +1 -0
  166. package/types/ColorMixer/Slider/props.d.ts +26 -0
  167. package/types/ColorMixer/Slider/props.d.ts.map +1 -0
  168. package/types/ColorMixer/Slider/styles.d.ts +15 -0
  169. package/types/ColorMixer/Slider/styles.d.ts.map +1 -0
  170. package/types/ColorMixer/Slider/theme.d.ts +10 -0
  171. package/types/ColorMixer/Slider/theme.d.ts.map +1 -0
  172. package/types/ColorMixer/index.d.ts +59 -0
  173. package/types/ColorMixer/index.d.ts.map +1 -0
  174. package/types/ColorMixer/props.d.ts +91 -0
  175. package/types/ColorMixer/props.d.ts.map +1 -0
  176. package/types/ColorMixer/styles.d.ts +14 -0
  177. package/types/ColorMixer/styles.d.ts.map +1 -0
  178. package/types/ColorMixer/utils/shallowCompare.d.ts +3 -0
  179. package/types/ColorMixer/utils/shallowCompare.d.ts.map +1 -0
  180. package/types/ColorPicker/ColorPickerLocator.d.ts +4113 -0
  181. package/types/ColorPicker/ColorPickerLocator.d.ts.map +1 -0
  182. package/types/ColorPicker/index.d.ts +158 -0
  183. package/types/ColorPicker/index.d.ts.map +1 -0
  184. package/types/ColorPicker/props.d.ts +166 -0
  185. package/types/ColorPicker/props.d.ts.map +1 -0
  186. package/types/ColorPicker/styles.d.ts +17 -0
  187. package/types/ColorPicker/styles.d.ts.map +1 -0
  188. package/types/ColorPicker/theme.d.ts +10 -0
  189. package/types/ColorPicker/theme.d.ts.map +1 -0
  190. package/types/ColorPreset/ColorPresetLocator.d.ts +566 -0
  191. package/types/ColorPreset/ColorPresetLocator.d.ts.map +1 -0
  192. package/types/ColorPreset/index.d.ts +100 -0
  193. package/types/ColorPreset/index.d.ts.map +1 -0
  194. package/types/ColorPreset/props.d.ts +87 -0
  195. package/types/ColorPreset/props.d.ts.map +1 -0
  196. package/types/ColorPreset/styles.d.ts +77 -0
  197. package/types/ColorPreset/styles.d.ts.map +1 -0
  198. package/types/ColorPreset/theme.d.ts +10 -0
  199. package/types/ColorPreset/theme.d.ts.map +1 -0
  200. package/types/index.d.ts +11 -0
  201. package/types/index.d.ts.map +1 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _theme = require("../ColorIndicator/theme");
9
+
10
+ /*
11
+ * The MIT License (MIT)
12
+ *
13
+ * Copyright (c) 2015 - present Instructure, Inc.
14
+ *
15
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ * of this software and associated documentation files (the "Software"), to deal
17
+ * in the Software without restriction, including without limitation the rights
18
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ * copies of the Software, and to permit persons to whom the Software is
20
+ * furnished to do so, subject to the following conditions:
21
+ *
22
+ * The above copyright notice and this permission notice shall be included in all
23
+ * copies or substantial portions of the Software.
24
+ *
25
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ * SOFTWARE.
32
+ */
33
+
34
+ /**
35
+ * Generates the theme object for the component from the theme and provided additional information
36
+ * @param {Object} theme The actual theme object.
37
+ * @return {Object} The final theme object with the overrides and component variables
38
+ */
39
+ const generateComponentTheme = theme => {
40
+ const colors = theme.colors,
41
+ borders = theme.borders,
42
+ spacing = theme.spacing,
43
+ typography = theme.typography;
44
+ const componentVariables = {
45
+ hashMarkColor: colors === null || colors === void 0 ? void 0 : colors.ash,
46
+ warningIconColor: colors === null || colors === void 0 ? void 0 : colors.textWarning,
47
+ errorIconColor: colors === null || colors === void 0 ? void 0 : colors.textDanger,
48
+ successIconColor: colors === null || colors === void 0 ? void 0 : colors.textSuccess,
49
+ popoverSeparatorColor: colors === null || colors === void 0 ? void 0 : colors.tiara,
50
+ popoverFooterColor: colors === null || colors === void 0 ? void 0 : colors.porcelain,
51
+ smallBorder: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
52
+ smallSpacing: spacing === null || spacing === void 0 ? void 0 : spacing.small,
53
+ xSmallSpacing: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
54
+ xxSmallSpacing: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
55
+ xxxSmallSpacing: spacing === null || spacing === void 0 ? void 0 : spacing.xxxSmall,
56
+ xLargeFontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeXLarge,
57
+ checkerboardBackgroundColor: colors.white,
58
+ checkerboardBackgroundImage: `linear-gradient(45deg, ${colors.tiara} 25%, transparent 25%),
59
+ linear-gradient(-45deg, ${colors.tiara} 25%, transparent 25%),
60
+ linear-gradient(45deg, transparent 75%, ${colors.tiara} 75%),
61
+ linear-gradient(-45deg, transparent 75%, ${colors.tiara} 75%)`,
62
+ checkerboardBackgroundSize: '.5rem .5rem',
63
+ checkerboardBackgroundPosition: '0 0, 0 .25rem, .25rem -0.25rem, -0.25rem 0px',
64
+ colorIndicatorBorderColor: _theme.colorIndicatorBorderColor,
65
+ simpleColorContainerLeftPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
66
+ hashMarkContainerLineHeight: typography === null || typography === void 0 ? void 0 : typography.fontSizeXLarge,
67
+ hashMarkContainerLeftPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
68
+ hashMarkContainerRightPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xxxSmall,
69
+ errorIconsRightPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
70
+ successIconRightPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
71
+ labelRightMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
72
+ popoverContentPadding: spacing === null || spacing === void 0 ? void 0 : spacing.small,
73
+ popoverContentBlockBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
74
+ popoverContentBlockTopMargin: spacing === null || spacing === void 0 ? void 0 : spacing.small,
75
+ popoverContentBlockBottomMargin: spacing === null || spacing === void 0 ? void 0 : spacing.small,
76
+ popoverFooterPadding: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall,
77
+ popoverFooterTopBorderWidth: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
78
+ colorMixerButtonContainerLeftMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xSmall
79
+ };
80
+ return { ...componentVariables
81
+ };
82
+ };
83
+
84
+ var _default = generateComponentTheme;
85
+ exports.default = _default;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ColorPresetLocator = void 0;
7
+
8
+ var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
9
+
10
+ var _index = require("./index");
11
+
12
+ /*
13
+ * The MIT License (MIT)
14
+ *
15
+ * Copyright (c) 2015 - present Instructure, Inc.
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ * of this software and associated documentation files (the "Software"), to deal
19
+ * in the Software without restriction, including without limitation the rights
20
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ * copies of the Software, and to permit persons to whom the Software is
22
+ * furnished to do so, subject to the following conditions:
23
+ *
24
+ * The above copyright notice and this permission notice shall be included in all
25
+ * copies or substantial portions of the Software.
26
+ *
27
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ * SOFTWARE.
34
+ */
35
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
36
+ const ColorPresetLocator = (0, _locator.locator)(_index.ColorPreset.selector);
37
+ exports.ColorPresetLocator = ColorPresetLocator;
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.ColorPreset = void 0;
9
+
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
+
12
+ var _react = require("react");
13
+
14
+ var _emotion = require("@instructure/emotion");
15
+
16
+ var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
17
+
18
+ var _testable = require("@instructure/ui-testable/lib/testable.js");
19
+
20
+ var _uiColorUtils = require("@instructure/ui-color-utils");
21
+
22
+ var _IconButton = require("@instructure/ui-buttons/lib/IconButton");
23
+
24
+ var _Button = require("@instructure/ui-buttons/lib/Button");
25
+
26
+ var _View = require("@instructure/ui-view/lib/View");
27
+
28
+ var _Tooltip = require("@instructure/ui-tooltip/lib/Tooltip");
29
+
30
+ var _Popover = require("@instructure/ui-popover/lib/Popover");
31
+
32
+ var _Text = require("@instructure/ui-text/lib/Text");
33
+
34
+ var _Drilldown = require("@instructure/ui-drilldown/lib/Drilldown");
35
+
36
+ var _IconAddLine2 = require("@instructure/ui-icons/lib/IconAddLine.js");
37
+
38
+ var _IconCheckDarkSolid = require("@instructure/ui-icons/lib/IconCheckDarkSolid.js");
39
+
40
+ var _ColorIndicator = require("../ColorIndicator");
41
+
42
+ var _ColorMixer = require("../ColorMixer");
43
+
44
+ var _ColorContrast = require("../ColorContrast");
45
+
46
+ var _styles = _interopRequireDefault(require("./styles"));
47
+
48
+ var _theme = _interopRequireDefault(require("./theme"));
49
+
50
+ var _props = require("./props");
51
+
52
+ const _excluded = ["disabled", "onSelect", "selected", "styles", "label", "colorMixerSettings", "colors", "elementRef"];
53
+
54
+ var _dec, _dec2, _class, _class2, _IconAddLine, _Drilldown$Option, _Drilldown$Option2;
55
+
56
+ /**
57
+ ---
58
+ category: components
59
+ ---
60
+ @tsProps
61
+ **/
62
+ let ColorPreset = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ColorPreset extends _react.Component {
63
+ constructor(props) {
64
+ super(props);
65
+ this.ref = null;
66
+
67
+ this.handleRef = el => {
68
+ const elementRef = this.props.elementRef;
69
+ this.ref = el;
70
+
71
+ if (typeof elementRef === 'function') {
72
+ elementRef(el);
73
+ }
74
+ };
75
+
76
+ this.onMenuItemSelected = color => (_e, args) => {
77
+ if (args.value === 'select') {
78
+ this.props.onSelect(color);
79
+ }
80
+
81
+ if (args.value === 'remove') {
82
+ var _this$props, _this$props$colorMixe;
83
+
84
+ (_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$colorMixe = _this$props.colorMixerSettings) === null || _this$props$colorMixe === void 0 ? void 0 : _this$props$colorMixe.onPresetChange(this.props.colors.filter(clr => clr !== color));
85
+ }
86
+ };
87
+
88
+ this.renderAddNewPresetButton = () => {
89
+ var _this$props2, _this$props2$styles, _this$props$styles, _this$props3, _this$props3$colorMix, _this$props3$colorMix2, _this$props4, _this$props4$colorMix, _this$props$styles2, _this$props$styles3;
90
+
91
+ return (0, _emotion.jsx)(_Popover.Popover, {
92
+ renderTrigger: (0, _emotion.jsx)("div", {
93
+ css: (_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$styles = _this$props2.styles) === null || _this$props2$styles === void 0 ? void 0 : _this$props2$styles.addNewPresetButton
94
+ }, (0, _emotion.jsx)(_IconButton.IconButton, {
95
+ disabled: this.props.disabled,
96
+ screenReaderLabel: this.props.colorMixerSettings.addNewPresetButtonScreenReaderLabel
97
+ }, _IconAddLine || (_IconAddLine = (0, _emotion.jsx)(_IconAddLine2.IconAddLine, null)))),
98
+ isShowingContent: this.state.openAddNew,
99
+ onShowContent: () => {
100
+ if (this.props.disabled) return;
101
+ this.setState({
102
+ openAddNew: true
103
+ });
104
+ },
105
+ onHideContent: () => {
106
+ this.setState({
107
+ openAddNew: false
108
+ });
109
+ },
110
+ on: "click",
111
+ screenReaderLabel: this.props.popoverScreenReaderLabel,
112
+ shouldContainFocus: true,
113
+ shouldReturnFocus: true,
114
+ shouldCloseOnDocumentClick: true,
115
+ offsetY: 16,
116
+ mountNode: () => document.getElementById('main')
117
+ }, (0, _emotion.jsx)("div", {
118
+ css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.popoverContent
119
+ }, (0, _emotion.jsx)(_ColorMixer.ColorMixer, {
120
+ value: (0, _uiColorUtils.colorToHex8)(this.state.newColor),
121
+ onChange: newColor => this.setState({
122
+ newColor: (0, _uiColorUtils.colorToRGB)(newColor)
123
+ }),
124
+ withAlpha: (_this$props3 = this.props) === null || _this$props3 === void 0 ? void 0 : (_this$props3$colorMix = _this$props3.colorMixerSettings) === null || _this$props3$colorMix === void 0 ? void 0 : (_this$props3$colorMix2 = _this$props3$colorMix.colorMixer) === null || _this$props3$colorMix2 === void 0 ? void 0 : _this$props3$colorMix2.withAlpha,
125
+ rgbRedInputScreenReaderLabel: this.props.colorMixerSettings.colorMixer.rgbRedInputScreenReaderLabel,
126
+ rgbGreenInputScreenReaderLabel: this.props.colorMixerSettings.colorMixer.rgbGreenInputScreenReaderLabel,
127
+ rgbBlueInputScreenReaderLabel: this.props.colorMixerSettings.colorMixer.rgbBlueInputScreenReaderLabel,
128
+ rgbAlphaInputScreenReaderLabel: this.props.colorMixerSettings.colorMixer.rgbAlphaInputScreenReaderLabel,
129
+ colorSliderNavigationExplanationScreenReaderLabel: this.props.colorMixerSettings.colorMixer.colorSliderNavigationExplanationScreenReaderLabel,
130
+ alphaSliderNavigationExplanationScreenReaderLabel: this.props.colorMixerSettings.colorMixer.alphaSliderNavigationExplanationScreenReaderLabel,
131
+ colorPaletteNavigationExplanationScreenReaderLabel: this.props.colorMixerSettings.colorMixer.colorPaletteNavigationExplanationScreenReaderLabel
132
+ }), ((_this$props4 = this.props) === null || _this$props4 === void 0 ? void 0 : (_this$props4$colorMix = _this$props4.colorMixerSettings) === null || _this$props4$colorMix === void 0 ? void 0 : _this$props4$colorMix.colorContrast) && (0, _emotion.jsx)("div", {
133
+ css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.popoverContrastBlock
134
+ }, (0, _emotion.jsx)(_ColorContrast.ColorContrast, {
135
+ firstColor: this.props.colorMixerSettings.colorContrast.firstColor,
136
+ secondColor: (0, _uiColorUtils.colorToHex8)(this.state.newColor),
137
+ label: this.props.colorMixerSettings.colorContrast.label,
138
+ successLabel: this.props.colorMixerSettings.colorContrast.successLabel,
139
+ failureLabel: this.props.colorMixerSettings.colorContrast.failureLabel,
140
+ normalTextLabel: this.props.colorMixerSettings.colorContrast.normalTextLabel,
141
+ largeTextLabel: this.props.colorMixerSettings.colorContrast.largeTextLabel,
142
+ graphicsTextLabel: this.props.colorMixerSettings.colorContrast.graphicsTextLabel,
143
+ firstColorLabel: this.props.colorMixerSettings.colorContrast.firstColorLabel,
144
+ secondColorLabel: this.props.colorMixerSettings.colorContrast.secondColorLabel
145
+ }))), (0, _emotion.jsx)("div", {
146
+ css: (_this$props$styles3 = this.props.styles) === null || _this$props$styles3 === void 0 ? void 0 : _this$props$styles3.popoverFooter
147
+ }, (0, _emotion.jsx)(_Button.Button, {
148
+ onClick: () => {
149
+ var _this$props5, _this$props5$colorMix;
150
+
151
+ (_this$props5 = this.props) === null || _this$props5 === void 0 ? void 0 : (_this$props5$colorMix = _this$props5.colorMixerSettings) === null || _this$props5$colorMix === void 0 ? void 0 : _this$props5$colorMix.onPresetChange([(0, _uiColorUtils.colorToHex8)(this.state.newColor), ...this.props.colors]);
152
+ this.setState({
153
+ openAddNew: false
154
+ });
155
+ },
156
+ color: "primary",
157
+ margin: "0 xx-small 0 xx-small"
158
+ }, "Add"), (0, _emotion.jsx)(_Button.Button, {
159
+ onClick: () => this.setState({
160
+ openAddNew: false
161
+ }),
162
+ color: "secondary",
163
+ margin: "0 xx-small 0 xx-small"
164
+ }, "Close")));
165
+ };
166
+
167
+ this.renderColorIndicator = (color, selectOnClick) => {
168
+ var _this$props6, _this$props6$styles;
169
+
170
+ return (0, _emotion.jsx)(_Tooltip.Tooltip, {
171
+ renderTip: (0, _emotion.jsx)("div", null, color)
172
+ }, (0, _emotion.jsx)(_View.View, Object.assign({
173
+ disabled: this.props.disabled,
174
+ position: "relative",
175
+ width: "2.375rem",
176
+ height: "2.375rem",
177
+ background: "transparent",
178
+ margin: "xx-small",
179
+ display: "inline-block",
180
+ borderRadius: "medium",
181
+ borderWidth: "0",
182
+ padding: "0",
183
+ as: "button"
184
+ }, selectOnClick ? {
185
+ onClick: () => this.props.onSelect(color)
186
+ } : {}, this.props.selected === color ? {
187
+ 'aria-label': 'selected'
188
+ } : {}, {
189
+ role: "presentation"
190
+ }), (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_ColorIndicator.ColorIndicator, {
191
+ color: color,
192
+ shape: "rectangle"
193
+ }), this.props.selected === color && (0, _emotion.jsx)("div", {
194
+ css: (_this$props6 = this.props) === null || _this$props6 === void 0 ? void 0 : (_this$props6$styles = _this$props6.styles) === null || _this$props6$styles === void 0 ? void 0 : _this$props6$styles.selectedIndicator
195
+ }, (0, _emotion.jsx)(_IconCheckDarkSolid.IconCheckDarkSolid, {
196
+ themeOverride: {
197
+ sizeXSmall: '0.8rem'
198
+ },
199
+ size: "x-small"
200
+ })))));
201
+ };
202
+
203
+ this.renderSettingsMenu = (color, index) => (0, _emotion.jsx)(_Drilldown.Drilldown, {
204
+ onSelect: this.onMenuItemSelected(color),
205
+ trigger: this.renderColorIndicator(color),
206
+ key: `color-preset-color-${index}`,
207
+ rootPageId: "root",
208
+ width: "10rem",
209
+ offsetY: "15rem"
210
+ }, (0, _emotion.jsx)(_Drilldown.Drilldown.Page, {
211
+ withoutHeaderSeparator: true,
212
+ id: "root",
213
+ renderTitle: color
214
+ }, _Drilldown$Option || (_Drilldown$Option = (0, _emotion.jsx)(_Drilldown.Drilldown.Option, {
215
+ value: "select",
216
+ id: "select"
217
+ }, "Select")), _Drilldown$Option2 || (_Drilldown$Option2 = (0, _emotion.jsx)(_Drilldown.Drilldown.Option, {
218
+ value: "remove",
219
+ id: "remove"
220
+ }, "Remove"))));
221
+
222
+ this.state = {
223
+ openEditor: false,
224
+ openAddNew: false,
225
+ newColor: {
226
+ r: 51,
227
+ g: 99,
228
+ b: 42,
229
+ a: 1
230
+ }
231
+ };
232
+ }
233
+
234
+ componentDidMount() {
235
+ var _this$props$makeStyle, _this$props7;
236
+
237
+ (_this$props$makeStyle = (_this$props7 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props7);
238
+ }
239
+
240
+ componentDidUpdate() {
241
+ var _this$props$makeStyle2, _this$props8;
242
+
243
+ (_this$props$makeStyle2 = (_this$props8 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props8);
244
+ }
245
+
246
+ render() {
247
+ const _this$props9 = this.props,
248
+ disabled = _this$props9.disabled,
249
+ onSelect = _this$props9.onSelect,
250
+ selected = _this$props9.selected,
251
+ styles = _this$props9.styles,
252
+ label = _this$props9.label,
253
+ colorMixerSettings = _this$props9.colorMixerSettings,
254
+ colors = _this$props9.colors,
255
+ elementRef = _this$props9.elementRef,
256
+ props = (0, _objectWithoutProperties2.default)(_this$props9, _excluded);
257
+ return (0, _emotion.jsx)("div", Object.assign({}, (0, _passthroughProps.passthroughProps)(props), {
258
+ ref: this.handleRef,
259
+ css: styles === null || styles === void 0 ? void 0 : styles.colorPreset
260
+ }), label && (0, _emotion.jsx)("div", {
261
+ css: styles === null || styles === void 0 ? void 0 : styles.label
262
+ }, (0, _emotion.jsx)(_Text.Text, {
263
+ weight: "bold"
264
+ }, label)), typeof (colorMixerSettings === null || colorMixerSettings === void 0 ? void 0 : colorMixerSettings.onPresetChange) === 'function' && this.renderAddNewPresetButton(), colors.map((color, index) => typeof (colorMixerSettings === null || colorMixerSettings === void 0 ? void 0 : colorMixerSettings.onPresetChange) === 'function' ? this.renderSettingsMenu(color, index) : (0, _emotion.jsx)("div", {
265
+ key: `color-preset-color-${index}`
266
+ }, this.renderColorIndicator(color, true))));
267
+ }
268
+
269
+ }, _class2.displayName = "ColorPreset", _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.componentId = 'ColorPreset', _class2.defaultProps = {
270
+ disabled: false
271
+ }, _class2)) || _class) || _class);
272
+ exports.ColorPreset = ColorPreset;
273
+ var _default = ColorPreset;
274
+ exports.default = _default;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.propTypes = exports.allowedProps = void 0;
9
+
10
+ var _propTypes = _interopRequireDefault(require("prop-types"));
11
+
12
+ /*
13
+ * The MIT License (MIT)
14
+ *
15
+ * Copyright (c) 2015 - present Instructure, Inc.
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ * of this software and associated documentation files (the "Software"), to deal
19
+ * in the Software without restriction, including without limitation the rights
20
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ * copies of the Software, and to permit persons to whom the Software is
22
+ * furnished to do so, subject to the following conditions:
23
+ *
24
+ * The above copyright notice and this permission notice shall be included in all
25
+ * copies or substantial portions of the Software.
26
+ *
27
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
+ * SOFTWARE.
34
+ */
35
+ const propTypes = {
36
+ colors: _propTypes.default.array.isRequired,
37
+ disabled: _propTypes.default.bool,
38
+ elementRef: _propTypes.default.func,
39
+ label: _propTypes.default.string,
40
+ colorMixerSettings: _propTypes.default.object,
41
+ onSelect: _propTypes.default.func.isRequired,
42
+ popoverScreenReaderLabel: _propTypes.default.string,
43
+ selected: _propTypes.default.string.isRequired
44
+ };
45
+ exports.propTypes = propTypes;
46
+ const allowedProps = ['colors', 'disabled', 'elementRef', 'label', 'colorMixerSettings', 'onSelect', 'popoverScreenReaderLabel', 'selected'];
47
+ exports.allowedProps = allowedProps;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ /*
9
+ * The MIT License (MIT)
10
+ *
11
+ * Copyright (c) 2015 - present Instructure, Inc.
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ * of this software and associated documentation files (the "Software"), to deal
15
+ * in the Software without restriction, including without limitation the rights
16
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the Software is
18
+ * furnished to do so, subject to the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be included in all
21
+ * copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ * SOFTWARE.
30
+ */
31
+
32
+ /**
33
+ * ---
34
+ * private: true
35
+ * ---
36
+ * Generates the style object from the theme and provided additional information
37
+ * @param {Object} componentTheme The theme variable object.
38
+ * @param {Object} props the props of the component, the style is applied to
39
+ * @param {Object} state the state of the component, the style is applied to
40
+ * @return {Object} The final style object, which will be used in the component
41
+ */
42
+ const generateStyle = (componentTheme, props) => {
43
+ const colorMixerSettings = props.colorMixerSettings;
44
+ return {
45
+ colorPreset: {
46
+ label: 'colorPreset',
47
+ display: 'flex',
48
+ flexWrap: 'wrap',
49
+ width: '17rem'
50
+ },
51
+ addNewPresetButton: {
52
+ label: 'colorPreset__addNewPresetButton',
53
+ width: '2.375rem',
54
+ height: '2.375rem',
55
+ margin: componentTheme.xxSmallSpacing
56
+ },
57
+ selectedIndicator: {
58
+ label: 'colorPreset__selectedIndicator',
59
+ width: '1.25rem',
60
+ height: '1.25rem',
61
+ borderStyle: 'solid',
62
+ borderColor: componentTheme.selectedIndicatorBorderColor,
63
+ borderWidth: componentTheme.smallBorder,
64
+ borderRadius: '1.25rem',
65
+ boxSizing: 'border-box',
66
+ position: 'relative',
67
+ insetInlineStart: '1.5rem',
68
+ bottom: '2.75rem',
69
+ backgroundColor: componentTheme.selectedIndicatorBackgroundColor,
70
+ display: 'flex',
71
+ alignItems: 'center',
72
+ justifyContent: 'center'
73
+ },
74
+ popoverContent: {
75
+ label: 'colorPreset__popoverContent',
76
+ padding: componentTheme.smallSpacing,
77
+ maxHeight: (colorMixerSettings === null || colorMixerSettings === void 0 ? void 0 : colorMixerSettings.maxHeight) || '100vh',
78
+ overflow: 'scroll'
79
+ },
80
+ popoverDivider: {
81
+ label: 'colorPreset__popoverDivider',
82
+ borderTop: 'solid',
83
+ borderWidth: componentTheme.smallBorder,
84
+ borderColor: componentTheme.popoverDividerColor,
85
+ margin: `${componentTheme.smallSpacing} 0 ${componentTheme.smallSpacing} 0`
86
+ },
87
+ popoverContrastBlock: {
88
+ label: 'colorPreset__popoverContrastBlock',
89
+ borderTop: 'solid',
90
+ borderWidth: componentTheme.smallBorder,
91
+ borderColor: componentTheme.popoverDividerColor,
92
+ margin: `${componentTheme.smallSpacing} 0 ${componentTheme.smallSpacing} 0`
93
+ },
94
+ popoverFooter: {
95
+ label: 'colorPreset__popoverFooter',
96
+ backgroundColor: componentTheme.popoverFooterColor,
97
+ display: 'flex',
98
+ flexDirection: 'row-reverse',
99
+ padding: componentTheme.smallSpacing
100
+ },
101
+ label: {
102
+ label: 'colorPreset__label',
103
+ width: '100%',
104
+ margin: componentTheme.xxSmallSpacing
105
+ }
106
+ };
107
+ };
108
+
109
+ var _default = generateStyle;
110
+ exports.default = _default;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ /*
9
+ * The MIT License (MIT)
10
+ *
11
+ * Copyright (c) 2015 - present Instructure, Inc.
12
+ *
13
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ * of this software and associated documentation files (the "Software"), to deal
15
+ * in the Software without restriction, including without limitation the rights
16
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ * copies of the Software, and to permit persons to whom the Software is
18
+ * furnished to do so, subject to the following conditions:
19
+ *
20
+ * The above copyright notice and this permission notice shall be included in all
21
+ * copies or substantial portions of the Software.
22
+ *
23
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ * SOFTWARE.
30
+ */
31
+
32
+ /**
33
+ * Generates the theme object for the component from the theme and provided additional information
34
+ * @param {Object} theme The actual theme object.
35
+ * @return {Object} The final theme object with the overrides and component variables
36
+ */
37
+ const generateComponentTheme = theme => {
38
+ const colors = theme.colors,
39
+ borders = theme.borders,
40
+ spacing = theme.spacing;
41
+ const componentVariables = {
42
+ xxSmallSpacing: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
43
+ smallSpacing: spacing === null || spacing === void 0 ? void 0 : spacing.small,
44
+ selectedIndicatorBackgroundColor: colors.white,
45
+ selectedIndicatorBorderColor: colors.licorice,
46
+ popoverDividerColor: colors === null || colors === void 0 ? void 0 : colors.tiara,
47
+ smallBorder: borders === null || borders === void 0 ? void 0 : borders.widthSmall,
48
+ popoverFooterColor: colors === null || colors === void 0 ? void 0 : colors.porcelain,
49
+ checkerboardBackgroundImage: `linear-gradient(45deg, ${colors.tiara} 25%, transparent 25%),
50
+ linear-gradient(-45deg, ${colors.tiara} 25%, transparent 25%),
51
+ linear-gradient(45deg, transparent 75%, ${colors.tiara} 75%),
52
+ linear-gradient(-45deg, transparent 75%, ${colors.tiara} 75%)`,
53
+ checkerboardBackgroundSize: '.5rem .5rem',
54
+ checkerboardBackgroundPosition: '0 0, 0 .25rem, .25rem -0.25rem, -0.25rem 0px'
55
+ };
56
+ return { ...componentVariables
57
+ };
58
+ };
59
+
60
+ var _default = generateComponentTheme;
61
+ exports.default = _default;
package/lib/index.js ADDED
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ColorContrast", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ColorContrast.ColorContrast;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ColorIndicator", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _ColorIndicator.ColorIndicator;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "ColorMixer", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _ColorMixer.ColorMixer;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "ColorPicker", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _ColorPicker.ColorPicker;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "ColorPreset", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _ColorPreset.ColorPreset;
34
+ }
35
+ });
36
+
37
+ var _ColorPicker = require("./ColorPicker");
38
+
39
+ var _ColorMixer = require("./ColorMixer");
40
+
41
+ var _ColorPreset = require("./ColorPreset");
42
+
43
+ var _ColorContrast = require("./ColorContrast");
44
+
45
+ var _ColorIndicator = require("./ColorIndicator");
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}