@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.
- package/CHANGELOG.md +79 -0
- package/__flow__/Badge/Badge.flow.js +3 -1
- package/__flow__/Badge/constants.flow.js +14 -1
- package/__flow__/Banner/Banner.flow.js +7 -0
- package/__flow__/DatePicker/DateRangePicker/DateRangePicker.flow.js +1 -0
- package/__flow__/DatePicker/SingleDatePicker/SingleDatePicker.flow.js +1 -0
- package/__flow__/EnumIconNames.flow.js +1 -1
- package/__flow__/EnumIllustrationNames.flow.js +1 -1
- package/__flow__/EnumLogoNames.flow.js +1 -1
- package/__flow__/Icon/Icon.flow.js +2 -2
- package/__flow__/IconViewBoxes.js +1 -0
- package/__flow__/IllustrationViewBoxes.js +1 -0
- package/__flow__/LogoViewBoxes.js +14 -0
- package/__flow__/PartnerLogo/PartnerLogo.flow.js +7 -2
- package/__flow__/PartnerLogo/index.flow.js +1 -2
- package/__flow__/Switch/Switch.flow.js +2 -21
- package/__flow__/Switch/SwitchTypes.flow.js +16 -0
- package/__flow__/Switch/index.flow.js +2 -1
- package/__flow__/Toast/Toast.flow.js +2 -2
- package/__flow__/index.flow.js +2 -4
- package/commonjs/Badge/Badge.flow.js +1 -0
- package/commonjs/Badge/constants.flow.js +20 -1
- package/commonjs/Badge/constants.js +16 -2
- package/commonjs/Banner/Banner.js +4 -3
- package/commonjs/Card/Card.js +14 -9
- package/commonjs/Card/index.js +8 -1
- package/commonjs/Card/styles.js +40 -12
- package/commonjs/Card/subComponents.js +38 -5
- package/commonjs/Card/utils.js +9 -5
- package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +30 -5
- package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +29 -5
- package/commonjs/DatePicker/common.js +18 -2
- package/commonjs/Icon/Icon.js +3 -2
- package/commonjs/IconViewBoxes.js +1 -0
- package/commonjs/IllustrationViewBoxes.js +1 -0
- package/commonjs/LogoViewBoxes.js +14 -0
- package/commonjs/PartnerLogo/PartnerLogo.js +34 -29
- package/commonjs/PartnerLogo/PartnerLogoTypes.js +14 -3
- package/commonjs/PartnerLogo/index.flow.js +0 -11
- package/commonjs/Popout/Popout.js +4 -3
- package/commonjs/SpotIllustration/illustrationNames.js +1 -1
- package/commonjs/Switch/Switch.js +43 -77
- package/commonjs/Switch/index.flow.js +11 -0
- package/commonjs/Switch/styles.js +61 -37
- package/commonjs/Table/Table.js +20 -13
- package/commonjs/TableHeaderCell/TableHeaderCell.js +17 -4
- package/commonjs/TableHeaderCell/styles.js +6 -1
- package/commonjs/Tabs/Tabs.js +7 -2
- package/commonjs/iconNames.js +8 -0
- package/commonjs/illustrationNames.js +8 -0
- package/commonjs/index.flow.js +12 -8
- package/commonjs/index.js +24 -0
- package/commonjs/logoNames.js +8 -0
- package/dist/icon.svg +1 -1
- package/dist/iconList.js +1 -1
- package/dist/illustration.svg +1 -1
- package/dist/illustrationList.js +1 -1
- package/dist/logo.svg +1 -1
- package/dist/logoList.js +1 -1
- package/dist/types/Badge/BadgeTypes.d.ts +3 -1
- package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
- package/dist/types/Badge/constants.d.ts +13 -0
- package/dist/types/Badge/constants.d.ts.map +1 -1
- package/dist/types/Banner/Banner.d.ts +1 -1
- package/dist/types/Banner/Banner.d.ts.map +1 -1
- package/dist/types/Banner/BannerTypes.d.ts +3 -0
- package/dist/types/Banner/BannerTypes.d.ts.map +1 -1
- package/dist/types/Banner/__tests__/BannerTypes.d.ts +2 -0
- package/dist/types/Banner/__tests__/BannerTypes.d.ts.map +1 -0
- package/dist/types/Card/Card.d.ts.map +1 -1
- package/dist/types/Card/CardTypes.d.ts +9 -0
- package/dist/types/Card/CardTypes.d.ts.map +1 -1
- package/dist/types/Card/index.d.ts +1 -1
- package/dist/types/Card/index.d.ts.map +1 -1
- package/dist/types/Card/styles.d.ts +8 -0
- package/dist/types/Card/styles.d.ts.map +1 -1
- package/dist/types/Card/subComponents.d.ts +5 -0
- package/dist/types/Card/subComponents.d.ts.map +1 -1
- package/dist/types/Card/utils.d.ts +2 -1
- package/dist/types/Card/utils.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +2 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +2 -1
- package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +1 -1
- package/dist/types/DatePicker/common.d.ts +2 -0
- package/dist/types/DatePicker/common.d.ts.map +1 -1
- package/dist/types/EnumIconNames.d.ts +1 -1
- package/dist/types/EnumIconNames.d.ts.map +1 -1
- package/dist/types/EnumIllustrationNames.d.ts +1 -1
- package/dist/types/EnumIllustrationNames.d.ts.map +1 -1
- package/dist/types/EnumLogoNames.d.ts +1 -1
- package/dist/types/EnumLogoNames.d.ts.map +1 -1
- package/dist/types/Icon/Icon.d.ts.map +1 -1
- package/dist/types/Icon/IconTypes.d.ts +2 -2
- package/dist/types/Icon/IconTypes.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +13 -4
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/Popout/Popout.d.ts +1 -1
- package/dist/types/Popout/Popout.d.ts.map +1 -1
- package/dist/types/SpotIllustration/illustrationNames.d.ts.map +1 -1
- package/dist/types/Switch/Switch.d.ts +15 -12
- package/dist/types/Switch/Switch.d.ts.map +1 -1
- package/dist/types/Switch/SwitchTypes.d.ts +4 -11
- package/dist/types/Switch/SwitchTypes.d.ts.map +1 -1
- package/dist/types/Switch/styles.d.ts +4 -5
- package/dist/types/Switch/styles.d.ts.map +1 -1
- package/dist/types/Table/Table.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/styles.d.ts +1 -0
- package/dist/types/TableHeaderCell/styles.d.ts.map +1 -1
- package/dist/types/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/Toast/ToastTypes.d.ts +2 -2
- package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
- package/dist/types/iconNames.d.ts +3 -0
- package/dist/types/iconNames.d.ts.map +1 -0
- package/dist/types/illustrationNames.d.ts +3 -0
- package/dist/types/illustrationNames.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/logoNames.d.ts +3 -0
- package/dist/types/logoNames.d.ts.map +1 -0
- package/icons/quotes-solid.svg +3 -0
- package/lib/Badge/Badge.flow.js +2 -1
- package/lib/Badge/constants.flow.js +13 -0
- package/lib/Badge/constants.js +13 -0
- package/lib/Banner/Banner.js +4 -3
- package/lib/Card/Card.js +15 -10
- package/lib/Card/index.js +1 -1
- package/lib/Card/styles.js +38 -12
- package/lib/Card/subComponents.js +34 -4
- package/lib/Card/utils.js +9 -5
- package/lib/DatePicker/DateRangePicker/DateRangePicker.js +32 -7
- package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +31 -7
- package/lib/DatePicker/common.js +14 -0
- package/lib/Icon/Icon.js +3 -2
- package/lib/IconViewBoxes.js +1 -0
- package/lib/IllustrationViewBoxes.js +1 -0
- package/lib/LogoViewBoxes.js +14 -0
- package/lib/PartnerLogo/PartnerLogo.js +34 -27
- package/lib/PartnerLogo/PartnerLogoTypes.js +13 -2
- package/lib/PartnerLogo/index.flow.js +1 -2
- package/lib/Popout/Popout.js +4 -3
- package/lib/SpotIllustration/illustrationNames.js +1 -1
- package/lib/Switch/Switch.js +41 -77
- package/lib/Switch/index.flow.js +2 -1
- package/lib/Switch/styles.js +60 -35
- package/lib/Table/Table.js +20 -13
- package/lib/TableHeaderCell/TableHeaderCell.js +18 -5
- package/lib/TableHeaderCell/styles.js +4 -0
- package/lib/Tabs/Tabs.js +7 -2
- package/lib/iconNames.js +1 -0
- package/lib/illustrationNames.js +1 -0
- package/lib/index.flow.js +1 -1
- package/lib/index.js +4 -0
- package/lib/logoNames.js +1 -0
- package/package.json +6 -3
- package/__flow__/PartnerLogo/TypePartnerNames.flow.js +0 -3
- /package/commonjs/{PartnerLogo/TypePartnerNames.flow.js → Switch/SwitchTypes.flow.js} +0 -0
- /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
|
|
10
|
-
var
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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.
|
|
7
|
+
exports.StyledSwitchButton = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _mixins = require("../utils/mixins");
|
|
10
|
-
var
|
|
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
|
|
16
|
-
|
|
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-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return
|
|
24
|
-
}, function (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return
|
|
30
|
-
}, function (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return
|
|
36
|
-
}, _mixins.focusRing, function (
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, function (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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;
|
package/commonjs/Table/Table.js
CHANGED
|
@@ -58,11 +58,18 @@ var Table = function Table(_ref) {
|
|
|
58
58
|
// @ts-ignore
|
|
59
59
|
,
|
|
60
60
|
color: color
|
|
61
|
-
}),
|
|
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 (
|
|
64
|
-
var color =
|
|
65
|
-
th = _objectWithoutProperties(
|
|
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(
|
|
83
|
-
var children =
|
|
84
|
-
props = _objectWithoutProperties(
|
|
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(
|
|
89
|
-
var children =
|
|
90
|
-
props = _objectWithoutProperties(
|
|
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(
|
|
95
|
-
var children =
|
|
96
|
-
props = _objectWithoutProperties(
|
|
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-
|
|
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
|
-
|
|
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;
|
package/commonjs/Tabs/Tabs.js
CHANGED
|
@@ -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;
|
package/commonjs/index.flow.js
CHANGED
|
@@ -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 =
|
|
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;
|