@zendeskgarden/react-chrome 9.0.0-next.5 → 9.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +110 -119
- package/dist/index.esm.js +111 -119
- package/dist/typings/elements/body/Body.d.ts +1 -2
- package/dist/typings/elements/header/HeaderItemIcon.d.ts +3 -3
- package/dist/typings/elements/nav/NavItemIcon.d.ts +3 -3
- package/dist/typings/index.d.ts +1 -2
- package/dist/typings/styled/index.d.ts +0 -1
- package/dist/typings/types/index.d.ts +0 -4
- package/dist/typings/utils/useBodyContext.d.ts +3 -2
- package/package.json +4 -4
- package/dist/typings/elements/body/Sidebar.d.ts +0 -11
- package/dist/typings/styled/body/StyledSidebar.d.ts +0 -10
package/dist/index.esm.js
CHANGED
|
@@ -35,39 +35,39 @@ function _extends$3() {
|
|
|
35
35
|
const PLACEMENT = ['end', 'start'];
|
|
36
36
|
const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
37
37
|
|
|
38
|
-
const COMPONENT_ID$
|
|
38
|
+
const COMPONENT_ID$z = 'chrome.chrome';
|
|
39
39
|
const StyledChrome = styled.div.attrs({
|
|
40
|
-
'data-garden-id': COMPONENT_ID$
|
|
41
|
-
'data-garden-version': '9.0.0-next.
|
|
40
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
41
|
+
'data-garden-version': '9.0.0-next.7'
|
|
42
42
|
}).withConfig({
|
|
43
43
|
displayName: "StyledChrome",
|
|
44
44
|
componentId: "sc-1uqm6u6-0"
|
|
45
|
-
})(["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 => retrieveComponentStyles(COMPONENT_ID$
|
|
45
|
+
})(["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 => retrieveComponentStyles(COMPONENT_ID$z, props));
|
|
46
46
|
StyledChrome.defaultProps = {
|
|
47
47
|
theme: DEFAULT_THEME
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
const COMPONENT_ID$
|
|
50
|
+
const COMPONENT_ID$y = 'chrome.header_item_icon';
|
|
51
51
|
const StyledHeaderItemIcon = styled.div.attrs({
|
|
52
|
-
'data-garden-id': COMPONENT_ID$
|
|
53
|
-
'data-garden-version': '9.0.0-next.
|
|
52
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
53
|
+
'data-garden-version': '9.0.0-next.7'
|
|
54
54
|
}).withConfig({
|
|
55
55
|
displayName: "StyledHeaderItemIcon",
|
|
56
56
|
componentId: "sc-1jhhp6z-0"
|
|
57
|
-
})(["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 => retrieveComponentStyles(COMPONENT_ID$
|
|
57
|
+
})(["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 => retrieveComponentStyles(COMPONENT_ID$y, props));
|
|
58
58
|
StyledHeaderItemIcon.defaultProps = {
|
|
59
59
|
theme: DEFAULT_THEME
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const COMPONENT_ID$
|
|
62
|
+
const COMPONENT_ID$x = 'chrome.base_header_item';
|
|
63
63
|
const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
|
|
64
64
|
const sizeStyles$4 = props => {
|
|
65
65
|
const size = props.theme.space.base * 7.5;
|
|
66
66
|
return css(["padding:0 3px;min-width:", "px;height:", ";line-height:", ";"], size, props.maxY ? '100%' : `${size}px`, getLineHeight(size, props.theme.fontSizes.md));
|
|
67
67
|
};
|
|
68
68
|
const StyledBaseHeaderItem = styled.button.attrs({
|
|
69
|
-
'data-garden-id': COMPONENT_ID$
|
|
70
|
-
'data-garden-version': '9.0.0-next.
|
|
69
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
70
|
+
'data-garden-version': '9.0.0-next.7'
|
|
71
71
|
}).withConfig({
|
|
72
72
|
displayName: "StyledBaseHeaderItem",
|
|
73
73
|
componentId: "sc-1qua7h6-0"
|
|
@@ -79,25 +79,25 @@ const StyledBaseHeaderItem = styled.button.attrs({
|
|
|
79
79
|
return '0';
|
|
80
80
|
}
|
|
81
81
|
return props.theme.borderRadii.md;
|
|
82
|
-
}, sizeStyles$4, props => retrieveComponentStyles(COMPONENT_ID$
|
|
82
|
+
}, sizeStyles$4, props => retrieveComponentStyles(COMPONENT_ID$x, props));
|
|
83
83
|
StyledBaseHeaderItem.defaultProps = {
|
|
84
84
|
theme: DEFAULT_THEME
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
const COMPONENT_ID$
|
|
87
|
+
const COMPONENT_ID$w = 'chrome.header_item_text';
|
|
88
88
|
const clippedStyling = css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
89
89
|
const StyledHeaderItemText = styled.span.attrs({
|
|
90
|
-
'data-garden-id': COMPONENT_ID$
|
|
91
|
-
'data-garden-version': '9.0.0-next.
|
|
90
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
91
|
+
'data-garden-version': '9.0.0-next.7'
|
|
92
92
|
}).withConfig({
|
|
93
93
|
displayName: "StyledHeaderItemText",
|
|
94
94
|
componentId: "sc-goz7la-0"
|
|
95
|
-
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => retrieveComponentStyles(COMPONENT_ID$
|
|
95
|
+
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => retrieveComponentStyles(COMPONENT_ID$w, props));
|
|
96
96
|
StyledHeaderItemText.defaultProps = {
|
|
97
97
|
theme: DEFAULT_THEME
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
const COMPONENT_ID$
|
|
100
|
+
const COMPONENT_ID$v = 'chrome.nav';
|
|
101
101
|
const colorStyles$6 = props => {
|
|
102
102
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
103
103
|
const backgroundColor = getColorV8(props.hue, shade, props.theme);
|
|
@@ -111,17 +111,17 @@ const getExpandedNavWidth = () => {
|
|
|
111
111
|
return `200px`;
|
|
112
112
|
};
|
|
113
113
|
const StyledNav = styled.nav.attrs({
|
|
114
|
-
'data-garden-id': COMPONENT_ID$
|
|
115
|
-
'data-garden-version': '9.0.0-next.
|
|
114
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
115
|
+
'data-garden-version': '9.0.0-next.7'
|
|
116
116
|
}).withConfig({
|
|
117
117
|
displayName: "StyledNav",
|
|
118
118
|
componentId: "sc-6j462r-0"
|
|
119
|
-
})(["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$6(props), props => retrieveComponentStyles(COMPONENT_ID$
|
|
119
|
+
})(["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$6(props), props => retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
120
120
|
StyledNav.defaultProps = {
|
|
121
121
|
theme: DEFAULT_THEME
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
const COMPONENT_ID$
|
|
124
|
+
const COMPONENT_ID$u = 'chrome.header_item';
|
|
125
125
|
const retrieveProductColor$1 = props => {
|
|
126
126
|
switch (props.product) {
|
|
127
127
|
case 'chat':
|
|
@@ -143,18 +143,18 @@ const retrieveProductColor$1 = props => {
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
const StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
146
|
-
'data-garden-id': COMPONENT_ID$
|
|
147
|
-
'data-garden-version': '9.0.0-next.
|
|
146
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
147
|
+
'data-garden-version': '9.0.0-next.7',
|
|
148
148
|
as: 'div'
|
|
149
149
|
}).withConfig({
|
|
150
150
|
displayName: "StyledLogoHeaderItem",
|
|
151
151
|
componentId: "sc-1n1d1yv-0"
|
|
152
|
-
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => retrieveComponentStyles(COMPONENT_ID$
|
|
152
|
+
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => getNavWidth(props), props => getColorV8('chromeHue', 700, props.theme), props => retrieveProductColor$1(props), StyledHeaderItemText, clippedStyling, StyledHeaderItemIcon, props => props.theme.iconSizes.lg, props => props.theme.iconSizes.lg, props => retrieveComponentStyles(COMPONENT_ID$u, props));
|
|
153
153
|
StyledLogoHeaderItem.defaultProps = {
|
|
154
154
|
theme: DEFAULT_THEME
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
const COMPONENT_ID$
|
|
157
|
+
const COMPONENT_ID$t = 'chrome.base_nav_item';
|
|
158
158
|
const getNavItemHeight = props => {
|
|
159
159
|
return `${props.theme.space.base * 13}px`;
|
|
160
160
|
};
|
|
@@ -164,8 +164,8 @@ const sizeStyles$3 = props => {
|
|
|
164
164
|
return css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
165
165
|
};
|
|
166
166
|
const StyledBaseNavItem = styled.button.attrs({
|
|
167
|
-
'data-garden-id': COMPONENT_ID$
|
|
168
|
-
'data-garden-version': '9.0.0-next.
|
|
167
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
168
|
+
'data-garden-version': '9.0.0-next.7'
|
|
169
169
|
}).withConfig({
|
|
170
170
|
displayName: "StyledBaseNavItem",
|
|
171
171
|
componentId: "sc-zvo43f-0"
|
|
@@ -174,26 +174,26 @@ StyledBaseNavItem.defaultProps = {
|
|
|
174
174
|
theme: DEFAULT_THEME
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
const COMPONENT_ID$
|
|
177
|
+
const COMPONENT_ID$s = 'chrome.header';
|
|
178
178
|
const getHeaderHeight = props => {
|
|
179
179
|
return getNavItemHeight(props);
|
|
180
180
|
};
|
|
181
181
|
const StyledHeader = styled.header.attrs({
|
|
182
|
-
'data-garden-id': COMPONENT_ID$
|
|
183
|
-
'data-garden-version': '9.0.0-next.
|
|
182
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
183
|
+
'data-garden-version': '9.0.0-next.7'
|
|
184
184
|
}).withConfig({
|
|
185
185
|
displayName: "StyledHeader",
|
|
186
186
|
componentId: "sc-1cexpz-0"
|
|
187
|
-
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', getColorV8('chromeHue', 600, props.theme, 0.15)), props => props.theme
|
|
187
|
+
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', getColorV8('chromeHue', 600, props.theme, 0.15)), props => getColorV8('background', 600 , props.theme), props => props.theme.space.base, getHeaderHeight, props => getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isStandalone && `
|
|
188
188
|
${StyledLogoHeaderItem} {
|
|
189
189
|
display: inline-flex;
|
|
190
190
|
}
|
|
191
|
-
`, props => retrieveComponentStyles(COMPONENT_ID$
|
|
191
|
+
`, props => retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
192
192
|
StyledHeader.defaultProps = {
|
|
193
193
|
theme: DEFAULT_THEME
|
|
194
194
|
};
|
|
195
195
|
|
|
196
|
-
const COMPONENT_ID$
|
|
196
|
+
const COMPONENT_ID$r = 'chrome.skipnav';
|
|
197
197
|
const animationStyles = () => {
|
|
198
198
|
const animationName = keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
199
199
|
return css(["transition:opacity 0.2s ease-out,clip 0s linear 0.2s;opacity:0;clip:rect(0,0,0,0);&:focus{transition:opacity 0.2s ease-in-out;animation:0.2s cubic-bezier(0.15,0.85,0.35,1.2) ", ";opacity:1;clip:rect(0,150vw,100vh,-50vw);}"], animationName);
|
|
@@ -202,7 +202,7 @@ const colorStyles$5 = theme => {
|
|
|
202
202
|
const color = getColorV8('primaryHue', 600, theme);
|
|
203
203
|
const borderColor = getColorV8('neutralHue', 300, theme);
|
|
204
204
|
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, getColorV8('chromeHue', 600, theme, 0.15));
|
|
205
|
-
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow,
|
|
205
|
+
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, getColorV8('background', 600 , theme), color, color, focusStyles({
|
|
206
206
|
theme,
|
|
207
207
|
inset: true,
|
|
208
208
|
boxShadow
|
|
@@ -217,12 +217,12 @@ const sizeStyles$2 = props => {
|
|
|
217
217
|
return css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
218
218
|
};
|
|
219
219
|
const StyledSkipNav = styled.a.attrs({
|
|
220
|
-
'data-garden-id': COMPONENT_ID$
|
|
221
|
-
'data-garden-version': '9.0.0-next.
|
|
220
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
221
|
+
'data-garden-version': '9.0.0-next.7'
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "StyledSkipNav",
|
|
224
224
|
componentId: "sc-1tsro34-0"
|
|
225
|
-
})(["", ";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$2(props), SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
225
|
+
})(["", ";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$2(props), SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
226
226
|
StyledSkipNav.defaultProps = {
|
|
227
227
|
theme: DEFAULT_THEME
|
|
228
228
|
};
|
|
@@ -243,90 +243,78 @@ var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
|
243
243
|
})));
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
-
const COMPONENT_ID$
|
|
246
|
+
const COMPONENT_ID$q = 'chrome.skipnav_icon';
|
|
247
247
|
const sizeStyles$1 = theme => {
|
|
248
248
|
const margin = `${theme.space.base * 2}px`;
|
|
249
249
|
const size = theme.iconSizes.md;
|
|
250
250
|
return css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
251
251
|
};
|
|
252
252
|
const StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
253
|
-
'data-garden-id': COMPONENT_ID$
|
|
254
|
-
'data-garden-version': '9.0.0-next.
|
|
253
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
254
|
+
'data-garden-version': '9.0.0-next.7'
|
|
255
255
|
}).withConfig({
|
|
256
256
|
displayName: "StyledSkipNavIcon",
|
|
257
257
|
componentId: "sc-1ika5z4-0"
|
|
258
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
258
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
259
259
|
StyledSkipNavIcon.defaultProps = {
|
|
260
260
|
theme: DEFAULT_THEME
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
const COMPONENT_ID$
|
|
263
|
+
const COMPONENT_ID$p = 'chrome.body';
|
|
264
264
|
const StyledBody = styled.div.attrs({
|
|
265
|
-
'data-garden-id': COMPONENT_ID$
|
|
266
|
-
'data-garden-version': '9.0.0-next.
|
|
265
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
266
|
+
'data-garden-version': '9.0.0-next.7'
|
|
267
267
|
}).withConfig({
|
|
268
268
|
displayName: "StyledBody",
|
|
269
269
|
componentId: "sc-c7h9kv-0"
|
|
270
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => getColorV8('neutralHue', 100, props.theme), props => retrieveComponentStyles(COMPONENT_ID$
|
|
270
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => getColorV8('neutralHue', 100, props.theme), props => retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
271
271
|
StyledBody.defaultProps = {
|
|
272
272
|
theme: DEFAULT_THEME
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
const COMPONENT_ID$
|
|
275
|
+
const COMPONENT_ID$o = 'chrome.footer';
|
|
276
276
|
const getFooterHeight = props => {
|
|
277
277
|
return `${props.theme.space.base * 20}px`;
|
|
278
278
|
};
|
|
279
279
|
const StyledFooter = styled.footer.attrs({
|
|
280
|
-
'data-garden-id': COMPONENT_ID$
|
|
281
|
-
'data-garden-version': '9.0.0-next.
|
|
280
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
281
|
+
'data-garden-version': '9.0.0-next.7'
|
|
282
282
|
}).withConfig({
|
|
283
283
|
displayName: "StyledFooter",
|
|
284
284
|
componentId: "sc-v7lib2-0"
|
|
285
|
-
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => props.theme
|
|
285
|
+
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => getColorV8('background', 600 , props.theme), props => props.theme.space.base * 9, getFooterHeight, props => retrieveComponentStyles(COMPONENT_ID$o, props));
|
|
286
286
|
StyledFooter.defaultProps = {
|
|
287
287
|
theme: DEFAULT_THEME
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
-
const COMPONENT_ID$
|
|
290
|
+
const COMPONENT_ID$n = 'chrome.content';
|
|
291
291
|
const StyledContent = styled.div.attrs({
|
|
292
|
-
'data-garden-id': COMPONENT_ID$
|
|
293
|
-
'data-garden-version': '9.0.0-next.
|
|
292
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
293
|
+
'data-garden-version': '9.0.0-next.7'
|
|
294
294
|
}).withConfig({
|
|
295
295
|
displayName: "StyledContent",
|
|
296
296
|
componentId: "sc-qcuzxn-0"
|
|
297
|
-
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => props.theme
|
|
297
|
+
})(["display:flex;height:", ";line-height:", ";color:", ";font-size:", ";&:focus{outline:none;}", ";"], props => props.hasFooter ? `calc(100% - ${math(`${getHeaderHeight(props)} + ${getFooterHeight(props)}`)})` : `calc(100% - ${getHeaderHeight(props)})`, props => getLineHeight(props.theme.lineHeights.md, props.theme.fontSizes.md), props => getColorV8('foreground', 600 , props.theme), props => props.theme.fontSizes.md, props => retrieveComponentStyles(COMPONENT_ID$n, props));
|
|
298
298
|
StyledContent.defaultProps = {
|
|
299
299
|
theme: DEFAULT_THEME
|
|
300
300
|
};
|
|
301
301
|
|
|
302
|
-
const COMPONENT_ID$
|
|
302
|
+
const COMPONENT_ID$m = 'chrome.main';
|
|
303
303
|
const StyledMain = styled.main.attrs({
|
|
304
|
-
'data-garden-id': COMPONENT_ID$
|
|
305
|
-
'data-garden-version': '9.0.0-next.
|
|
304
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
305
|
+
'data-garden-version': '9.0.0-next.7'
|
|
306
306
|
}).withConfig({
|
|
307
307
|
displayName: "StyledMain",
|
|
308
308
|
componentId: "sc-t61cre-0"
|
|
309
|
-
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => props.theme
|
|
309
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => getColorV8('background', 600 , props.theme), props => retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
310
310
|
StyledMain.defaultProps = {
|
|
311
311
|
theme: DEFAULT_THEME
|
|
312
312
|
};
|
|
313
313
|
|
|
314
|
-
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
315
|
-
const StyledSidebar = styled.aside.attrs({
|
|
316
|
-
'data-garden-id': COMPONENT_ID$m,
|
|
317
|
-
'data-garden-version': '9.0.0-next.5'
|
|
318
|
-
}).withConfig({
|
|
319
|
-
displayName: "StyledSidebar",
|
|
320
|
-
componentId: "sc-1q77fuw-0"
|
|
321
|
-
})(["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} ${getColorV8('neutralHue', 300, props.theme)}`, props => retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
322
|
-
StyledSidebar.defaultProps = {
|
|
323
|
-
theme: DEFAULT_THEME
|
|
324
|
-
};
|
|
325
|
-
|
|
326
314
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
327
315
|
const StyledFooterItem = styled.div.attrs({
|
|
328
316
|
'data-garden-id': COMPONENT_ID$l,
|
|
329
|
-
'data-garden-version': '9.0.0-next.
|
|
317
|
+
'data-garden-version': '9.0.0-next.7'
|
|
330
318
|
}).withConfig({
|
|
331
319
|
displayName: "StyledFooterItem",
|
|
332
320
|
componentId: "sc-1cktm85-0"
|
|
@@ -342,11 +330,11 @@ const imgStyles = props => {
|
|
|
342
330
|
};
|
|
343
331
|
const StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
344
332
|
'data-garden-id': COMPONENT_ID$k,
|
|
345
|
-
'data-garden-version': '9.0.0-next.
|
|
333
|
+
'data-garden-version': '9.0.0-next.7'
|
|
346
334
|
}).withConfig({
|
|
347
335
|
displayName: "StyledHeaderItem",
|
|
348
336
|
componentId: "sc-14sft6n-0"
|
|
349
|
-
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active
|
|
337
|
+
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => focusStyles({
|
|
350
338
|
theme: props.theme,
|
|
351
339
|
inset: props.maxY
|
|
352
340
|
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
@@ -361,7 +349,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
361
349
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
362
350
|
const StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
|
|
363
351
|
'data-garden-id': COMPONENT_ID$j,
|
|
364
|
-
'data-garden-version': '9.0.0-next.
|
|
352
|
+
'data-garden-version': '9.0.0-next.7',
|
|
365
353
|
as: 'div'
|
|
366
354
|
}).withConfig({
|
|
367
355
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -399,7 +387,7 @@ const colorStyles$4 = props => {
|
|
|
399
387
|
};
|
|
400
388
|
const StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
|
|
401
389
|
'data-garden-id': COMPONENT_ID$i,
|
|
402
|
-
'data-garden-version': '9.0.0-next.
|
|
390
|
+
'data-garden-version': '9.0.0-next.7',
|
|
403
391
|
as: 'div'
|
|
404
392
|
}).withConfig({
|
|
405
393
|
displayName: "StyledLogoNavItem",
|
|
@@ -412,7 +400,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
412
400
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
413
401
|
const StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
|
|
414
402
|
'data-garden-id': COMPONENT_ID$h,
|
|
415
|
-
'data-garden-version': '9.0.0-next.
|
|
403
|
+
'data-garden-version': '9.0.0-next.7',
|
|
416
404
|
as: 'div'
|
|
417
405
|
}).withConfig({
|
|
418
406
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -425,7 +413,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
425
413
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
426
414
|
const StyledNavItemIcon = styled.div.attrs({
|
|
427
415
|
'data-garden-id': COMPONENT_ID$g,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
416
|
+
'data-garden-version': '9.0.0-next.7'
|
|
429
417
|
}).withConfig({
|
|
430
418
|
displayName: "StyledNavItemIcon",
|
|
431
419
|
componentId: "sc-7w9rpt-0"
|
|
@@ -471,7 +459,7 @@ const colorStyles$3 = props => {
|
|
|
471
459
|
};
|
|
472
460
|
const StyledNavItem = styled(StyledBaseNavItem).attrs({
|
|
473
461
|
'data-garden-id': COMPONENT_ID$f,
|
|
474
|
-
'data-garden-version': '9.0.0-next.
|
|
462
|
+
'data-garden-version': '9.0.0-next.7',
|
|
475
463
|
as: 'button'
|
|
476
464
|
}).withConfig({
|
|
477
465
|
displayName: "StyledNavItem",
|
|
@@ -488,7 +476,7 @@ StyledNavItem.defaultProps = {
|
|
|
488
476
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
489
477
|
const StyledNavItemText = styled.span.attrs({
|
|
490
478
|
'data-garden-id': COMPONENT_ID$e,
|
|
491
|
-
'data-garden-version': '9.0.0-next.
|
|
479
|
+
'data-garden-version': '9.0.0-next.7'
|
|
492
480
|
}).withConfig({
|
|
493
481
|
displayName: "StyledNavItemText",
|
|
494
482
|
componentId: "sc-13m84xl-0"
|
|
@@ -541,7 +529,7 @@ const getSubNavItemHeight = props => {
|
|
|
541
529
|
};
|
|
542
530
|
const StyledSubNavItem = styled.button.attrs({
|
|
543
531
|
'data-garden-id': COMPONENT_ID$d,
|
|
544
|
-
'data-garden-version': '9.0.0-next.
|
|
532
|
+
'data-garden-version': '9.0.0-next.7'
|
|
545
533
|
}).withConfig({
|
|
546
534
|
displayName: "StyledSubNavItem",
|
|
547
535
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -564,7 +552,7 @@ const colorStyles$1 = props => {
|
|
|
564
552
|
};
|
|
565
553
|
const StyledSubNav = styled.nav.attrs({
|
|
566
554
|
'data-garden-id': COMPONENT_ID$c,
|
|
567
|
-
'data-garden-version': '9.0.0-next.
|
|
555
|
+
'data-garden-version': '9.0.0-next.7'
|
|
568
556
|
}).withConfig({
|
|
569
557
|
displayName: "StyledSubNav",
|
|
570
558
|
componentId: "sc-19hjou6-0"
|
|
@@ -582,7 +570,7 @@ const sizeStyles = props => {
|
|
|
582
570
|
};
|
|
583
571
|
const StyledSubNavItemText = styled.span.attrs({
|
|
584
572
|
'data-garden-id': COMPONENT_ID$b,
|
|
585
|
-
'data-garden-version': '9.0.0-next.
|
|
573
|
+
'data-garden-version': '9.0.0-next.7'
|
|
586
574
|
}).withConfig({
|
|
587
575
|
displayName: "StyledSubNavItemText",
|
|
588
576
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -594,7 +582,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
594
582
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
595
583
|
const StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
|
|
596
584
|
'data-garden-id': COMPONENT_ID$a,
|
|
597
|
-
'data-garden-version': '9.0.0-next.
|
|
585
|
+
'data-garden-version': '9.0.0-next.7',
|
|
598
586
|
'data-garden-header': 'true'
|
|
599
587
|
}).withConfig({
|
|
600
588
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -641,7 +629,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
641
629
|
};
|
|
642
630
|
const StyledSubNavItemIconWrapper = styled.div.attrs({
|
|
643
631
|
'data-garden-id': COMPONENT_ID$9,
|
|
644
|
-
'data-garden-version': '9.0.0-next.
|
|
632
|
+
'data-garden-version': '9.0.0-next.7'
|
|
645
633
|
}).withConfig({
|
|
646
634
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
647
635
|
componentId: "sc-1d02hho-1"
|
|
@@ -654,7 +642,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
654
642
|
const hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
655
643
|
const StyledSubNavPanel = styled.div.attrs({
|
|
656
644
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
657
|
-
'data-garden-version': '9.0.0-next.
|
|
645
|
+
'data-garden-version': '9.0.0-next.7'
|
|
658
646
|
}).withConfig({
|
|
659
647
|
displayName: "StyledSubNavPanel",
|
|
660
648
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -685,11 +673,11 @@ const borderStyle = _ref => {
|
|
|
685
673
|
};
|
|
686
674
|
const StyledSheet = styled.aside.attrs({
|
|
687
675
|
'data-garden-id': COMPONENT_ID$8,
|
|
688
|
-
'data-garden-version': '9.0.0-next.
|
|
676
|
+
'data-garden-version': '9.0.0-next.7'
|
|
689
677
|
}).withConfig({
|
|
690
678
|
displayName: "StyledSheet",
|
|
691
679
|
componentId: "sc-dx8ijk-0"
|
|
692
|
-
})(["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
|
|
680
|
+
})(["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 => getColorV8('background', 600 , props.theme), props => props.isOpen ? props.size : '0px', props => props.theme.fontSizes.md, props => borderStyle(props), props => retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
693
681
|
StyledSheet.defaultProps = {
|
|
694
682
|
theme: DEFAULT_THEME
|
|
695
683
|
};
|
|
@@ -697,7 +685,7 @@ StyledSheet.defaultProps = {
|
|
|
697
685
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
698
686
|
const StyledSheetWrapper = styled.div.attrs({
|
|
699
687
|
'data-garden-id': COMPONENT_ID$7,
|
|
700
|
-
'data-garden-version': '9.0.0-next.
|
|
688
|
+
'data-garden-version': '9.0.0-next.7'
|
|
701
689
|
}).withConfig({
|
|
702
690
|
displayName: "StyledSheetWrapper",
|
|
703
691
|
componentId: "sc-f6x9zb-0"
|
|
@@ -724,11 +712,11 @@ StyledSheetWrapper.defaultProps = {
|
|
|
724
712
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
725
713
|
const StyledSheetTitle = styled.div.attrs({
|
|
726
714
|
'data-garden-id': COMPONENT_ID$6,
|
|
727
|
-
'data-garden-version': '9.0.0-next.
|
|
715
|
+
'data-garden-version': '9.0.0-next.7'
|
|
728
716
|
}).withConfig({
|
|
729
717
|
displayName: "StyledSheetTitle",
|
|
730
718
|
componentId: "sc-1gogk75-0"
|
|
731
|
-
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
719
|
+
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => getColorV8('foreground', 600 , props.theme), props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
732
720
|
StyledSheetTitle.defaultProps = {
|
|
733
721
|
theme: DEFAULT_THEME
|
|
734
722
|
};
|
|
@@ -736,7 +724,7 @@ StyledSheetTitle.defaultProps = {
|
|
|
736
724
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
737
725
|
const StyledSheetDescription = styled.div.attrs({
|
|
738
726
|
'data-garden-id': COMPONENT_ID$5,
|
|
739
|
-
'data-garden-version': '9.0.0-next.
|
|
727
|
+
'data-garden-version': '9.0.0-next.7'
|
|
740
728
|
}).withConfig({
|
|
741
729
|
displayName: "StyledSheetDescription",
|
|
742
730
|
componentId: "sc-1puglb6-0"
|
|
@@ -748,7 +736,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
748
736
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
749
737
|
const StyledSheetBody = styled.div.attrs({
|
|
750
738
|
'data-garden-id': COMPONENT_ID$4,
|
|
751
|
-
'data-garden-version': '9.0.0-next.
|
|
739
|
+
'data-garden-version': '9.0.0-next.7'
|
|
752
740
|
}).withConfig({
|
|
753
741
|
displayName: "StyledSheetBody",
|
|
754
742
|
componentId: "sc-bt4eoj-0"
|
|
@@ -772,7 +760,7 @@ const colorStyles = props => {
|
|
|
772
760
|
};
|
|
773
761
|
const StyledSheetClose = styled.button.attrs({
|
|
774
762
|
'data-garden-id': COMPONENT_ID$3,
|
|
775
|
-
'data-garden-version': '9.0.0-next.
|
|
763
|
+
'data-garden-version': '9.0.0-next.7'
|
|
776
764
|
}).withConfig({
|
|
777
765
|
displayName: "StyledSheetClose",
|
|
778
766
|
componentId: "sc-1ab02oq-0"
|
|
@@ -784,7 +772,7 @@ StyledSheetClose.defaultProps = {
|
|
|
784
772
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
785
773
|
const StyledSheetFooter = styled.footer.attrs({
|
|
786
774
|
'data-garden-id': COMPONENT_ID$2,
|
|
787
|
-
'data-garden-version': '9.0.0-next.
|
|
775
|
+
'data-garden-version': '9.0.0-next.7'
|
|
788
776
|
}).withConfig({
|
|
789
777
|
displayName: "StyledSheetFooter",
|
|
790
778
|
componentId: "sc-2cktos-0"
|
|
@@ -796,7 +784,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
796
784
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
797
785
|
const StyledSheetFooterItem = styled.div.attrs({
|
|
798
786
|
'data-garden-id': COMPONENT_ID$1,
|
|
799
|
-
'data-garden-version': '9.0.0-next.
|
|
787
|
+
'data-garden-version': '9.0.0-next.7'
|
|
800
788
|
}).withConfig({
|
|
801
789
|
displayName: "StyledSheetFooterItem",
|
|
802
790
|
componentId: "sc-r9ixh-0"
|
|
@@ -808,7 +796,7 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
808
796
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
809
797
|
const StyledSheetHeader = styled.header.attrs({
|
|
810
798
|
'data-garden-id': COMPONENT_ID,
|
|
811
|
-
'data-garden-version': '9.0.0-next.
|
|
799
|
+
'data-garden-version': '9.0.0-next.7'
|
|
812
800
|
}).withConfig({
|
|
813
801
|
displayName: "StyledSheetHeader",
|
|
814
802
|
componentId: "sc-o2ry8i-0"
|
|
@@ -1145,21 +1133,17 @@ SkipNav.defaultProps = {
|
|
|
1145
1133
|
zIndex: 1
|
|
1146
1134
|
};
|
|
1147
1135
|
|
|
1148
|
-
const BodyContext = React__default.createContext(
|
|
1149
|
-
hasFooter: true
|
|
1150
|
-
});
|
|
1136
|
+
const BodyContext = React__default.createContext(undefined);
|
|
1151
1137
|
const useBodyContext = () => {
|
|
1152
1138
|
return useContext(BodyContext);
|
|
1153
1139
|
};
|
|
1154
1140
|
|
|
1155
|
-
const Body$1 = React__default.forwardRef((
|
|
1156
|
-
|
|
1157
|
-
hasFooter,
|
|
1158
|
-
...props
|
|
1159
|
-
} = _ref;
|
|
1141
|
+
const Body$1 = React__default.forwardRef((props, ref) => {
|
|
1142
|
+
const [hasFooter, setHasFooter] = useState(false);
|
|
1160
1143
|
const bodyContextValue = useMemo(() => ({
|
|
1161
|
-
hasFooter
|
|
1162
|
-
|
|
1144
|
+
hasFooter,
|
|
1145
|
+
setHasFooter
|
|
1146
|
+
}), [hasFooter, setHasFooter]);
|
|
1163
1147
|
return React__default.createElement(BodyContext.Provider, {
|
|
1164
1148
|
value: bodyContextValue
|
|
1165
1149
|
}, React__default.createElement(StyledBody, _extends$3({
|
|
@@ -1167,14 +1151,11 @@ const Body$1 = React__default.forwardRef((_ref, ref) => {
|
|
|
1167
1151
|
}, props)));
|
|
1168
1152
|
});
|
|
1169
1153
|
Body$1.displayName = 'Body';
|
|
1170
|
-
Body$1.propTypes = {
|
|
1171
|
-
hasFooter: PropTypes.bool
|
|
1172
|
-
};
|
|
1173
1154
|
|
|
1174
1155
|
const Content = React__default.forwardRef((props, ref) => {
|
|
1175
1156
|
const {
|
|
1176
1157
|
hasFooter
|
|
1177
|
-
} = useBodyContext();
|
|
1158
|
+
} = useBodyContext() || {};
|
|
1178
1159
|
return React__default.createElement(StyledContent, _extends$3({
|
|
1179
1160
|
ref: ref,
|
|
1180
1161
|
hasFooter: hasFooter
|
|
@@ -1187,11 +1168,6 @@ const Main = React__default.forwardRef((props, ref) => React__default.createElem
|
|
|
1187
1168
|
}, props)));
|
|
1188
1169
|
Main.displayName = 'Main';
|
|
1189
1170
|
|
|
1190
|
-
const Sidebar = React__default.forwardRef((props, ref) => React__default.createElement(StyledSidebar, _extends$3({
|
|
1191
|
-
ref: ref
|
|
1192
|
-
}, props)));
|
|
1193
|
-
Sidebar.displayName = 'Sidebar';
|
|
1194
|
-
|
|
1195
1171
|
const HeaderComponent = React__default.forwardRef((props, ref) => React__default.createElement(StyledHeader, _extends$3({
|
|
1196
1172
|
ref: ref
|
|
1197
1173
|
}, props)));
|
|
@@ -1205,9 +1181,25 @@ Header$1.ItemIcon = HeaderItemIcon;
|
|
|
1205
1181
|
Header$1.ItemText = HeaderItemText;
|
|
1206
1182
|
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
1207
1183
|
|
|
1208
|
-
const FooterComponent = React__default.forwardRef((props, ref) =>
|
|
1209
|
-
|
|
1210
|
-
|
|
1184
|
+
const FooterComponent = React__default.forwardRef((props, ref) => {
|
|
1185
|
+
const {
|
|
1186
|
+
hasFooter,
|
|
1187
|
+
setHasFooter
|
|
1188
|
+
} = useBodyContext() || {};
|
|
1189
|
+
useEffect(() => {
|
|
1190
|
+
if (!hasFooter && setHasFooter) {
|
|
1191
|
+
setHasFooter(true);
|
|
1192
|
+
}
|
|
1193
|
+
return () => {
|
|
1194
|
+
if (hasFooter && setHasFooter) {
|
|
1195
|
+
setHasFooter(false);
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
}, [hasFooter, setHasFooter]);
|
|
1199
|
+
return React__default.createElement(StyledFooter, _extends$3({
|
|
1200
|
+
ref: ref
|
|
1201
|
+
}, props));
|
|
1202
|
+
});
|
|
1211
1203
|
FooterComponent.displayName = 'Footer';
|
|
1212
1204
|
const Footer$1 = FooterComponent;
|
|
1213
1205
|
Footer$1.Item = FooterItem$1;
|
|
@@ -1403,7 +1395,7 @@ const SheetComponent = React__default.forwardRef((_ref, ref) => {
|
|
|
1403
1395
|
const sheetRef = useRef(null);
|
|
1404
1396
|
const seed = useUIDSeed();
|
|
1405
1397
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
|
|
1406
|
-
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1398
|
+
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.7'}`), [id, seed]);
|
|
1407
1399
|
const titleId = `${idPrefix}--title`;
|
|
1408
1400
|
const descriptionId = `${idPrefix}--description`;
|
|
1409
1401
|
const sheetContext = useMemo(() => ({
|
|
@@ -1461,4 +1453,4 @@ Sheet.FooterItem = FooterItem;
|
|
|
1461
1453
|
Sheet.Header = Header;
|
|
1462
1454
|
Sheet.Title = Title;
|
|
1463
1455
|
|
|
1464
|
-
export { Body$1 as Body, Chrome, CollapsibleSubNavItem, Content, Footer$1 as Footer, FooterItem$1 as FooterItem, Header$1 as Header, HeaderItem, HeaderItemIcon, HeaderItemText, HeaderItemWrapper, Main, Nav, NavItem, NavItemIcon, NavItemText, PRODUCTS, Sheet,
|
|
1456
|
+
export { Body$1 as Body, Chrome, CollapsibleSubNavItem, Content, Footer$1 as Footer, FooterItem$1 as FooterItem, Header$1 as Header, HeaderItem, HeaderItemIcon, HeaderItemText, HeaderItemWrapper, Main, Nav, NavItem, NavItemIcon, NavItemText, PRODUCTS, Sheet, SkipNav, SubNav, SubNavItem, SubNavItemText };
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { IBodyProps } from '../../types';
|
|
9
8
|
/**
|
|
10
9
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
10
|
*/
|
|
12
|
-
export declare const Body: React.ForwardRefExoticComponent<
|
|
11
|
+
export declare const Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React, {
|
|
7
|
+
import React, { PropsWithChildren, SVGAttributes } from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated use `Header.ItemIcon` instead
|
|
10
10
|
*
|
|
11
|
-
* @extends
|
|
11
|
+
* @extends SVGAttributes<SVGElement>
|
|
12
12
|
*/
|
|
13
|
-
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<
|
|
13
|
+
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
|