@sproutsocial/racine 12.15.0 → 12.16.1

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 (151) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/__flow__/Avatar/index.stories.js +1 -0
  3. package/__flow__/Avatar/index.test.js +1 -0
  4. package/__flow__/Badge/index.stories.js +1 -0
  5. package/__flow__/Badge/index.test.js +1 -0
  6. package/__flow__/Banner/index.stories.js +1 -0
  7. package/__flow__/Banner/index.test.js +1 -0
  8. package/__flow__/Box/index.stories.js +1 -0
  9. package/__flow__/Box/index.test.js +1 -0
  10. package/__flow__/Breadcrumb/index.stories.js +1 -0
  11. package/__flow__/Breadcrumb/index.test.js +1 -0
  12. package/__flow__/Button/index.js +14 -3
  13. package/__flow__/Button/index.stories.js +24 -17
  14. package/__flow__/CharacterCounter/index.stories.js +1 -0
  15. package/__flow__/CharacterCounter/index.test.js +1 -0
  16. package/__flow__/ChartLegend/index.stories.js +1 -0
  17. package/__flow__/ChartLegend/index.test.js +1 -0
  18. package/__flow__/Checkbox/index.js +5 -5
  19. package/__flow__/Checkbox/index.stories.js +18 -13
  20. package/__flow__/Checkbox/index.test.js +9 -1
  21. package/__flow__/Collapsible/index.stories.js +16 -2
  22. package/__flow__/Collapsible/index.test.js +1 -0
  23. package/__flow__/Drawer/index.stories.js +14 -5
  24. package/__flow__/Drawer/index.test.js +4 -3
  25. package/__flow__/EmptyState/index.stories.js +1 -0
  26. package/__flow__/EmptyState/index.test.js +1 -0
  27. package/__flow__/EnumIconNames.js +1 -1
  28. package/__flow__/EnumLogoNames.js +1 -1
  29. package/__flow__/Fieldset/index.stories.js +21 -6
  30. package/__flow__/FormField/index.stories.js +11 -6
  31. package/__flow__/FormField/index.test.js +5 -4
  32. package/__flow__/Icon/index.js +5 -2
  33. package/__flow__/Icon/index.stories.js +8 -7
  34. package/__flow__/Icon/index.test.js +1 -0
  35. package/__flow__/Icon/styles.js +2 -0
  36. package/__flow__/IconViewBoxes.js +1 -1
  37. package/__flow__/Image/index.stories.js +1 -0
  38. package/__flow__/Image/index.test.js +1 -0
  39. package/__flow__/Indicator/index.stories.js +1 -0
  40. package/__flow__/Indicator/index.test.js +1 -0
  41. package/__flow__/Indicator/styles.js +1 -1
  42. package/__flow__/Input/index.stories.js +37 -0
  43. package/__flow__/Input/index.test.js +1 -0
  44. package/__flow__/KeyboardKey/index.stories.js +1 -0
  45. package/__flow__/KeyboardKey/index.test.js +1 -0
  46. package/__flow__/Label/index.stories.js +2 -1
  47. package/__flow__/Label/index.test.js +1 -0
  48. package/__flow__/Link/index.stories.js +1 -0
  49. package/__flow__/Link/index.test.js +1 -0
  50. package/__flow__/Listbox/index.stories.js +12 -6
  51. package/__flow__/Listbox/index.test.js +1 -0
  52. package/__flow__/Loader/index.js +1 -1
  53. package/__flow__/Loader/index.stories.js +5 -4
  54. package/__flow__/Loader/index.test.js +1 -0
  55. package/__flow__/LoaderButton/index.js +3 -1
  56. package/__flow__/LoaderButton/index.stories.js +1 -0
  57. package/__flow__/LoaderButton/index.test.js +1 -0
  58. package/__flow__/LogoViewBoxes.js +1 -1
  59. package/__flow__/Menu/index.flow.js +2 -0
  60. package/__flow__/Menu/index.stories.js +16 -8
  61. package/__flow__/Menu/index.test.js +3 -1
  62. package/__flow__/Message/index.stories.js +14 -6
  63. package/__flow__/Message/index.test.js +3 -3
  64. package/__flow__/Modal/index.stories.js +1 -0
  65. package/__flow__/Modal/index.test.js +1 -0
  66. package/__flow__/Numeral/index.js +1 -1
  67. package/__flow__/Numeral/index.stories.js +8 -7
  68. package/__flow__/OverflowList/index.flow.js +2 -2
  69. package/__flow__/OverflowList/index.stories.js +4 -3
  70. package/__flow__/OverflowList/index.test.js +7 -2
  71. package/__flow__/PartnerLogo/index.js +34 -34
  72. package/__flow__/PartnerLogo/index.stories.js +41 -13
  73. package/__flow__/PartnerLogo/partnerLogos/dropbox-lockup-dark.svg +7 -0
  74. package/__flow__/PartnerLogo/partnerLogos/dropbox-lockup.svg +7 -0
  75. package/__flow__/PartnerLogo/partnerLogos/dropbox-wordmark-dark.svg +3 -0
  76. package/__flow__/PartnerLogo/partnerLogos/dropbox-wordmark.svg +3 -0
  77. package/__flow__/PartnerLogo/partnerLogos/zendesk-lockup-dark.svg +28 -0
  78. package/__flow__/PartnerLogo/partnerLogos/zendesk-lockup.svg +28 -0
  79. package/__flow__/PartnerLogo/partnerLogos/zendesk-wordmark-dark.svg +9 -0
  80. package/__flow__/PartnerLogo/partnerLogos/zendesk-wordmark.svg +9 -0
  81. package/__flow__/PartnerLogo/styles.js +50 -0
  82. package/__flow__/Popout/index.js +2 -2
  83. package/__flow__/Popout/index.stories.js +24 -9
  84. package/__flow__/Popout/index.test.js +2 -1
  85. package/__flow__/Radio/index.js +1 -1
  86. package/__flow__/Radio/index.stories.js +9 -8
  87. package/__flow__/Radio/index.test.js +1 -0
  88. package/__flow__/SegmentedControl/index.stories.js +1 -0
  89. package/__flow__/SegmentedControl/index.test.js +1 -0
  90. package/__flow__/Select/index.stories.js +25 -6
  91. package/__flow__/Select/index.test.js +1 -0
  92. package/__flow__/Skeleton/index.stories.js +1 -0
  93. package/__flow__/SpotIllustration/index.js +1 -1
  94. package/__flow__/SpotIllustration/index.stories.js +6 -5
  95. package/__flow__/Stack/index.stories.js +1 -0
  96. package/__flow__/Stack/index.test.js +1 -0
  97. package/__flow__/Switch/index.js +1 -1
  98. package/__flow__/Switch/index.stories.js +6 -5
  99. package/__flow__/Switch/index.test.js +1 -0
  100. package/__flow__/Table/index.stories.js +14 -12
  101. package/__flow__/Table/index.test.js +1 -0
  102. package/__flow__/TableCell/index.stories.js +1 -0
  103. package/__flow__/TableCell/index.test.js +2 -1
  104. package/__flow__/TableHeaderCell/index.stories.js +1 -0
  105. package/__flow__/TableHeaderCell/index.test.js +5 -2
  106. package/__flow__/TableRowAccordion/index.stories.js +3 -2
  107. package/__flow__/TableRowAccordion/index.test.js +2 -1
  108. package/__flow__/Tabs/index.stories.js +1 -0
  109. package/__flow__/Tabs/index.test.js +1 -0
  110. package/__flow__/Text/index.js +11 -7
  111. package/__flow__/Text/index.stories.js +1 -0
  112. package/__flow__/Text/index.test.js +1 -0
  113. package/__flow__/Textarea/index.stories.js +9 -0
  114. package/__flow__/Textarea/index.test.js +1 -0
  115. package/__flow__/Toast/index.stories.js +10 -6
  116. package/__flow__/ToggleHint/index.test.js +1 -0
  117. package/__flow__/Token/index.stories.js +1 -0
  118. package/__flow__/Token/index.test.js +1 -0
  119. package/__flow__/TokenInput/tests/default/deleting.test.js +10 -9
  120. package/__flow__/TokenInput/tests/default/focusing.test.js +1 -0
  121. package/__flow__/TokenInput/tests/default/inputting.test.js +2 -1
  122. package/__flow__/Tooltip/index.stories.js +1 -17
  123. package/__flow__/Tooltip/index.test.js +2 -0
  124. package/__flow__/dataviz/dataviz.stories.js +1 -0
  125. package/__flow__/dataviz/index.js +1 -0
  126. package/__flow__/themes/dark/decorative-palettes.js +2 -0
  127. package/__flow__/themes/light/decorative-palettes.js +2 -0
  128. package/__flow__/utils/system-props.js +1 -0
  129. package/commonjs/Button/index.js +7 -1
  130. package/commonjs/Checkbox/index.js +3 -3
  131. package/commonjs/Icon/styles.js +3 -0
  132. package/commonjs/IconViewBoxes.js +2 -0
  133. package/commonjs/Indicator/styles.js +3 -1
  134. package/commonjs/LoaderButton/index.js +3 -1
  135. package/commonjs/LogoViewBoxes.js +8 -0
  136. package/commonjs/PartnerLogo/index.js +20 -20
  137. package/commonjs/PartnerLogo/styles.js +40 -0
  138. package/dist/icon.svg +1 -1
  139. package/dist/iconList.js +1 -1
  140. package/dist/logo.svg +1 -1
  141. package/dist/logoList.js +1 -1
  142. package/lib/Button/index.js +11 -1
  143. package/lib/Checkbox/index.js +3 -3
  144. package/lib/Icon/styles.js +3 -0
  145. package/lib/IconViewBoxes.js +2 -0
  146. package/lib/Indicator/styles.js +3 -1
  147. package/lib/LoaderButton/index.js +3 -1
  148. package/lib/LogoViewBoxes.js +8 -0
  149. package/lib/PartnerLogo/index.js +19 -15
  150. package/lib/PartnerLogo/styles.js +26 -0
  151. package/package.json +1 -1
