@openproject/primer-view-components 0.12.0-rc.3e62fe89 → 0.12.0-rc.a2f270db

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.12.0-rc.3e62fe89",
3
+ "version": "0.12.0-rc.a2f270db",
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",
@@ -4653,6 +4653,84 @@
4653
4653
  }
4654
4654
  ]
4655
4655
  },
4656
+ {
4657
+ "component": "OpenProject::FlexLayout",
4658
+ "status": "open_project",
4659
+ "a11y_reviewed": false,
4660
+ "short_name": "OpenProjectFlexLayout",
4661
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/flex_layout.rb",
4662
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/flex_layout/default/",
4663
+ "parameters": [
4664
+ {
4665
+ "name": "system_arguments",
4666
+ "type": "Hash",
4667
+ "default": "N/A",
4668
+ "description": "[System arguments](/system-arguments)"
4669
+ }
4670
+ ]
4671
+ },
4672
+ {
4673
+ "component": "OpenProject::GridLayout",
4674
+ "status": "open_project",
4675
+ "a11y_reviewed": false,
4676
+ "short_name": "OpenProjectGridLayout",
4677
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/grid_layout.rb",
4678
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/grid_layout/default/",
4679
+ "parameters": [
4680
+ {
4681
+ "name": "css_class",
4682
+ "type": "String",
4683
+ "default": "N/A",
4684
+ "description": "The basic css class applied on the grid-container"
4685
+ },
4686
+ {
4687
+ "name": "system_arguments",
4688
+ "type": "Hash",
4689
+ "default": "N/A",
4690
+ "description": "[System arguments](/system-arguments)"
4691
+ }
4692
+ ]
4693
+ },
4694
+ {
4695
+ "component": "OpenProject::GridLayout::Area",
4696
+ "status": "open_project",
4697
+ "a11y_reviewed": false,
4698
+ "short_name": "OpenProjectGridLayoutArea",
4699
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/grid_layout/area.rb",
4700
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/grid_layout/area/default/",
4701
+ "parameters": [
4702
+ {
4703
+ "name": "css_class",
4704
+ "type": "String",
4705
+ "default": "N/A",
4706
+ "description": "The basic css class applied on the grid-container"
4707
+ },
4708
+ {
4709
+ "name": "area_name",
4710
+ "type": "Symbol",
4711
+ "default": "N/A",
4712
+ "description": "The specific area name, used for creating the element class and the \"grid-area\" style"
4713
+ },
4714
+ {
4715
+ "name": "component",
4716
+ "type": "ViewComponent::Base",
4717
+ "default": "`Primer::BaseComponent`",
4718
+ "description": "The instance of the component to be rendered."
4719
+ },
4720
+ {
4721
+ "name": "tag",
4722
+ "type": "Symbol",
4723
+ "default": "`:div`",
4724
+ "description": "One of `:div` or `:span`."
4725
+ },
4726
+ {
4727
+ "name": "system_arguments",
4728
+ "type": "Hash",
4729
+ "default": "N/A",
4730
+ "description": "[System arguments](/system-arguments)"
4731
+ }
4732
+ ]
4733
+ },
4656
4734
  {
4657
4735
  "component": "OpenProject::PageHeader",
4658
4736
  "status": "open_project",
@@ -110,6 +110,9 @@
110
110
  "Primer::OpenProject::BorderGrid": "",
111
111
  "Primer::OpenProject::BorderGrid::Cell": "",
112
112
  "Primer::OpenProject::DragHandle": "",
113
+ "Primer::OpenProject::FlexLayout": "",
114
+ "Primer::OpenProject::GridLayout": "",
115
+ "Primer::OpenProject::GridLayout::Area": "",
113
116
  "Primer::OpenProject::PageHeader": "",
114
117
  "Primer::Tooltip": "",
115
118
  "Primer::Truncate": ""
@@ -1336,6 +1336,18 @@
1336
1336
  "medium"
1337
1337
  ]
1338
1338
  },
1339
+ "Primer::OpenProject::FlexLayout": {
1340
+ },
1341
+ "Primer::OpenProject::GridLayout": {
1342
+ "Area": "Primer::OpenProject::GridLayout::Area"
1343
+ },
1344
+ "Primer::OpenProject::GridLayout::Area": {
1345
+ "DEFAULT_TAG": "div",
1346
+ "TAG_OPTIONS": [
1347
+ "div",
1348
+ "span"
1349
+ ]
1350
+ },
1339
1351
  "Primer::OpenProject::PageHeader": {
1340
1352
  "DEFAULT_HEADER_VARIANT": "medium",
1341
1353
  "HEADER_VARIANT_OPTIONS": [
@@ -15036,6 +15036,259 @@
15036
15036
 
15037
15037
  ]
15038
15038
  },
