@artsy/palette-mobile 17.33.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/dist/elements/BackButton/BackButton.js +3 -3
  2. package/dist/elements/Banner/Banner.js +1 -1
  3. package/dist/elements/Button/FollowButton.js +2 -2
  4. package/dist/elements/ButtonNew/Button.stories.js +2 -2
  5. package/dist/elements/ButtonNew/FollowButton.js +2 -2
  6. package/dist/elements/Checkbox/Check.js +2 -2
  7. package/dist/elements/CollapsibleMenuItem/CollapsibleMenuItem.js +2 -2
  8. package/dist/elements/EntityHeader/EntityHeader.js +1 -1
  9. package/dist/elements/Header/ArtsyLogoHeader.js +2 -2
  10. package/dist/elements/Input/Input.js +4 -4
  11. package/dist/elements/Input/Input.stories.js +2 -2
  12. package/dist/elements/Input/helpers.d.ts +1 -1
  13. package/dist/elements/LegacyTabs/StepTabs.js +2 -2
  14. package/dist/elements/MenuItem/MenuItem.js +2 -2
  15. package/dist/elements/Message/Message.js +1 -1
  16. package/dist/elements/Message/Message.stories.js +2 -2
  17. package/dist/elements/Pill/Pill.d.ts +1 -1
  18. package/dist/elements/Pill/Pill.js +2 -2
  19. package/dist/elements/Pill/Pill.stories.js +1 -1
  20. package/dist/elements/Popover/Popover.js +1 -1
  21. package/dist/elements/Screen/Header.js +2 -2
  22. package/dist/elements/SearchInput/RoundSearchInput.js +2 -2
  23. package/dist/elements/SearchInput/SearchInput.js +2 -2
  24. package/dist/elements/ToolTip/ToolTip.js +3 -3
  25. package/dist/elements/Touchable/Touchable.stories.js +1 -1
  26. package/dist/index.d.ts +0 -2
  27. package/dist/index.js +0 -2
  28. package/package.json +2 -1
  29. package/dist/svgs/AddCircleFillIcon.d.ts +0 -2
  30. package/dist/svgs/AddCircleFillIcon.js +0 -7
  31. package/dist/svgs/AddCircleIcon.d.ts +0 -2
  32. package/dist/svgs/AddCircleIcon.js +0 -7
  33. package/dist/svgs/AddIcon.d.ts +0 -2
  34. package/dist/svgs/AddIcon.js +0 -7
  35. package/dist/svgs/AlertCircleFillIcon.d.ts +0 -2
  36. package/dist/svgs/AlertCircleFillIcon.js +0 -7
  37. package/dist/svgs/AlertIcon.d.ts +0 -2
  38. package/dist/svgs/AlertIcon.js +0 -7
  39. package/dist/svgs/AppleIcon.d.ts +0 -2
  40. package/dist/svgs/AppleIcon.js +0 -7
  41. package/dist/svgs/ArrowBackIcon.d.ts +0 -2
  42. package/dist/svgs/ArrowBackIcon.js +0 -7
  43. package/dist/svgs/ArrowCircleFillIcons.d.ts +0 -3
  44. package/dist/svgs/ArrowCircleFillIcons.js +0 -9
  45. package/dist/svgs/ArrowDownCircleIcon.d.ts +0 -2
  46. package/dist/svgs/ArrowDownCircleIcon.js +0 -7
  47. package/dist/svgs/ArrowDownIcon.d.ts +0 -2
  48. package/dist/svgs/ArrowDownIcon.js +0 -7
  49. package/dist/svgs/ArrowLeftCircleIcon.d.ts +0 -2
  50. package/dist/svgs/ArrowLeftCircleIcon.js +0 -7
  51. package/dist/svgs/ArrowLeftIcon.d.ts +0 -6
  52. package/dist/svgs/ArrowLeftIcon.js +0 -10
  53. package/dist/svgs/ArrowRightCircleIcon.d.ts +0 -2
  54. package/dist/svgs/ArrowRightCircleIcon.js +0 -7
  55. package/dist/svgs/ArrowRightIcon.d.ts +0 -2
  56. package/dist/svgs/ArrowRightIcon.js +0 -7
  57. package/dist/svgs/ArrowUpCircleIcon.d.ts +0 -2
  58. package/dist/svgs/ArrowUpCircleIcon.js +0 -7
  59. package/dist/svgs/ArrowUpIcon.d.ts +0 -2
  60. package/dist/svgs/ArrowUpIcon.js +0 -7
  61. package/dist/svgs/ArrowUpRightIcon.d.ts +0 -2
  62. package/dist/svgs/ArrowUpRightIcon.js +0 -7
  63. package/dist/svgs/ArtsyLogoBlackIcon.d.ts +0 -6
  64. package/dist/svgs/ArtsyLogoBlackIcon.js +0 -7
  65. package/dist/svgs/ArtsyLogoWhiteIcon.d.ts +0 -2
  66. package/dist/svgs/ArtsyLogoWhiteIcon.js +0 -5
  67. package/dist/svgs/ArtsyMarkBlackIcon.d.ts +0 -2
  68. package/dist/svgs/ArtsyMarkBlackIcon.js +0 -7
  69. package/dist/svgs/ArtsyMarkWhiteIcon.d.ts +0 -2
  70. package/dist/svgs/ArtsyMarkWhiteIcon.js +0 -5
  71. package/dist/svgs/ArtworkIcon.d.ts +0 -2
  72. package/dist/svgs/ArtworkIcon.js +0 -7
  73. package/dist/svgs/AuctionIcon.d.ts +0 -2
  74. package/dist/svgs/AuctionIcon.js +0 -7
  75. package/dist/svgs/BellFillIcon.d.ts +0 -2
  76. package/dist/svgs/BellFillIcon.js +0 -7
  77. package/dist/svgs/BellIcon.d.ts +0 -2
  78. package/dist/svgs/BellIcon.js +0 -7
  79. package/dist/svgs/BlueChipIcon.d.ts +0 -2
  80. package/dist/svgs/BlueChipIcon.js +0 -7
  81. package/dist/svgs/BoltCircleFill.d.ts +0 -2
  82. package/dist/svgs/BoltCircleFill.js +0 -7
  83. package/dist/svgs/BoltFill.d.ts +0 -2
  84. package/dist/svgs/BoltFill.js +0 -7
  85. package/dist/svgs/BookmarkFill.d.ts +0 -2
  86. package/dist/svgs/BookmarkFill.js +0 -7
  87. package/dist/svgs/BriefcaseIcon.d.ts +0 -2
  88. package/dist/svgs/BriefcaseIcon.js +0 -7
  89. package/dist/svgs/CertificateIcon.d.ts +0 -2
  90. package/dist/svgs/CertificateIcon.js +0 -7
  91. package/dist/svgs/CheckCircleFillIcon.d.ts +0 -2
  92. package/dist/svgs/CheckCircleFillIcon.js +0 -7
  93. package/dist/svgs/CheckCircleIcon.d.ts +0 -2
  94. package/dist/svgs/CheckCircleIcon.js +0 -7
  95. package/dist/svgs/CheckIcon.d.ts +0 -2
  96. package/dist/svgs/CheckIcon.js +0 -7
  97. package/dist/svgs/ChevronIcon.d.ts +0 -11
  98. package/dist/svgs/ChevronIcon.js +0 -29
  99. package/dist/svgs/ClockFill.d.ts +0 -2
  100. package/dist/svgs/ClockFill.js +0 -7
  101. package/dist/svgs/CloseCircleFillIcon.d.ts +0 -2
  102. package/dist/svgs/CloseCircleFillIcon.js +0 -7
  103. package/dist/svgs/CloseCircleIcon.d.ts +0 -2
  104. package/dist/svgs/CloseCircleIcon.js +0 -7
  105. package/dist/svgs/CloseIcon.d.ts +0 -2
  106. package/dist/svgs/CloseIcon.js +0 -7
  107. package/dist/svgs/CollapseIcon.d.ts +0 -2
  108. package/dist/svgs/CollapseIcon.js +0 -7
  109. package/dist/svgs/CreditCardIcon.d.ts +0 -8
  110. package/dist/svgs/CreditCardIcon.js +0 -18
  111. package/dist/svgs/DecreaseIcon.d.ts +0 -2
  112. package/dist/svgs/DecreaseIcon.js +0 -7
  113. package/dist/svgs/DocumentIcon.d.ts +0 -2
  114. package/dist/svgs/DocumentIcon.js +0 -7
  115. package/dist/svgs/DownloadIcon.d.ts +0 -2
  116. package/dist/svgs/DownloadIcon.js +0 -7
  117. package/dist/svgs/EditIcon.d.ts +0 -2
  118. package/dist/svgs/EditIcon.js +0 -7
  119. package/dist/svgs/EmptyCheckCircleIcon.d.ts +0 -2
  120. package/dist/svgs/EmptyCheckCircleIcon.js +0 -7
  121. package/dist/svgs/EnterIcon.d.ts +0 -2
  122. package/dist/svgs/EnterIcon.js +0 -7
  123. package/dist/svgs/EnvelopeIcon.d.ts +0 -2
  124. package/dist/svgs/EnvelopeIcon.js +0 -7
  125. package/dist/svgs/EstablishedIcon.d.ts +0 -2
  126. package/dist/svgs/EstablishedIcon.js +0 -7
  127. package/dist/svgs/ExclamationMarkCircleFill.d.ts +0 -2
  128. package/dist/svgs/ExclamationMarkCircleFill.js +0 -7
  129. package/dist/svgs/ExpandIcon.d.ts +0 -2
  130. package/dist/svgs/ExpandIcon.js +0 -7
  131. package/dist/svgs/EyeClosedIcon.d.ts +0 -2
  132. package/dist/svgs/EyeClosedIcon.js +0 -7
  133. package/dist/svgs/EyeOpenedIcon.d.ts +0 -2
  134. package/dist/svgs/EyeOpenedIcon.js +0 -7
  135. package/dist/svgs/FacebookIcon.d.ts +0 -2
  136. package/dist/svgs/FacebookIcon.js +0 -7
  137. package/dist/svgs/FairIcon.d.ts +0 -2
  138. package/dist/svgs/FairIcon.js +0 -7
  139. package/dist/svgs/FilterIcon.d.ts +0 -2
  140. package/dist/svgs/FilterIcon.js +0 -7
  141. package/dist/svgs/FireIcon.d.ts +0 -2
  142. package/dist/svgs/FireIcon.js +0 -7
  143. package/dist/svgs/FollowArtistFillIcon.d.ts +0 -2
  144. package/dist/svgs/FollowArtistFillIcon.js +0 -7
  145. package/dist/svgs/FollowArtistIcon.d.ts +0 -2
  146. package/dist/svgs/FollowArtistIcon.js +0 -7
  147. package/dist/svgs/FullWidthIcon.d.ts +0 -2
  148. package/dist/svgs/FullWidthIcon.js +0 -7
  149. package/dist/svgs/GenomeIcon.d.ts +0 -2
  150. package/dist/svgs/GenomeIcon.js +0 -7
  151. package/dist/svgs/GoogleIcon.d.ts +0 -2
  152. package/dist/svgs/GoogleIcon.js +0 -3
  153. package/dist/svgs/GraphIcon.d.ts +0 -2
  154. package/dist/svgs/GraphIcon.js +0 -7
  155. package/dist/svgs/GridIcon.d.ts +0 -2
  156. package/dist/svgs/GridIcon.js +0 -7
  157. package/dist/svgs/GuaranteeIcon.d.ts +0 -2
  158. package/dist/svgs/GuaranteeIcon.js +0 -8
  159. package/dist/svgs/HeartFillIcon.d.ts +0 -2
  160. package/dist/svgs/HeartFillIcon.js +0 -7
  161. package/dist/svgs/HeartIcon.d.ts +0 -2
  162. package/dist/svgs/HeartIcon.js +0 -7
  163. package/dist/svgs/HideIcon.d.ts +0 -2
  164. package/dist/svgs/HideIcon.js +0 -7
  165. package/dist/svgs/HomeIcon.d.ts +0 -2
  166. package/dist/svgs/HomeIcon.js +0 -7
  167. package/dist/svgs/Icon.d.ts +0 -9
  168. package/dist/svgs/Icon.js +0 -34
  169. package/dist/svgs/ImageIcon.d.ts +0 -2
  170. package/dist/svgs/ImageIcon.js +0 -7
  171. package/dist/svgs/ImageSetIcon.d.ts +0 -2
  172. package/dist/svgs/ImageSetIcon.js +0 -7
  173. package/dist/svgs/IncreaseIcon.d.ts +0 -2
  174. package/dist/svgs/IncreaseIcon.js +0 -7
  175. package/dist/svgs/InfoCircleIcon.d.ts +0 -2
  176. package/dist/svgs/InfoCircleIcon.js +0 -7
  177. package/dist/svgs/InstagramAppIcon.d.ts +0 -2
  178. package/dist/svgs/InstagramAppIcon.js +0 -3
  179. package/dist/svgs/InstitutionIcon.d.ts +0 -2
  180. package/dist/svgs/InstitutionIcon.js +0 -7
  181. package/dist/svgs/LinkIcon.d.ts +0 -2
  182. package/dist/svgs/LinkIcon.js +0 -7
  183. package/dist/svgs/LoaderIcon.d.ts +0 -2
  184. package/dist/svgs/LoaderIcon.js +0 -7
  185. package/dist/svgs/LockIcon.d.ts +0 -2
  186. package/dist/svgs/LockIcon.js +0 -7
  187. package/dist/svgs/LogoutIcon.d.ts +0 -2
  188. package/dist/svgs/LogoutIcon.js +0 -7
  189. package/dist/svgs/MagnifyingGlassIcon.d.ts +0 -2
  190. package/dist/svgs/MagnifyingGlassIcon.js +0 -7
  191. package/dist/svgs/MapPinIcon.d.ts +0 -2
  192. package/dist/svgs/MapPinIcon.js +0 -7
  193. package/dist/svgs/MenuIcon.d.ts +0 -2
  194. package/dist/svgs/MenuIcon.js +0 -7
  195. package/dist/svgs/MessageIcon.d.ts +0 -2
  196. package/dist/svgs/MessageIcon.js +0 -8
  197. package/dist/svgs/MessagesAppIcon.d.ts +0 -2
  198. package/dist/svgs/MessagesAppIcon.js +0 -5
  199. package/dist/svgs/MoneyCircleIcon.d.ts +0 -2
  200. package/dist/svgs/MoneyCircleIcon.js +0 -7
  201. package/dist/svgs/MoneyFillIcon.d.ts +0 -2
  202. package/dist/svgs/MoneyFillIcon.js +0 -7
  203. package/dist/svgs/MoreIcon.d.ts +0 -2
  204. package/dist/svgs/MoreIcon.js +0 -7
  205. package/dist/svgs/MultiplePersonsIcon.d.ts +0 -2
  206. package/dist/svgs/MultiplePersonsIcon.js +0 -7
  207. package/dist/svgs/NewFillHeartIcon.d.ts +0 -2
  208. package/dist/svgs/NewFillHeartIcon.js +0 -7
  209. package/dist/svgs/NewHeartIcon.d.ts +0 -2
  210. package/dist/svgs/NewHeartIcon.js +0 -7
  211. package/dist/svgs/NoArtworkIcon.d.ts +0 -2
  212. package/dist/svgs/NoArtworkIcon.js +0 -7
  213. package/dist/svgs/NoImageIcon.d.ts +0 -2
  214. package/dist/svgs/NoImageIcon.js +0 -7
  215. package/dist/svgs/PageIcon.d.ts +0 -2
  216. package/dist/svgs/PageIcon.js +0 -7
  217. package/dist/svgs/Payment2Icon.d.ts +0 -2
  218. package/dist/svgs/Payment2Icon.js +0 -7
  219. package/dist/svgs/PaymentIcon.d.ts +0 -2
  220. package/dist/svgs/PaymentIcon.js +0 -7
  221. package/dist/svgs/PersonIcon.d.ts +0 -2
  222. package/dist/svgs/PersonIcon.js +0 -7
  223. package/dist/svgs/PublicationIcon.d.ts +0 -2
  224. package/dist/svgs/PublicationIcon.js +0 -7
  225. package/dist/svgs/QuestionCircleIcon.d.ts +0 -2
  226. package/dist/svgs/QuestionCircleIcon.js +0 -7
  227. package/dist/svgs/ReloadIcon.d.ts +0 -2
  228. package/dist/svgs/ReloadIcon.js +0 -7
  229. package/dist/svgs/SecureLockIcon.d.ts +0 -2
  230. package/dist/svgs/SecureLockIcon.js +0 -7
  231. package/dist/svgs/SettingsIcon.d.ts +0 -2
  232. package/dist/svgs/SettingsIcon.js +0 -7
  233. package/dist/svgs/ShareIcon.d.ts +0 -2
  234. package/dist/svgs/ShareIcon.js +0 -7
  235. package/dist/svgs/ShieldFilledIcon.d.ts +0 -2
  236. package/dist/svgs/ShieldFilledIcon.js +0 -7
  237. package/dist/svgs/ShieldIcon.d.ts +0 -8
  238. package/dist/svgs/ShieldIcon.js +0 -7
  239. package/dist/svgs/SortIcon.d.ts +0 -2
  240. package/dist/svgs/SortIcon.js +0 -7
  241. package/dist/svgs/StarCircleFill.d.ts +0 -2
  242. package/dist/svgs/StarCircleFill.js +0 -7
  243. package/dist/svgs/StarCircleIcon.d.ts +0 -2
  244. package/dist/svgs/StarCircleIcon.js +0 -7
  245. package/dist/svgs/Stopwatch.d.ts +0 -2
  246. package/dist/svgs/Stopwatch.js +0 -7
  247. package/dist/svgs/Tag2Icon.d.ts +0 -2
  248. package/dist/svgs/Tag2Icon.js +0 -8
  249. package/dist/svgs/TagIcon.d.ts +0 -2
  250. package/dist/svgs/TagIcon.js +0 -7
  251. package/dist/svgs/TimerIcon.d.ts +0 -2
  252. package/dist/svgs/TimerIcon.js +0 -7
  253. package/dist/svgs/TopEmergingIcon.d.ts +0 -2
  254. package/dist/svgs/TopEmergingIcon.js +0 -7
  255. package/dist/svgs/TrashIcon.d.ts +0 -2
  256. package/dist/svgs/TrashIcon.js +0 -7
  257. package/dist/svgs/TrendingIcon.d.ts +0 -2
  258. package/dist/svgs/TrendingIcon.js +0 -7
  259. package/dist/svgs/TriangleDown.d.ts +0 -2
  260. package/dist/svgs/TriangleDown.js +0 -7
  261. package/dist/svgs/TwitterIcon.d.ts +0 -2
  262. package/dist/svgs/TwitterIcon.js +0 -7
  263. package/dist/svgs/UserMultiIcon.d.ts +0 -2
  264. package/dist/svgs/UserMultiIcon.js +0 -7
  265. package/dist/svgs/UserSingleIcon.d.ts +0 -2
  266. package/dist/svgs/UserSingleIcon.js +0 -7
  267. package/dist/svgs/VerifiedIcon.d.ts +0 -2
  268. package/dist/svgs/VerifiedIcon.js +0 -7
  269. package/dist/svgs/VerifiedPersonIcon.d.ts +0 -2
  270. package/dist/svgs/VerifiedPersonIcon.js +0 -7
  271. package/dist/svgs/WhatsAppAppIcon.d.ts +0 -2
  272. package/dist/svgs/WhatsAppAppIcon.js +0 -4
  273. package/dist/svgs/WorldGlobeCircleIcon.d.ts +0 -2
  274. package/dist/svgs/WorldGlobeCircleIcon.js +0 -7
  275. package/dist/svgs/XCircleIcon.d.ts +0 -2
  276. package/dist/svgs/XCircleIcon.js +0 -7
  277. package/dist/svgs/icons.stories.d.ts +0 -6
  278. package/dist/svgs/icons.stories.js +0 -17
  279. package/dist/svgs/index.d.ts +0 -123
  280. package/dist/svgs/index.js +0 -123
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ChevronSmallLeftIcon, CloseIcon } from "@artsy/icons/native";
2
3
  import { TouchableOpacity } from "react-native";
