@sproutsocial/racine 15.1.0 → 17.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 (164) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/__flow__/Badge/Badge.flow.js +3 -1
  3. package/__flow__/Badge/constants.flow.js +14 -1
  4. package/__flow__/Banner/Banner.flow.js +7 -0
  5. package/__flow__/DatePicker/DateRangePicker/DateRangePicker.flow.js +1 -0
  6. package/__flow__/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +1 -0
  7. package/__flow__/EnumIconNames.flow.js +1 -1
  8. package/__flow__/EnumIllustrationNames.flow.js +1 -1
  9. package/__flow__/EnumLogoNames.flow.js +1 -1
  10. package/__flow__/Icon/Icon.flow.js +2 -2
  11. package/__flow__/IconViewBoxes.js +1 -0
  12. package/__flow__/IllustrationViewBoxes.js +1 -0
  13. package/__flow__/LogoViewBoxes.js +14 -0
  14. package/__flow__/PartnerLogo/PartnerLogo.flow.js +7 -2
  15. package/__flow__/PartnerLogo/index.flow.js +1 -2
  16. package/__flow__/Switch/Switch.flow.js +2 -21
  17. package/__flow__/Switch/SwitchTypes.flow.js +16 -0
  18. package/__flow__/Switch/index.flow.js +2 -1
  19. package/__flow__/Toast/Toast.flow.js +2 -2
  20. package/__flow__/index.flow.js +2 -4
  21. package/commonjs/Badge/Badge.flow.js +1 -0
  22. package/commonjs/Badge/constants.flow.js +20 -1
  23. package/commonjs/Badge/constants.js +16 -2
  24. package/commonjs/Banner/Banner.js +4 -3
  25. package/commonjs/Card/Card.js +14 -9
  26. package/commonjs/Card/index.js +8 -1
  27. package/commonjs/Card/styles.js +40 -12
  28. package/commonjs/Card/subComponents.js +38 -5
  29. package/commonjs/Card/utils.js +9 -5
  30. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +30 -5
  31. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +29 -5
  32. package/commonjs/DatePicker/common.js +18 -2
  33. package/commonjs/Icon/Icon.js +3 -2
  34. package/commonjs/IconViewBoxes.js +1 -0
  35. package/commonjs/IllustrationViewBoxes.js +1 -0
  36. package/commonjs/LogoViewBoxes.js +14 -0
  37. package/commonjs/PartnerLogo/PartnerLogo.js +34 -29
  38. package/commonjs/PartnerLogo/PartnerLogoTypes.js +14 -3
  39. package/commonjs/PartnerLogo/index.flow.js +0 -11
  40. package/commonjs/Popout/Popout.js +4 -3
  41. package/commonjs/SpotIllustration/illustrationNames.js +1 -1
  42. package/commonjs/Switch/Switch.js +43 -77
  43. package/commonjs/Switch/index.flow.js +11 -0
  44. package/commonjs/Switch/styles.js +61 -37
  45. package/commonjs/Table/Table.js +20 -13
  46. package/commonjs/TableHeaderCell/TableHeaderCell.js +17 -4
  47. package/commonjs/TableHeaderCell/styles.js +6 -1
  48. package/commonjs/Tabs/Tabs.js +7 -2
  49. package/commonjs/iconNames.js +8 -0
  50. package/commonjs/illustrationNames.js +8 -0
  51. package/commonjs/index.flow.js +12 -8
  52. package/commonjs/index.js +24 -0
  53. package/commonjs/logoNames.js +8 -0
  54. package/dist/icon.svg +1 -1
  55. package/dist/iconList.js +1 -1
  56. package/dist/illustration.svg +1 -1
  57. package/dist/illustrationList.js +1 -1
  58. package/dist/logo.svg +1 -1
  59. package/dist/logoList.js +1 -1
  60. package/dist/types/Badge/BadgeTypes.d.ts +3 -1
  61. package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
  62. package/dist/types/Badge/constants.d.ts +13 -0
  63. package/dist/types/Badge/constants.d.ts.map +1 -1
  64. package/dist/types/Banner/Banner.d.ts +1 -1
  65. package/dist/types/Banner/Banner.d.ts.map +1 -1
  66. package/dist/types/Banner/BannerTypes.d.ts +3 -0
  67. package/dist/types/Banner/BannerTypes.d.ts.map +1 -1
  68. package/dist/types/Banner/__tests__/BannerTypes.d.ts +2 -0
  69. package/dist/types/Banner/__tests__/BannerTypes.d.ts.map +1 -0
  70. package/dist/types/Card/Card.d.ts.map +1 -1
  71. package/dist/types/Card/CardTypes.d.ts +9 -0
  72. package/dist/types/Card/CardTypes.d.ts.map +1 -1
  73. package/dist/types/Card/index.d.ts +1 -1
  74. package/dist/types/Card/index.d.ts.map +1 -1
  75. package/dist/types/Card/styles.d.ts +8 -0
  76. package/dist/types/Card/styles.d.ts.map +1 -1
  77. package/dist/types/Card/subComponents.d.ts +5 -0
  78. package/dist/types/Card/subComponents.d.ts.map +1 -1
  79. package/dist/types/Card/utils.d.ts +2 -1
  80. package/dist/types/Card/utils.d.ts.map +1 -1
  81. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  82. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  83. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +2 -1
  84. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
  85. package/dist/types/DatePicker/SingleDatePicker/SingleDatePicker.d.ts.map +1 -1
  86. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +2 -1
  87. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +1 -1
  88. package/dist/types/DatePicker/common.d.ts +2 -0
  89. package/dist/types/DatePicker/common.d.ts.map +1 -1
  90. package/dist/types/EnumIconNames.d.ts +1 -1
  91. package/dist/types/EnumIconNames.d.ts.map +1 -1
  92. package/dist/types/EnumIllustrationNames.d.ts +1 -1
  93. package/dist/types/EnumIllustrationNames.d.ts.map +1 -1
  94. package/dist/types/EnumLogoNames.d.ts +1 -1
  95. package/dist/types/EnumLogoNames.d.ts.map +1 -1
  96. package/dist/types/Icon/Icon.d.ts.map +1 -1
  97. package/dist/types/Icon/IconTypes.d.ts +2 -2
  98. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  99. package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
  100. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +13 -4
  101. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  102. package/dist/types/Popout/Popout.d.ts +1 -1
  103. package/dist/types/Popout/Popout.d.ts.map +1 -1
  104. package/dist/types/SpotIllustration/illustrationNames.d.ts.map +1 -1
  105. package/dist/types/Switch/Switch.d.ts +15 -12
  106. package/dist/types/Switch/Switch.d.ts.map +1 -1
  107. package/dist/types/Switch/SwitchTypes.d.ts +4 -11
  108. package/dist/types/Switch/SwitchTypes.d.ts.map +1 -1
  109. package/dist/types/Switch/styles.d.ts +4 -5
  110. package/dist/types/Switch/styles.d.ts.map +1 -1
  111. package/dist/types/Table/Table.d.ts.map +1 -1
  112. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
  113. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
  114. package/dist/types/TableHeaderCell/styles.d.ts +1 -0
  115. package/dist/types/TableHeaderCell/styles.d.ts.map +1 -1
  116. package/dist/types/Tabs/Tabs.d.ts.map +1 -1
  117. package/dist/types/Toast/ToastTypes.d.ts +2 -2
  118. package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
  119. package/dist/types/iconNames.d.ts +3 -0
  120. package/dist/types/iconNames.d.ts.map +1 -0
  121. package/dist/types/illustrationNames.d.ts +3 -0
  122. package/dist/types/illustrationNames.d.ts.map +1 -0
  123. package/dist/types/index.d.ts +3 -0
  124. package/dist/types/index.d.ts.map +1 -1
  125. package/dist/types/logoNames.d.ts +3 -0
  126. package/dist/types/logoNames.d.ts.map +1 -0
  127. package/icons/quotes-solid.svg +3 -0
  128. package/lib/Badge/Badge.flow.js +2 -1
  129. package/lib/Badge/constants.flow.js +13 -0
  130. package/lib/Badge/constants.js +13 -0
  131. package/lib/Banner/Banner.js +4 -3
  132. package/lib/Card/Card.js +15 -10
  133. package/lib/Card/index.js +1 -1
  134. package/lib/Card/styles.js +38 -12
  135. package/lib/Card/subComponents.js +34 -4
  136. package/lib/Card/utils.js +9 -5
  137. package/lib/DatePicker/DateRangePicker/DateRangePicker.js +32 -7
  138. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +31 -7
  139. package/lib/DatePicker/common.js +14 -0
  140. package/lib/Icon/Icon.js +3 -2
  141. package/lib/IconViewBoxes.js +1 -0
  142. package/lib/IllustrationViewBoxes.js +1 -0
  143. package/lib/LogoViewBoxes.js +14 -0
  144. package/lib/PartnerLogo/PartnerLogo.js +34 -27
  145. package/lib/PartnerLogo/PartnerLogoTypes.js +13 -2
  146. package/lib/PartnerLogo/index.flow.js +1 -2
  147. package/lib/Popout/Popout.js +4 -3
  148. package/lib/SpotIllustration/illustrationNames.js +1 -1
  149. package/lib/Switch/Switch.js +41 -77
  150. package/lib/Switch/index.flow.js +2 -1
  151. package/lib/Switch/styles.js +60 -35
  152. package/lib/Table/Table.js +20 -13
  153. package/lib/TableHeaderCell/TableHeaderCell.js +18 -5
  154. package/lib/TableHeaderCell/styles.js +4 -0
  155. package/lib/Tabs/Tabs.js +7 -2
  156. package/lib/iconNames.js +1 -0
  157. package/lib/illustrationNames.js +1 -0
  158. package/lib/index.flow.js +1 -1
  159. package/lib/index.js +4 -0
  160. package/lib/logoNames.js +1 -0
  161. package/package.json +6 -3
  162. package/__flow__/PartnerLogo/TypePartnerNames.flow.js +0 -3
  163. /package/commonjs/{PartnerLogo/TypePartnerNames.flow.js → Switch/SwitchTypes.flow.js} +0 -0
  164. /package/lib/{PartnerLogo/TypePartnerNames.flow.js → Switch/SwitchTypes.flow.js} +0 -0
