@openproject/primer-view-components 0.61.0-rc.f7a16a73d → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.61.0-rc.f7a16a73d",
3
+ "version": "0.61.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",
@@ -5180,6 +5180,28 @@
5180
5180
  }
5181
5181
  ]
5182
5182
  },
5183
+ {
5184
+ "component": "OpenProject::CollapsibleSection",
5185
+ "status": "open_project",
5186
+ "a11y_reviewed": false,
5187
+ "short_name": "OpenProjectCollapsibleSection",
5188
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/collapsible_section.rb",
5189
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/collapsible_section/default/",
5190
+ "parameters": [
5191
+ {
5192
+ "name": "collapsed",
5193
+ "type": "Boolean",
5194
+ "default": "`false`",
5195
+ "description": "Whether the section is collapsed on initial render."
5196
+ },
5197
+ {
5198
+ "name": "system_arguments",
5199
+ "type": "Hash",
5200
+ "default": "N/A",
5201
+ "description": "[System arguments](/system-arguments)"
5202
+ }
5203
+ ]
5204
+ },
5183
5205
  {
5184
5206
  "component": "OpenProject::DangerDialog",
5185
5207
  "status": "open_project",
@@ -120,6 +120,7 @@
120
120
  "Primer::OpenProject::BorderBox::CollapsibleHeader": "",
121
121
  "Primer::OpenProject::BorderGrid": "",
122
122
  "Primer::OpenProject::BorderGrid::Cell": "",
123
+ "Primer::OpenProject::CollapsibleSection": "",
123
124
  "Primer::OpenProject::DangerDialog": "",
124
125
  "Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "",
125
126
  "Primer::OpenProject::DangerDialog::FormWrapper": "",
@@ -1574,6 +1574,19 @@
1574
1574
  "Primer::OpenProject::BorderGrid::Cell": {
1575
1575
  "GeneratedSlotMethods": "Primer::OpenProject::BorderGrid::Cell::GeneratedSlotMethods"
1576
1576
  },
1577
+ "Primer::OpenProject::CollapsibleSection": {
1578
+ "GeneratedSlotMethods": "Primer::OpenProject::CollapsibleSection::GeneratedSlotMethods",
1579
+ "TITLE_TAG_FALLBACK": "h2",
1580
+ "TITLE_TAG_OPTIONS": [
1581
+ "h1",
1582
+ "h2",
1583
+ "h3",
1584
+ "h4",
1585
+ "h5",
1586
+ "h6",
1587
+ "span"
1588
+ ]
1589
+ },
1577
1590
  "Primer::OpenProject::DangerDialog": {
1578
1591
  "ConfirmationCheckBox": "Primer::OpenProject::DangerDialog::ConfirmationCheckBox",
1579
1592
  "FormWrapper": "Primer::OpenProject::DangerDialog::FormWrapper",
@@ -17823,6 +17823,163 @@
17823
17823
 
17824
17824
  ]
17825
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
+ },
17826
17983
  {
17827
17984
  "fully_qualified_name": "Primer::OpenProject::DangerDialog",
17828
17985
  "description": "A pre-configured dialog for destructive/\"potentially dangerous\" actions",
@@ -3043,6 +3043,79 @@
3043
3043
  }
3044
3044
  ]
3045
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
+ },
3046
3119
  {
3047
3120
  "name": "counter",
3048
3121
  "component": "Counter",
@@ -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",