@primer/components 33.0.0-rc.265a717f → 33.0.0-rc.42d465c3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/browser.esm.js +2 -2209
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +2 -2209
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Header.js +1 -1
  7. package/lib/ActionList/Item.js +10 -10
  8. package/lib/ActionList/List.js +1 -1
  9. package/lib/ActionList2/Item.js +1 -1
  10. package/lib/ActionList2/List.js +1 -1
  11. package/lib/BaseStyles.js +2 -20
  12. package/lib/BorderBox.js +1 -1
  13. package/lib/Box.js +1 -1
  14. package/lib/Breadcrumbs.js +3 -3
  15. package/lib/Button/Button.js +1 -1
  16. package/lib/Button/ButtonGroup.js +1 -1
  17. package/lib/Checkbox.js +1 -1
  18. package/lib/Details.js +1 -1
  19. package/lib/FilteredActionList/FilteredActionList.js +1 -1
  20. package/lib/Flex.js +1 -1
  21. package/lib/LabelGroup.js +1 -1
  22. package/lib/Overlay.js +1 -1
  23. package/lib/Pagination/Pagination.js +2 -2
  24. package/lib/Position.js +1 -1
  25. package/lib/SelectMenu/SelectMenu.js +1 -1
  26. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  27. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  28. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  29. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  30. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  31. package/lib/SelectMenu/SelectMenuTabs.js +1 -1
  32. package/lib/StateLabel.js +1 -1
  33. package/lib/StyledOcticon.js +1 -1
  34. package/lib/SubNav.js +3 -3
  35. package/lib/ThemeProvider.d.ts +1 -0
  36. package/lib/ThemeProvider.js +17 -4
  37. package/lib/Timeline.js +4 -4
  38. package/lib/Token/AvatarToken.js +1 -1
  39. package/lib/Token/TokenBase.js +1 -1
  40. package/lib/Tooltip.js +1 -1
  41. package/lib/UnderlineNav.js +2 -2
  42. package/lib/__tests__/ThemeProvider.test.js +114 -0
  43. package/lib/stories/ActionList.stories.js +3 -3
  44. package/lib/stories/ActionList2.stories.js +1 -1
  45. package/lib/stories/Checkbox.stories.js +2 -2
  46. package/lib/stories/ThemeProvider.stories.js +1 -5
  47. package/lib/stories/useFocusTrap.stories.js +1 -11
  48. package/lib/stories/useFocusZone.stories.js +2 -6
  49. package/lib-esm/ActionList/Header.js +1 -1
  50. package/lib-esm/ActionList/Item.js +10 -10
  51. package/lib-esm/ActionList/List.js +1 -1
  52. package/lib-esm/ActionList2/Item.js +1 -1
  53. package/lib-esm/ActionList2/List.js +1 -1
  54. package/lib-esm/BaseStyles.js +2 -20
  55. package/lib-esm/BorderBox.js +1 -1
  56. package/lib-esm/Box.js +1 -1
  57. package/lib-esm/Breadcrumbs.js +3 -3
  58. package/lib-esm/Button/Button.js +1 -1
  59. package/lib-esm/Button/ButtonGroup.js +1 -1
  60. package/lib-esm/Checkbox.js +1 -1
  61. package/lib-esm/Details.js +1 -1
  62. package/lib-esm/FilteredActionList/FilteredActionList.js +1 -1
  63. package/lib-esm/Flex.js +1 -1
  64. package/lib-esm/LabelGroup.js +1 -1
  65. package/lib-esm/Overlay.js +1 -1
  66. package/lib-esm/Pagination/Pagination.js +2 -2
  67. package/lib-esm/Position.js +1 -1
  68. package/lib-esm/SelectMenu/SelectMenu.js +1 -1
  69. package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
  70. package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
  71. package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
  72. package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
  73. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
  74. package/lib-esm/SelectMenu/SelectMenuTabs.js +1 -1
  75. package/lib-esm/StateLabel.js +1 -1
  76. package/lib-esm/StyledOcticon.js +1 -1
  77. package/lib-esm/SubNav.js +3 -3
  78. package/lib-esm/ThemeProvider.d.ts +1 -0
  79. package/lib-esm/ThemeProvider.js +17 -4
  80. package/lib-esm/Timeline.js +4 -4
  81. package/lib-esm/Token/AvatarToken.js +1 -1
  82. package/lib-esm/Token/TokenBase.js +1 -1
  83. package/lib-esm/Tooltip.js +1 -1
  84. package/lib-esm/UnderlineNav.js +2 -2
  85. package/lib-esm/__tests__/ThemeProvider.test.js +114 -0
  86. package/lib-esm/stories/ActionList.stories.js +3 -3
  87. package/lib-esm/stories/ActionList2.stories.js +1 -1
  88. package/lib-esm/stories/Checkbox.stories.js +2 -2
  89. package/lib-esm/stories/ThemeProvider.stories.js +1 -5
  90. package/lib-esm/stories/useFocusTrap.stories.js +1 -11
  91. package/lib-esm/stories/useFocusZone.stories.js +2 -6
  92. package/package-lock.json +41 -747
  93. package/package.json +2 -2
  94. package/src/ThemeProvider.tsx +22 -5
  95. package/src/__tests__/ThemeProvider.test.tsx +116 -0
  96. package/stats.html +1 -1
@@ -24,7 +24,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
24
24
 
