@primer/view-components 0.0.109 → 0.0.110
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/{beta → alpha}/banner.css +0 -0
- package/app/components/primer/alpha/banner.css.json +1 -0
- package/app/components/primer/alpha/toggle_switch.css +1 -0
- package/app/components/primer/alpha/toggle_switch.css.json +1 -0
- package/app/components/primer/{beta → alpha}/x_banner.d.ts +0 -0
- package/app/components/primer/{beta → alpha}/x_banner.js +0 -0
- package/app/components/primer/beta/blankslate.css +1 -0
- package/app/components/primer/beta/blankslate.css.json +1 -0
- package/app/components/primer/beta/breadcrumbs.css +1 -0
- package/app/components/primer/beta/breadcrumbs.css.json +1 -0
- package/app/components/primer/beta/counter.css +1 -0
- package/app/components/primer/beta/counter.css.json +1 -0
- package/app/components/primer/beta/label.css +1 -0
- package/app/components/primer/beta/label.css.json +1 -0
- package/app/components/primer/beta/progress_bar.css +1 -0
- package/app/components/primer/beta/progress_bar.css.json +1 -0
- package/app/components/primer/beta/truncate.css +1 -0
- package/app/components/primer/beta/truncate.css.json +1 -0
- package/app/components/primer/primer.d.ts +1 -1
- package/app/components/primer/primer.js +1 -1
- package/app/components/primer/state_component.css +1 -0
- package/app/components/primer/state_component.css.json +1 -0
- package/app/components/primer/subhead_component.css +1 -0
- package/app/components/primer/subhead_component.css.json +1 -0
- package/app/components/primer/truncate.css +1 -0
- package/app/components/primer/truncate.css.json +1 -0
- package/package.json +3 -1
- package/static/arguments.json +76 -76
- package/static/audited_at.json +2 -1
- package/static/constants.json +34 -32
- package/static/statuses.json +3 -2
- package/app/components/primer/beta/banner.css.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.110",
|
|
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",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"@changesets/cli": "^2.24.1",
|
|
58
58
|
"@github/browserslist-config": "^1.0.0",
|
|
59
59
|
"@github/prettier-config": "0.0.4",
|
|
60
|
+
"@playwright/test": "^1.27.1",
|
|
60
61
|
"@primer/css": "20.4.7",
|
|
61
62
|
"@primer/primitives": "^7.9.0",
|
|
62
63
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"eslint-plugin-prettier": "^4.2.1",
|
|
72
73
|
"markdownlint-cli": "^0.32.2",
|
|
73
74
|
"mocha": "^10.0.0",
|
|
75
|
+
"playwright": "^1.27.1",
|
|
74
76
|
"postcss": "^8.4.16",
|
|
75
77
|
"postcss-cli": "^10.0.0",
|
|
76
78
|
"postcss-import": "^14.1.0",
|
package/static/arguments.json
CHANGED
|
@@ -205,6 +205,62 @@
|
|
|
205
205
|
}
|
|
206
206
|
]
|
|
207
207
|
},
|
|
208
|
+
{
|
|
209
|
+
"component": "Banner",
|
|
210
|
+
"status": "alpha",
|
|
211
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/banner.rb",
|
|
212
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/banner/default/",
|
|
213
|
+
"parameters": [
|
|
214
|
+
{
|
|
215
|
+
"name": "full",
|
|
216
|
+
"type": "Boolean",
|
|
217
|
+
"default": "`false`",
|
|
218
|
+
"description": "Whether the component should take up the full width of the screen."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "full_when_narrow",
|
|
222
|
+
"type": "Boolean",
|
|
223
|
+
"default": "`false`",
|
|
224
|
+
"description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "dismissible",
|
|
228
|
+
"type": "Boolean",
|
|
229
|
+
"default": "`false`",
|
|
230
|
+
"description": "Whether the component can be dismissed with an \"x\" button."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "description",
|
|
234
|
+
"type": "String",
|
|
235
|
+
"default": "`nil`",
|
|
236
|
+
"description": "Description text rendered underneath the message."
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "icon",
|
|
240
|
+
"type": "Symbol",
|
|
241
|
+
"default": "`nil`",
|
|
242
|
+
"description": "The name of an [Octicon](https://primer.style/octicons/) icon to use. If no icon is provided, a default one will be chosen based on the scheme."
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "scheme",
|
|
246
|
+
"type": "Symbol",
|
|
247
|
+
"default": "`:default`",
|
|
248
|
+
"description": "One of `:danger`, `:default`, `:success`, or `:warning`."
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "reappear",
|
|
252
|
+
"type": "Boolean",
|
|
253
|
+
"default": "`false`",
|
|
254
|
+
"description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "system_arguments",
|
|
258
|
+
"type": "Hash",
|
|
259
|
+
"default": "N/A",
|
|
260
|
+
"description": "[System arguments](/system-arguments)"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
208
264
|
{
|
|
209
265
|
"component": "ButtonMarketing",
|
|
210
266
|
"status": "alpha",
|
|
@@ -1117,62 +1173,6 @@
|
|
|
1117
1173
|
}
|
|
1118
1174
|
]
|
|
1119
1175
|
},
|
|
1120
|
-
{
|
|
1121
|
-
"component": "Banner",
|
|
1122
|
-
"status": "beta",
|
|
1123
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/banner.rb",
|
|
1124
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/banner/default/",
|
|
1125
|
-
"parameters": [
|
|
1126
|
-
{
|
|
1127
|
-
"name": "full",
|
|
1128
|
-
"type": "Boolean",
|
|
1129
|
-
"default": "`false`",
|
|
1130
|
-
"description": "Whether the component should take up the full width of the screen."
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"name": "full_when_narrow",
|
|
1134
|
-
"type": "Boolean",
|
|
1135
|
-
"default": "`false`",
|
|
1136
|
-
"description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"name": "dismissible",
|
|
1140
|
-
"type": "Boolean",
|
|
1141
|
-
"default": "`false`",
|
|
1142
|
-
"description": "Whether the component can be dismissed with an \"x\" button."
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
"name": "description",
|
|
1146
|
-
"type": "String",
|
|
1147
|
-
"default": "`nil`",
|
|
1148
|
-
"description": "Description text rendered underneath the message."
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
"name": "icon",
|
|
1152
|
-
"type": "Symbol",
|
|
1153
|
-
"default": "`nil`",
|
|
1154
|
-
"description": "The name of an [Octicon](https://primer.style/octicons/) icon to use. If no icon is provided, a default one will be chosen based on the scheme."
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "scheme",
|
|
1158
|
-
"type": "Symbol",
|
|
1159
|
-
"default": "`:default`",
|
|
1160
|
-
"description": "One of `:danger`, `:default`, `:success`, or `:warning`."
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
"name": "reappear",
|
|
1164
|
-
"type": "Boolean",
|
|
1165
|
-
"default": "`false`",
|
|
1166
|
-
"description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
"name": "system_arguments",
|
|
1170
|
-
"type": "Hash",
|
|
1171
|
-
"default": "N/A",
|
|
1172
|
-
"description": "[System arguments](/system-arguments)"
|
|
1173
|
-
}
|
|
1174
|
-
]
|
|
1175
|
-
},
|
|
1176
1176
|
{
|
|
1177
1177
|
"component": "BaseButton",
|
|
1178
1178
|
"status": "beta",
|
|
@@ -1683,6 +1683,26 @@
|
|
|
1683
1683
|
}
|
|
1684
1684
|
]
|
|
1685
1685
|
},
|
|
1686
|
+
{
|
|
1687
|
+
"component": "ProgressBar",
|
|
1688
|
+
"status": "beta",
|
|
1689
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/progress_bar.rb",
|
|
1690
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/progress_bar/default/",
|
|
1691
|
+
"parameters": [
|
|
1692
|
+
{
|
|
1693
|
+
"name": "size",
|
|
1694
|
+
"type": "Symbol",
|
|
1695
|
+
"default": "`:default`",
|
|
1696
|
+
"description": "One of `:default`, `:large`, or `:small`. Increases height."
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"name": "system_arguments",
|
|
1700
|
+
"type": "Hash",
|
|
1701
|
+
"default": "N/A",
|
|
1702
|
+
"description": "[System arguments](/system-arguments)"
|
|
1703
|
+
}
|
|
1704
|
+
]
|
|
1705
|
+
},
|
|
1686
1706
|
{
|
|
1687
1707
|
"component": "Text",
|
|
1688
1708
|
"status": "beta",
|
|
@@ -2221,26 +2241,6 @@
|
|
|
2221
2241
|
}
|
|
2222
2242
|
]
|
|
2223
2243
|
},
|
|
2224
|
-
{
|
|
2225
|
-
"component": "ProgressBar",
|
|
2226
|
-
"status": "beta",
|
|
2227
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/progress_bar_component.rb",
|
|
2228
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/progress_bar/default/",
|
|
2229
|
-
"parameters": [
|
|
2230
|
-
{
|
|
2231
|
-
"name": "size",
|
|
2232
|
-
"type": "Symbol",
|
|
2233
|
-
"default": "`:default`",
|
|
2234
|
-
"description": "One of `:default`, `:large`, or `:small`. Increases height."
|
|
2235
|
-
},
|
|
2236
|
-
{
|
|
2237
|
-
"name": "system_arguments",
|
|
2238
|
-
"type": "Hash",
|
|
2239
|
-
"default": "N/A",
|
|
2240
|
-
"description": "[System arguments](/system-arguments)"
|
|
2241
|
-
}
|
|
2242
|
-
]
|
|
2243
|
-
},
|
|
2244
2244
|
{
|
|
2245
2245
|
"component": "Spinner",
|
|
2246
2246
|
"status": "beta",
|
package/static/audited_at.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"Primer::Alpha::ActionList::Item": "",
|
|
6
6
|
"Primer::Alpha::AutoComplete": "",
|
|
7
7
|
"Primer::Alpha::AutoComplete::Item": "",
|
|
8
|
+
"Primer::Alpha::Banner": "",
|
|
8
9
|
"Primer::Alpha::ButtonMarketing": "",
|
|
9
10
|
"Primer::Alpha::Dialog": "",
|
|
10
11
|
"Primer::Alpha::Dialog::Body": "",
|
|
@@ -33,7 +34,6 @@
|
|
|
33
34
|
"Primer::Beta::AutoComplete::Item": "",
|
|
34
35
|
"Primer::Beta::Avatar": "",
|
|
35
36
|
"Primer::Beta::AvatarStack": "",
|
|
36
|
-
"Primer::Beta::Banner": "",
|
|
37
37
|
"Primer::Beta::BaseButton": "",
|
|
38
38
|
"Primer::Beta::Blankslate": "",
|
|
39
39
|
"Primer::Beta::BorderBox": "",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"Primer::Beta::IconButton": "",
|
|
51
51
|
"Primer::Beta::Label": "",
|
|
52
52
|
"Primer::Beta::Link": "",
|
|
53
|
+
"Primer::Beta::ProgressBar": "",
|
|
53
54
|
"Primer::Beta::Text": "",
|
|
54
55
|
"Primer::Beta::Truncate": "",
|
|
55
56
|
"Primer::Beta::Truncate::TruncateText": "",
|
package/static/constants.json
CHANGED
|
@@ -72,6 +72,27 @@
|
|
|
72
72
|
},
|
|
73
73
|
"Primer::Alpha::AutoComplete::Item": {
|
|
74
74
|
},
|
|
75
|
+
"Primer::Alpha::Banner": {
|
|
76
|
+
"DEFAULT_ICONS": {
|
|
77
|
+
"default": "bell",
|
|
78
|
+
"warning": "alert",
|
|
79
|
+
"danger": "stop",
|
|
80
|
+
"success": "check-circle"
|
|
81
|
+
},
|
|
82
|
+
"DEFAULT_SCHEME": "default",
|
|
83
|
+
"LEGACY_SCHEME_MAPPINGS": {
|
|
84
|
+
"default": "",
|
|
85
|
+
"warning": "flash-warn",
|
|
86
|
+
"danger": "flash-error",
|
|
87
|
+
"success": "flash-success"
|
|
88
|
+
},
|
|
89
|
+
"SCHEME_MAPPINGS": {
|
|
90
|
+
"default": "",
|
|
91
|
+
"warning": "Banner--warning",
|
|
92
|
+
"danger": "Banner--error",
|
|
93
|
+
"success": "Banner--success"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
75
96
|
"Primer::Alpha::ButtonMarketing": {
|
|
76
97
|
"DEFAULT_SCHEME": "default",
|
|
77
98
|
"DEFAULT_TAG": "button",
|
|
@@ -396,27 +417,6 @@
|
|
|
396
417
|
"span"
|
|
397
418
|
]
|
|
398
419
|
},
|
|
399
|
-
"Primer::Beta::Banner": {
|
|
400
|
-
"DEFAULT_ICONS": {
|
|
401
|
-
"default": "bell",
|
|
402
|
-
"warning": "alert",
|
|
403
|
-
"danger": "stop",
|
|
404
|
-
"success": "check-circle"
|
|
405
|
-
},
|
|
406
|
-
"DEFAULT_SCHEME": "default",
|
|
407
|
-
"LEGACY_SCHEME_MAPPINGS": {
|
|
408
|
-
"default": "",
|
|
409
|
-
"warning": "flash-warn",
|
|
410
|
-
"danger": "flash-error",
|
|
411
|
-
"success": "flash-success"
|
|
412
|
-
},
|
|
413
|
-
"SCHEME_MAPPINGS": {
|
|
414
|
-
"default": "",
|
|
415
|
-
"warning": "Banner--warning",
|
|
416
|
-
"danger": "Banner--error",
|
|
417
|
-
"success": "Banner--success"
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
420
|
"Primer::Beta::BaseButton": {
|
|
421
421
|
"DEFAULT_TAG": "button",
|
|
422
422
|
"DEFAULT_TYPE": "button",
|
|
@@ -670,6 +670,19 @@
|
|
|
670
670
|
"span"
|
|
671
671
|
]
|
|
672
672
|
},
|
|
673
|
+
"Primer::Beta::ProgressBar": {
|
|
674
|
+
"SIZE_DEFAULT": "default",
|
|
675
|
+
"SIZE_MAPPINGS": {
|
|
676
|
+
"default": "",
|
|
677
|
+
"small": "Progress--small",
|
|
678
|
+
"large": "Progress--large"
|
|
679
|
+
},
|
|
680
|
+
"SIZE_OPTIONS": [
|
|
681
|
+
"default",
|
|
682
|
+
"small",
|
|
683
|
+
"large"
|
|
684
|
+
]
|
|
685
|
+
},
|
|
673
686
|
"Primer::Beta::Text": {
|
|
674
687
|
"DEFAULT_TAG": "span"
|
|
675
688
|
},
|
|
@@ -889,17 +902,6 @@
|
|
|
889
902
|
"DEFAULT_HEADING_TAG": "h4"
|
|
890
903
|
},
|
|
891
904
|
"Primer::ProgressBarComponent": {
|
|
892
|
-
"SIZE_DEFAULT": "default",
|
|
893
|
-
"SIZE_MAPPINGS": {
|
|
894
|
-
"default": "",
|
|
895
|
-
"small": "Progress--small",
|
|
896
|
-
"large": "Progress--large"
|
|
897
|
-
},
|
|
898
|
-
"SIZE_OPTIONS": [
|
|
899
|
-
"default",
|
|
900
|
-
"small",
|
|
901
|
-
"large"
|
|
902
|
-
]
|
|
903
905
|
},
|
|
904
906
|
"Primer::SpinnerComponent": {
|
|
905
907
|
"DEFAULT_SIZE": "medium",
|
package/static/statuses.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"Primer::Alpha::ActionList::Item": "alpha",
|
|
6
6
|
"Primer::Alpha::AutoComplete": "deprecated",
|
|
7
7
|
"Primer::Alpha::AutoComplete::Item": "deprecated",
|
|
8
|
+
"Primer::Alpha::Banner": "alpha",
|
|
8
9
|
"Primer::Alpha::ButtonMarketing": "alpha",
|
|
9
10
|
"Primer::Alpha::Dialog": "alpha",
|
|
10
11
|
"Primer::Alpha::Dialog::Body": "alpha",
|
|
@@ -33,7 +34,6 @@
|
|
|
33
34
|
"Primer::Beta::AutoComplete::Item": "beta",
|
|
34
35
|
"Primer::Beta::Avatar": "beta",
|
|
35
36
|
"Primer::Beta::AvatarStack": "beta",
|
|
36
|
-
"Primer::Beta::Banner": "beta",
|
|
37
37
|
"Primer::Beta::BaseButton": "beta",
|
|
38
38
|
"Primer::Beta::Blankslate": "beta",
|
|
39
39
|
"Primer::Beta::BorderBox": "beta",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"Primer::Beta::IconButton": "beta",
|
|
51
51
|
"Primer::Beta::Label": "beta",
|
|
52
52
|
"Primer::Beta::Link": "beta",
|
|
53
|
+
"Primer::Beta::ProgressBar": "beta",
|
|
53
54
|
"Primer::Beta::Text": "beta",
|
|
54
55
|
"Primer::Beta::Truncate": "beta",
|
|
55
56
|
"Primer::Beta::Truncate::TruncateText": "alpha",
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
"Primer::OcticonComponent": "beta",
|
|
79
80
|
"Primer::OcticonSymbolsComponent": "alpha",
|
|
80
81
|
"Primer::PopoverComponent": "beta",
|
|
81
|
-
"Primer::ProgressBarComponent": "
|
|
82
|
+
"Primer::ProgressBarComponent": "deprecated",
|
|
82
83
|
"Primer::SpinnerComponent": "beta",
|
|
83
84
|
"Primer::StateComponent": "beta",
|
|
84
85
|
"Primer::SubheadComponent": "beta",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"beta/banner","selectors":[".Banner",".Banner .Banner-actions",".Banner .Banner-visual",".Banner .Banner-visual>.octicon",".Banner .Banner-visual>*",".Banner .Banner-message",".Banner .Banner-message p:last-child",".Banner .Banner-message .Banner-title:not(:only-child)",".Banner .Banner-actions:last-child",".Banner .Banner-close",".Banner .Banner-visual .octicon",".Banner.Banner--warning",".Banner.Banner--warning .Banner-visual .octicon",".Banner.Banner--error",".Banner.Banner--error .Banner-visual .octicon",".Banner.Banner--success",".Banner.Banner--success .Banner-visual .octicon",".Banner.Banner--full",".Banner.Banner--full-whenNarrow"]}
|