@sproutsocial/racine 20.17.0 → 21.0.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/__flow__/Icon/Icon.flow.js +2 -2
  3. package/__flow__/PartnerLogo/PartnerLogo.flow.js +3 -3
  4. package/__flow__/SpotIllustration/SpotIllustration.flow.js +1 -1
  5. package/__flow__/index.flow.js +2 -2
  6. package/commonjs/Icon/Icon.js +2 -2
  7. package/commonjs/PartnerLogo/PartnerLogo.js +3 -3
  8. package/commonjs/PartnerLogo/PartnerLogoTypes.js +2 -3
  9. package/commonjs/SpotIllustration/SpotIllustration.js +3 -6
  10. package/commonjs/index.js +4 -4
  11. package/dist/types/Icon/IconTypes.d.ts +2 -2
  12. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  13. package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
  14. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +3 -3
  15. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  16. package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
  17. package/dist/types/SpotIllustration/SpotIllustrationTypes.d.ts +1 -1
  18. package/dist/types/SpotIllustration/SpotIllustrationTypes.d.ts.map +1 -1
  19. package/dist/types/index.d.ts +4 -4
  20. package/dist/types/index.d.ts.map +1 -1
  21. package/lib/Icon/Icon.js +1 -1
  22. package/lib/PartnerLogo/PartnerLogo.js +3 -3
  23. package/lib/PartnerLogo/PartnerLogoTypes.js +2 -3
  24. package/lib/SpotIllustration/SpotIllustration.js +4 -3
  25. package/lib/index.js +2 -2
  26. package/package.json +10 -9
  27. package/__flow__/EnumIllustrationNames.flow.js +0 -2
  28. package/__flow__/EnumLogoNames.flow.js +0 -2
  29. package/__flow__/IllustrationViewBoxes.js +0 -128
  30. package/__flow__/LogoViewBoxes.js +0 -120
  31. package/commonjs/EnumIllustrationNames.flow.js +0 -1
  32. package/commonjs/EnumIllustrationNames.js +0 -5
  33. package/commonjs/EnumLogoNames.flow.js +0 -1
  34. package/commonjs/EnumLogoNames.js +0 -5
  35. package/commonjs/IllustrationViewBoxes.js +0 -130
  36. package/commonjs/LogoViewBoxes.js +0 -122
  37. package/commonjs/illustrationNames.js +0 -7
  38. package/commonjs/logoNames.js +0 -7
  39. package/dist/illustration.svg +0 -1
  40. package/dist/illustrationList.js +0 -1
  41. package/dist/logo.svg +0 -1
  42. package/dist/logoList.js +0 -1
  43. package/dist/types/EnumIllustrationNames.d.ts +0 -2
  44. package/dist/types/EnumIllustrationNames.d.ts.map +0 -1
  45. package/dist/types/EnumLogoNames.d.ts +0 -2
  46. package/dist/types/EnumLogoNames.d.ts.map +0 -1
  47. package/dist/types/illustrationNames.d.ts +0 -3
  48. package/dist/types/illustrationNames.d.ts.map +0 -1
  49. package/dist/types/logoNames.d.ts +0 -3
  50. package/dist/types/logoNames.d.ts.map +0 -1
  51. package/lib/EnumIllustrationNames.flow.js +0 -0
  52. package/lib/EnumIllustrationNames.js +0 -1
  53. package/lib/EnumLogoNames.flow.js +0 -0
  54. package/lib/EnumLogoNames.js +0 -1
  55. package/lib/IllustrationViewBoxes.js +0 -128
  56. package/lib/LogoViewBoxes.js +0 -120
  57. package/lib/illustrationNames.js +0 -1
  58. package/lib/logoNames.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ ## 21.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 61ebd8a: **Breaking Change**:
8
+
9
+ Uses `@sproutsocial/seeds-partner-logos` for Partner Logo assets
10
+
11
+ Uses `@sproutsocial/seeds-illustrations` for Spot Illustration assets
12
+
13
+ - Partner logo assets are now stored in a new package called `@sproutsocial/seeds-partner-logos`.
14
+ - Spot illustration assets are now stored in a new package called `@sproutsocial/seeds-illustrations`.
15
+ - `@sproutsocial/seeds-partner-logos` and `@sproutsocial/seeds-illustrations` are now peer dependencies of Racine.
16
+ - Sprites: Instead of using logo.svg or illustration.svg from Racine’s dist/directory, the sprites should be imported from the respective packages. Attach these spritesheets to the DOM in the same way as the `@sproutsocial/seeds-icons` sprites.
17
+ - Dependencies: Add `@sproutsocial/seeds-partner-logos` and `@sproutsocial/seeds-illustrations` to your application’s dependencies.
18
+
3
19
  ## 20.17.0
