openproject-primer_view_components 0.59.2 → 0.61.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 +18 -0
- data/app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts +3 -9
- data/app/assets/javascripts/components/primer/open_project/collapsible.d.ts +11 -0
- data/app/assets/javascripts/components/primer/open_project/collapsible_section.d.ts +10 -0
- data/app/assets/javascripts/components/primer/primer.d.ts +2 -0
- 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 +3 -9
- data/app/components/primer/open_project/border_box/collapsible_header.html.erb +6 -6
- data/app/components/primer/open_project/border_box/collapsible_header.js +5 -46
- data/app/components/primer/open_project/border_box/collapsible_header.rb +41 -9
- data/app/components/primer/open_project/border_box/collapsible_header.ts +5 -47
- data/app/components/primer/open_project/collapsible.d.ts +11 -0
- data/app/components/primer/open_project/collapsible.js +56 -0
- data/app/components/primer/open_project/collapsible.ts +49 -0
- data/app/components/primer/open_project/collapsible_section.css +1 -0
- data/app/components/primer/open_project/collapsible_section.css.json +6 -0
- data/app/components/primer/open_project/collapsible_section.css.map +1 -0
- data/app/components/primer/open_project/collapsible_section.d.ts +10 -0
- data/app/components/primer/open_project/collapsible_section.html.erb +26 -0
- data/app/components/primer/open_project/collapsible_section.js +16 -0
- data/app/components/primer/open_project/collapsible_section.pcss +5 -0
- data/app/components/primer/open_project/collapsible_section.rb +77 -0
- data/app/components/primer/open_project/collapsible_section.ts +15 -0
- 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/components/primer/primer.d.ts +2 -0
- data/app/components/primer/primer.js +2 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +2 -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/border_box/collapsible_header_preview/playground.html.erb +5 -4
- data/previews/primer/open_project/collapsible_section_preview/collapsed.html.erb +9 -0
- data/previews/primer/open_project/collapsible_section_preview/default.html.erb +10 -0
- data/previews/primer/open_project/collapsible_section_preview/playground.html.erb +22 -0
- data/previews/primer/open_project/collapsible_section_preview/with_additional_information.html.erb +16 -0
- data/previews/primer/open_project/collapsible_section_preview/with_caption.html.erb +14 -0
- data/previews/primer/open_project/collapsible_section_preview.rb +57 -0
- data/previews/primer/open_project/input_group_preview.rb +1 -1
- data/static/arguments.json +132 -2
- data/static/audited_at.json +1 -0
- data/static/classes.json +3 -0
- data/static/constants.json +19 -2
- data/static/info_arch.json +316 -3
- data/static/previews.json +86 -0
- data/static/statuses.json +1 -0
- metadata +22 -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",
|
@@ -17460,6 +17575,12 @@
|
|
17460
17575
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_box/collapsible_header.rb",
|
17461
17576
|
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_box/collapsible_header/default/",
|
17462
17577
|
"parameters": [
|
17578
|
+
{
|
17579
|
+
"name": "collapsed",
|
17580
|
+
"type": "Boolean",
|
17581
|
+
"default": "`false`",
|
17582
|
+
"description": "Whether the header is collapsed on initial render."
|
17583
|
+
},
|
17463
17584
|
{
|
17464
17585
|
"name": "system_arguments",
|
17465
17586
|
"type": "Hash",
|
@@ -17468,7 +17589,42 @@
|
|
17468
17589
|
}
|
17469
17590
|
],
|
17470
17591
|
"slots": [
|
17471
|
-
|
17592
|
+
{
|
17593
|
+
"name": "title",
|
17594
|
+
"description": "Required title",
|
17595
|
+
"parameters": [
|
17596
|
+
{
|
17597
|
+
"name": "system_arguments",
|
17598
|
+
"type": "Hash",
|
17599
|
+
"default": "N/A",
|
17600
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17601
|
+
}
|
17602
|
+
]
|
17603
|
+
},
|
17604
|
+
{
|
17605
|
+
"name": "count",
|
17606
|
+
"description": "Optional count",
|
17607
|
+
"parameters": [
|
17608
|
+
{
|
17609
|
+
"name": "system_arguments",
|
17610
|
+
"type": "Hash",
|
17611
|
+
"default": "N/A",
|
17612
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17613
|
+
}
|
17614
|
+
]
|
17615
|
+
},
|
17616
|
+
{
|
17617
|
+
"name": "description",
|
17618
|
+
"description": "Optional description",
|
17619
|
+
"parameters": [
|
17620
|
+
{
|
17621
|
+
"name": "system_arguments",
|
17622
|
+
"type": "Hash",
|
17623
|
+
"default": "N/A",
|
17624
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17625
|
+
}
|
17626
|
+
]
|
17627
|
+
}
|
17472
17628
|
],
|
17473
17629
|
"methods": [
|
17474
17630
|
|
@@ -17667,6 +17823,163 @@
|
|
17667
17823
|
|
17668
17824
|
]
|
17669
17825
|
},
|
17826
|
+
{
|
17827
|
+
"fully_qualified_name": "Primer::OpenProject::CollapsibleSection",
|
17828
|
+
"description": "A component consisting of a title and collapsible content.\nClicking the title will hide the collapsible content",
|
17829
|
+
"accessibility_docs": null,
|
17830
|
+
"is_form_component": false,
|
17831
|
+
"is_published": true,
|
17832
|
+
"requires_js": false,
|
17833
|
+
"component": "OpenProject::CollapsibleSection",
|
17834
|
+
"status": "open_project",
|
17835
|
+
"a11y_reviewed": false,
|
17836
|
+
"short_name": "OpenProjectCollapsibleSection",
|
17837
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/collapsible_section.rb",
|
17838
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/collapsible_section/default/",
|
17839
|
+
"parameters": [
|
17840
|
+
{
|
17841
|
+
"name": "collapsed",
|
17842
|
+
"type": "Boolean",
|
17843
|
+
"default": "`false`",
|
17844
|
+
"description": "Whether the section is collapsed on initial render."
|
17845
|
+
},
|
17846
|
+
{
|
17847
|
+
"name": "system_arguments",
|
17848
|
+
"type": "Hash",
|
17849
|
+
"default": "N/A",
|
17850
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17851
|
+
}
|
17852
|
+
],
|
17853
|
+
"slots": [
|
17854
|
+
{
|
17855
|
+
"name": "title",
|
17856
|
+
"description": "Required Title",
|
17857
|
+
"parameters": [
|
17858
|
+
{
|
17859
|
+
"name": "tag",
|
17860
|
+
"type": "Symbol",
|
17861
|
+
"default": "N/A",
|
17862
|
+
"description": "Customize the element type of the rendered title container."
|
17863
|
+
},
|
17864
|
+
{
|
17865
|
+
"name": "system_arguments",
|
17866
|
+
"type": "Hash",
|
17867
|
+
"default": "N/A",
|
17868
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17869
|
+
}
|
17870
|
+
]
|
17871
|
+
},
|
17872
|
+
{
|
17873
|
+
"name": "caption",
|
17874
|
+
"description": "Optional caption",
|
17875
|
+
"parameters": [
|
17876
|
+
{
|
17877
|
+
"name": "system_arguments",
|
17878
|
+
"type": "Hash",
|
17879
|
+
"default": "N/A",
|
17880
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17881
|
+
}
|
17882
|
+
]
|
17883
|
+
},
|
17884
|
+
{
|
17885
|
+
"name": "additional_information",
|
17886
|
+
"description": "Optional right-side content",
|
17887
|
+
"parameters": [
|
17888
|
+
{
|
17889
|
+
"name": "system_arguments",
|
17890
|
+
"type": "Hash",
|
17891
|
+
"default": "N/A",
|
17892
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17893
|
+
}
|
17894
|
+
]
|
17895
|
+
},
|
17896
|
+
{
|
17897
|
+
"name": "collapsible_content",
|
17898
|
+
"description": "Required collapsible content",
|
17899
|
+
"parameters": [
|
17900
|
+
{
|
17901
|
+
"name": "system_arguments",
|
17902
|
+
"type": "Hash",
|
17903
|
+
"default": "N/A",
|
17904
|
+
"description": "{{link_to_system_arguments_docs}}"
|
17905
|
+
}
|
17906
|
+
]
|
17907
|
+
}
|
17908
|
+
],
|
17909
|
+
"methods": [
|
17910
|
+
|
17911
|
+
],
|
17912
|
+
"previews": [
|
17913
|
+
{
|
17914
|
+
"preview_path": "primer/open_project/collapsible_section/playground",
|
17915
|
+
"name": "playground",
|
17916
|
+
"snapshot": "false",
|
17917
|
+
"skip_rules": {
|
17918
|
+
"wont_fix": [
|
17919
|
+
"region"
|
17920
|
+
],
|
17921
|
+
"will_fix": [
|
17922
|
+
"color-contrast"
|
17923
|
+
]
|
17924
|
+
}
|
17925
|
+
},
|
17926
|
+
{
|
17927
|
+
"preview_path": "primer/open_project/collapsible_section/default",
|
17928
|
+
"name": "default",
|
17929
|
+
"snapshot": "true",
|
17930
|
+
"skip_rules": {
|
17931
|
+
"wont_fix": [
|
17932
|
+
"region"
|
17933
|
+
],
|
17934
|
+
"will_fix": [
|
17935
|
+
"color-contrast"
|
17936
|
+
]
|
17937
|
+
}
|
17938
|
+
},
|
17939
|
+
{
|
17940
|
+
"preview_path": "primer/open_project/collapsible_section/with_additional_information",
|
17941
|
+
"name": "with_additional_information",
|
17942
|
+
"snapshot": "true",
|
17943
|
+
"skip_rules": {
|
17944
|
+
"wont_fix": [
|
17945
|
+
"region"
|
17946
|
+
],
|
17947
|
+
"will_fix": [
|
17948
|
+
"color-contrast"
|
17949
|
+
]
|
17950
|
+
}
|
17951
|
+
},
|
17952
|
+
{
|
17953
|
+
"preview_path": "primer/open_project/collapsible_section/with_caption",
|
17954
|
+
"name": "with_caption",
|
17955
|
+
"snapshot": "true",
|
17956
|
+
"skip_rules": {
|
17957
|
+
"wont_fix": [
|
17958
|
+
"region"
|
17959
|
+
],
|
17960
|
+
"will_fix": [
|
17961
|
+
"color-contrast"
|
17962
|
+
]
|
17963
|
+
}
|
17964
|
+
},
|
17965
|
+
{
|
17966
|
+
"preview_path": "primer/open_project/collapsible_section/collapsed",
|
17967
|
+
"name": "collapsed",
|
17968
|
+
"snapshot": "true",
|
17969
|
+
"skip_rules": {
|
17970
|
+
"wont_fix": [
|
17971
|
+
"region"
|
17972
|
+
],
|
17973
|
+
"will_fix": [
|
17974
|
+
"color-contrast"
|
17975
|
+
]
|
17976
|
+
}
|
17977
|
+
}
|
17978
|
+
],
|
17979
|
+
"subcomponents": [
|
17980
|
+
|
17981
|
+
]
|
17982
|
+
},
|
17670
17983
|
{
|
17671
17984
|
"fully_qualified_name": "Primer::OpenProject::DangerDialog",
|
17672
17985
|
"description": "A pre-configured dialog for destructive/\"potentially dangerous\" actions",
|
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",
|
@@ -3030,6 +3043,79 @@
|
|
3030
3043
|
}
|
3031
3044
|
]
|
3032
3045
|
},
|
3046
|
+
{
|
3047
|
+
"name": "collapsible_section",
|
3048
|
+
"component": "OpenProject::CollapsibleSection",
|
3049
|
+
"status": "open_project",
|
3050
|
+
"lookup_path": "primer/open_project/collapsible_section",
|
3051
|
+
"examples": [
|
3052
|
+
{
|
3053
|
+
"preview_path": "primer/open_project/collapsible_section/playground",
|
3054
|
+
"name": "playground",
|
3055
|
+
"snapshot": "false",
|
3056
|
+
"skip_rules": {
|
3057
|
+
"wont_fix": [
|
3058
|
+
"region"
|
3059
|
+
],
|
3060
|
+
"will_fix": [
|
3061
|
+
"color-contrast"
|
3062
|
+
]
|
3063
|
+
}
|
3064
|
+
},
|
3065
|
+
{
|
3066
|
+
"preview_path": "primer/open_project/collapsible_section/default",
|
3067
|
+
"name": "default",
|
3068
|
+
"snapshot": "true",
|
3069
|
+
"skip_rules": {
|
3070
|
+
"wont_fix": [
|
3071
|
+
"region"
|
3072
|
+
],
|
3073
|
+
"will_fix": [
|
3074
|
+
"color-contrast"
|
3075
|
+
]
|
3076
|
+
}
|
3077
|
+
},
|
3078
|
+
{
|
3079
|
+
"preview_path": "primer/open_project/collapsible_section/with_additional_information",
|
3080
|
+
"name": "with_additional_information",
|
3081
|
+
"snapshot": "true",
|
3082
|
+
"skip_rules": {
|
3083
|
+
"wont_fix": [
|
3084
|
+
"region"
|
3085
|
+
],
|
3086
|
+
"will_fix": [
|
3087
|
+
"color-contrast"
|
3088
|
+
]
|
3089
|
+
}
|
3090
|
+
},
|
3091
|
+
{
|
3092
|
+
"preview_path": "primer/open_project/collapsible_section/with_caption",
|
3093
|
+
"name": "with_caption",
|
3094
|
+
"snapshot": "true",
|
3095
|
+
"skip_rules": {
|
3096
|
+
"wont_fix": [
|
3097
|
+
"region"
|
3098
|
+
],
|
3099
|
+
"will_fix": [
|
3100
|
+
"color-contrast"
|
3101
|
+
]
|
3102
|
+
}
|
3103
|
+
},
|
3104
|
+
{
|
3105
|
+
"preview_path": "primer/open_project/collapsible_section/collapsed",
|
3106
|
+
"name": "collapsed",
|
3107
|
+
"snapshot": "true",
|
3108
|
+
"skip_rules": {
|
3109
|
+
"wont_fix": [
|
3110
|
+
"region"
|
3111
|
+
],
|
3112
|
+
"will_fix": [
|
3113
|
+
"color-contrast"
|
3114
|
+
]
|
3115
|
+
}
|
3116
|
+
}
|
3117
|
+
]
|
3118
|
+
},
|
3033
3119
|
{
|
3034
3120
|
"name": "counter",
|
3035
3121
|
"component": "Counter",
|
data/static/statuses.json
CHANGED
@@ -120,6 +120,7 @@
|
|
120
120
|
"Primer::OpenProject::BorderBox::CollapsibleHeader": "open_project",
|
121
121
|
"Primer::OpenProject::BorderGrid": "open_project",
|
122
122
|
"Primer::OpenProject::BorderGrid::Cell": "open_project",
|
123
|
+
"Primer::OpenProject::CollapsibleSection": "open_project",
|
123
124
|
"Primer::OpenProject::DangerDialog": "open_project",
|
124
125
|
"Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "open_project",
|
125
126
|
"Primer::OpenProject::DangerDialog::FormWrapper": "open_project",
|
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.61.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-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -105,6 +105,8 @@ files:
|
|
105
105
|
- app/assets/javascripts/components/primer/dialog_helper.d.ts
|
106
106
|
- app/assets/javascripts/components/primer/focus_group.d.ts
|
107
107
|
- app/assets/javascripts/components/primer/open_project/border_box/collapsible_header.d.ts
|
108
|
+
- app/assets/javascripts/components/primer/open_project/collapsible.d.ts
|
109
|
+
- app/assets/javascripts/components/primer/open_project/collapsible_section.d.ts
|
108
110
|
- app/assets/javascripts/components/primer/open_project/danger_dialog_form_helper.d.ts
|
109
111
|
- app/assets/javascripts/components/primer/open_project/page_header_element.d.ts
|
110
112
|
- app/assets/javascripts/components/primer/open_project/sub_header_element.d.ts
|
@@ -508,6 +510,18 @@ files:
|
|
508
510
|
- app/components/primer/open_project/border_grid.rb
|
509
511
|
- app/components/primer/open_project/border_grid/cell.html.erb
|
510
512
|
- app/components/primer/open_project/border_grid/cell.rb
|
513
|
+
- app/components/primer/open_project/collapsible.d.ts
|
514
|
+
- app/components/primer/open_project/collapsible.js
|
515
|
+
- app/components/primer/open_project/collapsible.ts
|
516
|
+
- app/components/primer/open_project/collapsible_section.css
|
517
|
+
- app/components/primer/open_project/collapsible_section.css.json
|
518
|
+
- app/components/primer/open_project/collapsible_section.css.map
|
519
|
+
- app/components/primer/open_project/collapsible_section.d.ts
|
520
|
+
- app/components/primer/open_project/collapsible_section.html.erb
|
521
|
+
- app/components/primer/open_project/collapsible_section.js
|
522
|
+
- app/components/primer/open_project/collapsible_section.pcss
|
523
|
+
- app/components/primer/open_project/collapsible_section.rb
|
524
|
+
- app/components/primer/open_project/collapsible_section.ts
|
511
525
|
- app/components/primer/open_project/danger_dialog.html.erb
|
512
526
|
- app/components/primer/open_project/danger_dialog.rb
|
513
527
|
- app/components/primer/open_project/danger_dialog/confirmation_check_box.rb
|
@@ -1045,6 +1059,12 @@ files:
|
|
1045
1059
|
- previews/primer/open_project/border_box/collapsible_header_preview.rb
|
1046
1060
|
- previews/primer/open_project/border_box/collapsible_header_preview/playground.html.erb
|
1047
1061
|
- previews/primer/open_project/border_grid_preview.rb
|
1062
|
+
- previews/primer/open_project/collapsible_section_preview.rb
|
1063
|
+
- previews/primer/open_project/collapsible_section_preview/collapsed.html.erb
|
1064
|
+
- previews/primer/open_project/collapsible_section_preview/default.html.erb
|
1065
|
+
- previews/primer/open_project/collapsible_section_preview/playground.html.erb
|
1066
|
+
- previews/primer/open_project/collapsible_section_preview/with_additional_information.html.erb
|
1067
|
+
- previews/primer/open_project/collapsible_section_preview/with_caption.html.erb
|
1048
1068
|
- previews/primer/open_project/danger_dialog_preview.rb
|
1049
1069
|
- previews/primer/open_project/danger_dialog_preview/deletion_form.rb
|
1050
1070
|
- previews/primer/open_project/danger_dialog_preview/playground.html.erb
|