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
@@ -0,0 +1,187 @@
|
|
1
|
+
module Polaris
|
2
|
+
class BoxComponent < Polaris::Component
|
3
|
+
AS_DEFAULT = :div
|
4
|
+
AS_OPTIONS = %i[div span section legend ul li]
|
5
|
+
|
6
|
+
LINE_STYLES = %i[solid dashed]
|
7
|
+
OVERFLOW_OPTIONS = %i[hidden scroll]
|
8
|
+
POSITION_OPTIONS = %i[relative absolute fixed sticky]
|
9
|
+
ROLE_OPTIONS = %i[status presentation menu listbox combobox]
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
as: AS_DEFAULT,
|
13
|
+
background: nil,
|
14
|
+
border_color: "transparent",
|
15
|
+
border_style: nil,
|
16
|
+
border_radius: nil,
|
17
|
+
border_radius_end_start: nil,
|
18
|
+
border_radius_end_end: nil,
|
19
|
+
border_radius_start_start: nil,
|
20
|
+
border_radius_start_end: nil,
|
21
|
+
border_width: nil,
|
22
|
+
border_block_start_width: nil,
|
23
|
+
border_block_end_width: nil,
|
24
|
+
border_inline_start_width: nil,
|
25
|
+
border_inline_end_width: nil,
|
26
|
+
color: nil,
|
27
|
+
min_height: nil,
|
28
|
+
min_width: nil,
|
29
|
+
max_width: nil,
|
30
|
+
overflow_x: nil,
|
31
|
+
overflow_y: nil,
|
32
|
+
padding: nil,
|
33
|
+
padding_block_start: nil,
|
34
|
+
padding_block_end: nil,
|
35
|
+
padding_inline_start: nil,
|
36
|
+
padding_inline_end: nil,
|
37
|
+
role: nil,
|
38
|
+
shadow: nil,
|
39
|
+
width: nil,
|
40
|
+
position: nil,
|
41
|
+
inset_block_start: nil,
|
42
|
+
inset_block_end: nil,
|
43
|
+
inset_inline_start: nil,
|
44
|
+
inset_inline_end: nil,
|
45
|
+
opacity: nil,
|
46
|
+
outline_color: nil,
|
47
|
+
outline_style: nil,
|
48
|
+
outline_width: nil,
|
49
|
+
print_hidden: false,
|
50
|
+
visually_hidden: false,
|
51
|
+
z_index: nil,
|
52
|
+
**system_arguments
|
53
|
+
)
|
54
|
+
@system_arguments = system_arguments.tap do |args|
|
55
|
+
args[:tag] = fetch_or_fallback(AS_OPTIONS, as, AS_DEFAULT)
|
56
|
+
args[:role] = role_value(role)
|
57
|
+
args[:classes] = class_names(
|
58
|
+
args[:classes],
|
59
|
+
"Polaris-Box",
|
60
|
+
"Polaris-Box--visuallyHidden": visually_hidden,
|
61
|
+
"Polaris-Box--printHidden": print_hidden,
|
62
|
+
"Polaris-Box--listReset": as == :ul
|
63
|
+
)
|
64
|
+
args[:style] = styles_list(
|
65
|
+
args[:style],
|
66
|
+
"--pc-box-color": color_value(color),
|
67
|
+
"--pc-box-background": background_value(background),
|
68
|
+
"--pc-box-border-color": (border_color == "transparent") ? "transparent" : border_color_value(border_color),
|
69
|
+
"--pc-box-border-style": style_value(border_style, border_color, border_width, border_block_start_width, border_block_end_width, border_inline_start_width, border_inline_end_width),
|
70
|
+
"--pc-box-border-radius": border_radius_value(border_radius),
|
71
|
+
"--pc-box-border-radius-end-start": border_radius_value(border_radius_end_start),
|
72
|
+
"--pc-box-border-radius-end-end": border_radius_value(border_radius_end_end),
|
73
|
+
"--pc-box-border-radius-start-start": border_radius_value(border_radius_start_start),
|
74
|
+
"--pc-box-border-radius-start-end": border_radius_value(border_radius_start_end),
|
75
|
+
"--pc-box-border-width": border_width_value(border_width),
|
76
|
+
"--pc-box-border-block-start-width": border_width_value(border_block_start_width),
|
77
|
+
"--pc-box-border-block-end-width": border_width_value(border_block_end_width),
|
78
|
+
"--pc-box-border-inline-start-width": border_width_value(border_inline_start_width),
|
79
|
+
"--pc-box-border-inline-end-width": border_width_value(border_inline_end_width),
|
80
|
+
"--pc-box-min-height": min_height,
|
81
|
+
"--pc-box-min-width": min_width,
|
82
|
+
"--pc-box-max-width": max_width,
|
83
|
+
"--pc-box-outline-color": border_color_value(outline_color),
|
84
|
+
"--pc-box-outline-style": style_value(outline_style, outline_color, outline_width),
|
85
|
+
"--pc-box-outline-width": border_width_value(outline_width),
|
86
|
+
"--pc-box-overflow-x": overflow_value(overflow_x),
|
87
|
+
"--pc-box-overflow-y": overflow_value(overflow_y),
|
88
|
+
**padding_value("block-end", padding_block_end || padding),
|
89
|
+
**padding_value("block-start", padding_block_start || padding),
|
90
|
+
**padding_value("inline-end", padding_inline_end || padding),
|
91
|
+
**padding_value("inline-start", padding_inline_start || padding),
|
92
|
+
"--pc-box-shadow": shadow_value(shadow),
|
93
|
+
"--pc-box-width": width,
|
94
|
+
position: position_value(position),
|
95
|
+
"--pc-box-inset-block-start": space_value(inset_block_start),
|
96
|
+
"--pc-box-inset-block-end": space_value(inset_block_end),
|
97
|
+
"--pc-box-inset-inline-start": space_value(inset_inline_start),
|
98
|
+
"--pc-box-inset-inline-end": space_value(inset_inline_end),
|
99
|
+
"z-index": z_index,
|
100
|
+
opacity: opacity
|
101
|
+
)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def call
|
106
|
+
render(Polaris::BaseComponent.new(**@system_arguments)) { content }
|
107
|
+
end
|
108
|
+
|
109
|
+
private
|
110
|
+
|
111
|
+
def role_value(role)
|
112
|
+
return unless role
|
113
|
+
fetch_or_fallback(ROLE_OPTIONS, role)
|
114
|
+
end
|
115
|
+
|
116
|
+
def color_value(color)
|
117
|
+
return unless color
|
118
|
+
"var(--p-color-#{fetch_or_fallback(Tokens::Color::TEXT_ALIAS, color)})"
|
119
|
+
end
|
120
|
+
|
121
|
+
def background_value(background)
|
122
|
+
return unless background
|
123
|
+
"var(--p-color-#{fetch_or_fallback(Tokens::Color::BACKGROUND_ALIAS, background)})"
|
124
|
+
end
|
125
|
+
|
126
|
+
def border_color_value(border_color)
|
127
|
+
return unless border_color
|
128
|
+
"var(--p-color-#{fetch_or_fallback(Tokens::Color::BORDER_ALIAS, border_color)})"
|
129
|
+
end
|
130
|
+
|
131
|
+
def style_value(style, *args)
|
132
|
+
if style
|
133
|
+
fetch_or_fallback(LINE_STYLES, style)
|
134
|
+
else
|
135
|
+
args.compact.any? ? "solid" : nil
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
def border_radius_value(border_radius)
|
140
|
+
return unless border_radius
|
141
|
+
"var(--p-border-radius-#{fetch_or_fallback(Tokens::Border::RADIUS_SCALE, border_radius)})"
|
142
|
+
end
|
143
|
+
|
144
|
+
def border_width_value(border_width)
|
145
|
+
return unless border_width
|
146
|
+
"var(--p-border-width-#{fetch_or_fallback(Tokens::Border::WIDTH_SCALE, border_width)})"
|
147
|
+
end
|
148
|
+
|
149
|
+
def overflow_value(overflow)
|
150
|
+
return unless overflow
|
151
|
+
fetch_or_fallback(OVERFLOW_OPTIONS, overflow)
|
152
|
+
end
|
153
|
+
|
154
|
+
def shadow_value(shadow)
|
155
|
+
return unless shadow
|
156
|
+
"var(--p-shadow-#{fetch_or_fallback(Tokens::Shadow::ALIAS, shadow)})"
|
157
|
+
end
|
158
|
+
|
159
|
+
def position_value(position)
|
160
|
+
return unless position
|
161
|
+
fetch_or_fallback(POSITION_OPTIONS, position)
|
162
|
+
end
|
163
|
+
|
164
|
+
def space_value(space)
|
165
|
+
return unless space
|
166
|
+
"var(--p-space-#{fetch_or_fallback(Tokens::Spacing::SCALE, space)})"
|
167
|
+
end
|
168
|
+
|
169
|
+
def padding_value(property, pagging)
|
170
|
+
return {} unless pagging
|
171
|
+
|
172
|
+
value = fetch_or_fallback_nested(
|
173
|
+
Tokens::Spacing::SCREEN_SIZES,
|
174
|
+
Tokens::Spacing::SCALE,
|
175
|
+
pagging
|
176
|
+
)
|
177
|
+
|
178
|
+
if value.is_a?(Hash)
|
179
|
+
value.each_with_object({}) do |(key, value), hash|
|
180
|
+
hash["--pc-box-padding-#{property}-#{key}"] = "var(--p-space-#{value})"
|
181
|
+
end
|
182
|
+
else
|
183
|
+
{"--pc-box-padding-#{property}-xs": "var(--p-space-#{value})"}
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -28,6 +28,7 @@ module Polaris
|
|
28
28
|
full_width: false,
|
29
29
|
segmented: false,
|
30
30
|
spacing: SPACING_DEFAULT,
|
31
|
+
nowrap: false,
|
31
32
|
**system_arguments
|
32
33
|
)
|
33
34
|
@counter = 0
|
@@ -47,7 +48,8 @@ module Polaris
|
|
47
48
|
"Polaris-ButtonGroup",
|
48
49
|
SPACING_MAPPINGS[fetch_or_fallback(SPACING_OPTIONS, spacing, SPACING_DEFAULT)],
|
49
50
|
"Polaris-ButtonGroup--fullWidth": full_width,
|
50
|
-
"Polaris-ButtonGroup--segmented": segmented
|
51
|
+
"Polaris-ButtonGroup--segmented": segmented,
|
52
|
+
"Polaris-ButtonGroup--noWrap": nowrap
|
51
53
|
)
|
52
54
|
end
|
53
55
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
</div>
|
7
7
|
<% end %>
|
8
8
|
|
9
|
-
<div class="Polaris-
|
9
|
+
<div class="Polaris-LegacyCard__Section">
|
10
10
|
<div class="Polaris-CalloutCard">
|
11
11
|
<div class="Polaris-CalloutCard__Content">
|
12
12
|
<% if @title.present? %>
|
@@ -23,10 +23,10 @@
|
|
23
23
|
<div class="Polaris-CalloutCard__Buttons">
|
24
24
|
<% if primary_action.present? && secondary_action.present? %>
|
25
25
|
<%= polaris_button_group do |group| %>
|
26
|
-
<% group.
|
26
|
+
<% group.with_item do %>
|
27
27
|
<%= primary_action %>
|
28
28
|
<% end %>
|
29
|
-
<% group.
|
29
|
+
<% group.with_item do %>
|
30
30
|
<%= secondary_action %>
|
31
31
|
<% end %>
|
32
32
|
<% end %>
|
@@ -8,7 +8,7 @@ module Polaris
|
|
8
8
|
end
|
9
9
|
renders_one :dismiss_button, ->(**system_arguments) do
|
10
10
|
render Polaris::ButtonComponent.new(plain: true, **system_arguments) do |button|
|
11
|
-
button.
|
11
|
+
button.with_icon(name: "CancelSmallMinor")
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -24,7 +24,7 @@ module Polaris
|
|
24
24
|
@system_arguments[:tag] = "div"
|
25
25
|
@system_arguments[:classes] = class_names(
|
26
26
|
@system_arguments[:classes],
|
27
|
-
"Polaris-
|
27
|
+
"Polaris-LegacyCard"
|
28
28
|
)
|
29
29
|
end
|
30
30
|
|
@@ -4,15 +4,10 @@ module Polaris
|
|
4
4
|
class CaptionComponent < Polaris::Component
|
5
5
|
def initialize(**system_arguments)
|
6
6
|
@system_arguments = system_arguments
|
7
|
-
@system_arguments[:tag] = "p"
|
8
|
-
@system_arguments[:classes] = class_names(
|
9
|
-
@system_arguments[:classes],
|
10
|
-
"Polaris-Caption"
|
11
|
-
)
|
12
7
|
end
|
13
8
|
|
14
9
|
def call
|
15
|
-
render(Polaris::
|
10
|
+
render(Polaris::TextComponent.new(as: :p, variant: :bodySm, **@system_arguments)) { content }
|
16
11
|
end
|
17
12
|
end
|
18
13
|
end
|
@@ -3,22 +3,22 @@
|
|
3
3
|
<%= polaris_heading { @title } %>
|
4
4
|
<% else %>
|
5
5
|
<%= polaris_stack(alignment: :trailing) do |stack| %>
|
6
|
-
<% stack.
|
6
|
+
<% stack.with_item(fill: true) do %>
|
7
7
|
<%= polaris_heading { @title } %>
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<% if @actions.present? %>
|
11
|
-
<% stack.
|
11
|
+
<% stack.with_item do %>
|
12
12
|
<%= polaris_button_group do |group| %>
|
13
13
|
<% @actions.each do |action| %>
|
14
|
-
<% group.
|
14
|
+
<% group.with_button(**action) %>
|
15
15
|
<% end %>
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|
18
18
|
<% end %>
|
19
19
|
|
20
20
|
<% if content.present? %>
|
21
|
-
<% stack.
|
21
|
+
<% stack.with_item do %>
|
22
22
|
<%= content %>
|
23
23
|
<% end %>
|
24
24
|
<% end %>
|
@@ -1,22 +1,22 @@
|
|
1
1
|
<%= render Polaris::BaseComponent.new(**@system_arguments) do %>
|
2
2
|
<% if @title.present? && @title.is_a?(String) %>
|
3
|
-
<div class="Polaris-
|
3
|
+
<div class="Polaris-LegacyCard__SectionHeader">
|
4
4
|
<% if @actions.present? %>
|
5
5
|
<%= polaris_stack(alignment: :trailing) do |stack| %>
|
6
|
-
<% stack.
|
7
|
-
<%=
|
6
|
+
<% stack.with_item(fill: true) do %>
|
7
|
+
<%= polaris_text(variant: :headingSm, as: :h3) { @title } %>
|
8
8
|
<% end %>
|
9
9
|
|
10
|
-
<% stack.
|
10
|
+
<% stack.with_item do %>
|
11
11
|
<%= polaris_button_group do |group| %>
|
12
12
|
<% @actions.each do |action| %>
|
13
|
-
<% group.
|
13
|
+
<% group.with_button(**action) %>
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|
18
18
|
<% else %>
|
19
|
-
<%=
|
19
|
+
<%= polaris_text(variant: :headingSm, as: :h3) { @title } %>
|
20
20
|
<% end %>
|
21
21
|
</div>
|
22
22
|
<% end %>
|
@@ -16,12 +16,12 @@ class Polaris::Card::SectionComponent < Polaris::Component
|
|
16
16
|
@system_arguments[:tag] = :div
|
17
17
|
@system_arguments[:classes] = class_names(
|
18
18
|
@system_arguments[:classes],
|
19
|
-
"Polaris-
|
20
|
-
"Polaris-
|
21
|
-
"Polaris-
|
22
|
-
"Polaris-
|
23
|
-
"Polaris-
|
24
|
-
"Polaris-
|
19
|
+
"Polaris-LegacyCard__Section": !unstyled,
|
20
|
+
"Polaris-LegacyCard__Section--flush": flush,
|
21
|
+
"Polaris-LegacyCard__Section--subdued": subdued,
|
22
|
+
"Polaris-LegacyCard__Section--fullWidth": full_width,
|
23
|
+
"Polaris-LegacyCard__Section--borderTop": border_top,
|
24
|
+
"Polaris-LegacyCard__Section--borderBottom": border_bottom
|
25
25
|
)
|
26
26
|
|
27
27
|
@title = title
|
@@ -34,7 +34,7 @@ class Polaris::Card::SectionComponent < Polaris::Component
|
|
34
34
|
@system_arguments[:tag] = :div
|
35
35
|
@system_arguments[:classes] = class_names(
|
36
36
|
@system_arguments[:classes],
|
37
|
-
"Polaris-
|
37
|
+
"Polaris-LegacyCard__Subsection"
|
38
38
|
)
|
39
39
|
end
|
40
40
|
|
@@ -32,25 +32,25 @@
|
|
32
32
|
<%= polaris_button_group do |group| %>
|
33
33
|
<% if @footer_action_alignment == :right %>
|
34
34
|
<% secondary_footer_actions.each do |secondary_footer_action| %>
|
35
|
-
<% group.
|
35
|
+
<% group.with_item do %>
|
36
36
|
<%= secondary_footer_action %>
|
37
37
|
<% end %>
|
38
38
|
<% end %>
|
39
39
|
|
40
40
|
<% if primary_footer_action %>
|
41
|
-
<% group.
|
41
|
+
<% group.with_item do %>
|
42
42
|
<%= primary_footer_action %>
|
43
43
|
<% end %>
|
44
44
|
<% end %>
|
45
45
|
<% else %>
|
46
46
|
<% if primary_footer_action %>
|
47
|
-
<% group.
|
47
|
+
<% group.with_item do %>
|
48
48
|
<%= primary_footer_action %>
|
49
49
|
<% end %>
|
50
50
|
<% end %>
|
51
51
|
|
52
52
|
<% secondary_footer_actions.each do |secondary_footer_action| %>
|
53
|
-
<% group.
|
53
|
+
<% group.with_item do %>
|
54
54
|
<%= secondary_footer_action %>
|
55
55
|
<% end %>
|
56
56
|
<% end %>
|
@@ -5,7 +5,7 @@ module Polaris
|
|
5
5
|
FOOTER_ACTION_ALIGNMENT_DEFAULT = :right
|
6
6
|
FOOTER_ACTION_ALIGNMENT_MAPPINGS = {
|
7
7
|
FOOTER_ACTION_ALIGNMENT_DEFAULT => "",
|
8
|
-
:left => "Polaris-
|
8
|
+
:left => "Polaris-LegacyCard__LeftJustified"
|
9
9
|
}
|
10
10
|
FOOTER_ACTION_ALIGNMENT_OPTIONS = FOOTER_ACTION_ALIGNMENT_MAPPINGS.keys
|
11
11
|
|
@@ -34,8 +34,8 @@ module Polaris
|
|
34
34
|
@system_arguments[:tag] = :div
|
35
35
|
@system_arguments[:classes] = class_names(
|
36
36
|
@system_arguments[:classes],
|
37
|
-
"Polaris-
|
38
|
-
"Polaris-
|
37
|
+
"Polaris-LegacyCard",
|
38
|
+
"Polaris-LegacyCard--subdued": subdued
|
39
39
|
)
|
40
40
|
end
|
41
41
|
|
@@ -45,7 +45,7 @@ module Polaris
|
|
45
45
|
|
46
46
|
def footer_classes
|
47
47
|
class_names(
|
48
|
-
"Polaris-
|
48
|
+
"Polaris-LegacyCard__Footer",
|
49
49
|
FOOTER_ACTION_ALIGNMENT_MAPPINGS[fetch_or_fallback(FOOTER_ACTION_ALIGNMENT_OPTIONS, @footer_action_alignment, FOOTER_ACTION_ALIGNMENT_DEFAULT)]
|
50
50
|
)
|
51
51
|
end
|
@@ -1,19 +1,28 @@
|
|
1
|
-
<%=
|
2
|
-
|
3
|
-
<%=
|
4
|
-
|
1
|
+
<%= polaris_vertical_stack(**@system_arguments) do %>
|
2
|
+
<% if @title.present? %>
|
3
|
+
<%= polaris_box(
|
4
|
+
as: :legend,
|
5
|
+
padding_block_end: {xs: "5", md: "1"},
|
6
|
+
visually_hidden: @title_hidden
|
7
|
+
) do %>
|
8
|
+
<%= @title %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
5
11
|
|
6
|
-
|
12
|
+
<%= polaris_vertical_stack(as: :ul, gap: {xs: "4", md: "0"}) do %>
|
7
13
|
<% items.each do |item| %>
|
8
14
|
<li>
|
9
15
|
<%= item %>
|
10
16
|
</li>
|
11
17
|
<% end %>
|
12
|
-
|
18
|
+
<% end %>
|
13
19
|
|
14
20
|
<% if @error.present? %>
|
15
|
-
|
21
|
+
<%= polaris_box(
|
22
|
+
padding_block_start: {xs: "0", md: "1"},
|
23
|
+
padding_block_end: "2"
|
24
|
+
) do %>
|
16
25
|
<%= polaris_inline_error { @error } %>
|
17
|
-
|
26
|
+
<% end %>
|
18
27
|
<% end %>
|
19
28
|
<% end %>
|
@@ -45,12 +45,8 @@ module Polaris
|
|
45
45
|
@disabled = disabled
|
46
46
|
|
47
47
|
@system_arguments = system_arguments
|
48
|
-
@system_arguments[:
|
49
|
-
@system_arguments[:
|
50
|
-
@system_arguments[:classes],
|
51
|
-
"Polaris-ChoiceList",
|
52
|
-
"Polaris-ChoiceList--titleHidden": title_hidden
|
53
|
-
)
|
48
|
+
@system_arguments[:as] = :fieldset
|
49
|
+
@system_arguments[:gap] = {xs: "4", md: "0"}
|
54
50
|
end
|
55
51
|
|
56
52
|
def items
|
@@ -17,6 +17,7 @@ class Polaris::DataTable::CellComponent < Polaris::Component
|
|
17
17
|
total_footer: false,
|
18
18
|
sorted: false,
|
19
19
|
sort_url: nil,
|
20
|
+
hoverable: true,
|
20
21
|
**system_arguments
|
21
22
|
)
|
22
23
|
@vertical_alignment = vertical_alignment
|
@@ -27,6 +28,7 @@ class Polaris::DataTable::CellComponent < Polaris::Component
|
|
27
28
|
@total_footer = total_footer
|
28
29
|
@sorted = sorted
|
29
30
|
@sort_url = sort_url
|
31
|
+
@hoverable = hoverable
|
30
32
|
@system_arguments = system_arguments
|
31
33
|
end
|
32
34
|
|
@@ -1,81 +1,83 @@
|
|
1
|
-
<%= render Polaris::BaseComponent.new(**
|
2
|
-
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<
|
6
|
-
<% columns.each_with_index do |column, index| %>
|
7
|
-
<%= render_cell(
|
8
|
-
first: index.zero?,
|
9
|
-
numeric: column.numeric,
|
10
|
-
tag: "th",
|
11
|
-
scope: "col",
|
12
|
-
header: true,
|
13
|
-
sort_url: column.sort_url,
|
14
|
-
sorted: column.sorted,
|
15
|
-
**column.system_arguments
|
16
|
-
) do %>
|
17
|
-
<%= column.title&.html_safe %>
|
18
|
-
<% end %>
|
19
|
-
<% end %>
|
20
|
-
</tr>
|
21
|
-
<% if @totals_in_header %>
|
1
|
+
<%= render Polaris::BaseComponent.new(**wrapper_arguments) do %>
|
2
|
+
<%= render Polaris::BaseComponent.new(**system_arguments) do %>
|
3
|
+
<div class="Polaris-DataTable__ScrollContainer">
|
4
|
+
<table class="Polaris-DataTable__Table">
|
5
|
+
<thead>
|
22
6
|
<tr>
|
23
7
|
<% columns.each_with_index do |column, index| %>
|
24
8
|
<%= render_cell(
|
25
9
|
first: index.zero?,
|
26
10
|
numeric: column.numeric,
|
27
|
-
tag:
|
28
|
-
scope:
|
29
|
-
|
11
|
+
tag: "th",
|
12
|
+
scope: "col",
|
13
|
+
header: true,
|
14
|
+
sort_url: column.sort_url,
|
15
|
+
sorted: column.sorted,
|
30
16
|
**column.system_arguments
|
31
17
|
) do %>
|
32
|
-
<%= column.
|
18
|
+
<%= column.title&.html_safe %>
|
33
19
|
<% end %>
|
34
20
|
<% end %>
|
35
21
|
</tr>
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<%= column.call(row) %>
|
22
|
+
<% if @totals_in_header %>
|
23
|
+
<tr>
|
24
|
+
<% columns.each_with_index do |column, index| %>
|
25
|
+
<%= render_cell(
|
26
|
+
first: index.zero?,
|
27
|
+
numeric: column.numeric,
|
28
|
+
tag: (index.zero? ? "th" : "td"),
|
29
|
+
scope: ("row" if index.zero?),
|
30
|
+
total: true,
|
31
|
+
**column.system_arguments
|
32
|
+
) do %>
|
33
|
+
<%= column.total %>
|
34
|
+
<% end %>
|
50
35
|
<% end %>
|
51
|
-
|
36
|
+
</tr>
|
52
37
|
<% end %>
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
) do %>
|
68
|
-
<%= column.total %>
|
38
|
+
</thead>
|
39
|
+
<tbody>
|
40
|
+
<% @data.each do |row| %>
|
41
|
+
<%= render Polaris::BaseComponent.new(**row_arguments(row)) do %>
|
42
|
+
<% columns.each_with_index do |column, index| %>
|
43
|
+
<%= render_cell(
|
44
|
+
first: index.zero?,
|
45
|
+
numeric: column.numeric,
|
46
|
+
tag: (index.zero? ? "th" : "td"),
|
47
|
+
scope: ("row" if index.zero?),
|
48
|
+
**column.system_arguments
|
49
|
+
) do %>
|
50
|
+
<%= column.call(row) %>
|
51
|
+
<% end %>
|
69
52
|
<% end %>
|
70
53
|
<% end %>
|
71
|
-
|
72
|
-
</
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
54
|
+
<% end %>
|
55
|
+
</tbody>
|
56
|
+
<% if @totals_in_footer %>
|
57
|
+
<tfoot>
|
58
|
+
<tr>
|
59
|
+
<% columns.each_with_index do |column, index| %>
|
60
|
+
<%= render_cell(
|
61
|
+
first: index.zero?,
|
62
|
+
numeric: column.numeric,
|
63
|
+
tag: (index.zero? ? "th" : "td"),
|
64
|
+
scope: ("row" if index.zero?),
|
65
|
+
total: true,
|
66
|
+
total_footer: true,
|
67
|
+
**column.system_arguments
|
68
|
+
) do %>
|
69
|
+
<%= column.total %>
|
70
|
+
<% end %>
|
71
|
+
<% end %>
|
72
|
+
</tr>
|
73
|
+
</tfoot>
|
74
|
+
<% end %>
|
75
|
+
</table>
|
79
76
|
</div>
|
77
|
+
<% if footer.present? %>
|
78
|
+
<div class="Polaris-DataTable__Footer">
|
79
|
+
<%= footer %>
|
80
|
+
</div>
|
81
|
+
<% end %>
|
80
82
|
<% end %>
|
81
83
|
<% end %>
|