3
4
  import { DEFAULT_HIT_SLOP } from "../../constants";
4
- import { ChevronIcon, CloseIcon } from "../../svgs";
5
5
  import { Flex } from "../Flex";
6
6
  export const BackButton = ({ color = "onBackgroundHigh", hitSlop = DEFAULT_HIT_SLOP, onPress, showX = false, style, iconSize = 18, }) => {
7
- return (_jsx(TouchableOpacity, { onPress: onPress, hitSlop: hitSlop, accessibilityRole: "button", accessibilityLabel: showX ? "Close" : "Go back", accessibilityHint: showX ? "Dismiss this screen" : "Go back to the previous screen", style: style, children: showX ? (_jsx(CloseIcon, { fill: color, width: iconSize, height: iconSize })) : (_jsx(ChevronIcon, { direction: "left", fill: color, height: iconSize, width: iconSize })) }));
7
+ return (_jsx(TouchableOpacity, { onPress: onPress, hitSlop: hitSlop, accessibilityRole: "button", accessibilityLabel: showX ? "Close" : "Go back", accessibilityHint: showX ? "Dismiss this screen" : "Go back to the previous screen", style: style, children: showX ? (_jsx(CloseIcon, { fill: color, width: iconSize, height: iconSize })) : (_jsx(ChevronSmallLeftIcon, { fill: color, height: iconSize, width: iconSize })) }));
8
8
  };