@@ -1,92 +1,58 @@
1
1
  "use strict";
2
2
 
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
7
8
  var React = _interopRequireWildcard(require("react"));
8
9
  var _Icon = _interopRequireDefault(require("../Icon"));
9
- var _VisuallyHidden = require("../VisuallyHidden");
10
- var _styles = _interopRequireDefault(require("./styles"));
11
- var _excluded = ["checked", "disabled", "name", "a11yLabels", "onClick", "qa"];
10
+ var _styles = require("./styles");
11
+ var _excluded = ["onClick", "loading", "checked", "disabled"];
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
16
15
  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); }
17
16
  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; }
18
17
  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; }
19
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
26
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
30
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
31
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
32
- // Switch acts as a toggle, enabling users to turn a particular action on or off.
33
- var Switch = /*#__PURE__*/function (_React$Component) {
34
- _inherits(Switch, _React$Component);
35
- var _super = _createSuper(Switch);
36
- function Switch() {
37
- var _this;
38
- _classCallCheck(this, Switch);
39
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40
- args[_key] = arguments[_key];
41
- }
42
- _this = _super.call.apply(_super, [this].concat(args));
43
- _defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
44
- var _this$props = _this.props,
45
- checked = _this$props.checked,
46
- onClick = _this$props.onClick,
47
- disabled = _this$props.disabled;
48
- if (!disabled) {
49
- onClick(e, !checked);
50
- }
51
- });
52
- return _this;
53
- }
54
- _createClass(Switch, [{
55
- key: "render",
56
- value: function render() {
57
- var _this$props2 = this.props,
58
- checked = _this$props2.checked,
59
- disabled = _this$props2.disabled,
60
- name = _this$props2.name,
61
- a11yLabels = _this$props2.a11yLabels,
62
- onClick = _this$props2.onClick,
63
- _this$props2$qa = _this$props2.qa,
64
- qa = _this$props2$qa === void 0 ? {} : _this$props2$qa,
65
- rest = _objectWithoutProperties(_this$props2, _excluded);
66
- return /*#__PURE__*/React.createElement(_styles.default, _extends({
67
- role: "button",
68
- type: "button",
69
- "aria-pressed": checked,
70
- disabled: disabled,
71
- onClick: this.handleClick,
72
- "data-qa-switch": name || '',
73
- "data-qa-switch-ischecked": checked === true,
74
- "data-qa-switch-isdisabled": disabled === true,
75
- checked: checked
76
- }, qa, rest), /*#__PURE__*/React.createElement(_VisuallyHidden.VisuallyHidden, null, checked ? a11yLabels.on : a11yLabels.off), checked ? /*#__PURE__*/React.createElement(_Icon.default, {
77
- "aria-hidden": true,
78
- size: "mini",
79
- name: "check"
80
- }) : null);
18
+ /**
19
+ * @link https://seeds.sproutsocial.com/components/switch/
20
+ *
21
+ * Switch should always have an accessible label. Use aria-label, aria-labelledby or a `Label` component.
22
+ * The accessible label should not change when the checked state changes.
23
+ * The component uses role="switch" and the `checked` prop will be used to set the aria-checked attribute.
24
+ *
25
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/switch/
26
+ *
27
+ * @example
28
+ * <Switch checked={true} onClick={_onClick} aria-label="Switch Example" />
29
+ */
30
+
31
+ var Switch = function Switch(_ref) {
32
+ var onClick = _ref.onClick,
33
+ _ref$loading = _ref.loading,
34
+ loading = _ref$loading === void 0 ? false : _ref$loading,
35
+ checked = _ref.checked,
36
+ _ref$disabled = _ref.disabled,
37
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
38
+ rest = _objectWithoutProperties(_ref, _excluded);
39
+ var handleClick = function handleClick(e) {
40
+ if (!disabled) {
41
+ onClick(e, !checked);
81
42
  }
82
- }]);
83
- return Switch;
84
- }(React.Component);
85
- exports.default = Switch;
86
- _defineProperty(Switch, "defaultProps", {
87
- disabled: false,
88
- a11yLabels: {
89
- on: 'on',
90
- off: 'off'
91
- }
92
- });
43
+ };
44
+ return /*#__PURE__*/React.createElement(_styles.StyledSwitchButton, _extends({
45
+ type: "button",
46
+ role: "switch",
47
+ "aria-checked": checked,
48
+ disabled: disabled,
49
+ onClick: handleClick,
50
+ className: loading ? 'loading' : ''
51
+ }, rest), checked ? /*#__PURE__*/React.createElement(_Icon.default, {
52
+ "aria-hidden": true,
53
+ size: "mini",
54
+ name: "check"
55
+ }) : null);
56
+ };
57
+ var _default = Switch;
58
+ exports.default = _default;
@@ -13,4 +13,15 @@ Object.keys(_Switch).forEach(function (key) {
13
13
  return _Switch[key];
14
14
  }
15
15
  });
