@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
|
@@ -18,7 +18,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
18
18
|
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); }
|
|
19
19
|
import * as React from 'react';
|
|
20
20
|
import Icon from "../Icon";
|
|
21
|
-
import Container, { SortIcon } from "./styles";
|
|
21
|
+
import Container, { SortIcon, UnstyledButton } from "./styles";
|
|
22
22
|
import { SORT_DIRECTIONS } from "./constants";
|
|
23
23
|
export var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
24
24
|
_inherits(TableHeaderCell, _React$Component);
|
|
@@ -30,7 +30,7 @@ export var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
30
30
|
args[_key] = arguments[_key];
|
|
31
31
|
}
|
|
32
32
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
33
|
-
_defineProperty(_assertThisInitialized(_this), "getSortIcon", function (isSorted) {
|
|
33
|
+
_defineProperty(_assertThisInitialized(_this), "getSortIcon", function (isSorted, ariaSortDirection) {
|
|
34
34
|
var sortDirection = _this.props.sortDirection;
|
|
35
35
|
var iconName = 'chevron-up-down-filled';
|
|
36
36
|
if (isSorted && sortDirection === SORT_DIRECTIONS.ASC) {
|
|
@@ -41,10 +41,11 @@ export var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
41
41
|
return /*#__PURE__*/React.createElement(SortIcon, null, /*#__PURE__*/React.createElement(Icon, {
|
|
42
42
|
size: "mini",
|
|
43
43
|
name: iconName,
|
|
44
|
-
"aria-
|
|
44
|
+
"aria-label": ariaSortDirection
|
|
45
45
|
}));
|
|
46
46
|
});
|
|
47
47
|
_defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
|
|
48
|
+
e.preventDefault();
|
|
48
49
|
var _this$props = _this.props,
|
|
49
50
|
onClick = _this$props.onClick,
|
|
50
51
|
onSort = _this$props.onSort,
|
|
@@ -78,11 +79,19 @@ export var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
78
79
|
onClick = _this$props2.onClick,
|
|
79
80
|
color = _this$props2.color,
|
|
80
81
|
rest = _objectWithoutProperties(_this$props2, _excluded);
|
|
82
|
+
var isSorted = sortId === id;
|
|
83
|
+
var ariaSort = isSorted ? sortDirection === SORT_DIRECTIONS.ASC ? 'ascending' : 'descending' : undefined;
|
|
84
|
+
var buttonProps = isSortable ? {
|
|
85
|
+
role: 'button',
|
|
86
|
+
onClick: this.handleClick
|
|
87
|
+
} : {};
|
|
88
|
+
var scope = colSpan ? 'colgroup' : 'col';
|
|
81
89
|
return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
|
|
82
90
|
key: id,
|
|
83
91
|
alignment: align || 'left',
|
|
84
92
|
sortable: isSortable,
|
|
85
93
|
colSpan: colSpan,
|
|
94
|
+
scope: scope,
|
|
86
95
|
width: width,
|
|
87
96
|
onClick: this.handleClick,
|
|
88
97
|
"data-tableheadercell-sortable": isSortable,
|
|
@@ -92,8 +101,12 @@ export var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
|
|
|
92
101
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
93
102
|
// @ts-ignore
|
|
94
103
|
,
|
|
95
|
-
color: color
|
|
96
|
-
|
|
104
|
+
color: color,
|
|
105
|
+
"aria-sort": ariaSort
|
|
106
|
+
}), isSortable ? /*#__PURE__*/React.createElement(UnstyledButton, buttonProps, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
"aria-live": "polite",
|
|
108
|
+
role: "status"
|
|
109
|
+
}, children || content, !children && this.getSortIcon(id === sortId, ariaSort))) : children || content);
|
|
97
110
|
}
|
|
98
111
|
}]);
|
|
99
112
|
return TableHeaderCell;
|
|
@@ -20,4 +20,8 @@ export var SortIcon = styled.span.withConfig({
|
|
|
20
20
|
})(["position:absolute;top:50%;transform:translateY(-50%);font-size:0;padding:0 ", ";"], function (props) {
|
|
21
21
|
return props.theme.space[200];
|
|
22
22
|
});
|
|
23
|
+
export var UnstyledButton = styled.button.withConfig({
|
|
24
|
+
displayName: "styles__UnstyledButton",
|
|
25
|
+
componentId: "sc-fjeapu-2"
|
|
26
|
+
})(["background:none;border:none;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;"]);
|
|
23
27
|
export default Container;
|
package/lib/Tabs/Tabs.js
CHANGED
|
@@ -79,7 +79,11 @@ var TabItemButton = /*#__PURE__*/function (_React$Component) {
|
|
|
79
79
|
tabIndex: isSelected ? 0 : -1,
|
|
80
80
|
fullWidth: fullWidth,
|
|
81
81
|
"data-qa-tab-button": id,
|
|
82
|
-
"data-qa-tab-button-state": isSelected
|
|
82
|
+
"data-qa-tab-button-state": isSelected,
|
|
83
|
+
"aria-selected": isSelected,
|
|
84
|
+
role: "tab"
|
|
85
|
+
// TODO: Add a TabPanel subcomponent for use with tabs
|
|
86
|
+
// aria-controls={tabPanelId}
|
|
83
87
|
}, rest), children));
|
|
84
88
|
}
|
|
85
89
|
}]);
|
|
@@ -178,7 +182,8 @@ var Tabs = /*#__PURE__*/function (_React$Component2) {
|
|
|
178
182
|
return /*#__PURE__*/React.createElement(Container, _extends({
|
|
179
183
|
"data-qa-tabs": "",
|
|
180
184
|
onKeyUp: this.keyHandler,
|
|
181
|
-
onSelect: onSelect
|
|
185
|
+
onSelect: onSelect,
|
|
186
|
+
role: "tablist"
|
|
182
187
|
}, qa, rest), /*#__PURE__*/React.createElement(TabButtonContext.Provider, {
|
|
183
188
|
value: {
|
|
184
189
|
selectedId: this.getSelectedId(),
|
package/lib/iconNames.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export 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"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export 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"];
|
package/lib/index.flow.js
CHANGED
|
@@ -51,7 +51,7 @@ export { default as Select } from "./Select/index.flow";
|
|
|
51
51
|
export { default as Skeleton } from "./Skeleton/index.flow";
|
|
52
52
|
export { default as SpotIllustration } from "./SpotIllustration/index.flow";
|
|
53
53
|
export { default as Stack } from "./Stack/index.flow";
|
|
54
|
-
export
|
|
54
|
+
export * from "./Switch/index.flow";
|
|
55
55
|
export { default as Table } from "./Table/index.flow";
|
|
56
56
|
export { default as TableCell } from "./TableCell/index.flow";
|
|
57
57
|
export { default as TableHeaderCell } from "./TableHeaderCell/index.flow";
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* Asset types */
|
|
2
2
|
|
|
3
|
+
export { default as IconNames } from "./iconNames";
|
|
4
|
+
export { default as SpotIllustrationNames } from "./illustrationNames";
|
|
5
|
+
export { default as PartnerLogoNames } from "./logoNames";
|
|
6
|
+
|
|
3
7
|
/* Theme and related types */
|
|
4
8
|
export * from "./systemProps";
|
|
5
9
|
export { default as theme } from "./themes/light/theme";
|
package/lib/logoNames.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export 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"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/racine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"__flow__",
|
|
@@ -54,7 +54,8 @@
|
|
|
54
54
|
"storybook": "rm -rf node_modules/.cache/storybook && start-storybook -c .storybook -p 9999",
|
|
55
55
|
"build-storybook": "build-storybook --quiet -c .storybook -o .storybook-dist",
|
|
56
56
|
"build-chromatic": "yarn build-icons && build-storybook --quiet -c .storybook -o .storybook-dist",
|
|
57
|
-
"icon-lint": "node bin/icon-lint/cli"
|
|
57
|
+
"icon-lint": "node bin/icon-lint/cli",
|
|
58
|
+
"ts-to-flow": "flowgen $FILE -o $OUTPUT --add-flow-header --no-module-exports"
|
|
58
59
|
},
|
|
59
60
|
"lint-staged": {
|
|
60
61
|
"**/*": [
|
|
@@ -161,6 +162,7 @@
|
|
|
161
162
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
162
163
|
"eslint-plugin-testing-library": "^5.9.1",
|
|
163
164
|
"flow-bin": "0.131.0",
|
|
165
|
+
"flowgen": "^1.21.0",
|
|
164
166
|
"glob": "^7.1.6",
|
|
165
167
|
"husky": "^0.14.3",
|
|
166
168
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -208,7 +210,8 @@
|
|
|
208
210
|
"react": ">=16.8.0",
|
|
209
211
|
"react-dates": "^21.8.0",
|
|
210
212
|
"react-virtualized": "9.18.5",
|
|
211
|
-
"styled-components": "^5.2.3"
|
|
213
|
+
"styled-components": "^5.2.3",
|
|
214
|
+
"react-dom": "^16.12.0"
|
|
212
215
|
},
|
|
213
216
|
"resolutions": {
|
|
214
217
|
"@types/react": "^16.0.0",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @flow strict-local
|
|
2
|
-
|
|
3
|
-
export type TypePartnerNames = 'zendesk' | 'dropbox' | 'bigcommerce' | 'bitly' | 'canva' | 'twitter' | 'twitter-audience-network' | 'whatsapp' | 'yelp' | 'youtube' | 'shopify' | 'pinterest' | 'microsoft-dynamics' | 'marketo' | 'slack' | 'woocommerce' | 'tripadvisor' | 'tumblr' | 'google-business-messages' | 'reddit' | 'hubspot' | 'feedly' | 'facebook' | 'facebook-shops' | 'facebook-groups' | 'facebook-audience-network' | 'glassdoor' | 'salesforce' | 'instagram' | 'linkedin' | 'linkedin-audience-network' | 'google-analytics' | 'messenger' | 'google-my-business' | 'google-drive' | 'tiktok' | 'sproutsocial' | 'google-play-store' | 'apple-app-store' | 'bynder';
|
|
File without changes
|
|
File without changes
|