@zendeskgarden/react-colorpickers 9.0.0-next.11 → 9.0.0-next.13

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 (29) hide show
  1. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/check-sm-fill.svg.js +1 -1
  2. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
  3. package/dist/esm/styled/ColorPicker/StyledAlphaRange.js +1 -1
  4. package/dist/esm/styled/ColorPicker/StyledColorPicker.js +1 -1
  5. package/dist/esm/styled/ColorPicker/StyledColorWell.js +1 -1
  6. package/dist/esm/styled/ColorPicker/StyledColorWellThumb.js +1 -1
  7. package/dist/esm/styled/ColorPicker/StyledHexField.js +1 -1
  8. package/dist/esm/styled/ColorPicker/StyledHueRange.js +1 -1
  9. package/dist/esm/styled/ColorPicker/StyledInput.js +1 -1
  10. package/dist/esm/styled/ColorPicker/StyledInputGroup.js +1 -1
  11. package/dist/esm/styled/ColorPicker/StyledLabel.js +1 -1
  12. package/dist/esm/styled/ColorPicker/StyledPreview.js +1 -1
  13. package/dist/esm/styled/ColorPicker/StyledRGBAField.js +1 -1
  14. package/dist/esm/styled/ColorPicker/StyledSliderGroup.js +1 -1
  15. package/dist/esm/styled/ColorPicker/StyledSliders.js +1 -1
  16. package/dist/esm/styled/ColorPickerDialog/StyledButton.js +3 -5
  17. package/dist/esm/styled/ColorPickerDialog/StyledButtonPreview.js +1 -1
  18. package/dist/esm/styled/ColorPickerDialog/StyledTooltipBody.js +1 -1
  19. package/dist/esm/styled/ColorPickerDialog/StyledTooltipModal.js +1 -1
  20. package/dist/esm/styled/ColorSwatch/StyledCell.js +1 -1
  21. package/dist/esm/styled/ColorSwatch/StyledColorSwatch.js +1 -1
  22. package/dist/esm/styled/ColorSwatch/StyledColorSwatchInput.js +1 -1
  23. package/dist/esm/styled/ColorSwatch/StyledColorSwatchLabel.js +1 -1
  24. package/dist/esm/styled/ColorSwatch/StyledIcon.js +1 -1
  25. package/dist/esm/styled/common/StyledRange.js +1 -1
  26. package/dist/index.cjs.js +66 -68
  27. package/dist/typings/styled/ColorPickerDialog/StyledButton.d.ts +0 -1
  28. package/package.json +9 -10
  29. package/LICENSE.md +0 -176
@@ -7,7 +7,7 @@
7
7
  import * as React from 'react';
8
8
 
9
9
  var _path;