16
+ });
17
+ var _SwitchTypes = require("./SwitchTypes.flow");
18
+ Object.keys(_SwitchTypes).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _SwitchTypes[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function get() {
24
+ return _SwitchTypes[key];
25
+ }
26
+ });
16
27
  });
@@ -4,45 +4,69 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
7
+ exports.StyledSwitchButton = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _mixins = require("../utils/mixins");
10
- var _systemProps = require("../utils/system-props");
11
- var _styles = _interopRequireDefault(require("../Icon/styles"));
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ var _styledSystem = require("styled-system");
13
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
- var Container = _styledComponents.default.button.withConfig({
16
- displayName: "styles__Container",
13
+ var loadingKeyFrame = (0, _styledComponents.keyframes)(["0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}"]);
14
+ var StyledSwitchButton = _styledComponents.default.button.withConfig({
15
+ displayName: "styles__StyledSwitchButton",
17
16
  componentId: "sc-ku462j-0"
18
- })(["position:relative;display:inline-block;width:36px;height:22px;margin:0;padding:", " ", ";vertical-align:middle;appearance:none;background-color:", ";border-radius:11px;outline:none;cursor:pointer;transition:background-color ", " ", ";border:1px solid ", ";white-space:nowrap;overflow:hidden;&::after{position:absolute;top:50%;left:0;width:14px;height:14px;background-color:", ";opacity:0.64;border-radius:50%;content:'';transition:transform ", " ", ";transform:translate(4px,-50%);}&:focus{", "}", " ", " ", ""], function (props) {
19
- return props.theme.space[100];
20
- }, function (props) {
21
- return props.theme.space[200];
22
- }, function (props) {
23
- return props.theme.colors.form.background.base;
24
- }, function (props) {
25
- return props.theme.duration.fast;
26
- }, function (props) {
27
- return props.theme.easing.ease_inout;
28
- }, function (props) {
29
- return props.theme.colors.form.border.base;
30
- }, function (props) {
31
- return props.theme.colors.icon.base;
32
- }, function (props) {
33
- return props.theme.duration.fast;
34
- }, function (props) {
35
- return props.theme.easing.ease_inout;
36
- }, _mixins.focusRing, function (props) {
37
- if (props.checked) {
38
- return (0, _styledComponents.css)(["color:", ";text-align:left;border-color:", ";background-color:", ";&::after{background-color:", ";opacity:1;transform:translate(17px,-50%);}", "{position:absolute;top:50%;left:4px;transform:translate(0,-50%);color:", ";}"], props.theme.colors.text.body, props.theme.colors.form.border.selected, props.theme.colors.form.background.selected, props.theme.colors.icon.inverse, _styles.default, props.theme.colors.icon.inverse);
39
- } else {
40
- return "\n &:hover,\n &:focus {\n border-color: ".concat(props.theme.colors.form.border.base, ";\n background-color: ").concat(props.theme.colors.form.background.base, ";\n }\n &:hover {\n &::after {\n transform: translate(6px, -50%);\n }\n }\n ");
41
- }
42
- }, function (props) {
43
- return props.disabled && (0, _styledComponents.css)(["opacity:0.4;cursor:not-allowed;&[aria-pressed='true']{&:hover,&:focus{background-color:", ";}}"], function (props) {
44
- return props.theme.colors.container.background.selected;
45
- });
46
- }, _systemProps.COMMON);
47
- var _default = Container;
48
- exports.default = _default;
17
+ })(["position:relative;display:inline-flex;align-self:center;width:40px;height:24px;margin:0;padding:", " ", ";vertical-align:middle;appearance:none;background-color:", ";border-radius:16px;outline:none;cursor:pointer;transition:background-color ", " ", ";border:1px solid ", ";white-space:nowrap;overflow:hidden;&:focus{", "}&[aria-checked]{&::after{display:block;width:16px;height:16px;border-radius:50%;content:'';transition:transform ", " ", ";}&.loading{cursor:not-allowed;pointer-events:none;background-size:contain;background-color:", ";&::after{position:absolute;box-sizing:content-box;width:8px;height:8px;border-radius:", ";border:3px dotted ", ";background-color:transparent;animation:", " 2s linear infinite;}}}&[aria-checked='true']{color:", ";text-align:left;border-color:", ";background-color:", ";.Icon{position:absolute;top:50%;left:4px;transform:translate(0,-50%);color:", ";}&::after{background-color:", ";opacity:1;transform:translate(100%,6%);}&.loading::after{top:4px;right:5px;}&:hover,&:focus{&::after{transform:translate(90%,6%);}}}&[aria-checked='false']{&::after{background-color:", ";opacity:0.64;transform:translate(0%,6%);}&.loading::after{top:4px;left:5px;}&:hover,&:focus{&::after{transform:translate(10%,6%);}}}&:disabled{opacity:0.4;pointer-events:none;cursor:not-allowed;&[aria-checked='true']{&:hover,&:focus{background-color:", ";}}}", " ", " ", ""], function (_ref) {
18
+ var theme = _ref.theme;
19
+ return theme.space[100];
20
+ }, function (_ref2) {
21
+ var theme = _ref2.theme;
22
+ return theme.space[200];
23
+ }, function (_ref3) {
24
+ var theme = _ref3.theme;
25
+ return theme.colors.form.background.base;
26
+ }, function (_ref4) {
27
+ var theme = _ref4.theme;
28
+ return theme.duration.fast;
29
+ }, function (_ref5) {
30
+ var theme = _ref5.theme;
31
+ return theme.easing.ease_inout;
32
+ }, function (_ref6) {
33
+ var theme = _ref6.theme;
34
+ return theme.colors.form.border.base;
35
+ }, _mixins.focusRing, function (_ref7) {
36
+ var theme = _ref7.theme;
37
+ return theme.duration.fast;
38
+ }, function (_ref8) {
39
+ var theme = _ref8.theme;
40
+ return theme.easing.ease_inout;
41
+ }, function (_ref9) {
42
+ var theme = _ref9.theme;
43
+ return theme.colors.form.background.base;
44
+ }, function (_ref10) {
45
+ var theme = _ref10.theme;
46
+ return theme.radii.pill;
47
+ }, function (_ref11) {
48
+ var theme = _ref11.theme;
49
+ return theme.colors.icon.base;
50
+ }, loadingKeyFrame, function (_ref12) {
51
+ var theme = _ref12.theme;
52
+ return theme.colors.text.body;
53
+ }, function (_ref13) {
54
+ var theme = _ref13.theme;
55
+ return theme.colors.form.border.selected;
56
+ }, function (_ref14) {
57
+ var theme = _ref14.theme;
58
+ return theme.colors.form.background.selected;
59
+ }, function (_ref15) {
60
+ var theme = _ref15.theme;
61
+ return theme.colors.icon.inverse;
62
+ }, function (_ref16) {
63
+ var theme = _ref16.theme;
64
+ return theme.colors.icon.inverse;
65
+ }, function (_ref17) {
66
+ var theme = _ref17.theme;
67
+ return theme.colors.icon.base;
68
+ }, function (_ref18) {
69
+ var theme = _ref18.theme;
70
+ return theme.colors.container.background.selected;
71
+ }, _styledSystem.color, _styledSystem.layout, _styledSystem.space);
72
+ exports.StyledSwitchButton = StyledSwitchButton;
@@ -58,11 +58,18 @@ var Table = function Table(_ref) {
58
58
  // @ts-ignore
59
59
  ,
60
60
  color: color
61
- }), head.length > 0 && /*#__PURE__*/React.createElement("thead", {
61
+ }), /*#__PURE__*/React.createElement("colgroup", null, head.map(function (_ref2) {
62
+ var _ref2$colSpan = _ref2.colSpan,
63
+ colSpan = _ref2$colSpan === void 0 ? 1 : _ref2$colSpan;
64
+ return /*#__PURE__*/React.createElement("col", {
65
+ key: colSpan,
66
+ span: colSpan
67
+ });
68
+ })), head.length > 0 && /*#__PURE__*/React.createElement("thead", {
62
69
  "data-qa-table-header": ""
63
- }, /*#__PURE__*/React.createElement("tr", null, head.map(function (_ref2) {
64
- var color = _ref2.color,
65
- th = _objectWithoutProperties(_ref2, _excluded2);
70
+ }, /*#__PURE__*/React.createElement("tr", null, head.map(function (_ref3) {
71
+ var color = _ref3.color,
72
+ th = _objectWithoutProperties(_ref3, _excluded2);
66
73
  return /*#__PURE__*/React.createElement(_TableHeaderCell.default, _extends({}, th, {
67
74
  key: th.id,
68
75
  onSort: onSort,
@@ -79,21 +86,21 @@ var Table = function Table(_ref) {
79
86
  }));
80
87
  };
81
88
  exports.Table = Table;
82
- var TableHead = function TableHead(_ref3) {
83
- var children = _ref3.children,
84
- props = _objectWithoutProperties(_ref3, _excluded3);
89
+ var TableHead = function TableHead(_ref4) {
90
+ var children = _ref4.children,
91
+ props = _objectWithoutProperties(_ref4, _excluded3);
85
92
  return /*#__PURE__*/React.createElement("thead", props, children);
86
93
  };
87
94
  exports.TableHead = TableHead;
88
- var TableBody = function TableBody(_ref4) {
89
- var children = _ref4.children,
90
- props = _objectWithoutProperties(_ref4, _excluded4);
95
+ var TableBody = function TableBody(_ref5) {
96
+ var children = _ref5.children,
97
+ props = _objectWithoutProperties(_ref5, _excluded4);
91
98
  return /*#__PURE__*/React.createElement("tbody", props, children);
92
99
  };
93
100
  exports.TableBody = TableBody;
94
- var TableRow = function TableRow(_ref5) {
95
- var children = _ref5.children,
96
- props = _objectWithoutProperties(_ref5, _excluded5);
101
+ var TableRow = function TableRow(_ref6) {
102
+ var children = _ref6.children,
103
+ props = _objectWithoutProperties(_ref6, _excluded5);
97
104
  return /*#__PURE__*/React.createElement("tr", props, children);
98
105
  };
99
106
  exports.TableRow = TableRow;
@@ -39,7 +39,7 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
39
39
  args[_key] = arguments[_key];
40
40
  }
41
41
  _this = _super.call.apply(_super, [this].concat(args));
42
- _defineProperty(_assertThisInitialized(_this), "getSortIcon", function (isSorted) {
42
+ _defineProperty(_assertThisInitialized(_this), "getSortIcon", function (isSorted, ariaSortDirection) {
43
43
  var sortDirection = _this.props.sortDirection;
44
44
  var iconName = 'chevron-up-down-filled';
45
45
  if (isSorted && sortDirection === _constants.SORT_DIRECTIONS.ASC) {
@@ -50,10 +50,11 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
50
50
  return /*#__PURE__*/React.createElement(_styles.SortIcon, null, /*#__PURE__*/React.createElement(_Icon.default, {
51
51
  size: "mini",
52
52
  name: iconName,
53
- "aria-hidden": true
53
+ "aria-label": ariaSortDirection
54
54
  }));
55
55
  });
56
56
  _defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
57
+ e.preventDefault();
57
58
  var _this$props = _this.props,
58
59
  onClick = _this$props.onClick,
59
60
  onSort = _this$props.onSort,
@@ -87,11 +88,19 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
87
88
  onClick = _this$props2.onClick,
88
89
  color = _this$props2.color,
89
90
  rest = _objectWithoutProperties(_this$props2, _excluded);
91
+ var isSorted = sortId === id;
92
+ var ariaSort = isSorted ? sortDirection === _constants.SORT_DIRECTIONS.ASC ? 'ascending' : 'descending' : undefined;
93
+ var buttonProps = isSortable ? {
94
+ role: 'button',
95
+ onClick: this.handleClick
96
+ } : {};
97
+ var scope = colSpan ? 'colgroup' : 'col';
90
98
  return /*#__PURE__*/React.createElement(_styles.default, _extends({}, rest, {
91
99
  key: id,
92
100
  alignment: align || 'left',
93
101
  sortable: isSortable,
94
102
  colSpan: colSpan,
103
+ scope: scope,
95
104
  width: width,
96
105
  onClick: this.handleClick,
97
106
  "data-tableheadercell-sortable": isSortable,
@@ -101,8 +110,12 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
101
110
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
102
111
  // @ts-ignore
103
112
  ,
104
- color: color
105
- }), children || content, isSortable && !children && this.getSortIcon(id === sortId));
113
+ color: color,
114
+ "aria-sort": ariaSort
115
+ }), isSortable ? /*#__PURE__*/React.createElement(_styles.UnstyledButton, buttonProps, /*#__PURE__*/React.createElement("div", {
116
+ "aria-live": "polite",
117
+ role: "status"
118
+ }, children || content, !children && this.getSortIcon(id === sortId, ariaSort))) : children || content);
106
119
  }
107
120
  }]);
108
121
  return TableHeaderCell;
@@ -4,7 +4,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.SortIcon = void 0;
7
+ exports.default = exports.UnstyledButton = exports.SortIcon = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
  var _systemProps = require("../utils/system-props");
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -30,5 +30,10 @@ var SortIcon = _styledComponents.default.span.withConfig({
30
30
  return props.theme.space[200];
31
31
  });
32
32
  exports.SortIcon = SortIcon;
33
+ var UnstyledButton = _styledComponents.default.button.withConfig({
34
+ displayName: "styles__UnstyledButton",
35
+ componentId: "sc-fjeapu-2"
36
+ })(["background:none;border:none;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;"]);
37
+ exports.UnstyledButton = UnstyledButton;
33
38
  var _default = Container;
34
39
  exports.default = _default;
@@ -87,7 +87,11 @@ var TabItemButton = /*#__PURE__*/function (_React$Component) {
87
87
  tabIndex: isSelected ? 0 : -1,
88
88
  fullWidth: fullWidth,
89
89
  "data-qa-tab-button": id,
90
- "data-qa-tab-button-state": isSelected
90
+ "data-qa-tab-button-state": isSelected,
91
+ "aria-selected": isSelected,
92
+ role: "tab"
93
+ // TODO: Add a TabPanel subcomponent for use with tabs
94
+ // aria-controls={tabPanelId}
91
95
  }, rest), children));
92
96
  }