@@ -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" | "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-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" | "h3" | "h4" | "hamburger" | "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" | "rss" | "sales" | "salesforce-cloud" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "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-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "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-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" | "h3" | "h4" | "hamburger" | "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" | "rss" | "sales" | "salesforce-cloud" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "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-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "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 EnumLogoNames = "bitly-dark" | "bitly" | "canva-dark" | "canva" | "dropbox-dark" | "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" | "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" | "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";
2
+ export type EnumLogoNames = "bitly-dark" | "bitly" | "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" | "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" | "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";
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { boolean } from "@storybook/addon-knobs";
3
4
 
@@ -16,16 +17,19 @@ export const radioGroup = () => (
16
17
  <Box width="443px">
17
18
  <Fieldset label="Select a location">
18
19
  <Radio
20
+ id="location-chicago"
19
21
  name="location"
20
22
  label="Chicago"
21
23
  checked={boolean("chicago", true)}
22
24
  />
23
25
  <Radio
26
+ id="location-seattle"
24
27
  name="location"
25
28
  label="Seattle"
26
29
  checked={boolean("seattle", false)}
27
30
  />
28
31
  <Radio
32
+ id="location-dublin"
29
33
  name="location"
30
34
  label="Dublin"
31
35
  checked={boolean("dublin", false)}
@@ -48,9 +52,11 @@ export const inputs = () => (
48
52
  }
49
53
  >
50
54
  <FormField label="First Name">
51
- {(props) => <Input {...props} />}
55
+ {(props) => <Input {...props} name="first-name" />}
56
+ </FormField>
57
+ <FormField label="Last Name">
58
+ {(props) => <Input {...props} name="last-name" />}
52
59
  </FormField>
53
- <FormField label="Last Name">{(props) => <Input {...props} />}</FormField>
54
60
  </Fieldset>
55
61
  </Box>
56
62
  );
