@zendeskgarden/react-colorpickers 9.4.0 → 9.5.1

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 (27) hide show
  1. package/dist/esm/elements/ColorPicker/ColorWell.js +11 -9
  2. package/dist/esm/elements/ColorSwatch/index.js +1 -1
  3. package/dist/esm/styled/ColorPicker/StyledAlphaRange.js +1 -1
  4. package/dist/esm/styled/ColorPicker/StyledColorPicker.js +3 -3
  5. package/dist/esm/styled/ColorPicker/StyledColorWell.js +3 -3
  6. package/dist/esm/styled/ColorPicker/StyledColorWellThumb.js +3 -3
  7. package/dist/esm/styled/ColorPicker/StyledHexField.js +3 -3
  8. package/dist/esm/styled/ColorPicker/StyledHueRange.js +1 -1
  9. package/dist/esm/styled/ColorPicker/StyledInput.js +3 -3
  10. package/dist/esm/styled/ColorPicker/StyledInputGroup.js +3 -3
  11. package/dist/esm/styled/ColorPicker/StyledLabel.js +3 -3
  12. package/dist/esm/styled/ColorPicker/StyledPreview.js +3 -3
  13. package/dist/esm/styled/ColorPicker/StyledRGBAField.js +3 -3
  14. package/dist/esm/styled/ColorPicker/StyledSliderGroup.js +3 -3
  15. package/dist/esm/styled/ColorPicker/StyledSliders.js +3 -3
  16. package/dist/esm/styled/ColorPickerDialog/StyledButton.js +1 -1
  17. package/dist/esm/styled/ColorPickerDialog/StyledButtonPreview.js +3 -3
  18. package/dist/esm/styled/ColorPickerDialog/StyledTooltipBody.js +3 -3
  19. package/dist/esm/styled/ColorPickerDialog/StyledTooltipDialog.js +3 -3
  20. package/dist/esm/styled/ColorSwatch/StyledCell.js +3 -3
  21. package/dist/esm/styled/ColorSwatch/StyledColorSwatch.js +3 -3
  22. package/dist/esm/styled/ColorSwatch/StyledColorSwatchInput.js +3 -3
  23. package/dist/esm/styled/ColorSwatch/StyledColorSwatchLabel.js +3 -3
  24. package/dist/esm/styled/ColorSwatch/StyledIcon.js +3 -3
  25. package/dist/esm/styled/common/StyledRange.js +3 -3
  26. package/dist/index.cjs.js +55 -53
  27. package/package.json +8 -8
@@ -93,15 +93,17 @@ const ColorWell = React__default.memo(_ref => {
93
93
  throttledChange.cancel();
94
94
  };
95
95
  }, [throttledChange]);
96
- return React__default.createElement(StyledColorWell, {
97
- $hue: hue,
98
- ref: containerRef,
99
- role: "presentation",
100
- onMouseDown: handleMouseDown
101
- }, React__default.createElement(StyledColorWellThumb, {
102
- $top: mouseActiveRef.current ? topFromMouse : topPosition,
103
- $left: mouseActiveRef.current ? leftFromMouse : leftPosition
104
- }));
96
+ return (
97
+ React__default.createElement(StyledColorWell, {
98
+ $hue: hue,
99
+ ref: containerRef,
100
+ role: "presentation",
101
+ onMouseDown: handleMouseDown
102
+ }, React__default.createElement(StyledColorWellThumb, {
103
+ $top: mouseActiveRef.current ? topFromMouse : topPosition,
104
+ $left: mouseActiveRef.current ? leftFromMouse : leftPosition
105
+ }))
106
+ );
105
107
  });
106
108
  ColorWell.displayName = 'ColorWell';
107
109
 
@@ -71,7 +71,7 @@ const ColorSwatch = forwardRef((_ref, ref) => {
71
71
  setColIndex(col);
72
72
  }
73
73
  });
