primer_view_components 0.0.72 → 0.0.75
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/CHANGELOG.md +41 -47
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/components/primer/alpha/tool-tip-element.js +21 -19
- data/app/components/primer/alpha/tool-tip-element.ts +22 -19
- data/app/components/primer/beta/auto_complete/auto_complete.html.erb +19 -17
- data/app/components/primer/beta/auto_complete/item.rb +8 -4
- data/app/components/primer/beta/auto_complete.rb +109 -33
- data/app/components/primer/clipboard_copy_component.ts +1 -1
- data/lib/primer/view_components/linters/super_in_component_templates.rb +65 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_arguments.rb +10 -0
- data/lib/tasks/docs.rake +1 -2
- data/static/arguments.yml +24 -13
- data/static/classes.yml +22 -7
- data/static/constants.json +12 -1
- metadata +3 -2
data/static/arguments.yml
CHANGED
@@ -210,28 +210,39 @@
|
|
210
210
|
type: String
|
211
211
|
default: N/A
|
212
212
|
description: Id of the list element.
|
213
|
-
- name:
|
213
|
+
- name: visually_hide_label
|
214
214
|
type: Boolean
|
215
215
|
default: "`false`"
|
216
|
-
description: Controls if
|
217
|
-
|
218
|
-
|
219
|
-
default: "`true`"
|
220
|
-
description: Controls if the label is visible. If `false`, screen reader only
|
221
|
-
text will be added.
|
222
|
-
- name: is_clearable
|
216
|
+
description: Controls if the label is visible. If `true`, screen reader only text
|
217
|
+
will be added.
|
218
|
+
- name: show_clear_button
|
223
219
|
type: Boolean
|
224
220
|
default: "`false`"
|
225
221
|
description: Adds optional clear button.
|
226
|
-
- name: is_label_inline
|
227
|
-
type: Boolean
|
228
|
-
default: "`false`"
|
229
|
-
description: Controls if the label is inline. On smaller screens, label will always
|
230
|
-
become stacked.
|
231
222
|
- name: system_arguments
|
232
223
|
type: Hash
|
233
224
|
default: N/A
|
234
225
|
description: "[System arguments](/system-arguments)"
|
226
|
+
- name: size
|
227
|
+
type: Hash
|
228
|
+
default: "`:medium`"
|
229
|
+
description: Input size can be small, medium (default), or large
|
230
|
+
- name: full_width
|
231
|
+
type: Boolean
|
232
|
+
default: "`false`"
|
233
|
+
description: Input can be full-width or fit to content
|
234
|
+
- name: disabled
|
235
|
+
type: Boolean
|
236
|
+
default: "`false`"
|
237
|
+
description: Disabled input
|
238
|
+
- name: invalid
|
239
|
+
type: Boolean
|
240
|
+
default: "`false`"
|
241
|
+
description: Invalid input
|
242
|
+
- name: placeholder
|
243
|
+
type: String
|
244
|
+
default: "`nil`"
|
245
|
+
description: The placeholder text displayed within the input
|
235
246
|
- component: AutoCompleteItem
|
236
247
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/auto_complete/item.rb
|
237
248
|
parameters:
|
data/static/classes.yml
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
---
|
2
|
+
- ".ActionList"
|
3
|
+
- ".ActionList-content"
|
4
|
+
- ".ActionList-item"
|
5
|
+
- ".ActionList-item-label"
|
2
6
|
- ".AvatarStack"
|
3
7
|
- ".AvatarStack--right"
|
4
8
|
- ".AvatarStack--three-plus"
|
@@ -19,6 +23,18 @@
|
|
19
23
|
- ".Counter"
|
20
24
|
- ".Counter--primary"
|
21
25
|
- ".Counter--secondary"
|
26
|
+
- ".FormControl"
|
27
|
+
- ".FormControl--input"
|
28
|
+
- ".FormControl--input-leadingVisual"
|
29
|
+
- ".FormControl--input-trailingAction"
|
30
|
+
- ".FormControl--medium"
|
31
|
+
- ".FormControl-fieldWrap"
|
32
|
+
- ".FormControl-fieldWrap--input"
|
33
|
+
- ".FormControl-fieldWrap--input-leadingVisual"
|
34
|
+
- ".FormControl-fieldWrap--input-trailingAction"
|
35
|
+
- ".FormControl-label"
|
36
|
+
- ".FormGroup"
|
37
|
+
- ".FormGroup--fullWidth"
|
22
38
|
- ".Label"
|
23
39
|
- ".Label--accent"
|
24
40
|
- ".Label--attention"
|
@@ -49,6 +65,12 @@
|
|
49
65
|
- ".Link--muted"
|
50
66
|
- ".Link--primary"
|
51
67
|
- ".Link--secondary"
|
68
|
+
- ".Overlay"
|
69
|
+
- ".Overlay--height-auto"
|
70
|
+
- ".Overlay--width-auto"
|
71
|
+
- ".Overlay-backdrop--anchor"
|
72
|
+
- ".Overlay-body"
|
73
|
+
- ".Overlay-body--paddingNone"
|
52
74
|
- ".Popover"
|
53
75
|
- ".Popover-message"
|
54
76
|
- ".Popover-message--large"
|
@@ -82,12 +104,6 @@
|
|
82
104
|
- ".UnderlineNav-item"
|
83
105
|
- ".UnderlineNav-octicon"
|
84
106
|
- ".anim-rotate"
|
85
|
-
- ".autocomplete-body"
|
86
|
-
- ".autocomplete-embedded-icon-wrap"
|
87
|
-
- ".autocomplete-item"
|
88
|
-
- ".autocomplete-label-inline"
|
89
|
-
- ".autocomplete-label-stacked"
|
90
|
-
- ".autocomplete-results"
|
91
107
|
- ".avatar"
|
92
108
|
- ".avatar-more"
|
93
109
|
- ".avatar-small"
|
@@ -167,7 +183,6 @@
|
|
167
183
|
- ".flex-justify-center"
|
168
184
|
- ".flex-shrink-0"
|
169
185
|
- ".float-right"
|
170
|
-
- ".form-control"
|
171
186
|
- ".gutter-condensed"
|
172
187
|
- ".gutter-lg"
|
173
188
|
- ".hidden-text-expander"
|
data/static/constants.json
CHANGED
@@ -199,7 +199,18 @@
|
|
199
199
|
]
|
200
200
|
},
|
201
201
|
"Primer::Beta::AutoComplete": {
|
202
|
-
"
|
202
|
+
"DEFAULT_SIZE": "medium",
|
203
|
+
"Item": "Primer::Beta::AutoComplete::Item",
|
204
|
+
"SIZE_MAPPINGS": {
|
205
|
+
"small": "FormControl--small",
|
206
|
+
"medium": "FormControl--medium",
|
207
|
+
"large": "FormControl--large"
|
208
|
+
},
|
209
|
+
"SIZE_OPTIONS": [
|
210
|
+
"small",
|
211
|
+
"medium",
|
212
|
+
"large"
|
213
|
+
]
|
203
214
|
},
|
204
215
|
"Primer::Beta::AutoComplete::Item": {
|
205
216
|
},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -541,6 +541,7 @@ files:
|
|
541
541
|
- lib/primer/view_components/linters/helpers/rubocop_helpers.rb
|
542
542
|
- lib/primer/view_components/linters/label_component_migration_counter.rb
|
543
543
|
- lib/primer/view_components/linters/subhead_component_migration_counter.rb
|
544
|
+
- lib/primer/view_components/linters/super_in_component_templates.rb
|
544
545
|
- lib/primer/view_components/linters/tag_tree_helpers.rb
|
545
546
|
- lib/primer/view_components/linters/two_column_layout_migration_counter.rb
|
546
547
|
- lib/primer/view_components/statuses.rb
|