93
97
  }]);
@@ -186,7 +190,8 @@ var Tabs = /*#__PURE__*/function (_React$Component2) {
186
190
  return /*#__PURE__*/React.createElement(_styles.default, _extends({
187
191
  "data-qa-tabs": "",
188
192
  onKeyUp: this.keyHandler,
189
- onSelect: onSelect
193
+ onSelect: onSelect,
194
+ role: "tablist"
190
195
  }, qa, rest), /*#__PURE__*/React.createElement(TabButtonContext.Provider, {
191
196
  value: {
192
197
  selectedId: this.getSelectedId(),
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = ["active-listener", "add-item", "add-keyword", "add-team-member", "add-variable", "address-card-outline", "address-card-solid", "adobe-experience-manager", "ads", "advocacy-outline", "advocacy", "android", "apple", "approval-indicator-outline", "approval-indicator", "archive", "arrow-down-line", "arrow-down", "arrow-left-line", "arrow-left", "arrow-right-line", "arrow-right", "arrow-up-line", "arrow-up", "arrows", "asset-library-outline", "asset-library", "assign", "atom", "audio", "back-to-top", "bambu-icon-outline", "bambu-icon", "barcode", "basketball", "bell-outline", "bigcommerce", "bitly", "bold", "book", "bookmark", "bot", "browser", "business", "calendar-outline", "calendar", "camera-outline", "camera-story", "camera", "campaign", "canva", "carousel", "cart-plus-outline", "cart-plus", "check", "chevron-down-filled", "chevron-down", "chevron-left", "chevron-right", "chevron-up-down-filled", "chevron-up-filled", "chevron-up", "circle-check-outline", "circle-check", "circle", "circle+", "circles", "circlex", "click-to-view", "clicks", "clipboard-outline", "clipboard", "clock", "closed-captioning", "cloud", "code", "columns", "comment-ai-outline", "comment-ai", "comment-alt-outline", "comment-alt", "comment-lines-alt-outline", "comment", "compact-density", "compact-indicator", "comparison", "competitor", "compose", "content-suggestions", "credit-card", "crop", "crown", "dashboard", "deconstructed-negative-sentiment", "deconstructed-neutral-sentiment", "deconstructed-positive-sentiment", "discovery", "dislike-outline", "dislike", "dm-link-outline", "dm-link", "dotdotdot", "download", "drafts-outline", "drafts", "dropbox", "duplicate-outline", "duplicate", "emoji-outline", "emoji", "empty-image", "engagement-per-post", "engagements", "error", "exchange-alt", "expanded-indicator", "export", "extended-circles", "external-link-alt", "external-link", "extreme-negative-sentiment", "eye-outline", "eye-slash-outline", "eye-slash", "eye", "facebook-audience-network", "facebook-branded-content-outline", "facebook-branded-content", "facebook-groups", "facebook", "fb-reactions-angry", "fb-reactions-haha", "fb-reactions-like", "fb-reactions-love", "fb-reactions-sad", "fb-reactions-wow", "feedly", "feeds", "female", "file-chart-line", "file-edit", "file-times-solid", "filter", "flag-outline", "flag", "flat-negative-sentiment-outline", "flat-negative-sentiment", "flat-neutral-sentiment-outline", "flat-neutral-sentiment", "flat-positive-sentiment-outline", "flat-positive-sentiment", "folder-open", "folder", "follow-outline", "follow", "follower-increase", "following", "font", "full-access", "gear", "gears", "github", "glassdoor", "glasses", "globe", "google-analytics-color", "google-business-messages", "google-drive", "google-my-business", "grip", "h1", "h2", "h3", "h4", "hamburger", "hand-sparkle-outline", "hand-sparkle", "hashtag", "headset", "heart-outline", "heart", "heartbeat", "help-alt", "help", "hiking", "history", "home", "hourglass", "hubspot", "image-caption", "image", "images", "impressions-per-post", "impressions", "inactive-listener", "inbox-action", "inbox-views", "inbox", "indicator", "industry", "info", "instagram", "internal-activity-outline", "internal-activity", "italic", "key", "keyboard", "laptop-phone", "large-density", "lift", "like-outline", "like", "link", "linkedin-audience-network", "linkedin", "list-ol", "listening", "lists", "location-outline", "location", "lock", "magic-wand", "male", "marketo", "mention", "message-preview-outline", "message-preview", "message", "messages-outline", "messages", "messenger", "metric-table", "microsoft-dynamics", "minus", "mobile", "monitor", "moon", "negative-sentiment", "neutral-positive-sentiment", "neutral-sentiment", "new-trend", "newspaper", "no-access", "notepad", "notifications-publishing-outline", "notifications-publishing", "notifications", "offline", "online", "paid-promotion-outline", "paid-promotion", "paid", "paint", "palette", "paperclip", "pause", "pencil-outline", "pencil", "person", "phone", "pinterest-boards-outline", "pinterest-boards", "pinterest", "play-circle", "play", "plug", "plus", "positive-sentiment", "power-up-outline", "power-up", "profile-connect", "profile-disconnect", "publishing-outline", "publishing", "puzzle-piece", "qr-code", "queue", "quotes-solid", "recommendation", "reddit-alien", "reddit", "reels-outline", "reels", "referrals", "refresh", "rejected", "reply-outline", "reply", "reporting-period", "reporting", "reports-home", "reports", "retweet", "route", "rss", "sales", "salesforce-cloud", "salesforce", "save-assets", "saved-messages", "saved-reply-outline", "saved-reply", "search", "send-again-outline", "send-again", "sent-message-outline", "sent-message", "share", "shopify", "shopping-bag-outline", "shopping-bag", "show-navigation", "slack", "small-density", "smiley", "some-access", "sparkles", "spike-alert", "star-half-alt-solid", "star-of-life", "star-outline", "star", "sticky-note-outline", "sticky-note", "stories", "story", "suggestions", "sun", "tag-outline", "tag", "targeting-outline", "targeting", "tasks-check", "tasks-outline", "tasks", "team-conversation-outline", "team-conversation", "team-sprout-outline", "team-sprout", "team", "text-asset", "text", "tiktok", "times", "tools", "trash-can-outline", "trash-can", "trend-down", "trend-neutral", "trend-up", "trends", "triangle-black", "triangle", "tripadvisor-circle-outline", "tripadvisor-circle", "tripadvisor", "trophy-outline", "tumblr", "twitter-audience-network", "twitter", "underline", "unfollow-outline", "unfollow", "unlink", "unlock", "upload", "user-circle", "users", "verified", "video-camera-story", "video-camera", "vip", "weight", "whatsapp", "window-maximize", "window-minimize", "window-regular", "window-restore", "woocommerce", "x", "yelp-full-star", "yelp-half-star", "yelp", "youtube", "zendesk"];
8
+ exports.default = _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = ["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", "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"];
8
+ exports.default = _default;
@@ -63,7 +63,6 @@ var _exportNames = {
63
63
  Skeleton: true,
64
64
  SpotIllustration: true,
65
65
  Stack: true,
66
- Switch: true,
67
66
  Table: true,
68
67
  TableCell: true,
69
68
  TableHeaderCell: true,
@@ -356,12 +355,6 @@ Object.defineProperty(exports, "Stack", {
356
355
  return _index42.default;
357
356
  }
358
357
  });
359
- Object.defineProperty(exports, "Switch", {
360
- enumerable: true,
361
- get: function get() {
362
- return _index43.default;
363
- }
364
- });
365
358
  Object.defineProperty(exports, "Table", {
366
359
  enumerable: true,
367
360
  get: function get() {
@@ -582,7 +575,18 @@ var _index39 = _interopRequireDefault(require("./Select/index.flow"));
582
575
  var _index40 = _interopRequireDefault(require("./Skeleton/index.flow"));
583
576
  var _index41 = _interopRequireDefault(require("./SpotIllustration/index.flow"));
584
577
  var _index42 = _interopRequireDefault(require("./Stack/index.flow"));
585
- var _index43 = _interopRequireDefault(require("./Switch/index.flow"));
578
+ var _index43 = require("./Switch/index.flow");
579
+ Object.keys(_index43).forEach(function (key) {
580
+ if (key === "default" || key === "__esModule") return;
581
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
582
+ if (key in exports && exports[key] === _index43[key]) return;
583
+ Object.defineProperty(exports, key, {
584
+ enumerable: true,
585
+ get: function get() {
586
+ return _index43[key];
587
+ }
588
+ });
589
+ });
586
590
  var _index44 = _interopRequireDefault(require("./Table/index.flow"));
587
591
  var _index45 = _interopRequireDefault(require("./TableCell/index.flow"));
588
592
  var _index46 = _interopRequireDefault(require("./TableHeaderCell/index.flow"));
package/commonjs/index.js CHANGED
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  var _exportNames = {
7
+ IconNames: true,
8
+ SpotIllustrationNames: true,
9
+ PartnerLogoNames: true,
7
10
  theme: true,
8
11
  darkTheme: true,
9
12
  sproutLightTheme: true,
@@ -24,6 +27,24 @@ Object.defineProperty(exports, "Alert", {
24
27
  return _Banner.Banner;
25
28
  }
26
29
  });
30
+ Object.defineProperty(exports, "IconNames", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _iconNames.default;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "PartnerLogoNames", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _logoNames.default;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "SpotIllustrationNames", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _illustrationNames.default;
46
+ }
47
+ });
27
48
  Object.defineProperty(exports, "ThemeProvider", {
28
49
  enumerable: true,
29
50
  get: function get() {
@@ -96,6 +117,9 @@ Object.defineProperty(exports, "visuallyHidden", {
96
117
  return _mixins.visuallyHidden;
97
118
  }
98
119
  });
120
+ var _iconNames = _interopRequireDefault(require("./iconNames"));
121
+ var _illustrationNames = _interopRequireDefault(require("./illustrationNames"));
122
+ var _logoNames = _interopRequireDefault(require("./logoNames"));
99
123
  var _systemProps = require("./systemProps");
100
124
  Object.keys(_systemProps).forEach(function (key) {
101
125
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = ["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-alien", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "tiktok", "tripadvisor", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "yelp", "youtube", "zendesk"];
8
+ exports.default = _default;