@zendeskgarden/react-chrome 9.12.3 → 9.12.5
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/elements/Chrome.js +5 -6
- package/dist/esm/elements/SkipNav.js +10 -13
- package/dist/esm/elements/body/Body.js +3 -3
- package/dist/esm/elements/footer/Footer.js +3 -3
- package/dist/esm/elements/footer/FooterItem.js +3 -3
- package/dist/esm/elements/header/Header.js +13 -16
- package/dist/esm/elements/header/HeaderItem.js +8 -9
- package/dist/esm/elements/header/HeaderItemIcon.js +4 -7
- package/dist/esm/elements/header/HeaderItemText.js +7 -10
- package/dist/esm/elements/header/HeaderItemWrapper.js +11 -14
- package/dist/esm/elements/nav/Nav.js +4 -5
- package/dist/esm/elements/nav/NavItem.js +7 -8
- package/dist/esm/elements/nav/NavItemIcon.js +4 -7
- package/dist/esm/elements/nav/NavItemText.js +4 -5
- package/dist/esm/elements/sheet/Sheet.js +11 -12
- package/dist/esm/elements/sheet/components/Description.js +4 -5
- package/dist/esm/elements/sheet/components/Footer.js +4 -5
- package/dist/esm/elements/sheet/components/Title.js +4 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/link-stroke.svg.js +4 -4
- package/dist/esm/styled/StyledChrome.js +3 -3
- package/dist/esm/styled/StyledSkipNav.js +11 -13
- package/dist/esm/styled/StyledSkipNavIcon.js +7 -8
- package/dist/esm/styled/body/StyledBody.js +3 -3
- package/dist/esm/styled/body/StyledContent.js +8 -9
- package/dist/esm/styled/body/StyledMain.js +3 -3
- package/dist/esm/styled/footer/StyledFooter.js +10 -12
- package/dist/esm/styled/footer/StyledFooterItem.js +3 -3
- package/dist/esm/styled/header/StyledBaseHeaderItem.js +9 -10
- package/dist/esm/styled/header/StyledHeader.js +11 -13
- package/dist/esm/styled/header/StyledHeaderItem.js +12 -14
- package/dist/esm/styled/header/StyledHeaderItemIcon.js +7 -8
- package/dist/esm/styled/header/StyledHeaderItemText.js +3 -3
- package/dist/esm/styled/header/StyledHeaderItemWrapper.js +3 -3
- package/dist/esm/styled/header/StyledLogoHeaderItem.js +12 -14
- package/dist/esm/styled/nav/StyledBaseNavItem.js +7 -8
- package/dist/esm/styled/nav/StyledBrandmarkNavItem.js +3 -3
- package/dist/esm/styled/nav/StyledLogoNavItem.js +9 -10
- package/dist/esm/styled/nav/StyledNav.js +12 -14
- package/dist/esm/styled/nav/StyledNavButton.js +12 -14
- package/dist/esm/styled/nav/StyledNavItemIcon.js +7 -8
- package/dist/esm/styled/nav/StyledNavItemText.js +9 -10
- package/dist/esm/styled/nav/StyledNavList.js +3 -3
- package/dist/esm/styled/nav/StyledNavListItem.js +3 -3
- package/dist/esm/styled/sheet/StyledSheet.js +15 -17
- package/dist/esm/styled/sheet/StyledSheetBody.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetClose.js +6 -7
- package/dist/esm/styled/sheet/StyledSheetDescription.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetFooter.js +11 -13
- package/dist/esm/styled/sheet/StyledSheetFooterItem.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetHeader.js +8 -10
- package/dist/esm/styled/sheet/StyledSheetTitle.js +3 -3
- package/dist/esm/styled/sheet/StyledSheetWrapper.js +9 -10
- package/dist/esm/styled/utils.js +1 -4
- package/dist/esm/utils/useFocusableMount.js +6 -7
- package/dist/index.cjs.js +248 -309
- package/package.json +5 -5
|
@@ -44,12 +44,11 @@ import '../styled/sheet/StyledSheetFooter.js';
|
|
|
44
44
|
import '../styled/sheet/StyledSheetFooterItem.js';
|
|
45
45
|
import '../styled/sheet/StyledSheetHeader.js';
|
|
46
46
|
|
|
47
|
-
const Chrome = React__default.forwardRef((
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} = _ref;
|
|
47
|
+
const Chrome = React__default.forwardRef(({
|
|
48
|
+
hue,
|
|
49
|
+
isFluid,
|
|
50
|
+
...props
|
|
51
|
+
}, ref) => {
|
|
53
52
|
const theme = useContext(ThemeContext) || DEFAULT_THEME;
|
|
54
53
|
const isLightMemoized = useMemo(() => {
|
|
55
54
|
if (hue) {
|
|
@@ -40,19 +40,16 @@ import '../styled/sheet/StyledSheetFooter.js';
|
|
|
40
40
|
import '../styled/sheet/StyledSheetFooterItem.js';
|
|
41
41
|
import '../styled/sheet/StyledSheetHeader.js';
|
|
42
42
|
|
|
43
|
-
const SkipNav = React__default.forwardRef((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
ref: ref
|
|
54
|
-
}, props), React__default.createElement(StyledSkipNavIcon, null), children);
|
|
55
|
-
});
|
|
43
|
+
const SkipNav = React__default.forwardRef(({
|
|
44
|
+
targetId,
|
|
45
|
+
zIndex = 1,
|
|
46
|
+
children,
|
|
47
|
+
...props
|
|
48
|
+
}, ref) => React__default.createElement(StyledSkipNav, Object.assign({
|
|
49
|
+
href: `#${targetId}`,
|
|
50
|
+
$zIndex: zIndex,
|
|
51
|
+
ref: ref
|
|
52
|
+
}, props), React__default.createElement(StyledSkipNavIcon, null), children));
|
|
56
53
|
SkipNav.displayName = 'SkipNav';
|
|
57
54
|
SkipNav.propTypes = {
|
|
58
55
|
targetId: PropTypes.string.isRequired,
|
|
@@ -40,7 +40,7 @@ import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
|
40
40
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
import { BodyContext } from '../../utils/useBodyContext.js';
|
|
42
42
|
|
|
43
|
-
const Body = React__default.forwardRef((props, ref) => {
|
|
43
|
+
const Body$1 = React__default.forwardRef((props, ref) => {
|
|
44
44
|
const [hasFooter, setHasFooter] = useState(false);
|
|
45
45
|
const bodyContextValue = useMemo(() => ({
|
|
46
46
|
hasFooter,
|
|
@@ -52,6 +52,6 @@ const Body = React__default.forwardRef((props, ref) => {
|
|
|
52
52
|
ref: ref
|
|
53
53
|
}, props)));
|
|
54
54
|
});
|
|
55
|
-
Body.displayName = 'Body';
|
|
55
|
+
Body$1.displayName = 'Body';
|
|
56
56
|
|
|
57
|
-
export { Body };
|
|
57
|
+
export { Body$1 as Body };
|
|
@@ -61,7 +61,7 @@ const FooterComponent = React__default.forwardRef((props, ref) => {
|
|
|
61
61
|
}, props));
|
|
62
62
|
});
|
|
63
63
|
FooterComponent.displayName = 'Footer';
|
|
64
|
-
const Footer = FooterComponent;
|
|
65
|
-
Footer.Item = FooterItem;
|
|
64
|
+
const Footer$1 = FooterComponent;
|
|
65
|
+
Footer$1.Item = FooterItem;
|
|
66
66
|
|
|
67
|
-
export { Footer, FooterComponent };
|
|
67
|
+
export { Footer$1 as Footer, FooterComponent };
|
|
@@ -39,9 +39,9 @@ import '../../styled/sheet/StyledSheetFooter.js';
|
|
|
39
39
|
import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
40
40
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
|
|
42
|
-
const FooterItem = React__default.forwardRef((props, ref) => React__default.createElement(StyledFooterItem, Object.assign({
|
|
42
|
+
const FooterItem$1 = React__default.forwardRef((props, ref) => React__default.createElement(StyledFooterItem, Object.assign({
|
|
43
43
|
ref: ref
|
|
44
44
|
}, props)));
|
|
45
|
-
FooterItem.displayName = 'Footer.Item';
|
|
45
|
+
FooterItem$1.displayName = 'Footer.Item';
|
|
46
46
|
|
|
47
|
-
export { FooterItem };
|
|
47
|
+
export { FooterItem$1 as FooterItem };
|
|
@@ -44,24 +44,21 @@ import { HeaderItemIcon } from './HeaderItemIcon.js';
|
|
|
44
44
|
import { HeaderItemText } from './HeaderItemText.js';
|
|
45
45
|
import { HeaderItemWrapper } from './HeaderItemWrapper.js';
|
|
46
46
|
|
|
47
|
-
const HeaderComponent = React__default.forwardRef((
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
$isStandalone: isStandalone
|
|
55
|
-
}, other));
|
|
56
|
-
});
|
|
47
|
+
const HeaderComponent = React__default.forwardRef(({
|
|
48
|
+
isStandalone,
|
|
49
|
+
...other
|
|
50
|
+
}, ref) => React__default.createElement(StyledHeader, Object.assign({
|
|
51
|
+
ref: ref,
|
|
52
|
+
$isStandalone: isStandalone
|
|
53
|
+
}, other)));
|
|
57
54
|
HeaderComponent.displayName = 'Header';
|
|
58
55
|
HeaderComponent.propTypes = {
|
|
59
56
|
isStandalone: PropTypes.bool
|
|
60
57
|
};
|
|
61
|
-
const Header = HeaderComponent;
|
|
62
|
-
Header.Item = HeaderItem;
|
|
63
|
-
Header.ItemIcon = HeaderItemIcon;
|
|
64
|
-
Header.ItemText = HeaderItemText;
|
|
65
|
-
Header.ItemWrapper = HeaderItemWrapper;
|
|
58
|
+
const Header$1 = HeaderComponent;
|
|
59
|
+
Header$1.Item = HeaderItem;
|
|
60
|
+
Header$1.ItemIcon = HeaderItemIcon;
|
|
61
|
+
Header$1.ItemText = HeaderItemText;
|
|
62
|
+
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
66
63
|
|
|
67
|
-
export { Header, HeaderComponent };
|
|
64
|
+
export { Header$1 as Header, HeaderComponent };
|
|
@@ -41,15 +41,14 @@ import '../../styled/sheet/StyledSheetFooter.js';
|
|
|
41
41
|
import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
42
42
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
43
43
|
|
|
44
|
-
const HeaderItem = React__default.forwardRef((
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} = _ref;
|
|
44
|
+
const HeaderItem = React__default.forwardRef(({
|
|
45
|
+
hasLogo,
|
|
46
|
+
isRound,
|
|
47
|
+
maxX,
|
|
48
|
+
maxY,
|
|
49
|
+
product,
|
|
50
|
+
...other
|
|
51
|
+
}, ref) => {
|
|
53
52
|
if (hasLogo) {
|
|
54
53
|
return React__default.createElement(StyledLogoHeaderItem, Object.assign({
|
|
55
54
|
ref: ref,
|
|
@@ -39,13 +39,10 @@ import '../../styled/sheet/StyledSheetFooter.js';
|
|
|
39
39
|
import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
40
40
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
|
|
42
|
-
const HeaderItemIcon =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} = _ref;
|
|
47
|
-
return React__default.createElement(StyledHeaderItemIcon, props, children);
|
|
48
|
-
};
|
|
42
|
+
const HeaderItemIcon = ({
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}) => React__default.createElement(StyledHeaderItemIcon, props, children);
|
|
49
46
|
HeaderItemIcon.displayName = 'Header.ItemIcon';
|
|
50
47
|
|
|
51
48
|
export { HeaderItemIcon };
|
|
@@ -40,16 +40,13 @@ import '../../styled/sheet/StyledSheetFooter.js';
|
|
|
40
40
|
import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
41
41
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
42
42
|
|
|
43
|
-
const HeaderItemText = React__default.forwardRef((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
$isClipped: isClipped
|
|
51
|
-
}, other));
|
|
52
|
-
});
|
|
43
|
+
const HeaderItemText = React__default.forwardRef(({
|
|
44
|
+
isClipped,
|
|
45
|
+
...other
|
|
46
|
+
}, ref) => React__default.createElement(StyledHeaderItemText, Object.assign({
|
|
47
|
+
ref: ref,
|
|
48
|
+
$isClipped: isClipped
|
|
49
|
+
}, other)));
|
|
53
50
|
HeaderItemText.displayName = 'Header.ItemText';
|
|
54
51
|
HeaderItemText.propTypes = {
|
|
55
52
|
isClipped: PropTypes.bool
|
|
@@ -39,20 +39,17 @@ import '../../styled/sheet/StyledSheetFooter.js';
|
|
|
39
39
|
import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
40
40
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
|
|
42
|
-
const HeaderItemWrapper = React__default.forwardRef((
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
$maxY: maxY
|
|
54
|
-
}, other));
|
|
55
|
-
});
|
|
42
|
+
const HeaderItemWrapper = React__default.forwardRef(({
|
|
43
|
+
isRound,
|
|
44
|
+
maxX,
|
|
45
|
+
maxY,
|
|
46
|
+
...other
|
|
47
|
+
}, ref) => React__default.createElement(StyledHeaderItemWrapper, Object.assign({
|
|
48
|
+
ref: ref,
|
|
49
|
+
$isRound: isRound,
|
|
50
|
+
$maxX: maxX,
|
|
51
|
+
$maxY: maxY
|
|
52
|
+
}, other)));
|
|
56
53
|
HeaderItemWrapper.displayName = 'Header.ItemWrapper';
|
|
57
54
|
|
|
58
55
|
export { HeaderItemWrapper };
|
|
@@ -47,11 +47,10 @@ import { NavItemIcon } from './NavItemIcon.js';
|
|
|
47
47
|
import { NavItemText } from './NavItemText.js';
|
|
48
48
|
import { NavList } from './NavList.js';
|
|
49
49
|
|
|
50
|
-
const NavComponent = React__default.forwardRef((
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} = _ref;
|
|
50
|
+
const NavComponent = React__default.forwardRef(({
|
|
51
|
+
isExpanded,
|
|
52
|
+
...other
|
|
53
|
+
}, ref) => {
|
|
55
54
|
const {
|
|
56
55
|
hue,
|
|
57
56
|
isLight
|
|
@@ -44,14 +44,13 @@ import { useNavContext } from '../../utils/useNavContext.js';
|
|
|
44
44
|
import { useChromeContext } from '../../utils/useChromeContext.js';
|
|
45
45
|
import { useNavListContext } from '../../utils/useNavListContext.js';
|
|
46
46
|
|
|
47
|
-
const NavItem = React__default.forwardRef((
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} = _ref;
|
|
47
|
+
const NavItem = React__default.forwardRef(({
|
|
48
|
+
hasLogo,
|
|
49
|
+
hasBrandmark,
|
|
50
|
+
product,
|
|
51
|
+
isCurrent,
|
|
52
|
+
...other
|
|
53
|
+
}, ref) => {
|
|
55
54
|
const {
|
|
56
55
|
hue
|
|
57
56
|
} = useChromeContext();
|
|
@@ -39,13 +39,10 @@ import '../../styled/sheet/StyledSheetFooter.js';
|
|
|
39
39
|
import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
40
40
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
|
|
42
|
-
const NavItemIcon =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} = _ref;
|
|
47
|
-
return React__default.createElement(StyledNavItemIcon, props, children);
|
|
48
|
-
};
|
|
42
|
+
const NavItemIcon = ({
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}) => React__default.createElement(StyledNavItemIcon, props, children);
|
|
49
46
|
NavItemIcon.displayName = 'Nav.ItemIcon';
|
|
50
47
|
|
|
51
48
|
export { NavItemIcon };
|
|
@@ -41,11 +41,10 @@ import '../../styled/sheet/StyledSheetFooterItem.js';
|
|
|
41
41
|
import '../../styled/sheet/StyledSheetHeader.js';
|
|
42
42
|
import { useNavContext } from '../../utils/useNavContext.js';
|
|
43
43
|
|
|
44
|
-
const NavItemText = React__default.forwardRef((
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} = _ref;
|
|
44
|
+
const NavItemText = React__default.forwardRef(({
|
|
45
|
+
isWrapped,
|
|
46
|
+
...other
|
|
47
|
+
}, ref) => {
|
|
49
48
|
const {
|
|
50
49
|
isExpanded
|
|
51
50
|
} = useNavContext();
|
|
@@ -52,18 +52,17 @@ import { Footer } from './components/Footer.js';
|
|
|
52
52
|
import { FooterItem } from './components/FooterItem.js';
|
|
53
53
|
import { Close } from './components/Close.js';
|
|
54
54
|
|
|
55
|
-
const SheetComponent = React__default.forwardRef((
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
} = _ref;
|
|
55
|
+
const SheetComponent = React__default.forwardRef(({
|
|
56
|
+
id,
|
|
57
|
+
isOpen,
|
|
58
|
+
isAnimated = true,
|
|
59
|
+
focusOnMount,
|
|
60
|
+
restoreFocus,
|
|
61
|
+
placement = 'end',
|
|
62
|
+
size = '380px',
|
|
63
|
+
children,
|
|
64
|
+
...props
|
|
65
|
+
}, ref) => {
|
|
67
66
|
const sheetRef = useRef(null);
|
|
68
67
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
|
|
69
68
|
const idPrefix = useId(id);
|
|
@@ -40,11 +40,10 @@ import '../../../styled/sheet/StyledSheetFooterItem.js';
|
|
|
40
40
|
import '../../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
import { useSheetContext } from '../../../utils/useSheetContext.js';
|
|
42
42
|
|
|
43
|
-
const SheetDescription = forwardRef((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = _ref;
|
|
43
|
+
const SheetDescription = forwardRef(({
|
|
44
|
+
id,
|
|
45
|
+
...props
|
|
46
|
+
}, ref) => {
|
|
48
47
|
const {
|
|
49
48
|
descriptionId
|
|
50
49
|
} = useSheetContext();
|
|
@@ -39,11 +39,10 @@ import { StyledSheetFooter } from '../../../styled/sheet/StyledSheetFooter.js';
|
|
|
39
39
|
import '../../../styled/sheet/StyledSheetFooterItem.js';
|
|
40
40
|
import '../../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
|
|
42
|
-
const SheetFooter = forwardRef((
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} = _ref;
|
|
42
|
+
const SheetFooter = forwardRef(({
|
|
43
|
+
isCompact,
|
|
44
|
+
...other
|
|
45
|
+
}, ref) => {
|
|
47
46
|
return React__default.createElement(StyledSheetFooter, Object.assign({
|
|
48
47
|
ref: ref,
|
|
49
48
|
$isCompact: isCompact
|
|
@@ -40,11 +40,10 @@ import '../../../styled/sheet/StyledSheetFooterItem.js';
|
|
|
40
40
|
import '../../../styled/sheet/StyledSheetHeader.js';
|
|
41
41
|
import { useSheetContext } from '../../../utils/useSheetContext.js';
|
|
42
42
|
|
|
43
|
-
const SheetTitle = forwardRef((
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = _ref;
|
|
43
|
+
const SheetTitle = forwardRef(({
|
|
44
|
+
id,
|
|
45
|
+
...props
|
|
46
|
+
}, ref) => {
|
|
48
47
|
const {
|
|
49
48
|
titleId
|
|
50
49
|
} = useSheetContext();
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
|
-
var _path;
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
+
var _path$1;
|
|
10
|
+
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); }
|
|
11
11
|
var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
16
16
|
focusable: "false",
|
|
17
17
|
viewBox: "0 0 16 16",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
20
20
|
fill: "currentColor",
|
|
21
21
|
d: "M4.441 7.38l.095.083.939.939-.708.707-.939-.939-2 2-.132.142a2.829 2.829 0 003.99 3.99l.142-.132 2-2-.939-.939.707-.708.94.94a1 1 0 01.083 1.32l-.083.094-2 2A3.828 3.828 0 01.972 9.621l.15-.158 2-2A1 1 0 014.34 7.31l.101.07zm7.413-3.234a.5.5 0 01.057.638l-.057.07-7 7a.5.5 0 01-.765-.638l.057-.07 7-7a.5.5 0 01.708 0zm3.023-3.025a3.829 3.829 0 01.15 5.257l-.15.158-2 2a1 1 0 01-1.32.083l-.094-.083-.94-.94.708-.707.939.94 2-2 .132-.142a2.829 2.829 0 00-3.99-3.99l-.142.131-2 2 .939.939-.707.708-.94-.94a1 1 0 01-.082-1.32l.083-.094 2-2a3.828 3.828 0 015.414 0z"
|
|
22
22
|
})));
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'chrome.chrome';
|
|
10
|
+
const COMPONENT_ID$w = 'chrome.chrome';
|
|
11
11
|
const StyledChrome = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
13
|
+
'data-garden-version': '9.12.5'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledChrome",
|
|
16
16
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -6,18 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { keyframes, css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { SELECTOR_FOCUS_VISIBLE, componentStyles, getColor, focusStyles
|
|
9
|
+
import { SELECTOR_FOCUS_VISIBLE, componentStyles, getLineHeight, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { getHeaderHeight } from './utils.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'chrome.skipnav';
|
|
12
|
+
const COMPONENT_ID$v = 'chrome.skipnav';
|
|
13
13
|
const animationStyles = () => {
|
|
14
14
|
const animationName = keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
15
15
|
return css(["transition:opacity 0.2s ease-out,clip 0s linear 0.2s;opacity:0;clip:rect(0,0,0,0);&:focus{transition:opacity 0.2s ease-in-out;animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ", ";opacity:1;clip:rect(0,150vw,100vh,-50vw);}"], animationName);
|
|
16
16
|
};
|
|
17
|
-
const colorStyles =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} = _ref;
|
|
17
|
+
const colorStyles$a = ({
|
|
18
|
+
theme
|
|
19
|
+
}) => {
|
|
21
20
|
const backgroundColor = getColor({
|
|
22
21
|
theme,
|
|
23
22
|
variable: 'background.raised'
|
|
@@ -41,10 +40,9 @@ const colorStyles = _ref => {
|
|
|
41
40
|
boxShadow
|
|
42
41
|
}));
|
|
43
42
|
};
|
|
44
|
-
const sizeStyles =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = _ref2;
|
|
43
|
+
const sizeStyles$g = ({
|
|
44
|
+
theme
|
|
45
|
+
}) => {
|
|
48
46
|
const top = math(`${getHeaderHeight(theme)} / 2`);
|
|
49
47
|
const border = theme.borders.sm;
|
|
50
48
|
const padding = `${theme.space.base * 5}px`;
|
|
@@ -54,11 +52,11 @@ const sizeStyles = _ref2 => {
|
|
|
54
52
|
return css(["top:", ";border:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, border, padding, theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
55
53
|
};
|
|
56
54
|
const StyledSkipNav = styled.a.attrs({
|
|
57
|
-
'data-garden-id': COMPONENT_ID,
|
|
58
|
-
'data-garden-version': '9.12.
|
|
55
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
56
|
+
'data-garden-version': '9.12.5'
|
|
59
57
|
}).withConfig({
|
|
60
58
|
displayName: "StyledSkipNav",
|
|
61
59
|
componentId: "sc-1tsro34-0"
|
|
62
|
-
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.$zIndex, props => props.theme.borderRadii.md, sizeStyles, SELECTOR_FOCUS_VISIBLE, colorStyles, componentStyles);
|
|
60
|
+
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border-radius:", ";text-decoration:underline;white-space:nowrap;", ";", "{text-decoration:none;}&:hover{text-decoration:underline;}", ";", ";"], animationStyles(), props => props.theme.rtl && 'rtl', props => props.$zIndex, props => props.theme.borderRadii.md, sizeStyles$g, SELECTOR_FOCUS_VISIBLE, colorStyles$a, componentStyles);
|
|
63
61
|
|
|
64
62
|
export { StyledSkipNav };
|
|
@@ -8,24 +8,23 @@ import styled, { css } from 'styled-components';
|
|
|
8
8
|
import SvgLinkStroke from '../node_modules/@zendeskgarden/svg-icons/src/16/link-stroke.svg.js';
|
|
9
9
|
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'chrome.skipnav_icon';
|
|
12
|
-
const sizeStyles =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
11
|
+
const COMPONENT_ID$u = 'chrome.skipnav_icon';
|
|
12
|
+
const sizeStyles$f = ({
|
|
13
|
+
theme
|
|
14
|
+
}) => {
|
|
16
15
|
const margin = `${theme.space.base * 2}px`;
|
|
17
16
|
const size = theme.iconSizes.md;
|
|
18
17
|
return css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
19
18
|
};
|
|
20
19
|
const StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
21
|
-
'data-garden-id': COMPONENT_ID,
|
|
22
|
-
'data-garden-version': '9.12.
|
|
20
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
21
|
+
'data-garden-version': '9.12.5'
|
|
23
22
|
}).withConfig({
|
|
24
23
|
displayName: "StyledSkipNavIcon",
|
|
25
24
|
componentId: "sc-1ika5z4-0"
|
|
26
25
|
})(["transform:", ";color:", ";", ";", ";"], p => p.theme.rtl && 'scaleX(-1)', p => getColor({
|
|
27
26
|
theme: p.theme,
|
|
28
27
|
variable: 'foreground.subtle'
|
|
29
|
-
}), sizeStyles, componentStyles);
|
|
28
|
+
}), sizeStyles$f, componentStyles);
|
|
30
29
|
|
|
31
30
|
export { StyledSkipNavIcon };
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'chrome.body';
|
|
10
|
+
const COMPONENT_ID$t = 'chrome.body';
|
|
11
11
|
const StyledBody = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
13
|
+
'data-garden-version': '9.12.5'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledBody",
|
|
16
16
|
componentId: "sc-c7h9kv-0"
|
|
@@ -9,26 +9,25 @@ import { math } from 'polished';
|
|
|
9
9
|
import { getColor, componentStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { getHeaderHeight, getFooterHeight } from '../utils.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'chrome.content';
|
|
13
|
-
const sizeStyles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
12
|
+
const COMPONENT_ID$s = 'chrome.content';
|
|
13
|
+
const sizeStyles$e = ({
|
|
14
|
+
theme,
|
|
15
|
+
$hasFooter
|
|
16
|
+
}) => {
|
|
18
17
|
const fontSize = theme.fontSizes.md;
|
|
19
18
|
const height = $hasFooter ? `calc(100% - ${math(`${getHeaderHeight(theme)} + ${getFooterHeight(theme)}`)})` : `calc(100% - ${getHeaderHeight(theme)})`;
|
|
20
19
|
const lineHeight = getLineHeight(theme.lineHeights.md, theme.fontSizes.md);
|
|
21
20
|
return css(["height:", ";line-height:", ";font-size:", ";"], height, lineHeight, fontSize);
|
|
22
21
|
};
|
|
23
22
|
const StyledContent = styled.div.attrs({
|
|
24
|
-
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.12.
|
|
23
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
24
|
+
'data-garden-version': '9.12.5'
|
|
26
25
|
}).withConfig({
|
|
27
26
|
displayName: "StyledContent",
|
|
28
27
|
componentId: "sc-qcuzxn-0"
|
|
29
28
|
})(["display:flex;color-scheme:only ", ";color:", ";", ";&:focus{outline:none;}", ";"], p => p.theme.colors.base, props => getColor({
|
|
30
29
|
theme: props.theme,
|
|
31
30
|
variable: 'foreground.default'
|
|
32
|
-
}), sizeStyles, componentStyles);
|
|
31
|
+
}), sizeStyles$e, componentStyles);
|
|
33
32
|
|
|
34
33
|
export { StyledContent };
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'chrome.main';
|
|
10
|
+
const COMPONENT_ID$r = 'chrome.main';
|
|
11
11
|
const StyledMain = styled.main.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
13
|
+
'data-garden-version': '9.12.5'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMain",
|
|
16
16
|
componentId: "sc-t61cre-0"
|
|
@@ -8,11 +8,10 @@ import styled, { css } from 'styled-components';
|
|
|
8
8
|
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { getFooterHeight } from '../utils.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'chrome.footer';
|
|
12
|
-
const colorStyles =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
11
|
+
const COMPONENT_ID$q = 'chrome.footer';
|
|
12
|
+
const colorStyles$9 = ({
|
|
13
|
+
theme
|
|
14
|
+
}) => {
|
|
16
15
|
const backgroundColor = getColor({
|
|
17
16
|
theme,
|
|
18
17
|
variable: 'background.default'
|
|
@@ -23,21 +22,20 @@ const colorStyles = _ref => {
|
|
|
23
22
|
});
|
|
24
23
|
return css(["border-top-color:", ";background-color:", ";"], borderColor, backgroundColor);
|
|
25
24
|
};
|
|
26
|
-
const sizeStyles =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} = _ref2;
|
|
25
|
+
const sizeStyles$d = ({
|
|
26
|
+
theme
|
|
27
|
+
}) => {
|
|
30
28
|
const border = theme.borders.sm;
|
|
31
29
|
const padding = `0 ${theme.space.base * 9}px`;
|
|
32
30
|
const height = getFooterHeight(theme);
|
|
33
31
|
return css(["box-sizing:border-box;border-top:", ";padding:", ";height:", ";"], border, padding, height);
|
|
34
32
|
};
|
|
35
33
|
const StyledFooter = styled.footer.attrs({
|
|
36
|
-
'data-garden-id': COMPONENT_ID,
|
|
37
|
-
'data-garden-version': '9.12.
|
|
34
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
35
|
+
'data-garden-version': '9.12.5'
|
|
38
36
|
}).withConfig({
|
|
39
37
|
displayName: "StyledFooter",
|
|
40
38
|
componentId: "sc-v7lib2-0"
|
|
41
|
-
})(["display:flex;align-items:center;justify-content:flex-end;", ";", ";", ";"], sizeStyles, colorStyles, componentStyles);
|
|
39
|
+
})(["display:flex;align-items:center;justify-content:flex-end;", ";", ";", ";"], sizeStyles$d, colorStyles$9, componentStyles);
|
|
42
40
|
|
|
43
41
|
export { StyledFooter };
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'chrome.footer_item';
|
|
10
|
+
const COMPONENT_ID$p = 'chrome.footer_item';
|
|
11
11
|
const StyledFooterItem = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
13
|
+
'data-garden-version': '9.12.5'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledFooterItem",
|
|
16
16
|
componentId: "sc-1cktm85-0"
|