@zendeskgarden/react-chrome 9.0.0-next.6 → 9.0.0-next.8
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 +13 -10
- 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 +47 -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 +48 -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 +209 -471
- package/dist/typings/elements/nav/Nav.d.ts +2 -0
- package/dist/typings/elements/{body/Sidebar.d.ts → nav/NavList.d.ts} +2 -2
- package/dist/typings/index.d.ts +1 -6
- 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 +1 -24
- package/dist/typings/utils/useNavListContext.d.ts +13 -0
- package/package.json +5 -7
- package/dist/index.esm.js +0 -1473
- package/dist/typings/elements/subnav/CollapsibleSubNavItem.d.ts +0 -14
- package/dist/typings/elements/subnav/SubNav.d.ts +0 -19
- package/dist/typings/elements/subnav/SubNavItem.d.ts +0 -14
- package/dist/typings/elements/subnav/SubNavItemText.d.ts +0 -14
- 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,10 +1,9 @@
|
|
|
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');
|
|
@@ -12,8 +11,6 @@ var PropTypes = require('prop-types');
|
|
|
12
11
|
var styled = require('styled-components');
|
|
13
12
|
var reactTheming = require('@zendeskgarden/react-theming');
|
|
14
13
|
var polished = require('polished');
|
|
15
|
-
var containerAccordion = require('@zendeskgarden/container-accordion');
|
|
16
|
-
var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
17
14
|
var reactUid = require('react-uid');
|
|
18
15
|
var reactMergeRefs = require('react-merge-refs');
|
|
19
16
|
var activeElement = require('dom-helpers/activeElement');
|
|
@@ -43,57 +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
|
-
function _extends$3() {
|
|
47
|
-
_extends$3 = Object.assign ? Object.assign.bind() : function (target) {
|
|
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
43
|
const PLACEMENT = ['end', 'start'];
|
|
62
44
|
const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
63
45
|
|
|
64
|
-
const COMPONENT_ID$
|
|
46
|
+
const COMPONENT_ID$w = 'chrome.chrome';
|
|
65
47
|
const StyledChrome = styled__default.default.div.attrs({
|
|
66
|
-
'data-garden-id': COMPONENT_ID$
|
|
67
|
-
'data-garden-version': '9.0.0-next.
|
|
48
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
49
|
+
'data-garden-version': '9.0.0-next.8'
|
|
68
50
|
}).withConfig({
|
|
69
51
|
displayName: "StyledChrome",
|
|
70
52
|
componentId: "sc-1uqm6u6-0"
|
|
71
|
-
})(["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));
|
|
72
54
|
StyledChrome.defaultProps = {
|
|
73
55
|
theme: reactTheming.DEFAULT_THEME
|
|
74
56
|
};
|
|
75
57
|
|
|
76
|
-
const COMPONENT_ID$
|
|
58
|
+
const COMPONENT_ID$v = 'chrome.header_item_icon';
|
|
77
59
|
const StyledHeaderItemIcon = styled__default.default.div.attrs({
|
|
78
|
-
'data-garden-id': COMPONENT_ID$
|
|
79
|
-
'data-garden-version': '9.0.0-next.
|
|
60
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
61
|
+
'data-garden-version': '9.0.0-next.8'
|
|
80
62
|
}).withConfig({
|
|
81
63
|
displayName: "StyledHeaderItemIcon",
|
|
82
64
|
componentId: "sc-1jhhp6z-0"
|
|
83
|
-
})(["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));
|
|
84
66
|
StyledHeaderItemIcon.defaultProps = {
|
|
85
67
|
theme: reactTheming.DEFAULT_THEME
|
|
86
68
|
};
|
|
87
69
|
|
|
88
|
-
const COMPONENT_ID$
|
|
70
|
+
const COMPONENT_ID$u = 'chrome.base_header_item';
|
|
89
71
|
const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
|
|
90
|
-
const sizeStyles$
|
|
72
|
+
const sizeStyles$3 = props => {
|
|
91
73
|
const size = props.theme.space.base * 7.5;
|
|
92
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));
|
|
93
75
|
};
|
|
94
76
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
95
|
-
'data-garden-id': COMPONENT_ID$
|
|
96
|
-
'data-garden-version': '9.0.0-next.
|
|
77
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
78
|
+
'data-garden-version': '9.0.0-next.8'
|
|
97
79
|
}).withConfig({
|
|
98
80
|
displayName: "StyledBaseHeaderItem",
|
|
99
81
|
componentId: "sc-1qua7h6-0"
|
|
@@ -105,26 +87,26 @@ const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
|
105
87
|
return '0';
|
|
106
88
|
}
|
|
107
89
|
return props.theme.borderRadii.md;
|
|
108
|
-
}, sizeStyles$
|
|
90
|
+
}, sizeStyles$3, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$u, props));
|
|
109
91
|
StyledBaseHeaderItem.defaultProps = {
|
|
110
92
|
theme: reactTheming.DEFAULT_THEME
|
|
111
93
|
};
|
|
112
94
|
|
|
113
|
-
const COMPONENT_ID$
|
|
95
|
+
const COMPONENT_ID$t = 'chrome.header_item_text';
|
|
114
96
|
const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
115
97
|
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
116
|
-
'data-garden-id': COMPONENT_ID$
|
|
117
|
-
'data-garden-version': '9.0.0-next.
|
|
98
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
99
|
+
'data-garden-version': '9.0.0-next.8'
|
|
118
100
|
}).withConfig({
|
|
119
101
|
displayName: "StyledHeaderItemText",
|
|
120
102
|
componentId: "sc-goz7la-0"
|
|
121
|
-
})(["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));
|
|
122
104
|
StyledHeaderItemText.defaultProps = {
|
|
123
105
|
theme: reactTheming.DEFAULT_THEME
|
|
124
106
|
};
|
|
125
107
|
|
|
126
|
-
const COMPONENT_ID$
|
|
127
|
-
const colorStyles$
|
|
108
|
+
const COMPONENT_ID$s = 'chrome.nav';
|
|
109
|
+
const colorStyles$4 = props => {
|
|
128
110
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
129
111
|
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
130
112
|
const foregroundColor = props.isLight ? props.theme.palette.black : props.theme.palette.white;
|
|
@@ -137,17 +119,17 @@ const getExpandedNavWidth = () => {
|
|
|
137
119
|
return `200px`;
|
|
138
120
|
};
|
|
139
121
|
const StyledNav = styled__default.default.nav.attrs({
|
|
140
|
-
'data-garden-id': COMPONENT_ID$
|
|
141
|
-
'data-garden-version': '9.0.0-next.
|
|
122
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
123
|
+
'data-garden-version': '9.0.0-next.8'
|
|
142
124
|
}).withConfig({
|
|
143
125
|
displayName: "StyledNav",
|
|
144
126
|
componentId: "sc-6j462r-0"
|
|
145
|
-
})(["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));
|
|
146
128
|
StyledNav.defaultProps = {
|
|
147
129
|
theme: reactTheming.DEFAULT_THEME
|
|
148
130
|
};
|
|
149
131
|
|
|
150
|
-
const COMPONENT_ID$
|
|
132
|
+
const COMPONENT_ID$r = 'chrome.header_item';
|
|
151
133
|
const retrieveProductColor$1 = props => {
|
|
152
134
|
switch (props.product) {
|
|
153
135
|
case 'chat':
|
|
@@ -169,44 +151,44 @@ const retrieveProductColor$1 = props => {
|
|
|
169
151
|
}
|
|
170
152
|
};
|
|
171
153
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
172
|
-
'data-garden-id': COMPONENT_ID$
|
|
173
|
-
'data-garden-version': '9.0.0-next.
|
|
154
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
155
|
+
'data-garden-version': '9.0.0-next.8',
|
|
174
156
|
as: 'div'
|
|
175
157
|
}).withConfig({
|
|
176
158
|
displayName: "StyledLogoHeaderItem",
|
|
177
159
|
componentId: "sc-1n1d1yv-0"
|
|
178
|
-
})(["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$
|
|
160
|
+
})(["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));
|
|
179
161
|
StyledLogoHeaderItem.defaultProps = {
|
|
180
162
|
theme: reactTheming.DEFAULT_THEME
|
|
181
163
|
};
|
|
182
164
|
|
|
183
|
-
const COMPONENT_ID$
|
|
165
|
+
const COMPONENT_ID$q = 'chrome.base_nav_item';
|
|
184
166
|
const getNavItemHeight = props => {
|
|
185
167
|
return `${props.theme.space.base * 13}px`;
|
|
186
168
|
};
|
|
187
|
-
const sizeStyles$
|
|
169
|
+
const sizeStyles$2 = props => {
|
|
188
170
|
const verticalPadding = polished.math(`(${getNavItemHeight(props)} - ${props.theme.iconSizes.lg}) / 2`);
|
|
189
171
|
const horizontalPadding = polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`);
|
|
190
172
|
return styled.css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
191
173
|
};
|
|
192
|
-
const StyledBaseNavItem = styled__default.default.
|
|
193
|
-
'data-garden-id': COMPONENT_ID$
|
|
194
|
-
'data-garden-version': '9.0.0-next.
|
|
174
|
+
const StyledBaseNavItem = styled__default.default.div.attrs({
|
|
175
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
176
|
+
'data-garden-version': '9.0.0-next.8'
|
|
195
177
|
}).withConfig({
|
|
196
178
|
displayName: "StyledBaseNavItem",
|
|
197
179
|
componentId: "sc-zvo43f-0"
|
|
198
|
-
})(["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;
|
|
180
|
+
})(["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));
|
|
199
181
|
StyledBaseNavItem.defaultProps = {
|
|
200
182
|
theme: reactTheming.DEFAULT_THEME
|
|
201
183
|
};
|
|
202
184
|
|
|
203
|
-
const COMPONENT_ID$
|
|
185
|
+
const COMPONENT_ID$p = 'chrome.header';
|
|
204
186
|
const getHeaderHeight = props => {
|
|
205
187
|
return getNavItemHeight(props);
|
|
206
188
|
};
|
|
207
189
|
const StyledHeader = styled__default.default.header.attrs({
|
|
208
|
-
'data-garden-id': COMPONENT_ID$
|
|
209
|
-
'data-garden-version': '9.0.0-next.
|
|
190
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
191
|
+
'data-garden-version': '9.0.0-next.8'
|
|
210
192
|
}).withConfig({
|
|
211
193
|
displayName: "StyledHeader",
|
|
212
194
|
componentId: "sc-1cexpz-0"
|
|
@@ -214,17 +196,17 @@ const StyledHeader = styled__default.default.header.attrs({
|
|
|
214
196
|
${StyledLogoHeaderItem} {
|
|
215
197
|
display: inline-flex;
|
|
216
198
|
}
|
|
217
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
199
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
218
200
|
StyledHeader.defaultProps = {
|
|
219
201
|
theme: reactTheming.DEFAULT_THEME
|
|
220
202
|
};
|
|
221
203
|
|
|
222
|
-
const COMPONENT_ID$
|
|
204
|
+
const COMPONENT_ID$o = 'chrome.skipnav';
|
|
223
205
|
const animationStyles = () => {
|
|
224
206
|
const animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
225
207
|
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);
|
|
226
208
|
};
|
|
227
|
-
const colorStyles$
|
|
209
|
+
const colorStyles$3 = theme => {
|
|
228
210
|
const color = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
229
211
|
const borderColor = reactTheming.getColorV8('neutralHue', 300, theme);
|
|
230
212
|
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
@@ -234,7 +216,7 @@ const colorStyles$5 = theme => {
|
|
|
234
216
|
boxShadow
|
|
235
217
|
}));
|
|
236
218
|
};
|
|
237
|
-
const sizeStyles$
|
|
219
|
+
const sizeStyles$1 = props => {
|
|
238
220
|
const top = polished.math(`${getHeaderHeight(props)} / 2`);
|
|
239
221
|
const padding = `${props.theme.space.base * 5}px`;
|
|
240
222
|
const paddingStart = `${props.theme.space.base * 4}px`;
|
|
@@ -243,161 +225,173 @@ const sizeStyles$2 = props => {
|
|
|
243
225
|
return styled.css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
244
226
|
};
|
|
245
227
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
246
|
-
'data-garden-id': COMPONENT_ID$
|
|
247
|
-
'data-garden-version': '9.0.0-next.
|
|
228
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
229
|
+
'data-garden-version': '9.0.0-next.8'
|
|
248
230
|
}).withConfig({
|
|
249
231
|
displayName: "StyledSkipNav",
|
|
250
232
|
componentId: "sc-1tsro34-0"
|
|
251
|
-
})(["", ";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$
|
|
233
|
+
})(["", ";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));
|
|
252
234
|
StyledSkipNav.defaultProps = {
|
|
253
235
|
theme: reactTheming.DEFAULT_THEME
|
|
254
236
|
};
|
|
255
237
|
|
|
256
|
-
var _path$
|
|
257
|
-
function _extends$
|
|
238
|
+
var _path$1;
|
|
239
|
+
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); }
|
|
258
240
|
var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
259
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
241
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
260
242
|
xmlns: "http://www.w3.org/2000/svg",
|
|
261
243
|
width: 16,
|
|
262
244
|
height: 16,
|
|
263
245
|
focusable: "false",
|
|
264
246
|
viewBox: "0 0 16 16",
|
|
265
247
|
"aria-hidden": "true"
|
|
266
|
-
}, props), _path$
|
|
248
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
267
249
|
fill: "currentColor",
|
|
268
250
|
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"
|
|
269
251
|
})));
|
|
270
252
|
};
|
|
271
253
|
|
|
272
|
-
const COMPONENT_ID$
|
|
273
|
-
const sizeStyles
|
|
254
|
+
const COMPONENT_ID$n = 'chrome.skipnav_icon';
|
|
255
|
+
const sizeStyles = theme => {
|
|
274
256
|
const margin = `${theme.space.base * 2}px`;
|
|
275
257
|
const size = theme.iconSizes.md;
|
|
276
258
|
return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
277
259
|
};
|
|
278
260
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
279
|
-
'data-garden-id': COMPONENT_ID$
|
|
280
|
-
'data-garden-version': '9.0.0-next.
|
|
261
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
262
|
+
'data-garden-version': '9.0.0-next.8'
|
|
281
263
|
}).withConfig({
|
|
282
264
|
displayName: "StyledSkipNavIcon",
|
|
283
265
|
componentId: "sc-1ika5z4-0"
|
|
284
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => sizeStyles
|
|
266
|
+
})(["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));
|
|
285
267
|
StyledSkipNavIcon.defaultProps = {
|
|
286
268
|
theme: reactTheming.DEFAULT_THEME
|
|
287
269
|
};
|
|
288
270
|
|
|
289
|
-
const COMPONENT_ID$
|
|
271
|
+
const COMPONENT_ID$m = 'chrome.body';
|
|
290
272
|
const StyledBody = styled__default.default.div.attrs({
|
|
291
|
-
'data-garden-id': COMPONENT_ID$
|
|
292
|
-
'data-garden-version': '9.0.0-next.
|
|
273
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
274
|
+
'data-garden-version': '9.0.0-next.8'
|
|
293
275
|
}).withConfig({
|
|
294
276
|
displayName: "StyledBody",
|
|
295
277
|
componentId: "sc-c7h9kv-0"
|
|
296
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
278
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
297
279
|
StyledBody.defaultProps = {
|
|
298
280
|
theme: reactTheming.DEFAULT_THEME
|
|
299
281
|
};
|
|
300
282
|
|
|
301
|
-
const COMPONENT_ID$
|
|
283
|
+
const COMPONENT_ID$l = 'chrome.footer';
|
|
302
284
|
const getFooterHeight = props => {
|
|
303
285
|
return `${props.theme.space.base * 20}px`;
|
|
304
286
|
};
|
|
305
287
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
306
|
-
'data-garden-id': COMPONENT_ID$
|
|
307
|
-
'data-garden-version': '9.0.0-next.
|
|
288
|
+
'data-garden-id': COMPONENT_ID$l,
|
|
289
|
+
'data-garden-version': '9.0.0-next.8'
|
|
308
290
|
}).withConfig({
|
|
309
291
|
displayName: "StyledFooter",
|
|
310
292
|
componentId: "sc-v7lib2-0"
|
|
311
|
-
})(["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$
|
|
293
|
+
})(["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));
|
|
312
294
|
StyledFooter.defaultProps = {
|
|
313
295
|
theme: reactTheming.DEFAULT_THEME
|
|
314
296
|
};
|
|
315
297
|
|
|
316
|
-
const COMPONENT_ID$
|
|
298
|
+
const COMPONENT_ID$k = 'chrome.content';
|
|
317
299
|
const StyledContent = styled__default.default.div.attrs({
|
|
318
|
-
'data-garden-id': COMPONENT_ID$
|
|
319
|
-
'data-garden-version': '9.0.0-next.
|
|
300
|
+
'data-garden-id': COMPONENT_ID$k,
|
|
301
|
+
'data-garden-version': '9.0.0-next.8'
|
|
320
302
|
}).withConfig({
|
|
321
303
|
displayName: "StyledContent",
|
|
322
304
|
componentId: "sc-qcuzxn-0"
|
|
323
|
-
})(["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$
|
|
305
|
+
})(["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));
|
|
324
306
|
StyledContent.defaultProps = {
|
|
325
307
|
theme: reactTheming.DEFAULT_THEME
|
|
326
308
|
};
|
|
327
309
|
|
|
328
|
-
const COMPONENT_ID$
|
|
310
|
+
const COMPONENT_ID$j = 'chrome.main';
|
|
329
311
|
const StyledMain = styled__default.default.main.attrs({
|
|
330
|
-
'data-garden-id': COMPONENT_ID$
|
|
331
|
-
'data-garden-version': '9.0.0-next.
|
|
312
|
+
'data-garden-id': COMPONENT_ID$j,
|
|
313
|
+
'data-garden-version': '9.0.0-next.8'
|
|
332
314
|
}).withConfig({
|
|
333
315
|
displayName: "StyledMain",
|
|
334
316
|
componentId: "sc-t61cre-0"
|
|
335
|
-
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
317
|
+
})(["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));
|
|
336
318
|
StyledMain.defaultProps = {
|
|
337
319
|
theme: reactTheming.DEFAULT_THEME
|
|
338
320
|
};
|
|
339
321
|
|
|
340
|
-
const COMPONENT_ID$
|
|
341
|
-
const StyledSidebar = styled__default.default.aside.attrs({
|
|
342
|
-
'data-garden-id': COMPONENT_ID$m,
|
|
343
|
-
'data-garden-version': '9.0.0-next.6'
|
|
344
|
-
}).withConfig({
|
|
345
|
-
displayName: "StyledSidebar",
|
|
346
|
-
componentId: "sc-1q77fuw-0"
|
|
347
|
-
})(["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.getColorV8('neutralHue', 300, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
348
|
-
StyledSidebar.defaultProps = {
|
|
349
|
-
theme: reactTheming.DEFAULT_THEME
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
322
|
+
const COMPONENT_ID$i = 'chrome.footer_item';
|
|
353
323
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
354
|
-
'data-garden-id': COMPONENT_ID$
|
|
355
|
-
'data-garden-version': '9.0.0-next.
|
|
324
|
+
'data-garden-id': COMPONENT_ID$i,
|
|
325
|
+
'data-garden-version': '9.0.0-next.8'
|
|
356
326
|
}).withConfig({
|
|
357
327
|
displayName: "StyledFooterItem",
|
|
358
328
|
componentId: "sc-1cktm85-0"
|
|
359
|
-
})(["margin:", ";", ";"], props => `0 ${props.theme.space.base}px`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
329
|
+
})(["margin:", ";", ";"], props => `0 ${props.theme.space.base}px`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
|
|
360
330
|
StyledFooterItem.defaultProps = {
|
|
361
331
|
theme: reactTheming.DEFAULT_THEME
|
|
362
332
|
};
|
|
363
333
|
|
|
364
|
-
const COMPONENT_ID$
|
|
334
|
+
const COMPONENT_ID$h = 'chrome.header_item';
|
|
365
335
|
const imgStyles = props => {
|
|
366
336
|
const size = polished.math(`${getHeaderItemSize(props)} - ${props.theme.space.base * 2}`);
|
|
367
337
|
return styled.css(["img{margin:0;border-radius:", ";width:", ";height:", ";}"], polished.math(`${props.theme.borderRadii.md} - 1`), size, size);
|
|
368
338
|
};
|
|
369
339
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
370
|
-
'data-garden-id': COMPONENT_ID$
|
|
371
|
-
'data-garden-version': '9.0.0-next.
|
|
340
|
+
'data-garden-id': COMPONENT_ID$h,
|
|
341
|
+
'data-garden-version': '9.0.0-next.8'
|
|
372
342
|
}).withConfig({
|
|
373
343
|
displayName: "StyledHeaderItem",
|
|
374
344
|
componentId: "sc-14sft6n-0"
|
|
375
|
-
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active
|
|
345
|
+
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => reactTheming.focusStyles({
|
|
376
346
|
theme: props.theme,
|
|
377
347
|
inset: props.maxY
|
|
378
348
|
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
379
349
|
${StyledHeaderItemIcon} {
|
|
380
350
|
border-radius: 100px;
|
|
381
351
|
}
|
|
382
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
352
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
|
|
383
353
|
StyledHeaderItem.defaultProps = {
|
|
384
354
|
theme: reactTheming.DEFAULT_THEME
|
|
385
355
|
};
|
|
386
356
|
|
|
387
|
-
const COMPONENT_ID$
|
|
357
|
+
const COMPONENT_ID$g = 'chrome.header_item_wrapper';
|
|
388
358
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
389
|
-
'data-garden-id': COMPONENT_ID$
|
|
390
|
-
'data-garden-version': '9.0.0-next.
|
|
359
|
+
'data-garden-id': COMPONENT_ID$g,
|
|
360
|
+
'data-garden-version': '9.0.0-next.8',
|
|
391
361
|
as: 'div'
|
|
392
362
|
}).withConfig({
|
|
393
363
|
displayName: "StyledHeaderItemWrapper",
|
|
394
364
|
componentId: "sc-1uieu55-0"
|
|
395
|
-
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
365
|
+
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
|
|
396
366
|
StyledHeaderItemWrapper.defaultProps = {
|
|
397
367
|
theme: reactTheming.DEFAULT_THEME
|
|
398
368
|
};
|
|
399
369
|
|
|
400
|
-
const COMPONENT_ID$
|
|
370
|
+
const COMPONENT_ID$f = 'chrome.nav_list';
|
|
371
|
+
const StyledNavList = styled__default.default.ul.attrs({
|
|
372
|
+
'data-garden-id': COMPONENT_ID$f,
|
|
373
|
+
'data-garden-version': '9.0.0-next.8'
|
|
374
|
+
}).withConfig({
|
|
375
|
+
displayName: "StyledNavList",
|
|
376
|
+
componentId: "sc-1s0nkfb-0"
|
|
377
|
+
})(["display:flex;flex:1;flex-direction:column;order:0;margin:0;padding:0;list-style:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
|
|
378
|
+
StyledNavList.defaultProps = {
|
|
379
|
+
theme: reactTheming.DEFAULT_THEME
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
const COMPONENT_ID$e = 'chrome.nav_list_item';
|
|
383
|
+
const StyledNavListItem = styled__default.default.li.attrs({
|
|
384
|
+
'data-garden-id': COMPONENT_ID$e,
|
|
385
|
+
'data-garden-version': '9.0.0-next.8'
|
|
386
|
+
}).withConfig({
|
|
387
|
+
displayName: "StyledNavListItem",
|
|
388
|
+
componentId: "sc-18cj2v7-0"
|
|
389
|
+
})(["display:flex;order:1;margin:0;padding:0;list-style-type:none;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
|
|
390
|
+
StyledNavListItem.defaultProps = {
|
|
391
|
+
theme: reactTheming.DEFAULT_THEME
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
const COMPONENT_ID$d = 'chrome.logo_nav_list_item';
|
|
401
395
|
const retrieveProductColor = product => {
|
|
402
396
|
switch (product) {
|
|
403
397
|
case 'chat':
|
|
@@ -418,50 +412,48 @@ const retrieveProductColor = product => {
|
|
|
418
412
|
return 'inherit';
|
|
419
413
|
}
|
|
420
414
|
};
|
|
421
|
-
const colorStyles$
|
|
415
|
+
const colorStyles$2 = props => {
|
|
422
416
|
const fillColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
423
417
|
const color = props.isLight || props.isDark ? fillColor : retrieveProductColor(props.product);
|
|
424
418
|
return styled.css(["color:", ";fill:", ";"], color, fillColor);
|
|
425
419
|
};
|
|
426
420
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
427
|
-
'data-garden-id': COMPONENT_ID$
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
429
|
-
as: 'div'
|
|
421
|
+
'data-garden-id': COMPONENT_ID$d,
|
|
422
|
+
'data-garden-version': '9.0.0-next.8'
|
|
430
423
|
}).withConfig({
|
|
431
424
|
displayName: "StyledLogoNavItem",
|
|
432
425
|
componentId: "sc-saaydx-0"
|
|
433
|
-
})(["order
|
|
426
|
+
})(["order:-1;opacity:1;cursor:default;min-height:0;", ";"], props => colorStyles$2(props));
|
|
434
427
|
StyledLogoNavItem.defaultProps = {
|
|
435
428
|
theme: reactTheming.DEFAULT_THEME
|
|
436
429
|
};
|
|
437
430
|
|
|
438
|
-
const COMPONENT_ID$
|
|
431
|
+
const COMPONENT_ID$c = 'chrome.brandmark_nav_list_item';
|
|
439
432
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
440
|
-
'data-garden-id': COMPONENT_ID$
|
|
441
|
-
'data-garden-version': '9.0.0-next.
|
|
442
|
-
as: 'div'
|
|
433
|
+
'data-garden-id': COMPONENT_ID$c,
|
|
434
|
+
'data-garden-version': '9.0.0-next.8'
|
|
443
435
|
}).withConfig({
|
|
444
436
|
displayName: "StyledBrandmarkNavItem",
|
|
445
437
|
componentId: "sc-8kynd4-0"
|
|
446
|
-
})(["order:1;opacity:0.3;margin-top:auto;"]);
|
|
438
|
+
})(["order:1;opacity:0.3;margin-top:auto;min-height:0;"]);
|
|
447
439
|
StyledBrandmarkNavItem.defaultProps = {
|
|
448
440
|
theme: reactTheming.DEFAULT_THEME
|
|
449
441
|
};
|
|
450
442
|
|
|
451
|
-
const COMPONENT_ID$
|
|
443
|
+
const COMPONENT_ID$b = 'chrome.nav_item_icon';
|
|
452
444
|
const StyledNavItemIcon = styled__default.default.div.attrs({
|
|
453
|
-
'data-garden-id': COMPONENT_ID$
|
|
454
|
-
'data-garden-version': '9.0.0-next.
|
|
445
|
+
'data-garden-id': COMPONENT_ID$b,
|
|
446
|
+
'data-garden-version': '9.0.0-next.8'
|
|
455
447
|
}).withConfig({
|
|
456
448
|
displayName: "StyledNavItemIcon",
|
|
457
449
|
componentId: "sc-7w9rpt-0"
|
|
458
|
-
})(["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$
|
|
450
|
+
})(["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));
|
|
459
451
|
StyledNavItemIcon.defaultProps = {
|
|
460
452
|
theme: reactTheming.DEFAULT_THEME
|
|
461
453
|
};
|
|
462
454
|
|
|
463
|
-
const COMPONENT_ID$
|
|
464
|
-
const colorStyles$
|
|
455
|
+
const COMPONENT_ID$a = 'chrome.nav_button';
|
|
456
|
+
const colorStyles$1 = props => {
|
|
465
457
|
const {
|
|
466
458
|
theme,
|
|
467
459
|
hue,
|
|
@@ -495,31 +487,31 @@ const colorStyles$3 = props => {
|
|
|
495
487
|
}
|
|
496
488
|
}), activeColor);
|
|
497
489
|
};
|
|
498
|
-
const
|
|
499
|
-
'data-garden-id': COMPONENT_ID$
|
|
500
|
-
'data-garden-version': '9.0.0-next.
|
|
490
|
+
const StyledNavButton = styled__default.default(StyledBaseNavItem).attrs({
|
|
491
|
+
'data-garden-id': COMPONENT_ID$a,
|
|
492
|
+
'data-garden-version': '9.0.0-next.8',
|
|
501
493
|
as: 'button'
|
|
502
494
|
}).withConfig({
|
|
503
|
-
displayName: "
|
|
504
|
-
componentId: "sc-
|
|
505
|
-
})(["justify-content:", ";
|
|
495
|
+
displayName: "StyledNavButton",
|
|
496
|
+
componentId: "sc-f5ux3-0"
|
|
497
|
+
})(["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 && `
|
|
506
498
|
${StyledNavItemIcon} {
|
|
507
499
|
margin: 0 ${polished.math(`(${getNavWidth(props)} - ${props.theme.iconSizes.lg}) / 4`)};
|
|
508
500
|
}
|
|
509
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
510
|
-
|
|
501
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
502
|
+
StyledNavButton.defaultProps = {
|
|
511
503
|
theme: reactTheming.DEFAULT_THEME
|
|
512
504
|
};
|
|
513
505
|
|
|
514
|
-
const COMPONENT_ID$
|
|
506
|
+
const COMPONENT_ID$9 = 'chrome.nav_item_text';
|
|
515
507
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
516
|
-
'data-garden-id': COMPONENT_ID$
|
|
517
|
-
'data-garden-version': '9.0.0-next.
|
|
508
|
+
'data-garden-id': COMPONENT_ID$9,
|
|
509
|
+
'data-garden-version': '9.0.0-next.8'
|
|
518
510
|
}).withConfig({
|
|
519
511
|
displayName: "StyledNavItemText",
|
|
520
512
|
componentId: "sc-13m84xl-0"
|
|
521
513
|
})(["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 && `
|
|
522
|
-
${
|
|
514
|
+
${StyledNavButton} > && {
|
|
523
515
|
position: static;
|
|
524
516
|
flex: 1;
|
|
525
517
|
clip: auto;
|
|
@@ -527,168 +519,11 @@ const StyledNavItemText = styled__default.default.span.attrs({
|
|
|
527
519
|
height: auto;
|
|
528
520
|
text-overflow: ellipsis;
|
|
529
521
|
}
|
|
530
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
522
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
|
|
531
523
|
StyledNavItemText.defaultProps = {
|
|
532
524
|
theme: reactTheming.DEFAULT_THEME
|
|
533
525
|
};
|
|
534
526
|
|
|
535
|
-
const COMPONENT_ID$d = 'chrome.subnav_item';
|
|
536
|
-
const colorStyles$2 = props => {
|
|
537
|
-
const {
|
|
538
|
-
theme,
|
|
539
|
-
isLight,
|
|
540
|
-
isCurrent
|
|
541
|
-
} = props;
|
|
542
|
-
const DARK = theme.palette.black;
|
|
543
|
-
const LIGHT = theme.palette.white;
|
|
544
|
-
let currentColor;
|
|
545
|
-
let hoverColor;
|
|
546
|
-
if (isCurrent) {
|
|
547
|
-
if (isLight) {
|
|
548
|
-
currentColor = polished.rgba(DARK, 0.1);
|
|
549
|
-
} else {
|
|
550
|
-
currentColor = polished.rgba(LIGHT, 0.1);
|
|
551
|
-
}
|
|
552
|
-
} else {
|
|
553
|
-
hoverColor = polished.rgba(isLight ? LIGHT : DARK, 0.1);
|
|
554
|
-
}
|
|
555
|
-
const activeColor = polished.rgba(isLight ? DARK : LIGHT, 0.03);
|
|
556
|
-
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({
|
|
557
|
-
theme,
|
|
558
|
-
hue: isLight ? DARK : LIGHT,
|
|
559
|
-
spacerWidth: null,
|
|
560
|
-
styles: {
|
|
561
|
-
opacity: 1
|
|
562
|
-
}
|
|
563
|
-
}), activeColor);
|
|
564
|
-
};
|
|
565
|
-
const getSubNavItemHeight = props => {
|
|
566
|
-
return `${props.theme.space.base * 7.5}px`;
|
|
567
|
-
};
|
|
568
|
-
const StyledSubNavItem = styled__default.default.button.attrs({
|
|
569
|
-
'data-garden-id': COMPONENT_ID$d,
|
|
570
|
-
'data-garden-version': '9.0.0-next.6'
|
|
571
|
-
}).withConfig({
|
|
572
|
-
displayName: "StyledSubNavItem",
|
|
573
|
-
componentId: "sc-1yg9dpx-0"
|
|
574
|
-
})(["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));
|
|
575
|
-
StyledSubNavItem.defaultProps = {
|
|
576
|
-
theme: reactTheming.DEFAULT_THEME
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
const COMPONENT_ID$c = 'chrome.subnav';
|
|
580
|
-
const colorStyles$1 = props => {
|
|
581
|
-
let shade;
|
|
582
|
-
if (props.isLight) {
|
|
583
|
-
shade = 500;
|
|
584
|
-
} else {
|
|
585
|
-
shade = props.isDark ? 700 : 800;
|
|
586
|
-
}
|
|
587
|
-
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
588
|
-
const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
589
|
-
return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
590
|
-
};
|
|
591
|
-
const StyledSubNav = styled__default.default.nav.attrs({
|
|
592
|
-
'data-garden-id': COMPONENT_ID$c,
|
|
593
|
-
'data-garden-version': '9.0.0-next.6'
|
|
594
|
-
}).withConfig({
|
|
595
|
-
displayName: "StyledSubNav",
|
|
596
|
-
componentId: "sc-19hjou6-0"
|
|
597
|
-
})(["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));
|
|
598
|
-
StyledSubNav.defaultProps = {
|
|
599
|
-
theme: reactTheming.DEFAULT_THEME
|
|
600
|
-
};
|
|
601
|
-
|
|
602
|
-
const COMPONENT_ID$b = 'chrome.subnav_item_text';
|
|
603
|
-
const sizeStyles = props => {
|
|
604
|
-
const baseLineHeight = props.theme.space.base * 5;
|
|
605
|
-
const verticalMargin = polished.math(`(${getSubNavItemHeight(props)} - ${baseLineHeight}) / 2`);
|
|
606
|
-
const lineHeight = reactTheming.getLineHeight(baseLineHeight, props.theme.fontSizes.md);
|
|
607
|
-
return styled.css(["margin:", " 0;line-height:", ";"], verticalMargin, lineHeight);
|
|
608
|
-
};
|
|
609
|
-
const StyledSubNavItemText = styled__default.default.span.attrs({
|
|
610
|
-
'data-garden-id': COMPONENT_ID$b,
|
|
611
|
-
'data-garden-version': '9.0.0-next.6'
|
|
612
|
-
}).withConfig({
|
|
613
|
-
displayName: "StyledSubNavItemText",
|
|
614
|
-
componentId: "sc-1hy0pn7-0"
|
|
615
|
-
})(["overflow:hidden;text-overflow:ellipsis;white-space:", ";", " ", ";"], props => props.isWrapped ? 'normal' : 'nowrap', props => sizeStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
|
|
616
|
-
StyledSubNavItemText.defaultProps = {
|
|
617
|
-
theme: reactTheming.DEFAULT_THEME
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
621
|
-
const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
|
|
622
|
-
'data-garden-id': COMPONENT_ID$a,
|
|
623
|
-
'data-garden-version': '9.0.0-next.6',
|
|
624
|
-
'data-garden-header': 'true'
|
|
625
|
-
}).withConfig({
|
|
626
|
-
displayName: "StyledSubNavItemHeader",
|
|
627
|
-
componentId: "sc-1vniter-0"
|
|
628
|
-
})(["position:relative;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'left' : 'right', props => props.theme.space.base * 7, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
|
|
629
|
-
StyledSubNavItemHeader.defaultProps = {
|
|
630
|
-
theme: reactTheming.DEFAULT_THEME
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
var _path$1;
|
|
634
|
-
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); }
|
|
635
|
-
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
636
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
637
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
638
|
-
width: 12,
|
|
639
|
-
height: 12,
|
|
640
|
-
focusable: "false",
|
|
641
|
-
viewBox: "0 0 12 12",
|
|
642
|
-
"aria-hidden": "true"
|
|
643
|
-
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
644
|
-
fill: "currentColor",
|
|
645
|
-
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"
|
|
646
|
-
})));
|
|
647
|
-
};
|
|
648
|
-
|
|
649
|
-
const COMPONENT_ID$9 = 'chrome.collapsible_sub_nav_item_icon';
|
|
650
|
-
const FilteredChevronDownStrokeIcon = React__namespace.default.forwardRef((_ref, ref) => {
|
|
651
|
-
let {
|
|
652
|
-
theme,
|
|
653
|
-
isExpanded,
|
|
654
|
-
...validProps
|
|
655
|
-
} = _ref;
|
|
656
|
-
return React__namespace.default.createElement(SvgChevronDownStroke, _extends$3({
|
|
657
|
-
ref: ref
|
|
658
|
-
}, validProps));
|
|
659
|
-
});
|
|
660
|
-
FilteredChevronDownStrokeIcon.displayName = 'FilteredChevronDownStrokeIcon';
|
|
661
|
-
const StyledSubNavItemIcon = styled__default.default(FilteredChevronDownStrokeIcon).withConfig({
|
|
662
|
-
displayName: "StyledSubNavItemIcon",
|
|
663
|
-
componentId: "sc-1d02hho-0"
|
|
664
|
-
})(["width:", ";height:", ";"], props => props.theme.iconSizes.sm, props => props.theme.iconSizes.sm);
|
|
665
|
-
StyledSubNavItemIcon.defaultProps = {
|
|
666
|
-
theme: reactTheming.DEFAULT_THEME
|
|
667
|
-
};
|
|
668
|
-
const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
|
|
669
|
-
'data-garden-id': COMPONENT_ID$9,
|
|
670
|
-
'data-garden-version': '9.0.0-next.6'
|
|
671
|
-
}).withConfig({
|
|
672
|
-
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
673
|
-
componentId: "sc-1d02hho-1"
|
|
674
|
-
})(["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));
|
|
675
|
-
StyledSubNavItemIconWrapper.defaultProps = {
|
|
676
|
-
theme: reactTheming.DEFAULT_THEME
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
680
|
-
const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
681
|
-
const StyledSubNavPanel = styled__default.default.div.attrs({
|
|
682
|
-
'data-garden-id': PANEL_COMPONENT_ID,
|
|
683
|
-
'data-garden-version': '9.0.0-next.6'
|
|
684
|
-
}).withConfig({
|
|
685
|
-
displayName: "StyledSubNavPanel",
|
|
686
|
-
componentId: "sc-1jv3rpv-0"
|
|
687
|
-
})(["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));
|
|
688
|
-
StyledSubNavPanel.defaultProps = {
|
|
689
|
-
theme: reactTheming.DEFAULT_THEME
|
|
690
|
-
};
|
|
691
|
-
|
|
692
527
|
const COMPONENT_ID$8 = 'chrome.sheet';
|
|
693
528
|
const borderStyle = _ref => {
|
|
694
529
|
let {
|
|
@@ -711,7 +546,7 @@ const borderStyle = _ref => {
|
|
|
711
546
|
};
|
|
712
547
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
713
548
|
'data-garden-id': COMPONENT_ID$8,
|
|
714
|
-
'data-garden-version': '9.0.0-next.
|
|
549
|
+
'data-garden-version': '9.0.0-next.8'
|
|
715
550
|
}).withConfig({
|
|
716
551
|
displayName: "StyledSheet",
|
|
717
552
|
componentId: "sc-dx8ijk-0"
|
|
@@ -723,7 +558,7 @@ StyledSheet.defaultProps = {
|
|
|
723
558
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
724
559
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
725
560
|
'data-garden-id': COMPONENT_ID$7,
|
|
726
|
-
'data-garden-version': '9.0.0-next.
|
|
561
|
+
'data-garden-version': '9.0.0-next.8'
|
|
727
562
|
}).withConfig({
|
|
728
563
|
displayName: "StyledSheetWrapper",
|
|
729
564
|
componentId: "sc-f6x9zb-0"
|
|
@@ -750,7 +585,7 @@ StyledSheetWrapper.defaultProps = {
|
|
|
750
585
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
751
586
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
752
587
|
'data-garden-id': COMPONENT_ID$6,
|
|
753
|
-
'data-garden-version': '9.0.0-next.
|
|
588
|
+
'data-garden-version': '9.0.0-next.8'
|
|
754
589
|
}).withConfig({
|
|
755
590
|
displayName: "StyledSheetTitle",
|
|
756
591
|
componentId: "sc-1gogk75-0"
|
|
@@ -762,7 +597,7 @@ StyledSheetTitle.defaultProps = {
|
|
|
762
597
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
763
598
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
764
599
|
'data-garden-id': COMPONENT_ID$5,
|
|
765
|
-
'data-garden-version': '9.0.0-next.
|
|
600
|
+
'data-garden-version': '9.0.0-next.8'
|
|
766
601
|
}).withConfig({
|
|
767
602
|
displayName: "StyledSheetDescription",
|
|
768
603
|
componentId: "sc-1puglb6-0"
|
|
@@ -774,7 +609,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
774
609
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
775
610
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
776
611
|
'data-garden-id': COMPONENT_ID$4,
|
|
777
|
-
'data-garden-version': '9.0.0-next.
|
|
612
|
+
'data-garden-version': '9.0.0-next.8'
|
|
778
613
|
}).withConfig({
|
|
779
614
|
displayName: "StyledSheetBody",
|
|
780
615
|
componentId: "sc-bt4eoj-0"
|
|
@@ -798,7 +633,7 @@ const colorStyles = props => {
|
|
|
798
633
|
};
|
|
799
634
|
const StyledSheetClose = styled__default.default.button.attrs({
|
|
800
635
|
'data-garden-id': COMPONENT_ID$3,
|
|
801
|
-
'data-garden-version': '9.0.0-next.
|
|
636
|
+
'data-garden-version': '9.0.0-next.8'
|
|
802
637
|
}).withConfig({
|
|
803
638
|
displayName: "StyledSheetClose",
|
|
804
639
|
componentId: "sc-1ab02oq-0"
|
|
@@ -810,7 +645,7 @@ StyledSheetClose.defaultProps = {
|
|
|
810
645
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
811
646
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
812
647
|
'data-garden-id': COMPONENT_ID$2,
|
|
813
|
-
'data-garden-version': '9.0.0-next.
|
|
648
|
+
'data-garden-version': '9.0.0-next.8'
|
|
814
649
|
}).withConfig({
|
|
815
650
|
displayName: "StyledSheetFooter",
|
|
816
651
|
componentId: "sc-2cktos-0"
|
|
@@ -822,7 +657,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
822
657
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
823
658
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
824
659
|
'data-garden-id': COMPONENT_ID$1,
|
|
825
|
-
'data-garden-version': '9.0.0-next.
|
|
660
|
+
'data-garden-version': '9.0.0-next.8'
|
|
826
661
|
}).withConfig({
|
|
827
662
|
displayName: "StyledSheetFooterItem",
|
|
828
663
|
componentId: "sc-r9ixh-0"
|
|
@@ -834,7 +669,7 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
834
669
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
835
670
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
836
671
|
'data-garden-id': COMPONENT_ID,
|
|
837
|
-
'data-garden-version': '9.0.0-next.
|
|
672
|
+
'data-garden-version': '9.0.0-next.8'
|
|
838
673
|
}).withConfig({
|
|
839
674
|
displayName: "StyledSheetHeader",
|
|
840
675
|
componentId: "sc-o2ry8i-0"
|
|
@@ -850,12 +685,12 @@ const HeaderItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
850
685
|
...other
|
|
851
686
|
} = _ref;
|
|
852
687
|
if (hasLogo) {
|
|
853
|
-
return React__namespace.default.createElement(StyledLogoHeaderItem,
|
|
688
|
+
return React__namespace.default.createElement(StyledLogoHeaderItem, Object.assign({
|
|
854
689
|
ref: ref,
|
|
855
690
|
product: product
|
|
856
691
|
}, other));
|
|
857
692
|
}
|
|
858
|
-
return React__namespace.default.createElement(StyledHeaderItem,
|
|
693
|
+
return React__namespace.default.createElement(StyledHeaderItem, Object.assign({
|
|
859
694
|
ref: ref
|
|
860
695
|
}, other));
|
|
861
696
|
});
|
|
@@ -885,14 +720,14 @@ const HeaderItemIcon = _ref => {
|
|
|
885
720
|
...iconProps
|
|
886
721
|
});
|
|
887
722
|
};
|
|
888
|
-
return React__namespace.default.createElement(StyledHeaderItemIcon,
|
|
723
|
+
return React__namespace.default.createElement(StyledHeaderItemIcon, Object.assign({
|
|
889
724
|
as: Icon
|
|
890
725
|
}, props));
|
|
891
726
|
}
|
|
892
727
|
return null;
|
|
893
728
|
};
|
|
894
729
|
|
|
895
|
-
const HeaderItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemText,
|
|
730
|
+
const HeaderItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemText, Object.assign({
|
|
896
731
|
ref: ref
|
|
897
732
|
}, props)));
|
|
898
733
|
HeaderItemText.displayName = 'HeaderItemText';
|
|
@@ -900,12 +735,12 @@ HeaderItemText.propTypes = {
|
|
|
900
735
|
isClipped: PropTypes__default.default.bool
|
|
901
736
|
};
|
|
902
737
|
|
|
903
|
-
const HeaderItemWrapper = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemWrapper,
|
|
738
|
+
const HeaderItemWrapper = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeaderItemWrapper, Object.assign({
|
|
904
739
|
ref: ref
|
|
905
740
|
}, props)));
|
|
906
741
|
HeaderItemWrapper.displayName = 'HeaderItemWrapper';
|
|
907
742
|
|
|
908
|
-
const FooterItem$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooterItem,
|
|
743
|
+
const FooterItem$1 = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledFooterItem, Object.assign({
|
|
909
744
|
ref: ref
|
|
910
745
|
}, props)));
|
|
911
746
|
FooterItem$1.displayName = 'FooterItem';
|
|
@@ -924,6 +759,11 @@ const useChromeContext = () => {
|
|
|
924
759
|
return React.useContext(ChromeContext);
|
|
925
760
|
};
|
|
926
761
|
|
|
762
|
+
const NavListContext = React__namespace.default.createContext(undefined);
|
|
763
|
+
const useNavListContext = () => {
|
|
764
|
+
return React.useContext(NavListContext);
|
|
765
|
+
};
|
|
766
|
+
|
|
927
767
|
const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
928
768
|
let {
|
|
929
769
|
hasLogo,
|
|
@@ -939,30 +779,37 @@ const NavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
939
779
|
const {
|
|
940
780
|
isExpanded
|
|
941
781
|
} = useNavContext();
|
|
782
|
+
const navListContext = useNavListContext();
|
|
942
783
|
const ariaCurrent = other.isCurrent || undefined;
|
|
784
|
+
const hasList = navListContext?.hasList;
|
|
785
|
+
let retVal;
|
|
943
786
|
if (hasLogo) {
|
|
944
|
-
|
|
787
|
+
retVal = React__namespace.default.createElement(StyledLogoNavItem, Object.assign({
|
|
945
788
|
ref: ref,
|
|
946
789
|
isDark: isDark,
|
|
947
790
|
isLight: isLight,
|
|
948
791
|
product: product,
|
|
949
792
|
"aria-current": ariaCurrent
|
|
950
793
|
}, other));
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
return React__namespace.default.createElement(StyledBrandmarkNavItem, _extends$3({
|
|
794
|
+
} else if (hasBrandmark) {
|
|
795
|
+
retVal = React__namespace.default.createElement(StyledBrandmarkNavItem, Object.assign({
|
|
954
796
|
ref: ref
|
|
955
797
|
}, other));
|
|
798
|
+
} else {
|
|
799
|
+
retVal = React__namespace.default.createElement(StyledNavButton, Object.assign({
|
|
800
|
+
tabIndex: 0,
|
|
801
|
+
ref: ref,
|
|
802
|
+
isExpanded: isExpanded,
|
|
803
|
+
hue: hue,
|
|
804
|
+
isDark: isDark,
|
|
805
|
+
isLight: isLight,
|
|
806
|
+
"aria-current": ariaCurrent
|
|
807
|
+
}, other));
|
|
956
808
|
}
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
hue: hue,
|
|
962
|
-
isDark: isDark,
|
|
963
|
-
isLight: isLight,
|
|
964
|
-
"aria-current": ariaCurrent
|
|
965
|
-
}, other));
|
|
809
|
+
if (hasList) {
|
|
810
|
+
retVal = React__namespace.default.createElement(StyledNavListItem, null, retVal);
|
|
811
|
+
}
|
|
812
|
+
return retVal;
|
|
966
813
|
});
|
|
967
814
|
NavItem.displayName = 'NavItem';
|
|
968
815
|
NavItem.propTypes = {
|
|
@@ -988,7 +835,7 @@ const NavItemIcon = _ref => {
|
|
|
988
835
|
...iconProps
|
|
989
836
|
});
|
|
990
837
|
};
|
|
991
|
-
return React__namespace.default.createElement(StyledNavItemIcon,
|
|
838
|
+
return React__namespace.default.createElement(StyledNavItemIcon, Object.assign({
|
|
992
839
|
as: Icon
|
|
993
840
|
}, props));
|
|
994
841
|
}
|
|
@@ -999,7 +846,7 @@ const NavItemText = React__namespace.default.forwardRef((props, ref) => {
|
|
|
999
846
|
const {
|
|
1000
847
|
isExpanded
|
|
1001
848
|
} = useNavContext();
|
|
1002
|
-
return React__namespace.default.createElement(StyledNavItemText,
|
|
849
|
+
return React__namespace.default.createElement(StyledNavItemText, Object.assign({
|
|
1003
850
|
ref: ref,
|
|
1004
851
|
isExpanded: isExpanded
|
|
1005
852
|
}, props));
|
|
@@ -1009,99 +856,6 @@ NavItemText.propTypes = {
|
|
|
1009
856
|
isWrapped: PropTypes__default.default.bool
|
|
1010
857
|
};
|
|
1011
858
|
|
|
1012
|
-
const SubNavItem = React__namespace.default.forwardRef((props, ref) => {
|
|
1013
|
-
const {
|
|
1014
|
-
isDark,
|
|
1015
|
-
isLight
|
|
1016
|
-
} = useChromeContext();
|
|
1017
|
-
return React__namespace.default.createElement(StyledSubNavItem, _extends$3({
|
|
1018
|
-
ref: ref,
|
|
1019
|
-
isDark: isDark,
|
|
1020
|
-
isLight: isLight
|
|
1021
|
-
}, props));
|
|
1022
|
-
});
|
|
1023
|
-
SubNavItem.displayName = 'SubNavItem';
|
|
1024
|
-
SubNavItem.propTypes = {
|
|
1025
|
-
isCurrent: PropTypes__default.default.bool
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
const SubNavItemText = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledSubNavItemText, _extends$3({
|
|
1029
|
-
ref: ref
|
|
1030
|
-
}, props)));
|
|
1031
|
-
SubNavItemText.displayName = 'SubNavItemText';
|
|
1032
|
-
SubNavItemText.propTypes = {
|
|
1033
|
-
isWrapped: PropTypes__default.default.bool
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
const CollapsibleSubNavItem = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1037
|
-
let {
|
|
1038
|
-
header,
|
|
1039
|
-
children,
|
|
1040
|
-
isExpanded: controlledExpanded,
|
|
1041
|
-
onChange,
|
|
1042
|
-
...other
|
|
1043
|
-
} = _ref;
|
|
1044
|
-
const {
|
|
1045
|
-
isDark,
|
|
1046
|
-
isLight
|
|
1047
|
-
} = useChromeContext();
|
|
1048
|
-
const panelRef = React.createRef();
|
|
1049
|
-
const [internalExpanded, setInternalExpanded] = React.useState(controlledExpanded);
|
|
1050
|
-
const expanded = containerUtilities.getControlledValue(controlledExpanded, internalExpanded);
|
|
1051
|
-
const value = 0;
|
|
1052
|
-
const expandedSections = expanded ? [value] : [];
|
|
1053
|
-
const {
|
|
1054
|
-
getHeaderProps,
|
|
1055
|
-
getTriggerProps,
|
|
1056
|
-
getPanelProps
|
|
1057
|
-
} = containerAccordion.useAccordion({
|
|
1058
|
-
sections: [value],
|
|
1059
|
-
expandedSections,
|
|
1060
|
-
onChange: () => {
|
|
1061
|
-
const isExpanded = expandedSections.length === 0;
|
|
1062
|
-
if (onChange) {
|
|
1063
|
-
onChange(isExpanded);
|
|
1064
|
-
} else {
|
|
1065
|
-
setInternalExpanded(isExpanded);
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
});
|
|
1069
|
-
React.useEffect(() => {
|
|
1070
|
-
if (expanded && panelRef.current) {
|
|
1071
|
-
panelRef.current.style.maxHeight = `${panelRef.current.scrollHeight}px`;
|
|
1072
|
-
}
|
|
1073
|
-
}, [expanded, children, panelRef]);
|
|
1074
|
-
return React__namespace.default.createElement("div", {
|
|
1075
|
-
ref: ref
|
|
1076
|
-
}, React__namespace.default.createElement("div", getHeaderProps({
|
|
1077
|
-
'aria-level': 2
|
|
1078
|
-
}), React__namespace.default.createElement(StyledSubNavItemHeader, _extends$3({
|
|
1079
|
-
isDark: isDark,
|
|
1080
|
-
isLight: isLight,
|
|
1081
|
-
isExpanded: expanded
|
|
1082
|
-
}, getTriggerProps({
|
|
1083
|
-
...other,
|
|
1084
|
-
role: null,
|
|
1085
|
-
tabIndex: null,
|
|
1086
|
-
value
|
|
1087
|
-
}), {
|
|
1088
|
-
type: "button"
|
|
1089
|
-
}), React__namespace.default.createElement(React__namespace.default.Fragment, null, header, React__namespace.default.createElement(StyledSubNavItemIconWrapper, {
|
|
1090
|
-
isExpanded: expanded
|
|
1091
|
-
}, React__namespace.default.createElement(StyledSubNavItemIcon, null))))), React__namespace.default.createElement(StyledSubNavPanel, _extends$3({
|
|
1092
|
-
isHidden: !expanded
|
|
1093
|
-
}, getPanelProps({
|
|
1094
|
-
ref: panelRef,
|
|
1095
|
-
value
|
|
1096
|
-
})), children));
|
|
1097
|
-
});
|
|
1098
|
-
CollapsibleSubNavItem.propTypes = {
|
|
1099
|
-
header: PropTypes__default.default.any,
|
|
1100
|
-
isExpanded: PropTypes__default.default.bool,
|
|
1101
|
-
onChange: PropTypes__default.default.func
|
|
1102
|
-
};
|
|
1103
|
-
CollapsibleSubNavItem.displayName = 'CollapsibleSubNavItem';
|
|
1104
|
-
|
|
1105
859
|
const Chrome = React__namespace.default.forwardRef((_ref, ref) => {
|
|
1106
860
|
let {
|
|
1107
861
|
hue,
|
|
@@ -1140,7 +894,7 @@ const Chrome = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1140
894
|
}, [environment, isFluid]);
|
|
1141
895
|
return React__namespace.default.createElement(ChromeContext.Provider, {
|
|
1142
896
|
value: chromeContextValue
|
|
1143
|
-
}, React__namespace.default.createElement(StyledChrome,
|
|
897
|
+
}, React__namespace.default.createElement(StyledChrome, Object.assign({
|
|
1144
898
|
ref: ref
|
|
1145
899
|
}, props)));
|
|
1146
900
|
});
|
|
@@ -1156,7 +910,7 @@ const SkipNav = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1156
910
|
children,
|
|
1157
911
|
...props
|
|
1158
912
|
} = _ref;
|
|
1159
|
-
return React__namespace.default.createElement(StyledSkipNav,
|
|
913
|
+
return React__namespace.default.createElement(StyledSkipNav, Object.assign({
|
|
1160
914
|
href: `#${targetId}`,
|
|
1161
915
|
zIndex: zIndex,
|
|
1162
916
|
ref: ref
|
|
@@ -1184,7 +938,7 @@ const Body$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1184
938
|
}), [hasFooter, setHasFooter]);
|
|
1185
939
|
return React__namespace.default.createElement(BodyContext.Provider, {
|
|
1186
940
|
value: bodyContextValue
|
|
1187
|
-
}, React__namespace.default.createElement(StyledBody,
|
|
941
|
+
}, React__namespace.default.createElement(StyledBody, Object.assign({
|
|
1188
942
|
ref: ref
|
|
1189
943
|
}, props)));
|
|
1190
944
|
});
|
|
@@ -1194,24 +948,19 @@ const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1194
948
|
const {
|
|
1195
949
|
hasFooter
|
|
1196
950
|
} = useBodyContext() || {};
|
|
1197
|
-
return React__namespace.default.createElement(StyledContent,
|
|
951
|
+
return React__namespace.default.createElement(StyledContent, Object.assign({
|
|
1198
952
|
ref: ref,
|
|
1199
953
|
hasFooter: hasFooter
|
|
1200
954
|
}, props));
|
|
1201
955
|
});
|
|
1202
956
|
Content.displayName = 'Content';
|
|
1203
957
|
|
|
1204
|
-
const Main = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledMain,
|
|
958
|
+
const Main = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledMain, Object.assign({
|
|
1205
959
|
ref: ref
|
|
1206
960
|
}, props)));
|
|
1207
961
|
Main.displayName = 'Main';
|
|
1208
962
|
|
|
1209
|
-
const
|
|
1210
|
-
ref: ref
|
|
1211
|
-
}, props)));
|
|
1212
|
-
Sidebar.displayName = 'Sidebar';
|
|
1213
|
-
|
|
1214
|
-
const HeaderComponent = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, _extends$3({
|
|
963
|
+
const HeaderComponent = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, Object.assign({
|
|
1215
964
|
ref: ref
|
|
1216
965
|
}, props)));
|
|
1217
966
|
HeaderComponent.displayName = 'Header';
|
|
@@ -1239,7 +988,7 @@ const FooterComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1239
988
|
}
|
|
1240
989
|
};
|
|
1241
990
|
}, [hasFooter, setHasFooter]);
|
|
1242
|
-
return React__namespace.default.createElement(StyledFooter,
|
|
991
|
+
return React__namespace.default.createElement(StyledFooter, Object.assign({
|
|
1243
992
|
ref: ref
|
|
1244
993
|
}, props));
|
|
1245
994
|
});
|
|
@@ -1247,6 +996,18 @@ FooterComponent.displayName = 'Footer';
|
|
|
1247
996
|
const Footer$1 = FooterComponent;
|
|
1248
997
|
Footer$1.Item = FooterItem$1;
|
|
1249
998
|
|
|
999
|
+
const NavList = React__namespace.default.forwardRef((props, ref) => {
|
|
1000
|
+
const contextValue = React.useMemo(() => ({
|
|
1001
|
+
hasList: true
|
|
1002
|
+
}), []);
|
|
1003
|
+
return React__namespace.default.createElement(NavListContext.Provider, {
|
|
1004
|
+
value: contextValue
|
|
1005
|
+
}, React__namespace.default.createElement(StyledNavList, Object.assign({
|
|
1006
|
+
ref: ref
|
|
1007
|
+
}, props)));
|
|
1008
|
+
});
|
|
1009
|
+
NavList.displayName = 'Nav';
|
|
1010
|
+
|
|
1250
1011
|
const NavComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
1251
1012
|
const {
|
|
1252
1013
|
hue,
|
|
@@ -1258,7 +1019,7 @@ const NavComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
|
1258
1019
|
}), [props.isExpanded]);
|
|
1259
1020
|
return React__namespace.default.createElement(NavContext.Provider, {
|
|
1260
1021
|
value: navContextValue
|
|
1261
|
-
}, React__namespace.default.createElement(StyledNav,
|
|
1022
|
+
}, React__namespace.default.createElement(StyledNav, Object.assign({
|
|
1262
1023
|
ref: ref
|
|
1263
1024
|
}, props, {
|
|
1264
1025
|
hue: hue,
|
|
@@ -1271,29 +1032,11 @@ NavComponent.propTypes = {
|
|
|
1271
1032
|
isExpanded: PropTypes__default.default.bool
|
|
1272
1033
|
};
|
|
1273
1034
|
const Nav = NavComponent;
|
|
1035
|
+
Nav.List = NavList;
|
|
1274
1036
|
Nav.Item = NavItem;
|
|
1275
1037
|
Nav.ItemIcon = NavItemIcon;
|
|
1276
1038
|
Nav.ItemText = NavItemText;
|
|
1277
1039
|
|
|
1278
|
-
const SubNavComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
1279
|
-
const {
|
|
1280
|
-
hue,
|
|
1281
|
-
isLight,
|
|
1282
|
-
isDark
|
|
1283
|
-
} = useChromeContext();
|
|
1284
|
-
return React__namespace.default.createElement(StyledSubNav, _extends$3({
|
|
1285
|
-
ref: ref,
|
|
1286
|
-
hue: hue,
|
|
1287
|
-
isLight: isLight,
|
|
1288
|
-
isDark: isDark
|
|
1289
|
-
}, props));
|
|
1290
|
-
});
|
|
1291
|
-
SubNavComponent.displayName = 'SubNav';
|
|
1292
|
-
const SubNav = SubNavComponent;
|
|
1293
|
-
SubNav.Item = SubNavItem;
|
|
1294
|
-
SubNav.ItemText = SubNavItemText;
|
|
1295
|
-
SubNav.CollapsibleItem = CollapsibleSubNavItem;
|
|
1296
|
-
|
|
1297
1040
|
const SheetContext = React.createContext({
|
|
1298
1041
|
setIsCloseButtonPresent() {}
|
|
1299
1042
|
});
|
|
@@ -1330,7 +1073,7 @@ const SheetTitle = React.forwardRef((_ref, ref) => {
|
|
|
1330
1073
|
const {
|
|
1331
1074
|
titleId
|
|
1332
1075
|
} = useSheetContext();
|
|
1333
|
-
return React__namespace.default.createElement(StyledSheetTitle,
|
|
1076
|
+
return React__namespace.default.createElement(StyledSheetTitle, Object.assign({
|
|
1334
1077
|
id: id || titleId,
|
|
1335
1078
|
ref: ref
|
|
1336
1079
|
}, props));
|
|
@@ -1346,7 +1089,7 @@ const SheetDescription = React.forwardRef((_ref, ref) => {
|
|
|
1346
1089
|
const {
|
|
1347
1090
|
descriptionId
|
|
1348
1091
|
} = useSheetContext();
|
|
1349
|
-
return React__namespace.default.createElement(StyledSheetDescription,
|
|
1092
|
+
return React__namespace.default.createElement(StyledSheetDescription, Object.assign({
|
|
1350
1093
|
id: id || descriptionId,
|
|
1351
1094
|
ref: ref
|
|
1352
1095
|
}, props));
|
|
@@ -1358,7 +1101,7 @@ const SheetHeader = React.forwardRef((props, ref) => {
|
|
|
1358
1101
|
const {
|
|
1359
1102
|
isCloseButtonPresent
|
|
1360
1103
|
} = useSheetContext();
|
|
1361
|
-
return React__namespace.default.createElement(StyledSheetHeader,
|
|
1104
|
+
return React__namespace.default.createElement(StyledSheetHeader, Object.assign({
|
|
1362
1105
|
ref: ref,
|
|
1363
1106
|
isCloseButtonPresent: isCloseButtonPresent
|
|
1364
1107
|
}, props));
|
|
@@ -1367,7 +1110,7 @@ SheetHeader.displayName = 'Sheet.Header';
|
|
|
1367
1110
|
const Header = SheetHeader;
|
|
1368
1111
|
|
|
1369
1112
|
const SheetBody = React.forwardRef((props, ref) => {
|
|
1370
|
-
return React__namespace.default.createElement(StyledSheetBody,
|
|
1113
|
+
return React__namespace.default.createElement(StyledSheetBody, Object.assign({
|
|
1371
1114
|
ref: ref
|
|
1372
1115
|
}, props));
|
|
1373
1116
|
});
|
|
@@ -1375,7 +1118,7 @@ SheetBody.displayName = 'Sheet.Body';
|
|
|
1375
1118
|
const Body = SheetBody;
|
|
1376
1119
|
|
|
1377
1120
|
const SheetFooter = React.forwardRef((props, ref) => {
|
|
1378
|
-
return React__namespace.default.createElement(StyledSheetFooter,
|
|
1121
|
+
return React__namespace.default.createElement(StyledSheetFooter, Object.assign({
|
|
1379
1122
|
ref: ref
|
|
1380
1123
|
}, props));
|
|
1381
1124
|
});
|
|
@@ -1383,7 +1126,7 @@ SheetFooter.displayName = 'Sheet.Footer';
|
|
|
1383
1126
|
const Footer = SheetFooter;
|
|
1384
1127
|
|
|
1385
1128
|
const SheetFooterItem = React.forwardRef((props, ref) => {
|
|
1386
|
-
return React__namespace.default.createElement(StyledSheetFooterItem,
|
|
1129
|
+
return React__namespace.default.createElement(StyledSheetFooterItem, Object.assign({
|
|
1387
1130
|
ref: ref
|
|
1388
1131
|
}, props));
|
|
1389
1132
|
});
|
|
@@ -1415,7 +1158,7 @@ const SheetClose = React.forwardRef((props, ref) => {
|
|
|
1415
1158
|
setIsCloseButtonPresent(true);
|
|
1416
1159
|
return () => setIsCloseButtonPresent(false);
|
|
1417
1160
|
}, [setIsCloseButtonPresent]);
|
|
1418
|
-
return React__namespace.default.createElement(StyledSheetClose,
|
|
1161
|
+
return React__namespace.default.createElement(StyledSheetClose, Object.assign({
|
|
1419
1162
|
"aria-label": "Close Sheet",
|
|
1420
1163
|
ref: ref
|
|
1421
1164
|
}, props), React__namespace.default.createElement(SvgXStroke, null));
|
|
@@ -1438,7 +1181,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1438
1181
|
const sheetRef = React.useRef(null);
|
|
1439
1182
|
const seed = reactUid.useUIDSeed();
|
|
1440
1183
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1441
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1184
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.8'}`), [id, seed]);
|
|
1442
1185
|
const titleId = `${idPrefix}--title`;
|
|
1443
1186
|
const descriptionId = `${idPrefix}--description`;
|
|
1444
1187
|
const sheetContext = React.useMemo(() => ({
|
|
@@ -1455,7 +1198,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1455
1198
|
});
|
|
1456
1199
|
return React__namespace.default.createElement(SheetContext.Provider, {
|
|
1457
1200
|
value: sheetContext
|
|
1458
|
-
}, React__namespace.default.createElement(StyledSheet,
|
|
1201
|
+
}, React__namespace.default.createElement(StyledSheet, Object.assign({
|
|
1459
1202
|
isOpen: isOpen,
|
|
1460
1203
|
isAnimated: isAnimated,
|
|
1461
1204
|
placement: placement,
|
|
@@ -1498,7 +1241,6 @@ Sheet.Title = Title;
|
|
|
1498
1241
|
|
|
1499
1242
|
exports.Body = Body$1;
|
|
1500
1243
|
exports.Chrome = Chrome;
|
|
1501
|
-
exports.CollapsibleSubNavItem = CollapsibleSubNavItem;
|
|
1502
1244
|
exports.Content = Content;
|
|
1503
1245
|
exports.Footer = Footer$1;
|
|
1504
1246
|
exports.FooterItem = FooterItem$1;
|
|
@@ -1514,8 +1256,4 @@ exports.NavItemIcon = NavItemIcon;
|
|
|
1514
1256
|
exports.NavItemText = NavItemText;
|
|
1515
1257
|
exports.PRODUCTS = PRODUCTS;
|
|
1516
1258
|
exports.Sheet = Sheet;
|
|
1517
|
-
exports.Sidebar = Sidebar;
|
|
1518
1259
|
exports.SkipNav = SkipNav;
|
|
1519
|
-
exports.SubNav = SubNav;
|
|
1520
|
-
exports.SubNavItem = SubNavItem;
|
|
1521
|
-
exports.SubNavItemText = SubNavItemText;
|