@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Change Log
2
2
 
3
+ ## 17.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 5234f32d: Accessibility updates to Card based on Perkins review.
8
+
9
+ **Breaking changes**
10
+
11
+ - Card using role='link' will no longer work without the `CardLink` subcomponent
12
+
13
+ **Enhancements**
14
+
15
+ - Cards with `role='link'` should now wrap link text in the `CardLink` subcomponent
16
+ - Improves screen reader accessiblity by pairing Cards as links with the new `CardLink` subcomponent
17
+ - Adds `CardLink` subcomponent
18
+ - Link text wrapped in CardLink renders an anchor tag as a child of Card
19
+ - Preserves the behavior that allows the user to click the whole Card as the link
20
+ - Handles navigating to the href using default link behavior.
21
+ - Includes an `affordance` prop that makes composing a Card as a link easy and visually appealing
22
+
23
+ ### Minor Changes
24
+
25
+ - 99b984a6: Add the following Partner Logos:
26
+ - android
27
+ - apple
28
+ - github
29
+ - github-alien
30
+ - salesforce-cloud
31
+ - 6c2753bc: Adds Tableau symbol and lockup to the `PartnerLogo` component
32
+
33
+ ### Patch Changes
34
+
35
+ - b31737fa: Fixed automation for `PartnerLogo` names and type, which updated `PartnerLogoNames` and `EnumLogoNames` so they now include all logos.
36
+
37
+ **Deprecation Warning**:
38
+
39
+ - `PartnerNames` is now deprecated in favor of `PartnerLogoNames`
40
+ - `TypePartnerNames` is now deprecated in favor of `EnumLogoNames`
41
+
42
+ - fb536bed: Applies `box-sizing: content-box` property to Switch loading state in order to avoid conflicts with global CSS reset properties
43
+ - adec46fc: Updates Toast to accept Partner Logo names for 'icon' prop
44
+ - Toast erroneously did not accept Partner Logo names for the 'icon' prop, even after the Icon component was updated to render PartnerLogos.
45
+ - The Flow and Typescript types have been updated to add all partner names to the valid values for the 'icon' prop.
46
+
47
+ ## 16.0.0
48
+
49
+ ### Major Changes
50
+
51
+ - 94469294: Accessibility and api changes for the `Switch` component:
52
+ - **Breaking Change:** `a11yLabels` prop has been removed in favor of using `aria-label` or `aria-labeledby`
53
+ - New `loading` prop has been added for intermediate states for asynchronous Switch behavior
54
+ - Slight style changes and css improvements for parity with Figma library components
55
+
56
+ ### Minor Changes
57
+
58
+ - 273671d1: Add `custom-post-variables` svg to the SpotIllustrations component
59
+ - b44a5e38: Adds screen reader announcements for DatePicker visible month changes
60
+ - A visually hidden element describing which months are visible is now rendered for all DatePickers.
61
+ - This provides feedback to screen reader users when they click the previous month or next month buttons.
62
+ - 16b303d3: Add `typeIconProps` to `Banner` to allow aria props to be passed to the type `Icon`
63
+ - b44a5e38: Adds setStatusText prop to DatePicker components
64
+ - A setStatusText prop is now available for all DatePickers. It is optional but strongly recommended for accessibility purposes.
65
+ - setStatusText receives an array of the currently visible month(s) as Moment objects.
66
+ - setStatusText should return a localized string that describes the currently visible months, such as "Now showing June 2023" or "May 2023 and June 2023, now showing".
67
+ - af63482c: Table Headers now recieve scope and colgroup attributes to announce grouped columns to screen readers
68
+ - ee36f147: Sortable table headers can now be wrapped in a button and are more accessible to screen readers
69
+ - 8d5fb2c0: Adds a new `badgeColors` object that represents the available badge colors. It also adds a new `TypeBadgeColor` type that is a union of the color options in the `badgeColors` object. Both can be imported from the `@sproutsocial/racine` package.
70
+ - 90b7a542: Changes aria-haspopup to "dialog" rather than "true" since it is a dialog rather than a menu.
71
+ - 303af7c0: TabButton now supports the following props by default:
72
+
73
+ - `role="tab"`
74
+ - `aria-selected={isSelected}`
75
+
76
+ The Tabs component now has `role="tablist"` by default.
77
+
78
+ ### Patch Changes
79
+
80
+ - 894597e3: Adds `quote-solid` icon
81
+
3
82
  ## 15.1.0
