@sproutsocial/racine 22.0.0 → 22.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 22.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3ff0f4c: Menu dependencies are now separate packages.
8
+
9
+ ### Patch Changes
10
+
11
+ - 4f94d34: Fix broken `active` prop on `Menu.Item` component
12
+
3
13
  ## 22.0.0
4
14
 
5
15
  ### Major Changes
package/README.md CHANGED
@@ -55,7 +55,8 @@ Racine uses [Storybook](https://storybook.js.org) for local development. Please
55
55
  Spin up a draft PR immediately for two reasons:
56
56
 
57
57
  1. We'll cache your build making all subsequent builds super fast
58
- 2. Add the "📦 create test versions" label to your PR to generate a beta version of the package to use for testing in other projects.
58
+ 2. Add the "📦 create test versions" label to your PR to generate a snapshot version of the package to use for testing in other projects.
59
+ 3. You'll need to be sure to add a changeset or a bot will comment on your PR prompting you to do so before a snapshot can be created.
59
60
 
60
61
  _Note: the snapshot will post as a comment on the PR once it has been generated._
61
62
 
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _seedsReactSystemProps = require("@sproutsocial/seeds-react-system-props");
10
10
  var _seedsReactMixins = require("@sproutsocial/seeds-react-mixins");
11
+ var _seedsReactIcon = require("@sproutsocial/seeds-react-icon");
11
12
  var _styles = _interopRequireDefault(require("../Icon/styles"));
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -15,7 +16,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
15
16
  var Container = _styledComponents.default.button.withConfig({
16
17
  displayName: "styles__Container",
17
18
  componentId: "sc-17njgx1-0"
18
- })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", "{vertical-align:text-bottom;}", " ", " ", " ", ""], function (props) {
19
+ })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", ",", "{vertical-align:text-bottom;}", " ", " ", " ", ""], function (props) {
19
20
  return props.theme.fontFamily;
20
21
  }, function (props) {
21
22
  return props.theme.colors.button[props.appearance].border.base;
@@ -53,6 +54,6 @@ var Container = _styledComponents.default.button.withConfig({
53
54
  return props.disabled && _seedsReactMixins.disabled;
54
55
  }, function (props) {
55
56
  return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;background-color:transparent;", " &:focus:active,&:hover{background-color:transparent;box-shadow:inset 0px 0px 0px 1px ", ";}"], _seedsReactMixins.pill, props.theme.colors.button.pill.border.hover);
56
- }, _styles.default, _seedsReactSystemProps.LAYOUT, _seedsReactSystemProps.COMMON, _seedsReactSystemProps.FLEXBOX, _seedsReactSystemProps.GRID);
57
+ }, _seedsReactIcon.IconContainer, _styles.default, _seedsReactSystemProps.LAYOUT, _seedsReactSystemProps.COMMON, _seedsReactSystemProps.FLEXBOX, _seedsReactSystemProps.GRID);
57
58
  Container.displayName = "Button-Container";
58
59
  var _default = exports.default = Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
@@ -8,8 +8,8 @@ var React = _interopRequireWildcard(require("react"));
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
  var _useInteractiveColor = require("../utils/useInteractiveColor");
10
10
  var _seedsReactUtilities = require("@sproutsocial/seeds-react-utilities");
11
- var _Button = _interopRequireDefault(require("../Button"));
12
- var _Icon = _interopRequireDefault(require("../Icon"));
11
+ var _seedsReactButton = _interopRequireDefault(require("@sproutsocial/seeds-react-button"));
12
+ var _seedsReactIcon = _interopRequireDefault(require("@sproutsocial/seeds-react-icon"));
13
13
  var _styles = _interopRequireWildcard(require("./styles"));
14
14
  var _excluded = ["autoComplete", "autoFocus", "disabled", "readOnly", "isInvalid", "hasWarning", "id", "name", "placeholder", "type", "required", "value", "elemBefore", "elemAfter", "maxLength", "ariaLabel", "ariaDescribedby", "clearButtonLabel", "innerRef", "onBlur", "onChange", "onClear", "onFocus", "onKeyDown", "onKeyUp", "onPaste", "inputProps", "qa", "appearance", "size"];
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -36,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
36
36
  // regardless of whether it is manually included as elemAfter or automatically included for type="search" Inputs.
37
37
 
38
38
  var InputContext = /*#__PURE__*/React.createContext({});
