polaris_view_components 3.2.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/fonts/OFL.txt +92 -0
- data/app/assets/fonts/ShopifyInterVariable-latin-ext.woff2 +0 -0
- data/app/assets/fonts/ShopifyInterVariable-latin.woff2 +0 -0
- data/app/assets/icons/polaris/AlertCircleFilledIcon.svg +1 -0
- data/app/assets/icons/polaris/CheckCircleFilledIcon.svg +1 -0
- data/app/assets/icons/polaris/InfoFilledIcon.svg +1 -0
- data/app/assets/javascripts/polaris_view_components/button_controller.js +6 -7
- data/app/assets/javascripts/polaris_view_components/dropzone_controller.js +2 -0
- data/app/assets/javascripts/polaris_view_components/index.js +2 -0
- data/app/assets/javascripts/polaris_view_components/popover_controller.js +33 -6
- data/app/assets/javascripts/polaris_view_components/tabs_controller.js +14 -0
- data/app/assets/javascripts/polaris_view_components.js +103 -7
- data/app/assets/stylesheets/polaris_view_components/action_list.pcss +19 -4
- data/app/assets/stylesheets/polaris_view_components/badge.pcss +75 -0
- data/app/assets/stylesheets/polaris_view_components/banner.pcss +132 -87
- data/app/assets/stylesheets/polaris_view_components/button.pcss +395 -61
- data/app/assets/stylesheets/polaris_view_components/callout_card.pcss +63 -2
- data/app/assets/stylesheets/polaris_view_components/card.pcss +130 -30
- data/app/assets/stylesheets/polaris_view_components/choice.pcss +80 -0
- data/app/assets/stylesheets/polaris_view_components/custom.pcss +6 -67
- data/app/assets/stylesheets/polaris_view_components/data_table.pcss +58 -2
- data/app/assets/stylesheets/polaris_view_components/description_list.pcss +34 -0
- data/app/assets/stylesheets/polaris_view_components/drop_zone.pcss +100 -0
- data/app/assets/stylesheets/polaris_view_components/fonts.pcss +27 -0
- data/app/assets/stylesheets/polaris_view_components/footer_help.pcss +24 -0
- data/app/assets/stylesheets/polaris_view_components/index_table.pcss +17 -2
- data/app/assets/stylesheets/polaris_view_components/media.pcss +126 -0
- data/app/assets/stylesheets/polaris_view_components/modal.pcss +115 -3
- data/app/assets/stylesheets/polaris_view_components/navigation.pcss +49 -0
- data/app/assets/stylesheets/polaris_view_components/navigation_list_component.pcss +73 -10
- data/app/assets/stylesheets/polaris_view_components/page.pcss +120 -10
- data/app/assets/stylesheets/polaris_view_components/pagination.pcss +6 -2
- data/app/assets/stylesheets/polaris_view_components/popover.pcss +13 -0
- data/app/assets/stylesheets/polaris_view_components/resource_list.pcss +100 -0
- data/app/assets/stylesheets/polaris_view_components/save_bar.pcss +35 -25
- data/app/assets/stylesheets/polaris_view_components/shopify_navigation.pcss +21 -18
- data/app/assets/stylesheets/polaris_view_components/tabs.pcss +69 -0
- data/app/assets/stylesheets/polaris_view_components/tag.pcss +45 -0
- data/app/assets/stylesheets/polaris_view_components/text_fields.pcss +226 -0
- data/app/assets/stylesheets/polaris_view_components/theme.pcss +386 -0
- data/app/assets/stylesheets/polaris_view_components/tooltip_component.pcss +7 -5
- data/app/assets/stylesheets/polaris_view_components/variables.pcss +1 -1
- data/app/assets/stylesheets/polaris_view_components.css +1766 -275
- data/app/assets/stylesheets/polaris_view_components.pcss +8 -0
- data/app/components/polaris/avatar_component.rb +1 -1
- data/app/components/polaris/banner_component.html.erb +27 -90
- data/app/components/polaris/banner_component.rb +4 -5
- data/app/components/polaris/button_component.html.erb +1 -9
- data/app/components/polaris/callout_card_component.html.erb +11 -7
- data/app/components/polaris/callout_card_component.rb +4 -3
- data/app/components/polaris/card/header_component.rb +1 -1
- data/app/components/polaris/card/section_component.html.erb +1 -1
- data/app/components/polaris/card/section_component.rb +2 -1
- data/app/components/polaris/card_component.html.erb +39 -37
- data/app/components/polaris/card_component.rb +3 -3
- data/app/components/polaris/checkbox_component.html.erb +2 -1
- data/app/components/polaris/checkbox_component.rb +0 -4
- data/app/components/polaris/dropzone_component.html.erb +12 -36
- data/app/components/polaris/headless_button.html.erb +1 -9
- data/app/components/polaris/headless_button.rb +13 -0
- data/app/components/polaris/modal_component.html.erb +6 -0
- data/app/components/polaris/page_component.html.erb +4 -4
- data/app/components/polaris/progress_bar_component.rb +4 -4
- data/app/components/polaris/resource_item/shortcut_actions_component.html.erb +6 -8
- data/app/components/polaris/resource_item/shortcut_actions_component.rb +5 -1
- data/app/components/polaris/resource_item_component.html.erb +4 -4
- data/app/components/polaris/resource_item_component.rb +4 -1
- data/app/components/polaris/spinner_component.html.erb +4 -9
- data/app/components/polaris/tabs_component.rb +2 -0
- data/lib/polaris/view_components/version.rb +1 -1
- metadata +18 -3
|
@@ -75,7 +75,11 @@ class Polaris::ResourceItem::ShortcutActionsComponent < Polaris::Component
|
|
|
75
75
|
@system_arguments.tap do |opts|
|
|
76
76
|
opts[:url] = @url
|
|
77
77
|
opts[:size] = :slim unless @persist_actions
|
|
78
|
-
|
|
78
|
+
if @persist_actions
|
|
79
|
+
opts[:plain] = true
|
|
80
|
+
opts[:monochrome] = true
|
|
81
|
+
opts[:remove_underline] = true
|
|
82
|
+
end
|
|
79
83
|
end
|
|
80
84
|
end
|
|
81
85
|
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
<% end %>
|
|
12
12
|
|
|
13
13
|
<%= render(Polaris::BoxComponent.new(**container_arguments)) do %>
|
|
14
|
-
<%= polaris_horizontal_grid(columns: "1fr auto") do %>
|
|
14
|
+
<%= polaris_horizontal_grid(columns: shortcut_actions.present? ? "minmax(0, 1fr) auto" : "minmax(0, 1fr)", align_items: :center, gap: "4") do %>
|
|
15
15
|
<%= polaris_horizontal_grid(
|
|
16
16
|
gap: "3",
|
|
17
|
-
columns:
|
|
17
|
+
columns: owned? ? "auto minmax(0, 1fr)" : "minmax(0, 1fr)"
|
|
18
18
|
) do %>
|
|
19
19
|
<% if owned? %>
|
|
20
20
|
<%= polaris_horizontal_stack(
|
|
21
21
|
gap: "3",
|
|
22
|
-
block_align:
|
|
22
|
+
block_align: @vertical_alignment || :center
|
|
23
23
|
) do %>
|
|
24
24
|
<% if checkbox.present? || radio_button.present? %>
|
|
25
25
|
<%= polaris_bleed(margin_block: "2", margin_inline: "3") do %>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
width: "100%",
|
|
47
47
|
padding: "0",
|
|
48
48
|
padding_inline_start: "0",
|
|
49
|
-
padding_inline_end: "
|
|
49
|
+
padding_inline_end: "0"
|
|
50
50
|
) do %>
|
|
51
51
|
<%= content %>
|
|
52
52
|
<% end %>
|
|
@@ -66,10 +66,13 @@ module Polaris
|
|
|
66
66
|
def container_arguments
|
|
67
67
|
@container_arguments.tap do |args|
|
|
68
68
|
args[:classes] = class_names(
|
|
69
|
-
args[:classes]
|
|
69
|
+
args[:classes],
|
|
70
|
+
"Polaris-ResourceItem__Container"
|
|
70
71
|
)
|
|
71
72
|
args[:position] = :relative
|
|
72
73
|
args[:padding] = "3"
|
|
74
|
+
args[:padding_inline_start] ||= "4"
|
|
75
|
+
args[:padding_inline_end] ||= "4"
|
|
73
76
|
args[:z_index] = "var(--pc-resource-item-content-stacking-order)"
|
|
74
77
|
end
|
|
75
78
|
end
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
<%= render Polaris::BaseComponent.new(**@system_arguments) do %>
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<% else %>
|
|
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
|
-
</svg>
|
|
10
|
-
<% end %>
|
|
2
|
+
<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" focusable="false">
|
|
3
|
+
<circle class="Polaris-Spinner__Track" r="<%= @size == :small ? 14 : 19 %>" stroke-width="<%= @size == :small ? 3 : 2 %>" cx="22" cy="22" />
|
|
4
|
+
<circle class="Polaris-Spinner__Indicator" pathLength="10" r="<%= @size == :small ? 14 : 19 %>" stroke-width="<%= @size == :small ? 3 : 2 %>" cx="22" cy="22" />
|
|
5
|
+
</svg>
|
|
11
6
|
<% end %>
|
|
12
7
|
|
|
13
8
|
<% if render_accessibility? %>
|
|
@@ -22,6 +22,8 @@ module Polaris
|
|
|
22
22
|
@system_arguments.tap do |opts|
|
|
23
23
|
opts[:tag] = "ul"
|
|
24
24
|
opts[:role] = "tablist"
|
|
25
|
+
opts[:data] ||= {}
|
|
26
|
+
prepend_option(opts[:data], :controller, "polaris-tabs")
|
|
25
27
|
opts[:classes] = class_names(
|
|
26
28
|
@system_arguments[:classes],
|
|
27
29
|
"Polaris-LegacyTabs",
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polaris_view_components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Gamble
|
|
@@ -78,14 +78,14 @@ dependencies:
|
|
|
78
78
|
requirements:
|
|
79
79
|
- - "~>"
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '
|
|
81
|
+
version: '6.0'
|
|
82
82
|
type: :development
|
|
83
83
|
prerelease: false
|
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - "~>"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '
|
|
88
|
+
version: '6.0'
|
|
89
89
|
- !ruby/object:Gem::Dependency
|
|
90
90
|
name: pry
|
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -153,10 +153,14 @@ files:
|
|
|
153
153
|
- README.md
|
|
154
154
|
- app/assets/fonts/InterVariable-Italic.woff2
|
|
155
155
|
- app/assets/fonts/InterVariable.woff2
|
|
156
|
+
- app/assets/fonts/OFL.txt
|
|
157
|
+
- app/assets/fonts/ShopifyInterVariable-latin-ext.woff2
|
|
158
|
+
- app/assets/fonts/ShopifyInterVariable-latin.woff2
|
|
156
159
|
- app/assets/icons/polaris/AdjustIcon.svg
|
|
157
160
|
- app/assets/icons/polaris/AffiliateIcon.svg
|
|
158
161
|
- app/assets/icons/polaris/AirplaneIcon.svg
|
|
159
162
|
- app/assets/icons/polaris/AlertBubbleIcon.svg
|
|
163
|
+
- app/assets/icons/polaris/AlertCircleFilledIcon.svg
|
|
160
164
|
- app/assets/icons/polaris/AlertCircleIcon.svg
|
|
161
165
|
- app/assets/icons/polaris/AlertDiamondIcon.svg
|
|
162
166
|
- app/assets/icons/polaris/AlertTriangleIcon.svg
|
|
@@ -233,6 +237,7 @@ files:
|
|
|
233
237
|
- app/assets/icons/polaris/ChartVerticalIcon.svg
|
|
234
238
|
- app/assets/icons/polaris/ChatIcon.svg
|
|
235
239
|
- app/assets/icons/polaris/ChatReferralIcon.svg
|
|
240
|
+
- app/assets/icons/polaris/CheckCircleFilledIcon.svg
|
|
236
241
|
- app/assets/icons/polaris/CheckCircleIcon.svg
|
|
237
242
|
- app/assets/icons/polaris/CheckIcon.svg
|
|
238
243
|
- app/assets/icons/polaris/CheckSmallIcon.svg
|
|
@@ -371,6 +376,7 @@ files:
|
|
|
371
376
|
- app/assets/icons/polaris/ImportIcon.svg
|
|
372
377
|
- app/assets/icons/polaris/IncentiveIcon.svg
|
|
373
378
|
- app/assets/icons/polaris/IncomingIcon.svg
|
|
379
|
+
- app/assets/icons/polaris/InfoFilledIcon.svg
|
|
374
380
|
- app/assets/icons/polaris/InfoIcon.svg
|
|
375
381
|
- app/assets/icons/polaris/InventoryFilledIcon.svg
|
|
376
382
|
- app/assets/icons/polaris/InventoryIcon.svg
|
|
@@ -678,6 +684,7 @@ files:
|
|
|
678
684
|
- app/assets/javascripts/polaris_view_components/resource_item_controller.js
|
|
679
685
|
- app/assets/javascripts/polaris_view_components/scrollable_controller.js
|
|
680
686
|
- app/assets/javascripts/polaris_view_components/select_controller.js
|
|
687
|
+
- app/assets/javascripts/polaris_view_components/tabs_controller.js
|
|
681
688
|
- app/assets/javascripts/polaris_view_components/text_field_controller.js
|
|
682
689
|
- app/assets/javascripts/polaris_view_components/toast_controller.js
|
|
683
690
|
- app/assets/javascripts/polaris_view_components/tooltip_controller.js
|
|
@@ -686,18 +693,23 @@ files:
|
|
|
686
693
|
- app/assets/stylesheets/polaris_view_components.css
|
|
687
694
|
- app/assets/stylesheets/polaris_view_components.pcss
|
|
688
695
|
- app/assets/stylesheets/polaris_view_components/action_list.pcss
|
|
696
|
+
- app/assets/stylesheets/polaris_view_components/badge.pcss
|
|
689
697
|
- app/assets/stylesheets/polaris_view_components/banner.pcss
|
|
690
698
|
- app/assets/stylesheets/polaris_view_components/button.pcss
|
|
691
699
|
- app/assets/stylesheets/polaris_view_components/callout_card.pcss
|
|
692
700
|
- app/assets/stylesheets/polaris_view_components/card.pcss
|
|
701
|
+
- app/assets/stylesheets/polaris_view_components/choice.pcss
|
|
693
702
|
- app/assets/stylesheets/polaris_view_components/collapsible.pcss
|
|
694
703
|
- app/assets/stylesheets/polaris_view_components/custom.pcss
|
|
695
704
|
- app/assets/stylesheets/polaris_view_components/data_table.pcss
|
|
705
|
+
- app/assets/stylesheets/polaris_view_components/description_list.pcss
|
|
706
|
+
- app/assets/stylesheets/polaris_view_components/drop_zone.pcss
|
|
696
707
|
- app/assets/stylesheets/polaris_view_components/fonts.pcss
|
|
697
708
|
- app/assets/stylesheets/polaris_view_components/footer_help.pcss
|
|
698
709
|
- app/assets/stylesheets/polaris_view_components/form_layout.pcss
|
|
699
710
|
- app/assets/stylesheets/polaris_view_components/index_table.pcss
|
|
700
711
|
- app/assets/stylesheets/polaris_view_components/list.pcss
|
|
712
|
+
- app/assets/stylesheets/polaris_view_components/media.pcss
|
|
701
713
|
- app/assets/stylesheets/polaris_view_components/modal.pcss
|
|
702
714
|
- app/assets/stylesheets/polaris_view_components/navigation.pcss
|
|
703
715
|
- app/assets/stylesheets/polaris_view_components/navigation_list_component.pcss
|
|
@@ -705,11 +717,14 @@ files:
|
|
|
705
717
|
- app/assets/stylesheets/polaris_view_components/page.pcss
|
|
706
718
|
- app/assets/stylesheets/polaris_view_components/pagination.pcss
|
|
707
719
|
- app/assets/stylesheets/polaris_view_components/popover.pcss
|
|
720
|
+
- app/assets/stylesheets/polaris_view_components/resource_list.pcss
|
|
708
721
|
- app/assets/stylesheets/polaris_view_components/save_bar.pcss
|
|
709
722
|
- app/assets/stylesheets/polaris_view_components/shopify_navigation.pcss
|
|
710
723
|
- app/assets/stylesheets/polaris_view_components/spacer_component.pcss
|
|
711
724
|
- app/assets/stylesheets/polaris_view_components/tabs.pcss
|
|
725
|
+
- app/assets/stylesheets/polaris_view_components/tag.pcss
|
|
712
726
|
- app/assets/stylesheets/polaris_view_components/text_fields.pcss
|
|
727
|
+
- app/assets/stylesheets/polaris_view_components/theme.pcss
|
|
713
728
|
- app/assets/stylesheets/polaris_view_components/tooltip_component.pcss
|
|
714
729
|
- app/assets/stylesheets/polaris_view_components/variables.pcss
|
|
715
730
|
- app/components/polaris/action.rb
|