4
20
 
5
21
  ### Minor Changes
@@ -2,7 +2,7 @@
2
2
  import * as React from "react";
3
3
  import type { StyledComponent } from "styled-components";
4
4
  import type { EnumIconNames } from "@sproutsocial/seeds-icons";
5
- import type { EnumLogoNames } from "../EnumLogoNames.flow";
5
+ import type { EnumLogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
6
6
  import type { TypeWithDisplayName } from "../types/shared.flow";
7
7
  import type { TypeTheme } from "../types/theme.flow";
8
8
  export type TypeIconSize = "mini" // 12x12
@@ -14,7 +14,7 @@ export type TypeIconSize = "mini" // 12x12
14
14
  | "jumbo"; // 64x64
15
15
 
16
16
  export type TypeIconNames = EnumIconNames;
17
- export type TypeIconName = TypeIconNames | EnumLogoNames;
17
+ export type TypeIconName = TypeIconNames | EnumLogoNamesWithoutVariants;
18
18
  export type TypeIconProps = {
19
19
  /** Name of the icon in the svg sprite */
20
20
  name: TypeIconName,
@@ -1,14 +1,14 @@
1
1
  // @flow
2
2
  import * as React from "react";
3
- import type { EnumLogoNames } from "../EnumLogoNames.flow";
3
+ import type { EnumLogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
4
4
 
5
5
  /**
6
6
  * @deprecated Use EnumLogoNames instead
7
7
  */
8
- export type TypePartnerNames = EnumLogoNames;
8
+ export type TypePartnerNames = EnumLogoNamesWithoutVariants;
9
9
  export type TypePartnerLogoProps = {
10
10
  /** The name of the partner whose logo you want to render. */
11
- partnerName: EnumLogoNames,
11
+ partnerName: EnumLogoNamesWithoutVariants,
12
12
  /** Manually override the default mode behavior by rendering a logo based on the background it's displayed on. */
13
13
  backgroundType?: "dark" | "light",
14
14
  logoType?: "symbol" | "wordmark" | "lockup",
@@ -1,6 +1,6 @@
1
1
  // @flow
2
2
  import * as React from "react";
3
- import type { EnumIllustrationNames } from "../EnumIllustrationNames.flow";
3
+ import type { EnumIllustrationNames } from "@sproutsocial/seeds-illustrations";
4
4
  export type TypeSpotIllustrationProps = {
5
5
  name: EnumIllustrationNames,
6
6
  customFill?: "red" | "green" | "yellow" | "magenta" | "purple" | "aqua",
@@ -2,8 +2,8 @@
2
2
 
3
3
  /* Asset types */
4
4
  export type { EnumIconNames } from "@sproutsocial/seeds-icons";
5
- export type { EnumIllustrationNames } from "./EnumIllustrationNames.flow";
6
- export type { EnumLogoNames } from "./EnumLogoNames.flow";
5
+ export type { EnumIllustrationNames } from "@sproutsocial/seeds-illustrations";
6
+ export type { EnumLogoNamesWithoutVariants as EnumLogoNames } from "@sproutsocial/seeds-partner-logos";
7
7
 
8
8
  /* Theme and related types */
9
9
  export * from "./systemProps/index.flow";
@@ -9,7 +9,7 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _Box = _interopRequireDefault(require("../Box"));
10
10
  var _PartnerLogo = _interopRequireDefault(require("../PartnerLogo"));
11
11
  var _utils = require("../utils");
12
- var _logoNames = _interopRequireDefault(require("../logoNames"));
12
+ var _seedsPartnerLogos = require("@sproutsocial/seeds-partner-logos");
13
13
  var _styles = _interopRequireDefault(require("./styles"));
14
14
  var _seedsIcons = require("@sproutsocial/seeds-icons");
15
15
  var _excluded = ["name", "size", "fixedWidth", "ariaLabel", "color", "svgProps"],
@@ -37,7 +37,7 @@ var Icon = function Icon(_ref) {
37
37
  color = _ref.color,
38
38
  svgProps = _ref.svgProps,
39
39
  rest = _objectWithoutProperties(_ref, _excluded);
40
- if ((0, _utils.includes)(_logoNames.default, name)) {
40
+ if ((0, _utils.includes)(_seedsPartnerLogos.LogoNamesWithoutVariants, name)) {
41
41
  // Icon's "default" size is equivalent to PartnerLogo's "small" size
42
42
  var logoSize = size === "default" ? "small" : size;
43
43
  var logoProps = {
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _styledComponents = require("styled-components");
9
- var _LogoViewBoxes = _interopRequireDefault(require("../LogoViewBoxes"));
10
9
  var _styles = _interopRequireDefault(require("./styles"));
10
+ var _seedsPartnerLogos = require("@sproutsocial/seeds-partner-logos");
11
11
  var _excluded = ["partnerName", "backgroundType", "logoType", "height", "width", "size", "aria-label", "svgProps"];
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
@@ -46,7 +46,7 @@ var PartnerLogo = function PartnerLogo(_ref2) {
46
46
  logoType: logoType,
47
47
  partnerName: partnerName
48
48
  }, mode);
49
- var logoViewBox = _LogoViewBoxes.default[logo];
49
+ var logoViewBox = _seedsPartnerLogos.ViewBoxes[logo];
50
50
  var viewBoxCoordinates = (logoViewBox === null || logoViewBox === void 0 ? void 0 : logoViewBox.split(" ")) || [];
51
51
  var defaultWidth = viewBoxCoordinates[2];
52
52
  var defaultHeight = viewBoxCoordinates[3];
@@ -66,7 +66,7 @@ var PartnerLogo = function PartnerLogo(_ref2) {
66
66
  "data-qa-logo-svg": "".concat(partnerName, "-svg")
67
67
  }, svgProps), /*#__PURE__*/_react.default.createElement("use", {
68
68
  xmlnsXlink: "http://www.w3.org/1999/xlink",
69
- xlinkHref: "#sslogosvg-".concat(logo)
69
+ xlinkHref: "#seeds-svgs_".concat(logo)
70
70
  })));
71
71
  };
72
72
  var _default = exports.default = PartnerLogo;
@@ -4,12 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.PartnerNames = exports.PartnerLogoTypes = exports.PartnerLogoSizes = void 0;
7
- var _logoNames = _interopRequireDefault(require("../logoNames"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7
+ var _seedsPartnerLogos = require("@sproutsocial/seeds-partner-logos");
9
8
  /**
10
9
  * @deprecated Use PartnerLogoNames instead
11
10
  */
12
- var PartnerNames = exports.PartnerNames = _logoNames.default;
11
+ var PartnerNames = exports.PartnerNames = _seedsPartnerLogos.LogoNamesWithoutVariants;
13
12
 
14
13
  /**
15
14
  * @deprecated Use EnumLogoNames instead
@@ -1,16 +1,13 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.default = void 0;
8
7
  var _react = _interopRequireDefault(require("react"));
9
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
- var illustrationViewBoxes = _interopRequireWildcard(require("../IllustrationViewBoxes"));
9
+ var _seedsIllustrations = require("@sproutsocial/seeds-illustrations");
11
10
  var _excluded = ["name", "customFill", "height", "width"]; // eslint-disable-next-line no-restricted-syntax
12
- 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); }
13
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
12
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
16
13
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
@@ -29,7 +26,7 @@ var SpotIllustration = function SpotIllustration(_ref) {
29
26
  height = _ref.height,
30
27
  width = _ref.width,
31
28
  svgProps = _objectWithoutProperties(_ref, _excluded);
32
- var viewBox = illustrationViewBoxes[name];
29
+ var viewBox = _seedsIllustrations.ViewBoxes[name];
33
30
  var viewBoxCoordinates = (viewBox === null || viewBox === void 0 ? void 0 : viewBox.split(" ")) || [];
34
31
  var defaultWidth = viewBoxCoordinates[2];
35
32
  var defaultHeight = viewBoxCoordinates[3];
@@ -42,7 +39,7 @@ var SpotIllustration = function SpotIllustration(_ref) {
42
39
  customFill: customFill
43
40
  }, svgProps), /*#__PURE__*/_react.default.createElement("use", {
44
41
  xmlnsXlink: "http://www.w3.org/1999/xlink",
45
- xlinkHref: "#ssillustrationsvg-".concat(name)
42
+ xlinkHref: "#seeds-svgs_".concat(name)
46
43
  }));
47
44
  };
48
45
  var _default = exports.default = SpotIllustration;
package/commonjs/index.js CHANGED
@@ -30,13 +30,13 @@ Object.defineProperty(exports, "Alert", {
30
30
  Object.defineProperty(exports, "PartnerLogoNames", {
31
31
  enumerable: true,
32
32
  get: function get() {
33
- return _logoNames.default;
33
+ return _seedsPartnerLogos.LogoNamesWithoutVariants;
34
34
  }
35
35
  });
36
36
  Object.defineProperty(exports, "SpotIllustrationNames", {
37
37
  enumerable: true,
38
38
  get: function get() {
39
- return _illustrationNames.default;
39
+ return _seedsIllustrations.IllustrationNames;
40
40
  }
41
41
  });
42
42
  Object.defineProperty(exports, "ThemeProvider", {
@@ -117,8 +117,8 @@ Object.defineProperty(exports, "visuallyHidden", {
117
117
  return _mixins.visuallyHidden;
118
118
  }
119
119
  });
120
- var _illustrationNames = _interopRequireDefault(require("./illustrationNames"));
121
- var _logoNames = _interopRequireDefault(require("./logoNames"));
120
+ var _seedsIllustrations = require("@sproutsocial/seeds-illustrations");
121
+ var _seedsPartnerLogos = require("@sproutsocial/seeds-partner-logos");
122
122
  var _systemProps = require("./systemProps");
123
123
  Object.keys(_systemProps).forEach(function (key) {
124
124
  if (key === "default" || key === "__esModule") return;
@@ -1,10 +1,10 @@
1
1
  import * as React from "react";
2
2
  import type { EnumIconNames } from "@sproutsocial/seeds-icons";
3
- import type { EnumLogoNames } from "../EnumLogoNames";
3
+ import type { EnumLogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
4
4
  import type { TypeStyledComponentsCommonProps } from "../types/styled-components";
5
5
  import type { TypeSystemCommonProps } from "../types/system-props";
6
6
  import { TypeBoxProps } from "../Box";
7
- export type TypeIconName = EnumIconNames | EnumLogoNames;
7
+ export type TypeIconName = EnumIconNames | EnumLogoNamesWithoutVariants;
8
8
  export type TypeIconSize = "mini" | "default" | "small" | "medium" | "large" | "jumbo";
9
9
  export interface TypeIconProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<"span">, "color"> {
10
10
  /** Name of the icon in the svg sprite */
@@ -1 +1 @@
1
- {"version":3,"file":"IconTypes.d.ts","sourceRoot":"","sources":["../../../src/Icon/IconTypes.ts"],"names":[],"mappings":"AAAA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","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAyB1D,QAAA,MAAM,WAAW,+GAUd,oBAAoB,gBAiCtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"PartnerLogo.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogo.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AA0B1D,QAAA,MAAM,WAAW,+GAUd,oBAAoB,gBAiCtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import type { EnumLogoNames } from "../EnumLogoNames";
2
+ import type { EnumLogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
3
3
  import type { TypeStyledComponentsCommonProps } from "../types/styled-components";
4
4
  import type { TypeSystemCommonProps, TypeSystemFlexboxProps } from "../types/system-props";
5
5
  /**
@@ -9,7 +9,7 @@ export declare const PartnerNames: readonly ["adobe-experience-manager", "androi
9
9
  /**
10
10
  * @deprecated Use EnumLogoNames instead
11
11
  */
12
- export type TypePartnerNames = EnumLogoNames;
12
+ export type TypePartnerNames = EnumLogoNamesWithoutVariants;
13
13
  export declare const PartnerLogoSizes: {
14
14
  readonly mini: "12px";
15
15
  readonly small: "16px";
@@ -22,7 +22,7 @@ export declare const PartnerLogoTypes: readonly ["symbol", "wordmark", "lockup"]
22
22
  export type TypePartnerLogoTypes = typeof PartnerLogoTypes[number];
23
23
  export interface TypePartnerLogoProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, TypeSystemFlexboxProps, Omit<React.ComponentPropsWithoutRef<"span">, "color"> {
24
24
  /** The name of the partner whose logo you want to render. */
25
- partnerName: EnumLogoNames;
25
+ partnerName: EnumLogoNamesWithoutVariants;
26
26
  /** Manually override the default mode behavior by rendering a logo based on the background it's displayed on. */
27
27
  backgroundType?: "dark" | "light";
28
28
  logoType?: TypePartnerLogoTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"PartnerLogoTypes.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogoTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAGjC;;GAEG;AACH,eAAO,MAAM,YAAY,8tBAAmB,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEhE,eAAO,MAAM,gBAAgB,2CAA4C,CAAC;AAE1E,MAAM,MAAM,oBAAoB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,WAAW,oBACf,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,sBAAsB,EACtB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IACvD,6DAA6D;IAC7D,WAAW,EAAE,aAAa,CAAC;IAE3B,iHAAiH;IACjH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;CAClD"}
1
+ {"version":3,"file":"PartnerLogoTypes.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogoTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,YAAY,8tBAA2B,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,4BAA4B,CAAC;AAE5D,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEhE,eAAO,MAAM,gBAAgB,2CAA4C,CAAC;AAE1E,MAAM,MAAM,oBAAoB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEnE,MAAM,WAAW,oBACf,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,sBAAsB,EACtB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IACvD,6DAA6D;IAC7D,WAAW,EAAE,4BAA4B,CAAC;IAE1C,iHAAiH;IACjH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;CAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"SpotIllustration.d.ts","sourceRoot":"","sources":["../../../src/SpotIllustration/SpotIllustration.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAYpE,QAAA,MAAM,gBAAgB,qDAMnB,yBAAyB,gBAqB3B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"SpotIllustration.d.ts","sourceRoot":"","sources":["../../../src/SpotIllustration/SpotIllustration.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAapE,QAAA,MAAM,gBAAgB,qDAMnB,yBAAyB,gBAqB3B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import type { EnumIllustrationNames } from "../EnumIllustrationNames";
2
+ import type { EnumIllustrationNames } from "@sproutsocial/seeds-illustrations";
3
3
  export interface TypeSpotIllustrationProps extends React.ComponentPropsWithoutRef<"svg"> {
4
4
  name: EnumIllustrationNames;
5
5
  customFill?: "red" | "green" | "yellow" | "magenta" | "purple" | "aqua";
@@ -1 +1 @@
1
- {"version":3,"file":"SpotIllustrationTypes.d.ts","sourceRoot":"","sources":["../../../src/SpotIllustration/SpotIllustrationTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,MAAM,WAAW,yBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC7C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"SpotIllustrationTypes.d.ts","sourceRoot":"","sources":["../../../src/SpotIllustration/SpotIllustrationTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,MAAM,WAAW,yBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC7C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -1,8 +1,8 @@
1
1
  export type { EnumIconNames } from "@sproutsocial/seeds-icons";
2
- export type { EnumIllustrationNames } from "./EnumIllustrationNames";
3
- export type { EnumLogoNames } from "./EnumLogoNames";
4
- export { default as SpotIllustrationNames } from "./illustrationNames";
5
- export { default as PartnerLogoNames } from "./logoNames";
2
+ export type { EnumIllustrationNames } from "@sproutsocial/seeds-illustrations";
3
+ export type { EnumLogoNamesWithoutVariants as EnumLogoNames } from "@sproutsocial/seeds-partner-logos";
4
+ export { IllustrationNames as SpotIllustrationNames } from "@sproutsocial/seeds-illustrations";
5
+ export { LogoNamesWithoutVariants as PartnerLogoNames } from "@sproutsocial/seeds-partner-logos";
6
6
  export * from "./systemProps";
7
7
  export { default as theme } from "./themes/light/theme";
8
8
  export { default as darkTheme } from "./themes/dark/theme";
@@ -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,yBAAyB,CAAC;AACrE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAg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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"}
package/lib/Icon/Icon.js CHANGED
@@ -14,7 +14,7 @@ import styled, { css } from "styled-components";
14
14
  import Box from "../Box";
15
15
  import PartnerLogo from "../PartnerLogo";
16
16
  import { includes } from "../utils";
17
- import PartnerLogoNames from "../logoNames";
17
+ import { LogoNamesWithoutVariants as PartnerLogoNames } from "@sproutsocial/seeds-partner-logos";
18
18
  import Container from "./styles";
19
19
  import { ExternalViewBoxes, GeneralViewBoxes, SproutViewBoxes, ExternalIconNames } from "@sproutsocial/seeds-icons";
20
20
  var AllViewboxes = _objectSpread(_objectSpread(_objectSpread({}, ExternalViewBoxes), GeneralViewBoxes), SproutViewBoxes);
@@ -4,8 +4,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
4
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
5
  import React from "react";
6
6
  import { useTheme } from "styled-components";
7
- import logoViewBoxes from "../LogoViewBoxes";
8
7
  import Container from "./styles";
8
+ import { ViewBoxes } from "@sproutsocial/seeds-partner-logos";
9
9
  var whichLogo = function whichLogo(_ref, mode) {
10
10
  var backgroundType = _ref.backgroundType,
11
11
  logoType = _ref.logoType,
@@ -39,7 +39,7 @@ var PartnerLogo = function PartnerLogo(_ref2) {
39
39
  logoType: logoType,
40
40
  partnerName: partnerName
41
41
  }, mode);
42
- var logoViewBox = logoViewBoxes[logo];
42
+ var logoViewBox = ViewBoxes[logo];
43
43
  var viewBoxCoordinates = (logoViewBox === null || logoViewBox === void 0 ? void 0 : logoViewBox.split(" ")) || [];
44
44
  var defaultWidth = viewBoxCoordinates[2];
45
45
  var defaultHeight = viewBoxCoordinates[3];
@@ -59,7 +59,7 @@ var PartnerLogo = function PartnerLogo(_ref2) {
59
59
  "data-qa-logo-svg": "".concat(partnerName, "-svg")
60
60
  }, svgProps), /*#__PURE__*/React.createElement("use", {
61
61
  xmlnsXlink: "http://www.w3.org/1999/xlink",
62
- xlinkHref: "#sslogosvg-".concat(logo)
62
+ xlinkHref: "#seeds-svgs_".concat(logo)
63
63
  })));
64
64
  };
65
65
  export default PartnerLogo;
@@ -1,9 +1,8 @@
1
- import PartnerLogoNames from "../logoNames";
2
-
1
+ import { LogoNamesWithoutVariants } from "@sproutsocial/seeds-partner-logos";
3
2
  /**
4
3
  * @deprecated Use PartnerLogoNames instead
5
4
  */
6
- export var PartnerNames = PartnerLogoNames;
5
+ export var PartnerNames = LogoNamesWithoutVariants;
7
6
 
8
7
  /**
9
8
  * @deprecated Use EnumLogoNames instead
@@ -5,7 +5,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
5
5
  import React from "react";
6
6
  import styled from "styled-components";
7
7
  // eslint-disable-next-line no-restricted-syntax
8
- import * as illustrationViewBoxes from "../IllustrationViewBoxes";
8
+
9
+ import { ViewBoxes } from "@sproutsocial/seeds-illustrations";
9
10
  var StyledSVG = styled.svg.withConfig({
10
11
  displayName: "SpotIllustration__StyledSVG",
11
12
  componentId: "sc-1j3815-0"
@@ -20,7 +21,7 @@ var SpotIllustration = function SpotIllustration(_ref) {
20
21
  height = _ref.height,
21
22
  width = _ref.width,
22
23
  svgProps = _objectWithoutProperties(_ref, _excluded);
23
- var viewBox = illustrationViewBoxes[name];
24
+ var viewBox = ViewBoxes[name];
24
25
  var viewBoxCoordinates = (viewBox === null || viewBox === void 0 ? void 0 : viewBox.split(" ")) || [];
25
26
  var defaultWidth = viewBoxCoordinates[2];
26
27
  var defaultHeight = viewBoxCoordinates[3];
@@ -33,7 +34,7 @@ var SpotIllustration = function SpotIllustration(_ref) {
33
34
  customFill: customFill
34
35
  }, svgProps), /*#__PURE__*/React.createElement("use", {
35
36
  xmlnsXlink: "http://www.w3.org/1999/xlink",
36
- xlinkHref: "#ssillustrationsvg-".concat(name)
37
+ xlinkHref: "#seeds-svgs_".concat(name)
37
38
  }));
38
39
  };
39
40
  export default SpotIllustration;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* Asset types */
2
2
 
3
- export { default as SpotIllustrationNames } from "./illustrationNames";
4
- export { default as PartnerLogoNames } from "./logoNames";
3
+ export { IllustrationNames as SpotIllustrationNames } from "@sproutsocial/seeds-illustrations";
4
+ export { LogoNamesWithoutVariants as PartnerLogoNames } from "@sproutsocial/seeds-partner-logos";
5
5
 
6
6
  /* Theme and related types */
7
7
  export * from "./systemProps";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "20.17.0",
3
+ "version": "21.0.0",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -29,13 +29,12 @@
29
29
  "clean:modules": "rm -rf node_modules",
30
30
  "build-package": "node ./bin/buildPackage.js",
31
31
  "watch-package": "node ./bin/buildPackage.js --watch",
32
- "build-svgs": "node ./bin/buildSVG.js",
33
32
  "build-app": "BABEL_ENV=es node ./bin/buildApp.js",
34
33
  "build:ts-declarations": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json",
35
34
  "watch-app": "BABEL_ENV=es node ./bin/buildApp.js --watch",
36
- "start-package-only": "npm-run-all install-deps clean -p build-svgs watch-package",
37
- "dev:storybook": "npm-run-all clean -p build-svgs watch-package watch-app",
38
- "build": "npm-run-all -s clean build-svgs build:ts-declarations build-package build-app",
35
+ "start-package-only": "npm-run-all install-deps clean -p watch-package",
36
+ "dev:storybook": "npm-run-all clean -p watch-package watch-app",
37
+ "build": "npm-run-all -s clean build:ts-declarations build-package build-app",
39
38
  "format": "prettier --write .",
40
39
  "format:check": "prettier -c .",
41
40
  "lint": "eslint --max-warnings=0 --fix .",
@@ -54,7 +53,7 @@
54
53
  "release": "yarn build && yarn test && yarn changeset publish",
55
54
  "storybook": "rm -rf node_modules/.cache/storybook && storybook dev -c .storybook -p 9999",
56
55
  "build-storybook": "storybook build --quiet -c .storybook -o .storybook-dist",
57
- "build-chromatic": "yarn build-svgs && storybook build --quiet -c .storybook -o .storybook-dist",
56
+ "build-chromatic": "storybook build --quiet -c .storybook -o .storybook-dist",
58
57
  "ts-to-flow": "flowgen $FILE -o $OUTPUT --add-flow-header --no-module-exports"
59
58
  },
60
59
  "dependencies": {
@@ -94,8 +93,10 @@
94
93
  "@sproutsocial/seeds-color": "*",
95
94
  "@sproutsocial/seeds-depth": "*",
96
95
  "@sproutsocial/seeds-icons": "*",
96
+ "@sproutsocial/seeds-illustrations": "*",
97
97
  "@sproutsocial/seeds-motion": "*",
98
98
  "@sproutsocial/seeds-networkcolor": "*",
99
+ "@sproutsocial/seeds-partner-logos": "*",
99
100
  "@sproutsocial/seeds-space": "*",
100
101
  "@sproutsocial/seeds-tsconfig": "*",
101
102
  "@sproutsocial/seeds-typography": "*",
@@ -132,7 +133,7 @@
132
133
  "babel-plugin-polished": "^1.1.0",
133
134
  "babel-plugin-styled-components": "^2.0.7",
134
135
  "babel-polyfill": "^6.26.0",
135
- "backstopjs": "6.2.2",
136
+ "backstopjs": "6.3.3",
136
137
  "chalk": "^2.3.2",
137
138
  "chokidar": "^3.0.2",
138
139
  "csstype": "^3.1.1",
@@ -167,8 +168,6 @@
167
168
  "storybook": "^7.2.1",
168
169
  "storybook-dark-mode": "^3.0.1",
169
170
  "styled-components": "^5.2.3",
170
- "svgo": "^1.3.0",
171
- "svgstore": "^3.0.1",
172
171
  "tsc-alias": "^1.8.2",
173
172
  "typescript": "^5.1.6",
174
173
  "webpack": "^5.88.2",
@@ -185,6 +184,8 @@
185
184
  "@sproutsocial/seeds-networkcolor": ">=2.14.0",
186
185
  "@sproutsocial/seeds-space": ">=0.4.0",
187
186
  "@sproutsocial/seeds-typography": ">=2.0.0",
187
+ "@sproutsocial/seeds-partner-logos": ">=1.5.0",
188
+ "@sproutsocial/seeds-illustrations": ">=1.3.0",
188
189
  "moment": "^2.29.4",
189
190
  "prop-types": "^15.0.0",
190
191
  "react": "^16.8.0 || ^17.0.0",
@@ -1,2 +0,0 @@
1
- // @flow
2
- export type EnumIllustrationNames = "abacus" | "analytics-offering" | "asset-cards" | "astronaut" | "binoculars" | "brand-keyword" | "browser-doc" | "business" | "calendar-event" | "calendar-reporting" | "cat-error" | "cat-no-access" | "cat" | "checkbox-alert" | "coffee-cup" | "competitors" | "compose-window" | "compose" | "computer-error" | "connect" | "contact" | "conversation" | "custom-branding" | "custom-post-variables" | "customer-service" | "dashboard" | "exclamation-mark" | "face-happy" | "find-bookmark" | "flask" | "general-topic" | "global-features" | "global-trend" | "grow-large" | "grow" | "hands-raised" | "headset" | "heartbeat-connection" | "instagram-links" | "invoice" | "jewel" | "keyword-tracking" | "lightbulb-alt" | "lightbulb" | "like-conversation" | "link-broken" | "link-messages" | "link-sections" | "link-upload" | "listening-pendo" | "listening-sentiment" | "listening-topic-templates" | "listening-tour" | "listening" | "loading" | "mailbox-empty" | "mailbox-full" | "megaphone" | "message" | "molecule" | "network-data" | "no-messages-found" | "no-notifications" | "note" | "notification" | "notifications-onboarding" | "notifications" | "organize-message" | "outbox-queue" | "outbox-reviews" | "pdf" | "planning" | "podium" | "pointer" | "profile-groups" | "publish-assets" | "publish-links" | "publishing-notifications" | "publishing" | "puzzle-piece" | "question-mark" | "reporting-folder" | "reporting" | "review-location" | "review" | "robot-assembly" | "robot-error" | "robot-happy" | "rocket" | "schedule-date" | "schedule-messages" | "search-keywords" | "search-success" | "search-trends" | "search" | "security" | "sentiment" | "shopping-bag" | "spark-line" | "sprout-mobile-app" | "stamp" | "storefront" | "success" | "tag-message" | "tag" | "team-roles" | "team" | "telescope" | "tha-mel" | "thumbs-up" | "toggle-switch" | "toolset-strength" | "tracking-time" | "twitter-messages" | "twitter-profiles" | "under-construction" | "unsubscribe" | "upward-trend" | "user-task" | "user-team" | "variable-table" | "view-connections" | "vip-list" | "warning" | "wifi" | "workflow-steps";
@@ -1,2 +0,0 @@
1
- // @flow
2
- export type EnumLogoNames = "adobe-experience-manager" | "android" | "apple-app-store" | "apple" | "bigcommerce" | "bitly" | "bynder" | "canva" | "dropbox" | "facebook-audience-network" | "facebook" | "facebook-groups" | "facebook-shops" | "feedly" | "github" | "glassdoor" | "google-analytics" | "google-business-messages" | "google-drive" | "google-my-business" | "google-play-store" | "hubspot" | "instagram" | "linkedin-audience-network" | "linkedin" | "marketo" | "messenger" | "microsoft-dynamics" | "pinterest" | "reddit" | "salesforce-cloud" | "salesforce" | "shopify" | "slack" | "sproutsocial" | "tableau" | "threads" | "tiktok" | "tripadvisor" | "trustpilot" | "tumblr" | "twitter-audience-network" | "twitter" | "whatsapp" | "woocommerce" | "x-twitter" | "yelp" | "youtube" | "zendesk";