openproject-primer_view_components 0.59.1 → 0.60.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts +1 -1
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.json +2 -0
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +11 -1
- data/app/components/primer/alpha/banner.rb +5 -3
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/select.rb +1 -0
- data/app/components/primer/alpha/select_panel.rb +2 -3
- data/app/components/primer/alpha/text_area.rb +1 -0
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +6 -4
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +5 -1
- data/app/components/primer/alpha/text_field.rb +1 -0
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/open_project/border_box/collapsible_header.d.ts +1 -1
- data/app/components/primer/open_project/border_box/collapsible_header.js +6 -10
- data/app/components/primer/open_project/border_box/collapsible_header.rb +2 -3
- data/app/components/primer/open_project/border_box/collapsible_header.ts +7 -11
- data/app/components/primer/open_project/input_group.css +1 -1
- data/app/components/primer/open_project/input_group.css.json +1 -0
- data/app/components/primer/open_project/input_group.css.map +1 -1
- data/app/components/primer/open_project/input_group.pcss +5 -1
- data/app/components/primer/open_project/input_group.rb +1 -0
- data/app/lib/primer/forms/dsl/input.rb +4 -0
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/alpha/banner_preview.rb +9 -3
- data/previews/primer/alpha/select_preview.rb +1 -1
- data/previews/primer/alpha/text_area_preview.rb +1 -1
- data/previews/primer/alpha/text_field_preview.rb +3 -3
- data/previews/primer/forms_preview/custom_width_fields_form.html.erb +9 -0
- data/previews/primer/open_project/input_group_preview.rb +1 -1
- data/static/arguments.json +104 -2
- data/static/constants.json +6 -2
- data/static/info_arch.json +119 -4
- data/static/previews.json +13 -0
- metadata +2 -2
data/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`, or `:warning`."
|
2486
|
+
"description": "One of `:danger`, `:default`, `:success`, `:upsell`, or `:warning`."
|
2487
2487
|
},
|
2488
2488
|
{
|
2489
2489
|
"name": "system_arguments",
|
@@ -2583,6 +2583,19 @@
|
|
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
|
+
},
|
2586
2599
|
{
|
2587
2600
|
"preview_path": "primer/alpha/banner/dismissible",
|
2588
2601
|
"name": "dismissible",
|
@@ -7268,6 +7281,12 @@
|
|
7268
7281
|
"default": "N/A",
|
7269
7282
|
"description": "A hash of attributes passed to the underlying Rails builder methods. These options may mean something special depending on the type of input, otherwise they are emitted as HTML attributes. See the [Rails documentation](https://guides.rubyonrails.org/form_helpers.html) for more information. In addition, the usual Primer utility arguments are accepted in system arguments. For example, passing `mt: 2` will add the `mt-2` class to the input. See the Primer system arguments docs for details."
|
7270
7283
|
},
|
7284
|
+
{
|
7285
|
+
"name": "input_width",
|
7286
|
+
"type": "Symbol",
|
7287
|
+
"default": "N/A",
|
7288
|
+
"description": "The width of the field. One of `:auto`, `:large`, `:medium`, `:small`, `:xlarge`, `:xsmall`, or `:xxlarge`."
|
7289
|
+
},
|
7271
7290
|
{
|
7272
7291
|
"name": "multiple",
|
7273
7292
|
"type": "Boolean",
|
@@ -7450,11 +7469,95 @@
|
|
7450
7469
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/select_panel.rb",
|
7451
7470
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/select_panel/default/",
|
7452
7471
|
"parameters": [
|
7472
|
+
{
|
7473
|
+
"name": "src",
|
7474
|
+
"type": "String",
|
7475
|
+
"default": "`nil`",
|
7476
|
+
"description": "The URL to fetch search results from."
|
7477
|
+
},
|
7478
|
+
{
|
7479
|
+
"name": "title",
|
7480
|
+
"type": "String",
|
7481
|
+
"default": "`\"Menu\"`",
|
7482
|
+
"description": "The title that appears at the top of the panel."
|
7483
|
+
},
|
7484
|
+
{
|
7485
|
+
"name": "id",
|
7486
|
+
"type": "String",
|
7487
|
+
"default": "`self.class.generate_id`",
|
7488
|
+
"description": "The unique ID of the panel."
|
7489
|
+
},
|
7490
|
+
{
|
7491
|
+
"name": "size",
|
7492
|
+
"type": "Symbol",
|
7493
|
+
"default": "`:small`",
|
7494
|
+
"description": "The size of the panel. One of `:auto`, `:large`, `:medium`, `:medium_portrait`, `:small`, or `:xlarge`."
|
7495
|
+
},
|
7496
|
+
{
|
7497
|
+
"name": "select_variant",
|
7498
|
+
"type": "Symbol",
|
7499
|
+
"default": "`:single`",
|
7500
|
+
"description": "One of `:multiple`, `:none`, or `:single`."
|
7501
|
+
},
|
7502
|
+
{
|
7503
|
+
"name": "fetch_strategy",
|
7504
|
+
"type": "Symbol",
|
7505
|
+
"default": "`:remote`",
|
7506
|
+
"description": "One of `:eventually_local`, `:local`, or `:remote`."
|
7507
|
+
},
|
7508
|
+
{
|
7509
|
+
"name": "no_results_label",
|
7510
|
+
"type": "String",
|
7511
|
+
"default": "`\"No results found\"`",
|
7512
|
+
"description": "The label to display when no results are found."
|
7513
|
+
},
|
7514
|
+
{
|
7515
|
+
"name": "preload",
|
7516
|
+
"type": "Boolean",
|
7517
|
+
"default": "`false`",
|
7518
|
+
"description": "Whether to preload search results when the page loads. If this option is false, results are loaded when the panel is opened."
|
7519
|
+
},
|
7520
|
+
{
|
7521
|
+
"name": "dynamic_label",
|
7522
|
+
"type": "Boolean",
|
7523
|
+
"default": "`false`",
|
7524
|
+
"description": "Whether or not to display the text of the currently selected item in the show button."
|
7525
|
+
},
|
7526
|
+
{
|
7527
|
+
"name": "dynamic_label_prefix",
|
7528
|
+
"type": "String",
|
7529
|
+
"default": "`nil`",
|
7530
|
+
"description": "If provided, the prefix is prepended to the dynamic label and displayed in the show button."
|
7531
|
+
},
|
7532
|
+
{
|
7533
|
+
"name": "dynamic_aria_label_prefix",
|
7534
|
+
"type": "String",
|
7535
|
+
"default": "`nil`",
|
7536
|
+
"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."
|
7537
|
+
},
|
7538
|
+
{
|
7539
|
+
"name": "body_id",
|
7540
|
+
"type": "String",
|
7541
|
+
"default": "`nil`",
|
7542
|
+
"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."
|
7543
|
+
},
|
7544
|
+
{
|
7545
|
+
"name": "list_arguments",
|
7546
|
+
"type": "Hash",
|
7547
|
+
"default": "`{}`",
|
7548
|
+
"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."
|
7549
|
+
},
|
7550
|
+
{
|
7551
|
+
"name": "form_arguments",
|
7552
|
+
"type": "Hash",
|
7553
|
+
"default": "`{}`",
|
7554
|
+
"description": "Form arguments. Supported for `local`, and experimentally supported for `remote` and `eventually_local` strategies by enabling the `use_experimental_non_local_form` flag."
|
7555
|
+
},
|
7453
7556
|
{
|
7454
7557
|
"name": "use_experimental_non_local_form",
|
7455
7558
|
"type": "Boolean",
|
7456
7559
|
"default": "`false`",
|
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."
|
7560
|
+
"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. At this time, support is only available for the :single select variant. See: https://github.com/github/primer/issues/4923."
|
7458
7561
|
},
|
7459
7562
|
{
|
7460
7563
|
"name": "show_filter",
|
@@ -8773,6 +8876,12 @@
|
|
8773
8876
|
"type": "Hash",
|
8774
8877
|
"default": "N/A",
|
8775
8878
|
"description": "A hash of attributes passed to the underlying Rails builder methods. These options may mean something special depending on the type of input, otherwise they are emitted as HTML attributes. See the [Rails documentation](https://guides.rubyonrails.org/form_helpers.html) for more information. In addition, the usual Primer utility arguments are accepted in system arguments. For example, passing `mt: 2` will add the `mt-2` class to the input. See the Primer system arguments docs for details."
|
8879
|
+
},
|
8880
|
+
{
|
8881
|
+
"name": "input_width",
|
8882
|
+
"type": "Symbol",
|
8883
|
+
"default": "N/A",
|
8884
|
+
"description": "The width of the field. One of `:auto`, `:large`, `:medium`, `:small`, `:xlarge`, `:xsmall`, or `:xxlarge`."
|
8776
8885
|
}
|
8777
8886
|
],
|
8778
8887
|
"slots": [
|
@@ -9038,6 +9147,12 @@
|
|
9038
9147
|
"default": "N/A",
|
9039
9148
|
"description": "A hash of attributes passed to the underlying Rails builder methods. These options may mean something special depending on the type of input, otherwise they are emitted as HTML attributes. See the [Rails documentation](https://guides.rubyonrails.org/form_helpers.html) for more information. In addition, the usual Primer utility arguments are accepted in system arguments. For example, passing `mt: 2` will add the `mt-2` class to the input. See the Primer system arguments docs for details."
|
9040
9149
|
},
|
9150
|
+
{
|
9151
|
+
"name": "input_width",
|
9152
|
+
"type": "Symbol",
|
9153
|
+
"default": "N/A",
|
9154
|
+
"description": "The width of the field. One of `:auto`, `:large`, `:medium`, `:small`, `:xlarge`, `:xsmall`, or `:xxlarge`."
|
9155
|
+
},
|
9041
9156
|
{
|
9042
9157
|
"name": "placeholder",
|
9043
9158
|
"type": "String",
|
@@ -17448,8 +17563,8 @@
|
|
17448
17563
|
},
|
17449
17564
|
{
|
17450
17565
|
"fully_qualified_name": "Primer::OpenProject::BorderBox::CollapsibleHeader",
|
17451
|
-
"description": "
|
17452
|
-
"accessibility_docs":
|
17566
|
+
"description": "A component to be used inside Primer::Beta::BorderBox.\nIt will toggle the visibility of the complete Box body",
|
17567
|
+
"accessibility_docs": null,
|
17453
17568
|
"is_form_component": false,
|
17454
17569
|
"is_published": true,
|
17455
17570
|
"requires_js": false,
|
data/static/previews.json
CHANGED
@@ -1556,6 +1556,19 @@
|
|
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
|
+
},
|
1559
1572
|
{
|
1560
1573
|
"preview_path": "primer/alpha/banner/dismissible",
|
1561
1574
|
"name": "dismissible",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openproject-primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-04-
|
12
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|