@@ -63,16 +69,19 @@ export const horizontalRadios = () => (
63
69
  <Box width="443px">
64
70
  <Fieldset label="Select a location" layout="horizontal">
65
71
  <Radio
72
+ id="location-chicago"
66
73
  name="location"
67
74
  label="Chicago"
68
75
  checked={boolean("chicago", true)}
69
76
  />
70
77
  <Radio
78
+ id="location-seattle"
71
79
  name="location"
72
80
  label="Seattle"
73
81
  checked={boolean("seattle", false)}
74
82
  />
75
83
  <Radio
84
+ id="location-dublin"
76
85
  name="location"
77
86
  label="Dublin"
78
87
  checked={boolean("dublin", false)}
@@ -89,9 +98,11 @@ export const horizontalInputs = () => (
89
98
  <Box width="443px">
90
99
  <Fieldset label="Your Name" layout="horizontal">
91
100
  <FormField label="First Name">
92
- {(props) => <Input {...props} />}
101
+ {(props) => <Input {...props} name="first-name" />}
102
+ </FormField>
103
+ <FormField label="Last Name">
104
+ {(props) => <Input {...props} name="last-name" />}
93
105
  </FormField>
94
- <FormField label="Last Name">{(props) => <Input {...props} />}</FormField>
95
106
  </Fieldset>
96
107
  </Box>
97
108
  );
@@ -110,8 +121,12 @@ export const customFieldset = () => (
110
121
  </Fieldset.HelperText>
111
122
  }
112
123
  >
113
- <FormField label="Name">{(props) => <Input {...props} />}</FormField>
114
- <FormField label="Zodiac">{(props) => <Input {...props} />}</FormField>
124
+ <FormField label="Name">
125
+ {(props) => <Input {...props} name="name" />}
126
+ </FormField>
127
+ <FormField label="Zodiac">
128
+ {(props) => <Input {...props} name="zodiac" />}
129
+ </FormField>
115
130
  </Fieldset>
116
131
  </Box>
117
132
  );
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
 