39
- var StyledButton = (0, _styledComponents.default)(_Button.default).withConfig({
39
+ var StyledButton = (0, _styledComponents.default)(_seedsReactButton.default).withConfig({
40
40
  displayName: "Input__StyledButton",
41
41
  componentId: "sc-j6ok5s-0"
42
42
  })(["&:hover,&:active{color:", ";}"], function (props) {
@@ -73,7 +73,7 @@ var ClearButton = function ClearButton() {
73
73
  title: clearButtonLabel || "Clear",
74
74
  ariaLabel: clearButtonLabel || "Clear",
75
75
  color: "icon.base"
76
- }, /*#__PURE__*/React.createElement(_Icon.default, {
76
+ }, /*#__PURE__*/React.createElement(_seedsReactIcon.default, {
77
77
  name: "circle-x-outline",
78
78
  "aria-hidden": true
79
79
  }));
@@ -218,7 +218,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
218
218
  }
219
219
 
220
220
  // Add default elemBefore and elemAfter elements if type is search.
221
- var elementBefore = type === "search" && !elemBefore ? /*#__PURE__*/React.createElement(_Icon.default, {
221
+ var elementBefore = type === "search" && !elemBefore ? /*#__PURE__*/React.createElement(_seedsReactIcon.default, {
222
222
  name: "magnifying-glass-outline",
223
223
  "aria-hidden": true,
224
224
  color: "icon.base"
@@ -14,7 +14,7 @@ var _innerText = _interopRequireDefault(require("../utils/innerText"));
14
14
  var _seedsReactMixins = require("@sproutsocial/seeds-react-mixins");
15
15
  var _Box = _interopRequireDefault(require("../Box"));
16
16
  var _Button = _interopRequireDefault(require("../Button"));
17
- var _Checkbox = _interopRequireDefault(require("../Checkbox"));
17
+ var _seedsReactCheckbox = _interopRequireDefault(require("@sproutsocial/seeds-react-checkbox"));
18
18
  var _Icon = _interopRequireDefault(require("../Icon"));
19
19
  var _Input = _interopRequireDefault(require("../Input"));
20
20
  var _Popout = _interopRequireDefault(require("../Popout"));
@@ -23,7 +23,7 @@ var _Switch = _interopRequireDefault(require("../Switch"));
23
23
  var _Text = _interopRequireDefault(require("../Text"));
24
24
  var _utils = require("./utils");
25
25
  var _styles = require("./styles");
26
- var _excluded = ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label"],
26
+ var _excluded = ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label", "active"],
27
27
  _excluded2 = ["placement", "labelProps", "switchProps", "children", "id", "label"],
28
28
  _excluded3 = ["children", "title", "titleAs", "disabled"],
29
29
  _excluded4 = ["type"],
@@ -84,6 +84,7 @@ var MenuItem = exports.MenuItem = function MenuItem(_ref) {
84
84
  disabled = _ref.disabled,
85
85
  indeterminate = _ref.indeterminate,
86
86
  labelProp = _ref.label,
87
+ activeProp = _ref.active,
87
88
  props = _objectWithoutProperties(_ref, _excluded);
88
89
  var _useContext = (0, _react.useContext)(_utils.MenuContext),
89
90
  menuRole = _useContext.role,
@@ -124,6 +125,9 @@ var MenuItem = exports.MenuItem = function MenuItem(_ref) {
124
125
  _useState2 = _slicedToArray(_useState, 2),
125
126
  keyPressed = _useState2[0],
126
127
  setKeyPressed = _useState2[1];
128
+ var isActive = (0, _react.useMemo)(function () {
129
+ return activeProp || isFocused && keyPressed;
130
+ }, [activeProp, isFocused, keyPressed]);
127
131
  var isCheckboxOrRadio = [_utils.MENU_ITEM_ROLES.CHECKBOX, _utils.MENU_ITEM_ROLES.RADIO
128
132
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
133
  ].includes(itemRole); // @ts-notes @refactor - since we're only really checking against the string I think we can safely leave this for refactor, nothing else worked for me
@@ -164,7 +168,7 @@ var MenuItem = exports.MenuItem = function MenuItem(_ref) {
164
168
  var before = (0, _react.useMemo)(function () {
165
169
  if (elemBefore) return elemBefore;
166
170
  if (itemRole === _utils.MENU_ITEM_ROLES.CHECKBOX) {
167
- return /*#__PURE__*/React.createElement(_Checkbox.default, {
171
+ return /*#__PURE__*/React.createElement(_seedsReactCheckbox.default, {
168
172
  id: "Checkbox-".concat(id),
169
173
  checked: isSelected,
170
174
  "aria-hidden": "true",
@@ -197,7 +201,8 @@ var MenuItem = exports.MenuItem = function MenuItem(_ref) {
197
201
  return /*#__PURE__*/React.createElement(_styles.MenuItemContainer, _extends({
198
202
  "data-qa-menu-item": label
199
203
  }, props, {
200
- active: isFocused && keyPressed,
204
+ active: isActive,
205
+ "data-qa-is-active": isActive,
201
206
  id: id,
202
207
  "aria-label": labelProp,
203
208
  value: valueProp,
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  var _Avatar = _interopRequireDefault(require("../Avatar"));
10
10
  var _Button = _interopRequireDefault(require("../Button"));
11
- var _Checkbox = _interopRequireDefault(require("../Checkbox"));
11
+ var _seedsReactCheckbox = _interopRequireDefault(require("@sproutsocial/seeds-react-checkbox"));
12
12
  var _styles = _interopRequireWildcard(require("./styles"));
13
13
  var _constants = require("./constants");
14
14
  var _excluded = ["children", "density", "borderColor", "bg", "indentContent", "innerRef", "qa"];
@@ -138,7 +138,7 @@ Message.Avatar = MessageAvatar;
138
138
  var MessageCheckbox = function MessageCheckbox(props) {
139
139
  return /*#__PURE__*/React.createElement(MessageContext.Consumer, null, function (_ref7) {
140
140
  var density = _ref7.density;
141
- return /*#__PURE__*/React.createElement(_Checkbox.default, _extends({
141
+ return /*#__PURE__*/React.createElement(_seedsReactCheckbox.default, _extends({
142
142
  appearance: "pill"
143
143
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
144
144
  // @ts-ignore - `density` is not a valid prop for `Checkbox`
package/commonjs/index.js CHANGED
@@ -70,15 +70,15 @@ Object.defineProperty(exports, "useTextContent", {
70
70
  });
71
71
  var _seedsIllustrations = require("@sproutsocial/seeds-illustrations");
72
72
  var _seedsPartnerLogos = require("@sproutsocial/seeds-partner-logos");
73
- var _systemProps = require("./systemProps");
74
- Object.keys(_systemProps).forEach(function (key) {
73
+ var _seedsReactSystemProps = require("@sproutsocial/seeds-react-system-props");
74
+ Object.keys(_seedsReactSystemProps).forEach(function (key) {
75
75
  if (key === "default" || key === "__esModule") return;
76
76
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
77
- if (key in exports && exports[key] === _systemProps[key]) return;
77
+ if (key in exports && exports[key] === _seedsReactSystemProps[key]) return;
78
78
  Object.defineProperty(exports, key, {
79
79
  enumerable: true,
80
80
  get: function get() {
81
- return _systemProps[key];
81
+ return _seedsReactSystemProps[key];
82
82
  }
83
83
  });
84
84
  });
@@ -168,15 +168,15 @@ Object.keys(_Breadcrumb).forEach(function (key) {
168
168
  }
169
169
  });
170
170
  });
171
- var _Button = require("./Button");
172
- Object.keys(_Button).forEach(function (key) {
171
+ var _seedsReactButton = require("@sproutsocial/seeds-react-button");
172
+ Object.keys(_seedsReactButton).forEach(function (key) {
173
173
  if (key === "default" || key === "__esModule") return;
174
174
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
175
- if (key in exports && exports[key] === _Button[key]) return;
175
+ if (key in exports && exports[key] === _seedsReactButton[key]) return;
176
176
  Object.defineProperty(exports, key, {
177
177
  enumerable: true,
178
178
  get: function get() {
179
- return _Button[key];
179
+ return _seedsReactButton[key];
180
180
  }
181
181
  });
182
182
  });
@@ -216,15 +216,15 @@ Object.keys(_ChartLegend).forEach(function (key) {
216
216
  }
217
217
  });
218
218
  });
219
- var _Checkbox = require("./Checkbox");
220
- Object.keys(_Checkbox).forEach(function (key) {
219
+ var _seedsReactCheckbox = require("@sproutsocial/seeds-react-checkbox");
220
+ Object.keys(_seedsReactCheckbox).forEach(function (key) {
221
221
  if (key === "default" || key === "__esModule") return;
222
222
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
223
- if (key in exports && exports[key] === _Checkbox[key]) return;
223
+ if (key in exports && exports[key] === _seedsReactCheckbox[key]) return;
224
224
  Object.defineProperty(exports, key, {
225
225
  enumerable: true,
226
226
  get: function get() {
227
- return _Checkbox[key];
227
+ return _seedsReactCheckbox[key];
228
228
  }
229
229
  });
230
230
  });
@@ -300,15 +300,15 @@ Object.keys(_FormField).forEach(function (key) {
300
300
  }
301
301
  });
302
302
  });
303
- var _Icon = require("./Icon");
304
- Object.keys(_Icon).forEach(function (key) {
303
+ var _seedsReactIcon = require("@sproutsocial/seeds-react-icon");
304
+ Object.keys(_seedsReactIcon).forEach(function (key) {
305
305
  if (key === "default" || key === "__esModule") return;
306
306
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
307
- if (key in exports && exports[key] === _Icon[key]) return;
307
+ if (key in exports && exports[key] === _seedsReactIcon[key]) return;
308
308
  Object.defineProperty(exports, key, {
309
309
  enumerable: true,
310
310
  get: function get() {
311
- return _Icon[key];
311
+ return _seedsReactIcon[key];
312
312
  }
313
313
  });
314
314
  });
@@ -336,15 +336,15 @@ Object.keys(_Indicator).forEach(function (key) {
336
336
  }
337
337
  });
338
338
  });
339
- var _Input = require("./Input");
340
- Object.keys(_Input).forEach(function (key) {
339
+ var _seedsReactInput = require("@sproutsocial/seeds-react-input");
340
+ Object.keys(_seedsReactInput).forEach(function (key) {
341
341
  if (key === "default" || key === "__esModule") return;
342
342
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
343
- if (key in exports && exports[key] === _Input[key]) return;
343
+ if (key in exports && exports[key] === _seedsReactInput[key]) return;
344
344
  Object.defineProperty(exports, key, {
345
345
  enumerable: true,
346
346
  get: function get() {
347
- return _Input[key];
347
+ return _seedsReactInput[key];
348
348
  }
349
349
  });
350
350
  });
@@ -468,39 +468,51 @@ Object.keys(_Numeral).forEach(function (key) {
468
468
  }
469
469
  });
470
470
  });
471
- var _PartnerLogo = require("./PartnerLogo");
472
- Object.keys(_PartnerLogo).forEach(function (key) {
471
+ var _seedsReactPartnerLogo = require("@sproutsocial/seeds-react-partner-logo");
472
+ Object.keys(_seedsReactPartnerLogo).forEach(function (key) {
473
473
  if (key === "default" || key === "__esModule") return;
474
474
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
475
- if (key in exports && exports[key] === _PartnerLogo[key]) return;
475
+ if (key in exports && exports[key] === _seedsReactPartnerLogo[key]) return;
476
476
  Object.defineProperty(exports, key, {
477
477
  enumerable: true,
478
478
  get: function get() {
479
- return _PartnerLogo[key];
479
+ return _seedsReactPartnerLogo[key];
480
480
  }
481
481
  });
482
482
  });
483
- var _Popout = require("./Popout");
484
- Object.keys(_Popout).forEach(function (key) {
483
+ var _seedsReactPopout = require("@sproutsocial/seeds-react-popout");
484
+ Object.keys(_seedsReactPopout).forEach(function (key) {
485
485
  if (key === "default" || key === "__esModule") return;
486
486
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
487
- if (key in exports && exports[key] === _Popout[key]) return;
487
+ if (key in exports && exports[key] === _seedsReactPopout[key]) return;
488
488
  Object.defineProperty(exports, key, {
489
489
  enumerable: true,
490
490
  get: function get() {
491
- return _Popout[key];
491
+ return _seedsReactPopout[key];
492
492
  }
493
493
  });
494
494
  });
495
- var _Radio = require("./Radio");
496
- Object.keys(_Radio).forEach(function (key) {
495
+ var _seedsReactPortal = require("@sproutsocial/seeds-react-portal");
496
+ Object.keys(_seedsReactPortal).forEach(function (key) {
497
497
  if (key === "default" || key === "__esModule") return;
498
498
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
499
- if (key in exports && exports[key] === _Radio[key]) return;
499
+ if (key in exports && exports[key] === _seedsReactPortal[key]) return;
500
500
  Object.defineProperty(exports, key, {
501
501
  enumerable: true,
502
502
  get: function get() {
503
- return _Radio[key];
503
+ return _seedsReactPortal[key];
504
+ }
505
+ });
506
+ });
507
+ var _seedsReactRadio = require("@sproutsocial/seeds-react-radio");
508
+ Object.keys(_seedsReactRadio).forEach(function (key) {
509
+ if (key === "default" || key === "__esModule") return;
510
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
511
+ if (key in exports && exports[key] === _seedsReactRadio[key]) return;
512
+ Object.defineProperty(exports, key, {
513
+ enumerable: true,
514
+ get: function get() {
515
+ return _seedsReactRadio[key];
504
516
  }
505
517
  });
506
518
  });
@@ -564,15 +576,15 @@ Object.keys(_Stack).forEach(function (key) {
564
576
  }
565
577
  });
566
578
  });
567
- var _Switch = require("./Switch");
568
- Object.keys(_Switch).forEach(function (key) {
579
+ var _seedsReactSwitch = require("@sproutsocial/seeds-react-switch");
580
+ Object.keys(_seedsReactSwitch).forEach(function (key) {
569
581
  if (key === "default" || key === "__esModule") return;
570
582
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
571
- if (key in exports && exports[key] === _Switch[key]) return;
583
+ if (key in exports && exports[key] === _seedsReactSwitch[key]) return;
572
584
  Object.defineProperty(exports, key, {
573
585
  enumerable: true,
574
586
  get: function get() {
575
- return _Switch[key];
587
+ return _seedsReactSwitch[key];
576
588
  }
577
589
  });
578
590
  });
@@ -636,15 +648,15 @@ Object.keys(_Tabs).forEach(function (key) {
636
648
  }
637
649
  });
638
650
  });
639
- var _Text = require("./Text");
640
- Object.keys(_Text).forEach(function (key) {
651
+ var _seedsReactText = require("@sproutsocial/seeds-react-text");
652
+ Object.keys(_seedsReactText).forEach(function (key) {
641
653
  if (key === "default" || key === "__esModule") return;
642
654
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
643
- if (key in exports && exports[key] === _Text[key]) return;
655
+ if (key in exports && exports[key] === _seedsReactText[key]) return;
644
656
  Object.defineProperty(exports, key, {
645
657
  enumerable: true,
646
658
  get: function get() {
647
- return _Text[key];
659
+ return _seedsReactText[key];
648
660
  }
649
661
  });
650
662
  });
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Button/styles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACrE,UAAU,oBAAqB,SAAQ,eAAe;IACpD,UAAU,EAAE,oBAAoB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,QAAA,MAAM,SAAS,8HA2Gd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Button/styles.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACrE,UAAU,oBAAqB,SAAQ,eAAe;IACpD,UAAU,EAAE,oBAAoB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,QAAA,MAAM,SAAS,8HA2Gd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,11 +3,11 @@ import type { TypeListboxProps, TypeListboxButtonProps } from "./ListboxTypes";
3
3
  export declare const Listbox: {
4
4
  ({ role, children, ...rest }: TypeListboxProps): JSX.Element;
5
5
  Option: {
6
- ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: import("../Menu").TypeMenuItemProps): JSX.Element;
6
+ ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, active: activeProp, ...props }: import("../Menu").TypeMenuItemProps): JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  Item: {
10
- ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: import("../Menu").TypeMenuItemProps): JSX.Element;
10
+ ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, active: activeProp, ...props }: import("../Menu").TypeMenuItemProps): JSX.Element;
11
11
  displayName: string;
12
12
  };
13
13
  Checkbox: {
@@ -31,7 +31,7 @@ export declare const Listbox: {
31
31
  displayName: string;
32
32
  };
33
33
  FilterInput: {
34
- ({ type, ...props }: import("..").TypeInputProps): JSX.Element;
34
+ ({ type, ...props }: import("../Input").TypeInputProps): JSX.Element;
35
35
  displayName: string;
36
36
  };
37
37
  };
@@ -3,7 +3,7 @@ import { TypeBoxProps } from "../Box";
3
3
  import { TypeInputProps } from "../Input";
4
4
  import type { TypeMenuButtonProps, TypeMenuGroupProps, TypeMenuItemProps, TypeMenuProps, TypeMenuSwitchProps } from "./MenuTypes";
5
5
  export declare const MenuItem: {
6
- ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: TypeMenuItemProps): JSX.Element;
6
+ ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, active: activeProp, ...props }: TypeMenuItemProps): JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export declare const MenuCheckbox: {
@@ -34,7 +34,7 @@ export declare const Menu: {
34
34
  displayName: string;
35
35
  };
36
36
  Item: {
37
- ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, ...props }: TypeMenuItemProps): JSX.Element;
37
+ ({ id: idProp, index: indexProp, as, children, role: roleProp, elemBefore, elemAfter, value: valueProp, onKeyPress, onClick, selected, disabled, indeterminate, label: labelProp, active: activeProp, ...props }: TypeMenuItemProps): JSX.Element;
38
38
  displayName: string;
39
39
  };
40
40
  Checkbox: {
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/Menu/Menu.tsx"],"names":[],"mappings":";AAcA,OAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,OAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAEjB,aAAa,EAEb,mBAAmB,EACpB,MAAM,aAAa,CAAC;AA8CrB,eAAO,MAAM,QAAQ;kMAgBlB,iBAAiB;;CAuLnB,CAAC;AACF,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAEpD,CAAC;AACF,eAAO,MAAM,SAAS;YAAW,iBAAiB;;CAEjD,CAAC;AAEF,eAAO,MAAM,UAAU;YAAW,mBAAmB;;CA8CpD,CAAC;AAUF,eAAO,MAAM,SAAS;mEAMnB,kBAAkB;;CA2BpB,CAAC;AAEF,eAAO,MAAM,WAAW;YAAW,YAAY;;CAQ9C,CAAC;AA4FF,eAAO,MAAM,IAAI;0FASd,aAAa;;;uEA1Ib,kBAAkB;;;;sMA7PlB,iBAAiB;;;;gBAwLgB,iBAAiB;;;;gBAGpB,iBAAiB;;;;gBAIhB,mBAAmB;;;;gBA2FlB,YAAY;;;;6BAUS,cAAc;;;CAuJrE,CAAC;AAuBF,eAAO,MAAM,UAAU,8GAWpB,mBAAmB,gBAwDrB,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/Menu/Menu.tsx"],"names":[],"mappings":";AAcA,OAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,OAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAKnD,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAEjB,aAAa,EAEb,mBAAmB,EACpB,MAAM,aAAa,CAAC;AA8CrB,eAAO,MAAM,QAAQ;sNAiBlB,iBAAiB;;CA4LnB,CAAC;AACF,eAAO,MAAM,YAAY;YAAW,iBAAiB;;CAEpD,CAAC;AACF,eAAO,MAAM,SAAS;YAAW,iBAAiB;;CAEjD,CAAC;AAEF,eAAO,MAAM,UAAU;YAAW,mBAAmB;;CA8CpD,CAAC;AAUF,eAAO,MAAM,SAAS;mEAMnB,kBAAkB;;CA2BpB,CAAC;AAEF,eAAO,MAAM,WAAW;YAAW,YAAY;;CAQ9C,CAAC;AA4FF,eAAO,MAAM,IAAI;0FASd,aAAa;;;uEA1Ib,kBAAkB;;;;0NAlQlB,iBAAiB;;;;gBA6LgB,iBAAiB;;;;gBAGpB,iBAAiB;;;;gBAIhB,mBAAmB;;;;gBA2FlB,YAAY;;;;6BAUS,cAAc;;;CAuJrE,CAAC;AAuBF,eAAO,MAAM,UAAU,8GAWpB,mBAAmB,gBAwDrB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { TypeAvatarProps } from "../Avatar";
3
3
  import { TypeButtonProps } from "../Button";
4
- import { TypeCheckboxProps } from "../Checkbox";
4
+ import { TypeCheckboxProps } from "@sproutsocial/seeds-react-checkbox";
5
5
  import { EnumDensities, TypeMessageProps } from "./MessageTypes";
6
6
  declare const Message: {
7
7
  ({ children, density, borderColor, bg, indentContent, innerRef, qa, ...rest }: TypeMessageProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtD,OAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtD,OAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAQ5D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA+BjE,QAAA,MAAM,OAAO;mFASV,gBAAgB;;gBAuBS,gBAAgB;;;;gBAiBd,gBAAgB;;;;gBAehB,gBAAgB;;;;gBAgBlB,gBAAgB;;;;gBAgBd,eAAe;;;;gBAOf,eAAe;;;;gBASb,iBAAiB;;;;iBA3HtC,aAAa;qBACT,gBAAgB,CAAC,aAAa,CAAC;aACvC,gBAAgB,CAAC,IAAI,CAAC;;;;;;;;;CAuC5B,CAAC;AAsGF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/Message/Message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtD,OAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtD,OAAiB,EACf,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAQ5C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA+BjE,QAAA,MAAM,OAAO;mFASV,gBAAgB;;gBAuBS,gBAAgB;;;;gBAiBd,gBAAgB;;;;gBAehB,gBAAgB;;;;gBAgBlB,gBAAgB;;;;gBAgBd,eAAe;;;;gBAOf,eAAe;;;;gBASb,iBAAiB;;;;iBA3HtC,aAAa;qBACT,gBAAgB,CAAC,aAAa,CAAC;aACvC,gBAAgB,CAAC,IAAI,CAAC;;;;;;;;;CAuC5B,CAAC;AAsGF,eAAe,OAAO,CAAC"}
@@ -3,7 +3,7 @@ export type { EnumIllustrationNames } from "@sproutsocial/seeds-illustrations";
3
3
  export type { EnumLogoNamesWithoutVariants as EnumLogoNames } from "@sproutsocial/seeds-partner-logos";
4
4
  export { IllustrationNames as SpotIllustrationNames } from "@sproutsocial/seeds-illustrations";
5
5
  export { LogoNamesWithoutVariants as PartnerLogoNames } from "@sproutsocial/seeds-partner-logos";
6
- export * from "./systemProps";
6
+ export * from "@sproutsocial/seeds-react-system-props";
7
7
  export * from "@sproutsocial/seeds-react-theme";
8
8
  export { default as ThemeProvider } from "@sproutsocial/seeds-react-theme-provider";
9
9
  export { useSelect, useMultiselect, useTextContent, useMeasure, useInteractiveColor, } from "@sproutsocial/seeds-react-hooks";
@@ -13,21 +13,21 @@ export * from "./Badge";
13
13
  export * from "./Banner";
14
14
  export * from "@sproutsocial/seeds-react-box";
15
15
  export * from "./Breadcrumb";
16
- export * from "./Button";
16
+ export * from "@sproutsocial/seeds-react-button";
17
17
  export * from "./Card";
18
18
  export * from "./CharacterCounter";
19
19
  export * from "./ChartLegend";
20
- export * from "./Checkbox";
20
+ export * from "@sproutsocial/seeds-react-checkbox";
21
21
  export * from "./Collapsible";
22
22
  export * from "./DatePicker";
23
23
  export * from "./Drawer";
24
24
  export * from "./EmptyState";
25
25
  export * from "./Fieldset";
26
26
  export * from "./FormField";
27
- export * from "./Icon";
27
+ export * from "@sproutsocial/seeds-react-icon";
28
28
  export * from "./Image";
29
29
  export * from "./Indicator";
30
- export * from "./Input";
30
+ export * from "@sproutsocial/seeds-react-input";
31
31
  export * from "./KeyboardKey";
32
32
  export * from "./Label";
33
33
  export * from "./Link";
@@ -38,21 +38,22 @@ export * from "./Menu";
38
38
  export * from "./Message";
39
39
  export * from "./Modal";
40
40
  export * from "./Numeral";
41
- export * from "./PartnerLogo";
42
- export * from "./Popout";
43
- export * from "./Radio";
41
+ export * from "@sproutsocial/seeds-react-partner-logo";
42
+ export * from "@sproutsocial/seeds-react-popout";
43
+ export * from "@sproutsocial/seeds-react-portal";
44
+ export * from "@sproutsocial/seeds-react-radio";
44
45
  export * from "./SegmentedControl";
45
46
  export * from "./Select";
46
47
  export * from "./Skeleton";
47
48
  export * from "./SpotIllustration";
48
49
  export * from "./Stack";
49
- export * from "./Switch";
50
+ export * from "@sproutsocial/seeds-react-switch";
50
51
  export * from "./Table";
51
52
  export * from "./TableCell";
52
53
  export * from "./TableHeaderCell";
53
54
  export * from "./TableRowAccordion";
54
55
  export * from "./Tabs";
55
- export * from "./Text";
56
+ export * from "@sproutsocial/seeds-react-text";
56
57
  export * from "./Textarea";
57
58
  export * from "./Toast";
58
59
  export * from "./ToggleHint";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,YAAY,EAAE,4BAA4B,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEvG,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,wBAAwB,IAAI,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGjG,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGpF,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AAEjC;;GAEG;AACH,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,YAAY,EAAE,4BAA4B,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEvG,OAAO,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EAAE,wBAAwB,IAAI,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGjG,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGpF,OAAO,EACL,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,kCAAkC,CAAC;AACjD,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AAEjC;;GAEG;AACH,OAAO,EAAE,MAAM,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { COMMON, LAYOUT, FLEXBOX, GRID } from "@sproutsocial/seeds-react-system-props";
3
3
  import { focusRing, disabled, pill } from "@sproutsocial/seeds-react-mixins";
4
+ import { IconContainer } from "@sproutsocial/seeds-react-icon";
4
5
  import Icon from "../Icon/styles";
5
6
  var Container = styled.button.withConfig({
6
7
  displayName: "styles__Container",
7
8
  componentId: "sc-17njgx1-0"
8
- })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", "{vertical-align:text-bottom;}", " ", " ", " ", ""], function (props) {
9
+ })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", ",", "{vertical-align:text-bottom;}", " ", " ", " ", ""], function (props) {
9
10
  return props.theme.fontFamily;
10
11
  }, function (props) {
11
12
  return props.theme.colors.button[props.appearance].border.base;
@@ -43,6 +44,6 @@ var Container = styled.button.withConfig({
43
44
  return props.disabled && disabled;
44
45
  }, function (props) {
45
46
  return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;background-color:transparent;", " &:focus:active,&:hover{background-color:transparent;box-shadow:inset 0px 0px 0px 1px ", ";}"], pill, props.theme.colors.button.pill.border.hover);
46
- }, Icon, LAYOUT, COMMON, FLEXBOX, GRID);
47
+ }, IconContainer, Icon, LAYOUT, COMMON, FLEXBOX, GRID);
47
48
  Container.displayName = "Button-Container";
48
49
  export default Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
@@ -20,8 +20,8 @@ import * as React from "react";
20
20
  import styled from "styled-components";
21
21
  import { useInteractiveColor } from "../utils/useInteractiveColor";
22
22
  import { mergeRefs } from "@sproutsocial/seeds-react-utilities";
23
- import Button from "../Button";
24
- import Icon from "../Icon";
23
+ import Button from "@sproutsocial/seeds-react-button";
24
+ import Icon from "@sproutsocial/seeds-react-icon";
25
25
  import Container, { Accessory } from "./styles";
26
26
 
27
27
  // Using Context so that Input's Input.ClearButton-specific props can be passed to Input.ClearButton,
package/lib/Menu/Menu.js CHANGED
@@ -1,6 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  import _styled from "styled-components";
3
- var _excluded = ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label"],
3
+ var _excluded = ["id", "index", "as", "children", "role", "elemBefore", "elemAfter", "value", "onKeyPress", "onClick", "selected", "disabled", "indeterminate", "label", "active"],
4
4
  _excluded2 = ["placement", "labelProps", "switchProps", "children", "id", "label"],
5
5
  _excluded3 = ["children", "title", "titleAs", "disabled"],
6
6
  _excluded4 = ["type"],
@@ -30,7 +30,7 @@ import innerText from "../utils/innerText";
30
30
  import { disabled } from "@sproutsocial/seeds-react-mixins";
31
31
  import Box from "../Box";
32
32
  import Button from "../Button";
33
- import Checkbox from "../Checkbox";
33
+ import Checkbox from "@sproutsocial/seeds-react-checkbox";
34
34
  import Icon from "../Icon";
35
35
  import Input from "../Input";
36
36
  import Popout from "../Popout";
@@ -77,6 +77,7 @@ export var MenuItem = function MenuItem(_ref) {
77
77
  disabled = _ref.disabled,
78
78
  indeterminate = _ref.indeterminate,
79
79
  labelProp = _ref.label,
80
+ activeProp = _ref.active,
80
81
  props = _objectWithoutProperties(_ref, _excluded);
81
82
  var _useContext = useContext(MenuContext),
82
83
  menuRole = _useContext.role,
@@ -117,6 +118,9 @@ export var MenuItem = function MenuItem(_ref) {
117
118
  _useState2 = _slicedToArray(_useState, 2),
118
119
  keyPressed = _useState2[0],
119
120
  setKeyPressed = _useState2[1];
121
+ var isActive = useMemo(function () {
122
+ return activeProp || isFocused && keyPressed;
123
+ }, [activeProp, isFocused, keyPressed]);
120
124
  var isCheckboxOrRadio = [MENU_ITEM_ROLES.CHECKBOX, MENU_ITEM_ROLES.RADIO
121
125
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
122
126
  ].includes(itemRole); // @ts-notes @refactor - since we're only really checking against the string I think we can safely leave this for refactor, nothing else worked for me
@@ -190,7 +194,8 @@ export var MenuItem = function MenuItem(_ref) {
190
194
  return /*#__PURE__*/React.createElement(MenuItemContainer, _extends({
191
195
  "data-qa-menu-item": label
192
196
  }, props, {
193
- active: isFocused && keyPressed,
197
+ active: isActive,
198
+ "data-qa-is-active": isActive,
194
199
  id: id,
195
200
  "aria-label": labelProp,
196
201
  value: valueProp,
@@ -5,7 +5,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
5
5
  import * as React from "react";
6
6
  import Avatar from "../Avatar";
7
7
  import Button from "../Button";
8
- import Checkbox from "../Checkbox";
8
+ import Checkbox from "@sproutsocial/seeds-react-checkbox";
9
9
  import Container, { MessageBody as StyledMessageBody, MessageFooter as StyledMessageFooter, MessageHeader as StyledMessageHeader, MessageMeta as StyledMessageMeta } from "./styles";
10
10
  import { MESSAGE_DENSITIES } from "./constants";
11
11
  var avatarSizeMap = function avatarSizeMap(density) {
package/lib/index.js CHANGED
@@ -4,7 +4,7 @@ export { IllustrationNames as SpotIllustrationNames } from "@sproutsocial/seeds-
4
4
  export { LogoNamesWithoutVariants as PartnerLogoNames } from "@sproutsocial/seeds-partner-logos";
5
5
 
6
6
  /* Theme and related types */
7
- export * from "./systemProps";
7
+ export * from "@sproutsocial/seeds-react-system-props";
8
8
  export * from "@sproutsocial/seeds-react-theme";
9
9
  export { default as ThemeProvider } from "@sproutsocial/seeds-react-theme-provider";
10
10
 
@@ -18,21 +18,21 @@ export * from "./Badge";
18
18
  export * from "./Banner";
19
19
  export * from "@sproutsocial/seeds-react-box";
20
20
  export * from "./Breadcrumb";
21
- export * from "./Button";
21
+ export * from "@sproutsocial/seeds-react-button";
22
22
  export * from "./Card";
23
23
  export * from "./CharacterCounter";
24
24
  export * from "./ChartLegend";
25
- export * from "./Checkbox";
25
+ export * from "@sproutsocial/seeds-react-checkbox";
26
26
  export * from "./Collapsible";
27
27
  export * from "./DatePicker";
28
28
  export * from "./Drawer";
29
29
  export * from "./EmptyState";
30
30
  export * from "./Fieldset";
31
31
  export * from "./FormField";
32
- export * from "./Icon";
32
+ export * from "@sproutsocial/seeds-react-icon";
33
33
  export * from "./Image";
34
34
  export * from "./Indicator";
35
- export * from "./Input";
35
+ export * from "@sproutsocial/seeds-react-input";
36
36
  export * from "./KeyboardKey";
37
37
  export * from "./Label";
38
38
  export * from "./Link";
@@ -43,21 +43,22 @@ export * from "./Menu";
43
43
  export * from "./Message";
44
44
  export * from "./Modal";
45
45
  export * from "./Numeral";
46
- export * from "./PartnerLogo";
47
- export * from "./Popout";
48
- export * from "./Radio";
46
+ export * from "@sproutsocial/seeds-react-partner-logo";
47
+ export * from "@sproutsocial/seeds-react-popout";
48
+ export * from "@sproutsocial/seeds-react-portal";
49
+ export * from "@sproutsocial/seeds-react-radio";
49
50
  export * from "./SegmentedControl";
50
51
  export * from "./Select";
51
52
  export * from "./Skeleton";
52
53
  export * from "./SpotIllustration";
53
54
  export * from "./Stack";
54
- export * from "./Switch";
55
+ export * from "@sproutsocial/seeds-react-switch";
55
56
  export * from "./Table";
56
57
  export * from "./TableCell";
57
58
  export * from "./TableHeaderCell";
58
59
  export * from "./TableRowAccordion";
59
60
  export * from "./Tabs";
60
- export * from "./Text";
61
+ export * from "@sproutsocial/seeds-react-text";
61
62
  export * from "./Textarea";
62
63
  export * from "./Toast";
63
64
  export * from "./ToggleHint";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "22.0.0",
3
+ "version": "22.1.0",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -57,6 +57,23 @@
57
57
  "ts-to-flow": "flowgen $FILE -o $OUTPUT --add-flow-header --no-module-exports"
58
58
  },
59
59
  "dependencies": {
60
+ "@sproutsocial/seeds-react-box": "^1.0.0",
61
+ "@sproutsocial/seeds-react-checkbox": "^1.0.0",
62
+ "@sproutsocial/seeds-react-input": "^1.0.0",
63
+ "@sproutsocial/seeds-react-text": "^1.0.0",
64
+ "@sproutsocial/seeds-react-radio": "^1.0.0",
65
+ "@sproutsocial/seeds-react-button": "^1.0.0",
66
+ "@sproutsocial/seeds-react-switch": "^1.0.0",
67
+ "@sproutsocial/seeds-react-hooks": "^2.0.0",
68
+ "@sproutsocial/seeds-react-icon": "^1.0.0",
69
+ "@sproutsocial/seeds-react-mixins": "^2.0.0",
70
+ "@sproutsocial/seeds-react-partner-logo": "^1.0.0",
71
+ "@sproutsocial/seeds-react-popout": "^1.0.0",
72
+ "@sproutsocial/seeds-react-portal": "^1.0.0",
73
+ "@sproutsocial/seeds-react-system-props": "^2.2.0",
74
+ "@sproutsocial/seeds-react-theme-provider": "^1.0.0",
75
+ "@sproutsocial/seeds-react-theme": "^1.0.0",
76
+ "@sproutsocial/seeds-react-utilities": "^2.0.0",
60
77
  "@styled-system/theme-get": "^5.1.2",
61
78
  "classnames": "^2.2.6",
62
79
  "default-browser-id": "^3.0.0",
@@ -89,6 +106,7 @@
89
106
  "@babel/preset-typescript": "^7.22.5",
90
107
  "@khanacademy/flow-to-ts": "^0.5.2",
91
108
  "@sproutsocial/eslint-config-seeds": "*",
109
+ "@sproutsocial/seeds-typography": "*",
92
110
  "@sproutsocial/seeds-border": "*",
93
111
  "@sproutsocial/seeds-color": "*",
94
112
  "@sproutsocial/seeds-depth": "*",
@@ -99,14 +117,6 @@
99
117
  "@sproutsocial/seeds-partner-logos": "*",
100
118
  "@sproutsocial/seeds-space": "*",
101
119
  "@sproutsocial/seeds-tsconfig": "*",
102
- "@sproutsocial/seeds-typography": "*",
103
- "@sproutsocial/seeds-react-box": "*",
104
- "@sproutsocial/seeds-react-hooks": "*",
105
- "@sproutsocial/seeds-react-mixins": "*",
106
- "@sproutsocial/seeds-react-system-props": "*",
107
- "@sproutsocial/seeds-react-theme-provider": "*",
108
- "@sproutsocial/seeds-react-theme": "*",
109
- "@sproutsocial/seeds-react-utilities": "*",
110
120
  "@storybook/addon-a11y": "^7.0.0",
111
121
  "@storybook/addon-actions": "^7.0.0",
112
122
  "@storybook/addon-essentials": "^7.0.0",
@@ -184,23 +194,16 @@
184
194
  "ws": "^8.13.0"
185
195
  },
186
196
  "peerDependencies": {
187
- "@sproutsocial/seeds-border": ">=0.3.0",
188
- "@sproutsocial/seeds-color": ">=2.1.0",
189
- "@sproutsocial/seeds-depth": ">=1.0.0",
190
- "@sproutsocial/seeds-icons": "^1.0.0",
191
- "@sproutsocial/seeds-motion": ">=1.1.0",
192
- "@sproutsocial/seeds-networkcolor": ">=2.14.0",
193
- "@sproutsocial/seeds-space": ">=0.4.0",
194
- "@sproutsocial/seeds-typography": ">=2.0.0",
195
- "@sproutsocial/seeds-partner-logos": ">=1.5.0",
196
- "@sproutsocial/seeds-illustrations": ">=1.3.0",
197
- "@sproutsocial/seeds-react-box": "^1.0.0",
198
- "@sproutsocial/seeds-react-hooks": "^2.0.0",
199
- "@sproutsocial/seeds-react-mixins": "^2.0.0",
200
- "@sproutsocial/seeds-react-system-props": "^2.0.0",
201
- "@sproutsocial/seeds-react-theme-provider": "^1.0.0",
202
- "@sproutsocial/seeds-react-theme": "^1.0.0",
203
- "@sproutsocial/seeds-react-utilities": "^2.0.0",
197
+ "@sproutsocial/seeds-typography": "*",
198
+ "@sproutsocial/seeds-border": "*",
199
+ "@sproutsocial/seeds-color": "*",
200
+ "@sproutsocial/seeds-depth": "*",
201
+ "@sproutsocial/seeds-icons": "*",
202
+ "@sproutsocial/seeds-illustrations": "*",
203
+ "@sproutsocial/seeds-motion": "*",
204
+ "@sproutsocial/seeds-networkcolor": "*",
205
+ "@sproutsocial/seeds-partner-logos": "*",
206
+ "@sproutsocial/seeds-space": "*",
204
207
  "moment": "^2.29.4",
205
208
  "prop-types": "^15.0.0",
206
209
  "react": "^16.8.0 || ^17.0.0",