polaris_view_components 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (505) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +20 -0
  3. data/README.md +51 -0
  4. data/app/assets/icons/polaris/AbandonedCartMajor.svg +1 -0
  5. data/app/assets/icons/polaris/AccessibilityMajor.svg +1 -0
  6. data/app/assets/icons/polaris/ActivitiesMajor.svg +1 -0
  7. data/app/assets/icons/polaris/AddCodeMajor.svg +1 -0
  8. data/app/assets/icons/polaris/AddImageMajor.svg +1 -0
  9. data/app/assets/icons/polaris/AddMajor.svg +1 -0
  10. data/app/assets/icons/polaris/AddNoteMajor.svg +1 -0
  11. data/app/assets/icons/polaris/AddProductMajor.svg +1 -0
  12. data/app/assets/icons/polaris/AffiliateMajor.svg +1 -0
  13. data/app/assets/icons/polaris/AlertMinor.svg +1 -0
  14. data/app/assets/icons/polaris/AnalyticsMajor.svg +1 -0
  15. data/app/assets/icons/polaris/AppExtensionMinor.svg +1 -0
  16. data/app/assets/icons/polaris/AppsMajor.svg +1 -0
  17. data/app/assets/icons/polaris/ArchiveMajor.svg +1 -0
  18. data/app/assets/icons/polaris/ArchiveMinor.svg +1 -0
  19. data/app/assets/icons/polaris/ArrowDownMinor.svg +1 -0
  20. data/app/assets/icons/polaris/ArrowLeftMinor.svg +1 -0
  21. data/app/assets/icons/polaris/ArrowRightMinor.svg +1 -0
  22. data/app/assets/icons/polaris/ArrowUpMinor.svg +1 -0
  23. data/app/assets/icons/polaris/AttachmentMajor.svg +1 -0
  24. data/app/assets/icons/polaris/AutomationMajor.svg +1 -0
  25. data/app/assets/icons/polaris/BackspaceMajor.svg +1 -0
  26. data/app/assets/icons/polaris/BalanceMajor.svg +1 -0
  27. data/app/assets/icons/polaris/BankMajor.svg +1 -0
  28. data/app/assets/icons/polaris/BarcodeMajor.svg +1 -0
  29. data/app/assets/icons/polaris/BehaviorMajor.svg +1 -0
  30. data/app/assets/icons/polaris/BillingStatementDollarMajor.svg +1 -0
  31. data/app/assets/icons/polaris/BillingStatementEuroMajor.svg +1 -0
  32. data/app/assets/icons/polaris/BillingStatementPoundMajor.svg +1 -0
  33. data/app/assets/icons/polaris/BillingStatementRupeeMajor.svg +1 -0
  34. data/app/assets/icons/polaris/BillingStatementYenMajor.svg +1 -0
  35. data/app/assets/icons/polaris/BlockquoteMajor.svg +1 -0
  36. data/app/assets/icons/polaris/BlogMajor.svg +1 -0
  37. data/app/assets/icons/polaris/BugMajor.svg +1 -0
  38. data/app/assets/icons/polaris/ButtonCornerPillMajor.svg +1 -0
  39. data/app/assets/icons/polaris/ButtonCornerRoundedMajor.svg +1 -0
  40. data/app/assets/icons/polaris/ButtonCornerSquareMajor.svg +1 -0
  41. data/app/assets/icons/polaris/BuyButtonButtonLayoutMajor.svg +1 -0
  42. data/app/assets/icons/polaris/BuyButtonHorizontalLayoutMajor.svg +1 -0
  43. data/app/assets/icons/polaris/BuyButtonMajor.svg +1 -0
  44. data/app/assets/icons/polaris/BuyButtonVerticalLayoutMajor.svg +1 -0
  45. data/app/assets/icons/polaris/CalendarMajor.svg +1 -0
  46. data/app/assets/icons/polaris/CalendarMinor.svg +1 -0
  47. data/app/assets/icons/polaris/CalendarTickMajor.svg +1 -0
  48. data/app/assets/icons/polaris/CameraMajor.svg +1 -0
  49. data/app/assets/icons/polaris/CancelSmallMinor.svg +1 -0
  50. data/app/assets/icons/polaris/CapitalMajor.svg +1 -0
  51. data/app/assets/icons/polaris/CapturePaymentMinor.svg +1 -0
  52. data/app/assets/icons/polaris/CardReaderChipMajor.svg +1 -0
  53. data/app/assets/icons/polaris/CardReaderMajor.svg +1 -0
  54. data/app/assets/icons/polaris/CardReaderTapMajor.svg +1 -0
  55. data/app/assets/icons/polaris/CaretDownMinor.svg +1 -0
  56. data/app/assets/icons/polaris/CaretUpMinor.svg +1 -0
  57. data/app/assets/icons/polaris/CartDownMajor.svg +1 -0
  58. data/app/assets/icons/polaris/CartMajor.svg +1 -0
  59. data/app/assets/icons/polaris/CartUpMajor.svg +1 -0
  60. data/app/assets/icons/polaris/CashDollarMajor.svg +1 -0
  61. data/app/assets/icons/polaris/CashEuroMajor.svg +1 -0
  62. data/app/assets/icons/polaris/CashPoundMajor.svg +1 -0
  63. data/app/assets/icons/polaris/CashRupeeMajor.svg +1 -0
  64. data/app/assets/icons/polaris/CashYenMajor.svg +1 -0
  65. data/app/assets/icons/polaris/CategoriesMajor.svg +1 -0
  66. data/app/assets/icons/polaris/ChannelsMajor.svg +1 -0
  67. data/app/assets/icons/polaris/ChatMajor.svg +1 -0
  68. data/app/assets/icons/polaris/ChecklistAlternateMajor.svg +1 -0
  69. data/app/assets/icons/polaris/ChecklistMajor.svg +1 -0
  70. data/app/assets/icons/polaris/CheckoutMajor.svg +1 -0
  71. data/app/assets/icons/polaris/ChevronDownMinor.svg +1 -0
  72. data/app/assets/icons/polaris/ChevronLeftMinor.svg +1 -0
  73. data/app/assets/icons/polaris/ChevronRightMinor.svg +1 -0
  74. data/app/assets/icons/polaris/ChevronUpMinor.svg +1 -0
  75. data/app/assets/icons/polaris/CircleAlertMajor.svg +1 -0
  76. data/app/assets/icons/polaris/CircleCancelMajor.svg +1 -0
  77. data/app/assets/icons/polaris/CircleCancelMinor.svg +1 -0
  78. data/app/assets/icons/polaris/CircleChevronDownMinor.svg +1 -0
  79. data/app/assets/icons/polaris/CircleChevronLeftMinor.svg +1 -0
  80. data/app/assets/icons/polaris/CircleChevronRightMinor.svg +1 -0
  81. data/app/assets/icons/polaris/CircleChevronUpMinor.svg +1 -0
  82. data/app/assets/icons/polaris/CircleDisableMinor.svg +1 -0
  83. data/app/assets/icons/polaris/CircleDisabledMajor.svg +1 -0
  84. data/app/assets/icons/polaris/CircleDotsMajor.svg +1 -0
  85. data/app/assets/icons/polaris/CircleDownMajor.svg +1 -0
  86. data/app/assets/icons/polaris/CircleInformationMajor.svg +1 -0
  87. data/app/assets/icons/polaris/CircleLeftMajor.svg +1 -0
  88. data/app/assets/icons/polaris/CircleMinusMajor.svg +1 -0
  89. data/app/assets/icons/polaris/CircleMinusMinor.svg +1 -0
  90. data/app/assets/icons/polaris/CircleMinusOutlineMinor.svg +1 -0
  91. data/app/assets/icons/polaris/CirclePlusMajor.svg +1 -0
  92. data/app/assets/icons/polaris/CirclePlusMinor.svg +1 -0
  93. data/app/assets/icons/polaris/CirclePlusOutlineMinor.svg +1 -0
  94. data/app/assets/icons/polaris/CircleRightMajor.svg +1 -0
  95. data/app/assets/icons/polaris/CircleTickMajor.svg +1 -0
  96. data/app/assets/icons/polaris/CircleTickOutlineMinor.svg +1 -0
  97. data/app/assets/icons/polaris/CircleUpMajor.svg +1 -0
  98. data/app/assets/icons/polaris/ClipboardMinor.svg +1 -0
  99. data/app/assets/icons/polaris/ClockMajor.svg +1 -0
  100. data/app/assets/icons/polaris/ClockMinor.svg +1 -0
  101. data/app/assets/icons/polaris/CodeMajor.svg +1 -0
  102. data/app/assets/icons/polaris/CollectionsMajor.svg +1 -0
  103. data/app/assets/icons/polaris/ColorNoneMinor.svg +1 -0
  104. data/app/assets/icons/polaris/ColorsMajor.svg +1 -0
  105. data/app/assets/icons/polaris/Column1Major.svg +1 -0
  106. data/app/assets/icons/polaris/ColumnWithTextMajor.svg +1 -0
  107. data/app/assets/icons/polaris/Columns2Major.svg +1 -0
  108. data/app/assets/icons/polaris/Columns3Major.svg +1 -0
  109. data/app/assets/icons/polaris/ComposeMajor.svg +1 -0
  110. data/app/assets/icons/polaris/ConfettiMajor.svg +1 -0
  111. data/app/assets/icons/polaris/ConnectMinor.svg +1 -0
  112. data/app/assets/icons/polaris/ConversationMinor.svg +1 -0
  113. data/app/assets/icons/polaris/CreditCardMajor.svg +1 -0
  114. data/app/assets/icons/polaris/CreditCardPercentMajor.svg +1 -0
  115. data/app/assets/icons/polaris/CreditCardSecureMajor.svg +1 -0
  116. data/app/assets/icons/polaris/CurrencyConvertMinor.svg +1 -0
  117. data/app/assets/icons/polaris/CustomerMinusMajor.svg +1 -0
  118. data/app/assets/icons/polaris/CustomerPlusMajor.svg +1 -0
  119. data/app/assets/icons/polaris/CustomersMajor.svg +1 -0
  120. data/app/assets/icons/polaris/CustomersMinor.svg +1 -0
  121. data/app/assets/icons/polaris/DataVisualizationMajor.svg +1 -0
  122. data/app/assets/icons/polaris/DeleteMajor.svg +1 -0
  123. data/app/assets/icons/polaris/DeleteMinor.svg +1 -0
  124. data/app/assets/icons/polaris/DesktopMajor.svg +1 -0
  125. data/app/assets/icons/polaris/DetailedPopUpMajor.svg +1 -0
  126. data/app/assets/icons/polaris/DiamondAlertMajor.svg +1 -0
  127. data/app/assets/icons/polaris/DigitalMediaReceiverMajor.svg +1 -0
  128. data/app/assets/icons/polaris/DiscountAutomaticMajor.svg +1 -0
  129. data/app/assets/icons/polaris/DiscountCodeMajor.svg +1 -0
  130. data/app/assets/icons/polaris/DiscountsMajor.svg +1 -0
  131. data/app/assets/icons/polaris/DisputeMinor.svg +1 -0
  132. data/app/assets/icons/polaris/DnsSettingsMajor.svg +1 -0
  133. data/app/assets/icons/polaris/DomainNewMajor.svg +1 -0
  134. data/app/assets/icons/polaris/DomainsMajor.svg +1 -0
  135. data/app/assets/icons/polaris/DraftOrdersMajor.svg +1 -0
  136. data/app/assets/icons/polaris/DragDropMajor.svg +1 -0
  137. data/app/assets/icons/polaris/DragHandleMinor.svg +1 -0
  138. data/app/assets/icons/polaris/DropdownMinor.svg +1 -0
  139. data/app/assets/icons/polaris/DuplicateMinor.svg +1 -0
  140. data/app/assets/icons/polaris/EditMajor.svg +1 -0
  141. data/app/assets/icons/polaris/EditMinor.svg +1 -0
  142. data/app/assets/icons/polaris/EmailMajor.svg +1 -0
  143. data/app/assets/icons/polaris/EmailNewsletterMajor.svg +1 -0
  144. data/app/assets/icons/polaris/EmbedMinor.svg +1 -0
  145. data/app/assets/icons/polaris/EnableSelectionMinor.svg +1 -0
  146. data/app/assets/icons/polaris/EnvelopeMajor.svg +1 -0
  147. data/app/assets/icons/polaris/ExchangeMajor.svg +1 -0
  148. data/app/assets/icons/polaris/ExistingInventoryMajor.svg +1 -0
  149. data/app/assets/icons/polaris/ExitMajor.svg +1 -0
  150. data/app/assets/icons/polaris/ExportMinor.svg +1 -0
  151. data/app/assets/icons/polaris/ExternalMinor.svg +1 -0
  152. data/app/assets/icons/polaris/ExternalSmallMinor.svg +1 -0
  153. data/app/assets/icons/polaris/FaviconMajor.svg +1 -0
  154. data/app/assets/icons/polaris/FavoriteMajor.svg +1 -0
  155. data/app/assets/icons/polaris/FeaturedCollectionMajor.svg +1 -0
  156. data/app/assets/icons/polaris/FeaturedContentMajor.svg +1 -0
  157. data/app/assets/icons/polaris/FilterMajor.svg +1 -0
  158. data/app/assets/icons/polaris/FirstOrderMajor.svg +1 -0
  159. data/app/assets/icons/polaris/FirstVisitMajor.svg +1 -0
  160. data/app/assets/icons/polaris/FlagMajor.svg +1 -0
  161. data/app/assets/icons/polaris/FlipCameraMajor.svg +1 -0
  162. data/app/assets/icons/polaris/FolderDownMajor.svg +1 -0
  163. data/app/assets/icons/polaris/FolderMajor.svg +1 -0
  164. data/app/assets/icons/polaris/FolderMinusMajor.svg +1 -0
  165. data/app/assets/icons/polaris/FolderPlusMajor.svg +1 -0
  166. data/app/assets/icons/polaris/FolderUpMajor.svg +1 -0
  167. data/app/assets/icons/polaris/FollowUpEmailMajor.svg +1 -0
  168. data/app/assets/icons/polaris/FoodMajor.svg +1 -0
  169. data/app/assets/icons/polaris/FooterMajor.svg +1 -0
  170. data/app/assets/icons/polaris/FormsMajor.svg +1 -0
  171. data/app/assets/icons/polaris/FraudProtectMajor.svg +1 -0
  172. data/app/assets/icons/polaris/FraudProtectMinor.svg +1 -0
  173. data/app/assets/icons/polaris/FraudProtectPendingMajor.svg +1 -0
  174. data/app/assets/icons/polaris/FraudProtectPendingMinor.svg +1 -0
  175. data/app/assets/icons/polaris/FraudProtectUnprotectedMajor.svg +1 -0
  176. data/app/assets/icons/polaris/FraudProtectUnprotectedMinor.svg +1 -0
  177. data/app/assets/icons/polaris/GamesConsoleMajor.svg +1 -0
  178. data/app/assets/icons/polaris/GiftCardMajor.svg +1 -0
  179. data/app/assets/icons/polaris/GiftCardMinor.svg +1 -0
  180. data/app/assets/icons/polaris/GlobeMajor.svg +1 -0
  181. data/app/assets/icons/polaris/GlobeMinor.svg +1 -0
  182. data/app/assets/icons/polaris/GrammarMajor.svg +1 -0
  183. data/app/assets/icons/polaris/HashtagMajor.svg +1 -0
  184. data/app/assets/icons/polaris/HeaderMajor.svg +1 -0
  185. data/app/assets/icons/polaris/HeartMajor.svg +1 -0
  186. data/app/assets/icons/polaris/HideKeyboardMajor.svg +1 -0
  187. data/app/assets/icons/polaris/HideMinor.svg +1 -0
  188. data/app/assets/icons/polaris/HintMajor.svg +1 -0
  189. data/app/assets/icons/polaris/HomeMajor.svg +1 -0
  190. data/app/assets/icons/polaris/HorizontalDotsMinor.svg +1 -0
  191. data/app/assets/icons/polaris/IconsMajor.svg +1 -0
  192. data/app/assets/icons/polaris/IllustrationMajor.svg +1 -0
  193. data/app/assets/icons/polaris/ImageAltMajor.svg +1 -0
  194. data/app/assets/icons/polaris/ImageAltMinor.svg +1 -0
  195. data/app/assets/icons/polaris/ImageMajor.svg +1 -0
  196. data/app/assets/icons/polaris/ImageWithTextMajor.svg +1 -0
  197. data/app/assets/icons/polaris/ImageWithTextOverlayMajor.svg +1 -0
  198. data/app/assets/icons/polaris/ImagesMajor.svg +1 -0
  199. data/app/assets/icons/polaris/ImportMinor.svg +1 -0
  200. data/app/assets/icons/polaris/ImportStoreMajor.svg +1 -0
  201. data/app/assets/icons/polaris/IncomingMajor.svg +1 -0
  202. data/app/assets/icons/polaris/InfoMinor.svg +1 -0
  203. data/app/assets/icons/polaris/InstallMinor.svg +1 -0
  204. data/app/assets/icons/polaris/InventoryMajor.svg +1 -0
  205. data/app/assets/icons/polaris/InviteMinor.svg +1 -0
  206. data/app/assets/icons/polaris/IqMajor.svg +1 -0
  207. data/app/assets/icons/polaris/JobsMajor.svg +1 -0
  208. data/app/assets/icons/polaris/KeyMajor.svg +1 -0
  209. data/app/assets/icons/polaris/LabelPrinterMajor.svg +1 -0
  210. data/app/assets/icons/polaris/LandingPageMajor.svg +1 -0
  211. data/app/assets/icons/polaris/LanguageMinor.svg +1 -0
  212. data/app/assets/icons/polaris/LegalMajor.svg +1 -0
  213. data/app/assets/icons/polaris/LinkMinor.svg +1 -0
  214. data/app/assets/icons/polaris/ListMajor.svg +1 -0
  215. data/app/assets/icons/polaris/LiveViewMajor.svg +1 -0
  216. data/app/assets/icons/polaris/LocationMajor.svg +1 -0
  217. data/app/assets/icons/polaris/LocationsMinor.svg +1 -0
  218. data/app/assets/icons/polaris/LockMajor.svg +1 -0
  219. data/app/assets/icons/polaris/LockMinor.svg +1 -0
  220. data/app/assets/icons/polaris/LogOutMinor.svg +1 -0
  221. data/app/assets/icons/polaris/LogoBlockMajor.svg +1 -0
  222. data/app/assets/icons/polaris/ManagedStoreMajor.svg +1 -0
  223. data/app/assets/icons/polaris/MarkFulfilledMinor.svg +1 -0
  224. data/app/assets/icons/polaris/MarkPaidMinor.svg +1 -0
  225. data/app/assets/icons/polaris/MarketingMajor.svg +1 -0
  226. data/app/assets/icons/polaris/MaximizeMajor.svg +1 -0
  227. data/app/assets/icons/polaris/MaximizeMinor.svg +1 -0
  228. data/app/assets/icons/polaris/MentionMajor.svg +1 -0
  229. data/app/assets/icons/polaris/MicrophoneMajor.svg +1 -0
  230. data/app/assets/icons/polaris/MinimizeMajor.svg +1 -0
  231. data/app/assets/icons/polaris/MinimizeMinor.svg +1 -0
  232. data/app/assets/icons/polaris/MinusMinor.svg +1 -0
  233. data/app/assets/icons/polaris/MobileAcceptMajor.svg +1 -0
  234. data/app/assets/icons/polaris/MobileBackArrowMajor.svg +1 -0
  235. data/app/assets/icons/polaris/MobileCancelMajor.svg +1 -0
  236. data/app/assets/icons/polaris/MobileChevronMajor.svg +1 -0
  237. data/app/assets/icons/polaris/MobileHamburgerMajor.svg +1 -0
  238. data/app/assets/icons/polaris/MobileHorizontalDotsMajor.svg +1 -0
  239. data/app/assets/icons/polaris/MobileMajor.svg +1 -0
  240. data/app/assets/icons/polaris/MobilePlusMajor.svg +1 -0
  241. data/app/assets/icons/polaris/MobileVerticalDotsMajor.svg +1 -0
  242. data/app/assets/icons/polaris/MonerisMajor.svg +1 -0
  243. data/app/assets/icons/polaris/NatureMajor.svg +1 -0
  244. data/app/assets/icons/polaris/NavigationMajor.svg +1 -0
  245. data/app/assets/icons/polaris/NoteMajor.svg +1 -0
  246. data/app/assets/icons/polaris/NoteMinor.svg +1 -0
  247. data/app/assets/icons/polaris/NotificationMajor.svg +1 -0
  248. data/app/assets/icons/polaris/OnlineStoreMajor.svg +1 -0
  249. data/app/assets/icons/polaris/OrderStatusMinor.svg +1 -0
  250. data/app/assets/icons/polaris/OrdersMajor.svg +1 -0
  251. data/app/assets/icons/polaris/OutgoingMajor.svg +1 -0
  252. data/app/assets/icons/polaris/PackageMajor.svg +1 -0
  253. data/app/assets/icons/polaris/PageDownMajor.svg +1 -0
  254. data/app/assets/icons/polaris/PageMajor.svg +1 -0
  255. data/app/assets/icons/polaris/PageMinusMajor.svg +1 -0
  256. data/app/assets/icons/polaris/PagePlusMajor.svg +1 -0
  257. data/app/assets/icons/polaris/PageUpMajor.svg +1 -0
  258. data/app/assets/icons/polaris/PaginationEndMinor.svg +1 -0
  259. data/app/assets/icons/polaris/PaginationStartMinor.svg +1 -0
  260. data/app/assets/icons/polaris/PaintBrushMajor.svg +1 -0
  261. data/app/assets/icons/polaris/PauseCircleMajor.svg +1 -0
  262. data/app/assets/icons/polaris/PauseMajor.svg +1 -0
  263. data/app/assets/icons/polaris/PauseMinor.svg +1 -0
  264. data/app/assets/icons/polaris/PaymentsMajor.svg +1 -0
  265. data/app/assets/icons/polaris/PhoneInMajor.svg +1 -0
  266. data/app/assets/icons/polaris/PhoneMajor.svg +1 -0
  267. data/app/assets/icons/polaris/PhoneOutMajor.svg +1 -0
  268. data/app/assets/icons/polaris/PinMajor.svg +1 -0
  269. data/app/assets/icons/polaris/PinMinor.svg +1 -0
  270. data/app/assets/icons/polaris/PlayCircleMajor.svg +1 -0
  271. data/app/assets/icons/polaris/PlayMajor.svg +1 -0
  272. data/app/assets/icons/polaris/PlayMinor.svg +1 -0
  273. data/app/assets/icons/polaris/PlusMinor.svg +1 -0
  274. data/app/assets/icons/polaris/PointOfSaleMajor.svg +1 -0
  275. data/app/assets/icons/polaris/PopularMajor.svg +1 -0
  276. data/app/assets/icons/polaris/PriceLookupMinor.svg +1 -0
  277. data/app/assets/icons/polaris/PrintMajor.svg +1 -0
  278. data/app/assets/icons/polaris/PrintMinor.svg +1 -0
  279. data/app/assets/icons/polaris/ProductReturnsMinor.svg +1 -0
  280. data/app/assets/icons/polaris/ProductsMajor.svg +1 -0
  281. data/app/assets/icons/polaris/ProfileMajor.svg +1 -0
  282. data/app/assets/icons/polaris/ProfileMinor.svg +1 -0
  283. data/app/assets/icons/polaris/PromoteMinor.svg +1 -0
  284. data/app/assets/icons/polaris/QuestionMarkMajor.svg +1 -0
  285. data/app/assets/icons/polaris/QuestionMarkMinor.svg +1 -0
  286. data/app/assets/icons/polaris/QuickSaleMajor.svg +1 -0
  287. data/app/assets/icons/polaris/ReadTimeMinor.svg +1 -0
  288. data/app/assets/icons/polaris/ReceiptMajor.svg +1 -0
  289. data/app/assets/icons/polaris/RecentSearchesMajor.svg +1 -0
  290. data/app/assets/icons/polaris/RedoMajor.svg +1 -0
  291. data/app/assets/icons/polaris/ReferralCodeMajor.svg +1 -0
  292. data/app/assets/icons/polaris/ReferralMajor.svg +1 -0
  293. data/app/assets/icons/polaris/RefreshMajor.svg +1 -0
  294. data/app/assets/icons/polaris/RefreshMinor.svg +1 -0
  295. data/app/assets/icons/polaris/RefundMajor.svg +1 -0
  296. data/app/assets/icons/polaris/RefundMinor.svg +1 -0
  297. data/app/assets/icons/polaris/RemoveProductMajor.svg +1 -0
  298. data/app/assets/icons/polaris/RepeatOrderMajor.svg +1 -0
  299. data/app/assets/icons/polaris/ReplaceMajor.svg +1 -0
  300. data/app/assets/icons/polaris/ReplayMinor.svg +1 -0
  301. data/app/assets/icons/polaris/ReportMinor.svg +1 -0
  302. data/app/assets/icons/polaris/ReportsMajor.svg +1 -0
  303. data/app/assets/icons/polaris/ResetMinor.svg +1 -0
  304. data/app/assets/icons/polaris/ResourcesMajor.svg +1 -0
  305. data/app/assets/icons/polaris/ReturnMinor.svg +1 -0
  306. data/app/assets/icons/polaris/RiskMajor.svg +1 -0
  307. data/app/assets/icons/polaris/RiskMinor.svg +1 -0
  308. data/app/assets/icons/polaris/SandboxMajor.svg +1 -0
  309. data/app/assets/icons/polaris/SaveMinor.svg +1 -0
  310. data/app/assets/icons/polaris/SearchMajor.svg +1 -0
  311. data/app/assets/icons/polaris/SearchMinor.svg +1 -0
  312. data/app/assets/icons/polaris/SectionMajor.svg +1 -0
  313. data/app/assets/icons/polaris/SecureMajor.svg +1 -0
  314. data/app/assets/icons/polaris/SelectMinor.svg +1 -0
  315. data/app/assets/icons/polaris/SendMajor.svg +1 -0
  316. data/app/assets/icons/polaris/SettingsMajor.svg +1 -0
  317. data/app/assets/icons/polaris/SettingsMinor.svg +1 -0
  318. data/app/assets/icons/polaris/ShareIosMinor.svg +1 -0
  319. data/app/assets/icons/polaris/ShareMinor.svg +1 -0
  320. data/app/assets/icons/polaris/ShipmentMajor.svg +1 -0
  321. data/app/assets/icons/polaris/ShopcodesMajor.svg +1 -0
  322. data/app/assets/icons/polaris/SidebarLeftMajor.svg +1 -0
  323. data/app/assets/icons/polaris/SidebarRightMajor.svg +1 -0
  324. data/app/assets/icons/polaris/SlideshowMajor.svg +1 -0
  325. data/app/assets/icons/polaris/SmileyHappyMajor.svg +1 -0
  326. data/app/assets/icons/polaris/SmileyJoyMajor.svg +1 -0
  327. data/app/assets/icons/polaris/SmileyNeutralMajor.svg +1 -0
  328. data/app/assets/icons/polaris/SmileySadMajor.svg +1 -0
  329. data/app/assets/icons/polaris/SocialAdMajor.svg +1 -0
  330. data/app/assets/icons/polaris/SocialPostMajor.svg +1 -0
  331. data/app/assets/icons/polaris/SoftPackMajor.svg +1 -0
  332. data/app/assets/icons/polaris/SortAscendingMajor.svg +1 -0
  333. data/app/assets/icons/polaris/SortDescendingMajor.svg +1 -0
  334. data/app/assets/icons/polaris/SortMinor.svg +1 -0
  335. data/app/assets/icons/polaris/SoundMajor.svg +1 -0
  336. data/app/assets/icons/polaris/StarFilledMinor.svg +1 -0
  337. data/app/assets/icons/polaris/StarOutlineMinor.svg +1 -0
  338. data/app/assets/icons/polaris/StoreMajor.svg +1 -0
  339. data/app/assets/icons/polaris/StoreMinor.svg +1 -0
  340. data/app/assets/icons/polaris/StoreStatusMajor.svg +1 -0
  341. data/app/assets/icons/polaris/TabletMajor.svg +1 -0
  342. data/app/assets/icons/polaris/TapChipMajor.svg +1 -0
  343. data/app/assets/icons/polaris/TaxMajor.svg +1 -0
  344. data/app/assets/icons/polaris/TeamMajor.svg +1 -0
  345. data/app/assets/icons/polaris/TemplateMajor.svg +1 -0
  346. data/app/assets/icons/polaris/TextAlignmentCenterMajor.svg +1 -0
  347. data/app/assets/icons/polaris/TextAlignmentLeftMajor.svg +1 -0
  348. data/app/assets/icons/polaris/TextAlignmentRightMajor.svg +1 -0
  349. data/app/assets/icons/polaris/TextBlockMajor.svg +1 -0
  350. data/app/assets/icons/polaris/TextMajor.svg +1 -0
  351. data/app/assets/icons/polaris/ThemeEditMajor.svg +1 -0
  352. data/app/assets/icons/polaris/ThemeStoreMajor.svg +1 -0
  353. data/app/assets/icons/polaris/ThemesMajor.svg +1 -0
  354. data/app/assets/icons/polaris/ThumbsDownMajor.svg +1 -0
  355. data/app/assets/icons/polaris/ThumbsDownMinor.svg +1 -0
  356. data/app/assets/icons/polaris/ThumbsUpMajor.svg +1 -0
  357. data/app/assets/icons/polaris/ThumbsUpMinor.svg +1 -0
  358. data/app/assets/icons/polaris/TickMinor.svg +1 -0
  359. data/app/assets/icons/polaris/TickSmallMinor.svg +1 -0
  360. data/app/assets/icons/polaris/TimelineAttachmentMajor.svg +1 -0
  361. data/app/assets/icons/polaris/TipsMajor.svg +1 -0
  362. data/app/assets/icons/polaris/ToolsMajor.svg +1 -0
  363. data/app/assets/icons/polaris/TransactionFeeDollarMajor.svg +1 -0
  364. data/app/assets/icons/polaris/TransactionFeeEuroMajor.svg +1 -0
  365. data/app/assets/icons/polaris/TransactionFeePoundMajor.svg +1 -0
  366. data/app/assets/icons/polaris/TransactionFeeRupeeMajor.svg +1 -0
  367. data/app/assets/icons/polaris/TransactionFeeYenMajor.svg +1 -0
  368. data/app/assets/icons/polaris/TransactionMajor.svg +1 -0
  369. data/app/assets/icons/polaris/TransferInMajor.svg +1 -0
  370. data/app/assets/icons/polaris/TransferMajor.svg +1 -0
  371. data/app/assets/icons/polaris/TransferOutMajor.svg +1 -0
  372. data/app/assets/icons/polaris/TransferWithinShopifyMajor.svg +1 -0
  373. data/app/assets/icons/polaris/TransportMajor.svg +1 -0
  374. data/app/assets/icons/polaris/TroubleshootMajor.svg +1 -0
  375. data/app/assets/icons/polaris/TypeMajor.svg +1 -0
  376. data/app/assets/icons/polaris/UndoMajor.svg +1 -0
  377. data/app/assets/icons/polaris/UnfulfilledMajor.svg +1 -0
  378. data/app/assets/icons/polaris/UnknownDeviceMajor.svg +1 -0
  379. data/app/assets/icons/polaris/UpdateInventoryMajor.svg +1 -0
  380. data/app/assets/icons/polaris/UploadMajor.svg +1 -0
  381. data/app/assets/icons/polaris/VariantMajor.svg +1 -0
  382. data/app/assets/icons/polaris/ViewMajor.svg +1 -0
  383. data/app/assets/icons/polaris/ViewMinor.svg +1 -0
  384. data/app/assets/icons/polaris/ViewportNarrowMajor.svg +1 -0
  385. data/app/assets/icons/polaris/ViewportWideMajor.svg +1 -0
  386. data/app/assets/icons/polaris/VocabularyMajor.svg +1 -0
  387. data/app/assets/icons/polaris/WandMajor.svg +1 -0
  388. data/app/assets/icons/polaris/WearableMajor.svg +1 -0
  389. data/app/assets/icons/polaris/WholesaleMajor.svg +1 -0
  390. data/app/assets/icons/polaris/WifiMajor.svg +1 -0
  391. data/app/assets/javascripts/polaris.js +113 -0
  392. data/app/assets/stylesheets/polaris_view_components.css +136 -0
  393. data/app/components/polaris/action.rb +32 -0
  394. data/app/components/polaris/application_component.rb +35 -0
  395. data/app/components/polaris/avatar_component.html.erb +19 -0
  396. data/app/components/polaris/avatar_component.rb +39 -0
  397. data/app/components/polaris/badge_component.html.erb +9 -0
  398. data/app/components/polaris/badge_component.rb +51 -0
  399. data/app/components/polaris/banner_component.html.erb +42 -0
  400. data/app/components/polaris/banner_component.rb +89 -0
  401. data/app/components/polaris/base_button.rb +31 -0
  402. data/app/components/polaris/base_component.rb +23 -0
  403. data/app/components/polaris/button_component.html.erb +24 -0
  404. data/app/components/polaris/button_component.rb +90 -0
  405. data/app/components/polaris/button_group_component.html.erb +5 -0
  406. data/app/components/polaris/button_group_component.rb +109 -0
  407. data/app/components/polaris/callout_card_component.html.erb +46 -0
  408. data/app/components/polaris/callout_card_component.rb +45 -0
  409. data/app/components/polaris/caption_component.rb +18 -0
  410. data/app/components/polaris/card/header_component.html.erb +25 -0
  411. data/app/components/polaris/card/header_component.rb +23 -0
  412. data/app/components/polaris/card/section_component.html.erb +31 -0
  413. data/app/components/polaris/card/section_component.rb +40 -0
  414. data/app/components/polaris/card_component.html.erb +51 -0
  415. data/app/components/polaris/card_component.rb +52 -0
  416. data/app/components/polaris/character_count.rb +50 -0
  417. data/app/components/polaris/checkbox_component.html.erb +15 -0
  418. data/app/components/polaris/checkbox_component.rb +78 -0
  419. data/app/components/polaris/choice_component.html.erb +35 -0
  420. data/app/components/polaris/choice_component.rb +29 -0
  421. data/app/components/polaris/choice_list/component.html.erb +34 -0
  422. data/app/components/polaris/choice_list/component.rb +65 -0
  423. data/app/components/polaris/choice_list_component.html.erb +19 -0
  424. data/app/components/polaris/choice_list_component.rb +68 -0
  425. data/app/components/polaris/component.rb +5 -0
  426. data/app/components/polaris/description_list_component.html.erb +5 -0
  427. data/app/components/polaris/description_list_component.rb +41 -0
  428. data/app/components/polaris/display_text_component.rb +35 -0
  429. data/app/components/polaris/dropzone/component.html.erb +72 -0
  430. data/app/components/polaris/dropzone/component.rb +130 -0
  431. data/app/components/polaris/dropzone/controller.js +226 -0
  432. data/app/components/polaris/dropzone/utils.js +57 -0
  433. data/app/components/polaris/empty_state_component.html.erb +47 -0
  434. data/app/components/polaris/empty_state_component.rb +38 -0
  435. data/app/components/polaris/exception_list/item_component.html.erb +19 -0
  436. data/app/components/polaris/exception_list/item_component.rb +27 -0
  437. data/app/components/polaris/exception_list_component.html.erb +5 -0
  438. data/app/components/polaris/exception_list_component.rb +20 -0
  439. data/app/components/polaris/footer_help_component.html.erb +11 -0
  440. data/app/components/polaris/footer_help_component.rb +13 -0
  441. data/app/components/polaris/form_layout/group_component.html.erb +7 -0
  442. data/app/components/polaris/form_layout/group_component.rb +39 -0
  443. data/app/components/polaris/form_layout/item_component.rb +18 -0
  444. data/app/components/polaris/form_layout_component.html.erb +5 -0
  445. data/app/components/polaris/form_layout_component.rb +37 -0
  446. data/app/components/polaris/heading_component.rb +24 -0
  447. data/app/components/polaris/icon_component.html.erb +7 -0
  448. data/app/components/polaris/icon_component.rb +36 -0
  449. data/app/components/polaris/inline_error_component.html.erb +6 -0
  450. data/app/components/polaris/inline_error_component.rb +12 -0
  451. data/app/components/polaris/label_component.html.erb +21 -0
  452. data/app/components/polaris/label_component.rb +36 -0
  453. data/app/components/polaris/labelled_component.html.erb +25 -0
  454. data/app/components/polaris/labelled_component.rb +49 -0
  455. data/app/components/polaris/layout/annotated_section.html.erb +19 -0
  456. data/app/components/polaris/layout/annotated_section.rb +21 -0
  457. data/app/components/polaris/layout/section.rb +35 -0
  458. data/app/components/polaris/layout_component.html.erb +5 -0
  459. data/app/components/polaris/layout_component.rb +48 -0
  460. data/app/components/polaris/link_component.rb +48 -0
  461. data/app/components/polaris/list_component.html.erb +5 -0
  462. data/app/components/polaris/list_component.rb +46 -0
  463. data/app/components/polaris/new_component.rb +10 -0
  464. data/app/components/polaris/page_actions_component.html.erb +21 -0
  465. data/app/components/polaris/page_actions_component.rb +24 -0
  466. data/app/components/polaris/page_component.html.erb +63 -0
  467. data/app/components/polaris/page_component.rb +56 -0
  468. data/app/components/polaris/pagination_component.html.erb +19 -0
  469. data/app/components/polaris/pagination_component.rb +26 -0
  470. data/app/components/polaris/progress_bar_component.html.erb +14 -0
  471. data/app/components/polaris/progress_bar_component.rb +41 -0
  472. data/app/components/polaris/radio_button_component.html.erb +11 -0
  473. data/app/components/polaris/radio_button_component.rb +55 -0
  474. data/app/components/polaris/select_component.html.erb +36 -0
  475. data/app/components/polaris/select_component.rb +75 -0
  476. data/app/components/polaris/shopify_navigation_component.html.erb +9 -0
  477. data/app/components/polaris/shopify_navigation_component.rb +43 -0
  478. data/app/components/polaris/spinner_component.html.erb +11 -0
  479. data/app/components/polaris/spinner_component.rb +25 -0
  480. data/app/components/polaris/stack_component.html.erb +7 -0
  481. data/app/components/polaris/stack_component.rb +79 -0
  482. data/app/components/polaris/subheading_component.rb +24 -0
  483. data/app/components/polaris/text_container_component.rb +30 -0
  484. data/app/components/polaris/text_field_component.html.erb +103 -0
  485. data/app/components/polaris/text_field_component.rb +181 -0
  486. data/app/components/polaris/text_style_component.rb +32 -0
  487. data/app/components/polaris/thumbnail_component.html.erb +7 -0
  488. data/app/components/polaris/thumbnail_component.rb +37 -0
  489. data/app/components/polaris/visually_hidden_component.rb +12 -0
  490. data/app/helpers/polaris/action_helper.rb +14 -0
  491. data/app/helpers/polaris/class_name_helper.rb +24 -0
  492. data/app/helpers/polaris/conditional_helper.rb +11 -0
  493. data/app/helpers/polaris/fetch_or_fallback_helper.rb +53 -0
  494. data/app/helpers/polaris/form_builder.rb +16 -0
  495. data/app/helpers/polaris/option_helper.rb +13 -0
  496. data/app/helpers/polaris/view_helper.rb +66 -0
  497. data/app/javascript/polaris/index.js +9 -0
  498. data/app/javascript/polaris/select_controller.js +12 -0
  499. data/app/javascript/polaris/text_field_controller.js +112 -0
  500. data/app/validators/type_validator.rb +15 -0
  501. data/lib/polaris/view_components.rb +7 -0
  502. data/lib/polaris/view_components/engine.rb +29 -0
  503. data/lib/polaris/view_components/version.rb +5 -0
  504. data/lib/polaris_view_components.rb +1 -0
  505. metadata +588 -0
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M9 0c-.6 0-1.1.4-1.4 1L2 17.3a1 1 0 0 1-.9.7 1 1 0 1 0 0 2h4a1 1 0 1 0 0-2 1 1 0 0 1-.9-1.2L5 14h7l.9 2.8A1 1 0 0 1 12 18a1 1 0 1 0 0 2h7a1 1 0 1 0 0-2 1 1 0 0 1-1-.7L12.5 1c-.3-.6-.8-1-1.5-1H9zm-.5 4.3L5.8 12h5.4L8.5 4.3z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.488 5C5.637 3.066 7.478 2 10 2a8 8 0 0 1 8 8 8 8 0 0 1-8 8 1 1 0 1 0 0 2c5.523 0 10-4.477 10-10S15.523 0 10 0C6.703 0 4.356 1.496 2 3.647V1a1 1 0 0 0-2 0v5a.998.998 0 0 0 1 1h5a1 1 0 0 0 0-2H3.488z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3 3v11h3.5c.775 0 1.388.662 1.926 1.244l.11.12a2 2 0 0 0 2.927-.001l.111-.119C12.112 14.662 12.725 14 13.5 14H17V3H3zm3-2H2.5A1.5 1.5 0 0 0 1 2.5v15A1.5 1.5 0 0 0 2.5 19h15a1.5 1.5 0 0 0 1.5-1.5v-15A1.5 1.5 0 0 0 17.5 1H6z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h1V0H3.5A1.5 1.5 0 0 0 2 1.5V3h2V2zm4.685 10.502h2.136v-.141c.011-1.17.23-1.302 1.02-1.777l.238-.144c1.11-.664 1.805-1.57 1.805-2.952C13.884 5.448 12.296 4 9.99 4 7.877 4 6.06 5.193 6 7.487h2.267c.054-1.135.86-1.533 1.711-1.533.924 0 1.666.616 1.666 1.564 0 .845-.561 1.424-1.292 1.883-.102.064-.2.122-.293.178-.882.528-1.363.816-1.374 2.782v.14zm.979 4.34c.712 0 1.322-.591 1.328-1.328a1.342 1.342 0 0 0-1.328-1.316c-.737 0-1.334.592-1.328 1.316a1.32 1.32 0 0 0 1.328 1.328zM4 18v-1H2v1.5A1.5 1.5 0 0 0 3.5 20H5v-2H4zm11 0h1v-1h2v1.5a1.5 1.5 0 0 1-1.5 1.5H15v-2zM4 11v4H2v-4h2zm0-2V5H2v4h2zm14 2v4h-2v-4h2zm0-2V5h-2v4h2zm-2-6V2h-1V0h1.5A1.5 1.5 0 0 1 18 1.5V3h-2z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m18 5.65-8-3.555L2 5.65V19H0V5c0-.396.232-.753.594-.913l9-4a.999.999 0 0 1 .812 0l9 4A1 1 0 0 1 20 5v14h-2V5.65z"/><path d="M9 15a.997.997 0 0 1-.707-.293l-2-2a1 1 0 0 1 1.414-1.414L9 12.586l3.293-3.293a1 1 0 1 1 1.414 1.415l-4 4A.999.999 0 0 1 9 15z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M20 10c0 5.523-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0s10 4.477 10 10zM5.293 8.293l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L11 7.414V15a1 1 0 1 1-2 0V7.414L6.707 9.707a1 1 0 0 1-1.414-1.414z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 1A1.5 1.5 0 0 1 19 2.5v12a1.5 1.5 0 0 1-1.5 1.5H14v2.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 0 18.5v-11A1.5 1.5 0 0 1 1.5 6H4V2.5A1.5 1.5 0 0 1 5.5 1h12zM11 14h6V8l-6 6zm-9 4h10v-2.027l-6.495.022A1.5 1.5 0 0 1 4 14.495V8H2v10zM12 3H6v6l6-6z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M19.928 9.629C17.791 4.286 13.681 1.85 9.573 2.064c-4.06.21-7.892 3.002-9.516 7.603L-.061 10l.118.333c1.624 4.601 5.455 7.393 9.516 7.603 4.108.213 8.218-2.222 10.355-7.565l.149-.371-.149-.371zM10 15a5 5 0 1 0 0-10 5 5 0 0 0 0 10z"/><circle cx="10" cy="10" r="3"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17.928 9.628C17.837 9.399 15.611 4 10 4S2.162 9.399 2.07 9.628a1.017 1.017 0 0 0 0 .744C2.163 10.601 4.389 16 10 16s7.837-5.399 7.928-5.628a1.017 1.017 0 0 0 0-.744zM10 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6a2 2 0 1 0 .002 4.001A2 2 0 0 0 9.999 8z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.414 9H19a1 1 0 1 1 0 2h-4.586l1.293 1.293a1 1 0 0 1-1.414 1.414l-3-3a1 1 0 0 1 0-1.414l3-3a1 1 0 1 1 1.414 1.414L14.414 9zM5.707 6.293l3 3a.999.999 0 0 1 0 1.414l-3 3a.997.997 0 0 1-1.631-.324 1 1 0 0 1 .217-1.09L5.586 11H1a1 1 0 0 1 0-2h4.586L4.293 7.707a1 1 0 0 1 1.414-1.414zM8 2v4L6 4V1.5A1.5 1.5 0 0 1 7.5 0h5A1.5 1.5 0 0 1 14 1.5V4l-2 2V2H8zm6 14-2-2v4H8v-4l-2 2v2.5A1.5 1.5 0 0 0 7.5 20h5a1.5 1.5 0 0 0 1.5-1.5V16z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m16.707 6.293 3 3a.998.998 0 0 1 0 1.414l-3 3a.997.997 0 0 1-1.631-.324 1 1 0 0 1 .217-1.09L16.586 11H12a1 1 0 1 1 0-2h4.586l-1.293-1.293a1 1 0 1 1 1.414-1.414zm-13.414 0a1 1 0 1 1 1.414 1.414L3.414 9H8a1 1 0 0 1 0 2H3.414l1.293 1.293a1.003 1.003 0 0 1 0 1.414 1 1 0 0 1-1.414 0l-3-3a.998.998 0 0 1 0-1.414l3-3z"/><path d="M1 1.5A1.5 1.5 0 0 1 2.5 0h15A1.5 1.5 0 0 1 19 1.5V6l-2-2V2H3v2L1 6V1.5zM17 18v-2l2-2v4.5a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 18.5V14l2 2v2h14z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M20 1.5A1.5 1.5 0 0 0 18.5 0H12c-.768 0-1.469.29-2 .766A2.987 2.987 0 0 0 8 0H1.5A1.5 1.5 0 0 0 0 1.5v15A1.5 1.5 0 0 0 1.5 18H8a1 1 0 0 1 1 1 1 1 0 1 0 2 0 1 1 0 0 1 1-1h6.5a1.5 1.5 0 0 0 1.5-1.5v-15zM18 16h-6c-.352 0-.687.067-1 .179V3a1 1 0 0 1 1-1h6v14zM8 16H2V2h6a1 1 0 0 1 1 1v13.179A2.959 2.959 0 0 0 8 16z"/><path d="M4 4h3v2H4zm9 0h3v2h-3zM4 8h3v2H4zm9 0h3v2h-3zm-9 4h3v2H4z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.666.376c.495-.501 1.189-.501 1.684 0l2.278 2.307c.496.502.496 1.204 0 1.706L15.963 8 12 3.987l3.666-3.61zM10.993 5 15 9.007 4.382 19.624c-.5.501-1.202.501-1.703 0L.376 17.321c-.501-.501-.501-1.203 0-1.703L10.993 5zM16 13c0-.6.4-1 1-1s1 .4 1 1 .4 1 1 1 1 .4 1 1-.4 1-1 1-1 .4-1 1-.4 1-1 1-1-.4-1-1-.4-1-1-1-1-.4-1-1 .4-1 1-1 1-.4 1-1zM4 1c0-.6.4-1 1-1s1 .4 1 1 .4 1 1 1 1 .4 1 1-.4 1-1 1-1 .4-1 1-.4 1-1 1-1-.4-1-1-.4-1-1-1-1-.4-1-1 .4-1 1-1 1-.4 1-1z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6 4a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3v2.5A1.5 1.5 0 0 0 7.5 20h5a1.5 1.5 0 0 0 1.5-1.5V16a3 3 0 0 0 3-3v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1V7a3 3 0 0 0-3-3V1.5A1.5 1.5 0 0 0 12.5 0h-5A1.5 1.5 0 0 0 6 1.5V4zm2 0V2h4v2H8zm4 12v2H8v-2h4zM6 6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H6z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M17 3a1 1 0 1 0-2 0v5.392a2.5 2.5 0 0 0-.32-1.223l-2.184-3.892A2.5 2.5 0 0 0 10.316 2H7.5A2.5 2.5 0 0 0 5 4.5V6H2.5A1.5 1.5 0 0 0 1 7.5v2.585A1.5 1.5 0 0 0 0 11.5V17a3 3 0 1 0 6 0h3a3 3 0 1 0 6 0v-2h4a1 1 0 1 0 0-2h-2V3zM3 10h2V8H3v2zm10-1.608V10H7V4.5a.5.5 0 0 1 .5-.5h2.816a.5.5 0 0 1 .436.255l2.184 3.892a.5.5 0 0 1 .064.245zM4 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm8 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/></svg>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 18a1.501 1.501 0 0 1 0-3 1.501 1.501 0 0 1 0 3zM1.004 8a.997.997 0 0 1-.607-1.795C3.106 4.138 6.516 3 10 3c3.483 0 6.892 1.137 9.598 3.202a1 1 0 1 1-1.212 1.59C16.026 5.991 13.048 5 10 5c-3.05 0-6.029.992-8.391 2.795A.988.988 0 0 1 1.004 8zM4 11a.996.996 0 0 1-.958-1.293.998.998 0 0 1 .352-.502C5.255 7.783 7.602 7 10 7c2.397 0 4.742.782 6.601 2.203a1 1 0 0 1-1.213 1.59C13.875 9.637 11.961 9 10 9c-1.962 0-3.877.638-5.392 1.795a.989.989 0 0 1-.605.205h-.002zm8.994 3a.994.994 0 0 1-.594-.197 4.052 4.052 0 0 0-4.804 0 .999.999 0 1 1-1.192-1.606c2.108-1.565 5.079-1.566 7.187 0A1 1 0 0 1 12.996 14z"/></svg>
@@ -0,0 +1,113 @@
1
+ import { Controller } from "stimulus";
2
+
3
+ function _defineProperty(obj, key, value) {
4
+ if (key in obj) {
5
+ Object.defineProperty(obj, key, {
6
+ value: value,
7
+ enumerable: true,
8
+ configurable: true,
9
+ writable: true
10
+ });
11
+ } else {
12
+ obj[key] = value;
13
+ }
14
+ return obj;
15
+ }
16
+
17
+ class _class$1 extends Controller {
18
+ update(event) {
19
+ const select = event.currentTarget;
20
+ const option = select.options[select.selectedIndex];
21
+ this.selectedOptionTarget.innerText = option.text;
22
+ }
23
+ }
24
+
25
+ _defineProperty(_class$1, "targets", [ "selectedOption" ]);
26
+
27
+ class _class extends Controller {
28
+ connect() {
29
+ this.syncValue();
30
+ this.stepValue = this.inputTarget.getAttribute("step");
31
+ this.minValue = this.inputTarget.getAttribute("min");
32
+ this.maxValue = this.inputTarget.getAttribute("max");
33
+ }
34
+ syncValue() {
35
+ this.valueValue = this.inputTarget.value;
36
+ }
37
+ clear() {
38
+ this.value = null;
39
+ }
40
+ increase() {
41
+ this.changeNumber(1);
42
+ }
43
+ decrease() {
44
+ this.changeNumber(-1);
45
+ }
46
+ valueValueChanged() {
47
+ this.toggleHasValueClass();
48
+ if (this.hasClearButtonTarget) {
49
+ this.toggleClearButton();
50
+ }
51
+ if (this.hasCharacterCountTarget) {
52
+ this.updateCharacterCount();
53
+ }
54
+ }
55
+ get value() {
56
+ return this.valueValue;
57
+ }
58
+ set value(newValue) {
59
+ this.inputTarget.value = newValue;
60
+ this.syncValue();
61
+ }
62
+ toggleHasValueClass() {
63
+ if (this.value.length > 0) {
64
+ this.element.classList.add(this.hasValueClass);
65
+ } else {
66
+ this.element.classList.remove(this.hasValueClass);
67
+ }
68
+ }
69
+ toggleClearButton() {
70
+ if (this.value.length > 0) {
71
+ this.clearButtonTarget.classList.remove(this.clearButtonHiddenClass);
72
+ this.clearButtonTarget.setAttribute("tab-index", "-");
73
+ } else {
74
+ this.clearButtonTarget.classList.add(this.clearButtonHiddenClass);
75
+ this.clearButtonTarget.setAttribute("tab-index", "-1");
76
+ }
77
+ }
78
+ updateCharacterCount() {
79
+ this.characterCountTarget.textContent = this.textTemplateValue.replace(`{count}`, this.value.length);
80
+ this.characterCountTarget.setAttribute("aria-label", this.labelTemplateValue.replace(`{count}`, this.value.length));
81
+ }
82
+ changeNumber(steps) {
83
+ const dpl = num => (num.toString().split(".")[1] || []).length;
84
+ const numericValue = this.value ? parseFloat(this.value) : 0;
85
+ if (isNaN(numericValue)) {
86
+ return;
87
+ }
88
+ console.log(numericValue, this.stepValue);
89
+ const decimalPlaces = Math.max(dpl(numericValue), dpl(this.stepValue));
90
+ const newValue = Math.min(Number(this.maxValue), Math.max(numericValue + steps * this.stepValue, Number(this.minValue)));
91
+ this.value = String(newValue.toFixed(decimalPlaces));
92
+ }
93
+ }
94
+
95
+ _defineProperty(_class, "targets", [ "input", "clearButton", "characterCount" ]);
96
+
97
+ _defineProperty(_class, "classes", [ "hasValue", "clearButtonHidden" ]);
98
+
99
+ _defineProperty(_class, "values", {
100
+ value: String,
101
+ labelTemplate: String,
102
+ textTemplate: String,
103
+ step: Number,
104
+ min: Number,
105
+ max: Number
106
+ });
107
+
108
+ function registerPolarisControllers(application) {
109
+ application.register("polaris-select", _class$1);
110
+ application.register("polaris-text-field", _class);
111
+ }
112
+
113
+ export { _class$1 as Select, _class as TextField, registerPolarisControllers };
@@ -0,0 +1,136 @@
1
+ .shp-Navigation {
2
+ margin: 0 auto;
3
+ padding: 0 2rem;
4
+ max-width: 99.8rem;
5
+ max-width: none;
6
+ border-bottom: .1rem solid var(--p-border-subdued)
7
+ }
8
+
9
+ @media (max-width: 48.0625em) and (min-width: 30.625em),(min-width: 45.625em) {
10
+ .shp-Navigation {
11
+ padding: 0 2rem
12
+ }
13
+ }
14
+
15
+ @media (min-width: 30.625em) {
16
+ .shp-Navigation {
17
+ padding: 0 2rem
18
+ }
19
+ }
20
+
21
+ @media (max-width: 48.0625em) and (min-width: 46.5em),(min-width: 61.5em) {
22
+ .shp-Navigation {
23
+ padding: 0 3.2rem
24
+ }
25
+ }
26
+
27
+ @media (min-width: 46.5em) {
28
+ .shp-Navigation {
29
+ padding: 0 3.2rem
30
+ }
31
+ }
32
+
33
+ @media (max-width: 30.5625em) {
34
+ .shp-Navigation {
35
+ padding: 0 1.6rem
36
+ }
37
+ }
38
+
39
+ .shp-Navigation_Items {
40
+ display: flex;
41
+ margin: 0;
42
+ padding: 0 .2rem;
43
+ list-style: none
44
+ }
45
+
46
+ .shp-Navigation_Item {
47
+ display: flex;
48
+ margin: 0;
49
+ padding: 0
50
+ }
51
+
52
+ .shp-Navigation_Link {
53
+ color: inherit;
54
+ -webkit-appearance: none;
55
+ -moz-appearance: none;
56
+ appearance: none;
57
+ margin: 0;
58
+ padding: 0;
59
+ background: none;
60
+ border: none;
61
+ font-size: inherit;
62
+ line-height: inherit;
63
+ font-size: 1.5rem;
64
+ font-weight: 400;
65
+ line-height: 2rem;
66
+ text-transform: none;
67
+ letter-spacing: normal;
68
+ color: var(--p-text-subdued);
69
+ position: relative;
70
+ z-index: 400;
71
+ justify-content: center;
72
+ width: 100%;
73
+ min-width: 100%;
74
+ margin-top: 1px;
75
+ margin-bottom: -1px;
76
+ padding: 0 1.6rem;
77
+ outline: none;
78
+ text-align: center;
79
+ white-space: nowrap;
80
+ text-decoration: none;
81
+ cursor: pointer
82
+ }
83
+
84
+ .shp-Navigation_Link:visited {
85
+ color: inherit
86
+ }
87
+
88
+ .shp-Navigation_Link:focus {
89
+ outline: none
90
+ }
91
+
92
+ @media (min-width: 40em) {
93
+ .shp-Navigation_Link {
94
+ font-size: 1.4rem
95
+ }
96
+ }
97
+
98
+ .shp-Navigation_Link:hover {
99
+ text-decoration: none
100
+ }
101
+
102
+ .shp-Navigation_Link:hover .shp-Navigation_LinkText {
103
+ font-weight: 400;
104
+ color: var(--p-text);
105
+ text-decoration: none;
106
+ border-bottom: .3rem solid var(--p-action-primary)
107
+ }
108
+
109
+ .shp-Navigation_Link:focus {
110
+ box-shadow: inset 0 0 2px 0 rgba(92, 106, 196, .8), 0 0 2px 0 rgba(92, 106, 196, .8)
111
+ }
112
+
113
+ .shp-Navigation_Link:focus .shp-Navigation_LinkText {
114
+ font-weight: 400;
115
+ color: var(--p-text)
116
+ }
117
+
118
+ .shp-Navigation_LinkText {
119
+ padding: 1.6rem 0 1.3rem 0;
120
+ border-bottom: .3rem solid transparent
121
+ }
122
+
123
+ .shp-Navigation_LinkText {
124
+ display: block;
125
+ }
126
+
127
+ [aria-selected='true'],
128
+ .shp-Navigation_Link:focus .shp-Navigation_LinkText {
129
+ font-weight: 400;
130
+ color: var(--p-text)
131
+ }
132
+
133
+ [aria-selected='true'] .shp-Navigation_LinkText {
134
+ color: var(--p-action-primary);
135
+ border-bottom: .3rem solid var(--p-action-primary)
136
+ }
@@ -0,0 +1,32 @@
1
+ module Polaris
2
+ class Action
3
+ attr_reader :content
4
+
5
+ def initialize(
6
+ content:,
7
+ url:,
8
+ accessibility_label: '',
9
+ external: false,
10
+ id: '',
11
+ data: {}
12
+ )
13
+ @content = content
14
+ @accessibility_label = accessibility_label
15
+ @external = external
16
+ @id = id
17
+ @url = url
18
+ @data = data
19
+ end
20
+
21
+ def to_h
22
+ {
23
+ content: @content,
24
+ accessibility_label: @accessibility_label,
25
+ external: @external,
26
+ id: @id,
27
+ url: @url,
28
+ data: @data,
29
+ }
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,35 @@
1
+ class Polaris::ApplicationComponent < ViewComponent::Base
2
+ include ActiveModel::Validations
3
+
4
+ def initialize(data: {}, aria: {}, html_options: {}, **args)
5
+ @data = data
6
+ @aria = aria
7
+ @html_options = html_options
8
+ end
9
+
10
+ private
11
+
12
+ def classes
13
+ []
14
+ end
15
+
16
+ def additional_data
17
+ {}
18
+ end
19
+
20
+ def additional_aria
21
+ {}
22
+ end
23
+
24
+ def content_tag_options
25
+ {
26
+ class: classes.compact,
27
+ data: @data.merge(additional_data),
28
+ aria: @aria.merge(additional_aria)
29
+ }.merge(@html_options)
30
+ end
31
+
32
+ def before_render
33
+ validate!
34
+ end
35
+ end
@@ -0,0 +1,19 @@
1
+ <%= render Polaris::BaseComponent.new(tag: 'span', **@system_arguments) do %>
2
+ <% if @source %>
3
+ <%= image_tag @source, class: "Polaris-Avatar__Image", role: "presentation" %>
4
+ <% else %>
5
+ <span class="Polaris-Avatar__Initials">
6
+ <% if @initials %>
7
+ <svg class="Polaris-Avatar__Svg" viewBox="0 0 40 40">
8
+ <text x="50%" y="50%" dy="0.35em" fill="currentColor" font-size="20" text-anchor="middle">
9
+ <%= @initials %>
10
+ </text>
11
+ </svg>
12
+ <% else %>
13
+ <svg class="Polaris-Avatar__Svg" viewBox="0 0 40 40">
14
+ <path fill="currentColor" d="M8.28 27.5A14.95 14.95 0 0120 21.8c4.76 0 8.97 2.24 11.72 5.7a14.02 14.02 0 01-8.25 5.91 14.82 14.82 0 01-6.94 0 14.02 14.02 0 01-8.25-5.9zM13.99 12.78a6.02 6.02 0 1112.03 0 6.02 6.02 0 01-12.03 0z"></path>
15
+ </svg>
16
+ <% end %>
17
+ </span>
18
+ <% end %>
19
+ <% end %>
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Polaris
4
+ class AvatarComponent < Polaris::NewComponent
5
+ SIZE_DEFAULT = :medium
6
+ SIZE_MAPPINGS = {
7
+ small: "Polaris-Avatar--sizeSmall",
8
+ medium: "Polaris-Avatar--sizeMedium",
9
+ large: "Polaris-Avatar--sizeLarge",
10
+ }
11
+ SIZE_OPTIONS = SIZE_MAPPINGS.keys
12
+
13
+ def initialize(
14
+ customer: false,
15
+ initials: nil,
16
+ name: nil,
17
+ size: SIZE_DEFAULT,
18
+ source: nil,
19
+ **system_arguments
20
+ )
21
+ @initials = initials
22
+ @source = source
23
+
24
+ @system_arguments = system_arguments
25
+ if name
26
+ @system_arguments[:aria] ||= {}
27
+ @system_arguments[:aria][:label] ||= name
28
+ end
29
+ @system_arguments[:role] = "img"
30
+ @system_arguments[:classes] = class_names(
31
+ @system_arguments[:classes],
32
+ "Polaris-Avatar",
33
+ SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, size, SIZE_DEFAULT)],
34
+ "Polaris-Avatar--styleOne" => !customer,
35
+ "Polaris-Avatar--hasImage" => source.present?
36
+ )
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,9 @@
1
+ <%= render Polaris::BaseComponent.new(tag: 'span', **@system_arguments) do %>
2
+ <% if @progress != :default %>
3
+ <span class="Polaris-Badge__Pip">
4
+ <%= polaris_visually_hidden { @progress.to_s.humanize } %>
5
+ </span>
6
+ <% end %>
7
+
8
+ <%= content %>
9
+ <% end %>