@primer/view-components 0.14.0-rc.f597aa8a → 0.14.1-rc.758f7715
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/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- 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/alpha/action_bar.css +1 -1
- package/app/components/primer/alpha/action_bar.css.json +1 -4
- package/app/components/primer/alpha/action_bar_element.js +21 -9
- package/app/components/primer/alpha/action_list.css +1 -1
- package/app/components/primer/alpha/action_menu/action_menu_element.js +44 -20
- package/app/components/primer/alpha/auto_complete.css +1 -1
- package/app/components/primer/alpha/button_marketing.css +1 -1
- package/app/components/primer/alpha/dropdown.css +1 -1
- package/app/components/primer/alpha/layout.css +1 -1
- package/app/components/primer/alpha/menu.css +1 -1
- package/app/components/primer/alpha/overlay.css +1 -1
- package/app/components/primer/alpha/overlay.css.json +0 -1
- package/app/components/primer/alpha/segmented_control.css +1 -1
- package/app/components/primer/alpha/segmented_control.css.json +0 -1
- package/app/components/primer/alpha/segmented_control.js +2 -1
- package/app/components/primer/alpha/tab_nav.css +1 -1
- package/app/components/primer/alpha/text_field.css +1 -1
- package/app/components/primer/alpha/text_field.css.json +11 -5
- package/app/components/primer/alpha/toggle_switch.css +1 -1
- package/app/components/primer/alpha/underline_nav.css +1 -1
- package/app/components/primer/alpha/x_banner.js +2 -1
- package/app/components/primer/anchored_position.js +2 -1
- package/app/components/primer/beta/blankslate.css +1 -1
- package/app/components/primer/beta/blankslate.css.json +1 -0
- package/app/components/primer/beta/border_box.css +1 -1
- package/app/components/primer/beta/button.css +1 -1
- package/app/components/primer/beta/button.css.json +9 -9
- package/app/components/primer/beta/button_group.css +1 -1
- package/app/components/primer/beta/button_group.css.json +2 -4
- package/app/components/primer/beta/label.css +1 -1
- package/app/components/primer/beta/link.css +1 -1
- package/app/components/primer/beta/nav_list.js +14 -7
- package/app/components/primer/focus_group.js +2 -1
- package/lib/primer/forms/primer_text_field.js +40 -5
- package/package.json +16 -17
- package/static/arguments.json +2 -8
- package/static/classes.json +6 -3
- package/static/constants.json +10 -0
- package/static/info_arch.json +85 -14
- package/static/previews.json +86 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.1-rc.758f7715",
|
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",
|
@@ -51,24 +51,24 @@
|
|
51
51
|
"@github/include-fragment-element": "^6.1.1",
|
52
52
|
"@github/relative-time-element": "^4.0.0",
|
53
53
|
"@github/tab-container-element": "^3.1.2",
|
54
|
-
"@oddbird/popover-polyfill": "^0.3.
|
54
|
+
"@oddbird/popover-polyfill": "^0.3.2",
|
55
55
|
"@primer/behaviors": "^1.3.4"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
58
58
|
"@changesets/changelog-github": "^0.4.6",
|
59
59
|
"@changesets/cli": "^2.24.1",
|
60
|
-
"@github/axe-github": "^0.
|
60
|
+
"@github/axe-github": "^0.6.1",
|
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.
|
66
|
-
"@primer/primitives": "
|
65
|
+
"@primer/css": "21.0.9",
|
66
|
+
"@primer/primitives": "7.15.3",
|
67
67
|
"@primer/stylelint-config": "^12.7.2",
|
68
|
-
"@rollup/plugin-node-resolve": "^
|
68
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
69
69
|
"@rollup/plugin-typescript": "^8.3.3",
|
70
|
-
"@typescript-eslint/eslint-plugin": "^
|
71
|
-
"@typescript-eslint/parser": "^
|
70
|
+
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
71
|
+
"@typescript-eslint/parser": "^6.0.0",
|
72
72
|
"axe-core": "^4.7.1",
|
73
73
|
"chokidar-cli": "^3.0.0",
|
74
74
|
"cssnano": "^6.0.1",
|
@@ -82,17 +82,16 @@
|
|
82
82
|
"postcss": "^8.4.16",
|
83
83
|
"postcss-cli": "^10.1.0",
|
84
84
|
"postcss-custom-properties-fallback": "^1.0.2",
|
85
|
-
"postcss-import": "^
|
85
|
+
"postcss-import": "^15.1.0",
|
86
86
|
"postcss-mixins": "^9.0.3",
|
87
|
-
"postcss-preset-env": "^
|
88
|
-
"prettier": "
|
89
|
-
"rollup": "^2.
|
87
|
+
"postcss-preset-env": "^9.3.0",
|
88
|
+
"prettier": "3.1.0",
|
89
|
+
"rollup": "^2.79.1",
|
90
90
|
"rollup-plugin-terser": "^7.0.2",
|
91
|
-
"stylelint": "^
|
92
|
-
"stylelint-config-
|
93
|
-
"stylelint-config-standard": "^28.0.0",
|
91
|
+
"stylelint": "^15.11.0",
|
92
|
+
"stylelint-config-standard": "^34.0.0",
|
94
93
|
"tslib": "^2.4.0",
|
95
|
-
"typescript": "^
|
94
|
+
"typescript": "^5.2.2"
|
96
95
|
},
|
97
96
|
"prettier": "@github/prettier-config",
|
98
97
|
"browserslist": "extends @github/browserslist-config"
|
package/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",
|
@@ -3631,12 +3631,6 @@
|
|
3631
3631
|
"default": "N/A",
|
3632
3632
|
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
3633
3633
|
},
|
3634
|
-
{
|
3635
|
-
"name": "wrapper_arguments",
|
3636
|
-
"type": "Hash",
|
3637
|
-
"default": "`{}`",
|
3638
|
-
"description": "Optional keyword arguments to be passed to the wrapper `<div>` tag."
|
3639
|
-
},
|
3640
3634
|
{
|
3641
3635
|
"name": "scheme",
|
3642
3636
|
"type": "Symbol",
|
package/static/classes.json
CHANGED
@@ -179,6 +179,9 @@
|
|
179
179
|
"Button--iconOnly": [
|
180
180
|
"Primer::Beta::Button"
|
181
181
|
],
|
182
|
+
"Button--inactive": [
|
183
|
+
"Primer::Beta::Button"
|
184
|
+
],
|
182
185
|
"Button--invisible": [
|
183
186
|
"Primer::Beta::Button"
|
184
187
|
],
|
@@ -218,9 +221,6 @@
|
|
218
221
|
"Button-visual": [
|
219
222
|
"Primer::Beta::Button"
|
220
223
|
],
|
221
|
-
"Button-withTooltip": [
|
222
|
-
"Primer::Beta::Button"
|
223
|
-
],
|
224
224
|
"ButtonGroup": [
|
225
225
|
"Primer::Beta::ButtonGroup"
|
226
226
|
],
|
@@ -254,6 +254,9 @@
|
|
254
254
|
"FormControl-inlineValidation": [
|
255
255
|
"Primer::Alpha::TextField"
|
256
256
|
],
|
257
|
+
"FormControl-inlineValidation--success": [
|
258
|
+
"Primer::Alpha::TextField"
|
259
|
+
],
|
257
260
|
"FormControl-inlineValidation--visual": [
|
258
261
|
"Primer::Alpha::TextField"
|
259
262
|
],
|
package/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
|
@@ -1243,7 +1244,16 @@
|
|
1243
1244
|
]
|
1244
1245
|
},
|
1245
1246
|
"Primer::Beta::Subhead": {
|
1247
|
+
"DEFAULT_HEADING_SIZE": "large",
|
1246
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
|
+
],
|
1247
1257
|
"HEADING_TAG_OPTIONS": [
|
1248
1258
|
"div",
|
1249
1259
|
"h1",
|
package/static/info_arch.json
CHANGED
@@ -3165,7 +3165,7 @@
|
|
3165
3165
|
"name": "subtitle",
|
3166
3166
|
"type": "String",
|
3167
3167
|
"default": "`nil`",
|
3168
|
-
"description": "Provides
|
3168
|
+
"description": "Provides additional context for the dialog, also setting the `aria-describedby` attribute."
|
3169
3169
|
},
|
3170
3170
|
{
|
3171
3171
|
"name": "show_divider",
|
@@ -4932,7 +4932,7 @@
|
|
4932
4932
|
},
|
4933
4933
|
{
|
4934
4934
|
"fully_qualified_name": "Primer::Alpha::NavList",
|
4935
|
-
"description": "",
|
4935
|
+
"description": ":nodoc:",
|
4936
4936
|
"accessibility_docs": null,
|
4937
4937
|
"is_form_component": false,
|
4938
4938
|
"is_published": true,
|
@@ -4982,7 +4982,7 @@
|
|
4982
4982
|
"subcomponents": [
|
4983
4983
|
{
|
4984
4984
|
"fully_qualified_name": "Primer::Alpha::NavList::Item",
|
4985
|
-
"description": "",
|
4985
|
+
"description": ":nodoc:",
|
4986
4986
|
"accessibility_docs": null,
|
4987
4987
|
"is_form_component": false,
|
4988
4988
|
"is_published": true,
|
@@ -5102,7 +5102,7 @@
|
|
5102
5102
|
},
|
5103
5103
|
{
|
5104
5104
|
"fully_qualified_name": "Primer::Alpha::NavList::Heading",
|
5105
|
-
"description": "",
|
5105
|
+
"description": ":nodoc:",
|
5106
5106
|
"accessibility_docs": null,
|
5107
5107
|
"is_form_component": false,
|
5108
5108
|
"is_published": true,
|
@@ -5154,7 +5154,7 @@
|
|
5154
5154
|
},
|
5155
5155
|
{
|
5156
5156
|
"fully_qualified_name": "Primer::Alpha::NavList::Divider",
|
5157
|
-
"description": "",
|
5157
|
+
"description": ":nodoc:",
|
5158
5158
|
"accessibility_docs": null,
|
5159
5159
|
"is_form_component": false,
|
5160
5160
|
"is_published": true,
|
@@ -5194,7 +5194,7 @@
|
|
5194
5194
|
},
|
5195
5195
|
{
|
5196
5196
|
"fully_qualified_name": "Primer::Alpha::NavList::Group",
|
5197
|
-
"description": "",
|
5197
|
+
"description": ":nodoc:",
|
5198
5198
|
"accessibility_docs": null,
|
5199
5199
|
"is_form_component": false,
|
5200
5200
|
"is_published": true,
|
@@ -5438,7 +5438,32 @@
|
|
5438
5438
|
|
5439
5439
|
],
|
5440
5440
|
"previews": [
|
5441
|
-
|
5441
|
+
{
|
5442
|
+
"preview_path": "primer/alpha/octicon_symbols/playground",
|
5443
|
+
"name": "playground",
|
5444
|
+
"snapshot": "false",
|
5445
|
+
"skip_rules": {
|
5446
|
+
"wont_fix": [
|
5447
|
+
"region"
|
5448
|
+
],
|
5449
|
+
"will_fix": [
|
5450
|
+
"color-contrast"
|
5451
|
+
]
|
5452
|
+
}
|
5453
|
+
},
|
5454
|
+
{
|
5455
|
+
"preview_path": "primer/alpha/octicon_symbols/default",
|
5456
|
+
"name": "default",
|
5457
|
+
"snapshot": "true",
|
5458
|
+
"skip_rules": {
|
5459
|
+
"wont_fix": [
|
5460
|
+
"region"
|
5461
|
+
],
|
5462
|
+
"will_fix": [
|
5463
|
+
"color-contrast"
|
5464
|
+
]
|
5465
|
+
}
|
5466
|
+
}
|
5442
5467
|
],
|
5443
5468
|
"subcomponents": [
|
5444
5469
|
|
@@ -7972,6 +7997,19 @@
|
|
7972
7997
|
]
|
7973
7998
|
}
|
7974
7999
|
},
|
8000
|
+
{
|
8001
|
+
"preview_path": "primer/alpha/text_field/with_auto_check_accepted",
|
8002
|
+
"name": "with_auto_check_accepted",
|
8003
|
+
"snapshot": "false",
|
8004
|
+
"skip_rules": {
|
8005
|
+
"wont_fix": [
|
8006
|
+
"region"
|
8007
|
+
],
|
8008
|
+
"will_fix": [
|
8009
|
+
"color-contrast"
|
8010
|
+
]
|
8011
|
+
}
|
8012
|
+
},
|
7975
8013
|
{
|
7976
8014
|
"preview_path": "primer/alpha/text_field/with_auto_check_error",
|
7977
8015
|
"name": "with_auto_check_error",
|
@@ -9233,7 +9271,7 @@
|
|
9233
9271
|
"name": "size",
|
9234
9272
|
"type": "Integer",
|
9235
9273
|
"default": "`20`",
|
9236
|
-
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, or `80`."
|
9274
|
+
"description": "One of `16`, `20`, `24`, `32`, `40`, `48`, `64`, or `80`."
|
9237
9275
|
},
|
9238
9276
|
{
|
9239
9277
|
"name": "shape",
|
@@ -9378,6 +9416,19 @@
|
|
9378
9416
|
]
|
9379
9417
|
}
|
9380
9418
|
},
|
9419
|
+
{
|
9420
|
+
"preview_path": "primer/beta/avatar/size_64",
|
9421
|
+
"name": "size_64",
|
9422
|
+
"snapshot": "true",
|
9423
|
+
"skip_rules": {
|
9424
|
+
"wont_fix": [
|
9425
|
+
"region"
|
9426
|
+
],
|
9427
|
+
"will_fix": [
|
9428
|
+
"color-contrast"
|
9429
|
+
]
|
9430
|
+
}
|
9431
|
+
},
|
9381
9432
|
{
|
9382
9433
|
"preview_path": "primer/beta/avatar/size_80",
|
9383
9434
|
"name": "size_80",
|
@@ -11909,12 +11960,6 @@
|
|
11909
11960
|
"default": "N/A",
|
11910
11961
|
"description": "One of `:a`, `:button`, `:clipboard-copy`, or `:summary`."
|
11911
11962
|
},
|
11912
|
-
{
|
11913
|
-
"name": "wrapper_arguments",
|
11914
|
-
"type": "Hash",
|
11915
|
-
"default": "`{}`",
|
11916
|
-
"description": "Optional keyword arguments to be passed to the wrapper `<div>` tag."
|
11917
|
-
},
|
11918
11963
|
{
|
11919
11964
|
"name": "scheme",
|
11920
11965
|
"type": "Symbol",
|
@@ -14157,6 +14202,32 @@
|
|
14157
14202
|
"color-contrast"
|
14158
14203
|
]
|
14159
14204
|
}
|
14205
|
+
},
|
14206
|
+
{
|
14207
|
+
"preview_path": "primer/beta/subhead/large_header",
|
14208
|
+
"name": "large_header",
|
14209
|
+
"snapshot": "false",
|
14210
|
+
"skip_rules": {
|
14211
|
+
"wont_fix": [
|
14212
|
+
"region"
|
14213
|
+
],
|
14214
|
+
"will_fix": [
|
14215
|
+
"color-contrast"
|
14216
|
+
]
|
14217
|
+
}
|
14218
|
+
},
|
14219
|
+
{
|
14220
|
+
"preview_path": "primer/beta/subhead/medium_header",
|
14221
|
+
"name": "medium_header",
|
14222
|
+
"snapshot": "false",
|
14223
|
+
"skip_rules": {
|
14224
|
+
"wont_fix": [
|
14225
|
+
"region"
|
14226
|
+
],
|
14227
|
+
"will_fix": [
|
14228
|
+
"color-contrast"
|
14229
|
+
]
|
14230
|
+
}
|
14160
14231
|
}
|
14161
14232
|
],
|
14162
14233
|
"subcomponents": [
|
package/static/previews.json
CHANGED
@@ -1176,6 +1176,19 @@
|
|
1176
1176
|
]
|
1177
1177
|
}
|
1178
1178
|
},
|
1179
|
+
{
|
1180
|
+
"preview_path": "primer/beta/avatar/size_64",
|
1181
|
+
"name": "size_64",
|
1182
|
+
"snapshot": "true",
|
1183
|
+
"skip_rules": {
|
1184
|
+
"wont_fix": [
|
1185
|
+
"region"
|
1186
|
+
],
|
1187
|
+
"will_fix": [
|
1188
|
+
"color-contrast"
|
1189
|
+
]
|
1190
|
+
}
|
1191
|
+
},
|
1179
1192
|
{
|
1180
1193
|
"preview_path": "primer/beta/avatar/size_80",
|
1181
1194
|
"name": "size_80",
|
@@ -4471,6 +4484,40 @@
|
|
4471
4484
|
}
|
4472
4485
|
]
|
4473
4486
|
},
|
4487
|
+
{
|
4488
|
+
"name": "octicon_symbols",
|
4489
|
+
"component": "OcticonSymbols",
|
4490
|
+
"status": "alpha",
|
4491
|
+
"lookup_path": "primer/alpha/octicon_symbols",
|
4492
|
+
"examples": [
|
4493
|
+
{
|
4494
|
+
"preview_path": "primer/alpha/octicon_symbols/playground",
|
4495
|
+
"name": "playground",
|
4496
|
+
"snapshot": "false",
|
4497
|
+
"skip_rules": {
|
4498
|
+
"wont_fix": [
|
4499
|
+
"region"
|
4500
|
+
],
|
4501
|
+
"will_fix": [
|
4502
|
+
"color-contrast"
|
4503
|
+
]
|
4504
|
+
}
|
4505
|
+
},
|
4506
|
+
{
|
4507
|
+
"preview_path": "primer/alpha/octicon_symbols/default",
|
4508
|
+
"name": "default",
|
4509
|
+
"snapshot": "true",
|
4510
|
+
"skip_rules": {
|
4511
|
+
"wont_fix": [
|
4512
|
+
"region"
|
4513
|
+
],
|
4514
|
+
"will_fix": [
|
4515
|
+
"color-contrast"
|
4516
|
+
]
|
4517
|
+
}
|
4518
|
+
}
|
4519
|
+
]
|
4520
|
+
},
|
4474
4521
|
{
|
4475
4522
|
"name": "overlay",
|
4476
4523
|
"component": "Overlay",
|
@@ -5622,6 +5669,32 @@
|
|
5622
5669
|
"color-contrast"
|
5623
5670
|
]
|
5624
5671
|
}
|
5672
|
+
},
|
5673
|
+
{
|
5674
|
+
"preview_path": "primer/beta/subhead/large_header",
|
5675
|
+
"name": "large_header",
|
5676
|
+
"snapshot": "false",
|
5677
|
+
"skip_rules": {
|
5678
|
+
"wont_fix": [
|
5679
|
+
"region"
|
5680
|
+
],
|
5681
|
+
"will_fix": [
|
5682
|
+
"color-contrast"
|
5683
|
+
]
|
5684
|
+
}
|
5685
|
+
},
|
5686
|
+
{
|
5687
|
+
"preview_path": "primer/beta/subhead/medium_header",
|
5688
|
+
"name": "medium_header",
|
5689
|
+
"snapshot": "false",
|
5690
|
+
"skip_rules": {
|
5691
|
+
"wont_fix": [
|
5692
|
+
"region"
|
5693
|
+
],
|
5694
|
+
"will_fix": [
|
5695
|
+
"color-contrast"
|
5696
|
+
]
|
5697
|
+
}
|
5625
5698
|
}
|
5626
5699
|
]
|
5627
5700
|
},
|
@@ -6105,6 +6178,19 @@
|
|
6105
6178
|
]
|
6106
6179
|
}
|
6107
6180
|
},
|
6181
|
+
{
|
6182
|
+
"preview_path": "primer/alpha/text_field/with_auto_check_accepted",
|
6183
|
+
"name": "with_auto_check_accepted",
|
6184
|
+
"snapshot": "false",
|
6185
|
+
"skip_rules": {
|
6186
|
+
"wont_fix": [
|
6187
|
+
"region"
|
6188
|
+
],
|
6189
|
+
"will_fix": [
|
6190
|
+
"color-contrast"
|
6191
|
+
]
|
6192
|
+
}
|
6193
|
+
},
|
6108
6194
|
{
|
6109
6195
|
"preview_path": "primer/alpha/text_field/with_auto_check_error",
|
6110
6196
|
"name": "with_auto_check_error",
|