polaris_view_components 0.13.5 → 1.0.0
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/autocomplete_controller.js +2 -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 +34 -6
- 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/autocomplete_component.rb +7 -4
- 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 +30 -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
@@ -1,9 +1,10 @@
|
|
1
|
-
<%= render Polaris::BaseComponent.new(
|
1
|
+
<%= render Polaris::BaseComponent.new(**@system_arguments) do %>
|
2
2
|
<div class="Polaris-Layout__AnnotationWrapper">
|
3
3
|
<div class="Polaris-Layout__Annotation">
|
4
4
|
<%= polaris_text_container do %>
|
5
|
-
<%=
|
5
|
+
<%= polaris_text(variant: :headingMd, as: :h2) { @title } %>
|
6
6
|
|
7
|
+
<%# TODO: This should be a BoxComponent %>
|
7
8
|
<% if @description.present? %>
|
8
9
|
<div class="Polaris-Layout__AnnotationDescription">
|
9
10
|
<%= tag.p @description %>
|
@@ -27,6 +27,8 @@ module Polaris
|
|
27
27
|
def initialize(sectioned: false, **system_arguments)
|
28
28
|
@counter = 0
|
29
29
|
@system_arguments = system_arguments
|
30
|
+
|
31
|
+
@system_arguments[:tag] = :div
|
30
32
|
@system_arguments[:classes] = class_names(
|
31
33
|
@system_arguments[:classes],
|
32
34
|
"Polaris-Layout"
|
@@ -30,20 +30,7 @@ module Polaris
|
|
30
30
|
|
31
31
|
def call
|
32
32
|
render(Polaris::BaseComponent.new(**@system_arguments)) do
|
33
|
-
|
34
|
-
content.strip.html_safe,
|
35
|
-
(external_icon if @external)
|
36
|
-
].compact
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
private
|
41
|
-
|
42
|
-
def external_icon
|
43
|
-
tag.span(class: "Polaris-Link__IconLockup") do
|
44
|
-
tag.span(class: "Polaris-Link__IconLayout") do
|
45
|
-
polaris_icon(name: "ExternalSmallMinor", aria: {label: "(opens a new window)"})
|
46
|
-
end
|
33
|
+
content&.strip&.html_safe
|
47
34
|
end
|
48
35
|
end
|
49
36
|
end
|
@@ -15,8 +15,16 @@ module Polaris
|
|
15
15
|
}
|
16
16
|
TYPE_OPTIONS = TYPE_TAG_MAPPINGS.keys
|
17
17
|
|
18
|
+
SPACING_DEFAULT = :loose
|
19
|
+
SPACING_MAPPINGS = {
|
20
|
+
extra_tight: "Polaris-List--spacingExtraTight",
|
21
|
+
loose: "Polaris-List--spacingLoose"
|
22
|
+
}
|
23
|
+
SPACING_OPTIONS = SPACING_MAPPINGS.keys
|
24
|
+
|
18
25
|
def initialize(
|
19
26
|
type: TYPE_DEFAULT,
|
27
|
+
spacing: SPACING_DEFAULT,
|
20
28
|
**system_arguments
|
21
29
|
)
|
22
30
|
@system_arguments = system_arguments
|
@@ -24,7 +32,8 @@ module Polaris
|
|
24
32
|
@system_arguments[:classes] = class_names(
|
25
33
|
@system_arguments[:classes],
|
26
34
|
"Polaris-List",
|
27
|
-
TYPE_CLASS_MAPPINGS[fetch_or_fallback(TYPE_OPTIONS, type, "")]
|
35
|
+
TYPE_CLASS_MAPPINGS[fetch_or_fallback(TYPE_OPTIONS, type, "")],
|
36
|
+
SPACING_MAPPINGS[fetch_or_fallback(SPACING_OPTIONS, spacing, SPACING_DEFAULT)]
|
28
37
|
)
|
29
38
|
end
|
30
39
|
|
@@ -14,6 +14,10 @@ class Polaris::Modal::SectionComponent < Polaris::Component
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def call
|
17
|
-
render(Polaris::BaseComponent.new(**system_arguments))
|
17
|
+
render(Polaris::BaseComponent.new(**system_arguments)) do
|
18
|
+
render(Polaris::BoxComponent.new(as: :section, padding: "5")) do
|
19
|
+
content
|
20
|
+
end
|
21
|
+
end
|
18
22
|
end
|
19
23
|
end
|
@@ -20,58 +20,78 @@
|
|
20
20
|
<div>
|
21
21
|
<%= render(Polaris::BaseComponent.new(**dialog_arguments)) do %>
|
22
22
|
<div class="<%= modal_classes %>">
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
23
|
+
<% if @title.present? %>
|
24
|
+
<%= polaris_box(
|
25
|
+
classes: "Polaris-Modal-Header",
|
26
|
+
padding_block_start: "4",
|
27
|
+
padding_block_end: "4",
|
28
|
+
padding_inline_start: "5",
|
29
|
+
padding_inline_end: "5",
|
30
|
+
border_block_end_width: "1",
|
31
|
+
border_color: "border-subdued"
|
32
|
+
) do %>
|
33
|
+
<%= polaris_horizontal_grid(
|
34
|
+
classes: "Polaris-Modal-Header__Title",
|
35
|
+
columns: {xs: "1fr auto"},
|
36
|
+
gap: "4"
|
37
|
+
) do %>
|
38
|
+
<%= polaris_horizontal_stack(gap: "4", block_align: :center) do %>
|
39
|
+
<%= polaris_text(as: :h2, variant: :headingLg, break_word: true) do %>
|
40
|
+
<%= @title %>
|
41
|
+
<% end %>
|
42
|
+
<% end %>
|
43
|
+
<% if close_button.present? %>
|
44
|
+
<%= close_button %>
|
45
|
+
<% else %>
|
46
|
+
<%= render(Polaris::BaseComponent.new(**close_button_arguments)) do %>
|
47
|
+
<%= polaris_icon(name: "MobileCancelMajor", color: :base) %>
|
48
|
+
<% end %>
|
49
|
+
<% end %>
|
34
50
|
<% end %>
|
35
51
|
<% end %>
|
36
|
-
|
52
|
+
<% end %>
|
37
53
|
|
38
|
-
|
39
|
-
|
40
|
-
<%= polaris_scrollable(classes: "Polaris-Modal__Body") do %>
|
41
|
-
<%= modal_content %>
|
42
|
-
<% end %>
|
43
|
-
<% else %>
|
54
|
+
<% if @scrollable %>
|
55
|
+
<%= polaris_scrollable(classes: "Polaris-Modal__Body") do %>
|
44
56
|
<%= modal_content %>
|
45
57
|
<% end %>
|
46
|
-
|
58
|
+
<% else %>
|
59
|
+
<%= modal_content %>
|
60
|
+
<% end %>
|
47
61
|
|
48
62
|
<% if render_footer? %>
|
49
|
-
|
50
|
-
|
63
|
+
<%= polaris_horizontal_stack(classes: "Polaris-Modal-Footer", gap: "4", block_align: :center) do %>
|
64
|
+
<%= polaris_box(
|
65
|
+
border_color: "border-subdued",
|
66
|
+
border_block_start_width: "1",
|
67
|
+
min_height: "var(--p-space-16)",
|
68
|
+
padding: "4",
|
69
|
+
width: "100%"
|
70
|
+
) do %>
|
51
71
|
<%= polaris_stack(alignment: :center) do |stack| %>
|
52
|
-
<% stack.
|
72
|
+
<% stack.with_item(fill: true) do %>
|
53
73
|
<% end %>
|
54
74
|
|
55
|
-
<% stack.
|
75
|
+
<% stack.with_item do %>
|
56
76
|
<%= polaris_button_group do |group| %>
|
57
77
|
<% if secondary_actions %>
|
58
78
|
<% secondary_actions.each do |action| %>
|
59
|
-
<% group.
|
79
|
+
<% group.with_item do %>
|
60
80
|
<%= action %>
|
61
81
|
<% end %>
|
62
82
|
<% end %>
|
83
|
+
<% end %>
|
63
84
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<% end %>
|
85
|
+
<% if primary_action %>
|
86
|
+
<% group.with_item do %>
|
87
|
+
<%= primary_action %>
|
68
88
|
<% end %>
|
69
89
|
<% end %>
|
70
90
|
<% end %>
|
71
91
|
<% end %>
|
72
92
|
<% end %>
|
73
|
-
|
74
|
-
|
93
|
+
<% end %>
|
94
|
+
<% end %>
|
75
95
|
<% end %>
|
76
96
|
</div>
|
77
97
|
<% end %>
|
@@ -1,21 +1,29 @@
|
|
1
1
|
<%= render Polaris::BaseComponent.new(**system_arguments) do %>
|
2
2
|
<div class="Polaris-Navigation__ItemWrapper">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<div class="Polaris-Navigation__ItemInnerWrapper">
|
4
|
+
<%= link_to @url, **link_arguments do %>
|
5
|
+
<% if @icon.present? %>
|
6
|
+
<div class="Polaris-Navigation__Icon">
|
7
|
+
<%= polaris_icon(name: @icon) %>
|
8
|
+
</div>
|
9
|
+
<% end %>
|
10
|
+
<span class="Polaris-Navigation__Text">
|
11
|
+
<%= @label %>
|
12
|
+
</span>
|
13
|
+
<% if @badge.present? %>
|
14
|
+
<div class="Polaris-Navigation__Badge">
|
15
|
+
<%= polaris_badge { @badge } %>
|
16
|
+
</div>
|
17
|
+
<% end %>
|
8
18
|
<% end %>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<%= polaris_badge { @badge } %>
|
19
|
+
<% if secondary_actions.present? %>
|
20
|
+
<div class="Polaris-Navigation__SecondaryActions">
|
21
|
+
<% secondary_actions.each do |secondary_action| %>
|
22
|
+
<%= secondary_action %>
|
23
|
+
<% end %>
|
15
24
|
</div>
|
16
25
|
<% end %>
|
17
|
-
|
18
|
-
<%= secondary_action %>
|
26
|
+
</div>
|
19
27
|
</div>
|
20
28
|
<% if sub_items.present? %>
|
21
29
|
<div class="Polaris-Navigation__SecondaryNavigation Polaris-Navigation--isExpanded">
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class Polaris::Navigation::ItemComponent < Polaris::Component
|
2
2
|
renders_many :sub_items, Polaris::Navigation::ItemComponent
|
3
|
-
|
3
|
+
renders_many :secondary_actions, "SecondaryActionComponent"
|
4
4
|
|
5
5
|
attr_reader :selected
|
6
6
|
|
@@ -88,11 +88,13 @@ class Polaris::Navigation::ItemComponent < Polaris::Component
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def call
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
91
|
+
tag.span do
|
92
|
+
render(Polaris::BaseComponent.new(**system_arguments)) do
|
93
|
+
if @icon.present?
|
94
|
+
render(Polaris::IconComponent.new(name: @icon))
|
95
|
+
else
|
96
|
+
content
|
97
|
+
end
|
96
98
|
end
|
97
99
|
end
|
98
100
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
<% if items.present? %>
|
3
3
|
<% if @title.present? %>
|
4
4
|
<li class="Polaris-Navigation__SectionHeading">
|
5
|
-
|
5
|
+
<%= polaris_text(as: :span, color: :subdued, variant: :headingXs) do %>
|
6
6
|
<%= @title %>
|
7
|
-
|
7
|
+
<% end %>
|
8
8
|
<%= action %>
|
9
9
|
</li>
|
10
10
|
<% end %>
|
@@ -1,14 +1,30 @@
|
|
1
|
-
|
1
|
+
<%= polaris_box(
|
2
|
+
as: :li,
|
3
|
+
padding_block_start: @position.zero? ? nil : "2"
|
4
|
+
) do %>
|
2
5
|
<% if @title.present? %>
|
3
|
-
|
6
|
+
<%= polaris_box(
|
7
|
+
padding_block_start: @position.zero? ? "2" : "4",
|
8
|
+
padding_inline_start: "2",
|
9
|
+
padding_block_end: "2",
|
10
|
+
padding_inline_end: "2",
|
11
|
+
border_color: !@position.zero? ? "border-subdued" : nil,
|
12
|
+
border_block_start_width: !@position.zero? ? "1" : nil
|
13
|
+
) do %>
|
14
|
+
<%= polaris_text(as: :p, variant: :headingXs) do %>
|
15
|
+
<%= @title %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
4
18
|
<% end %>
|
5
|
-
|
6
|
-
|
7
|
-
<% items.
|
8
|
-
|
19
|
+
<%= polaris_bleed(margin_block_start: @title.present? ? nil : "05") do %>
|
20
|
+
<%= polaris_box(as: :ul) do %>
|
21
|
+
<% if items.present? %>
|
22
|
+
<% items.each do |item| %>
|
23
|
+
<%= item %>
|
24
|
+
<% end %>
|
25
|
+
<% else %>
|
26
|
+
<%= content %>
|
9
27
|
<% end %>
|
10
|
-
<% else %>
|
11
|
-
<%= content %>
|
12
28
|
<% end %>
|
13
|
-
|
14
|
-
|
29
|
+
<% end %>
|
30
|
+
<% end %>
|
@@ -22,6 +22,7 @@ class Polaris::OptionList::SectionComponent < Polaris::Component
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def initialize(
|
25
|
+
position: 0,
|
25
26
|
title: nil,
|
26
27
|
form: nil,
|
27
28
|
attribute: nil,
|
@@ -29,6 +30,7 @@ class Polaris::OptionList::SectionComponent < Polaris::Component
|
|
29
30
|
selected: [],
|
30
31
|
**system_arguments
|
31
32
|
)
|
33
|
+
@position = position
|
32
34
|
@title = title
|
33
35
|
@form = form
|
34
36
|
@attribute = attribute
|
@@ -40,10 +42,6 @@ class Polaris::OptionList::SectionComponent < Polaris::Component
|
|
40
42
|
def system_arguments
|
41
43
|
@system_arguments.tap do |opts|
|
42
44
|
opts[:tag] = "ul"
|
43
|
-
opts[:classes] = class_names(
|
44
|
-
@system_arguments[:classes],
|
45
|
-
"Polaris-OptionList__Options"
|
46
|
-
)
|
47
45
|
end
|
48
46
|
end
|
49
47
|
|
@@ -1,10 +1,13 @@
|
|
1
|
-
<%=
|
1
|
+
<%= polaris_box(as: :ul, padding: "2", **system_arguments) do %>
|
2
2
|
<% if sections.present? %>
|
3
3
|
<% sections.each do |section| %>
|
4
4
|
<%= section %>
|
5
5
|
<% end %>
|
6
6
|
<% elsif items.present? %>
|
7
|
-
<%= render(Polaris::OptionList::SectionComponent.new(
|
7
|
+
<%= render(Polaris::OptionList::SectionComponent.new(
|
8
|
+
title: @title,
|
9
|
+
position: @sections_count
|
10
|
+
)) do %>
|
8
11
|
<% items.each do |item| %>
|
9
12
|
<%= item %>
|
10
13
|
<% end %>
|
@@ -1,7 +1,10 @@
|
|
1
1
|
module Polaris
|
2
2
|
class OptionListComponent < Polaris::Component
|
3
3
|
renders_many :sections, ->(**system_arguments) do
|
4
|
+
@sections_count += 1
|
5
|
+
|
4
6
|
Polaris::OptionList::SectionComponent.new(
|
7
|
+
position: @sections_count - 1,
|
5
8
|
form: @form,
|
6
9
|
attribute: @attribute,
|
7
10
|
name: @name,
|
@@ -39,6 +42,8 @@ module Polaris
|
|
39
42
|
selected: [],
|
40
43
|
**system_arguments
|
41
44
|
)
|
45
|
+
@sections_count = 0
|
46
|
+
|
42
47
|
@title = title
|
43
48
|
@form = form
|
44
49
|
@attribute = attribute
|
@@ -48,15 +53,10 @@ module Polaris
|
|
48
53
|
end
|
49
54
|
|
50
55
|
def system_arguments
|
51
|
-
@system_arguments.tap do |
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
opts[:data][:polaris_option_list_selected_class] = "Polaris-OptionList-Option--select"
|
56
|
-
opts[:classes] = class_names(
|
57
|
-
@system_arguments[:classes],
|
58
|
-
"Polaris-OptionList"
|
59
|
-
)
|
56
|
+
@system_arguments.tap do |args|
|
57
|
+
args[:data] ||= {}
|
58
|
+
prepend_option(args[:data], :controller, "polaris-option-list")
|
59
|
+
args[:data][:polaris_option_list_selected_class] = "Polaris-OptionList-Option--select"
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<%= render(Polaris::BaseComponent.new(**@system_arguments)) do %>
|
2
|
-
<%= polaris_stack(
|
2
|
+
<%= polaris_stack(distribution: :trailing, spacing: :tight) do |stack| %>
|
3
3
|
<% if secondary_actions %>
|
4
|
-
<% stack.
|
4
|
+
<% stack.with_item do %>
|
5
5
|
<%= polaris_button_group do |group| %>
|
6
6
|
<% secondary_actions.each do |action| %>
|
7
|
-
<% group.
|
7
|
+
<% group.with_item do %>
|
8
8
|
<%= action %>
|
9
9
|
<% end %>
|
10
10
|
<% end %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<% if primary_action %>
|
16
|
-
<% stack.
|
16
|
+
<% stack.with_item do %>
|
17
17
|
<%= primary_action %>
|
18
18
|
<% end %>
|
19
19
|
<% end %>
|
@@ -2,24 +2,12 @@
|
|
2
2
|
|
3
3
|
module Polaris
|
4
4
|
class PageActionsComponent < Polaris::Component
|
5
|
-
DISTRIBUTION_DEFAULT = nil
|
6
|
-
DISTRIBUTION_OPTIONS = [
|
7
|
-
DISTRIBUTION_DEFAULT,
|
8
|
-
:equal_spacing,
|
9
|
-
:leading,
|
10
|
-
:trailing,
|
11
|
-
:center,
|
12
|
-
:fill,
|
13
|
-
:fill_evenly
|
14
|
-
]
|
15
|
-
|
16
5
|
renders_one :primary_action, ->(primary: true, **system_arguments) do
|
17
6
|
Polaris::ButtonComponent.new(primary: primary, **system_arguments)
|
18
7
|
end
|
19
8
|
renders_many :secondary_actions, Polaris::ButtonComponent
|
20
9
|
|
21
|
-
def initialize(
|
22
|
-
@distribution = fetch_or_fallback(DISTRIBUTION_OPTIONS, distribution, DISTRIBUTION_DEFAULT)
|
10
|
+
def initialize(**system_arguments)
|
23
11
|
@system_arguments = system_arguments
|
24
12
|
@system_arguments[:tag] = "div"
|
25
13
|
@system_arguments[:classes] = class_names(
|
@@ -27,13 +15,5 @@ module Polaris
|
|
27
15
|
"Polaris-PageActions"
|
28
16
|
)
|
29
17
|
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
def stack_distribution
|
34
|
-
return @distribution if @distribution.present?
|
35
|
-
|
36
|
-
(primary_action.present? && secondary_actions.any?) ? :equal_spacing : :trailing
|
37
|
-
end
|
38
18
|
end
|
39
19
|
end
|