@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.cjs.js
CHANGED
|
@@ -61,39 +61,39 @@ function _extends$3() {
|
|
|
61
61
|
const PLACEMENT = ['end', 'start'];
|
|
62
62
|
const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
|
|
63
63
|
|
|
64
|
-
const COMPONENT_ID$
|
|
64
|
+
const COMPONENT_ID$z = 'chrome.chrome';
|
|
65
65
|
const StyledChrome = styled__default.default.div.attrs({
|
|
66
|
-
'data-garden-id': COMPONENT_ID$
|
|
67
|
-
'data-garden-version': '9.0.0-next.
|
|
66
|
+
'data-garden-id': COMPONENT_ID$z,
|
|
67
|
+
'data-garden-version': '9.0.0-next.7'
|
|
68
68
|
}).withConfig({
|
|
69
69
|
displayName: "StyledChrome",
|
|
70
70
|
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$
|
|
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$z, props));
|
|
72
72
|
StyledChrome.defaultProps = {
|
|
73
73
|
theme: reactTheming.DEFAULT_THEME
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
const COMPONENT_ID$
|
|
76
|
+
const COMPONENT_ID$y = 'chrome.header_item_icon';
|
|
77
77
|
const StyledHeaderItemIcon = styled__default.default.div.attrs({
|
|
78
|
-
'data-garden-id': COMPONENT_ID$
|
|
79
|
-
'data-garden-version': '9.0.0-next.
|
|
78
|
+
'data-garden-id': COMPONENT_ID$y,
|
|
79
|
+
'data-garden-version': '9.0.0-next.7'
|
|
80
80
|
}).withConfig({
|
|
81
81
|
displayName: "StyledHeaderItemIcon",
|
|
82
82
|
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$
|
|
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$y, props));
|
|
84
84
|
StyledHeaderItemIcon.defaultProps = {
|
|
85
85
|
theme: reactTheming.DEFAULT_THEME
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
const COMPONENT_ID$
|
|
88
|
+
const COMPONENT_ID$x = 'chrome.base_header_item';
|
|
89
89
|
const getHeaderItemSize = props => `${props.theme.space.base * 7.5}px`;
|
|
90
90
|
const sizeStyles$4 = props => {
|
|
91
91
|
const size = props.theme.space.base * 7.5;
|
|
92
92
|
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
93
|
};
|
|
94
94
|
const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
95
|
-
'data-garden-id': COMPONENT_ID$
|
|
96
|
-
'data-garden-version': '9.0.0-next.
|
|
95
|
+
'data-garden-id': COMPONENT_ID$x,
|
|
96
|
+
'data-garden-version': '9.0.0-next.7'
|
|
97
97
|
}).withConfig({
|
|
98
98
|
displayName: "StyledBaseHeaderItem",
|
|
99
99
|
componentId: "sc-1qua7h6-0"
|
|
@@ -105,25 +105,25 @@ const StyledBaseHeaderItem = styled__default.default.button.attrs({
|
|
|
105
105
|
return '0';
|
|
106
106
|
}
|
|
107
107
|
return props.theme.borderRadii.md;
|
|
108
|
-
}, sizeStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
108
|
+
}, sizeStyles$4, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$x, props));
|
|
109
109
|
StyledBaseHeaderItem.defaultProps = {
|
|
110
110
|
theme: reactTheming.DEFAULT_THEME
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
const COMPONENT_ID$
|
|
113
|
+
const COMPONENT_ID$w = 'chrome.header_item_text';
|
|
114
114
|
const clippedStyling = styled.css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
115
115
|
const StyledHeaderItemText = styled__default.default.span.attrs({
|
|
116
|
-
'data-garden-id': COMPONENT_ID$
|
|
117
|
-
'data-garden-version': '9.0.0-next.
|
|
116
|
+
'data-garden-id': COMPONENT_ID$w,
|
|
117
|
+
'data-garden-version': '9.0.0-next.7'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledHeaderItemText",
|
|
120
120
|
componentId: "sc-goz7la-0"
|
|
121
|
-
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
121
|
+
})(["margin:0 3px;", " ", ";"], props => props.isClipped && clippedStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$w, props));
|
|
122
122
|
StyledHeaderItemText.defaultProps = {
|
|
123
123
|
theme: reactTheming.DEFAULT_THEME
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
const COMPONENT_ID$
|
|
126
|
+
const COMPONENT_ID$v = 'chrome.nav';
|
|
127
127
|
const colorStyles$6 = props => {
|
|
128
128
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
129
129
|
const backgroundColor = reactTheming.getColorV8(props.hue, shade, props.theme);
|
|
@@ -137,17 +137,17 @@ const getExpandedNavWidth = () => {
|
|
|
137
137
|
return `200px`;
|
|
138
138
|
};
|
|
139
139
|
const StyledNav = styled__default.default.nav.attrs({
|
|
140
|
-
'data-garden-id': COMPONENT_ID$
|
|
141
|
-
'data-garden-version': '9.0.0-next.
|
|
140
|
+
'data-garden-id': COMPONENT_ID$v,
|
|
141
|
+
'data-garden-version': '9.0.0-next.7'
|
|
142
142
|
}).withConfig({
|
|
143
143
|
displayName: "StyledNav",
|
|
144
144
|
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$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
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$6(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$v, props));
|
|
146
146
|
StyledNav.defaultProps = {
|
|
147
147
|
theme: reactTheming.DEFAULT_THEME
|
|
148
148
|
};
|
|
149
149
|
|
|
150
|
-
const COMPONENT_ID$
|
|
150
|
+
const COMPONENT_ID$u = 'chrome.header_item';
|
|
151
151
|
const retrieveProductColor$1 = props => {
|
|
152
152
|
switch (props.product) {
|
|
153
153
|
case 'chat':
|
|
@@ -169,18 +169,18 @@ const retrieveProductColor$1 = props => {
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
const StyledLogoHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
172
|
-
'data-garden-id': COMPONENT_ID$
|
|
173
|
-
'data-garden-version': '9.0.0-next.
|
|
172
|
+
'data-garden-id': COMPONENT_ID$u,
|
|
173
|
+
'data-garden-version': '9.0.0-next.7',
|
|
174
174
|
as: 'div'
|
|
175
175
|
}).withConfig({
|
|
176
176
|
displayName: "StyledLogoHeaderItem",
|
|
177
177
|
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$
|
|
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$u, props));
|
|
179
179
|
StyledLogoHeaderItem.defaultProps = {
|
|
180
180
|
theme: reactTheming.DEFAULT_THEME
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
const COMPONENT_ID$
|
|
183
|
+
const COMPONENT_ID$t = 'chrome.base_nav_item';
|
|
184
184
|
const getNavItemHeight = props => {
|
|
185
185
|
return `${props.theme.space.base * 13}px`;
|
|
186
186
|
};
|
|
@@ -190,8 +190,8 @@ const sizeStyles$3 = props => {
|
|
|
190
190
|
return styled.css(["padding:", " ", ";min-height:", ";"], verticalPadding, horizontalPadding, getNavItemHeight);
|
|
191
191
|
};
|
|
192
192
|
const StyledBaseNavItem = styled__default.default.button.attrs({
|
|
193
|
-
'data-garden-id': COMPONENT_ID$
|
|
194
|
-
'data-garden-version': '9.0.0-next.
|
|
193
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
194
|
+
'data-garden-version': '9.0.0-next.7'
|
|
195
195
|
}).withConfig({
|
|
196
196
|
displayName: "StyledBaseNavItem",
|
|
197
197
|
componentId: "sc-zvo43f-0"
|
|
@@ -200,26 +200,26 @@ StyledBaseNavItem.defaultProps = {
|
|
|
200
200
|
theme: reactTheming.DEFAULT_THEME
|
|
201
201
|
};
|
|
202
202
|
|
|
203
|
-
const COMPONENT_ID$
|
|
203
|
+
const COMPONENT_ID$s = 'chrome.header';
|
|
204
204
|
const getHeaderHeight = props => {
|
|
205
205
|
return getNavItemHeight(props);
|
|
206
206
|
};
|
|
207
207
|
const StyledHeader = styled__default.default.header.attrs({
|
|
208
|
-
'data-garden-id': COMPONENT_ID$
|
|
209
|
-
'data-garden-version': '9.0.0-next.
|
|
208
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
209
|
+
'data-garden-version': '9.0.0-next.7'
|
|
210
210
|
}).withConfig({
|
|
211
211
|
displayName: "StyledHeader",
|
|
212
212
|
componentId: "sc-1cexpz-0"
|
|
213
|
-
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', reactTheming.getColorV8('chromeHue', 600, props.theme, 0.15)), props => props.theme
|
|
213
|
+
})(["display:flex;position:", ";align-items:center;justify-content:flex-end;box-sizing:border-box;border-bottom:", ";box-shadow:", ";background-color:", ";padding:0 ", "px;height:", ";color:", ";font-size:", ";", " ", ";"], props => props.isStandalone && 'relative', props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 300, props.theme)}`, props => props.isStandalone && props.theme.shadows.lg('0', '10px', reactTheming.getColorV8('chromeHue', 600, props.theme, 0.15)), props => reactTheming.getColorV8('background', 600 , props.theme), props => props.theme.space.base, getHeaderHeight, props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isStandalone && `
|
|
214
214
|
${StyledLogoHeaderItem} {
|
|
215
215
|
display: inline-flex;
|
|
216
216
|
}
|
|
217
|
-
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
217
|
+
`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$s, props));
|
|
218
218
|
StyledHeader.defaultProps = {
|
|
219
219
|
theme: reactTheming.DEFAULT_THEME
|
|
220
220
|
};
|
|
221
221
|
|
|
222
|
-
const COMPONENT_ID$
|
|
222
|
+
const COMPONENT_ID$r = 'chrome.skipnav';
|
|
223
223
|
const animationStyles = () => {
|
|
224
224
|
const animationName = styled.keyframes(["0%{transform:translate(-50%,-50%);}"]);
|
|
225
225
|
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);
|
|
@@ -228,7 +228,7 @@ const colorStyles$5 = theme => {
|
|
|
228
228
|
const color = reactTheming.getColorV8('primaryHue', 600, theme);
|
|
229
229
|
const borderColor = reactTheming.getColorV8('neutralHue', 300, theme);
|
|
230
230
|
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`, reactTheming.getColorV8('chromeHue', 600, theme, 0.15));
|
|
231
|
-
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow,
|
|
231
|
+
return styled.css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow, reactTheming.getColorV8('background', 600 , theme), color, color, reactTheming.focusStyles({
|
|
232
232
|
theme,
|
|
233
233
|
inset: true,
|
|
234
234
|
boxShadow
|
|
@@ -243,12 +243,12 @@ const sizeStyles$2 = props => {
|
|
|
243
243
|
return styled.css(["top:", ";padding:", ";padding-", ":", ";line-height:", ";font-size:", ";"], top, padding, props.theme.rtl ? 'right' : 'left', paddingStart, lineHeight, fontSize);
|
|
244
244
|
};
|
|
245
245
|
const StyledSkipNav = styled__default.default.a.attrs({
|
|
246
|
-
'data-garden-id': COMPONENT_ID$
|
|
247
|
-
'data-garden-version': '9.0.0-next.
|
|
246
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
247
|
+
'data-garden-version': '9.0.0-next.7'
|
|
248
248
|
}).withConfig({
|
|
249
249
|
displayName: "StyledSkipNav",
|
|
250
250
|
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$2(props), reactTheming.SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
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$2(props), reactTheming.SELECTOR_FOCUS_VISIBLE, props => colorStyles$5(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
252
252
|
StyledSkipNav.defaultProps = {
|
|
253
253
|
theme: reactTheming.DEFAULT_THEME
|
|
254
254
|
};
|
|
@@ -269,90 +269,78 @@ var SvgLinkStroke = function SvgLinkStroke(props) {
|
|
|
269
269
|
})));
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
const COMPONENT_ID$
|
|
272
|
+
const COMPONENT_ID$q = 'chrome.skipnav_icon';
|
|
273
273
|
const sizeStyles$1 = theme => {
|
|
274
274
|
const margin = `${theme.space.base * 2}px`;
|
|
275
275
|
const size = theme.iconSizes.md;
|
|
276
276
|
return styled.css(["margin-", ":", ";width:", ";height:", ";"], theme.rtl ? 'left' : 'right', margin, size, size);
|
|
277
277
|
};
|
|
278
278
|
const StyledSkipNavIcon = styled__default.default(SvgLinkStroke).attrs({
|
|
279
|
-
'data-garden-id': COMPONENT_ID$
|
|
280
|
-
'data-garden-version': '9.0.0-next.
|
|
279
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
280
|
+
'data-garden-version': '9.0.0-next.7'
|
|
281
281
|
}).withConfig({
|
|
282
282
|
displayName: "StyledSkipNavIcon",
|
|
283
283
|
componentId: "sc-1ika5z4-0"
|
|
284
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$
|
|
284
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
285
285
|
StyledSkipNavIcon.defaultProps = {
|
|
286
286
|
theme: reactTheming.DEFAULT_THEME
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
-
const COMPONENT_ID$
|
|
289
|
+
const COMPONENT_ID$p = 'chrome.body';
|
|
290
290
|
const StyledBody = styled__default.default.div.attrs({
|
|
291
|
-
'data-garden-id': COMPONENT_ID$
|
|
292
|
-
'data-garden-version': '9.0.0-next.
|
|
291
|
+
'data-garden-id': COMPONENT_ID$p,
|
|
292
|
+
'data-garden-version': '9.0.0-next.7'
|
|
293
293
|
}).withConfig({
|
|
294
294
|
displayName: "StyledBody",
|
|
295
295
|
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$
|
|
296
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => reactTheming.getColorV8('neutralHue', 100, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$p, props));
|
|
297
297
|
StyledBody.defaultProps = {
|
|
298
298
|
theme: reactTheming.DEFAULT_THEME
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
-
const COMPONENT_ID$
|
|
301
|
+
const COMPONENT_ID$o = 'chrome.footer';
|
|
302
302
|
const getFooterHeight = props => {
|
|
303
303
|
return `${props.theme.space.base * 20}px`;
|
|
304
304
|
};
|
|
305
305
|
const StyledFooter = styled__default.default.footer.attrs({
|
|
306
|
-
'data-garden-id': COMPONENT_ID$
|
|
307
|
-
'data-garden-version': '9.0.0-next.
|
|
306
|
+
'data-garden-id': COMPONENT_ID$o,
|
|
307
|
+
'data-garden-version': '9.0.0-next.7'
|
|
308
308
|
}).withConfig({
|
|
309
309
|
displayName: "StyledFooter",
|
|
310
310
|
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 => props.theme
|
|
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$o, props));
|
|
312
312
|
StyledFooter.defaultProps = {
|
|
313
313
|
theme: reactTheming.DEFAULT_THEME
|
|
314
314
|
};
|
|
315
315
|
|
|
316
|
-
const COMPONENT_ID$
|
|
316
|
+
const COMPONENT_ID$n = 'chrome.content';
|
|
317
317
|
const StyledContent = styled__default.default.div.attrs({
|
|
318
|
-
'data-garden-id': COMPONENT_ID$
|
|
319
|
-
'data-garden-version': '9.0.0-next.
|
|
318
|
+
'data-garden-id': COMPONENT_ID$n,
|
|
319
|
+
'data-garden-version': '9.0.0-next.7'
|
|
320
320
|
}).withConfig({
|
|
321
321
|
displayName: "StyledContent",
|
|
322
322
|
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 => props.theme
|
|
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$n, props));
|
|
324
324
|
StyledContent.defaultProps = {
|
|
325
325
|
theme: reactTheming.DEFAULT_THEME
|
|
326
326
|
};
|
|
327
327
|
|
|
328
|
-
const COMPONENT_ID$
|
|
328
|
+
const COMPONENT_ID$m = 'chrome.main';
|
|
329
329
|
const StyledMain = styled__default.default.main.attrs({
|
|
330
|
-
'data-garden-id': COMPONENT_ID$
|
|
331
|
-
'data-garden-version': '9.0.0-next.
|
|
330
|
+
'data-garden-id': COMPONENT_ID$m,
|
|
331
|
+
'data-garden-version': '9.0.0-next.7'
|
|
332
332
|
}).withConfig({
|
|
333
333
|
displayName: "StyledMain",
|
|
334
334
|
componentId: "sc-t61cre-0"
|
|
335
|
-
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => props.theme
|
|
335
|
+
})(["flex:1;order:1;background-color:", ";overflow:auto;:focus{outline:none;}", ";"], props => reactTheming.getColorV8('background', 600 , props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
|
|
336
336
|
StyledMain.defaultProps = {
|
|
337
337
|
theme: reactTheming.DEFAULT_THEME
|
|
338
338
|
};
|
|
339
339
|
|
|
340
|
-
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
341
|
-
const StyledSidebar = styled__default.default.aside.attrs({
|
|
342
|
-
'data-garden-id': COMPONENT_ID$m,
|
|
343
|
-
'data-garden-version': '9.0.0-next.5'
|
|
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
340
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
353
341
|
const StyledFooterItem = styled__default.default.div.attrs({
|
|
354
342
|
'data-garden-id': COMPONENT_ID$l,
|
|
355
|
-
'data-garden-version': '9.0.0-next.
|
|
343
|
+
'data-garden-version': '9.0.0-next.7'
|
|
356
344
|
}).withConfig({
|
|
357
345
|
displayName: "StyledFooterItem",
|
|
358
346
|
componentId: "sc-1cktm85-0"
|
|
@@ -368,11 +356,11 @@ const imgStyles = props => {
|
|
|
368
356
|
};
|
|
369
357
|
const StyledHeaderItem = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
370
358
|
'data-garden-id': COMPONENT_ID$k,
|
|
371
|
-
'data-garden-version': '9.0.0-next.
|
|
359
|
+
'data-garden-version': '9.0.0-next.7'
|
|
372
360
|
}).withConfig({
|
|
373
361
|
displayName: "StyledHeaderItem",
|
|
374
362
|
componentId: "sc-14sft6n-0"
|
|
375
|
-
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active
|
|
363
|
+
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => reactTheming.focusStyles({
|
|
376
364
|
theme: props.theme,
|
|
377
365
|
inset: props.maxY
|
|
378
366
|
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => reactTheming.getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
@@ -387,7 +375,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
387
375
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
388
376
|
const StyledHeaderItemWrapper = styled__default.default(StyledBaseHeaderItem).attrs({
|
|
389
377
|
'data-garden-id': COMPONENT_ID$j,
|
|
390
|
-
'data-garden-version': '9.0.0-next.
|
|
378
|
+
'data-garden-version': '9.0.0-next.7',
|
|
391
379
|
as: 'div'
|
|
392
380
|
}).withConfig({
|
|
393
381
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -425,7 +413,7 @@ const colorStyles$4 = props => {
|
|
|
425
413
|
};
|
|
426
414
|
const StyledLogoNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
427
415
|
'data-garden-id': COMPONENT_ID$i,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
416
|
+
'data-garden-version': '9.0.0-next.7',
|
|
429
417
|
as: 'div'
|
|
430
418
|
}).withConfig({
|
|
431
419
|
displayName: "StyledLogoNavItem",
|
|
@@ -438,7 +426,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
438
426
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
439
427
|
const StyledBrandmarkNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
440
428
|
'data-garden-id': COMPONENT_ID$h,
|
|
441
|
-
'data-garden-version': '9.0.0-next.
|
|
429
|
+
'data-garden-version': '9.0.0-next.7',
|
|
442
430
|
as: 'div'
|
|
443
431
|
}).withConfig({
|
|
444
432
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -451,7 +439,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
451
439
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
452
440
|
const StyledNavItemIcon = styled__default.default.div.attrs({
|
|
453
441
|
'data-garden-id': COMPONENT_ID$g,
|
|
454
|
-
'data-garden-version': '9.0.0-next.
|
|
442
|
+
'data-garden-version': '9.0.0-next.7'
|
|
455
443
|
}).withConfig({
|
|
456
444
|
displayName: "StyledNavItemIcon",
|
|
457
445
|
componentId: "sc-7w9rpt-0"
|
|
@@ -497,7 +485,7 @@ const colorStyles$3 = props => {
|
|
|
497
485
|
};
|
|
498
486
|
const StyledNavItem = styled__default.default(StyledBaseNavItem).attrs({
|
|
499
487
|
'data-garden-id': COMPONENT_ID$f,
|
|
500
|
-
'data-garden-version': '9.0.0-next.
|
|
488
|
+
'data-garden-version': '9.0.0-next.7',
|
|
501
489
|
as: 'button'
|
|
502
490
|
}).withConfig({
|
|
503
491
|
displayName: "StyledNavItem",
|
|
@@ -514,7 +502,7 @@ StyledNavItem.defaultProps = {
|
|
|
514
502
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
515
503
|
const StyledNavItemText = styled__default.default.span.attrs({
|
|
516
504
|
'data-garden-id': COMPONENT_ID$e,
|
|
517
|
-
'data-garden-version': '9.0.0-next.
|
|
505
|
+
'data-garden-version': '9.0.0-next.7'
|
|
518
506
|
}).withConfig({
|
|
519
507
|
displayName: "StyledNavItemText",
|
|
520
508
|
componentId: "sc-13m84xl-0"
|
|
@@ -567,7 +555,7 @@ const getSubNavItemHeight = props => {
|
|
|
567
555
|
};
|
|
568
556
|
const StyledSubNavItem = styled__default.default.button.attrs({
|
|
569
557
|
'data-garden-id': COMPONENT_ID$d,
|
|
570
|
-
'data-garden-version': '9.0.0-next.
|
|
558
|
+
'data-garden-version': '9.0.0-next.7'
|
|
571
559
|
}).withConfig({
|
|
572
560
|
displayName: "StyledSubNavItem",
|
|
573
561
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -590,7 +578,7 @@ const colorStyles$1 = props => {
|
|
|
590
578
|
};
|
|
591
579
|
const StyledSubNav = styled__default.default.nav.attrs({
|
|
592
580
|
'data-garden-id': COMPONENT_ID$c,
|
|
593
|
-
'data-garden-version': '9.0.0-next.
|
|
581
|
+
'data-garden-version': '9.0.0-next.7'
|
|
594
582
|
}).withConfig({
|
|
595
583
|
displayName: "StyledSubNav",
|
|
596
584
|
componentId: "sc-19hjou6-0"
|
|
@@ -608,7 +596,7 @@ const sizeStyles = props => {
|
|
|
608
596
|
};
|
|
609
597
|
const StyledSubNavItemText = styled__default.default.span.attrs({
|
|
610
598
|
'data-garden-id': COMPONENT_ID$b,
|
|
611
|
-
'data-garden-version': '9.0.0-next.
|
|
599
|
+
'data-garden-version': '9.0.0-next.7'
|
|
612
600
|
}).withConfig({
|
|
613
601
|
displayName: "StyledSubNavItemText",
|
|
614
602
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -620,7 +608,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
620
608
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
621
609
|
const StyledSubNavItemHeader = styled__default.default(StyledSubNavItem).attrs({
|
|
622
610
|
'data-garden-id': COMPONENT_ID$a,
|
|
623
|
-
'data-garden-version': '9.0.0-next.
|
|
611
|
+
'data-garden-version': '9.0.0-next.7',
|
|
624
612
|
'data-garden-header': 'true'
|
|
625
613
|
}).withConfig({
|
|
626
614
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -667,7 +655,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
667
655
|
};
|
|
668
656
|
const StyledSubNavItemIconWrapper = styled__default.default.div.attrs({
|
|
669
657
|
'data-garden-id': COMPONENT_ID$9,
|
|
670
|
-
'data-garden-version': '9.0.0-next.
|
|
658
|
+
'data-garden-version': '9.0.0-next.7'
|
|
671
659
|
}).withConfig({
|
|
672
660
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
673
661
|
componentId: "sc-1d02hho-1"
|
|
@@ -680,7 +668,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
680
668
|
const hiddenStyling = styled.css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
681
669
|
const StyledSubNavPanel = styled__default.default.div.attrs({
|
|
682
670
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
683
|
-
'data-garden-version': '9.0.0-next.
|
|
671
|
+
'data-garden-version': '9.0.0-next.7'
|
|
684
672
|
}).withConfig({
|
|
685
673
|
displayName: "StyledSubNavPanel",
|
|
686
674
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -711,11 +699,11 @@ const borderStyle = _ref => {
|
|
|
711
699
|
};
|
|
712
700
|
const StyledSheet = styled__default.default.aside.attrs({
|
|
713
701
|
'data-garden-id': COMPONENT_ID$8,
|
|
714
|
-
'data-garden-version': '9.0.0-next.
|
|
702
|
+
'data-garden-version': '9.0.0-next.7'
|
|
715
703
|
}).withConfig({
|
|
716
704
|
displayName: "StyledSheet",
|
|
717
705
|
componentId: "sc-dx8ijk-0"
|
|
718
|
-
})(["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
|
|
706
|
+
})(["display:flex;order:1;transition:", ";background-color:", ";width:", ";height:100%;overflow:hidden;font-size:", ";&:focus{outline:none;}", ";", ";"], props => props.isAnimated && 'width 250ms ease-in-out', props => reactTheming.getColorV8('background', 600 , props.theme), props => props.isOpen ? props.size : '0px', props => props.theme.fontSizes.md, props => borderStyle(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
|
|
719
707
|
StyledSheet.defaultProps = {
|
|
720
708
|
theme: reactTheming.DEFAULT_THEME
|
|
721
709
|
};
|
|
@@ -723,7 +711,7 @@ StyledSheet.defaultProps = {
|
|
|
723
711
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
724
712
|
const StyledSheetWrapper = styled__default.default.div.attrs({
|
|
725
713
|
'data-garden-id': COMPONENT_ID$7,
|
|
726
|
-
'data-garden-version': '9.0.0-next.
|
|
714
|
+
'data-garden-version': '9.0.0-next.7'
|
|
727
715
|
}).withConfig({
|
|
728
716
|
displayName: "StyledSheetWrapper",
|
|
729
717
|
componentId: "sc-f6x9zb-0"
|
|
@@ -750,11 +738,11 @@ StyledSheetWrapper.defaultProps = {
|
|
|
750
738
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
751
739
|
const StyledSheetTitle = styled__default.default.div.attrs({
|
|
752
740
|
'data-garden-id': COMPONENT_ID$6,
|
|
753
|
-
'data-garden-version': '9.0.0-next.
|
|
741
|
+
'data-garden-version': '9.0.0-next.7'
|
|
754
742
|
}).withConfig({
|
|
755
743
|
displayName: "StyledSheetTitle",
|
|
756
744
|
componentId: "sc-1gogk75-0"
|
|
757
|
-
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
745
|
+
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColorV8('foreground', 600 , props.theme), props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
758
746
|
StyledSheetTitle.defaultProps = {
|
|
759
747
|
theme: reactTheming.DEFAULT_THEME
|
|
760
748
|
};
|
|
@@ -762,7 +750,7 @@ StyledSheetTitle.defaultProps = {
|
|
|
762
750
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
763
751
|
const StyledSheetDescription = styled__default.default.div.attrs({
|
|
764
752
|
'data-garden-id': COMPONENT_ID$5,
|
|
765
|
-
'data-garden-version': '9.0.0-next.
|
|
753
|
+
'data-garden-version': '9.0.0-next.7'
|
|
766
754
|
}).withConfig({
|
|
767
755
|
displayName: "StyledSheetDescription",
|
|
768
756
|
componentId: "sc-1puglb6-0"
|
|
@@ -774,7 +762,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
774
762
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
775
763
|
const StyledSheetBody = styled__default.default.div.attrs({
|
|
776
764
|
'data-garden-id': COMPONENT_ID$4,
|
|
777
|
-
'data-garden-version': '9.0.0-next.
|
|
765
|
+
'data-garden-version': '9.0.0-next.7'
|
|
778
766
|
}).withConfig({
|
|
779
767
|
displayName: "StyledSheetBody",
|
|
780
768
|
componentId: "sc-bt4eoj-0"
|
|
@@ -798,7 +786,7 @@ const colorStyles = props => {
|
|
|
798
786
|
};
|
|
799
787
|
const StyledSheetClose = styled__default.default.button.attrs({
|
|
800
788
|
'data-garden-id': COMPONENT_ID$3,
|
|
801
|
-
'data-garden-version': '9.0.0-next.
|
|
789
|
+
'data-garden-version': '9.0.0-next.7'
|
|
802
790
|
}).withConfig({
|
|
803
791
|
displayName: "StyledSheetClose",
|
|
804
792
|
componentId: "sc-1ab02oq-0"
|
|
@@ -810,7 +798,7 @@ StyledSheetClose.defaultProps = {
|
|
|
810
798
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
811
799
|
const StyledSheetFooter = styled__default.default.footer.attrs({
|
|
812
800
|
'data-garden-id': COMPONENT_ID$2,
|
|
813
|
-
'data-garden-version': '9.0.0-next.
|
|
801
|
+
'data-garden-version': '9.0.0-next.7'
|
|
814
802
|
}).withConfig({
|
|
815
803
|
displayName: "StyledSheetFooter",
|
|
816
804
|
componentId: "sc-2cktos-0"
|
|
@@ -822,7 +810,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
822
810
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
823
811
|
const StyledSheetFooterItem = styled__default.default.div.attrs({
|
|
824
812
|
'data-garden-id': COMPONENT_ID$1,
|
|
825
|
-
'data-garden-version': '9.0.0-next.
|
|
813
|
+
'data-garden-version': '9.0.0-next.7'
|
|
826
814
|
}).withConfig({
|
|
827
815
|
displayName: "StyledSheetFooterItem",
|
|
828
816
|
componentId: "sc-r9ixh-0"
|
|
@@ -834,7 +822,7 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
834
822
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
835
823
|
const StyledSheetHeader = styled__default.default.header.attrs({
|
|
836
824
|
'data-garden-id': COMPONENT_ID,
|
|
837
|
-
'data-garden-version': '9.0.0-next.
|
|
825
|
+
'data-garden-version': '9.0.0-next.7'
|
|
838
826
|
}).withConfig({
|
|
839
827
|
displayName: "StyledSheetHeader",
|
|
840
828
|
componentId: "sc-o2ry8i-0"
|
|
@@ -1171,21 +1159,17 @@ SkipNav.defaultProps = {
|
|
|
1171
1159
|
zIndex: 1
|
|
1172
1160
|
};
|
|
1173
1161
|
|
|
1174
|
-
const BodyContext = React__namespace.default.createContext(
|
|
1175
|
-
hasFooter: true
|
|
1176
|
-
});
|
|
1162
|
+
const BodyContext = React__namespace.default.createContext(undefined);
|
|
1177
1163
|
const useBodyContext = () => {
|
|
1178
1164
|
return React.useContext(BodyContext);
|
|
1179
1165
|
};
|
|
1180
1166
|
|
|
1181
|
-
const Body$1 = React__namespace.default.forwardRef((
|
|
1182
|
-
|
|
1183
|
-
hasFooter,
|
|
1184
|
-
...props
|
|
1185
|
-
} = _ref;
|
|
1167
|
+
const Body$1 = React__namespace.default.forwardRef((props, ref) => {
|
|
1168
|
+
const [hasFooter, setHasFooter] = React.useState(false);
|
|
1186
1169
|
const bodyContextValue = React.useMemo(() => ({
|
|
1187
|
-
hasFooter
|
|
1188
|
-
|
|
1170
|
+
hasFooter,
|
|
1171
|
+
setHasFooter
|
|
1172
|
+
}), [hasFooter, setHasFooter]);
|
|
1189
1173
|
return React__namespace.default.createElement(BodyContext.Provider, {
|
|
1190
1174
|
value: bodyContextValue
|
|
1191
1175
|
}, React__namespace.default.createElement(StyledBody, _extends$3({
|
|
@@ -1193,14 +1177,11 @@ const Body$1 = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1193
1177
|
}, props)));
|
|
1194
1178
|
});
|
|
1195
1179
|
Body$1.displayName = 'Body';
|
|
1196
|
-
Body$1.propTypes = {
|
|
1197
|
-
hasFooter: PropTypes__default.default.bool
|
|
1198
|
-
};
|
|
1199
1180
|
|
|
1200
1181
|
const Content = React__namespace.default.forwardRef((props, ref) => {
|
|
1201
1182
|
const {
|
|
1202
1183
|
hasFooter
|
|
1203
|
-
} = useBodyContext();
|
|
1184
|
+
} = useBodyContext() || {};
|
|
1204
1185
|
return React__namespace.default.createElement(StyledContent, _extends$3({
|
|
1205
1186
|
ref: ref,
|
|
1206
1187
|
hasFooter: hasFooter
|
|
@@ -1213,11 +1194,6 @@ const Main = React__namespace.default.forwardRef((props, ref) => React__namespac
|
|
|
1213
1194
|
}, props)));
|
|
1214
1195
|
Main.displayName = 'Main';
|
|
1215
1196
|
|
|
1216
|
-
const Sidebar = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledSidebar, _extends$3({
|
|
1217
|
-
ref: ref
|
|
1218
|
-
}, props)));
|
|
1219
|
-
Sidebar.displayName = 'Sidebar';
|
|
1220
|
-
|
|
1221
1197
|
const HeaderComponent = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(StyledHeader, _extends$3({
|
|
1222
1198
|
ref: ref
|
|
1223
1199
|
}, props)));
|
|
@@ -1231,9 +1207,25 @@ Header$1.ItemIcon = HeaderItemIcon;
|
|
|
1231
1207
|
Header$1.ItemText = HeaderItemText;
|
|
1232
1208
|
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
1233
1209
|
|
|
1234
|
-
const FooterComponent = React__namespace.default.forwardRef((props, ref) =>
|
|
1235
|
-
|
|
1236
|
-
|
|
1210
|
+
const FooterComponent = React__namespace.default.forwardRef((props, ref) => {
|
|
1211
|
+
const {
|
|
1212
|
+
hasFooter,
|
|
1213
|
+
setHasFooter
|
|
1214
|
+
} = useBodyContext() || {};
|
|
1215
|
+
React.useEffect(() => {
|
|
1216
|
+
if (!hasFooter && setHasFooter) {
|
|
1217
|
+
setHasFooter(true);
|
|
1218
|
+
}
|
|
1219
|
+
return () => {
|
|
1220
|
+
if (hasFooter && setHasFooter) {
|
|
1221
|
+
setHasFooter(false);
|
|
1222
|
+
}
|
|
1223
|
+
};
|
|
1224
|
+
}, [hasFooter, setHasFooter]);
|
|
1225
|
+
return React__namespace.default.createElement(StyledFooter, _extends$3({
|
|
1226
|
+
ref: ref
|
|
1227
|
+
}, props));
|
|
1228
|
+
});
|
|
1237
1229
|
FooterComponent.displayName = 'Footer';
|
|
1238
1230
|
const Footer$1 = FooterComponent;
|
|
1239
1231
|
Footer$1.Item = FooterItem$1;
|
|
@@ -1429,7 +1421,7 @@ const SheetComponent = React__namespace.default.forwardRef((_ref, ref) => {
|
|
|
1429
1421
|
const sheetRef = React.useRef(null);
|
|
1430
1422
|
const seed = reactUid.useUIDSeed();
|
|
1431
1423
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = React.useState(false);
|
|
1432
|
-
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1424
|
+
const idPrefix = React.useMemo(() => id || seed(`sheet_${'9.0.0-next.7'}`), [id, seed]);
|
|
1433
1425
|
const titleId = `${idPrefix}--title`;
|
|
1434
1426
|
const descriptionId = `${idPrefix}--description`;
|
|
1435
1427
|
const sheetContext = React.useMemo(() => ({
|
|
@@ -1505,7 +1497,6 @@ exports.NavItemIcon = NavItemIcon;
|
|
|
1505
1497
|
exports.NavItemText = NavItemText;
|
|
1506
1498
|
exports.PRODUCTS = PRODUCTS;
|
|
1507
1499
|
exports.Sheet = Sheet;
|
|
1508
|
-
exports.Sidebar = Sidebar;
|
|
1509
1500
|
exports.SkipNav = SkipNav;
|
|
1510
1501
|
exports.SubNav = SubNav;
|
|
1511
1502
|
exports.SubNavItem = SubNavItem;
|