@zendeskgarden/react-chrome 8.49.1 → 8.49.4

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.esm.js CHANGED
@@ -180,7 +180,7 @@ var useChromeContext = function useChromeContext() {
180
180
  var COMPONENT_ID$A = 'chrome.chrome';
181
181
  var StyledChrome = styled.div.attrs({
182
182
  'data-garden-id': COMPONENT_ID$A,
183
- 'data-garden-version': '8.49.1'
183
+ 'data-garden-version': '8.49.4'
184
184
  }).withConfig({
185
185
  displayName: "StyledChrome",
186
186
  componentId: "sc-1uqm6u6-0"
@@ -198,7 +198,7 @@ StyledChrome.defaultProps = {
198
198
  var COMPONENT_ID$z = 'chrome.header_item_icon';
199
199
  var StyledHeaderItemIcon = styled.div.attrs({
200
200
  'data-garden-id': COMPONENT_ID$z,
201
- 'data-garden-version': '8.49.1'
201
+ 'data-garden-version': '8.49.4'
202
202
  }).withConfig({
203
203
  displayName: "StyledHeaderItemIcon",
204
204
  componentId: "sc-1jhhp6z-0"
@@ -225,7 +225,7 @@ var sizeStyles$4 = function sizeStyles(props) {
225
225
  };
226
226
  var StyledBaseHeaderItem = styled.button.attrs({
227
227
  'data-garden-id': COMPONENT_ID$y,
228
- 'data-garden-version': '8.49.1'
228
+ 'data-garden-version': '8.49.4'
229
229
  }).withConfig({
230
230
  displayName: "StyledBaseHeaderItem",
231
231
  componentId: "sc-1qua7h6-0"
@@ -254,7 +254,7 @@ var COMPONENT_ID$x = 'chrome.header_item_text';
254
254
  var clippedStyling = css(["position:absolute;margin:0;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
255
255
  var StyledHeaderItemText = styled.span.attrs({
256
256
  'data-garden-id': COMPONENT_ID$x,
257
- 'data-garden-version': '8.49.1'
257
+ 'data-garden-version': '8.49.4'
258
258
  }).withConfig({
259
259
  displayName: "StyledHeaderItemText",
260
260
  componentId: "sc-goz7la-0"
@@ -282,7 +282,7 @@ var getExpandedNavWidth = function getExpandedNavWidth() {
282
282
  };
283
283
  var StyledNav = styled.nav.attrs({
284
284
  'data-garden-id': COMPONENT_ID$w,
285
- 'data-garden-version': '8.49.1'
285
+ 'data-garden-version': '8.49.4'
286
286
  }).withConfig({
287
287
  displayName: "StyledNav",
288
288
  componentId: "sc-6j462r-0"
@@ -322,7 +322,7 @@ var retrieveProductColor$1 = function retrieveProductColor(props) {
322
322
  };
323
323
  var StyledLogoHeaderItem = styled(StyledBaseHeaderItem).attrs({
324
324
  'data-garden-id': COMPONENT_ID$v,
325
- 'data-garden-version': '8.49.1',
325
+ 'data-garden-version': '8.49.4',
326
326
  as: 'div'
327
327
  }).withConfig({
328
328
  displayName: "StyledLogoHeaderItem",
@@ -363,7 +363,7 @@ var sizeStyles$3 = function sizeStyles(props) {
363
363
  };
364
364
  var StyledBaseNavItem = styled.button.attrs({
365
365
  'data-garden-id': COMPONENT_ID$u,
366
- 'data-garden-version': '8.49.1'
366
+ 'data-garden-version': '8.49.4'
367
367
  }).withConfig({
368
368
  displayName: "StyledBaseNavItem",
369
369
  componentId: "sc-zvo43f-0"
@@ -380,7 +380,7 @@ var getHeaderHeight = function getHeaderHeight(props) {
380
380
  };
381
381
  var StyledHeader = styled.header.attrs({
382
382
  'data-garden-id': COMPONENT_ID$t,
383
- 'data-garden-version': '8.49.1'
383
+ 'data-garden-version': '8.49.4'
384
384
  }).withConfig({
385
385
  displayName: "StyledHeader",
386
386
  componentId: "sc-1cexpz-0"
@@ -428,7 +428,7 @@ var sizeStyles$2 = function sizeStyles(props) {
428
428
  };
429
429
  var StyledSkipNav = styled.a.attrs({
430
430
  'data-garden-id': COMPONENT_ID$s,
431
- 'data-garden-version': '8.49.1'
431
+ 'data-garden-version': '8.49.4'
432
432
  }).withConfig({
433
433
  displayName: "StyledSkipNav",
434
434
  componentId: "sc-1tsro34-0"
@@ -477,7 +477,7 @@ var sizeStyles$1 = function sizeStyles(theme) {
477
477
  };
478
478
  var StyledSkipNavIcon = styled(SvgLinkStroke).attrs({
479
479
  'data-garden-id': COMPONENT_ID$r,
480
- 'data-garden-version': '8.49.1'
480
+ 'data-garden-version': '8.49.4'
481
481
  }).withConfig({
482
482
  displayName: "StyledSkipNavIcon",
483
483
  componentId: "sc-1ika5z4-0"
@@ -497,7 +497,7 @@ StyledSkipNavIcon.defaultProps = {
497
497
  var COMPONENT_ID$q = 'chrome.body';
498
498
  var StyledBody = styled.div.attrs({
499
499
  'data-garden-id': COMPONENT_ID$q,
500
- 'data-garden-version': '8.49.1'
500
+ 'data-garden-version': '8.49.4'
501
501
  }).withConfig({
502
502
  displayName: "StyledBody",
503
503
  componentId: "sc-c7h9kv-0"
@@ -516,7 +516,7 @@ var getFooterHeight = function getFooterHeight(props) {
516
516
  };
517
517
  var StyledFooter = styled.footer.attrs({
518
518
  'data-garden-id': COMPONENT_ID$p,
519
- 'data-garden-version': '8.49.1'
519
+ 'data-garden-version': '8.49.4'
520
520
  }).withConfig({
521
521
  displayName: "StyledFooter",
522
522
  componentId: "sc-v7lib2-0"
@@ -536,7 +536,7 @@ StyledFooter.defaultProps = {
536
536
  var COMPONENT_ID$o = 'chrome.content';
537
537
  var StyledContent = styled.div.attrs({
538
538
  'data-garden-id': COMPONENT_ID$o,
539
- 'data-garden-version': '8.49.1'
539
+ 'data-garden-version': '8.49.4'
540
540
  }).withConfig({
541
541
  displayName: "StyledContent",
542
542
  componentId: "sc-qcuzxn-0"
@@ -558,7 +558,7 @@ StyledContent.defaultProps = {
558
558
  var COMPONENT_ID$n = 'chrome.main';
559
559
  var StyledMain = styled.main.attrs({
560
560
  'data-garden-id': COMPONENT_ID$n,
561
- 'data-garden-version': '8.49.1'
561
+ 'data-garden-version': '8.49.4'
562
562
  }).withConfig({
563
563
  displayName: "StyledMain",
564
564
  componentId: "sc-t61cre-0"
@@ -574,7 +574,7 @@ StyledMain.defaultProps = {
574
574
  var COMPONENT_ID$m = 'chrome.sidebar';
575
575
  var StyledSidebar = styled.aside.attrs({
576
576
  'data-garden-id': COMPONENT_ID$m,
577
- 'data-garden-version': '8.49.1'
577
+ 'data-garden-version': '8.49.4'
578
578
  }).withConfig({
579
579
  displayName: "StyledSidebar",
580
580
  componentId: "sc-1q77fuw-0"
@@ -592,7 +592,7 @@ StyledSidebar.defaultProps = {
592
592
  var COMPONENT_ID$l = 'chrome.footer_item';
593
593
  var StyledFooterItem = styled.div.attrs({
594
594
  'data-garden-id': COMPONENT_ID$l,
595
- 'data-garden-version': '8.49.1'
595
+ 'data-garden-version': '8.49.4'
596
596
  }).withConfig({
597
597
  displayName: "StyledFooterItem",
598
598
  componentId: "sc-1cktm85-0"
@@ -612,7 +612,7 @@ var imgStyles = function imgStyles(props) {
612
612
  };
613
613
  var StyledHeaderItem = styled(StyledBaseHeaderItem).attrs({
614
614
  'data-garden-id': COMPONENT_ID$k,
615
- 'data-garden-version': '8.49.1'
615
+ 'data-garden-version': '8.49.4'
616
616
  }).withConfig({
617
617
  displayName: "StyledHeaderItem",
618
618
  componentId: "sc-14sft6n-0"
@@ -638,7 +638,7 @@ StyledHeaderItem.defaultProps = {
638
638
  var COMPONENT_ID$j = 'chrome.header_item_wrapper';
639
639
  var StyledHeaderItemWrapper = styled(StyledBaseHeaderItem).attrs({
640
640
  'data-garden-id': COMPONENT_ID$j,
641
- 'data-garden-version': '8.49.1',
641
+ 'data-garden-version': '8.49.4',
642
642
  as: 'div'
643
643
  }).withConfig({
644
644
  displayName: "StyledHeaderItemWrapper",
@@ -678,7 +678,7 @@ var colorStyles$4 = function colorStyles(props) {
678
678
  };
679
679
  var StyledLogoNavItem = styled(StyledBaseNavItem).attrs({
680
680
  'data-garden-id': COMPONENT_ID$i,
681
- 'data-garden-version': '8.49.1',
681
+ 'data-garden-version': '8.49.4',
682
682
  as: 'div'
683
683
  }).withConfig({
684
684
  displayName: "StyledLogoNavItem",
@@ -693,7 +693,7 @@ StyledLogoNavItem.defaultProps = {
693
693
  var COMPONENT_ID$h = 'chrome.brandmark_nav_item';
694
694
  var StyledBrandmarkNavItem = styled(StyledBaseNavItem).attrs({
695
695
  'data-garden-id': COMPONENT_ID$h,
696
- 'data-garden-version': '8.49.1',
696
+ 'data-garden-version': '8.49.4',
697
697
  as: 'div'
698
698
  }).withConfig({
699
699
  displayName: "StyledBrandmarkNavItem",
@@ -706,7 +706,7 @@ StyledBrandmarkNavItem.defaultProps = {
706
706
  var COMPONENT_ID$g = 'chrome.nav_item_icon';
707
707
  var StyledNavItemIcon = styled.div.attrs({
708
708
  'data-garden-id': COMPONENT_ID$g,
709
- 'data-garden-version': '8.49.1'
709
+ 'data-garden-version': '8.49.4'
710
710
  }).withConfig({
711
711
  displayName: "StyledNavItemIcon",
712
712
  componentId: "sc-7w9rpt-0"
@@ -746,7 +746,7 @@ var colorStyles$3 = function colorStyles(props) {
746
746
  };
747
747
  var StyledNavItem = styled(StyledBaseNavItem).attrs({
748
748
  'data-garden-id': COMPONENT_ID$f,
749
- 'data-garden-version': '8.49.1',
749
+ 'data-garden-version': '8.49.4',
750
750
  as: 'button'
751
751
  }).withConfig({
752
752
  displayName: "StyledNavItem",
@@ -771,7 +771,7 @@ StyledNavItem.defaultProps = {
771
771
  var COMPONENT_ID$e = 'chrome.nav_item_text';
772
772
  var StyledNavItemText = styled.span.attrs({
773
773
  'data-garden-id': COMPONENT_ID$e,
774
- 'data-garden-version': '8.49.1'
774
+ 'data-garden-version': '8.49.4'
775
775
  }).withConfig({
776
776
  displayName: "StyledNavItemText",
777
777
  componentId: "sc-13m84xl-0"
@@ -814,7 +814,7 @@ var getSubNavItemHeight = function getSubNavItemHeight(props) {
814
814
  };
815
815
  var StyledSubNavItem = styled.button.attrs({
816
816
  'data-garden-id': COMPONENT_ID$d,
817
- 'data-garden-version': '8.49.1'
817
+ 'data-garden-version': '8.49.4'
818
818
  }).withConfig({
819
819
  displayName: "StyledSubNavItem",
820
820
  componentId: "sc-1yg9dpx-0"
@@ -849,7 +849,7 @@ var colorStyles$1 = function colorStyles(props) {
849
849
  };
850
850
  var StyledSubNav = styled.nav.attrs({
851
851
  'data-garden-id': COMPONENT_ID$c,
852
- 'data-garden-version': '8.49.1'
852
+ 'data-garden-version': '8.49.4'
853
853
  }).withConfig({
854
854
  displayName: "StyledSubNav",
855
855
  componentId: "sc-19hjou6-0"
@@ -875,7 +875,7 @@ var sizeStyles = function sizeStyles(props) {
875
875
  };
876
876
  var StyledSubNavItemText = styled.span.attrs({
877
877
  'data-garden-id': COMPONENT_ID$b,
878
- 'data-garden-version': '8.49.1'
878
+ 'data-garden-version': '8.49.4'
879
879
  }).withConfig({
880
880
  displayName: "StyledSubNavItemText",
881
881
  componentId: "sc-1hy0pn7-0"
@@ -893,7 +893,7 @@ StyledSubNavItemText.defaultProps = {
893
893
  var COMPONENT_ID$a = 'chrome.collapsible_sub_nav_item';
894
894
  var StyledSubNavItemHeader = styled(StyledSubNavItem).attrs({
895
895
  'data-garden-id': COMPONENT_ID$a,
896
- 'data-garden-version': '8.49.1',
896
+ 'data-garden-version': '8.49.4',
897
897
  'data-garden-header': 'true'
898
898
  }).withConfig({
899
899
  displayName: "StyledSubNavItemHeader",
@@ -951,7 +951,7 @@ StyledSubNavItemIcon.defaultProps = {
951
951
  };
952
952
  var StyledSubNavItemIconWrapper = styled.div.attrs({
953
953
  'data-garden-id': COMPONENT_ID$9,
954
- 'data-garden-version': '8.49.1'
954
+ 'data-garden-version': '8.49.4'
955
955
  }).withConfig({
956
956
  displayName: "StyledSubNavItemIcon__StyledSubNavItemIconWrapper",
957
957
  componentId: "sc-1d02hho-1"
@@ -977,7 +977,7 @@ var PANEL_COMPONENT_ID = 'chrome.collapsible_sub_nav_item_panel';
977
977
  var hiddenStyling = css(["visibility:hidden;max-height:0 !important;overflow:hidden;"]);
978
978
  var StyledSubNavPanel = styled.div.attrs({
979
979
  'data-garden-id': PANEL_COMPONENT_ID,
980
- 'data-garden-version': '8.49.1'
980
+ 'data-garden-version': '8.49.4'
981
981
  }).withConfig({
982
982
  displayName: "StyledSubNavPanel",
983
983
  componentId: "sc-1jv3rpv-0"
@@ -1014,7 +1014,7 @@ var borderStyle = function borderStyle(_ref) {
1014
1014
  };
1015
1015
  var StyledSheet = styled.aside.attrs({
1016
1016
  'data-garden-id': COMPONENT_ID$8,
1017
- 'data-garden-version': '8.49.1'
1017
+ 'data-garden-version': '8.49.4'
1018
1018
  }).withConfig({
1019
1019
  displayName: "StyledSheet",
1020
1020
  componentId: "sc-dx8ijk-0"
@@ -1038,7 +1038,7 @@ StyledSheet.defaultProps = {
1038
1038
  var COMPONENT_ID$7 = 'chrome.sheet_wrapper';
1039
1039
  var StyledSheetWrapper = styled.div.attrs({
1040
1040
  'data-garden-id': COMPONENT_ID$7,
1041
- 'data-garden-version': '8.49.1'
1041
+ 'data-garden-version': '8.49.4'
1042
1042
  }).withConfig({
1043
1043
  displayName: "StyledSheetWrapper",
1044
1044
  componentId: "sc-f6x9zb-0"
@@ -1071,7 +1071,7 @@ StyledSheetWrapper.defaultProps = {
1071
1071
  var COMPONENT_ID$6 = 'chrome.sheet_title';
1072
1072
  var StyledSheetTitle = styled.div.attrs({
1073
1073
  'data-garden-id': COMPONENT_ID$6,
1074
- 'data-garden-version': '8.49.1'
1074
+ 'data-garden-version': '8.49.4'
1075
1075
  }).withConfig({
1076
1076
  displayName: "StyledSheetTitle",
1077
1077
  componentId: "sc-1gogk75-0"
@@ -1091,7 +1091,7 @@ StyledSheetTitle.defaultProps = {
1091
1091
  var COMPONENT_ID$5 = 'chrome.sheet_description';
1092
1092
  var StyledSheetDescription = styled.div.attrs({
1093
1093
  'data-garden-id': COMPONENT_ID$5,
1094
- 'data-garden-version': '8.49.1'
1094
+ 'data-garden-version': '8.49.4'
1095
1095
  }).withConfig({
1096
1096
  displayName: "StyledSheetDescription",
1097
1097
  componentId: "sc-1puglb6-0"
@@ -1109,7 +1109,7 @@ StyledSheetDescription.defaultProps = {
1109
1109
  var COMPONENT_ID$4 = 'chrome.sheet_body';
1110
1110
  var StyledSheetBody = styled.div.attrs({
1111
1111
  'data-garden-id': COMPONENT_ID$4,
1112
- 'data-garden-version': '8.49.1'
1112
+ 'data-garden-version': '8.49.4'
1113
1113
  }).withConfig({
1114
1114
  displayName: "StyledSheetBody",
1115
1115
  componentId: "sc-bt4eoj-0"
@@ -1135,7 +1135,7 @@ var colorStyles = function colorStyles(props) {
1135
1135
  };
1136
1136
  var StyledSheetClose = styled.button.attrs({
1137
1137
  'data-garden-id': COMPONENT_ID$3,
1138
- 'data-garden-version': '8.49.1'
1138
+ 'data-garden-version': '8.49.4'
1139
1139
  }).withConfig({
1140
1140
  displayName: "StyledSheetClose",
1141
1141
  componentId: "sc-1ab02oq-0"
@@ -1161,7 +1161,7 @@ StyledSheetClose.defaultProps = {
1161
1161
  var COMPONENT_ID$2 = 'chrome.sheet_footer';
1162
1162
  var StyledSheetFooter = styled.footer.attrs({
1163
1163
  'data-garden-id': COMPONENT_ID$2,
1164
- 'data-garden-version': '8.49.1'
1164
+ 'data-garden-version': '8.49.4'
1165
1165
  }).withConfig({
1166
1166
  displayName: "StyledSheetFooter",
1167
1167
  componentId: "sc-2cktos-0"
@@ -1181,7 +1181,7 @@ StyledSheetFooter.defaultProps = {
1181
1181
  var COMPONENT_ID$1 = 'chrome.sheet_footer_item';
1182
1182
  var StyledSheetFooterItem = styled.div.attrs({
1183
1183
  'data-garden-id': COMPONENT_ID$1,
1184
- 'data-garden-version': '8.49.1'
1184
+ 'data-garden-version': '8.49.4'
1185
1185
  }).withConfig({
1186
1186
  displayName: "StyledSheetFooterItem",
1187
1187
  componentId: "sc-r9ixh-0"
@@ -1197,7 +1197,7 @@ StyledSheetFooterItem.defaultProps = {
1197
1197
  var COMPONENT_ID = 'chrome.sheet_header';
1198
1198
  var StyledSheetHeader = styled.header.attrs({
1199
1199
  'data-garden-id': COMPONENT_ID,
1200
- 'data-garden-version': '8.49.1'
1200
+ 'data-garden-version': '8.49.4'
1201
1201
  }).withConfig({
1202
1202
  displayName: "StyledSheetHeader",
1203
1203
  componentId: "sc-o2ry8i-0"
@@ -1345,7 +1345,8 @@ Header$1.propTypes = {
1345
1345
  isStandalone: PropTypes.bool
1346
1346
  };
1347
1347
 
1348
- var PRODUCTS = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
1348
+ var PLACEMENT = ['end', 'start'];
1349
+ var PRODUCT = ['chat', 'connect', 'explore', 'guide', 'message', 'support', 'talk'];
1349
1350
 
1350
1351
  var _excluded$7 = ["hasLogo", "product"];
1351
1352
  var HeaderItem = React__default.forwardRef(function (_ref, ref) {
@@ -1367,7 +1368,7 @@ HeaderItem.propTypes = {
1367
1368
  maxX: PropTypes.bool,
1368
1369
  maxY: PropTypes.bool,
1369
1370
  isRound: PropTypes.bool,
1370
- product: PropTypes.oneOf(PRODUCTS),
1371
+ product: PropTypes.oneOf(PRODUCT),
1371
1372
  hasLogo: PropTypes.bool
1372
1373
  };
1373
1374
 
@@ -1489,7 +1490,7 @@ var NavItem = React__default.forwardRef(function (_ref, ref) {
1489
1490
  });
1490
1491
  NavItem.displayName = 'NavItem';
1491
1492
  NavItem.propTypes = {
1492
- product: PropTypes.oneOf(PRODUCTS),
1493
+ product: PropTypes.oneOf(PRODUCT),
1493
1494
  hasLogo: PropTypes.bool,
1494
1495
  hasBrandmark: PropTypes.bool,
1495
1496
  isCurrent: PropTypes.bool
@@ -1783,7 +1784,7 @@ var SheetComponent = React__default.forwardRef(function (_ref, ref) {
1783
1784
  _useState2 = _slicedToArray(_useState, 2),
1784
1785
  isCloseButtonPresent = _useState2[0],
1785
1786
  setCloseButtonPresent = _useState2[1];
1786
- var _useState3 = useState(id || seed("sheet_".concat('8.49.1'))),
1787
+ var _useState3 = useState(id || seed("sheet_".concat('8.49.4'))),
1787
1788
  _useState4 = _slicedToArray(_useState3, 1),
1788
1789
  idPrefix = _useState4[0];
1789
1790
  var titleId = "".concat(idPrefix, "--title");
@@ -1828,7 +1829,7 @@ SheetComponent.propTypes = {
1828
1829
  isAnimated: PropTypes.bool,
1829
1830
  focusOnMount: PropTypes.bool,
1830
1831
  restoreFocus: PropTypes.bool,
1831
- placement: PropTypes.oneOf(['start', 'end']),
1832
+ placement: PropTypes.oneOf(PLACEMENT),
1832
1833
  size: PropTypes.string
1833
1834
  };
1834
1835
  SheetComponent.defaultProps = {
@@ -1845,4 +1846,4 @@ Sheet.FooterItem = FooterItem;
1845
1846
  Sheet.Header = Header;
1846
1847
  Sheet.Title = Title;
1847
1848
 
1848
- 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, Sidebar, SkipNav, SubNav, SubNavItem, SubNavItemText };
1849
+ 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, PRODUCT as PRODUCTS, Sheet, Sidebar, SkipNav, SubNav, SubNavItem, SubNavItemText };
@@ -4,13 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface IChromeProps extends HTMLAttributes<HTMLDivElement> {
9
- /** Applies a custom hue to the chrome navigation */
10
- hue?: string;
11
- /** Prevents fixed positioning from being applied to the `<html>` element */
12
- isFluid?: boolean;
13
- }
7
+ import React from 'react';
8
+ import { IChromeProps } from '../types';
14
9
  /**
15
10
  * @extends HTMLAttributes<HTMLDivElement>
16
11
  */
@@ -4,13 +4,8 @@
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, { AnchorHTMLAttributes } from 'react';
8
- export interface ISkipNavProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
9
- /** Sets the ID of the element to navigate to */
10
- targetId: string;
11
- /** Sets the `z-index` of the element */
12
- zIndex?: number;
13
- }
7
+ import React from 'react';
8
+ import { ISkipNavProps } from '../types';
14
9
  /**
15
10
  * @extends AnchorHTMLAttributes<HTMLAnchorElement>
16
11
  */
@@ -4,11 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface IBodyProps extends HTMLAttributes<HTMLDivElement> {
9
- /** Adjusts the body content height to allow space for a footer component */
10
- hasFooter?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { IBodyProps } from '../../types';
12
9
  /**
13
10
  * @extends HTMLAttributes<HTMLDivElement>
14
11
  */
@@ -4,11 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface IHeaderProps extends HTMLAttributes<HTMLElement> {
9
- /** Displays logo for standlone usage */
10
- isStandalone?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { IHeaderProps } from '../../types';
12
9
  /**
13
10
  * @extends HTMLAttributes<HTMLElement>
14
11
  */
@@ -4,24 +4,8 @@
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, { ButtonHTMLAttributes } from 'react';
8
- import { PRODUCT } from '../../utils/types';
9
- export interface IHeaderItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
- /** Maximizes the width of a flex item in the header */
11
- maxX?: boolean;
12
- /** Maximizes the height of the item (i.e. contains a search input) */
13
- maxY?: boolean;
14
- /** Rounds the border radius of the item */
15
- isRound?: boolean;
16
- /**
17
- * Applies a
18
- * [brand color](/design/color#brand-colors)
19
- * to the product logo
20
- */
21
- product?: PRODUCT;
22
- /** Applies header logo styles to the item */
23
- hasLogo?: boolean;
24
- }
7
+ import React from 'react';
8
+ import { IHeaderItemProps } from '../../types';
25
9
  /**
26
10
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
27
11
  */
@@ -4,11 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface IHeaderItemTextProps extends HTMLAttributes<HTMLElement> {
9
- /** Hides item text. Text remains accessible to screen readers. */
10
- isClipped?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { IHeaderItemTextProps } from '../../types';
12
9
  /**
13
10
  * @extends HTMLAttributes<HTMLSpanElement>
14
11
  */
@@ -4,15 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface IHeaderItemWrapperProps extends HTMLAttributes<HTMLDivElement> {
9
- /** Maximizes the width of a flex item in the header */
10
- maxX?: boolean;
11
- /** Maximizes the height of the item (i.e. contains a search input) */
12
- maxY?: boolean;
13
- /** Rounds the border radius of the item */
14
- isRound?: boolean;
15
- }
7
+ import React from 'react';
8
+ import { IHeaderItemWrapperProps } from '../../types';
16
9
  /**
17
10
  * @extends HTMLAttributes<HTMLDivElement>
18
11
  */
@@ -4,11 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface INavProps extends HTMLAttributes<HTMLElement> {
9
- /** Expands the nav area to display the item text */
10
- isExpanded?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { INavProps } from '../../types';
12
9
  /**
13
10
  * @extends HTMLAttributes<HTMLElement>
14
11
  */
@@ -4,18 +4,8 @@
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, { ButtonHTMLAttributes } from 'react';
8
- import { PRODUCT } from '../../utils/types';
9
- export interface INavItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
- /** Applies a product-specific color palette */
11
- product?: PRODUCT;
12
- /** Indicates that the item is current in the nav */
13
- isCurrent?: boolean;
14
- /** Indicates that the item contains a product logo */
15
- hasLogo?: boolean;
16
- /** Indicates that the item contains the company brandmark */
17
- hasBrandmark?: boolean;
18
- }
7
+ import React from 'react';
8
+ import { INavItemProps } from '../../types';
19
9
  /**
20
10
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
21
11
  */
@@ -4,11 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface INavItemTextProps extends HTMLAttributes<HTMLSpanElement> {
9
- /** Wraps overflow item text instead of truncating long strings with an ellipsis **/
10
- isWrapped?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { INavItemTextProps } from '../../types';
12
9
  /**
13
10
  * @extends HTMLAttributes<HTMLSpanElement>
14
11
  */
@@ -4,7 +4,8 @@
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, { HTMLAttributes } from 'react';
7
+ import React from 'react';
8
+ import { ISheetProps } from '../../types';
8
9
  import { Title } from './components/Title';
9
10
  import { Description } from './components/Description';
10
11
  import { Header } from './components/Header';
@@ -12,20 +13,6 @@ import { Body } from './components/Body';
12
13
  import { Footer } from './components/Footer';
13
14
  import { FooterItem } from './components/FooterItem';
14
15
  import { Close } from './components/Close';
15
- export interface ISheetProps extends HTMLAttributes<HTMLElement> {
16
- /** Opens the Sheet */
17
- isOpen?: boolean;
18
- /** Determines whether animation for opening and closing the Sheet is used */
19
- isAnimated?: boolean;
20
- /** Focuses on the Sheet when `isOpen` is true and mounted */
21
- focusOnMount?: boolean;
22
- /** Directs keyboard focus to the Sheet on mount */
23
- restoreFocus?: boolean;
24
- /** Returns keyboard focus to the element that triggered the Sheet */
25
- placement?: 'start' | 'end';
26
- /** Sets the width in pixels, based on the placement of the Sheet */
27
- size?: string;
28
- }
29
16
  /**
30
17
  * @extends HTMLAttributes<HTMLElement>
31
18
  */
@@ -4,11 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface ISheetFooterProps extends HTMLAttributes<HTMLElement> {
9
- /** Sets the footer padding to half the standard and centers the elements */
10
- isCompact?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { ISheetFooterProps } from '../../../types';
12
9
  /**
13
10
  * @extends HTMLAttributes<HTMLElement>
14
11
  */
@@ -4,19 +4,8 @@
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, { ButtonHTMLAttributes } from 'react';
8
- export interface ICollapsibleSubNavItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
9
- /** Sets the item's section header */
10
- header?: React.ReactNode;
11
- /** Reveals the item's section */
12
- isExpanded?: boolean;
13
- /**
14
- * Handles changes in the item's expansion state
15
- *
16
- * @param {boolean} isExpanded An item's expansion state
17
- */
18
- onChange?: (isExpanded: boolean) => void;
19
- }
7
+ import React from 'react';
8
+ import { ICollapsibleSubNavItemProps } from '../../types';
20
9
  /**
21
10
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
22
11
  */
@@ -4,11 +4,8 @@
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, { ButtonHTMLAttributes } from 'react';
8
- export interface ISubNavItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
9
- /** Indicates that the item is current in the subnav */
10
- isCurrent?: boolean;
11
- }
7
+ import React from 'react';
8
+ import { ISubNavItemProps } from '../../types';
12
9
  /**
13
10
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
14
11
  */
@@ -4,14 +4,8 @@
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, { HTMLAttributes } from 'react';
8
- export interface ISubNavItemTextProps extends HTMLAttributes<HTMLSpanElement> {
9
- /**
10
- * Wraps overflow item text instead of truncating long strings with an ellipsis.
11
- * Use when `max-width` styling is applied to the subnav container.
12
- **/
13
- isWrapped?: boolean;
14
- }
7
+ import React from 'react';
8
+ import { ISubNavItemTextProps } from '../../types';
15
9
  /**
16
10
  * @extends HTMLAttributes<HTMLSpanElement>
17
11
  */