@zendeskgarden/react-chrome 9.0.0-next.4 → 9.0.0-next.6
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 +90 -81
- package/dist/index.esm.js +91 -82
- package/dist/typings/elements/body/Body.d.ts +1 -2
- package/dist/typings/elements/footer/FooterItem.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItem.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemIcon.d.ts +5 -3
- package/dist/typings/elements/header/HeaderItemText.d.ts +2 -0
- package/dist/typings/elements/header/HeaderItemWrapper.d.ts +2 -0
- package/dist/typings/elements/nav/NavItem.d.ts +2 -0
- package/dist/typings/elements/nav/NavItemIcon.d.ts +5 -3
- package/dist/typings/elements/nav/NavItemText.d.ts +2 -0
- package/dist/typings/elements/subnav/CollapsibleSubNavItem.d.ts +2 -0
- package/dist/typings/elements/subnav/SubNavItem.d.ts +2 -0
- package/dist/typings/elements/subnav/SubNavItemText.d.ts +2 -0
- package/dist/typings/index.d.ts +1 -12
- 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/index.esm.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
import React__default, { Children, isValidElement, cloneElement, useContext, createRef, useState, useEffect, useMemo, createContext, useRef, forwardRef } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import styled, { css, keyframes, ThemeContext } from 'styled-components';
|
|
12
|
-
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight,
|
|
12
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColorV8, PALETTE, SELECTOR_FOCUS_VISIBLE, focusStyles, useDocument } from '@zendeskgarden/react-theming';
|
|
13
13
|
import { math, rgba, readableColor } from 'polished';
|
|
14
14
|
import { useAccordion } from '@zendeskgarden/container-accordion';
|
|
15
15
|
import { getControlledValue } from '@zendeskgarden/container-utilities';
|
|
@@ -38,7 +38,7 @@ const PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', '
|
|
|
38
38
|
const COMPONENT_ID$A = 'chrome.chrome';
|
|
39
39
|
const StyledChrome = styled.div.attrs({
|
|
40
40
|
'data-garden-id': COMPONENT_ID$A,
|
|
41
|
-
'data-garden-version': '9.0.0-next.
|
|
41
|
+
'data-garden-version': '9.0.0-next.6'
|
|
42
42
|
}).withConfig({
|
|
43
43
|
displayName: "StyledChrome",
|
|
44
44
|
componentId: "sc-1uqm6u6-0"
|
|
@@ -50,7 +50,7 @@ StyledChrome.defaultProps = {
|
|
|
50
50
|
const COMPONENT_ID$z = 'chrome.header_item_icon';
|
|
51
51
|
const StyledHeaderItemIcon = styled.div.attrs({
|
|
52
52
|
'data-garden-id': COMPONENT_ID$z,
|
|
53
|
-
'data-garden-version': '9.0.0-next.
|
|
53
|
+
'data-garden-version': '9.0.0-next.6'
|
|
54
54
|
}).withConfig({
|
|
55
55
|
displayName: "StyledHeaderItemIcon",
|
|
56
56
|
componentId: "sc-1jhhp6z-0"
|
|
@@ -67,7 +67,7 @@ const sizeStyles$4 = props => {
|
|
|
67
67
|
};
|
|
68
68
|
const StyledBaseHeaderItem = styled.button.attrs({
|
|
69
69
|
'data-garden-id': COMPONENT_ID$y,
|
|
70
|
-
'data-garden-version': '9.0.0-next.
|
|
70
|
+
'data-garden-version': '9.0.0-next.6'
|
|
71
71
|
}).withConfig({
|
|
72
72
|
displayName: "StyledBaseHeaderItem",
|
|
73
73
|
componentId: "sc-1qua7h6-0"
|
|
@@ -88,7 +88,7 @@ const COMPONENT_ID$x = '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
90
|
'data-garden-id': COMPONENT_ID$x,
|
|
91
|
-
'data-garden-version': '9.0.0-next.
|
|
91
|
+
'data-garden-version': '9.0.0-next.6'
|
|
92
92
|
}).withConfig({
|
|
93
93
|
displayName: "StyledHeaderItemText",
|
|
94
94
|
componentId: "sc-goz7la-0"
|
|
@@ -100,7 +100,7 @@ StyledHeaderItemText.defaultProps = {
|
|
|
100
100
|
const COMPONENT_ID$w = 'chrome.nav';
|
|
101
101
|
const colorStyles$6 = props => {
|
|
102
102
|
const shade = props.isDark || props.isLight ? 600 : 700;
|
|
103
|
-
const backgroundColor =
|
|
103
|
+
const backgroundColor = getColorV8(props.hue, shade, props.theme);
|
|
104
104
|
const foregroundColor = props.isLight ? props.theme.palette.black : props.theme.palette.white;
|
|
105
105
|
return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
106
106
|
};
|
|
@@ -112,7 +112,7 @@ const getExpandedNavWidth = () => {
|
|
|
112
112
|
};
|
|
113
113
|
const StyledNav = styled.nav.attrs({
|
|
114
114
|
'data-garden-id': COMPONENT_ID$w,
|
|
115
|
-
'data-garden-version': '9.0.0-next.
|
|
115
|
+
'data-garden-version': '9.0.0-next.6'
|
|
116
116
|
}).withConfig({
|
|
117
117
|
displayName: "StyledNav",
|
|
118
118
|
componentId: "sc-6j462r-0"
|
|
@@ -144,12 +144,12 @@ const retrieveProductColor$1 = props => {
|
|
|
144
144
|
};
|
|
145
145
|
const StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
146
146
|
'data-garden-id': COMPONENT_ID$v,
|
|
147
|
-
'data-garden-version': '9.0.0-next.
|
|
147
|
+
'data-garden-version': '9.0.0-next.6',
|
|
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} ${
|
|
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$v, props));
|
|
153
153
|
StyledLogoHeaderItem.defaultProps = {
|
|
154
154
|
theme: DEFAULT_THEME
|
|
155
155
|
};
|
|
@@ -165,7 +165,7 @@ const sizeStyles$3 = props => {
|
|
|
165
165
|
};
|
|
166
166
|
const StyledBaseNavItem = styled.button.attrs({
|
|
167
167
|
'data-garden-id': COMPONENT_ID$u,
|
|
168
|
-
'data-garden-version': '9.0.0-next.
|
|
168
|
+
'data-garden-version': '9.0.0-next.6'
|
|
169
169
|
}).withConfig({
|
|
170
170
|
displayName: "StyledBaseNavItem",
|
|
171
171
|
componentId: "sc-zvo43f-0"
|
|
@@ -180,11 +180,11 @@ const getHeaderHeight = props => {
|
|
|
180
180
|
};
|
|
181
181
|
const StyledHeader = styled.header.attrs({
|
|
182
182
|
'data-garden-id': COMPONENT_ID$t,
|
|
183
|
-
'data-garden-version': '9.0.0-next.
|
|
183
|
+
'data-garden-version': '9.0.0-next.6'
|
|
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} ${
|
|
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
|
}
|
|
@@ -199,10 +199,10 @@ const animationStyles = () => {
|
|
|
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);
|
|
200
200
|
};
|
|
201
201
|
const colorStyles$5 = theme => {
|
|
202
|
-
const color =
|
|
203
|
-
const borderColor =
|
|
204
|
-
const boxShadow = theme.shadows.lg(`${theme.space.base * 5}px`, `${theme.space.base * 7}px`,
|
|
205
|
-
return css(["border-color:", ";box-shadow:", ";background-color:", ";color:", ";&:hover,&:focus{color:", ";}", ""], borderColor, boxShadow,
|
|
202
|
+
const color = getColorV8('primaryHue', 600, theme);
|
|
203
|
+
const borderColor = getColorV8('neutralHue', 300, theme);
|
|
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, getColorV8('background', 600 , theme), color, color, focusStyles({
|
|
206
206
|
theme,
|
|
207
207
|
inset: true,
|
|
208
208
|
boxShadow
|
|
@@ -218,7 +218,7 @@ const sizeStyles$2 = props => {
|
|
|
218
218
|
};
|
|
219
219
|
const StyledSkipNav = styled.a.attrs({
|
|
220
220
|
'data-garden-id': COMPONENT_ID$s,
|
|
221
|
-
'data-garden-version': '9.0.0-next.
|
|
221
|
+
'data-garden-version': '9.0.0-next.6'
|
|
222
222
|
}).withConfig({
|
|
223
223
|
displayName: "StyledSkipNav",
|
|
224
224
|
componentId: "sc-1tsro34-0"
|
|
@@ -251,11 +251,11 @@ const sizeStyles$1 = theme => {
|
|
|
251
251
|
};
|
|
252
252
|
const StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
|
|
253
253
|
'data-garden-id': COMPONENT_ID$r,
|
|
254
|
-
'data-garden-version': '9.0.0-next.
|
|
254
|
+
'data-garden-version': '9.0.0-next.6'
|
|
255
255
|
}).withConfig({
|
|
256
256
|
displayName: "StyledSkipNavIcon",
|
|
257
257
|
componentId: "sc-1ika5z4-0"
|
|
258
|
-
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props =>
|
|
258
|
+
})(["transform:", ";color:", ";", ";", ";"], props => props.theme.rtl && 'scaleX(-1)', props => getColorV8('neutralHue', 600, props.theme), props => sizeStyles$1(props.theme), props => retrieveComponentStyles(COMPONENT_ID$r, props));
|
|
259
259
|
StyledSkipNavIcon.defaultProps = {
|
|
260
260
|
theme: DEFAULT_THEME
|
|
261
261
|
};
|
|
@@ -263,11 +263,11 @@ StyledSkipNavIcon.defaultProps = {
|
|
|
263
263
|
const COMPONENT_ID$q = 'chrome.body';
|
|
264
264
|
const StyledBody = styled.div.attrs({
|
|
265
265
|
'data-garden-id': COMPONENT_ID$q,
|
|
266
|
-
'data-garden-version': '9.0.0-next.
|
|
266
|
+
'data-garden-version': '9.0.0-next.6'
|
|
267
267
|
}).withConfig({
|
|
268
268
|
displayName: "StyledBody",
|
|
269
269
|
componentId: "sc-c7h9kv-0"
|
|
270
|
-
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props =>
|
|
270
|
+
})(["flex:1;order:1;background-color:", ";min-width:0;", ";"], props => getColorV8('neutralHue', 100, props.theme), props => retrieveComponentStyles(COMPONENT_ID$q, props));
|
|
271
271
|
StyledBody.defaultProps = {
|
|
272
272
|
theme: DEFAULT_THEME
|
|
273
273
|
};
|
|
@@ -278,11 +278,11 @@ const getFooterHeight = props => {
|
|
|
278
278
|
};
|
|
279
279
|
const StyledFooter = styled.footer.attrs({
|
|
280
280
|
'data-garden-id': COMPONENT_ID$p,
|
|
281
|
-
'data-garden-version': '9.0.0-next.
|
|
281
|
+
'data-garden-version': '9.0.0-next.6'
|
|
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} ${
|
|
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$p, props));
|
|
286
286
|
StyledFooter.defaultProps = {
|
|
287
287
|
theme: DEFAULT_THEME
|
|
288
288
|
};
|
|
@@ -290,11 +290,11 @@ StyledFooter.defaultProps = {
|
|
|
290
290
|
const COMPONENT_ID$o = 'chrome.content';
|
|
291
291
|
const StyledContent = styled.div.attrs({
|
|
292
292
|
'data-garden-id': COMPONENT_ID$o,
|
|
293
|
-
'data-garden-version': '9.0.0-next.
|
|
293
|
+
'data-garden-version': '9.0.0-next.6'
|
|
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$o, props));
|
|
298
298
|
StyledContent.defaultProps = {
|
|
299
299
|
theme: DEFAULT_THEME
|
|
300
300
|
};
|
|
@@ -302,11 +302,11 @@ StyledContent.defaultProps = {
|
|
|
302
302
|
const COMPONENT_ID$n = 'chrome.main';
|
|
303
303
|
const StyledMain = styled.main.attrs({
|
|
304
304
|
'data-garden-id': COMPONENT_ID$n,
|
|
305
|
-
'data-garden-version': '9.0.0-next.
|
|
305
|
+
'data-garden-version': '9.0.0-next.6'
|
|
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$n, props));
|
|
310
310
|
StyledMain.defaultProps = {
|
|
311
311
|
theme: DEFAULT_THEME
|
|
312
312
|
};
|
|
@@ -314,11 +314,11 @@ StyledMain.defaultProps = {
|
|
|
314
314
|
const COMPONENT_ID$m = 'chrome.sidebar';
|
|
315
315
|
const StyledSidebar = styled.aside.attrs({
|
|
316
316
|
'data-garden-id': COMPONENT_ID$m,
|
|
317
|
-
'data-garden-version': '9.0.0-next.
|
|
317
|
+
'data-garden-version': '9.0.0-next.6'
|
|
318
318
|
}).withConfig({
|
|
319
319
|
displayName: "StyledSidebar",
|
|
320
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} ${
|
|
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
322
|
StyledSidebar.defaultProps = {
|
|
323
323
|
theme: DEFAULT_THEME
|
|
324
324
|
};
|
|
@@ -326,7 +326,7 @@ StyledSidebar.defaultProps = {
|
|
|
326
326
|
const COMPONENT_ID$l = 'chrome.footer_item';
|
|
327
327
|
const StyledFooterItem = styled.div.attrs({
|
|
328
328
|
'data-garden-id': COMPONENT_ID$l,
|
|
329
|
-
'data-garden-version': '9.0.0-next.
|
|
329
|
+
'data-garden-version': '9.0.0-next.6'
|
|
330
330
|
}).withConfig({
|
|
331
331
|
displayName: "StyledFooterItem",
|
|
332
332
|
componentId: "sc-1cktm85-0"
|
|
@@ -342,14 +342,14 @@ const imgStyles = props => {
|
|
|
342
342
|
};
|
|
343
343
|
const StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
|
|
344
344
|
'data-garden-id': COMPONENT_ID$k,
|
|
345
|
-
'data-garden-version': '9.0.0-next.
|
|
345
|
+
'data-garden-version': '9.0.0-next.6'
|
|
346
346
|
}).withConfig({
|
|
347
347
|
displayName: "StyledHeaderItem",
|
|
348
348
|
componentId: "sc-14sft6n-0"
|
|
349
349
|
})(["&:hover,&:focus{text-decoration:none;color:inherit;}", " &:focus-visible:active,&[data-garden-focus-visible]:active{box-shadow:none;}&:hover ", ",&:hover ", ",&:active ", ",&:active ", "{color:", ";}", " ", " ", ";"], props => focusStyles({
|
|
350
350
|
theme: props.theme,
|
|
351
351
|
inset: props.maxY
|
|
352
|
-
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props =>
|
|
352
|
+
}), StyledHeaderItemIcon, StyledHeaderItemText, StyledHeaderItemIcon, StyledHeaderItemText, props => getColorV8('chromeHue', 700, props.theme), imgStyles, props => props.isRound && `
|
|
353
353
|
${StyledHeaderItemIcon} {
|
|
354
354
|
border-radius: 100px;
|
|
355
355
|
}
|
|
@@ -361,7 +361,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
361
361
|
const COMPONENT_ID$j = 'chrome.header_item_wrapper';
|
|
362
362
|
const StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
|
|
363
363
|
'data-garden-id': COMPONENT_ID$j,
|
|
364
|
-
'data-garden-version': '9.0.0-next.
|
|
364
|
+
'data-garden-version': '9.0.0-next.6',
|
|
365
365
|
as: 'div'
|
|
366
366
|
}).withConfig({
|
|
367
367
|
displayName: "StyledHeaderItemWrapper",
|
|
@@ -399,7 +399,7 @@ const colorStyles$4 = props => {
|
|
|
399
399
|
};
|
|
400
400
|
const StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
|
|
401
401
|
'data-garden-id': COMPONENT_ID$i,
|
|
402
|
-
'data-garden-version': '9.0.0-next.
|
|
402
|
+
'data-garden-version': '9.0.0-next.6',
|
|
403
403
|
as: 'div'
|
|
404
404
|
}).withConfig({
|
|
405
405
|
displayName: "StyledLogoNavItem",
|
|
@@ -412,7 +412,7 @@ StyledLogoNavItem.defaultProps = {
|
|
|
412
412
|
const COMPONENT_ID$h = 'chrome.brandmark_nav_item';
|
|
413
413
|
const StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
|
|
414
414
|
'data-garden-id': COMPONENT_ID$h,
|
|
415
|
-
'data-garden-version': '9.0.0-next.
|
|
415
|
+
'data-garden-version': '9.0.0-next.6',
|
|
416
416
|
as: 'div'
|
|
417
417
|
}).withConfig({
|
|
418
418
|
displayName: "StyledBrandmarkNavItem",
|
|
@@ -425,7 +425,7 @@ StyledBrandmarkNavItem.defaultProps = {
|
|
|
425
425
|
const COMPONENT_ID$g = 'chrome.nav_item_icon';
|
|
426
426
|
const StyledNavItemIcon = styled.div.attrs({
|
|
427
427
|
'data-garden-id': COMPONENT_ID$g,
|
|
428
|
-
'data-garden-version': '9.0.0-next.
|
|
428
|
+
'data-garden-version': '9.0.0-next.6'
|
|
429
429
|
}).withConfig({
|
|
430
430
|
displayName: "StyledNavItemIcon",
|
|
431
431
|
componentId: "sc-7w9rpt-0"
|
|
@@ -453,7 +453,7 @@ const colorStyles$3 = props => {
|
|
|
453
453
|
} else if (isDark) {
|
|
454
454
|
currentColor = rgba(LIGHT, 0.4);
|
|
455
455
|
} else {
|
|
456
|
-
currentColor =
|
|
456
|
+
currentColor = getColorV8(hue, 500, theme);
|
|
457
457
|
}
|
|
458
458
|
} else {
|
|
459
459
|
hoverColor = rgba(isLight ? LIGHT : DARK, 0.1);
|
|
@@ -471,7 +471,7 @@ const colorStyles$3 = props => {
|
|
|
471
471
|
};
|
|
472
472
|
const StyledNavItem = styled(StyledBaseNavItem).attrs({
|
|
473
473
|
'data-garden-id': COMPONENT_ID$f,
|
|
474
|
-
'data-garden-version': '9.0.0-next.
|
|
474
|
+
'data-garden-version': '9.0.0-next.6',
|
|
475
475
|
as: 'button'
|
|
476
476
|
}).withConfig({
|
|
477
477
|
displayName: "StyledNavItem",
|
|
@@ -488,7 +488,7 @@ StyledNavItem.defaultProps = {
|
|
|
488
488
|
const COMPONENT_ID$e = 'chrome.nav_item_text';
|
|
489
489
|
const StyledNavItemText = styled.span.attrs({
|
|
490
490
|
'data-garden-id': COMPONENT_ID$e,
|
|
491
|
-
'data-garden-version': '9.0.0-next.
|
|
491
|
+
'data-garden-version': '9.0.0-next.6'
|
|
492
492
|
}).withConfig({
|
|
493
493
|
displayName: "StyledNavItemText",
|
|
494
494
|
componentId: "sc-13m84xl-0"
|
|
@@ -541,7 +541,7 @@ const getSubNavItemHeight = props => {
|
|
|
541
541
|
};
|
|
542
542
|
const StyledSubNavItem = styled.button.attrs({
|
|
543
543
|
'data-garden-id': COMPONENT_ID$d,
|
|
544
|
-
'data-garden-version': '9.0.0-next.
|
|
544
|
+
'data-garden-version': '9.0.0-next.6'
|
|
545
545
|
}).withConfig({
|
|
546
546
|
displayName: "StyledSubNavItem",
|
|
547
547
|
componentId: "sc-1yg9dpx-0"
|
|
@@ -558,13 +558,13 @@ const colorStyles$1 = props => {
|
|
|
558
558
|
} else {
|
|
559
559
|
shade = props.isDark ? 700 : 800;
|
|
560
560
|
}
|
|
561
|
-
const backgroundColor =
|
|
561
|
+
const backgroundColor = getColorV8(props.hue, shade, props.theme);
|
|
562
562
|
const foregroundColor = props.isLight ? props.theme.palette.grey[800] : props.theme.palette.white;
|
|
563
563
|
return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
564
564
|
};
|
|
565
565
|
const StyledSubNav = styled.nav.attrs({
|
|
566
566
|
'data-garden-id': COMPONENT_ID$c,
|
|
567
|
-
'data-garden-version': '9.0.0-next.
|
|
567
|
+
'data-garden-version': '9.0.0-next.6'
|
|
568
568
|
}).withConfig({
|
|
569
569
|
displayName: "StyledSubNav",
|
|
570
570
|
componentId: "sc-19hjou6-0"
|
|
@@ -582,7 +582,7 @@ const sizeStyles = props => {
|
|
|
582
582
|
};
|
|
583
583
|
const StyledSubNavItemText = styled.span.attrs({
|
|
584
584
|
'data-garden-id': COMPONENT_ID$b,
|
|
585
|
-
'data-garden-version': '9.0.0-next.
|
|
585
|
+
'data-garden-version': '9.0.0-next.6'
|
|
586
586
|
}).withConfig({
|
|
587
587
|
displayName: "StyledSubNavItemText",
|
|
588
588
|
componentId: "sc-1hy0pn7-0"
|
|
@@ -594,7 +594,7 @@ StyledSubNavItemText.defaultProps = {
|
|
|
594
594
|
const COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
|
|
595
595
|
const StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
|
|
596
596
|
'data-garden-id': COMPONENT_ID$a,
|
|
597
|
-
'data-garden-version': '9.0.0-next.
|
|
597
|
+
'data-garden-version': '9.0.0-next.6',
|
|
598
598
|
'data-garden-header': 'true'
|
|
599
599
|
}).withConfig({
|
|
600
600
|
displayName: "StyledSubNavItemHeader",
|
|
@@ -641,7 +641,7 @@ StyledSubNavItemIcon.defaultProps = {
|
|
|
641
641
|
};
|
|
642
642
|
const StyledSubNavItemIconWrapper = styled.div.attrs({
|
|
643
643
|
'data-garden-id': COMPONENT_ID$9,
|
|
644
|
-
'data-garden-version': '9.0.0-next.
|
|
644
|
+
'data-garden-version': '9.0.0-next.6'
|
|
645
645
|
}).withConfig({
|
|
646
646
|
displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
|
|
647
647
|
componentId: "sc-1d02hho-1"
|
|
@@ -654,7 +654,7 @@ const PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
|
|
|
654
654
|
const hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
|
|
655
655
|
const StyledSubNavPanel = styled.div.attrs({
|
|
656
656
|
'data-garden-id': PANEL_COMPONENT_ID,
|
|
657
|
-
'data-garden-version': '9.0.0-next.
|
|
657
|
+
'data-garden-version': '9.0.0-next.6'
|
|
658
658
|
}).withConfig({
|
|
659
659
|
displayName: "StyledSubNavPanel",
|
|
660
660
|
componentId: "sc-1jv3rpv-0"
|
|
@@ -670,7 +670,7 @@ const borderStyle = _ref => {
|
|
|
670
670
|
placement,
|
|
671
671
|
isOpen
|
|
672
672
|
} = _ref;
|
|
673
|
-
const borderColor = isOpen ?
|
|
673
|
+
const borderColor = isOpen ? getColorV8('neutralHue', 300, theme) : 'transparent';
|
|
674
674
|
const borderSides = ['-left', '-right'];
|
|
675
675
|
let borderSide = '';
|
|
676
676
|
if (theme.rtl) {
|
|
@@ -685,11 +685,11 @@ const borderStyle = _ref => {
|
|
|
685
685
|
};
|
|
686
686
|
const StyledSheet = styled.aside.attrs({
|
|
687
687
|
'data-garden-id': COMPONENT_ID$8,
|
|
688
|
-
'data-garden-version': '9.0.0-next.
|
|
688
|
+
'data-garden-version': '9.0.0-next.6'
|
|
689
689
|
}).withConfig({
|
|
690
690
|
displayName: "StyledSheet",
|
|
691
691
|
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
|
|
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 => 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
693
|
StyledSheet.defaultProps = {
|
|
694
694
|
theme: DEFAULT_THEME
|
|
695
695
|
};
|
|
@@ -697,7 +697,7 @@ StyledSheet.defaultProps = {
|
|
|
697
697
|
const COMPONENT_ID$7 = 'chrome.sheet_wrapper';
|
|
698
698
|
const StyledSheetWrapper = styled.div.attrs({
|
|
699
699
|
'data-garden-id': COMPONENT_ID$7,
|
|
700
|
-
'data-garden-version': '9.0.0-next.
|
|
700
|
+
'data-garden-version': '9.0.0-next.6'
|
|
701
701
|
}).withConfig({
|
|
702
702
|
displayName: "StyledSheetWrapper",
|
|
703
703
|
componentId: "sc-f6x9zb-0"
|
|
@@ -724,11 +724,11 @@ StyledSheetWrapper.defaultProps = {
|
|
|
724
724
|
const COMPONENT_ID$6 = 'chrome.sheet_title';
|
|
725
725
|
const StyledSheetTitle = styled.div.attrs({
|
|
726
726
|
'data-garden-id': COMPONENT_ID$6,
|
|
727
|
-
'data-garden-version': '9.0.0-next.
|
|
727
|
+
'data-garden-version': '9.0.0-next.6'
|
|
728
728
|
}).withConfig({
|
|
729
729
|
displayName: "StyledSheetTitle",
|
|
730
730
|
componentId: "sc-1gogk75-0"
|
|
731
|
-
})(["line-height:", ";color:", ";font-weight:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme
|
|
731
|
+
})(["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
732
|
StyledSheetTitle.defaultProps = {
|
|
733
733
|
theme: DEFAULT_THEME
|
|
734
734
|
};
|
|
@@ -736,11 +736,11 @@ StyledSheetTitle.defaultProps = {
|
|
|
736
736
|
const COMPONENT_ID$5 = 'chrome.sheet_description';
|
|
737
737
|
const StyledSheetDescription = styled.div.attrs({
|
|
738
738
|
'data-garden-id': COMPONENT_ID$5,
|
|
739
|
-
'data-garden-version': '9.0.0-next.
|
|
739
|
+
'data-garden-version': '9.0.0-next.6'
|
|
740
740
|
}).withConfig({
|
|
741
741
|
displayName: "StyledSheetDescription",
|
|
742
742
|
componentId: "sc-1puglb6-0"
|
|
743
|
-
})(["line-height:", ";color:", ";", ";"], props => getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props =>
|
|
743
|
+
})(["line-height:", ";color:", ";", ";"], props => getLineHeight(props.theme.space.base * 4, props.theme.fontSizes.md), props => getColorV8('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
744
744
|
StyledSheetDescription.defaultProps = {
|
|
745
745
|
theme: DEFAULT_THEME
|
|
746
746
|
};
|
|
@@ -748,7 +748,7 @@ StyledSheetDescription.defaultProps = {
|
|
|
748
748
|
const COMPONENT_ID$4 = 'chrome.sheet_body';
|
|
749
749
|
const StyledSheetBody = styled.div.attrs({
|
|
750
750
|
'data-garden-id': COMPONENT_ID$4,
|
|
751
|
-
'data-garden-version': '9.0.0-next.
|
|
751
|
+
'data-garden-version': '9.0.0-next.6'
|
|
752
752
|
}).withConfig({
|
|
753
753
|
displayName: "StyledSheetBody",
|
|
754
754
|
componentId: "sc-bt4eoj-0"
|
|
@@ -766,13 +766,13 @@ const BASE_MULTIPLIERS = {
|
|
|
766
766
|
const colorStyles = props => {
|
|
767
767
|
const backgroundColor = 'primaryHue';
|
|
768
768
|
const foregroundColor = 'neutralHue';
|
|
769
|
-
return css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"],
|
|
769
|
+
return css(["background-color:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active{transition:background-color 0.1s ease-in-out,color 0.1s ease-in-out;background-color:", ";color:", ";}"], getColorV8(foregroundColor, 600, props.theme), getColorV8(backgroundColor, 600, props.theme, 0.08), getColorV8(foregroundColor, 700, props.theme), focusStyles({
|
|
770
770
|
theme: props.theme
|
|
771
|
-
}),
|
|
771
|
+
}), getColorV8(backgroundColor, 600, props.theme, 0.2), getColorV8(foregroundColor, 800, props.theme));
|
|
772
772
|
};
|
|
773
773
|
const StyledSheetClose = styled.button.attrs({
|
|
774
774
|
'data-garden-id': COMPONENT_ID$3,
|
|
775
|
-
'data-garden-version': '9.0.0-next.
|
|
775
|
+
'data-garden-version': '9.0.0-next.6'
|
|
776
776
|
}).withConfig({
|
|
777
777
|
displayName: "StyledSheetClose",
|
|
778
778
|
componentId: "sc-1ab02oq-0"
|
|
@@ -784,11 +784,11 @@ StyledSheetClose.defaultProps = {
|
|
|
784
784
|
const COMPONENT_ID$2 = 'chrome.sheet_footer';
|
|
785
785
|
const StyledSheetFooter = styled.footer.attrs({
|
|
786
786
|
'data-garden-id': COMPONENT_ID$2,
|
|
787
|
-
'data-garden-version': '9.0.0-next.
|
|
787
|
+
'data-garden-version': '9.0.0-next.6'
|
|
788
788
|
}).withConfig({
|
|
789
789
|
displayName: "StyledSheetFooter",
|
|
790
790
|
componentId: "sc-2cktos-0"
|
|
791
|
-
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${
|
|
791
|
+
})(["display:flex;flex-flow:row wrap;align-items:center;justify-content:", ";border-top:", ";padding:", "px;", ";"], props => props.isCompact ? 'center' : 'flex-end', props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * (props.isCompact ? 2.5 : 5), props => retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
792
792
|
StyledSheetFooter.defaultProps = {
|
|
793
793
|
theme: DEFAULT_THEME
|
|
794
794
|
};
|
|
@@ -796,7 +796,7 @@ StyledSheetFooter.defaultProps = {
|
|
|
796
796
|
const COMPONENT_ID$1 = 'chrome.sheet_footer_item';
|
|
797
797
|
const StyledSheetFooterItem = styled.div.attrs({
|
|
798
798
|
'data-garden-id': COMPONENT_ID$1,
|
|
799
|
-
'data-garden-version': '9.0.0-next.
|
|
799
|
+
'data-garden-version': '9.0.0-next.6'
|
|
800
800
|
}).withConfig({
|
|
801
801
|
displayName: "StyledSheetFooterItem",
|
|
802
802
|
componentId: "sc-r9ixh-0"
|
|
@@ -808,11 +808,11 @@ StyledSheetFooterItem.defaultProps = {
|
|
|
808
808
|
const COMPONENT_ID = 'chrome.sheet_header';
|
|
809
809
|
const StyledSheetHeader = styled.header.attrs({
|
|
810
810
|
'data-garden-id': COMPONENT_ID,
|
|
811
|
-
'data-garden-version': '9.0.0-next.
|
|
811
|
+
'data-garden-version': '9.0.0-next.6'
|
|
812
812
|
}).withConfig({
|
|
813
813
|
displayName: "StyledSheetHeader",
|
|
814
814
|
componentId: "sc-o2ry8i-0"
|
|
815
|
-
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${
|
|
815
|
+
})(["border-bottom:", ";padding:", "px;", " ", ";"], props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 300, props.theme)}}`, props => props.theme.space.base * 5, props => props.isCloseButtonPresent && `padding-${props.theme.rtl ? 'left' : 'right'}: ${props.theme.space.base * (BASE_MULTIPLIERS.size + BASE_MULTIPLIERS.side + 2)}px;`, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
816
816
|
StyledSheetHeader.defaultProps = {
|
|
817
817
|
theme: DEFAULT_THEME
|
|
818
818
|
};
|
|
@@ -1085,7 +1085,7 @@ const Chrome = React__default.forwardRef((_ref, ref) => {
|
|
|
1085
1085
|
const theme = useContext(ThemeContext);
|
|
1086
1086
|
const isLightMemoized = useMemo(() => {
|
|
1087
1087
|
if (hue) {
|
|
1088
|
-
const backgroundColor =
|
|
1088
|
+
const backgroundColor = getColorV8(hue, 600, theme);
|
|
1089
1089
|
const LIGHT_COLOR = 'white';
|
|
1090
1090
|
return readableColor(backgroundColor, LIGHT_COLOR, undefined, false ) === LIGHT_COLOR;
|
|
1091
1091
|
}
|
|
@@ -1145,21 +1145,17 @@ SkipNav.defaultProps = {
|
|
|
1145
1145
|
zIndex: 1
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
-
const BodyContext = React__default.createContext(
|
|
1149
|
-
hasFooter: true
|
|
1150
|
-
});
|
|
1148
|
+
const BodyContext = React__default.createContext(undefined);
|
|
1151
1149
|
const useBodyContext = () => {
|
|
1152
1150
|
return useContext(BodyContext);
|
|
1153
1151
|
};
|
|
1154
1152
|
|
|
1155
|
-
const Body$1 = React__default.forwardRef((
|
|
1156
|
-
|
|
1157
|
-
hasFooter,
|
|
1158
|
-
...props
|
|
1159
|
-
} = _ref;
|
|
1153
|
+
const Body$1 = React__default.forwardRef((props, ref) => {
|
|
1154
|
+
const [hasFooter, setHasFooter] = useState(false);
|
|
1160
1155
|
const bodyContextValue = useMemo(() => ({
|
|
1161
|
-
hasFooter
|
|
1162
|
-
|
|
1156
|
+
hasFooter,
|
|
1157
|
+
setHasFooter
|
|
1158
|
+
}), [hasFooter, setHasFooter]);
|
|
1163
1159
|
return React__default.createElement(BodyContext.Provider, {
|
|
1164
1160
|
value: bodyContextValue
|
|
1165
1161
|
}, React__default.createElement(StyledBody, _extends$3({
|
|
@@ -1167,14 +1163,11 @@ const Body$1 = React__default.forwardRef((_ref, ref) => {
|
|
|
1167
1163
|
}, props)));
|
|
1168
1164
|
});
|
|
1169
1165
|
Body$1.displayName = 'Body';
|
|
1170
|
-
Body$1.propTypes = {
|
|
1171
|
-
hasFooter: PropTypes.bool
|
|
1172
|
-
};
|
|
1173
1166
|
|
|
1174
1167
|
const Content = React__default.forwardRef((props, ref) => {
|
|
1175
1168
|
const {
|
|
1176
1169
|
hasFooter
|
|
1177
|
-
} = useBodyContext();
|
|
1170
|
+
} = useBodyContext() || {};
|
|
1178
1171
|
return React__default.createElement(StyledContent, _extends$3({
|
|
1179
1172
|
ref: ref,
|
|
1180
1173
|
hasFooter: hasFooter
|
|
@@ -1205,9 +1198,25 @@ Header$1.ItemIcon = HeaderItemIcon;
|
|
|
1205
1198
|
Header$1.ItemText = HeaderItemText;
|
|
1206
1199
|
Header$1.ItemWrapper = HeaderItemWrapper;
|
|
1207
1200
|
|
|
1208
|
-
const FooterComponent = React__default.forwardRef((props, ref) =>
|
|
1209
|
-
|
|
1210
|
-
|
|
1201
|
+
const FooterComponent = React__default.forwardRef((props, ref) => {
|
|
1202
|
+
const {
|
|
1203
|
+
hasFooter,
|
|
1204
|
+
setHasFooter
|
|
1205
|
+
} = useBodyContext() || {};
|
|
1206
|
+
useEffect(() => {
|
|
1207
|
+
if (!hasFooter && setHasFooter) {
|
|
1208
|
+
setHasFooter(true);
|
|
1209
|
+
}
|
|
1210
|
+
return () => {
|
|
1211
|
+
if (hasFooter && setHasFooter) {
|
|
1212
|
+
setHasFooter(false);
|
|
1213
|
+
}
|
|
1214
|
+
};
|
|
1215
|
+
}, [hasFooter, setHasFooter]);
|
|
1216
|
+
return React__default.createElement(StyledFooter, _extends$3({
|
|
1217
|
+
ref: ref
|
|
1218
|
+
}, props));
|
|
1219
|
+
});
|
|
1211
1220
|
FooterComponent.displayName = 'Footer';
|
|
1212
1221
|
const Footer$1 = FooterComponent;
|
|
1213
1222
|
Footer$1.Item = FooterItem$1;
|
|
@@ -1403,7 +1412,7 @@ const SheetComponent = React__default.forwardRef((_ref, ref) => {
|
|
|
1403
1412
|
const sheetRef = useRef(null);
|
|
1404
1413
|
const seed = useUIDSeed();
|
|
1405
1414
|
const [isCloseButtonPresent, setIsCloseButtonPresent] = useState(false);
|
|
1406
|
-
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.
|
|
1415
|
+
const idPrefix = useMemo(() => id || seed(`sheet_${'9.0.0-next.6'}`), [id, seed]);
|
|
1407
1416
|
const titleId = `${idPrefix}--title`;
|
|
1408
1417
|
const descriptionId = `${idPrefix}--description`;
|
|
1409
1418
|
const sheetContext = useMemo(() => ({
|
|
@@ -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>>;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated use `Footer.Item` instead
|
|
10
|
+
*
|
|
9
11
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
12
|
*/
|
|
11
13
|
export declare const FooterItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IHeaderItemProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Header.Item` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const HeaderItem: React.ForwardRefExoticComponent<IHeaderItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -4,8 +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
|
+
*
|
|
11
|
+
* @extends SVGAttributes<SVGElement>
|
|
10
12
|
*/
|
|
11
|
-
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<
|
|
13
|
+
export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IHeaderItemTextProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Header.ItemText` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLSpanElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const HeaderItemText: React.ForwardRefExoticComponent<IHeaderItemTextProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IHeaderItemWrapperProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Header.ItemWrapper` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const HeaderItemWrapper: React.ForwardRefExoticComponent<IHeaderItemWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { INavItemProps } from '../../types';
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated use `Nav.Item` instead
|
|
11
|
+
*
|
|
10
12
|
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
13
|
*/
|
|
12
14
|
export declare const NavItem: React.ForwardRefExoticComponent<INavItemProps & React.RefAttributes<HTMLButtonElement>>;
|