polaris_view_components 0.13.6 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/app/assets/icons/polaris/AbandonedCartMajor.svg +1 -1
- data/app/assets/icons/polaris/AccessibilityMajor.svg +1 -1
- data/app/assets/icons/polaris/ActivitiesMajor.svg +1 -1
- data/app/assets/icons/polaris/AddCodeMajor.svg +1 -1
- data/app/assets/icons/polaris/AddImageMajor.svg +1 -1
- data/app/assets/icons/polaris/AddMajor.svg +1 -1
- data/app/assets/icons/polaris/AddNoteMajor.svg +1 -1
- data/app/assets/icons/polaris/AddProductMajor.svg +1 -1
- data/app/assets/icons/polaris/AdjustMinor.svg +1 -0
- data/app/assets/icons/polaris/AffiliateMajor.svg +1 -1
- data/app/assets/icons/polaris/AlertMinor.svg +1 -1
- data/app/assets/icons/polaris/AnalyticsBarHorizontalMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsBarStackedMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsCohortMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsDonutMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsFunnelMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsLineMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsMajor.svg +1 -1
- data/app/assets/icons/polaris/AnalyticsMinor.svg +1 -1
- data/app/assets/icons/polaris/AnalyticsTableMinor.svg +1 -0
- data/app/assets/icons/polaris/AnyClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/AppExtensionMinor.svg +1 -1
- data/app/assets/icons/polaris/AppsMajor.svg +1 -1
- data/app/assets/icons/polaris/AppsMinor.svg +1 -1
- data/app/assets/icons/polaris/ArchiveMajor.svg +1 -1
- data/app/assets/icons/polaris/ArchiveMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowDownMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowLeftMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowRightMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowUpMinor.svg +1 -1
- data/app/assets/icons/polaris/AttachmentMajor.svg +1 -1
- data/app/assets/icons/polaris/AutomationMajor.svg +1 -1
- data/app/assets/icons/polaris/BackspaceMajor.svg +1 -1
- data/app/assets/icons/polaris/BalanceMajor.svg +1 -1
- data/app/assets/icons/polaris/BankMajor.svg +1 -1
- data/app/assets/icons/polaris/BarcodeMajor.svg +1 -1
- data/app/assets/icons/polaris/BehaviorMajor.svg +1 -1
- data/app/assets/icons/polaris/BehaviorMinor.svg +1 -0
- data/app/assets/icons/polaris/BillingStatementDollarMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementEuroMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementPoundMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementRupeeMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementYenMajor.svg +1 -1
- data/app/assets/icons/polaris/BlockMinor.svg +1 -1
- data/app/assets/icons/polaris/BlockquoteMajor.svg +1 -1
- data/app/assets/icons/polaris/BlogMajor.svg +1 -1
- data/app/assets/icons/polaris/BugMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonCornerPillMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonCornerRoundedMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonCornerSquareMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonMinor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonButtonLayoutMajor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonHorizontalLayoutMajor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonMajor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonVerticalLayoutMajor.svg +1 -1
- data/app/assets/icons/polaris/CalendarMajor.svg +1 -1
- data/app/assets/icons/polaris/CalendarMinor.svg +1 -1
- data/app/assets/icons/polaris/CalendarTickMajor.svg +1 -1
- data/app/assets/icons/polaris/CalendarTimeMinor.svg +1 -0
- data/app/assets/icons/polaris/CameraMajor.svg +1 -1
- data/app/assets/icons/polaris/CancelMajor.svg +1 -0
- data/app/assets/icons/polaris/CancelMinor.svg +1 -0
- data/app/assets/icons/polaris/CancelSmallMinor.svg +1 -1
- data/app/assets/icons/polaris/CapitalMajor.svg +1 -1
- data/app/assets/icons/polaris/CapturePaymentMinor.svg +1 -1
- data/app/assets/icons/polaris/CardReaderChipMajor.svg +1 -1
- data/app/assets/icons/polaris/CardReaderMajor.svg +1 -1
- data/app/assets/icons/polaris/CardReaderTapMajor.svg +1 -1
- data/app/assets/icons/polaris/CaretDownMinor.svg +1 -1
- data/app/assets/icons/polaris/CaretUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CartDownMajor.svg +1 -1
- data/app/assets/icons/polaris/CartMajor.svg +1 -1
- data/app/assets/icons/polaris/CartUpMajor.svg +1 -1
- data/app/assets/icons/polaris/CashDollarMajor.svg +1 -1
- data/app/assets/icons/polaris/CashDollarMinor.svg +1 -0
- data/app/assets/icons/polaris/CashEuroMajor.svg +1 -1
- data/app/assets/icons/polaris/CashPoundMajor.svg +1 -1
- data/app/assets/icons/polaris/CashRupeeMajor.svg +1 -1
- data/app/assets/icons/polaris/CashYenMajor.svg +1 -1
- data/app/assets/icons/polaris/CategoriesMajor.svg +1 -1
- data/app/assets/icons/polaris/ChannelsMajor.svg +1 -1
- data/app/assets/icons/polaris/ChatMajor.svg +1 -1
- data/app/assets/icons/polaris/ChecklistAlternateMajor.svg +1 -1
- data/app/assets/icons/polaris/ChecklistMajor.svg +1 -1
- data/app/assets/icons/polaris/CheckoutMajor.svg +1 -1
- data/app/assets/icons/polaris/ChevronDownMinor.svg +1 -1
- data/app/assets/icons/polaris/ChevronLeftMinor.svg +1 -1
- data/app/assets/icons/polaris/ChevronRightMinor.svg +1 -1
- data/app/assets/icons/polaris/ChevronUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleAlertMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleCancelMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleCancelMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronDownMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronLeftMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronRightMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleDisableMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleDisabledMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleDotsMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleDownMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleInformationMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleLeftMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleMinusMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleMinusOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/CirclePlusMajor.svg +1 -1
- data/app/assets/icons/polaris/CirclePlusMinor.svg +1 -1
- data/app/assets/icons/polaris/CirclePlusOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleRightMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleUpMajor.svg +1 -1
- data/app/assets/icons/polaris/ClipboardMinor.svg +1 -1
- data/app/assets/icons/polaris/ClockMajor.svg +1 -1
- data/app/assets/icons/polaris/ClockMinor.svg +1 -1
- data/app/assets/icons/polaris/CodeMajor.svg +1 -1
- data/app/assets/icons/polaris/CodeMinor.svg +1 -0
- data/app/assets/icons/polaris/CollectionReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/CollectionsMajor.svg +1 -1
- data/app/assets/icons/polaris/ColorNoneMinor.svg +1 -1
- data/app/assets/icons/polaris/ColorsMajor.svg +1 -1
- data/app/assets/icons/polaris/Column1Major.svg +1 -1
- data/app/assets/icons/polaris/ColumnWithTextMajor.svg +1 -1
- data/app/assets/icons/polaris/Columns2Major.svg +1 -1
- data/app/assets/icons/polaris/Columns3Major.svg +1 -1
- data/app/assets/icons/polaris/Columns3Minor.svg +1 -1
- data/app/assets/icons/polaris/ComposeMajor.svg +1 -1
- data/app/assets/icons/polaris/ConfettiMajor.svg +1 -1
- data/app/assets/icons/polaris/ConnectMinor.svg +1 -1
- data/app/assets/icons/polaris/ContentMinor.svg +1 -0
- data/app/assets/icons/polaris/ConversationMinor.svg +1 -1
- data/app/assets/icons/polaris/CreditCardCancelMajor.svg +1 -0
- data/app/assets/icons/polaris/CreditCardMajor.svg +1 -1
- data/app/assets/icons/polaris/CreditCardPercentMajor.svg +1 -1
- data/app/assets/icons/polaris/CreditCardSecureMajor.svg +1 -1
- data/app/assets/icons/polaris/CurrencyConvertMinor.svg +1 -1
- data/app/assets/icons/polaris/CustomerMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/CustomerPlusMajor.svg +1 -1
- data/app/assets/icons/polaris/CustomersMajor.svg +1 -1
- data/app/assets/icons/polaris/CustomersMinor.svg +1 -1
- data/app/assets/icons/polaris/DataDrivenModelMinor.svg +1 -0
- data/app/assets/icons/polaris/DataVisualizationMajor.svg +1 -1
- data/app/assets/icons/polaris/DecimalMinor.svg +1 -0
- data/app/assets/icons/polaris/DeleteMajor.svg +1 -1
- data/app/assets/icons/polaris/DeleteMinor.svg +1 -1
- data/app/assets/icons/polaris/DesktopMajor.svg +1 -1
- data/app/assets/icons/polaris/DetailedPopUpMajor.svg +1 -1
- data/app/assets/icons/polaris/DiamondAlertMajor.svg +1 -1
- data/app/assets/icons/polaris/DiamondAlertMinor.svg +1 -0
- data/app/assets/icons/polaris/DigitalMediaReceiverMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountAutomaticMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountCodeMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountsMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountsMinor.svg +1 -1
- data/app/assets/icons/polaris/DisputeMinor.svg +1 -1
- data/app/assets/icons/polaris/DnsSettingsMajor.svg +1 -1
- data/app/assets/icons/polaris/DockFloatingMajor.svg +1 -0
- data/app/assets/icons/polaris/DockSideMajor.svg +1 -0
- data/app/assets/icons/polaris/DomainNewMajor.svg +1 -1
- data/app/assets/icons/polaris/DomainRedirectMinor.svg +1 -0
- data/app/assets/icons/polaris/DomainsMajor.svg +1 -1
- data/app/assets/icons/polaris/DraftOrdersMajor.svg +1 -1
- data/app/assets/icons/polaris/DragDropMajor.svg +1 -1
- data/app/assets/icons/polaris/DragHandleMinor.svg +1 -1
- data/app/assets/icons/polaris/DropdownMinor.svg +1 -1
- data/app/assets/icons/polaris/DuplicateMinor.svg +1 -1
- data/app/assets/icons/polaris/DynamicSourceMajor.svg +1 -0
- data/app/assets/icons/polaris/DynamicSourceMinor.svg +1 -0
- data/app/assets/icons/polaris/EditMajor.svg +1 -1
- data/app/assets/icons/polaris/EditMinor.svg +1 -1
- data/app/assets/icons/polaris/EmailMajor.svg +1 -1
- data/app/assets/icons/polaris/EmailNewsletterMajor.svg +1 -1
- data/app/assets/icons/polaris/EmbedMinor.svg +1 -1
- data/app/assets/icons/polaris/EnableSelectionMinor.svg +1 -1
- data/app/assets/icons/polaris/EnterMajor.svg +1 -0
- data/app/assets/icons/polaris/EnvelopeMajor.svg +1 -1
- data/app/assets/icons/polaris/ExchangeMajor.svg +1 -1
- data/app/assets/icons/polaris/ExistingInventoryMajor.svg +1 -1
- data/app/assets/icons/polaris/ExitMajor.svg +1 -1
- data/app/assets/icons/polaris/ExploreImagesMajor.svg +1 -0
- data/app/assets/icons/polaris/ExportMinor.svg +1 -1
- data/app/assets/icons/polaris/ExtendMajor.svg +1 -0
- data/app/assets/icons/polaris/ExtendMinor.svg +1 -0
- data/app/assets/icons/polaris/ExternalMinor.svg +1 -1
- data/app/assets/icons/polaris/ExternalSmallMinor.svg +1 -1
- data/app/assets/icons/polaris/EyeDropperMinor.svg +1 -0
- data/app/assets/icons/polaris/FaviconMajor.svg +1 -1
- data/app/assets/icons/polaris/FavoriteMajor.svg +1 -1
- data/app/assets/icons/polaris/FeaturedCollectionMajor.svg +1 -1
- data/app/assets/icons/polaris/FeaturedContentMajor.svg +1 -1
- data/app/assets/icons/polaris/FileMinor.svg +1 -0
- data/app/assets/icons/polaris/FilterMajor.svg +1 -1
- data/app/assets/icons/polaris/FilterMinor.svg +1 -0
- data/app/assets/icons/polaris/FinancesMajor.svg +1 -1
- data/app/assets/icons/polaris/FinancesMinor.svg +1 -1
- data/app/assets/icons/polaris/FirstClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/FirstOrderMajor.svg +1 -1
- data/app/assets/icons/polaris/FirstVisitMajor.svg +1 -1
- data/app/assets/icons/polaris/FlagMajor.svg +1 -1
- data/app/assets/icons/polaris/FlipCameraMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderDownMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderPlusMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderUpMajor.svg +1 -1
- data/app/assets/icons/polaris/FollowUpEmailMajor.svg +1 -1
- data/app/assets/icons/polaris/FoodMajor.svg +1 -1
- data/app/assets/icons/polaris/FooterMajor.svg +1 -1
- data/app/assets/icons/polaris/FormsMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectMinor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectPendingMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectPendingMinor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectUnprotectedMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectUnprotectedMinor.svg +1 -1
- data/app/assets/icons/polaris/FulfillmentFulfilledMajor.svg +1 -0
- data/app/assets/icons/polaris/FulfillmentOnHoldMajor.svg +1 -0
- data/app/assets/icons/polaris/GamesConsoleMajor.svg +1 -1
- data/app/assets/icons/polaris/GiftCardMajor.svg +1 -1
- data/app/assets/icons/polaris/GiftCardMinor.svg +1 -1
- data/app/assets/icons/polaris/GlobeMajor.svg +1 -1
- data/app/assets/icons/polaris/GlobeMinor.svg +1 -1
- data/app/assets/icons/polaris/GrammarMajor.svg +1 -1
- data/app/assets/icons/polaris/HashtagMajor.svg +1 -1
- data/app/assets/icons/polaris/HashtagMinor.svg +1 -0
- data/app/assets/icons/polaris/HeaderMajor.svg +1 -1
- data/app/assets/icons/polaris/HeartMajor.svg +1 -1
- data/app/assets/icons/polaris/HideKeyboardMajor.svg +1 -1
- data/app/assets/icons/polaris/HideMinor.svg +1 -1
- data/app/assets/icons/polaris/HintMajor.svg +1 -1
- data/app/assets/icons/polaris/HomeMajor.svg +1 -1
- data/app/assets/icons/polaris/HomeMinor.svg +1 -1
- data/app/assets/icons/polaris/HorizontalDotsMinor.svg +1 -1
- data/app/assets/icons/polaris/IconsMajor.svg +1 -1
- data/app/assets/icons/polaris/IdentityCardMajor.svg +1 -0
- data/app/assets/icons/polaris/IllustrationMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageAltMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageAltMinor.svg +1 -1
- data/app/assets/icons/polaris/ImageMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageWithTextMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageWithTextOverlayMajor.svg +1 -1
- data/app/assets/icons/polaris/ImagesMajor.svg +1 -1
- data/app/assets/icons/polaris/ImportMinor.svg +1 -1
- data/app/assets/icons/polaris/ImportStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/InactiveLocationMajor.svg +1 -0
- data/app/assets/icons/polaris/InactiveLocationMinor.svg +1 -0
- data/app/assets/icons/polaris/IncomingMajor.svg +1 -1
- data/app/assets/icons/polaris/InsertDynamicSourceMajor.svg +1 -0
- data/app/assets/icons/polaris/InsertDynamicSourceMinor.svg +1 -0
- data/app/assets/icons/polaris/InstallMinor.svg +1 -1
- data/app/assets/icons/polaris/InventoryMajor.svg +1 -1
- data/app/assets/icons/polaris/InviteMinor.svg +1 -1
- data/app/assets/icons/polaris/IqMajor.svg +1 -1
- data/app/assets/icons/polaris/JobsMajor.svg +1 -1
- data/app/assets/icons/polaris/KeyMajor.svg +1 -1
- data/app/assets/icons/polaris/KeyboardMajor.svg +1 -0
- data/app/assets/icons/polaris/KeyboardMinor.svg +1 -0
- data/app/assets/icons/polaris/LabelPrinterMajor.svg +1 -1
- data/app/assets/icons/polaris/LandingPageMajor.svg +1 -1
- data/app/assets/icons/polaris/LanguageMinor.svg +1 -1
- data/app/assets/icons/polaris/LastClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/LastNonDirectClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/LegalMajor.svg +1 -1
- data/app/assets/icons/polaris/LinearModelMinor.svg +1 -0
- data/app/assets/icons/polaris/LinkMinor.svg +1 -1
- data/app/assets/icons/polaris/ListMajor.svg +1 -1
- data/app/assets/icons/polaris/ListMinor.svg +1 -0
- data/app/assets/icons/polaris/LiveViewMajor.svg +1 -1
- data/app/assets/icons/polaris/LocationMajor.svg +1 -1
- data/app/assets/icons/polaris/LocationsMinor.svg +1 -1
- data/app/assets/icons/polaris/LockMajor.svg +1 -1
- data/app/assets/icons/polaris/LockMinor.svg +1 -1
- data/app/assets/icons/polaris/LogOutMinor.svg +1 -1
- data/app/assets/icons/polaris/LogoBlockMajor.svg +1 -1
- data/app/assets/icons/polaris/MagicMajor.svg +1 -0
- data/app/assets/icons/polaris/MagicMinor.svg +1 -0
- data/app/assets/icons/polaris/ManagedStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/MarkFulfilledMinor.svg +1 -1
- data/app/assets/icons/polaris/MarkPaidMinor.svg +1 -1
- data/app/assets/icons/polaris/MarketingMajor.svg +1 -1
- data/app/assets/icons/polaris/MarketingMinor.svg +1 -1
- data/app/assets/icons/polaris/MarketsMajor.svg +1 -0
- data/app/assets/icons/polaris/MaximizeMajor.svg +1 -1
- data/app/assets/icons/polaris/MaximizeMinor.svg +1 -1
- data/app/assets/icons/polaris/MeasurementMinor.svg +1 -0
- data/app/assets/icons/polaris/MentionMajor.svg +1 -1
- data/app/assets/icons/polaris/MergeMinor.svg +1 -0
- data/app/assets/icons/polaris/MetafieldsMajor.svg +1 -0
- data/app/assets/icons/polaris/MetafieldsMinor.svg +1 -0
- data/app/assets/icons/polaris/MetaobjectMinor.svg +1 -0
- data/app/assets/icons/polaris/MetaobjectReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/MicrophoneMajor.svg +1 -1
- data/app/assets/icons/polaris/MinimizeMajor.svg +1 -1
- data/app/assets/icons/polaris/MinimizeMinor.svg +1 -1
- data/app/assets/icons/polaris/MinusMajor.svg +1 -0
- data/app/assets/icons/polaris/MinusMinor.svg +1 -1
- data/app/assets/icons/polaris/MobileAcceptMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileBackArrowMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileCancelMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileChevronMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileHamburgerMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileHorizontalDotsMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileMajor.svg +1 -1
- data/app/assets/icons/polaris/MobilePlusMajor.svg +1 -1
- data/app/assets/icons/polaris/MonerisMajor.svg +1 -1
- data/app/assets/icons/polaris/MoneyMinor.svg +1 -0
- data/app/assets/icons/polaris/NavigationMajor.svg +1 -1
- data/app/assets/icons/polaris/NoteMajor.svg +1 -1
- data/app/assets/icons/polaris/NoteMinor.svg +1 -1
- data/app/assets/icons/polaris/NotificationMajor.svg +1 -1
- data/app/assets/icons/polaris/OnlineStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/OnlineStoreMinor.svg +1 -1
- data/app/assets/icons/polaris/OrderStatusMinor.svg +1 -1
- data/app/assets/icons/polaris/OrdersMajor.svg +1 -1
- data/app/assets/icons/polaris/OrdersMinor.svg +1 -1
- data/app/assets/icons/polaris/OrganizationMajor.svg +1 -0
- data/app/assets/icons/polaris/OutgoingMajor.svg +1 -1
- data/app/assets/icons/polaris/PackageMajor.svg +1 -1
- data/app/assets/icons/polaris/PageDownMajor.svg +1 -1
- data/app/assets/icons/polaris/PageMajor.svg +1 -1
- data/app/assets/icons/polaris/PageMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/PagePlusMajor.svg +1 -1
- data/app/assets/icons/polaris/PageReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/PageUpMajor.svg +1 -1
- data/app/assets/icons/polaris/PaginationEndMinor.svg +1 -1
- data/app/assets/icons/polaris/PaginationStartMinor.svg +1 -1
- data/app/assets/icons/polaris/PaintBrushMajor.svg +1 -1
- data/app/assets/icons/polaris/PaperCheckMajor.svg +1 -0
- data/app/assets/icons/polaris/PaperCheckMinor.svg +1 -0
- data/app/assets/icons/polaris/PasskeyMajor.svg +1 -0
- data/app/assets/icons/polaris/PasskeyMinor.svg +1 -0
- data/app/assets/icons/polaris/PauseCircleMajor.svg +1 -1
- data/app/assets/icons/polaris/PauseMajor.svg +1 -1
- data/app/assets/icons/polaris/PauseMinor.svg +1 -1
- data/app/assets/icons/polaris/PaymentsMajor.svg +1 -1
- data/app/assets/icons/polaris/PersonalizedTextMajor.svg +1 -0
- data/app/assets/icons/polaris/PhoneInMajor.svg +1 -1
- data/app/assets/icons/polaris/PhoneMajor.svg +1 -1
- data/app/assets/icons/polaris/PhoneOutMajor.svg +1 -1
- data/app/assets/icons/polaris/PinMajor.svg +1 -1
- data/app/assets/icons/polaris/PinMinor.svg +1 -1
- data/app/assets/icons/polaris/PinUnfilledMajor.svg +1 -0
- data/app/assets/icons/polaris/PinUnfilledMinor.svg +1 -0
- data/app/assets/icons/polaris/PlanMajor.svg +1 -0
- data/app/assets/icons/polaris/PlanMinor.svg +1 -0
- data/app/assets/icons/polaris/PlayCircleMajor.svg +1 -1
- data/app/assets/icons/polaris/PlayMajor.svg +1 -1
- data/app/assets/icons/polaris/PlayMinor.svg +1 -1
- data/app/assets/icons/polaris/PlusMinor.svg +1 -1
- data/app/assets/icons/polaris/PointOfSaleMajor.svg +1 -1
- data/app/assets/icons/polaris/PopularMajor.svg +1 -1
- data/app/assets/icons/polaris/PositionBasedModelMinor.svg +1 -0
- data/app/assets/icons/polaris/PriceLookupMinor.svg +1 -1
- data/app/assets/icons/polaris/PrintMajor.svg +1 -1
- data/app/assets/icons/polaris/PrintMinor.svg +1 -1
- data/app/assets/icons/polaris/ProductCostMajor.svg +1 -0
- data/app/assets/icons/polaris/ProductReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/ProductReturnsMinor.svg +1 -1
- data/app/assets/icons/polaris/ProductsMajor.svg +1 -1
- data/app/assets/icons/polaris/ProductsMinor.svg +1 -1
- data/app/assets/icons/polaris/ProfileMajor.svg +1 -1
- data/app/assets/icons/polaris/PromoteMinor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkInverseMajor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkInverseMinor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkMajor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkMinor.svg +1 -1
- data/app/assets/icons/polaris/QuickSaleMajor.svg +1 -1
- data/app/assets/icons/polaris/ReadTimeMinor.svg +1 -1
- data/app/assets/icons/polaris/ReceiptMajor.svg +1 -1
- data/app/assets/icons/polaris/RecentSearchesMajor.svg +1 -1
- data/app/assets/icons/polaris/RedoMajor.svg +1 -1
- data/app/assets/icons/polaris/ReferralCodeMajor.svg +1 -1
- data/app/assets/icons/polaris/ReferralMajor.svg +1 -1
- data/app/assets/icons/polaris/RefreshMajor.svg +1 -1
- data/app/assets/icons/polaris/RefreshMinor.svg +1 -1
- data/app/assets/icons/polaris/RefundMajor.svg +1 -1
- data/app/assets/icons/polaris/RefundMinor.svg +1 -1
- data/app/assets/icons/polaris/RemoveProductMajor.svg +1 -1
- data/app/assets/icons/polaris/RepeatOrderMajor.svg +1 -1
- data/app/assets/icons/polaris/ReplaceMajor.svg +1 -1
- data/app/assets/icons/polaris/ReplayMinor.svg +1 -1
- data/app/assets/icons/polaris/ReportMinor.svg +1 -1
- data/app/assets/icons/polaris/ReportsMajor.svg +1 -1
- data/app/assets/icons/polaris/ResetMinor.svg +1 -1
- data/app/assets/icons/polaris/ResourcesMajor.svg +1 -1
- data/app/assets/icons/polaris/ReturnMinor.svg +1 -1
- data/app/assets/icons/polaris/ReturnsMajor.svg +1 -0
- data/app/assets/icons/polaris/RichTextMinor.svg +1 -0
- data/app/assets/icons/polaris/RiskMajor.svg +1 -1
- data/app/assets/icons/polaris/RiskMinor.svg +1 -1
- data/app/assets/icons/polaris/Rows2Major.svg +1 -0
- data/app/assets/icons/polaris/SandboxMajor.svg +1 -1
- data/app/assets/icons/polaris/SaveMinor.svg +1 -1
- data/app/assets/icons/polaris/SearchMajor.svg +1 -1
- data/app/assets/icons/polaris/SearchMinor.svg +1 -1
- data/app/assets/icons/polaris/SectionMajor.svg +1 -1
- data/app/assets/icons/polaris/SecureMajor.svg +1 -1
- data/app/assets/icons/polaris/SelectMinor.svg +1 -1
- data/app/assets/icons/polaris/SendMajor.svg +1 -1
- data/app/assets/icons/polaris/SettingsMajor.svg +1 -1
- data/app/assets/icons/polaris/SettingsMinor.svg +1 -1
- data/app/assets/icons/polaris/ShareIosMinor.svg +1 -1
- data/app/assets/icons/polaris/ShareMinor.svg +1 -1
- data/app/assets/icons/polaris/ShipmentMajor.svg +1 -1
- data/app/assets/icons/polaris/ShopcodesMajor.svg +1 -1
- data/app/assets/icons/polaris/SidebarLeftMajor.svg +1 -1
- data/app/assets/icons/polaris/SidebarRightMajor.svg +1 -1
- data/app/assets/icons/polaris/SimplifyMajor.svg +1 -0
- data/app/assets/icons/polaris/SimplifyMinor.svg +1 -0
- data/app/assets/icons/polaris/SlideshowMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileyHappyMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileyJoyMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileyNeutralMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileySadMajor.svg +1 -1
- data/app/assets/icons/polaris/SocialAdMajor.svg +1 -1
- data/app/assets/icons/polaris/SocialPostMajor.svg +1 -1
- data/app/assets/icons/polaris/SoftPackMajor.svg +1 -1
- data/app/assets/icons/polaris/SortAscendingMajor.svg +1 -1
- data/app/assets/icons/polaris/SortDescendingMajor.svg +1 -1
- data/app/assets/icons/polaris/SortMinor.svg +1 -1
- data/app/assets/icons/polaris/SoundMajor.svg +1 -1
- data/app/assets/icons/polaris/StarFilledMinor.svg +1 -1
- data/app/assets/icons/polaris/StarOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/StatusActiveMajor.svg +1 -0
- data/app/assets/icons/polaris/StoreMajor.svg +1 -1
- data/app/assets/icons/polaris/StoreMinor.svg +1 -1
- data/app/assets/icons/polaris/StoreStatusMajor.svg +1 -1
- data/app/assets/icons/polaris/TabletMajor.svg +1 -1
- data/app/assets/icons/polaris/TapChipMajor.svg +1 -1
- data/app/assets/icons/polaris/TaxMajor.svg +1 -1
- data/app/assets/icons/polaris/TeamMajor.svg +1 -1
- data/app/assets/icons/polaris/TemplateMajor.svg +1 -1
- data/app/assets/icons/polaris/TemplateMinor.svg +1 -0
- data/app/assets/icons/polaris/TextAlignmentCenterMajor.svg +1 -1
- data/app/assets/icons/polaris/TextAlignmentLeftMajor.svg +1 -1
- data/app/assets/icons/polaris/TextAlignmentRightMajor.svg +1 -1
- data/app/assets/icons/polaris/TextBlockMajor.svg +1 -1
- data/app/assets/icons/polaris/TextMajor.svg +1 -1
- data/app/assets/icons/polaris/ThemeEditMajor.svg +1 -1
- data/app/assets/icons/polaris/ThemeStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/ThemesMajor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsDownMajor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsDownMinor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsUpMajor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsUpMinor.svg +1 -1
- data/app/assets/icons/polaris/TickSmallMinor.svg +1 -1
- data/app/assets/icons/polaris/TimeDecayModelMinor.svg +1 -0
- data/app/assets/icons/polaris/TimelineAttachmentMajor.svg +1 -1
- data/app/assets/icons/polaris/TipsMajor.svg +1 -1
- data/app/assets/icons/polaris/TitleMinor.svg +1 -1
- data/app/assets/icons/polaris/ToggleMinor.svg +1 -0
- data/app/assets/icons/polaris/ToolsMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeDollarMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeEuroMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeePoundMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeRupeeMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeYenMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferInMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferOutMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferWithinShopifyMajor.svg +1 -1
- data/app/assets/icons/polaris/TransportMajor.svg +1 -1
- data/app/assets/icons/polaris/TroubleshootMajor.svg +1 -1
- data/app/assets/icons/polaris/TypeMajor.svg +1 -1
- data/app/assets/icons/polaris/TypeMinor.svg +1 -0
- data/app/assets/icons/polaris/UndoMajor.svg +1 -1
- data/app/assets/icons/polaris/UnfulfilledMajor.svg +1 -1
- data/app/assets/icons/polaris/UnknownDeviceMajor.svg +1 -1
- data/app/assets/icons/polaris/UpdateInventoryMajor.svg +1 -1
- data/app/assets/icons/polaris/UploadMajor.svg +1 -1
- data/app/assets/icons/polaris/VariantMajor.svg +1 -1
- data/app/assets/icons/polaris/ViewMajor.svg +1 -1
- data/app/assets/icons/polaris/ViewMinor.svg +1 -1
- data/app/assets/icons/polaris/ViewportNarrowMajor.svg +1 -1
- data/app/assets/icons/polaris/ViewportShortMajor.svg +1 -0
- data/app/assets/icons/polaris/ViewportTallMajor.svg +1 -0
- data/app/assets/icons/polaris/ViewportWideMajor.svg +1 -1
- data/app/assets/icons/polaris/VocabularyMajor.svg +1 -1
- data/app/assets/icons/polaris/VolumeMinor.svg +1 -0
- data/app/assets/icons/polaris/WandMajor.svg +1 -1
- data/app/assets/icons/polaris/WandMinor.svg +1 -1
- data/app/assets/icons/polaris/WearableMajor.svg +1 -1
- data/app/assets/icons/polaris/WeightMinor.svg +1 -0
- data/app/assets/icons/polaris/WholesaleMajor.svg +1 -1
- data/app/assets/icons/polaris/WifiMajor.svg +1 -1
- data/app/assets/javascripts/polaris_view_components/data_table_controller.js +33 -0
- data/app/assets/javascripts/polaris_view_components/index.js +2 -0
- data/app/assets/javascripts/polaris_view_components/toast_controller.js +1 -1
- data/app/assets/javascripts/polaris_view_components.js +33 -5
- data/app/assets/stylesheets/polaris_view_components/{custom.css → custom.pcss} +67 -11
- data/app/assets/stylesheets/polaris_view_components/{shopify_navigation.css → shopify_navigation.pcss} +22 -26
- data/app/assets/stylesheets/polaris_view_components.css +2133 -1708
- data/app/assets/stylesheets/polaris_view_components.pcss +4 -0
- data/app/components/polaris/action_list/item_component.html.erb +9 -11
- data/app/components/polaris/action_list/section_component.html.erb +30 -6
- data/app/components/polaris/action_list/section_component.rb +7 -12
- data/app/components/polaris/action_list_component.html.erb +12 -8
- data/app/components/polaris/action_list_component.rb +5 -1
- data/app/components/polaris/autocomplete_component.html.erb +1 -1
- data/app/components/polaris/avatar_component.html.erb +1 -1
- data/app/components/polaris/avatar_component.rb +44 -12
- data/app/components/polaris/badge_component.html.erb +12 -4
- data/app/components/polaris/badge_component.rb +26 -0
- data/app/components/polaris/banner_component.html.erb +29 -24
- data/app/components/polaris/banner_component.rb +4 -2
- data/app/components/polaris/bleed_component.rb +73 -0
- data/app/components/polaris/box_component.rb +187 -0
- data/app/components/polaris/button_group_component.rb +3 -1
- data/app/components/polaris/callout_card_component.html.erb +3 -3
- data/app/components/polaris/callout_card_component.rb +2 -2
- data/app/components/polaris/caption_component.rb +1 -6
- data/app/components/polaris/card/header_component.html.erb +4 -4
- data/app/components/polaris/card/header_component.rb +1 -1
- data/app/components/polaris/card/section_component.html.erb +6 -6
- data/app/components/polaris/card/section_component.rb +7 -7
- data/app/components/polaris/card_component.html.erb +4 -4
- data/app/components/polaris/card_component.rb +4 -4
- data/app/components/polaris/choice_component.html.erb +3 -1
- data/app/components/polaris/choice_list_component.html.erb +17 -8
- data/app/components/polaris/choice_list_component.rb +2 -6
- data/app/components/polaris/component.rb +1 -0
- data/app/components/polaris/data_table/cell_component.rb +2 -0
- data/app/components/polaris/data_table_component.html.erb +66 -64
- data/app/components/polaris/data_table_component.rb +15 -0
- data/app/components/polaris/description_list_component.rb +3 -1
- data/app/components/polaris/display_text_component.rb +7 -11
- data/app/components/polaris/divider_component.rb +35 -0
- data/app/components/polaris/dropzone_component.html.erb +9 -9
- data/app/components/polaris/empty_state_component.html.erb +41 -36
- data/app/components/polaris/empty_state_component.rb +5 -13
- data/app/components/polaris/filters_component.rb +2 -2
- data/app/components/polaris/footer_help_component.html.erb +3 -9
- data/app/components/polaris/footer_help_component.rb +1 -0
- data/app/components/polaris/frame/save_bar_component.html.erb +9 -4
- data/app/components/polaris/heading_component.rb +2 -6
- data/app/components/polaris/horizontal_grid_component.rb +82 -0
- data/app/components/polaris/horizontal_stack_component.rb +64 -0
- data/app/components/polaris/inline_code_component.rb +16 -0
- data/app/components/polaris/inline_component.rb +44 -0
- data/app/components/polaris/inline_error_component.html.erb +1 -1
- data/app/components/polaris/labelled_component.html.erb +3 -1
- data/app/components/polaris/labelled_component.rb +1 -1
- data/app/components/polaris/layout/annotated_section.html.erb +3 -2
- data/app/components/polaris/layout/annotated_section.rb +1 -0
- data/app/components/polaris/layout_component.html.erb +1 -1
- data/app/components/polaris/layout_component.rb +2 -0
- data/app/components/polaris/link_component.rb +1 -14
- data/app/components/polaris/list_component.rb +10 -1
- data/app/components/polaris/modal/section_component.rb +5 -1
- data/app/components/polaris/modal_component.html.erb +50 -30
- data/app/components/polaris/modal_component.rb +0 -4
- data/app/components/polaris/navigation/item_component.html.erb +21 -13
- data/app/components/polaris/navigation/item_component.rb +8 -6
- data/app/components/polaris/navigation/section_component.html.erb +2 -2
- data/app/components/polaris/option_list/section_component.html.erb +26 -10
- data/app/components/polaris/option_list/section_component.rb +2 -4
- data/app/components/polaris/option_list_component.html.erb +5 -2
- data/app/components/polaris/option_list_component.rb +9 -9
- data/app/components/polaris/page_actions_component.html.erb +4 -4
- data/app/components/polaris/page_actions_component.rb +1 -21
- data/app/components/polaris/page_component.html.erb +91 -88
- data/app/components/polaris/page_component.rb +24 -10
- data/app/components/polaris/pagination_component.html.erb +5 -5
- data/app/components/polaris/placeholder_component.rb +37 -0
- data/app/components/polaris/popover/pane_component.html.erb +1 -1
- data/app/components/polaris/popover/pane_component.rb +22 -5
- data/app/components/polaris/popover/section_component.rb +5 -1
- data/app/components/polaris/popover_component.html.erb +20 -13
- data/app/components/polaris/popover_component.rb +5 -1
- data/app/components/polaris/progress_bar_component.html.erb +2 -5
- data/app/components/polaris/progress_bar_component.rb +13 -0
- data/app/components/polaris/resource_item/shortcut_actions_component.html.erb +3 -3
- data/app/components/polaris/resource_item_component.html.erb +42 -19
- data/app/components/polaris/resource_item_component.rb +8 -25
- data/app/components/polaris/select_component.html.erb +5 -3
- data/app/components/polaris/skeleton_body_text_component.html.erb +2 -4
- data/app/components/polaris/skeleton_body_text_component.rb +1 -7
- data/app/components/polaris/skeleton_page_component.html.erb +58 -20
- data/app/components/polaris/skeleton_page_component.rb +21 -6
- data/app/components/polaris/spinner_component.html.erb +12 -6
- data/app/components/polaris/spinner_component.rb +26 -0
- data/app/components/polaris/stack/item_component.rb +2 -2
- data/app/components/polaris/stack_component.rb +20 -20
- data/app/components/polaris/subheading_component.rb +2 -6
- data/app/components/polaris/tabs/tab_component.html.erb +2 -2
- data/app/components/polaris/tabs/tab_component.rb +2 -2
- data/app/components/polaris/tabs_component.html.erb +7 -1
- data/app/components/polaris/tabs_component.rb +3 -3
- data/app/components/polaris/text_component.html.erb +3 -0
- data/app/components/polaris/text_component.rb +132 -0
- data/app/components/polaris/text_field_component.rb +4 -0
- data/app/components/polaris/text_style_component.rb +25 -21
- data/app/components/polaris/thumbnail_component.html.erb +1 -1
- data/app/components/polaris/thumbnail_component.rb +24 -9
- data/app/components/polaris/toast_component.html.erb +1 -1
- data/app/components/polaris/tokens/border.rb +9 -0
- data/app/components/polaris/tokens/color.rb +132 -0
- data/app/components/polaris/tokens/shadow.rb +18 -0
- data/app/components/polaris/tokens/spacing.rb +27 -0
- data/app/components/polaris/tokens.rb +4 -0
- data/app/components/polaris/top_bar/user_menu_component.html.erb +20 -5
- data/app/components/polaris/vertical_stack_component.rb +70 -0
- data/app/components/polaris/visually_hidden_component.rb +1 -1
- data/app/helpers/polaris/fetch_or_fallback_helper.rb +13 -1
- data/app/helpers/polaris/form_builder.rb +1 -1
- data/app/helpers/polaris/styles_list_helper.rb +22 -0
- data/app/helpers/polaris/view_helper.rb +15 -4
- data/lib/install/install.rb +6 -1
- data/lib/polaris/view_components/codemods/v3_slot_setters.rb +222 -0
- data/lib/polaris/view_components/engine.rb +0 -3
- data/lib/polaris/view_components/version.rb +1 -1
- data/lib/tasks/polaris_view_components_tasks.rake +14 -0
- metadata +117 -11
- data/app/assets/stylesheets/polaris_view_components.postcss.css +0 -4
- /data/app/assets/stylesheets/polaris_view_components/{spacer_component.css → spacer_component.pcss} +0 -0
@@ -2,40 +2,44 @@
|
|
2
2
|
|
3
3
|
module Polaris
|
4
4
|
class TextStyleComponent < Polaris::Component
|
5
|
-
|
6
|
-
VARIATION_MAPPINGS = {
|
7
|
-
VARIATION_DEFAULT => "",
|
8
|
-
:positive => "Polaris-TextStyle--variationPositive",
|
9
|
-
:negative => "Polaris-TextStyle--variationNegative",
|
10
|
-
:strong => "Polaris-TextStyle--variationStrong",
|
11
|
-
:subdued => "Polaris-TextStyle--variationSubdued",
|
12
|
-
:code => "Polaris-TextStyle--variationCode"
|
13
|
-
}
|
14
|
-
VARIATION_OPTIONS = VARIATION_MAPPINGS.keys
|
5
|
+
VARIATION_OPTIONS = %i[positive negative strong subdued code]
|
15
6
|
|
16
7
|
SIZE_DEFAULT = :default
|
17
8
|
SIZE_MAPPINGS = {
|
18
|
-
SIZE_DEFAULT =>
|
19
|
-
:small =>
|
9
|
+
SIZE_DEFAULT => :bodyMd,
|
10
|
+
:small => :bodySm
|
20
11
|
}
|
21
12
|
SIZE_OPTIONS = SIZE_MAPPINGS.keys
|
22
13
|
|
23
14
|
def initialize(
|
24
|
-
variation:
|
15
|
+
variation: nil,
|
25
16
|
size: SIZE_DEFAULT,
|
26
17
|
**system_arguments
|
27
18
|
)
|
28
|
-
@
|
29
|
-
@system_arguments
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
19
|
+
@variation = variation
|
20
|
+
@system_arguments = system_arguments.tap do |opts|
|
21
|
+
opts[:as] = :span
|
22
|
+
opts[:color] = case variation
|
23
|
+
when :subdued then :subdued
|
24
|
+
when :positive then :success
|
25
|
+
when :negative then :critical
|
26
|
+
when :warning then :warning
|
27
|
+
end
|
28
|
+
opts[:font_weight] = case variation
|
29
|
+
when :strong then :semibold
|
30
|
+
end
|
31
|
+
opts[:variant] = SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, size, SIZE_DEFAULT)]
|
32
|
+
end
|
35
33
|
end
|
36
34
|
|
37
35
|
def call
|
38
|
-
render(Polaris::
|
36
|
+
render(Polaris::TextComponent.new(**@system_arguments)) do
|
37
|
+
if @variation == :code
|
38
|
+
render(Polaris::InlineCodeComponent.new) { content }
|
39
|
+
else
|
40
|
+
content
|
41
|
+
end
|
42
|
+
end
|
39
43
|
end
|
40
44
|
end
|
41
45
|
end
|
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
module Polaris
|
4
4
|
class ThumbnailComponent < Polaris::Component
|
5
|
+
include ActiveModel::Validations
|
6
|
+
|
7
|
+
attr_reader :size, :transparent
|
8
|
+
|
5
9
|
SIZE_DEFAULT = :medium
|
6
10
|
SIZE_MAPPINGS = {
|
7
11
|
small: "Polaris-Thumbnail--sizeSmall",
|
@@ -9,29 +13,40 @@ module Polaris
|
|
9
13
|
large: "Polaris-Thumbnail--sizeLarge"
|
10
14
|
}
|
11
15
|
SIZE_OPTIONS = SIZE_MAPPINGS.keys
|
16
|
+
validates :size, inclusion: {in: SIZE_OPTIONS}
|
17
|
+
validates :transparent, inclusion: {in: [true, false]}
|
12
18
|
|
13
19
|
renders_one :icon, Polaris::IconComponent
|
14
20
|
|
15
21
|
def initialize(
|
16
|
-
source: nil,
|
17
|
-
size: SIZE_DEFAULT,
|
18
22
|
alt: nil,
|
23
|
+
size: SIZE_DEFAULT,
|
24
|
+
source: nil,
|
25
|
+
transparent: false,
|
19
26
|
**system_arguments
|
20
27
|
)
|
21
|
-
@source = source
|
22
28
|
@alt = alt
|
29
|
+
@size = size
|
30
|
+
@source = source
|
31
|
+
@transparent = transparent
|
23
32
|
|
24
33
|
@system_arguments = system_arguments
|
25
|
-
@system_arguments[:tag] = "span"
|
26
|
-
@system_arguments[:classes] = class_names(
|
27
|
-
@system_arguments[:classes],
|
28
|
-
"Polaris-Thumbnail",
|
29
|
-
SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, size, SIZE_DEFAULT)]
|
30
|
-
)
|
31
34
|
end
|
32
35
|
|
33
36
|
def renders?
|
34
37
|
source.present? || icon.present?
|
35
38
|
end
|
39
|
+
|
40
|
+
def system_arguments
|
41
|
+
@system_arguments.tap do |opts|
|
42
|
+
opts[:tag] = :span
|
43
|
+
opts[:classes] = class_names(
|
44
|
+
@system_arguments[:classes],
|
45
|
+
"Polaris-Thumbnail",
|
46
|
+
SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, @size, SIZE_DEFAULT)],
|
47
|
+
"Polaris-Thumbnail--transparent": @transparent
|
48
|
+
)
|
49
|
+
end
|
50
|
+
end
|
36
51
|
end
|
37
52
|
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
module Polaris
|
2
|
+
module Tokens
|
3
|
+
class Color
|
4
|
+
BACKGROUND_ALIAS = %w[
|
5
|
+
bg
|
6
|
+
bg-active
|
7
|
+
bg-app
|
8
|
+
bg-app-active
|
9
|
+
bg-app-hover
|
10
|
+
bg-app-selected
|
11
|
+
bg-caution
|
12
|
+
bg-caution-strong
|
13
|
+
bg-caution-subdued
|
14
|
+
bg-caution-subdued-active
|
15
|
+
bg-caution-subdued-hover
|
16
|
+
bg-critical
|
17
|
+
bg-critical-strong
|
18
|
+
bg-critical-strong-active
|
19
|
+
bg-critical-strong-hover
|
20
|
+
bg-critical-subdued
|
21
|
+
bg-critical-subdued-active
|
22
|
+
bg-critical-subdued-hover
|
23
|
+
bg-disabled
|
24
|
+
bg-hover
|
25
|
+
bg-info
|
26
|
+
bg-info-strong
|
27
|
+
bg-info-subdued
|
28
|
+
bg-info-subdued-active
|
29
|
+
bg-info-subdued-hover
|
30
|
+
bg-input
|
31
|
+
bg-inset
|
32
|
+
bg-inset-strong
|
33
|
+
bg-interactive
|
34
|
+
bg-interactive-active
|
35
|
+
bg-interactive-disabled
|
36
|
+
bg-interactive-hover
|
37
|
+
bg-interactive-selected
|
38
|
+
bg-interactive-subdued
|
39
|
+
bg-interactive-subdued-active
|
40
|
+
bg-interactive-subdued-hover
|
41
|
+
bg-inverse
|
42
|
+
bg-inverse-active
|
43
|
+
bg-inverse-hover
|
44
|
+
bg-magic
|
45
|
+
bg-magic-hover
|
46
|
+
bg-magic-active
|
47
|
+
bg-magic-strong
|
48
|
+
bg-magic-subdued
|
49
|
+
bg-magic-subdued-hover
|
50
|
+
bg-magic-subdued-active
|
51
|
+
bg-primary
|
52
|
+
bg-primary-active
|
53
|
+
bg-primary-hover
|
54
|
+
bg-primary-subdued
|
55
|
+
bg-primary-subdued-active
|
56
|
+
bg-primary-subdued-hover
|
57
|
+
bg-primary-subdued-selected
|
58
|
+
bg-strong
|
59
|
+
bg-strong-active
|
60
|
+
bg-strong-hover
|
61
|
+
bg-subdued
|
62
|
+
bg-subdued-active
|
63
|
+
bg-subdued-hover
|
64
|
+
bg-success
|
65
|
+
bg-success-strong
|
66
|
+
bg-success-subdued
|
67
|
+
bg-success-subdued-active
|
68
|
+
bg-success-subdued-hover
|
69
|
+
bg-warning
|
70
|
+
]
|
71
|
+
|
72
|
+
BORDER_ALIAS = %w[
|
73
|
+
border
|
74
|
+
border-caution
|
75
|
+
border-caution-subdued
|
76
|
+
border-critical
|
77
|
+
border-critical-active
|
78
|
+
border-critical-hover
|
79
|
+
border-critical-subdued
|
80
|
+
border-disabled
|
81
|
+
border-hover
|
82
|
+
border-info
|
83
|
+
border-info-subdued
|
84
|
+
border-input
|
85
|
+
border-input-hover
|
86
|
+
border-interactive
|
87
|
+
border-interactive-active
|
88
|
+
border-interactive-disabled
|
89
|
+
border-interactive-focus
|
90
|
+
border-interactive-hover
|
91
|
+
border-interactive-subdued
|
92
|
+
border-inverse
|
93
|
+
border-magic
|
94
|
+
border-magic-strong
|
95
|
+
border-primary
|
96
|
+
border-strong
|
97
|
+
border-strong-hover
|
98
|
+
border-subdued
|
99
|
+
border-success
|
100
|
+
border-success-subdued
|
101
|
+
]
|
102
|
+
|
103
|
+
TEXT_ALIAS = %w[
|
104
|
+
text
|
105
|
+
text-caution
|
106
|
+
text-caution-strong
|
107
|
+
text-critical
|
108
|
+
text-critical-active
|
109
|
+
text-critical-strong
|
110
|
+
text-disabled
|
111
|
+
text-info
|
112
|
+
text-info-strong
|
113
|
+
text-interactive
|
114
|
+
text-interactive-active
|
115
|
+
text-interactive-disabled
|
116
|
+
text-interactive-hover
|
117
|
+
text-interactive-inverse
|
118
|
+
text-inverse
|
119
|
+
text-inverse-subdued
|
120
|
+
text-magic
|
121
|
+
text-magic-strong
|
122
|
+
text-on-color
|
123
|
+
text-primary
|
124
|
+
text-primary-hover
|
125
|
+
text-subdued
|
126
|
+
text-success
|
127
|
+
text-success-strong
|
128
|
+
text-warning-strong
|
129
|
+
]
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -1,17 +1,32 @@
|
|
1
1
|
<%= polaris_popover(alignment: :left) do |popover| %>
|
2
|
-
<% popover.
|
2
|
+
<% popover.with_activator do %>
|
3
3
|
<button
|
4
4
|
type="button"
|
5
5
|
class="Polaris-TopBar-Menu__Activator"
|
6
6
|
data-action="polaris-popover#toggle click@window->polaris-popover#hide"
|
7
7
|
>
|
8
|
+
<span class="Polaris-TopBar-UserMenu__Details">
|
9
|
+
<%= polaris_text(
|
10
|
+
as: :p,
|
11
|
+
font_weight: :medium,
|
12
|
+
truncate: true,
|
13
|
+
alignment: :start
|
14
|
+
) do %>
|
15
|
+
<%= @name %>
|
16
|
+
<% end %>
|
17
|
+
<%= polaris_text(
|
18
|
+
as: :p,
|
19
|
+
variant: :bodySm,
|
20
|
+
truncate: true,
|
21
|
+
alignment: :start,
|
22
|
+
color: :subdued
|
23
|
+
) do %>
|
24
|
+
<%= @detail %>
|
25
|
+
<% end %>
|
26
|
+
</span>
|
8
27
|
<div class="Polaris-MessageIndicator__MessageIndicatorWrapper">
|
9
28
|
<%= avatar %>
|
10
29
|
</div>
|
11
|
-
<span class="Polaris-TopBar-UserMenu__Details">
|
12
|
-
<p class="Polaris-TopBar-UserMenu__Name"><%= @name %></p>
|
13
|
-
<p class="Polaris-TopBar-UserMenu__Detail"><%= @detail %></p>
|
14
|
-
</span>
|
15
30
|
</button>
|
16
31
|
<% end %>
|
17
32
|
|
@@ -0,0 +1,70 @@
|
|
1
|
+
module Polaris
|
2
|
+
class VerticalStackComponent < Polaris::Component
|
3
|
+
AS_DEFAULT = :div
|
4
|
+
AS_OPTIONS = %i[div ul ol fieldset]
|
5
|
+
|
6
|
+
ALIGN_DEFAULT = :default
|
7
|
+
ALIGN_MAPPINGS = {
|
8
|
+
default: "",
|
9
|
+
start: "start",
|
10
|
+
center: "center",
|
11
|
+
end: "end",
|
12
|
+
space_around: "space-around",
|
13
|
+
space_between: "space-between",
|
14
|
+
space_evenly: "space-evenly"
|
15
|
+
}
|
16
|
+
ALIGN_OPTIONS = ALIGN_MAPPINGS.keys
|
17
|
+
|
18
|
+
INLINE_ALIGN_OPTIONS = %i[start center end baseline stretch]
|
19
|
+
|
20
|
+
def initialize(
|
21
|
+
as: AS_DEFAULT,
|
22
|
+
align: ALIGN_DEFAULT,
|
23
|
+
inline_align: nil,
|
24
|
+
gap: nil,
|
25
|
+
reverse_order: false,
|
26
|
+
**system_arguments
|
27
|
+
)
|
28
|
+
@system_arguments = system_arguments.tap do |args|
|
29
|
+
args[:tag] = fetch_or_fallback(AS_OPTIONS, as, AS_DEFAULT)
|
30
|
+
args[:classes] = class_names(
|
31
|
+
args[:classes],
|
32
|
+
"Polaris-VerticalStack",
|
33
|
+
"Polaris-VerticalStack--listReset": as.in?(%i[ul ol]),
|
34
|
+
"Polaris-VerticalStack--fieldsetReset": as == :fieldset
|
35
|
+
)
|
36
|
+
args[:style] = styles_list(
|
37
|
+
args[:style],
|
38
|
+
"--pc-vertical-stack-align": ALIGN_MAPPINGS[fetch_or_fallback(ALIGN_OPTIONS, align, ALIGN_DEFAULT)],
|
39
|
+
"--pc-vertical-stack-inline-align": fetch_or_fallback(INLINE_ALIGN_OPTIONS, inline_align, allow_nil: true),
|
40
|
+
"--pc-vertical-stack-order": reverse_order ? "column-reverse" : "column",
|
41
|
+
**gap_value(gap)
|
42
|
+
)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def call
|
47
|
+
render(Polaris::BaseComponent.new(**@system_arguments)) { content }
|
48
|
+
end
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
def gap_value(gap)
|
53
|
+
return {} unless gap
|
54
|
+
|
55
|
+
value = fetch_or_fallback_nested(
|
56
|
+
Tokens::Spacing::SCREEN_SIZES,
|
57
|
+
Tokens::Spacing::SCALE,
|
58
|
+
gap
|
59
|
+
)
|
60
|
+
|
61
|
+
if value.is_a?(Hash)
|
62
|
+
value.each_with_object({}) do |(key, value), hash|
|
63
|
+
hash["--pc-vertical-stack-gap-#{key}"] = "var(--p-space-#{value})"
|
64
|
+
end
|
65
|
+
else
|
66
|
+
{"--pc-vertical-stack-gap-xs": "var(--p-space-#{value})"}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -25,7 +25,9 @@ module Polaris
|
|
25
25
|
|
26
26
|
InvalidValueError = Class.new(StandardError)
|
27
27
|
|
28
|
-
def fetch_or_fallback(allowed_values, given_value, fallback = nil, deprecated_values: nil)
|
28
|
+
def fetch_or_fallback(allowed_values, given_value, fallback = nil, deprecated_values: nil, allow_nil: false)
|
29
|
+
return if allow_nil && given_value.nil?
|
30
|
+
|
29
31
|
if allowed_values.include?(given_value)
|
30
32
|
given_value
|
31
33
|
else
|
@@ -49,5 +51,15 @@ module Polaris
|
|
49
51
|
fallback
|
50
52
|
end
|
51
53
|
end
|
54
|
+
|
55
|
+
def fetch_or_fallback_nested(allowed_keys, allowed_values, given_value)
|
56
|
+
if given_value.is_a?(Hash)
|
57
|
+
given_value.each_with_object({}) do |(key, value), hash|
|
58
|
+
hash[fetch_or_fallback(allowed_keys, key)] = fetch_or_fallback(allowed_values, value)
|
59
|
+
end
|
60
|
+
else
|
61
|
+
fetch_or_fallback(allowed_values, given_value)
|
62
|
+
end
|
63
|
+
end
|
52
64
|
end
|
53
65
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Polaris
|
4
|
+
module StylesListHelper
|
5
|
+
def styles_list(*args)
|
6
|
+
list = []
|
7
|
+
|
8
|
+
args.each do |style|
|
9
|
+
case style
|
10
|
+
when Hash
|
11
|
+
style.each do |key, val|
|
12
|
+
list << [key, val] if val
|
13
|
+
end
|
14
|
+
when Array
|
15
|
+
list << styles_list(*style).presence
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
list.compact.uniq.map { |k, v| "#{k}: #{v}" }.join(";")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -10,6 +10,8 @@ module Polaris
|
|
10
10
|
avatar: "Polaris::AvatarComponent",
|
11
11
|
badge: "Polaris::BadgeComponent",
|
12
12
|
banner: "Polaris::BannerComponent",
|
13
|
+
bleed: "Polaris::BleedComponent",
|
14
|
+
box: "Polaris::BoxComponent",
|
13
15
|
button: "Polaris::ButtonComponent",
|
14
16
|
button_group: "Polaris::ButtonGroupComponent",
|
15
17
|
callout_card: "Polaris::CalloutCardComponent",
|
@@ -23,6 +25,7 @@ module Polaris
|
|
23
25
|
data_table: "Polaris::DataTableComponent",
|
24
26
|
description_list: "Polaris::DescriptionListComponent",
|
25
27
|
display_text: "Polaris::DisplayTextComponent",
|
28
|
+
divider: "Polaris::DividerComponent",
|
26
29
|
dropzone: "Polaris::DropzoneComponent",
|
27
30
|
empty_search_results: "Polaris::EmptySearchResultsComponent",
|
28
31
|
empty_state: "Polaris::EmptyStateComponent",
|
@@ -32,19 +35,25 @@ module Polaris
|
|
32
35
|
frame: "Polaris::FrameComponent",
|
33
36
|
filters: "Polaris::FiltersComponent",
|
34
37
|
heading: "Polaris::HeadingComponent",
|
38
|
+
horizontal_grid: "Polaris::HorizontalGridComponent",
|
39
|
+
horizontal_stack: "Polaris::HorizontalStackComponent",
|
35
40
|
icon: "Polaris::IconComponent",
|
36
41
|
index_table: "Polaris::IndexTableComponent",
|
42
|
+
inline_code: "Polaris::InlineCodeComponent",
|
43
|
+
inline: "Polaris::InlineComponent",
|
37
44
|
inline_error: "Polaris::InlineErrorComponent",
|
38
45
|
keyboard_key: "Polaris::KeyboardKeyComponent",
|
39
46
|
layout: "Polaris::LayoutComponent",
|
40
47
|
link: "Polaris::LinkComponent",
|
41
48
|
list: "Polaris::ListComponent",
|
42
49
|
modal: "Polaris::ModalComponent",
|
50
|
+
modal_section: "Polaris::Modal::SectionComponent",
|
43
51
|
navigation: "Polaris::NavigationComponent",
|
44
52
|
option_list: "Polaris::OptionListComponent",
|
45
53
|
page: "Polaris::PageComponent",
|
46
54
|
page_actions: "Polaris::PageActionsComponent",
|
47
55
|
pagination: "Polaris::PaginationComponent",
|
56
|
+
placeholder: "Polaris::PlaceholderComponent",
|
48
57
|
progress_bar: "Polaris::ProgressBarComponent",
|
49
58
|
popover: "Polaris::PopoverComponent",
|
50
59
|
radio_button: "Polaris::RadioButtonComponent",
|
@@ -65,11 +74,13 @@ module Polaris
|
|
65
74
|
spacer: "Polaris::SpacerComponent",
|
66
75
|
tabs: "Polaris::TabsComponent",
|
67
76
|
tag: "Polaris::TagComponent",
|
77
|
+
text: "Polaris::TextComponent",
|
68
78
|
text_container: "Polaris::TextContainerComponent",
|
69
79
|
text_field: "Polaris::TextFieldComponent",
|
70
80
|
text_style: "Polaris::TextStyleComponent",
|
71
81
|
thumbnail: "Polaris::ThumbnailComponent",
|
72
82
|
toast: "Polaris::ToastComponent",
|
83
|
+
vertical_stack: "Polaris::VerticalStackComponent",
|
73
84
|
visually_hidden: "Polaris::VisuallyHiddenComponent"
|
74
85
|
}.freeze
|
75
86
|
# standard:enable Layout/HashAlignment
|
@@ -97,12 +108,12 @@ module Polaris
|
|
97
108
|
doc.to_html.html_safe
|
98
109
|
end
|
99
110
|
|
100
|
-
def
|
101
|
-
%(
|
111
|
+
def polaris_html_styles
|
112
|
+
%(--pc-frame-global-ribbon-height:0px; --pc-frame-offset:0px;)
|
102
113
|
end
|
103
114
|
|
104
|
-
def
|
105
|
-
%(
|
115
|
+
def polaris_body_styles
|
116
|
+
%(background-color: var(--p-color-bg-app);color: var(--p-color-text);)
|
106
117
|
end
|
107
118
|
end
|
108
119
|
end
|
data/lib/install/install.rb
CHANGED
@@ -8,16 +8,21 @@ if APPLICATION_LAYOUT_PATH.exist?
|
|
8
8
|
insert_into_file APPLICATION_LAYOUT_PATH.to_s, "\n <%= stylesheet_link_tag \"polaris_view_components\" %>", before: /\s*<\/head>/
|
9
9
|
|
10
10
|
if File.read(APPLICATION_LAYOUT_PATH).include?("<body>")
|
11
|
+
say "Add Polaris inline styles for <html> in application layout"
|
12
|
+
gsub_file APPLICATION_LAYOUT_PATH.to_s, "<html", "<html style=\"<%= polaris_html_styles %>\""
|
13
|
+
|
11
14
|
say "Add Polaris inline styles for <body> in application layout"
|
12
15
|
gsub_file APPLICATION_LAYOUT_PATH.to_s, "<body>", "<body style=\"<%= polaris_body_styles %>\">"
|
13
16
|
else
|
14
17
|
say "<body> tag is not found in application layout.", :red
|
18
|
+
say " Replace <html> with <html style=\"<%= polaris_html_styles %>\"> in your custom layour."
|
15
19
|
say " Replace <body> with <body style=\"<%= polaris_body_styles %>\"> in your custom layour."
|
16
20
|
end
|
17
21
|
else
|
18
22
|
say "Default application.html.erb is missing!", :red
|
19
23
|
say " 1. Add <%= stylesheet_link_tag \"polaris_view_components\" %> within the <head> tag in your custom layout."
|
20
|
-
say " 2. Replace <
|
24
|
+
say " 2. Replace <html> with <html style=\"<%= polaris_html_styles %>\"> in your custom layour."
|
25
|
+
say " 3. Replace <body> with <body style=\"<%= polaris_body_styles %>\"> in your custom layour."
|
21
26
|
end
|
22
27
|
|
23
28
|
if IMPORTMAP_BINSTUB.exist?
|