primer_view_components 0.0.120 → 0.0.121
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 +38 -0
- data/app/components/primer/alpha/segmented_control/item.rb +1 -0
- data/app/components/primer/alpha/segmented_control.rb +30 -0
- data/app/components/primer/alpha/text_field.rb +1 -0
- data/app/components/primer/base_component.rb +3 -3
- data/app/components/primer/beta/close_button.rb +1 -1
- data/app/components/primer/{local_time.d.ts → beta/relative_time.d.ts} +0 -0
- data/app/components/primer/{local_time.js → beta/relative_time.js} +0 -0
- data/app/components/primer/{local_time.ts → beta/relative_time.ts} +0 -0
- data/app/components/primer/component.rb +2 -1
- data/app/components/primer/primer.d.ts +1 -2
- data/app/components/primer/primer.js +1 -2
- data/app/components/primer/primer.ts +1 -2
- data/app/forms/example_toggle_switch_form.rb +1 -1
- data/app/lib/primer/view_helper.rb +0 -1
- data/lib/primer/deprecations.yml +0 -78
- data/lib/primer/forms/acts_as_component.rb +12 -1
- data/lib/primer/forms/toggle_switch_form.rb +10 -3
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/primer/yard/component_manifest.rb +0 -2
- data/lib/tasks/static.rake +22 -0
- data/previews/primer/alpha/auto_complete_preview.rb +6 -6
- data/previews/primer/alpha/segmented_control_preview/with_label_and_caption.html.erb +9 -0
- data/previews/primer/alpha/segmented_control_preview/with_subhead_actions.html.erb +11 -0
- data/previews/primer/alpha/segmented_control_preview.rb +7 -1
- data/previews/primer/alpha/text_field_preview.rb +14 -0
- data/previews/primer/alpha/toggle_switch_preview.rb +9 -9
- data/previews/primer/beta/auto_complete_preview.rb +17 -17
- data/previews/primer/url_helpers.rb +1 -1
- data/static/arguments.json +6 -100
- data/static/audited_at.json +2 -21
- data/static/constants.json +0 -51
- data/static/previews.json +1634 -0
- data/static/statuses.json +0 -19
- metadata +8 -27
- data/app/components/primer/dropdown/menu.rb +0 -14
- data/app/components/primer/dropdown.rb +0 -7
- data/app/components/primer/hellip_button.rb +0 -7
- data/app/components/primer/label_component.rb +0 -7
- data/app/components/primer/link_component.rb +0 -7
- data/app/components/primer/local_time.rb +0 -63
- data/app/components/primer/markdown.rb +0 -7
- data/app/components/primer/menu_component.rb +0 -7
- data/app/components/primer/octicon_component.rb +0 -7
- data/app/components/primer/octicon_symbols_component.rb +0 -7
- data/app/components/primer/popover_component.rb +0 -8
- data/app/components/primer/spinner_component.rb +0 -7
- data/app/components/primer/state_component.rb +0 -7
- data/app/components/primer/subhead_component.rb +0 -7
- data/app/components/primer/tab_container_component.rb +0 -7
- data/app/components/primer/time_ago_component.d.ts +0 -1
- data/app/components/primer/time_ago_component.js +0 -1
- data/app/components/primer/time_ago_component.rb +0 -51
- data/app/components/primer/time_ago_component.ts +0 -1
- data/app/components/primer/timeline_item_component.rb +0 -13
- data/previews/primer/local_time_component_preview.rb +0 -57
- data/previews/primer/time_ago_component_preview.rb +0 -27
|
@@ -21,7 +21,7 @@ module Primer
|
|
|
21
21
|
# @param inset toggle
|
|
22
22
|
# @param monospace toggle
|
|
23
23
|
def playground(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id", inset: false, monospace: false)
|
|
24
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
24
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name, inset: inset, monospace: monospace)) do |component|
|
|
25
25
|
component.with_leading_visual_icon(icon: :search)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
@@ -41,7 +41,7 @@ module Primer
|
|
|
41
41
|
# @param inset toggle
|
|
42
42
|
# @param monospace toggle
|
|
43
43
|
def default(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id", inset: false, monospace: false)
|
|
44
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
44
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name, inset: inset, monospace: monospace)) do |component|
|
|
45
45
|
component.with_leading_visual_icon(icon: :search)
|
|
46
46
|
end
|
|
47
47
|
end
|
|
@@ -87,7 +87,7 @@ module Primer
|
|
|
87
87
|
# @param list_id text
|
|
88
88
|
# @param input_name text
|
|
89
89
|
def leading_visual(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id")
|
|
90
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
90
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name)) do |component|
|
|
91
91
|
component.with_leading_visual_icon(icon: :search)
|
|
92
92
|
end
|
|
93
93
|
end
|
|
@@ -105,7 +105,7 @@ module Primer
|
|
|
105
105
|
# @param list_id text
|
|
106
106
|
# @param input_name text
|
|
107
107
|
def trailing_action(label_text: "Select a fruit", show_clear_button: true, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id")
|
|
108
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
108
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name))
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
# @label Full width
|
|
@@ -121,7 +121,7 @@ module Primer
|
|
|
121
121
|
# @param list_id text
|
|
122
122
|
# @param input_name text
|
|
123
123
|
def full_width(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: true, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id")
|
|
124
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
124
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name)) do |component|
|
|
125
125
|
component.with_leading_visual_icon(icon: :search)
|
|
126
126
|
end
|
|
127
127
|
end
|
|
@@ -139,7 +139,7 @@ module Primer
|
|
|
139
139
|
# @param list_id text
|
|
140
140
|
# @param input_name text
|
|
141
141
|
def visually_hide_label(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: true, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id")
|
|
142
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
142
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name)) do |component|
|
|
143
143
|
component.with_leading_visual_icon(icon: :search)
|
|
144
144
|
end
|
|
145
145
|
end
|
|
@@ -158,7 +158,7 @@ module Primer
|
|
|
158
158
|
# @param list_id text
|
|
159
159
|
# @param input_name text
|
|
160
160
|
def small(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :small, full_width: false, disabled: false, invalid: false, input_id: "input-id-1", list_id: "list-id-1", input_name: "input-id-1")
|
|
161
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
161
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name)) do |component|
|
|
162
162
|
component.with_leading_visual_icon(icon: :search)
|
|
163
163
|
end
|
|
164
164
|
end
|
|
@@ -175,7 +175,7 @@ module Primer
|
|
|
175
175
|
# @param list_id text
|
|
176
176
|
# @param input_name text
|
|
177
177
|
def medium(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id-2", list_id: "list-id-2", input_name: "input-id-2")
|
|
178
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
178
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name)) do |component|
|
|
179
179
|
component.with_leading_visual_icon(icon: :search)
|
|
180
180
|
end
|
|
181
181
|
end
|
|
@@ -192,7 +192,7 @@ module Primer
|
|
|
192
192
|
# @param list_id text
|
|
193
193
|
# @param input_name text
|
|
194
194
|
def large(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :large, full_width: false, disabled: false, invalid: false, input_id: "input-id-3", list_id: "list-id-3", input_name: "input-id-3")
|
|
195
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
195
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path, show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name)) do |component|
|
|
196
196
|
component.with_leading_visual_icon(icon: :search)
|
|
197
197
|
end
|
|
198
198
|
end
|
|
@@ -212,7 +212,7 @@ module Primer
|
|
|
212
212
|
# @param list_id text
|
|
213
213
|
# @param input_name text
|
|
214
214
|
def leading_visual_in_results(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id")
|
|
215
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
215
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path(visual: "leading"), show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name))
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
# @label Trailing visual in results
|
|
@@ -228,39 +228,39 @@ module Primer
|
|
|
228
228
|
# @param list_id text
|
|
229
229
|
# @param input_name text
|
|
230
230
|
def trailing_visual_in_results(label_text: "Select a fruit", show_clear_button: false, visually_hide_label: false, placeholder: "Placeholder text", size: :medium, full_width: false, disabled: false, invalid: false, input_id: "input-id", list_id: "list-id", input_name: "input-id")
|
|
231
|
-
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src:
|
|
231
|
+
render(Primer::Beta::AutoComplete.new(label_text: label_text, input_id: input_id, list_id: list_id, src: UrlHelpers.autocomplete_index_path(visual: "trailing"), show_clear_button: show_clear_button, visually_hide_label: visually_hide_label, placeholder: placeholder, size: size, full_width: full_width, disabled: disabled, invalid: invalid, input_name: input_name))
|
|
232
232
|
end
|
|
233
233
|
|
|
234
234
|
# @hidden
|
|
235
235
|
def with_non_visible_label
|
|
236
|
-
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src:
|
|
236
|
+
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src: UrlHelpers.autocomplete_index_path, visually_hide_label: true))
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @hidden
|
|
240
240
|
def with_icon
|
|
241
|
-
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src:
|
|
241
|
+
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src: UrlHelpers.autocomplete_index_path)) do |component|
|
|
242
242
|
component.with_leading_visual_icon(icon: :search)
|
|
243
243
|
end
|
|
244
244
|
end
|
|
245
245
|
|
|
246
246
|
# @hidden
|
|
247
247
|
def show_clear_button
|
|
248
|
-
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src:
|
|
248
|
+
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src: UrlHelpers.autocomplete_index_path, show_clear_button: true))
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# @hidden
|
|
252
252
|
def size_small
|
|
253
|
-
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src:
|
|
253
|
+
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src: UrlHelpers.autocomplete_index_path, show_clear_button: false, size: :small))
|
|
254
254
|
end
|
|
255
255
|
|
|
256
256
|
# @hidden
|
|
257
257
|
def monospace
|
|
258
|
-
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src:
|
|
258
|
+
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src: UrlHelpers.autocomplete_index_path, show_clear_button: false, monospace: true))
|
|
259
259
|
end
|
|
260
260
|
|
|
261
261
|
# @hidden
|
|
262
262
|
def inset
|
|
263
|
-
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src:
|
|
263
|
+
render(Primer::Beta::AutoComplete.new(label_text: "Select a fruit", input_id: "input-id", list_id: "test-id", src: UrlHelpers.autocomplete_index_path, show_clear_button: false, inset: true))
|
|
264
264
|
end
|
|
265
265
|
end
|
|
266
266
|
end
|
data/static/arguments.json
CHANGED
|
@@ -859,6 +859,12 @@
|
|
|
859
859
|
"default": "N/A",
|
|
860
860
|
"description": "System arugments passed to the Rails builder's `#label` method. These arguments will appear as HTML attributes on the `<label>` tag."
|
|
861
861
|
},
|
|
862
|
+
{
|
|
863
|
+
"name": "auto_check_src",
|
|
864
|
+
"type": "String",
|
|
865
|
+
"default": "N/A",
|
|
866
|
+
"description": "When provided, makes a request to the given URL whenever the contents of the text field changes. If the server responds with a non-2xx status code, the response body is used as the validation message."
|
|
867
|
+
},
|
|
862
868
|
{
|
|
863
869
|
"name": "system_arguments",
|
|
864
870
|
"type": "Hash",
|
|
@@ -2325,80 +2331,6 @@
|
|
|
2325
2331
|
}
|
|
2326
2332
|
]
|
|
2327
2333
|
},
|
|
2328
|
-
{
|
|
2329
|
-
"component": "LocalTime",
|
|
2330
|
-
"status": "deprecated",
|
|
2331
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/local_time.rb",
|
|
2332
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/local_time/default/",
|
|
2333
|
-
"parameters": [
|
|
2334
|
-
{
|
|
2335
|
-
"name": "datetime",
|
|
2336
|
-
"type": "DateTime",
|
|
2337
|
-
"default": "N/A",
|
|
2338
|
-
"description": "The date to parse"
|
|
2339
|
-
},
|
|
2340
|
-
{
|
|
2341
|
-
"name": "initial_text",
|
|
2342
|
-
"type": "String",
|
|
2343
|
-
"default": "`nil`",
|
|
2344
|
-
"description": "Text to render before component is initialized"
|
|
2345
|
-
},
|
|
2346
|
-
{
|
|
2347
|
-
"name": "weekday",
|
|
2348
|
-
"type": "Symbol",
|
|
2349
|
-
"default": "`:short`",
|
|
2350
|
-
"description": "One of `:long` or `:short`."
|
|
2351
|
-
},
|
|
2352
|
-
{
|
|
2353
|
-
"name": "year",
|
|
2354
|
-
"type": "Symbol",
|
|
2355
|
-
"default": "`:numeric`",
|
|
2356
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2357
|
-
},
|
|
2358
|
-
{
|
|
2359
|
-
"name": "month",
|
|
2360
|
-
"type": "Symbol",
|
|
2361
|
-
"default": "`:short`",
|
|
2362
|
-
"description": "One of `:long` or `:short`."
|
|
2363
|
-
},
|
|
2364
|
-
{
|
|
2365
|
-
"name": "day",
|
|
2366
|
-
"type": "Symbol",
|
|
2367
|
-
"default": "`:numeric`",
|
|
2368
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2369
|
-
},
|
|
2370
|
-
{
|
|
2371
|
-
"name": "hour",
|
|
2372
|
-
"type": "Symbol",
|
|
2373
|
-
"default": "`:numeric`",
|
|
2374
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2375
|
-
},
|
|
2376
|
-
{
|
|
2377
|
-
"name": "minute",
|
|
2378
|
-
"type": "Symbol",
|
|
2379
|
-
"default": "`:numeric`",
|
|
2380
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2381
|
-
},
|
|
2382
|
-
{
|
|
2383
|
-
"name": "second",
|
|
2384
|
-
"type": "Symbol",
|
|
2385
|
-
"default": "`:numeric`",
|
|
2386
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
"name": "time_zone_name",
|
|
2390
|
-
"type": "Symbol",
|
|
2391
|
-
"default": "`:short`",
|
|
2392
|
-
"description": "One of `:long` or `:short`."
|
|
2393
|
-
},
|
|
2394
|
-
{
|
|
2395
|
-
"name": "system_arguments",
|
|
2396
|
-
"type": "Hash",
|
|
2397
|
-
"default": "N/A",
|
|
2398
|
-
"description": "[System arguments](/system-arguments)"
|
|
2399
|
-
}
|
|
2400
|
-
]
|
|
2401
|
-
},
|
|
2402
2334
|
{
|
|
2403
2335
|
"component": "Navigation::Tab",
|
|
2404
2336
|
"status": "alpha",
|
|
@@ -2449,32 +2381,6 @@
|
|
|
2449
2381
|
}
|
|
2450
2382
|
]
|
|
2451
2383
|
},
|
|
2452
|
-
{
|
|
2453
|
-
"component": "TimeAgo",
|
|
2454
|
-
"status": "deprecated",
|
|
2455
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/time_ago_component.rb",
|
|
2456
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/time_ago/default/",
|
|
2457
|
-
"parameters": [
|
|
2458
|
-
{
|
|
2459
|
-
"name": "time",
|
|
2460
|
-
"type": "Time",
|
|
2461
|
-
"default": "N/A",
|
|
2462
|
-
"description": "The time to be formatted"
|
|
2463
|
-
},
|
|
2464
|
-
{
|
|
2465
|
-
"name": "micro",
|
|
2466
|
-
"type": "Boolean",
|
|
2467
|
-
"default": "`false`",
|
|
2468
|
-
"description": "If true then the text will be formatted in \"micro\" mode, using as few characters as possible"
|
|
2469
|
-
},
|
|
2470
|
-
{
|
|
2471
|
-
"name": "system_arguments",
|
|
2472
|
-
"type": "Hash",
|
|
2473
|
-
"default": "N/A",
|
|
2474
|
-
"description": "[System arguments](/system-arguments)"
|
|
2475
|
-
}
|
|
2476
|
-
]
|
|
2477
|
-
},
|
|
2478
2384
|
{
|
|
2479
2385
|
"component": "Tooltip",
|
|
2480
2386
|
"status": "deprecated",
|
data/static/audited_at.json
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"Primer::Alpha::NavList::Item": "",
|
|
27
27
|
"Primer::Alpha::NavList::Section": "",
|
|
28
28
|
"Primer::Alpha::OcticonSymbols": "",
|
|
29
|
-
"Primer::Alpha::SegmentedControl": "",
|
|
30
|
-
"Primer::Alpha::SegmentedControl::Item": "",
|
|
29
|
+
"Primer::Alpha::SegmentedControl": "2023-02-01",
|
|
30
|
+
"Primer::Alpha::SegmentedControl::Item": "2023-02-01",
|
|
31
31
|
"Primer::Alpha::TabContainer": "",
|
|
32
32
|
"Primer::Alpha::TabNav": "",
|
|
33
33
|
"Primer::Alpha::TabPanels": "",
|
|
@@ -76,28 +76,9 @@
|
|
|
76
76
|
"Primer::ButtonComponent": "",
|
|
77
77
|
"Primer::ConditionalWrapper": "",
|
|
78
78
|
"Primer::Content": "",
|
|
79
|
-
"Primer::Dropdown": "",
|
|
80
|
-
"Primer::Dropdown::Menu": "",
|
|
81
|
-
"Primer::Dropdown::Menu::Item": "",
|
|
82
|
-
"Primer::HellipButton": "",
|
|
83
79
|
"Primer::IconButton": "",
|
|
84
|
-
"Primer::LabelComponent": "",
|
|
85
80
|
"Primer::LayoutComponent": "",
|
|
86
|
-
"Primer::LinkComponent": "",
|
|
87
|
-
"Primer::LocalTime": "",
|
|
88
|
-
"Primer::Markdown": "",
|
|
89
|
-
"Primer::MenuComponent": "",
|
|
90
81
|
"Primer::Navigation::TabComponent": "",
|
|
91
|
-
"Primer::OcticonComponent": "",
|
|
92
|
-
"Primer::OcticonSymbolsComponent": "",
|
|
93
|
-
"Primer::PopoverComponent": "",
|
|
94
|
-
"Primer::SpinnerComponent": "",
|
|
95
|
-
"Primer::StateComponent": "",
|
|
96
|
-
"Primer::SubheadComponent": "",
|
|
97
|
-
"Primer::TabContainerComponent": "",
|
|
98
|
-
"Primer::TimeAgoComponent": "",
|
|
99
|
-
"Primer::TimelineItemComponent": "",
|
|
100
|
-
"Primer::TimelineItemComponent::BadgeComponent": "",
|
|
101
82
|
"Primer::Tooltip": "",
|
|
102
83
|
"Primer::Truncate": ""
|
|
103
84
|
}
|
data/static/constants.json
CHANGED
|
@@ -1033,16 +1033,6 @@
|
|
|
1033
1033
|
},
|
|
1034
1034
|
"Primer::Content": {
|
|
1035
1035
|
},
|
|
1036
|
-
"Primer::Dropdown": {
|
|
1037
|
-
"Menu": "Primer::Dropdown::Menu"
|
|
1038
|
-
},
|
|
1039
|
-
"Primer::Dropdown::Menu": {
|
|
1040
|
-
"Item": "Primer::Dropdown::Menu::Item"
|
|
1041
|
-
},
|
|
1042
|
-
"Primer::Dropdown::Menu::Item": {
|
|
1043
|
-
},
|
|
1044
|
-
"Primer::HellipButton": {
|
|
1045
|
-
},
|
|
1046
1036
|
"Primer::IconButton": {
|
|
1047
1037
|
"DEFAULT_SCHEME": "default",
|
|
1048
1038
|
"SCHEME_MAPPINGS": {
|
|
@@ -1054,8 +1044,6 @@
|
|
|
1054
1044
|
"danger"
|
|
1055
1045
|
]
|
|
1056
1046
|
},
|
|
1057
|
-
"Primer::LabelComponent": {
|
|
1058
|
-
},
|
|
1059
1047
|
"Primer::LayoutComponent": {
|
|
1060
1048
|
"ALLOWED_SIDEBAR_COLS": [
|
|
1061
1049
|
1,
|
|
@@ -1078,24 +1066,6 @@
|
|
|
1078
1066
|
"DEFAULT_SIDEBAR_COL": 3,
|
|
1079
1067
|
"MAX_COL": 12
|
|
1080
1068
|
},
|
|
1081
|
-
"Primer::LinkComponent": {
|
|
1082
|
-
},
|
|
1083
|
-
"Primer::LocalTime": {
|
|
1084
|
-
"DEFAULT_DIGIT_TYPE": "numeric",
|
|
1085
|
-
"DEFAULT_TEXT_TYPE": "short",
|
|
1086
|
-
"DIGIT_TYPE_OPTIONS": [
|
|
1087
|
-
"numeric",
|
|
1088
|
-
"2-digit"
|
|
1089
|
-
],
|
|
1090
|
-
"TEXT_TYPE_OPTIONS": [
|
|
1091
|
-
"short",
|
|
1092
|
-
"long"
|
|
1093
|
-
]
|
|
1094
|
-
},
|
|
1095
|
-
"Primer::Markdown": {
|
|
1096
|
-
},
|
|
1097
|
-
"Primer::MenuComponent": {
|
|
1098
|
-
},
|
|
1099
1069
|
"Primer::Navigation::TabComponent": {
|
|
1100
1070
|
"ARIA_CURRENT_OPTIONS_FOR_ANCHOR": [
|
|
1101
1071
|
true,
|
|
@@ -1103,27 +1073,6 @@
|
|
|
1103
1073
|
],
|
|
1104
1074
|
"DEFAULT_ARIA_CURRENT_FOR_ANCHOR": "page"
|
|
1105
1075
|
},
|
|
1106
|
-
"Primer::OcticonComponent": {
|
|
1107
|
-
},
|
|
1108
|
-
"Primer::OcticonSymbolsComponent": {
|
|
1109
|
-
},
|
|
1110
|
-
"Primer::PopoverComponent": {
|
|
1111
|
-
},
|
|
1112
|
-
"Primer::SpinnerComponent": {
|
|
1113
|
-
},
|
|
1114
|
-
"Primer::StateComponent": {
|
|
1115
|
-
},
|
|
1116
|
-
"Primer::SubheadComponent": {
|
|
1117
|
-
},
|
|
1118
|
-
"Primer::TabContainerComponent": {
|
|
1119
|
-
},
|
|
1120
|
-
"Primer::TimeAgoComponent": {
|
|
1121
|
-
},
|
|
1122
|
-
"Primer::TimelineItemComponent": {
|
|
1123
|
-
"BadgeComponent": "Primer::TimelineItemComponent::BadgeComponent"
|
|
1124
|
-
},
|
|
1125
|
-
"Primer::TimelineItemComponent::BadgeComponent": {
|
|
1126
|
-
},
|
|
1127
1076
|
"Primer::Tooltip": {
|
|
1128
1077
|
"ALIGN_DEFAULT": "default",
|
|
1129
1078
|
"ALIGN_MAPPING": {
|