polaris_view_components 0.13.6 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/app/assets/icons/polaris/AbandonedCartMajor.svg +1 -1
- data/app/assets/icons/polaris/AccessibilityMajor.svg +1 -1
- data/app/assets/icons/polaris/ActivitiesMajor.svg +1 -1
- data/app/assets/icons/polaris/AddCodeMajor.svg +1 -1
- data/app/assets/icons/polaris/AddImageMajor.svg +1 -1
- data/app/assets/icons/polaris/AddMajor.svg +1 -1
- data/app/assets/icons/polaris/AddNoteMajor.svg +1 -1
- data/app/assets/icons/polaris/AddProductMajor.svg +1 -1
- data/app/assets/icons/polaris/AdjustMinor.svg +1 -0
- data/app/assets/icons/polaris/AffiliateMajor.svg +1 -1
- data/app/assets/icons/polaris/AlertMinor.svg +1 -1
- data/app/assets/icons/polaris/AnalyticsBarHorizontalMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsBarStackedMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsCohortMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsDonutMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsFunnelMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsLineMinor.svg +1 -0
- data/app/assets/icons/polaris/AnalyticsMajor.svg +1 -1
- data/app/assets/icons/polaris/AnalyticsMinor.svg +1 -1
- data/app/assets/icons/polaris/AnalyticsTableMinor.svg +1 -0
- data/app/assets/icons/polaris/AnyClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/AppExtensionMinor.svg +1 -1
- data/app/assets/icons/polaris/AppsMajor.svg +1 -1
- data/app/assets/icons/polaris/AppsMinor.svg +1 -1
- data/app/assets/icons/polaris/ArchiveMajor.svg +1 -1
- data/app/assets/icons/polaris/ArchiveMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowDownMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowLeftMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowRightMinor.svg +1 -1
- data/app/assets/icons/polaris/ArrowUpMinor.svg +1 -1
- data/app/assets/icons/polaris/AttachmentMajor.svg +1 -1
- data/app/assets/icons/polaris/AutomationMajor.svg +1 -1
- data/app/assets/icons/polaris/BackspaceMajor.svg +1 -1
- data/app/assets/icons/polaris/BalanceMajor.svg +1 -1
- data/app/assets/icons/polaris/BankMajor.svg +1 -1
- data/app/assets/icons/polaris/BarcodeMajor.svg +1 -1
- data/app/assets/icons/polaris/BehaviorMajor.svg +1 -1
- data/app/assets/icons/polaris/BehaviorMinor.svg +1 -0
- data/app/assets/icons/polaris/BillingStatementDollarMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementEuroMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementPoundMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementRupeeMajor.svg +1 -1
- data/app/assets/icons/polaris/BillingStatementYenMajor.svg +1 -1
- data/app/assets/icons/polaris/BlockMinor.svg +1 -1
- data/app/assets/icons/polaris/BlockquoteMajor.svg +1 -1
- data/app/assets/icons/polaris/BlogMajor.svg +1 -1
- data/app/assets/icons/polaris/BugMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonCornerPillMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonCornerRoundedMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonCornerSquareMajor.svg +1 -1
- data/app/assets/icons/polaris/ButtonMinor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonButtonLayoutMajor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonHorizontalLayoutMajor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonMajor.svg +1 -1
- data/app/assets/icons/polaris/BuyButtonVerticalLayoutMajor.svg +1 -1
- data/app/assets/icons/polaris/CalendarMajor.svg +1 -1
- data/app/assets/icons/polaris/CalendarMinor.svg +1 -1
- data/app/assets/icons/polaris/CalendarTickMajor.svg +1 -1
- data/app/assets/icons/polaris/CalendarTimeMinor.svg +1 -0
- data/app/assets/icons/polaris/CameraMajor.svg +1 -1
- data/app/assets/icons/polaris/CancelMajor.svg +1 -0
- data/app/assets/icons/polaris/CancelMinor.svg +1 -0
- data/app/assets/icons/polaris/CancelSmallMinor.svg +1 -1
- data/app/assets/icons/polaris/CapitalMajor.svg +1 -1
- data/app/assets/icons/polaris/CapturePaymentMinor.svg +1 -1
- data/app/assets/icons/polaris/CardReaderChipMajor.svg +1 -1
- data/app/assets/icons/polaris/CardReaderMajor.svg +1 -1
- data/app/assets/icons/polaris/CardReaderTapMajor.svg +1 -1
- data/app/assets/icons/polaris/CaretDownMinor.svg +1 -1
- data/app/assets/icons/polaris/CaretUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CartDownMajor.svg +1 -1
- data/app/assets/icons/polaris/CartMajor.svg +1 -1
- data/app/assets/icons/polaris/CartUpMajor.svg +1 -1
- data/app/assets/icons/polaris/CashDollarMajor.svg +1 -1
- data/app/assets/icons/polaris/CashDollarMinor.svg +1 -0
- data/app/assets/icons/polaris/CashEuroMajor.svg +1 -1
- data/app/assets/icons/polaris/CashPoundMajor.svg +1 -1
- data/app/assets/icons/polaris/CashRupeeMajor.svg +1 -1
- data/app/assets/icons/polaris/CashYenMajor.svg +1 -1
- data/app/assets/icons/polaris/CategoriesMajor.svg +1 -1
- data/app/assets/icons/polaris/ChannelsMajor.svg +1 -1
- data/app/assets/icons/polaris/ChatMajor.svg +1 -1
- data/app/assets/icons/polaris/ChecklistAlternateMajor.svg +1 -1
- data/app/assets/icons/polaris/ChecklistMajor.svg +1 -1
- data/app/assets/icons/polaris/CheckoutMajor.svg +1 -1
- data/app/assets/icons/polaris/ChevronDownMinor.svg +1 -1
- data/app/assets/icons/polaris/ChevronLeftMinor.svg +1 -1
- data/app/assets/icons/polaris/ChevronRightMinor.svg +1 -1
- data/app/assets/icons/polaris/ChevronUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleAlertMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleCancelMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleCancelMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronDownMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronLeftMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronRightMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleChevronUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleDisableMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleDisabledMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleDotsMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleDownMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleInformationMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleLeftMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleMinusMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleMinusOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/CirclePlusMajor.svg +1 -1
- data/app/assets/icons/polaris/CirclePlusMinor.svg +1 -1
- data/app/assets/icons/polaris/CirclePlusOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleRightMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickMajor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleUpMajor.svg +1 -1
- data/app/assets/icons/polaris/ClipboardMinor.svg +1 -1
- data/app/assets/icons/polaris/ClockMajor.svg +1 -1
- data/app/assets/icons/polaris/ClockMinor.svg +1 -1
- data/app/assets/icons/polaris/CodeMajor.svg +1 -1
- data/app/assets/icons/polaris/CodeMinor.svg +1 -0
- data/app/assets/icons/polaris/CollectionReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/CollectionsMajor.svg +1 -1
- data/app/assets/icons/polaris/ColorNoneMinor.svg +1 -1
- data/app/assets/icons/polaris/ColorsMajor.svg +1 -1
- data/app/assets/icons/polaris/Column1Major.svg +1 -1
- data/app/assets/icons/polaris/ColumnWithTextMajor.svg +1 -1
- data/app/assets/icons/polaris/Columns2Major.svg +1 -1
- data/app/assets/icons/polaris/Columns3Major.svg +1 -1
- data/app/assets/icons/polaris/Columns3Minor.svg +1 -1
- data/app/assets/icons/polaris/ComposeMajor.svg +1 -1
- data/app/assets/icons/polaris/ConfettiMajor.svg +1 -1
- data/app/assets/icons/polaris/ConnectMinor.svg +1 -1
- data/app/assets/icons/polaris/ContentMinor.svg +1 -0
- data/app/assets/icons/polaris/ConversationMinor.svg +1 -1
- data/app/assets/icons/polaris/CreditCardCancelMajor.svg +1 -0
- data/app/assets/icons/polaris/CreditCardMajor.svg +1 -1
- data/app/assets/icons/polaris/CreditCardPercentMajor.svg +1 -1
- data/app/assets/icons/polaris/CreditCardSecureMajor.svg +1 -1
- data/app/assets/icons/polaris/CurrencyConvertMinor.svg +1 -1
- data/app/assets/icons/polaris/CustomerMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/CustomerPlusMajor.svg +1 -1
- data/app/assets/icons/polaris/CustomersMajor.svg +1 -1
- data/app/assets/icons/polaris/CustomersMinor.svg +1 -1
- data/app/assets/icons/polaris/DataDrivenModelMinor.svg +1 -0
- data/app/assets/icons/polaris/DataVisualizationMajor.svg +1 -1
- data/app/assets/icons/polaris/DecimalMinor.svg +1 -0
- data/app/assets/icons/polaris/DeleteMajor.svg +1 -1
- data/app/assets/icons/polaris/DeleteMinor.svg +1 -1
- data/app/assets/icons/polaris/DesktopMajor.svg +1 -1
- data/app/assets/icons/polaris/DetailedPopUpMajor.svg +1 -1
- data/app/assets/icons/polaris/DiamondAlertMajor.svg +1 -1
- data/app/assets/icons/polaris/DiamondAlertMinor.svg +1 -0
- data/app/assets/icons/polaris/DigitalMediaReceiverMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountAutomaticMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountCodeMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountsMajor.svg +1 -1
- data/app/assets/icons/polaris/DiscountsMinor.svg +1 -1
- data/app/assets/icons/polaris/DisputeMinor.svg +1 -1
- data/app/assets/icons/polaris/DnsSettingsMajor.svg +1 -1
- data/app/assets/icons/polaris/DockFloatingMajor.svg +1 -0
- data/app/assets/icons/polaris/DockSideMajor.svg +1 -0
- data/app/assets/icons/polaris/DomainNewMajor.svg +1 -1
- data/app/assets/icons/polaris/DomainRedirectMinor.svg +1 -0
- data/app/assets/icons/polaris/DomainsMajor.svg +1 -1
- data/app/assets/icons/polaris/DraftOrdersMajor.svg +1 -1
- data/app/assets/icons/polaris/DragDropMajor.svg +1 -1
- data/app/assets/icons/polaris/DragHandleMinor.svg +1 -1
- data/app/assets/icons/polaris/DropdownMinor.svg +1 -1
- data/app/assets/icons/polaris/DuplicateMinor.svg +1 -1
- data/app/assets/icons/polaris/DynamicSourceMajor.svg +1 -0
- data/app/assets/icons/polaris/DynamicSourceMinor.svg +1 -0
- data/app/assets/icons/polaris/EditMajor.svg +1 -1
- data/app/assets/icons/polaris/EditMinor.svg +1 -1
- data/app/assets/icons/polaris/EmailMajor.svg +1 -1
- data/app/assets/icons/polaris/EmailNewsletterMajor.svg +1 -1
- data/app/assets/icons/polaris/EmbedMinor.svg +1 -1
- data/app/assets/icons/polaris/EnableSelectionMinor.svg +1 -1
- data/app/assets/icons/polaris/EnterMajor.svg +1 -0
- data/app/assets/icons/polaris/EnvelopeMajor.svg +1 -1
- data/app/assets/icons/polaris/ExchangeMajor.svg +1 -1
- data/app/assets/icons/polaris/ExistingInventoryMajor.svg +1 -1
- data/app/assets/icons/polaris/ExitMajor.svg +1 -1
- data/app/assets/icons/polaris/ExploreImagesMajor.svg +1 -0
- data/app/assets/icons/polaris/ExportMinor.svg +1 -1
- data/app/assets/icons/polaris/ExtendMajor.svg +1 -0
- data/app/assets/icons/polaris/ExtendMinor.svg +1 -0
- data/app/assets/icons/polaris/ExternalMinor.svg +1 -1
- data/app/assets/icons/polaris/ExternalSmallMinor.svg +1 -1
- data/app/assets/icons/polaris/EyeDropperMinor.svg +1 -0
- data/app/assets/icons/polaris/FaviconMajor.svg +1 -1
- data/app/assets/icons/polaris/FavoriteMajor.svg +1 -1
- data/app/assets/icons/polaris/FeaturedCollectionMajor.svg +1 -1
- data/app/assets/icons/polaris/FeaturedContentMajor.svg +1 -1
- data/app/assets/icons/polaris/FileMinor.svg +1 -0
- data/app/assets/icons/polaris/FilterMajor.svg +1 -1
- data/app/assets/icons/polaris/FilterMinor.svg +1 -0
- data/app/assets/icons/polaris/FinancesMajor.svg +1 -1
- data/app/assets/icons/polaris/FinancesMinor.svg +1 -1
- data/app/assets/icons/polaris/FirstClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/FirstOrderMajor.svg +1 -1
- data/app/assets/icons/polaris/FirstVisitMajor.svg +1 -1
- data/app/assets/icons/polaris/FlagMajor.svg +1 -1
- data/app/assets/icons/polaris/FlipCameraMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderDownMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderPlusMajor.svg +1 -1
- data/app/assets/icons/polaris/FolderUpMajor.svg +1 -1
- data/app/assets/icons/polaris/FollowUpEmailMajor.svg +1 -1
- data/app/assets/icons/polaris/FoodMajor.svg +1 -1
- data/app/assets/icons/polaris/FooterMajor.svg +1 -1
- data/app/assets/icons/polaris/FormsMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectMinor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectPendingMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectPendingMinor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectUnprotectedMajor.svg +1 -1
- data/app/assets/icons/polaris/FraudProtectUnprotectedMinor.svg +1 -1
- data/app/assets/icons/polaris/FulfillmentFulfilledMajor.svg +1 -0
- data/app/assets/icons/polaris/FulfillmentOnHoldMajor.svg +1 -0
- data/app/assets/icons/polaris/GamesConsoleMajor.svg +1 -1
- data/app/assets/icons/polaris/GiftCardMajor.svg +1 -1
- data/app/assets/icons/polaris/GiftCardMinor.svg +1 -1
- data/app/assets/icons/polaris/GlobeMajor.svg +1 -1
- data/app/assets/icons/polaris/GlobeMinor.svg +1 -1
- data/app/assets/icons/polaris/GrammarMajor.svg +1 -1
- data/app/assets/icons/polaris/HashtagMajor.svg +1 -1
- data/app/assets/icons/polaris/HashtagMinor.svg +1 -0
- data/app/assets/icons/polaris/HeaderMajor.svg +1 -1
- data/app/assets/icons/polaris/HeartMajor.svg +1 -1
- data/app/assets/icons/polaris/HideKeyboardMajor.svg +1 -1
- data/app/assets/icons/polaris/HideMinor.svg +1 -1
- data/app/assets/icons/polaris/HintMajor.svg +1 -1
- data/app/assets/icons/polaris/HomeMajor.svg +1 -1
- data/app/assets/icons/polaris/HomeMinor.svg +1 -1
- data/app/assets/icons/polaris/HorizontalDotsMinor.svg +1 -1
- data/app/assets/icons/polaris/IconsMajor.svg +1 -1
- data/app/assets/icons/polaris/IdentityCardMajor.svg +1 -0
- data/app/assets/icons/polaris/IllustrationMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageAltMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageAltMinor.svg +1 -1
- data/app/assets/icons/polaris/ImageMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageWithTextMajor.svg +1 -1
- data/app/assets/icons/polaris/ImageWithTextOverlayMajor.svg +1 -1
- data/app/assets/icons/polaris/ImagesMajor.svg +1 -1
- data/app/assets/icons/polaris/ImportMinor.svg +1 -1
- data/app/assets/icons/polaris/ImportStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/InactiveLocationMajor.svg +1 -0
- data/app/assets/icons/polaris/InactiveLocationMinor.svg +1 -0
- data/app/assets/icons/polaris/IncomingMajor.svg +1 -1
- data/app/assets/icons/polaris/InsertDynamicSourceMajor.svg +1 -0
- data/app/assets/icons/polaris/InsertDynamicSourceMinor.svg +1 -0
- data/app/assets/icons/polaris/InstallMinor.svg +1 -1
- data/app/assets/icons/polaris/InventoryMajor.svg +1 -1
- data/app/assets/icons/polaris/InviteMinor.svg +1 -1
- data/app/assets/icons/polaris/IqMajor.svg +1 -1
- data/app/assets/icons/polaris/JobsMajor.svg +1 -1
- data/app/assets/icons/polaris/KeyMajor.svg +1 -1
- data/app/assets/icons/polaris/KeyboardMajor.svg +1 -0
- data/app/assets/icons/polaris/KeyboardMinor.svg +1 -0
- data/app/assets/icons/polaris/LabelPrinterMajor.svg +1 -1
- data/app/assets/icons/polaris/LandingPageMajor.svg +1 -1
- data/app/assets/icons/polaris/LanguageMinor.svg +1 -1
- data/app/assets/icons/polaris/LastClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/LastNonDirectClickModelMinor.svg +1 -0
- data/app/assets/icons/polaris/LegalMajor.svg +1 -1
- data/app/assets/icons/polaris/LinearModelMinor.svg +1 -0
- data/app/assets/icons/polaris/LinkMinor.svg +1 -1
- data/app/assets/icons/polaris/ListMajor.svg +1 -1
- data/app/assets/icons/polaris/ListMinor.svg +1 -0
- data/app/assets/icons/polaris/LiveViewMajor.svg +1 -1
- data/app/assets/icons/polaris/LocationMajor.svg +1 -1
- data/app/assets/icons/polaris/LocationsMinor.svg +1 -1
- data/app/assets/icons/polaris/LockMajor.svg +1 -1
- data/app/assets/icons/polaris/LockMinor.svg +1 -1
- data/app/assets/icons/polaris/LogOutMinor.svg +1 -1
- data/app/assets/icons/polaris/LogoBlockMajor.svg +1 -1
- data/app/assets/icons/polaris/MagicMajor.svg +1 -0
- data/app/assets/icons/polaris/MagicMinor.svg +1 -0
- data/app/assets/icons/polaris/ManagedStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/MarkFulfilledMinor.svg +1 -1
- data/app/assets/icons/polaris/MarkPaidMinor.svg +1 -1
- data/app/assets/icons/polaris/MarketingMajor.svg +1 -1
- data/app/assets/icons/polaris/MarketingMinor.svg +1 -1
- data/app/assets/icons/polaris/MarketsMajor.svg +1 -0
- data/app/assets/icons/polaris/MaximizeMajor.svg +1 -1
- data/app/assets/icons/polaris/MaximizeMinor.svg +1 -1
- data/app/assets/icons/polaris/MeasurementMinor.svg +1 -0
- data/app/assets/icons/polaris/MentionMajor.svg +1 -1
- data/app/assets/icons/polaris/MergeMinor.svg +1 -0
- data/app/assets/icons/polaris/MetafieldsMajor.svg +1 -0
- data/app/assets/icons/polaris/MetafieldsMinor.svg +1 -0
- data/app/assets/icons/polaris/MetaobjectMinor.svg +1 -0
- data/app/assets/icons/polaris/MetaobjectReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/MicrophoneMajor.svg +1 -1
- data/app/assets/icons/polaris/MinimizeMajor.svg +1 -1
- data/app/assets/icons/polaris/MinimizeMinor.svg +1 -1
- data/app/assets/icons/polaris/MinusMajor.svg +1 -0
- data/app/assets/icons/polaris/MinusMinor.svg +1 -1
- data/app/assets/icons/polaris/MobileAcceptMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileBackArrowMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileCancelMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileChevronMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileHamburgerMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileHorizontalDotsMajor.svg +1 -1
- data/app/assets/icons/polaris/MobileMajor.svg +1 -1
- data/app/assets/icons/polaris/MobilePlusMajor.svg +1 -1
- data/app/assets/icons/polaris/MonerisMajor.svg +1 -1
- data/app/assets/icons/polaris/MoneyMinor.svg +1 -0
- data/app/assets/icons/polaris/NavigationMajor.svg +1 -1
- data/app/assets/icons/polaris/NoteMajor.svg +1 -1
- data/app/assets/icons/polaris/NoteMinor.svg +1 -1
- data/app/assets/icons/polaris/NotificationMajor.svg +1 -1
- data/app/assets/icons/polaris/OnlineStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/OnlineStoreMinor.svg +1 -1
- data/app/assets/icons/polaris/OrderStatusMinor.svg +1 -1
- data/app/assets/icons/polaris/OrdersMajor.svg +1 -1
- data/app/assets/icons/polaris/OrdersMinor.svg +1 -1
- data/app/assets/icons/polaris/OrganizationMajor.svg +1 -0
- data/app/assets/icons/polaris/OutgoingMajor.svg +1 -1
- data/app/assets/icons/polaris/PackageMajor.svg +1 -1
- data/app/assets/icons/polaris/PageDownMajor.svg +1 -1
- data/app/assets/icons/polaris/PageMajor.svg +1 -1
- data/app/assets/icons/polaris/PageMinusMajor.svg +1 -1
- data/app/assets/icons/polaris/PagePlusMajor.svg +1 -1
- data/app/assets/icons/polaris/PageReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/PageUpMajor.svg +1 -1
- data/app/assets/icons/polaris/PaginationEndMinor.svg +1 -1
- data/app/assets/icons/polaris/PaginationStartMinor.svg +1 -1
- data/app/assets/icons/polaris/PaintBrushMajor.svg +1 -1
- data/app/assets/icons/polaris/PaperCheckMajor.svg +1 -0
- data/app/assets/icons/polaris/PaperCheckMinor.svg +1 -0
- data/app/assets/icons/polaris/PasskeyMajor.svg +1 -0
- data/app/assets/icons/polaris/PasskeyMinor.svg +1 -0
- data/app/assets/icons/polaris/PauseCircleMajor.svg +1 -1
- data/app/assets/icons/polaris/PauseMajor.svg +1 -1
- data/app/assets/icons/polaris/PauseMinor.svg +1 -1
- data/app/assets/icons/polaris/PaymentsMajor.svg +1 -1
- data/app/assets/icons/polaris/PersonalizedTextMajor.svg +1 -0
- data/app/assets/icons/polaris/PhoneInMajor.svg +1 -1
- data/app/assets/icons/polaris/PhoneMajor.svg +1 -1
- data/app/assets/icons/polaris/PhoneOutMajor.svg +1 -1
- data/app/assets/icons/polaris/PinMajor.svg +1 -1
- data/app/assets/icons/polaris/PinMinor.svg +1 -1
- data/app/assets/icons/polaris/PinUnfilledMajor.svg +1 -0
- data/app/assets/icons/polaris/PinUnfilledMinor.svg +1 -0
- data/app/assets/icons/polaris/PlanMajor.svg +1 -0
- data/app/assets/icons/polaris/PlanMinor.svg +1 -0
- data/app/assets/icons/polaris/PlayCircleMajor.svg +1 -1
- data/app/assets/icons/polaris/PlayMajor.svg +1 -1
- data/app/assets/icons/polaris/PlayMinor.svg +1 -1
- data/app/assets/icons/polaris/PlusMinor.svg +1 -1
- data/app/assets/icons/polaris/PointOfSaleMajor.svg +1 -1
- data/app/assets/icons/polaris/PopularMajor.svg +1 -1
- data/app/assets/icons/polaris/PositionBasedModelMinor.svg +1 -0
- data/app/assets/icons/polaris/PriceLookupMinor.svg +1 -1
- data/app/assets/icons/polaris/PrintMajor.svg +1 -1
- data/app/assets/icons/polaris/PrintMinor.svg +1 -1
- data/app/assets/icons/polaris/ProductCostMajor.svg +1 -0
- data/app/assets/icons/polaris/ProductReferenceMinor.svg +1 -0
- data/app/assets/icons/polaris/ProductReturnsMinor.svg +1 -1
- data/app/assets/icons/polaris/ProductsMajor.svg +1 -1
- data/app/assets/icons/polaris/ProductsMinor.svg +1 -1
- data/app/assets/icons/polaris/ProfileMajor.svg +1 -1
- data/app/assets/icons/polaris/PromoteMinor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkInverseMajor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkInverseMinor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkMajor.svg +1 -1
- data/app/assets/icons/polaris/QuestionMarkMinor.svg +1 -1
- data/app/assets/icons/polaris/QuickSaleMajor.svg +1 -1
- data/app/assets/icons/polaris/ReadTimeMinor.svg +1 -1
- data/app/assets/icons/polaris/ReceiptMajor.svg +1 -1
- data/app/assets/icons/polaris/RecentSearchesMajor.svg +1 -1
- data/app/assets/icons/polaris/RedoMajor.svg +1 -1
- data/app/assets/icons/polaris/ReferralCodeMajor.svg +1 -1
- data/app/assets/icons/polaris/ReferralMajor.svg +1 -1
- data/app/assets/icons/polaris/RefreshMajor.svg +1 -1
- data/app/assets/icons/polaris/RefreshMinor.svg +1 -1
- data/app/assets/icons/polaris/RefundMajor.svg +1 -1
- data/app/assets/icons/polaris/RefundMinor.svg +1 -1
- data/app/assets/icons/polaris/RemoveProductMajor.svg +1 -1
- data/app/assets/icons/polaris/RepeatOrderMajor.svg +1 -1
- data/app/assets/icons/polaris/ReplaceMajor.svg +1 -1
- data/app/assets/icons/polaris/ReplayMinor.svg +1 -1
- data/app/assets/icons/polaris/ReportMinor.svg +1 -1
- data/app/assets/icons/polaris/ReportsMajor.svg +1 -1
- data/app/assets/icons/polaris/ResetMinor.svg +1 -1
- data/app/assets/icons/polaris/ResourcesMajor.svg +1 -1
- data/app/assets/icons/polaris/ReturnMinor.svg +1 -1
- data/app/assets/icons/polaris/ReturnsMajor.svg +1 -0
- data/app/assets/icons/polaris/RichTextMinor.svg +1 -0
- data/app/assets/icons/polaris/RiskMajor.svg +1 -1
- data/app/assets/icons/polaris/RiskMinor.svg +1 -1
- data/app/assets/icons/polaris/Rows2Major.svg +1 -0
- data/app/assets/icons/polaris/SandboxMajor.svg +1 -1
- data/app/assets/icons/polaris/SaveMinor.svg +1 -1
- data/app/assets/icons/polaris/SearchMajor.svg +1 -1
- data/app/assets/icons/polaris/SearchMinor.svg +1 -1
- data/app/assets/icons/polaris/SectionMajor.svg +1 -1
- data/app/assets/icons/polaris/SecureMajor.svg +1 -1
- data/app/assets/icons/polaris/SelectMinor.svg +1 -1
- data/app/assets/icons/polaris/SendMajor.svg +1 -1
- data/app/assets/icons/polaris/SettingsMajor.svg +1 -1
- data/app/assets/icons/polaris/SettingsMinor.svg +1 -1
- data/app/assets/icons/polaris/ShareIosMinor.svg +1 -1
- data/app/assets/icons/polaris/ShareMinor.svg +1 -1
- data/app/assets/icons/polaris/ShipmentMajor.svg +1 -1
- data/app/assets/icons/polaris/ShopcodesMajor.svg +1 -1
- data/app/assets/icons/polaris/SidebarLeftMajor.svg +1 -1
- data/app/assets/icons/polaris/SidebarRightMajor.svg +1 -1
- data/app/assets/icons/polaris/SimplifyMajor.svg +1 -0
- data/app/assets/icons/polaris/SimplifyMinor.svg +1 -0
- data/app/assets/icons/polaris/SlideshowMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileyHappyMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileyJoyMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileyNeutralMajor.svg +1 -1
- data/app/assets/icons/polaris/SmileySadMajor.svg +1 -1
- data/app/assets/icons/polaris/SocialAdMajor.svg +1 -1
- data/app/assets/icons/polaris/SocialPostMajor.svg +1 -1
- data/app/assets/icons/polaris/SoftPackMajor.svg +1 -1
- data/app/assets/icons/polaris/SortAscendingMajor.svg +1 -1
- data/app/assets/icons/polaris/SortDescendingMajor.svg +1 -1
- data/app/assets/icons/polaris/SortMinor.svg +1 -1
- data/app/assets/icons/polaris/SoundMajor.svg +1 -1
- data/app/assets/icons/polaris/StarFilledMinor.svg +1 -1
- data/app/assets/icons/polaris/StarOutlineMinor.svg +1 -1
- data/app/assets/icons/polaris/StatusActiveMajor.svg +1 -0
- data/app/assets/icons/polaris/StoreMajor.svg +1 -1
- data/app/assets/icons/polaris/StoreMinor.svg +1 -1
- data/app/assets/icons/polaris/StoreStatusMajor.svg +1 -1
- data/app/assets/icons/polaris/TabletMajor.svg +1 -1
- data/app/assets/icons/polaris/TapChipMajor.svg +1 -1
- data/app/assets/icons/polaris/TaxMajor.svg +1 -1
- data/app/assets/icons/polaris/TeamMajor.svg +1 -1
- data/app/assets/icons/polaris/TemplateMajor.svg +1 -1
- data/app/assets/icons/polaris/TemplateMinor.svg +1 -0
- data/app/assets/icons/polaris/TextAlignmentCenterMajor.svg +1 -1
- data/app/assets/icons/polaris/TextAlignmentLeftMajor.svg +1 -1
- data/app/assets/icons/polaris/TextAlignmentRightMajor.svg +1 -1
- data/app/assets/icons/polaris/TextBlockMajor.svg +1 -1
- data/app/assets/icons/polaris/TextMajor.svg +1 -1
- data/app/assets/icons/polaris/ThemeEditMajor.svg +1 -1
- data/app/assets/icons/polaris/ThemeStoreMajor.svg +1 -1
- data/app/assets/icons/polaris/ThemesMajor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsDownMajor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsDownMinor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsUpMajor.svg +1 -1
- data/app/assets/icons/polaris/ThumbsUpMinor.svg +1 -1
- data/app/assets/icons/polaris/TickSmallMinor.svg +1 -1
- data/app/assets/icons/polaris/TimeDecayModelMinor.svg +1 -0
- data/app/assets/icons/polaris/TimelineAttachmentMajor.svg +1 -1
- data/app/assets/icons/polaris/TipsMajor.svg +1 -1
- data/app/assets/icons/polaris/TitleMinor.svg +1 -1
- data/app/assets/icons/polaris/ToggleMinor.svg +1 -0
- data/app/assets/icons/polaris/ToolsMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeDollarMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeEuroMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeePoundMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeRupeeMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionFeeYenMajor.svg +1 -1
- data/app/assets/icons/polaris/TransactionMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferInMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferOutMajor.svg +1 -1
- data/app/assets/icons/polaris/TransferWithinShopifyMajor.svg +1 -1
- data/app/assets/icons/polaris/TransportMajor.svg +1 -1
- data/app/assets/icons/polaris/TroubleshootMajor.svg +1 -1
- data/app/assets/icons/polaris/TypeMajor.svg +1 -1
- data/app/assets/icons/polaris/TypeMinor.svg +1 -0
- data/app/assets/icons/polaris/UndoMajor.svg +1 -1
- data/app/assets/icons/polaris/UnfulfilledMajor.svg +1 -1
- data/app/assets/icons/polaris/UnknownDeviceMajor.svg +1 -1
- data/app/assets/icons/polaris/UpdateInventoryMajor.svg +1 -1
- data/app/assets/icons/polaris/UploadMajor.svg +1 -1
- data/app/assets/icons/polaris/VariantMajor.svg +1 -1
- data/app/assets/icons/polaris/ViewMajor.svg +1 -1
- data/app/assets/icons/polaris/ViewMinor.svg +1 -1
- data/app/assets/icons/polaris/ViewportNarrowMajor.svg +1 -1
- data/app/assets/icons/polaris/ViewportShortMajor.svg +1 -0
- data/app/assets/icons/polaris/ViewportTallMajor.svg +1 -0
- data/app/assets/icons/polaris/ViewportWideMajor.svg +1 -1
- data/app/assets/icons/polaris/VocabularyMajor.svg +1 -1
- data/app/assets/icons/polaris/VolumeMinor.svg +1 -0
- data/app/assets/icons/polaris/WandMajor.svg +1 -1
- data/app/assets/icons/polaris/WandMinor.svg +1 -1
- data/app/assets/icons/polaris/WearableMajor.svg +1 -1
- data/app/assets/icons/polaris/WeightMinor.svg +1 -0
- data/app/assets/icons/polaris/WholesaleMajor.svg +1 -1
- data/app/assets/icons/polaris/WifiMajor.svg +1 -1
- data/app/assets/javascripts/polaris_view_components/data_table_controller.js +33 -0
- data/app/assets/javascripts/polaris_view_components/index.js +2 -0
- data/app/assets/javascripts/polaris_view_components/toast_controller.js +1 -1
- data/app/assets/javascripts/polaris_view_components.js +33 -5
- data/app/assets/stylesheets/polaris_view_components/{custom.css → custom.pcss} +67 -11
- data/app/assets/stylesheets/polaris_view_components/{shopify_navigation.css → shopify_navigation.pcss} +22 -26
- data/app/assets/stylesheets/polaris_view_components.css +2133 -1708
- data/app/assets/stylesheets/polaris_view_components.pcss +4 -0
- data/app/components/polaris/action_list/item_component.html.erb +9 -11
- data/app/components/polaris/action_list/section_component.html.erb +30 -6
- data/app/components/polaris/action_list/section_component.rb +7 -12
- data/app/components/polaris/action_list_component.html.erb +12 -8
- data/app/components/polaris/action_list_component.rb +5 -1
- data/app/components/polaris/autocomplete_component.html.erb +1 -1
- data/app/components/polaris/avatar_component.html.erb +1 -1
- data/app/components/polaris/avatar_component.rb +44 -12
- data/app/components/polaris/badge_component.html.erb +12 -4
- data/app/components/polaris/badge_component.rb +26 -0
- data/app/components/polaris/banner_component.html.erb +29 -24
- data/app/components/polaris/banner_component.rb +4 -2
- data/app/components/polaris/bleed_component.rb +73 -0
- data/app/components/polaris/box_component.rb +187 -0
- data/app/components/polaris/button_group_component.rb +3 -1
- data/app/components/polaris/callout_card_component.html.erb +3 -3
- data/app/components/polaris/callout_card_component.rb +2 -2
- data/app/components/polaris/caption_component.rb +1 -6
- data/app/components/polaris/card/header_component.html.erb +4 -4
- data/app/components/polaris/card/header_component.rb +1 -1
- data/app/components/polaris/card/section_component.html.erb +6 -6
- data/app/components/polaris/card/section_component.rb +7 -7
- data/app/components/polaris/card_component.html.erb +4 -4
- data/app/components/polaris/card_component.rb +4 -4
- data/app/components/polaris/choice_component.html.erb +3 -1
- data/app/components/polaris/choice_list_component.html.erb +17 -8
- data/app/components/polaris/choice_list_component.rb +2 -6
- data/app/components/polaris/component.rb +1 -0
- data/app/components/polaris/data_table/cell_component.rb +2 -0
- data/app/components/polaris/data_table_component.html.erb +66 -64
- data/app/components/polaris/data_table_component.rb +15 -0
- data/app/components/polaris/description_list_component.rb +3 -1
- data/app/components/polaris/display_text_component.rb +7 -11
- data/app/components/polaris/divider_component.rb +35 -0
- data/app/components/polaris/dropzone_component.html.erb +9 -9
- data/app/components/polaris/empty_state_component.html.erb +41 -36
- data/app/components/polaris/empty_state_component.rb +5 -13
- data/app/components/polaris/filters_component.rb +2 -2
- data/app/components/polaris/footer_help_component.html.erb +3 -9
- data/app/components/polaris/footer_help_component.rb +1 -0
- data/app/components/polaris/frame/save_bar_component.html.erb +9 -4
- data/app/components/polaris/heading_component.rb +2 -6
- data/app/components/polaris/horizontal_grid_component.rb +82 -0
- data/app/components/polaris/horizontal_stack_component.rb +64 -0
- data/app/components/polaris/inline_code_component.rb +16 -0
- data/app/components/polaris/inline_component.rb +44 -0
- data/app/components/polaris/inline_error_component.html.erb +1 -1
- data/app/components/polaris/labelled_component.html.erb +3 -1
- data/app/components/polaris/labelled_component.rb +1 -1
- data/app/components/polaris/layout/annotated_section.html.erb +3 -2
- data/app/components/polaris/layout/annotated_section.rb +1 -0
- data/app/components/polaris/layout_component.html.erb +1 -1
- data/app/components/polaris/layout_component.rb +2 -0
- data/app/components/polaris/link_component.rb +1 -14
- data/app/components/polaris/list_component.rb +10 -1
- data/app/components/polaris/modal/section_component.rb +5 -1
- data/app/components/polaris/modal_component.html.erb +50 -30
- data/app/components/polaris/modal_component.rb +0 -4
- data/app/components/polaris/navigation/item_component.html.erb +21 -13
- data/app/components/polaris/navigation/item_component.rb +8 -6
- data/app/components/polaris/navigation/section_component.html.erb +2 -2
- data/app/components/polaris/option_list/section_component.html.erb +26 -10
- data/app/components/polaris/option_list/section_component.rb +2 -4
- data/app/components/polaris/option_list_component.html.erb +5 -2
- data/app/components/polaris/option_list_component.rb +9 -9
- data/app/components/polaris/page_actions_component.html.erb +4 -4
- data/app/components/polaris/page_actions_component.rb +1 -21
- data/app/components/polaris/page_component.html.erb +91 -88
- data/app/components/polaris/page_component.rb +24 -10
- data/app/components/polaris/pagination_component.html.erb +5 -5
- data/app/components/polaris/placeholder_component.rb +37 -0
- data/app/components/polaris/popover/pane_component.html.erb +1 -1
- data/app/components/polaris/popover/pane_component.rb +22 -5
- data/app/components/polaris/popover/section_component.rb +5 -1
- data/app/components/polaris/popover_component.html.erb +20 -13
- data/app/components/polaris/popover_component.rb +5 -1
- data/app/components/polaris/progress_bar_component.html.erb +2 -5
- data/app/components/polaris/progress_bar_component.rb +13 -0
- data/app/components/polaris/resource_item/shortcut_actions_component.html.erb +3 -3
- data/app/components/polaris/resource_item_component.html.erb +42 -19
- data/app/components/polaris/resource_item_component.rb +8 -25
- data/app/components/polaris/select_component.html.erb +5 -3
- data/app/components/polaris/skeleton_body_text_component.html.erb +2 -4
- data/app/components/polaris/skeleton_body_text_component.rb +1 -7
- data/app/components/polaris/skeleton_page_component.html.erb +58 -20
- data/app/components/polaris/skeleton_page_component.rb +21 -6
- data/app/components/polaris/spinner_component.html.erb +12 -6
- data/app/components/polaris/spinner_component.rb +26 -0
- data/app/components/polaris/stack/item_component.rb +2 -2
- data/app/components/polaris/stack_component.rb +20 -20
- data/app/components/polaris/subheading_component.rb +2 -6
- data/app/components/polaris/tabs/tab_component.html.erb +2 -2
- data/app/components/polaris/tabs/tab_component.rb +2 -2
- data/app/components/polaris/tabs_component.html.erb +7 -1
- data/app/components/polaris/tabs_component.rb +3 -3
- data/app/components/polaris/text_component.html.erb +3 -0
- data/app/components/polaris/text_component.rb +132 -0
- data/app/components/polaris/text_field_component.rb +4 -0
- data/app/components/polaris/text_style_component.rb +25 -21
- data/app/components/polaris/thumbnail_component.html.erb +1 -1
- data/app/components/polaris/thumbnail_component.rb +24 -9
- data/app/components/polaris/toast_component.html.erb +1 -1
- data/app/components/polaris/tokens/border.rb +9 -0
- data/app/components/polaris/tokens/color.rb +132 -0
- data/app/components/polaris/tokens/shadow.rb +18 -0
- data/app/components/polaris/tokens/spacing.rb +27 -0
- data/app/components/polaris/tokens.rb +4 -0
- data/app/components/polaris/top_bar/user_menu_component.html.erb +20 -5
- data/app/components/polaris/vertical_stack_component.rb +70 -0
- data/app/components/polaris/visually_hidden_component.rb +1 -1
- data/app/helpers/polaris/fetch_or_fallback_helper.rb +13 -1
- data/app/helpers/polaris/form_builder.rb +1 -1
- data/app/helpers/polaris/styles_list_helper.rb +22 -0
- data/app/helpers/polaris/view_helper.rb +15 -4
- data/lib/install/install.rb +6 -1
- data/lib/polaris/view_components/codemods/v3_slot_setters.rb +222 -0
- data/lib/polaris/view_components/engine.rb +0 -3
- data/lib/polaris/view_components/version.rb +1 -1
- data/lib/tasks/polaris_view_components_tasks.rake +14 -0
- metadata +117 -11
- data/app/assets/stylesheets/polaris_view_components.postcss.css +0 -4
- /data/app/assets/stylesheets/polaris_view_components/{spacer_component.css → spacer_component.pcss} +0 -0
@@ -5,13 +5,6 @@ module Polaris
|
|
5
5
|
CURSOR_DEFAULT = :default
|
6
6
|
CURSOR_OPTIONS = %i[default pointer]
|
7
7
|
|
8
|
-
ALIGNMENT_DEFAULT = :default
|
9
|
-
ALIGNMENT_MAPPINGS = {
|
10
|
-
ALIGNMENT_DEFAULT => "",
|
11
|
-
:center => "Polaris-ResourceItem--alignmentCenter"
|
12
|
-
}
|
13
|
-
ALIGNMENT_OPTIONS = ALIGNMENT_MAPPINGS.keys
|
14
|
-
|
15
8
|
renders_one :checkbox, ->(**system_arguments) do
|
16
9
|
Polaris::CheckboxComponent.new(
|
17
10
|
label_hidden: true,
|
@@ -35,7 +28,7 @@ module Polaris
|
|
35
28
|
|
36
29
|
def initialize(
|
37
30
|
url: nil,
|
38
|
-
vertical_alignment:
|
31
|
+
vertical_alignment: nil,
|
39
32
|
cursor: CURSOR_DEFAULT,
|
40
33
|
selectable: false,
|
41
34
|
selected: false,
|
@@ -71,14 +64,15 @@ module Polaris
|
|
71
64
|
end
|
72
65
|
|
73
66
|
def container_arguments
|
74
|
-
|
75
|
-
tag: "div"
|
76
|
-
}.deep_merge(@container_arguments).tap do |args|
|
67
|
+
@container_arguments.tap do |args|
|
77
68
|
args[:classes] = class_names(
|
78
|
-
args[:classes]
|
79
|
-
"Polaris-ResourceItem__Container",
|
80
|
-
ALIGNMENT_MAPPINGS[fetch_or_fallback(ALIGNMENT_OPTIONS, @vertical_alignment, ALIGNMENT_DEFAULT)]
|
69
|
+
args[:classes]
|
81
70
|
)
|
71
|
+
args[:position] = :relative
|
72
|
+
args[:padding] = "3"
|
73
|
+
args[:padding_inline_start] = {xs: "4", sm: "5"}
|
74
|
+
args[:padding_inline_end] = {xs: "4", sm: "5"}
|
75
|
+
args[:z_index] = "var(--pc-resource-item-content-stacking-order)"
|
82
76
|
end
|
83
77
|
end
|
84
78
|
|
@@ -103,17 +97,6 @@ module Polaris
|
|
103
97
|
checkbox.present? || radio_button.present? || media.present?
|
104
98
|
end
|
105
99
|
|
106
|
-
def owned_arguments
|
107
|
-
{
|
108
|
-
tag: "div",
|
109
|
-
classes: class_names(
|
110
|
-
"Polaris-ResourceItem__Owned",
|
111
|
-
"Polaris-ResourceItem__OwnedNoMedia": media.blank?,
|
112
|
-
"Polaris-ResourceItem__Owned--offset": @offset
|
113
|
-
)
|
114
|
-
}
|
115
|
-
end
|
116
|
-
|
117
100
|
private
|
118
101
|
|
119
102
|
def cursor
|
@@ -21,9 +21,11 @@
|
|
21
21
|
<% if @disabled %>aria-disabled="true"<% end %>
|
22
22
|
>
|
23
23
|
<% if @label_inline %>
|
24
|
-
|
25
|
-
<%=
|
26
|
-
|
24
|
+
<%= polaris_box(padding_inline_end: "1") do %>
|
25
|
+
<%= polaris_text(as: :span, color: :subdued, truncate: true) do %>
|
26
|
+
<%= @label %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
27
29
|
<% end %>
|
28
30
|
<span
|
29
31
|
class="Polaris-Select__SelectedOption"
|
@@ -2,14 +2,8 @@
|
|
2
2
|
|
3
3
|
module Polaris
|
4
4
|
class SkeletonBodyTextComponent < Polaris::Component
|
5
|
-
def initialize(lines: 3
|
5
|
+
def initialize(lines: 3)
|
6
6
|
@lines = lines
|
7
|
-
@system_arguments = system_arguments
|
8
|
-
@system_arguments[:tag] = "div"
|
9
|
-
@system_arguments[:classes] = class_names(
|
10
|
-
@system_arguments[:classes],
|
11
|
-
"Polaris-SkeletonBodyText__SkeletonBodyTextContainer"
|
12
|
-
)
|
13
7
|
end
|
14
8
|
end
|
15
9
|
end
|
@@ -1,23 +1,61 @@
|
|
1
|
-
<%=
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
<%= polaris_vertical_stack(gap: "4", **system_arguments) do %>
|
2
|
+
<%= polaris_box(
|
3
|
+
with: "100%",
|
4
|
+
padding: "0",
|
5
|
+
padding_inline_start: {sm: "6"},
|
6
|
+
padding_inline_end: {sm: "6"},
|
7
|
+
max_width: page_width
|
8
|
+
) do %>
|
9
|
+
<%= polaris_vertical_stack do %>
|
10
|
+
<%= polaris_box(
|
11
|
+
padding_block_start: {xs: "4", md: "5"},
|
12
|
+
padding_block_end: {xs: "4", md: "5"},
|
13
|
+
padding_inline_start: {xs: "4", sm: "0"},
|
14
|
+
padding_inline_end: {xs: "4", sm: "0"},
|
15
|
+
width: "100%"
|
16
|
+
) do %>
|
17
|
+
<%= polaris_horizontal_stack(gap: "4", align: :space_between, block_align: :center) do %>
|
18
|
+
<%= polaris_horizontal_stack(gap: "4") do %>
|
19
|
+
<% if @back_action %>
|
20
|
+
<%= polaris_box(
|
21
|
+
border_radius: "1",
|
22
|
+
background: "bg-strong",
|
23
|
+
min_height: "2.25rem",
|
24
|
+
min_width: "2.25rem",
|
25
|
+
max_width: "2.25rem"
|
26
|
+
) %>
|
27
|
+
<% end %>
|
28
|
+
<%= polaris_box(padding_block_start: "1", padding_block_end: "1") do %>
|
29
|
+
<% if @title.present? %>
|
30
|
+
<h1 class="Polaris-SkeletonPage__Title">
|
31
|
+
<%= @title %>
|
32
|
+
</h1>
|
33
|
+
<% else %>
|
34
|
+
<div class="Polaris-SkeletonPage__SkeletonTitle">
|
35
|
+
<%= polaris_box(
|
36
|
+
border_radius: "1",
|
37
|
+
background: "bg-strong",
|
38
|
+
min_height: "28px",
|
39
|
+
min_width: "120px"
|
40
|
+
) %>
|
41
|
+
</div>
|
42
|
+
<% end %>
|
43
|
+
<% end %>
|
44
|
+
<% end %>
|
45
|
+
<% if @primary_action %>
|
46
|
+
<%= polaris_box(
|
47
|
+
id: "SkeletonPage-PrimaryAction",
|
48
|
+
border_radius: "1",
|
49
|
+
background: "bg-strong",
|
50
|
+
min_height: "2.25rem",
|
51
|
+
min_width: "6.25rem"
|
52
|
+
) %>
|
53
|
+
<% end %>
|
11
54
|
<% end %>
|
12
|
-
</div>
|
13
|
-
<% if @primary_action %>
|
14
|
-
<div class="Polaris-SkeletonPage__PrimaryAction">
|
15
|
-
<%= polaris_skeleton_display_text(size: :large) %>
|
16
|
-
</div>
|
17
55
|
<% end %>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
56
|
+
<%= polaris_box(padding_block_end: "2", width: "100%") do %>
|
57
|
+
<%= content %>
|
58
|
+
<% end %>
|
59
|
+
<% end %>
|
60
|
+
<% end %>
|
23
61
|
<% end %>
|
@@ -2,20 +2,35 @@
|
|
2
2
|
|
3
3
|
module Polaris
|
4
4
|
class SkeletonPageComponent < Polaris::Component
|
5
|
-
def initialize(
|
5
|
+
def initialize(
|
6
|
+
title: nil,
|
7
|
+
primary_action: false,
|
8
|
+
narrow_width: false,
|
9
|
+
full_width: false,
|
10
|
+
back_action: false,
|
11
|
+
**system_arguments
|
12
|
+
)
|
6
13
|
@title = title
|
7
14
|
@primary_action = primary_action
|
15
|
+
@narrow_width = narrow_width
|
16
|
+
@full_width = full_width
|
17
|
+
@back_action = back_action
|
8
18
|
@system_arguments = system_arguments
|
9
19
|
end
|
10
20
|
|
11
21
|
def system_arguments
|
12
22
|
@system_arguments.tap do |opts|
|
13
|
-
opts[:tag] = "div"
|
14
23
|
opts[:role] = "status"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def page_width
|
28
|
+
if @narrow_width
|
29
|
+
"var(--pc-skeleton-page-max-width-narrow)"
|
30
|
+
elsif @full_width
|
31
|
+
"none"
|
32
|
+
else
|
33
|
+
"var(--pc-skeleton-page-max-width)"
|
19
34
|
end
|
20
35
|
end
|
21
36
|
end
|
@@ -1,11 +1,17 @@
|
|
1
|
-
<%= render Polaris::BaseComponent.new(
|
2
|
-
<% if @size == :
|
3
|
-
<svg viewBox="0 0
|
4
|
-
<path d="
|
1
|
+
<%= render Polaris::BaseComponent.new(**@system_arguments) do %>
|
2
|
+
<% if @size == :large %>
|
3
|
+
<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg">
|
4
|
+
<path d="M15.542 1.487A21.507 21.507 0 00.5 22c0 11.874 9.626 21.5 21.5 21.5 9.847 0 18.364-6.675 20.809-16.072a1.5 1.5 0 00-2.904-.756C37.803 34.755 30.473 40.5 22 40.5 11.783 40.5 3.5 32.217 3.5 22c0-8.137 5.3-15.247 12.942-17.65a1.5 1.5 0 10-.9-2.863z" />
|
5
5
|
</svg>
|
6
6
|
<% else %>
|
7
|
-
<svg viewBox="0 0
|
8
|
-
<path d="
|
7
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
8
|
+
<path d="M7.229 1.173a9.25 9.25 0 1011.655 11.412 1.25 1.25 0 10-2.4-.698 6.75 6.75 0 11-8.506-8.329 1.25 1.25 0 10-.75-2.385z" />
|
9
9
|
</svg>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
12
|
+
|
13
|
+
<% if render_accessibility? %>
|
14
|
+
<%= render Polaris::BaseComponent.new(**span_arguments) do %>
|
15
|
+
<%= render Polaris::TextComponent.new(as: :span, variant: :bodySm, visually_hidden: true).with_content(@accessibility_label) %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
@@ -2,24 +2,50 @@
|
|
2
2
|
|
3
3
|
module Polaris
|
4
4
|
class SpinnerComponent < Polaris::Component
|
5
|
+
include ActiveModel::Validations
|
6
|
+
|
7
|
+
attr_reader :has_focusable_parent, :size
|
8
|
+
|
5
9
|
SIZE_DEFAULT = :large
|
6
10
|
SIZE_MAPPINGS = {
|
7
11
|
small: "Polaris-Spinner--sizeSmall",
|
8
12
|
large: "Polaris-Spinner--sizeLarge"
|
9
13
|
}
|
10
14
|
SIZE_OPTIONS = SIZE_MAPPINGS.keys
|
15
|
+
validates :size, inclusion: {in: SIZE_OPTIONS}
|
16
|
+
validates :has_focusable_parent, inclusion: {in: [true, false]}
|
11
17
|
|
12
18
|
def initialize(
|
19
|
+
accessibility_label: nil,
|
13
20
|
size: SIZE_DEFAULT,
|
21
|
+
has_focusable_parent: false,
|
14
22
|
**system_arguments
|
15
23
|
)
|
24
|
+
@accessibility_label = accessibility_label
|
25
|
+
@has_focusable_parent = has_focusable_parent
|
16
26
|
@size = size
|
27
|
+
|
17
28
|
@system_arguments = system_arguments
|
29
|
+
@system_arguments[:tag] = :span
|
18
30
|
@system_arguments[:classes] = class_names(
|
19
31
|
@system_arguments[:classes],
|
20
32
|
"Polaris-Spinner",
|
21
33
|
SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, size, SIZE_DEFAULT)]
|
22
34
|
)
|
23
35
|
end
|
36
|
+
|
37
|
+
def span_arguments
|
38
|
+
arguments = {
|
39
|
+
tag: :span
|
40
|
+
}
|
41
|
+
|
42
|
+
arguments[:role] = :status unless @has_focusable_parent
|
43
|
+
|
44
|
+
arguments
|
45
|
+
end
|
46
|
+
|
47
|
+
def render_accessibility?
|
48
|
+
(!@has_focusable_parent && @accessibility_label.present?)
|
49
|
+
end
|
24
50
|
end
|
25
51
|
end
|
@@ -4,8 +4,8 @@ class Polaris::Stack::ItemComponent < Polaris::Component
|
|
4
4
|
@system_arguments[:tag] = "div"
|
5
5
|
@system_arguments[:classes] = class_names(
|
6
6
|
@system_arguments[:classes],
|
7
|
-
"Polaris-
|
8
|
-
"Polaris-
|
7
|
+
"Polaris-LegacyStack__Item",
|
8
|
+
"Polaris-LegacyStack__Item--fill": fill
|
9
9
|
)
|
10
10
|
end
|
11
11
|
|
@@ -5,35 +5,35 @@ module Polaris
|
|
5
5
|
ALIGNMENT_DEFAULT = :default
|
6
6
|
ALIGNMENT_MAPPINGS = {
|
7
7
|
ALIGNMENT_DEFAULT => "",
|
8
|
-
:leading => "Polaris-
|
9
|
-
:trailing => "Polaris-
|
10
|
-
:center => "Polaris-
|
11
|
-
:fill => "Polaris-
|
12
|
-
:baseline => "Polaris-
|
8
|
+
:leading => "Polaris-LegacyStack--alignmentLeading",
|
9
|
+
:trailing => "Polaris-LegacyStack--alignmentTrailing",
|
10
|
+
:center => "Polaris-LegacyStack--alignmentCenter",
|
11
|
+
:fill => "Polaris-LegacyStack--alignmentFill",
|
12
|
+
:baseline => "Polaris-LegacyStack--alignmentBaseline"
|
13
13
|
}
|
14
14
|
ALIGNMENT_OPTIONS = ALIGNMENT_MAPPINGS.keys
|
15
15
|
|
16
16
|
DISTRIBUTION_DEFAULT = :default
|
17
17
|
DISTRIBUTION_MAPPINGS = {
|
18
18
|
DISTRIBUTION_DEFAULT => "",
|
19
|
-
:equal_spacing => "Polaris-
|
20
|
-
:leading => "Polaris-
|
21
|
-
:trailing => "Polaris-
|
22
|
-
:center => "Polaris-
|
23
|
-
:fill => "Polaris-
|
24
|
-
:fill_evenly => "Polaris-
|
19
|
+
:equal_spacing => "Polaris-LegacyStack--distributionEqualSpacing",
|
20
|
+
:leading => "Polaris-LegacyStack--distributionLeading",
|
21
|
+
:trailing => "Polaris-LegacyStack--distributionTrailing",
|
22
|
+
:center => "Polaris-LegacyStack--distributionCenter",
|
23
|
+
:fill => "Polaris-LegacyStack--distributionFill",
|
24
|
+
:fill_evenly => "Polaris-LegacyStack--distributionFillEvenly"
|
25
25
|
}
|
26
26
|
DISTRIBUTION_OPTIONS = DISTRIBUTION_MAPPINGS.keys
|
27
27
|
|
28
28
|
SPACING_DEFAULT = :default
|
29
29
|
SPACING_MAPPINGS = {
|
30
30
|
SPACING_DEFAULT => "",
|
31
|
-
:extra_tight => "Polaris-
|
32
|
-
:tight => "Polaris-
|
33
|
-
:base_tight => "Polaris-
|
34
|
-
:loose => "Polaris-
|
35
|
-
:extra_loose => "Polaris-
|
36
|
-
:none => "Polaris-
|
31
|
+
:extra_tight => "Polaris-LegacyStack--spacingExtraTight",
|
32
|
+
:tight => "Polaris-LegacyStack--spacingTight",
|
33
|
+
:base_tight => "Polaris-LegacyStack--spacingBaseTight",
|
34
|
+
:loose => "Polaris-LegacyStack--spacingLoose",
|
35
|
+
:extra_loose => "Polaris-LegacyStack--spacingExtraLoose",
|
36
|
+
:none => "Polaris-LegacyStack--spacingNone"
|
37
37
|
}
|
38
38
|
SPACING_OPTIONS = SPACING_MAPPINGS.keys
|
39
39
|
|
@@ -51,12 +51,12 @@ module Polaris
|
|
51
51
|
@system_arguments[:tag] = "div"
|
52
52
|
@system_arguments[:classes] = class_names(
|
53
53
|
@system_arguments[:classes],
|
54
|
-
"Polaris-
|
54
|
+
"Polaris-LegacyStack",
|
55
55
|
ALIGNMENT_MAPPINGS[fetch_or_fallback(ALIGNMENT_OPTIONS, alignment, ALIGNMENT_DEFAULT)],
|
56
56
|
DISTRIBUTION_MAPPINGS[fetch_or_fallback(DISTRIBUTION_OPTIONS, distribution, DISTRIBUTION_DEFAULT)],
|
57
57
|
SPACING_MAPPINGS[fetch_or_fallback(SPACING_OPTIONS, spacing, SPACING_DEFAULT)],
|
58
|
-
"Polaris-
|
59
|
-
"Polaris-
|
58
|
+
"Polaris-LegacyStack--vertical": vertical,
|
59
|
+
"Polaris-LegacyStack--noWrap": !wrap
|
60
60
|
)
|
61
61
|
end
|
62
62
|
end
|
@@ -10,15 +10,11 @@ module Polaris
|
|
10
10
|
**system_arguments
|
11
11
|
)
|
12
12
|
@system_arguments = system_arguments
|
13
|
-
@
|
14
|
-
@system_arguments[:classes] = class_names(
|
15
|
-
@system_arguments[:classes],
|
16
|
-
"Polaris-Subheading"
|
17
|
-
)
|
13
|
+
@element = element
|
18
14
|
end
|
19
15
|
|
20
16
|
def call
|
21
|
-
render(Polaris::
|
17
|
+
render(Polaris::TextComponent.new(as: @element, variant: :headingXs, **@system_arguments)) { content }
|
22
18
|
end
|
23
19
|
end
|
24
20
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<li class="Polaris-
|
1
|
+
<li class="Polaris-LegacyTabs__TabContainer" role="presentation">
|
2
2
|
<%= render(Polaris::BaseComponent.new(**system_arguments)) do %>
|
3
|
-
<span class="Polaris-
|
3
|
+
<span class="Polaris-LegacyTabs__Title">
|
4
4
|
<%= @title %>
|
5
5
|
<% if badge.present? %>
|
6
6
|
<%= badge %>
|
@@ -26,8 +26,8 @@ class Polaris::Tabs::TabComponent < Polaris::Component
|
|
26
26
|
end
|
27
27
|
opts[:classes] = class_names(
|
28
28
|
@system_arguments[:classes],
|
29
|
-
"Polaris-
|
30
|
-
"Polaris-
|
29
|
+
"Polaris-LegacyTabs__Tab",
|
30
|
+
"Polaris-LegacyTabs__Tab--selected": @active
|
31
31
|
)
|
32
32
|
end
|
33
33
|
end
|
@@ -1,4 +1,10 @@
|
|
1
|
-
<%=
|
1
|
+
<%= polaris_box(
|
2
|
+
border_block_end_width: "1",
|
3
|
+
border_color: "border-subdued",
|
4
|
+
padding_inline_start: "2",
|
5
|
+
padding_inline_end: "2",
|
6
|
+
**wrapper_arguments
|
7
|
+
) do %>
|
2
8
|
<%= render(Polaris::BaseComponent.new(**system_arguments)) do %>
|
3
9
|
<% tabs.each do |tab| %>
|
4
10
|
<%= tab %>
|
@@ -13,7 +13,7 @@ module Polaris
|
|
13
13
|
opts[:tag] = "div"
|
14
14
|
opts[:classes] = class_names(
|
15
15
|
@wrapper_arguments[:classes],
|
16
|
-
"Polaris-
|
16
|
+
"Polaris-LegacyTabs__Wrapper"
|
17
17
|
)
|
18
18
|
end
|
19
19
|
end
|
@@ -24,8 +24,8 @@ module Polaris
|
|
24
24
|
opts[:role] = "tablist"
|
25
25
|
opts[:classes] = class_names(
|
26
26
|
@system_arguments[:classes],
|
27
|
-
"Polaris-
|
28
|
-
"Polaris-
|
27
|
+
"Polaris-LegacyTabs",
|
28
|
+
"Polaris-LegacyTabs--fitted": @fitted
|
29
29
|
)
|
30
30
|
end
|
31
31
|
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# frozen_sting_literal: true
|
2
|
+
|
3
|
+
module Polaris
|
4
|
+
class TextComponent < Polaris::Component
|
5
|
+
include ActiveModel::Validations
|
6
|
+
|
7
|
+
attr_reader :as, :variant, :alignment, :font_weight, :color
|
8
|
+
|
9
|
+
AS_DEFAULT = :p
|
10
|
+
AS_OPTIONS = %i[
|
11
|
+
h1
|
12
|
+
h2
|
13
|
+
h3
|
14
|
+
h4
|
15
|
+
h5
|
16
|
+
h6
|
17
|
+
p
|
18
|
+
span
|
19
|
+
legend
|
20
|
+
]
|
21
|
+
validates :as, inclusion: {in: AS_OPTIONS}
|
22
|
+
|
23
|
+
VARIANT_DEFAULT = :bodyMd
|
24
|
+
VARIANT_MAPPINGS = {
|
25
|
+
headingXs: "Polaris-Text--headingXs",
|
26
|
+
headingSm: "Polaris-Text--headingSm",
|
27
|
+
headingMd: "Polaris-Text--headingMd",
|
28
|
+
headingLg: "Polaris-Text--headingLg",
|
29
|
+
headingXl: "Polaris-Text--headingXl",
|
30
|
+
heading2xl: "Polaris-Text--heading2xl",
|
31
|
+
heading3xl: "Polaris-Text--heading3xl",
|
32
|
+
heading4xl: "Polaris-Text--heading4xl",
|
33
|
+
bodySm: "Polaris-Text--bodySm",
|
34
|
+
bodyMd: "Polaris-Text--bodyMd",
|
35
|
+
bodyLg: "Polaris-Text--bodyLg"
|
36
|
+
}
|
37
|
+
VARIANT_OPTIONS = VARIANT_MAPPINGS.keys
|
38
|
+
validates :variant, inclusion: {in: VARIANT_OPTIONS}
|
39
|
+
|
40
|
+
ALIGNMENT_MAPPINGS = {
|
41
|
+
start: "Polaris-Text--start",
|
42
|
+
center: "Polaris-Text--center",
|
43
|
+
end: "Polaris-Text--end",
|
44
|
+
justify: "Polaris-Text--justify"
|
45
|
+
}
|
46
|
+
ALIGNMENT_OPTIONS = ALIGNMENT_MAPPINGS.keys
|
47
|
+
validates :alignment, inclusion: {in: ALIGNMENT_OPTIONS}, allow_nil: true
|
48
|
+
|
49
|
+
FONT_WEIGHT_MAPPINGS = {
|
50
|
+
regular: "Polaris-Text--regular",
|
51
|
+
medium: "Polaris-Text--medium",
|
52
|
+
semibold: "Polaris-Text--semibold",
|
53
|
+
bold: "Polaris-Text--bold"
|
54
|
+
}
|
55
|
+
FONT_WEIGHT_VARIANT_MAPPINGS = {
|
56
|
+
headingXs: :semibold,
|
57
|
+
headingSm: :semibold,
|
58
|
+
headingMd: :semibold,
|
59
|
+
headingLg: :semibold,
|
60
|
+
headingXl: :semibold,
|
61
|
+
heading2xl: :semibold,
|
62
|
+
heading3xl: :semibold,
|
63
|
+
heading4xl: :bold,
|
64
|
+
bodySm: :regular,
|
65
|
+
bodyMd: :regular,
|
66
|
+
bodyLg: :regular
|
67
|
+
}
|
68
|
+
FONT_WEIGHT_OPTIONS = FONT_WEIGHT_MAPPINGS.keys
|
69
|
+
validates :font_weight, inclusion: {in: FONT_WEIGHT_OPTIONS}, allow_nil: true
|
70
|
+
|
71
|
+
COLOR_MAPPINGS = {
|
72
|
+
success: "Polaris-Text--success",
|
73
|
+
critical: "Polaris-Text--critical",
|
74
|
+
warning: "Polaris-Text--warning",
|
75
|
+
subdued: "Polaris-Text--subdued",
|
76
|
+
text_inverse: "Polaris-Text__text--inverse"
|
77
|
+
}
|
78
|
+
COLOR_OPTIONS = COLOR_MAPPINGS.keys
|
79
|
+
validates :color, inclusion: {in: COLOR_OPTIONS}, allow_nil: true
|
80
|
+
|
81
|
+
def initialize(
|
82
|
+
alignment: nil,
|
83
|
+
as: AS_DEFAULT,
|
84
|
+
break_word: false,
|
85
|
+
color: nil,
|
86
|
+
font_weight: nil,
|
87
|
+
truncate: false,
|
88
|
+
variant: VARIANT_DEFAULT,
|
89
|
+
visually_hidden: false,
|
90
|
+
**system_arguments
|
91
|
+
)
|
92
|
+
@system_arguments = system_arguments
|
93
|
+
|
94
|
+
@alignment = alignment
|
95
|
+
@color = color
|
96
|
+
@font_weight = font_weight
|
97
|
+
@variant = variant
|
98
|
+
|
99
|
+
@system_arguments[:tag] = as || (visually_hidden ? :span : :p)
|
100
|
+
@system_arguments[:classes] = class_names(
|
101
|
+
@system_arguments[:classes],
|
102
|
+
"Polaris-Text--root",
|
103
|
+
VARIANT_MAPPINGS[fetch_or_fallback(VARIANT_OPTIONS, variant, VARIANT_DEFAULT)],
|
104
|
+
alignment_class,
|
105
|
+
color_class,
|
106
|
+
font_weight_class,
|
107
|
+
"Polaris-Text--block": alignment || truncate,
|
108
|
+
"Polaris-Text--break": break_word,
|
109
|
+
"Polaris-Text--truncate": truncate,
|
110
|
+
"Polaris-Text--visuallyHidden": visually_hidden
|
111
|
+
)
|
112
|
+
end
|
113
|
+
|
114
|
+
def alignment_class
|
115
|
+
return nil if @alignment.nil?
|
116
|
+
|
117
|
+
ALIGNMENT_MAPPINGS[fetch_or_fallback(ALIGNMENT_OPTIONS, @alignment, ALIGNMENT_OPTIONS.first)]
|
118
|
+
end
|
119
|
+
|
120
|
+
def color_class
|
121
|
+
return nil if @color.nil?
|
122
|
+
|
123
|
+
COLOR_MAPPINGS[fetch_or_fallback(COLOR_OPTIONS, @color, COLOR_OPTIONS.first)]
|
124
|
+
end
|
125
|
+
|
126
|
+
def font_weight_class
|
127
|
+
return FONT_WEIGHT_MAPPINGS[FONT_WEIGHT_VARIANT_MAPPINGS[@variant]] if @font_weight.nil?
|
128
|
+
|
129
|
+
FONT_WEIGHT_MAPPINGS[fetch_or_fallback(FONT_WEIGHT_OPTIONS, @font_weight, FONT_WEIGHT_OPTIONS.first)]
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
@@ -48,6 +48,7 @@ module Polaris
|
|
48
48
|
label_hidden: false,
|
49
49
|
label_action: nil,
|
50
50
|
disabled: false,
|
51
|
+
readonly: false,
|
51
52
|
required: false,
|
52
53
|
help_text: nil,
|
53
54
|
error: false,
|
@@ -78,6 +79,7 @@ module Polaris
|
|
78
79
|
@label_hidden = label_hidden
|
79
80
|
@label_action = label_action
|
80
81
|
@disabled = disabled
|
82
|
+
@readonly = readonly
|
81
83
|
@required = required
|
82
84
|
@help_text = help_text
|
83
85
|
@error = error
|
@@ -112,6 +114,7 @@ module Polaris
|
|
112
114
|
opts[:classes],
|
113
115
|
"Polaris-TextField",
|
114
116
|
"Polaris-TextField--disabled": @disabled,
|
117
|
+
"Polaris-TextField--readOnly": @readonly,
|
115
118
|
"Polaris-TextField--error": @error,
|
116
119
|
"Polaris-TextField--hasValue": @value.present?,
|
117
120
|
"Polaris-TextField--multiline": @multiline
|
@@ -128,6 +131,7 @@ module Polaris
|
|
128
131
|
default_options = {
|
129
132
|
value: @value,
|
130
133
|
disabled: @disabled,
|
134
|
+
readonly: @readonly,
|
131
135
|
required: @required,
|
132
136
|
placeholder: @placeholder,
|
133
137
|
maxlength: @maxlength,
|