@openproject/primer-view-components 0.10.0 → 0.11.0-rc.518a98f9

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.
@@ -0,0 +1 @@
1
+ .BorderGrid{border-collapse:collapse;border-style:hidden;display:table;margin-bottom:-16px;margin-top:-16px;table-layout:fixed;width:100%}.BorderGrid .BorderGrid-cell{padding-bottom:16px;padding-top:16px}.BorderGrid--spacious{margin-bottom:-24px;margin-top:-24px}.BorderGrid--spacious .BorderGrid-cell{padding-bottom:24px;padding-top:24px}.BorderGrid-row{display:table-row}.BorderGrid-cell{border:1px solid var(--borderColor-muted,var(--color-border-muted));display:table-cell}
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "open_project/border_grid",
3
+ "selectors": [
4
+ ".BorderGrid",
5
+ ".BorderGrid .BorderGrid-cell",
6
+ ".BorderGrid--spacious",
7
+ ".BorderGrid--spacious .BorderGrid-cell",
8
+ ".BorderGrid-row",
9
+ ".BorderGrid-cell"
10
+ ]
11
+ }
@@ -0,0 +1 @@
1
+ .DragHandle{color:var(--fgColor-muted,var(--color-fg-muted));cursor:move}
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "open_project/drag_handle",
3
+ "selectors": [
4
+ ".DragHandle"
5
+ ]
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-rc.518a98f9",
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",
@@ -4423,6 +4423,60 @@
4423
4423
  }
4424
4424
  ]
4425
4425
  },
4426
+ {
4427
+ "component": "OpenProject::BorderGrid",
4428
+ "status": "open_project",
4429
+ "a11y_reviewed": false,
4430
+ "short_name": "OpenProjectBorderGrid",
4431
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_grid.rb",
4432
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_grid/default/",
4433
+ "parameters": [
4434
+ {
4435
+ "name": "spacious",
4436
+ "type": "Boolean",
4437
+ "default": "`false`",
4438
+ "description": "Whether to add margin to the bottom of the component."
4439
+ },
4440
+ {
4441
+ "name": "system_arguments",
4442
+ "type": "Hash",
4443
+ "default": "N/A",
4444
+ "description": "[System arguments](/system-arguments)"
4445
+ }
4446
+ ]
4447
+ },
4448
+ {
4449
+ "component": "OpenProject::BorderGrid::Cell",
4450
+ "status": "open_project",
4451
+ "a11y_reviewed": false,
4452
+ "short_name": "OpenProjectBorderGridCell",
4453
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_grid/cell.rb",
4454
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_grid/cell/default/",
4455
+ "parameters": [
4456
+ {
4457
+ "name": "system_arguments",
4458
+ "type": "Hash",
4459
+ "default": "N/A",
4460
+ "description": "[System arguments](/system-arguments)"
4461
+ }
4462
+ ]
4463
+ },
4464
+ {
4465
+ "component": "OpenProject::DragHandle",
4466
+ "status": "open_project",
4467
+ "a11y_reviewed": false,
4468
+ "short_name": "OpenProjectDragHandle",
4469
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/drag_handle.rb",
4470
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/drag_handle/default/",
4471
+ "parameters": [
4472
+ {
4473
+ "name": "system_arguments",
4474
+ "type": "Hash",
4475
+ "default": "N/A",
4476
+ "description": "[System arguments](/system-arguments)"
4477
+ }
4478
+ ]
4479
+ },
4426
4480
  {
4427
4481
  "component": "OpenProject::PageHeader",
4428
4482
  "status": "open_project",
@@ -102,6 +102,9 @@
102
102
  "Primer::IconButton": "",
103
103
  "Primer::LayoutComponent": "",
104
104
  "Primer::Navigation::TabComponent": "",
105
+ "Primer::OpenProject::BorderGrid": "",
106
+ "Primer::OpenProject::BorderGrid::Cell": "",
107
+ "Primer::OpenProject::DragHandle": "",
105
108
  "Primer::OpenProject::PageHeader": "",
106
109
  "Primer::Tooltip": "",
107
110
  "Primer::Truncate": ""
@@ -101,6 +101,18 @@
101
101
  "Banner": [
102
102
  "Primer::Alpha::Banner"
103
103
  ],
104
+ "BorderGrid": [
105
+ "Primer::OpenProject::BorderGrid"
106
+ ],
107
+ "BorderGrid--spacious": [
108
+ "Primer::OpenProject::BorderGrid"
109
+ ],
110
+ "BorderGrid-cell": [
111
+ "Primer::OpenProject::BorderGrid"
112
+ ],
113
+ "BorderGrid-row": [
114
+ "Primer::OpenProject::BorderGrid"
115
+ ],
104
116
  "Box": [
105
117
  "Primer::Beta::BorderBox"
106
118
  ],
@@ -233,6 +245,9 @@
233
245
  "Counter--secondary": [
234
246
  "Primer::Beta::Counter"
235
247
  ],
248
+ "DragHandle": [
249
+ "Primer::OpenProject::DragHandle"
250
+ ],
236
251
  "FormControl": [
237
252
  "Primer::Alpha::TextField"
238
253
  ],
@@ -1300,6 +1300,19 @@
1300
1300
  },
