polaris_view_components 0.8.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/icons/polaris/AnalyticsMinor.svg +1 -0
- data/app/assets/icons/polaris/AppsMinor.svg +1 -0
- data/app/assets/icons/polaris/BlockMinor.svg +1 -0
- data/app/assets/icons/polaris/ButtonMinor.svg +1 -0
- data/app/assets/icons/polaris/CaretDownMinor.svg +1 -1
- data/app/assets/icons/polaris/CaretUpMinor.svg +1 -1
- data/app/assets/icons/polaris/CircleTickMinor.svg +1 -0
- data/app/assets/icons/polaris/Columns3Minor.svg +1 -0
- data/app/assets/icons/polaris/CustomersMinor.svg +1 -1
- data/app/assets/icons/polaris/DiscountsMinor.svg +1 -0
- data/app/assets/icons/polaris/DropdownMinor.svg +1 -1
- data/app/assets/icons/polaris/FinancesMajor.svg +1 -0
- data/app/assets/icons/polaris/FinancesMinor.svg +1 -0
- data/app/assets/icons/polaris/HomeMinor.svg +1 -0
- data/app/assets/icons/polaris/MarketingMinor.svg +1 -0
- data/app/assets/icons/polaris/OnlineStoreMinor.svg +1 -0
- data/app/assets/icons/polaris/OrdersMinor.svg +1 -0
- data/app/assets/icons/polaris/ProductsMinor.svg +1 -0
- data/app/assets/icons/polaris/QuestionMarkInverseMajor.svg +1 -0
- data/app/assets/icons/polaris/QuestionMarkInverseMinor.svg +1 -0
- data/app/assets/icons/polaris/SelectMinor.svg +1 -1
- data/app/assets/icons/polaris/TitleMinor.svg +1 -0
- data/app/assets/icons/polaris/WandMinor.svg +1 -0
- data/app/assets/javascripts/polaris_view_components/collapsible_controller.js +19 -0
- data/app/assets/javascripts/polaris_view_components/dropzone_controller.js +15 -3
- data/app/assets/javascripts/polaris_view_components/frame_controller.js +1 -1
- data/app/assets/javascripts/polaris_view_components/index.js +2 -0
- data/app/assets/javascripts/polaris_view_components/polaris_controller.js +4 -0
- data/app/assets/javascripts/polaris_view_components/toast_controller.js +13 -2
- data/app/assets/javascripts/polaris_view_components/{utils.js → utils/index.js} +3 -1
- data/app/assets/javascripts/polaris_view_components/utils/use-transition.js +162 -0
- data/app/assets/javascripts/polaris_view_components.js +194 -162
- data/app/assets/stylesheets/polaris_view_components/custom.css +4 -0
- data/app/assets/stylesheets/polaris_view_components.css +41 -33
- data/app/components/polaris/collapsible_component.rb +37 -0
- data/app/components/polaris/dropzone_component.html.erb +1 -1
- data/app/components/polaris/keyboard_key_component.rb +20 -0
- data/app/components/polaris/resource_item_component.rb +3 -1
- data/app/components/polaris/skeleton_display_text_component.rb +32 -0
- data/app/components/polaris/skeleton_thumbnail_component.rb +31 -0
- data/app/helpers/polaris/form_builder.rb +1 -1
- data/app/helpers/polaris/view_helper.rb +4 -0
- data/config/locales/en.yml +6 -0
- data/lib/polaris/view_components/version.rb +1 -1
- metadata +28 -15
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Polaris
|
4
|
+
class CollapsibleComponent < Polaris::Component
|
5
|
+
def initialize(
|
6
|
+
expand_on_print: false,
|
7
|
+
open: false,
|
8
|
+
**system_arguments
|
9
|
+
)
|
10
|
+
@expand_on_print = expand_on_print
|
11
|
+
@open = open
|
12
|
+
@system_arguments = system_arguments
|
13
|
+
end
|
14
|
+
|
15
|
+
def system_arguments
|
16
|
+
@system_arguments.tap do |opts|
|
17
|
+
opts[:tag] = "div"
|
18
|
+
opts[:data] ||= {}
|
19
|
+
prepend_option(opts[:data], :controller, "polaris-collapsible")
|
20
|
+
opts[:classes] = class_names(
|
21
|
+
@system_arguments[:classes],
|
22
|
+
"Polaris-Collapsible",
|
23
|
+
"Polaris-Collapsible--isFullyClosed": !@open,
|
24
|
+
"Polaris-Collapsible--expandOnPrint": @expand_on_print
|
25
|
+
)
|
26
|
+
opts[:style] = class_names(
|
27
|
+
@open ? "max-height: none;" : "max-height: 0px;",
|
28
|
+
@open ? "overflow: visible;" : "overflow: hidden;"
|
29
|
+
)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def call
|
34
|
+
render(Polaris::BaseComponent.new(**system_arguments)) { content }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Polaris
|
4
|
+
class KeyboardKeyComponent < Polaris::Component
|
5
|
+
def initialize(**system_arguments)
|
6
|
+
@system_arguments = system_arguments
|
7
|
+
end
|
8
|
+
|
9
|
+
def system_arguments
|
10
|
+
@system_arguments.tap do |opts|
|
11
|
+
opts[:tag] = "div"
|
12
|
+
opts[:classes] = class_names(opts[:classes], "Polaris-KeyboardKey")
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def call
|
17
|
+
render(Polaris::BaseComponent.new(**system_arguments)) { content }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -29,6 +29,7 @@ module Polaris
|
|
29
29
|
def initialize(
|
30
30
|
url: nil,
|
31
31
|
vertical_alignment: ALIGNMENT_DEFAULT,
|
32
|
+
cursor: CURSOR_DEFAULT,
|
32
33
|
selectable: false,
|
33
34
|
offset: false,
|
34
35
|
wrapper_arguments: {},
|
@@ -37,6 +38,7 @@ module Polaris
|
|
37
38
|
)
|
38
39
|
@url = url
|
39
40
|
@vertical_alignment = vertical_alignment
|
41
|
+
@cursor = fetch_or_fallback(CURSOR_OPTIONS, cursor, CURSOR_DEFAULT)
|
40
42
|
@selectable = selectable
|
41
43
|
@offset = offset
|
42
44
|
@wrapper_arguments = wrapper_arguments
|
@@ -79,7 +81,7 @@ module Polaris
|
|
79
81
|
"Polaris-ResourceItem",
|
80
82
|
"Polaris-ResourceItem--selectable": @selectable
|
81
83
|
)
|
82
|
-
prepend_option(args, :style, "cursor: #{cursor};")
|
84
|
+
prepend_option(args, :style, "cursor: #{@cursor};")
|
83
85
|
prepend_option(args[:data], :action, "click->polaris-resource-item#open")
|
84
86
|
end
|
85
87
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Polaris
|
2
|
+
class SkeletonDisplayTextComponent < Polaris::Component
|
3
|
+
SIZE_DEFAULT = :medium
|
4
|
+
SIZE_MAPPINGS = {
|
5
|
+
small: "Polaris-SkeletonDisplayText--sizeSmall",
|
6
|
+
medium: "Polaris-SkeletonDisplayText--sizeMedium",
|
7
|
+
large: "Polaris-SkeletonDisplayText--sizeLarge",
|
8
|
+
extra_large: "Polaris-SkeletonDisplayText--sizeExtraLarge"
|
9
|
+
}
|
10
|
+
SIZE_OPTIONS = SIZE_MAPPINGS.keys
|
11
|
+
|
12
|
+
def initialize(size: SIZE_DEFAULT, **system_arguments)
|
13
|
+
@size = size
|
14
|
+
@system_arguments = system_arguments
|
15
|
+
end
|
16
|
+
|
17
|
+
def system_arguments
|
18
|
+
@system_arguments.tap do |opts|
|
19
|
+
opts[:tag] = "div"
|
20
|
+
opts[:classes] = class_names(
|
21
|
+
@system_arguments[:classes],
|
22
|
+
"Polaris-SkeletonDisplayText__DisplayText",
|
23
|
+
SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, @size, SIZE_DEFAULT)]
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def call
|
29
|
+
render(Polaris::BaseComponent.new(**system_arguments))
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Polaris
|
2
|
+
class SkeletonThumbnailComponent < Polaris::Component
|
3
|
+
SIZE_DEFAULT = :medium
|
4
|
+
SIZE_MAPPINGS = {
|
5
|
+
small: "Polaris-SkeletonThumbnail--sizeSmall",
|
6
|
+
medium: "Polaris-SkeletonThumbnail--sizeMedium",
|
7
|
+
large: "Polaris-SkeletonThumbnail--sizeLarge"
|
8
|
+
}
|
9
|
+
SIZE_OPTIONS = SIZE_MAPPINGS.keys
|
10
|
+
|
11
|
+
def initialize(size: SIZE_DEFAULT, **system_arguments)
|
12
|
+
@size = size
|
13
|
+
@system_arguments = system_arguments
|
14
|
+
end
|
15
|
+
|
16
|
+
def system_arguments
|
17
|
+
@system_arguments.tap do |opts|
|
18
|
+
opts[:tag] = "div"
|
19
|
+
opts[:classes] = class_names(
|
20
|
+
@system_arguments[:classes],
|
21
|
+
"Polaris-SkeletonThumbnail",
|
22
|
+
SIZE_MAPPINGS[fetch_or_fallback(SIZE_OPTIONS, @size, SIZE_DEFAULT)]
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def call
|
28
|
+
render(Polaris::BaseComponent.new(**system_arguments))
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -16,7 +16,7 @@ module Polaris
|
|
16
16
|
model: object.class.model_name.human.downcase
|
17
17
|
)
|
18
18
|
|
19
|
-
render Polaris::BannerComponent.new(title: title, status: :critical) do
|
19
|
+
render Polaris::BannerComponent.new(title: title, status: :critical, within: :container) do
|
20
20
|
render(Polaris::ListComponent.new) do |list|
|
21
21
|
object.errors.full_messages.each do |error|
|
22
22
|
list.item { error.html_safe }
|
@@ -19,6 +19,7 @@ module Polaris
|
|
19
19
|
checkbox: "Polaris::CheckboxComponent",
|
20
20
|
check_box: "Polaris::CheckboxComponent",
|
21
21
|
choice_list: "Polaris::ChoiceListComponent",
|
22
|
+
collapsible: "Polaris::CollapsibleComponent",
|
22
23
|
data_table: "Polaris::DataTableComponent",
|
23
24
|
description_list: "Polaris::DescriptionListComponent",
|
24
25
|
display_text: "Polaris::DisplayTextComponent",
|
@@ -33,6 +34,7 @@ module Polaris
|
|
33
34
|
icon: "Polaris::IconComponent",
|
34
35
|
index_table: "Polaris::IndexTableComponent",
|
35
36
|
inline_error: "Polaris::InlineErrorComponent",
|
37
|
+
keyboard_key: "Polaris::KeyboardKeyComponent",
|
36
38
|
layout: "Polaris::LayoutComponent",
|
37
39
|
link: "Polaris::LinkComponent",
|
38
40
|
list: "Polaris::ListComponent",
|
@@ -56,6 +58,8 @@ module Polaris
|
|
56
58
|
scrollable: "Polaris::ScrollableComponent",
|
57
59
|
spinner: "Polaris::SpinnerComponent",
|
58
60
|
skeleton_body_text: "Polaris::SkeletonBodyTextComponent",
|
61
|
+
skeleton_display_text: "Polaris::SkeletonDisplayTextComponent",
|
62
|
+
skeleton_thumbnail: "Polaris::SkeletonThumbnailComponent",
|
59
63
|
spacer: "Polaris::SpacerComponent",
|
60
64
|
tabs: "Polaris::TabsComponent",
|
61
65
|
tag: "Polaris::TagComponent",
|
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: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Gamble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -18,9 +18,6 @@ dependencies:
|
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 5.0.0
|
21
|
-
- - "<"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 8.0.0
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,9 +25,6 @@ dependencies:
|
|
28
25
|
- - ">="
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: 5.0.0
|
31
|
-
- - "<"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 8.0.0
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: view_component
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,9 +32,6 @@ dependencies:
|
|
38
32
|
- - ">="
|
39
33
|
- !ruby/object:Gem::Version
|
40
34
|
version: 2.0.0
|
41
|
-
- - "<"
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '3.0'
|
44
35
|
type: :runtime
|
45
36
|
prerelease: false
|
46
37
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -48,9 +39,6 @@ dependencies:
|
|
48
39
|
- - ">="
|
49
40
|
- !ruby/object:Gem::Version
|
50
41
|
version: 2.0.0
|
51
|
-
- - "<"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '3.0'
|
54
42
|
description:
|
55
43
|
email:
|
56
44
|
- dan@dangamble.co.uk
|
@@ -71,8 +59,10 @@ files:
|
|
71
59
|
- app/assets/icons/polaris/AffiliateMajor.svg
|
72
60
|
- app/assets/icons/polaris/AlertMinor.svg
|
73
61
|
- app/assets/icons/polaris/AnalyticsMajor.svg
|
62
|
+
- app/assets/icons/polaris/AnalyticsMinor.svg
|
74
63
|
- app/assets/icons/polaris/AppExtensionMinor.svg
|
75
64
|
- app/assets/icons/polaris/AppsMajor.svg
|
65
|
+
- app/assets/icons/polaris/AppsMinor.svg
|
76
66
|
- app/assets/icons/polaris/ArchiveMajor.svg
|
77
67
|
- app/assets/icons/polaris/ArchiveMinor.svg
|
78
68
|
- app/assets/icons/polaris/ArrowDownMinor.svg
|
@@ -91,12 +81,14 @@ files:
|
|
91
81
|
- app/assets/icons/polaris/BillingStatementPoundMajor.svg
|
92
82
|
- app/assets/icons/polaris/BillingStatementRupeeMajor.svg
|
93
83
|
- app/assets/icons/polaris/BillingStatementYenMajor.svg
|
84
|
+
- app/assets/icons/polaris/BlockMinor.svg
|
94
85
|
- app/assets/icons/polaris/BlockquoteMajor.svg
|
95
86
|
- app/assets/icons/polaris/BlogMajor.svg
|
96
87
|
- app/assets/icons/polaris/BugMajor.svg
|
97
88
|
- app/assets/icons/polaris/ButtonCornerPillMajor.svg
|
98
89
|
- app/assets/icons/polaris/ButtonCornerRoundedMajor.svg
|
99
90
|
- app/assets/icons/polaris/ButtonCornerSquareMajor.svg
|
91
|
+
- app/assets/icons/polaris/ButtonMinor.svg
|
100
92
|
- app/assets/icons/polaris/BuyButtonButtonLayoutMajor.svg
|
101
93
|
- app/assets/icons/polaris/BuyButtonHorizontalLayoutMajor.svg
|
102
94
|
- app/assets/icons/polaris/BuyButtonMajor.svg
|
@@ -152,6 +144,7 @@ files:
|
|
152
144
|
- app/assets/icons/polaris/CirclePlusOutlineMinor.svg
|
153
145
|
- app/assets/icons/polaris/CircleRightMajor.svg
|
154
146
|
- app/assets/icons/polaris/CircleTickMajor.svg
|
147
|
+
- app/assets/icons/polaris/CircleTickMinor.svg
|
155
148
|
- app/assets/icons/polaris/CircleTickOutlineMinor.svg
|
156
149
|
- app/assets/icons/polaris/CircleUpMajor.svg
|
157
150
|
- app/assets/icons/polaris/ClipboardMinor.svg
|
@@ -165,6 +158,7 @@ files:
|
|
165
158
|
- app/assets/icons/polaris/ColumnWithTextMajor.svg
|
166
159
|
- app/assets/icons/polaris/Columns2Major.svg
|
167
160
|
- app/assets/icons/polaris/Columns3Major.svg
|
161
|
+
- app/assets/icons/polaris/Columns3Minor.svg
|
168
162
|
- app/assets/icons/polaris/ComposeMajor.svg
|
169
163
|
- app/assets/icons/polaris/ConfettiMajor.svg
|
170
164
|
- app/assets/icons/polaris/ConnectMinor.svg
|
@@ -187,6 +181,7 @@ files:
|
|
187
181
|
- app/assets/icons/polaris/DiscountAutomaticMajor.svg
|
188
182
|
- app/assets/icons/polaris/DiscountCodeMajor.svg
|
189
183
|
- app/assets/icons/polaris/DiscountsMajor.svg
|
184
|
+
- app/assets/icons/polaris/DiscountsMinor.svg
|
190
185
|
- app/assets/icons/polaris/DisputeMinor.svg
|
191
186
|
- app/assets/icons/polaris/DnsSettingsMajor.svg
|
192
187
|
- app/assets/icons/polaris/DomainNewMajor.svg
|
@@ -214,6 +209,8 @@ files:
|
|
214
209
|
- app/assets/icons/polaris/FeaturedCollectionMajor.svg
|
215
210
|
- app/assets/icons/polaris/FeaturedContentMajor.svg
|
216
211
|
- app/assets/icons/polaris/FilterMajor.svg
|
212
|
+
- app/assets/icons/polaris/FinancesMajor.svg
|
213
|
+
- app/assets/icons/polaris/FinancesMinor.svg
|
217
214
|
- app/assets/icons/polaris/FirstOrderMajor.svg
|
218
215
|
- app/assets/icons/polaris/FirstVisitMajor.svg
|
219
216
|
- app/assets/icons/polaris/FlagMajor.svg
|
@@ -246,6 +243,7 @@ files:
|
|
246
243
|
- app/assets/icons/polaris/HideMinor.svg
|
247
244
|
- app/assets/icons/polaris/HintMajor.svg
|
248
245
|
- app/assets/icons/polaris/HomeMajor.svg
|
246
|
+
- app/assets/icons/polaris/HomeMinor.svg
|
249
247
|
- app/assets/icons/polaris/HorizontalDotsMinor.svg
|
250
248
|
- app/assets/icons/polaris/IconsMajor.svg
|
251
249
|
- app/assets/icons/polaris/IllustrationMajor.svg
|
@@ -282,6 +280,7 @@ files:
|
|
282
280
|
- app/assets/icons/polaris/MarkFulfilledMinor.svg
|
283
281
|
- app/assets/icons/polaris/MarkPaidMinor.svg
|
284
282
|
- app/assets/icons/polaris/MarketingMajor.svg
|
283
|
+
- app/assets/icons/polaris/MarketingMinor.svg
|
285
284
|
- app/assets/icons/polaris/MaximizeMajor.svg
|
286
285
|
- app/assets/icons/polaris/MaximizeMinor.svg
|
287
286
|
- app/assets/icons/polaris/MentionMajor.svg
|
@@ -305,8 +304,10 @@ files:
|
|
305
304
|
- app/assets/icons/polaris/NoteMinor.svg
|
306
305
|
- app/assets/icons/polaris/NotificationMajor.svg
|
307
306
|
- app/assets/icons/polaris/OnlineStoreMajor.svg
|
307
|
+
- app/assets/icons/polaris/OnlineStoreMinor.svg
|
308
308
|
- app/assets/icons/polaris/OrderStatusMinor.svg
|
309
309
|
- app/assets/icons/polaris/OrdersMajor.svg
|
310
|
+
- app/assets/icons/polaris/OrdersMinor.svg
|
310
311
|
- app/assets/icons/polaris/OutgoingMajor.svg
|
311
312
|
- app/assets/icons/polaris/PackageMajor.svg
|
312
313
|
- app/assets/icons/polaris/PageDownMajor.svg
|
@@ -337,9 +338,12 @@ files:
|
|
337
338
|
- app/assets/icons/polaris/PrintMinor.svg
|
338
339
|
- app/assets/icons/polaris/ProductReturnsMinor.svg
|
339
340
|
- app/assets/icons/polaris/ProductsMajor.svg
|
341
|
+
- app/assets/icons/polaris/ProductsMinor.svg
|
340
342
|
- app/assets/icons/polaris/ProfileMajor.svg
|
341
343
|
- app/assets/icons/polaris/ProfileMinor.svg
|
342
344
|
- app/assets/icons/polaris/PromoteMinor.svg
|
345
|
+
- app/assets/icons/polaris/QuestionMarkInverseMajor.svg
|
346
|
+
- app/assets/icons/polaris/QuestionMarkInverseMinor.svg
|
343
347
|
- app/assets/icons/polaris/QuestionMarkMajor.svg
|
344
348
|
- app/assets/icons/polaris/QuestionMarkMinor.svg
|
345
349
|
- app/assets/icons/polaris/QuickSaleMajor.svg
|
@@ -418,6 +422,7 @@ files:
|
|
418
422
|
- app/assets/icons/polaris/TickSmallMinor.svg
|
419
423
|
- app/assets/icons/polaris/TimelineAttachmentMajor.svg
|
420
424
|
- app/assets/icons/polaris/TipsMajor.svg
|
425
|
+
- app/assets/icons/polaris/TitleMinor.svg
|
421
426
|
- app/assets/icons/polaris/ToolsMajor.svg
|
422
427
|
- app/assets/icons/polaris/TransactionFeeDollarMajor.svg
|
423
428
|
- app/assets/icons/polaris/TransactionFeeEuroMajor.svg
|
@@ -444,12 +449,14 @@ files:
|
|
444
449
|
- app/assets/icons/polaris/ViewportWideMajor.svg
|
445
450
|
- app/assets/icons/polaris/VocabularyMajor.svg
|
446
451
|
- app/assets/icons/polaris/WandMajor.svg
|
452
|
+
- app/assets/icons/polaris/WandMinor.svg
|
447
453
|
- app/assets/icons/polaris/WearableMajor.svg
|
448
454
|
- app/assets/icons/polaris/WholesaleMajor.svg
|
449
455
|
- app/assets/icons/polaris/WifiMajor.svg
|
450
456
|
- app/assets/javascripts/polaris_view_components.js
|
451
457
|
- app/assets/javascripts/polaris_view_components/autocomplete_controller.js
|
452
458
|
- app/assets/javascripts/polaris_view_components/button_controller.js
|
459
|
+
- app/assets/javascripts/polaris_view_components/collapsible_controller.js
|
453
460
|
- app/assets/javascripts/polaris_view_components/dropzone_controller.js
|
454
461
|
- app/assets/javascripts/polaris_view_components/frame_controller.js
|
455
462
|
- app/assets/javascripts/polaris_view_components/index.js
|
@@ -462,7 +469,8 @@ files:
|
|
462
469
|
- app/assets/javascripts/polaris_view_components/select_controller.js
|
463
470
|
- app/assets/javascripts/polaris_view_components/text_field_controller.js
|
464
471
|
- app/assets/javascripts/polaris_view_components/toast_controller.js
|
465
|
-
- app/assets/javascripts/polaris_view_components/utils.js
|
472
|
+
- app/assets/javascripts/polaris_view_components/utils/index.js
|
473
|
+
- app/assets/javascripts/polaris_view_components/utils/use-transition.js
|
466
474
|
- app/assets/stylesheets/polaris_view_components.css
|
467
475
|
- app/assets/stylesheets/polaris_view_components.postcss.css
|
468
476
|
- app/assets/stylesheets/polaris_view_components/custom.css
|
@@ -511,6 +519,7 @@ files:
|
|
511
519
|
- app/components/polaris/choice_component.rb
|
512
520
|
- app/components/polaris/choice_list_component.html.erb
|
513
521
|
- app/components/polaris/choice_list_component.rb
|
522
|
+
- app/components/polaris/collapsible_component.rb
|
514
523
|
- app/components/polaris/component.rb
|
515
524
|
- app/components/polaris/data_table/cell_component.html.erb
|
516
525
|
- app/components/polaris/data_table/cell_component.rb
|
@@ -554,6 +563,7 @@ files:
|
|
554
563
|
- app/components/polaris/index_table_component.rb
|
555
564
|
- app/components/polaris/inline_error_component.html.erb
|
556
565
|
- app/components/polaris/inline_error_component.rb
|
566
|
+
- app/components/polaris/keyboard_key_component.rb
|
557
567
|
- app/components/polaris/label_component.html.erb
|
558
568
|
- app/components/polaris/label_component.rb
|
559
569
|
- app/components/polaris/labelled_component.html.erb
|
@@ -613,6 +623,8 @@ files:
|
|
613
623
|
- app/components/polaris/shopify_navigation_component.rb
|
614
624
|
- app/components/polaris/skeleton_body_text_component.html.erb
|
615
625
|
- app/components/polaris/skeleton_body_text_component.rb
|
626
|
+
- app/components/polaris/skeleton_display_text_component.rb
|
627
|
+
- app/components/polaris/skeleton_thumbnail_component.rb
|
616
628
|
- app/components/polaris/spacer_component.rb
|
617
629
|
- app/components/polaris/spinner_component.html.erb
|
618
630
|
- app/components/polaris/spinner_component.rb
|
@@ -644,6 +656,7 @@ files:
|
|
644
656
|
- app/helpers/polaris/url_helper.rb
|
645
657
|
- app/helpers/polaris/view_helper.rb
|
646
658
|
- app/validators/type_validator.rb
|
659
|
+
- config/locales/en.yml
|
647
660
|
- lib/generators/polaris_view_components/USAGE
|
648
661
|
- lib/generators/polaris_view_components/install_generator.rb
|
649
662
|
- lib/generators/polaris_view_components/templates/README
|