74
- return React__default.createElement(StyledColorSwatch, Object.assign({
74
+ return React__default.createElement(StyledColorSwatch, Object.assign({
75
75
  role: "grid",
76
76
  ref: mergeRefs([gridRef, ref])
77
77
  }, props), React__default.createElement("tbody", null, colors.map((row, _rowIndex) => React__default.createElement("tr", {
@@ -30,7 +30,7 @@ const StyledAlphaRange = styled(StyledRange).attrs(props => ({
30
30
  background: background(props)
31
31
  },
32
32
  'data-garden-id': COMPONENT_ID,
33
- 'data-garden-version': '9.4.0'
33
+ 'data-garden-version': '9.5.1'
34
34
  })).withConfig({
35
35
  displayName: "StyledAlphaRange",
36
36
  componentId: "sc-1f6hp2j-0"
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'colorpickers.colorpicker';
11
11
  const getColorPickerWidth = props => {
@@ -13,10 +13,10 @@ const getColorPickerWidth = props => {
13
13
  };
14
14
  const StyledColorPicker = styled.div.attrs({
15
15
  'data-garden-id': COMPONENT_ID,
16
- 'data-garden-version': '9.4.0'
16
+ 'data-garden-version': '9.5.1'
17
17
  }).withConfig({
18
18
  displayName: "StyledColorPicker",
19
19
  componentId: "sc-gspq4q-0"
20
- })(["width:", "px;min-width:", "px;", ";"], getColorPickerWidth, getColorPickerWidth, props => retrieveComponentStyles(COMPONENT_ID, props));
20
+ })(["width:", "px;min-width:", "px;", ";"], getColorPickerWidth, getColorPickerWidth, componentStyles);
21
21
 
22
22
  export { StyledColorPicker, getColorPickerWidth };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { rgba, hsl } from 'polished';
9
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_colorwell';
12
12
  const background = props => {
@@ -20,7 +20,7 @@ const background = props => {
20
20
  };
21
21
  const StyledColorWell = styled.div.attrs(props => ({
22
22
  'data-garden-id': COMPONENT_ID,
23
- 'data-garden-version': '9.4.0',
23
+ 'data-garden-version': '9.5.1',
24
24
  'data-test-id': 'colorwell',
25
25
  style: {
26
26
  background: background(props)
@@ -28,6 +28,6 @@ const StyledColorWell = styled.div.attrs(props => ({
28
28
  })).withConfig({
29
29
  displayName: "StyledColorWell",
30
30
  componentId: "sc-1gg9z8m-0"
31
- })(["position:relative;margin-bottom:", "px;cursor:pointer;height:208px;overflow:hidden;", ";"], props => props.theme.space.base * 2, props => retrieveComponentStyles(COMPONENT_ID, props));
31
+ })(["position:relative;margin-bottom:", "px;cursor:pointer;height:208px;overflow:hidden;", ";"], props => props.theme.space.base * 2, componentStyles);
32
32
 
33
33
  export { StyledColorWell };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { stripUnit } from 'polished';
9
- import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
9
+ import { componentStyles, getColor } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_colorwell_thumb';
12
12
  const colorStyles = _ref => {
@@ -34,7 +34,7 @@ const sizeStyles = _ref2 => {
34
34
  };
35
35
  const StyledColorWellThumb = styled.div.attrs(props => ({
36
36
  'data-garden-id': COMPONENT_ID,
37
- 'data-garden-version': '9.4.0',
37
+ 'data-garden-version': '9.5.1',
38
38
  'data-test-id': 'colorwell-thumb',
39
39
  style: {
40
40
  top: `${props.$top}%`,
@@ -43,6 +43,6 @@ const StyledColorWellThumb = styled.div.attrs(props => ({
43
43
  })).withConfig({
44
44
  displayName: "StyledColorWellThumb",
45
45
  componentId: "sc-1npyab0-0"
46
- })(["position:absolute;border:", ";border-radius:50%;", " ", " ", ";"], props => props.theme.borders.sm, sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
46
+ })(["position:absolute;border:", ";border-radius:50%;", " ", " ", ";"], props => props.theme.borders.sm, sizeStyles, colorStyles, componentStyles);
47
47
 
48
48
  export { StyledColorWellThumb };
@@ -5,17 +5,17 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
  import { Field } from '@zendeskgarden/react-forms';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_hex_field';
12
12
  const StyledHexField = styled(Field).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0',
14
+ 'data-garden-version': '9.5.1',
15
15
  spellCheck: false
16
16
  }).withConfig({
17
17
  displayName: "StyledHexField",
18
18
  componentId: "sc-ijq1c-0"
19
- })(["display:flex;flex-basis:0;flex-direction:column;flex-grow:1;width:auto;text-align:center;input{direction:ltr;}", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ })(["display:flex;flex-basis:0;flex-direction:column;flex-grow:1;width:auto;text-align:center;input{direction:ltr;}", ";"], componentStyles);
20
20
 
21
21
  export { StyledHexField };
@@ -10,7 +10,7 @@ import { StyledRange, getTrackMargin, getTrackHeight } from '../common/StyledRan
10
10
  const COMPONENT_ID = 'colorpickers.colorpicker_hue';
11
11
  const StyledHueRange = styled(StyledRange).attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledHueRange",
16
16
  componentId: "sc-1gdhww1-0"
@@ -6,16 +6,16 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { Input } from '@zendeskgarden/react-forms';
9
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_input';
12
12
  const StyledInput = styled(Input).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0',
14
+ 'data-garden-version': '9.5.1',
15
15
  focusInset: false
16
16
  }).withConfig({
17
17
  displayName: "StyledInput",
18
18
  componentId: "sc-1uzlutt-0"
19
- })(["text-align:center;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ })(["text-align:center;", ";"], componentStyles);
20
20
 
21
21
  export { StyledInput };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'colorpickers.colorpicker_input_group';
11
11
  const StyledInputGroup = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledInputGroup",
16
16
  componentId: "sc-1m9g2wg-0"
17
- })(["display:flex;justify-content:space-between;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["display:flex;justify-content:space-between;", ";"], componentStyles);
18
18
 
19
19
  export { StyledInputGroup };
@@ -6,15 +6,15 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { Label } from '@zendeskgarden/react-forms';
9
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_label';
12
12
  const StyledLabel = styled(Label).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0'
14
+ 'data-garden-version': '9.5.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledLabel",
17
17
  componentId: "sc-1vxt3m9-0"
18
- })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], componentStyles);
19
19
 
20
20
  export { StyledLabel };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { rgba } from 'polished';
9
- import { retrieveComponentStyles, getCheckeredBackground } from '@zendeskgarden/react-theming';
9
+ import { componentStyles, getCheckeredBackground } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_preview_box';
12
12
  const background = props => {
@@ -26,11 +26,11 @@ const StyledPreview = styled.div.attrs(props => ({
26
26
  background: background(props)
27
27
  },
28
28
  'data-garden-id': COMPONENT_ID,
29
- 'data-garden-version': '9.4.0',
29
+ 'data-garden-version': '9.5.1',
30
30
  'data-test-id': 'preview-box'
31
31
  })).withConfig({
32
32
  displayName: "StyledPreview",
33
33
  componentId: "sc-1z5nh7-0"
34
- })(["flex-shrink:0;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.borderRadii.md, props => props.theme.borderWidths.sm, props => rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), props => retrieveComponentStyles(COMPONENT_ID, props));
34
+ })(["flex-shrink:0;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.borderRadii.md, props => props.theme.borderWidths.sm, props => rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), componentStyles);
35
35
 
36
36
  export { StyledPreview };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { Field } from '@zendeskgarden/react-forms';
8
8
  import styled from 'styled-components';
9
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_rgb_field';
12
12
  const sizeStyles = theme => {
@@ -20,10 +20,10 @@ const sizeStyles = theme => {
20
20
  };
21
21
  const StyledRGBAField = styled(Field).attrs({
22
22
  'data-garden-id': COMPONENT_ID,
23
- 'data-garden-version': '9.4.0'
23
+ 'data-garden-version': '9.5.1'
24
24
  }).withConfig({
25
25
  displayName: "StyledRGBAField",
26
26
  componentId: "sc-13266k8-0"
27
- })(["display:flex;flex-direction:column;text-align:center;", ";", ";"], props => sizeStyles(props.theme), props => retrieveComponentStyles(COMPONENT_ID, props));
27
+ })(["display:flex;flex-direction:column;text-align:center;", ";", ";"], props => sizeStyles(props.theme), componentStyles);
28
28
 
29
29
  export { StyledRGBAField };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'colorpickers.colorpicker_slider_group';
11
11
  const StyledSliderGroup = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledSliderGroup",
16
16
  componentId: "sc-tigkzg-0"
17
- })(["display:flex;justify-content:space-between;margin-bottom:", "px;", ";"], props => props.theme.space.base * 2, props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["display:flex;justify-content:space-between;margin-bottom:", "px;", ";"], props => props.theme.space.base * 2, componentStyles);
18
18
 
19
19
  export { StyledSliderGroup };
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
  import { getTrackHeight, getTrackMargin } from '../common/StyledRange.js';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_sliders';
@@ -33,10 +33,10 @@ const sizeStyles = props => {
33
33
  };
34
34
  const StyledSliders = styled.div.attrs({
35
35
  'data-garden-id': COMPONENT_ID,
36
- 'data-garden-version': '9.4.0'
36
+ 'data-garden-version': '9.5.1'
37
37
  }).withConfig({
38
38
  displayName: "StyledSliders",
39
39
  componentId: "sc-1lgr50m-0"
40
- })(["position:relative;margin-", ":", "px;width:100%;", " ", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, sizeStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
40
+ })(["position:relative;margin-", ":", "px;width:100%;", " ", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, sizeStyles, componentStyles);
41
41
 
42
42
  export { StyledSliders };
@@ -9,7 +9,7 @@ import { Button } from '@zendeskgarden/react-buttons';
9
9
 
10
10
  const StyledButton = styled(Button).attrs({
11
11
  isNeutral: true,
12
- 'data-garden-version': '9.4.0'
12
+ 'data-garden-version': '9.5.1'
13
13
  }).withConfig({
14
14
  displayName: "StyledButton",
15
15
  componentId: "sc-1dlijfv-0"
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { rgba } from 'polished';
9
- import { getCheckeredBackground, retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { getCheckeredBackground, componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colordialog_preview';
12
12
  const background = _ref => {
@@ -39,11 +39,11 @@ const StyledButtonPreview = styled.span.attrs(props => ({
39
39
  })
40
40
  },
41
41
  'data-garden-id': COMPONENT_ID,
42
- 'data-garden-version': '9.4.0',
42
+ 'data-garden-version': '9.5.1',
43
43
  'data-test-id': 'dialog-preview'
44
44
  })).withConfig({
45
45
  displayName: "StyledButtonPreview",
46
46
  componentId: "sc-yxis8h-0"
47
- })(["display:inline-block;bottom:", "px;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.space.base, props => props.theme.borderRadii.sm, props => props.theme.borderWidths.sm, props => rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * 5, props => props.theme.space.base * 5, props => retrieveComponentStyles(COMPONENT_ID, props));
47
+ })(["display:inline-block;bottom:", "px;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.space.base, props => props.theme.borderRadii.sm, props => props.theme.borderWidths.sm, props => rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * 5, props => props.theme.space.base * 5, componentStyles);
48
48
 
49
49
  export { StyledButtonPreview };
@@ -6,15 +6,15 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { TooltipDialog } from '@zendeskgarden/react-modals';
9
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colordialog_tooltipdialog_body';
12
12
  const StyledTooltipBody = styled(TooltipDialog.Body).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0'
14
+ 'data-garden-version': '9.5.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledTooltipBody",
17
17
  componentId: "sc-1ueddpo-0"
18
- })(["padding:0;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ })(["padding:0;", ";"], componentStyles);
19
19
 
20
20
  export { StyledTooltipBody };
@@ -6,15 +6,15 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { TooltipDialog } from '@zendeskgarden/react-modals';
9
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
+ import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colordialog_tooltipdialog';
12
12
  const StyledTooltipDialog = styled(TooltipDialog).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0'
14
+ 'data-garden-version': '9.5.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledTooltipDialog",
17
17
  componentId: "sc-1vbkccl-0"
18
- })(["width:auto !important;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ })(["width:auto !important;", ";"], componentStyles);
19
19
 
20
20
  export { StyledTooltipDialog };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'colorpickers.swatch_cell';
11
11
  const StyledCell = styled.td.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledCell",
16
16
  componentId: "sc-qr3oit-0"
17
- })(["padding:", "px;font-size:0;", ";"], props => props.theme.space.base, props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["padding:", "px;font-size:0;", ";"], props => props.theme.space.base, componentStyles);
18
18
 
19
19
  export { StyledCell };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'colorpickers.color_swatch';
11
11
  const StyledColorSwatch = styled.table.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledColorSwatch",
16
16
  componentId: "sc-ajx440-0"
17
- })(["border-collapse:collapse;line-height:normal;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["border-collapse:collapse;line-height:normal;", ";"], componentStyles);
18
18
 
19
19
  export { StyledColorSwatch };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'colorpickers.color_swatch_input';
11
11
  const StyledColorSwatchInput = styled.input.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.1'
14
14
  }).withConfig({
15
15
  displayName: "StyledColorSwatchInput",
16
16
  componentId: "sc-em45h0-0"
17
- })(["position:absolute;opacity:0;z-index:1;margin:0;cursor:pointer;width:100%;height:100%;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["position:absolute;opacity:0;z-index:1;margin:0;cursor:pointer;width:100%;height:100%;", ";"], componentStyles);
18
18
 
19
19
  export { StyledColorSwatchInput };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled from 'styled-components';
8
8
  import { parseToRgb, readableColor } from 'polished';
9
- import { focusStyles, retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
9
+ import { focusStyles, componentStyles, getColor } from '@zendeskgarden/react-theming';
10
10
  import { StyledButtonPreview } from '../ColorPickerDialog/StyledButtonPreview.js';
11
11
 
12
12
  const COMPONENT_ID = 'colorpickers.color_swatch_label';
@@ -38,13 +38,13 @@ const colorStyles = _ref => {
38
38
  const StyledColorSwatchLabel = styled(StyledButtonPreview).attrs({
39
39
  as: 'label',
40
40
  'data-garden-id': COMPONENT_ID,
41
- 'data-garden-version': '9.4.0'
41
+ 'data-garden-version': '9.5.1'
42
42
  }).withConfig({
43
43
  displayName: "StyledColorSwatchLabel",
44
44
  componentId: "sc-1aghocg-0"
45
45
  })(["position:relative;top:0;border-radius:", ";", ";", " ", ";"], props => props.theme.borderRadii.md, colorStyles, props => focusStyles({
46
46
  theme: props.theme,
47
47
  selector: '&:has(:focus-visible)'
48
- }), props => retrieveComponentStyles(COMPONENT_ID, props));
48
+ }), componentStyles);
49
49
 
50
50
  export { StyledColorSwatchLabel };
@@ -5,16 +5,16 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { StyledBaseIcon, retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { StyledBaseIcon, componentStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledColorSwatchInput } from './StyledColorSwatchInput.js';
10
10
 
11
11
  const COMPONENT_ID = 'colorpickers.colorswatch_check';
12
12
  const StyledIcon = styled(StyledBaseIcon).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0'
14
+ 'data-garden-version': '9.5.1'
15
15
  }).withConfig({
16
16
  displayName: "StyledIcon",
17
17
  componentId: "sc-8oigif-0"
18
- })(["position:absolute;top:0;left:0;transition:opacity 0.2s ease-in-out;opacity:0;width:100%;height:100%;", ":checked ~ &{opacity:1;}", ";"], StyledColorSwatchInput, props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ })(["position:absolute;top:0;left:0;transition:opacity 0.2s ease-in-out;opacity:0;width:100%;height:100%;", ":checked ~ &{opacity:1;}", ";"], StyledColorSwatchInput, componentStyles);
19
19
 
20
20
  export { StyledIcon };
@@ -7,7 +7,7 @@
7
7
  import { Range } from '@zendeskgarden/react-forms';
8
8
  import styled from 'styled-components';
9
9
  import { stripUnit } from 'polished';
10
- import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
10
+ import { componentStyles, getColor } from '@zendeskgarden/react-theming';
11
11
 
12
12
  const COMPONENT_ID = 'colorpickers.colorpicker_range';
13
13
  const thumbStyles = function (styles) {
@@ -145,13 +145,13 @@ const sizeStyles = props => {
145
145
  };
146
146
  const StyledRange = styled(Range).attrs({
147
147
  'data-garden-id': COMPONENT_ID,
148
- 'data-garden-version': '9.4.0',
148
+ 'data-garden-version': '9.5.1',
149
149
  hasLowerTrack: false
150
150
  }).withConfig({
151
151
  displayName: "StyledRange",
152
152
  componentId: "sc-ug3wi9-0"
153
153
  })(["", ";", " ", ";", ";"], sizeStyles, trackStyles(`
154
154
  border-radius: 0;
155
- `), colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
155
+ `), colorStyles, componentStyles);
156
156
 
157
157
  export { StyledRange, getTrackHeight, getTrackMargin, trackStyles };
package/dist/index.cjs.js CHANGED
@@ -137,11 +137,11 @@ const getColorPickerWidth = props => {
137
137
  };
138
138
  const StyledColorPicker = styled__default.default.div.attrs({
139
139
  'data-garden-id': COMPONENT_ID$l,
140
- 'data-garden-version': '9.4.0'
140
+ 'data-garden-version': '9.5.1'
141
141
  }).withConfig({
142
142
  displayName: "StyledColorPicker",
143
143
  componentId: "sc-gspq4q-0"
144
- })(["width:", "px;min-width:", "px;", ";"], getColorPickerWidth, getColorPickerWidth, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
144
+ })(["width:", "px;min-width:", "px;", ";"], getColorPickerWidth, getColorPickerWidth, reactTheming.componentStyles);
145
145
 
146
146
  const COMPONENT_ID$k = 'colorpickers.colorpicker_range';
147
147
  const thumbStyles = function (styles) {
@@ -279,19 +279,19 @@ const sizeStyles$3 = props => {
279
279
  };
280
280
  const StyledRange = styled__default.default(reactForms.Range).attrs({
281
281
  'data-garden-id': COMPONENT_ID$k,
282
- 'data-garden-version': '9.4.0',
282
+ 'data-garden-version': '9.5.1',
283
283
  hasLowerTrack: false
284
284
  }).withConfig({
285
285
  displayName: "StyledRange",
286
286
  componentId: "sc-ug3wi9-0"
287
287
  })(["", ";", " ", ";", ";"], sizeStyles$3, trackStyles(`
288
288
  border-radius: 0;
289
- `), colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
289
+ `), colorStyles$2, reactTheming.componentStyles);
290
290
 
291
291
  const COMPONENT_ID$j = 'colorpickers.colorpicker_hue';
292
292
  const StyledHueRange = styled__default.default(StyledRange).attrs({
293
293
  'data-garden-id': COMPONENT_ID$j,
294
- 'data-garden-version': '9.4.0'
294
+ 'data-garden-version': '9.5.1'
295
295
  }).withConfig({
296
296
  displayName: "StyledHueRange",
297
297
  componentId: "sc-1gdhww1-0"
@@ -319,7 +319,7 @@ const StyledAlphaRange = styled__default.default(StyledRange).attrs(props => ({
319
319
  background: background$3(props)
320
320
  },
321
321
  'data-garden-id': COMPONENT_ID$i,
322
- 'data-garden-version': '9.4.0'
322
+ 'data-garden-version': '9.5.1'
323
323
  })).withConfig({
324
324
  displayName: "StyledAlphaRange",
325
325
  componentId: "sc-1f6hp2j-0"
@@ -343,12 +343,12 @@ const StyledPreview = styled__default.default.div.attrs(props => ({
343
343
  background: background$2(props)
344
344
  },
345
345
  'data-garden-id': COMPONENT_ID$h,
346
- 'data-garden-version': '9.4.0',
346
+ 'data-garden-version': '9.5.1',
347
347
  'data-test-id': 'preview-box'
348
348
  })).withConfig({
349
349
  displayName: "StyledPreview",
350
350
  componentId: "sc-1z5nh7-0"
351
- })(["flex-shrink:0;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.borderRadii.md, props => props.theme.borderWidths.sm, props => polished.rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
351
+ })(["flex-shrink:0;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.borderRadii.md, props => props.theme.borderWidths.sm, props => polished.rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), props => props.theme.space.base * (props.$isOpaque ? 6 : 8), reactTheming.componentStyles);
352
352
 
353
353
  const COMPONENT_ID$g = 'colorpickers.colorpicker_colorwell';
354
354
  const background$1 = props => {
@@ -362,7 +362,7 @@ const background$1 = props => {
362
362
  };
363
363
  const StyledColorWell = styled__default.default.div.attrs(props => ({
364
364
  'data-garden-id': COMPONENT_ID$g,
365
- 'data-garden-version': '9.4.0',
365
+ 'data-garden-version': '9.5.1',
366
366
  'data-test-id': 'colorwell',
367
367
  style: {
368
368
  background: background$1(props)
@@ -370,7 +370,7 @@ const StyledColorWell = styled__default.default.div.attrs(props => ({
370
370
  })).withConfig({
371
371
  displayName: "StyledColorWell",
372
372
  componentId: "sc-1gg9z8m-0"
373
- })(["position:relative;margin-bottom:", "px;cursor:pointer;height:208px;overflow:hidden;", ";"], props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
373
+ })(["position:relative;margin-bottom:", "px;cursor:pointer;height:208px;overflow:hidden;", ";"], props => props.theme.space.base * 2, reactTheming.componentStyles);
374
374
 
375
375
  const COMPONENT_ID$f = 'colorpickers.colorpicker_colorwell_thumb';
376
376
  const colorStyles$1 = _ref => {
@@ -398,7 +398,7 @@ const sizeStyles$2 = _ref2 => {
398
398
  };
399
399
  const StyledColorWellThumb = styled__default.default.div.attrs(props => ({
400
400
  'data-garden-id': COMPONENT_ID$f,
401
- 'data-garden-version': '9.4.0',
401
+ 'data-garden-version': '9.5.1',
402
402
  'data-test-id': 'colorwell-thumb',
403
403
  style: {
404
404
  top: `${props.$top}%`,
@@ -407,54 +407,54 @@ const StyledColorWellThumb = styled__default.default.div.attrs(props => ({
407
407
  })).withConfig({
408
408
  displayName: "StyledColorWellThumb",
409
409
  componentId: "sc-1npyab0-0"
410
- })(["position:absolute;border:", ";border-radius:50%;", " ", " ", ";"], props => props.theme.borders.sm, sizeStyles$2, colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
410
+ })(["position:absolute;border:", ";border-radius:50%;", " ", " ", ";"], props => props.theme.borders.sm, sizeStyles$2, colorStyles$1, reactTheming.componentStyles);
411
411
 
412
412
  const COMPONENT_ID$e = 'colorpickers.colorpicker_slider_group';
413
413
  const StyledSliderGroup = styled__default.default.div.attrs({
414
414
  'data-garden-id': COMPONENT_ID$e,
415
- 'data-garden-version': '9.4.0'
415
+ 'data-garden-version': '9.5.1'
416
416
  }).withConfig({
417
417
  displayName: "StyledSliderGroup",
418
418
  componentId: "sc-tigkzg-0"
419
- })(["display:flex;justify-content:space-between;margin-bottom:", "px;", ";"], props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
419
+ })(["display:flex;justify-content:space-between;margin-bottom:", "px;", ";"], props => props.theme.space.base * 2, reactTheming.componentStyles);
420
420
 
421
421
  const COMPONENT_ID$d = 'colorpickers.colorpicker_hex_field';
422
422
  const StyledHexField = styled__default.default(reactForms.Field).attrs({
423
423
  'data-garden-id': COMPONENT_ID$d,
424
- 'data-garden-version': '9.4.0',
424
+ 'data-garden-version': '9.5.1',
425
425
  spellCheck: false
426
426
  }).withConfig({
427
427
  displayName: "StyledHexField",
428
428
  componentId: "sc-ijq1c-0"
429
- })(["display:flex;flex-basis:0;flex-direction:column;flex-grow:1;width:auto;text-align:center;input{direction:ltr;}", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
429
+ })(["display:flex;flex-basis:0;flex-direction:column;flex-grow:1;width:auto;text-align:center;input{direction:ltr;}", ";"], reactTheming.componentStyles);
430
430
 
431
431
  const COMPONENT_ID$c = 'colorpickers.colorpicker_label';
432
432
  const StyledLabel = styled__default.default(reactForms.Label).attrs({
433
433
  'data-garden-id': COMPONENT_ID$c,
434
- 'data-garden-version': '9.4.0'
434
+ 'data-garden-version': '9.5.1'
435
435
  }).withConfig({
436
436
  displayName: "StyledLabel",
437
437
  componentId: "sc-1vxt3m9-0"
438
- })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
438
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], reactTheming.componentStyles);
439
439
 
440
440
  const COMPONENT_ID$b = 'colorpickers.colorpicker_input';
441
441
  const StyledInput = styled__default.default(reactForms.Input).attrs({
442
442
  'data-garden-id': COMPONENT_ID$b,
443
- 'data-garden-version': '9.4.0',
443
+ 'data-garden-version': '9.5.1',
444
444
  focusInset: false
445
445
  }).withConfig({
446
446
  displayName: "StyledInput",
447
447
  componentId: "sc-1uzlutt-0"
448
- })(["text-align:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
448
+ })(["text-align:center;", ";"], reactTheming.componentStyles);
449
449
 
450
450
  const COMPONENT_ID$a = 'colorpickers.colorpicker_input_group';
451
451
  const StyledInputGroup = styled__default.default.div.attrs({
452
452
  'data-garden-id': COMPONENT_ID$a,
453
- 'data-garden-version': '9.4.0'
453
+ 'data-garden-version': '9.5.1'
454
454
  }).withConfig({
455
455
  displayName: "StyledInputGroup",
456
456
  componentId: "sc-1m9g2wg-0"
457
- })(["display:flex;justify-content:space-between;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
457
+ })(["display:flex;justify-content:space-between;", ";"], reactTheming.componentStyles);
458
458
 
459
459
  const COMPONENT_ID$9 = 'colorpickers.colorpicker_rgb_field';
460
460
  const sizeStyles$1 = theme => {
@@ -468,11 +468,11 @@ const sizeStyles$1 = theme => {
468
468
  };
469
469
  const StyledRGBAField = styled__default.default(reactForms.Field).attrs({
470
470
  'data-garden-id': COMPONENT_ID$9,
471
- 'data-garden-version': '9.4.0'
471
+ 'data-garden-version': '9.5.1'
472
472
  }).withConfig({
473
473
  displayName: "StyledRGBAField",
474
474
  componentId: "sc-13266k8-0"
475
- })(["display:flex;flex-direction:column;text-align:center;", ";", ";"], props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
475
+ })(["display:flex;flex-direction:column;text-align:center;", ";", ";"], props => sizeStyles$1(props.theme), reactTheming.componentStyles);
476
476
 
477
477
  const COMPONENT_ID$8 = 'colorpickers.colorpicker_sliders';
478
478
  const sizeStyles = props => {
@@ -499,15 +499,15 @@ const sizeStyles = props => {
499
499
  };
500
500
  const StyledSliders = styled__default.default.div.attrs({
501
501
  'data-garden-id': COMPONENT_ID$8,
502
- 'data-garden-version': '9.4.0'
502
+ 'data-garden-version': '9.5.1'
503
503
  }).withConfig({
504
504
  displayName: "StyledSliders",
505
505
  componentId: "sc-1lgr50m-0"
506
- })(["position:relative;margin-", ":", "px;width:100%;", " ", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, sizeStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
506
+ })(["position:relative;margin-", ":", "px;width:100%;", " ", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, sizeStyles, reactTheming.componentStyles);
507
507
 
508
508
  const StyledButton = styled__default.default(reactButtons.Button).attrs({
509
509
  isNeutral: true,
510
- 'data-garden-version': '9.4.0'
510
+ 'data-garden-version': '9.5.1'
511
511
  }).withConfig({
512
512
  displayName: "StyledButton",
513
513
  componentId: "sc-1dlijfv-0"
@@ -544,48 +544,48 @@ const StyledButtonPreview = styled__default.default.span.attrs(props => ({
544
544
  })
545
545
  },
546
546
  'data-garden-id': COMPONENT_ID$7,
547
- 'data-garden-version': '9.4.0',
547
+ 'data-garden-version': '9.5.1',
548
548
  'data-test-id': 'dialog-preview'
549
549
  })).withConfig({
550
550
  displayName: "StyledButtonPreview",
551
551
  componentId: "sc-yxis8h-0"
552
- })(["display:inline-block;bottom:", "px;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.space.base, props => props.theme.borderRadii.sm, props => props.theme.borderWidths.sm, props => polished.rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * 5, props => props.theme.space.base * 5, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
552
+ })(["display:inline-block;bottom:", "px;border-radius:", ";box-shadow:inset 0 0 0 ", " ", ";width:", "px;height:", "px;", ";"], props => props.theme.space.base, props => props.theme.borderRadii.sm, props => props.theme.borderWidths.sm, props => polished.rgba(props.theme.palette.black, 0.19), props => props.theme.space.base * 5, props => props.theme.space.base * 5, reactTheming.componentStyles);
553
553
 
554
554
  const COMPONENT_ID$6 = 'colorpickers.colordialog_tooltipdialog';
555
555
  const StyledTooltipDialog = styled__default.default(reactModals.TooltipDialog).attrs({
556
556
  'data-garden-id': COMPONENT_ID$6,
557
- 'data-garden-version': '9.4.0'
557
+ 'data-garden-version': '9.5.1'
558
558
  }).withConfig({
559
559
  displayName: "StyledTooltipDialog",
560
560
  componentId: "sc-1vbkccl-0"
561
- })(["width:auto !important;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
561
+ })(["width:auto !important;", ";"], reactTheming.componentStyles);
562
562
 
563
563
  const COMPONENT_ID$5 = 'colorpickers.colordialog_tooltipdialog_body';
564
564
  const StyledTooltipBody = styled__default.default(reactModals.TooltipDialog.Body).attrs({
565
565
  'data-garden-id': COMPONENT_ID$5,
566
- 'data-garden-version': '9.4.0'
566
+ 'data-garden-version': '9.5.1'
567
567
  }).withConfig({
568
568
  displayName: "StyledTooltipBody",
569
569
  componentId: "sc-1ueddpo-0"
570
- })(["padding:0;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
570
+ })(["padding:0;", ";"], reactTheming.componentStyles);
571
571
 
572
572
  const COMPONENT_ID$4 = 'colorpickers.color_swatch';
573
573
  const StyledColorSwatch = styled__default.default.table.attrs({
574
574
  'data-garden-id': COMPONENT_ID$4,
575
- 'data-garden-version': '9.4.0'
575
+ 'data-garden-version': '9.5.1'
576
576
  }).withConfig({
577
577
  displayName: "StyledColorSwatch",
578
578
  componentId: "sc-ajx440-0"
579
- })(["border-collapse:collapse;line-height:normal;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
579
+ })(["border-collapse:collapse;line-height:normal;", ";"], reactTheming.componentStyles);
580
580
 
581
581
  const COMPONENT_ID$3 = 'colorpickers.color_swatch_input';
582
582
  const StyledColorSwatchInput = styled__default.default.input.attrs({
583
583
  'data-garden-id': COMPONENT_ID$3,
584
- 'data-garden-version': '9.4.0'
584
+ 'data-garden-version': '9.5.1'
585
585
  }).withConfig({
586
586
  displayName: "StyledColorSwatchInput",
587
587
  componentId: "sc-em45h0-0"
588
- })(["position:absolute;opacity:0;z-index:1;margin:0;cursor:pointer;width:100%;height:100%;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
588
+ })(["position:absolute;opacity:0;z-index:1;margin:0;cursor:pointer;width:100%;height:100%;", ";"], reactTheming.componentStyles);
589
589
 
590
590
  const COMPONENT_ID$2 = 'colorpickers.color_swatch_label';
591
591
  const colorStyles = _ref => {
@@ -616,32 +616,32 @@ const colorStyles = _ref => {
616
616
  const StyledColorSwatchLabel = styled__default.default(StyledButtonPreview).attrs({
617
617
  as: 'label',
618
618
  'data-garden-id': COMPONENT_ID$2,
619
- 'data-garden-version': '9.4.0'
619
+ 'data-garden-version': '9.5.1'
620
620
  }).withConfig({
621
621
  displayName: "StyledColorSwatchLabel",
622
622
  componentId: "sc-1aghocg-0"
623
623
  })(["position:relative;top:0;border-radius:", ";", ";", " ", ";"], props => props.theme.borderRadii.md, colorStyles, props => reactTheming.focusStyles({
624
624
  theme: props.theme,
625
625
  selector: '&:has(:focus-visible)'
626
- }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
626
+ }), reactTheming.componentStyles);
627
627
 
628
628
  const COMPONENT_ID$1 = 'colorpickers.colorswatch_check';
629
629
  const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
630
630
  'data-garden-id': COMPONENT_ID$1,
631
- 'data-garden-version': '9.4.0'
631
+ 'data-garden-version': '9.5.1'
632
632
  }).withConfig({
633
633
  displayName: "StyledIcon",
634
634
  componentId: "sc-8oigif-0"
635
- })(["position:absolute;top:0;left:0;transition:opacity 0.2s ease-in-out;opacity:0;width:100%;height:100%;", ":checked ~ &{opacity:1;}", ";"], StyledColorSwatchInput, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
635
+ })(["position:absolute;top:0;left:0;transition:opacity 0.2s ease-in-out;opacity:0;width:100%;height:100%;", ":checked ~ &{opacity:1;}", ";"], StyledColorSwatchInput, reactTheming.componentStyles);
636
636
 
637
637
  const COMPONENT_ID = 'colorpickers.swatch_cell';
638
638
  const StyledCell = styled__default.default.td.attrs({
639
639
  'data-garden-id': COMPONENT_ID,
640
- 'data-garden-version': '9.4.0'
640
+ 'data-garden-version': '9.5.1'
641
641
  }).withConfig({
642
642
  displayName: "StyledCell",
643
643
  componentId: "sc-qr3oit-0"
644
- })(["padding:", "px;font-size:0;", ";"], props => props.theme.space.base, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
644
+ })(["padding:", "px;font-size:0;", ";"], props => props.theme.space.base, reactTheming.componentStyles);
645
645
 
646
646
  const ColorWell = React__namespace.default.memo(_ref => {
647
647
  let {
@@ -704,15 +704,17 @@ const ColorWell = React__namespace.default.memo(_ref => {
704
704
  throttledChange.cancel();
705
705
  };
706
706
  }, [throttledChange]);
707
- return React__namespace.default.createElement(StyledColorWell, {
708
- $hue: hue,
709
- ref: containerRef,
710
- role: "presentation",
711
- onMouseDown: handleMouseDown
712
- }, React__namespace.default.createElement(StyledColorWellThumb, {
713
- $top: mouseActiveRef.current ? topFromMouse : topPosition,
714
- $left: mouseActiveRef.current ? leftFromMouse : leftPosition
715
- }));
707
+ return (
708
+ React__namespace.default.createElement(StyledColorWell, {
709
+ $hue: hue,
710
+ ref: containerRef,
711
+ role: "presentation",
712
+ onMouseDown: handleMouseDown
713
+ }, React__namespace.default.createElement(StyledColorWellThumb, {
714
+ $top: mouseActiveRef.current ? topFromMouse : topPosition,
715
+ $left: mouseActiveRef.current ? leftFromMouse : leftPosition
716
+ }))
717
+ );
716
718
  });
717
719
  ColorWell.displayName = 'ColorWell';
718
720
 
@@ -1374,7 +1376,7 @@ const ColorSwatch = React.forwardRef((_ref, ref) => {
1374
1376
  setColIndex(col);
1375
1377
  }
1376
1378
  });
1377
- return React__namespace.default.createElement(StyledColorSwatch, Object.assign({
1379
+ return React__namespace.default.createElement(StyledColorSwatch, Object.assign({
1378
1380
  role: "grid",
1379
1381
  ref: reactMergeRefs.mergeRefs([gridRef, ref])
1380
1382
  }, props), React__namespace.default.createElement("tbody", null, colors.map((row, _rowIndex) => React__namespace.default.createElement("tr", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-colorpickers",
3
- "version": "9.4.0",
3
+ "version": "9.5.1",
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>",
@@ -23,10 +23,10 @@
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-grid": "^3.0.0",
25
25
  "@zendeskgarden/container-utilities": "^2.0.0",
26
- "@zendeskgarden/react-buttons": "^9.4.0",
27
- "@zendeskgarden/react-forms": "^9.4.0",
28
- "@zendeskgarden/react-modals": "^9.4.0",
29
- "@zendeskgarden/react-tooltips": "^9.4.0",
26
+ "@zendeskgarden/react-buttons": "^9.5.1",
27
+ "@zendeskgarden/react-forms": "^9.5.1",
28
+ "@zendeskgarden/react-modals": "^9.5.1",
29
+ "@zendeskgarden/react-tooltips": "^9.5.1",
30
30
  "lodash.isequal": "^4.5.0",
31
31
  "lodash.throttle": "^4.1.1",
32
32
  "polished": "^4.3.1",
@@ -42,8 +42,8 @@
42
42
  "devDependencies": {
43
43
  "@types/lodash.isequal": "4.5.8",
44
44
  "@types/lodash.throttle": "4.1.9",
45
- "@zendeskgarden/react-theming": "^9.4.0",
46
- "@zendeskgarden/svg-icons": "7.3.0"
45
+ "@zendeskgarden/react-theming": "^9.5.1",
46
+ "@zendeskgarden/svg-icons": "7.5.0"
47
47
  },
48
48
  "keywords": [
49
49
  "colorpicker",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "zendeskgarden:src": "src/index.ts",
59
- "gitHead": "02e3f240b6f0c776fdae785254d6fe90cbfc37e4"
59
+ "gitHead": "2571d0225b784bb7c765316ed584d289d35d4605"
60
60
  }