10
- 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); }
10
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
11
  var SvgCheckSmFill = function SvgCheckSmFill(props) {
12
12
  return /*#__PURE__*/React.createElement("svg", _extends({
13
13
  xmlns: "http://www.w3.org/2000/svg",
@@ -7,7 +7,7 @@
7
7
  import * as React from 'react';
8
8
 
9
9
  var _path;
10
- 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); }
10
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
11
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
12
12
  return /*#__PURE__*/React.createElement("svg", _extends({
13
13
  xmlns: "http://www.w3.org/2000/svg",
@@ -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.0.0-next.11'
33
+ 'data-garden-version': '9.0.0-next.13'
34
34
  })).withConfig({
35
35
  displayName: "StyledAlphaRange",
36
36
  componentId: "sc-1f6hp2j-0"
@@ -13,7 +13,7 @@ const getColorPickerWidth = props => {
13
13
  };
14
14
  const StyledColorPicker = styled.div.attrs({
15
15
  'data-garden-id': COMPONENT_ID,
16
- 'data-garden-version': '9.0.0-next.11'
16
+ 'data-garden-version': '9.0.0-next.13'
17
17
  }).withConfig({
18
18
  displayName: "StyledColorPicker",
19
19
  componentId: "sc-gspq4q-0"
@@ -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.0.0-next.11',
23
+ 'data-garden-version': '9.0.0-next.13',
24
24
  'data-test-id': 'colorwell',
25
25
  style: {
26
26
  background: background(props)
@@ -23,7 +23,7 @@ const sizeStyles = theme => {
23
23
  };
24
24
  const StyledColorWellThumb = styled.div.attrs(props => ({
25
25
  'data-garden-id': COMPONENT_ID,
26
- 'data-garden-version': '9.0.0-next.11',
26
+ 'data-garden-version': '9.0.0-next.13',
27
27
  'data-test-id': 'colorwell-thumb',
28
28
  style: {
29
29
  top: `${props.top}%`,
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
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.0.0-next.11',
14
+ 'data-garden-version': '9.0.0-next.13',
15
15
  spellcheck: false
16
16
  }).withConfig({
17
17
  displayName: "StyledHexField",
@@ -11,7 +11,7 @@ import { StyledRange, getTrackMargin, getTrackHeight } from '../common/StyledRan
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_hue';
12
12
  const StyledHueRange = styled(StyledRange).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.11'
14
+ 'data-garden-version': '9.0.0-next.13'
15
15
  }).withConfig({
16
16
  displayName: "StyledHueRange",
17
17
  componentId: "sc-1gdhww1-0"
@@ -11,7 +11,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11',
14
+ 'data-garden-version': '9.0.0-next.13',
15
15
  focusInset: false
16
16
  }).withConfig({
17
17
  displayName: "StyledInput",
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11'
13
+ 'data-garden-version': '9.0.0-next.13'
14
14
  }).withConfig({
15
15
  displayName: "StyledInputGroup",
16
16
  componentId: "sc-1m9g2wg-0"
@@ -11,7 +11,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11'
14
+ 'data-garden-version': '9.0.0-next.13'
15
15
  }).withConfig({
16
16
  displayName: "StyledLabel",
17
17
  componentId: "sc-1vxt3m9-0"
@@ -26,7 +26,7 @@ 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.0.0-next.11',
29
+ 'data-garden-version': '9.0.0-next.13',
30
30
  'data-test-id': 'preview-box'
31
31
  })).withConfig({
32
32
  displayName: "StyledPreview",
@@ -20,7 +20,7 @@ const sizeStyles = theme => {
20
20
  };
21
21
  const StyledRGBAField = styled(Field).attrs({
22
22
  'data-garden-id': COMPONENT_ID,
23
- 'data-garden-version': '9.0.0-next.11'
23
+ 'data-garden-version': '9.0.0-next.13'
24
24
  }).withConfig({
25
25
  displayName: "StyledRGBAField",
26
26
  componentId: "sc-13266k8-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11'
13
+ 'data-garden-version': '9.0.0-next.13'
14
14
  }).withConfig({
15
15
  displayName: "StyledSliderGroup",
16
16
  componentId: "sc-tigkzg-0"
@@ -11,7 +11,7 @@ import { getTrackMargin, getTrackHeight } from '../common/StyledRange.js';
11
11
  const COMPONENT_ID = 'colorpickers.colorpicker_sliders';
12
12
  const StyledSliders = styled.div.attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.11'
14
+ 'data-garden-version': '9.0.0-next.13'
15
15
  }).withConfig({
16
16
  displayName: "StyledSliders",
17
17
  componentId: "sc-1lgr50m-0"
@@ -5,18 +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 { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
9
  import { Button } from '@zendeskgarden/react-buttons';
10
10
 
11
- const COMPONENT_ID = 'colorpickers.colordialog_button';
12
11
  const StyledButton = styled(Button).attrs({
13
12
  isNeutral: true,
14
- 'data-garden-id': COMPONENT_ID,
15
- 'data-garden-version': '9.0.0-next.11'
13
+ 'data-garden-version': '9.0.0-next.13'
16
14
  }).withConfig({
17
15
  displayName: "StyledButton",
18
16
  componentId: "sc-1dlijfv-0"
19
- })(["padding:0;width:", "px;max-width:", "px;&:last-of-type:not(:first-child){border-top-", "-radius:", " !important;border-bottom-", "-radius:", " !important;}", ";"], props => props.theme.space.base * 17, props => props.theme.space.base * 17, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md, props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["padding:0;width:", "px;max-width:", "px;&:last-of-type:not(:first-child){border-top-", "-radius:", " !important;border-bottom-", "-radius:", " !important;}"], props => props.theme.space.base * 17, props => props.theme.space.base * 17, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md);
20
18
  StyledButton.defaultProps = {
21
19
  theme: DEFAULT_THEME
22
20
  };
@@ -38,7 +38,7 @@ const StyledButtonPreview = styled.span.attrs(props => ({
38
38
  })
39
39
  },
40
40
  'data-garden-id': COMPONENT_ID,
41
- 'data-garden-version': '9.0.0-next.11',
41
+ 'data-garden-version': '9.0.0-next.13',
42
42
  'data-test-id': 'dialog-preview'
43
43
  })).withConfig({
44
44
  displayName: "StyledButtonPreview",
@@ -11,7 +11,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
11
11
  const COMPONENT_ID = 'colorpickers.colordialog_tooltipmodal_body';
12
12
  const StyledTooltipBody = styled(TooltipModal.Body).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.11'
14
+ 'data-garden-version': '9.0.0-next.13'
15
15
  }).withConfig({
16
16
  displayName: "StyledTooltipBody",
17
17
  componentId: "sc-1ueddpo-0"
@@ -11,7 +11,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
11
11
  const COMPONENT_ID = 'colorpickers.colordialog_tooltipmodal';
12
12
  const StyledTooltipModal = styled(TooltipModal).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.11'
14
+ 'data-garden-version': '9.0.0-next.13'
15
15
  }).withConfig({
16
16
  displayName: "StyledTooltipModal",
17
17
  componentId: "sc-gykkrw-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11'
13
+ 'data-garden-version': '9.0.0-next.13'
14
14
  }).withConfig({
15
15
  displayName: "StyledCell",
16
16
  componentId: "sc-qr3oit-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11'
13
+ 'data-garden-version': '9.0.0-next.13'
14
14
  }).withConfig({
15
15
  displayName: "StyledColorSwatch",
16
16
  componentId: "sc-ajx440-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.11'
13
+ 'data-garden-version': '9.0.0-next.13'
14
14
  }).withConfig({
15
15
  displayName: "StyledColorSwatchInput",
16
16
  componentId: "sc-em45h0-0"
@@ -25,7 +25,7 @@ const colorStyles = props => {
25
25
  const StyledColorSwatchLabel = styled(StyledButtonPreview).attrs({
26
26
  as: 'label',
27
27
  'data-garden-id': COMPONENT_ID,
28
- 'data-garden-version': '9.0.0-next.11'
28
+ 'data-garden-version': '9.0.0-next.13'
29
29
  }).withConfig({
30
30
  displayName: "StyledColorSwatchLabel",
31
31
  componentId: "sc-1aghocg-0"
@@ -12,7 +12,7 @@ import { StyledColorSwatchInput } from './StyledColorSwatchInput.js';
12
12
  const COMPONENT_ID = 'colorpickers.colorswatch_check';
13
13
  const StyledIcon = styled(SvgCheckSmFill).attrs({
14
14
  'data-garden-id': COMPONENT_ID,
15
- 'data-garden-version': '9.0.0-next.11'
15
+ 'data-garden-version': '9.0.0-next.13'
16
16
  }).withConfig({
17
17
  displayName: "StyledIcon",
18
18
  componentId: "sc-8oigif-0"
@@ -136,7 +136,7 @@ const sizeStyles = props => {
136
136
  };
137
137
  const StyledRange = styled(Range).attrs({
138
138
  'data-garden-id': COMPONENT_ID,
139
- 'data-garden-version': '9.0.0-next.11',
139
+ 'data-garden-version': '9.0.0-next.13',
140
140
  hasLowerTrack: false
141
141
  }).withConfig({
142
142
  displayName: "StyledRange",
package/dist/index.cjs.js CHANGED
@@ -131,22 +131,22 @@ const getThumbPosition = (x, y, rtl, container) => {
131
131
  };
132
132
  };
133
133
 
134
- const COMPONENT_ID$m = 'colorpickers.colorpicker';
134
+ const COMPONENT_ID$l = 'colorpickers.colorpicker';
135
135
  const getColorPickerWidth = props => {
136
136
  return props.isOpaque ? 268 : 312;
137
137
  };
138
138
  const StyledColorPicker = styled__default.default.div.attrs({
139
- 'data-garden-id': COMPONENT_ID$m,
140
- 'data-garden-version': '9.0.0-next.11'
139
+ 'data-garden-id': COMPONENT_ID$l,
140
+ 'data-garden-version': '9.0.0-next.13'
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$m, props));
144
+ })(["width:", "px;min-width:", "px;", ";"], getColorPickerWidth, getColorPickerWidth, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
145
145
  StyledColorPicker.defaultProps = {
146
146
  theme: reactTheming.DEFAULT_THEME
147
147
  };
148
148
 
149
- const COMPONENT_ID$l = 'colorpickers.colorpicker_range';
149
+ const COMPONENT_ID$k = 'colorpickers.colorpicker_range';
150
150
  const thumbStyles = function (styles) {
151
151
  let modifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
152
152
  return `
@@ -272,23 +272,23 @@ const sizeStyles$2 = props => {
272
272
  `;
273
273
  };
274
274
  const StyledRange = styled__default.default(reactForms.Range).attrs({
275
- 'data-garden-id': COMPONENT_ID$l,
276
- 'data-garden-version': '9.0.0-next.11',
275
+ 'data-garden-id': COMPONENT_ID$k,
276
+ 'data-garden-version': '9.0.0-next.13',
277
277
  hasLowerTrack: false
278
278
  }).withConfig({
279
279
  displayName: "StyledRange",
280
280
  componentId: "sc-ug3wi9-0"
281
281
  })(["", ";", " ", ";", ";"], sizeStyles$2, trackStyles(`
282
282
  border-radius: 0;
283
- `), colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
283
+ `), colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
284
284
  StyledRange.defaultProps = {
285
285
  theme: reactTheming.DEFAULT_THEME
286
286
  };
287
287
 
288
- const COMPONENT_ID$k = 'colorpickers.colorpicker_hue';
288
+ const COMPONENT_ID$j = 'colorpickers.colorpicker_hue';
289
289
  const StyledHueRange = styled__default.default(StyledRange).attrs({
290
- 'data-garden-id': COMPONENT_ID$k,
291
- 'data-garden-version': '9.0.0-next.11'
290
+ 'data-garden-id': COMPONENT_ID$j,
291
+ 'data-garden-version': '9.0.0-next.13'
292
292
  }).withConfig({
293
293
  displayName: "StyledHueRange",
294
294
  componentId: "sc-1gdhww1-0"
@@ -297,7 +297,7 @@ StyledHueRange.defaultProps = {
297
297
  theme: reactTheming.DEFAULT_THEME
298
298
  };
299
299
 
300
- const COMPONENT_ID$j = 'colorpickers.colorpicker_alpha';
300
+ const COMPONENT_ID$i = 'colorpickers.colorpicker_alpha';
301
301
  const background$3 = props => {
302
302
  const direction = `to ${props.theme.rtl ? 'left' : 'right'}`;
303
303
  const fromColor = `rgba(${props.red}, ${props.green}, ${props.blue}, 0)`;
@@ -318,8 +318,8 @@ const StyledAlphaRange = styled__default.default(StyledRange).attrs(props => ({
318
318
  backgroundSize: 'auto',
319
319
  background: background$3(props)
320
320
  },
321
- 'data-garden-id': COMPONENT_ID$j,
322
- 'data-garden-version': '9.0.0-next.11'
321
+ 'data-garden-id': COMPONENT_ID$i,
322
+ 'data-garden-version': '9.0.0-next.13'
323
323
  })).withConfig({
324
324
  displayName: "StyledAlphaRange",
325
325
  componentId: "sc-1f6hp2j-0"
@@ -328,7 +328,7 @@ StyledAlphaRange.defaultProps = {
328
328
  theme: reactTheming.DEFAULT_THEME
329
329
  };
330
330
 
331
- const COMPONENT_ID$i = 'colorpickers.colorpicker_preview_box';
331
+ const COMPONENT_ID$h = 'colorpickers.colorpicker_preview_box';
332
332
  const background$2 = props => {
333
333
  const alpha = props.alpha ? props.alpha / 100 : 0;
334
334
  let retVal = `rgba(${props.red}, ${props.green}, ${props.blue}, ${alpha})`;
@@ -345,18 +345,18 @@ const StyledPreview = styled__default.default.div.attrs(props => ({
345
345
  style: {
346
346
  background: background$2(props)
347
347
  },
348
- 'data-garden-id': COMPONENT_ID$i,
349
- 'data-garden-version': '9.0.0-next.11',
348
+ 'data-garden-id': COMPONENT_ID$h,
349
+ 'data-garden-version': '9.0.0-next.13',
350
350
  'data-test-id': 'preview-box'
351
351
  })).withConfig({
352
352
  displayName: "StyledPreview",
353
353
  componentId: "sc-1z5nh7-0"
354
- })(["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$i, props));
354
+ })(["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));
355
355
  StyledPreview.defaultProps = {
356
356
  theme: reactTheming.DEFAULT_THEME
357
357
  };
358
358
 
359
- const COMPONENT_ID$h = 'colorpickers.colorpicker_colorwell';
359
+ const COMPONENT_ID$g = 'colorpickers.colorpicker_colorwell';
360
360
  const background$1 = props => {
361
361
  const blackAlpha = polished.rgba(props.theme.palette.black, 0.9);
362
362
  const black = `linear-gradient(0deg, ${props.theme.palette.black}, ${blackAlpha} 1%, transparent 99%)`;
@@ -367,8 +367,8 @@ const background$1 = props => {
367
367
  return `${black}, ${white}, ${color}`;
368
368
  };
369
369
  const StyledColorWell = styled__default.default.div.attrs(props => ({
370
- 'data-garden-id': COMPONENT_ID$h,
371
- 'data-garden-version': '9.0.0-next.11',
370
+ 'data-garden-id': COMPONENT_ID$g,
371
+ 'data-garden-version': '9.0.0-next.13',
372
372
  'data-test-id': 'colorwell',
373
373
  style: {
374
374
  background: background$1(props)
@@ -376,12 +376,12 @@ const StyledColorWell = styled__default.default.div.attrs(props => ({
376
376
  })).withConfig({
377
377
  displayName: "StyledColorWell",
378
378
  componentId: "sc-1gg9z8m-0"
379
- })(["position:relative;margin-bottom:", "px;cursor:pointer;height:208px;overflow:hidden;", ";"], props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
379
+ })(["position:relative;margin-bottom:", "px;cursor:pointer;height:208px;overflow:hidden;", ";"], props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
380
380
  StyledColorWell.defaultProps = {
381
381
  theme: reactTheming.DEFAULT_THEME
382
382
  };
383
383
 
384
- const COMPONENT_ID$g = 'colorpickers.colorpicker_colorwell_thumb';
384
+ const COMPONENT_ID$f = 'colorpickers.colorpicker_colorwell_thumb';
385
385
  const sizeStyles$1 = theme => {
386
386
  const borderWidth = polished.stripUnit(theme.borderWidths.sm) * 2;
387
387
  const size = theme.space.base * 5;
@@ -395,8 +395,8 @@ const sizeStyles$1 = theme => {
395
395
  `;
396
396
  };
397
397
  const StyledColorWellThumb = styled__default.default.div.attrs(props => ({
398
- 'data-garden-id': COMPONENT_ID$g,
399
- 'data-garden-version': '9.0.0-next.11',
398
+ 'data-garden-id': COMPONENT_ID$f,
399
+ 'data-garden-version': '9.0.0-next.13',
400
400
  'data-test-id': 'colorwell-thumb',
401
401
  style: {
402
402
  top: `${props.top}%`,
@@ -405,74 +405,74 @@ const StyledColorWellThumb = styled__default.default.div.attrs(props => ({
405
405
  })).withConfig({
406
406
  displayName: "StyledColorWellThumb",
407
407
  componentId: "sc-1npyab0-0"
408
- })(["position:absolute;border:solid ", ";border-radius:50%;box-shadow:", ";", ";", ";"], props => props.theme.palette.white, props => props.theme.shadows.lg(`${props.theme.space.base}px`, `${props.theme.space.base * 2}px`, reactTheming.getColorV8('neutralHue', 800, props.theme, 0.24)), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
408
+ })(["position:absolute;border:solid ", ";border-radius:50%;box-shadow:", ";", ";", ";"], props => props.theme.palette.white, props => props.theme.shadows.lg(`${props.theme.space.base}px`, `${props.theme.space.base * 2}px`, reactTheming.getColorV8('neutralHue', 800, props.theme, 0.24)), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
409
409
  StyledColorWellThumb.defaultProps = {
410
410
  theme: reactTheming.DEFAULT_THEME
411
411
  };
412
412
 
413
- const COMPONENT_ID$f = 'colorpickers.colorpicker_slider_group';
413
+ const COMPONENT_ID$e = 'colorpickers.colorpicker_slider_group';
414
414
  const StyledSliderGroup = styled__default.default.div.attrs({
415
- 'data-garden-id': COMPONENT_ID$f,
416
- 'data-garden-version': '9.0.0-next.11'
415
+ 'data-garden-id': COMPONENT_ID$e,
416
+ 'data-garden-version': '9.0.0-next.13'
417
417
  }).withConfig({
418
418
  displayName: "StyledSliderGroup",
419
419
  componentId: "sc-tigkzg-0"
420
- })(["display:flex;justify-content:space-between;margin-bottom:", "px;", ";"], props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
420
+ })(["display:flex;justify-content:space-between;margin-bottom:", "px;", ";"], props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
421
421
  StyledSliderGroup.defaultProps = {
422
422
  theme: reactTheming.DEFAULT_THEME
423
423
  };
424
424
 
425
- const COMPONENT_ID$e = 'colorpickers.colorpicker_hex_field';
425
+ const COMPONENT_ID$d = 'colorpickers.colorpicker_hex_field';
426
426
  const StyledHexField = styled__default.default(reactForms.Field).attrs({
427
- 'data-garden-id': COMPONENT_ID$e,
428
- 'data-garden-version': '9.0.0-next.11',
427
+ 'data-garden-id': COMPONENT_ID$d,
428
+ 'data-garden-version': '9.0.0-next.13',
429
429
  spellcheck: false
430
430
  }).withConfig({
431
431
  displayName: "StyledHexField",
432
432
  componentId: "sc-ijq1c-0"
433
- })(["display:flex;flex-basis:0;flex-direction:column;flex-grow:1;width:auto;text-align:center;input{direction:ltr;}", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
433
+ })(["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));
434
434
  StyledHexField.defaultProps = {
435
435
  theme: reactTheming.DEFAULT_THEME
436
436
  };
437
437
 
438
- const COMPONENT_ID$d = 'colorpickers.colorpicker_label';
438
+ const COMPONENT_ID$c = 'colorpickers.colorpicker_label';
439
439
  const StyledLabel = styled__default.default(reactForms.Label).attrs({
440
- 'data-garden-id': COMPONENT_ID$d,
441
- 'data-garden-version': '9.0.0-next.11'
440
+ 'data-garden-id': COMPONENT_ID$c,
441
+ 'data-garden-version': '9.0.0-next.13'
442
442
  }).withConfig({
443
443
  displayName: "StyledLabel",
444
444
  componentId: "sc-1vxt3m9-0"
445
- })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
445
+ })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
446
446
  StyledLabel.defaultProps = {
447
447
  theme: reactTheming.DEFAULT_THEME
448
448
  };
449
449
 
450
- const COMPONENT_ID$c = 'colorpickers.colorpicker_input';
450
+ const COMPONENT_ID$b = 'colorpickers.colorpicker_input';
451
451
  const StyledInput = styled__default.default(reactForms.Input).attrs({
452
- 'data-garden-id': COMPONENT_ID$c,
453
- 'data-garden-version': '9.0.0-next.11',
452
+ 'data-garden-id': COMPONENT_ID$b,
453
+ 'data-garden-version': '9.0.0-next.13',
454
454
  focusInset: false
455
455
  }).withConfig({
456
456
  displayName: "StyledInput",
457
457
  componentId: "sc-1uzlutt-0"
458
- })(["text-align:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
458
+ })(["text-align:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
459
459
  StyledInput.defaultProps = {
460
460
  theme: reactTheming.DEFAULT_THEME
461
461
  };
462
462
 
463
- const COMPONENT_ID$b = 'colorpickers.colorpicker_input_group';
463
+ const COMPONENT_ID$a = 'colorpickers.colorpicker_input_group';
464
464
  const StyledInputGroup = styled__default.default.div.attrs({
465
- 'data-garden-id': COMPONENT_ID$b,
466
- 'data-garden-version': '9.0.0-next.11'
465
+ 'data-garden-id': COMPONENT_ID$a,
466
+ 'data-garden-version': '9.0.0-next.13'
467
467
  }).withConfig({
468
468
  displayName: "StyledInputGroup",
469
469
  componentId: "sc-1m9g2wg-0"
470
- })(["display:flex;justify-content:space-between;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
470
+ })(["display:flex;justify-content:space-between;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
471
471
  StyledInputGroup.defaultProps = {
472
472
  theme: reactTheming.DEFAULT_THEME
473
473
  };
474
474
 
475
- const COMPONENT_ID$a = 'colorpickers.colorpicker_rgb_field';
475
+ const COMPONENT_ID$9 = 'colorpickers.colorpicker_rgb_field';
476
476
  const sizeStyles = theme => {
477
477
  const margin = `${theme.space.base * 1.5}px`;
478
478
  const width = `${theme.space.base * 12.75}px`;
@@ -483,37 +483,35 @@ const sizeStyles = theme => {
483
483
  `;
484
484
  };
485
485
  const StyledRGBAField = styled__default.default(reactForms.Field).attrs({
486
- 'data-garden-id': COMPONENT_ID$a,
487
- 'data-garden-version': '9.0.0-next.11'
486
+ 'data-garden-id': COMPONENT_ID$9,
487
+ 'data-garden-version': '9.0.0-next.13'
488
488
  }).withConfig({
489
489
  displayName: "StyledRGBAField",
490
490
  componentId: "sc-13266k8-0"
491
- })(["display:flex;flex-direction:column;text-align:center;", ";", ";"], props => sizeStyles(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
491
+ })(["display:flex;flex-direction:column;text-align:center;", ";", ";"], props => sizeStyles(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
492
492
  StyledRGBAField.defaultProps = {
493
493
  theme: reactTheming.DEFAULT_THEME
494
494
  };
495
495
 
496
- const COMPONENT_ID$9 = 'colorpickers.colorpicker_sliders';
496
+ const COMPONENT_ID$8 = 'colorpickers.colorpicker_sliders';
497
497
  const StyledSliders = styled__default.default.div.attrs({
498
- 'data-garden-id': COMPONENT_ID$9,
499
- 'data-garden-version': '9.0.0-next.11'
498
+ 'data-garden-id': COMPONENT_ID$8,
499
+ 'data-garden-version': '9.0.0-next.13'
500
500
  }).withConfig({
501
501
  displayName: "StyledSliders",
502
502
  componentId: "sc-1lgr50m-0"
503
- })(["position:relative;margin-", ":", "px;width:100%;& > *{position:absolute;width:100%;height:", "px;}& > :first-child{top:-", "px;}& > :last-child{bottom:-", "px;}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, props => getTrackMargin(props) * 2 + getTrackHeight(props), getTrackMargin, getTrackMargin, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
503
+ })(["position:relative;margin-", ":", "px;width:100%;& > *{position:absolute;width:100%;height:", "px;}& > :first-child{top:-", "px;}& > :last-child{bottom:-", "px;}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, props => getTrackMargin(props) * 2 + getTrackHeight(props), getTrackMargin, getTrackMargin, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
504
504
  StyledSliders.defaultProps = {
505
505
  theme: reactTheming.DEFAULT_THEME
506
506
  };
507
507
 
508
- const COMPONENT_ID$8 = 'colorpickers.colordialog_button';
509
508
  const StyledButton = styled__default.default(reactButtons.Button).attrs({
510
509
  isNeutral: true,
511
- 'data-garden-id': COMPONENT_ID$8,
512
- 'data-garden-version': '9.0.0-next.11'
510
+ 'data-garden-version': '9.0.0-next.13'
513
511
  }).withConfig({
514
512
  displayName: "StyledButton",
515
513
  componentId: "sc-1dlijfv-0"
516
- })(["padding:0;width:", "px;max-width:", "px;&:last-of-type:not(:first-child){border-top-", "-radius:", " !important;border-bottom-", "-radius:", " !important;}", ";"], props => props.theme.space.base * 17, props => props.theme.space.base * 17, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
514
+ })(["padding:0;width:", "px;max-width:", "px;&:last-of-type:not(:first-child){border-top-", "-radius:", " !important;border-bottom-", "-radius:", " !important;}"], props => props.theme.space.base * 17, props => props.theme.space.base * 17, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md, props => props.theme.rtl ? 'left' : 'right', props => props.theme.borderRadii.md);
517
515
  StyledButton.defaultProps = {
518
516
  theme: reactTheming.DEFAULT_THEME
519
517
  };
@@ -548,7 +546,7 @@ const StyledButtonPreview = styled__default.default.span.attrs(props => ({
548
546
  })
549
547
  },
550
548
  'data-garden-id': COMPONENT_ID$7,
551
- 'data-garden-version': '9.0.0-next.11',
549
+ 'data-garden-version': '9.0.0-next.13',
552
550
  'data-test-id': 'dialog-preview'
553
551
  })).withConfig({
554
552
  displayName: "StyledButtonPreview",
@@ -561,7 +559,7 @@ StyledButtonPreview.defaultProps = {
561
559
  const COMPONENT_ID$6 = 'colorpickers.colordialog_tooltipmodal';
562
560
  const StyledTooltipModal = styled__default.default(reactModals.TooltipModal).attrs({
563
561
  'data-garden-id': COMPONENT_ID$6,
564
- 'data-garden-version': '9.0.0-next.11'
562
+ 'data-garden-version': '9.0.0-next.13'
565
563
  }).withConfig({
566
564
  displayName: "StyledTooltipModal",
567
565
  componentId: "sc-gykkrw-0"
@@ -573,7 +571,7 @@ StyledTooltipModal.defaultProps = {
573
571
  const COMPONENT_ID$5 = 'colorpickers.colordialog_tooltipmodal_body';
574
572
  const StyledTooltipBody = styled__default.default(reactModals.TooltipModal.Body).attrs({
575
573
  'data-garden-id': COMPONENT_ID$5,
576
- 'data-garden-version': '9.0.0-next.11'
574
+ 'data-garden-version': '9.0.0-next.13'
577
575
  }).withConfig({
578
576
  displayName: "StyledTooltipBody",
579
577
  componentId: "sc-1ueddpo-0"
@@ -585,7 +583,7 @@ StyledTooltipBody.defaultProps = {
585
583
  const COMPONENT_ID$4 = 'colorpickers.color_swatch';
586
584
  const StyledColorSwatch = styled__default.default.table.attrs({
587
585
  'data-garden-id': COMPONENT_ID$4,
588
- 'data-garden-version': '9.0.0-next.11'
586
+ 'data-garden-version': '9.0.0-next.13'
589
587
  }).withConfig({
590
588
  displayName: "StyledColorSwatch",
591
589
  componentId: "sc-ajx440-0"
@@ -597,7 +595,7 @@ StyledColorSwatch.defaultProps = {
597
595
  const COMPONENT_ID$3 = 'colorpickers.color_swatch_input';
598
596
  const StyledColorSwatchInput = styled__default.default.input.attrs({
599
597
  'data-garden-id': COMPONENT_ID$3,
600
- 'data-garden-version': '9.0.0-next.11'
598
+ 'data-garden-version': '9.0.0-next.13'
601
599
  }).withConfig({
602
600
  displayName: "StyledColorSwatchInput",
603
601
  componentId: "sc-em45h0-0"
@@ -622,7 +620,7 @@ const colorStyles = props => {
622
620
  const StyledColorSwatchLabel = styled__default.default(StyledButtonPreview).attrs({
623
621
  as: 'label',
624
622
  'data-garden-id': COMPONENT_ID$2,
625
- 'data-garden-version': '9.0.0-next.11'
623
+ 'data-garden-version': '9.0.0-next.13'
626
624
  }).withConfig({
627
625
  displayName: "StyledColorSwatchLabel",
628
626
  componentId: "sc-1aghocg-0"
@@ -635,7 +633,7 @@ StyledColorSwatchLabel.defaultProps = {
635
633
  };
636
634
 
637
635
  var _path$1;
638
- 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); }
636
+ function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
639
637
  var SvgCheckSmFill = function SvgCheckSmFill(props) {
640
638
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
641
639
  xmlns: "http://www.w3.org/2000/svg",
@@ -657,7 +655,7 @@ var SvgCheckSmFill = function SvgCheckSmFill(props) {
657
655
  const COMPONENT_ID$1 = 'colorpickers.colorswatch_check';
658
656
  const StyledIcon = styled__default.default(SvgCheckSmFill).attrs({
659
657
  'data-garden-id': COMPONENT_ID$1,
660
- 'data-garden-version': '9.0.0-next.11'
658
+ 'data-garden-version': '9.0.0-next.13'
661
659
  }).withConfig({
662
660
  displayName: "StyledIcon",
663
661
  componentId: "sc-8oigif-0"
@@ -669,7 +667,7 @@ StyledIcon.defaultProps = {
669
667
  const COMPONENT_ID = 'colorpickers.swatch_cell';
670
668
  const StyledCell = styled__default.default.td.attrs({
671
669
  'data-garden-id': COMPONENT_ID,
672
- 'data-garden-version': '9.0.0-next.11'
670
+ 'data-garden-version': '9.0.0-next.13'
673
671
  }).withConfig({
674
672
  displayName: "StyledCell",
675
673
  componentId: "sc-qr3oit-0"
@@ -1224,7 +1222,7 @@ ColorPicker.propTypes = {
1224
1222
  };
1225
1223
 
1226
1224
  var _path;
1227
- 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); }
1225
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
1228
1226
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
1229
1227
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
1230
1228
  xmlns: "http://www.w3.org/2000/svg",
@@ -10,6 +10,5 @@
10
10
  */
11
11
  export declare const StyledButton: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object & {
12
12
  isNeutral: boolean;
13
- 'data-garden-id': string;
14
13
  'data-garden-version': string;
15
14
  }, string | number | symbol>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-colorpickers",
3
- "version": "9.0.0-next.11",
3
+ "version": "9.0.0-next.13",
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,13 +23,13 @@
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-grid": "^3.0.0",
25
25
  "@zendeskgarden/container-utilities": "^2.0.0",
26
- "@zendeskgarden/react-buttons": "^9.0.0-next.11",
27
- "@zendeskgarden/react-forms": "^9.0.0-next.11",
28
- "@zendeskgarden/react-modals": "^9.0.0-next.11",
29
- "@zendeskgarden/react-tooltips": "^9.0.0-next.11",
26
+ "@zendeskgarden/react-buttons": "^9.0.0-next.13",
27
+ "@zendeskgarden/react-forms": "^9.0.0-next.13",
28
+ "@zendeskgarden/react-modals": "^9.0.0-next.13",
29
+ "@zendeskgarden/react-tooltips": "^9.0.0-next.13",
30
30
  "lodash.isequal": "^4.5.0",
31
31
  "lodash.throttle": "^4.1.1",
32
- "polished": "^4.0.0",
32
+ "polished": "^4.3.1",
33
33
  "prop-types": "^15.7.2",
34
34
  "react-merge-refs": "^2.0.0"
35
35
  },
@@ -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.0.0-next.11",
46
- "@zendeskgarden/svg-icons": "7.0.0"
45
+ "@zendeskgarden/react-theming": "^9.0.0-next.13",
46
+ "@zendeskgarden/svg-icons": "7.1.1"
47
47
  },
48
48
  "keywords": [
49
49
  "colorpicker",
@@ -55,6 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "zendeskgarden:src": "src/index.ts",
59
- "gitHead": "0de1cc664807bd993ccd3beeb78e8fd1f3828320"
58
+ "zendeskgarden:src": "src/index.ts"
60
59
  }
package/LICENSE.md DELETED
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS