@sproutsocial/racine 11.0.0 → 11.0.2-beta.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 (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/__flow__/Breadcrumb/index.js +2 -0
  3. package/__flow__/Collapsible/index.js +3 -0
  4. package/__flow__/Drawer/index.js +4 -0
  5. package/__flow__/EnumIconNames.js +1 -1
  6. package/__flow__/Fieldset/index.js +8 -2
  7. package/__flow__/Icon/index.js +5 -1
  8. package/__flow__/IconViewBoxes.js +1 -1
  9. package/__flow__/Listbox/index.test.js +0 -18
  10. package/__flow__/Menu/__snapshots__/index.test.js.snap +4 -272
  11. package/__flow__/Menu/index.js +17 -2
  12. package/__flow__/Menu/index.stories.js +19 -1
  13. package/__flow__/Menu/index.test.js +0 -4
  14. package/__flow__/Menu/styles.js +11 -9
  15. package/__flow__/Message/index.js +7 -0
  16. package/__flow__/Modal/index.js +5 -0
  17. package/__flow__/Popout/index.js +4 -1
  18. package/__flow__/SegmentedControl/index.js +2 -0
  19. package/__flow__/Table/index.js +6 -0
  20. package/__flow__/Text/index.js +8 -0
  21. package/commonjs/Breadcrumb/index.js +1 -0
  22. package/commonjs/Collapsible/index.js +2 -0
  23. package/commonjs/Drawer/index.js +3 -0
  24. package/commonjs/Fieldset/index.js +6 -2
  25. package/commonjs/Icon/index.js +3 -1
  26. package/commonjs/IconViewBoxes.js +2 -0
  27. package/commonjs/Menu/index.js +26 -9
  28. package/commonjs/Menu/styles.js +5 -5
  29. package/commonjs/Message/index.js +13 -0
  30. package/commonjs/Modal/index.js +4 -0
  31. package/commonjs/Popout/index.js +5 -2
  32. package/commonjs/SegmentedControl/index.js +1 -0
  33. package/commonjs/Table/index.js +5 -0
  34. package/commonjs/Text/index.js +7 -0
  35. package/commonjs/include-icons.js +1 -1
  36. package/dist/iconList.js +1 -1
  37. package/dist/icons.svg +1 -1
  38. package/icons/address-card-outline.svg +3 -0
  39. package/icons/deconstructed-negative-sentiment.svg +1 -1
  40. package/icons/deconstructed-neutral-sentiment.svg +1 -1
  41. package/icons/deconstructed-positive-sentiment.svg +1 -1
  42. package/icons/magic-wand.svg +3 -0
  43. package/icons/whatsapp.svg +5 -5
  44. package/includeIcons.js +1 -1
  45. package/lib/Breadcrumb/index.js +1 -0
  46. package/lib/Collapsible/index.js +2 -0
  47. package/lib/Drawer/index.js +3 -0
  48. package/lib/Fieldset/index.js +6 -2
  49. package/lib/Icon/index.js +3 -1
  50. package/lib/IconViewBoxes.js +2 -0
  51. package/lib/Menu/index.js +26 -9
  52. package/lib/Menu/styles.js +6 -6
  53. package/lib/Message/index.js +13 -0
  54. package/lib/Modal/index.js +4 -0
  55. package/lib/Popout/index.js +5 -2
  56. package/lib/SegmentedControl/index.js +1 -0
  57. package/lib/Table/index.js +5 -0
  58. package/lib/Text/index.js +7 -0
  59. package/lib/include-icons.js +1 -1
  60. package/package.json +1 -1
  61. package/__flow__/Listbox/__snapshots__/index.test.js.snap +0 -1314
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 82a6a89: Adjusted styling of selected state to be less confusing for users based on org wide feedback
8
+
3
9
  ## 11.0.0
4
10
 
5
11
  ### Major Changes
@@ -81,4 +81,6 @@ const Breadcrumb = ({
81
81
 
82
82
  Breadcrumb.Item = BreadcrumbItem;
83
83
 
84
+ Breadcrumb.Item.displayName = "Breadcrumb.Item";
85
+
84
86
  export default Breadcrumb;
@@ -127,4 +127,7 @@ const Panel = ({ children, ...rest }) => {
127
127
  Collapsible.Trigger = Trigger;
128
128
  Collapsible.Panel = Panel;
129
129
 
130
+ Collapsible.Trigger.displayName = "Collapsible.Trigger";
131
+ Collapsible.Panel.displayName = "Collapsible.Panel";
132
+
130
133
  export default Collapsible;
@@ -276,4 +276,8 @@ DrawerContainer.Header = DrawerHeader;
276
276
  DrawerContainer.Content = DrawerContent;
277
277
  DrawerContainer.CloseButton = DrawerCloseButton;
278
278
 
279
+ DrawerContainer.Header.displayName = "Drawer.Header";
280
+ DrawerContainer.Content.displayName = "Drawer.Content";
281
+ DrawerContainer.CloseButton.displayName = "Drawer.CloseButton";
282
+
279
283
  export default DrawerContainer;
@@ -1,2 +1,2 @@
1
1
  // @flow
2
- export type EnumIconNames = "active-listener" | "add-item" | "add-keyword" | "add-team-member" | "add-variable" | "address-card-solid" | "adobe-experience-manager" | "ads" | "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" | "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-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" | "glassdoor" | "glasses" | "globe" | "google-analytics-color" | "google-business-messages" | "google-drive" | "google-my-business" | "grip" | "h1" | "h2" | "hamburger" | "hashtag" | "headset" | "heart-outline" | "heart" | "heartbeat" | "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" | "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" | "plus" | "positive-sentiment" | "power-up" | "profile-connect" | "profile-disconnect" | "publishing-outline" | "publishing" | "puzzle-piece" | "qr-code" | "queue" | "recommendation" | "reddit-alien" | "reddit" | "referrals" | "refresh" | "rejected" | "reply-outline" | "reply" | "reporting-period" | "reporting" | "reports-home" | "reports" | "retweet" | "rss" | "sales" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "sent-message-outline" | "sent-message" | "share" | "shopify" | "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-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "team" | "text-asset" | "text" | "tiktok" | "times" | "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" | "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" | "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" | "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-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" | "glassdoor" | "glasses" | "globe" | "google-analytics-color" | "google-business-messages" | "google-drive" | "google-my-business" | "grip" | "h1" | "h2" | "hamburger" | "hashtag" | "headset" | "heart-outline" | "heart" | "heartbeat" | "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" | "plus" | "positive-sentiment" | "power-up" | "profile-connect" | "profile-disconnect" | "publishing-outline" | "publishing" | "puzzle-piece" | "qr-code" | "queue" | "recommendation" | "reddit-alien" | "reddit" | "referrals" | "refresh" | "rejected" | "reply-outline" | "reply" | "reporting-period" | "reporting" | "reports-home" | "reports" | "retweet" | "rss" | "sales" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "sent-message-outline" | "sent-message" | "share" | "shopify" | "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-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "team" | "text-asset" | "text" | "tiktok" | "times" | "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" | "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";
@@ -45,7 +45,7 @@ const Fieldset = ({
45
45
  </Box>
46
46
  );
47
47
 
48
- Fieldset.Legend = ({ children, ...rest }) => (
48
+ const FieldsetLegend = ({ children, ...rest }) => (
49
49
  <Text
50
50
  as="legend"
51
51
  fontSize={300}
@@ -58,10 +58,16 @@ Fieldset.Legend = ({ children, ...rest }) => (
58
58
  </Text>
59
59
  );
60
60
 
61
- Fieldset.HelperText = ({ children, ...rest }) => (
61
+ const FieldsetHelperText = ({ children, ...rest }) => (
62
62
  <Text as="p" fontSize={200} mb={300} {...rest}>
63
63
  {children}
64
64
  </Text>
65
65
  );
66
66
 
67
+ Fieldset.Legend = FieldsetLegend;
68
+ Fieldset.HelperText = FieldsetHelperText;
69
+
70
+ Fieldset.Legend.displayName = "Fieldset.Legend";
71
+ Fieldset.HelperText.displayName = "Fieldset.HelperText";
72
+
67
73
  export default Fieldset;
@@ -83,7 +83,7 @@ type TypeToggleProps = {
83
83
  ariaLabel?: string,
84
84
  };
85
85
 
86
- Icon.Toggle = ({
86
+ const IconToggle = ({
87
87
  activeName,
88
88
  inactiveName,
89
89
  isActive,
@@ -115,4 +115,8 @@ Icon.Toggle = ({
115
115
  );
116
116
  };
117
117
 
118
+ Icon.Toggle = IconToggle;
119
+
120
+ Icon.Toggle.displayName = "Icon.Toggle";
121
+
118
122
  export default Icon;
@@ -1 +1 @@
1
- module.exports = {"active-listener":"0 0 16 16","add-item":"0 0 16 16","add-keyword":"0 0 16 16","add-team-member":"0 0 18 13","add-variable":"0 0 18 14","address-card-solid":"0 0 18 16","adobe-experience-manager":"0 0 16 18","ads":"0 0 9 16","android":"0 0 14 16","apple":"0 0 14 16","approval-indicator-outline":"0 0 14 16","approval-indicator":"0 0 14 16","archive":"0 0 16 16","arrow-down-line":"0 0 14 16","arrow-down":"0 0 16 16","arrow-left-line":"0 0 16 18","arrow-left":"0 0 16 16","arrow-right-line":"0 0 16 18","arrow-right":"0 0 16 16","arrow-up-line":"0 0 14 16","arrow-up":"0 0 16 16","arrows":"0 0 16 16","asset-library-outline":"0 0 16 16","asset-library":"0 0 16 16","assign":"0 0 18 15","atom":"0 0 14 16","audio":"0 0 16 14","back-to-top":"0 0 15 16","bambu-icon-outline":"0 0 16 16","bambu-icon":"0 0 16 16","barcode":"0 0 18 16","basketball":"0 0 16 16","bell-outline":"0 0 14 16","bigcommerce":"0 0 16 16","bitly":"0 0 16 16","bold":"0 0 16 16","book":"0 0 14 16","bot":"0 0 16 16","browser":"0 0 16 16","business":"0 0 16 16","calendar-outline":"0 0 14 16","calendar":"0 0 14 16","camera-outline":"0 0 18 16","camera-story":"0 0 18 16","camera":"0 0 18 16","campaign":"0 0 16 14","canva":"0 0 16 18","carousel":"0 0 16 18","cart-plus-outline":"0 0 17 15","cart-plus":"0 0 17 15","check":"0 0 16 16","chevron-down-filled":"0 0 16 21","chevron-down":"0 0 16 18","chevron-left":"0 0 10 16","chevron-right":"0 0 10 17","chevron-up-down-filled":"0 0 12 20","chevron-up-filled":"0 0 16 21","chevron-up":"0 0 16 18","circle-check-outline":"0 0 16 16","circle-check":"0 0 16 16","circle":"0 0 16 16","circle+":"0 0 16 16","circles":"0 0 16 16","circlex":"0 0 16 16","click-to-view":"0 0 12 16","clicks":"0 0 10 16","clipboard-outline":"0 0 12 16","clipboard":"0 0 12 16","clock":"0 0 16 16","closed-captioning":"0 0 16 16","cloud":"0 0 16 13","code":"0 0 18 16","columns":"0 0 16 16","comment-alt-outline":"0 0 16 15","comment-alt":"0 0 16 15","comment-lines-alt-outline":"0 0 16 16","comment":"0 0 16 13","compact-density":"0 0 16 16","compact-indicator":"0 0 16 16","comparison":"0 0 16 14","competitor":"0 0 14 16","compose":"0 0 16 16","content-suggestions":"0 0 16 16","credit-card":"0 0 16 14","crop":"0 0 16 16","crown":"0 0 16 16","dashboard":"0 0 16 14","deconstructed-negative-sentiment":"0 0 18 18","deconstructed-neutral-sentiment":"0 0 18 18","deconstructed-positive-sentiment":"0 0 18 18","discovery":"0 0 16 16","dislike-outline":"0 0 15 16","dislike":"0 0 16 16","dm-link-outline":"0 0 16 16","dm-link":"0 0 16 16","dotdotdot":"0 0 16 16","download":"0 0 16 16","drafts-outline":"0 0 12 16","drafts":"0 0 12 16","dropbox":"0 0 18 16","duplicate-outline":"0 0 14 16","duplicate":"0 0 14 16","emoji-outline":"0 0 16 16","emoji":"0 0 16 16","empty-image":"0 0 16 18","engagement-per-post":"0 0 16 16","engagements":"0 0 16 15","error":"0 0 16 16","exchange-alt":"0 0 16 16","expanded-indicator":"0 0 16 16","export":"0 0 14 17","extended-circles":"0 0 16 16","external-link-alt":"0 0 16 16","external-link":"0 0 16 16","extreme-negative-sentiment":"0 0 16 16","eye-outline":"0 0 18 16","eye-slash-outline":"0 0 20 16","eye-slash":"0 0 20 16","eye":"0 0 18 16","facebook-audience-network":"0 0 16 16","facebook-branded-content-outline":"0 0 18 15","facebook-branded-content":"0 0 18 15","facebook-groups":"0 0 16 16","facebook":"0 0 16 16","fb-reactions-angry":"0 0 16 16","fb-reactions-haha":"0 0 16 16","fb-reactions-like":"0 0 16 16","fb-reactions-love":"0 0 16 16","fb-reactions-sad":"0 0 16 16","fb-reactions-wow":"0 0 16 16","feedly":"0 0 16 15","feeds":"0 0 16 15","female":"0 0 11 18","file-chart-line":"0 0 12 16","file-edit":"0 0 12 16","file-times-solid":"0 0 12 16","filter":"0 0 16 16","flag-outline":"0 0 16 16","flag":"0 0 16 16","flat-negative-sentiment-outline":"0 0 18 18","flat-negative-sentiment":"0 0 18 18","flat-neutral-sentiment-outline":"0 0 18 18","flat-neutral-sentiment":"0 0 18 18","flat-positive-sentiment-outline":"0 0 18 18","flat-positive-sentiment":"0 0 18 18","folder-open":"0 0 16 15","folder":"0 0 16 16","follow-outline":"0 0 20 16","follow":"0 0 20 16","follower-increase":"0 0 19 16","following":"0 0 20 16","font":"0 0 18 16","full-access":"0 0 16 16","gear":"0 0 16 16","gears":"0 0 16 16","glassdoor":"0 0 16 16","glasses":"0 0 18 14","globe":"0 0 16 16","google-analytics-color":"0 0 14 18","google-business-messages":"0 0 16 16","google-drive":"0 0 16 14","google-my-business":"0 0 16 14","grip":"0 0 8 18","h1":"0 0 16 16","h2":"0 0 16 16","hamburger":"0 0 16 18","hashtag":"0 0 16 16","headset":"0 0 16 16","heart-outline":"0 0 16 16","heart":"0 0 16 16","heartbeat":"0 0 18 16","help":"0 0 16 16","hiking":"0 0 16 16","history":"0 0 16 16","home":"0 0 16 15","hourglass":"0 0 12 16","hubspot":"0 0 16 16","image-caption":"0 0 16 14","image":"0 0 16 16","images":"0 0 16 15","impressions-per-post":"0 0 16 16","impressions":"0 0 18 16","inactive-listener":"0 0 16 12","inbox-action":"0 0 16 16","inbox-views":"0 0 16 13","inbox":"0 0 16 14","indicator":"0 0 16 16","industry":"0 0 14 16","info":"0 0 16 16","instagram":"0 0 16 16","internal-activity-outline":"0 0 16 16","internal-activity":"0 0 16 16","italic":"0 0 16 16","key":"0 0 16 16","keyboard":"0 0 18 16","laptop-phone":"0 0 16 16","large-density":"0 0 16 16","lift":"0 0 23 16","like-outline":"0 0 15 16","like":"0 0 16 16","link":"0 0 16 16","linkedin-audience-network":"0 0 16 16","linkedin":"0 0 16 16","list-ol":"0 0 16 16","listening":"0 0 14 16","lists":"0 0 16 16","location-outline":"0 0 12 16","location":"0 0 12 16","lock":"0 0 14 16","male":"0 0 16 20","marketo":"0 0 16 18","mention":"0 0 16 16","message-preview-outline":"0 0 18 16","message-preview":"0 0 18 16","message":"0 0 16 16","messages-outline":"0 0 16 16","messages":"0 0 16 16","messenger":"0 0 16 16","metric-table":"0 0 16 16","microsoft-dynamics":"0 0 16 16","minus":"0 0 16 16","mobile":"0 0 10 16","monitor":"0 0 12 16","moon":"0 0 15 16","negative-sentiment":"0 0 16 16","neutral-positive-sentiment":"0 0 16 16","neutral-sentiment":"0 0 16 16","new-trend":"0 0 12 16","newspaper":"0 0 16 16","no-access":"0 0 16 16","notepad":"0 0 12 16","notifications-publishing-outline":"0 0 16 16","notifications-publishing":"0 0 16 16","notifications":"0 0 14 16","offline":"0 0 18 15","online":"0 0 18 15","paid-promotion-outline":"0 0 16 16","paid-promotion":"0 0 16 16","paid":"0 0 14 16","paint":"0 0 18 16","palette":"0 0 16 16","paperclip":"0 0 14 16","pause":"0 0 16 18","pencil-outline":"0 0 16 16","pencil":"0 0 16 16","person":"0 0 14 16","phone":"0 0 16 16","pinterest-boards-outline":"0 0 14 16","pinterest-boards":"0 0 14 16","pinterest":"0 0 16 16","play-circle":"0 0 16 16","play":"0 0 14 16","plus":"0 0 16 18","positive-sentiment":"0 0 16 16","power-up":"0 0 10 16","profile-connect":"0 0 16 16","profile-disconnect":"0 0 16 16","publishing-outline":"0 0 16 16","publishing":"0 0 16 16","puzzle-piece":"0 0 18 16","qr-code":"0 0 16 16","queue":"0 0 16 16","recommendation":"0 0 16 16","reddit-alien":"0 0 16 16","reddit":"0 0 16 16","referrals":"0 0 16 16","refresh":"0 0 16 16","rejected":"0 0 16 16","reply-outline":"0 0 16 16","reply":"0 0 16 16","reporting-period":"0 0 14 16","reporting":"0 0 16 16","reports-home":"0 0 16 16","reports":"0 0 16 15","retweet":"0 0 18 16","rss":"0 0 16 16","sales":"0 0 9 16","salesforce":"0 0 20 16","save-assets":"0 0 16 16","saved-messages":"0 0 16 16","saved-reply-outline":"0 0 16 12","saved-reply":"0 0 16 12","search":"0 0 16 16","sent-message-outline":"0 0 16 14","sent-message":"0 0 16 14","share":"0 0 16 14","shopify":"0 0 16 18","show-navigation":"0 0 18 14","slack":"0 0 16 16","small-density":"0 0 16 16","smiley":"0 0 16 16","some-access":"0 0 16 16","sparkles":"0 0 16 16","spike-alert":"0 0 16 16","star-half-alt-solid":"0 0 18 16","star-of-life":"0 0 16 16","star-outline":"0 0 18 16","star":"0 0 18 16","sticky-note-outline":"0 0 16 16","sticky-note":"0 0 16 16","stories":"0 0 16 17","story":"0 0 16 16","suggestions":"0 0 11 16","sun":"0 0 16 16","tag-outline":"0 0 16 16","tag":"0 0 16 16","targeting-outline":"0 0 16 16","targeting":"0 0 16 16","tasks-outline":"0 0 12 16","tasks":"0 0 12 16","team-conversation-outline":"0 0 16 18","team-conversation":"0 0 16 18","team":"0 0 18 16","text-asset":"0 0 16 16","text":"0 0 8 16","tiktok":"0 0 16 18","times":"0 0 16 22","trash-can-outline":"0 0 14 16","trash-can":"0 0 14 16","trend-down":"0 0 18 18","trend-neutral":"0 0 20 18","trend-up":"0 0 18 18","trends":"0 0 16 17","triangle-black":"0 0 16 16","triangle":"0 0 16 16","tripadvisor-circle-outline":"0 0 16 16","tripadvisor-circle":"0 0 16 16","tripadvisor":"0 0 16 16","trophy-outline":"0 0 18 16","tumblr":"0 0 16 16","twitter-audience-network":"0 0 17 16","twitter":"0 0 17 16","unfollow-outline":"0 0 20 16","unfollow":"0 0 20 16","unlink":"0 0 16 16","unlock":"0 0 14 16","upload":"0 0 16 17","user-circle":"0 0 16 16","users":"0 0 18 16","verified":"0 0 16 16","video-camera-story":"0 0 18 15","video-camera":"0 0 18 16","vip":"0 0 16 16","weight":"0 0 16 16","whatsapp":"0 0 16 16","window-maximize":"0 0 16 16","window-minimize":"0 0 16 16","window-regular":"0 0 16 16","window-restore":"0 0 16 16","woocommerce":"0 0 18 16","x":"0 0 16 18","yelp-full-star":"0 0 16 16","yelp-half-star":"0 0 16 16","yelp":"0 0 14 16","youtube":"0 0 16 15","zendesk":"0 0 16 16"};
1
+ module.exports = {"active-listener":"0 0 16 16","add-item":"0 0 16 16","add-keyword":"0 0 16 16","add-team-member":"0 0 18 13","add-variable":"0 0 18 14","address-card-outline":"0 0 16 16","address-card-solid":"0 0 18 16","adobe-experience-manager":"0 0 16 18","ads":"0 0 9 16","android":"0 0 14 16","apple":"0 0 14 16","approval-indicator-outline":"0 0 14 16","approval-indicator":"0 0 14 16","archive":"0 0 16 16","arrow-down-line":"0 0 14 16","arrow-down":"0 0 16 16","arrow-left-line":"0 0 16 18","arrow-left":"0 0 16 16","arrow-right-line":"0 0 16 18","arrow-right":"0 0 16 16","arrow-up-line":"0 0 14 16","arrow-up":"0 0 16 16","arrows":"0 0 16 16","asset-library-outline":"0 0 16 16","asset-library":"0 0 16 16","assign":"0 0 18 15","atom":"0 0 14 16","audio":"0 0 16 14","back-to-top":"0 0 15 16","bambu-icon-outline":"0 0 16 16","bambu-icon":"0 0 16 16","barcode":"0 0 18 16","basketball":"0 0 16 16","bell-outline":"0 0 14 16","bigcommerce":"0 0 16 16","bitly":"0 0 16 16","bold":"0 0 16 16","book":"0 0 14 16","bot":"0 0 16 16","browser":"0 0 16 16","business":"0 0 16 16","calendar-outline":"0 0 14 16","calendar":"0 0 14 16","camera-outline":"0 0 18 16","camera-story":"0 0 18 16","camera":"0 0 18 16","campaign":"0 0 16 14","canva":"0 0 16 18","carousel":"0 0 16 18","cart-plus-outline":"0 0 17 15","cart-plus":"0 0 17 15","check":"0 0 16 16","chevron-down-filled":"0 0 16 21","chevron-down":"0 0 16 18","chevron-left":"0 0 10 16","chevron-right":"0 0 10 17","chevron-up-down-filled":"0 0 12 20","chevron-up-filled":"0 0 16 21","chevron-up":"0 0 16 18","circle-check-outline":"0 0 16 16","circle-check":"0 0 16 16","circle":"0 0 16 16","circle+":"0 0 16 16","circles":"0 0 16 16","circlex":"0 0 16 16","click-to-view":"0 0 12 16","clicks":"0 0 10 16","clipboard-outline":"0 0 12 16","clipboard":"0 0 12 16","clock":"0 0 16 16","closed-captioning":"0 0 16 16","cloud":"0 0 16 13","code":"0 0 18 16","columns":"0 0 16 16","comment-alt-outline":"0 0 16 15","comment-alt":"0 0 16 15","comment-lines-alt-outline":"0 0 16 16","comment":"0 0 16 13","compact-density":"0 0 16 16","compact-indicator":"0 0 16 16","comparison":"0 0 16 14","competitor":"0 0 14 16","compose":"0 0 16 16","content-suggestions":"0 0 16 16","credit-card":"0 0 16 14","crop":"0 0 16 16","crown":"0 0 16 16","dashboard":"0 0 16 14","deconstructed-negative-sentiment":"0 0 18 18","deconstructed-neutral-sentiment":"0 0 18 18","deconstructed-positive-sentiment":"0 0 18 18","discovery":"0 0 16 16","dislike-outline":"0 0 15 16","dislike":"0 0 16 16","dm-link-outline":"0 0 16 16","dm-link":"0 0 16 16","dotdotdot":"0 0 16 16","download":"0 0 16 16","drafts-outline":"0 0 12 16","drafts":"0 0 12 16","dropbox":"0 0 18 16","duplicate-outline":"0 0 14 16","duplicate":"0 0 14 16","emoji-outline":"0 0 16 16","emoji":"0 0 16 16","empty-image":"0 0 16 18","engagement-per-post":"0 0 16 16","engagements":"0 0 16 15","error":"0 0 16 16","exchange-alt":"0 0 16 16","expanded-indicator":"0 0 16 16","export":"0 0 14 17","extended-circles":"0 0 16 16","external-link-alt":"0 0 16 16","external-link":"0 0 16 16","extreme-negative-sentiment":"0 0 16 16","eye-outline":"0 0 18 16","eye-slash-outline":"0 0 20 16","eye-slash":"0 0 20 16","eye":"0 0 18 16","facebook-audience-network":"0 0 16 16","facebook-branded-content-outline":"0 0 18 15","facebook-branded-content":"0 0 18 15","facebook-groups":"0 0 16 16","facebook":"0 0 16 16","fb-reactions-angry":"0 0 16 16","fb-reactions-haha":"0 0 16 16","fb-reactions-like":"0 0 16 16","fb-reactions-love":"0 0 16 16","fb-reactions-sad":"0 0 16 16","fb-reactions-wow":"0 0 16 16","feedly":"0 0 16 15","feeds":"0 0 16 15","female":"0 0 11 18","file-chart-line":"0 0 12 16","file-edit":"0 0 12 16","file-times-solid":"0 0 12 16","filter":"0 0 16 16","flag-outline":"0 0 16 16","flag":"0 0 16 16","flat-negative-sentiment-outline":"0 0 18 18","flat-negative-sentiment":"0 0 18 18","flat-neutral-sentiment-outline":"0 0 18 18","flat-neutral-sentiment":"0 0 18 18","flat-positive-sentiment-outline":"0 0 18 18","flat-positive-sentiment":"0 0 18 18","folder-open":"0 0 16 15","folder":"0 0 16 16","follow-outline":"0 0 20 16","follow":"0 0 20 16","follower-increase":"0 0 19 16","following":"0 0 20 16","font":"0 0 18 16","full-access":"0 0 16 16","gear":"0 0 16 16","gears":"0 0 16 16","glassdoor":"0 0 16 16","glasses":"0 0 18 14","globe":"0 0 16 16","google-analytics-color":"0 0 14 18","google-business-messages":"0 0 16 16","google-drive":"0 0 16 14","google-my-business":"0 0 16 14","grip":"0 0 8 18","h1":"0 0 16 16","h2":"0 0 16 16","hamburger":"0 0 16 18","hashtag":"0 0 16 16","headset":"0 0 16 16","heart-outline":"0 0 16 16","heart":"0 0 16 16","heartbeat":"0 0 18 16","help":"0 0 16 16","hiking":"0 0 16 16","history":"0 0 16 16","home":"0 0 16 15","hourglass":"0 0 12 16","hubspot":"0 0 16 16","image-caption":"0 0 16 14","image":"0 0 16 16","images":"0 0 16 15","impressions-per-post":"0 0 16 16","impressions":"0 0 18 16","inactive-listener":"0 0 16 12","inbox-action":"0 0 16 16","inbox-views":"0 0 16 13","inbox":"0 0 16 14","indicator":"0 0 16 16","industry":"0 0 14 16","info":"0 0 16 16","instagram":"0 0 16 16","internal-activity-outline":"0 0 16 16","internal-activity":"0 0 16 16","italic":"0 0 16 16","key":"0 0 16 16","keyboard":"0 0 18 16","laptop-phone":"0 0 16 16","large-density":"0 0 16 16","lift":"0 0 23 16","like-outline":"0 0 15 16","like":"0 0 16 16","link":"0 0 16 16","linkedin-audience-network":"0 0 16 16","linkedin":"0 0 16 16","list-ol":"0 0 16 16","listening":"0 0 14 16","lists":"0 0 16 16","location-outline":"0 0 12 16","location":"0 0 12 16","lock":"0 0 14 16","magic-wand":"0 0 17 16","male":"0 0 16 20","marketo":"0 0 16 18","mention":"0 0 16 16","message-preview-outline":"0 0 18 16","message-preview":"0 0 18 16","message":"0 0 16 16","messages-outline":"0 0 16 16","messages":"0 0 16 16","messenger":"0 0 16 16","metric-table":"0 0 16 16","microsoft-dynamics":"0 0 16 16","minus":"0 0 16 16","mobile":"0 0 10 16","monitor":"0 0 12 16","moon":"0 0 15 16","negative-sentiment":"0 0 16 16","neutral-positive-sentiment":"0 0 16 16","neutral-sentiment":"0 0 16 16","new-trend":"0 0 12 16","newspaper":"0 0 16 16","no-access":"0 0 16 16","notepad":"0 0 12 16","notifications-publishing-outline":"0 0 16 16","notifications-publishing":"0 0 16 16","notifications":"0 0 14 16","offline":"0 0 18 15","online":"0 0 18 15","paid-promotion-outline":"0 0 16 16","paid-promotion":"0 0 16 16","paid":"0 0 14 16","paint":"0 0 18 16","palette":"0 0 16 16","paperclip":"0 0 14 16","pause":"0 0 16 18","pencil-outline":"0 0 16 16","pencil":"0 0 16 16","person":"0 0 14 16","phone":"0 0 16 16","pinterest-boards-outline":"0 0 14 16","pinterest-boards":"0 0 14 16","pinterest":"0 0 16 16","play-circle":"0 0 16 16","play":"0 0 14 16","plus":"0 0 16 18","positive-sentiment":"0 0 16 16","power-up":"0 0 10 16","profile-connect":"0 0 16 16","profile-disconnect":"0 0 16 16","publishing-outline":"0 0 16 16","publishing":"0 0 16 16","puzzle-piece":"0 0 18 16","qr-code":"0 0 16 16","queue":"0 0 16 16","recommendation":"0 0 16 16","reddit-alien":"0 0 16 16","reddit":"0 0 16 16","referrals":"0 0 16 16","refresh":"0 0 16 16","rejected":"0 0 16 16","reply-outline":"0 0 16 16","reply":"0 0 16 16","reporting-period":"0 0 14 16","reporting":"0 0 16 16","reports-home":"0 0 16 16","reports":"0 0 16 15","retweet":"0 0 18 16","rss":"0 0 16 16","sales":"0 0 9 16","salesforce":"0 0 20 16","save-assets":"0 0 16 16","saved-messages":"0 0 16 16","saved-reply-outline":"0 0 16 12","saved-reply":"0 0 16 12","search":"0 0 16 16","sent-message-outline":"0 0 16 14","sent-message":"0 0 16 14","share":"0 0 16 14","shopify":"0 0 16 18","show-navigation":"0 0 18 14","slack":"0 0 16 16","small-density":"0 0 16 16","smiley":"0 0 16 16","some-access":"0 0 16 16","sparkles":"0 0 16 16","spike-alert":"0 0 16 16","star-half-alt-solid":"0 0 18 16","star-of-life":"0 0 16 16","star-outline":"0 0 18 16","star":"0 0 18 16","sticky-note-outline":"0 0 16 16","sticky-note":"0 0 16 16","stories":"0 0 16 17","story":"0 0 16 16","suggestions":"0 0 11 16","sun":"0 0 16 16","tag-outline":"0 0 16 16","tag":"0 0 16 16","targeting-outline":"0 0 16 16","targeting":"0 0 16 16","tasks-outline":"0 0 12 16","tasks":"0 0 12 16","team-conversation-outline":"0 0 16 18","team-conversation":"0 0 16 18","team":"0 0 18 16","text-asset":"0 0 16 16","text":"0 0 8 16","tiktok":"0 0 16 18","times":"0 0 16 22","trash-can-outline":"0 0 14 16","trash-can":"0 0 14 16","trend-down":"0 0 18 18","trend-neutral":"0 0 20 18","trend-up":"0 0 18 18","trends":"0 0 16 17","triangle-black":"0 0 16 16","triangle":"0 0 16 16","tripadvisor-circle-outline":"0 0 16 16","tripadvisor-circle":"0 0 16 16","tripadvisor":"0 0 16 16","trophy-outline":"0 0 18 16","tumblr":"0 0 16 16","twitter-audience-network":"0 0 17 16","twitter":"0 0 17 16","unfollow-outline":"0 0 20 16","unfollow":"0 0 20 16","unlink":"0 0 16 16","unlock":"0 0 14 16","upload":"0 0 16 17","user-circle":"0 0 16 16","users":"0 0 18 16","verified":"0 0 16 16","video-camera-story":"0 0 18 15","video-camera":"0 0 18 16","vip":"0 0 16 16","weight":"0 0 16 16","whatsapp":"0 0 16 16","window-maximize":"0 0 16 16","window-minimize":"0 0 16 16","window-regular":"0 0 16 16","window-restore":"0 0 16 16","woocommerce":"0 0 18 16","x":"0 0 16 18","yelp-full-star":"0 0 16 16","yelp-half-star":"0 0 16 16","yelp":"0 0 14 16","youtube":"0 0 16 15","zendesk":"0 0 16 16"};
@@ -165,10 +165,6 @@ describe("Listbox", () => {
165
165
  });
166
166
 
167
167
  describe("AsListbox", () => {
168
- it("should match snapshot", () => {
169
- expect(render(<AsListbox />).baseElement).toMatchSnapshot();
170
- });
171
-
172
168
  it("should render items with option role", async () => {
173
169
  const { findByText, queryByLabelText, queryByRole } = render(
174
170
  <AsListbox />
@@ -211,10 +207,6 @@ describe("Listbox", () => {
211
207
  });
212
208
 
213
209
  describe("AsListbox multiselect", () => {
214
- it("should match snapshot", () => {
215
- expect(render(<AsListboxMultiselect />).baseElement).toMatchSnapshot();
216
- });
217
-
218
210
  it("should render items with option role", async () => {
219
211
  const { queryByLabelText, queryByText, queryByRole } = render(
220
212
  <AsListboxMultiselect />
@@ -244,10 +236,6 @@ describe("Listbox", () => {
244
236
  });
245
237
 
246
238
  describe("AsListbox with checkboxes", () => {
247
- it("should match snapshot", () => {
248
- expect(render(<AsListboxWithCheckboxes />).baseElement).toMatchSnapshot();
249
- });
250
-
251
239
  it("should render items with checkbox role", async () => {
252
240
  const { queryByRole } = render(<AsListboxWithCheckboxes />);
253
241
  const firstItem = queryByRole(MENU_ITEM_ROLES.CHECKBOX, {
@@ -267,12 +255,6 @@ describe("Listbox", () => {
267
255
  });
268
256
 
269
257
  describe("AsListbox with filter input", () => {
270
- it("should match snapshot", () => {
271
- expect(
272
- render(<AsListboxWithFilterInput />).baseElement
273
- ).toMatchSnapshot();
274
- });
275
-
276
258
  it("should allow filtering", async () => {
277
259
  const { queryByLabelText, queryAllByRole } = render(
278
260
  <AsListboxWithFilterInput />
@@ -1,276 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Menu AsMenu should match snapshot 1`] = `
4
- .c0 {
5
- box-sizing: border-box;
6
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
7
- margin: 0px;
8
- padding: 0px;
9
- width: 200px;
10
- overflow: hidden;
11
- }
12
-
13
- .c2 {
14
- box-sizing: border-box;
15
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
16
- padding-left: 16px;
17
- margin-top: -1px;
18
- border-top: 1px solid;
19
- border-color: #dee1e1;
20
- }
21
-
22
- .c4 {
23
- box-sizing: border-box;
24
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
25
- padding: 8px;
26
- }
27
-
28
- .c5 {
29
- box-sizing: border-box;
30
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
31
- }
32
-
33
- .c7 {
34
- display: block;
35
- width: 100%;
36
- border-radius: 6px;
37
- background-color: transparent;
38
- border: none;
39
- text-align: left;
40
- color: #364141;
41
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
42
- font-weight: 400;
43
- padding: 6px 8px;
44
- list-style-type: none;
45
- outline: 0;
46
- font-size: 13px;
47
- line-height: 21.333333333333332px;
48
- }
49
-
50
- .c7:focus,
51
- .c7:hover {
52
- color: #364141;
53
- background-color: #f3f4f4;
54
- }
55
-
56
- .c7:focus .Icon-svg,
57
- .c7:hover .Icon-svg {
58
- color: unset;
59
- }
60
-
61
- .c7:hover {
62
- cursor: pointer;
63
- }
64
-
65
- .c6 {
66
- display: block;
67
- width: 100%;
68
- border-radius: 6px;
69
- background-color: transparent;
70
- border: none;
71
- text-align: left;
72
- color: #364141;
73
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
74
- font-weight: 400;
75
- padding: 6px 8px;
76
- list-style-type: none;
77
- outline: 0;
78
- font-size: 13px;
79
- line-height: 21.333333333333332px;
80
- color: #FFFFFF;
81
- background-color: #364141;
82
- }
83
-
84
- .c6 .Icon-svg {
85
- color: #FFFFFF;
86
- }
87
-
88
- .c6:focus,
89
- .c6:hover {
90
- color: #364141;
91
- background-color: #f3f4f4;
92
- }
93
-
94
- .c6:focus .Icon-svg,
95
- .c6:hover .Icon-svg {
96
- color: unset;
97
- }
98
-
99
- .c6:hover {
100
- cursor: pointer;
101
- }
102
-
103
- .c1 {
104
- list-style-type: none;
105
- outline: 0;
106
- }
107
-
108
- .c3 {
109
- margin: 0;
110
- padding-left: 0;
111
- padding-right: 0;
112
- font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
113
- margin-top: 12px;
114
- color: #273333;
115
- font-size: 13px;
116
- line-height: 21.333333333333332px;
117
- font-weight: 600;
118
- }
119
-
120
- <body>
121
- <div>
122
- <ul
123
- aria-activedescendant="MenuItem-1"
124
- class="c0 c1"
125
- overflow="hidden"
126
- role="menu"
127
- tabindex="0"
128
- width="200px"
129
- >
130
- <div
131
- class="c2"
132
- >
133
- <div
134
- class="c3 "
135
- color="text.headline"
136
- data-qa-text="Fruit"
137
- font-weight="600"
138
- >
139
- Fruit
140
- </div>
141
- </div>
142
- <div
143
- class="c4"
144
- role="group"
145
- >
146
- <li
147
- class="c5 c6"
148
- data-qa-menu-item="Apple"
149
- id="MenuItem-1"
150
- role="menuitem"
151
- tabindex="-1"
152
- >
153
- <div
154
- style="display: flex; align-items: center; justify-content: space-between;"
155
- >
156
- <div
157
- style="flex-grow: 1; word-break: break-word; min-width: 0;"
158
- >
159
- Apple
160
- </div>
161
- </div>
162
- </li>
163
- <li
164
- class="c5 c7"
165
- data-qa-menu-item="Banana"
166
- id="MenuItem-2"
167
- role="menuitem"
168
- tabindex="-1"
169
- >
170
- <div
171
- style="display: flex; align-items: center; justify-content: space-between;"
172
- >
173
- <div
174
- style="flex-grow: 1; word-break: break-word; min-width: 0;"
175
- >
176
- Banana
177
- </div>
178
- </div>
179
- </li>
180
- <li
181
- class="c5 c7"
182
- data-qa-menu-item="Orange"
183
- id="MenuItem-3"
184
- role="menuitem"
185
- tabindex="-1"
186
- >
187
- <div
188
- style="display: flex; align-items: center; justify-content: space-between;"
189
- >
190
- <div
191
- style="flex-grow: 1; word-break: break-word; min-width: 0;"
192
- >
193
- Orange
194
- </div>
195
- </div>
196
- </li>
197
- </div>
198
- <div
199
- class="c2"
200
- >
201
- <div
202
- class="c3 "
203
- color="text.headline"
204
- data-qa-text="Maybe Fruit"
205
- font-weight="600"
206
- >
207
- Maybe Fruit
208
- </div>
209
- </div>
210
- <div
211
- class="c4"
212
- role="group"
213
- >
214
- <li
215
- class="c5 c7"
216
- data-qa-menu-item="Tomato"
217
- id="MenuItem-4"
218
- role="menuitem"
219
- tabindex="-1"
220
- >
221
- <div
222
- style="display: flex; align-items: center; justify-content: space-between;"
223
- >
224
- <div
225
- style="flex-grow: 1; word-break: break-word; min-width: 0;"
226
- >
227
- Tomato
228
- </div>
229
- </div>
230
- </li>
231
- <li
232
- class="c5 c7"
233
- data-qa-menu-item="Cucumber"
234
- id="MenuItem-5"
235
- role="menuitem"
236
- tabindex="-1"
237
- >
238
- <div
239
- style="display: flex; align-items: center; justify-content: space-between;"
240
- >
241
- <div
242
- style="flex-grow: 1; word-break: break-word; min-width: 0;"
243
- >
244
- Cucumber
245
- </div>
246
- </div>
247
- </li>
248
- <li
249
- class="c5 c7"
250
- data-qa-menu-item="Squash"
251
- id="MenuItem-6"
252
- role="menuitem"
253
- tabindex="-1"
254
- >
255
- <div
256
- style="display: flex; align-items: center; justify-content: space-between;"
257
- >
258
- <div
259
- style="flex-grow: 1; word-break: break-word; min-width: 0;"
260
- >
261
- Squash
262
- </div>
263
- </div>
264
- </li>
265
- </div>
266
- </ul>
267
- </div>
268
- </body>
269
- `;
270
-
271
3
  exports[`Menu AsMenuButton should match snapshot 1`] = `
272
- <body>
273
- .c3 {
4
+ .c3 {
274
5
  display: inline-block;
275
6
  color: inherit;
276
7
  vertical-align: middle;
@@ -356,7 +87,8 @@ html .c3 {
356
87
  display: inline-block;
357
88
  }
358
89
 
359
- <div>
90
+ <body>
91
+ <div>
360
92
  <div
361
93
  class="c0"
362
94
  >
@@ -367,7 +99,7 @@ html .c3 {
367
99
  class="c1"
368
100
  data-qa-button=""
369
101
  data-qa-button-isdisabled="false"
370
- id="MenuButton-13"
102
+ id="MenuButton-7"
371
103
  type="button"
372
104
  >
373
105
  <span
@@ -85,7 +85,6 @@ export const MenuItem = ({
85
85
  selected,
86
86
  disabled,
87
87
  indeterminate,
88
- active,
89
88
  label: labelProp,
90
89
  ...props
91
90
  }: TypeMenuItemProps) => {
@@ -121,6 +120,7 @@ export const MenuItem = ({
121
120
  const isHidden = filteredItems && !filteredItems.includes(index);
122
121
  const isFocused = index === selectionIndex;
123
122
  selectCallbacks.current[index] = onClick;
123
+ const [keyPressed, setKeyPressed] = useState(false);
124
124
 
125
125
  const isCheckboxOrRadio = [
126
126
  MENU_ITEM_ROLES.CHECKBOX,
@@ -150,6 +150,14 @@ export const MenuItem = ({
150
150
  }
151
151
  }, [ref, isCheckboxOrRadio]);
152
152
 
153
+ useEffect(() => {
154
+ if (filteredItems) {
155
+ setKeyPressed(true);
156
+ } else if (selectionIndex !== 0) {
157
+ setKeyPressed(true);
158
+ }
159
+ }, [selectionIndex, filteredItems]);
160
+
153
161
  const handleClick = useCallback(
154
162
  (e: SyntheticEvent<HTMLButtonElement>) => {
155
163
  menuRef.current?.focus();
@@ -210,7 +218,7 @@ export const MenuItem = ({
210
218
  <MenuItemContainer
211
219
  data-qa-menu-item={label}
212
220
  {...props}
213
- active={active || isFocused}
221
+ active={isFocused && keyPressed}
214
222
  id={id}
215
223
  aria-label={labelProp}
216
224
  value={valueProp}
@@ -437,6 +445,13 @@ Menu.Radio = MenuRadio;
437
445
  Menu.Divider = MenuDivider;
438
446
  Menu.FilterInput = MenuFilterInput;
439
447
 
448
+ Menu.Group.displayName = "Menu.Group";
449
+ Menu.Item.displayName = "Menu.Item";
450
+ Menu.Checkbox.displayName = "Menu.Checkbox";
451
+ Menu.Radio.displayName = "Menu.Radio";
452
+ Menu.Divider.displayName = "Menu.Divider";
453
+ Menu.FilterInput.displayName = "Menu.FilterInput";
454
+
440
455
  const CustomPopoutContent = styled(Popout.Content)`
441
456
  padding: 0;
442
457
  margin-left: 0;
@@ -7,7 +7,7 @@ import { names } from "./names";
7
7
  import Text from "../Text";
8
8
  import Box from "../Box";
9
9
 
10
- const fruit = ["Apple", "Banana", "Orange"];
10
+ const fruit = ["Apple", "Banana", "Blueberry", "Orange"];
11
11
  const maybeFruit = ["Tomato", "Cucumber", "Squash"];
12
12
 
13
13
  export default {
@@ -233,3 +233,21 @@ export const MenuWithIcons = (props) => {
233
233
  </Box>
234
234
  );
235
235
  };
236
+
237
+ export const MenuWithFilter = (props) => {
238
+ return (
239
+ <Box
240
+ width="200px"
241
+ border={500}
242
+ borderRadius="outer"
243
+ borderColor="container.border.base"
244
+ boxShadow="medium"
245
+ backgroundColor="container.background.base"
246
+ >
247
+ <Menu {...props}>
248
+ <Menu.FilterInput placeholder="filter contents..." m={300} />
249
+ <BaseContents />
250
+ </Menu>
251
+ </Box>
252
+ );
253
+ };
@@ -54,10 +54,6 @@ describe("Menu", () => {
54
54
  });
55
55
 
56
56
  describe("AsMenu", () => {
57
- it("should match snapshot", () => {
58
- expect(render(<AsMenu />).baseElement).toMatchSnapshot();
59
- });
60
-
61
57
  it("should render items with menuitem role", () => {
62
58
  const { queryByRole, queryByDataQaLabel } = render(<AsMenu />);
63
59
  const firstItem = queryByRole(MENU_ITEM_ROLES.MENUITEM, {