@openproject/primer-view-components 0.60.0-rc.6156c5c85 → 0.60.0-rc.8e00aaab7
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/package.json +1 -1
- package/static/arguments.json +2 -86
- package/static/constants.json +2 -4
- package/static/info_arch.json +2 -99
- package/static/previews.json +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openproject/primer-view-components",
|
|
3
|
-
"version": "0.60.0-rc.
|
|
3
|
+
"version": "0.60.0-rc.8e00aaab7",
|
|
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
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
"name": "scheme",
|
|
675
675
|
"type": "Symbol",
|
|
676
676
|
"default": "`:default`",
|
|
677
|
-
"description": "One of `:danger`, `:default`, `:success`,
|
|
677
|
+
"description": "One of `:danger`, `:default`, `:success`, or `:warning`."
|
|
678
678
|
},
|
|
679
679
|
{
|
|
680
680
|
"name": "system_arguments",
|
|
@@ -2344,95 +2344,11 @@
|
|
|
2344
2344
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/select_panel.rb",
|
|
2345
2345
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/select_panel/default/",
|
|
2346
2346
|
"parameters": [
|
|
2347
|
-
{
|
|
2348
|
-
"name": "src",
|
|
2349
|
-
"type": "String",
|
|
2350
|
-
"default": "`nil`",
|
|
2351
|
-
"description": "The URL to fetch search results from."
|
|
2352
|
-
},
|
|
2353
|
-
{
|
|
2354
|
-
"name": "title",
|
|
2355
|
-
"type": "String",
|
|
2356
|
-
"default": "`\"Menu\"`",
|
|
2357
|
-
"description": "The title that appears at the top of the panel."
|
|
2358
|
-
},
|
|
2359
|
-
{
|
|
2360
|
-
"name": "id",
|
|
2361
|
-
"type": "String",
|
|
2362
|
-
"default": "`self.class.generate_id`",
|
|
2363
|
-
"description": "The unique ID of the panel."
|
|
2364
|
-
},
|
|
2365
|
-
{
|
|
2366
|
-
"name": "size",
|
|
2367
|
-
"type": "Symbol",
|
|
2368
|
-
"default": "`:small`",
|
|
2369
|
-
"description": "The size of the panel. One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
|
2370
|
-
},
|
|
2371
|
-
{
|
|
2372
|
-
"name": "select_variant",
|
|
2373
|
-
"type": "Symbol",
|
|
2374
|
-
"default": "`:single`",
|
|
2375
|
-
"description": "One of `:multiple`, `:none`, or `:single`."
|
|
2376
|
-
},
|
|
2377
|
-
{
|
|
2378
|
-
"name": "fetch_strategy",
|
|
2379
|
-
"type": "Symbol",
|
|
2380
|
-
"default": "`:remote`",
|
|
2381
|
-
"description": "One of `:eventually_local`, `:local`, or `:remote`."
|
|
2382
|
-
},
|
|
2383
|
-
{
|
|
2384
|
-
"name": "no_results_label",
|
|
2385
|
-
"type": "String",
|
|
2386
|
-
"default": "`\"No results found\"`",
|
|
2387
|
-
"description": "The label to display when no results are found."
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
"name": "preload",
|
|
2391
|
-
"type": "Boolean",
|
|
2392
|
-
"default": "`false`",
|
|
2393
|
-
"description": "Whether to preload search results when the page loads. If this option is false, results are loaded when the panel is opened."
|
|
2394
|
-
},
|
|
2395
|
-
{
|
|
2396
|
-
"name": "dynamic_label",
|
|
2397
|
-
"type": "Boolean",
|
|
2398
|
-
"default": "`false`",
|
|
2399
|
-
"description": "Whether or not to display the text of the currently selected item in the show button."
|
|
2400
|
-
},
|
|
2401
|
-
{
|
|
2402
|
-
"name": "dynamic_label_prefix",
|
|
2403
|
-
"type": "String",
|
|
2404
|
-
"default": "`nil`",
|
|
2405
|
-
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
|
2406
|
-
},
|
|
2407
|
-
{
|
|
2408
|
-
"name": "dynamic_aria_label_prefix",
|
|
2409
|
-
"type": "String",
|
|
2410
|
-
"default": "`nil`",
|
|
2411
|
-
"description": "If provided, the prefix is prepended to the dynamic label and set as the value of the `aria-label` attribute on the show button."
|
|
2412
|
-
},
|
|
2413
|
-
{
|
|
2414
|
-
"name": "body_id",
|
|
2415
|
-
"type": "String",
|
|
2416
|
-
"default": "`nil`",
|
|
2417
|
-
"description": "The unique ID of the panel body. If not provided, the body ID will be set to the panel ID with a \"-body\" suffix."
|
|
2418
|
-
},
|
|
2419
|
-
{
|
|
2420
|
-
"name": "list_arguments",
|
|
2421
|
-
"type": "Hash",
|
|
2422
|
-
"default": "`{}`",
|
|
2423
|
-
"description": "Arguments to pass to the underlying [ActionList](/components/alpha/actionlist) component. Only has an effect for the local fetch strategy."
|
|
2424
|
-
},
|
|
2425
|
-
{
|
|
2426
|
-
"name": "form_arguments",
|
|
2427
|
-
"type": "Hash",
|
|
2428
|
-
"default": "`{}`",
|
|
2429
|
-
"description": "Form arguments. Supported for `local`, and experimentally supported for `remote` and `eventually_local` strategies by enabling the `use_experimental_non_local_form` flag."
|
|
2430
|
-
},
|
|
2431
2347
|
{
|
|
2432
2348
|
"name": "use_experimental_non_local_form",
|
|
2433
2349
|
"type": "Boolean",
|
|
2434
2350
|
"default": "`false`",
|
|
2435
|
-
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values.
|
|
2351
|
+
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values."
|
|
2436
2352
|
},
|
|
2437
2353
|
{
|
|
2438
2354
|
"name": "show_filter",
|
package/static/constants.json
CHANGED
|
@@ -197,8 +197,7 @@
|
|
|
197
197
|
"default": "bell",
|
|
198
198
|
"warning": "alert",
|
|
199
199
|
"danger": "stop",
|
|
200
|
-
"success": "check-circle"
|
|
201
|
-
"upsell": "info"
|
|
200
|
+
"success": "check-circle"
|
|
202
201
|
},
|
|
203
202
|
"DEFAULT_SCHEME": "default",
|
|
204
203
|
"DEFAULT_TAG": "div",
|
|
@@ -218,8 +217,7 @@
|
|
|
218
217
|
"default": "",
|
|
219
218
|
"warning": "Banner--warning",
|
|
220
219
|
"danger": "Banner--error",
|
|
221
|
-
"success": "Banner--success"
|
|
222
|
-
"upsell": "Banner--upsell"
|
|
220
|
+
"success": "Banner--success"
|
|
223
221
|
},
|
|
224
222
|
"TAG_OPTIONS": [
|
|
225
223
|
"div",
|
package/static/info_arch.json
CHANGED
|
@@ -2483,7 +2483,7 @@
|
|
|
2483
2483
|
"name": "scheme",
|
|
2484
2484
|
"type": "Symbol",
|
|
2485
2485
|
"default": "`:default`",
|
|
2486
|
-
"description": "One of `:danger`, `:default`, `:success`,
|
|
2486
|
+
"description": "One of `:danger`, `:default`, `:success`, or `:warning`."
|
|
2487
2487
|
},
|
|
2488
2488
|
{
|
|
2489
2489
|
"name": "system_arguments",
|
|
@@ -2583,19 +2583,6 @@
|
|
|
2583
2583
|
]
|
|
2584
2584
|
}
|
|
2585
2585
|
},
|
|
2586
|
-
{
|
|
2587
|
-
"preview_path": "primer/alpha/banner/scheme_upsell",
|
|
2588
|
-
"name": "scheme_upsell",
|
|
2589
|
-
"snapshot": "true",
|
|
2590
|
-
"skip_rules": {
|
|
2591
|
-
"wont_fix": [
|
|
2592
|
-
"region"
|
|
2593
|
-
],
|
|
2594
|
-
"will_fix": [
|
|
2595
|
-
"color-contrast"
|
|
2596
|
-
]
|
|
2597
|
-
}
|
|
2598
|
-
},
|
|
2599
2586
|
{
|
|
2600
2587
|
"preview_path": "primer/alpha/banner/dismissible",
|
|
2601
2588
|
"name": "dismissible",
|
|
@@ -7463,95 +7450,11 @@
|
|
|
7463
7450
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/select_panel.rb",
|
|
7464
7451
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/select_panel/default/",
|
|
7465
7452
|
"parameters": [
|
|
7466
|
-
{
|
|
7467
|
-
"name": "src",
|
|
7468
|
-
"type": "String",
|
|
7469
|
-
"default": "`nil`",
|
|
7470
|
-
"description": "The URL to fetch search results from."
|
|
7471
|
-
},
|
|
7472
|
-
{
|
|
7473
|
-
"name": "title",
|
|
7474
|
-
"type": "String",
|
|
7475
|
-
"default": "`\"Menu\"`",
|
|
7476
|
-
"description": "The title that appears at the top of the panel."
|
|
7477
|
-
},
|
|
7478
|
-
{
|
|
7479
|
-
"name": "id",
|
|
7480
|
-
"type": "String",
|
|
7481
|
-
"default": "`self.class.generate_id`",
|
|
7482
|
-
"description": "The unique ID of the panel."
|
|
7483
|
-
},
|
|
7484
|
-
{
|
|
7485
|
-
"name": "size",
|
|
7486
|
-
"type": "Symbol",
|
|
7487
|
-
"default": "`:small`",
|
|
7488
|
-
"description": "The size of the panel. One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
|
7489
|
-
},
|
|
7490
|
-
{
|
|
7491
|
-
"name": "select_variant",
|
|
7492
|
-
"type": "Symbol",
|
|
7493
|
-
"default": "`:single`",
|
|
7494
|
-
"description": "One of `:multiple`, `:none`, or `:single`."
|
|
7495
|
-
},
|
|
7496
|
-
{
|
|
7497
|
-
"name": "fetch_strategy",
|
|
7498
|
-
"type": "Symbol",
|
|
7499
|
-
"default": "`:remote`",
|
|
7500
|
-
"description": "One of `:eventually_local`, `:local`, or `:remote`."
|
|
7501
|
-
},
|
|
7502
|
-
{
|
|
7503
|
-
"name": "no_results_label",
|
|
7504
|
-
"type": "String",
|
|
7505
|
-
"default": "`\"No results found\"`",
|
|
7506
|
-
"description": "The label to display when no results are found."
|
|
7507
|
-
},
|
|
7508
|
-
{
|
|
7509
|
-
"name": "preload",
|
|
7510
|
-
"type": "Boolean",
|
|
7511
|
-
"default": "`false`",
|
|
7512
|
-
"description": "Whether to preload search results when the page loads. If this option is false, results are loaded when the panel is opened."
|
|
7513
|
-
},
|
|
7514
|
-
{
|
|
7515
|
-
"name": "dynamic_label",
|
|
7516
|
-
"type": "Boolean",
|
|
7517
|
-
"default": "`false`",
|
|
7518
|
-
"description": "Whether or not to display the text of the currently selected item in the show button."
|
|
7519
|
-
},
|
|
7520
|
-
{
|
|
7521
|
-
"name": "dynamic_label_prefix",
|
|
7522
|
-
"type": "String",
|
|
7523
|
-
"default": "`nil`",
|
|
7524
|
-
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
|
7525
|
-
},
|
|
7526
|
-
{
|
|
7527
|
-
"name": "dynamic_aria_label_prefix",
|
|
7528
|
-
"type": "String",
|
|
7529
|
-
"default": "`nil`",
|
|
7530
|
-
"description": "If provided, the prefix is prepended to the dynamic label and set as the value of the `aria-label` attribute on the show button."
|
|
7531
|
-
},
|
|
7532
|
-
{
|
|
7533
|
-
"name": "body_id",
|
|
7534
|
-
"type": "String",
|
|
7535
|
-
"default": "`nil`",
|
|
7536
|
-
"description": "The unique ID of the panel body. If not provided, the body ID will be set to the panel ID with a \"-body\" suffix."
|
|
7537
|
-
},
|
|
7538
|
-
{
|
|
7539
|
-
"name": "list_arguments",
|
|
7540
|
-
"type": "Hash",
|
|
7541
|
-
"default": "`{}`",
|
|
7542
|
-
"description": "Arguments to pass to the underlying {{#link_to_component}}Primer::Alpha::ActionList{{/link_to_component}} component. Only has an effect for the local fetch strategy."
|
|
7543
|
-
},
|
|
7544
|
-
{
|
|
7545
|
-
"name": "form_arguments",
|
|
7546
|
-
"type": "Hash",
|
|
7547
|
-
"default": "`{}`",
|
|
7548
|
-
"description": "Form arguments. Supported for `local`, and experimentally supported for `remote` and `eventually_local` strategies by enabling the `use_experimental_non_local_form` flag."
|
|
7549
|
-
},
|
|
7550
7453
|
{
|
|
7551
7454
|
"name": "use_experimental_non_local_form",
|
|
7552
7455
|
"type": "Boolean",
|
|
7553
7456
|
"default": "`false`",
|
|
7554
|
-
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values.
|
|
7457
|
+
"description": "A feature flag used to slowly roll out moving the input field (generated from form arguments) to the top of the SelectPanel HTML thus allowing remote fetching to have default form values."
|
|
7555
7458
|
},
|
|
7556
7459
|
{
|
|
7557
7460
|
"name": "show_filter",
|
package/static/previews.json
CHANGED
|
@@ -1556,19 +1556,6 @@
|
|
|
1556
1556
|
]
|
|
1557
1557
|
}
|
|
1558
1558
|
},
|
|
1559
|
-
{
|
|
1560
|
-
"preview_path": "primer/alpha/banner/scheme_upsell",
|
|
1561
|
-
"name": "scheme_upsell",
|
|
1562
|
-
"snapshot": "true",
|
|
1563
|
-
"skip_rules": {
|
|
1564
|
-
"wont_fix": [
|
|
1565
|
-
"region"
|
|
1566
|
-
],
|
|
1567
|
-
"will_fix": [
|
|
1568
|
-
"color-contrast"
|
|
1569
|
-
]
|
|
1570
|
-
}
|
|
1571
|
-
},
|
|
1572
1559
|
{
|
|
1573
1560
|
"preview_path": "primer/alpha/banner/dismissible",
|
|
1574
1561
|
"name": "dismissible",
|