@openproject/primer-view-components 0.84.5 → 0.85.0
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/components/primer/open_project/sub_header_element.d.ts +1 -1
- 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/select_panel_element.js +2 -2
- package/app/components/primer/open_project/sub_header.css +1 -1
- package/app/components/primer/open_project/sub_header.css.json +2 -1
- package/app/components/primer/open_project/sub_header_element.d.ts +1 -1
- package/app/components/primer/open_project/sub_header_element.js +6 -6
- package/package.json +1 -1
- package/static/arguments.json +6 -0
- package/static/constants.json +1 -1
- package/static/info_arch.json +66 -29
- package/static/previews.json +55 -29
|
@@ -154,8 +154,8 @@ let SelectPanelElement = class SelectPanelElement extends HTMLElement {
|
|
|
154
154
|
side: this.side,
|
|
155
155
|
anchorOffset: 4,
|
|
156
156
|
});
|
|
157
|
-
this.dialog.style.top = `${top}px`;
|
|
158
|
-
this.dialog.style.left = `${left}px`;
|
|
157
|
+
this.dialog.style.top = `${Math.round(top)}px`;
|
|
158
|
+
this.dialog.style.left = `${Math.round(left)}px`;
|
|
159
159
|
this.dialog.style.bottom = 'auto';
|
|
160
160
|
this.dialog.style.right = 'auto';
|
|
161
161
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.SubHeader{align-items:
|
|
1
|
+
.SubHeader{align-items:baseline;display:grid;grid-template-areas:"left middle right" "bottom bottom bottom";grid-template-columns:auto 1fr auto;margin-bottom:var(--base-size-16)}.SubHeader-rightPane{align-items:center;column-gap:12px;display:flex;grid-area:right}.SubHeader-middlePane{grid-area:middle;text-align:center;white-space:nowrap}.SubHeader-bottomPane{grid-area:bottom}.SubHeader-leftPane{align-items:center;display:flex;flex-wrap:wrap;grid-area:left;row-gap:var(--base-size-16);width:100%}:is(.SubHeader-leftPane [class*=FormControl-input-width--]):not(.FormControl-input-width--auto){width:100vw}.SubHeader-filterContainer{display:flex;flex-basis:max-content;gap:8px;width:100%}.SubHeader-filterInput_hiddenClearButton+.FormControl-input-trailingAction{display:none}@media (max-width:767.98px){.SubHeader{grid-template-areas:"left right" "middle middle" "bottom bottom";grid-template-columns:1fr auto}.SubHeader--expandedSearch{grid-template-areas:"left left" "middle middle" "bottom bottom"}.SubHeader--expandedSearch .SubHeader-hiddenOnExpand{display:none!important}.SubHeader--emptyLeftPane{grid-template-areas:"middle middle right" "bottom bottom bottom";grid-template-columns:auto 1fr auto}.SubHeader--emptyLeftPane .SubHeader-middlePane{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.SubHeader-middlePane{text-align:left}.SubHeader-middlePane:has(>*){margin-top:var(--base-size-16)}}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"name": "open_project/sub_header",
|
|
3
3
|
"selectors": [
|
|
4
4
|
".SubHeader",
|
|
5
|
-
".SubHeader--expandedSearch",
|
|
6
5
|
".SubHeader-rightPane",
|
|
7
6
|
".SubHeader-middlePane",
|
|
8
7
|
".SubHeader-bottomPane",
|
|
@@ -10,6 +9,8 @@
|
|
|
10
9
|
":is(.SubHeader-leftPane [class*=FormControl-input-width--]):not(.FormControl-input-width--auto)",
|
|
11
10
|
".SubHeader-filterContainer",
|
|
12
11
|
".SubHeader-filterInput_hiddenClearButton+.FormControl-input-trailingAction",
|
|
12
|
+
".SubHeader--expandedSearch",
|
|
13
|
+
".SubHeader--expandedSearch .SubHeader-hiddenOnExpand",
|
|
13
14
|
".SubHeader--emptyLeftPane",
|
|
14
15
|
".SubHeader--emptyLeftPane .SubHeader-middlePane",
|
|
15
16
|
".SubHeader-middlePane:has(>*)"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare class SubHeaderElement extends HTMLElement {
|
|
2
2
|
filterInput: HTMLInputElement;
|
|
3
|
-
hiddenItemsOnExpandedFilter: HTMLElement[];
|
|
4
3
|
shownItemsOnExpandedFilter: HTMLElement[];
|
|
4
|
+
filterExpandButton: HTMLElement[];
|
|
5
5
|
connectedCallback(): void;
|
|
6
6
|
setupFilterInputClearButton(): void;
|
|
7
7
|
toggleFilterInputClearButton(): void;
|
|
@@ -23,17 +23,17 @@ let SubHeaderElement = class SubHeaderElement extends HTMLElement {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
expandFilterInput() {
|
|
26
|
-
for (const item of this.hiddenItemsOnExpandedFilter) {
|
|
27
|
-
item.classList.add('d-none');
|
|
28
|
-
}
|
|
29
26
|
for (const item of this.shownItemsOnExpandedFilter) {
|
|
30
27
|
item.classList.remove('d-none');
|
|
31
28
|
}
|
|
29
|
+
for (const item of this.filterExpandButton) {
|
|
30
|
+
item.classList.add('d-none');
|
|
31
|
+
}
|
|
32
32
|
this.classList.add('SubHeader--expandedSearch');
|
|
33
33
|
this.filterInput.focus();
|
|
34
34
|
}
|
|
35
35
|
collapseFilterInput() {
|
|
36
|
-
for (const item of this.
|
|
36
|
+
for (const item of this.filterExpandButton) {
|
|
37
37
|
item.classList.remove('d-none');
|
|
38
38
|
}
|
|
39
39
|
for (const item of this.shownItemsOnExpandedFilter) {
|
|
@@ -63,10 +63,10 @@ __decorate([
|
|
|
63
63
|
], SubHeaderElement.prototype, "filterInput", void 0);
|
|
64
64
|
__decorate([
|
|
65
65
|
targets
|
|
66
|
-
], SubHeaderElement.prototype, "
|
|
66
|
+
], SubHeaderElement.prototype, "shownItemsOnExpandedFilter", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
targets
|
|
69
|
-
], SubHeaderElement.prototype, "
|
|
69
|
+
], SubHeaderElement.prototype, "filterExpandButton", void 0);
|
|
70
70
|
SubHeaderElement = __decorate([
|
|
71
71
|
controller
|
|
72
72
|
], SubHeaderElement);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openproject/primer-view-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"description": "ViewComponents of the Primer Design System for OpenProject",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|
package/static/arguments.json
CHANGED
|
@@ -6473,6 +6473,12 @@
|
|
|
6473
6473
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
|
6474
6474
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
|
6475
6475
|
"parameters": [
|
|
6476
|
+
{
|
|
6477
|
+
"name": "collapsed_search",
|
|
6478
|
+
"type": "Boolean",
|
|
6479
|
+
"default": "`false`",
|
|
6480
|
+
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
|
|
6481
|
+
},
|
|
6476
6482
|
{
|
|
6477
6483
|
"name": "system_arguments",
|
|
6478
6484
|
"type": "Hash",
|
package/static/constants.json
CHANGED
|
@@ -1978,8 +1978,8 @@
|
|
|
1978
1978
|
"none",
|
|
1979
1979
|
"flex"
|
|
1980
1980
|
],
|
|
1981
|
+
"FILTER_EXPAND_BUTTON_TARGET_SELECTOR": "sub-header.filterExpandButton",
|
|
1981
1982
|
"GeneratedSlotMethods": "Primer::OpenProject::SubHeader::GeneratedSlotMethods",
|
|
1982
|
-
"HIDDEN_FILTER_TARGET_SELECTOR": "sub-header.hiddenItemsOnExpandedFilter",
|
|
1983
1983
|
"MOBILE_ACTIONS_DISPLAY": [
|
|
1984
1984
|
"flex",
|
|
1985
1985
|
"none"
|
package/static/info_arch.json
CHANGED
|
@@ -8102,7 +8102,7 @@
|
|
|
8102
8102
|
{
|
|
8103
8103
|
"preview_path": "primer/alpha/select_panel/default",
|
|
8104
8104
|
"name": "default",
|
|
8105
|
-
"snapshot": "
|
|
8105
|
+
"snapshot": "false",
|
|
8106
8106
|
"skip_rules": {
|
|
8107
8107
|
"wont_fix": [
|
|
8108
8108
|
"region"
|
|
@@ -8115,7 +8115,7 @@
|
|
|
8115
8115
|
{
|
|
8116
8116
|
"preview_path": "primer/alpha/select_panel/local_fetch",
|
|
8117
8117
|
"name": "local_fetch",
|
|
8118
|
-
"snapshot": "
|
|
8118
|
+
"snapshot": "false",
|
|
8119
8119
|
"skip_rules": {
|
|
8120
8120
|
"wont_fix": [
|
|
8121
8121
|
"region"
|
|
@@ -8128,7 +8128,7 @@
|
|
|
8128
8128
|
{
|
|
8129
8129
|
"preview_path": "primer/alpha/select_panel/eventually_local_fetch",
|
|
8130
8130
|
"name": "eventually_local_fetch",
|
|
8131
|
-
"snapshot": "
|
|
8131
|
+
"snapshot": "false",
|
|
8132
8132
|
"skip_rules": {
|
|
8133
8133
|
"wont_fix": [
|
|
8134
8134
|
"region"
|
|
@@ -8141,7 +8141,7 @@
|
|
|
8141
8141
|
{
|
|
8142
8142
|
"preview_path": "primer/alpha/select_panel/remote_fetch",
|
|
8143
8143
|
"name": "remote_fetch",
|
|
8144
|
-
"snapshot": "
|
|
8144
|
+
"snapshot": "false",
|
|
8145
8145
|
"skip_rules": {
|
|
8146
8146
|
"wont_fix": [
|
|
8147
8147
|
"region"
|
|
@@ -8154,7 +8154,7 @@
|
|
|
8154
8154
|
{
|
|
8155
8155
|
"preview_path": "primer/alpha/select_panel/custom_loading_label",
|
|
8156
8156
|
"name": "custom_loading_label",
|
|
8157
|
-
"snapshot": "
|
|
8157
|
+
"snapshot": "false",
|
|
8158
8158
|
"skip_rules": {
|
|
8159
8159
|
"wont_fix": [
|
|
8160
8160
|
"region"
|
|
@@ -8167,7 +8167,7 @@
|
|
|
8167
8167
|
{
|
|
8168
8168
|
"preview_path": "primer/alpha/select_panel/custom_loading_description",
|
|
8169
8169
|
"name": "custom_loading_description",
|
|
8170
|
-
"snapshot": "
|
|
8170
|
+
"snapshot": "false",
|
|
8171
8171
|
"skip_rules": {
|
|
8172
8172
|
"wont_fix": [
|
|
8173
8173
|
"region"
|
|
@@ -8180,7 +8180,7 @@
|
|
|
8180
8180
|
{
|
|
8181
8181
|
"preview_path": "primer/alpha/select_panel/local_fetch_no_results",
|
|
8182
8182
|
"name": "local_fetch_no_results",
|
|
8183
|
-
"snapshot": "
|
|
8183
|
+
"snapshot": "false",
|
|
8184
8184
|
"skip_rules": {
|
|
8185
8185
|
"wont_fix": [
|
|
8186
8186
|
"region"
|
|
@@ -8193,7 +8193,7 @@
|
|
|
8193
8193
|
{
|
|
8194
8194
|
"preview_path": "primer/alpha/select_panel/eventually_local_fetch_no_results",
|
|
8195
8195
|
"name": "eventually_local_fetch_no_results",
|
|
8196
|
-
"snapshot": "
|
|
8196
|
+
"snapshot": "false",
|
|
8197
8197
|
"skip_rules": {
|
|
8198
8198
|
"wont_fix": [
|
|
8199
8199
|
"region"
|
|
@@ -8206,7 +8206,7 @@
|
|
|
8206
8206
|
{
|
|
8207
8207
|
"preview_path": "primer/alpha/select_panel/remote_fetch_no_results",
|
|
8208
8208
|
"name": "remote_fetch_no_results",
|
|
8209
|
-
"snapshot": "
|
|
8209
|
+
"snapshot": "false",
|
|
8210
8210
|
"skip_rules": {
|
|
8211
8211
|
"wont_fix": [
|
|
8212
8212
|
"region"
|
|
@@ -8219,7 +8219,7 @@
|
|
|
8219
8219
|
{
|
|
8220
8220
|
"preview_path": "primer/alpha/select_panel/single_select",
|
|
8221
8221
|
"name": "single_select",
|
|
8222
|
-
"snapshot": "
|
|
8222
|
+
"snapshot": "false",
|
|
8223
8223
|
"skip_rules": {
|
|
8224
8224
|
"wont_fix": [
|
|
8225
8225
|
"region"
|
|
@@ -8232,7 +8232,7 @@
|
|
|
8232
8232
|
{
|
|
8233
8233
|
"preview_path": "primer/alpha/select_panel/multiselect",
|
|
8234
8234
|
"name": "multiselect",
|
|
8235
|
-
"snapshot": "
|
|
8235
|
+
"snapshot": "false",
|
|
8236
8236
|
"skip_rules": {
|
|
8237
8237
|
"wont_fix": [
|
|
8238
8238
|
"region"
|
|
@@ -8245,7 +8245,7 @@
|
|
|
8245
8245
|
{
|
|
8246
8246
|
"preview_path": "primer/alpha/select_panel/with_dynamic_label",
|
|
8247
8247
|
"name": "with_dynamic_label",
|
|
8248
|
-
"snapshot": "
|
|
8248
|
+
"snapshot": "false",
|
|
8249
8249
|
"skip_rules": {
|
|
8250
8250
|
"wont_fix": [
|
|
8251
8251
|
"region"
|
|
@@ -8258,7 +8258,7 @@
|
|
|
8258
8258
|
{
|
|
8259
8259
|
"preview_path": "primer/alpha/select_panel/with_dynamic_label_and_aria_prefix",
|
|
8260
8260
|
"name": "with_dynamic_label_and_aria_prefix",
|
|
8261
|
-
"snapshot": "
|
|
8261
|
+
"snapshot": "false",
|
|
8262
8262
|
"skip_rules": {
|
|
8263
8263
|
"wont_fix": [
|
|
8264
8264
|
"region"
|
|
@@ -8271,7 +8271,7 @@
|
|
|
8271
8271
|
{
|
|
8272
8272
|
"preview_path": "primer/alpha/select_panel/footer_buttons",
|
|
8273
8273
|
"name": "footer_buttons",
|
|
8274
|
-
"snapshot": "
|
|
8274
|
+
"snapshot": "false",
|
|
8275
8275
|
"skip_rules": {
|
|
8276
8276
|
"wont_fix": [
|
|
8277
8277
|
"region"
|
|
@@ -8284,7 +8284,7 @@
|
|
|
8284
8284
|
{
|
|
8285
8285
|
"preview_path": "primer/alpha/select_panel/with_avatar_items",
|
|
8286
8286
|
"name": "with_avatar_items",
|
|
8287
|
-
"snapshot": "
|
|
8287
|
+
"snapshot": "false",
|
|
8288
8288
|
"skip_rules": {
|
|
8289
8289
|
"wont_fix": [
|
|
8290
8290
|
"region"
|
|
@@ -8297,7 +8297,7 @@
|
|
|
8297
8297
|
{
|
|
8298
8298
|
"preview_path": "primer/alpha/select_panel/select_panel_with_icon_button",
|
|
8299
8299
|
"name": "select_panel_with_icon_button",
|
|
8300
|
-
"snapshot": "
|
|
8300
|
+
"snapshot": "false",
|
|
8301
8301
|
"skip_rules": {
|
|
8302
8302
|
"wont_fix": [
|
|
8303
8303
|
"region"
|
|
@@ -8310,7 +8310,7 @@
|
|
|
8310
8310
|
{
|
|
8311
8311
|
"preview_path": "primer/alpha/select_panel/with_leading_icons",
|
|
8312
8312
|
"name": "with_leading_icons",
|
|
8313
|
-
"snapshot": "
|
|
8313
|
+
"snapshot": "false",
|
|
8314
8314
|
"skip_rules": {
|
|
8315
8315
|
"wont_fix": [
|
|
8316
8316
|
"region"
|
|
@@ -8323,7 +8323,7 @@
|
|
|
8323
8323
|
{
|
|
8324
8324
|
"preview_path": "primer/alpha/select_panel/with_trailing_icons",
|
|
8325
8325
|
"name": "with_trailing_icons",
|
|
8326
|
-
"snapshot": "
|
|
8326
|
+
"snapshot": "false",
|
|
8327
8327
|
"skip_rules": {
|
|
8328
8328
|
"wont_fix": [
|
|
8329
8329
|
"region"
|
|
@@ -8336,7 +8336,7 @@
|
|
|
8336
8336
|
{
|
|
8337
8337
|
"preview_path": "primer/alpha/select_panel/with_subtitle",
|
|
8338
8338
|
"name": "with_subtitle",
|
|
8339
|
-
"snapshot": "
|
|
8339
|
+
"snapshot": "false",
|
|
8340
8340
|
"skip_rules": {
|
|
8341
8341
|
"wont_fix": [
|
|
8342
8342
|
"region"
|
|
@@ -8349,7 +8349,7 @@
|
|
|
8349
8349
|
{
|
|
8350
8350
|
"preview_path": "primer/alpha/select_panel/remote_fetch_initial_failure",
|
|
8351
8351
|
"name": "remote_fetch_initial_failure",
|
|
8352
|
-
"snapshot": "
|
|
8352
|
+
"snapshot": "false",
|
|
8353
8353
|
"skip_rules": {
|
|
8354
8354
|
"wont_fix": [
|
|
8355
8355
|
"region"
|
|
@@ -8362,7 +8362,7 @@
|
|
|
8362
8362
|
{
|
|
8363
8363
|
"preview_path": "primer/alpha/select_panel/remote_fetch_filter_failure",
|
|
8364
8364
|
"name": "remote_fetch_filter_failure",
|
|
8365
|
-
"snapshot": "
|
|
8365
|
+
"snapshot": "false",
|
|
8366
8366
|
"skip_rules": {
|
|
8367
8367
|
"wont_fix": [
|
|
8368
8368
|
"region"
|
|
@@ -8375,7 +8375,7 @@
|
|
|
8375
8375
|
{
|
|
8376
8376
|
"preview_path": "primer/alpha/select_panel/eventually_local_fetch_initial_failure",
|
|
8377
8377
|
"name": "eventually_local_fetch_initial_failure",
|
|
8378
|
-
"snapshot": "
|
|
8378
|
+
"snapshot": "false",
|
|
8379
8379
|
"skip_rules": {
|
|
8380
8380
|
"wont_fix": [
|
|
8381
8381
|
"region"
|
|
@@ -8388,7 +8388,7 @@
|
|
|
8388
8388
|
{
|
|
8389
8389
|
"preview_path": "primer/alpha/select_panel/single_select_form",
|
|
8390
8390
|
"name": "single_select_form",
|
|
8391
|
-
"snapshot": "
|
|
8391
|
+
"snapshot": "false",
|
|
8392
8392
|
"skip_rules": {
|
|
8393
8393
|
"wont_fix": [
|
|
8394
8394
|
"region"
|
|
@@ -8401,7 +8401,7 @@
|
|
|
8401
8401
|
{
|
|
8402
8402
|
"preview_path": "primer/alpha/select_panel/remote_fetch_form",
|
|
8403
8403
|
"name": "remote_fetch_form",
|
|
8404
|
-
"snapshot": "
|
|
8404
|
+
"snapshot": "false",
|
|
8405
8405
|
"skip_rules": {
|
|
8406
8406
|
"wont_fix": [
|
|
8407
8407
|
"region"
|
|
@@ -8414,7 +8414,7 @@
|
|
|
8414
8414
|
{
|
|
8415
8415
|
"preview_path": "primer/alpha/select_panel/multiselect_form",
|
|
8416
8416
|
"name": "multiselect_form",
|
|
8417
|
-
"snapshot": "
|
|
8417
|
+
"snapshot": "false",
|
|
8418
8418
|
"skip_rules": {
|
|
8419
8419
|
"wont_fix": [
|
|
8420
8420
|
"region"
|
|
@@ -8427,7 +8427,7 @@
|
|
|
8427
8427
|
{
|
|
8428
8428
|
"preview_path": "primer/alpha/select_panel/list_of_links",
|
|
8429
8429
|
"name": "list_of_links",
|
|
8430
|
-
"snapshot": "
|
|
8430
|
+
"snapshot": "false",
|
|
8431
8431
|
"skip_rules": {
|
|
8432
8432
|
"wont_fix": [
|
|
8433
8433
|
"region"
|
|
@@ -8440,7 +8440,7 @@
|
|
|
8440
8440
|
{
|
|
8441
8441
|
"preview_path": "primer/alpha/select_panel/no_values",
|
|
8442
8442
|
"name": "no_values",
|
|
8443
|
-
"snapshot": "
|
|
8443
|
+
"snapshot": "false",
|
|
8444
8444
|
"skip_rules": {
|
|
8445
8445
|
"wont_fix": [
|
|
8446
8446
|
"region"
|
|
@@ -9368,7 +9368,7 @@
|
|
|
9368
9368
|
{
|
|
9369
9369
|
"preview_path": "primer/alpha/text_area/with_character_limit_over_limit",
|
|
9370
9370
|
"name": "with_character_limit_over_limit",
|
|
9371
|
-
"snapshot": "
|
|
9371
|
+
"snapshot": "false",
|
|
9372
9372
|
"skip_rules": {
|
|
9373
9373
|
"wont_fix": [
|
|
9374
9374
|
"region"
|
|
@@ -9907,7 +9907,7 @@
|
|
|
9907
9907
|
{
|
|
9908
9908
|
"preview_path": "primer/alpha/text_field/with_character_limit_over_limit",
|
|
9909
9909
|
"name": "with_character_limit_over_limit",
|
|
9910
|
-
"snapshot": "
|
|
9910
|
+
"snapshot": "false",
|
|
9911
9911
|
"skip_rules": {
|
|
9912
9912
|
"wont_fix": [
|
|
9913
9913
|
"region"
|
|
@@ -21649,6 +21649,12 @@
|
|
|
21649
21649
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
|
|
21650
21650
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
|
|
21651
21651
|
"parameters": [
|
|
21652
|
+
{
|
|
21653
|
+
"name": "collapsed_search",
|
|
21654
|
+
"type": "Boolean",
|
|
21655
|
+
"default": "`false`",
|
|
21656
|
+
"description": "When true, the search bar starts collapsed as an icon button on all screen sizes. Clicking expands it."
|
|
21657
|
+
},
|
|
21652
21658
|
{
|
|
21653
21659
|
"name": "system_arguments",
|
|
21654
21660
|
"type": "Hash",
|
|
@@ -21672,6 +21678,11 @@
|
|
|
21672
21678
|
"description": "A button or custom content that will render on the left-hand side of the component, next to the filter input.\n\nTo render a button, call the `with_filter_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}.\n\nTo render custom content, call the `with_filter_component` method and pass a block that returns HTML.",
|
|
21673
21679
|
"parameters": []
|
|
21674
21680
|
},
|
|
21681
|
+
{
|
|
21682
|
+
"name": "quick_filters",
|
|
21683
|
+
"description": "Quick filters shown in the left pane next to the search bar (0–5 items).\nHidden on mobile. Requires all_filters_button to be set when used.\nSupports ActionMenus, Buttons, IconButtons, SelectPanels, and SegmentedControls inside the block.",
|
|
21684
|
+
"parameters": []
|
|
21685
|
+
},
|
|
21675
21686
|
{
|
|
21676
21687
|
"name": "segmented_control",
|
|
21677
21688
|
"description": null,
|
|
@@ -21781,6 +21792,32 @@
|
|
|
21781
21792
|
]
|
|
21782
21793
|
}
|
|
21783
21794
|
},
|
|
21795
|
+
{
|
|
21796
|
+
"preview_path": "primer/open_project/sub_header/collapsed_search",
|
|
21797
|
+
"name": "collapsed_search",
|
|
21798
|
+
"snapshot": "false",
|
|
21799
|
+
"skip_rules": {
|
|
21800
|
+
"wont_fix": [
|
|
21801
|
+
"region"
|
|
21802
|
+
],
|
|
21803
|
+
"will_fix": [
|
|
21804
|
+
"color-contrast"
|
|
21805
|
+
]
|
|
21806
|
+
}
|
|
21807
|
+
},
|
|
21808
|
+
{
|
|
21809
|
+
"preview_path": "primer/open_project/sub_header/quick_filters",
|
|
21810
|
+
"name": "quick_filters",
|
|
21811
|
+
"snapshot": "false",
|
|
21812
|
+
"skip_rules": {
|
|
21813
|
+
"wont_fix": [
|
|
21814
|
+
"region"
|
|
21815
|
+
],
|
|
21816
|
+
"will_fix": [
|
|
21817
|
+
"color-contrast"
|
|
21818
|
+
]
|
|
21819
|
+
}
|
|
21820
|
+
},
|
|
21784
21821
|
{
|
|
21785
21822
|
"preview_path": "primer/open_project/sub_header/bottom_pane",
|
|
21786
21823
|
"name": "bottom_pane",
|