@zendeskgarden/react-chrome 9.0.0-next.0 → 9.0.0-next.10
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/README.md +26 -27
- package/dist/esm/elements/Chrome.js +94 -0
- package/dist/esm/elements/SkipNav.js +65 -0
- package/dist/esm/elements/body/Body.js +57 -0
- package/dist/esm/elements/body/Content.js +54 -0
- package/dist/esm/elements/body/Main.js +47 -0
- package/dist/esm/elements/footer/Footer.js +67 -0
- package/dist/esm/elements/footer/FooterItem.js +47 -0
- package/dist/esm/elements/header/Header.js +60 -0
- package/dist/esm/elements/header/HeaderItem.js +69 -0
- package/dist/esm/elements/header/HeaderItemIcon.js +66 -0
- package/dist/esm/elements/header/HeaderItemText.js +51 -0
- package/dist/esm/elements/header/HeaderItemWrapper.js +47 -0
- package/dist/esm/elements/nav/Nav.js +78 -0
- package/dist/esm/elements/nav/NavItem.js +101 -0
- package/dist/esm/elements/nav/NavItemIcon.js +66 -0
- package/dist/esm/elements/nav/NavItemText.js +58 -0
- package/dist/esm/elements/nav/NavList.js +55 -0
- package/dist/esm/elements/sheet/Sheet.js +128 -0
- package/dist/esm/elements/sheet/components/Body.js +50 -0
- package/dist/esm/elements/sheet/components/Close.js +60 -0
- package/dist/esm/elements/sheet/components/Description.js +59 -0
- package/dist/esm/elements/sheet/components/Footer.js +50 -0
- package/dist/esm/elements/sheet/components/FooterItem.js +50 -0
- package/dist/esm/elements/sheet/components/Header.js +55 -0
- package/dist/esm/elements/sheet/components/Title.js +59 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/link-stroke.svg.js +25 -0
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +26 -0
- package/dist/esm/styled/StyledChrome.js +22 -0
- package/dist/esm/styled/StyledSkipNav.js +46 -0
- package/dist/esm/styled/StyledSkipNavIcon.js +28 -0
- package/dist/esm/styled/body/StyledBody.js +22 -0
- package/dist/esm/styled/body/StyledContent.js +25 -0
- package/dist/esm/styled/body/StyledMain.js +22 -0
- package/dist/esm/styled/footer/StyledFooter.js +25 -0
- package/dist/esm/styled/footer/StyledFooterItem.js +22 -0
- package/dist/esm/styled/header/StyledBaseHeaderItem.js +35 -0
- package/dist/esm/styled/header/StyledHeader.js +31 -0
- package/dist/esm/styled/header/StyledHeaderItem.js +37 -0
- package/dist/esm/styled/header/StyledHeaderItemIcon.js +22 -0
- package/dist/esm/styled/header/StyledHeaderItemText.js +23 -0
- package/dist/esm/styled/header/StyledHeaderItemWrapper.js +24 -0
- package/dist/esm/styled/header/StyledLogoHeaderItem.js +43 -0
- package/dist/esm/styled/nav/StyledBaseNavItem.js +32 -0
- package/dist/esm/styled/nav/StyledBrandmarkNavItem.js +23 -0
- package/dist/esm/styled/nav/StyledLogoNavItem.js +44 -0
- package/dist/esm/styled/nav/StyledNav.js +34 -0
- package/dist/esm/styled/nav/StyledNavButton.js +65 -0
- package/dist/esm/styled/nav/StyledNavItemIcon.js +22 -0
- package/dist/esm/styled/nav/StyledNavItemText.js +34 -0
- package/dist/esm/styled/nav/StyledNavList.js +22 -0
- package/dist/esm/styled/nav/StyledNavListItem.js +22 -0
- package/dist/esm/styled/sheet/StyledSheet.js +41 -0
- package/dist/esm/styled/sheet/StyledSheetBody.js +22 -0
- package/dist/esm/styled/sheet/StyledSheetClose.js +34 -0
- package/dist/esm/styled/sheet/StyledSheetDescription.js +22 -0
- package/dist/esm/styled/sheet/StyledSheetFooter.js +22 -0
- package/dist/esm/styled/sheet/StyledSheetFooterItem.js +22 -0
- package/dist/esm/styled/sheet/StyledSheetHeader.js +23 -0
- package/dist/esm/styled/sheet/StyledSheetTitle.js +22 -0
- package/dist/esm/styled/sheet/StyledSheetWrapper.js +37 -0
- package/dist/esm/types/index.js +10 -0
- package/dist/esm/utils/useBodyContext.js +14 -0
- package/dist/esm/utils/useChromeContext.js +16 -0
- package/dist/esm/utils/useFocusableMount.js +31 -0
- package/dist/esm/utils/useNavContext.js +16 -0
- package/dist/esm/utils/useNavListContext.js +14 -0
- package/dist/esm/utils/useSheetContext.js +16 -0
- package/dist/index.cjs.js +373 -619
- package/dist/typings/elements/body/Body.d.ts +1 -2
- package/dist/typings/elements/footer/Footer.d.ts +8 -1
- package/dist/typings/elements/footer/FooterItem.d.ts +2 -0
- package/dist/typings/elements/header/Header.d.ts +11 -1
- package/dist/typings/elements/header/HeaderItem.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemIcon.d.ts +5 -3
- package/dist/typings/elements/header/HeaderItemText.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemWrapper.d.ts +2 -0
- package/dist/typings/elements/nav/Nav.d.ts +11 -1
- package/dist/typings/elements/nav/NavItem.d.ts +2 -0
- package/dist/typings/elements/nav/NavItemIcon.d.ts +5 -3
- package/dist/typings/elements/nav/NavItemText.d.ts +2 -0
- package/dist/typings/elements/{body/Sidebar.d.ts → nav/NavList.d.ts} +2 -2
- package/dist/typings/index.d.ts +9 -16
- package/dist/typings/styled/index.d.ts +3 -8
- package/dist/typings/styled/nav/StyledBaseNavItem.d.ts +1 -5
- package/dist/typings/styled/nav/StyledBrandmarkNavItem.d.ts +4 -5
- package/dist/typings/styled/nav/StyledLogoNavItem.d.ts +4 -5
- package/dist/typings/styled/nav/{StyledNavItem.d.ts → StyledNavButton.d.ts} +3 -1
- package/dist/typings/styled/{body/StyledSidebar.d.ts → nav/StyledNavList.d.ts} +1 -1
- package/dist/typings/styled/nav/StyledNavListItem.d.ts +10 -0
- package/dist/typings/types/index.d.ts +3 -30
- package/dist/typings/utils/useBodyContext.d.ts +3 -2
- package/dist/typings/utils/useNavListContext.d.ts +13 -0
- package/package.json +6 -8
- package/dist/index.esm.js +0 -1449
- package/dist/typings/elements/subnav/CollapsibleSubNavItem.d.ts +0 -12
- package/dist/typings/elements/subnav/SubNav.d.ts +0 -11
- package/dist/typings/elements/subnav/SubNavItem.d.ts +0 -12
- package/dist/typings/elements/subnav/SubNavItemText.d.ts +0 -12
- package/dist/typings/styled/subnav/StyledSubNav.d.ts +0 -17
- package/dist/typings/styled/subnav/StyledSubNavItem.d.ts +0 -21
- package/dist/typings/styled/subnav/StyledSubNavItemHeader.d.ts +0 -14
- package/dist/typings/styled/subnav/StyledSubNavItemIcon.d.ts +0 -14
- package/dist/typings/styled/subnav/StyledSubNavItemText.d.ts +0 -11
- package/dist/typings/styled/subnav/StyledSubNavPanel.d.ts +0 -12
package/dist/index.cjs.js
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
8
7
|
'use strict';
|
|
9
8
|
|
|
10
9
|
var React = require('react');
|
|
11
10
|
var PropTypes = require('prop-types');
|
|
12
11
|
var styled = require('styled-components');
|
|
13
|
-
var polished = require('polished');
|
|
14
12
|
var reactTheming = require('@zendeskgarden/react-theming');
|
|
15
|
-
var
|
|
16
|
-
var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
13
|
+
var polished = require('polished');
|
|
17
14
|
var reactUid = require('react-uid');
|
|
18
15
|
var reactMergeRefs = require('react-merge-refs');
|
|
19
16
|
var activeElement = require('dom-helpers/activeElement');
|
|
@@ -43,61 +40,42 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
|
43
40
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
44
41
|
var activeElement__default = /*#__PURE__*/_interopDefault(activeElement);
|
|
45
42
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
49
|
-
var source = arguments[i];
|
|
50
|
-
for (var key in source) {
|
|
51
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
52
|
-
target[key] = source[key];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return target;
|
|
57
|
-
};
|
|
58
|
-
return _extends$3.apply(this, arguments);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const ChromeContext = React__namespace.default.createContext({
|
|
62
|
-
hue: 'chromeHue'
|
|
63
|
-
});
|
|
64
|
-
const useChromeContext = () => {
|
|
65
|
-
return React.useContext(ChromeContext);
|
|
66
|
-
};
|
|
43
|
+
const PLACEMENT = ['end', 'start'];
|
|
44
|
+
const PRODUCTS = ['chat', 'explore', 'guide', 'support', 'talk'];
|
|
67
45
|
|
|
68
|
-
const COMPONENT_ID$
|
|
46
|
+
const COMPONENT_ID$w = 'chrome.chrome';
|
|
69
47
|
const StyledChrome = styled__default.default.div.attrs({
|
|
70
|
-
'data-garden-id': COMPONENT_ID$
|
|
71
|
-
'data-garden-version': '9.0.0-next.
|
|
48
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
49
|
+
'data-garden-version': '9.0.0-next.10'
|
|
72
50
|
}).withConfig({
|
|
73
51
|
displayName: "StyledChrome",
|
|
74
52
|
componentId: "sc-1uqm6u6-0"
|
|
75
|
-
})(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
53
|
+
})(["display:flex;position:relative;margin:0;height:100vh;overflow-y:hidden;font-family:", ";direction:", ";", ";"], props => props.theme.fonts.system, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
|
|
76
54
|
StyledChrome.defaultProps = {
|
|
77
55
|
theme: reactTheming.DEFAULT_THEME
|
|
78
56
|
};
|
|
79
57
|
|
|
80
|
-
const COMPONENT_ID$
|
|
58
|
+
const COMPONENT_ID$v = 'chrome.header_item_icon';
|
|
81
59
|
const StyledHeaderItemIcon = styled__default.default.div.attrs({
|
|
82
|
-
'data-garden-id': COMPONENT_ID$
|
|
83
|
-
'data-garden-version': '9.0.0-next.
|
|
60
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
61
|
+
'data-garden-version': '9.0.0-next.10'
|
|
84
62
|
}).withConfig({
|
|
85
63
|
displayName: "StyledHeaderItemIcon",
|
|
86
64
|
componentId: "sc-1jhhp6z-0"
|
|
87
|
-
})(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
65
|
+
})(["transition:transform 0.25s ease-in-out;margin:0 3px;width:", ";min-width:", ";height:", ";", ";"], props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
88
66
|
StyledHeaderItemIcon.defaultProps = {
|
|
89
67
|
theme: reactTheming.DEFAULT_THEME
|
|
90
68
|
};
|
|
91
69
|
|
|
92
|
-
const COMPONENT_ID$
|
|
70
|
+
const COMPONENT_ID$u = 'chrome.base_header_item';
|
|
93
71
|
const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
|
|
94
|
-
const sizeStyles$
|
|
72
|
+
const sizeStyles$3 = props => {
|
|
95
73
|
const size = props.theme.space.base * 7.5;
|
|
96
74
|
return styled.css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : `${size}px`, reactTheming.getLineHeight(size, props.theme.fontSizes.md));
|
|
97
75
|
};
|
|
98
76
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
99
|
-
'data-garden-id': COMPONENT_ID$
|
|
100
|
-
'data-garden-version': '9.0.0-next.
|
|
77
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
78
|
+
'data-garden-version': '9.0.0-next.10'
|
|
101
79
|
}).withConfig({
|
|
102
80
|
displayName: "StyledBaseHeaderItem",
|
|
103
81
|
componentId: "sc-1qua7h6-0"
|
|
@@ -109,28 +87,28 @@ const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
|
109
87
|
return '0';
|
|
110
88
|
}
|
|
111
89
|
return props.theme.borderRadii.md;
|
|
112
|
-
}, sizeStyles$
|
|
90
|
+
}, sizeStyles$3, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$u, props));
|
|
113
91
|
StyledBaseHeaderItem.defaultProps = {
|
|
114
92
|
theme: reactTheming.DEFAULT_THEME
|
|
115
93
|
};
|
|
116
94
|
|
|
117
|
-
const COMPONENT_ID$
|
|
95
|
+
const COMPONENT_ID$t = 'chrome.header_item_text';
|
|
118
96
|
const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
119
97
|
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
120
|
-
'data-garden-id': COMPONENT_ID$
|
|
121
|
-
'data-garden-version': '9.0.0-next.
|
|
98
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
99
|
+
'data-garden-version': '9.0.0-next.10'
|
|
122
100
|
}).withConfig({
|
|
123
101
|
displayName: "StyledHeaderItemText",
|
|
124
102
|
componentId: "sc-goz7la-0"
|
|
125
|
-
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
103
|
+
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$t, props));
|
|
126
104
|
StyledHeaderItemText.defaultProps = {
|
|
127
105
|
theme: reactTheming.DEFAULT_THEME
|
|
128
106
|
};
|
|
129
107
|
|
|
130
|
-
const COMPONENT_ID$
|
|
131
|
-
const colorStyles$
|
|
108
|
+
const COMPONENT_ID$s = 'chrome.nav';
|
|
109
|
+
const colorStyles$4 = props => {
|
|
132
110
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
133
|
-
const backgroundColor = reactTheming.
|
|
111
|
+
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
134
112
|
const foregroundColor = props.isLight ? props.theme.palette.black : props.theme.palette.white;
|
|
135
113
|
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
136
114
|
};
|
|
@@ -141,29 +119,25 @@ const getExpandedNavWidth = () => {
|
|
|
141
119
|
return `200px`;
|
|
142
120
|
};
|
|
143
121
|
const StyledNav = styled__default.default.nav.attrs({
|
|
144
|
-
'data-garden-id': COMPONENT_ID$
|
|
145
|
-
'data-garden-version': '9.0.0-next.
|
|
122
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
123
|
+
'data-garden-version': '9.0.0-next.10'
|
|
146
124
|
}).withConfig({
|
|
147
125
|
displayName: "StyledNav",
|
|
148
126
|
componentId: "sc-6j462r-0"
|
|
149
|
-
})(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$
|
|
127
|
+
})(["display:flex;position:relative;flex-direction:column;flex-shrink:0;order:-1;width:", ";font-size:", ";", ";", ";"], props => props.isExpanded ? getExpandedNavWidth : getNavWidth, props => props.theme.fontSizes.md, props => colorStyles$4(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
150
128
|
StyledNav.defaultProps = {
|
|
151
129
|
theme: reactTheming.DEFAULT_THEME
|
|
152
130
|
};
|
|
153
131
|
|
|
154
|
-
const COMPONENT_ID$
|
|
132
|
+
const COMPONENT_ID$r = 'chrome.header_item';
|
|
155
133
|
const retrieveProductColor$1 = props => {
|
|
156
134
|
switch (props.product) {
|
|
157
135
|
case 'chat':
|
|
158
136
|
return reactTheming.PALETTE.product.chat;
|
|
159
|
-
case 'connect':
|
|
160
|
-
return reactTheming.PALETTE.product.connect;
|
|
161
137
|
case 'explore':
|
|
162
138
|
return reactTheming.PALETTE.product.explore;
|
|
163
139
|
case 'guide':
|
|
164
140
|
return reactTheming.PALETTE.product.guide;
|
|
165
|
-
case 'message':
|
|
166
|
-
return reactTheming.PALETTE.product.message;
|
|
167
141
|
case 'support':
|
|
168
142
|
return reactTheming.PALETTE.product.support;
|
|
169
143
|
case 'talk':
|
|
@@ -173,72 +147,72 @@ const retrieveProductColor$1 = props => {
|
|
|
173
147
|
}
|
|
174
148
|
};
|
|
175
149
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
176
|
-
'data-garden-id': COMPONENT_ID$
|
|
177
|
-
'data-garden-version': '9.0.0-next.
|
|
150
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
151
|
+
'data-garden-version': '9.0.0-next.10',
|
|
178
152
|
as: 'div'
|
|
179
153
|
}).withConfig({
|
|
180
154
|
displayName: "StyledLogoHeaderItem",
|
|
181
155
|
componentId: "sc-1n1d1yv-0"
|
|
182
|
-
})(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.
|
|
156
|
+
})(["display:none;order:0;margin-right:", ";margin-left:", ";border-", ":", ";border-radius:0;padding:0;width:", ";height:100%;overflow:hidden;fill:", ";text-decoration:none;color:", ";", "{", "}", "{margin:0;width:", ";height:", ";}", ";"], props => props.theme.rtl ? `-${props.theme.space.base}px` : 'auto', props => props.theme.rtl ? 'auto' : `-${props.theme.space.base}px`, props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => reactTheming.getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
183
157
|
StyledLogoHeaderItem.defaultProps = {
|
|
184
158
|
theme: reactTheming.DEFAULT_THEME
|
|
185
159
|
};
|
|
186
160
|
|
|
187
|
-
const COMPONENT_ID$
|
|
161
|
+
const COMPONENT_ID$q = 'chrome.base_nav_item';
|
|
188
162
|
const getNavItemHeight = props => {
|
|
189
163
|
return `${props.theme.space.base * 13}px`;
|
|
190
164
|
};
|
|
191
|
-
const sizeStyles$
|
|
165
|
+
const sizeStyles$2 = props => {
|
|
192
166
|
const verticalPadding = polished.math(`(${getNavItemHeight(props)} - ${props.theme.iconSizes.lg}) / 2`);
|
|
193
167
|
const horizontalPadding = polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`);
|
|
194
168
|
return styled.css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
195
169
|
};
|
|
196
|
-
const StyledBaseNavItem = styled__default.default.
|
|
197
|
-
'data-garden-id': COMPONENT_ID$
|
|
198
|
-
'data-garden-version': '9.0.0-next.
|
|
170
|
+
const StyledBaseNavItem = styled__default.default.div.attrs({
|
|
171
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
172
|
+
'data-garden-version': '9.0.0-next.10'
|
|
199
173
|
}).withConfig({
|
|
200
174
|
displayName: "StyledBaseNavItem",
|
|
201
175
|
componentId: "sc-zvo43f-0"
|
|
202
|
-
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:outline-color 0.1s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;
|
|
176
|
+
})(["display:flex;flex-shrink:0;align-items:center;justify-content:center;transition:outline-color 0.1s ease-in-out,box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;", ""], props => sizeStyles$2(props));
|
|
203
177
|
StyledBaseNavItem.defaultProps = {
|
|
204
178
|
theme: reactTheming.DEFAULT_THEME
|
|
205
179
|
};
|
|
206
180
|
|
|
207
|
-
const COMPONENT_ID$
|
|
181
|
+
const COMPONENT_ID$p = 'chrome.header';
|
|
208
182
|
const getHeaderHeight = props => {
|
|
209
183
|
return getNavItemHeight(props);
|
|
210
184
|
};
|
|
211
185
|
const StyledHeader = styled__default.default.header.attrs({
|
|
212
|
-
'data-garden-id': COMPONENT_ID$
|
|
213
|
-
'data-garden-version': '9.0.0-next.
|
|
186
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
187
|
+
'data-garden-version': '9.0.0-next.10'
|
|
214
188
|
}).withConfig({
|
|
215
189
|
displayName: "StyledHeader",
|
|
216
190
|
componentId: "sc-1cexpz-0"
|
|
217
|
-
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.
|
|
191
|
+
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', reactTheming.getColorV8('chromeHue', 600, props.theme, 0.15)), props => reactTheming.getColorV8('background', 600 , props.theme), props => props.theme.space.base, getHeaderHeight, props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isStandalone && `
|
|
218
192
|
${StyledLogoHeaderItem} {
|
|
219
193
|
display: inline-flex;
|
|
220
194
|
}
|
|
221
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
195
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
222
196
|
StyledHeader.defaultProps = {
|
|
223
197
|
theme: reactTheming.DEFAULT_THEME
|
|
224
198
|
};
|
|
225
199
|
|
|
226
|
-
const COMPONENT_ID$
|
|
200
|
+
const COMPONENT_ID$o = 'chrome.skipnav';
|
|
227
201
|
const animationStyles = () => {
|
|
228
202
|
const animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
229
203
|
return styled.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);
|
|
230
204
|
};
|
|
231
|
-
const colorStyles$
|
|
232
|
-
const color = reactTheming.
|
|
233
|
-
const borderColor = reactTheming.
|
|
234
|
-
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.
|
|
235
|
-
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow,
|
|
205
|
+
const colorStyles$3 = theme => {
|
|
206
|
+
const color = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
207
|
+
const borderColor = reactTheming.getColorV8('neutralHue', 300, theme);
|
|
208
|
+
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
209
|
+
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, reactTheming.getColorV8('background', 600 , theme), color, color, reactTheming.focusStyles({
|
|
236
210
|
theme,
|
|
237
211
|
inset: true,
|
|
238
212
|
boxShadow
|
|
239
213
|
}));
|
|
240
214
|
};
|
|
241
|
-
const sizeStyles$
|
|
215
|
+
const sizeStyles$1 = props => {
|
|
242
216
|
const top = polished.math(`${getHeaderHeight(props)} / 2`);
|
|
243
217
|
const padding = `${props.theme.space.base * 5}px`;
|
|
244
218
|
const paddingStart = `${props.theme.space.base * 4}px`;
|
|
@@ -247,173 +221,181 @@ const sizeStyles$2 = props => {
|
|
|
247
221
|
return styled.css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
248
222
|
};
|
|
249
223
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
250
|
-
'data-garden-id': COMPONENT_ID$
|
|
251
|
-
'data-garden-version': '9.0.0-next.
|
|
224
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
225
|
+
'data-garden-version': '9.0.0-next.10'
|
|
252
226
|
}).withConfig({
|
|
253
227
|
displayName: "StyledSkipNav",
|
|
254
228
|
componentId: "sc-1tsro34-0"
|
|
255
|
-
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";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.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$
|
|
229
|
+
})(["", ";display:inline-flex;position:absolute;left:50%;align-items:center;justify-content:center;transform:translateX(-50%);direction:", ";z-index:", ";border:", ";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.borders.sm, props => props.theme.borderRadii.md, props => sizeStyles$1(props), reactTheming.SELECTOR_FOCUS_VISIBLE, props => colorStyles$3(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$o, props));
|
|
256
230
|
StyledSkipNav.defaultProps = {
|
|
257
231
|
theme: reactTheming.DEFAULT_THEME
|
|
258
232
|
};
|
|
259
233
|
|
|
260
|
-
var _path$
|
|
261
|
-
function _extends$
|
|
234
|
+
var _path$1;
|
|
235
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
262
236
|
var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
263
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
237
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
264
238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
265
239
|
width: 16,
|
|
266
240
|
height: 16,
|
|
267
241
|
focusable: "false",
|
|
268
242
|
viewBox: "0 0 16 16",
|
|
269
243
|
"aria-hidden": "true"
|
|
270
|
-
}, props), _path$
|
|
244
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
271
245
|
fill: "currentColor",
|
|
272
246
|
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"
|
|
273
247
|
})));
|
|
274
248
|
};
|
|
275
249
|
|
|
276
|
-
const COMPONENT_ID$
|
|
277
|
-
const sizeStyles
|
|
250
|
+
const COMPONENT_ID$n = 'chrome.skipnav_icon';
|
|
251
|
+
const sizeStyles = theme => {
|
|
278
252
|
const margin = `${theme.space.base * 2}px`;
|
|
279
253
|
const size = theme.iconSizes.md;
|
|
280
254
|
return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
281
255
|
};
|
|
282
256
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
283
|
-
'data-garden-id': COMPONENT_ID$
|
|
284
|
-
'data-garden-version': '9.0.0-next.
|
|
257
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
258
|
+
'data-garden-version': '9.0.0-next.10'
|
|
285
259
|
}).withConfig({
|
|
286
260
|
displayName: "StyledSkipNavIcon",
|
|
287
261
|
componentId: "sc-1ika5z4-0"
|
|
288
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.
|
|
262
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => sizeStyles(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
289
263
|
StyledSkipNavIcon.defaultProps = {
|
|
290
264
|
theme: reactTheming.DEFAULT_THEME
|
|
291
265
|
};
|
|
292
266
|
|
|
293
|
-
const COMPONENT_ID$
|
|
267
|
+
const COMPONENT_ID$m = 'chrome.body';
|
|
294
268
|
const StyledBody = styled__default.default.div.attrs({
|
|
295
|
-
'data-garden-id': COMPONENT_ID$
|
|
296
|
-
'data-garden-version': '9.0.0-next.
|
|
269
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
270
|
+
'data-garden-version': '9.0.0-next.10'
|
|
297
271
|
}).withConfig({
|
|
298
272
|
displayName: "StyledBody",
|
|
299
273
|
componentId: "sc-c7h9kv-0"
|
|
300
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.
|
|
274
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
301
275
|
StyledBody.defaultProps = {
|
|
302
276
|
theme: reactTheming.DEFAULT_THEME
|
|
303
277
|
};
|
|
304
278
|
|
|
305
|
-
const COMPONENT_ID$
|
|
279
|
+
const COMPONENT_ID$l = 'chrome.footer';
|
|
306
280
|
const getFooterHeight = props => {
|
|
307
281
|
return `${props.theme.space.base * 20}px`;
|
|
308
282
|
};
|
|
309
283
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
310
|
-
'data-garden-id': COMPONENT_ID$
|
|
311
|
-
'data-garden-version': '9.0.0-next.
|
|
284
|
+
'data-garden-id': COMPONENT_ID$l,
|
|
285
|
+
'data-garden-version': '9.0.0-next.10'
|
|
312
286
|
}).withConfig({
|
|
313
287
|
displayName: "StyledFooter",
|
|
314
288
|
componentId: "sc-v7lib2-0"
|
|
315
|
-
})(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${reactTheming.
|
|
289
|
+
})(["display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;border-top:", ";background-color:", ";padding:0 ", "px;height:", ";", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => reactTheming.getColorV8('background', 600 , props.theme), props => props.theme.space.base * 9, getFooterHeight, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
|
|
316
290
|
StyledFooter.defaultProps = {
|
|
317
291
|
theme: reactTheming.DEFAULT_THEME
|
|
318
292
|
};
|
|
319
293
|
|
|
320
|
-
const COMPONENT_ID$
|
|
294
|
+
const COMPONENT_ID$k = 'chrome.content';
|
|
321
295
|
const StyledContent = styled__default.default.div.attrs({
|
|
322
|
-
'data-garden-id': COMPONENT_ID$
|
|
323
|
-
'data-garden-version': '9.0.0-next.
|
|
296
|
+
'data-garden-id': COMPONENT_ID$k,
|
|
297
|
+
'data-garden-version': '9.0.0-next.10'
|
|
324
298
|
}).withConfig({
|
|
325
299
|
displayName: "StyledContent",
|
|
326
300
|
componentId: "sc-qcuzxn-0"
|
|
327
|
-
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.theme
|
|
301
|
+
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${polished.math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => reactTheming.getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
|
|
328
302
|
StyledContent.defaultProps = {
|
|
329
303
|
theme: reactTheming.DEFAULT_THEME
|
|
330
304
|
};
|
|
331
305
|
|
|
332
|
-
const COMPONENT_ID$
|
|
306
|
+
const COMPONENT_ID$j = 'chrome.main';
|
|
333
307
|
const StyledMain = styled__default.default.main.attrs({
|
|
334
|
-
'data-garden-id': COMPONENT_ID$
|
|
335
|
-
'data-garden-version': '9.0.0-next.
|
|
308
|
+
'data-garden-id': COMPONENT_ID$j,
|
|
309
|
+
'data-garden-version': '9.0.0-next.10'
|
|
336
310
|
}).withConfig({
|
|
337
311
|
displayName: "StyledMain",
|
|
338
312
|
componentId: "sc-t61cre-0"
|
|
339
|
-
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => props.theme
|
|
313
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
|
|
340
314
|
StyledMain.defaultProps = {
|
|
341
315
|
theme: reactTheming.DEFAULT_THEME
|
|
342
316
|
};
|
|
343
317
|
|
|
344
|
-
const COMPONENT_ID$
|
|
345
|
-
const StyledSidebar = styled__default.default.aside.attrs({
|
|
346
|
-
'data-garden-id': COMPONENT_ID$m,
|
|
347
|
-
'data-garden-version': '9.0.0-next.0'
|
|
348
|
-
}).withConfig({
|
|
349
|
-
displayName: "StyledSidebar",
|
|
350
|
-
componentId: "sc-1q77fuw-0"
|
|
351
|
-
})(["flex-shrink:0;order:0;box-sizing:border-box;border-", ":", ";width:330px;overflow:auto;&:focus{outline:none;}", ";"], props => props.theme.rtl ? 'left' : 'right', props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 300, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
352
|
-
StyledSidebar.defaultProps = {
|
|
353
|
-
theme: reactTheming.DEFAULT_THEME
|
|
354
|
-
};
|
|
355
|
-
|
|
356
|
-
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
318
|
+
const COMPONENT_ID$i = 'chrome.footer_item';
|
|
357
319
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
358
|
-
'data-garden-id': COMPONENT_ID$
|
|
359
|
-
'data-garden-version': '9.0.0-next.
|
|
320
|
+
'data-garden-id': COMPONENT_ID$i,
|
|
321
|
+
'data-garden-version': '9.0.0-next.10'
|
|
360
322
|
}).withConfig({
|
|
361
323
|
displayName: "StyledFooterItem",
|
|
362
324
|
componentId: "sc-1cktm85-0"
|
|
363
|
-
})(["margin:", ";", ";"], props => `0 ${props.theme.space.base}px`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
325
|
+
})(["margin:", ";", ";"], props => `0 ${props.theme.space.base}px`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
|
|
364
326
|
StyledFooterItem.defaultProps = {
|
|
365
327
|
theme: reactTheming.DEFAULT_THEME
|
|
366
328
|
};
|
|
367
329
|
|
|
368
|
-
const COMPONENT_ID$
|
|
330
|
+
const COMPONENT_ID$h = 'chrome.header_item';
|
|
369
331
|
const imgStyles = props => {
|
|
370
332
|
const size = polished.math(`${getHeaderItemSize(props)} - ${props.theme.space.base * 2}`);
|
|
371
333
|
return styled.css(["img{margin:0;border-radius:", ";width:", ";height:", ";}"], polished.math(`${props.theme.borderRadii.md} - 1`), size, size);
|
|
372
334
|
};
|
|
373
335
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
374
|
-
'data-garden-id': COMPONENT_ID$
|
|
375
|
-
'data-garden-version': '9.0.0-next.
|
|
336
|
+
'data-garden-id': COMPONENT_ID$h,
|
|
337
|
+
'data-garden-version': '9.0.0-next.10'
|
|
376
338
|
}).withConfig({
|
|
377
339
|
displayName: "StyledHeaderItem",
|
|
378
340
|
componentId: "sc-14sft6n-0"
|
|
379
|
-
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active
|
|
341
|
+
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => reactTheming.focusStyles({
|
|
380
342
|
theme: props.theme,
|
|
381
343
|
inset: props.maxY
|
|
382
|
-
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.
|
|
344
|
+
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
383
345
|
${StyledHeaderItemIcon} {
|
|
384
346
|
border-radius: 100px;
|
|
385
347
|
}
|
|
386
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
348
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
|
|
387
349
|
StyledHeaderItem.defaultProps = {
|
|
388
350
|
theme: reactTheming.DEFAULT_THEME
|
|
389
351
|
};
|
|
390
352
|
|
|
391
|
-
const COMPONENT_ID$
|
|
353
|
+
const COMPONENT_ID$g = 'chrome.header_item_wrapper';
|
|
392
354
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
393
|
-
'data-garden-id': COMPONENT_ID$
|
|
394
|
-
'data-garden-version': '9.0.0-next.
|
|
355
|
+
'data-garden-id': COMPONENT_ID$g,
|
|
356
|
+
'data-garden-version': '9.0.0-next.10',
|
|
395
357
|
as: 'div'
|
|
396
358
|
}).withConfig({
|
|
397
359
|
displayName: "StyledHeaderItemWrapper",
|
|
398
360
|
componentId: "sc-1uieu55-0"
|
|
399
|
-
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
361
|
+
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
|
|
400
362
|
StyledHeaderItemWrapper.defaultProps = {
|
|
401
363
|
theme: reactTheming.DEFAULT_THEME
|
|
402
364
|
};
|
|
403
365
|
|
|
404
|
-
const COMPONENT_ID$
|
|
366
|
+
const COMPONENT_ID$f = 'chrome.nav_list';
|
|
367
|
+
const StyledNavList = styled__default.default.ul.attrs({
|
|
368
|
+
'data-garden-id': COMPONENT_ID$f,
|
|
369
|
+
'data-garden-version': '9.0.0-next.10'
|
|
370
|
+
}).withConfig({
|
|
371
|
+
displayName: "StyledNavList",
|
|
372
|
+
componentId: "sc-1s0nkfb-0"
|
|
373
|
+
})(["display:flex;flex:1;flex-direction:column;order:0;margin:0;padding:0;list-style:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
|
|
374
|
+
StyledNavList.defaultProps = {
|
|
375
|
+
theme: reactTheming.DEFAULT_THEME
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
const COMPONENT_ID$e = 'chrome.nav_list_item';
|
|
379
|
+
const StyledNavListItem = styled__default.default.li.attrs({
|
|
380
|
+
'data-garden-id': COMPONENT_ID$e,
|
|
381
|
+
'data-garden-version': '9.0.0-next.10'
|
|
382
|
+
}).withConfig({
|
|
383
|
+
displayName: "StyledNavListItem",
|
|
384
|
+
componentId: "sc-18cj2v7-0"
|
|
385
|
+
})(["display:flex;order:1;margin:0;padding:0;list-style-type:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
|
|
386
|
+
StyledNavListItem.defaultProps = {
|
|
387
|
+
theme: reactTheming.DEFAULT_THEME
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
const COMPONENT_ID$d = 'chrome.logo_nav_list_item';
|
|
405
391
|
const retrieveProductColor = product => {
|
|
406
392
|
switch (product) {
|
|
407
393
|
case 'chat':
|
|
408
394
|
return reactTheming.PALETTE.product.chat;
|
|
409
|
-
case 'connect':
|
|
410
|
-
return reactTheming.PALETTE.product.connect;
|
|
411
395
|
case 'explore':
|
|
412
396
|
return reactTheming.PALETTE.product.explore;
|
|
413
397
|
case 'guide':
|
|
414
398
|
return reactTheming.PALETTE.product.guide;
|
|
415
|
-
case 'message':
|
|
416
|
-
return reactTheming.PALETTE.product.message;
|
|
417
399
|
case 'support':
|
|
418
400
|
return reactTheming.PALETTE.product.support;
|
|
419
401
|
case 'talk':
|
|
@@ -422,50 +404,48 @@ const retrieveProductColor = product => {
|
|
|
422
404
|
return 'inherit';
|
|
423
405
|
}
|
|
424
406
|
};
|
|
425
|
-
const colorStyles$
|
|
407
|
+
const colorStyles$2 = props => {
|
|
426
408
|
const fillColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
427
409
|
const color = props.isLight || props.isDark ? fillColor : retrieveProductColor(props.product);
|
|
428
410
|
return styled.css(["color:", ";fill:", ";"], color, fillColor);
|
|
429
411
|
};
|
|
430
412
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
431
|
-
'data-garden-id': COMPONENT_ID$
|
|
432
|
-
'data-garden-version': '9.0.0-next.
|
|
433
|
-
as: 'div'
|
|
413
|
+
'data-garden-id': COMPONENT_ID$d,
|
|
414
|
+
'data-garden-version': '9.0.0-next.10'
|
|
434
415
|
}).withConfig({
|
|
435
416
|
displayName: "StyledLogoNavItem",
|
|
436
417
|
componentId: "sc-saaydx-0"
|
|
437
|
-
})(["order
|
|
418
|
+
})(["order:-1;opacity:1;cursor:default;min-height:0;", ";"], props => colorStyles$2(props));
|
|
438
419
|
StyledLogoNavItem.defaultProps = {
|
|
439
420
|
theme: reactTheming.DEFAULT_THEME
|
|
440
421
|
};
|
|
441
422
|
|
|
442
|
-
const COMPONENT_ID$
|
|
423
|
+
const COMPONENT_ID$c = 'chrome.brandmark_nav_list_item';
|
|
443
424
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
444
|
-
'data-garden-id': COMPONENT_ID$
|
|
445
|
-
'data-garden-version': '9.0.0-next.
|
|
446
|
-
as: 'div'
|
|
425
|
+
'data-garden-id': COMPONENT_ID$c,
|
|
426
|
+
'data-garden-version': '9.0.0-next.10'
|
|
447
427
|
}).withConfig({
|
|
448
428
|
displayName: "StyledBrandmarkNavItem",
|
|
449
429
|
componentId: "sc-8kynd4-0"
|
|
450
|
-
})(["order:1;opacity:0.3;margin-top:auto;"]);
|
|
430
|
+
})(["order:1;opacity:0.3;margin-top:auto;min-height:0;"]);
|
|
451
431
|
StyledBrandmarkNavItem.defaultProps = {
|
|
452
432
|
theme: reactTheming.DEFAULT_THEME
|
|
453
433
|
};
|
|
454
434
|
|
|
455
|
-
const COMPONENT_ID$
|
|
435
|
+
const COMPONENT_ID$b = 'chrome.nav_item_icon';
|
|
456
436
|
const StyledNavItemIcon = styled__default.default.div.attrs({
|
|
457
|
-
'data-garden-id': COMPONENT_ID$
|
|
458
|
-
'data-garden-version': '9.0.0-next.
|
|
437
|
+
'data-garden-id': COMPONENT_ID$b,
|
|
438
|
+
'data-garden-version': '9.0.0-next.10'
|
|
459
439
|
}).withConfig({
|
|
460
440
|
displayName: "StyledNavItemIcon",
|
|
461
441
|
componentId: "sc-7w9rpt-0"
|
|
462
|
-
})(["align-self:flex-start;order:0;border-radius:", ";width:", ";height:", ";", ";"], props => props.theme.borderRadii.md, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
442
|
+
})(["align-self:flex-start;order:0;border-radius:", ";width:", ";height:", ";", ";"], props => props.theme.borderRadii.md, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
|
|
463
443
|
StyledNavItemIcon.defaultProps = {
|
|
464
444
|
theme: reactTheming.DEFAULT_THEME
|
|
465
445
|
};
|
|
466
446
|
|
|
467
|
-
const COMPONENT_ID$
|
|
468
|
-
const colorStyles$
|
|
447
|
+
const COMPONENT_ID$a = 'chrome.nav_button';
|
|
448
|
+
const colorStyles$1 = props => {
|
|
469
449
|
const {
|
|
470
450
|
theme,
|
|
471
451
|
hue,
|
|
@@ -483,7 +463,7 @@ const colorStyles$3 = props => {
|
|
|
483
463
|
} else if (isDark) {
|
|
484
464
|
currentColor = polished.rgba(LIGHT, 0.4);
|
|
485
465
|
} else {
|
|
486
|
-
currentColor = reactTheming.
|
|
466
|
+
currentColor = reactTheming.getColorV8(hue, 500, theme);
|
|
487
467
|
}
|
|
488
468
|
} else {
|
|
489
469
|
hoverColor = polished.rgba(isLight ? LIGHT : DARK, 0.1);
|
|
@@ -499,31 +479,31 @@ const colorStyles$3 = props => {
|
|
|
499
479
|
}
|
|
500
480
|
}), activeColor);
|
|
501
481
|
};
|
|
502
|
-
const
|
|
503
|
-
'data-garden-id': COMPONENT_ID$
|
|
504
|
-
'data-garden-version': '9.0.0-next.
|
|
482
|
+
const StyledNavButton = styled__default.default(StyledBaseNavItem).attrs({
|
|
483
|
+
'data-garden-id': COMPONENT_ID$a,
|
|
484
|
+
'data-garden-version': '9.0.0-next.10',
|
|
505
485
|
as: 'button'
|
|
506
486
|
}).withConfig({
|
|
507
|
-
displayName: "
|
|
508
|
-
componentId: "sc-
|
|
509
|
-
})(["justify-content:", ";
|
|
487
|
+
displayName: "StyledNavButton",
|
|
488
|
+
componentId: "sc-f5ux3-0"
|
|
489
|
+
})(["flex:1;justify-content:", ";margin:0;border:none;box-sizing:border-box;background:transparent;cursor:", ";min-width:0;text-align:", ";text-decoration:none;color:inherit;font-size:inherit;&:hover,&:focus{text-decoration:none;color:inherit;}", ";&:focus-visible:hover,&:focus-visible:active,", "{outline:", " solid;outline-offset:-", ";}", " ", ";"], props => props.isExpanded && 'start', props => props.isCurrent ? 'default' : 'pointer', props => props.isExpanded && 'inherit', colorStyles$1, reactTheming.SELECTOR_FOCUS_VISIBLE, props => polished.math(`${props.theme.borderWidths.md} - 1`), props => props.theme.borderWidths.md, props => props.isExpanded && `
|
|
510
490
|
${StyledNavItemIcon} {
|
|
511
491
|
margin: 0 ${polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)};
|
|
512
492
|
}
|
|
513
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
514
|
-
|
|
493
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
494
|
+
StyledNavButton.defaultProps = {
|
|
515
495
|
theme: reactTheming.DEFAULT_THEME
|
|
516
496
|
};
|
|
517
497
|
|
|
518
|
-
const COMPONENT_ID$
|
|
498
|
+
const COMPONENT_ID$9 = 'chrome.nav_item_text';
|
|
519
499
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
520
|
-
'data-garden-id': COMPONENT_ID$
|
|
521
|
-
'data-garden-version': '9.0.0-next.
|
|
500
|
+
'data-garden-id': COMPONENT_ID$9,
|
|
501
|
+
'data-garden-version': '9.0.0-next.10'
|
|
522
502
|
}).withConfig({
|
|
523
503
|
displayName: "StyledNavItemText",
|
|
524
504
|
componentId: "sc-13m84xl-0"
|
|
525
505
|
})(["position:absolute;order:1;clip:rect(1px,1px,1px,1px);margin:", ";width:1px;height:1px;overflow:hidden;line-height:", ";white-space:", ";", " ", ";"], props => props.isExpanded && `0 ${polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)}`, props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.isWrapped ? 'normal' : 'nowrap', props => props.isExpanded && `
|
|
526
|
-
${
|
|
506
|
+
${StyledNavButton} > && {
|
|
527
507
|
position: static;
|
|
528
508
|
flex: 1;
|
|
529
509
|
clip: auto;
|
|
@@ -531,168 +511,11 @@ const StyledNavItemText = styled__default.default.span.attrs({
|
|
|
531
511
|
height: auto;
|
|
532
512
|
text-overflow: ellipsis;
|
|
533
513
|
}
|
|
534
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
514
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
535
515
|
StyledNavItemText.defaultProps = {
|
|
536
516
|
theme: reactTheming.DEFAULT_THEME
|
|
537
517
|
};
|
|
538
518
|
|
|
539
|
-
const COMPONENT_ID$d = 'chrome.subnav_item';
|
|
540
|
-
const colorStyles$2 = props => {
|
|
541
|
-
const {
|
|
542
|
-
theme,
|
|
543
|
-
isLight,
|
|
544
|
-
isCurrent
|
|
545
|
-
} = props;
|
|
546
|
-
const DARK = theme.palette.black;
|
|
547
|
-
const LIGHT = theme.palette.white;
|
|
548
|
-
let currentColor;
|
|
549
|
-
let hoverColor;
|
|
550
|
-
if (isCurrent) {
|
|
551
|
-
if (isLight) {
|
|
552
|
-
currentColor = polished.rgba(DARK, 0.1);
|
|
553
|
-
} else {
|
|
554
|
-
currentColor = polished.rgba(LIGHT, 0.1);
|
|
555
|
-
}
|
|
556
|
-
} else {
|
|
557
|
-
hoverColor = polished.rgba(isLight ? LIGHT : DARK, 0.1);
|
|
558
|
-
}
|
|
559
|
-
const activeColor = polished.rgba(isLight ? DARK : LIGHT, 0.03);
|
|
560
|
-
return styled.css(["opacity:", ";background-color:", ";&:hover{opacity:1;background-color:", ";}", " &:not([data-garden-header='true']):active{background-color:", ";}"], isCurrent ? '1' : '0.6', currentColor, hoverColor, reactTheming.focusStyles({
|
|
561
|
-
theme,
|
|
562
|
-
hue: isLight ? DARK : LIGHT,
|
|
563
|
-
spacerWidth: null,
|
|
564
|
-
styles: {
|
|
565
|
-
opacity: 1
|
|
566
|
-
}
|
|
567
|
-
}), activeColor);
|
|
568
|
-
};
|
|
569
|
-
const getSubNavItemHeight = props => {
|
|
570
|
-
return `${props.theme.space.base * 7.5}px`;
|
|
571
|
-
};
|
|
572
|
-
const StyledSubNavItem = styled__default.default.button.attrs({
|
|
573
|
-
'data-garden-id': COMPONENT_ID$d,
|
|
574
|
-
'data-garden-version': '9.0.0-next.0'
|
|
575
|
-
}).withConfig({
|
|
576
|
-
displayName: "StyledSubNavItem",
|
|
577
|
-
componentId: "sc-1yg9dpx-0"
|
|
578
|
-
})(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out,background-color 0.1s ease-in-out,opacity 0.1s ease-in-out;margin:", "px 0 0;border:none;border-radius:", ";box-sizing:border-box;background:transparent;cursor:", ";padding:", ";width:100%;min-height:", ";text-align:inherit;font-size:inherit;&,&:hover,&:focus{text-decoration:none;color:inherit;}", ";", ";"], props => props.theme.space.base * 2, props => props.theme.borderRadii.md, props => props.isCurrent ? 'default' : 'pointer', props => `0 ${props.theme.space.base * 2}px`, getSubNavItemHeight, props => colorStyles$2(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
|
|
579
|
-
StyledSubNavItem.defaultProps = {
|
|
580
|
-
theme: reactTheming.DEFAULT_THEME
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
const COMPONENT_ID$c = 'chrome.subnav';
|
|
584
|
-
const colorStyles$1 = props => {
|
|
585
|
-
let shade;
|
|
586
|
-
if (props.isLight) {
|
|
587
|
-
shade = 500;
|
|
588
|
-
} else {
|
|
589
|
-
shade = props.isDark ? 700 : 800;
|
|
590
|
-
}
|
|
591
|
-
const backgroundColor = reactTheming.getColor(props.hue, shade, props.theme);
|
|
592
|
-
const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
593
|
-
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
594
|
-
};
|
|
595
|
-
const StyledSubNav = styled__default.default.nav.attrs({
|
|
596
|
-
'data-garden-id': COMPONENT_ID$c,
|
|
597
|
-
'data-garden-version': '9.0.0-next.0'
|
|
598
|
-
}).withConfig({
|
|
599
|
-
displayName: "StyledSubNav",
|
|
600
|
-
componentId: "sc-19hjou6-0"
|
|
601
|
-
})(["flex-direction:column;order:0;padding:", ";min-width:220px;overflow:auto;font-size:", ";", ";& > ", ":first-child{margin-top:0;}", ";"], props => `${props.theme.space.base * 6}px ${props.theme.space.base * 5}px`, props => props.theme.fontSizes.md, props => colorStyles$1(props), StyledSubNavItem, props => reactTheming.retrieveComponentStyles('chrome.subnav', props));
|
|
602
|
-
StyledSubNav.defaultProps = {
|
|
603
|
-
theme: reactTheming.DEFAULT_THEME
|
|
604
|
-
};
|
|
605
|
-
|
|
606
|
-
const COMPONENT_ID$b = 'chrome.subnav_item_text';
|
|
607
|
-
const sizeStyles = props => {
|
|
608
|
-
const baseLineHeight = props.theme.space.base * 5;
|
|
609
|
-
const verticalMargin = polished.math(`(${getSubNavItemHeight(props)} - ${baseLineHeight}) / 2`);
|
|
610
|
-
const lineHeight = reactTheming.getLineHeight(baseLineHeight, props.theme.fontSizes.md);
|
|
611
|
-
return styled.css(["margin:", " 0;line-height:", ";"], verticalMargin, lineHeight);
|
|
612
|
-
};
|
|
613
|
-
const StyledSubNavItemText = styled__default.default.span.attrs({
|
|
614
|
-
'data-garden-id': COMPONENT_ID$b,
|
|
615
|
-
'data-garden-version': '9.0.0-next.0'
|
|
616
|
-
}).withConfig({
|
|
617
|
-
displayName: "StyledSubNavItemText",
|
|
618
|
-
componentId: "sc-1hy0pn7-0"
|
|
619
|
-
})(["overflow:hidden;text-overflow:ellipsis;white-space:", ";", " ", ";"], props => props.isWrapped ? 'normal' : 'nowrap', props => sizeStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
|
|
620
|
-
StyledSubNavItemText.defaultProps = {
|
|
621
|
-
theme: reactTheming.DEFAULT_THEME
|
|
622
|
-
};
|
|
623
|
-
|
|
624
|
-
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
625
|
-
const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
|
|
626
|
-
'data-garden-id': COMPONENT_ID$a,
|
|
627
|
-
'data-garden-version': '9.0.0-next.0',
|
|
628
|
-
'data-garden-header': 'true'
|
|
629
|
-
}).withConfig({
|
|
630
|
-
displayName: "StyledSubNavItemHeader",
|
|
631
|
-
componentId: "sc-1vniter-0"
|
|
632
|
-
})(["position:relative;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.space.base * 7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
633
|
-
StyledSubNavItemHeader.defaultProps = {
|
|
634
|
-
theme: reactTheming.DEFAULT_THEME
|
|
635
|
-
};
|
|
636
|
-
|
|
637
|
-
var _path$1;
|
|
638
|
-
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
639
|
-
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
640
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
641
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
642
|
-
width: 12,
|
|
643
|
-
height: 12,
|
|
644
|
-
focusable: "false",
|
|
645
|
-
viewBox: "0 0 12 12",
|
|
646
|
-
"aria-hidden": "true"
|
|
647
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
648
|
-
fill: "currentColor",
|
|
649
|
-
d: "M1.646 3.646a.5.5 0 01.638-.057l.07.057L6 7.293l3.646-3.647a.5.5 0 01.638-.057l.07.057a.5.5 0 01.057.638l-.057.07-4 4a.5.5 0 01-.638.057l-.07-.057-4-4a.5.5 0 010-.708z"
|
|
650
|
-
})));
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
const COMPONENT_ID$9 = 'chrome.collapsible_sub_nav_item_icon';
|
|
654
|
-
const FilteredChevronDownStrokeIcon = React__namespace.default.forwardRef((_ref, ref) => {
|
|
655
|
-
let {
|
|
656
|
-
theme,
|
|
657
|
-
isExpanded,
|
|
658
|
-
...validProps
|
|
659
|
-
} = _ref;
|
|
660
|
-
return React__namespace.default.createElement(SvgChevronDownStroke, _extends$3({
|
|
661
|
-
ref: ref
|
|
662
|
-
}, validProps));
|
|
663
|
-
});
|
|
664
|
-
FilteredChevronDownStrokeIcon.displayName = 'FilteredChevronDownStrokeIcon';
|
|
665
|
-
const StyledSubNavItemIcon = styled__default.default(FilteredChevronDownStrokeIcon).withConfig({
|
|
666
|
-
displayName: "StyledSubNavItemIcon",
|
|
667
|
-
componentId: "sc-1d02hho-0"
|
|
668
|
-
})(["width:", ";height:", ";"], props => props.theme.iconSizes.sm, props => props.theme.iconSizes.sm);
|
|
669
|
-
StyledSubNavItemIcon.defaultProps = {
|
|
670
|
-
theme: reactTheming.DEFAULT_THEME
|
|
671
|
-
};
|
|
672
|
-
const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
|
|
673
|
-
'data-garden-id': COMPONENT_ID$9,
|
|
674
|
-
'data-garden-version': '9.0.0-next.0'
|
|
675
|
-
}).withConfig({
|
|
676
|
-
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
677
|
-
componentId: "sc-1d02hho-1"
|
|
678
|
-
})(["display:flex;position:absolute;top:0;right:", ";left:", ";align-items:center;justify-content:center;width:", "px;height:", ";", "{transform:", ";transition:transform 0.25s ease-in-out;}", ";"], props => props.theme.rtl ? 'auto' : 0, props => props.theme.rtl && 0, props => props.theme.space.base * 7, getSubNavItemHeight, StyledSubNavItemIcon, props => props.isExpanded && `rotate(${props.theme.rtl ? '-' : ''}180deg)`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
679
|
-
StyledSubNavItemIconWrapper.defaultProps = {
|
|
680
|
-
theme: reactTheming.DEFAULT_THEME
|
|
681
|
-
};
|
|
682
|
-
|
|
683
|
-
const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
684
|
-
const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
685
|
-
const StyledSubNavPanel = styled__default.default.div.attrs({
|
|
686
|
-
'data-garden-id': PANEL_COMPONENT_ID,
|
|
687
|
-
'data-garden-version': '9.0.0-next.0'
|
|
688
|
-
}).withConfig({
|
|
689
|
-
displayName: "StyledSubNavPanel",
|
|
690
|
-
componentId: "sc-1jv3rpv-0"
|
|
691
|
-
})(["transition:max-height 0.25s cubic-bezier(0.15,0.85,0.35,1.2),0.25s visibility 0s linear;height:auto;max-height:100%;", " ", "{padding-", ":", ";}", ";"], props => props.isHidden && hiddenStyling, StyledSubNavItem, props => props.theme.rtl ? 'right' : 'left', props => `${props.theme.space.base * 5}px`, props => reactTheming.retrieveComponentStyles(PANEL_COMPONENT_ID, props));
|
|
692
|
-
StyledSubNavPanel.defaultProps = {
|
|
693
|
-
theme: reactTheming.DEFAULT_THEME
|
|
694
|
-
};
|
|
695
|
-
|
|
696
519
|
const COMPONENT_ID$8 = 'chrome.sheet';
|
|
697
520
|
const borderStyle = _ref => {
|
|
698
521
|
let {
|
|
@@ -700,7 +523,7 @@ const borderStyle = _ref => {
|
|
|
700
523
|
placement,
|
|
701
524
|
isOpen
|
|
702
525
|
} = _ref;
|
|
703
|
-
const borderColor = isOpen ? reactTheming.
|
|
526
|
+
const borderColor = isOpen ? reactTheming.getColorV8('neutralHue', 300, theme) : 'transparent';
|
|
704
527
|
const borderSides = ['-left', '-right'];
|
|
705
528
|
let borderSide = '';
|
|
706
529
|
if (theme.rtl) {
|
|
@@ -715,11 +538,11 @@ const borderStyle = _ref => {
|
|
|
715
538
|
};
|
|
716
539
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
717
540
|
'data-garden-id': COMPONENT_ID$8,
|
|
718
|
-
'data-garden-version': '9.0.0-next.
|
|
541
|
+
'data-garden-version': '9.0.0-next.10'
|
|
719
542
|
}).withConfig({
|
|
720
543
|
displayName: "StyledSheet",
|
|
721
544
|
componentId: "sc-dx8ijk-0"
|
|
722
|
-
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => props.theme
|
|
545
|
+
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => reactTheming.getColorV8('background', 600 , props.theme), props => props.isOpen ? props.size : '0px', props => props.theme.fontSizes.md, props => borderStyle(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
723
546
|
StyledSheet.defaultProps = {
|
|
724
547
|
theme: reactTheming.DEFAULT_THEME
|
|
725
548
|
};
|
|
@@ -727,7 +550,7 @@ StyledSheet.defaultProps = {
|
|
|
727
550
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
728
551
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
729
552
|
'data-garden-id': COMPONENT_ID$7,
|
|
730
|
-
'data-garden-version': '9.0.0-next.
|
|
553
|
+
'data-garden-version': '9.0.0-next.10'
|
|
731
554
|
}).withConfig({
|
|
732
555
|
displayName: "StyledSheetWrapper",
|
|
733
556
|
componentId: "sc-f6x9zb-0"
|
|
@@ -754,11 +577,11 @@ StyledSheetWrapper.defaultProps = {
|
|
|
754
577
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
755
578
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
756
579
|
'data-garden-id': COMPONENT_ID$6,
|
|
757
|
-
'data-garden-version': '9.0.0-next.
|
|
580
|
+
'data-garden-version': '9.0.0-next.10'
|
|
758
581
|
}).withConfig({
|
|
759
582
|
displayName: "StyledSheetTitle",
|
|
760
583
|
componentId: "sc-1gogk75-0"
|
|
761
|
-
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
584
|
+
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
762
585
|
StyledSheetTitle.defaultProps = {
|
|
763
586
|
theme: reactTheming.DEFAULT_THEME
|
|
764
587
|
};
|
|
@@ -766,11 +589,11 @@ StyledSheetTitle.defaultProps = {
|
|
|
766
589
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
767
590
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
768
591
|
'data-garden-id': COMPONENT_ID$5,
|
|
769
|
-
'data-garden-version': '9.0.0-next.
|
|
592
|
+
'data-garden-version': '9.0.0-next.10'
|
|
770
593
|
}).withConfig({
|
|
771
594
|
displayName: "StyledSheetDescription",
|
|
772
595
|
componentId: "sc-1puglb6-0"
|
|
773
|
-
})(["line-height:", ";color:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => reactTheming.
|
|
596
|
+
})(["line-height:", ";color:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
774
597
|
StyledSheetDescription.defaultProps = {
|
|
775
598
|
theme: reactTheming.DEFAULT_THEME
|
|
776
599
|
};
|
|
@@ -778,7 +601,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
778
601
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
779
602
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
780
603
|
'data-garden-id': COMPONENT_ID$4,
|
|
781
|
-
'data-garden-version': '9.0.0-next.
|
|
604
|
+
'data-garden-version': '9.0.0-next.10'
|
|
782
605
|
}).withConfig({
|
|
783
606
|
displayName: "StyledSheetBody",
|
|
784
607
|
componentId: "sc-bt4eoj-0"
|
|
@@ -796,13 +619,13 @@ const BASE_MULTIPLIERS = {
|
|
|
796
619
|
const colorStyles = props => {
|
|
797
620
|
const backgroundColor = 'primaryHue';
|
|
798
621
|
const foregroundColor = 'neutralHue';
|
|
799
|
-
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.
|
|
622
|
+
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({
|
|
800
623
|
theme: props.theme
|
|
801
|
-
}), reactTheming.
|
|
624
|
+
}), reactTheming.getColorV8(backgroundColor, 600, props.theme, 0.2), reactTheming.getColorV8(foregroundColor, 800, props.theme));
|
|
802
625
|
};
|
|
803
626
|
const StyledSheetClose = styled__default.default.button.attrs({
|
|
804
627
|
'data-garden-id': COMPONENT_ID$3,
|
|
805
|
-
'data-garden-version': '9.0.0-next.
|
|
628
|
+
'data-garden-version': '9.0.0-next.10'
|
|
806
629
|
}).withConfig({
|
|
807
630
|
displayName: "StyledSheetClose",
|
|
808
631
|
componentId: "sc-1ab02oq-0"
|
|
@@ -814,11 +637,11 @@ StyledSheetClose.defaultProps = {
|
|
|
814
637
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
815
638
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
816
639
|
'data-garden-id': COMPONENT_ID$2,
|
|
817
|
-
'data-garden-version': '9.0.0-next.
|
|
640
|
+
'data-garden-version': '9.0.0-next.10'
|
|
818
641
|
}).withConfig({
|
|
819
642
|
displayName: "StyledSheetFooter",
|
|
820
643
|
componentId: "sc-2cktos-0"
|
|
821
|
-
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${reactTheming.
|
|
644
|
+
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * (props.isCompact ? 2.5 : 5), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
822
645
|
StyledSheetFooter.defaultProps = {
|
|
823
646
|
theme: reactTheming.DEFAULT_THEME
|
|
824
647
|
};
|
|
@@ -826,7 +649,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
826
649
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
827
650
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
828
651
|
'data-garden-id': COMPONENT_ID$1,
|
|
829
|
-
'data-garden-version': '9.0.0-next.
|
|
652
|
+
'data-garden-version': '9.0.0-next.10'
|
|
830
653
|
}).withConfig({
|
|
831
654
|
displayName: "StyledSheetFooterItem",
|
|
832
655
|
componentId: "sc-r9ixh-0"
|
|
@@ -838,142 +661,15 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
838
661
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
839
662
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
840
663
|
'data-garden-id': COMPONENT_ID,
|
|
841
|
-
'data-garden-version': '9.0.0-next.
|
|
664
|
+
'data-garden-version': '9.0.0-next.10'
|
|
842
665
|
}).withConfig({
|
|
843
666
|
displayName: "StyledSheetHeader",
|
|
844
667
|
componentId: "sc-o2ry8i-0"
|
|
845
|
-
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${reactTheming.
|
|
668
|
+
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}}`, 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;`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
|
|
846
669
|
StyledSheetHeader.defaultProps = {
|
|
847
670
|
theme: reactTheming.DEFAULT_THEME
|
|
848
671
|
};
|
|
849
672
|
|
|
850
|
-
const Chrome = React__namespace.default.forwardRef((_ref, ref) => {
|
|
851
|
-
let {
|
|
852
|
-
hue,
|
|
853
|
-
isFluid,
|
|
854
|
-
...props
|
|
855
|
-
} = _ref;
|
|
856
|
-
const theme = React.useContext(styled.ThemeContext);
|
|
857
|
-
const isLightMemoized = React.useMemo(() => {
|
|
858
|
-
if (hue) {
|
|
859
|
-
const backgroundColor = reactTheming.getColor(hue, 600, theme);
|
|
860
|
-
const LIGHT_COLOR = 'white';
|
|
861
|
-
return polished.readableColor(backgroundColor, LIGHT_COLOR, undefined, false ) === LIGHT_COLOR;
|
|
862
|
-
}
|
|
863
|
-
return false;
|
|
864
|
-
}, [hue, theme]);
|
|
865
|
-
const isLight = hue ? isLightMemoized : false;
|
|
866
|
-
const isDark = hue ? !isLightMemoized : false;
|
|
867
|
-
const chromeContextValue = React.useMemo(() => ({
|
|
868
|
-
hue: hue || 'chromeHue',
|
|
869
|
-
isLight,
|
|
870
|
-
isDark
|
|
871
|
-
}), [hue, isLight, isDark]);
|
|
872
|
-
const environment = reactTheming.useDocument(theme);
|
|
873
|
-
React.useEffect(() => {
|
|
874
|
-
if (environment && !isFluid) {
|
|
875
|
-
const htmlElement = environment.querySelector('html');
|
|
876
|
-
if (htmlElement) {
|
|
877
|
-
const defaultHtmlPosition = htmlElement.style.position;
|
|
878
|
-
htmlElement.style.position = 'fixed';
|
|
879
|
-
return () => {
|
|
880
|
-
htmlElement.style.position = defaultHtmlPosition;
|
|
881
|
-
};
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
return undefined;
|
|
885
|
-
}, [environment, isFluid]);
|
|
886
|
-
return React__namespace.default.createElement(ChromeContext.Provider, {
|
|
887
|
-
value: chromeContextValue
|
|
888
|
-
}, React__namespace.default.createElement(StyledChrome, _extends$3({
|
|
889
|
-
ref: ref
|
|
890
|
-
}, props)));
|
|
891
|
-
});
|
|
892
|
-
Chrome.displayName = 'Chrome';
|
|
893
|
-
Chrome.propTypes = {
|
|
894
|
-
hue: PropTypes__default.default.string
|
|
895
|
-
};
|
|
896
|
-
|
|
897
|
-
const SkipNav = React__namespace.default.forwardRef((_ref, ref) => {
|
|
898
|
-
let {
|
|
899
|
-
targetId,
|
|
900
|
-
zIndex,
|
|
901
|
-
children,
|
|
902
|
-
...props
|
|
903
|
-
} = _ref;
|
|
904
|
-
return React__namespace.default.createElement(StyledSkipNav, _extends$3({
|
|
905
|
-
href: `#${targetId}`,
|
|
906
|
-
zIndex: zIndex,
|
|
907
|
-
ref: ref
|
|
908
|
-
}, props), React__namespace.default.createElement(StyledSkipNavIcon, null), children);
|
|
909
|
-
});
|
|
910
|
-
SkipNav.displayName = 'SkipNav';
|
|
911
|
-
SkipNav.propTypes = {
|
|
912
|
-
targetId: PropTypes__default.default.string.isRequired,
|
|
913
|
-
zIndex: PropTypes__default.default.number
|
|
914
|
-
};
|
|
915
|
-
SkipNav.defaultProps = {
|
|
916
|
-
zIndex: 1
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
const BodyContext = React__namespace.default.createContext({
|
|
920
|
-
hasFooter: true
|
|
921
|
-
});
|
|
922
|
-
const useBodyContext = () => {
|
|
923
|
-
return React.useContext(BodyContext);
|
|
924
|
-
};
|
|
925
|
-
|
|
926
|
-
const Body$1 = React__namespace.default.forwardRef((_ref, ref) => {
|
|
927
|
-
let {
|
|
928
|
-
hasFooter,
|
|
929
|
-
...props
|
|
930
|
-
} = _ref;
|
|
931
|
-
const bodyContextValue = React.useMemo(() => ({
|
|
932
|
-
hasFooter: !!hasFooter
|
|
933
|
-
}), [hasFooter]);
|
|
934
|
-
return React__namespace.default.createElement(BodyContext.Provider, {
|
|
935
|
-
value: bodyContextValue
|
|
936
|
-
}, React__namespace.default.createElement(StyledBody, _extends$3({
|
|
937
|
-
ref: ref
|
|
938
|
-
}, props)));
|
|
939
|
-
});
|
|
940
|
-
Body$1.displayName = 'Body';
|
|
941
|
-
Body$1.propTypes = {
|
|
942
|
-
hasFooter: PropTypes__default.default.bool
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
946
|
-
const {
|
|
947
|
-
hasFooter
|
|
948
|
-
} = useBodyContext();
|
|
949
|
-
return React__namespace.default.createElement(StyledContent, _extends$3({
|
|
950
|
-
ref: ref,
|
|
951
|
-
hasFooter: hasFooter
|
|
952
|
-
}, props));
|
|
953
|
-
});
|
|
954
|
-
Content.displayName = 'Content';
|
|
955
|
-
|
|
956
|
-
const Main = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledMain, _extends$3({
|
|
957
|
-
ref: ref
|
|
958
|
-
}, props)));
|
|
959
|
-
Main.displayName = 'Main';
|
|
960
|
-
|
|
961
|
-
const Sidebar = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledSidebar, _extends$3({
|
|
962
|
-
ref: ref
|
|
963
|
-
}, props)));
|
|
964
|
-
Sidebar.displayName = 'Sidebar';
|
|
965
|
-
|
|
966
|
-
const Header$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, _extends$3({
|
|
967
|
-
ref: ref
|
|
968
|
-
}, props)));
|
|
969
|
-
Header$1.displayName = 'Header';
|
|
970
|
-
Header$1.propTypes = {
|
|
971
|
-
isStandalone: PropTypes__default.default.bool
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
const PLACEMENT = ['end', 'start'];
|
|
975
|
-
const PRODUCT = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
976
|
-
|
|
977
673
|
const HeaderItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
978
674
|
let {
|
|
979
675
|
hasLogo,
|
|
@@ -981,12 +677,12 @@ const HeaderItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
981
677
|
...other
|
|
982
678
|
} = _ref;
|
|
983
679
|
if (hasLogo) {
|
|
984
|
-
return React__namespace.default.createElement(StyledLogoHeaderItem,
|
|
680
|
+
return React__namespace.default.createElement(StyledLogoHeaderItem, Object.assign({
|
|
985
681
|
ref: ref,
|
|
986
682
|
product: product
|
|
987
683
|
}, other));
|
|
988
684
|
}
|
|
989
|
-
return React__namespace.default.createElement(StyledHeaderItem,
|
|
685
|
+
return React__namespace.default.createElement(StyledHeaderItem, Object.assign({
|
|
990
686
|
ref: ref
|
|
991
687
|
}, other));
|
|
992
688
|
});
|
|
@@ -995,7 +691,7 @@ HeaderItem.propTypes = {
|
|
|
995
691
|
maxX: PropTypes__default.default.bool,
|
|
996
692
|
maxY: PropTypes__default.default.bool,
|
|
997
693
|
isRound: PropTypes__default.default.bool,
|
|
998
|
-
product: PropTypes__default.default.oneOf(
|
|
694
|
+
product: PropTypes__default.default.oneOf(PRODUCTS),
|
|
999
695
|
hasLogo: PropTypes__default.default.bool
|
|
1000
696
|
};
|
|
1001
697
|
|
|
@@ -1016,14 +712,14 @@ const HeaderItemIcon = _ref => {
|
|
|
1016
712
|
...iconProps
|
|
1017
713
|
});
|
|
1018
714
|
};
|
|
1019
|
-
return React__namespace.default.createElement(StyledHeaderItemIcon,
|
|
715
|
+
return React__namespace.default.createElement(StyledHeaderItemIcon, Object.assign({
|
|
1020
716
|
as: Icon
|
|
1021
717
|
}, props));
|
|
1022
718
|
}
|
|
1023
719
|
return null;
|
|
1024
720
|
};
|
|
1025
721
|
|
|
1026
|
-
const HeaderItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemText,
|
|
722
|
+
const HeaderItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemText, Object.assign({
|
|
1027
723
|
ref: ref
|
|
1028
724
|
}, props)));
|
|
1029
725
|
HeaderItemText.displayName = 'HeaderItemText';
|
|
@@ -1031,17 +727,12 @@ HeaderItemText.propTypes = {
|
|
|
1031
727
|
isClipped: PropTypes__default.default.bool
|
|
1032
728
|
};
|
|
1033
729
|
|
|
1034
|
-
const HeaderItemWrapper = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemWrapper,
|
|
730
|
+
const HeaderItemWrapper = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemWrapper, Object.assign({
|
|
1035
731
|
ref: ref
|
|
1036
732
|
}, props)));
|
|
1037
733
|
HeaderItemWrapper.displayName = 'HeaderItemWrapper';
|
|
1038
734
|
|
|
1039
|
-
const
|
|
1040
|
-
ref: ref
|
|
1041
|
-
}, props)));
|
|
1042
|
-
Footer$1.displayName = 'Footer';
|
|
1043
|
-
|
|
1044
|
-
const FooterItem$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooterItem, _extends$3({
|
|
735
|
+
const FooterItem$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooterItem, Object.assign({
|
|
1045
736
|
ref: ref
|
|
1046
737
|
}, props)));
|
|
1047
738
|
FooterItem$1.displayName = 'FooterItem';
|
|
@@ -1053,28 +744,16 @@ const useNavContext = () => {
|
|
|
1053
744
|
return React.useContext(NavContext);
|
|
1054
745
|
};
|
|
1055
746
|
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
hue,
|
|
1059
|
-
isLight,
|
|
1060
|
-
isDark
|
|
1061
|
-
} = useChromeContext();
|
|
1062
|
-
const navContextValue = React.useMemo(() => ({
|
|
1063
|
-
isExpanded: !!props.isExpanded
|
|
1064
|
-
}), [props.isExpanded]);
|
|
1065
|
-
return React__namespace.default.createElement(NavContext.Provider, {
|
|
1066
|
-
value: navContextValue
|
|
1067
|
-
}, React__namespace.default.createElement(StyledNav, _extends$3({
|
|
1068
|
-
ref: ref
|
|
1069
|
-
}, props, {
|
|
1070
|
-
hue: hue,
|
|
1071
|
-
isLight: isLight,
|
|
1072
|
-
isDark: isDark
|
|
1073
|
-
})));
|
|
747
|
+
const ChromeContext = React__namespace.default.createContext({
|
|
748
|
+
hue: 'chromeHue'
|
|
1074
749
|
});
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
750
|
+
const useChromeContext = () => {
|
|
751
|
+
return React.useContext(ChromeContext);
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
const NavListContext = React__namespace.default.createContext(undefined);
|
|
755
|
+
const useNavListContext = () => {
|
|
756
|
+
return React.useContext(NavListContext);
|
|
1078
757
|
};
|
|
1079
758
|
|
|
1080
759
|
const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
@@ -1092,34 +771,41 @@ const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1092
771
|
const {
|
|
1093
772
|
isExpanded
|
|
1094
773
|
} = useNavContext();
|
|
774
|
+
const navListContext = useNavListContext();
|
|
1095
775
|
const ariaCurrent = other.isCurrent || undefined;
|
|
776
|
+
const hasList = navListContext?.hasList;
|
|
777
|
+
let retVal;
|
|
1096
778
|
if (hasLogo) {
|
|
1097
|
-
|
|
779
|
+
retVal = React__namespace.default.createElement(StyledLogoNavItem, Object.assign({
|
|
1098
780
|
ref: ref,
|
|
1099
781
|
isDark: isDark,
|
|
1100
782
|
isLight: isLight,
|
|
1101
783
|
product: product,
|
|
1102
784
|
"aria-current": ariaCurrent
|
|
1103
785
|
}, other));
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
return React__namespace.default.createElement(StyledBrandmarkNavItem, _extends$3({
|
|
786
|
+
} else if (hasBrandmark) {
|
|
787
|
+
retVal = React__namespace.default.createElement(StyledBrandmarkNavItem, Object.assign({
|
|
1107
788
|
ref: ref
|
|
1108
789
|
}, other));
|
|
790
|
+
} else {
|
|
791
|
+
retVal = React__namespace.default.createElement(StyledNavButton, Object.assign({
|
|
792
|
+
tabIndex: 0,
|
|
793
|
+
ref: ref,
|
|
794
|
+
isExpanded: isExpanded,
|
|
795
|
+
hue: hue,
|
|
796
|
+
isDark: isDark,
|
|
797
|
+
isLight: isLight,
|
|
798
|
+
"aria-current": ariaCurrent
|
|
799
|
+
}, other));
|
|
1109
800
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
hue: hue,
|
|
1115
|
-
isDark: isDark,
|
|
1116
|
-
isLight: isLight,
|
|
1117
|
-
"aria-current": ariaCurrent
|
|
1118
|
-
}, other));
|
|
801
|
+
if (hasList) {
|
|
802
|
+
retVal = React__namespace.default.createElement(StyledNavListItem, null, retVal);
|
|
803
|
+
}
|
|
804
|
+
return retVal;
|
|
1119
805
|
});
|
|
1120
806
|
NavItem.displayName = 'NavItem';
|
|
1121
807
|
NavItem.propTypes = {
|
|
1122
|
-
product: PropTypes__default.default.oneOf(
|
|
808
|
+
product: PropTypes__default.default.oneOf(PRODUCTS),
|
|
1123
809
|
hasLogo: PropTypes__default.default.bool,
|
|
1124
810
|
hasBrandmark: PropTypes__default.default.bool
|
|
1125
811
|
};
|
|
@@ -1141,7 +827,7 @@ const NavItemIcon = _ref => {
|
|
|
1141
827
|
...iconProps
|
|
1142
828
|
});
|
|
1143
829
|
};
|
|
1144
|
-
return React__namespace.default.createElement(StyledNavItemIcon,
|
|
830
|
+
return React__namespace.default.createElement(StyledNavItemIcon, Object.assign({
|
|
1145
831
|
as: Icon
|
|
1146
832
|
}, props));
|
|
1147
833
|
}
|
|
@@ -1152,7 +838,7 @@ const NavItemText = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1152
838
|
const {
|
|
1153
839
|
isExpanded
|
|
1154
840
|
} = useNavContext();
|
|
1155
|
-
return React__namespace.default.createElement(StyledNavItemText,
|
|
841
|
+
return React__namespace.default.createElement(StyledNavItemText, Object.assign({
|
|
1156
842
|
ref: ref,
|
|
1157
843
|
isExpanded: isExpanded
|
|
1158
844
|
}, props));
|
|
@@ -1162,113 +848,186 @@ NavItemText.propTypes = {
|
|
|
1162
848
|
isWrapped: PropTypes__default.default.bool
|
|
1163
849
|
};
|
|
1164
850
|
|
|
1165
|
-
const
|
|
1166
|
-
|
|
851
|
+
const Chrome = React__namespace.default.forwardRef((_ref, ref) => {
|
|
852
|
+
let {
|
|
1167
853
|
hue,
|
|
854
|
+
isFluid,
|
|
855
|
+
...props
|
|
856
|
+
} = _ref;
|
|
857
|
+
const theme = React.useContext(styled.ThemeContext);
|
|
858
|
+
const isLightMemoized = React.useMemo(() => {
|
|
859
|
+
if (hue) {
|
|
860
|
+
const backgroundColor = reactTheming.getColorV8(hue, 600, theme);
|
|
861
|
+
const LIGHT_COLOR = 'white';
|
|
862
|
+
return polished.readableColor(backgroundColor, LIGHT_COLOR, undefined, false ) === LIGHT_COLOR;
|
|
863
|
+
}
|
|
864
|
+
return false;
|
|
865
|
+
}, [hue, theme]);
|
|
866
|
+
const isLight = hue ? isLightMemoized : false;
|
|
867
|
+
const isDark = hue ? !isLightMemoized : false;
|
|
868
|
+
const chromeContextValue = React.useMemo(() => ({
|
|
869
|
+
hue: hue || 'chromeHue',
|
|
1168
870
|
isLight,
|
|
1169
871
|
isDark
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
872
|
+
}), [hue, isLight, isDark]);
|
|
873
|
+
const environment = reactTheming.useDocument(theme);
|
|
874
|
+
React.useEffect(() => {
|
|
875
|
+
if (environment && !isFluid) {
|
|
876
|
+
const htmlElement = environment.querySelector('html');
|
|
877
|
+
if (htmlElement) {
|
|
878
|
+
const defaultHtmlPosition = htmlElement.style.position;
|
|
879
|
+
htmlElement.style.position = 'fixed';
|
|
880
|
+
return () => {
|
|
881
|
+
htmlElement.style.position = defaultHtmlPosition;
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
return undefined;
|
|
886
|
+
}, [environment, isFluid]);
|
|
887
|
+
return React__namespace.default.createElement(ChromeContext.Provider, {
|
|
888
|
+
value: chromeContextValue
|
|
889
|
+
}, React__namespace.default.createElement(StyledChrome, Object.assign({
|
|
890
|
+
ref: ref
|
|
891
|
+
}, props)));
|
|
892
|
+
});
|
|
893
|
+
Chrome.displayName = 'Chrome';
|
|
894
|
+
Chrome.propTypes = {
|
|
895
|
+
hue: PropTypes__default.default.string
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
const SkipNav = React__namespace.default.forwardRef((_ref, ref) => {
|
|
899
|
+
let {
|
|
900
|
+
targetId,
|
|
901
|
+
zIndex,
|
|
902
|
+
children,
|
|
903
|
+
...props
|
|
904
|
+
} = _ref;
|
|
905
|
+
return React__namespace.default.createElement(StyledSkipNav, Object.assign({
|
|
906
|
+
href: `#${targetId}`,
|
|
907
|
+
zIndex: zIndex,
|
|
908
|
+
ref: ref
|
|
909
|
+
}, props), React__namespace.default.createElement(StyledSkipNavIcon, null), children);
|
|
910
|
+
});
|
|
911
|
+
SkipNav.displayName = 'SkipNav';
|
|
912
|
+
SkipNav.propTypes = {
|
|
913
|
+
targetId: PropTypes__default.default.string.isRequired,
|
|
914
|
+
zIndex: PropTypes__default.default.number
|
|
915
|
+
};
|
|
916
|
+
SkipNav.defaultProps = {
|
|
917
|
+
zIndex: 1
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
const BodyContext = React__namespace.default.createContext(undefined);
|
|
921
|
+
const useBodyContext = () => {
|
|
922
|
+
return React.useContext(BodyContext);
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
const Body$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
926
|
+
const [hasFooter, setHasFooter] = React.useState(false);
|
|
927
|
+
const bodyContextValue = React.useMemo(() => ({
|
|
928
|
+
hasFooter,
|
|
929
|
+
setHasFooter
|
|
930
|
+
}), [hasFooter, setHasFooter]);
|
|
931
|
+
return React__namespace.default.createElement(BodyContext.Provider, {
|
|
932
|
+
value: bodyContextValue
|
|
933
|
+
}, React__namespace.default.createElement(StyledBody, Object.assign({
|
|
934
|
+
ref: ref
|
|
935
|
+
}, props)));
|
|
1177
936
|
});
|
|
1178
|
-
|
|
937
|
+
Body$1.displayName = 'Body';
|
|
1179
938
|
|
|
1180
|
-
const
|
|
939
|
+
const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
1181
940
|
const {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
return React__namespace.default.createElement(StyledSubNavItem, _extends$3({
|
|
941
|
+
hasFooter
|
|
942
|
+
} = useBodyContext() || {};
|
|
943
|
+
return React__namespace.default.createElement(StyledContent, Object.assign({
|
|
1186
944
|
ref: ref,
|
|
1187
|
-
|
|
1188
|
-
isLight: isLight
|
|
945
|
+
hasFooter: hasFooter
|
|
1189
946
|
}, props));
|
|
1190
947
|
});
|
|
1191
|
-
|
|
1192
|
-
SubNavItem.propTypes = {
|
|
1193
|
-
isCurrent: PropTypes__default.default.bool
|
|
1194
|
-
};
|
|
948
|
+
Content.displayName = 'Content';
|
|
1195
949
|
|
|
1196
|
-
const
|
|
950
|
+
const Main = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledMain, Object.assign({
|
|
1197
951
|
ref: ref
|
|
1198
952
|
}, props)));
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
953
|
+
Main.displayName = 'Main';
|
|
954
|
+
|
|
955
|
+
const HeaderComponent = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, Object.assign({
|
|
956
|
+
ref: ref
|
|
957
|
+
}, props)));
|
|
958
|
+
HeaderComponent.displayName = 'Header';
|
|
959
|
+
HeaderComponent.propTypes = {
|
|
960
|
+
isStandalone: PropTypes__default.default.bool
|
|
1202
961
|
};
|
|
962
|
+
const Header$1 = HeaderComponent;
|
|
963
|
+
Header$1.Item = HeaderItem;
|
|
964
|
+
Header$1.ItemIcon = HeaderItemIcon;
|
|
965
|
+
Header$1.ItemText = HeaderItemText;
|
|
966
|
+
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
1203
967
|
|
|
1204
|
-
const
|
|
1205
|
-
let {
|
|
1206
|
-
header,
|
|
1207
|
-
children,
|
|
1208
|
-
isExpanded: controlledExpanded,
|
|
1209
|
-
onChange,
|
|
1210
|
-
...other
|
|
1211
|
-
} = _ref;
|
|
1212
|
-
const {
|
|
1213
|
-
isDark,
|
|
1214
|
-
isLight
|
|
1215
|
-
} = useChromeContext();
|
|
1216
|
-
const panelRef = React.createRef();
|
|
1217
|
-
const [internalExpanded, setInternalExpanded] = React.useState(controlledExpanded);
|
|
1218
|
-
const expanded = containerUtilities.getControlledValue(controlledExpanded, internalExpanded);
|
|
1219
|
-
const value = 0;
|
|
1220
|
-
const expandedSections = expanded ? [value] : [];
|
|
968
|
+
const FooterComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
1221
969
|
const {
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
} = containerAccordion.useAccordion({
|
|
1226
|
-
sections: [value],
|
|
1227
|
-
expandedSections,
|
|
1228
|
-
onChange: () => {
|
|
1229
|
-
const isExpanded = expandedSections.length === 0;
|
|
1230
|
-
if (onChange) {
|
|
1231
|
-
onChange(isExpanded);
|
|
1232
|
-
} else {
|
|
1233
|
-
setInternalExpanded(isExpanded);
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
});
|
|
970
|
+
hasFooter,
|
|
971
|
+
setHasFooter
|
|
972
|
+
} = useBodyContext() || {};
|
|
1237
973
|
React.useEffect(() => {
|
|
1238
|
-
if (
|
|
1239
|
-
|
|
974
|
+
if (!hasFooter && setHasFooter) {
|
|
975
|
+
setHasFooter(true);
|
|
1240
976
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
977
|
+
return () => {
|
|
978
|
+
if (hasFooter && setHasFooter) {
|
|
979
|
+
setHasFooter(false);
|
|
980
|
+
}
|
|
981
|
+
};
|
|
982
|
+
}, [hasFooter, setHasFooter]);
|
|
983
|
+
return React__namespace.default.createElement(StyledFooter, Object.assign({
|
|
984
|
+
ref: ref
|
|
985
|
+
}, props));
|
|
986
|
+
});
|
|
987
|
+
FooterComponent.displayName = 'Footer';
|
|
988
|
+
const Footer$1 = FooterComponent;
|
|
989
|
+
Footer$1.Item = FooterItem$1;
|
|
990
|
+
|
|
991
|
+
const NavList = React__namespace.default.forwardRef((props, ref) => {
|
|
992
|
+
const contextValue = React.useMemo(() => ({
|
|
993
|
+
hasList: true
|
|
994
|
+
}), []);
|
|
995
|
+
return React__namespace.default.createElement(NavListContext.Provider, {
|
|
996
|
+
value: contextValue
|
|
997
|
+
}, React__namespace.default.createElement(StyledNavList, Object.assign({
|
|
1243
998
|
ref: ref
|
|
1244
|
-
},
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
999
|
+
}, props)));
|
|
1000
|
+
});
|
|
1001
|
+
NavList.displayName = 'Nav';
|
|
1002
|
+
|
|
1003
|
+
const NavComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
1004
|
+
const {
|
|
1005
|
+
hue,
|
|
1006
|
+
isLight,
|
|
1007
|
+
isDark
|
|
1008
|
+
} = useChromeContext();
|
|
1009
|
+
const navContextValue = React.useMemo(() => ({
|
|
1010
|
+
isExpanded: !!props.isExpanded
|
|
1011
|
+
}), [props.isExpanded]);
|
|
1012
|
+
return React__namespace.default.createElement(NavContext.Provider, {
|
|
1013
|
+
value: navContextValue
|
|
1014
|
+
}, React__namespace.default.createElement(StyledNav, Object.assign({
|
|
1015
|
+
ref: ref
|
|
1016
|
+
}, props, {
|
|
1017
|
+
hue: hue,
|
|
1248
1018
|
isLight: isLight,
|
|
1249
|
-
|
|
1250
|
-
}
|
|
1251
|
-
...other,
|
|
1252
|
-
role: null,
|
|
1253
|
-
tabIndex: null,
|
|
1254
|
-
value
|
|
1255
|
-
}), {
|
|
1256
|
-
type: "button"
|
|
1257
|
-
}), React__namespace.default.createElement(React__namespace.default.Fragment, null, header, React__namespace.default.createElement(StyledSubNavItemIconWrapper, {
|
|
1258
|
-
isExpanded: expanded
|
|
1259
|
-
}, React__namespace.default.createElement(StyledSubNavItemIcon, null))))), React__namespace.default.createElement(StyledSubNavPanel, _extends$3({
|
|
1260
|
-
isHidden: !expanded
|
|
1261
|
-
}, getPanelProps({
|
|
1262
|
-
ref: panelRef,
|
|
1263
|
-
value
|
|
1264
|
-
})), children));
|
|
1019
|
+
isDark: isDark
|
|
1020
|
+
})));
|
|
1265
1021
|
});
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
isExpanded: PropTypes__default.default.bool
|
|
1269
|
-
onChange: PropTypes__default.default.func
|
|
1022
|
+
NavComponent.displayName = 'Nav';
|
|
1023
|
+
NavComponent.propTypes = {
|
|
1024
|
+
isExpanded: PropTypes__default.default.bool
|
|
1270
1025
|
};
|
|
1271
|
-
|
|
1026
|
+
const Nav = NavComponent;
|
|
1027
|
+
Nav.List = NavList;
|
|
1028
|
+
Nav.Item = NavItem;
|
|
1029
|
+
Nav.ItemIcon = NavItemIcon;
|
|
1030
|
+
Nav.ItemText = NavItemText;
|
|
1272
1031
|
|
|
1273
1032
|
const SheetContext = React.createContext({
|
|
1274
1033
|
setIsCloseButtonPresent() {}
|
|
@@ -1306,7 +1065,7 @@ const SheetTitle = React.forwardRef((_ref, ref) => {
|
|
|
1306
1065
|
const {
|
|
1307
1066
|
titleId
|
|
1308
1067
|
} = useSheetContext();
|
|
1309
|
-
return React__namespace.default.createElement(StyledSheetTitle,
|
|
1068
|
+
return React__namespace.default.createElement(StyledSheetTitle, Object.assign({
|
|
1310
1069
|
id: id || titleId,
|
|
1311
1070
|
ref: ref
|
|
1312
1071
|
}, props));
|
|
@@ -1322,7 +1081,7 @@ const SheetDescription = React.forwardRef((_ref, ref) => {
|
|
|
1322
1081
|
const {
|
|
1323
1082
|
descriptionId
|
|
1324
1083
|
} = useSheetContext();
|
|
1325
|
-
return React__namespace.default.createElement(StyledSheetDescription,
|
|
1084
|
+
return React__namespace.default.createElement(StyledSheetDescription, Object.assign({
|
|
1326
1085
|
id: id || descriptionId,
|
|
1327
1086
|
ref: ref
|
|
1328
1087
|
}, props));
|
|
@@ -1334,7 +1093,7 @@ const SheetHeader = React.forwardRef((props, ref) => {
|
|
|
1334
1093
|
const {
|
|
1335
1094
|
isCloseButtonPresent
|
|
1336
1095
|
} = useSheetContext();
|
|
1337
|
-
return React__namespace.default.createElement(StyledSheetHeader,
|
|
1096
|
+
return React__namespace.default.createElement(StyledSheetHeader, Object.assign({
|
|
1338
1097
|
ref: ref,
|
|
1339
1098
|
isCloseButtonPresent: isCloseButtonPresent
|
|
1340
1099
|
}, props));
|
|
@@ -1343,7 +1102,7 @@ SheetHeader.displayName = 'Sheet.Header';
|
|
|
1343
1102
|
const Header = SheetHeader;
|
|
1344
1103
|
|
|
1345
1104
|
const SheetBody = React.forwardRef((props, ref) => {
|
|
1346
|
-
return React__namespace.default.createElement(StyledSheetBody,
|
|
1105
|
+
return React__namespace.default.createElement(StyledSheetBody, Object.assign({
|
|
1347
1106
|
ref: ref
|
|
1348
1107
|
}, props));
|
|
1349
1108
|
});
|
|
@@ -1351,7 +1110,7 @@ SheetBody.displayName = 'Sheet.Body';
|
|
|
1351
1110
|
const Body = SheetBody;
|
|
1352
1111
|
|
|
1353
1112
|
const SheetFooter = React.forwardRef((props, ref) => {
|
|
1354
|
-
return React__namespace.default.createElement(StyledSheetFooter,
|
|
1113
|
+
return React__namespace.default.createElement(StyledSheetFooter, Object.assign({
|
|
1355
1114
|
ref: ref
|
|
1356
1115
|
}, props));
|
|
1357
1116
|
});
|
|
@@ -1359,7 +1118,7 @@ SheetFooter.displayName = 'Sheet.Footer';
|
|
|
1359
1118
|
const Footer = SheetFooter;
|
|
1360
1119
|
|
|
1361
1120
|
const SheetFooterItem = React.forwardRef((props, ref) => {
|
|
1362
|
-
return React__namespace.default.createElement(StyledSheetFooterItem,
|
|
1121
|
+
return React__namespace.default.createElement(StyledSheetFooterItem, Object.assign({
|
|
1363
1122
|
ref: ref
|
|
1364
1123
|
}, props));
|
|
1365
1124
|
});
|
|
@@ -1391,7 +1150,7 @@ const SheetClose = React.forwardRef((props, ref) => {
|
|
|
1391
1150
|
setIsCloseButtonPresent(true);
|
|
1392
1151
|
return () => setIsCloseButtonPresent(false);
|
|
1393
1152
|
}, [setIsCloseButtonPresent]);
|
|
1394
|
-
return React__namespace.default.createElement(StyledSheetClose,
|
|
1153
|
+
return React__namespace.default.createElement(StyledSheetClose, Object.assign({
|
|
1395
1154
|
"aria-label": "Close Sheet",
|
|
1396
1155
|
ref: ref
|
|
1397
1156
|
}, props), React__namespace.default.createElement(SvgXStroke, null));
|
|
@@ -1414,7 +1173,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1414
1173
|
const sheetRef = React.useRef(null);
|
|
1415
1174
|
const seed = reactUid.useUIDSeed();
|
|
1416
1175
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1417
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1176
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.10'}`), [id, seed]);
|
|
1418
1177
|
const titleId = `${idPrefix}--title`;
|
|
1419
1178
|
const descriptionId = `${idPrefix}--description`;
|
|
1420
1179
|
const sheetContext = React.useMemo(() => ({
|
|
@@ -1431,7 +1190,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1431
1190
|
});
|
|
1432
1191
|
return React__namespace.default.createElement(SheetContext.Provider, {
|
|
1433
1192
|
value: sheetContext
|
|
1434
|
-
}, React__namespace.default.createElement(StyledSheet,
|
|
1193
|
+
}, React__namespace.default.createElement(StyledSheet, Object.assign({
|
|
1435
1194
|
isOpen: isOpen,
|
|
1436
1195
|
isAnimated: isAnimated,
|
|
1437
1196
|
placement: placement,
|
|
@@ -1474,7 +1233,6 @@ Sheet.Title = Title;
|
|
|
1474
1233
|
|
|
1475
1234
|
exports.Body = Body$1;
|
|
1476
1235
|
exports.Chrome = Chrome;
|
|
1477
|
-
exports.CollapsibleSubNavItem = CollapsibleSubNavItem;
|
|
1478
1236
|
exports.Content = Content;
|
|
1479
1237
|
exports.Footer = Footer$1;
|
|
1480
1238
|
exports.FooterItem = FooterItem$1;
|
|
@@ -1488,10 +1246,6 @@ exports.Nav = Nav;
|
|
|
1488
1246
|
exports.NavItem = NavItem;
|
|
1489
1247
|
exports.NavItemIcon = NavItemIcon;
|
|
1490
1248
|
exports.NavItemText = NavItemText;
|
|
1491
|
-
exports.PRODUCTS =
|
|
1249
|
+
exports.PRODUCTS = PRODUCTS;
|
|
1492
1250
|
exports.Sheet = Sheet;
|
|
1493
|
-
exports.Sidebar = Sidebar;
|
|
1494
1251
|
exports.SkipNav = SkipNav;
|
|
1495
|
-
exports.SubNav = SubNav;
|
|
1496
|
-
exports.SubNavItem = SubNavItem;
|
|
1497
|
-
exports.SubNavItemText = SubNavItemText;
|