1301
1301
  "Primer::Navigation::TabComponent": {
1302
1302
  },
1303
+ "Primer::OpenProject::BorderGrid": {
1304
+ "Cell": "Primer::OpenProject::BorderGrid::Cell"
1305
+ },
1306
+ "Primer::OpenProject::BorderGrid::Cell": {
1307
+ },
1308
+ "Primer::OpenProject::DragHandle": {
1309
+ "DEFAULT_SIZE": "small",
1310
+ "SIZE_OPTIONS": [
1311
+ "xsmall",
1312
+ "small",
1313
+ "medium"
1314
+ ]
1315
+ },
1303
1316
  "Primer::OpenProject::PageHeader": {
1304
1317
  "DEFAULT_HEADER_VARIANT": "medium",
1305
1318
  "HEADER_VARIANT_OPTIONS": [
@@ -14377,6 +14377,188 @@
14377
14377
 
14378
14378
  ]
14379
14379
  },
14380
+ {
14381
+ "fully_qualified_name": "Primer::OpenProject::BorderGrid",
14382
+ "description": "A set of blocks that are shown below each other with separator lines in between",
14383
+ "accessibility_docs": null,
14384
+ "is_form_component": false,
14385
+ "is_published": true,
14386
+ "requires_js": false,
14387
+ "component": "OpenProject::BorderGrid",
14388
+ "status": "open_project",
14389
+ "a11y_reviewed": false,
14390
+ "short_name": "OpenProjectBorderGrid",
14391
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_grid.rb",
14392
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_grid/default/",
14393
+ "parameters": [
14394
+ {
14395
+ "name": "spacious",
14396
+ "type": "Boolean",
14397
+ "default": "`false`",
14398
+ "description": "Whether to add margin to the bottom of the component."
14399
+ },
14400
+ {
14401
+ "name": "system_arguments",
14402
+ "type": "Hash",
14403
+ "default": "N/A",
14404
+ "description": "{{link_to_system_arguments_docs}}"
14405
+ }
14406
+ ],
14407
+ "slots": [
14408
+ {
14409
+ "name": "rows",
14410
+ "description": "Use to render a block inside the grid",
14411
+ "parameters": [
14412
+ {
14413
+ "name": "system_arguments",
14414
+ "type": "Hash",
14415
+ "default": "N/A",
14416
+ "description": "{{link_to_system_arguments_docs}}"
14417
+ }
14418
+ ]
14419
+ }
14420
+ ],
14421
+ "methods": [
14422
+
14423
+ ],
14424
+ "previews": [
14425
+ {
14426
+ "preview_path": "primer/open_project/border_grid/playground",
14427
+ "name": "playground",
14428
+ "snapshot": "false",
14429
+ "skip_rules": {
14430
+ "wont_fix": [
14431
+ "region"
14432
+ ],
14433
+ "will_fix": [
14434
+ "color-contrast"
14435
+ ]
14436
+ }
14437
+ },
14438
+ {
14439
+ "preview_path": "primer/open_project/border_grid/default",
14440
+ "name": "default",
14441
+ "snapshot": "true",
14442
+ "skip_rules": {
14443
+ "wont_fix": [
14444
+ "region"
14445
+ ],
14446
+ "will_fix": [
14447
+ "color-contrast"
14448
+ ]
14449
+ }
14450
+ },
14451
+ {
14452
+ "preview_path": "primer/open_project/border_grid/spacious",
14453
+ "name": "spacious",
14454
+ "snapshot": "false",
14455
+ "skip_rules": {
14456
+ "wont_fix": [
14457
+ "region"
14458
+ ],
14459
+ "will_fix": [
14460
+ "color-contrast"
14461
+ ]
14462
+ }
14463
+ }
14464
+ ],
14465
+ "subcomponents": [
14466
+
14467
+ ]
14468
+ },
14469
+ {
14470
+ "fully_qualified_name": "Primer::OpenProject::BorderGrid::Cell",
14471
+ "description": "A single cell inside the BorderGrid\nA cell can contain for example an action list or a status badge",
14472
+ "accessibility_docs": null,
14473
+ "is_form_component": false,
14474
+ "is_published": true,
14475
+ "requires_js": false,
14476
+ "component": "OpenProject::BorderGrid::Cell",
14477
+ "status": "open_project",
14478
+ "a11y_reviewed": false,
14479
+ "short_name": "OpenProjectBorderGridCell",
14480
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/border_grid/cell.rb",
14481
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/border_grid/cell/default/",
14482
+ "parameters": [
14483
+ {
14484
+ "name": "system_arguments",
14485
+ "type": "Hash",
14486
+ "default": "N/A",
14487
+ "description": "{{link_to_system_arguments_docs}}"
14488
+ }
14489
+ ],
14490
+ "slots": [
14491
+
14492
+ ],
14493
+ "methods": [
14494
+
14495
+ ],
14496
+ "previews": [
14497
+
14498
+ ],
14499
+ "subcomponents": [
14500
+
14501
+ ]
14502
+ },
14503
+ {
14504
+ "fully_qualified_name": "Primer::OpenProject::DragHandle",
14505
+ "description": "Add a general description of component here\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
14506
+ "accessibility_docs": "Add any accessibility considerations",
14507
+ "is_form_component": false,
14508
+ "is_published": true,
14509
+ "requires_js": false,
14510
+ "component": "OpenProject::DragHandle",
14511
+ "status": "open_project",
14512
+ "a11y_reviewed": false,
14513
+ "short_name": "OpenProjectDragHandle",
14514
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/drag_handle.rb",
14515
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/drag_handle/default/",
14516
+ "parameters": [
14517
+ {
14518
+ "name": "system_arguments",
14519
+ "type": "Hash",
14520
+ "default": "N/A",
14521
+ "description": "{{link_to_system_arguments_docs}}"
14522
+ }
14523
+ ],
14524
+ "slots": [
14525
+
14526
+ ],
14527
+ "methods": [
14528
+
14529
+ ],
14530
+ "previews": [
14531
+ {
14532
+ "preview_path": "primer/open_project/drag_handle/default",
14533
+ "name": "default",
14534
+ "snapshot": "true",
14535
+ "skip_rules": {
14536
+ "wont_fix": [
14537
+ "region"
14538
+ ],
14539
+ "will_fix": [
14540
+ "color-contrast"
14541
+ ]
14542
+ }
14543
+ },
14544
+ {
14545
+ "preview_path": "primer/open_project/drag_handle/playground",
14546
+ "name": "playground",
14547
+ "snapshot": "false",
14548
+ "skip_rules": {
14549
+ "wont_fix": [
14550
+ "region"
14551
+ ],
14552
+ "will_fix": [
14553
+ "color-contrast"
14554
+ ]
14555
+ }
14556
+ }
14557
+ ],
14558
+ "subcomponents": [
14559
+
14560
+ ]
14561
+ },
14380
14562
  {
14381
14563
  "fully_qualified_name": "Primer::OpenProject::PageHeader",
14382
14564
  "description": "A ViewComponent PageHeader inspired by the primer react variant",
@@ -1790,6 +1790,53 @@
1790
1790
  }
