@zendeskgarden/react-modals 9.0.0-next.10 → 9.0.0-next.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/styled/StyledBackdrop.js +18 -3
- package/dist/esm/styled/StyledBody.js +11 -3
- package/dist/esm/styled/StyledClose.js +6 -15
- package/dist/esm/styled/StyledDrawer.js +1 -1
- package/dist/esm/styled/StyledDrawerBody.js +1 -1
- package/dist/esm/styled/StyledDrawerClose.js +1 -1
- package/dist/esm/styled/StyledDrawerFooter.js +1 -1
- package/dist/esm/styled/StyledDrawerFooterItem.js +1 -1
- package/dist/esm/styled/StyledDrawerHeader.js +1 -1
- package/dist/esm/styled/StyledFooter.js +1 -1
- package/dist/esm/styled/StyledFooterItem.js +1 -1
- package/dist/esm/styled/StyledHeader.js +19 -4
- package/dist/esm/styled/StyledModal.js +29 -14
- package/dist/esm/styled/StyledTooltipModal.js +1 -1
- package/dist/esm/styled/StyledTooltipModalBackdrop.js +1 -1
- package/dist/esm/styled/StyledTooltipModalBody.js +1 -1
- package/dist/esm/styled/StyledTooltipModalClose.js +1 -1
- package/dist/esm/styled/StyledTooltipModalFooter.js +1 -1
- package/dist/esm/styled/StyledTooltipModalFooterItem.js +1 -1
- package/dist/esm/styled/StyledTooltipModalTitle.js +1 -1
- package/dist/index.cjs.js +91 -47
- package/dist/typings/styled/StyledClose.d.ts +2 -5
- package/dist/typings/styled/StyledDrawerClose.d.ts +2 -1
- package/dist/typings/styled/StyledHeader.d.ts +2 -1
- package/dist/typings/styled/StyledTooltipModalClose.d.ts +2 -1
- package/package.json +4 -3
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import styled, { keyframes, css } from 'styled-components';
|
|
9
|
-
import {
|
|
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.
|
|
21
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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',
|
|
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,
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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),
|
|
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
|
|
8
|
-
import { retrieveComponentStyles, DEFAULT_THEME
|
|
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.
|
|
17
|
+
const StyledClose = styled(IconButton).attrs({
|
|
27
18
|
'data-garden-id': COMPONENT_ID,
|
|
28
|
-
'data-garden-version': '9.0.0-next.
|
|
19
|
+
'data-garden-version': '9.0.0-next.12'
|
|
29
20
|
}).withConfig({
|
|
30
21
|
displayName: "StyledClose",
|
|
31
22
|
componentId: "sc-iseudj-0"
|
|
32
|
-
})(["
|
|
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.
|
|
27
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
14
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
19
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
14
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
15
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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 {
|
|
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.
|
|
29
|
+
'data-garden-version': '9.0.0-next.12'
|
|
15
30
|
}).withConfig({
|
|
16
31
|
displayName: "StyledHeader",
|
|
17
32
|
componentId: "sc-1787r9v-0"
|
|
18
|
-
})(["display:block;position:", ";margin:0;border-bottom:", "
|
|
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 {
|
|
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
|
|
20
|
-
|
|
19
|
+
const colorStyles = _ref => {
|
|
20
|
+
let {
|
|
21
21
|
theme
|
|
22
|
-
} =
|
|
23
|
-
const {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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.
|
|
52
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12',
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
14
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
13
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
14
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
19
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
67
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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',
|
|
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.
|
|
98
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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),
|
|
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.
|
|
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.
|
|
123
|
+
'data-garden-version': '9.0.0-next.12'
|
|
110
124
|
}).withConfig({
|
|
111
125
|
displayName: "StyledClose",
|
|
112
126
|
componentId: "sc-iseudj-0"
|
|
113
|
-
})(["
|
|
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.
|
|
135
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
147
|
+
'data-garden-version': '9.0.0-next.12'
|
|
134
148
|
}).withConfig({
|
|
135
149
|
displayName: "StyledFooterItem",
|
|
136
150
|
componentId: "sc-1mb76hl-0"
|
|
@@ -140,13 +154,28 @@ 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.
|
|
174
|
+
'data-garden-version': '9.0.0-next.12'
|
|
146
175
|
}).withConfig({
|
|
147
176
|
displayName: "StyledHeader",
|
|
148
177
|
componentId: "sc-1787r9v-0"
|
|
149
|
-
})(["display:block;position:", ";margin:0;border-bottom:", "
|
|
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
|
};
|
|
@@ -195,29 +224,44 @@ const animationStyles = props => {
|
|
|
195
224
|
}
|
|
196
225
|
return '';
|
|
197
226
|
};
|
|
198
|
-
const
|
|
199
|
-
|
|
227
|
+
const colorStyles = _ref => {
|
|
228
|
+
let {
|
|
200
229
|
theme
|
|
201
|
-
} =
|
|
202
|
-
const {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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.
|
|
260
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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
|
|
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.
|
|
276
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
303
|
+
'data-garden-version': '9.0.0-next.12',
|
|
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.
|
|
332
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
344
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
356
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
368
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
380
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
406
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
423
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
435
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
447
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
459
|
+
'data-garden-version': '9.0.0-next.12'
|
|
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.
|
|
471
|
+
'data-garden-version': '9.0.0-next.12'
|
|
428
472
|
}).withConfig({
|
|
429
473
|
displayName: "StyledDrawerFooterItem",
|
|
430
474
|
componentId: "sc-m2yul4-0"
|
|
@@ -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
|
-
|
|
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<"
|
|
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",
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "9.0.0-next.12",
|
|
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>",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@floating-ui/react-dom": "^2.0.0",
|
|
25
25
|
"@zendeskgarden/container-modal": "^1.0.0",
|
|
26
26
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
27
|
+
"@zendeskgarden/react-buttons": "^9.0.0-next.12",
|
|
27
28
|
"dom-helpers": "^5.1.0",
|
|
28
29
|
"prop-types": "^15.5.7",
|
|
29
30
|
"react-merge-refs": "^2.0.0",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/react-transition-group": "4.4.10",
|
|
40
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
41
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.12",
|
|
41
42
|
"@zendeskgarden/svg-icons": "7.0.0"
|
|
42
43
|
},
|
|
43
44
|
"keywords": [
|
|
@@ -50,5 +51,5 @@
|
|
|
50
51
|
"access": "public"
|
|
51
52
|
},
|
|
52
53
|
"zendeskgarden:src": "src/index.ts",
|
|
53
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "7925ff78236795111e2953efbce549839df3a86d"
|
|
54
55
|
}
|