@zendeskgarden/react-modals 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/16/alert-error-stroke.svg.js +1 -1
  2. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +1 -1
  3. package/dist/esm/styled/StyledBackdrop.js +18 -3
  4. package/dist/esm/styled/StyledBody.js +11 -3
  5. package/dist/esm/styled/StyledClose.js +6 -15
  6. package/dist/esm/styled/StyledDrawer.js +1 -1
  7. package/dist/esm/styled/StyledDrawerBody.js +1 -1
  8. package/dist/esm/styled/StyledDrawerClose.js +1 -1
  9. package/dist/esm/styled/StyledDrawerFooter.js +1 -1
  10. package/dist/esm/styled/StyledDrawerFooterItem.js +1 -1
  11. package/dist/esm/styled/StyledDrawerHeader.js +1 -1
  12. package/dist/esm/styled/StyledFooter.js +1 -1
  13. package/dist/esm/styled/StyledFooterItem.js +1 -1
  14. package/dist/esm/styled/StyledHeader.js +19 -4
  15. package/dist/esm/styled/StyledModal.js +29 -14
  16. package/dist/esm/styled/StyledTooltipModal.js +1 -1
  17. package/dist/esm/styled/StyledTooltipModalBackdrop.js +1 -1
  18. package/dist/esm/styled/StyledTooltipModalBody.js +1 -1
  19. package/dist/esm/styled/StyledTooltipModalClose.js +1 -1
  20. package/dist/esm/styled/StyledTooltipModalFooter.js +1 -1
  21. package/dist/esm/styled/StyledTooltipModalFooterItem.js +1 -1
  22. package/dist/esm/styled/StyledTooltipModalTitle.js +1 -1
  23. package/dist/index.cjs.js +93 -49
  24. package/dist/typings/styled/StyledClose.d.ts +2 -5
  25. package/dist/typings/styled/StyledDrawerClose.d.ts +2 -1
  26. package/dist/typings/styled/StyledHeader.d.ts +2 -1
  27. package/dist/typings/styled/StyledTooltipModalClose.d.ts +2 -1
  28. package/package.json +6 -6
  29. package/LICENSE.md +0 -176
@@ -7,7 +7,7 @@
7
7
  import * as React from 'react';
8
8
 
