@zendeskgarden/react-modals 9.3.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/styled/StyledBackdrop.js +3 -3
- package/dist/esm/styled/StyledBody.js +3 -3
- package/dist/esm/styled/StyledClose.js +3 -3
- package/dist/esm/styled/StyledDrawer.js +3 -3
- package/dist/esm/styled/StyledDrawerBody.js +3 -3
- package/dist/esm/styled/StyledDrawerClose.js +3 -3
- package/dist/esm/styled/StyledDrawerFooter.js +3 -3
- package/dist/esm/styled/StyledDrawerFooterItem.js +3 -3
- package/dist/esm/styled/StyledDrawerHeader.js +3 -3
- package/dist/esm/styled/StyledFooter.js +3 -3
- package/dist/esm/styled/StyledFooterItem.js +3 -3
- package/dist/esm/styled/StyledHeader.js +3 -3
- package/dist/esm/styled/StyledModal.js +3 -3
- package/dist/esm/styled/StyledTooltipDialog.js +3 -3
- package/dist/esm/styled/StyledTooltipDialogBackdrop.js +3 -3
- package/dist/esm/styled/StyledTooltipDialogBody.js +3 -3
- package/dist/esm/styled/StyledTooltipDialogClose.js +3 -3
- package/dist/esm/styled/StyledTooltipDialogFooter.js +3 -3
- package/dist/esm/styled/StyledTooltipDialogFooterItem.js +3 -3
- package/dist/esm/styled/StyledTooltipDialogTitle.js +3 -3
- package/dist/index.cjs.js +40 -40
- package/package.json +6 -6
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import styled, { keyframes, css } from 'styled-components';
|
|
9
|
-
import { getColor,
|
|
9
|
+
import { getColor, componentStyles } 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,7 +18,7 @@ const animationStyles = props => {
|
|
|
18
18
|
};
|
|
19
19
|
const StyledBackdrop = styled.div.attrs({
|
|
20
20
|
'data-garden-id': COMPONENT_ID,
|
|
21
|
-
'data-garden-version': '9.
|
|
21
|
+
'data-garden-version': '9.5.0'
|
|
22
22
|
}).withConfig({
|
|
23
23
|
displayName: "StyledBackdrop",
|
|
24
24
|
componentId: "sc-mzdjpo-0"
|
|
@@ -37,7 +37,7 @@ const StyledBackdrop = styled.div.attrs({
|
|
|
37
37
|
shade: 1200
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
}, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles,
|
|
40
|
+
}, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles, componentStyles);
|
|
41
41
|
StyledBackdrop.propTypes = {
|
|
42
42
|
$isCentered: PropTypes.bool,
|
|
43
43
|
$isAnimated: PropTypes.bool
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getLineHeight, getColor,
|
|
8
|
+
import { getLineHeight, getColor, componentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledBody",
|
|
16
16
|
componentId: "sc-14rzecg-0"
|
|
@@ -22,6 +22,6 @@ const StyledBody = styled.div.attrs({
|
|
|
22
22
|
theme,
|
|
23
23
|
variable: 'foreground.default'
|
|
24
24
|
});
|
|
25
|
-
}, props => props.theme.fontSizes.md,
|
|
25
|
+
}, props => props.theme.fontSizes.md, componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledBody };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { IconButton } from '@zendeskgarden/react-buttons';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'modals.close';
|
|
@@ -16,10 +16,10 @@ const BASE_MULTIPLIERS = {
|
|
|
16
16
|
};
|
|
17
17
|
const StyledClose = styled(IconButton).attrs({
|
|
18
18
|
'data-garden-id': COMPONENT_ID,
|
|
19
|
-
'data-garden-version': '9.
|
|
19
|
+
'data-garden-version': '9.5.0'
|
|
20
20
|
}).withConfig({
|
|
21
21
|
displayName: "StyledClose",
|
|
22
22
|
componentId: "sc-iseudj-0"
|
|
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`,
|
|
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`, componentStyles);
|
|
24
24
|
|
|
25
25
|
export { BASE_MULTIPLIERS, StyledClose };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'modals.drawer_modal';
|
|
11
11
|
const DRAWER_WIDTH = 380;
|
|
@@ -32,10 +32,10 @@ const colorStyles = _ref => {
|
|
|
32
32
|
};
|
|
33
33
|
const StyledDrawer = styled.div.attrs({
|
|
34
34
|
'data-garden-id': COMPONENT_ID,
|
|
35
|
-
'data-garden-version': '9.
|
|
35
|
+
'data-garden-version': '9.5.0'
|
|
36
36
|
}).withConfig({
|
|
37
37
|
displayName: "StyledDrawer",
|
|
38
38
|
componentId: "sc-zp66t3-0"
|
|
39
|
-
})(["display:flex;position:fixed;top:0;", ":0;flex-direction:column;z-index:500;", ":", ";width:", "px;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-drawer-transition-enter{transform:translateX(", "px);}&.garden-drawer-transition-enter-active{transform:translateX(0);transition:transform 0.25s ease-in-out;}&.garden-drawer-transition-exit-active{transform:translateX(", "px);transition:transform 0.25s ease-in-out;}&:focus{outline:none;}", " ", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.rtl ? 'border-right' : 'border-left', props => props.theme.borders.sm, DRAWER_WIDTH, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, colorStyles,
|
|
39
|
+
})(["display:flex;position:fixed;top:0;", ":0;flex-direction:column;z-index:500;", ":", ";width:", "px;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-drawer-transition-enter{transform:translateX(", "px);}&.garden-drawer-transition-enter-active{transform:translateX(0);transition:transform 0.25s ease-in-out;}&.garden-drawer-transition-exit-active{transform:translateX(", "px);transition:transform 0.25s ease-in-out;}&:focus{outline:none;}", " ", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.rtl ? 'border-right' : 'border-left', props => props.theme.borders.sm, DRAWER_WIDTH, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, colorStyles, componentStyles);
|
|
40
40
|
|
|
41
41
|
export { StyledDrawer };
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledBody } from './StyledBody.js';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledDrawerBody",
|
|
17
17
|
componentId: "sc-13qufyn-0"
|
|
18
|
-
})(["padding:", "px;color-scheme:only ", ";", ";"], props => props.theme.space.base * 5, p => p.theme.colors.base,
|
|
18
|
+
})(["padding:", "px;color-scheme:only ", ";", ";"], props => props.theme.space.base * 5, p => p.theme.colors.base, componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledDrawerBody };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledClose, BASE_MULTIPLIERS as BASE_MULTIPLIERS$1 } from './StyledClose.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'modals.drawer_modal.close';
|
|
@@ -16,10 +16,10 @@ const BASE_MULTIPLIERS = {
|
|
|
16
16
|
};
|
|
17
17
|
const StyledDrawerClose = styled(StyledClose).attrs({
|
|
18
18
|
'data-garden-id': COMPONENT_ID,
|
|
19
|
-
'data-garden-version': '9.
|
|
19
|
+
'data-garden-version': '9.5.0'
|
|
20
20
|
}).withConfig({
|
|
21
21
|
displayName: "StyledDrawerClose",
|
|
22
22
|
componentId: "sc-1a0xt3x-0"
|
|
23
|
-
})(["", ":", ";", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`,
|
|
23
|
+
})(["", ":", ";", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, componentStyles);
|
|
24
24
|
|
|
25
25
|
export { BASE_MULTIPLIERS, StyledDrawerClose };
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getColor,
|
|
8
|
+
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledDrawerFooter",
|
|
16
16
|
componentId: "sc-kc7e6p-0"
|
|
@@ -22,6 +22,6 @@ const StyledDrawerFooter = styled.div.attrs({
|
|
|
22
22
|
theme,
|
|
23
23
|
variable: 'border.subtle'
|
|
24
24
|
})}`;
|
|
25
|
-
}, props => props.theme.space.base * 5,
|
|
25
|
+
}, props => props.theme.space.base * 5, componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledDrawerFooter };
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledFooterItem } from './StyledFooterItem.js';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledDrawerFooterItem",
|
|
17
17
|
componentId: "sc-m2yul4-0"
|
|
18
|
-
})(["", ";"],
|
|
18
|
+
})(["", ";"], componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledDrawerFooterItem };
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledHeader } from './StyledHeader.js';
|
|
10
10
|
import { BASE_MULTIPLIERS } from './StyledDrawerClose.js';
|
|
11
11
|
|
|
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.
|
|
15
|
+
'data-garden-version': '9.5.0'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledDrawerHeader",
|
|
18
18
|
componentId: "sc-y4mgkj-0"
|
|
19
|
-
})(["padding:", "px;", " ", ";"], props => props.theme.space.base * 5, props => props.$isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`,
|
|
19
|
+
})(["padding:", "px;", " ", ";"], props => props.theme.space.base * 5, props => props.$isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, componentStyles);
|
|
20
20
|
|
|
21
21
|
export { StyledDrawerHeader };
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getColor,
|
|
8
|
+
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledFooter",
|
|
16
16
|
componentId: "sc-d8pfdu-0"
|
|
17
17
|
})(["display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:", ";padding:", ";", ";"], props => props.$isLarge && `${props.theme.borders.sm} ${getColor({
|
|
18
18
|
theme: props.theme,
|
|
19
19
|
variable: 'border.default'
|
|
20
|
-
})}`, props => props.$isLarge ? `${props.theme.space.base * 8}px ${props.theme.space.base * 10}px` : `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px ${props.theme.space.base * 8}px`,
|
|
20
|
+
})}`, props => props.$isLarge ? `${props.theme.space.base * 8}px ${props.theme.space.base * 10}px` : `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px ${props.theme.space.base * 8}px`, componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledFooter };
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledFooterItem",
|
|
16
16
|
componentId: "sc-1mb76hl-0"
|
|
17
|
-
})(["display:flex;margin-", ":", "px;min-width:0;&:first-child{margin-", ":0;}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 5, props => props.theme.rtl ? 'right' : 'left',
|
|
17
|
+
})(["display:flex;margin-", ":", "px;min-width:0;&:first-child{margin-", ":0;}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 5, props => props.theme.rtl ? 'right' : 'left', componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledFooterItem };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { getLineHeight,
|
|
8
|
+
import { getLineHeight, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { BASE_MULTIPLIERS } from './StyledClose.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'modals.header';
|
|
@@ -26,10 +26,10 @@ const colorStyles = _ref => {
|
|
|
26
26
|
};
|
|
27
27
|
const StyledHeader = styled.div.attrs({
|
|
28
28
|
'data-garden-id': COMPONENT_ID,
|
|
29
|
-
'data-garden-version': '9.
|
|
29
|
+
'data-garden-version': '9.5.0'
|
|
30
30
|
}).withConfig({
|
|
31
31
|
displayName: "StyledHeader",
|
|
32
32
|
componentId: "sc-1787r9v-0"
|
|
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,
|
|
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, componentStyles);
|
|
34
34
|
|
|
35
35
|
export { StyledHeader };
|
|
@@ -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 { componentStyles, 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;}"]);
|
|
@@ -42,11 +42,11 @@ const sizeStyles = props => {
|
|
|
42
42
|
};
|
|
43
43
|
const StyledModal = styled.div.attrs({
|
|
44
44
|
'data-garden-id': COMPONENT_ID,
|
|
45
|
-
'data-garden-version': '9.
|
|
45
|
+
'data-garden-version': '9.5.0'
|
|
46
46
|
}).withConfig({
|
|
47
47
|
displayName: "StyledModal",
|
|
48
48
|
componentId: "sc-1pe1axu-0"
|
|
49
|
-
})(["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%)',
|
|
49
|
+
})(["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%)', componentStyles);
|
|
50
50
|
StyledModal.propTypes = {
|
|
51
51
|
$isLarge: PropTypes.bool,
|
|
52
52
|
$isAnimated: PropTypes.bool
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { arrowStyles, getArrowPosition,
|
|
8
|
+
import { arrowStyles, getArrowPosition, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledTooltipDialogClose } from './StyledTooltipDialogClose.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'modals.tooltip_dialog';
|
|
@@ -19,7 +19,7 @@ const sizeStyles = props => `
|
|
|
19
19
|
`;
|
|
20
20
|
const StyledTooltipDialog = styled.div.attrs(props => ({
|
|
21
21
|
'data-garden-id': COMPONENT_ID,
|
|
22
|
-
'data-garden-version': '9.
|
|
22
|
+
'data-garden-version': '9.5.0',
|
|
23
23
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
24
24
|
})).withConfig({
|
|
25
25
|
displayName: "StyledTooltipDialog",
|
|
@@ -34,6 +34,6 @@ const StyledTooltipDialog = styled.div.attrs(props => ({
|
|
|
34
34
|
return props.$hasArrow && props.$transitionState === 'entered' && computedArrowStyles;
|
|
35
35
|
}
|
|
36
36
|
return props.$hasArrow && computedArrowStyles;
|
|
37
|
-
}, sizeStyles,
|
|
37
|
+
}, sizeStyles, componentStyles);
|
|
38
38
|
|
|
39
39
|
export { StyledTooltipDialog };
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'modals.tooltip_dialog.backdrop';
|
|
11
11
|
const StyledTooltipDialogBackdrop = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledTooltipDialogBackdrop",
|
|
16
16
|
componentId: "sc-zrk625-0"
|
|
17
|
-
})(["position:fixed;inset:0;z-index:400;overflow:hidden;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-tooltip-modal-transition-exit-active{pointer-events:none;}&.garden-tooltip-modal-transition-exit-active div{transition:opacity 200ms;opacity:0;}", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl',
|
|
17
|
+
})(["position:fixed;inset:0;z-index:400;overflow:hidden;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-tooltip-modal-transition-exit-active{pointer-events:none;}&.garden-tooltip-modal-transition-exit-active div{transition:opacity 200ms;opacity:0;}", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledTooltipDialogBackdrop };
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getLineHeight, getColor,
|
|
8
|
+
import { getLineHeight, getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'modals.tooltip_dialog.body';
|
|
11
11
|
const StyledTooltipDialogBody = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledTooltipDialogBody",
|
|
16
16
|
componentId: "sc-132lcoq-0"
|
|
@@ -22,6 +22,6 @@ const StyledTooltipDialogBody = styled.div.attrs({
|
|
|
22
22
|
variable: 'foreground.default',
|
|
23
23
|
theme
|
|
24
24
|
});
|
|
25
|
-
}, props => props.theme.fontSizes.md,
|
|
25
|
+
}, props => props.theme.fontSizes.md, componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledTooltipDialogBody };
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledClose } from './StyledClose.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'modals.tooltip_dialog.close';
|
|
12
12
|
const StyledTooltipDialogClose = styled(StyledClose).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledTooltipDialogClose",
|
|
17
17
|
componentId: "sc-18xlgfi-0"
|
|
18
|
-
})(["top:", "px;", ":", ";", ";"], props => props.theme.space.base * 3.5, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * 3}px`,
|
|
18
|
+
})(["top:", "px;", ":", ";", ";"], props => props.theme.space.base * 3.5, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * 3}px`, componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledTooltipDialogClose };
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'modals.tooltip_dialog.footer';
|
|
11
11
|
const StyledTooltipDialogFooter = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledTooltipDialogFooter",
|
|
16
16
|
componentId: "sc-kjomsm-0"
|
|
17
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;padding-top:", "px;", ";"], p => p.theme.space.base * 5,
|
|
17
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;padding-top:", "px;", ";"], p => p.theme.space.base * 5, componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledTooltipDialogFooter };
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledFooterItem } from './StyledFooterItem.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'modals.tooltip_dialog.footer_item';
|
|
12
12
|
const StyledTooltipDialogFooterItem = styled(StyledFooterItem).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledTooltipDialogFooterItem",
|
|
17
17
|
componentId: "sc-u2rmo8-0"
|
|
18
|
-
})(["", ";"],
|
|
18
|
+
})(["", ";"], componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledTooltipDialogFooterItem };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getColor,
|
|
8
|
+
import { getColor, componentStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'modals.tooltip_dialog.title';
|
|
11
11
|
const sizeStyles = props => `
|
|
@@ -15,7 +15,7 @@ const sizeStyles = props => `
|
|
|
15
15
|
`;
|
|
16
16
|
const StyledTooltipDialogTitle = styled.div.attrs({
|
|
17
17
|
'data-garden-id': COMPONENT_ID,
|
|
18
|
-
'data-garden-version': '9.
|
|
18
|
+
'data-garden-version': '9.5.0'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledTooltipDialogTitle",
|
|
21
21
|
componentId: "sc-1rceixg-0"
|
|
@@ -27,6 +27,6 @@ const StyledTooltipDialogTitle = styled.div.attrs({
|
|
|
27
27
|
variable: 'foreground.default',
|
|
28
28
|
theme
|
|
29
29
|
});
|
|
30
|
-
}, props => props.theme.fontWeights.semibold, props => sizeStyles(props),
|
|
30
|
+
}, props => props.theme.fontWeights.semibold, props => sizeStyles(props), componentStyles);
|
|
31
31
|
|
|
32
32
|
export { StyledTooltipDialogTitle };
|
package/dist/index.cjs.js
CHANGED
|
@@ -64,7 +64,7 @@ const animationStyles$1 = props => {
|
|
|
64
64
|
};
|
|
65
65
|
const StyledBackdrop = styled__default.default.div.attrs({
|
|
66
66
|
'data-garden-id': COMPONENT_ID$j,
|
|
67
|
-
'data-garden-version': '9.
|
|
67
|
+
'data-garden-version': '9.5.0'
|
|
68
68
|
}).withConfig({
|
|
69
69
|
displayName: "StyledBackdrop",
|
|
70
70
|
componentId: "sc-mzdjpo-0"
|
|
@@ -83,7 +83,7 @@ const StyledBackdrop = styled__default.default.div.attrs({
|
|
|
83
83
|
shade: 1200
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
}, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles$1,
|
|
86
|
+
}, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', animationStyles$1, reactTheming.componentStyles);
|
|
87
87
|
StyledBackdrop.propTypes = {
|
|
88
88
|
$isCentered: PropTypes__default.default.bool,
|
|
89
89
|
$isAnimated: PropTypes__default.default.bool
|
|
@@ -92,7 +92,7 @@ StyledBackdrop.propTypes = {
|
|
|
92
92
|
const COMPONENT_ID$i = 'modals.body';
|
|
93
93
|
const StyledBody = styled__default.default.div.attrs({
|
|
94
94
|
'data-garden-id': COMPONENT_ID$i,
|
|
95
|
-
'data-garden-version': '9.
|
|
95
|
+
'data-garden-version': '9.5.0'
|
|
96
96
|
}).withConfig({
|
|
97
97
|
displayName: "StyledBody",
|
|
98
98
|
componentId: "sc-14rzecg-0"
|
|
@@ -104,7 +104,7 @@ const StyledBody = styled__default.default.div.attrs({
|
|
|
104
104
|
theme,
|
|
105
105
|
variable: 'foreground.default'
|
|
106
106
|
});
|
|
107
|
-
}, props => props.theme.fontSizes.md,
|
|
107
|
+
}, props => props.theme.fontSizes.md, reactTheming.componentStyles);
|
|
108
108
|
|
|
109
109
|
const COMPONENT_ID$h = 'modals.close';
|
|
110
110
|
const BASE_MULTIPLIERS$1 = {
|
|
@@ -114,32 +114,32 @@ const BASE_MULTIPLIERS$1 = {
|
|
|
114
114
|
};
|
|
115
115
|
const StyledClose = styled__default.default(reactButtons.IconButton).attrs({
|
|
116
116
|
'data-garden-id': COMPONENT_ID$h,
|
|
117
|
-
'data-garden-version': '9.
|
|
117
|
+
'data-garden-version': '9.5.0'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledClose",
|
|
120
120
|
componentId: "sc-iseudj-0"
|
|
121
|
-
})(["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`,
|
|
121
|
+
})(["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`, reactTheming.componentStyles);
|
|
122
122
|
|
|
123
123
|
const COMPONENT_ID$g = 'modals.footer';
|
|
124
124
|
const StyledFooter = styled__default.default.div.attrs({
|
|
125
125
|
'data-garden-id': COMPONENT_ID$g,
|
|
126
|
-
'data-garden-version': '9.
|
|
126
|
+
'data-garden-version': '9.5.0'
|
|
127
127
|
}).withConfig({
|
|
128
128
|
displayName: "StyledFooter",
|
|
129
129
|
componentId: "sc-d8pfdu-0"
|
|
130
130
|
})(["display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:", ";padding:", ";", ";"], props => props.$isLarge && `${props.theme.borders.sm} ${reactTheming.getColor({
|
|
131
131
|
theme: props.theme,
|
|
132
132
|
variable: 'border.default'
|
|
133
|
-
})}`, props => props.$isLarge ? `${props.theme.space.base * 8}px ${props.theme.space.base * 10}px` : `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px ${props.theme.space.base * 8}px`,
|
|
133
|
+
})}`, props => props.$isLarge ? `${props.theme.space.base * 8}px ${props.theme.space.base * 10}px` : `${props.theme.space.base * 5}px ${props.theme.space.base * 10}px ${props.theme.space.base * 8}px`, reactTheming.componentStyles);
|
|
134
134
|
|
|
135
135
|
const COMPONENT_ID$f = 'modals.footer_item';
|
|
136
136
|
const StyledFooterItem = styled__default.default.span.attrs({
|
|
137
137
|
'data-garden-id': COMPONENT_ID$f,
|
|
138
|
-
'data-garden-version': '9.
|
|
138
|
+
'data-garden-version': '9.5.0'
|
|
139
139
|
}).withConfig({
|
|
140
140
|
displayName: "StyledFooterItem",
|
|
141
141
|
componentId: "sc-1mb76hl-0"
|
|
142
|
-
})(["display:flex;margin-", ":", "px;min-width:0;&:first-child{margin-", ":0;}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 5, props => props.theme.rtl ? 'right' : 'left',
|
|
142
|
+
})(["display:flex;margin-", ":", "px;min-width:0;&:first-child{margin-", ":0;}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 5, props => props.theme.rtl ? 'right' : 'left', reactTheming.componentStyles);
|
|
143
143
|
|
|
144
144
|
const COMPONENT_ID$e = 'modals.header';
|
|
145
145
|
const colorStyles$2 = _ref => {
|
|
@@ -159,11 +159,11 @@ const colorStyles$2 = _ref => {
|
|
|
159
159
|
};
|
|
160
160
|
const StyledHeader = styled__default.default.div.attrs({
|
|
161
161
|
'data-garden-id': COMPONENT_ID$e,
|
|
162
|
-
'data-garden-version': '9.
|
|
162
|
+
'data-garden-version': '9.5.0'
|
|
163
163
|
}).withConfig({
|
|
164
164
|
displayName: "StyledHeader",
|
|
165
165
|
componentId: "sc-1787r9v-0"
|
|
166
|
-
})(["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$2,
|
|
166
|
+
})(["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$2, reactTheming.componentStyles);
|
|
167
167
|
|
|
168
168
|
var _g, _circle;
|
|
169
169
|
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); }
|
|
@@ -232,11 +232,11 @@ const sizeStyles$2 = props => {
|
|
|
232
232
|
};
|
|
233
233
|
const StyledModal = styled__default.default.div.attrs({
|
|
234
234
|
'data-garden-id': COMPONENT_ID$d,
|
|
235
|
-
'data-garden-version': '9.
|
|
235
|
+
'data-garden-version': '9.5.0'
|
|
236
236
|
}).withConfig({
|
|
237
237
|
displayName: "StyledModal",
|
|
238
238
|
componentId: "sc-1pe1axu-0"
|
|
239
|
-
})(["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$2, colorStyles$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%)',
|
|
239
|
+
})(["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$2, colorStyles$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%)', reactTheming.componentStyles);
|
|
240
240
|
StyledModal.propTypes = {
|
|
241
241
|
$isLarge: PropTypes__default.default.bool,
|
|
242
242
|
$isAnimated: PropTypes__default.default.bool
|
|
@@ -245,11 +245,11 @@ StyledModal.propTypes = {
|
|
|
245
245
|
const COMPONENT_ID$c = 'modals.tooltip_dialog.backdrop';
|
|
246
246
|
const StyledTooltipDialogBackdrop = styled__default.default.div.attrs({
|
|
247
247
|
'data-garden-id': COMPONENT_ID$c,
|
|
248
|
-
'data-garden-version': '9.
|
|
248
|
+
'data-garden-version': '9.5.0'
|
|
249
249
|
}).withConfig({
|
|
250
250
|
displayName: "StyledTooltipDialogBackdrop",
|
|
251
251
|
componentId: "sc-zrk625-0"
|
|
252
|
-
})(["position:fixed;inset:0;z-index:400;overflow:hidden;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-tooltip-modal-transition-exit-active{pointer-events:none;}&.garden-tooltip-modal-transition-exit-active div{transition:opacity 200ms;opacity:0;}", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl',
|
|
252
|
+
})(["position:fixed;inset:0;z-index:400;overflow:hidden;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-tooltip-modal-transition-exit-active{pointer-events:none;}&.garden-tooltip-modal-transition-exit-active div{transition:opacity 200ms;opacity:0;}", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', reactTheming.componentStyles);
|
|
253
253
|
|
|
254
254
|
const StyledTooltipWrapper = styled__default.default.div.attrs(props => ({
|
|
255
255
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
@@ -266,11 +266,11 @@ const StyledTooltipWrapper = styled__default.default.div.attrs(props => ({
|
|
|
266
266
|
const COMPONENT_ID$b = 'modals.tooltip_dialog.close';
|
|
267
267
|
const StyledTooltipDialogClose = styled__default.default(StyledClose).attrs({
|
|
268
268
|
'data-garden-id': COMPONENT_ID$b,
|
|
269
|
-
'data-garden-version': '9.
|
|
269
|
+
'data-garden-version': '9.5.0'
|
|
270
270
|
}).withConfig({
|
|
271
271
|
displayName: "StyledTooltipDialogClose",
|
|
272
272
|
componentId: "sc-18xlgfi-0"
|
|
273
|
-
})(["top:", "px;", ":", ";", ";"], props => props.theme.space.base * 3.5, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * 3}px`,
|
|
273
|
+
})(["top:", "px;", ":", ";", ";"], props => props.theme.space.base * 3.5, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * 3}px`, reactTheming.componentStyles);
|
|
274
274
|
|
|
275
275
|
const COMPONENT_ID$a = 'modals.tooltip_dialog';
|
|
276
276
|
const sizeStyles$1 = props => `
|
|
@@ -283,7 +283,7 @@ const sizeStyles$1 = props => `
|
|
|
283
283
|
`;
|
|
284
284
|
const StyledTooltipDialog = styled__default.default.div.attrs(props => ({
|
|
285
285
|
'data-garden-id': COMPONENT_ID$a,
|
|
286
|
-
'data-garden-version': '9.
|
|
286
|
+
'data-garden-version': '9.5.0',
|
|
287
287
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
288
288
|
})).withConfig({
|
|
289
289
|
displayName: "StyledTooltipDialog",
|
|
@@ -298,7 +298,7 @@ const StyledTooltipDialog = styled__default.default.div.attrs(props => ({
|
|
|
298
298
|
return props.$hasArrow && props.$transitionState === 'entered' && computedArrowStyles;
|
|
299
299
|
}
|
|
300
300
|
return props.$hasArrow && computedArrowStyles;
|
|
301
|
-
}, sizeStyles$1,
|
|
301
|
+
}, sizeStyles$1, reactTheming.componentStyles);
|
|
302
302
|
|
|
303
303
|
const COMPONENT_ID$9 = 'modals.tooltip_dialog.title';
|
|
304
304
|
const sizeStyles = props => `
|
|
@@ -308,7 +308,7 @@ const sizeStyles = props => `
|
|
|
308
308
|
`;
|
|
309
309
|
const StyledTooltipDialogTitle = styled__default.default.div.attrs({
|
|
310
310
|
'data-garden-id': COMPONENT_ID$9,
|
|
311
|
-
'data-garden-version': '9.
|
|
311
|
+
'data-garden-version': '9.5.0'
|
|
312
312
|
}).withConfig({
|
|
313
313
|
displayName: "StyledTooltipDialogTitle",
|
|
314
314
|
componentId: "sc-1rceixg-0"
|
|
@@ -320,12 +320,12 @@ const StyledTooltipDialogTitle = styled__default.default.div.attrs({
|
|
|
320
320
|
variable: 'foreground.default',
|
|
321
321
|
theme
|
|
322
322
|
});
|
|
323
|
-
}, props => props.theme.fontWeights.semibold, props => sizeStyles(props),
|
|
323
|
+
}, props => props.theme.fontWeights.semibold, props => sizeStyles(props), reactTheming.componentStyles);
|
|
324
324
|
|
|
325
325
|
const COMPONENT_ID$8 = 'modals.tooltip_dialog.body';
|
|
326
326
|
const StyledTooltipDialogBody = styled__default.default.div.attrs({
|
|
327
327
|
'data-garden-id': COMPONENT_ID$8,
|
|
328
|
-
'data-garden-version': '9.
|
|
328
|
+
'data-garden-version': '9.5.0'
|
|
329
329
|
}).withConfig({
|
|
330
330
|
displayName: "StyledTooltipDialogBody",
|
|
331
331
|
componentId: "sc-132lcoq-0"
|
|
@@ -337,25 +337,25 @@ const StyledTooltipDialogBody = styled__default.default.div.attrs({
|
|
|
337
337
|
variable: 'foreground.default',
|
|
338
338
|
theme
|
|
339
339
|
});
|
|
340
|
-
}, props => props.theme.fontSizes.md,
|
|
340
|
+
}, props => props.theme.fontSizes.md, reactTheming.componentStyles);
|
|
341
341
|
|
|
342
342
|
const COMPONENT_ID$7 = 'modals.tooltip_dialog.footer';
|
|
343
343
|
const StyledTooltipDialogFooter = styled__default.default.div.attrs({
|
|
344
344
|
'data-garden-id': COMPONENT_ID$7,
|
|
345
|
-
'data-garden-version': '9.
|
|
345
|
+
'data-garden-version': '9.5.0'
|
|
346
346
|
}).withConfig({
|
|
347
347
|
displayName: "StyledTooltipDialogFooter",
|
|
348
348
|
componentId: "sc-kjomsm-0"
|
|
349
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;padding-top:", "px;", ";"], p => p.theme.space.base * 5,
|
|
349
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;padding-top:", "px;", ";"], p => p.theme.space.base * 5, reactTheming.componentStyles);
|
|
350
350
|
|
|
351
351
|
const COMPONENT_ID$6 = 'modals.tooltip_dialog.footer_item';
|
|
352
352
|
const StyledTooltipDialogFooterItem = styled__default.default(StyledFooterItem).attrs({
|
|
353
353
|
'data-garden-id': COMPONENT_ID$6,
|
|
354
|
-
'data-garden-version': '9.
|
|
354
|
+
'data-garden-version': '9.5.0'
|
|
355
355
|
}).withConfig({
|
|
356
356
|
displayName: "StyledTooltipDialogFooterItem",
|
|
357
357
|
componentId: "sc-u2rmo8-0"
|
|
358
|
-
})(["", ";"],
|
|
358
|
+
})(["", ";"], reactTheming.componentStyles);
|
|
359
359
|
|
|
360
360
|
const COMPONENT_ID$5 = 'modals.drawer_modal';
|
|
361
361
|
const DRAWER_WIDTH = 380;
|
|
@@ -382,11 +382,11 @@ const colorStyles = _ref => {
|
|
|
382
382
|
};
|
|
383
383
|
const StyledDrawer = styled__default.default.div.attrs({
|
|
384
384
|
'data-garden-id': COMPONENT_ID$5,
|
|
385
|
-
'data-garden-version': '9.
|
|
385
|
+
'data-garden-version': '9.5.0'
|
|
386
386
|
}).withConfig({
|
|
387
387
|
displayName: "StyledDrawer",
|
|
388
388
|
componentId: "sc-zp66t3-0"
|
|
389
|
-
})(["display:flex;position:fixed;top:0;", ":0;flex-direction:column;z-index:500;", ":", ";width:", "px;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-drawer-transition-enter{transform:translateX(", "px);}&.garden-drawer-transition-enter-active{transform:translateX(0);transition:transform 0.25s ease-in-out;}&.garden-drawer-transition-exit-active{transform:translateX(", "px);transition:transform 0.25s ease-in-out;}&:focus{outline:none;}", " ", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.rtl ? 'border-right' : 'border-left', props => props.theme.borders.sm, DRAWER_WIDTH, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, colorStyles,
|
|
389
|
+
})(["display:flex;position:fixed;top:0;", ":0;flex-direction:column;z-index:500;", ":", ";width:", "px;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;font-family:", ";direction:", ";&.garden-drawer-transition-enter{transform:translateX(", "px);}&.garden-drawer-transition-enter-active{transform:translateX(0);transition:transform 0.25s ease-in-out;}&.garden-drawer-transition-exit-active{transform:translateX(", "px);transition:transform 0.25s ease-in-out;}&:focus{outline:none;}", " ", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.rtl ? 'border-right' : 'border-left', props => props.theme.borders.sm, DRAWER_WIDTH, props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, props => props.theme.rtl ? -DRAWER_WIDTH : DRAWER_WIDTH, colorStyles, reactTheming.componentStyles);
|
|
390
390
|
|
|
391
391
|
const COMPONENT_ID$4 = 'modals.drawer_modal.close';
|
|
392
392
|
const BASE_MULTIPLIERS = {
|
|
@@ -396,34 +396,34 @@ const BASE_MULTIPLIERS = {
|
|
|
396
396
|
};
|
|
397
397
|
const StyledDrawerClose = styled__default.default(StyledClose).attrs({
|
|
398
398
|
'data-garden-id': COMPONENT_ID$4,
|
|
399
|
-
'data-garden-version': '9.
|
|
399
|
+
'data-garden-version': '9.5.0'
|
|
400
400
|
}).withConfig({
|
|
401
401
|
displayName: "StyledDrawerClose",
|
|
402
402
|
componentId: "sc-1a0xt3x-0"
|
|
403
|
-
})(["", ":", ";", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`,
|
|
403
|
+
})(["", ":", ";", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.space.base * BASE_MULTIPLIERS.side}px`, reactTheming.componentStyles);
|
|
404
404
|
|
|
405
405
|
const COMPONENT_ID$3 = 'modals.drawer_modal.header';
|
|
406
406
|
const StyledDrawerHeader = styled__default.default(StyledHeader).attrs({
|
|
407
407
|
'data-garden-id': COMPONENT_ID$3,
|
|
408
|
-
'data-garden-version': '9.
|
|
408
|
+
'data-garden-version': '9.5.0'
|
|
409
409
|
}).withConfig({
|
|
410
410
|
displayName: "StyledDrawerHeader",
|
|
411
411
|
componentId: "sc-y4mgkj-0"
|
|
412
|
-
})(["padding:", "px;", " ", ";"], props => props.theme.space.base * 5, props => props.$isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`,
|
|
412
|
+
})(["padding:", "px;", " ", ";"], props => props.theme.space.base * 5, props => props.$isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, reactTheming.componentStyles);
|
|
413
413
|
|
|
414
414
|
const COMPONENT_ID$2 = 'modals.drawer_modal.body';
|
|
415
415
|
const StyledDrawerBody = styled__default.default(StyledBody).attrs({
|
|
416
416
|
'data-garden-id': COMPONENT_ID$2,
|
|
417
|
-
'data-garden-version': '9.
|
|
417
|
+
'data-garden-version': '9.5.0'
|
|
418
418
|
}).withConfig({
|
|
419
419
|
displayName: "StyledDrawerBody",
|
|
420
420
|
componentId: "sc-13qufyn-0"
|
|
421
|
-
})(["padding:", "px;color-scheme:only ", ";", ";"], props => props.theme.space.base * 5, p => p.theme.colors.base,
|
|
421
|
+
})(["padding:", "px;color-scheme:only ", ";", ";"], props => props.theme.space.base * 5, p => p.theme.colors.base, reactTheming.componentStyles);
|
|
422
422
|
|
|
423
423
|
const COMPONENT_ID$1 = 'modals.drawer_modal.footer';
|
|
424
424
|
const StyledDrawerFooter = styled__default.default.div.attrs({
|
|
425
425
|
'data-garden-id': COMPONENT_ID$1,
|
|
426
|
-
'data-garden-version': '9.
|
|
426
|
+
'data-garden-version': '9.5.0'
|
|
427
427
|
}).withConfig({
|
|
428
428
|
displayName: "StyledDrawerFooter",
|
|
429
429
|
componentId: "sc-kc7e6p-0"
|
|
@@ -435,16 +435,16 @@ const StyledDrawerFooter = styled__default.default.div.attrs({
|
|
|
435
435
|
theme,
|
|
436
436
|
variable: 'border.subtle'
|
|
437
437
|
})}`;
|
|
438
|
-
}, props => props.theme.space.base * 5,
|
|
438
|
+
}, props => props.theme.space.base * 5, reactTheming.componentStyles);
|
|
439
439
|
|
|
440
440
|
const COMPONENT_ID = 'modals.drawer_modal.footer_item';
|
|
441
441
|
const StyledDrawerFooterItem = styled__default.default(StyledFooterItem).attrs({
|
|
442
442
|
'data-garden-id': COMPONENT_ID,
|
|
443
|
-
'data-garden-version': '9.
|
|
443
|
+
'data-garden-version': '9.5.0'
|
|
444
444
|
}).withConfig({
|
|
445
445
|
displayName: "StyledDrawerFooterItem",
|
|
446
446
|
componentId: "sc-m2yul4-0"
|
|
447
|
-
})(["", ";"],
|
|
447
|
+
})(["", ";"], reactTheming.componentStyles);
|
|
448
448
|
|
|
449
449
|
const ModalsContext = React.createContext(undefined);
|
|
450
450
|
const useModalContext = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-modals",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
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,7 +24,7 @@
|
|
|
24
24
|
"@floating-ui/react-dom": "^2.0.0",
|
|
25
25
|
"@zendeskgarden/container-modal": "^1.0.15",
|
|
26
26
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
27
|
-
"@zendeskgarden/react-buttons": "^9.
|
|
27
|
+
"@zendeskgarden/react-buttons": "^9.5.0",
|
|
28
28
|
"dom-helpers": "^5.1.0",
|
|
29
29
|
"prop-types": "^15.5.7",
|
|
30
30
|
"react-merge-refs": "^2.0.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"styled-components": "^5.3.1 || ^6.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@types/react-transition-group": "4.4.
|
|
41
|
-
"@zendeskgarden/react-theming": "^9.
|
|
42
|
-
"@zendeskgarden/svg-icons": "7.
|
|
40
|
+
"@types/react-transition-group": "4.4.12",
|
|
41
|
+
"@zendeskgarden/react-theming": "^9.5.0",
|
|
42
|
+
"@zendeskgarden/svg-icons": "7.5.0"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"components",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"zendeskgarden:src": "src/index.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "43546784a9aa985332ddcc6dd09209a11e2c03ff"
|
|
55
55
|
}
|