@zendeskgarden/react-colorpickers 8.62.1 → 8.63.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/dist/index.cjs.js CHANGED
@@ -7,8 +7,6 @@
7
7
 
8
8
  'use strict';
9
9
 
10
- Object.defineProperty(exports, '__esModule', { value: true });
11
-
12
10
  var React = require('react');
13
11
  var PropTypes = require('prop-types');
14
12
  var reactForms = require('@zendeskgarden/react-forms');
@@ -23,7 +21,7 @@ var containerUtilities = require('@zendeskgarden/container-utilities');
23
21
  var reactTooltips = require('@zendeskgarden/react-tooltips');
24
22
  var containerGrid = require('@zendeskgarden/container-grid');
25
23
 
26
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
27
25
 
28
26
  function _interopNamespace(e) {
29
27
  if (e && e.__esModule) return e;
@@ -39,16 +37,15 @@ function _interopNamespace(e) {
39
37
  }
40
38
  });
41
39
  }
42
- n["default"] = e;
40
+ n.default = e;
43
41
  return Object.freeze(n);
44
42
  }
45
43
 
46
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
47
44
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
48
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
49
- var throttle__default = /*#__PURE__*/_interopDefaultLegacy(throttle);
50
- var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
51
- var isEqual__default = /*#__PURE__*/_interopDefaultLegacy(isEqual);
45
+ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
46
+ var throttle__default = /*#__PURE__*/_interopDefault(throttle);
47
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
48
+ var isEqual__default = /*#__PURE__*/_interopDefault(isEqual);
52
49
 