9
9
  var _g, _circle;
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 SvgAlertErrorStroke = function SvgAlertErrorStroke(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 SvgXStroke = function SvgXStroke(props) {
12
12
  return /*#__PURE__*/React.createElement("svg", _extends({
13
13
  xmlns: "http://www.w3.org/2000/svg",
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import PropTypes from 'prop-types';
8
8
  import styled, { keyframes, css } from 'styled-components';
9
- import { getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'modals.backdrop';
12
12
  const animationName = keyframes(["0%{opacity:0;}100%{opacity:1;}"]);
@@ -18,11 +18,26 @@ const animationStyles = props => {
18
18
  };
19
19
  const StyledBackdrop = styled.div.attrs({
20
20
  'data-garden-id': COMPONENT_ID,
21
- 'data-garden-version': '9.0.0-next.11'
21
+ 'data-garden-version': '9.0.0-next.13'
22
22
  }).withConfig({
23
23
  displayName: "StyledBackdrop",
24
24
  componentId: "sc-mzdjpo-0"
25
- })(["display:flex;position:fixed;inset:0;align-items:", ";justify-content:", ";z-index:400;background-color:", ";overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";", ";", ";"], props => props.isCentered && 'center', props => props.isCentered && 'center', props => getColorV8('neutralHue', 800, props.theme, 0.85), props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
25
+ })(["display:flex;position:fixed;inset:0;align-items:", ";justify-content:", ";z-index:400;background-color:", ";overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";", ";", ";"], props => props.isCentered && 'center', props => props.isCentered && 'center', _ref => {
26
+ let {
27
+ theme
28
+ } = _ref;
29
+ return getColor({
30
+ theme,
31
+ hue: 'neutralHue',
32
+ transparency: theme.opacity[1000],
33
+ light: {
34
+ shade: 900
35
+ },
36
+ dark: {
37
+ shade: 1200
38
+ }
39
+ });
40
+ }, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
26
41
  StyledBackdrop.defaultProps = {
27
42
  theme: DEFAULT_THEME
28
43
  };
@@ -5,16 +5,24 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { getLineHeight, getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { getLineHeight, getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'modals.body';
11
11
  const StyledBody = 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: "StyledBody",
16
16
  componentId: "sc-14rzecg-0"
17
- })(["display:block;margin:0;padding:", ";height:100%;overflow:auto;line-height:", ";color:", ";font-size:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["display:block;margin:0;padding:", ";height:100%;overflow:auto;line-height:", ";color:", ";font-size:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), _ref => {
18
+ let {
19
+ theme
20
+ } = _ref;
21
+ return getColor({
22
+ theme,
23
+ variable: 'foreground.default'
24
+ });
25
+ }, props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID, props));
18
26
  StyledBody.defaultProps = {
19
27
  theme: DEFAULT_THEME
20
28
  };
@@ -4,32 +4,23 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import styled, { css } from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, focusStyles } from '@zendeskgarden/react-theming';
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { IconButton } from '@zendeskgarden/react-buttons';
9
10
 
10
11
  const COMPONENT_ID = 'modals.close';
11
- const colorStyles = props => {
12
- const backgroundColor = 'primaryHue';
13
- const foregroundColor = 'neutralHue';
14
- return css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], getColorV8(foregroundColor, 600, props.theme), getColorV8(backgroundColor, 600, props.theme, 0.08), getColorV8(foregroundColor, 700, props.theme), focusStyles({
15
- theme: props.theme,
16
- color: {
17
- hue: backgroundColor
18
- }
19
- }), getColorV8(backgroundColor, 600, props.theme, 0.2), getColorV8(foregroundColor, 800, props.theme));
20
- };
21
12
  const BASE_MULTIPLIERS = {
22
13
  top: 2.5,
23
14
  side: 6.5,
24
15
  size: 10
25
16
  };
26
- const StyledClose = styled.button.attrs({
17
+ const StyledClose = styled(IconButton).attrs({
27
18
  'data-garden-id': COMPONENT_ID,
28
- 'data-garden-version': '9.0.0-next.11'
19
+ 'data-garden-version': '9.0.0-next.13'
29
20
  }).withConfig({
30
21
  displayName: "StyledClose",
31
22
  componentId: "sc-iseudj-0"
32
- })(["display:block;position:absolute;top:", "px;", ":", ";transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;background-color:transparent;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}", " & > svg{vertical-align:middle;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => props.theme.space.base * BASE_MULTIPLIERS.size, props => colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
23
+ })(["position:absolute;top:", "px;", ":", ";", ";"], props => props.theme.space.base * BASE_MULTIPLIERS.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, props => retrieveComponentStyles(COMPONENT_ID, props));
33
24
  StyledClose.defaultProps = {
34
25
  theme: DEFAULT_THEME
35
26
  };
@@ -24,7 +24,7 @@ const boxShadow = props => {
24
24
  };
25
25
  const StyledDrawer = styled.div.attrs({
26
26
  'data-garden-id': COMPONENT_ID,
27
- 'data-garden-version': '9.0.0-next.11'
27
+ 'data-garden-version': '9.0.0-next.13'
28
28
  }).withConfig({
29
29
  displayName: "StyledDrawer",
30
30
  componentId: "sc-zp66t3-0"
@@ -11,7 +11,7 @@ import { StyledBody } from './StyledBody.js';
11
11
  const COMPONENT_ID = 'modals.drawer_modal.body';
12
12
  const StyledDrawerBody = styled(StyledBody).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: "StyledDrawerBody",
17
17
  componentId: "sc-13qufyn-0"
@@ -16,7 +16,7 @@ const BASE_MULTIPLIERS = {
16
16
  };
17
17
  const StyledDrawerClose = styled(StyledClose).attrs({
18
18
  'data-garden-id': COMPONENT_ID,
19
- 'data-garden-version': '9.0.0-next.11'
19
+ 'data-garden-version': '9.0.0-next.13'
20
20
  }).withConfig({
21
21
  displayName: "StyledDrawerClose",
22
22
  componentId: "sc-1a0xt3x-0"
@@ -10,7 +10,7 @@ import { getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgard
10
10
  const COMPONENT_ID = 'modals.drawer_modal.footer';
11
11
  const StyledDrawerFooter = 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: "StyledDrawerFooter",
16
16
  componentId: "sc-kc7e6p-0"
@@ -11,7 +11,7 @@ import { StyledFooterItem } from './StyledFooterItem.js';
11
11
  const COMPONENT_ID = 'modals.drawer_modal.footer_item';
12
12
  const StyledDrawerFooterItem = styled(StyledFooterItem).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: "StyledDrawerFooterItem",
17
17
  componentId: "sc-m2yul4-0"
@@ -12,7 +12,7 @@ import { BASE_MULTIPLIERS } from './StyledDrawerClose.js';
12
12
  const COMPONENT_ID = 'modals.drawer_modal.header';
13
13
  const StyledDrawerHeader = styled(StyledHeader).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: "StyledDrawerHeader",
18
18
  componentId: "sc-y4mgkj-0"
@@ -10,7 +10,7 @@ import { getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgard
10
10
  const COMPONENT_ID = 'modals.footer';
11
11
  const StyledFooter = 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: "StyledFooter",
16
16
  componentId: "sc-d8pfdu-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
10
10
  const COMPONENT_ID = 'modals.footer_item';
11
11
  const StyledFooterItem = styled.span.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: "StyledFooterItem",
16
16
  componentId: "sc-1mb76hl-0"
@@ -4,18 +4,33 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import styled from 'styled-components';
8
- import { getColorV8, getLineHeight, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
7
+ import styled, { css } from 'styled-components';
8
+ import { getLineHeight, retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
9
9
  import { BASE_MULTIPLIERS } from './StyledClose.js';
10
10
 
11
11
  const COMPONENT_ID = 'modals.header';
12
+ const colorStyles = _ref => {
13
+ let {
14
+ isDanger,
15
+ theme
16
+ } = _ref;
17
+ const bottomBorderColor = getColor({
18
+ theme,
19
+ variable: 'border.subtle'
20
+ });
21
+ const color = getColor({
22
+ theme,
23
+ variable: isDanger ? 'foreground.danger' : 'foreground.default'
24
+ });
25
+ return css(["border-bottom-color:", ";color:", ";"], bottomBorderColor, color);
26
+ };
12
27
  const StyledHeader = styled.div.attrs({
13
28
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.11'
29
+ 'data-garden-version': '9.0.0-next.13'
15
30
  }).withConfig({
16
31
  displayName: "StyledHeader",
17
32
  componentId: "sc-1787r9v-0"
18
- })(["display:block;position:", ";margin:0;border-bottom:", " ", ";padding:", ";", " line-height:", ";color:", ";font-size:", ";font-weight:", ";", ";"], props => props.isDanger && 'relative', props => props.theme.borders.sm, getColorV8('neutralHue', 200), props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.isDanger ? getColorV8('dangerHue', 600, props.theme) : getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID, props));
33
+ })(["display:block;position:", ";margin:0;border-bottom:", ";padding:", ";", " line-height:", ";font-size:", ";font-weight:", ";", ";", ";"], props => props.isDanger && 'relative', props => props.theme.borders.sm, props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
19
34
  StyledHeader.defaultProps = {
20
35
  theme: DEFAULT_THEME
21
36
  };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import PropTypes from 'prop-types';
8
8
  import styled, { keyframes, css } from 'styled-components';
9
- import { getColorV8, retrieveComponentStyles, DEFAULT_THEME, mediaQuery } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor, mediaQuery } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'modals.modal';
12
12
  const animationName = keyframes(["0%{transform:scale(0);opacity:0;}50%{transform:scale(1.05);}100%{opacity:1;}"]);
@@ -16,29 +16,44 @@ const animationStyles = props => {
16
16
  }
17
17
  return '';
18
18
  };
19
- const boxShadow = props => {
20
- const {
19
+ const colorStyles = _ref => {
20
+ let {
21
21
  theme
22
- } = props;
23
- const {
24
- space,
25
- shadows
26
- } = theme;
27
- const offsetY = `${space.base * 5}px`;
28
- const blurRadius = `${space.base * 7}px`;
29
- const color = getColorV8('neutralHue', 800, theme, 0.35);
30
- return shadows.lg(offsetY, blurRadius, color);
22
+ } = _ref;
23
+ const offsetY = `${theme.space.base * (theme.colors.base === 'dark' ? 4 : 5)}px`;
24
+ const blurRadius = `${theme.space.base * (theme.colors.base === 'dark' ? 6 : 7)}px`;
25
+ const shadowColor = getColor({
26
+ theme,
27
+ hue: 'neutralHue',
28
+ shade: 1200,
29
+ light: {
30
+ transparency: theme.opacity[200]
31
+ },
32
+ dark: {
33
+ transparency: theme.opacity[1000]
34
+ }
35
+ });
36
+ const shadow = theme.shadows.lg(offsetY, blurRadius, shadowColor);
37
+ const borderColor = getColor({
38
+ theme,
39
+ variable: 'border.default'
40
+ });
41
+ const backgroundColor = getColor({
42
+ theme,
43
+ variable: 'background.raised'
44
+ });
45
+ return css(["border-color:", ";box-shadow:", ";background-color:", ";"], borderColor, shadow, backgroundColor);
31
46
  };
32
47
  const sizeStyles = props => {
33
48
  return css(["", "{width:", ";}"], mediaQuery('up', props.isLarge ? 'md' : 'sm', props.theme), props.isLarge ? props.theme.breakpoints.md : props.theme.breakpoints.sm);
34
49
  };
35
50
  const StyledModal = styled.div.attrs({
36
51
  'data-garden-id': COMPONENT_ID,
37
- 'data-garden-version': '9.0.0-next.11'
52
+ 'data-garden-version': '9.0.0-next.13'
38
53
  }).withConfig({
39
54
  displayName: "StyledModal",
40
55
  componentId: "sc-1pe1axu-0"
41
- })(["display:flex;position:fixed;flex-direction:column;animation-delay:0.01s;margin:", ";border-radius:", ";box-shadow:", ";background-color:", ";min-height:60px;max-height:calc(100vh - ", "px);overflow:auto;direction:", ";", ";", ";&:focus{outline:none;}@media (max-height:399px){top:", "px;bottom:auto;margin-bottom:", "px;max-height:none;}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){right:", ";bottom:", ";transform:", ";}", ";"], props => props.isCentered ? '0' : `${props.theme.space.base * 12}px`, props => props.theme.borderRadii.md, boxShadow, props => getColorV8('background', 600 , props.theme), props => props.theme.space.base * 24, props => props.theme.rtl && 'rtl', animationStyles, sizeStyles, props => props.theme.space.base * 6, props => props.theme.space.base * 6, props => props.isCentered && '50%', props => props.isCentered && '50%', props => props.isCentered && 'translate(50%, 50%)', props => retrieveComponentStyles(COMPONENT_ID, props));
56
+ })(["display:flex;position:fixed;flex-direction:column;animation-delay:0.01s;margin:", ";border:", ";border-radius:", ";min-height:60px;max-height:calc(100vh - ", "px);overflow:auto;direction:", ";", ";", ";", ";&:focus{outline:none;}@media (max-height:399px){top:", "px;bottom:auto;margin-bottom:", "px;max-height:none;}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){right:", ";bottom:", ";transform:", ";}", ";"], props => props.isCentered ? '0' : `${props.theme.space.base * 12}px`, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => props.theme.space.base * 24, props => props.theme.rtl && 'rtl', animationStyles, sizeStyles, colorStyles, props => props.theme.space.base * 6, props => props.theme.space.base * 6, props => props.isCentered && '50%', props => props.isCentered && '50%', props => props.isCentered && 'translate(50%, 50%)', props => retrieveComponentStyles(COMPONENT_ID, props));
42
57
  StyledModal.propTypes = {
43
58
  isLarge: PropTypes.bool,
44
59
  isAnimated: PropTypes.bool
@@ -10,7 +10,7 @@ import { arrowStyles, getArrowPosition, retrieveComponentStyles, DEFAULT_THEME }
10
10
  const COMPONENT_ID = 'modals.tooltip_modal';
11
11
  const StyledTooltipModal = styled.div.attrs(props => ({
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
  className: props.isAnimated && 'is-animated'
15
15
  })).withConfig({
16
16
  displayName: "StyledTooltipModal",
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
10
10
  const COMPONENT_ID = 'modals.tooltip_modal.backdrop';
11
11
  const StyledTooltipModalBackdrop = 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: "StyledTooltipModalBackdrop",
16
16
  componentId: "sc-1yaomgq-0"
@@ -10,7 +10,7 @@ import { getLineHeight, getColorV8, retrieveComponentStyles, DEFAULT_THEME } fro
10
10
  const COMPONENT_ID = 'modals.tooltip_modal.body';
11
11
  const StyledTooltipModalBody = 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: "StyledTooltipModalBody",
16
16
  componentId: "sc-195dkzj-0"
@@ -11,7 +11,7 @@ import { StyledClose } from './StyledClose.js';
11
11
  const COMPONENT_ID = 'modals.tooltip_modal.close';
12
12
  const StyledTooltipModalClose = styled(StyledClose).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: "StyledTooltipModalClose",
17
17
  componentId: "sc-1h2ke3q-0"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
10
10
  const COMPONENT_ID = 'modals.tooltip_modal.footer';
11
11
  const StyledTooltipModalFooter = 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: "StyledTooltipModalFooter",
16
16
  componentId: "sc-fm36a9-0"
@@ -11,7 +11,7 @@ import { StyledFooterItem } from './StyledFooterItem.js';
11
11
  const COMPONENT_ID = 'modals.tooltip_modal.footer_item';
12
12
  const StyledTooltipModalFooterItem = styled(StyledFooterItem).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: "StyledTooltipModalFooterItem",
17
17
  componentId: "sc-1nahj6p-0"
@@ -16,7 +16,7 @@ const sizeStyles = props => `
16
16
  `;
17
17
  const StyledTooltipModalTitle = styled.div.attrs({
18
18
  'data-garden-id': COMPONENT_ID,
19
- 'data-garden-version': '9.0.0-next.11'
19
+ 'data-garden-version': '9.0.0-next.13'
20
20
  }).withConfig({
21
21
  displayName: "StyledTooltipModalTitle",
22
22
  componentId: "sc-11xjgjs-0"
package/dist/index.cjs.js CHANGED
@@ -18,6 +18,7 @@ var ownerDocument = require('dom-helpers/ownerDocument');
18
18
  var ownerWindow = require('dom-helpers/ownerWindow');
19
19
  var css = require('dom-helpers/css');
20
20
  var getScrollbarSize = require('dom-helpers/scrollbarSize');
21
+ var reactButtons = require('@zendeskgarden/react-buttons');
21
22
  var reactTransitionGroup = require('react-transition-group');
22
23
  var reactDom = require('@floating-ui/react-dom');
23
24
  var activeElement = require('dom-helpers/activeElement');
@@ -63,11 +64,26 @@ const animationStyles$1 = props => {
63
64
  };
64
65
  const StyledBackdrop = styled__default.default.div.attrs({
65
66
  'data-garden-id': COMPONENT_ID$j,
66
- 'data-garden-version': '9.0.0-next.11'
67
+ 'data-garden-version': '9.0.0-next.13'
67
68
  }).withConfig({
68
69
  displayName: "StyledBackdrop",
69
70
  componentId: "sc-mzdjpo-0"
70
- })(["display:flex;position:fixed;inset:0;align-items:", ";justify-content:", ";z-index:400;background-color:", ";overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";", ";", ";"], props => props.isCentered && 'center', props => props.isCentered && 'center', props => reactTheming.getColorV8('neutralHue', 800, props.theme, 0.85), props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
71
+ })(["display:flex;position:fixed;inset:0;align-items:", ";justify-content:", ";z-index:400;background-color:", ";overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";", ";", ";"], props => props.isCentered && 'center', props => props.isCentered && 'center', _ref => {
72
+ let {
73
+ theme
74
+ } = _ref;
75
+ return reactTheming.getColor({
76
+ theme,
77
+ hue: 'neutralHue',
78
+ transparency: theme.opacity[1000],
79
+ light: {
80
+ shade: 900
81
+ },
82
+ dark: {
83
+ shade: 1200
84
+ }
85
+ });
86
+ }, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
71
87
  StyledBackdrop.defaultProps = {
72
88
  theme: reactTheming.DEFAULT_THEME
73
89
  };
@@ -79,38 +95,36 @@ StyledBackdrop.propTypes = {
79
95
  const COMPONENT_ID$i = 'modals.body';
80
96
  const StyledBody = styled__default.default.div.attrs({
81
97
  'data-garden-id': COMPONENT_ID$i,
82
- 'data-garden-version': '9.0.0-next.11'
98
+ 'data-garden-version': '9.0.0-next.13'
83
99
  }).withConfig({
84
100
  displayName: "StyledBody",
85
101
  componentId: "sc-14rzecg-0"
86
- })(["display:block;margin:0;padding:", ";height:100%;overflow:auto;line-height:", ";color:", ";font-size:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
102
+ })(["display:block;margin:0;padding:", ";height:100%;overflow:auto;line-height:", ";color:", ";font-size:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), _ref => {
103
+ let {
104
+ theme
105
+ } = _ref;
106
+ return reactTheming.getColor({
107
+ theme,
108
+ variable: 'foreground.default'
109
+ });
110
+ }, props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
87
111
  StyledBody.defaultProps = {
88
112
  theme: reactTheming.DEFAULT_THEME
89
113
  };
90
114
 
91
115
  const COMPONENT_ID$h = 'modals.close';
92
- const colorStyles = props => {
93
- const backgroundColor = 'primaryHue';
94
- const foregroundColor = 'neutralHue';
95
- return styled.css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], reactTheming.getColorV8(foregroundColor, 600, props.theme), reactTheming.getColorV8(backgroundColor, 600, props.theme, 0.08), reactTheming.getColorV8(foregroundColor, 700, props.theme), reactTheming.focusStyles({
96
- theme: props.theme,
97
- color: {
98
- hue: backgroundColor
99
- }
100
- }), reactTheming.getColorV8(backgroundColor, 600, props.theme, 0.2), reactTheming.getColorV8(foregroundColor, 800, props.theme));
101
- };
102
116
  const BASE_MULTIPLIERS$1 = {
103
117
  top: 2.5,
104
118
  side: 6.5,
105
119
  size: 10
106
120
  };
107
- const StyledClose = styled__default.default.button.attrs({
121
+ const StyledClose = styled__default.default(reactButtons.IconButton).attrs({
108
122
  'data-garden-id': COMPONENT_ID$h,
109
- 'data-garden-version': '9.0.0-next.11'
123
+ 'data-garden-version': '9.0.0-next.13'
110
124
  }).withConfig({
111
125
  displayName: "StyledClose",
112
126
  componentId: "sc-iseudj-0"
113
- })(["display:block;position:absolute;top:", "px;", ":", ";transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;border:none;border-radius:50%;background-color:transparent;cursor:pointer;padding:0;width:", "px;height:", "px;overflow:hidden;text-decoration:none;font-size:0;user-select:none;&::-moz-focus-inner{border:0;}", " & > svg{vertical-align:middle;}", ";"], props => props.theme.space.base * BASE_MULTIPLIERS$1.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS$1.side}px`, props => props.theme.space.base * BASE_MULTIPLIERS$1.size, props => props.theme.space.base * BASE_MULTIPLIERS$1.size, props => colorStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
127
+ })(["position:absolute;top:", "px;", ":", ";", ";"], props => props.theme.space.base * BASE_MULTIPLIERS$1.top, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS$1.side}px`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
114
128
  StyledClose.defaultProps = {
115
129
  theme: reactTheming.DEFAULT_THEME
116
130
  };
@@ -118,7 +132,7 @@ StyledClose.defaultProps = {
118
132
  const COMPONENT_ID$g = 'modals.footer';
119
133
  const StyledFooter = styled__default.default.div.attrs({
120
134
  'data-garden-id': COMPONENT_ID$g,
121
- 'data-garden-version': '9.0.0-next.11'
135
+ 'data-garden-version': '9.0.0-next.13'
122
136
  }).withConfig({
123
137
  displayName: "StyledFooter",
124
138
  componentId: "sc-d8pfdu-0"
@@ -130,7 +144,7 @@ StyledFooter.defaultProps = {
130
144
  const COMPONENT_ID$f = 'modals.footer_item';
131
145
  const StyledFooterItem = styled__default.default.span.attrs({
132
146
  'data-garden-id': COMPONENT_ID$f,
133
- 'data-garden-version': '9.0.0-next.11'
147
+ 'data-garden-version': '9.0.0-next.13'
134
148
  }).withConfig({
135
149
  displayName: "StyledFooterItem",
136
150
  componentId: "sc-1mb76hl-0"
@@ -140,19 +154,34 @@ StyledFooterItem.defaultProps = {
140
154
  };
141
155
 
142
156
  const COMPONENT_ID$e = 'modals.header';
157
+ const colorStyles$1 = _ref => {
158
+ let {
159
+ isDanger,
160
+ theme
161
+ } = _ref;
162
+ const bottomBorderColor = reactTheming.getColor({
163
+ theme,
164
+ variable: 'border.subtle'
165
+ });
166
+ const color = reactTheming.getColor({
167
+ theme,
168
+ variable: isDanger ? 'foreground.danger' : 'foreground.default'
169
+ });
170
+ return styled.css(["border-bottom-color:", ";color:", ";"], bottomBorderColor, color);
171
+ };
143
172
  const StyledHeader = styled__default.default.div.attrs({
144
173
  'data-garden-id': COMPONENT_ID$e,
145
- 'data-garden-version': '9.0.0-next.11'
174
+ 'data-garden-version': '9.0.0-next.13'
146
175
  }).withConfig({
147
176
  displayName: "StyledHeader",
148
177
  componentId: "sc-1787r9v-0"
149
- })(["display:block;position:", ";margin:0;border-bottom:", " ", ";padding:", ";", " line-height:", ";color:", ";font-size:", ";font-weight:", ";", ";"], props => props.isDanger && 'relative', props => props.theme.borders.sm, reactTheming.getColorV8('neutralHue', 200), props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS$1.size + BASE_MULTIPLIERS$1.side + 2)}px;`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.isDanger ? reactTheming.getColorV8('dangerHue', 600, props.theme) : reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
178
+ })(["display:block;position:", ";margin:0;border-bottom:", ";padding:", ";", " line-height:", ";font-size:", ";font-weight:", ";", ";", ";"], props => props.isDanger && 'relative', props => props.theme.borders.sm, props => `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px`, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS$1.size + BASE_MULTIPLIERS$1.side + 2)}px;`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, colorStyles$1, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
150
179
  StyledHeader.defaultProps = {
151
180
  theme: reactTheming.DEFAULT_THEME
152
181
  };
153
182
 
154
183
  var _g, _circle;
155
- 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); }
184
+ 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); }
156
185
  var SvgAlertErrorStroke = function SvgAlertErrorStroke(props) {
157
186
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
158
187
  xmlns: "http://www.w3.org/2000/svg",
@@ -195,29 +224,44 @@ const animationStyles = props => {
195
224
  }
196
225
  return '';
197
226
  };
198
- const boxShadow$1 = props => {
199
- const {
227
+ const colorStyles = _ref => {
228
+ let {
200
229
  theme
201
- } = props;
202
- const {
203
- space,
204
- shadows
205
- } = theme;
206
- const offsetY = `${space.base * 5}px`;
207
- const blurRadius = `${space.base * 7}px`;
208
- const color = reactTheming.getColorV8('neutralHue', 800, theme, 0.35);
209
- return shadows.lg(offsetY, blurRadius, color);
230
+ } = _ref;
231
+ const offsetY = `${theme.space.base * (theme.colors.base === 'dark' ? 4 : 5)}px`;
232
+ const blurRadius = `${theme.space.base * (theme.colors.base === 'dark' ? 6 : 7)}px`;
233
+ const shadowColor = reactTheming.getColor({
234
+ theme,
235
+ hue: 'neutralHue',
236
+ shade: 1200,
237
+ light: {
238
+ transparency: theme.opacity[200]
239
+ },
240
+ dark: {
241
+ transparency: theme.opacity[1000]
242
+ }
243
+ });
244
+ const shadow = theme.shadows.lg(offsetY, blurRadius, shadowColor);
245
+ const borderColor = reactTheming.getColor({
246
+ theme,
247
+ variable: 'border.default'
248
+ });
249
+ const backgroundColor = reactTheming.getColor({
250
+ theme,
251
+ variable: 'background.raised'
252
+ });
253
+ return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";"], borderColor, shadow, backgroundColor);
210
254
  };
211
255
  const sizeStyles$1 = props => {
212
256
  return styled.css(["", "{width:", ";}"], reactTheming.mediaQuery('up', props.isLarge ? 'md' : 'sm', props.theme), props.isLarge ? props.theme.breakpoints.md : props.theme.breakpoints.sm);
213
257
  };
214
258
  const StyledModal = styled__default.default.div.attrs({
215
259
  'data-garden-id': COMPONENT_ID$d,
216
- 'data-garden-version': '9.0.0-next.11'
260
+ 'data-garden-version': '9.0.0-next.13'
217
261
  }).withConfig({
218
262
  displayName: "StyledModal",
219
263
  componentId: "sc-1pe1axu-0"
220
- })(["display:flex;position:fixed;flex-direction:column;animation-delay:0.01s;margin:", ";border-radius:", ";box-shadow:", ";background-color:", ";min-height:60px;max-height:calc(100vh - ", "px);overflow:auto;direction:", ";", ";", ";&:focus{outline:none;}@media (max-height:399px){top:", "px;bottom:auto;margin-bottom:", "px;max-height:none;}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){right:", ";bottom:", ";transform:", ";}", ";"], props => props.isCentered ? '0' : `${props.theme.space.base * 12}px`, props => props.theme.borderRadii.md, boxShadow$1, props => reactTheming.getColorV8('background', 600 , props.theme), props => props.theme.space.base * 24, props => props.theme.rtl && 'rtl', animationStyles, sizeStyles$1, props => props.theme.space.base * 6, props => props.theme.space.base * 6, props => props.isCentered && '50%', props => props.isCentered && '50%', props => props.isCentered && 'translate(50%, 50%)', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
264
+ })(["display:flex;position:fixed;flex-direction:column;animation-delay:0.01s;margin:", ";border:", ";border-radius:", ";min-height:60px;max-height:calc(100vh - ", "px);overflow:auto;direction:", ";", ";", ";", ";&:focus{outline:none;}@media (max-height:399px){top:", "px;bottom:auto;margin-bottom:", "px;max-height:none;}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){right:", ";bottom:", ";transform:", ";}", ";"], props => props.isCentered ? '0' : `${props.theme.space.base * 12}px`, props => props.theme.borders.sm, props => props.theme.borderRadii.md, props => props.theme.space.base * 24, props => props.theme.rtl && 'rtl', animationStyles, sizeStyles$1, colorStyles, props => props.theme.space.base * 6, props => props.theme.space.base * 6, props => props.isCentered && '50%', props => props.isCentered && '50%', props => props.isCentered && 'translate(50%, 50%)', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
221
265
  StyledModal.propTypes = {
222
266
  isLarge: PropTypes__default.default.bool,
223
267
  isAnimated: PropTypes__default.default.bool
@@ -229,7 +273,7 @@ StyledModal.defaultProps = {
229
273
  const COMPONENT_ID$c = 'modals.tooltip_modal.backdrop';
230
274
  const StyledTooltipModalBackdrop = styled__default.default.div.attrs({
231
275
  'data-garden-id': COMPONENT_ID$c,
232
- 'data-garden-version': '9.0.0-next.11'
276
+ 'data-garden-version': '9.0.0-next.13'
233
277
  }).withConfig({
234
278
  displayName: "StyledTooltipModalBackdrop",
235
279
  componentId: "sc-1yaomgq-0"
@@ -256,7 +300,7 @@ StyledTooltipWrapper.defaultProps = {
256
300
  const COMPONENT_ID$b = 'modals.tooltip_modal';
257
301
  const StyledTooltipModal = styled__default.default.div.attrs(props => ({
258
302
  'data-garden-id': COMPONENT_ID$b,
259
- 'data-garden-version': '9.0.0-next.11',
303
+ 'data-garden-version': '9.0.0-next.13',
260
304
  className: props.isAnimated && 'is-animated'
261
305
  })).withConfig({
262
306
  displayName: "StyledTooltipModal",
@@ -285,7 +329,7 @@ const sizeStyles = props => `
285
329
  `;
286
330
  const StyledTooltipModalTitle = styled__default.default.div.attrs({
287
331
  'data-garden-id': COMPONENT_ID$a,
288
- 'data-garden-version': '9.0.0-next.11'
332
+ 'data-garden-version': '9.0.0-next.13'
289
333
  }).withConfig({
290
334
  displayName: "StyledTooltipModalTitle",
291
335
  componentId: "sc-11xjgjs-0"
@@ -297,7 +341,7 @@ StyledTooltipModalTitle.defaultProps = {
297
341
  const COMPONENT_ID$9 = 'modals.tooltip_modal.body';
298
342
  const StyledTooltipModalBody = styled__default.default.div.attrs({
299
343
  'data-garden-id': COMPONENT_ID$9,
300
- 'data-garden-version': '9.0.0-next.11'
344
+ 'data-garden-version': '9.0.0-next.13'
301
345
  }).withConfig({
302
346
  displayName: "StyledTooltipModalBody",
303
347
  componentId: "sc-195dkzj-0"
@@ -309,7 +353,7 @@ StyledTooltipModalBody.defaultProps = {
309
353
  const COMPONENT_ID$8 = 'modals.tooltip_modal.footer';
310
354
  const StyledTooltipModalFooter = styled__default.default.div.attrs({
311
355
  'data-garden-id': COMPONENT_ID$8,
312
- 'data-garden-version': '9.0.0-next.11'
356
+ 'data-garden-version': '9.0.0-next.13'
313
357
  }).withConfig({
314
358
  displayName: "StyledTooltipModalFooter",
315
359
  componentId: "sc-fm36a9-0"
@@ -321,7 +365,7 @@ StyledTooltipModalFooter.defaultProps = {
321
365
  const COMPONENT_ID$7 = 'modals.tooltip_modal.footer_item';
322
366
  const StyledTooltipModalFooterItem = styled__default.default(StyledFooterItem).attrs({
323
367
  'data-garden-id': COMPONENT_ID$7,
324
- 'data-garden-version': '9.0.0-next.11'
368
+ 'data-garden-version': '9.0.0-next.13'
325
369
  }).withConfig({
326
370
  displayName: "StyledTooltipModalFooterItem",
327
371
  componentId: "sc-1nahj6p-0"
@@ -333,7 +377,7 @@ StyledTooltipModalFooterItem.defaultProps = {
333
377
  const COMPONENT_ID$6 = 'modals.tooltip_modal.close';
334
378
  const StyledTooltipModalClose = styled__default.default(StyledClose).attrs({
335
379
  'data-garden-id': COMPONENT_ID$6,
336
- 'data-garden-version': '9.0.0-next.11'
380
+ 'data-garden-version': '9.0.0-next.13'
337
381
  }).withConfig({
338
382
  displayName: "StyledTooltipModalClose",
339
383
  componentId: "sc-1h2ke3q-0"
@@ -359,7 +403,7 @@ const boxShadow = props => {
359
403
  };
360
404
  const StyledDrawer = styled__default.default.div.attrs({
361
405
  'data-garden-id': COMPONENT_ID$5,
362
- 'data-garden-version': '9.0.0-next.11'
406
+ 'data-garden-version': '9.0.0-next.13'
363
407
  }).withConfig({
364
408
  displayName: "StyledDrawer",
365
409
  componentId: "sc-zp66t3-0"
@@ -376,7 +420,7 @@ const BASE_MULTIPLIERS = {
376
420
  };
377
421
  const StyledDrawerClose = styled__default.default(StyledClose).attrs({
378
422
  'data-garden-id': COMPONENT_ID$4,
379
- 'data-garden-version': '9.0.0-next.11'
423
+ 'data-garden-version': '9.0.0-next.13'
380
424
  }).withConfig({
381
425
  displayName: "StyledDrawerClose",
382
426
  componentId: "sc-1a0xt3x-0"
@@ -388,7 +432,7 @@ StyledDrawerClose.defaultProps = {
388
432
  const COMPONENT_ID$3 = 'modals.drawer_modal.header';
389
433
  const StyledDrawerHeader = styled__default.default(StyledHeader).attrs({
390
434
  'data-garden-id': COMPONENT_ID$3,
391
- 'data-garden-version': '9.0.0-next.11'
435
+ 'data-garden-version': '9.0.0-next.13'
392
436
  }).withConfig({
393
437
  displayName: "StyledDrawerHeader",
394
438
  componentId: "sc-y4mgkj-0"
@@ -400,7 +444,7 @@ StyledDrawerHeader.defaultProps = {
400
444
  const COMPONENT_ID$2 = 'modals.drawer_modal.body';
401
445
  const StyledDrawerBody = styled__default.default(StyledBody).attrs({
402
446
  'data-garden-id': COMPONENT_ID$2,
403
- 'data-garden-version': '9.0.0-next.11'
447
+ 'data-garden-version': '9.0.0-next.13'
404
448
  }).withConfig({
405
449
  displayName: "StyledDrawerBody",
406
450
  componentId: "sc-13qufyn-0"
@@ -412,7 +456,7 @@ StyledDrawerBody.defaultProps = {
412
456
  const COMPONENT_ID$1 = 'modals.drawer_modal.footer';
413
457
  const StyledDrawerFooter = styled__default.default.div.attrs({
414
458
  'data-garden-id': COMPONENT_ID$1,
415
- 'data-garden-version': '9.0.0-next.11'
459
+ 'data-garden-version': '9.0.0-next.13'
416
460
  }).withConfig({
417
461
  displayName: "StyledDrawerFooter",
418
462
  componentId: "sc-kc7e6p-0"
@@ -424,7 +468,7 @@ StyledDrawerFooter.defaultProps = {
424
468
  const COMPONENT_ID = 'modals.drawer_modal.footer_item';
425
469
  const StyledDrawerFooterItem = styled__default.default(StyledFooterItem).attrs({
426
470
  'data-garden-id': COMPONENT_ID,
427
- 'data-garden-version': '9.0.0-next.11'
471
+ 'data-garden-version': '9.0.0-next.13'
428
472
  }).withConfig({
429
473
  displayName: "StyledDrawerFooterItem",
430
474
  componentId: "sc-m2yul4-0"
@@ -453,7 +497,7 @@ const Body$2 = React.forwardRef((props, ref) => {
453
497
  Body$2.displayName = 'Body';
454
498
 
455
499
  var _path;
456
- 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); }
500
+ 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); }
457
501
  var SvgXStroke = function SvgXStroke(props) {
458
502
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
459
503
  xmlns: "http://www.w3.org/2000/svg",
@@ -4,16 +4,13 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import { DefaultTheme } from 'styled-components';
7
+ /// <reference types="react" />
8
8
  export declare const BASE_MULTIPLIERS: {
9
9
  top: number;
10
10
  side: number;
11
11
  size: number;
12
12
  };
13
- /**
14
- * 1. Remove dotted outline from Firefox on focus.
15
- */
16
- export declare const StyledClose: import("styled-components").StyledComponent<"button", DefaultTheme, {
13
+ export declare const StyledClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {
17
14
  'data-garden-id': string;
18
15
  'data-garden-version': string;
19
16
  }, "data-garden-id" | "data-garden-version">;
@@ -4,12 +4,13 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
+ /// <reference types="react" />
7
8
  export declare const BASE_MULTIPLIERS: {
8
9
  top: number;
9
10
  side: number;
10
11
  size: number;
11
12
  };
12
- export declare const StyledDrawerClose: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
13
+ export declare const StyledDrawerClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("packages/buttons/dist/typings").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {
13
14
  'data-garden-id': string;
14
15
  'data-garden-version': string;
15
16
  } & {
@@ -4,6 +4,7 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
+ import { DefaultTheme } from 'styled-components';
7
8
  export interface IStyledHeaderProps {
8
9
  isDanger?: boolean;
9
10
  isCloseButtonPresent?: boolean;
@@ -12,4 +13,4 @@ export interface IStyledHeaderProps {
12
13
  * 1. the padding added to the Header is based on the close button size and spacing,
13
14
  * with additional padding (+ 2) between the Header content and Close button
14
15
  */
15
- export declare const StyledHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, IStyledHeaderProps, never>;
16
+ export declare const StyledHeader: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledHeaderProps, never>;
@@ -4,7 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- export declare const StyledTooltipModalClose: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
7
+ /// <reference types="react" />
8
+ export declare const StyledTooltipModalClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("packages/buttons/dist/typings").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {
8
9
  'data-garden-id': string;
9
10
  'data-garden-version': string;
10
11
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-modals",
3
- "version": "9.0.0-next.11",
3
+ "version": "9.0.0-next.13",
4
4
  "description": "Components relating to modals in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -22,8 +22,9 @@
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
24
  "@floating-ui/react-dom": "^2.0.0",
25
- "@zendeskgarden/container-modal": "^1.0.0",
25
+ "@zendeskgarden/container-modal": "^1.0.15",
26
26
  "@zendeskgarden/container-utilities": "^2.0.0",
27
+ "@zendeskgarden/react-buttons": "^9.0.0-next.13",
27
28
  "dom-helpers": "^5.1.0",
28
29
  "prop-types": "^15.5.7",
29
30
  "react-merge-refs": "^2.0.0",
@@ -37,8 +38,8 @@
37
38
  },
38
39
  "devDependencies": {
39
40
  "@types/react-transition-group": "4.4.10",
40
- "@zendeskgarden/react-theming": "^9.0.0-next.11",
41
- "@zendeskgarden/svg-icons": "7.0.0"
41
+ "@zendeskgarden/react-theming": "^9.0.0-next.13",
42
+ "@zendeskgarden/svg-icons": "7.1.1"
42
43
  },
43
44
  "keywords": [
44
45
  "components",
@@ -49,6 +50,5 @@
49
50
  "publishConfig": {
50
51
  "access": "public"
51
52
  },
52
- "zendeskgarden:src": "src/index.ts",
53
- "gitHead": "0de1cc664807bd993ccd3beeb78e8fd1f3828320"
53
+ "zendeskgarden:src": "src/index.ts"
54
54
  }
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