3
4
  import Box from "../Box";
@@ -16,9 +17,10 @@ export const defaultStory = () => (
16
17
  <FormField label="Title" helperText="This is a line of helper text">
17
18
  {(props) => (
18
19
  <Input
20
+ {...props}
21
+ name="title"
19
22
  placeholder="Enter a title"
20
23
  value={text("Form field value", "")}
21
- {...props}
22
24
  />
23
25
  )}
24
26
  </FormField>
@@ -29,15 +31,16 @@ export const defaultStory = () => (
29
31
  >
30
32
  {(props) => (
31
33
  <Textarea
34
+ {...props}
35
+ name="description"
32
36
  placeholder="Enter a description"
33
37
  value={text("Text area value", "")}
34
- {...props}
35
38
  />
36
39
  )}
37
40
  </FormField>
38
41
  <FormField label="Reason">
39
42
  {(props) => (
40
- <Select {...props}>
43
+ <Select {...props} name="reason">
41
44
  <option value="">Select a reason</option>
42
45
  <option value="something">Something goes here</option>
43
46
  </Select>
@@ -60,9 +63,10 @@ export const error = () => (
60
63
  >
61
64
  {(props) => (
62
65
  <Input
66
+ {...props}
67
+ name="title"
63
68
  placeholder="Enter a title"
64
69
  value={text("Form field value", "")}
65
- {...props}
66
70
  />
67
71
  )}
68
72
  </FormField>
@@ -75,9 +79,10 @@ export const error = () => (
75
79
  >
76
80
  {(props) => (
77
81
  <Textarea
82
+ {...props}
83
+ name="description"
78
84
  placeholder="Enter a description"
79
85
  value={text("Text area value", "")}
80
- {...props}
81
86
  />
82
87
  )}
83
88
  </FormField>
@@ -87,7 +92,7 @@ export const error = () => (
87
92
  isInvalid={boolean("Reason is invalid", true)}
88
93
  >
89
94
  {(props) => (
90
- <Select {...props}>
95
+ <Select {...props} name="reason">
91
96
  <option value="">Select a reason</option>
92
97
  <option value="something">Something goes here</option>
93
98
  </Select>
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { render } from "../utils/react-testing-library";
3
4
  import Input from "../Input";
@@ -15,10 +16,10 @@ describe("FormField", () => {
15
16
  >
16
17
  {(props) => (
17
18
  <Input
19
+ {...props}
18
20
  placeholder="Enter a title"
19
21
  name="title"
20
22
  value={inputVal}
21
- {...props}
22
23
  />
23
24
  )}
24
25
  </FormField>
@@ -35,7 +36,7 @@ describe("FormField", () => {
35
36
  isInvalid={true}
36
37
  >
37
38
  {(props) => (
38
- <Input placeholder="Enter a title" name="title" value="" {...props} />
39
+ <Input {...props} placeholder="Enter a title" name="title" value="" />
39
40
  )}
40
41
  </FormField>
41
42
  );
@@ -49,7 +50,7 @@ describe("FormField", () => {
49
50
  isInvalid={true}
50
51
  >
51
52
  {(props) => (
52
- <Input placeholder="Enter a title" name="title" value="" {...props} />
53
+ <Input {...props} placeholder="Enter a title" name="title" value="" />
53
54
  )}
54
55
  </FormField>
55
56
  );
@@ -61,7 +62,7 @@ describe("FormField", () => {
61
62
  const { getByTestId } = render(
62
63
  <FormField id={manualId} label={label} isLabelHidden={true}>
63
64
  {(props) => (
64
- <Input placeholder="Enter a title" name="title" value="" {...props} />
65
+ <Input {...props} placeholder="Enter a title" name="title" value="" />
65
66
  )}
66
67
  </FormField>
67
68
  );
@@ -7,12 +7,14 @@ import Container from "./styles";
7
7
  import Box from "../Box";
8
8
  import deprecatedIcons from "./deprecatedIcons";
9
9
 
10
- type TypeProps = {
10
+ export type TypeProps = {
11
11
  /** Name of the icon in the svg sprite */
12
12
  name: EnumIconNames | $Keys<typeof deprecatedIcons>,
13
13
  size?:
14
14
  | "mini" // 12x12
15
+ // TODO: deprecate default in favor of small in future release
15
16
  | "default" // 16x16
17
+ | "small" // 16x16
16
18
  | "medium" // 24x24
17
19
  | "large" // 32x32
18
20
  | "jumbo", // 64x64
@@ -78,7 +80,8 @@ type TypeToggleProps = {
78
80
  inactiveName: EnumIconNames,
79
81
  /** Whether the active icon should be shown or not */
80
82
  isActive: boolean,
81
- size?: "mini" | "default" | "medium" | "large" | "jumbo",
83
+ /** The size of the icon. `small` is the default */
84
+ size?: "mini" | "default" | "small" | "medium" | "large" | "jumbo",
82
85
  fixedWidth?: boolean,
83
86
  ariaLabel?: string,
84
87
  };
@@ -1,5 +1,6 @@
1
+ // @flow
1
2
  import React, { useState } from "react";
2
- import Icon from "./";
3
+ import Icon, { type TypeProps } from "./";
3
4
  import Button from "../Button";
4
5
  import Box from "../Box";
5
6
  import deprecatedNames from "./deprecatedIcons";
@@ -8,7 +9,7 @@ export default {
8
9
  title: "Icon",
9
10
  };
10
11
 
11
- export const mini12X12 = (args) => <Icon {...args} />;
12
+ export const mini12X12 = (args: TypeProps) => <Icon {...args} />;
12
13
 
13
14
  mini12X12.args = {
14
15
  color: "icon.base",
@@ -20,7 +21,7 @@ mini12X12.story = {
20
21
  name: "Mini (12 x 12)",
21
22
  };
22
23
 
23
- export const default16X16 = (args) => <Icon {...args} />;
24
+ export const default16X16 = (args: TypeProps) => <Icon {...args} />;
24
25
 
25
26
  default16X16.args = {
26
27
  color: "icon.base",
@@ -31,7 +32,7 @@ default16X16.story = {
31
32
  name: "Default (16 x 16)",
32
33
  };
33
34
 
34
- export const medium24X24 = (args) => <Icon {...args} />;
35
+ export const medium24X24 = (args: TypeProps) => <Icon {...args} />;
35
36
 
36
37
  medium24X24.args = {
37
38
  color: "icon.base",
@@ -43,7 +44,7 @@ medium24X24.story = {
43
44
  name: "Medium (24 x 24)",
44
45
  };
45
46
 
46
- export const large32X32 = (args) => <Icon {...args} />;
47
+ export const large32X32 = (args: TypeProps) => <Icon {...args} />;
47
48
 
48
49
  large32X32.args = {
49
50
  color: "icon.base",
@@ -55,7 +56,7 @@ large32X32.story = {
55
56
  name: "Large (32 x 32)",
56
57
  };
57
58
 
58
- export const jumbo64X64 = (args) => <Icon {...args} />;
59
+ export const jumbo64X64 = (args: TypeProps) => <Icon {...args} />;
59
60
 
60
61
  jumbo64X64.args = {
61
62
  color: "icon.base",
@@ -67,7 +68,7 @@ jumbo64X64.story = {
67
68
  name: "Jumbo (64 x 64)",
68
69
  };
69
70
 
70
- export const defaultFixedWidth = (args) => <Icon {...args} />;
71
+ export const defaultFixedWidth = (args: TypeProps) => <Icon {...args} />;
71
72
 
72
73
  defaultFixedWidth.args = {
73
74
  color: "icon.success",
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { render } from "../utils/react-testing-library";
3
4
  import Icon from "./";
@@ -7,7 +7,9 @@ import type { TypeTheme } from "../types/theme.flow";
7
7
 
8
8
  const sizes = {
9
9
  mini: "12px",
10
+ /** TODO: deprecate default in favor of small in future release */
10
11
  default: "16px",
12
+ small: "16px",
11
13
  medium: "24px",
12
14
  large: "32px",
13
15
  jumbo: "64px",
@@ -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-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","bookmark":"0 0 12 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","h3":"0 0 16 16","h4":"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-alt":"0 0 12 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","plug":"0 0 12 16","plus":"0 0 16 18","positive-sentiment":"0 0 16 16","power-up-outline":"0 0 12 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","reels-outline":"0 0 16 16","reels":"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-cloud":"0 0 20 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","shopping-bag-outline":"0 0 14 16","shopping-bag":"0 0 14 16","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","tools":"0 0 67 67","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","underline":"0 0 14 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","advocacy-outline":"0 0 14 16","advocacy":"0 0 14 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","bookmark":"0 0 12 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","h3":"0 0 16 16","h4":"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-alt":"0 0 12 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","plug":"0 0 12 16","plus":"0 0 16 18","positive-sentiment":"0 0 16 16","power-up-outline":"0 0 12 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","reels-outline":"0 0 16 16","reels":"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-cloud":"0 0 20 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","shopping-bag-outline":"0 0 14 16","shopping-bag":"0 0 14 16","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","tools":"0 0 67 67","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","underline":"0 0 14 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,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import Image from "./";
3
4
 
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { render, fireEvent } from "../utils/react-testing-library";
3
4
  import Image from "./";
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { text } from "@storybook/addon-knobs";
3
4
 
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { render } from "../utils/react-testing-library";
3
4
  import Indicator from "./";
@@ -14,7 +14,7 @@ const Container: StyledComponent<{ ... }, TypeTheme, *> = styled.span.attrs({
14
14
  height: ${(props) => props.theme.space[400]};
15
15
  font-size: 10px;
16
16
  line-height: 0;
17
- color: ${(props) => props.theme.colors.teal[600]};
17
+ color: ${(props) => props.color ?? props.theme.colors.icon.info};
18
18
  text-align: center;
19
19
 
20
20
  > div {
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { text } from "@storybook/addon-knobs";
3
4
 
@@ -10,6 +11,8 @@ export default {
10
11
 
11
12
  export const defaultStory = () => (
12
13
  <Input
14
+ id="test"
15
+ name="test"
13
16
  placeholder={text("placeholder", "Please enter a value...")}
14
17
  value={text("value", "")}
15
18
  ariaLabel={text("ariaLabel", "Descriptive label goes here")}
@@ -22,6 +25,8 @@ defaultStory.story = {
22
25
 
23
26
  export const small = () => (
24
27
  <Input
28
+ id="small"
29
+ name="small"
25
30
  placeholder={text("placeholder", "Please enter a value...")}
26
31
  value={text("value", "")}
27
32
  ariaLabel={text("ariaLabel", "Descriptive label goes here")}
@@ -35,6 +40,8 @@ small.story = {
35
40
 
36
41
  export const large = () => (
37
42
  <Input
43
+ id="large"
44
+ name="large"
38
45
  placeholder={text("placeholder", "Please enter a value...")}
39
46
  value={text("value", "")}
40
47
  ariaLabel={text("ariaLabel", "Descriptive label goes here")}
@@ -48,6 +55,8 @@ large.story = {
48
55
 
49
56
  export const disabled = () => (
50
57
  <Input
58
+ id="disabled"
59
+ name="disabled"
51
60
  placeholder={text("placeholder", "Please enter a value...")}
52
61
  value={text("value", "")}
53
62
  ariaLabel={text("ariaLabel", "Descriptive label goes here")}
@@ -61,6 +70,8 @@ disabled.story = {
61
70
 
62
71
  export const readOnly = () => (
63
72
  <Input
73
+ id="readOnly"
74
+ name="readOnly"
64
75
  placeholder={text("placeholder", "Please enter a value...")}
65
76
  value={text("value", "")}
66
77
  ariaLabel={text("ariaLabel", "Descriptive label goes here")}
@@ -74,6 +85,8 @@ readOnly.story = {
74
85
 
75
86
  export const required = () => (
76
87
  <Input
88
+ id="required"
89
+ name="required"
77
90
  value={text("value", "")}
78
91
  placeholder={text("placeholder", "Please enter a value...")}
79
92
  ariaLabel={text("ariaLabel", "Descriptive label goes here")}
@@ -87,6 +100,8 @@ required.story = {
87
100
 
88
101
  export const error = () => (
89
102
  <Input
103
+ id="error"
104
+ name="error"
90
105
  value={text("value", "")}
91
106
  isInvalid
92
107
  placeholder={text("placeholder", "blah@something")}
@@ -100,6 +115,8 @@ error.story = {
100
115
 
101
116
  export const leftIcon = () => (
102
117
  <Input
118
+ id="left-icon"
119
+ name="left-icon"
103
120
  value={text("value", "")}
104
121
  elemBefore={<Icon fixedWidth name="lock" />}
105
122
  placeholder={text("placeholder", "Password")}
@@ -113,6 +130,8 @@ leftIcon.story = {
113
130
 
114
131
  export const rightIcon = () => (
115
132
  <Input
133
+ id="right-icon"
134
+ name="right-icon"
116
135
  value={text("value", "")}
117
136
  elemAfter={<Icon fixedWidth name="lock" />}
118
137
  placeholder="Password"
@@ -126,6 +145,8 @@ rightIcon.story = {
126
145
 
127
146
  export const leftAndRightIcons = () => (
128
147
  <Input
148
+ id="left-right-icons"
149
+ name="left-right-icons"
129
150
  elemBefore={<Icon fixedWidth name="search" />}
130
151
  elemAfter={<Icon fixedWidth name="lock" />}
131
152
  placeholder={text("placeholder", "Please enter a value...")}
@@ -145,6 +166,8 @@ export const SearchInput = () => {
145
166
  const [value, setValue] = React.useState("");
146
167
  return (
147
168
  <Input
169
+ id="search"
170
+ name="search"
148
171
  type="search"
149
172
  placeholder={text("placeholder", "Please enter a value...")}
150
173
  value={value}
@@ -164,6 +187,8 @@ export const SmallSearchInput = () => {
164
187
 
165
188
  return (
166
189
  <Input
190
+ id="small-search"
191
+ name="small-search"
167
192
  type="search"
168
193
  size="small"
169
194
  placeholder={text("placeholder", "Please enter a value...")}
@@ -184,6 +209,8 @@ export const LargeSearchInput = () => {
184
209
 
185
210
  return (
186
211
  <Input
212
+ id="large-search"
213
+ name="large-search"
187
214
  type="search"
188
215
  size="large"
189
216
  placeholder={text("placeholder", "Please enter a value...")}
@@ -201,6 +228,8 @@ LargeSearchInput.story = {
201
228
 
202
229
  export const uncontrolledSearchInput = () => (
203
230
  <Input
231
+ id="uncontrolled-search"
232
+ name="uncontrolled-search"
204
233
  type="search"
205
234
  placeholder={text("placeholder", "Please enter a value...")}
206
235
  clearButtonLabel={text("clearButtonLabel", "Clear search")}
@@ -217,6 +246,8 @@ export const NonSearchClearButtonInput = () => {
217
246
 
218
247
  return (
219
248
  <Input
249
+ id="clear-button"
250
+ name="clear-button"
220
251
  type="text"
221
252
  placeholder={text("placeholder", "Please enter a value...")}
222
253
  value={value}
@@ -234,6 +265,8 @@ NonSearchClearButtonInput.story = {
234
265
 
235
266
  export const autofocus = () => (
236
267
  <Input
268
+ id="autofocus"
269
+ name="autofocus"
237
270
  autoFocus
238
271
  placeholder={text("placeholder", "Please enter a value...")}
239
272
  value={text("value", "")}
@@ -247,6 +280,8 @@ autofocus.story = {
247
280
 
248
281
  export const maxLength = () => (
249
282
  <Input
283
+ id="maxlength"
284
+ name="maxlength"
250
285
  autoFocus
251
286
  placeholder={text("placeholder", "Max Length is 10")}
252
287
  maxLength={10}
@@ -260,6 +295,8 @@ maxLength.story = {
260
295
 
261
296
  export const secondary = () => (
262
297
  <Input
298
+ id="secondary"
299
+ name="secondary"
263
300
  appearance="secondary"
264
301
  placeholder={text("placeholder", "Please enter a value...")}
265
302
  value={text("value", "")}
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import "jest-styled-components";
3
4
  import { render, fireEvent, userEvent } from "../utils/react-testing-library";
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import React from "react";
2
3
  import { text } from "@storybook/addon-knobs";
3
4