openproject-primer_view_components 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.json +1 -4
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_bar.pcss +1 -17
- data/app/components/primer/alpha/action_bar_element.js +21 -9
- data/app/components/primer/alpha/action_list/item.rb +0 -2
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.rb +0 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.js +44 -20
- data/app/components/primer/alpha/action_menu/list.rb +0 -9
- data/app/components/primer/alpha/action_menu.html.erb +20 -18
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/dialog/header.rb +1 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/nav_list/divider.rb +1 -0
- data/app/components/primer/alpha/nav_list/group.rb +1 -0
- data/app/components/primer/alpha/nav_list/heading.rb +1 -0
- data/app/components/primer/alpha/nav_list/item.rb +1 -0
- data/app/components/primer/alpha/nav_list.rb +1 -0
- data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +0 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +0 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.js +2 -1
- data/app/components/primer/alpha/segmented_control.pcss +0 -4
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +11 -5
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +10 -1
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/x_banner.js +2 -1
- data/app/components/primer/anchored_position.js +2 -1
- data/app/components/primer/beta/auto_complete/item.rb +1 -1
- data/app/components/primer/beta/avatar.rb +1 -1
- data/app/components/primer/beta/base_button.rb +1 -1
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.json +1 -0
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.html.erb +16 -14
- data/app/components/primer/beta/blankslate.pcss +52 -2
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +0 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.html.erb +18 -20
- data/app/components/primer/beta/button.pcss +0 -5
- data/app/components/primer/beta/button.rb +3 -0
- data/app/components/primer/beta/button_group.css +1 -1
- data/app/components/primer/beta/button_group.css.json +2 -4
- data/app/components/primer/beta/button_group.css.map +1 -1
- data/app/components/primer/beta/button_group.html.erb +3 -1
- data/app/components/primer/beta/button_group.pcss +2 -4
- data/app/components/primer/beta/button_group.rb +41 -12
- data/app/components/primer/beta/clipboard_copy.rb +4 -0
- data/app/components/primer/beta/clipboard_copy_button.rb +25 -0
- data/app/components/primer/beta/counter.rb +1 -1
- data/app/components/primer/beta/flash.html.erb +1 -1
- data/app/components/primer/beta/icon_button.html.erb +4 -6
- data/app/components/primer/beta/icon_button.rb +1 -3
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/nav_list.js +14 -7
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.json +2 -0
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +8 -1
- data/app/components/primer/beta/subhead.rb +9 -1
- data/app/components/primer/focus_group.js +2 -1
- data/app/forms/action_menu_form.rb +20 -0
- data/app/forms/immediate_validation_form.rb +2 -2
- data/app/lib/primer/fetch_or_fallback_helper.rb +0 -1
- data/app/lib/primer/octicon/cache.rb +1 -1
- data/lib/primer/classify.rb +0 -2
- data/lib/primer/forms/action_menu.html.erb +6 -0
- data/lib/primer/forms/action_menu.rb +25 -0
- data/lib/primer/forms/acts_as_component.rb +0 -3
- data/lib/primer/forms/base.rb +0 -1
- data/lib/primer/forms/base_component.rb +0 -2
- data/lib/primer/forms/dsl/action_menu_input.rb +36 -0
- data/lib/primer/forms/dsl/input.rb +8 -1
- data/lib/primer/forms/dsl/input_methods.rb +9 -0
- data/lib/primer/forms/dsl/text_field_input.rb +8 -0
- data/lib/primer/forms/primer_base_component_wrapper.rb +0 -2
- data/lib/primer/forms/primer_text_field.js +40 -5
- data/lib/primer/forms/primer_text_field.ts +39 -7
- data/lib/primer/forms/validation_message.html.erb +2 -1
- data/lib/primer/static/generate_info_arch.rb +1 -2
- data/lib/primer/static/generate_previews.rb +0 -2
- data/lib/primer/view_components/engine.rb +5 -1
- data/lib/primer/view_components/linters/base_linter.rb +3 -2
- data/lib/primer/view_components/linters/deprecated_components_counter.rb +1 -1
- data/lib/primer/view_components/linters/disallow_action_list.rb +1 -0
- data/lib/primer/view_components/linters/severity_schema.rb +1 -0
- data/lib/primer/view_components/version.rb +1 -2
- data/lib/primer/yard/lookbook_pages_backend.rb +0 -2
- data/lib/rubocop/cop/primer/base_cop.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_arguments.rb +0 -2
- data/lib/rubocop/cop/primer/deprecated_components.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_label_variants.rb +1 -1
- data/previews/primer/alpha/octicon_symbols_preview/default.html.erb +6 -0
- data/previews/primer/alpha/octicon_symbols_preview/playground.html.erb +13 -0
- data/previews/primer/alpha/octicon_symbols_preview.rb +21 -0
- data/previews/primer/alpha/text_field_preview.rb +5 -0
- data/previews/primer/beta/avatar_preview.rb +6 -0
- data/previews/primer/beta/button_group_preview.rb +11 -0
- data/previews/primer/beta/clipboard_copy_button_preview.rb +29 -0
- data/previews/primer/beta/subhead_preview.rb +32 -4
- data/previews/primer/forms_preview/action_menu_form.html.erb +3 -0
- data/previews/primer/forms_preview.rb +4 -0
- data/static/arguments.json +75 -13
- data/static/audited_at.json +2 -0
- data/static/classes.json +9 -3
- data/static/constants.json +16 -1
- data/static/info_arch.json +329 -26
- data/static/previews.json +146 -0
- data/static/statuses.json +2 -0
- metadata +14 -4
@@ -69,6 +69,17 @@ module Primer
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
72
|
+
|
73
|
+
# @label With clipboard copy button
|
74
|
+
# @snapshot
|
75
|
+
def with_clipboard_copy_button(size: :medium, scheme: :default)
|
76
|
+
render(Primer::Beta::ButtonGroup.new(size: size, scheme: scheme)) do |component|
|
77
|
+
component.with_button { "Button 1" }
|
78
|
+
component.with_clipboard_copy_button(id: "button-2", value: "Copyable value", aria: { label: "Copy some text" }) do |button|
|
79
|
+
button.with_tooltip(text: "Copy some text")
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
72
83
|
end
|
73
84
|
end
|
74
85
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module Beta
|
5
|
+
# @label ClipboardCopyButton
|
6
|
+
class ClipboardCopyButtonPreview < ViewComponent::Preview
|
7
|
+
# @label Playground
|
8
|
+
#
|
9
|
+
# @param text [String]
|
10
|
+
def playground(text: "Text to copy")
|
11
|
+
render(Primer::Beta::ClipboardCopyButton.new(id: "clipboard-button", aria: { label: "Copy" }, value: text))
|
12
|
+
end
|
13
|
+
|
14
|
+
# @label Playground
|
15
|
+
# @snapshot
|
16
|
+
def default
|
17
|
+
render(Primer::Beta::ClipboardCopyButton.new(id: "clipboard-button", aria: { label: "Copy" }, value: "Text to copy"))
|
18
|
+
end
|
19
|
+
|
20
|
+
# @label With tooltip
|
21
|
+
# @snapshot
|
22
|
+
def with_tooltip
|
23
|
+
render(Primer::Beta::ClipboardCopyButton.new(id: "clipboard-button", aria: { label: "Copy" }, value: "Text to copy")) do |button|
|
24
|
+
button.with_tooltip(text: "Copy some text")
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -9,10 +9,11 @@ module Primer
|
|
9
9
|
# @param spacious [Boolean]
|
10
10
|
# @param hide_border [Boolean]
|
11
11
|
# @param heading_danger [Boolean]
|
12
|
+
# @param heading_size [Symbol] select [medium, large]
|
12
13
|
# @param heading_tag [Symbol] select [div, h1, h2, h3, h4, h5, h6]
|
13
|
-
def playground(spacious: false, hide_border: false, heading_tag: :div, heading_danger: false)
|
14
|
+
def playground(spacious: false, hide_border: false, heading_tag: :div, heading_size: Primer::Beta::Subhead::DEFAULT_HEADING_SIZE, heading_danger: false)
|
14
15
|
render(Primer::Beta::Subhead.new(spacious: spacious, hide_border: hide_border)) do |component|
|
15
|
-
component.with_heading(tag: heading_tag, danger: heading_danger) do
|
16
|
+
component.with_heading(tag: heading_tag, size: heading_size, danger: heading_danger) do
|
16
17
|
"My Heading"
|
17
18
|
end
|
18
19
|
component.with_description do
|
@@ -26,11 +27,12 @@ module Primer
|
|
26
27
|
# @param spacious [Boolean]
|
27
28
|
# @param hide_border [Boolean]
|
28
29
|
# @param heading_danger [Boolean]
|
30
|
+
# @param heading_size [Symbol] select [medium, large]
|
29
31
|
# @param heading_tag [Symbol] select [div, h1, h2, h3, h4, h5, h6]
|
30
32
|
# @snapshot
|
31
|
-
def default(spacious: false, hide_border: false, heading_tag: :div, heading_danger: false)
|
33
|
+
def default(spacious: false, hide_border: false, heading_tag: :div, heading_size: Primer::Beta::Subhead::DEFAULT_HEADING_SIZE, heading_danger: false)
|
32
34
|
render(Primer::Beta::Subhead.new(spacious: spacious, hide_border: hide_border)) do |component|
|
33
|
-
component.with_heading(tag: heading_tag, danger: heading_danger) do
|
35
|
+
component.with_heading(tag: heading_tag, size: heading_size, danger: heading_danger) do
|
34
36
|
"My Heading"
|
35
37
|
end
|
36
38
|
component.with_description do
|
@@ -98,6 +100,32 @@ module Primer
|
|
98
100
|
end
|
99
101
|
#
|
100
102
|
# @!endgroup
|
103
|
+
|
104
|
+
# @!group Header size
|
105
|
+
#
|
106
|
+
# @label Large
|
107
|
+
def large_header
|
108
|
+
render(Primer::Beta::Subhead.new) do |component|
|
109
|
+
component.with_heading(size: :large) do
|
110
|
+
"Large Header"
|
111
|
+
end
|
112
|
+
component.with_description do
|
113
|
+
"Description"
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# @label Medium
|
119
|
+
def medium_header
|
120
|
+
render(Primer::Beta::Subhead.new) do |component|
|
121
|
+
component.with_heading(size: :medium) do
|
122
|
+
"Medium Header"
|
123
|
+
end
|
124
|
+
component.with_description do
|
125
|
+
"Description"
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
101
129
|
end
|
102
130
|
end
|
103
131
|
end
|
data/static/arguments.json
CHANGED
@@ -923,7 +923,7 @@
|
|
923
923
|
"name": "subtitle",
|
924
924
|
"type": "String",
|
925
925
|
"default": "`nil`",
|
926
|
-
"description": "Provides
|
926
|
+
"description": "Provides additional context for the dialog, also setting the `aria-describedby` attribute."
|
927
927
|
},
|
928
928
|
{
|
929
929
|
"name": "show_divider",
|
@@ -3034,7 +3034,7 @@
|
|
3034
3034
|
"name": "size",
|
3035
3035
|
"type": "Integer",
|
3036
3036
|
"default": "`20`",
|
3037
|
-
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, or `80`."
|
3037
|
+
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, `64`, or `80`."
|
3038
3038
|
},
|
3039
3039
|
{
|
3040
3040
|
"name": "shape",
|
@@ -3108,7 +3108,7 @@
|
|
3108
3108
|
"name": "tag",
|
3109
3109
|
"type": "Symbol",
|
3110
3110
|
"default": "`:button`",
|
3111
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
3111
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3112
3112
|
},
|
3113
3113
|
{
|
3114
3114
|
"name": "type",
|
@@ -3249,6 +3249,12 @@
|
|
3249
3249
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/button.rb",
|
3250
3250
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/button/default/",
|
3251
3251
|
"parameters": [
|
3252
|
+
{
|
3253
|
+
"name": "base_button_class",
|
3254
|
+
"type": "Class",
|
3255
|
+
"default": "`Primer::Beta::BaseButton`",
|
3256
|
+
"description": "The button class to render."
|
3257
|
+
},
|
3252
3258
|
{
|
3253
3259
|
"name": "scheme",
|
3254
3260
|
"type": "Symbol",
|
@@ -3277,7 +3283,7 @@
|
|
3277
3283
|
"name": "tag",
|
3278
3284
|
"type": "Symbol",
|
3279
3285
|
"default": "`:button`",
|
3280
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
3286
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3281
3287
|
},
|
3282
3288
|
{
|
3283
3289
|
"name": "type",
|
@@ -3361,6 +3367,68 @@
|
|
3361
3367
|
}
|
3362
3368
|
]
|
3363
3369
|
},
|
3370
|
+
{
|
3371
|
+
"component": "ClipboardCopyBaseButton",
|
3372
|
+
"status": "beta",
|
3373
|
+
"a11y_reviewed": false,
|
3374
|
+
"short_name": "ClipboardCopyBaseButton",
|
3375
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/clipboard_copy_base_button.rb",
|
3376
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/clipboard_copy_base_button/default/",
|
3377
|
+
"parameters": [
|
3378
|
+
{
|
3379
|
+
"name": "tag",
|
3380
|
+
"type": "Symbol",
|
3381
|
+
"default": "`:button`",
|
3382
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3383
|
+
},
|
3384
|
+
{
|
3385
|
+
"name": "type",
|
3386
|
+
"type": "Symbol",
|
3387
|
+
"default": "`:button`",
|
3388
|
+
"description": "One of `:button`, `:reset`, or `:submit`."
|
3389
|
+
},
|
3390
|
+
{
|
3391
|
+
"name": "block",
|
3392
|
+
"type": "Boolean",
|
3393
|
+
"default": "`false`",
|
3394
|
+
"description": "Whether button is full-width with `display: block`."
|
3395
|
+
},
|
3396
|
+
{
|
3397
|
+
"name": "disabled",
|
3398
|
+
"type": "Boolean",
|
3399
|
+
"default": "`false`",
|
3400
|
+
"description": "Whether or not the button is disabled. If true, this option forces `tag:` to `:button`."
|
3401
|
+
},
|
3402
|
+
{
|
3403
|
+
"name": "inactive",
|
3404
|
+
"type": "Boolean",
|
3405
|
+
"default": "`false`",
|
3406
|
+
"description": "Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button."
|
3407
|
+
},
|
3408
|
+
{
|
3409
|
+
"name": "system_arguments",
|
3410
|
+
"type": "Hash",
|
3411
|
+
"default": "N/A",
|
3412
|
+
"description": "[System arguments](/system-arguments)"
|
3413
|
+
}
|
3414
|
+
]
|
3415
|
+
},
|
3416
|
+
{
|
3417
|
+
"component": "ClipboardCopyButton",
|
3418
|
+
"status": "beta",
|
3419
|
+
"a11y_reviewed": false,
|
3420
|
+
"short_name": "ClipboardCopyButton",
|
3421
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/clipboard_copy_button.rb",
|
3422
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/clipboard_copy_button/default/",
|
3423
|
+
"parameters": [
|
3424
|
+
{
|
3425
|
+
"name": "system_arguments",
|
3426
|
+
"type": "Hash",
|
3427
|
+
"default": "N/A",
|
3428
|
+
"description": "The arguments accepted by [Button](/components/beta/button) and [ClipboardCopy](/components/beta/clipboardcopy)."
|
3429
|
+
}
|
3430
|
+
]
|
3431
|
+
},
|
3364
3432
|
{
|
3365
3433
|
"component": "CloseButton",
|
3366
3434
|
"status": "beta",
|
@@ -3561,13 +3629,7 @@
|
|
3561
3629
|
"name": "tag",
|
3562
3630
|
"type": "Symbol",
|
3563
3631
|
"default": "N/A",
|
3564
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
3565
|
-
},
|
3566
|
-
{
|
3567
|
-
"name": "wrapper_arguments",
|
3568
|
-
"type": "Hash",
|
3569
|
-
"default": "`{}`",
|
3570
|
-
"description": "Optional keyword arguments to be passed to the wrapper `<div>` tag."
|
3632
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3571
3633
|
},
|
3572
3634
|
{
|
3573
3635
|
"name": "scheme",
|
@@ -4399,7 +4461,7 @@
|
|
4399
4461
|
"name": "tag",
|
4400
4462
|
"type": "Symbol",
|
4401
4463
|
"default": "`:button`",
|
4402
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
4464
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
4403
4465
|
},
|
4404
4466
|
{
|
4405
4467
|
"name": "type",
|
@@ -4490,7 +4552,7 @@
|
|
4490
4552
|
"name": "tag",
|
4491
4553
|
"type": "Symbol",
|
4492
4554
|
"default": "N/A",
|
4493
|
-
"description": "One of `:a`, `:button`, or `:summary`."
|
4555
|
+
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
4494
4556
|
},
|
4495
4557
|
{
|
4496
4558
|
"name": "type",
|
data/static/audited_at.json
CHANGED
@@ -73,6 +73,8 @@
|
|
73
73
|
"Primer::Beta::Button": "",
|
74
74
|
"Primer::Beta::ButtonGroup": "",
|
75
75
|
"Primer::Beta::ClipboardCopy": "",
|
76
|
+
"Primer::Beta::ClipboardCopyBaseButton": "",
|
77
|
+
"Primer::Beta::ClipboardCopyButton": "",
|
76
78
|
"Primer::Beta::CloseButton": "",
|
77
79
|
"Primer::Beta::Counter": "",
|
78
80
|
"Primer::Beta::Details": "",
|
data/static/classes.json
CHANGED
@@ -230,9 +230,6 @@
|
|
230
230
|
"Button-visual": [
|
231
231
|
"Primer::Beta::Button"
|
232
232
|
],
|
233
|
-
"Button-withTooltip": [
|
234
|
-
"Primer::Beta::Button"
|
235
|
-
],
|
236
233
|
"ButtonGroup": [
|
237
234
|
"Primer::Beta::ButtonGroup"
|
238
235
|
],
|
@@ -269,6 +266,9 @@
|
|
269
266
|
"FormControl-inlineValidation": [
|
270
267
|
"Primer::Alpha::TextField"
|
271
268
|
],
|
269
|
+
"FormControl-inlineValidation--success": [
|
270
|
+
"Primer::Alpha::TextField"
|
271
|
+
],
|
272
272
|
"FormControl-inlineValidation--visual": [
|
273
273
|
"Primer::Alpha::TextField"
|
274
274
|
],
|
@@ -576,6 +576,12 @@
|
|
576
576
|
"Subhead-heading--danger": [
|
577
577
|
"Primer::Beta::Subhead"
|
578
578
|
],
|
579
|
+
"Subhead-heading--large": [
|
580
|
+
"Primer::Beta::Subhead"
|
581
|
+
],
|
582
|
+
"Subhead-heading--medium": [
|
583
|
+
"Primer::Beta::Subhead"
|
584
|
+
],
|
579
585
|
"TimelineItem": [
|
580
586
|
"Primer::Beta::TimelineItem"
|
581
587
|
],
|
data/static/constants.json
CHANGED
@@ -709,6 +709,7 @@
|
|
709
709
|
32,
|
710
710
|
40,
|
711
711
|
48,
|
712
|
+
64,
|
712
713
|
80
|
713
714
|
],
|
714
715
|
"SMALL_THRESHOLD": 24
|
@@ -736,7 +737,8 @@
|
|
736
737
|
"TAG_OPTIONS": [
|
737
738
|
"button",
|
738
739
|
"a",
|
739
|
-
"summary"
|
740
|
+
"summary",
|
741
|
+
"clipboard-copy"
|
740
742
|
],
|
741
743
|
"TYPE_OPTIONS": [
|
742
744
|
"button",
|
@@ -836,6 +838,10 @@
|
|
836
838
|
},
|
837
839
|
"Primer::Beta::ClipboardCopy": {
|
838
840
|
},
|
841
|
+
"Primer::Beta::ClipboardCopyBaseButton": {
|
842
|
+
},
|
843
|
+
"Primer::Beta::ClipboardCopyButton": {
|
844
|
+
},
|
839
845
|
"Primer::Beta::CloseButton": {
|
840
846
|
"DEFAULT_TYPE": "button",
|
841
847
|
"TYPE_OPTIONS": [
|
@@ -1238,7 +1244,16 @@
|
|
1238
1244
|
]
|
1239
1245
|
},
|
1240
1246
|
"Primer::Beta::Subhead": {
|
1247
|
+
"DEFAULT_HEADING_SIZE": "large",
|
1241
1248
|
"DEFAULT_HEADING_TAG": "div",
|
1249
|
+
"HEADING_SIZE_MAP": {
|
1250
|
+
"large": "Subhead-heading--large",
|
1251
|
+
"medium": "Subhead-heading--medium"
|
1252
|
+
},
|
1253
|
+
"HEADING_SIZE_OPTIONS": [
|
1254
|
+
"large",
|
1255
|
+
"medium"
|
1256
|
+
],
|
1242
1257
|
"HEADING_TAG_OPTIONS": [
|
1243
1258
|
"div",
|
1244
1259
|
"h1",
|