@primer/view-components 0.14.0-rc.46753db3 → 0.14.0-rc.849c6a4c
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.
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/beta/subhead.css +1 -1
- package/app/components/primer/beta/subhead.css.json +2 -0
- package/package.json +3 -3
- package/static/arguments.json +1 -1
- package/static/classes.json +6 -0
- package/static/constants.json +9 -0
- package/static/info_arch.json +28 -2
- package/static/previews.json +26 -0
@@ -1 +1 @@
|
|
1
|
-
.Subhead{border-bottom:var(--borderWidth-thin,max(1px,.0625rem)) solid var(--borderColor-muted,var(--color-border-muted));display:flex;flex-flow:row wrap;justify-content:flex-end;margin-bottom:var(--stack-gap-normal,1rem);padding-bottom:var(--stack-padding-condensed,.5rem)}.Subhead--spacious{margin-top:var(--base-size-40,2.5rem)}.Subhead-heading{flex:1 1 auto;font-
|
1
|
+
.Subhead{border-bottom:var(--borderWidth-thin,max(1px,.0625rem)) solid var(--borderColor-muted,var(--color-border-muted));display:flex;flex-flow:row wrap;justify-content:flex-end;margin-bottom:var(--stack-gap-normal,1rem);padding-bottom:var(--stack-padding-condensed,.5rem)}.Subhead--spacious{margin-top:var(--base-size-40,2.5rem)}.Subhead-heading{flex:1 1 auto;font-weight:var(--base-text-weight-normal,400);order:0}.Subhead-heading--large{font-size:var(--base-size-24,1.5rem)}.Subhead-heading--medium{font-size:var(--text-title-size-medium,1.25rem)}.Subhead-heading--danger{color:var(--fgColor-danger,var(--color-danger-fg));font-weight:var(--base-text-weight-semibold,600)}.Subhead-description{color:var(--fgColor-muted,var(--color-fg-muted));flex:1 100%;font-size:var(--text-body-size-medium,.875rem);order:2}.Subhead-actions{align-self:center;justify-content:flex-end;margin:var(--base-size-4,.25rem) 0 var(--base-size-4,.25rem) var(--base-size-4,.25rem);order:1}.Subhead-actions+.Subhead-description{margin-top:var(--base-size-4,.25rem)}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.14.0-rc.
|
3
|
+
"version": "0.14.0-rc.849c6a4c",
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
6
6
|
"module": "app/components/primer/primer.js",
|
@@ -60,9 +60,9 @@
|
|
60
60
|
"@github/axe-github": "^0.5.0",
|
61
61
|
"@github/browserslist-config": "^1.0.0",
|
62
62
|
"@github/markdownlint-github": "^0.2.2",
|
63
|
-
"@github/prettier-config": "0.0.
|
63
|
+
"@github/prettier-config": "0.0.6",
|
64
64
|
"@playwright/test": "^1.35.1",
|
65
|
-
"@primer/css": "21.0.
|
65
|
+
"@primer/css": "21.0.9",
|
66
66
|
"@primer/primitives": "^7.14.0",
|
67
67
|
"@primer/stylelint-config": "^12.7.2",
|
68
68
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
package/static/arguments.json
CHANGED
@@ -3425,7 +3425,7 @@
|
|
3425
3425
|
"name": "system_arguments",
|
3426
3426
|
"type": "Hash",
|
3427
3427
|
"default": "N/A",
|
3428
|
-
"description": "The arguments accepted by [Button](/components/beta/button)."
|
3428
|
+
"description": "The arguments accepted by [Button](/components/beta/button) and [ClipboardCopy](/components/beta/clipboardcopy)."
|
3429
3429
|
}
|
3430
3430
|
]
|
3431
3431
|
},
|
package/static/classes.json
CHANGED
@@ -528,6 +528,12 @@
|
|
528
528
|
"Subhead-heading--danger": [
|
529
529
|
"Primer::Beta::Subhead"
|
530
530
|
],
|
531
|
+
"Subhead-heading--large": [
|
532
|
+
"Primer::Beta::Subhead"
|
533
|
+
],
|
534
|
+
"Subhead-heading--medium": [
|
535
|
+
"Primer::Beta::Subhead"
|
536
|
+
],
|
531
537
|
"TimelineItem": [
|
532
538
|
"Primer::Beta::TimelineItem"
|
533
539
|
],
|
package/static/constants.json
CHANGED
@@ -1243,7 +1243,16 @@
|
|
1243
1243
|
]
|
1244
1244
|
},
|
1245
1245
|
"Primer::Beta::Subhead": {
|
1246
|
+
"DEFAULT_HEADING_SIZE": "large",
|
1246
1247
|
"DEFAULT_HEADING_TAG": "div",
|
1248
|
+
"HEADING_SIZE_MAP": {
|
1249
|
+
"large": "Subhead-heading--large",
|
1250
|
+
"medium": "Subhead-heading--medium"
|
1251
|
+
},
|
1252
|
+
"HEADING_SIZE_OPTIONS": [
|
1253
|
+
"large",
|
1254
|
+
"medium"
|
1255
|
+
],
|
1247
1256
|
"HEADING_TAG_OPTIONS": [
|
1248
1257
|
"div",
|
1249
1258
|
"h1",
|
package/static/info_arch.json
CHANGED
@@ -10901,7 +10901,7 @@
|
|
10901
10901
|
},
|
10902
10902
|
{
|
10903
10903
|
"fully_qualified_name": "Primer::Beta::ClipboardCopy",
|
10904
|
-
"description": "Use `ClipboardCopy` to copy element text content or input values to the clipboard.",
|
10904
|
+
"description": "Use `ClipboardCopy` to copy element text content or input values to the clipboard.\n\nThis component by itself is not styled as a button, and can therefore only be used in limited circumstances.\nIf you're looking for a button, consider using {{#link_to_component}}Primer::Beta::ClipboardCopyButton{{/link_to_component}}\ninstead.",
|
10905
10905
|
"accessibility_docs": "Always set an accessible label to help the user interact with the component.",
|
10906
10906
|
"is_form_component": false,
|
10907
10907
|
"is_published": true,
|
@@ -11084,7 +11084,7 @@
|
|
11084
11084
|
"name": "system_arguments",
|
11085
11085
|
"type": "Hash",
|
11086
11086
|
"default": "N/A",
|
11087
|
-
"description": "The arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}."
|
11087
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}} and {{#link_to_component}}Primer::Beta::ClipboardCopy{{/link_to_component}}."
|
11088
11088
|
}
|
11089
11089
|
],
|
11090
11090
|
"slots": [
|
@@ -14157,6 +14157,32 @@
|
|
14157
14157
|
"color-contrast"
|
14158
14158
|
]
|
14159
14159
|
}
|
14160
|
+
},
|
14161
|
+
{
|
14162
|
+
"preview_path": "primer/beta/subhead/large_header",
|
14163
|
+
"name": "large_header",
|
14164
|
+
"snapshot": "false",
|
14165
|
+
"skip_rules": {
|
14166
|
+
"wont_fix": [
|
14167
|
+
"region"
|
14168
|
+
],
|
14169
|
+
"will_fix": [
|
14170
|
+
"color-contrast"
|
14171
|
+
]
|
14172
|
+
}
|
14173
|
+
},
|
14174
|
+
{
|
14175
|
+
"preview_path": "primer/beta/subhead/medium_header",
|
14176
|
+
"name": "medium_header",
|
14177
|
+
"snapshot": "false",
|
14178
|
+
"skip_rules": {
|
14179
|
+
"wont_fix": [
|
14180
|
+
"region"
|
14181
|
+
],
|
14182
|
+
"will_fix": [
|
14183
|
+
"color-contrast"
|
14184
|
+
]
|
14185
|
+
}
|
14160
14186
|
}
|
14161
14187
|
],
|
14162
14188
|
"subcomponents": [
|
package/static/previews.json
CHANGED
@@ -5622,6 +5622,32 @@
|
|
5622
5622
|
"color-contrast"
|
5623
5623
|
]
|
5624
5624
|
}
|
5625
|
+
},
|
5626
|
+
{
|
5627
|
+
"preview_path": "primer/beta/subhead/large_header",
|
5628
|
+
"name": "large_header",
|
5629
|
+
"snapshot": "false",
|
5630
|
+
"skip_rules": {
|
5631
|
+
"wont_fix": [
|
5632
|
+
"region"
|
5633
|
+
],
|
5634
|
+
"will_fix": [
|
5635
|
+
"color-contrast"
|
5636
|
+
]
|
5637
|
+
}
|
5638
|
+
},
|
5639
|
+
{
|
5640
|
+
"preview_path": "primer/beta/subhead/medium_header",
|
5641
|
+
"name": "medium_header",
|
5642
|
+
"snapshot": "false",
|
5643
|
+
"skip_rules": {
|
5644
|
+
"wont_fix": [
|
5645
|
+
"region"
|
5646
|
+
],
|
5647
|
+
"will_fix": [
|
5648
|
+
"color-contrast"
|
5649
|
+
]
|
5650
|
+
}
|
5625
5651
|
}
|
5626
5652
|
]
|
5627
5653
|
},
|