25
25
  const StyledHeader = _styledComponents.default.div.withConfig({
26
26
  displayName: "Header__StyledHeader",
27
- componentId: "qmofje-0"
27
+ componentId: "sc-qmofje-0"
28
28
  })(["{}padding:6px ", ";font-size:", ";font-weight:", ";color:", ";", " ", ""], (0, _constants.get)('space.3'), (0, _constants.get)('fontSizes.0'), (0, _constants.get)('fontWeights.bold'), (0, _constants.get)('colors.fg.muted'), ({
29
29
  variant
30
30
  }) => variant === 'filled' && (0, _styledComponents.css)(["background:", ";margin:", " 0;border-top:1px solid ", ";border-bottom:1px solid ", ";&:first-child{margin-top:0;}"], (0, _constants.get)('colors.canvas.subtle'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.neutral.muted')), _sx.default);
@@ -71,17 +71,17 @@ const getItemVariant = (variant = 'default', disabled) => {
71
71
 
72
72
  const DividedContent = _styledComponents.default.div.withConfig({
73
73
  displayName: "Item__DividedContent",
74
- componentId: "jqpvy8-0"
74
+ componentId: "sc-jqpvy8-0"
75
75
  })(["display:flex;min-width:0;position:relative;flex-grow:1;"]);
76
76
 
77
77
  const MainContent = _styledComponents.default.div.withConfig({
78
78
  displayName: "Item__MainContent",
79
- componentId: "jqpvy8-1"
79
+ componentId: "sc-jqpvy8-1"
80
80
  })(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]);
81
81
 
82
82
  const StyledItem = _styledComponents.default.div.withConfig({
83
83
  displayName: "Item__StyledItem",
84
- componentId: "jqpvy8-2"
84
+ componentId: "sc-jqpvy8-2"
85
85
  })(["padding:6px ", ";display:flex;border-radius:", ";color:", ";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,", " );color:", ";cursor:", ";}}:not(:first-of-type):not(", " + &):not(", " + &){margin-top:", ";", "::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ", ";border-top-width:", ";}}&:hover ", "::before,:hover + * ", "::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ", "::before,:focus + * ", "::before,&[", "] ", "::before,[", "] + & ", "::before{border-color:transparent !important;}&[", "='", "']{background:", ";}&[", "='", "']{background:", ";}&:focus{background:", ";outline:none;}&:active{background:", ";}", ""], (0, _constants.get)('space.2'), (0, _constants.get)('radii.2'), ({
86
86
  variant,
87
87
  item
@@ -114,30 +114,30 @@ const StyledItem = _styledComponents.default.div.withConfig({
114
114
 
115
115
  const TextContainer = _styledComponents.default.span.withConfig({
116
116
  displayName: "Item__TextContainer",
117
- componentId: "jqpvy8-3"
117
+ componentId: "sc-jqpvy8-3"
118
118
  })([""]);
119
119
 
120
120
  exports.TextContainer = TextContainer;
121
121
 
122
122
  const BaseVisualContainer = _styledComponents.default.div.withConfig({
123
123
  displayName: "Item__BaseVisualContainer",
124
- componentId: "jqpvy8-4"
124
+ componentId: "sc-jqpvy8-4"
125
125
  })(["height:20px;width:", ";margin-right:", ";display:flex;justify-content:center;align-items:center;flex-shrink:0;"], (0, _constants.get)('space.3'), (0, _constants.get)('space.2'));
126
126
 
127
127
  const ColoredVisualContainer = (0, _styledComponents.default)(BaseVisualContainer).withConfig({
128
128
  displayName: "Item__ColoredVisualContainer",
129
- componentId: "jqpvy8-5"
129
+ componentId: "sc-jqpvy8-5"
130
130
  })(["svg{fill:", ";font-size:", ";}"], ({
131
131
  variant,
132
132
  disabled
133
133
  }) => getItemVariant(variant, disabled).iconColor, (0, _constants.get)('fontSizes.0'));
134
134
  const LeadingVisualContainer = (0, _styledComponents.default)(ColoredVisualContainer).withConfig({
135
135
  displayName: "Item__LeadingVisualContainer",
136
- componentId: "jqpvy8-6"
136
+ componentId: "sc-jqpvy8-6"
137
137
  })(["display:flex;flex-direction:column;justify-content:center;"]);
138
138
  const TrailingContent = (0, _styledComponents.default)(ColoredVisualContainer).withConfig({
139
139
  displayName: "Item__TrailingContent",
140
- componentId: "jqpvy8-7"
140
+ componentId: "sc-jqpvy8-7"
141
141
  })(["color:", "};margin-left:", ";margin-right:0;width:auto;div:nth-child(2){margin-left:", ";}"], ({
142
142
  variant,
143
143
  disabled
@@ -145,12 +145,12 @@ const TrailingContent = (0, _styledComponents.default)(ColoredVisualContainer).w
145
145
 
146
146
  const DescriptionContainer = _styledComponents.default.span.withConfig({
147
147
  displayName: "Item__DescriptionContainer",
148
- componentId: "jqpvy8-8"
148
+ componentId: "sc-jqpvy8-8"
149
149
  })(["color:", ";font-size:", ";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.0'));
150
150
 
151
151
  const MultiSelectIcon = _styledComponents.default.svg.withConfig({
152
152
  displayName: "Item__MultiSelectIcon",
153
- componentId: "jqpvy8-9"
153
+ componentId: "sc-jqpvy8-9"
154
154
  })(["rect{fill:", ";stroke:", ";shape-rendering:auto;}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
155
155
  selected
156
156
  }) => selected ? (0, _constants.get)('colors.accent.fg') : (0, _constants.get)('colors.canvas.default'), ({
@@ -37,7 +37,7 @@ function isGroupedListProps(props) {
37
37
 
38
38
  const StyledList = _styledComponents.default.div.withConfig({
39
39
  displayName: "List__StyledList",
40
- componentId: "yr2k7d-0"
40
+ componentId: "sc-yr2k7d-0"
41
41
  })(["font-size:", ";line-height:20px;&[", "],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:", ";}"], (0, _constants.get)('fontSizes.1'), _focusZone.hasActiveDescendantAttribute, (0, _constants.get)('colors.border.muted'));
42
42
  /**
43
43
  * Returns `sx` prop values for `List` children matching the given `List` style variation.
@@ -70,7 +70,7 @@ exports.Slot = Slot;
70
70
 
71
71
  const LiBox = _styledComponents.default.li.withConfig({
72
72
  displayName: "Item__LiBox",
73
- componentId: "c3scat-0"
73
+ componentId: "sc-c3scat-0"
74
74
  })(_sx.default);
75
75
 
76
76
  const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
@@ -27,7 +27,7 @@ exports.ListContext = ListContext;
27
27
 
28
28
  const ListBox = _styledComponents.default.ul.withConfig({
29
29
  displayName: "List__ListBox",
30
- componentId: "cvbq60-0"
30
+ componentId: "sc-cvbq60-0"
31
31
  })(_sx.default);
32
32
 
33
33
  const List = /*#__PURE__*/_react.default.forwardRef(({
package/lib/BaseStyles.js CHANGED
@@ -19,29 +19,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
19
 
20
20
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
- const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
23
- * { box-sizing: border-box; }
24
- body { margin: 0; }
25
- table { border-collapse: collapse; }
26
-
27
- [role="button"]:focus:not(:focus-visible):not(.focus-visible),
28
- [role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),
29
- button:focus:not(:focus-visible):not(.focus-visible),
30
- summary:focus:not(:focus-visible):not(.focus-visible),
31
- a:focus:not(:focus-visible):not(.focus-visible) {
32
- outline: none;
33
- box-shadow: none;
34
- }
35
-
36
- [tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),
37
- details-dialog:focus:not(:focus-visible):not(.focus-visible) {
38
- outline: none;
39
- }
40
- `;
22
+ const GlobalStyle = (0, _styledComponents.createGlobalStyle)(["*{box-sizing:border-box;}body{margin:0;}table{border-collapse:collapse;}[role=\"button\"]:focus:not(:focus-visible):not(.focus-visible),[role=\"tabpanel\"][tabindex=\"0\"]:focus:not(:focus-visible):not(.focus-visible),button:focus:not(:focus-visible):not(.focus-visible),summary:focus:not(:focus-visible):not(.focus-visible),a:focus:not(:focus-visible):not(.focus-visible){outline:none;box-shadow:none;}[tabindex=\"0\"]:focus:not(:focus-visible):not(.focus-visible),details-dialog:focus:not(:focus-visible):not(.focus-visible){outline:none;}"]);
41
23
 
42
24
  const Base = _styledComponents.default.div.withConfig({
43
25
  displayName: "BaseStyles__Base",
44
- componentId: "qvuaww-0"
26
+ componentId: "sc-qvuaww-0"
45
27
  })(["", ";", ";"], _constants.TYPOGRAPHY, _constants.COMMON);
46
28
 
47
29
  function BaseStyles(props) {
package/lib/BorderBox.js CHANGED
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  */
17
17
  const BorderBox = (0, _styledComponents.default)(_Box.default).withConfig({
18
18
  displayName: "BorderBox",
19
- componentId: "oreju5-0"
19
+ componentId: "sc-oreju5-0"
20
20
  })([""]);
21
21
  BorderBox.defaultProps = {
22
22
  borderWidth: '1px',
package/lib/Box.js CHANGED
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  const Box = _styledComponents.default.div.withConfig({
17
17
  displayName: "Box",
18
- componentId: "nv15kw-0"
18
+ componentId: "sc-nv15kw-0"
19
19
  })(_styledSystem.space, _styledSystem.color, _styledSystem.typography, _styledSystem.layout, _styledSystem.flexbox, _styledSystem.grid, _styledSystem.background, _styledSystem.border, _styledSystem.position, _styledSystem.shadow, _sx.default);
20
20
 
21
21
  var _default = Box;
@@ -23,12 +23,12 @@ const SELECTED_CLASS = 'selected';
23
23
 
24
24
  const Wrapper = _styledComponents.default.li.withConfig({
25
25
  displayName: "Breadcrumbs__Wrapper",
26
- componentId: "hwwoo0-0"
26
+ componentId: "sc-hwwoo0-0"
27
27
  })(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:", ";font-size:", ";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.1'));
28
28
 
29
29
  const BreadcrumbsBase = _styledComponents.default.nav.withConfig({
30
30
  displayName: "Breadcrumbs__BreadcrumbsBase",
31
- componentId: "hwwoo0-1"
31
+ componentId: "sc-hwwoo0-1"
32
32
  })(["display:flex;justify-content:space-between;", ";"], _sx.default);
33
33
 
34
34
  function Breadcrumbs({
@@ -57,7 +57,7 @@ const BreadcrumbsItem = _styledComponents.default.a.attrs(props => ({
57
57
  'aria-current': props.selected ? 'page' : null
58
58
  })).withConfig({
59
59
  displayName: "Breadcrumbs__BreadcrumbsItem",
60
- componentId: "hwwoo0-2"
60
+ componentId: "sc-hwwoo0-2"
61
61
  })(["color:", ";display:inline-block;font-size:", ";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:", ";pointer-events:none;}", ";"], (0, _constants.get)('colors.accent.fg'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), _sx.default);
62
62
 
63
63
  Breadcrumbs.displayName = 'Breadcrumbs';
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  const Button = (0, _styledComponents.default)(_ButtonBase.default).withConfig({
19
19
  displayName: "Button",
20
- componentId: "xjtz72-0"
20
+ componentId: "sc-xjtz72-0"
21
21
  })(["color:", ";background-color:", ";border:1px solid ", ";box-shadow:", ",", "};&:hover{background-color:", ";border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&:active{background-color:", ";box-shadow:", ";}&:disabled{color:", ";background-color:", ";border-color:", ";}", ";"], (0, _constants.get)('colors.btn.text'), (0, _constants.get)('colors.btn.bg'), (0, _constants.get)('colors.btn.border'), (0, _constants.get)('shadows.btn.shadow'), (0, _constants.get)('shadows.btn.insetShadow'), (0, _constants.get)('colors.btn.hoverBg'), (0, _constants.get)('colors.btn.hoverBorder'), (0, _constants.get)('colors.btn.focusBorder'), (0, _constants.get)('shadows.btn.focusShadow'), (0, _constants.get)('colors.btn.selectedBg'), (0, _constants.get)('shadows.btn.shadowActive'), (0, _constants.get)('colors.primer.fg.disabled'), (0, _constants.get)('colors.btn.bg'), (0, _constants.get)('colors.btn.border'), _sx.default);
22
22
  var _default = Button;
23
23
  exports.default = _default;
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  const ButtonGroup = (0, _styledComponents.default)(_Box.default).withConfig({
19
19
  displayName: "ButtonGroup",
20
- componentId: "peei04-0"
20
+ componentId: "sc-peei04-0"
21
21
  })(["vertical-align:middle;&& > *{position:relative;border-right-width:0;border-radius:0;:first-child{border-top-left-radius:", ";border-bottom-left-radius:", ";margin-right:0;}:not(:first-child){margin-left:0;margin-right:0;}:last-child{border-right-width:1px;border-top-right-radius:", ";border-bottom-right-radius:", ";}:focus,:active,:hover{border-right-width:1px;+ *{border-left-width:0;}}:focus,:active{z-index:1;}}", ";"], (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), _sx.default);
22
22
  ButtonGroup.defaultProps = {
23
23
  display: 'inline-block'
package/lib/Checkbox.js CHANGED
@@ -23,7 +23,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
23
23
 
24
24
  const StyledCheckbox = _styledComponents.default.input.withConfig({
25
25
  displayName: "Checkbox__StyledCheckbox",
26
- componentId: "i51804-0"
26
+ componentId: "sc-i51804-0"
27
27
  })(["cursor:pointer;", " ", ""], props => props.disabled && `cursor: not-allowed;`, _sx.default);
28
28
  /**
29
29
  * An accessible, native checkbox component
package/lib/Details.js CHANGED
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
13
13
 
14
14
  const Details = _styledComponents.default.details.withConfig({
15
15
  displayName: "Details",
16
- componentId: "ssy9qz-0"
16
+ componentId: "sc-ssy9qz-0"
17
17
  })(["& > summary{list-style:none;}& > summary::-webkit-details-marker{display:none;}", ";"], _sx.default);
18
18
 
19
19
  Details.displayName = 'Details';
@@ -41,7 +41,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
41
41
 
42
42
  const StyledHeader = _styledComponents.default.div.withConfig({
43
43
  displayName: "FilteredActionList__StyledHeader",
44
- componentId: "yg3jkv-0"
44
+ componentId: "sc-yg3jkv-0"
45
45
  })(["box-shadow:0 1px 0 ", ";z-index:1;"], (0, _constants.get)('colors.border.default'));
46
46
 
47
47
  function FilteredActionList({
package/lib/Flex.js CHANGED
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  */
17
17
  const Flex = (0, _styledComponents.default)(_Box.default).withConfig({
18
18
  displayName: "Flex",
19
- componentId: "arghxi-0"
19
+ componentId: "sc-arghxi-0"
20
20
  })([""]);
21
21
  Flex.defaultProps = {
22
22
  display: 'flex'
package/lib/LabelGroup.js CHANGED
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  const LabelGroup = _styledComponents.default.span.withConfig({
17
17
  displayName: "LabelGroup",
18
- componentId: "k6k3qa-0"
18
+ componentId: "sc-k6k3qa-0"
19
19
  })(["& *{margin-right:", ";}& *:last-child{margin-right:0;}", ";"], (0, _constants.get)('space.1'), _sx.default);
20
20
 
21
21
  var _default = LabelGroup;
package/lib/Overlay.js CHANGED
@@ -82,7 +82,7 @@ function getSlideAnimationStartingVector(anchorSide) {
82
82
 
83
83
  const StyledOverlay = _styledComponents.default.div.withConfig({
84
84
  displayName: "Overlay__StyledOverlay",
85
- componentId: "jhwkzw-0"
85
+ componentId: "sc-jhwkzw-0"
86
86
  })(["background-color:", ";box-shadow:", ";position:absolute;min-width:192px;max-width:640px;height:", ";max-height:", ";width:", ";border-radius:12px;overflow:hidden;animation:overlay-appear ", "ms ", ";@keyframes overlay-appear{0%{opacity:0;}100%{opacity:1;}}visibility:var(--styled-overlay-visibility);:focus{outline:none;}", ";"], (0, _constants.get)('colors.canvas.overlay'), (0, _constants.get)('shadows.overlay.shadow'), props => heightMap[props.height || 'auto'], props => props.maxHeight && heightMap[props.maxHeight], props => widthMap[props.width || 'auto'], animationDuration, (0, _constants.get)('animation.easeOutCubic'), _sx.default);
87
87
 
88
88
  /**
@@ -23,7 +23,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
23
23
 
24
24
  const Page = _styledComponents.default.a.withConfig({
25
25
  displayName: "Pagination__Page",
26
- componentId: "b80nss-0"
26
+ componentId: "sc-b80nss-0"
27
27
  })(["display:inline-block;min-width:32px;padding:5px 10px;font-style:normal;line-height:20px;color:", ";text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;text-decoration:none;margin-right:", ";&:last-child{margin-right:0;}border:", " solid transparent;border-radius:", ";transition:border-color 0.2s cubic-bezier(0.3,0,0.5,1);&:hover,&:focus{text-decoration:none;border-color:", ";outline:0;transition-duration:0.1s;}&:active{border-color:", ";}&[rel='prev'],&[rel='next']{color:", ";}&[aria-current],&[aria-current]:hover{color:", ";background-color:", ";border-color:transparent;}&[aria-disabled],&[aria-disabled]:hover{color:", ";cursor:default;border-color:transparent;}@supports (clip-path:polygon(50% 0,100% 50%,50% 100%)){&[rel='prev']::before,&[rel='next']::after{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;content:'';background-color:currentColor;}&[rel='prev']::before{margin-right:", ";clip-path:polygon( 9.8px 12.8px,8.7px 12.8px,4.5px 8.5px,4.5px 7.5px,8.7px 3.2px,9.8px 4.3px,6.1px 8px,9.8px 11.7px,9.8px 12.8px );}&[rel='next']::after{margin-left:", ";clip-path:polygon( 6.2px 3.2px,7.3px 3.2px,11.5px 7.5px,11.5px 8.5px,7.3px 12.8px,6.2px 11.7px,9.9px 8px,6.2px 4.3px,6.2px 3.2px );}}"], (0, _constants.get)('colors.fg.default'), (0, _constants.get)('space.1'), (0, _constants.get)('borderWidths.1'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('colors.border.muted'), (0, _constants.get)('colors.accent.fg'), (0, _constants.get)('colors.fg.onEmphasis'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('colors.primer.fg.disabled'), (0, _constants.get)('space.1'), (0, _constants.get)('space.1'));
28
28
 
29
29
  function usePaginationPages({
@@ -61,7 +61,7 @@ function usePaginationPages({
61
61
 
62
62
  const PaginationContainer = _styledComponents.default.nav.withConfig({
63
63
  displayName: "Pagination__PaginationContainer",
64
- componentId: "b80nss-1"
64
+ componentId: "sc-b80nss-1"
65
65
  })(["margin-top:20px;margin-bottom:15px;text-align:center;", ";"], _sx.default);
66
66
 
67
67
  function Pagination({
package/lib/Position.js CHANGED
@@ -20,7 +20,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
20
20
  */
21
21
  const Position = (0, _styledComponents.default)(_Box.default).withConfig({
22
22
  displayName: "Position",
23
- componentId: "fla1y3-0"
23
+ componentId: "sc-fla1y3-0"
24
24
  })([""]);
25
25
 
26
26
  /**
@@ -62,7 +62,7 @@ const wrapperStyles = `
62
62
 
63
63
  const StyledSelectMenu = _styledComponents.default.details.withConfig({
64
64
  displayName: "SelectMenu__StyledSelectMenu",
65
- componentId: "i7h45b-0"
65
+ componentId: "sc-i7h45b-0"
66
66
  })(["", " ", ";"], wrapperStyles, _sx.default);
67
67
 
68
68
  // 'as' is spread out because we don't want users to be able to change the tag.
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
27
27
 
28
28
  const StyledForm = _styledComponents.default.form.withConfig({
29
29
  displayName: "SelectMenuFilter__StyledForm",
30
- componentId: "s7ktlh-0"
30
+ componentId: "sc-s7ktlh-0"
31
31
  })(["padding:", ";margin:0;border-bottom:", " solid ", ";background-color:", ";@media (min-width:", "){padding:", ";}", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('borderWidths.1'), (0, _constants.get)('colors.border.muted'), (0, _constants.get)('colors.canvas.overlay'), (0, _constants.get)('breakpoints.0'), (0, _constants.get)('space.2'), _sx.default);
32
32
 
33
33
  const SelectMenuFilter = /*#__PURE__*/(0, _react.forwardRef)(({
@@ -21,7 +21,7 @@ const footerStyles = (0, _styledComponents.css)(["margin-top:-1px;padding:", " "
21
21
 
22
22
  const SelectMenuFooter = _styledComponents.default.footer.withConfig({
23
23
  displayName: "SelectMenuFooter",
24
- componentId: "rkvco1-0"
24
+ componentId: "sc-rkvco1-0"
25
25
  })(["", " ", ";"], footerStyles, _sx.default);
26
26
 
27
27
  SelectMenuFooter.displayName = 'SelectMenu.Footer';
@@ -34,7 +34,7 @@ const StyledItem = _styledComponents.default.a.attrs(() => ({
34
34
  role: 'menuitemcheckbox'
35
35
  })).withConfig({
36
36
  displayName: "SelectMenuItem__StyledItem",
37
- componentId: "gjymba-0"
37
+ componentId: "sc-gjymba-0"
38
38
  })(["", " ", ";"], listItemStyles, _sx.default);
39
39
 
40
40
  const SelectMenuItem = /*#__PURE__*/(0, _react.forwardRef)(({
@@ -29,7 +29,7 @@ const tabStyles = (0, _styledComponents.css)(["flex:1;padding:", " ", ";font-siz
29
29
 
30
30
  const StyledTab = _styledComponents.default.button.withConfig({
31
31
  displayName: "SelectMenuTab__StyledTab",
32
- componentId: "ga32sz-0"
32
+ componentId: "sc-ga32sz-0"
33
33
  })(["", " ", ";"], tabStyles, _sx.default);
34
34
 
35
35
  const SelectMenuTab = ({
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
27
27
 
28
28
  const TabPanelBase = _styledComponents.default.div.withConfig({
29
29
  displayName: "SelectMenuTabPanel__TabPanelBase",
30
- componentId: "ck0ipe-0"
30
+ componentId: "sc-ck0ipe-0"
31
31
  })(["border-top:", " solid ", ";", ";"], (0, _constants.get)('borderWidths.1'), (0, _constants.get)('colors.border.muted'), _sx.default);
32
32
 
33
33
  const TabPanel = ({
@@ -25,7 +25,7 @@ const tabWrapperStyles = (0, _styledComponents.css)(["display:flex;flex-shrink:0
25
25
 
26
26
  const SelectMenuTabsBase = _styledComponents.default.div.withConfig({
27
27
  displayName: "SelectMenuTabs__SelectMenuTabsBase",
28
- componentId: "kgg21o-0"
28
+ componentId: "sc-kgg21o-0"
29
29
  })(["", " ", ";"], tabWrapperStyles, _sx.default);
30
30
 
31
31
  const SelectMenuTabs = ({
package/lib/StateLabel.js CHANGED
@@ -83,7 +83,7 @@ const sizeVariants = (0, _styledSystem.variant)({
83
83
 
84
84
  const StateLabelBase = _styledComponents.default.span.withConfig({
85
85
  displayName: "StateLabel__StateLabelBase",
86
- componentId: "k4pd9e-0"
86
+ componentId: "sc-k4pd9e-0"
87
87
  })(["display:inline-flex;align-items:center;font-weight:", ";line-height:16px;color:", ";text-align:center;border-radius:", ";", ";", ";", ";"], (0, _constants.get)('fontWeights.bold'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('radii.3'), colorVariants, sizeVariants, _sx.default);
88
88
 
89
89
  function StateLabel({
@@ -23,7 +23,7 @@ function Octicon({
23
23
  Octicon.displayName = "Octicon";
24
24
  const StyledOcticon = (0, _styledComponents.default)(Octicon).withConfig({
25
25
  displayName: "StyledOcticon",
26
- componentId: "uhnt7w-0"
26
+ componentId: "sc-uhnt7w-0"
27
27
  })(["", ""], _sx.default);
28
28
  StyledOcticon.defaultProps = {
29
29
  size: 16
package/lib/SubNav.js CHANGED
@@ -24,7 +24,7 @@ const SELECTED_CLASS = 'selected';
24
24
 
25
25
  const SubNavBase = _styledComponents.default.nav.withConfig({
26
26
  displayName: "SubNav__SubNavBase",
27
- componentId: "f7w0xa-0"
27
+ componentId: "sc-f7w0xa-0"
28
28
  })(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:", ";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}", ";"], (0, _constants.get)('space.2'), _sx.default);
29
29
 
30
30
  function SubNav({
@@ -49,7 +49,7 @@ SubNav.displayName = "SubNav";
49
49
 
50
50
  const SubNavLinks = _styledComponents.default.div.withConfig({
51
51
  displayName: "SubNav__SubNavLinks",
52
- componentId: "f7w0xa-1"
52
+ componentId: "sc-f7w0xa-1"
53
53
  })(["display:flex;", ";"], _sx.default);
54
54
 
55
55
  const SubNavLink = _styledComponents.default.a.attrs(props => ({
@@ -57,7 +57,7 @@ const SubNavLink = _styledComponents.default.a.attrs(props => ({
57
57
  className: (0, _classnames.default)(ITEM_CLASS, props.selected && SELECTED_CLASS, props.className)
58
58
  })).withConfig({
59
59
  displayName: "SubNav__SubNavLink",
60
- componentId: "f7w0xa-2"
60
+ componentId: "sc-f7w0xa-2"
61
61
  })(["padding-left:", ";padding-right:", ";font-weight:", ";font-size:", ";line-height:20px;min-height:34px;color:", ";text-align:center;text-decoration:none;border-top:1px solid ", ";border-bottom:1px solid ", ";border-right:1px solid ", ";display:flex;align-items:center;&:first-of-type{border-top-left-radius:", ";border-bottom-left-radius:", ";border-left:1px solid ", ";}&:last-of-type{border-top-right-radius:", ";border-bottom-right-radius:", ";}&:hover,&:focus{text-decoration:none;background-color:", ";transition:0.2s ease;.SubNav-octicon{color:", ";}}&.selected{color:", ";background-color:", ";border-color:", ";.SubNav-octicon{color:", ";}}", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('fontWeights.semibold'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.canvas.subtle'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.fg.onEmphasis'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('colors.fg.onEmphasis'), _sx.default);
62
62
 
63
63
  SubNavLink.displayName = 'SubNav.Link';
@@ -16,6 +16,7 @@ export declare function useTheme(): {
16
16
  colorScheme?: string | undefined;
17
17
  colorMode?: ColorModeWithAuto | undefined;
18
18
  resolvedColorMode?: ColorMode | undefined;
19
+ resolvedColorScheme?: string | undefined;
19
20
  dayScheme?: string | undefined;
20
21
  nightScheme?: string | undefined;
21
22
  setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
@@ -53,7 +53,10 @@ const ThemeProvider = ({
53
53
  const resolvedColorMode = resolveColorMode(colorMode, systemColorMode);
54
54
  const colorScheme = chooseColorScheme(resolvedColorMode, dayScheme, nightScheme);
55
55
 
56
- const resolvedTheme = _react.default.useMemo(() => applyColorScheme(theme, colorScheme), [theme, colorScheme]); // Update state if props change
56
+ const {
57
+ resolvedTheme,
58
+ resolvedColorScheme
59
+ } = _react.default.useMemo(() => applyColorScheme(theme, colorScheme), [theme, colorScheme]); // Update state if props change
57
60
 
58
61
 
59
62
  _react.default.useEffect(() => {
@@ -80,6 +83,7 @@ const ThemeProvider = ({
80
83
  colorScheme,
81
84
  colorMode,
82
85
  resolvedColorMode,
86
+ resolvedColorScheme,
83
87
  dayScheme,
84
88
  nightScheme,
85
89
  setColorMode,
@@ -175,7 +179,10 @@ function chooseColorScheme(colorMode, dayScheme, nightScheme) {
175
179
 
176
180
  function applyColorScheme(theme, colorScheme) {
177
181
  if (!theme.colorSchemes) {
178
- return theme;
182
+ return {
183
+ resolvedTheme: theme,
184
+ resolvedColorScheme: undefined
185
+ };
179
186
  }
180
187
 
181
188
  if (!theme.colorSchemes[colorScheme]) {
@@ -183,10 +190,16 @@ function applyColorScheme(theme, colorScheme) {
183
190
  console.error(`\`${colorScheme}\` scheme not defined in \`theme.colorSchemes\``); // Apply the first defined color scheme
184
191
 
185
192
  const defaultColorScheme = Object.keys(theme.colorSchemes)[0];
186
- return (0, _deepmerge.default)(theme, theme.colorSchemes[defaultColorScheme]);
193
+ return {
194
+ resolvedTheme: (0, _deepmerge.default)(theme, theme.colorSchemes[defaultColorScheme]),
195
+ resolvedColorScheme: defaultColorScheme
196
+ };
187
197
  }
188
198
 
189
- return (0, _deepmerge.default)(theme, theme.colorSchemes[colorScheme]);
199
+ return {
200
+ resolvedTheme: (0, _deepmerge.default)(theme, theme.colorSchemes[colorScheme]),
201
+ resolvedColorScheme: colorScheme
202
+ };
190
203
  }
191
204
 
192
205
  var _default = ThemeProvider;
package/lib/Timeline.js CHANGED
@@ -25,14 +25,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
25
25
 
26
26
  const Timeline = _styledComponents.default.div.withConfig({
27
27
  displayName: "Timeline",
28
- componentId: "c4dq2e-0"
28
+ componentId: "sc-c4dq2e-0"
29
29
  })(["display:flex;flex-direction:column;", " ", ";"], props => props.clipSidebar && (0, _styledComponents.css)([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"]), _sx.default);
30
30
 
31
31
  const TimelineItem = _styledComponents.default.div.attrs(props => ({
32
32
  className: (0, _classnames.default)('Timeline-Item', props.className)
33
33
  })).withConfig({
34
34
  displayName: "Timeline__TimelineItem",
35
- componentId: "c4dq2e-1"
35
+ componentId: "sc-c4dq2e-1"
36
36
  })(["display:flex;position:relative;padding:", " 0;margin-left:", ";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:", ";}", " ", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.border.muted'), props => props.condensed && (0, _styledComponents.css)(["padding-top:", ";padding-bottom:0;&:last-child{padding-bottom:", ";}.TimelineItem-Badge{height:16px;margin-top:", ";margin-bottom:", ";color:", ";background-color:", ";border:0;}"], (0, _constants.get)('space.1'), (0, _constants.get)('space.3'), (0, _constants.get)('space.2'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.canvas.default')), _sx.default);
37
37
 
38
38
  const TimelineBadge = props => {
@@ -64,12 +64,12 @@ TimelineBadge.displayName = "TimelineBadge";
64
64
 
65
65
  const TimelineBody = _styledComponents.default.div.withConfig({
66
66
  displayName: "Timeline__TimelineBody",
67
- componentId: "c4dq2e-2"
67
+ componentId: "sc-c4dq2e-2"
68
68
  })(["min-width:0;max-width:100%;margin-top:", ";color:", ";flex:auto;font-size:", ";", ";"], (0, _constants.get)('space.1'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.1'), _sx.default);
69
69
 
70
70
  const TimelineBreak = _styledComponents.default.div.withConfig({
71
71
  displayName: "Timeline__TimelineBreak",
72
- componentId: "c4dq2e-3"
72
+ componentId: "sc-c4dq2e-3"
73
73
  })(["position:relative z-index:1;height:24px;margin:0;margin-bottom:-", ";margin-left:0;background-color:", ";border:0;border-top:", " solid ", ";", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('space.1'), (0, _constants.get)('colors.border.default'), _sx.default);
74
74
 
75
75
  TimelineItem.displayName = 'Timeline.Item';
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
27
27
 
28
28
  const AvatarContainer = _styledComponents.default.span.withConfig({
29
29
  displayName: "AvatarToken__AvatarContainer",
30
- componentId: "ubyudc-0"
30
+ componentId: "sc-ubyudc-0"
31
31
  })(["--spacing:calc(", " * 2);display:block;height:", ";width:", ";"], (0, _constants.get)('space.1'), props => `calc(${_TokenBase.tokenSizes[props.avatarSize]} - var(--spacing))`, props => `calc(${_TokenBase.tokenSizes[props.avatarSize]} - var(--spacing))`);
32
32
 
33
33
  const AvatarToken = /*#__PURE__*/(0, _react.forwardRef)(({
@@ -93,7 +93,7 @@ const TokenBase = _styledComponents.default.span.attrs(({
93
93
  'aria-label': onRemove ? `${text}, press backspace or delete to remove` : undefined
94
94
  })).withConfig({
95
95
  displayName: "TokenBase",
96
- componentId: "opajvp-0"
96
+ componentId: "sc-opajvp-0"
97
97
  })(["align-items:center;border-radius:999px;cursor:", ";display:inline-flex;font-weight:", ";font-family:inherit;text-decoration:none;white-space:nowrap;", " ", ""], props => isTokenInteractive(props) ? 'pointer' : 'auto', (0, _constants.get)('fontWeights.bold'), variants, _sx.default);
98
98
 
99
99
  TokenBase.defaultProps = {
package/lib/Tooltip.js CHANGED
@@ -21,7 +21,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
21
21
 
22
22
  const TooltipBase = _styledComponents.default.span.withConfig({
23
23
  displayName: "Tooltip__TooltipBase",
24
- componentId: "kp39nc-0"
24
+ componentId: "sc-kp39nc-0"
25
25
  })(["position:relative;&::before{position:absolute;z-index:1000001;display:none;width:0px;height:0px;color:", ";pointer-events:none;content:'';border:6px solid transparent;opacity:0;}&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ", ";-webkit-font-smoothing:subpixel-antialiased;color:", ";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:", ";border-radius:", ";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&:hover,&:active,&:focus{&::before,&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0.4s;}}&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus{&::before,&::after{animation-delay:0s;}}&.tooltipped-multiline:hover,&.tooltipped-multiline:active,&.tooltipped-multiline:focus{&::after{display:table-cell;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}&::before{top:auto;right:50%;bottom:-7px;margin-right:-6px;border-bottom-color:", ";}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-", ";}}&.tooltipped-sw::after{margin-right:-", ";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}&::before{top:-7px;right:50%;bottom:auto;margin-right:-6px;border-top-color:", ";}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-", ";}}&.tooltipped-nw::after{margin-right:-", ";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}&::before{top:50%;bottom:50%;left:-7px;margin-top:-6px;border-left-color:", ";}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}&::before{top:50%;right:-7px;bottom:50%;margin-top:-6px;border-right-color:", ";}}&.tooltipped-multiline{&::after{width:max-content;max-width:250px;word-wrap:break-word;white-space:pre-line;border-collapse:separate;}&.tooltipped-s::after,&.tooltipped-n::after{right:auto;left:50%;transform:translateX(-50%);}&.tooltipped-w::after,&.tooltipped-e::after{right:100%;}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-right-2::before{right:15px;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}&.tooltipped-align-left-2::before{left:10px;}", ";"], (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('fonts.normal'), (0, _constants.get)('colors.fg.onEmphasis'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('radii.1'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.neutral.emphasisPlus'), (0, _constants.get)('colors.neutral.emphasisPlus'), _sx.default);
26
26
 
27
27
  function Tooltip({
@@ -24,7 +24,7 @@ const SELECTED_CLASS = 'selected';
24
24
 
25
25
  const UnderlineNavBase = _styledComponents.default.nav.withConfig({
26
26
  displayName: "UnderlineNav__UnderlineNavBase",
27
- componentId: "zrnxqt-0"
27
+ componentId: "sc-zrnxqt-0"
28
28
  })(["display:flex;justify-content:space-between;border-bottom:1px solid ", ";&.UnderlineNav--right{justify-content:flex-end;.UnderlineNav-item{margin-right:0;margin-left:", ";}.UnderlineNav-actions{flex:1 1 auto;}}&.UnderlineNav--full{display:block;}.UnderlineNav-body{display:flex;margin-bottom:-1px;}.UnderlineNav-actions{align-self:center;}", ";"], (0, _constants.get)('colors.border.muted'), (0, _constants.get)('space.3'), _sx.default);
29
29
 
30
30
  function UnderlineNav({
@@ -56,7 +56,7 @@ const UnderlineNavLink = _styledComponents.default.a.attrs(props => ({
56
56
  className: (0, _classnames.default)(ITEM_CLASS, props.selected && SELECTED_CLASS, props.className)
57
57
  })).withConfig({
58
58
  displayName: "UnderlineNav__UnderlineNavLink",
59
- componentId: "zrnxqt-1"
59
+ componentId: "sc-zrnxqt-1"
60
60
  })(["padding:", " ", ";margin-right:", ";font-size:", ";line-height:", ";color:", ";text-align:center;border-bottom:2px solid transparent;text-decoration:none;&:hover,&:focus{color:", ";text-decoration:none;border-bottom-color:", ";transition:0.2s ease;.UnderlineNav-octicon{color:", ";}}&.selected{color:", ";border-bottom-color:", ";.UnderlineNav-octicon{color:", ";}}", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.2'), (0, _constants.get)('space.3'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('lineHeights.default'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.primer.border.active'), (0, _constants.get)('colors.fg.default'), _sx.default);
61
61
 
62
62
  UnderlineNavLink.displayName = 'UnderlineNav.Link';