1791
1791
  ]
1792
1792
  },
1793
+ {
1794
+ "name": "border_grid",
1795
+ "component": "OpenProject::BorderGrid",
1796
+ "status": "open_project",
1797
+ "lookup_path": "primer/open_project/border_grid",
1798
+ "examples": [
1799
+ {
1800
+ "preview_path": "primer/open_project/border_grid/playground",
1801
+ "name": "playground",
1802
+ "snapshot": "false",
1803
+ "skip_rules": {
1804
+ "wont_fix": [
1805
+ "region"
1806
+ ],
1807
+ "will_fix": [
1808
+ "color-contrast"
1809
+ ]
1810
+ }
1811
+ },
1812
+ {
1813
+ "preview_path": "primer/open_project/border_grid/default",
1814
+ "name": "default",
1815
+ "snapshot": "true",
1816
+ "skip_rules": {
1817
+ "wont_fix": [
1818
+ "region"
1819
+ ],
1820
+ "will_fix": [
1821
+ "color-contrast"
1822
+ ]
1823
+ }
1824
+ },
1825
+ {
1826
+ "preview_path": "primer/open_project/border_grid/spacious",
1827
+ "name": "spacious",
1828
+ "snapshot": "false",
1829
+ "skip_rules": {
1830
+ "wont_fix": [
1831
+ "region"
1832
+ ],
1833
+ "will_fix": [
1834
+ "color-contrast"
1835
+ ]
1836
+ }
1837
+ }
1838
+ ]
1839
+ },
1793
1840
  {
1794
1841
  "name": "box",
1795
1842
  "component": "Box",
@@ -2900,6 +2947,40 @@
2900
2947
  }