15039
+ {
15040
+ "fully_qualified_name": "Primer::OpenProject::FlexLayout",
15041
+ "description": "A layouting component used to arrange multiple components next / below each other",
15042
+ "accessibility_docs": null,
15043
+ "is_form_component": false,
15044
+ "is_published": true,
15045
+ "requires_js": false,
15046
+ "component": "OpenProject::FlexLayout",
15047
+ "status": "open_project",
15048
+ "a11y_reviewed": false,
15049
+ "short_name": "OpenProjectFlexLayout",
15050
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/flex_layout.rb",
15051
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/flex_layout/default/",
15052
+ "parameters": [
15053
+ {
15054
+ "name": "system_arguments",
15055
+ "type": "Hash",
15056
+ "default": "N/A",
15057
+ "description": "{{link_to_system_arguments_docs}}"
15058
+ }
15059
+ ],
15060
+ "slots": [
15061
+ {
15062
+ "name": "rows",
15063
+ "description": null,
15064
+ "parameters": [
15065
+
15066
+ ]
15067
+ },
15068
+ {
15069
+ "name": "columns",
15070
+ "description": null,
15071
+ "parameters": [
15072
+
15073
+ ]
15074
+ },
15075
+ {
15076
+ "name": "boxes",
15077
+ "description": "boxes are used when direction is set to row or column based on responsive breakpoints",
15078
+ "parameters": [
15079
+
15080
+ ]
15081
+ }
15082
+ ],
15083
+ "methods": [
15084
+
15085
+ ],
15086
+ "previews": [
15087
+ {
15088
+ "preview_path": "primer/open_project/flex_layout/playground",
15089
+ "name": "playground",
15090
+ "snapshot": "false",
15091
+ "skip_rules": {
15092
+ "wont_fix": [
15093
+ "region"
15094
+ ],
15095
+ "will_fix": [
15096
+ "color-contrast"
15097
+ ]
15098
+ }
15099
+ },
15100
+ {
15101
+ "preview_path": "primer/open_project/flex_layout/default",
15102
+ "name": "default",
15103
+ "snapshot": "false",
15104
+ "skip_rules": {
15105
+ "wont_fix": [
15106
+ "region"
15107
+ ],
15108
+ "will_fix": [
15109
+ "color-contrast"
15110
+ ]
15111
+ }
15112
+ },
15113
+ {
15114
+ "preview_path": "primer/open_project/flex_layout/row_layout",
15115
+ "name": "row_layout",
15116
+ "snapshot": "false",
15117
+ "skip_rules": {
15118
+ "wont_fix": [
15119
+ "region"
15120
+ ],
15121
+ "will_fix": [
15122
+ "color-contrast"
15123
+ ]
15124
+ }
15125
+ },
15126
+ {
15127
+ "preview_path": "primer/open_project/flex_layout/column_layout",
15128
+ "name": "column_layout",
15129
+ "snapshot": "false",
15130
+ "skip_rules": {
15131
+ "wont_fix": [
15132
+ "region"
15133
+ ],
15134
+ "will_fix": [
15135
+ "color-contrast"
15136
+ ]
15137
+ }
15138
+ },
15139
+ {
15140
+ "preview_path": "primer/open_project/flex_layout/nested_layout",
15141
+ "name": "nested_layout",
15142
+ "snapshot": "false",
15143
+ "skip_rules": {
15144
+ "wont_fix": [
15145
+ "region"
15146
+ ],
15147
+ "will_fix": [
15148
+ "color-contrast"
15149
+ ]
15150
+ }
15151
+ }
15152
+ ],
15153
+ "subcomponents": [
15154
+
15155
+ ]
15156
+ },
15157
+ {
15158
+ "fully_qualified_name": "Primer::OpenProject::GridLayout",
15159
+ "description": "A layouting component used to arrange multiple components in a CSS Grid\nNote that this component only provides helpers (as the class names and grid-area styles).\nHowever, it does not define the actual Grid which should be done in a separate CSS-file.",
15160
+ "accessibility_docs": null,
15161
+ "is_form_component": false,
15162
+ "is_published": true,
15163
+ "requires_js": false,
15164
+ "component": "OpenProject::GridLayout",
15165
+ "status": "open_project",
15166
+ "a11y_reviewed": false,
15167
+ "short_name": "OpenProjectGridLayout",
15168
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/grid_layout.rb",
15169
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/grid_layout/default/",
15170
+ "parameters": [
15171
+ {
15172
+ "name": "css_class",
15173
+ "type": "String",
15174
+ "default": "N/A",
15175
+ "description": "The basic css class applied on the grid-container"
15176
+ },
15177
+ {
15178
+ "name": "system_arguments",
15179
+ "type": "Hash",
15180
+ "default": "N/A",
15181
+ "description": "{{link_to_system_arguments_docs}}"
15182
+ }
15183
+ ],
15184
+ "slots": [
15185
+ {
15186
+ "name": "areas",
15187
+ "description": null,
15188
+ "parameters": [
15189
+
15190
+ ]
15191
+ }
15192
+ ],
15193
+ "methods": [
15194
+ {
15195
+ "name": "css_class",
15196
+ "description": "Returns the value of attribute css_class.",
15197
+ "parameters": [
15198
+
15199
+ ]
15200
+ }
15201
+ ],
15202
+ "previews": [
15203
+ {
15204
+ "preview_path": "primer/open_project/grid_layout/playground",
15205
+ "name": "playground",
15206
+ "snapshot": "false",
15207
+ "skip_rules": {
15208
+ "wont_fix": [
15209
+ "region"
15210
+ ],
15211
+ "will_fix": [
15212
+ "color-contrast"
15213
+ ]
15214
+ }
15215
+ },
15216
+ {
15217
+ "preview_path": "primer/open_project/grid_layout/default",
15218
+ "name": "default",
15219
+ "snapshot": "false",
15220
+ "skip_rules": {
15221
+ "wont_fix": [
15222
+ "region"
15223
+ ],
15224
+ "will_fix": [
15225
+ "color-contrast"
15226
+ ]
15227
+ }
15228
+ }
15229
+ ],
15230
+ "subcomponents": [
15231
+
15232
+ ]
15233
+ },
15234
+ {
15235
+ "fully_qualified_name": "Primer::OpenProject::GridLayout::Area",
15236
+ "description": "GridLayout::Area is an internal component that wraps the items in a div with the given new class and responding \"grid-area\"",
15237
+ "accessibility_docs": null,
15238
+ "is_form_component": false,
15239
+ "is_published": true,
15240
+ "requires_js": false,
15241
+ "component": "OpenProject::GridLayout::Area",
15242
+ "status": "open_project",
15243
+ "a11y_reviewed": false,
15244
+ "short_name": "OpenProjectGridLayoutArea",
15245
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/grid_layout/area.rb",
15246
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/grid_layout/area/default/",
15247
+ "parameters": [
15248
+ {
15249
+ "name": "css_class",
15250
+ "type": "String",
15251
+ "default": "N/A",
15252
+ "description": "The basic css class applied on the grid-container"
15253
+ },
15254
+ {
15255
+ "name": "area_name",
15256
+ "type": "Symbol",
15257
+ "default": "N/A",
15258
+ "description": "The specific area name, used for creating the element class and the \"grid-area\" style"
15259
+ },
15260
+ {
15261
+ "name": "component",
15262
+ "type": "ViewComponent::Base",
15263
+ "default": "`Primer::BaseComponent`",
15264
+ "description": "The instance of the component to be rendered."
15265
+ },
15266
+ {
15267
+ "name": "tag",
15268
+ "type": "Symbol",
15269
+ "default": "`:div`",
15270
+ "description": "One of `:div` or `:span`."
15271
+ },
15272
+ {
15273
+ "name": "system_arguments",
15274
+ "type": "Hash",
15275
+ "default": "N/A",
15276
+ "description": "{{link_to_system_arguments_docs}}"
15277
+ }
15278
+ ],
15279
+ "slots": [
15280
+
15281
+ ],
15282
+ "methods": [
15283
+
15284
+ ],
15285
+ "previews": [
15286
+
15287
+ ],
15288
+ "subcomponents": [
15289
+
15290
+ ]
15291
+ },
15039
15292
  {
15040
15293
  "fully_qualified_name": "Primer::OpenProject::PageHeader",
15041
15294
  "description": "A ViewComponent PageHeader inspired by the primer react variant",
@@ -3335,6 +3335,79 @@
3335
3335
  }