4
83
 
5
84
  ### Minor Changes
@@ -1,13 +1,15 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
3
  import type { TypeIconName } from "../Icon/index.flow";
4
+ import { badgeColors } from "./constants.flow";
5
+ export type TypeBadgeColor = $Keys<typeof badgeColors>;
4
6
  export type TypeBadgeProps = {
5
7
  children?: React.Node,
6
8
  /** DEPRECATED: Use children instead of text */
7
9
  text?: React.Node,
8
10
  /** Size default is deprecated in favor of small and large */
9
11
  size?: 'small' | 'large' | 'default',
10
- badgeColor?: 'green' | 'blue' | 'purple' | 'yellow' | 'orange' | 'red' | 'neutral' | 'magenta' | 'pink' | 'aqua' | 'teal',
12
+ badgeColor?: TypeBadgeColor,
11
13
  iconName?: TypeIconName,
12
14
  /** DEPRECATED: Possibly only used for testing. Refrain from using at all if possible. (optional) */
13
15
  tip?: React.Node,
@@ -12,4 +12,17 @@ declare export var legacyBadgeColors: {|
12
12
  approval: TypeLegacyBadgeColor,
13
13
  default: TypeLegacyBadgeColor,
14
14
  suggestion: TypeLegacyBadgeColor,
15
- |};
15
+ |};
16
+ export const badgeColors = Object.freeze({
17
+ green: 'green',
18
+ blue: 'blue',
19
+ purple: 'purple',
20
+ yellow: 'yellow',
21
+ orange: 'orange',
22
+ red: 'red',
23
+ neutral: 'neutral',
24
+ magenta: 'magenta',
25
+ pink: 'pink',
26
+ aqua: 'aqua',
27
+ teal: 'teal'
28
+ });
@@ -1,5 +1,6 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
+ import type { TypeIconProps } from "../Icon/index.flow";
3
4
  export type EnumBannerType = 'success' | 'info' | 'error' | 'warning' | 'opportunity';
4
5
  export type TypeBannerProps = {
5
6
  text: React.Node,
@@ -9,6 +10,12 @@ export type TypeBannerProps = {
9
10
  onClose?: () => void,
10
11
  /** Close icon aria label */
11
12
  closeButtonLabel?: string,
13
+ /** Icon props that can be passed to the Type specific Icon */
14
+ typeIconProps?: {
15
+ ...TypeIconProps,
16
+ name?: void,
17
+ ...
18
+ },
12
19
  ...
13
20
  };
14
21
  declare var Banner: React.StatelessFunctionalComponent<TypeBannerProps>;
@@ -11,6 +11,7 @@ export type TypeDateRangePickerProps = {
11
11
  |}) => void,
12
12
  focusedInput: EnumFocusedInput,
13
13
  onFocusChange: (EnumFocusedInput) => void,
14
+ setStatusText?: (moment$Moment[]) => string,
14
15
  ...TypeCommonDatePickerProps,
15
16
  ...
16
17
  };
@@ -4,6 +4,7 @@ import { type TypeCommonDatePickerProps } from "../common.flow";
4
4
  export type TypeSingleDatePickerProps = {
5
5
  date: ?moment$Moment,
6
6
  onDateChange: (date: moment$Moment) => void,
7
+ setStatusText?: (date: moment$Moment) => string,
7
8
  focused?: boolean,
8
9
  onFocusChange?: ({
9
10
  focused: boolean,
@@ -1,2 +1,2 @@
1
1
  // @flow
2
- export type EnumIconNames = "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" | "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";
2
+ export type EnumIconNames = "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";
@@ -1,2 +1,2 @@
1
1
  // @flow
2
- export type EnumIllustrationNames = "abacus" | "analytics-offering" | "asset-cards" | "astronaut" | "binoculars" | "brand-keyword" | "browser-doc" | "business" | "calendar-event" | "calendar-reporting" | "cat-error" | "cat-no-access" | "cat" | "checkbox-alert" | "coffee-cup" | "competitors" | "compose-window" | "compose" | "computer-error" | "connect" | "contact" | "conversation" | "custom-branding" | "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";
2
+ export type EnumIllustrationNames = "abacus" | "analytics-offering" | "asset-cards" | "astronaut" | "binoculars" | "brand-keyword" | "browser-doc" | "business" | "calendar-event" | "calendar-reporting" | "cat-error" | "cat-no-access" | "cat" | "checkbox-alert" | "coffee-cup" | "competitors" | "compose-window" | "compose" | "computer-error" | "connect" | "contact" | "conversation" | "custom-branding" | "custom-post-variables" | "customer-service" | "dashboard" | "exclamation-mark" | "face-happy" | "find-bookmark" | "flask" | "general-topic" | "global-features" | "global-trend" | "grow-large" | "grow" | "hands-raised" | "headset" | "heartbeat-connection" | "instagram-links" | "invoice" | "jewel" | "keyword-tracking" | "lightbulb-alt" | "lightbulb" | "like-conversation" | "link-broken" | "link-messages" | "link-sections" | "link-upload" | "listening-pendo" | "listening-sentiment" | "listening-topic-templates" | "listening-tour" | "listening" | "loading" | "mailbox-empty" | "mailbox-full" | "megaphone" | "message" | "molecule" | "network-data" | "no-messages-found" | "no-notifications" | "note" | "notification" | "notifications-onboarding" | "notifications" | "organize-message" | "outbox-queue" | "outbox-reviews" | "pdf" | "planning" | "podium" | "pointer" | "publish-assets" | "publish-links" | "publishing-notifications" | "publishing" | "puzzle-piece" | "question-mark" | "reporting-folder" | "reporting" | "review-location" | "review" | "robot-assembly" | "robot-error" | "robot-happy" | "rocket" | "schedule-date" | "schedule-messages" | "search-keywords" | "search-success" | "search-trends" | "search" | "security" | "sentiment" | "shopping-bag" | "spark-line" | "sprout-mobile-app" | "stamp" | "storefront" | "success" | "tag-message" | "tag" | "team-roles" | "team" | "telescope" | "tha-mel" | "thumbs-up" | "toggle-switch" | "toolset-strength" | "tracking-time" | "twitter-messages" | "twitter-profiles" | "under-construction" | "unsubscribe" | "upward-trend" | "user-task" | "user-team" | "variable-table" | "view-connections" | "vip-list" | "warning" | "wifi" | "workflow-steps";
@@ -1,2 +1,2 @@
1
1
  // @flow
2
- export type EnumLogoNames = "adobe-experience-manager-dark" | "adobe-experience-manager" | "apple-app-store-dark" | "apple-app-store" | "bigcommerce-dark" | "bigcommerce-lockup-dark" | "bigcommerce-lockup" | "bigcommerce" | "bitly-dark" | "bitly" | "bynder-dark" | "bynder" | "canva-dark" | "canva" | "dropbox-dark" | "dropbox-lockup-dark" | "dropbox-lockup" | "dropbox-wordmark-dark" | "dropbox-wordmark" | "dropbox" | "facebook-audience-network-dark" | "facebook-audience-network" | "facebook-dark" | "facebook-groups-dark" | "facebook-groups" | "facebook-shops-dark" | "facebook-shops" | "facebook" | "feedly-dark" | "feedly" | "glassdoor-dark" | "glassdoor" | "google-analytics-dark" | "google-analytics" | "google-business-messages-dark" | "google-business-messages" | "google-drive-dark" | "google-drive" | "google-my-business-dark" | "google-my-business" | "google-play-store-dark" | "google-play-store" | "hubspot-dark" | "hubspot" | "instagram-dark" | "instagram" | "linkedin-audience-network-dark" | "linkedin-audience-network" | "linkedin-dark" | "linkedin" | "marketo-dark" | "marketo" | "messenger-dark" | "messenger" | "microsoft-dynamics-dark" | "microsoft-dynamics" | "pinterest-dark" | "pinterest" | "reddit-dark" | "reddit" | "salesforce-dark" | "salesforce" | "shopify-dark" | "shopify" | "slack-dark" | "slack" | "sproutsocial-dark" | "sproutsocial-lockup-dark" | "sproutsocial-lockup" | "sproutsocial-wordmark-dark" | "sproutsocial-wordmark" | "sproutsocial" | "tiktok-dark" | "tiktok" | "tripadvisor-dark" | "tripadvisor" | "tumblr-dark" | "tumblr" | "twitter-audience-network-dark" | "twitter-audience-network" | "twitter-dark" | "twitter" | "whatsapp-dark" | "whatsapp" | "woocommerce-dark" | "woocommerce" | "yelp-dark" | "yelp" | "youtube-dark" | "youtube" | "zendesk-dark" | "zendesk-lockup-dark" | "zendesk-lockup" | "zendesk-wordmark-dark" | "zendesk-wordmark" | "zendesk";
2
+ export type EnumLogoNames = "adobe-experience-manager" | "android" | "apple-app-store" | "apple" | "bigcommerce" | "bitly" | "bynder" | "canva" | "dropbox" | "facebook-audience-network" | "facebook" | "facebook-groups" | "facebook-shops" | "feedly" | "github" | "glassdoor" | "google-analytics" | "google-business-messages" | "google-drive" | "google-my-business" | "google-play-store" | "hubspot" | "instagram" | "linkedin-audience-network" | "linkedin" | "marketo" | "messenger" | "microsoft-dynamics" | "pinterest" | "reddit-alien" | "reddit" | "salesforce-cloud" | "salesforce" | "shopify" | "slack" | "sproutsocial" | "tableau" | "tiktok" | "tripadvisor" | "tumblr" | "twitter-audience-network" | "twitter" | "whatsapp" | "woocommerce" | "yelp" | "youtube" | "zendesk";
@@ -2,10 +2,10 @@
2
2
  import * as React from 'react';
3
3
  import type { StyledComponent } from 'styled-components';
4
4
  import type { EnumIconNames } from "../EnumIconNames.flow";
5
+ import type { EnumLogoNames } from "../EnumLogoNames.flow";
5
6
  import type { TypeWithDisplayName } from "../types/shared.flow";
6
7
  import type { TypeTheme } from "../types/theme.flow";
7
8
  import deprecatedIcons from "./deprecatedIcons.flow";
8
- import type { TypePartnerNames } from "../PartnerLogo/TypePartnerNames.flow";
9
9
  export type TypeIconSize = 'mini' // 12x12
10
10
  // TODO: deprecate default in favor of small in future release
11
11
  | 'default' // 16x16
@@ -14,7 +14,7 @@ export type TypeIconSize = 'mini' // 12x12
14
14
  | 'large' // 32x32
15
15
  | 'jumbo'; // 64x64
16
16
 
17
- export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons> | TypePartnerNames;
17
+ export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons> | EnumLogoNames;
18
18
  export type TypeIconProps = {
19
19
  /** Name of the icon in the svg sprite */
20
20
  name: TypeIconName,
@@ -276,6 +276,7 @@ module.exports = {
276
276
  "puzzle-piece": "0 0 18 16",
277
277
  "qr-code": "0 0 16 16",
278
278
  "queue": "0 0 16 16",
279
+ "quotes-solid": "0 0 18 18",
279
280
  "recommendation": "0 0 16 16",
280
281
  "reddit-alien": "0 0 16 16",
281
282
  "reddit": "0 0 16 16",
@@ -22,6 +22,7 @@ module.exports = {
22
22
  "contact": "0 0 305 145",
23
23
  "conversation": "0 0 330 236",
24
24
  "custom-branding": "0 0 168 164",
25
+ "custom-post-variables": "0 0 87 57",
25
26
  "customer-service": "0 0 302 155",
26
27
  "dashboard": "0 0 337 195",
27
28
  "exclamation-mark": "0 0 219 143",
@@ -1,8 +1,12 @@
1
1
  module.exports = {
2
2
  "adobe-experience-manager-dark": "0 0 16 17",
3
3
  "adobe-experience-manager": "0 0 16 17",
4
+ "android-dark": "0 0 18 18",
5
+ "android": "0 0 18 18",
4
6
  "apple-app-store-dark": "0 0 140 140",
5
7
  "apple-app-store": "0 0 140 140",
8
+ "apple-dark": "0 0 18 18",
9
+ "apple": "0 0 18 18",
6
10
  "bigcommerce-dark": "0 0 140 140",
7
11
  "bigcommerce-lockup-dark": "0 0 291 66",
8
12
  "bigcommerce-lockup": "0 0 291 66",
@@ -29,6 +33,8 @@ module.exports = {
29
33
  "facebook": "0 0 141 139",
30
34
  "feedly-dark": "0 0 141 123",
31
35
  "feedly": "0 0 141 123",
36
+ "github-dark": "0 0 18 18",
37
+ "github": "0 0 18 18",
32
38
  "glassdoor-dark": "0 0 140 196",
33
39
  "glassdoor": "0 0 140 196",
34
40
  "google-analytics-dark": "0 0 140 160",
@@ -57,8 +63,12 @@ module.exports = {
57
63
  "microsoft-dynamics": "0 0 140 227",
58
64
  "pinterest-dark": "0 0 140 141",
59
65
  "pinterest": "0 0 140 141",
66
+ "reddit-alien-dark": "0 0 18 18",
67
+ "reddit-alien": "0 0 18 18",
60
68
  "reddit-dark": "0 0 140 140",
61
69
  "reddit": "0 0 140 140",
70
+ "salesforce-cloud-dark": "0 0 20 18",
71
+ "salesforce-cloud": "0 0 20 18",
62
72
  "salesforce-dark": "0 0 140 99",
63
73
  "salesforce": "0 0 140 99",
64
74
  "shopify-dark": "0 0 140 159",
@@ -71,6 +81,10 @@ module.exports = {
71
81
  "sproutsocial-wordmark-dark": "0 0 320 52",
72
82
  "sproutsocial-wordmark": "0 0 320 52",
73
83
  "sproutsocial": "0 0 140 174",
84
+ "tableau-dark": "0 0 18 18",
85
+ "tableau-lockup-dark": "0 0 291 56",
86
+ "tableau-lockup": "0 0 291 56",
87
+ "tableau": "0 0 18 18",
74
88
  "tiktok-dark": "0 0 140 159",
75
89
  "tiktok": "0 0 140 159",
76
90
  "tripadvisor-dark": "0 0 140 140",
@@ -1,9 +1,14 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
- import type { TypePartnerNames } from "./TypePartnerNames.flow";
3
+ import type { EnumLogoNames } from "../EnumLogoNames.flow";
4
+
5
+ /**
6
+ * @deprecated Use EnumLogoNames instead
7
+ */
8
+ export type TypePartnerNames = EnumLogoNames;
4
9
  export type TypePartnerLogoProps = {
5
10
  /** The name of the partner whose logo you want to render. */
6
- partnerName: TypePartnerNames,
11
+ partnerName: EnumLogoNames,
7
12
  /** Manually override the default mode behavior by rendering a logo based on the background it's displayed on. */
8
13
  backgroundType?: 'dark' | 'light',
9
14
  logoType?: 'symbol' | 'wordmark' | 'lockup',
@@ -1,3 +1,2 @@
1
1
  // @flow
2
- export * from "./PartnerLogo.flow";
3
- export * from "./TypePartnerNames.flow";
2
+ export * from "./PartnerLogo.flow";
@@ -1,24 +1,5 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
- export type TypeSwitchProps = {
4
- onClick: (e: SyntheticEvent<HTMLButtonElement>, checked: boolean) => void,
5
- checked: boolean,
6
- /** Customizable object to pass in localized "On" and "Off" label text for screen readers {"on": ONTEXT, "off": OFFTEXT} */
7
- a11yLabels: {
8
- on: string,
9
- off: string,
10
- ...
11
- },
12
- /** Disables interaction on component and applies disabled styles */
13
- disabled: boolean,
14
- name?: string,
15
- qa?: Object,
16
- ...
17
- };
18
- declare var Switch: React.ComponentType<{
19
- ...TypeSwitchProps,
20
- a11yLabels?: $PropertyType<TypeSwitchProps, 'a11yLabels'>,
21
- disabled?: $PropertyType<TypeSwitchProps, 'disabled'>,
22
- ...
23
- }>;
3
+ import type { TypeSwitchProps } from "./SwitchTypes.flow";
4
+ declare export var Switch: React.StatelessFunctionalComponent<TypeSwitchProps>;
24
5
  declare export default typeof Switch;
@@ -0,0 +1,16 @@
1
+ // @flow
2
+ import type { TypeColorSystemProps, TypeLayoutSystemProps, TypeSpaceSystemProps } from "../systemProps/index.flow";
3
+ export type TypeSwitchProps = {
4
+ ...TypeColorSystemProps,
5
+ ...TypeLayoutSystemProps,
6
+ ...TypeSpaceSystemProps,
7
+ onClick: (e: SyntheticEvent<HTMLButtonElement>, checked: boolean) => void,
8
+ checked: boolean,
9
+ name?: string,
10
+ loading?: boolean,
11
+ disabled?: boolean,
12
+ a11yLabels?: void,
13
+
14
+ // removed prop
15
+ ...
16
+ };
@@ -1,2 +1,3 @@
1
1
  // @flow
2
- export * from "./Switch.flow";
2
+ export * from "./Switch.flow";
3
+ export * from "./SwitchTypes.flow";
@@ -1,13 +1,13 @@
1
1
  // @flow
2
2
  import * as React from 'react';
3
3
  import type { TypeColor } from "../types/theme.flow";
4
- import type { EnumIconNames } from "../EnumIconNames.flow";
4
+ import type { TypeIconName } from "../Icon/Icon.flow";
5
5
  export type TypeToastTheme = 'info' | 'success' | 'warning' | 'error';
6
6
  export type TypeToastProps = {|
7
7
  theme?: TypeToastTheme,
8
8
  content: React.Node,
9
9
  color?: TypeColor,
10
- icon?: EnumIconNames,
10
+ icon?: TypeIconName,
11
11
  |};
12
12
  export type TypeToastOptions = {|
13
13
  ...TypeToastProps,
@@ -58,7 +58,7 @@ export { default as Select } from "./Select/index.flow";
58
58
  export { default as Skeleton } from "./Skeleton/index.flow";
59
59
  export { default as SpotIllustration } from "./SpotIllustration/index.flow";
60
60
  export { default as Stack } from "./Stack/index.flow";
61
- export { default as Switch } from "./Switch/index.flow";
61
+ export * from "./Switch/index.flow";
62
62
  export { default as Table } from "./Table/index.flow";
63
63
  export { default as TableCell } from "./TableCell/index.flow";
64
64
  export { default as TableHeaderCell } from "./TableHeaderCell/index.flow";
@@ -105,15 +105,13 @@ export type { EnumDensities, TypeMessageProps } from "./Message/index.flow";
105
105
  export type { TypeModalProps, TypeModalContentProps, TypeModalFooterProps, TypeModalHeaderProps } from "./Modal/index.flow";
106
106
  export type { TypeNumeralProps } from "./Numeral/index.flow";
107
107
  export type { TypeOverflowListProps, TypeVirtualizedListProps } from "./OverflowList/index.flow";
108
- export type { TypePartnerLogoProps } from "./PartnerLogo/index.flow";
109
- export type { TypePartnerNames } from "./PartnerLogo/TypePartnerNames.flow";
108
+ export type { TypePartnerLogoProps, TypePartnerNames } from "./PartnerLogo/index.flow";
110
109
  export type { EnumPlacements, TypePopoutProps } from "./Popout/index.flow";
111
110
  export type { TypeRadioProps } from "./Radio/index.flow";
112
111
  export type { TypeSegmentedControlProps, TypeSegmentedControlItemProps } from "./SegmentedControl/index.flow";
113
112
  export type { TypeSelectProps } from "./Select/index.flow";
114
113
  export type { TypeSpotIllustrationProps } from "./SpotIllustration/index.flow";
115
114
  export type { TypeStackProps } from "./Stack/index.flow";
116
- export type { TypeSwitchProps } from "./Switch/index.flow";
117
115
  export type { TypeTableProps, TypeTableRow } from "./Table/index.flow";
118
116
  export type { TypeTableCell, TypeTableCellProps } from "./TableCell/index.flow";
119
117
  export type { TypeEnumSortDirections, TypeTableHeaderCell,
@@ -2,5 +2,6 @@
2
2
 
3
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); }
4
4
  var React = _interopRequireWildcard(require("react"));
5
+ var _constants = require("./constants.flow");
5
6
  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); }
6
7
  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; }
@@ -1 +1,20 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.badgeColors = void 0;
7
+ var badgeColors = Object.freeze({
8
+ green: 'green',
9
+ blue: 'blue',
10
+ purple: 'purple',
11
+ yellow: 'yellow',
12
+ orange: 'orange',
13
+ red: 'red',
14
+ neutral: 'neutral',
15
+ magenta: 'magenta',
16
+ pink: 'pink',
17
+ aqua: 'aqua',
18
+ teal: 'teal'
19
+ });
20
+ exports.badgeColors = badgeColors;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.legacyBadgeColors = void 0;
6
+ exports.legacyBadgeColors = exports.badgeColors = void 0;
7
7
  var defaultPurple = {
8
8
  color: 'colors.text.body',
9
9
  background: 'colors.container.background.decorative.purple'
@@ -47,4 +47,18 @@ var legacyBadgeColors = {
47
47
  default: defaultPurple,
48
48
  suggestion: suggestion
49
49
  };
50
- exports.legacyBadgeColors = legacyBadgeColors;
50
+ exports.legacyBadgeColors = legacyBadgeColors;
51
+ var badgeColors = {
52
+ green: 'green',
53
+ blue: 'blue',
54
+ purple: 'purple',
55
+ yellow: 'yellow',
56
+ orange: 'orange',
57
+ red: 'red',
58
+ neutral: 'neutral',
59
+ magenta: 'magenta',
60
+ pink: 'pink',
61
+ aqua: 'aqua',
62
+ teal: 'teal'
63
+ };
64
+ exports.badgeColors = badgeColors;
@@ -10,7 +10,7 @@ var _Box = _interopRequireDefault(require("../Box"));
10
10
  var _Button = _interopRequireDefault(require("../Button"));
11
11
  var _Icon = _interopRequireDefault(require("../Icon"));
12
12
  var _styles = _interopRequireWildcard(require("./styles"));
13
- var _excluded = ["type", "text", "onClose", "closeButtonLabel"];
13
+ var _excluded = ["type", "text", "onClose", "closeButtonLabel", "typeIconProps"];
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
  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); }
16
16
  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; }
@@ -56,6 +56,7 @@ var Banner = function Banner(_ref) {
56
56
  onClose = _ref.onClose,
57
57
  _ref$closeButtonLabel = _ref.closeButtonLabel,
58
58
  closeButtonLabel = _ref$closeButtonLabel === void 0 ? 'Close' : _ref$closeButtonLabel,
59
+ typeIconProps = _ref.typeIconProps,
59
60
  rest = _objectWithoutProperties(_ref, _excluded);
60
61
  return /*#__PURE__*/React.createElement(_styles.default, _extends({
61
62
  type: type,
@@ -66,14 +67,14 @@ var Banner = function Banner(_ref) {
66
67
  display: "flex",
67
68
  alignItems: "center",
68
69
  width: 1
69
- }, /*#__PURE__*/React.createElement(_styles.StyledBannerIcon, {
70
+ }, /*#__PURE__*/React.createElement(_styles.StyledBannerIcon, _extends({
70
71
  name: getBannerIconName(type),
71
72
  color: getBannerIconColor(type),
72
73
  className: "Icon",
73
74
  fixedWidth: true,
74
75
  mt: "3px",
75
76
  mr: 400
76
- }), text, onClose && /*#__PURE__*/React.createElement(_Box.default, {
77
+ }, typeIconProps)), text, onClose && /*#__PURE__*/React.createElement(_Box.default, {
77
78
  ml: "auto",
78
79
  pl: 400,
79
80
  alignSelf: "flex-start"
@@ -51,13 +51,17 @@ var Card = function Card(_ref) {
51
51
  hasSubComponent = _useState2[0],
52
52
  setHasSubComponent = _useState2[1];
53
53
  var containerRef = (0, _react.useRef)(null);
54
+ var linkRef = (0, _react.useRef)(null);
55
+ var isRoleLink = role === 'link';
54
56
  var checkedConditions = role === 'checkbox' ? selected : undefined;
57
+ var cardContext = {
58
+ setHasSubComponent: setHasSubComponent,
59
+ href: href,
60
+ linkRef: linkRef
61
+ };
55
62
  var handleClickConditions = function handleClickConditions(e) {
56
- return role === 'link' ? (0, _utils.navigateTo)({
57
- e: e,
58
- href: href,
59
- ref: containerRef
60
- }) : onClick === null || onClick === void 0 ? void 0 : onClick(e);
63
+ var _linkRef$current;
64
+ return isRoleLink ? (_linkRef$current = linkRef.current) === null || _linkRef$current === void 0 ? void 0 : _linkRef$current.click() : onClick === null || onClick === void 0 ? void 0 : onClick(e);
61
65
  };
62
66
  var handleKeyDown = function handleKeyDown(e) {
63
67
  return (0, _utils.onKeyDown)({
@@ -69,8 +73,8 @@ var Card = function Card(_ref) {
69
73
  });
70
74
  };
71
75
  return /*#__PURE__*/_react.default.createElement(_styles.StyledCard, _extends({
72
- tabIndex: 0,
73
- role: role,
76
+ tabIndex: isRoleLink ? -1 : 0,
77
+ role: isRoleLink ? undefined : role,
74
78
  onClick: handleClickConditions,
75
79
  onKeyDown: handleKeyDown,
76
80
  $elevation: elevation,
@@ -79,11 +83,12 @@ var Card = function Card(_ref) {
79
83
  "aria-checked": checkedConditions,
80
84
  $disabled: disabled,
81
85
  "aria-disabled": disabled && disabled,
82
- $compositionalComponents: hasSubComponent
86
+ $compositionalComponents: hasSubComponent,
87
+ $isRoleLink: isRoleLink
83
88
  }, rest), /*#__PURE__*/_react.default.createElement(_subComponents.SelectedIcon, {
84
89
  $selected: selected
85
90
  }), /*#__PURE__*/_react.default.createElement(_utils.SubComponentContext.Provider, {
86
- value: setHasSubComponent
91
+ value: cardContext
87
92
  }, children));
88
93
  };
89
94
  var _default = Card;
@@ -7,7 +7,8 @@ var _exportNames = {
7
7
  Card: true,
8
8
  CardHeader: true,
9
9
  CardContent: true,
10
- CardFooter: true
10
+ CardFooter: true,
11
+ CardLink: true
11
12
  };
12
13
  Object.defineProperty(exports, "Card", {
13
14
  enumerable: true,
@@ -33,6 +34,12 @@ Object.defineProperty(exports, "CardHeader", {
33
34
  return _subComponents.CardHeader;
34
35
  }
35
36
  });
37
+ Object.defineProperty(exports, "CardLink", {
38
+ enumerable: true,
39
+ get: function get() {
40
+ return _subComponents.CardLink;
41
+ }
42
+ });
36
43
  exports.default = void 0;
37
44
  var _Card = _interopRequireDefault(require("./Card"));
38
45
  var _subComponents = require("./subComponents");