2901
2948
  ]
2902
2949
  },
2950
+ {
2951
+ "name": "drag_handle",
2952
+ "component": "OpenProject::DragHandle",
2953
+ "status": "open_project",
2954
+ "lookup_path": "primer/open_project/drag_handle",
2955
+ "examples": [
2956
+ {
2957
+ "preview_path": "primer/open_project/drag_handle/default",
2958
+ "name": "default",
2959
+ "snapshot": "true",
2960
+ "skip_rules": {
2961
+ "wont_fix": [
2962
+ "region"
2963
+ ],
2964
+ "will_fix": [
2965
+ "color-contrast"
2966
+ ]
2967
+ }
2968
+ },
2969
+ {
2970
+ "preview_path": "primer/open_project/drag_handle/playground",
2971
+ "name": "playground",
2972
+ "snapshot": "false",
2973
+ "skip_rules": {
2974
+ "wont_fix": [
2975
+ "region"
2976
+ ],
2977
+ "will_fix": [
2978
+ "color-contrast"
2979
+ ]
2980
+ }
2981
+ }
2982
+ ]
2983
+ },
2903
2984
  {
2904
2985
  "name": "dropdown",
2905
2986
  "component": "Dropdown",
@@ -102,6 +102,9 @@
102
102
  "Primer::IconButton": "deprecated",
103
103
  "Primer::LayoutComponent": "deprecated",
104
104
  "Primer::Navigation::TabComponent": "deprecated",
105
+ "Primer::OpenProject::BorderGrid": "open_project",
106
+ "Primer::OpenProject::BorderGrid::Cell": "open_project",
107
+ "Primer::OpenProject::DragHandle": "open_project",
105
108
  "Primer::OpenProject::PageHeader": "open_project",
106
109
  "Primer::Tooltip": "deprecated",
107
110
  "Primer::Truncate": "deprecated"