3336
3336
  ]
3337
3337
  },
3338
+ {
3339
+ "name": "flex_layout",
3340
+ "component": "OpenProject::FlexLayout",
3341
+ "status": "open_project",
3342
+ "lookup_path": "primer/open_project/flex_layout",
3343
+ "examples": [
3344
+ {
3345
+ "preview_path": "primer/open_project/flex_layout/playground",
3346
+ "name": "playground",
3347
+ "snapshot": "false",
3348
+ "skip_rules": {
3349
+ "wont_fix": [
3350
+ "region"
3351
+ ],
3352
+ "will_fix": [
3353
+ "color-contrast"
3354
+ ]
3355
+ }
3356
+ },
3357
+ {
3358
+ "preview_path": "primer/open_project/flex_layout/default",
3359
+ "name": "default",
3360
+ "snapshot": "false",
3361
+ "skip_rules": {
3362
+ "wont_fix": [
3363
+ "region"
3364
+ ],
3365
+ "will_fix": [
3366
+ "color-contrast"
3367
+ ]
3368
+ }
3369
+ },
3370
+ {
3371
+ "preview_path": "primer/open_project/flex_layout/row_layout",
3372
+ "name": "row_layout",
3373
+ "snapshot": "false",
3374
+ "skip_rules": {
3375
+ "wont_fix": [
3376
+ "region"
3377
+ ],
3378
+ "will_fix": [
3379
+ "color-contrast"
3380
+ ]
3381
+ }
3382
+ },
3383
+ {
3384
+ "preview_path": "primer/open_project/flex_layout/column_layout",
3385
+ "name": "column_layout",
3386
+ "snapshot": "false",
3387
+ "skip_rules": {
3388
+ "wont_fix": [
3389
+ "region"
3390
+ ],
3391
+ "will_fix": [
3392
+ "color-contrast"
3393
+ ]
3394
+ }
3395
+ },
3396
+ {
3397
+ "preview_path": "primer/open_project/flex_layout/nested_layout",
3398
+ "name": "nested_layout",
3399
+ "snapshot": "false",
3400
+ "skip_rules": {
3401
+ "wont_fix": [
3402
+ "region"
3403
+ ],
3404
+ "will_fix": [
3405
+ "color-contrast"
3406
+ ]
3407
+ }
3408
+ }
3409
+ ]
3410
+ },
3338
3411
  {
3339
3412
  "name": "form_control",
3340
3413
  "component": "FormControl",
@@ -3421,6 +3494,40 @@
3421
3494
  }