9
9
  export const BackButtonWithBackground = ({ color = "onBackgroundHigh", hitSlop = DEFAULT_HIT_SLOP, onPress, showX = false, style, }) => {
10
- return (_jsx(TouchableOpacity, { accessibilityRole: "button", accessibilityLabel: showX ? "Close" : "Back", accessibilityHint: showX ? "Closes the modal" : "Navigates to the previous screen", onPress: onPress, hitSlop: hitSlop, children: _jsx(Flex, { backgroundColor: "background", width: 40, height: 40, borderRadius: 20, alignItems: "center", justifyContent: "center", accessibilityRole: "button", accessibilityLabel: showX ? "Close" : "Go back", accessibilityHint: showX ? "Dismiss this screen" : "Go back to the previous screen", style: style, children: showX ? (_jsx(CloseIcon, { fill: color, width: 26, height: 26 })) : (_jsx(ChevronIcon, { fill: color, direction: "left" })) }) }));
10
+ return (_jsx(TouchableOpacity, { accessibilityRole: "button", accessibilityLabel: showX ? "Close" : "Back", accessibilityHint: showX ? "Closes the modal" : "Navigates to the previous screen", onPress: onPress, hitSlop: hitSlop, children: _jsx(Flex, { backgroundColor: "background", width: 40, height: 40, borderRadius: 20, alignItems: "center", justifyContent: "center", accessibilityRole: "button", accessibilityLabel: showX ? "Close" : "Go back", accessibilityHint: showX ? "Dismiss this screen" : "Go back to the previous screen", style: style, children: showX ? (_jsx(CloseIcon, { fill: color, width: 26, height: 26 })) : (_jsx(ChevronSmallLeftIcon, { fill: color })) }) }));
11
11
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CloseIcon } from "@artsy/icons/native";
2
3
  import { useRef, useState } from "react";
3
4
  import { Animated, Easing, TouchableOpacity } from "react-native";
4
5
  import { DEFAULT_HIT_SLOP } from "../../constants";
5
- import { CloseIcon } from "../../svgs";
6
6
  import { Flex } from "../Flex";
7
7
  import { Text } from "../Text";
8
8
  export const Banner = ({ text, onClose, dismissable = false, variant = "defaultLight", children, ...restProps }) => {
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon } from "../../svgs/CheckIcon";
2
+ import { CheckmarkIcon } from "@artsy/icons/native";
3
3
  import { formatLargeNumber } from "../../utils/formatLargeNumber";
4
4
  import { Button } from "../Button";
5
5
  import { Text } from "../Text";
6
6
  export const FollowButton = ({ isFollowed, followCount, longestText, loading, ...restProps }) => {
7
- return (_jsx(Button, { variant: isFollowed ? "outline" : "outlineGray", size: "small", longestText: longestText ? longestText : "Following", icon: isFollowed && !loading && _jsx(CheckIcon, { fill: "mono60", width: "16px", height: "16px" }), loading: loading, ...restProps, children: !loading && (_jsxs(_Fragment, { children: [_jsx(Text, { variant: "xs", children: isFollowed ? "Following" : "Follow" }), !!followCount && followCount > 1 && (_jsx(_Fragment, { children: _jsx(Text, { variant: "xs", color: "mono60", children: " " + formatLargeNumber(followCount, 1) }) }))] })) }));
7
+ return (_jsx(Button, { variant: isFollowed ? "outline" : "outlineGray", size: "small", longestText: longestText ? longestText : "Following", icon: isFollowed && !loading && _jsx(CheckmarkIcon, { fill: "mono60", width: "16px", height: "16px" }), loading: loading, ...restProps, children: !loading && (_jsxs(_Fragment, { children: [_jsx(Text, { variant: "xs", children: isFollowed ? "Following" : "Follow" }), !!followCount && followCount > 1 && (_jsx(_Fragment, { children: _jsx(Text, { variant: "xs", color: "mono60", children: " " + formatLargeNumber(followCount, 1) }) }))] })) }));
8
8
  };
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { BellStrokeIcon, LinkIcon } from "@artsy/icons/native";
2
3
  import { capitalize } from "lodash";
3
4
  import { useState } from "react";
4
5
  import { Button as RNButton } from "react-native";
@@ -7,7 +8,6 @@ import { CTAButton } from "./CTAButton";
7
8
  import { FollowButton } from "./FollowButton";
8
9
  import { LinkButton } from "./LinkButton";