53
50
  function _extends$2() {
54
51
  _extends$2 = Object.assign ? Object.assign.bind() : function (target) {
@@ -153,9 +150,9 @@ const COMPONENT_ID$l = 'colorpickers.colorpicker';
153
150
  const getColorPickerWidth = props => {
154
151
  return props.isOpaque ? 268 : 312;
155
152
  };
156
- const StyledColorPicker = styled__default["default"].div.attrs({
153
+ const StyledColorPicker = styled__default.default.div.attrs({
157
154
  'data-garden-id': COMPONENT_ID$l,
158
- 'data-garden-version': '8.62.1'
155
+ 'data-garden-version': '8.63.0'
159
156
  }).withConfig({
160
157
  displayName: "StyledColorPicker",
161
158
  componentId: "sc-1donyl9-0"
@@ -288,9 +285,9 @@ const sizeStyles$2 = props => {
288
285
  `)};
289
286
  `;
290
287
  };
291
- const StyledRange = styled__default["default"](reactForms.Range).attrs({
288
+ const StyledRange = styled__default.default(reactForms.Range).attrs({
292
289
  'data-garden-id': COMPONENT_ID$k,
293
- 'data-garden-version': '8.62.1',
290
+ 'data-garden-version': '8.63.0',
294
291
  hasLowerTrack: false
295
292
  }).withConfig({
296
293
  displayName: "StyledRange",
@@ -303,9 +300,9 @@ StyledRange.defaultProps = {
303
300
  };
304
301
 
305
302
  const COMPONENT_ID$j = 'colorpickers.colorpicker_hue';
306
- const StyledHueRange = styled__default["default"](StyledRange).attrs({
303
+ const StyledHueRange = styled__default.default(StyledRange).attrs({
307
304
  'data-garden-id': COMPONENT_ID$j,
308
- 'data-garden-version': '8.62.1'
305
+ 'data-garden-version': '8.63.0'
309
306
  }).withConfig({
310
307
  displayName: "StyledHueRange",
311
308
  componentId: "sc-13ly7p-0"
@@ -343,13 +340,13 @@ const background$3 = props => {
343
340
  const gradientBackground = `linear-gradient(${direction}, ${fromColor}, ${toColor}) 0 ${positionY}px / 100% ${height}px no-repeat`;
344
341
  return `${gradientBackground}, ${checkeredBackground(props.theme, height, positionY, 'repeat-x')}`;
345
342
  };
346
- const StyledAlphaRange = styled__default["default"](StyledRange).attrs(props => ({
343
+ const StyledAlphaRange = styled__default.default(StyledRange).attrs(props => ({
347
344
  style: {
348
345
  backgroundSize: 'auto',
349
346
  background: background$3(props)
350
347
  },
351
348
  'data-garden-id': COMPONENT_ID$i,
352
- 'data-garden-version': '8.62.1'
349
+ 'data-garden-version': '8.63.0'
353
350
  })).withConfig({
354
351
  displayName: "StyledAlphaRange",
355
352
  componentId: "sc-kuh2xc-0"
@@ -368,12 +365,12 @@ const background$2 = props => {
368
365
  }
369
366
  return retVal;
370
367
  };
371
- const StyledPreview = styled__default["default"].div.attrs(props => ({
368
+ const StyledPreview = styled__default.default.div.attrs(props => ({
372
369
  style: {
373
370
  background: background$2(props)
374
371
  },
375
372
  'data-garden-id': COMPONENT_ID$h,
376
- 'data-garden-version': '8.62.1',
373
+ 'data-garden-version': '8.63.0',
377
374
  'data-test-id': 'preview-box'
378
375
  })).withConfig({
379
376
  displayName: "StyledPreview",
@@ -393,9 +390,9 @@ const background$1 = props => {
393
390
  const color = `linear-gradient(${colorValue}, ${colorValue})`;
394
391
  return `${black}, ${white}, ${color}`;
395
392
  };
396
- const StyledColorWell = styled__default["default"].div.attrs(props => ({
393
+ const StyledColorWell = styled__default.default.div.attrs(props => ({
397
394
  'data-garden-id': COMPONENT_ID$g,
398
- 'data-garden-version': '8.62.1',
395
+ 'data-garden-version': '8.63.0',
399
396
  'data-test-id': 'colorwell',
400
397
  style: {
401
398
  background: background$1(props)
@@ -421,9 +418,9 @@ const sizeStyles$1 = theme => {
421
418
  height: ${size}px;
422
419
  `;
423
420
  };
424
- const StyledColorWellThumb = styled__default["default"].div.attrs(props => ({
421
+ const StyledColorWellThumb = styled__default.default.div.attrs(props => ({
425
422
  'data-garden-id': COMPONENT_ID$f,
426
- 'data-garden-version': '8.62.1',
423
+ 'data-garden-version': '8.63.0',
427
424
  'data-test-id': 'colorwell-thumb',
428
425
  style: {
429
426
  top: `${props.top}%`,
@@ -438,9 +435,9 @@ StyledColorWellThumb.defaultProps = {
438
435
  };
439
436
 
440
437
  const COMPONENT_ID$e = 'colorpickers.colorpicker_slider_group';
441
- const StyledSliderGroup = styled__default["default"].div.attrs({
438
+ const StyledSliderGroup = styled__default.default.div.attrs({
442
439
  'data-garden-id': COMPONENT_ID$e,
443
- 'data-garden-version': '8.62.1'
440
+ 'data-garden-version': '8.63.0'
444
441
  }).withConfig({
445
442
  displayName: "StyledSliderGroup",
446
443
  componentId: "sc-rsq0ak-0"
@@ -450,9 +447,9 @@ StyledSliderGroup.defaultProps = {
450
447
  };
451
448
 
452
449
  const COMPONENT_ID$d = 'colorpickers.colorpicker_hex_field';
453
- const StyledHexField = styled__default["default"](reactForms.Field).attrs({
450
+ const StyledHexField = styled__default.default(reactForms.Field).attrs({
454
451
  'data-garden-id': COMPONENT_ID$d,
455
- 'data-garden-version': '8.62.1',
452
+ 'data-garden-version': '8.63.0',
456
453
  spellcheck: false
457
454
  }).withConfig({
458
455
  displayName: "StyledHexField",
@@ -463,9 +460,9 @@ StyledHexField.defaultProps = {
463
460
  };
464
461
 
465
462
  const COMPONENT_ID$c = 'colorpickers.colorpicker_label';
466
- const StyledLabel = styled__default["default"](reactForms.Label).attrs({
463
+ const StyledLabel = styled__default.default(reactForms.Label).attrs({
467
464
  'data-garden-id': COMPONENT_ID$c,
468
- 'data-garden-version': '8.62.1'
465
+ 'data-garden-version': '8.63.0'
469
466
  }).withConfig({
470
467
  displayName: "StyledLabel",
471
468
  componentId: "sc-1klhp6m-0"
@@ -475,9 +472,9 @@ StyledLabel.defaultProps = {
475
472
  };
476
473
 
477
474
  const COMPONENT_ID$b = 'colorpickers.colorpicker_input';
478
- const StyledInput = styled__default["default"](reactForms.Input).attrs({
475
+ const StyledInput = styled__default.default(reactForms.Input).attrs({
479
476
  'data-garden-id': COMPONENT_ID$b,
480
- 'data-garden-version': '8.62.1',
477
+ 'data-garden-version': '8.63.0',
481
478
  focusInset: false
482
479
  }).withConfig({
483
480
  displayName: "StyledInput",
@@ -488,9 +485,9 @@ StyledInput.defaultProps = {
488
485
  };
489
486
 
490
487
  const COMPONENT_ID$a = 'colorpickers.colorpicker_input_group';
491
- const StyledInputGroup = styled__default["default"].div.attrs({
488
+ const StyledInputGroup = styled__default.default.div.attrs({
492
489
  'data-garden-id': COMPONENT_ID$a,
493
- 'data-garden-version': '8.62.1'
490
+ 'data-garden-version': '8.63.0'
494
491
  }).withConfig({
495
492
  displayName: "StyledInputGroup",
496
493
  componentId: "sc-mmy93w-0"
@@ -509,9 +506,9 @@ const sizeStyles = theme => {
509
506
  min-width: ${width};
510
507
  `;
511
508
  };
512
- const StyledRGBAField = styled__default["default"](reactForms.Field).attrs({
509
+ const StyledRGBAField = styled__default.default(reactForms.Field).attrs({
513
510
  'data-garden-id': COMPONENT_ID$9,
514
- 'data-garden-version': '8.62.1'
511
+ 'data-garden-version': '8.63.0'
515
512
  }).withConfig({
516
513
  displayName: "StyledRGBAField",
517
514
  componentId: "sc-ibo1yw-0"
@@ -521,9 +518,9 @@ StyledRGBAField.defaultProps = {
521
518
  };
522
519
 
523
520
  const COMPONENT_ID$8 = 'colorpickers.colorpicker_sliders';
524
- const StyledSliders = styled__default["default"].div.attrs({
521
+ const StyledSliders = styled__default.default.div.attrs({
525
522
  'data-garden-id': COMPONENT_ID$8,
526
- 'data-garden-version': '8.62.1'
523
+ 'data-garden-version': '8.63.0'
527
524
  }).withConfig({
528
525
  displayName: "StyledSliders",
529
526
  componentId: "sc-aclca2-0"
@@ -533,10 +530,10 @@ StyledSliders.defaultProps = {
533
530
  };
534
531
 
535
532
  const COMPONENT_ID$7 = 'colorpickers.colordialog_button';
536
- const StyledButton = styled__default["default"](reactButtons.Button).attrs({
533
+ const StyledButton = styled__default.default(reactButtons.Button).attrs({
537
534
  isNeutral: true,
538
535
  'data-garden-id': COMPONENT_ID$7,
539
- 'data-garden-version': '8.62.1'
536
+ 'data-garden-version': '8.63.0'
540
537
  }).withConfig({
541
538
  displayName: "StyledButton",
542
539
  componentId: "sc-101xjve-0"
@@ -566,12 +563,12 @@ const background = props => {
566
563
  }
567
564
  return `linear-gradient(${color}, ${color})`;
568
565
  };
569
- const StyledButtonPreview = styled__default["default"].span.attrs(props => ({
566
+ const StyledButtonPreview = styled__default.default.span.attrs(props => ({
570
567
  style: {
571
568
  background: `${background(props)}, ${checkeredBackground(props.theme, 8)}`
572
569
  },
573
570
  'data-garden-id': COMPONENT_ID$6,
574
- 'data-garden-version': '8.62.1',
571
+ 'data-garden-version': '8.63.0',
575
572
  'data-test-id': 'dialog-preview'
576
573
  })).withConfig({
577
574
  displayName: "StyledButtonPreview",
@@ -582,9 +579,9 @@ StyledButtonPreview.defaultProps = {
582
579
  };
583
580
 
584
581
  const COMPONENT_ID$5 = 'colorpickers.colordialog_tooltipmodal';
585
- const StyledTooltipModal = styled__default["default"](reactModals.TooltipModal).attrs({
582
+ const StyledTooltipModal = styled__default.default(reactModals.TooltipModal).attrs({
586
583
  'data-garden-id': COMPONENT_ID$5,
587
- 'data-garden-version': '8.62.1'
584
+ 'data-garden-version': '8.63.0'
588
585
  }).withConfig({
589
586
  displayName: "StyledTooltipModal",
590
587
  componentId: "sc-o022s8-0"
@@ -594,9 +591,9 @@ StyledTooltipModal.defaultProps = {
594
591
  };
595
592
 
596
593
  const COMPONENT_ID$4 = 'colorpickers.colordialog_tooltipmodal_body';
597
- const StyledTooltipBody = styled__default["default"](reactModals.TooltipModal.Body).attrs({
594
+ const StyledTooltipBody = styled__default.default(reactModals.TooltipModal.Body).attrs({
598
595
  'data-garden-id': COMPONENT_ID$4,
599
- 'data-garden-version': '8.62.1'
596
+ 'data-garden-version': '8.63.0'
600
597
  }).withConfig({
601
598
  displayName: "StyledTooltipBody",
602
599
  componentId: "sc-6gsgsy-0"
@@ -606,11 +603,11 @@ StyledTooltipBody.defaultProps = {
606
603
  };
607
604
 
608
605
  const COMPONENT_ID$3 = 'colorpickers.swatch_button';
609
- const StyledSwatchButton = styled__default["default"](StyledButtonPreview).attrs(props => ({
606
+ const StyledSwatchButton = styled__default.default(StyledButtonPreview).attrs(props => ({
610
607
  as: 'button',
611
608
  'data-garden-id': COMPONENT_ID$3,
612
609
  'data-test-id': props.backgroundColor,
613
- 'data-garden-version': '8.62.1'
610
+ 'data-garden-version': '8.63.0'
614
611
  })).withConfig({
615
612
  displayName: "StyledSwatchButton",
616
613
  componentId: "sc-edpwpp-0"
@@ -620,9 +617,9 @@ StyledSwatchButton.defaultProps = {
620
617
  };
621
618
 
622
619
  const COMPONENT_ID$2 = 'colorpickers.color_swatch';
623
- const StyledColorSwatch = styled__default["default"].table.attrs({
620
+ const StyledColorSwatch = styled__default.default.table.attrs({
624
621
  'data-garden-id': COMPONENT_ID$2,
625
- 'data-garden-version': '8.62.1',
622
+ 'data-garden-version': '8.63.0',
626
623
  role: 'grid'
627
624
  }).withConfig({
628
625
  displayName: "StyledColorSwatch",
@@ -649,17 +646,17 @@ const colorStyles = props => {
649
646
  color: ${checkColor}
650
647
  `;
651
648
  };
652
- const StyledIcon = styled__default["default"](_ref => {
649
+ const StyledIcon = styled__default.default(_ref => {
653
650
  let {
654
651
  children,
655
652
  color,
656
653
  theme,
657
654
  ...props
658
655
  } = _ref;
659
- return React__default["default"].cloneElement(React.Children.only(children), props);
656
+ return React__namespace.default.cloneElement(React.Children.only(children), props);
660
657
  }).attrs({
661
658
  'data-garden-id': COMPONENT_ID$1,
662
- 'data-garden-version': '8.62.1'
659
+ 'data-garden-version': '8.63.0'
663
660
  }).withConfig({
664
661
  displayName: "StyledIcon",
665
662
  componentId: "sc-8oigif-0"
@@ -669,9 +666,9 @@ StyledIcon.defaultProps = {
669
666
  };
670
667
 
671
668
  const COMPONENT_ID = 'colorpickers.swatch_cell';
672
- const StyledCell = styled__default["default"].td.attrs({
669
+ const StyledCell = styled__default.default.td.attrs({
673
670
  'data-garden-id': COMPONENT_ID,
674
- 'data-garden-version': '8.62.1'
671
+ 'data-garden-version': '8.63.0'
675
672
  }).withConfig({
676
673
  displayName: "StyledCell",
677
674
  componentId: "sc-qr3oit-0"
@@ -680,7 +677,7 @@ StyledCell.defaultProps = {
680
677
  theme: reactTheming.DEFAULT_THEME
681
678
  };
682
679
 
683
- const ColorWell = React__default["default"].memo(_ref => {
680
+ const ColorWell = React__namespace.default.memo(_ref => {
684
681
  let {
685
682
  hue,
686
683
  saturation,
@@ -706,7 +703,7 @@ const ColorWell = React__default["default"].memo(_ref => {
706
703
  setLeftPosition(rtl ? 100 - hsv.s : hsv.s);
707
704
  }, [hsv.s, hsv.v, rtl]);
708
705
  const throttledChange = React.useMemo(() => {
709
- return throttle__default["default"](e => {
706
+ return throttle__default.default(e => {
710
707
  if (containerRef.current) {
711
708
  const nextHsv = getNextHsv(e, hue, containerRef.current, rtl);
712
709
  onChange && onChange(nextHsv, e);
@@ -741,12 +738,12 @@ const ColorWell = React__default["default"].memo(_ref => {
741
738
  throttledChange.cancel();
742
739
  };
743
740
  }, [throttledChange]);
744
- return React__default["default"].createElement(StyledColorWell, {
741
+ return React__namespace.default.createElement(StyledColorWell, {
745
742
  hue: hue,
746
743
  ref: containerRef,
747
744
  role: "presentation",
748
745
  onMouseDown: handleMouseDown
749
- }, React__default["default"].createElement(StyledColorWellThumb, {
746
+ }, React__namespace.default.createElement(StyledColorWellThumb, {
750
747
  top: mouseActiveRef.current ? topFromMouse : topPosition,
751
748
  left: mouseActiveRef.current ? leftFromMouse : leftPosition
752
749
  }));
@@ -799,7 +796,7 @@ const areColorsEqual = (a, b) => {
799
796
  if (colorA === undefined || colorB === undefined) {
800
797
  return false;
801
798
  }
802
- return isEqual__default["default"](colorA, colorB);
799
+ return isEqual__default.default(colorA, colorB);
803
800
  };
804
801
  function getInitialState(color) {
805
802
  const whiteColor = {
@@ -1120,33 +1117,33 @@ const Colorpicker = React.forwardRef((_ref, ref) => {
1120
1117
  payload: computedColor
1121
1118
  });
1122
1119
  }, [computedColor]);
1123
- return React__default["default"].createElement(StyledColorPicker, _extends$2({
1120
+ return React__namespace.default.createElement(StyledColorPicker, _extends$2({
1124
1121
  ref: ref,
1125
1122
  isOpaque: isOpaque
1126
- }, props), React__default["default"].createElement(ColorWell, {
1123
+ }, props), React__namespace.default.createElement(ColorWell, {
1127
1124
  hue: computedColor.hue,
1128
1125
  saturation: computedColor.saturation,
1129
1126
  lightness: computedColor.lightness,
1130
1127
  onChange: handleColorWellChange
1131
- }), React__default["default"].createElement(StyledSliderGroup, null, React__default["default"].createElement(StyledPreview, {
1128
+ }), React__namespace.default.createElement(StyledSliderGroup, null, React__namespace.default.createElement(StyledPreview, {
1132
1129
  red: computedColor.red,
1133
1130
  green: computedColor.green,
1134
1131
  blue: computedColor.blue,
1135
1132
  alpha: computedColor.alpha,
1136
1133
  isOpaque: isOpaque
1137
- }), React__default["default"].createElement(StyledSliders, {
1134
+ }), React__namespace.default.createElement(StyledSliders, {
1138
1135
  isOpaque: isOpaque
1139
- }, React__default["default"].createElement(reactForms.Field, null, React__default["default"].createElement(reactForms.Label, {
1136
+ }, React__namespace.default.createElement(reactForms.Field, null, React__namespace.default.createElement(reactForms.Label, {
1140
1137
  hidden: true
1141
- }, labels.hueSlider || 'Hue slider'), React__default["default"].createElement(StyledHueRange, {
1138
+ }, labels.hueSlider || 'Hue slider'), React__namespace.default.createElement(StyledHueRange, {
1142
1139
  step: 1,
1143
1140
  max: 360,
1144
1141
  value: computedColor.hue,
1145
1142
  isOpaque: isOpaque,
1146
1143
  onChange: handleHueChange
1147
- })), !isOpaque && React__default["default"].createElement(reactForms.Field, null, React__default["default"].createElement(reactForms.Label, {
1144
+ })), !isOpaque && React__namespace.default.createElement(reactForms.Field, null, React__namespace.default.createElement(reactForms.Label, {
1148
1145
  hidden: true
1149
- }, labels.alphaSlider || 'Alpha slider'), React__default["default"].createElement(StyledAlphaRange, {
1146
+ }, labels.alphaSlider || 'Alpha slider'), React__namespace.default.createElement(StyledAlphaRange, {
1150
1147
  max: 1,
1151
1148
  step: 0.01,
1152
1149
  value: computedColor.alpha / 100,
@@ -1154,9 +1151,9 @@ const Colorpicker = React.forwardRef((_ref, ref) => {
1154
1151
  red: computedColor.red,
1155
1152
  green: computedColor.green,
1156
1153
  blue: computedColor.blue
1157
- })))), React__default["default"].createElement(StyledInputGroup, null, React__default["default"].createElement(StyledHexField, null, React__default["default"].createElement(StyledLabel, {
1154
+ })))), React__namespace.default.createElement(StyledInputGroup, null, React__namespace.default.createElement(StyledHexField, null, React__namespace.default.createElement(StyledLabel, {
1158
1155
  isRegular: true
1159
- }, labels.hex || 'Hex'), React__default["default"].createElement(StyledInput, {
1156
+ }, labels.hex || 'Hex'), React__namespace.default.createElement(StyledInput, {
1160
1157
  isCompact: true,
1161
1158
  maxLength: 7,
1162
1159
  value: state.hexInput
@@ -1165,9 +1162,9 @@ const Colorpicker = React.forwardRef((_ref, ref) => {
1165
1162
  spellCheck: false,
1166
1163
  onBlur: handleBlur,
1167
1164
  onChange: handleHexChange
1168
- })), React__default["default"].createElement(StyledRGBAField, null, React__default["default"].createElement(StyledLabel, {
1165
+ })), React__namespace.default.createElement(StyledRGBAField, null, React__namespace.default.createElement(StyledLabel, {
1169
1166
  isRegular: true
1170
- }, labels.red || 'R'), React__default["default"].createElement(StyledInput, {
1167
+ }, labels.red || 'R'), React__namespace.default.createElement(StyledInput, {
1171
1168
  isCompact: true,
1172
1169
  type: "number",
1173
1170
  min: "0",
@@ -1176,9 +1173,9 @@ const Colorpicker = React.forwardRef((_ref, ref) => {
1176
1173
  value: state.redInput,
1177
1174
  onBlur: handleBlur,
1178
1175
  onChange: handleRedChange
1179
- })), React__default["default"].createElement(StyledRGBAField, null, React__default["default"].createElement(StyledLabel, {
1176
+ })), React__namespace.default.createElement(StyledRGBAField, null, React__namespace.default.createElement(StyledLabel, {
1180
1177
  isRegular: true
1181
- }, labels.green || 'G'), React__default["default"].createElement(StyledInput, {
1178
+ }, labels.green || 'G'), React__namespace.default.createElement(StyledInput, {
1182
1179
  isCompact: true,
1183
1180
  type: "number",
1184
1181
  min: "0",
@@ -1187,9 +1184,9 @@ const Colorpicker = React.forwardRef((_ref, ref) => {
1187
1184
  value: state.greenInput,
1188
1185
  onBlur: handleBlur,
1189
1186
  onChange: handleGreenChange
1190
- })), React__default["default"].createElement(StyledRGBAField, null, React__default["default"].createElement(StyledLabel, {
1187
+ })), React__namespace.default.createElement(StyledRGBAField, null, React__namespace.default.createElement(StyledLabel, {
1191
1188
  isRegular: true
1192
- }, labels.blue || 'B'), React__default["default"].createElement(StyledInput, {
1189
+ }, labels.blue || 'B'), React__namespace.default.createElement(StyledInput, {
1193
1190
  isCompact: true,
1194
1191
  type: "number",
1195
1192
  min: "0",
@@ -1198,9 +1195,9 @@ const Colorpicker = React.forwardRef((_ref, ref) => {
1198
1195
  value: state.blueInput,
1199
1196
  onBlur: handleBlur,
1200
1197
  onChange: handleBlueChange
1201
- })), !isOpaque && React__default["default"].createElement(StyledRGBAField, null, React__default["default"].createElement(StyledLabel, {
1198
+ })), !isOpaque && React__namespace.default.createElement(StyledRGBAField, null, React__namespace.default.createElement(StyledLabel, {
1202
1199
  isRegular: true
1203
- }, labels.alpha || 'A'), React__default["default"].createElement(StyledInput, {
1200
+ }, labels.alpha || 'A'), React__namespace.default.createElement(StyledInput, {
1204
1201
  isCompact: true,
1205
1202
  type: "number",
1206
1203
  min: "0",
@@ -1215,17 +1212,15 @@ Colorpicker.defaultProps = {
1215
1212
  };
1216
1213
  Colorpicker.displayName = 'Colorpicker';
1217
1214
  Colorpicker.propTypes = {
1218
- color: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].string]),
1219
- isOpaque: PropTypes__default["default"].bool,
1220
- onChange: PropTypes__default["default"].func,
1221
- labels: PropTypes__default["default"].object,
1222
- defaultColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].string])
1215
+ color: PropTypes__default.default.oneOfType([PropTypes__default.default.object, PropTypes__default.default.string]),
1216
+ isOpaque: PropTypes__default.default.bool,
1217
+ onChange: PropTypes__default.default.func,
1218
+ labels: PropTypes__default.default.object,
1219
+ defaultColor: PropTypes__default.default.oneOfType([PropTypes__default.default.object, PropTypes__default.default.string])
1223
1220
  };
1224
1221
 
1225
1222
  var _path$1;
1226
-
1227
1223
  function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
1228
-
1229
1224
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
1230
1225
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
1231
1226
  xmlns: "http://www.w3.org/2000/svg",
@@ -1233,8 +1228,7 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
1233
1228
  height: 16,
1234
1229
  focusable: "false",
1235
1230
  viewBox: "0 0 16 16",
1236
- "aria-hidden": "true",
1237
- role: "img"
1231
+ "aria-hidden": "true"
1238
1232
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
1239
1233
  fill: "currentColor",
1240
1234
  d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
@@ -1300,19 +1294,19 @@ const ColorpickerDialog = React.forwardRef((_ref, ref) => {
1300
1294
  }
1301
1295
  }
1302
1296
  }, [isOpen, isDialogControlled]);
1303
- return React__default["default"].createElement(React__default["default"].Fragment, null, children ? React.cloneElement(React.Children.only(children), {
1297
+ return React__namespace.default.createElement(React__namespace.default.Fragment, null, children ? React.cloneElement(React.Children.only(children), {
1304
1298
  onClick,
1305
1299
  ref: buttonRef
1306
- }) : React__default["default"].createElement(StyledButton, _extends$2({
1300
+ }) : React__namespace.default.createElement(StyledButton, _extends$2({
1307
1301
  disabled: disabled,
1308
1302
  focusInset: focusInset,
1309
1303
  ref: buttonRef,
1310
1304
  onClick: onClick
1311
- }, buttonProps), React__default["default"].createElement(StyledButtonPreview, {
1305
+ }, buttonProps), React__namespace.default.createElement(StyledButtonPreview, {
1312
1306
  backgroundColor: isControlled ? color : uncontrolledColor
1313
- }), React__default["default"].createElement(reactButtons.Button.EndIcon, {
1307
+ }), React__namespace.default.createElement(reactButtons.Button.EndIcon, {
1314
1308
  isRotated: referenceElement != null
1315
- }, React__default["default"].createElement(SvgChevronDownStroke, null))), React__default["default"].createElement(StyledTooltipModal, _extends$2({
1309
+ }, React__namespace.default.createElement(SvgChevronDownStroke, null))), React__namespace.default.createElement(StyledTooltipModal, _extends$2({
1316
1310
  ref: ref,
1317
1311
  hasArrow: hasArrow,
1318
1312
  popperModifiers: popperModifiers,
@@ -1327,7 +1321,7 @@ const ColorpickerDialog = React.forwardRef((_ref, ref) => {
1327
1321
  onClose && onClose(isControlled ? color : uncontrolledColor);
1328
1322
  },
1329
1323
  "aria-label": ariaLabelText
1330
- }, props), React__default["default"].createElement(StyledTooltipBody, null, React__default["default"].createElement(Colorpicker, {
1324
+ }, props), React__namespace.default.createElement(StyledTooltipBody, null, React__namespace.default.createElement(Colorpicker, {
1331
1325
  autofocus: true,
1332
1326
  color: color,
1333
1327
  isOpaque: isOpaque,
@@ -1339,18 +1333,18 @@ const ColorpickerDialog = React.forwardRef((_ref, ref) => {
1339
1333
  });
1340
1334
  ColorpickerDialog.propTypes = {
1341
1335
  ...Colorpicker.propTypes,
1342
- placement: PropTypes__default["default"].oneOf(reactModals.PLACEMENT),
1343
- onClose: PropTypes__default["default"].func,
1344
- onDialogChange: PropTypes__default["default"].func,
1345
- disabled: PropTypes__default["default"].bool,
1346
- labels: PropTypes__default["default"].object,
1347
- buttonProps: PropTypes__default["default"].object,
1348
- popperModifiers: PropTypes__default["default"].any,
1349
- zIndex: PropTypes__default["default"].number,
1350
- hasArrow: PropTypes__default["default"].bool,
1351
- isAnimated: PropTypes__default["default"].bool,
1352
- isOpen: PropTypes__default["default"].bool,
1353
- focusInset: PropTypes__default["default"].bool
1336
+ placement: PropTypes__default.default.oneOf(reactModals.PLACEMENT),
1337
+ onClose: PropTypes__default.default.func,
1338
+ onDialogChange: PropTypes__default.default.func,
1339
+ disabled: PropTypes__default.default.bool,
1340
+ labels: PropTypes__default.default.object,
1341
+ buttonProps: PropTypes__default.default.object,
1342
+ popperModifiers: PropTypes__default.default.any,
1343
+ zIndex: PropTypes__default.default.number,
1344
+ hasArrow: PropTypes__default.default.bool,
1345
+ isAnimated: PropTypes__default.default.bool,
1346
+ isOpen: PropTypes__default.default.bool,
1347
+ focusInset: PropTypes__default.default.bool
1354
1348
  };
1355
1349
  ColorpickerDialog.defaultProps = {
1356
1350
  placement: 'bottom-start',
@@ -1361,9 +1355,7 @@ ColorpickerDialog.defaultProps = {
1361
1355
  ColorpickerDialog.displayName = 'ColorpickerDialog';
1362
1356
 
1363
1357
  var _path;
1364
-
1365
1358
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1366
-
1367
1359
  var SvgCheckSmFill = function SvgCheckSmFill(props) {
1368
1360
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
1369
1361
  xmlns: "http://www.w3.org/2000/svg",
@@ -1371,8 +1363,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
1371
1363
  height: 12,
1372
1364
  focusable: "false",
1373
1365
  viewBox: "0 0 12 12",
1374
- "aria-hidden": "true",
1375
- role: "img"
1366
+ "aria-hidden": "true"
1376
1367
  }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
1377
1368
  fill: "none",
1378
1369
  stroke: "currentColor",
@@ -1401,9 +1392,9 @@ const ColorSwatch = React.forwardRef((_ref, ref) => {
1401
1392
  idPrefix: containerUtilities.useId(),
1402
1393
  ...props
1403
1394
  });
1404
- return React__default["default"].createElement(StyledColorSwatch, {
1395
+ return React__namespace.default.createElement(StyledColorSwatch, {
1405
1396
  ref: ref
1406
- }, React__default["default"].createElement("tbody", null, colors.map((row, rowIdx) => React__default["default"].createElement("tr", {
1397
+ }, React__namespace.default.createElement("tbody", null, colors.map((row, rowIdx) => React__namespace.default.createElement("tr", {
1407
1398
  key: row[0].value
1408
1399
  }, row.map((color, colIdx) => {
1409
1400
  const {
@@ -1419,38 +1410,37 @@ const ColorSwatch = React.forwardRef((_ref, ref) => {
1419
1410
  type: 'button',
1420
1411
  role: undefined
1421
1412
  });
1422
- return React__default["default"].createElement(StyledCell, {
1413
+ return React__namespace.default.createElement(StyledCell, {
1423
1414
  key: value,
1424
1415
  "aria-selected": ariaSelected
1425
- }, React__default["default"].createElement(reactTooltips.Tooltip, {
1416
+ }, React__namespace.default.createElement(reactTooltips.Tooltip, {
1426
1417
  content: label
1427
- }, React__default["default"].createElement(StyledSwatchButton, _extends$2({
1418
+ }, React__namespace.default.createElement(StyledSwatchButton, _extends$2({
1428
1419
  backgroundColor: value,
1429
1420
  "aria-pressed": ariaSelected,
1430
1421
  "aria-label": label
1431
- }, other), React__default["default"].createElement(StyledIcon, {
1422
+ }, other), React__namespace.default.createElement(StyledIcon, {
1432
1423
  color: value,
1433
1424
  selected: ariaSelected
1434
- }, React__default["default"].createElement(SvgCheckSmFill, null)))));
1425
+ }, React__namespace.default.createElement(SvgCheckSmFill, null)))));
1435
1426
  })))));
1436
1427
  });
1437
1428
  ColorSwatch.displayName = 'ColorSwatch';
1438
1429
  ColorSwatch.propTypes = {
1439
- colors: PropTypes__default["default"].arrayOf(PropTypes__default["default"].any).isRequired,
1440
- rowIndex: PropTypes__default["default"].number,
1441
- colIndex: PropTypes__default["default"].number,
1442
- selectedRowIndex: PropTypes__default["default"].number,
1443
- selectedColIndex: PropTypes__default["default"].number,
1444
- defaultRowIndex: PropTypes__default["default"].number,
1445
- defaultColIndex: PropTypes__default["default"].number,
1446
- defaultSelectedRowIndex: PropTypes__default["default"].number,
1447
- defaultSelectedColIndex: PropTypes__default["default"].number,
1448
- onChange: PropTypes__default["default"].func,
1449
- onSelect: PropTypes__default["default"].func
1430
+ colors: PropTypes__default.default.arrayOf(PropTypes__default.default.any).isRequired,
1431
+ rowIndex: PropTypes__default.default.number,
1432
+ colIndex: PropTypes__default.default.number,
1433
+ selectedRowIndex: PropTypes__default.default.number,
1434
+ selectedColIndex: PropTypes__default.default.number,
1435
+ defaultRowIndex: PropTypes__default.default.number,
1436
+ defaultColIndex: PropTypes__default.default.number,
1437
+ defaultSelectedRowIndex: PropTypes__default.default.number,
1438
+ defaultSelectedColIndex: PropTypes__default.default.number,
1439
+ onChange: PropTypes__default.default.func,
1440
+ onSelect: PropTypes__default.default.func
1450
1441
  };
1451
1442
 
1452
1443
  const ColorSwatchDialog = React.forwardRef((_ref, ref) => {
1453
- var _controlledSelectedCo, _uncontrolledSelected;
1454
1444
  let {
1455
1445
  colors,
1456
1446
  rowIndex,
@@ -1536,23 +1526,23 @@ const ColorSwatchDialog = React.forwardRef((_ref, ref) => {
1536
1526
  if (selectedCell) {
1537
1527
  selectedCell.children[0].focus();
1538
1528
  } else {
1539
- focusableButton === null || focusableButton === void 0 ? void 0 : focusableButton.focus();
1529
+ focusableButton?.focus();
1540
1530
  }
1541
1531
  }
1542
1532
  }, [referenceElement]);
1543
- return React__default["default"].createElement(React__default["default"].Fragment, null, children ? React.cloneElement(React.Children.only(children), {
1533
+ return React__namespace.default.createElement(React__namespace.default.Fragment, null, children ? React.cloneElement(React.Children.only(children), {
1544
1534
  onClick,
1545
1535
  ref: buttonRef
1546
- }) : React__default["default"].createElement(StyledButton, _extends$2({
1536
+ }) : React__namespace.default.createElement(StyledButton, _extends$2({
1547
1537
  disabled: disabled,
1548
1538
  focusInset: focusInset,
1549
1539
  ref: buttonRef,
1550
1540
  onClick: onClick
1551
- }, buttonProps), React__default["default"].createElement(StyledButtonPreview, {
1552
- backgroundColor: isControlled ? (_controlledSelectedCo = controlledSelectedColor) === null || _controlledSelectedCo === void 0 ? void 0 : _controlledSelectedCo.value : (_uncontrolledSelected = uncontrolledSelectedColor) === null || _uncontrolledSelected === void 0 ? void 0 : _uncontrolledSelected.value
1553
- }), React__default["default"].createElement(reactButtons.Button.EndIcon, {
1541
+ }, buttonProps), React__namespace.default.createElement(StyledButtonPreview, {
1542
+ backgroundColor: isControlled ? controlledSelectedColor?.value : uncontrolledSelectedColor?.value
1543
+ }), React__namespace.default.createElement(reactButtons.Button.EndIcon, {
1554
1544
  isRotated: referenceElement != null
1555
- }, React__default["default"].createElement(SvgChevronDownStroke, null))), React__default["default"].createElement(StyledTooltipModal, _extends$2({
1545
+ }, React__namespace.default.createElement(SvgChevronDownStroke, null))), React__namespace.default.createElement(StyledTooltipModal, _extends$2({
1556
1546
  ref: ref,
1557
1547
  zIndex: zIndex,
1558
1548
  hasArrow: hasArrow,
@@ -1563,7 +1553,7 @@ const ColorSwatchDialog = React.forwardRef((_ref, ref) => {
1563
1553
  referenceElement: referenceElement,
1564
1554
  onClose: closeDialog,
1565
1555
  "aria-label": ariaLabelText
1566
- }, props), React__default["default"].createElement(StyledTooltipBody, null, React__default["default"].createElement(ColorSwatch, {
1556
+ }, props), React__namespace.default.createElement(StyledTooltipBody, null, React__namespace.default.createElement(ColorSwatch, {
1567
1557
  colors: colors,
1568
1558
  ref: colorSwatchRef,
1569
1559
  rowIndex: rowIndex,
@@ -1592,16 +1582,16 @@ const ColorSwatchDialog = React.forwardRef((_ref, ref) => {
1592
1582
  });
1593
1583
  ColorSwatchDialog.propTypes = {
1594
1584
  ...ColorSwatch.propTypes,
1595
- placement: PropTypes__default["default"].oneOf(reactModals.PLACEMENT),
1596
- onDialogChange: PropTypes__default["default"].func,
1597
- disabled: PropTypes__default["default"].bool,
1598
- buttonProps: PropTypes__default["default"].object,
1599
- popperModifiers: PropTypes__default["default"].any,
1600
- zIndex: PropTypes__default["default"].number,
1601
- hasArrow: PropTypes__default["default"].bool,
1602
- isAnimated: PropTypes__default["default"].bool,
1603
- focusInset: PropTypes__default["default"].bool,
1604
- isOpen: PropTypes__default["default"].bool
1585
+ placement: PropTypes__default.default.oneOf(reactModals.PLACEMENT),
1586
+ onDialogChange: PropTypes__default.default.func,
1587
+ disabled: PropTypes__default.default.bool,
1588
+ buttonProps: PropTypes__default.default.object,
1589
+ popperModifiers: PropTypes__default.default.any,
1590
+ zIndex: PropTypes__default.default.number,
1591
+ hasArrow: PropTypes__default.default.bool,
1592
+ isAnimated: PropTypes__default.default.bool,
1593
+ focusInset: PropTypes__default.default.bool,
1594
+ isOpen: PropTypes__default.default.bool
1605
1595
  };
1606
1596
  ColorSwatchDialog.defaultProps = {
1607
1597
  placement: 'bottom-start',
package/dist/index.esm.js CHANGED
@@ -125,7 +125,7 @@ const getColorPickerWidth = props => {
125
125
  };
126
126
  const StyledColorPicker = styled.div.attrs({
127
127
  'data-garden-id': COMPONENT_ID$l,
128
- 'data-garden-version': '8.62.1'
128
+ 'data-garden-version': '8.63.0'
129
129
  }).withConfig({
130
130
  displayName: "StyledColorPicker",
131
131
  componentId: "sc-1donyl9-0"
@@ -260,7 +260,7 @@ const sizeStyles$2 = props => {
260
260
  };
261
261
  const StyledRange = styled(Range).attrs({
262
262
  'data-garden-id': COMPONENT_ID$k,
263
- 'data-garden-version': '8.62.1',
263
+ 'data-garden-version': '8.63.0',
264
264
  hasLowerTrack: false
265
265
  }).withConfig({
266
266
  displayName: "StyledRange",
@@ -275,7 +275,7 @@ StyledRange.defaultProps = {
275
275
  const COMPONENT_ID$j = 'colorpickers.colorpicker_hue';
276
276
  const StyledHueRange = styled(StyledRange).attrs({
277
277
  'data-garden-id': COMPONENT_ID$j,
278
- 'data-garden-version': '8.62.1'
278
+ 'data-garden-version': '8.63.0'
279
279
  }).withConfig({
280
280
  displayName: "StyledHueRange",
281
281
  componentId: "sc-13ly7p-0"
@@ -319,7 +319,7 @@ const StyledAlphaRange = styled(StyledRange).attrs(props => ({
319
319
  background: background$3(props)
320
320
  },
321
321
  'data-garden-id': COMPONENT_ID$i,
322
- 'data-garden-version': '8.62.1'
322
+ 'data-garden-version': '8.63.0'
323
323
  })).withConfig({
324
324
  displayName: "StyledAlphaRange",
325
325
  componentId: "sc-kuh2xc-0"
@@ -343,7 +343,7 @@ const StyledPreview = styled.div.attrs(props => ({
343
343
  background: background$2(props)
344
344
  },
345
345
  'data-garden-id': COMPONENT_ID$h,
346
- 'data-garden-version': '8.62.1',
346
+ 'data-garden-version': '8.63.0',
347
347
  'data-test-id': 'preview-box'
348
348
  })).withConfig({
349
349
  displayName: "StyledPreview",
@@ -365,7 +365,7 @@ const background$1 = props => {
365
365
  };
366
366
  const StyledColorWell = styled.div.attrs(props => ({
367
367
  'data-garden-id': COMPONENT_ID$g,
368
- 'data-garden-version': '8.62.1',
368
+ 'data-garden-version': '8.63.0',
369
369
  'data-test-id': 'colorwell',
370
370
  style: {
371
371
  background: background$1(props)
@@ -393,7 +393,7 @@ const sizeStyles$1 = theme => {
393
393
  };
394
394
  const StyledColorWellThumb = styled.div.attrs(props => ({
395
395
  'data-garden-id': COMPONENT_ID$f,
396
- 'data-garden-version': '8.62.1',
396
+ 'data-garden-version': '8.63.0',
397
397
  'data-test-id': 'colorwell-thumb',
398
398
  style: {
399
399
  top: `${props.top}%`,
@@ -410,7 +410,7 @@ StyledColorWellThumb.defaultProps = {
410
410
  const COMPONENT_ID$e = 'colorpickers.colorpicker_slider_group';
411
411
  const StyledSliderGroup = styled.div.attrs({
412
412
  'data-garden-id': COMPONENT_ID$e,
413
- 'data-garden-version': '8.62.1'
413
+ 'data-garden-version': '8.63.0'
414
414
  }).withConfig({
415
415
  displayName: "StyledSliderGroup",
416
416
  componentId: "sc-rsq0ak-0"
@@ -422,7 +422,7 @@ StyledSliderGroup.defaultProps = {
422
422
  const COMPONENT_ID$d = 'colorpickers.colorpicker_hex_field';
423
423
  const StyledHexField = styled(Field).attrs({
424
424
  'data-garden-id': COMPONENT_ID$d,
425
- 'data-garden-version': '8.62.1',
425
+ 'data-garden-version': '8.63.0',
426
426
  spellcheck: false
427
427
  }).withConfig({
428
428
  displayName: "StyledHexField",
@@ -435,7 +435,7 @@ StyledHexField.defaultProps = {
435
435
  const COMPONENT_ID$c = 'colorpickers.colorpicker_label';
436
436
  const StyledLabel = styled(Label).attrs({
437
437
  'data-garden-id': COMPONENT_ID$c,
438
- 'data-garden-version': '8.62.1'
438
+ 'data-garden-version': '8.63.0'
439
439
  }).withConfig({
440
440
  displayName: "StyledLabel",
441
441
  componentId: "sc-1klhp6m-0"
@@ -447,7 +447,7 @@ StyledLabel.defaultProps = {
447
447
  const COMPONENT_ID$b = 'colorpickers.colorpicker_input';
448
448
  const StyledInput = styled(Input).attrs({
449
449
  'data-garden-id': COMPONENT_ID$b,
450
- 'data-garden-version': '8.62.1',
450
+ 'data-garden-version': '8.63.0',
451
451
  focusInset: false
452
452
  }).withConfig({
453
453
  displayName: "StyledInput",
@@ -460,7 +460,7 @@ StyledInput.defaultProps = {
460
460
  const COMPONENT_ID$a = 'colorpickers.colorpicker_input_group';
461
461
  const StyledInputGroup = styled.div.attrs({
462
462
  'data-garden-id': COMPONENT_ID$a,
463
- 'data-garden-version': '8.62.1'
463
+ 'data-garden-version': '8.63.0'
464
464
  }).withConfig({
465
465
  displayName: "StyledInputGroup",
466
466
  componentId: "sc-mmy93w-0"
@@ -481,7 +481,7 @@ const sizeStyles = theme => {
481
481
  };
482
482
  const StyledRGBAField = styled(Field).attrs({
483
483
  'data-garden-id': COMPONENT_ID$9,
484
- 'data-garden-version': '8.62.1'
484
+ 'data-garden-version': '8.63.0'
485
485
  }).withConfig({
486
486
  displayName: "StyledRGBAField",
487
487
  componentId: "sc-ibo1yw-0"
@@ -493,7 +493,7 @@ StyledRGBAField.defaultProps = {
493
493
  const COMPONENT_ID$8 = 'colorpickers.colorpicker_sliders';
494
494
  const StyledSliders = styled.div.attrs({
495
495
  'data-garden-id': COMPONENT_ID$8,
496
- 'data-garden-version': '8.62.1'
496
+ 'data-garden-version': '8.63.0'
497
497
  }).withConfig({
498
498
  displayName: "StyledSliders",
499
499
  componentId: "sc-aclca2-0"
@@ -506,7 +506,7 @@ const COMPONENT_ID$7 = 'colorpickers.colordialog_button';
506
506
  const StyledButton = styled(Button).attrs({
507
507
  isNeutral: true,
508
508
  'data-garden-id': COMPONENT_ID$7,
509
- 'data-garden-version': '8.62.1'
509
+ 'data-garden-version': '8.63.0'
510
510
  }).withConfig({
511
511
  displayName: "StyledButton",
512
512
  componentId: "sc-101xjve-0"
@@ -541,7 +541,7 @@ const StyledButtonPreview = styled.span.attrs(props => ({
541
541
  background: `${background(props)}, ${checkeredBackground(props.theme, 8)}`
542
542
  },
543
543
  'data-garden-id': COMPONENT_ID$6,
544
- 'data-garden-version': '8.62.1',
544
+ 'data-garden-version': '8.63.0',
545
545
  'data-test-id': 'dialog-preview'
546
546
  })).withConfig({
547
547
  displayName: "StyledButtonPreview",
@@ -554,7 +554,7 @@ StyledButtonPreview.defaultProps = {
554
554
  const COMPONENT_ID$5 = 'colorpickers.colordialog_tooltipmodal';
555
555
  const StyledTooltipModal = styled(TooltipModal).attrs({
556
556
  'data-garden-id': COMPONENT_ID$5,
557
- 'data-garden-version': '8.62.1'
557
+ 'data-garden-version': '8.63.0'
558
558
  }).withConfig({
559
559
  displayName: "StyledTooltipModal",
560
560
  componentId: "sc-o022s8-0"
@@ -566,7 +566,7 @@ StyledTooltipModal.defaultProps = {
566
566
  const COMPONENT_ID$4 = 'colorpickers.colordialog_tooltipmodal_body';
567
567
  const StyledTooltipBody = styled(TooltipModal.Body).attrs({
568
568
  'data-garden-id': COMPONENT_ID$4,
569
- 'data-garden-version': '8.62.1'
569
+ 'data-garden-version': '8.63.0'
570
570
  }).withConfig({
571
571
  displayName: "StyledTooltipBody",
572
572
  componentId: "sc-6gsgsy-0"
@@ -580,7 +580,7 @@ const StyledSwatchButton = styled(StyledButtonPreview).attrs(props => ({
580
580
  as: 'button',
581
581
  'data-garden-id': COMPONENT_ID$3,
582
582
  'data-test-id': props.backgroundColor,
583
- 'data-garden-version': '8.62.1'
583
+ 'data-garden-version': '8.63.0'
584
584
  })).withConfig({
585
585
  displayName: "StyledSwatchButton",
586
586
  componentId: "sc-edpwpp-0"
@@ -592,7 +592,7 @@ StyledSwatchButton.defaultProps = {
592
592
  const COMPONENT_ID$2 = 'colorpickers.color_swatch';
593
593
  const StyledColorSwatch = styled.table.attrs({
594
594
  'data-garden-id': COMPONENT_ID$2,
595
- 'data-garden-version': '8.62.1',
595
+ 'data-garden-version': '8.63.0',
596
596
  role: 'grid'
597
597
  }).withConfig({
598
598
  displayName: "StyledColorSwatch",
@@ -629,7 +629,7 @@ const StyledIcon = styled(_ref => {
629
629
  return React__default.cloneElement(Children.only(children), props);
630
630
  }).attrs({
631
631
  'data-garden-id': COMPONENT_ID$1,
632
- 'data-garden-version': '8.62.1'
632
+ 'data-garden-version': '8.63.0'
633
633
  }).withConfig({
634
634
  displayName: "StyledIcon",
635
635
  componentId: "sc-8oigif-0"
@@ -641,7 +641,7 @@ StyledIcon.defaultProps = {
641
641
  const COMPONENT_ID = 'colorpickers.swatch_cell';
642
642
  const StyledCell = styled.td.attrs({
643
643
  'data-garden-id': COMPONENT_ID,
644
- 'data-garden-version': '8.62.1'
644
+ 'data-garden-version': '8.63.0'
645
645
  }).withConfig({
646
646
  displayName: "StyledCell",
647
647
  componentId: "sc-qr3oit-0"
@@ -1193,9 +1193,7 @@ Colorpicker.propTypes = {
1193
1193
  };
1194
1194
 
1195
1195
  var _path$1;
1196
-
1197
1196
  function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
1198
-
1199
1197
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
1200
1198
  return /*#__PURE__*/React.createElement("svg", _extends$1({
1201
1199
  xmlns: "http://www.w3.org/2000/svg",
@@ -1203,8 +1201,7 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
1203
1201
  height: 16,
1204
1202
  focusable: "false",
1205
1203
  viewBox: "0 0 16 16",
1206
- "aria-hidden": "true",
1207
- role: "img"
1204
+ "aria-hidden": "true"
1208
1205
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
1209
1206
  fill: "currentColor",
1210
1207
  d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
@@ -1331,9 +1328,7 @@ ColorpickerDialog.defaultProps = {
1331
1328
  ColorpickerDialog.displayName = 'ColorpickerDialog';
1332
1329
 
1333
1330
  var _path;
1334
-
1335
1331
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1336
-
1337
1332
  var SvgCheckSmFill = function SvgCheckSmFill(props) {
1338
1333
  return /*#__PURE__*/React.createElement("svg", _extends({
1339
1334
  xmlns: "http://www.w3.org/2000/svg",
@@ -1341,8 +1336,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
1341
1336
  height: 12,
1342
1337
  focusable: "false",
1343
1338
  viewBox: "0 0 12 12",
1344
- "aria-hidden": "true",
1345
- role: "img"
1339
+ "aria-hidden": "true"
1346
1340
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
1347
1341
  fill: "none",
1348
1342
  stroke: "currentColor",
@@ -1420,7 +1414,6 @@ ColorSwatch.propTypes = {
1420
1414
  };
1421
1415
 
1422
1416
  const ColorSwatchDialog = forwardRef((_ref, ref) => {
1423
- var _controlledSelectedCo, _uncontrolledSelected;
1424
1417
  let {
1425
1418
  colors,
1426
1419
  rowIndex,
@@ -1506,7 +1499,7 @@ const ColorSwatchDialog = forwardRef((_ref, ref) => {
1506
1499
  if (selectedCell) {
1507
1500
  selectedCell.children[0].focus();
1508
1501
  } else {
1509
- focusableButton === null || focusableButton === void 0 ? void 0 : focusableButton.focus();
1502
+ focusableButton?.focus();
1510
1503
  }
1511
1504
  }
1512
1505
  }, [referenceElement]);
@@ -1519,7 +1512,7 @@ const ColorSwatchDialog = forwardRef((_ref, ref) => {
1519
1512
  ref: buttonRef,
1520
1513
  onClick: onClick
1521
1514
  }, buttonProps), React__default.createElement(StyledButtonPreview, {
1522
- backgroundColor: isControlled ? (_controlledSelectedCo = controlledSelectedColor) === null || _controlledSelectedCo === void 0 ? void 0 : _controlledSelectedCo.value : (_uncontrolledSelected = uncontrolledSelectedColor) === null || _uncontrolledSelected === void 0 ? void 0 : _uncontrolledSelected.value
1515
+ backgroundColor: isControlled ? controlledSelectedColor?.value : uncontrolledSelectedColor?.value
1523
1516
  }), React__default.createElement(Button.EndIcon, {
1524
1517
  isRotated: referenceElement != null
1525
1518
  }, React__default.createElement(SvgChevronDownStroke, null))), React__default.createElement(StyledTooltipModal, _extends$2({
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import { IColor, IHSVColor } from '../../types';
8
- declare type ColorPickerActionTypes = {
8
+ type ColorPickerActionTypes = {
9
9
  type: 'SATURATION_CHANGE';
10
10
  payload: IHSVColor;
11
11
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-colorpickers",
3
- "version": "8.62.1",
3
+ "version": "8.63.0",
4
4
  "description": "Components related to color pickers in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -22,11 +22,11 @@
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-grid": "^0.1.1",
25
- "@zendeskgarden/container-utilities": "^0.7.0",
26
- "@zendeskgarden/react-buttons": "^8.62.1",
27
- "@zendeskgarden/react-forms": "^8.62.1",
28
- "@zendeskgarden/react-modals": "^8.62.1",
29
- "@zendeskgarden/react-tooltips": "^8.62.1",
25
+ "@zendeskgarden/container-utilities": "^1.0.0",
26
+ "@zendeskgarden/react-buttons": "^8.63.0",
27
+ "@zendeskgarden/react-forms": "^8.63.0",
28
+ "@zendeskgarden/react-modals": "^8.63.0",
29
+ "@zendeskgarden/react-tooltips": "^8.63.0",
30
30
  "lodash.isequal": "^4.5.0",
31
31
  "lodash.throttle": "^4.1.1",
32
32
  "polished": "^4.0.0",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@types/lodash.isequal": "4.5.6",
43
43
  "@types/lodash.throttle": "4.1.7",
44
- "@zendeskgarden/react-theming": "^8.62.1",
44
+ "@zendeskgarden/react-theming": "^8.63.0",
45
45
  "@zendeskgarden/svg-icons": "6.33.0"
46
46
  },
47
47
  "keywords": [
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "zendeskgarden:src": "src/index.ts",
58
- "gitHead": "e84b3603c69975dc0ef30029364da15fc1e4fc03"
58
+ "gitHead": "4b8715305a769881b143c7195c5b31e687422926"
59
59
  }