3422
3495
  ]
3423
3496
  },
3497
+ {
3498
+ "name": "grid_layout",
3499
+ "component": "OpenProject::GridLayout",
3500
+ "status": "open_project",
3501
+ "lookup_path": "primer/open_project/grid_layout",
3502
+ "examples": [
3503
+ {
3504
+ "preview_path": "primer/open_project/grid_layout/playground",
3505
+ "name": "playground",
3506
+ "snapshot": "false",
3507
+ "skip_rules": {
3508
+ "wont_fix": [
3509
+ "region"
3510
+ ],
3511
+ "will_fix": [
3512
+ "color-contrast"
3513
+ ]
3514
+ }
3515
+ },
3516
+ {
3517
+ "preview_path": "primer/open_project/grid_layout/default",
3518
+ "name": "default",
3519
+ "snapshot": "false",
3520
+ "skip_rules": {
3521
+ "wont_fix": [
3522
+ "region"
3523
+ ],
3524
+ "will_fix": [
3525
+ "color-contrast"
3526
+ ]
3527
+ }
3528
+ }
3529
+ ]
3530
+ },
3424
3531
  {
3425
3532
  "name": "heading",
3426
3533
  "component": "Heading",
@@ -110,6 +110,9 @@
110
110
  "Primer::OpenProject::BorderGrid": "open_project",
111
111
  "Primer::OpenProject::BorderGrid::Cell": "open_project",
112
112
  "Primer::OpenProject::DragHandle": "open_project",
113
+ "Primer::OpenProject::FlexLayout": "open_project",
114
+ "Primer::OpenProject::GridLayout": "open_project",
115
+ "Primer::OpenProject::GridLayout::Area": "open_project",
113
116
  "Primer::OpenProject::PageHeader": "open_project",
114
117
  "Primer::Tooltip": "deprecated",
115
118
  "Primer::Truncate": "deprecated"