9
10
  import { DataList, List } from "../../storybook/helpers";
10
- import { BellIcon, LinkIcon } from "../../svgs";
11
11
  import { Wrap } from "../../utils/Wrap";
12
12
  import { Box } from "../Box";
13
13
  import { Flex } from "../Flex";
@@ -42,7 +42,7 @@ export const TheFollowButton = () => {
42
42
  };
43
43
  export const TheCTAButton = () => (_jsx(List, { children: _jsx(CTAButton, { onPress: () => console.log("pressed"), children: "cta button" }) }));
44
44
  export const TheLinkButton = () => (_jsx(List, { children: _jsx(LinkButton, { onPress: () => console.log("pressed"), children: "LinkButton" }) }));
45
- export const Miscellaneous = () => (_jsxs(List, { children: [_jsx(Button, { loading: true, disabled: true, children: "loading and disabled" }), _jsx(Button, { loading: true, disabled: true, icon: _jsx(LinkIcon, {}), children: "loading and disabled with icon" }), _jsx(Button, { block: true, children: "block" }), _jsx(Flex, { backgroundColor: "orange", width: 400, height: 80, alignItems: "center", justifyContent: "center", children: _jsx(Button, { variant: "fillLight", icon: _jsx(LinkIcon, {}), children: "left icon" }) }), _jsx(Button, { icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", children: "right icon" }), _jsx(Button, { size: "small", icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", children: "Right Icon Small" }), _jsx(Button, { variant: "fillDark", size: "small", icon: _jsx(BellIcon, { fill: "mono0", width: "16px", height: "16px" }), children: "Create Alert" }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: 2, height: "100%", backgroundColor: "green100" }), _jsxs(Box, { children: [_jsx(Button, { size: "small", icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", longestText: "this is a very long text", children: "shortest text" }), _jsx(Spacer, { y: 1 }), _jsx(Button, { size: "small", icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", longestText: "this is a very long text", children: "this is a very long text" })] }), _jsx(Box, { width: 2, height: "100%", backgroundColor: "green100" })] }), _jsx(Button, { icon: _jsx(LinkIcon, { fill: "mono0" }), block: true, iconPosition: "left-start", children: "left-start aligned icon" })] }));
45
+ export const Miscellaneous = () => (_jsxs(List, { children: [_jsx(Button, { loading: true, disabled: true, children: "loading and disabled" }), _jsx(Button, { loading: true, disabled: true, icon: _jsx(LinkIcon, {}), children: "loading and disabled with icon" }), _jsx(Button, { block: true, children: "block" }), _jsx(Flex, { backgroundColor: "orange", width: 400, height: 80, alignItems: "center", justifyContent: "center", children: _jsx(Button, { variant: "fillLight", icon: _jsx(LinkIcon, {}), children: "left icon" }) }), _jsx(Button, { icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", children: "right icon" }), _jsx(Button, { size: "small", icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", children: "Right Icon Small" }), _jsx(Button, { variant: "fillDark", size: "small", icon: _jsx(BellStrokeIcon, { fill: "mono0", width: "16px", height: "16px" }), children: "Create Alert" }), _jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { width: 2, height: "100%", backgroundColor: "green100" }), _jsxs(Box, { children: [_jsx(Button, { size: "small", icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", longestText: "this is a very long text", children: "shortest text" }), _jsx(Spacer, { y: 1 }), _jsx(Button, { size: "small", icon: _jsx(LinkIcon, { fill: "mono0" }), iconPosition: "right", longestText: "this is a very long text", children: "this is a very long text" })] }), _jsx(Box, { width: 2, height: "100%", backgroundColor: "green100" })] }), _jsx(Button, { icon: _jsx(LinkIcon, { fill: "mono0" }), block: true, iconPosition: "left-start", children: "left-start aligned icon" })] }));
46
46
  export const Playground = () => {
47
47
  const [loading, setLoading] = useState(false);
48
48
  const [disabled, setDisabled] = useState(true);
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { CheckIcon } from "../../svgs/CheckIcon";
2
+ import { CheckmarkIcon } from "@artsy/icons/native";
3
3
  import { formatLargeNumber } from "../../utils/formatLargeNumber";
4
4
  import { Button } from "../Button";
5
5
  import { Text } from "../Text";
6
6
  export const FollowButton = ({ isFollowed, followCount, longestText, loading, ...restProps }) => {
7
- return (_jsx(Button, { variant: isFollowed ? "outline" : "outlineGray", size: "small", longestText: longestText ? longestText : "Following", icon: isFollowed && !loading && _jsx(CheckIcon, { fill: "mono60", width: "16px", height: "16px" }), loading: loading, ...restProps, children: !loading && (_jsxs(_Fragment, { children: [_jsx(Text, { variant: "xs", children: isFollowed ? "Following" : "Follow" }), !!followCount && followCount > 1 && (_jsx(_Fragment, { children: _jsx(Text, { variant: "xs", color: "mono60", children: " " + formatLargeNumber(followCount, 1) }) }))] })) }));
7
+ return (_jsx(Button, { variant: isFollowed ? "outline" : "outlineGray", size: "small", longestText: longestText ? longestText : "Following", icon: isFollowed && !loading && _jsx(CheckmarkIcon, { fill: "mono60", width: "16px", height: "16px" }), loading: loading, ...restProps, children: !loading && (_jsxs(_Fragment, { children: [_jsx(Text, { variant: "xs", children: isFollowed ? "Following" : "Follow" }), !!followCount && followCount > 1 && (_jsx(_Fragment, { children: _jsx(Text, { variant: "xs", color: "mono60", children: " " + formatLargeNumber(followCount, 1) }) }))] })) }));
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { CheckmarkIcon } from "@artsy/icons/native";
2
3
  import { themeGet } from "@styled-system/theme-get";
3
4
  import styled, { css } from "styled-components/native";
4
- import { CheckIcon } from "../../svgs/CheckIcon";
5
5
  import { Box } from "../Box";
6
6
  export const CHECK_SIZE = 22;
7
7
  const CHECK_MODES = {
@@ -38,7 +38,7 @@ const CHECK_MODES = {
38
38
  };
39
39
  /** Toggeable check mark */
40
40
  export const Check = ({ disabled, selected, testID, ...rest }) => {
41
- return (_jsx(Container, { disabled: disabled, selected: selected, ...rest, "aria-disabled": disabled, "aria-checked": selected, accessibilityRole: "checkbox", testID: testID, children: !!selected && _jsx(CheckIcon, { fill: "mono0" }) }));
41
+ return (_jsx(Container, { disabled: disabled, selected: selected, ...rest, "aria-disabled": disabled, "aria-checked": selected, accessibilityRole: "checkbox", testID: testID, children: !!selected && _jsx(CheckmarkIcon, { fill: "mono0" }) }));
42
42
  };
43
43
  const Container = styled(Box) `
44
44
  width: ${CHECK_SIZE}px;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CheckmarkFillIcon, ChevronSmallDownIcon, ChevronSmallUpIcon } from "@artsy/icons/native";
2
3
  import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react";
3
4
  import { LayoutAnimation } from "react-native";
4
- import { CheckCircleIcon, ChevronIcon } from "../../svgs";
5
5
  import { Collapse } from "../Collapse";
6
6
  import { Flex } from "../Flex";
7
7
  import { Text } from "../Text";
@@ -39,5 +39,5 @@ export const CollapsibleMenuItem = forwardRef(({ children, overtitle, title, isE
39
39
  return (_jsxs(Flex, { ref: componentRef, collapsable: false, children: [_jsxs(Touchable, { accessibilityRole: "button", accessibilityLabel: "Collapsible Element", accessibilityState: { disabled }, accessibilityHint: "Tap to " + (isOpen ? "collapse" : "expand"), onPress: () => {
40
40
  setIsOpen(!isOpen);
41
41
  isOpen ? onCollapse?.() : onExpand?.();
42
- }, disabled: disabled, children: [!!overtitle && (_jsx(Text, { variant: "sm", color: disabled ? "mono30" : "mono100", children: overtitle })), _jsxs(Flex, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [_jsx(Text, { variant: "lg", color: disabled ? "mono30" : "mono100", style: { maxWidth: "90%" }, children: title }), _jsxs(Flex, { flexDirection: "row", alignItems: "center", children: [!!isCompleted && (_jsx(CheckCircleIcon, { fill: "green100", height: 24, width: 24, style: { marginRight: 5 } })), _jsx(ChevronIcon, { direction: isOpen ? "up" : "down", fill: disabled ? "mono30" : "mono60" })] })] })] }), _jsx(Collapse, { opened: isOpen, children: children })] }));
42
+ }, disabled: disabled, children: [!!overtitle && (_jsx(Text, { variant: "sm", color: disabled ? "mono30" : "mono100", children: overtitle })), _jsxs(Flex, { flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [_jsx(Text, { variant: "lg", color: disabled ? "mono30" : "mono100", style: { maxWidth: "90%" }, children: title }), _jsxs(Flex, { flexDirection: "row", alignItems: "center", children: [!!isCompleted && (_jsx(CheckmarkFillIcon, { fill: "green100", height: 24, width: 24, style: { marginRight: 5 } })), isOpen ? (_jsx(ChevronSmallUpIcon, { fill: disabled ? "mono30" : "mono60" })) : (_jsx(ChevronSmallDownIcon, { fill: disabled ? "mono30" : "mono60" }))] })] })] }), _jsx(Collapse, { opened: isOpen, children: children })] }));
43
43
  });
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { LockIcon } from "@artsy/icons/native";
2
3
  import { isValidElement, useMemo } from "react";
3
4
  import { Text as RNText } from "react-native";
4
- import { LockIcon } from "../../svgs";
5
5
  import { bullet } from "../../utils/text";
6
6
  import { Avatar } from "../Avatar";
7
7
  import { Flex } from "../Flex";
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ArtsyLogoIcon } from "@artsy/icons/native";
2
3
  import { StyleSheet } from "react-native";
3
- import { ArtsyLogoBlackIcon } from "../../svgs";
4
4
  import { Box } from "../Box";
5
5
  import { Flex } from "../Flex";
6
6
  import { Spacer } from "../Spacer";
7
- export const ArtsyLogoHeader = ({ shadow = false }) => (_jsxs(_Fragment, { children: [_jsxs(Box, { mt: 2, mb: 1, style: shadow ? styles.boxShadowStyle : {}, children: [_jsx(Flex, { alignItems: "center", children: _jsx(ArtsyLogoBlackIcon, { scale: 0.75 }) }), _jsx(Spacer, { x: 1 })] }), _jsx(Spacer, { x: 2 })] }));
7
+ export const ArtsyLogoHeader = ({ shadow = false }) => (_jsxs(_Fragment, { children: [_jsxs(Box, { mt: 2, mb: 1, style: shadow ? styles.boxShadowStyle : {}, children: [_jsx(Flex, { alignItems: "center", children: _jsx(ArtsyLogoIcon, { height: 32, width: 94 }) }), _jsx(Spacer, { x: 1 })] }), _jsx(Spacer, { x: 2 })] }));
8
8
  const styles = StyleSheet.create({
9
9
  boxShadowStyle: {
10
10
  shadowColor: "black",
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { EventEmitter } from "events";
3
+ import { CloseFillIcon, HideIcon, ShowIcon, TriangleDownIcon } from "@artsy/icons/native";
3
4
  import { THEME } from "@artsy/palette-tokens";
4
5
  import themeGet from "@styled-system/theme-get";
5
6
  import isArray from "lodash/isArray";
@@ -10,7 +11,6 @@ import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-na
10
11
  import styled from "styled-components";
11
12
  import { getInputState, getInputVariant, getInputVariants, } from "./helpers";
12
13
  import { maskValue, unmaskText } from "./maskValue";
13
- import { EyeClosedIcon, EyeOpenedIcon, TriangleDown, XCircleIcon } from "../../svgs";
14
14
  import { useTheme } from "../../utils/hooks";
15
15
  import { useMeasure } from "../../utils/hooks/useMeasure";
16
16
  import { Flex } from "../Flex";
@@ -222,7 +222,7 @@ export const Input = forwardRef(({ addClearListener = false, defaultValue, disab
222
222
  justifyContent: "space-between",
223
223
  },
224
224
  selectComponentStyles,
225
- ], children: [_jsx(Text, { color: disabled ? "mono30" : "mono100", children: selectDisplayLabel }), _jsx(TriangleDown, { fill: "mono60", width: 10 })] }) }));
225
+ ], children: [_jsx(Text, { color: disabled ? "mono30" : "mono100", children: selectDisplayLabel }), _jsx(TriangleDownIcon, { fill: "mono60", width: 10 })] }) }));
226
226
  }
227
227
  return null;
228
228
  }, [
@@ -248,7 +248,7 @@ export const Input = forwardRef(({ addClearListener = false, defaultValue, disab
248
248
  } }) }));
249
249
  }
250
250
  if (enableClearButton && value) {
251
- return (_jsx(Flex, { justifyContent: "center", position: "absolute", right: `${HORIZONTAL_PADDING}px`, top: hasTitle ? LABEL_HEIGHT : 0, height: INPUT_MIN_HEIGHT, zIndex: 100, ref: rightComponentRef, children: _jsx(Touchable, { haptic: "impactMedium", onPress: handleClear, hitSlop: { bottom: 40, right: 40, left: 0, top: 40 }, accessibilityRole: "button", accessibilityHint: "Clears the input", accessibilityLabel: "Clear", testID: "clear-input-button", children: _jsx(XCircleIcon, { fill: "mono30" }) }) }));
251
+ return (_jsx(Flex, { justifyContent: "center", position: "absolute", right: `${HORIZONTAL_PADDING}px`, top: hasTitle ? LABEL_HEIGHT : 0, height: INPUT_MIN_HEIGHT, zIndex: 100, ref: rightComponentRef, children: _jsx(Touchable, { haptic: "impactMedium", onPress: handleClear, hitSlop: { bottom: 40, right: 40, left: 0, top: 40 }, accessibilityRole: "button", accessibilityHint: "Clears the input", accessibilityLabel: "Clear", testID: "clear-input-button", children: _jsx(CloseFillIcon, { fill: "mono30" }) }) }));
252
252
  }
253
253
  if (secureTextEntry) {
254
254
  return (_jsx(Flex, { justifyContent: "center", position: "absolute", right: `${HORIZONTAL_PADDING}px`, top: hasTitle ? LABEL_HEIGHT : 0, height: INPUT_MIN_HEIGHT, zIndex: 100, ref: rightComponentRef, children: _jsx(Touchable, { haptic: true, onPress: () => {
@@ -257,7 +257,7 @@ export const Input = forwardRef(({ addClearListener = false, defaultValue, disab
257
257
  duration: 200,
258
258
  });
259
259
  setShowPassword(!showPassword);
260
- }, accessibilityRole: "button", accessibilityLabel: showPassword ? "hide password icon" : "show password icon", accessibilityHint: showPassword ? "Hides the password" : "Shows the password", hitSlop: { bottom: 40, right: 40, left: 0, top: 40 }, children: !showPassword ? _jsx(EyeClosedIcon, { fill: "mono30" }) : _jsx(EyeOpenedIcon, { fill: "mono60" }) }) }));
260
+ }, accessibilityRole: "button", accessibilityLabel: showPassword ? "hide password icon" : "show password icon", accessibilityHint: showPassword ? "Hides the password" : "Shows the password", hitSlop: { bottom: 40, right: 40, left: 0, top: 40 }, children: !showPassword ? _jsx(HideIcon, { fill: "mono30" }) : _jsx(ShowIcon, { fill: "mono60" }) }) }));
261
261
  }
262
262
  return null;
263
263
  }, [
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SearchIcon } from "@artsy/icons/native";
2
3
  import { storiesOf } from "@storybook/react-native";
3
4
  import { Input } from "./Input";
4
5
  import { List } from "../../storybook/helpers";
5
- import { MagnifyingGlassIcon } from "../../svgs";
6
6
  import { Join } from "../Join";
7
7
  import { Separator } from "../Separator";
8
8
  import { Text } from "../Text";
9
- storiesOf("Input", module).add("Variants", () => (_jsx(List, { contentContainerStyle: { marginHorizontal: 20, alignItems: "stretch" }, children: _jsxs(Join, { separator: _jsx(Separator, { my: 2 }), children: [_jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "Default" }), _jsx(Input, {})] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title" }), _jsx(Input, { title: "Title" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and required" }), _jsx(Input, { title: "Title", required: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and optional" }), _jsx(Input, { title: "Title", optional: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and clear button" }), _jsx(Input, { title: "Title", enableClearButton: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and loading" }), _jsx(Input, { title: "Title", loading: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and icon" }), _jsx(Input, { title: "Title", icon: _jsx(MagnifyingGlassIcon, {}) })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and error" }), _jsx(Input, { title: "Title", error: "this is an error" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and disabled" }), _jsx(Input, { title: "Disabled", disabled: true })] }), _jsx(_Fragment, { children: _jsx(Input, { placeholder: "I'm a placeholder" }) }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title, clear button and value" }), _jsx(Input, { value: "5", enableClearButton: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With fixed right placeholder" }), _jsx(Input, { fixedRightPlaceholder: "cm" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With placeholder" }), _jsx(Input, { placeholder: "I'm a placeholder" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and placeholder" }), _jsx(Input, { title: "full text", value: "Wow this is a long text, I wonder if I can read the whole thing!" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With text limit" }), _jsx(Input, { title: "Text with limit", maxLength: 100, showLimit: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "multine Without limit" }), _jsx(Input, { title: "Text area", multiline: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "multine With limit" }), _jsx(Input, { title: "Text area with limit", multiline: true, maxLength: 150, showLimit: true })] })] }) })));
9
+ storiesOf("Input", module).add("Variants", () => (_jsx(List, { contentContainerStyle: { marginHorizontal: 20, alignItems: "stretch" }, children: _jsxs(Join, { separator: _jsx(Separator, { my: 2 }), children: [_jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "Default" }), _jsx(Input, {})] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title" }), _jsx(Input, { title: "Title" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and required" }), _jsx(Input, { title: "Title", required: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and optional" }), _jsx(Input, { title: "Title", optional: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and clear button" }), _jsx(Input, { title: "Title", enableClearButton: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and loading" }), _jsx(Input, { title: "Title", loading: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and icon" }), _jsx(Input, { title: "Title", icon: _jsx(SearchIcon, {}) })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and error" }), _jsx(Input, { title: "Title", error: "this is an error" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and disabled" }), _jsx(Input, { title: "Disabled", disabled: true })] }), _jsx(_Fragment, { children: _jsx(Input, { placeholder: "I'm a placeholder" }) }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title, clear button and value" }), _jsx(Input, { value: "5", enableClearButton: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With fixed right placeholder" }), _jsx(Input, { fixedRightPlaceholder: "cm" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With placeholder" }), _jsx(Input, { placeholder: "I'm a placeholder" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With title and placeholder" }), _jsx(Input, { title: "full text", value: "Wow this is a long text, I wonder if I can read the whole thing!" })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "With text limit" }), _jsx(Input, { title: "Text with limit", maxLength: 100, showLimit: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "multine Without limit" }), _jsx(Input, { title: "Text area", multiline: true })] }), _jsxs(_Fragment, { children: [_jsx(Text, { mb: 1, variant: "sm-display", fontWeight: "bold", children: "multine With limit" }), _jsx(Input, { title: "Text area with limit", multiline: true, maxLength: 150, showLimit: true })] })] }) })));
@@ -39,5 +39,5 @@ export declare const getInputState: ({ isFocused, value, }: {
39
39
  export declare const getInputVariant: ({ disabled, hasError, }: {
40
40
  disabled: boolean;
41
41
  hasError: boolean;
42
- }) => "default" | "disabled" | "error";
42
+ }) => "disabled" | "error" | "default";
43
43
  export {};
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CheckmarkIcon, ChevronSmallRightIcon } from "@artsy/icons/native";
2
3
  import { useState } from "react";
3
4
  import { TouchableOpacity } from "react-native";
4
5
  import { TabBarContainer } from "./TabBarContainer";
5
- import { CheckIcon, ChevronIcon } from "../../svgs";
6
6
  import { useScreenDimensions } from "../../utils/hooks/useScreenDimensions";
7
7
  import { Box } from "../Box";
8
8
  import { Tab } from "../LegacyTabs";
@@ -29,6 +29,6 @@ export const StepTabs = ({ onTabPress, activeTab, tabs }) => {
29
29
  });
30
30
  }, children: [_jsxs(Box, { flexDirection: "row", alignItems: "center", children: [_jsx(Tab, { label: label, onPress: () => onTabSelect(label, index), active: activeTab === index, style: { paddingHorizontal: 0, paddingLeft: 8, paddingRight: 5 }, onLayout: () => {
31
31
  // noop
32
- } }), !!completed && _jsx(CheckIcon, { fill: "green100", height: 15, width: 15 })] }), _jsx(ChevronIcon, { fill: "mono60", height: 10, width: 10 })] }) }, label + index));
32
+ } }), !!completed && _jsx(CheckmarkIcon, { fill: "green100", height: 15, width: 15 })] }), _jsx(ChevronSmallRightIcon, { fill: "mono60", height: 10, width: 10 })] }) }, label + index));
33
33
  }) }));
34
34
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronIcon } from "../../svgs";
2
+ import { ChevronSmallRightIcon } from "@artsy/icons/native";
3
3
  import { useColor } from "../../utils/hooks";
4
4
  import { Flex } from "../Flex";
5
5
  import { Text } from "../Text";
6
6
  import { Touchable } from "../Touchable";
7
- export const MenuItem = ({ title, text, value, onPress, disabled = false, chevron = _jsx(ChevronIcon, { direction: "right", fill: "mono60" }), }) => {
7
+ export const MenuItem = ({ title, text, value, onPress, disabled = false, chevron = _jsx(ChevronSmallRightIcon, { fill: "mono60" }), }) => {
8
8
  const color = useColor();
9
9
  return (_jsx(Touchable, { accessibilityRole: "button", accessibilityState: { disabled }, accessibilityLabel: "Menu item ${title}", onPress: onPress, underlayColor: color("mono5"), disabled: disabled, children: _jsxs(Flex, { flexDirection: "row", alignItems: "center", justifyContent: "space-between", py: 2, px: 2, pr: "15px", children: [_jsx(Flex, { flexDirection: "row", mr: 2, children: _jsx(Text, { variant: "md", color: "onBackgroundHigh", children: title }) }), !!value && (_jsx(Flex, { flex: 1, children: _jsx(Text, { variant: "md", color: "mono60", numberOfLines: 1, textAlign: "right", children: value }) })), !!(onPress && chevron) && _jsx(Flex, { ml: 1, children: chevron }), !!text && (_jsx(Text, { variant: "md", color: color("mono60"), children: text }))] }) }));
10
10
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CloseIcon } from "@artsy/icons/native";
2
3
  import { useRef, useState } from "react";
3
4
  import { Animated, Easing, TouchableOpacity } from "react-native";
4
- import { CloseIcon } from "../../svgs";
5
5
  import { useColor } from "../../utils/hooks/useColor";
6
6
  import { Flex } from "../Flex";
7
7
  import { Text } from "../Text";
@@ -1,16 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { InfoIcon } from "@artsy/icons/native";
2
3
  import { storiesOf } from "@storybook/react-native";
3
4
  import { Text } from "react-native";
4
5
  import { Message } from "./Message";
5
6
  import { withTheme } from "../../storybook/decorators";
6
7
  import { List } from "../../storybook/helpers";
7
- import { InfoCircleIcon } from "../../svgs";
8
8
  import { Button } from "../Button";
9
9
  storiesOf("Message", module)
10
10
  .addDecorator(withTheme)
11
11
  .add("Variants", () => (_jsxs(List, { contentContainerStyle: { marginHorizontal: 20, alignItems: "stretch" }, children: [_jsx(Message, { variant: "default", title: "Without Close Button", text: "Text" }), _jsx(Message, { variant: "default", title: "Without Close Button", children: _jsx(Text, { children: "Text" }) }), _jsx(Message, { variant: "default", text: "Without title" }), _jsx(Message, { variant: "default", showCloseButton: true, title: "Title", text: "Text" }), _jsx(Message, { variant: "default", showCloseButton: true, title: "Title", text: "Very very very very very very very very very very very very very very long text" }), _jsx(Message, { variant: "default", showCloseButton: true, title: "Very very very very very very very very very very very very very very long title", text: "Text" }), _jsx(Message, { variant: "default", showCloseButton: true, title: "Very very very very very very very very very very very very very very long title", text: "Very very very very very very very very very very very very very very long text" })] })))
12
12
  .add("Color Variants", () => (_jsxs(List, { contentContainerStyle: { marginHorizontal: 20, alignItems: "stretch" }, children: [_jsx(Message, { variant: "default", showCloseButton: true, title: "Default", text: "Text" }), _jsx(Message, { variant: "info", showCloseButton: true, title: "Info", text: "Text" }), _jsx(Message, { variant: "success", showCloseButton: true, title: "Success", text: "Text" }), _jsx(Message, { variant: "warning", showCloseButton: true, title: "Warning", text: "Text" }), _jsx(Message, { variant: "error", showCloseButton: true, title: "Error", text: "Text" }), _jsx(Message, { variant: "dark", showCloseButton: true, title: "Error", text: "Text" })] })))
13
- .add("IconComponent position", () => (_jsxs(List, { contentContainerStyle: { marginHorizontal: 20, alignItems: "stretch" }, children: [_jsx(Message, { variant: "default", showCloseButton: true, title: "Default position", text: "Text", IconComponent: () => _jsx(InfoCircleIcon, {}) }), _jsx(Message, { iconPosition: "right", variant: "default", showCloseButton: true, title: "Rign", text: "Text", IconComponent: () => _jsx(Button, { size: "small", children: "Click" }) }), _jsx(Message, { iconPosition: "bottom", variant: "default", showCloseButton: true, title: "Bottom", text: "Text", IconComponent: () => {
13
+ .add("IconComponent position", () => (_jsxs(List, { contentContainerStyle: { marginHorizontal: 20, alignItems: "stretch" }, children: [_jsx(Message, { variant: "default", showCloseButton: true, title: "Default position", text: "Text", IconComponent: () => _jsx(InfoIcon, {}) }), _jsx(Message, { iconPosition: "right", variant: "default", showCloseButton: true, title: "Rign", text: "Text", IconComponent: () => _jsx(Button, { size: "small", children: "Click" }) }), _jsx(Message, { iconPosition: "bottom", variant: "default", showCloseButton: true, title: "Bottom", text: "Text", IconComponent: () => {
14
14
  return _jsx(Button, { size: "small", children: "Click" });
15
15
  } }), _jsx(Message, { iconPosition: "bottom", variant: "dark", showCloseButton: true, title: "Bottom, dark", text: "Text", IconComponent: () => {
16
16
  return (_jsx(Button, { variant: "outlineLight", size: "small", children: "Click" }));
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
+ import { IconProps } from "@artsy/icons/native";
2
3
  import { MotiPressableProps } from "moti/interactions";
3
4
  import { FlattenInterpolation } from "styled-components";
4
- import { IconProps } from "../../svgs/Icon";
5
5
  import { FlexProps } from "../Flex";
6
6
  export declare const PILL_VARIANT_NAMES: readonly ["badge", "default", "dotted", "filter", "profile", "search", "onboarding", "link"];
7
7
  export type PillState = "default" | "selected" | "disabled";
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CloseIcon } from "@artsy/icons/native";
2
3
  import themeGet from "@styled-system/theme-get";
3
4
  import { MotiPressable } from "moti/interactions";
4
5
  import { useMemo } from "react";
5
6
  import { PixelRatio } from "react-native";
6
7
  import styled, { css } from "styled-components";
7
- import { CloseIcon } from "../../svgs";
8
8
  import { Flex } from "../Flex";
9
9
  import { Image } from "../Image";
10
10
  import { Text } from "../Text";
@@ -96,7 +96,7 @@ const PILL_VARIANTS = {
96
96
  border-color: ${themeGet("colors.mono5")};
97
97
  border-radius: 25px;
98
98
  height: 50px;
99
- padding: 0 ${themeGet("space.1")}};
99
+ padding: 0 ${themeGet("space.1")};
100
100
  `,
101
101
  selected: css `
102
102
  border-color: ${themeGet("colors.blue100")};
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { GraphIcon } from "@artsy/icons/native";
2
3
  import { storiesOf } from "@storybook/react-native";
3
4
  import { useState } from "react";
4
5
  import { Pill } from "./Pill";
5
6
  import { List } from "../../storybook/helpers";
6
- import { GraphIcon } from "../../svgs";
7
7
  import { Flex } from "../Flex";
8
8
  export default {
9
9
  title: "Pill",
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CloseIcon } from "@artsy/icons/native";
2
3
  import RNPopover from "react-native-popover-view";
3
4
  import { Easing } from "react-native-reanimated";
4
- import { CloseIcon } from "../../svgs";
5
5
  import { useColor } from "../../utils/hooks";
6
6
  import { Flex } from "../Flex";
7
7
  import { Touchable } from "../Touchable";
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ChevronLeftIcon } from "@artsy/icons/native";
2
3
  import Animated, { Easing, FadeIn, FadeOut, useAnimatedStyle, useDerivedValue, } from "react-native-reanimated";
3
4
  import { useScreenScrollContext } from "./ScreenScrollContext";
4
5
  import { NAVBAR_HEIGHT, ZINDEX } from "./constants";
5
6
  import { DEFAULT_HIT_SLOP, DEFAULT_ICON_SIZE } from "../../constants";
6
- import { ArrowLeftIcon } from "../../svgs/ArrowLeftIcon";
7
7
  import { useScreenDimensions, useSpace } from "../../utils/hooks";
8
8
  import { Flex } from "../Flex";
9
9
  import { Text } from "../Text";
@@ -49,5 +49,5 @@ const Center = ({ animated, hideTitle, title }) => {
49
49
  const Left = ({ hideLeftElements, leftElements, onBack }) => {
50
50
  if (hideLeftElements)
51
51
  return null;
52
- return (_jsx(_Fragment, { children: leftElements || (_jsx(Touchable, { accessibilityRole: "button", accessibilityLabel: "Back", accessibilityHint: "Navigates to the previous screen", onPress: onBack, underlayColor: "transparent", hitSlop: DEFAULT_HIT_SLOP, children: _jsx(ArrowLeftIcon, { fill: "onBackgroundHigh" }) })) }));
52
+ return (_jsx(_Fragment, { children: leftElements || (_jsx(Touchable, { accessibilityRole: "button", accessibilityLabel: "Back", accessibilityHint: "Navigates to the previous screen", onPress: onBack, underlayColor: "transparent", hitSlop: DEFAULT_HIT_SLOP, children: _jsx(ChevronLeftIcon, { fill: "onBackgroundHigh" }) })) }));
53
53
  };
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ArrowLeftIcon, SearchIcon } from "@artsy/icons/native";
2
3
  import isArray from "lodash/isArray";
3
4
  import isString from "lodash/isString";
4
5
  import { useCallback, useMemo, useRef, useState } from "react";
5
6
  import { PixelRatio, TextInput } from "react-native";
6
7
  import { DEFAULT_HIT_SLOP } from "../../constants";
7
- import { ArrowLeftIcon, MagnifyingGlassIcon } from "../../svgs";
8
8
  import { useColor, useTheme } from "../../utils/hooks";
9
9
  import { Flex } from "../Flex";
10
10
  import { Text } from "../Text";
@@ -88,7 +88,7 @@ export const RoundSearchInput = ({ value, placeholder, onLeftIconPress, ...rest
88
88
  ref.current?.blur();
89
89
  setIsFocused(false);
90
90
  onLeftIconPress?.();
91
- }, hitSlop: DEFAULT_HIT_SLOP, haptic: "impactLight", children: !isFocused ? (_jsx(MagnifyingGlassIcon, { fill: "mono60", width: ICON_SIZE, height: ICON_SIZE })) : (_jsx(ArrowLeftIcon, { long: true, fill: "mono60", width: ICON_SIZE, height: ICON_SIZE })) }) })] }));
91
+ }, hitSlop: DEFAULT_HIT_SLOP, haptic: "impactLight", children: !isFocused ? (_jsx(SearchIcon, { fill: "mono60", width: ICON_SIZE, height: ICON_SIZE })) : (_jsx(ArrowLeftIcon, { fill: "mono60", width: ICON_SIZE, height: ICON_SIZE })) }) })] }));
92
92
  };
93
93
  export const SEARCH_INPUT_CONTAINER_HEIGHT = 48;
94
94
  const CONTAINER_HORIZONTAL_PADDING = 16;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { MagnifyingGlassIcon } from "../../svgs";
2
+ import { SearchIcon } from "@artsy/icons/native";
3
3
  import { useColor } from "../../utils/hooks";
4
4
  import { Flex } from "../Flex";
5
5
  import { Input } from "../Input";
6
6
  export const SearchInput = ({ enableCancelButton = true, onChangeText, onClear, ...props }) => {
7
7
  const color = useColor();
8
- return (_jsx(Flex, { flexDirection: "row", justifyContent: "center", children: _jsx(Input, { icon: _jsx(MagnifyingGlassIcon, { width: 18, height: 18, fill: "onBackgroundHigh" }), autoCorrect: false, enableClearButton: enableCancelButton, returnKeyType: "search", onClear: () => {
8
+ return (_jsx(Flex, { flexDirection: "row", justifyContent: "center", children: _jsx(Input, { icon: _jsx(SearchIcon, { width: 18, height: 18, fill: "onBackgroundHigh" }), autoCorrect: false, enableClearButton: enableCancelButton, returnKeyType: "search", onClear: () => {
9
9
  onClear?.();
10
10
  }, onChangeText: onChangeText, ...props, onFocus: (e) => {
11
11
  props.onFocus?.(e);
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { TriangleDownIcon } from "@artsy/icons/native";
2
3
  import { noop } from "lodash";
3
4
  import { createContext, useContext, useRef, useState } from "react";
4
5
  import { View } from "react-native";
5
6
  import { ToolTipFlyout, ToolTipTextContainer } from "./ToolTipFlyout";
6
- import { TriangleDown } from "../../svgs/TriangleDown";
7
7
  import { useScreenDimensions } from "../../utils/hooks/useScreenDimensions";
8
8
  import { useTheme } from "../../utils/hooks/useTheme";
9
9
  export const ToolTipContext = createContext({
@@ -58,7 +58,7 @@ export const ToolTip = ({ children, enabled = true, flowDirection, initialToolTi
58
58
  bottom: childrenDimensions.height + yOffset,
59
59
  left: xOffset,
60
60
  ...extraStyle,
61
- }, tapToDismiss: tapToDismiss, height: finalToolTipHeight, width: finalToolTipWidth, onClose: dismissToolTip, onToolTipPress: onPress, position: position, testID: testID, text: toolTipText }), !!enabled && position === "TOP" && !!toolTipText && (_jsx(TriangleDown, { style: {
61
+ }, tapToDismiss: tapToDismiss, height: finalToolTipHeight, width: finalToolTipWidth, onClose: dismissToolTip, onToolTipPress: onPress, position: position, testID: testID, text: toolTipText }), !!enabled && position === "TOP" && !!toolTipText && (_jsx(TriangleDownIcon, { style: {
62
62
  left: triangleXDisplacement + xOffset,
63
63
  position: "absolute",
64
64
  bottom: childrenDimensions.height + yOffset - 5, // where 5 is the triangle icon size
@@ -74,7 +74,7 @@ export const ToolTip = ({ children, enabled = true, flowDirection, initialToolTi
74
74
  }, children: children }), !!enabled && position === "BOTTOM" && (_jsxs(_Fragment, { children: [_jsx(ToolTipFlyout, { containerStyle: {
75
75
  top: childrenDimensions.height + yOffset,
76
76
  ...extraStyle,
77
- }, tapToDismiss: tapToDismiss, height: finalToolTipHeight, width: finalToolTipWidth, onClose: dismissToolTip, onToolTipPress: onPress, position: position, testID: testID, text: toolTipText }), !!enabled && position === "BOTTOM" && !!toolTipText && (_jsx(TriangleDown, { style: {
77
+ }, tapToDismiss: tapToDismiss, height: finalToolTipHeight, width: finalToolTipWidth, onClose: dismissToolTip, onToolTipPress: onPress, position: position, testID: testID, text: toolTipText }), !!enabled && position === "BOTTOM" && !!toolTipText && (_jsx(TriangleDownIcon, { style: {
78
78
  transform: [{ rotate: "180deg" }],
79
79
  left: triangleXDisplacement + xOffset,
80
80
  position: "absolute",
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { TrashIcon } from "@artsy/icons/native";
2
3
  import { Touchable } from "./Touchable";
3
4
  import { List } from "../../storybook/helpers";
4
- import { TrashIcon } from "../../svgs";
5
5
  import { Flex } from "../Flex";
6
6
  import { Text } from "../Text";
7
7
  export default {
package/dist/index.d.ts CHANGED
@@ -3,8 +3,6 @@ export * from "./constants";
3
3
  export * from "./elements";
4
4
  export * from "./utils/hooks";
5
5
  export * from "./utils/text";
6
- export * from "./svgs";
7
- export * from "./svgs/Icon";
8
6
  export * from "./Theme";
9
7
  export * from "./tokens";
10
8
  export * from "./types";
package/dist/index.js CHANGED
@@ -3,8 +3,6 @@ export * from "./constants";
3
3
  export * from "./elements";
4
4
  export * from "./utils/hooks";
5
5
  export * from "./utils/text";
6
- export * from "./svgs";
7
- export * from "./svgs/Icon";
8
6
  export * from "./Theme";
9
7
  export * from "./tokens";
10
8
  export * from "./types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "17.33.0",
3
+ "version": "18.0.0",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082 --terminal terminal",
@@ -33,6 +33,7 @@
33
33
  "FOR DEPS NEEDED FOR THE STORYBOOK APP, ADD THEM AS DEV DEPS BELOW."
34
34
  ],
35
35
  "dependencies": {
36
+ "@artsy/icons": "^3.49.0",
36
37
  "@artsy/palette-tokens": "^7.0.0",
37
38
  "@d11/react-native-fast-image": "^8.10.0",
38
39
  "@shopify/flash-list": "^1.8.3",
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const AddCircleFillIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const AddCircleFillIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsx(Icon, { ...restProps, viewBox: "0 0 18 18", children: _jsx(Path, { d: "M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm.551 7.449H13V9.55H9.551V13H8.45V9.551H5V8.45h3.449V5H9.55v3.449z", fill: color(fill), fillRule: "nonzero" }) }));
7
- };
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const AddCircleIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const AddCircleIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsx(Icon, { ...restProps, viewBox: "0 0 18 18", children: _jsx(Path, { d: "M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm0 15.111A7.111 7.111 0 1 1 9 1.89 7.111 7.111 0 0 1 9 16.11zm.551-7.662H13V9.55H9.551V13H8.45V9.551H5V8.45h3.449V5H9.55v3.449z", fill: color(fill), fillRule: "nonzero" }) }));
7
- };
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const AddIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const AddIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsx(Icon, { ...restProps, viewBox: "0 0 18 18", children: _jsx(Path, { d: "M15 9.5H9.514V15H8.476V9.5H3V8.48h5.476V3h1.038v5.48H15z", fill: color(fill), fillRule: "evenodd" }) }));
7
- };
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const AlertCircleFillIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const AlertCircleFillIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsx(Icon, { ...restProps, viewBox: "0 0 18 18", children: _jsx(Path, { d: "M17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17C13.4183 17 17 13.4183 17 9ZM8.42225 5.13333H9.5778L9.39114 10.7778H8.60892L8.42225 5.13333ZM8.42225 11.6578H9.56892V12.8667H8.44003L8.42225 11.6578Z", fill: color(fill), fillRule: "evenodd", clipRule: "evenodd" }) }));
7
- };
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const AlertIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const AlertIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsx(Icon, { ...restProps, viewBox: "0 0 18 18", children: _jsx(Path, { d: "M9 1.889A7.111 7.111 0 1 1 9 16.11 7.111 7.111 0 0 1 9 1.89zM9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm-.578 4.133h1.156l-.187 5.645H8.61l-.187-5.645zm0 6.525H9.57v1.209H8.44l-.018-1.21z", fill: color(fill), fillRule: "nonzero" }) }));
7
- };
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const AppleIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const AppleIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsx(Icon, { ...restProps, viewBox: "0 0 18 18", children: _jsx(Path, { d: "M11.3,3.6c-0.5,0.7-1.4,1.1-2.1,1.1c-0.1,0-0.2,0-0.2,0c0-0.1,0-0.2,0-0.3c0-0.8,0.4-1.6,0.8-2.2C10.4,1.5,11.3,1,12.1,1c0,0.1,0,0.2,0,0.3C12.1,2.1,11.8,3,11.3,3.6z M7.9,16.7C7.5,16.9,7.2,17,6.7,17c-1,0-1.6-0.9-2.4-2c-0.9-1.3-1.6-3.4-1.6-5.3c0-3.1,2-4.8,3.9-4.8c0.6,0,1.1,0.2,1.5,0.4c0.4,0.2,0.7,0.3,1,0.3c0.3,0,0.6-0.1,0.9-0.3c0.5-0.2,1.1-0.5,1.8-0.5c0.4,0,2,0,3.1,1.6l0,0c-0.3,0.2-1.6,1.1-1.6,3c0,2.4,2,3.2,2.1,3.2l0,0C15.2,13,14.9,14,14.3,15c-0.7,1-1.4,2-2.4,2c-0.5,0-0.8-0.2-1.2-0.3c-0.4-0.2-0.7-0.3-1.4-0.3C8.7,16.3,8.3,16.5,7.9,16.7z", fill: color(fill), fillRule: "evenodd" }) }));
7
- };
@@ -1,2 +0,0 @@
1
- import { IconProps } from "./Icon";
2
- export declare const ArrowBackIcon: ({ fill, ...restProps }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon, Path } from "./Icon";
3
- import { useColor } from "../utils/hooks";
4
- export const ArrowBackIcon = ({ fill = "mono100", ...restProps }) => {
5
- const color = useColor();
6
- return (_jsxs(Icon, { ...restProps, viewBox: "0 0 18 18", children: [_jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M5.91163 2.49087L2.24335 6.15914L5.91163 9.82742L5.37894 10.3601L1.17798 6.15914L5.37894 1.95818L5.91163 2.49087Z", fill: color("mono100") }), _jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M2.21411 5.60327H11.6098C14.4925 5.60327 16.8294 7.94017 16.8294 10.8229C16.8294 13.7056 14.4925 16.0425 11.6098 16.0425H5.98362V15.1503H11.5446C13.906 15.1503 15.8203 13.236 15.8203 10.8746C15.8203 8.51321 13.906 6.59891 11.5446 6.59891H2.21411V5.60327Z", fill: color("mono100") })] }));
7
- };